no-OS
|
Implementation of stm32 pwm driver. More...
#include <stdint.h>
#include <stdbool.h>
#include "no_os_gpio.h"
#include "no_os_irq.h"
#include "stm32_gpio.h"
#include "stm32_hal.h"
Go to the source code of this file.
Classes | |
struct | stm32_pwm_init_param |
Structure holding the STM32 PWM parameters. More... | |
struct | stm32_pwm_desc |
Structure holding the STM32 PWM descriptor. More... | |
Enumerations | |
enum | TimOCMode { TIM_OC_TOGGLE = 0, TIM_OC_PWM1 = 1, TIM_OC_PWM2 = 2 } |
enum | stm32_pwm_trigger { PWM_TS_ITR0, PWM_TS_ITR1, PWM_TS_ITR2, PWM_TS_ITR3 } |
enum | stm32_pwm_trigger_out { PWM_TRGO_RESET, PWM_TRGO_ENABLE, PWM_TRGO_UPDATE, PWM_TRGO_OC1, PWM_TRGO_OC1REF, PWM_TRGO_OC2REF, PWM_TRGO_OC3REF, PWM_TRGO_OC4REF } |
Variables | |
const struct no_os_pwm_platform_ops | stm32_pwm_ops |
STM32 specific PWM platform ops structure. More... | |
Implementation of stm32 pwm driver.
Header file for stm32 pwm specifics.
Copyright 2023(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
enum stm32_pwm_trigger |
enum TimOCMode |
const struct no_os_pwm_platform_ops stm32_pwm_ops |
STM32 specific PWM platform ops structure.
STM32 specific PWM platform ops structure.