代码拉取完成,页面将自动刷新
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 1
1 .cpu cortex-m4
2 .eabi_attribute 20, 1
3 .eabi_attribute 21, 1
4 .eabi_attribute 23, 3
5 .eabi_attribute 24, 1
6 .eabi_attribute 25, 1
7 .eabi_attribute 26, 1
8 .eabi_attribute 30, 1
9 .eabi_attribute 34, 1
10 .eabi_attribute 18, 4
11 .file "gpio.c"
12 .text
13 .Ltext0:
14 .cfi_sections .debug_frame
15 .section .rodata.key1_timerout.str1.4,"aMS",%progbits,1
16 .align 2
17 .LC0:
18 0000 6B657931 .ascii "key1\012\000"
18 0A00
19 .section .text.key1_timerout,"ax",%progbits
20 .align 1
21 .arch armv7e-m
22 .syntax unified
23 .thumb
24 .thumb_func
25 .fpu softvfp
27 key1_timerout:
28 .LVL0:
29 .LFB148:
30 .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) 2022 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 **** #include "rtthread.h"
26:Core/Src/gpio.c **** /* USER CODE END 0 */
27:Core/Src/gpio.c ****
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 2
28:Core/Src/gpio.c **** /*----------------------------------------------------------------------------*/
29:Core/Src/gpio.c **** /* Configure GPIO */
30:Core/Src/gpio.c **** /*----------------------------------------------------------------------------*/
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 **** */
42:Core/Src/gpio.c **** void MX_GPIO_Init(void)
43:Core/Src/gpio.c **** {
44:Core/Src/gpio.c ****
45:Core/Src/gpio.c **** GPIO_InitTypeDef GPIO_InitStruct = {0};
46:Core/Src/gpio.c ****
47:Core/Src/gpio.c **** /* GPIO Ports Clock Enable */
48:Core/Src/gpio.c **** __HAL_RCC_GPIOE_CLK_ENABLE();
49:Core/Src/gpio.c **** __HAL_RCC_GPIOC_CLK_ENABLE();
50:Core/Src/gpio.c **** __HAL_RCC_GPIOF_CLK_ENABLE();
51:Core/Src/gpio.c **** __HAL_RCC_GPIOH_CLK_ENABLE();
52:Core/Src/gpio.c **** __HAL_RCC_GPIOG_CLK_ENABLE();
53:Core/Src/gpio.c **** __HAL_RCC_GPIOD_CLK_ENABLE();
54:Core/Src/gpio.c **** __HAL_RCC_GPIOA_CLK_ENABLE();
55:Core/Src/gpio.c ****
56:Core/Src/gpio.c **** /*Configure GPIO pin Output Level */
57:Core/Src/gpio.c **** HAL_GPIO_WritePin(GPIOF, LED0_Pin|LED1_Pin, GPIO_PIN_RESET);
58:Core/Src/gpio.c ****
59:Core/Src/gpio.c **** /*Configure GPIO pin : PtPin */
60:Core/Src/gpio.c **** GPIO_InitStruct.Pin = KEY2_Pin;
61:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
62:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
63:Core/Src/gpio.c **** HAL_GPIO_Init(KEY2_GPIO_Port, &GPIO_InitStruct);
64:Core/Src/gpio.c ****
65:Core/Src/gpio.c **** /*Configure GPIO pins : PEPin PEPin */
66:Core/Src/gpio.c **** GPIO_InitStruct.Pin = KEY1_Pin|KEY0_Pin;
67:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
68:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
69:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
70:Core/Src/gpio.c ****
71:Core/Src/gpio.c **** /*Configure GPIO pins : PFPin PFPin */
72:Core/Src/gpio.c **** GPIO_InitStruct.Pin = LED0_Pin|LED1_Pin;
73:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
74:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
75:Core/Src/gpio.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
76:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
77:Core/Src/gpio.c ****
78:Core/Src/gpio.c **** /* EXTI interrupt init*/
79:Core/Src/gpio.c **** HAL_NVIC_SetPriority(EXTI3_IRQn, 2, 0);
80:Core/Src/gpio.c **** HAL_NVIC_EnableIRQ(EXTI3_IRQn);
81:Core/Src/gpio.c ****
82:Core/Src/gpio.c **** HAL_NVIC_SetPriority(EXTI4_IRQn, 2, 0);
83:Core/Src/gpio.c **** HAL_NVIC_EnableIRQ(EXTI4_IRQn);
84:Core/Src/gpio.c ****
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 3
85:Core/Src/gpio.c **** }
86:Core/Src/gpio.c ****
87:Core/Src/gpio.c **** /* USER CODE BEGIN 2 */
88:Core/Src/gpio.c **** static rt_timer_t key0_timer;
89:Core/Src/gpio.c **** static rt_timer_t key1_timer;
90:Core/Src/gpio.c **** /*
91:Core/Src/gpio.c **** * 注意:测试发现,案件速度太快,中断处理不过来的情?
92:Core/Src/gpio.c **** */
93:Core/Src/gpio.c **** void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
94:Core/Src/gpio.c **** {
95:Core/Src/gpio.c ****
96:Core/Src/gpio.c **** if(GPIO_Pin == KEY0_Pin){
97:Core/Src/gpio.c **** if (key0_timer != RT_NULL) rt_timer_start(key0_timer);
98:Core/Src/gpio.c **** }else if(GPIO_Pin == KEY1_Pin){
99:Core/Src/gpio.c **** if (key1_timer != RT_NULL) rt_timer_start(key1_timer);
100:Core/Src/gpio.c **** }
101:Core/Src/gpio.c **** }
102:Core/Src/gpio.c ****
103:Core/Src/gpio.c **** static void key0_timerout(void *parameter)
104:Core/Src/gpio.c **** {
105:Core/Src/gpio.c ****
106:Core/Src/gpio.c **** if (HAL_GPIO_ReadPin(KEY0_GPIO_Port, KEY0_Pin) == RESET)
107:Core/Src/gpio.c **** {
108:Core/Src/gpio.c **** rt_kprintf("key0\n");
109:Core/Src/gpio.c **** }
110:Core/Src/gpio.c ****
111:Core/Src/gpio.c **** }
112:Core/Src/gpio.c **** static void key1_timerout(void *parameter)
113:Core/Src/gpio.c **** {
31 .loc 1 113 1 view -0
32 .cfi_startproc
33 @ args = 0, pretend = 0, frame = 0
34 @ frame_needed = 0, uses_anonymous_args = 0
35 .loc 1 113 1 is_stmt 0 view .LVU1
36 0000 08B5 push {r3, lr}
37 .LCFI0:
38 .cfi_def_cfa_offset 8
39 .cfi_offset 3, -8
40 .cfi_offset 14, -4
114:Core/Src/gpio.c **** if (HAL_GPIO_ReadPin(KEY1_GPIO_Port, KEY1_Pin) == RESET)
41 .loc 1 114 2 is_stmt 1 view .LVU2
42 .loc 1 114 6 is_stmt 0 view .LVU3
43 0002 0821 movs r1, #8
44 0004 0448 ldr r0, .L5
45 .LVL1:
46 .loc 1 114 6 view .LVU4
47 0006 FFF7FEFF bl HAL_GPIO_ReadPin
48 .LVL2:
49 .loc 1 114 5 view .LVU5
50 000a 00B1 cbz r0, .L4
51 .L1:
115:Core/Src/gpio.c **** {
116:Core/Src/gpio.c **** rt_kprintf("key1\n");
117:Core/Src/gpio.c **** }
118:Core/Src/gpio.c **** }
52 .loc 1 118 1 view .LVU6
53 000c 08BD pop {r3, pc}
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 4
54 .L4:
116:Core/Src/gpio.c **** }
55 .loc 1 116 3 is_stmt 1 view .LVU7
56 000e 0348 ldr r0, .L5+4
57 0010 FFF7FEFF bl rt_kprintf
58 .LVL3:
59 .loc 1 118 1 is_stmt 0 view .LVU8
60 0014 FAE7 b .L1
61 .L6:
62 0016 00BF .align 2
63 .L5:
64 0018 00100240 .word 1073876992
65 001c 00000000 .word .LC0
66 .cfi_endproc
67 .LFE148:
69 .section .rodata.key0_timerout.str1.4,"aMS",%progbits,1
70 .align 2
71 .LC1:
72 0000 6B657930 .ascii "key0\012\000"
72 0A00
73 .section .text.key0_timerout,"ax",%progbits
74 .align 1
75 .syntax unified
76 .thumb
77 .thumb_func
78 .fpu softvfp
80 key0_timerout:
81 .LVL4:
82 .LFB147:
104:Core/Src/gpio.c ****
83 .loc 1 104 1 is_stmt 1 view -0
84 .cfi_startproc
85 @ args = 0, pretend = 0, frame = 0
86 @ frame_needed = 0, uses_anonymous_args = 0
104:Core/Src/gpio.c ****
87 .loc 1 104 1 is_stmt 0 view .LVU10
88 0000 08B5 push {r3, lr}
89 .LCFI1:
90 .cfi_def_cfa_offset 8
91 .cfi_offset 3, -8
92 .cfi_offset 14, -4
106:Core/Src/gpio.c **** {
93 .loc 1 106 3 is_stmt 1 view .LVU11
106:Core/Src/gpio.c **** {
94 .loc 1 106 7 is_stmt 0 view .LVU12
95 0002 1021 movs r1, #16
96 0004 0448 ldr r0, .L11
97 .LVL5:
106:Core/Src/gpio.c **** {
98 .loc 1 106 7 view .LVU13
99 0006 FFF7FEFF bl HAL_GPIO_ReadPin
100 .LVL6:
106:Core/Src/gpio.c **** {
101 .loc 1 106 6 view .LVU14
102 000a 00B1 cbz r0, .L10
103 .L7:
111:Core/Src/gpio.c **** static void key1_timerout(void *parameter)
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 5
104 .loc 1 111 1 view .LVU15
105 000c 08BD pop {r3, pc}
106 .L10:
108:Core/Src/gpio.c **** }
107 .loc 1 108 4 is_stmt 1 view .LVU16
108 000e 0348 ldr r0, .L11+4
109 0010 FFF7FEFF bl rt_kprintf
110 .LVL7:
111:Core/Src/gpio.c **** static void key1_timerout(void *parameter)
111 .loc 1 111 1 is_stmt 0 view .LVU17
112 0014 FAE7 b .L7
113 .L12:
114 0016 00BF .align 2
115 .L11:
116 0018 00100240 .word 1073876992
117 001c 00000000 .word .LC1
118 .cfi_endproc
119 .LFE147:
121 .section .text.MX_GPIO_Init,"ax",%progbits
122 .align 1
123 .global MX_GPIO_Init
124 .syntax unified
125 .thumb
126 .thumb_func
127 .fpu softvfp
129 MX_GPIO_Init:
130 .LFB145:
43:Core/Src/gpio.c ****
131 .loc 1 43 1 is_stmt 1 view -0
132 .cfi_startproc
133 @ args = 0, pretend = 0, frame = 48
134 @ frame_needed = 0, uses_anonymous_args = 0
135 0000 F0B5 push {r4, r5, r6, r7, lr}
136 .LCFI2:
137 .cfi_def_cfa_offset 20
138 .cfi_offset 4, -20
139 .cfi_offset 5, -16
140 .cfi_offset 6, -12
141 .cfi_offset 7, -8
142 .cfi_offset 14, -4
143 0002 8DB0 sub sp, sp, #52
144 .LCFI3:
145 .cfi_def_cfa_offset 72
45:Core/Src/gpio.c ****
146 .loc 1 45 3 view .LVU19
45:Core/Src/gpio.c ****
147 .loc 1 45 20 is_stmt 0 view .LVU20
148 0004 0024 movs r4, #0
149 0006 0794 str r4, [sp, #28]
150 0008 0894 str r4, [sp, #32]
151 000a 0994 str r4, [sp, #36]
152 000c 0A94 str r4, [sp, #40]
153 000e 0B94 str r4, [sp, #44]
48:Core/Src/gpio.c **** __HAL_RCC_GPIOC_CLK_ENABLE();
154 .loc 1 48 3 is_stmt 1 view .LVU21
155 .LBB2:
48:Core/Src/gpio.c **** __HAL_RCC_GPIOC_CLK_ENABLE();
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 6
156 .loc 1 48 3 view .LVU22
157 0010 0094 str r4, [sp]
48:Core/Src/gpio.c **** __HAL_RCC_GPIOC_CLK_ENABLE();
158 .loc 1 48 3 view .LVU23
159 0012 3E4B ldr r3, .L15
160 0014 1A6B ldr r2, [r3, #48]
161 0016 42F01002 orr r2, r2, #16
162 001a 1A63 str r2, [r3, #48]
48:Core/Src/gpio.c **** __HAL_RCC_GPIOC_CLK_ENABLE();
163 .loc 1 48 3 view .LVU24
164 001c 1A6B ldr r2, [r3, #48]
165 001e 02F01002 and r2, r2, #16
166 0022 0092 str r2, [sp]
48:Core/Src/gpio.c **** __HAL_RCC_GPIOC_CLK_ENABLE();
167 .loc 1 48 3 view .LVU25
168 0024 009A ldr r2, [sp]
169 .LBE2:
48:Core/Src/gpio.c **** __HAL_RCC_GPIOC_CLK_ENABLE();
170 .loc 1 48 3 view .LVU26
49:Core/Src/gpio.c **** __HAL_RCC_GPIOF_CLK_ENABLE();
171 .loc 1 49 3 view .LVU27
172 .LBB3:
49:Core/Src/gpio.c **** __HAL_RCC_GPIOF_CLK_ENABLE();
173 .loc 1 49 3 view .LVU28
174 0026 0194 str r4, [sp, #4]
49:Core/Src/gpio.c **** __HAL_RCC_GPIOF_CLK_ENABLE();
175 .loc 1 49 3 view .LVU29
176 0028 1A6B ldr r2, [r3, #48]
177 002a 42F00402 orr r2, r2, #4
178 002e 1A63 str r2, [r3, #48]
49:Core/Src/gpio.c **** __HAL_RCC_GPIOF_CLK_ENABLE();
179 .loc 1 49 3 view .LVU30
180 0030 1A6B ldr r2, [r3, #48]
181 0032 02F00402 and r2, r2, #4
182 0036 0192 str r2, [sp, #4]
49:Core/Src/gpio.c **** __HAL_RCC_GPIOF_CLK_ENABLE();
183 .loc 1 49 3 view .LVU31
184 0038 019A ldr r2, [sp, #4]
185 .LBE3:
49:Core/Src/gpio.c **** __HAL_RCC_GPIOF_CLK_ENABLE();
186 .loc 1 49 3 view .LVU32
50:Core/Src/gpio.c **** __HAL_RCC_GPIOH_CLK_ENABLE();
187 .loc 1 50 3 view .LVU33
188 .LBB4:
50:Core/Src/gpio.c **** __HAL_RCC_GPIOH_CLK_ENABLE();
189 .loc 1 50 3 view .LVU34
190 003a 0294 str r4, [sp, #8]
50:Core/Src/gpio.c **** __HAL_RCC_GPIOH_CLK_ENABLE();
191 .loc 1 50 3 view .LVU35
192 003c 1A6B ldr r2, [r3, #48]
193 003e 42F02002 orr r2, r2, #32
194 0042 1A63 str r2, [r3, #48]
50:Core/Src/gpio.c **** __HAL_RCC_GPIOH_CLK_ENABLE();
195 .loc 1 50 3 view .LVU36
196 0044 1A6B ldr r2, [r3, #48]
197 0046 02F02002 and r2, r2, #32
198 004a 0292 str r2, [sp, #8]
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 7
50:Core/Src/gpio.c **** __HAL_RCC_GPIOH_CLK_ENABLE();
199 .loc 1 50 3 view .LVU37
200 004c 029A ldr r2, [sp, #8]
201 .LBE4:
50:Core/Src/gpio.c **** __HAL_RCC_GPIOH_CLK_ENABLE();
202 .loc 1 50 3 view .LVU38
51:Core/Src/gpio.c **** __HAL_RCC_GPIOG_CLK_ENABLE();
203 .loc 1 51 3 view .LVU39
204 .LBB5:
51:Core/Src/gpio.c **** __HAL_RCC_GPIOG_CLK_ENABLE();
205 .loc 1 51 3 view .LVU40
206 004e 0394 str r4, [sp, #12]
51:Core/Src/gpio.c **** __HAL_RCC_GPIOG_CLK_ENABLE();
207 .loc 1 51 3 view .LVU41
208 0050 1A6B ldr r2, [r3, #48]
209 0052 42F08002 orr r2, r2, #128
210 0056 1A63 str r2, [r3, #48]
51:Core/Src/gpio.c **** __HAL_RCC_GPIOG_CLK_ENABLE();
211 .loc 1 51 3 view .LVU42
212 0058 1A6B ldr r2, [r3, #48]
213 005a 02F08002 and r2, r2, #128
214 005e 0392 str r2, [sp, #12]
51:Core/Src/gpio.c **** __HAL_RCC_GPIOG_CLK_ENABLE();
215 .loc 1 51 3 view .LVU43
216 0060 039A ldr r2, [sp, #12]
217 .LBE5:
51:Core/Src/gpio.c **** __HAL_RCC_GPIOG_CLK_ENABLE();
218 .loc 1 51 3 view .LVU44
52:Core/Src/gpio.c **** __HAL_RCC_GPIOD_CLK_ENABLE();
219 .loc 1 52 3 view .LVU45
220 .LBB6:
52:Core/Src/gpio.c **** __HAL_RCC_GPIOD_CLK_ENABLE();
221 .loc 1 52 3 view .LVU46
222 0062 0494 str r4, [sp, #16]
52:Core/Src/gpio.c **** __HAL_RCC_GPIOD_CLK_ENABLE();
223 .loc 1 52 3 view .LVU47
224 0064 1A6B ldr r2, [r3, #48]
225 0066 42F04002 orr r2, r2, #64
226 006a 1A63 str r2, [r3, #48]
52:Core/Src/gpio.c **** __HAL_RCC_GPIOD_CLK_ENABLE();
227 .loc 1 52 3 view .LVU48
228 006c 1A6B ldr r2, [r3, #48]
229 006e 02F04002 and r2, r2, #64
230 0072 0492 str r2, [sp, #16]
52:Core/Src/gpio.c **** __HAL_RCC_GPIOD_CLK_ENABLE();
231 .loc 1 52 3 view .LVU49
232 0074 049A ldr r2, [sp, #16]
233 .LBE6:
52:Core/Src/gpio.c **** __HAL_RCC_GPIOD_CLK_ENABLE();
234 .loc 1 52 3 view .LVU50
53:Core/Src/gpio.c **** __HAL_RCC_GPIOA_CLK_ENABLE();
235 .loc 1 53 3 view .LVU51
236 .LBB7:
53:Core/Src/gpio.c **** __HAL_RCC_GPIOA_CLK_ENABLE();
237 .loc 1 53 3 view .LVU52
238 0076 0594 str r4, [sp, #20]
53:Core/Src/gpio.c **** __HAL_RCC_GPIOA_CLK_ENABLE();
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 8
239 .loc 1 53 3 view .LVU53
240 0078 1A6B ldr r2, [r3, #48]
241 007a 42F00802 orr r2, r2, #8
242 007e 1A63 str r2, [r3, #48]
53:Core/Src/gpio.c **** __HAL_RCC_GPIOA_CLK_ENABLE();
243 .loc 1 53 3 view .LVU54
244 0080 1A6B ldr r2, [r3, #48]
245 0082 02F00802 and r2, r2, #8
246 0086 0592 str r2, [sp, #20]
53:Core/Src/gpio.c **** __HAL_RCC_GPIOA_CLK_ENABLE();
247 .loc 1 53 3 view .LVU55
248 0088 059A ldr r2, [sp, #20]
249 .LBE7:
53:Core/Src/gpio.c **** __HAL_RCC_GPIOA_CLK_ENABLE();
250 .loc 1 53 3 view .LVU56
54:Core/Src/gpio.c ****
251 .loc 1 54 3 view .LVU57
252 .LBB8:
54:Core/Src/gpio.c ****
253 .loc 1 54 3 view .LVU58
254 008a 0694 str r4, [sp, #24]
54:Core/Src/gpio.c ****
255 .loc 1 54 3 view .LVU59
256 008c 1A6B ldr r2, [r3, #48]
257 008e 42F00102 orr r2, r2, #1
258 0092 1A63 str r2, [r3, #48]
54:Core/Src/gpio.c ****
259 .loc 1 54 3 view .LVU60
260 0094 1B6B ldr r3, [r3, #48]
261 0096 03F00103 and r3, r3, #1
262 009a 0693 str r3, [sp, #24]
54:Core/Src/gpio.c ****
263 .loc 1 54 3 view .LVU61
264 009c 069B ldr r3, [sp, #24]
265 .LBE8:
54:Core/Src/gpio.c ****
266 .loc 1 54 3 view .LVU62
57:Core/Src/gpio.c ****
267 .loc 1 57 3 view .LVU63
268 009e 1C4D ldr r5, .L15+4
269 00a0 2246 mov r2, r4
270 00a2 4FF4C061 mov r1, #1536
271 00a6 2846 mov r0, r5
272 00a8 FFF7FEFF bl HAL_GPIO_WritePin
273 .LVL8:
60:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
274 .loc 1 60 3 view .LVU64
60:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
275 .loc 1 60 23 is_stmt 0 view .LVU65
276 00ac 0423 movs r3, #4
277 00ae 0793 str r3, [sp, #28]
61:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
278 .loc 1 61 3 is_stmt 1 view .LVU66
61:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_PULLUP;
279 .loc 1 61 24 is_stmt 0 view .LVU67
280 00b0 0894 str r4, [sp, #32]
62:Core/Src/gpio.c **** HAL_GPIO_Init(KEY2_GPIO_Port, &GPIO_InitStruct);
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 9
281 .loc 1 62 3 is_stmt 1 view .LVU68
62:Core/Src/gpio.c **** HAL_GPIO_Init(KEY2_GPIO_Port, &GPIO_InitStruct);
282 .loc 1 62 24 is_stmt 0 view .LVU69
283 00b2 0126 movs r6, #1
284 00b4 0996 str r6, [sp, #36]
63:Core/Src/gpio.c ****
285 .loc 1 63 3 is_stmt 1 view .LVU70
286 00b6 174F ldr r7, .L15+8
287 00b8 07A9 add r1, sp, #28
288 00ba 3846 mov r0, r7
289 00bc FFF7FEFF bl HAL_GPIO_Init
290 .LVL9:
66:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
291 .loc 1 66 3 view .LVU71
66:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
292 .loc 1 66 23 is_stmt 0 view .LVU72
293 00c0 1823 movs r3, #24
294 00c2 0793 str r3, [sp, #28]
67:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
295 .loc 1 67 3 is_stmt 1 view .LVU73
67:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
296 .loc 1 67 24 is_stmt 0 view .LVU74
297 00c4 4FF40413 mov r3, #2162688
298 00c8 0893 str r3, [sp, #32]
68:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
299 .loc 1 68 3 is_stmt 1 view .LVU75
68:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
300 .loc 1 68 24 is_stmt 0 view .LVU76
301 00ca 0994 str r4, [sp, #36]
69:Core/Src/gpio.c ****
302 .loc 1 69 3 is_stmt 1 view .LVU77
303 00cc 07A9 add r1, sp, #28
304 00ce 3846 mov r0, r7
305 00d0 FFF7FEFF bl HAL_GPIO_Init
306 .LVL10:
72:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
307 .loc 1 72 3 view .LVU78
72:Core/Src/gpio.c **** GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
308 .loc 1 72 23 is_stmt 0 view .LVU79
309 00d4 4FF4C063 mov r3, #1536
310 00d8 0793 str r3, [sp, #28]
73:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
311 .loc 1 73 3 is_stmt 1 view .LVU80
73:Core/Src/gpio.c **** GPIO_InitStruct.Pull = GPIO_NOPULL;
312 .loc 1 73 24 is_stmt 0 view .LVU81
313 00da 0896 str r6, [sp, #32]
74:Core/Src/gpio.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
314 .loc 1 74 3 is_stmt 1 view .LVU82
74:Core/Src/gpio.c **** GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
315 .loc 1 74 24 is_stmt 0 view .LVU83
316 00dc 0994 str r4, [sp, #36]
75:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
317 .loc 1 75 3 is_stmt 1 view .LVU84
75:Core/Src/gpio.c **** HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
318 .loc 1 75 25 is_stmt 0 view .LVU85
319 00de 0A94 str r4, [sp, #40]
76:Core/Src/gpio.c ****
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 10
320 .loc 1 76 3 is_stmt 1 view .LVU86
321 00e0 07A9 add r1, sp, #28
322 00e2 2846 mov r0, r5
323 00e4 FFF7FEFF bl HAL_GPIO_Init
324 .LVL11:
79:Core/Src/gpio.c **** HAL_NVIC_EnableIRQ(EXTI3_IRQn);
325 .loc 1 79 3 view .LVU87
326 00e8 2246 mov r2, r4
327 00ea 0221 movs r1, #2
328 00ec 0920 movs r0, #9
329 00ee FFF7FEFF bl HAL_NVIC_SetPriority
330 .LVL12:
80:Core/Src/gpio.c ****
331 .loc 1 80 3 view .LVU88
332 00f2 0920 movs r0, #9
333 00f4 FFF7FEFF bl HAL_NVIC_EnableIRQ
334 .LVL13:
82:Core/Src/gpio.c **** HAL_NVIC_EnableIRQ(EXTI4_IRQn);
335 .loc 1 82 3 view .LVU89
336 00f8 2246 mov r2, r4
337 00fa 0221 movs r1, #2
338 00fc 0A20 movs r0, #10
339 00fe FFF7FEFF bl HAL_NVIC_SetPriority
340 .LVL14:
83:Core/Src/gpio.c ****
341 .loc 1 83 3 view .LVU90
342 0102 0A20 movs r0, #10
343 0104 FFF7FEFF bl HAL_NVIC_EnableIRQ
344 .LVL15:
85:Core/Src/gpio.c ****
345 .loc 1 85 1 is_stmt 0 view .LVU91
346 0108 0DB0 add sp, sp, #52
347 .LCFI4:
348 .cfi_def_cfa_offset 20
349 @ sp needed
350 010a F0BD pop {r4, r5, r6, r7, pc}
351 .L16:
352 .align 2
353 .L15:
354 010c 00380240 .word 1073887232
355 0110 00140240 .word 1073878016
356 0114 00100240 .word 1073876992
357 .cfi_endproc
358 .LFE145:
360 .section .rodata.XX_GPIO_Init.str1.4,"aMS",%progbits,1
361 .align 2
362 .LC2:
363 0000 6B657930 .ascii "key0_timer\000"
363 5F74696D
363 657200
364 000b 00 .align 2
365 .LC3:
366 000c 6B657931 .ascii "key1_timer\000"
366 5F74696D
366 657200
367 .section .text.XX_GPIO_Init,"ax",%progbits
368 .align 1
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 11
369 .global XX_GPIO_Init
370 .syntax unified
371 .thumb
372 .thumb_func
373 .fpu softvfp
375 XX_GPIO_Init:
376 .LFB149:
119:Core/Src/gpio.c **** int XX_GPIO_Init(void)
120:Core/Src/gpio.c **** {
377 .loc 1 120 1 is_stmt 1 view -0
378 .cfi_startproc
379 @ args = 0, pretend = 0, frame = 0
380 @ frame_needed = 0, uses_anonymous_args = 0
381 0000 10B5 push {r4, lr}
382 .LCFI5:
383 .cfi_def_cfa_offset 8
384 .cfi_offset 4, -8
385 .cfi_offset 14, -4
386 0002 82B0 sub sp, sp, #8
387 .LCFI6:
388 .cfi_def_cfa_offset 16
121:Core/Src/gpio.c **** key0_timer = rt_timer_create("key0_timer", key0_timerout,
389 .loc 1 121 2 view .LVU93
390 .loc 1 121 15 is_stmt 0 view .LVU94
391 0004 0424 movs r4, #4
392 0006 0094 str r4, [sp]
393 0008 4FF49673 mov r3, #300
394 000c 0022 movs r2, #0
395 000e 0A49 ldr r1, .L19
396 0010 0A48 ldr r0, .L19+4
397 0012 FFF7FEFF bl rt_timer_create
398 .LVL16:
399 .loc 1 121 13 view .LVU95
400 0016 0A4B ldr r3, .L19+8
401 0018 1860 str r0, [r3]
122:Core/Src/gpio.c **** RT_NULL, 300,
123:Core/Src/gpio.c **** RT_TIMER_FLAG_ONE_SHOT|RT_TIMER_FLAG_SOFT_TIMER);
124:Core/Src/gpio.c **** key1_timer = rt_timer_create("key1_timer", key1_timerout,
402 .loc 1 124 2 is_stmt 1 view .LVU96
403 .loc 1 124 15 is_stmt 0 view .LVU97
404 001a 0094 str r4, [sp]
405 001c 4FF49673 mov r3, #300
406 0020 0022 movs r2, #0
407 0022 0849 ldr r1, .L19+12
408 0024 0848 ldr r0, .L19+16
409 0026 FFF7FEFF bl rt_timer_create
410 .LVL17:
411 .loc 1 124 13 view .LVU98
412 002a 084B ldr r3, .L19+20
413 002c 1860 str r0, [r3]
125:Core/Src/gpio.c **** RT_NULL, 300,
126:Core/Src/gpio.c **** RT_TIMER_FLAG_ONE_SHOT|RT_TIMER_FLAG_SOFT_TIMER);
127:Core/Src/gpio.c **** MX_GPIO_Init();
414 .loc 1 127 2 is_stmt 1 view .LVU99
415 002e FFF7FEFF bl MX_GPIO_Init
416 .LVL18:
128:Core/Src/gpio.c **** return 0;
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 12
417 .loc 1 128 2 view .LVU100
129:Core/Src/gpio.c **** }
418 .loc 1 129 1 is_stmt 0 view .LVU101
419 0032 0020 movs r0, #0
420 0034 02B0 add sp, sp, #8
421 .LCFI7:
422 .cfi_def_cfa_offset 8
423 @ sp needed
424 0036 10BD pop {r4, pc}
425 .L20:
426 .align 2
427 .L19:
428 0038 00000000 .word key0_timerout
429 003c 00000000 .word .LC2
430 0040 00000000 .word .LANCHOR0
431 0044 00000000 .word key1_timerout
432 0048 0C000000 .word .LC3
433 004c 00000000 .word .LANCHOR1
434 .cfi_endproc
435 .LFE149:
437 .section .text.HAL_GPIO_EXTI_Callback,"ax",%progbits
438 .align 1
439 .global HAL_GPIO_EXTI_Callback
440 .syntax unified
441 .thumb
442 .thumb_func
443 .fpu softvfp
445 HAL_GPIO_EXTI_Callback:
446 .LVL19:
447 .LFB146:
94:Core/Src/gpio.c ****
448 .loc 1 94 1 is_stmt 1 view -0
449 .cfi_startproc
450 @ args = 0, pretend = 0, frame = 0
451 @ frame_needed = 0, uses_anonymous_args = 0
94:Core/Src/gpio.c ****
452 .loc 1 94 1 is_stmt 0 view .LVU103
453 0000 08B5 push {r3, lr}
454 .LCFI8:
455 .cfi_def_cfa_offset 8
456 .cfi_offset 3, -8
457 .cfi_offset 14, -4
96:Core/Src/gpio.c **** if (key0_timer != RT_NULL) rt_timer_start(key0_timer);
458 .loc 1 96 2 is_stmt 1 view .LVU104
96:Core/Src/gpio.c **** if (key0_timer != RT_NULL) rt_timer_start(key0_timer);
459 .loc 1 96 4 is_stmt 0 view .LVU105
460 0002 1028 cmp r0, #16
461 0004 02D0 beq .L25
98:Core/Src/gpio.c **** if (key1_timer != RT_NULL) rt_timer_start(key1_timer);
462 .loc 1 98 8 is_stmt 1 view .LVU106
98:Core/Src/gpio.c **** if (key1_timer != RT_NULL) rt_timer_start(key1_timer);
463 .loc 1 98 10 is_stmt 0 view .LVU107
464 0006 0828 cmp r0, #8
465 0008 07D0 beq .L26
466 .LVL20:
467 .L21:
101:Core/Src/gpio.c ****
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 13
468 .loc 1 101 1 view .LVU108
469 000a 08BD pop {r3, pc}
470 .LVL21:
471 .L25:
97:Core/Src/gpio.c **** }else if(GPIO_Pin == KEY1_Pin){
472 .loc 1 97 3 is_stmt 1 view .LVU109
97:Core/Src/gpio.c **** }else if(GPIO_Pin == KEY1_Pin){
473 .loc 1 97 18 is_stmt 0 view .LVU110
474 000c 064B ldr r3, .L27
475 000e 1868 ldr r0, [r3]
476 .LVL22:
97:Core/Src/gpio.c **** }else if(GPIO_Pin == KEY1_Pin){
477 .loc 1 97 6 view .LVU111
478 0010 0028 cmp r0, #0
479 0012 FAD0 beq .L21
97:Core/Src/gpio.c **** }else if(GPIO_Pin == KEY1_Pin){
480 .loc 1 97 30 is_stmt 1 discriminator 1 view .LVU112
481 0014 FFF7FEFF bl rt_timer_start
482 .LVL23:
483 0018 F7E7 b .L21
484 .LVL24:
485 .L26:
99:Core/Src/gpio.c **** }
486 .loc 1 99 3 view .LVU113
99:Core/Src/gpio.c **** }
487 .loc 1 99 18 is_stmt 0 view .LVU114
488 001a 044B ldr r3, .L27+4
489 001c 1868 ldr r0, [r3]
490 .LVL25:
99:Core/Src/gpio.c **** }
491 .loc 1 99 6 view .LVU115
492 001e 0028 cmp r0, #0
493 0020 F3D0 beq .L21
99:Core/Src/gpio.c **** }
494 .loc 1 99 30 is_stmt 1 discriminator 1 view .LVU116
495 0022 FFF7FEFF bl rt_timer_start
496 .LVL26:
101:Core/Src/gpio.c ****
497 .loc 1 101 1 is_stmt 0 discriminator 1 view .LVU117
498 0026 F0E7 b .L21
499 .L28:
500 .align 2
501 .L27:
502 0028 00000000 .word .LANCHOR0
503 002c 00000000 .word .LANCHOR1
504 .cfi_endproc
505 .LFE146:
507 .global __rt_init_desc_XX_GPIO_Init
508 .global __rti_XX_GPIO_Init_name
509 .section .bss.key0_timer,"aw",%nobits
510 .align 2
511 .set .LANCHOR0,. + 0
514 key0_timer:
515 0000 00000000 .space 4
516 .section .bss.key1_timer,"aw",%nobits
517 .align 2
518 .set .LANCHOR1,. + 0
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 14
521 key1_timer:
522 0000 00000000 .space 4
523 .section .rodata.__rti_XX_GPIO_Init_name,"a"
524 .align 2
527 __rti_XX_GPIO_Init_name:
528 0000 58585F47 .ascii "XX_GPIO_Init\000"
528 50494F5F
528 496E6974
528 00
529 .section .rti_fn.3,"a"
530 .align 2
533 __rt_init_desc_XX_GPIO_Init:
534 0000 00000000 .word __rti_XX_GPIO_Init_name
535 0004 00000000 .word XX_GPIO_Init
536 .text
537 .Letext0:
538 .file 2 "c:\\gcc-arm-none-eabi-10-2020-q4-major\\arm-none-eabi\\include\\machine\\_default_types.h
539 .file 3 "c:\\gcc-arm-none-eabi-10-2020-q4-major\\arm-none-eabi\\include\\sys\\_stdint.h"
540 .file 4 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h"
541 .file 5 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h"
542 .file 6 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h"
543 .file 7 "Middlewares/Third_Party/RealThread_RTOS/include/rtdef.h"
544 .file 8 "Middlewares/Third_Party/RealThread_RTOS/include/rtthread.h"
545 .file 9 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h"
ARM GAS C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s page 15
DEFINED SYMBOLS
*ABS*:00000000 gpio.c
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:16 .rodata.key1_timerout.str1.4:00000000 $d
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:20 .text.key1_timerout:00000000 $t
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:27 .text.key1_timerout:00000000 key1_timerout
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:64 .text.key1_timerout:00000018 $d
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:70 .rodata.key0_timerout.str1.4:00000000 $d
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:74 .text.key0_timerout:00000000 $t
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:80 .text.key0_timerout:00000000 key0_timerout
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:116 .text.key0_timerout:00000018 $d
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:122 .text.MX_GPIO_Init:00000000 $t
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:129 .text.MX_GPIO_Init:00000000 MX_GPIO_Init
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:354 .text.MX_GPIO_Init:0000010c $d
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:361 .rodata.XX_GPIO_Init.str1.4:00000000 $d
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:368 .text.XX_GPIO_Init:00000000 $t
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:375 .text.XX_GPIO_Init:00000000 XX_GPIO_Init
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:428 .text.XX_GPIO_Init:00000038 $d
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:438 .text.HAL_GPIO_EXTI_Callback:00000000 $t
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:445 .text.HAL_GPIO_EXTI_Callback:00000000 HAL_GPIO_EXTI_Callback
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:502 .text.HAL_GPIO_EXTI_Callback:00000028 $d
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:533 .rti_fn.3:00000000 __rt_init_desc_XX_GPIO_Init
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:527 .rodata.__rti_XX_GPIO_Init_name:00000000 __rti_XX_GPIO_Init_name
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:510 .bss.key0_timer:00000000 $d
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:514 .bss.key0_timer:00000000 key0_timer
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:517 .bss.key1_timer:00000000 $d
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:521 .bss.key1_timer:00000000 key1_timer
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:524 .rodata.__rti_XX_GPIO_Init_name:00000000 $d
C:\Users\Administrator\AppData\Local\Temp\cc5cpRQh.s:530 .rti_fn.3:00000000 $d
UNDEFINED SYMBOLS
HAL_GPIO_ReadPin
rt_kprintf
HAL_GPIO_WritePin
HAL_GPIO_Init
HAL_NVIC_SetPriority
HAL_NVIC_EnableIRQ
rt_timer_create
rt_timer_start
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。