1
0
Fork 0

fixed global timer reset

This commit is contained in:
pca006132 2020-06-16 17:31:37 +08:00
parent 191da7c959
commit 2c14a2a1a2
Signed by untrusted user: pca006132
GPG Key ID: 16997BD76CECCA4C
2 changed files with 2 additions and 2 deletions

View File

@ -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,
} }
} }

View File

@ -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,