Skip to content

Commit ecd1ee3

Browse files
niklarmPatater
authored andcommitted
Add EFM32GG support
Fixes #32 (#32)
1 parent 3c52176 commit ecd1ee3

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

mbed_app.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"*": {
44
"target.features_add": ["UVISOR"],
55
"target.extra_labels_add": ["UVISOR_SUPPORTED"]
6+
},
7+
"EFM32GG_STK3700": {
8+
"target.features_add": ["UVISOR"],
9+
"target.extra_labels_add": ["UVISOR_SUPPORTED"]
610
}
711
},
812
"macros": [

source/main-hw.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,26 @@
4545
{SPI0, sizeof(*SPI0), UVISOR_TACLDEF_PERIPH}, \
4646
}
4747

48+
#elif defined (TARGET_EFM32GG_STK3700)
49+
50+
#define MAIN_LED LED1
51+
#define SECURE_LED LED2
52+
#define LED_ON true
53+
#define LED_OFF false
54+
#define SECURE_SWITCH SW2
55+
#define SECURE_SWITCH_PULL PullUp
56+
57+
#define MAIN_ACL(acl_list_name) \
58+
static const UvisorBoxAclItem acl_list_name[] = { \
59+
{CMU, sizeof(*CMU), UVISOR_TACLDEF_PERIPH}, \
60+
{MSC, sizeof(*MSC), UVISOR_TACLDEF_PERIPH}, \
61+
{GPIO, sizeof(*GPIO), UVISOR_TACLDEF_PERIPH}, \
62+
{TIMER0, sizeof(*TIMER0), UVISOR_TACLDEF_PERIPH}, \
63+
{UART0, sizeof(*UART0), UVISOR_TACLDEF_PERIPH}, \
64+
{(void *) 0x0FE08000, 0x1000, UVISOR_TACLDEF_PERIPH}, \
65+
{(void *) 0x42000000, 0x2000000, UVISOR_TACLDEF_PERIPH}, \
66+
}
67+
4868
#else /* Target-specific settings */
4969

5070
#error "Unsupported target. Checkout the README.md file for the list of supported targets for this app."

0 commit comments

Comments
 (0)