int.c

来自「Keil 8051 C example RS232 to I2c」· C语言 代码 · 共 18 行

C
18
字号
#include <at89x52.H>              // SFR definition header file
#include <stdio.h>                 // prototype declarations for I/O functions
#include <rtx51tny.h>                 /* RTX-51 tiny functions & defines      */
#include "function.h"
#include "SystemEvent.h"
#include "UART.h"
#include "ExtVar.h"

void InitINT1(void){ 
  
   EX1=1;                        /* 1=Enable External interrupt 0 */
   EA = 1;                       /* global interrupt enable     */                                
}  
 
void INTx1 (void) interrupt 2 using 2 {                 
          	isr_send_signal(2);        EX1=0;       
} 
 

⌨️ 快捷键说明

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