[BSP][STM32F40X] Fix components init.
This commit is contained in:
parent
27ff16a86f
commit
3797867888
|
@ -34,10 +34,8 @@
|
||||||
|
|
||||||
void rt_init_thread_entry(void* parameter)
|
void rt_init_thread_entry(void* parameter)
|
||||||
{
|
{
|
||||||
#ifdef RT_USING_COMPONENTS_INIT
|
|
||||||
/* initialization RT-Thread Components */
|
/* initialization RT-Thread Components */
|
||||||
rt_components_init();
|
rt_components_init();
|
||||||
#endif
|
|
||||||
|
|
||||||
/* GDB STUB */
|
/* GDB STUB */
|
||||||
#ifdef RT_USING_GDB
|
#ifdef RT_USING_GDB
|
||||||
|
|
|
@ -93,17 +93,11 @@ void rt_hw_board_init()
|
||||||
/* Configure the SysTick */
|
/* Configure the SysTick */
|
||||||
SysTick_Configuration();
|
SysTick_Configuration();
|
||||||
|
|
||||||
stm32_hw_usart_init();
|
rt_components_board_init();
|
||||||
stm32_hw_pin_init();
|
|
||||||
|
|
||||||
#ifdef RT_USING_CONSOLE
|
#ifdef RT_USING_CONSOLE
|
||||||
rt_console_set_device(CONSOLE_DEVICE);
|
rt_console_set_device(CONSOLE_DEVICE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RT_USING_COMPONENTS_INIT
|
|
||||||
rt_components_board_init();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
Loading…
Reference in New Issue