aboutsummaryrefslogtreecommitdiffstats
path: root/src/i2c_software.c
Commit message (Collapse)AuthorAgeFilesLines
* i2c_software: pass pulse ticks from hostTimofey Titovets2025-04-171-12/+5
| | | | Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* i2c_software: reduce gpio calls countTimofey Titovets2025-04-171-10/+12
| | | | | | | | | gpio reset calls are heavy. gpio state are persistent between calls. Drop useless calls. Avoid calls if SDA does not changed. Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* i2c_software: allow freq adjustTimofey Titovets2025-04-171-0/+7
| | | | Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* i2c_software: Fix i2c_delay()Kevin O'Connor2025-04-081-12/+9
| | | | | | | The i2c_delay() function did not properly handle counter rollovers. It also performed an expensive run-time divide. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* i2c_software: forward errors to i2ccmdTimofey Titovets2024-10-261-18/+39
| | | | Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* i2c: handle errors at i2ccmdsTimofey Titovets2024-10-261-2/+6
| | | | Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
* i2c_software: Implementation of software i2c (#6141)BIGTREETECH2023-06-071-0/+181
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>