diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-05-28 13:49:46 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-05-28 13:49:46 +0200 |
commit | cf3ba89c46301bb8c0a1eda470c353801117fc0b (patch) | |
tree | 4b9c954fc1af7fce01bbae8106a56a586a2d170c /include/driver/soft_i2c.h | |
parent | 060efcf52cb596194a037b4e11f5035fc969efd6 (diff) |
softi2c driver: move to kconfig-first approach
Diffstat (limited to 'include/driver/soft_i2c.h')
-rw-r--r-- | include/driver/soft_i2c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/driver/soft_i2c.h b/include/driver/soft_i2c.h index b581a38..e53b13e 100644 --- a/include/driver/soft_i2c.h +++ b/include/driver/soft_i2c.h @@ -11,7 +11,7 @@ class SoftI2C { SoftI2C(const SoftI2C ©); unsigned char sda, scl; -#if SOFTI2C_PULLUP_EXTERNAL +#if CONFIG_driver_softi2c_pullup_dynamic_external unsigned char sda_pull, scl_pull; #endif @@ -21,7 +21,7 @@ class SoftI2C { unsigned char rx(bool send_ack); public: -#if SOFTI2C_PULLUP_EXTERNAL +#if CONFIG_driver_softi2c_pullup_dynamic_external SoftI2C(unsigned char sda, unsigned char scl, unsigned char sda_pull, unsigned char scl_pull) : sda(sda), scl(scl), sda_pull(sda_pull), scl_pull(scl_pull) {} |