]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_M4F_CEC1302_Keil_GCC/main_full/main_full.c
Add software timer use to the new MPU demo.
[freertos] / FreeRTOS / Demo / CORTEX_M4F_CEC1302_Keil_GCC / main_full / main_full.c
index 834acd4c5baa7dc79e73f0cf0167d58c1b4e1a51..8e477886fa57bf4bfdde937bab7a66e6ed87cbcb 100644 (file)
@@ -75,6 +75,9 @@
  * on using conifgCREATE_LOW_POWER_DEMO in main.c.  This file implements the\r
  * comprehensive test and demo version.\r
  *\r
+ * The simple blinky demo uses aggregated interrupts.  The full demo uses\r
+ * disaggregated interrupts.\r
+ *\r
  * NOTE 2:  This file only contains the source code that is specific to the\r
  * full demo.  Generic functions, such FreeRTOS hook functions, and functions\r
  * required to configure the hardware, are defined in main.c.\r
 #include "IntQueue.h"\r
 #include "EventGroupsDemo.h"\r
 #include "TaskNotify.h"\r
+#include "StaticAllocation.h"\r
 \r
 /* Priorities for the demo application tasks. */\r
 #define mainSEM_TEST_PRIORITY                          ( tskIDLE_PRIORITY + 1UL )\r
@@ -223,6 +227,7 @@ void main_full( void )
        vStartEventGroupTasks();\r
        vStartTaskNotifyTask();\r
        vStartInterruptQueueTasks();\r
+       vStartStaticallyAllocatedTasks();\r
 \r
        /* Create the register check tasks, as described at the top of this     file */\r
        xTaskCreate( prvRegTestTaskEntry1, "Reg1", configMINIMAL_STACK_SIZE, mainREG_TEST_TASK_1_PARAMETER, tskIDLE_PRIORITY, NULL );\r
@@ -265,10 +270,10 @@ unsigned long ulErrorFound = pdFALSE;
        xLastExecutionTime = xTaskGetTickCount();\r
 \r
        /* Cycle for ever, delaying then checking all the other tasks are still\r
-       operating without error.  The onboard LED is toggled on each iteration.\r
+       operating without error.  The on board LED is toggled on each iteration.\r
        If an error is detected then the delay period is decreased from\r
        mainNO_ERROR_CHECK_TASK_PERIOD to mainERROR_CHECK_TASK_PERIOD.  This has the\r
-       effect of increasing the rate at which the onboard LED toggles, and in so\r
+       effect of increasing the rate at which the on board LED toggles, and in so\r
        doing gives visual feedback of the system status. */\r
        for( ;; )\r
        {\r
@@ -322,6 +327,11 @@ unsigned long ulErrorFound = pdFALSE;
                        ulErrorFound = 1UL << 10UL;\r
                }\r
 \r
+               if( xAreStaticAllocationTasksStillRunning() != pdPASS )\r
+               {\r
+                       ulErrorFound = 1UL << 11UL;\r
+               }\r
+\r
                if( xAreEventGroupTasksStillRunning() != pdPASS )\r
                {\r
                        ulErrorFound = 1UL << 12UL;\r