feat(FreeRTOS): Modify for ESP8266

This commit is contained in:
Dong Heng
2018-08-22 10:59:29 +08:00
parent 56e89a4372
commit 8633994744
4 changed files with 21 additions and 5 deletions

View File

@@ -83,6 +83,7 @@
* See http://www.freertos.org/a00110.html.
*----------------------------------------------------------*/
#define portNUM_PROCESSORS 1
#define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 1
#define configUSE_TICK_HOOK 0

View File

@@ -167,6 +167,8 @@ void PortEnableInt_NoNest( void );
#define portENTER_CRITICAL() vPortEnterCritical()
#define portEXIT_CRITICAL() vPortExitCritical()
#define xPortGetCoreID() 0
// no need to disable/enable lvl1 isr again in ISR
//#define portSET_INTERRUPT_MASK_FROM_ISR() PortDisableInt_NoNest()
//#define portCLEAR_INTERRUPT_MASK_FROM_ISR(x) PortEnableInt_NoNest()