|
@@ -1928,654 +1928,7 @@ pins
|
1928
|
1928
|
|
1929
|
1929
|
#endif
|
1930
|
1930
|
|
1931
|
|
-#if defined (__AVR_AT90USB646__)
|
1932
|
|
-// SPI
|
1933
|
|
-#define SCK DIO9
|
1934
|
|
-#define MISO DIO11
|
1935
|
|
-#define MOSI DIO10
|
1936
|
|
-#define SS DIO8
|
1937
|
|
-
|
1938
|
|
-// change for your board
|
1939
|
|
-#define DEBUG_LED DIO31 /* led D5 red */
|
1940
|
|
-
|
1941
|
|
-/*
|
1942
|
|
-pins
|
1943
|
|
-*/
|
1944
|
|
-#define DIO0_PIN PINA0
|
1945
|
|
-#define DIO0_RPORT PINA
|
1946
|
|
-#define DIO0_WPORT PORTA
|
1947
|
|
-#define DIO0_PWM NULL
|
1948
|
|
-#define DIO0_DDR DDRA
|
1949
|
|
-
|
1950
|
|
-#define DIO1_PIN PINA1
|
1951
|
|
-#define DIO1_RPORT PINA
|
1952
|
|
-#define DIO1_WPORT PORTA
|
1953
|
|
-#define DIO1_PWM NULL
|
1954
|
|
-#define DIO1_DDR DDRA
|
1955
|
|
-
|
1956
|
|
-#define DIO2_PIN PINA2
|
1957
|
|
-#define DIO2_RPORT PINA
|
1958
|
|
-#define DIO2_WPORT PORTA
|
1959
|
|
-#define DIO2_PWM NULL
|
1960
|
|
-#define DIO2_DDR DDRA
|
1961
|
|
-
|
1962
|
|
-#define DIO3_PIN PINA3
|
1963
|
|
-#define DIO3_RPORT PINA
|
1964
|
|
-#define DIO3_WPORT PORTA
|
1965
|
|
-#define DIO3_PWM NULL
|
1966
|
|
-#define DIO3_DDR DDRA
|
1967
|
|
-
|
1968
|
|
-#define DIO4_PIN PINA4
|
1969
|
|
-#define DIO4_RPORT PINA
|
1970
|
|
-#define DIO4_WPORT PORTA
|
1971
|
|
-#define DIO4_PWM NULL
|
1972
|
|
-#define DIO4_DDR DDRA
|
1973
|
|
-
|
1974
|
|
-#define DIO5_PIN PINA5
|
1975
|
|
-#define DIO5_RPORT PINA
|
1976
|
|
-#define DIO5_WPORT PORTA
|
1977
|
|
-#define DIO5_PWM NULL
|
1978
|
|
-#define DIO5_DDR DDRA
|
1979
|
|
-
|
1980
|
|
-#define DIO6_PIN PINA6
|
1981
|
|
-#define DIO6_RPORT PINA
|
1982
|
|
-#define DIO6_WPORT PORTA
|
1983
|
|
-#define DIO6_PWM NULL
|
1984
|
|
-#define DIO6_DDR DDRA
|
1985
|
|
-
|
1986
|
|
-#define DIO7_PIN PINA7
|
1987
|
|
-#define DIO7_RPORT PINA
|
1988
|
|
-#define DIO7_WPORT PORTA
|
1989
|
|
-#define DIO7_PWM NULL
|
1990
|
|
-#define DIO7_DDR DDRA
|
1991
|
|
-
|
1992
|
|
-#define DIO8_PIN PINB0
|
1993
|
|
-#define DIO8_RPORT PINB
|
1994
|
|
-#define DIO8_WPORT PORTB
|
1995
|
|
-#define DIO8_PWM NULL
|
1996
|
|
-#define DIO8_DDR DDRB
|
1997
|
|
-
|
1998
|
|
-#define DIO9_PIN PINB1
|
1999
|
|
-#define DIO9_RPORT PINB
|
2000
|
|
-#define DIO9_WPORT PORTB
|
2001
|
|
-#define DIO9_PWM NULL
|
2002
|
|
-#define DIO9_DDR DDRB
|
2003
|
|
-
|
2004
|
|
-#define DIO10_PIN PINB2
|
2005
|
|
-#define DIO10_RPORT PINB
|
2006
|
|
-#define DIO10_WPORT PORTB
|
2007
|
|
-#define DIO10_PWM NULL
|
2008
|
|
-#define DIO10_DDR DDRB
|
2009
|
|
-
|
2010
|
|
-#define DIO11_PIN PINB3
|
2011
|
|
-#define DIO11_RPORT PINB
|
2012
|
|
-#define DIO11_WPORT PORTB
|
2013
|
|
-#define DIO11_PWM NULL
|
2014
|
|
-#define DIO11_DDR DDRB
|
2015
|
|
-
|
2016
|
|
-#define DIO12_PIN PINB4
|
2017
|
|
-#define DIO12_RPORT PINB
|
2018
|
|
-#define DIO12_WPORT PORTB
|
2019
|
|
-#define DIO12_PWM NULL
|
2020
|
|
-#define DIO12_DDR DDRB
|
2021
|
|
-
|
2022
|
|
-#define DIO13_PIN PINB5
|
2023
|
|
-#define DIO13_RPORT PINB
|
2024
|
|
-#define DIO13_WPORT PORTB
|
2025
|
|
-#define DIO13_PWM NULL
|
2026
|
|
-#define DIO13_DDR DDRB
|
2027
|
|
-
|
2028
|
|
-#define DIO14_PIN PINB6
|
2029
|
|
-#define DIO14_RPORT PINB
|
2030
|
|
-#define DIO14_WPORT PORTB
|
2031
|
|
-#define DIO14_PWM NULL
|
2032
|
|
-#define DIO14_DDR DDRB
|
2033
|
|
-
|
2034
|
|
-#define DIO15_PIN PINB7
|
2035
|
|
-#define DIO15_RPORT PINB
|
2036
|
|
-#define DIO15_WPORT PORTB
|
2037
|
|
-#define DIO15_PWM NULL
|
2038
|
|
-#define DIO15_DDR DDRB
|
2039
|
|
-
|
2040
|
|
-#define DIO16_PIN PINC0
|
2041
|
|
-#define DIO16_RPORT PINC
|
2042
|
|
-#define DIO16_WPORT PORTC
|
2043
|
|
-#define DIO16_PWM NULL
|
2044
|
|
-#define DIO16_DDR DDRC
|
2045
|
|
-
|
2046
|
|
-#define DIO17_PIN PINC1
|
2047
|
|
-#define DIO17_RPORT PINC
|
2048
|
|
-#define DIO17_WPORT PORTC
|
2049
|
|
-#define DIO17_PWM NULL
|
2050
|
|
-#define DIO17_DDR DDRC
|
2051
|
|
-
|
2052
|
|
-#define DIO18_PIN PINC2
|
2053
|
|
-#define DIO18_RPORT PINC
|
2054
|
|
-#define DIO18_WPORT PORTC
|
2055
|
|
-#define DIO18_PWM NULL
|
2056
|
|
-#define DIO18_DDR DDRC
|
2057
|
|
-
|
2058
|
|
-#define DIO19_PIN PINC3
|
2059
|
|
-#define DIO19_RPORT PINC
|
2060
|
|
-#define DIO19_WPORT PORTC
|
2061
|
|
-#define DIO19_PWM NULL
|
2062
|
|
-#define DIO19_DDR DDRC
|
2063
|
|
-
|
2064
|
|
-#define DIO20_PIN PINC4
|
2065
|
|
-#define DIO20_RPORT PINC
|
2066
|
|
-#define DIO20_WPORT PORTC
|
2067
|
|
-#define DIO20_PWM NULL
|
2068
|
|
-#define DIO20_DDR DDRC
|
2069
|
|
-
|
2070
|
|
-#define DIO21_PIN PINC5
|
2071
|
|
-#define DIO21_RPORT PINC
|
2072
|
|
-#define DIO21_WPORT PORTC
|
2073
|
|
-#define DIO21_PWM NULL
|
2074
|
|
-#define DIO21_DDR DDRC
|
2075
|
|
-
|
2076
|
|
-#define DIO22_PIN PINC6
|
2077
|
|
-#define DIO22_RPORT PINC
|
2078
|
|
-#define DIO22_WPORT PORTC
|
2079
|
|
-#define DIO22_PWM NULL
|
2080
|
|
-#define DIO22_DDR DDRC
|
2081
|
|
-
|
2082
|
|
-#define DIO23_PIN PINC7
|
2083
|
|
-#define DIO23_RPORT PINC
|
2084
|
|
-#define DIO23_WPORT PORTC
|
2085
|
|
-#define DIO23_PWM NULL
|
2086
|
|
-#define DIO23_DDR DDRC
|
2087
|
|
-
|
2088
|
|
-#define DIO24_PIN PIND0
|
2089
|
|
-#define DIO24_RPORT PIND
|
2090
|
|
-#define DIO24_WPORT PORTD
|
2091
|
|
-#define DIO24_PWM NULL
|
2092
|
|
-#define DIO24_DDR DDRD
|
2093
|
|
-
|
2094
|
|
-#define DIO25_PIN PIND1
|
2095
|
|
-#define DIO25_RPORT PIND
|
2096
|
|
-#define DIO25_WPORT PORTD
|
2097
|
|
-#define DIO25_PWM NULL
|
2098
|
|
-#define DIO25_DDR DDRD
|
2099
|
|
-
|
2100
|
|
-#define DIO26_PIN PIND2
|
2101
|
|
-#define DIO26_RPORT PIND
|
2102
|
|
-#define DIO26_WPORT PORTD
|
2103
|
|
-#define DIO26_PWM NULL
|
2104
|
|
-#define DIO26_DDR DDRD
|
2105
|
|
-
|
2106
|
|
-#define DIO27_PIN PIND3
|
2107
|
|
-#define DIO27_RPORT PIND
|
2108
|
|
-#define DIO27_WPORT PORTD
|
2109
|
|
-#define DIO27_PWM NULL
|
2110
|
|
-#define DIO27_DDR DDRD
|
2111
|
|
-
|
2112
|
|
-#define DIO28_PIN PIND4
|
2113
|
|
-#define DIO28_RPORT PIND
|
2114
|
|
-#define DIO28_WPORT PORTD
|
2115
|
|
-#define DIO28_PWM NULL
|
2116
|
|
-#define DIO28_DDR DDRD
|
2117
|
|
-
|
2118
|
|
-#define DIO29_PIN PIND5
|
2119
|
|
-#define DIO29_RPORT PIND
|
2120
|
|
-#define DIO29_WPORT PORTD
|
2121
|
|
-#define DIO29_PWM NULL
|
2122
|
|
-#define DIO29_DDR DDRD
|
2123
|
|
-
|
2124
|
|
-#define DIO30_PIN PIND6
|
2125
|
|
-#define DIO30_RPORT PIND
|
2126
|
|
-#define DIO30_WPORT PORTD
|
2127
|
|
-#define DIO30_PWM NULL
|
2128
|
|
-#define DIO30_DDR DDRD
|
2129
|
|
-
|
2130
|
|
-#define DIO31_PIN PIND7
|
2131
|
|
-#define DIO31_RPORT PIND
|
2132
|
|
-#define DIO31_WPORT PORTD
|
2133
|
|
-#define DIO31_PWM NULL
|
2134
|
|
-#define DIO31_DDR DDRD
|
2135
|
|
-
|
2136
|
|
-
|
2137
|
|
-#define DIO32_PIN PINE0
|
2138
|
|
-#define DIO32_RPORT PINE
|
2139
|
|
-#define DIO32_WPORT PORTE
|
2140
|
|
-#define DIO32_PWM NULL
|
2141
|
|
-#define DIO32_DDR DDRE
|
2142
|
|
-
|
2143
|
|
-#define DIO33_PIN PINE1
|
2144
|
|
-#define DIO33_RPORT PINE
|
2145
|
|
-#define DIO33_WPORT PORTE
|
2146
|
|
-#define DIO33_PWM NULL
|
2147
|
|
-#define DIO33_DDR DDRE
|
2148
|
|
-
|
2149
|
|
-#define DIO34_PIN PINE2
|
2150
|
|
-#define DIO34_RPORT PINE
|
2151
|
|
-#define DIO34_WPORT PORTE
|
2152
|
|
-#define DIO34_PWM NULL
|
2153
|
|
-#define DIO34_DDR DDRE
|
2154
|
|
-
|
2155
|
|
-#define DIO35_PIN PINE3
|
2156
|
|
-#define DIO35_RPORT PINE
|
2157
|
|
-#define DIO35_WPORT PORTE
|
2158
|
|
-#define DIO35_PWM NULL
|
2159
|
|
-#define DIO35_DDR DDRE
|
2160
|
|
-
|
2161
|
|
-#define DIO36_PIN PINE4
|
2162
|
|
-#define DIO36_RPORT PINE
|
2163
|
|
-#define DIO36_WPORT PORTE
|
2164
|
|
-#define DIO36_PWM NULL
|
2165
|
|
-#define DIO36_DDR DDRE
|
2166
|
|
-
|
2167
|
|
-#define DIO37_PIN PINE5
|
2168
|
|
-#define DIO37_RPORT PINE
|
2169
|
|
-#define DIO37_WPORT PORTE
|
2170
|
|
-#define DIO37_PWM NULL
|
2171
|
|
-#define DIO37_DDR DDRE
|
2172
|
|
-
|
2173
|
|
-#define DIO38_PIN PINE6
|
2174
|
|
-#define DIO38_RPORT PINE
|
2175
|
|
-#define DIO38_WPORT PORTE
|
2176
|
|
-#define DIO38_PWM NULL
|
2177
|
|
-#define DIO38_DDR DDRE
|
2178
|
|
-
|
2179
|
|
-#define DIO39_PIN PINE7
|
2180
|
|
-#define DIO39_RPORT PINE
|
2181
|
|
-#define DIO39_WPORT PORTE
|
2182
|
|
-#define DIO39_PWM NULL
|
2183
|
|
-#define DIO39_DDR DDRE
|
2184
|
|
-
|
2185
|
|
-#define AIO0_PIN PINF0
|
2186
|
|
-#define AIO0_RPORT PINF
|
2187
|
|
-#define AIO0_WPORT PORTF
|
2188
|
|
-#define AIO0_PWM NULL
|
2189
|
|
-#define AIO0_DDR DDRF
|
2190
|
|
-
|
2191
|
|
-#define AIO1_PIN PINF1
|
2192
|
|
-#define AIO1_RPORT PINF
|
2193
|
|
-#define AIO1_WPORT PORTF
|
2194
|
|
-#define AIO1_PWM NULL
|
2195
|
|
-#define AIO1_DDR DDRF
|
2196
|
|
-
|
2197
|
|
-#define AIO2_PIN PINF2
|
2198
|
|
-#define AIO2_RPORT PINF
|
2199
|
|
-#define AIO2_WPORT PORTF
|
2200
|
|
-#define AIO2_PWM NULL
|
2201
|
|
-#define AIO2_DDR DDRF
|
2202
|
|
-
|
2203
|
|
-#define AIO3_PIN PINF3
|
2204
|
|
-#define AIO3_RPORT PINF
|
2205
|
|
-#define AIO3_WPORT PORTF
|
2206
|
|
-#define AIO3_PWM NULL
|
2207
|
|
-#define AIO3_DDR DDRF
|
2208
|
|
-
|
2209
|
|
-#define AIO4_PIN PINF4
|
2210
|
|
-#define AIO4_RPORT PINF
|
2211
|
|
-#define AIO4_WPORT PORTF
|
2212
|
|
-#define AIO4_PWM NULL
|
2213
|
|
-#define AIO4_DDR DDRF
|
2214
|
|
-
|
2215
|
|
-#define AIO5_PIN PINF5
|
2216
|
|
-#define AIO5_RPORT PINF
|
2217
|
|
-#define AIO5_WPORT PORTF
|
2218
|
|
-#define AIO5_PWM NULL
|
2219
|
|
-#define AIO5_DDR DDRF
|
2220
|
|
-
|
2221
|
|
-#define AIO6_PIN PINF6
|
2222
|
|
-#define AIO6_RPORT PINF
|
2223
|
|
-#define AIO6_WPORT PORTF
|
2224
|
|
-#define AIO6_PWM NULL
|
2225
|
|
-#define AIO6_DDR DDRF
|
2226
|
|
-
|
2227
|
|
-#define AIO7_PIN PINF7
|
2228
|
|
-#define AIO7_RPORT PINF
|
2229
|
|
-#define AIO7_WPORT PORTF
|
2230
|
|
-#define AIO7_PWM NULL
|
2231
|
|
-#define AIO7_DDR DDRF
|
2232
|
|
-
|
2233
|
|
-#define DIO40_PIN PINF0
|
2234
|
|
-#define DIO40_RPORT PINF
|
2235
|
|
-#define DIO40_WPORT PORTF
|
2236
|
|
-#define DIO40_PWM NULL
|
2237
|
|
-#define DIO40_DDR DDRF
|
2238
|
|
-
|
2239
|
|
-#define DIO41_PIN PINF1
|
2240
|
|
-#define DIO41_RPORT PINF
|
2241
|
|
-#define DIO41_WPORT PORTF
|
2242
|
|
-#define DIO41_PWM NULL
|
2243
|
|
-#define DIO41_DDR DDRF
|
2244
|
|
-
|
2245
|
|
-#define DIO42_PIN PINF2
|
2246
|
|
-#define DIO42_RPORT PINF
|
2247
|
|
-#define DIO42_WPORT PORTF
|
2248
|
|
-#define DIO42_PWM NULL
|
2249
|
|
-#define DIO42_DDR DDRF
|
2250
|
|
-
|
2251
|
|
-#define DIO43_PIN PINF3
|
2252
|
|
-#define DIO43_RPORT PINF
|
2253
|
|
-#define DIO43_WPORT PORTF
|
2254
|
|
-#define DIO43_PWM NULL
|
2255
|
|
-#define DIO43_DDR DDRF
|
2256
|
|
-
|
2257
|
|
-#define DIO44_PIN PINF4
|
2258
|
|
-#define DIO44_RPORT PINF
|
2259
|
|
-#define DIO44_WPORT PORTF
|
2260
|
|
-#define DIO44_PWM NULL
|
2261
|
|
-#define DIO44_DDR DDRF
|
2262
|
|
-
|
2263
|
|
-#define DIO45_PIN PINF5
|
2264
|
|
-#define DIO45_RPORT PINF
|
2265
|
|
-#define DIO45_WPORT PORTF
|
2266
|
|
-#define DIO45_PWM NULL
|
2267
|
|
-#define DIO45_DDR DDRF
|
2268
|
|
-
|
2269
|
|
-#define DIO46_PIN PINF6
|
2270
|
|
-#define DIO46_RPORT PINF
|
2271
|
|
-#define DIO46_WPORT PORTF
|
2272
|
|
-#define DIO46_PWM NULL
|
2273
|
|
-#define DIO46_DDR DDRF
|
2274
|
|
-
|
2275
|
|
-#define DIO47_PIN PINF7
|
2276
|
|
-#define DIO47_RPORT PINF
|
2277
|
|
-#define DIO47_WPORT PORTF
|
2278
|
|
-#define DIO47_PWM NULL
|
2279
|
|
-#define DIO47_DDR DDRF
|
2280
|
|
-
|
2281
|
|
-
|
2282
|
|
-
|
2283
|
|
-#undef PA0
|
2284
|
|
-#define PA0_PIN PINA0
|
2285
|
|
-#define PA0_RPORT PINA
|
2286
|
|
-#define PA0_WPORT PORTA
|
2287
|
|
-#define PA0_PWM NULL
|
2288
|
|
-#define PA0_DDR DDRA
|
2289
|
|
-#undef PA1
|
2290
|
|
-#define PA1_PIN PINA1
|
2291
|
|
-#define PA1_RPORT PINA
|
2292
|
|
-#define PA1_WPORT PORTA
|
2293
|
|
-#define PA1_PWM NULL
|
2294
|
|
-#define PA1_DDR DDRA
|
2295
|
|
-#undef PA2
|
2296
|
|
-#define PA2_PIN PINA2
|
2297
|
|
-#define PA2_RPORT PINA
|
2298
|
|
-#define PA2_WPORT PORTA
|
2299
|
|
-#define PA2_PWM NULL
|
2300
|
|
-#define PA2_DDR DDRA
|
2301
|
|
-#undef PA3
|
2302
|
|
-#define PA3_PIN PINA3
|
2303
|
|
-#define PA3_RPORT PINA
|
2304
|
|
-#define PA3_WPORT PORTA
|
2305
|
|
-#define PA3_PWM NULL
|
2306
|
|
-#define PA3_DDR DDRA
|
2307
|
|
-#undef PA4
|
2308
|
|
-#define PA4_PIN PINA4
|
2309
|
|
-#define PA4_RPORT PINA
|
2310
|
|
-#define PA4_WPORT PORTA
|
2311
|
|
-#define PA4_PWM NULL
|
2312
|
|
-#define PA4_DDR DDRA
|
2313
|
|
-#undef PA5
|
2314
|
|
-#define PA5_PIN PINA5
|
2315
|
|
-#define PA5_RPORT PINA
|
2316
|
|
-#define PA5_WPORT PORTA
|
2317
|
|
-#define PA5_PWM NULL
|
2318
|
|
-#define PA5_DDR DDRA
|
2319
|
|
-#undef PA6
|
2320
|
|
-#define PA6_PIN PINA6
|
2321
|
|
-#define PA6_RPORT PINA
|
2322
|
|
-#define PA6_WPORT PORTA
|
2323
|
|
-#define PA6_PWM NULL
|
2324
|
|
-#define PA6_DDR DDRA
|
2325
|
|
-#undef PA7
|
2326
|
|
-#define PA7_PIN PINA7
|
2327
|
|
-#define PA7_RPORT PINA
|
2328
|
|
-#define PA7_WPORT PORTA
|
2329
|
|
-#define PA7_PWM NULL
|
2330
|
|
-#define PA7_DDR DDRA
|
2331
|
|
-
|
2332
|
|
-#undef PB0
|
2333
|
|
-#define PB0_PIN PINB0
|
2334
|
|
-#define PB0_RPORT PINB
|
2335
|
|
-#define PB0_WPORT PORTB
|
2336
|
|
-#define PB0_PWM NULL
|
2337
|
|
-#define PB0_DDR DDRB
|
2338
|
|
-#undef PB1
|
2339
|
|
-#define PB1_PIN PINB1
|
2340
|
|
-#define PB1_RPORT PINB
|
2341
|
|
-#define PB1_WPORT PORTB
|
2342
|
|
-#define PB1_PWM NULL
|
2343
|
|
-#define PB1_DDR DDRB
|
2344
|
|
-#undef PB2
|
2345
|
|
-#define PB2_PIN PINB2
|
2346
|
|
-#define PB2_RPORT PINB
|
2347
|
|
-#define PB2_WPORT PORTB
|
2348
|
|
-#define PB2_PWM NULL
|
2349
|
|
-#define PB2_DDR DDRB
|
2350
|
|
-#undef PB3
|
2351
|
|
-#define PB3_PIN PINB3
|
2352
|
|
-#define PB3_RPORT PINB
|
2353
|
|
-#define PB3_WPORT PORTB
|
2354
|
|
-#define PB3_PWM NULL
|
2355
|
|
-#define PB3_DDR DDRB
|
2356
|
|
-#undef PB4
|
2357
|
|
-#define PB4_PIN PINB4
|
2358
|
|
-#define PB4_RPORT PINB
|
2359
|
|
-#define PB4_WPORT PORTB
|
2360
|
|
-#define PB4_PWM NULL
|
2361
|
|
-#define PB4_DDR DDRB
|
2362
|
|
-#undef PB5
|
2363
|
|
-#define PB5_PIN PINB5
|
2364
|
|
-#define PB5_RPORT PINB
|
2365
|
|
-#define PB5_WPORT PORTB
|
2366
|
|
-#define PB5_PWM NULL
|
2367
|
|
-#define PB5_DDR DDRB
|
2368
|
|
-#undef PB6
|
2369
|
|
-#define PB6_PIN PINB6
|
2370
|
|
-#define PB6_RPORT PINB
|
2371
|
|
-#define PB6_WPORT PORTB
|
2372
|
|
-#define PB6_PWM NULL
|
2373
|
|
-#define PB6_DDR DDRB
|
2374
|
|
-#undef PB7
|
2375
|
|
-#define PB7_PIN PINB7
|
2376
|
|
-#define PB7_RPORT PINB
|
2377
|
|
-#define PB7_WPORT PORTB
|
2378
|
|
-#define PB7_PWM NULL
|
2379
|
|
-#define PB7_DDR DDRB
|
2380
|
|
-
|
2381
|
|
-#undef PC0
|
2382
|
|
-#define PC0_PIN PINC0
|
2383
|
|
-#define PC0_RPORT PINC
|
2384
|
|
-#define PC0_WPORT PORTC
|
2385
|
|
-#define PC0_PWM NULL
|
2386
|
|
-#define PC0_DDR DDRC
|
2387
|
|
-#undef PC1
|
2388
|
|
-#define PC1_PIN PINC1
|
2389
|
|
-#define PC1_RPORT PINC
|
2390
|
|
-#define PC1_WPORT PORTC
|
2391
|
|
-#define PC1_PWM NULL
|
2392
|
|
-#define PC1_DDR DDRC
|
2393
|
|
-#undef PC2
|
2394
|
|
-#define PC2_PIN PINC2
|
2395
|
|
-#define PC2_RPORT PINC
|
2396
|
|
-#define PC2_WPORT PORTC
|
2397
|
|
-#define PC2_PWM NULL
|
2398
|
|
-#define PC2_DDR DDRC
|
2399
|
|
-#undef PC3
|
2400
|
|
-#define PC3_PIN PINC3
|
2401
|
|
-#define PC3_RPORT PINC
|
2402
|
|
-#define PC3_WPORT PORTC
|
2403
|
|
-#define PC3_PWM NULL
|
2404
|
|
-#define PC3_DDR DDRC
|
2405
|
|
-#undef PC4
|
2406
|
|
-#define PC4_PIN PINC4
|
2407
|
|
-#define PC4_RPORT PINC
|
2408
|
|
-#define PC4_WPORT PORTC
|
2409
|
|
-#define PC4_PWM NULL
|
2410
|
|
-#define PC4_DDR DDRC
|
2411
|
|
-#undef PC5
|
2412
|
|
-#define PC5_PIN PINC5
|
2413
|
|
-#define PC5_RPORT PINC
|
2414
|
|
-#define PC5_WPORT PORTC
|
2415
|
|
-#define PC5_PWM NULL
|
2416
|
|
-#define PC5_DDR DDRC
|
2417
|
|
-#undef PC6
|
2418
|
|
-#define PC6_PIN PINC6
|
2419
|
|
-#define PC6_RPORT PINC
|
2420
|
|
-#define PC6_WPORT PORTC
|
2421
|
|
-#define PC6_PWM NULL
|
2422
|
|
-#define PC6_DDR DDRC
|
2423
|
|
-#undef PC7
|
2424
|
|
-#define PC7_PIN PINC7
|
2425
|
|
-#define PC7_RPORT PINC
|
2426
|
|
-#define PC7_WPORT PORTC
|
2427
|
|
-#define PC7_PWM NULL
|
2428
|
|
-#define PC7_DDR DDRC
|
2429
|
|
-
|
2430
|
|
-#undef PD0
|
2431
|
|
-#define PD0_PIN PIND0
|
2432
|
|
-#define PD0_RPORT PIND
|
2433
|
|
-#define PD0_WPORT PORTD
|
2434
|
|
-#define PD0_PWM NULL
|
2435
|
|
-#define PD0_DDR DDRD
|
2436
|
|
-#undef PD1
|
2437
|
|
-#define PD1_PIN PIND1
|
2438
|
|
-#define PD1_RPORT PIND
|
2439
|
|
-#define PD1_WPORT PORTD
|
2440
|
|
-#define PD1_PWM NULL
|
2441
|
|
-#define PD1_DDR DDRD
|
2442
|
|
-#undef PD2
|
2443
|
|
-#define PD2_PIN PIND2
|
2444
|
|
-#define PD2_RPORT PIND
|
2445
|
|
-#define PD2_WPORT PORTD
|
2446
|
|
-#define PD2_PWM NULL
|
2447
|
|
-#define PD2_DDR DDRD
|
2448
|
|
-#undef PD3
|
2449
|
|
-#define PD3_PIN PIND3
|
2450
|
|
-#define PD3_RPORT PIND
|
2451
|
|
-#define PD3_WPORT PORTD
|
2452
|
|
-#define PD3_PWM NULL
|
2453
|
|
-#define PD3_DDR DDRD
|
2454
|
|
-#undef PD4
|
2455
|
|
-#define PD4_PIN PIND4
|
2456
|
|
-#define PD4_RPORT PIND
|
2457
|
|
-#define PD4_WPORT PORTD
|
2458
|
|
-#define PD4_PWM NULL
|
2459
|
|
-#define PD4_DDR DDRD
|
2460
|
|
-#undef PD5
|
2461
|
|
-#define PD5_PIN PIND5
|
2462
|
|
-#define PD5_RPORT PIND
|
2463
|
|
-#define PD5_WPORT PORTD
|
2464
|
|
-#define PD5_PWM NULL
|
2465
|
|
-#define PD5_DDR DDRD
|
2466
|
|
-#undef PD6
|
2467
|
|
-#define PD6_PIN PIND6
|
2468
|
|
-#define PD6_RPORT PIND
|
2469
|
|
-#define PD6_WPORT PORTD
|
2470
|
|
-#define PD6_PWM NULL
|
2471
|
|
-#define PD6_DDR DDRD
|
2472
|
|
-#undef PD7
|
2473
|
|
-#define PD7_PIN PIND7
|
2474
|
|
-#define PD7_RPORT PIND
|
2475
|
|
-#define PD7_WPORT PORTD
|
2476
|
|
-#define PD7_PWM NULL
|
2477
|
|
-#define PD7_DDR DDRD
|
2478
|
|
-
|
2479
|
|
-#undef PE0
|
2480
|
|
-#define PE0_PIN PINE0
|
2481
|
|
-#define PE0_RPORT PINE
|
2482
|
|
-#define PE0_WPORT PORTE
|
2483
|
|
-#define PE0_PWM NULL
|
2484
|
|
-#define PE0_DDR DDRE
|
2485
|
|
-#undef PE1
|
2486
|
|
-#define PE1_PIN PINE1
|
2487
|
|
-#define PE1_RPORT PINE
|
2488
|
|
-#define PE1_WPORT PORTE
|
2489
|
|
-#define PE1_PWM NULL
|
2490
|
|
-#define PE1_DDR DDRE
|
2491
|
|
-#undef PE2
|
2492
|
|
-#define PE2_PIN PINE2
|
2493
|
|
-#define PE2_RPORT PINE
|
2494
|
|
-#define PE2_WPORT PORTE
|
2495
|
|
-#define PE2_PWM NULL
|
2496
|
|
-#define PE2_DDR DDRE
|
2497
|
|
-#undef PE3
|
2498
|
|
-#define PE3_PIN PINE3
|
2499
|
|
-#define PE3_RPORT PINE
|
2500
|
|
-#define PE3_WPORT PORTE
|
2501
|
|
-#define PE3_PWM NULL
|
2502
|
|
-#define PE3_DDR DDRE
|
2503
|
|
-#undef PE4
|
2504
|
|
-#define PE4_PIN PINE4
|
2505
|
|
-#define PE4_RPORT PINE
|
2506
|
|
-#define PE4_WPORT PORTE
|
2507
|
|
-#define PE4_PWM NULL
|
2508
|
|
-#define PE4_DDR DDRE
|
2509
|
|
-#undef PE5
|
2510
|
|
-#define PE5_PIN PINE5
|
2511
|
|
-#define PE5_RPORT PINE
|
2512
|
|
-#define PE5_WPORT PORTE
|
2513
|
|
-#define PE5_PWM NULL
|
2514
|
|
-#define PE5_DDR DDRE
|
2515
|
|
-#undef PE6
|
2516
|
|
-#define PE6_PIN PINE6
|
2517
|
|
-#define PE6_RPORT PINE
|
2518
|
|
-#define PE6_WPORT PORTE
|
2519
|
|
-#define PE6_PWM NULL
|
2520
|
|
-#define PE6_DDR DDRE
|
2521
|
|
-#undef PE7
|
2522
|
|
-#define PE7_PIN PINE7
|
2523
|
|
-#define PE7_RPORT PINE
|
2524
|
|
-#define PE7_WPORT PORTE
|
2525
|
|
-#define PE7_PWM NULL
|
2526
|
|
-#define PE7_DDR DDRE
|
2527
|
|
-
|
2528
|
|
-#undef PF0
|
2529
|
|
-#define PF0_PIN PINF0
|
2530
|
|
-#define PF0_RPORT PINF
|
2531
|
|
-#define PF0_WPORT PORTF
|
2532
|
|
-#define PF0_PWM NULL
|
2533
|
|
-#define PF0_DDR DDRF
|
2534
|
|
-#undef PF1
|
2535
|
|
-#define PF1_PIN PINF1
|
2536
|
|
-#define PF1_RPORT PINF
|
2537
|
|
-#define PF1_WPORT PORTF
|
2538
|
|
-#define PF1_PWM NULL
|
2539
|
|
-#define PF1_DDR DDRF
|
2540
|
|
-#undef PF2
|
2541
|
|
-#define PF2_PIN PINF2
|
2542
|
|
-#define PF2_RPORT PINF
|
2543
|
|
-#define PF2_WPORT PORTF
|
2544
|
|
-#define PF2_PWM NULL
|
2545
|
|
-#define PF2_DDR DDRF
|
2546
|
|
-#undef PF3
|
2547
|
|
-#define PF3_PIN PINF3
|
2548
|
|
-#define PF3_RPORT PINF
|
2549
|
|
-#define PF3_WPORT PORTF
|
2550
|
|
-#define PF3_PWM NULL
|
2551
|
|
-#define PF3_DDR DDRF
|
2552
|
|
-#undef PF4
|
2553
|
|
-#define PF4_PIN PINF4
|
2554
|
|
-#define PF4_RPORT PINF
|
2555
|
|
-#define PF4_WPORT PORTF
|
2556
|
|
-#define PF4_PWM NULL
|
2557
|
|
-#define PF4_DDR DDRF
|
2558
|
|
-#undef PF5
|
2559
|
|
-#define PF5_PIN PINF5
|
2560
|
|
-#define PF5_RPORT PINF
|
2561
|
|
-#define PF5_WPORT PORTF
|
2562
|
|
-#define PF5_PWM NULL
|
2563
|
|
-#define PF5_DDR DDRF
|
2564
|
|
-#undef PF6
|
2565
|
|
-#define PF6_PIN PINF6
|
2566
|
|
-#define PF6_RPORT PINF
|
2567
|
|
-#define PF6_WPORT PORTF
|
2568
|
|
-#define PF6_PWM NULL
|
2569
|
|
-#define PF6_DDR DDRF
|
2570
|
|
-#undef PF7
|
2571
|
|
-#define PF7_PIN PINF7
|
2572
|
|
-#define PF7_RPORT PINF
|
2573
|
|
-#define PF7_WPORT PORTF
|
2574
|
|
-#define PF7_PWM NULL
|
2575
|
|
-#define PF7_DDR DDRF
|
2576
|
|
-#endif
|
2577
|
|
-
|
2578
|
|
-#if defined (__AVR_AT90USB1287__) || defined (__AVR_AT90USB1286__)
|
|
1931
|
+#if defined (__AVR_AT90USB1287__) || defined (__AVR_AT90USB1286__) || defined (__AVR_AT90USB646__) || defined(__AVR_AT90USB647__)
|
2579
|
1932
|
// SPI
|
2580
|
1933
|
#define SCK DIO9
|
2581
|
1934
|
#define MISO DIO11
|