Skip to content

Commit 3ebddcd

Browse files
Plaque FCCPlaque FCC
authored andcommitted
Fix IO Bank naming to follow changes in Pico SDK
Author: intx82@github Signed-off-by: Plaque FCC <Plaque-FCC@github>
1 parent 5206a4a commit 3ebddcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PicoSWIO.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ void PicoSWIO::reset(int pin) {
5858
// If we use the sdk functions to do this we get jitter :/
5959
sio_hw->gpio_clr = (1 << pin);
6060
sio_hw->gpio_oe_set = (1 << pin);
61-
iobank0_hw->io[pin].ctrl = GPIO_FUNC_SIO << IO_BANK0_GPIO0_CTRL_FUNCSEL_LSB;
61+
io_bank0_hw->io[pin].ctrl = GPIO_FUNC_SIO << IO_BANK0_GPIO0_CTRL_FUNCSEL_LSB;
6262
busy_wait(100); // ~8 usec
6363
sio_hw->gpio_oe_clr = (1 << pin);
64-
iobank0_hw->io[pin].ctrl = GPIO_FUNC_PIO0 << IO_BANK0_GPIO0_CTRL_FUNCSEL_LSB;
64+
io_bank0_hw->io[pin].ctrl = GPIO_FUNC_PIO0 << IO_BANK0_GPIO0_CTRL_FUNCSEL_LSB;
6565

6666
// Enable debug output pin on target
6767
put(WCH_DM_SHDWCFGR, 0x5AA50400);

0 commit comments

Comments
 (0)