RobotHardware-UESTC/Hardware/银星机器人底盘/PiRobot-YH_Firmware v1.1/STM32/BSPLIB/pwm_out.h

22 lines
380 B
C

#ifndef PWM_OUT_H
#define PWM_OUT_H
#ifdef __cplusplus
extern "C" {
#endif
#include "stm32f10x.h"
void PB_PWMChannel_Init(TIM_TypeDef* TIMx , uint8_t Channel , uint16_t Prescaler,
uint16_t Period, uint8_t GPIO_AF);
void PB_Set_PWM(TIM_TypeDef* TIMx , uint8_t Channel , uint16_t Pwm_Value);
#ifdef __cplusplus
}
#endif
#endif // #ifndef PWM_OUT_H