mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-05 22:11:04 +08:00
feat(esp8266): Heap only close Wi-Fi ISR at sniffer mode
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
gwen:
|
gwen:
|
||||||
core: 5550687
|
core: 5550687
|
||||||
net80211: 26ed10d
|
net80211: 26ed10d
|
||||||
pp: 55451ec
|
pp: 8d4a9f8
|
||||||
wpa: 4e2372f
|
wpa: 4e2372f
|
||||||
espnow: eeb16c6
|
espnow: eeb16c6
|
||||||
wps: 4e2372f
|
wps: 4e2372f
|
||||||
|
Binary file not shown.
@ -16,14 +16,26 @@
|
|||||||
|
|
||||||
#define _heap_caps_lock(_num) \
|
#define _heap_caps_lock(_num) \
|
||||||
{ \
|
{ \
|
||||||
|
extern int esp_wifi_is_sniffer(void); \
|
||||||
extern void vPortETSIntrLock(void); \
|
extern void vPortETSIntrLock(void); \
|
||||||
|
extern void vPortEnterCritical(void); \
|
||||||
|
\
|
||||||
|
if (esp_wifi_is_sniffer()) \
|
||||||
vPortETSIntrLock(); \
|
vPortETSIntrLock(); \
|
||||||
|
else \
|
||||||
|
vPortEnterCritical(); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define _heap_caps_unlock(_num) \
|
#define _heap_caps_unlock(_num) \
|
||||||
{ \
|
{ \
|
||||||
|
extern int esp_wifi_is_sniffer(void); \
|
||||||
extern void vPortETSIntrUnlock(void); \
|
extern void vPortETSIntrUnlock(void); \
|
||||||
|
extern void vPortExitCritical(void); \
|
||||||
|
\
|
||||||
|
if (esp_wifi_is_sniffer()) \
|
||||||
vPortETSIntrUnlock(); \
|
vPortETSIntrUnlock(); \
|
||||||
|
else \
|
||||||
|
vPortExitCritical(); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define _heap_caps_feed_wdt(_num) \
|
#define _heap_caps_feed_wdt(_num) \
|
||||||
|
Reference in New Issue
Block a user