]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/Common/Minimal/TaskNotify.c
Add some asserts into the common demo tasks to catch scenarios where the tasks are...
[freertos] / FreeRTOS / Demo / Common / Minimal / TaskNotify.c
index 8307323b7765e2327a2251cebe265df95db8e282..4adc06f56d6af4b7312c55b3d79cfeabc6c2b682 100644 (file)
@@ -609,6 +609,9 @@ const BaseType_t xCallInterval = pdMS_TO_TICKS( 50 );
 uint32_t ulPreviousValue;\r
 const uint32_t ulUnexpectedValue = 0xff;\r
 \r
+       /* Check the task notification demo tasks were actually created. */\r
+       configASSERT( xTaskToNotify );\r
+\r
        /* The task performs some tests before starting the timer that gives the\r
        notification from this interrupt.  If the timer has not been created yet\r
        then the initial tests have not yet completed and the notification should\r