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

📄 ext_irq.c

📁 详细介绍了arm7-at91r40008,的开发全过程
💻 C
字号:
//*----------------------------------------------------------------------------
//*      ATMEL Microcontroller Software Support  -  ROUSSET  -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name           : ext_irq.c
//* Object              : External interrupt handler for irq 
//*                     : Use LED5 & LED6 for status interrupt
//* 1.0 03/Jan/03 JPP   : Creation
//*----------------------------------------------------------------------------

// Include Standard LIB  files 
#include "../ucos_ii/includes.h"

	
	int status_irq = 0 ;

//*----------------------------------------------------------------------------
//* Function Name       : at91_IRQ0_handler
//* Object              : Irq Handler called by the IRQ0 interrupt with AT91
//*                       compatibility
//* Input Parameters    : none
//* Output Parameters   : none
//*----------------------------------------------------------------------------
void at91_IRQ0_handler(void)
{
    if (status_irq == 0) status_irq = 1;
    else status_irq = 0 ;
}



⌨️ 快捷键说明

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