summaryrefslogtreecommitdiff
path: root/include/driver
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-05-28 13:49:46 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2021-05-28 13:49:46 +0200
commitcf3ba89c46301bb8c0a1eda470c353801117fc0b (patch)
tree4b9c954fc1af7fce01bbae8106a56a586a2d170c /include/driver
parent060efcf52cb596194a037b4e11f5035fc969efd6 (diff)
softi2c driver: move to kconfig-first approach
Diffstat (limited to 'include/driver')
-rw-r--r--include/driver/soft_i2c.h4
-rw-r--r--include/driver/tsl2591.h2
2 files changed, 3 insertions, 3 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 &copy);
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) {}
diff --git a/include/driver/tsl2591.h b/include/driver/tsl2591.h
index 0e9e8c8..faf837e 100644
--- a/include/driver/tsl2591.h
+++ b/include/driver/tsl2591.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Daniel Friesel
+ * Copyright 2021 Daniel Friesel
*
* SPDX-License-Identifier: BSD-2-Clause
*/