Skip to content

Commit

Permalink
Merge pull request #121 from kwagyeman/kwabena/fix_deepsleep_3
Browse files Browse the repository at this point in the history
ports/mimxrt: Fix deepsleep wakeup pin ifdef.
  • Loading branch information
iabdalkader authored Jan 22, 2024
2 parents 737c252 + 70f57df commit 5e5a24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/mimxrt/modmachine.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ NORETURN STATIC void mp_machine_deepsleep(size_t n_args, const mp_obj_t *args) {
#ifdef 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
Expand Down

0 comments on commit 5e5a24f

Please sign in to comment.