Add init for RP2040 based flexgpio i2c expander

This commit is contained in:
Mitchell Grams
2026-03-07 17:46:59 -07:00
parent 6f029b0d48
commit cb70830d76

View File

@@ -31,7 +31,7 @@ extern void board_ports_init (void); // default is a weak function
// I2C expanders // I2C expanders
#if PCA9654E_ENABLE || MCP3221_ENABLE || MCP4725_ENABLE #if PCA9654E_ENABLE || MCP3221_ENABLE || MCP4725_ENABLE || FLEXGPIO_ENABLE
#if defined(I2C_ENABLE) && !I2C_ENABLE #if defined(I2C_ENABLE) && !I2C_ENABLE
#undef I2C_ENABLE #undef I2C_ENABLE
@@ -55,6 +55,10 @@ extern void pca9654e_init(void);
// Third party I2C expander plugins goes after this line // Third party I2C expander plugins goes after this line
#if FLEXGPIO_ENABLE
extern void flexgpio_init(void);
#endif
#endif // I2C expanders #endif // I2C expanders
// SPI expanders // SPI expanders
@@ -117,6 +121,10 @@ static inline void io_expanders_init (void)
pca9654e_init(); pca9654e_init();
#endif #endif
#if FLEXGPIO_ENABLE
flexgpio_init();
#endif
#if PICOHAL_IO_ENABLE #if PICOHAL_IO_ENABLE
picohal_io_init(); picohal_io_init();
#endif #endif