From 9fe3632b1728e394be00161791805e88418af4ef Mon Sep 17 00:00:00 2001 From: Toyomasa Watarai Date: Thu, 9 Apr 2015 16:06:53 +0900 Subject: [PATCH] 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 --- libraries/tests/mbed/sleep/main.cpp | 5 +++++ workspace_tools/tests.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libraries/tests/mbed/sleep/main.cpp b/libraries/tests/mbed/sleep/main.cpp index 77f25a7d19..ef8772da18 100644 --- a/libraries/tests/mbed/sleep/main.cpp +++ b/libraries/tests/mbed/sleep/main.cpp @@ -4,6 +4,8 @@ InterruptIn wkp(P2_10); #elif defined(TARGET_K22F) InterruptIn wkp(D0); +#elif defined(TARGET_LPC11U68) +InterruptIn wkp(P0_16); #else InterruptIn wkp(p14); #endif @@ -13,6 +15,9 @@ void flip() { } int main() { +#if defined(TARGET_LPC11U68) + wkp.mode(PullUp); +#endif wkp.rise(&flip); while (true) { diff --git a/workspace_tools/tests.py b/workspace_tools/tests.py index a2ccf52cb0..b52ad4c12e 100644 --- a/workspace_tools/tests.py +++ b/workspace_tools/tests.py @@ -368,7 +368,7 @@ TESTS = [ "source_dir": join(TEST_DIR, "mbed", "sleep"), "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB], "duration": 30, - "mcu": ["LPC1768", "LPC11U24", "LPC4088","LPC4088_DM","NRF51822"] + "mcu": ["LPC1768", "LPC11U24", "LPC4088","LPC4088_DM","NRF51822", "LPC11U68"] }, { "id": "MBED_5", "description": "PWM",