/*
 * usr_gpio.h
 *
 *  Created on: 2022��4��11��
 *      Author: amos
 */

#ifndef USR_LYSIS_H_
#define USR_LYSIS_H_

/*************************************/

#define TUPE_OPTIC_PORT PF//光开
#define TUPE_OPTIC_PIN  BIT5//光开
#define TUPE_OPTIC_INT_CH  5//光开
#define TUPE_OPTIC()  (PF5)  //按键

#define HEAT_UP_CH_MASK PWM_CH_4_MASK 
#define HEAT_UP_CH	4
#define COOL_DOWN_CH_MASK PWM_CH_5_MASK 
#define COOL_DOWN_CH	5 

#define MOTOR_CHECK_SPEED	60
#define MOTOR_MOVEFORM_OPTIC_TIM	10
#define MOTOR_LOOP_TIM	100

#define MOTOR_SWING_TIM	100

typedef enum {
	HEAT_UP = 0,
	COOL_DOWN = 1,
}HEAT_DIR;

void updatParm_therm(void);
void Set_therm(float goal) ;
uint32_t Therm_work(void);
uint32_t Therm_updat_work(void);
uint32_t Close_Therm_work(void);

/***********************************/
#endif /* USR_HEATER_H_ */
