diff options
Diffstat (limited to 'src/i2ccmds.c')
-rw-r--r-- | src/i2ccmds.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/i2ccmds.c b/src/i2ccmds.c index cde0f6fa..69af011b 100644 --- a/src/i2ccmds.c +++ b/src/i2ccmds.c @@ -9,10 +9,7 @@ #include "command.h" //sendf #include "sched.h" //DECL_COMMAND #include "board/gpio.h" //i2c_write/read/setup - -struct i2cdev_s { - struct i2c_config i2c_config; -}; +#include "i2ccmds.h" void command_config_i2c(uint32_t *args) @@ -25,6 +22,12 @@ command_config_i2c(uint32_t *args) DECL_COMMAND(command_config_i2c, "config_i2c oid=%c i2c_bus=%u rate=%u address=%u"); +struct i2cdev_s * +i2cdev_oid_lookup(uint8_t oid) +{ + return oid_lookup(oid, command_config_i2c); +} + void command_i2c_write(uint32_t *args) { |