Add a driver class for power switches, e.g. used for load and USB outputs. Besides switching on and off, drivers may provide a power-good feedback and report faults that were already handled in hardware. Two backends are available: - libresolar,gpio-power-switch: Switch driven by a GPIO with optional latching power-good feedback and charge pump PWM for high-side gate drivers. The latch time is handled by delayable work instead of blocking the caller. - libresolar,stm32-lptim-power-switch: Switch driven by LPTIM1 of STM32L0, which is triggered by COMP2 to switch off within a few microseconds in case of a short circuit (PWM 2420 LUS). The GPIO backend is tested on native_sim using the GPIO emulator and the fake PWM driver. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
53 lines
1.3 KiB
ReStructuredText
53 lines
1.3 KiB
ReStructuredText
====================================================
|
|
Libre Solar Charge Controller Firmware Documentation
|
|
====================================================
|
|
|
|
This documentation describes the firmware based on `Zephyr RTOS`_ for different Libre Solar MPPT/PWM
|
|
Charge Controllers.
|
|
|
|
The firmware is under ongoing development. Most recent version can be found on
|
|
`GitHub <https://github.com/LibreSolar/charge-controller-firmware>`_.
|
|
|
|
This documentation is licensed under the Creative Commons Attribution-ShareAlike 4.0 International
|
|
(CC BY-SA 4.0) License.
|
|
|
|
.. image:: static/images/cc-by-sa-centered.png
|
|
|
|
The full license text is available at `<https://creativecommons.org/licenses/by-sa/4.0/>`_.
|
|
|
|
.. _Zephyr RTOS: https://zephyrproject.org
|
|
|
|
.. toctree::
|
|
:caption: Overview
|
|
:hidden:
|
|
|
|
src/overview/features
|
|
src/overview/supported_hardware
|
|
src/overview/charger_concepts
|
|
|
|
.. toctree::
|
|
:caption: Development
|
|
:hidden:
|
|
|
|
src/dev/workspace_setup
|
|
src/dev/building_flashing
|
|
src/dev/customization
|
|
src/dev/unit_tests
|
|
src/dev/troubleshooting
|
|
|
|
.. toctree::
|
|
:caption: API Reference
|
|
:hidden:
|
|
|
|
src/api/bat_charger
|
|
src/api/daq
|
|
src/api/data_objects
|
|
src/api/dcdc
|
|
src/api/device_status
|
|
src/api/half_bridge
|
|
src/api/load
|
|
src/api/power_port
|
|
src/api/power_switch
|
|
src/api/pwm_switch
|
|
src/api/misc
|