New
This commit is contained in:
29
User/bsp/inc/bsp_tim_pwm.h
Normal file
29
User/bsp/inc/bsp_tim_pwm.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
*********************************************************************************************************
|
||||
*
|
||||
* 模块名称 : 利用STM32F4内部TIM输出PWM信号,顺便实现
|
||||
* 文件名称 : bsp_tim_pwm.h
|
||||
* 版 本 : V1.0
|
||||
* 说 明 : 头文件
|
||||
*
|
||||
* Copyright (C), 2012-2013, 安富莱电子 www.armfly.com
|
||||
*
|
||||
*********************************************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef __BSP_TIM_PWM_H
|
||||
#define __BSP_TIM_PWM_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void bsp_SetTIMOutPWM(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, TIM_TypeDef* TIMx, uint8_t _ucChannel,
|
||||
uint32_t _ulFreq, uint32_t _ulDutyCycle);
|
||||
|
||||
void bsp_SetTIMOutPWM_N(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, TIM_TypeDef* TIMx, uint8_t _ucChannel,
|
||||
uint32_t _ulFreq, uint32_t _ulDutyCycle);
|
||||
|
||||
void bsp_SetTIMforInt(TIM_TypeDef* TIMx, uint32_t _ulFreq, uint8_t _PreemptionPriority, uint8_t _SubPriority);
|
||||
|
||||
#endif
|
||||
|
||||
/***************************** 安富莱电子 www.armfly.com (END OF FILE) *********************************/
|
||||
Reference in New Issue
Block a user