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 {
|
DevC {
|
||||||
regs: regs::RegisterBlock::devc(),
|
regs: regs::RegisterBlock::devc(),
|
||||||
enabled: false,
|
enabled: false,
|
||||||
count_down: super::timer::GlobalTimer::start().countdown(),
|
count_down: unsafe { super::timer::GlobalTimer::get() }.countdown(),
|
||||||
timeout_ms,
|
timeout_ms,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,7 +110,7 @@ impl SDIO {
|
||||||
let clocks = Clocks::get();
|
let clocks = Clocks::get();
|
||||||
let mut self_ = SDIO {
|
let mut self_ = SDIO {
|
||||||
regs: regs::RegisterBlock::sdio0(),
|
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(),
|
input_clk_hz: clocks.sdio_ref_clk(),
|
||||||
card_type: CardType::CardNone,
|
card_type: CardType::CardNone,
|
||||||
card_detect,
|
card_detect,
|
||||||
|
|
Loading…
Reference in New Issue