forked from M-Labs/artiq
1
0
Fork 0

firmware: fix Allaki addressing. Closes #993

This commit is contained in:
Sebastien Bourdeauducq 2018-05-17 16:02:21 +08:00
parent 3b61b7c30b
commit d4f074b1e1
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ const CHANNELS: usize = 2;
fn set_pins(card_index: usize, chan_index: usize, pins: u32) {
let pins = pins ^ PIN_RST_N;
let shift = card_index * 2 + chan_index;
let shift = (card_index * 2 + chan_index)*4;
unsafe {
let state = csr::allaki_atts::out_read();
let state = state & !(0xf << shift);