Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
8b6e89a8
Commit
8b6e89a8
authored
Jan 22, 2024
by
Kwabena W. Agyeman
Committed by
Damien George
Feb 16, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mimxrt/modmachine: Fix deepsleep wakeup pin ifdef.
Signed-off-by:
Kwabena W. Agyeman
<
kwagyeman@live.com
>
parent
a2e9ab36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ports/mimxrt/modmachine.c
ports/mimxrt/modmachine.c
+2
-2
No files found.
ports/mimxrt/modmachine.c
View file @
8b6e89a8
...
@@ -139,10 +139,10 @@ NORETURN STATIC void mp_machine_deepsleep(size_t n_args, const mp_obj_t *args) {
...
@@ -139,10 +139,10 @@ NORETURN STATIC void mp_machine_deepsleep(size_t n_args, const mp_obj_t *args) {
}
}
}
}
#if
def 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
);
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
);
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
);
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
);
GPC_EnableIRQ
(
GPC
,
GPIO5_Combined_0_15_IRQn
);
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment