2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

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

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);