pub const fn reload_value(freq: u32) -> u16Expand description
Computes a PIT reload value for the given frequency.
The actual interrupt frequency will always be slightly different from the requested freq due
to hardware limitations. This function tries to get as close as possible.