Skip to content

Commit 753f491

Browse files
niklarmPatater
authored andcommitted
Add EFM32GG support
Fixes #32 (#32)
1 parent d4f423b commit 753f491

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

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."

test/filters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"blacklist" : [ {
3-
"platforms" : ["EFM32GG_STK3700", "DISCO_F429ZI"]
3+
"platforms" : ["DISCO_F429ZI"]
44
}
55
]
66
}

0 commit comments

Comments
 (0)