Repository navigation
feat(i2s): re-include peripheral impl in unity build (#3512 Phase 5) - #3520
Merged
Merged
Conversation
Removes the `UNITY_BUILD_EXCLUDE` marker from `i2s_peripheral_esp32dev_esp.cpp.hpp` and adds the file to `_build.cpp.hpp` alphabetically per unity-build convention. ## Why the exclude was wrong Prior comment claimed the file's `driver/gpio.h` include triggered an `ADC: CONFLICT!` boot loop when linked alongside the restored classic Yves driver. Re-investigating: the actual conflict was `driver/i2s.h` in the earlier Stage 2 (#3476) impl, NOT `driver/gpio.h`. Every other classic-ESP32 driver in the tree (including `pin_esp32_native_impl.hpp`) uses `driver/gpio.h` without triggering the conflict. The current Stage 4 file drops `driver/i2s.h` entirely (see the file's own docblock — only `esp_heap_caps.h` + `driver/gpio.h` remain), so the conflict rationale no longer applies. The stub `transmit()` currently does no DMA (see #3512 Phase 2 for that work), so re-including adds a small TU that `--gc-sections` elides completely when nothing calls into `I2sPeripheralEsp32DevEsp`. ## Verification - `bash test --cpp`: 344/344 pass - `bash lint --cpp`: clean (unity build validates the new include order alphabetically) Part of #3516 / #3512 Phase 5. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR re-includes the ChangesUnity Build Re-inclusion
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related issues
Possibly related PRs
✨ 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 |
3 tasks done
zackees
added a commit
that referenced
this pull request
Jul 1, 2026
New `src/platforms/esp/32/drivers/i2s/README.md` documenting the classic-ESP32 I2S parallel-out clockless driver as it stands today (post #3479 restore + #3511/#3514 IDF6 compat + #3518-#3520 selector cleanup + Phase 5 unity re-include). Covers: - **Files**: purpose of each `.h`/`.cpp.hpp` in the directory - **User-facing binding today**: legacy `addLeds<>` via `-DFASTLED_ESP32_I2S=1` (production) vs modern channel-manager (not there yet — depends on Phase 4) - **ESP-IDF version compat table**: IDF 4.x/5.x production; IDF 6.x compiles via the `i2s_periph_compat.h` shim (bench validation pending real WROOM + IDF 6 platform binding) - **Streaming ISR DMA refill invariant**: the whole-point-of-I2S streaming pattern that any future refactor must preserve. Points at the ISR handler location and lists the three concrete guarantees. - **Global state**: acknowledges the 10+ file-scope statics tracked under #3489, with the migration path via Phase 6. - **Known bugs**: #1165 (`I2S_DEVICE=1` doesn't drive output) and #1384 (blocking `showPixels()`) with their respective fix paths through Phase 2 / Phase 4. - **References**: cross-links to every open sub-issue, meta issue, and previous PR in the driver-dev umbrella. Part of #3516 / #3512 Phase 8. Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the
UNITY_BUILD_EXCLUDEmarker fromi2s_peripheral_esp32dev_esp.cpp.hppand adds the file to_build.cpp.hppalphabetically.Prior comment claimed the file's
driver/gpio.hinclude triggered anADC: CONFLICT!boot loop. Re-investigating: the actual conflict wasdriver/i2s.hin Stage 2 (#3476), NOTdriver/gpio.h. The current Stage 4 impl doesn't includedriver/i2s.hat all, so the conflict rationale no longer applies.The stub
transmit()currently does no DMA (#3512 Phase 2 does that work), so re-including adds a small TU that--gc-sectionselides completely when unused.Test plan
bash test --cpp: 344/344 passbash lint --cpp: clean (unity-build validates alphabetical order)Part of #3516 / #3512 Phase 5.
Summary by CodeRabbit