diff options
author | alexmoon <alex.r.moon@gmail.com> | 2022-04-10 16:25:40 -0400 |
---|---|---|
committer | alexmoon <alex.r.moon@gmail.com> | 2022-04-13 14:55:02 -0400 |
commit | 3a30b08936e49c48b7e90e183a402d91ba829021 (patch) | |
tree | f3c8e8495b34d0b48a1a505accd0eb35491cb3ec /embassy-nrf | |
parent | f5656e354485888cc7c2697052ae2c79b94a59ad (diff) | |
download | embassy-3a30b08936e49c48b7e90e183a402d91ba829021.zip |
Remove dead code on nrf5340
Diffstat (limited to 'embassy-nrf')
-rw-r--r-- | embassy-nrf/src/usb.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-nrf/src/usb.rs b/embassy-nrf/src/usb.rs index 3d90f4b9..7f99b9a1 100644 --- a/embassy-nrf/src/usb.rs +++ b/embassy-nrf/src/usb.rs @@ -864,11 +864,13 @@ macro_rules! impl_usb { mod errata { /// Writes `val` to `addr`. Used to apply Errata workarounds. + #[cfg(any(feature = "nrf52840", feature = "nrf52833", feature = "nrf52820"))] unsafe fn poke(addr: u32, val: u32) { (addr as *mut u32).write_volatile(val); } /// Reads 32 bits from `addr`. + #[cfg(feature = "nrf52840")] unsafe fn peek(addr: u32) -> u32 { (addr as *mut u32).read_volatile() } |