summaryrefslogtreecommitdiffstats
path: root/watch-library/hardware/hpl
diff options
context:
space:
mode:
Diffstat (limited to 'watch-library/hardware/hpl')
-rw-r--r--watch-library/hardware/hpl/pm/hpl_pm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/watch-library/hardware/hpl/pm/hpl_pm.c b/watch-library/hardware/hpl/pm/hpl_pm.c
index d6439f1d..2e9e37b5 100644
--- a/watch-library/hardware/hpl/pm/hpl_pm.c
+++ b/watch-library/hardware/hpl/pm/hpl_pm.c
@@ -64,6 +64,14 @@ int32_t _set_sleep_mode(const uint8_t mode)
}
/**
+ * \brief Get the sleep mode for the device
+ */
+int32_t _get_sleep_mode()
+{
+ return hri_pm_read_SLEEPCFG_SLEEPMODE_bf(PM);
+}
+
+/**
* \brief Set performance level
*/
void _set_performance_level(const uint8_t level)