Skip to content

Commit

Permalink
fixup! feat(device-id): Add to riot-rs and the archs
Browse files Browse the repository at this point in the history
This addresses fallout from rebasing.
  • Loading branch information
chrysn committed Oct 18, 2024
1 parent ce1fa3a commit 6adb956
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/riot-rs-nrf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ nrf52832-pac = "0.12.2"
[target.'cfg(context = "nrf52833")'.dependencies]
# Disable NFC support for now, as we do not support it yet.
embassy-nrf = { workspace = true, features = ["nfc-pins-as-gpio", "nrf52833"] }
nrf52833-pac = "0.12.2"

[target.'cfg(context = "nrf52840")'.dependencies]
embassy-nrf = { workspace = true, features = ["nrf52840"] }
Expand Down
2 changes: 2 additions & 0 deletions src/riot-rs-nrf/src/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ impl riot_rs_embassy_common::identity::DeviceId for DeviceId {
let ficr = unsafe { nrf52840_pac::Peripherals::steal().FICR };
#[cfg(context = "nrf52832")]
let ficr = unsafe { nrf52832_pac::Peripherals::steal().FICR };
#[cfg(context = "nrf52833")]
let ficr = unsafe { nrf52833_pac::Peripherals::steal().FICR };
#[cfg(context = "nrf5340")]
let ficr = &unsafe { nrf5340_app_pac::Peripherals::steal().FICR_S }.info;

Expand Down

0 comments on commit 6adb956

Please sign in to comment.