#nrf52 #hal #arm #cortex-m

no-std nrf52-hal-common

Common HAL for the nRF52 family of microcontrollers. More specific HAL crates also exist.

6 releases

0.8.1 Apr 28, 2019
0.8.0 Apr 21, 2019
0.7.0 Feb 22, 2019
0.6.1 Dec 29, 2018
0.6.0-beta.3 Nov 18, 2018

#2148 in Embedded development

Download history 51/week @ 2024-03-11 31/week @ 2024-03-18 27/week @ 2024-03-25 69/week @ 2024-04-01 22/week @ 2024-04-08 58/week @ 2024-04-15 44/week @ 2024-04-22 28/week @ 2024-04-29 34/week @ 2024-05-06 31/week @ 2024-05-13 31/week @ 2024-05-20 28/week @ 2024-05-27 23/week @ 2024-06-03 23/week @ 2024-06-10 26/week @ 2024-06-17 28/week @ 2024-06-24

105 downloads per month

MIT/Apache

97KB
2K SLoC

nrf-hal

HAL for the nRF51, nRF52 and nRF91 families of microcontrollers

CI

Please refer to the changelog to see what changed in the last releases.

Crates

Every nRF chip has its own crate, listed below:

Crate Docs crates.io target
nrf51-hal docs.rs crates.io thumbv6m-none-eabi
nrf52805-hal docs.rs crates.io thumbv7em-none-eabi
nrf52810-hal docs.rs crates.io thumbv7em-none-eabi
nrf52811-hal docs.rs crates.io thumbv7em-none-eabi
nrf52832-hal docs.rs crates.io thumbv7em-none-eabihf
nrf52833-hal docs.rs crates.io thumbv7em-none-eabihf
nrf52840-hal docs.rs crates.io thumbv7em-none-eabihf
nrf9160-hal docs.rs crates.io thumbv8m.main-none-eabihf

Device Reference Manuals from Nordic

Device Product Specification DK Reference Guide
nRF52805 v1.3 v1.3.1*
nRF52810 v1.3 v1.3.1*
nRF52811 v1.0 v1.3.1*
nRF52832 v1.4 v1.3.1*
nRF52833 v1.3 v1.0.1
nRF52840 v1.1 v1.2
nRF9160 v2.0 v0.9.3

* These devices do not have a separate development kit and share the NRF52 DK

Development

Be sure to copy and edit the Cargo.example.toml file to Cargo.toml. The file will require editing dependent on the target you wish to work with and contains some further instructions. Similarly, check out the .vscode/settings.json file when used in the context of Visual Studio Code. By default, all of these files are configured to work with the nRF52840 target.

License

Licensed under either of

at your option.

Contribution

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.

Dependencies

~1–5MB
~131K SLoC