From cfb5e8df57cdab5dd4c511494ce1326da2e88a61 Mon Sep 17 00:00:00 2001 From: Jacob Rosenthal Date: Wed, 15 Dec 2021 11:00:55 -0700 Subject: [PATCH] undo T:regs in impl UsbPeripheral --- embassy-nrf/src/usb.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/embassy-nrf/src/usb.rs b/embassy-nrf/src/usb.rs index b110258c..deab9454 100644 --- a/embassy-nrf/src/usb.rs +++ b/embassy-nrf/src/usb.rs @@ -15,7 +15,8 @@ pub struct UsbBus<'d, T: Instance> { } unsafe impl<'d, T: Instance> UsbPeripheral for UsbBus<'d, T> { - const REGISTERS: *const () = T::regs as *const (); + // todo how to use T::regs + const REGISTERS: *const () = pac::USBD::ptr() as *const (); } impl<'d, T: Instance> UsbBus<'d, T> {