forked from M-Labs/zynq-rs
1
0
Fork 0

Compare commits

..

2 Commits

Author SHA1 Message Date
morgan 47a916fea6 GlobalTimer: add timer IRQ to experiment
gic: add disable individual interrupt support
mpcore: refactor icdicer registers as array
main: start timer with interrupt and add IRQ
2023-12-14 12:34:28 +08:00
morgan 9c7e418b7a GlobalTimer: add timer start with interrupt 2023-12-14 12:33:59 +08:00
1 changed files with 1 additions and 3 deletions

View File

@ -94,11 +94,9 @@ impl GlobalTimer {
while prescaler > 256 {
prescaler /= 2;
}
prescaler
prescaler
}
/// read the raw counter value
pub fn get_counter(&self) -> u64 {
loop {