2024-11-03 14:57:15 +01:00

226 lines
8.8 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

ARM GAS /tmp/ccZUAizG.s page 1
1 .cpu cortex-m0
2 .arch armv6s-m
3 .fpu softvfp
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, 0
12 .eabi_attribute 18, 4
13 .file "adc.c"
14 .text
15 .Ltext0:
16 .cfi_sections .debug_frame
17 .file 1 "Core/Src/adc.c"
18 .section .text.adc_init,"ax",%progbits
19 .align 1
20 .global adc_init
21 .syntax unified
22 .code 16
23 .thumb_func
25 adc_init:
26 .LVL0:
27 .LFB40:
1:Core/Src/adc.c **** #include <stdint.h>
2:Core/Src/adc.c ****
3:Core/Src/adc.c **** #include "can-halal.h"
4:Core/Src/adc.c **** #include "stm32f0xx_hal_adc.h"
5:Core/Src/adc.c ****
6:Core/Src/adc.c **** int16_t id = 0x200;
7:Core/Src/adc.c **** int32_t adcRes = 0;
8:Core/Src/adc.c ****
9:Core/Src/adc.c **** void adc_init(ADC_HandleTypeDef* hadc){
28 .loc 1 9 39 view -0
29 .cfi_startproc
30 @ args = 0, pretend = 0, frame = 0
31 @ frame_needed = 0, uses_anonymous_args = 0
32 .loc 1 9 39 is_stmt 0 view .LVU1
33 0000 10B5 push {r4, lr}
34 .cfi_def_cfa_offset 8
35 .cfi_offset 4, -8
36 .cfi_offset 14, -4
10:Core/Src/adc.c **** HAL_ADCEx_Calibration_Start(hadc);
37 .loc 1 10 5 is_stmt 1 view .LVU2
38 0002 FFF7FEFF bl HAL_ADCEx_Calibration_Start
39 .LVL1:
11:Core/Src/adc.c **** }
40 .loc 1 11 1 is_stmt 0 view .LVU3
41 @ sp needed
42 0006 10BD pop {r4, pc}
43 .cfi_endproc
44 .LFE40:
46 .section .text.adc_loop,"ax",%progbits
47 .align 1
48 .global adc_loop
ARM GAS /tmp/ccZUAizG.s page 2
49 .syntax unified
50 .code 16
51 .thumb_func
53 adc_loop:
54 .LVL2:
55 .LFB41:
12:Core/Src/adc.c ****
13:Core/Src/adc.c **** void adc_loop(ADC_HandleTypeDef* hadc){
56 .loc 1 13 39 is_stmt 1 view -0
57 .cfi_startproc
58 @ args = 0, pretend = 0, frame = 0
59 @ frame_needed = 0, uses_anonymous_args = 0
60 .loc 1 13 39 is_stmt 0 view .LVU5
61 0000 10B5 push {r4, lr}
62 .cfi_def_cfa_offset 8
63 .cfi_offset 4, -8
64 .cfi_offset 14, -4
65 0002 82B0 sub sp, sp, #8
66 .cfi_def_cfa_offset 16
14:Core/Src/adc.c **** HAL_ADC_Start_IT(hadc);
67 .loc 1 14 5 is_stmt 1 view .LVU6
68 0004 FFF7FEFF bl HAL_ADC_Start_IT
69 .LVL3:
15:Core/Src/adc.c **** static uint8_t data[8];
70 .loc 1 15 5 view .LVU7
16:Core/Src/adc.c **** ftcan_marshal_unsigned(data, adcRes, 4);
71 .loc 1 16 5 view .LVU8
72 0008 094B ldr r3, .L3
73 000a 1A68 ldr r2, [r3]
74 000c D317 asrs r3, r2, #31
75 000e 094C ldr r4, .L3+4
76 0010 0421 movs r1, #4
77 0012 0091 str r1, [sp]
78 0014 2000 movs r0, r4
79 0016 FFF7FEFF bl ftcan_marshal_unsigned
80 .LVL4:
17:Core/Src/adc.c **** ftcan_transmit(id, data, sizeof(data));
81 .loc 1 17 5 view .LVU9
82 001a 074B ldr r3, .L3+8
83 001c 1888 ldrh r0, [r3]
84 001e 0822 movs r2, #8
85 0020 2100 movs r1, r4
86 0022 FFF7FEFF bl ftcan_transmit
87 .LVL5:
18:Core/Src/adc.c **** HAL_Delay(5);
88 .loc 1 18 5 view .LVU10
89 0026 0520 movs r0, #5
90 0028 FFF7FEFF bl HAL_Delay
91 .LVL6:
19:Core/Src/adc.c **** //testing gitignore
20:Core/Src/adc.c **** }
92 .loc 1 20 1 is_stmt 0 view .LVU11
93 002c 02B0 add sp, sp, #8
94 @ sp needed
95 002e 10BD pop {r4, pc}
96 .L4:
97 .align 2
ARM GAS /tmp/ccZUAizG.s page 3
98 .L3:
99 0030 00000000 .word adcRes
100 0034 00000000 .word data.0
101 0038 00000000 .word id
102 .cfi_endproc
103 .LFE41:
105 .section .text.HAL_ADC_ConvCpltCallback,"ax",%progbits
106 .align 1
107 .global HAL_ADC_ConvCpltCallback
108 .syntax unified
109 .code 16
110 .thumb_func
112 HAL_ADC_ConvCpltCallback:
113 .LVL7:
114 .LFB42:
21:Core/Src/adc.c ****
22:Core/Src/adc.c **** void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc){
115 .loc 1 22 55 is_stmt 1 view -0
116 .cfi_startproc
117 @ args = 0, pretend = 0, frame = 0
118 @ frame_needed = 0, uses_anonymous_args = 0
119 .loc 1 22 55 is_stmt 0 view .LVU13
120 0000 10B5 push {r4, lr}
121 .cfi_def_cfa_offset 8
122 .cfi_offset 4, -8
123 .cfi_offset 14, -4
23:Core/Src/adc.c **** adcRes = HAL_ADC_GetValue(hadc);
124 .loc 1 23 5 is_stmt 1 view .LVU14
125 .loc 1 23 14 is_stmt 0 view .LVU15
126 0002 FFF7FEFF bl HAL_ADC_GetValue
127 .LVL8:
128 .loc 1 23 12 discriminator 1 view .LVU16
129 0006 014B ldr r3, .L6
130 0008 1860 str r0, [r3]
24:Core/Src/adc.c **** }...
131 .loc 1 24 1 view .LVU17
132 @ sp needed
133 000a 10BD pop {r4, pc}
134 .L7:
135 .align 2
136 .L6:
137 000c 00000000 .word adcRes
138 .cfi_endproc
139 .LFE42:
141 .section .bss.data.0,"aw",%nobits
142 .align 2
145 data.0:
146 0000 00000000 .space 8
146 00000000
147 .global adcRes
148 .section .bss.adcRes,"aw",%nobits
149 .align 2
152 adcRes:
153 0000 00000000 .space 4
154 .global id
155 .section .data.id,"aw"
156 .align 1
ARM GAS /tmp/ccZUAizG.s page 4
159 id:
160 0000 0002 .short 512
161 .text
162 .Letext0:
163 .file 2 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
164 .file 3 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
165 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f042x6.h"
166 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h"
167 .file 6 "/home/chiangni/.config/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-
168 .file 7 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h"
169 .file 8 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h"
170 .file 9 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h"
171 .file 10 "Core/Lib/can-halal/can-halal.h"
172 .file 11 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h"
173 .file 12 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h"
ARM GAS /tmp/ccZUAizG.s page 5
DEFINED SYMBOLS
*ABS*:00000000 adc.c
/tmp/ccZUAizG.s:19 .text.adc_init:00000000 $t
/tmp/ccZUAizG.s:25 .text.adc_init:00000000 adc_init
/tmp/ccZUAizG.s:47 .text.adc_loop:00000000 $t
/tmp/ccZUAizG.s:53 .text.adc_loop:00000000 adc_loop
/tmp/ccZUAizG.s:99 .text.adc_loop:00000030 $d
/tmp/ccZUAizG.s:152 .bss.adcRes:00000000 adcRes
/tmp/ccZUAizG.s:145 .bss.data.0:00000000 data.0
/tmp/ccZUAizG.s:159 .data.id:00000000 id
/tmp/ccZUAizG.s:106 .text.HAL_ADC_ConvCpltCallback:00000000 $t
/tmp/ccZUAizG.s:112 .text.HAL_ADC_ConvCpltCallback:00000000 HAL_ADC_ConvCpltCallback
/tmp/ccZUAizG.s:137 .text.HAL_ADC_ConvCpltCallback:0000000c $d
/tmp/ccZUAizG.s:142 .bss.data.0:00000000 $d
/tmp/ccZUAizG.s:149 .bss.adcRes:00000000 $d
/tmp/ccZUAizG.s:156 .data.id:00000000 $d
UNDEFINED SYMBOLS
HAL_ADCEx_Calibration_Start
HAL_ADC_Start_IT
ftcan_marshal_unsigned
ftcan_transmit
HAL_Delay
HAL_ADC_GetValue