1
0

gpio.lst 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. ARM GAS /tmp/cceyi1nA.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 "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 "Src/gpio.c"
  29. 1:Src/gpio.c **** /**
  30. 2:Src/gpio.c **** ******************************************************************************
  31. 3:Src/gpio.c **** * File Name : gpio.c
  32. 4:Src/gpio.c **** * Description : This file provides code for the configuration
  33. 5:Src/gpio.c **** * of all used GPIO pins.
  34. 6:Src/gpio.c **** ******************************************************************************
  35. 7:Src/gpio.c **** * @attention
  36. 8:Src/gpio.c **** *
  37. 9:Src/gpio.c **** * <h2><center>&copy; Copyright (c) 2022 STMicroelectronics.
  38. 10:Src/gpio.c **** * All rights reserved.</center></h2>
  39. 11:Src/gpio.c **** *
  40. 12:Src/gpio.c **** * This software component is licensed by ST under BSD 3-Clause license,
  41. 13:Src/gpio.c **** * the "License"; You may not use this file except in compliance with the
  42. 14:Src/gpio.c **** * License. You may obtain a copy of the License at:
  43. 15:Src/gpio.c **** * opensource.org/licenses/BSD-3-Clause
  44. 16:Src/gpio.c **** *
  45. 17:Src/gpio.c **** ******************************************************************************
  46. 18:Src/gpio.c **** */
  47. 19:Src/gpio.c ****
  48. 20:Src/gpio.c **** /* Includes ------------------------------------------------------------------*/
  49. 21:Src/gpio.c **** #include "gpio.h"
  50. 22:Src/gpio.c **** /* USER CODE BEGIN 0 */
  51. 23:Src/gpio.c ****
  52. 24:Src/gpio.c **** /* USER CODE END 0 */
  53. 25:Src/gpio.c ****
  54. 26:Src/gpio.c **** /*----------------------------------------------------------------------------*/
  55. 27:Src/gpio.c **** /* Configure GPIO */
  56. 28:Src/gpio.c **** /*----------------------------------------------------------------------------*/
  57. 29:Src/gpio.c **** /* USER CODE BEGIN 1 */
  58. 30:Src/gpio.c ****
  59. ARM GAS /tmp/cceyi1nA.s page 2
  60. 31:Src/gpio.c **** /* USER CODE END 1 */
  61. 32:Src/gpio.c ****
  62. 33:Src/gpio.c **** /** Configure pins
  63. 34:Src/gpio.c **** */
  64. 35:Src/gpio.c **** void MX_GPIO_Init(void)
  65. 36:Src/gpio.c **** {
  66. 29 .loc 1 36 1 view -0
  67. 30 .cfi_startproc
  68. 31 @ args = 0, pretend = 0, frame = 40
  69. 32 @ frame_needed = 0, uses_anonymous_args = 0
  70. 33 0000 30B5 push {r4, r5, lr}
  71. 34 .LCFI0:
  72. 35 .cfi_def_cfa_offset 12
  73. 36 .cfi_offset 4, -12
  74. 37 .cfi_offset 5, -8
  75. 38 .cfi_offset 14, -4
  76. 39 0002 8BB0 sub sp, sp, #44
  77. 40 .LCFI1:
  78. 41 .cfi_def_cfa_offset 56
  79. 37:Src/gpio.c ****
  80. 38:Src/gpio.c **** GPIO_InitTypeDef GPIO_InitStruct = {0};
  81. 42 .loc 1 38 3 view .LVU1
  82. 43 .loc 1 38 20 is_stmt 0 view .LVU2
  83. 44 0004 0024 movs r4, #0
  84. 45 0006 0594 str r4, [sp, #20]
  85. 46 0008 0694 str r4, [sp, #24]
  86. 47 000a 0794 str r4, [sp, #28]
  87. 48 000c 0894 str r4, [sp, #32]
  88. 49 000e 0994 str r4, [sp, #36]
  89. 39:Src/gpio.c ****
  90. 40:Src/gpio.c **** /* GPIO Ports Clock Enable */
  91. 41:Src/gpio.c **** __HAL_RCC_GPIOA_CLK_ENABLE();
  92. 50 .loc 1 41 3 is_stmt 1 view .LVU3
  93. 51 .LBB2:
  94. 52 .loc 1 41 3 view .LVU4
  95. 53 0010 0194 str r4, [sp, #4]
  96. 54 .loc 1 41 3 view .LVU5
  97. 55 0012 1E4B ldr r3, .L3
  98. 56 0014 1A6B ldr r2, [r3, #48]
  99. 57 0016 42F00102 orr r2, r2, #1
  100. 58 001a 1A63 str r2, [r3, #48]
  101. 59 .loc 1 41 3 view .LVU6
  102. 60 001c 1A6B ldr r2, [r3, #48]
  103. 61 001e 02F00102 and r2, r2, #1
  104. 62 0022 0192 str r2, [sp, #4]
  105. 63 .loc 1 41 3 view .LVU7
  106. 64 0024 019A ldr r2, [sp, #4]
  107. 65 .LBE2:
  108. 66 .loc 1 41 3 view .LVU8
  109. 42:Src/gpio.c **** __HAL_RCC_GPIOD_CLK_ENABLE();
  110. 67 .loc 1 42 3 view .LVU9
  111. 68 .LBB3:
  112. 69 .loc 1 42 3 view .LVU10
  113. 70 0026 0294 str r4, [sp, #8]
  114. 71 .loc 1 42 3 view .LVU11
  115. 72 0028 1A6B ldr r2, [r3, #48]
  116. 73 002a 42F00802 orr r2, r2, #8
  117. ARM GAS /tmp/cceyi1nA.s page 3
  118. 74 002e 1A63 str r2, [r3, #48]
  119. 75 .loc 1 42 3 view .LVU12
  120. 76 0030 1A6B ldr r2, [r3, #48]
  121. 77 0032 02F00802 and r2, r2, #8
  122. 78 0036 0292 str r2, [sp, #8]
  123. 79 .loc 1 42 3 view .LVU13
  124. 80 0038 029A ldr r2, [sp, #8]
  125. 81 .LBE3:
  126. 82 .loc 1 42 3 view .LVU14
  127. 43:Src/gpio.c **** __HAL_RCC_GPIOC_CLK_ENABLE();
  128. 83 .loc 1 43 3 view .LVU15
  129. 84 .LBB4:
  130. 85 .loc 1 43 3 view .LVU16
  131. 86 003a 0394 str r4, [sp, #12]
  132. 87 .loc 1 43 3 view .LVU17
  133. 88 003c 1A6B ldr r2, [r3, #48]
  134. 89 003e 42F00402 orr r2, r2, #4
  135. 90 0042 1A63 str r2, [r3, #48]
  136. 91 .loc 1 43 3 view .LVU18
  137. 92 0044 1A6B ldr r2, [r3, #48]
  138. 93 0046 02F00402 and r2, r2, #4
  139. 94 004a 0392 str r2, [sp, #12]
  140. 95 .loc 1 43 3 view .LVU19
  141. 96 004c 039A ldr r2, [sp, #12]
  142. 97 .LBE4:
  143. 98 .loc 1 43 3 view .LVU20
  144. 44:Src/gpio.c **** __HAL_RCC_GPIOB_CLK_ENABLE();
  145. 99 .loc 1 44 3 view .LVU21
  146. 100 .LBB5:
  147. 101 .loc 1 44 3 view .LVU22
  148. 102 004e 0494 str r4, [sp, #16]
  149. 103 .loc 1 44 3 view .LVU23
  150. 104 0050 1A6B ldr r2, [r3, #48]
  151. 105 0052 42F00202 orr r2, r2, #2
  152. 106 0056 1A63 str r2, [r3, #48]
  153. 107 .loc 1 44 3 view .LVU24
  154. 108 0058 1B6B ldr r3, [r3, #48]
  155. 109 005a 03F00203 and r3, r3, #2
  156. 110 005e 0493 str r3, [sp, #16]
  157. 111 .loc 1 44 3 view .LVU25
  158. 112 0060 049B ldr r3, [sp, #16]
  159. 113 .LBE5:
  160. 114 .loc 1 44 3 view .LVU26
  161. 45:Src/gpio.c ****
  162. 46:Src/gpio.c **** /*Configure GPIO pin Output Level */
  163. 47:Src/gpio.c **** HAL_GPIO_WritePin(GPIOD, GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15, GPIO_PIN_RESET);
  164. 115 .loc 1 47 3 view .LVU27
  165. 116 0062 0B4D ldr r5, .L3+4
  166. 117 0064 2246 mov r2, r4
  167. 118 0066 4FF47041 mov r1, #61440
  168. 119 006a 2846 mov r0, r5
  169. 120 006c FFF7FEFF bl HAL_GPIO_WritePin
  170. 121 .LVL0:
  171. 48:Src/gpio.c ****
  172. 49:Src/gpio.c **** /*Configure GPIO pins : PD12 PD13 PD14 PD15 */
  173. 50:Src/gpio.c **** GPIO_InitStruct.Pin = GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
  174. 122 .loc 1 50 3 view .LVU28
  175. ARM GAS /tmp/cceyi1nA.s page 4
  176. 123 .loc 1 50 23 is_stmt 0 view .LVU29
  177. 124 0070 4FF47043 mov r3, #61440
  178. 125 0074 0593 str r3, [sp, #20]
  179. 51:Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
  180. 126 .loc 1 51 3 is_stmt 1 view .LVU30
  181. 127 .loc 1 51 24 is_stmt 0 view .LVU31
  182. 128 0076 0123 movs r3, #1
  183. 129 0078 0693 str r3, [sp, #24]
  184. 52:Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
  185. 130 .loc 1 52 3 is_stmt 1 view .LVU32
  186. 131 .loc 1 52 24 is_stmt 0 view .LVU33
  187. 132 007a 0794 str r4, [sp, #28]
  188. 53:Src/gpio.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
  189. 133 .loc 1 53 3 is_stmt 1 view .LVU34
  190. 134 .loc 1 53 25 is_stmt 0 view .LVU35
  191. 135 007c 0894 str r4, [sp, #32]
  192. 54:Src/gpio.c **** HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
  193. 136 .loc 1 54 3 is_stmt 1 view .LVU36
  194. 137 007e 05A9 add r1, sp, #20
  195. 138 0080 2846 mov r0, r5
  196. 139 0082 FFF7FEFF bl HAL_GPIO_Init
  197. 140 .LVL1:
  198. 55:Src/gpio.c ****
  199. 56:Src/gpio.c **** }
  200. 141 .loc 1 56 1 is_stmt 0 view .LVU37
  201. 142 0086 0BB0 add sp, sp, #44
  202. 143 .LCFI2:
  203. 144 .cfi_def_cfa_offset 12
  204. 145 @ sp needed
  205. 146 0088 30BD pop {r4, r5, pc}
  206. 147 .L4:
  207. 148 008a 00BF .align 2
  208. 149 .L3:
  209. 150 008c 00380240 .word 1073887232
  210. 151 0090 000C0240 .word 1073875968
  211. 152 .cfi_endproc
  212. 153 .LFE130:
  213. 155 .text
  214. 156 .Letext0:
  215. 157 .file 2 "/home/gitc/\346\241\214\351\235\242/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/
  216. 158 .file 3 "/home/gitc/\346\241\214\351\235\242/gcc-arm-none-eabi-10.3-2021.10/arm-none-eabi/include/
  217. 159 .file 4 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h"
  218. 160 .file 5 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h"
  219. ARM GAS /tmp/cceyi1nA.s page 5
  220. DEFINED SYMBOLS
  221. *ABS*:0000000000000000 gpio.c
  222. /tmp/cceyi1nA.s:20 .text.MX_GPIO_Init:0000000000000000 $t
  223. /tmp/cceyi1nA.s:26 .text.MX_GPIO_Init:0000000000000000 MX_GPIO_Init
  224. /tmp/cceyi1nA.s:150 .text.MX_GPIO_Init:000000000000008c $d
  225. UNDEFINED SYMBOLS
  226. HAL_GPIO_WritePin
  227. HAL_GPIO_Init