Martin Jäger
d670f8bd6a
DC/DC: Fix startup mode check
...
The allowed mode of the DC/DC is fixed at compile-time (in setup.cpp).
The start conditions have to match this mode.
2022-02-10 15:35:03 +01:00
Martin Jäger
923d536ae2
DC/DC: Add output_hvs_enable/disable calls
...
Without these calls the functions introduced in 6316dcd are useless.
Remark: These functions are currently only used on a prototype for testing.
2022-02-08 18:43:12 +01:00
Martin Jäger
b4272ce7de
DC/DC: Fix HS MOSFET short detection
...
Previously, the first_time_detected variable was never
reset after the error was detected once.
2022-02-08 18:32:08 +01:00
Martin Jäger
5bdbecf19d
Add Clang-Format file and apply it
...
The format tries to maintain the previously used Libre Solar firmware coding
style as much as possible.
Applying the format fixed some issues and re-ordered some parts of the code.
2022-01-26 13:56:31 +01:00
hogthrob
2359a96bbe
Provide detailed log out for rejected battery configuration requests ( #127 )
...
It also gets rid of the duplication of code between the debug output
and the actual return value calculation by folding both into the same
loop.
2022-01-25 12:56:47 +01:00
Martin Jäger
debb98e5a3
Fix CAN compilation error introduced by Zephyr PR 41531
...
Commit in Zephyr v2.7-branch: 8af83eac4f6c7afc0d201737da24d3cdc78657c5
2022-01-19 18:46:47 +01:00
Martin Jäger
77d49c5d56
Add PWM switch documentation and list of features
2021-12-18 08:03:31 +01:00
Martin Jäger
4568267288
Use Sphinx for documentation
...
This change makes the API documentation look much nicer.
Also build instructions were moved from README to docs.
2021-12-16 15:54:05 +01:00
Martin Jäger
ce90f7710b
Configure west with workspace outside this repo
...
This allows to re-use upstream Zephyr repository and modules.
2021-12-14 09:45:12 +01:00
Martin Jäger
fd158f215c
Configure OLED display as Zephyr module
2021-12-14 09:32:19 +01:00
Martin Jäger
8ab8ea244a
Move to standard Zephyr T2 workspace structure (star topology)
...
https://docs.zephyrproject.org/latest/guides/west/workspaces.html
Previously, west manifest and CMake entry point were in zephyr subfolder
as required for PlatformIO. As PlatformIO support was dropped, we can
follow the default Zephyr folder structure more closely.
The application is built and flashed from app subfolder, where as unit
tests are run from tests subfolder.
2021-12-12 14:09:05 +01:00