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

Function rt_components_board_init

src/components.c:86–105  ·  view source on GitHub ↗

* @brief Onboard components initialization. In this function, the board-level * initialization function will be called to complete the initialization * of the on-board peripherals. */

Source from the content-addressed store, hash-verified

84 * of the on-board peripherals.
85 */
86void 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.

Callers 15

rt_hw_board_initFunction · 0.50
rt_hw_board_initFunction · 0.50
rt_hw_board_initFunction · 0.50
rt_hw_board_initFunction · 0.50
rt_hw_board_initFunction · 0.50
rt_hw_board_initFunction · 0.50
rt_hw_board_initFunction · 0.50
rt_hw_board_initFunction · 0.50
rt_hw_board_initFunction · 0.50
rt_hw_board_initFunction · 0.50
rt_hw_board_initFunction · 0.50
rt_hw_board_initFunction · 0.50

Calls 1

rt_kprintfFunction · 0.85

Tested by

no test coverage detected