]> git.sur5r.net Git - freertos/blobdiff - Demo/CORTEX_MPU_LM3Sxxxx_Rowley/FreeRTOSConfig.h
Added CM3 MPU demo.
[freertos] / Demo / CORTEX_MPU_LM3Sxxxx_Rowley / FreeRTOSConfig.h
index a001565d166950b799dcabcfd9b70507bc1c8971..c57ad43cd534f9f07a7013d747b7db458d9d65f3 100644 (file)
@@ -65,7 +65,7 @@
 #define configUSE_TICK_HOOK                            1\r
 #define configCPU_CLOCK_HZ                             ( ( unsigned portLONG ) 50000000 )\r
 #define configTICK_RATE_HZ                             ( ( portTickType ) 1000 )\r
-#define configMINIMAL_STACK_SIZE               ( ( unsigned portSHORT ) 80 )\r
+#define configMINIMAL_STACK_SIZE               ( ( unsigned portSHORT ) 100 )\r
 #define configTOTAL_HEAP_SIZE                  ( ( size_t ) ( 24000 ) )\r
 #define configMAX_TASK_NAME_LEN                        ( 12 )\r
 #define configUSE_TRACE_FACILITY               1\r
 #define configIDLE_SHOULD_YIELD                        0\r
 #define configUSE_CO_ROUTINES                  0\r
 #define configUSE_MUTEXES                              1\r
-#define configCHECK_FOR_STACK_OVERFLOW 2\r
+#define configCHECK_FOR_STACK_OVERFLOW 0\r
 #define configUSE_RECURSIVE_MUTEXES            1\r
 #define configQUEUE_REGISTRY_SIZE              10\r
-#define configGENERATE_RUN_TIME_STATS  1\r
+#define configGENERATE_RUN_TIME_STATS  0\r
 #define configUSE_MALLOC_FAILED_HOOK   1\r
 \r
 #define configMAX_PRIORITIES           ( ( unsigned portBASE_TYPE ) 5 )\r
@@ -94,15 +94,17 @@ to exclude the API function. */
 #define INCLUDE_vTaskDelay                                     1\r
 #define INCLUDE_uxTaskGetStackHighWaterMark    1\r
 \r
+#ifdef __NVIC_PRIO_BITS\r
+       #define configPRIO_BITS       __NVIC_PRIO_BITS\r
+#else\r
+       #define configPRIO_BITS       3\r
+#endif\r
+#define configUNUSED_PRIO_BITS ( ( unsigned portCHAR ) ( 8 - configPRIO_BITS ) )\r
 \r
+#define configKERNEL_INTERRUPT_PRIORITY                ( ( unsigned portCHAR ) 7 << configUNUSED_PRIO_BITS )   /* Priority 7, or 255 as only the top three bits are implemented.  This is the lowest priority. */\r
+#define configMAX_SYSCALL_INTERRUPT_PRIORITY   ( ( unsigned portCHAR ) 5 << configUNUSED_PRIO_BITS )  /* Priority 5, or 160 as only the top three bits are implemented. */\r
 \r
-#define configKERNEL_INTERRUPT_PRIORITY                ( ( unsigned portCHAR ) 7 << ( unsigned portCHAR ) 5 )  /* Priority 7, or 255 as only the top three bits are implemented.  This is the lowest priority. */\r
-#define configMAX_SYSCALL_INTERRUPT_PRIORITY   ( ( unsigned portCHAR ) 5 << ( unsigned portCHAR ) 5 )  /* Priority 5, or 160 as only the top three bits are implemented. */\r
-\r
-extern volatile unsigned long ulHighFrequencyTimerTicks;\r
-/* There is already a high frequency timer running - just reset its count back\r
-to zero. */\r
-#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() ( ulHighFrequencyTimerTicks = 0UL )\r
-#define portGET_RUN_TIME_COUNTER_VALUE()       ulHighFrequencyTimerTicks\r
+#define pvPortMallocAligned( x, puxStackBuffer ) ( ( puxStackBuffer == NULL ) ? ( pvPortMalloc( x ) ) : ( puxStackBuffer ) )\r
+#define vPortFreeAligned( x ) ( void ) x\r
 \r
 #endif /* FREERTOS_CONFIG_H */\r