mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
move IRQ handler to ram.
This commit is contained in:
parent
14949f50d6
commit
6c20126a5f
@ -109,7 +109,7 @@ typedef struct {
|
|||||||
static interrupt_handler_t interrupt_handlers[16];
|
static interrupt_handler_t interrupt_handlers[16];
|
||||||
static uint32_t interrupt_reg = 0;
|
static uint32_t interrupt_reg = 0;
|
||||||
|
|
||||||
void interrupt_handler(void *arg) {
|
void ICACHE_RAM_ATTR interrupt_handler(void *arg) {
|
||||||
uint32_t status = GPIE;
|
uint32_t status = GPIE;
|
||||||
GPIEC = status;//clear them interrupts
|
GPIEC = status;//clear them interrupts
|
||||||
if(status == 0 || interrupt_reg == 0) return;
|
if(status == 0 || interrupt_reg == 0) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user