aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-06-14 19:31:20 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-06-14 19:31:20 +0200
commitdbe08a8cd3d29cee7ba1adae4841c0a831784f31 (patch)
tree88a080b298ec60669fe4a0eecf28b4c96675d267 /test
parent33ff43ccd7c619f885b3dd4e9a2e0ffe7ed0875c (diff)
puzzle bus message routing functions
Diffstat (limited to 'test')
-rw-r--r--test/pbdrv/mod.c6
-rw-r--r--test/pbdrv/msg.cpp2
2 files changed, 7 insertions, 1 deletions
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 <stdio.h>
+
#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);