Merge pull request #784 from betrusted-io/fix-console

enable USB console by default
This commit is contained in:
bunnie 2026-01-17 17:45:25 +08:00 committed by GitHub
commit 8993f43712
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,6 +15,10 @@ fn main() {
let tt = ticktimer::Ticktimer::new().unwrap();
shell::start_shell();
tt.sleep_ms(500).ok(); // pause for the system to startup
let usb = usb_bao1x::UsbHid::new();
usb.serial_console_input_injection();
tt.sleep_ms(4000).ok();
#[cfg(all(feature = "board-baosec", feature = "test-flash"))]