aboutsummaryrefslogtreecommitdiff
path: root/embassy-time-driver/src
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-time-driver/src')
-rw-r--r--embassy-time-driver/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-time-driver/src/lib.rs b/embassy-time-driver/src/lib.rs
index 75f7037e3..12f40b9b9 100644
--- a/embassy-time-driver/src/lib.rs
+++ b/embassy-time-driver/src/lib.rs
@@ -109,8 +109,8 @@ pub trait Driver: Send + Sync + 'static {
109 /// Try allocating an alarm handle. Returns None if no alarms left. 109 /// Try allocating an alarm handle. Returns None if no alarms left.
110 /// Initially the alarm has no callback set, and a null `ctx` pointer. 110 /// Initially the alarm has no callback set, and a null `ctx` pointer.
111 /// 111 ///
112 /// The allocated alarm is a reusable resource and can be used multiple times. 112 /// The allocated alarm is a reusable resource and can be used multiple times.
113 /// Once the alarm has fired, it remains allocated and can be set again without needing 113 /// Once the alarm has fired, it remains allocated and can be set again without needing
114 /// to be reallocated. 114 /// to be reallocated.
115 /// 115 ///
116 /// # Safety 116 /// # Safety
@@ -120,8 +120,8 @@ pub trait Driver: Send + Sync + 'static {
120 /// Set the callback function to be called when the alarm triggers. 120 /// Set the callback function to be called when the alarm triggers.
121 /// The callback may be called from any context (interrupt or thread mode). 121 /// The callback may be called from any context (interrupt or thread mode).
122 /// 122 ///
123 /// The callback is maintained after the alarm has fired. Callers do not need 123 /// The callback is maintained after the alarm has fired. Callers do not need
124 /// to set a callback again before setting another alarm, unless they want to 124 /// to set a callback again before setting another alarm, unless they want to
125 /// change the callback function or context. 125 /// change the callback function or context.
126 fn set_alarm_callback(&self, alarm: AlarmHandle, callback: fn(*mut ()), ctx: *mut ()); 126 fn set_alarm_callback(&self, alarm: AlarmHandle, callback: fn(*mut ()), ctx: *mut ());
127 127