//! Semihosting output for QEMU testing.
//!
//! When the `qemu-test` feature is enabled, defmt frames are written to
//! semihosting stdout, allowing the test harness to capture and decode them.
use UnsafeCell;
use ;
static STDOUT: = SyncCell;
;
// SAFETY: Access is protected by critical sections (ensured by caller).
unsafe
/// Writes bytes to semihosting stdout.
///
/// # Safety
///
/// Must be called from within a critical section to prevent concurrent access.
pub unsafe