summaryrefslogtreecommitdiffstats
path: root/bsps/arm/atsam/i2c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bsps/arm/: Scripted embedded brains header file clean upJoel Sherrill2022-03-102-12/+0
| | | | Updates #4625.
* bsp/atsam/i2c: Add error return and fix edge casesChristian Mauderer2022-02-101-50/+44
| | | | | | | | | | The driver didn't return with an error on (for example) a NACK on the bus. This adds the expected error return. Due to the new case that a transfer can be interrupted on an error, there were some new edge cases. This patch therefore also fixes these edge cases by removing the transfer_state that more or less duplicated the interrupt states. Fixes #4592
* bsp/atsam/i2c: Simplify driverChristian Mauderer2022-02-101-55/+37
| | | | | | | | | | Do some clean ups. Remove superfluous variables. Eliminate some overly complex logic (information about transfer and remaining bytes has been tracked redundantly in multiple variables). This patch doesn't change the behavior of the driver. Update #4592
* bsp/atsam: Use binary semaphore for I2CSebastian Huber2018-10-011-21/+18
| | | | | | | Remove superfluous sleep before each I2C transfer. Reset I2C module after transfer timeouts. Update #3534.
* bsps: Move I2C drivers to bspsSebastian Huber2018-04-232-0/+462
This patch is a part of the BSP source reorganization. Update #3285.