From 58308656a0f2331b7c4e8b156a03701644feb3b5 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 6 May 2024 02:25:09 +0800 Subject: [PATCH] fix feature flags for xous deployment --- libs/xous-pio/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/xous-pio/src/lib.rs b/libs/xous-pio/src/lib.rs index 12b6e30f0..3bacd0ee2 100644 --- a/libs/xous-pio/src/lib.rs +++ b/libs/xous-pio/src/lib.rs @@ -134,7 +134,7 @@ pub struct PioSharedState { used_machines: [bool; 4], } impl PioSharedState { - #[cfg(all(feature = "baremetal", not(feature = "rp2040")))] + #[cfg(all(feature = "baremetal", not(feature = "rp2040"), not(target_os = "xous")))] pub fn new() -> Self { PioSharedState { pio: CSR::new(rp_pio::HW_RP_PIO_BASE as *mut u32), @@ -149,7 +149,7 @@ impl PioSharedState { PioSharedState { pio: CSR::new(0x5020_0000 as *mut u32), used_mask: 0, used_machines: [false; 4] } } - #[cfg(not(feature = "baremetal"))] + #[cfg(target_os = "xous")] pub fn new() -> Self { // Note: this requires a memory region window to be manually specified in create-image // so that the loader maps the pages for the PIO block. This is because the PIO block is