app: use DAQ driver

Replace the register-level ADC, DAC and DMA handling in daq_driver.c by
the new DAQ driver. The application only maps the measurements to the
power ports and DC buses and handles the alerts. The factory calibration
values are removed from mcu.h, as they are provided by the driver now.

All boards are migrated to the new libresolar,stm32-daq compatible. The
unit tests use the emulated DAQ.

The high-side overvoltage limit is now set after the DAQ setup. Before,
the limit was calculated before any reading of the internal reference
voltage was available, so that the alert never triggered on boards
without fixed reference voltage (STM32F0 and STM32L0).

Note for out-of-tree boards: The adc-inputs node must use the compatible
libresolar,stm32-daq instead of adc-inputs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Martin Jäger
2026-11-01 12:16:45 +01:00
co-authored by Claude Opus 5.5
parent 82c5d1542d
commit 55f1c86523
27 changed files with 158 additions and 859 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
#
# Only contains most important options, as HTML rendering is done by Sphinx
INPUT = ../app/src
INPUT = ../app/src ../include
OUTPUT_DIRECTORY = build/doxygen
RECURSIVE = YES
GENERATE_HTML = NO
+10 -1
View File
@@ -1,5 +1,14 @@
Data Acquisition
================
.. doxygenfile:: daq.h
Driver
------
.. doxygenfile:: drivers/daq.h
:project: app
Application
-----------
.. doxygenfile:: src/daq.h
:project: app