From 33d1e82b737127d1b65ff84c66cbdce9c195629b Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Wed, 14 Jun 2023 09:09:56 +0200 Subject: [PATCH] cpu/samd5x: define power modes --- cpu/samd5x/include/periph_cpu.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cpu/samd5x/include/periph_cpu.h b/cpu/samd5x/include/periph_cpu.h index ba0f343067..f89b6ee498 100644 --- a/cpu/samd5x/include/periph_cpu.h +++ b/cpu/samd5x/include/periph_cpu.h @@ -54,6 +54,16 @@ extern "C" { * @{ */ #define PM_NUM_MODES (4) /**< Backup, Hibernate, Standby, Idle */ + +/** + * @brief Power modes + */ +enum { + SAM0_PM_BACKUP = 0, + SAM0_PM_HIBERNATE = 1, + SAM0_PM_STANDBY = 2, + SAM0_PM_IDLE = 3, +}; /** @} */ /**