board.c 907 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * File : board.c
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2009 RT-Thread Develop Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2009-01-05 Bernard first implementation
  13. */
  14. #include <rthw.h>
  15. #include <rtthread.h>
  16. #include "board.h"
  17. /**
  18. * @addtogroup simulator on win32
  19. */
  20. /**
  21. * This function will initial STM32 board.
  22. */
  23. void rt_hw_board_init()
  24. {
  25. #if 0
  26. /* NVIC Configuration */
  27. NVIC_Configuration();
  28. /* Configure the SysTick */
  29. SysTick_Config( SystemCoreClock / RT_TICK_PER_SECOND );
  30. #endif
  31. #if defined(RT_USING_CONSOLE)
  32. rt_hw_usart_init();
  33. rt_hw_serial_init();
  34. rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
  35. #endif
  36. }
  37. /*@}*/