diff options
| author | CYFS <[email protected]> | 2026-10-30 18:20:46 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-10-30 18:20:46 +0800 |
| commit | cbc19778d0ae5ef2533a28c0f62c6a399858010a (patch) | |
| tree | 6a7696817dcbf3b8101fa9dbdcd85f3e7996cfd2 /src/components.c | |
| parent | 506dbc6d6ae9b6abf5e7941bb322212b23d272c9 (diff) | |
[clang-format] Pin version 22.1.8 and format kernel sources (#11936)
* [clang-format] Pin formatter version to 22.1.8
* [clang-format] Adjust loop line breaks
* [kernel] Format src with clang-format 22.1.8
Diffstat (limited to 'src/components.c')
| -rw-r--r-- | src/components.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/components.c b/src/components.c index 167b2d4590..978afd0bcb 100644 --- a/src/components.c +++ b/src/components.c @@ -23,10 +23,10 @@ #ifdef RT_USING_USER_MAIN #ifndef RT_MAIN_THREAD_STACK_SIZE -#define RT_MAIN_THREAD_STACK_SIZE 2048 +#define RT_MAIN_THREAD_STACK_SIZE 2048 #endif /* RT_MAIN_THREAD_STACK_SIZE */ #ifndef RT_MAIN_THREAD_PRIORITY -#define RT_MAIN_THREAD_PRIORITY (RT_THREAD_PRIORITY_MAX / 3) +#define RT_MAIN_THREAD_PRIORITY (RT_THREAD_PRIORITY_MAX / 3) #endif /* RT_MAIN_THREAD_PRIORITY */ #if (RT_MAIN_THREAD_PRIORITY >= RT_THREAD_PRIORITY_MAX) #error "RT_MAIN_THREAD_PRIORITY must be < RT_THREAD_PRIORITY_MAX" @@ -93,7 +93,7 @@ void rt_components_board_init(void) #ifdef RT_DEBUGING_AUTO_INIT int result; const struct rt_init_desc *desc; - for (desc = &__rt_init_desc_rti_board_start; desc < &__rt_init_desc_rti_board_end; desc ++) + for (desc = &__rt_init_desc_rti_board_start; desc < &__rt_init_desc_rti_board_end; desc++) { rt_kprintf("initialize %s\n", desc->fn_name); result = desc->fn(); @@ -119,7 +119,7 @@ void rt_components_init(void) const struct rt_init_desc *desc; rt_kprintf("do components initialization.\n"); - for (desc = &__rt_init_desc_rti_board_end; desc < &__rt_init_desc_rti_end; desc ++) + for (desc = &__rt_init_desc_rti_board_end; desc < &__rt_init_desc_rti_end; desc++) { rt_kprintf("initialize %s\n", desc->fn_name); result = desc->fn(); @@ -128,7 +128,7 @@ void rt_components_init(void) #else volatile const init_fn_t *fn_ptr; - for (fn_ptr = &__rt_init_rti_board_end; fn_ptr < &__rt_init_rti_end; fn_ptr ++) + for (fn_ptr = &__rt_init_rti_board_end; fn_ptr < &__rt_init_rti_end; fn_ptr++) { (*fn_ptr)(); } @@ -171,8 +171,7 @@ int entry(void) #ifndef RT_USING_HEAP /* if there is not enable heap, we should use static thread and stack. */ -rt_align(RT_ALIGN_SIZE) -static rt_uint8_t main_thread_stack[RT_MAIN_THREAD_STACK_SIZE]; +rt_align(RT_ALIGN_SIZE) static rt_uint8_t main_thread_stack[RT_MAIN_THREAD_STACK_SIZE]; struct rt_thread main_thread; #endif /* RT_USING_HEAP */ |
