@@ -45,7 +45,7 @@ pub type Tick = u64;
45
45
#[ cfg( not( CONFIG_TIMEOUT_64BIT ) ) ]
46
46
pub type Tick = u32 ;
47
47
48
- /// Duration appropraite for Zephyr calls that expect `k_timeout_t`. The result will be a time
48
+ /// Duration appropriate for Zephyr calls that expect `k_timeout_t`. The result will be a time
49
49
/// interval from "now" (when the call is made).
50
50
pub type Duration = fugit:: Duration < Tick , 1 , SYS_FREQUENCY > ;
51
51
@@ -54,7 +54,7 @@ pub type Duration = fugit::Duration<Tick, 1, SYS_FREQUENCY>;
54
54
#[ cfg( CONFIG_TIMEOUT_64BIT ) ]
55
55
pub type Instant = fugit:: Instant < Tick , 1 , SYS_FREQUENCY > ;
56
56
57
- // The zephry k_timeout_t represents several different types of intervals, based on the range of
57
+ // The Zephyr ` k_timeout_t` represents several different types of intervals, based on the range of
58
58
// the value. It is a signed number of the same size as the Tick here, which effectively means it
59
59
// is one bit less.
60
60
//
@@ -63,13 +63,13 @@ pub type Instant = fugit::Instant<Tick, 1, SYS_FREQUENCY>;
63
63
// -1: K_FOREVER: a time that never expires.
64
64
// MIN .. -2: A wait for an absolute amount of ticks from the start of the system.
65
65
//
66
- // The absolute time offset is only implemented when time is a 64 bit value. This also means that
66
+ // The absolute time offset is only implemented when time is a 64- bit value. This also means that
67
67
// "Instant" isn't available when time is defined as a 32-bit value.
68
68
69
69
// Wrapper around the timeout type, so we can implement From/Info.
70
70
pub struct Timeout ( pub k_timeout_t ) ;
71
71
72
- // From allows methods to take a time of various types and convert it into a Zephyr timeout.
72
+ // ` From` allows methods to take a time of various types and convert it into a Zephyr timeout.
73
73
impl From < Duration > for Timeout {
74
74
fn from ( value : Duration ) -> Timeout {
75
75
let ticks: k_ticks_t = checked_cast ( value. ticks ( ) ) ;
0 commit comments