Skip to content

Commit 213091f

Browse files
committed
cleaned up types. set D5 as not a PWM pin for now.
1 parent 9b954df commit 213091f

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

hardware/arduino/pins/leonardo/pins_arduino.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -129,31 +129,31 @@ const static uint8_t A7 = 21;
129129
const uint16_t PROGMEM port_to_mode_PGM[] = {
130130
NOT_A_PORT,
131131
NOT_A_PORT,
132-
&DDRB,
133-
&DDRC,
134-
&DDRD,
135-
&DDRE,
136-
&DDRF,
132+
(uint16_t) &DDRB,
133+
(uint16_t) &DDRC,
134+
(uint16_t) &DDRD,
135+
(uint16_t) &DDRE,
136+
(uint16_t) &DDRF,
137137
};
138138

139139
const uint16_t PROGMEM port_to_output_PGM[] = {
140140
NOT_A_PORT,
141141
NOT_A_PORT,
142-
&PORTB,
143-
&PORTC,
144-
&PORTD,
145-
&PORTE,
146-
&PORTF,
142+
(uint16_t) &PORTB,
143+
(uint16_t) &PORTC,
144+
(uint16_t) &PORTD,
145+
(uint16_t) &PORTE,
146+
(uint16_t) &PORTF,
147147
};
148148

149149
const uint16_t PROGMEM port_to_input_PGM[] = {
150150
NOT_A_PORT,
151151
NOT_A_PORT,
152-
&PINB,
153-
&PINC,
154-
&PIND,
155-
&PINE,
156-
&PINF,
152+
(uint16_t) &PINB,
153+
(uint16_t) &PINC,
154+
(uint16_t) &PIND,
155+
(uint16_t) &PINE,
156+
(uint16_t) &PINF,
157157
};
158158

159159
const uint8_t PROGMEM digital_pin_to_port_PGM[18] = {
@@ -210,8 +210,8 @@ const uint8_t PROGMEM digital_pin_to_timer_PGM[18] = {
210210
NOT_ON_TIMER,
211211
TIMER0B,
212212
NOT_ON_TIMER,
213-
TIMER4D,
214-
NOT_ON_TIMER, // TIMER4D_NOT TODO. Complementary output of TIMER4D on Digital Pin 6. Not sure this was intended.
213+
NOT_ON_TIMER, // TIMER4D TODO - ZE - Fix this when there's a decision on what to do about these PWM pins
214+
NOT_ON_TIMER, // TIMER4D_NOT TODO - ZE - Complementary output of TIMER4D on Digital Pin 6. Not sure this was intended.
215215
NOT_ON_TIMER,
216216

217217
NOT_ON_TIMER, /* 8 port B */

0 commit comments

Comments
 (0)