加入大疆C板例程bsp
This commit is contained in:
8
bsp/boards/bsp_imu_pwm.c
Normal file
8
bsp/boards/bsp_imu_pwm.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "bsp_imu_pwm.h"
|
||||
#include "main.h"
|
||||
|
||||
extern TIM_HandleTypeDef htim10;
|
||||
void imu_pwm_set(uint16_t pwm)
|
||||
{
|
||||
__HAL_TIM_SetCompare(&htim10, TIM_CHANNEL_1, pwm);
|
||||
}
|
||||
Reference in New Issue
Block a user