aboutsummaryrefslogtreecommitdiffstats
path: root/src/atsam/i2c.c
Commit message (Collapse)AuthorAgeFilesLines
* i2c: handle errors at i2ccmdsTimofey Titovets2024-10-261-2/+7
| | | | Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* atsam: Add support for SAM E70Alex Maclean2022-03-261-24/+52
| | | | Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* atsam: Add get_pclock_frequency() helper functionKevin O'Connor2021-11-201-2/+3
| | | | | | Add get_pclock_frequency() and use it to calculate peripheral clocks. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsam: Fix I2C bitrateAlex Maclean2021-11-201-2/+2
| | | | | | | Multiplying the desired bitrate by 4 results in half the desired period and thus twice the desired bitrate. Signed-off-by: Alex Maclean <monkeh@monkeh.net>
* atsam: Enable pullup on i2c SDA lineKevin O'Connor2019-05-231-4/+4
| | | | | | The internal pullup helps ensure i2c errors are detected properly. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsam: Improve i2c timeout detectionKevin O'Connor2019-05-231-15/+10
| | | | | | Unify timeout detection in i2c_write() and i2c_read(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsam: Minor whitespace changes to i2c.cKevin O'Connor2019-05-231-27/+18
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsam: Use enumerations for buses and reserve pinsKevin O'Connor2019-04-041-1/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* atsam: Add MACH_SAM3X, MACH_SAM4, MACH_SAM4E, MACH_SAM4S definitionsKevin O'Connor2019-01-181-2/+2
| | | | | | | Add additional Kconfig definitions to make it easier to select the correct code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* src: Rename source folders for atsam and atsamd architecturesFlorian Heilmann2019-01-121-0/+175
Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>