Skip to content

Commit

Permalink
Uncrustify: triggered by comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 4, 2023
1 parent 822ca0a commit f515ca7
Showing 1 changed file with 34 additions and 33 deletions.
67 changes: 34 additions & 33 deletions minimal_freertos_example/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,59 +37,60 @@

#include <stdio.h>

StackType_t exampleTaskStack[configMINIMAL_STACK_SIZE];
StackType_t exampleTaskStack[ configMINIMAL_STACK_SIZE ];
StaticTask_t exampleTaskTCB;

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();

for (;;) // should never get here.
{
}
return 0;
for( ; ; ) /* should never get here. */
{
}

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 )
{
static StaticTask_t xTimerTaskTCB;
static StackType_t uxTimerTaskStack[configTIMER_TASK_STACK_DEPTH];
static StaticTask_t xTimerTaskTCB;
static StackType_t uxTimerTaskStack[ configTIMER_TASK_STACK_DEPTH ];

*ppxTimerTaskTCBBuffer = &xTimerTaskTCB;
*ppxTimerTaskTCBBuffer = &xTimerTaskTCB;

*ppxTimerTaskStackBuffer = uxTimerTaskStack;
*ppxTimerTaskStackBuffer = uxTimerTaskStack;

*pulTimerTaskStackSize = sizeof(uxTimerTaskStack) / sizeof(*uxTimerTaskStack);
*pulTimerTaskStackSize = sizeof( uxTimerTaskStack ) / sizeof( *uxTimerTaskStack );
}

void vApplicationGetIdleTaskMemory(StaticTask_t **ppxIdleTaskTCBBuffer,
StackType_t **ppxIdleTaskStackBuffer,
uint32_t *pulIdleTaskStackSize)
void vApplicationGetIdleTaskMemory( StaticTask_t ** ppxIdleTaskTCBBuffer,
StackType_t ** ppxIdleTaskStackBuffer,
uint32_t * pulIdleTaskStackSize )
{
static StaticTask_t xIdleTaskTCB;
static StackType_t uxIdleTaskStack[configMINIMAL_STACK_SIZE];
static StaticTask_t xIdleTaskTCB;
static StackType_t uxIdleTaskStack[ configMINIMAL_STACK_SIZE ];

*ppxIdleTaskTCBBuffer = &xIdleTaskTCB;
*ppxIdleTaskStackBuffer = uxIdleTaskStack;
*pulIdleTaskStackSize = configMINIMAL_STACK_SIZE;
*ppxIdleTaskTCBBuffer = &xIdleTaskTCB;
*ppxIdleTaskStackBuffer = uxIdleTaskStack;
*pulIdleTaskStackSize = configMINIMAL_STACK_SIZE;
}

0 comments on commit f515ca7

Please sign in to comment.