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

   ## Summary
   
   The STM32F072RB provides a full speed USB device controller, but the
   Nucleo-F072RB board support did not enable it and no configuration exercised 
it.
   
   This adds:
   
   - USB device pin definitions in the STM32F07x pin map.
   - HSI48 as the 48MHz source with USB SOF as the CRS synchronisation event,
     which is the intended crystal-less USB configuration for this part.
   - Board level D+ pull-up control and CDC/ACM registration at boot.
   - A usb-cdc-uart configuration presenting NSH on USART2 and a CDC/ACM serial
     device on USB.
   - The USB device pins enabled in the nsh configuration for consistency.
   
   The driver and clock fixes this depends on are already merged in master.
   
   ## Impact
   
   - New feature added: YES. A new usb-cdc-uart configuration for this board.
   - Impact on user: NO. Existing configurations are unchanged.
   - Impact on build: NO.
   - Impact on hardware: YES. Nucleo-F072RB board support and the STM32F07x 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-f072rb:usb-cdc-uart, 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-f072rb-cdc  -> 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