This crate is a Board Support Package (BSP). It wraps the HAL crate
(nrf52832-hal
or nrf52810-hal
) for the on-board MCU, and provides high level
wrappers for the onboard features.
Select the variant of your board via Cargo features:
Board | MCU | Feature |
---|---|---|
E73-TBA | nRF52810 | tba |
E73-TBB | nRF52832 | tbb |
For example:
[dependencies.ebyte-e73-tbx-bsp]
version = "x.y.z"
features = ["tba"]
You will require the thumbv7em-none-eabihf
target installed. To build one of
these examples:
$ rustup target add thumbv7em-none-eabihf
$ git clone https://github.com/nrf-rs/nrf-bsp-template.git
$ cd nrf-bsp-template
$ cargo build --target=thumbv7em-none-eabihf --example blinky
To use in your own application, add as a dependency and call the
Board::take()
function.
This crate is guaranteed to build on stable Rust 1.43 and higher.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.