reload_value

Function reload_value 

Source
pub const fn reload_value(freq: u32) -> u16
Expand 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.