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?