Skip to content

Commit 99364b2

Browse files
committed
Fix building with modern PICO-SDK
1 parent 5206a4a commit 99364b2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ project(PicoRVD C CXX ASM)
88
set(CMAKE_C_STANDARD 11)
99
set(CMAKE_CXX_STANDARD 20)
1010

11-
option(INCLUDE_BLINKY_BINARY "Include Blinky binary in PicoRVD" ON)
11+
# option(INCLUDE_BLINKY_BINARY "Include Blinky binary in PicoRVD" ON)
1212

1313
pico_sdk_init()
1414
add_executable(

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)