Skip to content

Commit 0e028ee

Browse files
niklarmAlessandroA
authored andcommitted
Add MPS2 target ACLs
1 parent 39cc1d4 commit 0e028ee

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

source/main-hw.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,29 @@
7676
{(void *) 0x42000000, 0x01000000, UVISOR_TACLDEF_PERIPH}, /* FIXME */ \
7777
}
7878

79+
#elif defined(TARGET_MPS2)
80+
81+
#define MAIN_LED USERLED1
82+
#define SECURE_LED USERLED2
83+
#define LED_ON true
84+
#define LED_OFF false
85+
#define SECURE_SWITCH USERSW1
86+
#define SECURE_SWITCH_PULL PullUp
87+
88+
#define MAIN_ACL(acl_list_name) \
89+
static const UvisorBoxAclItem acl_list_name[] = { \
90+
{CMSDK_GPIO0, sizeof(*CMSDK_GPIO0), UVISOR_TACLDEF_PERIPH}, \
91+
{CMSDK_GPIO1, sizeof(*CMSDK_GPIO1), UVISOR_TACLDEF_PERIPH}, \
92+
{CMSDK_UART0, sizeof(*CMSDK_UART0), UVISOR_TACLDEF_PERIPH}, \
93+
{CMSDK_UART1, sizeof(*CMSDK_UART1), UVISOR_TACLDEF_PERIPH}, \
94+
{CMSDK_UART2, sizeof(*CMSDK_UART2), UVISOR_TACLDEF_PERIPH}, \
95+
{CMSDK_DUALTIMER, sizeof(*CMSDK_DUALTIMER), UVISOR_TACLDEF_PERIPH}, \
96+
}
97+
98+
#else /* Target-specific settings */
99+
100+
#error "Unsupported target. Check out the README.md file to see the list of supported targets."
101+
79102
#endif /* Target-specific settings */
80103

81104
#endif /* __UVISOR_HELLOWORLD_MAIN_HW_H__ */

0 commit comments

Comments
 (0)