feat(esp8266): Heap only close Wi-Fi ISR at sniffer mode

This commit is contained in:
dongheng
2019-03-06 11:36:11 +08:00
parent b4b8295c22
commit b5a31c4459
3 changed files with 15 additions and 3 deletions

View File

@ -1,7 +1,7 @@
gwen:
core: 5550687
net80211: 26ed10d
pp: 55451ec
pp: 8d4a9f8
wpa: 4e2372f
espnow: eeb16c6
wps: 4e2372f

Binary file not shown.

View File

@ -16,14 +16,26 @@
#define _heap_caps_lock(_num) \
{ \
extern int esp_wifi_is_sniffer(void); \
extern void vPortETSIntrLock(void); \
vPortETSIntrLock(); \
extern void vPortEnterCritical(void); \
\
if (esp_wifi_is_sniffer()) \
vPortETSIntrLock(); \
else \
vPortEnterCritical(); \
}
#define _heap_caps_unlock(_num) \
{ \
extern int esp_wifi_is_sniffer(void); \
extern void vPortETSIntrUnlock(void); \
vPortETSIntrUnlock(); \
extern void vPortExitCritical(void); \
\
if (esp_wifi_is_sniffer()) \
vPortETSIntrUnlock(); \
else \
vPortExitCritical(); \
}
#define _heap_caps_feed_wdt(_num) \