adc.lst 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. ARM GAS /tmp/ccQrrBPm.s page 1
  2. 1 .cpu cortex-m4
  3. 2 .eabi_attribute 27, 1
  4. 3 .eabi_attribute 28, 1
  5. 4 .eabi_attribute 20, 1
  6. 5 .eabi_attribute 21, 1
  7. 6 .eabi_attribute 23, 3
  8. 7 .eabi_attribute 24, 1
  9. 8 .eabi_attribute 25, 1
  10. 9 .eabi_attribute 26, 1
  11. 10 .eabi_attribute 30, 1
  12. 11 .eabi_attribute 34, 1
  13. 12 .eabi_attribute 18, 4
  14. 13 .file "adc.c"
  15. 14 .text
  16. 15 .Ltext0:
  17. 16 .cfi_sections .debug_frame
  18. 17 .section .text.MX_ADC1_Init,"ax",%progbits
  19. 18 .align 1
  20. 19 .global MX_ADC1_Init
  21. 20 .syntax unified
  22. 21 .thumb
  23. 22 .thumb_func
  24. 23 .fpu fpv4-sp-d16
  25. 25 MX_ADC1_Init:
  26. 26 .LFB130:
  27. 27 .file 1 "Src/adc.c"
  28. 1:Src/adc.c **** /**
  29. 2:Src/adc.c **** ******************************************************************************
  30. 3:Src/adc.c **** * File Name : ADC.c
  31. 4:Src/adc.c **** * Description : This file provides code for the configuration
  32. 5:Src/adc.c **** * of the ADC instances.
  33. 6:Src/adc.c **** ******************************************************************************
  34. 7:Src/adc.c **** * @attention
  35. 8:Src/adc.c **** *
  36. 9:Src/adc.c **** * <h2><center>&copy; Copyright (c) 2022 STMicroelectronics.
  37. 10:Src/adc.c **** * All rights reserved.</center></h2>
  38. 11:Src/adc.c **** *
  39. 12:Src/adc.c **** * This software component is licensed by ST under BSD 3-Clause license,
  40. 13:Src/adc.c **** * the "License"; You may not use this file except in compliance with the
  41. 14:Src/adc.c **** * License. You may obtain a copy of the License at:
  42. 15:Src/adc.c **** * opensource.org/licenses/BSD-3-Clause
  43. 16:Src/adc.c **** *
  44. 17:Src/adc.c **** ******************************************************************************
  45. 18:Src/adc.c **** */
  46. 19:Src/adc.c ****
  47. 20:Src/adc.c **** /* Includes ------------------------------------------------------------------*/
  48. 21:Src/adc.c **** #include "adc.h"
  49. 22:Src/adc.c ****
  50. 23:Src/adc.c **** /* USER CODE BEGIN 0 */
  51. 24:Src/adc.c ****
  52. 25:Src/adc.c **** /* USER CODE END 0 */
  53. 26:Src/adc.c ****
  54. 27:Src/adc.c **** ADC_HandleTypeDef hadc1;
  55. 28:Src/adc.c ****
  56. 29:Src/adc.c **** /* ADC1 init function */
  57. 30:Src/adc.c **** void MX_ADC1_Init(void)
  58. 31:Src/adc.c **** {
  59. ARM GAS /tmp/ccQrrBPm.s page 2
  60. 28 .loc 1 31 0
  61. 29 .cfi_startproc
  62. 30 @ args = 0, pretend = 0, frame = 16
  63. 31 @ frame_needed = 0, uses_anonymous_args = 0
  64. 32 0000 00B5 push {lr}
  65. 33 .LCFI0:
  66. 34 .cfi_def_cfa_offset 4
  67. 35 .cfi_offset 14, -4
  68. 36 0002 85B0 sub sp, sp, #20
  69. 37 .LCFI1:
  70. 38 .cfi_def_cfa_offset 24
  71. 32:Src/adc.c **** ADC_ChannelConfTypeDef sConfig = {0};
  72. 39 .loc 1 32 0
  73. 40 0004 0023 movs r3, #0
  74. 41 0006 0093 str r3, [sp]
  75. 42 0008 0193 str r3, [sp, #4]
  76. 43 000a 0293 str r3, [sp, #8]
  77. 44 000c 0393 str r3, [sp, #12]
  78. 33:Src/adc.c ****
  79. 34:Src/adc.c **** /** Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of con
  80. 35:Src/adc.c **** */
  81. 36:Src/adc.c **** hadc1.Instance = ADC1;
  82. 45 .loc 1 36 0
  83. 46 000e 1448 ldr r0, .L7
  84. 47 0010 144A ldr r2, .L7+4
  85. 48 0012 0260 str r2, [r0]
  86. 37:Src/adc.c **** hadc1.Init.ClockPrescaler = ADC_CLOCK_SYNC_PCLK_DIV2;
  87. 49 .loc 1 37 0
  88. 50 0014 4360 str r3, [r0, #4]
  89. 38:Src/adc.c **** hadc1.Init.Resolution = ADC_RESOLUTION_12B;
  90. 51 .loc 1 38 0
  91. 52 0016 8360 str r3, [r0, #8]
  92. 39:Src/adc.c **** hadc1.Init.ScanConvMode = DISABLE;
  93. 53 .loc 1 39 0
  94. 54 0018 0361 str r3, [r0, #16]
  95. 40:Src/adc.c **** hadc1.Init.ContinuousConvMode = DISABLE;
  96. 55 .loc 1 40 0
  97. 56 001a 0376 strb r3, [r0, #24]
  98. 41:Src/adc.c **** hadc1.Init.DiscontinuousConvMode = DISABLE;
  99. 57 .loc 1 41 0
  100. 58 001c 80F82030 strb r3, [r0, #32]
  101. 42:Src/adc.c **** hadc1.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE;
  102. 59 .loc 1 42 0
  103. 60 0020 C362 str r3, [r0, #44]
  104. 43:Src/adc.c **** hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START;
  105. 61 .loc 1 43 0
  106. 62 0022 114A ldr r2, .L7+8
  107. 63 0024 8262 str r2, [r0, #40]
  108. 44:Src/adc.c **** hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT;
  109. 64 .loc 1 44 0
  110. 65 0026 C360 str r3, [r0, #12]
  111. 45:Src/adc.c **** hadc1.Init.NbrOfConversion = 1;
  112. 66 .loc 1 45 0
  113. 67 0028 0122 movs r2, #1
  114. 68 002a C261 str r2, [r0, #28]
  115. 46:Src/adc.c **** hadc1.Init.DMAContinuousRequests = DISABLE;
  116. 69 .loc 1 46 0
  117. ARM GAS /tmp/ccQrrBPm.s page 3
  118. 70 002c 80F83030 strb r3, [r0, #48]
  119. 47:Src/adc.c **** hadc1.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
  120. 71 .loc 1 47 0
  121. 72 0030 4261 str r2, [r0, #20]
  122. 48:Src/adc.c **** if (HAL_ADC_Init(&hadc1) != HAL_OK)
  123. 73 .loc 1 48 0
  124. 74 0032 FFF7FEFF bl HAL_ADC_Init
  125. 75 .LVL0:
  126. 76 0036 68B9 cbnz r0, .L5
  127. 77 .L2:
  128. 49:Src/adc.c **** {
  129. 50:Src/adc.c **** Error_Handler();
  130. 51:Src/adc.c **** }
  131. 52:Src/adc.c **** /** Configure for the selected ADC regular channel its corresponding rank in the sequencer and it
  132. 53:Src/adc.c **** */
  133. 54:Src/adc.c **** sConfig.Channel = ADC_CHANNEL_4;
  134. 78 .loc 1 54 0
  135. 79 0038 0423 movs r3, #4
  136. 80 003a 0093 str r3, [sp]
  137. 55:Src/adc.c **** sConfig.Rank = 1;
  138. 81 .loc 1 55 0
  139. 82 003c 0123 movs r3, #1
  140. 83 003e 0193 str r3, [sp, #4]
  141. 56:Src/adc.c **** sConfig.SamplingTime = ADC_SAMPLETIME_3CYCLES;
  142. 84 .loc 1 56 0
  143. 85 0040 0023 movs r3, #0
  144. 86 0042 0293 str r3, [sp, #8]
  145. 57:Src/adc.c **** if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
  146. 87 .loc 1 57 0
  147. 88 0044 6946 mov r1, sp
  148. 89 0046 0648 ldr r0, .L7
  149. 90 0048 FFF7FEFF bl HAL_ADC_ConfigChannel
  150. 91 .LVL1:
  151. 92 004c 28B9 cbnz r0, .L6
  152. 93 .L1:
  153. 58:Src/adc.c **** {
  154. 59:Src/adc.c **** Error_Handler();
  155. 60:Src/adc.c **** }
  156. 61:Src/adc.c ****
  157. 62:Src/adc.c **** }
  158. 94 .loc 1 62 0
  159. 95 004e 05B0 add sp, sp, #20
  160. 96 .LCFI2:
  161. 97 .cfi_remember_state
  162. 98 .cfi_def_cfa_offset 4
  163. 99 @ sp needed
  164. 100 0050 5DF804FB ldr pc, [sp], #4
  165. 101 .L5:
  166. 102 .LCFI3:
  167. 103 .cfi_restore_state
  168. 50:Src/adc.c **** }
  169. 104 .loc 1 50 0
  170. 105 0054 FFF7FEFF bl Error_Handler
  171. 106 .LVL2:
  172. 107 0058 EEE7 b .L2
  173. 108 .L6:
  174. 59:Src/adc.c **** }
  175. ARM GAS /tmp/ccQrrBPm.s page 4
  176. 109 .loc 1 59 0
  177. 110 005a FFF7FEFF bl Error_Handler
  178. 111 .LVL3:
  179. 112 .loc 1 62 0
  180. 113 005e F6E7 b .L1
  181. 114 .L8:
  182. 115 .align 2
  183. 116 .L7:
  184. 117 0060 00000000 .word hadc1
  185. 118 0064 00200140 .word 1073815552
  186. 119 0068 0100000F .word 251658241
  187. 120 .cfi_endproc
  188. 121 .LFE130:
  189. 123 .section .text.HAL_ADC_MspInit,"ax",%progbits
  190. 124 .align 1
  191. 125 .global HAL_ADC_MspInit
  192. 126 .syntax unified
  193. 127 .thumb
  194. 128 .thumb_func
  195. 129 .fpu fpv4-sp-d16
  196. 131 HAL_ADC_MspInit:
  197. 132 .LFB131:
  198. 63:Src/adc.c ****
  199. 64:Src/adc.c **** void HAL_ADC_MspInit(ADC_HandleTypeDef* adcHandle)
  200. 65:Src/adc.c **** {
  201. 133 .loc 1 65 0
  202. 134 .cfi_startproc
  203. 135 @ args = 0, pretend = 0, frame = 32
  204. 136 @ frame_needed = 0, uses_anonymous_args = 0
  205. 137 .LVL4:
  206. 138 0000 00B5 push {lr}
  207. 139 .LCFI4:
  208. 140 .cfi_def_cfa_offset 4
  209. 141 .cfi_offset 14, -4
  210. 142 0002 89B0 sub sp, sp, #36
  211. 143 .LCFI5:
  212. 144 .cfi_def_cfa_offset 40
  213. 66:Src/adc.c ****
  214. 67:Src/adc.c **** GPIO_InitTypeDef GPIO_InitStruct = {0};
  215. 145 .loc 1 67 0
  216. 146 0004 0023 movs r3, #0
  217. 147 0006 0393 str r3, [sp, #12]
  218. 148 0008 0493 str r3, [sp, #16]
  219. 149 000a 0593 str r3, [sp, #20]
  220. 150 000c 0693 str r3, [sp, #24]
  221. 151 000e 0793 str r3, [sp, #28]
  222. 68:Src/adc.c **** if(adcHandle->Instance==ADC1)
  223. 152 .loc 1 68 0
  224. 153 0010 0268 ldr r2, [r0]
  225. 154 0012 03F18043 add r3, r3, #1073741824
  226. 155 0016 03F59033 add r3, r3, #73728
  227. 156 001a 9A42 cmp r2, r3
  228. 157 001c 02D0 beq .L12
  229. 158 .LVL5:
  230. 159 .L9:
  231. 69:Src/adc.c **** {
  232. 70:Src/adc.c **** /* USER CODE BEGIN ADC1_MspInit 0 */
  233. ARM GAS /tmp/ccQrrBPm.s page 5
  234. 71:Src/adc.c ****
  235. 72:Src/adc.c **** /* USER CODE END ADC1_MspInit 0 */
  236. 73:Src/adc.c **** /* ADC1 clock enable */
  237. 74:Src/adc.c **** __HAL_RCC_ADC1_CLK_ENABLE();
  238. 75:Src/adc.c ****
  239. 76:Src/adc.c **** __HAL_RCC_GPIOA_CLK_ENABLE();
  240. 77:Src/adc.c **** /**ADC1 GPIO Configuration
  241. 78:Src/adc.c **** PA4 ------> ADC1_IN4
  242. 79:Src/adc.c **** */
  243. 80:Src/adc.c **** GPIO_InitStruct.Pin = GPIO_PIN_4;
  244. 81:Src/adc.c **** GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  245. 82:Src/adc.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
  246. 83:Src/adc.c **** HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
  247. 84:Src/adc.c ****
  248. 85:Src/adc.c **** /* USER CODE BEGIN ADC1_MspInit 1 */
  249. 86:Src/adc.c ****
  250. 87:Src/adc.c **** /* USER CODE END ADC1_MspInit 1 */
  251. 88:Src/adc.c **** }
  252. 89:Src/adc.c **** }
  253. 160 .loc 1 89 0
  254. 161 001e 09B0 add sp, sp, #36
  255. 162 .LCFI6:
  256. 163 .cfi_remember_state
  257. 164 .cfi_def_cfa_offset 4
  258. 165 @ sp needed
  259. 166 0020 5DF804FB ldr pc, [sp], #4
  260. 167 .LVL6:
  261. 168 .L12:
  262. 169 .LCFI7:
  263. 170 .cfi_restore_state
  264. 171 .LBB2:
  265. 74:Src/adc.c ****
  266. 172 .loc 1 74 0
  267. 173 0024 0021 movs r1, #0
  268. 174 0026 0191 str r1, [sp, #4]
  269. 175 0028 03F58C33 add r3, r3, #71680
  270. 176 002c 5A6C ldr r2, [r3, #68]
  271. 177 002e 42F48072 orr r2, r2, #256
  272. 178 0032 5A64 str r2, [r3, #68]
  273. 179 0034 5A6C ldr r2, [r3, #68]
  274. 180 0036 02F48072 and r2, r2, #256
  275. 181 003a 0192 str r2, [sp, #4]
  276. 182 003c 019A ldr r2, [sp, #4]
  277. 183 .LBE2:
  278. 184 .LBB3:
  279. 76:Src/adc.c **** /**ADC1 GPIO Configuration
  280. 185 .loc 1 76 0
  281. 186 003e 0291 str r1, [sp, #8]
  282. 187 0040 1A6B ldr r2, [r3, #48]
  283. 188 0042 42F00102 orr r2, r2, #1
  284. 189 0046 1A63 str r2, [r3, #48]
  285. 190 0048 1B6B ldr r3, [r3, #48]
  286. 191 004a 03F00103 and r3, r3, #1
  287. 192 004e 0293 str r3, [sp, #8]
  288. 193 0050 029B ldr r3, [sp, #8]
  289. 194 .LBE3:
  290. 80:Src/adc.c **** GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
  291. ARM GAS /tmp/ccQrrBPm.s page 6
  292. 195 .loc 1 80 0
  293. 196 0052 1023 movs r3, #16
  294. 197 0054 0393 str r3, [sp, #12]
  295. 81:Src/adc.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
  296. 198 .loc 1 81 0
  297. 199 0056 0323 movs r3, #3
  298. 200 0058 0493 str r3, [sp, #16]
  299. 83:Src/adc.c ****
  300. 201 .loc 1 83 0
  301. 202 005a 03A9 add r1, sp, #12
  302. 203 005c 0148 ldr r0, .L13
  303. 204 .LVL7:
  304. 205 005e FFF7FEFF bl HAL_GPIO_Init
  305. 206 .LVL8:
  306. 207 .loc 1 89 0
  307. 208 0062 DCE7 b .L9
  308. 209 .L14:
  309. 210 .align 2
  310. 211 .L13:
  311. 212 0064 00000240 .word 1073872896
  312. 213 .cfi_endproc
  313. 214 .LFE131:
  314. 216 .section .text.HAL_ADC_MspDeInit,"ax",%progbits
  315. 217 .align 1
  316. 218 .global HAL_ADC_MspDeInit
  317. 219 .syntax unified
  318. 220 .thumb
  319. 221 .thumb_func
  320. 222 .fpu fpv4-sp-d16
  321. 224 HAL_ADC_MspDeInit:
  322. 225 .LFB132:
  323. 90:Src/adc.c ****
  324. 91:Src/adc.c **** void HAL_ADC_MspDeInit(ADC_HandleTypeDef* adcHandle)
  325. 92:Src/adc.c **** {
  326. 226 .loc 1 92 0
  327. 227 .cfi_startproc
  328. 228 @ args = 0, pretend = 0, frame = 0
  329. 229 @ frame_needed = 0, uses_anonymous_args = 0
  330. 230 .LVL9:
  331. 231 0000 08B5 push {r3, lr}
  332. 232 .LCFI8:
  333. 233 .cfi_def_cfa_offset 8
  334. 234 .cfi_offset 3, -8
  335. 235 .cfi_offset 14, -4
  336. 93:Src/adc.c ****
  337. 94:Src/adc.c **** if(adcHandle->Instance==ADC1)
  338. 236 .loc 1 94 0
  339. 237 0002 0268 ldr r2, [r0]
  340. 238 0004 064B ldr r3, .L19
  341. 239 0006 9A42 cmp r2, r3
  342. 240 0008 00D0 beq .L18
  343. 241 .LVL10:
  344. 242 .L15:
  345. 243 000a 08BD pop {r3, pc}
  346. 244 .LVL11:
  347. 245 .L18:
  348. 95:Src/adc.c **** {
  349. ARM GAS /tmp/ccQrrBPm.s page 7
  350. 96:Src/adc.c **** /* USER CODE BEGIN ADC1_MspDeInit 0 */
  351. 97:Src/adc.c ****
  352. 98:Src/adc.c **** /* USER CODE END ADC1_MspDeInit 0 */
  353. 99:Src/adc.c **** /* Peripheral clock disable */
  354. 100:Src/adc.c **** __HAL_RCC_ADC1_CLK_DISABLE();
  355. 246 .loc 1 100 0
  356. 247 000c 054A ldr r2, .L19+4
  357. 248 000e 536C ldr r3, [r2, #68]
  358. 249 0010 23F48073 bic r3, r3, #256
  359. 250 0014 5364 str r3, [r2, #68]
  360. 101:Src/adc.c ****
  361. 102:Src/adc.c **** /**ADC1 GPIO Configuration
  362. 103:Src/adc.c **** PA4 ------> ADC1_IN4
  363. 104:Src/adc.c **** */
  364. 105:Src/adc.c **** HAL_GPIO_DeInit(GPIOA, GPIO_PIN_4);
  365. 251 .loc 1 105 0
  366. 252 0016 1021 movs r1, #16
  367. 253 0018 0348 ldr r0, .L19+8
  368. 254 .LVL12:
  369. 255 001a FFF7FEFF bl HAL_GPIO_DeInit
  370. 256 .LVL13:
  371. 106:Src/adc.c ****
  372. 107:Src/adc.c **** /* USER CODE BEGIN ADC1_MspDeInit 1 */
  373. 108:Src/adc.c ****
  374. 109:Src/adc.c **** /* USER CODE END ADC1_MspDeInit 1 */
  375. 110:Src/adc.c **** }
  376. 111:Src/adc.c **** }
  377. 257 .loc 1 111 0
  378. 258 001e F4E7 b .L15
  379. 259 .L20:
  380. 260 .align 2
  381. 261 .L19:
  382. 262 0020 00200140 .word 1073815552
  383. 263 0024 00380240 .word 1073887232
  384. 264 0028 00000240 .word 1073872896
  385. 265 .cfi_endproc
  386. 266 .LFE132:
  387. 268 .comm hadc1,72,4
  388. 269 .text
  389. 270 .Letext0:
  390. 271 .file 2 "/usr/include/newlib/machine/_default_types.h"
  391. 272 .file 3 "/usr/include/newlib/sys/_stdint.h"
  392. 273 .file 4 "Drivers/CMSIS/Include/core_cm4.h"
  393. 274 .file 5 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h"
  394. 275 .file 6 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h"
  395. 276 .file 7 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h"
  396. 277 .file 8 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h"
  397. 278 .file 9 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h"
  398. 279 .file 10 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h"
  399. 280 .file 11 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_adc.h"
  400. 281 .file 12 "Inc/adc.h"
  401. 282 .file 13 "Inc/main.h"
  402. ARM GAS /tmp/ccQrrBPm.s page 8
  403. DEFINED SYMBOLS
  404. *ABS*:0000000000000000 adc.c
  405. /tmp/ccQrrBPm.s:18 .text.MX_ADC1_Init:0000000000000000 $t
  406. /tmp/ccQrrBPm.s:25 .text.MX_ADC1_Init:0000000000000000 MX_ADC1_Init
  407. /tmp/ccQrrBPm.s:117 .text.MX_ADC1_Init:0000000000000060 $d
  408. *COM*:0000000000000048 hadc1
  409. /tmp/ccQrrBPm.s:124 .text.HAL_ADC_MspInit:0000000000000000 $t
  410. /tmp/ccQrrBPm.s:131 .text.HAL_ADC_MspInit:0000000000000000 HAL_ADC_MspInit
  411. /tmp/ccQrrBPm.s:212 .text.HAL_ADC_MspInit:0000000000000064 $d
  412. /tmp/ccQrrBPm.s:217 .text.HAL_ADC_MspDeInit:0000000000000000 $t
  413. /tmp/ccQrrBPm.s:224 .text.HAL_ADC_MspDeInit:0000000000000000 HAL_ADC_MspDeInit
  414. /tmp/ccQrrBPm.s:262 .text.HAL_ADC_MspDeInit:0000000000000020 $d
  415. .debug_frame:0000000000000010 $d
  416. UNDEFINED SYMBOLS
  417. HAL_ADC_Init
  418. HAL_ADC_ConfigChannel
  419. Error_Handler
  420. HAL_GPIO_Init
  421. HAL_GPIO_DeInit