Home
last modified time | relevance | path

Searched refs:read_cmos (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.3/kernel/src/driver/timers/rtc/
Drtc.rs37 let status_register_b: u8 = read_cmos(0x0B); // 读取状态寄存器B in get()
51 self.year = read_cmos(CMOSTimeSelector::Year as u8) as i32; in get()
52 self.month = read_cmos(CMOSTimeSelector::Month as u8) as i32; in get()
53 self.day = read_cmos(CMOSTimeSelector::Day as u8) as i32; in get()
54 self.hour = read_cmos(CMOSTimeSelector::Hour as u8) as i32; in get()
55 self.minute = read_cmos(CMOSTimeSelector::Minute as u8) as i32; in get()
56 self.second = read_cmos(CMOSTimeSelector::Second as u8) as i32; in get()
58 if self.second == read_cmos(CMOSTimeSelector::Second as u8) as i32 { in get()
91 fn read_cmos(addr: u8) -> u8 { in read_cmos() function