sentry_chassis_hzz/bsp/bsp_temperature.c

14 lines
225 B
C
Raw Normal View History

2022-10-20 17:13:02 +08:00
#include "bsp_temperature.h"
extern TIM_HandleTypeDef htim10;
2022-11-13 21:46:52 +08:00
void IMUTempInit()
{
HAL_TIM_PWM_Start(&htim10, TIM_CHANNEL_1);
}
2022-10-20 17:13:02 +08:00
void imu_pwm_set(uint16_t pwm)
{
__HAL_TIM_SetCompare(&htim10, TIM_CHANNEL_1, pwm);
}