-// eeprom_write(0x0080, global_data, strlen(global_data));
-
-// delay();
-
-// for (int i = 0; i < 0xFFFF; i++) {
-// eeprom_read(i);
-// delay();
-// }
-
- //delay();
-
-// delay();
-// eeprom_read(0x0000, 1);
-// delay();
-// eeprom_read(0x0000, 2);
- delay();
- eeprom_read(0x0000, 4);
- delay();
-
-//W uint32_t statusr;
-//W
-//W start_condition();
-//W rwrite(I2C_DR, WRITE_CMD); // write to address CMD
-//W if(!ack_recv())
-//W cputs("CAN'T REACH DEVICE");
-//W
-//W rwrite(I2C_DR, 0x00);
-//W if(!buf_empty())
-//W cputs("FAIL");
-//W rwrite(I2C_DR, 0x03);
-//W if(!buf_empty())
-//W cputs("FAIL");
-//W //rwrite(I2C_DR, 0x61);
-//W //if(!buf_empty())
-//W // cputs("FAIL");
-//W
-//W //statusr = *I2C_SR1;
-//W //statusr = *I2C_SR2;
-//W stop_condition();
-
-// start_condition();
-// rwrite(I2C_DR, 0xA0); // dummy write
-// if(!ack_recv())
-// cputs("CAN'T REACH DEVICE");
-//
-// rwrite(I2C_DR, 0x00);
-// if(!buf_empty())
-// cputs("FAIL");
-// rwrite(I2C_DR, 0x00);
-// if(!buf_empty())
-// cputs("FAIL");
-//
-//W delay();
-//W
-//W start_condition(); // restart condition
-//W rwrite(I2C_DR, 0xA1); // read? to address CMD
-//W if(!ack_recv())
-//W cputs("COULDN'T START READ CMD");
-//W
-//W
-//W data_recv();
-//W //cputs("NO RESPONSE");
-//W
-//W char a = (char) *I2C_DR;
-//W printf("DATA %c\n", a);
-//W
-//W stop_condition();
- //delay();
-
- //start_condition();
- //statusr = *I2C_SR1; // clear start_signal
- //regw_u32(I2C_DR, 0xC1, 0, OWRITE);
- //if(!ack_recv())
- // cputs("TIMEOUT2!");
- //statusr = *I2C_SR1;
- //statusr = *I2C_SR2;
- //regw_u32(I2C_DR, 0x7D, 0, OWRITE);
- //if(!buf_empty())
- // cputs("TIMEOUT3!");
- //stop_condition();
-
-/* delay();