MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_hw_board_init

Function rt_hw_board_init

bsp/simulator/drivers/board.c:94–113  ·  view source on GitHub ↗

* This function will initial win32 */

Source from the content-addressed store, hash-verified

92 * This function will initial win32
93 */
94int rt_hw_board_init(void)
95{
96 /* init system memory */
97 rt_hw_sram_init();
98
99 uart_console_init();
100
101#ifdef _WIN32
102 rt_thread_idle_sethook(rt_hw_win32_low_cpu);
103#endif
104
105#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
106 rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
107#endif
108 /* init board */
109#ifdef RT_USING_COMPONENTS_INIT
110 rt_components_board_init();
111#endif
112 return 0;
113}
114
115/*@}*/

Callers

nothing calls this directly

Calls 5

uart_console_initFunction · 0.85
rt_thread_idle_sethookFunction · 0.85
rt_console_set_deviceFunction · 0.85
rt_hw_sram_initFunction · 0.70
rt_components_board_initFunction · 0.50

Tested by

no test coverage detected