红外源程序为NEC的源代码
红外源程序为NEC的源代码:/*遥控接收在此中断程序内完成
//遥控码放在ir_da[]中
/************************************/
/* Interrupt for IR subroutine */
/* external interrupt source INT0 */
/************************************/
//#include
//#include "funtion_sub.h"
#include "message.H"
#include "include.h"
//#define uCHAR unsigned char
extern bit ir_enable;
extern bit ir_start;
extern bit ir_key_continue_pressed;
extern bit Using_Timer1;
extern bit LeaderCode_9MS;
extern bit LeaderCode_4_5MS;
extern bit IR_Sending;
extern bit IR_Keep_Press; //长按
extern bit IR_2MS_Re;
extern bit IR_560US_Re;
extern uCHAR ir_word;
extern uCHAR ir_bit;
extern uCHAR ir_data[4];
extern uCHAR idata IR_Tran_data[4];
extern uchar idata IR_Out_Times;
extern uCHAR PRE_REMOTE_KEY;
非常好我支持^.^
(5) 100%
不好我反对
(0) 0%