Add infrastructure for out-of-tree drivers in this Zephyr module and define a driver API for half bridges consisting of two complementary PWM outputs with dead time, as used in the DC/DC converter. The API is defined as a __subsystem so that drivers can use the DEVICE_API() macro. Integer-based compare values allow to change the PWM with minimum step size, while inline helpers provide the float duty cycle interface known from the previous application code. A libresolar vendor prefix is added for the new bindings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
276 B
CMake
10 lines
276 B
CMake
# Copyright (c) The Libre Solar Project Contributors
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_include_directories(include)
|
|
|
|
# scan headers for __subsystem driver API structs (required for DEVICE_API)
|
|
zephyr_syscall_include_directories(include)
|
|
|
|
add_subdirectory(drivers)
|