1 /*
2  * Copyright (c) 2019 Vestas Wind Systems A/S
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PWM_PWM_H_
7 #define ZEPHYR_INCLUDE_DT_BINDINGS_PWM_PWM_H_
8 
9 /**
10  * @name PWM polarity flags
11  * The `PWM_POLARITY_*` flags are used with pwm_pin_set_cycles(),
12  * pwm_pin_set_usec(), pwm_pin_set_nsec() or pwm_pin_configure_capture() to
13  * specify the polarity of a PWM pin.
14  * @{
15  */
16 /** PWM pin normal polarity (active-high pulse). */
17 #define PWM_POLARITY_NORMAL	(0 << 0)
18 
19 /** PWM pin inverted polarity (active-low pulse). */
20 #define PWM_POLARITY_INVERTED	(1 << 0)
21 
22 /** @cond INTERNAL_HIDDEN */
23 #define PWM_POLARITY_MASK	0x1
24 /** @endcond */
25 /** @} */
26 
27 #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_PWM_PWM_H_ */
28