commit | 226b40aba4afbd2cd18d3cca4e99abcd109b368e | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Sun Aug 21 19:33:24 2016 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Sun Aug 21 19:33:24 2016 +0200 |
tree | e2a76cf7c783299ab83735a85c77eff73fd84ba2 | |
parent | a02b641650175c1a728cf26769b2dd0e28ff4ea6 [diff] [blame] |
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.
diff --git a/firmware/src_simtrace/i2c.h b/firmware/src_simtrace/i2c.h new file mode 100644 index 0000000..15e4b37 --- /dev/null +++ b/firmware/src_simtrace/i2c.h
@@ -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);