Skip to content

Commit 8b6e89a

Browse files
kwagyemandpgeorge
authored andcommitted
mimxrt/modmachine: Fix deepsleep wakeup pin ifdef.
Signed-off-by: Kwabena W. Agyeman <kwagyeman@live.com>
1 parent a2e9ab3 commit 8b6e89a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ports/mimxrt/modmachine.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ NORETURN STATIC void mp_machine_deepsleep(size_t n_args, const mp_obj_t *args) {
139139
}
140140
}
141141

142-
#ifdef MIMXRT117x_SERIES
142+
#if defined(MIMXRT117x_SERIES)
143143
machine_pin_config(pin_WAKEUP_DIG, PIN_MODE_IT_RISING, PIN_PULL_DISABLED, PIN_DRIVE_OFF, 0, PIN_AF_MODE_ALT5);
144144
GPC_CM_EnableIrqWakeup(GPC_CPU_MODE_CTRL_0, GPIO13_Combined_0_31_IRQn, true);
145-
#elif defined IOMUXC_SNVS_WAKEUP_GPIO5_IO00
145+
#elif defined(pin_WAKEUP)
146146
machine_pin_config(pin_WAKEUP, PIN_MODE_IT_RISING, PIN_PULL_DISABLED, PIN_DRIVE_OFF, 0, PIN_AF_MODE_ALT5);
147147
GPC_EnableIRQ(GPC, GPIO5_Combined_0_15_IRQn);
148148
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy