mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-12 00:47:49 -04:00
Sansa Connect: Use deviceid in USB Serial Number
Atmel AT88SC6416C CryptoMemory is almost I2C compatible. The device is connected to bitbanged I2C bus shared with compliant I2C devices. Change-Id: Iec54702db1bdfb93c01291eef18ec60391c63b16
This commit is contained in:
parent
663539619c
commit
b4ecd612f7
8 changed files with 183 additions and 0 deletions
|
|
@ -294,4 +294,12 @@ int i2c_read_bytes(unsigned short address, unsigned short reg,
|
|||
return i2c_read_data(dm320_i2c_bus, address, reg, buf, count);
|
||||
}
|
||||
|
||||
int i2c_write_read_bytes(unsigned short address,
|
||||
const unsigned char* buf_write, int count_write,
|
||||
unsigned char* buf_read, int count_read)
|
||||
{
|
||||
return i2c_write_read_data(dm320_i2c_bus, address, buf_write, count_write,
|
||||
buf_read, count_read);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue