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 ea638c0 commit ed3ddeaCopy full SHA for ed3ddea
ports/broadcom/common-hal/microcontroller/Pin.c
@@ -48,14 +48,15 @@ void reset_pin_number(uint8_t pin_number) {
48
pin_in_use[pin_number] = false;
49
never_reset_pin[pin_number] = false;
50
// Reset JTAG pins back to JTAG.
51
+ BP_PULL_Enum pull = BP_PULL_NONE;
52
if (22 <= pin_number && pin_number <= 27) {
53
gpio_set_function(pin_number, GPIO_FUNCTION_ALT4);
54
+ pull = BP_PULL_DOWN;
55
return;
56
} else {
57
gpio_set_function(pin_number, GPIO_FUNCTION_INPUT);
58
}
59
// Set the pull to match the datasheet.
- BP_PULL_Enum pull = BP_PULL_NONE;
60
if (pin_number < 9 ||
61
(33 < pin_number && pin_number < 37) ||
62
pin_number > 45) {
0 commit comments