Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit 8c92bf1

Browse files
committed
Support Nuvoton Nu-mbed-NUC472 and Nu-mbed-M453 boards
1 parent 16e9ac4 commit 8c92bf1

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

source/main-hw.h

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,41 @@ extern uint8_t g_challenge[CHALLENGE_SIZE];
127127
{(void*) 0x0FE08000, 0x1000, UVISOR_TACLDEF_SECURE_CONST}, \
128128
}
129129

130+
#elif defined(TARGET_LIKE_NUMBED_NUC472)
131+
132+
#define LED_ON false
133+
#define LED_OFF true
134+
135+
#define MAIN_LED LED_BLUE
136+
#define HALT_LED LED_RED
137+
138+
#define MAIN_BTN SW2
139+
#define MAIN_BTN_PUPD PullUp
140+
141+
#define MAIN_ACL(acl_list_name) \
142+
static const UvisorBoxAclItem acl_list_name[] = { \
143+
{(void *)0x40000000, 0x100000, UVISOR_TACLDEF_PERIPH}, \
144+
{(void *)0xE000E000, 0x1000, UVISOR_TACLDEF_PERIPH}, \
145+
{(void *)0x60000000, 0x100000, UVISOR_TACL_ACCESS}, \
146+
}
147+
148+
#elif defined(TARGET_LIKE_NUMBED_M453)
149+
150+
#define LED_ON false
151+
#define LED_OFF true
152+
153+
#define MAIN_LED LED_BLUE
154+
#define HALT_LED LED_RED
155+
156+
#define MAIN_BTN SW2
157+
#define MAIN_BTN_PUPD PullUp
158+
159+
#define MAIN_ACL(acl_list_name) \
160+
static const UvisorBoxAclItem acl_list_name[] = { \
161+
{(void *)0x40000000, 0x100000, UVISOR_TACLDEF_PERIPH}, \
162+
{(void *)0xE000E000, 0x1000, UVISOR_TACLDEF_PERIPH}, \
163+
}
164+
130165
#else
131166

132167
#define LED_ON true

0 commit comments

Comments
 (0)