Files
charge-controller-firmware/drivers/half_bridge/Kconfig
T
Martin JägerandClaude Opus 5.5 749c84eee1 drivers: half_bridge: add emulated driver and tests
Add an emulated half-bridge driver for tests on native_sim. It behaves
like an edge-aligned STM32 timer, similar to the dummy registers used
in the unit tests so far.

The driver API is tested in a new ztest suite, which can be run with
twister:

    west twister -T tests/drivers -p native_sim

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 20:36:07 +02:00

31 lines
873 B
Plaintext

# Copyright (c) The Libre Solar Project Contributors
# SPDX-License-Identifier: Apache-2.0
menuconfig HALF_BRIDGE
bool "Half-bridge drivers"
default y if DT_HAS_LIBRESOLAR_HALF_BRIDGE_EMUL_ENABLED
help
Enable drivers for half bridges consisting of two complementary PWM outputs with dead time,
e.g. used in DC/DC converters.
if HALF_BRIDGE
config HALF_BRIDGE_INIT_PRIORITY
int "Half-bridge init priority"
default KERNEL_INIT_PRIORITY_DEVICE
help
Half-bridge driver device initialization priority.
module = HALF_BRIDGE
module-str = half_bridge
source "subsys/logging/Kconfig.template.log_config"
config HALF_BRIDGE_EMUL
bool "Emulated half-bridge driver"
default y
depends on DT_HAS_LIBRESOLAR_HALF_BRIDGE_EMUL_ENABLED
help
Enable emulated half-bridge driver for tests on native_sim.
endif # HALF_BRIDGE