//! 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 _; use esp_println as _; #[panic_handler] fn panic(_info: &core::panic::PanicInfo) -> ! { loop { unsafe { 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..."); } } #[export_name = "rust_usb_callback"] pub unsafe extern "C" fn usb_callback(event: u32) { esp_println::println!("USB Event: {}", event); }