1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
19734: drivers/pcf857x: allow to define PCF857x_BASE_ADDR at compile time r=maribu a=hugueslarrive



Co-authored-by: Hugues Larrive <hlarrive@pm.me>
This commit is contained in:
bors[bot] 2023-06-14 07:38:17 +00:00 committed by GitHub
commit 61d7c4028e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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