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