summaryrefslogtreecommitdiff
path: root/pwr
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2022-02-01 00:14:26 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2022-04-16 21:37:28 +0200
commit7ddb4d2fafa580712b289de0956796cd7b78189a (patch)
treeba77bff7fe062cc4be75a60aaa58c6764c62bae1 /pwr
parent3696c07f0707daa106d85ccd2b81fbad1adb22dd (diff)
WIPWIP: pwr: set lpms_c2?
really?
Diffstat (limited to 'pwr')
-rw-r--r--pwr/stm32_pwr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pwr/stm32_pwr.h b/pwr/stm32_pwr.h
index 2c49be6..1067005 100644
--- a/pwr/stm32_pwr.h
+++ b/pwr/stm32_pwr.h
@@ -62,6 +62,13 @@ class STM32_PWR_t : public mmio_ptr<T> {
ptr()->CR1 &= ~(0x7);
ptr()->CR1 |= (level);
}
+
+ /// Sets the LPMS state for CPU2. (only available on WB)
+ /// \param level
+ void set_lpms_c2(uint32_t level) const {
+ ptr()->C2CR1 &= ~(0x7);
+ ptr()->C2CR1 |= (level);
+ }
};
// TODO - methods for pullup/pulldowns?