??? 12/15/08 08:41 Read: times |
#160938 - function reuse on multiple ports |
Hi all
I have a bit banged I2C library function. I would like to run this one common function on multiple bit banged I2C ports from my controller (LPC925) for instance P1.0 = SDA_1 P1.1 = SCL_1 P1.2 = SDA_2 P1.3 = SCL_2 and so on. I am using C, does any one have some wonderful way that I could do this?? I was thinking of a lookup table of port pins but even that seems messy. Just some ideas would be fine, it doesn't even need to relate to I2C, how would you do it on blinking an LED?? Thanks Marshall |
Topic | Author | Date |
function reuse on multiple ports | 01/01/70 00:00 | |
What do you want burn? | 01/01/70 00:00 | |
Surely a you connect multiple devices to a single bus![]() | 01/01/70 00:00 |