Merge pull request #1024 from toyowata/master

Add LPC11U68 support in Sleep test case
pull/1026/head
Martin Kojtal 2015-04-09 09:27:09 +02:00
commit cb73e7a0a5
2 changed files with 6 additions and 1 deletions

View File

@ -4,6 +4,8 @@
InterruptIn wkp(P2_10); InterruptIn wkp(P2_10);
#elif defined(TARGET_K22F) #elif defined(TARGET_K22F)
InterruptIn wkp(D0); InterruptIn wkp(D0);
#elif defined(TARGET_LPC11U68)
InterruptIn wkp(P0_16);
#else #else
InterruptIn wkp(p14); InterruptIn wkp(p14);
#endif #endif
@ -13,6 +15,9 @@ void flip() {
} }
int main() { int main() {
#if defined(TARGET_LPC11U68)
wkp.mode(PullUp);
#endif
wkp.rise(&flip); wkp.rise(&flip);
while (true) { while (true) {

View File

@ -368,7 +368,7 @@ TESTS = [
"source_dir": join(TEST_DIR, "mbed", "sleep"), "source_dir": join(TEST_DIR, "mbed", "sleep"),
"dependencies": [MBED_LIBRARIES, TEST_MBED_LIB], "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
"duration": 30, "duration": 30,
"mcu": ["LPC1768", "LPC11U24", "LPC4088","LPC4088_DM","NRF51822"] "mcu": ["LPC1768", "LPC11U24", "LPC4088","LPC4088_DM","NRF51822", "LPC11U68"]
}, },
{ {
"id": "MBED_5", "description": "PWM", "id": "MBED_5", "description": "PWM",