Skip to content

Commit a9c0647

Browse files
committed
bug: registering gpios as interrupts caused them to always have a pulldown, no matter what they were created as.
1 parent accf1bf commit a9c0647

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/io/platform/f3xx/GPIOf3xx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void GPIOf3xx::registerIRQ(TriggerEdge edge, void (*irqHandler)(GPIO* pin, void*
118118
myPins,
119119
numOfPins,
120120
GPIOf3xx::GPIO_TRIGGER_INTERRUPT_BASE | (static_cast<uint32_t>(edge) << GPIO_MODE_IT_SHIFT),
121-
GPIO_PULLDOWN,
121+
static_cast<uint32_t>(pull),
122122
GPIO_SPEED_FREQ_HIGH);
123123

124124
auto pin_index = static_cast<uint8_t>(this->pin) & 0x0F;

src/core/io/platform/f4xx/GPIOf4xx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void GPIOf4xx::registerIRQ(TriggerEdge edge, void (*irqHandler)(GPIO* pin, void*
117117
myPins,
118118
numOfPins,
119119
GPIOf4xx::GPIO_TRIGGER_INTERRUPT_BASE | (static_cast<uint32_t>(edge) << GPIO_MODE_IT_SHIFT),
120-
GPIO_PULLDOWN,
120+
static_cast<uint32_t>(pull),
121121
GPIO_SPEED_FREQ_HIGH);
122122

123123
auto pin_index = static_cast<uint8_t>(this->pin) & 0x0F;

0 commit comments

Comments
 (0)