Hi Seb, You're right that it is *currently* only for the software lib. But i2c (in general) has an issue that after a reset of the mater, slaves are in an undeterminded state. It is possible to clear the i2c bus with a specific sequence and I already implemented this in the software lib. I also intend to add this to the hardware lib, but it looks like this requires pin toggling. If this is the case, the pin definitions are needed for hardware too.
Joep 2009/1/11 Sebastien Lelong <[email protected]>: > Hi guys, > > Board files contains a section for i2c: > > """ > ;@jallib section i2c > -- I2C io definition > var volatile bit i2c_scl is pin_b4 > var volatile bit i2c_scl_direction is pin_b4_direction > var volatile bit i2c_sda is pin_b1 > var volatile bit i2c_sda_direction is pin_b1_direction > """ > > > I understand this is for i2c software, not i2c hardware (since no pin > definition is needed in this case). Can we agree to rename the section to > "i2c-software", so it explicitly stated what this is about (it's quite > confusing right now, I think). > > > Cheers, > Seb > -- > Sébastien Lelong > http://www.sirloon.net > http://sirbot.org > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jallib?hl=en -~----------~----~----~----~------~----~------~--~---
