summaryrefslogtreecommitdiff
path: root/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h
diff options
context:
space:
mode:
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2013-07-04 11:20:28 +0000
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2013-07-04 11:20:28 +0000
commit03ddb80a20e723631c54fa1c01a70f8d2806f541 (patch)
tree26a52035eed459783742083160d6135d30af66b1 /FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h
parentcf20d8ab394f87e350c90c3c9f6a3dd990772734 (diff)
downloadfreertos-03ddb80a20e723631c54fa1c01a70f8d2806f541.tar.gz
Added portASSERT_IF_INTERRUPT_PRIORITY_INVALID() implementation to Cortex-M3 and Cortex-M4F ports.
git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@1965 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h')
-rw-r--r--FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h b/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h
index 7d58e7b82..a006e4517 100644
--- a/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h
+++ b/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h
@@ -181,6 +181,13 @@ not necessary for to use this port. They are defined so the common demo files
/*-----------------------------------------------------------*/
+#ifdef configASSERT
+ void vPortValidateInterruptPriority( void );
+ #define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
+#else
+ #define portASSERT_IF_INTERRUPT_PRIORITY_INVALID()
+#endif
+
/* portNOP() is not required by this port. */
#define portNOP()