]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/IAR/ARM_CM33/non_secure/portmacro.h
Add Cortex M23 GCC and IAR ports. Add demo projects for Nuvoton NuMaker-PFM-2351.
[freertos] / FreeRTOS / Source / portable / IAR / ARM_CM33 / non_secure / portmacro.h
index 4dede1716519640059a21e4b8a5ca3a68954f3d2..aacb3875d9c802288afda0431249f4bc372e06c1 100644 (file)
@@ -135,18 +135,14 @@ extern void vClearInterruptMaskFromISR( uint32_t ulMask ) /* __attribute__(( nak
 /* MPU regions. */\r
 #define portPRIVILEGED_FLASH_REGION                                                    ( 0UL )\r
 #define portUNPRIVILEGED_FLASH_REGION                                          ( 1UL )\r
-#define portPRIVILEGED_RAM_REGION                                                      ( 2UL )\r
-#define portUNPRIVILEGED_DEVICE_REGION                                         ( 3UL )\r
+#define portUNPRIVILEGED_SYSCALLS_REGION                                       ( 2UL )\r
+#define portPRIVILEGED_RAM_REGION                                                      ( 3UL )\r
 #define portSTACK_REGION                                                                       ( 4UL )\r
 #define portFIRST_CONFIGURABLE_REGION                                          ( 5UL )\r
 #define portLAST_CONFIGURABLE_REGION                                           ( 7UL )\r
 #define portNUM_CONFIGURABLE_REGIONS                                           ( ( portLAST_CONFIGURABLE_REGION - portFIRST_CONFIGURABLE_REGION ) + 1 )\r
 #define portTOTAL_NUM_REGIONS                                                          ( portNUM_CONFIGURABLE_REGIONS + 1 ) /* Plus one to make space for the stack region. */\r
 \r
-/* Devices Region. */\r
-#define portDEVICE_REGION_START_ADDRESS                                                ( 0x50000000 )\r
-#define portDEVICE_REGION_END_ADDRESS                                          ( 0x5FFFFFFF )\r
-\r
 /* Device memory attributes used in MPU_MAIR registers.\r
  *\r
  * 8-bit values encoded as follows:\r
@@ -289,6 +285,12 @@ typedef struct MPU_SETTINGS
 #endif /* configENABLE_MPU */\r
 /*-----------------------------------------------------------*/\r
 \r
+/**\r
+ * @brief Barriers.\r
+ */\r
+#define portMEMORY_BARRIER() __asm volatile( "" ::: "memory" )\r
+/*-----------------------------------------------------------*/\r
+\r
 #ifdef __cplusplus\r
 }\r
 #endif\r