WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
PMP RISCV31 Regs Operation

宏定义

#define MEMXATTR_VECTOR   2
 

函数

void hal_pmp_riscv31_regs_set_pmpaddr (uint32_t idx, uint32_t addr)
 Set address
 
void hal_pmp_riscv31_regs_set_memxattr (uint32_t idx, uint8_t attr)
 写入基地址寄存器
 
void hal_pmp_riscv31_regs_set_pmpxcfg (uint32_t idx, hal_pmpx_config_t cfg)
 写入基地址寄存器
 

详细描述

Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.

Description: Provides RISCV mpu register operation api
History:
2022-09-26, Create file.

宏定义说明

◆ MEMXATTR_VECTOR

#define MEMXATTR_VECTOR   2

函数说明

◆ hal_pmp_riscv31_regs_set_memxattr()

void hal_pmp_riscv31_regs_set_memxattr ( uint32_t  idx,
uint8_t  attr 
)

写入基地址寄存器

◆ hal_pmp_riscv31_regs_set_pmpaddr()

void hal_pmp_riscv31_regs_set_pmpaddr ( uint32_t  idx,
uint32_t  pmpaddr 
)

Set address

参数
[in]idxRegion number
[in]addrBase address, First Address in NAPOT mode and End Address in TOR mode.

Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.

Description: Provides systick register operation api
History:
2022-09-28, Create file.

◆ hal_pmp_riscv31_regs_set_pmpxcfg()

void hal_pmp_riscv31_regs_set_pmpxcfg ( uint32_t  idx,
hal_pmpx_config_t  cfg 
)

写入基地址寄存器