summaryrefslogtreecommitdiff
path: root/firmware/drivers/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/i2c.c')
-rw-r--r--firmware/drivers/i2c.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/drivers/i2c.c b/firmware/drivers/i2c.c
index ed12145da9..f44c0a9afd 100644
--- a/firmware/drivers/i2c.c
+++ b/firmware/drivers/i2c.c
@@ -23,6 +23,8 @@
23#include "debug.h" 23#include "debug.h"
24#include "system.h" 24#include "system.h"
25 25
26#if CONFIG_I2C != I2C_H100 /* FIX: not yet done */
27
26/* cute little functions, atomic read-modify-write */ 28/* cute little functions, atomic read-modify-write */
27#if CONFIG_I2C == I2C_GMINI 29#if CONFIG_I2C == I2C_GMINI
28 30
@@ -279,3 +281,9 @@ int i2c_read(int address, unsigned char* buf, int count )
279 i2c_stop(); 281 i2c_stop();
280 return x; 282 return x;
281} 283}
284#else /* not h100 i2c */
285void i2c_init(void)
286{
287 /* a dummy */
288}
289#endif /* h100 i2c */