Skip to content

Commit eb8b34a

Browse files
authored
Merge pull request #477 from nrf-rs/buildfix
Fix build after #422.
2 parents 2db1606 + 55492ec commit eb8b34a

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

nrf-hal-common/src/lib.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,19 @@ pub mod target_constants {
150150
pub const SRAM_LOWER: usize = 0x2000_0000;
151151
pub const SRAM_UPPER: usize = 0x3000_0000;
152152

153-
#[cfg(any(feature = "51", feature = "52805", feature = "52810", feature = "52832"))]
153+
#[cfg(any(
154+
feature = "51",
155+
feature = "52805",
156+
feature = "52810",
157+
feature = "52832"
158+
))]
154159
pub const FORCE_COPY_BUFFER_SIZE: usize = 255;
155-
#[cfg(not(any(feature = "51", feature = "52805", feature = "52810", feature = "52832")))]
160+
#[cfg(not(any(
161+
feature = "51",
162+
feature = "52805",
163+
feature = "52810",
164+
feature = "52832"
165+
)))]
156166
pub const FORCE_COPY_BUFFER_SIZE: usize = 1024;
157167
const _CHECK_FORCE_COPY_BUFFER_SIZE: usize = EASY_DMA_SIZE - FORCE_COPY_BUFFER_SIZE;
158168
// ERROR: FORCE_COPY_BUFFER_SIZE must be <= EASY_DMA_SIZE

nrf52805-hal/Cargo.toml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nrf52805-hal"
3-
version = "0.16.0"
3+
version = "0.17.1"
44
edition = "2018"
55
description = "HAL for nRF52805 microcontrollers"
66
readme = "../README.md"
@@ -24,13 +24,10 @@ nrf52805-pac = "0.12.2"
2424
path = "../nrf-hal-common"
2525
default-features = false
2626
features = ["52805"]
27-
version = "=0.16.0"
28-
29-
[dependencies.embedded-hal]
30-
features = ["unproven"]
31-
version = "0.2.3"
27+
version = "=0.17.1"
3228

3329
[features]
3430
doc = []
31+
embedded-hal-02 = ["nrf-hal-common/embedded-hal-02"]
3532
rt = ["nrf52805-pac/rt"]
36-
default = ["rt"]
33+
default = ["rt", "embedded-hal-02"]

nrf52805-hal/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
#![no_std]
2-
#![doc(html_root_url = "https://docs.rs/nrf52805-hal/0.16.0")]
2+
#![doc(html_root_url = "https://docs.rs/nrf52805-hal/0.17.1")]
33

4-
use embedded_hal as hal;
54
pub use nrf_hal_common::*;
65

76
pub mod prelude {
8-
pub use crate::hal::prelude::*;
97
pub use nrf_hal_common::prelude::*;
10-
11-
pub use crate::time::U32Ext;
128
}
139

1410
pub use crate::ccm::Ccm;

xtask/src/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ pub static HALS: &[(&str, &str)] = &[
1515

1616
pub static EXAMPLES: &[(&str, &[&str])] = &[
1717
("blinky-button-demo", &[]),
18-
("ccm-demo", &["52805", "52810", "52811", "52832", "52833", "52840"]),
18+
(
19+
"ccm-demo",
20+
&["52805", "52810", "52811", "52832", "52833", "52840"],
21+
),
1922
("comp-demo", &[]),
2023
(
2124
"ecb-demo",
@@ -35,7 +38,10 @@ pub static EXAMPLES: &[(&str, &[&str])] = &[
3538
("pwm-demo", &[]),
3639
("qdec-demo", &[]),
3740
("rtc-demo", &[]),
38-
("rtic-demo", &["51", "52805", "52810", "52811", "52832", "52840"]),
41+
(
42+
"rtic-demo",
43+
&["51", "52805", "52810", "52811", "52832", "52840"],
44+
),
3945
("spi-demo", &[]),
4046
("spis-demo", &[]),
4147
("twi-ssd1306", &["52832", "52840"]),

0 commit comments

Comments
 (0)