🖥️ hal::host
Host Communication & Debug Interface
367 satır
USB/Debug
📖 Genel Bakış
Host communication: USB, debug interfaces, semihosting.
🚀 Kullanım
içe_aktar hal::host
// Debug print (ITM/SWO)
host.debug_print("Hello from MCU\n")
// Semihosting (debug only)
host.semihost_write("Debug message")
// USB CDC
değişken usb = host.usb_cdc_init()
host.usb_write(usb, "USB message")
// Get host status
eğer host.is_debugger_connected() ise yap
host.debug_print("Debugger active")
son