Subversion Repositories dashGPS

Rev

Rev 19 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 mjames 1
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 1
16 mjames 2
 
3
 
4
   1              		.cpu cortex-m3
5
   2              		.eabi_attribute 20, 1
6
   3              		.eabi_attribute 21, 1
7
   4              		.eabi_attribute 23, 3
8
   5              		.eabi_attribute 24, 1
9
   6              		.eabi_attribute 25, 1
10
   7              		.eabi_attribute 26, 1
11
   8              		.eabi_attribute 30, 1
12
   9              		.eabi_attribute 34, 1
13
  10              		.eabi_attribute 18, 4
14
  11              		.file	"stm32f1xx_ll_usb.c"
15
  12              		.text
16
  13              	.Ltext0:
17
  14              		.cfi_sections	.debug_frame
18
  15              		.section	.text.USB_CoreInit,"ax",%progbits
19
  16              		.align	1
20
  17              		.global	USB_CoreInit
21
  18              		.arch armv7-m
22
  19              		.syntax unified
23
  20              		.thumb
24
  21              		.thumb_func
25
  22              		.fpu softvfp
26
  24              	USB_CoreInit:
27
  25              	.LVL0:
28
  26              	.LFB65:
29
  27              		.file 1 "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c"
30
   1:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
31
   2:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   ******************************************************************************
32
   3:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @file    stm32f1xx_ll_usb.c
33
   4:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @author  MCD Application Team
34
   5:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief   USB Low Layer HAL module driver.
35
   6:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *
36
   7:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This file provides firmware functions to manage the following
37
   8:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          functionalities of the USB Peripheral Controller:
38
   9:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *           + Initialization/de-initialization functions
39
  10:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *           + I/O operation functions
40
  11:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *           + Peripheral Control functions
41
  12:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *           + Peripheral State functions
42
  13:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *
43
  14:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   @verbatim
44
  15:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   ==============================================================================
45
  16:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                     ##### How to use this driver #####
46
  17:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   ==============================================================================
47
  18:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     [..]
48
  19:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       (#) Fill parameters of Init structure in USB_OTG_CfgTypeDef structure.
49
  20:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
50
  21:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       (#) Call USB_CoreInit() API to initialize the USB Core peripheral.
51
  22:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
52
  23:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       (#) The upper HAL HCD/PCD driver will call the right routines for its internal processes.
53
  24:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
54
  25:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   @endverbatim
55
  26:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   ******************************************************************************
56
  27:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @attention
57
  28:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *
58
  29:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
59
  30:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * All rights reserved.</center></h2>
60
  31:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *
20 mjames 61
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 2
16 mjames 62
 
63
 
64
  32:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * This software component is licensed by ST under BSD 3-Clause license,
65
  33:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * the "License"; You may not use this file except in compliance with the
66
  34:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * License. You may obtain a copy of the License at:
67
  35:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *                        opensource.org/licenses/BSD-3-Clause
68
  36:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *
69
  37:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   ******************************************************************************
70
  38:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
71
  39:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
72
  40:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /* Includes ------------------------------------------------------------------*/
73
  41:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** #include "stm32f1xx_hal.h"
74
  42:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
75
  43:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /** @addtogroup STM32F1xx_LL_USB_DRIVER
76
  44:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @{
77
  45:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
78
  46:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
79
  47:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** #if defined (HAL_PCD_MODULE_ENABLED) || defined (HAL_HCD_MODULE_ENABLED)
80
  48:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** #if defined (USB) || defined (USB_OTG_FS)
81
  49:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /* Private typedef -----------------------------------------------------------*/
82
  50:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /* Private define ------------------------------------------------------------*/
83
  51:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /* Private macro -------------------------------------------------------------*/
84
  52:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /* Private variables ---------------------------------------------------------*/
85
  53:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /* Private function prototypes -----------------------------------------------*/
86
  54:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /* Private functions ---------------------------------------------------------*/
87
  55:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** #if defined (USB_OTG_FS)
88
  56:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** static HAL_StatusTypeDef USB_CoreReset(USB_OTG_GlobalTypeDef *USBx);
89
  57:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
90
  58:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /* Exported functions --------------------------------------------------------*/
91
  59:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /** @defgroup USB_LL_Exported_Functions USB Low Layer Exported Functions
92
  60:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @{
93
  61:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
94
  62:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
95
  63:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /** @defgroup USB_LL_Exported_Functions_Group1 Initialization/de-initialization functions
96
  64:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****  *  @brief    Initialization and Configuration functions
97
  65:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****  *
98
  66:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** @verbatim
99
  67:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****  ===============================================================================
100
  68:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                       ##### Initialization/de-initialization functions #####
101
  69:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****  ===============================================================================
102
  70:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
103
  71:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** @endverbatim
104
  72:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @{
105
  73:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
106
  74:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
107
  75:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
108
  76:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Initializes the USB Core
109
  77:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx USB Instance
110
  78:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  cfg pointer to a USB_OTG_CfgTypeDef structure that contains
111
  79:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         the configuration information for the specified USBx peripheral.
112
  80:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
113
  81:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
114
  82:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_CoreInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg)
115
  83:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
116
  84:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   HAL_StatusTypeDef ret;
117
  85:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
118
  86:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (cfg.phy_itface == USB_OTG_ULPI_PHY)
119
  87:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
120
  88:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN);
20 mjames 121
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 3
16 mjames 122
 
123
 
124
  89:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
125
  90:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Init The ULPI Interface */
126
  91:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_TSDPS | USB_OTG_GUSBCFG_ULPIFSLS | USB_OTG_GUSBCFG_PHYSEL);
127
  92:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
128
  93:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Select vbus source */
129
  94:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_ULPIEVBUSD | USB_OTG_GUSBCFG_ULPIEVBUSI);
130
  95:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (cfg.use_external_vbus == 1U)
131
  96:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
132
  97:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx->GUSBCFG |= USB_OTG_GUSBCFG_ULPIEVBUSD;
133
  98:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
134
  99:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Reset after a PHY select  */
135
 100:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     ret = USB_CoreReset(USBx);
136
 101:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
137
 102:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else /* FS interface (embedded Phy) */
138
 103:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
139
 104:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Select FS Embedded PHY */
140
 105:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx->GUSBCFG |= USB_OTG_GUSBCFG_PHYSEL;
141
 106:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
142
 107:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Reset after a PHY select and set Host mode */
143
 108:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     ret = USB_CoreReset(USBx);
144
 109:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
145
 110:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Activate the USB Transceiver */
146
 111:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN;
147
 112:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
148
 113:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
149
 114:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return ret;
150
 115:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
151
 116:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
152
 117:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
153
 118:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
154
 119:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Set the USB turnaround time
155
 120:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx USB Instance
156
 121:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  hclk: AHB clock frequency
157
 122:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval USB turnaround time In PHY Clocks number
158
 123:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
159
 124:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_SetTurnaroundTime(USB_OTG_GlobalTypeDef *USBx,
160
 125:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                         uint32_t hclk, uint8_t speed)
161
 126:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
162
 127:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t UsbTrd;
163
 128:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
164
 129:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* The USBTRD is configured according to the tables below, depending on AHB frequency
165
 130:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   used by application. In the low AHB frequency range it is used to stretch enough the USB response
166
 131:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   time to IN tokens, the USB turnaround time, so to compensate for the longer AHB read access
167
 132:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   latency to the Data FIFO */
168
 133:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (speed == USBD_FS_SPEED)
169
 134:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
170
 135:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if ((hclk >= 14200000U) && (hclk < 15000000U))
171
 136:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
172
 137:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* hclk Clock Range between 14.2-15 MHz */
173
 138:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       UsbTrd = 0xFU;
174
 139:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
175
 140:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else if ((hclk >= 15000000U) && (hclk < 16000000U))
176
 141:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
177
 142:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* hclk Clock Range between 15-16 MHz */
178
 143:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       UsbTrd = 0xEU;
179
 144:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
180
 145:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else if ((hclk >= 16000000U) && (hclk < 17200000U))
20 mjames 181
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 4
16 mjames 182
 
183
 
184
 146:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
185
 147:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* hclk Clock Range between 16-17.2 MHz */
186
 148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       UsbTrd = 0xDU;
187
 149:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
188
 150:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else if ((hclk >= 17200000U) && (hclk < 18500000U))
189
 151:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
190
 152:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* hclk Clock Range between 17.2-18.5 MHz */
191
 153:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       UsbTrd = 0xCU;
192
 154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
193
 155:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else if ((hclk >= 18500000U) && (hclk < 20000000U))
194
 156:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
195
 157:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* hclk Clock Range between 18.5-20 MHz */
196
 158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       UsbTrd = 0xBU;
197
 159:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
198
 160:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else if ((hclk >= 20000000U) && (hclk < 21800000U))
199
 161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
200
 162:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* hclk Clock Range between 20-21.8 MHz */
201
 163:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       UsbTrd = 0xAU;
202
 164:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
203
 165:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else if ((hclk >= 21800000U) && (hclk < 24000000U))
204
 166:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
205
 167:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* hclk Clock Range between 21.8-24 MHz */
206
 168:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       UsbTrd = 0x9U;
207
 169:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
208
 170:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else if ((hclk >= 24000000U) && (hclk < 27700000U))
209
 171:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
210
 172:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* hclk Clock Range between 24-27.7 MHz */
211
 173:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       UsbTrd = 0x8U;
212
 174:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
213
 175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else if ((hclk >= 27700000U) && (hclk < 32000000U))
214
 176:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
215
 177:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* hclk Clock Range between 27.7-32 MHz */
216
 178:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       UsbTrd = 0x7U;
217
 179:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
218
 180:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else /* if(hclk >= 32000000) */
219
 181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
220
 182:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* hclk Clock Range between 32-200 MHz */
221
 183:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       UsbTrd = 0x6U;
222
 184:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
223
 185:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
224
 186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
225
 187:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
226
 188:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     UsbTrd = USBD_DEFAULT_TRDT_VALUE;
227
 189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
228
 190:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
229
 191:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GUSBCFG &= ~USB_OTG_GUSBCFG_TRDT;
230
 192:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GUSBCFG |= (uint32_t)((UsbTrd << 10) & USB_OTG_GUSBCFG_TRDT);
231
 193:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
232
 194:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
233
 195:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
234
 196:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
235
 197:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
236
 198:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_EnableGlobalInt
237
 199:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         Enables the controller's Global Int in the AHB Config reg
238
 200:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
239
 201:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
240
 202:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
20 mjames 241
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 5
16 mjames 242
 
243
 
244
 203:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_EnableGlobalInt(USB_OTG_GlobalTypeDef *USBx)
245
 204:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
246
 205:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GAHBCFG |= USB_OTG_GAHBCFG_GINT;
247
 206:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
248
 207:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
249
 208:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
250
 209:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
251
 210:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_DisableGlobalInt
252
 211:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         Disable the controller's Global Int in the AHB Config reg
253
 212:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
254
 213:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
255
 214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** */
256
 215:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_DisableGlobalInt(USB_OTG_GlobalTypeDef *USBx)
257
 216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
258
 217:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GAHBCFG &= ~USB_OTG_GAHBCFG_GINT;
259
 218:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
260
 219:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
261
 220:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
262
 221:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
263
 222:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_SetCurrentMode : Set functional mode
264
 223:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
265
 224:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  mode   current core mode
266
 225:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be one of these values:
267
 226:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg USB_DEVICE_MODE: Peripheral mode
268
 227:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg USB_HOST_MODE: Host mode
269
 228:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg USB_DRD_MODE: Dual Role Device mode
270
 229:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
271
 230:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
272
 231:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_SetCurrentMode(USB_OTG_GlobalTypeDef *USBx, USB_ModeTypeDef mode)
273
 232:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
274
 233:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_FHMOD | USB_OTG_GUSBCFG_FDMOD);
275
 234:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
276
 235:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (mode == USB_HOST_MODE)
277
 236:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
278
 237:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx->GUSBCFG |= USB_OTG_GUSBCFG_FHMOD;
279
 238:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
280
 239:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else if (mode == USB_DEVICE_MODE)
281
 240:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
282
 241:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx->GUSBCFG |= USB_OTG_GUSBCFG_FDMOD;
283
 242:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
284
 243:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
285
 244:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
286
 245:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     return HAL_ERROR;
287
 246:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
288
 247:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   HAL_Delay(50U);
289
 248:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
290
 249:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
291
 250:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
292
 251:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
293
 252:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
294
 253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_DevInit : Initializes the USB_OTG controller registers
295
 254:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         for device mode
296
 255:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
297
 256:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  cfg   pointer to a USB_OTG_CfgTypeDef structure that contains
298
 257:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         the configuration information for the specified USBx peripheral.
299
 258:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
300
 259:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
20 mjames 301
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 6
16 mjames 302
 
303
 
304
 260:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_DevInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg)
305
 261:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
306
 262:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   HAL_StatusTypeDef ret = HAL_OK;
307
 263:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
308
 264:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t i;
309
 265:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
310
 266:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   for (i = 0U; i < 15U; i++)
311
 267:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
312
 268:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx->DIEPTXF[i] = 0U;
313
 269:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
314
 270:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
315
 271:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Enable HW VBUS sensing */
316
 272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GCCFG |= USB_OTG_GCCFG_VBUSBSEN;
317
 273:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
318
 274:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Restart the Phy Clock */
319
 275:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_PCGCCTL = 0U;
320
 276:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
321
 277:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Device mode configuration */
322
 278:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DCFG |= DCFG_FRAME_INTERVAL_80;
323
 279:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
324
 280:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Set Core speed to Full speed mode */
325
 281:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   (void)USB_SetDevSpeed(USBx, USB_OTG_SPEED_FULL);
326
 282:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
327
 283:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Flush the FIFOs */
328
 284:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (USB_FlushTxFifo(USBx, 0x10U) != HAL_OK) /* all Tx FIFOs */
329
 285:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
330
 286:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     ret = HAL_ERROR;
331
 287:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
332
 288:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
333
 289:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (USB_FlushRxFifo(USBx) != HAL_OK)
334
 290:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
335
 291:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     ret = HAL_ERROR;
336
 292:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
337
 293:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
338
 294:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Clear all pending Device Interrupts */
339
 295:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DIEPMSK = 0U;
340
 296:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DOEPMSK = 0U;
341
 297:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DAINTMSK = 0U;
342
 298:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
343
 299:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   for (i = 0U; i < cfg.dev_endpoints; i++)
344
 300:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
345
 301:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if ((USBx_INEP(i)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA)
346
 302:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
347
 303:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if (i == 0U)
348
 304:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
349
 305:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_SNAK;
350
 306:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
351
 307:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       else
352
 308:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
353
 309:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_EPDIS | USB_OTG_DIEPCTL_SNAK;
354
 310:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
355
 311:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
356
 312:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
357
 313:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
358
 314:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(i)->DIEPCTL = 0U;
359
 315:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
360
 316:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
20 mjames 361
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 7
16 mjames 362
 
363
 
364
 317:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_INEP(i)->DIEPTSIZ = 0U;
365
 318:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_INEP(i)->DIEPINT  = 0xFB7FU;
366
 319:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
367
 320:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
368
 321:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   for (i = 0U; i < cfg.dev_endpoints; i++)
369
 322:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
370
 323:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if ((USBx_OUTEP(i)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA)
371
 324:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
372
 325:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if (i == 0U)
373
 326:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
374
 327:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_SNAK;
375
 328:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
376
 329:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       else
377
 330:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
378
 331:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_EPDIS | USB_OTG_DOEPCTL_SNAK;
379
 332:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
380
 333:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
381
 334:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
382
 335:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
383
 336:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_OUTEP(i)->DOEPCTL = 0U;
384
 337:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
385
 338:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
386
 339:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(i)->DOEPTSIZ = 0U;
387
 340:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(i)->DOEPINT  = 0xFB7FU;
388
 341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
389
 342:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
390
 343:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DIEPMSK &= ~(USB_OTG_DIEPMSK_TXFURM);
391
 344:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
392
 345:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Disable all interrupts. */
393
 346:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GINTMSK = 0U;
394
 347:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
395
 348:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Clear any pending interrupts */
396
 349:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GINTSTS = 0xBFFFFFFFU;
397
 350:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
398
 351:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Enable the common interrupts */
399
 352:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GINTMSK |= USB_OTG_GINTMSK_RXFLVLM;
400
 353:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
401
 354:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Enable interrupts matching to the Device mode ONLY */
402
 355:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GINTMSK |= USB_OTG_GINTMSK_USBSUSPM | USB_OTG_GINTMSK_USBRST |
403
 356:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                    USB_OTG_GINTMSK_ENUMDNEM | USB_OTG_GINTMSK_IEPINT |
404
 357:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                    USB_OTG_GINTMSK_OEPINT   | USB_OTG_GINTMSK_IISOIXFRM |
405
 358:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                    USB_OTG_GINTMSK_PXFRM_IISOOXFRM | USB_OTG_GINTMSK_WUIM;
406
 359:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
407
 360:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (cfg.Sof_enable != 0U)
408
 361:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
409
 362:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx->GINTMSK |= USB_OTG_GINTMSK_SOFM;
410
 363:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
411
 364:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
412
 365:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (cfg.vbus_sensing_enable == 1U)
413
 366:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
414
 367:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx->GINTMSK |= (USB_OTG_GINTMSK_SRQIM | USB_OTG_GINTMSK_OTGINT);
415
 368:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
416
 369:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
417
 370:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return ret;
418
 371:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
419
 372:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
420
 373:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
20 mjames 421
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 8
16 mjames 422
 
423
 
424
 374:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_OTG_FlushTxFifo : Flush a Tx FIFO
425
 375:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
426
 376:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  num  FIFO number
427
 377:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         This parameter can be a value from 1 to 15
428
 378:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             15 means Flush all Tx FIFOs
429
 379:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
430
 380:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
431
 381:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_FlushTxFifo(USB_OTG_GlobalTypeDef *USBx, uint32_t num)
432
 382:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
433
 383:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t count = 0U;
434
 384:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
435
 385:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GRSTCTL = (USB_OTG_GRSTCTL_TXFFLSH | (num << 6));
436
 386:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
437
 387:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   do
438
 388:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
439
 389:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (++count > 200000U)
440
 390:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
441
 391:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       return HAL_TIMEOUT;
442
 392:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
443
 393:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
444
 394:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_TXFFLSH) == USB_OTG_GRSTCTL_TXFFLSH);
445
 395:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
446
 396:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
447
 397:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
448
 398:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
449
 399:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
450
 400:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_FlushRxFifo : Flush Rx FIFO
451
 401:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
452
 402:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
453
 403:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
454
 404:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_FlushRxFifo(USB_OTG_GlobalTypeDef *USBx)
455
 405:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
456
 406:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t count = 0;
457
 407:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
458
 408:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GRSTCTL = USB_OTG_GRSTCTL_RXFFLSH;
459
 409:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
460
 410:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   do
461
 411:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
462
 412:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (++count > 200000U)
463
 413:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
464
 414:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       return HAL_TIMEOUT;
465
 415:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
466
 416:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
467
 417:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_RXFFLSH) == USB_OTG_GRSTCTL_RXFFLSH);
468
 418:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
469
 419:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
470
 420:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
471
 421:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
472
 422:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
473
 423:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_SetDevSpeed  Initializes the DevSpd field of DCFG register
474
 424:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         depending the PHY type and the enumeration speed of the device.
475
 425:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
476
 426:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  speed  device speed
477
 427:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be one of these values:
478
 428:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg USB_OTG_SPEED_FULL: Full speed mode
479
 429:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval  Hal status
480
 430:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
20 mjames 481
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 9
16 mjames 482
 
483
 
484
 431:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_SetDevSpeed(USB_OTG_GlobalTypeDef *USBx, uint8_t speed)
485
 432:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
486
 433:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
487
 434:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
488
 435:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DCFG |= speed;
489
 436:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
490
 437:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
491
 438:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
492
 439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
493
 440:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_GetDevSpeed  Return the Dev Speed
494
 441:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
495
 442:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval speed  device speed
496
 443:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be one of these values:
497
 444:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg PCD_SPEED_FULL: Full speed mode
498
 445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
499
 446:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint8_t USB_GetDevSpeed(USB_OTG_GlobalTypeDef *USBx)
500
 447:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
501
 448:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
502
 449:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint8_t speed;
503
 450:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t DevEnumSpeed = USBx_DEVICE->DSTS & USB_OTG_DSTS_ENUMSPD;
504
 451:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
505
 452:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if ((DevEnumSpeed == DSTS_ENUMSPD_FS_PHY_30MHZ_OR_60MHZ) ||
506
 453:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       (DevEnumSpeed == DSTS_ENUMSPD_FS_PHY_48MHZ))
507
 454:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
508
 455:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     speed = USBD_FS_SPEED;
509
 456:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
510
 457:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
511
 458:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
512
 459:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     speed = 0xFU;
513
 460:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
514
 461:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
515
 462:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return speed;
516
 463:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
517
 464:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
518
 465:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
519
 466:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Activate and configure an endpoint
520
 467:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
521
 468:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep pointer to endpoint structure
522
 469:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
523
 470:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
524
 471:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_ActivateEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep)
525
 472:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
526
 473:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
527
 474:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t epnum = (uint32_t)ep->num;
528
 475:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
529
 476:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->is_in == 1U)
530
 477:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
531
 478:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK));
532
 479:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
533
 480:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if ((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_USBAEP) == 0U)
534
 481:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
535
 482:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) |
536
 483:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                    ((uint32_t)ep->type << 18) | (epnum << 22) |
537
 484:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                    USB_OTG_DIEPCTL_SD0PID_SEVNFRM |
538
 485:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                    USB_OTG_DIEPCTL_USBAEP;
539
 486:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
540
 487:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
20 mjames 541
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 10
16 mjames 542
 
543
 
544
 488:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
545
 489:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
546
 490:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) <<
547
 491:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
548
 492:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (((USBx_OUTEP(epnum)->DOEPCTL) & USB_OTG_DOEPCTL_USBAEP) == 0U)
549
 493:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
550
 494:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_OUTEP(epnum)->DOEPCTL |= (ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ) |
551
 495:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                     ((uint32_t)ep->type << 18) |
552
 496:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                     USB_OTG_DIEPCTL_SD0PID_SEVNFRM |
553
 497:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                     USB_OTG_DOEPCTL_USBAEP;
554
 498:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
555
 499:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
556
 500:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
557
 501:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
558
 502:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
559
 503:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
560
 504:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Activate and configure a dedicated endpoint
561
 505:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
562
 506:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep pointer to endpoint structure
563
 507:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
564
 508:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
565
 509:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_ActivateDedicatedEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep)
566
 510:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
567
 511:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
568
 512:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t epnum = (uint32_t)ep->num;
569
 513:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
570
 514:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Read DEPCTLn register */
571
 515:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->is_in == 1U)
572
 516:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
573
 517:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (((USBx_INEP(epnum)->DIEPCTL) & USB_OTG_DIEPCTL_USBAEP) == 0U)
574
 518:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
575
 519:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) |
576
 520:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                    ((uint32_t)ep->type << 18) | (epnum << 22) |
577
 521:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                    USB_OTG_DIEPCTL_SD0PID_SEVNFRM |
578
 522:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                    USB_OTG_DIEPCTL_USBAEP;
579
 523:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
580
 524:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
581
 525:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_DEVICE->DEACHMSK |= USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK));
582
 526:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
583
 527:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
584
 528:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
585
 529:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (((USBx_OUTEP(epnum)->DOEPCTL) & USB_OTG_DOEPCTL_USBAEP) == 0U)
586
 530:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
587
 531:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_OUTEP(epnum)->DOEPCTL |= (ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ) |
588
 532:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                     ((uint32_t)ep->type << 18) | (epnum << 22) |
589
 533:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                     USB_OTG_DOEPCTL_USBAEP;
590
 534:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
591
 535:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
592
 536:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_DEVICE->DEACHMSK |= USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) <<
593
 537:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
594
 538:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
595
 539:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
596
 540:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
597
 541:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
598
 542:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
599
 543:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  De-activate and de-initialize an endpoint
600
 544:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
20 mjames 601
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 11
16 mjames 602
 
603
 
604
 545:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep pointer to endpoint structure
605
 546:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
606
 547:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
607
 548:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_DeactivateEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep)
608
 549:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
609
 550:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
610
 551:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t epnum = (uint32_t)ep->num;
611
 552:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
612
 553:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Read DEPCTLn register */
613
 554:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->is_in == 1U)
614
 555:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
615
 556:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_DEVICE->DEACHMSK &= ~(USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK)));
616
 557:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK)));
617
 558:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_INEP(epnum)->DIEPCTL &= ~(USB_OTG_DIEPCTL_USBAEP |
618
 559:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                    USB_OTG_DIEPCTL_MPSIZ |
619
 560:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                    USB_OTG_DIEPCTL_TXFNUM |
620
 561:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                    USB_OTG_DIEPCTL_SD0PID_SEVNFRM |
621
 562:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                    USB_OTG_DIEPCTL_EPTYP);
622
 563:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
623
 564:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
624
 565:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
625
 566:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_DEVICE->DEACHMSK &= ~(USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) 
626
 567:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) 
627
 568:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(epnum)->DOEPCTL &= ~(USB_OTG_DOEPCTL_USBAEP |
628
 569:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                     USB_OTG_DOEPCTL_MPSIZ |
629
 570:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                     USB_OTG_DOEPCTL_SD0PID_SEVNFRM |
630
 571:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                     USB_OTG_DOEPCTL_EPTYP);
631
 572:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
632
 573:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
633
 574:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
634
 575:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
635
 576:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
636
 577:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
637
 578:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  De-activate and de-initialize a dedicated endpoint
638
 579:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
639
 580:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep pointer to endpoint structure
640
 581:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
641
 582:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
642
 583:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_DeactivateDedicatedEndpoint(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *e
643
 584:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
644
 585:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
645
 586:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t epnum = (uint32_t)ep->num;
646
 587:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
647
 588:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Read DEPCTLn register */
648
 589:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->is_in == 1U)
649
 590:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
650
 591:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_INEP(epnum)->DIEPCTL &= ~ USB_OTG_DIEPCTL_USBAEP;
651
 592:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK)));
652
 593:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
653
 594:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
654
 595:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
655
 596:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(epnum)->DOEPCTL &= ~USB_OTG_DOEPCTL_USBAEP;
656
 597:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) 
657
 598:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
658
 599:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
659
 600:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
660
 601:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
20 mjames 661
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 12
16 mjames 662
 
663
 
664
 602:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
665
 603:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
666
 604:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_EPStartXfer : setup and starts a transfer over an EP
667
 605:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
668
 606:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep pointer to endpoint structure
669
 607:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
670
 608:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
671
 609:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_EPStartXfer(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep)
672
 610:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
673
 611:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
674
 612:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t epnum = (uint32_t)ep->num;
675
 613:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t pktcnt;
676
 614:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
677
 615:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* IN endpoint */
678
 616:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->is_in == 1U)
679
 617:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
680
 618:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Zero Length Packet? */
681
 619:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->xfer_len == 0U)
682
 620:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
683
 621:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT);
684
 622:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (1U << 19));
685
 623:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_XFRSIZ);
686
 624:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
687
 625:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
688
 626:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
689
 627:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Program the transfer size and packet count
690
 628:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       * as follows: xfersize = N * maxpacket +
691
 629:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       * short_packet pktcnt = N + (short_packet
692
 630:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       * exist ? 1 : 0)
693
 631:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       */
694
 632:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_XFRSIZ);
695
 633:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT);
696
 634:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (((ep->xfer_len + ep->maxpacket - 1U
697
 635:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len);
698
 636:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
699
 637:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if (ep->type == EP_TYPE_ISOC)
700
 638:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
701
 639:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_MULCNT);
702
 640:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_MULCNT & (1U << 29));
703
 641:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
704
 642:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
705
 643:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* EP enable, IN data in FIFO */
706
 644:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_INEP(epnum)->DIEPCTL |= (USB_OTG_DIEPCTL_CNAK | USB_OTG_DIEPCTL_EPENA);
707
 645:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
708
 646:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->type != EP_TYPE_ISOC)
709
 647:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
710
 648:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Enable the Tx FIFO Empty Interrupt for this EP */
711
 649:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if (ep->xfer_len > 0U)
712
 650:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
713
 651:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_DEVICE->DIEPEMPMSK |= 1UL << (ep->num & EP_ADDR_MSK);
714
 652:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
715
 653:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
716
 654:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
717
 655:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
718
 656:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U)
719
 657:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
720
 658:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SODDFRM;
20 mjames 721
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 13
16 mjames 722
 
723
 
724
 659:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
725
 660:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       else
726
 661:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
727
 662:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM;
728
 663:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
729
 664:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
730
 665:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       (void)USB_WritePacket(USBx, ep->xfer_buff, ep->num, (uint16_t)ep->xfer_len);
731
 666:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
732
 667:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
733
 668:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else /* OUT endpoint */
734
 669:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
735
 670:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Program the transfer size and packet count as follows:
736
 671:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     * pktcnt = N
737
 672:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     * xfersize = N * maxpacket
738
 673:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     */
739
 674:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_XFRSIZ);
740
 675:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_PKTCNT);
741
 676:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
742
 677:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->xfer_len == 0U)
743
 678:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
744
 679:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & ep->maxpacket);
745
 680:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19));
746
 681:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
747
 682:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
748
 683:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
749
 684:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket);
750
 685:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_OUTEP(epnum)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_PKTCNT & ((uint32_t)pktcnt << 19);
751
 686:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_OUTEP(epnum)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_XFRSIZ & (ep->maxpacket * pktcnt);
752
 687:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
753
 688:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
754
 689:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->type == EP_TYPE_ISOC)
755
 690:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
756
 691:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U)
757
 692:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
758
 693:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SODDFRM;
759
 694:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
760
 695:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       else
761
 696:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
762
 697:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SD0PID_SEVNFRM;
763
 698:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
764
 699:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
765
 700:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* EP enable */
766
 701:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(epnum)->DOEPCTL |= (USB_OTG_DOEPCTL_CNAK | USB_OTG_DOEPCTL_EPENA);
767
 702:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
768
 703:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
769
 704:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
770
 705:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
771
 706:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
772
 707:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
773
 708:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_EP0StartXfer : setup and starts a transfer over the EP  0
774
 709:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
775
 710:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep pointer to endpoint structure
776
 711:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
777
 712:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
778
 713:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_EP0StartXfer(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep)
779
 714:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
780
 715:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
20 mjames 781
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 14
16 mjames 782
 
783
 
784
 716:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t epnum = (uint32_t)ep->num;
785
 717:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
786
 718:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* IN endpoint */
787
 719:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->is_in == 1U)
788
 720:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
789
 721:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Zero Length Packet? */
790
 722:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->xfer_len == 0U)
791
 723:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
792
 724:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT);
793
 725:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (1U << 19));
794
 726:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_XFRSIZ);
795
 727:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
796
 728:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
797
 729:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
798
 730:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Program the transfer size and packet count
799
 731:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       * as follows: xfersize = N * maxpacket +
800
 732:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       * short_packet pktcnt = N + (short_packet
801
 733:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       * exist ? 1 : 0)
802
 734:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       */
803
 735:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_XFRSIZ);
804
 736:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT);
805
 737:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
806
 738:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if (ep->xfer_len > ep->maxpacket)
807
 739:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
808
 740:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         ep->xfer_len = ep->maxpacket;
809
 741:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
810
 742:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (1U << 19));
811
 743:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len);
812
 744:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
813
 745:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
814
 746:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* EP enable, IN data in FIFO */
815
 747:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_INEP(epnum)->DIEPCTL |= (USB_OTG_DIEPCTL_CNAK | USB_OTG_DIEPCTL_EPENA);
816
 748:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
817
 749:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Enable the Tx FIFO Empty Interrupt for this EP */
818
 750:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->xfer_len > 0U)
819
 751:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
820
 752:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_DEVICE->DIEPEMPMSK |= 1UL << (ep->num & EP_ADDR_MSK);
821
 753:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
822
 754:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
823
 755:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else /* OUT endpoint */
824
 756:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
825
 757:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Program the transfer size and packet count as follows:
826
 758:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     * pktcnt = N
827
 759:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     * xfersize = N * maxpacket
828
 760:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     */
829
 761:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_XFRSIZ);
830
 762:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_PKTCNT);
831
 763:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
832
 764:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->xfer_len > 0U)
833
 765:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
834
 766:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       ep->xfer_len = ep->maxpacket;
835
 767:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
836
 768:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
837
 769:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19));
838
 770:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & (ep->maxpacket));
839
 771:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
840
 772:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* EP enable */
20 mjames 841
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 15
16 mjames 842
 
843
 
844
 773:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(epnum)->DOEPCTL |= (USB_OTG_DOEPCTL_CNAK | USB_OTG_DOEPCTL_EPENA);
845
 774:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
846
 775:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
847
 776:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
848
 777:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
849
 778:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
850
 779:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
851
 780:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_WritePacket : Writes a packet into the Tx FIFO associated
852
 781:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         with the EP/channel
853
 782:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
854
 783:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  src   pointer to source buffer
855
 784:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ch_ep_num  endpoint or host channel number
856
 785:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  len  Number of bytes to write
857
 786:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
858
 787:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
859
 788:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_WritePacket(USB_OTG_GlobalTypeDef *USBx, uint8_t *src, uint8_t ch_ep_num, uin
860
 789:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
861
 790:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
862
 791:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t *pSrc = (uint32_t *)src;
863
 792:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t count32b, i;
864
 793:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
865
 794:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   count32b = ((uint32_t)len + 3U) / 4U;
866
 795:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   for (i = 0U; i < count32b; i++)
867
 796:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
868
 797:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_DFIFO((uint32_t)ch_ep_num) = __UNALIGNED_UINT32_READ(pSrc);
869
 798:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     pSrc++;
870
 799:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
871
 800:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
872
 801:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
873
 802:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
874
 803:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
875
 804:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
876
 805:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_ReadPacket : read a packet from the RX FIFO
877
 806:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
878
 807:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  dest  source pointer
879
 808:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  len  Number of bytes to read
880
 809:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval pointer to destination buffer
881
 810:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
882
 811:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** void *USB_ReadPacket(USB_OTG_GlobalTypeDef *USBx, uint8_t *dest, uint16_t len)
883
 812:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
884
 813:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
885
 814:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t *pDest = (uint32_t *)dest;
886
 815:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t i;
887
 816:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t count32b = ((uint32_t)len + 3U) / 4U;
888
 817:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
889
 818:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   for (i = 0U; i < count32b; i++)
890
 819:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
891
 820:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     __UNALIGNED_UINT32_WRITE(pDest, USBx_DFIFO(0U));
892
 821:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     pDest++;
893
 822:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
894
 823:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
895
 824:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return ((void *)pDest);
896
 825:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
897
 826:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
898
 827:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
899
 828:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_EPSetStall : set a stall condition over an EP
900
 829:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
20 mjames 901
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 16
16 mjames 902
 
903
 
904
 830:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep pointer to endpoint structure
905
 831:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
906
 832:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
907
 833:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_EPSetStall(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep)
908
 834:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
909
 835:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
910
 836:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t epnum = (uint32_t)ep->num;
911
 837:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
912
 838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->is_in == 1U)
913
 839:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
914
 840:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == 0U) && (epnum != 0U))
915
 841:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
916
 842:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPCTL &= ~(USB_OTG_DIEPCTL_EPDIS);
917
 843:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
918
 844:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_STALL;
919
 845:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
920
 846:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
921
 847:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
922
 848:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (((USBx_OUTEP(epnum)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == 0U) && (epnum != 0U))
923
 849:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
924
 850:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_OUTEP(epnum)->DOEPCTL &= ~(USB_OTG_DOEPCTL_EPDIS);
925
 851:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
926
 852:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_STALL;
927
 853:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
928
 854:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
929
 855:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
930
 856:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
931
 857:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
932
 858:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
933
 859:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_EPClearStall : Clear a stall condition over an EP
934
 860:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
935
 861:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep pointer to endpoint structure
936
 862:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
937
 863:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
938
 864:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_EPClearStall(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep)
939
 865:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
940
 866:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
941
 867:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t epnum = (uint32_t)ep->num;
942
 868:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
943
 869:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->is_in == 1U)
944
 870:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
945
 871:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_INEP(epnum)->DIEPCTL &= ~USB_OTG_DIEPCTL_STALL;
946
 872:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if ((ep->type == EP_TYPE_INTR) || (ep->type == EP_TYPE_BULK))
947
 873:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
948
 874:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM; /* DATA0 */
949
 875:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
950
 876:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
951
 877:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
952
 878:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
953
 879:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(epnum)->DOEPCTL &= ~USB_OTG_DOEPCTL_STALL;
954
 880:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if ((ep->type == EP_TYPE_INTR) || (ep->type == EP_TYPE_BULK))
955
 881:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
956
 882:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SD0PID_SEVNFRM; /* DATA0 */
957
 883:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
958
 884:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
959
 885:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
960
 886:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
20 mjames 961
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 17
16 mjames 962
 
963
 
964
 887:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
965
 888:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
966
 889:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_StopDevice : Stop the usb device mode
967
 890:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
968
 891:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
969
 892:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
970
 893:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_StopDevice(USB_OTG_GlobalTypeDef *USBx)
971
 894:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
972
 895:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   HAL_StatusTypeDef ret;
973
 896:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
974
 897:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t i;
975
 898:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
976
 899:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Clear Pending interrupt */
977
 900:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   for (i = 0U; i < 15U; i++)
978
 901:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
979
 902:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_INEP(i)->DIEPINT = 0xFB7FU;
980
 903:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_OUTEP(i)->DOEPINT = 0xFB7FU;
981
 904:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
982
 905:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
983
 906:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Clear interrupt masks */
984
 907:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DIEPMSK  = 0U;
985
 908:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DOEPMSK  = 0U;
986
 909:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DAINTMSK = 0U;
987
 910:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
988
 911:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Flush the FIFO */
989
 912:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   ret = USB_FlushRxFifo(USBx);
990
 913:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ret != HAL_OK)
991
 914:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
992
 915:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     return ret;
993
 916:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
994
 917:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
995
 918:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   ret = USB_FlushTxFifo(USBx,  0x10U);
996
 919:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ret != HAL_OK)
997
 920:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
998
 921:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     return ret;
999
 922:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1000
 923:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1001
 924:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return ret;
1002
 925:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1003
 926:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1004
 927:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1005
 928:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_SetDevAddress : Stop the usb device mode
1006
 929:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1007
 930:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  address  new device address to be assigned
1008
 931:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be a value from 0 to 255
1009
 932:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1010
 933:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1011
 934:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef  USB_SetDevAddress(USB_OTG_GlobalTypeDef *USBx, uint8_t address)
1012
 935:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1013
 936:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1014
 937:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1015
 938:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DCFG &= ~(USB_OTG_DCFG_DAD);
1016
 939:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DCFG |= ((uint32_t)address << 4) & USB_OTG_DCFG_DAD;
1017
 940:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1018
 941:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1019
 942:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1020
 943:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
20 mjames 1021
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 18
16 mjames 1022
 
1023
 
1024
 944:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1025
 945:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_DevConnect : Connect the USB device by enabling the pull-up/pull-down
1026
 946:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1027
 947:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1028
 948:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1029
 949:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef  USB_DevConnect(USB_OTG_GlobalTypeDef *USBx)
1030
 950:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1031
 951:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1032
 952:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1033
 953:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DCTL &= ~USB_OTG_DCTL_SDIS;
1034
 954:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   HAL_Delay(3U);
1035
 955:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1036
 956:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1037
 957:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1038
 958:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1039
 959:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1040
 960:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_DevDisconnect : Disconnect the USB device by disabling the pull-up/pull-down
1041
 961:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1042
 962:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1043
 963:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1044
 964:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef  USB_DevDisconnect(USB_OTG_GlobalTypeDef *USBx)
1045
 965:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1046
 966:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1047
 967:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1048
 968:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DCTL |= USB_OTG_DCTL_SDIS;
1049
 969:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   HAL_Delay(3U);
1050
 970:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1051
 971:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1052
 972:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1053
 973:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1054
 974:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1055
 975:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_ReadInterrupts: return the global USB interrupt status
1056
 976:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1057
 977:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1058
 978:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1059
 979:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t  USB_ReadInterrupts(USB_OTG_GlobalTypeDef *USBx)
1060
 980:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1061
 981:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t tmpreg;
1062
 982:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1063
 983:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg = USBx->GINTSTS;
1064
 984:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg &= USBx->GINTMSK;
1065
 985:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1066
 986:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return tmpreg;
1067
 987:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1068
 988:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1069
 989:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1070
 990:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_ReadDevAllOutEpInterrupt: return the USB device OUT endpoints interrupt status
1071
 991:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1072
 992:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1073
 993:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1074
 994:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t USB_ReadDevAllOutEpInterrupt(USB_OTG_GlobalTypeDef *USBx)
1075
 995:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1076
 996:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1077
 997:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t tmpreg;
1078
 998:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1079
 999:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg  = USBx_DEVICE->DAINT;
1080
1000:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg &= USBx_DEVICE->DAINTMSK;
20 mjames 1081
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 19
16 mjames 1082
 
1083
 
1084
1001:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1085
1002:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return ((tmpreg & 0xffff0000U) >> 16);
1086
1003:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1087
1004:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1088
1005:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1089
1006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_ReadDevAllInEpInterrupt: return the USB device IN endpoints interrupt status
1090
1007:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1091
1008:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1092
1009:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1093
1010:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t USB_ReadDevAllInEpInterrupt(USB_OTG_GlobalTypeDef *USBx)
1094
1011:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1095
1012:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1096
1013:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t tmpreg;
1097
1014:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1098
1015:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg  = USBx_DEVICE->DAINT;
1099
1016:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg &= USBx_DEVICE->DAINTMSK;
1100
1017:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1101
1018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return ((tmpreg & 0xFFFFU));
1102
1019:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1103
1020:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1104
1021:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1105
1022:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Returns Device OUT EP Interrupt register
1106
1023:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1107
1024:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  epnum  endpoint number
1108
1025:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be a value from 0 to 15
1109
1026:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval Device OUT EP Interrupt register
1110
1027:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1111
1028:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t USB_ReadDevOutEPInterrupt(USB_OTG_GlobalTypeDef *USBx, uint8_t epnum)
1112
1029:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1113
1030:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1114
1031:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t tmpreg;
1115
1032:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1116
1033:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg  = USBx_OUTEP((uint32_t)epnum)->DOEPINT;
1117
1034:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg &= USBx_DEVICE->DOEPMSK;
1118
1035:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1119
1036:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return tmpreg;
1120
1037:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1121
1038:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1122
1039:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1123
1040:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Returns Device IN EP Interrupt register
1124
1041:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1125
1042:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  epnum  endpoint number
1126
1043:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be a value from 0 to 15
1127
1044:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval Device IN EP Interrupt register
1128
1045:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1129
1046:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t USB_ReadDevInEPInterrupt(USB_OTG_GlobalTypeDef *USBx, uint8_t epnum)
1130
1047:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1131
1048:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1132
1049:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t tmpreg, msk, emp;
1133
1050:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1134
1051:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   msk = USBx_DEVICE->DIEPMSK;
1135
1052:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   emp = USBx_DEVICE->DIEPEMPMSK;
1136
1053:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   msk |= ((emp >> (epnum & EP_ADDR_MSK)) & 0x1U) << 7;
1137
1054:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg = USBx_INEP((uint32_t)epnum)->DIEPINT & msk;
1138
1055:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1139
1056:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return tmpreg;
1140
1057:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
20 mjames 1141
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 20
16 mjames 1142
 
1143
 
1144
1058:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1145
1059:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1146
1060:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_ClearInterrupts: clear a USB interrupt
1147
1061:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1148
1062:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  interrupt  interrupt flag
1149
1063:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval None
1150
1064:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1151
1065:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** void  USB_ClearInterrupts(USB_OTG_GlobalTypeDef *USBx, uint32_t interrupt)
1152
1066:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1153
1067:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GINTSTS |= interrupt;
1154
1068:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1155
1069:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1156
1070:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1157
1071:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Returns USB core mode
1158
1072:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1159
1073:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval return core mode : Host or Device
1160
1074:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be one of these values:
1161
1075:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *           0 : Host
1162
1076:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *           1 : Device
1163
1077:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1164
1078:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t USB_GetMode(USB_OTG_GlobalTypeDef *USBx)
1165
1079:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1166
1080:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return ((USBx->GINTSTS) & 0x1U);
1167
1081:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1168
1082:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1169
1083:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1170
1084:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Activate EP0 for Setup transactions
1171
1085:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1172
1086:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1173
1087:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1174
1088:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef  USB_ActivateSetup(USB_OTG_GlobalTypeDef *USBx)
1175
1089:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1176
1090:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1177
1091:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1178
1092:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Set the MPS of the IN EP0 to 64 bytes */
1179
1093:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_INEP(0U)->DIEPCTL &= ~USB_OTG_DIEPCTL_MPSIZ;
1180
1094:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1181
1095:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DCTL |= USB_OTG_DCTL_CGINAK;
1182
1096:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1183
1097:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1184
1098:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1185
1099:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1186
1100:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1187
1101:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Prepare the EP0 to start the first control setup
1188
1102:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1189
1103:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  psetup  pointer to setup packet
1190
1104:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1191
1105:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1192
1106:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_EP0_OutStart(USB_OTG_GlobalTypeDef *USBx, uint8_t *psetup)
1193
1107:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1194
1108:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(psetup);
1195
1109:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1196
1110:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t gSNPSiD = *(__IO uint32_t *)(&USBx->CID + 0x1U);
1197
1111:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1198
1112:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (gSNPSiD > USB_OTG_CORE_ID_300A)
1199
1113:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1200
1114:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if ((USBx_OUTEP(0U)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA)
20 mjames 1201
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 21
16 mjames 1202
 
1203
 
1204
1115:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
1205
1116:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       return HAL_OK;
1206
1117:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
1207
1118:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1208
1119:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1209
1120:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_OUTEP(0U)->DOEPTSIZ = 0U;
1210
1121:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_OUTEP(0U)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19));
1211
1122:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_OUTEP(0U)->DOEPTSIZ |= (3U * 8U);
1212
1123:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_OUTEP(0U)->DOEPTSIZ |=  USB_OTG_DOEPTSIZ_STUPCNT;
1213
1124:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1214
1125:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1215
1126:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1216
1127:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1217
1128:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1218
1129:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Reset the USB Core (needed after USB clock settings change)
1219
1130:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1220
1131:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1221
1132:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1222
1133:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** static HAL_StatusTypeDef USB_CoreReset(USB_OTG_GlobalTypeDef *USBx)
1223
1134:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1224
1135:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t count = 0U;
1225
1136:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1226
1137:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Wait for AHB master IDLE state. */
1227
1138:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   do
1228
1139:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1229
1140:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (++count > 200000U)
1230
1141:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
1231
1142:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       return HAL_TIMEOUT;
1232
1143:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
1233
1144:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1234
1145:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_AHBIDL) == 0U);
1235
1146:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1236
1147:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Core Soft Reset */
1237
1148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   count = 0U;
1238
1149:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GRSTCTL |= USB_OTG_GRSTCTL_CSRST;
1239
1150:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1240
1151:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   do
1241
1152:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1242
1153:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (++count > 200000U)
1243
1154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
1244
1155:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       return HAL_TIMEOUT;
1245
1156:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
1246
1157:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1247
1158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_CSRST) == USB_OTG_GRSTCTL_CSRST);
1248
1159:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1249
1160:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1250
1161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1251
1162:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1252
1163:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1253
1164:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_HostInit : Initializes the USB OTG controller registers
1254
1165:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         for Host mode
1255
1166:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1256
1167:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  cfg   pointer to a USB_OTG_CfgTypeDef structure that contains
1257
1168:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         the configuration information for the specified USBx peripheral.
1258
1169:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1259
1170:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1260
1171:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_HostInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg)
20 mjames 1261
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 22
16 mjames 1262
 
1263
 
1264
1172:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1265
1173:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1266
1174:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t i;
1267
1175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1268
1176:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Restart the Phy Clock */
1269
1177:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_PCGCCTL = 0U;
1270
1178:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1271
1179:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Disable VBUS sensing */
1272
1180:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GCCFG &= ~(USB_OTG_GCCFG_VBUSASEN);
1273
1181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GCCFG &= ~(USB_OTG_GCCFG_VBUSBSEN);
1274
1182:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Set default Max speed support */
1275
1183:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HOST->HCFG &= ~(USB_OTG_HCFG_FSLSS);
1276
1184:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1277
1185:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Make sure the FIFOs are flushed. */
1278
1186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   (void)USB_FlushTxFifo(USBx, 0x10U); /* all Tx FIFOs */
1279
1187:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   (void)USB_FlushRxFifo(USBx);
1280
1188:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1281
1189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Clear all pending HC Interrupts */
1282
1190:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   for (i = 0U; i < cfg.Host_channels; i++)
1283
1191:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1284
1192:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_HC(i)->HCINT = 0xFFFFFFFFU;
1285
1193:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_HC(i)->HCINTMSK = 0U;
1286
1194:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1287
1195:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1288
1196:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Enable VBUS driving */
1289
1197:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   (void)USB_DriveVbus(USBx, 1U);
1290
1198:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1291
1199:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   HAL_Delay(200U);
1292
1200:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1293
1201:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Disable all interrupts. */
1294
1202:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GINTMSK = 0U;
1295
1203:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1296
1204:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Clear any pending interrupts */
1297
1205:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GINTSTS = 0xFFFFFFFFU;
1298
1206:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1299
1207:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* set Rx FIFO size */
1300
1208:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GRXFSIZ  = 0x80U;
1301
1209:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->DIEPTXF0_HNPTXFSIZ = (uint32_t)(((0x60U << 16) & USB_OTG_NPTXFD) | 0x80U);
1302
1210:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->HPTXFSIZ = (uint32_t)(((0x40U << 16)& USB_OTG_HPTXFSIZ_PTXFD) | 0xE0U);
1303
1211:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Enable the common interrupts */
1304
1212:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GINTMSK |= USB_OTG_GINTMSK_RXFLVLM;
1305
1213:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1306
1214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Enable interrupts matching to the Host mode ONLY */
1307
1215:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GINTMSK |= (USB_OTG_GINTMSK_PRTIM            | USB_OTG_GINTMSK_HCIM | \
1308
1216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                     USB_OTG_GINTMSK_SOFM             | USB_OTG_GINTSTS_DISCINT | \
1309
1217:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                     USB_OTG_GINTMSK_PXFRM_IISOOXFRM  | USB_OTG_GINTMSK_WUIM);
1310
1218:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1311
1219:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1312
1220:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1313
1221:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1314
1222:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1315
1223:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_InitFSLSPClkSel : Initializes the FSLSPClkSel field of the
1316
1224:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         HCFG register on the PHY type and set the right frame interval
1317
1225:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1318
1226:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  freq  clock frequency
1319
1227:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be one of these values:
1320
1228:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *           HCFG_48_MHZ : Full Speed 48 MHz Clock
20 mjames 1321
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 23
16 mjames 1322
 
1323
 
1324
1229:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *           HCFG_6_MHZ : Low Speed 6 MHz Clock
1325
1230:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1326
1231:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1327
1232:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_InitFSLSPClkSel(USB_OTG_GlobalTypeDef *USBx, uint8_t freq)
1328
1233:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1329
1234:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1330
1235:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1331
1236:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HOST->HCFG &= ~(USB_OTG_HCFG_FSLSPCS);
1332
1237:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HOST->HCFG |= (uint32_t)freq & USB_OTG_HCFG_FSLSPCS;
1333
1238:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1334
1239:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (freq == HCFG_48_MHZ)
1335
1240:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1336
1241:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_HOST->HFIR = 48000U;
1337
1242:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1338
1243:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else if (freq == HCFG_6_MHZ)
1339
1244:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1340
1245:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_HOST->HFIR = 6000U;
1341
1246:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1342
1247:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
1343
1248:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1344
1249:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* ... */
1345
1250:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1346
1251:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1347
1252:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1348
1253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1349
1254:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1350
1255:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1351
1256:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** * @brief  USB_OTG_ResetPort : Reset Host Port
1352
1257:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1353
1258:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1354
1259:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @note (1)The application must wait at least 10 ms
1355
1260:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *   before clearing the reset bit.
1356
1261:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1357
1262:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_ResetPort(USB_OTG_GlobalTypeDef *USBx)
1358
1263:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1359
1264:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1360
1265:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1361
1266:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   __IO uint32_t hprt0 = 0U;
1362
1267:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1363
1268:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   hprt0 = USBx_HPRT0;
1364
1269:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1365
1270:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET |
1366
1271:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****              USB_OTG_HPRT_PENCHNG | USB_OTG_HPRT_POCCHNG);
1367
1272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1368
1273:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HPRT0 = (USB_OTG_HPRT_PRST | hprt0);
1369
1274:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   HAL_Delay(100U);                                 /* See Note #1 */
1370
1275:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HPRT0 = ((~USB_OTG_HPRT_PRST) & hprt0);
1371
1276:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   HAL_Delay(10U);
1372
1277:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1373
1278:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1374
1279:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1375
1280:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1376
1281:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1377
1282:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_DriveVbus : activate or de-activate vbus
1378
1283:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  state  VBUS state
1379
1284:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be one of these values:
1380
1285:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *           0 : VBUS Active
20 mjames 1381
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 24
16 mjames 1382
 
1383
 
1384
1286:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *           1 : VBUS Inactive
1385
1287:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1386
1288:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** */
1387
1289:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_DriveVbus(USB_OTG_GlobalTypeDef *USBx, uint8_t state)
1388
1290:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1389
1291:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1390
1292:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   __IO uint32_t hprt0 = 0U;
1391
1293:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1392
1294:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   hprt0 = USBx_HPRT0;
1393
1295:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1394
1296:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   hprt0 &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET |
1395
1297:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****              USB_OTG_HPRT_PENCHNG | USB_OTG_HPRT_POCCHNG);
1396
1298:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1397
1299:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (((hprt0 & USB_OTG_HPRT_PPWR) == 0U) && (state == 1U))
1398
1300:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1399
1301:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_HPRT0 = (USB_OTG_HPRT_PPWR | hprt0);
1400
1302:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1401
1303:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (((hprt0 & USB_OTG_HPRT_PPWR) == USB_OTG_HPRT_PPWR) && (state == 0U))
1402
1304:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1403
1305:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_HPRT0 = ((~USB_OTG_HPRT_PPWR) & hprt0);
1404
1306:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1405
1307:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1406
1308:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1407
1309:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1408
1310:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1409
1311:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Return Host Core speed
1410
1312:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1411
1313:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval speed : Host speed
1412
1314:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be one of these values:
1413
1315:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg HCD_SPEED_FULL: Full speed mode
1414
1316:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg HCD_SPEED_LOW: Low speed mode
1415
1317:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1416
1318:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t USB_GetHostSpeed(USB_OTG_GlobalTypeDef *USBx)
1417
1319:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1418
1320:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1419
1321:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   __IO uint32_t hprt0 = 0U;
1420
1322:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1421
1323:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   hprt0 = USBx_HPRT0;
1422
1324:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return ((hprt0 & USB_OTG_HPRT_PSPD) >> 17);
1423
1325:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1424
1326:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1425
1327:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1426
1328:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Return Host Current Frame number
1427
1329:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1428
1330:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval current frame number
1429
1331:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** */
1430
1332:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t USB_GetCurrentFrame(USB_OTG_GlobalTypeDef *USBx)
1431
1333:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1432
1334:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1433
1335:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1434
1336:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return (USBx_HOST->HFNUM & USB_OTG_HFNUM_FRNUM);
1435
1337:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1436
1338:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1437
1339:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1438
1340:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Initialize a host channel
1439
1341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1440
1342:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ch_num  Channel number
20 mjames 1441
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 25
16 mjames 1442
 
1443
 
1444
1343:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         This parameter can be a value from 1 to 15
1445
1344:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  epnum  Endpoint number
1446
1345:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be a value from 1 to 15
1447
1346:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  dev_address  Current device address
1448
1347:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be a value from 0 to 255
1449
1348:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  speed  Current device speed
1450
1349:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be one of these values:
1451
1350:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg USB_OTG_SPEED_FULL: Full speed mode
1452
1351:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg USB_OTG_SPEED_LOW: Low speed mode
1453
1352:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep_type  Endpoint Type
1454
1353:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be one of these values:
1455
1354:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg EP_TYPE_CTRL: Control type
1456
1355:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg EP_TYPE_ISOC: Isochronous type
1457
1356:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg EP_TYPE_BULK: Bulk type
1458
1357:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg EP_TYPE_INTR: Interrupt type
1459
1358:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  mps  Max Packet Size
1460
1359:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be a value from 0 to32K
1461
1360:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL state
1462
1361:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1463
1362:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_HC_Init(USB_OTG_GlobalTypeDef *USBx,
1464
1363:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                               uint8_t ch_num,
1465
1364:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                               uint8_t epnum,
1466
1365:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                               uint8_t dev_address,
1467
1366:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                               uint8_t speed,
1468
1367:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                               uint8_t ep_type,
1469
1368:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                               uint16_t mps)
1470
1369:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1471
1370:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   HAL_StatusTypeDef ret = HAL_OK;
1472
1371:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1473
1372:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t HCcharEpDir, HCcharLowSpeed;
1474
1373:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1475
1374:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Clear old interrupt conditions for this host channel. */
1476
1375:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HC((uint32_t)ch_num)->HCINT = 0xFFFFFFFFU;
1477
1376:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1478
1377:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Enable channel interrupts required for this transfer. */
1479
1378:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   switch (ep_type)
1480
1379:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1481
1380:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     case EP_TYPE_CTRL:
1482
1381:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     case EP_TYPE_BULK:
1483
1382:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_HC((uint32_t)ch_num)->HCINTMSK = USB_OTG_HCINTMSK_XFRCM  |
1484
1383:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_STALLM |
1485
1384:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_TXERRM |
1486
1385:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_DTERRM |
1487
1386:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_AHBERR |
1488
1387:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_NAKM;
1489
1388:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1490
1389:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if ((epnum & 0x80U) == 0x80U)
1491
1390:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
1492
1391:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_HC((uint32_t)ch_num)->HCINTMSK |= USB_OTG_HCINTMSK_BBERRM;
1493
1392:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
1494
1393:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
1495
1394:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1496
1395:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     case EP_TYPE_INTR:
1497
1396:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_HC((uint32_t)ch_num)->HCINTMSK = USB_OTG_HCINTMSK_XFRCM  |
1498
1397:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_STALLM |
1499
1398:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_TXERRM |
1500
1399:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_DTERRM |
20 mjames 1501
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 26
16 mjames 1502
 
1503
 
1504
1400:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_NAKM   |
1505
1401:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_AHBERR |
1506
1402:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_FRMORM;
1507
1403:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1508
1404:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if ((epnum & 0x80U) == 0x80U)
1509
1405:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
1510
1406:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_HC((uint32_t)ch_num)->HCINTMSK |= USB_OTG_HCINTMSK_BBERRM;
1511
1407:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
1512
1408:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1513
1409:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
1514
1410:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1515
1411:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     case EP_TYPE_ISOC:
1516
1412:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_HC((uint32_t)ch_num)->HCINTMSK = USB_OTG_HCINTMSK_XFRCM  |
1517
1413:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_ACKM   |
1518
1414:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_AHBERR |
1519
1415:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                             USB_OTG_HCINTMSK_FRMORM;
1520
1416:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1521
1417:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if ((epnum & 0x80U) == 0x80U)
1522
1418:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
1523
1419:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         USBx_HC((uint32_t)ch_num)->HCINTMSK |= (USB_OTG_HCINTMSK_TXERRM | USB_OTG_HCINTMSK_BBERRM);
1524
1420:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
1525
1421:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
1526
1422:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1527
1423:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     default:
1528
1424:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       ret = HAL_ERROR;
1529
1425:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
1530
1426:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1531
1427:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1532
1428:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Enable the top level host channel interrupt. */
1533
1429:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HOST->HAINTMSK |= 1UL << (ch_num & 0xFU);
1534
1430:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1535
1431:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Make sure host channel interrupts are enabled. */
1536
1432:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GINTMSK |= USB_OTG_GINTMSK_HCIM;
1537
1433:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1538
1434:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Program the HCCHAR register */
1539
1435:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if ((epnum & 0x80U) == 0x80U)
1540
1436:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1541
1437:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     HCcharEpDir = (0x1U << 15) & USB_OTG_HCCHAR_EPDIR;
1542
1438:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1543
1439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
1544
1440:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1545
1441:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     HCcharEpDir = 0U;
1546
1442:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1547
1443:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1548
1444:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (speed == HPRT0_PRTSPD_LOW_SPEED)
1549
1445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1550
1446:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     HCcharLowSpeed = (0x1U << 17) & USB_OTG_HCCHAR_LSDEV;
1551
1447:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1552
1448:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
1553
1449:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1554
1450:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     HCcharLowSpeed = 0U;
1555
1451:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1556
1452:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1557
1453:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HC((uint32_t)ch_num)->HCCHAR = (((uint32_t)dev_address << 22) & USB_OTG_HCCHAR_DAD) |
1558
1454:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                       ((((uint32_t)epnum & 0x7FU) << 11) & USB_OTG_HCCHAR_EPNUM) |
1559
1455:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                       (((uint32_t)ep_type << 18) & USB_OTG_HCCHAR_EPTYP) |
1560
1456:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                                       ((uint32_t)mps & USB_OTG_HCCHAR_MPSIZ) | HCcharEpDir | HCchar
20 mjames 1561
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 27
16 mjames 1562
 
1563
 
1564
1457:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1565
1458:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep_type == EP_TYPE_INTR)
1566
1459:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1567
1460:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_HC((uint32_t)ch_num)->HCCHAR |= USB_OTG_HCCHAR_ODDFRM ;
1568
1461:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1569
1462:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1570
1463:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return ret;
1571
1464:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1572
1465:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1573
1466:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1574
1467:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Start a transfer over a host channel
1575
1468:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1576
1469:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  hc  pointer to host channel structure
1577
1470:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL state
1578
1471:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1579
1472:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_HC_StartXfer(USB_OTG_GlobalTypeDef *USBx, USB_OTG_HCTypeDef *hc)
1580
1473:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1581
1474:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1582
1475:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t ch_num = (uint32_t)hc->ch_num;
1583
1476:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   static __IO uint32_t tmpreg = 0U;
1584
1477:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint8_t  is_oddframe;
1585
1478:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t len_words;
1586
1479:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t num_packets;
1587
1480:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t max_hc_pkt_count = 256U;
1588
1481:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1589
1482:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Compute the expected number of packets associated to the transfer */
1590
1483:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (hc->xfer_len > 0U)
1591
1484:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1592
1485:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     num_packets = (uint16_t)((hc->xfer_len + hc->max_packet - 1U) / hc->max_packet);
1593
1486:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1594
1487:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (num_packets > max_hc_pkt_count)
1595
1488:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
1596
1489:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       num_packets = max_hc_pkt_count;
1597
1490:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       hc->xfer_len = (uint32_t)num_packets * hc->max_packet;
1598
1491:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
1599
1492:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1600
1493:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
1601
1494:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1602
1495:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     num_packets = 1U;
1603
1496:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1604
1497:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (hc->ep_is_in != 0U)
1605
1498:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1606
1499:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     hc->xfer_len = (uint32_t)num_packets * hc->max_packet;
1607
1500:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1608
1501:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1609
1502:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Initialize the HCTSIZn register */
1610
1503:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HC(ch_num)->HCTSIZ = (hc->xfer_len & USB_OTG_HCTSIZ_XFRSIZ) |
1611
1504:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                             (((uint32_t)num_packets << 19) & USB_OTG_HCTSIZ_PKTCNT) |
1612
1505:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                             (((uint32_t)hc->data_pid << 29) & USB_OTG_HCTSIZ_DPID);
1613
1506:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1614
1507:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   is_oddframe = (((uint32_t)USBx_HOST->HFNUM & 0x01U) != 0U) ? 0U : 1U;
1615
1508:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HC(ch_num)->HCCHAR &= ~USB_OTG_HCCHAR_ODDFRM;
1616
1509:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HC(ch_num)->HCCHAR |= (uint32_t)is_oddframe << 29;
1617
1510:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1618
1511:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Set host channel enable */
1619
1512:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg = USBx_HC(ch_num)->HCCHAR;
1620
1513:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg &= ~USB_OTG_HCCHAR_CHDIS;
20 mjames 1621
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 28
16 mjames 1622
 
1623
 
1624
1514:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1625
1515:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* make sure to set the correct ep direction */
1626
1516:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (hc->ep_is_in != 0U)
1627
1517:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1628
1518:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     tmpreg |= USB_OTG_HCCHAR_EPDIR;
1629
1519:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1630
1520:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
1631
1521:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1632
1522:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     tmpreg &= ~USB_OTG_HCCHAR_EPDIR;
1633
1523:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1634
1524:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg |= USB_OTG_HCCHAR_CHENA;
1635
1525:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HC(ch_num)->HCCHAR = tmpreg;
1636
1526:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1637
1527:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if ((hc->ep_is_in == 0U) && (hc->xfer_len > 0U))
1638
1528:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
1639
1529:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       switch (hc->ep_type)
1640
1530:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
1641
1531:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         /* Non periodic transfer */
1642
1532:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         case EP_TYPE_CTRL:
1643
1533:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         case EP_TYPE_BULK:
1644
1534:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1645
1535:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           len_words = (uint16_t)((hc->xfer_len + 3U) / 4U);
1646
1536:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1647
1537:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           /* check if there is enough space in FIFO space */
1648
1538:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           if (len_words > (USBx->HNPTXSTS & 0xFFFFU))
1649
1539:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           {
1650
1540:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             /* need to process data in nptxfempty interrupt */
1651
1541:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             USBx->GINTMSK |= USB_OTG_GINTMSK_NPTXFEM;
1652
1542:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           }
1653
1543:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           break;
1654
1544:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1655
1545:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         /* Periodic transfer */
1656
1546:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         case EP_TYPE_INTR:
1657
1547:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         case EP_TYPE_ISOC:
1658
1548:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           len_words = (uint16_t)((hc->xfer_len + 3U) / 4U);
1659
1549:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           /* check if there is enough space in FIFO space */
1660
1550:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           if (len_words > (USBx_HOST->HPTXSTS & 0xFFFFU)) /* split the transfer */
1661
1551:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           {
1662
1552:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             /* need to process data in ptxfempty interrupt */
1663
1553:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             USBx->GINTMSK |= USB_OTG_GINTMSK_PTXFEM;
1664
1554:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           }
1665
1555:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           break;
1666
1556:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1667
1557:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         default:
1668
1558:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           break;
1669
1559:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
1670
1560:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1671
1561:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Write packet into the Tx FIFO. */
1672
1562:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       (void)USB_WritePacket(USBx, hc->xfer_buff, hc->ch_num, (uint16_t)hc->xfer_len);
1673
1563:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
1674
1564:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1675
1565:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1676
1566:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1677
1567:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1678
1568:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1679
1569:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief Read all host channel interrupts status
1680
1570:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
20 mjames 1681
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 29
16 mjames 1682
 
1683
 
1684
1571:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL state
1685
1572:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1686
1573:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t USB_HC_ReadInterrupt(USB_OTG_GlobalTypeDef *USBx)
1687
1574:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1688
1575:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1689
1576:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1690
1577:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return ((USBx_HOST->HAINT) & 0xFFFFU);
1691
1578:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1692
1579:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1693
1580:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1694
1581:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Halt a host channel
1695
1582:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1696
1583:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  hc_num  Host Channel number
1697
1584:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         This parameter can be a value from 1 to 15
1698
1585:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL state
1699
1586:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1700
1587:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_HC_Halt(USB_OTG_GlobalTypeDef *USBx, uint8_t hc_num)
1701
1588:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1702
1589:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1703
1590:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t hcnum = (uint32_t)hc_num;
1704
1591:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t count = 0U;
1705
1592:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t HcEpType = (USBx_HC(hcnum)->HCCHAR & USB_OTG_HCCHAR_EPTYP) >> 18;
1706
1593:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1707
1594:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Check for space in the request queue to issue the halt. */
1708
1595:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if ((HcEpType == HCCHAR_CTRL) || (HcEpType == HCCHAR_BULK))
1709
1596:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1710
1597:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHDIS;
1711
1598:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1712
1599:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if ((USBx->HNPTXSTS & (0xFFU << 16)) == 0U)
1713
1600:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
1714
1601:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_HC(hcnum)->HCCHAR &= ~USB_OTG_HCCHAR_CHENA;
1715
1602:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA;
1716
1603:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_HC(hcnum)->HCCHAR &= ~USB_OTG_HCCHAR_EPDIR;
1717
1604:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       do
1718
1605:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
1719
1606:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         if (++count > 1000U)
1720
1607:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         {
1721
1608:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           break;
1722
1609:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         }
1723
1610:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
1724
1611:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       while ((USBx_HC(hcnum)->HCCHAR & USB_OTG_HCCHAR_CHENA) == USB_OTG_HCCHAR_CHENA);
1725
1612:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
1726
1613:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
1727
1614:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
1728
1615:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA;
1729
1616:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
1730
1617:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1731
1618:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
1732
1619:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1733
1620:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHDIS;
1734
1621:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1735
1622:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if ((USBx_HOST->HPTXSTS & (0xFFU << 16)) == 0U)
1736
1623:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
1737
1624:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_HC(hcnum)->HCCHAR &= ~USB_OTG_HCCHAR_CHENA;
1738
1625:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA;
1739
1626:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_HC(hcnum)->HCCHAR &= ~USB_OTG_HCCHAR_EPDIR;
1740
1627:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       do
20 mjames 1741
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 30
16 mjames 1742
 
1743
 
1744
1628:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
1745
1629:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         if (++count > 1000U)
1746
1630:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         {
1747
1631:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****           break;
1748
1632:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         }
1749
1633:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
1750
1634:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       while ((USBx_HC(hcnum)->HCCHAR & USB_OTG_HCCHAR_CHENA) == USB_OTG_HCCHAR_CHENA);
1751
1635:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
1752
1636:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
1753
1637:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
1754
1638:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA;
1755
1639:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
1756
1640:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1757
1641:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1758
1642:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1759
1643:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1760
1644:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1761
1645:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1762
1646:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Initiate Do Ping protocol
1763
1647:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1764
1648:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  hc_num  Host Channel number
1765
1649:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         This parameter can be a value from 1 to 15
1766
1650:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL state
1767
1651:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1768
1652:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_DoPing(USB_OTG_GlobalTypeDef *USBx, uint8_t ch_num)
1769
1653:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1770
1654:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1771
1655:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t chnum = (uint32_t)ch_num;
1772
1656:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t num_packets = 1U;
1773
1657:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t tmpreg;
1774
1658:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1775
1659:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HC(chnum)->HCTSIZ = ((num_packets << 19) & USB_OTG_HCTSIZ_PKTCNT) |
1776
1660:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                            USB_OTG_HCTSIZ_DOPING;
1777
1661:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1778
1662:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Set host channel enable */
1779
1663:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg = USBx_HC(chnum)->HCCHAR;
1780
1664:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg &= ~USB_OTG_HCCHAR_CHDIS;
1781
1665:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg |= USB_OTG_HCCHAR_CHENA;
1782
1666:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HC(chnum)->HCCHAR = tmpreg;
1783
1667:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1784
1668:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1785
1669:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1786
1670:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1787
1671:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1788
1672:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Stop Host Core
1789
1673:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
1790
1674:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL state
1791
1675:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1792
1676:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_StopHost(USB_OTG_GlobalTypeDef *USBx)
1793
1677:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1794
1678:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1795
1679:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t count = 0U;
1796
1680:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t value;
1797
1681:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t i;
1798
1682:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1799
1683:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   (void)USB_DisableGlobalInt(USBx);
1800
1684:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
20 mjames 1801
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 31
16 mjames 1802
 
1803
 
1804
1685:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Flush FIFO */
1805
1686:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   (void)USB_FlushTxFifo(USBx, 0x10U);
1806
1687:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   (void)USB_FlushRxFifo(USBx);
1807
1688:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1808
1689:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Flush out any leftover queued requests. */
1809
1690:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   for (i = 0U; i <= 15U; i++)
1810
1691:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1811
1692:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     value = USBx_HC(i)->HCCHAR;
1812
1693:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     value |=  USB_OTG_HCCHAR_CHDIS;
1813
1694:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     value &= ~USB_OTG_HCCHAR_CHENA;
1814
1695:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     value &= ~USB_OTG_HCCHAR_EPDIR;
1815
1696:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_HC(i)->HCCHAR = value;
1816
1697:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1817
1698:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1818
1699:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Halt all channels to put them into a known state. */
1819
1700:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   for (i = 0U; i <= 15U; i++)
1820
1701:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1821
1702:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     value = USBx_HC(i)->HCCHAR;
1822
1703:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     value |= USB_OTG_HCCHAR_CHDIS;
1823
1704:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     value |= USB_OTG_HCCHAR_CHENA;
1824
1705:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     value &= ~USB_OTG_HCCHAR_EPDIR;
1825
1706:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_HC(i)->HCCHAR = value;
1826
1707:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1827
1708:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     do
1828
1709:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
1829
1710:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if (++count > 1000U)
1830
1711:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
1831
1712:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         break;
1832
1713:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
1833
1714:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
1834
1715:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     while ((USBx_HC(i)->HCCHAR & USB_OTG_HCCHAR_CHENA) == USB_OTG_HCCHAR_CHENA);
1835
1716:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1836
1717:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1837
1718:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Clear any pending Host interrupts */
1838
1719:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_HOST->HAINT = 0xFFFFFFFFU;
1839
1720:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->GINTSTS = 0xFFFFFFFFU;
1840
1721:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1841
1722:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   (void)USB_EnableGlobalInt(USBx);
1842
1723:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1843
1724:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1844
1725:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1845
1726:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1846
1727:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1847
1728:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_ActivateRemoteWakeup active remote wakeup signalling
1848
1729:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx Selected device
1849
1730:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1850
1731:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1851
1732:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_ActivateRemoteWakeup(USB_OTG_GlobalTypeDef *USBx)
1852
1733:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1853
1734:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1854
1735:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1855
1736:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if ((USBx_DEVICE->DSTS & USB_OTG_DSTS_SUSPSTS) == USB_OTG_DSTS_SUSPSTS)
1856
1737:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
1857
1738:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* active Remote wakeup signalling */
1858
1739:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx_DEVICE->DCTL |= USB_OTG_DCTL_RWUSIG;
1859
1740:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
1860
1741:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
20 mjames 1861
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 32
16 mjames 1862
 
1863
 
1864
1742:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1865
1743:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1866
1744:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1867
1745:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1868
1746:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_DeActivateRemoteWakeup de-active remote wakeup signalling
1869
1747:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx Selected device
1870
1748:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1871
1749:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1872
1750:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_DeActivateRemoteWakeup(USB_OTG_GlobalTypeDef *USBx)
1873
1751:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1874
1752:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t USBx_BASE = (uint32_t)USBx;
1875
1753:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1876
1754:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* active Remote wakeup signalling */
1877
1755:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx_DEVICE->DCTL &= ~(USB_OTG_DCTL_RWUSIG);
1878
1756:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1879
1757:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1880
1758:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1881
1759:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** #endif /* defined (USB_OTG_FS) */
1882
1760:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1883
1761:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** #if defined (USB)
1884
1762:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1885
1763:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Initializes the USB Core
1886
1764:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx: USB Instance
1887
1765:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  cfg : pointer to a USB_CfgTypeDef structure that contains
1888
1766:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         the configuration information for the specified USBx peripheral.
1889
1767:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1890
1768:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1891
1769:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_CoreInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg)
1892
1770:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1893
  28              		.loc 1 1770 1 view -0
1894
  29              		.cfi_startproc
1895
  30              		@ args = 36, pretend = 16, frame = 0
1896
  31              		@ frame_needed = 0, uses_anonymous_args = 0
1897
  32              		@ link register save eliminated.
1898
  33              		.loc 1 1770 1 is_stmt 0 view .LVU1
1899
  34 0000 84B0     		sub	sp, sp, #16
1900
  35              	.LCFI0:
1901
  36              		.cfi_def_cfa_offset 16
1902
  37 0002 01A8     		add	r0, sp, #4
1903
  38              	.LVL1:
1904
  39              		.loc 1 1770 1 view .LVU2
1905
  40 0004 80E80E00 		stm	r0, {r1, r2, r3}
1906
1771:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
1907
1772:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
1908
  41              		.loc 1 1772 3 is_stmt 1 view .LVU3
1909
1773:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(cfg);
1910
  42              		.loc 1 1773 3 view .LVU4
1911
1774:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1912
1775:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
1913
1776:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
1914
1777:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
1915
1778:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
1916
1779:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1917
1780:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1918
  43              		.loc 1 1780 3 view .LVU5
1919
1781:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1920
  44              		.loc 1 1781 1 is_stmt 0 view .LVU6
20 mjames 1921
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 33
16 mjames 1922
 
1923
 
1924
  45 0008 0020     		movs	r0, #0
1925
  46 000a 04B0     		add	sp, sp, #16
1926
  47              	.LCFI1:
1927
  48              		.cfi_def_cfa_offset 0
1928
  49 000c 7047     		bx	lr
1929
  50              		.cfi_endproc
1930
  51              	.LFE65:
1931
  53              		.section	.text.USB_EnableGlobalInt,"ax",%progbits
1932
  54              		.align	1
1933
  55              		.global	USB_EnableGlobalInt
1934
  56              		.syntax unified
1935
  57              		.thumb
1936
  58              		.thumb_func
1937
  59              		.fpu softvfp
1938
  61              	USB_EnableGlobalInt:
1939
  62              	.LVL2:
1940
  63              	.LFB66:
1941
1782:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1942
1783:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1943
1784:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_EnableGlobalInt
1944
1785:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         Enables the controller's Global Int in the AHB Config reg
1945
1786:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
1946
1787:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
1947
1788:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
1948
1789:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_EnableGlobalInt(USB_TypeDef *USBx)
1949
1790:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
1950
  64              		.loc 1 1790 1 is_stmt 1 view -0
1951
  65              		.cfi_startproc
1952
  66              		@ args = 0, pretend = 0, frame = 0
1953
  67              		@ frame_needed = 0, uses_anonymous_args = 0
1954
  68              		@ link register save eliminated.
1955
1791:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t winterruptmask;
1956
  69              		.loc 1 1791 3 view .LVU8
1957
1792:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1958
1793:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Set winterruptmask variable */
1959
1794:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   winterruptmask = USB_CNTR_CTRM  | USB_CNTR_WKUPM |
1960
  70              		.loc 1 1794 3 view .LVU9
1961
1795:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                    USB_CNTR_SUSPM | USB_CNTR_ERRM |
1962
1796:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                    USB_CNTR_SOFM | USB_CNTR_ESOFM |
1963
1797:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                    USB_CNTR_RESETM;
1964
1798:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1965
1799:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Set interrupt mask */
1966
1800:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->CNTR |= winterruptmask;
1967
  71              		.loc 1 1800 3 view .LVU10
1968
  72              		.loc 1 1800 14 is_stmt 0 view .LVU11
1969
  73 0000 B0F84030 		ldrh	r3, [r0, #64]
1970
  74 0004 43F43F43 		orr	r3, r3, #48896
1971
  75 0008 A0F84030 		strh	r3, [r0, #64]	@ movhi
1972
1801:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1973
1802:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
1974
  76              		.loc 1 1802 3 is_stmt 1 view .LVU12
1975
1803:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
1976
  77              		.loc 1 1803 1 is_stmt 0 view .LVU13
1977
  78 000c 0020     		movs	r0, #0
1978
  79              	.LVL3:
1979
  80              		.loc 1 1803 1 view .LVU14
1980
  81 000e 7047     		bx	lr
20 mjames 1981
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 34
16 mjames 1982
 
1983
 
1984
  82              		.cfi_endproc
1985
  83              	.LFE66:
1986
  85              		.section	.text.USB_DisableGlobalInt,"ax",%progbits
1987
  86              		.align	1
1988
  87              		.global	USB_DisableGlobalInt
1989
  88              		.syntax unified
1990
  89              		.thumb
1991
  90              		.thumb_func
1992
  91              		.fpu softvfp
1993
  93              	USB_DisableGlobalInt:
1994
  94              	.LVL4:
1995
  95              	.LFB67:
1996
1804:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
1997
1805:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
1998
1806:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_DisableGlobalInt
1999
1807:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         Disable the controller's Global Int in the AHB Config reg
2000
1808:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
2001
1809:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
2002
1810:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** */
2003
1811:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_DisableGlobalInt(USB_TypeDef *USBx)
2004
1812:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
2005
  96              		.loc 1 1812 1 is_stmt 1 view -0
2006
  97              		.cfi_startproc
2007
  98              		@ args = 0, pretend = 0, frame = 0
2008
  99              		@ frame_needed = 0, uses_anonymous_args = 0
2009
 100              		@ link register save eliminated.
2010
1813:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t winterruptmask;
2011
 101              		.loc 1 1813 3 view .LVU16
2012
1814:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2013
1815:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Set winterruptmask variable */
2014
1816:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   winterruptmask = USB_CNTR_CTRM  | USB_CNTR_WKUPM |
2015
 102              		.loc 1 1816 3 view .LVU17
2016
1817:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                    USB_CNTR_SUSPM | USB_CNTR_ERRM |
2017
1818:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                    USB_CNTR_SOFM | USB_CNTR_ESOFM |
2018
1819:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****                    USB_CNTR_RESETM;
2019
1820:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2020
1821:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Clear interrupt mask */
2021
1822:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->CNTR &= ~winterruptmask;
2022
 103              		.loc 1 1822 3 view .LVU18
2023
 104              		.loc 1 1822 14 is_stmt 0 view .LVU19
2024
 105 0000 B0F84030 		ldrh	r3, [r0, #64]
2025
 106 0004 23F47C53 		bic	r3, r3, #16128
2026
 107 0008 5B04     		lsls	r3, r3, #17
2027
 108 000a 5B0C     		lsrs	r3, r3, #17
2028
 109 000c A0F84030 		strh	r3, [r0, #64]	@ movhi
2029
1823:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2030
1824:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
2031
 110              		.loc 1 1824 3 is_stmt 1 view .LVU20
2032
1825:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
2033
 111              		.loc 1 1825 1 is_stmt 0 view .LVU21
2034
 112 0010 0020     		movs	r0, #0
2035
 113              	.LVL5:
2036
 114              		.loc 1 1825 1 view .LVU22
2037
 115 0012 7047     		bx	lr
2038
 116              		.cfi_endproc
2039
 117              	.LFE67:
2040
 119              		.section	.text.USB_SetCurrentMode,"ax",%progbits
20 mjames 2041
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 35
16 mjames 2042
 
2043
 
2044
 120              		.align	1
2045
 121              		.global	USB_SetCurrentMode
2046
 122              		.syntax unified
2047
 123              		.thumb
2048
 124              		.thumb_func
2049
 125              		.fpu softvfp
2050
 127              	USB_SetCurrentMode:
2051
 128              	.LVL6:
2052
 129              	.LFB68:
2053
1826:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2054
1827:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
2055
1828:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_SetCurrentMode : Set functional mode
2056
1829:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
2057
1830:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  mode :  current core mode
2058
1831:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be one of the these values:
2059
1832:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *            @arg USB_DEVICE_MODE: Peripheral mode mode
2060
1833:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
2061
1834:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
2062
1835:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_SetCurrentMode(USB_TypeDef *USBx, USB_ModeTypeDef mode)
2063
1836:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
2064
 130              		.loc 1 1836 1 is_stmt 1 view -0
2065
 131              		.cfi_startproc
2066
 132              		@ args = 0, pretend = 0, frame = 0
2067
 133              		@ frame_needed = 0, uses_anonymous_args = 0
2068
 134              		@ link register save eliminated.
2069
1837:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
2070
1838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
2071
 135              		.loc 1 1838 3 view .LVU24
2072
1839:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(mode);
2073
 136              		.loc 1 1839 3 view .LVU25
2074
1840:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2075
1841:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
2076
1842:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
2077
1843:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
2078
1844:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
2079
1845:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
2080
 137              		.loc 1 1845 3 view .LVU26
2081
1846:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
2082
 138              		.loc 1 1846 1 is_stmt 0 view .LVU27
2083
 139 0000 0020     		movs	r0, #0
2084
 140              	.LVL7:
2085
 141              		.loc 1 1846 1 view .LVU28
2086
 142 0002 7047     		bx	lr
2087
 143              		.cfi_endproc
2088
 144              	.LFE68:
2089
 146              		.section	.text.USB_DevInit,"ax",%progbits
2090
 147              		.align	1
2091
 148              		.global	USB_DevInit
2092
 149              		.syntax unified
2093
 150              		.thumb
2094
 151              		.thumb_func
2095
 152              		.fpu softvfp
2096
 154              	USB_DevInit:
2097
 155              	.LVL8:
2098
 156              	.LFB69:
2099
1847:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2100
1848:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
20 mjames 2101
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 36
16 mjames 2102
 
2103
 
2104
1849:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_DevInit : Initializes the USB controller registers
2105
1850:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         for device mode
2106
1851:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
2107
1852:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  cfg  : pointer to a USB_CfgTypeDef structure that contains
2108
1853:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         the configuration information for the specified USBx peripheral.
2109
1854:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
2110
1855:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
2111
1856:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_DevInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg)
2112
1857:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
2113
 157              		.loc 1 1857 1 is_stmt 1 view -0
2114
 158              		.cfi_startproc
2115
 159              		@ args = 36, pretend = 16, frame = 0
2116
 160              		@ frame_needed = 0, uses_anonymous_args = 0
2117
 161              		.loc 1 1857 1 is_stmt 0 view .LVU30
2118
 162 0000 84B0     		sub	sp, sp, #16
2119
 163              	.LCFI2:
2120
 164              		.cfi_def_cfa_offset 16
2121
 165 0002 38B5     		push	{r3, r4, r5, lr}
2122
 166              	.LCFI3:
2123
 167              		.cfi_def_cfa_offset 32
2124
 168              		.cfi_offset 3, -32
2125
 169              		.cfi_offset 4, -28
2126
 170              		.cfi_offset 5, -24
2127
 171              		.cfi_offset 14, -20
2128
 172 0004 05AC     		add	r4, sp, #20
2129
 173 0006 84E80E00 		stm	r4, {r1, r2, r3}
2130
1858:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
2131
1859:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(cfg);
2132
 174              		.loc 1 1859 3 is_stmt 1 view .LVU31
2133
1860:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2134
1861:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Init Device */
2135
1862:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /*CNTR_FRES = 1*/
2136
1863:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->CNTR = USB_CNTR_FRES;
2137
 175              		.loc 1 1863 3 view .LVU32
2138
 176              		.loc 1 1863 14 is_stmt 0 view .LVU33
2139
 177 000a 0123     		movs	r3, #1
2140
 178 000c A0F84030 		strh	r3, [r0, #64]	@ movhi
2141
1864:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2142
1865:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /*CNTR_FRES = 0*/
2143
1866:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->CNTR = 0;
2144
 179              		.loc 1 1866 3 is_stmt 1 view .LVU34
2145
 180              		.loc 1 1866 14 is_stmt 0 view .LVU35
2146
 181 0010 0024     		movs	r4, #0
2147
 182 0012 A0F84040 		strh	r4, [r0, #64]	@ movhi
2148
1867:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2149
1868:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /*Clear pending interrupts*/
2150
1869:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->ISTR = 0;
2151
 183              		.loc 1 1869 3 is_stmt 1 view .LVU36
2152
 184              		.loc 1 1869 14 is_stmt 0 view .LVU37
2153
 185 0016 A0F84440 		strh	r4, [r0, #68]	@ movhi
2154
1870:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2155
1871:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /*Set Btable Address*/
2156
1872:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->BTABLE = BTABLE_ADDRESS;
2157
 186              		.loc 1 1872 3 is_stmt 1 view .LVU38
2158
 187              		.loc 1 1872 16 is_stmt 0 view .LVU39
2159
 188 001a A0F85040 		strh	r4, [r0, #80]	@ movhi
2160
1873:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
20 mjames 2161
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 37
16 mjames 2162
 
2163
 
2164
1874:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Enable USB Device Interrupt mask */
2165
1875:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   (void)USB_EnableGlobalInt(USBx);
2166
 189              		.loc 1 1875 3 is_stmt 1 view .LVU40
2167
 190              		.loc 1 1875 9 is_stmt 0 view .LVU41
2168
 191 001e FFF7FEFF 		bl	USB_EnableGlobalInt
2169
 192              	.LVL9:
2170
1876:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2171
1877:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
2172
 193              		.loc 1 1877 3 is_stmt 1 view .LVU42
2173
1878:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
2174
 194              		.loc 1 1878 1 is_stmt 0 view .LVU43
2175
 195 0022 2046     		mov	r0, r4
2176
 196 0024 BDE83840 		pop	{r3, r4, r5, lr}
2177
 197              	.LCFI4:
2178
 198              		.cfi_restore 14
2179
 199              		.cfi_restore 5
2180
 200              		.cfi_restore 4
2181
 201              		.cfi_restore 3
2182
 202              		.cfi_def_cfa_offset 16
2183
 203 0028 04B0     		add	sp, sp, #16
2184
 204              	.LCFI5:
2185
 205              		.cfi_def_cfa_offset 0
2186
 206 002a 7047     		bx	lr
2187
 207              		.cfi_endproc
2188
 208              	.LFE69:
2189
 210              		.section	.text.USB_SetDevSpeed,"ax",%progbits
2190
 211              		.align	1
2191
 212              		.global	USB_SetDevSpeed
2192
 213              		.syntax unified
2193
 214              		.thumb
2194
 215              		.thumb_func
2195
 216              		.fpu softvfp
2196
 218              	USB_SetDevSpeed:
2197
 219              	.LVL10:
2198
 220              	.LFB70:
2199
1879:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2200
1880:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
2201
1881:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_SetDevSpeed :Initializes the device speed
2202
1882:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         depending on the PHY type and the enumeration speed of the device.
2203
1883:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
2204
1884:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  speed  device speed
2205
1885:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval  Hal status
2206
1886:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
2207
1887:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_SetDevSpeed(USB_TypeDef *USBx, uint8_t speed)
2208
1888:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
2209
 221              		.loc 1 1888 1 is_stmt 1 view -0
2210
 222              		.cfi_startproc
2211
 223              		@ args = 0, pretend = 0, frame = 0
2212
 224              		@ frame_needed = 0, uses_anonymous_args = 0
2213
 225              		@ link register save eliminated.
2214
1889:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
2215
1890:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
2216
 226              		.loc 1 1890 3 view .LVU45
2217
1891:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(speed);
2218
 227              		.loc 1 1891 3 view .LVU46
2219
1892:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2220
1893:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
20 mjames 2221
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 38
16 mjames 2222
 
2223
 
2224
1894:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
2225
1895:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
2226
1896:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
2227
1897:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2228
1898:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
2229
 228              		.loc 1 1898 3 view .LVU47
2230
1899:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
2231
 229              		.loc 1 1899 1 is_stmt 0 view .LVU48
2232
 230 0000 0020     		movs	r0, #0
2233
 231              	.LVL11:
2234
 232              		.loc 1 1899 1 view .LVU49
2235
 233 0002 7047     		bx	lr
2236
 234              		.cfi_endproc
2237
 235              	.LFE70:
2238
 237              		.section	.text.USB_FlushTxFifo,"ax",%progbits
2239
 238              		.align	1
2240
 239              		.global	USB_FlushTxFifo
2241
 240              		.syntax unified
2242
 241              		.thumb
2243
 242              		.thumb_func
2244
 243              		.fpu softvfp
2245
 245              	USB_FlushTxFifo:
2246
 246              	.LVL12:
2247
 247              	.LFB71:
2248
1900:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2249
1901:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
2250
1902:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_FlushTxFifo : Flush a Tx FIFO
2251
1903:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
2252
1904:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  num : FIFO number
2253
1905:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         This parameter can be a value from 1 to 15
2254
1906:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             15 means Flush all Tx FIFOs
2255
1907:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
2256
1908:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
2257
1909:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_FlushTxFifo(USB_TypeDef *USBx, uint32_t num)
2258
1910:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
2259
 248              		.loc 1 1910 1 is_stmt 1 view -0
2260
 249              		.cfi_startproc
2261
 250              		@ args = 0, pretend = 0, frame = 0
2262
 251              		@ frame_needed = 0, uses_anonymous_args = 0
2263
 252              		@ link register save eliminated.
2264
1911:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
2265
1912:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
2266
 253              		.loc 1 1912 3 view .LVU51
2267
1913:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(num);
2268
 254              		.loc 1 1913 3 view .LVU52
2269
1914:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2270
1915:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
2271
1916:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
2272
1917:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
2273
1918:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
2274
1919:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2275
1920:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
2276
 255              		.loc 1 1920 3 view .LVU53
2277
1921:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
2278
 256              		.loc 1 1921 1 is_stmt 0 view .LVU54
2279
 257 0000 0020     		movs	r0, #0
2280
 258              	.LVL13:
20 mjames 2281
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 39
16 mjames 2282
 
2283
 
2284
 259              		.loc 1 1921 1 view .LVU55
2285
 260 0002 7047     		bx	lr
2286
 261              		.cfi_endproc
2287
 262              	.LFE71:
2288
 264              		.section	.text.USB_FlushRxFifo,"ax",%progbits
2289
 265              		.align	1
2290
 266              		.global	USB_FlushRxFifo
2291
 267              		.syntax unified
2292
 268              		.thumb
2293
 269              		.thumb_func
2294
 270              		.fpu softvfp
2295
 272              	USB_FlushRxFifo:
2296
 273              	.LVL14:
2297
 274              	.LFB72:
2298
1922:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2299
1923:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
2300
1924:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_FlushRxFifo : Flush Rx FIFO
2301
1925:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
2302
1926:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
2303
1927:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
2304
1928:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_FlushRxFifo(USB_TypeDef *USBx)
2305
1929:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
2306
 275              		.loc 1 1929 1 is_stmt 1 view -0
2307
 276              		.cfi_startproc
2308
 277              		@ args = 0, pretend = 0, frame = 0
2309
 278              		@ frame_needed = 0, uses_anonymous_args = 0
2310
 279              		@ link register save eliminated.
2311
1930:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
2312
1931:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
2313
 280              		.loc 1 1931 3 view .LVU57
2314
1932:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2315
1933:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
2316
1934:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
2317
1935:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
2318
1936:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
2319
1937:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2320
1938:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
2321
 281              		.loc 1 1938 3 view .LVU58
2322
1939:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
2323
 282              		.loc 1 1939 1 is_stmt 0 view .LVU59
2324
 283 0000 0020     		movs	r0, #0
2325
 284              	.LVL15:
2326
 285              		.loc 1 1939 1 view .LVU60
2327
 286 0002 7047     		bx	lr
2328
 287              		.cfi_endproc
2329
 288              	.LFE72:
2330
 290              		.section	.text.USB_ActivateEndpoint,"ax",%progbits
2331
 291              		.align	1
2332
 292              		.global	USB_ActivateEndpoint
2333
 293              		.syntax unified
2334
 294              		.thumb
2335
 295              		.thumb_func
2336
 296              		.fpu softvfp
2337
 298              	USB_ActivateEndpoint:
2338
 299              	.LVL16:
2339
 300              	.LFB73:
2340
1940:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
20 mjames 2341
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 40
16 mjames 2342
 
2343
 
2344
1941:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
2345
1942:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Activate and configure an endpoint
2346
1943:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
2347
1944:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep: pointer to endpoint structure
2348
1945:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
2349
1946:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
2350
1947:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_ActivateEndpoint(USB_TypeDef *USBx, USB_EPTypeDef *ep)
2351
1948:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
2352
 301              		.loc 1 1948 1 is_stmt 1 view -0
2353
 302              		.cfi_startproc
2354
 303              		@ args = 0, pretend = 0, frame = 0
2355
 304              		@ frame_needed = 0, uses_anonymous_args = 0
2356
 305              		@ link register save eliminated.
2357
 306              		.loc 1 1948 1 is_stmt 0 view .LVU62
2358
 307 0000 30B4     		push	{r4, r5}
2359
 308              	.LCFI6:
2360
 309              		.cfi_def_cfa_offset 8
2361
 310              		.cfi_offset 4, -8
2362
 311              		.cfi_offset 5, -4
2363
 312 0002 0346     		mov	r3, r0
2364
1949:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   HAL_StatusTypeDef ret = HAL_OK;
2365
 313              		.loc 1 1949 3 is_stmt 1 view .LVU63
2366
 314              	.LVL17:
2367
1950:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t wEpRegVal;
2368
 315              		.loc 1 1950 3 view .LVU64
2369
1951:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2370
1952:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   wEpRegVal = PCD_GET_ENDPOINT(USBx, ep->num) & USB_EP_T_MASK;
2371
 316              		.loc 1 1952 3 view .LVU65
2372
 317              		.loc 1 1952 15 is_stmt 0 view .LVU66
2373
 318 0004 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
2374
 319 0006 30F82420 		ldrh	r2, [r0, r4, lsl #2]
2375
 320 000a 92B2     		uxth	r2, r2
2376
 321              		.loc 1 1952 13 view .LVU67
2377
 322 000c 22F4EC42 		bic	r2, r2, #30208
2378
 323 0010 22F07002 		bic	r2, r2, #112
2379
 324 0014 92B2     		uxth	r2, r2
2380
 325              	.LVL18:
2381
1953:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2382
1954:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* initialize Endpoint */
2383
1955:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   switch (ep->type)
2384
 326              		.loc 1 1955 3 is_stmt 1 view .LVU68
2385
 327              		.loc 1 1955 13 is_stmt 0 view .LVU69
2386
 328 0016 C878     		ldrb	r0, [r1, #3]	@ zero_extendqisi2
2387
 329              	.LVL19:
2388
 330              		.loc 1 1955 3 view .LVU70
2389
 331 0018 0328     		cmp	r0, #3
2390
 332 001a 5AD8     		bhi	.L36
2391
 333 001c DFE800F0 		tbb	[pc, r0]
2392
 334              	.L14:
2393
 335 0020 4D       		.byte	(.L17-.L14)/2
2394
 336 0021 55       		.byte	(.L16-.L14)/2
2395
 337 0022 02       		.byte	(.L15-.L14)/2
2396
 338 0023 51       		.byte	(.L13-.L14)/2
2397
 339              		.p2align 1
2398
 340              	.L15:
2399
1949:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t wEpRegVal;
2400
 341              		.loc 1 1949 21 view .LVU71
20 mjames 2401
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 41
16 mjames 2402
 
2403
 
2404
 342 0024 0020     		movs	r0, #0
2405
 343              	.L12:
2406
 344              	.LVL20:
2407
1956:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
2408
1957:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     case EP_TYPE_CTRL:
2409
1958:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       wEpRegVal |= USB_EP_CONTROL;
2410
1959:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
2411
1960:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2412
1961:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     case EP_TYPE_BULK:
2413
1962:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       wEpRegVal |= USB_EP_BULK;
2414
1963:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
2415
1964:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2416
1965:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     case EP_TYPE_INTR:
2417
1966:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       wEpRegVal |= USB_EP_INTERRUPT;
2418
1967:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
2419
1968:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2420
1969:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     case EP_TYPE_ISOC:
2421
1970:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       wEpRegVal |= USB_EP_ISOCHRONOUS;
2422
1971:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
2423
1972:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2424
1973:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     default:
2425
1974:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       ret = HAL_ERROR;
2426
1975:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
2427
1976:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
2428
1977:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2429
1978:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   PCD_SET_ENDPOINT(USBx, ep->num, wEpRegVal | USB_EP_CTR_RX | USB_EP_CTR_TX);
2430
 345              		.loc 1 1978 3 is_stmt 1 view .LVU72
2431
 346 0026 48F28005 		movw	r5, #32896
2432
 347 002a 2A43     		orrs	r2, r2, r5
2433
 348              	.LVL21:
2434
 349              		.loc 1 1978 3 is_stmt 0 view .LVU73
2435
 350 002c 23F82420 		strh	r2, [r3, r4, lsl #2]	@ movhi
2436
1979:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2437
1980:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   PCD_SET_EP_ADDRESS(USBx, ep->num, ep->num);
2438
 351              		.loc 1 1980 3 is_stmt 1 view .LVU74
2439
 352              	.LBB2:
2440
 353              		.loc 1 1980 3 view .LVU75
2441
 354              		.loc 1 1980 3 view .LVU76
2442
 355 0030 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
2443
 356 0032 33F82420 		ldrh	r2, [r3, r4, lsl #2]
2444
 357 0036 92B2     		uxth	r2, r2
2445
 358 0038 22F4E042 		bic	r2, r2, #28672
2446
 359 003c 22F07002 		bic	r2, r2, #112
2447
 360 0040 2243     		orrs	r2, r2, r4
2448
 361              	.LVL22:
2449
 362              		.loc 1 1980 3 view .LVU77
2450
 363 0042 2A43     		orrs	r2, r2, r5
2451
 364              	.LVL23:
2452
 365              		.loc 1 1980 3 is_stmt 0 view .LVU78
2453
 366 0044 23F82420 		strh	r2, [r3, r4, lsl #2]	@ movhi
2454
 367              	.LBE2:
2455
1981:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2456
1982:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->doublebuffer == 0U)
2457
 368              		.loc 1 1982 3 is_stmt 1 view .LVU79
2458
 369              		.loc 1 1982 9 is_stmt 0 view .LVU80
2459
 370 0048 0A7B     		ldrb	r2, [r1, #12]	@ zero_extendqisi2
2460
 371              		.loc 1 1982 6 view .LVU81
20 mjames 2461
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 42
16 mjames 2462
 
2463
 
2464
 372 004a 002A     		cmp	r2, #0
2465
 373 004c 40F0B180 		bne	.L18
2466
1983:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
2467
1984:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->is_in != 0U)
2468
 374              		.loc 1 1984 5 is_stmt 1 view .LVU82
2469
 375              		.loc 1 1984 11 is_stmt 0 view .LVU83
2470
 376 0050 4A78     		ldrb	r2, [r1, #1]	@ zero_extendqisi2
2471
 377              		.loc 1 1984 8 view .LVU84
2472
 378 0052 002A     		cmp	r2, #0
2473
 379 0054 4ED0     		beq	.L19
2474
1985:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
2475
1986:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /*Set the endpoint Transmit buffer address */
2476
1987:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_ADDRESS(USBx, ep->num, ep->pmaadress);
2477
 380              		.loc 1 1987 7 is_stmt 1 view .LVU85
2478
 381              	.LBB3:
2479
 382              		.loc 1 1987 7 view .LVU86
2480
 383              		.loc 1 1987 7 view .LVU87
2481
 384              	.LVL24:
2482
 385              		.loc 1 1987 7 view .LVU88
2483
 386 0056 B3F85020 		ldrh	r2, [r3, #80]
2484
 387 005a 1A44     		add	r2, r2, r3
2485
 388              	.LVL25:
2486
 389              		.loc 1 1987 7 view .LVU89
2487
 390 005c 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
2488
 391 005e 02EB0412 		add	r2, r2, r4, lsl #4
2489
 392              	.LVL26:
2490
 393              		.loc 1 1987 7 view .LVU90
2491
 394 0062 CC88     		ldrh	r4, [r1, #6]
2492
 395 0064 6408     		lsrs	r4, r4, #1
2493
 396 0066 6400     		lsls	r4, r4, #1
2494
 397 0068 A2F80044 		strh	r4, [r2, #1024]	@ movhi
2495
 398              	.LBE3:
2496
1988:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
2497
 399              		.loc 1 1988 7 view .LVU91
2498
 400              	.LBB4:
2499
 401              		.loc 1 1988 7 view .LVU92
2500
 402              		.loc 1 1988 7 view .LVU93
2501
 403 006c 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
2502
 404 006e 33F82420 		ldrh	r2, [r3, r4, lsl #2]
2503
 405              	.LVL27:
2504
 406              		.loc 1 1988 7 view .LVU94
2505
 407 0072 12F0400F 		tst	r2, #64
2506
 408 0076 0CD0     		beq	.L20
2507
 409              		.loc 1 1988 7 discriminator 1 view .LVU95
2508
 410              	.LBB5:
2509
 411              		.loc 1 1988 7 discriminator 1 view .LVU96
2510
 412              		.loc 1 1988 7 discriminator 1 view .LVU97
2511
 413 0078 33F82420 		ldrh	r2, [r3, r4, lsl #2]
2512
 414              	.LVL28:
2513
 415              		.loc 1 1988 7 is_stmt 0 discriminator 1 view .LVU98
2514
 416 007c 92B2     		uxth	r2, r2
2515
 417 007e 22F4E042 		bic	r2, r2, #28672
2516
 418 0082 22F07002 		bic	r2, r2, #112
2517
 419              	.LVL29:
2518
 420              		.loc 1 1988 7 is_stmt 1 discriminator 1 view .LVU99
2519
 421 0086 42F40042 		orr	r2, r2, #32768
2520
 422              	.LVL30:
20 mjames 2521
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 43
16 mjames 2522
 
2523
 
2524
 423              		.loc 1 1988 7 is_stmt 0 discriminator 1 view .LVU100
2525
 424 008a 42F0C002 		orr	r2, r2, #192
2526
 425 008e 23F82420 		strh	r2, [r3, r4, lsl #2]	@ movhi
2527
 426              	.L20:
2528
 427              		.loc 1 1988 7 discriminator 1 view .LVU101
2529
 428              	.LBE5:
2530
 429              	.LBE4:
2531
1989:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2532
1990:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if (ep->type != EP_TYPE_ISOC)
2533
 430              		.loc 1 1990 7 is_stmt 1 view .LVU102
2534
 431              		.loc 1 1990 13 is_stmt 0 view .LVU103
2535
 432 0092 CA78     		ldrb	r2, [r1, #3]	@ zero_extendqisi2
2536
 433              		.loc 1 1990 10 view .LVU104
2537
 434 0094 012A     		cmp	r2, #1
2538
 435 0096 1ED0     		beq	.L21
2539
1991:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
2540
1992:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         /* Configure NAK status for the Endpoint */
2541
1993:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_NAK);
2542
 436              		.loc 1 1993 9 is_stmt 1 view .LVU105
2543
 437              	.LBB6:
2544
 438              		.loc 1 1993 9 view .LVU106
2545
 439              		.loc 1 1993 9 view .LVU107
2546
 440 0098 0978     		ldrb	r1, [r1]	@ zero_extendqisi2
2547
 441              	.LVL31:
2548
 442              		.loc 1 1993 9 is_stmt 0 view .LVU108
2549
 443 009a 33F82120 		ldrh	r2, [r3, r1, lsl #2]
2550
 444 009e 92B2     		uxth	r2, r2
2551
 445 00a0 22F4E042 		bic	r2, r2, #28672
2552
 446 00a4 22F04002 		bic	r2, r2, #64
2553
 447              	.LVL32:
2554
 448              		.loc 1 1993 9 is_stmt 1 view .LVU109
2555
 449              		.loc 1 1993 9 view .LVU110
2556
 450              		.loc 1 1993 9 view .LVU111
2557
 451 00a8 82F02002 		eor	r2, r2, #32
2558
 452              	.LVL33:
2559
 453              		.loc 1 1993 9 view .LVU112
2560
 454 00ac 42F40042 		orr	r2, r2, #32768
2561
 455              	.LVL34:
2562
 456              		.loc 1 1993 9 is_stmt 0 view .LVU113
2563
 457 00b0 42F08002 		orr	r2, r2, #128
2564
 458 00b4 23F82120 		strh	r2, [r3, r1, lsl #2]	@ movhi
2565
 459              	.LBE6:
2566
 460 00b8 60E0     		b	.L22
2567
 461              	.LVL35:
2568
 462              	.L17:
2569
1958:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
2570
 463              		.loc 1 1958 7 is_stmt 1 view .LVU114
2571
1958:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
2572
 464              		.loc 1 1958 17 is_stmt 0 view .LVU115
2573
 465 00ba 42F40072 		orr	r2, r2, #512
2574
 466              	.LVL36:
2575
1959:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2576
 467              		.loc 1 1959 7 is_stmt 1 view .LVU116
2577
1949:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t wEpRegVal;
2578
 468              		.loc 1 1949 21 is_stmt 0 view .LVU117
2579
 469 00be 0020     		movs	r0, #0
2580
1959:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
20 mjames 2581
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 44
16 mjames 2582
 
2583
 
2584
 470              		.loc 1 1959 7 view .LVU118
2585
 471 00c0 B1E7     		b	.L12
2586
 472              	.L13:
2587
1966:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
2588
 473              		.loc 1 1966 7 is_stmt 1 view .LVU119
2589
1966:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
2590
 474              		.loc 1 1966 17 is_stmt 0 view .LVU120
2591
 475 00c2 42F4C062 		orr	r2, r2, #1536
2592
 476              	.LVL37:
2593
1967:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2594
 477              		.loc 1 1967 7 is_stmt 1 view .LVU121
2595
1949:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t wEpRegVal;
2596
 478              		.loc 1 1949 21 is_stmt 0 view .LVU122
2597
 479 00c6 0020     		movs	r0, #0
2598
1967:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2599
 480              		.loc 1 1967 7 view .LVU123
2600
 481 00c8 ADE7     		b	.L12
2601
 482              	.L16:
2602
1970:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
2603
 483              		.loc 1 1970 7 is_stmt 1 view .LVU124
2604
1970:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
2605
 484              		.loc 1 1970 17 is_stmt 0 view .LVU125
2606
 485 00ca 42F48062 		orr	r2, r2, #1024
2607
 486              	.LVL38:
2608
1971:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2609
 487              		.loc 1 1971 7 is_stmt 1 view .LVU126
2610
1949:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t wEpRegVal;
2611
 488              		.loc 1 1949 21 is_stmt 0 view .LVU127
2612
 489 00ce 0020     		movs	r0, #0
2613
1971:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2614
 490              		.loc 1 1971 7 view .LVU128
2615
 491 00d0 A9E7     		b	.L12
2616
 492              	.L36:
2617
1974:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       break;
2618
 493              		.loc 1 1974 11 view .LVU129
2619
 494 00d2 0120     		movs	r0, #1
2620
 495 00d4 A7E7     		b	.L12
2621
 496              	.LVL39:
2622
 497              	.L21:
2623
1994:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
2624
1995:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       else
2625
1996:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
2626
1997:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         /* Configure TX Endpoint to disabled state */
2627
1998:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
2628
 498              		.loc 1 1998 9 is_stmt 1 view .LVU130
2629
 499              	.LBB7:
2630
 500              		.loc 1 1998 9 view .LVU131
2631
 501              		.loc 1 1998 9 view .LVU132
2632
 502 00d6 0978     		ldrb	r1, [r1]	@ zero_extendqisi2
2633
 503              	.LVL40:
2634
 504              		.loc 1 1998 9 is_stmt 0 view .LVU133
2635
 505 00d8 33F82120 		ldrh	r2, [r3, r1, lsl #2]
2636
 506 00dc 92B2     		uxth	r2, r2
2637
 507 00de 22F4E042 		bic	r2, r2, #28672
2638
 508 00e2 22F04002 		bic	r2, r2, #64
2639
 509              	.LVL41:
2640
 510              		.loc 1 1998 9 is_stmt 1 view .LVU134
20 mjames 2641
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 45
16 mjames 2642
 
2643
 
2644
 511              		.loc 1 1998 9 view .LVU135
2645
 512              		.loc 1 1998 9 view .LVU136
2646
 513 00e6 42F40042 		orr	r2, r2, #32768
2647
 514              	.LVL42:
2648
 515              		.loc 1 1998 9 is_stmt 0 view .LVU137
2649
 516 00ea 42F08002 		orr	r2, r2, #128
2650
 517 00ee 23F82120 		strh	r2, [r3, r1, lsl #2]	@ movhi
2651
 518 00f2 43E0     		b	.L22
2652
 519              	.LVL43:
2653
 520              	.L19:
2654
 521              		.loc 1 1998 9 view .LVU138
2655
 522              	.LBE7:
2656
1999:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
2657
2000:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
2658
2001:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
2659
2002:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
2660
2003:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /*Set the endpoint Receive buffer address */
2661
2004:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_ADDRESS(USBx, ep->num, ep->pmaadress);
2662
 523              		.loc 1 2004 7 is_stmt 1 view .LVU139
2663
 524              	.LBB8:
2664
 525              		.loc 1 2004 7 view .LVU140
2665
 526              		.loc 1 2004 7 view .LVU141
2666
 527              		.loc 1 2004 7 view .LVU142
2667
 528 00f4 B3F85020 		ldrh	r2, [r3, #80]
2668
 529 00f8 1A44     		add	r2, r2, r3
2669
 530              	.LVL44:
2670
 531              		.loc 1 2004 7 view .LVU143
2671
 532 00fa 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
2672
 533 00fc 02EB0412 		add	r2, r2, r4, lsl #4
2673
 534              	.LVL45:
2674
 535              		.loc 1 2004 7 view .LVU144
2675
 536 0100 CC88     		ldrh	r4, [r1, #6]
2676
 537 0102 6408     		lsrs	r4, r4, #1
2677
 538 0104 6400     		lsls	r4, r4, #1
2678
 539 0106 A2F80844 		strh	r4, [r2, #1032]	@ movhi
2679
 540              	.LBE8:
2680
2005:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /*Set the endpoint Receive buffer counter*/
2681
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_CNT(USBx, ep->num, ep->maxpacket);
2682
 541              		.loc 1 2006 7 view .LVU145
2683
 542              	.LBB9:
2684
 543              		.loc 1 2006 7 view .LVU146
2685
 544              	.LVL46:
2686
 545              		.loc 1 2006 7 view .LVU147
2687
 546              		.loc 1 2006 7 view .LVU148
2688
 547 010a B3F85020 		ldrh	r2, [r3, #80]
2689
 548              	.LVL47:
2690
 549              		.loc 1 2006 7 is_stmt 0 view .LVU149
2691
 550 010e 1A44     		add	r2, r2, r3
2692
 551              	.LVL48:
2693
 552              		.loc 1 2006 7 is_stmt 1 view .LVU150
2694
 553 0110 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
2695
 554 0112 02EB0412 		add	r2, r2, r4, lsl #4
2696
 555              	.LVL49:
2697
 556              		.loc 1 2006 7 view .LVU151
2698
 557              	.LBB10:
2699
 558              		.loc 1 2006 7 view .LVU152
2700
 559              		.loc 1 2006 7 view .LVU153
20 mjames 2701
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 46
16 mjames 2702
 
2703
 
2704
 560 0116 0C69     		ldr	r4, [r1, #16]
2705
 561 0118 94BB     		cbnz	r4, .L23
2706
 562              		.loc 1 2006 7 discriminator 1 view .LVU154
2707
 563 011a B2F80C44 		ldrh	r4, [r2, #1036]
2708
 564 011e A4B2     		uxth	r4, r4
2709
 565 0120 24F4F844 		bic	r4, r4, #31744
2710
 566 0124 A4B2     		uxth	r4, r4
2711
 567 0126 A2F80C44 		strh	r4, [r2, #1036]	@ movhi
2712
 568              		.loc 1 2006 7 discriminator 1 view .LVU155
2713
 569 012a B2F80C44 		ldrh	r4, [r2, #1036]
2714
 570 012e 44F40044 		orr	r4, r4, #32768
2715
 571 0132 A2F80C44 		strh	r4, [r2, #1036]	@ movhi
2716
 572              	.L24:
2717
 573              	.LBE10:
2718
 574              	.LBE9:
2719
2007:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2720
 575              		.loc 1 2007 7 view .LVU156
2721
 576              	.LBB12:
2722
 577              		.loc 1 2007 7 view .LVU157
2723
 578              		.loc 1 2007 7 view .LVU158
2724
 579 0136 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
2725
 580 0138 33F82420 		ldrh	r2, [r3, r4, lsl #2]
2726
 581              	.LVL50:
2727
 582              		.loc 1 2007 7 view .LVU159
2728
 583 013c 12F4804F 		tst	r2, #16384
2729
 584 0140 0CD0     		beq	.L28
2730
 585              		.loc 1 2007 7 discriminator 1 view .LVU160
2731
 586              	.LBB13:
2732
 587              		.loc 1 2007 7 discriminator 1 view .LVU161
2733
 588              		.loc 1 2007 7 discriminator 1 view .LVU162
2734
 589 0142 33F82420 		ldrh	r2, [r3, r4, lsl #2]
2735
 590              	.LVL51:
2736
 591              		.loc 1 2007 7 is_stmt 0 discriminator 1 view .LVU163
2737
 592 0146 92B2     		uxth	r2, r2
2738
 593 0148 22F4E042 		bic	r2, r2, #28672
2739
 594 014c 22F07002 		bic	r2, r2, #112
2740
 595              	.LVL52:
2741
 596              		.loc 1 2007 7 is_stmt 1 discriminator 1 view .LVU164
2742
 597 0150 42F44042 		orr	r2, r2, #49152
2743
 598              	.LVL53:
2744
 599              		.loc 1 2007 7 is_stmt 0 discriminator 1 view .LVU165
2745
 600 0154 42F08002 		orr	r2, r2, #128
2746
 601 0158 23F82420 		strh	r2, [r3, r4, lsl #2]	@ movhi
2747
 602              	.L28:
2748
 603              		.loc 1 2007 7 discriminator 1 view .LVU166
2749
 604              	.LBE13:
2750
 605              	.LBE12:
2751
2008:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure VALID status for the Endpoint*/
2752
2009:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_VALID);
2753
 606              		.loc 1 2009 7 is_stmt 1 view .LVU167
2754
 607              	.LBB14:
2755
 608              		.loc 1 2009 7 view .LVU168
2756
 609              		.loc 1 2009 7 view .LVU169
2757
 610 015c 0978     		ldrb	r1, [r1]	@ zero_extendqisi2
2758
 611              	.LVL54:
2759
 612              		.loc 1 2009 7 is_stmt 0 view .LVU170
2760
 613 015e 33F82120 		ldrh	r2, [r3, r1, lsl #2]
20 mjames 2761
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 47
16 mjames 2762
 
2763
 
2764
 614 0162 92B2     		uxth	r2, r2
2765
 615 0164 22F48042 		bic	r2, r2, #16384
2766
 616 0168 22F07002 		bic	r2, r2, #112
2767
 617              	.LVL55:
2768
 618              		.loc 1 2009 7 is_stmt 1 view .LVU171
2769
 619              		.loc 1 2009 7 view .LVU172
2770
 620              		.loc 1 2009 7 view .LVU173
2771
 621              		.loc 1 2009 7 view .LVU174
2772
 622 016c 82F44052 		eor	r2, r2, #12288
2773
 623              	.LVL56:
2774
 624              		.loc 1 2009 7 view .LVU175
2775
 625 0170 42F40042 		orr	r2, r2, #32768
2776
 626              	.LVL57:
2777
 627              		.loc 1 2009 7 is_stmt 0 view .LVU176
2778
 628 0174 42F08002 		orr	r2, r2, #128
2779
 629 0178 23F82120 		strh	r2, [r3, r1, lsl #2]	@ movhi
2780
 630              	.L22:
2781
 631              		.loc 1 2009 7 view .LVU177
2782
 632              	.LBE14:
2783
2010:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
2784
2011:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
2785
2012:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /*Double Buffer*/
2786
2013:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
2787
2014:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
2788
2015:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Set the endpoint as double buffered */
2789
2016:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     PCD_SET_EP_DBUF(USBx, ep->num);
2790
2017:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Set buffer address for double buffered mode */
2791
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     PCD_SET_EP_DBUF_ADDR(USBx, ep->num, ep->pmaaddr0, ep->pmaaddr1);
2792
2019:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2793
2020:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->is_in == 0U)
2794
2021:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
2795
2022:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Clear the data toggle bits for the endpoint IN/OUT */
2796
2023:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2797
2024:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
2798
2025:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2799
2026:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Reset value of the data toggle bits for the endpoint out */
2800
2027:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_TX_DTOG(USBx, ep->num);
2801
2028:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2802
2029:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_VALID);
2803
2030:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
2804
2031:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
2805
2032:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
2806
2033:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
2807
2034:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Clear the data toggle bits for the endpoint IN/OUT */
2808
2035:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2809
2036:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
2810
2037:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
2811
2038:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2812
2039:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if (ep->type != EP_TYPE_ISOC)
2813
2040:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
2814
2041:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         /* Configure NAK status for the Endpoint */
2815
2042:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_NAK);
2816
2043:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
2817
2044:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       else
2818
2045:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
2819
2046:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         /* Configure TX Endpoint to disabled state */
2820
2047:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
20 mjames 2821
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 48
16 mjames 2822
 
2823
 
2824
2048:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
2825
2049:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2826
2050:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_DIS);
2827
2051:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
2828
2052:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
2829
2053:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2830
2054:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return ret;
2831
 633              		.loc 1 2054 3 is_stmt 1 view .LVU178
2832
2055:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
2833
 634              		.loc 1 2055 1 is_stmt 0 view .LVU179
2834
 635 017c 30BC     		pop	{r4, r5}
2835
 636              	.LCFI7:
2836
 637              		.cfi_remember_state
2837
 638              		.cfi_restore 5
2838
 639              		.cfi_restore 4
2839
 640              		.cfi_def_cfa_offset 0
2840
 641 017e 7047     		bx	lr
2841
 642              	.LVL58:
2842
 643              	.L23:
2843
 644              	.LCFI8:
2844
 645              		.cfi_restore_state
2845
 646              	.LBB15:
2846
 647              	.LBB11:
2847
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2848
 648              		.loc 1 2006 7 is_stmt 1 discriminator 2 view .LVU180
2849
 649 0180 3E2C     		cmp	r4, #62
2850
 650 0182 09D8     		bhi	.L25
2851
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2852
 651              		.loc 1 2006 7 discriminator 3 view .LVU181
2853
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2854
 652              		.loc 1 2006 7 discriminator 3 view .LVU182
2855
 653 0184 6508     		lsrs	r5, r4, #1
2856
 654              	.LVL59:
2857
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2858
 655              		.loc 1 2006 7 discriminator 3 view .LVU183
2859
 656 0186 14F0010F 		tst	r4, #1
2860
 657 018a 00D0     		beq	.L26
2861
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2862
 658              		.loc 1 2006 7 discriminator 5 view .LVU184
2863
 659 018c 0135     		adds	r5, r5, #1
2864
 660              	.LVL60:
2865
 661              	.L26:
2866
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2867
 662              		.loc 1 2006 7 discriminator 7 view .LVU185
2868
 663 018e AD02     		lsls	r5, r5, #10
2869
 664              	.LVL61:
2870
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2871
 665              		.loc 1 2006 7 is_stmt 0 discriminator 7 view .LVU186
2872
 666 0190 ADB2     		uxth	r5, r5
2873
 667 0192 A2F80C54 		strh	r5, [r2, #1036]	@ movhi
2874
 668 0196 CEE7     		b	.L24
2875
 669              	.L25:
2876
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2877
 670              		.loc 1 2006 7 is_stmt 1 discriminator 4 view .LVU187
2878
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2879
 671              		.loc 1 2006 7 discriminator 4 view .LVU188
2880
 672 0198 6509     		lsrs	r5, r4, #5
20 mjames 2881
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 49
16 mjames 2882
 
2883
 
2884
 673              	.LVL62:
2885
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2886
 674              		.loc 1 2006 7 discriminator 4 view .LVU189
2887
 675 019a 14F01F0F 		tst	r4, #31
2888
 676 019e 00D1     		bne	.L27
2889
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2890
 677              		.loc 1 2006 7 discriminator 8 view .LVU190
2891
 678 01a0 013D     		subs	r5, r5, #1
2892
 679              	.LVL63:
2893
 680              	.L27:
2894
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2895
 681              		.loc 1 2006 7 discriminator 10 view .LVU191
2896
 682 01a2 6FEAC564 		mvn	r4, r5, lsl #27
2897
 683 01a6 6FEA5444 		mvn	r4, r4, lsr #17
2898
 684 01aa A4B2     		uxth	r4, r4
2899
 685 01ac A2F80C44 		strh	r4, [r2, #1036]	@ movhi
2900
 686 01b0 C1E7     		b	.L24
2901
 687              	.LVL64:
2902
 688              	.L18:
2903
2006:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
2904
 689              		.loc 1 2006 7 is_stmt 0 discriminator 10 view .LVU192
2905
 690              	.LBE11:
2906
 691              	.LBE15:
2907
2016:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Set buffer address for double buffered mode */
2908
 692              		.loc 1 2016 5 is_stmt 1 view .LVU193
2909
 693              	.LBB16:
2910
2016:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Set buffer address for double buffered mode */
2911
 694              		.loc 1 2016 5 view .LVU194
2912
2016:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Set buffer address for double buffered mode */
2913
 695              		.loc 1 2016 5 view .LVU195
2914
 696 01b2 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
2915
 697 01b4 33F82420 		ldrh	r2, [r3, r4, lsl #2]
2916
 698 01b8 92B2     		uxth	r2, r2
2917
 699 01ba 22F4E042 		bic	r2, r2, #28672
2918
 700 01be 22F07002 		bic	r2, r2, #112
2919
 701              	.LVL65:
2920
2016:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Set buffer address for double buffered mode */
2921
 702              		.loc 1 2016 5 view .LVU196
2922
 703 01c2 42F40142 		orr	r2, r2, #33024
2923
 704              	.LVL66:
2924
2016:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Set buffer address for double buffered mode */
2925
 705              		.loc 1 2016 5 is_stmt 0 view .LVU197
2926
 706 01c6 42F08002 		orr	r2, r2, #128
2927
 707 01ca 23F82420 		strh	r2, [r3, r4, lsl #2]	@ movhi
2928
 708              	.LBE16:
2929
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2930
 709              		.loc 1 2018 5 is_stmt 1 view .LVU198
2931
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2932
 710              		.loc 1 2018 5 view .LVU199
2933
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2934
 711              		.loc 1 2018 5 view .LVU200
2935
 712              	.LBB17:
2936
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2937
 713              		.loc 1 2018 5 view .LVU201
2938
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2939
 714              		.loc 1 2018 5 view .LVU202
2940
 715              	.LVL67:
20 mjames 2941
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 50
16 mjames 2942
 
2943
 
2944
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2945
 716              		.loc 1 2018 5 view .LVU203
2946
 717 01ce B3F85020 		ldrh	r2, [r3, #80]
2947
 718 01d2 1A44     		add	r2, r2, r3
2948
 719              	.LVL68:
2949
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2950
 720              		.loc 1 2018 5 view .LVU204
2951
 721 01d4 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
2952
 722 01d6 02EB0412 		add	r2, r2, r4, lsl #4
2953
 723              	.LVL69:
2954
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2955
 724              		.loc 1 2018 5 view .LVU205
2956
 725 01da 0C89     		ldrh	r4, [r1, #8]
2957
 726 01dc 6408     		lsrs	r4, r4, #1
2958
 727 01de 6400     		lsls	r4, r4, #1
2959
 728 01e0 A2F80044 		strh	r4, [r2, #1024]	@ movhi
2960
 729              	.LBE17:
2961
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2962
 730              		.loc 1 2018 5 view .LVU206
2963
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2964
 731              		.loc 1 2018 5 view .LVU207
2965
 732              	.LBB18:
2966
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2967
 733              		.loc 1 2018 5 view .LVU208
2968
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2969
 734              		.loc 1 2018 5 view .LVU209
2970
 735              	.LVL70:
2971
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2972
 736              		.loc 1 2018 5 view .LVU210
2973
 737 01e4 B3F85020 		ldrh	r2, [r3, #80]
2974
 738              	.LVL71:
2975
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2976
 739              		.loc 1 2018 5 is_stmt 0 view .LVU211
2977
 740 01e8 1A44     		add	r2, r2, r3
2978
 741              	.LVL72:
2979
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2980
 742              		.loc 1 2018 5 is_stmt 1 view .LVU212
2981
 743 01ea 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
2982
 744 01ec 02EB0412 		add	r2, r2, r4, lsl #4
2983
 745              	.LVL73:
2984
2018:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
2985
 746              		.loc 1 2018 5 view .LVU213
2986
 747 01f0 4C89     		ldrh	r4, [r1, #10]
2987
 748 01f2 6408     		lsrs	r4, r4, #1
2988
 749 01f4 6400     		lsls	r4, r4, #1
2989
 750 01f6 A2F80844 		strh	r4, [r2, #1032]	@ movhi
2990
 751              	.LBE18:
2991
2020:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
2992
 752              		.loc 1 2020 5 view .LVU214
2993
2020:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
2994
 753              		.loc 1 2020 11 is_stmt 0 view .LVU215
2995
 754 01fa 4A78     		ldrb	r2, [r1, #1]	@ zero_extendqisi2
2996
 755              	.LVL74:
2997
2020:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
2998
 756              		.loc 1 2020 8 view .LVU216
2999
 757 01fc 002A     		cmp	r2, #0
3000
 758 01fe 4ED1     		bne	.L29
20 mjames 3001
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 51
16 mjames 3002
 
3003
 
3004
2023:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3005
 759              		.loc 1 2023 7 is_stmt 1 view .LVU217
3006
 760              	.LBB19:
3007
2023:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3008
 761              		.loc 1 2023 7 view .LVU218
3009
2023:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3010
 762              		.loc 1 2023 7 view .LVU219
3011
 763 0200 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
3012
 764 0202 33F82420 		ldrh	r2, [r3, r4, lsl #2]
3013
 765              	.LVL75:
3014
2023:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3015
 766              		.loc 1 2023 7 view .LVU220
3016
 767 0206 12F4804F 		tst	r2, #16384
3017
 768 020a 0CD0     		beq	.L30
3018
2023:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3019
 769              		.loc 1 2023 7 discriminator 1 view .LVU221
3020
 770              	.LBB20:
3021
2023:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3022
 771              		.loc 1 2023 7 discriminator 1 view .LVU222
3023
2023:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3024
 772              		.loc 1 2023 7 discriminator 1 view .LVU223
3025
 773 020c 33F82420 		ldrh	r2, [r3, r4, lsl #2]
3026
 774              	.LVL76:
3027
2023:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3028
 775              		.loc 1 2023 7 is_stmt 0 discriminator 1 view .LVU224
3029
 776 0210 92B2     		uxth	r2, r2
3030
 777 0212 22F4E042 		bic	r2, r2, #28672
3031
 778 0216 22F07002 		bic	r2, r2, #112
3032
 779              	.LVL77:
3033
2023:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3034
 780              		.loc 1 2023 7 is_stmt 1 discriminator 1 view .LVU225
3035
 781 021a 42F44042 		orr	r2, r2, #49152
3036
 782              	.LVL78:
3037
2023:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3038
 783              		.loc 1 2023 7 is_stmt 0 discriminator 1 view .LVU226
3039
 784 021e 42F08002 		orr	r2, r2, #128
3040
 785 0222 23F82420 		strh	r2, [r3, r4, lsl #2]	@ movhi
3041
 786              	.L30:
3042
2023:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3043
 787              		.loc 1 2023 7 discriminator 1 view .LVU227
3044
 788              	.LBE20:
3045
 789              	.LBE19:
3046
2024:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3047
 790              		.loc 1 2024 7 is_stmt 1 view .LVU228
3048
 791              	.LBB21:
3049
2024:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3050
 792              		.loc 1 2024 7 view .LVU229
3051
2024:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3052
 793              		.loc 1 2024 7 view .LVU230
3053
 794 0226 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
3054
 795 0228 33F82420 		ldrh	r2, [r3, r4, lsl #2]
3055
 796              	.LVL79:
3056
2024:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3057
 797              		.loc 1 2024 7 view .LVU231
3058
 798 022c 12F0400F 		tst	r2, #64
3059
 799 0230 0CD0     		beq	.L31
3060
2024:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
20 mjames 3061
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 52
16 mjames 3062
 
3063
 
3064
 800              		.loc 1 2024 7 discriminator 1 view .LVU232
3065
 801              	.LBB22:
3066
2024:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3067
 802              		.loc 1 2024 7 discriminator 1 view .LVU233
3068
2024:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3069
 803              		.loc 1 2024 7 discriminator 1 view .LVU234
3070
 804 0232 33F82420 		ldrh	r2, [r3, r4, lsl #2]
3071
 805              	.LVL80:
3072
2024:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3073
 806              		.loc 1 2024 7 is_stmt 0 discriminator 1 view .LVU235
3074
 807 0236 92B2     		uxth	r2, r2
3075
 808 0238 22F4E042 		bic	r2, r2, #28672
3076
 809 023c 22F07002 		bic	r2, r2, #112
3077
 810              	.LVL81:
3078
2024:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3079
 811              		.loc 1 2024 7 is_stmt 1 discriminator 1 view .LVU236
3080
 812 0240 42F40042 		orr	r2, r2, #32768
3081
 813              	.LVL82:
3082
2024:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3083
 814              		.loc 1 2024 7 is_stmt 0 discriminator 1 view .LVU237
3084
 815 0244 42F0C002 		orr	r2, r2, #192
3085
 816 0248 23F82420 		strh	r2, [r3, r4, lsl #2]	@ movhi
3086
 817              	.L31:
3087
2024:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3088
 818              		.loc 1 2024 7 discriminator 1 view .LVU238
3089
 819              	.LBE22:
3090
 820              	.LBE21:
3091
2027:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3092
 821              		.loc 1 2027 7 is_stmt 1 view .LVU239
3093
 822              	.LBB23:
3094
2027:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3095
 823              		.loc 1 2027 7 view .LVU240
3096
2027:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3097
 824              		.loc 1 2027 7 view .LVU241
3098
 825 024c 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
3099
 826 024e 33F82420 		ldrh	r2, [r3, r4, lsl #2]
3100
 827 0252 92B2     		uxth	r2, r2
3101
 828 0254 22F4E042 		bic	r2, r2, #28672
3102
 829 0258 22F07002 		bic	r2, r2, #112
3103
 830              	.LVL83:
3104
2027:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3105
 831              		.loc 1 2027 7 view .LVU242
3106
 832 025c 42F40042 		orr	r2, r2, #32768
3107
 833              	.LVL84:
3108
2027:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3109
 834              		.loc 1 2027 7 is_stmt 0 view .LVU243
3110
 835 0260 42F0C002 		orr	r2, r2, #192
3111
 836 0264 23F82420 		strh	r2, [r3, r4, lsl #2]	@ movhi
3112
 837              	.LBE23:
3113
2029:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3114
 838              		.loc 1 2029 7 is_stmt 1 view .LVU244
3115
 839              	.LBB24:
3116
2029:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3117
 840              		.loc 1 2029 7 view .LVU245
3118
2029:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3119
 841              		.loc 1 2029 7 view .LVU246
3120
 842 0268 0D78     		ldrb	r5, [r1]	@ zero_extendqisi2
20 mjames 3121
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 53
16 mjames 3122
 
3123
 
3124
 843 026a 33F82520 		ldrh	r2, [r3, r5, lsl #2]
3125
 844 026e 92B2     		uxth	r2, r2
3126
 845 0270 22F48042 		bic	r2, r2, #16384
3127
 846 0274 22F07002 		bic	r2, r2, #112
3128
 847              	.LVL85:
3129
2029:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3130
 848              		.loc 1 2029 7 view .LVU247
3131
2029:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3132
 849              		.loc 1 2029 7 view .LVU248
3133
2029:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3134
 850              		.loc 1 2029 7 view .LVU249
3135
2029:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3136
 851              		.loc 1 2029 7 view .LVU250
3137
 852 0278 82F44052 		eor	r2, r2, #12288
3138
 853              	.LVL86:
3139
2029:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3140
 854              		.loc 1 2029 7 view .LVU251
3141
 855 027c 48F28004 		movw	r4, #32896
3142
 856 0280 2243     		orrs	r2, r2, r4
3143
 857              	.LVL87:
3144
2029:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3145
 858              		.loc 1 2029 7 is_stmt 0 view .LVU252
3146
 859 0282 23F82520 		strh	r2, [r3, r5, lsl #2]	@ movhi
3147
 860              	.LBE24:
3148
2030:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3149
 861              		.loc 1 2030 7 is_stmt 1 view .LVU253
3150
 862              	.LBB25:
3151
2030:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3152
 863              		.loc 1 2030 7 view .LVU254
3153
2030:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3154
 864              		.loc 1 2030 7 view .LVU255
3155
 865 0286 0978     		ldrb	r1, [r1]	@ zero_extendqisi2
3156
 866              	.LVL88:
3157
2030:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3158
 867              		.loc 1 2030 7 is_stmt 0 view .LVU256
3159
 868 0288 33F82120 		ldrh	r2, [r3, r1, lsl #2]
3160
 869 028c 92B2     		uxth	r2, r2
3161
 870 028e 22F4E042 		bic	r2, r2, #28672
3162
 871 0292 22F04002 		bic	r2, r2, #64
3163
 872              	.LVL89:
3164
2030:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3165
 873              		.loc 1 2030 7 is_stmt 1 view .LVU257
3166
2030:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3167
 874              		.loc 1 2030 7 view .LVU258
3168
2030:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3169
 875              		.loc 1 2030 7 view .LVU259
3170
 876 0296 2243     		orrs	r2, r2, r4
3171
 877              	.LVL90:
3172
2030:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3173
 878              		.loc 1 2030 7 is_stmt 0 view .LVU260
3174
 879 0298 23F82120 		strh	r2, [r3, r1, lsl #2]	@ movhi
3175
 880              	.LBE25:
3176
 881 029c 6EE7     		b	.L22
3177
 882              	.LVL91:
3178
 883              	.L29:
3179
2035:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3180
 884              		.loc 1 2035 7 is_stmt 1 view .LVU261
20 mjames 3181
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 54
16 mjames 3182
 
3183
 
3184
 885              	.LBB26:
3185
2035:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3186
 886              		.loc 1 2035 7 view .LVU262
3187
2035:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3188
 887              		.loc 1 2035 7 view .LVU263
3189
 888 029e 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
3190
 889 02a0 33F82420 		ldrh	r2, [r3, r4, lsl #2]
3191
 890              	.LVL92:
3192
2035:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3193
 891              		.loc 1 2035 7 view .LVU264
3194
 892 02a4 12F4804F 		tst	r2, #16384
3195
 893 02a8 0CD0     		beq	.L32
3196
2035:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3197
 894              		.loc 1 2035 7 discriminator 1 view .LVU265
3198
 895              	.LBB27:
3199
2035:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3200
 896              		.loc 1 2035 7 discriminator 1 view .LVU266
3201
2035:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3202
 897              		.loc 1 2035 7 discriminator 1 view .LVU267
3203
 898 02aa 33F82420 		ldrh	r2, [r3, r4, lsl #2]
3204
 899              	.LVL93:
3205
2035:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3206
 900              		.loc 1 2035 7 is_stmt 0 discriminator 1 view .LVU268
3207
 901 02ae 92B2     		uxth	r2, r2
3208
 902 02b0 22F4E042 		bic	r2, r2, #28672
3209
 903 02b4 22F07002 		bic	r2, r2, #112
3210
 904              	.LVL94:
3211
2035:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3212
 905              		.loc 1 2035 7 is_stmt 1 discriminator 1 view .LVU269
3213
 906 02b8 42F44042 		orr	r2, r2, #49152
3214
 907              	.LVL95:
3215
2035:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3216
 908              		.loc 1 2035 7 is_stmt 0 discriminator 1 view .LVU270
3217
 909 02bc 42F08002 		orr	r2, r2, #128
3218
 910 02c0 23F82420 		strh	r2, [r3, r4, lsl #2]	@ movhi
3219
 911              	.L32:
3220
2035:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3221
 912              		.loc 1 2035 7 discriminator 1 view .LVU271
3222
 913              	.LBE27:
3223
 914              	.LBE26:
3224
2036:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3225
 915              		.loc 1 2036 7 is_stmt 1 view .LVU272
3226
 916              	.LBB28:
3227
2036:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3228
 917              		.loc 1 2036 7 view .LVU273
3229
2036:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3230
 918              		.loc 1 2036 7 view .LVU274
3231
 919 02c4 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
3232
 920 02c6 33F82420 		ldrh	r2, [r3, r4, lsl #2]
3233
 921              	.LVL96:
3234
2036:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3235
 922              		.loc 1 2036 7 view .LVU275
3236
 923 02ca 12F0400F 		tst	r2, #64
3237
 924 02ce 0CD0     		beq	.L33
3238
2036:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3239
 925              		.loc 1 2036 7 discriminator 1 view .LVU276
3240
 926              	.LBB29:
20 mjames 3241
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 55
16 mjames 3242
 
3243
 
3244
2036:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3245
 927              		.loc 1 2036 7 discriminator 1 view .LVU277
3246
2036:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3247
 928              		.loc 1 2036 7 discriminator 1 view .LVU278
3248
 929 02d0 33F82420 		ldrh	r2, [r3, r4, lsl #2]
3249
 930              	.LVL97:
3250
2036:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3251
 931              		.loc 1 2036 7 is_stmt 0 discriminator 1 view .LVU279
3252
 932 02d4 92B2     		uxth	r2, r2
3253
 933 02d6 22F4E042 		bic	r2, r2, #28672
3254
 934 02da 22F07002 		bic	r2, r2, #112
3255
 935              	.LVL98:
3256
2036:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3257
 936              		.loc 1 2036 7 is_stmt 1 discriminator 1 view .LVU280
3258
 937 02de 42F40042 		orr	r2, r2, #32768
3259
 938              	.LVL99:
3260
2036:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3261
 939              		.loc 1 2036 7 is_stmt 0 discriminator 1 view .LVU281
3262
 940 02e2 42F0C002 		orr	r2, r2, #192
3263
 941 02e6 23F82420 		strh	r2, [r3, r4, lsl #2]	@ movhi
3264
 942              	.L33:
3265
2036:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3266
 943              		.loc 1 2036 7 discriminator 1 view .LVU282
3267
 944              	.LBE29:
3268
 945              	.LBE28:
3269
2037:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3270
 946              		.loc 1 2037 7 is_stmt 1 view .LVU283
3271
 947              	.LBB30:
3272
2037:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3273
 948              		.loc 1 2037 7 view .LVU284
3274
2037:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3275
 949              		.loc 1 2037 7 view .LVU285
3276
 950 02ea 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
3277
 951 02ec 33F82420 		ldrh	r2, [r3, r4, lsl #2]
3278
 952 02f0 92B2     		uxth	r2, r2
3279
 953 02f2 22F4E042 		bic	r2, r2, #28672
3280
 954 02f6 22F07002 		bic	r2, r2, #112
3281
 955              	.LVL100:
3282
2037:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3283
 956              		.loc 1 2037 7 view .LVU286
3284
 957 02fa 42F44042 		orr	r2, r2, #49152
3285
 958              	.LVL101:
3286
2037:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3287
 959              		.loc 1 2037 7 is_stmt 0 view .LVU287
3288
 960 02fe 42F08002 		orr	r2, r2, #128
3289
 961 0302 23F82420 		strh	r2, [r3, r4, lsl #2]	@ movhi
3290
 962              	.LBE30:
3291
2039:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
3292
 963              		.loc 1 2039 7 is_stmt 1 view .LVU288
3293
2039:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
3294
 964              		.loc 1 2039 13 is_stmt 0 view .LVU289
3295
 965 0306 CA78     		ldrb	r2, [r1, #3]	@ zero_extendqisi2
3296
2039:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
3297
 966              		.loc 1 2039 10 view .LVU290
3298
 967 0308 012A     		cmp	r2, #1
3299
 968 030a 1ED0     		beq	.L34
3300
2042:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
20 mjames 3301
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 56
16 mjames 3302
 
3303
 
3304
 969              		.loc 1 2042 9 is_stmt 1 view .LVU291
3305
 970              	.LBB31:
3306
2042:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3307
 971              		.loc 1 2042 9 view .LVU292
3308
2042:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3309
 972              		.loc 1 2042 9 view .LVU293
3310
 973 030c 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
3311
 974 030e 33F82420 		ldrh	r2, [r3, r4, lsl #2]
3312
 975 0312 92B2     		uxth	r2, r2
3313
 976 0314 22F4E042 		bic	r2, r2, #28672
3314
 977 0318 22F04002 		bic	r2, r2, #64
3315
 978              	.LVL102:
3316
2042:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3317
 979              		.loc 1 2042 9 view .LVU294
3318
2042:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3319
 980              		.loc 1 2042 9 view .LVU295
3320
2042:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3321
 981              		.loc 1 2042 9 view .LVU296
3322
 982 031c 82F02002 		eor	r2, r2, #32
3323
 983              	.LVL103:
3324
2042:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3325
 984              		.loc 1 2042 9 view .LVU297
3326
 985 0320 42F40042 		orr	r2, r2, #32768
3327
 986              	.LVL104:
3328
2042:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3329
 987              		.loc 1 2042 9 is_stmt 0 view .LVU298
3330
 988 0324 42F08002 		orr	r2, r2, #128
3331
 989 0328 23F82420 		strh	r2, [r3, r4, lsl #2]	@ movhi
3332
 990              	.L35:
3333
2042:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3334
 991              		.loc 1 2042 9 view .LVU299
3335
 992              	.LBE31:
3336
2050:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3337
 993              		.loc 1 2050 7 is_stmt 1 view .LVU300
3338
 994              	.LBB32:
3339
2050:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3340
 995              		.loc 1 2050 7 view .LVU301
3341
2050:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3342
 996              		.loc 1 2050 7 view .LVU302
3343
 997 032c 0978     		ldrb	r1, [r1]	@ zero_extendqisi2
3344
 998              	.LVL105:
3345
2050:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3346
 999              		.loc 1 2050 7 is_stmt 0 view .LVU303
3347
 1000 032e 33F82120 		ldrh	r2, [r3, r1, lsl #2]
3348
 1001 0332 92B2     		uxth	r2, r2
3349
 1002 0334 22F48042 		bic	r2, r2, #16384
3350
 1003 0338 22F07002 		bic	r2, r2, #112
3351
 1004              	.LVL106:
3352
2050:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3353
 1005              		.loc 1 2050 7 is_stmt 1 view .LVU304
3354
2050:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3355
 1006              		.loc 1 2050 7 view .LVU305
3356
2050:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3357
 1007              		.loc 1 2050 7 view .LVU306
3358
 1008 033c 42F40042 		orr	r2, r2, #32768
3359
 1009              	.LVL107:
3360
2050:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
20 mjames 3361
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 57
16 mjames 3362
 
3363
 
3364
 1010              		.loc 1 2050 7 is_stmt 0 view .LVU307
3365
 1011 0340 42F08002 		orr	r2, r2, #128
3366
 1012 0344 23F82120 		strh	r2, [r3, r1, lsl #2]	@ movhi
3367
 1013 0348 18E7     		b	.L22
3368
 1014              	.LVL108:
3369
 1015              	.L34:
3370
2050:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3371
 1016              		.loc 1 2050 7 view .LVU308
3372
 1017              	.LBE32:
3373
2047:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3374
 1018              		.loc 1 2047 9 is_stmt 1 view .LVU309
3375
 1019              	.LBB33:
3376
2047:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3377
 1020              		.loc 1 2047 9 view .LVU310
3378
2047:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3379
 1021              		.loc 1 2047 9 view .LVU311
3380
 1022 034a 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
3381
 1023 034c 33F82420 		ldrh	r2, [r3, r4, lsl #2]
3382
 1024 0350 92B2     		uxth	r2, r2
3383
 1025 0352 22F4E042 		bic	r2, r2, #28672
3384
 1026 0356 22F04002 		bic	r2, r2, #64
3385
 1027              	.LVL109:
3386
2047:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3387
 1028              		.loc 1 2047 9 view .LVU312
3388
2047:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3389
 1029              		.loc 1 2047 9 view .LVU313
3390
2047:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3391
 1030              		.loc 1 2047 9 view .LVU314
3392
 1031 035a 42F40042 		orr	r2, r2, #32768
3393
 1032              	.LVL110:
3394
2047:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
3395
 1033              		.loc 1 2047 9 is_stmt 0 view .LVU315
3396
 1034 035e 42F08002 		orr	r2, r2, #128
3397
 1035 0362 23F82420 		strh	r2, [r3, r4, lsl #2]	@ movhi
3398
 1036 0366 E1E7     		b	.L35
3399
 1037              	.LBE33:
3400
 1038              		.cfi_endproc
3401
 1039              	.LFE73:
3402
 1041              		.section	.text.USB_DeactivateEndpoint,"ax",%progbits
3403
 1042              		.align	1
3404
 1043              		.global	USB_DeactivateEndpoint
3405
 1044              		.syntax unified
3406
 1045              		.thumb
3407
 1046              		.thumb_func
3408
 1047              		.fpu softvfp
3409
 1049              	USB_DeactivateEndpoint:
3410
 1050              	.LVL111:
3411
 1051              	.LFB74:
3412
2056:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3413
2057:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
3414
2058:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  De-activate and de-initialize an endpoint
3415
2059:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
3416
2060:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep: pointer to endpoint structure
3417
2061:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
3418
2062:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
3419
2063:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_DeactivateEndpoint(USB_TypeDef *USBx, USB_EPTypeDef *ep)
3420
2064:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
20 mjames 3421
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 58
16 mjames 3422
 
3423
 
3424
 1052              		.loc 1 2064 1 is_stmt 1 view -0
3425
 1053              		.cfi_startproc
3426
 1054              		@ args = 0, pretend = 0, frame = 0
3427
 1055              		@ frame_needed = 0, uses_anonymous_args = 0
3428
 1056              		@ link register save eliminated.
3429
2065:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->doublebuffer == 0U)
3430
 1057              		.loc 1 2065 3 view .LVU317
3431
 1058              		.loc 1 2065 9 is_stmt 0 view .LVU318
3432
 1059 0000 0B7B     		ldrb	r3, [r1, #12]	@ zero_extendqisi2
3433
 1060              		.loc 1 2065 6 view .LVU319
3434
 1061 0002 002B     		cmp	r3, #0
3435
 1062 0004 46D1     		bne	.L39
3436
2066:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
3437
2067:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->is_in != 0U)
3438
 1063              		.loc 1 2067 5 is_stmt 1 view .LVU320
3439
 1064              		.loc 1 2067 11 is_stmt 0 view .LVU321
3440
 1065 0006 4B78     		ldrb	r3, [r1, #1]	@ zero_extendqisi2
3441
 1066              		.loc 1 2067 8 view .LVU322
3442
 1067 0008 13B3     		cbz	r3, .L40
3443
2068:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
3444
2069:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3445
 1068              		.loc 1 2069 7 is_stmt 1 view .LVU323
3446
 1069              	.LBB34:
3447
 1070              		.loc 1 2069 7 view .LVU324
3448
 1071              		.loc 1 2069 7 view .LVU325
3449
 1072 000a 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
3450
 1073 000c 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3451
 1074              	.LVL112:
3452
 1075              		.loc 1 2069 7 view .LVU326
3453
 1076 0010 13F0400F 		tst	r3, #64
3454
 1077 0014 0CD0     		beq	.L41
3455
 1078              		.loc 1 2069 7 discriminator 1 view .LVU327
3456
 1079              	.LBB35:
3457
 1080              		.loc 1 2069 7 discriminator 1 view .LVU328
3458
 1081              		.loc 1 2069 7 discriminator 1 view .LVU329
3459
 1082 0016 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3460
 1083              	.LVL113:
3461
 1084              		.loc 1 2069 7 is_stmt 0 discriminator 1 view .LVU330
3462
 1085 001a 9BB2     		uxth	r3, r3
3463
 1086 001c 23F4E043 		bic	r3, r3, #28672
3464
 1087 0020 23F07003 		bic	r3, r3, #112
3465
 1088              	.LVL114:
3466
 1089              		.loc 1 2069 7 is_stmt 1 discriminator 1 view .LVU331
3467
 1090 0024 43F40043 		orr	r3, r3, #32768
3468
 1091              	.LVL115:
3469
 1092              		.loc 1 2069 7 is_stmt 0 discriminator 1 view .LVU332
3470
 1093 0028 43F0C003 		orr	r3, r3, #192
3471
 1094 002c 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
3472
 1095              	.L41:
3473
 1096              		.loc 1 2069 7 discriminator 1 view .LVU333
3474
 1097              	.LBE35:
3475
 1098              	.LBE34:
3476
2070:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3477
2071:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3478
 1099              		.loc 1 2071 7 is_stmt 1 view .LVU334
3479
 1100              	.LBB36:
3480
 1101              		.loc 1 2071 7 view .LVU335
20 mjames 3481
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 59
16 mjames 3482
 
3483
 
3484
 1102              		.loc 1 2071 7 view .LVU336
3485
 1103 0030 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
3486
 1104 0032 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3487
 1105 0036 9BB2     		uxth	r3, r3
3488
 1106 0038 23F4E043 		bic	r3, r3, #28672
3489
 1107 003c 23F04003 		bic	r3, r3, #64
3490
 1108              	.LVL116:
3491
 1109              		.loc 1 2071 7 view .LVU337
3492
 1110              		.loc 1 2071 7 view .LVU338
3493
 1111              		.loc 1 2071 7 view .LVU339
3494
 1112 0040 43F40043 		orr	r3, r3, #32768
3495
 1113              	.LVL117:
3496
 1114              		.loc 1 2071 7 is_stmt 0 view .LVU340
3497
 1115 0044 43F08003 		orr	r3, r3, #128
3498
 1116 0048 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
3499
 1117              	.L50:
3500
 1118              		.loc 1 2071 7 view .LVU341
3501
 1119              	.LBE36:
3502
2072:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3503
2073:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
3504
2074:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
3505
2075:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
3506
2076:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3507
2077:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_DIS);
3508
2078:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3509
2079:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
3510
2080:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /*Double Buffer*/
3511
2081:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
3512
2082:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
3513
2083:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->is_in == 0U)
3514
2084:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
3515
2085:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Clear the data toggle bits for the endpoint IN/OUT*/
3516
2086:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
3517
2087:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3518
2088:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3519
2089:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Reset value of the data toggle bits for the endpoint out*/
3520
2090:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_TX_DTOG(USBx, ep->num);
3521
2091:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3522
2092:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_DIS);
3523
2093:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3524
2094:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3525
2095:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
3526
2096:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
3527
2097:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Clear the data toggle bits for the endpoint IN/OUT*/
3528
2098:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
3529
2099:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3530
2100:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3531
2101:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3532
2102:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3533
2103:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_DIS);
3534
2104:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3535
2105:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
3536
2106:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3537
2107:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
3538
 1120              		.loc 1 2107 3 is_stmt 1 view .LVU342
3539
2108:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
3540
 1121              		.loc 1 2108 1 is_stmt 0 view .LVU343
20 mjames 3541
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 60
16 mjames 3542
 
3543
 
3544
 1122 004c 0020     		movs	r0, #0
3545
 1123              	.LVL118:
3546
 1124              		.loc 1 2108 1 view .LVU344
3547
 1125 004e 7047     		bx	lr
3548
 1126              	.LVL119:
3549
 1127              	.L40:
3550
2075:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3551
 1128              		.loc 1 2075 7 is_stmt 1 view .LVU345
3552
 1129              	.LBB37:
3553
2075:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3554
 1130              		.loc 1 2075 7 view .LVU346
3555
2075:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3556
 1131              		.loc 1 2075 7 view .LVU347
3557
 1132 0050 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
3558
 1133 0052 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3559
 1134              	.LVL120:
3560
2075:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3561
 1135              		.loc 1 2075 7 view .LVU348
3562
 1136 0056 13F4804F 		tst	r3, #16384
3563
 1137 005a 0CD0     		beq	.L43
3564
2075:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3565
 1138              		.loc 1 2075 7 discriminator 1 view .LVU349
3566
 1139              	.LBB38:
3567
2075:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3568
 1140              		.loc 1 2075 7 discriminator 1 view .LVU350
3569
2075:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3570
 1141              		.loc 1 2075 7 discriminator 1 view .LVU351
3571
 1142 005c 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3572
 1143              	.LVL121:
3573
2075:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3574
 1144              		.loc 1 2075 7 is_stmt 0 discriminator 1 view .LVU352
3575
 1145 0060 9BB2     		uxth	r3, r3
3576
 1146 0062 23F4E043 		bic	r3, r3, #28672
3577
 1147 0066 23F07003 		bic	r3, r3, #112
3578
 1148              	.LVL122:
3579
2075:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3580
 1149              		.loc 1 2075 7 is_stmt 1 discriminator 1 view .LVU353
3581
 1150 006a 43F44043 		orr	r3, r3, #49152
3582
 1151              	.LVL123:
3583
2075:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3584
 1152              		.loc 1 2075 7 is_stmt 0 discriminator 1 view .LVU354
3585
 1153 006e 43F08003 		orr	r3, r3, #128
3586
 1154 0072 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
3587
 1155              	.L43:
3588
2075:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3589
 1156              		.loc 1 2075 7 discriminator 1 view .LVU355
3590
 1157              	.LBE38:
3591
 1158              	.LBE37:
3592
2077:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3593
 1159              		.loc 1 2077 7 is_stmt 1 view .LVU356
3594
 1160              	.LBB39:
3595
2077:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3596
 1161              		.loc 1 2077 7 view .LVU357
3597
2077:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3598
 1162              		.loc 1 2077 7 view .LVU358
3599
 1163 0076 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
3600
 1164 0078 30F82230 		ldrh	r3, [r0, r2, lsl #2]
20 mjames 3601
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 61
16 mjames 3602
 
3603
 
3604
 1165 007c 9BB2     		uxth	r3, r3
3605
 1166 007e 23F48043 		bic	r3, r3, #16384
3606
 1167 0082 23F07003 		bic	r3, r3, #112
3607
 1168              	.LVL124:
3608
2077:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3609
 1169              		.loc 1 2077 7 view .LVU359
3610
2077:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3611
 1170              		.loc 1 2077 7 view .LVU360
3612
2077:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3613
 1171              		.loc 1 2077 7 view .LVU361
3614
 1172 0086 43F40043 		orr	r3, r3, #32768
3615
 1173              	.LVL125:
3616
2077:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3617
 1174              		.loc 1 2077 7 is_stmt 0 view .LVU362
3618
 1175 008a 43F08003 		orr	r3, r3, #128
3619
 1176 008e 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
3620
 1177 0092 DBE7     		b	.L50
3621
 1178              	.L39:
3622
2077:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3623
 1179              		.loc 1 2077 7 view .LVU363
3624
 1180              	.LBE39:
3625
2064:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->doublebuffer == 0U)
3626
 1181              		.loc 1 2064 1 view .LVU364
3627
 1182 0094 10B4     		push	{r4}
3628
 1183              	.LCFI9:
3629
 1184              		.cfi_def_cfa_offset 4
3630
 1185              		.cfi_offset 4, -4
3631
2083:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
3632
 1186              		.loc 1 2083 5 is_stmt 1 view .LVU365
3633
2083:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
3634
 1187              		.loc 1 2083 11 is_stmt 0 view .LVU366
3635
 1188 0096 4B78     		ldrb	r3, [r1, #1]	@ zero_extendqisi2
3636
2083:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
3637
 1189              		.loc 1 2083 8 view .LVU367
3638
 1190 0098 002B     		cmp	r3, #0
3639
 1191 009a 4ED1     		bne	.L44
3640
2086:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3641
 1192              		.loc 1 2086 7 is_stmt 1 view .LVU368
3642
 1193              	.LBB40:
3643
2086:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3644
 1194              		.loc 1 2086 7 view .LVU369
3645
2086:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3646
 1195              		.loc 1 2086 7 view .LVU370
3647
 1196 009c 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
3648
 1197 009e 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3649
 1198              	.LVL126:
3650
2086:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3651
 1199              		.loc 1 2086 7 view .LVU371
3652
 1200 00a2 13F4804F 		tst	r3, #16384
3653
 1201 00a6 0CD0     		beq	.L45
3654
2086:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3655
 1202              		.loc 1 2086 7 discriminator 1 view .LVU372
3656
 1203              	.LBB41:
3657
2086:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3658
 1204              		.loc 1 2086 7 discriminator 1 view .LVU373
3659
2086:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3660
 1205              		.loc 1 2086 7 discriminator 1 view .LVU374
20 mjames 3661
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 62
16 mjames 3662
 
3663
 
3664
 1206 00a8 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3665
 1207              	.LVL127:
3666
2086:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3667
 1208              		.loc 1 2086 7 is_stmt 0 discriminator 1 view .LVU375
3668
 1209 00ac 9BB2     		uxth	r3, r3
3669
 1210 00ae 23F4E043 		bic	r3, r3, #28672
3670
 1211 00b2 23F07003 		bic	r3, r3, #112
3671
 1212              	.LVL128:
3672
2086:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3673
 1213              		.loc 1 2086 7 is_stmt 1 discriminator 1 view .LVU376
3674
 1214 00b6 43F44043 		orr	r3, r3, #49152
3675
 1215              	.LVL129:
3676
2086:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3677
 1216              		.loc 1 2086 7 is_stmt 0 discriminator 1 view .LVU377
3678
 1217 00ba 43F08003 		orr	r3, r3, #128
3679
 1218 00be 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
3680
 1219              	.L45:
3681
2086:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3682
 1220              		.loc 1 2086 7 discriminator 1 view .LVU378
3683
 1221              	.LBE41:
3684
 1222              	.LBE40:
3685
2087:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3686
 1223              		.loc 1 2087 7 is_stmt 1 view .LVU379
3687
 1224              	.LBB42:
3688
2087:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3689
 1225              		.loc 1 2087 7 view .LVU380
3690
2087:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3691
 1226              		.loc 1 2087 7 view .LVU381
3692
 1227 00c2 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
3693
 1228 00c4 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3694
 1229              	.LVL130:
3695
2087:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3696
 1230              		.loc 1 2087 7 view .LVU382
3697
 1231 00c8 13F0400F 		tst	r3, #64
3698
 1232 00cc 0CD0     		beq	.L46
3699
2087:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3700
 1233              		.loc 1 2087 7 discriminator 1 view .LVU383
3701
 1234              	.LBB43:
3702
2087:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3703
 1235              		.loc 1 2087 7 discriminator 1 view .LVU384
3704
2087:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3705
 1236              		.loc 1 2087 7 discriminator 1 view .LVU385
3706
 1237 00ce 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3707
 1238              	.LVL131:
3708
2087:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3709
 1239              		.loc 1 2087 7 is_stmt 0 discriminator 1 view .LVU386
3710
 1240 00d2 9BB2     		uxth	r3, r3
3711
 1241 00d4 23F4E043 		bic	r3, r3, #28672
3712
 1242 00d8 23F07003 		bic	r3, r3, #112
3713
 1243              	.LVL132:
3714
2087:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3715
 1244              		.loc 1 2087 7 is_stmt 1 discriminator 1 view .LVU387
3716
 1245 00dc 43F40043 		orr	r3, r3, #32768
3717
 1246              	.LVL133:
3718
2087:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3719
 1247              		.loc 1 2087 7 is_stmt 0 discriminator 1 view .LVU388
3720
 1248 00e0 43F0C003 		orr	r3, r3, #192
20 mjames 3721
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 63
16 mjames 3722
 
3723
 
3724
 1249 00e4 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
3725
 1250              	.L46:
3726
2087:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3727
 1251              		.loc 1 2087 7 discriminator 1 view .LVU389
3728
 1252              	.LBE43:
3729
 1253              	.LBE42:
3730
2090:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3731
 1254              		.loc 1 2090 7 is_stmt 1 view .LVU390
3732
 1255              	.LBB44:
3733
2090:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3734
 1256              		.loc 1 2090 7 view .LVU391
3735
2090:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3736
 1257              		.loc 1 2090 7 view .LVU392
3737
 1258 00e8 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
3738
 1259 00ea 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3739
 1260 00ee 9BB2     		uxth	r3, r3
3740
 1261 00f0 23F4E043 		bic	r3, r3, #28672
3741
 1262 00f4 23F07003 		bic	r3, r3, #112
3742
 1263              	.LVL134:
3743
2090:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3744
 1264              		.loc 1 2090 7 view .LVU393
3745
 1265 00f8 43F40043 		orr	r3, r3, #32768
3746
 1266              	.LVL135:
3747
2090:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
3748
 1267              		.loc 1 2090 7 is_stmt 0 view .LVU394
3749
 1268 00fc 43F0C003 		orr	r3, r3, #192
3750
 1269 0100 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
3751
 1270              	.LBE44:
3752
2092:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3753
 1271              		.loc 1 2092 7 is_stmt 1 view .LVU395
3754
 1272              	.LBB45:
3755
2092:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3756
 1273              		.loc 1 2092 7 view .LVU396
3757
2092:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3758
 1274              		.loc 1 2092 7 view .LVU397
3759
 1275 0104 0B78     		ldrb	r3, [r1]	@ zero_extendqisi2
3760
 1276 0106 30F82320 		ldrh	r2, [r0, r3, lsl #2]
3761
 1277 010a 92B2     		uxth	r2, r2
3762
 1278 010c 22F48042 		bic	r2, r2, #16384
3763
 1279 0110 22F07002 		bic	r2, r2, #112
3764
 1280              	.LVL136:
3765
2092:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3766
 1281              		.loc 1 2092 7 view .LVU398
3767
2092:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3768
 1282              		.loc 1 2092 7 view .LVU399
3769
2092:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3770
 1283              		.loc 1 2092 7 view .LVU400
3771
 1284 0114 48F28004 		movw	r4, #32896
3772
 1285 0118 2243     		orrs	r2, r2, r4
3773
 1286              	.LVL137:
3774
2092:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_DIS);
3775
 1287              		.loc 1 2092 7 is_stmt 0 view .LVU401
3776
 1288 011a 20F82320 		strh	r2, [r0, r3, lsl #2]	@ movhi
3777
 1289              	.LBE45:
3778
2093:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3779
 1290              		.loc 1 2093 7 is_stmt 1 view .LVU402
3780
 1291              	.LBB46:
20 mjames 3781
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 64
16 mjames 3782
 
3783
 
3784
2093:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3785
 1292              		.loc 1 2093 7 view .LVU403
3786
2093:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3787
 1293              		.loc 1 2093 7 view .LVU404
3788
 1294 011e 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
3789
 1295 0120 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3790
 1296 0124 9BB2     		uxth	r3, r3
3791
 1297 0126 23F4E043 		bic	r3, r3, #28672
3792
 1298 012a 23F04003 		bic	r3, r3, #64
3793
 1299              	.LVL138:
3794
2093:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3795
 1300              		.loc 1 2093 7 view .LVU405
3796
2093:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3797
 1301              		.loc 1 2093 7 view .LVU406
3798
2093:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3799
 1302              		.loc 1 2093 7 view .LVU407
3800
 1303 012e 2343     		orrs	r3, r3, r4
3801
 1304              	.LVL139:
3802
2093:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3803
 1305              		.loc 1 2093 7 is_stmt 0 view .LVU408
3804
 1306 0130 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
3805
 1307              	.L42:
3806
2093:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3807
 1308              		.loc 1 2093 7 view .LVU409
3808
 1309              	.LBE46:
3809
2107:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
3810
 1310              		.loc 1 2107 3 is_stmt 1 view .LVU410
3811
 1311              		.loc 1 2108 1 is_stmt 0 view .LVU411
3812
 1312 0134 0020     		movs	r0, #0
3813
 1313              	.LVL140:
3814
 1314              		.loc 1 2108 1 view .LVU412
3815
 1315 0136 10BC     		pop	{r4}
3816
 1316              	.LCFI10:
3817
 1317              		.cfi_remember_state
3818
 1318              		.cfi_restore 4
3819
 1319              		.cfi_def_cfa_offset 0
3820
 1320 0138 7047     		bx	lr
3821
 1321              	.LVL141:
3822
 1322              	.L44:
3823
 1323              	.LCFI11:
3824
 1324              		.cfi_restore_state
3825
2098:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3826
 1325              		.loc 1 2098 7 is_stmt 1 view .LVU413
3827
 1326              	.LBB47:
3828
2098:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3829
 1327              		.loc 1 2098 7 view .LVU414
3830
2098:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3831
 1328              		.loc 1 2098 7 view .LVU415
3832
 1329 013a 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
3833
 1330 013c 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3834
 1331              	.LVL142:
3835
2098:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3836
 1332              		.loc 1 2098 7 view .LVU416
3837
 1333 0140 13F4804F 		tst	r3, #16384
3838
 1334 0144 0CD0     		beq	.L47
3839
2098:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3840
 1335              		.loc 1 2098 7 discriminator 1 view .LVU417
20 mjames 3841
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 65
16 mjames 3842
 
3843
 
3844
 1336              	.LBB48:
3845
2098:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3846
 1337              		.loc 1 2098 7 discriminator 1 view .LVU418
3847
2098:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3848
 1338              		.loc 1 2098 7 discriminator 1 view .LVU419
3849
 1339 0146 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3850
 1340              	.LVL143:
3851
2098:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3852
 1341              		.loc 1 2098 7 is_stmt 0 discriminator 1 view .LVU420
3853
 1342 014a 9BB2     		uxth	r3, r3
3854
 1343 014c 23F4E043 		bic	r3, r3, #28672
3855
 1344 0150 23F07003 		bic	r3, r3, #112
3856
 1345              	.LVL144:
3857
2098:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3858
 1346              		.loc 1 2098 7 is_stmt 1 discriminator 1 view .LVU421
3859
 1347 0154 43F44043 		orr	r3, r3, #49152
3860
 1348              	.LVL145:
3861
2098:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3862
 1349              		.loc 1 2098 7 is_stmt 0 discriminator 1 view .LVU422
3863
 1350 0158 43F08003 		orr	r3, r3, #128
3864
 1351 015c 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
3865
 1352              	.L47:
3866
2098:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
3867
 1353              		.loc 1 2098 7 discriminator 1 view .LVU423
3868
 1354              	.LBE48:
3869
 1355              	.LBE47:
3870
2099:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3871
 1356              		.loc 1 2099 7 is_stmt 1 view .LVU424
3872
 1357              	.LBB49:
3873
2099:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3874
 1358              		.loc 1 2099 7 view .LVU425
3875
2099:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3876
 1359              		.loc 1 2099 7 view .LVU426
3877
 1360 0160 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
3878
 1361 0162 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3879
 1362              	.LVL146:
3880
2099:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3881
 1363              		.loc 1 2099 7 view .LVU427
3882
 1364 0166 13F0400F 		tst	r3, #64
3883
 1365 016a 0CD0     		beq	.L48
3884
2099:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3885
 1366              		.loc 1 2099 7 discriminator 1 view .LVU428
3886
 1367              	.LBB50:
3887
2099:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3888
 1368              		.loc 1 2099 7 discriminator 1 view .LVU429
3889
2099:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3890
 1369              		.loc 1 2099 7 discriminator 1 view .LVU430
3891
 1370 016c 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3892
 1371              	.LVL147:
3893
2099:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3894
 1372              		.loc 1 2099 7 is_stmt 0 discriminator 1 view .LVU431
3895
 1373 0170 9BB2     		uxth	r3, r3
3896
 1374 0172 23F4E043 		bic	r3, r3, #28672
3897
 1375 0176 23F07003 		bic	r3, r3, #112
3898
 1376              	.LVL148:
3899
2099:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3900
 1377              		.loc 1 2099 7 is_stmt 1 discriminator 1 view .LVU432
20 mjames 3901
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 66
16 mjames 3902
 
3903
 
3904
 1378 017a 43F40043 		orr	r3, r3, #32768
3905
 1379              	.LVL149:
3906
2099:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3907
 1380              		.loc 1 2099 7 is_stmt 0 discriminator 1 view .LVU433
3908
 1381 017e 43F0C003 		orr	r3, r3, #192
3909
 1382 0182 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
3910
 1383              	.L48:
3911
2099:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_RX_DTOG(USBx, ep->num);
3912
 1384              		.loc 1 2099 7 discriminator 1 view .LVU434
3913
 1385              	.LBE50:
3914
 1386              	.LBE49:
3915
2100:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3916
 1387              		.loc 1 2100 7 is_stmt 1 view .LVU435
3917
 1388              	.LBB51:
3918
2100:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3919
 1389              		.loc 1 2100 7 view .LVU436
3920
2100:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3921
 1390              		.loc 1 2100 7 view .LVU437
3922
 1391 0186 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
3923
 1392 0188 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3924
 1393 018c 9BB2     		uxth	r3, r3
3925
 1394 018e 23F4E043 		bic	r3, r3, #28672
3926
 1395 0192 23F07003 		bic	r3, r3, #112
3927
 1396              	.LVL150:
3928
2100:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3929
 1397              		.loc 1 2100 7 view .LVU438
3930
 1398 0196 43F44043 		orr	r3, r3, #49152
3931
 1399              	.LVL151:
3932
2100:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure DISABLE status for the Endpoint*/
3933
 1400              		.loc 1 2100 7 is_stmt 0 view .LVU439
3934
 1401 019a 43F08003 		orr	r3, r3, #128
3935
 1402 019e 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
3936
 1403              	.LBE51:
3937
2102:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_DIS);
3938
 1404              		.loc 1 2102 7 is_stmt 1 view .LVU440
3939
 1405              	.LBB52:
3940
2102:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_DIS);
3941
 1406              		.loc 1 2102 7 view .LVU441
3942
2102:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_DIS);
3943
 1407              		.loc 1 2102 7 view .LVU442
3944
 1408 01a2 0B78     		ldrb	r3, [r1]	@ zero_extendqisi2
3945
 1409 01a4 30F82320 		ldrh	r2, [r0, r3, lsl #2]
3946
 1410 01a8 92B2     		uxth	r2, r2
3947
 1411 01aa 22F4E042 		bic	r2, r2, #28672
3948
 1412 01ae 22F04002 		bic	r2, r2, #64
3949
 1413              	.LVL152:
3950
2102:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_DIS);
3951
 1414              		.loc 1 2102 7 view .LVU443
3952
2102:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_DIS);
3953
 1415              		.loc 1 2102 7 view .LVU444
3954
2102:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_DIS);
3955
 1416              		.loc 1 2102 7 view .LVU445
3956
 1417 01b2 48F28004 		movw	r4, #32896
3957
 1418 01b6 2243     		orrs	r2, r2, r4
3958
 1419              	.LVL153:
3959
2102:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_DIS);
3960
 1420              		.loc 1 2102 7 is_stmt 0 view .LVU446
20 mjames 3961
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 67
16 mjames 3962
 
3963
 
3964
 1421 01b8 20F82320 		strh	r2, [r0, r3, lsl #2]	@ movhi
3965
 1422              	.LBE52:
3966
2103:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3967
 1423              		.loc 1 2103 7 is_stmt 1 view .LVU447
3968
 1424              	.LBB53:
3969
2103:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3970
 1425              		.loc 1 2103 7 view .LVU448
3971
2103:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3972
 1426              		.loc 1 2103 7 view .LVU449
3973
 1427 01bc 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
3974
 1428 01be 30F82230 		ldrh	r3, [r0, r2, lsl #2]
3975
 1429 01c2 9BB2     		uxth	r3, r3
3976
 1430 01c4 23F48043 		bic	r3, r3, #16384
3977
 1431 01c8 23F07003 		bic	r3, r3, #112
3978
 1432              	.LVL154:
3979
2103:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3980
 1433              		.loc 1 2103 7 view .LVU450
3981
2103:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3982
 1434              		.loc 1 2103 7 view .LVU451
3983
2103:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3984
 1435              		.loc 1 2103 7 view .LVU452
3985
 1436 01cc 2343     		orrs	r3, r3, r4
3986
 1437              	.LVL155:
3987
2103:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
3988
 1438              		.loc 1 2103 7 is_stmt 0 view .LVU453
3989
 1439 01ce 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
3990
 1440 01d2 AFE7     		b	.L42
3991
 1441              	.LBE53:
3992
 1442              		.cfi_endproc
3993
 1443              	.LFE74:
3994
 1445              		.section	.text.USB_WritePacket,"ax",%progbits
3995
 1446              		.align	1
3996
 1447              		.global	USB_WritePacket
3997
 1448              		.syntax unified
3998
 1449              		.thumb
3999
 1450              		.thumb_func
4000
 1451              		.fpu softvfp
4001
 1453              	USB_WritePacket:
4002
 1454              	.LVL156:
4003
 1455              	.LFB76:
4004
2109:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4005
2110:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4006
2111:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_EPStartXfer : setup and starts a transfer over an EP
4007
2112:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
4008
2113:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep: pointer to endpoint structure
4009
2114:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
4010
2115:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4011
2116:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_EPStartXfer(USB_TypeDef *USBx, USB_EPTypeDef *ep)
4012
2117:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4013
2118:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t pmabuffer;
4014
2119:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t len;
4015
2120:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4016
2121:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* IN endpoint */
4017
2122:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->is_in == 1U)
4018
2123:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
4019
2124:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /*Multi packet transfer*/
4020
2125:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->xfer_len > ep->maxpacket)
20 mjames 4021
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 68
16 mjames 4022
 
4023
 
4024
2126:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
4025
2127:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       len = ep->maxpacket;
4026
2128:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       ep->xfer_len -= len;
4027
2129:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
4028
2130:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
4029
2131:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
4030
2132:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       len = ep->xfer_len;
4031
2133:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       ep->xfer_len = 0U;
4032
2134:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
4033
2135:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4034
2136:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* configure and validate Tx endpoint */
4035
2137:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->doublebuffer == 0U)
4036
2138:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
4037
2139:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USB_WritePMA(USBx, ep->xfer_buff, ep->pmaadress, (uint16_t)len);
4038
2140:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_CNT(USBx, ep->num, len);
4039
2141:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
4040
2142:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
4041
2143:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
4042
2144:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Write the data to the USB endpoint */
4043
2145:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if ((PCD_GET_ENDPOINT(USBx, ep->num) & USB_EP_DTOG_TX) != 0U)
4044
2146:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
4045
2147:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         /* Set the Double buffer counter for pmabuffer1 */
4046
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         PCD_SET_EP_DBUF1_CNT(USBx, ep->num, ep->is_in, len);
4047
2149:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
4048
2150:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
4049
2151:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       else
4050
2152:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
4051
2153:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         /* Set the Double buffer counter for pmabuffer0 */
4052
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         PCD_SET_EP_DBUF0_CNT(USBx, ep->num, ep->is_in, len);
4053
2155:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
4054
2156:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
4055
2157:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       USB_WritePMA(USBx, ep->xfer_buff, pmabuffer, (uint16_t)len);
4056
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_FreeUserBuffer(USBx, ep->num, ep->is_in);
4057
2159:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
4058
2160:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4059
2161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_VALID);
4060
2162:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
4061
2163:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else /* OUT endpoint */
4062
2164:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
4063
2165:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* Multi packet transfer*/
4064
2166:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->xfer_len > ep->maxpacket)
4065
2167:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
4066
2168:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       len = ep->maxpacket;
4067
2169:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       ep->xfer_len -= len;
4068
2170:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
4069
2171:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
4070
2172:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
4071
2173:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       len = ep->xfer_len;
4072
2174:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       ep->xfer_len = 0U;
4073
2175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
4074
2176:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4075
2177:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* configure and validate Rx endpoint */
4076
2178:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->doublebuffer == 0U)
4077
2179:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
4078
2180:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /*Set RX buffer count*/
4079
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_CNT(USBx, ep->num, len);
4080
2182:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
20 mjames 4081
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 69
16 mjames 4082
 
4083
 
4084
2183:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
4085
2184:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
4086
2185:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /*Set the Double buffer counter*/
4087
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_DBUF_CNT(USBx, ep->num, ep->is_in, len);
4088
2187:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
4089
2188:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4090
2189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_VALID);
4091
2190:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
4092
2191:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4093
2192:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
4094
2193:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4095
2194:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4096
2195:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4097
2196:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_WritePacket : Writes a packet into the Tx FIFO associated
4098
2197:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         with the EP/channel
4099
2198:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
4100
2199:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  src :  pointer to source buffer
4101
2200:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ch_ep_num : endpoint or host channel number
4102
2201:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  len : Number of bytes to write
4103
2202:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
4104
2203:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4105
2204:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_WritePacket(USB_TypeDef *USBx, uint8_t *src, uint8_t ch_ep_num, uint16_t len)
4106
2205:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4107
 1456              		.loc 1 2205 1 is_stmt 1 view -0
4108
 1457              		.cfi_startproc
4109
 1458              		@ args = 0, pretend = 0, frame = 0
4110
 1459              		@ frame_needed = 0, uses_anonymous_args = 0
4111
 1460              		@ link register save eliminated.
4112
2206:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
4113
2207:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
4114
 1461              		.loc 1 2207 3 view .LVU455
4115
2208:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(src);
4116
 1462              		.loc 1 2208 3 view .LVU456
4117
2209:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(ch_ep_num);
4118
 1463              		.loc 1 2209 3 view .LVU457
4119
2210:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(len);
4120
 1464              		.loc 1 2210 3 view .LVU458
4121
2211:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
4122
2212:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
4123
2213:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
4124
2214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
4125
2215:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
4126
 1465              		.loc 1 2215 3 view .LVU459
4127
2216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4128
 1466              		.loc 1 2216 1 is_stmt 0 view .LVU460
4129
 1467 0000 0020     		movs	r0, #0
4130
 1468              	.LVL157:
4131
 1469              		.loc 1 2216 1 view .LVU461
4132
 1470 0002 7047     		bx	lr
4133
 1471              		.cfi_endproc
4134
 1472              	.LFE76:
4135
 1474              		.section	.text.USB_ReadPacket,"ax",%progbits
4136
 1475              		.align	1
4137
 1476              		.global	USB_ReadPacket
4138
 1477              		.syntax unified
4139
 1478              		.thumb
4140
 1479              		.thumb_func
20 mjames 4141
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 70
16 mjames 4142
 
4143
 
4144
 1480              		.fpu softvfp
4145
 1482              	USB_ReadPacket:
4146
 1483              	.LVL158:
4147
 1484              	.LFB77:
4148
2217:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4149
2218:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4150
2219:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_ReadPacket : read a packet from the Tx FIFO associated
4151
2220:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *         with the EP/channel
4152
2221:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
4153
2222:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  dest : destination pointer
4154
2223:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  len : Number of bytes to read
4155
2224:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval pointer to destination buffer
4156
2225:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4157
2226:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** void *USB_ReadPacket(USB_TypeDef *USBx, uint8_t *dest, uint16_t len)
4158
2227:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4159
 1485              		.loc 1 2227 1 is_stmt 1 view -0
4160
 1486              		.cfi_startproc
4161
 1487              		@ args = 0, pretend = 0, frame = 0
4162
 1488              		@ frame_needed = 0, uses_anonymous_args = 0
4163
 1489              		@ link register save eliminated.
4164
2228:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
4165
2229:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
4166
 1490              		.loc 1 2229 3 view .LVU463
4167
2230:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(dest);
4168
 1491              		.loc 1 2230 3 view .LVU464
4169
2231:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(len);
4170
 1492              		.loc 1 2231 3 view .LVU465
4171
2232:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
4172
2233:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
4173
2234:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
4174
2235:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
4175
2236:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return ((void *)NULL);
4176
 1493              		.loc 1 2236 3 view .LVU466
4177
2237:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4178
 1494              		.loc 1 2237 1 is_stmt 0 view .LVU467
4179
 1495 0000 0020     		movs	r0, #0
4180
 1496              	.LVL159:
4181
 1497              		.loc 1 2237 1 view .LVU468
4182
 1498 0002 7047     		bx	lr
4183
 1499              		.cfi_endproc
4184
 1500              	.LFE77:
4185
 1502              		.section	.text.USB_EPSetStall,"ax",%progbits
4186
 1503              		.align	1
4187
 1504              		.global	USB_EPSetStall
4188
 1505              		.syntax unified
4189
 1506              		.thumb
4190
 1507              		.thumb_func
4191
 1508              		.fpu softvfp
4192
 1510              	USB_EPSetStall:
4193
 1511              	.LVL160:
4194
 1512              	.LFB78:
4195
2238:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4196
2239:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4197
2240:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_EPSetStall : set a stall condition over an EP
4198
2241:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
4199
2242:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep: pointer to endpoint structure
4200
2243:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
20 mjames 4201
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 71
16 mjames 4202
 
4203
 
4204
2244:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4205
2245:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_EPSetStall(USB_TypeDef *USBx, USB_EPTypeDef *ep)
4206
2246:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4207
 1513              		.loc 1 2246 1 is_stmt 1 view -0
4208
 1514              		.cfi_startproc
4209
 1515              		@ args = 0, pretend = 0, frame = 0
4210
 1516              		@ frame_needed = 0, uses_anonymous_args = 0
4211
 1517              		@ link register save eliminated.
4212
2247:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->is_in != 0U)
4213
 1518              		.loc 1 2247 3 view .LVU470
4214
 1519              		.loc 1 2247 9 is_stmt 0 view .LVU471
4215
 1520 0000 4B78     		ldrb	r3, [r1, #1]	@ zero_extendqisi2
4216
 1521              		.loc 1 2247 6 view .LVU472
4217
 1522 0002 8BB1     		cbz	r3, .L55
4218
2248:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
4219
2249:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_STALL);
4220
 1523              		.loc 1 2249 5 is_stmt 1 view .LVU473
4221
 1524              	.LBB54:
4222
 1525              		.loc 1 2249 5 view .LVU474
4223
 1526              		.loc 1 2249 5 view .LVU475
4224
 1527 0004 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
4225
 1528 0006 30F82230 		ldrh	r3, [r0, r2, lsl #2]
4226
 1529 000a 9BB2     		uxth	r3, r3
4227
 1530 000c 23F4E043 		bic	r3, r3, #28672
4228
 1531 0010 23F04003 		bic	r3, r3, #64
4229
 1532              	.LVL161:
4230
 1533              		.loc 1 2249 5 view .LVU476
4231
 1534              		.loc 1 2249 5 view .LVU477
4232
 1535 0014 83F01003 		eor	r3, r3, #16
4233
 1536              	.LVL162:
4234
 1537              		.loc 1 2249 5 view .LVU478
4235
 1538              		.loc 1 2249 5 view .LVU479
4236
 1539 0018 43F40043 		orr	r3, r3, #32768
4237
 1540              	.LVL163:
4238
 1541              		.loc 1 2249 5 is_stmt 0 view .LVU480
4239
 1542 001c 43F08003 		orr	r3, r3, #128
4240
 1543 0020 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
4241
 1544              	.L56:
4242
 1545              		.loc 1 2249 5 view .LVU481
4243
 1546              	.LBE54:
4244
2250:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
4245
2251:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   else
4246
2252:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
4247
2253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_STALL);
4248
2254:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
4249
2255:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4250
2256:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
4251
 1547              		.loc 1 2256 3 is_stmt 1 view .LVU482
4252
2257:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4253
 1548              		.loc 1 2257 1 is_stmt 0 view .LVU483
4254
 1549 0024 0020     		movs	r0, #0
4255
 1550              	.LVL164:
4256
 1551              		.loc 1 2257 1 view .LVU484
4257
 1552 0026 7047     		bx	lr
4258
 1553              	.LVL165:
4259
 1554              	.L55:
4260
2253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
20 mjames 4261
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 72
16 mjames 4262
 
4263
 
4264
 1555              		.loc 1 2253 5 is_stmt 1 view .LVU485
4265
 1556              	.LBB55:
4266
2253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
4267
 1557              		.loc 1 2253 5 view .LVU486
4268
2253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
4269
 1558              		.loc 1 2253 5 view .LVU487
4270
 1559 0028 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
4271
 1560 002a 30F82230 		ldrh	r3, [r0, r2, lsl #2]
4272
 1561 002e 9BB2     		uxth	r3, r3
4273
 1562 0030 23F48043 		bic	r3, r3, #16384
4274
 1563 0034 23F07003 		bic	r3, r3, #112
4275
 1564              	.LVL166:
4276
2253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
4277
 1565              		.loc 1 2253 5 view .LVU488
4278
2253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
4279
 1566              		.loc 1 2253 5 view .LVU489
4280
 1567 0038 83F48053 		eor	r3, r3, #4096
4281
 1568              	.LVL167:
4282
2253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
4283
 1569              		.loc 1 2253 5 view .LVU490
4284
2253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
4285
 1570              		.loc 1 2253 5 view .LVU491
4286
 1571 003c 43F40043 		orr	r3, r3, #32768
4287
 1572              	.LVL168:
4288
2253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
4289
 1573              		.loc 1 2253 5 is_stmt 0 view .LVU492
4290
 1574 0040 43F08003 		orr	r3, r3, #128
4291
 1575 0044 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
4292
 1576 0048 ECE7     		b	.L56
4293
 1577              	.LBE55:
4294
 1578              		.cfi_endproc
4295
 1579              	.LFE78:
4296
 1581              		.section	.text.USB_EPClearStall,"ax",%progbits
4297
 1582              		.align	1
4298
 1583              		.global	USB_EPClearStall
4299
 1584              		.syntax unified
4300
 1585              		.thumb
4301
 1586              		.thumb_func
4302
 1587              		.fpu softvfp
4303
 1589              	USB_EPClearStall:
4304
 1590              	.LVL169:
4305
 1591              	.LFB79:
4306
2258:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4307
2259:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4308
2260:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_EPClearStall : Clear a stall condition over an EP
4309
2261:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
4310
2262:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  ep: pointer to endpoint structure
4311
2263:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
4312
2264:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4313
2265:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_EPClearStall(USB_TypeDef *USBx, USB_EPTypeDef *ep)
4314
2266:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4315
 1592              		.loc 1 2266 1 is_stmt 1 view -0
4316
 1593              		.cfi_startproc
4317
 1594              		@ args = 0, pretend = 0, frame = 0
4318
 1595              		@ frame_needed = 0, uses_anonymous_args = 0
4319
 1596              		@ link register save eliminated.
4320
2267:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (ep->doublebuffer == 0U)
20 mjames 4321
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 73
16 mjames 4322
 
4323
 
4324
 1597              		.loc 1 2267 3 view .LVU494
4325
 1598              		.loc 1 2267 9 is_stmt 0 view .LVU495
4326
 1599 0000 0B7B     		ldrb	r3, [r1, #12]	@ zero_extendqisi2
4327
 1600              		.loc 1 2267 6 view .LVU496
4328
 1601 0002 002B     		cmp	r3, #0
4329
 1602 0004 4BD1     		bne	.L58
4330
2268:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
4331
2269:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     if (ep->is_in != 0U)
4332
 1603              		.loc 1 2269 5 is_stmt 1 view .LVU497
4333
 1604              		.loc 1 2269 11 is_stmt 0 view .LVU498
4334
 1605 0006 4B78     		ldrb	r3, [r1, #1]	@ zero_extendqisi2
4335
 1606              		.loc 1 2269 8 view .LVU499
4336
 1607 0008 33B3     		cbz	r3, .L59
4337
2270:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
4338
2271:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_TX_DTOG(USBx, ep->num);
4339
 1608              		.loc 1 2271 7 is_stmt 1 view .LVU500
4340
 1609              	.LBB56:
4341
 1610              		.loc 1 2271 7 view .LVU501
4342
 1611              		.loc 1 2271 7 view .LVU502
4343
 1612 000a 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
4344
 1613 000c 30F82230 		ldrh	r3, [r0, r2, lsl #2]
4345
 1614              	.LVL170:
4346
 1615              		.loc 1 2271 7 view .LVU503
4347
 1616 0010 13F0400F 		tst	r3, #64
4348
 1617 0014 0CD0     		beq	.L60
4349
 1618              		.loc 1 2271 7 discriminator 1 view .LVU504
4350
 1619              	.LBB57:
4351
 1620              		.loc 1 2271 7 discriminator 1 view .LVU505
4352
 1621              		.loc 1 2271 7 discriminator 1 view .LVU506
4353
 1622 0016 30F82230 		ldrh	r3, [r0, r2, lsl #2]
4354
 1623              	.LVL171:
4355
 1624              		.loc 1 2271 7 is_stmt 0 discriminator 1 view .LVU507
4356
 1625 001a 9BB2     		uxth	r3, r3
4357
 1626 001c 23F4E043 		bic	r3, r3, #28672
4358
 1627 0020 23F07003 		bic	r3, r3, #112
4359
 1628              	.LVL172:
4360
 1629              		.loc 1 2271 7 is_stmt 1 discriminator 1 view .LVU508
4361
 1630 0024 43F40043 		orr	r3, r3, #32768
4362
 1631              	.LVL173:
4363
 1632              		.loc 1 2271 7 is_stmt 0 discriminator 1 view .LVU509
4364
 1633 0028 43F0C003 		orr	r3, r3, #192
4365
 1634 002c 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
4366
 1635              	.L60:
4367
 1636              		.loc 1 2271 7 discriminator 1 view .LVU510
4368
 1637              	.LBE57:
4369
 1638              	.LBE56:
4370
2272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4371
2273:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       if (ep->type != EP_TYPE_ISOC)
4372
 1639              		.loc 1 2273 7 is_stmt 1 view .LVU511
4373
 1640              		.loc 1 2273 13 is_stmt 0 view .LVU512
4374
 1641 0030 CB78     		ldrb	r3, [r1, #3]	@ zero_extendqisi2
4375
 1642              		.loc 1 2273 10 view .LVU513
4376
 1643 0032 012B     		cmp	r3, #1
4377
 1644 0034 33D0     		beq	.L58
4378
2274:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
4379
2275:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         /* Configure NAK status for the Endpoint */
4380
2276:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         PCD_SET_EP_TX_STATUS(USBx, ep->num, USB_EP_TX_NAK);
20 mjames 4381
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 74
16 mjames 4382
 
4383
 
4384
 1645              		.loc 1 2276 9 is_stmt 1 view .LVU514
4385
 1646              	.LBB58:
4386
 1647              		.loc 1 2276 9 view .LVU515
4387
 1648              		.loc 1 2276 9 view .LVU516
4388
 1649 0036 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
4389
 1650 0038 30F82230 		ldrh	r3, [r0, r2, lsl #2]
4390
 1651 003c 9BB2     		uxth	r3, r3
4391
 1652 003e 23F4E043 		bic	r3, r3, #28672
4392
 1653 0042 23F04003 		bic	r3, r3, #64
4393
 1654              	.LVL174:
4394
 1655              		.loc 1 2276 9 view .LVU517
4395
 1656              		.loc 1 2276 9 view .LVU518
4396
 1657              		.loc 1 2276 9 view .LVU519
4397
 1658 0046 83F02003 		eor	r3, r3, #32
4398
 1659              	.LVL175:
4399
 1660              		.loc 1 2276 9 view .LVU520
4400
 1661 004a 43F40043 		orr	r3, r3, #32768
4401
 1662              	.LVL176:
4402
 1663              		.loc 1 2276 9 is_stmt 0 view .LVU521
4403
 1664 004e 43F08003 		orr	r3, r3, #128
4404
 1665 0052 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
4405
 1666 0056 22E0     		b	.L58
4406
 1667              	.L59:
4407
 1668              		.loc 1 2276 9 view .LVU522
4408
 1669              	.LBE58:
4409
2277:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
4410
2278:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
4411
2279:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     else
4412
2280:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
4413
2281:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_CLEAR_RX_DTOG(USBx, ep->num);
4414
 1670              		.loc 1 2281 7 is_stmt 1 view .LVU523
4415
 1671              	.LBB59:
4416
 1672              		.loc 1 2281 7 view .LVU524
4417
 1673              		.loc 1 2281 7 view .LVU525
4418
 1674 0058 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
4419
 1675 005a 30F82230 		ldrh	r3, [r0, r2, lsl #2]
4420
 1676              	.LVL177:
4421
 1677              		.loc 1 2281 7 view .LVU526
4422
 1678 005e 13F4804F 		tst	r3, #16384
4423
 1679 0062 0CD0     		beq	.L61
4424
 1680              		.loc 1 2281 7 discriminator 1 view .LVU527
4425
 1681              	.LBB60:
4426
 1682              		.loc 1 2281 7 discriminator 1 view .LVU528
4427
 1683              		.loc 1 2281 7 discriminator 1 view .LVU529
4428
 1684 0064 30F82230 		ldrh	r3, [r0, r2, lsl #2]
4429
 1685              	.LVL178:
4430
 1686              		.loc 1 2281 7 is_stmt 0 discriminator 1 view .LVU530
4431
 1687 0068 9BB2     		uxth	r3, r3
4432
 1688 006a 23F4E043 		bic	r3, r3, #28672
4433
 1689 006e 23F07003 		bic	r3, r3, #112
4434
 1690              	.LVL179:
4435
 1691              		.loc 1 2281 7 is_stmt 1 discriminator 1 view .LVU531
4436
 1692 0072 43F44043 		orr	r3, r3, #49152
4437
 1693              	.LVL180:
4438
 1694              		.loc 1 2281 7 is_stmt 0 discriminator 1 view .LVU532
4439
 1695 0076 43F08003 		orr	r3, r3, #128
4440
 1696 007a 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
20 mjames 4441
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 75
16 mjames 4442
 
4443
 
4444
 1697              	.L61:
4445
 1698              		.loc 1 2281 7 discriminator 1 view .LVU533
4446
 1699              	.LBE60:
4447
 1700              	.LBE59:
4448
2282:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4449
2283:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       /* Configure VALID status for the Endpoint*/
4450
2284:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_RX_STATUS(USBx, ep->num, USB_EP_RX_VALID);
4451
 1701              		.loc 1 2284 7 is_stmt 1 view .LVU534
4452
 1702              	.LBB61:
4453
 1703              		.loc 1 2284 7 view .LVU535
4454
 1704              		.loc 1 2284 7 view .LVU536
4455
 1705 007e 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
4456
 1706 0080 30F82230 		ldrh	r3, [r0, r2, lsl #2]
4457
 1707 0084 9BB2     		uxth	r3, r3
4458
 1708 0086 23F48043 		bic	r3, r3, #16384
4459
 1709 008a 23F07003 		bic	r3, r3, #112
4460
 1710              	.LVL181:
4461
 1711              		.loc 1 2284 7 view .LVU537
4462
 1712              		.loc 1 2284 7 view .LVU538
4463
 1713              		.loc 1 2284 7 view .LVU539
4464
 1714              		.loc 1 2284 7 view .LVU540
4465
 1715 008e 83F44053 		eor	r3, r3, #12288
4466
 1716              	.LVL182:
4467
 1717              		.loc 1 2284 7 view .LVU541
4468
 1718 0092 43F40043 		orr	r3, r3, #32768
4469
 1719              	.LVL183:
4470
 1720              		.loc 1 2284 7 is_stmt 0 view .LVU542
4471
 1721 0096 43F08003 		orr	r3, r3, #128
4472
 1722 009a 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
4473
 1723              	.L58:
4474
 1724              		.loc 1 2284 7 view .LVU543
4475
 1725              	.LBE61:
4476
2285:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
4477
2286:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
4478
2287:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4479
2288:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
4480
 1726              		.loc 1 2288 3 is_stmt 1 view .LVU544
4481
2289:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4482
 1727              		.loc 1 2289 1 is_stmt 0 view .LVU545
4483
 1728 009e 0020     		movs	r0, #0
4484
 1729              	.LVL184:
4485
 1730              		.loc 1 2289 1 view .LVU546
4486
 1731 00a0 7047     		bx	lr
4487
 1732              		.cfi_endproc
4488
 1733              	.LFE79:
4489
 1735              		.section	.text.USB_StopDevice,"ax",%progbits
4490
 1736              		.align	1
4491
 1737              		.global	USB_StopDevice
4492
 1738              		.syntax unified
4493
 1739              		.thumb
4494
 1740              		.thumb_func
4495
 1741              		.fpu softvfp
4496
 1743              	USB_StopDevice:
4497
 1744              	.LVL185:
4498
 1745              	.LFB80:
4499
2290:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4500
2291:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
20 mjames 4501
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 76
16 mjames 4502
 
4503
 
4504
2292:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_StopDevice : Stop the usb device mode
4505
2293:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
4506
2294:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
4507
2295:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4508
2296:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_StopDevice(USB_TypeDef *USBx)
4509
2297:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4510
 1746              		.loc 1 2297 1 is_stmt 1 view -0
4511
 1747              		.cfi_startproc
4512
 1748              		@ args = 0, pretend = 0, frame = 0
4513
 1749              		@ frame_needed = 0, uses_anonymous_args = 0
4514
 1750              		@ link register save eliminated.
4515
 1751              		.loc 1 2297 1 is_stmt 0 view .LVU548
4516
 1752 0000 0346     		mov	r3, r0
4517
2298:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* disable all interrupts and force USB reset */
4518
2299:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->CNTR = USB_CNTR_FRES;
4519
 1753              		.loc 1 2299 3 is_stmt 1 view .LVU549
4520
 1754              		.loc 1 2299 14 is_stmt 0 view .LVU550
4521
 1755 0002 0122     		movs	r2, #1
4522
 1756 0004 A0F84020 		strh	r2, [r0, #64]	@ movhi
4523
2300:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4524
2301:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* clear interrupt status register */
4525
2302:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->ISTR = 0;
4526
 1757              		.loc 1 2302 3 is_stmt 1 view .LVU551
4527
 1758              		.loc 1 2302 14 is_stmt 0 view .LVU552
4528
 1759 0008 0020     		movs	r0, #0
4529
 1760              	.LVL186:
4530
 1761              		.loc 1 2302 14 view .LVU553
4531
 1762 000a A3F84400 		strh	r0, [r3, #68]	@ movhi
4532
2303:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4533
2304:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* switch-off device */
4534
2305:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->CNTR = (USB_CNTR_FRES | USB_CNTR_PDWN);
4535
 1763              		.loc 1 2305 3 is_stmt 1 view .LVU554
4536
 1764              		.loc 1 2305 14 is_stmt 0 view .LVU555
4537
 1765 000e 0322     		movs	r2, #3
4538
 1766 0010 A3F84020 		strh	r2, [r3, #64]	@ movhi
4539
2306:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4540
2307:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
4541
 1767              		.loc 1 2307 3 is_stmt 1 view .LVU556
4542
2308:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4543
 1768              		.loc 1 2308 1 is_stmt 0 view .LVU557
4544
 1769 0014 7047     		bx	lr
4545
 1770              		.cfi_endproc
4546
 1771              	.LFE80:
4547
 1773              		.section	.text.USB_SetDevAddress,"ax",%progbits
4548
 1774              		.align	1
4549
 1775              		.global	USB_SetDevAddress
4550
 1776              		.syntax unified
4551
 1777              		.thumb
4552
 1778              		.thumb_func
4553
 1779              		.fpu softvfp
4554
 1781              	USB_SetDevAddress:
4555
 1782              	.LVL187:
4556
 1783              	.LFB81:
4557
2309:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4558
2310:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4559
2311:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_SetDevAddress : Stop the usb device mode
4560
2312:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
20 mjames 4561
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 77
16 mjames 4562
 
4563
 
4564
2313:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  address : new device address to be assigned
4565
2314:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be a value from 0 to 255
4566
2315:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
4567
2316:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4568
2317:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef  USB_SetDevAddress(USB_TypeDef *USBx, uint8_t address)
4569
2318:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4570
 1784              		.loc 1 2318 1 is_stmt 1 view -0
4571
 1785              		.cfi_startproc
4572
 1786              		@ args = 0, pretend = 0, frame = 0
4573
 1787              		@ frame_needed = 0, uses_anonymous_args = 0
4574
 1788              		@ link register save eliminated.
4575
2319:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if (address == 0U)
4576
 1789              		.loc 1 2319 3 view .LVU559
4577
 1790              		.loc 1 2319 6 is_stmt 0 view .LVU560
4578
 1791 0000 11B9     		cbnz	r1, .L64
4579
2320:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
4580
2321:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     /* set device address and enable function */
4581
2322:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     USBx->DADDR = USB_DADDR_EF;
4582
 1792              		.loc 1 2322 5 is_stmt 1 view .LVU561
4583
 1793              		.loc 1 2322 17 is_stmt 0 view .LVU562
4584
 1794 0002 8023     		movs	r3, #128
4585
 1795 0004 A0F84C30 		strh	r3, [r0, #76]	@ movhi
4586
 1796              	.L64:
4587
2323:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
4588
2324:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4589
2325:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
4590
 1797              		.loc 1 2325 3 is_stmt 1 view .LVU563
4591
2326:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4592
 1798              		.loc 1 2326 1 is_stmt 0 view .LVU564
4593
 1799 0008 0020     		movs	r0, #0
4594
 1800              	.LVL188:
4595
 1801              		.loc 1 2326 1 view .LVU565
4596
 1802 000a 7047     		bx	lr
4597
 1803              		.cfi_endproc
4598
 1804              	.LFE81:
4599
 1806              		.section	.text.USB_DevConnect,"ax",%progbits
4600
 1807              		.align	1
4601
 1808              		.global	USB_DevConnect
4602
 1809              		.syntax unified
4603
 1810              		.thumb
4604
 1811              		.thumb_func
4605
 1812              		.fpu softvfp
4606
 1814              	USB_DevConnect:
4607
 1815              	.LVL189:
4608
 1816              	.LFB82:
4609
2327:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4610
2328:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4611
2329:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_DevConnect : Connect the USB device by enabling the pull-up/pull-down
4612
2330:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
4613
2331:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
4614
2332:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4615
2333:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef  USB_DevConnect(USB_TypeDef *USBx)
4616
2334:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4617
 1817              		.loc 1 2334 1 is_stmt 1 view -0
4618
 1818              		.cfi_startproc
4619
 1819              		@ args = 0, pretend = 0, frame = 0
4620
 1820              		@ frame_needed = 0, uses_anonymous_args = 0
20 mjames 4621
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 78
16 mjames 4622
 
4623
 
4624
 1821              		@ link register save eliminated.
4625
2335:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
4626
2336:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
4627
 1822              		.loc 1 2336 3 view .LVU567
4628
2337:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
4629
2338:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
4630
2339:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
4631
2340:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
4632
2341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4633
2342:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
4634
 1823              		.loc 1 2342 3 view .LVU568
4635
2343:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4636
 1824              		.loc 1 2343 1 is_stmt 0 view .LVU569
4637
 1825 0000 0020     		movs	r0, #0
4638
 1826              	.LVL190:
4639
 1827              		.loc 1 2343 1 view .LVU570
4640
 1828 0002 7047     		bx	lr
4641
 1829              		.cfi_endproc
4642
 1830              	.LFE82:
4643
 1832              		.section	.text.USB_DevDisconnect,"ax",%progbits
4644
 1833              		.align	1
4645
 1834              		.global	USB_DevDisconnect
4646
 1835              		.syntax unified
4647
 1836              		.thumb
4648
 1837              		.thumb_func
4649
 1838              		.fpu softvfp
4650
 1840              	USB_DevDisconnect:
4651
 1841              	.LVL191:
4652
 1842              	.LFB83:
4653
2344:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4654
2345:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4655
2346:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_DevDisconnect : Disconnect the USB device by disabling the pull-up/pull-down
4656
2347:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
4657
2348:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
4658
2349:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4659
2350:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef  USB_DevDisconnect(USB_TypeDef *USBx)
4660
2351:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4661
 1843              		.loc 1 2351 1 is_stmt 1 view -0
4662
 1844              		.cfi_startproc
4663
 1845              		@ args = 0, pretend = 0, frame = 0
4664
 1846              		@ frame_needed = 0, uses_anonymous_args = 0
4665
 1847              		@ link register save eliminated.
4666
2352:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
4667
2353:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
4668
 1848              		.loc 1 2353 3 view .LVU572
4669
2354:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
4670
2355:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
4671
2356:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
4672
2357:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
4673
2358:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4674
2359:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
4675
 1849              		.loc 1 2359 3 view .LVU573
4676
2360:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4677
 1850              		.loc 1 2360 1 is_stmt 0 view .LVU574
4678
 1851 0000 0020     		movs	r0, #0
4679
 1852              	.LVL192:
4680
 1853              		.loc 1 2360 1 view .LVU575
20 mjames 4681
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 79
16 mjames 4682
 
4683
 
4684
 1854 0002 7047     		bx	lr
4685
 1855              		.cfi_endproc
4686
 1856              	.LFE83:
4687
 1858              		.section	.text.USB_ReadInterrupts,"ax",%progbits
4688
 1859              		.align	1
4689
 1860              		.global	USB_ReadInterrupts
4690
 1861              		.syntax unified
4691
 1862              		.thumb
4692
 1863              		.thumb_func
4693
 1864              		.fpu softvfp
4694
 1866              	USB_ReadInterrupts:
4695
 1867              	.LVL193:
4696
 1868              	.LFB84:
4697
2361:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4698
2362:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4699
2363:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_ReadInterrupts: return the global USB interrupt status
4700
2364:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
4701
2365:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
4702
2366:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4703
2367:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t  USB_ReadInterrupts(USB_TypeDef *USBx)
4704
2368:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4705
 1869              		.loc 1 2368 1 is_stmt 1 view -0
4706
 1870              		.cfi_startproc
4707
 1871              		@ args = 0, pretend = 0, frame = 0
4708
 1872              		@ frame_needed = 0, uses_anonymous_args = 0
4709
 1873              		@ link register save eliminated.
4710
2369:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t tmpreg;
4711
 1874              		.loc 1 2369 3 view .LVU577
4712
2370:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4713
2371:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   tmpreg = USBx->ISTR;
4714
 1875              		.loc 1 2371 3 view .LVU578
4715
 1876              		.loc 1 2371 16 is_stmt 0 view .LVU579
4716
 1877 0000 B0F84400 		ldrh	r0, [r0, #68]
4717
 1878              	.LVL194:
4718
2372:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return tmpreg;
4719
 1879              		.loc 1 2372 3 is_stmt 1 view .LVU580
4720
2373:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4721
 1880              		.loc 1 2373 1 is_stmt 0 view .LVU581
4722
 1881 0004 7047     		bx	lr
4723
 1882              		.cfi_endproc
4724
 1883              	.LFE84:
4725
 1885              		.section	.text.USB_ReadDevAllOutEpInterrupt,"ax",%progbits
4726
 1886              		.align	1
4727
 1887              		.global	USB_ReadDevAllOutEpInterrupt
4728
 1888              		.syntax unified
4729
 1889              		.thumb
4730
 1890              		.thumb_func
4731
 1891              		.fpu softvfp
4732
 1893              	USB_ReadDevAllOutEpInterrupt:
4733
 1894              	.LVL195:
4734
 1895              	.LFB85:
4735
2374:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4736
2375:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4737
2376:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_ReadDevAllOutEpInterrupt: return the USB device OUT endpoints interrupt status
4738
2377:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
4739
2378:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
4740
2379:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
20 mjames 4741
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 80
16 mjames 4742
 
4743
 
4744
2380:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t USB_ReadDevAllOutEpInterrupt(USB_TypeDef *USBx)
4745
2381:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4746
 1896              		.loc 1 2381 1 is_stmt 1 view -0
4747
 1897              		.cfi_startproc
4748
 1898              		@ args = 0, pretend = 0, frame = 0
4749
 1899              		@ frame_needed = 0, uses_anonymous_args = 0
4750
 1900              		@ link register save eliminated.
4751
2382:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
4752
2383:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
4753
 1901              		.loc 1 2383 3 view .LVU583
4754
2384:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
4755
2385:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
4756
2386:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
4757
2387:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
4758
2388:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return (0);
4759
 1902              		.loc 1 2388 3 view .LVU584
4760
2389:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4761
 1903              		.loc 1 2389 1 is_stmt 0 view .LVU585
4762
 1904 0000 0020     		movs	r0, #0
4763
 1905              	.LVL196:
4764
 1906              		.loc 1 2389 1 view .LVU586
4765
 1907 0002 7047     		bx	lr
4766
 1908              		.cfi_endproc
4767
 1909              	.LFE85:
4768
 1911              		.section	.text.USB_ReadDevAllInEpInterrupt,"ax",%progbits
4769
 1912              		.align	1
4770
 1913              		.global	USB_ReadDevAllInEpInterrupt
4771
 1914              		.syntax unified
4772
 1915              		.thumb
4773
 1916              		.thumb_func
4774
 1917              		.fpu softvfp
4775
 1919              	USB_ReadDevAllInEpInterrupt:
4776
 1920              	.LVL197:
4777
 1921              	.LFB86:
4778
2390:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4779
2391:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4780
2392:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_ReadDevAllInEpInterrupt: return the USB device IN endpoints interrupt status
4781
2393:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
4782
2394:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
4783
2395:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4784
2396:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t USB_ReadDevAllInEpInterrupt(USB_TypeDef *USBx)
4785
2397:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4786
 1922              		.loc 1 2397 1 is_stmt 1 view -0
4787
 1923              		.cfi_startproc
4788
 1924              		@ args = 0, pretend = 0, frame = 0
4789
 1925              		@ frame_needed = 0, uses_anonymous_args = 0
4790
 1926              		@ link register save eliminated.
4791
2398:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
4792
2399:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
4793
 1927              		.loc 1 2399 3 view .LVU588
4794
2400:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
4795
2401:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
4796
2402:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
4797
2403:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
4798
2404:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return (0);
4799
 1928              		.loc 1 2404 3 view .LVU589
4800
2405:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
20 mjames 4801
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 81
16 mjames 4802
 
4803
 
4804
 1929              		.loc 1 2405 1 is_stmt 0 view .LVU590
4805
 1930 0000 0020     		movs	r0, #0
4806
 1931              	.LVL198:
4807
 1932              		.loc 1 2405 1 view .LVU591
4808
 1933 0002 7047     		bx	lr
4809
 1934              		.cfi_endproc
4810
 1935              	.LFE86:
4811
 1937              		.section	.text.USB_ReadDevOutEPInterrupt,"ax",%progbits
4812
 1938              		.align	1
4813
 1939              		.global	USB_ReadDevOutEPInterrupt
4814
 1940              		.syntax unified
4815
 1941              		.thumb
4816
 1942              		.thumb_func
4817
 1943              		.fpu softvfp
4818
 1945              	USB_ReadDevOutEPInterrupt:
4819
 1946              	.LVL199:
4820
 1947              	.LFB87:
4821
2406:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4822
2407:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4823
2408:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Returns Device OUT EP Interrupt register
4824
2409:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
4825
2410:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  epnum : endpoint number
4826
2411:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be a value from 0 to 15
4827
2412:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval Device OUT EP Interrupt register
4828
2413:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4829
2414:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t USB_ReadDevOutEPInterrupt(USB_TypeDef *USBx, uint8_t epnum)
4830
2415:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4831
 1948              		.loc 1 2415 1 is_stmt 1 view -0
4832
 1949              		.cfi_startproc
4833
 1950              		@ args = 0, pretend = 0, frame = 0
4834
 1951              		@ frame_needed = 0, uses_anonymous_args = 0
4835
 1952              		@ link register save eliminated.
4836
2416:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
4837
2417:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
4838
 1953              		.loc 1 2417 3 view .LVU593
4839
2418:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(epnum);
4840
 1954              		.loc 1 2418 3 view .LVU594
4841
2419:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
4842
2420:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
4843
2421:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
4844
2422:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
4845
2423:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return (0);
4846
 1955              		.loc 1 2423 3 view .LVU595
4847
2424:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4848
 1956              		.loc 1 2424 1 is_stmt 0 view .LVU596
4849
 1957 0000 0020     		movs	r0, #0
4850
 1958              	.LVL200:
4851
 1959              		.loc 1 2424 1 view .LVU597
4852
 1960 0002 7047     		bx	lr
4853
 1961              		.cfi_endproc
4854
 1962              	.LFE87:
4855
 1964              		.section	.text.USB_ReadDevInEPInterrupt,"ax",%progbits
4856
 1965              		.align	1
4857
 1966              		.global	USB_ReadDevInEPInterrupt
4858
 1967              		.syntax unified
4859
 1968              		.thumb
4860
 1969              		.thumb_func
20 mjames 4861
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 82
16 mjames 4862
 
4863
 
4864
 1970              		.fpu softvfp
4865
 1972              	USB_ReadDevInEPInterrupt:
4866
 1973              	.LVL201:
4867
 1974              	.LFB88:
4868
2425:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4869
2426:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4870
2427:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Returns Device IN EP Interrupt register
4871
2428:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx : Selected device
4872
2429:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  epnum : endpoint number
4873
2430:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   *          This parameter can be a value from 0 to 15
4874
2431:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval Device IN EP Interrupt register
4875
2432:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4876
2433:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** uint32_t USB_ReadDevInEPInterrupt(USB_TypeDef *USBx, uint8_t epnum)
4877
2434:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4878
 1975              		.loc 1 2434 1 is_stmt 1 view -0
4879
 1976              		.cfi_startproc
4880
 1977              		@ args = 0, pretend = 0, frame = 0
4881
 1978              		@ frame_needed = 0, uses_anonymous_args = 0
4882
 1979              		@ link register save eliminated.
4883
2435:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
4884
2436:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
4885
 1980              		.loc 1 2436 3 view .LVU599
4886
2437:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(epnum);
4887
 1981              		.loc 1 2437 3 view .LVU600
4888
2438:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
4889
2439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
4890
2440:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
4891
2441:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
4892
2442:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return (0);
4893
 1982              		.loc 1 2442 3 view .LVU601
4894
2443:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4895
 1983              		.loc 1 2443 1 is_stmt 0 view .LVU602
4896
 1984 0000 0020     		movs	r0, #0
4897
 1985              	.LVL202:
4898
 1986              		.loc 1 2443 1 view .LVU603
4899
 1987 0002 7047     		bx	lr
4900
 1988              		.cfi_endproc
4901
 1989              	.LFE88:
4902
 1991              		.section	.text.USB_ClearInterrupts,"ax",%progbits
4903
 1992              		.align	1
4904
 1993              		.global	USB_ClearInterrupts
4905
 1994              		.syntax unified
4906
 1995              		.thumb
4907
 1996              		.thumb_func
4908
 1997              		.fpu softvfp
4909
 1999              	USB_ClearInterrupts:
4910
 2000              	.LVL203:
4911
 2001              	.LFB89:
4912
2444:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4913
2445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4914
2446:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_ClearInterrupts: clear a USB interrupt
4915
2447:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
4916
2448:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  interrupt  interrupt flag
4917
2449:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval None
4918
2450:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4919
2451:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** void  USB_ClearInterrupts(USB_TypeDef *USBx, uint32_t interrupt)
4920
2452:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
20 mjames 4921
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 83
16 mjames 4922
 
4923
 
4924
 2002              		.loc 1 2452 1 is_stmt 1 view -0
4925
 2003              		.cfi_startproc
4926
 2004              		@ args = 0, pretend = 0, frame = 0
4927
 2005              		@ frame_needed = 0, uses_anonymous_args = 0
4928
 2006              		@ link register save eliminated.
4929
2453:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
4930
2454:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
4931
 2007              		.loc 1 2454 3 view .LVU605
4932
2455:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(interrupt);
4933
 2008              		.loc 1 2455 3 view .LVU606
4934
2456:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
4935
2457:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
4936
2458:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
4937
2459:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
4938
2460:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4939
 2009              		.loc 1 2460 1 is_stmt 0 view .LVU607
4940
 2010 0000 7047     		bx	lr
4941
 2011              		.cfi_endproc
4942
 2012              	.LFE89:
4943
 2014              		.section	.text.USB_EP0_OutStart,"ax",%progbits
4944
 2015              		.align	1
4945
 2016              		.global	USB_EP0_OutStart
4946
 2017              		.syntax unified
4947
 2018              		.thumb
4948
 2019              		.thumb_func
4949
 2020              		.fpu softvfp
4950
 2022              	USB_EP0_OutStart:
4951
 2023              	.LVL204:
4952
 2024              	.LFB90:
4953
2461:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
4954
2462:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
4955
2463:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  Prepare the EP0 to start the first control setup
4956
2464:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
4957
2465:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  psetup  pointer to setup packet
4958
2466:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
4959
2467:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
4960
2468:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_EP0_OutStart(USB_TypeDef *USBx, uint8_t *psetup)
4961
2469:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
4962
 2025              		.loc 1 2469 1 is_stmt 1 view -0
4963
 2026              		.cfi_startproc
4964
 2027              		@ args = 0, pretend = 0, frame = 0
4965
 2028              		@ frame_needed = 0, uses_anonymous_args = 0
4966
 2029              		@ link register save eliminated.
4967
2470:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* Prevent unused argument(s) compilation warning */
4968
2471:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(USBx);
4969
 2030              		.loc 1 2471 3 view .LVU609
4970
2472:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   UNUSED(psetup);
4971
 2031              		.loc 1 2472 3 view .LVU610
4972
2473:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   /* NOTE : - This function is not required by USB Device FS peripheral, it is used
4973
2474:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****               only by USB OTG FS peripheral.
4974
2475:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****             - This function is added to ensure compatibility across platforms.
4975
2476:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****    */
4976
2477:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
4977
 2032              		.loc 1 2477 3 view .LVU611
4978
2478:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
4979
 2033              		.loc 1 2478 1 is_stmt 0 view .LVU612
4980
 2034 0000 0020     		movs	r0, #0
20 mjames 4981
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 84
16 mjames 4982
 
4983
 
4984
 2035              	.LVL205:
4985
 2036              		.loc 1 2478 1 view .LVU613
4986
 2037 0002 7047     		bx	lr
4987
 2038              		.cfi_endproc
4988
 2039              	.LFE90:
4989
 2041              		.section	.text.USB_ActivateRemoteWakeup,"ax",%progbits
4990
 2042              		.align	1
4991
 2043              		.global	USB_ActivateRemoteWakeup
4992
 2044              		.syntax unified
4993
 2045              		.thumb
4994
 2046              		.thumb_func
4995
 2047              		.fpu softvfp
4996
 2049              	USB_ActivateRemoteWakeup:
4997
 2050              	.LVL206:
4998
 2051              	.LFB91:
4999
2479:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
5000
2480:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
5001
2481:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_ActivateRemoteWakeup : active remote wakeup signalling
5002
2482:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
5003
2483:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
5004
2484:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
5005
2485:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_ActivateRemoteWakeup(USB_TypeDef *USBx)
5006
2486:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
5007
 2052              		.loc 1 2486 1 is_stmt 1 view -0
5008
 2053              		.cfi_startproc
5009
 2054              		@ args = 0, pretend = 0, frame = 0
5010
 2055              		@ frame_needed = 0, uses_anonymous_args = 0
5011
 2056              		@ link register save eliminated.
5012
2487:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->CNTR |= USB_CNTR_RESUME;
5013
 2057              		.loc 1 2487 3 view .LVU615
5014
 2058              		.loc 1 2487 14 is_stmt 0 view .LVU616
5015
 2059 0000 B0F84030 		ldrh	r3, [r0, #64]
5016
 2060 0004 43F01003 		orr	r3, r3, #16
5017
 2061 0008 A0F84030 		strh	r3, [r0, #64]	@ movhi
5018
2488:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
5019
2489:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
5020
 2062              		.loc 1 2489 3 is_stmt 1 view .LVU617
5021
2490:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
5022
 2063              		.loc 1 2490 1 is_stmt 0 view .LVU618
5023
 2064 000c 0020     		movs	r0, #0
5024
 2065              	.LVL207:
5025
 2066              		.loc 1 2490 1 view .LVU619
5026
 2067 000e 7047     		bx	lr
5027
 2068              		.cfi_endproc
5028
 2069              	.LFE91:
5029
 2071              		.section	.text.USB_DeActivateRemoteWakeup,"ax",%progbits
5030
 2072              		.align	1
5031
 2073              		.global	USB_DeActivateRemoteWakeup
5032
 2074              		.syntax unified
5033
 2075              		.thumb
5034
 2076              		.thumb_func
5035
 2077              		.fpu softvfp
5036
 2079              	USB_DeActivateRemoteWakeup:
5037
 2080              	.LVL208:
5038
 2081              	.LFB92:
5039
2491:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
5040
2492:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
20 mjames 5041
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 85
16 mjames 5042
 
5043
 
5044
2493:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief  USB_DeActivateRemoteWakeup : de-active remote wakeup signalling
5045
2494:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param  USBx  Selected device
5046
2495:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval HAL status
5047
2496:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
5048
2497:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** HAL_StatusTypeDef USB_DeActivateRemoteWakeup(USB_TypeDef *USBx)
5049
2498:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
5050
 2082              		.loc 1 2498 1 is_stmt 1 view -0
5051
 2083              		.cfi_startproc
5052
 2084              		@ args = 0, pretend = 0, frame = 0
5053
 2085              		@ frame_needed = 0, uses_anonymous_args = 0
5054
 2086              		@ link register save eliminated.
5055
2499:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   USBx->CNTR &= ~(USB_CNTR_RESUME);
5056
 2087              		.loc 1 2499 3 view .LVU621
5057
 2088              		.loc 1 2499 14 is_stmt 0 view .LVU622
5058
 2089 0000 B0F84030 		ldrh	r3, [r0, #64]
5059
 2090 0004 9BB2     		uxth	r3, r3
5060
 2091 0006 23F01003 		bic	r3, r3, #16
5061
 2092 000a 9BB2     		uxth	r3, r3
5062
 2093 000c A0F84030 		strh	r3, [r0, #64]	@ movhi
5063
2500:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   return HAL_OK;
5064
 2094              		.loc 1 2500 3 is_stmt 1 view .LVU623
5065
2501:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
5066
 2095              		.loc 1 2501 1 is_stmt 0 view .LVU624
5067
 2096 0010 0020     		movs	r0, #0
5068
 2097              	.LVL209:
5069
 2098              		.loc 1 2501 1 view .LVU625
5070
 2099 0012 7047     		bx	lr
5071
 2100              		.cfi_endproc
5072
 2101              	.LFE92:
5073
 2103              		.section	.text.USB_WritePMA,"ax",%progbits
5074
 2104              		.align	1
5075
 2105              		.global	USB_WritePMA
5076
 2106              		.syntax unified
5077
 2107              		.thumb
5078
 2108              		.thumb_func
5079
 2109              		.fpu softvfp
5080
 2111              	USB_WritePMA:
5081
 2112              	.LVL210:
5082
 2113              	.LFB93:
5083
2502:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
5084
2503:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
5085
2504:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief Copy a buffer from user memory area to packet memory area (PMA)
5086
2505:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param   USBx USB peripheral instance register address.
5087
2506:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param   pbUsrBuf pointer to user memory area.
5088
2507:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param   wPMABufAddr address into PMA.
5089
2508:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param   wNBytes: no. of bytes to be copied.
5090
2509:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval None
5091
2510:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
5092
2511:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** void USB_WritePMA(USB_TypeDef *USBx, uint8_t *pbUsrBuf, uint16_t wPMABufAddr, uint16_t wNBytes)
5093
2512:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
5094
 2114              		.loc 1 2512 1 is_stmt 1 view -0
5095
 2115              		.cfi_startproc
5096
 2116              		@ args = 0, pretend = 0, frame = 0
5097
 2117              		@ frame_needed = 0, uses_anonymous_args = 0
5098
 2118              		@ link register save eliminated.
5099
2513:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t n = ((uint32_t)wNBytes + 1U) >> 1;
5100
 2119              		.loc 1 2513 3 view .LVU627
20 mjames 5101
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 86
16 mjames 5102
 
5103
 
5104
 2120              		.loc 1 2513 35 is_stmt 0 view .LVU628
5105
 2121 0000 0133     		adds	r3, r3, #1
5106
 2122              	.LVL211:
5107
 2123              		.loc 1 2513 12 view .LVU629
5108
 2124 0002 5B08     		lsrs	r3, r3, #1
5109
 2125              	.LVL212:
5110
2514:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t BaseAddr = (uint32_t)USBx;
5111
 2126              		.loc 1 2514 3 is_stmt 1 view .LVU630
5112
2515:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t i, temp1, temp2;
5113
 2127              		.loc 1 2515 3 view .LVU631
5114
2516:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   __IO uint16_t *pdwVal;
5115
 2128              		.loc 1 2516 3 view .LVU632
5116
2517:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint8_t *pBuf = pbUsrBuf;
5117
 2129              		.loc 1 2517 3 view .LVU633
5118
2518:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
5119
2519:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   pdwVal = (__IO uint16_t *)(BaseAddr + 0x400U + ((uint32_t)wPMABufAddr * PMA_ACCESS));
5120
 2130              		.loc 1 2519 3 view .LVU634
5121
 2131              		.loc 1 2519 48 is_stmt 0 view .LVU635
5122
 2132 0004 00EB4202 		add	r2, r0, r2, lsl #1
5123
 2133              	.LVL213:
5124
 2134              		.loc 1 2519 48 view .LVU636
5125
 2135 0008 02F58062 		add	r2, r2, #1024
5126
 2136              	.LVL214:
5127
2520:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
5128
2521:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   for (i = n; i != 0U; i--)
5129
 2137              		.loc 1 2521 3 is_stmt 1 view .LVU637
5130
 2138              		.loc 1 2521 3 is_stmt 0 view .LVU638
5131
 2139 000c 63B1     		cbz	r3, .L82
5132
2512:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t n = ((uint32_t)wNBytes + 1U) >> 1;
5133
 2140              		.loc 1 2512 1 view .LVU639
5134
 2141 000e 10B4     		push	{r4}
5135
 2142              	.LCFI12:
5136
 2143              		.cfi_def_cfa_offset 4
5137
 2144              		.cfi_offset 4, -4
5138
 2145              	.LVL215:
5139
 2146              	.L78:
5140
2522:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
5141
2523:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     temp1 = *pBuf;
5142
 2147              		.loc 1 2523 5 is_stmt 1 discriminator 3 view .LVU640
5143
 2148              		.loc 1 2523 13 is_stmt 0 discriminator 3 view .LVU641
5144
 2149 0010 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
5145
 2150              	.LVL216:
5146
2524:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     pBuf++;
5147
 2151              		.loc 1 2524 5 is_stmt 1 discriminator 3 view .LVU642
5148
2525:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     temp2 = temp1 | ((uint16_t)((uint16_t) *pBuf << 8));
5149
 2152              		.loc 1 2525 5 discriminator 3 view .LVU643
5150
 2153              		.loc 1 2525 44 is_stmt 0 discriminator 3 view .LVU644
5151
 2154 0012 4878     		ldrb	r0, [r1, #1]	@ zero_extendqisi2
5152
 2155              	.LVL217:
5153
2526:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     *pdwVal = (uint16_t)temp2;
5154
 2156              		.loc 1 2526 5 is_stmt 1 discriminator 3 view .LVU645
5155
 2157              		.loc 1 2526 15 is_stmt 0 discriminator 3 view .LVU646
5156
 2158 0014 44EA0024 		orr	r4, r4, r0, lsl #8
5157
 2159              	.LVL218:
5158
 2160              		.loc 1 2526 13 discriminator 3 view .LVU647
5159
 2161 0018 22F8044B 		strh	r4, [r2], #4	@ movhi
5160
 2162              	.LVL219:
20 mjames 5161
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 87
16 mjames 5162
 
5163
 
5164
2527:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     pdwVal++;
5165
 2163              		.loc 1 2527 5 is_stmt 1 discriminator 3 view .LVU648
5166
2528:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
5167
2529:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** #if PMA_ACCESS > 1U
5168
2530:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     pdwVal++;
5169
 2164              		.loc 1 2530 5 discriminator 3 view .LVU649
5170
2531:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** #endif
5171
2532:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
5172
2533:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     pBuf++;
5173
 2165              		.loc 1 2533 5 discriminator 3 view .LVU650
5174
 2166              		.loc 1 2533 9 is_stmt 0 discriminator 3 view .LVU651
5175
 2167 001c 0231     		adds	r1, r1, #2
5176
 2168              	.LVL220:
5177
2521:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
5178
 2169              		.loc 1 2521 25 discriminator 3 view .LVU652
5179
 2170 001e 013B     		subs	r3, r3, #1
5180
 2171              	.LVL221:
5181
2521:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
5182
 2172              		.loc 1 2521 3 discriminator 3 view .LVU653
5183
 2173 0020 002B     		cmp	r3, #0
5184
 2174 0022 F5D1     		bne	.L78
5185
2534:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5186
2535:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
5187
 2175              		.loc 1 2535 1 view .LVU654
5188
 2176 0024 10BC     		pop	{r4}
5189
 2177              	.LCFI13:
5190
 2178              		.cfi_restore 4
5191
 2179              		.cfi_def_cfa_offset 0
5192
 2180              	.LVL222:
5193
 2181              		.loc 1 2535 1 view .LVU655
5194
 2182 0026 7047     		bx	lr
5195
 2183              	.LVL223:
5196
 2184              	.L82:
5197
 2185              		.loc 1 2535 1 view .LVU656
5198
 2186 0028 7047     		bx	lr
5199
 2187              		.cfi_endproc
5200
 2188              	.LFE93:
5201
 2190              		.section	.text.USB_EPStartXfer,"ax",%progbits
5202
 2191              		.align	1
5203
 2192              		.global	USB_EPStartXfer
5204
 2193              		.syntax unified
5205
 2194              		.thumb
5206
 2195              		.thumb_func
5207
 2196              		.fpu softvfp
5208
 2198              	USB_EPStartXfer:
5209
 2199              	.LVL224:
5210
 2200              	.LFB75:
5211
2117:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t pmabuffer;
5212
 2201              		.loc 1 2117 1 is_stmt 1 view -0
5213
 2202              		.cfi_startproc
5214
 2203              		@ args = 0, pretend = 0, frame = 0
5215
 2204              		@ frame_needed = 0, uses_anonymous_args = 0
5216
2117:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint16_t pmabuffer;
5217
 2205              		.loc 1 2117 1 is_stmt 0 view .LVU658
5218
 2206 0000 70B5     		push	{r4, r5, r6, lr}
5219
 2207              	.LCFI14:
5220
 2208              		.cfi_def_cfa_offset 16
20 mjames 5221
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 88
16 mjames 5222
 
5223
 
5224
 2209              		.cfi_offset 4, -16
5225
 2210              		.cfi_offset 5, -12
5226
 2211              		.cfi_offset 6, -8
5227
 2212              		.cfi_offset 14, -4
5228
2118:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t len;
5229
 2213              		.loc 1 2118 3 is_stmt 1 view .LVU659
5230
2119:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
5231
 2214              		.loc 1 2119 3 view .LVU660
5232
2122:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
5233
 2215              		.loc 1 2122 3 view .LVU661
5234
2122:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
5235
 2216              		.loc 1 2122 9 is_stmt 0 view .LVU662
5236
 2217 0002 4E78     		ldrb	r6, [r1, #1]	@ zero_extendqisi2
5237
2122:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
5238
 2218              		.loc 1 2122 6 view .LVU663
5239
 2219 0004 012E     		cmp	r6, #1
5240
 2220 0006 33D0     		beq	.L124
5241
2166:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5242
 2221              		.loc 1 2166 5 is_stmt 1 view .LVU664
5243
2166:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5244
 2222              		.loc 1 2166 11 is_stmt 0 view .LVU665
5245
 2223 0008 8A69     		ldr	r2, [r1, #24]
5246
2166:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5247
 2224              		.loc 1 2166 26 view .LVU666
5248
 2225 000a 0B69     		ldr	r3, [r1, #16]
5249
2166:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5250
 2226              		.loc 1 2166 8 view .LVU667
5251
 2227 000c 9A42     		cmp	r2, r3
5252
 2228 000e 40F2FC80 		bls	.L105
5253
2168:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       ep->xfer_len -= len;
5254
 2229              		.loc 1 2168 7 is_stmt 1 view .LVU668
5255
 2230              	.LVL225:
5256
2169:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5257
 2231              		.loc 1 2169 7 view .LVU669
5258
2169:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5259
 2232              		.loc 1 2169 20 is_stmt 0 view .LVU670
5260
 2233 0012 D21A     		subs	r2, r2, r3
5261
 2234 0014 8A61     		str	r2, [r1, #24]
5262
 2235              	.L106:
5263
2178:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5264
 2236              		.loc 1 2178 5 is_stmt 1 view .LVU671
5265
2178:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5266
 2237              		.loc 1 2178 11 is_stmt 0 view .LVU672
5267
 2238 0016 0A7B     		ldrb	r2, [r1, #12]	@ zero_extendqisi2
5268
2178:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5269
 2239              		.loc 1 2178 8 view .LVU673
5270
 2240 0018 002A     		cmp	r2, #0
5271
 2241 001a 40F01381 		bne	.L107
5272
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5273
 2242              		.loc 1 2181 7 is_stmt 1 view .LVU674
5274
 2243              	.LBB62:
5275
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5276
 2244              		.loc 1 2181 7 view .LVU675
5277
 2245              	.LVL226:
5278
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5279
 2246              		.loc 1 2181 7 view .LVU676
5280
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
20 mjames 5281
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 89
16 mjames 5282
 
5283
 
5284
 2247              		.loc 1 2181 7 view .LVU677
5285
 2248 001e B0F85020 		ldrh	r2, [r0, #80]
5286
 2249 0022 0244     		add	r2, r2, r0
5287
 2250              	.LVL227:
5288
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5289
 2251              		.loc 1 2181 7 view .LVU678
5290
 2252 0024 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
5291
 2253 0026 02EB0412 		add	r2, r2, r4, lsl #4
5292
 2254              	.LVL228:
5293
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5294
 2255              		.loc 1 2181 7 view .LVU679
5295
 2256              	.LBB63:
5296
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5297
 2257              		.loc 1 2181 7 view .LVU680
5298
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5299
 2258              		.loc 1 2181 7 view .LVU681
5300
 2259 002a 002B     		cmp	r3, #0
5301
 2260 002c 40F0F180 		bne	.L108
5302
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5303
 2261              		.loc 1 2181 7 discriminator 1 view .LVU682
5304
 2262 0030 B2F80C34 		ldrh	r3, [r2, #1036]
5305
 2263              	.LVL229:
5306
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5307
 2264              		.loc 1 2181 7 is_stmt 0 discriminator 1 view .LVU683
5308
 2265 0034 9BB2     		uxth	r3, r3
5309
 2266 0036 23F4F843 		bic	r3, r3, #31744
5310
 2267 003a 9BB2     		uxth	r3, r3
5311
 2268 003c A2F80C34 		strh	r3, [r2, #1036]	@ movhi
5312
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5313
 2269              		.loc 1 2181 7 is_stmt 1 discriminator 1 view .LVU684
5314
 2270 0040 B2F80C34 		ldrh	r3, [r2, #1036]
5315
 2271 0044 43F40043 		orr	r3, r3, #32768
5316
 2272 0048 A2F80C34 		strh	r3, [r2, #1036]	@ movhi
5317
 2273              	.LVL230:
5318
 2274              	.L109:
5319
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5320
 2275              		.loc 1 2181 7 is_stmt 0 discriminator 1 view .LVU685
5321
 2276              	.LBE63:
5322
 2277              	.LBE62:
5323
2189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5324
 2278              		.loc 1 2189 5 is_stmt 1 view .LVU686
5325
 2279              	.LBB65:
5326
2189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5327
 2280              		.loc 1 2189 5 view .LVU687
5328
2189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5329
 2281              		.loc 1 2189 5 view .LVU688
5330
 2282 004c 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
5331
 2283 004e 30F82230 		ldrh	r3, [r0, r2, lsl #2]
5332
 2284 0052 9BB2     		uxth	r3, r3
5333
 2285 0054 23F48043 		bic	r3, r3, #16384
5334
 2286 0058 23F07003 		bic	r3, r3, #112
5335
 2287              	.LVL231:
5336
2189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5337
 2288              		.loc 1 2189 5 view .LVU689
5338
2189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5339
 2289              		.loc 1 2189 5 view .LVU690
5340
2189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
20 mjames 5341
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 90
16 mjames 5342
 
5343
 
5344
 2290              		.loc 1 2189 5 view .LVU691
5345
2189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5346
 2291              		.loc 1 2189 5 view .LVU692
5347
 2292 005c 83F44053 		eor	r3, r3, #12288
5348
 2293              	.LVL232:
5349
2189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5350
 2294              		.loc 1 2189 5 view .LVU693
5351
 2295 0060 43F40043 		orr	r3, r3, #32768
5352
 2296              	.LVL233:
5353
2189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5354
 2297              		.loc 1 2189 5 is_stmt 0 view .LVU694
5355
 2298 0064 43F08003 		orr	r3, r3, #128
5356
 2299 0068 20F82230 		strh	r3, [r0, r2, lsl #2]	@ movhi
5357
 2300              	.LVL234:
5358
 2301              	.L104:
5359
2189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5360
 2302              		.loc 1 2189 5 view .LVU695
5361
 2303              	.LBE65:
5362
2192:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
5363
 2304              		.loc 1 2192 3 is_stmt 1 view .LVU696
5364
2193:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
5365
 2305              		.loc 1 2193 1 is_stmt 0 view .LVU697
5366
 2306 006c 0020     		movs	r0, #0
5367
 2307 006e 70BD     		pop	{r4, r5, r6, pc}
5368
 2308              	.LVL235:
5369
 2309              	.L124:
5370
2125:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5371
 2310              		.loc 1 2125 5 is_stmt 1 view .LVU698
5372
2125:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5373
 2311              		.loc 1 2125 11 is_stmt 0 view .LVU699
5374
 2312 0070 8A69     		ldr	r2, [r1, #24]
5375
2125:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5376
 2313              		.loc 1 2125 26 view .LVU700
5377
 2314 0072 0B69     		ldr	r3, [r1, #16]
5378
2125:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5379
 2315              		.loc 1 2125 8 view .LVU701
5380
 2316 0074 9A42     		cmp	r2, r3
5381
 2317 0076 22D9     		bls	.L85
5382
2127:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       ep->xfer_len -= len;
5383
 2318              		.loc 1 2127 7 is_stmt 1 view .LVU702
5384
 2319              	.LVL236:
5385
2128:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5386
 2320              		.loc 1 2128 7 view .LVU703
5387
2128:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5388
 2321              		.loc 1 2128 20 is_stmt 0 view .LVU704
5389
 2322 0078 D21A     		subs	r2, r2, r3
5390
 2323 007a 8A61     		str	r2, [r1, #24]
5391
 2324              	.L86:
5392
2128:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5393
 2325              		.loc 1 2128 20 view .LVU705
5394
 2326 007c 0C46     		mov	r4, r1
5395
 2327 007e 0546     		mov	r5, r0
5396
2137:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5397
 2328              		.loc 1 2137 5 is_stmt 1 view .LVU706
5398
2137:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5399
 2329              		.loc 1 2137 11 is_stmt 0 view .LVU707
5400
 2330 0080 0A7B     		ldrb	r2, [r1, #12]	@ zero_extendqisi2
20 mjames 5401
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 91
16 mjames 5402
 
5403
 
5404
2137:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     {
5405
 2331              		.loc 1 2137 8 view .LVU708
5406
 2332 0082 02B3     		cbz	r2, .L125
5407
2145:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
5408
 2333              		.loc 1 2145 7 is_stmt 1 view .LVU709
5409
2145:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
5410
 2334              		.loc 1 2145 12 is_stmt 0 view .LVU710
5411
 2335 0084 0A78     		ldrb	r2, [r1]	@ zero_extendqisi2
5412
 2336 0086 30F82210 		ldrh	r1, [r0, r2, lsl #2]
5413
 2337              	.LVL237:
5414
2145:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       {
5415
 2338              		.loc 1 2145 10 view .LVU711
5416
 2339 008a 11F0400F 		tst	r1, #64
5417
 2340 008e 72D0     		beq	.L89
5418
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5419
 2341              		.loc 1 2148 9 is_stmt 1 view .LVU712
5420
 2342              	.LBB66:
5421
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5422
 2343              		.loc 1 2148 9 view .LVU713
5423
 2344              	.LVL238:
5424
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5425
 2345              		.loc 1 2148 9 view .LVU714
5426
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5427
 2346              		.loc 1 2148 9 view .LVU715
5428
 2347 0090 002E     		cmp	r6, #0
5429
 2348 0092 40D1     		bne	.L90
5430
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5431
 2349              		.loc 1 2148 9 discriminator 1 view .LVU716
5432
 2350              	.LBB67:
5433
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5434
 2351              		.loc 1 2148 9 discriminator 1 view .LVU717
5435
 2352              	.LVL239:
5436
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5437
 2353              		.loc 1 2148 9 discriminator 1 view .LVU718
5438
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5439
 2354              		.loc 1 2148 9 discriminator 1 view .LVU719
5440
 2355 0094 B0F85010 		ldrh	r1, [r0, #80]
5441
 2356 0098 0144     		add	r1, r1, r0
5442
 2357              	.LVL240:
5443
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5444
 2358              		.loc 1 2148 9 discriminator 1 view .LVU720
5445
 2359 009a 01EB0212 		add	r2, r1, r2, lsl #4
5446
 2360              	.LVL241:
5447
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5448
 2361              		.loc 1 2148 9 discriminator 1 view .LVU721
5449
 2362              	.LBB68:
5450
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5451
 2363              		.loc 1 2148 9 discriminator 1 view .LVU722
5452
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5453
 2364              		.loc 1 2148 9 discriminator 1 view .LVU723
5454
 2365 009e 0BBB     		cbnz	r3, .L91
5455
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5456
 2366              		.loc 1 2148 9 discriminator 3 view .LVU724
5457
 2367 00a0 B2F80C14 		ldrh	r1, [r2, #1036]
5458
 2368              	.LVL242:
5459
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5460
 2369              		.loc 1 2148 9 is_stmt 0 discriminator 3 view .LVU725
20 mjames 5461
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 92
16 mjames 5462
 
5463
 
5464
 2370 00a4 89B2     		uxth	r1, r1
5465
 2371 00a6 21F4F841 		bic	r1, r1, #31744
5466
 2372 00aa 89B2     		uxth	r1, r1
5467
 2373 00ac A2F80C14 		strh	r1, [r2, #1036]	@ movhi
5468
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5469
 2374              		.loc 1 2148 9 is_stmt 1 discriminator 3 view .LVU726
5470
 2375 00b0 B2F80C14 		ldrh	r1, [r2, #1036]
5471
 2376 00b4 41F40041 		orr	r1, r1, #32768
5472
 2377 00b8 A2F80C14 		strh	r1, [r2, #1036]	@ movhi
5473
 2378 00bc 33E0     		b	.L92
5474
 2379              	.LVL243:
5475
 2380              	.L85:
5476
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5477
 2381              		.loc 1 2148 9 is_stmt 0 discriminator 3 view .LVU727
5478
 2382              	.LBE68:
5479
 2383              	.LBE67:
5480
 2384              	.LBE66:
5481
2132:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       ep->xfer_len = 0U;
5482
 2385              		.loc 1 2132 7 is_stmt 1 view .LVU728
5483
2133:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5484
 2386              		.loc 1 2133 7 view .LVU729
5485
2133:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5486
 2387              		.loc 1 2133 20 is_stmt 0 view .LVU730
5487
 2388 00be 0023     		movs	r3, #0
5488
 2389 00c0 8B61     		str	r3, [r1, #24]
5489
2132:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       ep->xfer_len = 0U;
5490
 2390              		.loc 1 2132 11 view .LVU731
5491
 2391 00c2 1346     		mov	r3, r2
5492
 2392 00c4 DAE7     		b	.L86
5493
 2393              	.LVL244:
5494
 2394              	.L125:
5495
2139:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_CNT(USBx, ep->num, len);
5496
 2395              		.loc 1 2139 7 is_stmt 1 view .LVU732
5497
 2396 00c6 9EB2     		uxth	r6, r3
5498
 2397 00c8 3346     		mov	r3, r6
5499
 2398              	.LVL245:
5500
2139:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_CNT(USBx, ep->num, len);
5501
 2399              		.loc 1 2139 7 is_stmt 0 view .LVU733
5502
 2400 00ca CA88     		ldrh	r2, [r1, #6]
5503
 2401 00cc 4969     		ldr	r1, [r1, #20]
5504
 2402              	.LVL246:
5505
2139:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_SET_EP_TX_CNT(USBx, ep->num, len);
5506
 2403              		.loc 1 2139 7 view .LVU734
5507
 2404 00ce FFF7FEFF 		bl	USB_WritePMA
5508
 2405              	.LVL247:
5509
2140:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5510
 2406              		.loc 1 2140 7 is_stmt 1 view .LVU735
5511
 2407              	.LBB71:
5512
2140:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5513
 2408              		.loc 1 2140 7 view .LVU736
5514
2140:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5515
 2409              		.loc 1 2140 7 view .LVU737
5516
2140:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5517
 2410              		.loc 1 2140 7 view .LVU738
5518
 2411 00d2 B5F85030 		ldrh	r3, [r5, #80]
5519
 2412 00d6 2B44     		add	r3, r3, r5
5520
 2413              	.LVL248:
20 mjames 5521
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 93
16 mjames 5522
 
5523
 
5524
2140:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5525
 2414              		.loc 1 2140 7 view .LVU739
5526
 2415 00d8 2278     		ldrb	r2, [r4]	@ zero_extendqisi2
5527
 2416 00da 03EB0213 		add	r3, r3, r2, lsl #4
5528
 2417              	.LVL249:
5529
2140:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5530
 2418              		.loc 1 2140 7 view .LVU740
5531
 2419 00de A3F80464 		strh	r6, [r3, #1028]	@ movhi
5532
 2420              	.LBE71:
5533
 2421 00e2 37E0     		b	.L88
5534
 2422              	.LVL250:
5535
 2423              	.L91:
5536
 2424              	.LBB72:
5537
 2425              	.LBB70:
5538
 2426              	.LBB69:
5539
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5540
 2427              		.loc 1 2148 9 discriminator 4 view .LVU741
5541
 2428 00e4 3E2B     		cmp	r3, #62
5542
 2429 00e6 09D8     		bhi	.L93
5543
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5544
 2430              		.loc 1 2148 9 discriminator 5 view .LVU742
5545
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5546
 2431              		.loc 1 2148 9 discriminator 5 view .LVU743
5547
 2432 00e8 5908     		lsrs	r1, r3, #1
5548
 2433              	.LVL251:
5549
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5550
 2434              		.loc 1 2148 9 discriminator 5 view .LVU744
5551
 2435 00ea 13F0010F 		tst	r3, #1
5552
 2436 00ee 00D0     		beq	.L94
5553
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5554
 2437              		.loc 1 2148 9 discriminator 7 view .LVU745
5555
 2438 00f0 0131     		adds	r1, r1, #1
5556
 2439              	.LVL252:
5557
 2440              	.L94:
5558
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5559
 2441              		.loc 1 2148 9 discriminator 9 view .LVU746
5560
 2442 00f2 8902     		lsls	r1, r1, #10
5561
 2443              	.LVL253:
5562
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5563
 2444              		.loc 1 2148 9 is_stmt 0 discriminator 9 view .LVU747
5564
 2445 00f4 89B2     		uxth	r1, r1
5565
 2446 00f6 A2F80C14 		strh	r1, [r2, #1036]	@ movhi
5566
 2447 00fa 14E0     		b	.L92
5567
 2448              	.LVL254:
5568
 2449              	.L93:
5569
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5570
 2450              		.loc 1 2148 9 is_stmt 1 discriminator 6 view .LVU748
5571
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5572
 2451              		.loc 1 2148 9 discriminator 6 view .LVU749
5573
 2452 00fc 5909     		lsrs	r1, r3, #5
5574
 2453              	.LVL255:
5575
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5576
 2454              		.loc 1 2148 9 discriminator 6 view .LVU750
5577
 2455 00fe 13F01F0F 		tst	r3, #31
5578
 2456 0102 00D1     		bne	.L95
5579
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5580
 2457              		.loc 1 2148 9 discriminator 10 view .LVU751
20 mjames 5581
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 94
16 mjames 5582
 
5583
 
5584
 2458 0104 0139     		subs	r1, r1, #1
5585
 2459              	.LVL256:
5586
 2460              	.L95:
5587
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5588
 2461              		.loc 1 2148 9 discriminator 12 view .LVU752
5589
 2462 0106 6FEAC161 		mvn	r1, r1, lsl #27
5590
 2463              	.LVL257:
5591
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5592
 2464              		.loc 1 2148 9 is_stmt 0 discriminator 12 view .LVU753
5593
 2465 010a 6FEA5141 		mvn	r1, r1, lsr #17
5594
 2466 010e 89B2     		uxth	r1, r1
5595
 2467 0110 A2F80C14 		strh	r1, [r2, #1036]	@ movhi
5596
 2468 0114 07E0     		b	.L92
5597
 2469              	.LVL258:
5598
 2470              	.L90:
5599
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5600
 2471              		.loc 1 2148 9 discriminator 12 view .LVU754
5601
 2472              	.LBE69:
5602
 2473              	.LBE70:
5603
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5604
 2474              		.loc 1 2148 9 is_stmt 1 discriminator 13 view .LVU755
5605
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5606
 2475              		.loc 1 2148 9 discriminator 13 view .LVU756
5607
 2476 0116 B0F85010 		ldrh	r1, [r0, #80]
5608
 2477 011a 0144     		add	r1, r1, r0
5609
 2478              	.LVL259:
5610
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5611
 2479              		.loc 1 2148 9 discriminator 13 view .LVU757
5612
 2480 011c 01EB0212 		add	r2, r1, r2, lsl #4
5613
 2481              	.LVL260:
5614
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5615
 2482              		.loc 1 2148 9 discriminator 13 view .LVU758
5616
 2483 0120 99B2     		uxth	r1, r3
5617
 2484              	.LVL261:
5618
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5619
 2485              		.loc 1 2148 9 is_stmt 0 discriminator 13 view .LVU759
5620
 2486 0122 A2F80C14 		strh	r1, [r2, #1036]	@ movhi
5621
 2487              	.LVL262:
5622
 2488              	.L92:
5623
2148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr1;
5624
 2489              		.loc 1 2148 9 discriminator 13 view .LVU760
5625
 2490              	.LBE72:
5626
2149:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
5627
 2491              		.loc 1 2149 9 is_stmt 1 view .LVU761
5628
2149:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
5629
 2492              		.loc 1 2149 19 is_stmt 0 view .LVU762
5630
 2493 0126 6289     		ldrh	r2, [r4, #10]
5631
 2494              	.LVL263:
5632
 2495              	.L96:
5633
2157:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_FreeUserBuffer(USBx, ep->num, ep->is_in);
5634
 2496              		.loc 1 2157 7 is_stmt 1 view .LVU763
5635
 2497 0128 9BB2     		uxth	r3, r3
5636
 2498              	.LVL264:
5637
2157:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_FreeUserBuffer(USBx, ep->num, ep->is_in);
5638
 2499              		.loc 1 2157 7 is_stmt 0 view .LVU764
5639
 2500 012a 6169     		ldr	r1, [r4, #20]
5640
 2501 012c 2846     		mov	r0, r5
20 mjames 5641
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 95
16 mjames 5642
 
5643
 
5644
 2502              	.LVL265:
5645
2157:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       PCD_FreeUserBuffer(USBx, ep->num, ep->is_in);
5646
 2503              		.loc 1 2157 7 view .LVU765
5647
 2504 012e FFF7FEFF 		bl	USB_WritePMA
5648
 2505              	.LVL266:
5649
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5650
 2506              		.loc 1 2158 7 is_stmt 1 view .LVU766
5651
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5652
 2507              		.loc 1 2158 7 view .LVU767
5653
 2508 0132 6378     		ldrb	r3, [r4, #1]	@ zero_extendqisi2
5654
 2509 0134 002B     		cmp	r3, #0
5655
 2510 0136 57D1     		bne	.L103
5656
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5657
 2511              		.loc 1 2158 7 discriminator 1 view .LVU768
5658
 2512              	.LBB73:
5659
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5660
 2513              		.loc 1 2158 7 discriminator 1 view .LVU769
5661
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5662
 2514              		.loc 1 2158 7 discriminator 1 view .LVU770
5663
 2515 0138 2278     		ldrb	r2, [r4]	@ zero_extendqisi2
5664
 2516 013a 35F82230 		ldrh	r3, [r5, r2, lsl #2]
5665
 2517 013e 9BB2     		uxth	r3, r3
5666
 2518 0140 23F4E043 		bic	r3, r3, #28672
5667
 2519 0144 23F07003 		bic	r3, r3, #112
5668
 2520              	.LVL267:
5669
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5670
 2521              		.loc 1 2158 7 discriminator 1 view .LVU771
5671
 2522 0148 43F40043 		orr	r3, r3, #32768
5672
 2523              	.LVL268:
5673
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5674
 2524              		.loc 1 2158 7 is_stmt 0 discriminator 1 view .LVU772
5675
 2525 014c 43F0C003 		orr	r3, r3, #192
5676
 2526 0150 25F82230 		strh	r3, [r5, r2, lsl #2]	@ movhi
5677
 2527              	.L88:
5678
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5679
 2528              		.loc 1 2158 7 discriminator 1 view .LVU773
5680
 2529              	.LBE73:
5681
2161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5682
 2530              		.loc 1 2161 5 is_stmt 1 view .LVU774
5683
 2531              	.LBB74:
5684
2161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5685
 2532              		.loc 1 2161 5 view .LVU775
5686
2161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5687
 2533              		.loc 1 2161 5 view .LVU776
5688
 2534 0154 2278     		ldrb	r2, [r4]	@ zero_extendqisi2
5689
 2535 0156 35F82230 		ldrh	r3, [r5, r2, lsl #2]
5690
 2536 015a 9BB2     		uxth	r3, r3
5691
 2537 015c 23F4E043 		bic	r3, r3, #28672
5692
 2538 0160 23F04003 		bic	r3, r3, #64
5693
 2539              	.LVL269:
5694
2161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5695
 2540              		.loc 1 2161 5 view .LVU777
5696
2161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5697
 2541              		.loc 1 2161 5 view .LVU778
5698
2161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5699
 2542              		.loc 1 2161 5 view .LVU779
5700
2161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
20 mjames 5701
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 96
16 mjames 5702
 
5703
 
5704
 2543              		.loc 1 2161 5 view .LVU780
5705
 2544 0164 83F03003 		eor	r3, r3, #48
5706
 2545              	.LVL270:
5707
2161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5708
 2546              		.loc 1 2161 5 view .LVU781
5709
 2547 0168 43F40043 		orr	r3, r3, #32768
5710
 2548              	.LVL271:
5711
2161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
5712
 2549              		.loc 1 2161 5 is_stmt 0 view .LVU782
5713
 2550 016c 43F08003 		orr	r3, r3, #128
5714
 2551 0170 25F82230 		strh	r3, [r5, r2, lsl #2]	@ movhi
5715
 2552              	.LBE74:
5716
 2553 0174 7AE7     		b	.L104
5717
 2554              	.LVL272:
5718
 2555              	.L89:
5719
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5720
 2556              		.loc 1 2154 9 is_stmt 1 view .LVU783
5721
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5722
 2557              		.loc 1 2154 9 view .LVU784
5723
 2558 0176 6EBB     		cbnz	r6, .L97
5724
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5725
 2559              		.loc 1 2154 9 discriminator 1 view .LVU785
5726
 2560              	.LBB75:
5727
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5728
 2561              		.loc 1 2154 9 discriminator 1 view .LVU786
5729
 2562              	.LVL273:
5730
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5731
 2563              		.loc 1 2154 9 discriminator 1 view .LVU787
5732
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5733
 2564              		.loc 1 2154 9 discriminator 1 view .LVU788
5734
 2565 0178 B0F85010 		ldrh	r1, [r0, #80]
5735
 2566 017c 0144     		add	r1, r1, r0
5736
 2567              	.LVL274:
5737
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5738
 2568              		.loc 1 2154 9 discriminator 1 view .LVU789
5739
 2569 017e 01EB0212 		add	r2, r1, r2, lsl #4
5740
 2570              	.LVL275:
5741
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5742
 2571              		.loc 1 2154 9 discriminator 1 view .LVU790
5743
 2572              	.LBB76:
5744
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5745
 2573              		.loc 1 2154 9 discriminator 1 view .LVU791
5746
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5747
 2574              		.loc 1 2154 9 discriminator 1 view .LVU792
5748
 2575 0182 73B9     		cbnz	r3, .L98
5749
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5750
 2576              		.loc 1 2154 9 discriminator 3 view .LVU793
5751
 2577 0184 B2F80414 		ldrh	r1, [r2, #1028]
5752
 2578              	.LVL276:
5753
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5754
 2579              		.loc 1 2154 9 is_stmt 0 discriminator 3 view .LVU794
5755
 2580 0188 89B2     		uxth	r1, r1
5756
 2581 018a 21F4F841 		bic	r1, r1, #31744
5757
 2582 018e 89B2     		uxth	r1, r1
5758
 2583 0190 A2F80414 		strh	r1, [r2, #1028]	@ movhi
5759
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5760
 2584              		.loc 1 2154 9 is_stmt 1 discriminator 3 view .LVU795
20 mjames 5761
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 97
16 mjames 5762
 
5763
 
5764
 2585 0194 B2F80414 		ldrh	r1, [r2, #1028]
5765
 2586 0198 41F40041 		orr	r1, r1, #32768
5766
 2587 019c A2F80414 		strh	r1, [r2, #1028]	@ movhi
5767
 2588 01a0 20E0     		b	.L99
5768
 2589              	.LVL277:
5769
 2590              	.L98:
5770
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5771
 2591              		.loc 1 2154 9 discriminator 4 view .LVU796
5772
 2592 01a2 3E2B     		cmp	r3, #62
5773
 2593 01a4 09D8     		bhi	.L100
5774
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5775
 2594              		.loc 1 2154 9 discriminator 5 view .LVU797
5776
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5777
 2595              		.loc 1 2154 9 discriminator 5 view .LVU798
5778
 2596 01a6 5908     		lsrs	r1, r3, #1
5779
 2597              	.LVL278:
5780
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5781
 2598              		.loc 1 2154 9 discriminator 5 view .LVU799
5782
 2599 01a8 13F0010F 		tst	r3, #1
5783
 2600 01ac 00D0     		beq	.L101
5784
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5785
 2601              		.loc 1 2154 9 discriminator 7 view .LVU800
5786
 2602 01ae 0131     		adds	r1, r1, #1
5787
 2603              	.LVL279:
5788
 2604              	.L101:
5789
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5790
 2605              		.loc 1 2154 9 discriminator 9 view .LVU801
5791
 2606 01b0 8902     		lsls	r1, r1, #10
5792
 2607              	.LVL280:
5793
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5794
 2608              		.loc 1 2154 9 is_stmt 0 discriminator 9 view .LVU802
5795
 2609 01b2 89B2     		uxth	r1, r1
5796
 2610 01b4 A2F80414 		strh	r1, [r2, #1028]	@ movhi
5797
 2611 01b8 14E0     		b	.L99
5798
 2612              	.LVL281:
5799
 2613              	.L100:
5800
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5801
 2614              		.loc 1 2154 9 is_stmt 1 discriminator 6 view .LVU803
5802
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5803
 2615              		.loc 1 2154 9 discriminator 6 view .LVU804
5804
 2616 01ba 5909     		lsrs	r1, r3, #5
5805
 2617              	.LVL282:
5806
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5807
 2618              		.loc 1 2154 9 discriminator 6 view .LVU805
5808
 2619 01bc 13F01F0F 		tst	r3, #31
5809
 2620 01c0 00D1     		bne	.L102
5810
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5811
 2621              		.loc 1 2154 9 discriminator 10 view .LVU806
5812
 2622 01c2 0139     		subs	r1, r1, #1
5813
 2623              	.LVL283:
5814
 2624              	.L102:
5815
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5816
 2625              		.loc 1 2154 9 discriminator 12 view .LVU807
5817
 2626 01c4 6FEAC161 		mvn	r1, r1, lsl #27
5818
 2627              	.LVL284:
5819
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5820
 2628              		.loc 1 2154 9 is_stmt 0 discriminator 12 view .LVU808
20 mjames 5821
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 98
16 mjames 5822
 
5823
 
5824
 2629 01c8 6FEA5141 		mvn	r1, r1, lsr #17
5825
 2630 01cc 89B2     		uxth	r1, r1
5826
 2631 01ce A2F80414 		strh	r1, [r2, #1028]	@ movhi
5827
 2632 01d2 07E0     		b	.L99
5828
 2633              	.LVL285:
5829
 2634              	.L97:
5830
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5831
 2635              		.loc 1 2154 9 discriminator 12 view .LVU809
5832
 2636              	.LBE76:
5833
 2637              	.LBE75:
5834
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5835
 2638              		.loc 1 2154 9 is_stmt 1 discriminator 13 view .LVU810
5836
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5837
 2639              		.loc 1 2154 9 discriminator 13 view .LVU811
5838
 2640              	.LBB77:
5839
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5840
 2641              		.loc 1 2154 9 discriminator 13 view .LVU812
5841
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5842
 2642              		.loc 1 2154 9 discriminator 13 view .LVU813
5843
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5844
 2643              		.loc 1 2154 9 discriminator 13 view .LVU814
5845
 2644 01d4 B0F85010 		ldrh	r1, [r0, #80]
5846
 2645 01d8 0144     		add	r1, r1, r0
5847
 2646              	.LVL286:
5848
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5849
 2647              		.loc 1 2154 9 discriminator 13 view .LVU815
5850
 2648 01da 01EB0212 		add	r2, r1, r2, lsl #4
5851
 2649              	.LVL287:
5852
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5853
 2650              		.loc 1 2154 9 discriminator 13 view .LVU816
5854
 2651 01de 99B2     		uxth	r1, r3
5855
 2652              	.LVL288:
5856
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5857
 2653              		.loc 1 2154 9 is_stmt 0 discriminator 13 view .LVU817
5858
 2654 01e0 A2F80414 		strh	r1, [r2, #1028]	@ movhi
5859
 2655              	.LVL289:
5860
 2656              	.L99:
5861
2154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****         pmabuffer = ep->pmaaddr0;
5862
 2657              		.loc 1 2154 9 discriminator 13 view .LVU818
5863
 2658              	.LBE77:
5864
2155:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
5865
 2659              		.loc 1 2155 9 is_stmt 1 view .LVU819
5866
2155:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
5867
 2660              		.loc 1 2155 19 is_stmt 0 view .LVU820
5868
 2661 01e4 2289     		ldrh	r2, [r4, #8]
5869
 2662              	.LVL290:
5870
2155:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       }
5871
 2663              		.loc 1 2155 19 view .LVU821
5872
 2664 01e6 9FE7     		b	.L96
5873
 2665              	.LVL291:
5874
 2666              	.L103:
5875
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5876
 2667              		.loc 1 2158 7 is_stmt 1 discriminator 2 view .LVU822
5877
 2668 01e8 012B     		cmp	r3, #1
5878
 2669 01ea B3D1     		bne	.L88
5879
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5880
 2670              		.loc 1 2158 7 discriminator 3 view .LVU823
20 mjames 5881
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 99
16 mjames 5882
 
5883
 
5884
 2671              	.LBB78:
5885
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5886
 2672              		.loc 1 2158 7 discriminator 3 view .LVU824
5887
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5888
 2673              		.loc 1 2158 7 discriminator 3 view .LVU825
5889
 2674 01ec 2278     		ldrb	r2, [r4]	@ zero_extendqisi2
5890
 2675 01ee 35F82230 		ldrh	r3, [r5, r2, lsl #2]
5891
 2676 01f2 9BB2     		uxth	r3, r3
5892
 2677 01f4 23F4E043 		bic	r3, r3, #28672
5893
 2678 01f8 23F07003 		bic	r3, r3, #112
5894
 2679              	.LVL292:
5895
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5896
 2680              		.loc 1 2158 7 discriminator 3 view .LVU826
5897
 2681 01fc 43F44043 		orr	r3, r3, #49152
5898
 2682              	.LVL293:
5899
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5900
 2683              		.loc 1 2158 7 is_stmt 0 discriminator 3 view .LVU827
5901
 2684 0200 43F08003 		orr	r3, r3, #128
5902
 2685 0204 25F82230 		strh	r3, [r5, r2, lsl #2]	@ movhi
5903
 2686 0208 A4E7     		b	.L88
5904
 2687              	.LVL294:
5905
 2688              	.L105:
5906
2158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5907
 2689              		.loc 1 2158 7 discriminator 3 view .LVU828
5908
 2690              	.LBE78:
5909
2173:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       ep->xfer_len = 0U;
5910
 2691              		.loc 1 2173 7 is_stmt 1 view .LVU829
5911
2174:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5912
 2692              		.loc 1 2174 7 view .LVU830
5913
2174:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5914
 2693              		.loc 1 2174 20 is_stmt 0 view .LVU831
5915
 2694 020a 0023     		movs	r3, #0
5916
 2695 020c 8B61     		str	r3, [r1, #24]
5917
2173:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****       ep->xfer_len = 0U;
5918
 2696              		.loc 1 2173 11 view .LVU832
5919
 2697 020e 1346     		mov	r3, r2
5920
 2698 0210 01E7     		b	.L106
5921
 2699              	.LVL295:
5922
 2700              	.L108:
5923
 2701              	.LBB79:
5924
 2702              	.LBB64:
5925
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5926
 2703              		.loc 1 2181 7 is_stmt 1 discriminator 2 view .LVU833
5927
 2704 0212 3E2B     		cmp	r3, #62
5928
 2705 0214 09D8     		bhi	.L110
5929
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5930
 2706              		.loc 1 2181 7 discriminator 3 view .LVU834
5931
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5932
 2707              		.loc 1 2181 7 discriminator 3 view .LVU835
5933
 2708 0216 5C08     		lsrs	r4, r3, #1
5934
 2709              	.LVL296:
5935
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5936
 2710              		.loc 1 2181 7 discriminator 3 view .LVU836
5937
 2711 0218 13F0010F 		tst	r3, #1
5938
 2712 021c 00D0     		beq	.L111
5939
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5940
 2713              		.loc 1 2181 7 discriminator 5 view .LVU837
20 mjames 5941
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 100
16 mjames 5942
 
5943
 
5944
 2714 021e 0134     		adds	r4, r4, #1
5945
 2715              	.LVL297:
5946
 2716              	.L111:
5947
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5948
 2717              		.loc 1 2181 7 discriminator 7 view .LVU838
5949
 2718 0220 A402     		lsls	r4, r4, #10
5950
 2719              	.LVL298:
5951
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5952
 2720              		.loc 1 2181 7 is_stmt 0 discriminator 7 view .LVU839
5953
 2721 0222 A4B2     		uxth	r4, r4
5954
 2722 0224 A2F80C44 		strh	r4, [r2, #1036]	@ movhi
5955
 2723 0228 10E7     		b	.L109
5956
 2724              	.L110:
5957
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5958
 2725              		.loc 1 2181 7 is_stmt 1 discriminator 4 view .LVU840
5959
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5960
 2726              		.loc 1 2181 7 discriminator 4 view .LVU841
5961
 2727 022a 5C09     		lsrs	r4, r3, #5
5962
 2728              	.LVL299:
5963
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5964
 2729              		.loc 1 2181 7 discriminator 4 view .LVU842
5965
 2730 022c 13F01F0F 		tst	r3, #31
5966
 2731 0230 00D1     		bne	.L112
5967
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5968
 2732              		.loc 1 2181 7 discriminator 8 view .LVU843
5969
 2733 0232 013C     		subs	r4, r4, #1
5970
 2734              	.LVL300:
5971
 2735              	.L112:
5972
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5973
 2736              		.loc 1 2181 7 discriminator 10 view .LVU844
5974
 2737 0234 6FEAC464 		mvn	r4, r4, lsl #27
5975
 2738              	.LVL301:
5976
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5977
 2739              		.loc 1 2181 7 is_stmt 0 discriminator 10 view .LVU845
5978
 2740 0238 6FEA5444 		mvn	r4, r4, lsr #17
5979
 2741 023c A4B2     		uxth	r4, r4
5980
 2742 023e A2F80C44 		strh	r4, [r2, #1036]	@ movhi
5981
 2743 0242 03E7     		b	.L109
5982
 2744              	.LVL302:
5983
 2745              	.L107:
5984
2181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5985
 2746              		.loc 1 2181 7 discriminator 10 view .LVU846
5986
 2747              	.LBE64:
5987
 2748              	.LBE79:
5988
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5989
 2749              		.loc 1 2186 7 is_stmt 1 view .LVU847
5990
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5991
 2750              		.loc 1 2186 7 view .LVU848
5992
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5993
 2751              		.loc 1 2186 7 view .LVU849
5994
 2752 0244 A6B9     		cbnz	r6, .L113
5995
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5996
 2753              		.loc 1 2186 7 discriminator 1 view .LVU850
5997
 2754              	.LBB80:
5998
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
5999
 2755              		.loc 1 2186 7 discriminator 1 view .LVU851
6000
 2756              	.LVL303:
20 mjames 6001
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 101
16 mjames 6002
 
6003
 
6004
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6005
 2757              		.loc 1 2186 7 discriminator 1 view .LVU852
6006
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6007
 2758              		.loc 1 2186 7 discriminator 1 view .LVU853
6008
 2759 0246 B0F85020 		ldrh	r2, [r0, #80]
6009
 2760 024a 0244     		add	r2, r2, r0
6010
 2761              	.LVL304:
6011
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6012
 2762              		.loc 1 2186 7 discriminator 1 view .LVU854
6013
 2763 024c 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
6014
 2764 024e 02EB0412 		add	r2, r2, r4, lsl #4
6015
 2765              	.LVL305:
6016
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6017
 2766              		.loc 1 2186 7 discriminator 1 view .LVU855
6018
 2767              	.LBB81:
6019
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6020
 2768              		.loc 1 2186 7 discriminator 1 view .LVU856
6021
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6022
 2769              		.loc 1 2186 7 discriminator 1 view .LVU857
6023
 2770 0252 33BB     		cbnz	r3, .L114
6024
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6025
 2771              		.loc 1 2186 7 discriminator 3 view .LVU858
6026
 2772 0254 B2F80444 		ldrh	r4, [r2, #1028]
6027
 2773 0258 A4B2     		uxth	r4, r4
6028
 2774 025a 24F4F844 		bic	r4, r4, #31744
6029
 2775 025e A4B2     		uxth	r4, r4
6030
 2776 0260 A2F80444 		strh	r4, [r2, #1028]	@ movhi
6031
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6032
 2777              		.loc 1 2186 7 discriminator 3 view .LVU859
6033
 2778 0264 B2F80444 		ldrh	r4, [r2, #1028]
6034
 2779 0268 44F40044 		orr	r4, r4, #32768
6035
 2780 026c A2F80444 		strh	r4, [r2, #1028]	@ movhi
6036
 2781              	.LVL306:
6037
 2782              	.L113:
6038
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6039
 2783              		.loc 1 2186 7 is_stmt 0 discriminator 3 view .LVU860
6040
 2784              	.LBE81:
6041
 2785              	.LBE80:
6042
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6043
 2786              		.loc 1 2186 7 is_stmt 1 discriminator 15 view .LVU861
6044
 2787              	.LBB83:
6045
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6046
 2788              		.loc 1 2186 7 discriminator 15 view .LVU862
6047
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6048
 2789              		.loc 1 2186 7 discriminator 15 view .LVU863
6049
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6050
 2790              		.loc 1 2186 7 discriminator 15 view .LVU864
6051
 2791 0270 4A78     		ldrb	r2, [r1, #1]	@ zero_extendqisi2
6052
 2792 0272 002A     		cmp	r2, #0
6053
 2793 0274 47D1     		bne	.L118
6054
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6055
 2794              		.loc 1 2186 7 discriminator 16 view .LVU865
6056
 2795              	.LBB84:
6057
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6058
 2796              		.loc 1 2186 7 discriminator 16 view .LVU866
6059
 2797              	.LVL307:
6060
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
20 mjames 6061
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 102
16 mjames 6062
 
6063
 
6064
 2798              		.loc 1 2186 7 discriminator 16 view .LVU867
6065
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6066
 2799              		.loc 1 2186 7 discriminator 16 view .LVU868
6067
 2800 0276 B0F85020 		ldrh	r2, [r0, #80]
6068
 2801 027a 0244     		add	r2, r2, r0
6069
 2802              	.LVL308:
6070
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6071
 2803              		.loc 1 2186 7 discriminator 16 view .LVU869
6072
 2804 027c 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
6073
 2805 027e 02EB0412 		add	r2, r2, r4, lsl #4
6074
 2806              	.LVL309:
6075
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6076
 2807              		.loc 1 2186 7 discriminator 16 view .LVU870
6077
 2808              	.LBB85:
6078
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6079
 2809              		.loc 1 2186 7 discriminator 16 view .LVU871
6080
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6081
 2810              		.loc 1 2186 7 discriminator 16 view .LVU872
6082
 2811 0282 3BBB     		cbnz	r3, .L119
6083
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6084
 2812              		.loc 1 2186 7 discriminator 18 view .LVU873
6085
 2813 0284 B2F80C34 		ldrh	r3, [r2, #1036]
6086
 2814              	.LVL310:
6087
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6088
 2815              		.loc 1 2186 7 is_stmt 0 discriminator 18 view .LVU874
6089
 2816 0288 9BB2     		uxth	r3, r3
6090
 2817 028a 23F4F843 		bic	r3, r3, #31744
6091
 2818 028e 9BB2     		uxth	r3, r3
6092
 2819 0290 A2F80C34 		strh	r3, [r2, #1036]	@ movhi
6093
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6094
 2820              		.loc 1 2186 7 is_stmt 1 discriminator 18 view .LVU875
6095
 2821 0294 B2F80C34 		ldrh	r3, [r2, #1036]
6096
 2822 0298 43F40043 		orr	r3, r3, #32768
6097
 2823 029c A2F80C34 		strh	r3, [r2, #1036]	@ movhi
6098
 2824 02a0 D4E6     		b	.L109
6099
 2825              	.LVL311:
6100
 2826              	.L114:
6101
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6102
 2827              		.loc 1 2186 7 is_stmt 0 discriminator 18 view .LVU876
6103
 2828              	.LBE85:
6104
 2829              	.LBE84:
6105
 2830              	.LBE83:
6106
 2831              	.LBB88:
6107
 2832              	.LBB82:
6108
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6109
 2833              		.loc 1 2186 7 is_stmt 1 discriminator 4 view .LVU877
6110
 2834 02a2 3E2B     		cmp	r3, #62
6111
 2835 02a4 09D8     		bhi	.L115
6112
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6113
 2836              		.loc 1 2186 7 discriminator 5 view .LVU878
6114
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6115
 2837              		.loc 1 2186 7 discriminator 5 view .LVU879
6116
 2838 02a6 5C08     		lsrs	r4, r3, #1
6117
 2839              	.LVL312:
6118
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6119
 2840              		.loc 1 2186 7 discriminator 5 view .LVU880
6120
 2841 02a8 13F0010F 		tst	r3, #1
20 mjames 6121
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 103
16 mjames 6122
 
6123
 
6124
 2842 02ac 00D0     		beq	.L116
6125
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6126
 2843              		.loc 1 2186 7 discriminator 7 view .LVU881
6127
 2844 02ae 0134     		adds	r4, r4, #1
6128
 2845              	.LVL313:
6129
 2846              	.L116:
6130
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6131
 2847              		.loc 1 2186 7 discriminator 9 view .LVU882
6132
 2848 02b0 A402     		lsls	r4, r4, #10
6133
 2849              	.LVL314:
6134
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6135
 2850              		.loc 1 2186 7 is_stmt 0 discriminator 9 view .LVU883
6136
 2851 02b2 A4B2     		uxth	r4, r4
6137
 2852 02b4 A2F80444 		strh	r4, [r2, #1028]	@ movhi
6138
 2853 02b8 DAE7     		b	.L113
6139
 2854              	.L115:
6140
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6141
 2855              		.loc 1 2186 7 is_stmt 1 discriminator 6 view .LVU884
6142
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6143
 2856              		.loc 1 2186 7 discriminator 6 view .LVU885
6144
 2857 02ba 5C09     		lsrs	r4, r3, #5
6145
 2858              	.LVL315:
6146
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6147
 2859              		.loc 1 2186 7 discriminator 6 view .LVU886
6148
 2860 02bc 13F01F0F 		tst	r3, #31
6149
 2861 02c0 00D1     		bne	.L117
6150
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6151
 2862              		.loc 1 2186 7 discriminator 10 view .LVU887
6152
 2863 02c2 013C     		subs	r4, r4, #1
6153
 2864              	.LVL316:
6154
 2865              	.L117:
6155
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6156
 2866              		.loc 1 2186 7 discriminator 12 view .LVU888
6157
 2867 02c4 6FEAC464 		mvn	r4, r4, lsl #27
6158
 2868              	.LVL317:
6159
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6160
 2869              		.loc 1 2186 7 is_stmt 0 discriminator 12 view .LVU889
6161
 2870 02c8 6FEA5444 		mvn	r4, r4, lsr #17
6162
 2871 02cc A4B2     		uxth	r4, r4
6163
 2872 02ce A2F80444 		strh	r4, [r2, #1028]	@ movhi
6164
 2873 02d2 CDE7     		b	.L113
6165
 2874              	.LVL318:
6166
 2875              	.L119:
6167
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6168
 2876              		.loc 1 2186 7 discriminator 12 view .LVU890
6169
 2877              	.LBE82:
6170
 2878              	.LBE88:
6171
 2879              	.LBB89:
6172
 2880              	.LBB87:
6173
 2881              	.LBB86:
6174
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6175
 2882              		.loc 1 2186 7 is_stmt 1 discriminator 19 view .LVU891
6176
 2883 02d4 3E2B     		cmp	r3, #62
6177
 2884 02d6 09D8     		bhi	.L120
6178
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6179
 2885              		.loc 1 2186 7 discriminator 20 view .LVU892
6180
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
20 mjames 6181
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 104
16 mjames 6182
 
6183
 
6184
 2886              		.loc 1 2186 7 discriminator 20 view .LVU893
6185
 2887 02d8 5C08     		lsrs	r4, r3, #1
6186
 2888              	.LVL319:
6187
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6188
 2889              		.loc 1 2186 7 discriminator 20 view .LVU894
6189
 2890 02da 13F0010F 		tst	r3, #1
6190
 2891 02de 00D0     		beq	.L121
6191
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6192
 2892              		.loc 1 2186 7 discriminator 22 view .LVU895
6193
 2893 02e0 0134     		adds	r4, r4, #1
6194
 2894              	.LVL320:
6195
 2895              	.L121:
6196
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6197
 2896              		.loc 1 2186 7 discriminator 24 view .LVU896
6198
 2897 02e2 A402     		lsls	r4, r4, #10
6199
 2898              	.LVL321:
6200
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6201
 2899              		.loc 1 2186 7 is_stmt 0 discriminator 24 view .LVU897
6202
 2900 02e4 A4B2     		uxth	r4, r4
6203
 2901 02e6 A2F80C44 		strh	r4, [r2, #1036]	@ movhi
6204
 2902 02ea AFE6     		b	.L109
6205
 2903              	.L120:
6206
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6207
 2904              		.loc 1 2186 7 is_stmt 1 discriminator 21 view .LVU898
6208
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6209
 2905              		.loc 1 2186 7 discriminator 21 view .LVU899
6210
 2906 02ec 5C09     		lsrs	r4, r3, #5
6211
 2907              	.LVL322:
6212
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6213
 2908              		.loc 1 2186 7 discriminator 21 view .LVU900
6214
 2909 02ee 13F01F0F 		tst	r3, #31
6215
 2910 02f2 00D1     		bne	.L122
6216
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6217
 2911              		.loc 1 2186 7 discriminator 25 view .LVU901
6218
 2912 02f4 013C     		subs	r4, r4, #1
6219
 2913              	.LVL323:
6220
 2914              	.L122:
6221
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6222
 2915              		.loc 1 2186 7 discriminator 27 view .LVU902
6223
 2916 02f6 6FEAC463 		mvn	r3, r4, lsl #27
6224
 2917              	.LVL324:
6225
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6226
 2918              		.loc 1 2186 7 is_stmt 0 discriminator 27 view .LVU903
6227
 2919 02fa 6FEA5343 		mvn	r3, r3, lsr #17
6228
 2920 02fe 9BB2     		uxth	r3, r3
6229
 2921 0300 A2F80C34 		strh	r3, [r2, #1036]	@ movhi
6230
 2922 0304 A2E6     		b	.L109
6231
 2923              	.LVL325:
6232
 2924              	.L118:
6233
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6234
 2925              		.loc 1 2186 7 discriminator 27 view .LVU904
6235
 2926              	.LBE86:
6236
 2927              	.LBE87:
6237
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6238
 2928              		.loc 1 2186 7 is_stmt 1 discriminator 17 view .LVU905
6239
 2929 0306 012A     		cmp	r2, #1
6240
 2930 0308 7FF4A0AE 		bne	.L109
20 mjames 6241
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 105
16 mjames 6242
 
6243
 
6244
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6245
 2931              		.loc 1 2186 7 discriminator 28 view .LVU906
6246
 2932 030c B0F85020 		ldrh	r2, [r0, #80]
6247
 2933 0310 0244     		add	r2, r2, r0
6248
 2934              	.LVL326:
6249
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6250
 2935              		.loc 1 2186 7 discriminator 28 view .LVU907
6251
 2936 0312 0C78     		ldrb	r4, [r1]	@ zero_extendqisi2
6252
 2937 0314 02EB0412 		add	r2, r2, r4, lsl #4
6253
 2938              	.LVL327:
6254
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6255
 2939              		.loc 1 2186 7 discriminator 28 view .LVU908
6256
 2940 0318 9BB2     		uxth	r3, r3
6257
 2941              	.LVL328:
6258
2186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     }
6259
 2942              		.loc 1 2186 7 is_stmt 0 discriminator 28 view .LVU909
6260
 2943 031a A2F80C34 		strh	r3, [r2, #1036]	@ movhi
6261
 2944 031e 95E6     		b	.L109
6262
 2945              	.LBE89:
6263
 2946              		.cfi_endproc
6264
 2947              	.LFE75:
6265
 2949              		.section	.text.USB_ReadPMA,"ax",%progbits
6266
 2950              		.align	1
6267
 2951              		.global	USB_ReadPMA
6268
 2952              		.syntax unified
6269
 2953              		.thumb
6270
 2954              		.thumb_func
6271
 2955              		.fpu softvfp
6272
 2957              	USB_ReadPMA:
6273
 2958              	.LVL329:
6274
 2959              	.LFB94:
6275
2536:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
6276
2537:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** /**
6277
2538:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @brief Copy a buffer from user memory area to packet memory area (PMA)
6278
2539:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param   USBx: USB peripheral instance register address.
6279
2540:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param   pbUsrBuf pointer to user memory area.
6280
2541:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param   wPMABufAddr address into PMA.
6281
2542:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @param   wNBytes: no. of bytes to be copied.
6282
2543:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   * @retval None
6283
2544:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   */
6284
2545:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** void USB_ReadPMA(USB_TypeDef *USBx, uint8_t *pbUsrBuf, uint16_t wPMABufAddr, uint16_t wNBytes)
6285
2546:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** {
6286
 2960              		.loc 1 2546 1 is_stmt 1 view -0
6287
 2961              		.cfi_startproc
6288
 2962              		@ args = 0, pretend = 0, frame = 0
6289
 2963              		@ frame_needed = 0, uses_anonymous_args = 0
6290
 2964              		@ link register save eliminated.
6291
 2965              		.loc 1 2546 1 is_stmt 0 view .LVU911
6292
 2966 0000 30B4     		push	{r4, r5}
6293
 2967              	.LCFI15:
6294
 2968              		.cfi_def_cfa_offset 8
6295
 2969              		.cfi_offset 4, -8
6296
 2970              		.cfi_offset 5, -4
6297
2547:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t n = (uint32_t)wNBytes >> 1;
6298
 2971              		.loc 1 2547 3 is_stmt 1 view .LVU912
6299
 2972              		.loc 1 2547 34 is_stmt 0 view .LVU913
6300
 2973 0002 5D08     		lsrs	r5, r3, #1
20 mjames 6301
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 106
16 mjames 6302
 
6303
 
6304
 2974              	.LVL330:
6305
2548:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t BaseAddr = (uint32_t)USBx;
6306
 2975              		.loc 1 2548 3 is_stmt 1 view .LVU914
6307
2549:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint32_t i, temp;
6308
 2976              		.loc 1 2549 3 view .LVU915
6309
2550:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   __IO uint16_t *pdwVal;
6310
 2977              		.loc 1 2550 3 view .LVU916
6311
2551:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   uint8_t *pBuf = pbUsrBuf;
6312
 2978              		.loc 1 2551 3 view .LVU917
6313
2552:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
6314
2553:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   pdwVal = (__IO uint16_t *)(BaseAddr + 0x400U + ((uint32_t)wPMABufAddr * PMA_ACCESS));
6315
 2979              		.loc 1 2553 3 view .LVU918
6316
 2980              		.loc 1 2553 48 is_stmt 0 view .LVU919
6317
 2981 0004 00EB4202 		add	r2, r0, r2, lsl #1
6318
 2982              	.LVL331:
6319
 2983              		.loc 1 2553 48 view .LVU920
6320
 2984 0008 02F58062 		add	r2, r2, #1024
6321
 2985              	.LVL332:
6322
2554:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
6323
2555:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   for (i = n; i != 0U; i--)
6324
 2986              		.loc 1 2555 3 is_stmt 1 view .LVU921
6325
 2987              	.L127:
6326
 2988              		.loc 1 2555 3 is_stmt 0 discriminator 1 view .LVU922
6327
 2989 000c 45B1     		cbz	r5, .L131
6328
2556:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
6329
2557:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     temp = *(__IO uint16_t *)pdwVal;
6330
 2990              		.loc 1 2557 5 is_stmt 1 discriminator 3 view .LVU923
6331
 2991              		.loc 1 2557 12 is_stmt 0 discriminator 3 view .LVU924
6332
 2992 000e 32F8044B 		ldrh	r4, [r2], #4
6333
 2993              	.LVL333:
6334
 2994              		.loc 1 2557 12 discriminator 3 view .LVU925
6335
 2995 0012 A4B2     		uxth	r4, r4
6336
 2996              	.LVL334:
6337
2558:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     pdwVal++;
6338
 2997              		.loc 1 2558 5 is_stmt 1 discriminator 3 view .LVU926
6339
2559:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     *pBuf = (uint8_t)((temp >> 0) & 0xFFU);
6340
 2998              		.loc 1 2559 5 discriminator 3 view .LVU927
6341
 2999              		.loc 1 2559 11 is_stmt 0 discriminator 3 view .LVU928
6342
 3000 0014 0C70     		strb	r4, [r1]
6343
2560:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     pBuf++;
6344
 3001              		.loc 1 2560 5 is_stmt 1 discriminator 3 view .LVU929
6345
 3002              	.LVL335:
6346
2561:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     *pBuf = (uint8_t)((temp >> 8) & 0xFFU);
6347
 3003              		.loc 1 2561 5 discriminator 3 view .LVU930
6348
 3004              		.loc 1 2561 13 is_stmt 0 discriminator 3 view .LVU931
6349
 3005 0016 240A     		lsrs	r4, r4, #8
6350
 3006              	.LVL336:
6351
 3007              		.loc 1 2561 11 discriminator 3 view .LVU932
6352
 3008 0018 4C70     		strb	r4, [r1, #1]
6353
2562:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     pBuf++;
6354
 3009              		.loc 1 2562 5 is_stmt 1 discriminator 3 view .LVU933
6355
 3010              		.loc 1 2562 9 is_stmt 0 discriminator 3 view .LVU934
6356
 3011 001a 0231     		adds	r1, r1, #2
6357
 3012              	.LVL337:
6358
2563:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
6359
2564:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** #if PMA_ACCESS > 1U
6360
2565:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     pdwVal++;
20 mjames 6361
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 107
16 mjames 6362
 
6363
 
6364
 3013              		.loc 1 2565 5 is_stmt 1 discriminator 3 view .LVU935
6365
2555:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
6366
 3014              		.loc 1 2555 25 is_stmt 0 discriminator 3 view .LVU936
6367
 3015 001c 013D     		subs	r5, r5, #1
6368
 3016              	.LVL338:
6369
2555:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
6370
 3017              		.loc 1 2555 25 discriminator 3 view .LVU937
6371
 3018 001e F5E7     		b	.L127
6372
 3019              	.L131:
6373
2566:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** #endif
6374
2567:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
6375
2568:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** 
6376
2569:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   if ((wNBytes % 2U) != 0U)
6377
 3020              		.loc 1 2569 3 is_stmt 1 view .LVU938
6378
 3021              		.loc 1 2569 6 is_stmt 0 view .LVU939
6379
 3022 0020 13F0010F 		tst	r3, #1
6380
 3023 0024 01D0     		beq	.L126
6381
2570:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   {
6382
2571:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     temp = *pdwVal;
6383
 3024              		.loc 1 2571 5 is_stmt 1 view .LVU940
6384
 3025              		.loc 1 2571 12 is_stmt 0 view .LVU941
6385
 3026 0026 1388     		ldrh	r3, [r2]
6386
 3027              	.LVL339:
6387
2572:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****     *pBuf = (uint8_t)((temp >> 0) & 0xFFU);
6388
 3028              		.loc 1 2572 5 is_stmt 1 view .LVU942
6389
 3029              		.loc 1 2572 11 is_stmt 0 view .LVU943
6390
 3030 0028 0B70     		strb	r3, [r1]
6391
 3031              	.LVL340:
6392
 3032              	.L126:
6393
2573:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c ****   }
6394
2574:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c **** }
6395
 3033              		.loc 1 2574 1 view .LVU944
6396
 3034 002a 30BC     		pop	{r4, r5}
6397
 3035              	.LCFI16:
6398
 3036              		.cfi_restore 5
6399
 3037              		.cfi_restore 4
6400
 3038              		.cfi_def_cfa_offset 0
6401
 3039              	.LVL341:
6402
 3040              		.loc 1 2574 1 view .LVU945
6403
 3041 002c 7047     		bx	lr
6404
 3042              		.cfi_endproc
6405
 3043              	.LFE94:
6406
 3045              		.text
6407
 3046              	.Letext0:
6408
 3047              		.file 2 "c:\\users\\mike\\appdata\\roaming\\xpacks\\@gnu-mcu-eclipse\\arm-none-eabi-gcc\\8.2.1-1.7
6409
 3048              		.file 3 "c:\\users\\mike\\appdata\\roaming\\xpacks\\@gnu-mcu-eclipse\\arm-none-eabi-gcc\\8.2.1-1.7
6410
 3049              		.file 4 "Drivers/CMSIS/Include/core_cm3.h"
6411
 3050              		.file 5 "Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h"
6412
 3051              		.file 6 "Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h"
6413
 3052              		.file 7 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h"
6414
 3053              		.file 8 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_usb.h"
6415
 3054              		.file 9 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h"
20 mjames 6416
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 108
16 mjames 6417
 
6418
 
6419
DEFINED SYMBOLS
6420
                            *ABS*:0000000000000000 stm32f1xx_ll_usb.c
20 mjames 6421
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:16     .text.USB_CoreInit:0000000000000000 $t
6422
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:24     .text.USB_CoreInit:0000000000000000 USB_CoreInit
6423
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:54     .text.USB_EnableGlobalInt:0000000000000000 $t
6424
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:61     .text.USB_EnableGlobalInt:0000000000000000 USB_EnableGlobalInt
6425
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:86     .text.USB_DisableGlobalInt:0000000000000000 $t
6426
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:93     .text.USB_DisableGlobalInt:0000000000000000 USB_DisableGlobalInt
6427
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:120    .text.USB_SetCurrentMode:0000000000000000 $t
6428
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:127    .text.USB_SetCurrentMode:0000000000000000 USB_SetCurrentMode
6429
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:147    .text.USB_DevInit:0000000000000000 $t
6430
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:154    .text.USB_DevInit:0000000000000000 USB_DevInit
6431
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:211    .text.USB_SetDevSpeed:0000000000000000 $t
6432
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:218    .text.USB_SetDevSpeed:0000000000000000 USB_SetDevSpeed
6433
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:238    .text.USB_FlushTxFifo:0000000000000000 $t
6434
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:245    .text.USB_FlushTxFifo:0000000000000000 USB_FlushTxFifo
6435
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:265    .text.USB_FlushRxFifo:0000000000000000 $t
6436
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:272    .text.USB_FlushRxFifo:0000000000000000 USB_FlushRxFifo
6437
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:291    .text.USB_ActivateEndpoint:0000000000000000 $t
6438
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:298    .text.USB_ActivateEndpoint:0000000000000000 USB_ActivateEndpoint
6439
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:335    .text.USB_ActivateEndpoint:0000000000000020 $d
6440
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:339    .text.USB_ActivateEndpoint:0000000000000024 $t
6441
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1042   .text.USB_DeactivateEndpoint:0000000000000000 $t
6442
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1049   .text.USB_DeactivateEndpoint:0000000000000000 USB_DeactivateEndpoint
6443
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1446   .text.USB_WritePacket:0000000000000000 $t
6444
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1453   .text.USB_WritePacket:0000000000000000 USB_WritePacket
6445
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1475   .text.USB_ReadPacket:0000000000000000 $t
6446
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1482   .text.USB_ReadPacket:0000000000000000 USB_ReadPacket
6447
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1503   .text.USB_EPSetStall:0000000000000000 $t
6448
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1510   .text.USB_EPSetStall:0000000000000000 USB_EPSetStall
6449
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1582   .text.USB_EPClearStall:0000000000000000 $t
6450
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1589   .text.USB_EPClearStall:0000000000000000 USB_EPClearStall
6451
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1736   .text.USB_StopDevice:0000000000000000 $t
6452
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1743   .text.USB_StopDevice:0000000000000000 USB_StopDevice
6453
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1774   .text.USB_SetDevAddress:0000000000000000 $t
6454
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1781   .text.USB_SetDevAddress:0000000000000000 USB_SetDevAddress
6455
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1807   .text.USB_DevConnect:0000000000000000 $t
6456
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1814   .text.USB_DevConnect:0000000000000000 USB_DevConnect
6457
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1833   .text.USB_DevDisconnect:0000000000000000 $t
6458
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1840   .text.USB_DevDisconnect:0000000000000000 USB_DevDisconnect
6459
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1859   .text.USB_ReadInterrupts:0000000000000000 $t
6460
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1866   .text.USB_ReadInterrupts:0000000000000000 USB_ReadInterrupts
6461
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1886   .text.USB_ReadDevAllOutEpInterrupt:0000000000000000 $t
6462
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1893   .text.USB_ReadDevAllOutEpInterrupt:0000000000000000 USB_ReadDevAllOutEpInterrupt
6463
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1912   .text.USB_ReadDevAllInEpInterrupt:0000000000000000 $t
6464
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1919   .text.USB_ReadDevAllInEpInterrupt:0000000000000000 USB_ReadDevAllInEpInterrupt
6465
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1938   .text.USB_ReadDevOutEPInterrupt:0000000000000000 $t
6466
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1945   .text.USB_ReadDevOutEPInterrupt:0000000000000000 USB_ReadDevOutEPInterrupt
6467
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1965   .text.USB_ReadDevInEPInterrupt:0000000000000000 $t
6468
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1972   .text.USB_ReadDevInEPInterrupt:0000000000000000 USB_ReadDevInEPInterrupt
6469
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1992   .text.USB_ClearInterrupts:0000000000000000 $t
6470
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:1999   .text.USB_ClearInterrupts:0000000000000000 USB_ClearInterrupts
6471
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:2015   .text.USB_EP0_OutStart:0000000000000000 $t
6472
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:2022   .text.USB_EP0_OutStart:0000000000000000 USB_EP0_OutStart
6473
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:2042   .text.USB_ActivateRemoteWakeup:0000000000000000 $t
6474
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:2049   .text.USB_ActivateRemoteWakeup:0000000000000000 USB_ActivateRemoteWakeup
6475
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:2072   .text.USB_DeActivateRemoteWakeup:0000000000000000 $t
6476
ARM GAS  C:\Users\mike\AppData\Local\Temp\ccYEyND8.s 			page 109
16 mjames 6477
 
6478
 
20 mjames 6479
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:2079   .text.USB_DeActivateRemoteWakeup:0000000000000000 USB_DeActivateRemoteWakeup
6480
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:2104   .text.USB_WritePMA:0000000000000000 $t
6481
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:2111   .text.USB_WritePMA:0000000000000000 USB_WritePMA
6482
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:2191   .text.USB_EPStartXfer:0000000000000000 $t
6483
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:2198   .text.USB_EPStartXfer:0000000000000000 USB_EPStartXfer
6484
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:2950   .text.USB_ReadPMA:0000000000000000 $t
6485
C:\Users\mike\AppData\Local\Temp\ccYEyND8.s:2957   .text.USB_ReadPMA:0000000000000000 USB_ReadPMA
16 mjames 6486
 
6487
NO UNDEFINED SYMBOLS