diff options
author | Timofey Titovets <nefelim4ag@gmail.com> | 2024-09-28 19:51:59 +0200 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2024-10-26 22:06:30 -0400 |
commit | 1c3b30b8159717a416e2dcc9bf92038151f1fcd5 (patch) | |
tree | 5f98ec2e3706f8ac728371c56da35ce4186d7910 /src/i2ccmds.h | |
parent | 1563a68144500f6b0fea5dbd693e7648eb27b5f2 (diff) | |
download | kutter-1c3b30b8159717a416e2dcc9bf92038151f1fcd5.tar.gz kutter-1c3b30b8159717a416e2dcc9bf92038151f1fcd5.tar.xz kutter-1c3b30b8159717a416e2dcc9bf92038151f1fcd5.zip |
ldc1612: shutdown on i2c errors
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
Diffstat (limited to 'src/i2ccmds.h')
-rw-r--r-- | src/i2ccmds.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i2ccmds.h b/src/i2ccmds.h index 5e54b454..55c97b6b 100644 --- a/src/i2ccmds.h +++ b/src/i2ccmds.h @@ -26,5 +26,6 @@ void i2cdev_set_software_bus(struct i2cdev_s *i2c, struct i2c_software *is); int i2c_dev_read(struct i2cdev_s *i2c, uint8_t reg_len, uint8_t *reg , uint8_t read_len, uint8_t *read); int i2c_dev_write(struct i2cdev_s *i2c, uint8_t write_len, uint8_t *data); +void i2c_shutdown_on_err(int ret); #endif |