diff -r 003cc3c63855 -r f49e5a6b7804 doc/doxygen/html/ports__def_8h-source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/doxygen/html/ports__def_8h-source.html Fri Jun 08 09:23:56 2007 +0200 @@ -0,0 +1,794 @@ + + +CanFestival: include/hcs12/asm-m68hc12/ports_def.h Source File + + + + +
+
+
+
+ +

ports_def.h

Go to the documentation of this file.
00001 /*
+00002 This file is part of CanFestival, a library implementing CanOpen Stack. 
+00003 
+00004 Copyright (C): Edouard TISSERANT and Francis DUPIN
+00005 
+00006 See COPYING file for copyrights details.
+00007 
+00008 This library is free software; you can redistribute it and/or
+00009 modify it under the terms of the GNU Lesser General Public
+00010 License as published by the Free Software Foundation; either
+00011 version 2.1 of the License, or (at your option) any later version.
+00012 
+00013 This library is distributed in the hope that it will be useful,
+00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
+00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+00016 Lesser General Public License for more details.
+00017 
+00018 You should have received a copy of the GNU Lesser General Public
+00019 License along with this library; if not, write to the Free Software
+00020 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+00021 */
+00022 /*
+00023 Definition of the i/o ports of the Motorola HCS12
+00024 */
+00025 
+00026 /*
+00027 On HCS12, ports are maped by default at 0X0000. (see ports.s)
+00028 It can also be done at link stage with an option in
+00029 command line : for example to map at 0X8000
+00030 --defsym _io_ports8=0X8000 --defsym _io_ports16=0X8000
+00031 Or in the file memory.x :
+00032 PROVIDE (_io_ports8 = 0X8000);
+00033 PROVIDE (_io_ports16 = 0X8000);
+00034 (see portsaccess.h)
+00035 I wonder if the value in INITRG must not be changed too 
+00036 at run time.
+00037 */
+00038 
+00039 #ifndef __HCS12_PORTS__
+00040 #define __HCS12_PORTS__
+00041 
+00042 #define  PORTA     0x0000        
+00043 #define  PORTB     0x0001    
+00044 #define  DDRA      0x0002    
+00045 #define  DDRB      0x0003    
+00046 
+00047 #define  PORTE     0x0008    
+00048 #define  DDRE      0x0009    
+00049 #define  PEAR      0x000A    
+00050 #define  MODE      0x000B    
+00051 #define  PUCR      0x000C    
+00052 #define  RDRIV     0x000D    
+00053 #define  EBICTL    0x000E    
+00054 
+00055 #define  INITRM    0x0010    
+00056 #define  INITRG    0x0011    
+00057 #define  INITEE    0x0012    
+00058 #define  MISC      0x0013    
+00059 #define  MTST0     0x0014    
+00060 #define  ITCR      0x0015    
+00061 #define  ITEST     0x0016    
+00062 #define  MTST1     0x0017    
+00063 
+00064 #define  PARTIDH   0x001A    
+00065 #define  PARTIDL   0x001B    
+00066 #define  MEMSIZ0   0x001C    
+00067 #define  MEMSIZ1   0x001D    
+00068 #define  INTCR     0x001E    
+00069 #define  HPRIO     0x001F    
+00070 
+00071 #define  BKPCT0    0x0028    
+00072 #define  BKPCT1    0x0029    
+00073 #define  BKP0X     0x002A    
+00074 #define  BKP0H     0x002B    
+00075 #define  BKP0L     0x002C    
+00076 #define  BKP1X     0x002D    
+00077 #define  BKP1H     0x002E    
+00078 #define  BKP1L     0x002F    
+00079 #define  PPAGE     0x0030    
+00080 
+00081 #define  PORTK     0x0032    
+00082 #define  DDRK      0x0033    
+00083 #define  SYNR      0x0034    
+00084 #define  REFDV     0x0035    
+00085 #define  CTFLG     0x0036    
+00086 #define  CRGFLG    0x0037    
+00087 #define  CRGINT    0x0038    
+00088 #define  CLKSEL    0x0039    
+00089 #define  PLLCTL    0x003A    
+00090 #define  RTICTL    0x003B    
+00091 #define  COPCTL    0x003C    
+00092 #define  FORBYP    0x003D    
+00093 #define  CTCTL     0x003E 
+00094 #define  ARMCOP    0x003F    
+00095 #define  TIOS      0x0040    
+00096 #define  TCFORC    0x0041    
+00097 #define  TOC7M     0x0042    
+00098 #define  TOC7D     0x0043    
+00099 #define  TCNTH     0x0044
+00100 #define  TCNTL     0x0045
+00101 #define  TSCR1     0x0046    
+00102 #define  TTOV      0x0047    
+00103 #define  TCTL1     0x0048    
+00104 #define  TCTL2     0x0049    
+00105 #define  TCTL3     0x004A    
+00106 #define  TCTL4     0x004B    
+00107 #define  TIE       0x004C    
+00108 #define  TSCR2     0x004D    
+00109 #define  TFLG1     0x004E    
+00110 #define  TFLG2     0x004F    
+00111 #define  TC0H      0x0050
+00112 #define  TC0L      0x0051
+00113 #define  TC1H      0x0052
+00114 #define  TC1L      0x0053
+00115 #define  TC2H      0x0054
+00116 #define  TC2L      0x0055
+00117 #define  TC3H      0x0056
+00118 #define  TC3L      0x0057
+00119 #define  TC4H      0x0058
+00120 #define  TC4L      0x0059
+00121 #define  TC5H      0x005A
+00122 #define  TC5L      0x005B
+00123 #define  TC6H      0x005C
+00124 #define  TC6L      0x005D
+00125 #define  TC7H      0x005E
+00126 #define  TC7L      0x005F
+00127 #define  PACTL     0x0060    
+00128 #define  PAFLG     0x0061    
+00129 #define  PACN3H    0x0062
+00130 #define  PACN2L    0x0063
+00131 #define  PACN1H    0x0064
+00132 #define  PACN0L    0x0065
+00133 #define  MCCTL     0x0066    
+00134 #define  MCFLG     0x0067    
+00135 #define  ICPAR     0x0068    
+00136 #define  DLYCT     0x0069    
+00137 #define  ICOVW     0x006A    
+00138 #define  ICSYS     0x006B    
+00139 
+00140 #define  TIMTST    0x006D    
+00141 
+00142 #define  PBCTL     0x0070    
+00143 #define  PBFLG     0x0071    
+00144 #define  PA3H      0x0072    
+00145 #define  PA2H      0x0073    
+00146 #define  PA1H      0x0074    
+00147 #define  PA0H      0x0075    
+00148 #define  MCCNTH    0x0076
+00149 #define  MCCNTL    0x0077
+00150 #define  TC0HH     0x0078
+00151 #define  TC0HL     0x0079
+00152 #define  TC1HH     0x007A
+00153 #define  TC1HL     0x007B
+00154 #define  TC2HH     0x007C
+00155 #define  TC2HL     0x007D
+00156 #define  TC3HH     0x007E
+00157 
+00158 #define  ATD0CTL0  0x0080    
+00159 #define  ATD00CTL1 0x0081     
+00160 #define  ATD0CTL2  0x0082     
+00161 #define  ATD0CTL3  0x0083    
+00162 #define  ATD0CTL4  0x0084    
+00163 #define  ATD0CTL5  0x0085    
+00164 #define  ATD0STAT0 0x0086    
+00165 #define  ATD0STAT1 0x0087    
+00166 #define  ATD0TEST0 0x0088    
+00167 #define  ATD0TEST1 0x0089    
+00168 
+00169 #define  ATD0DIEN  0x008D    
+00170 
+00171 #define  PORTAD0   0x008F    
+00172 #define  ATD0DR0H  0x0090    
+00173 #define  ATD0DR0L  0x0091    
+00174 #define  ATD0DR1H  0x0092    
+00175 #define  ATD0DR1L  0x0093    
+00176 #define  ATD0DR2H  0x0094    
+00177 #define  ATD0DR2L  0x0095    
+00178 #define  ATD0DR3H  0x0096   
+00179 #define  ATD0DR3L  0x0097    
+00180 #define  ATD0DR4H  0x0098    
+00181 #define  ATD0DR4L  0x0099    
+00182 #define  ATD0DR5H  0x009A    
+00183 #define  ATD0DR5L  0x009B    
+00184 #define  ATD0DR6H  0x009C    
+00185 #define  ATD0DR6L  0x009D    
+00186 #define  ATD0DR7H  0x009E    
+00187 #define  ATD0DR7L  0x009F    
+00188 #define  PWME      0x00A0    
+00189 #define  PWMPOL    0x00A1    
+00190 #define  PWMCLK    0x00A2    
+00191 #define  PWMPRCLK  0x00A3    
+00192 #define  PWMCAE    0x00A4    
+00193 #define  PWMCTL    0x00A5    
+00194 #define  PWMTST    0x00A6    
+00195 #define  PWMPRSC   0x00A7    
+00196 #define  PWMSCLA   0x00A8    
+00197 #define  PWMSCLB   0x00A9    
+00198 #define  PWMSCNTA  0x00AA    
+00199 #define  PWMSCNTB  0x00AB    
+00200 #define  PWMCNT0   0x00AC    
+00201 #define  PWMCNT1   0x00AD    
+00202 #define  PWMCNT2   0x00AE    
+00203 #define  PWMCNT3   0x00AF    
+00204 #define  PWMCNT4   0x00B0    
+00205 #define  PWMCNT5   0x00B1    
+00206 #define  PWMCNT6   0x00B2    
+00207 #define  PWMCNT7   0x00B3    
+00208 #define  PWMPER0   0x00B4    
+00209 #define  PWMPER1   0x00B5    
+00210 #define  PWMPER2   0x00B6    
+00211 #define  PWMPER3   0x00B7    
+00212 #define  PWMPER4   0x00B8    
+00213 #define  PWMPER5   0x00B9    
+00214 #define  PWMPER6   0x00BA    
+00215 #define  PWMPER7   0x00BB    
+00216 #define  PWMDTY0   0x00BC    
+00217 #define  PWMDTY1   0x00BD    
+00218 #define  PWMDTY2   0x00BE    
+00219 #define  PWMDTY3   0x00BF    
+00220 #define  PWMDTY4   0x00C0    
+00221 #define  PWMDTY5   0x00C1    
+00222 #define  PWMDTY6   0x00C2    
+00223 #define  PWMDTY7   0x00C3    
+00224 #define  PWMSDN    0x00C4   
+00225 
+00226 #define  SCI0BDH   0x00C8    
+00227 #define  SCI0BDL   0x00C9    
+00228 #define  SC0CR1    0x00CA    
+00229 #define  SCI0CR2   0x00CB    
+00230 #define  SCI0SR1   0x00CC    
+00231 #define  SC0SR2    0x00CD    
+00232 #define  SCI0DRH   0x00CE    
+00233 #define  SCI0DRL   0x00CF    
+00234 #define  SCI1BDH   0x00D0    
+00235 #define  SCI1BDL   0x00D1    
+00236 #define  SC1CR1    0x00D2    
+00237 #define  SCI1CR2   0x00D3    
+00238 #define  SCI1SR1   0x00D4    
+00239 #define  SC1SR2    0x00D5    
+00240 #define  SCI1DRH   0x00D6    
+00241 #define  SCI1DRL   0x00D7    
+00242 #define  SPI0CR1   0x00D8    
+00243 #define  SPI0CR2   0x00D9    
+00244 #define  SPI0BR    0x00DA    
+00245 #define  SPI0SR    0x00DB   
+00246 
+00247 #define  SPI0DR    0x00DD    
+00248 
+00249 #define  IBAD      0x00E0    
+00250 #define  IBFD      0x00E1    
+00251 #define  IBCR      0x00E2    
+00252 #define  IBSR      0x00E3    
+00253 #define  IICDR     0x00E4    
+00254 
+00255 #define  DLCBCR1   0x00E8    
+00256 #define  DLCBSVR   0x00E9    
+00257 #define  DLCBCR2   0x00EA    
+00258 #define  DLCBDR    0x00EB    
+00259 #define  DLCBARD   0x00EC    
+00260 #define  DLCBRSR   0x00ED    
+00261 #define  DLCSCR    0x00EE    
+00262 #define  DLCBSTAT  0x00EF    
+00263 #define  SPI1CR1   0x00F0    
+00264 #define  SPI1CR2   0x00F1    
+00265 #define  SPI1BR    0x00F2  
+00266 #define  SPI1SR    0x00F3    
+00267 
+00268 #define  SPI1DR    0x00F5    
+00269 
+00270 #define  SPI2CR1   0x00F8    
+00271 #define  SPI2CR2   0x00F9    
+00272 #define  SPI2BR    0x00FA    
+00273 #define  SPI2SR    0x00FB    
+00274 
+00275 #define  SPI2DR    0x00FD    
+00276 
+00277 #define  FCLKDIV   0x0100     
+00278 #define  FSEC      0x0101    
+00279 
+00280 #define  FCNFG     0x0103    
+00281 #define  FPROT     0x0104    
+00282 #define  FSTAT     0x0105    
+00283 #define  FCMD      0x0106    
+00284 
+00285 #define  ECLKDIV   0x0110   
+00286 
+00287 #define  ECNFG     0x0113    
+00288 #define  EPROT     0x0114    
+00289 #define  ESTAT     0x0115    
+00290 #define  ECMD      0x0116    
+00291 
+00292 #define  ATD1CTL0  0x0120    
+00293 #define  ATD1CTL1  0x0121    
+00294 #define  ATD1CTL2  0x0122    
+00295 #define  ATD1CTL3  0x0123    
+00296 #define  ATD1CTL4  0x0124    
+00297 #define  ATD1CTL5  0x0125    
+00298 #define  ATD1STAT0 0x0126    
+00299 #define  ATD1STAT1 0x0127    
+00300 #define  ATD1TEST0 0x0128    
+00301 #define  ATD1TEST1 0x0129    
+00302 
+00303 #define  ATDDIEN   0x012D    
+00304 
+00305 #define  PORTAD1   0x012F    
+00306 #define  ATD1DR0H  0x0130    
+00307 #define  ATD1DR0L  0x0131    
+00308 #define  ATD1DR1H  0x0132    
+00309 #define  ATD1DR1L  0x0133    
+00310 #define  ATD1DR2H  0x0134    
+00311 #define  ATD1DR2L  0x0135    
+00312 #define  ATD1DR3H  0x0136   
+00313 #define  ATD1DR3L  0x0137    
+00314 #define  ATD1DR4H  0x0138    
+00315 #define  ATD1DR4L  0x0139    
+00316 #define  ATD1DR5H  0x013A    
+00317 #define  ATD1DR5L  0x013B    
+00318 #define  ATD1DR6H  0x013C    
+00319 #define  ATD1DR6L  0x013D    
+00320 #define  ATD1DR7H  0x013E    
+00321 #define  ATD1DR7L  0x013F    
+00322 #define  CAN0CTL0  0x0140    
+00323 #define  CAN0CTL1  0x0141    
+00324 #define  CAN0BTR0  0x0142    
+00325 #define  CAN0BTR1  0x0143    
+00326 #define  CAN0RFLG  0x0144    
+00327 #define  CAN0RIER  0x0145    
+00328 #define  CAN0TFLG  0x0146    
+00329 #define  CAN0TIER  0x0147    
+00330 #define  CAN0TARQ  0x0148    
+00331 #define  CAN0TAAK  0x0149    
+00332 #define  CAN0TBSEL 0x014A    
+00333 #define  CAN0IDAC  0x014B    
+00334 
+00335 #define  CAN0RXERR 0x014E     
+00336 #define  CAN0TXERR 0x014F    
+00337 #define  CAN0IDAR0 0x0150    
+00338 #define  CAN0IDAR1 0x0151    
+00339 #define  CAN0IDAR2 0x0152    
+00340 #define  CAN0IDAR3 0x0153    
+00341 #define  CAN0IDMR0 0x0154    
+00342 #define  CAN0IDMR1 0x0155    
+00343 #define  CAN0IDMR2 0x0156    
+00344 #define  CAN0IDMR3 0x0157    
+00345 #define  CAN0IDAR4 0x0158    
+00346 #define  CAN0IDAR5 0x0159    
+00347 #define  CAN0IDAR6 0x015A    
+00348 #define  CAN0IDAR7 0x015B    
+00349 #define  CAN0IDMR4 0x015C    
+00350 #define  CAN0IDMR5 0x015D    
+00351 #define  CAN0IDMR6 0x015E    
+00352 #define  CAN0IDMR7 0x015F 
+00353 #define  CAN0RXFG0 0x0160
+00354 #define  CAN0RXFG1 0x0161
+00355 #define  CAN0RXFG2 0x0162
+00356 #define  CAN0RXFG3 0x0163
+00357 #define  CAN0RXFG4 0x0164
+00358 #define  CAN0RXFG5 0x0165
+00359 #define  CAN0RXFG6 0x0166
+00360 #define  CAN0RXFG7 0x0167
+00361 #define  CAN0RXFG8 0x0168
+00362 #define  CAN0RXFG9 0x0169
+00363 #define  CAN0RXFGA 0x016A
+00364 #define  CAN0RXFGB 0x016B
+00365 #define  CAN0RXFGC 0x016C
+00366 #define  CAN0RXFGD 0x016D
+00367 #define  CAN0RXFGE 0x016E
+00368 #define  CAN0RXFGF 0x016F
+00369 #define  CAN0TXFG0 0x0170
+00370 #define  CAN0TXFG1 0x0171
+00371 #define  CAN0TXFG2 0x0172
+00372 #define  CAN0TXFG3 0x0173
+00373 #define  CAN0TXFG4 0x0174
+00374 #define  CAN0TXFG5 0x0175
+00375 #define  CAN0TXFG6 0x0176
+00376 #define  CAN0TXFG7 0x0177
+00377 #define  CAN0TXFG8 0x0178
+00378 #define  CAN0TXFG9 0x0179
+00379 #define  CAN0TXFGA 0x017A
+00380 #define  CAN0TXFGB 0x017B
+00381 #define  CAN0TXFGC 0x017C
+00382 #define  CAN0TXFGD 0x017D
+00383 #define  CAN0TXFGE 0x017E
+00384 #define  CAN0TXFGF 0x017F 
+00385    
+00386 #define  CAN1CTL0  0x0180    
+00387 #define  CAN1CTL1  0x0181    
+00388 #define  CAN1BTR0  0x0182      
+00389 #define  CAN1BTR1  0x0183    
+00390 #define  CAN1RFLG  0x0184    
+00391 #define  CAN1RIER  0x0185    
+00392 #define  CAN1TFLG  0x0186    
+00393 #define  CAN1TIER  0x0187    
+00394 #define  CAN1TARQ  0x0188    
+00395 #define  CAN1TAAK  0x0189    
+00396 #define  CAN1TBSEL 0x018A    
+00397 #define  CAN1IDAC  0x018B      
+00398 #define  CAN1RXERR 0x018E    
+00399 #define  CAN1TXERR 0x018F    
+00400 #define  CAN1IDAR0 0x0190    
+00401 #define  CAN1IDAR1 0x0191    
+00402 #define  CAN1IDAR2 0x0192    
+00403 #define  CAN1IDAR3 0x0193    
+00404 #define  CAN1IDMR0 0x0194    
+00405 #define  CAN1IDMR1 0x0195    
+00406 #define  CAN1IDMR2 0x0196    
+00407 #define  CAN1IDMR3 0x0197    
+00408 #define  CAN1IDAR4 0x0198    
+00409 #define  CAN1IDAR5 0x0199   
+00410 #define  CAN1IDAR6 0x019A    
+00411 #define  CAN1IDAR7 0x019B    
+00412 #define  CAN1IDMR4 0x019C    
+00413 #define  CAN1IDMR5 0x019D    
+00414 #define  CAN1IDMR6 0x019E    
+00415 #define  CAN1IDMR7 0x019F
+00416 
+00417 #define  CAN1RXFG0 0x01A0
+00418 #define  CAN1RXFG1 0x01A1
+00419 #define  CAN1RXFG2 0x01A2
+00420 #define  CAN1RXFG3 0x01A3
+00421 #define  CAN1RXFG4 0x01A4
+00422 #define  CAN1RXFG5 0x01A5
+00423 #define  CAN1RXFG6 0x01A6
+00424 #define  CAN1RXFG7 0x01A7
+00425 #define  CAN1RXFG8 0x01A8
+00426 #define  CAN1RXFG9 0x01A9
+00427 #define  CAN1RXFGA 0x01AA
+00428 #define  CAN1RXFGB 0x01AB
+00429 #define  CAN1RXFGC 0x01AC
+00430 #define  CAN1RXFGD 0x01AD
+00431 #define  CAN1RXFGE 0x01AE
+00432 #define  CAN1RXFGF 0x01AF
+00433 #define  CAN1TXFG0 0x01B0
+00434 #define  CAN1TXFG1 0x01B1
+00435 #define  CAN1TXFG2 0x01B2
+00436 #define  CAN1TXFG3 0x01B3
+00437 #define  CAN1TXFG4 0x01B4
+00438 #define  CAN1TXFG5 0x01B5
+00439 #define  CAN1TXFG6 0x01B6
+00440 #define  CAN1TXFG7 0x01B7
+00441 #define  CAN1TXFG8 0x01B8
+00442 #define  CAN1TXFG9 0x01B9
+00443 #define  CAN1TXFGA 0x01BA
+00444 #define  CAN1TXFGB 0x01BB
+00445 #define  CAN1TXFGC 0x01BC
+00446 #define  CAN1TXFGD 0x01BD
+00447 #define  CAN1TXFGE 0x01BE
+00448 #define  CAN1TXFGF 0x01BF   
+00449 #define  CAN2CTL0  0x01C0    
+00450 #define  CAN2CTL1  0x01C1    
+00451 #define  CAN2BTR0  0x01C2    
+00452 #define  CAN2BTR1  0x01C3    
+00453 #define  CAN2RFLG  0x01C4    
+00454 #define  CAN2RIER  0x01C5    
+00455 #define  CAN2TFLG  0x01C6    
+00456 #define  CAN2TIER  0x01C7    
+00457 #define  CAN2TARQ  0x01C8    
+00458 #define  CAN2TAAK  0x01C9    
+00459 #define  CAN2TBSEL 0x01CA    
+00460 #define  CAN2IDAC  0x01CB    
+00461 
+00462 #define  CAN2RXERR 0x01CE   
+00463 #define  CAN2TXERR 0x01CF     
+00464 #define  CAN2IDAR0 0x01D0    
+00465 #define  CAN2IDAR1 0x01D1    
+00466 #define  CAN2IDAR2 0x01D2    
+00467 #define  CAN2IDAR3 0x01D3    
+00468 #define  CAN2IDMR0 0x01D4    
+00469 #define  CAN2IDMR1 0x01D5    
+00470 #define  CAN2IDMR2 0x01D6    
+00471 #define  CAN2IDMR3 0x01D7    
+00472 #define  CAN2IDAR4 0x01D8    
+00473 #define  CAN2IDAR5 0x01D9    
+00474 #define  CAN2IDAR6 0x01DA    
+00475 #define  CAN2IDAR7 0x01DB    
+00476 #define  CAN2IDMR4 0x01DC    
+00477 #define  CAN2IDMR5 0x01DD    
+00478 #define  CAN2IDMR6 0x01DE    
+00479 #define  CAN2IDMR7 0x01DF
+00480 #define  CAN2RXFG0 0x01E0
+00481 #define  CAN2RXFG1 0x01E1
+00482 #define  CAN2RXFG2 0x01E2
+00483 #define  CAN2RXFG3 0x01E3
+00484 #define  CAN2RXFG4 0x01E4
+00485 #define  CAN2RXFG5 0x01E5
+00486 #define  CAN2RXFG6 0x01E6
+00487 #define  CAN2RXFG7 0x01E7
+00488 #define  CAN2RXFG8 0x01E8
+00489 #define  CAN2RXFG9 0x01E9
+00490 #define  CAN2RXFGA 0x01EA
+00491 #define  CAN2RXFGB 0x01EB
+00492 #define  CAN2RXFGC 0x01EC
+00493 #define  CAN2RXFGD 0x01ED
+00494 #define  CAN2RXFGE 0x01EE
+00495 #define  CAN2RXFGF 0x01EF
+00496 #define  CAN2TXFG0 0x01F0
+00497 #define  CAN2TXFG1 0x01F1
+00498 #define  CAN2TXFG2 0x01F2
+00499 #define  CAN2TXFG3 0x01F3
+00500 #define  CAN2TXFG4 0x01F4
+00501 #define  CAN2TXFG5 0x01F5
+00502 #define  CAN2TXFG6 0x01F6
+00503 #define  CAN2TXFG7 0x01F7
+00504 #define  CAN2TXFG8 0x01F8
+00505 #define  CAN2TXFG9 0x01F9
+00506 #define  CAN2TXFGA 0x01FA
+00507 #define  CAN2TXFGB 0x01FB
+00508 #define  CAN2TXFGC 0x01FC
+00509 #define  CAN2TXFGD 0x01FD
+00510 #define  CAN2TXFGE 0x01FE
+00511 #define  CAN2TXFGF 0x01FF
+00512 
+00513 #define  CAN3CTL0  0x0200    
+00514 #define  CAN3CTL1  0x0201    
+00515 #define  CAN3BTR0  0x0202    
+00516 #define  CAN3BTR1  0x0203   
+00517 #define  CAN3RFLG  0x0204    
+00518 #define  CAN3RIER  0x0205    
+00519 #define  CAN3TFLG  0x0206    
+00520 #define  CAN3TIER  0x0207    
+00521 #define  CAN3TARQ  0x0208    
+00522 #define  CAN3TAAK  0x0209    
+00523 #define  CAN3TBSEL 0x020A    
+00524 #define  CAN3IDAC  0x020B    
+00525 
+00526 #define  CAN3RXERR 0x020E    
+00527 #define  CAN3TXERR 0x020F    
+00528 #define  CAN3IDAR0 0x0210    
+00529 #define  CAN3IDAR1 0x0211    
+00530 #define  CAN3IDAR2 0x0212    
+00531 #define  CAN3IDAR3 0x0213    
+00532 #define  CAN3IDMR0 0x0214    
+00533 #define  CAN3IDMR1 0x0215    
+00534 #define  CAN3IDMR2 0x0216    
+00535 #define  CAN3IDMR3 0x0217    
+00536 #define  CAN3IDAR4 0x0218    
+00537 #define  CAN3IDAR5 0x0219    
+00538 #define  CAN3IDAR6 0x021A    
+00539 #define  CAN3IDAR7 0x021B    
+00540 #define  CAN3IDMR4 0x021C    
+00541 #define  CAN3IDMR5 0x021D    
+00542 #define  CAN3IDMR6 0x021E    
+00543 #define  CAN3IDMR7 0x021F 
+00544 
+00545 #define  CAN3RXFG0 0x0220
+00546 #define  CAN3RXFG1 0x0221
+00547 #define  CAN3RXFG2 0x0222
+00548 #define  CAN3RXFG3 0x0223
+00549 #define  CAN3RXFG4 0x0224
+00550 #define  CAN3RXFG5 0x0225
+00551 #define  CAN3RXFG6 0x0226
+00552 #define  CAN3RXFG7 0x0227
+00553 #define  CAN3RXFG8 0x0228
+00554 #define  CAN3RXFG9 0x0229
+00555 #define  CAN3RXFGA 0x022A
+00556 #define  CAN3RXFGB 0x022B
+00557 #define  CAN3RXFGC 0x022C
+00558 #define  CAN3RXFGD 0x022D
+00559 #define  CAN3RXFGE 0x022E
+00560 #define  CAN3RXFGF 0x022F
+00561 #define  CAN3TXFG0 0x0230
+00562 #define  CAN3TXFG1 0x0231
+00563 #define  CAN3TXFG2 0x0232
+00564 #define  CAN3TXFG3 0x0233
+00565 #define  CAN3TXFG4 0x0234
+00566 #define  CAN3TXFG5 0x0235
+00567 #define  CAN3TXFG6 0x0236
+00568 #define  CAN3TXFG7 0x0237
+00569 #define  CAN3TXFG8 0x0238
+00570 #define  CAN3TXFG9 0x0239
+00571 #define  CAN3TXFGA 0x023A
+00572 #define  CAN3TXFGB 0x023B
+00573 #define  CAN3TXFGC 0x023C
+00574 #define  CAN3TXFGD 0x023D
+00575 #define  CAN3TXFGE 0x023E
+00576 #define  CAN3TXFGF 0x023F
+00577 
+00578 #define  PTT       0x0240    
+00579 #define  PTIT      0x0241    
+00580 #define  DDRT      0x0242    
+00581 #define  RDRT      0x0243    
+00582 #define  PERT      0x0244    
+00583 #define  PPST      0x0245    
+00584 
+00585 #define  PTS       0x0248    
+00586 #define  PTIS      0x0249    
+00587 #define  DDRS      0x024A    
+00588 #define  RDRS      0x024B    
+00589 #define  PERS      0x024C    
+00590 #define  PPSS      0x024D    
+00591 #define  WOMS      0x024E    
+00592 
+00593 #define  PTM       0x0250    
+00594 #define  PTIM      0x0251    
+00595 #define  DDRM      0x0252    
+00596 #define  RDRM      0x0253    
+00597 #define  PERM      0x0254    
+00598 #define  PPSM      0x0255    
+00599 #define  WOMM      0x0256    
+00600 
+00601 #define  PTP       0x0258    
+00602 #define  PTIP      0x0259    
+00603 #define  DDRP      0x025A    
+00604 #define  RDRP      0x025B    
+00605 #define  PERP      0x025C    
+00606 #define  PPSP      0x025D    
+00607 #define  PIEP      0x025E    
+00608 #define  PIFP      0x025F    
+00609 #define  PTH       0x0260    
+00610 #define  PTIH      0x0261    
+00611 #define  DDRH      0x0262    
+00612 #define  RDRH      0x0263    
+00613 #define  PERH      0x0264    
+00614 #define  PPSH      0x0265    
+00615 #define  PIEH      0x0266  
+00616 #define  PIFH      0x0267    
+00617 #define  PTJ       0x0268    
+00618 #define  PTIJ      0x0269    
+00619 #define  DDRJ      0x026A    
+00620 #define  RDRJ      0x026B    
+00621 #define  PERJ      0x026C    
+00622 #define  PPSJ      0x026D    
+00623 #define  PIEJ      0x026E    
+00624 #define  PIFJ      0x026F    
+00625 
+00626 #define  CAN4CTL0  0x0280    
+00627 #define  CAN4CTL1  0x0281    
+00628 #define  CAN4BTR0  0x0282    
+00629 #define  CAN4BTR1  0x0283    
+00630 #define  CAN4RFLG  0x0284    
+00631 #define  CAN4RIER  0x0285    
+00632 #define  CAN4TFLG  0x0286    
+00633 #define  CAN4TIER  0x0287    
+00634 #define  CAN4TARQ  0x0288    
+00635 #define  CAN4TAAK  0x0289    
+00636 #define  CAN4TBSEL 0x028A    
+00637 #define  CAN4IDAC  0x028B    
+00638 
+00639 #define  CAN4RXERR 0x028E    
+00640 #define  CAN4TXERR 0x028F    
+00641 #define  CAN4IDAR0 0x0290    
+00642 #define  CAN4IDAR1 0x0291    
+00643 #define  CAN4IDAR2 0x0292    
+00644 #define  CAN4IDAR3 0x0293    
+00645 #define  CAN4IDMR0 0x0294    
+00646 #define  CAN4IDMR1 0x0295    
+00647 #define  CAN4IDMR2 0x0296    
+00648 #define  CAN4IDMR3 0x0297    
+00649 #define  CAN4IDAR4 0x0298    
+00650 #define  CAN4IDAR5 0x0299    
+00651 #define  CAN4IDAR6 0x029A    
+00652 #define  CAN4IDAR7 0x029B    
+00653 #define  CAN4IDMR4 0x029C    
+00654 #define  CAN4IDMR5 0x029D    
+00655 #define  CAN4IDMR6 0x029E    
+00656 #define  CAN4IDMR7 0x029F  
+00657 
+00658 #define  CAN4RXFG0 0x02A0
+00659 #define  CAN4RXFG1 0x02A1
+00660 #define  CAN4RXFG2 0x02A2
+00661 #define  CAN4RXFG3 0x02A3
+00662 #define  CAN4RXFG4 0x02A4
+00663 #define  CAN4RXFG5 0x02A5
+00664 #define  CAN4RXFG6 0x02A6
+00665 #define  CAN4RXFG7 0x02A7
+00666 #define  CAN4RXFG8 0x02A8
+00667 #define  CAN4RXFG9 0x02A9
+00668 #define  CAN4RXFGA 0x02AA
+00669 #define  CAN4RXFGB 0x02AB
+00670 #define  CAN4RXFGC 0x02AC
+00671 #define  CAN4RXFGD 0x02AD
+00672 #define  CAN4RXFGE 0x02AE
+00673 #define  CAN4RXFGF 0x02AF
+00674 #define  CAN4TXFG0 0x02B0
+00675 #define  CAN4TXFG1 0x02B1
+00676 #define  CAN4TXFG2 0x02B2
+00677 #define  CAN4TXFG3 0x02B3
+00678 #define  CAN4TXFG4 0x02B4
+00679 #define  CAN4TXFG5 0x02B5
+00680 #define  CAN4TXFG6 0x02B6
+00681 #define  CAN4TXFG7 0x02B7
+00682 #define  CAN4TXFG8 0x02B8
+00683 #define  CAN4TXFG9 0x02B9
+00684 #define  CAN4TXFGA 0x02BA
+00685 #define  CAN4TXFGB 0x02BB
+00686 #define  CAN4TXFGC 0x02BC
+00687 #define  CAN4TXFGD 0x02BD
+00688 #define  CAN4TXFGE 0x02BE
+00689 #define  CAN4TXFGF 0x02BF
+00690 
+00691 
+00692 
+00693 /*********************************************** 
+00694 Constants for MSCAN
+00695 ************************************************
+00696 */
+00697 
+00698 #define CAN0      0x0140  /* First address for MSCAN0                    */
+00699 #define CAN1      0x0180  /* First address for MSCAN1                    */
+00700 #define CAN2      0x01C0  /* First address for MSCAN2                    */
+00701 #define CAN3      0x0200  /* First address for MSCAN3                    */
+00702 #define CAN4      0x0280  /* First address for MSCAN4                    */
+00703 
+00704 #define CANCTL0   0X00    /* Control register 0                          */
+00705 #define CANCTL1   0X01    /* Control register 1                          */
+00706 #define CANBTR0   0X02    /* Bus timing register 0                       */
+00707 #define CANBTR1   0X03    /* Bus timing register 1                       */
+00708 #define CANRFLG   0X04    /* Receiver flag register                      */
+00709 #define CANRIER   0X05          /* Enable interruptions when reception                   */      
+00710 #define CANTFLG   0X06    /* Transmit flag register                      */
+00711 #define CANTIER   0X07          /* Enable interruptions when transmission                */      
+00712 #define CANTBSEL  0X0A    /* Select foreground buffer for transmit       */
+00713 #define CANIDAC   0x0B    /* Identifier acceptance control register      */
+00714 #define CANIDAR0  0x10    
+00715 #define CANIDAR1  0x11    
+00716 #define CANIDAR2  0x12    
+00717 #define CANIDAR3  0x13    
+00718 #define CANIDMR0  0x14    
+00719 #define CANIDMR1  0x15    
+00720 #define CANIDMR2  0x16    
+00721 #define CANIDMR3  0x17    
+00722 #define CANIDAR4  0x18    
+00723 #define CANIDAR5  0x19    
+00724 #define CANIDAR6  0x1A    
+00725 #define CANIDAR7  0x1B    
+00726 #define CANIDMR4  0x1C    
+00727 #define CANIDMR5  0x1D    
+00728 #define CANIDMR6  0x1E    
+00729 #define CANIDMR7  0x1F  
+00730 
+00731 /* Received foreground buffer */
+00732 #define CANRCVID  0x20    /* Base of identifier registers                */
+00733 #define CANRCVDTA 0x24    /* Base of data       registers                */
+00734 #define CANRCVLEN 0x2C    /* Data length        register                 */
+00735 
+00736 /* Transmit foreground buffer */
+00737 #define CANTRSID  0x30    /* Base of identifier registers                */
+00738 #define CANTRSDTA 0x34    /* Base of data       registers                */
+00739 #define CANTRSLEN 0x3C    /* Data length        register                 */
+00740 #define CANTRSPRI 0x3D    /* Priority           register                 */     
+00741 
+00742 
+00743 /* Constants for serials port */
+00744 #define  SCI0      0x00C8
+00745 #define  SCI1      0x00D0 
+00746 
+00747 #define  SCIBDH    0x00   
+00748 #define  SCIBDL    0x01    
+00749 #define  SCICR1    0x02    
+00750 #define  SCICR2    0x03    
+00751 #define  SCISR1    0x04    
+00752 #define  SCISR2    0x05    
+00753 #define  SCIDRH    0x06    
+00754 #define  SCIDRL    0x07 
+00755 
+00756            
+00757 #endif  /* __HCS12_PORTS__  */     
+00758                    
+00759                    
+00760                    
+00761                    
+00762                    
+00763                    
+00764                    
+00765                    
+00766                    
+00767                    
+00768                    
+

Generated on Fri Jun 8 08:51:39 2007 for CanFestival by  + +doxygen 1.5.1
+ +