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_IOAT94K_H_
00029 #define _AVR_IOAT94K_H_ 1
00030
00031
00032
00033 #ifndef _AVR_IO_H_
00034 # error "Include <avr/io.h> instead of this file."
00035 #endif
00036
00037 #ifndef _AVR_IOXXX_H_
00038 # define _AVR_IOXXX_H_ "ioat94k.h"
00039 #else
00040 # error "Attempt to include more than one <avr/ioXXX.h> file."
00041 #endif
00042
00043 #include <avr/sfr_defs.h>
00044
00045
00046
00047
00048 #define UBRR1 _SFR_IO8(0x00)
00049
00050
00051 #define UCSR1B _SFR_IO8(0x01)
00052 #define UCSR1A _SFR_IO8(0x02)
00053
00054
00055 #define UDR1 _SFR_IO8(0x03)
00056
00057
00058
00059
00060 #define PINE _SFR_IO8(0x05)
00061
00062
00063 #define DDRE _SFR_IO8(0x06)
00064
00065
00066 #define PORTE _SFR_IO8(0x07)
00067
00068
00069
00070
00071 #define UBRR0 _SFR_IO8(0x09)
00072
00073
00074 #define UCSR0B _SFR_IO8(0x0A)
00075 #define UCSR0A _SFR_IO8(0x0B)
00076
00077
00078 #define UDR0 _SFR_IO8(0x0C)
00079
00080
00081
00082
00083 #define PIND _SFR_IO8(0x10)
00084
00085
00086 #define DDRD _SFR_IO8(0x11)
00087
00088
00089 #define PORTD _SFR_IO8(0x12)
00090
00091
00092 #define FISCR _SFR_IO8(0x13)
00093
00094
00095 #define FISUA _SFR_IO8(0x14)
00096 #define FISUB _SFR_IO8(0x15)
00097 #define FISUC _SFR_IO8(0x16)
00098 #define FISUD _SFR_IO8(0x17)
00099
00100
00101 #define FPGAX _SFR_IO8(0x18)
00102 #define FPGAY _SFR_IO8(0x19)
00103 #define FPGAZ _SFR_IO8(0x1A)
00104 #define FPGAD _SFR_IO8(0x1B)
00105
00106
00107
00108
00109 #define TWBR _SFR_IO8(0x1C)
00110
00111
00112 #define TWSR _SFR_IO8(0x1D)
00113
00114
00115 #define TWAR _SFR_IO8(0x1E)
00116
00117
00118 #define TWDR _SFR_IO8(0x1F)
00119
00120
00121 #define UBRRH _SFR_IO8(0x20)
00122
00123
00124 #define WDTCR _SFR_IO8(0x21)
00125
00126
00127 #define OCR2 _SFR_IO8(0x22)
00128
00129
00130 #define TCNT2 _SFR_IO8(0x23)
00131
00132
00133 #define ICR1 _SFR_IO16(0x24)
00134 #define ICR1L _SFR_IO8(0x24)
00135 #define ICR1H _SFR_IO8(0x25)
00136
00137
00138 #define ASSR _SFR_IO8(0x26)
00139
00140
00141 #define TCCR2 _SFR_IO8(0x27)
00142
00143
00144 #define OCR1B _SFR_IO16(0x28)
00145 #define OCR1BL _SFR_IO8(0x28)
00146 #define OCR1BH _SFR_IO8(0x29)
00147
00148
00149 #define OCR1A _SFR_IO16(0x2A)
00150 #define OCR1AL _SFR_IO8(0x2A)
00151 #define OCR1AH _SFR_IO8(0x2B)
00152
00153
00154 #define TCNT1 _SFR_IO16(0x2C)
00155 #define TCNT1L _SFR_IO8(0x2C)
00156 #define TCNT1H _SFR_IO8(0x2D)
00157
00158
00159 #define TCCR1B _SFR_IO8(0x2E)
00160
00161
00162 #define TCCR1A _SFR_IO8(0x2F)
00163
00164
00165 #define SFIOR _SFR_IO8(0x30)
00166
00167
00168 #define OCR0 _SFR_IO8(0x31)
00169
00170
00171 #define TCNT0 _SFR_IO8(0x32)
00172
00173
00174 #define TCCR0 _SFR_IO8(0x33)
00175
00176
00177
00178
00179 #define MCUR _SFR_IO8(0x35)
00180
00181
00182 #define TWCR _SFR_IO8(0x36)
00183
00184
00185
00186
00187 #define TIFR _SFR_IO8(0x38)
00188
00189
00190 #define TIMSK _SFR_IO8(0x39)
00191
00192
00193 #define SFTCR _SFR_IO8(0x3A)
00194
00195
00196 #define EIMF _SFR_IO8(0x3B)
00197
00198
00199
00200
00201 #define SPL _SFR_IO8(0x3D)
00202 #define SPH _SFR_IO8(0x3E)
00203
00204
00205 #define SREG _SFR_IO8(0x3F)
00206
00207
00208
00209
00210 #define SIG_INTERRUPT0 _VECTOR(1)
00211 #define SIG_FPGA_INTERRUPT0 _VECTOR(2)
00212 #define SIG_INTERRUPT1 _VECTOR(3)
00213 #define SIG_FPGA_INTERRUPT1 _VECTOR(4)
00214 #define SIG_INTERRUPT2 _VECTOR(5)
00215 #define SIG_FPGA_INTERRUPT2 _VECTOR(6)
00216 #define SIG_INTERRUPT3 _VECTOR(7)
00217 #define SIG_FPGA_INTERRUPT3 _VECTOR(8)
00218 #define SIG_OUTPUT_COMPARE2 _VECTOR(9)
00219 #define SIG_OVERFLOW2 _VECTOR(10)
00220 #define SIG_INPUT_CAPTURE1 _VECTOR(11)
00221 #define SIG_OUTPUT_COMPARE1A _VECTOR(12)
00222 #define SIG_OUTPUT_COMPARE1B _VECTOR(13)
00223 #define SIG_OVERFLOW1 _VECTOR(14)
00224 #define SIG_OUTPUT_COMPARE0 _VECTOR(15)
00225 #define SIG_OVERFLOW0 _VECTOR(16)
00226 #define SIG_FPGA_INTERRUPT4 _VECTOR(17)
00227 #define SIG_FPGA_INTERRUPT5 _VECTOR(18)
00228 #define SIG_FPGA_INTERRUPT6 _VECTOR(19)
00229 #define SIG_FPGA_INTERRUPT7 _VECTOR(20)
00230 #define SIG_UART0_RECV _VECTOR(21)
00231 #define SIG_UART0_DATA _VECTOR(22)
00232 #define SIG_UART0_TRANS _VECTOR(23)
00233 #define SIG_FPGA_INTERRUPT8 _VECTOR(24)
00234 #define SIG_FPGA_INTERRUPT9 _VECTOR(25)
00235 #define SIG_FPGA_INTERRUPT10 _VECTOR(26)
00236 #define SIG_FPGA_INTERRUPT11 _VECTOR(27)
00237 #define SIG_UART1_RECV _VECTOR(28)
00238 #define SIG_UART1_DATA _VECTOR(29)
00239 #define SIG_UART1_TRANS _VECTOR(30)
00240 #define SIG_FPGA_INTERRUPT12 _VECTOR(31)
00241 #define SIG_FPGA_INTERRUPT13 _VECTOR(32)
00242 #define SIG_FPGA_INTERRUPT14 _VECTOR(33)
00243 #define SIG_FPGA_INTERRUPT15 _VECTOR(34)
00244 #define SIG_2WIRE_SERIAL _VECTOR(35)
00245
00246 #define _VECTORS_SIZE 144
00247
00248
00249
00250
00251 #define XL r26
00252 #define XH r27
00253 #define YL r28
00254 #define YH r29
00255 #define ZL r30
00256 #define ZH r31
00257
00258
00259
00260
00261
00262
00263
00264 #ifndef RAMEND
00265 #define RAMEND 0x0FFF
00266 #endif
00267
00268 #define E2END 0
00269
00270 #ifndef FLASHEND
00271 #define FLASHEND 0x7FFF
00272 #endif
00273
00274 #endif