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>
15 lines
266 B
Plaintext
15 lines
266 B
Plaintext
/*
|
|
* Copyright (c) The Libre Solar Project Contributors
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/ {
|
|
halfbridge: half-bridge {
|
|
compatible = "libresolar,half-bridge-emul";
|
|
clock-frequency = <24000000>;
|
|
frequency = <70000>;
|
|
deadtime-ns = <300>;
|
|
};
|
|
};
|