firefly-hal 0.5.3

Hardware Abstraction Layer for Firefly Zero device and emulators
Documentation
// Embedded uses no_std rust.
#![cfg_attr(target_os = "none", no_std)]
// Embedded requires allocator API to allocate Vec in PSRAM.
#![cfg_attr(target_os = "none", feature(allocator_api))]
#![allow(clippy::new_without_default)]

extern crate alloc;

mod errors;
mod shared;

#[cfg_attr(target_family = "wasm", path = "web.rs")]
#[cfg_attr(not(target_os = "none"), path = "hosted.rs")]
#[cfg_attr(target_os = "none", path = "embedded.rs")]
mod device;

#[cfg(not(target_os = "none"))]
#[cfg_attr(target_os = "android", path = "gamepad_android.rs")]
#[cfg_attr(not(target_os = "android"), path = "gamepad.rs")]
mod gamepad;

#[cfg(not(target_os = "none"))]
pub use device::DeviceConfig;

pub use device::{Addr, DeviceImpl, DirImpl};
pub use errors::*;
pub use shared::*;