forked from M-Labs/artiq
1
0
Fork 0

grabber: cleanup GRABBER_STATE

This commit is contained in:
Sebastien Bourdeauducq 2018-07-24 19:08:51 +08:00
parent fb96c1140e
commit 19c51c644e
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ enum State {
Up Up
} }
static mut GRABBER_STATE: &'static mut [State] = &mut [State::Down; csr::GRABBER_LEN]; static mut GRABBER_STATE: [State; csr::GRABBER_LEN] = [State::Down; csr::GRABBER_LEN];
fn get_pll_reset(g: usize) -> bool { fn get_pll_reset(g: usize) -> bool {
unsafe { (csr::GRABBER[g].pll_reset_read)() != 0 } unsafe { (csr::GRABBER[g].pll_reset_read)() != 0 }