uint32_t errcode_t
Definition of error code.
Definition errcode.h:30
errcode_t uapi_mpu_init(void)
初始化MPU。
void uapi_mpu_disable(void)
去使能MPU。
errcode_t uapi_mpu_region_enable(uint8_t mpu_region_num, const mpu_config_t *mpu_cfg)
使能PMU域功能。
void uapi_mpu_enable(bool open_privdef, bool enable_hfnmi)
使能MPU。
struct mpu_config mpu_config_t
MPU配置信息定义。
errcode_t uapi_mpu_region_disable(uint8_t mpu_region_num)
去使能PMU域功能。
errcode_t uapi_mpu_config(const mpu_config_t *mpu_cfg, uint8_t mpu_cfg_size)
配置MPU。
void uapi_mpu_deinit(void)
去初始化MPU。
MPU配置信息定义。
Definition mpu.h:36
bool mpu_rasr_cache_en
MPU缓存使能位。
Definition mpu.h:148
uint8_t mpu_rasr_srd
MPU子域禁止。
Definition mpu.h:164
uint32_t mpu_region_addr
MPU域地址,需要被mpu_region_len整除。
Definition mpu.h:44
bool mpu_rasr_exec_en
MPU指令访问使能位。
Definition mpu.h:132
bool mpu_rasr_share_en
MPU共用使能位。
Definition mpu.h:156
uint8_t mpu_rasr_ap
MPU数据访问的权限。
Definition mpu.h:116
uint32_t mpu_region_len
Definition mpu.h:108
bool mpu_rasr_buffer_en
MPU缓冲使能位。
Definition mpu.h:124
uint8_t mpu_rasr_tex
MPU类型展开域。
Definition mpu.h:140