1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/pcf857x: allow to define PCF857x_BASE_ADDR at compile time

This commit is contained in:
Hugues Larrive 2023-06-14 05:32:58 +02:00
parent 84a3078a93
commit 85e41a1f18

View File

@ -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
/** @} */
/**