enable dedicated hwfifo for rp2#3451
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4c86cbdc82
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
This pull request enables dedicated hardware FIFO support for the RP2040 microcontroller, allowing more efficient USB data transfers by utilizing hardware FIFO buffers with byte-stride access.
Key changes:
- Adds RP2040-specific hardware FIFO configuration with byte-level access patterns
- Implements FIFO-based transfer mode alongside existing buffer-based transfers
- Reorganizes USB IP configuration sections in tusb_option.h for better clarity
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/tusb_option.h | Reorganizes USB IP sections and adds RP2040 hardware FIFO configuration with byte-stride access |
| src/portable/raspberrypi/rp2040/rp2040_usb.h | Adds FIFO support to hw_endpoint struct with union for buffer/FIFO modes and updates function signatures |
| src/portable/raspberrypi/rp2040/rp2040_usb.c | Implements custom FIFO read/write functions and updates transfer logic to support both buffer and FIFO modes |
| src/portable/raspberrypi/rp2040/hcd_rp2040.c | Updates hw_endpoint_xfer_start calls to pass NULL for FIFO parameter (buffer mode) |
| src/portable/raspberrypi/rp2040/dcd_rp2040.c | Adds dcd_edpt_xfer_fifo function and updates existing dcd_edpt_xfer to pass NULL for FIFO parameter |
| src/common/tusb_fifo.c | Enhances stride_write/stride_read with byte-level access support and optimizes wrap-around handling for byte-stride |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Size Difference ReportBecause TinyUSB code size varies by port and configuration, the metrics below represent the averaged totals across all example builds. Note: If there is no change, only one value is shown. Changes >1% in size
Changes <1% in size
No changes
|
enable dedicated hwfifo for rp2 port