interrupt.h

Ir a la documentación de este archivo.
00001 #ifndef __INTERRUPT_H__
00002 #define __INTERRUPT_H__
00003 
00004 /*
00005   This code is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License as published by
00007    the Free Software Foundation; either version 2, or (at your option)
00008    any later version.
00009    
00010    This code is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014 */
00015 
00029 #include <tipos.h>
00030 
00049 #define _ISR_MAIN __attribute__((__interrupt__("main")))
00050 
00051 
00067 #define _ISR __attribute__ ((__interrupt__))
00068 
00083 #define ISR_MAIN(vector)\
00084 __attribute__((__interrupt__("main"))) void vector(void);\
00085 void vector (void)
00086 
00104 #define ISR(vector)\
00105 __attribute__((__interrupt__)) void vector(void);\
00106 void vector (void)
00107 
00111 #define enable_int_global()     INTCONbits.GIE=1
00112 
00116 #define disable_int_global()    INTCONbits.GIE=0
00117 
00118 
00122 
00123 #define  H_TO_L    0x00
00124 #define  L_TO_H    0x40
00125 
00134 void    enable_int_ext(BYTE flanco);
00138 #define disable_int_ext()       INTCONbits.INTE=0
00139 
00142 #define int_ext_flag()          INTCONbits.INTF
00143 
00146 #define int_ext_free_flag()     INTCONbits.INTF=0
00147 
00148 
00152 
00160 void    enable_int_timer0(void);
00164 #define disable_int_timer0()    INTCONbits.T0IE=0
00165 
00168 #define int_timer0_flag()       INTCONbits.T0IF
00169 
00172 #define int_timer0_free_flag()  INTCONbits.T0IF=0
00173 
00177 
00185 void    enable_int_rb4to7(void);
00189 #define disable_int_rb4to7()    INTCONbits.RBIE=0
00190 
00193 #define int_rb4to7_flag()       INTCONbits.RBIF
00194 
00197 #define int_rb4to7_free_flag()  INTCONbits.RBIF=0
00198 
00202 
00210 void    enable_int_uart(void);
00214 #define disable_int_uart()      PIE1bits.RCIE=0
00215 
00218 #define int_uart_flag()         PIR1bits.RCIF
00219 
00223 
00231 void enable_int_adc(void);
00232 
00233 
00241 void disable_int_adc(void);
00242 
00246 #define int_adc_flag()          PIR1bits.ADIF
00247 
00251 
00259 void enable_int_comp(void);
00260 
00261 
00269 void disable_int_comp(void);
00270 
00274 #define int_comp_flag()         PIR2bits.CMIF
00275 
00276 #endif

Generado el Thu Jan 8 00:55:37 2009 para pic-gcc-library por  doxygen 1.5.1