mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-20 12:03:52 +01:00
Merge #19734
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:
commit
61d7c4028e
@ -272,15 +272,21 @@ extern "C"
|
|||||||
* of 0 to 7.
|
* of 0 to 7.
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
#ifndef PCF8575_BASE_ADDR
|
||||||
#define PCF8575_BASE_ADDR (0x20) /**< PCF8575 I2C slave base address.
|
#define PCF8575_BASE_ADDR (0x20) /**< PCF8575 I2C slave base address.
|
||||||
Addresses are then in range from
|
Addresses are then in range from
|
||||||
0x20 to 0x27 */
|
0x20 to 0x27 */
|
||||||
|
#endif
|
||||||
|
#ifndef PCF8574_BASE_ADDR
|
||||||
#define PCF8574_BASE_ADDR (0x20) /**< PCF8574 I2C slave base address.
|
#define PCF8574_BASE_ADDR (0x20) /**< PCF8574 I2C slave base address.
|
||||||
Addresses are then in range from
|
Addresses are then in range from
|
||||||
0x20 to 0x27 */
|
0x20 to 0x27 */
|
||||||
|
#endif
|
||||||
|
#ifndef PCF8574A_BASE_ADDR
|
||||||
#define PCF8574A_BASE_ADDR (0x38) /**< PCF8574A I2C slave base address.
|
#define PCF8574A_BASE_ADDR (0x38) /**< PCF8574A I2C slave base address.
|
||||||
Addresses are then in range from
|
Addresses are then in range from
|
||||||
0x38 to 0x3f */
|
0x38 to 0x3f */
|
||||||
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user