mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-24 09:40:52 +00:00
It's crappy because it uses a busy wait loop to poll the udp rx socket in order to accurately emulate the Xous async callback feature (which is _not_ emulated for Tcp, for example). It's more accurate because this emulation happens. But it's a lot more complicated to implement it because zero-cost async UDP callbacks aren't really a host-native feature (but they are a Xous-native feature!), and I didn't want to .. pull in tokio or mio code surface into the Xous hosted mode, seemed a bit like crushing a fly by dropping a house on it. Maybe that's a fine solution in Oz, but Xous doesn't live in Oz.
13 lines
324 B
Rust
13 lines
324 B
Rust
pub mod api;
|
|
#[allow(unused_imports)]
|
|
use api::*;
|
|
|
|
#[cfg(any(target_os = "none", target_os = "xous"))]
|
|
mod hw;
|
|
#[cfg(any(target_os = "none", target_os = "xous"))]
|
|
pub use hw::*;
|
|
|
|
#[cfg(not(any(target_os = "none", target_os = "xous")))]
|
|
mod hosted;
|
|
#[cfg(not(any(target_os = "none", target_os = "xous")))]
|
|
pub use hosted::*;
|