diff options
| author | xoviat <[email protected]> | 2023-09-14 18:36:03 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-09-14 18:36:03 -0500 |
| commit | 309c3d6b472aa07bdf8b96f57eef5c0b5a686844 (patch) | |
| tree | 931429de12df3dbe060aa0e172e9af541483c35e | |
| parent | f1f4943ca51e8827146daca950fdf88d5b1e046b (diff) | |
update metapac
| -rw-r--r-- | embassy-stm32/Cargo.toml | 4 | ||||
| -rw-r--r-- | embassy-stm32/src/adc/v2.rs | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml index dfc9022bf..24d0912f0 100644 --- a/embassy-stm32/Cargo.toml +++ b/embassy-stm32/Cargo.toml | |||
| @@ -58,7 +58,7 @@ sdio-host = "0.5.0" | |||
| 58 | embedded-sdmmc = { git = "https://github.com/embassy-rs/embedded-sdmmc-rs", rev = "a4f293d3a6f72158385f79c98634cb8a14d0d2fc", optional = true } | 58 | embedded-sdmmc = { git = "https://github.com/embassy-rs/embedded-sdmmc-rs", rev = "a4f293d3a6f72158385f79c98634cb8a14d0d2fc", optional = true } |
| 59 | critical-section = "1.1" | 59 | critical-section = "1.1" |
| 60 | atomic-polyfill = "1.0.1" | 60 | atomic-polyfill = "1.0.1" |
| 61 | stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-4e6a74f69c4bc5d2d4872ba50d805e75bfe55cad" } | 61 | stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-4d58d2d6648d526feb6bc45748dc73a05d41a5f3" } |
| 62 | vcell = "0.1.3" | 62 | vcell = "0.1.3" |
| 63 | bxcan = "0.7.0" | 63 | bxcan = "0.7.0" |
| 64 | nb = "1.0.0" | 64 | nb = "1.0.0" |
| @@ -77,7 +77,7 @@ critical-section = { version = "1.1", features = ["std"] } | |||
| 77 | [build-dependencies] | 77 | [build-dependencies] |
| 78 | proc-macro2 = "1.0.36" | 78 | proc-macro2 = "1.0.36" |
| 79 | quote = "1.0.15" | 79 | quote = "1.0.15" |
| 80 | stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-4e6a74f69c4bc5d2d4872ba50d805e75bfe55cad", default-features = false, features = ["metadata"]} | 80 | stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-4d58d2d6648d526feb6bc45748dc73a05d41a5f3", default-features = false, features = ["metadata"]} |
| 81 | 81 | ||
| 82 | [features] | 82 | [features] |
| 83 | default = ["rt"] | 83 | default = ["rt"] |
diff --git a/embassy-stm32/src/adc/v2.rs b/embassy-stm32/src/adc/v2.rs index 4fbd1cfa2..f583c08a9 100644 --- a/embassy-stm32/src/adc/v2.rs +++ b/embassy-stm32/src/adc/v2.rs | |||
| @@ -125,7 +125,7 @@ where | |||
| 125 | /// [Adc::read_internal()] to perform conversion. | 125 | /// [Adc::read_internal()] to perform conversion. |
| 126 | pub fn enable_vrefint(&self) -> VrefInt { | 126 | pub fn enable_vrefint(&self) -> VrefInt { |
| 127 | T::common_regs().ccr().modify(|reg| { | 127 | T::common_regs().ccr().modify(|reg| { |
| 128 | reg.set_tsvrefe(crate::pac::adccommon::vals::Tsvrefe::ENABLED); | 128 | reg.set_tsvrefe(true); |
| 129 | }); | 129 | }); |
| 130 | 130 | ||
| 131 | VrefInt {} | 131 | VrefInt {} |
| @@ -138,7 +138,7 @@ where | |||
| 138 | /// temperature sensor will return vbat value. | 138 | /// temperature sensor will return vbat value. |
| 139 | pub fn enable_temperature(&self) -> Temperature { | 139 | pub fn enable_temperature(&self) -> Temperature { |
| 140 | T::common_regs().ccr().modify(|reg| { | 140 | T::common_regs().ccr().modify(|reg| { |
| 141 | reg.set_tsvrefe(crate::pac::adccommon::vals::Tsvrefe::ENABLED); | 141 | reg.set_tsvrefe(true); |
| 142 | }); | 142 | }); |
| 143 | 143 | ||
| 144 | Temperature {} | 144 | Temperature {} |
| @@ -148,7 +148,7 @@ where | |||
| 148 | /// [Adc::read_internal()] to perform conversion. | 148 | /// [Adc::read_internal()] to perform conversion. |
| 149 | pub fn enable_vbat(&self) -> Vbat { | 149 | pub fn enable_vbat(&self) -> Vbat { |
| 150 | T::common_regs().ccr().modify(|reg| { | 150 | T::common_regs().ccr().modify(|reg| { |
| 151 | reg.set_vbate(crate::pac::adccommon::vals::Vbate::ENABLED); | 151 | reg.set_vbate(true); |
| 152 | }); | 152 | }); |
| 153 | 153 | ||
| 154 | Vbat {} | 154 | Vbat {} |
