You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/embed/rust/src/micropython/time.rs

12 lines
212 B

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 _) }
}