aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-04-21 18:29:28 +0200
committerGitHub <[email protected]>2022-04-21 18:29:28 +0200
commitf63813367b9aa1d67bc1a943cb2b72f2234dc1d3 (patch)
tree6b00f37b270f720188ba1aba964ff91c5749e3ae
parentde7dd59fa9553a1a6b75ff09238c9529277b95e7 (diff)
parentdb862a60ee78f48c63d77fbd5c0ccd84fa1ce391 (diff)
Merge pull request #726 from danbev/time_driver_typo
Fix typo in driver.rs
-rw-r--r--embassy/src/time/driver.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy/src/time/driver.rs b/embassy/src/time/driver.rs
index 29256aab5..760a828b3 100644
--- a/embassy/src/time/driver.rs
+++ b/embassy/src/time/driver.rs
@@ -103,7 +103,7 @@ pub trait Driver: Send + Sync + 'static {
103 fn set_alarm_callback(&self, alarm: AlarmHandle, callback: fn(*mut ()), ctx: *mut ()); 103 fn set_alarm_callback(&self, alarm: AlarmHandle, callback: fn(*mut ()), ctx: *mut ());
104 104
105 /// Sets an alarm at the given timestamp. When the current timestamp reaches the alarm 105 /// Sets an alarm at the given timestamp. When the current timestamp reaches the alarm
106 /// timestamp, the provided callback funcion will be called. 106 /// timestamp, the provided callback function will be called.
107 /// 107 ///
108 /// If `timestamp` is already in the past, the alarm callback must be immediately fired. 108 /// If `timestamp` is already in the past, the alarm callback must be immediately fired.
109 /// In this case, it is allowed (but not mandatory) to call the alarm callback synchronously from `set_alarm`. 109 /// In this case, it is allowed (but not mandatory) to call the alarm callback synchronously from `set_alarm`.