mirror of
https://github.com/apache/nuttx.git
synced 2026-10-14 01:30:14 +00:00
The STM32L073RZ provides a full speed USB device controller, but the Nucleo-L073RZ board support did not enable it and no configuration exercised it. Add the pieces required to run USB device mode on this board: - Add the USB device pin definitions to the STM32L0 pin map. - Provide board level pull-up control using the embedded DP pull-up in USB_BCDR, and register the CDC/ACM class at boot when it is selected. - Add a usb-cdc configuration that presents an NSH console on USART2 and a CDC/ACM serial device on USB. The 48MHz clock for the controller is supplied by HSI48 trimmed from the USB start of frame packet, which is the crystal-less USB configuration already described by this board's board.h. Assisted-by: GitHub Copilot:claude-opus-5 Signed-off-by: jsanchez-2g <jsanchez@2g-eng.com> |
||
|---|---|---|
| .. | ||
| include | ||
| src | ||
| CMakeLists.txt | ||
| Kconfig | ||