⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usb_otg_w2fc.h

📁 OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI的双核处理器
💻 H
📖 第 1 页 / 共 5 页
字号:
//========================================================================
//          TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION
//   Property of Texas Instruments
//   For Unrestricted Internal Use Only
//   Unauthorized reprofuction and/or distribution is strictly prohibited.
//   This product is protected under copyright law and trade secret law
//   as an unpublished work
//   Created 2000,  (C) Copyright 2000 Texas Instruments. All rights reserved
//
//
//   Filename           :usb_otg_w2fc.h
//
//   Date of Module Modification:9/24/02
//   Date of Generation :9/24/02
//
//
//========================================================================
#include "mapping.h"
#ifndef _USB_OTG_W2FC__H
#define _USB_OTG_W2FC__H

//BEGIN INC GENERATION
//--------------------------------------


//Register Offset
//-------------------
#define coeff8_arm   1
#define coeff16_arm  1
#define coeff32_arm  1

//-------------------

#define            USB_OTG_W2FC_REV_OFFSET                                                                             0x00
#define            USB_OTG_W2FC_EP_NUM_OFFSET                                                                          0x04
#define            USB_OTG_W2FC_DATA_OFFSET                                                                            0x08
#define            USB_OTG_W2FC_CTRL_OFFSET                                                                            0x0C
#define            USB_OTG_W2FC_STAT_FLG_OFFSET                                                                        0x10
#define            USB_OTG_W2FC_RXFSTAT_OFFSET                                                                         0x14
#define            USB_OTG_W2FC_SYSCON1_OFFSET                                                                         0x18
#define            USB_OTG_W2FC_SYSCON2_OFFSET                                                                         0x1C
#define            USB_OTG_W2FC_DEVSTAT_OFFSET                                                                         0x20
#define            USB_OTG_W2FC_SOF_OFFSET                                                                             0x24
#define            USB_OTG_W2FC_IRQ_EN_OFFSET                                                                          0x28
#define            USB_OTG_W2FC_DMA_IRQ_EN_OFFSET                                                                      0x2C
#define            USB_OTG_W2FC_IRQ_SRC_OFFSET                                                                         0x30
#define            USB_OTG_W2FC_EPN_STAT_OFFSET                                                                        0x34
#define            USB_OTG_W2FC_DMAN_STAT_OFFSET                                                                       0x38
#define            USB_OTG_W2FC_RXDMA_CFG_OFFSET                                                                       0x40
#define            USB_OTG_W2FC_TXDMA_CFG_OFFSET                                                                       0x44
#define            USB_OTG_W2FC_DATA_DMA_OFFSET                                                                        0x48
#define            USB_OTG_W2FC_TXDMA0_OFFSET                                                                          0x50
#define            USB_OTG_W2FC_TXDMA1_OFFSET                                                                          0x54
#define            USB_OTG_W2FC_TXDMA2_OFFSET                                                                          0x58
#define            USB_OTG_W2FC_RXDMA0_OFFSET                                                                          0x60
#define            USB_OTG_W2FC_RXDMA1_OFFSET                                                                          0x64
#define            USB_OTG_W2FC_RXDMA2_OFFSET                                                                          0x68
#define            USB_OTG_W2FC_USB_TEST_1_OFFSET                                                                      0x78
#define            USB_OTG_W2FC_USB_TEST_2_OFFSET                                                                      0x7C
#define            USB_OTG_W2FC_EP0_OFFSET                                                                             0x80
#define            USB_OTG_W2FC_EP1_RX_OFFSET                                                                          0x84
#define            USB_OTG_W2FC_EP2_RX_OFFSET                                                                          0x88
#define            USB_OTG_W2FC_EP3_RX_OFFSET                                                                          0x8C
#define            USB_OTG_W2FC_EP4_RX_OFFSET                                                                          0x90
#define            USB_OTG_W2FC_EP5_RX_OFFSET                                                                          0x94
#define            USB_OTG_W2FC_EP6_RX_OFFSET                                                                          0x98
#define            USB_OTG_W2FC_EP7_RX_OFFSET                                                                          0x9C
#define            USB_OTG_W2FC_EP8_RX_OFFSET                                                                          0xA0
#define            USB_OTG_W2FC_EP9_RX_OFFSET                                                                          0xA4
#define            USB_OTG_W2FC_EP10_RX_OFFSET                                                                         0xA8
#define            USB_OTG_W2FC_EP11_RX_OFFSET                                                                         0xAC
#define            USB_OTG_W2FC_EP12_RX_OFFSET                                                                         0xB0
#define            USB_OTG_W2FC_EP13_RX_OFFSET                                                                         0xB4
#define            USB_OTG_W2FC_EP14_RX_OFFSET                                                                         0xB8
#define            USB_OTG_W2FC_EP15_RX_OFFSET                                                                         0xBC
#define            USB_OTG_W2FC_EP1_TX_OFFSET                                                                          0xC4
#define            USB_OTG_W2FC_EP2_TX_OFFSET                                                                          0xC8
#define            USB_OTG_W2FC_EP3_TX_OFFSET                                                                          0xCC
#define            USB_OTG_W2FC_EP4_TX_OFFSET                                                                          0xD0
#define            USB_OTG_W2FC_EP5_TX_OFFSET                                                                          0xD4
#define            USB_OTG_W2FC_EP6_TX_OFFSET                                                                          0xD8
#define            USB_OTG_W2FC_EP7_TX_OFFSET                                                                          0xDC
#define            USB_OTG_W2FC_EP8_TX_OFFSET                                                                          0xE0
#define            USB_OTG_W2FC_EP9_TX_OFFSET                                                                          0xE4
#define            USB_OTG_W2FC_EP10_TX_OFFSET                                                                         0xE8
#define            USB_OTG_W2FC_EP11_TX_OFFSET                                                                         0xEC
#define            USB_OTG_W2FC_EP12_TX_OFFSET                                                                         0xF0
#define            USB_OTG_W2FC_EP13_TX_OFFSET                                                                         0xF4
#define            USB_OTG_W2FC_EP14_TX_OFFSET                                                                         0xF8
#define            USB_OTG_W2FC_EP15_TX_OFFSET                                                                         0xFC




//USB_OTG_W2FC_REV
//-------------------
#define            USB_OTG_W2FC_REV_8_0                                                                                REG8(USB_OTG_W2FC_BASE_ADDR_ARM+USB_OTG_W2FC_REV_OFFSET*coeff8_arm+0)


#define            USB_OTG_W2FC_REV_8_0_REV_NB_POS                                                                       0
#define            USB_OTG_W2FC_REV_8_0_REV_NB_NUMB                                                                      8
#define            USB_OTG_W2FC_REV_8_0_REV_NB_RES_VAL                                                                   0x--
//R

#define            USB_OTG_W2FC_REV_8_1                                                                                REG8(USB_OTG_W2FC_BASE_ADDR_ARM+USB_OTG_W2FC_REV_OFFSET*coeff8_arm+1)


#define            USB_OTG_W2FC_REV_8_1_REV_NB_POS                                                                       0
#define            USB_OTG_W2FC_REV_8_1_REV_NB_NUMB                                                                      8
#define            USB_OTG_W2FC_REV_8_1_REV_NB_RES_VAL                                                                   0x--
//R

#define            USB_OTG_W2FC_REV_8_2                                                                                REG8(USB_OTG_W2FC_BASE_ADDR_ARM+USB_OTG_W2FC_REV_OFFSET*coeff8_arm+2)


#define            USB_OTG_W2FC_REV_8_2_REV_NB_POS                                                                       0
#define            USB_OTG_W2FC_REV_8_2_REV_NB_NUMB                                                                      8
#define            USB_OTG_W2FC_REV_8_2_REV_NB_RES_VAL                                                                   0x--
//R

#define            USB_OTG_W2FC_REV_8_3                                                                                REG8(USB_OTG_W2FC_BASE_ADDR_ARM+USB_OTG_W2FC_REV_OFFSET*coeff8_arm+3)


#define            USB_OTG_W2FC_REV_8_3_REV_NB_POS                                                                       0
#define            USB_OTG_W2FC_REV_8_3_REV_NB_NUMB                                                                      8
#define            USB_OTG_W2FC_REV_8_3_REV_NB_RES_VAL                                                                   0x--
//R

#define            USB_OTG_W2FC_REV_16_0                                                                               REG16(USB_OTG_W2FC_BASE_ADDR_ARM+USB_OTG_W2FC_REV_OFFSET*coeff16_arm+0)


#define            USB_OTG_W2FC_REV_16_0_REV_NB_POS                                                                      0
#define            USB_OTG_W2FC_REV_16_0_REV_NB_NUMB                                                                     8
#define            USB_OTG_W2FC_REV_16_0_REV_NB_RES_VAL                                                                  0x--
//R

#define            USB_OTG_W2FC_REV_16_2                                                                               REG16(USB_OTG_W2FC_BASE_ADDR_ARM+USB_OTG_W2FC_REV_OFFSET*coeff16_arm+2)


#define            USB_OTG_W2FC_REV_16_2_REV_NB_POS                                                                      0
#define            USB_OTG_W2FC_REV_16_2_REV_NB_NUMB                                                                     8
#define            USB_OTG_W2FC_REV_16_2_REV_NB_RES_VAL                                                                  0x--
//R

#define            USB_OTG_W2FC_REV_32                                                                                 REG32(USB_OTG_W2FC_BASE_ADDR_ARM+USB_OTG_W2FC_REV_OFFSET*coeff32_arm)


#define            USB_OTG_W2FC_REV_32_REV_NB_POS                                                                        0
#define            USB_OTG_W2FC_REV_32_REV_NB_NUMB                                                                       8
#define            USB_OTG_W2FC_REV_32_REV_NB_RES_VAL                                                                    0x--
//R


//USB_OTG_W2FC_EP_NUM
//-------------------
#define            USB_OTG_W2FC_EP_NUM_8_0                                                                             REG8(USB_OTG_W2FC_BASE_ADDR_ARM+USB_OTG_W2FC_EP_NUM_OFFSET*coeff8_arm+0)


#define            USB_OTG_W2FC_EP_NUM_8_0_SETUP_SEL_POS                                                                 6
#define            USB_OTG_W2FC_EP_NUM_8_0_SETUP_SEL_NUMB                                                                1
#define            USB_OTG_W2FC_EP_NUM_8_0_SETUP_SEL_RES_VAL                                                             0x0
//R/W

#define            USB_OTG_W2FC_EP_NUM_8_0_EP_SEL_POS                                                                    5
#define            USB_OTG_W2FC_EP_NUM_8_0_EP_SEL_NUMB                                                                   1
#define            USB_OTG_W2FC_EP_NUM_8_0_EP_SEL_RES_VAL                                                                0x0
//R/W

#define            USB_OTG_W2FC_EP_NUM_8_0_EP_DIR_POS                                                                    4
#define            USB_OTG_W2FC_EP_NUM_8_0_EP_DIR_NUMB                                                                   1
#define            USB_OTG_W2FC_EP_NUM_8_0_EP_DIR_RES_VAL                                                                0x0
//R/W

#define            USB_OTG_W2FC_EP_NUM_8_0_EP_NUM_POS                                                                    0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -