diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-04-13 03:30:30 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2024-04-14 22:06:41 +0200 |
| commit | 4079a8acf8d0d33dc1ca815475492cbf33407464 (patch) | |
| tree | 4f1867f6764be36dcedc023a7043fd81c0f83a9a /examples/stm32g4 | |
| parent | 1f3b690f76b6732e1ff152091040cec833da25cf (diff) | |
stm32/adc: update g4 for new pac.
Diffstat (limited to 'examples/stm32g4')
| -rw-r--r-- | examples/stm32g4/src/bin/adc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32g4/src/bin/adc.rs b/examples/stm32g4/src/bin/adc.rs index 68b54e406..3de38cbd6 100644 --- a/examples/stm32g4/src/bin/adc.rs +++ b/examples/stm32g4/src/bin/adc.rs | |||
| @@ -29,7 +29,7 @@ async fn main(_spawner: Spawner) { | |||
| 29 | info!("Hello World!"); | 29 | info!("Hello World!"); |
| 30 | 30 | ||
| 31 | let mut adc = Adc::new(p.ADC2); | 31 | let mut adc = Adc::new(p.ADC2); |
| 32 | adc.set_sample_time(SampleTime::CYCLES32_5); | 32 | adc.set_sample_time(SampleTime::CYCLES24_5); |
| 33 | 33 | ||
| 34 | loop { | 34 | loop { |
| 35 | let measured = adc.read(&mut p.PA7); | 35 | let measured = adc.read(&mut p.PA7); |
