Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
1a39a9f1
Commit
1a39a9f1
authored
Feb 13, 2018
by
Arnim Läuger
Committed by
Marcel Stör
Feb 13, 2018
Browse files
disable (and clear) unexpected interrupts (#2234)
parent
f4046274
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/platform/platform.c
View file @
1a39a9f1
...
...
@@ -247,6 +247,10 @@ static void ICACHE_RAM_ATTR platform_gpio_intr_dispatcher (void *dummy){
}
// We re-enable the interrupt when we execute the callback (if level)
}
}
else
{
// this is an unexpected interrupt so shut it off for now
gpio_pin_intr_state_set
(
GPIO_ID_PIN
(
j
),
GPIO_PIN_INTR_DISABLE
);
GPIO_REG_WRITE
(
GPIO_STATUS_W1TC_ADDRESS
,
BIT
(
j
));
}
}
}
...
...
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