PIC32MZ: PPS needs to start from the SFR base address. Fix from Kristopher Tate

This commit is contained in:
Gregory Nutt 2015-03-22 08:13:28 -06:00
parent f172c0b17f
commit 16ece4e4bc

View File

@ -176,132 +176,132 @@
/* PPS Register Addresses *******************************************************************/
#define PIC32MZ_INTnR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_INTnR_OFFSET(n))
# define PIC32MZ_INT1R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_INT1R_OFFSET)
# define PIC32MZ_INT2R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_INT2R_OFFSET)
# define PIC32MZ_INT3R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_INT3R_OFFSET)
# define PIC32MZ_INT4R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_INT4R_OFFSET)
#define PIC32MZ_TnCKR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_TnCKR_OFFSET(n))
# define PIC32MZ_I2TKR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_I2TKR_OFFSET)
# define PIC32MZ_I3TKR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_I3TKR_OFFSET)
# define PIC32MZ_I4TKR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_I4TKR_OFFSET)
# define PIC32MZ_I5TKR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_I5TKR_OFFSET)
# define PIC32MZ_I6TKR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_I6TKR_OFFSET)
# define PIC32MZ_I7TKR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_I7TKR_OFFSET)
# define PIC32MZ_I8TKR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_I8TKR_OFFSET)
# define PIC32MZ_I9TKR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_I9TKR_OFFSET)
#define PIC32MZ_ICnR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_ICnR_OFFSET(n))
# define PIC32MZ_IC1R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_IC1R_OFFSET)
# define PIC32MZ_IC2R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_IC2R_OFFSET)
# define PIC32MZ_IC3R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_IC3R_OFFSET)
# define PIC32MZ_IC4R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_IC4R_OFFSET)
# define PIC32MZ_IC5R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_IC5R_OFFSET)
# define PIC32MZ_IC6R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_IC6R_OFFSET)
# define PIC32MZ_IC7R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_IC7R_OFFSET)
# define PIC32MZ_IC8R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_IC8R_OFFSET)
# define PIC32MZ_IC9R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_IC9R_OFFSET)
#define PIC32MZ_OCFAR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_OCFAR_OFFSET)
#define PIC32MZ_UnRXR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_UnRXR_OFFSET(n))
# define PIC32MZ_U1RXR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_U1RXR_OFFSET)
# define PIC32MZ_U2RXR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_U2RXR_OFFSET)
# define PIC32MZ_U3RXR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_U3RXR_OFFSET)
# define PIC32MZ_U4RXR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_U4RXR_OFFSET)
# define PIC32MZ_U5RXR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_U5RXR_OFFSET)
# define PIC32MZ_U6RXR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_U6RXR_OFFSET)
#define PIC32MZ_UnCTSR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_UnCTSR_OFFSET(n)
# define PIC32MZ_U1CTSR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_U1CTSR_OFFSET)
# define PIC32MZ_U2CTSR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_U2CTSR_OFFSET)
# define PIC32MZ_U3CTSR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_U3CTSR_OFFSET)
# define PIC32MZ_U4CTSR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_U4CTSR_OFFSET)
# define PIC32MZ_U5CTSR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_U5CTSR_OFFSET)
# define PIC32MZ_U6CTSR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_U6CTSR_OFFSET)
#define PIC32MZ_SDInR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SDInR_OFFSET(n))
# define PIC32MZ_SDI1R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SDI1R_OFFSET)
# define PIC32MZ_SDI2R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SDI2R_OFFSET)
# define PIC32MZ_SDI3R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SDI3R_OFFSET)
# define PIC32MZ_SDI4R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SDI4R_OFFSET)
# define PIC32MZ_SDI5R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SDI5R_OFFSET)
# define PIC32MZ_SDI6R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SDI6R_OFFSET)
#define PIC32MZ_SSnR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SSnR_OFFSET(n))
# define PIC32MZ_SS1R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SS1R_OFFSET)
# define PIC32MZ_SS2R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SS2R_OFFSET)
# define PIC32MZ_SS3R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SS3R_OFFSET)
# define PIC32MZ_SS4R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SS4R_OFFSET)
# define PIC32MZ_SS5R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SS5R_OFFSET)
# define PIC32MZ_SS6R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_SS6R_OFFSET)
#define PIC32MZ_CnRXR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_CnRXR_OFFSET(n))
# define PIC32MZ_C1RXR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_C1RXR_OFFSET)
# define PIC32MZ_C2RXR (PIC32MZ_IOPORT_K1BASE+PIC32MZ_C2RXR_OFFSET)
#define PIC32MZ_REFCLKInR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_REFCLKInR_OFFSET(n))
# define PIC32MZ_REFCLKI1R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_REFCLKI1R_OFFSET)
# define PIC32MZ_REFCLKI3R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_REFCLKI3R_OFFSET)
# define PIC32MZ_REFCLKI4R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_REFCLKI4R_OFFSET)
#define PIC32MZ_RPAnR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPAnR_OFFSET(n))
# define PIC32MZ_RPA14R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPA14R_OFFSET)
# define PIC32MZ_RPA15R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPA15R_OFFSET)
#define PIC32MZ_RPBnR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPBnR_OFFSET(n))
# define PIC32MZ_RPB0R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB0R_OFFSET)
# define PIC32MZ_RPB1R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB1R_OFFSET)
# define PIC32MZ_RPB2R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB2R_OFFSET)
# define PIC32MZ_RPB3R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB3R_OFFSET)
# define PIC32MZ_RPB4R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB4R_OFFSET)
# define PIC32MZ_RPB5R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB5R_OFFSET)
# define PIC32MZ_RPB6R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB6R_OFFSET)
# define PIC32MZ_RPB7R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB7R_OFFSET)
# define PIC32MZ_RPB8R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB8R_OFFSET)
# define PIC32MZ_RPB9R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB9R_OFFSET)
# define PIC32MZ_RPB10R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB10R_OFFSET)
# define PIC32MZ_RPB11R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB11R_OFFSET)
# define PIC32MZ_RPB12R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB12R_OFFSET)
# define PIC32MZ_RPB13R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB13R_OFFSET)
# define PIC32MZ_RPB14R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB14R_OFFSET)
# define PIC32MZ_RPB15R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPB15R_OFFSET)
#define PIC32MZ_RPCnR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPCnR_OFFSET(n))
# define PIC32MZ_RPC1R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPC1R_OFFSET)
# define PIC32MZ_RPC2R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPC2R_OFFSET)
# define PIC32MZ_RPC3R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPC3R_OFFSET)
# define PIC32MZ_RPC4R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPC4R_OFFSET)
# define PIC32MZ_RPC13R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPC13R_OFFSET)
# define PIC32MZ_RPC14R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPC14R_OFFSET)
#define PIC32MZ_RPDnR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPDnR_OFFSET(n))
# define PIC32MZ_RPD0R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD0R_OFFSET)
# define PIC32MZ_RPD1R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD1R_OFFSET)
# define PIC32MZ_RPD2R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD2R_OFFSET)
# define PIC32MZ_RPD3R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD3R_OFFSET)
# define PIC32MZ_RPD4R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD4R_OFFSET)
# define PIC32MZ_RPD5R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD5R_OFFSET)
# define PIC32MZ_RPD6R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD6R_OFFSET)
# define PIC32MZ_RPD7R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD7R_OFFSET)
# define PIC32MZ_RPD8R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD8R_OFFSET)
# define PIC32MZ_RPD9R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD9R_OFFSET)
# define PIC32MZ_RPD10R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD10R_OFFSET)
# define PIC32MZ_RPD11R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD11R_OFFSET)
# define PIC32MZ_RPD12R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD12R_OFFSET)
# define PIC32MZ_RPD13R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD13R_OFFSET)
# define PIC32MZ_RPD14R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD14R_OFFSET)
# define PIC32MZ_RPD15R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPD15R_OFFSET)
#define PIC32MZ_RPEnR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPEnR_OFFSET(n))
# define PIC32MZ_RPE3R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPE3R_OFFSET)
# define PIC32MZ_RPE4R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPE4R_OFFSET)
# define PIC32MZ_RPE8R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPE8R_OFFSET)
# define PIC32MZ_RPE9R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPE9R_OFFSET)
#define PIC32MZ_RPFnR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPFnR_OFFSET(n))
# define PIC32MZ_RPF0R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPF0R_OFFSET)
# define PIC32MZ_RPF1R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPF1R_OFFSET)
# define PIC32MZ_RPF2R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPF2R_OFFSET)
# define PIC32MZ_RPF3R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPF3R_OFFSET)
# define PIC32MZ_RPF4R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPF4R_OFFSET)
# define PIC32MZ_RPF5R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPF5R_OFFSET)
# define PIC32MZ_RPF8R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPF8R_OFFSET)
# define PIC32MZ_RPF12R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPF12R_OFFSET)
# define PIC32MZ_RPF13R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPF13R_OFFSET)
#define PIC32MZ_RPGnR(n) (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPGnR_OFFSET(n))
# define PIC32MZ_RPG0R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPG0R_OFFSET)
# define PIC32MZ_RPG1R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPG1R_OFFSET)
# define PIC32MZ_RPG6R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPG6R_OFFSET)
# define PIC32MZ_RPG7R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPG7R_OFFSET)
# define PIC32MZ_RPG8R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPG8R_OFFSET)
# define PIC32MZ_RPG9R (PIC32MZ_IOPORT_K1BASE+PIC32MZ_RPG9R_OFFSET)
#define PIC32MZ_INTnR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_INTnR_OFFSET(n))
# define PIC32MZ_INT1R (PIC32MZ_SFR_K1BASE+PIC32MZ_INT1R_OFFSET)
# define PIC32MZ_INT2R (PIC32MZ_SFR_K1BASE+PIC32MZ_INT2R_OFFSET)
# define PIC32MZ_INT3R (PIC32MZ_SFR_K1BASE+PIC32MZ_INT3R_OFFSET)
# define PIC32MZ_INT4R (PIC32MZ_SFR_K1BASE+PIC32MZ_INT4R_OFFSET)
#define PIC32MZ_TnCKR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_TnCKR_OFFSET(n))
# define PIC32MZ_I2TKR (PIC32MZ_SFR_K1BASE+PIC32MZ_I2TKR_OFFSET)
# define PIC32MZ_I3TKR (PIC32MZ_SFR_K1BASE+PIC32MZ_I3TKR_OFFSET)
# define PIC32MZ_I4TKR (PIC32MZ_SFR_K1BASE+PIC32MZ_I4TKR_OFFSET)
# define PIC32MZ_I5TKR (PIC32MZ_SFR_K1BASE+PIC32MZ_I5TKR_OFFSET)
# define PIC32MZ_I6TKR (PIC32MZ_SFR_K1BASE+PIC32MZ_I6TKR_OFFSET)
# define PIC32MZ_I7TKR (PIC32MZ_SFR_K1BASE+PIC32MZ_I7TKR_OFFSET)
# define PIC32MZ_I8TKR (PIC32MZ_SFR_K1BASE+PIC32MZ_I8TKR_OFFSET)
# define PIC32MZ_I9TKR (PIC32MZ_SFR_K1BASE+PIC32MZ_I9TKR_OFFSET)
#define PIC32MZ_ICnR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_ICnR_OFFSET(n))
# define PIC32MZ_IC1R (PIC32MZ_SFR_K1BASE+PIC32MZ_IC1R_OFFSET)
# define PIC32MZ_IC2R (PIC32MZ_SFR_K1BASE+PIC32MZ_IC2R_OFFSET)
# define PIC32MZ_IC3R (PIC32MZ_SFR_K1BASE+PIC32MZ_IC3R_OFFSET)
# define PIC32MZ_IC4R (PIC32MZ_SFR_K1BASE+PIC32MZ_IC4R_OFFSET)
# define PIC32MZ_IC5R (PIC32MZ_SFR_K1BASE+PIC32MZ_IC5R_OFFSET)
# define PIC32MZ_IC6R (PIC32MZ_SFR_K1BASE+PIC32MZ_IC6R_OFFSET)
# define PIC32MZ_IC7R (PIC32MZ_SFR_K1BASE+PIC32MZ_IC7R_OFFSET)
# define PIC32MZ_IC8R (PIC32MZ_SFR_K1BASE+PIC32MZ_IC8R_OFFSET)
# define PIC32MZ_IC9R (PIC32MZ_SFR_K1BASE+PIC32MZ_IC9R_OFFSET)
#define PIC32MZ_OCFAR (PIC32MZ_SFR_K1BASE+PIC32MZ_OCFAR_OFFSET)
#define PIC32MZ_UnRXR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_UnRXR_OFFSET(n))
# define PIC32MZ_U1RXR (PIC32MZ_SFR_K1BASE+PIC32MZ_U1RXR_OFFSET)
# define PIC32MZ_U2RXR (PIC32MZ_SFR_K1BASE+PIC32MZ_U2RXR_OFFSET)
# define PIC32MZ_U3RXR (PIC32MZ_SFR_K1BASE+PIC32MZ_U3RXR_OFFSET)
# define PIC32MZ_U4RXR (PIC32MZ_SFR_K1BASE+PIC32MZ_U4RXR_OFFSET)
# define PIC32MZ_U5RXR (PIC32MZ_SFR_K1BASE+PIC32MZ_U5RXR_OFFSET)
# define PIC32MZ_U6RXR (PIC32MZ_SFR_K1BASE+PIC32MZ_U6RXR_OFFSET)
#define PIC32MZ_UnCTSR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_UnCTSR_OFFSET(n)
# define PIC32MZ_U1CTSR (PIC32MZ_SFR_K1BASE+PIC32MZ_U1CTSR_OFFSET)
# define PIC32MZ_U2CTSR (PIC32MZ_SFR_K1BASE+PIC32MZ_U2CTSR_OFFSET)
# define PIC32MZ_U3CTSR (PIC32MZ_SFR_K1BASE+PIC32MZ_U3CTSR_OFFSET)
# define PIC32MZ_U4CTSR (PIC32MZ_SFR_K1BASE+PIC32MZ_U4CTSR_OFFSET)
# define PIC32MZ_U5CTSR (PIC32MZ_SFR_K1BASE+PIC32MZ_U5CTSR_OFFSET)
# define PIC32MZ_U6CTSR (PIC32MZ_SFR_K1BASE+PIC32MZ_U6CTSR_OFFSET)
#define PIC32MZ_SDInR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_SDInR_OFFSET(n))
# define PIC32MZ_SDI1R (PIC32MZ_SFR_K1BASE+PIC32MZ_SDI1R_OFFSET)
# define PIC32MZ_SDI2R (PIC32MZ_SFR_K1BASE+PIC32MZ_SDI2R_OFFSET)
# define PIC32MZ_SDI3R (PIC32MZ_SFR_K1BASE+PIC32MZ_SDI3R_OFFSET)
# define PIC32MZ_SDI4R (PIC32MZ_SFR_K1BASE+PIC32MZ_SDI4R_OFFSET)
# define PIC32MZ_SDI5R (PIC32MZ_SFR_K1BASE+PIC32MZ_SDI5R_OFFSET)
# define PIC32MZ_SDI6R (PIC32MZ_SFR_K1BASE+PIC32MZ_SDI6R_OFFSET)
#define PIC32MZ_SSnR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_SSnR_OFFSET(n))
# define PIC32MZ_SS1R (PIC32MZ_SFR_K1BASE+PIC32MZ_SS1R_OFFSET)
# define PIC32MZ_SS2R (PIC32MZ_SFR_K1BASE+PIC32MZ_SS2R_OFFSET)
# define PIC32MZ_SS3R (PIC32MZ_SFR_K1BASE+PIC32MZ_SS3R_OFFSET)
# define PIC32MZ_SS4R (PIC32MZ_SFR_K1BASE+PIC32MZ_SS4R_OFFSET)
# define PIC32MZ_SS5R (PIC32MZ_SFR_K1BASE+PIC32MZ_SS5R_OFFSET)
# define PIC32MZ_SS6R (PIC32MZ_SFR_K1BASE+PIC32MZ_SS6R_OFFSET)
#define PIC32MZ_CnRXR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_CnRXR_OFFSET(n))
# define PIC32MZ_C1RXR (PIC32MZ_SFR_K1BASE+PIC32MZ_C1RXR_OFFSET)
# define PIC32MZ_C2RXR (PIC32MZ_SFR_K1BASE+PIC32MZ_C2RXR_OFFSET)
#define PIC32MZ_REFCLKInR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_REFCLKInR_OFFSET(n))
# define PIC32MZ_REFCLKI1R (PIC32MZ_SFR_K1BASE+PIC32MZ_REFCLKI1R_OFFSET)
# define PIC32MZ_REFCLKI3R (PIC32MZ_SFR_K1BASE+PIC32MZ_REFCLKI3R_OFFSET)
# define PIC32MZ_REFCLKI4R (PIC32MZ_SFR_K1BASE+PIC32MZ_REFCLKI4R_OFFSET)
#define PIC32MZ_RPAnR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_RPAnR_OFFSET(n))
# define PIC32MZ_RPA14R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPA14R_OFFSET)
# define PIC32MZ_RPA15R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPA15R_OFFSET)
#define PIC32MZ_RPBnR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_RPBnR_OFFSET(n))
# define PIC32MZ_RPB0R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB0R_OFFSET)
# define PIC32MZ_RPB1R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB1R_OFFSET)
# define PIC32MZ_RPB2R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB2R_OFFSET)
# define PIC32MZ_RPB3R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB3R_OFFSET)
# define PIC32MZ_RPB4R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB4R_OFFSET)
# define PIC32MZ_RPB5R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB5R_OFFSET)
# define PIC32MZ_RPB6R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB6R_OFFSET)
# define PIC32MZ_RPB7R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB7R_OFFSET)
# define PIC32MZ_RPB8R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB8R_OFFSET)
# define PIC32MZ_RPB9R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB9R_OFFSET)
# define PIC32MZ_RPB10R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB10R_OFFSET)
# define PIC32MZ_RPB11R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB11R_OFFSET)
# define PIC32MZ_RPB12R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB12R_OFFSET)
# define PIC32MZ_RPB13R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB13R_OFFSET)
# define PIC32MZ_RPB14R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB14R_OFFSET)
# define PIC32MZ_RPB15R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPB15R_OFFSET)
#define PIC32MZ_RPCnR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_RPCnR_OFFSET(n))
# define PIC32MZ_RPC1R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPC1R_OFFSET)
# define PIC32MZ_RPC2R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPC2R_OFFSET)
# define PIC32MZ_RPC3R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPC3R_OFFSET)
# define PIC32MZ_RPC4R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPC4R_OFFSET)
# define PIC32MZ_RPC13R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPC13R_OFFSET)
# define PIC32MZ_RPC14R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPC14R_OFFSET)
#define PIC32MZ_RPDnR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_RPDnR_OFFSET(n))
# define PIC32MZ_RPD0R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD0R_OFFSET)
# define PIC32MZ_RPD1R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD1R_OFFSET)
# define PIC32MZ_RPD2R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD2R_OFFSET)
# define PIC32MZ_RPD3R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD3R_OFFSET)
# define PIC32MZ_RPD4R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD4R_OFFSET)
# define PIC32MZ_RPD5R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD5R_OFFSET)
# define PIC32MZ_RPD6R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD6R_OFFSET)
# define PIC32MZ_RPD7R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD7R_OFFSET)
# define PIC32MZ_RPD8R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD8R_OFFSET)
# define PIC32MZ_RPD9R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD9R_OFFSET)
# define PIC32MZ_RPD10R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD10R_OFFSET)
# define PIC32MZ_RPD11R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD11R_OFFSET)
# define PIC32MZ_RPD12R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD12R_OFFSET)
# define PIC32MZ_RPD13R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD13R_OFFSET)
# define PIC32MZ_RPD14R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD14R_OFFSET)
# define PIC32MZ_RPD15R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPD15R_OFFSET)
#define PIC32MZ_RPEnR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_RPEnR_OFFSET(n))
# define PIC32MZ_RPE3R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPE3R_OFFSET)
# define PIC32MZ_RPE4R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPE4R_OFFSET)
# define PIC32MZ_RPE8R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPE8R_OFFSET)
# define PIC32MZ_RPE9R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPE9R_OFFSET)
#define PIC32MZ_RPFnR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_RPFnR_OFFSET(n))
# define PIC32MZ_RPF0R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPF0R_OFFSET)
# define PIC32MZ_RPF1R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPF1R_OFFSET)
# define PIC32MZ_RPF2R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPF2R_OFFSET)
# define PIC32MZ_RPF3R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPF3R_OFFSET)
# define PIC32MZ_RPF4R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPF4R_OFFSET)
# define PIC32MZ_RPF5R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPF5R_OFFSET)
# define PIC32MZ_RPF8R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPF8R_OFFSET)
# define PIC32MZ_RPF12R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPF12R_OFFSET)
# define PIC32MZ_RPF13R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPF13R_OFFSET)
#define PIC32MZ_RPGnR(n) (PIC32MZ_SFR_K1BASE+PIC32MZ_RPGnR_OFFSET(n))
# define PIC32MZ_RPG0R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPG0R_OFFSET)
# define PIC32MZ_RPG1R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPG1R_OFFSET)
# define PIC32MZ_RPG6R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPG6R_OFFSET)
# define PIC32MZ_RPG7R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPG7R_OFFSET)
# define PIC32MZ_RPG8R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPG8R_OFFSET)
# define PIC32MZ_RPG9R (PIC32MZ_SFR_K1BASE+PIC32MZ_RPG9R_OFFSET)
/* Input Pin Selection **********************************************************************/
/* The encoding of the input pin selection is simple. Since we know the devices, we also