blob: 68b95716a107788c207596b167f2523fc4d6554e [file]
// Licensed under the Apache-2.0 license
// SPDX-License-Identifier: Apache-2.0
#![no_std]
#![no_main]
use console_backend::console_backend_write_all;
use entry as _;
use target_common::{declare_target, TargetInterface};
pub struct Target {}
impl TargetInterface for Target {
const NAME: &'static str = "AST10x0 User IPC";
fn main() -> ! {
codegen::start();
#[expect(clippy::empty_loop)]
loop {}
}
fn shutdown(code: u32) -> ! {
pw_log::info!("Shutting down with code {}", code as u32);
let sentinel: &[u8] = if code == 0 {
b"TEST_RESULT:PASS\n"
} else {
b"TEST_RESULT:FAIL\n"
};
let _ = console_backend_write_all(sentinel);
#[expect(clippy::empty_loop)]
loop {}
}
}
declare_target!(Target);