release-7: backport add SFP0..3 LED indication #243
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/artiq-zynq#243
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "morgan:backport-feature"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Back-porting SFP0..3 LED indication (#242) to release-7
@ -93,0 +100,4 @@
let len: usize = pl::csr::DRTIO.len();
READ_RTIO_LED = 0;
for linkno in 0..len {
//let linkno = linkno as usize;
Remove
@ -93,0 +117,4 @@
unsafe {
let i2c = (&mut i2c::I2C_BUS).as_mut().unwrap();
for expander_i in 0..=1 {
let mut io_expander = io_expander::IoExpander::new(i2c, expander_i).unwrap();
Move out of the loop. Generally, follow the main ARTIQ repos.
@ -13,0 +14,4 @@
const IO_DIR_INPUT_ALL: u8 = 0xFF;
const IO_DIR_OUT_SFP_TX_DISABLE: u8 = !0x02;
const IO_DIR_OUT_SFP_LED: u8 = !0x40;
//SFP0 LED has different place in v1.1
That is obvious from the code already. Remove.
Code in master is still messy and needs to be sorted out first.
Pull request closed