|
Re: I2C slave driver solution for Beaglebone Black
|
02/10/2022 7:49 AM
post121721
|
Re: I2C slave driver solution for Beaglebone Black
Fuzzing around with GPIO tends to never get stable and reliable. I would try to implement a slave mode driver directly
for the on-board I2C controller, based on the master driver source in the BSP. Some routines like setting baud rate and
so on can probably be reused.
The only thing you need to add entirely new is the communication interface to userland. A small resource manager should
do.
You can't re-use the one from master driver because it is buried in libi2c-master.a, and kind of tailored to the master
role.
Regards,
Albrecht
|
|
|