]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/main.c
Add 'full' demo to the SAMA5 Xplained demo - but so far without interrupt nesting...
[freertos] / FreeRTOS / Demo / CORTEX_A5_SAMA5D3x_Xplained_IAR / main.c
index 1dc7685a2bb9fe5b7742dc140acb6c5e18934e0b..44ae531ff14d92f41ef0915df7a9bddb9eea3b9b 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V8.0.1 - Copyright (C) 2014 Real Time Engineers Ltd. \r
+    FreeRTOS V8.0.1 - Copyright (C) 2014 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -81,6 +81,7 @@
  */\r
 \r
 #warning Remove unused libary files.\r
+#warning document configFPU_D32\r
 \r
 /* Scheduler include files. */\r
 #include "FreeRTOS.h"\r
 #include "partest.h"\r
 #include "TimerDemo.h"\r
 #include "QueueOverwrite.h"\r
+#include "EventGroupsDemo.h"\r
 \r
 /* Library includes. */\r
 #include "chip.h"\r
 \r
 /* Set mainCREATE_SIMPLE_BLINKY_DEMO_ONLY to one to run the simple blinky demo,\r
 or 0 to run the more comprehensive test and demo application. */\r
-#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY     1\r
+#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY     0\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
@@ -124,10 +126,9 @@ void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName );
 void vApplicationTickHook( void );\r
 \r
 /*-----------------------------------------------------------*/\r
-extern int atmel_main( void );\r
-extern void vConfigureTickInterrupt( void );\r
+\r
 int main( void )\r
-{      \r
+{\r
        /* Configure the hardware ready to run the demo. */\r
        prvSetupHardware();\r
 \r
@@ -150,8 +151,8 @@ int main( void )
 static void prvSetupHardware( void )\r
 {\r
        /* Set protect mode in the AIC for easier debugging. */\r
-       AIC->AIC_DCR != AIC_DCR_PROT;\r
-       \r
+       AIC->AIC_DCR |= AIC_DCR_PROT;\r
+\r
        /* Configure ports used by LEDs. */\r
        vParTestInitialise();\r
 }\r
@@ -230,6 +231,9 @@ void vApplicationTickHook( void )
 \r
                /* Call the periodic queue overwrite from ISR demo. */\r
                vQueueOverwritePeriodicISRDemo();\r
+\r
+               /* Call the periodic event group from ISR demo. */\r
+               vPeriodicEventGroupsProcessing();\r
        }\r
        #endif\r
 }\r