TWx Linux Repository
Replace the ASCII text-based command protocol with a compact binary frame format defined in wago-m4-led-protocol.h. The Zephyr firmware no longer exposes a generic rpmsg-tty channel; instead it announces a dedicated "wago-led" RPMsg endpoint. The ASCII protocol required up to three CMD-WLED messages plus a CMD-IDL per brightness_set call and encoded colour values as decimal strings. The binary protocol replaces this with fixed-size packed structs (CMD_SET_LED: 5 bytes, CMD_IDL: 1 byte), reducing per-update overhead and eliminating string formatting from the hot path. CMD_SET_LED (0x01) addresses a single LED by index and carries R/G/B values directly, allowing the M4 to update one pixel without disturbing the rest of the strip buffer it maintains internally. New frame types CMD_SET_STRIP (0x02) and CMD_SET_ALL (0x03) are defined for future strip-wide updates. The sysfs passthrough path is preserved for legacy ASCII animation commands (CMD-CYC, CMD-BLK, CMD-FAD, etc.) via a thin wago_send_ascii() wrapper around the new wago_send() helper. The RX callback comment is updated to reflect that no ACKs are expected in the binary protocol, and the rx log is adjusted to print byte count rather than attempting to print binary data as a string. Signed-off-by: Heinrich Toews <ht@twx-software.de> |
||
|---|---|---|
| .github | ||
| arch | ||
| block | ||
| certs | ||
| crypto | ||
| Documentation | ||
| drivers | ||
| fs | ||
| include | ||
| init | ||
| io_uring | ||
| ipc | ||
| jenkins | ||
| kernel | ||
| labgrid.basesoftware@21cbed93bc | ||
| lib | ||
| LICENSES | ||
| mm | ||
| net | ||
| rust | ||
| samples | ||
| scripts | ||
| security | ||
| sound | ||
| tools | ||
| usr | ||
| virt | ||
| .clang-format | ||
| .cocciconfig | ||
| .get_maintainer.ignore | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| .mailmap | ||
| .rustfmt.toml | ||
| COPYING | ||
| CREDITS | ||
| Kbuild | ||
| Kconfig | ||
| localversion-rt | ||
| localversion-wago | ||
| MAINTAINERS | ||
| Makefile | ||
| README | ||
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.