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

22 lines
380 B
C
Raw Normal View History

2024-01-20 13:19:09 +08:00
#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