添加了数码管的字模
This commit is contained in:
+97
-92
@@ -5,45 +5,45 @@ Sections:
|
||||
Idx Name Size VMA LMA File off Algn
|
||||
0 .isr_vector 000000c0 08000000 08000000 00010000 2**0
|
||||
CONTENTS, ALLOC, LOAD, READONLY, DATA
|
||||
1 .text 0000192c 080000c0 080000c0 000100c0 2**2
|
||||
1 .text 00001938 080000c0 080000c0 000100c0 2**2
|
||||
CONTENTS, ALLOC, LOAD, READONLY, CODE
|
||||
2 .rodata 00000030 080019ec 080019ec 000119ec 2**2
|
||||
2 .rodata 00000030 080019f8 080019f8 000119f8 2**2
|
||||
CONTENTS, ALLOC, LOAD, READONLY, DATA
|
||||
3 .ARM.extab 00000000 08001a1c 08001a1c 0002000c 2**0
|
||||
3 .ARM.extab 00000000 08001a28 08001a28 0002000c 2**0
|
||||
CONTENTS
|
||||
4 .ARM 00000000 08001a1c 08001a1c 0002000c 2**0
|
||||
4 .ARM 00000000 08001a28 08001a28 0002000c 2**0
|
||||
CONTENTS
|
||||
5 .preinit_array 00000000 08001a1c 08001a1c 0002000c 2**0
|
||||
5 .preinit_array 00000000 08001a28 08001a28 0002000c 2**0
|
||||
CONTENTS, ALLOC, LOAD, DATA
|
||||
6 .init_array 00000004 08001a1c 08001a1c 00011a1c 2**2
|
||||
6 .init_array 00000004 08001a28 08001a28 00011a28 2**2
|
||||
CONTENTS, ALLOC, LOAD, DATA
|
||||
7 .fini_array 00000004 08001a20 08001a20 00011a20 2**2
|
||||
7 .fini_array 00000004 08001a2c 08001a2c 00011a2c 2**2
|
||||
CONTENTS, ALLOC, LOAD, DATA
|
||||
8 .data 0000000c 20000000 08001a24 00020000 2**2
|
||||
8 .data 0000000c 20000000 08001a30 00020000 2**2
|
||||
CONTENTS, ALLOC, LOAD, DATA
|
||||
9 .bss 00000060 2000000c 08001a30 0002000c 2**2
|
||||
9 .bss 00000068 2000000c 08001a3c 0002000c 2**2
|
||||
ALLOC
|
||||
10 ._user_heap_stack 00000604 2000006c 08001a30 0002006c 2**0
|
||||
10 ._user_heap_stack 00000604 20000074 08001a3c 00020074 2**0
|
||||
ALLOC
|
||||
11 .ARM.attributes 00000028 00000000 00000000 0002000c 2**0
|
||||
CONTENTS, READONLY
|
||||
12 .debug_info 00004534 00000000 00000000 00020034 2**0
|
||||
12 .debug_info 0000461b 00000000 00000000 00020034 2**0
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
13 .debug_abbrev 000011f1 00000000 00000000 00024568 2**0
|
||||
13 .debug_abbrev 00001219 00000000 00000000 0002464f 2**0
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
14 .debug_aranges 00000488 00000000 00000000 00025760 2**3
|
||||
14 .debug_aranges 00000488 00000000 00000000 00025868 2**3
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
15 .debug_ranges 000003e0 00000000 00000000 00025be8 2**3
|
||||
15 .debug_ranges 000003e0 00000000 00000000 00025cf0 2**3
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
16 .debug_macro 0000e747 00000000 00000000 00025fc8 2**0
|
||||
16 .debug_macro 0000e747 00000000 00000000 000260d0 2**0
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
17 .debug_line 000062da 00000000 00000000 0003470f 2**0
|
||||
17 .debug_line 000062de 00000000 00000000 00034817 2**0
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
18 .debug_str 000564d2 00000000 00000000 0003a9e9 2**0
|
||||
18 .debug_str 0005651c 00000000 00000000 0003aaf5 2**0
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
19 .comment 00000053 00000000 00000000 00090ebb 2**0
|
||||
19 .comment 00000053 00000000 00000000 00091011 2**0
|
||||
CONTENTS, READONLY
|
||||
20 .debug_frame 00000e44 00000000 00000000 00090f10 2**2
|
||||
20 .debug_frame 00000e44 00000000 00000000 00091064 2**2
|
||||
CONTENTS, READONLY, DEBUGGING, OCTETS
|
||||
|
||||
Disassembly of section .text:
|
||||
@@ -65,7 +65,7 @@ Disassembly of section .text:
|
||||
80000da: bd10 pop {r4, pc}
|
||||
80000dc: 2000000c .word 0x2000000c
|
||||
80000e0: 00000000 .word 0x00000000
|
||||
80000e4: 080019d4 .word 0x080019d4
|
||||
80000e4: 080019e0 .word 0x080019e0
|
||||
|
||||
080000e8 <frame_dummy>:
|
||||
80000e8: 4b04 ldr r3, [pc, #16] ; (80000fc <frame_dummy+0x14>)
|
||||
@@ -80,7 +80,7 @@ Disassembly of section .text:
|
||||
80000fa: 46c0 nop ; (mov r8, r8)
|
||||
80000fc: 00000000 .word 0x00000000
|
||||
8000100: 20000010 .word 0x20000010
|
||||
8000104: 080019d4 .word 0x080019d4
|
||||
8000104: 080019e0 .word 0x080019e0
|
||||
|
||||
08000108 <__udivsi3>:
|
||||
8000108: 2200 movs r2, #0
|
||||
@@ -286,14 +286,14 @@ void SystemClock_Config(void)
|
||||
8000246: 2330 movs r3, #48 ; 0x30
|
||||
8000248: 001a movs r2, r3
|
||||
800024a: 2100 movs r1, #0
|
||||
800024c: f001 fbba bl 80019c4 <memset>
|
||||
800024c: f001 fbc0 bl 80019d0 <memset>
|
||||
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
||||
8000250: 003b movs r3, r7
|
||||
8000252: 0018 movs r0, r3
|
||||
8000254: 2310 movs r3, #16
|
||||
8000256: 001a movs r2, r3
|
||||
8000258: 2100 movs r1, #0
|
||||
800025a: f001 fbb3 bl 80019c4 <memset>
|
||||
800025a: f001 fbb9 bl 80019d0 <memset>
|
||||
|
||||
/** Initializes the RCC Oscillators according to the specified parameters
|
||||
* in the RCC_OscInitTypeDef structure.
|
||||
@@ -405,7 +405,7 @@ static void MX_ADC_Init(void)
|
||||
80002e6: 230c movs r3, #12
|
||||
80002e8: 001a movs r2, r3
|
||||
80002ea: 2100 movs r1, #0
|
||||
80002ec: f001 fb6a bl 80019c4 <memset>
|
||||
80002ec: f001 fb70 bl 80019d0 <memset>
|
||||
/* USER CODE BEGIN ADC_Init 1 */
|
||||
|
||||
/* USER CODE END ADC_Init 1 */
|
||||
@@ -537,7 +537,7 @@ static void MX_GPIO_Init(void)
|
||||
80003a0: 2314 movs r3, #20
|
||||
80003a2: 001a movs r2, r3
|
||||
80003a4: 2100 movs r1, #0
|
||||
80003a6: f001 fb0d bl 80019c4 <memset>
|
||||
80003a6: f001 fb13 bl 80019d0 <memset>
|
||||
|
||||
/* GPIO Ports Clock Enable */
|
||||
__HAL_RCC_GPIOF_CLK_ENABLE();
|
||||
@@ -767,7 +767,7 @@ void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc)
|
||||
80004de: 2314 movs r3, #20
|
||||
80004e0: 001a movs r2, r3
|
||||
80004e2: 2100 movs r1, #0
|
||||
80004e4: f001 fa6e bl 80019c4 <memset>
|
||||
80004e4: f001 fa74 bl 80019d0 <memset>
|
||||
if(hadc->Instance==ADC1)
|
||||
80004e8: 687b ldr r3, [r7, #4]
|
||||
80004ea: 681b ldr r3, [r3, #0]
|
||||
@@ -1030,7 +1030,7 @@ LoopFillZerobss:
|
||||
80005be: f7ff ffe4 bl 800058a <SystemInit>
|
||||
/* Call static constructors */
|
||||
bl __libc_init_array
|
||||
80005c2: f001 f9db bl 800197c <__libc_init_array>
|
||||
80005c2: f001 f9e1 bl 8001988 <__libc_init_array>
|
||||
/* Call the application's entry point.*/
|
||||
bl main
|
||||
80005c6: f7ff fe2b bl 8000220 <main>
|
||||
@@ -1047,11 +1047,11 @@ LoopForever:
|
||||
ldr r1, =_edata
|
||||
80005d4: 2000000c .word 0x2000000c
|
||||
ldr r2, =_sidata
|
||||
80005d8: 08001a24 .word 0x08001a24
|
||||
80005d8: 08001a30 .word 0x08001a30
|
||||
ldr r2, =_sbss
|
||||
80005dc: 2000000c .word 0x2000000c
|
||||
ldr r4, =_ebss
|
||||
80005e0: 2000006c .word 0x2000006c
|
||||
80005e0: 20000074 .word 0x20000074
|
||||
|
||||
080005e4 <ADC1_IRQHandler>:
|
||||
* @retval : None
|
||||
@@ -4312,7 +4312,7 @@ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, ui
|
||||
800175c: 40021000 .word 0x40021000
|
||||
8001760: 00001388 .word 0x00001388
|
||||
8001764: fffff8ff .word 0xfffff8ff
|
||||
8001768: 08001a0c .word 0x08001a0c
|
||||
8001768: 08001a18 .word 0x08001a18
|
||||
800176c: 20000000 .word 0x20000000
|
||||
|
||||
08001770 <HAL_RCC_GetSysClockFreq>:
|
||||
@@ -4460,15 +4460,15 @@ uint32_t HAL_RCC_GetSysClockFreq(void)
|
||||
8001822: b00f add sp, #60 ; 0x3c
|
||||
8001824: bd90 pop {r4, r7, pc}
|
||||
8001826: 46c0 nop ; (mov r8, r8)
|
||||
8001828: 080019ec .word 0x080019ec
|
||||
800182c: 080019fc .word 0x080019fc
|
||||
8001828: 080019f8 .word 0x080019f8
|
||||
800182c: 08001a08 .word 0x08001a08
|
||||
8001830: 40021000 .word 0x40021000
|
||||
8001834: 007a1200 .word 0x007a1200
|
||||
|
||||
08001838 <Send_to_595>:
|
||||
|
||||
#define MOTA(x) HAL_GPIO_WritePin(MOTA_GPIO_Port, MOTA_Pin, x);
|
||||
#define MOTB(x) HAL_GPIO_WritePin(MOTB_GPIO_Port, MOTB_Pin, x);
|
||||
char led_n:1;
|
||||
char led_err:1;
|
||||
}dis_buff;
|
||||
|
||||
void Send_to_595(char h,char l)
|
||||
{
|
||||
@@ -4623,13 +4623,13 @@ void mymain()
|
||||
8001928: b580 push {r7, lr}
|
||||
800192a: af00 add r7, sp, #0
|
||||
MOTA(0);
|
||||
800192c: 4b12 ldr r3, [pc, #72] ; (8001978 <mymain+0x50>)
|
||||
800192c: 4b14 ldr r3, [pc, #80] ; (8001980 <mymain+0x58>)
|
||||
800192e: 2200 movs r2, #0
|
||||
8001930: 2101 movs r1, #1
|
||||
8001932: 0018 movs r0, r3
|
||||
8001934: f7ff fb16 bl 8000f64 <HAL_GPIO_WritePin>
|
||||
MOTB(0);
|
||||
8001938: 4b0f ldr r3, [pc, #60] ; (8001978 <mymain+0x50>)
|
||||
8001938: 4b11 ldr r3, [pc, #68] ; (8001980 <mymain+0x58>)
|
||||
800193a: 2200 movs r2, #0
|
||||
800193c: 2102 movs r1, #2
|
||||
800193e: 0018 movs r0, r3
|
||||
@@ -4656,70 +4656,75 @@ void mymain()
|
||||
8001968: 0018 movs r0, r3
|
||||
800196a: f7ff fafb bl 8000f64 <HAL_GPIO_WritePin>
|
||||
|
||||
Send_to_595(0x00,0x00);
|
||||
800196e: 2100 movs r1, #0
|
||||
Send_to_595(0x00,0x6f);
|
||||
800196e: 216f movs r1, #111 ; 0x6f
|
||||
8001970: 2000 movs r0, #0
|
||||
8001972: f7ff ff61 bl 8001838 <Send_to_595>
|
||||
|
||||
dis_buff.d_num[0]=1;
|
||||
8001976: 4b03 ldr r3, [pc, #12] ; (8001984 <mymain+0x5c>)
|
||||
8001978: 2201 movs r2, #1
|
||||
800197a: 701a strb r2, [r3, #0]
|
||||
while(1)
|
||||
8001976: e7fe b.n 8001976 <mymain+0x4e>
|
||||
8001978: 48001400 .word 0x48001400
|
||||
800197c: e7fe b.n 800197c <mymain+0x54>
|
||||
800197e: 46c0 nop ; (mov r8, r8)
|
||||
8001980: 48001400 .word 0x48001400
|
||||
8001984: 2000006c .word 0x2000006c
|
||||
|
||||
0800197c <__libc_init_array>:
|
||||
800197c: b570 push {r4, r5, r6, lr}
|
||||
800197e: 2600 movs r6, #0
|
||||
8001980: 4d0c ldr r5, [pc, #48] ; (80019b4 <__libc_init_array+0x38>)
|
||||
8001982: 4c0d ldr r4, [pc, #52] ; (80019b8 <__libc_init_array+0x3c>)
|
||||
8001984: 1b64 subs r4, r4, r5
|
||||
8001986: 10a4 asrs r4, r4, #2
|
||||
8001988: 42a6 cmp r6, r4
|
||||
800198a: d109 bne.n 80019a0 <__libc_init_array+0x24>
|
||||
800198c: 2600 movs r6, #0
|
||||
800198e: f000 f821 bl 80019d4 <_init>
|
||||
8001992: 4d0a ldr r5, [pc, #40] ; (80019bc <__libc_init_array+0x40>)
|
||||
8001994: 4c0a ldr r4, [pc, #40] ; (80019c0 <__libc_init_array+0x44>)
|
||||
8001996: 1b64 subs r4, r4, r5
|
||||
8001998: 10a4 asrs r4, r4, #2
|
||||
800199a: 42a6 cmp r6, r4
|
||||
800199c: d105 bne.n 80019aa <__libc_init_array+0x2e>
|
||||
800199e: bd70 pop {r4, r5, r6, pc}
|
||||
80019a0: 00b3 lsls r3, r6, #2
|
||||
80019a2: 58eb ldr r3, [r5, r3]
|
||||
80019a4: 4798 blx r3
|
||||
80019a6: 3601 adds r6, #1
|
||||
80019a8: e7ee b.n 8001988 <__libc_init_array+0xc>
|
||||
80019aa: 00b3 lsls r3, r6, #2
|
||||
80019ac: 58eb ldr r3, [r5, r3]
|
||||
80019ae: 4798 blx r3
|
||||
80019b0: 3601 adds r6, #1
|
||||
80019b2: e7f2 b.n 800199a <__libc_init_array+0x1e>
|
||||
80019b4: 08001a1c .word 0x08001a1c
|
||||
80019b8: 08001a1c .word 0x08001a1c
|
||||
80019bc: 08001a1c .word 0x08001a1c
|
||||
80019c0: 08001a20 .word 0x08001a20
|
||||
08001988 <__libc_init_array>:
|
||||
8001988: b570 push {r4, r5, r6, lr}
|
||||
800198a: 2600 movs r6, #0
|
||||
800198c: 4d0c ldr r5, [pc, #48] ; (80019c0 <__libc_init_array+0x38>)
|
||||
800198e: 4c0d ldr r4, [pc, #52] ; (80019c4 <__libc_init_array+0x3c>)
|
||||
8001990: 1b64 subs r4, r4, r5
|
||||
8001992: 10a4 asrs r4, r4, #2
|
||||
8001994: 42a6 cmp r6, r4
|
||||
8001996: d109 bne.n 80019ac <__libc_init_array+0x24>
|
||||
8001998: 2600 movs r6, #0
|
||||
800199a: f000 f821 bl 80019e0 <_init>
|
||||
800199e: 4d0a ldr r5, [pc, #40] ; (80019c8 <__libc_init_array+0x40>)
|
||||
80019a0: 4c0a ldr r4, [pc, #40] ; (80019cc <__libc_init_array+0x44>)
|
||||
80019a2: 1b64 subs r4, r4, r5
|
||||
80019a4: 10a4 asrs r4, r4, #2
|
||||
80019a6: 42a6 cmp r6, r4
|
||||
80019a8: d105 bne.n 80019b6 <__libc_init_array+0x2e>
|
||||
80019aa: bd70 pop {r4, r5, r6, pc}
|
||||
80019ac: 00b3 lsls r3, r6, #2
|
||||
80019ae: 58eb ldr r3, [r5, r3]
|
||||
80019b0: 4798 blx r3
|
||||
80019b2: 3601 adds r6, #1
|
||||
80019b4: e7ee b.n 8001994 <__libc_init_array+0xc>
|
||||
80019b6: 00b3 lsls r3, r6, #2
|
||||
80019b8: 58eb ldr r3, [r5, r3]
|
||||
80019ba: 4798 blx r3
|
||||
80019bc: 3601 adds r6, #1
|
||||
80019be: e7f2 b.n 80019a6 <__libc_init_array+0x1e>
|
||||
80019c0: 08001a28 .word 0x08001a28
|
||||
80019c4: 08001a28 .word 0x08001a28
|
||||
80019c8: 08001a28 .word 0x08001a28
|
||||
80019cc: 08001a2c .word 0x08001a2c
|
||||
|
||||
080019c4 <memset>:
|
||||
80019c4: 0003 movs r3, r0
|
||||
80019c6: 1882 adds r2, r0, r2
|
||||
80019c8: 4293 cmp r3, r2
|
||||
80019ca: d100 bne.n 80019ce <memset+0xa>
|
||||
80019cc: 4770 bx lr
|
||||
80019ce: 7019 strb r1, [r3, #0]
|
||||
80019d0: 3301 adds r3, #1
|
||||
80019d2: e7f9 b.n 80019c8 <memset+0x4>
|
||||
080019d0 <memset>:
|
||||
80019d0: 0003 movs r3, r0
|
||||
80019d2: 1882 adds r2, r0, r2
|
||||
80019d4: 4293 cmp r3, r2
|
||||
80019d6: d100 bne.n 80019da <memset+0xa>
|
||||
80019d8: 4770 bx lr
|
||||
80019da: 7019 strb r1, [r3, #0]
|
||||
80019dc: 3301 adds r3, #1
|
||||
80019de: e7f9 b.n 80019d4 <memset+0x4>
|
||||
|
||||
080019d4 <_init>:
|
||||
80019d4: b5f8 push {r3, r4, r5, r6, r7, lr}
|
||||
80019d6: 46c0 nop ; (mov r8, r8)
|
||||
80019d8: bcf8 pop {r3, r4, r5, r6, r7}
|
||||
80019da: bc08 pop {r3}
|
||||
80019dc: 469e mov lr, r3
|
||||
80019de: 4770 bx lr
|
||||
|
||||
080019e0 <_fini>:
|
||||
080019e0 <_init>:
|
||||
80019e0: b5f8 push {r3, r4, r5, r6, r7, lr}
|
||||
80019e2: 46c0 nop ; (mov r8, r8)
|
||||
80019e4: bcf8 pop {r3, r4, r5, r6, r7}
|
||||
80019e6: bc08 pop {r3}
|
||||
80019e8: 469e mov lr, r3
|
||||
80019ea: 4770 bx lr
|
||||
|
||||
080019ec <_fini>:
|
||||
80019ec: b5f8 push {r3, r4, r5, r6, r7, lr}
|
||||
80019ee: 46c0 nop ; (mov r8, r8)
|
||||
80019f0: bcf8 pop {r3, r4, r5, r6, r7}
|
||||
80019f2: bc08 pop {r3}
|
||||
80019f4: 469e mov lr, r3
|
||||
80019f6: 4770 bx lr
|
||||
|
||||
Reference in New Issue
Block a user