mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -04:00
Add additional event group tests - and update implementation as required by test results.
This commit is contained in:
parent
a22d5ff5a5
commit
9dc39ee2a7
6 changed files with 177 additions and 24 deletions
|
@ -132,6 +132,7 @@ to exclude the API function. */
|
|||
#define INCLUDE_pcTaskGetTaskName 1
|
||||
#define INCLUDE_eTaskGetState 1
|
||||
#define INCLUDE_xSemaphoreGetMutexHolder 1
|
||||
#define INCLUDE_xTimerPendCallbackFromISR 1
|
||||
|
||||
/* Standard assert semantics. */
|
||||
extern void vAssertCalled( unsigned long ulLine, const char * const pcFileName );
|
||||
|
|
|
@ -131,6 +131,7 @@
|
|||
<ClCompile Include="..\..\..\FreeRTOS-Plus\Source\FreeRTOS-Plus-Trace\trcKernelPort.c" />
|
||||
<ClCompile Include="..\..\..\FreeRTOS-Plus\Source\FreeRTOS-Plus-Trace\trcUser.c" />
|
||||
<ClCompile Include="..\..\Source\croutine.c" />
|
||||
<ClCompile Include="..\..\Source\event_groups.c" />
|
||||
<ClCompile Include="..\..\Source\portable\MemMang\heap_4.c" />
|
||||
<ClCompile Include="..\..\Source\timers.c" />
|
||||
<ClCompile Include="..\Common\Minimal\BlockQ.c" />
|
||||
|
@ -138,6 +139,7 @@
|
|||
<ClCompile Include="..\Common\Minimal\countsem.c" />
|
||||
<ClCompile Include="..\Common\Minimal\death.c" />
|
||||
<ClCompile Include="..\Common\Minimal\dynamic.c" />
|
||||
<ClCompile Include="..\Common\Minimal\EventGroupsDemo.c" />
|
||||
<ClCompile Include="..\Common\Minimal\flop.c" />
|
||||
<ClCompile Include="..\Common\Minimal\GenQTest.c" />
|
||||
<ClCompile Include="..\Common\Minimal\integer.c" />
|
||||
|
|
|
@ -130,6 +130,12 @@
|
|||
<ClCompile Include="main_blinky.c">
|
||||
<Filter>Demo App Source</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Common\Minimal\EventGroupsDemo.c">
|
||||
<Filter>Demo App Source\Common Demo Tasks</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\Source\event_groups.c">
|
||||
<Filter>FreeRTOS Source\Source</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="FreeRTOSConfig.h">
|
||||
|
|
|
@ -132,6 +132,7 @@
|
|||
#include "dynamic.h"
|
||||
#include "QueueSet.h"
|
||||
#include "QueueOverwrite.h"
|
||||
#include "EventGroupsDemo.h"
|
||||
|
||||
/* Priorities at which the tasks are created. */
|
||||
#define mainCHECK_TASK_PRIORITY ( configMAX_PRIORITIES - 1 )
|
||||
|
@ -196,6 +197,7 @@ int main_full( void )
|
|||
vStartQueueSetTasks();
|
||||
vStartQueueOverwriteTask( mainQUEUE_OVERWRITE_PRIORITY );
|
||||
xTaskCreate( prvDemoQueueSpaceFunctions, ( signed char * ) "QSpace", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );
|
||||
vStartEventGroupTasks();
|
||||
|
||||
#if( configUSE_PREEMPTION != 0 )
|
||||
{
|
||||
|
@ -250,7 +252,11 @@ const portTickType xCycleFrequency = 2500 / portTICK_RATE_MS;
|
|||
}
|
||||
#endif
|
||||
|
||||
if( xAreIntegerMathsTaskStillRunning() != pdTRUE )
|
||||
if( xAreEventGroupTasksStillRunning() != pdTRUE )
|
||||
{
|
||||
pcStatusMessage = "Error: EventGroup";
|
||||
}
|
||||
else if( xAreIntegerMathsTaskStillRunning() != pdTRUE )
|
||||
{
|
||||
pcStatusMessage = "Error: IntMath";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue