diff options
| author | Ryan | 2024-03-29 17:57:21 +0100 |
|---|---|---|
| committer | GitHub | 2024-03-29 17:57:21 +0100 |
| commit | d0cf7b85192ce4431bb4c8c57e2d7501df83ac43 (patch) | |
| tree | e182500e7df7bf2886300e53e5c7d7c03b01bb40 /drivers/gpio/pca9555.h | |
| parent | e891109c4e115a303e109b179bf9d24edbdd7ad7 (diff) | |
Update GPIO expander API naming (#23375)
Diffstat (limited to 'drivers/gpio/pca9555.h')
| -rw-r--r-- | drivers/gpio/pca9555.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpio/pca9555.h b/drivers/gpio/pca9555.h index 6362ab68ae..f089022e84 100644 --- a/drivers/gpio/pca9555.h +++ b/drivers/gpio/pca9555.h @@ -78,11 +78,16 @@ bool pca9555_set_output_all(uint8_t slave_addr, uint8_t confA, uint8_t confB); /** * Read state of a given port */ -bool pca9555_readPins(uint8_t slave_addr, pca9555_port_t port, uint8_t* ret); +bool pca9555_read_pins(uint8_t slave_addr, pca9555_port_t port, uint8_t* ret); /** * Read state of both ports sequentially * * - slightly faster than multiple readPins */ -bool pca9555_readPins_all(uint8_t slave_addr, uint16_t* ret); +bool pca9555_read_pins_all(uint8_t slave_addr, uint16_t* ret); + +// DEPRECATED - DO NOT USE + +#define pca9555_readPins pca9555_read_pins +#define pca9555_readPins_all pca9555_read_pins_all |