Skip to content

Commit 2db1606

Browse files
authored
Merge pull request #422 from placrosse/master
Support nRF52805
2 parents 64a65b6 + e0a770e commit 2db1606

File tree

31 files changed

+374
-20
lines changed

31 files changed

+374
-20
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44

5-
(no changes)
5+
- add support for nRF52805
66

77
## [0.17.1]
88

Cargo.ci.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
resolver = "2"
33
members = [
44
"xtask",
5+
"nrf52805-hal",
56
"nrf52810-hal",
67
"nrf52811-hal",
78
"nrf52832-hal",

Cargo.example.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
resolver = "2"
1717
members = [
1818
# Uncomment ONLY ONE of the hals below, depending on your target
19+
# "nrf52805-hal",
1920
# "nrf52810-hal",
2021
# "nrf52811-hal",
2122
# "nrf52832-hal",

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Every nRF chip has its own crate, listed below:
1717
| Crate | Docs | crates.io | target |
1818
|-------|------|-----------|--------|
1919
| `nrf51-hal` | [![docs.rs](https://docs.rs/nrf51-hal/badge.svg)](https://docs.rs/nrf51-hal) | [![crates.io](https://img.shields.io/crates/d/nrf51-hal.svg)](https://crates.io/crates/nrf51-hal) | `thumbv6m-none-eabi` |
20+
| `nrf52805-hal` | [![docs.rs](https://docs.rs/nrf52805-hal/badge.svg)](https://docs.rs/nrf52805-hal) | [![crates.io](https://img.shields.io/crates/d/nrf52805-hal.svg)](https://crates.io/crates/nrf52805-hal) | `thumbv7em-none-eabi` |
2021
| `nrf52810-hal` | [![docs.rs](https://docs.rs/nrf52810-hal/badge.svg)](https://docs.rs/nrf52810-hal) | [![crates.io](https://img.shields.io/crates/d/nrf52810-hal.svg)](https://crates.io/crates/nrf52810-hal) | `thumbv7em-none-eabi` |
2122
| `nrf52811-hal` | [![docs.rs](https://docs.rs/nrf52811-hal/badge.svg)](https://docs.rs/nrf52811-hal) | [![crates.io](https://img.shields.io/crates/d/nrf52811-hal.svg)](https://crates.io/crates/nrf52811-hal) | `thumbv7em-none-eabi` |
2223
| `nrf52832-hal` | [![docs.rs](https://docs.rs/nrf52832-hal/badge.svg)](https://docs.rs/nrf52832-hal) | [![crates.io](https://img.shields.io/crates/d/nrf52832-hal.svg)](https://crates.io/crates/nrf52832-hal) | `thumbv7em-none-eabihf` |
@@ -28,6 +29,7 @@ Every nRF chip has its own crate, listed below:
2829

2930
| Device | Product Specification | DK Reference Guide |
3031
|-------|------|-----------|
32+
| [`nRF52805`](https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52805) | [`v1.3`](https://infocenter.nordicsemi.com/pdf/nRF52805_PS_v1.3.pdf) | [`v1.3.1*`](https://infocenter.nordicsemi.com/pdf/nRF52_DK_User_Guide_v1.3.1.pdf) |
3133
| [`nRF52810`](https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52810) | [`v1.3`](https://infocenter.nordicsemi.com/pdf/nRF52810_PS_v1.3.pdf) | [`v1.3.1*`](https://infocenter.nordicsemi.com/pdf/nRF52_DK_User_Guide_v1.3.1.pdf) |
3234
| [`nRF52811`](https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52811) | [`v1.0`](https://infocenter.nordicsemi.com/pdf/nRF52811_PS_v1.0.pdf) | [`v1.3.1*`](https://infocenter.nordicsemi.com/pdf/nRF52_DK_User_Guide_v1.3.1.pdf) |
3335
| [`nRF52832`](https://www.nordicsemi.com/Products/Low-power-short-range-wireless/nRF52832) | [`v1.4`](https://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.4.pdf) | [`v1.3.1*`](https://infocenter.nordicsemi.com/pdf/nRF52_DK_User_Guide_v1.3.1.pdf) |

examples/ccm-demo/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ cortex-m-rt = "0.7.0"
1111
rtt-target = "0.5.0"
1212
rand_core = "0.6.3"
1313

14+
nrf52805-hal = { path = "../../nrf52805-hal", features = ["rt"], optional = true }
1415
nrf52810-hal = { path = "../../nrf52810-hal", features = ["rt"], optional = true }
1516
nrf52811-hal = { path = "../../nrf52811-hal", features = ["rt"], optional = true }
1617
nrf52832-hal = { path = "../../nrf52832-hal", features = ["rt"], optional = true }
@@ -23,6 +24,7 @@ doc = false
2324
test = false
2425

2526
[features]
27+
52805 = ["nrf52805-hal"]
2628
52810 = ["nrf52810-hal"]
2729
52811 = ["nrf52811-hal"]
2830
52832 = ["nrf52832-hal"]

examples/ccm-demo/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ This CCM (cipher block chaining) encryption demo initialises a text message of t
55
## How to run
66

77
Choose the microcontroller with one of the following features:
8+
- 52805
89
- 52810
910
- 52811
1011
- 52832

examples/ccm-demo/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#![no_main]
33

44
// Import the right HAL/PAC crate, depending on the target chip
5+
#[cfg(feature = "52805")]
6+
pub use nrf52805_hal as hal;
57
#[cfg(feature = "52810")]
68
pub use nrf52810_hal as hal;
79
#[cfg(feature = "52811")]

examples/ecb-demo/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ cortex-m = { version = "0.7.3", features = ["critical-section-single-core"] }
1010
cortex-m-rt = "0.7.0"
1111
rtt-target = "0.5.0"
1212

13+
nrf52805-hal = { path = "../../nrf52805-hal", features = ["rt"], optional = true }
1314
nrf52810-hal = { path = "../../nrf52810-hal", features = ["rt"], optional = true }
1415
nrf52811-hal = { path = "../../nrf52811-hal", features = ["rt"], optional = true }
1516
nrf52832-hal = { path = "../../nrf52832-hal", features = ["rt"], optional = true }
@@ -24,6 +25,7 @@ test = false
2425

2526
[features]
2627
51 = ["nrf51-hal"]
28+
52805 = ["nrf52805-hal"]
2729
52810 = ["nrf52810-hal"]
2830
52811 = ["nrf52811-hal"]
2931
52832 = ["nrf52832-hal"]

examples/ecb-demo/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The AES electronic codebook mode (ECB) demo demonstrates a blocking 128-bit AES
66

77
Choose the microcontroller with one of the following features:
88
- 51
9+
- 52805
910
- 52810
1011
- 52811
1112
- 52832

examples/ecb-demo/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// Import the right HAL/PAC crate, depending on the target chip
55
#[cfg(feature = "51")]
66
pub use nrf51_hal as hal;
7+
#[cfg(feature = "52805")]
8+
pub use nrf52805_hal as hal;
79
#[cfg(feature = "52810")]
810
pub use nrf52810_hal as hal;
911
#[cfg(feature = "52811")]

0 commit comments

Comments
 (0)