ARM GAS /tmp/ccMmnnvT.s page 1
1 .cpu cortex-m4
2 .eabi_attribute 27, 1
3 .eabi_attribute 28, 1
4 .eabi_attribute 20, 1
5 .eabi_attribute 21, 1
6 .eabi_attribute 23, 3
7 .eabi_attribute 24, 1
8 .eabi_attribute 25, 1
9 .eabi_attribute 26, 1
10 .eabi_attribute 30, 1
11 .eabi_attribute 34, 1
12 .eabi_attribute 18, 4
13 .file "gpio.c"
14 .text
15 .Ltext0:
16 .cfi_sections .debug_frame
17 .section .text.MX_GPIO_Init,"ax",%progbits
18 .align 1
19 .global MX_GPIO_Init
20 .syntax unified
21 .thumb
22 .thumb_func
23 .fpu fpv4-sp-d16
25 MX_GPIO_Init:
26 .LFB130:
27 .file 1 "Src/gpio.c"
1:Src/gpio.c **** /**
2:Src/gpio.c **** ******************************************************************************
3:Src/gpio.c **** * File Name : gpio.c
4:Src/gpio.c **** * Description : This file provides code for the configuration
5:Src/gpio.c **** * of all used GPIO pins.
6:Src/gpio.c **** ******************************************************************************
7:Src/gpio.c **** * @attention
8:Src/gpio.c **** *
9:Src/gpio.c **** *
© Copyright (c) 2022 STMicroelectronics.
10:Src/gpio.c **** * All rights reserved.
11:Src/gpio.c **** *
12:Src/gpio.c **** * This software component is licensed by ST under BSD 3-Clause license,
13:Src/gpio.c **** * the "License"; You may not use this file except in compliance with the
14:Src/gpio.c **** * License. You may obtain a copy of the License at:
15:Src/gpio.c **** * opensource.org/licenses/BSD-3-Clause
16:Src/gpio.c **** *
17:Src/gpio.c **** ******************************************************************************
18:Src/gpio.c **** */
19:Src/gpio.c ****
20:Src/gpio.c **** /* Includes ------------------------------------------------------------------*/
21:Src/gpio.c **** #include "gpio.h"
22:Src/gpio.c **** /* USER CODE BEGIN 0 */
23:Src/gpio.c ****
24:Src/gpio.c **** /* USER CODE END 0 */
25:Src/gpio.c ****
26:Src/gpio.c **** /*----------------------------------------------------------------------------*/
27:Src/gpio.c **** /* Configure GPIO */
28:Src/gpio.c **** /*----------------------------------------------------------------------------*/
29:Src/gpio.c **** /* USER CODE BEGIN 1 */
30:Src/gpio.c ****
31:Src/gpio.c **** /* USER CODE END 1 */
ARM GAS /tmp/ccMmnnvT.s page 2
32:Src/gpio.c ****
33:Src/gpio.c **** /** Configure pins
34:Src/gpio.c **** */
35:Src/gpio.c **** void MX_GPIO_Init(void)
36:Src/gpio.c **** {
28 .loc 1 36 0
29 .cfi_startproc
30 @ args = 0, pretend = 0, frame = 40
31 @ frame_needed = 0, uses_anonymous_args = 0
32 0000 30B5 push {r4, r5, lr}
33 .LCFI0:
34 .cfi_def_cfa_offset 12
35 .cfi_offset 4, -12
36 .cfi_offset 5, -8
37 .cfi_offset 14, -4
38 0002 8BB0 sub sp, sp, #44
39 .LCFI1:
40 .cfi_def_cfa_offset 56
37:Src/gpio.c ****
38:Src/gpio.c **** GPIO_InitTypeDef GPIO_InitStruct = {0};
41 .loc 1 38 0
42 0004 0024 movs r4, #0
43 0006 0594 str r4, [sp, #20]
44 0008 0694 str r4, [sp, #24]
45 000a 0794 str r4, [sp, #28]
46 000c 0894 str r4, [sp, #32]
47 000e 0994 str r4, [sp, #36]
48 .LBB2:
39:Src/gpio.c ****
40:Src/gpio.c **** /* GPIO Ports Clock Enable */
41:Src/gpio.c **** __HAL_RCC_GPIOA_CLK_ENABLE();
49 .loc 1 41 0
50 0010 0194 str r4, [sp, #4]
51 0012 1E4B ldr r3, .L3
52 0014 1A6B ldr r2, [r3, #48]
53 0016 42F00102 orr r2, r2, #1
54 001a 1A63 str r2, [r3, #48]
55 001c 1A6B ldr r2, [r3, #48]
56 001e 02F00102 and r2, r2, #1
57 0022 0192 str r2, [sp, #4]
58 0024 019A ldr r2, [sp, #4]
59 .LBE2:
60 .LBB3:
42:Src/gpio.c **** __HAL_RCC_GPIOD_CLK_ENABLE();
61 .loc 1 42 0
62 0026 0294 str r4, [sp, #8]
63 0028 1A6B ldr r2, [r3, #48]
64 002a 42F00802 orr r2, r2, #8
65 002e 1A63 str r2, [r3, #48]
66 0030 1A6B ldr r2, [r3, #48]
67 0032 02F00802 and r2, r2, #8
68 0036 0292 str r2, [sp, #8]
69 0038 029A ldr r2, [sp, #8]
70 .LBE3:
71 .LBB4:
43:Src/gpio.c **** __HAL_RCC_GPIOC_CLK_ENABLE();
72 .loc 1 43 0
ARM GAS /tmp/ccMmnnvT.s page 3
73 003a 0394 str r4, [sp, #12]
74 003c 1A6B ldr r2, [r3, #48]
75 003e 42F00402 orr r2, r2, #4
76 0042 1A63 str r2, [r3, #48]
77 0044 1A6B ldr r2, [r3, #48]
78 0046 02F00402 and r2, r2, #4
79 004a 0392 str r2, [sp, #12]
80 004c 039A ldr r2, [sp, #12]
81 .LBE4:
82 .LBB5:
44:Src/gpio.c **** __HAL_RCC_GPIOB_CLK_ENABLE();
83 .loc 1 44 0
84 004e 0494 str r4, [sp, #16]
85 0050 1A6B ldr r2, [r3, #48]
86 0052 42F00202 orr r2, r2, #2
87 0056 1A63 str r2, [r3, #48]
88 0058 1B6B ldr r3, [r3, #48]
89 005a 03F00203 and r3, r3, #2
90 005e 0493 str r3, [sp, #16]
91 0060 049B ldr r3, [sp, #16]
92 .LBE5:
45:Src/gpio.c ****
46:Src/gpio.c **** /*Configure GPIO pin Output Level */
47:Src/gpio.c **** HAL_GPIO_WritePin(GPIOD, GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15, GPIO_PIN_RESET);
93 .loc 1 47 0
94 0062 0B4D ldr r5, .L3+4
95 0064 2246 mov r2, r4
96 0066 4FF47041 mov r1, #61440
97 006a 2846 mov r0, r5
98 006c FFF7FEFF bl HAL_GPIO_WritePin
99 .LVL0:
48:Src/gpio.c ****
49:Src/gpio.c **** /*Configure GPIO pins : PD12 PD13 PD14 PD15 */
50:Src/gpio.c **** GPIO_InitStruct.Pin = GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14|GPIO_PIN_15;
100 .loc 1 50 0
101 0070 4FF47043 mov r3, #61440
102 0074 0593 str r3, [sp, #20]
51:Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
103 .loc 1 51 0
104 0076 0123 movs r3, #1
105 0078 0693 str r3, [sp, #24]
52:Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
106 .loc 1 52 0
107 007a 0794 str r4, [sp, #28]
53:Src/gpio.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
108 .loc 1 53 0
109 007c 0894 str r4, [sp, #32]
54:Src/gpio.c **** HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
110 .loc 1 54 0
111 007e 05A9 add r1, sp, #20
112 0080 2846 mov r0, r5
113 0082 FFF7FEFF bl HAL_GPIO_Init
114 .LVL1:
55:Src/gpio.c ****
56:Src/gpio.c **** }
115 .loc 1 56 0
116 0086 0BB0 add sp, sp, #44
ARM GAS /tmp/ccMmnnvT.s page 4
117 .LCFI2:
118 .cfi_def_cfa_offset 12
119 @ sp needed
120 0088 30BD pop {r4, r5, pc}
121 .L4:
122 008a 00BF .align 2
123 .L3:
124 008c 00380240 .word 1073887232
125 0090 000C0240 .word 1073875968
126 .cfi_endproc
127 .LFE130:
129 .text
130 .Letext0:
131 .file 2 "/usr/include/newlib/machine/_default_types.h"
132 .file 3 "/usr/include/newlib/sys/_stdint.h"
133 .file 4 "Drivers/CMSIS/Include/core_cm4.h"
134 .file 5 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h"
135 .file 6 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h"
136 .file 7 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h"
ARM GAS /tmp/ccMmnnvT.s page 5
DEFINED SYMBOLS
*ABS*:0000000000000000 gpio.c
/tmp/ccMmnnvT.s:18 .text.MX_GPIO_Init:0000000000000000 $t
/tmp/ccMmnnvT.s:25 .text.MX_GPIO_Init:0000000000000000 MX_GPIO_Init
/tmp/ccMmnnvT.s:124 .text.MX_GPIO_Init:000000000000008c $d
.debug_frame:0000000000000010 $d
UNDEFINED SYMBOLS
HAL_GPIO_WritePin
HAL_GPIO_Init