// Build this example with:
// cargo build --example fn-main --target riscv64imac-unknown-none-elf --release
// Checkout target assembly code:
// rust-objdump -d target/riscv64imac-unknown-none-elf/release/examples/rom-rt-main > target/1.asm

#![no_std]
#![no_main]

use d1_rom_rt::{Handover, Parameters};

#[d1_rom_rt::entry]
fn main(params: Parameters) -> Handover {
    // on most platforms, params has a UART inside.
    Handover::from(params)
}

#[panic_handler]
fn panic(_: &core::panic::PanicInfo) -> ! {
    loop {}
}
