arch/arm/src/stm32/stm32_pwm.h: fix nxstyle issues
This commit is contained in:
parent
8988251814
commit
ae31b1f926
@ -55,14 +55,22 @@
|
|||||||
|
|
||||||
#include "chip.h"
|
#include "chip.h"
|
||||||
|
|
||||||
|
#ifdef CONFIG_STM32_PWM
|
||||||
|
# include <arch/board/board.h>
|
||||||
|
# include "hardware/stm32_tim.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/* Configuration ********************************************************************/
|
/* Configuration ********************************************************************/
|
||||||
|
|
||||||
/* Timer devices may be used for different purposes. One special purpose is
|
/* Timer devices may be used for different purposes. One special purpose is
|
||||||
* to generate modulated outputs for such things as motor control. If CONFIG_STM32_TIMn
|
* to generate modulated outputs for such things as motor control.
|
||||||
* is defined then the CONFIG_STM32_TIMn_PWM must also be defined to indicate that
|
* If CONFIG_STM32_TIMn is defined then the CONFIG_STM32_TIMn_PWM must also be
|
||||||
* timer "n" is intended to be used for pulsed output signal generation.
|
* defined to indicate that timer "n" is intended to be used for pulsed output
|
||||||
|
* signal generation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CONFIG_STM32_TIM1
|
#ifndef CONFIG_STM32_TIM1
|
||||||
@ -120,9 +128,6 @@
|
|||||||
|
|
||||||
#ifdef CONFIG_STM32_PWM
|
#ifdef CONFIG_STM32_PWM
|
||||||
|
|
||||||
#include <arch/board/board.h>
|
|
||||||
#include "hardware/stm32_tim.h"
|
|
||||||
|
|
||||||
/* PWM driver channels configuration */
|
/* PWM driver channels configuration */
|
||||||
|
|
||||||
#ifdef CONFIG_STM32_PWM_MULTICHAN
|
#ifdef CONFIG_STM32_PWM_MULTICHAN
|
||||||
@ -1013,13 +1018,18 @@ enum stm32_pwm_output_e
|
|||||||
STM32_PWM_OUT3 = (1 << 4),
|
STM32_PWM_OUT3 = (1 << 4),
|
||||||
STM32_PWM_OUT3N = (1 << 5),
|
STM32_PWM_OUT3N = (1 << 5),
|
||||||
STM32_PWM_OUT4 = (1 << 6),
|
STM32_PWM_OUT4 = (1 << 6),
|
||||||
|
|
||||||
/* 1 << 7 reserved - no complementary output for CH4 */
|
/* 1 << 7 reserved - no complementary output for CH4 */
|
||||||
|
|
||||||
#ifdef HAVE_IP_TIMERS_V2
|
#ifdef HAVE_IP_TIMERS_V2
|
||||||
/* Only available inside micro */
|
/* Only available inside micro */
|
||||||
|
|
||||||
STM32_PWM_OUT5 = (1 << 8),
|
STM32_PWM_OUT5 = (1 << 8),
|
||||||
|
|
||||||
/* 1 << 9 reserved - no complementary output for CH5 */
|
/* 1 << 9 reserved - no complementary output for CH5 */
|
||||||
|
|
||||||
STM32_PWM_OUT6 = (1 << 10),
|
STM32_PWM_OUT6 = (1 << 10),
|
||||||
|
|
||||||
/* 1 << 11 reserved - no complementary output for CH6 */
|
/* 1 << 11 reserved - no complementary output for CH6 */
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
@ -1072,7 +1082,8 @@ struct stm32_pwm_ops_s
|
|||||||
|
|
||||||
/* Enable outputs */
|
/* Enable outputs */
|
||||||
|
|
||||||
int (*outputs_enable)(FAR struct pwm_lowerhalf_s *dev, uint16_t outputs, bool state);
|
int (*outputs_enable)(FAR struct pwm_lowerhalf_s *dev, uint16_t outputs,
|
||||||
|
bool state);
|
||||||
|
|
||||||
/* Software update */
|
/* Software update */
|
||||||
|
|
||||||
@ -1125,7 +1136,7 @@ extern "C"
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Public Functions
|
* Public Function Prototypes
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user