mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-31 07:26:28 +08:00
feat(esp8266): Heap only close Wi-Fi ISR at sniffer mode
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
gwen:
|
||||
core: 5550687
|
||||
net80211: 26ed10d
|
||||
pp: 55451ec
|
||||
pp: 8d4a9f8
|
||||
wpa: 4e2372f
|
||||
espnow: eeb16c6
|
||||
wps: 4e2372f
|
||||
|
Binary file not shown.
@ -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) \
|
||||
|
Reference in New Issue
Block a user