mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Revert "Update interrupts to be masked when accessing flash (#1388)"
This reverts commit 6c37fee7a189371401e384834ab98ec1da226ff8.
This commit is contained in:
parent
a4e78b430f
commit
0a320b9fb5
@ -466,15 +466,7 @@ bool EspClass::updateSketch(Stream& in, uint32_t size, bool restartOnFail, bool
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Interrupts which are masked by flash access routines
|
static const int FLASH_INT_MASK = ((B10 << 8) | B00111010);
|
||||||
static const int FLASH_INT_MASK =
|
|
||||||
(1 << ETS_SLC_INUM) |
|
|
||||||
(1 << ETS_SPI_INUM) |
|
|
||||||
(1 << ETS_GPIO_INUM) |
|
|
||||||
(1 << ETS_UART_INUM) |
|
|
||||||
(1 << ETS_CCOMPARE0_INUM) |
|
|
||||||
(1 << ETS_FRC_TIMER1_INUM);
|
|
||||||
|
|
||||||
|
|
||||||
bool EspClass::flashEraseSector(uint32_t sector) {
|
bool EspClass::flashEraseSector(uint32_t sector) {
|
||||||
ets_isr_mask(FLASH_INT_MASK);
|
ets_isr_mask(FLASH_INT_MASK);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user