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