aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/fx2/common/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/fx2/common/i2c.c')
-rw-r--r--firmware/fx2/common/i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/fx2/common/i2c.c b/firmware/fx2/common/i2c.c
index 0f238b5cf..dd31a5f54 100644
--- a/firmware/fx2/common/i2c.c
+++ b/firmware/fx2/common/i2c.c
@@ -30,7 +30,7 @@
// returns non-zero if successful, else 0
unsigned char
-i2c_read (unsigned char addr, xdata unsigned char *buf, unsigned char len)
+i2c_read (unsigned char addr, __xdata unsigned char *buf, unsigned char len)
{
volatile unsigned char junk;
@@ -89,7 +89,7 @@ i2c_read (unsigned char addr, xdata unsigned char *buf, unsigned char len)
// returns non-zero if successful, else 0
unsigned char
-i2c_write (unsigned char addr, xdata const unsigned char *buf, unsigned char len)
+i2c_write (unsigned char addr, __xdata const unsigned char *buf, unsigned char len)
{
while (I2CS & bmSTOP) // wait for stop to clear
;