CL-32 drivers & more - #652
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe change adds CL32 hardware-revision detection with revision-specific keyboards and power devices. It adds an ESP-IDF e-paper component with panel registries, SPI transport, controller drivers, LVGL support, mirroring, and persistent refresh operations. TCA8418 keymaps now use 32-bit code points. Statusbar colors can be inverted through device properties and Kconfig. Platform changes update task sizing, I2C logging, module symbols, GPIO access, and device initialization fields. Priority: ➖ Normal Merge Risk: 🟡 Moderate · up to E-paper devices can hang, render corrupt frames, or hide failed updates, and ESP32P4 firmware builds can fail. These should be corrected before merging. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 30.07% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 153 functions across 52 files. (3 skipped: 3 unsupported.)
✨ Finishing Touches 💡 1📝 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 |
There was a problem hiding this comment.
Actionable comments posted: 15
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: eaf3052f-09ea-4a47-834e-8b6dff82c0e4
📒 Files selected for processing (58)
.gitmodulesCMakeLists.txtDevices/cl32/CMakeLists.txtDevices/cl32/cl32.dtsDevices/cl32/device.propertiesDevices/cl32/source/cl32_detect.cppDevices/cl32/source/cl32_detect.hDevices/cl32/source/cl32_v2.hDevices/cl32/source/cl32_v2_keyboard.cppDevices/cl32/source/cl32_v2_keyboard.hDevices/cl32/source/cl32_v3.hDevices/cl32/source/cl32_v3_keyboard.cppDevices/cl32/source/cl32_v3_keyboard.hDevices/cl32/source/cl32_v4.hDevices/cl32/source/cl32_v4_keyboard.cppDevices/cl32/source/cl32_v4_keyboard.hDevices/cl32/source/cl32_v4_power.cppDevices/cl32/source/cl32_v4_power.hDevices/cl32/source/module.cppDevices/heltec-wifi-lora-32-v3/device.propertiesDevices/lilygo-tdeck-max/device.propertiesDevices/lilygo-tdeck-pro/device.propertiesDevices/m5stack-papers3/device.propertiesDrivers/esp-epaper-module/bindings/tuanpmt,esp-epaper.yamlDrivers/esp-epaper-module/include/drivers/esp_epaper.hDrivers/esp-epaper-module/source/esp_epaper.cppDrivers/tca8418-module/bindings/ti,tca8418.yamlDrivers/tca8418-module/include/drivers/tca8418.hDrivers/tca8418-module/source/tca8418.cppLibraries/esp_epaperLibraries/esp_epaper/.gitignoreLibraries/esp_epaper/ADDING_PANELS.mdLibraries/esp_epaper/CMakeLists.txtLibraries/esp_epaper/LICENSELibraries/esp_epaper/README.mdLibraries/esp_epaper/idf_component.ymlLibraries/esp_epaper/include/epaper.hLibraries/esp_epaper/include/epaper_config.hLibraries/esp_epaper/include/epaper_lvgl.hLibraries/esp_epaper/include/epaper_panel.hLibraries/esp_epaper/src/controllers/acep_6color.cLibraries/esp_epaper/src/controllers/bwry_4color.cLibraries/esp_epaper/src/controllers/gdey0154_lut.cLibraries/esp_epaper/src/controllers/ssd16xx.cLibraries/esp_epaper/src/epaper.cLibraries/esp_epaper/src/epaper_common.cLibraries/esp_epaper/src/epaper_common.hLibraries/esp_epaper/src/epaper_lvgl.cLibraries/esp_epaper/src/epaper_registry.cLibraries/esp_epaper/src/epaper_spi.cLibraries/esp_epaper/src/epaper_spi.hModules/http-module/source/download.cppPlatforms/platform-esp32/source/drivers/esp32_i2c_master.cppPlatforms/platform-esp32/source/drivers/usb/esp32_usbhost_hid.cppTactility/KconfigTactility/Source/lvgl/Statusbar.cppTactilityKernel/source/drivers/battery_sense.cppdevice.py
💤 Files with no reviewable changes (3)
- Devices/heltec-wifi-lora-32-v3/device.properties
- Libraries/esp_epaper
- .gitmodules
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (1)
Libraries/esp_epaper/src/epaper_lvgl.c (1)
444-449: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick winHandle
epd_flush_framebufferfailures before completing the LVGL flush.
epd_flush_framebufferreturns theesp_err_tfromepd_update, butepd_lvgl_flush_cbdiscards it, clearsctx->fb_dirty, and callslv_display_flush_ready(disp)unconditionally. If the e-paper update fails, LVGL treats the flush as complete, and this callback provides no retry or error path. Check and handle the result before clearing the dirty state. This callback-level handling is separate from checking discarded SPI transfer statuses inside the e-paper update implementation.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: b63da065-8e03-4f87-9863-62fb44c943d9
📒 Files selected for processing (6)
Modules/cpp-symbols-module/README.mdModules/cpp-symbols-module/source/module.cppPlatforms/platform-esp32/source/module.cppTactilityKernel/include/tactility/drivers/gpio_controller.hTactilityKernel/source/drivers/gpio_controller.cppTactilityKernel/source/symbols.c
💤 Files with no reviewable changes (1)
- Platforms/platform-esp32/source/module.cpp
Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review.
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: dfa45c10-9186-4969-922f-cd2a8025e1c5
📒 Files selected for processing (4)
Devices/generic-esp32p4/generic,esp32p4.dtsDevices/guition-jc1060p470ciwy/guition,jc1060p470ciwy.dtsDevices/m5stack-tab5/m5stack,tab5.dtsPlatforms/platform-esp32/source/module.cpp
Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review.
Uh oh!
There was an error while loading. Please reload this page.