aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKwabena W. Agyeman <kwagyeman@live.com>2024-01-22 14:01:02 -0800
committerDamien George <damien@micropython.org>2024-01-26 13:59:41 +1100
commitbf6214505fb477890416f4c5ec5912611fc361d6 (patch)
tree0e74c1187809b16cba56dab1a2438a443d1e52ff
parentd4190815a3f0a3fd31c056db46cac3970395c586 (diff)
mimxrt/modmachine: Fix deepsleep wakeup pin ifdef.
Signed-off-by: Kwabena W. Agyeman <kwagyeman@live.com>
-rw-r--r--ports/mimxrt/modmachine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/mimxrt/modmachine.c b/ports/mimxrt/modmachine.c
index b87747b40..e01703af8 100644
--- a/ports/mimxrt/modmachine.c
+++ b/ports/mimxrt/modmachine.c
@@ -139,10 +139,10 @@ NORETURN STATIC void mp_machine_deepsleep(size_t n_args, const mp_obj_t *args) {
}
}
- #ifdef MIMXRT117x_SERIES
+ #if defined(MIMXRT117x_SERIES)
machine_pin_config(pin_WAKEUP_DIG, PIN_MODE_IT_RISING, PIN_PULL_DISABLED, PIN_DRIVE_OFF, 0, PIN_AF_MODE_ALT5);
GPC_CM_EnableIrqWakeup(GPC_CPU_MODE_CTRL_0, GPIO13_Combined_0_31_IRQn, true);
- #elif defined IOMUXC_SNVS_WAKEUP_GPIO5_IO00
+ #elif defined(pin_WAKEUP)
machine_pin_config(pin_WAKEUP, PIN_MODE_IT_RISING, PIN_PULL_DISABLED, PIN_DRIVE_OFF, 0, PIN_AF_MODE_ALT5);
GPC_EnableIRQ(GPC, GPIO5_Combined_0_15_IRQn);
#endif