diff options
Diffstat (limited to 'embassy-rp/src/pwm.rs')
| -rw-r--r-- | embassy-rp/src/pwm.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-rp/src/pwm.rs b/embassy-rp/src/pwm.rs index 1e1ccc4c6..59a3fc9a2 100644 --- a/embassy-rp/src/pwm.rs +++ b/embassy-rp/src/pwm.rs | |||
| @@ -3,13 +3,13 @@ | |||
| 3 | use embassy_hal_internal::{Peri, PeripheralType}; | 3 | use embassy_hal_internal::{Peri, PeripheralType}; |
| 4 | pub use embedded_hal_1::pwm::SetDutyCycle; | 4 | pub use embedded_hal_1::pwm::SetDutyCycle; |
| 5 | use embedded_hal_1::pwm::{Error, ErrorKind, ErrorType}; | 5 | use embedded_hal_1::pwm::{Error, ErrorKind, ErrorType}; |
| 6 | use fixed::traits::ToFixed; | ||
| 7 | use fixed::FixedU16; | 6 | use fixed::FixedU16; |
| 7 | use fixed::traits::ToFixed; | ||
| 8 | use pac::pwm::regs::{ChDiv, Intr}; | 8 | use pac::pwm::regs::{ChDiv, Intr}; |
| 9 | use pac::pwm::vals::Divmode; | 9 | use pac::pwm::vals::Divmode; |
| 10 | 10 | ||
| 11 | use crate::gpio::{AnyPin, Pin as GpioPin, Pull, SealedPin as _}; | 11 | use crate::gpio::{AnyPin, Pin as GpioPin, Pull, SealedPin as _}; |
| 12 | use crate::{pac, peripherals, RegExt}; | 12 | use crate::{RegExt, pac, peripherals}; |
| 13 | 13 | ||
| 14 | /// The configuration of a PWM slice. | 14 | /// The configuration of a PWM slice. |
| 15 | /// Note the period in clock cycles of a slice can be computed as: | 15 | /// Note the period in clock cycles of a slice can be computed as: |
