diff options
| -rw-r--r-- | embassy-stm32/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-stm32/src/lib.rs b/embassy-stm32/src/lib.rs index 05b1ff045..ab6ef8ef4 100644 --- a/embassy-stm32/src/lib.rs +++ b/embassy-stm32/src/lib.rs | |||
| @@ -286,7 +286,8 @@ pub fn init(config: Config) -> Peripherals { | |||
| 286 | { | 286 | { |
| 287 | crate::pac::PWR.cr2().modify(|w| { | 287 | crate::pac::PWR.cr2().modify(|w| { |
| 288 | // The official documentation states that we should ideally enable VDDIO2 | 288 | // The official documentation states that we should ideally enable VDDIO2 |
| 289 | // through the PVME2 bit, but it looks like this bit | 289 | // through the PVME2 bit, but it looks like this isn't required, |
| 290 | // and CubeMX itself skips this step. | ||
| 290 | w.set_iosv(config.enable_independent_io_supply); | 291 | w.set_iosv(config.enable_independent_io_supply); |
| 291 | }); | 292 | }); |
| 292 | } | 293 | } |
