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

Function rt_components_init

src/components.c:110–131  ·  view source on GitHub ↗

* @brief RT-Thread Components Initialization. */

Source from the content-addressed store, hash-verified

108 * @brief RT-Thread Components Initialization.
109 */
110void rt_components_init(void)
111{
112#ifdef RT_DEBUGING_AUTO_INIT
113 int result;
114 const struct rt_init_desc *desc;
115
116 rt_kprintf("do components initialization.\n");
117 for (desc = &__rt_init_desc_rti_board_end; desc < &__rt_init_desc_rti_end; desc ++)
118 {
119 rt_kprintf("initialize %s\n", desc->fn_name);
120 result = desc->fn();
121 rt_kprintf(":%d done\n", result);
122 }
123#else
124 volatile const init_fn_t *fn_ptr;
125
126 for (fn_ptr = &__rt_init_rti_board_end; fn_ptr < &__rt_init_rti_end; fn_ptr ++)
127 {
128 (*fn_ptr)();
129 }
130#endif /* RT_DEBUGING_AUTO_INIT */
131}
132#endif /* RT_USING_COMPONENTS_INIT */
133
134#ifdef RT_USING_USER_MAIN

Callers 8

main_thread_entryFunction · 0.70
rt_init_thread_entryFunction · 0.50
rt_init_thread_entryFunction · 0.50
rt_init_thread_entryFunction · 0.50
rt_init_thread_entryFunction · 0.50
rt_init_thread_entryFunction · 0.50
init_threadFunction · 0.50
rt_init_thread_entryFunction · 0.50

Calls 1

rt_kprintfFunction · 0.85

Tested by

no test coverage detected