|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Go to the source code of this file.
Macros | |
custom PWM complementary flags for output pins | |
This flag can be used with any of the pwm_pin_set_* API calls to indicate that the PWM signal has to be routed to the complementary output channel. This feature is only available on certain SoC families, refer to the binding's documentation for more details. The custom flags are on the upper 8bits of the pwm_flags_t | |
| #define | STM32_PWM_COMPLEMENTARY (1U << 8) |
| PWM complementary output pin is enabled. | |
custom PWM flags for input capture prescaler | |
These flags can be used with the pwm_configure_capture API call to set the input capture prescaler (ICxPSC in TIMx_CCMRx). A prescaler > 1 can only be used with PWM_CAPTURE_TYPE_PERIOD. | |
| #define | STM32_PWM_CAPTURE_PSC_1 (0U << STM32_PWM_CAPTURE_PSC_POS) |
| PWM input capture prescaler is set to 1 (default). | |
| #define | STM32_PWM_CAPTURE_PSC_2 (1U << STM32_PWM_CAPTURE_PSC_POS) |
| PWM input capture prescaler is set to 2. | |
| #define | STM32_PWM_CAPTURE_PSC_4 (2U << STM32_PWM_CAPTURE_PSC_POS) |
| PWM input capture prescaler is set to 4. | |
| #define | STM32_PWM_CAPTURE_PSC_8 (3U << STM32_PWM_CAPTURE_PSC_POS) |
| PWM input capture prescaler is set to 8. | |
| #define STM32_PWM_CAPTURE_PSC_1 (0U << STM32_PWM_CAPTURE_PSC_POS) |
PWM input capture prescaler is set to 1 (default).
| #define STM32_PWM_CAPTURE_PSC_2 (1U << STM32_PWM_CAPTURE_PSC_POS) |
PWM input capture prescaler is set to 2.
| #define STM32_PWM_CAPTURE_PSC_4 (2U << STM32_PWM_CAPTURE_PSC_POS) |
PWM input capture prescaler is set to 4.
| #define STM32_PWM_CAPTURE_PSC_8 (3U << STM32_PWM_CAPTURE_PSC_POS) |
PWM input capture prescaler is set to 8.
| #define STM32_PWM_COMPLEMENTARY (1U << 8) |
PWM complementary output pin is enabled.