mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
Add MCP23s17 + further optimizations
This commit is contained in:
@@ -19,12 +19,15 @@ typedef struct {
|
||||
uint8_t intr;
|
||||
uint8_t count;
|
||||
uint32_t base;
|
||||
union gpio_exp_phy_u {
|
||||
struct {
|
||||
uint8_t addr, port;
|
||||
struct gpio_exp_phy_s {
|
||||
uint8_t addr;
|
||||
struct { // for I2C
|
||||
uint8_t port;
|
||||
};
|
||||
struct {
|
||||
uint8_t cs_pin;
|
||||
struct { // for SPI
|
||||
uint32_t speed;
|
||||
uint8_t host;
|
||||
uint8_t cs_pin;
|
||||
};
|
||||
} phy;
|
||||
} gpio_exp_config_t;
|
||||
|
||||
Reference in New Issue
Block a user