From c873de9ba100669197f09f576cd44194435bf161 Mon Sep 17 00:00:00 2001 From: Soren Ptak Date: Fri, 13 Oct 2023 15:46:59 -0700 Subject: [PATCH] Formatting --- cmake_example/main.c | 78 +++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 40 deletions(-) diff --git a/cmake_example/main.c b/cmake_example/main.c index 310ce129c1..f0eaf1cf1b 100644 --- a/cmake_example/main.c +++ b/cmake_example/main.c @@ -42,66 +42,64 @@ #include static StaticTask_t exampleTaskTCB; -static StackType_t exampleTaskStack[configMINIMAL_STACK_SIZE]; +static StackType_t exampleTaskStack[ configMINIMAL_STACK_SIZE ]; static StaticTask_t xTimerTaskTCB; -static StackType_t uxTimerTaskStack[configTIMER_TASK_STACK_DEPTH]; +static StackType_t uxTimerTaskStack[ configTIMER_TASK_STACK_DEPTH ]; static StaticTask_t xIdleTaskTCB; -static StackType_t uxIdleTaskStack[configMINIMAL_STACK_SIZE]; +static StackType_t uxIdleTaskStack[ configMINIMAL_STACK_SIZE ]; -void exampleTask(void *parameters) +void exampleTask( void * parameters ) { - for (;;) - { - /* Example Task Code */ - vTaskDelay(100); /* delay 100 ticks */ - } + for( ; ; ) + { + /* Example Task Code */ + vTaskDelay( 100 ); /* delay 100 ticks */ + } } -int main(void) +int main( void ) { - printf("Example FreeRTOS Project\n"); + printf( "Example FreeRTOS Project\n" ); - xTaskCreateStatic(exampleTask, - "example", - configMINIMAL_STACK_SIZE, - NULL, - configMAX_PRIORITIES - 1, - exampleTaskStack, - &exampleTaskTCB); + xTaskCreateStatic( exampleTask, + "example", + configMINIMAL_STACK_SIZE, + NULL, + configMAX_PRIORITIES - 1, + exampleTaskStack, + &exampleTaskTCB ); - vTaskStartScheduler(); + vTaskStartScheduler(); - /* should never get here. */ - for (;;) - { - } + /* should never get here. */ + for( ; ; ) + { + } - return 0; + return 0; } -void vApplicationStackOverflowHook(TaskHandle_t xTask, - char *pcTaskName) +void vApplicationStackOverflowHook( TaskHandle_t xTask, + char * pcTaskName ) { } -void vApplicationGetTimerTaskMemory(StaticTask_t **ppxTimerTaskTCBBuffer, - StackType_t **ppxTimerTaskStackBuffer, - uint32_t *pulTimerTaskStackSize) +void vApplicationGetTimerTaskMemory( StaticTask_t ** ppxTimerTaskTCBBuffer, + StackType_t ** ppxTimerTaskStackBuffer, + uint32_t * pulTimerTaskStackSize ) { - - *ppxTimerTaskTCBBuffer = &xTimerTaskTCB; - *ppxTimerTaskStackBuffer = uxTimerTaskStack; - *pulTimerTaskStackSize = configTIMER_TASK_STACK_DEPTH; + *ppxTimerTaskTCBBuffer = &xTimerTaskTCB; + *ppxTimerTaskStackBuffer = uxTimerTaskStack; + *pulTimerTaskStackSize = configTIMER_TASK_STACK_DEPTH; } -void vApplicationGetIdleTaskMemory(StaticTask_t **ppxIdleTaskTCBBuffer, - StackType_t **ppxIdleTaskStackBuffer, - uint32_t *pulIdleTaskStackSize) +void vApplicationGetIdleTaskMemory( StaticTask_t ** ppxIdleTaskTCBBuffer, + StackType_t ** ppxIdleTaskStackBuffer, + uint32_t * pulIdleTaskStackSize ) { - - *ppxIdleTaskTCBBuffer = &xIdleTaskTCB; - *ppxIdleTaskStackBuffer = uxIdleTaskStack; - *pulIdleTaskStackSize = configMINIMAL_STACK_SIZE; + *ppxIdleTaskTCBBuffer = &xIdleTaskTCB; + *ppxIdleTaskStackBuffer = uxIdleTaskStack; + *pulIdleTaskStackSize = configMINIMAL_STACK_SIZE; }