diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-14 19:31:20 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-14 19:31:20 +0200 |
commit | dbe08a8cd3d29cee7ba1adae4841c0a831784f31 (patch) | |
tree | 88a080b298ec60669fe4a0eecf28b4c96675d267 /test/pbdrv/mod.c | |
parent | 33ff43ccd7c619f885b3dd4e9a2e0ffe7ed0875c (diff) |
puzzle bus message routing functions
Diffstat (limited to 'test/pbdrv/mod.c')
-rw-r--r-- | test/pbdrv/mod.c | 6 |
1 files changed, 6 insertions, 0 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); +} + |