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

Function rt_hw_board_init

bsp/loongson/ls1cdev/drivers/board.c:30–64  ·  view source on GitHub ↗

* This function will initial sam7s64 board. */

Source from the content-addressed store, hash-verified

28 * This function will initial sam7s64 board.
29 */
30void rt_hw_board_init(void)
31{
32 /* init hardware interrupt */
33 rt_hw_exception_init();
34
35 /* init hardware interrupt */
36 rt_hw_interrupt_init();
37
38#ifdef RT_USING_HEAP
39 rt_system_heap_init((void*)&__bss_end, (void*)RT_HW_HEAP_END);
40#endif
41
42#ifdef RT_USING_SERIAL
43 /* init hardware UART device */
44 rt_hw_uart_init();
45#endif
46
47#if defined(RT_USING_CONSOLE) && defined(RT_USING_DEVICE)
48 /* set console device */
49 rt_console_set_device(RT_CONSOLE_DEVICE_NAME);
50#endif
51 /* init operating system timer */
52 rt_hw_timer_init();
53
54#ifdef RT_USING_FPU
55 /* init hardware fpu */
56 rt_hw_fpu_init();
57#endif
58
59#ifdef RT_USING_COMPONENTS_INIT
60 rt_components_board_init();
61#endif
62
63 rt_kprintf("current sr: 0x%08x\n", read_c0_status());
64}
65
66/*@}*/

Callers

nothing calls this directly

Calls 9

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_kprintfFunction · 0.85
rt_hw_uart_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