We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c51148 commit 3629bdeCopy full SHA for 3629bde
cores/arduino/ard_sup/gpio/ap3_gpio.cpp
@@ -41,6 +41,16 @@ ap3_gpio_pad_t ap3_gpio_pin2pad(ap3_gpio_pin_t pin)
41
return ap3_variant_pinmap[pin];
42
}
43
44
+ap3_gpio_pin_t ap3_gpio_pad2pin(ap3_gpio_pad_t pad)
45
+{
46
+ for (int x = 0; x < AP3_VARIANT_NUM_PINS; x++)
47
+ {
48
+ if (ap3_variant_pinmap[x] == pad)
49
+ return (x);
50
+ }
51
+ return (AP3_GPIO_PAD_UNUSED);
52
+}
53
+
54
typedef void (*voidFuncPtr)(void);
55
typedef void (*voidFuncPtrArg)(void *);
56
typedef struct
0 commit comments