mirror of
https://github.com/grblHAL/core.git
synced 2026-03-23 03:22:56 +08:00
Add init for RP2040 based flexgpio i2c expander
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user