From dbe08a8cd3d29cee7ba1adae4841c0a831784f31 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 14 Jun 2024 19:31:20 +0200 Subject: puzzle bus message routing functions --- test/pbdrv/mod.c | 6 ++++++ test/pbdrv/msg.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/pbdrv/mod.c b/test/pbdrv/mod.c index 81e4ebf..5c4c95e 100644 --- a/test/pbdrv/mod.c +++ b/test/pbdrv/mod.c @@ -1,6 +1,12 @@ +#include + #include "pb-mod.h" #include "pb-types.h" const char * PB_MOD_NAME = "test"; const i2c_addr_t PB_MOD_ADDR = 0x08; +void pb_i2c_send(i2c_addr_t addr, const uint8_t * buf, size_t sz) { + printf("[0x%02x]: buf[%lu]\n", addr & 0x7f, sz); +} + diff --git a/test/pbdrv/msg.cpp b/test/pbdrv/msg.cpp index d58d6f3..ca23bc7 100644 --- a/test/pbdrv/msg.cpp +++ b/test/pbdrv/msg.cpp @@ -34,7 +34,7 @@ TEST(pb_msg_rw, cmd_req_read) { } TEST(pb_msg_rw, cmd_req_magic) { - pb_buf_t buf = pb_send_req_magic(); + pb_buf_t buf = pb_send_magic_req(); ASSERT_NE(buf.data, nullptr); ASSERT_GE(buf.size, 0); -- cgit v1.2.3