mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
Add first version of alternative API.
This commit is contained in:
parent
b6d2b739f3
commit
8603259d40
17 changed files with 2308 additions and 120 deletions
|
@ -88,9 +88,13 @@
|
|||
#include "mevents.h"
|
||||
#include "crhook.h"
|
||||
#include "blocktim.h"
|
||||
#include "AltBlock.h"
|
||||
#include "GenQTest.h"
|
||||
#include "QPeek.h"
|
||||
#include "countsem.h"
|
||||
#include "AltQTest.h"
|
||||
#include "AltPollQ.h"
|
||||
#include "AltBlckQ.h"
|
||||
|
||||
/* Priority definitions for the tasks in the demo application. */
|
||||
#define mainLED_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
||||
|
@ -155,7 +159,11 @@ portSHORT main( void )
|
|||
vStartMultiEventTasks();
|
||||
vStartQueuePeekTasks();
|
||||
vStartCountingSemaphoreTasks();
|
||||
|
||||
vStartAltGenericQueueTasks( mainGENERIC_QUEUE_PRIORITY );
|
||||
vCreateAltBlockTimeTasks();
|
||||
vStartAltBlockingQueueTasks( mainQUEUE_BLOCK_PRIORITY );
|
||||
vStartAltPolledQueueTasks( mainQUEUE_POLL_PRIORITY );
|
||||
|
||||
/* Create the "Print" task as described at the top of the file. */
|
||||
xTaskCreate( vErrorChecks, "Print", mainPRINT_STACK_SIZE, NULL, mainPRINT_TASK_PRIORITY, NULL );
|
||||
|
||||
|
@ -318,12 +326,24 @@ static portSHORT sErrorHasOccurred = pdFALSE;
|
|||
sErrorHasOccurred = pdTRUE;
|
||||
}
|
||||
|
||||
if( xAreAltBlockingQueuesStillRunning() != pdTRUE )
|
||||
{
|
||||
vDisplayMessage( "Alt blocking queues count unchanged!\r\n" );
|
||||
sErrorHasOccurred = pdTRUE;
|
||||
}
|
||||
|
||||
if( xArePollingQueuesStillRunning() != pdTRUE )
|
||||
{
|
||||
vDisplayMessage( "Polling queue count unchanged!\r\n" );
|
||||
sErrorHasOccurred = pdTRUE;
|
||||
}
|
||||
|
||||
if( xAreAltPollingQueuesStillRunning() != pdTRUE )
|
||||
{
|
||||
vDisplayMessage( "Alt polling queue count unchanged!\r\n" );
|
||||
sErrorHasOccurred = pdTRUE;
|
||||
}
|
||||
|
||||
if( xIsCreateTaskStillRunning() != pdTRUE )
|
||||
{
|
||||
vDisplayMessage( "Incorrect number of tasks running!\r\n" );
|
||||
|
@ -366,12 +386,24 @@ static portSHORT sErrorHasOccurred = pdFALSE;
|
|||
sErrorHasOccurred = pdTRUE;
|
||||
}
|
||||
|
||||
if( xAreAltBlockTimeTestTasksStillRunning() != pdTRUE )
|
||||
{
|
||||
vDisplayMessage( "Error in fast block time test tasks!\r\n" );
|
||||
sErrorHasOccurred = pdTRUE;
|
||||
}
|
||||
|
||||
if( xAreGenericQueueTasksStillRunning() != pdTRUE )
|
||||
{
|
||||
vDisplayMessage( "Error in generic queue test task!\r\n" );
|
||||
sErrorHasOccurred = pdTRUE;
|
||||
}
|
||||
|
||||
if( xAreAltGenericQueueTasksStillRunning() != pdTRUE )
|
||||
{
|
||||
vDisplayMessage( "Error in fast generic queue test task!\r\n" );
|
||||
sErrorHasOccurred = pdTRUE;
|
||||
}
|
||||
|
||||
if( xAreQueuePeekTasksStillRunning() != pdTRUE )
|
||||
{
|
||||
vDisplayMessage( "Error in queue peek test task!\r\n" );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue