Fix I/O expander driver name
Change-Id: Ic8ced26fbc8354fda1a95373c483102e716bb9ad
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/kudzu/+/191773
Reviewed-by: Kayce Basques <kayce@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed-Auto-Submit: Kayce Basques <kayce@google.com>
Reviewed-by: Anthony DiGirolamo <tonymd@google.com>
diff --git a/applications/app_common_impl/BUILD.gn b/applications/app_common_impl/BUILD.gn
index 6b24ad6..5be9840 100644
--- a/applications/app_common_impl/BUILD.gn
+++ b/applications/app_common_impl/BUILD.gn
@@ -79,7 +79,7 @@
"//lib/icm42670p",
"//lib/kudzu_imu_icm42670p",
"//lib/max17048",
- "//lib/tca9535",
+ "//lib/pi4ioe5v6416",
]
pw_source_set("pico_st7789") {
diff --git a/applications/app_common_impl/common_pico.cc b/applications/app_common_impl/common_pico.cc
index 3e746ff..d38065b 100644
--- a/applications/app_common_impl/common_pico.cc
+++ b/applications/app_common_impl/common_pico.cc
@@ -26,6 +26,7 @@
#include "icm42670p/device.h"
#include "kudzu_imu_icm42670p/imu.h"
#include "max17048/device.h"
+#include "pi4ioe5v6416/device.h"
#include "pico/stdlib.h"
#include "pw_digital_io_rp2040/digital_io.h"
#include "pw_i2c_rp2040/initiator.h"
@@ -41,7 +42,6 @@
#include "pw_thread_freertos/context.h"
#include "pw_thread_freertos/options.h"
#include "pw_touchscreen_ft6236/touchscreen.h"
-#include "tca9535/device.h"
#if defined(DISPLAY_TYPE_ILI9341)
#include "pw_display_driver_ili9341/display_driver.h"
@@ -247,7 +247,7 @@
pw::i2c::PicoInitiator i2c0_bus(ki2c0Config);
pw::i2c::PicoInitiator i2c1_bus(ki2c1Config);
-pw::tca9535::Device io_expander(i2c1_bus);
+pw::pi4ioe5v6416::Device io_expander(i2c1_bus);
kudzu::icm42670p::Device imu(i2c0_bus);
pw::max17048::Device fuel_guage(i2c0_bus);
pw::ft6236::Device touch_screen_controller(i2c0_bus);
diff --git a/lib/tca9535/BUILD.gn b/lib/pi4ioe5v6416/BUILD.gn
similarity index 92%
rename from lib/tca9535/BUILD.gn
rename to lib/pi4ioe5v6416/BUILD.gn
index 048a877..276b01d 100644
--- a/lib/tca9535/BUILD.gn
+++ b/lib/pi4ioe5v6416/BUILD.gn
@@ -19,13 +19,13 @@
include_dirs = [ "public" ]
}
-pw_source_set("tca9535") {
+pw_source_set("pi4ioe5v6416") {
public_configs = [ ":default_config" ]
public_deps = [
"$dir_pw_i2c:initiator",
"$dir_pw_status",
]
- public = [ "public/tca9535/device.h" ]
+ public = [ "public/pi4ioe5v6416/device.h" ]
deps = [
"$dir_pw_digital_io",
"$dir_pw_i2c:register_device",
diff --git a/lib/tca9535/device.cc b/lib/pi4ioe5v6416/device.cc
similarity index 90%
rename from lib/tca9535/device.cc
rename to lib/pi4ioe5v6416/device.cc
index 78bbc93..2006bd9 100644
--- a/lib/tca9535/device.cc
+++ b/lib/pi4ioe5v6416/device.cc
@@ -12,13 +12,13 @@
// License for the specific language governing permissions and limitations under
// the License.
-#include "tca9535/device.h"
+#include "pi4ioe5v6416/device.h"
#include <chrono>
#include <cstddef>
#include <cstdint>
-#define PW_LOG_MODULE_NAME "tca9535"
+#define PW_LOG_MODULE_NAME "pi4ioe5v6416"
#define PW_LOG_LEVEL PW_LOG_LEVEL_DEBUG
#include "pw_bytes/bit.h"
@@ -30,7 +30,7 @@
using ::pw::Status;
using namespace std::chrono_literals;
-namespace pw::tca9535 {
+namespace pw::pi4ioe5v6416 {
namespace {
@@ -63,9 +63,9 @@
kAddress, pw::chrono::SystemClock::for_at_least(10ms)));
if (probe_result != pw::OkStatus()) {
- PW_LOG_DEBUG("TCA9535 Probe Failed");
+ PW_LOG_DEBUG("pi4ioe5v6416 Probe Failed");
} else {
- PW_LOG_DEBUG("TCA9535 Probe Ok");
+ PW_LOG_DEBUG("pi4ioe5v6416 Probe Ok");
}
return probe_result;
}
@@ -88,4 +88,4 @@
}
}
-} // namespace pw::tca9535
+} // namespace pw::pi4ioe5v6416
diff --git a/lib/tca9535/public/tca9535/device.h b/lib/pi4ioe5v6416/public/pi4ioe5v6416/device.h
similarity index 93%
rename from lib/tca9535/public/tca9535/device.h
rename to lib/pi4ioe5v6416/public/pi4ioe5v6416/device.h
index c571beb..89d7f91 100644
--- a/lib/tca9535/public/tca9535/device.h
+++ b/lib/pi4ioe5v6416/public/pi4ioe5v6416/device.h
@@ -21,7 +21,7 @@
#include "pw_i2c/register_device.h"
#include "pw_status/status.h"
-namespace pw::tca9535 {
+namespace pw::pi4ioe5v6416 {
class Device {
public:
@@ -37,4 +37,4 @@
pw::i2c::RegisterDevice device_;
};
-} // namespace pw::tca9535
+} // namespace pw::pi4ioe5v6416