mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-18 09:08:33 -04:00
Update the queue peek behaviour and add QPeek test files.
This commit is contained in:
parent
5f16b0abca
commit
c77358491a
6 changed files with 588 additions and 92 deletions
|
@ -120,6 +120,7 @@ Changes from V3.2.4
|
|||
#include "crhook.h"
|
||||
#include "blocktim.h"
|
||||
#include "GenQTest.h"
|
||||
#include "QPeek.h"
|
||||
|
||||
/* Priority definitions for the tasks in the demo application. */
|
||||
#define mainLED_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
||||
|
@ -182,6 +183,7 @@ portSHORT main( void )
|
|||
vStartSemaphoreTasks( mainSEMAPHORE_TASK_PRIORITY );
|
||||
vStartDynamicPriorityTasks();
|
||||
vStartMultiEventTasks();
|
||||
vStartQueuePeekTasks();
|
||||
|
||||
/* Create the "Print" task as described at the top of the file. */
|
||||
xTaskCreate( vErrorChecks, "Print", mainPRINT_STACK_SIZE, NULL, mainPRINT_TASK_PRIORITY, NULL );
|
||||
|
@ -399,6 +401,12 @@ static portSHORT sErrorHasOccurred = pdFALSE;
|
|||
sErrorHasOccurred = pdTRUE;
|
||||
}
|
||||
|
||||
if( xAreQueuePeekTasksStillRunning() != pdTRUE )
|
||||
{
|
||||
vDisplayMessage( "Error in queue peek test task!\r\n" );
|
||||
sErrorHasOccurred = pdTRUE;
|
||||
}
|
||||
|
||||
if( sErrorHasOccurred == pdFALSE )
|
||||
{
|
||||
vDisplayMessage( "OK " );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue