Replies: 1 comment 1 reply
-
Yeah, that looks like a bug you found. The defines should include the Want to do the PR for it? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Arduino.h we have the following AVR compatibility macros:
#define portOutputRegister(port) ((volatile uint32_t*) sio_hw->gpio_out)
#define portInputRegister(port) ((volatile uint32_t*) sio_hw->gpio_in)
#define portModeRegister(port) ((volatile uint32_t*) sio_hw->gpio_oe)
I am wondering if these were not meant to be:
#define portOutputRegister(port) ((volatile uint32_t *)&(sio_hw->gpio_out))
#define portInputRegister(port) ((volatile uint32_t *)&(sio_hw->gpio_in))
#define portModeRegister(port) ((volatile uint32_t *)&(sio_hw->gpio_oe))
instead !?
I am porting an old application that runs on multiple other targets but with the pico BSP these fail.
Beta Was this translation helpful? Give feedback.
All reactions