Repostiory containing DAPLink source code with Reset Pin workaround for HANI_IOT board.
Upstream: https://github.com/ARMmbed/DAPLink
source/hic_hal/maxim/max32620/usb_regs.h@0:01f31e923fe2, 2020-04-07 (annotated)
- Committer:
- Pawel Zarembski
- Date:
- Tue Apr 07 12:55:42 2020 +0200
- Revision:
- 0:01f31e923fe2
hani: DAPLink with reset workaround
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Pawel Zarembski |
0:01f31e923fe2 | 1 | /******************************************************************************* |
Pawel Zarembski |
0:01f31e923fe2 | 2 | * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. |
Pawel Zarembski |
0:01f31e923fe2 | 3 | * |
Pawel Zarembski |
0:01f31e923fe2 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
Pawel Zarembski |
0:01f31e923fe2 | 5 | * copy of this software and associated documentation files (the "Software"), |
Pawel Zarembski |
0:01f31e923fe2 | 6 | * to deal in the Software without restriction, including without limitation |
Pawel Zarembski |
0:01f31e923fe2 | 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
Pawel Zarembski |
0:01f31e923fe2 | 8 | * and/or sell copies of the Software, and to permit persons to whom the |
Pawel Zarembski |
0:01f31e923fe2 | 9 | * Software is furnished to do so, subject to the following conditions: |
Pawel Zarembski |
0:01f31e923fe2 | 10 | * |
Pawel Zarembski |
0:01f31e923fe2 | 11 | * The above copyright notice and this permission notice shall be included |
Pawel Zarembski |
0:01f31e923fe2 | 12 | * in all copies or substantial portions of the Software. |
Pawel Zarembski |
0:01f31e923fe2 | 13 | * |
Pawel Zarembski |
0:01f31e923fe2 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
Pawel Zarembski |
0:01f31e923fe2 | 15 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
Pawel Zarembski |
0:01f31e923fe2 | 16 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
Pawel Zarembski |
0:01f31e923fe2 | 17 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
Pawel Zarembski |
0:01f31e923fe2 | 18 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
Pawel Zarembski |
0:01f31e923fe2 | 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
Pawel Zarembski |
0:01f31e923fe2 | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
Pawel Zarembski |
0:01f31e923fe2 | 21 | * |
Pawel Zarembski |
0:01f31e923fe2 | 22 | * Except as contained in this notice, the name of Maxim Integrated |
Pawel Zarembski |
0:01f31e923fe2 | 23 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
Pawel Zarembski |
0:01f31e923fe2 | 24 | * Products, Inc. Branding Policy. |
Pawel Zarembski |
0:01f31e923fe2 | 25 | * |
Pawel Zarembski |
0:01f31e923fe2 | 26 | * The mere transfer of this software does not imply any licenses |
Pawel Zarembski |
0:01f31e923fe2 | 27 | * of trade secrets, proprietary technology, copyrights, patents, |
Pawel Zarembski |
0:01f31e923fe2 | 28 | * trademarks, maskwork rights, or any other form of intellectual |
Pawel Zarembski |
0:01f31e923fe2 | 29 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
Pawel Zarembski |
0:01f31e923fe2 | 30 | * ownership rights. |
Pawel Zarembski |
0:01f31e923fe2 | 31 | * |
Pawel Zarembski |
0:01f31e923fe2 | 32 | ******************************************************************************/ |
Pawel Zarembski |
0:01f31e923fe2 | 33 | |
Pawel Zarembski |
0:01f31e923fe2 | 34 | #ifndef _MXC_USB_REGS_H_ |
Pawel Zarembski |
0:01f31e923fe2 | 35 | #define _MXC_USB_REGS_H_ |
Pawel Zarembski |
0:01f31e923fe2 | 36 | |
Pawel Zarembski |
0:01f31e923fe2 | 37 | #ifdef __cplusplus |
Pawel Zarembski |
0:01f31e923fe2 | 38 | extern "C" { |
Pawel Zarembski |
0:01f31e923fe2 | 39 | #endif |
Pawel Zarembski |
0:01f31e923fe2 | 40 | |
Pawel Zarembski |
0:01f31e923fe2 | 41 | #include <stdint.h> |
Pawel Zarembski |
0:01f31e923fe2 | 42 | |
Pawel Zarembski |
0:01f31e923fe2 | 43 | /* |
Pawel Zarembski |
0:01f31e923fe2 | 44 | If types are not defined elsewhere (CMSIS) define them here |
Pawel Zarembski |
0:01f31e923fe2 | 45 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 46 | #ifndef __IO |
Pawel Zarembski |
0:01f31e923fe2 | 47 | #define __IO volatile |
Pawel Zarembski |
0:01f31e923fe2 | 48 | #endif |
Pawel Zarembski |
0:01f31e923fe2 | 49 | #ifndef __I |
Pawel Zarembski |
0:01f31e923fe2 | 50 | #define __I volatile const |
Pawel Zarembski |
0:01f31e923fe2 | 51 | #endif |
Pawel Zarembski |
0:01f31e923fe2 | 52 | #ifndef __O |
Pawel Zarembski |
0:01f31e923fe2 | 53 | #define __O volatile |
Pawel Zarembski |
0:01f31e923fe2 | 54 | #endif |
Pawel Zarembski |
0:01f31e923fe2 | 55 | #ifndef __R |
Pawel Zarembski |
0:01f31e923fe2 | 56 | #define __R volatile const |
Pawel Zarembski |
0:01f31e923fe2 | 57 | #endif |
Pawel Zarembski |
0:01f31e923fe2 | 58 | |
Pawel Zarembski |
0:01f31e923fe2 | 59 | |
Pawel Zarembski |
0:01f31e923fe2 | 60 | #define MXC_V_USB_EP_DIR_DISABLE ((uint32_t)0x00000000UL) |
Pawel Zarembski |
0:01f31e923fe2 | 61 | #define MXC_V_USB_EP_DIR_OUT ((uint32_t)0x00000001UL) |
Pawel Zarembski |
0:01f31e923fe2 | 62 | #define MXC_V_USB_EP_DIR_IN ((uint32_t)0x00000002UL) |
Pawel Zarembski |
0:01f31e923fe2 | 63 | #define MXC_V_USB_EP_DIR_CONTROL ((uint32_t)0x00000003UL) |
Pawel Zarembski |
0:01f31e923fe2 | 64 | |
Pawel Zarembski |
0:01f31e923fe2 | 65 | #define MXC_S_USB_EP_DIR_DISABLE (MXC_V_USB_EP_DIR_DISABLE << MXC_F_USB_EP_DIR_POS) |
Pawel Zarembski |
0:01f31e923fe2 | 66 | #define MXC_S_USB_EP_DIR_OUT (MXC_V_USB_EP_DIR_OUT << MXC_F_USB_EP_DIR_POS) |
Pawel Zarembski |
0:01f31e923fe2 | 67 | #define MXC_S_USB_EP_DIR_IN (MXC_V_USB_EP_DIR_IN << MXC_F_USB_EP_DIR_POS) |
Pawel Zarembski |
0:01f31e923fe2 | 68 | #define MXC_S_USB_EP_DIR_CONTROL (MXC_V_USB_EP_DIR_CONTROL << MXC_F_USB_EP_DIR_POS) |
Pawel Zarembski |
0:01f31e923fe2 | 69 | |
Pawel Zarembski |
0:01f31e923fe2 | 70 | /* |
Pawel Zarembski |
0:01f31e923fe2 | 71 | Typedefed structure(s) for module registers (per instance or section) with direct 32-bit |
Pawel Zarembski |
0:01f31e923fe2 | 72 | access to each register in module. |
Pawel Zarembski |
0:01f31e923fe2 | 73 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 74 | |
Pawel Zarembski |
0:01f31e923fe2 | 75 | /* Offset Register Description |
Pawel Zarembski |
0:01f31e923fe2 | 76 | ============= ============================================================================ */ |
Pawel Zarembski |
0:01f31e923fe2 | 77 | typedef struct { |
Pawel Zarembski |
0:01f31e923fe2 | 78 | __IO uint32_t cn; /* 0x0000 USB Control Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 79 | __R uint32_t rsv004[127]; /* 0x0004-0x01FC */ |
Pawel Zarembski |
0:01f31e923fe2 | 80 | __IO uint32_t dev_addr; /* 0x0200 USB Device Address Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 81 | __IO uint32_t dev_cn; /* 0x0204 USB Device Control Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 82 | __IO uint32_t dev_intfl; /* 0x0208 USB Device Interrupt */ |
Pawel Zarembski |
0:01f31e923fe2 | 83 | __IO uint32_t dev_inten; /* 0x020C USB Device Interrupt Enable */ |
Pawel Zarembski |
0:01f31e923fe2 | 84 | __R uint32_t rsv210[4]; /* 0x0210-0x021C */ |
Pawel Zarembski |
0:01f31e923fe2 | 85 | __IO uint32_t ep_base; /* 0x0220 USB Endpoint Descriptor Table Base Address */ |
Pawel Zarembski |
0:01f31e923fe2 | 86 | __IO uint32_t cur_buf; /* 0x0224 USB Current Endpoint Buffer Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 87 | __IO uint32_t in_owner; /* 0x0228 USB IN Endpoint Buffer Owner Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 88 | __IO uint32_t out_owner; /* 0x022C USB OUT Endpoint Buffer Owner Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 89 | __IO uint32_t in_int; /* 0x0230 USB IN Endpoint Buffer Available Interrupt */ |
Pawel Zarembski |
0:01f31e923fe2 | 90 | __IO uint32_t out_int; /* 0x0234 USB OUT Endpoint Data Available Interrupt */ |
Pawel Zarembski |
0:01f31e923fe2 | 91 | __IO uint32_t nak_int; /* 0x0238 USB IN Endpoint NAK Interrupt */ |
Pawel Zarembski |
0:01f31e923fe2 | 92 | __IO uint32_t dma_err_int; /* 0x023C USB DMA Error Interrupt */ |
Pawel Zarembski |
0:01f31e923fe2 | 93 | __IO uint32_t buf_ovr_int; /* 0x0240 USB Buffer Overflow Interrupt */ |
Pawel Zarembski |
0:01f31e923fe2 | 94 | __R uint32_t rsv244[7]; /* 0x0244-0x025C */ |
Pawel Zarembski |
0:01f31e923fe2 | 95 | __IO uint32_t setup0; /* 0x0260 USB SETUP Packet Bytes 0 to 3 */ |
Pawel Zarembski |
0:01f31e923fe2 | 96 | __IO uint32_t setup1; /* 0x0264 USB SETUP Packet Bytes 4 to 7 */ |
Pawel Zarembski |
0:01f31e923fe2 | 97 | __R uint32_t rsv268[6]; /* 0x0268-0x027C */ |
Pawel Zarembski |
0:01f31e923fe2 | 98 | __IO uint32_t ep[8]; /* 0x0280-0x029C USB Endpoint[n] Control Register */ |
Pawel Zarembski |
0:01f31e923fe2 | 99 | } mxc_usb_regs_t; |
Pawel Zarembski |
0:01f31e923fe2 | 100 | |
Pawel Zarembski |
0:01f31e923fe2 | 101 | |
Pawel Zarembski |
0:01f31e923fe2 | 102 | /* |
Pawel Zarembski |
0:01f31e923fe2 | 103 | Register offsets for module USB. |
Pawel Zarembski |
0:01f31e923fe2 | 104 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 105 | |
Pawel Zarembski |
0:01f31e923fe2 | 106 | #define MXC_R_USB_OFFS_CN ((uint32_t)0x00000000UL) |
Pawel Zarembski |
0:01f31e923fe2 | 107 | #define MXC_R_USB_OFFS_DEV_ADDR ((uint32_t)0x00000200UL) |
Pawel Zarembski |
0:01f31e923fe2 | 108 | #define MXC_R_USB_OFFS_DEV_CN ((uint32_t)0x00000204UL) |
Pawel Zarembski |
0:01f31e923fe2 | 109 | #define MXC_R_USB_OFFS_DEV_INTFL ((uint32_t)0x00000208UL) |
Pawel Zarembski |
0:01f31e923fe2 | 110 | #define MXC_R_USB_OFFS_DEV_INTEN ((uint32_t)0x0000020CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 111 | #define MXC_R_USB_OFFS_EP_BASE ((uint32_t)0x00000220UL) |
Pawel Zarembski |
0:01f31e923fe2 | 112 | #define MXC_R_USB_OFFS_CUR_BUF ((uint32_t)0x00000224UL) |
Pawel Zarembski |
0:01f31e923fe2 | 113 | #define MXC_R_USB_OFFS_IN_OWNER ((uint32_t)0x00000228UL) |
Pawel Zarembski |
0:01f31e923fe2 | 114 | #define MXC_R_USB_OFFS_OUT_OWNER ((uint32_t)0x0000022CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 115 | #define MXC_R_USB_OFFS_IN_INT ((uint32_t)0x00000230UL) |
Pawel Zarembski |
0:01f31e923fe2 | 116 | #define MXC_R_USB_OFFS_OUT_INT ((uint32_t)0x00000234UL) |
Pawel Zarembski |
0:01f31e923fe2 | 117 | #define MXC_R_USB_OFFS_NAK_INT ((uint32_t)0x00000238UL) |
Pawel Zarembski |
0:01f31e923fe2 | 118 | #define MXC_R_USB_OFFS_DMA_ERR_INT ((uint32_t)0x0000023CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 119 | #define MXC_R_USB_OFFS_BUF_OVR_INT ((uint32_t)0x00000240UL) |
Pawel Zarembski |
0:01f31e923fe2 | 120 | #define MXC_R_USB_OFFS_SETUP0 ((uint32_t)0x00000260UL) |
Pawel Zarembski |
0:01f31e923fe2 | 121 | #define MXC_R_USB_OFFS_SETUP1 ((uint32_t)0x00000264UL) |
Pawel Zarembski |
0:01f31e923fe2 | 122 | #define MXC_R_USB_OFFS_EP0 ((uint32_t)0x00000280UL) |
Pawel Zarembski |
0:01f31e923fe2 | 123 | #define MXC_R_USB_OFFS_EP1 ((uint32_t)0x00000284UL) |
Pawel Zarembski |
0:01f31e923fe2 | 124 | #define MXC_R_USB_OFFS_EP2 ((uint32_t)0x00000288UL) |
Pawel Zarembski |
0:01f31e923fe2 | 125 | #define MXC_R_USB_OFFS_EP3 ((uint32_t)0x0000028CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 126 | #define MXC_R_USB_OFFS_EP4 ((uint32_t)0x00000290UL) |
Pawel Zarembski |
0:01f31e923fe2 | 127 | #define MXC_R_USB_OFFS_EP5 ((uint32_t)0x00000294UL) |
Pawel Zarembski |
0:01f31e923fe2 | 128 | #define MXC_R_USB_OFFS_EP6 ((uint32_t)0x00000298UL) |
Pawel Zarembski |
0:01f31e923fe2 | 129 | #define MXC_R_USB_OFFS_EP7 ((uint32_t)0x0000029CUL) |
Pawel Zarembski |
0:01f31e923fe2 | 130 | |
Pawel Zarembski |
0:01f31e923fe2 | 131 | |
Pawel Zarembski |
0:01f31e923fe2 | 132 | /* |
Pawel Zarembski |
0:01f31e923fe2 | 133 | Field positions and masks for module USB. |
Pawel Zarembski |
0:01f31e923fe2 | 134 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 135 | |
Pawel Zarembski |
0:01f31e923fe2 | 136 | #define MXC_F_USB_CN_USB_EN_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 137 | #define MXC_F_USB_CN_USB_EN ((uint32_t)(0x00000001UL << MXC_F_USB_CN_USB_EN_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 138 | #define MXC_F_USB_CN_HOST_POS 1 |
Pawel Zarembski |
0:01f31e923fe2 | 139 | #define MXC_F_USB_CN_HOST ((uint32_t)(0x00000001UL << MXC_F_USB_CN_HOST_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 140 | |
Pawel Zarembski |
0:01f31e923fe2 | 141 | #define MXC_F_USB_DEV_ADDR_DEV_ADDR_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 142 | #define MXC_F_USB_DEV_ADDR_DEV_ADDR ((uint32_t)(0x0000007FUL << MXC_F_USB_DEV_ADDR_DEV_ADDR_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 143 | |
Pawel Zarembski |
0:01f31e923fe2 | 144 | #define MXC_F_USB_DEV_CN_SIGRWU_POS 2 |
Pawel Zarembski |
0:01f31e923fe2 | 145 | #define MXC_F_USB_DEV_CN_SIGRWU ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_SIGRWU_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 146 | #define MXC_F_USB_DEV_CN_CONNECT_POS 3 |
Pawel Zarembski |
0:01f31e923fe2 | 147 | #define MXC_F_USB_DEV_CN_CONNECT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_CONNECT_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 148 | #define MXC_F_USB_DEV_CN_ULPM_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 149 | #define MXC_F_USB_DEV_CN_ULPM ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_ULPM_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 150 | #define MXC_F_USB_DEV_CN_URST_POS 5 |
Pawel Zarembski |
0:01f31e923fe2 | 151 | #define MXC_F_USB_DEV_CN_URST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_URST_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 152 | #define MXC_F_USB_DEV_CN_VBGATE_POS 6 |
Pawel Zarembski |
0:01f31e923fe2 | 153 | #define MXC_F_USB_DEV_CN_VBGATE ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_VBGATE_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 154 | #define MXC_F_USB_DEV_CN_OSCEN_POS 7 |
Pawel Zarembski |
0:01f31e923fe2 | 155 | #define MXC_F_USB_DEV_CN_OSCEN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_OSCEN_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 156 | #define MXC_F_USB_DEV_CN_BACT_OE_POS 8 |
Pawel Zarembski |
0:01f31e923fe2 | 157 | #define MXC_F_USB_DEV_CN_BACT_OE ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_BACT_OE_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 158 | #define MXC_F_USB_DEV_CN_FIFO_MODE_POS 9 |
Pawel Zarembski |
0:01f31e923fe2 | 159 | #define MXC_F_USB_DEV_CN_FIFO_MODE ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_CN_FIFO_MODE_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 160 | |
Pawel Zarembski |
0:01f31e923fe2 | 161 | #define MXC_F_USB_DEV_INTFL_DPACT_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 162 | #define MXC_F_USB_DEV_INTFL_DPACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_DPACT_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 163 | #define MXC_F_USB_DEV_INTFL_RWU_DN_POS 1 |
Pawel Zarembski |
0:01f31e923fe2 | 164 | #define MXC_F_USB_DEV_INTFL_RWU_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_RWU_DN_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 165 | #define MXC_F_USB_DEV_INTFL_BACT_POS 2 |
Pawel Zarembski |
0:01f31e923fe2 | 166 | #define MXC_F_USB_DEV_INTFL_BACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BACT_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 167 | #define MXC_F_USB_DEV_INTFL_BRST_POS 3 |
Pawel Zarembski |
0:01f31e923fe2 | 168 | #define MXC_F_USB_DEV_INTFL_BRST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BRST_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 169 | #define MXC_F_USB_DEV_INTFL_SUSP_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 170 | #define MXC_F_USB_DEV_INTFL_SUSP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_SUSP_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 171 | #define MXC_F_USB_DEV_INTFL_NO_VBUS_POS 5 |
Pawel Zarembski |
0:01f31e923fe2 | 172 | #define MXC_F_USB_DEV_INTFL_NO_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_NO_VBUS_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 173 | #define MXC_F_USB_DEV_INTFL_VBUS_POS 6 |
Pawel Zarembski |
0:01f31e923fe2 | 174 | #define MXC_F_USB_DEV_INTFL_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_VBUS_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 175 | #define MXC_F_USB_DEV_INTFL_BRST_DN_POS 7 |
Pawel Zarembski |
0:01f31e923fe2 | 176 | #define MXC_F_USB_DEV_INTFL_BRST_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BRST_DN_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 177 | #define MXC_F_USB_DEV_INTFL_SETUP_POS 8 |
Pawel Zarembski |
0:01f31e923fe2 | 178 | #define MXC_F_USB_DEV_INTFL_SETUP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_SETUP_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 179 | #define MXC_F_USB_DEV_INTFL_EP_IN_POS 9 |
Pawel Zarembski |
0:01f31e923fe2 | 180 | #define MXC_F_USB_DEV_INTFL_EP_IN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_IN_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 181 | #define MXC_F_USB_DEV_INTFL_EP_OUT_POS 10 |
Pawel Zarembski |
0:01f31e923fe2 | 182 | #define MXC_F_USB_DEV_INTFL_EP_OUT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_OUT_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 183 | #define MXC_F_USB_DEV_INTFL_EP_NAK_POS 11 |
Pawel Zarembski |
0:01f31e923fe2 | 184 | #define MXC_F_USB_DEV_INTFL_EP_NAK ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_EP_NAK_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 185 | #define MXC_F_USB_DEV_INTFL_DMA_ERR_POS 12 |
Pawel Zarembski |
0:01f31e923fe2 | 186 | #define MXC_F_USB_DEV_INTFL_DMA_ERR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_DMA_ERR_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 187 | #define MXC_F_USB_DEV_INTFL_BUF_OVR_POS 13 |
Pawel Zarembski |
0:01f31e923fe2 | 188 | #define MXC_F_USB_DEV_INTFL_BUF_OVR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_BUF_OVR_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 189 | #define MXC_F_USB_DEV_INTFL_VBUS_ST_POS 16 |
Pawel Zarembski |
0:01f31e923fe2 | 190 | #define MXC_F_USB_DEV_INTFL_VBUS_ST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTFL_VBUS_ST_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 191 | |
Pawel Zarembski |
0:01f31e923fe2 | 192 | #define MXC_F_USB_DEV_INTEN_DPACT_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 193 | #define MXC_F_USB_DEV_INTEN_DPACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_DPACT_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 194 | #define MXC_F_USB_DEV_INTEN_RWU_DN_POS 1 |
Pawel Zarembski |
0:01f31e923fe2 | 195 | #define MXC_F_USB_DEV_INTEN_RWU_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_RWU_DN_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 196 | #define MXC_F_USB_DEV_INTEN_BACT_POS 2 |
Pawel Zarembski |
0:01f31e923fe2 | 197 | #define MXC_F_USB_DEV_INTEN_BACT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BACT_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 198 | #define MXC_F_USB_DEV_INTEN_BRST_POS 3 |
Pawel Zarembski |
0:01f31e923fe2 | 199 | #define MXC_F_USB_DEV_INTEN_BRST ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BRST_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 200 | #define MXC_F_USB_DEV_INTEN_SUSP_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 201 | #define MXC_F_USB_DEV_INTEN_SUSP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_SUSP_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 202 | #define MXC_F_USB_DEV_INTEN_NO_VBUS_POS 5 |
Pawel Zarembski |
0:01f31e923fe2 | 203 | #define MXC_F_USB_DEV_INTEN_NO_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_NO_VBUS_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 204 | #define MXC_F_USB_DEV_INTEN_VBUS_POS 6 |
Pawel Zarembski |
0:01f31e923fe2 | 205 | #define MXC_F_USB_DEV_INTEN_VBUS ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_VBUS_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 206 | #define MXC_F_USB_DEV_INTEN_BRST_DN_POS 7 |
Pawel Zarembski |
0:01f31e923fe2 | 207 | #define MXC_F_USB_DEV_INTEN_BRST_DN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BRST_DN_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 208 | #define MXC_F_USB_DEV_INTEN_SETUP_POS 8 |
Pawel Zarembski |
0:01f31e923fe2 | 209 | #define MXC_F_USB_DEV_INTEN_SETUP ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_SETUP_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 210 | #define MXC_F_USB_DEV_INTEN_EP_IN_POS 9 |
Pawel Zarembski |
0:01f31e923fe2 | 211 | #define MXC_F_USB_DEV_INTEN_EP_IN ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_IN_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 212 | #define MXC_F_USB_DEV_INTEN_EP_OUT_POS 10 |
Pawel Zarembski |
0:01f31e923fe2 | 213 | #define MXC_F_USB_DEV_INTEN_EP_OUT ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_OUT_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 214 | #define MXC_F_USB_DEV_INTEN_EP_NAK_POS 11 |
Pawel Zarembski |
0:01f31e923fe2 | 215 | #define MXC_F_USB_DEV_INTEN_EP_NAK ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_EP_NAK_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 216 | #define MXC_F_USB_DEV_INTEN_DMA_ERR_POS 12 |
Pawel Zarembski |
0:01f31e923fe2 | 217 | #define MXC_F_USB_DEV_INTEN_DMA_ERR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_DMA_ERR_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 218 | #define MXC_F_USB_DEV_INTEN_BUF_OVR_POS 13 |
Pawel Zarembski |
0:01f31e923fe2 | 219 | #define MXC_F_USB_DEV_INTEN_BUF_OVR ((uint32_t)(0x00000001UL << MXC_F_USB_DEV_INTEN_BUF_OVR_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 220 | |
Pawel Zarembski |
0:01f31e923fe2 | 221 | #define MXC_F_USB_EP_BASE_EP_BASE_POS 9 |
Pawel Zarembski |
0:01f31e923fe2 | 222 | #define MXC_F_USB_EP_BASE_EP_BASE ((uint32_t)(0x007FFFFFUL << MXC_F_USB_EP_BASE_EP_BASE_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 223 | |
Pawel Zarembski |
0:01f31e923fe2 | 224 | #define MXC_F_USB_CUR_BUF_OUT_BUF_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 225 | #define MXC_F_USB_CUR_BUF_OUT_BUF ((uint32_t)(0x0000FFFFUL << MXC_F_USB_CUR_BUF_OUT_BUF_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 226 | #define MXC_F_USB_CUR_BUF_IN_BUF_POS 16 |
Pawel Zarembski |
0:01f31e923fe2 | 227 | #define MXC_F_USB_CUR_BUF_IN_BUF ((uint32_t)(0x0000FFFFUL << MXC_F_USB_CUR_BUF_IN_BUF_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 228 | |
Pawel Zarembski |
0:01f31e923fe2 | 229 | #define MXC_F_USB_IN_OWNER_BUF0_OWNER_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 230 | #define MXC_F_USB_IN_OWNER_BUF0_OWNER ((uint32_t)(0x0000FFFFUL << MXC_F_USB_IN_OWNER_BUF0_OWNER_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 231 | #define MXC_F_USB_IN_OWNER_BUF1_OWNER_POS 16 |
Pawel Zarembski |
0:01f31e923fe2 | 232 | #define MXC_F_USB_IN_OWNER_BUF1_OWNER ((uint32_t)(0x0000FFFFUL << MXC_F_USB_IN_OWNER_BUF1_OWNER_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 233 | |
Pawel Zarembski |
0:01f31e923fe2 | 234 | #define MXC_F_USB_OUT_OWNER_BUF0_OWNER_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 235 | #define MXC_F_USB_OUT_OWNER_BUF0_OWNER ((uint32_t)(0x0000FFFFUL << MXC_F_USB_OUT_OWNER_BUF0_OWNER_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 236 | #define MXC_F_USB_OUT_OWNER_BUF1_OWNER_POS 16 |
Pawel Zarembski |
0:01f31e923fe2 | 237 | #define MXC_F_USB_OUT_OWNER_BUF1_OWNER ((uint32_t)(0x0000FFFFUL << MXC_F_USB_OUT_OWNER_BUF1_OWNER_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 238 | |
Pawel Zarembski |
0:01f31e923fe2 | 239 | #define MXC_F_USB_IN_INT_INBAV_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 240 | #define MXC_F_USB_IN_INT_INBAV ((uint32_t)(0x000000FFUL << MXC_F_USB_IN_INT_INBAV_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 241 | |
Pawel Zarembski |
0:01f31e923fe2 | 242 | #define MXC_F_USB_OUT_INT_OUTDAV_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 243 | #define MXC_F_USB_OUT_INT_OUTDAV ((uint32_t)(0x000000FFUL << MXC_F_USB_OUT_INT_OUTDAV_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 244 | |
Pawel Zarembski |
0:01f31e923fe2 | 245 | #define MXC_F_USB_NAK_INT_NAK_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 246 | #define MXC_F_USB_NAK_INT_NAK ((uint32_t)(0x000000FFUL << MXC_F_USB_NAK_INT_NAK_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 247 | |
Pawel Zarembski |
0:01f31e923fe2 | 248 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 249 | #define MXC_F_USB_DMA_ERR_INT_DMA_ERR ((uint32_t)(0x000000FFUL << MXC_F_USB_DMA_ERR_INT_DMA_ERR_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 250 | |
Pawel Zarembski |
0:01f31e923fe2 | 251 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 252 | #define MXC_F_USB_BUF_OVR_INT_BUF_OVR ((uint32_t)(0x000000FFUL << MXC_F_USB_BUF_OVR_INT_BUF_OVR_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 253 | |
Pawel Zarembski |
0:01f31e923fe2 | 254 | #define MXC_F_USB_SETUP0_BYTE0_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 255 | #define MXC_F_USB_SETUP0_BYTE0 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE0_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 256 | #define MXC_F_USB_SETUP0_BYTE1_POS 8 |
Pawel Zarembski |
0:01f31e923fe2 | 257 | #define MXC_F_USB_SETUP0_BYTE1 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE1_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 258 | #define MXC_F_USB_SETUP0_BYTE2_POS 16 |
Pawel Zarembski |
0:01f31e923fe2 | 259 | #define MXC_F_USB_SETUP0_BYTE2 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE2_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 260 | #define MXC_F_USB_SETUP0_BYTE3_POS 24 |
Pawel Zarembski |
0:01f31e923fe2 | 261 | #define MXC_F_USB_SETUP0_BYTE3 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP0_BYTE3_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 262 | |
Pawel Zarembski |
0:01f31e923fe2 | 263 | #define MXC_F_USB_SETUP1_BYTE0_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 264 | #define MXC_F_USB_SETUP1_BYTE0 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE0_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 265 | #define MXC_F_USB_SETUP1_BYTE1_POS 8 |
Pawel Zarembski |
0:01f31e923fe2 | 266 | #define MXC_F_USB_SETUP1_BYTE1 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE1_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 267 | #define MXC_F_USB_SETUP1_BYTE2_POS 16 |
Pawel Zarembski |
0:01f31e923fe2 | 268 | #define MXC_F_USB_SETUP1_BYTE2 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE2_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 269 | #define MXC_F_USB_SETUP1_BYTE3_POS 24 |
Pawel Zarembski |
0:01f31e923fe2 | 270 | #define MXC_F_USB_SETUP1_BYTE3 ((uint32_t)(0x000000FFUL << MXC_F_USB_SETUP1_BYTE3_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 271 | |
Pawel Zarembski |
0:01f31e923fe2 | 272 | #define MXC_F_USB_EP_DIR_POS 0 |
Pawel Zarembski |
0:01f31e923fe2 | 273 | #define MXC_F_USB_EP_DIR ((uint32_t)(0x00000003UL << MXC_F_USB_EP_DIR_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 274 | #define MXC_F_USB_EP_BUF2_POS 3 |
Pawel Zarembski |
0:01f31e923fe2 | 275 | #define MXC_F_USB_EP_BUF2 ((uint32_t)(0x00000001UL << MXC_F_USB_EP_BUF2_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 276 | #define MXC_F_USB_EP_INT_EN_POS 4 |
Pawel Zarembski |
0:01f31e923fe2 | 277 | #define MXC_F_USB_EP_INT_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP_INT_EN_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 278 | #define MXC_F_USB_EP_NAK_EN_POS 5 |
Pawel Zarembski |
0:01f31e923fe2 | 279 | #define MXC_F_USB_EP_NAK_EN ((uint32_t)(0x00000001UL << MXC_F_USB_EP_NAK_EN_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 280 | #define MXC_F_USB_EP_DT_POS 6 |
Pawel Zarembski |
0:01f31e923fe2 | 281 | #define MXC_F_USB_EP_DT ((uint32_t)(0x00000001UL << MXC_F_USB_EP_DT_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 282 | #define MXC_F_USB_EP_STALL_POS 8 |
Pawel Zarembski |
0:01f31e923fe2 | 283 | #define MXC_F_USB_EP_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP_STALL_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 284 | #define MXC_F_USB_EP_ST_STALL_POS 9 |
Pawel Zarembski |
0:01f31e923fe2 | 285 | #define MXC_F_USB_EP_ST_STALL ((uint32_t)(0x00000001UL << MXC_F_USB_EP_ST_STALL_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 286 | #define MXC_F_USB_EP_ST_ACK_POS 10 |
Pawel Zarembski |
0:01f31e923fe2 | 287 | #define MXC_F_USB_EP_ST_ACK ((uint32_t)(0x00000001UL << MXC_F_USB_EP_ST_ACK_POS)) |
Pawel Zarembski |
0:01f31e923fe2 | 288 | |
Pawel Zarembski |
0:01f31e923fe2 | 289 | |
Pawel Zarembski |
0:01f31e923fe2 | 290 | |
Pawel Zarembski |
0:01f31e923fe2 | 291 | #ifdef __cplusplus |
Pawel Zarembski |
0:01f31e923fe2 | 292 | } |
Pawel Zarembski |
0:01f31e923fe2 | 293 | #endif |
Pawel Zarembski |
0:01f31e923fe2 | 294 | |
Pawel Zarembski |
0:01f31e923fe2 | 295 | #endif /* _MXC_USB_REGS_H_ */ |