From 85e41a1f1851e4a3b869ea0a4fceaa3c8d27548c Mon Sep 17 00:00:00 2001 From: Hugues Larrive Date: Wed, 14 Jun 2023 05:32:58 +0200 Subject: [PATCH] drivers/pcf857x: allow to define PCF857x_BASE_ADDR at compile time --- drivers/include/pcf857x.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/include/pcf857x.h b/drivers/include/pcf857x.h index 751bb3b6a3..4b270be1e6 100644 --- a/drivers/include/pcf857x.h +++ b/drivers/include/pcf857x.h @@ -272,15 +272,21 @@ extern "C" * of 0 to 7. * @{ */ +#ifndef PCF8575_BASE_ADDR #define PCF8575_BASE_ADDR (0x20) /**< PCF8575 I2C slave base address. Addresses are then in range from 0x20 to 0x27 */ +#endif +#ifndef PCF8574_BASE_ADDR #define PCF8574_BASE_ADDR (0x20) /**< PCF8574 I2C slave base address. Addresses are then in range from 0x20 to 0x27 */ +#endif +#ifndef PCF8574A_BASE_ADDR #define PCF8574A_BASE_ADDR (0x38) /**< PCF8574A I2C slave base address. Addresses are then in range from 0x38 to 0x3f */ +#endif /** @} */ /**