gpio.lst 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.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, 6
  14. 13 .eabi_attribute 34, 1
  15. 14 .eabi_attribute 18, 4
  16. 15 .file "gpio.c"
  17. 16 .text
  18. 17 .Ltext0:
  19. 18 .cfi_sections .debug_frame
  20. 19 .section .text.MX_GPIO_Init,"ax",%progbits
  21. 20 .align 1
  22. 21 .global MX_GPIO_Init
  23. 22 .syntax unified
  24. 23 .thumb
  25. 24 .thumb_func
  26. 26 MX_GPIO_Init:
  27. 27 .LFB130:
  28. 28 .file 1 "Core/Src/gpio.c"
  29. 1:Core/Src/gpio.c **** /* USER CODE BEGIN Header */
  30. 2:Core/Src/gpio.c **** /**
  31. 3:Core/Src/gpio.c **** ******************************************************************************
  32. 4:Core/Src/gpio.c **** * @file gpio.c
  33. 5:Core/Src/gpio.c **** * @brief This file provides code for the configuration
  34. 6:Core/Src/gpio.c **** * of all used GPIO pins.
  35. 7:Core/Src/gpio.c **** ******************************************************************************
  36. 8:Core/Src/gpio.c **** * @attention
  37. 9:Core/Src/gpio.c **** *
  38. 10:Core/Src/gpio.c **** * Copyright (c) 2025 STMicroelectronics.
  39. 11:Core/Src/gpio.c **** * All rights reserved.
  40. 12:Core/Src/gpio.c **** *
  41. 13:Core/Src/gpio.c **** * This software is licensed under terms that can be found in the LICENSE file
  42. 14:Core/Src/gpio.c **** * in the root directory of this software component.
  43. 15:Core/Src/gpio.c **** * If no LICENSE file comes with this software, it is provided AS-IS.
  44. 16:Core/Src/gpio.c **** *
  45. 17:Core/Src/gpio.c **** ******************************************************************************
  46. 18:Core/Src/gpio.c **** */
  47. 19:Core/Src/gpio.c **** /* USER CODE END Header */
  48. 20:Core/Src/gpio.c ****
  49. 21:Core/Src/gpio.c **** /* Includes ------------------------------------------------------------------*/
  50. 22:Core/Src/gpio.c **** #include "gpio.h"
  51. 23:Core/Src/gpio.c ****
  52. 24:Core/Src/gpio.c **** /* USER CODE BEGIN 0 */
  53. 25:Core/Src/gpio.c ****
  54. 26:Core/Src/gpio.c **** /* USER CODE END 0 */
  55. 27:Core/Src/gpio.c ****
  56. 28:Core/Src/gpio.c **** /*----------------------------------------------------------------------------*/
  57. 29:Core/Src/gpio.c **** /* Configure GPIO */
  58. 30:Core/Src/gpio.c **** /*----------------------------------------------------------------------------*/
  59. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s page 2
  60. 31:Core/Src/gpio.c **** /* USER CODE BEGIN 1 */
  61. 32:Core/Src/gpio.c ****
  62. 33:Core/Src/gpio.c **** /* USER CODE END 1 */
  63. 34:Core/Src/gpio.c ****
  64. 35:Core/Src/gpio.c **** /** Configure pins as
  65. 36:Core/Src/gpio.c **** * Analog
  66. 37:Core/Src/gpio.c **** * Input
  67. 38:Core/Src/gpio.c **** * Output
  68. 39:Core/Src/gpio.c **** * EVENT_OUT
  69. 40:Core/Src/gpio.c **** * EXTI
  70. 41:Core/Src/gpio.c **** * Free pins are configured automatically as Analog (this feature is enabled through
  71. 42:Core/Src/gpio.c **** * the Code Generation settings)
  72. 43:Core/Src/gpio.c **** */
  73. 44:Core/Src/gpio.c **** void MX_GPIO_Init(void)
  74. 45:Core/Src/gpio.c **** {
  75. 29 .loc 1 45 1
  76. 30 .cfi_startproc
  77. 31 @ args = 0, pretend = 0, frame = 40
  78. 32 @ frame_needed = 1, uses_anonymous_args = 0
  79. 33 0000 80B5 push {r7, lr}
  80. 34 .LCFI0:
  81. 35 .cfi_def_cfa_offset 8
  82. 36 .cfi_offset 7, -8
  83. 37 .cfi_offset 14, -4
  84. 38 0002 8AB0 sub sp, sp, #40
  85. 39 .LCFI1:
  86. 40 .cfi_def_cfa_offset 48
  87. 41 0004 00AF add r7, sp, #0
  88. 42 .LCFI2:
  89. 43 .cfi_def_cfa_register 7
  90. 46:Core/Src/gpio.c ****
  91. 47:Core/Src/gpio.c **** GPIO_InitTypeDef GPIO_InitStruct = {0};
  92. 44 .loc 1 47 20
  93. 45 0006 07F11403 add r3, r7, #20
  94. 46 000a 0022 movs r2, #0
  95. 47 000c 1A60 str r2, [r3]
  96. 48 000e 5A60 str r2, [r3, #4]
  97. 49 0010 9A60 str r2, [r3, #8]
  98. 50 0012 DA60 str r2, [r3, #12]
  99. 51 0014 1A61 str r2, [r3, #16]
  100. 52 .LBB2:
  101. 48:Core/Src/gpio.c ****
  102. 49:Core/Src/gpio.c **** /* GPIO Ports Clock Enable */
  103. 50:Core/Src/gpio.c **** __HAL_RCC_GPIOC_CLK_ENABLE();
  104. 53 .loc 1 50 3
  105. 54 0016 594B ldr r3, .L2
  106. 55 0018 5B69 ldr r3, [r3, #20]
  107. 56 001a 584A ldr r2, .L2
  108. 57 001c 43F40023 orr r3, r3, #524288
  109. 58 0020 5361 str r3, [r2, #20]
  110. 59 0022 564B ldr r3, .L2
  111. 60 0024 5B69 ldr r3, [r3, #20]
  112. 61 0026 03F40023 and r3, r3, #524288
  113. 62 002a 3B61 str r3, [r7, #16]
  114. 63 002c 3B69 ldr r3, [r7, #16]
  115. 64 .LBE2:
  116. 65 .LBB3:
  117. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s page 3
  118. 51:Core/Src/gpio.c **** __HAL_RCC_GPIOF_CLK_ENABLE();
  119. 66 .loc 1 51 3
  120. 67 002e 534B ldr r3, .L2
  121. 68 0030 5B69 ldr r3, [r3, #20]
  122. 69 0032 524A ldr r2, .L2
  123. 70 0034 43F48003 orr r3, r3, #4194304
  124. 71 0038 5361 str r3, [r2, #20]
  125. 72 003a 504B ldr r3, .L2
  126. 73 003c 5B69 ldr r3, [r3, #20]
  127. 74 003e 03F48003 and r3, r3, #4194304
  128. 75 0042 FB60 str r3, [r7, #12]
  129. 76 0044 FB68 ldr r3, [r7, #12]
  130. 77 .LBE3:
  131. 78 .LBB4:
  132. 52:Core/Src/gpio.c **** __HAL_RCC_GPIOA_CLK_ENABLE();
  133. 79 .loc 1 52 3
  134. 80 0046 4D4B ldr r3, .L2
  135. 81 0048 5B69 ldr r3, [r3, #20]
  136. 82 004a 4C4A ldr r2, .L2
  137. 83 004c 43F40033 orr r3, r3, #131072
  138. 84 0050 5361 str r3, [r2, #20]
  139. 85 0052 4A4B ldr r3, .L2
  140. 86 0054 5B69 ldr r3, [r3, #20]
  141. 87 0056 03F40033 and r3, r3, #131072
  142. 88 005a BB60 str r3, [r7, #8]
  143. 89 005c BB68 ldr r3, [r7, #8]
  144. 90 .LBE4:
  145. 91 .LBB5:
  146. 53:Core/Src/gpio.c **** __HAL_RCC_GPIOB_CLK_ENABLE();
  147. 92 .loc 1 53 3
  148. 93 005e 474B ldr r3, .L2
  149. 94 0060 5B69 ldr r3, [r3, #20]
  150. 95 0062 464A ldr r2, .L2
  151. 96 0064 43F48023 orr r3, r3, #262144
  152. 97 0068 5361 str r3, [r2, #20]
  153. 98 006a 444B ldr r3, .L2
  154. 99 006c 5B69 ldr r3, [r3, #20]
  155. 100 006e 03F48023 and r3, r3, #262144
  156. 101 0072 7B60 str r3, [r7, #4]
  157. 102 0074 7B68 ldr r3, [r7, #4]
  158. 103 .LBE5:
  159. 54:Core/Src/gpio.c ****
  160. 55:Core/Src/gpio.c **** /*Configure GPIO pin Output Level */
  161. 56:Core/Src/gpio.c **** HAL_GPIO_WritePin(GPIOA, LED1_Pin|LED2_Pin|LED3_Pin|LED4_Pin
  162. 104 .loc 1 56 3
  163. 105 0076 0122 movs r2, #1
  164. 106 0078 4FF4F871 mov r1, #496
  165. 107 007c 4FF09040 mov r0, #1207959552
  166. 108 0080 FFF7FEFF bl HAL_GPIO_WritePin
  167. 57:Core/Src/gpio.c **** |CAN_SLIENT_Pin, GPIO_PIN_SET);
  168. 58:Core/Src/gpio.c ****
  169. 59:Core/Src/gpio.c **** /*Configure GPIO pin Output Level */
  170. 60:Core/Src/gpio.c **** HAL_GPIO_WritePin(GPIOB, LED_R_Pin|LED_G_Pin|LED_B_Pin|GPIO_PIN_14, GPIO_PIN_RESET);
  171. 109 .loc 1 60 3
  172. 110 0084 0022 movs r2, #0
  173. 111 0086 44F20701 movw r1, #16391
  174. 112 008a 3D48 ldr r0, .L2+4
  175. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s page 4
  176. 113 008c FFF7FEFF bl HAL_GPIO_WritePin
  177. 61:Core/Src/gpio.c ****
  178. 62:Core/Src/gpio.c **** /*Configure GPIO pins : PC13 PC14 PC15 */
  179. 63:Core/Src/gpio.c **** GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
  180. 114 .loc 1 63 23
  181. 115 0090 4FF46043 mov r3, #57344
  182. 116 0094 7B61 str r3, [r7, #20]
  183. 64:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  184. 117 .loc 1 64 24
  185. 118 0096 0323 movs r3, #3
  186. 119 0098 BB61 str r3, [r7, #24]
  187. 65:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
  188. 120 .loc 1 65 24
  189. 121 009a 0023 movs r3, #0
  190. 122 009c FB61 str r3, [r7, #28]
  191. 66:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
  192. 123 .loc 1 66 3
  193. 124 009e 07F11403 add r3, r7, #20
  194. 125 00a2 1946 mov r1, r3
  195. 126 00a4 3748 ldr r0, .L2+8
  196. 127 00a6 FFF7FEFF bl HAL_GPIO_Init
  197. 67:Core/Src/gpio.c ****
  198. 68:Core/Src/gpio.c **** /*Configure GPIO pins : PA1 PA9 PA10 */
  199. 69:Core/Src/gpio.c **** GPIO_InitStruct.Pin = GPIO_PIN_1|GPIO_PIN_9|GPIO_PIN_10;
  200. 128 .loc 1 69 23
  201. 129 00aa 40F20263 movw r3, #1538
  202. 130 00ae 7B61 str r3, [r7, #20]
  203. 70:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  204. 131 .loc 1 70 24
  205. 132 00b0 0323 movs r3, #3
  206. 133 00b2 BB61 str r3, [r7, #24]
  207. 71:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
  208. 134 .loc 1 71 24
  209. 135 00b4 0023 movs r3, #0
  210. 136 00b6 FB61 str r3, [r7, #28]
  211. 72:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  212. 137 .loc 1 72 3
  213. 138 00b8 07F11403 add r3, r7, #20
  214. 139 00bc 1946 mov r1, r3
  215. 140 00be 4FF09040 mov r0, #1207959552
  216. 141 00c2 FFF7FEFF bl HAL_GPIO_Init
  217. 73:Core/Src/gpio.c ****
  218. 74:Core/Src/gpio.c **** /*Configure GPIO pins : LED1_Pin LED2_Pin LED3_Pin LED4_Pin
  219. 75:Core/Src/gpio.c **** CAN_SLIENT_Pin */
  220. 76:Core/Src/gpio.c **** GPIO_InitStruct.Pin = LED1_Pin|LED3_Pin
  221. 142 .loc 1 76 25
  222. 143 00c6 4FF4A873 mov r3, #336
  223. 144 00ca 7B61 str r3, [r7, #20]
  224. 77:Core/Src/gpio.c **** |CAN_SLIENT_Pin;
  225. 78:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_OD;
  226. 145 .loc 1 78 24
  227. 146 00cc 1123 movs r3, #17
  228. 147 00ce BB61 str r3, [r7, #24]
  229. 79:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
  230. 148 .loc 1 79 24
  231. 149 00d0 0023 movs r3, #0
  232. 150 00d2 FB61 str r3, [r7, #28]
  233. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s page 5
  234. 80:Core/Src/gpio.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  235. 151 .loc 1 80 25
  236. 152 00d4 0023 movs r3, #0
  237. 153 00d6 3B62 str r3, [r7, #32]
  238. 81:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  239. 154 .loc 1 81 3
  240. 155 00d8 07F11403 add r3, r7, #20
  241. 156 00dc 1946 mov r1, r3
  242. 157 00de 4FF09040 mov r0, #1207959552
  243. 158 00e2 FFF7FEFF bl HAL_GPIO_Init
  244. 82:Core/Src/gpio.c ****
  245. 83:Core/Src/gpio.c **** GPIO_InitStruct.Pin = LED2_Pin;
  246. 159 .loc 1 83 23
  247. 160 00e6 2023 movs r3, #32
  248. 161 00e8 7B61 str r3, [r7, #20]
  249. 84:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_OD;
  250. 162 .loc 1 84 24
  251. 163 00ea 1123 movs r3, #17
  252. 164 00ec BB61 str r3, [r7, #24]
  253. 85:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
  254. 165 .loc 1 85 24
  255. 166 00ee 0023 movs r3, #0
  256. 167 00f0 FB61 str r3, [r7, #28]
  257. 86:Core/Src/gpio.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  258. 168 .loc 1 86 25
  259. 169 00f2 0023 movs r3, #0
  260. 170 00f4 3B62 str r3, [r7, #32]
  261. 87:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  262. 171 .loc 1 87 3
  263. 172 00f6 07F11403 add r3, r7, #20
  264. 173 00fa 1946 mov r1, r3
  265. 174 00fc 4FF09040 mov r0, #1207959552
  266. 175 0100 FFF7FEFF bl HAL_GPIO_Init
  267. 88:Core/Src/gpio.c ****
  268. 89:Core/Src/gpio.c **** /*Configure GPIO pins : LED_R_Pin LED_G_Pin LED_B_Pin PB15 */
  269. 90:Core/Src/gpio.c **** GPIO_InitStruct.Pin = LED_R_Pin|LED_G_Pin|LED_B_Pin;
  270. 176 .loc 1 90 23
  271. 177 0104 0723 movs r3, #7
  272. 178 0106 7B61 str r3, [r7, #20]
  273. 91:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  274. 179 .loc 1 91 24
  275. 180 0108 0123 movs r3, #1
  276. 181 010a BB61 str r3, [r7, #24]
  277. 92:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
  278. 182 .loc 1 92 24
  279. 183 010c 0023 movs r3, #0
  280. 184 010e FB61 str r3, [r7, #28]
  281. 93:Core/Src/gpio.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  282. 185 .loc 1 93 25
  283. 186 0110 0023 movs r3, #0
  284. 187 0112 3B62 str r3, [r7, #32]
  285. 94:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  286. 188 .loc 1 94 3
  287. 189 0114 07F11403 add r3, r7, #20
  288. 190 0118 1946 mov r1, r3
  289. 191 011a 1948 ldr r0, .L2+4
  290. 192 011c FFF7FEFF bl HAL_GPIO_Init
  291. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s page 6
  292. 95:Core/Src/gpio.c ****
  293. 96:Core/Src/gpio.c **** GPIO_InitStruct.Pin = GPIO_PIN_14;
  294. 193 .loc 1 96 23
  295. 194 0120 4FF48043 mov r3, #16384
  296. 195 0124 7B61 str r3, [r7, #20]
  297. 97:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  298. 196 .loc 1 97 24
  299. 197 0126 0123 movs r3, #1
  300. 198 0128 BB61 str r3, [r7, #24]
  301. 98:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
  302. 199 .loc 1 98 24
  303. 200 012a 0123 movs r3, #1
  304. 201 012c FB61 str r3, [r7, #28]
  305. 99:Core/Src/gpio.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  306. 202 .loc 1 99 25
  307. 203 012e 0023 movs r3, #0
  308. 204 0130 3B62 str r3, [r7, #32]
  309. 100:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  310. 205 .loc 1 100 3
  311. 206 0132 07F11403 add r3, r7, #20
  312. 207 0136 1946 mov r1, r3
  313. 208 0138 1148 ldr r0, .L2+4
  314. 209 013a FFF7FEFF bl HAL_GPIO_Init
  315. 101:Core/Src/gpio.c ****
  316. 102:Core/Src/gpio.c **** /*Configure GPIO pins : PB12 PB13 PB14 */
  317. 103:Core/Src/gpio.c **** GPIO_InitStruct.Pin = GPIO_PIN_12|GPIO_PIN_13;
  318. 210 .loc 1 103 23
  319. 211 013e 4FF44053 mov r3, #12288
  320. 212 0142 7B61 str r3, [r7, #20]
  321. 104:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  322. 213 .loc 1 104 24
  323. 214 0144 0323 movs r3, #3
  324. 215 0146 BB61 str r3, [r7, #24]
  325. 105:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
  326. 216 .loc 1 105 24
  327. 217 0148 0023 movs r3, #0
  328. 218 014a FB61 str r3, [r7, #28]
  329. 106:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  330. 219 .loc 1 106 3
  331. 220 014c 07F11403 add r3, r7, #20
  332. 221 0150 1946 mov r1, r3
  333. 222 0152 0B48 ldr r0, .L2+4
  334. 223 0154 FFF7FEFF bl HAL_GPIO_Init
  335. 107:Core/Src/gpio.c ****
  336. 108:Core/Src/gpio.c **** GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
  337. 224 .loc 1 108 23
  338. 225 0158 4FF44043 mov r3, #49152
  339. 226 015c 7B61 str r3, [r7, #20]
  340. 109:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  341. 227 .loc 1 109 24
  342. 228 015e 0023 movs r3, #0
  343. 229 0160 BB61 str r3, [r7, #24]
  344. 110:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
  345. 230 .loc 1 110 24
  346. 231 0162 0123 movs r3, #1
  347. 232 0164 FB61 str r3, [r7, #28]
  348. 111:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  349. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s page 7
  350. 233 .loc 1 111 3
  351. 234 0166 07F11403 add r3, r7, #20
  352. 235 016a 1946 mov r1, r3
  353. 236 016c 0448 ldr r0, .L2+4
  354. 237 016e FFF7FEFF bl HAL_GPIO_Init
  355. 112:Core/Src/gpio.c ****
  356. 113:Core/Src/gpio.c **** }
  357. 238 .loc 1 113 1
  358. 239 0172 00BF nop
  359. 240 0174 2837 adds r7, r7, #40
  360. 241 .LCFI3:
  361. 242 .cfi_def_cfa_offset 8
  362. 243 0176 BD46 mov sp, r7
  363. 244 .LCFI4:
  364. 245 .cfi_def_cfa_register 13
  365. 246 @ sp needed
  366. 247 0178 80BD pop {r7, pc}
  367. 248 .L3:
  368. 249 017a 00BF .align 2
  369. 250 .L2:
  370. 251 017c 00100240 .word 1073876992
  371. 252 0180 00040048 .word 1207960576
  372. 253 0184 00080048 .word 1207961600
  373. 254 .cfi_endproc
  374. 255 .LFE130:
  375. 257 .section .text.init_gpio,"ax",%progbits
  376. 258 .align 1
  377. 259 .global init_gpio
  378. 260 .syntax unified
  379. 261 .thumb
  380. 262 .thumb_func
  381. 264 init_gpio:
  382. 265 .LFB131:
  383. 114:Core/Src/gpio.c ****
  384. 115:Core/Src/gpio.c **** /* USER CODE BEGIN 2 */
  385. 116:Core/Src/gpio.c **** void init_gpio(uint8_t uav_type)
  386. 117:Core/Src/gpio.c **** {
  387. 266 .loc 1 117 1
  388. 267 .cfi_startproc
  389. 268 @ args = 0, pretend = 0, frame = 32
  390. 269 @ frame_needed = 1, uses_anonymous_args = 0
  391. 270 0000 80B5 push {r7, lr}
  392. 271 .LCFI5:
  393. 272 .cfi_def_cfa_offset 8
  394. 273 .cfi_offset 7, -8
  395. 274 .cfi_offset 14, -4
  396. 275 0002 88B0 sub sp, sp, #32
  397. 276 .LCFI6:
  398. 277 .cfi_def_cfa_offset 40
  399. 278 0004 00AF add r7, sp, #0
  400. 279 .LCFI7:
  401. 280 .cfi_def_cfa_register 7
  402. 281 0006 0346 mov r3, r0
  403. 282 0008 FB71 strb r3, [r7, #7]
  404. 118:Core/Src/gpio.c **** if(uav_type == 18)
  405. 283 .loc 1 118 5
  406. 284 000a FB79 ldrb r3, [r7, #7] @ zero_extendqisi2
  407. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s page 8
  408. 285 000c 122B cmp r3, #18
  409. 286 000e 14D1 bne .L6
  410. 287 .LBB6:
  411. 119:Core/Src/gpio.c **** {
  412. 120:Core/Src/gpio.c **** GPIO_InitTypeDef GPIO_InitStruct = {0};
  413. 288 .loc 1 120 22
  414. 289 0010 07F10C03 add r3, r7, #12
  415. 290 0014 0022 movs r2, #0
  416. 291 0016 1A60 str r2, [r3]
  417. 292 0018 5A60 str r2, [r3, #4]
  418. 293 001a 9A60 str r2, [r3, #8]
  419. 294 001c DA60 str r2, [r3, #12]
  420. 295 001e 1A61 str r2, [r3, #16]
  421. 121:Core/Src/gpio.c ****
  422. 122:Core/Src/gpio.c **** GPIO_InitStruct.Pin = GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
  423. 296 .loc 1 122 25
  424. 297 0020 4FF47043 mov r3, #61440
  425. 298 0024 FB60 str r3, [r7, #12]
  426. 123:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
  427. 299 .loc 1 123 26
  428. 300 0026 0023 movs r3, #0
  429. 301 0028 3B61 str r3, [r7, #16]
  430. 124:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_PULLDOWN;
  431. 302 .loc 1 124 26
  432. 303 002a 0223 movs r3, #2
  433. 304 002c 7B61 str r3, [r7, #20]
  434. 125:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
  435. 305 .loc 1 125 5
  436. 306 002e 07F10C03 add r3, r7, #12
  437. 307 0032 1946 mov r1, r3
  438. 308 0034 0348 ldr r0, .L7
  439. 309 0036 FFF7FEFF bl HAL_GPIO_Init
  440. 310 .L6:
  441. 311 .LBE6:
  442. 126:Core/Src/gpio.c **** }
  443. 127:Core/Src/gpio.c ****
  444. 128:Core/Src/gpio.c **** }
  445. 312 .loc 1 128 1
  446. 313 003a 00BF nop
  447. 314 003c 2037 adds r7, r7, #32
  448. 315 .LCFI8:
  449. 316 .cfi_def_cfa_offset 8
  450. 317 003e BD46 mov sp, r7
  451. 318 .LCFI9:
  452. 319 .cfi_def_cfa_register 13
  453. 320 @ sp needed
  454. 321 0040 80BD pop {r7, pc}
  455. 322 .L8:
  456. 323 0042 00BF .align 2
  457. 324 .L7:
  458. 325 0044 00040048 .word 1207960576
  459. 326 .cfi_endproc
  460. 327 .LFE131:
  461. 329 .text
  462. 330 .Letext0:
  463. 331 .file 2 "d:\\arm-gcc\\arm-none-eabi\\include\\machine\\_default_types.h"
  464. 332 .file 3 "d:\\arm-gcc\\arm-none-eabi\\include\\sys\\_stdint.h"
  465. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s page 9
  466. 333 .file 4 "Drivers/CMSIS/Device/ST/STM32F3xx/Include/stm32f302xc.h"
  467. 334 .file 5 "Drivers/STM32F3xx_HAL_Driver/Inc/stm32f3xx_hal_gpio.h"
  468. ARM GAS C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s page 10
  469. DEFINED SYMBOLS
  470. *ABS*:00000000 gpio.c
  471. C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s:20 .text.MX_GPIO_Init:00000000 $t
  472. C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s:26 .text.MX_GPIO_Init:00000000 MX_GPIO_Init
  473. C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s:251 .text.MX_GPIO_Init:0000017c $d
  474. C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s:258 .text.init_gpio:00000000 $t
  475. C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s:264 .text.init_gpio:00000000 init_gpio
  476. C:\Users\zl835\AppData\Local\Temp\ccC8wYhb.s:325 .text.init_gpio:00000044 $d
  477. UNDEFINED SYMBOLS
  478. HAL_GPIO_WritePin
  479. HAL_GPIO_Init