You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: riscv-peripheral/src/hal_async/aclint.rs
+7-21Lines changed: 7 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,6 @@
11
11
//! The following `extern "Rust"` functions must be implemented:
12
12
//!
13
13
//! - `fn _riscv_peripheral_aclint_mtimer(hart_id: usize) -> MTIMER`: This function returns the `MTIMER` register for the given HART ID.
14
-
//! This function is implemented by the [`crate::clint_codegen`] macro when asyn_delay is provided.
15
14
//! - `fn _riscv_peripheral_aclint_push_timer(t: Timer) -> Result<(), Timer>`: This function pushes a new timer to a timer queue assigned to the given HART ID.
16
15
//! If it fails (e.g., the timer queue is full), it returns back the timer that failed to be pushed.
17
16
//! The logic of timer queues are application-specific and are not provided by this crate.
@@ -37,18 +36,18 @@ extern "Rust" {
37
36
/// Do not call this function directly. It is only meant to be called by [`MachineTimer`].
38
37
fn_riscv_peripheral_aclint_mtimer() -> MTIMER;
39
38
40
-
/// Tries to push a new timer to the timer queue assigned to the given HART ID.
39
+
/// Tries to push a new timer to the timer queue assigned to the `MTIMER` register for the current HART ID.
41
40
/// If it fails (e.g., the timer queue is full), it returns back the timer that failed to be pushed.
42
41
///
43
42
/// # Safety
44
43
///
45
44
/// Do not call this function directly. It is only meant to be called by [`DelayAsync`].
0 commit comments