Skip to content

Ch32v support#59

Merged
vshcryabets merged 14 commits into
masterfrom
feature/ch32v-support
May 18, 2026
Merged

Ch32v support#59
vshcryabets merged 14 commits into
masterfrom
feature/ch32v-support

Conversation

@vshcryabets
Copy link
Copy Markdown
Owner

No description provided.

@vshcryabets vshcryabets requested a review from Copilot May 17, 2026 07:29
@vshcryabets vshcryabets self-assigned this May 17, 2026
@vshcryabets vshcryabets marked this pull request as ready for review May 17, 2026 07:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a shared UART framing implementation to the L4 C++ module and begins introducing platform-specific UART channels (incl. CH32V), while expanding the C L4 layer with new tests and an optional function-pointer based UART send hook.

Changes:

  • Introduces styxlib::ChannelUart + ChannelUartConfig and adds Catch2 tests validating framing (SOF/header/CRC).
  • Adds initial CH32V UART channel skeleton and refactors Pico ChannelUsbUart header toward the new base abstraction.
  • Extends the C L4 layer with Catch2 tests, adds optional UART send function-pointer plumbing, and renames the STM8 send function.

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
cpp/modules/l4/test/test_dummy.cpp Removes placeholder dummy test.
cpp/modules/l4/test/test_ChannelUart.cpp Adds tests for UART framing behavior (SOF/header/CRC).
cpp/modules/l4/src/uart/ChannelUart.cpp Implements generic UART framing logic in ChannelUart::sendBuffer.
cpp/modules/l4/src/ch32v/ChannelCh32Uart.cpp Adds CH32V UART channel skeleton.
cpp/modules/l4/include/uart/ChannelUart.h Defines ChannelUart/ChannelUartConfig abstraction.
cpp/modules/l4/include/styxpico/ChannelUsbUart.h Refactors Pico USB UART header to inherit ChannelUart.
cpp/modules/l4/include/ch32v/ChannelCh32Uart.h Declares CH32V UART channel type.
cpp/modules/l4/CMakeLists.txt Adds ChannelUart.cpp to module sources; adjusts test wiring.
cpp/CMakeLists.txt Enables C language, adds platform options, fixes compile-definitions + subdir path.
c/l4/test/test_Channel_c.cpp Adds C L4 Catch2 unit tests (CRC + config flags).
c/l4/src/ChannelUartStm8.c Renames STM8 send function to v2styxlib_uart_stm8_send.
c/l4/include/ChannelUartStm8.h Updates STM8 header to match renamed send function.
c/l4/include/Channel_c.h Adds optional function-pointer UART send API + refactors types/docs.
c/l4/README.md Adds a brief note about V2STYXLIB_USE_FUNCTIONS_POINTERS.
c/l4/CMakeLists.txt Adds a Catch2-based test target for the C L4 module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cpp/modules/l4/include/styxpico/ChannelUsbUart.h Outdated
Comment thread cpp/modules/l4/include/ch32v/ChannelCh32Uart.h Outdated
Comment thread cpp/modules/l4/CMakeLists.txt
Comment thread cpp/modules/l4/include/uart/ChannelUart.h Outdated
Comment thread c/l4/include/Channel_c.h
Comment thread c/l4/test/test_Channel_c.cpp Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 26 out of 26 changed files in this pull request and generated 7 comments.

Comment thread cpp/modules/l4/src/uart/ChannelUart.cpp
Comment thread cpp/modules/l4/src/uart/ChannelUart.cpp
Comment thread cpp/modules/l4/include/uart/ChannelUart.h
Comment thread cpp/modules/l4/include/styxpico/ChannelUsbUart.h Outdated
Comment thread c/l4/src/arch.c
Comment thread cpp/modules/l4/src/uart/ChannelUart.cpp
Comment thread c/l4/src/Channel_c.c
@vshcryabets vshcryabets marked this pull request as draft May 18, 2026 15:52
@vshcryabets vshcryabets marked this pull request as ready for review May 18, 2026 15:52
@vshcryabets vshcryabets merged commit ebadf62 into master May 18, 2026
3 checks passed
@vshcryabets vshcryabets deleted the feature/ch32v-support branch May 18, 2026 15:56
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