The clang-format-15 package is not available anymore in the latest
Ubuntu runner image. Installing clang-format from PyPI makes the style
check independent of the runner image and allows to use the same
version locally:
pip install clang-format==23.1.*
The style check script prefers the clang-format-diff.py installed by
pip and prints the clang-format version.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Also use new Zephyr CI environment and compile all boards.
Board migration script example:
python ../zephyr/scripts/utils/board_v1_to_v2.py --board-root . \
-v libresolar -g libresolar -b pwm_2420_lus -s stm32l072xx
The structure has been changed to match the new ThingSet v0.5 spec which
is more suitable to be used in mobile phone apps because the data is
structured based on logical subsystems (Battery, Load) and not on data type
(conf, input, etc.) anymore.
This required some updates in the ThingSet library aswell. Especially the
update mechanism for configuration data had to be changed.
The data_objects_parser script is now able to extract the units itself,
reducing the commenting effort.
All IDs have been kept the same, so previously stored settings in charge
controllers NVM should be compatible.
Rationale: Too much effort to maintain two different tool chains.
PlatformIO does not consider the west.yml files and thus, does not
support custom Zephyr modules. However, they are needed to include
ThingSet as a module.
In addition to that, PlatformIO versions always lag behind official
Zephyr releases and we want to avoid being dependent on PlatformIO.