Skip to content

Commit 1b701ca

Browse files
committed
Merge branch 'feature/option_freertos_idle_pm_ctrl' into 'master'
fAdd option to FreeRTOS sleep module See merge request sdk/ESP8266_RTOS_SDK!806
2 parents 015f622 + 723faf0 commit 1b701ca

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

components/freertos/Kconfig

+8
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,12 @@ config USE_QUEUE_SETS
6161
help
6262
Enable this option, the FreeRTOS macro "configUSE_QUEUE_SETS" in file "FreeRTOSConfig.h" will be set to be 1.
6363

64+
config ENABLE_FREERTOS_SLEEP
65+
bool "Enable FreeRTOS SLEEP"
66+
default n
67+
help
68+
Enable this option, FreeRTOS sleep module at idle task will be enable.
69+
70+
The module is not working now, so if users want to make it work, they should do this themselves.
71+
6472
endmenu

components/freertos/freertos/tasks.c

+2
Original file line numberDiff line numberDiff line change
@@ -3310,6 +3310,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
33103310
}
33113311
#endif /* configUSE_IDLE_HOOK */
33123312

3313+
#if CONFIG_ENABLE_FREERTOS_SLEEP
33133314
/* This conditional compilation should use inequality to 0, not equality
33143315
to 1. This is to ensure portSUPPRESS_TICKS_AND_SLEEP() is called when
33153316
user defined low power mode implementations require
@@ -3359,6 +3360,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
33593360
}
33603361
}
33613362
#endif /* configUSE_TICKLESS_IDLE */
3363+
#endif /* CONFIG_ENABLE_FREERTOS_SLEEP */
33623364
}
33633365
}
33643366
/*-----------------------------------------------------------*/

0 commit comments

Comments
 (0)