Skip to content
Snippets Groups Projects
Verified Commit 26a4d7b2 authored by Jana Dönszelmann's avatar Jana Dönszelmann :sparkling_heart:
Browse files

more delay in set tick freq

parent a7b1735a
No related branches found
No related tags found
No related merge requests found
Pipeline #993226 failed
[package]
name = "tudelft-quadrupel"
version = "3.0.0"
version = "3.0.1"
edition = "2021"
authors = [
"Anne Stijns <anstijns@gmail.com>",
......
......@@ -202,6 +202,7 @@ pub fn wait_for_next_tick() {
/// Set this timer to interrupt at the given frequency.
/// The next interrupt will be after 1/hz seconds.
///
/// Call this before using any other time-related functions.
#[allow(clippy::missing_panics_doc)]
pub fn set_tick_frequency(hz: u64) {
RTC.modify(|rtc| {
......@@ -218,7 +219,7 @@ pub fn set_tick_frequency(hz: u64) {
});
// Give the counter time to clear (Section 19.1.8 of the NRF51 reference manual V3)
delay_us_assembly(100);
delay_us_assembly(500);
}
/// Delay the program for a time using assembly instructions.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment