Raspberry Pi RP2040/RP2350 Joybus backend.
More...
|
| #define | JOYBUS_RP2XXX(bus) |
| | Macro to cast a generic Joybus instance to a RP2xxx Joybus instance.
|
Raspberry Pi RP2040/RP2350 Joybus backend.
◆ JOYBUS_RP2XXX
| #define JOYBUS_RP2XXX |
( |
| bus | ) |
|
Value:
A RP2xxx Joybus instance.
Definition rp2xxx.h:69
Macro to cast a generic Joybus instance to a RP2xxx Joybus instance.
◆ joybus_rp2xxx_config_default()
Build a RP2xxx config with default values.
An RTOS that builds its own vector table has to replace set_irq_handler.
- Parameters
-
| gpio | the GPIO pin to use for the Joybus data line |
- Returns
- a config with the given GPIO, the pio0 instance, and a nominal frequency
◆ joybus_rp2xxx_init()
Initialize a RP2xxx Joybus instance.
- Parameters
-
- Returns
- 0 on success, a negative joybus_error on failure
◆ joybus_rp2xxx_set_irq_handler_sdk()
| void joybus_rp2xxx_set_irq_handler_sdk |
( |
uint | irq_num, |
|
|
irq_handler_t | handler ) |
|
inlinestatic |
Install an interrupt handler through the pico-sdk.
- Parameters
-
| irq_num | the interrupt to take |
| handler | what to call, which runs in interrupt context |