Commit Graph

8 Commits

Author SHA1 Message Date
King Kévin d51c18ab5a doc: fix documentation 2020-01-03 00:16:59 +01:00
King Kévin de66829811 i2c_master: minor, fix doc 2019-12-12 21:30:12 +01:00
King Kévin a50a181b86 I2C: fix read NACK
NACKing in receive mode is different when 1, 2, or more bytes are
read.
see the reference manual for the cases and how to handle them.
2019-03-26 18:12:22 +01:00
King Kévin ef4685a9a3 I2C: don't block on reset
when resetting the GPIO lines are toggles.
when this is not effective it used to block.
not it just warns the used it failed.
2019-03-26 18:05:18 +01:00
King Kévin 396c7852e7 I2C: add timeout to send start condition
sometimes the internal state f the I2C peripheral is confused,
and sending a start condition is not possible and the
corresponding registers will not be set.
see the errata for more details.
as workaround a timer is used, resetting the I2C is case it times
out
2019-03-26 18:01:23 +01:00
King Kévin 593b0e0e25 take changes from busvoodoo branch 2018-04-03 16:59:02 +02:00
King Kévin 62bfaf3973 cherry-pick from busvoodoo branch, part 4 2018-02-18 15:21:18 +01:00
King Kévin 6d3e826c18 add general I2C library 2017-04-03 13:07:03 +02:00