Skip to content

Add board header for Waveshare RP2350-USB-A #2435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

sonodima
Copy link

This PR introduces support for the Waveshare RP2350-USB-A.

This board combines an RP2350A with a USB-A port that can be used with a bit-banged implementation of the USB protocol such as Pico-PIO-USB.

Fixes #2434

@sonodima sonodima marked this pull request as ready for review April 20, 2025 19:48
@lurch lurch linked an issue Apr 23, 2025 that may be closed by this pull request
@lurch lurch self-assigned this Apr 23, 2025
@kilograham kilograham requested a review from lurch April 23, 2025 18:57
@kilograham kilograham added this to the 2.1.2 milestone Apr 23, 2025

// --- PIO USB ---
#ifndef PICO_DEFAULT_PIO_USB_DP_PIN
#define PICO_DEFAULT_PIO_USB_DP_PIN 12
Copy link
Contributor

@lurch lurch Apr 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no SDK support for this, so IMHO prefixing it with PICO_DEFAULT_ is a bit misleading. Perhaps WAVESHARE_RP2350_USB_A_USB_DP_PIN would be better?
Also, if you're defining the USB_DP_PIN, would it make sense to also define the USB_DM_PIN ??

EDIT: I also just removed the PIO from my suggested define-name, because the PIO part is a software-detail, and IMHO the board-headers in the SDK should just describe the raw hardware.

@lurch
Copy link
Contributor

lurch commented Apr 24, 2025

The tools/check_board_header.py script is happy though 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing board header for Waveshare RP2350-USB-A
3 participants