mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-06 05:21:22 +03:00
Revert "ETS_INTR_ENABLED & ETS_INT_PENDING as inline"
This reverts commit 9560c67aa86659bd9f8210f807706e35b85ae9be.
This commit is contained in:
parent
4ad7f3bf07
commit
897a61e84f
@ -73,14 +73,12 @@ typedef void (*int_handler_t)(void*);
|
||||
#define ETS_INTR_DISABLE(inum) \
|
||||
ets_isr_mask((1<<inum))
|
||||
|
||||
inline uint32_t ETS_INTR_ENABLED(void)
|
||||
{
|
||||
uint32_t enabled;
|
||||
__asm__ __volatile__("esync; rsr %0,intenable":"=a" (enabled));
|
||||
return enabled;
|
||||
}
|
||||
|
||||
inline uint32_t ETS_INTR_PENDING(void)
|
||||
{
|
||||
uint32_t pending;
|
||||
__asm__ __volatile__("esync; rsr %0,interrupt":"=a" (pending));
|
||||
|
Loading…
x
Reference in New Issue
Block a user