usart.lst 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161
  1. ARM GAS /tmp/ccGo0ZHH.s page 1
  2. 1 .cpu cortex-m4
  3. 2 .arch armv7e-m
  4. 3 .fpu fpv4-sp-d16
  5. 4 .eabi_attribute 27, 1
  6. 5 .eabi_attribute 28, 1
  7. 6 .eabi_attribute 20, 1
  8. 7 .eabi_attribute 21, 1
  9. 8 .eabi_attribute 23, 3
  10. 9 .eabi_attribute 24, 1
  11. 10 .eabi_attribute 25, 1
  12. 11 .eabi_attribute 26, 1
  13. 12 .eabi_attribute 30, 1
  14. 13 .eabi_attribute 34, 1
  15. 14 .eabi_attribute 18, 4
  16. 15 .file "usart.c"
  17. 16 .text
  18. 17 .Ltext0:
  19. 18 .cfi_sections .debug_frame
  20. 19 .section .text.MX_UART4_Init,"ax",%progbits
  21. 20 .align 1
  22. 21 .global MX_UART4_Init
  23. 22 .syntax unified
  24. 23 .thumb
  25. 24 .thumb_func
  26. 26 MX_UART4_Init:
  27. 27 .LFB130:
  28. 28 .file 1 "Src/usart.c"
  29. 1:Src/usart.c **** /**
  30. 2:Src/usart.c **** ******************************************************************************
  31. 3:Src/usart.c **** * File Name : USART.c
  32. 4:Src/usart.c **** * Description : This file provides code for the configuration
  33. 5:Src/usart.c **** * of the USART instances.
  34. 6:Src/usart.c **** ******************************************************************************
  35. 7:Src/usart.c **** * @attention
  36. 8:Src/usart.c **** *
  37. 9:Src/usart.c **** * <h2><center>&copy; Copyright (c) 2022 STMicroelectronics.
  38. 10:Src/usart.c **** * All rights reserved.</center></h2>
  39. 11:Src/usart.c **** *
  40. 12:Src/usart.c **** * This software component is licensed by ST under BSD 3-Clause license,
  41. 13:Src/usart.c **** * the "License"; You may not use this file except in compliance with the
  42. 14:Src/usart.c **** * License. You may obtain a copy of the License at:
  43. 15:Src/usart.c **** * opensource.org/licenses/BSD-3-Clause
  44. 16:Src/usart.c **** *
  45. 17:Src/usart.c **** ******************************************************************************
  46. 18:Src/usart.c **** */
  47. 19:Src/usart.c ****
  48. 20:Src/usart.c **** /* Includes ------------------------------------------------------------------*/
  49. 21:Src/usart.c **** #include "usart.h"
  50. 22:Src/usart.c ****
  51. 23:Src/usart.c **** /* USER CODE BEGIN 0 */
  52. 24:Src/usart.c ****
  53. 25:Src/usart.c **** /* USER CODE END 0 */
  54. 26:Src/usart.c ****
  55. 27:Src/usart.c **** UART_HandleTypeDef huart4;
  56. 28:Src/usart.c **** UART_HandleTypeDef huart1;
  57. 29:Src/usart.c **** UART_HandleTypeDef huart2;
  58. 30:Src/usart.c ****
  59. ARM GAS /tmp/ccGo0ZHH.s page 2
  60. 31:Src/usart.c **** /* UART4 init function */
  61. 32:Src/usart.c **** void MX_UART4_Init(void)
  62. 33:Src/usart.c **** {
  63. 29 .loc 1 33 1 view -0
  64. 30 .cfi_startproc
  65. 31 @ args = 0, pretend = 0, frame = 0
  66. 32 @ frame_needed = 0, uses_anonymous_args = 0
  67. 33 0000 08B5 push {r3, lr}
  68. 34 .LCFI0:
  69. 35 .cfi_def_cfa_offset 8
  70. 36 .cfi_offset 3, -8
  71. 37 .cfi_offset 14, -4
  72. 34:Src/usart.c ****
  73. 35:Src/usart.c **** huart4.Instance = UART4;
  74. 38 .loc 1 35 3 view .LVU1
  75. 39 .loc 1 35 19 is_stmt 0 view .LVU2
  76. 40 0002 0A48 ldr r0, .L5
  77. 41 0004 0A4B ldr r3, .L5+4
  78. 42 0006 0360 str r3, [r0]
  79. 36:Src/usart.c **** huart4.Init.BaudRate = 115200;
  80. 43 .loc 1 36 3 is_stmt 1 view .LVU3
  81. 44 .loc 1 36 24 is_stmt 0 view .LVU4
  82. 45 0008 4FF4E133 mov r3, #115200
  83. 46 000c 4360 str r3, [r0, #4]
  84. 37:Src/usart.c **** huart4.Init.WordLength = UART_WORDLENGTH_8B;
  85. 47 .loc 1 37 3 is_stmt 1 view .LVU5
  86. 48 .loc 1 37 26 is_stmt 0 view .LVU6
  87. 49 000e 0023 movs r3, #0
  88. 50 0010 8360 str r3, [r0, #8]
  89. 38:Src/usart.c **** huart4.Init.StopBits = UART_STOPBITS_1;
  90. 51 .loc 1 38 3 is_stmt 1 view .LVU7
  91. 52 .loc 1 38 24 is_stmt 0 view .LVU8
  92. 53 0012 C360 str r3, [r0, #12]
  93. 39:Src/usart.c **** huart4.Init.Parity = UART_PARITY_NONE;
  94. 54 .loc 1 39 3 is_stmt 1 view .LVU9
  95. 55 .loc 1 39 22 is_stmt 0 view .LVU10
  96. 56 0014 0361 str r3, [r0, #16]
  97. 40:Src/usart.c **** huart4.Init.Mode = UART_MODE_TX_RX;
  98. 57 .loc 1 40 3 is_stmt 1 view .LVU11
  99. 58 .loc 1 40 20 is_stmt 0 view .LVU12
  100. 59 0016 0C22 movs r2, #12
  101. 60 0018 4261 str r2, [r0, #20]
  102. 41:Src/usart.c **** huart4.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  103. 61 .loc 1 41 3 is_stmt 1 view .LVU13
  104. 62 .loc 1 41 25 is_stmt 0 view .LVU14
  105. 63 001a 8361 str r3, [r0, #24]
  106. 42:Src/usart.c **** huart4.Init.OverSampling = UART_OVERSAMPLING_16;
  107. 64 .loc 1 42 3 is_stmt 1 view .LVU15
  108. 65 .loc 1 42 28 is_stmt 0 view .LVU16
  109. 66 001c C361 str r3, [r0, #28]
  110. 43:Src/usart.c **** if (HAL_UART_Init(&huart4) != HAL_OK)
  111. 67 .loc 1 43 3 is_stmt 1 view .LVU17
  112. 68 .loc 1 43 7 is_stmt 0 view .LVU18
  113. 69 001e FFF7FEFF bl HAL_UART_Init
  114. 70 .LVL0:
  115. 71 .loc 1 43 6 view .LVU19
  116. 72 0022 00B9 cbnz r0, .L4
  117. ARM GAS /tmp/ccGo0ZHH.s page 3
  118. 73 .L1:
  119. 44:Src/usart.c **** {
  120. 45:Src/usart.c **** Error_Handler();
  121. 46:Src/usart.c **** }
  122. 47:Src/usart.c ****
  123. 48:Src/usart.c **** }
  124. 74 .loc 1 48 1 view .LVU20
  125. 75 0024 08BD pop {r3, pc}
  126. 76 .L4:
  127. 45:Src/usart.c **** }
  128. 77 .loc 1 45 5 is_stmt 1 view .LVU21
  129. 78 0026 FFF7FEFF bl Error_Handler
  130. 79 .LVL1:
  131. 80 .loc 1 48 1 is_stmt 0 view .LVU22
  132. 81 002a FBE7 b .L1
  133. 82 .L6:
  134. 83 .align 2
  135. 84 .L5:
  136. 85 002c 00000000 .word .LANCHOR0
  137. 86 0030 004C0040 .word 1073761280
  138. 87 .cfi_endproc
  139. 88 .LFE130:
  140. 90 .section .text.MX_USART1_UART_Init,"ax",%progbits
  141. 91 .align 1
  142. 92 .global MX_USART1_UART_Init
  143. 93 .syntax unified
  144. 94 .thumb
  145. 95 .thumb_func
  146. 97 MX_USART1_UART_Init:
  147. 98 .LFB131:
  148. 49:Src/usart.c **** /* USART1 init function */
  149. 50:Src/usart.c ****
  150. 51:Src/usart.c **** void MX_USART1_UART_Init(void)
  151. 52:Src/usart.c **** {
  152. 99 .loc 1 52 1 is_stmt 1 view -0
  153. 100 .cfi_startproc
  154. 101 @ args = 0, pretend = 0, frame = 0
  155. 102 @ frame_needed = 0, uses_anonymous_args = 0
  156. 103 0000 08B5 push {r3, lr}
  157. 104 .LCFI1:
  158. 105 .cfi_def_cfa_offset 8
  159. 106 .cfi_offset 3, -8
  160. 107 .cfi_offset 14, -4
  161. 53:Src/usart.c ****
  162. 54:Src/usart.c **** huart1.Instance = USART1;
  163. 108 .loc 1 54 3 view .LVU24
  164. 109 .loc 1 54 19 is_stmt 0 view .LVU25
  165. 110 0002 0A48 ldr r0, .L11
  166. 111 0004 0A4B ldr r3, .L11+4
  167. 112 0006 0360 str r3, [r0]
  168. 55:Src/usart.c **** huart1.Init.BaudRate = 115200;
  169. 113 .loc 1 55 3 is_stmt 1 view .LVU26
  170. 114 .loc 1 55 24 is_stmt 0 view .LVU27
  171. 115 0008 4FF4E133 mov r3, #115200
  172. 116 000c 4360 str r3, [r0, #4]
  173. 56:Src/usart.c **** huart1.Init.WordLength = UART_WORDLENGTH_8B;
  174. 117 .loc 1 56 3 is_stmt 1 view .LVU28
  175. ARM GAS /tmp/ccGo0ZHH.s page 4
  176. 118 .loc 1 56 26 is_stmt 0 view .LVU29
  177. 119 000e 0023 movs r3, #0
  178. 120 0010 8360 str r3, [r0, #8]
  179. 57:Src/usart.c **** huart1.Init.StopBits = UART_STOPBITS_1;
  180. 121 .loc 1 57 3 is_stmt 1 view .LVU30
  181. 122 .loc 1 57 24 is_stmt 0 view .LVU31
  182. 123 0012 C360 str r3, [r0, #12]
  183. 58:Src/usart.c **** huart1.Init.Parity = UART_PARITY_NONE;
  184. 124 .loc 1 58 3 is_stmt 1 view .LVU32
  185. 125 .loc 1 58 22 is_stmt 0 view .LVU33
  186. 126 0014 0361 str r3, [r0, #16]
  187. 59:Src/usart.c **** huart1.Init.Mode = UART_MODE_TX_RX;
  188. 127 .loc 1 59 3 is_stmt 1 view .LVU34
  189. 128 .loc 1 59 20 is_stmt 0 view .LVU35
  190. 129 0016 0C22 movs r2, #12
  191. 130 0018 4261 str r2, [r0, #20]
  192. 60:Src/usart.c **** huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  193. 131 .loc 1 60 3 is_stmt 1 view .LVU36
  194. 132 .loc 1 60 25 is_stmt 0 view .LVU37
  195. 133 001a 8361 str r3, [r0, #24]
  196. 61:Src/usart.c **** huart1.Init.OverSampling = UART_OVERSAMPLING_16;
  197. 134 .loc 1 61 3 is_stmt 1 view .LVU38
  198. 135 .loc 1 61 28 is_stmt 0 view .LVU39
  199. 136 001c C361 str r3, [r0, #28]
  200. 62:Src/usart.c **** if (HAL_UART_Init(&huart1) != HAL_OK)
  201. 137 .loc 1 62 3 is_stmt 1 view .LVU40
  202. 138 .loc 1 62 7 is_stmt 0 view .LVU41
  203. 139 001e FFF7FEFF bl HAL_UART_Init
  204. 140 .LVL2:
  205. 141 .loc 1 62 6 view .LVU42
  206. 142 0022 00B9 cbnz r0, .L10
  207. 143 .L7:
  208. 63:Src/usart.c **** {
  209. 64:Src/usart.c **** Error_Handler();
  210. 65:Src/usart.c **** }
  211. 66:Src/usart.c ****
  212. 67:Src/usart.c **** }
  213. 144 .loc 1 67 1 view .LVU43
  214. 145 0024 08BD pop {r3, pc}
  215. 146 .L10:
  216. 64:Src/usart.c **** }
  217. 147 .loc 1 64 5 is_stmt 1 view .LVU44
  218. 148 0026 FFF7FEFF bl Error_Handler
  219. 149 .LVL3:
  220. 150 .loc 1 67 1 is_stmt 0 view .LVU45
  221. 151 002a FBE7 b .L7
  222. 152 .L12:
  223. 153 .align 2
  224. 154 .L11:
  225. 155 002c 00000000 .word .LANCHOR1
  226. 156 0030 00100140 .word 1073811456
  227. 157 .cfi_endproc
  228. 158 .LFE131:
  229. 160 .section .text.MX_USART2_UART_Init,"ax",%progbits
  230. 161 .align 1
  231. 162 .global MX_USART2_UART_Init
  232. 163 .syntax unified
  233. ARM GAS /tmp/ccGo0ZHH.s page 5
  234. 164 .thumb
  235. 165 .thumb_func
  236. 167 MX_USART2_UART_Init:
  237. 168 .LFB132:
  238. 68:Src/usart.c **** /* USART2 init function */
  239. 69:Src/usart.c ****
  240. 70:Src/usart.c **** void MX_USART2_UART_Init(void)
  241. 71:Src/usart.c **** {
  242. 169 .loc 1 71 1 is_stmt 1 view -0
  243. 170 .cfi_startproc
  244. 171 @ args = 0, pretend = 0, frame = 0
  245. 172 @ frame_needed = 0, uses_anonymous_args = 0
  246. 173 0000 08B5 push {r3, lr}
  247. 174 .LCFI2:
  248. 175 .cfi_def_cfa_offset 8
  249. 176 .cfi_offset 3, -8
  250. 177 .cfi_offset 14, -4
  251. 72:Src/usart.c ****
  252. 73:Src/usart.c **** huart2.Instance = USART2;
  253. 178 .loc 1 73 3 view .LVU47
  254. 179 .loc 1 73 19 is_stmt 0 view .LVU48
  255. 180 0002 0A48 ldr r0, .L17
  256. 181 0004 0A4B ldr r3, .L17+4
  257. 182 0006 0360 str r3, [r0]
  258. 74:Src/usart.c **** huart2.Init.BaudRate = 38400;
  259. 183 .loc 1 74 3 is_stmt 1 view .LVU49
  260. 184 .loc 1 74 24 is_stmt 0 view .LVU50
  261. 185 0008 4FF41643 mov r3, #38400
  262. 186 000c 4360 str r3, [r0, #4]
  263. 75:Src/usart.c **** huart2.Init.WordLength = UART_WORDLENGTH_8B;
  264. 187 .loc 1 75 3 is_stmt 1 view .LVU51
  265. 188 .loc 1 75 26 is_stmt 0 view .LVU52
  266. 189 000e 0023 movs r3, #0
  267. 190 0010 8360 str r3, [r0, #8]
  268. 76:Src/usart.c **** huart2.Init.StopBits = UART_STOPBITS_1;
  269. 191 .loc 1 76 3 is_stmt 1 view .LVU53
  270. 192 .loc 1 76 24 is_stmt 0 view .LVU54
  271. 193 0012 C360 str r3, [r0, #12]
  272. 77:Src/usart.c **** huart2.Init.Parity = UART_PARITY_NONE;
  273. 194 .loc 1 77 3 is_stmt 1 view .LVU55
  274. 195 .loc 1 77 22 is_stmt 0 view .LVU56
  275. 196 0014 0361 str r3, [r0, #16]
  276. 78:Src/usart.c **** huart2.Init.Mode = UART_MODE_TX_RX;
  277. 197 .loc 1 78 3 is_stmt 1 view .LVU57
  278. 198 .loc 1 78 20 is_stmt 0 view .LVU58
  279. 199 0016 0C22 movs r2, #12
  280. 200 0018 4261 str r2, [r0, #20]
  281. 79:Src/usart.c **** huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  282. 201 .loc 1 79 3 is_stmt 1 view .LVU59
  283. 202 .loc 1 79 25 is_stmt 0 view .LVU60
  284. 203 001a 8361 str r3, [r0, #24]
  285. 80:Src/usart.c **** huart2.Init.OverSampling = UART_OVERSAMPLING_16;
  286. 204 .loc 1 80 3 is_stmt 1 view .LVU61
  287. 205 .loc 1 80 28 is_stmt 0 view .LVU62
  288. 206 001c C361 str r3, [r0, #28]
  289. 81:Src/usart.c **** if (HAL_UART_Init(&huart2) != HAL_OK)
  290. 207 .loc 1 81 3 is_stmt 1 view .LVU63
  291. ARM GAS /tmp/ccGo0ZHH.s page 6
  292. 208 .loc 1 81 7 is_stmt 0 view .LVU64
  293. 209 001e FFF7FEFF bl HAL_UART_Init
  294. 210 .LVL4:
  295. 211 .loc 1 81 6 view .LVU65
  296. 212 0022 00B9 cbnz r0, .L16
  297. 213 .L13:
  298. 82:Src/usart.c **** {
  299. 83:Src/usart.c **** Error_Handler();
  300. 84:Src/usart.c **** }
  301. 85:Src/usart.c ****
  302. 86:Src/usart.c **** }
  303. 214 .loc 1 86 1 view .LVU66
  304. 215 0024 08BD pop {r3, pc}
  305. 216 .L16:
  306. 83:Src/usart.c **** }
  307. 217 .loc 1 83 5 is_stmt 1 view .LVU67
  308. 218 0026 FFF7FEFF bl Error_Handler
  309. 219 .LVL5:
  310. 220 .loc 1 86 1 is_stmt 0 view .LVU68
  311. 221 002a FBE7 b .L13
  312. 222 .L18:
  313. 223 .align 2
  314. 224 .L17:
  315. 225 002c 00000000 .word .LANCHOR2
  316. 226 0030 00440040 .word 1073759232
  317. 227 .cfi_endproc
  318. 228 .LFE132:
  319. 230 .section .text.HAL_UART_MspInit,"ax",%progbits
  320. 231 .align 1
  321. 232 .global HAL_UART_MspInit
  322. 233 .syntax unified
  323. 234 .thumb
  324. 235 .thumb_func
  325. 237 HAL_UART_MspInit:
  326. 238 .LVL6:
  327. 239 .LFB133:
  328. 87:Src/usart.c ****
  329. 88:Src/usart.c **** void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle)
  330. 89:Src/usart.c **** {
  331. 240 .loc 1 89 1 is_stmt 1 view -0
  332. 241 .cfi_startproc
  333. 242 @ args = 0, pretend = 0, frame = 48
  334. 243 @ frame_needed = 0, uses_anonymous_args = 0
  335. 244 .loc 1 89 1 is_stmt 0 view .LVU70
  336. 245 0000 10B5 push {r4, lr}
  337. 246 .LCFI3:
  338. 247 .cfi_def_cfa_offset 8
  339. 248 .cfi_offset 4, -8
  340. 249 .cfi_offset 14, -4
  341. 250 0002 8CB0 sub sp, sp, #48
  342. 251 .LCFI4:
  343. 252 .cfi_def_cfa_offset 56
  344. 90:Src/usart.c ****
  345. 91:Src/usart.c **** GPIO_InitTypeDef GPIO_InitStruct = {0};
  346. 253 .loc 1 91 3 is_stmt 1 view .LVU71
  347. 254 .loc 1 91 20 is_stmt 0 view .LVU72
  348. 255 0004 0023 movs r3, #0
  349. ARM GAS /tmp/ccGo0ZHH.s page 7
  350. 256 0006 0793 str r3, [sp, #28]
  351. 257 0008 0893 str r3, [sp, #32]
  352. 258 000a 0993 str r3, [sp, #36]
  353. 259 000c 0A93 str r3, [sp, #40]
  354. 260 000e 0B93 str r3, [sp, #44]
  355. 92:Src/usart.c **** if(uartHandle->Instance==UART4)
  356. 261 .loc 1 92 3 is_stmt 1 view .LVU73
  357. 262 .loc 1 92 16 is_stmt 0 view .LVU74
  358. 263 0010 0368 ldr r3, [r0]
  359. 264 .loc 1 92 5 view .LVU75
  360. 265 0012 494A ldr r2, .L27
  361. 266 0014 9342 cmp r3, r2
  362. 267 0016 07D0 beq .L24
  363. 93:Src/usart.c **** {
  364. 94:Src/usart.c **** /* USER CODE BEGIN UART4_MspInit 0 */
  365. 95:Src/usart.c ****
  366. 96:Src/usart.c **** /* USER CODE END UART4_MspInit 0 */
  367. 97:Src/usart.c **** /* UART4 clock enable */
  368. 98:Src/usart.c **** __HAL_RCC_UART4_CLK_ENABLE();
  369. 99:Src/usart.c ****
  370. 100:Src/usart.c **** __HAL_RCC_GPIOC_CLK_ENABLE();
  371. 101:Src/usart.c **** /**UART4 GPIO Configuration
  372. 102:Src/usart.c **** PC10 ------> UART4_TX
  373. 103:Src/usart.c **** PC11 ------> UART4_RX
  374. 104:Src/usart.c **** */
  375. 105:Src/usart.c **** GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11;
  376. 106:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  377. 107:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
  378. 108:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  379. 109:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF8_UART4;
  380. 110:Src/usart.c **** HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  381. 111:Src/usart.c ****
  382. 112:Src/usart.c **** /* UART4 interrupt Init */
  383. 113:Src/usart.c **** HAL_NVIC_SetPriority(UART4_IRQn, 0, 0);
  384. 114:Src/usart.c **** HAL_NVIC_EnableIRQ(UART4_IRQn);
  385. 115:Src/usart.c **** /* USER CODE BEGIN UART4_MspInit 1 */
  386. 116:Src/usart.c ****
  387. 117:Src/usart.c **** /* USER CODE END UART4_MspInit 1 */
  388. 118:Src/usart.c **** }
  389. 119:Src/usart.c **** else if(uartHandle->Instance==USART1)
  390. 268 .loc 1 119 8 is_stmt 1 view .LVU76
  391. 269 .loc 1 119 10 is_stmt 0 view .LVU77
  392. 270 0018 484A ldr r2, .L27+4
  393. 271 001a 9342 cmp r3, r2
  394. 272 001c 32D0 beq .L25
  395. 120:Src/usart.c **** {
  396. 121:Src/usart.c **** /* USER CODE BEGIN USART1_MspInit 0 */
  397. 122:Src/usart.c ****
  398. 123:Src/usart.c **** /* USER CODE END USART1_MspInit 0 */
  399. 124:Src/usart.c **** /* USART1 clock enable */
  400. 125:Src/usart.c **** __HAL_RCC_USART1_CLK_ENABLE();
  401. 126:Src/usart.c ****
  402. 127:Src/usart.c **** __HAL_RCC_GPIOB_CLK_ENABLE();
  403. 128:Src/usart.c **** /**USART1 GPIO Configuration
  404. 129:Src/usart.c **** PB6 ------> USART1_TX
  405. 130:Src/usart.c **** PB7 ------> USART1_RX
  406. 131:Src/usart.c **** */
  407. ARM GAS /tmp/ccGo0ZHH.s page 8
  408. 132:Src/usart.c **** GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7;
  409. 133:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  410. 134:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
  411. 135:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  412. 136:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF7_USART1;
  413. 137:Src/usart.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  414. 138:Src/usart.c ****
  415. 139:Src/usart.c **** /* USART1 interrupt Init */
  416. 140:Src/usart.c **** HAL_NVIC_SetPriority(USART1_IRQn, 0, 0);
  417. 141:Src/usart.c **** HAL_NVIC_EnableIRQ(USART1_IRQn);
  418. 142:Src/usart.c **** /* USER CODE BEGIN USART1_MspInit 1 */
  419. 143:Src/usart.c ****
  420. 144:Src/usart.c **** /* USER CODE END USART1_MspInit 1 */
  421. 145:Src/usart.c **** }
  422. 146:Src/usart.c **** else if(uartHandle->Instance==USART2)
  423. 273 .loc 1 146 8 is_stmt 1 view .LVU78
  424. 274 .loc 1 146 10 is_stmt 0 view .LVU79
  425. 275 001e 484A ldr r2, .L27+8
  426. 276 0020 9342 cmp r3, r2
  427. 277 0022 5CD0 beq .L26
  428. 278 .LVL7:
  429. 279 .L19:
  430. 147:Src/usart.c **** {
  431. 148:Src/usart.c **** /* USER CODE BEGIN USART2_MspInit 0 */
  432. 149:Src/usart.c ****
  433. 150:Src/usart.c **** /* USER CODE END USART2_MspInit 0 */
  434. 151:Src/usart.c **** /* USART2 clock enable */
  435. 152:Src/usart.c **** __HAL_RCC_USART2_CLK_ENABLE();
  436. 153:Src/usart.c ****
  437. 154:Src/usart.c **** __HAL_RCC_GPIOD_CLK_ENABLE();
  438. 155:Src/usart.c **** /**USART2 GPIO Configuration
  439. 156:Src/usart.c **** PD5 ------> USART2_TX
  440. 157:Src/usart.c **** PD6 ------> USART2_RX
  441. 158:Src/usart.c **** */
  442. 159:Src/usart.c **** GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_6;
  443. 160:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  444. 161:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
  445. 162:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  446. 163:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
  447. 164:Src/usart.c **** HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  448. 165:Src/usart.c ****
  449. 166:Src/usart.c **** /* USART2 interrupt Init */
  450. 167:Src/usart.c **** HAL_NVIC_SetPriority(USART2_IRQn, 0, 0);
  451. 168:Src/usart.c **** HAL_NVIC_EnableIRQ(USART2_IRQn);
  452. 169:Src/usart.c **** /* USER CODE BEGIN USART2_MspInit 1 */
  453. 170:Src/usart.c ****
  454. 171:Src/usart.c **** /* USER CODE END USART2_MspInit 1 */
  455. 172:Src/usart.c **** }
  456. 173:Src/usart.c **** }
  457. 280 .loc 1 173 1 view .LVU80
  458. 281 0024 0CB0 add sp, sp, #48
  459. 282 .LCFI5:
  460. 283 .cfi_remember_state
  461. 284 .cfi_def_cfa_offset 8
  462. 285 @ sp needed
  463. 286 0026 10BD pop {r4, pc}
  464. 287 .LVL8:
  465. ARM GAS /tmp/ccGo0ZHH.s page 9
  466. 288 .L24:
  467. 289 .LCFI6:
  468. 290 .cfi_restore_state
  469. 98:Src/usart.c ****
  470. 291 .loc 1 98 5 is_stmt 1 view .LVU81
  471. 292 .LBB2:
  472. 98:Src/usart.c ****
  473. 293 .loc 1 98 5 view .LVU82
  474. 294 0028 0024 movs r4, #0
  475. 295 002a 0194 str r4, [sp, #4]
  476. 98:Src/usart.c ****
  477. 296 .loc 1 98 5 view .LVU83
  478. 297 002c 454B ldr r3, .L27+12
  479. 298 002e 1A6C ldr r2, [r3, #64]
  480. 299 0030 42F40022 orr r2, r2, #524288
  481. 300 0034 1A64 str r2, [r3, #64]
  482. 98:Src/usart.c ****
  483. 301 .loc 1 98 5 view .LVU84
  484. 302 0036 1A6C ldr r2, [r3, #64]
  485. 303 0038 02F40022 and r2, r2, #524288
  486. 304 003c 0192 str r2, [sp, #4]
  487. 98:Src/usart.c ****
  488. 305 .loc 1 98 5 view .LVU85
  489. 306 003e 019A ldr r2, [sp, #4]
  490. 307 .LBE2:
  491. 98:Src/usart.c ****
  492. 308 .loc 1 98 5 view .LVU86
  493. 100:Src/usart.c **** /**UART4 GPIO Configuration
  494. 309 .loc 1 100 5 view .LVU87
  495. 310 .LBB3:
  496. 100:Src/usart.c **** /**UART4 GPIO Configuration
  497. 311 .loc 1 100 5 view .LVU88
  498. 312 0040 0294 str r4, [sp, #8]
  499. 100:Src/usart.c **** /**UART4 GPIO Configuration
  500. 313 .loc 1 100 5 view .LVU89
  501. 314 0042 1A6B ldr r2, [r3, #48]
  502. 315 0044 42F00402 orr r2, r2, #4
  503. 316 0048 1A63 str r2, [r3, #48]
  504. 100:Src/usart.c **** /**UART4 GPIO Configuration
  505. 317 .loc 1 100 5 view .LVU90
  506. 318 004a 1B6B ldr r3, [r3, #48]
  507. 319 004c 03F00403 and r3, r3, #4
  508. 320 0050 0293 str r3, [sp, #8]
  509. 100:Src/usart.c **** /**UART4 GPIO Configuration
  510. 321 .loc 1 100 5 view .LVU91
  511. 322 0052 029B ldr r3, [sp, #8]
  512. 323 .LBE3:
  513. 100:Src/usart.c **** /**UART4 GPIO Configuration
  514. 324 .loc 1 100 5 view .LVU92
  515. 105:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  516. 325 .loc 1 105 5 view .LVU93
  517. 105:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  518. 326 .loc 1 105 25 is_stmt 0 view .LVU94
  519. 327 0054 4FF44063 mov r3, #3072
  520. 328 0058 0793 str r3, [sp, #28]
  521. 106:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
  522. 329 .loc 1 106 5 is_stmt 1 view .LVU95
  523. ARM GAS /tmp/ccGo0ZHH.s page 10
  524. 106:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
  525. 330 .loc 1 106 26 is_stmt 0 view .LVU96
  526. 331 005a 0223 movs r3, #2
  527. 332 005c 0893 str r3, [sp, #32]
  528. 107:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  529. 333 .loc 1 107 5 is_stmt 1 view .LVU97
  530. 107:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  531. 334 .loc 1 107 26 is_stmt 0 view .LVU98
  532. 335 005e 0123 movs r3, #1
  533. 336 0060 0993 str r3, [sp, #36]
  534. 108:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF8_UART4;
  535. 337 .loc 1 108 5 is_stmt 1 view .LVU99
  536. 108:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF8_UART4;
  537. 338 .loc 1 108 27 is_stmt 0 view .LVU100
  538. 339 0062 0323 movs r3, #3
  539. 340 0064 0A93 str r3, [sp, #40]
  540. 109:Src/usart.c **** HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  541. 341 .loc 1 109 5 is_stmt 1 view .LVU101
  542. 109:Src/usart.c **** HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  543. 342 .loc 1 109 31 is_stmt 0 view .LVU102
  544. 343 0066 0823 movs r3, #8
  545. 344 0068 0B93 str r3, [sp, #44]
  546. 110:Src/usart.c ****
  547. 345 .loc 1 110 5 is_stmt 1 view .LVU103
  548. 346 006a 07A9 add r1, sp, #28
  549. 347 006c 3648 ldr r0, .L27+16
  550. 348 .LVL9:
  551. 110:Src/usart.c ****
  552. 349 .loc 1 110 5 is_stmt 0 view .LVU104
  553. 350 006e FFF7FEFF bl HAL_GPIO_Init
  554. 351 .LVL10:
  555. 113:Src/usart.c **** HAL_NVIC_EnableIRQ(UART4_IRQn);
  556. 352 .loc 1 113 5 is_stmt 1 view .LVU105
  557. 353 0072 2246 mov r2, r4
  558. 354 0074 2146 mov r1, r4
  559. 355 0076 3420 movs r0, #52
  560. 356 0078 FFF7FEFF bl HAL_NVIC_SetPriority
  561. 357 .LVL11:
  562. 114:Src/usart.c **** /* USER CODE BEGIN UART4_MspInit 1 */
  563. 358 .loc 1 114 5 view .LVU106
  564. 359 007c 3420 movs r0, #52
  565. 360 007e FFF7FEFF bl HAL_NVIC_EnableIRQ
  566. 361 .LVL12:
  567. 362 0082 CFE7 b .L19
  568. 363 .LVL13:
  569. 364 .L25:
  570. 125:Src/usart.c ****
  571. 365 .loc 1 125 5 view .LVU107
  572. 366 .LBB4:
  573. 125:Src/usart.c ****
  574. 367 .loc 1 125 5 view .LVU108
  575. 368 0084 0024 movs r4, #0
  576. 369 0086 0394 str r4, [sp, #12]
  577. 125:Src/usart.c ****
  578. 370 .loc 1 125 5 view .LVU109
  579. 371 0088 2E4B ldr r3, .L27+12
  580. 372 008a 5A6C ldr r2, [r3, #68]
  581. ARM GAS /tmp/ccGo0ZHH.s page 11
  582. 373 008c 42F01002 orr r2, r2, #16
  583. 374 0090 5A64 str r2, [r3, #68]
  584. 125:Src/usart.c ****
  585. 375 .loc 1 125 5 view .LVU110
  586. 376 0092 5A6C ldr r2, [r3, #68]
  587. 377 0094 02F01002 and r2, r2, #16
  588. 378 0098 0392 str r2, [sp, #12]
  589. 125:Src/usart.c ****
  590. 379 .loc 1 125 5 view .LVU111
  591. 380 009a 039A ldr r2, [sp, #12]
  592. 381 .LBE4:
  593. 125:Src/usart.c ****
  594. 382 .loc 1 125 5 view .LVU112
  595. 127:Src/usart.c **** /**USART1 GPIO Configuration
  596. 383 .loc 1 127 5 view .LVU113
  597. 384 .LBB5:
  598. 127:Src/usart.c **** /**USART1 GPIO Configuration
  599. 385 .loc 1 127 5 view .LVU114
  600. 386 009c 0494 str r4, [sp, #16]
  601. 127:Src/usart.c **** /**USART1 GPIO Configuration
  602. 387 .loc 1 127 5 view .LVU115
  603. 388 009e 1A6B ldr r2, [r3, #48]
  604. 389 00a0 42F00202 orr r2, r2, #2
  605. 390 00a4 1A63 str r2, [r3, #48]
  606. 127:Src/usart.c **** /**USART1 GPIO Configuration
  607. 391 .loc 1 127 5 view .LVU116
  608. 392 00a6 1B6B ldr r3, [r3, #48]
  609. 393 00a8 03F00203 and r3, r3, #2
  610. 394 00ac 0493 str r3, [sp, #16]
  611. 127:Src/usart.c **** /**USART1 GPIO Configuration
  612. 395 .loc 1 127 5 view .LVU117
  613. 396 00ae 049B ldr r3, [sp, #16]
  614. 397 .LBE5:
  615. 127:Src/usart.c **** /**USART1 GPIO Configuration
  616. 398 .loc 1 127 5 view .LVU118
  617. 132:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  618. 399 .loc 1 132 5 view .LVU119
  619. 132:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  620. 400 .loc 1 132 25 is_stmt 0 view .LVU120
  621. 401 00b0 C023 movs r3, #192
  622. 402 00b2 0793 str r3, [sp, #28]
  623. 133:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
  624. 403 .loc 1 133 5 is_stmt 1 view .LVU121
  625. 133:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
  626. 404 .loc 1 133 26 is_stmt 0 view .LVU122
  627. 405 00b4 0223 movs r3, #2
  628. 406 00b6 0893 str r3, [sp, #32]
  629. 134:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  630. 407 .loc 1 134 5 is_stmt 1 view .LVU123
  631. 134:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  632. 408 .loc 1 134 26 is_stmt 0 view .LVU124
  633. 409 00b8 0123 movs r3, #1
  634. 410 00ba 0993 str r3, [sp, #36]
  635. 135:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF7_USART1;
  636. 411 .loc 1 135 5 is_stmt 1 view .LVU125
  637. 135:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF7_USART1;
  638. 412 .loc 1 135 27 is_stmt 0 view .LVU126
  639. ARM GAS /tmp/ccGo0ZHH.s page 12
  640. 413 00bc 0323 movs r3, #3
  641. 414 00be 0A93 str r3, [sp, #40]
  642. 136:Src/usart.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  643. 415 .loc 1 136 5 is_stmt 1 view .LVU127
  644. 136:Src/usart.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  645. 416 .loc 1 136 31 is_stmt 0 view .LVU128
  646. 417 00c0 0723 movs r3, #7
  647. 418 00c2 0B93 str r3, [sp, #44]
  648. 137:Src/usart.c ****
  649. 419 .loc 1 137 5 is_stmt 1 view .LVU129
  650. 420 00c4 07A9 add r1, sp, #28
  651. 421 00c6 2148 ldr r0, .L27+20
  652. 422 .LVL14:
  653. 137:Src/usart.c ****
  654. 423 .loc 1 137 5 is_stmt 0 view .LVU130
  655. 424 00c8 FFF7FEFF bl HAL_GPIO_Init
  656. 425 .LVL15:
  657. 140:Src/usart.c **** HAL_NVIC_EnableIRQ(USART1_IRQn);
  658. 426 .loc 1 140 5 is_stmt 1 view .LVU131
  659. 427 00cc 2246 mov r2, r4
  660. 428 00ce 2146 mov r1, r4
  661. 429 00d0 2520 movs r0, #37
  662. 430 00d2 FFF7FEFF bl HAL_NVIC_SetPriority
  663. 431 .LVL16:
  664. 141:Src/usart.c **** /* USER CODE BEGIN USART1_MspInit 1 */
  665. 432 .loc 1 141 5 view .LVU132
  666. 433 00d6 2520 movs r0, #37
  667. 434 00d8 FFF7FEFF bl HAL_NVIC_EnableIRQ
  668. 435 .LVL17:
  669. 436 00dc A2E7 b .L19
  670. 437 .LVL18:
  671. 438 .L26:
  672. 152:Src/usart.c ****
  673. 439 .loc 1 152 5 view .LVU133
  674. 440 .LBB6:
  675. 152:Src/usart.c ****
  676. 441 .loc 1 152 5 view .LVU134
  677. 442 00de 0024 movs r4, #0
  678. 443 00e0 0594 str r4, [sp, #20]
  679. 152:Src/usart.c ****
  680. 444 .loc 1 152 5 view .LVU135
  681. 445 00e2 184B ldr r3, .L27+12
  682. 446 00e4 1A6C ldr r2, [r3, #64]
  683. 447 00e6 42F40032 orr r2, r2, #131072
  684. 448 00ea 1A64 str r2, [r3, #64]
  685. 152:Src/usart.c ****
  686. 449 .loc 1 152 5 view .LVU136
  687. 450 00ec 1A6C ldr r2, [r3, #64]
  688. 451 00ee 02F40032 and r2, r2, #131072
  689. 452 00f2 0592 str r2, [sp, #20]
  690. 152:Src/usart.c ****
  691. 453 .loc 1 152 5 view .LVU137
  692. 454 00f4 059A ldr r2, [sp, #20]
  693. 455 .LBE6:
  694. 152:Src/usart.c ****
  695. 456 .loc 1 152 5 view .LVU138
  696. 154:Src/usart.c **** /**USART2 GPIO Configuration
  697. ARM GAS /tmp/ccGo0ZHH.s page 13
  698. 457 .loc 1 154 5 view .LVU139
  699. 458 .LBB7:
  700. 154:Src/usart.c **** /**USART2 GPIO Configuration
  701. 459 .loc 1 154 5 view .LVU140
  702. 460 00f6 0694 str r4, [sp, #24]
  703. 154:Src/usart.c **** /**USART2 GPIO Configuration
  704. 461 .loc 1 154 5 view .LVU141
  705. 462 00f8 1A6B ldr r2, [r3, #48]
  706. 463 00fa 42F00802 orr r2, r2, #8
  707. 464 00fe 1A63 str r2, [r3, #48]
  708. 154:Src/usart.c **** /**USART2 GPIO Configuration
  709. 465 .loc 1 154 5 view .LVU142
  710. 466 0100 1B6B ldr r3, [r3, #48]
  711. 467 0102 03F00803 and r3, r3, #8
  712. 468 0106 0693 str r3, [sp, #24]
  713. 154:Src/usart.c **** /**USART2 GPIO Configuration
  714. 469 .loc 1 154 5 view .LVU143
  715. 470 0108 069B ldr r3, [sp, #24]
  716. 471 .LBE7:
  717. 154:Src/usart.c **** /**USART2 GPIO Configuration
  718. 472 .loc 1 154 5 view .LVU144
  719. 159:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  720. 473 .loc 1 159 5 view .LVU145
  721. 159:Src/usart.c **** GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
  722. 474 .loc 1 159 25 is_stmt 0 view .LVU146
  723. 475 010a 6023 movs r3, #96
  724. 476 010c 0793 str r3, [sp, #28]
  725. 160:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
  726. 477 .loc 1 160 5 is_stmt 1 view .LVU147
  727. 160:Src/usart.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
  728. 478 .loc 1 160 26 is_stmt 0 view .LVU148
  729. 479 010e 0223 movs r3, #2
  730. 480 0110 0893 str r3, [sp, #32]
  731. 161:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  732. 481 .loc 1 161 5 is_stmt 1 view .LVU149
  733. 161:Src/usart.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
  734. 482 .loc 1 161 26 is_stmt 0 view .LVU150
  735. 483 0112 0123 movs r3, #1
  736. 484 0114 0993 str r3, [sp, #36]
  737. 162:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
  738. 485 .loc 1 162 5 is_stmt 1 view .LVU151
  739. 162:Src/usart.c **** GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
  740. 486 .loc 1 162 27 is_stmt 0 view .LVU152
  741. 487 0116 0323 movs r3, #3
  742. 488 0118 0A93 str r3, [sp, #40]
  743. 163:Src/usart.c **** HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  744. 489 .loc 1 163 5 is_stmt 1 view .LVU153
  745. 163:Src/usart.c **** HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  746. 490 .loc 1 163 31 is_stmt 0 view .LVU154
  747. 491 011a 0723 movs r3, #7
  748. 492 011c 0B93 str r3, [sp, #44]
  749. 164:Src/usart.c ****
  750. 493 .loc 1 164 5 is_stmt 1 view .LVU155
  751. 494 011e 07A9 add r1, sp, #28
  752. 495 0120 0B48 ldr r0, .L27+24
  753. 496 .LVL19:
  754. 164:Src/usart.c ****
  755. ARM GAS /tmp/ccGo0ZHH.s page 14
  756. 497 .loc 1 164 5 is_stmt 0 view .LVU156
  757. 498 0122 FFF7FEFF bl HAL_GPIO_Init
  758. 499 .LVL20:
  759. 167:Src/usart.c **** HAL_NVIC_EnableIRQ(USART2_IRQn);
  760. 500 .loc 1 167 5 is_stmt 1 view .LVU157
  761. 501 0126 2246 mov r2, r4
  762. 502 0128 2146 mov r1, r4
  763. 503 012a 2620 movs r0, #38
  764. 504 012c FFF7FEFF bl HAL_NVIC_SetPriority
  765. 505 .LVL21:
  766. 168:Src/usart.c **** /* USER CODE BEGIN USART2_MspInit 1 */
  767. 506 .loc 1 168 5 view .LVU158
  768. 507 0130 2620 movs r0, #38
  769. 508 0132 FFF7FEFF bl HAL_NVIC_EnableIRQ
  770. 509 .LVL22:
  771. 510 .loc 1 173 1 is_stmt 0 view .LVU159
  772. 511 0136 75E7 b .L19
  773. 512 .L28:
  774. 513 .align 2
  775. 514 .L27:
  776. 515 0138 004C0040 .word 1073761280
  777. 516 013c 00100140 .word 1073811456
  778. 517 0140 00440040 .word 1073759232
  779. 518 0144 00380240 .word 1073887232
  780. 519 0148 00080240 .word 1073874944
  781. 520 014c 00040240 .word 1073873920
  782. 521 0150 000C0240 .word 1073875968
  783. 522 .cfi_endproc
  784. 523 .LFE133:
  785. 525 .section .text.HAL_UART_MspDeInit,"ax",%progbits
  786. 526 .align 1
  787. 527 .global HAL_UART_MspDeInit
  788. 528 .syntax unified
  789. 529 .thumb
  790. 530 .thumb_func
  791. 532 HAL_UART_MspDeInit:
  792. 533 .LVL23:
  793. 534 .LFB134:
  794. 174:Src/usart.c ****
  795. 175:Src/usart.c **** void HAL_UART_MspDeInit(UART_HandleTypeDef* uartHandle)
  796. 176:Src/usart.c **** {
  797. 535 .loc 1 176 1 is_stmt 1 view -0
  798. 536 .cfi_startproc
  799. 537 @ args = 0, pretend = 0, frame = 0
  800. 538 @ frame_needed = 0, uses_anonymous_args = 0
  801. 539 .loc 1 176 1 is_stmt 0 view .LVU161
  802. 540 0000 08B5 push {r3, lr}
  803. 541 .LCFI7:
  804. 542 .cfi_def_cfa_offset 8
  805. 543 .cfi_offset 3, -8
  806. 544 .cfi_offset 14, -4
  807. 177:Src/usart.c ****
  808. 178:Src/usart.c **** if(uartHandle->Instance==UART4)
  809. 545 .loc 1 178 3 is_stmt 1 view .LVU162
  810. 546 .loc 1 178 16 is_stmt 0 view .LVU163
  811. 547 0002 0368 ldr r3, [r0]
  812. 548 .loc 1 178 5 view .LVU164
  813. ARM GAS /tmp/ccGo0ZHH.s page 15
  814. 549 0004 1A4A ldr r2, .L37
  815. 550 0006 9342 cmp r3, r2
  816. 551 0008 06D0 beq .L34
  817. 179:Src/usart.c **** {
  818. 180:Src/usart.c **** /* USER CODE BEGIN UART4_MspDeInit 0 */
  819. 181:Src/usart.c ****
  820. 182:Src/usart.c **** /* USER CODE END UART4_MspDeInit 0 */
  821. 183:Src/usart.c **** /* Peripheral clock disable */
  822. 184:Src/usart.c **** __HAL_RCC_UART4_CLK_DISABLE();
  823. 185:Src/usart.c ****
  824. 186:Src/usart.c **** /**UART4 GPIO Configuration
  825. 187:Src/usart.c **** PC10 ------> UART4_TX
  826. 188:Src/usart.c **** PC11 ------> UART4_RX
  827. 189:Src/usart.c **** */
  828. 190:Src/usart.c **** HAL_GPIO_DeInit(GPIOC, GPIO_PIN_10|GPIO_PIN_11);
  829. 191:Src/usart.c ****
  830. 192:Src/usart.c **** /* UART4 interrupt Deinit */
  831. 193:Src/usart.c **** HAL_NVIC_DisableIRQ(UART4_IRQn);
  832. 194:Src/usart.c **** /* USER CODE BEGIN UART4_MspDeInit 1 */
  833. 195:Src/usart.c ****
  834. 196:Src/usart.c **** /* USER CODE END UART4_MspDeInit 1 */
  835. 197:Src/usart.c **** }
  836. 198:Src/usart.c **** else if(uartHandle->Instance==USART1)
  837. 552 .loc 1 198 8 is_stmt 1 view .LVU165
  838. 553 .loc 1 198 10 is_stmt 0 view .LVU166
  839. 554 000a 1A4A ldr r2, .L37+4
  840. 555 000c 9342 cmp r3, r2
  841. 556 000e 12D0 beq .L35
  842. 199:Src/usart.c **** {
  843. 200:Src/usart.c **** /* USER CODE BEGIN USART1_MspDeInit 0 */
  844. 201:Src/usart.c ****
  845. 202:Src/usart.c **** /* USER CODE END USART1_MspDeInit 0 */
  846. 203:Src/usart.c **** /* Peripheral clock disable */
  847. 204:Src/usart.c **** __HAL_RCC_USART1_CLK_DISABLE();
  848. 205:Src/usart.c ****
  849. 206:Src/usart.c **** /**USART1 GPIO Configuration
  850. 207:Src/usart.c **** PB6 ------> USART1_TX
  851. 208:Src/usart.c **** PB7 ------> USART1_RX
  852. 209:Src/usart.c **** */
  853. 210:Src/usart.c **** HAL_GPIO_DeInit(GPIOB, GPIO_PIN_6|GPIO_PIN_7);
  854. 211:Src/usart.c ****
  855. 212:Src/usart.c **** /* USART1 interrupt Deinit */
  856. 213:Src/usart.c **** HAL_NVIC_DisableIRQ(USART1_IRQn);
  857. 214:Src/usart.c **** /* USER CODE BEGIN USART1_MspDeInit 1 */
  858. 215:Src/usart.c ****
  859. 216:Src/usart.c **** /* USER CODE END USART1_MspDeInit 1 */
  860. 217:Src/usart.c **** }
  861. 218:Src/usart.c **** else if(uartHandle->Instance==USART2)
  862. 557 .loc 1 218 8 is_stmt 1 view .LVU167
  863. 558 .loc 1 218 10 is_stmt 0 view .LVU168
  864. 559 0010 194A ldr r2, .L37+8
  865. 560 0012 9342 cmp r3, r2
  866. 561 0014 1DD0 beq .L36
  867. 562 .LVL24:
  868. 563 .L29:
  869. 219:Src/usart.c **** {
  870. 220:Src/usart.c **** /* USER CODE BEGIN USART2_MspDeInit 0 */
  871. ARM GAS /tmp/ccGo0ZHH.s page 16
  872. 221:Src/usart.c ****
  873. 222:Src/usart.c **** /* USER CODE END USART2_MspDeInit 0 */
  874. 223:Src/usart.c **** /* Peripheral clock disable */
  875. 224:Src/usart.c **** __HAL_RCC_USART2_CLK_DISABLE();
  876. 225:Src/usart.c ****
  877. 226:Src/usart.c **** /**USART2 GPIO Configuration
  878. 227:Src/usart.c **** PD5 ------> USART2_TX
  879. 228:Src/usart.c **** PD6 ------> USART2_RX
  880. 229:Src/usart.c **** */
  881. 230:Src/usart.c **** HAL_GPIO_DeInit(GPIOD, GPIO_PIN_5|GPIO_PIN_6);
  882. 231:Src/usart.c ****
  883. 232:Src/usart.c **** /* USART2 interrupt Deinit */
  884. 233:Src/usart.c **** HAL_NVIC_DisableIRQ(USART2_IRQn);
  885. 234:Src/usart.c **** /* USER CODE BEGIN USART2_MspDeInit 1 */
  886. 235:Src/usart.c ****
  887. 236:Src/usart.c **** /* USER CODE END USART2_MspDeInit 1 */
  888. 237:Src/usart.c **** }
  889. 238:Src/usart.c **** }
  890. 564 .loc 1 238 1 view .LVU169
  891. 565 0016 08BD pop {r3, pc}
  892. 566 .LVL25:
  893. 567 .L34:
  894. 184:Src/usart.c ****
  895. 568 .loc 1 184 5 is_stmt 1 view .LVU170
  896. 569 0018 02F5F632 add r2, r2, #125952
  897. 570 001c 136C ldr r3, [r2, #64]
  898. 571 001e 23F40023 bic r3, r3, #524288
  899. 572 0022 1364 str r3, [r2, #64]
  900. 190:Src/usart.c ****
  901. 573 .loc 1 190 5 view .LVU171
  902. 574 0024 4FF44061 mov r1, #3072
  903. 575 0028 1448 ldr r0, .L37+12
  904. 576 .LVL26:
  905. 190:Src/usart.c ****
  906. 577 .loc 1 190 5 is_stmt 0 view .LVU172
  907. 578 002a FFF7FEFF bl HAL_GPIO_DeInit
  908. 579 .LVL27:
  909. 193:Src/usart.c **** /* USER CODE BEGIN UART4_MspDeInit 1 */
  910. 580 .loc 1 193 5 is_stmt 1 view .LVU173
  911. 581 002e 3420 movs r0, #52
  912. 582 0030 FFF7FEFF bl HAL_NVIC_DisableIRQ
  913. 583 .LVL28:
  914. 584 0034 EFE7 b .L29
  915. 585 .LVL29:
  916. 586 .L35:
  917. 204:Src/usart.c ****
  918. 587 .loc 1 204 5 view .LVU174
  919. 588 0036 02F59432 add r2, r2, #75776
  920. 589 003a 536C ldr r3, [r2, #68]
  921. 590 003c 23F01003 bic r3, r3, #16
  922. 591 0040 5364 str r3, [r2, #68]
  923. 210:Src/usart.c ****
  924. 592 .loc 1 210 5 view .LVU175
  925. 593 0042 C021 movs r1, #192
  926. 594 0044 0E48 ldr r0, .L37+16
  927. 595 .LVL30:
  928. 210:Src/usart.c ****
  929. ARM GAS /tmp/ccGo0ZHH.s page 17
  930. 596 .loc 1 210 5 is_stmt 0 view .LVU176
  931. 597 0046 FFF7FEFF bl HAL_GPIO_DeInit
  932. 598 .LVL31:
  933. 213:Src/usart.c **** /* USER CODE BEGIN USART1_MspDeInit 1 */
  934. 599 .loc 1 213 5 is_stmt 1 view .LVU177
  935. 600 004a 2520 movs r0, #37
  936. 601 004c FFF7FEFF bl HAL_NVIC_DisableIRQ
  937. 602 .LVL32:
  938. 603 0050 E1E7 b .L29
  939. 604 .LVL33:
  940. 605 .L36:
  941. 224:Src/usart.c ****
  942. 606 .loc 1 224 5 view .LVU178
  943. 607 0052 02F5FA32 add r2, r2, #128000
  944. 608 0056 136C ldr r3, [r2, #64]
  945. 609 0058 23F40033 bic r3, r3, #131072
  946. 610 005c 1364 str r3, [r2, #64]
  947. 230:Src/usart.c ****
  948. 611 .loc 1 230 5 view .LVU179
  949. 612 005e 6021 movs r1, #96
  950. 613 0060 0848 ldr r0, .L37+20
  951. 614 .LVL34:
  952. 230:Src/usart.c ****
  953. 615 .loc 1 230 5 is_stmt 0 view .LVU180
  954. 616 0062 FFF7FEFF bl HAL_GPIO_DeInit
  955. 617 .LVL35:
  956. 233:Src/usart.c **** /* USER CODE BEGIN USART2_MspDeInit 1 */
  957. 618 .loc 1 233 5 is_stmt 1 view .LVU181
  958. 619 0066 2620 movs r0, #38
  959. 620 0068 FFF7FEFF bl HAL_NVIC_DisableIRQ
  960. 621 .LVL36:
  961. 622 .loc 1 238 1 is_stmt 0 view .LVU182
  962. 623 006c D3E7 b .L29
  963. 624 .L38:
  964. 625 006e 00BF .align 2
  965. 626 .L37:
  966. 627 0070 004C0040 .word 1073761280
  967. 628 0074 00100140 .word 1073811456
  968. 629 0078 00440040 .word 1073759232
  969. 630 007c 00080240 .word 1073874944
  970. 631 0080 00040240 .word 1073873920
  971. 632 0084 000C0240 .word 1073875968
  972. 633 .cfi_endproc
  973. 634 .LFE134:
  974. 636 .section .text.__io_putchar,"ax",%progbits
  975. 637 .align 1
  976. 638 .global __io_putchar
  977. 639 .syntax unified
  978. 640 .thumb
  979. 641 .thumb_func
  980. 643 __io_putchar:
  981. 644 .LVL37:
  982. 645 .LFB135:
  983. 239:Src/usart.c ****
  984. 240:Src/usart.c **** /* USER CODE BEGIN 1 */
  985. 241:Src/usart.c **** #ifdef __GNUC__
  986. 242:Src/usart.c **** /* With GCC/RAISONANCE, small printf (option LD Linker->Libraries->Small printf
  987. ARM GAS /tmp/ccGo0ZHH.s page 18
  988. 243:Src/usart.c **** set to 'Yes') calls __io_putchar() */
  989. 244:Src/usart.c **** #define PUTCHAR_PROTOTYPE int __io_putchar(int ch)
  990. 245:Src/usart.c **** #else
  991. 246:Src/usart.c **** #define PUTCHAR_PROTOTYPE int fputc(int ch)
  992. 247:Src/usart.c **** #endif /* __GNUC__ */
  993. 248:Src/usart.c **** /**
  994. 249:Src/usart.c **** * @brief Retargets the C library printf function to the USART.
  995. 250:Src/usart.c **** * @param None
  996. 251:Src/usart.c **** * @retval None
  997. 252:Src/usart.c **** */
  998. 253:Src/usart.c **** PUTCHAR_PROTOTYPE
  999. 254:Src/usart.c **** {
  1000. 646 .loc 1 254 1 is_stmt 1 view -0
  1001. 647 .cfi_startproc
  1002. 648 @ args = 0, pretend = 0, frame = 8
  1003. 649 @ frame_needed = 0, uses_anonymous_args = 0
  1004. 650 .loc 1 254 1 is_stmt 0 view .LVU184
  1005. 651 0000 00B5 push {lr}
  1006. 652 .LCFI8:
  1007. 653 .cfi_def_cfa_offset 4
  1008. 654 .cfi_offset 14, -4
  1009. 655 0002 83B0 sub sp, sp, #12
  1010. 656 .LCFI9:
  1011. 657 .cfi_def_cfa_offset 16
  1012. 658 0004 0190 str r0, [sp, #4]
  1013. 255:Src/usart.c **** /* Place your implementation of fputc here */
  1014. 256:Src/usart.c **** /* e.g. write a character to the EVAL_COM1 and Loop until the end of transmission */
  1015. 257:Src/usart.c **** HAL_UART_Transmit(&huart4, (uint8_t *)&ch, 1, 0xFFFF);
  1016. 659 .loc 1 257 3 is_stmt 1 view .LVU185
  1017. 660 0006 4FF6FF73 movw r3, #65535
  1018. 661 000a 0122 movs r2, #1
  1019. 662 000c 01A9 add r1, sp, #4
  1020. 663 000e 0348 ldr r0, .L41
  1021. 664 .LVL38:
  1022. 665 .loc 1 257 3 is_stmt 0 view .LVU186
  1023. 666 0010 FFF7FEFF bl HAL_UART_Transmit
  1024. 667 .LVL39:
  1025. 258:Src/usart.c ****
  1026. 259:Src/usart.c **** return ch;
  1027. 668 .loc 1 259 3 is_stmt 1 view .LVU187
  1028. 260:Src/usart.c **** }
  1029. 669 .loc 1 260 1 is_stmt 0 view .LVU188
  1030. 670 0014 0198 ldr r0, [sp, #4]
  1031. 671 0016 03B0 add sp, sp, #12
  1032. 672 .LCFI10:
  1033. 673 .cfi_def_cfa_offset 4
  1034. 674 @ sp needed
  1035. 675 0018 5DF804FB ldr pc, [sp], #4
  1036. 676 .L42:
  1037. 677 .align 2
  1038. 678 .L41:
  1039. 679 001c 00000000 .word .LANCHOR0
  1040. 680 .cfi_endproc
  1041. 681 .LFE135:
  1042. 683 .global huart2
  1043. 684 .global huart1
  1044. 685 .global huart4
  1045. ARM GAS /tmp/ccGo0ZHH.s page 19
  1046. 686 .section .bss.huart1,"aw",%nobits
  1047. 687 .align 2
  1048. 688 .set .LANCHOR1,. + 0
  1049. 691 huart1:
  1050. 692 0000 00000000 .space 64
  1051. 692 00000000
  1052. 692 00000000
  1053. 692 00000000
  1054. 692 00000000
  1055. 693 .section .bss.huart2,"aw",%nobits
  1056. 694 .align 2
  1057. 695 .set .LANCHOR2,. + 0
  1058. 698 huart2:
  1059. 699 0000 00000000 .space 64
  1060. 699 00000000
  1061. 699 00000000
  1062. 699 00000000
  1063. 699 00000000
  1064. 700 .section .bss.huart4,"aw",%nobits
  1065. 701 .align 2
  1066. 702 .set .LANCHOR0,. + 0
  1067. 705 huart4:
  1068. 706 0000 00000000 .space 64
  1069. 706 00000000
  1070. 706 00000000
  1071. 706 00000000
  1072. 706 00000000
  1073. 707 .text
  1074. 708 .Letext0:
  1075. 709 .file 2 "/home/gitc/\346\241\214\351\235\242/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/
  1076. 710 .file 3 "/home/gitc/\346\241\214\351\235\242/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/
  1077. 711 .file 4 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h"
  1078. 712 .file 5 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h"
  1079. 713 .file 6 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h"
  1080. 714 .file 7 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h"
  1081. 715 .file 8 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h"
  1082. 716 .file 9 "Inc/usart.h"
  1083. 717 .file 10 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h"
  1084. 718 .file 11 "Inc/main.h"
  1085. ARM GAS /tmp/ccGo0ZHH.s page 20
  1086. DEFINED SYMBOLS
  1087. *ABS*:0000000000000000 usart.c
  1088. /tmp/ccGo0ZHH.s:20 .text.MX_UART4_Init:0000000000000000 $t
  1089. /tmp/ccGo0ZHH.s:26 .text.MX_UART4_Init:0000000000000000 MX_UART4_Init
  1090. /tmp/ccGo0ZHH.s:85 .text.MX_UART4_Init:000000000000002c $d
  1091. /tmp/ccGo0ZHH.s:91 .text.MX_USART1_UART_Init:0000000000000000 $t
  1092. /tmp/ccGo0ZHH.s:97 .text.MX_USART1_UART_Init:0000000000000000 MX_USART1_UART_Init
  1093. /tmp/ccGo0ZHH.s:155 .text.MX_USART1_UART_Init:000000000000002c $d
  1094. /tmp/ccGo0ZHH.s:161 .text.MX_USART2_UART_Init:0000000000000000 $t
  1095. /tmp/ccGo0ZHH.s:167 .text.MX_USART2_UART_Init:0000000000000000 MX_USART2_UART_Init
  1096. /tmp/ccGo0ZHH.s:225 .text.MX_USART2_UART_Init:000000000000002c $d
  1097. /tmp/ccGo0ZHH.s:231 .text.HAL_UART_MspInit:0000000000000000 $t
  1098. /tmp/ccGo0ZHH.s:237 .text.HAL_UART_MspInit:0000000000000000 HAL_UART_MspInit
  1099. /tmp/ccGo0ZHH.s:515 .text.HAL_UART_MspInit:0000000000000138 $d
  1100. /tmp/ccGo0ZHH.s:526 .text.HAL_UART_MspDeInit:0000000000000000 $t
  1101. /tmp/ccGo0ZHH.s:532 .text.HAL_UART_MspDeInit:0000000000000000 HAL_UART_MspDeInit
  1102. /tmp/ccGo0ZHH.s:627 .text.HAL_UART_MspDeInit:0000000000000070 $d
  1103. /tmp/ccGo0ZHH.s:637 .text.__io_putchar:0000000000000000 $t
  1104. /tmp/ccGo0ZHH.s:643 .text.__io_putchar:0000000000000000 __io_putchar
  1105. /tmp/ccGo0ZHH.s:679 .text.__io_putchar:000000000000001c $d
  1106. /tmp/ccGo0ZHH.s:698 .bss.huart2:0000000000000000 huart2
  1107. /tmp/ccGo0ZHH.s:691 .bss.huart1:0000000000000000 huart1
  1108. /tmp/ccGo0ZHH.s:705 .bss.huart4:0000000000000000 huart4
  1109. /tmp/ccGo0ZHH.s:687 .bss.huart1:0000000000000000 $d
  1110. /tmp/ccGo0ZHH.s:694 .bss.huart2:0000000000000000 $d
  1111. /tmp/ccGo0ZHH.s:701 .bss.huart4:0000000000000000 $d
  1112. UNDEFINED SYMBOLS
  1113. HAL_UART_Init
  1114. Error_Handler
  1115. HAL_GPIO_Init
  1116. HAL_NVIC_SetPriority
  1117. HAL_NVIC_EnableIRQ
  1118. HAL_GPIO_DeInit
  1119. HAL_NVIC_DisableIRQ
  1120. HAL_UART_Transmit