Re: Defines and Macros locations
Those macros mentioned in message #1: U2STACLR and _U2STA_OERR_MASK,
are not defined by Harmony, but by XC32 compiler.
Or more precisely by device support files that are distributed and installed together with the compiler.
Those symbol definitions are made available by:
Individual device support file for each PIC32 device type are stored somewhere like:
"C:\Program Files (x86)\Microchip\xc32\v2.30\pic32mx\include\proc\*.h"
U2STACLR is a variable name for a register in SFR space.
U2STA register, there are also:
U2STAINV registers, that control hardware gates in Peripheral registers,
that combine existing register value in U2STA, with the mask value written to _CLR, _SET or _INV register.
Read about ...CLR, ...SET and ...INV in Datasheet and FRM document for the PIC32 device you are using.