Skip to content

Commit 9a75856

Browse files
committed
Add support for the DISCO_F429ZI target
1 parent 8fec27d commit 9a75856

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ As usual, all the code/data that is not protected by a secure box ends up in the
2020

2121
Supported devices:
2222

23-
| Target | Toolchain | Baud rate |
24-
|--------|-----------|-----------|
25-
| `K64F` | `GCC_ARM` | 9600 |
23+
| Target | Toolchain | Baud rate |
24+
|----------------|-----------|-----------|
25+
| `K64F` | `GCC_ARM` | 9600 |
26+
| `DISCO_F429ZI` | `GCC_ARM` | 9600 |
2627

2728
Latest release: [mbed-os-5.3.x](https://github.com/ARMmbed/mbed-os-example-uvisor/releases/tag/latest). Tested with [mbed-cli v1.0.0](https://github.com/ARMmbed/mbed-cli/releases/tag/1.0.0).
2829

source/main-hw.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,32 @@ extern Serial shared_pc;
4747
{SPI0, sizeof(*SPI0), UVISOR_TACLDEF_PERIPH}, \
4848
}
4949

50+
#elif defined(TARGET_DISCO_F429ZI)
51+
52+
#define LED_ON true
53+
#define LED_OFF false
54+
55+
#define MAIN_ACL(acl_list_name) \
56+
static const UvisorBoxAclItem acl_list_name[] = { \
57+
{GPIOA, sizeof(*GPIOA), UVISOR_TACLDEF_PERIPH}, \
58+
{GPIOB, sizeof(*GPIOB), UVISOR_TACLDEF_PERIPH}, \
59+
{GPIOC, sizeof(*GPIOC), UVISOR_TACLDEF_PERIPH}, \
60+
{GPIOD, sizeof(*GPIOD), UVISOR_TACLDEF_PERIPH}, \
61+
{GPIOE, sizeof(*GPIOE), UVISOR_TACLDEF_PERIPH}, \
62+
{RTC, sizeof(*RTC), UVISOR_TACLDEF_PERIPH}, \
63+
{TIM5, sizeof(*TIM5), UVISOR_TACLDEF_PERIPH}, \
64+
{USART1, sizeof(*USART1), UVISOR_TACLDEF_PERIPH}, \
65+
{I2C1, sizeof(*I2C1), UVISOR_TACLDEF_PERIPH}, \
66+
{SPI1, sizeof(*SPI1), UVISOR_TACLDEF_PERIPH}, \
67+
{RCC, sizeof(*RCC), UVISOR_TACLDEF_PERIPH}, \
68+
{FLASH, sizeof(*FLASH), UVISOR_TACLDEF_PERIPH}, \
69+
{PWR, sizeof(*PWR), UVISOR_TACLDEF_PERIPH}, \
70+
{EXTI, sizeof(*EXTI), UVISOR_TACLDEF_PERIPH}, \
71+
{GPIOG, sizeof(*GPIOG), UVISOR_TACLDEF_PERIPH}, \
72+
{SYSCFG, sizeof(*SYSCFG), UVISOR_TACLDEF_PERIPH}, \
73+
{(void *) 0x42000000, 0x01000000, UVISOR_TACLDEF_PERIPH}, /* FIXME */ \
74+
}
75+
5076
#else /* Target-specific settings */
5177

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

0 commit comments

Comments
 (0)