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