Skip to content

Fix LPC UART DMA lint - #3613

Merged
zackees merged 1 commit into
masterfrom
fix/lpc-uart-dma-lint
Jul 6, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/lpc-uart-dma-lint

Conversation

@zackees

@zackees zackees commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Adds the platforms/arm/is_arm.h includes required by the LPC UART DMA headers that gate on FL_IS_ARM_LPC_845.
  • Replaces stdint.h / uint*_t in the UART DMA loopback globals with fl/stl/int.h and fl::u8 / fl::u32.

Follow-up to #3612. The implementation was merged, but CI's bash lint --cpp failed on these header-style checks after the early merge.

Verification

  • bash lint --cpp PASS
  • bash test --cpp PASS: 350/350, run after the same lint cleanup on the pre-follow-up branch
  • bash autoresearch lpc845 --uart --upload-port COM10 --no-auto-discover-pins --tx-pin 13 --rx-pin 11 --timeout 120s --skip-lint PASS after the same lint cleanup: three RGB patterns matched over USART RX-DMA

Summary by CodeRabbit

  • Bug Fixes
    • Improved ARM LPC UART DMA support by adding platform-specific compatibility checks.
    • Updated loopback test type declarations to use project-standard integer types, helping keep builds consistent across targets.
    • No user-facing behavior changes were introduced.

@coderabbitai

coderabbitai Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 909d79ae-44e4-40a7-bfe5-c63642576d63

📥 Commits

Reviewing files that changed from the base of the PR and between 7f14d8e and 2ac74e4.

📒 Files selected for processing (6)
  • src/platforms/arm/lpc/clockless_channel_lpc_uart_dma.h
  • src/platforms/arm/lpc/drivers/uart_dma/_build.cpp.hpp
  • src/platforms/arm/lpc/drivers/uart_dma/bus_traits.h
  • src/platforms/arm/lpc/drivers/uart_dma/channel_engine_lpc_uart_dma.cpp.hpp
  • src/platforms/arm/lpc/drivers/uart_dma/channel_engine_lpc_uart_dma.h
  • src/platforms/arm/lpc/uart_arm_lpc_dma.h

📝 Walkthrough

Walkthrough

This PR adds platforms/arm/is_arm.h includes to four LPC UART DMA headers and converts loopback-test global variable types (g_fastled_lpc_uart_loopback_rx_*) from standard uint8_t/uint32_t to FastLED's fl::u8/fl::u32 typedefs in both declaration and definition sites.

Changes

LPC UART DMA Header Updates

Layer / File(s) Summary
Add is_arm.h include
src/platforms/arm/lpc/clockless_channel_lpc_uart_dma.h, src/platforms/arm/lpc/drivers/uart_dma/bus_traits.h, src/platforms/arm/lpc/drivers/uart_dma/channel_engine_lpc_uart_dma.cpp.hpp, src/platforms/arm/lpc/drivers/uart_dma/channel_engine_lpc_uart_dma.h
Adds #include "platforms/arm/is_arm.h" to each header with no other logic changes.
Convert loopback-test globals to fl:: integer types
src/platforms/arm/lpc/uart_arm_lpc_dma.h, src/platforms/arm/lpc/drivers/uart_dma/_build.cpp.hpp
Extern declarations and extern "C" definitions of loopback-test globals (g_fastled_lpc_uart_loopback_rx_dst, _len, _arm_status, _arm_tx_len, _arm_xfer_readback, _arm_desc0_readback) are retyped from uint8_t/uint32_t to fl::u8/fl::u32, with fl/stl/int.h included to support the typedefs.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and accurately reflects the main change: fixing LPC UART DMA lint failures.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/lpc-uart-dma-lint

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zackees
zackees merged commit c005e24 into master Jul 6, 2026
9 of 10 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jul 6, 2026
eelstretching pushed a commit to eelstretching/FastLED-pico that referenced this pull request Jul 11, 2026
@zackees
zackees deleted the fix/lpc-uart-dma-lint branch August 21, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant