Skip to content

kernel: add ESP radio sys adapter#429

Open
xuchang-vivo wants to merge 5 commits into
vivoblueos:mainfrom
xuchang-vivo:xc/add_esp32_os_adapter
Open

kernel: add ESP radio sys adapter#429
xuchang-vivo wants to merge 5 commits into
vivoblueos:mainfrom
xuchang-vivo:xc/add_esp32_os_adapter

Conversation

@xuchang-vivo

Copy link
Copy Markdown
Contributor

Description

Add the ESP radio system adapter implementation and build coverage for the esp_radio_sys crate. The adapter wires the esp_radio_rtos_driver registration chain to BlueOS primitives, including scheduler, semaphore, queue, timer, and wait queue support.

This also adds driver-facing unit tests that exercise the public esp_radio_rtos_driver handle APIs through the registered adapter implementation.

Affected board/arch

  • Board: seeed_xiao_esp32c3.debug
  • Arch: RISC-V / ESP32-C3

Tests

  • export PATH="/home/xuchang/.rustup/toolchains/blueos-latest/bin:$PATH" && rustfmt kernel/adapter/esp_radio_sys/src/lib.rs kernel/arch/src/riscv/mod.rs kernel/kernel/src/scheduler/mod.rs kernel/kernel/src/time.rs
  • git -C kernel diff --check
  • export PATH="/home/xuchang/.rustup/toolchains/blueos-latest/bin:$PATH" && ninja -C out/seeed_xiao_esp32c3.debug kernel/adapter/esp_radio_sys:esp_radio_sys_unittest

QEMU run target was attempted but could not execute locally because qemu-esp32-riscv32 is not installed in this environment.

Docs/config updates

  • No documentation updates.
  • No defconfig or generated .config changes.

🤖 Generated with Claude Code

xuchang-vivo and others added 2 commits June 29, 2026 18:19
Co-Authored-By: Claude <noreply@anthropic.com>
@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/28370243343.

@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/28371750607.

@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/28414669173.

Comment thread adapter/esp_radio_sys/src/lib.rs Outdated
Comment thread adapter/esp_radio_sys/src/lib.rs Outdated
Co-Authored-By: Claude <noreply@anthropic.com>
@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/28426940254.

Update esp_radio_sys wait queue notification to keep scanning until a suspended waiter is actually queued ready, and make task priority updates go through the scheduler ready queue path when applicable.

Also clean up stale wait queue comments and unused imports.

Verification:

- rustfmt --edition 2024 kernel/adapter/esp_radio_sys/src/lib.rs

- ninja -C out/seeed_xiao_esp32c3.debug esp_radio_sys

- ninja -C out/seeed_xiao_esp32c3.debug esp_radio_sys_clippy

- ninja -C out/seeed_xiao_esp32c3.debug check_all (fails: qemu-esp32-riscv32 not found)

Co-Authored-By: Claude <noreply@anthropic.com>
@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

❌ Job failed. Failed jobs: check_format (failure), see https://github.com/vivoblueos/kernel/actions/runs/28429343671.

Format esp_radio_sys with the kernel rustfmt.toml so CI import ordering matches local checks.

Verification:

- rustfmt --config-path /home/xuchang/blueos-github/kernel/rustfmt.toml --check /home/xuchang/blueos-github/kernel/adapter/esp_radio_sys/src/lib.rs

Co-Authored-By: Claude <noreply@anthropic.com>
@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/28430579156.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants