/*\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
*/\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
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
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
\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