1#![doc(html_root_url = "https://docs.rs/microbit-common/0.16.0")]
5#![no_std]
6#![deny(missing_docs)]
7#![allow(non_camel_case_types)]
8
9#[cfg(all(feature = "v1", feature = "v2"))]
10compile_error!("canot build for microbit v1 and v2 at the same time");
11
12#[cfg(feature = "v1")]
13pub use nrf51_hal as hal;
14
15#[cfg(feature = "v2")]
16pub use nrf52833_hal as hal;
17
18pub use hal::pac;
19pub use hal::pac::Peripherals;
20
21pub mod adc;
22pub mod board;
23pub mod display;
24pub mod gpio;
25
26pub use board::Board;
27
28#[cfg(feature = "v1")]
29mod v1;
30
31#[cfg(feature = "v2")]
32mod v2;