Skip to content

Commit 26e64c5

Browse files
Revert "errata: use volatile operations"
This reverts commit 09f28fa.
1 parent c5df788 commit 26e64c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/// Writes `val` to `addr`. Used to apply Errata workarounds.
22
unsafe fn poke(addr: u32, val: u32) {
3-
(addr as *mut u32).write_volatile(val);
3+
*(addr as *mut u32) = val;
44
}
55

66
/// Reads 32 bits from `addr`.
77
unsafe fn peek(addr: u32) -> u32 {
8-
(addr as *mut u32).read_volatile()
8+
*(addr as *mut u32)
99
}
1010

1111
pub fn pre_enable() {

0 commit comments

Comments
 (0)