Skip to content
Snippets Groups Projects
Commit 9179dd3b authored by Eric Millbrandt's avatar Eric Millbrandt Committed by Tom Rix
Browse files

Reset i2c slave devices during init on mpc5xxx cpus


Reset any i2c devices that may have been interrupted during a system reset.
Normally this would be accomplished by clocking the line until SCL and SDA
are released and then sending a start condtiion (From an Atmel datasheet).
There is no direct access to the i2c pins so instead create start commands
through the i2c interface.  Send a start command then delay for the SDA Hold
time, repeat this by disabling/enabling the bus a total of 9 times.

Signed-off-by: default avatarEric Millbrandt <emillbrandt@dekaresearch.com>
parent e99846c0
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment