diff options
| author | Ulf Lilleengen <[email protected]> | 2025-05-09 16:48:41 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-09 16:48:41 +0200 |
| commit | 2a27aa828cdc310b17c379183bdfaba6585ad933 (patch) | |
| tree | f9b2c7a950f056dbb04ed677c7dd0500059b57f8 | |
| parent | 64a2b9b2a36adbc26117b8e76ae2b178a5e3eb9f (diff) | |
| parent | bd3b3b45266c3dc3bf0d443a2e727814968cb245 (diff) | |
Merge pull request #4173 from phycrax/derive-for-pwmpincfg
[embassy-stm32] Derive Debug, Clone, Copy, defmt::Format for simple_pwm::PwmPinConfig
| -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, |
