Skip to content

Commit c19d206

Browse files
committed
Revert "RP2040: restore GPIO15 functionality after USB_DEVICE_ENUMERATION_FIX"
This reverts commit 4932950.
1 parent b637f77 commit c19d206

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

targets/TARGET_RASPBERRYPI/TARGET_RP2040/USBPhy_RP2040.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ extern "C" {
3232

3333
#ifdef PICO_RP2040_USB_DEVICE_ENUMERATION_FIX
3434
#include "rp2040_usb_device_enumeration.h"
35-
#include "hardware/structs/iobank0.h"
3635
#endif
3736

3837
#ifdef __cplusplus
@@ -406,13 +405,7 @@ void USBPhyHw::process()
406405

407406
// This is required, but having trouble working out how to link in
408407
#ifdef PICO_RP2040_USB_DEVICE_ENUMERATION_FIX
409-
const uint dp = 15;
410-
auto function = gpio_get_function(dp);
411-
auto override = iobank0_hw->io[dp].ctrl;
412408
rp2040_usb_device_enumeration_fix();
413-
gpio_set_function(dp, function);
414-
gpio_set_inover(dp, GPIO_OVERRIDE_HIGH);
415-
hw_set_bits(&iobank0_hw->io[dp].ctrl, override);
416409
#endif
417410

418411
// reset bus for USBDevice layer

0 commit comments

Comments
 (0)