Extract RTC out of framework

This commit is contained in:
Yuke Peng
2023-03-25 02:16:37 -07:00
committed by Tate, Hongliang Tian
parent b02b29dde7
commit bed56703de
17 changed files with 110 additions and 68 deletions

View File

@ -26,7 +26,7 @@ fn panic(info: &PanicInfo) -> ! {
#[test_case]
fn test_timer() {
jinux_frame::enable_interrupts();
x86_64::instructions::interrupts::enable();
unsafe {
let timer = Timer::new(timer_callback).unwrap();
timer.set(Duration::from_secs(1));