⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 interrupt.c

📁 AVR单片机C语言程序设计实例精粹
💻 C
字号:
//***************************************************************
// File Name : Interrupt.c
// Author    : Steaven
// Created   : 2008-06-09
// Modified  : 
// Revision  : V0.0
//***************************************************************

#include "app.h"

//***************************************************************
// Function    : Timer2_Interrupt
// Input       : none
// Output      : none
// Description : Kernel Clock Interrupt Service Routine
//***************************************************************
#pragma interrupt_handler Timer2_Interrupt:4
void Timer2_Interrupt(void)
{
	//Clear Timer2 OCIF Flag
	TIFR  |= 0x80;
    TCNT2 = 0x00;
	//Key Detection
	Key_Detection();
	//Update Task Status
	OS_Task_Update();
}

//===========================END OF FILE========================//

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -