From 8e174aa518096a4ce40f321e8fa76aac839a4f25 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Thu, 21 May 2015 12:13:18 +1000 Subject: [PATCH] Comment vPortEnterCritical/vPortExitCritical functions --- FreeRTOS/Source/portable/esp8266/port.c | 7 +++++++ FreeRTOS/Source/portable/esp8266/sdk_compat.c | 17 ----------------- 2 files changed, 7 insertions(+), 17 deletions(-) diff --git a/FreeRTOS/Source/portable/esp8266/port.c b/FreeRTOS/Source/portable/esp8266/port.c index 690e97e..0aaed7b 100644 --- a/FreeRTOS/Source/portable/esp8266/port.c +++ b/FreeRTOS/Source/portable/esp8266/port.c @@ -199,6 +199,13 @@ void vPortEndScheduler( void ) variable. */ static unsigned portBASE_TYPE uxCriticalNesting = 0; +/* These nested vPortEnter/ExitCritical macros are called by SDK + * libraries in libmain, libnet80211, libpp + * + * It may be possible to replace the global nesting count variable + * with a save/restore of interrupt level, although it's difficult as + * the functions have no return value. + */ void vPortEnterCritical( void ) { portDISABLE_INTERRUPTS(); diff --git a/FreeRTOS/Source/portable/esp8266/sdk_compat.c b/FreeRTOS/Source/portable/esp8266/sdk_compat.c index c48604e..36b6f7c 100644 --- a/FreeRTOS/Source/portable/esp8266/sdk_compat.c +++ b/FreeRTOS/Source/portable/esp8266/sdk_compat.c @@ -4,23 +4,6 @@ #include #include "FreeRTOS.h" -/* Enable/Disable Interrupts - - Called from many of the linked libraries to protect critical sections. - */ - -/* -void vPortEnterCritical( void ) -{ - portDISABLE_INTERRUPTS(); -} - -void vPortExitCritical( void ) -{ - portEXIT_CRITICAL(); -} -*/ - /* libc memory management functions. Many of these are linked from the RTOS SDK blob libraries.