mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
ioexpander: add support for pcf8575 expander
This adds support for 16 bit io expander pcf8575. The driver is basically the same as for pcf8574 however it is for 16 bits instead of 8 bits. Since pcf8575 and pcf8574 can be both used on the same i2c bus the driver for pcf8575 is implemented in a different file to reduce the code size and complexity and to have less if statements in the driver. Signed-off-by: Michal Lenc <michallenc@seznam.cz>
This commit is contained in:
@@ -297,6 +297,25 @@ config PCF8574_INT_POLLDELAY
|
||||
|
||||
endif # IOEXPANDER_PCF8574
|
||||
|
||||
config IOEXPANDER_PCF8575
|
||||
bool "PCF8575 I2C IO expander"
|
||||
default n
|
||||
depends on I2C
|
||||
---help---
|
||||
Enable support for 16 bit PCF8575 IO Expander. Software driver
|
||||
interrupt is currently not supported therefore decated HW interrupt
|
||||
pin should be used.
|
||||
|
||||
if IOEXPANDER_PCF8575
|
||||
|
||||
config PCF8575_MULTIPLE
|
||||
bool "Multiple PCF8575 Devices"
|
||||
default n
|
||||
---help---
|
||||
Can be defined to support multiple PCF8575 devices on board.
|
||||
|
||||
endif # IOEXPANDER_PCF8575
|
||||
|
||||
config IOEXPANDER_SX1509
|
||||
bool "SX1509 I2C IO expander"
|
||||
default n
|
||||
|
||||
Reference in New Issue
Block a user