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:
Tomasz Moń 2021-07-10 08:56:32 +02:00
parent 663539619c
commit b4ecd612f7
No known key found for this signature in database
GPG key ID: 92BA8820D4D517C8
8 changed files with 183 additions and 0 deletions

View file

@ -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