From cb70830d7611ee7d3cffd26a55d6aecad55e187e Mon Sep 17 00:00:00 2001 From: Mitchell Grams Date: Sat, 7 Mar 2026 17:46:59 -0700 Subject: [PATCH] Add init for RP2040 based flexgpio i2c expander --- expanders_init.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/expanders_init.h b/expanders_init.h index f4dec2b..0d47d85 100644 --- a/expanders_init.h +++ b/expanders_init.h @@ -31,7 +31,7 @@ extern void board_ports_init (void); // default is a weak function // I2C expanders -#if PCA9654E_ENABLE || MCP3221_ENABLE || MCP4725_ENABLE +#if PCA9654E_ENABLE || MCP3221_ENABLE || MCP4725_ENABLE || FLEXGPIO_ENABLE #if defined(I2C_ENABLE) && !I2C_ENABLE #undef I2C_ENABLE @@ -55,6 +55,10 @@ extern void pca9654e_init(void); // Third party I2C expander plugins goes after this line +#if FLEXGPIO_ENABLE +extern void flexgpio_init(void); +#endif + #endif // I2C expanders // SPI expanders @@ -117,6 +121,10 @@ static inline void io_expanders_init (void) pca9654e_init(); #endif +#if FLEXGPIO_ENABLE + flexgpio_init(); +#endif + #if PICOHAL_IO_ENABLE picohal_io_init(); #endif