File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -61,4 +61,12 @@ config USE_QUEUE_SETS
61
61
help
62
62
Enable this option, the FreeRTOS macro "configUSE_QUEUE_SETS" in file "FreeRTOSConfig.h" will be set to be 1.
63
63
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
+
64
72
endmenu
Original file line number Diff line number Diff line change @@ -3310,6 +3310,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
3310
3310
}
3311
3311
#endif /* configUSE_IDLE_HOOK */
3312
3312
3313
+ #if CONFIG_ENABLE_FREERTOS_SLEEP
3313
3314
/* This conditional compilation should use inequality to 0, not equality
3314
3315
to 1. This is to ensure portSUPPRESS_TICKS_AND_SLEEP() is called when
3315
3316
user defined low power mode implementations require
@@ -3359,6 +3360,7 @@ static portTASK_FUNCTION( prvIdleTask, pvParameters )
3359
3360
}
3360
3361
}
3361
3362
#endif /* configUSE_TICKLESS_IDLE */
3363
+ #endif /* CONFIG_ENABLE_FREERTOS_SLEEP */
3362
3364
}
3363
3365
}
3364
3366
/*-----------------------------------------------------------*/
You can’t perform that action at this time.
0 commit comments