extruder/arduino_168_328p.h

00001 // UART
00002 #define RXD         DIO0
00003 #define TXD         DIO1
00004 
00005 // SPI
00006 #define SCK         DIO13
00007 #define MISO        DIO12
00008 #define MOSI        DIO11
00009 #define SS          DIO10
00010 
00011 // TWI (I2C)
00012 #define SCL         AIO5
00013 #define SDA         AIO4
00014 
00015 // timers and PWM
00016 #define OC0A        DIO6
00017 #define OC0B        DIO5
00018 #define OC1A        DIO9
00019 #define OC1B        DIO10
00020 #define OC2A        DIO11
00021 #define OC2B        DIO3
00022 
00023 #define DEBUG_LED   AIO5
00024 
00025 /*
00026 pins
00027 */
00028 
00029 #define DIO0_PIN    PIND0
00030 #define DIO0_RPORT  PIND
00031 #define DIO0_WPORT  PORTD
00032 #define DIO0_DDR    DDRD
00033 #define DIO0_PWM    NULL
00034 
00035 #define DIO1_PIN    PIND1
00036 #define DIO1_RPORT  PIND
00037 #define DIO1_WPORT  PORTD
00038 #define DIO1_DDR    DDRD
00039 #define DIO1_PWM    NULL
00040 
00041 #define DIO2_PIN    PIND2
00042 #define DIO2_RPORT  PIND
00043 #define DIO2_WPORT  PORTD
00044 #define DIO2_DDR    DDRD
00045 #define DIO2_PWM    NULL
00046 
00047 #define DIO3_PIN    PIND3
00048 #define DIO3_RPORT  PIND
00049 #define DIO3_WPORT  PORTD
00050 #define DIO3_DDR    DDRD
00051 #define DIO3_PWM    &OCR2B
00052 
00053 #define DIO4_PIN    PIND4
00054 #define DIO4_RPORT  PIND
00055 #define DIO4_WPORT  PORTD
00056 #define DIO4_DDR    DDRD
00057 #define DIO4_PWM    NULL
00058 
00059 #define DIO5_PIN    PIND5
00060 #define DIO5_RPORT  PIND
00061 #define DIO5_WPORT  PORTD
00062 #define DIO5_DDR    DDRD
00063 #define DIO5_PWM    &OCR0B
00064 
00065 #define DIO6_PIN    PIND6
00066 #define DIO6_RPORT  PIND
00067 #define DIO6_WPORT  PORTD
00068 #define DIO6_DDR    DDRD
00069 #define DIO6_PWM    &OCR0A
00070 
00071 #define DIO7_PIN    PIND7
00072 #define DIO7_RPORT  PIND
00073 #define DIO7_WPORT  PORTD
00074 #define DIO7_DDR    DDRD
00075 #define DIO7_PWM    NULL
00076 
00077 #define DIO8_PIN    PINB0
00078 #define DIO8_RPORT  PINB
00079 #define DIO8_WPORT  PORTB
00080 #define DIO8_DDR    DDRB
00081 #define DIO8_PWM    NULL
00082 
00083 #define DIO9_PIN    PINB1
00084 #define DIO9_RPORT  PINB
00085 #define DIO9_WPORT  PORTB
00086 #define DIO9_DDR    DDRB
00087 #define DIO9_PWM    NULL
00088 
00089 #define DIO10_PIN   PINB2
00090 #define DIO10_RPORT PINB
00091 #define DIO10_WPORT PORTB
00092 #define DIO10_DDR   DDRB
00093 #define DIO10_PWM   NULL
00094 
00095 #define DIO11_PIN   PINB3
00096 #define DIO11_RPORT PINB
00097 #define DIO11_WPORT PORTB
00098 #define DIO11_DDR   DDRB
00099 #define DIO11_PWM   &OCR2A
00100 
00101 #define DIO12_PIN   PINB4
00102 #define DIO12_RPORT PINB
00103 #define DIO12_WPORT PORTB
00104 #define DIO12_DDR   DDRB
00105 #define DIO12_PWM   NULL
00106 
00107 #define DIO13_PIN   PINB5
00108 #define DIO13_RPORT PINB
00109 #define DIO13_WPORT PORTB
00110 #define DIO13_DDR   DDRB
00111 #define DIO13_PWM   NULL
00112 
00113 
00114 #define AIO0_PIN    PINC0
00115 #define AIO0_RPORT  PINC
00116 #define AIO0_WPORT  PORTC
00117 #define AIO0_DDR    DDRC
00118 #define AIO0_PWM    NULL
00119 
00120 #define AIO1_PIN    PINC1
00121 #define AIO1_RPORT  PINC
00122 #define AIO1_WPORT  PORTC
00123 #define AIO1_DDR    DDRC
00124 #define AIO1_PWM    NULL
00125 
00126 #define AIO2_PIN    PINC2
00127 #define AIO2_RPORT  PINC
00128 #define AIO2_WPORT  PORTC
00129 #define AIO2_DDR    DDRC
00130 #define AIO2_PWM    NULL
00131 
00132 #define AIO3_PIN    PINC3
00133 #define AIO3_RPORT  PINC
00134 #define AIO3_WPORT  PORTC
00135 #define AIO3_DDR    DDRC
00136 #define AIO3_PWM    NULL
00137 
00138 #define AIO4_PIN    PINC4
00139 #define AIO4_RPORT  PINC
00140 #define AIO4_WPORT  PORTC
00141 #define AIO4_DDR    DDRC
00142 #define AIO4_PWM    NULL
00143 
00144 #define AIO5_PIN    PINC5
00145 #define AIO5_RPORT  PINC
00146 #define AIO5_WPORT  PORTC
00147 #define AIO5_DDR    DDRC
00148 #define AIO5_PWM    NULL
00149 
00150 #define AIO6_PIN    PINC6
00151 #define AIO6_RPORT  PINC
00152 #define AIO6_WPORT  PORTC
00153 #define AIO6_DDR    DDRC
00154 #define AIO6_PWM    NULL
00155 
00156 #define AIO7_PIN    PINC7
00157 #define AIO7_RPORT  PINC
00158 #define AIO7_WPORT  PORTC
00159 #define AIO7_DDR    DDRC
00160 #define AIO7_PWM    NULL
00161 
00162 
00163 
00164 #define PB0_PIN     PINB0
00165 #define PB0_RPORT   PINB
00166 #define PB0_WPORT   PORTB
00167 #define PB0_DDR     DDRB
00168 #define PB0_PWM     NULL
00169 
00170 #define PB1_PIN     PINB1
00171 #define PB1_RPORT   PINB
00172 #define PB1_WPORT   PORTB
00173 #define PB1_DDR     DDRB
00174 #define PB1_PWM     NULL
00175 
00176 #define PB2_PIN     PINB2
00177 #define PB2_RPORT   PINB
00178 #define PB2_WPORT   PORTB
00179 #define PB2_DDR     DDRB
00180 #define PB2_PWM     NULL
00181 
00182 #define PB3_PIN     PINB3
00183 #define PB3_RPORT   PINB
00184 #define PB3_WPORT   PORTB
00185 #define PB3_DDR     DDRB
00186 #define PB3_PWM     &OCR2A
00187 
00188 #define PB4_PIN     PINB4
00189 #define PB4_RPORT   PINB
00190 #define PB4_WPORT   PORTB
00191 #define PB4_DDR     DDRB
00192 #define PB4_PWM     NULL
00193 
00194 #define PB5_PIN     PINB5
00195 #define PB5_RPORT   PINB
00196 #define PB5_WPORT   PORTB
00197 #define PB5_DDR     DDRB
00198 #define PB5_PWM     NULL
00199 
00200 #define PB6_PIN     PINB6
00201 #define PB6_RPORT   PINB
00202 #define PB6_WPORT   PORTB
00203 #define PB6_DDR     DDRB
00204 #define PB6_PWM     NULL
00205 
00206 #define PB7_PIN     PINB7
00207 #define PB7_RPORT   PINB
00208 #define PB7_WPORT   PORTB
00209 #define PB7_DDR     DDRB
00210 #define PB7_PWM     NULL
00211 
00212 
00213 #define PC0_PIN     PINC0
00214 #define PC0_RPORT   PINC
00215 #define PC0_WPORT   PORTC
00216 #define PC0_DDR     DDRC
00217 #define PC0_PWM     NULL
00218 
00219 #define PC1_PIN     PINC1
00220 #define PC1_RPORT   PINC
00221 #define PC1_WPORT   PORTC
00222 #define PC1_DDR     DDRC
00223 #define PC1_PWM     NULL
00224 
00225 #define PC2_PIN     PINC2
00226 #define PC2_RPORT   PINC
00227 #define PC2_WPORT   PORTC
00228 #define PC2_DDR     DDRC
00229 #define PC2_PWM     NULL
00230 
00231 #define PC3_PIN     PINC3
00232 #define PC3_RPORT   PINC
00233 #define PC3_WPORT   PORTC
00234 #define PC3_DDR     DDRC
00235 #define PC3_PWM     NULL
00236 
00237 #define PC4_PIN     PINC4
00238 #define PC4_RPORT   PINC
00239 #define PC4_WPORT   PORTC
00240 #define PC4_DDR     DDRC
00241 #define PC4_PWM     NULL
00242 
00243 #define PC5_PIN     PINC5
00244 #define PC5_RPORT   PINC
00245 #define PC5_WPORT   PORTC
00246 #define PC5_DDR     DDRC
00247 #define PC5_PWM     NULL
00248 
00249 #define PC6_PIN     PINC6
00250 #define PC6_RPORT   PINC
00251 #define PC6_WPORT   PORTC
00252 #define PC6_DDR     DDRC
00253 #define PC6_PWM     NULL
00254 
00255 #define PC7_PIN     PINC7
00256 #define PC7_RPORT   PINC
00257 #define PC7_WPORT   PORTC
00258 #define PC7_DDR     DDRC
00259 #define PC7_PWM     NULL
00260 
00261 
00262 #define PD0_PIN     PIND0
00263 #define PD0_RPORT   PIND
00264 #define PD0_WPORT   PORTD
00265 #define PD0_DDR     DDRD
00266 #define PD0_PWM     NULL
00267 
00268 #define PD1_PIN     PIND1
00269 #define PD1_RPORT   PIND
00270 #define PD1_WPORT   PORTD
00271 #define PD1_DDR     DDRD
00272 #define PD1_PWM     NULL
00273 
00274 #define PD2_PIN     PIND2
00275 #define PD2_RPORT   PIND
00276 #define PD2_WPORT   PORTD
00277 #define PD2_DDR     DDRD
00278 #define PD2_PWM     NULL
00279 
00280 #define PD3_PIN     PIND3
00281 #define PD3_RPORT   PIND
00282 #define PD3_WPORT   PORTD
00283 #define PD3_DDR     DDRD
00284 #define PD3_PWM     &OCR2B
00285 
00286 #define PD4_PIN     PIND4
00287 #define PD4_RPORT   PIND
00288 #define PD4_WPORT   PORTD
00289 #define PD4_DDR     DDRD
00290 #define PD4_PWM     NULL
00291 
00292 #define PD5_PIN     PIND5
00293 #define PD5_RPORT   PIND
00294 #define PD5_WPORT   PORTD
00295 #define PD5_DDR     DDRD
00296 #define PD5_PWM     &OCR0B
00297 
00298 #define PD6_PIN     PIND6
00299 #define PD6_RPORT   PIND
00300 #define PD6_WPORT   PORTD
00301 #define PD6_DDR     DDRD
00302 #define PD6_PWM     &OCR0A
00303 
00304 #define PD7_PIN     PIND7
00305 #define PD7_RPORT   PIND
00306 #define PD7_WPORT   PORTD
00307 #define PD7_DDR     DDRD
00308 #define PD7_PWM     NULL
 All Data Structures Files Functions Variables Defines
Generated on Mon Jul 30 16:33:58 2012 for Teacup by  doxygen 1.6.3