esp32s3-box: 植小伴嵌入式驱动改动(队伍 053 叶绿体智能) - #390
Open
tadycharming wants to merge 1 commit into
Open
tadycharming wants to merge 1 commit into
tadycharming wants to merge 1 commit into
Conversation
tadycharming
force-pushed
the
contest2026-053-nuttx
branch
3 times, most recently
from
September 19, 2026 08:36
c263052 to
674578f
Compare
Author
checkpatch 状态说明(队伍 053 叶绿体智能)感谢维护者。先同步一下本 PR 的检查情况与本团队的整改计划。 已通过
待处理:checkpatch 523 条分布(全部位于本次新增/改动的文件,非上游既有问题):
主要类型: 这些驱动在板卡上已实测跑通(摄像头预览/拍照、双 codec 语音、八合一土壤传感器、 我们的计划如组委会希望本 PR 直接合入,我们可以按以下节奏整改:
请指示希望采用哪种方式;我们随时可以动手。 作品仓库:https://github.com/open-vela/contest2026_053_yelvtizhineng |
tadycharming
force-pushed
the
contest2026-053-nuttx
branch
from
September 19, 2026 09:24
674578f to
87fac85
Compare
nuttx-side changes required by the "ZhiXiaoBan / Plant Companion" product
(team repo: contest2026_053_yelvtizhineng, app/plant-companion).
New files
- arch/xtensa/src/esp32s3/esp32s3_cam_dvp.{c,h}
Custom DVP camera driver (LCD_CAM CAM input + GDMA RX ping-pong).
Supports 160x120 rolling-snapshot preview and 320x240 photo upload.
Exports esp32s3_cam_dvp_start/stop/set_framesize/get_framesize/
set_stream/get_stream.
- arch/xtensa/src/esp32s3/hal_i2s.{c,h}
Direct I2S0 HAL access bypassing the NuttX I2S driver (voice path,
RX depth 2).
- arch/xtensa/src/esp32s3/esp32s3_panic_dump.c
Dump the panic context straight to USB-Serial-JTAG for boot-crash
diagnostics.
- boards/xtensa/esp32s3/esp32s3-box/configs/openvela/defconfig
Board configuration used by this product (esp32s3-box:openvela).
Modified files (incremental, all sharing the upstream base)
- arch/xtensa/src/esp32s3/Make.defs
Build the new sources above.
- esp32s3_lowputc.{c,h}
Add esp32s3_uart0_reclaim_pins() so UART0 can take GPIO42/GPIO40 back
from the camera DVP block (pin-sharing conflict with the soil sensor).
- esp32s3_spiram.{c,h}, esp32s3_allocateheap.c
Static PSRAM allocator esp32s3_psram_static_base()/alloc() used for
the camera frame buffers.
- drivers/serial/serial.c
Bounded wait on serial writes with timeout drain, so that a console
opened but not read cannot stall the system.
- hal_i2s.c, drivers/lcd/st7789.c, esp32s3_sdmmc.c,
esp32s3_wifi_adapter.c, esp32s3_wlan.c,
esp32s3_board_touchsceen_gt911.c, configs/lvgl/defconfig,
fs/littlefs/Make.defs
Audio, display, SD, WiFi, touch and filesystem stability and
performance fixes.
Notes
- The team's build tree is based on a custom snapshot; the modified
files above are 98-100% identical to the dev-ai-contest-2026 branch
(verified file by file), so the deltas are the changes listed here.
The new files do not exist upstream.
- Product repository:
https://github.com/open-vela/contest2026_053_yelvtizhineng
Style
- All changed files are clean under the repository's own style checker
(tools/checkpatch.sh, i.e. nxstyle): 0 errors and 0 warnings.
- What that involved: block comments re-wrapped to the 78-column limit,
the standard " * " continuation decoration restored, block comment
terminators moved onto their own line, the "Included Files" /
"Pre-processor Definitions" / "Private Functions" section banners added
where they were missing, over-long code lines split and trailing
comments re-aligned.
- cam_dvp.c no longer uses a brace-initialised static table for the data
pins (nxstyle rejects aggregate initialisers there); the eight pins are
configured with explicit calls instead.
- The ESP32-S3 ROM cache helpers have mixed-case names, which nxstyle
rejects, so cam_dvp.c binds lower-case aliases to them with __asm__
labels rather than changing the call sites.
- No functional change: the firmware still builds from this tree
(nuttx.bin produced, 0 errors).
tadycharming
force-pushed
the
contest2026-053-nuttx
branch
from
September 19, 2026 09:48
87fac85 to
8133757
Compare
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.
PR body 见下方说明(commit message 已改为英文以通过 CI)。
esp32s3-box: add Plant Companion drivers (team 053)
nuttx-side changes required by the "ZhiXiaoBan / Plant Companion" product
(team repo: contest2026_053_yelvtizhineng, app/plant-companion).
New files
Custom DVP camera driver (LCD_CAM CAM input + GDMA RX ping-pong).
Supports 160x120 rolling-snapshot preview and 320x240 photo upload.
Exports esp32s3_cam_dvp_start/stop/set_framesize/get_framesize/
set_stream/get_stream.
Direct I2S0 HAL access bypassing the NuttX I2S driver (voice path,
RX depth 2).
Dump the panic context straight to USB-Serial-JTAG for boot-crash
diagnostics.
Board configuration used by this product (esp32s3-box:openvela).
Modified files (incremental, all sharing the upstream base)
Build the new sources above.
Add esp32s3_uart0_reclaim_pins() so UART0 can take GPIO42/GPIO40 back
from the camera DVP block (pin-sharing conflict with the soil sensor).
Static PSRAM allocator esp32s3_psram_static_base()/alloc() used for
the camera frame buffers.
Bounded wait on serial writes with timeout drain, so that a console
opened but not read cannot stall the system.
esp32s3_wifi_adapter.c, esp32s3_wlan.c,
esp32s3_board_touchsceen_gt911.c, configs/lvgl/defconfig,
fs/littlefs/Make.defs
Audio, display, SD, WiFi, touch and filesystem stability and
performance fixes.
Notes
files above are 98-100% identical to the dev-ai-contest-2026 branch
(verified file by file), so the deltas are the changes listed here.
The new files do not exist upstream.
https://github.com/open-vela/contest2026_053_yelvtizhineng