Function rtc::set_rtc_frequency

source ·
pub fn set_rtc_frequency(rate: usize) -> Result<(), InvalidRtcRate>
Expand description

Sets the period of the RTC interrupt to the given rate.

rate must be a power of 2, between 2 and 8192 inclusive; otherwise, an error is returned.