Code used to test I2C speeds

This commit is contained in:
bsongis
2015-05-31 16:09:14 +02:00
parent 6682d0c6d3
commit bbb5cd9fdb
+22
View File
@@ -282,6 +282,28 @@ void eepromFormat()
bool eepromOpen()
{
#if 0
ALERT("!!START!!", "START", AU_ERROR);
static uint16_t mybuffer[2048];
for (int i=0; i<2048; i++) {
mybuffer[i] = i;
}
eepromWriteBlock((uint8_t *)mybuffer, 0, sizeof(mybuffer));
eepromReadBlock((uint8_t *)mybuffer, 0, sizeof(mybuffer));
for (int i=0; i<2048; i++) {
if (mybuffer[i] != i) {
ALERT("!!ERROR!!", "ERROR", AU_ERROR);
}
}
ALERT("!!OK!!", "OK", AU_ERROR);
#endif
eepromReadBlock((uint8_t *)&eeFs, 0, sizeof(eeFs));
#ifdef SIMU