\r
/* Kernel includes. */\r
#include <FreeRTOS.h>\r
-#include "task.h"\r
-#include "queue.h"\r
-#include "timers.h"\r
-#include "semphr.h"\r
+#include <task.h>\r
+#include <queue.h>\r
+#include <timers.h>\r
+#include <semphr.h>\r
\r
/* Standard demo includes. */\r
#include "BlockQ.h"\r
#include "QueueOverwrite.h"\r
#include "EventGroupsDemo.h"\r
#include "IntSemTest.h"\r
+#include "TaskNotify.h"\r
\r
/* Priorities at which the tasks are created. */\r
#define mainCHECK_TASK_PRIORITY ( configMAX_PRIORITIES - 2 )\r
xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
\r
/* Create the standard demo tasks. */\r
+ vStartTaskNotifyTask();\r
vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );\r
vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
}\r
#endif\r
\r
+ if( xAreTaskNotificationTasksStillRunning() != pdTRUE )\r
+ {\r
+ pcStatusMessage = "Error: Notification";\r
+ }\r
+\r
if( xAreInterruptSemaphoreTasksStillRunning() != pdTRUE )\r
{\r
pcStatusMessage = "Error: IntSem";\r
xMutexToDelete = NULL;\r
}\r
\r
- /* Exercise heap_4 a bit. The malloc failed hook will trap failed\r
+ /* Exercise heap_5 a bit. The malloc failed hook will trap failed\r
allocations so there is no need to test here. */\r
pvAllocated = pvPortMalloc( ( rand() % 100 ) + 1 );\r
vPortFree( pvAllocated );\r
\r
/* Exercise giving mutexes from an interrupt. */\r
vInterruptSemaphorePeriodicTest();\r
+\r
+ /* Exercise using task notifications from an interrupt. */\r
+ xNotifyTaskFromISR();\r
}\r
/*-----------------------------------------------------------*/\r
\r