1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

Move timer detachInterrupt functions into IRAM (#2083)

These functions are used from ISR in Servo library, so must be in IRAM.
This commit is contained in:
Ivan Grokhotkov 2016-06-03 15:09:03 +08:00
parent ef800308ac
commit d1fc7002c1

View File

@ -50,7 +50,7 @@ void timer1_attachInterrupt(timercallback userFunc) {
ETS_FRC1_INTR_ENABLE();
}
void timer1_detachInterrupt() {
void ICACHE_RAM_ATTR timer1_detachInterrupt() {
timer1_user_cb = 0;
TEIE &= ~TEIE1;//edge int disable
ETS_FRC1_INTR_DISABLE();
@ -95,7 +95,7 @@ void timer0_attachInterrupt(timercallback userFunc) {
ETS_CCOMPARE0_ENABLE();
}
void timer0_detachInterrupt() {
void ICACHE_RAM_ATTR timer0_detachInterrupt() {
timer0_user_cb = NULL;
ETS_CCOMPARE0_DISABLE();
}