mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-23 17:56:33 +11:00
Fix compilation issues.
This commit is contained in:
parent
72694a07b5
commit
8f6aea6a31
1 changed files with 2 additions and 2 deletions
|
@ -13,9 +13,9 @@ use embedded_time::{
|
||||||
rate::{
|
rate::{
|
||||||
Hertz,
|
Hertz,
|
||||||
Megahertz,
|
Megahertz,
|
||||||
|
Rate
|
||||||
},
|
},
|
||||||
duration::{
|
duration::{
|
||||||
Seconds,
|
|
||||||
Milliseconds,
|
Milliseconds,
|
||||||
Duration
|
Duration
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,7 @@ impl CrystalOscillator<Disabled> {
|
||||||
});
|
});
|
||||||
|
|
||||||
//1 ms = 10e-3 sec and Freq = 1/T where T is in seconds so 1ms converts to 1000Hz
|
//1 ms = 10e-3 sec and Freq = 1/T where T is in seconds so 1ms converts to 1000Hz
|
||||||
let delay_to_hz: Hertz = STABLE_DELAY.to_rate();
|
let delay_to_hz: Hertz = STABLE_DELAY.to_rate().map_err(|_|Error::BadArgument)?;
|
||||||
|
|
||||||
//startup_delay = ((freq_hz * 10e-3) / 256) = ((freq_hz / 1000) / 256)
|
//startup_delay = ((freq_hz * 10e-3) / 256) = ((freq_hz / 1000) / 256)
|
||||||
//See Chapter 2, Section 16, §3)
|
//See Chapter 2, Section 16, §3)
|
||||||
|
|
Loading…
Add table
Reference in a new issue