aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSüha Ünüvar <[email protected]>2025-05-07 17:14:28 +0800
committerSüha Ünüvar <[email protected]>2025-05-07 17:14:28 +0800
commitbd3b3b45266c3dc3bf0d443a2e727814968cb245 (patch)
treed06454bc01e363bd8d4901ad1ee8fa6bc7a91a7e
parent6c6ae4f9fca1eaff6cb9f2896de333d9493ea840 (diff)
derive debug copy clone defmt for pwmpinconfig
-rw-r--r--embassy-stm32/src/timer/simple_pwm.rs2
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))]
34pub struct PwmPinConfig { 36pub struct PwmPinConfig {
35 /// PWM Pin output type 37 /// PWM Pin output type
36 pub output_type: OutputType, 38 pub output_type: OutputType,