WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
hal_pmp.h
浏览该文件的文档.
1
9#ifndef HAL_PMP_H
10#define HAL_PMP_H
11
12#include <stdint.h>
13#include "errcode.h"
14#include "pmp_porting.h"
15
16#ifdef __cplusplus
17#if __cplusplus
18extern "C" {
19#endif /* __cplusplus */
20#endif /* __cplusplus */
21
35typedef struct hal_pmpx_config {
36 uint8_t rwx : 3;
38 uint8_t a : 2;
40 uint8_t resv_0 : 2;
42 uint8_t l : 1;
45
53typedef struct hal_pmp_conf {
54 uint32_t idx;
56 uint32_t addr;
58 uint8_t attr;
63
78
90
105
118
129
134#ifdef __cplusplus
135#if __cplusplus
136}
137#endif /* __cplusplus */
138#endif /* __cplusplus */
139
140#endif
uint32_t errcode_t
Definition of error code.
Definition errcode.h:30
errcode_t hal_pmp_unregister_funcs(void)
从g_hal_pmp_funcs注销 hal_pmp_funcs_t
Definition hal_pmp.c:28
struct hal_pmp_conf hal_pmp_conf_t
PMP hal层配置参数
struct hal_pmp_funcs hal_pmp_funcs_t
PMP配置处理结构体
errcode_t hal_pmp_register_funcs(hal_pmp_funcs_t *funcs)
注册 hal_pmp_funcs_t 到 g_hal_pmp_funcs
Definition hal_pmp.c:14
struct hal_pmpx_config hal_pmpx_config_t
PMP hal层域配置参数
errcode_t(* hal_pmp_config)(hal_pmp_conf_t *config)
PMP域配置。
Definition hal_pmp.h:77
hal_pmp_funcs_t * hal_pmp_get_funcs(void)
获取Driver层pmp和HAL层pmp的接口实例,参考 hal_pmp_funcs_t.
Definition hal_pmp.c:23
PMP hal层配置参数
Definition hal_pmp.h:53
uint32_t addr
Definition hal_pmp.h:56
uint32_t idx
Definition hal_pmp.h:54
uint8_t attr
Definition hal_pmp.h:58
hal_pmpx_config_t cfg
Definition hal_pmp.h:60
PMP配置处理结构体
Definition hal_pmp.h:86
hal_pmp_config config
Definition hal_pmp.h:87
PMP hal层域配置参数
Definition hal_pmp.h:35
uint8_t l
Definition hal_pmp.h:42
uint8_t a
Definition hal_pmp.h:38
uint8_t rwx
Definition hal_pmp.h:36
uint8_t resv_0
Definition hal_pmp.h:40