mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-12 01:39:19 +00:00
git grep -l 'u\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g" git grep -l 's\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g" Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
43 lines
782 B
C
43 lines
782 B
C
/*
|
|
* Copyright (c) 2016 Linaro Limited.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file Header file for the STM32 PWM driver.
|
|
*/
|
|
|
|
#ifndef ZEPHYR_DRIVERS_PWM_PWM_STM32_H_
|
|
#define ZEPHYR_DRIVERS_PWM_PWM_STM32_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** Configuration data */
|
|
struct pwm_stm32_config {
|
|
uint32_t pwm_base;
|
|
/* clock subsystem driving this peripheral */
|
|
struct stm32_pclken pclken;
|
|
};
|
|
|
|
/** Runtime driver data */
|
|
struct pwm_stm32_data {
|
|
/* PWM peripheral handler */
|
|
TIM_HandleTypeDef hpwm;
|
|
/* Prescaler for PWM output clock
|
|
* Value used to divide the TIM clock.
|
|
* Min = 0x0000U, Max = 0xFFFFU
|
|
*/
|
|
uint32_t pwm_prescaler;
|
|
/* clock device */
|
|
struct device *clock;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* ZEPHYR_DRIVERS_PWM_PWM_STM32_H_ */
|