烧录成功

This commit is contained in:
zqm
2026-04-01 11:39:33 +08:00
parent e4dd0cc8b7
commit 81f91b6489
31 changed files with 6850 additions and 24800 deletions

View File

@@ -6,27 +6,21 @@
#![no_std]
use esp_backtrace as _;
use esp_println as _;
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
loop {
unsafe {
core::hint::spin_loop();
}
core::hint::spin_loop();
}
}
#[no_mangle]
extern "C" fn rust_app_main() {
esp_println::println!("Rust application starting...");
loop {
esp_println::println!("Rust application running...");
core::hint::spin_loop();
}
}
#[export_name = "rust_usb_callback"]
pub unsafe extern "C" fn usb_callback(event: u32) {
esp_println::println!("USB Event: {}", event);
}
pub unsafe extern "C" fn usb_callback(_event: u32) {
}