41 #define ALLOCATE_EXTERN // required for "right thing to happen" with fx2regs.h 64 #ifdef ALLOCATE_EXTERN 72 typedef unsigned char BYTE;
73 typedef unsigned short WORD;
167 #define EXTAUTODAT1 XAUTODAT1 168 #define EXTAUTODAT2 XAUTODAT2 233 #define EP2GPIFTCH GPIFTCB1 // these are here for backwards compatibility 234 #define EP2GPIFTCL GPIFTCB0 // before REVE silicon (ie. REVB and REVD) 235 #define EP4GPIFTCH GPIFTCB1 // these are here for backwards compatibility 236 #define EP4GPIFTCL GPIFTCB0 // before REVE silicon (ie. REVB and REVD) 237 #define EP6GPIFTCH GPIFTCB1 // these are here for backwards compatibility 238 #define EP6GPIFTCL GPIFTCB0 // before REVE silicon (ie. REVB and REVD) 239 #define EP8GPIFTCH GPIFTCB1 // these are here for backwards compatibility 240 #define EP8GPIFTCL GPIFTCB0 // before REVE silicon (ie. REVB and REVD) 407 #define AUTOPTRH1 APTR1H 408 #define AUTOPTRL1 APTR1L 548 #define bmPRTCSTB bmBIT5 549 #define bmCLKSPD (bmBIT4 | bmBIT3) 550 #define bmCLKSPD1 bmBIT4 551 #define bmCLKSPD0 bmBIT3 552 #define bmCLKINV bmBIT2 553 #define bmCLKOE bmBIT1 554 #define bm8051RES bmBIT0 557 #define bmFLAGD bmBIT7 558 #define bmINT1 bmBIT1 559 #define bmINT0 bmBIT0 561 #define bmGPIFA7 bmBIT7 562 #define bmGPIFA6 bmBIT6 563 #define bmGPIFA5 bmBIT5 564 #define bmGPIFA4 bmBIT4 565 #define bmGPIFA3 bmBIT3 566 #define bmGPIFA2 bmBIT2 567 #define bmGPIFA1 bmBIT1 568 #define bmGPIFA0 bmBIT0 570 #define bmGPIFA8 bmBIT7 571 #define bmT2EX bmBIT6 572 #define bmINT6 bmBIT5 573 #define bmRXD1OUT bmBIT4 574 #define bmRXD0OUT bmBIT3 575 #define bmT2OUT bmBIT2 576 #define bmT1OUT bmBIT1 577 #define bmT0OUT bmBIT0 580 #define bmSTART bmBIT7 581 #define bmSTOP bmBIT6 582 #define bmLASTRD bmBIT5 583 #define bmID (bmBIT4 | bmBIT3) 584 #define bmBERR bmBIT2 586 #define bmDONE bmBIT0 588 #define bmSTOPIE bmBIT1 589 #define bm400KHZ bmBIT0 597 #define bmEP0ACK bmBIT6 598 #define bmHSGRANT bmBIT5 599 #define bmURES bmBIT4 600 #define bmSUSP bmBIT3 601 #define bmSUTOK bmBIT2 603 #define bmSUDAV bmBIT0 605 #define bmBREAK bmBIT3 606 #define bmBPPULSE bmBIT2 607 #define bmBPEN bmBIT1 609 #define bmAV2EN bmBIT3 610 #define bmINT4IN bmBIT1 611 #define bmAV4EN bmBIT0 614 #define bmDISCON bmBIT3 615 #define bmNOSYNSOF bmBIT2 616 #define bmRENUM bmBIT1 617 #define bmSIGRESUME bmBIT0 621 #define bmWU2POL bmBIT5 622 #define bmWUPOL bmBIT4 623 #define bmDPEN bmBIT2 624 #define bmWU2EN bmBIT1 625 #define bmWUEN bmBIT0 627 #define bmHSNAK bmBIT7 629 #define bmEPBUSY bmBIT1 630 #define bmEPSTALL bmBIT0 632 #define bmNPAK (bmBIT6 | bmBIT5 | bmBIT4) 633 #define bmEPFULL bmBIT3 634 #define bmEPEMPTY bmBIT2 636 #define bmEP8FULL bmBIT7 637 #define bmEP8EMPTY bmBIT6 638 #define bmEP6FULL bmBIT5 639 #define bmEP6EMPTY bmBIT4 640 #define bmEP4FULL bmBIT3 641 #define bmEP4EMPTY bmBIT2 642 #define bmEP2FULL bmBIT1 643 #define bmEP2EMPTY bmBIT0 645 #define bmSDPAUTO bmBIT0 647 #define bmQUERYTOGGLE bmBIT7 648 #define bmSETTOGGLE bmBIT6 649 #define bmRESETTOGGLE bmBIT5 650 #define bmTOGCTLEPMASK bmBIT3 | bmBIT2 | bmBIT1 | bmBIT0 652 #define bmEP8IBN bmBIT5 653 #define bmEP6IBN bmBIT4 654 #define bmEP4IBN bmBIT3 655 #define bmEP2IBN bmBIT2 656 #define bmEP1IBN bmBIT1 657 #define bmEP0IBN bmBIT0 660 #define bmEP8PING bmBIT7 661 #define bmEP6PING bmBIT6 662 #define bmEP4PING bmBIT5 663 #define bmEP2PING bmBIT4 664 #define bmEP1PING bmBIT3 665 #define bmEP0PING bmBIT2 669 #define bmIFCLKSRC bmBIT7 // set == INTERNAL 670 #define bm3048MHZ bmBIT6 // set == 48 MHz 671 #define bmIFCLKOE bmBIT5 672 #define bmIFCLKPOL bmBIT4 673 #define bmASYNC bmBIT3 674 #define bmGSTATE bmBIT2 675 #define bmIFCFG1 bmBIT1 676 #define bmIFCFG0 bmBIT0 677 #define bmIFCFGMASK (bmIFCFG0 | bmIFCFG1) 678 #define bmIFGPIF bmIFCFG1 681 #define bmINFM bmBIT6 683 #define bmAUTOOUT bmBIT4 684 #define bmAUTOIN bmBIT3 685 #define bmZEROLENIN bmBIT2 687 #define bmWORDWIDE bmBIT0 692 #define bmNOAUTOARM bmBIT1 // these don't match the docs 693 #define bmSKIPCOMMIT bmBIT0 // these don't match the docs 695 #define bmDYN_OUT bmBIT1 // these do... 696 #define bmENH_PKT bmBIT0 700 #define bmNAKALL bmBIT7 703 #define bmVALID bmBIT7 705 #define bmTYPE1 bmBIT5 706 #define bmTYPE0 bmBIT4 707 #define bmISOCHRONOUS bmTYPE0 708 #define bmBULK bmTYPE1 709 #define bmINTERRUPT (bmTYPE1 | bmTYPE0) 710 #define bm1KBUF bmBIT3 711 #define bmBUF1 bmBIT1 712 #define bmBUF0 bmBIT0 714 #define bmINVALIDBUF bmBUF0 715 #define bmDOUBLEBUF bmBUF1 716 #define bmTRIPLEBUF (bmBUF1 | bmBUF0) 719 #define bmSKIP bmBIT7 // low 4 bits specify which end point 722 #define bmGPIF_IDLE bmBIT7 // status bit 724 #define bmGPIF_EP2_START 0 725 #define bmGPIF_EP4_START 1 726 #define bmGPIF_EP6_START 2 727 #define bmGPIF_EP8_START 3 728 #define bmGPIF_READ bmBIT2 729 #define bmGPIF_WRITE 0 732 #define bmEXIF_USBINT bmBIT4 733 #define bmEXIF_I2CINT bmBIT5 734 #define bmEXIF_IE4 bmBIT6 735 #define bmEXIF_IE5 bmBIT7 sbit at RCLK
Definition: fx2regs.h:494
sfr at OEE
Definition: fx2regs.h:457
sbit at D1
Definition: fx2regs.h:444
sbit at SM2
Definition: fx2regs.h:392
sbit at OV
Definition: fx2regs.h:505
sbit at PS1
Definition: fx2regs.h:467
sbit at REN
Definition: fx2regs.h:391
sfr at AUTODAT1
Definition: fx2regs.h:399
sfr at OEB
Definition: fx2regs.h:454
#define EXTERN
Definition: fx2regs.h:65
sfr at IOE
Definition: fx2regs.h:452
sfr at OED
Definition: fx2regs.h:456
sbit at A4
Definition: fx2regs.h:323
sfr at MPAGE
Definition: fx2regs.h:384
sfr at TMOD
Definition: fx2regs.h:352
sbit at A6
Definition: fx2regs.h:325
sfr at IOD
Definition: fx2regs.h:441
sfr at EIP
Definition: fx2regs.h:526
sfr at EICON
Definition: fx2regs.h:511
sbit at EIPX4
Definition: fx2regs.h:530
sfr at IOC
Definition: fx2regs.h:403
sfr at PSW
Definition: fx2regs.h:501
sbit at TCLK
Definition: fx2regs.h:493
sfr at AUTOPTRSETUP
Definition: fx2regs.h:434
sbit at EIEX5
Definition: fx2regs.h:523
sbit at TI
Definition: fx2regs.h:388
sbit at A5
Definition: fx2regs.h:324
sfr at EIE
Definition: fx2regs.h:518
sfr at TL1
Definition: fx2regs.h:363
sbit at TB8
Definition: fx2regs.h:390
sbit at D6
Definition: fx2regs.h:449
sfr at EP2468STAT
Definition: fx2regs.h:421
sbit at RI
Definition: fx2regs.h:387
sbit at EXF2
Definition: fx2regs.h:495
sfr at SCON1
Definition: fx2regs.h:476
sfr at EP24FIFOFLGS
Definition: fx2regs.h:432
sbit at PUSB
Definition: fx2regs.h:528
sbit at ET2
Definition: fx2regs.h:417
sfr at PCON
Definition: fx2regs.h:336
sfr at B
Definition: fx2regs.h:525
sbit at SM21
Definition: fx2regs.h:483
sfr at APTR1H
Definition: fx2regs.h:397
sfr at AUTOPTRL2
Definition: fx2regs.h:401
sfr at TH0
Definition: fx2regs.h:364
sfr at EXIF
Definition: fx2regs.h:378
sbit at D7
Definition: fx2regs.h:450
sbit at ERESI
Definition: fx2regs.h:515
sbit at EIEX4
Definition: fx2regs.h:522
sfr at OEA
Definition: fx2regs.h:453
sfr at TCON
Definition: fx2regs.h:342
sbit at EX0
Definition: fx2regs.h:412
sbit at EIEX6
Definition: fx2regs.h:524
sbit at TI1
Definition: fx2regs.h:479
sbit at D2
Definition: fx2regs.h:445
sbit at SEL
Definition: fx2regs.h:335
sbit at TR0
Definition: fx2regs.h:348
sfr at SBUF1
Definition: fx2regs.h:486
sfr at DPS
Definition: fx2regs.h:333
sbit at CP_RL2
Definition: fx2regs.h:489
sfr at APTR1L
Definition: fx2regs.h:398
#define _AT_(a)
Definition: fx2regs.h:66
sbit at F0
Definition: fx2regs.h:508
sfr at RCAP2L
Definition: fx2regs.h:497
unsigned char BYTE
Definition: fx2regs.h:72
sfr at IOA
Definition: fx2regs.h:317
sbit at TF1
Definition: fx2regs.h:351
sfr at SCON0
Definition: fx2regs.h:385
sbit at EX1
Definition: fx2regs.h:414
sbit at A2
Definition: fx2regs.h:321
sfr at INT4CLR
Definition: fx2regs.h:405
sbit at ES0
Definition: fx2regs.h:416
sbit at PX1
Definition: fx2regs.h:463
sbit at TR1
Definition: fx2regs.h:350
sfr at GPIFSGLDATH
Definition: fx2regs.h:472
sbit at IE1
Definition: fx2regs.h:347
sbit at SM1
Definition: fx2regs.h:393
sbit at SM01
Definition: fx2regs.h:485
sfr at GPIFSGLDATLX
Definition: fx2regs.h:473
sbit at A3
Definition: fx2regs.h:322
sfr at TL2
Definition: fx2regs.h:499
sbit at IT0
Definition: fx2regs.h:344
sfr at AUTODAT2
Definition: fx2regs.h:402
sbit at IT1
Definition: fx2regs.h:346
sbit at PT1
Definition: fx2regs.h:464
sbit at REN1
Definition: fx2regs.h:482
sbit at A7
Definition: fx2regs.h:326
sfr at DPH1
Definition: fx2regs.h:332
sbit at ET0
Definition: fx2regs.h:413
sfr at SBUF0
Definition: fx2regs.h:395
sbit at TF0
Definition: fx2regs.h:349
sbit at EI2C
Definition: fx2regs.h:521
sbit at PT2
Definition: fx2regs.h:466
sbit at EA
Definition: fx2regs.h:419
sfr at DPL1
Definition: fx2regs.h:331
sbit at INT6
Definition: fx2regs.h:513
sbit at ES1
Definition: fx2regs.h:418
sbit at SM0
Definition: fx2regs.h:394
sfr at EP01STAT
Definition: fx2regs.h:469
sfr at AUTOPTRH2
Definition: fx2regs.h:400
sbit at D4
Definition: fx2regs.h:447
sbit at D3
Definition: fx2regs.h:446
sbit at RB8
Definition: fx2regs.h:389
sfr at T2CON
Definition: fx2regs.h:487
sbit at TF2
Definition: fx2regs.h:496
sbit at EXEN2
Definition: fx2regs.h:492
sbit at RESI
Definition: fx2regs.h:514
sbit at EIPX5
Definition: fx2regs.h:531
sfr at CKCON
Definition: fx2regs.h:366
unsigned short WORD
Definition: fx2regs.h:73
sfr at GPIFSGLDATLNOX
Definition: fx2regs.h:474
sbit at PT0
Definition: fx2regs.h:462
sbit at TB81
Definition: fx2regs.h:481
sbit at RS1
Definition: fx2regs.h:507
sfr at ACC
Definition: fx2regs.h:517
sfr at GPIFTRIG
Definition: fx2regs.h:470
sbit at TR2
Definition: fx2regs.h:491
sfr at IOB
Definition: fx2regs.h:377
sfr at TH1
Definition: fx2regs.h:365
sbit at RS0
Definition: fx2regs.h:506
sbit at RI1
Definition: fx2regs.h:478
sfr at RCAP2H
Definition: fx2regs.h:498
sbit at AC
Definition: fx2regs.h:509
sbit at SMOD1
Definition: fx2regs.h:516
sbit at P
Definition: fx2regs.h:503
sfr at TH2
Definition: fx2regs.h:500
sbit at EIUSB
Definition: fx2regs.h:520
sfr at OEC
Definition: fx2regs.h:455
sbit at CY
Definition: fx2regs.h:510
sbit at EIPX6
Definition: fx2regs.h:532
sbit at A1
Definition: fx2regs.h:320
sbit at FL
Definition: fx2regs.h:504
sbit at C_T2
Definition: fx2regs.h:490
sbit at ET1
Definition: fx2regs.h:415
sfr at EP68FIFOFLGS
Definition: fx2regs.h:433
sfr at DPL
Definition: fx2regs.h:329
sfr at SP
Definition: fx2regs.h:328
sbit at A0
Definition: fx2regs.h:319
sbit at IE0
Definition: fx2regs.h:345
sbit at PS0
Definition: fx2regs.h:465
sbit at PI2C
Definition: fx2regs.h:529
sbit at PX0
Definition: fx2regs.h:461
sfr at TL0
Definition: fx2regs.h:362
sfr at DPH
Definition: fx2regs.h:330
sfr at IE
Definition: fx2regs.h:410
sfr at IP
Definition: fx2regs.h:459
sbit at RB81
Definition: fx2regs.h:480
sbit at D0
Definition: fx2regs.h:443
sfr at INT2CLR
Definition: fx2regs.h:404
sbit at D5
Definition: fx2regs.h:448
sbit at SM11
Definition: fx2regs.h:484