Files
JoyD/ESP32/my_usb_project/rust_app/src/lib.rs

26 lines
513 B
Rust
Raw Normal View History

//! Rust application for ESP32-S3
//!
//! This module provides the main Rust application logic
//! that interacts with the USB HID interface implemented in C/TinyUSB.
#![no_std]
use esp_backtrace as _;
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
loop {
2026-04-01 11:39:33 +08:00
core::hint::spin_loop();
}
}
#[no_mangle]
extern "C" fn rust_app_main() {
loop {
2026-04-01 11:39:33 +08:00
core::hint::spin_loop();
}
}
#[export_name = "rust_usb_callback"]
2026-04-01 11:39:33 +08:00
pub unsafe extern "C" fn usb_callback(_event: u32) {
}