Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stm32_pwm.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 STMicroelectronics
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PWM_STM32_PWM_H_
7#define ZEPHYR_INCLUDE_DT_BINDINGS_PWM_STM32_PWM_H_
8
19#define STM32_PWM_COMPLEMENTARY (1U << 8)
20
22#define STM32_PWM_COMPLEMENTARY_MASK 0x100
25
33#define STM32_PWM_CAPTURE_PSC_POS 9
34#define STM32_PWM_CAPTURE_PSC_MASK (0x3 << STM32_PWM_CAPTURE_PSC_POS)
36
38#define STM32_PWM_CAPTURE_PSC_1 (0U << STM32_PWM_CAPTURE_PSC_POS)
39
41#define STM32_PWM_CAPTURE_PSC_2 (1U << STM32_PWM_CAPTURE_PSC_POS)
42
44#define STM32_PWM_CAPTURE_PSC_4 (2U << STM32_PWM_CAPTURE_PSC_POS)
45
47#define STM32_PWM_CAPTURE_PSC_8 (3U << STM32_PWM_CAPTURE_PSC_POS)
48
50
51#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_PWM_STM32_PWM_H_ */