mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-03 05:12:34 +00:00
12 lines
212 B
Rust
12 lines
212 B
Rust
use crate::time::Duration;
|
|
|
|
use super::ffi;
|
|
|
|
pub fn ticks_ms() -> u32 {
|
|
unsafe { ffi::mp_hal_ticks_ms() as _ }
|
|
}
|
|
|
|
pub fn sleep(delay: Duration) {
|
|
unsafe { ffi::mp_hal_delay_ms(delay.to_millis() as _) }
|
|
}
|