00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef __AVR_CPP_ATMEGA8515_EXTERNAL_INTERRUPT_H__
00029 #define __AVR_CPP_ATMEGA8515_EXTERNAL_INTERRUPT_H__
00030
00031
00032
00033 #ifndef __AVR_CPP_EXTERNAL_INTERRUPT_H__
00034 #ifdef __DOXYGEN__
00035 #include <avr/cpp/ExternalInterrupt.h>
00036 #else
00037 #error "Include <avr/cpp/ExternalInterrupt.h> instead of <avr/cpp/atmega8515/ExternalInterrupt.h>."
00038 #endif
00039 #endif // ifndef __AVR_CPP_EXTERNAL_INTERRUPT_H__
00040
00041 #ifndef __AVR_CPP_XXX_EXTERNAL_INTERRUPT_H__
00042 #define __AVR_CPP_XXX_EXTERNAL_INTERRUPT_H__ "atmega8515/ExternalInterrupt.h"
00043 #else
00044 #error "Attempt to include more than one <avr/cpp/XXXX/ExternalInterrupt.h> file."
00045 #endif
00046
00047 #define INT0_ns ExternalInterrupt
00048 #define INT1_ns ExternalInterrupt
00049 #define INT2_ns ExternalInterrupt
00050
00051 #define INT0_struct INT0_ns::Interrupt0
00052 #define INT1_struct INT1_ns::Interrupt1
00053 #define INT2_struct INT1_ns::Interrupt2
00054
00055
00056 namespace AVRCpp
00057 {
00058 namespace ExternalInterrupt
00059 {
00060 struct Interrupt0 : Internal::InterruptBase <
00061 InputPin2<PortD>,
00062 Event,
00063 Bits<_MCUCR, _ISC00 | _ISC01>,
00064 Bits<_GICR, _INT0>,
00065 Bits<_GIFR, _INTF0>,
00066 0 >
00067
00068 { __INTERRUPT_HANDLER_SUPPORT__ };
00069
00070 struct Interrupt1 : Internal::InterruptBase <
00071 InputPin3<PortD>,
00072 Event,
00073 Bits<_MCUCR, _ISC10 | _ISC11>,
00074 Bits<_GICR, _INT1>,
00075 Bits<_GIFR, _INTF1>,
00076 2 >
00077
00078 { __INTERRUPT_HANDLER_SUPPORT__ };
00079
00080 struct Interrupt2 : Internal::InterruptBase <
00081 InputPin0<PortE>,
00082 SimpleAsyncEvent,
00083 Bits<_EMCUCR, _ISC2>,
00084 Bits<_GICR, _INT2>,
00085 Bits<_GIFR, _INTF2>,
00086 0 >
00087
00088 { __INTERRUPT_HANDLER_SUPPORT__ };
00089
00090 }
00091
00092 }
00093
00094 #endif // ifndef __AVR_CPP_ATMEGA8515_EXTERNAL_INTERRUPT_H__