Skip to content

Commit 3c8d1b4

Browse files
Use remap_pins inline comment as doc comment
We're sorely lacking on documentation and this is good enough as is
1 parent ed59f51 commit 3c8d1b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/usb.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ unsafe impl UsbPeripheral for Peripheral {
4646
}
4747
}
4848

49+
/// Remap PA11/PA12 pins to PA09/PA10 for USB on
50+
/// TSSOP20 (STM32F042F) or UFQFPN28 (STM32F042G) packages
4951
pub fn remap_pins(rcc: &mut RCC, syscfg: &mut SYSCFG) {
5052
cortex_m::interrupt::free(|_| {
51-
// Remap PA11/PA12 pins to PA09/PA10 for USB on
52-
// TSSOP20 (STM32F042F) or UFQFPN28 (STM32F042G) packages
5353
rcc.apb2enr.modify(|_, w| w.syscfgen().set_bit());
5454
syscfg.cfgr1.modify(|_, w| w.pa11_pa12_rmp().remapped());
5555
});

0 commit comments

Comments
 (0)