STM32G474xx HAL User Manual
宏定义
MPU区域大小
CORTEX导出常量

宏定义

#define LL_MPU_REGION_SIZE_32B   (0x04U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_64B   (0x05U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_128B   (0x06U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_256B   (0x07U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_512B   (0x08U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_1KB   (0x09U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_2KB   (0x0AU << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_4KB   (0x0BU << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_8KB   (0x0CU << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_16KB   (0x0DU << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_32KB   (0x0EU << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_64KB   (0x0FU << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_128KB   (0x10U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_256KB   (0x11U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_512KB   (0x12U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_1MB   (0x13U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_2MB   (0x14U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_4MB   (0x15U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_8MB   (0x16U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_16MB   (0x17U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_32MB   (0x18U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_64MB   (0x19U << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_128MB   (0x1AU << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_256MB   (0x1BU << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_512MB   (0x1CU << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_1GB   (0x1DU << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_2GB   (0x1EU << MPU_RASR_SIZE_Pos)
#define LL_MPU_REGION_SIZE_4GB   (0x1FU << MPU_RASR_SIZE_Pos)

宏定义说明

#define LL_MPU_REGION_SIZE_128B   (0x06U << MPU_RASR_SIZE_Pos)

128B MPU保护区域的大小

Definition at line 118 of file stm32g4xx_ll_cortex.h.

#define LL_MPU_REGION_SIZE_128KB   (0x10U << MPU_RASR_SIZE_Pos)

128KB MPU保护区域的大小

Definition at line 128 of file stm32g4xx_ll_cortex.h.

#define LL_MPU_REGION_SIZE_128MB   (0x1AU << MPU_RASR_SIZE_Pos)

128MB MPU保护区域的大小

Definition at line 138 of file stm32g4xx_ll_cortex.h.

#define LL_MPU_REGION_SIZE_16KB   (0x0DU << MPU_RASR_SIZE_Pos)

16KB MPU保护区域的大小

Definition at line 125 of file stm32g4xx_ll_cortex.h.

#define LL_MPU_REGION_SIZE_16MB   (0x17U << MPU_RASR_SIZE_Pos)

16MB MPU保护区域的大小

Definition at line 135 of file stm32g4xx_ll_cortex.h.

#define LL_MPU_REGION_SIZE_1GB   (0x1DU << MPU_RASR_SIZE_Pos)

1GB MPU保护区域的大小

Definition at line 141 of file stm32g4xx_ll_cortex.h.

#define LL_MPU_REGION_SIZE_1KB   (0x09U << MPU_RASR_SIZE_Pos)

1KB MPU保护区域的大小

Definition at line 121 of file stm32g4xx_ll_cortex.h.

#define LL_MPU_REGION_SIZE_1MB   (0x13U << MPU_RASR_SIZE_Pos)

1MB MPU保护区域的大小

Definition at line 131 of file stm32g4xx_ll_cortex.h.

#define LL_MPU_REGION_SIZE_256B   (0x07U << MPU_RASR_SIZE_Pos)

256B MPU保护区域的大小

Definition at line 119 of file stm32g4xx_ll_cortex.h.

#define LL_MPU_REGION_SIZE_256KB   (0x11U << MPU_RASR_SIZE_Pos)

256KB MPU保护区域的大小

Definition at line 129 of file stm32g4xx_ll_cortex.h.

#define LL_MPU_REGION_SIZE_256MB   (0x1BU << MPU_RASR_SIZE_Pos)

256MB MPU保护区域的大小

Definition at line 139 of file stm32g4xx_ll_cortex.h.

#define LL_MPU_REGION_SIZE_2GB   (0x1EU << MPU_RASR_SIZE_Pos)

2GB MPU保护区域的大小

Definition at line 142 of file stm32g4xx_ll_cortex.h.