WIP: bit-banging I2C support for EEPROM access on QMOD

for now, it just continuously reads the EEPROM bytes and dumps them to
the serial console for testing.
This commit is contained in:
Harald Welte
2016-08-21 19:33:24 +02:00
parent a02b641650
commit 226b40aba4
4 changed files with 225 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
#pragma once
void i2c_pin_init(void);
int eeprom_write_byte(uint8_t slave, uint8_t addr, uint8_t byte);
int eeprom_read_byte(uint8_t slave, uint8_t addr);