| ??? 05/01/02 11:12 Read: times |
#22344 - RE: passing port pin to a function |
thx for your reply
What I'm trying to do is as folows: I have DGIO module that turns port bits on and off. I made reentrant function that sets or clears each port pin by name. i.e sfr RedLED = P1^3; sfr GreenLED = P1^4; sfr YellowLED = P2^6; I need to call this function either from timer interrupt or DGIO module, this is why I made it reentrant function. I need a function like this : DGIO_setDiscrete(RedLED, ON); in my function prototype should RedLED be a pointer or what? . I need to call the function to set or clear each port pin by its functional name. |



