Update avr i2c to match new common i2c library

This commit is contained in:
Jeremy Soller
2019-11-13 19:26:04 -07:00
parent 7401a540e8
commit 97502b61b0
2 changed files with 40 additions and 49 deletions

View File

@ -1,6 +1,6 @@
#include <stdio.h>
#include <board/i2c.h>
#include <common/i2c.h>
uint8_t smbus_read(uint8_t address, uint8_t command, uint16_t * data) {
return i2c_get(address, command, (uint8_t *)data, 2);