You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2017/04/13 18:11:17 UTC

[3/7] incubator-mynewt-core git commit: Removed include path, included specific parts of the Microchip SDK, fixed some errant capitalisation

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/2e8de777/hw/mcu/microchip/pic32mz2048efg100/include/mcu/p32mz2048efg100.h
----------------------------------------------------------------------
diff --git a/hw/mcu/microchip/pic32mz2048efg100/include/mcu/p32mz2048efg100.h b/hw/mcu/microchip/pic32mz2048efg100/include/mcu/p32mz2048efg100.h
new file mode 100644
index 0000000..a4c9a64
--- /dev/null
+++ b/hw/mcu/microchip/pic32mz2048efg100/include/mcu/p32mz2048efg100.h
@@ -0,0 +1,51671 @@
+/*-------------------------------------------------------------------------
+ * PIC32MZ2048EFG100 processor header
+ * Build date : Feb 18 2016
+ *
+ * Copyright (c) 2016, Microchip Technology Inc. and its subsidiaries ("Microchip")
+ * All rights reserved.
+ * 
+ * This software is developed by Microchip Technology Inc. and its
+ * subsidiaries ("Microchip").
+ * 
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are 
+ * met:
+ * 
+ * 1.      Redistributions of source code must retain the above copyright
+ *         notice, this list of conditions and the following disclaimer.
+ * 2.      Redistributions in binary form must reproduce the above 
+ *         copyright notice, this list of conditions and the following 
+ *         disclaimer in the documentation and/or other materials provided 
+ *         with the distribution.
+ * 3.      Microchip's name may not be used to endorse or promote products
+ *         derived from this software without specific prior written 
+ *         permission.
+ * 
+ * THIS SOFTWARE IS PROVIDED BY MICROCHIP "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR PURPOSE ARE DISCLAIMED. IN NO EVENT 
+ * SHALL MICROCHIP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWSOEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * 
+ */
+
+#pragma once
+#ifndef __32MZ2048EFG100_H
+#define __32MZ2048EFG100_H
+
+#if defined (__LANGUAGE_C__) || defined (__LANGUAGE_C_PLUS_PLUS)
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define CFGCON CFGCON
+extern volatile unsigned int   CFGCON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned TDOEN:1;
+  unsigned :1;
+  unsigned TROEN:1;
+  unsigned JTAGEN:1;
+  unsigned ECCCON:2;
+  unsigned :1;
+  unsigned IOANCPN:1;
+  unsigned USBSSEN:1;
+  unsigned :2;
+  unsigned PGLOCK:1;
+  unsigned PMDLOCK:1;
+  unsigned IOLOCK:1;
+  unsigned :2;
+  unsigned OCACLK:1;
+  unsigned ICACLK:1;
+  unsigned :6;
+  unsigned CPUPRI:1;
+  unsigned DMAPRI:1;
+} __CFGCONbits_t;
+extern volatile __CFGCONbits_t CFGCONbits __asm__ ("CFGCON") __attribute__((section("sfrs")));
+#define DEVID DEVID
+extern volatile unsigned int   DEVID __attribute__((section("sfrs")));
+typedef struct {
+  unsigned DEVID:28;
+  unsigned VER:4;
+} __DEVIDbits_t;
+extern volatile __DEVIDbits_t DEVIDbits __asm__ ("DEVID") __attribute__((section("sfrs")));
+#define SYSKEY SYSKEY
+extern volatile unsigned int   SYSKEY __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SYSKEY:32;
+} __SYSKEYbits_t;
+extern volatile __SYSKEYbits_t SYSKEYbits __asm__ ("SYSKEY") __attribute__((section("sfrs")));
+#define PMD1 PMD1
+extern volatile unsigned int   PMD1 __attribute__((section("sfrs")));
+typedef struct {
+  unsigned ADCMD:1;
+  unsigned :11;
+  unsigned CVRMD:1;
+} __PMD1bits_t;
+extern volatile __PMD1bits_t PMD1bits __asm__ ("PMD1") __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD1CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD1SET __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD1INV __attribute__((section("sfrs")));
+#define PMD2 PMD2
+extern volatile unsigned int   PMD2 __attribute__((section("sfrs")));
+typedef struct {
+  unsigned CMP1MD:1;
+  unsigned CMP2MD:1;
+} __PMD2bits_t;
+extern volatile __PMD2bits_t PMD2bits __asm__ ("PMD2") __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD2CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD2SET __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD2INV __attribute__((section("sfrs")));
+#define PMD3 PMD3
+extern volatile unsigned int   PMD3 __attribute__((section("sfrs")));
+typedef struct {
+  unsigned IC1MD:1;
+  unsigned IC2MD:1;
+  unsigned IC3MD:1;
+  unsigned IC4MD:1;
+  unsigned IC5MD:1;
+  unsigned IC6MD:1;
+  unsigned IC7MD:1;
+  unsigned IC8MD:1;
+  unsigned IC9MD:1;
+  unsigned :7;
+  unsigned OC1MD:1;
+  unsigned OC2MD:1;
+  unsigned OC3MD:1;
+  unsigned OC4MD:1;
+  unsigned OC5MD:1;
+  unsigned OC6MD:1;
+  unsigned OC7MD:1;
+  unsigned OC8MD:1;
+  unsigned OC9MD:1;
+} __PMD3bits_t;
+extern volatile __PMD3bits_t PMD3bits __asm__ ("PMD3") __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD3CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD3SET __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD3INV __attribute__((section("sfrs")));
+#define PMD4 PMD4
+extern volatile unsigned int   PMD4 __attribute__((section("sfrs")));
+typedef struct {
+  unsigned T1MD:1;
+  unsigned T2MD:1;
+  unsigned T3MD:1;
+  unsigned T4MD:1;
+  unsigned T5MD:1;
+  unsigned T6MD:1;
+  unsigned T7MD:1;
+  unsigned T8MD:1;
+  unsigned T9MD:1;
+} __PMD4bits_t;
+extern volatile __PMD4bits_t PMD4bits __asm__ ("PMD4") __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD4CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD4SET __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD4INV __attribute__((section("sfrs")));
+#define PMD5 PMD5
+extern volatile unsigned int   PMD5 __attribute__((section("sfrs")));
+typedef struct {
+  unsigned U1MD:1;
+  unsigned U2MD:1;
+  unsigned U3MD:1;
+  unsigned U4MD:1;
+  unsigned U5MD:1;
+  unsigned U6MD:1;
+  unsigned :2;
+  unsigned SPI1MD:1;
+  unsigned SPI2MD:1;
+  unsigned SPI3MD:1;
+  unsigned SPI4MD:1;
+  unsigned SPI5MD:1;
+  unsigned SPI6MD:1;
+  unsigned :2;
+  unsigned I2C1MD:1;
+  unsigned I2C2MD:1;
+  unsigned I2C3MD:1;
+  unsigned I2C4MD:1;
+  unsigned I2C5MD:1;
+  unsigned :3;
+  unsigned USBMD:1;
+} __PMD5bits_t;
+extern volatile __PMD5bits_t PMD5bits __asm__ ("PMD5") __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD5CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD5SET __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD5INV __attribute__((section("sfrs")));
+#define PMD6 PMD6
+extern volatile unsigned int   PMD6 __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RTCCMD:1;
+  unsigned :7;
+  unsigned REFO1MD:1;
+  unsigned REFO2MD:1;
+  unsigned REFO3MD:1;
+  unsigned REFO4MD:1;
+  unsigned :4;
+  unsigned PMPMD:1;
+  unsigned EBIMD:1;
+  unsigned :5;
+  unsigned SQI1MD:1;
+  unsigned :4;
+  unsigned ETHMD:1;
+} __PMD6bits_t;
+extern volatile __PMD6bits_t PMD6bits __asm__ ("PMD6") __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD6CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD6SET __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD6INV __attribute__((section("sfrs")));
+#define PMD7 PMD7
+extern volatile unsigned int   PMD7 __attribute__((section("sfrs")));
+typedef struct {
+  unsigned :4;
+  unsigned DMAMD:1;
+  unsigned :15;
+  unsigned RNGMD:1;
+} __PMD7bits_t;
+extern volatile __PMD7bits_t PMD7bits __asm__ ("PMD7") __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD7CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD7SET __attribute__((section("sfrs")));
+extern volatile unsigned int        PMD7INV __attribute__((section("sfrs")));
+#define CFGEBIA CFGEBIA
+extern volatile unsigned int   CFGEBIA __attribute__((section("sfrs")));
+typedef struct {
+  unsigned EBIA0EN:1;
+  unsigned EBIA1EN:1;
+  unsigned EBIA2EN:1;
+  unsigned EBIA3EN:1;
+  unsigned EBIA4EN:1;
+  unsigned EBIA5EN:1;
+  unsigned EBIA6EN:1;
+  unsigned EBIA7EN:1;
+  unsigned EBIA8EN:1;
+  unsigned EBIA9EN:1;
+  unsigned EBIA10EN:1;
+  unsigned EBIA11EN:1;
+  unsigned EBIA12EN:1;
+  unsigned EBIA13EN:1;
+  unsigned EBIA14EN:1;
+  unsigned EBIA15EN:1;
+  unsigned EBIA16EN:1;
+  unsigned EBIA17EN:1;
+  unsigned EBIA18EN:1;
+  unsigned EBIA19EN:1;
+  unsigned EBIA20EN:1;
+  unsigned EBIA21EN:1;
+  unsigned EBIA22EN:1;
+  unsigned EBIA23EN:1;
+  unsigned :7;
+  unsigned EBIPINEN:1;
+} __CFGEBIAbits_t;
+extern volatile __CFGEBIAbits_t CFGEBIAbits __asm__ ("CFGEBIA") __attribute__((section("sfrs")));
+extern volatile unsigned int        CFGEBIACLR __attribute__((section("sfrs")));
+extern volatile unsigned int        CFGEBIASET __attribute__((section("sfrs")));
+extern volatile unsigned int        CFGEBIAINV __attribute__((section("sfrs")));
+#define CFGEBIC CFGEBIC
+extern volatile unsigned int   CFGEBIC __attribute__((section("sfrs")));
+typedef struct {
+  unsigned EBIDEN0:1;
+  unsigned EBIDEN1:1;
+  unsigned :2;
+  unsigned EBICSEN0:1;
+  unsigned EBICSEN1:1;
+  unsigned EBICSEN2:1;
+  unsigned EBICSEN3:1;
+  unsigned EBIBSEN0:1;
+  unsigned EBIBSEN1:1;
+  unsigned :2;
+  unsigned EBIOEEN:1;
+  unsigned EBIWEEN:1;
+  unsigned :2;
+  unsigned EBIRPEN:1;
+  unsigned EBIRDYLVL:1;
+  unsigned :7;
+  unsigned EBIRDYEN1:1;
+  unsigned EBIRDYEN2:1;
+  unsigned EBIRDYEN3:1;
+  unsigned :1;
+  unsigned EBIRDYINV1:1;
+  unsigned EBIRDYINV2:1;
+  unsigned EBIRDYINV3:1;
+} __CFGEBICbits_t;
+extern volatile __CFGEBICbits_t CFGEBICbits __asm__ ("CFGEBIC") __attribute__((section("sfrs")));
+extern volatile unsigned int        CFGEBICCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        CFGEBICSET __attribute__((section("sfrs")));
+extern volatile unsigned int        CFGEBICINV __attribute__((section("sfrs")));
+#define CFGPG CFGPG
+extern volatile unsigned int   CFGPG __attribute__((section("sfrs")));
+typedef struct {
+  unsigned CPUPG:2;
+  unsigned :2;
+  unsigned DMAPG:2;
+  unsigned :2;
+  unsigned USBPG:2;
+  unsigned :6;
+  unsigned ETHPG:2;
+  unsigned :2;
+  unsigned SQI1PG:2;
+  unsigned FCPG:2;
+  unsigned :6;
+  unsigned ICD1PG:2;
+} __CFGPGbits_t;
+extern volatile __CFGPGbits_t CFGPGbits __asm__ ("CFGPG") __attribute__((section("sfrs")));
+extern volatile unsigned int        CFGPGCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        CFGPGSET __attribute__((section("sfrs")));
+extern volatile unsigned int        CFGPGINV __attribute__((section("sfrs")));
+#define NVMCON NVMCON
+extern volatile unsigned int   NVMCON __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned NVMOP:4;
+    unsigned :2;
+    unsigned BFSWAP:1;
+    unsigned PFSWAP:1;
+    unsigned :4;
+    unsigned LVDERR:1;
+    unsigned WRERR:1;
+    unsigned WREN:1;
+    unsigned WR:1;
+  };
+  struct {
+    unsigned NVMOP0:1;
+    unsigned NVMOP1:1;
+    unsigned NVMOP2:1;
+    unsigned NVMOP3:1;
+    unsigned :3;
+    unsigned SWAP:1;
+  };
+  struct {
+    unsigned PROGOP:4;
+  };
+  struct {
+    unsigned PROGOP0:1;
+    unsigned PROGOP1:1;
+    unsigned PROGOP2:1;
+    unsigned PROGOP3:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __NVMCONbits_t;
+extern volatile __NVMCONbits_t NVMCONbits __asm__ ("NVMCON") __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMCONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMCONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMCONINV __attribute__((section("sfrs")));
+#define NVMKEY NVMKEY
+extern volatile unsigned int   NVMKEY __attribute__((section("sfrs")));
+#define NVMADDR NVMADDR
+extern volatile unsigned int   NVMADDR __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMADDRCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMADDRSET __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMADDRINV __attribute__((section("sfrs")));
+#define NVMDATA0 NVMDATA0
+extern volatile unsigned int   NVMDATA0 __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMDATA0CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMDATA0SET __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMDATA0INV __attribute__((section("sfrs")));
+#define NVMDATA1 NVMDATA1
+extern volatile unsigned int   NVMDATA1 __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMDATA1CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMDATA1SET __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMDATA1INV __attribute__((section("sfrs")));
+#define NVMDATA2 NVMDATA2
+extern volatile unsigned int   NVMDATA2 __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMDATA2CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMDATA2SET __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMDATA2INV __attribute__((section("sfrs")));
+#define NVMDATA3 NVMDATA3
+extern volatile unsigned int   NVMDATA3 __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMDATA3CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMDATA3SET __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMDATA3INV __attribute__((section("sfrs")));
+#define NVMSRCADDR NVMSRCADDR
+extern volatile unsigned int   NVMSRCADDR __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMSRCADDRCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMSRCADDRSET __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMSRCADDRINV __attribute__((section("sfrs")));
+#define NVMPWP NVMPWP
+extern volatile unsigned int   NVMPWP __attribute__((section("sfrs")));
+typedef struct {
+  unsigned PWP:24;
+  unsigned :7;
+  unsigned PWPULOCK:1;
+} __NVMPWPbits_t;
+extern volatile __NVMPWPbits_t NVMPWPbits __asm__ ("NVMPWP") __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMPWPCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMPWPSET __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMPWPINV __attribute__((section("sfrs")));
+#define NVMBWP NVMBWP
+extern volatile unsigned int   NVMBWP __attribute__((section("sfrs")));
+typedef struct {
+  unsigned UBWP0:1;
+  unsigned UBWP1:1;
+  unsigned UBWP2:1;
+  unsigned UBWP3:1;
+  unsigned UBWP4:1;
+  unsigned :2;
+  unsigned UBWPULOCK:1;
+  unsigned LBWP0:1;
+  unsigned LBWP1:1;
+  unsigned LBWP2:1;
+  unsigned LBWP3:1;
+  unsigned LBWP4:1;
+  unsigned :2;
+  unsigned LBWPULOCK:1;
+} __NVMBWPbits_t;
+extern volatile __NVMBWPbits_t NVMBWPbits __asm__ ("NVMBWP") __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMBWPCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMBWPSET __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMBWPINV __attribute__((section("sfrs")));
+#define NVMCON2 NVMCON2
+extern volatile unsigned int   NVMCON2 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned :6;
+    unsigned SWAPLOCK:2;
+  };
+  struct {
+    unsigned :8;
+    unsigned ERETRY:2;
+    unsigned :2;
+    unsigned VREAD1:1;
+    unsigned CREAD1:1;
+    unsigned :1;
+    unsigned LPRD:1;
+    unsigned LPRDWS:5;
+    unsigned :7;
+    unsigned ERSCNT:4;
+  };
+} __NVMCON2bits_t;
+extern volatile __NVMCON2bits_t NVMCON2bits __asm__ ("NVMCON2") __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMCON2CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMCON2SET __attribute__((section("sfrs")));
+extern volatile unsigned int        NVMCON2INV __attribute__((section("sfrs")));
+#define WDTCON WDTCON
+extern volatile unsigned int   WDTCON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned WDTWINEN:1;
+  unsigned :7;
+  unsigned RUNDIV:5;
+  unsigned :2;
+  unsigned ON:1;
+  unsigned WDTCLRKEY:16;
+} __WDTCONbits_t;
+extern volatile __WDTCONbits_t WDTCONbits __asm__ ("WDTCON") __attribute__((section("sfrs")));
+extern volatile unsigned int        WDTCONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        WDTCONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        WDTCONINV __attribute__((section("sfrs")));
+#define DMTCON DMTCON
+extern volatile unsigned int   DMTCON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned :15;
+  unsigned ON:1;
+} __DMTCONbits_t;
+extern volatile __DMTCONbits_t DMTCONbits __asm__ ("DMTCON") __attribute__((section("sfrs")));
+#define DMTPRECLR DMTPRECLR
+extern volatile unsigned int   DMTPRECLR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned :8;
+  unsigned STEP1:8;
+} __DMTPRECLRbits_t;
+extern volatile __DMTPRECLRbits_t DMTPRECLRbits __asm__ ("DMTPRECLR") __attribute__((section("sfrs")));
+#define DMTCLR DMTCLR
+extern volatile unsigned int   DMTCLR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned STEP2:8;
+} __DMTCLRbits_t;
+extern volatile __DMTCLRbits_t DMTCLRbits __asm__ ("DMTCLR") __attribute__((section("sfrs")));
+#define DMTSTAT DMTSTAT
+extern volatile unsigned int   DMTSTAT __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned WINOPN:1;
+    unsigned :4;
+    unsigned DMTEVENT:1;
+    unsigned BAD:2;
+  };
+  struct {
+    unsigned :6;
+    unsigned BAD2:1;
+    unsigned BAD1:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __DMTSTATbits_t;
+extern volatile __DMTSTATbits_t DMTSTATbits __asm__ ("DMTSTAT") __attribute__((section("sfrs")));
+#define DMTCNT DMTCNT
+extern volatile unsigned int   DMTCNT __attribute__((section("sfrs")));
+typedef struct {
+  unsigned COUNTER:32;
+} __DMTCNTbits_t;
+extern volatile __DMTCNTbits_t DMTCNTbits __asm__ ("DMTCNT") __attribute__((section("sfrs")));
+#define DMTPSCNT DMTPSCNT
+extern volatile unsigned int   DMTPSCNT __attribute__((section("sfrs")));
+typedef struct {
+  unsigned PSCNT:32;
+} __DMTPSCNTbits_t;
+extern volatile __DMTPSCNTbits_t DMTPSCNTbits __asm__ ("DMTPSCNT") __attribute__((section("sfrs")));
+#define DMTPSINTV DMTPSINTV
+extern volatile unsigned int   DMTPSINTV __attribute__((section("sfrs")));
+typedef struct {
+  unsigned PSINTV:32;
+} __DMTPSINTVbits_t;
+extern volatile __DMTPSINTVbits_t DMTPSINTVbits __asm__ ("DMTPSINTV") __attribute__((section("sfrs")));
+#define RTCCON RTCCON
+extern volatile unsigned int   RTCCON __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned RTCOE:1;
+    unsigned HALFSEC:1;
+    unsigned RTCSYNC:1;
+    unsigned RTCWREN:1;
+    unsigned :2;
+    unsigned RTCCLKON:1;
+    unsigned RTCOUTSEL:2;
+    unsigned RTCCLKSEL:2;
+    unsigned :2;
+    unsigned SIDL:1;
+    unsigned :1;
+    unsigned ON:1;
+    unsigned CAL:10;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __RTCCONbits_t;
+extern volatile __RTCCONbits_t RTCCONbits __asm__ ("RTCCON") __attribute__((section("sfrs")));
+extern volatile unsigned int        RTCCONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        RTCCONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        RTCCONINV __attribute__((section("sfrs")));
+#define RTCALRM RTCALRM
+extern volatile unsigned int   RTCALRM __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned ARPT:8;
+    unsigned AMASK:4;
+    unsigned ALRMSYNC:1;
+    unsigned PIV:1;
+    unsigned CHIME:1;
+    unsigned ALRMEN:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __RTCALRMbits_t;
+extern volatile __RTCALRMbits_t RTCALRMbits __asm__ ("RTCALRM") __attribute__((section("sfrs")));
+extern volatile unsigned int        RTCALRMCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        RTCALRMSET __attribute__((section("sfrs")));
+extern volatile unsigned int        RTCALRMINV __attribute__((section("sfrs")));
+#define RTCTIME RTCTIME
+extern volatile unsigned int   RTCTIME __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned :8;
+    unsigned SEC01:4;
+    unsigned SEC10:4;
+    unsigned MIN01:4;
+    unsigned MIN10:4;
+    unsigned HR01:4;
+    unsigned HR10:4;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __RTCTIMEbits_t;
+extern volatile __RTCTIMEbits_t RTCTIMEbits __asm__ ("RTCTIME") __attribute__((section("sfrs")));
+extern volatile unsigned int        RTCTIMECLR __attribute__((section("sfrs")));
+extern volatile unsigned int        RTCTIMESET __attribute__((section("sfrs")));
+extern volatile unsigned int        RTCTIMEINV __attribute__((section("sfrs")));
+#define RTCDATE RTCDATE
+extern volatile unsigned int   RTCDATE __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned WDAY01:4;
+    unsigned :4;
+    unsigned DAY01:4;
+    unsigned DAY10:4;
+    unsigned MONTH01:4;
+    unsigned MONTH10:4;
+    unsigned YEAR01:4;
+    unsigned YEAR10:4;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __RTCDATEbits_t;
+extern volatile __RTCDATEbits_t RTCDATEbits __asm__ ("RTCDATE") __attribute__((section("sfrs")));
+extern volatile unsigned int        RTCDATECLR __attribute__((section("sfrs")));
+extern volatile unsigned int        RTCDATESET __attribute__((section("sfrs")));
+extern volatile unsigned int        RTCDATEINV __attribute__((section("sfrs")));
+#define ALRMTIME ALRMTIME
+extern volatile unsigned int   ALRMTIME __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned :8;
+    unsigned SEC01:4;
+    unsigned SEC10:4;
+    unsigned MIN01:4;
+    unsigned MIN10:4;
+    unsigned HR01:4;
+    unsigned HR10:4;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __ALRMTIMEbits_t;
+extern volatile __ALRMTIMEbits_t ALRMTIMEbits __asm__ ("ALRMTIME") __attribute__((section("sfrs")));
+extern volatile unsigned int        ALRMTIMECLR __attribute__((section("sfrs")));
+extern volatile unsigned int        ALRMTIMESET __attribute__((section("sfrs")));
+extern volatile unsigned int        ALRMTIMEINV __attribute__((section("sfrs")));
+#define ALRMDATE ALRMDATE
+extern volatile unsigned int   ALRMDATE __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned WDAY01:4;
+    unsigned :4;
+    unsigned DAY01:4;
+    unsigned DAY10:4;
+    unsigned MONTH01:4;
+    unsigned MONTH10:4;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __ALRMDATEbits_t;
+extern volatile __ALRMDATEbits_t ALRMDATEbits __asm__ ("ALRMDATE") __attribute__((section("sfrs")));
+extern volatile unsigned int        ALRMDATECLR __attribute__((section("sfrs")));
+extern volatile unsigned int        ALRMDATESET __attribute__((section("sfrs")));
+extern volatile unsigned int        ALRMDATEINV __attribute__((section("sfrs")));
+#define CVRCON CVRCON
+extern volatile unsigned int   CVRCON __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned CVR:4;
+    unsigned CVRSS:1;
+    unsigned CVRR:1;
+    unsigned CVROE:1;
+    unsigned :8;
+    unsigned ON:1;
+  };
+  struct {
+    unsigned CVR0:1;
+    unsigned CVR1:1;
+    unsigned CVR2:1;
+    unsigned CVR3:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __CVRCONbits_t;
+extern volatile __CVRCONbits_t CVRCONbits __asm__ ("CVRCON") __attribute__((section("sfrs")));
+extern volatile unsigned int        CVRCONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        CVRCONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        CVRCONINV __attribute__((section("sfrs")));
+#define _ICDCON _ICDCON
+extern volatile unsigned int   _ICDCON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned CKSWBKEN:1;
+  unsigned SLPBKEN:1;
+  unsigned WDTBKEN:1;
+  unsigned WDTEN:1;
+  unsigned RSTBUG:1;
+  unsigned DMTBKEN:1;
+  unsigned DMTEN:1;
+  unsigned :7;
+  unsigned FRZ:1;
+} ___ICDCONbits_t;
+extern volatile ___ICDCONbits_t _ICDCONbits __asm__ ("_ICDCON") __attribute__((section("sfrs")));
+#define _ICDSTAT _ICDSTAT
+extern volatile unsigned int   _ICDSTAT __attribute__((section("sfrs")));
+typedef struct {
+  unsigned CKSWBF:1;
+  unsigned SLPBF:1;
+  unsigned WDTBF:1;
+  unsigned DMTBF:1;
+} ___ICDSTATbits_t;
+extern volatile ___ICDSTATbits_t _ICDSTATbits __asm__ ("_ICDSTAT") __attribute__((section("sfrs")));
+#define OSCCON OSCCON
+extern volatile unsigned int   OSCCON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned OSWEN:1;
+  unsigned SOSCEN:1;
+  unsigned :1;
+  unsigned CF:1;
+  unsigned SLPEN:1;
+  unsigned :2;
+  unsigned CLKLOCK:1;
+  unsigned NOSC:3;
+  unsigned :1;
+  unsigned COSC:3;
+  unsigned :6;
+  unsigned SLP2SPD:1;
+  unsigned :1;
+  unsigned DRMEN:1;
+  unsigned FRCDIV:3;
+} __OSCCONbits_t;
+extern volatile __OSCCONbits_t OSCCONbits __asm__ ("OSCCON") __attribute__((section("sfrs")));
+extern volatile unsigned int        OSCCONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        OSCCONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        OSCCONINV __attribute__((section("sfrs")));
+#define OSCTUN OSCTUN
+extern volatile unsigned int   OSCTUN __attribute__((section("sfrs")));
+typedef struct {
+  unsigned TUN:6;
+} __OSCTUNbits_t;
+extern volatile __OSCTUNbits_t OSCTUNbits __asm__ ("OSCTUN") __attribute__((section("sfrs")));
+extern volatile unsigned int        OSCTUNCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        OSCTUNSET __attribute__((section("sfrs")));
+extern volatile unsigned int        OSCTUNINV __attribute__((section("sfrs")));
+#define SPLLCON SPLLCON
+extern volatile unsigned int   SPLLCON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned PLLRANGE:3;
+  unsigned :4;
+  unsigned PLLICLK:1;
+  unsigned PLLIDIV:3;
+  unsigned :5;
+  unsigned PLLMULT:7;
+  unsigned :1;
+  unsigned PLLODIV:3;
+} __SPLLCONbits_t;
+extern volatile __SPLLCONbits_t SPLLCONbits __asm__ ("SPLLCON") __attribute__((section("sfrs")));
+extern volatile unsigned int        SPLLCONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        SPLLCONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        SPLLCONINV __attribute__((section("sfrs")));
+#define RCON RCON
+extern volatile unsigned int   RCON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned POR:1;
+  unsigned BOR:1;
+  unsigned IDLE:1;
+  unsigned SLEEP:1;
+  unsigned WDTO:1;
+  unsigned DMTO:1;
+  unsigned SWR:1;
+  unsigned EXTR:1;
+  unsigned :1;
+  unsigned CMR:1;
+  unsigned :16;
+  unsigned BCFGFAIL:1;
+  unsigned BCFGERR:1;
+} __RCONbits_t;
+extern volatile __RCONbits_t RCONbits __asm__ ("RCON") __attribute__((section("sfrs")));
+extern volatile unsigned int        RCONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        RCONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        RCONINV __attribute__((section("sfrs")));
+#define RSWRST RSWRST
+extern volatile unsigned int   RSWRST __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SWRST:1;
+} __RSWRSTbits_t;
+extern volatile __RSWRSTbits_t RSWRSTbits __asm__ ("RSWRST") __attribute__((section("sfrs")));
+extern volatile unsigned int        RSWRSTCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        RSWRSTSET __attribute__((section("sfrs")));
+extern volatile unsigned int        RSWRSTINV __attribute__((section("sfrs")));
+#define RNMICON RNMICON
+extern volatile unsigned int   RNMICON __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned NMICNT:16;
+    unsigned WDTS:1;
+    unsigned CF:1;
+    unsigned :1;
+    unsigned GNMI:1;
+    unsigned :3;
+    unsigned SWNMI:1;
+    unsigned WDTO:1;
+    unsigned DMTO:1;
+  };
+  struct {
+    unsigned :24;
+    unsigned WDTR:1;
+  };
+} __RNMICONbits_t;
+extern volatile __RNMICONbits_t RNMICONbits __asm__ ("RNMICON") __attribute__((section("sfrs")));
+extern volatile unsigned int        RNMICONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        RNMICONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        RNMICONINV __attribute__((section("sfrs")));
+#define PWRCON PWRCON
+extern volatile unsigned int   PWRCON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned VREGS:1;
+} __PWRCONbits_t;
+extern volatile __PWRCONbits_t PWRCONbits __asm__ ("PWRCON") __attribute__((section("sfrs")));
+extern volatile unsigned int        PWRCONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PWRCONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        PWRCONINV __attribute__((section("sfrs")));
+#define REFO1CON REFO1CON
+extern volatile unsigned int   REFO1CON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned ROSEL:4;
+  unsigned :4;
+  unsigned ACTIVE:1;
+  unsigned DIVSWEN:1;
+  unsigned :1;
+  unsigned RSLP:1;
+  unsigned OE:1;
+  unsigned SIDL:1;
+  unsigned :1;
+  unsigned ON:1;
+  unsigned RODIV:15;
+} __REFO1CONbits_t;
+extern volatile __REFO1CONbits_t REFO1CONbits __asm__ ("REFO1CON") __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO1CONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO1CONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO1CONINV __attribute__((section("sfrs")));
+#define REFO1TRIM REFO1TRIM
+extern volatile unsigned int   REFO1TRIM __attribute__((section("sfrs")));
+typedef struct {
+  unsigned :23;
+  unsigned ROTRIM:9;
+} __REFO1TRIMbits_t;
+extern volatile __REFO1TRIMbits_t REFO1TRIMbits __asm__ ("REFO1TRIM") __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO1TRIMCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO1TRIMSET __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO1TRIMINV __attribute__((section("sfrs")));
+#define REFO2CON REFO2CON
+extern volatile unsigned int   REFO2CON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned ROSEL:4;
+  unsigned :4;
+  unsigned ACTIVE:1;
+  unsigned DIVSWEN:1;
+  unsigned :1;
+  unsigned RSLP:1;
+  unsigned OE:1;
+  unsigned SIDL:1;
+  unsigned :1;
+  unsigned ON:1;
+  unsigned RODIV:15;
+} __REFO2CONbits_t;
+extern volatile __REFO2CONbits_t REFO2CONbits __asm__ ("REFO2CON") __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO2CONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO2CONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO2CONINV __attribute__((section("sfrs")));
+#define REFO2TRIM REFO2TRIM
+extern volatile unsigned int   REFO2TRIM __attribute__((section("sfrs")));
+typedef struct {
+  unsigned :23;
+  unsigned ROTRIM:9;
+} __REFO2TRIMbits_t;
+extern volatile __REFO2TRIMbits_t REFO2TRIMbits __asm__ ("REFO2TRIM") __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO2TRIMCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO2TRIMSET __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO2TRIMINV __attribute__((section("sfrs")));
+#define REFO3CON REFO3CON
+extern volatile unsigned int   REFO3CON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned ROSEL:4;
+  unsigned :4;
+  unsigned ACTIVE:1;
+  unsigned DIVSWEN:1;
+  unsigned :1;
+  unsigned RSLP:1;
+  unsigned OE:1;
+  unsigned SIDL:1;
+  unsigned :1;
+  unsigned ON:1;
+  unsigned RODIV:15;
+} __REFO3CONbits_t;
+extern volatile __REFO3CONbits_t REFO3CONbits __asm__ ("REFO3CON") __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO3CONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO3CONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO3CONINV __attribute__((section("sfrs")));
+#define REFO3TRIM REFO3TRIM
+extern volatile unsigned int   REFO3TRIM __attribute__((section("sfrs")));
+typedef struct {
+  unsigned :23;
+  unsigned ROTRIM:9;
+} __REFO3TRIMbits_t;
+extern volatile __REFO3TRIMbits_t REFO3TRIMbits __asm__ ("REFO3TRIM") __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO3TRIMCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO3TRIMSET __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO3TRIMINV __attribute__((section("sfrs")));
+#define REFO4CON REFO4CON
+extern volatile unsigned int   REFO4CON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned ROSEL:4;
+  unsigned :4;
+  unsigned ACTIVE:1;
+  unsigned DIVSWEN:1;
+  unsigned :1;
+  unsigned RSLP:1;
+  unsigned OE:1;
+  unsigned SIDL:1;
+  unsigned :1;
+  unsigned ON:1;
+  unsigned RODIV:15;
+} __REFO4CONbits_t;
+extern volatile __REFO4CONbits_t REFO4CONbits __asm__ ("REFO4CON") __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO4CONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO4CONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO4CONINV __attribute__((section("sfrs")));
+#define REFO4TRIM REFO4TRIM
+extern volatile unsigned int   REFO4TRIM __attribute__((section("sfrs")));
+typedef struct {
+  unsigned :23;
+  unsigned ROTRIM:9;
+} __REFO4TRIMbits_t;
+extern volatile __REFO4TRIMbits_t REFO4TRIMbits __asm__ ("REFO4TRIM") __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO4TRIMCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO4TRIMSET __attribute__((section("sfrs")));
+extern volatile unsigned int        REFO4TRIMINV __attribute__((section("sfrs")));
+#define PB1DIV PB1DIV
+extern volatile unsigned int   PB1DIV __attribute__((section("sfrs")));
+typedef struct {
+  unsigned PBDIV:7;
+  unsigned :4;
+  unsigned PBDIVRDY:1;
+} __PB1DIVbits_t;
+extern volatile __PB1DIVbits_t PB1DIVbits __asm__ ("PB1DIV") __attribute__((section("sfrs")));
+extern volatile unsigned int        PB1DIVCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PB1DIVSET __attribute__((section("sfrs")));
+extern volatile unsigned int        PB1DIVINV __attribute__((section("sfrs")));
+#define PB2DIV PB2DIV
+extern volatile unsigned int   PB2DIV __attribute__((section("sfrs")));
+typedef struct {
+  unsigned PBDIV:7;
+  unsigned :4;
+  unsigned PBDIVRDY:1;
+  unsigned :3;
+  unsigned ON:1;
+} __PB2DIVbits_t;
+extern volatile __PB2DIVbits_t PB2DIVbits __asm__ ("PB2DIV") __attribute__((section("sfrs")));
+extern volatile unsigned int        PB2DIVCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PB2DIVSET __attribute__((section("sfrs")));
+extern volatile unsigned int        PB2DIVINV __attribute__((section("sfrs")));
+#define PB3DIV PB3DIV
+extern volatile unsigned int   PB3DIV __attribute__((section("sfrs")));
+typedef struct {
+  unsigned PBDIV:7;
+  unsigned :4;
+  unsigned PBDIVRDY:1;
+  unsigned :3;
+  unsigned ON:1;
+} __PB3DIVbits_t;
+extern volatile __PB3DIVbits_t PB3DIVbits __asm__ ("PB3DIV") __attribute__((section("sfrs")));
+extern volatile unsigned int        PB3DIVCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PB3DIVSET __attribute__((section("sfrs")));
+extern volatile unsigned int        PB3DIVINV __attribute__((section("sfrs")));
+#define PB4DIV PB4DIV
+extern volatile unsigned int   PB4DIV __attribute__((section("sfrs")));
+typedef struct {
+  unsigned PBDIV:7;
+  unsigned :4;
+  unsigned PBDIVRDY:1;
+  unsigned :3;
+  unsigned ON:1;
+} __PB4DIVbits_t;
+extern volatile __PB4DIVbits_t PB4DIVbits __asm__ ("PB4DIV") __attribute__((section("sfrs")));
+extern volatile unsigned int        PB4DIVCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PB4DIVSET __attribute__((section("sfrs")));
+extern volatile unsigned int        PB4DIVINV __attribute__((section("sfrs")));
+#define PB5DIV PB5DIV
+extern volatile unsigned int   PB5DIV __attribute__((section("sfrs")));
+typedef struct {
+  unsigned PBDIV:7;
+  unsigned :4;
+  unsigned PBDIVRDY:1;
+  unsigned :3;
+  unsigned ON:1;
+} __PB5DIVbits_t;
+extern volatile __PB5DIVbits_t PB5DIVbits __asm__ ("PB5DIV") __attribute__((section("sfrs")));
+extern volatile unsigned int        PB5DIVCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PB5DIVSET __attribute__((section("sfrs")));
+extern volatile unsigned int        PB5DIVINV __attribute__((section("sfrs")));
+#define PB7DIV PB7DIV
+extern volatile unsigned int   PB7DIV __attribute__((section("sfrs")));
+typedef struct {
+  unsigned PBDIV:7;
+  unsigned :4;
+  unsigned PBDIVRDY:1;
+  unsigned :3;
+  unsigned ON:1;
+} __PB7DIVbits_t;
+extern volatile __PB7DIVbits_t PB7DIVbits __asm__ ("PB7DIV") __attribute__((section("sfrs")));
+extern volatile unsigned int        PB7DIVCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PB7DIVSET __attribute__((section("sfrs")));
+extern volatile unsigned int        PB7DIVINV __attribute__((section("sfrs")));
+#define PB8DIV PB8DIV
+extern volatile unsigned int   PB8DIV __attribute__((section("sfrs")));
+typedef struct {
+  unsigned PBDIV:7;
+  unsigned :4;
+  unsigned PBDIVRDY:1;
+  unsigned :3;
+  unsigned ON:1;
+} __PB8DIVbits_t;
+extern volatile __PB8DIVbits_t PB8DIVbits __asm__ ("PB8DIV") __attribute__((section("sfrs")));
+extern volatile unsigned int        PB8DIVCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PB8DIVSET __attribute__((section("sfrs")));
+extern volatile unsigned int        PB8DIVINV __attribute__((section("sfrs")));
+#define SLEWCON SLEWCON
+extern volatile unsigned int   SLEWCON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned BUSY:1;
+  unsigned DNEN:1;
+  unsigned UPEN:1;
+  unsigned :5;
+  unsigned SLWDIV:3;
+  unsigned :5;
+  unsigned SYSDIV:4;
+} __SLEWCONbits_t;
+extern volatile __SLEWCONbits_t SLEWCONbits __asm__ ("SLEWCON") __attribute__((section("sfrs")));
+extern volatile unsigned int        SLEWCONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        SLEWCONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        SLEWCONINV __attribute__((section("sfrs")));
+#define CLKSTAT CLKSTAT
+extern volatile unsigned int   CLKSTAT __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned FRCRDY:1;
+    unsigned SPDIVRDY:1;
+    unsigned POSCRDY:1;
+    unsigned :1;
+    unsigned SOSCRDY:1;
+    unsigned LPRCRDY:1;
+  };
+  struct {
+    unsigned :1;
+    unsigned DIVSPLLRDY:1;
+  };
+} __CLKSTATbits_t;
+extern volatile __CLKSTATbits_t CLKSTATbits __asm__ ("CLKSTAT") __attribute__((section("sfrs")));
+extern volatile unsigned int        CLKSTATCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        CLKSTATSET __attribute__((section("sfrs")));
+extern volatile unsigned int        CLKSTATINV __attribute__((section("sfrs")));
+#define INT1R INT1R
+extern volatile unsigned int   INT1R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned INT1R:4;
+} __INT1Rbits_t;
+extern volatile __INT1Rbits_t INT1Rbits __asm__ ("INT1R") __attribute__((section("sfrs")));
+#define INT2R INT2R
+extern volatile unsigned int   INT2R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned INT2R:4;
+} __INT2Rbits_t;
+extern volatile __INT2Rbits_t INT2Rbits __asm__ ("INT2R") __attribute__((section("sfrs")));
+#define INT3R INT3R
+extern volatile unsigned int   INT3R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned INT3R:4;
+} __INT3Rbits_t;
+extern volatile __INT3Rbits_t INT3Rbits __asm__ ("INT3R") __attribute__((section("sfrs")));
+#define INT4R INT4R
+extern volatile unsigned int   INT4R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned INT4R:4;
+} __INT4Rbits_t;
+extern volatile __INT4Rbits_t INT4Rbits __asm__ ("INT4R") __attribute__((section("sfrs")));
+#define T2CKR T2CKR
+extern volatile unsigned int   T2CKR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned T2CKR:4;
+} __T2CKRbits_t;
+extern volatile __T2CKRbits_t T2CKRbits __asm__ ("T2CKR") __attribute__((section("sfrs")));
+#define T3CKR T3CKR
+extern volatile unsigned int   T3CKR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned T3CKR:4;
+} __T3CKRbits_t;
+extern volatile __T3CKRbits_t T3CKRbits __asm__ ("T3CKR") __attribute__((section("sfrs")));
+#define T4CKR T4CKR
+extern volatile unsigned int   T4CKR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned T4CKR:4;
+} __T4CKRbits_t;
+extern volatile __T4CKRbits_t T4CKRbits __asm__ ("T4CKR") __attribute__((section("sfrs")));
+#define T5CKR T5CKR
+extern volatile unsigned int   T5CKR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned T5CKR:4;
+} __T5CKRbits_t;
+extern volatile __T5CKRbits_t T5CKRbits __asm__ ("T5CKR") __attribute__((section("sfrs")));
+#define T6CKR T6CKR
+extern volatile unsigned int   T6CKR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned T6CKR:4;
+} __T6CKRbits_t;
+extern volatile __T6CKRbits_t T6CKRbits __asm__ ("T6CKR") __attribute__((section("sfrs")));
+#define T7CKR T7CKR
+extern volatile unsigned int   T7CKR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned T7CKR:4;
+} __T7CKRbits_t;
+extern volatile __T7CKRbits_t T7CKRbits __asm__ ("T7CKR") __attribute__((section("sfrs")));
+#define T8CKR T8CKR
+extern volatile unsigned int   T8CKR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned T8CKR:4;
+} __T8CKRbits_t;
+extern volatile __T8CKRbits_t T8CKRbits __asm__ ("T8CKR") __attribute__((section("sfrs")));
+#define T9CKR T9CKR
+extern volatile unsigned int   T9CKR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned T9CKR:4;
+} __T9CKRbits_t;
+extern volatile __T9CKRbits_t T9CKRbits __asm__ ("T9CKR") __attribute__((section("sfrs")));
+#define IC1R IC1R
+extern volatile unsigned int   IC1R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned IC1R:4;
+} __IC1Rbits_t;
+extern volatile __IC1Rbits_t IC1Rbits __asm__ ("IC1R") __attribute__((section("sfrs")));
+#define IC2R IC2R
+extern volatile unsigned int   IC2R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned IC2R:4;
+} __IC2Rbits_t;
+extern volatile __IC2Rbits_t IC2Rbits __asm__ ("IC2R") __attribute__((section("sfrs")));
+#define IC3R IC3R
+extern volatile unsigned int   IC3R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned IC3R:4;
+} __IC3Rbits_t;
+extern volatile __IC3Rbits_t IC3Rbits __asm__ ("IC3R") __attribute__((section("sfrs")));
+#define IC4R IC4R
+extern volatile unsigned int   IC4R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned IC4R:4;
+} __IC4Rbits_t;
+extern volatile __IC4Rbits_t IC4Rbits __asm__ ("IC4R") __attribute__((section("sfrs")));
+#define IC5R IC5R
+extern volatile unsigned int   IC5R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned IC5R:4;
+} __IC5Rbits_t;
+extern volatile __IC5Rbits_t IC5Rbits __asm__ ("IC5R") __attribute__((section("sfrs")));
+#define IC6R IC6R
+extern volatile unsigned int   IC6R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned IC6R:4;
+} __IC6Rbits_t;
+extern volatile __IC6Rbits_t IC6Rbits __asm__ ("IC6R") __attribute__((section("sfrs")));
+#define IC7R IC7R
+extern volatile unsigned int   IC7R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned IC7R:4;
+} __IC7Rbits_t;
+extern volatile __IC7Rbits_t IC7Rbits __asm__ ("IC7R") __attribute__((section("sfrs")));
+#define IC8R IC8R
+extern volatile unsigned int   IC8R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned IC8R:4;
+} __IC8Rbits_t;
+extern volatile __IC8Rbits_t IC8Rbits __asm__ ("IC8R") __attribute__((section("sfrs")));
+#define IC9R IC9R
+extern volatile unsigned int   IC9R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned IC9R:4;
+} __IC9Rbits_t;
+extern volatile __IC9Rbits_t IC9Rbits __asm__ ("IC9R") __attribute__((section("sfrs")));
+#define OCFAR OCFAR
+extern volatile unsigned int   OCFAR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned OCFAR:4;
+} __OCFARbits_t;
+extern volatile __OCFARbits_t OCFARbits __asm__ ("OCFAR") __attribute__((section("sfrs")));
+#define U1RXR U1RXR
+extern volatile unsigned int   U1RXR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned U1RXR:4;
+} __U1RXRbits_t;
+extern volatile __U1RXRbits_t U1RXRbits __asm__ ("U1RXR") __attribute__((section("sfrs")));
+#define U1CTSR U1CTSR
+extern volatile unsigned int   U1CTSR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned U1CTSR:4;
+} __U1CTSRbits_t;
+extern volatile __U1CTSRbits_t U1CTSRbits __asm__ ("U1CTSR") __attribute__((section("sfrs")));
+#define U2RXR U2RXR
+extern volatile unsigned int   U2RXR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned U2RXR:4;
+} __U2RXRbits_t;
+extern volatile __U2RXRbits_t U2RXRbits __asm__ ("U2RXR") __attribute__((section("sfrs")));
+#define U2CTSR U2CTSR
+extern volatile unsigned int   U2CTSR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned U2CTSR:4;
+} __U2CTSRbits_t;
+extern volatile __U2CTSRbits_t U2CTSRbits __asm__ ("U2CTSR") __attribute__((section("sfrs")));
+#define U3RXR U3RXR
+extern volatile unsigned int   U3RXR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned U3RXR:4;
+} __U3RXRbits_t;
+extern volatile __U3RXRbits_t U3RXRbits __asm__ ("U3RXR") __attribute__((section("sfrs")));
+#define U3CTSR U3CTSR
+extern volatile unsigned int   U3CTSR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned U3CTSR:4;
+} __U3CTSRbits_t;
+extern volatile __U3CTSRbits_t U3CTSRbits __asm__ ("U3CTSR") __attribute__((section("sfrs")));
+#define U4RXR U4RXR
+extern volatile unsigned int   U4RXR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned U4RXR:4;
+} __U4RXRbits_t;
+extern volatile __U4RXRbits_t U4RXRbits __asm__ ("U4RXR") __attribute__((section("sfrs")));
+#define U4CTSR U4CTSR
+extern volatile unsigned int   U4CTSR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned U4CTSR:4;
+} __U4CTSRbits_t;
+extern volatile __U4CTSRbits_t U4CTSRbits __asm__ ("U4CTSR") __attribute__((section("sfrs")));
+#define U5RXR U5RXR
+extern volatile unsigned int   U5RXR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned U5RXR:4;
+} __U5RXRbits_t;
+extern volatile __U5RXRbits_t U5RXRbits __asm__ ("U5RXR") __attribute__((section("sfrs")));
+#define U5CTSR U5CTSR
+extern volatile unsigned int   U5CTSR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned U5CTSR:4;
+} __U5CTSRbits_t;
+extern volatile __U5CTSRbits_t U5CTSRbits __asm__ ("U5CTSR") __attribute__((section("sfrs")));
+#define U6RXR U6RXR
+extern volatile unsigned int   U6RXR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned U6RXR:4;
+} __U6RXRbits_t;
+extern volatile __U6RXRbits_t U6RXRbits __asm__ ("U6RXR") __attribute__((section("sfrs")));
+#define U6CTSR U6CTSR
+extern volatile unsigned int   U6CTSR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned U6CTSR:4;
+} __U6CTSRbits_t;
+extern volatile __U6CTSRbits_t U6CTSRbits __asm__ ("U6CTSR") __attribute__((section("sfrs")));
+#define SDI1R SDI1R
+extern volatile unsigned int   SDI1R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SDI1R:4;
+} __SDI1Rbits_t;
+extern volatile __SDI1Rbits_t SDI1Rbits __asm__ ("SDI1R") __attribute__((section("sfrs")));
+#define SS1R SS1R
+extern volatile unsigned int   SS1R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SS1R:4;
+} __SS1Rbits_t;
+extern volatile __SS1Rbits_t SS1Rbits __asm__ ("SS1R") __attribute__((section("sfrs")));
+#define SDI2R SDI2R
+extern volatile unsigned int   SDI2R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SDI2R:4;
+} __SDI2Rbits_t;
+extern volatile __SDI2Rbits_t SDI2Rbits __asm__ ("SDI2R") __attribute__((section("sfrs")));
+#define SS2R SS2R
+extern volatile unsigned int   SS2R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SS2R:4;
+} __SS2Rbits_t;
+extern volatile __SS2Rbits_t SS2Rbits __asm__ ("SS2R") __attribute__((section("sfrs")));
+#define SDI3R SDI3R
+extern volatile unsigned int   SDI3R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SDI3R:4;
+} __SDI3Rbits_t;
+extern volatile __SDI3Rbits_t SDI3Rbits __asm__ ("SDI3R") __attribute__((section("sfrs")));
+#define SS3R SS3R
+extern volatile unsigned int   SS3R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SS3R:4;
+} __SS3Rbits_t;
+extern volatile __SS3Rbits_t SS3Rbits __asm__ ("SS3R") __attribute__((section("sfrs")));
+#define SDI4R SDI4R
+extern volatile unsigned int   SDI4R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SDI4R:4;
+} __SDI4Rbits_t;
+extern volatile __SDI4Rbits_t SDI4Rbits __asm__ ("SDI4R") __attribute__((section("sfrs")));
+#define SS4R SS4R
+extern volatile unsigned int   SS4R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SS4R:4;
+} __SS4Rbits_t;
+extern volatile __SS4Rbits_t SS4Rbits __asm__ ("SS4R") __attribute__((section("sfrs")));
+#define SDI5R SDI5R
+extern volatile unsigned int   SDI5R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SDI5R:4;
+} __SDI5Rbits_t;
+extern volatile __SDI5Rbits_t SDI5Rbits __asm__ ("SDI5R") __attribute__((section("sfrs")));
+#define SS5R SS5R
+extern volatile unsigned int   SS5R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SS5R:4;
+} __SS5Rbits_t;
+extern volatile __SS5Rbits_t SS5Rbits __asm__ ("SS5R") __attribute__((section("sfrs")));
+#define SDI6R SDI6R
+extern volatile unsigned int   SDI6R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SDI6R:4;
+} __SDI6Rbits_t;
+extern volatile __SDI6Rbits_t SDI6Rbits __asm__ ("SDI6R") __attribute__((section("sfrs")));
+#define SS6R SS6R
+extern volatile unsigned int   SS6R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SS6R:4;
+} __SS6Rbits_t;
+extern volatile __SS6Rbits_t SS6Rbits __asm__ ("SS6R") __attribute__((section("sfrs")));
+#define REFCLKI1R REFCLKI1R
+extern volatile unsigned int   REFCLKI1R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned REFCLKI1R:4;
+} __REFCLKI1Rbits_t;
+extern volatile __REFCLKI1Rbits_t REFCLKI1Rbits __asm__ ("REFCLKI1R") __attribute__((section("sfrs")));
+#define REFCLKI3R REFCLKI3R
+extern volatile unsigned int   REFCLKI3R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned REFCLKI3R:4;
+} __REFCLKI3Rbits_t;
+extern volatile __REFCLKI3Rbits_t REFCLKI3Rbits __asm__ ("REFCLKI3R") __attribute__((section("sfrs")));
+#define REFCLKI4R REFCLKI4R
+extern volatile unsigned int   REFCLKI4R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned REFCLKI4R:4;
+} __REFCLKI4Rbits_t;
+extern volatile __REFCLKI4Rbits_t REFCLKI4Rbits __asm__ ("REFCLKI4R") __attribute__((section("sfrs")));
+#define RPA14R RPA14R
+extern volatile unsigned int   RPA14R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPA14R:4;
+} __RPA14Rbits_t;
+extern volatile __RPA14Rbits_t RPA14Rbits __asm__ ("RPA14R") __attribute__((section("sfrs")));
+#define RPA15R RPA15R
+extern volatile unsigned int   RPA15R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPA15R:4;
+} __RPA15Rbits_t;
+extern volatile __RPA15Rbits_t RPA15Rbits __asm__ ("RPA15R") __attribute__((section("sfrs")));
+#define RPB0R RPB0R
+extern volatile unsigned int   RPB0R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPB0R:4;
+} __RPB0Rbits_t;
+extern volatile __RPB0Rbits_t RPB0Rbits __asm__ ("RPB0R") __attribute__((section("sfrs")));
+#define RPB1R RPB1R
+extern volatile unsigned int   RPB1R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPB1R:4;
+} __RPB1Rbits_t;
+extern volatile __RPB1Rbits_t RPB1Rbits __asm__ ("RPB1R") __attribute__((section("sfrs")));
+#define RPB2R RPB2R
+extern volatile unsigned int   RPB2R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPB2R:4;
+} __RPB2Rbits_t;
+extern volatile __RPB2Rbits_t RPB2Rbits __asm__ ("RPB2R") __attribute__((section("sfrs")));
+#define RPB3R RPB3R
+extern volatile unsigned int   RPB3R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPB3R:4;
+} __RPB3Rbits_t;
+extern volatile __RPB3Rbits_t RPB3Rbits __asm__ ("RPB3R") __attribute__((section("sfrs")));
+#define RPB5R RPB5R
+extern volatile unsigned int   RPB5R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPB5R:4;
+} __RPB5Rbits_t;
+extern volatile __RPB5Rbits_t RPB5Rbits __asm__ ("RPB5R") __attribute__((section("sfrs")));
+#define RPB6R RPB6R
+extern volatile unsigned int   RPB6R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPB6R:4;
+} __RPB6Rbits_t;
+extern volatile __RPB6Rbits_t RPB6Rbits __asm__ ("RPB6R") __attribute__((section("sfrs")));
+#define RPB7R RPB7R
+extern volatile unsigned int   RPB7R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPB7R:4;
+} __RPB7Rbits_t;
+extern volatile __RPB7Rbits_t RPB7Rbits __asm__ ("RPB7R") __attribute__((section("sfrs")));
+#define RPB8R RPB8R
+extern volatile unsigned int   RPB8R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPB8R:4;
+} __RPB8Rbits_t;
+extern volatile __RPB8Rbits_t RPB8Rbits __asm__ ("RPB8R") __attribute__((section("sfrs")));
+#define RPB9R RPB9R
+extern volatile unsigned int   RPB9R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPB9R:4;
+} __RPB9Rbits_t;
+extern volatile __RPB9Rbits_t RPB9Rbits __asm__ ("RPB9R") __attribute__((section("sfrs")));
+#define RPB10R RPB10R
+extern volatile unsigned int   RPB10R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPB10R:4;
+} __RPB10Rbits_t;
+extern volatile __RPB10Rbits_t RPB10Rbits __asm__ ("RPB10R") __attribute__((section("sfrs")));
+#define RPB14R RPB14R
+extern volatile unsigned int   RPB14R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPB14R:4;
+} __RPB14Rbits_t;
+extern volatile __RPB14Rbits_t RPB14Rbits __asm__ ("RPB14R") __attribute__((section("sfrs")));
+#define RPB15R RPB15R
+extern volatile unsigned int   RPB15R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPB15R:4;
+} __RPB15Rbits_t;
+extern volatile __RPB15Rbits_t RPB15Rbits __asm__ ("RPB15R") __attribute__((section("sfrs")));
+#define RPC1R RPC1R
+extern volatile unsigned int   RPC1R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPC1R:4;
+} __RPC1Rbits_t;
+extern volatile __RPC1Rbits_t RPC1Rbits __asm__ ("RPC1R") __attribute__((section("sfrs")));
+#define RPC2R RPC2R
+extern volatile unsigned int   RPC2R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPC2R:4;
+} __RPC2Rbits_t;
+extern volatile __RPC2Rbits_t RPC2Rbits __asm__ ("RPC2R") __attribute__((section("sfrs")));
+#define RPC3R RPC3R
+extern volatile unsigned int   RPC3R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPC3R:4;
+} __RPC3Rbits_t;
+extern volatile __RPC3Rbits_t RPC3Rbits __asm__ ("RPC3R") __attribute__((section("sfrs")));
+#define RPC4R RPC4R
+extern volatile unsigned int   RPC4R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPC4R:4;
+} __RPC4Rbits_t;
+extern volatile __RPC4Rbits_t RPC4Rbits __asm__ ("RPC4R") __attribute__((section("sfrs")));
+#define RPC13R RPC13R
+extern volatile unsigned int   RPC13R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPC13R:4;
+} __RPC13Rbits_t;
+extern volatile __RPC13Rbits_t RPC13Rbits __asm__ ("RPC13R") __attribute__((section("sfrs")));
+#define RPC14R RPC14R
+extern volatile unsigned int   RPC14R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPC14R:4;
+} __RPC14Rbits_t;
+extern volatile __RPC14Rbits_t RPC14Rbits __asm__ ("RPC14R") __attribute__((section("sfrs")));
+#define RPD0R RPD0R
+extern volatile unsigned int   RPD0R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPD0R:4;
+} __RPD0Rbits_t;
+extern volatile __RPD0Rbits_t RPD0Rbits __asm__ ("RPD0R") __attribute__((section("sfrs")));
+#define RPD1R RPD1R
+extern volatile unsigned int   RPD1R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPD1R:4;
+} __RPD1Rbits_t;
+extern volatile __RPD1Rbits_t RPD1Rbits __asm__ ("RPD1R") __attribute__((section("sfrs")));
+#define RPD2R RPD2R
+extern volatile unsigned int   RPD2R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPD2R:4;
+} __RPD2Rbits_t;
+extern volatile __RPD2Rbits_t RPD2Rbits __asm__ ("RPD2R") __attribute__((section("sfrs")));
+#define RPD3R RPD3R
+extern volatile unsigned int   RPD3R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPD3R:4;
+} __RPD3Rbits_t;
+extern volatile __RPD3Rbits_t RPD3Rbits __asm__ ("RPD3R") __attribute__((section("sfrs")));
+#define RPD4R RPD4R
+extern volatile unsigned int   RPD4R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPD4R:4;
+} __RPD4Rbits_t;
+extern volatile __RPD4Rbits_t RPD4Rbits __asm__ ("RPD4R") __attribute__((section("sfrs")));
+#define RPD5R RPD5R
+extern volatile unsigned int   RPD5R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPD5R:4;
+} __RPD5Rbits_t;
+extern volatile __RPD5Rbits_t RPD5Rbits __asm__ ("RPD5R") __attribute__((section("sfrs")));
+#define RPD9R RPD9R
+extern volatile unsigned int   RPD9R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPD9R:4;
+} __RPD9Rbits_t;
+extern volatile __RPD9Rbits_t RPD9Rbits __asm__ ("RPD9R") __attribute__((section("sfrs")));
+#define RPD10R RPD10R
+extern volatile unsigned int   RPD10R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPD10R:4;
+} __RPD10Rbits_t;
+extern volatile __RPD10Rbits_t RPD10Rbits __asm__ ("RPD10R") __attribute__((section("sfrs")));
+#define RPD11R RPD11R
+extern volatile unsigned int   RPD11R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPD11R:4;
+} __RPD11Rbits_t;
+extern volatile __RPD11Rbits_t RPD11Rbits __asm__ ("RPD11R") __attribute__((section("sfrs")));
+#define RPD12R RPD12R
+extern volatile unsigned int   RPD12R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPD12R:4;
+} __RPD12Rbits_t;
+extern volatile __RPD12Rbits_t RPD12Rbits __asm__ ("RPD12R") __attribute__((section("sfrs")));
+#define RPD14R RPD14R
+extern volatile unsigned int   RPD14R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPD14R:4;
+} __RPD14Rbits_t;
+extern volatile __RPD14Rbits_t RPD14Rbits __asm__ ("RPD14R") __attribute__((section("sfrs")));
+#define RPD15R RPD15R
+extern volatile unsigned int   RPD15R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPD15R:4;
+} __RPD15Rbits_t;
+extern volatile __RPD15Rbits_t RPD15Rbits __asm__ ("RPD15R") __attribute__((section("sfrs")));
+#define RPE3R RPE3R
+extern volatile unsigned int   RPE3R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPE3R:4;
+} __RPE3Rbits_t;
+extern volatile __RPE3Rbits_t RPE3Rbits __asm__ ("RPE3R") __attribute__((section("sfrs")));
+#define RPE5R RPE5R
+extern volatile unsigned int   RPE5R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPE5R:4;
+} __RPE5Rbits_t;
+extern volatile __RPE5Rbits_t RPE5Rbits __asm__ ("RPE5R") __attribute__((section("sfrs")));
+#define RPE8R RPE8R
+extern volatile unsigned int   RPE8R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPE8R:4;
+} __RPE8Rbits_t;
+extern volatile __RPE8Rbits_t RPE8Rbits __asm__ ("RPE8R") __attribute__((section("sfrs")));
+#define RPE9R RPE9R
+extern volatile unsigned int   RPE9R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPE9R:4;
+} __RPE9Rbits_t;
+extern volatile __RPE9Rbits_t RPE9Rbits __asm__ ("RPE9R") __attribute__((section("sfrs")));
+#define RPF0R RPF0R
+extern volatile unsigned int   RPF0R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPF0R:4;
+} __RPF0Rbits_t;
+extern volatile __RPF0Rbits_t RPF0Rbits __asm__ ("RPF0R") __attribute__((section("sfrs")));
+#define RPF1R RPF1R
+extern volatile unsigned int   RPF1R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPF1R:4;
+} __RPF1Rbits_t;
+extern volatile __RPF1Rbits_t RPF1Rbits __asm__ ("RPF1R") __attribute__((section("sfrs")));
+#define RPF2R RPF2R
+extern volatile unsigned int   RPF2R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPF2R:4;
+} __RPF2Rbits_t;
+extern volatile __RPF2Rbits_t RPF2Rbits __asm__ ("RPF2R") __attribute__((section("sfrs")));
+#define RPF3R RPF3R
+extern volatile unsigned int   RPF3R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPF3R:4;
+} __RPF3Rbits_t;
+extern volatile __RPF3Rbits_t RPF3Rbits __asm__ ("RPF3R") __attribute__((section("sfrs")));
+#define RPF4R RPF4R
+extern volatile unsigned int   RPF4R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPF4R:4;
+} __RPF4Rbits_t;
+extern volatile __RPF4Rbits_t RPF4Rbits __asm__ ("RPF4R") __attribute__((section("sfrs")));
+#define RPF5R RPF5R
+extern volatile unsigned int   RPF5R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPF5R:4;
+} __RPF5Rbits_t;
+extern volatile __RPF5Rbits_t RPF5Rbits __asm__ ("RPF5R") __attribute__((section("sfrs")));
+#define RPF8R RPF8R
+extern volatile unsigned int   RPF8R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPF8R:4;
+} __RPF8Rbits_t;
+extern volatile __RPF8Rbits_t RPF8Rbits __asm__ ("RPF8R") __attribute__((section("sfrs")));
+#define RPF12R RPF12R
+extern volatile unsigned int   RPF12R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPF12R:4;
+} __RPF12Rbits_t;
+extern volatile __RPF12Rbits_t RPF12Rbits __asm__ ("RPF12R") __attribute__((section("sfrs")));
+#define RPF13R RPF13R
+extern volatile unsigned int   RPF13R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPF13R:4;
+} __RPF13Rbits_t;
+extern volatile __RPF13Rbits_t RPF13Rbits __asm__ ("RPF13R") __attribute__((section("sfrs")));
+#define RPG0R RPG0R
+extern volatile unsigned int   RPG0R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPG0R:4;
+} __RPG0Rbits_t;
+extern volatile __RPG0Rbits_t RPG0Rbits __asm__ ("RPG0R") __attribute__((section("sfrs")));
+#define RPG1R RPG1R
+extern volatile unsigned int   RPG1R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPG1R:4;
+} __RPG1Rbits_t;
+extern volatile __RPG1Rbits_t RPG1Rbits __asm__ ("RPG1R") __attribute__((section("sfrs")));
+#define RPG6R RPG6R
+extern volatile unsigned int   RPG6R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPG6R:4;
+} __RPG6Rbits_t;
+extern volatile __RPG6Rbits_t RPG6Rbits __asm__ ("RPG6R") __attribute__((section("sfrs")));
+#define RPG7R RPG7R
+extern volatile unsigned int   RPG7R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPG7R:4;
+} __RPG7Rbits_t;
+extern volatile __RPG7Rbits_t RPG7Rbits __asm__ ("RPG7R") __attribute__((section("sfrs")));
+#define RPG8R RPG8R
+extern volatile unsigned int   RPG8R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPG8R:4;
+} __RPG8Rbits_t;
+extern volatile __RPG8Rbits_t RPG8Rbits __asm__ ("RPG8R") __attribute__((section("sfrs")));
+#define RPG9R RPG9R
+extern volatile unsigned int   RPG9R __attribute__((section("sfrs")));
+typedef struct {
+  unsigned RPG9R:4;
+} __RPG9Rbits_t;
+extern volatile __RPG9Rbits_t RPG9Rbits __asm__ ("RPG9R") __attribute__((section("sfrs")));
+#define INTCON INTCON
+extern volatile unsigned int   INTCON __attribute__((section("sfrs")));
+typedef struct {
+  unsigned INT0EP:1;
+  unsigned INT1EP:1;
+  unsigned INT2EP:1;
+  unsigned INT3EP:1;
+  unsigned INT4EP:1;
+  unsigned :3;
+  unsigned TPC:3;
+  unsigned :1;
+  unsigned MVEC:1;
+  unsigned :11;
+  unsigned NMIKEY:8;
+} __INTCONbits_t;
+extern volatile __INTCONbits_t INTCONbits __asm__ ("INTCON") __attribute__((section("sfrs")));
+extern volatile unsigned int        INTCONCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        INTCONSET __attribute__((section("sfrs")));
+extern volatile unsigned int        INTCONINV __attribute__((section("sfrs")));
+#define PRISS PRISS
+extern volatile unsigned int   PRISS __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SS0:1;
+  unsigned :3;
+  unsigned PRI1SS:4;
+  unsigned PRI2SS:4;
+  unsigned PRI3SS:4;
+  unsigned PRI4SS:4;
+  unsigned PRI5SS:4;
+  unsigned PRI6SS:4;
+  unsigned PRI7SS:4;
+} __PRISSbits_t;
+extern volatile __PRISSbits_t PRISSbits __asm__ ("PRISS") __attribute__((section("sfrs")));
+extern volatile unsigned int        PRISSCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        PRISSSET __attribute__((section("sfrs")));
+extern volatile unsigned int        PRISSINV __attribute__((section("sfrs")));
+#define INTSTAT INTSTAT
+extern volatile unsigned int   INTSTAT __attribute__((section("sfrs")));
+typedef struct {
+  unsigned SIRQ:8;
+  unsigned SRIPL:3;
+} __INTSTATbits_t;
+extern volatile __INTSTATbits_t INTSTATbits __asm__ ("INTSTAT") __attribute__((section("sfrs")));
+extern volatile unsigned int        INTSTATCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        INTSTATSET __attribute__((section("sfrs")));
+extern volatile unsigned int        INTSTATINV __attribute__((section("sfrs")));
+#define IPTMR IPTMR
+extern volatile unsigned int   IPTMR __attribute__((section("sfrs")));
+typedef struct {
+  unsigned IPTMR:32;
+} __IPTMRbits_t;
+extern volatile __IPTMRbits_t IPTMRbits __asm__ ("IPTMR") __attribute__((section("sfrs")));
+extern volatile unsigned int        IPTMRCLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IPTMRSET __attribute__((section("sfrs")));
+extern volatile unsigned int        IPTMRINV __attribute__((section("sfrs")));
+#define IFS0 IFS0
+extern volatile unsigned int   IFS0 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned CTIF:1;
+    unsigned CS0IF:1;
+    unsigned CS1IF:1;
+    unsigned INT0IF:1;
+    unsigned T1IF:1;
+    unsigned IC1EIF:1;
+    unsigned IC1IF:1;
+    unsigned OC1IF:1;
+    unsigned INT1IF:1;
+    unsigned T2IF:1;
+    unsigned IC2EIF:1;
+    unsigned IC2IF:1;
+    unsigned OC2IF:1;
+    unsigned INT2IF:1;
+    unsigned T3IF:1;
+    unsigned IC3EIF:1;
+    unsigned IC3IF:1;
+    unsigned OC3IF:1;
+    unsigned INT3IF:1;
+    unsigned T4IF:1;
+    unsigned IC4EIF:1;
+    unsigned IC4IF:1;
+    unsigned OC4IF:1;
+    unsigned INT4IF:1;
+    unsigned T5IF:1;
+    unsigned IC5EIF:1;
+    unsigned IC5IF:1;
+    unsigned OC5IF:1;
+    unsigned T6IF:1;
+    unsigned IC6EIF:1;
+    unsigned IC6IF:1;
+    unsigned OC6IF:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IFS0bits_t;
+extern volatile __IFS0bits_t IFS0bits __asm__ ("IFS0") __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS0CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS0SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS0INV __attribute__((section("sfrs")));
+#define IFS1 IFS1
+extern volatile unsigned int   IFS1 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned T7IF:1;
+    unsigned IC7EIF:1;
+    unsigned IC7IF:1;
+    unsigned OC7IF:1;
+    unsigned T8IF:1;
+    unsigned IC8EIF:1;
+    unsigned IC8IF:1;
+    unsigned OC8IF:1;
+    unsigned T9IF:1;
+    unsigned IC9EIF:1;
+    unsigned IC9IF:1;
+    unsigned OC9IF:1;
+    unsigned ADCIF:1;
+    unsigned ADCFIFOIF:1;
+    unsigned ADCDC1IF:1;
+    unsigned ADCDC2IF:1;
+    unsigned ADCDC3IF:1;
+    unsigned ADCDC4IF:1;
+    unsigned ADCDC5IF:1;
+    unsigned ADCDC6IF:1;
+    unsigned ADCDF1IF:1;
+    unsigned ADCDF2IF:1;
+    unsigned ADCDF3IF:1;
+    unsigned ADCDF4IF:1;
+    unsigned ADCDF5IF:1;
+    unsigned ADCDF6IF:1;
+    unsigned ADCFLTIF:1;
+    unsigned ADCD0IF:1;
+    unsigned ADCD1IF:1;
+    unsigned ADCD2IF:1;
+    unsigned ADCD3IF:1;
+    unsigned ADCD4IF:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IFS1bits_t;
+extern volatile __IFS1bits_t IFS1bits __asm__ ("IFS1") __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS1CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS1SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS1INV __attribute__((section("sfrs")));
+#define IFS2 IFS2
+extern volatile unsigned int   IFS2 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned ADCD5IF:1;
+    unsigned ADCD6IF:1;
+    unsigned ADCD7IF:1;
+    unsigned ADCD8IF:1;
+    unsigned ADCD9IF:1;
+    unsigned ADCD10IF:1;
+    unsigned ADCD11IF:1;
+    unsigned ADCD12IF:1;
+    unsigned ADCD13IF:1;
+    unsigned ADCD14IF:1;
+    unsigned ADCD15IF:1;
+    unsigned ADCD16IF:1;
+    unsigned ADCD17IF:1;
+    unsigned ADCD18IF:1;
+    unsigned ADCD19IF:1;
+    unsigned ADCD20IF:1;
+    unsigned ADCD21IF:1;
+    unsigned ADCD22IF:1;
+    unsigned ADCD23IF:1;
+    unsigned ADCD24IF:1;
+    unsigned ADCD25IF:1;
+    unsigned ADCD26IF:1;
+    unsigned ADCD27IF:1;
+    unsigned ADCD28IF:1;
+    unsigned ADCD29IF:1;
+    unsigned ADCD30IF:1;
+    unsigned ADCD31IF:1;
+    unsigned ADCD32IF:1;
+    unsigned ADCD33IF:1;
+    unsigned ADCD34IF:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IFS2bits_t;
+extern volatile __IFS2bits_t IFS2bits __asm__ ("IFS2") __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS2CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS2SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS2INV __attribute__((section("sfrs")));
+#define IFS3 IFS3
+extern volatile unsigned int   IFS3 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned :6;
+    unsigned ADCD43IF:1;
+    unsigned ADCD44IF:1;
+    unsigned CPCIF:1;
+    unsigned CFDCIF:1;
+    unsigned SBIF:1;
+    unsigned :2;
+    unsigned SPI1EIF:1;
+    unsigned SPI1RXIF:1;
+    unsigned SPI1TXIF:1;
+    unsigned U1EIF:1;
+    unsigned U1RXIF:1;
+    unsigned U1TXIF:1;
+    unsigned I2C1BIF:1;
+    unsigned I2C1SIF:1;
+    unsigned I2C1MIF:1;
+    unsigned CNAIF:1;
+    unsigned CNBIF:1;
+    unsigned CNCIF:1;
+    unsigned CNDIF:1;
+    unsigned CNEIF:1;
+    unsigned CNFIF:1;
+    unsigned CNGIF:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IFS3bits_t;
+extern volatile __IFS3bits_t IFS3bits __asm__ ("IFS3") __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS3CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS3SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS3INV __attribute__((section("sfrs")));
+#define IFS4 IFS4
+extern volatile unsigned int   IFS4 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned PMPIF:1;
+    unsigned PMPEIF:1;
+    unsigned CMP1IF:1;
+    unsigned CMP2IF:1;
+    unsigned USBIF:1;
+    unsigned USBDMAIF:1;
+    unsigned DMA0IF:1;
+    unsigned DMA1IF:1;
+    unsigned DMA2IF:1;
+    unsigned DMA3IF:1;
+    unsigned DMA4IF:1;
+    unsigned DMA5IF:1;
+    unsigned DMA6IF:1;
+    unsigned DMA7IF:1;
+    unsigned SPI2EIF:1;
+    unsigned SPI2RXIF:1;
+    unsigned SPI2TXIF:1;
+    unsigned U2EIF:1;
+    unsigned U2RXIF:1;
+    unsigned U2TXIF:1;
+    unsigned I2C2BIF:1;
+    unsigned I2C2SIF:1;
+    unsigned I2C2MIF:1;
+    unsigned :2;
+    unsigned ETHIF:1;
+    unsigned SPI3EIF:1;
+    unsigned SPI3RXIF:1;
+    unsigned SPI3TXIF:1;
+    unsigned U3EIF:1;
+    unsigned U3RXIF:1;
+    unsigned U3TXIF:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IFS4bits_t;
+extern volatile __IFS4bits_t IFS4bits __asm__ ("IFS4") __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS4CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS4SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS4INV __attribute__((section("sfrs")));
+#define IFS5 IFS5
+extern volatile unsigned int   IFS5 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned I2C3BIF:1;
+    unsigned I2C3SIF:1;
+    unsigned I2C3MIF:1;
+    unsigned SPI4EIF:1;
+    unsigned SPI4RXIF:1;
+    unsigned SPI4TXIF:1;
+    unsigned RTCCIF:1;
+    unsigned FCEIF:1;
+    unsigned PREIF:1;
+    unsigned SQI1IF:1;
+    unsigned U4EIF:1;
+    unsigned U4RXIF:1;
+    unsigned U4TXIF:1;
+    unsigned I2C4BIF:1;
+    unsigned I2C4SIF:1;
+    unsigned I2C4MIF:1;
+    unsigned SPI5EIF:1;
+    unsigned SPI5RXIF:1;
+    unsigned SPI5TXIF:1;
+    unsigned U5EIF:1;
+    unsigned U5RXIF:1;
+    unsigned U5TXIF:1;
+    unsigned I2C5BIF:1;
+    unsigned I2C5SIF:1;
+    unsigned I2C5MIF:1;
+    unsigned SPI6IF:1;
+    unsigned SPI6RXIF:1;
+    unsigned SPI6TX:1;
+    unsigned U6EIF:1;
+    unsigned U6RXIF:1;
+    unsigned U6TXIF:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IFS5bits_t;
+extern volatile __IFS5bits_t IFS5bits __asm__ ("IFS5") __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS5CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS5SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS5INV __attribute__((section("sfrs")));
+#define IFS6 IFS6
+extern volatile unsigned int   IFS6 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned ADCEOSIF:1;
+    unsigned ADCARDYIF:1;
+    unsigned ADCURDYIF:1;
+    unsigned :1;
+    unsigned ADCGRPIF:1;
+    unsigned :1;
+    unsigned ADC0EIF:1;
+    unsigned ADC1EIF:1;
+    unsigned ADC2EIF:1;
+    unsigned ADC3EIF:1;
+    unsigned ADC4EIF:1;
+    unsigned :2;
+    unsigned ADC7EIF:1;
+    unsigned ADC0WIF:1;
+    unsigned ADC1WIF:1;
+    unsigned ADC2WIF:1;
+    unsigned ADC3WIF:1;
+    unsigned ADC4WIF:1;
+    unsigned :2;
+    unsigned ADC7WIF:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IFS6bits_t;
+extern volatile __IFS6bits_t IFS6bits __asm__ ("IFS6") __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS6CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS6SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IFS6INV __attribute__((section("sfrs")));
+#define IEC0 IEC0
+extern volatile unsigned int   IEC0 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned CTIE:1;
+    unsigned CS0IE:1;
+    unsigned CS1IE:1;
+    unsigned INT0IE:1;
+    unsigned T1IE:1;
+    unsigned IC1EIE:1;
+    unsigned IC1IE:1;
+    unsigned OC1IE:1;
+    unsigned INT1IE:1;
+    unsigned T2IE:1;
+    unsigned IC2EIE:1;
+    unsigned IC2IE:1;
+    unsigned OC2IE:1;
+    unsigned INT2IE:1;
+    unsigned T3IE:1;
+    unsigned IC3EIE:1;
+    unsigned IC3IE:1;
+    unsigned OC3IE:1;
+    unsigned INT3IE:1;
+    unsigned T4IE:1;
+    unsigned IC4EIE:1;
+    unsigned IC4IE:1;
+    unsigned OC4IE:1;
+    unsigned INT4IE:1;
+    unsigned T5IE:1;
+    unsigned IC5EIE:1;
+    unsigned IC5IE:1;
+    unsigned OC5IE:1;
+    unsigned T6IE:1;
+    unsigned IC6EIE:1;
+    unsigned IC6IE:1;
+    unsigned OC6IE:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IEC0bits_t;
+extern volatile __IEC0bits_t IEC0bits __asm__ ("IEC0") __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC0CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC0SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC0INV __attribute__((section("sfrs")));
+#define IEC1 IEC1
+extern volatile unsigned int   IEC1 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned T7IE:1;
+    unsigned IC7EIE:1;
+    unsigned IC7IE:1;
+    unsigned OC7IE:1;
+    unsigned T8IE:1;
+    unsigned IC8EIE:1;
+    unsigned IC8IE:1;
+    unsigned OC8IE:1;
+    unsigned T9IE:1;
+    unsigned IC9EIE:1;
+    unsigned IC9IE:1;
+    unsigned OC9IE:1;
+    unsigned ADCIE:1;
+    unsigned ADCFIFOIE:1;
+    unsigned ADCDC1IE:1;
+    unsigned ADCDC2IE:1;
+    unsigned ADCDC3IE:1;
+    unsigned ADCDC4IE:1;
+    unsigned ADCDC5IE:1;
+    unsigned ADCDC6IE:1;
+    unsigned ADCDF1IE:1;
+    unsigned ADCDF2IE:1;
+    unsigned ADCDF3IE:1;
+    unsigned ADCDF4IE:1;
+    unsigned ADCDF5IE:1;
+    unsigned ADCDF6IE:1;
+    unsigned ADCFLTIE:1;
+    unsigned ADCD0IE:1;
+    unsigned ADCD1IE:1;
+    unsigned ADCD2IE:1;
+    unsigned ADCD3IE:1;
+    unsigned ADCD4IE:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IEC1bits_t;
+extern volatile __IEC1bits_t IEC1bits __asm__ ("IEC1") __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC1CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC1SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC1INV __attribute__((section("sfrs")));
+#define IEC2 IEC2
+extern volatile unsigned int   IEC2 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned ADCD5IE:1;
+    unsigned ADCD6IE:1;
+    unsigned ADCD7IE:1;
+    unsigned ADCD8IE:1;
+    unsigned ADCD9IE:1;
+    unsigned ADCD10IE:1;
+    unsigned ADCD11IE:1;
+    unsigned ADCD12IE:1;
+    unsigned ADCD13IE:1;
+    unsigned ADCD14IE:1;
+    unsigned ADCD15IE:1;
+    unsigned ADCD16IE:1;
+    unsigned ADCD17IE:1;
+    unsigned ADCD18IE:1;
+    unsigned ADCD19IE:1;
+    unsigned ADCD20IE:1;
+    unsigned ADCD21IE:1;
+    unsigned ADCD22IE:1;
+    unsigned ADCD23IE:1;
+    unsigned ADCD24IE:1;
+    unsigned ADCD25IE:1;
+    unsigned ADCD26IE:1;
+    unsigned ADCD27IE:1;
+    unsigned ADCD28IE:1;
+    unsigned ADCD29IE:1;
+    unsigned ADCD30IE:1;
+    unsigned ADCD31IE:1;
+    unsigned ADCD32IE:1;
+    unsigned ADCD33IE:1;
+    unsigned ADCD34IE:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IEC2bits_t;
+extern volatile __IEC2bits_t IEC2bits __asm__ ("IEC2") __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC2CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC2SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC2INV __attribute__((section("sfrs")));
+#define IEC3 IEC3
+extern volatile unsigned int   IEC3 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned :6;
+    unsigned ADCD43IE:1;
+    unsigned ADCD44IE:1;
+    unsigned CPCIE:1;
+    unsigned CFDCIE:1;
+    unsigned SBIE:1;
+    unsigned :2;
+    unsigned SPI1EIE:1;
+    unsigned SPI1RXIE:1;
+    unsigned SPI1TXIE:1;
+    unsigned U1EIE:1;
+    unsigned U1RXIE:1;
+    unsigned U1TXIE:1;
+    unsigned I2C1BIE:1;
+    unsigned I2C1SIE:1;
+    unsigned I2C1MIE:1;
+    unsigned CNAIE:1;
+    unsigned CNBIE:1;
+    unsigned CNCIE:1;
+    unsigned CNDIE:1;
+    unsigned CNEIE:1;
+    unsigned CNFIE:1;
+    unsigned CNGIE:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IEC3bits_t;
+extern volatile __IEC3bits_t IEC3bits __asm__ ("IEC3") __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC3CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC3SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC3INV __attribute__((section("sfrs")));
+#define IEC4 IEC4
+extern volatile unsigned int   IEC4 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned PMPIE:1;
+    unsigned PMPEIE:1;
+    unsigned CMP1IE:1;
+    unsigned CMP2IE:1;
+    unsigned USBIE:1;
+    unsigned USBDMAIE:1;
+    unsigned DMA0IE:1;
+    unsigned DMA1IE:1;
+    unsigned DMA2IE:1;
+    unsigned DMA3IE:1;
+    unsigned DMA4IE:1;
+    unsigned DMA5IE:1;
+    unsigned DMA6IE:1;
+    unsigned DMA7IE:1;
+    unsigned SPI2EIE:1;
+    unsigned SPI2RXIE:1;
+    unsigned SPI2TXIE:1;
+    unsigned U2EIE:1;
+    unsigned U2RXIE:1;
+    unsigned U2TXIE:1;
+    unsigned I2C2BIE:1;
+    unsigned I2C2SIE:1;
+    unsigned I2C2MIE:1;
+    unsigned :2;
+    unsigned ETHIE:1;
+    unsigned SPI3EIE:1;
+    unsigned SPI3RXIE:1;
+    unsigned SPI3TXIE:1;
+    unsigned U3EIE:1;
+    unsigned U3RXIE:1;
+    unsigned U3TXIE:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IEC4bits_t;
+extern volatile __IEC4bits_t IEC4bits __asm__ ("IEC4") __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC4CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC4SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC4INV __attribute__((section("sfrs")));
+#define IEC5 IEC5
+extern volatile unsigned int   IEC5 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned I2C3BIE:1;
+    unsigned I2C3SIE:1;
+    unsigned I2C3MIE:1;
+    unsigned SPI4EIE:1;
+    unsigned SPI4RXIE:1;
+    unsigned SPI4TXIE:1;
+    unsigned RTCCIE:1;
+    unsigned FCEIE:1;
+    unsigned PREIE:1;
+    unsigned SQI1IE:1;
+    unsigned U4EIE:1;
+    unsigned U4RXIE:1;
+    unsigned U4TXIE:1;
+    unsigned I2C4BIE:1;
+    unsigned I2C4SIE:1;
+    unsigned I2C4MIE:1;
+    unsigned SPI5EIE:1;
+    unsigned SPI5RXIE:1;
+    unsigned SPI5TXIE:1;
+    unsigned U5EIE:1;
+    unsigned U5RXIE:1;
+    unsigned U5TXIE:1;
+    unsigned I2C5BIE:1;
+    unsigned I2C5SIE:1;
+    unsigned I2C5MIE:1;
+    unsigned SPI6IE:1;
+    unsigned SPI6RXIE:1;
+    unsigned SPI6TXIE:1;
+    unsigned U6EIE:1;
+    unsigned U6RXIE:1;
+    unsigned U6TXIE:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IEC5bits_t;
+extern volatile __IEC5bits_t IEC5bits __asm__ ("IEC5") __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC5CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC5SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC5INV __attribute__((section("sfrs")));
+#define IEC6 IEC6
+extern volatile unsigned int   IEC6 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned ADCEOSIE:1;
+    unsigned ADCARDYIE:1;
+    unsigned ADCURDYIE:1;
+    unsigned :1;
+    unsigned ADCGRPIE:1;
+    unsigned :1;
+    unsigned ADC0EIE:1;
+    unsigned ADC1EIE:1;
+    unsigned ADC2EIE:1;
+    unsigned ADC3EIE:1;
+    unsigned ADC4EIE:1;
+    unsigned :2;
+    unsigned ADC7EIE:1;
+    unsigned ADC0WIE:1;
+    unsigned ADC1WIE:1;
+    unsigned ADC2WIE:1;
+    unsigned ADC3WIE:1;
+    unsigned ADC4WIE:1;
+    unsigned :2;
+    unsigned ADC7WIE:1;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IEC6bits_t;
+extern volatile __IEC6bits_t IEC6bits __asm__ ("IEC6") __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC6CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC6SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IEC6INV __attribute__((section("sfrs")));
+#define IPC0 IPC0
+extern volatile unsigned int   IPC0 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned CTIS:2;
+    unsigned CTIP:3;
+    unsigned :3;
+    unsigned CS0IS:2;
+    unsigned CS0IP:3;
+    unsigned :3;
+    unsigned CS1IS:2;
+    unsigned CS1IP:3;
+    unsigned :3;
+    unsigned INT0IS:2;
+    unsigned INT0IP:3;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IPC0bits_t;
+extern volatile __IPC0bits_t IPC0bits __asm__ ("IPC0") __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC0CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC0SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC0INV __attribute__((section("sfrs")));
+#define IPC1 IPC1
+extern volatile unsigned int   IPC1 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned T1IS:2;
+    unsigned T1IP:3;
+    unsigned :3;
+    unsigned IC1EIS:2;
+    unsigned IC1EIP:3;
+    unsigned :3;
+    unsigned IC1IS:2;
+    unsigned IC1IP:3;
+    unsigned :3;
+    unsigned OC1IS:2;
+    unsigned OC1IP:3;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IPC1bits_t;
+extern volatile __IPC1bits_t IPC1bits __asm__ ("IPC1") __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC1CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC1SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC1INV __attribute__((section("sfrs")));
+#define IPC2 IPC2
+extern volatile unsigned int   IPC2 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned INT1IS:2;
+    unsigned INT1IP:3;
+    unsigned :3;
+    unsigned T2IS:2;
+    unsigned T2IP:3;
+    unsigned :3;
+    unsigned IC2EIS:2;
+    unsigned IC2EIP:3;
+    unsigned :3;
+    unsigned IC2IS:2;
+    unsigned IC2IP:3;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IPC2bits_t;
+extern volatile __IPC2bits_t IPC2bits __asm__ ("IPC2") __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC2CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC2SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC2INV __attribute__((section("sfrs")));
+#define IPC3 IPC3
+extern volatile unsigned int   IPC3 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned OC2IS:2;
+    unsigned OC2IP:3;
+    unsigned :3;
+    unsigned INT2IS:2;
+    unsigned INT2IP:3;
+    unsigned :3;
+    unsigned T3IS:2;
+    unsigned T3IP:3;
+    unsigned :3;
+    unsigned IC3EIS:2;
+    unsigned IC3EIP:3;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IPC3bits_t;
+extern volatile __IPC3bits_t IPC3bits __asm__ ("IPC3") __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC3CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC3SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC3INV __attribute__((section("sfrs")));
+#define IPC4 IPC4
+extern volatile unsigned int   IPC4 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned IC3IS:2;
+    unsigned IC3IP:3;
+    unsigned :3;
+    unsigned OC3IS:2;
+    unsigned OC3IP:3;
+    unsigned :3;
+    unsigned INT3IS:2;
+    unsigned INT3IP:3;
+    unsigned :3;
+    unsigned T4IS:2;
+    unsigned T4IP:3;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IPC4bits_t;
+extern volatile __IPC4bits_t IPC4bits __asm__ ("IPC4") __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC4CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC4SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC4INV __attribute__((section("sfrs")));
+#define IPC5 IPC5
+extern volatile unsigned int   IPC5 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned IC4EIS:2;
+    unsigned IC4EIP:3;
+    unsigned :3;
+    unsigned IC4IS:2;
+    unsigned IC4IP:3;
+    unsigned :3;
+    unsigned OC4IS:2;
+    unsigned OC4IP:3;
+    unsigned :3;
+    unsigned INT4IS:2;
+    unsigned INT4IP:3;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IPC5bits_t;
+extern volatile __IPC5bits_t IPC5bits __asm__ ("IPC5") __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC5CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC5SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC5INV __attribute__((section("sfrs")));
+#define IPC6 IPC6
+extern volatile unsigned int   IPC6 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned T5IS:2;
+    unsigned T5IP:3;
+    unsigned :3;
+    unsigned IC5EIS:2;
+    unsigned IC5EIP:3;
+    unsigned :3;
+    unsigned IC5IS:2;
+    unsigned IC5IP:3;
+    unsigned :3;
+    unsigned OC5IS:2;
+    unsigned OC5IP:3;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IPC6bits_t;
+extern volatile __IPC6bits_t IPC6bits __asm__ ("IPC6") __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC6CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC6SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC6INV __attribute__((section("sfrs")));
+#define IPC7 IPC7
+extern volatile unsigned int   IPC7 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned T6IS:2;
+    unsigned T6IP:3;
+    unsigned :3;
+    unsigned IC6EIS:2;
+    unsigned IC6EIP:3;
+    unsigned :3;
+    unsigned IC6IS:2;
+    unsigned IC6IP:3;
+    unsigned :3;
+    unsigned OC6IS:2;
+    unsigned OC6IP:3;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IPC7bits_t;
+extern volatile __IPC7bits_t IPC7bits __asm__ ("IPC7") __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC7CLR __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC7SET __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC7INV __attribute__((section("sfrs")));
+#define IPC8 IPC8
+extern volatile unsigned int   IPC8 __attribute__((section("sfrs")));
+typedef union {
+  struct {
+    unsigned T7IS:2;
+    unsigned T7IP:3;
+    unsigned :3;
+    unsigned IC7EIS:2;
+    unsigned IC7EIP:3;
+    unsigned :3;
+    unsigned IC7IS:2;
+    unsigned IC7IP:3;
+    unsigned :3;
+    unsigned OC7IS:2;
+    unsigned OC7IP:3;
+  };
+  struct {
+    unsigned w:32;
+  };
+} __IPC8bits_t;
+extern volatile __IPC8bits_t IPC8bits __asm__ ("IPC8") __attribute__((section("sfrs")));
+extern volatile unsigned int        IPC8CLR __attribute__((section

<TRUNCATED>