zynq7000_hal/
time.rs

1//! # Time units
2
3// Frequency based
4
5/// Hertz
6pub type Hertz = fugit::HertzU32;
7pub type Hz = Hertz;
8
9/// KiloHertz
10pub type KiloHertz = fugit::KilohertzU32;
11pub type KHz = KiloHertz;
12
13/// MegaHertz
14pub type MegaHertz = fugit::MegahertzU32;
15pub type MHz = MegaHertz;
16
17// Period based
18
19/// Seconds
20pub type Seconds = fugit::SecsDurationU32;
21
22/// Milliseconds
23pub type Milliseconds = fugit::MillisDurationU32;
24
25/// Microseconds
26pub type Microseconds = fugit::MicrosDurationU32;
27
28/// Nanoseconds
29pub type Nanoseconds = fugit::NanosDurationU32;