Add support for multiple I2C buses

This commit is contained in:
Jeremy Soller
2020-01-15 16:25:30 -07:00
parent efa9fb7fb4
commit 93545fb83c
16 changed files with 152 additions and 123 deletions

View File

@@ -5,7 +5,7 @@
#endif
#ifdef I2C_DEBUGGER
#include <common/i2c.h>
#include <ec/i2c.h>
#endif
int putchar(int c) {
@@ -14,7 +14,7 @@ int putchar(int c) {
SBUF = byte;
#endif
#ifdef I2C_DEBUGGER
i2c_send(I2C_DEBUGGER, &byte, 1);
i2c_send(&I2C_4, I2C_DEBUGGER, &byte, 1);
#endif
return (int)byte;
}