Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IO Bank naming to follow changes in Pico SDK #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/PicoSWIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ void PicoSWIO::reset(int pin) {
// If we use the sdk functions to do this we get jitter :/
sio_hw->gpio_clr = (1 << pin);
sio_hw->gpio_oe_set = (1 << pin);
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;
busy_wait(100); // ~8 usec
sio_hw->gpio_oe_clr = (1 << pin);
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;

// Enable debug output pin on target
put(WCH_DM_SHDWCFGR, 0x5AA50400);
Expand Down