mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-06 05:11:56 +00:00
Following migration of stm32f1xx series clock control driver to STM32Cube LL API, cleanup stm32 code base in order to take into account that this is the only clock driver available for stm32 family. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
43 lines
728 B
C
43 lines
728 B
C
/*
|
|
* Copyright (c) 2016 Linaro Limited.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file Header file for the STM32 PWM driver.
|
|
*/
|
|
|
|
#ifndef __PWM_STM32_H__
|
|
#define __PWM_STM32_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** Configuration data */
|
|
struct pwm_stm32_config {
|
|
u32_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
|
|
*/
|
|
u32_t pwm_prescaler;
|
|
/* clock device */
|
|
struct device *clock;
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __PWM_STM32_H__ */
|