mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-02 04:13:54 -04:00
Add event group code to the PIC32MZ demo.
This commit is contained in:
parent
0f6b699eef
commit
c3dd6f6593
10 changed files with 69 additions and 31 deletions
|
@ -138,6 +138,7 @@
|
|||
#include "QueueOverwrite.h"
|
||||
#include "QueueSet.h"
|
||||
#include "recmutex.h"
|
||||
#include "EventGroupsDemo.h"
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -236,6 +237,7 @@ TimerHandle_t xTimer = NULL;
|
|||
vStartQueueOverwriteTask( mainQUEUE_OVERWRITE_TASK_PRIORITY );
|
||||
vStartQueueSetTasks();
|
||||
vStartRecursiveMutexTasks();
|
||||
vStartEventGroupTasks();
|
||||
|
||||
/* Create the tasks defined within this file. */
|
||||
xTaskCreate( prvRegTestTask1, /* The function that implements the task. */
|
||||
|
@ -383,13 +385,17 @@ extern unsigned long ulHighFrequencyTimerInterrupts;
|
|||
{
|
||||
ulErrorOccurred |= ( 0x01UL << 12UL );
|
||||
}
|
||||
else if( xAreEventGroupTasksStillRunning() != pdTRUE )
|
||||
{
|
||||
ulErrorOccurred |= ( 0x01UL << 13UL );
|
||||
}
|
||||
|
||||
/* Ensure the expected number of high frequency interrupts have occurred. */
|
||||
if( ulLastHighFrequencyTimerInterrupts != 0 )
|
||||
{
|
||||
if( ( ulHighFrequencyTimerInterrupts - ulLastHighFrequencyTimerInterrupts ) < ulExpectedHighFrequencyInterrupts )
|
||||
{
|
||||
ulErrorOccurred |= ( 0x01UL << 13UL );
|
||||
ulErrorOccurred |= ( 0x01UL << 14UL );
|
||||
}
|
||||
}
|
||||
ulLastHighFrequencyTimerInterrupts = ulHighFrequencyTimerInterrupts;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue