mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
release SE0 using the tristate, not by driving the pin
this reduces current draw when the prog button is depressed.
This commit is contained in:
parent
0e50a2591f
commit
03aeafc21a
1 changed files with 2 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ use std::panic;
|
|||
use std::sync::Arc;
|
||||
|
||||
use api::*;
|
||||
use bao1x_api::IoGpio;
|
||||
use bao1x_api::keyboard::KeyMap;
|
||||
#[cfg(feature = "board-baosec")]
|
||||
use bao1x_hal::axp2101::VbusIrq;
|
||||
|
|
@ -277,7 +278,7 @@ pub(crate) fn main_hw() -> ! {
|
|||
};
|
||||
|
||||
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
|
||||
iox.set_gpio_pin_dir(se0_port, se0_pin, bao1x_api::IoxDir::Input); // release SE0 state, allowing for enumeration
|
||||
|
||||
log::info!("Entering main loop");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue