microbit-common 0.16.0

Implementation details for the BBC Micro:bit board support crates
Documentation
//! microbit contains everything required to get started with the use of Rust
//! to create firmwares for the fabulous [BBC micro:bit](https://microbit.org)
//! microcontroller board.
#![doc(html_root_url = "https://docs.rs/microbit-common/0.16.0")]
#![no_std]
#![deny(missing_docs)]
#![allow(non_camel_case_types)]

#[cfg(all(feature = "v1", feature = "v2"))]
compile_error!("canot build for microbit v1 and v2 at the same time");

#[cfg(feature = "v1")]
pub use nrf51_hal as hal;

#[cfg(feature = "v2")]
pub use nrf52833_hal as hal;

pub use hal::pac;
pub use hal::pac::Peripherals;

pub mod adc;
pub mod board;
pub mod display;
pub mod gpio;

pub use board::Board;

#[cfg(feature = "v1")]
mod v1;

#[cfg(feature = "v2")]
mod v2;