Skip to content

Commit 95da465

Browse files
committed
ETS_INTR_ENABLED & ETS_INT_PENDING as inline
1 parent 8393dfc commit 95da465

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/sdk/include/ets_sys.h

+2
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,14 @@ typedef void (*int_handler_t)(void*);
7373
#define ETS_INTR_DISABLE(inum) \
7474
ets_isr_mask((1<<inum))
7575

76+
inline uint32_t ETS_INTR_ENABLED(void)
7677
{
7778
uint32_t enabled;
7879
__asm__ __volatile__("esync; rsr %0,intenable":"=a" (enabled));
7980
return enabled;
8081
}
8182

83+
inline uint32_t ETS_INTR_PENDING(void)
8284
{
8385
uint32_t pending;
8486
__asm__ __volatile__("esync; rsr %0,interrupt":"=a" (pending));

0 commit comments

Comments
 (0)