Skip to content

Commit 9fe3632

Browse files
committed
Add LPC11U68 support in Sleep test case
- Add LPC11U68 target in MBED_4 test case - Add wakeup pin for LPC11U68 target and set PullUp mode
1 parent 9ef9a54 commit 9fe3632

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

libraries/tests/mbed/sleep/main.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
InterruptIn wkp(P2_10);
55
#elif defined(TARGET_K22F)
66
InterruptIn wkp(D0);
7+
#elif defined(TARGET_LPC11U68)
8+
InterruptIn wkp(P0_16);
79
#else
810
InterruptIn wkp(p14);
911
#endif
@@ -13,6 +15,9 @@ void flip() {
1315
}
1416

1517
int main() {
18+
#if defined(TARGET_LPC11U68)
19+
wkp.mode(PullUp);
20+
#endif
1621
wkp.rise(&flip);
1722

1823
while (true) {

workspace_tools/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
"source_dir": join(TEST_DIR, "mbed", "sleep"),
369369
"dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
370370
"duration": 30,
371-
"mcu": ["LPC1768", "LPC11U24", "LPC4088","LPC4088_DM","NRF51822"]
371+
"mcu": ["LPC1768", "LPC11U24", "LPC4088","LPC4088_DM","NRF51822", "LPC11U68"]
372372
},
373373
{
374374
"id": "MBED_5", "description": "PWM",

0 commit comments

Comments
 (0)