regdefsold.h

00001 /*  IO DEFINITIONS FOR MCS912DG256B 
00002  *    
00003  */
00004  
00005 #define IO_BASE 0 
00006  
00007 #ifndef IO_BASE
00008 #define IO_BASE _io_ports 
00009 #endif
00010 
00011 /*  MEBI Module  
00012  */
00013 #define  PORTA     *(volatile unsigned char *)(IO_BASE + 0x00)    /* port A */
00014 #define  PORTB     *(volatile unsigned char *)(IO_BASE + 0x01)    /* port B */
00015 #define  DDRA      *(volatile unsigned char *)(IO_BASE + 0x02)    /* data direction port A */
00016 #define  DDRB      *(volatile unsigned char *)(IO_BASE + 0x03)    /* data direction port B */
00017 #define  PORTE     *(volatile unsigned char *)(IO_BASE + 0x08)    /* port E */
00018 #define  DDRE      *(volatile unsigned char *)(IO_BASE + 0x09)    /* data direction port E */
00019 #define  PEAR      *(volatile unsigned char *)(IO_BASE + 0x0a)    /* port E assignment register */
00020 #define  MODE      *(volatile unsigned char *)(IO_BASE + 0x0b)    /* mode register */
00021 #define  PUCR      *(volatile unsigned char *)(IO_BASE + 0x0c)    /* pull-up control register */
00022 #define  RDRIV     *(volatile unsigned char *)(IO_BASE + 0x0d)    /* reduced drive of I/O lines */
00023 #define  EBICTL    *(volatile unsigned char *)(IO_BASE + 0x0e)    /* external bus interface control */
00024 
00025 /*  MMC Module  
00026  */
00027 #define  INITRM    *(volatile unsigned char *)(IO_BASE + 0x10)    /* RAM mapping register */
00028 #define  INITRG    *(volatile unsigned char *)(IO_BASE + 0x11)    /* IO mapping register */
00029 #define  INITEE    *(volatile unsigned char *)(IO_BASE + 0x12)    /* EEPROM mapping register */
00030 #define  MISC      *(volatile unsigned char *)(IO_BASE + 0x13)    /* mapping control register */
00031 #define  MTST0     *(volatile unsigned char *)(IO_BASE + 0x14)    /* mapping test register 0 */
00032 
00033 /*  INT Module  
00034  */
00035 #define  ITCR      *(volatile unsigned char *)(IO_BASE + 0x15)    /* interrupt test control reg. */
00036 #define  ITEST     *(volatile unsigned char *)(IO_BASE + 0x16)    /* interrupt test register */
00037 
00038 /*  MMC Module  
00039  */
00040 #define  MTST1     *(volatile unsigned char *)(IO_BASE + 0x17)    /* mapping test register 1 */
00041 #define  PARTID    *(volatile unsigned short int *)(IO_BASE + 0x1a)    /* part ID register */
00042 #define  MEMSIZ0   *(volatile unsigned char *)(IO_BASE + 0x1c)    /* memory size register 0 */
00043 #define  MEMSIZ1   *(volatile unsigned char *)(IO_BASE + 0x1d)    /* memory size register 1 */
00044 
00045 /*  INT Module  
00046  */
00047 #define  INTCR     *(volatile unsigned char *)(IO_BASE + 0x1e)    /* interrupt control */
00048 #define  HPRIO     *(volatile unsigned char *)(IO_BASE + 0x1f)    /* highest priority */
00049 
00050 /*  BKP Module  
00051  */
00052 #define  BKPCT0    *(volatile unsigned char *)(IO_BASE + 0x28)    /* Breakpoint Control 0 */
00053 #define  BKPCT1    *(volatile unsigned char *)(IO_BASE + 0x29)    /* Breakpoint Control 1 */
00054 #define  BKP0X     *(volatile unsigned char *)(IO_BASE + 0x2a)    /* Breakpoint 0 address upper */
00055 #define  BKP0      *(volatile unsigned short int *)(IO_BASE + 0x2b)    /* Breakpoint 0 address */
00056 #define  BKP1X     *(volatile unsigned char *)(IO_BASE + 0x2d)    /* Breakpoint 1 address upper */
00057 #define  BKP1      *(volatile unsigned short int *)(IO_BASE + 0x2e)    /* Breakpoint 1 address */
00058 
00059 /*  MEBI Module  
00060  */
00061 #define  PPAGE     *(volatile unsigned char *)(IO_BASE + 0x30)    /* program page register */
00062 #define  PORTK     *(volatile unsigned char *)(IO_BASE + 0x32)    /* port K data register */
00063 #define  DDRK      *(volatile unsigned char *)(IO_BASE + 0x33)    /* port K data direction */
00064 
00065 /*  CRG Module  
00066  */
00067 #define  SYNR      *(volatile unsigned char *)(IO_BASE + 0x34)    /* synthesizer register */
00068 #define  REFDV     *(volatile unsigned char *)(IO_BASE + 0x35)    /* reference divider register */
00069 #define  CTFLG     *(volatile unsigned char *)(IO_BASE + 0x36)    /* clock test flag register */
00070 #define  CRGFLG    *(volatile unsigned char *)(IO_BASE + 0x37)    /* clock generator flag register */
00071 #define  CRGINT    *(volatile unsigned char *)(IO_BASE + 0x38)    /* clock interrupt enable */
00072 #define  CLKSEL    *(volatile unsigned char *)(IO_BASE + 0x39)    /* clock select register */
00073 #define  PLLCTL    *(volatile unsigned char *)(IO_BASE + 0x3a)    /* PLL control register */
00074 #define  RTICTL    *(volatile unsigned char *)(IO_BASE + 0x3b)    /* clock real time control reg. */
00075 #define  COPCTL    *(volatile unsigned char *)(IO_BASE + 0x3c)    /* COP control register */
00076 #define  FORBYP    *(volatile unsigned char *)(IO_BASE + 0x3d)    /* clock force and bypass register */
00077 #define  CTCTL     *(volatile unsigned char *)(IO_BASE + 0x3e)    /* clock test control register */
00078 #define  ARMCOP    *(volatile unsigned char *)(IO_BASE + 0x3f)    /* COP arm/reset register */
00079 
00080 /*  Enhanced Capture Timer Module  
00081  */
00082 #define  TIOS      *(volatile unsigned char *)(IO_BASE + 0x40)    /* timer select register */
00083 #define  TCFORC    *(volatile unsigned char *)(IO_BASE + 0x41)    /* compare force register */
00084 #define  TOC7M     *(volatile unsigned char *)(IO_BASE + 0x42)    /* oc7 mask register */
00085 #define  TOC7D     *(volatile unsigned char *)(IO_BASE + 0x43)    /* oc7 data register */
00086 #define  TCNT      *(volatile unsigned short int *)(IO_BASE + 0x44)    /* timer counter */
00087 #define  TSCR1     *(volatile unsigned char *)(IO_BASE + 0x46)    /* system control register 1 */
00088 #define  TTOV      *(volatile unsigned char *)(IO_BASE + 0x47)    /* toggle on overflow register */
00089 #define  TCTL1     *(volatile unsigned char *)(IO_BASE + 0x48)    /* control register 1 */
00090 #define  TCTL2     *(volatile unsigned char *)(IO_BASE + 0x49)    /* control register 2 */
00091 #define  TCTL3     *(volatile unsigned char *)(IO_BASE + 0x4a)    /* control register 3 */
00092 #define  TCTL4     *(volatile unsigned char *)(IO_BASE + 0x4b)    /* control register 4 */
00093 #define  TIE          *(volatile unsigned char *)(IO_BASE + 0x4c)    /* interrupt enable register */
00094 #define  TSCR2     *(volatile unsigned char *)(IO_BASE + 0x4d)    /* system control register 2 */
00095 #define  TFLG1     *(volatile unsigned char *)(IO_BASE + 0x4e)    /* interrupt flag register 1 */
00096 #define  TFLG2     *(volatile unsigned char *)(IO_BASE + 0x4f)    /* interrupt flag register 2 */
00097 #define  TC0       *(volatile unsigned short int *)(IO_BASE + 0x50)    /* capture/compare register 0 */
00098 #define  TC1       *(volatile unsigned short int *)(IO_BASE + 0x52)    /* capture/compare register 0 */
00099 #define  TC2       *(volatile unsigned short int *)(IO_BASE + 0x54)    /* capture/compare register 0 */
00100 #define  TC3       *(volatile unsigned short int *)(IO_BASE + 0x56)    /* capture/compare register 0 */
00101 #define  TC4       *(volatile unsigned short int *)(IO_BASE + 0x58)    /* capture/compare register 0 */
00102 #define  TC5       *(volatile unsigned short int *)(IO_BASE + 0x5a)    /* capture/compare register 0 */
00103 #define  TC6       *(volatile unsigned short int *)(IO_BASE + 0x5c)    /* capture/compare register 0 */
00104 #define  TC7       *(volatile unsigned short int *)(IO_BASE + 0x5e)    /* capture/compare register 0 */
00105 #define  PACTL     *(volatile unsigned char *)(IO_BASE + 0x60)    /* pulse accumulator A control */
00106 #define  PAFLG     *(volatile unsigned char *)(IO_BASE + 0x61)    /* pulse accumulator A flag */
00107 #define  PACN3     *(volatile unsigned char *)(IO_BASE + 0x62)    /* pulse accumulator A3 count */
00108 #define  PACN2     *(volatile unsigned char *)(IO_BASE + 0x63)    /* pulse accumulator A2 count */
00109 #define  PACN1     *(volatile unsigned char *)(IO_BASE + 0x64)    /* pulse accumulator A1 count */
00110 #define  PACN0     *(volatile unsigned char *)(IO_BASE + 0x65)    /* pulse accumulator A0 count */
00111 #define  MCCTL     *(volatile unsigned char *)(IO_BASE + 0x66)    /* modulus counter control reg */
00112 #define  MCFLG     *(volatile unsigned char *)(IO_BASE + 0x67)    /* modulus counter flag reg */
00113 #define  ICPAR     *(volatile unsigned char *)(IO_BASE + 0x68)    /* input control pulse acc reg */
00114 #define  DLYCT     *(volatile unsigned char *)(IO_BASE + 0x69)    /* delay counter control reg */
00115 #define  ICOVW     *(volatile unsigned char *)(IO_BASE + 0x6a)    /* input control overwrite reg */
00116 #define  ICSYS     *(volatile unsigned char *)(IO_BASE + 0x6b)    /* input control system reg */
00117 #define  TIMTST    *(volatile unsigned char *)(IO_BASE + 0x6d)    /* timer test register */
00118 #define  PBCTL     *(volatile unsigned char *)(IO_BASE + 0x70)    /* pulse accumulator B control */
00119 #define  PBFLG     *(volatile unsigned char *)(IO_BASE + 0x71)    /* pulse accumulator B flag */
00120 #define  PA3H      *(volatile unsigned char *)(IO_BASE + 0x72)    /* pulse accumulator B3 count */
00121 #define  PA2H      *(volatile unsigned char *)(IO_BASE + 0x73)    /* pulse accumulator B2 count */
00122 #define  PA1H      *(volatile unsigned char *)(IO_BASE + 0x74)    /* pulse accumulator B1 count */
00123 #define  PA0H      *(volatile unsigned char *)(IO_BASE + 0x75)    /* pulse accumulator B0 count */
00124 #define  MCCNT     *(volatile unsigned short int *)(IO_BASE + 0x76)    /* modulus counter count reg */
00125 #define  TC0H      *(volatile unsigned short int *)(IO_BASE + 0x78)    /* timer input capture hold 0 */
00126 #define  TC1H      *(volatile unsigned short int *)(IO_BASE + 0x7a)    /* timer input capture hold 1 */
00127 #define  TC2H      *(volatile unsigned short int *)(IO_BASE + 0x7c)    /* timer input capture hold 2 */
00128 #define  TC3H      *(volatile unsigned short int *)(IO_BASE + 0x7e)    /* timer input capture hold 3 */
00129 
00130 /*  ATD0 Module  
00131  */
00132 #define  ATD0CTL0  *(volatile unsigned char *)(IO_BASE + 0x80)    /* A/D0 control register 0 */
00133 #define  ATD0CTL1  *(volatile unsigned char *)(IO_BASE + 0x81)    /* A/D0 control register 1 */
00134 #define  ATD0CTL2  *(volatile unsigned char *)(IO_BASE + 0x82)    /* A/D0 control register 2 */
00135 #define  ATD0CTL3  *(volatile unsigned char *)(IO_BASE + 0x83)    /* A/D0 control register 3 */
00136 #define  ATD0CTL4  *(volatile unsigned char *)(IO_BASE + 0x84)    /* A/D0 control register 4 */
00137 #define  ATD0CTL5  *(volatile unsigned char *)(IO_BASE + 0x85)    /* A/D0 control register 5 */
00138 #define  ATD0STAT0 *(volatile unsigned char *)(IO_BASE + 0x86)    /* A/D0 status register 0 */
00139 #define  ATD0STAT1 *(volatile unsigned char *)(IO_BASE + 0x87)    /* A/D0 status register 1 */
00140 #define  ATD0TEST0 *(volatile unsigned char *)(IO_BASE + 0x88)    /* A/D0 test register 0 */
00141 #define  ATD0TEST1 *(volatile unsigned char *)(IO_BASE + 0x89)    /* A/D0 test register 1 */
00142 #define  ATD0DIEN  *(volatile unsigned char *)(IO_BASE + 0x8d)    /* A/D0 interrupt enable */
00143 #define  PORTAD0   *(volatile unsigned char *)(IO_BASE + 0x8f)    /* port AD0 data input register */
00144 #define  ATD0DR0   *(volatile unsigned short int *)(IO_BASE + 0x90)    /* A/D0 result 0 */
00145 #define  ATD0DR1   *(volatile unsigned short int *)(IO_BASE + 0x92)    /* A/D0 result 1 */
00146 #define  ATD0DR2   *(volatile unsigned short int *)(IO_BASE + 0x94)    /* A/D0 result 2 */
00147 #define  ATD0DR3   *(volatile unsigned short int *)(IO_BASE + 0x96)    /* A/D0 result 3 */
00148 #define  ATD0DR4   *(volatile unsigned short int *)(IO_BASE + 0x98)    /* A/D0 result 4 */
00149 #define  ATD0DR5   *(volatile unsigned short int *)(IO_BASE + 0x9a)    /* A/D0 result 5 */
00150 #define  ATD0DR6   *(volatile unsigned short int *)(IO_BASE + 0x9c)    /* A/D0 result 6 */
00151 #define  ATD0DR7   *(volatile unsigned short int *)(IO_BASE + 0x9e)    /* A/D0 result 7 */
00152 
00153 /*  PWM Module  
00154  */
00155 #define  PWME      *(volatile unsigned char *)(IO_BASE + 0xa0)    /* PWM Enable */
00156 #define  PWMPOL    *(volatile unsigned char *)(IO_BASE + 0xa1)    /* PWM Clock Polarity */
00157 #define  PWMCLK    *(volatile unsigned char *)(IO_BASE + 0xa2)    /* PWM Clocks */
00158 #define  PWMPRCLK  *(volatile unsigned char *)(IO_BASE + 0xa3)    /* PWM prescale clock select */
00159 #define  PWMCAE    *(volatile unsigned char *)(IO_BASE + 0xa4)    /* PWM center align enable */
00160 #define  PWMCTL    *(volatile unsigned char *)(IO_BASE + 0xa5)    /* PWM Control Register */
00161 #define  PWMTST    *(volatile unsigned char *)(IO_BASE + 0xa6)    /* PWM Test Register */
00162 #define  PWMPRSC   *(volatile unsigned char *)(IO_BASE + 0xa7)    /* PWM Test Register */
00163 #define  PWMSCLA   *(volatile unsigned char *)(IO_BASE + 0xa8)    /* PWM scale A */
00164 #define  PWMSCLB   *(volatile unsigned char *)(IO_BASE + 0xa9)    /* PWM scale B */
00165 #define  PWMSCNTA  *(volatile unsigned char *)(IO_BASE + 0xaa)    /* PWM Test Register A */
00166 #define  PWMSCNTB  *(volatile unsigned char *)(IO_BASE + 0xab)    /* PWM Test Register B */
00167 #define  PWMCNT0   *(volatile unsigned char *)(IO_BASE + 0xac)    /* PWM Channel Counter 0 */
00168 #define  PWMCNT1   *(volatile unsigned char *)(IO_BASE + 0xad)    /* PWM Channel Counter 1 */
00169 #define  PWMCNT2   *(volatile unsigned char *)(IO_BASE + 0xae)    /* PWM Channel Counter 2 */
00170 #define  PWMCNT3   *(volatile unsigned char *)(IO_BASE + 0xaf)    /* PWM Channel Counter 3 */
00171 #define  PWMCNT4   *(volatile unsigned char *)(IO_BASE + 0xb0)    /* PWM Channel Counter 4 */
00172 #define  PWMCNT5   *(volatile unsigned char *)(IO_BASE + 0xb1)    /* PWM Channel Counter 5 */
00173 #define  PWMCNT6   *(volatile unsigned char *)(IO_BASE + 0xb2)    /* PWM Channel Counter 6 */
00174 #define  PWMCNT7   *(volatile unsigned char *)(IO_BASE + 0xb3)    /* PWM Channel Counter 7 */
00175 #define  PWMPER0   *(volatile unsigned char *)(IO_BASE + 0xb4)    /* PWM Channel Period 0 */
00176 #define  PWMPER1   *(volatile unsigned char *)(IO_BASE + 0xb5)    /* PWM Channel Period 1 */
00177 #define  PWMPER2   *(volatile unsigned char *)(IO_BASE + 0xb6)    /* PWM Channel Period 2 */
00178 #define  PWMPER3   *(volatile unsigned char *)(IO_BASE + 0xb7)    /* PWM Channel Period 3 */
00179 #define  PWMPER4   *(volatile unsigned char *)(IO_BASE + 0xb8)    /* PWM Channel Period 4 */
00180 #define  PWMPER5   *(volatile unsigned char *)(IO_BASE + 0xb9)    /* PWM Channel Period 5 */
00181 #define  PWMPER6   *(volatile unsigned char *)(IO_BASE + 0xba)    /* PWM Channel Period 6 */
00182 #define  PWMPER7   *(volatile unsigned char *)(IO_BASE + 0xbb)    /* PWM Channel Period 7 */
00183 #define  PWMDTY0   *(volatile unsigned char *)(IO_BASE + 0xbc)    /* PWM Channel Duty 0 */
00184 #define  PWMDTY1   *(volatile unsigned char *)(IO_BASE + 0xbd)    /* PWM Channel Duty 1 */
00185 #define  PWMDTY2   *(volatile unsigned char *)(IO_BASE + 0xbe)    /* PWM Channel Duty 2 */
00186 #define  PWMDTY3   *(volatile unsigned char *)(IO_BASE + 0xbf)    /* PWM Channel Duty 3 */
00187 #define  PWMDTY4   *(volatile unsigned char *)(IO_BASE + 0xc0)    /* PWM Channel Duty 4 */
00188 #define  PWMDTY5   *(volatile unsigned char *)(IO_BASE + 0xc1)    /* PWM Channel Duty 5 */
00189 #define  PWMDTY6   *(volatile unsigned char *)(IO_BASE + 0xc2)    /* PWM Channel Duty 6 */
00190 #define  PWMDTY7   *(volatile unsigned char *)(IO_BASE + 0xc3)    /* PWM Channel Duty 7 */
00191 #define  PWMSDN    *(volatile unsigned char *)(IO_BASE + 0xc4)    /* PWM shutdown register */
00192 
00193 /*  SCI0 Module  
00194  */
00195 #define  SCI0BDH   *(volatile unsigned char *)(IO_BASE + 0xc8)    /* SCI 0 baud rate high */
00196 #define  SCI0BDL   *(volatile unsigned char *)(IO_BASE + 0xc9)    /* SCI 0 baud rate low */
00197 #define  SCI0CR1   *(volatile unsigned char *)(IO_BASE + 0xca)    /* SCI 0 control register 1 */
00198 #define  SCI0CR2   *(volatile unsigned char *)(IO_BASE + 0xcb)    /* SCI 0 control register 2 */
00199 #define  SCI0SR1   *(volatile unsigned char *)(IO_BASE + 0xcc)    /* SCI 0 status register 1 */
00200 #define  SCI0SR2   *(volatile unsigned char *)(IO_BASE + 0xcd)    /* SCI 0 status register 2 */
00201 #define  SCI0DRH   *(volatile unsigned char *)(IO_BASE + 0xce)    /* SCI 0 data register high */
00202 #define  SCI0DRL   *(volatile unsigned char *)(IO_BASE + 0xcf)    /* SCI 0 data register low */
00203 
00204 /*  SCI1 Module  
00205  */
00206 #define  SCI1BDH   *(volatile unsigned char *)(IO_BASE + 0xd0)    /* SCI 1 baud rate high */
00207 #define  SCI1BDL   *(volatile unsigned char *)(IO_BASE + 0xd1)    /* SCI 1 baud rate low */
00208 #define  SCI1CR1   *(volatile unsigned char *)(IO_BASE + 0xd2)    /* SCI 1 control register 1 */
00209 #define  SCI1CR2   *(volatile unsigned char *)(IO_BASE + 0xd3)    /* SCI 1 control register 2 */
00210 #define  SCI1SR1   *(volatile unsigned char *)(IO_BASE + 0xd4)    /* SCI 1 status register 1 */
00211 #define  SCI1SR2   *(volatile unsigned char *)(IO_BASE + 0xd5)    /* SCI 1 status register 2 */
00212 #define  SCI1DRH   *(volatile unsigned char *)(IO_BASE + 0xd6)    /* SCI 1 data register high */
00213 #define  SCI1DRL   *(volatile unsigned char *)(IO_BASE + 0xd7)    /* SCI 1 data register low */
00214 
00215 /*  SPI0 Module  
00216  */ 
00217 #define  SPI0CR1   *(volatile unsigned char *)(IO_BASE + 0xd8)    /* SPI 0 control register 1 */
00218 #define  SPI0CR2   *(volatile unsigned char *)(IO_BASE + 0xd9)    /* SPI 0 control register 2 */
00219 #define  SPI0BR    *(volatile unsigned char *)(IO_BASE + 0xda)    /* SPI 0 baud rate register */
00220 #define  SPI0SR    *(volatile unsigned char *)(IO_BASE + 0xdb)    /* SPI 0 status register */
00221 #define  SPI0DR    *(volatile unsigned char *)(IO_BASE + 0xdd)    /* SPI 0 data register */
00222 
00223 /*  I2C Module  
00224  */
00225 #define  IBAD      *(volatile unsigned char *)(IO_BASE + 0xe0)    /* I2C address register */
00226 #define  IBFD      *(volatile unsigned char *)(IO_BASE + 0xe1)    /* I2C freqency divider reg */
00227 #define  IBCR      *(volatile unsigned char *)(IO_BASE + 0xe2)    /* I2C control register */
00228 #define  IBSR      *(volatile unsigned char *)(IO_BASE + 0xe3)    /* I2C status register */
00229 #define  IBDR      *(volatile unsigned char *)(IO_BASE + 0xe4)    /* I2C data register */
00230 
00231 /*  BDLC Module  
00232  */
00233 #define  DLCBCR1   *(volatile unsigned char *)(IO_BASE + 0xe8)    /* BDLC control register 1 */
00234 #define  DLCBSVR   *(volatile unsigned char *)(IO_BASE + 0xe9)    /* BDLC state vector register */
00235 #define  DLCBCR2   *(volatile unsigned char *)(IO_BASE + 0xea)    /* BDLC control register 2 */
00236 #define  DLCBDR    *(volatile unsigned char *)(IO_BASE + 0xeb)    /* BDLC data register */
00237 #define  DLCBARD   *(volatile unsigned char *)(IO_BASE + 0xec)    /* BDLC analog round trip delay */
00238 #define  DLCBRSR   *(volatile unsigned char *)(IO_BASE + 0xed)    /* BDLC rate select register */
00239 #define  DLCSCR    *(volatile unsigned char *)(IO_BASE + 0xee)    /* BDLC control register */
00240 #define  DLCBSTAT  *(volatile unsigned char *)(IO_BASE + 0xef)    /* BDLC status register */
00241 
00242 /*  SPI1 Module  
00243  */ 
00244 #define  SPI1CR1   *(volatile unsigned char *)(IO_BASE + 0xf0)    /* SPI 1 control register 1 */
00245 #define  SPI1CR2   *(volatile unsigned char *)(IO_BASE + 0xf1)    /* SPI 1 control register 2 */
00246 #define  SPI1BR    *(volatile unsigned char *)(IO_BASE + 0xf2)    /* SPI 1 baud rate register */
00247 #define  SPI1SR    *(volatile unsigned char *)(IO_BASE + 0xf3)    /* SPI 1 status register */
00248 #define  SPI1DR    *(volatile unsigned char *)(IO_BASE + 0xf5)    /* SPI 1 data register */
00249 
00250 /*  SPI2 Module  
00251  */
00252 #define  SPI2CR1   *(volatile unsigned char *)(IO_BASE + 0xf8)    /* SPI 2 control register 1 */
00253 #define  SPI2CR2   *(volatile unsigned char *)(IO_BASE + 0xf9)    /* SPI 2 control register 2 */
00254 #define  SPI2BR    *(volatile unsigned char *)(IO_BASE + 0xfa)    /* SPI 2 baud rate register */
00255 #define  SPI2SR    *(volatile unsigned char *)(IO_BASE + 0xfb)    /* SPI 2 status register */
00256 #define  SPI2DR    *(volatile unsigned char *)(IO_BASE + 0xfd)    /* SPI 2 data register */
00257 
00258 /*  Flash Control Module  
00259  */
00260 #define  FCLKDIV      *(volatile unsigned char *)(IO_BASE + 0x100)  /* flash clock divider */
00261 #define  FSEC         *(volatile unsigned char *)(IO_BASE + 0x101)  /* flash security register */
00262 #define  FCNFG        *(volatile unsigned char *)(IO_BASE + 0x103)  /* flash configuration register */
00263 #define  FPROT        *(volatile unsigned char *)(IO_BASE + 0x104)  /* flash protection register */
00264 #define  FSTAT        *(volatile unsigned char *)(IO_BASE + 0x105)  /* flash status register */
00265 #define  FCMD         *(volatile unsigned char *)(IO_BASE + 0x106)  /* flash command register */
00266 
00267 /*  EEPROM Control Module  
00268  */
00269 #define  ECLKDIV      *(volatile unsigned char *)(IO_BASE + 0x110)  /* eeprom clock divider */
00270 #define  ECNFG        *(volatile unsigned char *)(IO_BASE + 0x113)  /* eeprom configuration register */
00271 #define  EPROT        *(volatile unsigned char *)(IO_BASE + 0x114)  /* eeprom protection register */
00272 #define  ESTAT        *(volatile unsigned char *)(IO_BASE + 0x115)  /* eeprom status register */
00273 #define  ECMD         *(volatile unsigned char *)(IO_BASE + 0x116)  /* eeprom command register */
00274 
00275 /*  ATD1 Module  
00276  */
00277 #define ATD1CTL0     *(volatile unsigned char *)(IO_BASE + 0x120)   /* A/D1 control register 0 */
00278 #define  ATD1CTL1     *(volatile unsigned char *)(IO_BASE + 0x121)  /* A/D1 control register 1 */
00279 #define  ATD1CTL2     *(volatile unsigned char *)(IO_BASE + 0x122)  /* A/D1 control register 2 */
00280 #define  ATD1CTL3     *(volatile unsigned char *)(IO_BASE + 0x123)  /* A/D1 control register 3 */
00281 #define  ATD1CTL4     *(volatile unsigned char *)(IO_BASE + 0x124)  /* A/D1 control register 4 */
00282 #define  ATD1CTL5     *(volatile unsigned char *)(IO_BASE + 0x125)  /* A/D1 control register 5 */
00283 #define  ATD1STAT0    *(volatile unsigned char *)(IO_BASE + 0x126)  /* A/D1 status register 0 */
00284 #define  ATD1STAT1    *(volatile unsigned char *)(IO_BASE + 0x127)  /* A/D1 status register 1 */
00285 #define  ATD1TEST0    *(volatile unsigned char *)(IO_BASE + 0x128)  /* A/D1 test register 0 */
00286 #define  ATD1TEST1    *(volatile unsigned char *)(IO_BASE + 0x129)  /* A/D1 test register 1 */
00287 #define  ATD1DIEN     *(volatile unsigned char *)(IO_BASE + 0x12d)  /* A/D1 interrupt enable */
00288 #define  PORTAD1      *(volatile unsigned char *)(IO_BASE + 0x12f)  /* port AD1 data input register */
00289 #define  ATD1DR0      *(volatile unsigned short int *)(IO_BASE + 0x130)     /* A/D1 result 0 */
00290 #define  ATD1DR1      *(volatile unsigned short int *)(IO_BASE + 0x132)     /* A/D1 result 1 */
00291 #define  ATD1DR2      *(volatile unsigned short int *)(IO_BASE + 0x134)     /* A/D1 result 2 */
00292 #define  ATD1DR3      *(volatile unsigned short int *)(IO_BASE + 0x136)     /* A/D1 result 3 */
00293 #define  ATD1DR4      *(volatile unsigned short int *)(IO_BASE + 0x138)     /* A/D1 result 4 */
00294 #define  ATD1DR5      *(volatile unsigned short int *)(IO_BASE + 0x13a)     /* A/D1 result 5 */
00295 #define  ATD1DR6      *(volatile unsigned short int *)(IO_BASE + 0x13c)     /* A/D1 result 6 */
00296 #define  ATD1DR7      *(volatile unsigned short int *)(IO_BASE + 0x13e)     /* A/D1 result 7 */
00297 
00298 /*  CAN0 Module  
00299  */
00300 #define  CAN0CTL0     *(volatile unsigned char *)(IO_BASE + 0x140)  /* CAN0 control register 0 */
00301 #define  CAN0CTL1     *(volatile unsigned char *)(IO_BASE + 0x141)  /* CAN0 control register 1 */
00302 #define  CAN0BTR0     *(volatile unsigned char *)(IO_BASE + 0x142)  /* CAN0 bus timing register 0 */
00303 #define  CAN0BTR1     *(volatile unsigned char *)(IO_BASE + 0x143)  /* CAN0 bus timing register 1 */
00304 #define  CAN0RFLG     *(volatile unsigned char *)(IO_BASE + 0x144)  /* CAN0 receiver flag register */
00305 #define  CAN0RIER     *(volatile unsigned char *)(IO_BASE + 0x145)  /* CAN0 receiver interrupt reg */
00306 #define  CAN0TFLG     *(volatile unsigned char *)(IO_BASE + 0x146)  /* CAN0 transmitter flag reg */
00307 #define  CAN0TIER     *(volatile unsigned char *)(IO_BASE + 0x147)  /* CAN0 transmitter control reg */
00308 #define  CAN0TARQ     *(volatile unsigned char *)(IO_BASE + 0x148)  /* CAN0 transmitter abort request */
00309 #define  CAN0TAAK     *(volatile unsigned char *)(IO_BASE + 0x149)  /* CAN0 transmitter abort acknowledge */
00310 #define  CAN0TBSEL    *(volatile unsigned char *)(IO_BASE + 0x14a)  /* CAN0 transmit buffer selection */
00311 #define  CAN0IDAC     *(volatile unsigned char *)(IO_BASE + 0x14b)  /* CAN0 identifier acceptance */
00312 #define  CAN0RXERR    *(volatile unsigned char *)(IO_BASE + 0x14e)  /* CAN0 receive error counter */
00313 #define  CAN0TXERR    *(volatile unsigned char *)(IO_BASE + 0x14f)  /* CAN0 transmit error counter */
00314 #define  CAN0IDAR0    *(volatile unsigned char *)(IO_BASE + 0x150)  /* CAN0 id acceptance reg 0 */
00315 #define  CAN0IDAR1    *(volatile unsigned char *)(IO_BASE + 0x151)  /* CAN0 id acceptance reg 1 */
00316 #define  CAN0IDAR2    *(volatile unsigned char *)(IO_BASE + 0x152)  /* CAN0 id acceptance reg 2 */
00317 #define  CAN0IDAR3    *(volatile unsigned char *)(IO_BASE + 0x153)  /* CAN0 id acceptance reg 3 */
00318 #define  CAN0IDMR0    *(volatile unsigned char *)(IO_BASE + 0x154)  /* CAN0 id mask register 0 */
00319 #define  CAN0IDMR1    *(volatile unsigned char *)(IO_BASE + 0x155)  /* CAN0 id mask register 1 */
00320 #define  CAN0IDMR2    *(volatile unsigned char *)(IO_BASE + 0x156)  /* CAN0 id mask register 2 */
00321 #define  CAN0IDMR3    *(volatile unsigned char *)(IO_BASE + 0x157)  /* CAN0 id mask register 3 */
00322 #define  CAN0IDAR4    *(volatile unsigned char *)(IO_BASE + 0x158)  /* CAN0 id acceptance reg 4 */
00323 #define  CAN0IDAR5    *(volatile unsigned char *)(IO_BASE + 0x159)  /* CAN0 id acceptance reg 5 */
00324 #define  CAN0IDAR6    *(volatile unsigned char *)(IO_BASE + 0x15a)  /* CAN0 id acceptance reg 6 */
00325 #define  CAN0IDAR7    *(volatile unsigned char *)(IO_BASE + 0x15b)  /* CAN0 id acceptance reg 7 */
00326 #define  CAN0IDMR4    *(volatile unsigned char *)(IO_BASE + 0x15c)  /* CAN0 id mask register 4 */
00327 #define  CAN0IDMR5    *(volatile unsigned char *)(IO_BASE + 0x15d)  /* CAN0 id mask register 5 */
00328 #define  CAN0IDMR6    *(volatile unsigned char *)(IO_BASE + 0x15e)  /* CAN0 id mask register 6 */
00329 #define  CAN0IDMR7    *(volatile unsigned char *)(IO_BASE + 0x15f)  /* CAN0 id mask register 7 */
00330 //#define  CAN0RXFG[16] *(volatile unsigned char *)(IO_BASE + 0x160)    /* CAN0 receive buffer */
00331 //#define  CAN0TXFG[16] *(volatile unsigned char *)(IO_BASE + 0x170)    /* CAN0 transmit buffer */
00332 
00333 /*  CAN1 Module  
00334  */
00335 #define  CAN1CTL0     *(volatile unsigned char *)(IO_BASE + 0x180)  /* CAN1 control register 0 */
00336 #define  CAN1CTL1     *(volatile unsigned char *)(IO_BASE + 0x181)  /* CAN1 control register 1 */
00337 #define  CAN1BTR0     *(volatile unsigned char *)(IO_BASE + 0x182)  /* CAN1 bus timing register 0 */
00338 #define  CAN1BTR1     *(volatile unsigned char *)(IO_BASE + 0x183)  /* CAN1 bus timing register 1 */
00339 #define  CAN1RFLG     *(volatile unsigned char *)(IO_BASE + 0x184)  /* CAN1 receiver flag register */
00340 #define  CAN1RIER     *(volatile unsigned char *)(IO_BASE + 0x185)  /* CAN1 receiver interrupt reg */
00341 #define  CAN1TFLG     *(volatile unsigned char *)(IO_BASE + 0x186)  /* CAN1 transmitter flag reg */
00342 #define  CAN1TIER     *(volatile unsigned char *)(IO_BASE + 0x187)  /* CAN1 transmitter control reg */
00343 #define  CAN1TARQ     *(volatile unsigned char *)(IO_BASE + 0x188)  /* CAN1 transmitter abort request */
00344 #define  CAN1TAAK     *(volatile unsigned char *)(IO_BASE + 0x189)  /* CAN1 transmitter abort acknowledge */
00345 #define  CAN1TBSEL    *(volatile unsigned char *)(IO_BASE + 0x18a)  /* CAN1 transmit buffer selection */
00346 #define  CAN1IDAC     *(volatile unsigned char *)(IO_BASE + 0x18b)  /* CAN1 identifier acceptance */
00347 #define  CAN1RXERR    *(volatile unsigned char *)(IO_BASE + 0x18e)  /* CAN1 transmitter control reg */
00348 #define  CAN1TXERR    *(volatile unsigned char *)(IO_BASE + 0x18f)  /* CAN1 transmit error counter */
00349 #define  CAN1IDAR0    *(volatile unsigned char *)(IO_BASE + 0x190)  /* CAN1 id acceptance reg 0 */
00350 #define  CAN1IDAR1    *(volatile unsigned char *)(IO_BASE + 0x191)  /* CAN1 id acceptance reg 1 */
00351 #define  CAN1IDAR2    *(volatile unsigned char *)(IO_BASE + 0x192)  /* CAN1 id acceptance reg 2 */
00352 #define  CAN1IDAR3    *(volatile unsigned char *)(IO_BASE + 0x193)  /* CAN1 id acceptance reg 3 */
00353 #define  CAN1IDMR0    *(volatile unsigned char *)(IO_BASE + 0x194)  /* CAN1 id mask register 0 */
00354 #define  CAN1IDMR1    *(volatile unsigned char *)(IO_BASE + 0x195)  /* CAN1 id mask register 1 */
00355 #define  CAN1IDMR2    *(volatile unsigned char *)(IO_BASE + 0x196)  /* CAN1 id mask register 2 */
00356 #define  CAN1IDMR3    *(volatile unsigned char *)(IO_BASE + 0x197)  /* CAN1 id mask register 3 */
00357 #define  CAN1IDAR4    *(volatile unsigned char *)(IO_BASE + 0x198)  /* CAN1 id acceptance reg 4 */
00358 #define  CAN1IDAR5    *(volatile unsigned char *)(IO_BASE + 0x199)  /* CAN1 id acceptance reg 5 */
00359 #define  CAN1IDAR6    *(volatile unsigned char *)(IO_BASE + 0x19a)  /* CAN1 id acceptance reg 6 */
00360 #define  CAN1IDAR7    *(volatile unsigned char *)(IO_BASE + 0x19b)  /* CAN1 id acceptance reg 7 */
00361 #define  CAN1IDMR4    *(volatile unsigned char *)(IO_BASE + 0x19c)  /* CAN1 id mask register 4 */
00362 #define  CAN1IDMR5    *(volatile unsigned char *)(IO_BASE + 0x19d)  /* CAN1 id mask register 5 */
00363 #define  CAN1IDMR6    *(volatile unsigned char *)(IO_BASE + 0x19e)  /* CAN1 id mask register 6 */
00364 #define  CAN1IDMR7    *(volatile unsigned char *)(IO_BASE + 0x19f)  /* CAN1 id mask register 7 */
00365 //#define  CAN1RXFG[16] *(volatile unsigned char *)(IO_BASE + 0x1a0)    /* CAN1 receive buffer */
00366 //#define  CAN1TXFG[16] *(volatile unsigned char *)(IO_BASE + 0x1b0)    /* CAN1 transmit buffer */
00367 
00368 /*  CAN2 Module  
00369  */
00370 #define  CAN2CTL0     *(volatile unsigned char *)(IO_BASE + 0x1c0)  /* CAN2 control register 0 */
00371 #define  CAN2CTL1     *(volatile unsigned char *)(IO_BASE + 0x1c1)  /* CAN2 control register 1 */
00372 #define  CAN2BTR0     *(volatile unsigned char *)(IO_BASE + 0x1c2)  /* CAN2 bus timing register 0 */
00373 #define  CAN2BTR1     *(volatile unsigned char *)(IO_BASE + 0x1c3)  /* CAN2 bus timing register 1 */
00374 #define  CAN2RFLG     *(volatile unsigned char *)(IO_BASE + 0x1c4)  /* CAN2 receiver flag register */
00375 #define  CAN2RIER     *(volatile unsigned char *)(IO_BASE + 0x1c5)  /* CAN2 receiver interrupt reg */
00376 #define  CAN2TFLG     *(volatile unsigned char *)(IO_BASE + 0x1c6)  /* CAN2 transmitter flag reg */
00377 #define  CAN2TIER     *(volatile unsigned char *)(IO_BASE + 0x1c7)  /* CAN2 transmitter control reg */
00378 #define  CAN2TARQ     *(volatile unsigned char *)(IO_BASE + 0x1c8)  /* CAN2 transmitter abort request */
00379 #define  CAN2TAAK     *(volatile unsigned char *)(IO_BASE + 0x1c9)  /* CAN2 transmitter abort acknowledge */
00380 #define  CAN2TBSEL    *(volatile unsigned char *)(IO_BASE + 0x1ca)  /* CAN2 transmit buffer selection */
00381 #define  CAN2IDAC     *(volatile unsigned char *)(IO_BASE + 0x1cb)  /* CAN2 identifier acceptance */
00382 #define  CAN2RXERR    *(volatile unsigned char *)(IO_BASE + 0x1ce)  /* CAN2 transmitter control reg */
00383 #define  CAN2TXERR    *(volatile unsigned char *)(IO_BASE + 0x1cf)  /* CAN2 transmit error counter */
00384 #define  CAN2IDAR0    *(volatile unsigned char *)(IO_BASE + 0x1d0)  /* CAN2 id acceptance reg 0 */
00385 #define  CAN2IDAR1    *(volatile unsigned char *)(IO_BASE + 0x1d1)  /* CAN2 id acceptance reg 1 */
00386 #define  CAN2IDAR2    *(volatile unsigned char *)(IO_BASE + 0x1d2)  /* CAN2 id acceptance reg 2 */
00387 #define  CAN2IDAR3    *(volatile unsigned char *)(IO_BASE + 0x1d3)  /* CAN2 id acceptance reg 3 */
00388 #define  CAN2IDMR0    *(volatile unsigned char *)(IO_BASE + 0x1d4)  /* CAN2 id mask register 0 */
00389 #define  CAN2IDMR1    *(volatile unsigned char *)(IO_BASE + 0x1d5)  /* CAN2 id mask register 1 */
00390 #define  CAN2IDMR2    *(volatile unsigned char *)(IO_BASE + 0x1d6)  /* CAN2 id mask register 2 */
00391 #define  CAN2IDMR3    *(volatile unsigned char *)(IO_BASE + 0x1d7)  /* CAN2 id mask register 3 */
00392 #define  CAN2IDAR4    *(volatile unsigned char *)(IO_BASE + 0x1d8)  /* CAN2 id acceptance reg 4 */
00393 #define  CAN2IDAR5    *(volatile unsigned char *)(IO_BASE + 0x1d9)  /* CAN2 id acceptance reg 5 */
00394 #define  CAN2IDAR6    *(volatile unsigned char *)(IO_BASE + 0x1da)  /* CAN2 id acceptance reg 6 */
00395 #define  CAN2IDAR7    *(volatile unsigned char *)(IO_BASE + 0x1db)  /* CAN2 id acceptance reg 7 */
00396 #define  CAN2IDMR4    *(volatile unsigned char *)(IO_BASE + 0x1dc)  /* CAN2 id mask register 4 */
00397 #define  CAN2IDMR5    *(volatile unsigned char *)(IO_BASE + 0x1dd)  /* CAN2 id mask register 5 */
00398 #define  CAN2IDMR6    *(volatile unsigned char *)(IO_BASE + 0x1de)  /* CAN2 id mask register 6 */
00399 #define  CAN2IDMR7    *(volatile unsigned char *)(IO_BASE + 0x1df)  /* CAN2 id mask register 7 */
00400 //#define  CAN2RXFG[16] *(volatile unsigned char *)(IO_BASE + 0x1e0)    /* CAN2 receive buffer */
00401 //#define  CAN2TXFG[16] *(volatile unsigned char *)(IO_BASE + 0x1f0)    /* CAN2 transmit buffer */
00402 
00403 /*  CAN3 Module  
00404  */
00405 #define  CAN3CTL0     *(volatile unsigned char *)(IO_BASE + 0x200)  /* CAN3 control register 0 */
00406 #define  CAN3CTL1     *(volatile unsigned char *)(IO_BASE + 0x201)  /* CAN3 control register 1 */
00407 #define  CAN3BTR0     *(volatile unsigned char *)(IO_BASE + 0x202)  /* CAN3 bus timing register 0 */
00408 #define  CAN3BTR1     *(volatile unsigned char *)(IO_BASE + 0x203)  /* CAN3 bus timing register 1 */
00409 #define  CAN3RFLG     *(volatile unsigned char *)(IO_BASE + 0x204)  /* CAN3 receiver flag register */
00410 #define  CAN3RIER     *(volatile unsigned char *)(IO_BASE + 0x205)  /* CAN3 receiver interrupt reg */
00411 #define  CAN3TFLG     *(volatile unsigned char *)(IO_BASE + 0x206)  /* CAN3 transmitter flag reg */
00412 #define  CAN3TIER     *(volatile unsigned char *)(IO_BASE + 0x207)  /* CAN3 transmitter control reg */
00413 #define  CAN3TARQ     *(volatile unsigned char *)(IO_BASE + 0x208)  /* CAN3 transmitter abort request */
00414 #define  CAN3TAAK     *(volatile unsigned char *)(IO_BASE + 0x209)  /* CAN3 transmitter abort acknowledge */
00415 #define  CAN3TBSEL    *(volatile unsigned char *)(IO_BASE + 0x20a)  /* CAN3 transmit buffer selection */
00416 #define  CAN3IDAC     *(volatile unsigned char *)(IO_BASE + 0x20b)  /* CAN3 identifier acceptance */
00417 #define  CAN3RXERR    *(volatile unsigned char *)(IO_BASE + 0x20e)  /* CAN3 transmitter control reg */
00418 #define  CAN3TXERR    *(volatile unsigned char *)(IO_BASE + 0x20f)  /* CAN3 transmit error counter */
00419 #define  CAN3IDAR0    *(volatile unsigned char *)(IO_BASE + 0x210)  /* CAN3 id acceptance reg 0 */
00420 #define  CAN3IDAR1    *(volatile unsigned char *)(IO_BASE + 0x211)  /* CAN3 id acceptance reg 1 */
00421 #define  CAN3IDAR2    *(volatile unsigned char *)(IO_BASE + 0x212)  /* CAN3 id acceptance reg 2 */
00422 #define  CAN3IDAR3    *(volatile unsigned char *)(IO_BASE + 0x213)  /* CAN3 id acceptance reg 3 */
00423 #define  CAN3IDMR0    *(volatile unsigned char *)(IO_BASE + 0x214)  /* CAN3 id mask register 0 */
00424 #define  CAN3IDMR1    *(volatile unsigned char *)(IO_BASE + 0x215)  /* CAN3 id mask register 1 */
00425 #define  CAN3IDMR2    *(volatile unsigned char *)(IO_BASE + 0x216)  /* CAN3 id mask register 2 */
00426 #define  CAN3IDMR3    *(volatile unsigned char *)(IO_BASE + 0x217)  /* CAN3 id mask register 3 */
00427 #define  CAN3IDAR4    *(volatile unsigned char *)(IO_BASE + 0x218)  /* CAN3 id acceptance reg 4 */
00428 #define  CAN3IDAR5    *(volatile unsigned char *)(IO_BASE + 0x219)  /* CAN3 id acceptance reg 5 */
00429 #define  CAN3IDAR6    *(volatile unsigned char *)(IO_BASE + 0x21a)  /* CAN3 id acceptance reg 6 */
00430 #define  CAN3IDAR7    *(volatile unsigned char *)(IO_BASE + 0x21b)  /* CAN3 id acceptance reg 7 */
00431 #define  CAN3IDMR4    *(volatile unsigned char *)(IO_BASE + 0x21c)  /* CAN3 id mask register 4 */
00432 #define  CAN3IDMR5    *(volatile unsigned char *)(IO_BASE + 0x21d)  /* CAN3 id mask register 5 */
00433 #define  CAN3IDMR6    *(volatile unsigned char *)(IO_BASE + 0x21e)  /* CAN3 id mask register 6 */
00434 #define  CAN3IDMR7    *(volatile unsigned char *)(IO_BASE + 0x21f)  /* CAN3 id mask register 7 */
00435 //#define  CAN3RXFG[16] *(volatile unsigned char *)(IO_BASE + 0x220)    /* CAN3 receive buffer */
00436 //#define  CAN3TXFG[16] *(volatile unsigned char *)(IO_BASE + 0x230)    /* CAN3 transmit buffer */
00437 
00438 /*  Port T Module  
00439  */
00440 #define  PTT          *(volatile unsigned char *)(IO_BASE + 0x240)  /* port T data register */
00441 #define  PTIT         *(volatile unsigned char *)(IO_BASE + 0x241)  /* port T input register */
00442 #define  DDRT         *(volatile unsigned char *)(IO_BASE + 0x242)  /* port T data direction */
00443 #define  RDRT         *(volatile unsigned char *)(IO_BASE + 0x243)  /* port T reduce drive */
00444 #define  PERT         *(volatile unsigned char *)(IO_BASE + 0x244)  /* port T pull enable */
00445 #define  PPST         *(volatile unsigned char *)(IO_BASE + 0x245)  /* port T polarity select */
00446 
00447 /*  Port S Module  
00448  */
00449 #define  PTS          *(volatile unsigned char *)(IO_BASE + 0x248)  /* port S data register */
00450 #define  PTIS         *(volatile unsigned char *)(IO_BASE + 0x249)  /* port S input register */
00451 #define  DDRS         *(volatile unsigned char *)(IO_BASE + 0x24a)  /* port S data direction */
00452 #define  RDRS         *(volatile unsigned char *)(IO_BASE + 0x24b)  /* port S reduce drive */
00453 #define  PERS         *(volatile unsigned char *)(IO_BASE + 0x24c)  /* port S pull enable */
00454 #define  PPSS         *(volatile unsigned char *)(IO_BASE + 0x24d)  /* port S polarity select */
00455 #define  WOMS         *(volatile unsigned char *)(IO_BASE + 0x24e)  /* port S wired-or mode */
00456 
00457 /*  Port M Module  
00458  */
00459 #define  PTM          *(volatile unsigned char *)(IO_BASE + 0x250)  /* port M data register */
00460 #define  PTIM         *(volatile unsigned char *)(IO_BASE + 0x251)  /* port M input register */
00461 #define  DDRM         *(volatile unsigned char *)(IO_BASE + 0x252)  /* port M data direction */
00462 #define  RDRM         *(volatile unsigned char *)(IO_BASE + 0x253)  /* port M reduce drive */
00463 #define  PERM         *(volatile unsigned char *)(IO_BASE + 0x254)  /* port M pull enable */
00464 #define  PPSM         *(volatile unsigned char *)(IO_BASE + 0x255)  /* port M polarity select */
00465 #define  WOMM         *(volatile unsigned char *)(IO_BASE + 0x256)  /* port M wired-or mode */
00466 
00467 /*  Port P Module  
00468  */
00469 #define  PTP          *(volatile unsigned char *)(IO_BASE + 0x258)  /* port P data register */
00470 #define  PTIP         *(volatile unsigned char *)(IO_BASE + 0x259)  /* port P input register */
00471 #define  DDRP         *(volatile unsigned char *)(IO_BASE + 0x25a)  /* port P data direction */
00472 #define  RDRP         *(volatile unsigned char *)(IO_BASE + 0x25b)  /* port P reduce drive */
00473 #define  PERP         *(volatile unsigned char *)(IO_BASE + 0x25c)  /* port P pull enable */
00474 #define  PPSP         *(volatile unsigned char *)(IO_BASE + 0x25d)  /* port P polarity select */
00475 #define  PIEP         *(volatile unsigned char *)(IO_BASE + 0x25e)  /* port P interrupt enable */
00476 #define  PIFP         *(volatile unsigned char *)(IO_BASE + 0x25f)  /* port P interrupt flag */
00477 
00478 /*  Port H Module  
00479  */
00480 #define  PTH          *(volatile unsigned char *)(IO_BASE + 0x260)  /* port H data register */
00481 #define  PTIH         *(volatile unsigned char *)(IO_BASE + 0x261)  /* port H input register */
00482 #define  DDRH         *(volatile unsigned char *)(IO_BASE + 0x262)  /* port H data direction */
00483 #define  RDRH         *(volatile unsigned char *)(IO_BASE + 0x263)  /* port H reduce drive */
00484 #define  PERH         *(volatile unsigned char *)(IO_BASE + 0x264)  /* port H pull enable */
00485 #define  PPSH         *(volatile unsigned char *)(IO_BASE + 0x265)  /* port H polarity select */
00486 #define  PIEH         *(volatile unsigned char *)(IO_BASE + 0x266)  /* port H interrupt enable */
00487 #define  PIFH         *(volatile unsigned char *)(IO_BASE + 0x267)  /* port H interrupt flag */
00488 
00489 /*  Port J Module  
00490  */
00491 #define  PTJ          *(volatile unsigned char *)(IO_BASE + 0x268)  /* port J data register */
00492 #define  PTIJ         *(volatile unsigned char *)(IO_BASE + 0x269)  /* port J input register */
00493 #define  DDRJ         *(volatile unsigned char *)(IO_BASE + 0x26a)  /* port J data direction */
00494 #define  RDRJ         *(volatile unsigned char *)(IO_BASE + 0x26b)  /* port J reduce drive */
00495 #define  PERJ         *(volatile unsigned char *)(IO_BASE + 0x26c)  /* port J pull enable */
00496 #define  PPSJ         *(volatile unsigned char *)(IO_BASE + 0x26d)  /* port J polarity select */
00497 #define  PIEJ         *(volatile unsigned char *)(IO_BASE + 0x26e)  /* port J interrupt enable */
00498 #define  PIFJ         *(volatile unsigned char *)(IO_BASE + 0x26f)  /* port J interrupt flag */
00499 
00500 /*  CAN4 Module  
00501  */
00502 #define  CAN4CTL0     *(volatile unsigned char *)(IO_BASE + 0x280)  /* CAN4 control register 0 */
00503 #define  CAN4CTL1     *(volatile unsigned char *)(IO_BASE + 0x281)  /* CAN4 control register 1 */
00504 #define  CAN4BTR0     *(volatile unsigned char *)(IO_BASE + 0x282)  /* CAN4 bus timing register 0 */
00505 #define  CAN4BTR1     *(volatile unsigned char *)(IO_BASE + 0x283)  /* CAN4 bus timing register 1 */
00506 #define  CAN4RFLG     *(volatile unsigned char *)(IO_BASE + 0x284)  /* CAN4 receiver flag register */
00507 #define  CAN4RIER     *(volatile unsigned char *)(IO_BASE + 0x285)  /* CAN4 receiver interrupt reg */
00508 #define  CAN4TFLG     *(volatile unsigned char *)(IO_BASE + 0x286)  /* CAN4 transmitter flag reg */
00509 #define  CAN4TIER     *(volatile unsigned char *)(IO_BASE + 0x287)  /* CAN4 transmitter control reg */
00510 #define  CAN4TARQ     *(volatile unsigned char *)(IO_BASE + 0x288)  /* CAN4 transmitter abort request */
00511 #define  CAN4TAAK     *(volatile unsigned char *)(IO_BASE + 0x289)  /* CAN4 transmitter abort acknowledge */
00512 #define  CAN4TBSEL    *(volatile unsigned char *)(IO_BASE + 0x28a)  /* CAN4 transmit buffer selection */
00513 #define  CAN4IDAC     *(volatile unsigned char *)(IO_BASE + 0x28b)  /* CAN4 identifier acceptance */
00514 #define  CAN4RXERR    *(volatile unsigned char *)(IO_BASE + 0x28e)  /* CAN4 transmitter control reg */
00515 #define  CAN4TXERR    *(volatile unsigned char *)(IO_BASE + 0x28f)  /* CAN4 transmit error counter */
00516 #define  CAN4IDAR0    *(volatile unsigned char *)(IO_BASE + 0x290)  /* CAN4 id acceptance reg 0 */
00517 #define  CAN4IDAR1    *(volatile unsigned char *)(IO_BASE + 0x291)  /* CAN4 id acceptance reg 1 */
00518 #define  CAN4IDAR2    *(volatile unsigned char *)(IO_BASE + 0x292)  /* CAN4 id acceptance reg 2 */
00519 #define  CAN4IDAR3    *(volatile unsigned char *)(IO_BASE + 0x293)  /* CAN4 id acceptance reg 3 */
00520 #define  CAN4IDMR0    *(volatile unsigned char *)(IO_BASE + 0x294)  /* CAN4 id mask register 0 */
00521 #define  CAN4IDMR1    *(volatile unsigned char *)(IO_BASE + 0x295)  /* CAN4 id mask register 1 */
00522 #define  CAN4IDMR2    *(volatile unsigned char *)(IO_BASE + 0x296)  /* CAN4 id mask register 2 */
00523 #define  CAN4IDMR3    *(volatile unsigned char *)(IO_BASE + 0x297)  /* CAN4 id mask register 3 */
00524 #define  CAN4IDAR4    *(volatile unsigned char *)(IO_BASE + 0x298)  /* CAN4 id acceptance reg 4 */
00525 #define  CAN4IDAR5    *(volatile unsigned char *)(IO_BASE + 0x299)  /* CAN4 id acceptance reg 5 */
00526 #define  CAN4IDAR6    *(volatile unsigned char *)(IO_BASE + 0x29a)  /* CAN4 id acceptance reg 6 */
00527 #define  CAN4IDAR7    *(volatile unsigned char *)(IO_BASE + 0x29b)  /* CAN4 id acceptance reg 7 */
00528 #define  CAN4IDMR4    *(volatile unsigned char *)(IO_BASE + 0x29c)  /* CAN4 id mask register 4 */
00529 #define  CAN4IDMR5    *(volatile unsigned char *)(IO_BASE + 0x29d)  /* CAN4 id mask register 5 */
00530 #define  CAN4IDMR6    *(volatile unsigned char *)(IO_BASE + 0x29e)  /* CAN4 id mask register 6 */
00531 #define  CAN4IDMR7    *(volatile unsigned char *)(IO_BASE + 0x29f)  /* CAN4 id mask register 7 */
00532 //#define  CAN4RXFG[16] *(volatile unsigned char *)(IO_BASE + 0x2a0)    /* CAN4 receive buffer */
00533 //#define  CAN4TXFG[16] *(volatile unsigned char *)(IO_BASE + 0x2b0)    /* CAN4 transmit buffer */
00534 

Generated on Fri Mar 3 17:25:45 2006 for EMAC-HCS12-SDK by  doxygen 1.4.6