mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
Improve clearing GPIO interrupt state (thanks @me-no-dev)
This commit is contained in:
@ -111,8 +111,8 @@ static uint32_t interrupt_reg = 0;
|
|||||||
|
|
||||||
void ICACHE_RAM_ATTR interrupt_handler(void *arg) {
|
void ICACHE_RAM_ATTR interrupt_handler(void *arg) {
|
||||||
uint32_t status = GPIE;
|
uint32_t status = GPIE;
|
||||||
uint32_t levels = GPI;
|
|
||||||
GPIEC = status;//clear them interrupts
|
GPIEC = status;//clear them interrupts
|
||||||
|
uint32_t levels = GPI;
|
||||||
if(status == 0 || interrupt_reg == 0) return;
|
if(status == 0 || interrupt_reg == 0) return;
|
||||||
ETS_GPIO_INTR_DISABLE();
|
ETS_GPIO_INTR_DISABLE();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
Reference in New Issue
Block a user