Repository navigation
fix(uno_r4_wifi): provide fl::platforms::println impl for Renesas RA - #2579
Conversation
`src/platforms/io.h` declares the platform I/O API in `fl::platforms`,
and each Arduino-based platform supplies a glue `.cpp.hpp` that
includes `platforms/arduino/io_arduino.hpp` (which routes the
declarations to `Serial.print*`):
platforms/arm/d21/io_samd21.cpp.hpp
platforms/arm/d51/io_samd51.cpp.hpp
platforms/arm/mgm240/io_mgm240.cpp.hpp
platforms/arm/nrf52/io_nrf52.cpp.hpp
platforms/arm/rp/io_rp.cpp.hpp
platforms/arm/sam/io_sam.cpp.hpp
platforms/arm/stm32/io_stm32.cpp.hpp
platforms/avr/io_avr.cpp.hpp
platforms/esp/32/io_esp.cpp.hpp
`platforms/arm/renesas/` had no equivalent — *and* no `_build.cpp.hpp`
under it, *and* `platforms/arm/_build.cpp.hpp` didn't reference
`renesas/` at all. So nothing in `arm/renesas/` was being compiled,
and every `uno_r4_wifi` / `uno_r4_minima` example hit:
<artificial>:(.text+0x335a): undefined reference to
`fl::platforms::println(char const*)'
at link time.
Add:
- `arm/renesas/io_renesas.cpp.hpp` — guarded on `FL_IS_RENESAS`,
pulls in `platforms/arduino/io_arduino.hpp` (mirrors `io_sam.cpp.hpp`).
- `arm/renesas/_build.cpp.hpp` — unity build wrapper.
- Wire `arm/renesas/_build.cpp.hpp` into `arm/_build.cpp.hpp` so the
unity build actually picks it up.
Fixes #2578
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThree new files provide I/O support for Renesas RA boards (uno_r4_wifi, uno_r4_minima). A conditional Arduino I/O header bridges platform-level print/println declarations to Serial implementation. Unity build headers wire the new Renesas I/O module into the ARM platform build. ChangesRenesas Platform I/O Support
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Summary
uno_r4_wifiexample build on master fails at link with:platforms/io.hdeclares the platform I/O API infl::platformsnamespace. Every other Arduino-framework platform supplies a thinio_<platform>.cpp.hppglue file that includesplatforms/arduino/io_arduino.hpp(which routes the calls toSerial.print*).platforms/arm/renesas/had no equivalent — and no_build.cpp.hppunder it, andplatforms/arm/_build.cpp.hppdidn't referencerenesas/at all. So nothing inarm/renesas/was being compiled, and the println declarations had no definitions on Renesas RA targets.uno_r4_minimatoo (same Renesas RA4M1 chip).Fix
src/platforms/arm/renesas/io_renesas.cpp.hpp(guarded onFL_IS_RENESAS, includesplatforms/arduino/io_arduino.hpp— mirrorsio_sam.cpp.hpp).src/platforms/arm/renesas/_build.cpp.hpp.arm/renesas/_build.cpp.hppintoarm/_build.cpp.hppalphabetically betweennrf52andrp.Test plan
bash lintclean (cpp_linting / etc.).bash test fastled_core --cpp— still passes.uno_r4_wifiworkflow should now link successfully.uno_r4_minimaworkflow exists, it'll be picked up too — same Renesas RA4M1 platform.)Fixes #2578
Generated with Claude Code (https://claude.com/claude-code)
Summary by CodeRabbit