mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
ensure that baremetal on baosec sets up USB pin; pass through redteam flag
This commit is contained in:
parent
f502270b60
commit
d124d60577
2 changed files with 5 additions and 1 deletions
|
|
@ -79,6 +79,7 @@ dabao-selftest = [
|
||||||
]
|
]
|
||||||
ci-security = []
|
ci-security = []
|
||||||
spim-tests = []
|
spim-tests = []
|
||||||
|
redteam = ["bao1x-hal/redteam"]
|
||||||
|
|
||||||
verilator-only = []
|
verilator-only = []
|
||||||
default = ["bao1x-usb", "ci-security"]
|
default = ["bao1x-usb"]
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,9 @@ pub fn early_init() {
|
||||||
bao1x_hal::board::setup_kb_pins(&iox);
|
bao1x_hal::board::setup_kb_pins(&iox);
|
||||||
bao1x_hal::board::setup_oled_power_pin(&iox);
|
bao1x_hal::board::setup_oled_power_pin(&iox);
|
||||||
bao1x_hal::board::setup_trng_power_pin(&iox);
|
bao1x_hal::board::setup_trng_power_pin(&iox);
|
||||||
|
// make sure SE0 is cleared
|
||||||
|
let (port, pin) = bao1x_hal::board::setup_usb_pins(&iox);
|
||||||
|
iox.set_gpio_pin(port, pin, IoxValue::High);
|
||||||
}
|
}
|
||||||
#[cfg(feature = "board-dabao")]
|
#[cfg(feature = "board-dabao")]
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue