From d3308f7e5a02da5fb6ccdd6059afe8656761a685 Mon Sep 17 00:00:00 2001 From: Gerzain Mata Date: Wed, 16 Jul 2025 17:32:34 -0700 Subject: [PATCH] Fixed register names from recent stm32-data changes --- embassy-stm32/src/usb/otg.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embassy-stm32/src/usb/otg.rs b/embassy-stm32/src/usb/otg.rs index a8b625e8c..5602a2541 100644 --- a/embassy-stm32/src/usb/otg.rs +++ b/embassy-stm32/src/usb/otg.rs @@ -335,7 +335,7 @@ impl<'d, T: Instance> Bus<'d, T> { critical_section::with(|_| { crate::pac::RCC.ahb2enr().modify(|w| { - w.set_otgen(true); + w.set_usb_otg_hsen(true); w.set_otghsphyen(true); }); });