* device/lib/pic/libdev/devices.txt: device list for mkall.sh
[fw/sdcc] / device / include / pic / pic16f84.h
index ae3ebb008a2f44b36d4103d2d5dff1690e437a5f..ae7b4e6e8a55e3b59567f64804d61c6b2730d7b2 100644 (file)
@@ -4,7 +4,7 @@
 //
 // This header file was automatically generated by:
 //
-//     inc2h.pl V1.6
+//     inc2h.pl V4514
 //
 //     Copyright (c) 2002, Kevin L. Pauba, All Rights Reserved
 //
@@ -225,6 +225,51 @@ extern volatile __OPTION_REG_bits_t __at(OPTION_REG_ADDR) OPTION_REG_bits;
 #define INTEDG               OPTION_REG_bits.INTEDG
 #define NOT_RBPU             OPTION_REG_bits.NOT_RBPU
 
+// ----- PORTA bits --------------------
+typedef union {
+  struct {
+    unsigned char RA0:1;
+    unsigned char RA1:1;
+    unsigned char RA2:1;
+    unsigned char RA3:1;
+    unsigned char RA4:1;
+    unsigned char :1;
+    unsigned char :1;
+    unsigned char :1;
+  };
+} __PORTA_bits_t;
+extern volatile __PORTA_bits_t __at(PORTA_ADDR) PORTA_bits;
+
+#define RA0                  PORTA_bits.RA0
+#define RA1                  PORTA_bits.RA1
+#define RA2                  PORTA_bits.RA2
+#define RA3                  PORTA_bits.RA3
+#define RA4                  PORTA_bits.RA4
+
+// ----- PORTB bits --------------------
+typedef union {
+  struct {
+    unsigned char RB0:1;
+    unsigned char RB1:1;
+    unsigned char RB2:1;
+    unsigned char RB3:1;
+    unsigned char RB4:1;
+    unsigned char RB5:1;
+    unsigned char RB6:1;
+    unsigned char RB7:1;
+  };
+} __PORTB_bits_t;
+extern volatile __PORTB_bits_t __at(PORTB_ADDR) PORTB_bits;
+
+#define RB0                  PORTB_bits.RB0
+#define RB1                  PORTB_bits.RB1
+#define RB2                  PORTB_bits.RB2
+#define RB3                  PORTB_bits.RB3
+#define RB4                  PORTB_bits.RB4
+#define RB5                  PORTB_bits.RB5
+#define RB6                  PORTB_bits.RB6
+#define RB7                  PORTB_bits.RB7
+
 // ----- STATUS bits --------------------
 typedef union {
   struct {
@@ -249,50 +294,49 @@ extern volatile __STATUS_bits_t __at(STATUS_ADDR) STATUS_bits;
 #define RP1                  STATUS_bits.RP1
 #define IRP                  STATUS_bits.IRP
 
-// ----- PORTA bits --------------------
+// ----- TRISA bits --------------------
 typedef union {
-    struct {
-    unsigned char RA0:1;
-    unsigned char RA1:1;
-    unsigned char RA2:1;
-    unsigned char RA3:1;
-    unsigned char RA4:1;
+  struct {
+    unsigned char TRISA0:1;
+    unsigned char TRISA1:1;
+    unsigned char TRISA2:1;
+    unsigned char TRISA3:1;
+    unsigned char TRISA4:1;
     unsigned char :1;
     unsigned char :1;
     unsigned char :1;
-    };
-} __PORTA_bits_t;
-extern volatile __PORTA_bits_t __at(PORTA_ADDR) PORTA_bits;
-                                   
-#define RA0             PORTA_bits.RA0
-#define RA1             PORTA_bits.RA1
-#define RA2             PORTA_bits.RA2
-#define RA3             PORTA_bits.RA3
-#define RA4            PORTA_bits.RA4
+  };
+} __TRISA_bits_t;
+extern volatile __TRISA_bits_t __at(TRISA_ADDR) TRISA_bits;
 
-// ----- PORTB bits --------------------
+#define TRISA0               TRISA_bits.TRISA0
+#define TRISA1               TRISA_bits.TRISA1
+#define TRISA2               TRISA_bits.TRISA2
+#define TRISA3               TRISA_bits.TRISA3
+#define TRISA4               TRISA_bits.TRISA4
 
+// ----- TRISB bits --------------------
 typedef union {
-    struct {
-    unsigned char RB0:1;
-    unsigned char RB1:1;
-    unsigned char RB2:1;
-    unsigned char RB3:1;
-    unsigned char RB4:1;
-    unsigned char RB5:1;
-    unsigned char RB6:1;
-    unsigned char RB7:1;
-    };
-} __PORTB_bits_t;
-extern volatile __PORTB_bits_t __at(PORTB_ADDR) PORTB_bits;
-                                   
-#define RB0            PORTB_bits.RB0
-#define RB1            PORTB_bits.RB1
-#define RB2            PORTB_bits.RB2
-#define RB3            PORTB_bits.RB3
-#define RB4            PORTB_bits.RB4
-#define RB5            PORTB_bits.RB5
-#define RB6            PORTB_bits.RB6
-#define RB7            PORTB_bits.RB7
+  struct {
+    unsigned char TRISB0:1;
+    unsigned char TRISB1:1;
+    unsigned char TRISB2:1;
+    unsigned char TRISB3:1;
+    unsigned char TRISB4:1;
+    unsigned char TRISB5:1;
+    unsigned char TRISB6:1;
+    unsigned char TRISB7:1;
+  };
+} __TRISB_bits_t;
+extern volatile __TRISB_bits_t __at(TRISB_ADDR) TRISB_bits;
+
+#define TRISB0               TRISB_bits.TRISB0
+#define TRISB1               TRISB_bits.TRISB1
+#define TRISB2               TRISB_bits.TRISB2
+#define TRISB3               TRISB_bits.TRISB3
+#define TRISB4               TRISB_bits.TRISB4
+#define TRISB5               TRISB_bits.TRISB5
+#define TRISB6               TRISB_bits.TRISB6
+#define TRISB7               TRISB_bits.TRISB7
 
 #endif