We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5206a4a commit 3ebddcdCopy full SHA for 3ebddcd
src/PicoSWIO.cpp
@@ -58,10 +58,10 @@ void PicoSWIO::reset(int pin) {
58
// If we use the sdk functions to do this we get jitter :/
59
sio_hw->gpio_clr = (1 << pin);
60
sio_hw->gpio_oe_set = (1 << pin);
61
- iobank0_hw->io[pin].ctrl = GPIO_FUNC_SIO << IO_BANK0_GPIO0_CTRL_FUNCSEL_LSB;
+ io_bank0_hw->io[pin].ctrl = GPIO_FUNC_SIO << IO_BANK0_GPIO0_CTRL_FUNCSEL_LSB;
62
busy_wait(100); // ~8 usec
63
sio_hw->gpio_oe_clr = (1 << pin);
64
- iobank0_hw->io[pin].ctrl = GPIO_FUNC_PIO0 << IO_BANK0_GPIO0_CTRL_FUNCSEL_LSB;
+ io_bank0_hw->io[pin].ctrl = GPIO_FUNC_PIO0 << IO_BANK0_GPIO0_CTRL_FUNCSEL_LSB;
65
66
// Enable debug output pin on target
67
put(WCH_DM_SHDWCFGR, 0x5AA50400);
0 commit comments