From 6839e12cce9cc3ea5ddeaff20e39aa9f5509c8b7 Mon Sep 17 00:00:00 2001 From: Tethys Svensson Date: Mon, 22 Jan 2024 04:41:02 +0100 Subject: [PATCH] Fix a pwm pin configuration for thumbv7em (#720) --- hal/CHANGELOG.md | 1 + hal/src/thumbv7em/pwm.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hal/CHANGELOG.md b/hal/CHANGELOG.md index 7bfedfe003b7..8876ed0897ae 100644 --- a/hal/CHANGELOG.md +++ b/hal/CHANGELOG.md @@ -8,6 +8,7 @@ - Fix warnings for thumbv7 targets - Update README.md - moves some content to wiki - Remove pin `pa28` from the `d21el` target (#717) +- Fix a pwm configuration for the `tc4` on `D5x` targets (#720) # v0.16.0 diff --git a/hal/src/thumbv7em/pwm.rs b/hal/src/thumbv7em/pwm.rs index 6c617f799b53..b6fafd595e3c 100644 --- a/hal/src/thumbv7em/pwm.rs +++ b/hal/src/thumbv7em/pwm.rs @@ -100,8 +100,8 @@ impl_tc_pinout!(TC3Pinout: [ #[cfg(feature = "has-tc4")] impl_tc_pinout!(TC4Pinout: [ (Pa23, PA23), - #[cfg(feature = "has-pb00")] - (Pb0, PB09), + #[cfg(feature = "pins-48")] + (Pb9, PB09), #[cfg(feature = "pins-64")] (Pb13, PB13) ]);