28
28
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
29
POSSIBILITY OF SUCH DAMAGE. */
31
/* $Id: io2313.h,v 1.6 2004/11/01 21:19:54 arcanum Exp $ */
31
/* $Id: io2313.h,v 1.9 2005/10/30 22:11:23 joerg_wunsch Exp $ */
33
33
/* avr/io2313.h - definitions for AT90S2313 */
82
82
/* Data Register, Port B */
83
83
#define PORTB _SFR_IO8(0x18)
85
/* 0x1C..0x1E EEPROM */
85
/* EEPROM Control Register */
86
#define EECR _SFR_IO8(0x1C)
88
/* EEPROM Data Register */
89
#define EEDR _SFR_IO8(0x1D)
91
/* EEPROM Address Register */
92
#define EEAR _SFR_IO8(0x1E)
93
#define EEARL _SFR_IO8(0x1E)
87
95
/* Watchdog Timer Control Register */
88
96
#define WDTCR _SFR_IO8(0x21)
139
147
/* Interrupt vectors */
141
#define SIG_INTERRUPT0 _VECTOR(1)
142
#define SIG_INTERRUPT1 _VECTOR(2)
143
#define SIG_INPUT_CAPTURE1 _VECTOR(3)
144
#define SIG_OUTPUT_COMPARE1A _VECTOR(4)
145
#define SIG_OVERFLOW1 _VECTOR(5)
146
#define SIG_OVERFLOW0 _VECTOR(6)
147
#define SIG_UART_RECV _VECTOR(7)
148
#define SIG_UART_DATA _VECTOR(8)
149
#define SIG_UART_TRANS _VECTOR(9)
150
#define SIG_COMPARATOR _VECTOR(10)
149
/* External Interrupt Request 0 */
150
#define INT0_vect _VECTOR(1)
151
#define SIG_INTERRUPT0 _VECTOR(1)
153
/* External Interrupt Request 1 */
154
#define INT1_vect _VECTOR(2)
155
#define SIG_INTERRUPT1 _VECTOR(2)
157
/* Timer/Counter1 Capture Event */
158
#define TIMER1_CAPT1_vect _VECTOR(3)
159
#define SIG_INPUT_CAPTURE1 _VECTOR(3)
161
/* Timer/Counter1 Compare Match */
162
#define TIMER1_COMP1_vect _VECTOR(4)
163
#define SIG_OUTPUT_COMPARE1A _VECTOR(4)
165
/* Timer/Counter1 Overflow */
166
#define TIMER1_OVF1_vect _VECTOR(5)
167
#define SIG_OVERFLOW1 _VECTOR(5)
169
/* Timer/Counter0 Overflow */
170
#define TIMER0_OVF0_vect _VECTOR(6)
171
#define SIG_OVERFLOW0 _VECTOR(6)
173
/* UART, Rx Complete */
174
#define UART_RX_vect _VECTOR(7)
175
#define SIG_UART_RECV _VECTOR(7)
177
/* UART Data Register Empty */
178
#define UART_UDRE_vect _VECTOR(8)
179
#define SIG_UART_DATA _VECTOR(8)
181
/* UART, Tx Complete */
182
#define UART_TX_vect _VECTOR(9)
183
#define SIG_UART_TRANS _VECTOR(9)
185
/* Analog Comparator */
186
#define ANA_COMP_vect _VECTOR(10)
187
#define SIG_COMPARATOR _VECTOR(10)
152
189
#define _VECTORS_SIZE 22