Files
Martin JägerandClaude Opus 5.5 bef0ed576c app: convert DC/DC control to C
The Dcdc class becomes struct dcdc with prefixed functions. Private
member functions become static functions. dcdc_check_start_conditions()
and dcdc_control() are still weak, so they can be overridden by custom
implementations.

The constructor is replaced by dcdc_init(), which is called from a
SYS_INIT hook at application level in setup.cpp. This corresponds to the
time the global C++ objects were constructed before, so the unit tests
(which don't run main()) still get initialized objects. The remaining
objects will be moved to this hook when they are converted.

The global device status is declared in device_status.h instead of
setup.h, so that C modules don't need to include the C++ setup header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 15:33:37 +01:00
..
2026-11-01 15:33:37 +01:00