Martin Jäger
483e09d1a2
Use generic Copyright notice in all files
2021-03-12 18:40:22 +01:00
Martin Jäger
cb4d4ea1d9
LEDs: Use GPIO flags from dts properly
...
The flags were always assumed to be ACTIVE_HIGH, which is now fixed.
2020-11-18 21:05:04 +01:00
Martin Jäger
ab63204adb
Make battery configurable via Kconfig ( fix #94 )
...
Also adds crazy IS_ENABLED macro to unit tests.
2020-08-19 15:55:15 +02:00
Martin Jäger
c2ef955a63
Replace custom print_* with Zephyr LOG_*
2020-07-23 17:34:41 +02:00
Martin Jäger
dc4576c8b4
Remove all board.h files
...
Final updates to devicetree files (adding temperature sensor information) make
board.h files obsolete.
2020-07-23 17:34:41 +02:00
Martin Jäger
a584904470
Switch to new DT_ macros
2020-07-23 17:34:39 +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
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
3eb70e9a01
Add test/zephyr.h to mock Zephyr functions/defines
2020-06-04 16:28:19 +02:00