mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
feat(freertos): Add option to FreeRTOS sleep module
This commit is contained in:
@ -46,4 +46,12 @@ config FREERTOS_TIMER_STACKSIZE
|
|||||||
help
|
help
|
||||||
The size of the stack used by the timer in FreeRTOS.
|
The size of the stack used by the timer in FreeRTOS.
|
||||||
|
|
||||||
|
config ENABLE_FREERTOS_SLEEP
|
||||||
|
bool "Enable FreeRTOS SLEEP"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable this option, FreeRTOS sleep module at idle task will be enable.
|
||||||
|
|
||||||
|
The module is not working now, so if users want to make it work, they should do this themselves.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
@ -3310,6 +3310,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
|
|||||||
}
|
}
|
||||||
#endif /* configUSE_IDLE_HOOK */
|
#endif /* configUSE_IDLE_HOOK */
|
||||||
|
|
||||||
|
#if CONFIG_ENABLE_FREERTOS_SLEEP
|
||||||
/* This conditional compilation should use inequality to 0, not equality
|
/* This conditional compilation should use inequality to 0, not equality
|
||||||
to 1. This is to ensure portSUPPRESS_TICKS_AND_SLEEP() is called when
|
to 1. This is to ensure portSUPPRESS_TICKS_AND_SLEEP() is called when
|
||||||
user defined low power mode implementations require
|
user defined low power mode implementations require
|
||||||
@ -3359,6 +3360,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* configUSE_TICKLESS_IDLE */
|
#endif /* configUSE_TICKLESS_IDLE */
|
||||||
|
#endif /* CONFIG_ENABLE_FREERTOS_SLEEP */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
Reference in New Issue
Block a user