diff options
Diffstat (limited to 'bsps/arm/atsam/include/bsp/power.h')
-rw-r--r-- | bsps/arm/atsam/include/bsp/power.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/bsps/arm/atsam/include/bsp/power.h b/bsps/arm/atsam/include/bsp/power.h index dd9946acfc..77a8c33869 100644 --- a/bsps/arm/atsam/include/bsp/power.h +++ b/bsps/arm/atsam/include/bsp/power.h @@ -179,9 +179,6 @@ void atsam_power_handler_rtc_driver( /** * @brief Power handler to enter the processor sleep mode. * - * For the power off state, the processor is set into the sleep mode and issues - * a wait for interrupt instruction. - * * @see ATSAM_POWER_SLEEP_MODE(). */ void atsam_power_handler_sleep_mode( @@ -190,6 +187,18 @@ void atsam_power_handler_sleep_mode( ); /** + * @brief Power handler to enter the processor wait mode. + * + * The internal flash is put into deep sleep mode. + * + * @see ATSAM_POWER_WAIT_MODE(). + */ +void atsam_power_handler_wait_mode( + const atsam_power_control *controls, + atsam_power_state state +); + +/** * @brief Initializer for a peripheral power support. * * @param f The first peripheral index. @@ -213,6 +222,9 @@ void atsam_power_handler_sleep_mode( #define ATSAM_POWER_SLEEP_MODE \ { .handler = atsam_power_handler_sleep_mode } +#define ATSAM_POWER_WAIT_MODE \ + { .handler = atsam_power_handler_wait_mode } + /** * @brief Data for RTC driver power support. * |