diff options
| author | Mathis Deroo <[email protected]> | 2025-12-09 15:13:07 -0800 |
|---|---|---|
| committer | Mathis Deroo <[email protected]> | 2025-12-09 15:13:07 -0800 |
| commit | 4f0eb421de9e08bbbf7f9a58f8b29c451de59894 (patch) | |
| tree | 3443f4b877101a88e18a4eb4eada7627aa1e6365 /examples/mcxa/src/bin/adc_polling.rs | |
| parent | 06c16ca54dc846efa4b256620b4658a5b8378f81 (diff) | |
run rustfmt
Signed-off-by: Mathis Deroo <[email protected]>
Diffstat (limited to 'examples/mcxa/src/bin/adc_polling.rs')
| -rw-r--r-- | examples/mcxa/src/bin/adc_polling.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/mcxa/src/bin/adc_polling.rs b/examples/mcxa/src/bin/adc_polling.rs index b11b8957f..d048bb56f 100644 --- a/examples/mcxa/src/bin/adc_polling.rs +++ b/examples/mcxa/src/bin/adc_polling.rs | |||
| @@ -4,9 +4,9 @@ | |||
| 4 | use embassy_executor::Spawner; | 4 | use embassy_executor::Spawner; |
| 5 | use hal::adc::{Adc, LpadcConfig, TriggerPriorityPolicy}; | 5 | use hal::adc::{Adc, LpadcConfig, TriggerPriorityPolicy}; |
| 6 | use hal::clocks::PoweredClock; | 6 | use hal::clocks::PoweredClock; |
| 7 | use hal::config::Config; | ||
| 8 | use hal::clocks::config::Div8; | 7 | use hal::clocks::config::Div8; |
| 9 | use hal::clocks::periph_helpers::{AdcClockSel, Div4}; | 8 | use hal::clocks::periph_helpers::{AdcClockSel, Div4}; |
| 9 | use hal::config::Config; | ||
| 10 | use hal::pac::adc1::cfg::{Pwrsel, Refsel}; | 10 | use hal::pac::adc1::cfg::{Pwrsel, Refsel}; |
| 11 | use hal::pac::adc1::cmdl1::{Adch, Mode}; | 11 | use hal::pac::adc1::cmdl1::{Adch, Mode}; |
| 12 | use hal::pac::adc1::ctrl::CalAvgs; | 12 | use hal::pac::adc1::ctrl::CalAvgs; |
| @@ -19,7 +19,7 @@ const G_LPADC_RESULT_SHIFT: u32 = 0; | |||
| 19 | async fn main(_spawner: Spawner) { | 19 | async fn main(_spawner: Spawner) { |
| 20 | let mut config = Config::default(); | 20 | let mut config = Config::default(); |
| 21 | config.clock_cfg.sirc.fro_lf_div = Div8::from_divisor(1); | 21 | config.clock_cfg.sirc.fro_lf_div = Div8::from_divisor(1); |
| 22 | 22 | ||
| 23 | let p = hal::init(config); | 23 | let p = hal::init(config); |
| 24 | 24 | ||
| 25 | defmt::info!("=== ADC polling Example ==="); | 25 | defmt::info!("=== ADC polling Example ==="); |
