Skip to content

Commit 66e3355

Browse files
committed
Add ecb to nrf52833 and build example
1 parent 9778383 commit 66e3355

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

examples/ecb-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
nrf52810-hal = { path = "../../nrf52810-hal", features = ["rt"], optional = true }
1313
nrf52832-hal = { path = "../../nrf52832-hal", features = ["rt"], optional = true }
1414
nrf52840-hal = { path = "../../nrf52840-hal", features = ["rt"], optional = true }
15+
nrf52833-hal = { path = "../../nrf52833-hal", features = ["rt"], optional = true }
1516
nrf51-hal = { path = "../../nrf51-hal", features = ["rt"], optional = true}
1617

1718
[[bin]]
@@ -24,3 +25,4 @@ test = false
2425
52810 = ["nrf52810-hal"]
2526
52832 = ["nrf52832-hal"]
2627
52840 = ["nrf52840-hal"]
28+
52833 = ["nrf52833-hal"]

examples/ecb-demo/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ pub use nrf51_hal as hal;
88
pub use nrf52810_hal as hal;
99
#[cfg(feature = "52832")]
1010
pub use nrf52832_hal as hal;
11+
#[cfg(feature = "52833")]
12+
pub use nrf52833_hal as hal;
1113
#[cfg(feature = "52840")]
1214
pub use nrf52840_hal as hal;
1315

nrf52833-hal/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub mod prelude {
1313

1414
pub use crate::clocks::Clocks;
1515
pub use crate::delay::Delay;
16+
pub use crate::ecb::Ecb;
1617
pub use crate::saadc::Saadc;
1718
pub use crate::spim::Spim;
1819
pub use crate::temp::Temp;

scripts/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@ echo Building examples/twi-ssd1306...
4343
cargo build --manifest-path examples/twi-ssd1306/Cargo.toml
4444
echo Building examples/twi-ssd1306...
4545
cargo build --manifest-path examples/twi-ssd1306/Cargo.toml --no-default-features --features="52840" --target thumbv7em-none-eabi
46+
echo Building examples/ecb-demo...
47+
cargo build --manifest-path examples/ecb-demo/Cargo.toml --features=52832
4648
echo Checking source code formatting...
4749
cargo +stable fmt -- --check

0 commit comments

Comments
 (0)