Large cummulative patch for pic16 port.
[fw/sdcc] / device / include / pic16 / pic18f242.h
index d1560a4e7e1039d244604306ecde893f4d8933b4..37b31ce4dfddac5af590bf08ba66971996a560cb 100644 (file)
@@ -636,6 +636,21 @@ typedef union {
 extern volatile __OSCCONbits_t at 0xfd3 OSCCONbits;
 
 extern sfr at 0xfd5 T0CON;
+typedef union {
+       struct {
+               unsigned T0PS0:1;
+               unsigned T0PS1:1;
+               unsigned T0PS2:1;
+               unsigned PSA:1;
+               unsigned T0SE:1;
+               unsigned T0CS:1;
+               unsigned T08BIT:1;
+               unsigned TMR0ON:1;
+       };
+} __T0CONbits_t;
+
+extern volatile __T0CONbits_t at 0xfd5 T0CONbits;
+
 extern sfr at 0xfd6 TMR0L;
 extern sfr at 0xfd7 TMR0H;
 extern sfr at 0xfd8 STATUS;