* device/lib/pic/libdev/*.c
[fw/sdcc] / device / include / pic / pic16f913.h
index 8ce6106827c7b6eaed32b71ab913e9e4db52c753..c8e832b16b770f6b7eb5047435fac800a6a4b492 100644 (file)
@@ -4,7 +4,7 @@
 //
 // This header file was automatically generated by:
 //
-//     inc2h.pl V4514
+//     inc2h.pl V4585
 //
 //     Copyright (c) 2002, Kevin L. Pauba, All Rights Reserved
 //
 
 
 //         LIST
-// P16F913.INC  Standard Header File, Version 1.00    Microchip Technology, Inc.
+// P16F913.INC  Standard Header File, Version 1.04    Microchip Technology, Inc.
 //         NOLIST
 
 // This header file defines configurations, registers, and other useful bits of
 //1.00   06/11/04 Initial Release 
 //1.01 06/18/04 Corrected typo in 'bad ram' section
 //1.02 08/16/04 Added EECON2
+//1.03 05/20/05 Removed EECON2 from badram
+//1.04   10/05/05 Correct names of bits in ANSEL, Add EEADRH and EEADRL bit 
+//                     definitions
 
 
 //==========================================================================
 
 //----- Register Files------------------------------------------------------
 
-extern __data __at (INDF_ADDR) volatile char      INDF;
+extern __sfr  __at (INDF_ADDR)                    INDF;
 extern __sfr  __at (TMR0_ADDR)                    TMR0;
-extern __data __at (PCL_ADDR) volatile char       PCL;
+extern __sfr  __at (PCL_ADDR)                     PCL;
 extern __sfr  __at (STATUS_ADDR)                  STATUS;
 extern __sfr  __at (FSR_ADDR)                     FSR;
 extern __sfr  __at (PORTA_ADDR)                   PORTA;
@@ -333,38 +336,38 @@ extern __sfr  __at (EECON2_ADDR)                  EECON2;
 //----- LVDCON Bits --------------------------------------------------------
 
 
-//----- LCDDAT0 Bits -------------------------------------------------------
+//----- LCDDATA0 Bits -------------------------------------------------------
 
 
 
-//----- LCDDAT1 Bits -------------------------------------------------------
+//----- LCDDATA1 Bits -------------------------------------------------------
 
 
 
 
-//----- LCDDAT3 Bits -------------------------------------------------------
+//----- LCDDATA3 Bits -------------------------------------------------------
 
 
 
-//----- LCDDAT4 Bits -------------------------------------------------------
+//----- LCDDATA4 Bits -------------------------------------------------------
 
 
 
 
-//----- LCDDAT6 Bits -------------------------------------------------------
+//----- LCDDATA6 Bits -------------------------------------------------------
 
 
 
-//----- LCDDAT7 Bits -------------------------------------------------------
+//----- LCDDATA7 Bits -------------------------------------------------------
 
 
 
 
-//----- LCDDAT9 Bits -------------------------------------------------------
+//----- LCDDATA9 Bits -------------------------------------------------------
 
 
 
-//----- LCDDAT10 Bits -------------------------------------------------------
+//----- LCDDATA10 Bits -------------------------------------------------------
 
 
 
@@ -381,6 +384,12 @@ extern __sfr  __at (EECON2_ADDR)                  EECON2;
 //----- EECON1 Bits --------------------------------------------------------
 
 
+//----- EEADRH Bits --------------------------------------------------------
+
+
+//----- EEADRL Bits --------------------------------------------------------
+
+
 
 //==========================================================================
 //
@@ -392,7 +401,7 @@ extern __sfr  __at (EECON2_ADDR)                  EECON2;
 //         __BADRAM H'08', H'1B'-H'1D'
 //         __BADRAM H'88', H'9A'-H'9B'
 //         __BADRAM H'112', H'115', H'118', H'11B',H'11E'-H'11F'
-//         __BADRAM H'185', H'187'-H'189', H'18D'-H'1EF'
+//         __BADRAM H'185', H'187'-H'189', H'18E'-H'1EF'
 
 //==========================================================================
 //
@@ -495,6 +504,16 @@ extern volatile __ADCON1_bits_t __at(ADCON1_ADDR) ADCON1_bits;
 
 // ----- ANSEL bits --------------------
 typedef union {
+  struct {
+    unsigned char ANS0:1;
+    unsigned char ANS1:1;
+    unsigned char ANS2:1;
+    unsigned char ANS3:1;
+    unsigned char ANS4:1;
+    unsigned char :1;
+    unsigned char :1;
+    unsigned char :1;
+  };
   struct {
     unsigned char AN0:1;
     unsigned char AN1:1;
@@ -508,10 +527,15 @@ typedef union {
 } __ANSEL_bits_t;
 extern volatile __ANSEL_bits_t __at(ANSEL_ADDR) ANSEL_bits;
 
+#define ANS0                 ANSEL_bits.ANS0
 #define AN0                  ANSEL_bits.AN0
+#define ANS1                 ANSEL_bits.ANS1
 #define AN1                  ANSEL_bits.AN1
+#define ANS2                 ANSEL_bits.ANS2
 #define AN2                  ANSEL_bits.AN2
+#define ANS3                 ANSEL_bits.ANS3
 #define AN3                  ANSEL_bits.AN3
+#define ANS4                 ANSEL_bits.ANS4
 #define AN4                  ANSEL_bits.AN4
 
 // ----- CCP1CON bits --------------------
@@ -578,6 +602,51 @@ extern volatile __CMCON1_bits_t __at(CMCON1_ADDR) CMCON1_bits;
 #define C2SYNC               CMCON1_bits.C2SYNC
 #define T1GSS                CMCON1_bits.T1GSS
 
+// ----- EEADRH bits --------------------
+typedef union {
+  struct {
+    unsigned char EEADRH0:1;
+    unsigned char EEADRH1:1;
+    unsigned char EEADRH2:1;
+    unsigned char EEADRH3:1;
+    unsigned char EEADRH4:1;
+    unsigned char :1;
+    unsigned char :1;
+    unsigned char :1;
+  };
+} __EEADRH_bits_t;
+extern volatile __EEADRH_bits_t __at(EEADRH_ADDR) EEADRH_bits;
+
+#define EEADRH0              EEADRH_bits.EEADRH0
+#define EEADRH1              EEADRH_bits.EEADRH1
+#define EEADRH2              EEADRH_bits.EEADRH2
+#define EEADRH3              EEADRH_bits.EEADRH3
+#define EEADRH4              EEADRH_bits.EEADRH4
+
+// ----- EEADRL bits --------------------
+typedef union {
+  struct {
+    unsigned char EEADRL0:1;
+    unsigned char EEADRL1:1;
+    unsigned char EEADRL2:1;
+    unsigned char EEADRL3:1;
+    unsigned char EEADRL4:1;
+    unsigned char EEADRL5:1;
+    unsigned char EEADRL6:1;
+    unsigned char EEADRL7:1;
+  };
+} __EEADRL_bits_t;
+extern volatile __EEADRL_bits_t __at(EEADRL_ADDR) EEADRL_bits;
+
+#define EEADRL0              EEADRL_bits.EEADRL0
+#define EEADRL1              EEADRL_bits.EEADRL1
+#define EEADRL2              EEADRL_bits.EEADRL2
+#define EEADRL3              EEADRL_bits.EEADRL3
+#define EEADRL4              EEADRL_bits.EEADRL4
+#define EEADRL5              EEADRL_bits.EEADRL5
+#define EEADRL6              EEADRL_bits.EEADRL6
+#define EEADRL7              EEADRL_bits.EEADRL7
+
 // ----- EECON1 bits --------------------
 typedef union {
   struct {