ensure that baremetal on baosec sets up USB pin; pass through redteam flag

This commit is contained in:
bunnie 2025-11-22 13:43:41 +08:00
parent f502270b60
commit d124d60577
2 changed files with 5 additions and 1 deletions

View file

@ -79,6 +79,7 @@ dabao-selftest = [
]
ci-security = []
spim-tests = []
redteam = ["bao1x-hal/redteam"]
verilator-only = []
default = ["bao1x-usb", "ci-security"]
default = ["bao1x-usb"]

View file

@ -99,6 +99,9 @@ pub fn early_init() {
bao1x_hal::board::setup_kb_pins(&iox);
bao1x_hal::board::setup_oled_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")]
{