* This function will initial sam7s64 board. */
| 28 | * This function will initial sam7s64 board. |
| 29 | */ |
| 30 | void 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 | /*@}*/ |
nothing calls this directly
no test coverage detected