AnsweredAssumed Answered

SRU/FLAG Macros for 2136x?

Question asked by Laz on Jun 24, 2009
Latest reply on Jun 29, 2009 by Laz

I know I'm just being lazy, but does anyone have macros or routines to set and clear FLAGS or PINS from C?

 

For example: if I have FLAG5 tied to DPI_PIN9, which controls the GRN_LED, I'd like to have a function that sets or clears the LED:

 

setPIN (GRN_LED); // set FLAG5 HI

 

clrPIN (RED_LED); // set FLAG6 LO

 

Or should I bypass using the FLAGs, as they can only be reached from assembler?

 

Suggestions?

 

Thanks

Outcomes