mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
imx233/i2c: relax timeout
Change-Id: Ie9cf8c8bb0a89d9cbcc795e04559864b9fbaf639
This commit is contained in:
parent
a31c50ff46
commit
5c7167c79c
1 changed files with 4 additions and 4 deletions
|
|
@ -240,7 +240,7 @@ int i2c_write(int device, const unsigned char* buf, int count)
|
|||
imx233_i2c_begin();
|
||||
imx233_i2c_add(true, true, &addr, 1, false); /* start + dev addr */
|
||||
imx233_i2c_add(false, true, (void *)buf, count, true); /* data + stop */
|
||||
return imx233_i2c_end(1);
|
||||
return imx233_i2c_end(10);
|
||||
}
|
||||
|
||||
int i2c_read(int device, unsigned char* buf, int count)
|
||||
|
|
@ -249,7 +249,7 @@ int i2c_read(int device, unsigned char* buf, int count)
|
|||
imx233_i2c_begin();
|
||||
imx233_i2c_add(true, true, &addr, 1, false); /* start + dev addr */
|
||||
imx233_i2c_add(false, false, buf, count, true); /* data + stop */
|
||||
return imx233_i2c_end(1);
|
||||
return imx233_i2c_end(10);
|
||||
}
|
||||
|
||||
int i2c_readmem(int device, int address, unsigned char* buf, int count)
|
||||
|
|
@ -260,7 +260,7 @@ int i2c_readmem(int device, int address, unsigned char* buf, int count)
|
|||
imx233_i2c_add(true, true, start, 2, false); /* start + dev addr + addr */
|
||||
imx233_i2c_add(true, true, &addr_rd, 1, false); /* start + dev addr */
|
||||
imx233_i2c_add(false, false, buf, count, true); /* data + stop */
|
||||
return imx233_i2c_end(1);
|
||||
return imx233_i2c_end(10);
|
||||
}
|
||||
|
||||
int i2c_writemem(int device, int address, const unsigned char* buf, int count)
|
||||
|
|
@ -269,5 +269,5 @@ int i2c_writemem(int device, int address, const unsigned char* buf, int count)
|
|||
imx233_i2c_begin();
|
||||
imx233_i2c_add(true, true, start, 2, false); /* start + dev addr + addr */
|
||||
imx233_i2c_add(false, true, (void *)buf, count, true); /* data + stop */
|
||||
return imx233_i2c_end(1);
|
||||
return imx233_i2c_end(10);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue