30 lines
775 B
C
30 lines
775 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Includes ----------------------------------------------------------------- */
|
|
#include <stdint.h>
|
|
|
|
#include "bsp/bsp.h"
|
|
|
|
/* Exported constants ------------------------------------------------------- */
|
|
/* Exported macro ----------------------------------------------------------- */
|
|
/* Exported types ----------------------------------------------------------- */
|
|
|
|
/* PWM通道 */
|
|
typedef enum {
|
|
BSP_PWM_IMU_HEAT,
|
|
BSP_PWM_SHOOT_SERVO,
|
|
} BSP_PWM_Channel_t;
|
|
|
|
/* Exported functions prototypes -------------------------------------------- */
|
|
int8_t BSP_PWM_Start(BSP_PWM_Channel_t ch);
|
|
int8_t BSP_PWM_Set(BSP_PWM_Channel_t ch, float duty_cycle);
|
|
int8_t BSP_PWM_Stop(BSP_PWM_Channel_t ch);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|