We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c88d62f commit 11c110eCopy full SHA for 11c110e
cores/arduino/ard_sup/gpio/ap3_gpio.cpp
@@ -35,7 +35,6 @@ static inline uint32_t ap3_get_funct_sel(ap3_gpio_pad_t pad);
35
//Additional Defines
36
#define PADREG_FNSEL_Msk 0x38
37
#define GPIO_FUNCTION 3
38
-#
39
40
ap3_gpio_pad_t ap3_gpio_pin2pad(ap3_gpio_pin_t pin)
41
{
@@ -137,10 +136,6 @@ extern void digitalWrite(uint8_t pin, uint8_t val)
137
136
138
return;
139
}
140
- if (ap3_get_funct_sel(pad) != GPIO_FUNCTION)
141
- {
142
- pinMode(pin, OUTPUT);
143
- }
144
if (val)
145
146
am_hal_gpio_output_set(ap3_gpio_pin2pad(pin));
0 commit comments