Skip to content
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

[Feature Request] RP2040 UART driver #17744

Closed
2 of 4 tasks
Kriechi opened this issue Jul 21, 2022 · 5 comments
Closed
2 of 4 tasks

[Feature Request] RP2040 UART driver #17744

Kriechi opened this issue Jul 21, 2022 · 5 comments
Assignees
Labels
enhancement help wanted stale Issues or pull requests that have become inactive without resolution.

Comments

@Kriechi
Copy link
Contributor

Kriechi commented Jul 21, 2022

Feature request to add UART driver for the RP2040.

ChibiOS seems to be already ready for it to a large degree.

Feature Request Type

  • Core functionality
  • Add-on hardware support (eg. audio, RGB, OLED screen, etc.)
  • Alteration (enhancement/optimization) of existing feature(s)
  • New behavior

Description

  • add UART driver for RP2040 to enable communication with serial devices using a simple write/read API using uint8 or string commands.
  • document necessary settings and options in https://docs.qmk.fm/#/uart_driver
  • Split keyboards should be able to use both PIO/SIO (for split) and UART (for other devices) at the same time, and any limitation /restriction documented.
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs.
For maintainers: Please label with bug, in progress, on hold, discussion or to do to prevent the issue from being re-flagged.

@github-actions github-actions bot added the stale Issues or pull requests that have become inactive without resolution. label Oct 28, 2022
@karosc
Copy link
Contributor

karosc commented Nov 16, 2022

I got a uart driver working using the pico sdk submodule. I added a uart_vendor driver that you can select using UART_DRIVER = vendor in rules.mk. The uart drivers had to be refactored a bit to accommodate the second interface in addition to the hal_serial one. I have a redox_w clone that uses the uart driver for communicating with a bluetooth receiver and recently upgraded from ATMega to RP2040. So far it's working great (although I had to knock the baud rate down from 1M to get stable IO)

shout out to @infinityis for helping me through UART debugging in general! 🎉

@github-actions github-actions bot removed the stale Issues or pull requests that have become inactive without resolution. label Nov 16, 2022
@JohnAZoidberg
Copy link
Contributor

Pretty cool @karosc! I just tried your branch on a raspberry pico and it works if I lower the baud rate like init_uart(9600);.

JohnAZoidberg added a commit to FrameworkComputer/qmk_firmware that referenced this issue Jan 6, 2023
@github-actions
Copy link

github-actions bot commented Apr 6, 2023

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs.
For maintainers: Please label with bug, in progress, on hold, discussion or to do to prevent the issue from being re-flagged.

@github-actions github-actions bot added the stale Issues or pull requests that have become inactive without resolution. label Apr 6, 2023
@github-actions
Copy link

github-actions bot commented May 7, 2023

This issue has been automatically closed because it has not had activity in the last 30 days. If this issue is still valid, re-open the issue and let us know.
// [stale-action-closed]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted stale Issues or pull requests that have become inactive without resolution.
Projects
None yet
Development

No branches or pull requests

4 participants