jsanchez-2g opened a new pull request, #19910:
URL: https://github.com/apache/nuttx/pull/19910

   ## Summary
   
   The STM32L073RZ provides a full speed USB device controller, but the
   Nucleo-L073RZ board support did not enable it and no configuration exercised 
it.
   
   This adds:
   
   - USB device pin definitions in the STM32L0 pin map.
   - Board level pull-up control using the embedded DP pull-up in USB_BCDR, and
     CDC/ACM registration at boot.
   - A usb-cdc configuration presenting NSH on USART2 and a CDC/ACM serial 
device
     on USB.
   
   The 48MHz clock is supplied by HSI48 trimmed from the USB start of frame 
packet,
   using the crystal-less USB configuration already described by this board's
   board.h. The clock and driver fixes this depends on are already merged in
   master.
   
   ## Impact
   
   - New feature added: YES. A new usb-cdc configuration for this board.
   - Impact on user: NO. Existing configurations are unchanged.
   - Impact on build: NO.
   - Impact on hardware: YES. Nucleo-L073RZ board support and the STM32L0 pin 
map.
   - Impact on documentation: YES. Included in this PR.
   - Impact on security: NO.
   - Impact on compatibility: NO.
   
   ## Testing
   
   Build Host: Linux 6.18.33.2-microsoft-standard-WSL2, arm-none-eabi-gcc 13.2.1
   Target: arm, nucleo-l073rz:usb-cdc, paired with current nuttx-apps master
   
   Testing logs before change:
   
       No USB configuration existed for this board; the USB device controller 
was
       never enabled.
   
   Testing logs after change:
   
       NuttShell (NSH) on USART2 via the ST-LINK virtual COM port
       Device enumerates on the host as a USB CDC/ACM serial port
   
   Validation:
   
       ./tools/checkpatch.sh -g master...usb/nucleo-l073rz-usb  -> all checks 
pass
       Clean checkout build and on-target flash/run verified.
   
   ## PR verification Self-Check
   
   * [x] This PR introduces only one functional change.
   * [x] I have updated all required description fields above.
   * [x] My PR adheres to Contributing Guidelines and Documentation.
   * [ ] My PR is still work in progress.
   * [x] My PR is ready for review and can be safely merged into a codebase.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to