2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-24 19:04:02 +08:00

grabber: cleanup GRABBER_STATE

This commit is contained in:
Sebastien Bourdeauducq 2018-07-24 19:08:51 +08:00
parent fb96c1140e
commit 19c51c644e

View File

@ -7,7 +7,7 @@ enum State {
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 {
unsafe { (csr::GRABBER[g].pll_reset_read)() != 0 }