feat(freertos): Reduce close NMI time

This commit is contained in:
dongheng
2019-03-07 20:34:34 +08:00
parent 05b7351a06
commit 7e25156286
10 changed files with 13 additions and 40 deletions

View File

@ -51,13 +51,9 @@ extern uint32_t WDEV_INTEREST_EVENT;
#define ETS_NMI_LOCK() \
do { \
char m = 10; \
do { \
REG_WRITE(INT_ENA_WDEV, 0); \
m = 10; \
for (; m > 0; m--) {} \
REG_WRITE(INT_ENA_WDEV, WDEV_TSF0_REACH_INT); \
} while(0); \
} while(REG_READ(INT_ENA_WDEV) != WDEV_TSF0_REACH_INT); \
} while (0)
#define ETS_NMI_UNLOCK() \
@ -68,13 +64,9 @@ extern uint32_t WDEV_INTEREST_EVENT;
#define ETS_INTR_LOCK() do { \
if (NMIIrqIsOn == 0) { \
vPortEnterCritical(); \
char m = 10; \
do { \
REG_WRITE(INT_ENA_WDEV, 0); \
m = 10; \
for (; m > 0; m--) {} \
REG_WRITE(INT_ENA_WDEV, WDEV_TSF0_REACH_INT); \
} while(0); \
} while(REG_READ(INT_ENA_WDEV) != WDEV_TSF0_REACH_INT); \
} \
} while(0)

View File

@ -1,10 +1,10 @@
gwen:
core: f0128c3
net80211: f0128c3
pp: f0128c3
wpa: f0128c3
espnow: f0128c3
wps: f0128c3
core: 021ebb5
net80211: 021ebb5
pp: 021ebb5
wpa: 021ebb5
espnow: 021ebb5
wps: 021ebb5
smartconfig: 2.8.1
phy: 1055_8

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.