File tree 2 files changed +36
-3
lines changed
2 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 5
5
# - https://github.com/arduino/Arduino/wiki/Arduino-Hardware-Cores-migration-guide-from-1.0-to-1.6
6
6
#
7
7
name=Adafruit Boards
8
- version=1.4.12
8
+ version=1.4.13
9
9
10
10
# AVR Uploader/Programmers tools
11
11
# ------------------------------
Original file line number Diff line number Diff line change 44
44
// GND 4| |5 PB0 (D 0) pwm0
45
45
// +----+
46
46
47
+ #define NUM_DIGITAL_PINS 3
48
+ #define NUM_ANALOG_INPUTS 1
47
49
#define LED_BUILTIN 1
48
50
51
+ #define PIN_A0 (6)
52
+ #define PIN_A1 (7)
53
+ #define PIN_A2 (8)
54
+ #define PIN_A3 (9)
55
+
56
+ static const uint8_t A0 = PIN_A0 ;
57
+ static const uint8_t A1 = PIN_A1 ;
58
+ static const uint8_t A2 = PIN_A2 ;
59
+ static const uint8_t A3 = PIN_A3 ;
60
+
49
61
#define digitalPinToPCICR (p ) ( ((p) >= 0 && (p) <= 4) ? (&GIMSK) : ((uint8_t *)0) )
50
62
#define digitalPinToPCICRbit (p ) ( PCIE )
51
63
#define digitalPinToPCMSK (p ) ( ((p) <= 4) ? (&PCMSK) : ((uint8_t *)0) )
52
64
#define digitalPinToPCMSKbit (p ) ( (p) )
53
65
66
+ #define digitalPinToInterrupt (p ) ((p) == 2 ? 0 : NOT_AN_INTERRUPT)
67
+
68
+ #define analogPinToChannel (p ) ( (p) < 6 ? (p) : (p) - 6 )
69
+
70
+ #define TCCR1A GTCCR
71
+
54
72
#ifdef ARDUINO_MAIN
55
73
74
+ void initVariant ()
75
+ {
76
+ GTCCR |= (1 << PWM1B );
77
+ }
78
+
56
79
// these arrays map port names (e.g. port B) to the
57
80
// appropriate addresses for various functions (e.g. reading
58
81
// and writing) tiny45 only port B
@@ -81,7 +104,10 @@ const uint8_t PROGMEM digital_pin_to_port_PGM[] = {
81
104
PB ,
82
105
PB ,
83
106
PB , // 5
84
-
107
+ PB , // A0
108
+ PB ,
109
+ PB ,
110
+ PB , // A4
85
111
};
86
112
87
113
const uint8_t PROGMEM digital_pin_to_bit_mask_PGM [] = {
@@ -91,7 +117,10 @@ const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[] = {
91
117
_BV (3 ), /* 3 port B */
92
118
_BV (4 ),
93
119
_BV (5 ),
94
-
120
+ _BV (5 ),
121
+ _BV (2 ),
122
+ _BV (4 ),
123
+ _BV (3 ),
95
124
};
96
125
97
126
const uint8_t PROGMEM digital_pin_to_timer_PGM [] = {
@@ -101,6 +130,10 @@ const uint8_t PROGMEM digital_pin_to_timer_PGM[] = {
101
130
NOT_ON_TIMER ,
102
131
TIMER1B ,
103
132
NOT_ON_TIMER ,
133
+ NOT_ON_TIMER ,
134
+ NOT_ON_TIMER ,
135
+ NOT_ON_TIMER ,
136
+ NOT_ON_TIMER ,
104
137
};
105
138
106
139
#endif
You can’t perform that action at this time.
0 commit comments