123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624 |
- ARM GAS /tmp/ccjzxu7E.s page 1
- 1 .cpu cortex-m3
- 2 .arch armv7-m
- 3 .fpu softvfp
- 4 .eabi_attribute 20, 1
- 5 .eabi_attribute 21, 1
- 6 .eabi_attribute 23, 3
- 7 .eabi_attribute 24, 1
- 8 .eabi_attribute 25, 1
- 9 .eabi_attribute 26, 1
- 10 .eabi_attribute 30, 1
- 11 .eabi_attribute 34, 1
- 12 .eabi_attribute 18, 4
- 13 .file "usbd_cdc_if.c"
- 14 .text
- 15 .Ltext0:
- 16 .cfi_sections .debug_frame
- 17 .file 1 "USB_DEVICE/App/usbd_cdc_if.c"
- 18 .section .text.CDC_DeInit_FS,"ax",%progbits
- 19 .align 1
- 20 .syntax unified
- 21 .thumb
- 22 .thumb_func
- 24 CDC_DeInit_FS:
- 25 .LFB656:
- 1:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN Header */
- 2:USB_DEVICE/App/usbd_cdc_if.c **** /**
- 3:USB_DEVICE/App/usbd_cdc_if.c **** ******************************************************************************
- 4:USB_DEVICE/App/usbd_cdc_if.c **** * @file : usbd_cdc_if.c
- 5:USB_DEVICE/App/usbd_cdc_if.c **** * @version : v2.0_Cube
- 6:USB_DEVICE/App/usbd_cdc_if.c **** * @brief : Usb device for Virtual Com Port.
- 7:USB_DEVICE/App/usbd_cdc_if.c **** ******************************************************************************
- 8:USB_DEVICE/App/usbd_cdc_if.c **** * @attention
- 9:USB_DEVICE/App/usbd_cdc_if.c **** *
- 10:USB_DEVICE/App/usbd_cdc_if.c **** * Copyright (c) 2024 STMicroelectronics.
- 11:USB_DEVICE/App/usbd_cdc_if.c **** * All rights reserved.
- 12:USB_DEVICE/App/usbd_cdc_if.c **** *
- 13:USB_DEVICE/App/usbd_cdc_if.c **** * This software is licensed under terms that can be found in the LICENSE file
- 14:USB_DEVICE/App/usbd_cdc_if.c **** * in the root directory of this software component.
- 15:USB_DEVICE/App/usbd_cdc_if.c **** * If no LICENSE file comes with this software, it is provided AS-IS.
- 16:USB_DEVICE/App/usbd_cdc_if.c **** *
- 17:USB_DEVICE/App/usbd_cdc_if.c **** ******************************************************************************
- 18:USB_DEVICE/App/usbd_cdc_if.c **** */
- 19:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END Header */
- 20:USB_DEVICE/App/usbd_cdc_if.c ****
- 21:USB_DEVICE/App/usbd_cdc_if.c **** /* Includes ------------------------------------------------------------------*/
- 22:USB_DEVICE/App/usbd_cdc_if.c **** #include "usbd_cdc_if.h"
- 23:USB_DEVICE/App/usbd_cdc_if.c ****
- 24:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN INCLUDE */
- 25:USB_DEVICE/App/usbd_cdc_if.c **** #include "RFDAproto.h"
- 26:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END INCLUDE */
- 27:USB_DEVICE/App/usbd_cdc_if.c ****
- 28:USB_DEVICE/App/usbd_cdc_if.c **** /* Private typedef -----------------------------------------------------------*/
- 29:USB_DEVICE/App/usbd_cdc_if.c **** /* Private define ------------------------------------------------------------*/
- 30:USB_DEVICE/App/usbd_cdc_if.c **** /* Private macro -------------------------------------------------------------*/
- 31:USB_DEVICE/App/usbd_cdc_if.c ****
- 32:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN PV */
- 33:USB_DEVICE/App/usbd_cdc_if.c **** /* Private variables ---------------------------------------------------------*/
- ARM GAS /tmp/ccjzxu7E.s page 2
- 34:USB_DEVICE/App/usbd_cdc_if.c ****
- 35:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END PV */
- 36:USB_DEVICE/App/usbd_cdc_if.c ****
- 37:USB_DEVICE/App/usbd_cdc_if.c **** /** @addtogroup STM32_USB_OTG_DEVICE_LIBRARY
- 38:USB_DEVICE/App/usbd_cdc_if.c **** * @brief Usb device library.
- 39:USB_DEVICE/App/usbd_cdc_if.c **** * @{
- 40:USB_DEVICE/App/usbd_cdc_if.c **** */
- 41:USB_DEVICE/App/usbd_cdc_if.c ****
- 42:USB_DEVICE/App/usbd_cdc_if.c **** /** @addtogroup USBD_CDC_IF
- 43:USB_DEVICE/App/usbd_cdc_if.c **** * @{
- 44:USB_DEVICE/App/usbd_cdc_if.c **** */
- 45:USB_DEVICE/App/usbd_cdc_if.c ****
- 46:USB_DEVICE/App/usbd_cdc_if.c **** /** @defgroup USBD_CDC_IF_Private_TypesDefinitions USBD_CDC_IF_Private_TypesDefinitions
- 47:USB_DEVICE/App/usbd_cdc_if.c **** * @brief Private types.
- 48:USB_DEVICE/App/usbd_cdc_if.c **** * @{
- 49:USB_DEVICE/App/usbd_cdc_if.c **** */
- 50:USB_DEVICE/App/usbd_cdc_if.c ****
- 51:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN PRIVATE_TYPES */
- 52:USB_DEVICE/App/usbd_cdc_if.c ****
- 53:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END PRIVATE_TYPES */
- 54:USB_DEVICE/App/usbd_cdc_if.c ****
- 55:USB_DEVICE/App/usbd_cdc_if.c **** /**
- 56:USB_DEVICE/App/usbd_cdc_if.c **** * @}
- 57:USB_DEVICE/App/usbd_cdc_if.c **** */
- 58:USB_DEVICE/App/usbd_cdc_if.c ****
- 59:USB_DEVICE/App/usbd_cdc_if.c **** /** @defgroup USBD_CDC_IF_Private_Defines USBD_CDC_IF_Private_Defines
- 60:USB_DEVICE/App/usbd_cdc_if.c **** * @brief Private defines.
- 61:USB_DEVICE/App/usbd_cdc_if.c **** * @{
- 62:USB_DEVICE/App/usbd_cdc_if.c **** */
- 63:USB_DEVICE/App/usbd_cdc_if.c ****
- 64:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN PRIVATE_DEFINES */
- 65:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END PRIVATE_DEFINES */
- 66:USB_DEVICE/App/usbd_cdc_if.c ****
- 67:USB_DEVICE/App/usbd_cdc_if.c **** /**
- 68:USB_DEVICE/App/usbd_cdc_if.c **** * @}
- 69:USB_DEVICE/App/usbd_cdc_if.c **** */
- 70:USB_DEVICE/App/usbd_cdc_if.c ****
- 71:USB_DEVICE/App/usbd_cdc_if.c **** /** @defgroup USBD_CDC_IF_Private_Macros USBD_CDC_IF_Private_Macros
- 72:USB_DEVICE/App/usbd_cdc_if.c **** * @brief Private macros.
- 73:USB_DEVICE/App/usbd_cdc_if.c **** * @{
- 74:USB_DEVICE/App/usbd_cdc_if.c **** */
- 75:USB_DEVICE/App/usbd_cdc_if.c ****
- 76:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN PRIVATE_MACRO */
- 77:USB_DEVICE/App/usbd_cdc_if.c ****
- 78:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END PRIVATE_MACRO */
- 79:USB_DEVICE/App/usbd_cdc_if.c ****
- 80:USB_DEVICE/App/usbd_cdc_if.c **** /**
- 81:USB_DEVICE/App/usbd_cdc_if.c **** * @}
- 82:USB_DEVICE/App/usbd_cdc_if.c **** */
- 83:USB_DEVICE/App/usbd_cdc_if.c ****
- 84:USB_DEVICE/App/usbd_cdc_if.c **** /** @defgroup USBD_CDC_IF_Private_Variables USBD_CDC_IF_Private_Variables
- 85:USB_DEVICE/App/usbd_cdc_if.c **** * @brief Private variables.
- 86:USB_DEVICE/App/usbd_cdc_if.c **** * @{
- 87:USB_DEVICE/App/usbd_cdc_if.c **** */
- 88:USB_DEVICE/App/usbd_cdc_if.c **** /* Create buffer for reception and transmission */
- 89:USB_DEVICE/App/usbd_cdc_if.c **** /* It's up to user to redefine and/or remove those define */
- 90:USB_DEVICE/App/usbd_cdc_if.c **** /** Received data over USB are stored in this buffer */
- ARM GAS /tmp/ccjzxu7E.s page 3
- 91:USB_DEVICE/App/usbd_cdc_if.c **** uint8_t UserRxBufferFS[APP_RX_DATA_SIZE];
- 92:USB_DEVICE/App/usbd_cdc_if.c ****
- 93:USB_DEVICE/App/usbd_cdc_if.c **** /** Data to send over USB CDC are stored in this buffer */
- 94:USB_DEVICE/App/usbd_cdc_if.c **** uint8_t UserTxBufferFS[APP_TX_DATA_SIZE];
- 95:USB_DEVICE/App/usbd_cdc_if.c ****
- 96:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN PRIVATE_VARIABLES */
- 97:USB_DEVICE/App/usbd_cdc_if.c ****
- 98:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END PRIVATE_VARIABLES */
- 99:USB_DEVICE/App/usbd_cdc_if.c ****
- 100:USB_DEVICE/App/usbd_cdc_if.c **** /**
- 101:USB_DEVICE/App/usbd_cdc_if.c **** * @}
- 102:USB_DEVICE/App/usbd_cdc_if.c **** */
- 103:USB_DEVICE/App/usbd_cdc_if.c ****
- 104:USB_DEVICE/App/usbd_cdc_if.c **** /** @defgroup USBD_CDC_IF_Exported_Variables USBD_CDC_IF_Exported_Variables
- 105:USB_DEVICE/App/usbd_cdc_if.c **** * @brief Public variables.
- 106:USB_DEVICE/App/usbd_cdc_if.c **** * @{
- 107:USB_DEVICE/App/usbd_cdc_if.c **** */
- 108:USB_DEVICE/App/usbd_cdc_if.c ****
- 109:USB_DEVICE/App/usbd_cdc_if.c **** extern USBD_HandleTypeDef hUsbDeviceFS;
- 110:USB_DEVICE/App/usbd_cdc_if.c ****
- 111:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN EXPORTED_VARIABLES */
- 112:USB_DEVICE/App/usbd_cdc_if.c ****
- 113:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END EXPORTED_VARIABLES */
- 114:USB_DEVICE/App/usbd_cdc_if.c ****
- 115:USB_DEVICE/App/usbd_cdc_if.c **** /**
- 116:USB_DEVICE/App/usbd_cdc_if.c **** * @}
- 117:USB_DEVICE/App/usbd_cdc_if.c **** */
- 118:USB_DEVICE/App/usbd_cdc_if.c ****
- 119:USB_DEVICE/App/usbd_cdc_if.c **** /** @defgroup USBD_CDC_IF_Private_FunctionPrototypes USBD_CDC_IF_Private_FunctionPrototypes
- 120:USB_DEVICE/App/usbd_cdc_if.c **** * @brief Private functions declaration.
- 121:USB_DEVICE/App/usbd_cdc_if.c **** * @{
- 122:USB_DEVICE/App/usbd_cdc_if.c **** */
- 123:USB_DEVICE/App/usbd_cdc_if.c ****
- 124:USB_DEVICE/App/usbd_cdc_if.c **** static int8_t CDC_Init_FS(void);
- 125:USB_DEVICE/App/usbd_cdc_if.c **** static int8_t CDC_DeInit_FS(void);
- 126:USB_DEVICE/App/usbd_cdc_if.c **** static int8_t CDC_Control_FS(uint8_t cmd, uint8_t* pbuf, uint16_t length);
- 127:USB_DEVICE/App/usbd_cdc_if.c **** static int8_t CDC_Receive_FS(uint8_t* pbuf, uint32_t *Len);
- 128:USB_DEVICE/App/usbd_cdc_if.c ****
- 129:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN PRIVATE_FUNCTIONS_DECLARATION */
- 130:USB_DEVICE/App/usbd_cdc_if.c ****
- 131:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END PRIVATE_FUNCTIONS_DECLARATION */
- 132:USB_DEVICE/App/usbd_cdc_if.c ****
- 133:USB_DEVICE/App/usbd_cdc_if.c **** /**
- 134:USB_DEVICE/App/usbd_cdc_if.c **** * @}
- 135:USB_DEVICE/App/usbd_cdc_if.c **** */
- 136:USB_DEVICE/App/usbd_cdc_if.c ****
- 137:USB_DEVICE/App/usbd_cdc_if.c **** USBD_CDC_ItfTypeDef USBD_Interface_fops_FS =
- 138:USB_DEVICE/App/usbd_cdc_if.c **** {
- 139:USB_DEVICE/App/usbd_cdc_if.c **** CDC_Init_FS,
- 140:USB_DEVICE/App/usbd_cdc_if.c **** CDC_DeInit_FS,
- 141:USB_DEVICE/App/usbd_cdc_if.c **** CDC_Control_FS,
- 142:USB_DEVICE/App/usbd_cdc_if.c **** CDC_Receive_FS
- 143:USB_DEVICE/App/usbd_cdc_if.c **** };
- 144:USB_DEVICE/App/usbd_cdc_if.c ****
- 145:USB_DEVICE/App/usbd_cdc_if.c **** /* Private functions ---------------------------------------------------------*/
- 146:USB_DEVICE/App/usbd_cdc_if.c **** /**
- 147:USB_DEVICE/App/usbd_cdc_if.c **** * @brief Initializes the CDC media low layer over the FS USB IP
- ARM GAS /tmp/ccjzxu7E.s page 4
- 148:USB_DEVICE/App/usbd_cdc_if.c **** * @retval USBD_OK if all operations are OK else USBD_FAIL
- 149:USB_DEVICE/App/usbd_cdc_if.c **** */
- 150:USB_DEVICE/App/usbd_cdc_if.c **** static int8_t CDC_Init_FS(void)
- 151:USB_DEVICE/App/usbd_cdc_if.c **** {
- 152:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN 3 */
- 153:USB_DEVICE/App/usbd_cdc_if.c **** /* Set Application Buffers */
- 154:USB_DEVICE/App/usbd_cdc_if.c **** USBD_CDC_SetTxBuffer(&hUsbDeviceFS, UserTxBufferFS, 0);
- 155:USB_DEVICE/App/usbd_cdc_if.c **** USBD_CDC_SetRxBuffer(&hUsbDeviceFS, UserRxBufferFS);
- 156:USB_DEVICE/App/usbd_cdc_if.c **** return (USBD_OK);
- 157:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END 3 */
- 158:USB_DEVICE/App/usbd_cdc_if.c **** }
- 159:USB_DEVICE/App/usbd_cdc_if.c ****
- 160:USB_DEVICE/App/usbd_cdc_if.c **** /**
- 161:USB_DEVICE/App/usbd_cdc_if.c **** * @brief DeInitializes the CDC media low layer
- 162:USB_DEVICE/App/usbd_cdc_if.c **** * @retval USBD_OK if all operations are OK else USBD_FAIL
- 163:USB_DEVICE/App/usbd_cdc_if.c **** */
- 164:USB_DEVICE/App/usbd_cdc_if.c **** static int8_t CDC_DeInit_FS(void)
- 165:USB_DEVICE/App/usbd_cdc_if.c **** {
- 26 .loc 1 165 1 view -0
- 27 .cfi_startproc
- 28 @ args = 0, pretend = 0, frame = 0
- 29 @ frame_needed = 0, uses_anonymous_args = 0
- 30 @ link register save eliminated.
- 166:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN 4 */
- 167:USB_DEVICE/App/usbd_cdc_if.c **** return (USBD_OK);
- 31 .loc 1 167 3 view .LVU1
- 168:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END 4 */
- 169:USB_DEVICE/App/usbd_cdc_if.c **** }
- 32 .loc 1 169 1 is_stmt 0 view .LVU2
- 33 0000 0020 movs r0, #0
- 34 0002 7047 bx lr
- 35 .cfi_endproc
- 36 .LFE656:
- 38 .section .text.CDC_Control_FS,"ax",%progbits
- 39 .align 1
- 40 .syntax unified
- 41 .thumb
- 42 .thumb_func
- 44 CDC_Control_FS:
- 45 .LVL0:
- 46 .LFB657:
- 170:USB_DEVICE/App/usbd_cdc_if.c ****
- 171:USB_DEVICE/App/usbd_cdc_if.c **** /**
- 172:USB_DEVICE/App/usbd_cdc_if.c **** * @brief Manage the CDC class requests
- 173:USB_DEVICE/App/usbd_cdc_if.c **** * @param cmd: Command code
- 174:USB_DEVICE/App/usbd_cdc_if.c **** * @param pbuf: Buffer containing command data (request parameters)
- 175:USB_DEVICE/App/usbd_cdc_if.c **** * @param length: Number of data to be sent (in bytes)
- 176:USB_DEVICE/App/usbd_cdc_if.c **** * @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
- 177:USB_DEVICE/App/usbd_cdc_if.c **** */
- 178:USB_DEVICE/App/usbd_cdc_if.c **** static int8_t CDC_Control_FS(uint8_t cmd, uint8_t* pbuf, uint16_t length)
- 179:USB_DEVICE/App/usbd_cdc_if.c **** {
- 47 .loc 1 179 1 is_stmt 1 view -0
- 48 .cfi_startproc
- 49 @ args = 0, pretend = 0, frame = 0
- 50 @ frame_needed = 0, uses_anonymous_args = 0
- 51 @ link register save eliminated.
- 180:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN 5 */
- ARM GAS /tmp/ccjzxu7E.s page 5
- 181:USB_DEVICE/App/usbd_cdc_if.c **** switch(cmd)
- 52 .loc 1 181 3 view .LVU4
- 182:USB_DEVICE/App/usbd_cdc_if.c **** {
- 183:USB_DEVICE/App/usbd_cdc_if.c **** case CDC_SEND_ENCAPSULATED_COMMAND:
- 184:USB_DEVICE/App/usbd_cdc_if.c ****
- 185:USB_DEVICE/App/usbd_cdc_if.c **** break;
- 186:USB_DEVICE/App/usbd_cdc_if.c ****
- 187:USB_DEVICE/App/usbd_cdc_if.c **** case CDC_GET_ENCAPSULATED_RESPONSE:
- 188:USB_DEVICE/App/usbd_cdc_if.c ****
- 189:USB_DEVICE/App/usbd_cdc_if.c **** break;
- 190:USB_DEVICE/App/usbd_cdc_if.c ****
- 191:USB_DEVICE/App/usbd_cdc_if.c **** case CDC_SET_COMM_FEATURE:
- 192:USB_DEVICE/App/usbd_cdc_if.c ****
- 193:USB_DEVICE/App/usbd_cdc_if.c **** break;
- 194:USB_DEVICE/App/usbd_cdc_if.c ****
- 195:USB_DEVICE/App/usbd_cdc_if.c **** case CDC_GET_COMM_FEATURE:
- 196:USB_DEVICE/App/usbd_cdc_if.c ****
- 197:USB_DEVICE/App/usbd_cdc_if.c **** break;
- 198:USB_DEVICE/App/usbd_cdc_if.c ****
- 199:USB_DEVICE/App/usbd_cdc_if.c **** case CDC_CLEAR_COMM_FEATURE:
- 200:USB_DEVICE/App/usbd_cdc_if.c ****
- 201:USB_DEVICE/App/usbd_cdc_if.c **** break;
- 202:USB_DEVICE/App/usbd_cdc_if.c ****
- 203:USB_DEVICE/App/usbd_cdc_if.c **** /*******************************************************************************/
- 204:USB_DEVICE/App/usbd_cdc_if.c **** /* Line Coding Structure */
- 205:USB_DEVICE/App/usbd_cdc_if.c **** /*-----------------------------------------------------------------------------*/
- 206:USB_DEVICE/App/usbd_cdc_if.c **** /* Offset | Field | Size | Value | Description */
- 207:USB_DEVICE/App/usbd_cdc_if.c **** /* 0 | dwDTERate | 4 | Number |Data terminal rate, in bits per second*/
- 208:USB_DEVICE/App/usbd_cdc_if.c **** /* 4 | bCharFormat | 1 | Number | Stop bits */
- 209:USB_DEVICE/App/usbd_cdc_if.c **** /* 0 - 1 Stop bit */
- 210:USB_DEVICE/App/usbd_cdc_if.c **** /* 1 - 1.5 Stop bits */
- 211:USB_DEVICE/App/usbd_cdc_if.c **** /* 2 - 2 Stop bits */
- 212:USB_DEVICE/App/usbd_cdc_if.c **** /* 5 | bParityType | 1 | Number | Parity */
- 213:USB_DEVICE/App/usbd_cdc_if.c **** /* 0 - None */
- 214:USB_DEVICE/App/usbd_cdc_if.c **** /* 1 - Odd */
- 215:USB_DEVICE/App/usbd_cdc_if.c **** /* 2 - Even */
- 216:USB_DEVICE/App/usbd_cdc_if.c **** /* 3 - Mark */
- 217:USB_DEVICE/App/usbd_cdc_if.c **** /* 4 - Space */
- 218:USB_DEVICE/App/usbd_cdc_if.c **** /* 6 | bDataBits | 1 | Number Data bits (5, 6, 7, 8 or 16). */
- 219:USB_DEVICE/App/usbd_cdc_if.c **** /*******************************************************************************/
- 220:USB_DEVICE/App/usbd_cdc_if.c **** case CDC_SET_LINE_CODING:
- 221:USB_DEVICE/App/usbd_cdc_if.c ****
- 222:USB_DEVICE/App/usbd_cdc_if.c **** break;
- 223:USB_DEVICE/App/usbd_cdc_if.c ****
- 224:USB_DEVICE/App/usbd_cdc_if.c **** case CDC_GET_LINE_CODING:
- 225:USB_DEVICE/App/usbd_cdc_if.c ****
- 226:USB_DEVICE/App/usbd_cdc_if.c **** break;
- 227:USB_DEVICE/App/usbd_cdc_if.c ****
- 228:USB_DEVICE/App/usbd_cdc_if.c **** case CDC_SET_CONTROL_LINE_STATE:
- 229:USB_DEVICE/App/usbd_cdc_if.c ****
- 230:USB_DEVICE/App/usbd_cdc_if.c **** break;
- 231:USB_DEVICE/App/usbd_cdc_if.c ****
- 232:USB_DEVICE/App/usbd_cdc_if.c **** case CDC_SEND_BREAK:
- 233:USB_DEVICE/App/usbd_cdc_if.c ****
- 234:USB_DEVICE/App/usbd_cdc_if.c **** break;
- 235:USB_DEVICE/App/usbd_cdc_if.c ****
- 236:USB_DEVICE/App/usbd_cdc_if.c **** default:
- ARM GAS /tmp/ccjzxu7E.s page 6
- 237:USB_DEVICE/App/usbd_cdc_if.c **** break;
- 53 .loc 1 237 5 view .LVU5
- 238:USB_DEVICE/App/usbd_cdc_if.c **** }
- 239:USB_DEVICE/App/usbd_cdc_if.c ****
- 240:USB_DEVICE/App/usbd_cdc_if.c **** return (USBD_OK);
- 54 .loc 1 240 3 view .LVU6
- 241:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END 5 */
- 242:USB_DEVICE/App/usbd_cdc_if.c **** }
- 55 .loc 1 242 1 is_stmt 0 view .LVU7
- 56 0000 0020 movs r0, #0
- 57 .LVL1:
- 58 .loc 1 242 1 view .LVU8
- 59 0002 7047 bx lr
- 60 .cfi_endproc
- 61 .LFE657:
- 63 .section .text.CDC_Receive_FS,"ax",%progbits
- 64 .align 1
- 65 .syntax unified
- 66 .thumb
- 67 .thumb_func
- 69 CDC_Receive_FS:
- 70 .LVL2:
- 71 .LFB658:
- 243:USB_DEVICE/App/usbd_cdc_if.c ****
- 244:USB_DEVICE/App/usbd_cdc_if.c **** /**
- 245:USB_DEVICE/App/usbd_cdc_if.c **** * @brief Data received over USB OUT endpoint are sent over CDC interface
- 246:USB_DEVICE/App/usbd_cdc_if.c **** * through this function.
- 247:USB_DEVICE/App/usbd_cdc_if.c **** *
- 248:USB_DEVICE/App/usbd_cdc_if.c **** * @note
- 249:USB_DEVICE/App/usbd_cdc_if.c **** * This function will issue a NAK packet on any OUT packet received on
- 250:USB_DEVICE/App/usbd_cdc_if.c **** * USB endpoint until exiting this function. If you exit this function
- 251:USB_DEVICE/App/usbd_cdc_if.c **** * before transfer is complete on CDC interface (ie. using DMA controller)
- 252:USB_DEVICE/App/usbd_cdc_if.c **** * it will result in receiving more data while previous ones are still
- 253:USB_DEVICE/App/usbd_cdc_if.c **** * not sent.
- 254:USB_DEVICE/App/usbd_cdc_if.c **** *
- 255:USB_DEVICE/App/usbd_cdc_if.c **** * @param Buf: Buffer of data to be received
- 256:USB_DEVICE/App/usbd_cdc_if.c **** * @param Len: Number of data received (in bytes)
- 257:USB_DEVICE/App/usbd_cdc_if.c **** * @retval Result of the operation: USBD_OK if all operations are OK else USBD_FAIL
- 258:USB_DEVICE/App/usbd_cdc_if.c **** */
- 259:USB_DEVICE/App/usbd_cdc_if.c **** static int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len)
- 260:USB_DEVICE/App/usbd_cdc_if.c **** {
- 72 .loc 1 260 1 is_stmt 1 view -0
- 73 .cfi_startproc
- 74 @ args = 0, pretend = 0, frame = 0
- 75 @ frame_needed = 0, uses_anonymous_args = 0
- 76 .loc 1 260 1 is_stmt 0 view .LVU10
- 77 0000 38B5 push {r3, r4, r5, lr}
- 78 .LCFI0:
- 79 .cfi_def_cfa_offset 16
- 80 .cfi_offset 3, -16
- 81 .cfi_offset 4, -12
- 82 .cfi_offset 5, -8
- 83 .cfi_offset 14, -4
- 84 0002 0446 mov r4, r0
- 261:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN 6 */
- 262:USB_DEVICE/App/usbd_cdc_if.c **** USBD_CDC_SetRxBuffer(&hUsbDeviceFS, &Buf[0]);
- 85 .loc 1 262 4 is_stmt 1 view .LVU11
- ARM GAS /tmp/ccjzxu7E.s page 7
- 86 0004 064D ldr r5, .L5
- 87 0006 0146 mov r1, r0
- 88 .LVL3:
- 89 .loc 1 262 4 is_stmt 0 view .LVU12
- 90 0008 2846 mov r0, r5
- 91 .LVL4:
- 92 .loc 1 262 4 view .LVU13
- 93 000a FFF7FEFF bl USBD_CDC_SetRxBuffer
- 94 .LVL5:
- 263:USB_DEVICE/App/usbd_cdc_if.c **** USBD_CDC_ReceivePacket(&hUsbDeviceFS);
- 95 .loc 1 263 4 is_stmt 1 view .LVU14
- 96 000e 2846 mov r0, r5
- 97 0010 FFF7FEFF bl USBD_CDC_ReceivePacket
- 98 .LVL6:
- 264:USB_DEVICE/App/usbd_cdc_if.c **** uint8_t ar = Buf[0];
- 99 .loc 1 264 4 view .LVU15
- 265:USB_DEVICE/App/usbd_cdc_if.c **** uint8_t cc = Buf[1];
- 100 .loc 1 265 4 view .LVU16
- 266:USB_DEVICE/App/usbd_cdc_if.c **** PWM((uint16_t)ar,(uint16_t)cc);
- 101 .loc 1 266 4 view .LVU17
- 102 0014 6178 ldrb r1, [r4, #1] @ zero_extendqisi2
- 103 0016 2078 ldrb r0, [r4] @ zero_extendqisi2
- 104 0018 FFF7FEFF bl PWM
- 105 .LVL7:
- 267:USB_DEVICE/App/usbd_cdc_if.c ****
- 268:USB_DEVICE/App/usbd_cdc_if.c **** return (USBD_OK);
- 106 .loc 1 268 4 view .LVU18
- 269:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END 6 */
- 270:USB_DEVICE/App/usbd_cdc_if.c **** }
- 107 .loc 1 270 1 is_stmt 0 view .LVU19
- 108 001c 0020 movs r0, #0
- 109 001e 38BD pop {r3, r4, r5, pc}
- 110 .LVL8:
- 111 .L6:
- 112 .loc 1 270 1 view .LVU20
- 113 .align 2
- 114 .L5:
- 115 0020 00000000 .word hUsbDeviceFS
- 116 .cfi_endproc
- 117 .LFE658:
- 119 .section .text.CDC_Init_FS,"ax",%progbits
- 120 .align 1
- 121 .syntax unified
- 122 .thumb
- 123 .thumb_func
- 125 CDC_Init_FS:
- 126 .LFB655:
- 151:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN 3 */
- 127 .loc 1 151 1 is_stmt 1 view -0
- 128 .cfi_startproc
- 129 @ args = 0, pretend = 0, frame = 0
- 130 @ frame_needed = 0, uses_anonymous_args = 0
- 131 0000 10B5 push {r4, lr}
- 132 .LCFI1:
- 133 .cfi_def_cfa_offset 8
- 134 .cfi_offset 4, -8
- 135 .cfi_offset 14, -4
- ARM GAS /tmp/ccjzxu7E.s page 8
- 154:USB_DEVICE/App/usbd_cdc_if.c **** USBD_CDC_SetRxBuffer(&hUsbDeviceFS, UserRxBufferFS);
- 136 .loc 1 154 3 view .LVU22
- 137 0002 064C ldr r4, .L9
- 138 0004 0022 movs r2, #0
- 139 0006 0649 ldr r1, .L9+4
- 140 0008 2046 mov r0, r4
- 141 000a FFF7FEFF bl USBD_CDC_SetTxBuffer
- 142 .LVL9:
- 155:USB_DEVICE/App/usbd_cdc_if.c **** return (USBD_OK);
- 143 .loc 1 155 3 view .LVU23
- 144 000e 0549 ldr r1, .L9+8
- 145 0010 2046 mov r0, r4
- 146 0012 FFF7FEFF bl USBD_CDC_SetRxBuffer
- 147 .LVL10:
- 156:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END 3 */
- 148 .loc 1 156 3 view .LVU24
- 158:USB_DEVICE/App/usbd_cdc_if.c ****
- 149 .loc 1 158 1 is_stmt 0 view .LVU25
- 150 0016 0020 movs r0, #0
- 151 0018 10BD pop {r4, pc}
- 152 .L10:
- 153 001a 00BF .align 2
- 154 .L9:
- 155 001c 00000000 .word hUsbDeviceFS
- 156 0020 00000000 .word UserTxBufferFS
- 157 0024 00000000 .word UserRxBufferFS
- 158 .cfi_endproc
- 159 .LFE655:
- 161 .section .text.CDC_Transmit_FS,"ax",%progbits
- 162 .align 1
- 163 .global CDC_Transmit_FS
- 164 .syntax unified
- 165 .thumb
- 166 .thumb_func
- 168 CDC_Transmit_FS:
- 169 .LVL11:
- 170 .LFB659:
- 271:USB_DEVICE/App/usbd_cdc_if.c ****
- 272:USB_DEVICE/App/usbd_cdc_if.c **** /**
- 273:USB_DEVICE/App/usbd_cdc_if.c **** * @brief CDC_Transmit_FS
- 274:USB_DEVICE/App/usbd_cdc_if.c **** * Data to send over USB IN endpoint are sent over CDC interface
- 275:USB_DEVICE/App/usbd_cdc_if.c **** * through this function.
- 276:USB_DEVICE/App/usbd_cdc_if.c **** * @note
- 277:USB_DEVICE/App/usbd_cdc_if.c **** *
- 278:USB_DEVICE/App/usbd_cdc_if.c **** *
- 279:USB_DEVICE/App/usbd_cdc_if.c **** * @param Buf: Buffer of data to be sent
- 280:USB_DEVICE/App/usbd_cdc_if.c **** * @param Len: Number of data to be sent (in bytes)
- 281:USB_DEVICE/App/usbd_cdc_if.c **** * @retval USBD_OK if all operations are OK else USBD_FAIL or USBD_BUSY
- 282:USB_DEVICE/App/usbd_cdc_if.c **** */
- 283:USB_DEVICE/App/usbd_cdc_if.c **** uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len)
- 284:USB_DEVICE/App/usbd_cdc_if.c **** {
- 171 .loc 1 284 1 is_stmt 1 view -0
- 172 .cfi_startproc
- 173 @ args = 0, pretend = 0, frame = 0
- 174 @ frame_needed = 0, uses_anonymous_args = 0
- 285:USB_DEVICE/App/usbd_cdc_if.c **** uint8_t result = USBD_OK;
- 175 .loc 1 285 3 view .LVU27
- ARM GAS /tmp/ccjzxu7E.s page 9
- 286:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN 7 */
- 287:USB_DEVICE/App/usbd_cdc_if.c **** USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*)hUsbDeviceFS.pClassData;
- 176 .loc 1 287 3 view .LVU28
- 177 .loc 1 287 27 is_stmt 0 view .LVU29
- 178 0000 094B ldr r3, .L19
- 179 0002 D3F8B832 ldr r3, [r3, #696]
- 180 .LVL12:
- 288:USB_DEVICE/App/usbd_cdc_if.c **** if (hcdc->TxState != 0){
- 181 .loc 1 288 3 is_stmt 1 view .LVU30
- 182 .loc 1 288 11 is_stmt 0 view .LVU31
- 183 0006 D3F81432 ldr r3, [r3, #532]
- 184 .LVL13:
- 185 .loc 1 288 6 view .LVU32
- 186 000a 0BB1 cbz r3, .L18
- 289:USB_DEVICE/App/usbd_cdc_if.c **** return USBD_BUSY;
- 187 .loc 1 289 12 view .LVU33
- 188 000c 0120 movs r0, #1
- 189 .LVL14:
- 290:USB_DEVICE/App/usbd_cdc_if.c **** }
- 291:USB_DEVICE/App/usbd_cdc_if.c **** USBD_CDC_SetTxBuffer(&hUsbDeviceFS, Buf, Len);
- 292:USB_DEVICE/App/usbd_cdc_if.c **** result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
- 293:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END 7 */
- 294:USB_DEVICE/App/usbd_cdc_if.c **** return result;
- 295:USB_DEVICE/App/usbd_cdc_if.c **** }
- 190 .loc 1 295 1 view .LVU34
- 191 000e 7047 bx lr
- 192 .LVL15:
- 193 .L18:
- 284:USB_DEVICE/App/usbd_cdc_if.c **** uint8_t result = USBD_OK;
- 194 .loc 1 284 1 view .LVU35
- 195 0010 10B5 push {r4, lr}
- 196 .LCFI2:
- 197 .cfi_def_cfa_offset 8
- 198 .cfi_offset 4, -8
- 199 .cfi_offset 14, -4
- 291:USB_DEVICE/App/usbd_cdc_if.c **** result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
- 200 .loc 1 291 3 is_stmt 1 view .LVU36
- 201 0012 054C ldr r4, .L19
- 202 .LVL16:
- 291:USB_DEVICE/App/usbd_cdc_if.c **** result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
- 203 .loc 1 291 3 is_stmt 0 view .LVU37
- 204 0014 0A46 mov r2, r1
- 205 0016 0146 mov r1, r0
- 206 .LVL17:
- 291:USB_DEVICE/App/usbd_cdc_if.c **** result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
- 207 .loc 1 291 3 view .LVU38
- 208 0018 2046 mov r0, r4
- 209 .LVL18:
- 291:USB_DEVICE/App/usbd_cdc_if.c **** result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
- 210 .loc 1 291 3 view .LVU39
- 211 001a FFF7FEFF bl USBD_CDC_SetTxBuffer
- 212 .LVL19:
- 292:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END 7 */
- 213 .loc 1 292 3 is_stmt 1 view .LVU40
- 292:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END 7 */
- 214 .loc 1 292 12 is_stmt 0 view .LVU41
- 215 001e 2046 mov r0, r4
- ARM GAS /tmp/ccjzxu7E.s page 10
- 216 0020 FFF7FEFF bl USBD_CDC_TransmitPacket
- 217 .LVL20:
- 294:USB_DEVICE/App/usbd_cdc_if.c **** }
- 218 .loc 1 294 3 is_stmt 1 view .LVU42
- 219 .loc 1 295 1 is_stmt 0 view .LVU43
- 220 0024 10BD pop {r4, pc}
- 221 .L20:
- 222 0026 00BF .align 2
- 223 .L19:
- 224 0028 00000000 .word hUsbDeviceFS
- 225 .cfi_endproc
- 226 .LFE659:
- 228 .global USBD_Interface_fops_FS
- 229 .section .data.USBD_Interface_fops_FS,"aw"
- 230 .align 2
- 233 USBD_Interface_fops_FS:
- 234 0000 00000000 .word CDC_Init_FS
- 235 0004 00000000 .word CDC_DeInit_FS
- 236 0008 00000000 .word CDC_Control_FS
- 237 000c 00000000 .word CDC_Receive_FS
- 238 .global UserTxBufferFS
- 239 .section .bss.UserTxBufferFS,"aw",%nobits
- 240 .align 2
- 243 UserTxBufferFS:
- 244 0000 00000000 .space 1024
- 244 00000000
- 244 00000000
- 244 00000000
- 244 00000000
- 245 .global UserRxBufferFS
- 246 .section .bss.UserRxBufferFS,"aw",%nobits
- 247 .align 2
- 250 UserRxBufferFS:
- 251 0000 00000000 .space 1024
- 251 00000000
- 251 00000000
- 251 00000000
- 251 00000000
- 252 .text
- 253 .Letext0:
- 254 .file 2 "/opt/gcc-arm/arm-none-eabi/include/machine/_default_types.h"
- 255 .file 3 "/opt/gcc-arm/arm-none-eabi/include/sys/_stdint.h"
- 256 .file 4 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_dma.h"
- 257 .file 5 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_tim.h"
- 258 .file 6 "Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_def.h"
- 259 .file 7 "Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc/usbd_cdc.h"
- 260 .file 8 "USB_DEVICE/App/usbd_cdc_if.h"
- 261 .file 9 "Core/Inc/RFDAproto.h"
- ARM GAS /tmp/ccjzxu7E.s page 11
- DEFINED SYMBOLS
- *ABS*:00000000 usbd_cdc_if.c
- /tmp/ccjzxu7E.s:19 .text.CDC_DeInit_FS:00000000 $t
- /tmp/ccjzxu7E.s:24 .text.CDC_DeInit_FS:00000000 CDC_DeInit_FS
- /tmp/ccjzxu7E.s:39 .text.CDC_Control_FS:00000000 $t
- /tmp/ccjzxu7E.s:44 .text.CDC_Control_FS:00000000 CDC_Control_FS
- /tmp/ccjzxu7E.s:64 .text.CDC_Receive_FS:00000000 $t
- /tmp/ccjzxu7E.s:69 .text.CDC_Receive_FS:00000000 CDC_Receive_FS
- /tmp/ccjzxu7E.s:115 .text.CDC_Receive_FS:00000020 $d
- /tmp/ccjzxu7E.s:120 .text.CDC_Init_FS:00000000 $t
- /tmp/ccjzxu7E.s:125 .text.CDC_Init_FS:00000000 CDC_Init_FS
- /tmp/ccjzxu7E.s:155 .text.CDC_Init_FS:0000001c $d
- /tmp/ccjzxu7E.s:243 .bss.UserTxBufferFS:00000000 UserTxBufferFS
- /tmp/ccjzxu7E.s:250 .bss.UserRxBufferFS:00000000 UserRxBufferFS
- /tmp/ccjzxu7E.s:162 .text.CDC_Transmit_FS:00000000 $t
- /tmp/ccjzxu7E.s:168 .text.CDC_Transmit_FS:00000000 CDC_Transmit_FS
- /tmp/ccjzxu7E.s:224 .text.CDC_Transmit_FS:00000028 $d
- /tmp/ccjzxu7E.s:233 .data.USBD_Interface_fops_FS:00000000 USBD_Interface_fops_FS
- /tmp/ccjzxu7E.s:230 .data.USBD_Interface_fops_FS:00000000 $d
- /tmp/ccjzxu7E.s:240 .bss.UserTxBufferFS:00000000 $d
- /tmp/ccjzxu7E.s:247 .bss.UserRxBufferFS:00000000 $d
- UNDEFINED SYMBOLS
- USBD_CDC_SetRxBuffer
- USBD_CDC_ReceivePacket
- PWM
- hUsbDeviceFS
- USBD_CDC_SetTxBuffer
- USBD_CDC_TransmitPacket
|