sanguino/variants/standard/pins_arduino.h

Fri, 17 Nov 2017 10:13:31 +0100

author
mdd
date
Fri, 17 Nov 2017 10:13:31 +0100
changeset 3
770b218a4931
parent 2
b373b0288715
permissions
-rw-r--r--

proper configuration, homing and planner optimization

2
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
1 /*
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
2 pins_arduino.h - Pin definition functions for Arduino
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
3 Part of Arduino - http://www.arduino.cc/
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
4
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
5 Copyright (c) 2007 David A. Mellis
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
6
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
7 This library is free software; you can redistribute it and/or
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
8 modify it under the terms of the GNU Lesser General Public
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
9 License as published by the Free Software Foundation; either
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
10 version 2.1 of the License, or (at your option) any later version.
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
11
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
12 This library is distributed in the hope that it will be useful,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
15 Lesser General Public License for more details.
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
16
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
17 You should have received a copy of the GNU Lesser General
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
18 Public License along with this library; if not, write to the
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
19 Free Software Foundation, Inc., 59 Temple Place, Suite 330,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
20 Boston, MA 02111-1307 USA
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
21
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
22 $Id: wiring.h 249 2007-02-03 16:52:51Z mellis $
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
23
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
24 Changelog
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
25 -----------
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
26 11/25/11 - ryan@ryanmsutton.com - Add pins for Sanguino 644P and 1284P
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
27 07/15/12 - ryan@ryanmsutton.com - Updated for arduino0101
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
28 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
29
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
30 #ifndef Pins_Arduino_h
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
31 #define Pins_Arduino_h
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
32
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
33 #include <avr/pgmspace.h>
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
34
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
35 #define NOT_A_PIN 0
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
36 #define NOT_A_PORT 0
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
37
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
38 #define NOT_ON_TIMER 0
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
39 #define TIMER0A 1
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
40 #define TIMER0B 2
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
41 #define TIMER1A 3
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
42 #define TIMER1B 4
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
43 #define TIMER2 5
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
44 #define TIMER2A 6
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
45 #define TIMER2B 7
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
46
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
47 #define TIMER3A 8
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
48 #define TIMER3B 9
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
49 #define TIMER3C 10
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
50 #define TIMER4A 11
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
51 #define TIMER4B 12
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
52 #define TIMER4C 13
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
53 #define TIMER5A 14
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
54 #define TIMER5B 15
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
55 #define TIMER5C 16
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
56
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
57 const static uint8_t SS = 4;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
58 const static uint8_t MOSI = 5;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
59 const static uint8_t MISO = 6;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
60 const static uint8_t SCK = 7;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
61
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
62 static const uint8_t SDA = 17;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
63 static const uint8_t SCL = 16;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
64 static const uint8_t LED_BUILTIN = 13;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
65
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
66 static const uint8_t A0 = 31;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
67 static const uint8_t A1 = 30;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
68 static const uint8_t A2 = 29;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
69 static const uint8_t A3 = 28;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
70 static const uint8_t A4 = 27;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
71 static const uint8_t A5 = 26;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
72 static const uint8_t A6 = 25;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
73 static const uint8_t A7 = 24;
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
74
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
75 // On the ATmega1280, the addresses of some of the port registers are
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
76 // greater than 255, so we can't store them in uint8_t's.
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
77 // extern const uint16_t PROGMEM port_to_mode_PGM[];
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
78 // extern const uint16_t PROGMEM port_to_input_PGM[];
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
79 // extern const uint16_t PROGMEM port_to_output_PGM[];
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
80
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
81 // extern const uint8_t PROGMEM digital_pin_to_port_PGM[];
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
82 // extern const uint8_t PROGMEM digital_pin_to_bit_PGM[];
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
83 // extern const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[];
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
84 // extern const uint8_t PROGMEM digital_pin_to_timer_PGM[];
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
85
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
86 // ATMEL ATMEGA644P / SANGUINO
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
87 //
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
88 // +---\/---+
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
89 // INT0 (D 0) PB0 1| |40 PA0 (AI 0 / D31)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
90 // INT1 (D 1) PB1 2| |39 PA1 (AI 1 / D30)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
91 // INT2 (D 2) PB2 3| |38 PA2 (AI 2 / D29)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
92 // PWM (D 3) PB3 4| |37 PA3 (AI 3 / D28)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
93 // PWM (D 4) PB4 5| |36 PA4 (AI 4 / D27)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
94 // MOSI (D 5) PB5 6| |35 PA5 (AI 5 / D26)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
95 // MISO (D 6) PB6 7| |34 PA6 (AI 6 / D25)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
96 // SCK (D 7) PB7 8| |33 PA7 (AI 7 / D24)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
97 // RST 9| |32 AREF
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
98 // VCC 10| |31 GND
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
99 // GND 11| |30 AVCC
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
100 // XTAL2 12| |29 PC7 (D 23)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
101 // XTAL1 13| |28 PC6 (D 22)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
102 // RX0 (D 8) PD0 14| |27 PC5 (D 21) TDI
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
103 // TX0 (D 9) PD1 15| |26 PC4 (D 20) TDO
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
104 // RX1 (D 10) PD2 16| |25 PC3 (D 19) TMS
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
105 // TX1 (D 11) PD3 17| |24 PC2 (D 18) TCK
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
106 // PWM (D 12) PD4 18| |23 PC1 (D 17) SDA
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
107 // PWM (D 13) PD5 19| |22 PC0 (D 16) SCL
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
108 // PWM (D 14) PD6 20| |21 PD7 (D 15) PWM
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
109 // +--------+
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
110 //
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
111 #define NUM_DIGITAL_PINS 24
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
112 #define NUM_ANALOG_INPUTS 8
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
113 #define analogInputToDigitalPin(p) ((p < 7) ? (p) + 24 : -1)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
114
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
115 #define digitalPinHasPWM(p) ((p) == 3 || (p) == 4 || (p) == 12 || (p) == 13 || (p) == 14 || (p) == 15 )
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
116
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
117 #define PA 1
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
118 #define PB 2
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
119 #define PC 3
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
120 #define PD 4
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
121 #define PE 5
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
122 #define PF 6
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
123 #define PG 7
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
124 #define PH 8
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
125 #define PJ 10
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
126 #define PK 11
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
127 #define PL 12
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
128
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
129 #ifdef ARDUINO_MAIN
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
130 // these arrays map port names (e.g. port B) to the
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
131 // appropriate addresses for various functions (e.g. reading
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
132 // and writing)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
133 const uint16_t PROGMEM port_to_mode_PGM[] =
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
134 {
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
135 NOT_A_PORT,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
136 (uint16_t) &DDRA,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
137 (uint16_t) &DDRB,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
138 (uint16_t) &DDRC,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
139 (uint16_t) &DDRD,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
140 };
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
141
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
142 const uint16_t PROGMEM port_to_output_PGM[] =
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
143 {
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
144 NOT_A_PORT,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
145 (uint16_t) &PORTA,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
146 (uint16_t) &PORTB,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
147 (uint16_t) &PORTC,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
148 (uint16_t) &PORTD,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
149 };
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
150 const uint16_t PROGMEM port_to_input_PGM[] =
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
151 {
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
152 NOT_A_PORT,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
153 (uint16_t) &PINA,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
154 (uint16_t) &PINB,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
155 (uint16_t) &PINC,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
156 (uint16_t) &PIND,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
157 };
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
158 const uint8_t PROGMEM digital_pin_to_port_PGM[] =
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
159 {
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
160 PB, /* 0 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
161 PB,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
162 PB,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
163 PB,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
164 PB,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
165 PB,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
166 PB,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
167 PB,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
168 PD, /* 8 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
169 PD,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
170 PD,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
171 PD,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
172 PD,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
173 PD,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
174 PD,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
175 PD,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
176 PC, /* 16 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
177 PC,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
178 PC,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
179 PC,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
180 PC,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
181 PC,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
182 PC,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
183 PC,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
184 PA, /* 24 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
185 PA,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
186 PA,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
187 PA,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
188 PA,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
189 PA,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
190 PA,
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
191 PA /* 31 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
192 };
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
193 const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[] =
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
194 {
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
195 _BV(0), /* 0, port B */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
196 _BV(1),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
197 _BV(2),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
198 _BV(3),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
199 _BV(4),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
200 _BV(5),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
201 _BV(6),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
202 _BV(7),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
203 _BV(0), /* 8, port D */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
204 _BV(1),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
205 _BV(2),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
206 _BV(3),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
207 _BV(4),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
208 _BV(5),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
209 _BV(6),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
210 _BV(7),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
211 _BV(0), /* 16, port C */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
212 _BV(1),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
213 _BV(2),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
214 _BV(3),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
215 _BV(4),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
216 _BV(5),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
217 _BV(6),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
218 _BV(7),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
219 _BV(7), /* 24, port A */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
220 _BV(6),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
221 _BV(5),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
222 _BV(4),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
223 _BV(3),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
224 _BV(2),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
225 _BV(1),
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
226 _BV(0)
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
227 };
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
228 const uint8_t PROGMEM digital_pin_to_timer_PGM[] =
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
229 {
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
230 NOT_ON_TIMER, /* 0 - PB0 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
231 NOT_ON_TIMER, /* 1 - PB1 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
232 NOT_ON_TIMER, /* 2 - PB2 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
233 TIMER0A, /* 3 - PB3 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
234 TIMER0B, /* 4 - PB4 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
235 NOT_ON_TIMER, /* 5 - PB5 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
236 NOT_ON_TIMER, /* 6 - PB6 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
237 NOT_ON_TIMER, /* 7 - PB7 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
238 NOT_ON_TIMER, /* 8 - PD0 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
239 NOT_ON_TIMER, /* 9 - PD1 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
240 NOT_ON_TIMER, /* 10 - PD2 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
241 NOT_ON_TIMER, /* 11 - PD3 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
242 TIMER1B, /* 12 - PD4 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
243 TIMER1A, /* 13 - PD5 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
244 TIMER2B, /* 14 - PD6 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
245 TIMER2A, /* 15 - PD7 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
246 NOT_ON_TIMER, /* 16 - PC0 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
247 NOT_ON_TIMER, /* 17 - PC1 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
248 NOT_ON_TIMER, /* 18 - PC2 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
249 NOT_ON_TIMER, /* 19 - PC3 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
250 NOT_ON_TIMER, /* 20 - PC4 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
251 NOT_ON_TIMER, /* 21 - PC5 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
252 NOT_ON_TIMER, /* 22 - PC6 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
253 NOT_ON_TIMER, /* 23 - PC7 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
254 NOT_ON_TIMER, /* 24 - PA0 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
255 NOT_ON_TIMER, /* 25 - PA1 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
256 NOT_ON_TIMER, /* 26 - PA2 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
257 NOT_ON_TIMER, /* 27 - PA3 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
258 NOT_ON_TIMER, /* 28 - PA4 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
259 NOT_ON_TIMER, /* 29 - PA5 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
260 NOT_ON_TIMER, /* 30 - PA6 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
261 NOT_ON_TIMER /* 31 - PA7 */
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
262 };
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
263 #endif
b373b0288715 added missing sanguino files
mbayer
parents:
diff changeset
264 #endif

mercurial