summaryrefslogtreecommitdiff
path: root/FreeRTOS/Source/portable/IAR/ARM_CM4F_MPU/portasm.s
diff options
context:
space:
mode:
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2020-02-07 01:56:25 +0000
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2020-02-07 01:56:25 +0000
commitbab0e46d7558c3002ccd949f68a66ecece6721b6 (patch)
treef2ee4404d3588766a504cea45dd09e5defbbc18a /FreeRTOS/Source/portable/IAR/ARM_CM4F_MPU/portasm.s
parent14ab00a72f72ddf9fc42269d6217cd9ec97a58fd (diff)
downloadfreertos-bab0e46d7558c3002ccd949f68a66ecece6721b6.tar.gz
Add "is inside interrupt" function to MPU ports.
Make clock setup functions weak symbols in ARMv8-M ports. Update Cortex-M33 ports to use an interrupt mask in place of globally disabling interrupts, as per the other Cortex-M ports. git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@2819 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'FreeRTOS/Source/portable/IAR/ARM_CM4F_MPU/portasm.s')
-rw-r--r--FreeRTOS/Source/portable/IAR/ARM_CM4F_MPU/portasm.s6
1 files changed, 5 insertions, 1 deletions
diff --git a/FreeRTOS/Source/portable/IAR/ARM_CM4F_MPU/portasm.s b/FreeRTOS/Source/portable/IAR/ARM_CM4F_MPU/portasm.s
index 1c0db8da7..d223de62b 100644
--- a/FreeRTOS/Source/portable/IAR/ARM_CM4F_MPU/portasm.s
+++ b/FreeRTOS/Source/portable/IAR/ARM_CM4F_MPU/portasm.s
@@ -24,7 +24,11 @@
*
* 1 tab == 4 spaces!
*/
-
+/* Including FreeRTOSConfig.h here will cause build errors if the header file
+contains code not understood by the assembler - for example the 'extern' keyword.
+To avoid errors place any such code inside a #ifdef __ICCARM__/#endif block so
+the code is included in C files but excluded by the preprocessor in assembly
+files (__ICCARM__ is defined by the IAR C compiler but not by the IAR assembler. */
#include <FreeRTOSConfig.h>
RSEG CODE:CODE(2)