* Board level initialization */
| 76 | * Board level initialization |
| 77 | */ |
| 78 | void rt_hw_board_init(void) |
| 79 | { |
| 80 | rt_hw_exception_init(); |
| 81 | /* init hardware interrupt */ |
| 82 | rt_hw_interrupt_init(); |
| 83 | |
| 84 | #ifdef RT_USING_FPU |
| 85 | /* init hardware fpu */ |
| 86 | rt_hw_fpu_init(); |
| 87 | #endif |
| 88 | |
| 89 | #ifdef RT_USING_SERIAL |
| 90 | /* init hardware UART device */ |
| 91 | rt_hw_uart_init(); |
| 92 | /* set console device */ |
| 93 | rt_console_set_device(RT_CONSOLE_DEVICE_NAME); |
| 94 | #endif |
| 95 | |
| 96 | #ifdef RT_USING_HEAP |
| 97 | rt_system_heap_init((void *)RT_HW_HEAP_BEGIN, (void *)RT_HW_HEAP_END); |
| 98 | #endif |
| 99 | |
| 100 | /* init operating system timer */ |
| 101 | rt_hw_timer_init(); |
| 102 | |
| 103 | #ifdef RT_USING_COMPONENTS_INIT |
| 104 | rt_components_board_init(); |
| 105 | #endif |
| 106 | |
| 107 | rt_kprintf("Current SR: 0x%08x\n", read_c0_status()); |
| 108 | |
| 109 | } |
nothing calls this directly
no test coverage detected