mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-26 03:38:25 +08:00
io_expander: initialize before service
This commit is contained in:
parent
f7abc156cb
commit
363f7327f1
@ -632,6 +632,7 @@ pub extern fn main() -> i32 {
|
|||||||
#[cfg(soc_platform = "efc")]
|
#[cfg(soc_platform = "efc")]
|
||||||
{
|
{
|
||||||
io_expander = board_misoc::io_expander::IoExpander::new().unwrap();
|
io_expander = board_misoc::io_expander::IoExpander::new().unwrap();
|
||||||
|
io_expander.init().expect("I2C I/O expander initialization failed");
|
||||||
|
|
||||||
// Enable LEDs
|
// Enable LEDs
|
||||||
io_expander.set_oe(0, 1 << 5 | 1 << 6 | 1 << 7).unwrap();
|
io_expander.set_oe(0, 1 << 5 | 1 << 6 | 1 << 7).unwrap();
|
||||||
|
Loading…
Reference in New Issue
Block a user