/* * Fan_Control.c * * Created on: Jun 23, 2022 * Author: max */ #include "Fan_Control.h" TIM_HandleTypeDef* fan_pwm_timer; void Temp_Ctrl_Init(TIM_HandleTypeDef* htim) { fan_pwm_timer = htim; fan_pwm_timer->Instance->CCR4 = 0; HAL_TIM_PWM_Start(fan_pwm_timer, TIM_CHANNEL_4); } void Temp_Ctrl_Loop() { fan_pwm_timer->Instance->CCR4 = 65000; }