Skip to content

Commit b7bb3ac

Browse files
committed
Initial support for the nRF52811
1 parent 3ce300c commit b7bb3ac

File tree

29 files changed

+427
-20
lines changed

29 files changed

+427
-20
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- PWM module ([#200]).
1313
- I2S module ([#201]).
1414
- SPIS module ([#226]).
15+
- Add support for the nRF52811.
1516

1617
### Fixes
1718

Cargo.toml

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Every nRF chip has its own crate, listed below:
1818
|-------|------|-----------|
1919
| [`nrf51-hal`](./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) |
2020
| [`nrf52810-hal`](./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) |
21+
| [`nrf52810-hal`](./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) |
2122
| [`nrf52832-hal`](./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) |
2223
| [`nrf52833-hal`](./nrf52833-hal) | [![docs.rs](https://docs.rs/nrf52833-hal/badge.svg)](https://docs.rs/nrf52833-hal) | [![crates.io](https://img.shields.io/crates/d/nrf52833-hal.svg)](https://crates.io/crates/nrf52833-hal) |
2324
| [`nrf52840-hal`](./nrf52840-hal) | [![docs.rs](https://docs.rs/nrf52840-hal/badge.svg)](https://docs.rs/nrf52840-hal) | [![crates.io](https://img.shields.io/crates/d/nrf52840-hal.svg)](https://crates.io/crates/nrf52840-hal) |
@@ -27,6 +28,7 @@ Every nRF chip has its own crate, listed below:
2728

2829
- [nRF52840 Reference Manual](http://infocenter.nordicsemi.com/pdf/nRF52840_PS_v1.0.pdf)
2930
- [nRF52832 Reference Manual](http://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.4.pdf)
31+
- [nRF52811 Reference Manual](http://infocenter.nordicsemi.com/pdf/nRF52811_PS_v1.0.pdf)
3032
- [nRF52810 Reference Manual](http://infocenter.nordicsemi.com/pdf/nRF52810_PS_v1.2.pdf)
3133
- [nRF9160 Reference Manual](http://infocenter.nordicsemi.com/pdf/nRF9160_PS_v1.1.pdf)
3234

examples/ccm-demo/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ rtt-target = {version = "0.2.0", features = ["cortex-m"] }
1212
rand_core = "0.5.1"
1313

1414
nrf52810-hal = { path = "../../nrf52810-hal", features = ["rt"], optional = true }
15+
nrf52811-hal = { path = "../../nrf52811-hal", features = ["rt"], optional = true }
1516
nrf52832-hal = { path = "../../nrf52832-hal", features = ["rt"], optional = true }
1617
nrf52840-hal = { path = "../../nrf52840-hal", features = ["rt"], optional = true }
1718
nrf52833-hal = { path = "../../nrf52833-hal", features = ["rt"], optional = true }
@@ -23,6 +24,7 @@ test = false
2324

2425
[features]
2526
52810 = ["nrf52810-hal"]
27+
52811 = ["nrf52811-hal"]
2628
52832 = ["nrf52832-hal"]
2729
52840 = ["nrf52840-hal"]
2830
52833 = ["nrf52833-hal"]

examples/ccm-demo/README.md

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

33
Choose the microcontroller with one of the following features:
44
- 52810
5+
- 52811
56
- 52832
67
- 52840
78

examples/ccm-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 = "52810")]
66
pub use nrf52810_hal as hal;
7+
#[cfg(feature = "52811")]
8+
pub use nrf52811_hal as hal;
79
#[cfg(feature = "52832")]
810
pub use nrf52832_hal as hal;
911
#[cfg(feature = "52833")]

examples/ecb-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.6.12"
1111
rtt-target = {version = "0.2.0", features = ["cortex-m"] }
1212

1313
nrf52810-hal = { path = "../../nrf52810-hal", features = ["rt"], optional = true }
14+
nrf52811-hal = { path = "../../nrf52811-hal", features = ["rt"], optional = true }
1415
nrf52832-hal = { path = "../../nrf52832-hal", features = ["rt"], optional = true }
1516
nrf52840-hal = { path = "../../nrf52840-hal", features = ["rt"], optional = true }
1617
nrf52833-hal = { path = "../../nrf52833-hal", features = ["rt"], optional = true }
@@ -24,6 +25,7 @@ test = false
2425
[features]
2526
51 = ["nrf51-hal"]
2627
52810 = ["nrf52810-hal"]
28+
52811 = ["nrf52811-hal"]
2729
52832 = ["nrf52832-hal"]
2830
52840 = ["nrf52840-hal"]
2931
52833 = ["nrf52833-hal"]

examples/ecb-demo/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Choose the microcontroller with one of the following features:
44
- 51
55
- 52810
6+
- 52811
67
- 52832
78
- 52840
89

examples/ecb-demo/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
pub use nrf51_hal as hal;
77
#[cfg(feature = "52810")]
88
pub use nrf52810_hal as hal;
9+
#[cfg(feature = "52811")]
10+
pub use nrf52811_hal as hal;
911
#[cfg(feature = "52832")]
1012
pub use nrf52832_hal as hal;
1113
#[cfg(feature = "52833")]

examples/ppi-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.6.12"
1111
rtt-target = {version = "0.2.0", features = ["cortex-m"] }
1212

1313
nrf52810-hal = { path = "../../nrf52810-hal", features = ["rt"], optional = true }
14+
nrf52811-hal = { path = "../../nrf52811-hal", features = ["rt"], optional = true }
1415
nrf52832-hal = { path = "../../nrf52832-hal", features = ["rt"], optional = true }
1516
nrf52840-hal = { path = "../../nrf52840-hal", features = ["rt"], optional = true }
1617
nrf52833-hal = { path = "../../nrf52833-hal", features = ["rt"], optional = true }
@@ -24,6 +25,7 @@ test = false
2425
[features]
2526
51 = ["nrf51-hal"]
2627
52810 = ["nrf52810-hal"]
28+
52811 = ["nrf52811-hal"]
2729
52832 = ["nrf52832-hal"]
2830
52840 = ["nrf52840-hal"]
2931
52833 = ["nrf52833-hal"]

0 commit comments

Comments
 (0)