Update register test tasks to include a manual yield. Include the death tasks in main-full.c. Decrease the RAM allocated to the heap in FreeRTOSConfig.h.

This commit is contained in:
Richard Barry 2011-06-13 14:41:18 +00:00
parent 1cb4a1494f
commit 587e7f0682
3 changed files with 26 additions and 18 deletions

View file

@ -276,7 +276,7 @@ int main( void )
/* The suicide tasks must be created last as they need to know how many
tasks were running prior to their creation in order to ascertain whether
or not the correct/expected number of tasks are running at any given time. */
// vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );
vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );
/* Create the 'check' timer - the timer that periodically calls the
check function as described at the top of this file. Note that, for
@ -297,6 +297,7 @@ int main( void )
/* If all is well we will never reach here as the scheduler will now be
running. If we do reach here then it is likely that there was insufficient
heap available for the idle task to be created. */
taskDISABLE_INTERRUPTS();
for( ;; );
}
/*-----------------------------------------------------------*/
@ -465,6 +466,7 @@ unsigned long ulCSR;
of this file. */
void vApplicationMallocFailedHook( void )
{
taskDISABLE_INTERRUPTS();
for( ;; );
}
/*-----------------------------------------------------------*/
@ -473,6 +475,7 @@ void vApplicationMallocFailedHook( void )
of this file. */
void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )
{
taskDISABLE_INTERRUPTS();
for( ;; );
}
/*-----------------------------------------------------------*/