Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6977

General • Error messages in pico(tinyusb)

$
0
0
Hi all

I am trying to run tinyusb on my PICO, and am using the hid_controller example

Currently, I'm getting these three errors

identifier "GPIO_OVERRIDE_LOW" is undefined
identifier "SIO_GPIO_HI_IN_QSPI_CSN_BITS" is undefined
identifier "GPIO_OVERRIDE_NORMAL" is undefined

from

Code:

 hw_write_masked(&ioqspi_hw->io[CS_PIN_INDEX].ctrl,                  GPIO_OVERRIDE_LOW << IO_QSPI_GPIO_QSPI_SS_CTRL_OEOVER_LSB,                  IO_QSPI_GPIO_QSPI_SS_CTRL_OEOVER_BITS);  // Note we can't call into any sleep functions in flash right now  for (volatile int i = 0; i < 1000; ++i) {}  // The HI GPIO registers in SIO can observe and control the 6 QSPI pins.  // Note the button pulls the pin *low* when pressed.  #ifdef __ARM_ARCH_6M__ // CM0 for rp2040    #define CS_BIT (1u << 1)  #else // rp2350 (cm33/risv)    #define CS_BIT SIO_GPIO_HI_IN_QSPI_CSN_BITS  #endif  bool button_state = (sio_hw->gpio_hi_in & CS_BIT);  // Need to restore the state of chip select, else we are going to have a  // bad time when we return to code in flash!  hw_write_masked(&ioqspi_hw->io[CS_PIN_INDEX].ctrl,                  GPIO_OVERRIDE_NORMAL << IO_QSPI_GPIO_QSPI_SS_CTRL_OEOVER_LSB,                  IO_QSPI_GPIO_QSPI_SS_CTRL_OEOVER_BITS);
is there any feedback, or advice anyone can give on whats wrong or how to fix it

Statistics: Posted by Maaz1 — Wed Oct 01, 2025 3:18 pm — Replies 0 — Views 62



Viewing all articles
Browse latest Browse all 6977

Trending Articles