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

Function rt_hw_board_init

bsp/loongson/ls1bdev/drivers/board.c:38–84  ·  view source on GitHub ↗

* This function will initial sam7s64 board. */

Source from the content-addressed store, hash-verified

36 * This function will initial sam7s64 board.
37 */
38void rt_hw_board_init(void)
39{
40 /* init hardware interrupt */
41 rt_hw_exception_init();
42
43 /* init hardware interrupt */
44 rt_hw_interrupt_init();
45
46#ifdef RT_USING_HEAP
47 rt_system_heap_init((void*)&__bss_end, (void*)RT_HW_HEAP_END);
48#endif
49
50#ifdef RT_USING_SERIAL
51 /* init hardware UART device */
52 rt_hw_uart_init();
53#endif
54
55#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
56 /* set console device */
57 rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
58#endif
59 /* init operating system timer */
60 rt_hw_timer_init();
61
62#ifdef RT_USING_FPU
63 /* init hardware fpu */
64 rt_hw_fpu_init();
65#endif
66
67#ifdef RT_USING_RTGUI
68 rt_device_t dc;
69
70 /* init Display Controller */
71 rt_hw_dc_init();
72
73 /* find Display Controller device */
74 dc = rt_device_find("dc");
75
76 /* set Display Controller device as rtgui graphic driver */
77 rtgui_graphic_set_device(dc);
78#endif
79
80#ifdef RT_USING_COMPONENTS_INIT
81 rt_components_board_init();
82#endif
83 rt_kprintf("current sr: 0x%08x\n", read_c0_status());
84}
85/*@}*/

Callers

nothing calls this directly

Calls 11

rt_hw_exception_initFunction · 0.85
rt_system_heap_initFunction · 0.85
rt_console_set_deviceFunction · 0.85
rt_hw_fpu_initFunction · 0.85
rt_device_findFunction · 0.85
rt_kprintfFunction · 0.85
rt_hw_uart_initFunction · 0.70
rt_hw_dc_initFunction · 0.70
rt_hw_interrupt_initFunction · 0.50
rt_hw_timer_initFunction · 0.50
rt_components_board_initFunction · 0.50

Tested by

no test coverage detected