forked from M-Labs/zynq-rs
fixed global timer reset
This commit is contained in:
parent
191da7c959
commit
2c14a2a1a2
|
@ -76,7 +76,7 @@ impl DevC {
|
|||
DevC {
|
||||
regs: regs::RegisterBlock::devc(),
|
||||
enabled: false,
|
||||
count_down: super::timer::GlobalTimer::start().countdown(),
|
||||
count_down: unsafe { super::timer::GlobalTimer::get() }.countdown(),
|
||||
timeout_ms,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ impl SDIO {
|
|||
let clocks = Clocks::get();
|
||||
let mut self_ = SDIO {
|
||||
regs: regs::RegisterBlock::sdio0(),
|
||||
count_down: super::timer::GlobalTimer::start().countdown(),
|
||||
count_down: unsafe { super::timer::GlobalTimer::get() }.countdown(),
|
||||
input_clk_hz: clocks.sdio_ref_clk(),
|
||||
card_type: CardType::CardNone,
|
||||
card_detect,
|
||||
|
|
Loading…
Reference in New Issue