Skip to content

Commit 83da5fc

Browse files
Update portSTACK_REGION macro for continuity with user Regions (#713)
1 parent 2cdd0e5 commit 83da5fc

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

portable/GCC/ARM_CM3_MPU/portmacro.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
#define portMPU_REGION_CACHEABLE_BUFFERABLE ( 0x07UL << 16UL )
8787
#define portMPU_REGION_EXECUTE_NEVER ( 0x01UL << 28UL )
8888

89-
#define portGENERAL_PERIPHERALS_REGION ( 3UL )
90-
#define portSTACK_REGION ( 4UL )
89+
#define portSTACK_REGION ( 3UL )
90+
#define portGENERAL_PERIPHERALS_REGION ( 4UL )
9191
#define portUNPRIVILEGED_FLASH_REGION ( 5UL )
9292
#define portPRIVILEGED_FLASH_REGION ( 6UL )
9393
#define portPRIVILEGED_RAM_REGION ( 7UL )

portable/GCC/ARM_CM4_MPU/portmacro.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ typedef unsigned long UBaseType_t;
175175
#define configTEX_S_C_B_SRAM ( 0x07UL )
176176
#endif
177177

178-
#define portGENERAL_PERIPHERALS_REGION ( configTOTAL_MPU_REGIONS - 5UL )
179-
#define portSTACK_REGION ( configTOTAL_MPU_REGIONS - 4UL )
178+
#define portSTACK_REGION ( configTOTAL_MPU_REGIONS - 5UL )
179+
#define portGENERAL_PERIPHERALS_REGION ( configTOTAL_MPU_REGIONS - 4UL )
180180
#define portUNPRIVILEGED_FLASH_REGION ( configTOTAL_MPU_REGIONS - 3UL )
181181
#define portPRIVILEGED_FLASH_REGION ( configTOTAL_MPU_REGIONS - 2UL )
182182
#define portPRIVILEGED_RAM_REGION ( configTOTAL_MPU_REGIONS - 1UL )

portable/IAR/ARM_CM4F_MPU/portmacro.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ typedef unsigned long UBaseType_t;
177177
#define configTEX_S_C_B_SRAM ( 0x07UL )
178178
#endif
179179

180-
#define portGENERAL_PERIPHERALS_REGION ( configTOTAL_MPU_REGIONS - 5UL )
181-
#define portSTACK_REGION ( configTOTAL_MPU_REGIONS - 4UL )
180+
#define portSTACK_REGION ( configTOTAL_MPU_REGIONS - 5UL )
181+
#define portGENERAL_PERIPHERALS_REGION ( configTOTAL_MPU_REGIONS - 4UL )
182182
#define portUNPRIVILEGED_FLASH_REGION ( configTOTAL_MPU_REGIONS - 3UL )
183183
#define portPRIVILEGED_FLASH_REGION ( configTOTAL_MPU_REGIONS - 2UL )
184184
#define portPRIVILEGED_RAM_REGION ( configTOTAL_MPU_REGIONS - 1UL )

portable/RVDS/ARM_CM4_MPU/portmacro.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ typedef unsigned long UBaseType_t;
174174
#define configTEX_S_C_B_SRAM ( 0x07UL )
175175
#endif
176176

177-
#define portGENERAL_PERIPHERALS_REGION ( configTOTAL_MPU_REGIONS - 5UL )
178-
#define portSTACK_REGION ( configTOTAL_MPU_REGIONS - 4UL )
177+
#define portSTACK_REGION ( configTOTAL_MPU_REGIONS - 5UL )
178+
#define portGENERAL_PERIPHERALS_REGION ( configTOTAL_MPU_REGIONS - 4UL )
179179
#define portUNPRIVILEGED_FLASH_REGION ( configTOTAL_MPU_REGIONS - 3UL )
180180
#define portPRIVILEGED_FLASH_REGION ( configTOTAL_MPU_REGIONS - 2UL )
181181
#define portPRIVILEGED_RAM_REGION ( configTOTAL_MPU_REGIONS - 1UL )

0 commit comments

Comments
 (0)