diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-06-18 12:52:53 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-06-18 12:52:53 +0200 |
commit | a67b9b06a102a16190395ecdc14741bbf1c062df (patch) | |
tree | bdc0cd4666e187f93671e004e5d4cb1cff091829 /bsps/arm/atsam/include/bsp/power.h | |
parent | atsam: Enable fast startup via RTC alarm (diff) | |
download | rtems-a67b9b06a102a16190395ecdc14741bbf1c062df.tar.bz2 |
atsam: Add ATSAM_POWER_WAIT_MODE
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. * |