File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 17
17
#ifndef __UVISOR_HELLOWORLD_MAIN_HW_H__
18
18
#define __UVISOR_HELLOWORLD_MAIN_HW_H__
19
19
20
- /* The vector containing the challenge is shared with the push-button ISR, so
21
- * that it can attempt to access it from an IRQ context. */
20
+ extern DigitalOut led_red ;
21
+ extern DigitalOut led_green ;
22
+ extern DigitalOut led_blue ;
23
+
24
+ #if defined(TARGET_K64F )
22
25
23
26
#define LED_ON false
24
27
#define LED_OFF true
25
28
26
- #define MAIN_LED LED_BLUE
27
- #define HALT_LED LED_RED
28
-
29
- #define MAIN_BTN SW2
30
- #define MAIN_BTN_PUPD PullUp
31
-
32
29
#define MAIN_ACL (acl_list_name ) \
33
30
static const UvisorBoxAclItem acl_list_name[] = { \
34
31
{SIM, sizeof(*SIM), UVISOR_TACLDEF_PERIPH}, \
48
45
{SPI0, sizeof(*SPI0), UVISOR_TACLDEF_PERIPH}, \
49
46
}
50
47
51
- extern DigitalOut led_red ;
52
- extern DigitalOut led_green ;
53
- extern DigitalOut led_blue ;
48
+ #else /* Target-specific settings */
49
+
50
+ #error "Unsupported target. Checkout the README.md file for the list of supported targets for this app."
51
+
52
+ #endif /* Target-specific settings */
54
53
55
54
#endif /* __UVISOR_HELLOWORLD_MAIN_HW_H__ */
You can’t perform that action at this time.
0 commit comments