1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
//! Write **l0dable** apps for the [CCCamp 2015](https://events.ccc.de/camp/2015/) [rad1o badge](https://github.com/rad1o). //! //! ## Prerequisites //! //! ### File `.cargo/config` //! //! ```toml //! [target.thumbv7em-none-eabihf] //! runner = "arm-none-eabi-gdb" //! rustflags = [ //! "-C", "link-arg=-Tl0dable.x", //! "-C", "linker=lld", //! "-Z", "linker-flavor=ld.lld", //! ] //! //! [build] //! target = "thumbv7em-none-eabihf" //! ``` //! //! ### Enable Link-Time Optimization in `Cargo.toml` //! //! Optional, but strongly recommended for code size: //! //! ```toml //! [profile.release] //! lto = true //! ``` //! ### Build script //! //! ```shell //! cargo build --release //! arm-none-eabi-objcopy -O binary --strip-unneeded target/thumbv7m-none-eabi/release/demo demo.c1d //! ``` #![no_std] //#![warn(missing_docs)] extern crate lpc43xx as target; extern crate r0; extern crate embedded_hal as hal; /// l0dable startup pub mod startup; /// Calling firmware functions pub mod table; /// Display pub mod lcd; /// Joystick pub mod input; /// Blinking LEDs mod led; pub use led::{LED, IdentifyLED}; pub use led::LED::*; // Time functions pub mod time; /// `getRandom` pub mod rand; /// Power supply information pub mod power;