mirror of https://github.com/ARMmbed/mbed-os.git
[K22F] Sleep/deepsleep verified to work
Works properly with waking from interruptin, not from timeout from regular sleep, but thats the nature of the current KSDK Ticker timer used, can be changed later on :)pull/476/head
parent
a1be82dc81
commit
0de8335c20
|
@ -45,7 +45,7 @@
|
|||
#define DEVICE_LOCALFILESYSTEM 0
|
||||
#define DEVICE_ID_LENGTH 24
|
||||
|
||||
#define DEVICE_SLEEP 0
|
||||
#define DEVICE_SLEEP 1
|
||||
|
||||
#define DEVICE_DEBUG_AWARENESS 0
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
#if defined(TARGET_LPC4088)
|
||||
InterruptIn wkp(P2_10);
|
||||
#elif defined(TARGET_K22F)
|
||||
InterruptIn wkp(D0);
|
||||
#else
|
||||
InterruptIn wkp(p14);
|
||||
#endif
|
||||
|
|
|
@ -312,7 +312,7 @@ TESTS = [
|
|||
"source_dir": join(TEST_DIR, "mbed", "sleep"),
|
||||
"dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
|
||||
"duration": 30,
|
||||
"mcu": ["LPC1768", "LPC11U24", "LPC4088","NRF51822"]
|
||||
"mcu": ["LPC1768", "LPC11U24", "LPC4088","NRF51822","K22F"]
|
||||
},
|
||||
{
|
||||
"id": "MBED_5", "description": "PWM",
|
||||
|
|
Loading…
Reference in New Issue