aboutsummaryrefslogtreecommitdiffstats
path: root/src/avr/i2c.c
Commit message (Collapse)AuthorAgeFilesLines
* avr: implement i2c_readArksine2020-01-131-1/+18
| | | | Signed-off-by: Eric Callahan <arksine.code@gmail.com>
* avr: Use enumerations for buses and reserve pinsKevin O'Connor2019-04-041-0/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* avr: Wrap code to 80 columnsKevin O'Connor2019-02-271-1/+3
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* i2ccmds: Pass the i2c address as a 7-bit number (0-127)Kevin O'Connor2019-01-071-1/+1
| | | | | | | | | | | | | | | | The sam3 i2c code and the linux code use a 7-bit i2c address, while the avr, lpc176x, and samd21 i2c code uses an 8-bit address with the least significant bit always zero. A similar issue occurred in the host code (sx1509.py and replicape.py use 7-bit addresses while uc1701.py and mcp4451.py use 8-bit addresses). Consistently use 7-bit addresses in all the code. This breaks compatibility between host and mcu software, so make a change to the config_i2c command to force users to synchronize software updates. This also breaks common Smoothieboard configs, so update the mcp4451 code to validate the i2c_address. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* avr: Add support for sending I2C messagesKevin O'Connor2018-11-231-0/+103
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>