blob: 3cb0a2ef443a9221ed42b97f908524615ace9ff7 [file]
// Licensed under the Apache-2.0 license
//! AST1060-EVB MCTP Echo Target
//!
//! This target runs the I2C server, MCTP server, and MCTP echo application
//! as separate userspace processes communicating over IPC channels.
#![no_std]
#![no_main]
use cortex_m_semihosting::debug::{EXIT_FAILURE, EXIT_SUCCESS, exit};
use target_common::{TargetInterface, declare_target};
use {console_backend as _, entry as _};
pub struct Target {}
impl TargetInterface for Target {
const NAME: &'static str = "AST1060-EVB MCTP Echo";
fn main() -> ! {
codegen::start();
#[expect(clippy::empty_loop)]
loop {}
}
fn shutdown(code: u32) -> ! {
pw_log::info!("Shutting down with code {}", code as u32);
let status = match code {
0 => EXIT_SUCCESS,
_ => EXIT_FAILURE,
};
exit(status);
#[expect(clippy::empty_loop)]
loop {}
}
}
declare_target!(Target);