aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Allen <[email protected]>2025-03-06 09:44:06 -0500
committerMatt Allen <[email protected]>2025-03-06 09:44:06 -0500
commit91d8175f6270530203b073d754ea1200243dc08f (patch)
tree3b6a4a07ae0a1f53caf16834f2189989cfcd2a86
parent1646dc36f2cd85f41a8ad8370912ec33fa4cf5e9 (diff)
Fixed documentation
-rw-r--r--embassy-stm32/src/lptim/pwm.rs2
-rw-r--r--embassy-stm32/src/timer/simple_pwm.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/lptim/pwm.rs b/embassy-stm32/src/lptim/pwm.rs
index 43ef178ef..132f5815e 100644
--- a/embassy-stm32/src/lptim/pwm.rs
+++ b/embassy-stm32/src/lptim/pwm.rs
@@ -62,7 +62,7 @@ macro_rules! channel_impl {
62 phantom: PhantomData, 62 phantom: PhantomData,
63 } 63 }
64 } 64 }
65 #[doc = concat!("Create a new ", stringify!($channel), "_with_config PWM pin instance.")] 65 #[doc = concat!("Create a new ", stringify!($channel), " PWM pin instance with config.")]
66 pub fn $new_chx_with_config( 66 pub fn $new_chx_with_config(
67 pin: impl Peripheral<P = impl $pin_trait<T>> + 'd, 67 pin: impl Peripheral<P = impl $pin_trait<T>> + 'd,
68 pin_config: PwmPinConfig, 68 pin_config: PwmPinConfig,
diff --git a/embassy-stm32/src/timer/simple_pwm.rs b/embassy-stm32/src/timer/simple_pwm.rs
index 5906df635..c5a366cd5 100644
--- a/embassy-stm32/src/timer/simple_pwm.rs
+++ b/embassy-stm32/src/timer/simple_pwm.rs
@@ -59,7 +59,7 @@ macro_rules! channel_impl {
59 } 59 }
60 } 60 }
61 61
62 #[doc = concat!("Create a new ", stringify!($channel), "_with_config PWM pin instance.")] 62 #[doc = concat!("Create a new ", stringify!($channel), " PWM pin instance with config.")]
63 pub fn $new_chx_with_config( 63 pub fn $new_chx_with_config(
64 pin: impl Peripheral<P = impl $pin_trait<T>> + 'd, 64 pin: impl Peripheral<P = impl $pin_trait<T>> + 'd,
65 pin_config: PwmPinConfig, 65 pin_config: PwmPinConfig,