mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-23 01:36:35 +11:00
Mark Timer as sync
Since all accesses are read-only there is no synchronizing to be done.
This commit is contained in:
parent
4c4d12e23c
commit
97079489ef
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@ pub struct Timer {
|
|||
timer: TIMER,
|
||||
}
|
||||
|
||||
// Safety: All access is read-only.
|
||||
unsafe impl Sync for Timer {}
|
||||
|
||||
impl Timer {
|
||||
/// Create a new [`Timer`]
|
||||
pub fn new(timer: TIMER, resets: &mut RESETS) -> Self {
|
||||
|
|
Loading…
Add table
Reference in a new issue