Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
005a7f41
Commit
005a7f41
authored
Mar 17, 2015
by
danicampora
Browse files
cc3200: Fix extint_enable behaviour when the callback is updated.
parent
181fe501
Changes
1
Hide whitespace changes
Inline
Side-by-side
cc3200/mods/pybpin.c
View file @
005a7f41
...
...
@@ -331,11 +331,15 @@ STATIC void pin_extint_enable (mp_obj_t self_in) {
MAP_PRCMHibernateWakeupSourceDisable
(
hib_pin
);
}
}
// if idx is invalid, the the pin supports active
_idle
interrupts for sure
// if idx is invalid, the the pin supports active interrupts for sure
if
(
idx
>=
PYBPIN_NUM_WAKE_PINS
||
pybpin_wake_pin
[
idx
].
active
)
{
MAP_GPIOIntClear
(
self
->
port
,
self
->
bit
);
MAP_GPIOIntEnable
(
self
->
port
,
self
->
bit
);
}
// in case in was enabled before
else
if
(
idx
<
PYBPIN_NUM_WAKE_PINS
&&
!
pybpin_wake_pin
[
idx
].
active
)
{
MAP_GPIOIntDisable
(
self
->
port
,
self
->
bit
);
}
}
STATIC
void
pin_extint_disable
(
mp_obj_t
self_in
)
{
...
...
Write
Preview
Supports
Markdown
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