mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Fix reliability issues in CMake sample (#835)
* Fix reliability issues in CMake example sample.
This commit is contained in:
parent
30283b57df
commit
59ba98b2e3
|
@ -52,6 +52,9 @@ static StackType_t uxIdleTaskStack[ configMINIMAL_STACK_SIZE ];
|
||||||
|
|
||||||
void exampleTask( void * parameters )
|
void exampleTask( void * parameters )
|
||||||
{
|
{
|
||||||
|
/* Unused parameters. */
|
||||||
|
( void ) parameters;
|
||||||
|
|
||||||
for( ; ; )
|
for( ; ; )
|
||||||
{
|
{
|
||||||
/* Example Task Code */
|
/* Example Task Code */
|
||||||
|
@ -59,7 +62,7 @@ void exampleTask( void * parameters )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int main( void )
|
void main( void )
|
||||||
{
|
{
|
||||||
printf( "Example FreeRTOS Project\n" );
|
printf( "Example FreeRTOS Project\n" );
|
||||||
|
|
||||||
|
@ -71,19 +74,22 @@ int main( void )
|
||||||
exampleTaskStack,
|
exampleTaskStack,
|
||||||
&exampleTaskTCB );
|
&exampleTaskTCB );
|
||||||
|
|
||||||
|
/* Start the scheduler. */
|
||||||
vTaskStartScheduler();
|
vTaskStartScheduler();
|
||||||
|
|
||||||
/* should never get here. */
|
|
||||||
for( ; ; )
|
for( ; ; )
|
||||||
{
|
{
|
||||||
|
/* Should not reach here. */
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void vApplicationStackOverflowHook( TaskHandle_t xTask,
|
void vApplicationStackOverflowHook( TaskHandle_t xTask,
|
||||||
char * pcTaskName )
|
char * pcTaskName )
|
||||||
{
|
{
|
||||||
|
/* Check pcTaskName for the name of the offending task,
|
||||||
|
* or pxCurrentTCB if pcTaskName has itself been corrupted. */
|
||||||
|
( void ) xTask;
|
||||||
|
( void ) pcTaskName;
|
||||||
}
|
}
|
||||||
|
|
||||||
void vApplicationGetTimerTaskMemory( StaticTask_t ** ppxTimerTaskTCBBuffer,
|
void vApplicationGetTimerTaskMemory( StaticTask_t ** ppxTimerTaskTCBBuffer,
|
||||||
|
|
Loading…
Reference in a new issue