mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
2ee7eac59d
works on all major platforms (Linux, Windows, and Mac); and can be built with GCC, Clang, and MSVC compilers. The goal of UHD is to provide a host driver and API for current and future Ettus Research products. Users will be able to use the UHD driver standalone or with third-party applications such as: GNU Radio LabVIEW Simulink OpenBTS Submitted by: adrian@ Reviewed by: db@
822 lines
46 KiB
C
822 lines
46 KiB
C
--- firmware/fx2/common/fx2regs.h.orig 2012-07-30 14:09:48.000000000 -0500
|
|
+++ firmware/fx2/common/fx2regs.h 2012-10-10 13:21:13.000000000 -0500
|
|
@@ -48,22 +48,22 @@
|
|
// The Ez-USB FX2 registers are defined here. We use FX2regs.h for register
|
|
// address allocation by using "#define ALLOCATE_EXTERN".
|
|
// When using "#define ALLOCATE_EXTERN", you get (for instance):
|
|
-// xdata volatile BYTE OUT7BUF[64] _at_ 0x7B40;
|
|
+// __xdata volatile BYTE OUT7BUF[64] __at 0x7B40;
|
|
// Such lines are created from FX2.h by using the preprocessor.
|
|
// Incidently, these lines will not generate any space in the resulting hex
|
|
// file; they just bind the symbols to the addresses for compilation.
|
|
// You just need to put "#define ALLOCATE_EXTERN" in your main program file;
|
|
// i.e. fw.c or a stand-alone C source file.
|
|
// Without "#define ALLOCATE_EXTERN", you just get the external reference:
|
|
-// extern xdata volatile BYTE OUT7BUF[64] ;// 0x7B40;
|
|
+// extern __xdata volatile BYTE OUT7BUF[64] ;// 0x7B40;
|
|
// This uses the concatenation operator "##" to insert a comment "//"
|
|
-// to cut off the end of the line, "_at_ 0x7B40;", which is not wanted.
|
|
+// to cut off the end of the line, "__at 0x7B40;", which is not wanted.
|
|
*/
|
|
|
|
|
|
#ifdef ALLOCATE_EXTERN
|
|
#define EXTERN
|
|
-#define _AT_(a) at a
|
|
+#define _AT_(a) __at a
|
|
#else
|
|
#define EXTERN extern
|
|
#define _AT_ ;/ ## /
|
|
@@ -72,162 +72,162 @@
|
|
typedef unsigned char BYTE;
|
|
typedef unsigned short WORD;
|
|
|
|
-EXTERN xdata _AT_(0xE400) volatile BYTE GPIF_WAVE_DATA[128];
|
|
-EXTERN xdata _AT_(0xE480) volatile BYTE RES_WAVEDATA_END ;
|
|
+EXTERN __xdata _AT_(0xE400) volatile BYTE GPIF_WAVE_DATA[128];
|
|
+EXTERN __xdata _AT_(0xE480) volatile BYTE RES_WAVEDATA_END ;
|
|
|
|
// General Configuration
|
|
|
|
-EXTERN xdata _AT_(0xE600) volatile BYTE CPUCS ; // Control & Status
|
|
-EXTERN xdata _AT_(0xE601) volatile BYTE IFCONFIG ; // Interface Configuration
|
|
-EXTERN xdata _AT_(0xE602) volatile BYTE PINFLAGSAB ; // FIFO FLAGA and FLAGB Assignments
|
|
-EXTERN xdata _AT_(0xE603) volatile BYTE PINFLAGSCD ; // FIFO FLAGC and FLAGD Assignments
|
|
-EXTERN xdata _AT_(0xE604) volatile BYTE FIFORESET ; // Restore FIFOS to default state
|
|
-EXTERN xdata _AT_(0xE605) volatile BYTE BREAKPT ; // Breakpoint
|
|
-EXTERN xdata _AT_(0xE606) volatile BYTE BPADDRH ; // Breakpoint Address H
|
|
-EXTERN xdata _AT_(0xE607) volatile BYTE BPADDRL ; // Breakpoint Address L
|
|
-EXTERN xdata _AT_(0xE608) volatile BYTE UART230 ; // 230 Kbaud clock for T0,T1,T2
|
|
-EXTERN xdata _AT_(0xE609) volatile BYTE FIFOPINPOLAR ; // FIFO polarities
|
|
-EXTERN xdata _AT_(0xE60A) volatile BYTE REVID ; // Chip Revision
|
|
-EXTERN xdata _AT_(0xE60B) volatile BYTE REVCTL ; // Chip Revision Control
|
|
+EXTERN __xdata _AT_(0xE600) volatile BYTE CPUCS ; // Control & Status
|
|
+EXTERN __xdata _AT_(0xE601) volatile BYTE IFCONFIG ; // Interface Configuration
|
|
+EXTERN __xdata _AT_(0xE602) volatile BYTE PINFLAGSAB ; // FIFO FLAGA and FLAGB Assignments
|
|
+EXTERN __xdata _AT_(0xE603) volatile BYTE PINFLAGSCD ; // FIFO FLAGC and FLAGD Assignments
|
|
+EXTERN __xdata _AT_(0xE604) volatile BYTE FIFORESET ; // Restore FIFOS to default state
|
|
+EXTERN __xdata _AT_(0xE605) volatile BYTE BREAKPT ; // Breakpoint
|
|
+EXTERN __xdata _AT_(0xE606) volatile BYTE BPADDRH ; // Breakpoint Address H
|
|
+EXTERN __xdata _AT_(0xE607) volatile BYTE BPADDRL ; // Breakpoint Address L
|
|
+EXTERN __xdata _AT_(0xE608) volatile BYTE UART230 ; // 230 Kbaud clock for T0,T1,T2
|
|
+EXTERN __xdata _AT_(0xE609) volatile BYTE FIFOPINPOLAR ; // FIFO polarities
|
|
+EXTERN __xdata _AT_(0xE60A) volatile BYTE REVID ; // Chip Revision
|
|
+EXTERN __xdata _AT_(0xE60B) volatile BYTE REVCTL ; // Chip Revision Control
|
|
|
|
// Endpoint Configuration
|
|
-EXTERN xdata _AT_(0xE610) volatile BYTE EP1OUTCFG ; // Endpoint 1-OUT Configuration
|
|
-EXTERN xdata _AT_(0xE611) volatile BYTE EP1INCFG ; // Endpoint 1-IN Configuration
|
|
-EXTERN xdata _AT_(0xE612) volatile BYTE EP2CFG ; // Endpoint 2 Configuration
|
|
-EXTERN xdata _AT_(0xE613) volatile BYTE EP4CFG ; // Endpoint 4 Configuration
|
|
-EXTERN xdata _AT_(0xE614) volatile BYTE EP6CFG ; // Endpoint 6 Configuration
|
|
-EXTERN xdata _AT_(0xE615) volatile BYTE EP8CFG ; // Endpoint 8 Configuration
|
|
-EXTERN xdata _AT_(0xE618) volatile BYTE EP2FIFOCFG ; // Endpoint 2 FIFO configuration
|
|
-EXTERN xdata _AT_(0xE619) volatile BYTE EP4FIFOCFG ; // Endpoint 4 FIFO configuration
|
|
-EXTERN xdata _AT_(0xE61A) volatile BYTE EP6FIFOCFG ; // Endpoint 6 FIFO configuration
|
|
-EXTERN xdata _AT_(0xE61B) volatile BYTE EP8FIFOCFG ; // Endpoint 8 FIFO configuration
|
|
-EXTERN xdata _AT_(0xE620) volatile BYTE EP2AUTOINLENH ; // Endpoint 2 Packet Length H (IN only)
|
|
-EXTERN xdata _AT_(0xE621) volatile BYTE EP2AUTOINLENL ; // Endpoint 2 Packet Length L (IN only)
|
|
-EXTERN xdata _AT_(0xE622) volatile BYTE EP4AUTOINLENH ; // Endpoint 4 Packet Length H (IN only)
|
|
-EXTERN xdata _AT_(0xE623) volatile BYTE EP4AUTOINLENL ; // Endpoint 4 Packet Length L (IN only)
|
|
-EXTERN xdata _AT_(0xE624) volatile BYTE EP6AUTOINLENH ; // Endpoint 6 Packet Length H (IN only)
|
|
-EXTERN xdata _AT_(0xE625) volatile BYTE EP6AUTOINLENL ; // Endpoint 6 Packet Length L (IN only)
|
|
-EXTERN xdata _AT_(0xE626) volatile BYTE EP8AUTOINLENH ; // Endpoint 8 Packet Length H (IN only)
|
|
-EXTERN xdata _AT_(0xE627) volatile BYTE EP8AUTOINLENL ; // Endpoint 8 Packet Length L (IN only)
|
|
-EXTERN xdata _AT_(0xE630) volatile BYTE EP2FIFOPFH ; // EP2 Programmable Flag trigger H
|
|
-EXTERN xdata _AT_(0xE631) volatile BYTE EP2FIFOPFL ; // EP2 Programmable Flag trigger L
|
|
-EXTERN xdata _AT_(0xE632) volatile BYTE EP4FIFOPFH ; // EP4 Programmable Flag trigger H
|
|
-EXTERN xdata _AT_(0xE633) volatile BYTE EP4FIFOPFL ; // EP4 Programmable Flag trigger L
|
|
-EXTERN xdata _AT_(0xE634) volatile BYTE EP6FIFOPFH ; // EP6 Programmable Flag trigger H
|
|
-EXTERN xdata _AT_(0xE635) volatile BYTE EP6FIFOPFL ; // EP6 Programmable Flag trigger L
|
|
-EXTERN xdata _AT_(0xE636) volatile BYTE EP8FIFOPFH ; // EP8 Programmable Flag trigger H
|
|
-EXTERN xdata _AT_(0xE637) volatile BYTE EP8FIFOPFL ; // EP8 Programmable Flag trigger L
|
|
-EXTERN xdata _AT_(0xE640) volatile BYTE EP2ISOINPKTS ; // EP2 (if ISO) IN Packets per frame (1-3)
|
|
-EXTERN xdata _AT_(0xE641) volatile BYTE EP4ISOINPKTS ; // EP4 (if ISO) IN Packets per frame (1-3)
|
|
-EXTERN xdata _AT_(0xE642) volatile BYTE EP6ISOINPKTS ; // EP6 (if ISO) IN Packets per frame (1-3)
|
|
-EXTERN xdata _AT_(0xE643) volatile BYTE EP8ISOINPKTS ; // EP8 (if ISO) IN Packets per frame (1-3)
|
|
-EXTERN xdata _AT_(0xE648) volatile BYTE INPKTEND ; // Force IN Packet End
|
|
-EXTERN xdata _AT_(0xE649) volatile BYTE OUTPKTEND ; // Force OUT Packet End
|
|
+EXTERN __xdata _AT_(0xE610) volatile BYTE EP1OUTCFG ; // Endpoint 1-OUT Configuration
|
|
+EXTERN __xdata _AT_(0xE611) volatile BYTE EP1INCFG ; // Endpoint 1-IN Configuration
|
|
+EXTERN __xdata _AT_(0xE612) volatile BYTE EP2CFG ; // Endpoint 2 Configuration
|
|
+EXTERN __xdata _AT_(0xE613) volatile BYTE EP4CFG ; // Endpoint 4 Configuration
|
|
+EXTERN __xdata _AT_(0xE614) volatile BYTE EP6CFG ; // Endpoint 6 Configuration
|
|
+EXTERN __xdata _AT_(0xE615) volatile BYTE EP8CFG ; // Endpoint 8 Configuration
|
|
+EXTERN __xdata _AT_(0xE618) volatile BYTE EP2FIFOCFG ; // Endpoint 2 FIFO configuration
|
|
+EXTERN __xdata _AT_(0xE619) volatile BYTE EP4FIFOCFG ; // Endpoint 4 FIFO configuration
|
|
+EXTERN __xdata _AT_(0xE61A) volatile BYTE EP6FIFOCFG ; // Endpoint 6 FIFO configuration
|
|
+EXTERN __xdata _AT_(0xE61B) volatile BYTE EP8FIFOCFG ; // Endpoint 8 FIFO configuration
|
|
+EXTERN __xdata _AT_(0xE620) volatile BYTE EP2AUTOINLENH ; // Endpoint 2 Packet Length H (IN only)
|
|
+EXTERN __xdata _AT_(0xE621) volatile BYTE EP2AUTOINLENL ; // Endpoint 2 Packet Length L (IN only)
|
|
+EXTERN __xdata _AT_(0xE622) volatile BYTE EP4AUTOINLENH ; // Endpoint 4 Packet Length H (IN only)
|
|
+EXTERN __xdata _AT_(0xE623) volatile BYTE EP4AUTOINLENL ; // Endpoint 4 Packet Length L (IN only)
|
|
+EXTERN __xdata _AT_(0xE624) volatile BYTE EP6AUTOINLENH ; // Endpoint 6 Packet Length H (IN only)
|
|
+EXTERN __xdata _AT_(0xE625) volatile BYTE EP6AUTOINLENL ; // Endpoint 6 Packet Length L (IN only)
|
|
+EXTERN __xdata _AT_(0xE626) volatile BYTE EP8AUTOINLENH ; // Endpoint 8 Packet Length H (IN only)
|
|
+EXTERN __xdata _AT_(0xE627) volatile BYTE EP8AUTOINLENL ; // Endpoint 8 Packet Length L (IN only)
|
|
+EXTERN __xdata _AT_(0xE630) volatile BYTE EP2FIFOPFH ; // EP2 Programmable Flag trigger H
|
|
+EXTERN __xdata _AT_(0xE631) volatile BYTE EP2FIFOPFL ; // EP2 Programmable Flag trigger L
|
|
+EXTERN __xdata _AT_(0xE632) volatile BYTE EP4FIFOPFH ; // EP4 Programmable Flag trigger H
|
|
+EXTERN __xdata _AT_(0xE633) volatile BYTE EP4FIFOPFL ; // EP4 Programmable Flag trigger L
|
|
+EXTERN __xdata _AT_(0xE634) volatile BYTE EP6FIFOPFH ; // EP6 Programmable Flag trigger H
|
|
+EXTERN __xdata _AT_(0xE635) volatile BYTE EP6FIFOPFL ; // EP6 Programmable Flag trigger L
|
|
+EXTERN __xdata _AT_(0xE636) volatile BYTE EP8FIFOPFH ; // EP8 Programmable Flag trigger H
|
|
+EXTERN __xdata _AT_(0xE637) volatile BYTE EP8FIFOPFL ; // EP8 Programmable Flag trigger L
|
|
+EXTERN __xdata _AT_(0xE640) volatile BYTE EP2ISOINPKTS ; // EP2 (if ISO) IN Packets per frame (1-3)
|
|
+EXTERN __xdata _AT_(0xE641) volatile BYTE EP4ISOINPKTS ; // EP4 (if ISO) IN Packets per frame (1-3)
|
|
+EXTERN __xdata _AT_(0xE642) volatile BYTE EP6ISOINPKTS ; // EP6 (if ISO) IN Packets per frame (1-3)
|
|
+EXTERN __xdata _AT_(0xE643) volatile BYTE EP8ISOINPKTS ; // EP8 (if ISO) IN Packets per frame (1-3)
|
|
+EXTERN __xdata _AT_(0xE648) volatile BYTE INPKTEND ; // Force IN Packet End
|
|
+EXTERN __xdata _AT_(0xE649) volatile BYTE OUTPKTEND ; // Force OUT Packet End
|
|
|
|
// Interrupts
|
|
|
|
-EXTERN xdata _AT_(0xE650) volatile BYTE EP2FIFOIE ; // Endpoint 2 Flag Interrupt Enable
|
|
-EXTERN xdata _AT_(0xE651) volatile BYTE EP2FIFOIRQ ; // Endpoint 2 Flag Interrupt Request
|
|
-EXTERN xdata _AT_(0xE652) volatile BYTE EP4FIFOIE ; // Endpoint 4 Flag Interrupt Enable
|
|
-EXTERN xdata _AT_(0xE653) volatile BYTE EP4FIFOIRQ ; // Endpoint 4 Flag Interrupt Request
|
|
-EXTERN xdata _AT_(0xE654) volatile BYTE EP6FIFOIE ; // Endpoint 6 Flag Interrupt Enable
|
|
-EXTERN xdata _AT_(0xE655) volatile BYTE EP6FIFOIRQ ; // Endpoint 6 Flag Interrupt Request
|
|
-EXTERN xdata _AT_(0xE656) volatile BYTE EP8FIFOIE ; // Endpoint 8 Flag Interrupt Enable
|
|
-EXTERN xdata _AT_(0xE657) volatile BYTE EP8FIFOIRQ ; // Endpoint 8 Flag Interrupt Request
|
|
-EXTERN xdata _AT_(0xE658) volatile BYTE IBNIE ; // IN-BULK-NAK Interrupt Enable
|
|
-EXTERN xdata _AT_(0xE659) volatile BYTE IBNIRQ ; // IN-BULK-NAK interrupt Request
|
|
-EXTERN xdata _AT_(0xE65A) volatile BYTE NAKIE ; // Endpoint Ping NAK interrupt Enable
|
|
-EXTERN xdata _AT_(0xE65B) volatile BYTE NAKIRQ ; // Endpoint Ping NAK interrupt Request
|
|
-EXTERN xdata _AT_(0xE65C) volatile BYTE USBIE ; // USB Int Enables
|
|
-EXTERN xdata _AT_(0xE65D) volatile BYTE USBIRQ ; // USB Interrupt Requests
|
|
-EXTERN xdata _AT_(0xE65E) volatile BYTE EPIE ; // Endpoint Interrupt Enables
|
|
-EXTERN xdata _AT_(0xE65F) volatile BYTE EPIRQ ; // Endpoint Interrupt Requests
|
|
-EXTERN xdata _AT_(0xE660) volatile BYTE GPIFIE ; // GPIF Interrupt Enable
|
|
-EXTERN xdata _AT_(0xE661) volatile BYTE GPIFIRQ ; // GPIF Interrupt Request
|
|
-EXTERN xdata _AT_(0xE662) volatile BYTE USBERRIE ; // USB Error Interrupt Enables
|
|
-EXTERN xdata _AT_(0xE663) volatile BYTE USBERRIRQ ; // USB Error Interrupt Requests
|
|
-EXTERN xdata _AT_(0xE664) volatile BYTE ERRCNTLIM ; // USB Error counter and limit
|
|
-EXTERN xdata _AT_(0xE665) volatile BYTE CLRERRCNT ; // Clear Error Counter EC[3..0]
|
|
-EXTERN xdata _AT_(0xE666) volatile BYTE INT2IVEC ; // Interupt 2 (USB) Autovector
|
|
-EXTERN xdata _AT_(0xE667) volatile BYTE INT4IVEC ; // Interupt 4 (FIFOS & GPIF) Autovector
|
|
-EXTERN xdata _AT_(0xE668) volatile BYTE INTSETUP ; // Interrupt 2&4 Setup
|
|
+EXTERN __xdata _AT_(0xE650) volatile BYTE EP2FIFOIE ; // Endpoint 2 Flag Interrupt Enable
|
|
+EXTERN __xdata _AT_(0xE651) volatile BYTE EP2FIFOIRQ ; // Endpoint 2 Flag Interrupt Request
|
|
+EXTERN __xdata _AT_(0xE652) volatile BYTE EP4FIFOIE ; // Endpoint 4 Flag Interrupt Enable
|
|
+EXTERN __xdata _AT_(0xE653) volatile BYTE EP4FIFOIRQ ; // Endpoint 4 Flag Interrupt Request
|
|
+EXTERN __xdata _AT_(0xE654) volatile BYTE EP6FIFOIE ; // Endpoint 6 Flag Interrupt Enable
|
|
+EXTERN __xdata _AT_(0xE655) volatile BYTE EP6FIFOIRQ ; // Endpoint 6 Flag Interrupt Request
|
|
+EXTERN __xdata _AT_(0xE656) volatile BYTE EP8FIFOIE ; // Endpoint 8 Flag Interrupt Enable
|
|
+EXTERN __xdata _AT_(0xE657) volatile BYTE EP8FIFOIRQ ; // Endpoint 8 Flag Interrupt Request
|
|
+EXTERN __xdata _AT_(0xE658) volatile BYTE IBNIE ; // IN-BULK-NAK Interrupt Enable
|
|
+EXTERN __xdata _AT_(0xE659) volatile BYTE IBNIRQ ; // IN-BULK-NAK interrupt Request
|
|
+EXTERN __xdata _AT_(0xE65A) volatile BYTE NAKIE ; // Endpoint Ping NAK interrupt Enable
|
|
+EXTERN __xdata _AT_(0xE65B) volatile BYTE NAKIRQ ; // Endpoint Ping NAK interrupt Request
|
|
+EXTERN __xdata _AT_(0xE65C) volatile BYTE USBIE ; // USB Int Enables
|
|
+EXTERN __xdata _AT_(0xE65D) volatile BYTE USBIRQ ; // USB Interrupt Requests
|
|
+EXTERN __xdata _AT_(0xE65E) volatile BYTE EPIE ; // Endpoint Interrupt Enables
|
|
+EXTERN __xdata _AT_(0xE65F) volatile BYTE EPIRQ ; // Endpoint Interrupt Requests
|
|
+EXTERN __xdata _AT_(0xE660) volatile BYTE GPIFIE ; // GPIF Interrupt Enable
|
|
+EXTERN __xdata _AT_(0xE661) volatile BYTE GPIFIRQ ; // GPIF Interrupt Request
|
|
+EXTERN __xdata _AT_(0xE662) volatile BYTE USBERRIE ; // USB Error Interrupt Enables
|
|
+EXTERN __xdata _AT_(0xE663) volatile BYTE USBERRIRQ ; // USB Error Interrupt Requests
|
|
+EXTERN __xdata _AT_(0xE664) volatile BYTE ERRCNTLIM ; // USB Error counter and limit
|
|
+EXTERN __xdata _AT_(0xE665) volatile BYTE CLRERRCNT ; // Clear Error Counter EC[3..0]
|
|
+EXTERN __xdata _AT_(0xE666) volatile BYTE INT2IVEC ; // Interupt 2 (USB) Autovector
|
|
+EXTERN __xdata _AT_(0xE667) volatile BYTE INT4IVEC ; // Interupt 4 (FIFOS & GPIF) Autovector
|
|
+EXTERN __xdata _AT_(0xE668) volatile BYTE INTSETUP ; // Interrupt 2&4 Setup
|
|
|
|
// Input/Output
|
|
|
|
-EXTERN xdata _AT_(0xE670) volatile BYTE PORTACFG ; // I/O PORTA Alternate Configuration
|
|
-EXTERN xdata _AT_(0xE671) volatile BYTE PORTCCFG ; // I/O PORTC Alternate Configuration
|
|
-EXTERN xdata _AT_(0xE672) volatile BYTE PORTECFG ; // I/O PORTE Alternate Configuration
|
|
-EXTERN xdata _AT_(0xE678) volatile BYTE I2CS ; // Control & Status
|
|
-EXTERN xdata _AT_(0xE679) volatile BYTE I2DAT ; // Data
|
|
-EXTERN xdata _AT_(0xE67A) volatile BYTE I2CTL ; // I2C Control
|
|
-EXTERN xdata _AT_(0xE67B) volatile BYTE XAUTODAT1 ; // Autoptr1 MOVX access
|
|
-EXTERN xdata _AT_(0xE67C) volatile BYTE XAUTODAT2 ; // Autoptr2 MOVX access
|
|
+EXTERN __xdata _AT_(0xE670) volatile BYTE PORTACFG ; // I/O PORTA Alternate Configuration
|
|
+EXTERN __xdata _AT_(0xE671) volatile BYTE PORTCCFG ; // I/O PORTC Alternate Configuration
|
|
+EXTERN __xdata _AT_(0xE672) volatile BYTE PORTECFG ; // I/O PORTE Alternate Configuration
|
|
+EXTERN __xdata _AT_(0xE678) volatile BYTE I2CS ; // Control & Status
|
|
+EXTERN __xdata _AT_(0xE679) volatile BYTE I2DAT ; // Data
|
|
+EXTERN __xdata _AT_(0xE67A) volatile BYTE I2CTL ; // I2C Control
|
|
+EXTERN __xdata _AT_(0xE67B) volatile BYTE XAUTODAT1 ; // Autoptr1 MOVX access
|
|
+EXTERN __xdata _AT_(0xE67C) volatile BYTE XAUTODAT2 ; // Autoptr2 MOVX access
|
|
|
|
#define EXTAUTODAT1 XAUTODAT1
|
|
#define EXTAUTODAT2 XAUTODAT2
|
|
|
|
// USB Control
|
|
|
|
-EXTERN xdata _AT_(0xE680) volatile BYTE USBCS ; // USB Control & Status
|
|
-EXTERN xdata _AT_(0xE681) volatile BYTE SUSPEND ; // Put chip into suspend
|
|
-EXTERN xdata _AT_(0xE682) volatile BYTE WAKEUPCS ; // Wakeup source and polarity
|
|
-EXTERN xdata _AT_(0xE683) volatile BYTE TOGCTL ; // Toggle Control
|
|
-EXTERN xdata _AT_(0xE684) volatile BYTE USBFRAMEH ; // USB Frame count H
|
|
-EXTERN xdata _AT_(0xE685) volatile BYTE USBFRAMEL ; // USB Frame count L
|
|
-EXTERN xdata _AT_(0xE686) volatile BYTE MICROFRAME ; // Microframe count, 0-7
|
|
-EXTERN xdata _AT_(0xE687) volatile BYTE FNADDR ; // USB Function address
|
|
+EXTERN __xdata _AT_(0xE680) volatile BYTE USBCS ; // USB Control & Status
|
|
+EXTERN __xdata _AT_(0xE681) volatile BYTE SUSPEND ; // Put chip into suspend
|
|
+EXTERN __xdata _AT_(0xE682) volatile BYTE WAKEUPCS ; // Wakeup source and polarity
|
|
+EXTERN __xdata _AT_(0xE683) volatile BYTE TOGCTL ; // Toggle Control
|
|
+EXTERN __xdata _AT_(0xE684) volatile BYTE USBFRAMEH ; // USB Frame count H
|
|
+EXTERN __xdata _AT_(0xE685) volatile BYTE USBFRAMEL ; // USB Frame count L
|
|
+EXTERN __xdata _AT_(0xE686) volatile BYTE MICROFRAME ; // Microframe count, 0-7
|
|
+EXTERN __xdata _AT_(0xE687) volatile BYTE FNADDR ; // USB Function address
|
|
|
|
// Endpoints
|
|
|
|
-EXTERN xdata _AT_(0xE68A) volatile BYTE EP0BCH ; // Endpoint 0 Byte Count H
|
|
-EXTERN xdata _AT_(0xE68B) volatile BYTE EP0BCL ; // Endpoint 0 Byte Count L
|
|
-EXTERN xdata _AT_(0xE68D) volatile BYTE EP1OUTBC ; // Endpoint 1 OUT Byte Count
|
|
-EXTERN xdata _AT_(0xE68F) volatile BYTE EP1INBC ; // Endpoint 1 IN Byte Count
|
|
-EXTERN xdata _AT_(0xE690) volatile BYTE EP2BCH ; // Endpoint 2 Byte Count H
|
|
-EXTERN xdata _AT_(0xE691) volatile BYTE EP2BCL ; // Endpoint 2 Byte Count L
|
|
-EXTERN xdata _AT_(0xE694) volatile BYTE EP4BCH ; // Endpoint 4 Byte Count H
|
|
-EXTERN xdata _AT_(0xE695) volatile BYTE EP4BCL ; // Endpoint 4 Byte Count L
|
|
-EXTERN xdata _AT_(0xE698) volatile BYTE EP6BCH ; // Endpoint 6 Byte Count H
|
|
-EXTERN xdata _AT_(0xE699) volatile BYTE EP6BCL ; // Endpoint 6 Byte Count L
|
|
-EXTERN xdata _AT_(0xE69C) volatile BYTE EP8BCH ; // Endpoint 8 Byte Count H
|
|
-EXTERN xdata _AT_(0xE69D) volatile BYTE EP8BCL ; // Endpoint 8 Byte Count L
|
|
-EXTERN xdata _AT_(0xE6A0) volatile BYTE EP0CS ; // Endpoint Control and Status
|
|
-EXTERN xdata _AT_(0xE6A1) volatile BYTE EP1OUTCS ; // Endpoint 1 OUT Control and Status
|
|
-EXTERN xdata _AT_(0xE6A2) volatile BYTE EP1INCS ; // Endpoint 1 IN Control and Status
|
|
-EXTERN xdata _AT_(0xE6A3) volatile BYTE EP2CS ; // Endpoint 2 Control and Status
|
|
-EXTERN xdata _AT_(0xE6A4) volatile BYTE EP4CS ; // Endpoint 4 Control and Status
|
|
-EXTERN xdata _AT_(0xE6A5) volatile BYTE EP6CS ; // Endpoint 6 Control and Status
|
|
-EXTERN xdata _AT_(0xE6A6) volatile BYTE EP8CS ; // Endpoint 8 Control and Status
|
|
-EXTERN xdata _AT_(0xE6A7) volatile BYTE EP2FIFOFLGS ; // Endpoint 2 Flags
|
|
-EXTERN xdata _AT_(0xE6A8) volatile BYTE EP4FIFOFLGS ; // Endpoint 4 Flags
|
|
-EXTERN xdata _AT_(0xE6A9) volatile BYTE EP6FIFOFLGS ; // Endpoint 6 Flags
|
|
-EXTERN xdata _AT_(0xE6AA) volatile BYTE EP8FIFOFLGS ; // Endpoint 8 Flags
|
|
-EXTERN xdata _AT_(0xE6AB) volatile BYTE EP2FIFOBCH ; // EP2 FIFO total byte count H
|
|
-EXTERN xdata _AT_(0xE6AC) volatile BYTE EP2FIFOBCL ; // EP2 FIFO total byte count L
|
|
-EXTERN xdata _AT_(0xE6AD) volatile BYTE EP4FIFOBCH ; // EP4 FIFO total byte count H
|
|
-EXTERN xdata _AT_(0xE6AE) volatile BYTE EP4FIFOBCL ; // EP4 FIFO total byte count L
|
|
-EXTERN xdata _AT_(0xE6AF) volatile BYTE EP6FIFOBCH ; // EP6 FIFO total byte count H
|
|
-EXTERN xdata _AT_(0xE6B0) volatile BYTE EP6FIFOBCL ; // EP6 FIFO total byte count L
|
|
-EXTERN xdata _AT_(0xE6B1) volatile BYTE EP8FIFOBCH ; // EP8 FIFO total byte count H
|
|
-EXTERN xdata _AT_(0xE6B2) volatile BYTE EP8FIFOBCL ; // EP8 FIFO total byte count L
|
|
-EXTERN xdata _AT_(0xE6B3) volatile BYTE SUDPTRH ; // Setup Data Pointer high address byte
|
|
-EXTERN xdata _AT_(0xE6B4) volatile BYTE SUDPTRL ; // Setup Data Pointer low address byte
|
|
-EXTERN xdata _AT_(0xE6B5) volatile BYTE SUDPTRCTL ; // Setup Data Pointer Auto Mode
|
|
-EXTERN xdata _AT_(0xE6B8) volatile BYTE SETUPDAT[8] ; // 8 bytes of SETUP data
|
|
+EXTERN __xdata _AT_(0xE68A) volatile BYTE EP0BCH ; // Endpoint 0 Byte Count H
|
|
+EXTERN __xdata _AT_(0xE68B) volatile BYTE EP0BCL ; // Endpoint 0 Byte Count L
|
|
+EXTERN __xdata _AT_(0xE68D) volatile BYTE EP1OUTBC ; // Endpoint 1 OUT Byte Count
|
|
+EXTERN __xdata _AT_(0xE68F) volatile BYTE EP1INBC ; // Endpoint 1 IN Byte Count
|
|
+EXTERN __xdata _AT_(0xE690) volatile BYTE EP2BCH ; // Endpoint 2 Byte Count H
|
|
+EXTERN __xdata _AT_(0xE691) volatile BYTE EP2BCL ; // Endpoint 2 Byte Count L
|
|
+EXTERN __xdata _AT_(0xE694) volatile BYTE EP4BCH ; // Endpoint 4 Byte Count H
|
|
+EXTERN __xdata _AT_(0xE695) volatile BYTE EP4BCL ; // Endpoint 4 Byte Count L
|
|
+EXTERN __xdata _AT_(0xE698) volatile BYTE EP6BCH ; // Endpoint 6 Byte Count H
|
|
+EXTERN __xdata _AT_(0xE699) volatile BYTE EP6BCL ; // Endpoint 6 Byte Count L
|
|
+EXTERN __xdata _AT_(0xE69C) volatile BYTE EP8BCH ; // Endpoint 8 Byte Count H
|
|
+EXTERN __xdata _AT_(0xE69D) volatile BYTE EP8BCL ; // Endpoint 8 Byte Count L
|
|
+EXTERN __xdata _AT_(0xE6A0) volatile BYTE EP0CS ; // Endpoint Control and Status
|
|
+EXTERN __xdata _AT_(0xE6A1) volatile BYTE EP1OUTCS ; // Endpoint 1 OUT Control and Status
|
|
+EXTERN __xdata _AT_(0xE6A2) volatile BYTE EP1INCS ; // Endpoint 1 IN Control and Status
|
|
+EXTERN __xdata _AT_(0xE6A3) volatile BYTE EP2CS ; // Endpoint 2 Control and Status
|
|
+EXTERN __xdata _AT_(0xE6A4) volatile BYTE EP4CS ; // Endpoint 4 Control and Status
|
|
+EXTERN __xdata _AT_(0xE6A5) volatile BYTE EP6CS ; // Endpoint 6 Control and Status
|
|
+EXTERN __xdata _AT_(0xE6A6) volatile BYTE EP8CS ; // Endpoint 8 Control and Status
|
|
+EXTERN __xdata _AT_(0xE6A7) volatile BYTE EP2FIFOFLGS ; // Endpoint 2 Flags
|
|
+EXTERN __xdata _AT_(0xE6A8) volatile BYTE EP4FIFOFLGS ; // Endpoint 4 Flags
|
|
+EXTERN __xdata _AT_(0xE6A9) volatile BYTE EP6FIFOFLGS ; // Endpoint 6 Flags
|
|
+EXTERN __xdata _AT_(0xE6AA) volatile BYTE EP8FIFOFLGS ; // Endpoint 8 Flags
|
|
+EXTERN __xdata _AT_(0xE6AB) volatile BYTE EP2FIFOBCH ; // EP2 FIFO total byte count H
|
|
+EXTERN __xdata _AT_(0xE6AC) volatile BYTE EP2FIFOBCL ; // EP2 FIFO total byte count L
|
|
+EXTERN __xdata _AT_(0xE6AD) volatile BYTE EP4FIFOBCH ; // EP4 FIFO total byte count H
|
|
+EXTERN __xdata _AT_(0xE6AE) volatile BYTE EP4FIFOBCL ; // EP4 FIFO total byte count L
|
|
+EXTERN __xdata _AT_(0xE6AF) volatile BYTE EP6FIFOBCH ; // EP6 FIFO total byte count H
|
|
+EXTERN __xdata _AT_(0xE6B0) volatile BYTE EP6FIFOBCL ; // EP6 FIFO total byte count L
|
|
+EXTERN __xdata _AT_(0xE6B1) volatile BYTE EP8FIFOBCH ; // EP8 FIFO total byte count H
|
|
+EXTERN __xdata _AT_(0xE6B2) volatile BYTE EP8FIFOBCL ; // EP8 FIFO total byte count L
|
|
+EXTERN __xdata _AT_(0xE6B3) volatile BYTE SUDPTRH ; // Setup Data Pointer high address byte
|
|
+EXTERN __xdata _AT_(0xE6B4) volatile BYTE SUDPTRL ; // Setup Data Pointer low address byte
|
|
+EXTERN __xdata _AT_(0xE6B5) volatile BYTE SUDPTRCTL ; // Setup Data Pointer Auto Mode
|
|
+EXTERN __xdata _AT_(0xE6B8) volatile BYTE SETUPDAT[8] ; // 8 bytes of SETUP data
|
|
|
|
// GPIF
|
|
|
|
-EXTERN xdata _AT_(0xE6C0) volatile BYTE GPIFWFSELECT ; // Waveform Selector
|
|
-EXTERN xdata _AT_(0xE6C1) volatile BYTE GPIFIDLECS ; // GPIF Done, GPIF IDLE drive mode
|
|
-EXTERN xdata _AT_(0xE6C2) volatile BYTE GPIFIDLECTL ; // Inactive Bus, CTL states
|
|
-EXTERN xdata _AT_(0xE6C3) volatile BYTE GPIFCTLCFG ; // CTL OUT pin drive
|
|
-EXTERN xdata _AT_(0xE6C4) volatile BYTE GPIFADRH ; // GPIF Address H
|
|
-EXTERN xdata _AT_(0xE6C5) volatile BYTE GPIFADRL ; // GPIF Address L
|
|
-
|
|
-EXTERN xdata _AT_(0xE6CE) volatile BYTE GPIFTCB3 ; // GPIF Transaction Count Byte 3
|
|
-EXTERN xdata _AT_(0xE6CF) volatile BYTE GPIFTCB2 ; // GPIF Transaction Count Byte 2
|
|
-EXTERN xdata _AT_(0xE6D0) volatile BYTE GPIFTCB1 ; // GPIF Transaction Count Byte 1
|
|
-EXTERN xdata _AT_(0xE6D1) volatile BYTE GPIFTCB0 ; // GPIF Transaction Count Byte 0
|
|
+EXTERN __xdata _AT_(0xE6C0) volatile BYTE GPIFWFSELECT ; // Waveform Selector
|
|
+EXTERN __xdata _AT_(0xE6C1) volatile BYTE GPIFIDLECS ; // GPIF Done, GPIF IDLE drive mode
|
|
+EXTERN __xdata _AT_(0xE6C2) volatile BYTE GPIFIDLECTL ; // Inactive Bus, CTL states
|
|
+EXTERN __xdata _AT_(0xE6C3) volatile BYTE GPIFCTLCFG ; // CTL OUT pin drive
|
|
+EXTERN __xdata _AT_(0xE6C4) volatile BYTE GPIFADRH ; // GPIF Address H
|
|
+EXTERN __xdata _AT_(0xE6C5) volatile BYTE GPIFADRL ; // GPIF Address L
|
|
+
|
|
+EXTERN __xdata _AT_(0xE6CE) volatile BYTE GPIFTCB3 ; // GPIF Transaction Count Byte 3
|
|
+EXTERN __xdata _AT_(0xE6CF) volatile BYTE GPIFTCB2 ; // GPIF Transaction Count Byte 2
|
|
+EXTERN __xdata _AT_(0xE6D0) volatile BYTE GPIFTCB1 ; // GPIF Transaction Count Byte 1
|
|
+EXTERN __xdata _AT_(0xE6D1) volatile BYTE GPIFTCB0 ; // GPIF Transaction Count Byte 0
|
|
|
|
#define EP2GPIFTCH GPIFTCB1 // these are here for backwards compatibility
|
|
#define EP2GPIFTCL GPIFTCB0 // before REVE silicon (ie. REVB and REVD)
|
|
@@ -238,68 +238,68 @@
|
|
#define EP8GPIFTCH GPIFTCB1 // these are here for backwards compatibility
|
|
#define EP8GPIFTCL GPIFTCB0 // before REVE silicon (ie. REVB and REVD)
|
|
|
|
-// EXTERN xdata volatile BYTE EP2GPIFTCH _AT_ 0xE6D0; // EP2 GPIF Transaction Count High
|
|
-// EXTERN xdata volatile BYTE EP2GPIFTCL _AT_ 0xE6D1; // EP2 GPIF Transaction Count Low
|
|
-EXTERN xdata _AT_(0xE6D2) volatile BYTE EP2GPIFFLGSEL ; // EP2 GPIF Flag select
|
|
-EXTERN xdata _AT_(0xE6D3) volatile BYTE EP2GPIFPFSTOP ; // Stop GPIF EP2 transaction on prog. flag
|
|
-EXTERN xdata _AT_(0xE6D4) volatile BYTE EP2GPIFTRIG ; // EP2 FIFO Trigger
|
|
-// EXTERN xdata volatile BYTE EP4GPIFTCH _AT_ 0xE6D8; // EP4 GPIF Transaction Count High
|
|
-// EXTERN xdata volatile BYTE EP4GPIFTCL _AT_ 0xE6D9; // EP4 GPIF Transactionr Count Low
|
|
-EXTERN xdata _AT_(0xE6DA) volatile BYTE EP4GPIFFLGSEL ; // EP4 GPIF Flag select
|
|
-EXTERN xdata _AT_(0xE6DB) volatile BYTE EP4GPIFPFSTOP ; // Stop GPIF EP4 transaction on prog. flag
|
|
-EXTERN xdata _AT_(0xE6DC) volatile BYTE EP4GPIFTRIG ; // EP4 FIFO Trigger
|
|
-// EXTERN xdata volatile BYTE EP6GPIFTCH _AT_ 0xE6E0; // EP6 GPIF Transaction Count High
|
|
-// EXTERN xdata volatile BYTE EP6GPIFTCL _AT_ 0xE6E1; // EP6 GPIF Transaction Count Low
|
|
-EXTERN xdata _AT_(0xE6E2) volatile BYTE EP6GPIFFLGSEL ; // EP6 GPIF Flag select
|
|
-EXTERN xdata _AT_(0xE6E3) volatile BYTE EP6GPIFPFSTOP ; // Stop GPIF EP6 transaction on prog. flag
|
|
-EXTERN xdata _AT_(0xE6E4) volatile BYTE EP6GPIFTRIG ; // EP6 FIFO Trigger
|
|
-// EXTERN xdata volatile BYTE EP8GPIFTCH _AT_ 0xE6E8; // EP8 GPIF Transaction Count High
|
|
-// EXTERN xdata volatile BYTE EP8GPIFTCL _AT_ 0xE6E9; // EP8GPIF Transaction Count Low
|
|
-EXTERN xdata _AT_(0xE6EA) volatile BYTE EP8GPIFFLGSEL ; // EP8 GPIF Flag select
|
|
-EXTERN xdata _AT_(0xE6EB) volatile BYTE EP8GPIFPFSTOP ; // Stop GPIF EP8 transaction on prog. flag
|
|
-EXTERN xdata _AT_(0xE6EC) volatile BYTE EP8GPIFTRIG ; // EP8 FIFO Trigger
|
|
-EXTERN xdata _AT_(0xE6F0) volatile BYTE XGPIFSGLDATH ; // GPIF Data H (16-bit mode only)
|
|
-EXTERN xdata _AT_(0xE6F1) volatile BYTE XGPIFSGLDATLX ; // Read/Write GPIF Data L & trigger transac
|
|
-EXTERN xdata _AT_(0xE6F2) volatile BYTE XGPIFSGLDATLNOX ; // Read GPIF Data L, no transac trigger
|
|
-EXTERN xdata _AT_(0xE6F3) volatile BYTE GPIFREADYCFG ; // Internal RDY,Sync/Async, RDY5CFG
|
|
-EXTERN xdata _AT_(0xE6F4) volatile BYTE GPIFREADYSTAT ; // RDY pin states
|
|
-EXTERN xdata _AT_(0xE6F5) volatile BYTE GPIFABORT ; // Abort GPIF cycles
|
|
+// EXTERN __xdata volatile BYTE EP2GPIFTCH _AT_ 0xE6D0; // EP2 GPIF Transaction Count High
|
|
+// EXTERN __xdata volatile BYTE EP2GPIFTCL _AT_ 0xE6D1; // EP2 GPIF Transaction Count Low
|
|
+EXTERN __xdata _AT_(0xE6D2) volatile BYTE EP2GPIFFLGSEL ; // EP2 GPIF Flag select
|
|
+EXTERN __xdata _AT_(0xE6D3) volatile BYTE EP2GPIFPFSTOP ; // Stop GPIF EP2 transaction on prog. flag
|
|
+EXTERN __xdata _AT_(0xE6D4) volatile BYTE EP2GPIFTRIG ; // EP2 FIFO Trigger
|
|
+// EXTERN __xdata volatile BYTE EP4GPIFTCH _AT_ 0xE6D8; // EP4 GPIF Transaction Count High
|
|
+// EXTERN __xdata volatile BYTE EP4GPIFTCL _AT_ 0xE6D9; // EP4 GPIF Transactionr Count Low
|
|
+EXTERN __xdata _AT_(0xE6DA) volatile BYTE EP4GPIFFLGSEL ; // EP4 GPIF Flag select
|
|
+EXTERN __xdata _AT_(0xE6DB) volatile BYTE EP4GPIFPFSTOP ; // Stop GPIF EP4 transaction on prog. flag
|
|
+EXTERN __xdata _AT_(0xE6DC) volatile BYTE EP4GPIFTRIG ; // EP4 FIFO Trigger
|
|
+// EXTERN __xdata volatile BYTE EP6GPIFTCH _AT_ 0xE6E0; // EP6 GPIF Transaction Count High
|
|
+// EXTERN __xdata volatile BYTE EP6GPIFTCL _AT_ 0xE6E1; // EP6 GPIF Transaction Count Low
|
|
+EXTERN __xdata _AT_(0xE6E2) volatile BYTE EP6GPIFFLGSEL ; // EP6 GPIF Flag select
|
|
+EXTERN __xdata _AT_(0xE6E3) volatile BYTE EP6GPIFPFSTOP ; // Stop GPIF EP6 transaction on prog. flag
|
|
+EXTERN __xdata _AT_(0xE6E4) volatile BYTE EP6GPIFTRIG ; // EP6 FIFO Trigger
|
|
+// EXTERN __xdata volatile BYTE EP8GPIFTCH _AT_ 0xE6E8; // EP8 GPIF Transaction Count High
|
|
+// EXTERN __xdata volatile BYTE EP8GPIFTCL _AT_ 0xE6E9; // EP8GPIF Transaction Count Low
|
|
+EXTERN __xdata _AT_(0xE6EA) volatile BYTE EP8GPIFFLGSEL ; // EP8 GPIF Flag select
|
|
+EXTERN __xdata _AT_(0xE6EB) volatile BYTE EP8GPIFPFSTOP ; // Stop GPIF EP8 transaction on prog. flag
|
|
+EXTERN __xdata _AT_(0xE6EC) volatile BYTE EP8GPIFTRIG ; // EP8 FIFO Trigger
|
|
+EXTERN __xdata _AT_(0xE6F0) volatile BYTE XGPIFSGLDATH ; // GPIF Data H (16-bit mode only)
|
|
+EXTERN __xdata _AT_(0xE6F1) volatile BYTE XGPIFSGLDATLX ; // Read/Write GPIF Data L & trigger transac
|
|
+EXTERN __xdata _AT_(0xE6F2) volatile BYTE XGPIFSGLDATLNOX ; // Read GPIF Data L, no transac trigger
|
|
+EXTERN __xdata _AT_(0xE6F3) volatile BYTE GPIFREADYCFG ; // Internal RDY,Sync/Async, RDY5CFG
|
|
+EXTERN __xdata _AT_(0xE6F4) volatile BYTE GPIFREADYSTAT ; // RDY pin states
|
|
+EXTERN __xdata _AT_(0xE6F5) volatile BYTE GPIFABORT ; // Abort GPIF cycles
|
|
|
|
// UDMA
|
|
|
|
-EXTERN xdata _AT_(0xE6C6) volatile BYTE FLOWSTATE ; //Defines GPIF flow state
|
|
-EXTERN xdata _AT_(0xE6C7) volatile BYTE FLOWLOGIC ; //Defines flow/hold decision criteria
|
|
-EXTERN xdata _AT_(0xE6C8) volatile BYTE FLOWEQ0CTL ; //CTL states during active flow state
|
|
-EXTERN xdata _AT_(0xE6C9) volatile BYTE FLOWEQ1CTL ; //CTL states during hold flow state
|
|
-EXTERN xdata _AT_(0xE6CA) volatile BYTE FLOWHOLDOFF ;
|
|
-EXTERN xdata _AT_(0xE6CB) volatile BYTE FLOWSTB ; //CTL/RDY Signal to use as master data strobe
|
|
-EXTERN xdata _AT_(0xE6CC) volatile BYTE FLOWSTBEDGE ; //Defines active master strobe edge
|
|
-EXTERN xdata _AT_(0xE6CD) volatile BYTE FLOWSTBHPERIOD ; //Half Period of output master strobe
|
|
-EXTERN xdata _AT_(0xE60C) volatile BYTE GPIFHOLDAMOUNT ; //Data delay shift
|
|
-EXTERN xdata _AT_(0xE67D) volatile BYTE UDMACRCH ; //CRC Upper byte
|
|
-EXTERN xdata _AT_(0xE67E) volatile BYTE UDMACRCL ; //CRC Lower byte
|
|
-EXTERN xdata _AT_(0xE67F) volatile BYTE UDMACRCQUAL ; //UDMA In only, host terminated use only
|
|
+EXTERN __xdata _AT_(0xE6C6) volatile BYTE FLOWSTATE ; //Defines GPIF flow state
|
|
+EXTERN __xdata _AT_(0xE6C7) volatile BYTE FLOWLOGIC ; //Defines flow/hold decision criteria
|
|
+EXTERN __xdata _AT_(0xE6C8) volatile BYTE FLOWEQ0CTL ; //CTL states during active flow state
|
|
+EXTERN __xdata _AT_(0xE6C9) volatile BYTE FLOWEQ1CTL ; //CTL states during hold flow state
|
|
+EXTERN __xdata _AT_(0xE6CA) volatile BYTE FLOWHOLDOFF ;
|
|
+EXTERN __xdata _AT_(0xE6CB) volatile BYTE FLOWSTB ; //CTL/RDY Signal to use as master data strobe
|
|
+EXTERN __xdata _AT_(0xE6CC) volatile BYTE FLOWSTBEDGE ; //Defines active master strobe edge
|
|
+EXTERN __xdata _AT_(0xE6CD) volatile BYTE FLOWSTBHPERIOD ; //Half Period of output master strobe
|
|
+EXTERN __xdata _AT_(0xE60C) volatile BYTE GPIFHOLDAMOUNT ; //Data delay shift
|
|
+EXTERN __xdata _AT_(0xE67D) volatile BYTE UDMACRCH ; //CRC Upper byte
|
|
+EXTERN __xdata _AT_(0xE67E) volatile BYTE UDMACRCL ; //CRC Lower byte
|
|
+EXTERN __xdata _AT_(0xE67F) volatile BYTE UDMACRCQUAL ; //UDMA In only, host terminated use only
|
|
|
|
|
|
// Debug/Test
|
|
|
|
-EXTERN xdata _AT_(0xE6F8) volatile BYTE DBUG ; // Debug
|
|
-EXTERN xdata _AT_(0xE6F9) volatile BYTE TESTCFG ; // Test configuration
|
|
-EXTERN xdata _AT_(0xE6FA) volatile BYTE USBTEST ; // USB Test Modes
|
|
-EXTERN xdata _AT_(0xE6FB) volatile BYTE CT1 ; // Chirp Test--Override
|
|
-EXTERN xdata _AT_(0xE6FC) volatile BYTE CT2 ; // Chirp Test--FSM
|
|
-EXTERN xdata _AT_(0xE6FD) volatile BYTE CT3 ; // Chirp Test--Control Signals
|
|
-EXTERN xdata _AT_(0xE6FE) volatile BYTE CT4 ; // Chirp Test--Inputs
|
|
+EXTERN __xdata _AT_(0xE6F8) volatile BYTE DBUG ; // Debug
|
|
+EXTERN __xdata _AT_(0xE6F9) volatile BYTE TESTCFG ; // Test configuration
|
|
+EXTERN __xdata _AT_(0xE6FA) volatile BYTE USBTEST ; // USB Test Modes
|
|
+EXTERN __xdata _AT_(0xE6FB) volatile BYTE CT1 ; // Chirp Test--Override
|
|
+EXTERN __xdata _AT_(0xE6FC) volatile BYTE CT2 ; // Chirp Test--FSM
|
|
+EXTERN __xdata _AT_(0xE6FD) volatile BYTE CT3 ; // Chirp Test--Control Signals
|
|
+EXTERN __xdata _AT_(0xE6FE) volatile BYTE CT4 ; // Chirp Test--Inputs
|
|
|
|
// Endpoint Buffers
|
|
|
|
-EXTERN xdata _AT_(0xE740) volatile BYTE EP0BUF[64] ; // EP0 IN-OUT buffer
|
|
-EXTERN xdata _AT_(0xE780) volatile BYTE EP1OUTBUF[64] ; // EP1-OUT buffer
|
|
-EXTERN xdata _AT_(0xE7C0) volatile BYTE EP1INBUF[64] ; // EP1-IN buffer
|
|
-EXTERN xdata _AT_(0xF000) volatile BYTE EP2FIFOBUF[1024] ; // 512/1024-byte EP2 buffer (IN or OUT)
|
|
-EXTERN xdata _AT_(0xF400) volatile BYTE EP4FIFOBUF[1024] ; // 512 byte EP4 buffer (IN or OUT)
|
|
-EXTERN xdata _AT_(0xF800) volatile BYTE EP6FIFOBUF[1024] ; // 512/1024-byte EP6 buffer (IN or OUT)
|
|
-EXTERN xdata _AT_(0xFC00) volatile BYTE EP8FIFOBUF[1024] ; // 512 byte EP8 buffer (IN or OUT)
|
|
+EXTERN __xdata _AT_(0xE740) volatile BYTE EP0BUF[64] ; // EP0 IN-OUT buffer
|
|
+EXTERN __xdata _AT_(0xE780) volatile BYTE EP1OUTBUF[64] ; // EP1-OUT buffer
|
|
+EXTERN __xdata _AT_(0xE7C0) volatile BYTE EP1INBUF[64] ; // EP1-IN buffer
|
|
+EXTERN __xdata _AT_(0xF000) volatile BYTE EP2FIFOBUF[1024] ; // 512/1024-byte EP2 buffer (IN or OUT)
|
|
+EXTERN __xdata _AT_(0xF400) volatile BYTE EP4FIFOBUF[1024] ; // 512 byte EP4 buffer (IN or OUT)
|
|
+EXTERN __xdata _AT_(0xF800) volatile BYTE EP6FIFOBUF[1024] ; // 512/1024-byte EP6 buffer (IN or OUT)
|
|
+EXTERN __xdata _AT_(0xFC00) volatile BYTE EP8FIFOBUF[1024] ; // 512 byte EP8 buffer (IN or OUT)
|
|
|
|
#undef EXTERN
|
|
#undef _AT_
|
|
@@ -312,201 +312,201 @@
|
|
"ezregs.inc" which includes the same basic information for assembly inclusion.
|
|
-----------------------------------------------------------------------------*/
|
|
|
|
-sfr at 0x80 IOA;
|
|
-sfr at 0x81 SP;
|
|
-sfr at 0x82 DPL;
|
|
-sfr at 0x83 DPH;
|
|
-sfr at 0x84 DPL1;
|
|
-sfr at 0x85 DPH1;
|
|
-sfr at 0x86 DPS;
|
|
+__sfr __at 0x80 IOA;
|
|
+__sfr __at 0x81 SP;
|
|
+__sfr __at 0x82 DPL;
|
|
+__sfr __at 0x83 DPH;
|
|
+__sfr __at 0x84 DPL1;
|
|
+__sfr __at 0x85 DPH1;
|
|
+__sfr __at 0x86 DPS;
|
|
/* DPS */
|
|
- sbit at 0x86+0 SEL;
|
|
-sfr at 0x87 PCON; /* PCON */
|
|
+ __sbit __at 0x86+0 SEL;
|
|
+__sfr __at 0x87 PCON; /* PCON */
|
|
//sbit IDLE = 0x87+0;
|
|
//sbit STOP = 0x87+1;
|
|
//sbit GF0 = 0x87+2;
|
|
//sbit GF1 = 0x87+3;
|
|
//sbit SMOD0 = 0x87+7;
|
|
-sfr at 0x88 TCON;
|
|
+__sfr __at 0x88 TCON;
|
|
/* TCON */
|
|
- sbit at 0x88+0 IT0;
|
|
- sbit at 0x88+1 IE0;
|
|
- sbit at 0x88+2 IT1;
|
|
- sbit at 0x88+3 IE1;
|
|
- sbit at 0x88+4 TR0;
|
|
- sbit at 0x88+5 TF0;
|
|
- sbit at 0x88+6 TR1;
|
|
- sbit at 0x88+7 TF1;
|
|
-sfr at 0x89 TMOD;
|
|
+ __sbit __at 0x88+0 IT0;
|
|
+ __sbit __at 0x88+1 IE0;
|
|
+ __sbit __at 0x88+2 IT1;
|
|
+ __sbit __at 0x88+3 IE1;
|
|
+ __sbit __at 0x88+4 TR0;
|
|
+ __sbit __at 0x88+5 TF0;
|
|
+ __sbit __at 0x88+6 TR1;
|
|
+ __sbit __at 0x88+7 TF1;
|
|
+__sfr __at 0x89 TMOD;
|
|
/* TMOD */
|
|
- //sbit M00 = 0x89+0;
|
|
- //sbit M10 = 0x89+1;
|
|
- //sbit CT0 = 0x89+2;
|
|
- //sbit GATE0 = 0x89+3;
|
|
- //sbit M01 = 0x89+4;
|
|
- //sbit M11 = 0x89+5;
|
|
- //sbit CT1 = 0x89+6;
|
|
- //sbit GATE1 = 0x89+7;
|
|
-sfr at 0x8A TL0;
|
|
-sfr at 0x8B TL1;
|
|
-sfr at 0x8C TH0;
|
|
-sfr at 0x8D TH1;
|
|
-sfr at 0x8E CKCON;
|
|
+ //__sbit M00 = 0x89+0;
|
|
+ //__sbit M10 = 0x89+1;
|
|
+ //__sbit CT0 = 0x89+2;
|
|
+ //__sbit GATE0 = 0x89+3;
|
|
+ //__sbit M01 = 0x89+4;
|
|
+ //__sbit M11 = 0x89+5;
|
|
+ //__sbit CT1 = 0x89+6;
|
|
+ //__sbit GATE1 = 0x89+7;
|
|
+__sfr __at 0x8A TL0;
|
|
+__sfr __at 0x8B TL1;
|
|
+__sfr __at 0x8C TH0;
|
|
+__sfr __at 0x8D TH1;
|
|
+__sfr __at 0x8E CKCON;
|
|
/* CKCON */
|
|
- //sbit MD0 = 0x89+0;
|
|
- //sbit MD1 = 0x89+1;
|
|
- //sbit MD2 = 0x89+2;
|
|
- //sbit T0M = 0x89+3;
|
|
- //sbit T1M = 0x89+4;
|
|
- //sbit T2M = 0x89+5;
|
|
-// sfr at 0x8F SPC_FNC; // Was WRS in Reg320
|
|
+ //__sbit MD0 = 0x89+0;
|
|
+ //__sbit MD1 = 0x89+1;
|
|
+ //__sbit MD2 = 0x89+2;
|
|
+ //__sbit T0M = 0x89+3;
|
|
+ //__sbit T1M = 0x89+4;
|
|
+ //__sbit T2M = 0x89+5;
|
|
+// __sfr __at 0x8F SPC_FNC; // Was WRS in Reg320
|
|
/* CKCON */
|
|
- //sbit WRS = 0x8F+0;
|
|
-sfr at 0x90 IOB;
|
|
-sfr at 0x91 EXIF; // EXIF Bit Values differ from Reg320
|
|
+ //__sbit WRS = 0x8F+0;
|
|
+__sfr __at 0x90 IOB;
|
|
+__sfr __at 0x91 EXIF; // EXIF Bit Values differ from Reg320
|
|
/* EXIF */
|
|
- //sbit USBINT = 0x91+4;
|
|
- //sbit I2CINT = 0x91+5;
|
|
- //sbit IE4 = 0x91+6;
|
|
- //sbit IE5 = 0x91+7;
|
|
-sfr at 0x92 MPAGE;
|
|
-sfr at 0x98 SCON0;
|
|
+ //__sbit USBINT = 0x91+4;
|
|
+ //__sbit I2CINT = 0x91+5;
|
|
+ //__sbit IE4 = 0x91+6;
|
|
+ //__sbit IE5 = 0x91+7;
|
|
+__sfr __at 0x92 MPAGE;
|
|
+__sfr __at 0x98 SCON0;
|
|
/* SCON0 */
|
|
- sbit at 0x98+0 RI;
|
|
- sbit at 0x98+1 TI;
|
|
- sbit at 0x98+2 RB8;
|
|
- sbit at 0x98+3 TB8;
|
|
- sbit at 0x98+4 REN;
|
|
- sbit at 0x98+5 SM2;
|
|
- sbit at 0x98+6 SM1;
|
|
- sbit at 0x98+7 SM0;
|
|
-sfr at 0x99 SBUF0;
|
|
-
|
|
-sfr at 0x9A APTR1H;
|
|
-sfr at 0x9B APTR1L;
|
|
-sfr at 0x9C AUTODAT1;
|
|
-sfr at 0x9D AUTOPTRH2;
|
|
-sfr at 0x9E AUTOPTRL2;
|
|
-sfr at 0x9F AUTODAT2;
|
|
-sfr at 0xA0 IOC;
|
|
-sfr at 0xA1 INT2CLR;
|
|
-sfr at 0xA2 INT4CLR;
|
|
+ __sbit __at 0x98+0 RI;
|
|
+ __sbit __at 0x98+1 TI;
|
|
+ __sbit __at 0x98+2 RB8;
|
|
+ __sbit __at 0x98+3 TB8;
|
|
+ __sbit __at 0x98+4 REN;
|
|
+ __sbit __at 0x98+5 SM2;
|
|
+ __sbit __at 0x98+6 SM1;
|
|
+ __sbit __at 0x98+7 SM0;
|
|
+__sfr __at 0x99 SBUF0;
|
|
+
|
|
+__sfr __at 0x9A APTR1H;
|
|
+__sfr __at 0x9B APTR1L;
|
|
+__sfr __at 0x9C AUTODAT1;
|
|
+__sfr __at 0x9D AUTOPTRH2;
|
|
+__sfr __at 0x9E AUTOPTRL2;
|
|
+__sfr __at 0x9F AUTODAT2;
|
|
+__sfr __at 0xA0 IOC;
|
|
+__sfr __at 0xA1 INT2CLR;
|
|
+__sfr __at 0xA2 INT4CLR;
|
|
|
|
#define AUTOPTRH1 APTR1H
|
|
#define AUTOPTRL1 APTR1L
|
|
|
|
-sfr at 0xA8 IE;
|
|
+__sfr __at 0xA8 IE;
|
|
/* IE */
|
|
- sbit at 0xA8+0 EX0;
|
|
- sbit at 0xA8+1 ET0;
|
|
- sbit at 0xA8+2 EX1;
|
|
- sbit at 0xA8+3 ET1;
|
|
- sbit at 0xA8+4 ES0;
|
|
- sbit at 0xA8+5 ET2;
|
|
- sbit at 0xA8+6 ES1;
|
|
- sbit at 0xA8+7 EA;
|
|
+ __sbit __at 0xA8+0 EX0;
|
|
+ __sbit __at 0xA8+1 ET0;
|
|
+ __sbit __at 0xA8+2 EX1;
|
|
+ __sbit __at 0xA8+3 ET1;
|
|
+ __sbit __at 0xA8+4 ES0;
|
|
+ __sbit __at 0xA8+5 ET2;
|
|
+ __sbit __at 0xA8+6 ES1;
|
|
+ __sbit __at 0xA8+7 EA;
|
|
|
|
-sfr at 0xAA EP2468STAT;
|
|
+__sfr __at 0xAA EP2468STAT;
|
|
/* EP2468STAT */
|
|
- //sbit EP2E = 0xAA+0;
|
|
- //sbit EP2F = 0xAA+1;
|
|
- //sbit EP4E = 0xAA+2;
|
|
- //sbit EP4F = 0xAA+3;
|
|
- //sbit EP6E = 0xAA+4;
|
|
- //sbit EP6F = 0xAA+5;
|
|
- //sbit EP8E = 0xAA+6;
|
|
- //sbit EP8F = 0xAA+7;
|
|
-
|
|
-sfr at 0xAB EP24FIFOFLGS;
|
|
-sfr at 0xAC EP68FIFOFLGS;
|
|
-sfr at 0xAF AUTOPTRSETUP;
|
|
+ //__sbit EP2E = 0xAA+0;
|
|
+ //__sbit EP2F = 0xAA+1;
|
|
+ //__sbit EP4E = 0xAA+2;
|
|
+ //__sbit EP4F = 0xAA+3;
|
|
+ //__sbit EP6E = 0xAA+4;
|
|
+ //__sbit EP6F = 0xAA+5;
|
|
+ //__sbit EP8E = 0xAA+6;
|
|
+ //__sbit EP8F = 0xAA+7;
|
|
+
|
|
+__sfr __at 0xAB EP24FIFOFLGS;
|
|
+__sfr __at 0xAC EP68FIFOFLGS;
|
|
+__sfr __at 0xAF AUTOPTRSETUP;
|
|
/* AUTOPTRSETUP */
|
|
- // sbit EXTACC = 0xAF+0;
|
|
- // sbit APTR1FZ = 0xAF+1;
|
|
- // sbit APTR2FZ = 0xAF+2;
|
|
-
|
|
-sfr at 0xB0 IOD;
|
|
-sfr at 0xB1 IOE;
|
|
-sfr at 0xB2 OEA;
|
|
-sfr at 0xB3 OEB;
|
|
-sfr at 0xB4 OEC;
|
|
-sfr at 0xB5 OED;
|
|
-sfr at 0xB6 OEE;
|
|
+ // __sbit EXTACC = 0xAF+0;
|
|
+ // __sbit APTR1FZ = 0xAF+1;
|
|
+ // __sbit APTR2FZ = 0xAF+2;
|
|
+
|
|
+__sfr __at 0xB0 IOD;
|
|
+__sfr __at 0xB1 IOE;
|
|
+__sfr __at 0xB2 OEA;
|
|
+__sfr __at 0xB3 OEB;
|
|
+__sfr __at 0xB4 OEC;
|
|
+__sfr __at 0xB5 OED;
|
|
+__sfr __at 0xB6 OEE;
|
|
|
|
-sfr at 0xB8 IP;
|
|
+__sfr __at 0xB8 IP;
|
|
/* IP */
|
|
- sbit at 0xB8+0 PX0;
|
|
- sbit at 0xB8+1 PT0;
|
|
- sbit at 0xB8+2 PX1;
|
|
- sbit at 0xB8+3 PT1;
|
|
- sbit at 0xB8+4 PS0;
|
|
- sbit at 0xB8+5 PT2;
|
|
- sbit at 0xB8+6 PS1;
|
|
+ __sbit __at 0xB8+0 PX0;
|
|
+ __sbit __at 0xB8+1 PT0;
|
|
+ __sbit __at 0xB8+2 PX1;
|
|
+ __sbit __at 0xB8+3 PT1;
|
|
+ __sbit __at 0xB8+4 PS0;
|
|
+ __sbit __at 0xB8+5 PT2;
|
|
+ __sbit __at 0xB8+6 PS1;
|
|
|
|
-sfr at 0xBA EP01STAT;
|
|
-sfr at 0xBB GPIFTRIG;
|
|
+__sfr __at 0xBA EP01STAT;
|
|
+__sfr __at 0xBB GPIFTRIG;
|
|
|
|
-sfr at 0xBD GPIFSGLDATH;
|
|
-sfr at 0xBE GPIFSGLDATLX;
|
|
-sfr at 0xBF GPIFSGLDATLNOX;
|
|
+__sfr __at 0xBD GPIFSGLDATH;
|
|
+__sfr __at 0xBE GPIFSGLDATLX;
|
|
+__sfr __at 0xBF GPIFSGLDATLNOX;
|
|
|
|
-sfr at 0xC0 SCON1;
|
|
+__sfr __at 0xC0 SCON1;
|
|
/* SCON1 */
|
|
- sbit at 0xC0+0 RI1;
|
|
- sbit at 0xC0+1 TI1;
|
|
- sbit at 0xC0+2 RB81;
|
|
- sbit at 0xC0+3 TB81;
|
|
- sbit at 0xC0+4 REN1;
|
|
- sbit at 0xC0+5 SM21;
|
|
- sbit at 0xC0+6 SM11;
|
|
- sbit at 0xC0+7 SM01;
|
|
-sfr at 0xC1 SBUF1;
|
|
-sfr at 0xC8 T2CON;
|
|
+ __sbit __at 0xC0+0 RI1;
|
|
+ __sbit __at 0xC0+1 TI1;
|
|
+ __sbit __at 0xC0+2 RB81;
|
|
+ __sbit __at 0xC0+3 TB81;
|
|
+ __sbit __at 0xC0+4 REN1;
|
|
+ __sbit __at 0xC0+5 SM21;
|
|
+ __sbit __at 0xC0+6 SM11;
|
|
+ __sbit __at 0xC0+7 SM01;
|
|
+__sfr __at 0xC1 SBUF1;
|
|
+__sfr __at 0xC8 T2CON;
|
|
/* T2CON */
|
|
- sbit at 0xC8+0 CP_RL2;
|
|
- sbit at 0xC8+1 C_T2;
|
|
- sbit at 0xC8+2 TR2;
|
|
- sbit at 0xC8+3 EXEN2;
|
|
- sbit at 0xC8+4 TCLK;
|
|
- sbit at 0xC8+5 RCLK;
|
|
- sbit at 0xC8+6 EXF2;
|
|
- sbit at 0xC8+7 TF2;
|
|
-sfr at 0xCA RCAP2L;
|
|
-sfr at 0xCB RCAP2H;
|
|
-sfr at 0xCC TL2;
|
|
-sfr at 0xCD TH2;
|
|
-sfr at 0xD0 PSW;
|
|
+ __sbit __at 0xC8+0 CP_RL2;
|
|
+ __sbit __at 0xC8+1 C_T2;
|
|
+ __sbit __at 0xC8+2 TR2;
|
|
+ __sbit __at 0xC8+3 EXEN2;
|
|
+ __sbit __at 0xC8+4 TCLK;
|
|
+ __sbit __at 0xC8+5 RCLK;
|
|
+ __sbit __at 0xC8+6 EXF2;
|
|
+ __sbit __at 0xC8+7 TF2;
|
|
+__sfr __at 0xCA RCAP2L;
|
|
+__sfr __at 0xCB RCAP2H;
|
|
+__sfr __at 0xCC TL2;
|
|
+__sfr __at 0xCD TH2;
|
|
+__sfr __at 0xD0 PSW;
|
|
/* PSW */
|
|
- sbit at 0xD0+0 P;
|
|
- sbit at 0xD0+1 FL;
|
|
- sbit at 0xD0+2 OV;
|
|
- sbit at 0xD0+3 RS0;
|
|
- sbit at 0xD0+4 RS1;
|
|
- sbit at 0xD0+5 F0;
|
|
- sbit at 0xD0+6 AC;
|
|
- sbit at 0xD0+7 CY;
|
|
-sfr at 0xD8 EICON; // Was WDCON in DS80C320 EICON; Bit Values differ from Reg320
|
|
+ __sbit __at 0xD0+0 P;
|
|
+ __sbit __at 0xD0+1 FL;
|
|
+ __sbit __at 0xD0+2 OV;
|
|
+ __sbit __at 0xD0+3 RS0;
|
|
+ __sbit __at 0xD0+4 RS1;
|
|
+ __sbit __at 0xD0+5 F0;
|
|
+ __sbit __at 0xD0+6 AC;
|
|
+ __sbit __at 0xD0+7 CY;
|
|
+__sfr __at 0xD8 EICON; // Was WDCON in DS80C320 EICON; Bit Values differ from Reg320
|
|
/* EICON */
|
|
- sbit at 0xD8+3 INT6;
|
|
- sbit at 0xD8+4 RESI;
|
|
- sbit at 0xD8+5 ERESI;
|
|
- sbit at 0xD8+7 SMOD1;
|
|
-sfr at 0xE0 ACC;
|
|
-sfr at 0xE8 EIE; // EIE Bit Values differ from Reg320
|
|
+ __sbit __at 0xD8+3 INT6;
|
|
+ __sbit __at 0xD8+4 RESI;
|
|
+ __sbit __at 0xD8+5 ERESI;
|
|
+ __sbit __at 0xD8+7 SMOD1;
|
|
+__sfr __at 0xE0 ACC;
|
|
+__sfr __at 0xE8 EIE; // EIE Bit Values differ from Reg320
|
|
/* EIE */
|
|
- sbit at 0xE8+0 EIUSB;
|
|
- sbit at 0xE8+1 EI2C;
|
|
- sbit at 0xE8+2 EIEX4;
|
|
- sbit at 0xE8+3 EIEX5;
|
|
- sbit at 0xE8+4 EIEX6;
|
|
-sfr at 0xF0 B;
|
|
-sfr at 0xF8 EIP; // EIP Bit Values differ from Reg320
|
|
+ __sbit __at 0xE8+0 EIUSB;
|
|
+ __sbit __at 0xE8+1 EI2C;
|
|
+ __sbit __at 0xE8+2 EIEX4;
|
|
+ __sbit __at 0xE8+3 EIEX5;
|
|
+ __sbit __at 0xE8+4 EIEX6;
|
|
+__sfr __at 0xF0 B;
|
|
+__sfr __at 0xF8 EIP; // EIP Bit Values differ from Reg320
|
|
/* EIP */
|
|
- sbit at 0xF8+0 PUSB;
|
|
- sbit at 0xF8+1 PI2C;
|
|
- sbit at 0xF8+2 EIPX4;
|
|
- sbit at 0xF8+3 EIPX5;
|
|
- sbit at 0xF8+4 EIPX6;
|
|
+ __sbit __at 0xF8+0 PUSB;
|
|
+ __sbit __at 0xF8+1 PI2C;
|
|
+ __sbit __at 0xF8+2 EIPX4;
|
|
+ __sbit __at 0xF8+3 EIPX5;
|
|
+ __sbit __at 0xF8+4 EIPX6;
|
|
|
|
/*-----------------------------------------------------------------------------
|
|
Bit Masks
|
|
@@ -684,7 +684,7 @@
|
|
#define EP4FIFOEMPTY bmBIT5
|
|
|
|
/*
|
|
- * Chip Revision Control Bits (REVCTL) - used to ebable/disable revision specific features
|
|
+ * Chip Revision Control Bits (REVCTL) - used to enable/disable revision specific features
|
|
*/
|
|
#define bmNOAUTOARM bmBIT1 // these don't match the docs
|
|
#define bmSKIPCOMMIT bmBIT0 // these don't match the docs
|