#hal #micro-controller #nrf #cortex-m #nrf52 #arm #embedded-devices

no-std nrf-hal-common

Implementation details of the nRF HAL crates. Don’t use this directly, use one of the specific HAL crates instead (nrfXYZ-hal).

16 releases (8 breaking)

0.18.0 May 25, 2024
0.16.1 Mar 5, 2024
0.16.0 Oct 26, 2022
0.15.1 May 31, 2022
0.11.1 Jul 21, 2020

#23 in Embedded development

Download history 503/week @ 2024-07-01 427/week @ 2024-07-08 536/week @ 2024-07-15 610/week @ 2024-07-22 630/week @ 2024-07-29 481/week @ 2024-08-05 742/week @ 2024-08-12 559/week @ 2024-08-19 568/week @ 2024-08-26 667/week @ 2024-09-02 544/week @ 2024-09-09 609/week @ 2024-09-16 787/week @ 2024-09-23 641/week @ 2024-09-30 273/week @ 2024-10-07 800/week @ 2024-10-14

2,563 downloads per month
Used in 38 crates (11 directly)

MIT/Apache

525KB
11K 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

~3–15MB
~420K SLoC