1 /* 2 * Copyright (c) 2022 STMicroelectronics 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_STM32_PWM_H_ 7 #define ZEPHYR_INCLUDE_DT_BINDINGS_STM32_PWM_H_ 8 9 /** 10 * @name custom PWM complementary flags for output pins 11 * This flag can be used with any of the `pwm_pin_set_*` API calls to indicate 12 * that the PWM signal has to be routed to the complementary output channel. 13 * This feature is only available on certain SoC families, refer to the 14 * binding's documentation for more details. 15 * The custom flags are on the upper 8bits of the pwm_flags_t 16 * @{ 17 */ 18 /** PWM complementary output pin is enabled */ 19 #define STM32_PWM_COMPLEMENTARY (1U << 8) 20 /** 21 * @deprecated Use the PWM complementary `STM32_PWM_COMPLEMENTARY` flag instead. 22 */ 23 #define PWM_STM32_COMPLEMENTARY (1U << 8) 24 25 /** @cond INTERNAL_HIDDEN */ 26 #define STM32_PWM_COMPLEMENTARY_MASK 0x100 27 /** @endcond */ 28 /** @} */ 29 30 #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_PWM_STM32_H_ */ 31