diff options
| author | Süha Ünüvar <[email protected]> | 2025-05-07 17:14:28 +0800 |
|---|---|---|
| committer | Süha Ünüvar <[email protected]> | 2025-05-07 17:14:28 +0800 |
| commit | bd3b3b45266c3dc3bf0d443a2e727814968cb245 (patch) | |
| tree | d06454bc01e363bd8d4901ad1ee8fa6bc7a91a7e /embassy-stm32 | |
| parent | 6c6ae4f9fca1eaff6cb9f2896de333d9493ea840 (diff) | |
derive debug copy clone defmt for pwmpinconfig
Diffstat (limited to 'embassy-stm32')
| -rw-r--r-- | embassy-stm32/src/timer/simple_pwm.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-stm32/src/timer/simple_pwm.rs b/embassy-stm32/src/timer/simple_pwm.rs index 54ab7d0d5..8fd7e8df4 100644 --- a/embassy-stm32/src/timer/simple_pwm.rs +++ b/embassy-stm32/src/timer/simple_pwm.rs | |||
| @@ -31,6 +31,8 @@ pub struct PwmPin<'d, T, C> { | |||
| 31 | /// PWM pin config | 31 | /// PWM pin config |
| 32 | /// | 32 | /// |
| 33 | /// This configures the pwm pin settings | 33 | /// This configures the pwm pin settings |
| 34 | #[derive(Debug, Copy, Clone)] | ||
| 35 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 34 | pub struct PwmPinConfig { | 36 | pub struct PwmPinConfig { |
| 35 | /// PWM Pin output type | 37 | /// PWM Pin output type |
| 36 | pub output_type: OutputType, | 38 | pub output_type: OutputType, |
