Function calculate_pio_clock_divider_value
Source pub const fn calculate_pio_clock_divider_value(
sys_hz: u32,
target_hz: u32,
) -> FixedU32<U8>
Expand description
Calculate a PIO clock divider value based on the desired target frequency.
§Arguments
sys_hz - The system clock frequency in Hz
target_hz - The desired PIO clock frequency in Hz
§Returns
A fixed-point divider value suitable for use in a PIO state machine configuration