From 6f80923609a6b25378ced37b94f5a63ab1f196b1 Mon Sep 17 00:00:00 2001 From: bunnie Date: Thu, 23 Mar 2023 21:38:17 +0800 Subject: [PATCH] fix hosted mode...again... --- services/llio/src/i2c/hosted.rs | 3 ++- services/llio/src/llio_hosted.rs | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/services/llio/src/i2c/hosted.rs b/services/llio/src/i2c/hosted.rs index 7fe99174c..b5e4732df 100644 --- a/services/llio/src/i2c/hosted.rs +++ b/services/llio/src/i2c/hosted.rs @@ -1,10 +1,11 @@ use crate::api::*; +use std::sync::{Arc, atomic::AtomicBool}; pub(crate) struct I2cStateMachine { } impl I2cStateMachine { - pub fn new(_handler_conn: xous::CID) -> Self { + pub fn new(_handler_conn: xous::CID, _power_csr_raw: *mut u32, _wfi_state: Arc::) -> Self { I2cStateMachine { } } diff --git a/services/llio/src/llio_hosted.rs b/services/llio/src/llio_hosted.rs index 0fcfcd3c0..226c179a3 100644 --- a/services/llio/src/llio_hosted.rs +++ b/services/llio/src/llio_hosted.rs @@ -90,4 +90,7 @@ impl Llio { #[allow(dead_code)] pub fn tts_sleep_indicate(&mut self) { } + pub fn get_power_csr_raw(&self) -> u32 { + 0 + } }