* @brief Onboard components initialization. In this function, the board-level * initialization function will be called to complete the initialization * of the on-board peripherals. */
| 84 | * of the on-board peripherals. |
| 85 | */ |
| 86 | void rt_components_board_init(void) |
| 87 | { |
| 88 | #ifdef RT_DEBUGING_AUTO_INIT |
| 89 | int result; |
| 90 | const struct rt_init_desc *desc; |
| 91 | for (desc = &__rt_init_desc_rti_board_start; desc < &__rt_init_desc_rti_board_end; desc ++) |
| 92 | { |
| 93 | rt_kprintf("initialize %s\n", desc->fn_name); |
| 94 | result = desc->fn(); |
| 95 | rt_kprintf(":%d done\n", result); |
| 96 | } |
| 97 | #else |
| 98 | volatile const init_fn_t *fn_ptr; |
| 99 | |
| 100 | for (fn_ptr = &__rt_init_rti_board_start; fn_ptr < &__rt_init_rti_board_end; fn_ptr++) |
| 101 | { |
| 102 | (*fn_ptr)(); |
| 103 | } |
| 104 | #endif /* RT_DEBUGING_AUTO_INIT */ |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * @brief RT-Thread Components Initialization. |
no test coverage detected