]> git.sur5r.net Git - freertos/blobdiff - Demo/RX600_RX62N-RDK_IAR/FreeRTOSConfig.h
Change the priorities used by the RX/RDK/IAR demo application to ensure they can...
[freertos] / Demo / RX600_RX62N-RDK_IAR / FreeRTOSConfig.h
index eeb409d50a4c888300bde203d041e41f38149e16..65f35d4874beb72a136dec2b24c76565bc23ac57 100644 (file)
 #define configMAX_CO_ROUTINE_PRIORITIES ( 2 )\r
 \r
 \r
-/* \r
+/*\r
 The interrupt priority used by the kernel itself for the tick interrupt and\r
-the pended interrupt is set by configKERNEL_INTERRUPT_PRIORITY.  This would \r
-normally be the lowest priority (1 in this case).  The maximum interrupt \r
+the pended interrupt is set by configKERNEL_INTERRUPT_PRIORITY.  This would\r
+normally be the lowest priority (1 in this case).  The maximum interrupt\r
 priority from which FreeRTOS API calls can be made is set by\r
-configMAX_SYSCALL_INTERRUPT_PRIORITY.  Interrupts that use a priority above this \r
+configMAX_SYSCALL_INTERRUPT_PRIORITY.  Interrupts that use a priority above this\r
 will not be effected by anything the kernel is doing.  Interrupts at or below\r
 this priority can use FreeRTOS API functions - but *only* those that end in\r
 "FromISR".  Both these constants are defined in 'PriorityDefinitions.h' so they\r
@@ -126,15 +126,18 @@ to exclude the API function. */
 #define INCLUDE_uxTaskGetStackHighWaterMark    1\r
 #define INCLUDE_xTaskGetSchedulerState         1\r
 \r
+#define configASSERT( x ) if( ( x ) == pdFALSE ) { taskDISABLE_INTERRUPTS(); for( ;; ); }\r
+\r
 extern volatile unsigned long ulHighFrequencyTickCount;\r
 #define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() portNOP() /* Run time stats use the same timer as the high frequency timer test. */\r
 #define portGET_RUN_TIME_COUNTER_VALUE() ulHighFrequencyTickCount\r
 \r
 \r
 /* Override some of the priorities set in the common demo tasks.  This is\r
-required to ensure flase positive timing errors are not reported. */\r
-#define bktPRIMARY_PRIORITY            ( configMAX_PRIORITIES - 2 )\r
-#define bktSECONDARY_PRIORITY  ( configMAX_PRIORITIES - 3 )\r
+required to ensure false positive timing errors are not reported. */\r
+#define bktPRIMARY_PRIORITY            ( configMAX_PRIORITIES - 3 )\r
+#define bktSECONDARY_PRIORITY  ( configMAX_PRIORITIES - 4 )\r
+#define intqHIGHER_PRIORITY            ( configMAX_PRIORITIES - 3 )\r
 \r
 \r
 /*-----------------------------------------------------------\r