From 7ddb4d2fafa580712b289de0956796cd7b78189a Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 31 Jan 2022 23:14:26 +0000 Subject: WIPWIP: pwr: set lpms_c2? really? --- pwr/stm32_pwr.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pwr/stm32_pwr.h') 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 { 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? -- cgit v1.2.3