Skip to content

Commit 6ede424

Browse files
author
Jonas Schievink
committed
Clean up Cargo features, support nRF52833
1 parent 9ce50b5 commit 6ede424

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

nrf-hal-common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ doc = []
7777
52810 = ["nrf52810-pac"]
7878
52811 = ["nrf52811-pac"]
7979
52832 = ["nrf52832-pac"]
80-
52833 = ["nrf52833-pac"]
80+
52833 = ["nrf52833-pac", "usb-device"]
8181
52840 = ["nrf52840-pac", "usb-device"]
8282
9160 = ["nrf9160-pac"]

nrf-hal-common/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub mod uarte;
8181
#[cfg(not(feature = "9160"))]
8282
pub mod uicr;
8383
pub mod wdt;
84-
#[cfg(feature = "52840")]
84+
#[cfg(feature = "usb-device")]
8585
pub mod usbd;
8686

8787
pub mod prelude {

nrf-hal-common/src/usbd/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ impl Buffers {
4545
}
4646
}
4747

48-
unsafe impl Sync for Buffers {}
49-
5048
#[derive(Copy, Clone)]
5149
enum TransferState {
5250
NoTransfer,

nrf52840-hal/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ nrf52840-pac = "0.9.0"
2323
[dependencies.nrf-hal-common]
2424
path = "../nrf-hal-common"
2525
default-features = false
26-
features = ["52840", "usb-device"]
26+
features = ["52840"]
2727
version = "=0.12.2"
2828

2929
[dependencies.embedded-hal]

0 commit comments

Comments
 (0)