AT90USB USB register definitions. More...
Go to the source code of this file.
Defines | |
AT90USB USB hardware control register | |
| #define | AT90USB_UHWCON_UVREGE (1 << 0) |
| USB pad regulator enable. | |
| #define | AT90USB_UHWCON_UVCONE (1 << 4) |
| UVCON pin enable. | |
| #define | AT90USB_UHWCON_UIDE (1 << 6) |
| UID pin enable. | |
| #define | AT90USB_UHWCON_UIMOD (1 << 7) |
| USB mode. | |
AT90USB USB control register | |
| #define | AT90USB_USBCON_VBUSTE (1 << 0) |
| VBUS transition interrupt enable. | |
| #define | AT90USB_USBCON_IDTE (1 << 1) |
| ID transition interrupt enable. | |
| #define | AT90USB_USBCON_OTGPADE (1 << 4) |
| OTG pad enable. | |
| #define | AT90USB_USBCON_FRZCLK (1 << 5) |
| Freeze USB clock. | |
| #define | AT90USB_USBCON_HOST (1 << 6) |
| HOST enable. | |
| #define | AT90USB_USBCON_USBE (1 << 7) |
| USB macro enable. | |
AT90USB USB status register | |
| #define | AT90USB_USBSTA_VBUS (1 << 0) |
| VBus flag. | |
| #define | AT90USB_USBSTA_ID (1 << 1) |
| IUD pin flag. | |
| #define | AT90USB_USBSTA_SPEED (1 << 3) |
| Speed status flag. | |
AT90USB USB interrupt register | |
| #define | AT90USB_USBINT_VBUSTI (1 << 0) |
| IVBUS transition interrupt flag. | |
| #define | AT90USB_USBINT_IDTI (1 << 1) |
| D transition interrupt flag. | |
AT90USB USB OTG control register | |
| #define | AT90USB_USBOTG_VBUSRQC (1 << 0) |
| VBUS request clear. | |
| #define | AT90USB_USBOTG_VBUSREQ (1 << 1) |
| VBUS request. | |
| #define | AT90USB_USBOTG_VBUSHWC (1 << 2) |
| VBus hardware control. | |
| #define | AT90USB_USBOTG_SRPSEL (1 << 3) |
| SRP selection. | |
| #define | AT90USB_USBOTG_SRPREQ (1 << 4) |
| SRP request. | |
| #define | AT90USB_USBOTG_HNPREQ (1 << 5) |
| HNP request. | |
AT90USB USB OTG timer control register | |
| #define | AT90USB_OTGTCON_VALUE (1 << 0) |
| Value of the timer. | |
| #define | AT90USB_OTGTCON_PAGE (1 << 1) |
| Timer page access. | |
AT90USB USB OTG interrupt enable register | |
| #define | AT90USB_OTGIEN_SRPE (1 << 0) |
| SRP interrupt enable. | |
| #define | AT90USB_OTGIEN_VBERRE (1 << 1) |
| VBus error interrupt enable. | |
| #define | AT90USB_OTGIEN_BCERRE (1 << 2) |
| B-Connection error interrupt enable. | |
| #define | AT90USB_OTGIEN_ROLEEXE (1 << 3) |
| Role exchange interrupt enable. | |
| #define | AT90USB_OTGIEN_HNPERRE (1 << 4) |
| HNP error interrupt enable. | |
| #define | AT90USB_OTGIEN_STOE (1 << 5) |
| Suspend time out error interrupt enable. | |
AT90USB USB OTG interrupt register | |
| #define | AT90USB_OTGINT_SRPI (1 << 0) |
| SRP interrupt flag. | |
| #define | AT90USB_OTGINT_VBERRI (1 << 1) |
| VBus error interrupt flag. | |
| #define | AT90USB_OTGINT_BCERRI (1 << 2) |
| B-Connection error interrupt flag. | |
| #define | AT90USB_OTGINT_ROLEEXI (1 << 3) |
| Role exchange interrupt flag. | |
| #define | AT90USB_OTGINT_HNPERRI (1 << 4) |
| HNP error interrupt flag. | |
| #define | AT90USB_OTGINT_STOI (1 << 5) |
| Suspend time out error interrupt flag. | |
AT90USB USB device control register | |
| #define | AT90USB_UDCON_DETACH (1 << 0) |
| Detatch the device. | |
| #define | AT90USB_UDCON_RMWKUP (1 << 1) |
| Remote wake up. | |
| #define | AT90USB_UDCON_LSM (1 << 2) |
| USB device low-speed mode selection. | |
AT90USB USB device interrupt register | |
| #define | AT90USB_UDINT_SUSPI (1 << 0) |
| Suspend interrupt flag. | |
| #define | AT90USB_UDINT_SOFI (1 << 2) |
| Start of frame interrupt flag. | |
| #define | AT90USB_UDINT_EORSTI (1 << 3) |
| End of reset interrupt flag. | |
| #define | AT90USB_UDINT_WAKEUPI (1 << 4) |
| Wake-up CPU interrupt flag. | |
| #define | AT90USB_UDINT_EORSMI (1 << 5) |
| End of resume interrupt flag. | |
| #define | AT90USB_UDINT_UPRSMI (1 << 6) |
| Upstream resume interrupt flag. | |
AT90USB USB device interrupt enable register | |
| #define | AT90USB_UDIEN_SUSPE (1 << 0) |
| Suspend interrupt enable. | |
| #define | AT90USB_UDIEN_SOFE (1 << 2) |
| Start of frame interrupt enable. | |
| #define | AT90USB_UDIEN_EORSTE (1 << 3) |
| End of reset interrupt enable. | |
| #define | AT90USB_UDIEN_WAKEUPE (1 << 4) |
| Wake-up CPU interrupt enable. | |
| #define | AT90USB_UDIEN_EORSME (1 << 5) |
| End of resume interrupt enable. | |
| #define | AT90USB_UDIEN_UPRSME (1 << 6) |
| Upstream resume interrupt enable. | |
AT90USB USB address register | |
| #define | AT90USB_UDADDR_UADD (1 << 0) |
| USB address bit field. | |
| #define | AT90USB_UDADDR_UADD_MASK ((1 << 8) - 1) |
| USB address bit mask. | |
| #define | AT90USB_UDADDR_ADDEN (1 << 7) |
| Address enable. | |
AT90USB USB frame number upper register | |
| #define | AT90USB_UDFNUMH_FNUM (1 << 0) |
| Frame number upper value. | |
AT90USB USB frame number lower register | |
| #define | AT90USB_UDFNUML_FNUM (1 << 0) |
| Frame number lower value. | |
AT90USB USB frame number register | |
| #define | AT90USB_UDMFN_FNCERR (1 << 4) |
| Frame number CRC error flag. | |
AT90USB USB endpoint number register | |
| #define | AT90USB_UENUM_EPNUM(x) ((x) << 0) |
| Endpoint number. | |
AT90USB USB endpoint FIFO reset register | |
| #define | AT90USB_UERST_EPRST(x) (1 << (x)) |
| Endpoint x reset. | |
AT90USB USB endpoint X control register | |
| #define | AT90USB_UECONX_EPEN (1 << 0) |
| Endpoint enable. | |
| #define | AT90USB_UECONX_RSTDT (1 << 3) |
| Reset data toggle. | |
| #define | AT90USB_UECONX_STALLRQC (1 << 4) |
| STALL request disable. | |
| #define | AT90USB_UECONX_STALLRQ (1 << 5) |
| STALL request enable. | |
AT90USB USB endpoint X config 0 register | |
| #define | AT90USB_UECFG0X_EPDIR (1 << 0) |
| Endpoint direction. | |
| #define | AT90USB_UECFG0X_EPDIR_IN (1 << 0) |
| IN endpoint. | |
| #define | AT90USB_UECFG0X_EPDIR_OUT (0 << 0) |
| OUT endpoint. | |
| #define | AT90USB_UECFG0X_EPTYPE(x) ((x) << 6) |
| Endpoint type. | |
| #define | AT90USB_UECFG0X_EPTYPE_CONTROL (0 << 6) |
| Control endpoint. | |
| #define | AT90USB_UECFG0X_EPTYPE_ISO (1 << 6) |
| Isochronous endpoint. | |
| #define | AT90USB_UECFG0X_EPTYPE_BULK (2 << 6) |
| Bulk endpoint. | |
| #define | AT90USB_UECFG0X_EPTYPE_INT (3 << 6) |
| Interrupt endpoint. | |
AT90USB USB endpoint X config 1 register | |
| #define | AT90USB_UECFG1X_ALLOC (1 << 1) |
| Endpoint allocate. | |
| #define | AT90USB_UECFG1X_EPBK(x) ((x) << 2) |
| Endpoint bank. | |
| #define | AT90USB_UECFG1X_GET_EPBK(x) ((x & 3) >> 2) |
| # banks | |
| #define | AT90USB_UECFG1X_EPSIZE(x) ((x) << 4) |
| Endpoint size. | |
| #define | AT90USB_UECFG1X_EPSIZE_8 (0 << 4) |
| 8 byte endpoint size | |
| #define | AT90USB_UECFG1X_EPSIZE_16 (1 << 4) |
| 16 byte endpoint size | |
| #define | AT90USB_UECFG1X_EPSIZE_32 (2 << 4) |
| 32 byte endpoint size | |
| #define | AT90USB_UECFG1X_EPSIZE_64 (3 << 4) |
| 64 byte endpoint size | |
| #define | AT90USB_UECFG1X_EPSIZE_128 (4 << 4) |
| 128 byte endpoint size | |
| #define | AT90USB_UECFG1X_EPSIZE_256 (5 << 4) |
| 256 byte endpoint size | |
AT90USB USB endpoint X status 0 register | |
| #define | AT90USB_UESTA0X_NBUSYBK (1 << 0) |
| Busy bank flag. | |
| #define | AT90USB_UESTA0X_GET_NBUSYBK(x) ((x) & 3) |
| # busy banks | |
| #define | AT90USB_UESTA0X_DTSEQ (1 << 2) |
| Data toggle sequencing flag. | |
| #define | AT90USB_UESTA0X_UDERFI (1 << 5) |
| Underflow error interrupt. | |
| #define | AT90USB_UESTA0X_OVERFI (1 << 6) |
| Overflow error interrupt. | |
| #define | AT90USB_UESTA0X_CFGOK (1 << 7) |
| Configuration status. | |
AT90USB USB endpoint X status 1 register | |
| #define | AT90USB_UESTA1X_CURRBK (1 << 0) |
| Current bank flag. | |
| #define | AT90USB_UESTA1X_CTRLDIR (1 << 2) |
| Control direction flag. | |
AT90USB USB endpoint X interrupt register | |
| #define | AT90USB_UEINTX_TXINI (1 << 0) |
| Transmitter ready interrupt flag. | |
| #define | AT90USB_UEINTX_STALLEDI (1 << 1) |
| STALL interrupt flag. | |
| #define | AT90USB_UEINTX_RXOUTI (1 << 2) |
| Received OUT data interrupt flag. | |
| #define | AT90USB_UEINTX_KILLBK (1 << 2) |
| Kill last written bank. | |
| #define | AT90USB_UEINTX_RXSTPI (1 << 3) |
| Received SETUP interrupt flag. | |
| #define | AT90USB_UEINTX_NAKOUTI (1 << 4) |
| NAK OUT received interrupt flag. | |
| #define | AT90USB_UEINTX_RWAL (1 << 5) |
| Read/write allowed flag. | |
| #define | AT90USB_UEINTX_NAKINI (1 << 6) |
| NAK IN received interrupt flag. | |
| #define | AT90USB_UEINTX_FIFOCON (1 << 7) |
| FIFO control. | |
AT90USB USB endpoint X interrupt enable register | |
| #define | AT90USB_UEIENX_TXINE (1 << 0) |
| Transmitter ready interrupt enable. | |
| #define | AT90USB_UEIENX_STALLEDE (1 << 1) |
| STALL interrupt enable. | |
| #define | AT90USB_UEIENX_RXOUTE (1 << 2) |
| Received OUT data interrupt enable. | |
| #define | AT90USB_UEIENX_RXSTPE (1 << 3) |
| Received SETUP interrupt enable. | |
| #define | AT90USB_UEIENX_NAKOUTE (1 << 4) |
| NAK OUT received interrupt enable. | |
| #define | AT90USB_UEIENX_NAKINE (1 << 6) |
| NAK IN received interrupt enable. | |
| #define | AT90USB_UEIENX_FLERRE (1 << 7) |
| Flow error interrupt enable. | |
AT90USB USB endpoint X data register | |
| #define | AT90USB_UEDATX_DAT (1 << 0) |
| Data. | |
AT90USB USB endpoint X byte count high register | |
| #define | AT90USB_UEBCHX_BYCT (1 << 0) |
| Byte count MSB. | |
AT90USB USB endpoint X byte count low register | |
| #define | AT90USB_UEBCLX_BYCT (1 << 0) |
| Byte count LSB. | |
AT90USB USB endpoint interrupts register | |
| #define | AT90USB_UEINT_EP(x) (1 << (x)) |
| Endpoint interrupts. | |
AT90USB USB host control register | |
| #define | AT90USB_UHCON_SOFEN (1 << 0) |
| Start of frame generation enable. | |
| #define | AT90USB_UHCON_RESET (1 << 1) |
| Send USB reset. | |
| #define | AT90USB_UHCON_RESUME (1 << 2) |
| Send USB resume. | |
AT90USB USB host interrupt register | |
| #define | AT90USB_UHINT_DCONNI (1 << 0) |
| Device connection interrupt. | |
| #define | AT90USB_UHINT_DDISCI (1 << 1) |
| Device disconnection interrupt. | |
| #define | AT90USB_UHINT_RSTI (1 << 2) |
| USB reset sent interrupt. | |
| #define | AT90USB_UHINT_RSMEDI (1 << 3) |
| Downstream resume sent interrupt. | |
| #define | AT90USB_UHINT_RXRSMI (1 << 4) |
| Upstream resume received interrupt. | |
| #define | AT90USB_UHINT_HSOFI (1 << 5) |
| Host start of frame interrupt. | |
| #define | AT90USB_UHINT_HWUPI (1 << 6) |
| Host wake-up interrupt. | |
AT90USB USB host interrupt enable register | |
| #define | AT90USB_UHIEN_DCONNE (1 << 0) |
| Device connection interrupt enable. | |
| #define | AT90USB_UHIEN_DDISCE (1 << 1) |
| Device disconnection interrupt enable. | |
| #define | AT90USB_UHIEN_RSTE (1 << 2) |
| USB reset sent interrupt enable. | |
| #define | AT90USB_UHIEN_RSMEDE (1 << 3) |
| Downstream resume sent interrupt enable. | |
| #define | AT90USB_UHIEN_RXRSME (1 << 4) |
| Upstream resume received interrupt enable. | |
| #define | AT90USB_UHIEN_HSOFE (1 << 5) |
| Host start of frame interrupt enable. | |
| #define | AT90USB_UHIEN_HWUPE (1 << 6) |
| Host wake-up interrupt enable. | |
AT90USB USB host address register | |
| #define | AT90USB_UHADDR_HADDR (1 << 0) |
| USB host address. | |
AT90USB USB host frame number high register | |
| #define | AT90USB_UHFNUMH_FNUM (1 << 0) |
| MSB frame number. | |
AT90USB USB host frame number low register | |
| #define | AT90USB_UHFNUML_FNUM (1 << 0) |
| LSB frame number. | |
AT90USB USB host frame length register | |
| #define | AT90USB_UHFLEN_FLEN (1 << 0) |
| Frame length. | |
AT90USB USB pipe number register | |
| #define | AT90USB_UPNUM_PNUM(x) ((x) << 0) |
| Pipe number. | |
AT90USB USB pipe reset register | |
| #define | AT90USB_UPRST_PRST(x) (1 << (x)) |
| Reset pipe at bit posistion N. | |
AT90USB USB pipe control register | |
| #define | AT90USB_UPCONX_PEN (1 << 0) |
| Pipe enable. | |
| #define | AT90USB_UPCONX_RSTDT (1 << 3) |
| Reset data toggle. | |
| #define | AT90USB_UPCONX_INMODE (1 << 5) |
| IN request mode. | |
| #define | AT90USB_UPCONX_PFREEZE (1 << 6) |
| Pipe freeze. | |
AT90USB USB pipe config 0 register | |
| #define | AT90USB_UPCFG0X_PEPNUM(x) ((x) << 0) |
| Pipe endpoint number. | |
| #define | AT90USB_UPCFG0X_PTOKEN(x) ((x) << 4) |
| Pipe token. | |
| #define | AT90USB_UPCFG0X_PTOKEN_SETUP (0 << 4) |
| Setup pipe token. | |
| #define | AT90USB_UPCFG0X_PTOKEN_IN (1 << 4) |
| In pipe token. | |
| #define | AT90USB_UPCFG0X_PTOKEN_OUT (2 << 4) |
| Out pipe token. | |
| #define | AT90USB_UPCFG0X_PTYPE(x) ((x) << 6) |
| Pipe type. | |
| #define | AT90USB_UPCFG0X_PTYPE_CONTROL (0 << 6) |
| Control pipe. | |
| #define | AT90USB_UPCFG0X_PTYPE_ISO (1 << 6) |
| Isochronous pipe. | |
| #define | AT90USB_UPCFG0X_PTYPE_BULK (2 << 6) |
| Bulk pipe. | |
| #define | AT90USB_UPCFG0X_PTYPE_INT (3 << 6) |
| Interrupt pipe. | |
AT90USB USB pipe config 1 register | |
| #define | AT90USB_UPCFG1X_ALLOC (1 << 1) |
| Configure pipe memory. | |
| #define | AT90USB_UPCFG1X_PBK(x) ((x) << 2) |
| Pipe bank. | |
| #define | AT90USB_UPCFG1X_PSIZE ((x) << 4) |
| Pipe size. | |
| #define | AT90USB_UPCFG1X_PSIZE_8 (0 << 4) |
| 8 byte pipe size | |
| #define | AT90USB_UPCFG1X_PSIZE_16 (1 << 4) |
| 16 byte pipe size | |
| #define | AT90USB_UPCFG1X_PSIZE_32 (2 << 4) |
| 32 byte pipe size | |
| #define | AT90USB_UPCFG1X_PSIZE_64 (3 << 4) |
| 64 byte pipe size | |
| #define | AT90USB_UPCFG1X_PSIZE_128 (4 << 4) |
| 128 byte pipe size | |
| #define | AT90USB_UPCFG1X_PSIZE_256 (5 << 4) |
| 256 byte pipe size | |
AT90USB USB pipe config 2 register | |
| #define | AT90USB_UPCFG2X_INTFRQ(x) ((x) << 0) |
| Interrupt pipe request frequency. | |
AT90USB USB pipe status register | |
| #define | AT90USB_UPSTAX_NBUSYBK (1 << 0) |
| Busy bank flag. | |
| #define | AT90USB_UPSTAX_GET_NBUSYBK(x) ((x) & 3) |
| # busy banks | |
| #define | AT90USB_UPSTAX_DTSEQ (1 << 2) |
| Toggle sequencing flag. | |
| #define | AT90USB_UPSTAX_UNDERFI (1 << 5) |
| Underflow flag. | |
| #define | AT90USB_UPSTAX_OVERFI (1 << 6) |
| Overflow flag. | |
| #define | AT90USB_UPSTAX_CFGOK (1 << 7) |
| Configure pipe memory ok. | |
AT90USB USB pipe IN reuqest number before freeze register | |
| #define | AT90USB_UPINRQX_INRQ(x) ((x) << 0) |
| IN request number before freeze. | |
AT90USB USB pipe error register | |
| #define | AT90USB_UPERRX_DATATGL (1 << 0) |
| Bad data toggle error. | |
| #define | AT90USB_UPERRX_DATAPID (1 << 1) |
| Data PID error. | |
| #define | AT90USB_UPERRX_PID (1 << 3) |
| PID error. | |
| #define | AT90USB_UPERRX_TIMEOUT (1 << 4) |
| Time out error. | |
| #define | AT90USB_UPERRX_CRC16 (1 << 5) |
| CRC16 error. | |
| #define | AT90USB_UPERRX_COUNTER (1 << 6) |
| Error counter. | |
| #define | AT90USB_UPERRX_GET_COUNTER(x) (((x) & 0xc0) >> 6) |
| # errors | |
AT90USB USB pipe interrupt register | |
| #define | AT90USB_UPINTX_RXINI (1 << 0) |
| IN data received. | |
| #define | AT90USB_UPINTX_RXSTALLI (1 << 1) |
| STALL received / ISO CRC error. | |
| #define | AT90USB_UPINTX_TXOUTI (1 << 2) |
| OUT bank ready. | |
| #define | AT90USB_UPINTX_TXSTPI (1 << 3) |
| SETUP bank ready. | |
| #define | AT90USB_UPINTX_PERRI (1 << 4) |
| Pipe error. | |
| #define | AT90USB_UPINTX_RWAL (1 << 5) |
| Read/write allowed. | |
| #define | AT90USB_UPINTX_NAKEDI (1 << 6) |
| NAK handshake received. | |
| #define | AT90USB_UPINTX_FIFOCON (1 << 7) |
| FIFO control. | |
AT90USB USB pipe interrupt enable register | |
| #define | AT90USB_UPINTX_RXINE (1 << 0) |
| IN data received enable. | |
| #define | AT90USB_UPINTX_RXSTALLE (1 << 1) |
| STALL received enable. | |
| #define | AT90USB_UPINTX_TXOUTE (1 << 2) |
| OUT bank ready enable. | |
| #define | AT90USB_UPINTX_TXSTPE (1 << 3) |
| SETUP bank ready enable. | |
| #define | AT90USB_UPINTX_PERRE (1 << 4) |
| Pipe error enable. | |
| #define | AT90USB_UPINTX_NAKEDE (1 << 6) |
| NAK handshake received enable. | |
| #define | AT90USB_UPINTX_FLERRE (1 << 7) |
| Flow error enable. | |
AT90USB USB pipe data bits register | |
| #define | AT90USB_UPDATX_PDAT (1 << 0) |
| Pipe data bits. | |
AT90USB USB pipe byte count high register | |
| #define | AT90USB_UPBCHX_PBYCT (1 << 0) |
| Byte count MSB bits. | |
AT90USB USB pipe byte count low register | |
| #define | AT90USB_UPBCLX_PBYCT (1 << 0) |
| Byte count LSB bits. | |
AT90USB USB pipe interrupts register | |
| #define | AT90USB_UPINT_PINT(x) (1 << (x)) |
| Pipe interrupts. | |
AT90USB USB register definitions.
Copyright (C) 2009 Atmel Corporation. All rights reserved.
Definition in file at90usb_regs.h.
| #define AT90USB_OTGIEN_BCERRE (1 << 2) |
B-Connection error interrupt enable.
Definition at line 96 of file at90usb_regs.h.
| #define AT90USB_OTGIEN_HNPERRE (1 << 4) |
HNP error interrupt enable.
Definition at line 98 of file at90usb_regs.h.
| #define AT90USB_OTGIEN_ROLEEXE (1 << 3) |
Role exchange interrupt enable.
Definition at line 97 of file at90usb_regs.h.
| #define AT90USB_OTGIEN_SRPE (1 << 0) |
SRP interrupt enable.
Definition at line 94 of file at90usb_regs.h.
| #define AT90USB_OTGIEN_STOE (1 << 5) |
Suspend time out error interrupt enable.
Definition at line 99 of file at90usb_regs.h.
| #define AT90USB_OTGIEN_VBERRE (1 << 1) |
VBus error interrupt enable.
Definition at line 95 of file at90usb_regs.h.
| #define AT90USB_OTGINT_BCERRI (1 << 2) |
B-Connection error interrupt flag.
Definition at line 106 of file at90usb_regs.h.
| #define AT90USB_OTGINT_HNPERRI (1 << 4) |
HNP error interrupt flag.
Definition at line 108 of file at90usb_regs.h.
| #define AT90USB_OTGINT_ROLEEXI (1 << 3) |
Role exchange interrupt flag.
Definition at line 107 of file at90usb_regs.h.
| #define AT90USB_OTGINT_SRPI (1 << 0) |
SRP interrupt flag.
Definition at line 104 of file at90usb_regs.h.
| #define AT90USB_OTGINT_STOI (1 << 5) |
Suspend time out error interrupt flag.
Definition at line 109 of file at90usb_regs.h.
| #define AT90USB_OTGINT_VBERRI (1 << 1) |
VBus error interrupt flag.
Definition at line 105 of file at90usb_regs.h.
| #define AT90USB_OTGTCON_PAGE (1 << 1) |
Timer page access.
Definition at line 89 of file at90usb_regs.h.
| #define AT90USB_OTGTCON_VALUE (1 << 0) |
Value of the timer.
Definition at line 88 of file at90usb_regs.h.
| #define AT90USB_UDADDR_ADDEN (1 << 7) |
Address enable.
Definition at line 143 of file at90usb_regs.h.
Referenced by at90usb_udc_ep0_worker().
| #define AT90USB_UDADDR_UADD (1 << 0) |
USB address bit field.
Definition at line 141 of file at90usb_regs.h.
| #define AT90USB_UDADDR_UADD_MASK ((1 << 8) - 1) |
USB address bit mask.
Definition at line 142 of file at90usb_regs.h.
Referenced by at90usb_udc_ep0_worker().
| #define AT90USB_UDCON_DETACH (1 << 0) |
Detatch the device.
Definition at line 114 of file at90usb_regs.h.
Referenced by at90usb_udc_detach(), and at90usb_udc_maybe_attach().
| #define AT90USB_UDCON_LSM (1 << 2) |
USB device low-speed mode selection.
Definition at line 116 of file at90usb_regs.h.
Referenced by at90usb_udc_init().
| #define AT90USB_UDCON_RMWKUP (1 << 1) |
Remote wake up.
Definition at line 115 of file at90usb_regs.h.
| #define AT90USB_UDFNUMH_FNUM (1 << 0) |
Frame number upper value.
Definition at line 148 of file at90usb_regs.h.
| #define AT90USB_UDFNUML_FNUM (1 << 0) |
Frame number lower value.
Definition at line 153 of file at90usb_regs.h.
| #define AT90USB_UDIEN_EORSME (1 << 5) |
End of resume interrupt enable.
Definition at line 135 of file at90usb_regs.h.
| #define AT90USB_UDIEN_EORSTE (1 << 3) |
End of reset interrupt enable.
Definition at line 133 of file at90usb_regs.h.
Referenced by at90usb_udc_device_worker(), and at90usb_udc_maybe_attach().
| #define AT90USB_UDIEN_SOFE (1 << 2) |
Start of frame interrupt enable.
Definition at line 132 of file at90usb_regs.h.
| #define AT90USB_UDIEN_SUSPE (1 << 0) |
Suspend interrupt enable.
Definition at line 131 of file at90usb_regs.h.
| #define AT90USB_UDIEN_UPRSME (1 << 6) |
Upstream resume interrupt enable.
Definition at line 136 of file at90usb_regs.h.
| #define AT90USB_UDIEN_WAKEUPE (1 << 4) |
Wake-up CPU interrupt enable.
Definition at line 134 of file at90usb_regs.h.
| #define AT90USB_UDINT_EORSMI (1 << 5) |
End of resume interrupt flag.
Definition at line 125 of file at90usb_regs.h.
| #define AT90USB_UDINT_EORSTI (1 << 3) |
End of reset interrupt flag.
Definition at line 123 of file at90usb_regs.h.
Referenced by at90usb_udc_device_worker().
| #define AT90USB_UDINT_SOFI (1 << 2) |
Start of frame interrupt flag.
Definition at line 122 of file at90usb_regs.h.
| #define AT90USB_UDINT_SUSPI (1 << 0) |
Suspend interrupt flag.
Definition at line 121 of file at90usb_regs.h.
| #define AT90USB_UDINT_UPRSMI (1 << 6) |
Upstream resume interrupt flag.
Definition at line 126 of file at90usb_regs.h.
| #define AT90USB_UDINT_WAKEUPI (1 << 4) |
Wake-up CPU interrupt flag.
Definition at line 124 of file at90usb_regs.h.
| #define AT90USB_UDMFN_FNCERR (1 << 4) |
Frame number CRC error flag.
Definition at line 158 of file at90usb_regs.h.
| #define AT90USB_UEBCHX_BYCT (1 << 0) |
Byte count MSB.
Definition at line 256 of file at90usb_regs.h.
| #define AT90USB_UEBCLX_BYCT (1 << 0) |
Byte count LSB.
Definition at line 261 of file at90usb_regs.h.
| #define AT90USB_UECFG0X_EPDIR (1 << 0) |
Endpoint direction.
Definition at line 185 of file at90usb_regs.h.
| #define AT90USB_UECFG0X_EPDIR_IN (1 << 0) |
IN endpoint.
Definition at line 186 of file at90usb_regs.h.
Referenced by at90usb_udc_kill_all_banks().
| #define AT90USB_UECFG0X_EPDIR_OUT (0 << 0) |
OUT endpoint.
Definition at line 187 of file at90usb_regs.h.
| #define AT90USB_UECFG0X_EPTYPE | ( | x | ) | ((x) << 6) |
Endpoint type.
Definition at line 188 of file at90usb_regs.h.
Referenced by at90usb_udc_configure_ep().
| #define AT90USB_UECFG0X_EPTYPE_BULK (2 << 6) |
Bulk endpoint.
Definition at line 191 of file at90usb_regs.h.
| #define AT90USB_UECFG0X_EPTYPE_CONTROL (0 << 6) |
Control endpoint.
Definition at line 189 of file at90usb_regs.h.
| #define AT90USB_UECFG0X_EPTYPE_INT (3 << 6) |
Interrupt endpoint.
Definition at line 192 of file at90usb_regs.h.
| #define AT90USB_UECFG0X_EPTYPE_ISO (1 << 6) |
Isochronous endpoint.
Definition at line 190 of file at90usb_regs.h.
| #define AT90USB_UECFG1X_ALLOC (1 << 1) |
Endpoint allocate.
Definition at line 197 of file at90usb_regs.h.
Referenced by at90usb_udc_configure_ep().
| #define AT90USB_UECFG1X_EPBK | ( | x | ) | ((x) << 2) |
Endpoint bank.
Definition at line 198 of file at90usb_regs.h.
Referenced by at90usb_udc_configure_ep().
| #define AT90USB_UECFG1X_EPSIZE | ( | x | ) | ((x) << 4) |
Endpoint size.
Definition at line 200 of file at90usb_regs.h.
| #define AT90USB_UECFG1X_EPSIZE_128 (4 << 4) |
128 byte endpoint size
Definition at line 205 of file at90usb_regs.h.
Referenced by at90usb_udc_configure_ep().
| #define AT90USB_UECFG1X_EPSIZE_16 (1 << 4) |
16 byte endpoint size
Definition at line 202 of file at90usb_regs.h.
Referenced by at90usb_udc_configure_ep().
| #define AT90USB_UECFG1X_EPSIZE_256 (5 << 4) |
256 byte endpoint size
Definition at line 206 of file at90usb_regs.h.
Referenced by at90usb_udc_configure_ep().
| #define AT90USB_UECFG1X_EPSIZE_32 (2 << 4) |
32 byte endpoint size
Definition at line 203 of file at90usb_regs.h.
Referenced by at90usb_udc_configure_ep().
| #define AT90USB_UECFG1X_EPSIZE_64 (3 << 4) |
64 byte endpoint size
Definition at line 204 of file at90usb_regs.h.
Referenced by at90usb_udc_configure_ep().
| #define AT90USB_UECFG1X_EPSIZE_8 (0 << 4) |
8 byte endpoint size
Definition at line 201 of file at90usb_regs.h.
Referenced by at90usb_udc_configure_ep().
| #define AT90USB_UECFG1X_GET_EPBK | ( | x | ) | ((x & 3) >> 2) |
# banks
Definition at line 199 of file at90usb_regs.h.
| #define AT90USB_UECONX_EPEN (1 << 0) |
Endpoint enable.
Definition at line 177 of file at90usb_regs.h.
Referenced by at90usb_udc_configure_ep().
| #define AT90USB_UECONX_RSTDT (1 << 3) |
Reset data toggle.
Definition at line 178 of file at90usb_regs.h.
| #define AT90USB_UECONX_STALLRQ (1 << 5) |
STALL request enable.
Definition at line 180 of file at90usb_regs.h.
| #define AT90USB_UECONX_STALLRQC (1 << 4) |
STALL request disable.
Definition at line 179 of file at90usb_regs.h.
| #define AT90USB_UEDATX_DAT (1 << 0) |
Data.
Definition at line 251 of file at90usb_regs.h.
| #define AT90USB_UEIENX_FLERRE (1 << 7) |
Flow error interrupt enable.
Definition at line 246 of file at90usb_regs.h.
| #define AT90USB_UEIENX_NAKINE (1 << 6) |
NAK IN received interrupt enable.
Definition at line 245 of file at90usb_regs.h.
| #define AT90USB_UEIENX_NAKOUTE (1 << 4) |
NAK OUT received interrupt enable.
Definition at line 244 of file at90usb_regs.h.
| #define AT90USB_UEIENX_RXOUTE (1 << 2) |
Received OUT data interrupt enable.
Definition at line 242 of file at90usb_regs.h.
Referenced by at90usb_udc_ep0_worker(), and at90usb_udc_submit_out_queue().
| #define AT90USB_UEIENX_RXSTPE (1 << 3) |
Received SETUP interrupt enable.
Definition at line 243 of file at90usb_regs.h.
Referenced by at90usb_udc_device_worker().
| #define AT90USB_UEIENX_STALLEDE (1 << 1) |
STALL interrupt enable.
Definition at line 241 of file at90usb_regs.h.
| #define AT90USB_UEIENX_TXINE (1 << 0) |
Transmitter ready interrupt enable.
Definition at line 240 of file at90usb_regs.h.
Referenced by at90usb_udc_ep0_worker().
| #define AT90USB_UEINT_EP | ( | x | ) | (1 << (x)) |
Endpoint interrupts.
Definition at line 266 of file at90usb_regs.h.
Referenced by at90usb_ep_interrupt().
| #define AT90USB_UEINTX_FIFOCON (1 << 7) |
FIFO control.
Definition at line 235 of file at90usb_regs.h.
Referenced by at90usb_udc_kill_first_out_bank(), at90usb_udc_submit_in_queue(), and at90usb_udc_submit_out_queue().
| #define AT90USB_UEINTX_KILLBK (1 << 2) |
Kill last written bank.
Definition at line 230 of file at90usb_regs.h.
Referenced by at90usb_udc_kill_last_in_bank().
| #define AT90USB_UEINTX_NAKINI (1 << 6) |
NAK IN received interrupt flag.
Definition at line 234 of file at90usb_regs.h.
| #define AT90USB_UEINTX_NAKOUTI (1 << 4) |
NAK OUT received interrupt flag.
Definition at line 232 of file at90usb_regs.h.
| #define AT90USB_UEINTX_RWAL (1 << 5) |
Read/write allowed flag.
Definition at line 233 of file at90usb_regs.h.
| #define AT90USB_UEINTX_RXOUTI (1 << 2) |
Received OUT data interrupt flag.
Definition at line 229 of file at90usb_regs.h.
Referenced by at90usb_udc_ep0_worker(), at90usb_udc_kill_first_out_bank(), and at90usb_udc_submit_out_queue().
| #define AT90USB_UEINTX_RXSTPI (1 << 3) |
Received SETUP interrupt flag.
Definition at line 231 of file at90usb_regs.h.
Referenced by at90usb_udc_ep0_worker().
| #define AT90USB_UEINTX_STALLEDI (1 << 1) |
STALL interrupt flag.
Definition at line 228 of file at90usb_regs.h.
| #define AT90USB_UEINTX_TXINI (1 << 0) |
Transmitter ready interrupt flag.
Definition at line 227 of file at90usb_regs.h.
Referenced by at90usb_udc_ep0_worker(), and at90usb_udc_submit_in_queue().
| #define AT90USB_UENUM_EPNUM | ( | x | ) | ((x) << 0) |
Endpoint number.
Definition at line 167 of file at90usb_regs.h.
| #define AT90USB_UERST_EPRST | ( | x | ) | (1 << (x)) |
Endpoint x reset.
Definition at line 172 of file at90usb_regs.h.
Referenced by at90usb_udc_configure_ep().
| #define AT90USB_UESTA0X_CFGOK (1 << 7) |
Configuration status.
Definition at line 216 of file at90usb_regs.h.
Referenced by at90usb_udc_configure_ep().
| #define AT90USB_UESTA0X_DTSEQ (1 << 2) |
Data toggle sequencing flag.
Definition at line 213 of file at90usb_regs.h.
| #define AT90USB_UESTA0X_GET_NBUSYBK | ( | x | ) | ((x) & 3) |
# busy banks
Definition at line 212 of file at90usb_regs.h.
Referenced by at90usb_udc_kill_all_banks().
| #define AT90USB_UESTA0X_NBUSYBK (1 << 0) |
Busy bank flag.
Definition at line 211 of file at90usb_regs.h.
| #define AT90USB_UESTA0X_OVERFI (1 << 6) |
Overflow error interrupt.
Definition at line 215 of file at90usb_regs.h.
| #define AT90USB_UESTA0X_UDERFI (1 << 5) |
Underflow error interrupt.
Definition at line 214 of file at90usb_regs.h.
| #define AT90USB_UESTA1X_CTRLDIR (1 << 2) |
Control direction flag.
Definition at line 222 of file at90usb_regs.h.
| #define AT90USB_UESTA1X_CURRBK (1 << 0) |
Current bank flag.
Definition at line 221 of file at90usb_regs.h.
| #define AT90USB_UHADDR_HADDR (1 << 0) |
USB host address.
Definition at line 304 of file at90usb_regs.h.
| #define AT90USB_UHCON_RESET (1 << 1) |
Send USB reset.
Definition at line 276 of file at90usb_regs.h.
| #define AT90USB_UHCON_RESUME (1 << 2) |
Send USB resume.
Definition at line 277 of file at90usb_regs.h.
| #define AT90USB_UHCON_SOFEN (1 << 0) |
Start of frame generation enable.
Definition at line 275 of file at90usb_regs.h.
| #define AT90USB_UHFLEN_FLEN (1 << 0) |
Frame length.
Definition at line 319 of file at90usb_regs.h.
| #define AT90USB_UHFNUMH_FNUM (1 << 0) |
MSB frame number.
Definition at line 309 of file at90usb_regs.h.
| #define AT90USB_UHFNUML_FNUM (1 << 0) |
LSB frame number.
Definition at line 314 of file at90usb_regs.h.
| #define AT90USB_UHIEN_DCONNE (1 << 0) |
Device connection interrupt enable.
Definition at line 293 of file at90usb_regs.h.
| #define AT90USB_UHIEN_DDISCE (1 << 1) |
Device disconnection interrupt enable.
Definition at line 294 of file at90usb_regs.h.
| #define AT90USB_UHIEN_HSOFE (1 << 5) |
Host start of frame interrupt enable.
Definition at line 298 of file at90usb_regs.h.
| #define AT90USB_UHIEN_HWUPE (1 << 6) |
Host wake-up interrupt enable.
Definition at line 299 of file at90usb_regs.h.
| #define AT90USB_UHIEN_RSMEDE (1 << 3) |
Downstream resume sent interrupt enable.
Definition at line 296 of file at90usb_regs.h.
| #define AT90USB_UHIEN_RSTE (1 << 2) |
USB reset sent interrupt enable.
Definition at line 295 of file at90usb_regs.h.
| #define AT90USB_UHIEN_RXRSME (1 << 4) |
Upstream resume received interrupt enable.
Definition at line 297 of file at90usb_regs.h.
| #define AT90USB_UHINT_DCONNI (1 << 0) |
Device connection interrupt.
Definition at line 282 of file at90usb_regs.h.
| #define AT90USB_UHINT_DDISCI (1 << 1) |
Device disconnection interrupt.
Definition at line 283 of file at90usb_regs.h.
| #define AT90USB_UHINT_HSOFI (1 << 5) |
Host start of frame interrupt.
Definition at line 287 of file at90usb_regs.h.
| #define AT90USB_UHINT_HWUPI (1 << 6) |
Host wake-up interrupt.
Definition at line 288 of file at90usb_regs.h.
| #define AT90USB_UHINT_RSMEDI (1 << 3) |
Downstream resume sent interrupt.
Definition at line 285 of file at90usb_regs.h.
| #define AT90USB_UHINT_RSTI (1 << 2) |
USB reset sent interrupt.
Definition at line 284 of file at90usb_regs.h.
| #define AT90USB_UHINT_RXRSMI (1 << 4) |
Upstream resume received interrupt.
Definition at line 286 of file at90usb_regs.h.
| #define AT90USB_UHWCON_UIDE (1 << 6) |
| #define AT90USB_UHWCON_UIMOD (1 << 7) |
| #define AT90USB_UHWCON_UVCONE (1 << 4) |
UVCON pin enable.
Definition at line 48 of file at90usb_regs.h.
| #define AT90USB_UHWCON_UVREGE (1 << 0) |
USB pad regulator enable.
Definition at line 47 of file at90usb_regs.h.
Referenced by at90usb_init(), and at90usb_udc_maybe_attach().
| #define AT90USB_UPBCHX_PBYCT (1 << 0) |
Byte count MSB bits.
Definition at line 432 of file at90usb_regs.h.
| #define AT90USB_UPBCLX_PBYCT (1 << 0) |
Byte count LSB bits.
Definition at line 437 of file at90usb_regs.h.
| #define AT90USB_UPCFG0X_PEPNUM | ( | x | ) | ((x) << 0) |
Pipe endpoint number.
Definition at line 346 of file at90usb_regs.h.
| #define AT90USB_UPCFG0X_PTOKEN | ( | x | ) | ((x) << 4) |
Pipe token.
Definition at line 347 of file at90usb_regs.h.
| #define AT90USB_UPCFG0X_PTOKEN_IN (1 << 4) |
In pipe token.
Definition at line 349 of file at90usb_regs.h.
| #define AT90USB_UPCFG0X_PTOKEN_OUT (2 << 4) |
Out pipe token.
Definition at line 350 of file at90usb_regs.h.
| #define AT90USB_UPCFG0X_PTOKEN_SETUP (0 << 4) |
Setup pipe token.
Definition at line 348 of file at90usb_regs.h.
| #define AT90USB_UPCFG0X_PTYPE | ( | x | ) | ((x) << 6) |
Pipe type.
Definition at line 351 of file at90usb_regs.h.
| #define AT90USB_UPCFG0X_PTYPE_BULK (2 << 6) |
Bulk pipe.
Definition at line 354 of file at90usb_regs.h.
| #define AT90USB_UPCFG0X_PTYPE_CONTROL (0 << 6) |
Control pipe.
Definition at line 352 of file at90usb_regs.h.
| #define AT90USB_UPCFG0X_PTYPE_INT (3 << 6) |
Interrupt pipe.
Definition at line 355 of file at90usb_regs.h.
| #define AT90USB_UPCFG0X_PTYPE_ISO (1 << 6) |
Isochronous pipe.
Definition at line 353 of file at90usb_regs.h.
| #define AT90USB_UPCFG1X_ALLOC (1 << 1) |
Configure pipe memory.
Definition at line 360 of file at90usb_regs.h.
| #define AT90USB_UPCFG1X_PBK | ( | x | ) | ((x) << 2) |
Pipe bank.
Definition at line 361 of file at90usb_regs.h.
| #define AT90USB_UPCFG1X_PSIZE ((x) << 4) |
Pipe size.
Definition at line 362 of file at90usb_regs.h.
| #define AT90USB_UPCFG1X_PSIZE_128 (4 << 4) |
128 byte pipe size
Definition at line 367 of file at90usb_regs.h.
| #define AT90USB_UPCFG1X_PSIZE_16 (1 << 4) |
16 byte pipe size
Definition at line 364 of file at90usb_regs.h.
| #define AT90USB_UPCFG1X_PSIZE_256 (5 << 4) |
256 byte pipe size
Definition at line 368 of file at90usb_regs.h.
| #define AT90USB_UPCFG1X_PSIZE_32 (2 << 4) |
32 byte pipe size
Definition at line 365 of file at90usb_regs.h.
| #define AT90USB_UPCFG1X_PSIZE_64 (3 << 4) |
64 byte pipe size
Definition at line 366 of file at90usb_regs.h.
| #define AT90USB_UPCFG1X_PSIZE_8 (0 << 4) |
8 byte pipe size
Definition at line 363 of file at90usb_regs.h.
| #define AT90USB_UPCFG2X_INTFRQ | ( | x | ) | ((x) << 0) |
Interrupt pipe request frequency.
Definition at line 373 of file at90usb_regs.h.
| #define AT90USB_UPCONX_INMODE (1 << 5) |
IN request mode.
Definition at line 340 of file at90usb_regs.h.
| #define AT90USB_UPCONX_PEN (1 << 0) |
Pipe enable.
Definition at line 338 of file at90usb_regs.h.
| #define AT90USB_UPCONX_PFREEZE (1 << 6) |
Pipe freeze.
Definition at line 341 of file at90usb_regs.h.
| #define AT90USB_UPCONX_RSTDT (1 << 3) |
Reset data toggle.
Definition at line 339 of file at90usb_regs.h.
| #define AT90USB_UPDATX_PDAT (1 << 0) |
Pipe data bits.
Definition at line 427 of file at90usb_regs.h.
| #define AT90USB_UPERRX_COUNTER (1 << 6) |
Error counter.
Definition at line 398 of file at90usb_regs.h.
| #define AT90USB_UPERRX_CRC16 (1 << 5) |
CRC16 error.
Definition at line 397 of file at90usb_regs.h.
| #define AT90USB_UPERRX_DATAPID (1 << 1) |
Data PID error.
Definition at line 394 of file at90usb_regs.h.
| #define AT90USB_UPERRX_DATATGL (1 << 0) |
Bad data toggle error.
Definition at line 393 of file at90usb_regs.h.
| #define AT90USB_UPERRX_GET_COUNTER | ( | x | ) | (((x) & 0xc0) >> 6) |
# errors
Definition at line 399 of file at90usb_regs.h.
| #define AT90USB_UPERRX_PID (1 << 3) |
PID error.
Definition at line 395 of file at90usb_regs.h.
| #define AT90USB_UPERRX_TIMEOUT (1 << 4) |
Time out error.
Definition at line 396 of file at90usb_regs.h.
| #define AT90USB_UPINRQX_INRQ | ( | x | ) | ((x) << 0) |
IN request number before freeze.
Definition at line 388 of file at90usb_regs.h.
| #define AT90USB_UPINT_PINT | ( | x | ) | (1 << (x)) |
Pipe interrupts.
Definition at line 442 of file at90usb_regs.h.
| #define AT90USB_UPINTX_FIFOCON (1 << 7) |
FIFO control.
Definition at line 411 of file at90usb_regs.h.
| #define AT90USB_UPINTX_FLERRE (1 << 7) |
Flow error enable.
Definition at line 422 of file at90usb_regs.h.
| #define AT90USB_UPINTX_NAKEDE (1 << 6) |
NAK handshake received enable.
Definition at line 421 of file at90usb_regs.h.
| #define AT90USB_UPINTX_NAKEDI (1 << 6) |
NAK handshake received.
Definition at line 410 of file at90usb_regs.h.
| #define AT90USB_UPINTX_PERRE (1 << 4) |
Pipe error enable.
Definition at line 420 of file at90usb_regs.h.
| #define AT90USB_UPINTX_PERRI (1 << 4) |
Pipe error.
Definition at line 408 of file at90usb_regs.h.
| #define AT90USB_UPINTX_RWAL (1 << 5) |
Read/write allowed.
Definition at line 409 of file at90usb_regs.h.
| #define AT90USB_UPINTX_RXINE (1 << 0) |
IN data received enable.
Definition at line 416 of file at90usb_regs.h.
| #define AT90USB_UPINTX_RXINI (1 << 0) |
IN data received.
Definition at line 404 of file at90usb_regs.h.
| #define AT90USB_UPINTX_RXSTALLE (1 << 1) |
STALL received enable.
Definition at line 417 of file at90usb_regs.h.
| #define AT90USB_UPINTX_RXSTALLI (1 << 1) |
STALL received / ISO CRC error.
Definition at line 405 of file at90usb_regs.h.
| #define AT90USB_UPINTX_TXOUTE (1 << 2) |
OUT bank ready enable.
Definition at line 418 of file at90usb_regs.h.
| #define AT90USB_UPINTX_TXOUTI (1 << 2) |
OUT bank ready.
Definition at line 406 of file at90usb_regs.h.
| #define AT90USB_UPINTX_TXSTPE (1 << 3) |
SETUP bank ready enable.
Definition at line 419 of file at90usb_regs.h.
| #define AT90USB_UPINTX_TXSTPI (1 << 3) |
SETUP bank ready.
Definition at line 407 of file at90usb_regs.h.
| #define AT90USB_UPNUM_PNUM | ( | x | ) | ((x) << 0) |
Pipe number.
Definition at line 328 of file at90usb_regs.h.
| #define AT90USB_UPRST_PRST | ( | x | ) | (1 << (x)) |
Reset pipe at bit posistion N.
Definition at line 333 of file at90usb_regs.h.
| #define AT90USB_UPSTAX_CFGOK (1 << 7) |
Configure pipe memory ok.
Definition at line 383 of file at90usb_regs.h.
| #define AT90USB_UPSTAX_DTSEQ (1 << 2) |
Toggle sequencing flag.
Definition at line 380 of file at90usb_regs.h.
| #define AT90USB_UPSTAX_GET_NBUSYBK | ( | x | ) | ((x) & 3) |
# busy banks
Definition at line 379 of file at90usb_regs.h.
| #define AT90USB_UPSTAX_NBUSYBK (1 << 0) |
Busy bank flag.
Definition at line 378 of file at90usb_regs.h.
| #define AT90USB_UPSTAX_OVERFI (1 << 6) |
Overflow flag.
Definition at line 382 of file at90usb_regs.h.
| #define AT90USB_UPSTAX_UNDERFI (1 << 5) |
Underflow flag.
Definition at line 381 of file at90usb_regs.h.
| #define AT90USB_USBCON_FRZCLK (1 << 5) |
| #define AT90USB_USBCON_HOST (1 << 6) |
HOST enable.
Definition at line 59 of file at90usb_regs.h.
| #define AT90USB_USBCON_IDTE (1 << 1) |
ID transition interrupt enable.
Definition at line 56 of file at90usb_regs.h.
Referenced by at90usb_init().
| #define AT90USB_USBCON_OTGPADE (1 << 4) |
| #define AT90USB_USBCON_USBE (1 << 7) |
| #define AT90USB_USBCON_VBUSTE (1 << 0) |
VBUS transition interrupt enable.
Definition at line 55 of file at90usb_regs.h.
Referenced by at90usb_enter_device_mode().
| #define AT90USB_USBINT_IDTI (1 << 1) |
D transition interrupt flag.
Definition at line 73 of file at90usb_regs.h.
Referenced by at90usb_generic_interrupt(), and at90usb_init().
| #define AT90USB_USBINT_VBUSTI (1 << 0) |
IVBUS transition interrupt flag.
Definition at line 72 of file at90usb_regs.h.
Referenced by at90usb_enter_device_mode(), and at90usb_generic_interrupt().
| #define AT90USB_USBOTG_HNPREQ (1 << 5) |
HNP request.
Definition at line 83 of file at90usb_regs.h.
| #define AT90USB_USBOTG_SRPREQ (1 << 4) |
SRP request.
Definition at line 82 of file at90usb_regs.h.
| #define AT90USB_USBOTG_SRPSEL (1 << 3) |
SRP selection.
Definition at line 81 of file at90usb_regs.h.
| #define AT90USB_USBOTG_VBUSHWC (1 << 2) |
VBus hardware control.
Definition at line 80 of file at90usb_regs.h.
| #define AT90USB_USBOTG_VBUSREQ (1 << 1) |
VBUS request.
Definition at line 79 of file at90usb_regs.h.
| #define AT90USB_USBOTG_VBUSRQC (1 << 0) |
VBUS request clear.
Definition at line 78 of file at90usb_regs.h.
| #define AT90USB_USBSTA_ID (1 << 1) |
| #define AT90USB_USBSTA_SPEED (1 << 3) |
Speed status flag.
Definition at line 67 of file at90usb_regs.h.
| #define AT90USB_USBSTA_VBUS (1 << 0) |
1.6.3