PINMODE_INVERT_OE
invert_oe = mode & PINMODE_INVERT_OE;
mode &= ~PINMODE_INVERT_OE;
#define PINMODE(m, i) ((m) | ((i) * PINMODE_INVERT_OE))