* device/include/ctype.h,
[fw/sdcc] / device / include / ds80c390.h
index 05dc4cf227206ad4bb86211270a529d2fad4c8b3..54f12658d4e839fa943993a9a30acc0866e6cc34 100644 (file)
@@ -1,40 +1,40 @@
 /*-------------------------------------------------------------------------
   Register Declarations for the DALLAS DS80C390 Processor
   far from complete, e.g. no CAN
-  
+
    Written By - Johan Knol, johan.knol@iduna.nl
-    
+
    This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the
    Free Software Foundation; either version 2, or (at your option) any
    later version.
-   
+
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
-   
+
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-   
+
    In other words, you are welcome to use, share and improve this program.
    You are forbidden to forbid anyone else to use, share and improve
-   what you give them.   Help stamp out software-hoarding!  
+   what you give them.   Help stamp out software-hoarding!
 -------------------------------------------------------------------------*/
 
 #ifndef DS80C390_H
 #define DS80C390_H
 
-__sfr __at 0x80 P4; // ce3..ce0, a19..a16
-__sfr __at 0x81 SP; // stack pointer
-__sfr __at 0x82 DPL; // data pointer 0 lsb
-__sfr __at 0x83 DPH; // data pointer 0 msb
-__sfr __at 0x84 DPL1; // data pointer 1 lsb
-__sfr __at 0x85 DPH1; // data pointer 1 msb
-__sfr __at 0x86 DPS; // data pointer select
-__sfr __at 0x87 PCON; // power control
-__sfr __at 0x88 TCON; // timer/counter control
+__sfr __at 0x80 P4;            /* ce3..ce0, a19..a16 */
+__sfr __at 0x81 SP;            /* stack pointer */
+__sfr __at 0x82 DPL;           /* data pointer 0 lsb */
+__sfr __at 0x83 DPH;           /* data pointer 0 msb */
+__sfr __at 0x84 DPL1;          /* data pointer 1 lsb */
+__sfr __at 0x85 DPH1;          /* data pointer 1 msb */
+__sfr __at 0x86 DPS;           /* data pointer select */
+__sfr __at 0x87 PCON;          /* power control */
+__sfr __at 0x88 TCON;          /* timer/counter control */
   __sbit __at 0x88 IT0;
   __sbit __at 0x89 IE0;
   __sbit __at 0x8a IT1;
@@ -43,12 +43,12 @@ __sfr __at 0x88 TCON; // timer/counter control
   __sbit __at 0x8d TF0;
   __sbit __at 0x8e TR1;
   __sbit __at 0x8f TF1;
-__sfr __at 0x89 TMOD; // timer mode control
-__sfr __at 0x8a TL0; // timer 0 lsb
-__sfr __at 0x8b TL1; // timer 1 msb
-__sfr __at 0x8c TH0; // timer 0 msb
-__sfr __at 0x8d TH1; // timer 1 msb
-__sfr __at 0x8e CKCON; // clock control
+__sfr __at 0x89 TMOD;          /* timer mode control */
+__sfr __at 0x8a TL0;           /* timer 0 lsb */
+__sfr __at 0x8b TL1;           /* timer 1 msb */
+__sfr __at 0x8c TH0;           /* timer 0 msb */
+__sfr __at 0x8d TH1;           /* timer 1 msb */
+__sfr __at 0x8e CKCON;                 /* clock control */
 __sfr __at 0x90 P1;
   __sbit __at 0x90 T2;
   __sbit __at 0x91 T2EX;
@@ -58,11 +58,11 @@ __sfr __at 0x90 P1;
   __sbit __at 0x95 INT3;
   __sbit __at 0x96 INT4;
   __sbit __at 0x97 INT5;
-__sfr __at 0x91 EXIF; // external interrupt flag
+__sfr __at 0x91 EXIF;          /* external interrupt flag */
 __sfr __at 0x92 P4CNT;
-__sfr __at 0x93 DPX; // extended datapointer 0
-__sfr __at 0x95 DPX1; // extended datapointer 1
-__sfr __at 0x98 SCON0; // serial 0 control
+__sfr __at 0x93 DPX;           /* extended datapointer 0 */
+__sfr __at 0x95 DPX1;          /* extended datapointer 1 */
+__sfr __at 0x98 SCON0;                 /* serial 0 control */
   __sbit __at 0x98 RI_0;
   __sbit __at 0x99 TI_0;
   __sbit __at 0x9a RB8_0;
@@ -71,15 +71,15 @@ __sfr __at 0x98 SCON0; // serial 0 control
   __sbit __at 0x9d SM2_0;
   __sbit __at 0x9e SM1_0;
   __sbit __at 0x9f SM0_0;
-  __sbit __at 0x9f FE_0; // depending on SMOD0
-__sfr __at 0x99 SBUF0; // serial 0 data buffer
-__sfr __at 0x9b ESP; // extended stack pointer
-__sfr __at 0x9c AP; // address page
-__sfr __at 0x9d ACON; // address control
-__sfr __at 0xa0 P2; // never mind the sbits
+  __sbit __at 0x9f FE_0;       /* depending on SMOD0 */
+__sfr __at 0x99 SBUF0;         /* serial 0 data buffer */
+__sfr __at 0x9b ESP;           /* extended stack pointer */
+__sfr __at 0x9c AP;            /* address page */
+__sfr __at 0x9d ACON;          /* address control */
+__sfr __at 0xa0 P2;            /* never mind the sbits */
 __sfr __at 0xa1 P5;
 __sfr __at 0xa2 P5CNT;
-__sfr __at 0xa8 IE; // interrupt enable
+__sfr __at 0xa8 IE;            /* interrupt enable */
   __sbit __at 0xa8 EX0;
   __sbit __at 0xa9 ET0;
   __sbit __at 0xaa EX1;
@@ -97,15 +97,15 @@ __sfr __at 0xb0 P3;
   __sbit __at 0xb5 T1;
   __sbit __at 0xb6 WR;
   __sbit __at 0xb7 RD;
-__sfr __at 0xb8 IP; // interupt priority 
-  __sbit __at 0xb8 PX0; // external 0
-  __sbit __at 0xb9 PT0; // timer 0
-  __sbit __at 0xba PX1; // external 1
-  __sbit __at 0xbb PT1; // timer 1
-  __sbit __at 0xbc PS0; // serial port 0
-  __sbit __at 0xbd PT2; // timer 2
-  __sbit __at 0xbe PS1; // serial port 1
-__sfr __at 0xc0 SCON1; // serial 1 control
+__sfr __at 0xb8 IP;            /* interupt priority */
+  __sbit __at 0xb8 PX0;        /* external 0 */
+  __sbit __at 0xb9 PT0;        /* timer 0 */
+  __sbit __at 0xba PX1;        /* external 1 */
+  __sbit __at 0xbb PT1;        /* timer 1 */
+  __sbit __at 0xbc PS0;        /* serial port 0 */
+  __sbit __at 0xbd PT2;        /* timer 2 */
+  __sbit __at 0xbe PS1;        /* serial port 1 */
+__sfr __at 0xc0 SCON1;                 /* serial 1 control */
   __sbit __at 0xc0 RI_1;
   __sbit __at 0xc1 TI_1;
   __sbit __at 0xc2 RB8_1;
@@ -114,42 +114,42 @@ __sfr __at 0xc0 SCON1; // serial 1 control
   __sbit __at 0xc5 SM2_1;
   __sbit __at 0xc6 SM1_1;
   __sbit __at 0xc7 SM0_1;
-  __sbit __at 0xc7 FE_1; // depending on SMOD0
-__sfr __at 0xc1 SBUF1; // serial 1 data buffer
-__sfr __at 0xc4 PMR; // power managment
-__sfr __at 0xc6 MCON; // memory control register
-__sfr __at 0xc7 TA; // timed access register
-__sfr __at 0xc8 T2CON; // timer 2 control
-  __sbit __at 0xc8 CP_RL; // capture/reload
-  __sbit __at 0xc9 C_T; // count/timer
-  __sbit __at 0xca TR2; // stop/run
+  __sbit __at 0xc7 FE_1;       /* depending on SMOD0 */
+__sfr __at 0xc1 SBUF1;                 /* serial 1 data buffer */
+__sfr __at 0xc4 PMR;           /* power managment */
+__sfr __at 0xc6 MCON;          /* memory control register */
+__sfr __at 0xc7 TA;            /* timed access register */
+__sfr __at 0xc8 T2CON;                 /* timer 2 control */
+  __sbit __at 0xc8 CP_RL;      /* capture/reload */
+  __sbit __at 0xc9 C_T;        /* count/timer */
+  __sbit __at 0xca TR2;        /* stop/run */
   __sbit __at 0xcb EXEN2;
   __sbit __at 0xcc TCLK;
   __sbit __at 0xcd RCLK;
   __sbit __at 0xce EXF2;
-  __sbit __at 0xcf TF2; // overflow flag
-__sfr __at 0xc9 T2MOD; // timer 2 mode
-__sfr __at 0xca RCAP2L; // timer 2 capture/reload
-__sfr __at 0xca RTL2; // depends on CP_RL
+  __sbit __at 0xcf TF2;        /* overflow flag */
+__sfr __at 0xc9 T2MOD;                 /* timer 2 mode */
+__sfr __at 0xca RCAP2L;        /* timer 2 capture/reload */
+__sfr __at 0xca RTL2;          /* depends on CP_RL */
 __sfr __at 0xcb RCAP2H;
 __sfr __at 0xcb RTH2;
-__sfr __at 0xcc TL2; // timer 2 lsb
-__sfr __at 0xcd TH2; // timer 2 msb
-__sfr __at 0xd0 PSW; // program status word (byte actually)
-  __sbit __at 0xd0 P; // parity
-  __sbit __at 0xd1 F1; // user flag 1
-  __sbit __at 0xd2 OV; // overflow flag
-  __sbit __at 0xd3 RS0; // register select l
-  __sbit __at 0xd4 RS1; // register select h
-  __sbit __at 0xd5 F0; // user flag 0
-  __sbit __at 0xd6 AC; // auxiliary carry flag
-  __sbit __at 0xd7 CY; // carry flag
-__sfr __at 0xd1 MCNT0; // arithmetic accellerator
+__sfr __at 0xcc TL2;           /* timer 2 lsb */
+__sfr __at 0xcd TH2;           /* timer 2 msb */
+__sfr __at 0xd0 PSW;           /* program status word (byte actually) */
+  __sbit __at 0xd0 P;          /* parity */
+  __sbit __at 0xd1 F1;                 /* user flag 1 */
+  __sbit __at 0xd2 OV;                 /* overflow flag */
+  __sbit __at 0xd3 RS0;        /* register select l */
+  __sbit __at 0xd4 RS1;        /* register select h */
+  __sbit __at 0xd5 F0;                 /* user flag 0 */
+  __sbit __at 0xd6 AC;                 /* auxiliary carry flag */
+  __sbit __at 0xd7 CY;                 /* carry flag */
+__sfr __at 0xd1 MCNT0;                 /* arithmetic accellerator */
 __sfr __at 0xd2 MCNT1;
 __sfr __at 0xd3 MA;
 __sfr __at 0xd4 MB;
 __sfr __at 0xd5 MC;
-__sfr __at 0xd8 WDCON; // watch dog
+__sfr __at 0xd8 WDCON;                 /* watch dog */
   __sbit __at 0xd8 RWT;
   __sbit __at 0xd9 EWT;
   __sbit __at 0xda WDRF;
@@ -158,8 +158,8 @@ __sfr __at 0xd8 WDCON; // watch dog
   __sbit __at 0xdd EPFI;
   __sbit __at 0xde POR;
   __sbit __at 0xdf SMOD_1;
-__sfr __at 0xe0 ACC; // accumulator
-__sfr __at 0xe8 EIE; // extended interrupt enable
+__sfr __at 0xe0 ACC;           /* accumulator */
+__sfr __at 0xe8 EIE;           /* extended interrupt enable */
   __sbit __at 0xe8 EX2;
   __sbit __at 0xe9 EX3;
   __sbit __at 0xea EX4;
@@ -168,9 +168,9 @@ __sfr __at 0xe8 EIE; // extended interrupt enable
   __sbit __at 0xed C1IE;
   __sbit __at 0xee C0IE;
   __sbit __at 0xef CANBIE;
-__sfr __at 0xea MXAX; // extended address register
-__sfr __at 0xf0 B; // aux accumulator
-__sfr __at 0xf8 EIP; // extended interrupt priority
+__sfr __at 0xea MXAX;          /* extended address register */
+__sfr __at 0xf0 B;                     /* aux accumulator */
+__sfr __at 0xf8 EIP;           /* extended interrupt priority */
   __sbit __at 0xf8 PX2;
   __sbit __at 0xf9 PX3;
   __sbit __at 0xfa PX4;
@@ -182,9 +182,9 @@ __sfr __at 0xf8 EIP; // extended interrupt priority
 
 /*  WORD/DWORD Registers  */
 
-__sfr16 __at (0x8C8A) TMR0     ;  /* TIMER 0 COUNTER                                         */
-__sfr16 __at (0x8D8B) TMR1     ;  /* TIMER 1 COUNTER                                         */
-__sfr16 __at (0xCDCC) TMR2     ;  /* TIMER 2 COUNTER                                         */
-__sfr16 __at (0xCBCA) RCAP2    ;  /* TIMER 2 CAPTURE REGISTER WORD                           */
+__sfr16 __at (0x8C8A) TMR0;  /* TIMER 0 COUNTER                                */
+__sfr16 __at (0x8D8B) TMR1;  /* TIMER 1 COUNTER                 */
+__sfr16 __at (0xCDCC) TMR2;  /* TIMER 2 COUNTER                 */
+__sfr16 __at (0xCBCA) RCAP2; /* TIMER 2 CAPTURE REGISTER WORD  */
 
 #endif /* DS80C390_H */