Skip to content

Commit d1a8367

Browse files
authored
Merge pull request #832 from stm32-rs/adcc-unmacro
unmacro ADC
2 parents 0321245 + c77b40c commit d1a8367

File tree

3 files changed

+472
-430
lines changed

3 files changed

+472
-430
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
- Unmacro `Adc`
1011
- Use `write` instead of `modify` to clear flags
1112
- Bump `stm32f4-staging` to 0.18, update other dependencies
1213

examples/rtic-adc-dma.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ mod app {
7272
.dma(Dma::Continuous)
7373
.scan(Scan::Enabled);
7474

75-
let mut adc = Adc::adc1(device.ADC1, true, adc_config);
75+
let mut adc = Adc::new(device.ADC1, true, adc_config);
7676
adc.configure_channel(&Temperature, Sequence::One, SampleTime::Cycles_480);
7777
adc.configure_channel(&voltage, Sequence::Two, SampleTime::Cycles_480);
7878
adc.enable_temperature_and_vref();

0 commit comments

Comments
 (0)