We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c8d1b4 commit 8e3b982Copy full SHA for 8e3b982
src/usb.rs
@@ -49,10 +49,8 @@ unsafe impl UsbPeripheral for Peripheral {
49
/// Remap PA11/PA12 pins to PA09/PA10 for USB on
50
/// TSSOP20 (STM32F042F) or UFQFPN28 (STM32F042G) packages
51
pub fn remap_pins(rcc: &mut RCC, syscfg: &mut SYSCFG) {
52
- cortex_m::interrupt::free(|_| {
53
- rcc.apb2enr.modify(|_, w| w.syscfgen().set_bit());
54
- syscfg.cfgr1.modify(|_, w| w.pa11_pa12_rmp().remapped());
55
- });
+ rcc.apb2enr.modify(|_, w| w.syscfgen().set_bit());
+ syscfg.cfgr1.modify(|_, w| w.pa11_pa12_rmp().remapped());
56
}
57
58
pub type UsbBusType = UsbBus<Peripheral>;
0 commit comments