mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Fri Jul 31 14:15:09 2015 +0100
Revision:
600:7d17ca308cd1
Parent:
514:7668256dbe61
Synchronized with git revision e4cd8bbd3e05b68e5a7f466c74035a85743d45e0

Full URL: https://github.com/mbedmicro/mbed/commit/e4cd8bbd3e05b68e5a7f466c74035a85743d45e0/

Enable LPC8xx usart when configuring it

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 514:7668256dbe61 1 /*******************************************************************************
mbed_official 514:7668256dbe61 2 * Copyright (C) 2015 Maxim Integrated Products, Inc., All Rights Reserved.
mbed_official 514:7668256dbe61 3 *
mbed_official 514:7668256dbe61 4 * Permission is hereby granted, free of charge, to any person obtaining a
mbed_official 514:7668256dbe61 5 * copy of this software and associated documentation files (the "Software"),
mbed_official 514:7668256dbe61 6 * to deal in the Software without restriction, including without limitation
mbed_official 514:7668256dbe61 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
mbed_official 514:7668256dbe61 8 * and/or sell copies of the Software, and to permit persons to whom the
mbed_official 514:7668256dbe61 9 * Software is furnished to do so, subject to the following conditions:
mbed_official 514:7668256dbe61 10 *
mbed_official 514:7668256dbe61 11 * The above copyright notice and this permission notice shall be included
mbed_official 514:7668256dbe61 12 * in all copies or substantial portions of the Software.
mbed_official 514:7668256dbe61 13 *
mbed_official 514:7668256dbe61 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
mbed_official 514:7668256dbe61 15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
mbed_official 514:7668256dbe61 16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
mbed_official 514:7668256dbe61 17 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
mbed_official 514:7668256dbe61 18 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
mbed_official 514:7668256dbe61 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
mbed_official 514:7668256dbe61 20 * OTHER DEALINGS IN THE SOFTWARE.
mbed_official 514:7668256dbe61 21 *
mbed_official 514:7668256dbe61 22 * Except as contained in this notice, the name of Maxim Integrated
mbed_official 514:7668256dbe61 23 * Products, Inc. shall not be used except as stated in the Maxim Integrated
mbed_official 514:7668256dbe61 24 * Products, Inc. Branding Policy.
mbed_official 514:7668256dbe61 25 *
mbed_official 514:7668256dbe61 26 * The mere transfer of this software does not imply any licenses
mbed_official 514:7668256dbe61 27 * of trade secrets, proprietary technology, copyrights, patents,
mbed_official 514:7668256dbe61 28 * trademarks, maskwork rights, or any other form of intellectual
mbed_official 514:7668256dbe61 29 * property whatsoever. Maxim Integrated Products, Inc. retains all
mbed_official 514:7668256dbe61 30 * ownership rights.
mbed_official 514:7668256dbe61 31 *******************************************************************************
mbed_official 514:7668256dbe61 32 */
mbed_official 514:7668256dbe61 33
mbed_official 514:7668256dbe61 34 #ifndef _MXC_USB_REGS_H_
mbed_official 514:7668256dbe61 35 #define _MXC_USB_REGS_H_
mbed_official 514:7668256dbe61 36
mbed_official 514:7668256dbe61 37 #ifdef __cplusplus
mbed_official 514:7668256dbe61 38 extern "C" {
mbed_official 514:7668256dbe61 39 #endif
mbed_official 514:7668256dbe61 40
mbed_official 514:7668256dbe61 41 #include <stdint.h>
mbed_official 514:7668256dbe61 42
mbed_official 514:7668256dbe61 43 /**
mbed_official 514:7668256dbe61 44 * @file usb_regs.h
mbed_official 514:7668256dbe61 45 * @addtogroup usb USB
mbed_official 514:7668256dbe61 46 * @{
mbed_official 514:7668256dbe61 47 */
mbed_official 514:7668256dbe61 48
mbed_official 514:7668256dbe61 49 /* Offset Register Description
mbed_official 514:7668256dbe61 50 ====== ================================================ */
mbed_official 514:7668256dbe61 51 typedef struct {
mbed_official 514:7668256dbe61 52 __IO uint32_t cn; /* 0x0000 USB Control Register */
mbed_official 514:7668256dbe61 53 __I uint32_t rsv0004[127]; /* 0x0004 */
mbed_official 514:7668256dbe61 54 __IO uint32_t dev_addr; /* 0x0200 USB Device Address Register */
mbed_official 514:7668256dbe61 55 __IO uint32_t dev_cn; /* 0x0204 USB Device Control Register */
mbed_official 514:7668256dbe61 56 __IO uint32_t dev_intfl; /* 0x0208 USB Device Interrupt */
mbed_official 514:7668256dbe61 57 __IO uint32_t dev_inten; /* 0x020C USB Device Interrupt Enable */
mbed_official 514:7668256dbe61 58 __I uint32_t rsv0210[4]; /* 0x0210 */
mbed_official 514:7668256dbe61 59 __IO uint32_t ep_base; /* 0x0220 USB Endpoint Descriptor Table Base Address */
mbed_official 514:7668256dbe61 60 __IO uint32_t cur_buf; /* 0x0224 USB Current Endpoint Buffer Register */
mbed_official 514:7668256dbe61 61 __IO uint32_t in_owner; /* 0x0228 USB IN Endpoint Buffer Owner Register */
mbed_official 514:7668256dbe61 62 __IO uint32_t out_owner; /* 0x022C USB OUT Endpoint Buffer Owner Register */
mbed_official 514:7668256dbe61 63 __IO uint32_t in_int; /* 0x0230 USB IN Endpoint Buffer Available Interrupt */
mbed_official 514:7668256dbe61 64 __IO uint32_t out_int; /* 0x0234 USB OUT Endpoint Data Available Interrupt */
mbed_official 514:7668256dbe61 65 __IO uint32_t nak_int; /* 0x0238 USB IN Endpoint NAK Interrupt */
mbed_official 514:7668256dbe61 66 __IO uint32_t dma_err_int; /* 0x023C USB DMA Error Interrupt */
mbed_official 514:7668256dbe61 67 __IO uint32_t buf_ovr_int; /* 0x0240 USB Buffer Overflow Interrupt */
mbed_official 514:7668256dbe61 68 __I uint32_t rsv0244[7]; /* 0x0244 */
mbed_official 514:7668256dbe61 69 __IO uint32_t setup0; /* 0x0260 USB SETUP Packet Bytes 0 to 3 */
mbed_official 514:7668256dbe61 70 __IO uint32_t setup1; /* 0x0264 USB SETUP Packet Bytes 4 to 7 */
mbed_official 514:7668256dbe61 71 __I uint32_t rsv0268[6]; /* 0x0268 */
mbed_official 514:7668256dbe61 72 __IO uint32_t ep[MXC_USB_NUM_EP]; /* 0x0280 USB Endpoint Control Registers */
mbed_official 514:7668256dbe61 73 } mxc_usb_regs_t;
mbed_official 514:7668256dbe61 74
mbed_official 514:7668256dbe61 75
mbed_official 514:7668256dbe61 76 /*
mbed_official 514:7668256dbe61 77 Register offsets for module USB.
mbed_official 514:7668256dbe61 78 */
mbed_official 514:7668256dbe61 79 #define MXC_R_USB_OFFS_CN ((uint32_t)0x00000000UL)
mbed_official 514:7668256dbe61 80 #define MXC_R_USB_OFFS_DEV_ADDR ((uint32_t)0x00000200UL)
mbed_official 514:7668256dbe61 81 #define MXC_R_USB_OFFS_DEV_CN ((uint32_t)0x00000204UL)
mbed_official 514:7668256dbe61 82 #define MXC_R_USB_OFFS_DEV_INTFL ((uint32_t)0x00000208UL)
mbed_official 514:7668256dbe61 83 #define MXC_R_USB_OFFS_DEV_INTEN ((uint32_t)0x0000020CUL)
mbed_official 514:7668256dbe61 84 #define MXC_R_USB_OFFS_EP_BASE ((uint32_t)0x00000220UL)
mbed_official 514:7668256dbe61 85 #define MXC_R_USB_OFFS_CUR_BUF ((uint32_t)0x00000224UL)
mbed_official 514:7668256dbe61 86 #define MXC_R_USB_OFFS_IN_OWNER ((uint32_t)0x00000228UL)
mbed_official 514:7668256dbe61 87 #define MXC_R_USB_OFFS_OUT_OWNER ((uint32_t)0x0000022CUL)
mbed_official 514:7668256dbe61 88 #define MXC_R_USB_OFFS_IN_INT ((uint32_t)0x00000230UL)
mbed_official 514:7668256dbe61 89 #define MXC_R_USB_OFFS_OUT_INT ((uint32_t)0x00000234UL)
mbed_official 514:7668256dbe61 90 #define MXC_R_USB_OFFS_NAK_INT ((uint32_t)0x00000238UL)
mbed_official 514:7668256dbe61 91 #define MXC_R_USB_OFFS_DMA_ERR_INT ((uint32_t)0x0000023CUL)
mbed_official 514:7668256dbe61 92 #define MXC_R_USB_OFFS_BUF_OVR_INT ((uint32_t)0x00000240UL)
mbed_official 514:7668256dbe61 93 #define MXC_R_USB_OFFS_SETUP0 ((uint32_t)0x00000260UL)
mbed_official 514:7668256dbe61 94 #define MXC_R_USB_OFFS_SETUP1 ((uint32_t)0x00000264UL)
mbed_official 514:7668256dbe61 95 #define MXC_R_USB_OFFS_EP0 ((uint32_t)0x00000280UL)
mbed_official 514:7668256dbe61 96 #define MXC_R_USB_OFFS_EP1 ((uint32_t)0x00000284UL)
mbed_official 514:7668256dbe61 97 #define MXC_R_USB_OFFS_EP2 ((uint32_t)0x00000288UL)
mbed_official 514:7668256dbe61 98 #define MXC_R_USB_OFFS_EP3 ((uint32_t)0x0000028CUL)
mbed_official 514:7668256dbe61 99 #define MXC_R_USB_OFFS_EP4 ((uint32_t)0x00000290UL)
mbed_official 514:7668256dbe61 100 #define MXC_R_USB_OFFS_EP5 ((uint32_t)0x00000294UL)
mbed_official 514:7668256dbe61 101 #define MXC_R_USB_OFFS_EP6 ((uint32_t)0x00000298UL)
mbed_official 514:7668256dbe61 102 #define MXC_R_USB_OFFS_EP7 ((uint32_t)0x0000029CUL)
mbed_official 514:7668256dbe61 103
mbed_official 514:7668256dbe61 104
mbed_official 514:7668256dbe61 105 /*
mbed_official 514:7668256dbe61 106 Field positions and masks for module USB.
mbed_official 514:7668256dbe61 107 */
mbed_official 514:7668256dbe61 108 #define MXC_F_USB_CN_USB_EN_POS 0
mbed_official 514:7668256dbe61 109 #define MXC_F_USB_CN_USB_EN ((uint32_t)(0x00000001UL << MXC_F_USB_CN_USB_EN_POS))
mbed_official 514:7668256dbe61 110
mbed_official 514:7668256dbe61 111 #define MXC_F_USB_DEV_ADDR_DEV_ADDR_POS 0
mbed_official 514:7668256dbe61 112 #define MXC_F_USB_DEV_ADDR_DEV_ADDR ((uint32_t)(0x0000007FUL << MXC_F_USB_DEV_ADDR_DEV_ADDR_POS))
mbed_official 514:7668256dbe61 113
mbed_official 514:7668256dbe61 114 #define MXC_F_USB_DEV_CN_SIGRWU_POS 2
mbed_official 514:7668256dbe61 115 #define MXC_F_USB_DEV_CN_SIGRWU ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_SIGRWU_POS))
mbed_official 514:7668256dbe61 116 #define MXC_F_USB_DEV_CN_CONNECT_POS 3
mbed_official 514:7668256dbe61 117 #define MXC_F_USB_DEV_CN_CONNECT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_CONNECT_POS))
mbed_official 514:7668256dbe61 118 #define MXC_F_USB_DEV_CN_ULPM_POS 4
mbed_official 514:7668256dbe61 119 #define MXC_F_USB_DEV_CN_ULPM ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_ULPM_POS))
mbed_official 514:7668256dbe61 120 #define MXC_F_USB_DEV_CN_URST_POS 5
mbed_official 514:7668256dbe61 121 #define MXC_F_USB_DEV_CN_URST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_URST_POS))
mbed_official 514:7668256dbe61 122 #define MXC_F_USB_DEV_CN_VBGATE_POS 6
mbed_official 514:7668256dbe61 123 #define MXC_F_USB_DEV_CN_VBGATE ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_VBGATE_POS))
mbed_official 514:7668256dbe61 124 #define MXC_F_USB_DEV_CN_FIFO_MODE_POS 9
mbed_official 514:7668256dbe61 125 #define MXC_F_USB_DEV_CN_FIFO_MODE ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_FIFO_MODE_POS))
mbed_official 514:7668256dbe61 126
mbed_official 514:7668256dbe61 127 #define MXC_F_USB_DEV_INTFL_DPACT_POS 0
mbed_official 514:7668256dbe61 128 #define MXC_F_USB_DEV_INTFL_DPACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_DPACT_POS))
mbed_official 514:7668256dbe61 129 #define MXC_F_USB_DEV_INTFL_RWU_DN_POS 1
mbed_official 514:7668256dbe61 130 #define MXC_F_USB_DEV_INTFL_RWU_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_RWU_DN_POS))
mbed_official 514:7668256dbe61 131 #define MXC_F_USB_DEV_INTFL_BACT_POS 2
mbed_official 514:7668256dbe61 132 #define MXC_F_USB_DEV_INTFL_BACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BACT_POS))
mbed_official 514:7668256dbe61 133 #define MXC_F_USB_DEV_INTFL_BRST_POS 3
mbed_official 514:7668256dbe61 134 #define MXC_F_USB_DEV_INTFL_BRST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BRST_POS))
mbed_official 514:7668256dbe61 135 #define MXC_F_USB_DEV_INTFL_SUSP_POS 4
mbed_official 514:7668256dbe61 136 #define MXC_F_USB_DEV_INTFL_SUSP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_SUSP_POS))
mbed_official 514:7668256dbe61 137 #define MXC_F_USB_DEV_INTFL_NO_VBUS_POS 5
mbed_official 514:7668256dbe61 138 #define MXC_F_USB_DEV_INTFL_NO_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_NO_VBUS_POS))
mbed_official 514:7668256dbe61 139 #define MXC_F_USB_DEV_INTFL_VBUS_POS 6
mbed_official 514:7668256dbe61 140 #define MXC_F_USB_DEV_INTFL_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_VBUS_POS))
mbed_official 514:7668256dbe61 141 #define MXC_F_USB_DEV_INTFL_BRST_DN_POS 7
mbed_official 514:7668256dbe61 142 #define MXC_F_USB_DEV_INTFL_BRST_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BRST_DN_POS))
mbed_official 514:7668256dbe61 143 #define MXC_F_USB_DEV_INTFL_SETUP_POS 8
mbed_official 514:7668256dbe61 144 #define MXC_F_USB_DEV_INTFL_SETUP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_SETUP_POS))
mbed_official 514:7668256dbe61 145 #define MXC_F_USB_DEV_INTFL_EP_IN_POS 9
mbed_official 514:7668256dbe61 146 #define MXC_F_USB_DEV_INTFL_EP_IN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_IN_POS))
mbed_official 514:7668256dbe61 147 #define MXC_F_USB_DEV_INTFL_EP_OUT_POS 10
mbed_official 514:7668256dbe61 148 #define MXC_F_USB_DEV_INTFL_EP_OUT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_OUT_POS))
mbed_official 514:7668256dbe61 149 #define MXC_F_USB_DEV_INTFL_EP_NAK_POS 11
mbed_official 514:7668256dbe61 150 #define MXC_F_USB_DEV_INTFL_EP_NAK ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_NAK_POS))
mbed_official 514:7668256dbe61 151 #define MXC_F_USB_DEV_INTFL_DMA_ERR_POS 12
mbed_official 514:7668256dbe61 152 #define MXC_F_USB_DEV_INTFL_DMA_ERR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_DMA_ERR_POS))
mbed_official 514:7668256dbe61 153 #define MXC_F_USB_DEV_INTFL_BUF_OVR_POS 13
mbed_official 514:7668256dbe61 154 #define MXC_F_USB_DEV_INTFL_BUF_OVR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BUF_OVR_POS))
mbed_official 514:7668256dbe61 155 #define MXC_F_USB_DEV_INTFL_VBUS_ST_POS 16
mbed_official 514:7668256dbe61 156 #define MXC_F_USB_DEV_INTFL_VBUS_ST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_VBUS_ST_POS))
mbed_official 514:7668256dbe61 157
mbed_official 514:7668256dbe61 158 #define MXC_F_USB_DEV_INTEN_DPACT_POS 0
mbed_official 514:7668256dbe61 159 #define MXC_F_USB_DEV_INTEN_DPACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_DPACT_POS))
mbed_official 514:7668256dbe61 160 #define MXC_F_USB_DEV_INTEN_RWU_DN_POS 1
mbed_official 514:7668256dbe61 161 #define MXC_F_USB_DEV_INTEN_RWU_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_RWU_DN_POS))
mbed_official 514:7668256dbe61 162 #define MXC_F_USB_DEV_INTEN_BACT_POS 2
mbed_official 514:7668256dbe61 163 #define MXC_F_USB_DEV_INTEN_BACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BACT_POS))
mbed_official 514:7668256dbe61 164 #define MXC_F_USB_DEV_INTEN_BRST_POS 3
mbed_official 514:7668256dbe61 165 #define MXC_F_USB_DEV_INTEN_BRST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BRST_POS))
mbed_official 514:7668256dbe61 166 #define MXC_F_USB_DEV_INTEN_SUSP_POS 4
mbed_official 514:7668256dbe61 167 #define MXC_F_USB_DEV_INTEN_SUSP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_SUSP_POS))
mbed_official 514:7668256dbe61 168 #define MXC_F_USB_DEV_INTEN_NO_VBUS_POS 5
mbed_official 514:7668256dbe61 169 #define MXC_F_USB_DEV_INTEN_NO_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_NO_VBUS_POS))
mbed_official 514:7668256dbe61 170 #define MXC_F_USB_DEV_INTEN_VBUS_POS 6
mbed_official 514:7668256dbe61 171 #define MXC_F_USB_DEV_INTEN_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_VBUS_POS))
mbed_official 514:7668256dbe61 172 #define MXC_F_USB_DEV_INTEN_BRST_DN_POS 7
mbed_official 514:7668256dbe61 173 #define MXC_F_USB_DEV_INTEN_BRST_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BRST_DN_POS))
mbed_official 514:7668256dbe61 174 #define MXC_F_USB_DEV_INTEN_SETUP_POS 8
mbed_official 514:7668256dbe61 175 #define MXC_F_USB_DEV_INTEN_SETUP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_SETUP_POS))
mbed_official 514:7668256dbe61 176 #define MXC_F_USB_DEV_INTEN_EP_IN_POS 9
mbed_official 514:7668256dbe61 177 #define MXC_F_USB_DEV_INTEN_EP_IN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_IN_POS))
mbed_official 514:7668256dbe61 178 #define MXC_F_USB_DEV_INTEN_EP_OUT_POS 10
mbed_official 514:7668256dbe61 179 #define MXC_F_USB_DEV_INTEN_EP_OUT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_OUT_POS))
mbed_official 514:7668256dbe61 180 #define MXC_F_USB_DEV_INTEN_EP_NAK_POS 11
mbed_official 514:7668256dbe61 181 #define MXC_F_USB_DEV_INTEN_EP_NAK ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_NAK_POS))
mbed_official 514:7668256dbe61 182 #define MXC_F_USB_DEV_INTEN_DMA_ERR_POS 12
mbed_official 514:7668256dbe61 183 #define MXC_F_USB_DEV_INTEN_DMA_ERR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_DMA_ERR_POS))
mbed_official 514:7668256dbe61 184 #define MXC_F_USB_DEV_INTEN_BUF_OVR_POS 13
mbed_official 514:7668256dbe61 185 #define MXC_F_USB_DEV_INTEN_BUF_OVR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BUF_OVR_POS))
mbed_official 514:7668256dbe61 186
mbed_official 514:7668256dbe61 187 #define MXC_F_USB_EP_BASE_EP_BASE_POS 9
mbed_official 514:7668256dbe61 188 #define MXC_F_USB_EP_BASE_EP_BASE ((uint32_t)(0x007FFFFFUL << MXC_F_USB_EP_BASE_EP_BASE_POS))
mbed_official 514:7668256dbe61 189
mbed_official 514:7668256dbe61 190 #define MXC_F_USB_CUR_BUF_OUT_BUF_POS 0
mbed_official 514:7668256dbe61 191 #define MXC_F_USB_CUR_BUF_OUT_BUF ((uint32_t)(0x000000FFUL << MXC_F_USB_CUR_BUF_OUT_BUF_POS))
mbed_official 514:7668256dbe61 192 #define MXC_F_USB_CUR_BUF_IN_BUF_POS 16
mbed_official 514:7668256dbe61 193 #define MXC_F_USB_CUR_BUF_IN_BUF ((uint32_t)(0x000000FFUL << MXC_F_USB_CUR_BUF_IN_BUF_POS))
mbed_official 514:7668256dbe61 194
mbed_official 514:7668256dbe61 195 #define MXC_F_USB_IN_OWNER_BUF0_OWNER_POS 0
mbed_official 514:7668256dbe61 196 #define MXC_F_USB_IN_OWNER_BUF0_OWNER ((uint32_t)(0x000000FFUL << MXC_F_USB_IN_OWNER_BUF0_OWNER_POS))
mbed_official 514:7668256dbe61 197 #define MXC_F_USB_IN_OWNER_BUF1_OWNER_POS 16
mbed_official 514:7668256dbe61 198 #define MXC_F_USB_IN_OWNER_BUF1_OWNER ((uint32_t)(0x000000FFUL << MXC_F_USB_IN_OWNER_BUF1_OWNER_POS))
mbed_official 514:7668256dbe61 199
mbed_official 514:7668256dbe61 200 #define MXC_F_USB_OUT_OWNER_BUF0_OWNER_POS 0
mbed_official 514:7668256dbe61 201 #define MXC_F_USB_OUT_OWNER_BUF0_OWNER ((uint32_t)(0x000000FFUL << MXC_F_USB_OUT_OWNER_BUF0_OWNER_POS))
mbed_official 514:7668256dbe61 202 #define MXC_F_USB_OUT_OWNER_BUF1_OWNER_POS 16
mbed_official 514:7668256dbe61 203 #define MXC_F_USB_OUT_OWNER_BUF1_OWNER ((uint32_t)(0x000000FFUL << MXC_F_USB_OUT_OWNER_BUF1_OWNER_POS))
mbed_official 514:7668256dbe61 204
mbed_official 514:7668256dbe61 205 #define MXC_F_USB_IN_INT_INBAV0_POS 0
mbed_official 514:7668256dbe61 206 #define MXC_F_USB_IN_INT_INBAV0 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV0_POS))
mbed_official 514:7668256dbe61 207 #define MXC_F_USB_IN_INT_INBAV1_POS 1
mbed_official 514:7668256dbe61 208 #define MXC_F_USB_IN_INT_INBAV1 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV1_POS))
mbed_official 514:7668256dbe61 209 #define MXC_F_USB_IN_INT_INBAV2_POS 2
mbed_official 514:7668256dbe61 210 #define MXC_F_USB_IN_INT_INBAV2 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV2_POS))
mbed_official 514:7668256dbe61 211 #define MXC_F_USB_IN_INT_INBAV3_POS 3
mbed_official 514:7668256dbe61 212 #define MXC_F_USB_IN_INT_INBAV3 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV3_POS))
mbed_official 514:7668256dbe61 213 #define MXC_F_USB_IN_INT_INBAV4_POS 4
mbed_official 514:7668256dbe61 214 #define MXC_F_USB_IN_INT_INBAV4 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV4_POS))
mbed_official 514:7668256dbe61 215 #define MXC_F_USB_IN_INT_INBAV5_POS 5
mbed_official 514:7668256dbe61 216 #define MXC_F_USB_IN_INT_INBAV5 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV5_POS))
mbed_official 514:7668256dbe61 217 #define MXC_F_USB_IN_INT_INBAV6_POS 6
mbed_official 514:7668256dbe61 218 #define MXC_F_USB_IN_INT_INBAV6 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV6_POS))
mbed_official 514:7668256dbe61 219 #define MXC_F_USB_IN_INT_INBAV7_POS 7
mbed_official 514:7668256dbe61 220 #define MXC_F_USB_IN_INT_INBAV7 ((uint32_t)(0x00000001UL << MXC_F_USB_IN_INT_INBAV7_POS))
mbed_official 514:7668256dbe61 221
mbed_official 514:7668256dbe61 222 #define MXC_F_USB_OUT_INT_OUTDAV0_POS 0
mbed_official 514:7668256dbe61 223 #define MXC_F_USB_OUT_INT_OUTDAV0 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV0_POS))
mbed_official 514:7668256dbe61 224 #define MXC_F_USB_OUT_INT_OUTDAV1_POS 1
mbed_official 514:7668256dbe61 225 #define MXC_F_USB_OUT_INT_OUTDAV1 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV1_POS))
mbed_official 514:7668256dbe61 226 #define MXC_F_USB_OUT_INT_OUTDAV2_POS 2
mbed_official 514:7668256dbe61 227 #define MXC_F_USB_OUT_INT_OUTDAV2 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV2_POS))
mbed_official 514:7668256dbe61 228 #define MXC_F_USB_OUT_INT_OUTDAV3_POS 3
mbed_official 514:7668256dbe61 229 #define MXC_F_USB_OUT_INT_OUTDAV3 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV3_POS))
mbed_official 514:7668256dbe61 230 #define MXC_F_USB_OUT_INT_OUTDAV4_POS 4
mbed_official 514:7668256dbe61 231 #define MXC_F_USB_OUT_INT_OUTDAV4 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV4_POS))
mbed_official 514:7668256dbe61 232 #define MXC_F_USB_OUT_INT_OUTDAV5_POS 5
mbed_official 514:7668256dbe61 233 #define MXC_F_USB_OUT_INT_OUTDAV5 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV5_POS))
mbed_official 514:7668256dbe61 234 #define MXC_F_USB_OUT_INT_OUTDAV6_POS 6
mbed_official 514:7668256dbe61 235 #define MXC_F_USB_OUT_INT_OUTDAV6 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV6_POS))
mbed_official 514:7668256dbe61 236 #define MXC_F_USB_OUT_INT_OUTDAV7_POS 7
mbed_official 514:7668256dbe61 237 #define MXC_F_USB_OUT_INT_OUTDAV7 ((uint32_t)(0x00000001UL << MXC_F_USB_OUT_INT_OUTDAV7_POS))
mbed_official 514:7668256dbe61 238
mbed_official 514:7668256dbe61 239 #define MXC_F_USB_NAK_INT_NAK0_POS 0
mbed_official 514:7668256dbe61 240 #define MXC_F_USB_NAK_INT_NAK0 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK0_POS))
mbed_official 514:7668256dbe61 241 #define MXC_F_USB_NAK_INT_NAK1_POS 1
mbed_official 514:7668256dbe61 242 #define MXC_F_USB_NAK_INT_NAK1 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK1_POS))
mbed_official 514:7668256dbe61 243 #define MXC_F_USB_NAK_INT_NAK2_POS 2
mbed_official 514:7668256dbe61 244 #define MXC_F_USB_NAK_INT_NAK2 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK2_POS))
mbed_official 514:7668256dbe61 245 #define MXC_F_USB_NAK_INT_NAK3_POS 3
mbed_official 514:7668256dbe61 246 #define MXC_F_USB_NAK_INT_NAK3 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK3_POS))
mbed_official 514:7668256dbe61 247 #define MXC_F_USB_NAK_INT_NAK4_POS 4
mbed_official 514:7668256dbe61 248 #define MXC_F_USB_NAK_INT_NAK4 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK4_POS))
mbed_official 514:7668256dbe61 249 #define MXC_F_USB_NAK_INT_NAK5_POS 5
mbed_official 514:7668256dbe61 250 #define MXC_F_USB_NAK_INT_NAK5 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK5_POS))
mbed_official 514:7668256dbe61 251 #define MXC_F_USB_NAK_INT_NAK6_POS 6
mbed_official 514:7668256dbe61 252 #define MXC_F_USB_NAK_INT_NAK6 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK6_POS))
mbed_official 514:7668256dbe61 253 #define MXC_F_USB_NAK_INT_NAK7_POS 7
mbed_official 514:7668256dbe61 254 #define MXC_F_USB_NAK_INT_NAK7 ((uint32_t)(0x00000001UL << MXC_F_USB_NAK_INT_NAK7_POS))
mbed_official 514:7668256dbe61 255
mbed_official 514:7668256dbe61 256 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR0_POS 0
mbed_official 514:7668256dbe61 257 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR0 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR0_POS))
mbed_official 514:7668256dbe61 258 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR1_POS 1
mbed_official 514:7668256dbe61 259 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR1 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR1_POS))
mbed_official 514:7668256dbe61 260 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR2_POS 2
mbed_official 514:7668256dbe61 261 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR2 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR2_POS))
mbed_official 514:7668256dbe61 262 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR3_POS 3
mbed_official 514:7668256dbe61 263 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR3 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR3_POS))
mbed_official 514:7668256dbe61 264 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR4_POS 4
mbed_official 514:7668256dbe61 265 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR4 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR4_POS))
mbed_official 514:7668256dbe61 266 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR5_POS 5
mbed_official 514:7668256dbe61 267 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR5 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR5_POS))
mbed_official 514:7668256dbe61 268 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR6_POS 6
mbed_official 514:7668256dbe61 269 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR6 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR6_POS))
mbed_official 514:7668256dbe61 270 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR7_POS 7
mbed_official 514:7668256dbe61 271 #define MXC_F_USB_DMA_ERR_INT_DMA_ERR7 ((uint32_t)(0x00000001UL << MXC_F_USB_DMA_ERR_INT_DMA_ERR7_POS))
mbed_official 514:7668256dbe61 272
mbed_official 514:7668256dbe61 273 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR0_POS 0
mbed_official 514:7668256dbe61 274 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR0 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR0_POS))
mbed_official 514:7668256dbe61 275 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR1_POS 1
mbed_official 514:7668256dbe61 276 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR1 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR1_POS))
mbed_official 514:7668256dbe61 277 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR2_POS 2
mbed_official 514:7668256dbe61 278 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR2 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR2_POS))
mbed_official 514:7668256dbe61 279 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR3_POS 3
mbed_official 514:7668256dbe61 280 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR3 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR3_POS))
mbed_official 514:7668256dbe61 281 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR4_POS 4
mbed_official 514:7668256dbe61 282 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR4 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR4_POS))
mbed_official 514:7668256dbe61 283 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR5_POS 5
mbed_official 514:7668256dbe61 284 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR5 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR5_POS))
mbed_official 514:7668256dbe61 285 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR6_POS 6
mbed_official 514:7668256dbe61 286 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR6 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR6_POS))
mbed_official 514:7668256dbe61 287 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR7_POS 7
mbed_official 514:7668256dbe61 288 #define MXC_F_USB_BUF_OVR_INT_BUF_OVR7 ((uint32_t)(0x00000001UL << MXC_F_USB_BUF_OVR_INT_BUF_OVR7_POS))
mbed_official 514:7668256dbe61 289
mbed_official 514:7668256dbe61 290 #define MXC_F_USB_SETUP0_BYTE0_POS 0
mbed_official 514:7668256dbe61 291 #define MXC_F_USB_SETUP0_BYTE0 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE0_POS))
mbed_official 514:7668256dbe61 292 #define MXC_F_USB_SETUP0_BYTE1_POS 8
mbed_official 514:7668256dbe61 293 #define MXC_F_USB_SETUP0_BYTE1 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE1_POS))
mbed_official 514:7668256dbe61 294 #define MXC_F_USB_SETUP0_BYTE2_POS 16
mbed_official 514:7668256dbe61 295 #define MXC_F_USB_SETUP0_BYTE2 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE2_POS))
mbed_official 514:7668256dbe61 296 #define MXC_F_USB_SETUP0_BYTE3_POS 24
mbed_official 514:7668256dbe61 297 #define MXC_F_USB_SETUP0_BYTE3 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE3_POS))
mbed_official 514:7668256dbe61 298
mbed_official 514:7668256dbe61 299 #define MXC_F_USB_SETUP1_BYTE4_POS 0
mbed_official 514:7668256dbe61 300 #define MXC_F_USB_SETUP1_BYTE4 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE4_POS))
mbed_official 514:7668256dbe61 301 #define MXC_F_USB_SETUP1_BYTE5_POS 8
mbed_official 514:7668256dbe61 302 #define MXC_F_USB_SETUP1_BYTE5 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE5_POS))
mbed_official 514:7668256dbe61 303 #define MXC_F_USB_SETUP1_BYTE6_POS 16
mbed_official 514:7668256dbe61 304 #define MXC_F_USB_SETUP1_BYTE6 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE6_POS))
mbed_official 514:7668256dbe61 305 #define MXC_F_USB_SETUP1_BYTE7_POS 24
mbed_official 514:7668256dbe61 306 #define MXC_F_USB_SETUP1_BYTE7 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE7_POS))
mbed_official 514:7668256dbe61 307
mbed_official 514:7668256dbe61 308 #define MXC_F_USB_EP0_EP_DIR_POS 0
mbed_official 514:7668256dbe61 309 #define MXC_F_USB_EP0_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP0_EP_DIR_POS))
mbed_official 514:7668256dbe61 310 #define MXC_F_USB_EP0_EP_BUF2_POS 3
mbed_official 514:7668256dbe61 311 #define MXC_F_USB_EP0_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_BUF2_POS))
mbed_official 514:7668256dbe61 312 #define MXC_F_USB_EP0_EP_INT_EN_POS 4
mbed_official 514:7668256dbe61 313 #define MXC_F_USB_EP0_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_INT_EN_POS))
mbed_official 514:7668256dbe61 314 #define MXC_F_USB_EP0_EP_NAK_EN_POS 5
mbed_official 514:7668256dbe61 315 #define MXC_F_USB_EP0_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_NAK_EN_POS))
mbed_official 514:7668256dbe61 316 #define MXC_F_USB_EP0_EP_DT_POS 6
mbed_official 514:7668256dbe61 317 #define MXC_F_USB_EP0_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_DT_POS))
mbed_official 514:7668256dbe61 318 #define MXC_F_USB_EP0_EP_STALL_POS 8
mbed_official 514:7668256dbe61 319 #define MXC_F_USB_EP0_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_STALL_POS))
mbed_official 514:7668256dbe61 320 #define MXC_F_USB_EP0_EP_ST_STALL_POS 9
mbed_official 514:7668256dbe61 321 #define MXC_F_USB_EP0_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_ST_STALL_POS))
mbed_official 514:7668256dbe61 322 #define MXC_F_USB_EP0_EP_ST_ACK_POS 10
mbed_official 514:7668256dbe61 323 #define MXC_F_USB_EP0_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP0_EP_ST_ACK_POS))
mbed_official 514:7668256dbe61 324
mbed_official 514:7668256dbe61 325 #define MXC_F_USB_EP1_EP_DIR_POS 0
mbed_official 514:7668256dbe61 326 #define MXC_F_USB_EP1_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP1_EP_DIR_POS))
mbed_official 514:7668256dbe61 327 #define MXC_F_USB_EP1_EP_BUF2_POS 3
mbed_official 514:7668256dbe61 328 #define MXC_F_USB_EP1_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_BUF2_POS))
mbed_official 514:7668256dbe61 329 #define MXC_F_USB_EP1_EP_INT_EN_POS 4
mbed_official 514:7668256dbe61 330 #define MXC_F_USB_EP1_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_INT_EN_POS))
mbed_official 514:7668256dbe61 331 #define MXC_F_USB_EP1_EP_NAK_EN_POS 5
mbed_official 514:7668256dbe61 332 #define MXC_F_USB_EP1_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_NAK_EN_POS))
mbed_official 514:7668256dbe61 333 #define MXC_F_USB_EP1_EP_DT_POS 6
mbed_official 514:7668256dbe61 334 #define MXC_F_USB_EP1_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_DT_POS))
mbed_official 514:7668256dbe61 335 #define MXC_F_USB_EP1_EP_STALL_POS 8
mbed_official 514:7668256dbe61 336 #define MXC_F_USB_EP1_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_STALL_POS))
mbed_official 514:7668256dbe61 337 #define MXC_F_USB_EP1_EP_ST_STALL_POS 9
mbed_official 514:7668256dbe61 338 #define MXC_F_USB_EP1_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_ST_STALL_POS))
mbed_official 514:7668256dbe61 339 #define MXC_F_USB_EP1_EP_ST_ACK_POS 10
mbed_official 514:7668256dbe61 340 #define MXC_F_USB_EP1_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP1_EP_ST_ACK_POS))
mbed_official 514:7668256dbe61 341
mbed_official 514:7668256dbe61 342 #define MXC_F_USB_EP2_EP_DIR_POS 0
mbed_official 514:7668256dbe61 343 #define MXC_F_USB_EP2_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP2_EP_DIR_POS))
mbed_official 514:7668256dbe61 344 #define MXC_F_USB_EP2_EP_BUF2_POS 3
mbed_official 514:7668256dbe61 345 #define MXC_F_USB_EP2_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_BUF2_POS))
mbed_official 514:7668256dbe61 346 #define MXC_F_USB_EP2_EP_INT_EN_POS 4
mbed_official 514:7668256dbe61 347 #define MXC_F_USB_EP2_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_INT_EN_POS))
mbed_official 514:7668256dbe61 348 #define MXC_F_USB_EP2_EP_NAK_EN_POS 5
mbed_official 514:7668256dbe61 349 #define MXC_F_USB_EP2_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_NAK_EN_POS))
mbed_official 514:7668256dbe61 350 #define MXC_F_USB_EP2_EP_DT_POS 6
mbed_official 514:7668256dbe61 351 #define MXC_F_USB_EP2_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_DT_POS))
mbed_official 514:7668256dbe61 352 #define MXC_F_USB_EP2_EP_STALL_POS 8
mbed_official 514:7668256dbe61 353 #define MXC_F_USB_EP2_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_STALL_POS))
mbed_official 514:7668256dbe61 354 #define MXC_F_USB_EP2_EP_ST_STALL_POS 9
mbed_official 514:7668256dbe61 355 #define MXC_F_USB_EP2_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_ST_STALL_POS))
mbed_official 514:7668256dbe61 356 #define MXC_F_USB_EP2_EP_ST_ACK_POS 10
mbed_official 514:7668256dbe61 357 #define MXC_F_USB_EP2_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP2_EP_ST_ACK_POS))
mbed_official 514:7668256dbe61 358
mbed_official 514:7668256dbe61 359 #define MXC_F_USB_EP3_EP_DIR_POS 0
mbed_official 514:7668256dbe61 360 #define MXC_F_USB_EP3_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP3_EP_DIR_POS))
mbed_official 514:7668256dbe61 361 #define MXC_F_USB_EP3_EP_BUF2_POS 3
mbed_official 514:7668256dbe61 362 #define MXC_F_USB_EP3_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_BUF2_POS))
mbed_official 514:7668256dbe61 363 #define MXC_F_USB_EP3_EP_INT_EN_POS 4
mbed_official 514:7668256dbe61 364 #define MXC_F_USB_EP3_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_INT_EN_POS))
mbed_official 514:7668256dbe61 365 #define MXC_F_USB_EP3_EP_NAK_EN_POS 5
mbed_official 514:7668256dbe61 366 #define MXC_F_USB_EP3_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_NAK_EN_POS))
mbed_official 514:7668256dbe61 367 #define MXC_F_USB_EP3_EP_DT_POS 6
mbed_official 514:7668256dbe61 368 #define MXC_F_USB_EP3_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_DT_POS))
mbed_official 514:7668256dbe61 369 #define MXC_F_USB_EP3_EP_STALL_POS 8
mbed_official 514:7668256dbe61 370 #define MXC_F_USB_EP3_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_STALL_POS))
mbed_official 514:7668256dbe61 371 #define MXC_F_USB_EP3_EP_ST_STALL_POS 9
mbed_official 514:7668256dbe61 372 #define MXC_F_USB_EP3_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_ST_STALL_POS))
mbed_official 514:7668256dbe61 373 #define MXC_F_USB_EP3_EP_ST_ACK_POS 10
mbed_official 514:7668256dbe61 374 #define MXC_F_USB_EP3_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP3_EP_ST_ACK_POS))
mbed_official 514:7668256dbe61 375
mbed_official 514:7668256dbe61 376 #define MXC_F_USB_EP4_EP_DIR_POS 0
mbed_official 514:7668256dbe61 377 #define MXC_F_USB_EP4_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP4_EP_DIR_POS))
mbed_official 514:7668256dbe61 378 #define MXC_F_USB_EP4_EP_BUF2_POS 3
mbed_official 514:7668256dbe61 379 #define MXC_F_USB_EP4_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_BUF2_POS))
mbed_official 514:7668256dbe61 380 #define MXC_F_USB_EP4_EP_INT_EN_POS 4
mbed_official 514:7668256dbe61 381 #define MXC_F_USB_EP4_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_INT_EN_POS))
mbed_official 514:7668256dbe61 382 #define MXC_F_USB_EP4_EP_NAK_EN_POS 5
mbed_official 514:7668256dbe61 383 #define MXC_F_USB_EP4_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_NAK_EN_POS))
mbed_official 514:7668256dbe61 384 #define MXC_F_USB_EP4_EP_DT_POS 6
mbed_official 514:7668256dbe61 385 #define MXC_F_USB_EP4_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_DT_POS))
mbed_official 514:7668256dbe61 386 #define MXC_F_USB_EP4_EP_STALL_POS 8
mbed_official 514:7668256dbe61 387 #define MXC_F_USB_EP4_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_STALL_POS))
mbed_official 514:7668256dbe61 388 #define MXC_F_USB_EP4_EP_ST_STALL_POS 9
mbed_official 514:7668256dbe61 389 #define MXC_F_USB_EP4_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_ST_STALL_POS))
mbed_official 514:7668256dbe61 390 #define MXC_F_USB_EP4_EP_ST_ACK_POS 10
mbed_official 514:7668256dbe61 391 #define MXC_F_USB_EP4_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP4_EP_ST_ACK_POS))
mbed_official 514:7668256dbe61 392
mbed_official 514:7668256dbe61 393 #define MXC_F_USB_EP5_EP_DIR_POS 0
mbed_official 514:7668256dbe61 394 #define MXC_F_USB_EP5_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP5_EP_DIR_POS))
mbed_official 514:7668256dbe61 395 #define MXC_F_USB_EP5_EP_BUF2_POS 3
mbed_official 514:7668256dbe61 396 #define MXC_F_USB_EP5_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_BUF2_POS))
mbed_official 514:7668256dbe61 397 #define MXC_F_USB_EP5_EP_INT_EN_POS 4
mbed_official 514:7668256dbe61 398 #define MXC_F_USB_EP5_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_INT_EN_POS))
mbed_official 514:7668256dbe61 399 #define MXC_F_USB_EP5_EP_NAK_EN_POS 5
mbed_official 514:7668256dbe61 400 #define MXC_F_USB_EP5_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_NAK_EN_POS))
mbed_official 514:7668256dbe61 401 #define MXC_F_USB_EP5_EP_DT_POS 6
mbed_official 514:7668256dbe61 402 #define MXC_F_USB_EP5_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_DT_POS))
mbed_official 514:7668256dbe61 403 #define MXC_F_USB_EP5_EP_STALL_POS 8
mbed_official 514:7668256dbe61 404 #define MXC_F_USB_EP5_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_STALL_POS))
mbed_official 514:7668256dbe61 405 #define MXC_F_USB_EP5_EP_ST_STALL_POS 9
mbed_official 514:7668256dbe61 406 #define MXC_F_USB_EP5_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_ST_STALL_POS))
mbed_official 514:7668256dbe61 407 #define MXC_F_USB_EP5_EP_ST_ACK_POS 10
mbed_official 514:7668256dbe61 408 #define MXC_F_USB_EP5_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP5_EP_ST_ACK_POS))
mbed_official 514:7668256dbe61 409
mbed_official 514:7668256dbe61 410 #define MXC_F_USB_EP6_EP_DIR_POS 0
mbed_official 514:7668256dbe61 411 #define MXC_F_USB_EP6_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP6_EP_DIR_POS))
mbed_official 514:7668256dbe61 412 #define MXC_F_USB_EP6_EP_BUF2_POS 3
mbed_official 514:7668256dbe61 413 #define MXC_F_USB_EP6_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_BUF2_POS))
mbed_official 514:7668256dbe61 414 #define MXC_F_USB_EP6_EP_INT_EN_POS 4
mbed_official 514:7668256dbe61 415 #define MXC_F_USB_EP6_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_INT_EN_POS))
mbed_official 514:7668256dbe61 416 #define MXC_F_USB_EP6_EP_NAK_EN_POS 5
mbed_official 514:7668256dbe61 417 #define MXC_F_USB_EP6_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_NAK_EN_POS))
mbed_official 514:7668256dbe61 418 #define MXC_F_USB_EP6_EP_DT_POS 6
mbed_official 514:7668256dbe61 419 #define MXC_F_USB_EP6_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_DT_POS))
mbed_official 514:7668256dbe61 420 #define MXC_F_USB_EP6_EP_STALL_POS 8
mbed_official 514:7668256dbe61 421 #define MXC_F_USB_EP6_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_STALL_POS))
mbed_official 514:7668256dbe61 422 #define MXC_F_USB_EP6_EP_ST_STALL_POS 9
mbed_official 514:7668256dbe61 423 #define MXC_F_USB_EP6_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_ST_STALL_POS))
mbed_official 514:7668256dbe61 424 #define MXC_F_USB_EP6_EP_ST_ACK_POS 10
mbed_official 514:7668256dbe61 425 #define MXC_F_USB_EP6_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP6_EP_ST_ACK_POS))
mbed_official 514:7668256dbe61 426
mbed_official 514:7668256dbe61 427 #define MXC_F_USB_EP7_EP_DIR_POS 0
mbed_official 514:7668256dbe61 428 #define MXC_F_USB_EP7_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP7_EP_DIR_POS))
mbed_official 514:7668256dbe61 429 #define MXC_F_USB_EP7_EP_BUF2_POS 3
mbed_official 514:7668256dbe61 430 #define MXC_F_USB_EP7_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_BUF2_POS))
mbed_official 514:7668256dbe61 431 #define MXC_F_USB_EP7_EP_INT_EN_POS 4
mbed_official 514:7668256dbe61 432 #define MXC_F_USB_EP7_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_INT_EN_POS))
mbed_official 514:7668256dbe61 433 #define MXC_F_USB_EP7_EP_NAK_EN_POS 5
mbed_official 514:7668256dbe61 434 #define MXC_F_USB_EP7_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_NAK_EN_POS))
mbed_official 514:7668256dbe61 435 #define MXC_F_USB_EP7_EP_DT_POS 6
mbed_official 514:7668256dbe61 436 #define MXC_F_USB_EP7_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_DT_POS))
mbed_official 514:7668256dbe61 437 #define MXC_F_USB_EP7_EP_STALL_POS 8
mbed_official 514:7668256dbe61 438 #define MXC_F_USB_EP7_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_STALL_POS))
mbed_official 514:7668256dbe61 439 #define MXC_F_USB_EP7_EP_ST_STALL_POS 9
mbed_official 514:7668256dbe61 440 #define MXC_F_USB_EP7_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_ST_STALL_POS))
mbed_official 514:7668256dbe61 441 #define MXC_F_USB_EP7_EP_ST_ACK_POS 10
mbed_official 514:7668256dbe61 442 #define MXC_F_USB_EP7_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP7_EP_ST_ACK_POS))
mbed_official 514:7668256dbe61 443
mbed_official 514:7668256dbe61 444 #define MXC_F_USB_EP_DIR_POS (0)
mbed_official 514:7668256dbe61 445 #define MXC_F_USB_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP_DIR_POS))
mbed_official 514:7668256dbe61 446
mbed_official 514:7668256dbe61 447 #define MXC_V_USB_EP_DIR_DISABLE ((uint32_t)0x00000000UL)
mbed_official 514:7668256dbe61 448 #define MXC_V_USB_EP_DIR_OUT ((uint32_t)0x00000001UL)
mbed_official 514:7668256dbe61 449 #define MXC_V_USB_EP_DIR_IN ((uint32_t)0x00000002UL)
mbed_official 514:7668256dbe61 450 #define MXC_V_USB_EP_DIR_CONTROL ((uint32_t)0x00000003UL)
mbed_official 514:7668256dbe61 451
mbed_official 514:7668256dbe61 452 #define MXC_S_USB_EP_DIR_DISABLE (MXC_V_USB_EP_DIR_DISABLE << MXC_F_USB_EP_DIR_POS)
mbed_official 514:7668256dbe61 453 #define MXC_S_USB_EP_DIR_OUT (MXC_V_USB_EP_DIR_OUT << MXC_F_USB_EP_DIR_POS)
mbed_official 514:7668256dbe61 454 #define MXC_S_USB_EP_DIR_IN (MXC_V_USB_EP_DIR_IN << MXC_F_USB_EP_DIR_POS)
mbed_official 514:7668256dbe61 455 #define MXC_S_USB_EP_DIR_CONTROL (MXC_V_USB_EP_DIR_CONTROL << MXC_F_USB_EP_DIR_POS)
mbed_official 514:7668256dbe61 456
mbed_official 514:7668256dbe61 457 #define MXC_F_USB_EP_BUF2_POS (3)
mbed_official 514:7668256dbe61 458 #define MXC_F_USB_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP_BUF2_POS))
mbed_official 514:7668256dbe61 459 #define MXC_F_USB_EP_INTEN_POS (4)
mbed_official 514:7668256dbe61 460 #define MXC_F_USB_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP_INTEN_POS))
mbed_official 514:7668256dbe61 461 #define MXC_F_USB_EP_NAK_EN_POS (5)
mbed_official 514:7668256dbe61 462 #define MXC_F_USB_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP_NAK_EN_POS))
mbed_official 514:7668256dbe61 463 #define MXC_F_USB_EP_DT_POS (6)
mbed_official 514:7668256dbe61 464 #define MXC_F_USB_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP_DT_POS))
mbed_official 514:7668256dbe61 465 #define MXC_F_USB_EP_STALL_POS (8)
mbed_official 514:7668256dbe61 466 #define MXC_F_USB_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP_STALL_POS))
mbed_official 514:7668256dbe61 467 #define MXC_F_USB_EP_ST_STALL_POS (9)
mbed_official 514:7668256dbe61 468 #define MXC_F_USB_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP_ST_STALL_POS))
mbed_official 514:7668256dbe61 469 #define MXC_F_USB_EP_ST_ACK_POS (10)
mbed_official 514:7668256dbe61 470 #define MXC_F_USB_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP_ST_ACK_POS))
mbed_official 514:7668256dbe61 471
mbed_official 514:7668256dbe61 472 #ifdef __cplusplus
mbed_official 514:7668256dbe61 473 }
mbed_official 514:7668256dbe61 474 #endif
mbed_official 514:7668256dbe61 475
mbed_official 514:7668256dbe61 476 /**
mbed_official 514:7668256dbe61 477 * @}
mbed_official 514:7668256dbe61 478 */
mbed_official 514:7668256dbe61 479
mbed_official 514:7668256dbe61 480 #endif /* _MXC_USB_REGS_H_ */