RobotHardware-UESTC/Hardware/Firmware/Gebot_Firmware v1.0/STM32/BSPLIB/pwm_out.h

22 lines
380 B
C
Raw Normal View History

2024-01-18 02:06:22 +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