()
| 7 | const TICKS_PER_SEC: usize = 1000; |
| 8 | |
| 9 | pub fn init() { |
| 10 | unsafe { |
| 11 | if CLOCK_FREQ == 0 { |
| 12 | panic!("Clock frequency is zero!"); |
| 13 | } |
| 14 | } |
| 15 | unsafe { |
| 16 | sie::set_stimer(); |
| 17 | } |
| 18 | info!("Timer ready"); |
| 19 | timer_next_triger(); |
| 20 | } |
| 21 | |
| 22 | pub fn get_time_us() -> usize { |
| 23 | unsafe { |
nothing calls this directly
no test coverage detected