220V_Controller/App/HeatingSetting.c
2022-07-23 18:08:23 +08:00

32 lines
681 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* PWM.c
*
* Created on: 2022年03月21日
* Author: User
*/
#include <main.h>
void Init(void);
HeatingSetting_t HeatingSetting = {
Init};
void Init(void)
{
EX0 = 1; // 使能INT0中断
IT0 = 0; //设置INT0的中断类型1仅下降沿 0上升沿和下降沿
EA = 1; //打开总中断
}
/********************* INT0中断函数 *************************/
void INT0_int(void) interrupt 0 //进中断时已经清除标志 无论上升下降沿都把定时器2计数清零
{
Timer2.Heating_Run_Timer = 0;
}
/********************************************************
End Of File
********************************************************/