|
|
@ -37,13 +37,13 @@ Idx Name Size VMA LMA File off Algn |
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS |
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS |
|
|
16 .debug_macro 0001846e 00000000 00000000 0003b750 2**0 |
|
|
16 .debug_macro 0001846e 00000000 00000000 0003b750 2**0 |
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS |
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS |
|
|
17 .debug_line 00016ff7 00000000 00000000 00053bbe 2**0 |
|
|
17 .debug_line 00016ff5 00000000 00000000 00053bbe 2**0 |
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS |
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS |
|
|
18 .debug_str 000998a1 00000000 00000000 0006abb5 2**0 |
|
|
18 .debug_str 000998a1 00000000 00000000 0006abb3 2**0 |
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS |
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS |
|
|
19 .comment 00000050 00000000 00000000 00104456 2**0 |
|
|
19 .comment 00000050 00000000 00000000 00104454 2**0 |
|
|
CONTENTS, READONLY |
|
|
CONTENTS, READONLY |
|
|
20 .debug_frame 00004160 00000000 00000000 001044a8 2**2 |
|
|
20 .debug_frame 00004160 00000000 00000000 001044a4 2**2 |
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS |
|
|
CONTENTS, READONLY, DEBUGGING, OCTETS |
|
|
|
|
|
|
|
|
Disassembly of section .text: |
|
|
Disassembly of section .text: |
|
|
@ -1087,16 +1087,18 @@ static void App_UpdateMotor(void) |
|
|
80007ae: d00d beq.n 80007cc <App_UpdateMotor+0x108> |
|
|
80007ae: d00d beq.n 80007cc <App_UpdateMotor+0x108> |
|
|
{ |
|
|
{ |
|
|
/* 正转:IO_1 高,IO_2 低 */ |
|
|
/* 正转:IO_1 高,IO_2 低 */ |
|
|
HAL_GPIO_WritePin(IO_1_GPIO_Port, IO_1_Pin, GPIO_PIN_RESET); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HAL_GPIO_WritePin(IO_1_GPIO_Port, IO_1_Pin, GPIO_PIN_SET); |
|
|
80007b0: 4b1b ldr r3, [pc, #108] ; (8000820 <App_UpdateMotor+0x15c>) |
|
|
80007b0: 4b1b ldr r3, [pc, #108] ; (8000820 <App_UpdateMotor+0x15c>) |
|
|
80007b2: 2200 movs r2, #0 |
|
|
80007b2: 2201 movs r2, #1 |
|
|
80007b4: 2101 movs r1, #1 |
|
|
80007b4: 2101 movs r1, #1 |
|
|
80007b6: 0018 movs r0, r3 |
|
|
80007b6: 0018 movs r0, r3 |
|
|
80007b8: f003 f81c bl 80037f4 <HAL_GPIO_WritePin> |
|
|
80007b8: f003 f81c bl 80037f4 <HAL_GPIO_WritePin> |
|
|
HAL_GPIO_WritePin(IO_2_GPIO_Port, IO_2_Pin, GPIO_PIN_SET); |
|
|
HAL_GPIO_WritePin(IO_2_GPIO_Port, IO_2_Pin, GPIO_PIN_RESET); |
|
|
80007bc: 23a0 movs r3, #160 ; 0xa0 |
|
|
80007bc: 23a0 movs r3, #160 ; 0xa0 |
|
|
80007be: 05db lsls r3, r3, #23 |
|
|
80007be: 05db lsls r3, r3, #23 |
|
|
80007c0: 2201 movs r2, #1 |
|
|
80007c0: 2200 movs r2, #0 |
|
|
80007c2: 2180 movs r1, #128 ; 0x80 |
|
|
80007c2: 2180 movs r1, #128 ; 0x80 |
|
|
80007c4: 0018 movs r0, r3 |
|
|
80007c4: 0018 movs r0, r3 |
|
|
80007c6: f003 f815 bl 80037f4 <HAL_GPIO_WritePin> |
|
|
80007c6: f003 f815 bl 80037f4 <HAL_GPIO_WritePin> |
|
|
@ -1113,16 +1115,16 @@ static void App_UpdateMotor(void) |
|
|
80007d0: 781b ldrb r3, [r3, #0] |
|
|
80007d0: 781b ldrb r3, [r3, #0] |
|
|
80007d2: 2b00 cmp r3, #0 |
|
|
80007d2: 2b00 cmp r3, #0 |
|
|
80007d4: d00d beq.n 80007f2 <App_UpdateMotor+0x12e> |
|
|
80007d4: d00d beq.n 80007f2 <App_UpdateMotor+0x12e> |
|
|
HAL_GPIO_WritePin(IO_1_GPIO_Port, IO_1_Pin, GPIO_PIN_SET); |
|
|
HAL_GPIO_WritePin(IO_1_GPIO_Port, IO_1_Pin, GPIO_PIN_RESET); |
|
|
80007d6: 4b12 ldr r3, [pc, #72] ; (8000820 <App_UpdateMotor+0x15c>) |
|
|
80007d6: 4b12 ldr r3, [pc, #72] ; (8000820 <App_UpdateMotor+0x15c>) |
|
|
80007d8: 2201 movs r2, #1 |
|
|
80007d8: 2200 movs r2, #0 |
|
|
80007da: 2101 movs r1, #1 |
|
|
80007da: 2101 movs r1, #1 |
|
|
80007dc: 0018 movs r0, r3 |
|
|
80007dc: 0018 movs r0, r3 |
|
|
80007de: f003 f809 bl 80037f4 <HAL_GPIO_WritePin> |
|
|
80007de: f003 f809 bl 80037f4 <HAL_GPIO_WritePin> |
|
|
HAL_GPIO_WritePin(IO_2_GPIO_Port, IO_2_Pin, GPIO_PIN_RESET); |
|
|
HAL_GPIO_WritePin(IO_2_GPIO_Port, IO_2_Pin, GPIO_PIN_SET); |
|
|
80007e2: 23a0 movs r3, #160 ; 0xa0 |
|
|
80007e2: 23a0 movs r3, #160 ; 0xa0 |
|
|
80007e4: 05db lsls r3, r3, #23 |
|
|
80007e4: 05db lsls r3, r3, #23 |
|
|
80007e6: 2200 movs r2, #0 |
|
|
80007e6: 2201 movs r2, #1 |
|
|
80007e8: 2180 movs r1, #128 ; 0x80 |
|
|
80007e8: 2180 movs r1, #128 ; 0x80 |
|
|
80007ea: 0018 movs r0, r3 |
|
|
80007ea: 0018 movs r0, r3 |
|
|
80007ec: f003 f802 bl 80037f4 <HAL_GPIO_WritePin> |
|
|
80007ec: f003 f802 bl 80037f4 <HAL_GPIO_WritePin> |
|
|
|