8000 update logic for JTAG pull downs · domdfcoding/circuitpython@9dea495 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9dea495

Browse files
committed
update logic for JTAG pull downs
1 parent fc97f1d commit 9dea495

File tree

1 file changed

+1
-3
lines changed
  • ports/broadcom/common-hal/microcontroller

1 file changed

+1
-3
lines changed

ports/broadcom/common-hal/microcontroller/Pin.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ void reset_pin_number(uint8_t pin_number) {
5151
BP_PULL_Enum pull = BP_PULL_NONE;
5252
if (22 <= pin_number && pin_number <= 27) {
5353
gpio_set_function(pin_number, GPIO_FUNCTION_ALT4);
54-
pull = BP_PULL_DOWN;
55-
return;
5654
} else {
5755
gpio_set_function(pin_number, GPIO_FUNCTION_INPUT);
5856
}
@@ -66,7 +64,7 @@ void reset_pin_number(uint8_t pin_number) {
6664
pin_number != 44 &&
6765
pin_number != 45) {
6866
// Most pins are pulled low so we only exclude the four pins that aren't
69-
// pulled at all.
67+
// pulled at all. This will aso set the JTAG pins 22-27
7068
pull = BP_PULL_DOWN;
7169
}
7270
gpio_set_pull(pin_number, pull);

0 commit comments

Comments
 (0)
0