We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timer1
The README has the following code snipped:
const DESIRED_HZ_TIM1: f64 = 2.0; const TIM1_PRESCALER: u64 = 1024; const INTERRUPT_EVERY_1_HZ_1024_PRESCALER: u16 = ((ruduino::config::CPU_FREQUENCY_HZ as f64 / (DESIRED_HZ_TIM1 * TIM1_PRESCALER as f64)) as u64 - 1) as u16; timer1::Timer::new() .waveform_generation_mode(timer1::WaveformGenerationMode::ClearOnTimerMatchOutputCompare) .clock_source(timer1::ClockSource::Prescale1024) .output_compare_1(Some(INTERRUPT_EVERY_1_HZ_1024_PRESCALER)) .configure();
I'm interested in using similar code to configure a timer. But where is the variable timer1 coming from?
The text was updated successfully, but these errors were encountered:
Have you solve the problem?I am learning this too
Sorry, something went wrong.
No branches or pull requests
The README has the following code snipped:
I'm interested in using similar code to configure a timer. But where is the variable
timer1
coming from?The text was updated successfully, but these errors were encountered: