diff options
| author | shufps <[email protected]> | 2024-06-28 14:52:21 +0200 |
|---|---|---|
| committer | shufps <[email protected]> | 2024-06-28 14:52:21 +0200 |
| commit | 2462a22140834e80e63465dabcf8a783e1adb94f (patch) | |
| tree | 088ee63012d1a16a37d9e0fa0f4e3166e5896534 /examples/stm32l0/src | |
| parent | b2a0eb3cb4b9d0f9b4ecc12b6e5437e4616b4aa6 (diff) | |
format
Diffstat (limited to 'examples/stm32l0/src')
| -rw-r--r-- | examples/stm32l0/src/bin/dds.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/stm32l0/src/bin/dds.rs b/examples/stm32l0/src/bin/dds.rs index 21647a68d..a54b28a93 100644 --- a/examples/stm32l0/src/bin/dds.rs +++ b/examples/stm32l0/src/bin/dds.rs | |||
| @@ -2,19 +2,17 @@ | |||
| 2 | #![no_main] | 2 | #![no_main] |
| 3 | 3 | ||
| 4 | use core::option::Option::Some; | 4 | use core::option::Option::Some; |
| 5 | |||
| 5 | use defmt::info; | 6 | use defmt::info; |
| 6 | use defmt_rtt as _; // global logger | 7 | use defmt_rtt as _; // global logger |
| 7 | use embassy_executor::Spawner; | 8 | use embassy_executor::Spawner; |
| 8 | use embassy_stm32::gpio::OutputType; | 9 | use embassy_stm32::gpio::OutputType; |
| 9 | use embassy_stm32::interrupt; | ||
| 10 | use embassy_stm32::pac; | ||
| 11 | use embassy_stm32::rcc::*; | 10 | use embassy_stm32::rcc::*; |
| 12 | use embassy_stm32::time::hz; | 11 | use embassy_stm32::time::hz; |
| 13 | use embassy_stm32::timer::low_level::Timer as LLTimer; | 12 | use embassy_stm32::timer::low_level::{Timer as LLTimer, *}; |
| 14 | use embassy_stm32::timer::low_level::*; | ||
| 15 | use embassy_stm32::timer::simple_pwm::PwmPin; | 13 | use embassy_stm32::timer::simple_pwm::PwmPin; |
| 16 | use embassy_stm32::timer::Channel; | 14 | use embassy_stm32::timer::Channel; |
| 17 | use embassy_stm32::Config; | 15 | use embassy_stm32::{interrupt, pac, Config}; |
| 18 | use panic_probe as _; | 16 | use panic_probe as _; |
| 19 | 17 | ||
| 20 | const DDS_SINE_DATA: [u8; 256] = [ | 18 | const DDS_SINE_DATA: [u8; 256] = [ |
