We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e1bf50 + 1d33915 commit 8e7e729Copy full SHA for 8e7e729
cores/arduino/pinDefinitions.h
@@ -29,9 +29,7 @@ struct _AnalogPinDescription
29
#ifdef __cplusplus__
30
extern "C" {
31
#endif
32
-inline PinName digitalPinToPinName(pin_size_t P) {
33
- return (P >= PINS_COUNT ? NC : g_APinDescription[P].name);
34
-};
+PinName digitalPinToPinName(pin_size_t P);
35
36
}
37
cores/arduino/pinToIndex.cpp
@@ -9,3 +9,13 @@ int PinNameToIndex(PinName P) {
9
10
return NOT_A_PIN;
11
12
+
13
+#ifdef __cplusplus__
14
+extern "C" {
15
+#endif
16
+PinName digitalPinToPinName(pin_size_t P) {
17
+ return (P >= PINS_COUNT ? NC : g_APinDescription[P].name);
18
+};
19
20
+}
21
0 commit comments