mirror of
https://github.com/apache/nuttx.git
synced 2026-08-27 20:30:38 +00:00
The STM32F072RB provides a full speed USB device controller, but the Nucleo-F072RB board support did not enable it and no configuration exercised it. Add the pieces required to run USB device mode on this board: - Select HSI48 as the 48MHz source and use the USB start of frame packet as the CRS synchronisation event, which is the intended crystal-less USB configuration for this part. - Add the USB device pin definitions to the STM32F07x pin map. - Provide board level pull-up control and register the CDC/ACM class at boot when it is selected. - Add a usb-cdc-uart configuration that presents an NSH console on USART2 and a CDC/ACM serial device on USB. - Enable the USB device pins in the nsh configuration so the two configurations stay consistent. Assisted-by: GitHub Copilot:claude-opus-5 Signed-off-by: jsanchez-2g <jsanchez@2g-eng.com> |
||
|---|---|---|
| .. | ||
| common | ||
| nucleo-f072rb | ||
| nucleo-f091rc | ||
| stm32f051-discovery | ||
| stm32f072-discovery | ||