📄 hw_usb.h
字号:
//*****************************************************************************
//
// hw_usb.h - Macros for use in accessing the USB registers.
//
// Copyright (c) 2007-2009 Luminary Micro, Inc. All rights reserved.
// Software License Agreement
//
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
// exclusively on LMI's microcontroller products.
//
// The software is owned by LMI and/or its suppliers, and is protected under
// applicable copyright laws. All rights are reserved. You may not combine
// this software with "viral" open-source software in order to form a larger
// program. Any use in violation of the foregoing restrictions may subject
// the user to criminal sanctions under applicable laws, as well as to civil
// liability for the breach of the terms and conditions of this license.
//
// THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 5228 of the Stellaris Firmware Development Package.
//
//*****************************************************************************
#ifndef __HW_USB_H__
#define __HW_USB_H__
//*****************************************************************************
//
// The following are defines for the Univeral Serial Bus (USB) Controller
// offsets.
//
//*****************************************************************************
#define USB_O_FADDR 0x00000000 // USB Device Functional Address
#define USB_O_POWER 0x00000001 // USB Power
#define USB_O_TXIS 0x00000002 // USB Transmit Interrupt Status
#define USB_O_RXIS 0x00000004 // USB Receive Interrupt Status
#define USB_O_TXIE 0x00000006 // USB Transmit Interrupt Enable
#define USB_O_RXIE 0x00000008 // USB Receive Interrupt Enable
#define USB_O_IS 0x0000000A // USB General Interrupt Status
#define USB_O_IE 0x0000000B // USB Interrupt Enable
#define USB_O_FRAME 0x0000000C // USB Frame Value
#define USB_O_EPIDX 0x0000000E // USB Endpoint Index
#define USB_O_TEST 0x0000000F // USB Test Mode
#define USB_O_FIFO0 0x00000020 // USB FIFO Endpoint 0
#define USB_O_FIFO1 0x00000024 // USB FIFO Endpoint 1
#define USB_O_FIFO2 0x00000028 // USB FIFO Endpoint 2
#define USB_O_FIFO3 0x0000002C // USB FIFO Endpoint 3
#define USB_O_FIFO4 0x00000030 // USB FIFO Endpoint 4
#define USB_O_FIFO5 0x00000034 // USB FIFO Endpoint 5
#define USB_O_FIFO6 0x00000038 // USB FIFO Endpoint 6
#define USB_O_FIFO7 0x0000003C // USB FIFO Endpoint 7
#define USB_O_FIFO8 0x00000040 // USB FIFO Endpoint 8
#define USB_O_FIFO9 0x00000044 // USB FIFO Endpoint 9
#define USB_O_FIFO10 0x00000048 // USB FIFO Endpoint 10
#define USB_O_FIFO11 0x0000004C // USB FIFO Endpoint 11
#define USB_O_FIFO12 0x00000050 // USB FIFO Endpoint 12
#define USB_O_FIFO13 0x00000054 // USB FIFO Endpoint 13
#define USB_O_FIFO14 0x00000058 // USB FIFO Endpoint 14
#define USB_O_FIFO15 0x0000005C // USB FIFO Endpoint 15
#define USB_O_DEVCTL 0x00000060 // USB Device Control
#define USB_O_TXFIFOSZ 0x00000062 // USB Transmit Dynamic FIFO Sizing
#define USB_O_RXFIFOSZ 0x00000063 // USB Receive Dynamic FIFO Sizing
#define USB_O_TXFIFOADD 0x00000064 // USB Transmit FIFO Start Address
#define USB_O_RXFIFOADD 0x00000066 // USB Receive FIFO Start Address
#define USB_O_CONTIM 0x0000007A // USB Connect Timing
#define USB_O_VPLEN 0x0000007B // USB OTG VBus Pulse Timing
#define USB_O_FSEOF 0x0000007D // USB Full-Speed Last Transaction
// to End of Frame Timing
#define USB_O_LSEOF 0x0000007E // USB Low-Speed Last Transaction
// to End of Frame Timing
#define USB_O_TXFUNCADDR0 0x00000080 // USB Transmit Functional Address
// Endpoint 0
#define USB_O_TXHUBADDR0 0x00000082 // USB Transmit Hub Address
// Endpoint 0
#define USB_O_TXHUBPORT0 0x00000083 // USB Transmit Hub Port Endpoint 0
#define USB_O_TXFUNCADDR1 0x00000088 // USB Transmit Functional Address
// Endpoint 1
#define USB_O_TXHUBADDR1 0x0000008A // USB Transmit Hub Address
// Endpoint 1
#define USB_O_TXHUBPORT1 0x0000008B // USB Transmit Hub Port Endpoint 1
#define USB_O_RXFUNCADDR1 0x0000008C // USB Receive Functional Address
// Endpoint 1
#define USB_O_RXHUBADDR1 0x0000008E // USB Receive Hub Address Endpoint
// 1
#define USB_O_RXHUBPORT1 0x0000008F // USB Receive Hub Port Endpoint 1
#define USB_O_TXFUNCADDR2 0x00000090 // USB Transmit Functional Address
// Endpoint 2
#define USB_O_TXHUBADDR2 0x00000092 // USB Transmit Hub Address
// Endpoint 2
#define USB_O_TXHUBPORT2 0x00000093 // USB Transmit Hub Port Endpoint 2
#define USB_O_RXFUNCADDR2 0x00000094 // USB Receive Functional Address
// Endpoint 2
#define USB_O_RXHUBADDR2 0x00000096 // USB Receive Hub Address Endpoint
// 2
#define USB_O_RXHUBPORT2 0x00000097 // USB Receive Hub Port Endpoint 2
#define USB_O_TXFUNCADDR3 0x00000098 // USB Transmit Functional Address
// Endpoint 3
#define USB_O_TXHUBADDR3 0x0000009A // USB Transmit Hub Address
// Endpoint 3
#define USB_O_TXHUBPORT3 0x0000009B // USB Transmit Hub Port Endpoint 3
#define USB_O_RXFUNCADDR3 0x0000009C // USB Receive Functional Address
// Endpoint 3
#define USB_O_RXHUBADDR3 0x0000009E // USB Receive Hub Address Endpoint
// 3
#define USB_O_RXHUBPORT3 0x0000009F // USB Receive Hub Port Endpoint 3
#define USB_O_TXFUNCADDR4 0x000000A0 // USB Transmit Functional Address
// Endpoint 4
#define USB_O_TXHUBADDR4 0x000000A2 // USB Transmit Hub Address
// Endpoint 4
#define USB_O_TXHUBPORT4 0x000000A3 // USB Transmit Hub Port Endpoint 4
#define USB_O_RXFUNCADDR4 0x000000A4 // USB Receive Functional Address
// Endpoint 4
#define USB_O_RXHUBADDR4 0x000000A6 // USB Receive Hub Address Endpoint
// 4
#define USB_O_RXHUBPORT4 0x000000A7 // USB Receive Hub Port Endpoint 4
#define USB_O_TXFUNCADDR5 0x000000A8 // USB Transmit Functional Address
// Endpoint 5
#define USB_O_TXHUBADDR5 0x000000AA // USB Transmit Hub Address
// Endpoint 5
#define USB_O_TXHUBPORT5 0x000000AB // USB Transmit Hub Port Endpoint 5
#define USB_O_RXFUNCADDR5 0x000000AC // USB Receive Functional Address
// Endpoint 5
#define USB_O_RXHUBADDR5 0x000000AE // USB Receive Hub Address Endpoint
// 5
#define USB_O_RXHUBPORT5 0x000000AF // USB Receive Hub Port Endpoint 5
#define USB_O_TXFUNCADDR6 0x000000B0 // USB Transmit Functional Address
// Endpoint 6
#define USB_O_TXHUBADDR6 0x000000B2 // USB Transmit Hub Address
// Endpoint 6
#define USB_O_TXHUBPORT6 0x000000B3 // USB Transmit Hub Port Endpoint 6
#define USB_O_RXFUNCADDR6 0x000000B4 // USB Receive Functional Address
// Endpoint 6
#define USB_O_RXHUBADDR6 0x000000B6 // USB Receive Hub Address Endpoint
// 6
#define USB_O_RXHUBPORT6 0x000000B7 // USB Receive Hub Port Endpoint 6
#define USB_O_TXFUNCADDR7 0x000000B8 // USB Transmit Functional Address
// Endpoint 7
#define USB_O_TXHUBADDR7 0x000000BA // USB Transmit Hub Address
// Endpoint 7
#define USB_O_TXHUBPORT7 0x000000BB // USB Transmit Hub Port Endpoint 7
#define USB_O_RXFUNCADDR7 0x000000BC // USB Receive Functional Address
// Endpoint 7
#define USB_O_RXHUBADDR7 0x000000BE // USB Receive Hub Address Endpoint
// 7
#define USB_O_RXHUBPORT7 0x000000BF // USB Receive Hub Port Endpoint 7
#define USB_O_TXFUNCADDR8 0x000000C0 // USB Transmit Functional Address
// Endpoint 8
#define USB_O_TXHUBADDR8 0x000000C2 // USB Transmit Hub Address
// Endpoint 8
#define USB_O_TXHUBPORT8 0x000000C3 // USB Transmit Hub Port Endpoint 8
#define USB_O_RXFUNCADDR8 0x000000C4 // USB Receive Functional Address
// Endpoint 8
#define USB_O_RXHUBADDR8 0x000000C6 // USB Receive Hub Address Endpoint
// 8
#define USB_O_RXHUBPORT8 0x000000C7 // USB Receive Hub Port Endpoint 8
#define USB_O_TXFUNCADDR9 0x000000C8 // USB Transmit Functional Address
// Endpoint 9
#define USB_O_TXHUBADDR9 0x000000CA // USB Transmit Hub Address
// Endpoint 9
#define USB_O_TXHUBPORT9 0x000000CB // USB Transmit Hub Port Endpoint 9
#define USB_O_RXFUNCADDR9 0x000000CC // USB Receive Functional Address
// Endpoint 9
#define USB_O_RXHUBADDR9 0x000000CE // USB Receive Hub Address Endpoint
// 9
#define USB_O_RXHUBPORT9 0x000000CF // USB Receive Hub Port Endpoint 9
#define USB_O_TXFUNCADDR10 0x000000D0 // USB Transmit Functional Address
// Endpoint 10
#define USB_O_TXHUBADDR10 0x000000D2 // USB Transmit Hub Address
// Endpoint 10
#define USB_O_TXHUBPORT10 0x000000D3 // USB Transmit Hub Port Endpoint
// 10
#define USB_O_RXFUNCADDR10 0x000000D4 // USB Receive Functional Address
// Endpoint 10
#define USB_O_RXHUBADDR10 0x000000D6 // USB Receive Hub Address Endpoint
// 10
#define USB_O_RXHUBPORT10 0x000000D7 // USB Receive Hub Port Endpoint 10
#define USB_O_TXFUNCADDR11 0x000000D8 // USB Transmit Functional Address
// Endpoint 11
#define USB_O_TXHUBADDR11 0x000000DA // USB Transmit Hub Address
// Endpoint 11
#define USB_O_TXHUBPORT11 0x000000DB // USB Transmit Hub Port Endpoint
// 11
#define USB_O_RXFUNCADDR11 0x000000DC // USB Receive Functional Address
// Endpoint 11
#define USB_O_RXHUBADDR11 0x000000DE // USB Receive Hub Address Endpoint
// 11
#define USB_O_RXHUBPORT11 0x000000DF // USB Receive Hub Port Endpoint 11
#define USB_O_TXFUNCADDR12 0x000000E0 // USB Transmit Functional Address
// Endpoint 12
#define USB_O_TXHUBADDR12 0x000000E2 // USB Transmit Hub Address
// Endpoint 12
#define USB_O_TXHUBPORT12 0x000000E3 // USB Transmit Hub Port Endpoint
// 12
#define USB_O_RXFUNCADDR12 0x000000E4 // USB Receive Functional Address
// Endpoint 12
#define USB_O_RXHUBADDR12 0x000000E6 // USB Receive Hub Address Endpoint
// 12
#define USB_O_RXHUBPORT12 0x000000E7 // USB Receive Hub Port Endpoint 12
#define USB_O_TXFUNCADDR13 0x000000E8 // USB Transmit Functional Address
// Endpoint 13
#define USB_O_TXHUBADDR13 0x000000EA // USB Transmit Hub Address
// Endpoint 13
#define USB_O_TXHUBPORT13 0x000000EB // USB Transmit Hub Port Endpoint
// 13
#define USB_O_RXFUNCADDR13 0x000000EC // USB Receive Functional Address
// Endpoint 13
#define USB_O_RXHUBADDR13 0x000000EE // USB Receive Hub Address Endpoint
// 13
#define USB_O_RXHUBPORT13 0x000000EF // USB Receive Hub Port Endpoint 13
#define USB_O_TXFUNCADDR14 0x000000F0 // USB Transmit Functional Address
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -