add more defmt features

This commit is contained in:
2025-02-13 14:43:46 +01:00
parent 6e1ae70054
commit 0a31b637e6
8 changed files with 26 additions and 3 deletions

View File

@ -15,7 +15,9 @@ use crate::{clock::enable_peripheral_clock, gpio::DynPinId};
const DUTY_MAX: u16 = u16::MAX;
pub struct PwmCommon {
#[derive(Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
pub(crate) struct PwmCommon {
sys_clk: Hertz,
/// For PWMB, this is the upper limit
current_duty: u16,