jsanchez-2g opened a new pull request, #19951:
URL: https://github.com/apache/nuttx/pull/19951
## Summary
Add USB device support and test configurations for the
STMicro Nucleo-G0B1RE board.
This change:
- Adds the board USB pull-up and suspend hooks.
- Selects HSI48 as the USB peripheral clock.
- Adds automatic CDC/ACM registration during board bring-up.
- Adds a `usb-clocks` configuration for validating the USB clock,
interrupt, driver, and board-hook dependencies.
- Adds a `usb-cdc` configuration providing a CDC/ACM serial device
that enumerates automatically at boot.
- Documents the USB configurations and required board connections.
The prerequisite STM32G0 USB device-controller support is already
available in Apache NuttX master.
## Testing
Tested both configurations on current Apache NuttX master:
- `nucleo-g0b1re:usb-clocks`
- GNU build passed.
- Apache NuttX CI container Clang build passed.
- Generated `savedefconfig` matched the checked-in defconfig.
- `nucleo-g0b1re:usb-cdc`
- GNU build passed.
- Apache NuttX CI container Clang build passed.
- Generated `savedefconfig` matched the checked-in defconfig.
Additional validation:
- NuttX `checkpatch.sh` passed.
- Codespell, encoding, and whitespace checks passed.
- The image built, loaded, and executed successfully on a
Nucleo-G0B1RE.
- NSH operated correctly over the ST-Link UART.
- The CDC/ACM device enumerated automatically on the host at boot.
--
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]