mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
add SE0 release to userspace usb driver
This commit is contained in:
parent
6da0482831
commit
e00606538c
1 changed files with 3 additions and 0 deletions
|
|
@ -270,6 +270,9 @@ pub(crate) fn main_hw() -> ! {
|
|||
let mut pmic = bao1x_hal::axp2101::Axp2101::new(&mut i2c).expect("couldn't open PMIC");
|
||||
pmic.setup_vbus_irq(&mut i2c, bao1x_hal::axp2101::VbusIrq::Remove).expect("couldn't setup IRQ");
|
||||
|
||||
let (se0_port, se0_pin) = bao1x_hal::board::setup_usb_pins(&iox);
|
||||
iox.set_gpio_pin_value(se0_port, se0_pin, bao1x_api::IoxValue::High); // release SE0 state, allowing for enumeration
|
||||
|
||||
log::info!("Entering main loop");
|
||||
|
||||
let mut msg_opt = None;
|
||||
|
|
|
|||
Loading…
Reference in a new issue