SD-MMC v1.9 Driver - I2CLock???
MacTuxLin
Posts: 821
Hello All or Kye,
I seems to have lost (okay, forgotten to be exact) which thread I downloaded this latest version that has this I2CLock thingy. May I know under what circumstances would this be used? Does it mean if > 1 cog trying to access RTC, I'll need this?
Thanks a lot!
I seems to have lost (okay, forgotten to be exact) which thread I downloaded this latest version that has this I2CLock thingy. May I know under what circumstances would this be used? Does it mean if > 1 cog trying to access RTC, I'll need this?
Thanks a lot!
Comments
So, imagine if you were sharing the I2C bus and you wanted to have the cog to lock the bus as it used it. So, the RTC driver is setup such that if it is given a lock number (0-7) it will lock the I2C bus. This only works however if all your accessor functions to the I2C bus support locking. (Look at the RTC driver code...)
Parallax will have some more documentation available about all this when Parallax Semi comes out.
Thanks,
for my drivers, I use LOCK 0 for external memory access/sharing, and LOCK 1 for spi bus sharing