Port the HRTIM implementation from the application to a half-bridge driver. As before, only timer A with outputs TA1/TA2 is supported and the higher resolution of the HRTIM is not used yet. In contrast to the previous implementation, the timer clock source must be specified as the second clock of the HRTIM node (e.g. TIMPCLK2), the DLL calibration is aborted with a timeout and the ADC trigger via timer A compare 3 must be enabled explicitly with the adc-trigger property. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
345 B
CMake
9 lines
345 B
CMake
# Copyright (c) The Libre Solar Project Contributors
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_library()
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_HALF_BRIDGE_STM32 half_bridge_stm32.c)
|
|
zephyr_library_sources_ifdef(CONFIG_HALF_BRIDGE_STM32_HRTIM half_bridge_stm32_hrtim.c)
|
|
zephyr_library_sources_ifdef(CONFIG_HALF_BRIDGE_EMUL half_bridge_emul.c)
|