]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/FreeRTOSConfig.h
Add event groups demo to SAM4E demo.
[freertos] / FreeRTOS / Demo / CORTEX_M4_ATSAM4E_Atmel_Studio / src / config / FreeRTOSConfig.h
index d7696232e2fcd460bd87f7ec4f07c28130de4fe8..758c37cb176efc6a3d7a7722d2526d020bcf45da 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.5.3 - Copyright (C) 2013 Real Time Engineers Ltd.\r
+    FreeRTOS V8.0.0:rc1 - 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
  * See http://www.freertos.org/a00110.html.\r
  *----------------------------------------------------------*/\r
 \r
+extern uint32_t SystemCoreClock;\r
+\r
 #define configUSE_PREEMPTION                                   1\r
 #define configUSE_PORT_OPTIMISED_TASK_SELECTION        1\r
 #define configUSE_QUEUE_SETS                                   1\r
 #define configUSE_IDLE_HOOK                                            0\r
 #define configUSE_TICK_HOOK                                            1\r
-#define configCPU_CLOCK_HZ                                             ( ( unsigned long ) CHIP_FREQ_CPU_MAX )\r
+#define configCPU_CLOCK_HZ                                             ( SystemCoreClock )\r
 #define configTICK_RATE_HZ                                             ( 1000 )\r
 #define configMAX_PRIORITIES                                   ( 5 )\r
 #define configMINIMAL_STACK_SIZE                               ( ( unsigned short ) 130 )\r
 #define configUSE_APPLICATION_TASK_TAG                 0\r
 #define configUSE_COUNTING_SEMAPHORES                  1\r
 \r
+/* The full demo always has tasks to run so the tick will never be turned off.\r
+The blinky demo will use the default tickless idle implementation to turn the\r
+tick off. */\r
+#define configUSE_TICKLESS_IDLE                                        1\r
+\r
 /* Run time stats gathering definitions. */\r
 void vConfigureTimerForRunTimeStats( void );\r
 uint32_t ulGetRunTimeCounterValue( void );\r
@@ -136,6 +143,8 @@ to exclude the API function. */
 #define INCLUDE_vTaskSuspend                   1\r
 #define INCLUDE_vTaskDelayUntil                        1\r
 #define INCLUDE_vTaskDelay                             1\r
+#define INCLUDE_eTaskGetState                  1\r
+#define INCLUDE_xTimerPendFunctionCall 1\r
 \r
 /* Cortex-M specific definitions. */\r
 #ifdef __NVIC_PRIO_BITS\r