Add support for multiple I2C buses
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user