00001
00002
00003 #define SCK DIO9
00004 #define MISO DIO11
00005 #define MOSI DIO10
00006 #define SS DIO8
00007
00008
00009 #define DEBUG_LED DIO31
00010
00011
00012
00013
00014 #define DIO0_PIN PINA0
00015 #define DIO0_RPORT PINA
00016 #define DIO0_WPORT PORTA
00017 #define DIO0_DDR DDRA
00018
00019 #define DIO1_PIN PINA1
00020 #define DIO1_RPORT PINA
00021 #define DIO1_WPORT PORTA
00022 #define DIO1_DDR DDRA
00023
00024 #define DIO2_PIN PINA2
00025 #define DIO2_RPORT PINA
00026 #define DIO2_WPORT PORTA
00027 #define DIO2_DDR DDRA
00028
00029 #define DIO3_PIN PINA3
00030 #define DIO3_RPORT PINA
00031 #define DIO3_WPORT PORTA
00032 #define DIO3_DDR DDRA
00033
00034 #define DIO4_PIN PINA4
00035 #define DIO4_RPORT PINA
00036 #define DIO4_WPORT PORTA
00037 #define DIO4_DDR DDRA
00038
00039 #define DIO5_PIN PINA5
00040 #define DIO5_RPORT PINA
00041 #define DIO5_WPORT PORTA
00042 #define DIO5_DDR DDRA
00043
00044 #define DIO6_PIN PINA6
00045 #define DIO6_RPORT PINA
00046 #define DIO6_WPORT PORTA
00047 #define DIO6_DDR DDRA
00048
00049 #define DIO7_PIN PINA7
00050 #define DIO7_RPORT PINA
00051 #define DIO7_WPORT PORTA
00052 #define DIO7_DDR DDRA
00053
00054 #define DIO8_PIN PINB0
00055 #define DIO8_RPORT PINB
00056 #define DIO8_WPORT PORTB
00057 #define DIO8_DDR DDRB
00058
00059 #define DIO9_PIN PINB1
00060 #define DIO9_RPORT PINB
00061 #define DIO9_WPORT PORTB
00062 #define DIO9_DDR DDRB
00063
00064 #define DIO10_PIN PINB2
00065 #define DIO10_RPORT PINB
00066 #define DIO10_WPORT PORTB
00067 #define DIO10_DDR DDRB
00068
00069 #define DIO11_PIN PINB3
00070 #define DIO11_RPORT PINB
00071 #define DIO11_WPORT PORTB
00072 #define DIO11_DDR DDRB
00073
00074 #define DIO12_PIN PINB4
00075 #define DIO12_RPORT PINB
00076 #define DIO12_WPORT PORTB
00077 #define DIO12_DDR DDRB
00078
00079 #define DIO13_PIN PINB5
00080 #define DIO13_RPORT PINB
00081 #define DIO13_WPORT PORTB
00082 #define DIO13_DDR DDRB
00083
00084 #define DIO14_PIN PINB6
00085 #define DIO14_RPORT PINB
00086 #define DIO14_WPORT PORTB
00087 #define DIO14_DDR DDRB
00088
00089 #define DIO15_PIN PINB7
00090 #define DIO15_RPORT PINB
00091 #define DIO15_WPORT PORTB
00092 #define DIO15_DDR DDRB
00093
00094 #define DIO16_PIN PINC0
00095 #define DIO16_RPORT PINC
00096 #define DIO16_WPORT PORTC
00097 #define DIO16_DDR DDRC
00098
00099 #define DIO17_PIN PINC1
00100 #define DIO17_RPORT PINC
00101 #define DIO17_WPORT PORTC
00102 #define DIO17_DDR DDRC
00103
00104 #define DIO18_PIN PINC2
00105 #define DIO18_RPORT PINC
00106 #define DIO18_WPORT PORTC
00107 #define DIO18_DDR DDRC
00108
00109 #define DIO19_PIN PINC3
00110 #define DIO19_RPORT PINC
00111 #define DIO19_WPORT PORTC
00112 #define DIO19_DDR DDRC
00113
00114 #define DIO20_PIN PINC4
00115 #define DIO20_RPORT PINC
00116 #define DIO20_WPORT PORTC
00117 #define DIO20_DDR DDRC
00118
00119 #define DIO21_PIN PINC5
00120 #define DIO21_RPORT PINC
00121 #define DIO21_WPORT PORTC
00122 #define DIO21_DDR DDRC
00123
00124 #define DIO22_PIN PINC6
00125 #define DIO22_RPORT PINC
00126 #define DIO22_WPORT PORTC
00127 #define DIO22_DDR DDRC
00128
00129 #define DIO23_PIN PINC7
00130 #define DIO23_RPORT PINC
00131 #define DIO23_WPORT PORTC
00132 #define DIO23_DDR DDRC
00133
00134 #define DIO24_PIN PIND0
00135 #define DIO24_RPORT PIND
00136 #define DIO24_WPORT PORTD
00137 #define DIO24_DDR DDRD
00138
00139 #define DIO25_PIN PIND1
00140 #define DIO25_RPORT PIND
00141 #define DIO25_WPORT PORTD
00142 #define DIO25_DDR DDRD
00143
00144 #define DIO26_PIN PIND2
00145 #define DIO26_RPORT PIND
00146 #define DIO26_WPORT PORTD
00147 #define DIO26_DDR DDRD
00148
00149 #define DIO27_PIN PIND3
00150 #define DIO27_RPORT PIND
00151 #define DIO27_WPORT PORTD
00152 #define DIO27_DDR DDRD
00153
00154 #define DIO28_PIN PIND4
00155 #define DIO28_RPORT PIND
00156 #define DIO28_WPORT PORTD
00157 #define DIO28_DDR DDRD
00158
00159 #define DIO29_PIN PIND5
00160 #define DIO29_RPORT PIND
00161 #define DIO29_WPORT PORTD
00162 #define DIO29_DDR DDRD
00163
00164 #define DIO30_PIN PIND6
00165 #define DIO30_RPORT PIND
00166 #define DIO30_WPORT PORTD
00167 #define DIO30_DDR DDRD
00168
00169 #define DIO31_PIN PIND7
00170 #define DIO31_RPORT PIND
00171 #define DIO31_WPORT PORTD
00172 #define DIO31_DDR DDRD
00173
00174
00175 #define DIO32_PIN PINE0
00176 #define DIO32_RPORT PINE
00177 #define DIO32_WPORT PORTE
00178 #define DIO32_DDR DDRE
00179
00180 #define DIO33_PIN PINE1
00181 #define DIO33_RPORT PINE
00182 #define DIO33_WPORT PORTE
00183 #define DIO33_DDR DDRE
00184
00185 #define DIO34_PIN PINE2
00186 #define DIO34_RPORT PINE
00187 #define DIO34_WPORT PORTE
00188 #define DIO34_DDR DDRE
00189
00190 #define DIO35_PIN PINE3
00191 #define DIO35_RPORT PINE
00192 #define DIO35_WPORT PORTE
00193 #define DIO35_DDR DDRE
00194
00195 #define DIO36_PIN PINE4
00196 #define DIO36_RPORT PINE
00197 #define DIO36_WPORT PORTE
00198 #define DIO36_DDR DDRE
00199
00200 #define DIO37_PIN PINE5
00201 #define DIO37_RPORT PINE
00202 #define DIO37_WPORT PORTE
00203 #define DIO37_DDR DDRE
00204
00205 #define DIO38_PIN PINE6
00206 #define DIO38_RPORT PINE
00207 #define DIO38_WPORT PORTE
00208 #define DIO38_DDR DDRE
00209
00210 #define DIO39_PIN PINE7
00211 #define DIO39_RPORT PINE
00212 #define DIO39_WPORT PORTE
00213 #define DIO39_DDR DDRE
00214
00215 #define AIO0_PIN PINF0
00216 #define AIO0_RPORT PINF
00217 #define AIO0_WPORT PORTF
00218 #define AIO0_DDR DDRF
00219
00220 #define AIO1_PIN PINF1
00221 #define AIO1_RPORT PINF
00222 #define AIO1_WPORT PORTF
00223 #define AIO1_DDR DDRF
00224
00225 #define AIO2_PIN PINF2
00226 #define AIO2_RPORT PINF
00227 #define AIO2_WPORT PORTF
00228 #define AIO2_DDR DDRF
00229
00230 #define AIO3_PIN PINF3
00231 #define AIO3_RPORT PINF
00232 #define AIO3_WPORT PORTF
00233 #define AIO3_DDR DDRF
00234
00235 #define AIO4_PIN PINF4
00236 #define AIO4_RPORT PINF
00237 #define AIO4_WPORT PORTF
00238 #define AIO4_DDR DDRF
00239
00240 #define AIO5_PIN PINF5
00241 #define AIO5_RPORT PINF
00242 #define AIO5_WPORT PORTF
00243 #define AIO5_DDR DDRF
00244
00245 #define AIO6_PIN PINF6
00246 #define AIO6_RPORT PINF
00247 #define AIO6_WPORT PORTF
00248 #define AIO6_DDR DDRF
00249
00250 #define AIO7_PIN PINF7
00251 #define AIO7_RPORT PINF
00252 #define AIO7_WPORT PORTF
00253 #define AIO7_DDR DDRF
00254
00255 #define DIO40_PIN PINF0
00256 #define DIO40_RPORT PINF
00257 #define DIO40_WPORT PORTF
00258 #define DIO40_DDR DDRF
00259
00260 #define DIO41_PIN PINF1
00261 #define DIO41_RPORT PINF
00262 #define DIO41_WPORT PORTF
00263 #define DIO41_DDR DDRF
00264
00265 #define DIO42_PIN PINF2
00266 #define DIO42_RPORT PINF
00267 #define DIO42_WPORT PORTF
00268 #define DIO42_DDR DDRF
00269
00270 #define DIO43_PIN PINF3
00271 #define DIO43_RPORT PINF
00272 #define DIO43_WPORT PORTF
00273 #define DIO43_DDR DDRF
00274
00275 #define DIO44_PIN PINF4
00276 #define DIO44_RPORT PINF
00277 #define DIO44_WPORT PORTF
00278 #define DIO44_DDR DDRF
00279
00280 #define DIO45_PIN PINF5
00281 #define DIO45_RPORT PINF
00282 #define DIO45_WPORT PORTF
00283 #define DIO45_DDR DDRF
00284
00285 #define DIO46_PIN PINF6
00286 #define DIO46_RPORT PINF
00287 #define DIO46_WPORT PORTF
00288 #define DIO46_DDR DDRF
00289
00290 #define DIO47_PIN PINF7
00291 #define DIO47_RPORT PINF
00292 #define DIO47_WPORT PORTF
00293 #define DIO47_DDR DDRF
00294
00295
00296
00297 #define PA0_PIN PINA0
00298 #define PA0_RPORT PINA
00299 #define PA0_WPORT PORTA
00300 #define PA0_DDR DDRA
00301 #define PA1_PIN PINA1
00302 #define PA1_RPORT PINA
00303 #define PA1_WPORT PORTA
00304 #define PA1_DDR DDRA
00305 #define PA2_PIN PINA2
00306 #define PA2_RPORT PINA
00307 #define PA2_WPORT PORTA
00308 #define PA2_DDR DDRA
00309 #define PA3_PIN PINA3
00310 #define PA3_RPORT PINA
00311 #define PA3_WPORT PORTA
00312 #define PA3_DDR DDRA
00313 #define PA4_PIN PINA4
00314 #define PA4_RPORT PINA
00315 #define PA4_WPORT PORTA
00316 #define PA4_DDR DDRA
00317 #define PA5_PIN PINA5
00318 #define PA5_RPORT PINA
00319 #define PA5_WPORT PORTA
00320 #define PA5_DDR DDRA
00321 #define PA6_PIN PINA6
00322 #define PA6_RPORT PINA
00323 #define PA6_WPORT PORTA
00324 #define PA6_DDR DDRA
00325 #define PA7_PIN PINA7
00326 #define PA7_RPORT PINA
00327 #define PA7_WPORT PORTA
00328 #define PA7_DDR DDRA
00329
00330 #define PB0_PIN PINB0
00331 #define PB0_RPORT PINB
00332 #define PB0_WPORT PORTB
00333 #define PB0_DDR DDRB
00334 #define PB1_PIN PINB1
00335 #define PB1_RPORT PINB
00336 #define PB1_WPORT PORTB
00337 #define PB1_DDR DDRB
00338 #define PB2_PIN PINB2
00339 #define PB2_RPORT PINB
00340 #define PB2_WPORT PORTB
00341 #define PB2_DDR DDRB
00342 #define PB3_PIN PINB3
00343 #define PB3_RPORT PINB
00344 #define PB3_WPORT PORTB
00345 #define PB3_DDR DDRB
00346 #define PB4_PIN PINB4
00347 #define PB4_RPORT PINB
00348 #define PB4_WPORT PORTB
00349 #define PB4_DDR DDRB
00350 #define PB5_PIN PINB5
00351 #define PB5_RPORT PINB
00352 #define PB5_WPORT PORTB
00353 #define PB5_DDR DDRB
00354 #define PB6_PIN PINB6
00355 #define PB6_RPORT PINB
00356 #define PB6_WPORT PORTB
00357 #define PB6_DDR DDRB
00358 #define PB7_PIN PINB7
00359 #define PB7_RPORT PINB
00360 #define PB7_WPORT PORTB
00361 #define PB7_DDR DDRB
00362
00363 #define PC0_PIN PINC0
00364 #define PC0_RPORT PINC
00365 #define PC0_WPORT PORTC
00366 #define PC0_DDR DDRC
00367 #define PC1_PIN PINC1
00368 #define PC1_RPORT PINC
00369 #define PC1_WPORT PORTC
00370 #define PC1_DDR DDRC
00371 #define PC2_PIN PINC2
00372 #define PC2_RPORT PINC
00373 #define PC2_WPORT PORTC
00374 #define PC2_DDR DDRC
00375 #define PC3_PIN PINC3
00376 #define PC3_RPORT PINC
00377 #define PC3_WPORT PORTC
00378 #define PC3_DDR DDRC
00379 #define PC4_PIN PINC4
00380 #define PC4_RPORT PINC
00381 #define PC4_WPORT PORTC
00382 #define PC4_DDR DDRC
00383 #define PC5_PIN PINC5
00384 #define PC5_RPORT PINC
00385 #define PC5_WPORT PORTC
00386 #define PC5_DDR DDRC
00387 #define PC6_PIN PINC6
00388 #define PC6_RPORT PINC
00389 #define PC6_WPORT PORTC
00390 #define PC6_DDR DDRC
00391 #define PC7_PIN PINC7
00392 #define PC7_RPORT PINC
00393 #define PC7_WPORT PORTC
00394 #define PC7_DDR DDRC
00395
00396 #define PD0_PIN PIND0
00397 #define PD0_RPORT PIND
00398 #define PD0_WPORT PORTD
00399 #define PD0_DDR DDRD
00400 #define PD1_PIN PIND1
00401 #define PD1_RPORT PIND
00402 #define PD1_WPORT PORTD
00403 #define PD1_DDR DDRD
00404 #define PD2_PIN PIND2
00405 #define PD2_RPORT PIND
00406 #define PD2_WPORT PORTD
00407 #define PD2_DDR DDRD
00408 #define PD3_PIN PIND3
00409 #define PD3_RPORT PIND
00410 #define PD3_WPORT PORTD
00411 #define PD3_DDR DDRD
00412 #define PD4_PIN PIND4
00413 #define PD4_RPORT PIND
00414 #define PD4_WPORT PORTD
00415 #define PD4_DDR DDRD
00416 #define PD5_PIN PIND5
00417 #define PD5_RPORT PIND
00418 #define PD5_WPORT PORTD
00419 #define PD5_DDR DDRD
00420 #define PD6_PIN PIND6
00421 #define PD6_RPORT PIND
00422 #define PD6_WPORT PORTD
00423 #define PD6_DDR DDRD
00424 #define PD7_PIN PIND7
00425 #define PD7_RPORT PIND
00426 #define PD7_WPORT PORTD
00427 #define PD7_DDR DDRD
00428
00429 #define PE0_PIN PINE0
00430 #define PE0_RPORT PINE
00431 #define PE0_WPORT PORTE
00432 #define PE0_DDR DDRE
00433 #define PE1_PIN PINE1
00434 #define PE1_RPORT PINE
00435 #define PE1_WPORT PORTE
00436 #define PE1_DDR DDRE
00437 #define PE2_PIN PINE2
00438 #define PE2_RPORT PINE
00439 #define PE2_WPORT PORTE
00440 #define PE2_DDR DDRE
00441 #define PE3_PIN PINE3
00442 #define PE3_RPORT PINE
00443 #define PE3_WPORT PORTE
00444 #define PE3_DDR DDRE
00445 #define PE4_PIN PINE4
00446 #define PE4_RPORT PINE
00447 #define PE4_WPORT PORTE
00448 #define PE4_DDR DDRE
00449 #define PE5_PIN PINE5
00450 #define PE5_RPORT PINE
00451 #define PE5_WPORT PORTE
00452 #define PE5_DDR DDRE
00453 #define PE6_PIN PINE6
00454 #define PE6_RPORT PINE
00455 #define PE6_WPORT PORTE
00456 #define PE6_DDR DDRE
00457 #define PE7_PIN PINE7
00458 #define PE7_RPORT PINE
00459 #define PE7_WPORT PORTE
00460 #define PE7_DDR DDRE
00461
00462 #define PF0_PIN PINF0
00463 #define PF0_RPORT PINF
00464 #define PF0_WPORT PORTF
00465 #define PF0_DDR DDRF
00466 #define PF1_PIN PINF1
00467 #define PF1_RPORT PINF
00468 #define PF1_WPORT PORTF
00469 #define PF1_DDR DDRF
00470 #define PF2_PIN PINF2
00471 #define PF2_RPORT PINF
00472 #define PF2_WPORT PORTF
00473 #define PF2_DDR DDRF
00474 #define PF3_PIN PINF3
00475 #define PF3_RPORT PINF
00476 #define PF3_WPORT PORTF
00477 #define PF3_DDR DDRF
00478 #define PF4_PIN PINF4
00479 #define PF4_RPORT PINF
00480 #define PF4_WPORT PORTF
00481 #define PF4_DDR DDRF
00482 #define PF5_PIN PINF5
00483 #define PF5_RPORT PINF
00484 #define PF5_WPORT PORTF
00485 #define PF5_DDR DDRF
00486 #define PF6_PIN PINF6
00487 #define PF6_RPORT PINF
00488 #define PF6_WPORT PORTF
00489 #define PF6_DDR DDRF
00490 #define PF7_PIN PINF7
00491 #define PF7_RPORT PINF
00492 #define PF7_WPORT PORTF
00493 #define PF7_DDR DDRF