File tree Expand file tree Collapse file tree 7 files changed +35
-2
lines changed Expand file tree Collapse file tree 7 files changed +35
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ DigitalOut indicator(LED1);
21
21
22
22
#else
23
23
24
+ #error [NOT_SUPPORTED] This test is not supported on this target
25
+
24
26
#endif
25
27
26
28
uint8_t successes = 0 ;
Original file line number Diff line number Diff line change
1
+ #if !DEVICE_INTERRUPTIN
2
+ #error [NOT_SUPPORTED] InterruptIn is not supported
3
+ #endif
4
+
1
5
#include " test_env.h"
2
6
3
7
DigitalOut myled (LED1);
@@ -101,7 +105,7 @@ void in_handler() {
101
105
#define PIN_OUT PB02
102
106
#define PIN_IN PB03
103
107
104
- #elif defined(TARGET_SAML21J18A)
108
+ #elif defined(TARGET_SAML21J18A)
105
109
#define PIN_OUT PA02
106
110
#define PIN_IN PA03
107
111
Original file line number Diff line number Diff line change
1
+ #if !DEVICE_INTERRUPTIN
2
+ #error [NOT_SUPPORTED] InterruptIn is not supported
3
+ #endif
4
+
1
5
#include " mbed.h"
2
6
3
7
#if defined(TARGET_LPC4088)
Original file line number Diff line number Diff line change
1
+ #if !DEVICE_PORTIN
2
+ #error [NOT_SUPPORTED] PortIn is not supported
3
+ #endif
4
+
5
+ #if !DEVICE_PORTOUT
6
+ #error [NOT_SUPPORTED] PortOut is not supported
7
+ #endif
8
+
1
9
#include " test_env.h"
2
10
3
11
#if defined(TARGET_K64F) || defined(TARGET_KL05Z)
90
98
#define P2_1 (1 << 1 ) // PA_1
91
99
#define P2_2 (1 << 2 ) // PA_2
92
100
#define PORT_2 PortA
93
-
101
+
94
102
#elif defined(TARGET_NUCLEO_F030R8) || \
95
103
defined (TARGET_NUCLEO_F070RB) || \
96
104
defined(TARGET_NUCLEO_F072RB) || \
176
184
#define P2_2 (1 << 1 ) /* PB01*/
177
185
#define PORT_2 PortB
178
186
187
+ #else
188
+ #error [NOT_SUPPORTED] This test is not supported on this target
189
+
179
190
#endif
180
191
181
192
#define MASK_1 (P1_1 | P1_2)
Original file line number Diff line number Diff line change
1
+ #if !DEVICE_RTC
2
+ #error [NOT_SUPPORTED] RTC is not supported
3
+ #endif
4
+
1
5
#include " mbed.h"
2
6
#include " test_env.h"
3
7
Original file line number Diff line number Diff line change
1
+ #if !DEVICE_SLEEP
2
+ #error [NOT_SUPPORTED] Sleep is not supported
3
+ #endif
4
+
1
5
#include " test_env.h"
2
6
3
7
#if defined(TARGET_LPC4088)
Original file line number Diff line number Diff line change
1
+ #if !DEVICE_SLEEP
2
+ #error [NOT_SUPPORTED] Sleep is not supported
3
+ #endif
4
+
1
5
#include " mbed.h"
2
6
3
7
DigitalOut led1 (LED1);
You can’t perform that action at this time.
0 commit comments