Silicon Labs EFM32/EFR32 Joybus backend.
More...
|
| #define | JOYBUS_GECKO(bus) |
| | Macro to cast a generic Joybus instance to a Gecko Joybus instance.
|
|
#define | CHIPS_PER_BIT 4 |
|
#define | EDGES_PER_BYTE 16 |
Silicon Labs EFM32/EFR32 Joybus backend.
◆ JOYBUS_GECKO
| #define JOYBUS_GECKO |
( |
| bus | ) |
|
Value:
A Gecko Joybus instance.
Definition gecko.h:82
Macro to cast a generic Joybus instance to a Gecko Joybus instance.
◆ joybus_gecko_config_default()
Build a Gecko config with default values.
- Parameters
-
| port | the GPIO port to use for the Joybus data line |
| pin | the GPIO pin to use for the Joybus data line |
- Returns
- a config with the given GPIO, the TIMER0/USART0 peripherals, and a nominal frequency
◆ joybus_gecko_init()
Initialize a Gecko Joybus instance.
- Parameters
-
- Returns
- 0 on success, a negative joybus_error on failure