File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ extern const uint8_t digital_pin_to_port[];
90
90
extern const uint8_t digital_pin_to_bit_mask [];
91
91
extern const uint8_t digital_pin_to_bit_position [];
92
92
extern const uint8_t digital_pin_to_timer [];
93
+ extern const uint8_t analog_pin_to_channel [];
93
94
94
95
// Get the bit location within the hardware port of the given virtual pin.
95
96
// This comes from the pins_*.c file for the active board configuration.
@@ -155,5 +156,12 @@ bool isDoubleBondedActive(uint8_t pin);
155
156
156
157
#endif
157
158
159
+ #ifdef __cplusplus
160
+ extern "C" {
161
+ #endif
158
162
#include "pins_arduino.h"
163
+ #ifdef __cplusplus
164
+ } // extern "C"
165
+ #endif
166
+
159
167
#endif
Original file line number Diff line number Diff line change 23
23
*/
24
24
25
25
#include "wiring_private.h"
26
- #include "pins_arduino.h"
27
26
#include "Arduino.h"
28
27
29
28
uint8_t analog_reference = DEFAULT ;
Original file line number Diff line number Diff line change @@ -273,7 +273,6 @@ const uint8_t analog_pin_to_channel[] = {
273
273
274
274
#endif
275
275
276
- extern const uint8_t analog_pin_to_channel [];
277
276
#define digitalPinToAnalogInput (p ) ((p < ANALOG_INPUT_OFFSET) ? analog_pin_to_channel[p] : analog_pin_to_channel[p - ANALOG_INPUT_OFFSET] )
278
277
279
278
// These serial port names are intended to allow libraries and architecture-neutral
You can’t perform that action at this time.
0 commit comments