Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ jobs:
# if there are breaking changes in `ec-test-cli`
#
# We can update this commit when we want to pull in a new `ec-test-cli`
EC_TEST_CLI_REV: d705cd4f
EC_TEST_CLI_REV: 20347787

# Tag of the prebuilt QEMU image pulled from the odp-qemu-builder GHCR package
ODP_QEMU_TAG: sha-7e461b3
Expand Down
5 changes: 3 additions & 2 deletions platform/dev-imxrt/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ use static_cell::StaticCell;
#[embassy_executor::task]
async fn uart_service(uart: uart::Uart<'static, uart::Async>, relay: MockOdpRelayHandler) {
info!("Starting uart service");
static UART_SERVICE: StaticCell<uart_service::DefaultService<MockOdpRelayHandler>> = StaticCell::new();
let uart_service = uart_service::DefaultService::default_smbusespi(relay).unwrap();
static UART_SERVICE: StaticCell<uart_service::MctpSerialService<MockOdpRelayHandler>> = StaticCell::new();
let uart_service =
uart_service::MctpSerialService::default_mctp_serial(relay).expect("failed to init MctpSerial uart-service");
let uart_service = UART_SERVICE.init(uart_service);

let Err(e) = uart_service::task::uart_service(uart_service, uart).await;
Expand Down
5 changes: 3 additions & 2 deletions platform/dev-mcxa/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ use static_cell::StaticCell;
#[embassy_executor::task]
async fn uart_service(uart: lpuart::LpuartBbq, relay: MockOdpRelayHandler) {
info!("Starting uart service");
static UART_SERVICE: StaticCell<uart_service::DefaultService<MockOdpRelayHandler>> = StaticCell::new();
let uart_service = uart_service::DefaultService::default_smbusespi(relay).unwrap();
static UART_SERVICE: StaticCell<uart_service::MctpSerialService<MockOdpRelayHandler>> = StaticCell::new();
let uart_service =
uart_service::MctpSerialService::default_mctp_serial(relay).expect("failed to init MctpSerial uart-service");
let uart_service = UART_SERVICE.init(uart_service);

let Err(e) = uart_service::task::uart_service(uart_service, uart).await;
Expand Down
5 changes: 3 additions & 2 deletions platform/dev-mec/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ use static_cell::StaticCell;
#[embassy_executor::task]
async fn uart_service(uart: uart::Uart<'static, uart::Async>, relay: MockOdpRelayHandler) {
info!("Starting uart service");
static UART_SERVICE: StaticCell<uart_service::DefaultService<MockOdpRelayHandler>> = StaticCell::new();
let uart_service = uart_service::DefaultService::default_smbusespi(relay).unwrap();
static UART_SERVICE: StaticCell<uart_service::MctpSerialService<MockOdpRelayHandler>> = StaticCell::new();
let uart_service =
uart_service::MctpSerialService::default_mctp_serial(relay).expect("failed to init MctpSerial uart-service");
let uart_service = UART_SERVICE.init(uart_service);

let Err(e) = uart_service::task::uart_service(uart_service, uart).await;
Expand Down
5 changes: 3 additions & 2 deletions platform/dev-npcx/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ async fn uart_service(
) {
info!("Starting uart service");

static UART_SERVICE: StaticCell<uart_service::DefaultService<MockOdpRelayHandler>> = StaticCell::new();
let uart_service = uart_service::DefaultService::default_smbusespi(relay).unwrap();
static UART_SERVICE: StaticCell<uart_service::MctpSerialService<MockOdpRelayHandler>> = StaticCell::new();
let uart_service =
uart_service::MctpSerialService::default_mctp_serial(relay).expect("failed to init MctpSerial uart-service");
let uart_service = UART_SERVICE.init(uart_service);
let Err(e) = uart_service::task::uart_service(uart_service, uart).await;
panic!("uart-service error: {:?}", e);
Expand Down
5 changes: 3 additions & 2 deletions platform/dev-qemu/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ use static_cell::StaticCell;
#[embassy_executor::task]
async fn uart_service(uart: buffered::Uart<'static, Async>, relay: MockOdpRelayHandler) {
info!("Starting uart service");
static UART_SERVICE: StaticCell<uart_service::DefaultService<MockOdpRelayHandler>> = StaticCell::new();
let uart_service = uart_service::DefaultService::default_smbusespi(relay).unwrap();
static UART_SERVICE: StaticCell<uart_service::MctpSerialService<MockOdpRelayHandler>> = StaticCell::new();
let uart_service =
uart_service::MctpSerialService::default_mctp_serial(relay).expect("failed to init MctpSerial uart-service");
let uart_service = UART_SERVICE.init(uart_service);
let Err(e) = uart_service::task::uart_service(uart_service, uart).await;
panic!("uart-service error: {:?}", e);
Expand Down
Loading