Skip to content

Commit 11c110e

Browse files
author
oclyke
committed
remove automatic pinMode in digitalWrite
leaving the ap3_get_funct_sel function for future utility
1 parent c88d62f commit 11c110e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

cores/arduino/ard_sup/gpio/ap3_gpio.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ static inline uint32_t ap3_get_funct_sel(ap3_gpio_pad_t pad);
3535
//Additional Defines
3636
#define PADREG_FNSEL_Msk 0x38
3737
#define GPIO_FUNCTION 3
38-
#
3938

4039
ap3_gpio_pad_t ap3_gpio_pin2pad(ap3_gpio_pin_t pin)
4140
{
@@ -137,10 +136,6 @@ extern void digitalWrite(uint8_t pin, uint8_t val)
137136
{
138137
return;
139138
}
140-
if (ap3_get_funct_sel(pad) != GPIO_FUNCTION)
141-
{
142-
pinMode(pin, OUTPUT);
143-
}
144139
if (val)
145140
{
146141
am_hal_gpio_output_set(ap3_gpio_pin2pad(pin));

0 commit comments

Comments
 (0)