ARM GAS /tmp/ccGo0ZHH.s page 1
1 .cpu cortex-m4
2 .arch armv7e-m
3 .fpu fpv4-sp-d16
4 .eabi_attribute 27, 1
5 .eabi_attribute 28, 1
6 .eabi_attribute 20, 1
7 .eabi_attribute 21, 1
8 .eabi_attribute 23, 3
9 .eabi_attribute 24, 1
10 .eabi_attribute 25, 1
11 .eabi_attribute 26, 1
12 .eabi_attribute 30, 1
13 .eabi_attribute 34, 1
14 .eabi_attribute 18, 4
15 .file "usart.c"
16 .text
17 .Ltext0:
18 .cfi_sections .debug_frame
19 .section .text.MX_UART4_Init,"ax",%progbits
20 .align 1
21 .global MX_UART4_Init
22 .syntax unified
23 .thumb
24 .thumb_func
26 MX_UART4_Init:
27 .LFB130:
28 .file 1 "Src/usart.c"
1:Src/usart.c **** /**
2:Src/usart.c **** ******************************************************************************
3:Src/usart.c **** * File Name : USART.c
4:Src/usart.c **** * Description : This file provides code for the configuration
5:Src/usart.c **** * of the USART instances.
6:Src/usart.c **** ******************************************************************************
7:Src/usart.c **** * @attention
8:Src/usart.c **** *
9:Src/usart.c **** *
© Copyright (c) 2022 STMicroelectronics.
10:Src/usart.c **** * All rights reserved.
11:Src/usart.c **** *
12:Src/usart.c **** * This software component is licensed by ST under BSD 3-Clause license,
13:Src/usart.c **** * the "License"; You may not use this file except in compliance with the
14:Src/usart.c **** * License. You may obtain a copy of the License at:
15:Src/usart.c **** * opensource.org/licenses/BSD-3-Clause
16:Src/usart.c **** *
17:Src/usart.c **** ******************************************************************************
18:Src/usart.c **** */
19:Src/usart.c ****
20:Src/usart.c **** /* Includes ------------------------------------------------------------------*/
21:Src/usart.c **** #include "usart.h"
22:Src/usart.c ****
23:Src/usart.c **** /* USER CODE BEGIN 0 */
24:Src/usart.c ****
25:Src/usart.c **** /* USER CODE END 0 */
26:Src/usart.c ****
27:Src/usart.c **** UART_HandleTypeDef huart4;
28:Src/usart.c **** UART_HandleTypeDef huart1;
29:Src/usart.c **** UART_HandleTypeDef huart2;
30:Src/usart.c ****
ARM GAS /tmp/ccGo0ZHH.s page 2
31:Src/usart.c **** /* UART4 init function */
32:Src/usart.c **** void MX_UART4_Init(void)
33:Src/usart.c **** {
29 .loc 1 33 1 view -0
30 .cfi_startproc
31 @ args = 0, pretend = 0, frame = 0
32 @ frame_needed = 0, uses_anonymous_args = 0
33 0000 08B5 push {r3, lr}
34 .LCFI0:
35 .cfi_def_cfa_offset 8
36 .cfi_offset 3, -8
37 .cfi_offset 14, -4
34:Src/usart.c ****
35:Src/usart.c **** huart4.Instance = UART4;
38 .loc 1 35 3 view .LVU1
39 .loc 1 35 19 is_stmt 0 view .LVU2
40 0002 0A48 ldr r0, .L5
41 0004 0A4B ldr r3, .L5+4
42 0006 0360 str r3, [r0]
36:Src/usart.c **** huart4.Init.BaudRate = 115200;
43 .loc 1 36 3 is_stmt 1 view .LVU3
44 .loc 1 36 24 is_stmt 0 view .LVU4
45 0008 4FF4E133 mov r3, #115200
46 000c 4360 str r3, [r0, #4]
37:Src/usart.c **** huart4.Init.WordLength = UART_WORDLENGTH_8B;
47 .loc 1 37 3 is_stmt 1 view .LVU5
48 .loc 1 37 26 is_stmt 0 view .LVU6
49 000e 0023 movs r3, #0
50 0010 8360 str r3, [r0, #8]
38:Src/usart.c **** huart4.Init.StopBits = UART_STOPBITS_1;
51 .loc 1 38 3 is_stmt 1 view .LVU7
52 .loc 1 38 24 is_stmt 0 view .LVU8
53 0012 C360 str r3, [r0, #12]
39:Src/usart.c **** huart4.Init.Parity = UART_PARITY_NONE;
54 .loc 1 39 3 is_stmt 1 view .LVU9
55 .loc 1 39 22 is_stmt 0 view .LVU10
56 0014 0361 str r3, [r0, #16]
40:Src/usart.c **** huart4.Init.Mode = UART_MODE_TX_RX;
57 .loc 1 40 3 is_stmt 1 view .LVU11
58 .loc 1 40 20 is_stmt 0 view .LVU12
59 0016 0C22 movs r2, #12
60 0018 4261 str r2, [r0, #20]
41:Src/usart.c **** huart4.Init.HwFlowCtl = UART_HWCONTROL_NONE;
61 .loc 1 41 3 is_stmt 1 view .LVU13
62 .loc 1 41 25 is_stmt 0 view .LVU14
63 001a 8361 str r3, [r0, #24]
42:Src/usart.c **** huart4.Init.OverSampling = UART_OVERSAMPLING_16;
64 .loc 1 42 3 is_stmt 1 view .LVU15
65 .loc 1 42 28 is_stmt 0 view .LVU16
66 001c C361 str r3, [r0, #28]
43:Src/usart.c **** if (HAL_UART_Init(&huart4) != HAL_OK)
67 .loc 1 43 3 is_stmt 1 view .LVU17
68 .loc 1 43 7 is_stmt 0 view .LVU18
69 001e FFF7FEFF bl HAL_UART_Init
70 .LVL0:
71 .loc 1 43 6 view .LVU19
72 0022 00B9 cbnz r0, .L4
ARM GAS /tmp/ccGo0ZHH.s page 3
73 .L1:
44:Src/usart.c **** {
45:Src/usart.c **** Error_Handler();
46:Src/usart.c **** }
47:Src/usart.c ****
48:Src/usart.c **** }
74 .loc 1 48 1 view .LVU20
75 0024 08BD pop {r3, pc}
76 .L4:
45:Src/usart.c **** }
77 .loc 1 45 5 is_stmt 1 view .LVU21
78 0026 FFF7FEFF bl Error_Handler
79 .LVL1:
80 .loc 1 48 1 is_stmt 0 view .LVU22
81 002a FBE7 b .L1
82 .L6:
83 .align 2
84 .L5:
85 002c 00000000 .word .LANCHOR0
86 0030 004C0040 .word 1073761280
87 .cfi_endproc
88 .LFE130:
90 .section .text.MX_USART1_UART_Init,"ax",%progbits
91 .align 1
92 .global MX_USART1_UART_Init
93 .syntax unified
94 .thumb
95 .thumb_func
97 MX_USART1_UART_Init:
98 .LFB131:
49:Src/usart.c **** /* USART1 init function */
50:Src/usart.c ****
51:Src/usart.c **** void MX_USART1_UART_Init(void)
52:Src/usart.c **** {
99 .loc 1 52 1 is_stmt 1 view -0
100 .cfi_startproc
101 @ args = 0, pretend = 0, frame = 0
102 @ frame_needed = 0, uses_anonymous_args = 0
103 0000 08B5 push {r3, lr}
104 .LCFI1:
105 .cfi_def_cfa_offset 8
106 .cfi_offset 3, -8
107 .cfi_offset 14, -4
53:Src/usart.c ****
54:Src/usart.c **** huart1.Instance = USART1;
108 .loc 1 54 3 view .LVU24
109 .loc 1 54 19 is_stmt 0 view .LVU25
110 0002 0A48 ldr r0, .L11
111 0004 0A4B ldr r3, .L11+4
112 0006 0360 str r3, [r0]
55:Src/usart.c **** huart1.Init.BaudRate = 115200;
113 .loc 1 55 3 is_stmt 1 view .LVU26
114 .loc 1 55 24 is_stmt 0 view .LVU27
115 0008 4FF4E133 mov r3, #115200
116 000c 4360 str r3, [r0, #4]
56:Src/usart.c **** huart1.Init.WordLength = UART_WORDLENGTH_8B;
117 .loc 1 56 3 is_stmt 1 view .LVU28
ARM GAS /tmp/ccGo0ZHH.s page 4
118 .loc 1 56 26 is_stmt 0 view .LVU29
119 000e 0023 movs r3, #0
120 0010 8360 str r3, [r0, #8]
57:Src/usart.c **** huart1.Init.StopBits = UART_STOPBITS_1;
121 .loc 1 57 3 is_stmt 1 view .LVU30
122 .loc 1 57 24 is_stmt 0 view .LVU31
123 0012 C360 str r3, [r0, #12]
58:Src/usart.c **** huart1.Init.Parity = UART_PARITY_NONE;
124 .loc 1 58 3 is_stmt 1 view .LVU32
125 .loc 1 58 22 is_stmt 0 view .LVU33
126 0014 0361 str r3, [r0, #16]
59:Src/usart.c **** huart1.Init.Mode = UART_MODE_TX_RX;
127 .loc 1 59 3 is_stmt 1 view .LVU34
128 .loc 1 59 20 is_stmt 0 view .LVU35
129 0016 0C22 movs r2, #12
130 0018 4261 str r2, [r0, #20]
60:Src/usart.c **** huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
131 .loc 1 60 3 is_stmt 1 view .LVU36
132 .loc 1 60 25 is_stmt 0 view .LVU37
133 001a 8361 str r3, [r0, #24]
61:Src/usart.c **** huart1.Init.OverSampling = UART_OVERSAMPLING_16;
134 .loc 1 61 3 is_stmt 1 view .LVU38
135 .loc 1 61 28 is_stmt 0 view .LVU39
136 001c C361 str r3, [r0, #28]
62:Src/usart.c **** if (HAL_UART_Init(&huart1) != HAL_OK)
137 .loc 1 62 3 is_stmt 1 view .LVU40
138 .loc 1 62 7 is_stmt 0 view .LVU41
139 001e FFF7FEFF bl HAL_UART_Init
140 .LVL2:
141 .loc 1 62 6 view .LVU42
142 0022 00B9 cbnz r0, .L10
143 .L7:
63:Src/usart.c **** {
64:Src/usart.c **** Error_Handler();
65:Src/usart.c **** }
66:Src/usart.c ****
67:Src/usart.c **** }
144 .loc 1 67 1 view .LVU43
145 0024 08BD pop {r3, pc}
146 .L10:
64:Src/usart.c **** }
147 .loc 1 64 5 is_stmt 1 view .LVU44
148 0026 FFF7FEFF bl Error_Handler
149 .LVL3:
150 .loc 1 67 1 is_stmt 0 view .LVU45
151 002a FBE7 b .L7
152 .L12:
153 .align 2
154 .L11:
155 002c 00000000 .word .LANCHOR1
156 0030 00100140 .word 1073811456
157 .cfi_endproc
158 .LFE131:
160 .section .text.MX_USART2_UART_Init,"ax",%progbits
161 .align 1
162 .global MX_USART2_UART_Init
163 .syntax unified
ARM GAS /tmp/ccGo0ZHH.s page 5
164 .thumb
165 .thumb_func
167 MX_USART2_UART_Init:
168 .LFB132:
68:Src/usart.c **** /* USART2 init function */
69:Src/usart.c ****
70:Src/usart.c **** void MX_USART2_UART_Init(void)
71:Src/usart.c **** {
169 .loc 1 71 1 is_stmt 1 view -0
170 .cfi_startproc
171 @ args = 0, pretend = 0, frame = 0
172 @ frame_needed = 0, uses_anonymous_args = 0
173 0000 08B5 push {r3, lr}
174 .LCFI2:
175 .cfi_def_cfa_offset 8
176 .cfi_offset 3, -8
177 .cfi_offset 14, -4
72:Src/usart.c ****
73:Src/usart.c **** huart2.Instance = USART2;
178 .loc 1 73 3 view .LVU47
179 .loc 1 73 19 is_stmt 0 view .LVU48
180 0002 0A48 ldr r0, .L17
181 0004 0A4B ldr r3, .L17+4
182 0006 0360 str r3, [r0]
74:Src/usart.c **** huart2.Init.BaudRate = 38400;
183 .loc 1 74 3 is_stmt 1 view .LVU49
184 .loc 1 74 24 is_stmt 0 view .LVU50
185 0008 4FF41643 mov r3, #38400
186 000c 4360 str r3, [r0, #4]
75:Src/usart.c **** huart2.Init.WordLength = UART_WORDLENGTH_8B;
187 .loc 1 75 3 is_stmt 1 view .LVU51
188 .loc 1 75 26 is_stmt 0 view .LVU52
189 000e 0023 movs r3, #0
190 0010 8360 str r3, [r0, #8]
76:Src/usart.c **** huart2.Init.StopBits = UART_STOPBITS_1;
191 .loc 1 76 3 is_stmt 1 view .LVU53
192 .loc 1 76 24 is_stmt 0 view .LVU54
193 0012 C360 str r3, [r0, #12]
77:Src/usart.c **** huart2.Init.Parity = UART_PARITY_NONE;
194 .loc 1 77 3 is_stmt 1 view .LVU55
195 .loc 1 77 22 is_stmt 0 view .LVU56
196 0014 0361 str r3, [r0, #16]
78:Src/usart.c **** huart2.Init.Mode = UART_MODE_TX_RX;
197 .loc 1 78 3 is_stmt 1 view .LVU57
198 .loc 1 78 20 is_stmt 0 view .LVU58
199 0016 0C22 movs r2, #12
200 0018 4261 str r2, [r0, #20]
79:Src/usart.c **** huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
201 .loc 1 79 3 is_stmt 1 view .LVU59
202 .loc 1 79 25 is_stmt 0 view .LVU60
203 001a 8361 str r3, [r0, #24]
80:Src/usart.c **** huart2.Init.OverSampling = UART_OVERSAMPLING_16;
204 .loc 1 80 3 is_stmt 1 view .LVU61
205 .loc 1 80 28 is_stmt 0 view .LVU62
206 001c C361 str r3, [r0, #28]
81:Src/usart.c **** if (HAL_UART_Init(&huart2) != HAL_OK)
207 .loc 1 81 3 is_stmt 1 view .LVU63
ARM GAS /tmp/ccGo0ZHH.s page 6
208 .loc 1 81 7 is_stmt 0 view .LVU64
209 001e FFF7FEFF bl HAL_UART_Init
210 .LVL4:
211 .loc 1 81 6 view .LVU65
212 0022 00B9 cbnz r0, .L16
213 .L13:
82:Src/usart.c **** {
83:Src/usart.c **** Error_Handler();
84:Src/usart.c **** }
85:Src/usart.c ****
86:Src/usart.c **** }
214 .loc 1 86 1 view .LVU66
215 0024 08BD pop {r3, pc}
216 .L16:
83:Src/usart.c **** }
217 .loc 1 83 5 is_stmt 1 view .LVU67
218 0026 FFF7FEFF bl Error_Handler
219 .LVL5:
220 .loc 1 86 1 is_stmt 0 view .LVU68
221 002a FBE7 b .L13
222 .L18:
223 .align 2
224 .L17:
225 002c 00000000 .word .LANCHOR2
226 0030 00440040 .word 1073759232
227 .cfi_endproc
228 .LFE132:
230 .section .text.HAL_UART_MspInit,"ax",%progbits
231 .align 1
232 .global HAL_UART_MspInit
233 .syntax unified
234 .thumb
235 .thumb_func
237 HAL_UART_MspInit:
238 .LVL6:
239 .LFB133:
87:Src/usart.c ****
88:Src/usart.c **** void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
89:Src/usart.c **** {
240 .loc 1 89 1 is_stmt 1 view -0
241 .cfi_startproc
242 @ args = 0, pretend = 0, frame = 48
243 @ frame_needed = 0, uses_anonymous_args = 0
244 .loc 1 89 1 is_stmt 0 view .LVU70
245 0000 10B5 push {r4, lr}
246 .LCFI3:
247 .cfi_def_cfa_offset 8
248 .cfi_offset 4, -8
249 .cfi_offset 14, -4
250 0002 8CB0 sub sp, sp, #48
251 .LCFI4:
252 .cfi_def_cfa_offset 56
90:Src/usart.c ****
91:Src/usart.c **** GPIO_InitTypeDef GPIO_InitStruct = {0};
253 .loc 1 91 3 is_stmt 1 view .LVU71
254 .loc 1 91 20 is_stmt 0 view .LVU72
255 0004 0023 movs r3, #0
ARM GAS /tmp/ccGo0ZHH.s page 7
256 0006 0793 str r3, [sp, #28]
257 0008 0893 str r3, [sp, #32]
258 000a 0993 str r3, [sp, #36]
259 000c 0A93 str r3, [sp, #40]
260 000e 0B93 str r3, [sp, #44]
92:Src/usart.c **** if(uartHandle->Instance==UART4)
261 .loc 1 92 3 is_stmt 1 view .LVU73
262 .loc 1 92 16 is_stmt 0 view .LVU74
263 0010 0368 ldr r3, [r0]
264 .loc 1 92 5 view .LVU75
265 0012 494A ldr r2, .L27
266 0014 9342 cmp r3, r2
267 0016 07D0 beq .L24
93:Src/usart.c **** {
94:Src/usart.c **** /* USER CODE BEGIN UART4_MspInit 0 */
95:Src/usart.c ****
96:Src/usart.c **** /* USER CODE END UART4_MspInit 0 */
97:Src/usart.c **** /* UART4 clock enable */
98:Src/usart.c **** __HAL_RCC_UART4_CLK_ENABLE();
99:Src/usart.c ****
100:Src/usart.c **** __HAL_RCC_GPIOC_CLK_ENABLE();
101:Src/usart.c **** /**UART4 GPIO Configuration
102:Src/usart.c **** PC10 ------> UART4_TX
103:Src/usart.c **** PC11 ------> UART4_RX
104:Src/usart.c **** */
105:Src/usart.c **** GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
106:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
107:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
108:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
109:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF8_UART4;
110:Src/usart.c **** HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
111:Src/usart.c ****
112:Src/usart.c **** /* UART4 interrupt Init */
113:Src/usart.c **** HAL_NVIC_SetPriority(UART4_IRQn, 0, 0);
114:Src/usart.c **** HAL_NVIC_EnableIRQ(UART4_IRQn);
115:Src/usart.c **** /* USER CODE BEGIN UART4_MspInit 1 */
116:Src/usart.c ****
117:Src/usart.c **** /* USER CODE END UART4_MspInit 1 */
118:Src/usart.c **** }
119:Src/usart.c **** else if(uartHandle->Instance==USART1)
268 .loc 1 119 8 is_stmt 1 view .LVU76
269 .loc 1 119 10 is_stmt 0 view .LVU77
270 0018 484A ldr r2, .L27+4
271 001a 9342 cmp r3, r2
272 001c 32D0 beq .L25
120:Src/usart.c **** {
121:Src/usart.c **** /* USER CODE BEGIN USART1_MspInit 0 */
122:Src/usart.c ****
123:Src/usart.c **** /* USER CODE END USART1_MspInit 0 */
124:Src/usart.c **** /* USART1 clock enable */
125:Src/usart.c **** __HAL_RCC_USART1_CLK_ENABLE();
126:Src/usart.c ****
127:Src/usart.c **** __HAL_RCC_GPIOB_CLK_ENABLE();
128:Src/usart.c **** /**USART1 GPIO Configuration
129:Src/usart.c **** PB6 ------> USART1_TX
130:Src/usart.c **** PB7 ------> USART1_RX
131:Src/usart.c **** */
ARM GAS /tmp/ccGo0ZHH.s page 8
132:Src/usart.c **** GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7;
133:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
134:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
135:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
136:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF7_USART1;
137:Src/usart.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
138:Src/usart.c ****
139:Src/usart.c **** /* USART1 interrupt Init */
140:Src/usart.c **** HAL_NVIC_SetPriority(USART1_IRQn, 0, 0);
141:Src/usart.c **** HAL_NVIC_EnableIRQ(USART1_IRQn);
142:Src/usart.c **** /* USER CODE BEGIN USART1_MspInit 1 */
143:Src/usart.c ****
144:Src/usart.c **** /* USER CODE END USART1_MspInit 1 */
145:Src/usart.c **** }
146:Src/usart.c **** else if(uartHandle->Instance==USART2)
273 .loc 1 146 8 is_stmt 1 view .LVU78
274 .loc 1 146 10 is_stmt 0 view .LVU79
275 001e 484A ldr r2, .L27+8
276 0020 9342 cmp r3, r2
277 0022 5CD0 beq .L26
278 .LVL7:
279 .L19:
147:Src/usart.c **** {
148:Src/usart.c **** /* USER CODE BEGIN USART2_MspInit 0 */
149:Src/usart.c ****
150:Src/usart.c **** /* USER CODE END USART2_MspInit 0 */
151:Src/usart.c **** /* USART2 clock enable */
152:Src/usart.c **** __HAL_RCC_USART2_CLK_ENABLE();
153:Src/usart.c ****
154:Src/usart.c **** __HAL_RCC_GPIOD_CLK_ENABLE();
155:Src/usart.c **** /**USART2 GPIO Configuration
156:Src/usart.c **** PD5 ------> USART2_TX
157:Src/usart.c **** PD6 ------> USART2_RX
158:Src/usart.c **** */
159:Src/usart.c **** GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_6;
160:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
161:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
162:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
163:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
164:Src/usart.c **** HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
165:Src/usart.c ****
166:Src/usart.c **** /* USART2 interrupt Init */
167:Src/usart.c **** HAL_NVIC_SetPriority(USART2_IRQn, 0, 0);
168:Src/usart.c **** HAL_NVIC_EnableIRQ(USART2_IRQn);
169:Src/usart.c **** /* USER CODE BEGIN USART2_MspInit 1 */
170:Src/usart.c ****
171:Src/usart.c **** /* USER CODE END USART2_MspInit 1 */
172:Src/usart.c **** }
173:Src/usart.c **** }
280 .loc 1 173 1 view .LVU80
281 0024 0CB0 add sp, sp, #48
282 .LCFI5:
283 .cfi_remember_state
284 .cfi_def_cfa_offset 8
285 @ sp needed
286 0026 10BD pop {r4, pc}
287 .LVL8:
ARM GAS /tmp/ccGo0ZHH.s page 9
288 .L24:
289 .LCFI6:
290 .cfi_restore_state
98:Src/usart.c ****
291 .loc 1 98 5 is_stmt 1 view .LVU81
292 .LBB2:
98:Src/usart.c ****
293 .loc 1 98 5 view .LVU82
294 0028 0024 movs r4, #0
295 002a 0194 str r4, [sp, #4]
98:Src/usart.c ****
296 .loc 1 98 5 view .LVU83
297 002c 454B ldr r3, .L27+12
298 002e 1A6C ldr r2, [r3, #64]
299 0030 42F40022 orr r2, r2, #524288
300 0034 1A64 str r2, [r3, #64]
98:Src/usart.c ****
301 .loc 1 98 5 view .LVU84
302 0036 1A6C ldr r2, [r3, #64]
303 0038 02F40022 and r2, r2, #524288
304 003c 0192 str r2, [sp, #4]
98:Src/usart.c ****
305 .loc 1 98 5 view .LVU85
306 003e 019A ldr r2, [sp, #4]
307 .LBE2:
98:Src/usart.c ****
308 .loc 1 98 5 view .LVU86
100:Src/usart.c **** /**UART4 GPIO Configuration
309 .loc 1 100 5 view .LVU87
310 .LBB3:
100:Src/usart.c **** /**UART4 GPIO Configuration
311 .loc 1 100 5 view .LVU88
312 0040 0294 str r4, [sp, #8]
100:Src/usart.c **** /**UART4 GPIO Configuration
313 .loc 1 100 5 view .LVU89
314 0042 1A6B ldr r2, [r3, #48]
315 0044 42F00402 orr r2, r2, #4
316 0048 1A63 str r2, [r3, #48]
100:Src/usart.c **** /**UART4 GPIO Configuration
317 .loc 1 100 5 view .LVU90
318 004a 1B6B ldr r3, [r3, #48]
319 004c 03F00403 and r3, r3, #4
320 0050 0293 str r3, [sp, #8]
100:Src/usart.c **** /**UART4 GPIO Configuration
321 .loc 1 100 5 view .LVU91
322 0052 029B ldr r3, [sp, #8]
323 .LBE3:
100:Src/usart.c **** /**UART4 GPIO Configuration
324 .loc 1 100 5 view .LVU92
105:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
325 .loc 1 105 5 view .LVU93
105:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
326 .loc 1 105 25 is_stmt 0 view .LVU94
327 0054 4FF44063 mov r3, #3072
328 0058 0793 str r3, [sp, #28]
106:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
329 .loc 1 106 5 is_stmt 1 view .LVU95
ARM GAS /tmp/ccGo0ZHH.s page 10
106:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
330 .loc 1 106 26 is_stmt 0 view .LVU96
331 005a 0223 movs r3, #2
332 005c 0893 str r3, [sp, #32]
107:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
333 .loc 1 107 5 is_stmt 1 view .LVU97
107:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
334 .loc 1 107 26 is_stmt 0 view .LVU98
335 005e 0123 movs r3, #1
336 0060 0993 str r3, [sp, #36]
108:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF8_UART4;
337 .loc 1 108 5 is_stmt 1 view .LVU99
108:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF8_UART4;
338 .loc 1 108 27 is_stmt 0 view .LVU100
339 0062 0323 movs r3, #3
340 0064 0A93 str r3, [sp, #40]
109:Src/usart.c **** HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
341 .loc 1 109 5 is_stmt 1 view .LVU101
109:Src/usart.c **** HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
342 .loc 1 109 31 is_stmt 0 view .LVU102
343 0066 0823 movs r3, #8
344 0068 0B93 str r3, [sp, #44]
110:Src/usart.c ****
345 .loc 1 110 5 is_stmt 1 view .LVU103
346 006a 07A9 add r1, sp, #28
347 006c 3648 ldr r0, .L27+16
348 .LVL9:
110:Src/usart.c ****
349 .loc 1 110 5 is_stmt 0 view .LVU104
350 006e FFF7FEFF bl HAL_GPIO_Init
351 .LVL10:
113:Src/usart.c **** HAL_NVIC_EnableIRQ(UART4_IRQn);
352 .loc 1 113 5 is_stmt 1 view .LVU105
353 0072 2246 mov r2, r4
354 0074 2146 mov r1, r4
355 0076 3420 movs r0, #52
356 0078 FFF7FEFF bl HAL_NVIC_SetPriority
357 .LVL11:
114:Src/usart.c **** /* USER CODE BEGIN UART4_MspInit 1 */
358 .loc 1 114 5 view .LVU106
359 007c 3420 movs r0, #52
360 007e FFF7FEFF bl HAL_NVIC_EnableIRQ
361 .LVL12:
362 0082 CFE7 b .L19
363 .LVL13:
364 .L25:
125:Src/usart.c ****
365 .loc 1 125 5 view .LVU107
366 .LBB4:
125:Src/usart.c ****
367 .loc 1 125 5 view .LVU108
368 0084 0024 movs r4, #0
369 0086 0394 str r4, [sp, #12]
125:Src/usart.c ****
370 .loc 1 125 5 view .LVU109
371 0088 2E4B ldr r3, .L27+12
372 008a 5A6C ldr r2, [r3, #68]
ARM GAS /tmp/ccGo0ZHH.s page 11
373 008c 42F01002 orr r2, r2, #16
374 0090 5A64 str r2, [r3, #68]
125:Src/usart.c ****
375 .loc 1 125 5 view .LVU110
376 0092 5A6C ldr r2, [r3, #68]
377 0094 02F01002 and r2, r2, #16
378 0098 0392 str r2, [sp, #12]
125:Src/usart.c ****
379 .loc 1 125 5 view .LVU111
380 009a 039A ldr r2, [sp, #12]
381 .LBE4:
125:Src/usart.c ****
382 .loc 1 125 5 view .LVU112
127:Src/usart.c **** /**USART1 GPIO Configuration
383 .loc 1 127 5 view .LVU113
384 .LBB5:
127:Src/usart.c **** /**USART1 GPIO Configuration
385 .loc 1 127 5 view .LVU114
386 009c 0494 str r4, [sp, #16]
127:Src/usart.c **** /**USART1 GPIO Configuration
387 .loc 1 127 5 view .LVU115
388 009e 1A6B ldr r2, [r3, #48]
389 00a0 42F00202 orr r2, r2, #2
390 00a4 1A63 str r2, [r3, #48]
127:Src/usart.c **** /**USART1 GPIO Configuration
391 .loc 1 127 5 view .LVU116
392 00a6 1B6B ldr r3, [r3, #48]
393 00a8 03F00203 and r3, r3, #2
394 00ac 0493 str r3, [sp, #16]
127:Src/usart.c **** /**USART1 GPIO Configuration
395 .loc 1 127 5 view .LVU117
396 00ae 049B ldr r3, [sp, #16]
397 .LBE5:
127:Src/usart.c **** /**USART1 GPIO Configuration
398 .loc 1 127 5 view .LVU118
132:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
399 .loc 1 132 5 view .LVU119
132:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
400 .loc 1 132 25 is_stmt 0 view .LVU120
401 00b0 C023 movs r3, #192
402 00b2 0793 str r3, [sp, #28]
133:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
403 .loc 1 133 5 is_stmt 1 view .LVU121
133:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
404 .loc 1 133 26 is_stmt 0 view .LVU122
405 00b4 0223 movs r3, #2
406 00b6 0893 str r3, [sp, #32]
134:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
407 .loc 1 134 5 is_stmt 1 view .LVU123
134:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
408 .loc 1 134 26 is_stmt 0 view .LVU124
409 00b8 0123 movs r3, #1
410 00ba 0993 str r3, [sp, #36]
135:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF7_USART1;
411 .loc 1 135 5 is_stmt 1 view .LVU125
135:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF7_USART1;
412 .loc 1 135 27 is_stmt 0 view .LVU126
ARM GAS /tmp/ccGo0ZHH.s page 12
413 00bc 0323 movs r3, #3
414 00be 0A93 str r3, [sp, #40]
136:Src/usart.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
415 .loc 1 136 5 is_stmt 1 view .LVU127
136:Src/usart.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
416 .loc 1 136 31 is_stmt 0 view .LVU128
417 00c0 0723 movs r3, #7
418 00c2 0B93 str r3, [sp, #44]
137:Src/usart.c ****
419 .loc 1 137 5 is_stmt 1 view .LVU129
420 00c4 07A9 add r1, sp, #28
421 00c6 2148 ldr r0, .L27+20
422 .LVL14:
137:Src/usart.c ****
423 .loc 1 137 5 is_stmt 0 view .LVU130
424 00c8 FFF7FEFF bl HAL_GPIO_Init
425 .LVL15:
140:Src/usart.c **** HAL_NVIC_EnableIRQ(USART1_IRQn);
426 .loc 1 140 5 is_stmt 1 view .LVU131
427 00cc 2246 mov r2, r4
428 00ce 2146 mov r1, r4
429 00d0 2520 movs r0, #37
430 00d2 FFF7FEFF bl HAL_NVIC_SetPriority
431 .LVL16:
141:Src/usart.c **** /* USER CODE BEGIN USART1_MspInit 1 */
432 .loc 1 141 5 view .LVU132
433 00d6 2520 movs r0, #37
434 00d8 FFF7FEFF bl HAL_NVIC_EnableIRQ
435 .LVL17:
436 00dc A2E7 b .L19
437 .LVL18:
438 .L26:
152:Src/usart.c ****
439 .loc 1 152 5 view .LVU133
440 .LBB6:
152:Src/usart.c ****
441 .loc 1 152 5 view .LVU134
442 00de 0024 movs r4, #0
443 00e0 0594 str r4, [sp, #20]
152:Src/usart.c ****
444 .loc 1 152 5 view .LVU135
445 00e2 184B ldr r3, .L27+12
446 00e4 1A6C ldr r2, [r3, #64]
447 00e6 42F40032 orr r2, r2, #131072
448 00ea 1A64 str r2, [r3, #64]
152:Src/usart.c ****
449 .loc 1 152 5 view .LVU136
450 00ec 1A6C ldr r2, [r3, #64]
451 00ee 02F40032 and r2, r2, #131072
452 00f2 0592 str r2, [sp, #20]
152:Src/usart.c ****
453 .loc 1 152 5 view .LVU137
454 00f4 059A ldr r2, [sp, #20]
455 .LBE6:
152:Src/usart.c ****
456 .loc 1 152 5 view .LVU138
154:Src/usart.c **** /**USART2 GPIO Configuration
ARM GAS /tmp/ccGo0ZHH.s page 13
457 .loc 1 154 5 view .LVU139
458 .LBB7:
154:Src/usart.c **** /**USART2 GPIO Configuration
459 .loc 1 154 5 view .LVU140
460 00f6 0694 str r4, [sp, #24]
154:Src/usart.c **** /**USART2 GPIO Configuration
461 .loc 1 154 5 view .LVU141
462 00f8 1A6B ldr r2, [r3, #48]
463 00fa 42F00802 orr r2, r2, #8
464 00fe 1A63 str r2, [r3, #48]
154:Src/usart.c **** /**USART2 GPIO Configuration
465 .loc 1 154 5 view .LVU142
466 0100 1B6B ldr r3, [r3, #48]
467 0102 03F00803 and r3, r3, #8
468 0106 0693 str r3, [sp, #24]
154:Src/usart.c **** /**USART2 GPIO Configuration
469 .loc 1 154 5 view .LVU143
470 0108 069B ldr r3, [sp, #24]
471 .LBE7:
154:Src/usart.c **** /**USART2 GPIO Configuration
472 .loc 1 154 5 view .LVU144
159:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
473 .loc 1 159 5 view .LVU145
159:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
474 .loc 1 159 25 is_stmt 0 view .LVU146
475 010a 6023 movs r3, #96
476 010c 0793 str r3, [sp, #28]
160:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
477 .loc 1 160 5 is_stmt 1 view .LVU147
160:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
478 .loc 1 160 26 is_stmt 0 view .LVU148
479 010e 0223 movs r3, #2
480 0110 0893 str r3, [sp, #32]
161:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
481 .loc 1 161 5 is_stmt 1 view .LVU149
161:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
482 .loc 1 161 26 is_stmt 0 view .LVU150
483 0112 0123 movs r3, #1
484 0114 0993 str r3, [sp, #36]
162:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
485 .loc 1 162 5 is_stmt 1 view .LVU151
162:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
486 .loc 1 162 27 is_stmt 0 view .LVU152
487 0116 0323 movs r3, #3
488 0118 0A93 str r3, [sp, #40]
163:Src/usart.c **** HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
489 .loc 1 163 5 is_stmt 1 view .LVU153
163:Src/usart.c **** HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
490 .loc 1 163 31 is_stmt 0 view .LVU154
491 011a 0723 movs r3, #7
492 011c 0B93 str r3, [sp, #44]
164:Src/usart.c ****
493 .loc 1 164 5 is_stmt 1 view .LVU155
494 011e 07A9 add r1, sp, #28
495 0120 0B48 ldr r0, .L27+24
496 .LVL19:
164:Src/usart.c ****
ARM GAS /tmp/ccGo0ZHH.s page 14
497 .loc 1 164 5 is_stmt 0 view .LVU156
498 0122 FFF7FEFF bl HAL_GPIO_Init
499 .LVL20:
167:Src/usart.c **** HAL_NVIC_EnableIRQ(USART2_IRQn);
500 .loc 1 167 5 is_stmt 1 view .LVU157
501 0126 2246 mov r2, r4
502 0128 2146 mov r1, r4
503 012a 2620 movs r0, #38
504 012c FFF7FEFF bl HAL_NVIC_SetPriority
505 .LVL21:
168:Src/usart.c **** /* USER CODE BEGIN USART2_MspInit 1 */
506 .loc 1 168 5 view .LVU158
507 0130 2620 movs r0, #38
508 0132 FFF7FEFF bl HAL_NVIC_EnableIRQ
509 .LVL22:
510 .loc 1 173 1 is_stmt 0 view .LVU159
511 0136 75E7 b .L19
512 .L28:
513 .align 2
514 .L27:
515 0138 004C0040 .word 1073761280
516 013c 00100140 .word 1073811456
517 0140 00440040 .word 1073759232
518 0144 00380240 .word 1073887232
519 0148 00080240 .word 1073874944
520 014c 00040240 .word 1073873920
521 0150 000C0240 .word 1073875968
522 .cfi_endproc
523 .LFE133:
525 .section .text.HAL_UART_MspDeInit,"ax",%progbits
526 .align 1
527 .global HAL_UART_MspDeInit
528 .syntax unified
529 .thumb
530 .thumb_func
532 HAL_UART_MspDeInit:
533 .LVL23:
534 .LFB134:
174:Src/usart.c ****
175:Src/usart.c **** void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
176:Src/usart.c **** {
535 .loc 1 176 1 is_stmt 1 view -0
536 .cfi_startproc
537 @ args = 0, pretend = 0, frame = 0
538 @ frame_needed = 0, uses_anonymous_args = 0
539 .loc 1 176 1 is_stmt 0 view .LVU161
540 0000 08B5 push {r3, lr}
541 .LCFI7:
542 .cfi_def_cfa_offset 8
543 .cfi_offset 3, -8
544 .cfi_offset 14, -4
177:Src/usart.c ****
178:Src/usart.c **** if(uartHandle->Instance==UART4)
545 .loc 1 178 3 is_stmt 1 view .LVU162
546 .loc 1 178 16 is_stmt 0 view .LVU163
547 0002 0368 ldr r3, [r0]
548 .loc 1 178 5 view .LVU164
ARM GAS /tmp/ccGo0ZHH.s page 15
549 0004 1A4A ldr r2, .L37
550 0006 9342 cmp r3, r2
551 0008 06D0 beq .L34
179:Src/usart.c **** {
180:Src/usart.c **** /* USER CODE BEGIN UART4_MspDeInit 0 */
181:Src/usart.c ****
182:Src/usart.c **** /* USER CODE END UART4_MspDeInit 0 */
183:Src/usart.c **** /* Peripheral clock disable */
184:Src/usart.c **** __HAL_RCC_UART4_CLK_DISABLE();
185:Src/usart.c ****
186:Src/usart.c **** /**UART4 GPIO Configuration
187:Src/usart.c **** PC10 ------> UART4_TX
188:Src/usart.c **** PC11 ------> UART4_RX
189:Src/usart.c **** */
190:Src/usart.c **** HAL_GPIO_DeInit(GPIOC, GPIO_PIN_10|GPIO_PIN_11);
191:Src/usart.c ****
192:Src/usart.c **** /* UART4 interrupt Deinit */
193:Src/usart.c **** HAL_NVIC_DisableIRQ(UART4_IRQn);
194:Src/usart.c **** /* USER CODE BEGIN UART4_MspDeInit 1 */
195:Src/usart.c ****
196:Src/usart.c **** /* USER CODE END UART4_MspDeInit 1 */
197:Src/usart.c **** }
198:Src/usart.c **** else if(uartHandle->Instance==USART1)
552 .loc 1 198 8 is_stmt 1 view .LVU165
553 .loc 1 198 10 is_stmt 0 view .LVU166
554 000a 1A4A ldr r2, .L37+4
555 000c 9342 cmp r3, r2
556 000e 12D0 beq .L35
199:Src/usart.c **** {
200:Src/usart.c **** /* USER CODE BEGIN USART1_MspDeInit 0 */
201:Src/usart.c ****
202:Src/usart.c **** /* USER CODE END USART1_MspDeInit 0 */
203:Src/usart.c **** /* Peripheral clock disable */
204:Src/usart.c **** __HAL_RCC_USART1_CLK_DISABLE();
205:Src/usart.c ****
206:Src/usart.c **** /**USART1 GPIO Configuration
207:Src/usart.c **** PB6 ------> USART1_TX
208:Src/usart.c **** PB7 ------> USART1_RX
209:Src/usart.c **** */
210:Src/usart.c **** HAL_GPIO_DeInit(GPIOB, GPIO_PIN_6|GPIO_PIN_7);
211:Src/usart.c ****
212:Src/usart.c **** /* USART1 interrupt Deinit */
213:Src/usart.c **** HAL_NVIC_DisableIRQ(USART1_IRQn);
214:Src/usart.c **** /* USER CODE BEGIN USART1_MspDeInit 1 */
215:Src/usart.c ****
216:Src/usart.c **** /* USER CODE END USART1_MspDeInit 1 */
217:Src/usart.c **** }
218:Src/usart.c **** else if(uartHandle->Instance==USART2)
557 .loc 1 218 8 is_stmt 1 view .LVU167
558 .loc 1 218 10 is_stmt 0 view .LVU168
559 0010 194A ldr r2, .L37+8
560 0012 9342 cmp r3, r2
561 0014 1DD0 beq .L36
562 .LVL24:
563 .L29:
219:Src/usart.c **** {
220:Src/usart.c **** /* USER CODE BEGIN USART2_MspDeInit 0 */
ARM GAS /tmp/ccGo0ZHH.s page 16
221:Src/usart.c ****
222:Src/usart.c **** /* USER CODE END USART2_MspDeInit 0 */
223:Src/usart.c **** /* Peripheral clock disable */
224:Src/usart.c **** __HAL_RCC_USART2_CLK_DISABLE();
225:Src/usart.c ****
226:Src/usart.c **** /**USART2 GPIO Configuration
227:Src/usart.c **** PD5 ------> USART2_TX
228:Src/usart.c **** PD6 ------> USART2_RX
229:Src/usart.c **** */
230:Src/usart.c **** HAL_GPIO_DeInit(GPIOD, GPIO_PIN_5|GPIO_PIN_6);
231:Src/usart.c ****
232:Src/usart.c **** /* USART2 interrupt Deinit */
233:Src/usart.c **** HAL_NVIC_DisableIRQ(USART2_IRQn);
234:Src/usart.c **** /* USER CODE BEGIN USART2_MspDeInit 1 */
235:Src/usart.c ****
236:Src/usart.c **** /* USER CODE END USART2_MspDeInit 1 */
237:Src/usart.c **** }
238:Src/usart.c **** }
564 .loc 1 238 1 view .LVU169
565 0016 08BD pop {r3, pc}
566 .LVL25:
567 .L34:
184:Src/usart.c ****
568 .loc 1 184 5 is_stmt 1 view .LVU170
569 0018 02F5F632 add r2, r2, #125952
570 001c 136C ldr r3, [r2, #64]
571 001e 23F40023 bic r3, r3, #524288
572 0022 1364 str r3, [r2, #64]
190:Src/usart.c ****
573 .loc 1 190 5 view .LVU171
574 0024 4FF44061 mov r1, #3072
575 0028 1448 ldr r0, .L37+12
576 .LVL26:
190:Src/usart.c ****
577 .loc 1 190 5 is_stmt 0 view .LVU172
578 002a FFF7FEFF bl HAL_GPIO_DeInit
579 .LVL27:
193:Src/usart.c **** /* USER CODE BEGIN UART4_MspDeInit 1 */
580 .loc 1 193 5 is_stmt 1 view .LVU173
581 002e 3420 movs r0, #52
582 0030 FFF7FEFF bl HAL_NVIC_DisableIRQ
583 .LVL28:
584 0034 EFE7 b .L29
585 .LVL29:
586 .L35:
204:Src/usart.c ****
587 .loc 1 204 5 view .LVU174
588 0036 02F59432 add r2, r2, #75776
589 003a 536C ldr r3, [r2, #68]
590 003c 23F01003 bic r3, r3, #16
591 0040 5364 str r3, [r2, #68]
210:Src/usart.c ****
592 .loc 1 210 5 view .LVU175
593 0042 C021 movs r1, #192
594 0044 0E48 ldr r0, .L37+16
595 .LVL30:
210:Src/usart.c ****
ARM GAS /tmp/ccGo0ZHH.s page 17
596 .loc 1 210 5 is_stmt 0 view .LVU176
597 0046 FFF7FEFF bl HAL_GPIO_DeInit
598 .LVL31:
213:Src/usart.c **** /* USER CODE BEGIN USART1_MspDeInit 1 */
599 .loc 1 213 5 is_stmt 1 view .LVU177
600 004a 2520 movs r0, #37
601 004c FFF7FEFF bl HAL_NVIC_DisableIRQ
602 .LVL32:
603 0050 E1E7 b .L29
604 .LVL33:
605 .L36:
224:Src/usart.c ****
606 .loc 1 224 5 view .LVU178
607 0052 02F5FA32 add r2, r2, #128000
608 0056 136C ldr r3, [r2, #64]
609 0058 23F40033 bic r3, r3, #131072
610 005c 1364 str r3, [r2, #64]
230:Src/usart.c ****
611 .loc 1 230 5 view .LVU179
612 005e 6021 movs r1, #96
613 0060 0848 ldr r0, .L37+20
614 .LVL34:
230:Src/usart.c ****
615 .loc 1 230 5 is_stmt 0 view .LVU180
616 0062 FFF7FEFF bl HAL_GPIO_DeInit
617 .LVL35:
233:Src/usart.c **** /* USER CODE BEGIN USART2_MspDeInit 1 */
618 .loc 1 233 5 is_stmt 1 view .LVU181
619 0066 2620 movs r0, #38
620 0068 FFF7FEFF bl HAL_NVIC_DisableIRQ
621 .LVL36:
622 .loc 1 238 1 is_stmt 0 view .LVU182
623 006c D3E7 b .L29
624 .L38:
625 006e 00BF .align 2
626 .L37:
627 0070 004C0040 .word 1073761280
628 0074 00100140 .word 1073811456
629 0078 00440040 .word 1073759232
630 007c 00080240 .word 1073874944
631 0080 00040240 .word 1073873920
632 0084 000C0240 .word 1073875968
633 .cfi_endproc
634 .LFE134:
636 .section .text.__io_putchar,"ax",%progbits
637 .align 1
638 .global __io_putchar
639 .syntax unified
640 .thumb
641 .thumb_func
643 __io_putchar:
644 .LVL37:
645 .LFB135:
239:Src/usart.c ****
240:Src/usart.c **** /* USER CODE BEGIN 1 */
241:Src/usart.c **** #ifdef __GNUC__
242:Src/usart.c **** /* With GCC/RAISONANCE, small printf (option LD Linker->Libraries->Small printf
ARM GAS /tmp/ccGo0ZHH.s page 18
243:Src/usart.c **** set to 'Yes') calls __io_putchar() */
244:Src/usart.c **** #define PUTCHAR_PROTOTYPE int __io_putchar(int ch)
245:Src/usart.c **** #else
246:Src/usart.c **** #define PUTCHAR_PROTOTYPE int fputc(int ch)
247:Src/usart.c **** #endif /* __GNUC__ */
248:Src/usart.c **** /**
249:Src/usart.c **** * @brief Retargets the C library printf function to the USART.
250:Src/usart.c **** * @param None
251:Src/usart.c **** * @retval None
252:Src/usart.c **** */
253:Src/usart.c **** PUTCHAR_PROTOTYPE
254:Src/usart.c **** {
646 .loc 1 254 1 is_stmt 1 view -0
647 .cfi_startproc
648 @ args = 0, pretend = 0, frame = 8
649 @ frame_needed = 0, uses_anonymous_args = 0
650 .loc 1 254 1 is_stmt 0 view .LVU184
651 0000 00B5 push {lr}
652 .LCFI8:
653 .cfi_def_cfa_offset 4
654 .cfi_offset 14, -4
655 0002 83B0 sub sp, sp, #12
656 .LCFI9:
657 .cfi_def_cfa_offset 16
658 0004 0190 str r0, [sp, #4]
255:Src/usart.c **** /* Place your implementation of fputc here */
256:Src/usart.c **** /* e.g. write a character to the EVAL_COM1 and Loop until the end of transmission */
257:Src/usart.c **** HAL_UART_Transmit(&huart4, (uint8_t *)&ch, 1, 0xFFFF);
659 .loc 1 257 3 is_stmt 1 view .LVU185
660 0006 4FF6FF73 movw r3, #65535
661 000a 0122 movs r2, #1
662 000c 01A9 add r1, sp, #4
663 000e 0348 ldr r0, .L41
664 .LVL38:
665 .loc 1 257 3 is_stmt 0 view .LVU186
666 0010 FFF7FEFF bl HAL_UART_Transmit
667 .LVL39:
258:Src/usart.c ****
259:Src/usart.c **** return ch;
668 .loc 1 259 3 is_stmt 1 view .LVU187
260:Src/usart.c **** }
669 .loc 1 260 1 is_stmt 0 view .LVU188
670 0014 0198 ldr r0, [sp, #4]
671 0016 03B0 add sp, sp, #12
672 .LCFI10:
673 .cfi_def_cfa_offset 4
674 @ sp needed
675 0018 5DF804FB ldr pc, [sp], #4
676 .L42:
677 .align 2
678 .L41:
679 001c 00000000 .word .LANCHOR0
680 .cfi_endproc
681 .LFE135:
683 .global huart2
684 .global huart1
685 .global huart4
ARM GAS /tmp/ccGo0ZHH.s page 19
686 .section .bss.huart1,"aw",%nobits
687 .align 2
688 .set .LANCHOR1,. + 0
691 huart1:
692 0000 00000000 .space 64
692 00000000
692 00000000
692 00000000
692 00000000
693 .section .bss.huart2,"aw",%nobits
694 .align 2
695 .set .LANCHOR2,. + 0
698 huart2:
699 0000 00000000 .space 64
699 00000000
699 00000000
699 00000000
699 00000000
700 .section .bss.huart4,"aw",%nobits
701 .align 2
702 .set .LANCHOR0,. + 0
705 huart4:
706 0000 00000000 .space 64
706 00000000
706 00000000
706 00000000
706 00000000
707 .text
708 .Letext0:
709 .file 2 "/home/gitc/\346\241\214\351\235\242/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/
710 .file 3 "/home/gitc/\346\241\214\351\235\242/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/
711 .file 4 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h"
712 .file 5 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h"
713 .file 6 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h"
714 .file 7 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h"
715 .file 8 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h"
716 .file 9 "Inc/usart.h"
717 .file 10 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h"
718 .file 11 "Inc/main.h"
ARM GAS /tmp/ccGo0ZHH.s page 20
DEFINED SYMBOLS
*ABS*:0000000000000000 usart.c
/tmp/ccGo0ZHH.s:20 .text.MX_UART4_Init:0000000000000000 $t
/tmp/ccGo0ZHH.s:26 .text.MX_UART4_Init:0000000000000000 MX_UART4_Init
/tmp/ccGo0ZHH.s:85 .text.MX_UART4_Init:000000000000002c $d
/tmp/ccGo0ZHH.s:91 .text.MX_USART1_UART_Init:0000000000000000 $t
/tmp/ccGo0ZHH.s:97 .text.MX_USART1_UART_Init:0000000000000000 MX_USART1_UART_Init
/tmp/ccGo0ZHH.s:155 .text.MX_USART1_UART_Init:000000000000002c $d
/tmp/ccGo0ZHH.s:161 .text.MX_USART2_UART_Init:0000000000000000 $t
/tmp/ccGo0ZHH.s:167 .text.MX_USART2_UART_Init:0000000000000000 MX_USART2_UART_Init
/tmp/ccGo0ZHH.s:225 .text.MX_USART2_UART_Init:000000000000002c $d
/tmp/ccGo0ZHH.s:231 .text.HAL_UART_MspInit:0000000000000000 $t
/tmp/ccGo0ZHH.s:237 .text.HAL_UART_MspInit:0000000000000000 HAL_UART_MspInit
/tmp/ccGo0ZHH.s:515 .text.HAL_UART_MspInit:0000000000000138 $d
/tmp/ccGo0ZHH.s:526 .text.HAL_UART_MspDeInit:0000000000000000 $t
/tmp/ccGo0ZHH.s:532 .text.HAL_UART_MspDeInit:0000000000000000 HAL_UART_MspDeInit
/tmp/ccGo0ZHH.s:627 .text.HAL_UART_MspDeInit:0000000000000070 $d
/tmp/ccGo0ZHH.s:637 .text.__io_putchar:0000000000000000 $t
/tmp/ccGo0ZHH.s:643 .text.__io_putchar:0000000000000000 __io_putchar
/tmp/ccGo0ZHH.s:679 .text.__io_putchar:000000000000001c $d
/tmp/ccGo0ZHH.s:698 .bss.huart2:0000000000000000 huart2
/tmp/ccGo0ZHH.s:691 .bss.huart1:0000000000000000 huart1
/tmp/ccGo0ZHH.s:705 .bss.huart4:0000000000000000 huart4
/tmp/ccGo0ZHH.s:687 .bss.huart1:0000000000000000 $d
/tmp/ccGo0ZHH.s:694 .bss.huart2:0000000000000000 $d
/tmp/ccGo0ZHH.s:701 .bss.huart4:0000000000000000 $d
UNDEFINED SYMBOLS
HAL_UART_Init
Error_Handler
HAL_GPIO_Init
HAL_NVIC_SetPriority
HAL_NVIC_EnableIRQ
HAL_GPIO_DeInit
HAL_NVIC_DisableIRQ
HAL_UART_Transmit