Martin Jäger
483e09d1a2
Use generic Copyright notice in all files
2021-03-12 18:40:22 +01:00
Martin Jäger
42759947f8
DAQ: Add high-side overvoltage alert limit
...
Also rename the functions which set the alert limits to set_xx_limit
instead of set_xx_alert.
2020-11-05 20:37:03 +01:00
Martin Jäger
a65bcfe3c2
DAQ: Fix VREF calculation for 16-bit left-aligned readings
...
Calculation was still for previous 12-bit right-aligned ADC readings
and resulted in wrong calculation of MCU internal temperature.
2020-10-14 09:52:20 +02:00
Martin Jäger
ef9c8571cc
ADC filter time constant configurable per channel
...
Add a filter-const prop to the adc_inputs devicetree binding and use it instead
of the global ADC_FILTER_CONST in daq.cpp.
2020-09-21 13:29:31 +02:00
Martin Jäger
4008a09f3b
ADC: Use 16-bit raw values for calculations
...
Using 16-bit for calculation allows to increase resolution by oversampling.
The ADC was already configured to use left-aligned 12-bit readings, which can
be treated the same as 16-bit native readings.
2020-09-21 13:29:31 +02:00
Martin Jäger
3012501358
Switch to Zephyr 2.3 and update pio check
2020-07-23 12:55:38 +02:00
Martin Jäger
7dfcac4037
Add ADC reading to/from voltage conversions
2020-07-23 12:55:38 +02:00
Martin Jäger
d283436747
Move ADC peripheral setup to devicetree
...
Remove the ADC channel configuration from the board.h files and use new
DT macros to configure the ADC peripheral based on board.dts only.
2020-07-20 09:07:31 +02:00
Martin Jäger
1b6c56d25b
Replace adc-gain DT binding with adc-inputs
...
Preparation for cleanup of ADC driver.
2020-06-26 15:17:53 +02:00
Martin Jäger
fc0276e72c
Allow custom DC/DC control functions
...
A Kconfig CUSTOM_DCDC_CONTROLLER is introduced to enable implementation of
more sophisticated control functions than the standard perturb and observe.
A function dcdc_low_level_controller() must be implemented and is called
from the DMA interrupt after each new current sensor reading.
The default Dcdc::control() function is defined __weak.
2020-06-05 16:22:41 +02:00
Martin Jäger
a6c0eecf20
Small datatype updates to reduce RAM footprint
2020-06-04 11:51:42 +02:00
Martin Jaeger
05292c12ba
ADC & DMA renamed to DAQ (data acquisition)
2020-01-27 15:13:53 +01:00