From a4d76b00054bdc073f427c908c3471cd769ce799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=87=E5=B3=B0?= Date: Fri, 5 Nov 2021 01:31:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=99=90=E4=BD=8D?= =?UTF-8?q?=E5=BC=80=E5=85=B3=E7=9A=84=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Debug/Motor_Controller2.bin | Bin 16056 -> 16172 bytes Debug/Motor_Controller2.list | 1675 ++++++++++++++++++---------------- Debug/Motor_Controller2.map | 148 +-- my_software/my_code.c | 12 +- 4 files changed, 945 insertions(+), 890 deletions(-) diff --git a/Debug/Motor_Controller2.bin b/Debug/Motor_Controller2.bin index 313531093db58e1e38836248ad1eac9343418d6d..9755473f2c0ba16d60dc93f4dd9712802d82f8a9 100755 GIT binary patch delta 1403 zcmZvaO>7%Q6vt=$(IieAJEX|&IxVqXXsMwP?4*Wm661sjG6JNER;evj&d0$HAF?+b zY`4@zRY6r$HR&d*wCROIrBW(YU_hWsX>LVG2rnNB+9qgS6{+ee7qr3ajd?TK1cW%u zyqWjjym|AV-!~uJJUjCMU!VQs34Fa|$3CkoV(`d=TmcRtpLMO%5W8(N_+ja;Z4btY zQpNr!#>vuh!%2)UiJeVtmX5yCVAI!5e6D18+8VJcw)*bamwHiSx%8{=M+?4Fy0-sH z3tlVrgq+y&Tupo<{0MJ|FLs^8--}{b5B^M)yH;Jj_uT>AWAk&FZo-coxi2nuFIsGU z;@KnZ#j7NqSs>W22omw8P_V5`bFGkDP4VfUIeuiGAU`L}5r;o6T!ytI%)(j`W>~&c zzDT?U6m-hdBmuTrzCaehHpm~7dtj|Ht%srBdBUZ?3nY*fYhGyvpErktJB#uZ!9EY# z(Dtoc_u1tFyDSfLT*wn8wRvFIio-mB%0lIRVqqujZ~~PlD(|wU-ho*W#wv#P!@33C zPK&WUKN;HHbt@VV-5wbw-qRSGNz(e07WEW7nVaO(;;9Ii{<3C84k%gE=8a~gd~u8@ z89rV0&%$Tbv}@bZk63hwNDzJVH5$9J9m}y;Kd2cai5v=A%25)}A=TyY1z!(SxL>S9 z+{Fl}#|ho+iCwUkgb-^zWa|06spnx+&u2_M5B*2aga4J4DnGum z3>@7H+R85V6$)&2r`iuTo^4cL1}kN4Y9Cl7i=cEr{WhQvzAF=jIi86SE*~YWK=Fn) zYJ^EVAKu(WwS>`0qzGXa1l>7_k?sel3Es{M*i)0VLEM=dBS;-zY;R=iMe9-MP zcie^*1u}b0irU0w{^=8~=B{ecSY7+2TGtl;s%r>rU8kH-9w---7f-ETPd-A3GV>6| z0QlCxQg%N43f;01`h*8nap34vc&YUE(NA%Urw=u5jrKm#-&?RxL{OtDe$wmy8^%ua A&j0`b delta 1284 zcmYjRQD|FL7(VCbX3JXHGCN6nTjr8%(Qv7>G|keci4sF;cg9}akYyr?>mV6>NbV4l zx-|oxOz@%gOb6E|ams|@*zS~$!RAC^_=)*Cb+&fu@LyJ9!SF0E#L zim_K)*nAk{Lv&zEmvA|vjcxgM8=lZiXO|71pxa%yt@|U$_J;Pr^{ar-YG3TWuoa)u z!h_qe@YJ9O{LA<{9UeN2&rmuP#z|Tls@R{@93I0dx}{8jgpz;P=&islVJ1SS_x2X< zlX&JH!S1qBB0VW2cNJN$1$yhLQ2M?UO8!ESTT*@|9qzdD6YN!G9`-9|(3i(W)L?vFx;z7!L-X+eAvwdyXJAYOUPhTywC-l^dj-nvZY*Erx3vr@jhn zSqaokeR)MdH`6rQeb3aFRxD_8@MiK7>3IjsmeQAu=A=-)NN0ntLaAXv9q{3Xe$DJe zwe$LSuq5^t;f??O&*vB0E0K_;)j^vOm6yGQD9ID#g??LTd zF3`CR0tx>MR7jo%JtXB6pK1#Bs*>kp>zP0LjyDCR)>Vk83e%7~-z#8`LbL4&#C16SCW*IaqjMt|g}3tTZ$Uhc|58=K>p1P*k! zTyeBqc@Aous^5)?5CQ~(kcgC%NKa0UhDweCG&F837&7Avy1_|oD6 z*!xfxi@vG|#!A^eRRNyytP4nj2<<``?eatX#`ZhVxE=QP7ZBPFPiLdqOe`bxCtxwi zUx7E(tXPe(E0Sf$2s58D$3o1Y%m}RU%w8hpgJe70$5ox0eiF|ITG@wYKT-38t?aDX zN6PtuRyJ+=7)SO+#*y{Hs%H1VTF(0T56#q%Q9UF(dRrM;wIB~DwRXi~ba>Pkd#07i z9Bb-UqpAP%Z&M$r_b;(g*%*%@*k}l1edIIWperI_=iO=0xlu2!Yk!P>g|}XWKcDru g6rrC)rh5B>$aZ2F+5SSvb_W7IJB37qfDNJl0P}v)SO5S3 diff --git a/Debug/Motor_Controller2.list b/Debug/Motor_Controller2.list index 4b65795..ac587fa 100644 --- a/Debug/Motor_Controller2.list +++ b/Debug/Motor_Controller2.list @@ -5,25 +5,25 @@ 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 00003d8c 080000c0 080000c0 000100c0 2**2 + 1 .text 00003e00 080000c0 080000c0 000100c0 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 00000058 08003e4c 08003e4c 00013e4c 2**2 + 2 .rodata 00000058 08003ec0 08003ec0 00013ec0 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 08003ea4 08003ea4 0002000c 2**0 + 3 .ARM.extab 00000000 08003f18 08003f18 0002000c 2**0 CONTENTS - 4 .ARM 00000000 08003ea4 08003ea4 0002000c 2**0 + 4 .ARM 00000000 08003f18 08003f18 0002000c 2**0 CONTENTS - 5 .preinit_array 00000000 08003ea4 08003ea4 0002000c 2**0 + 5 .preinit_array 00000000 08003f18 08003f18 0002000c 2**0 CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 08003ea4 08003ea4 00013ea4 2**2 + 6 .init_array 00000004 08003f18 08003f18 00013f18 2**2 CONTENTS, ALLOC, LOAD, DATA - 7 .fini_array 00000004 08003ea8 08003ea8 00013ea8 2**2 + 7 .fini_array 00000004 08003f1c 08003f1c 00013f1c 2**2 CONTENTS, ALLOC, LOAD, DATA - 8 .data 0000000c 20000000 08003eac 00020000 2**2 + 8 .data 0000000c 20000000 08003f20 00020000 2**2 CONTENTS, ALLOC, LOAD, DATA - 9 .bss 00000144 2000000c 08003eb8 0002000c 2**2 + 9 .bss 00000144 2000000c 08003f2c 0002000c 2**2 ALLOC - 10 ._user_heap_stack 00000600 20000150 08003eb8 00020150 2**0 + 10 ._user_heap_stack 00000600 20000150 08003f2c 00020150 2**0 ALLOC 11 .ARM.attributes 00000028 00000000 00000000 0002000c 2**0 CONTENTS, READONLY @@ -37,13 +37,13 @@ Idx Name Size VMA LMA File off Algn CONTENTS, READONLY, DEBUGGING, OCTETS 16 .debug_macro 00010442 00000000 00000000 0002f728 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_line 0000f1d9 00000000 00000000 0003fb6a 2**0 + 17 .debug_line 0000f273 00000000 00000000 0003fb6a 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_str 0005f5c4 00000000 00000000 0004ed43 2**0 + 18 .debug_str 0005f5c4 00000000 00000000 0004eddd 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .comment 00000053 00000000 00000000 000ae307 2**0 + 19 .comment 00000053 00000000 00000000 000ae3a1 2**0 CONTENTS, READONLY - 20 .debug_frame 00002790 00000000 00000000 000ae35c 2**2 + 20 .debug_frame 00002790 00000000 00000000 000ae3f4 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: 08003e34 .word 0x08003e34 + 80000e4: 08003ea8 .word 0x08003ea8 080000e8 : 80000e8: 4b04 ldr r3, [pc, #16] ; (80000fc ) @@ -80,7 +80,7 @@ Disassembly of section .text: 80000fa: 46c0 nop ; (mov r8, r8) 80000fc: 00000000 .word 0x00000000 8000100: 20000010 .word 0x20000010 - 8000104: 08003e34 .word 0x08003e34 + 8000104: 08003ea8 .word 0x08003ea8 08000108 <__udivsi3>: 8000108: 2200 movs r2, #0 @@ -526,14 +526,14 @@ void SystemClock_Config(void) 800041e: 2330 movs r3, #48 ; 0x30 8000420: 001a movs r2, r3 8000422: 2100 movs r1, #0 - 8000424: f003 fcfe bl 8003e24 + 8000424: f003 fd38 bl 8003e98 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; 8000428: 003b movs r3, r7 800042a: 0018 movs r0, r3 800042c: 2310 movs r3, #16 800042e: 001a movs r2, r3 8000430: 2100 movs r1, #0 - 8000432: f003 fcf7 bl 8003e24 + 8000432: f003 fd31 bl 8003e98 /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. @@ -645,7 +645,7 @@ static void MX_ADC_Init(void) 80004be: 230c movs r3, #12 80004c0: 001a movs r2, r3 80004c2: 2100 movs r1, #0 - 80004c4: f003 fcae bl 8003e24 + 80004c4: f003 fce8 bl 8003e98 /* USER CODE BEGIN ADC_Init 1 */ /* USER CODE END ADC_Init 1 */ @@ -854,7 +854,7 @@ static void MX_GPIO_Init(void) 80005d8: 2314 movs r3, #20 80005da: 001a movs r2, r3 80005dc: 2100 movs r1, #0 - 80005de: f003 fc21 bl 8003e24 + 80005de: f003 fc5b bl 8003e98 /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOF_CLK_ENABLE(); @@ -1201,7 +1201,7 @@ void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc) 80007ce: 2314 movs r3, #20 80007d0: 001a movs r2, r3 80007d2: 2100 movs r1, #0 - 80007d4: f003 fb26 bl 8003e24 + 80007d4: f003 fb60 bl 8003e98 if(hadc->Instance==ADC1) 80007d8: 687b ldr r3, [r7, #4] 80007da: 681b ldr r3, [r3, #0] @@ -1576,7 +1576,7 @@ LoopFillZerobss: 800092a: f7ff ffe3 bl 80008f4 /* Call static constructors */ bl __libc_init_array - 800092e: f003 fa55 bl 8003ddc <__libc_init_array> + 800092e: f003 fa8f bl 8003e50 <__libc_init_array> /* Call the application's entry point.*/ bl main 8000932: f7ff fd5f bl 80003f4
@@ -1593,7 +1593,7 @@ LoopForever: ldr r1, =_edata 8000940: 2000000c .word 0x2000000c ldr r2, =_sidata - 8000944: 08003eac .word 0x08003eac + 8000944: 08003f20 .word 0x08003f20 ldr r2, =_sbss 8000948: 2000000c .word 0x2000000c ldr r4, =_ebss @@ -4602,7 +4602,7 @@ void HAL_GPIO_EXTI_IRQHandler(uint16_t GPIO_Pin) 80018f4: 1dbb adds r3, r7, #6 80018f6: 881b ldrh r3, [r3, #0] 80018f8: 0018 movs r0, r3 - 80018fa: f002 fa49 bl 8003d90 + 80018fa: f002 fa83 bl 8003e04 } } 80018fe: 46c0 nop ; (mov r8, r8) @@ -6134,7 +6134,7 @@ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, ui 8002104: 40021000 .word 0x40021000 8002108: 00001388 .word 0x00001388 800210c: fffff8ff .word 0xfffff8ff - 8002110: 08003e6c .word 0x08003e6c + 8002110: 08003ee0 .word 0x08003ee0 8002114: 20000000 .word 0x20000000 08002118 : @@ -6282,8 +6282,8 @@ uint32_t HAL_RCC_GetSysClockFreq(void) 80021ca: b00f add sp, #60 ; 0x3c 80021cc: bd90 pop {r4, r7, pc} 80021ce: 46c0 nop ; (mov r8, r8) - 80021d0: 08003e4c .word 0x08003e4c - 80021d4: 08003e5c .word 0x08003e5c + 80021d0: 08003ec0 .word 0x08003ec0 + 80021d4: 08003ed0 .word 0x08003ed0 80021d8: 40021000 .word 0x40021000 80021dc: 007a1200 .word 0x007a1200 @@ -6838,7 +6838,7 @@ void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) HAL_TIM_PeriodElapsedCallback(htim); 800249e: 687b ldr r3, [r7, #4] 80024a0: 0018 movs r0, r3 - 80024a2: f001 fc85 bl 8003db0 + 80024a2: f001 fcbf bl 8003e24 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } @@ -9328,7 +9328,7 @@ void HT1621_Display_GetButton(void) 8003334: b004 add sp, #16 8003336: bd80 pop {r7, pc} 8003338: 20000038 .word 0x20000038 - 800333c: 08003e7c .word 0x08003e7c + 800333c: 08003ef0 .word 0x08003ef0 08003340 : @@ -9498,7 +9498,7 @@ void my_code() HT1621_Init(); 8003446: f7ff fba8 bl 8002b9a r480_init(); - 800344a: f000 fbf5 bl 8003c38 + 800344a: f000 fc2f bl 8003cac config.begin=0; 800344e: 4bc6 ldr r3, [pc, #792] ; (8003768 ) @@ -9640,7 +9640,7 @@ void my_code() 8003532: 781b ldrb r3, [r3, #0] 8003534: 2b04 cmp r3, #4 8003536: d900 bls.n 800353a - 8003538: e2b4 b.n 8003aa4 + 8003538: e2fe b.n 8003b38 800353a: 009a lsls r2, r3, #2 800353c: 4b8f ldr r3, [pc, #572] ; (800377c ) 800353e: 18d3 adds r3, r2, r3 @@ -9704,7 +9704,7 @@ void my_code() 800358c: 789b ldrb r3, [r3, #2] 800358e: 2bd7 cmp r3, #215 ; 0xd7 8003590: d000 beq.n 8003594 - 8003592: e280 b.n 8003a96 + 8003592: e2ca b.n 8003b2a { config.begin=0xab; 8003594: 4b74 ldr r3, [pc, #464] ; (8003768 ) @@ -9746,7 +9746,7 @@ void my_code() } break; - 80035d0: e261 b.n 8003a96 + 80035d0: e2ab b.n 8003b2a case 1: //standby moto.moto1a=0; @@ -9904,7 +9904,7 @@ void my_code() 80036a8: 681b ldr r3, [r3, #0] 80036aa: 2b00 cmp r3, #0 80036ac: d100 bne.n 80036b0 - 80036ae: e1f4 b.n 8003a9a + 80036ae: e23e b.n 8003b2e { mode=4; 80036b0: 2317 movs r3, #23 @@ -9916,7 +9916,7 @@ void my_code() 80036ba: 613b str r3, [r7, #16] } break; - 80036bc: e1ed b.n 8003a9a + 80036bc: e237 b.n 8003b2e case 2: if(HAL_GetTick()>move) @@ -10020,7 +10020,7 @@ void my_code() 8003770: 20000094 .word 0x20000094 8003774: 0000ffff .word 0x0000ffff 8003778: 20000110 .word 0x20000110 - 800377c: 08003e90 .word 0x08003e90 + 800377c: 08003f04 .word 0x08003f04 8003780: 20000038 .word 0x20000038 8003784: 20000134 .word 0x20000134 8003788: 20000124 .word 0x20000124 @@ -10028,15 +10028,15 @@ void my_code() 8003790: 200000f0 .word 0x200000f0 8003794: 00002710 .word 0x00002710 8003798: 2210 movs r2, #16 - 800379a: 4bd3 ldr r3, [pc, #844] ; (8003ae8 ) + 800379a: 4b9c ldr r3, [pc, #624] ; (8003a0c ) 800379c: 705a strb r2, [r3, #1] dis_buff.dot4=1; - 800379e: 4bd2 ldr r3, [pc, #840] ; (8003ae8 ) + 800379e: 4b9b ldr r3, [pc, #620] ; (8003a0c ) 80037a0: 2201 movs r2, #1 80037a2: 72da strb r2, [r3, #11] if(key3.code!=0) - 80037a4: 4bd1 ldr r3, [pc, #836] ; (8003aec ) + 80037a4: 4b9a ldr r3, [pc, #616] ; (8003a10 ) 80037a6: 681b ldr r3, [r3, #0] 80037a8: 2b00 cmp r3, #0 80037aa: d013 beq.n 80037d4 @@ -10052,162 +10052,163 @@ void my_code() 80037b8: 1ad3 subs r3, r2, r3 80037ba: 613b str r3, [r7, #16] moto.moto1a=0; - 80037bc: 4bcc ldr r3, [pc, #816] ; (8003af0 ) + 80037bc: 4b95 ldr r3, [pc, #596] ; (8003a14 ) 80037be: 2200 movs r2, #0 80037c0: 721a strb r2, [r3, #8] moto.moto1b=10; - 80037c2: 4bcb ldr r3, [pc, #812] ; (8003af0 ) + 80037c2: 4b94 ldr r3, [pc, #592] ; (8003a14 ) 80037c4: 220a movs r2, #10 80037c6: 725a strb r2, [r3, #9] moto.moto2a=0; - 80037c8: 4bc9 ldr r3, [pc, #804] ; (8003af0 ) + 80037c8: 4b92 ldr r3, [pc, #584] ; (8003a14 ) 80037ca: 2200 movs r2, #0 80037cc: 729a strb r2, [r3, #10] moto.moto2b=10; - 80037ce: 4bc8 ldr r3, [pc, #800] ; (8003af0 ) + 80037ce: 4b91 ldr r3, [pc, #580] ; (8003a14 ) 80037d0: 220a movs r2, #10 80037d2: 72da strb r2, [r3, #11] } - if(key4.code!=0||(moto_in1==1&&READ_MOT_IN1==0)) - 80037d4: 4bc7 ldr r3, [pc, #796] ; (8003af4 ) + if(key4.code!=0||(moto.moto1a==0&&moto.moto1b==0&&moto.moto2a==0&&moto.moto2b==0)) + 80037d4: 4b90 ldr r3, [pc, #576] ; (8003a18 ) 80037d6: 681b ldr r3, [r3, #0] 80037d8: 2b00 cmp r3, #0 - 80037da: d10b bne.n 80037f4 - 80037dc: 230b movs r3, #11 - 80037de: 18fb adds r3, r7, r3 - 80037e0: 781b ldrb r3, [r3, #0] - 80037e2: 2b01 cmp r3, #1 - 80037e4: d10a bne.n 80037fc - 80037e6: 4bc4 ldr r3, [pc, #784] ; (8003af8 ) - 80037e8: 2101 movs r1, #1 - 80037ea: 0018 movs r0, r3 - 80037ec: f7fe f838 bl 8001860 - 80037f0: 1e03 subs r3, r0, #0 - 80037f2: d103 bne.n 80037fc + 80037da: d10f bne.n 80037fc + 80037dc: 4b8d ldr r3, [pc, #564] ; (8003a14 ) + 80037de: 7a1b ldrb r3, [r3, #8] + 80037e0: 2b00 cmp r3, #0 + 80037e2: d10f bne.n 8003804 + 80037e4: 4b8b ldr r3, [pc, #556] ; (8003a14 ) + 80037e6: 7a5b ldrb r3, [r3, #9] + 80037e8: 2b00 cmp r3, #0 + 80037ea: d10b bne.n 8003804 + 80037ec: 4b89 ldr r3, [pc, #548] ; (8003a14 ) + 80037ee: 7a9b ldrb r3, [r3, #10] + 80037f0: 2b00 cmp r3, #0 + 80037f2: d107 bne.n 8003804 + 80037f4: 4b87 ldr r3, [pc, #540] ; (8003a14 ) + 80037f6: 7adb ldrb r3, [r3, #11] + 80037f8: 2b00 cmp r3, #0 + 80037fa: d103 bne.n 8003804 { mode=1; - 80037f4: 2317 movs r3, #23 - 80037f6: 18fb adds r3, r7, r3 - 80037f8: 2201 movs r2, #1 - 80037fa: 701a strb r2, [r3, #0] + 80037fc: 2317 movs r3, #23 + 80037fe: 18fb adds r3, r7, r3 + 8003800: 2201 movs r2, #1 + 8003802: 701a strb r2, [r3, #0] } - if(ADCC.adc_value[1]>400) - 80037fc: 4bbf ldr r3, [pc, #764] ; (8003afc ) - 80037fe: 691a ldr r2, [r3, #16] - 8003800: 23c8 movs r3, #200 ; 0xc8 - 8003802: 005b lsls r3, r3, #1 - 8003804: 429a cmp r2, r3 - 8003806: dd05 ble.n 8003814 + if(ADCC.adc_value[1]>400||(moto_in1==1&&READ_MOT_IN1==0)) + 8003804: 4b85 ldr r3, [pc, #532] ; (8003a1c ) + 8003806: 691a ldr r2, [r3, #16] + 8003808: 23c8 movs r3, #200 ; 0xc8 + 800380a: 005b lsls r3, r3, #1 + 800380c: 429a cmp r2, r3 + 800380e: dc0b bgt.n 8003828 + 8003810: 230b movs r3, #11 + 8003812: 18fb adds r3, r7, r3 + 8003814: 781b ldrb r3, [r3, #0] + 8003816: 2b01 cmp r3, #1 + 8003818: d10c bne.n 8003834 + 800381a: 4b81 ldr r3, [pc, #516] ; (8003a20 ) + 800381c: 2101 movs r1, #1 + 800381e: 0018 movs r0, r3 + 8003820: f7fe f81e bl 8001860 + 8003824: 1e03 subs r3, r0, #0 + 8003826: d105 bne.n 8003834 { //overload_times=0; moto.moto1a=0; - 8003808: 4bb9 ldr r3, [pc, #740] ; (8003af0 ) - 800380a: 2200 movs r2, #0 - 800380c: 721a strb r2, [r3, #8] + 8003828: 4b7a ldr r3, [pc, #488] ; (8003a14 ) + 800382a: 2200 movs r2, #0 + 800382c: 721a strb r2, [r3, #8] moto.moto1b=0; - 800380e: 4bb8 ldr r3, [pc, #736] ; (8003af0 ) - 8003810: 2200 movs r2, #0 - 8003812: 725a strb r2, [r3, #9] + 800382e: 4b79 ldr r3, [pc, #484] ; (8003a14 ) + 8003830: 2200 movs r2, #0 + 8003832: 725a strb r2, [r3, #9] } - if(ADCC.adc_value[0]>400) - 8003814: 4bb9 ldr r3, [pc, #740] ; (8003afc ) - 8003816: 68da ldr r2, [r3, #12] - 8003818: 23c8 movs r3, #200 ; 0xc8 - 800381a: 005b lsls r3, r3, #1 - 800381c: 429a cmp r2, r3 - 800381e: dc00 bgt.n 8003822 - 8003820: e13d b.n 8003a9e + if(ADCC.adc_value[0]>400||(moto_in2==1&&READ_MOT_IN2==0)) + 8003834: 4b79 ldr r3, [pc, #484] ; (8003a1c ) + 8003836: 68da ldr r2, [r3, #12] + 8003838: 23c8 movs r3, #200 ; 0xc8 + 800383a: 005b lsls r3, r3, #1 + 800383c: 429a cmp r2, r3 + 800383e: dc0d bgt.n 800385c + 8003840: 230a movs r3, #10 + 8003842: 18fb adds r3, r7, r3 + 8003844: 781b ldrb r3, [r3, #0] + 8003846: 2b01 cmp r3, #1 + 8003848: d000 beq.n 800384c + 800384a: e172 b.n 8003b32 + 800384c: 4b74 ldr r3, [pc, #464] ; (8003a20 ) + 800384e: 2102 movs r1, #2 + 8003850: 0018 movs r0, r3 + 8003852: f7fe f805 bl 8001860 + 8003856: 1e03 subs r3, r0, #0 + 8003858: d000 beq.n 800385c + 800385a: e16a b.n 8003b32 { moto.moto2a=0; - 8003822: 4bb3 ldr r3, [pc, #716] ; (8003af0 ) - 8003824: 2200 movs r2, #0 - 8003826: 729a strb r2, [r3, #10] + 800385c: 4b6d ldr r3, [pc, #436] ; (8003a14 ) + 800385e: 2200 movs r2, #0 + 8003860: 729a strb r2, [r3, #10] moto.moto2b=0; - 8003828: 4bb1 ldr r3, [pc, #708] ; (8003af0 ) - 800382a: 2200 movs r2, #0 - 800382c: 72da strb r2, [r3, #11] + 8003862: 4b6c ldr r3, [pc, #432] ; (8003a14 ) + 8003864: 2200 movs r2, #0 + 8003866: 72da strb r2, [r3, #11] } break; - 800382e: e136 b.n 8003a9e + 8003868: e163 b.n 8003b32 case 3: if(HAL_GetTick()>move) - 8003830: f7fd f8ea bl 8000a08 - 8003834: 0002 movs r2, r0 - 8003836: 69bb ldr r3, [r7, #24] - 8003838: 4293 cmp r3, r2 - 800383a: d219 bcs.n 8003870 + 800386a: f7fd f8cd bl 8000a08 + 800386e: 0002 movs r2, r0 + 8003870: 69bb ldr r3, [r7, #24] + 8003872: 4293 cmp r3, r2 + 8003874: d219 bcs.n 80038aa { move=HAL_GetTick()+100; - 800383c: f7fd f8e4 bl 8000a08 - 8003840: 0003 movs r3, r0 - 8003842: 3364 adds r3, #100 ; 0x64 - 8003844: 61bb str r3, [r7, #24] + 8003876: f7fd f8c7 bl 8000a08 + 800387a: 0003 movs r3, r0 + 800387c: 3364 adds r3, #100 ; 0x64 + 800387e: 61bb str r3, [r7, #24] if(dis_buff.led_run==1) - 8003846: 4ba8 ldr r3, [pc, #672] ; (8003ae8 ) - 8003848: 7b1b ldrb r3, [r3, #12] - 800384a: 2b01 cmp r3, #1 - 800384c: d103 bne.n 8003856 + 8003880: 4b62 ldr r3, [pc, #392] ; (8003a0c ) + 8003882: 7b1b ldrb r3, [r3, #12] + 8003884: 2b01 cmp r3, #1 + 8003886: d103 bne.n 8003890 { dis_buff.led_run=0; - 800384e: 4ba6 ldr r3, [pc, #664] ; (8003ae8 ) - 8003850: 2200 movs r2, #0 - 8003852: 731a strb r2, [r3, #12] - 8003854: e002 b.n 800385c + 8003888: 4b60 ldr r3, [pc, #384] ; (8003a0c ) + 800388a: 2200 movs r2, #0 + 800388c: 731a strb r2, [r3, #12] + 800388e: e002 b.n 8003896 }else { dis_buff.led_run=1; - 8003856: 4ba4 ldr r3, [pc, #656] ; (8003ae8 ) - 8003858: 2201 movs r2, #1 - 800385a: 731a strb r2, [r3, #12] + 8003890: 4b5e ldr r3, [pc, #376] ; (8003a0c ) + 8003892: 2201 movs r2, #1 + 8003894: 731a strb r2, [r3, #12] } countdown-=100; - 800385c: 693b ldr r3, [r7, #16] - 800385e: 3b64 subs r3, #100 ; 0x64 - 8003860: 613b str r3, [r7, #16] + 8003896: 693b ldr r3, [r7, #16] + 8003898: 3b64 subs r3, #100 ; 0x64 + 800389a: 613b str r3, [r7, #16] if(countdown<0) - 8003862: 693b ldr r3, [r7, #16] - 8003864: 2b00 cmp r3, #0 - 8003866: da03 bge.n 8003870 + 800389c: 693b ldr r3, [r7, #16] + 800389e: 2b00 cmp r3, #0 + 80038a0: da03 bge.n 80038aa { mode=1; - 8003868: 2317 movs r3, #23 - 800386a: 18fb adds r3, r7, r3 - 800386c: 2201 movs r2, #1 - 800386e: 701a strb r2, [r3, #0] + 80038a2: 2317 movs r3, #23 + 80038a4: 18fb adds r3, r7, r3 + 80038a6: 2201 movs r2, #1 + 80038a8: 701a strb r2, [r3, #0] } } dis_buff.d_num[3]=(countdown/100)%10; - 8003870: 693b ldr r3, [r7, #16] - 8003872: 2164 movs r1, #100 ; 0x64 - 8003874: 0018 movs r0, r3 - 8003876: f7fc fcd1 bl 800021c <__divsi3> - 800387a: 0003 movs r3, r0 - 800387c: 210a movs r1, #10 - 800387e: 0018 movs r0, r3 - 8003880: f7fc fdb2 bl 80003e8 <__aeabi_idivmod> - 8003884: 000b movs r3, r1 - 8003886: b2da uxtb r2, r3 - 8003888: 4b97 ldr r3, [pc, #604] ; (8003ae8 ) - 800388a: 70da strb r2, [r3, #3] - dis_buff.d_num[2]=(countdown/1000)%10; - 800388c: 693b ldr r3, [r7, #16] - 800388e: 22fa movs r2, #250 ; 0xfa - 8003890: 0091 lsls r1, r2, #2 - 8003892: 0018 movs r0, r3 - 8003894: f7fc fcc2 bl 800021c <__divsi3> - 8003898: 0003 movs r3, r0 - 800389a: 210a movs r1, #10 - 800389c: 0018 movs r0, r3 - 800389e: f7fc fda3 bl 80003e8 <__aeabi_idivmod> - 80038a2: 000b movs r3, r1 - 80038a4: b2da uxtb r2, r3 - 80038a6: 4b90 ldr r3, [pc, #576] ; (8003ae8 ) - 80038a8: 709a strb r2, [r3, #2] - dis_buff.d_num[1]=((countdown/10000)%10); 80038aa: 693b ldr r3, [r7, #16] - 80038ac: 4994 ldr r1, [pc, #592] ; (8003b00 ) + 80038ac: 2164 movs r1, #100 ; 0x64 80038ae: 0018 movs r0, r3 80038b0: f7fc fcb4 bl 800021c <__divsi3> 80038b4: 0003 movs r3, r0 @@ -10216,894 +10217,948 @@ void my_code() 80038ba: f7fc fd95 bl 80003e8 <__aeabi_idivmod> 80038be: 000b movs r3, r1 80038c0: b2da uxtb r2, r3 - 80038c2: 4b89 ldr r3, [pc, #548] ; (8003ae8 ) - 80038c4: 705a strb r2, [r3, #1] + 80038c2: 4b52 ldr r3, [pc, #328] ; (8003a0c ) + 80038c4: 70da strb r2, [r3, #3] + dis_buff.d_num[2]=(countdown/1000)%10; + 80038c6: 693b ldr r3, [r7, #16] + 80038c8: 22fa movs r2, #250 ; 0xfa + 80038ca: 0091 lsls r1, r2, #2 + 80038cc: 0018 movs r0, r3 + 80038ce: f7fc fca5 bl 800021c <__divsi3> + 80038d2: 0003 movs r3, r0 + 80038d4: 210a movs r1, #10 + 80038d6: 0018 movs r0, r3 + 80038d8: f7fc fd86 bl 80003e8 <__aeabi_idivmod> + 80038dc: 000b movs r3, r1 + 80038de: b2da uxtb r2, r3 + 80038e0: 4b4a ldr r3, [pc, #296] ; (8003a0c ) + 80038e2: 709a strb r2, [r3, #2] + dis_buff.d_num[1]=((countdown/10000)%10); + 80038e4: 693b ldr r3, [r7, #16] + 80038e6: 494f ldr r1, [pc, #316] ; (8003a24 ) + 80038e8: 0018 movs r0, r3 + 80038ea: f7fc fc97 bl 800021c <__divsi3> + 80038ee: 0003 movs r3, r0 + 80038f0: 210a movs r1, #10 + 80038f2: 0018 movs r0, r3 + 80038f4: f7fc fd78 bl 80003e8 <__aeabi_idivmod> + 80038f8: 000b movs r3, r1 + 80038fa: b2da uxtb r2, r3 + 80038fc: 4b43 ldr r3, [pc, #268] ; (8003a0c ) + 80038fe: 705a strb r2, [r3, #1] dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1]; - 80038c6: 4b88 ldr r3, [pc, #544] ; (8003ae8 ) - 80038c8: 785b ldrb r3, [r3, #1] - 80038ca: 2b00 cmp r3, #0 - 80038cc: d002 beq.n 80038d4 - 80038ce: 4b86 ldr r3, [pc, #536] ; (8003ae8 ) - 80038d0: 785a ldrb r2, [r3, #1] - 80038d2: e000 b.n 80038d6 - 80038d4: 2210 movs r2, #16 - 80038d6: 4b84 ldr r3, [pc, #528] ; (8003ae8 ) - 80038d8: 705a strb r2, [r3, #1] + 8003900: 4b42 ldr r3, [pc, #264] ; (8003a0c ) + 8003902: 785b ldrb r3, [r3, #1] + 8003904: 2b00 cmp r3, #0 + 8003906: d002 beq.n 800390e + 8003908: 4b40 ldr r3, [pc, #256] ; (8003a0c ) + 800390a: 785a ldrb r2, [r3, #1] + 800390c: e000 b.n 8003910 + 800390e: 2210 movs r2, #16 + 8003910: 4b3e ldr r3, [pc, #248] ; (8003a0c ) + 8003912: 705a strb r2, [r3, #1] dis_buff.dot4=1; - 80038da: 4b83 ldr r3, [pc, #524] ; (8003ae8 ) - 80038dc: 2201 movs r2, #1 - 80038de: 72da strb r2, [r3, #11] + 8003914: 4b3d ldr r3, [pc, #244] ; (8003a0c ) + 8003916: 2201 movs r2, #1 + 8003918: 72da strb r2, [r3, #11] if(key2.code!=0) - 80038e0: 4b88 ldr r3, [pc, #544] ; (8003b04 ) - 80038e2: 681b ldr r3, [r3, #0] - 80038e4: 2b00 cmp r3, #0 - 80038e6: d013 beq.n 8003910 + 800391a: 4b43 ldr r3, [pc, #268] ; (8003a28 ) + 800391c: 681b ldr r3, [r3, #0] + 800391e: 2b00 cmp r3, #0 + 8003920: d013 beq.n 800394a { mode=2; - 80038e8: 2317 movs r3, #23 - 80038ea: 18fb adds r3, r7, r3 - 80038ec: 2202 movs r2, #2 - 80038ee: 701a strb r2, [r3, #0] + 8003922: 2317 movs r3, #23 + 8003924: 18fb adds r3, r7, r3 + 8003926: 2202 movs r2, #2 + 8003928: 701a strb r2, [r3, #0] countdown=countdown_set-countdown; - 80038f0: 68fa ldr r2, [r7, #12] - 80038f2: 693b ldr r3, [r7, #16] - 80038f4: 1ad3 subs r3, r2, r3 - 80038f6: 613b str r3, [r7, #16] + 800392a: 68fa ldr r2, [r7, #12] + 800392c: 693b ldr r3, [r7, #16] + 800392e: 1ad3 subs r3, r2, r3 + 8003930: 613b str r3, [r7, #16] moto.moto1a=10; - 80038f8: 4b7d ldr r3, [pc, #500] ; (8003af0 ) - 80038fa: 220a movs r2, #10 - 80038fc: 721a strb r2, [r3, #8] + 8003932: 4b38 ldr r3, [pc, #224] ; (8003a14 ) + 8003934: 220a movs r2, #10 + 8003936: 721a strb r2, [r3, #8] moto.moto1b=0; - 80038fe: 4b7c ldr r3, [pc, #496] ; (8003af0 ) - 8003900: 2200 movs r2, #0 - 8003902: 725a strb r2, [r3, #9] + 8003938: 4b36 ldr r3, [pc, #216] ; (8003a14 ) + 800393a: 2200 movs r2, #0 + 800393c: 725a strb r2, [r3, #9] moto.moto2a=10; - 8003904: 4b7a ldr r3, [pc, #488] ; (8003af0 ) - 8003906: 220a movs r2, #10 - 8003908: 729a strb r2, [r3, #10] + 800393e: 4b35 ldr r3, [pc, #212] ; (8003a14 ) + 8003940: 220a movs r2, #10 + 8003942: 729a strb r2, [r3, #10] moto.moto2b=0; - 800390a: 4b79 ldr r3, [pc, #484] ; (8003af0 ) - 800390c: 2200 movs r2, #0 - 800390e: 72da strb r2, [r3, #11] + 8003944: 4b33 ldr r3, [pc, #204] ; (8003a14 ) + 8003946: 2200 movs r2, #0 + 8003948: 72da strb r2, [r3, #11] } - if(key4.code!=0||(moto_in2==1&&READ_MOT_IN2==0)) - 8003910: 4b78 ldr r3, [pc, #480] ; (8003af4 ) - 8003912: 681b ldr r3, [r3, #0] - 8003914: 2b00 cmp r3, #0 - 8003916: d10b bne.n 8003930 - 8003918: 230a movs r3, #10 - 800391a: 18fb adds r3, r7, r3 - 800391c: 781b ldrb r3, [r3, #0] - 800391e: 2b01 cmp r3, #1 - 8003920: d10a bne.n 8003938 - 8003922: 4b75 ldr r3, [pc, #468] ; (8003af8 ) - 8003924: 2102 movs r1, #2 - 8003926: 0018 movs r0, r3 - 8003928: f7fd ff9a bl 8001860 - 800392c: 1e03 subs r3, r0, #0 - 800392e: d103 bne.n 8003938 + if(key4.code!=0||(moto.moto1a==0&&moto.moto1b==0&&moto.moto2a==0&&moto.moto2b==0)) + 800394a: 4b33 ldr r3, [pc, #204] ; (8003a18 ) + 800394c: 681b ldr r3, [r3, #0] + 800394e: 2b00 cmp r3, #0 + 8003950: d10f bne.n 8003972 + 8003952: 4b30 ldr r3, [pc, #192] ; (8003a14 ) + 8003954: 7a1b ldrb r3, [r3, #8] + 8003956: 2b00 cmp r3, #0 + 8003958: d10f bne.n 800397a + 800395a: 4b2e ldr r3, [pc, #184] ; (8003a14 ) + 800395c: 7a5b ldrb r3, [r3, #9] + 800395e: 2b00 cmp r3, #0 + 8003960: d10b bne.n 800397a + 8003962: 4b2c ldr r3, [pc, #176] ; (8003a14 ) + 8003964: 7a9b ldrb r3, [r3, #10] + 8003966: 2b00 cmp r3, #0 + 8003968: d107 bne.n 800397a + 800396a: 4b2a ldr r3, [pc, #168] ; (8003a14 ) + 800396c: 7adb ldrb r3, [r3, #11] + 800396e: 2b00 cmp r3, #0 + 8003970: d103 bne.n 800397a { mode=1; - 8003930: 2317 movs r3, #23 - 8003932: 18fb adds r3, r7, r3 - 8003934: 2201 movs r2, #1 - 8003936: 701a strb r2, [r3, #0] + 8003972: 2317 movs r3, #23 + 8003974: 18fb adds r3, r7, r3 + 8003976: 2201 movs r2, #1 + 8003978: 701a strb r2, [r3, #0] } - if(ADCC.adc_value[1]>400) - 8003938: 4b70 ldr r3, [pc, #448] ; (8003afc ) - 800393a: 691a ldr r2, [r3, #16] - 800393c: 23c8 movs r3, #200 ; 0xc8 - 800393e: 005b lsls r3, r3, #1 - 8003940: 429a cmp r2, r3 - 8003942: dd05 ble.n 8003950 + if(ADCC.adc_value[1]>400||(moto_in1==1&&READ_MOT_IN1==0)) + 800397a: 4b28 ldr r3, [pc, #160] ; (8003a1c ) + 800397c: 691a ldr r2, [r3, #16] + 800397e: 23c8 movs r3, #200 ; 0xc8 + 8003980: 005b lsls r3, r3, #1 + 8003982: 429a cmp r2, r3 + 8003984: dc0b bgt.n 800399e + 8003986: 230b movs r3, #11 + 8003988: 18fb adds r3, r7, r3 + 800398a: 781b ldrb r3, [r3, #0] + 800398c: 2b01 cmp r3, #1 + 800398e: d10c bne.n 80039aa + 8003990: 4b23 ldr r3, [pc, #140] ; (8003a20 ) + 8003992: 2101 movs r1, #1 + 8003994: 0018 movs r0, r3 + 8003996: f7fd ff63 bl 8001860 + 800399a: 1e03 subs r3, r0, #0 + 800399c: d105 bne.n 80039aa { //overload_times=0; moto.moto1a=0; - 8003944: 4b6a ldr r3, [pc, #424] ; (8003af0 ) - 8003946: 2200 movs r2, #0 - 8003948: 721a strb r2, [r3, #8] + 800399e: 4b1d ldr r3, [pc, #116] ; (8003a14 ) + 80039a0: 2200 movs r2, #0 + 80039a2: 721a strb r2, [r3, #8] moto.moto1b=0; - 800394a: 4b69 ldr r3, [pc, #420] ; (8003af0 ) - 800394c: 2200 movs r2, #0 - 800394e: 725a strb r2, [r3, #9] + 80039a4: 4b1b ldr r3, [pc, #108] ; (8003a14 ) + 80039a6: 2200 movs r2, #0 + 80039a8: 725a strb r2, [r3, #9] } - if(ADCC.adc_value[0]>400) - 8003950: 4b6a ldr r3, [pc, #424] ; (8003afc ) - 8003952: 68da ldr r2, [r3, #12] - 8003954: 23c8 movs r3, #200 ; 0xc8 - 8003956: 005b lsls r3, r3, #1 - 8003958: 429a cmp r2, r3 - 800395a: dc00 bgt.n 800395e - 800395c: e0a1 b.n 8003aa2 + if(ADCC.adc_value[0]>400||(moto_in2==1&&READ_MOT_IN2==0)) + 80039aa: 4b1c ldr r3, [pc, #112] ; (8003a1c ) + 80039ac: 68da ldr r2, [r3, #12] + 80039ae: 23c8 movs r3, #200 ; 0xc8 + 80039b0: 005b lsls r3, r3, #1 + 80039b2: 429a cmp r2, r3 + 80039b4: dc0d bgt.n 80039d2 + 80039b6: 230a movs r3, #10 + 80039b8: 18fb adds r3, r7, r3 + 80039ba: 781b ldrb r3, [r3, #0] + 80039bc: 2b01 cmp r3, #1 + 80039be: d000 beq.n 80039c2 + 80039c0: e0b9 b.n 8003b36 + 80039c2: 4b17 ldr r3, [pc, #92] ; (8003a20 ) + 80039c4: 2102 movs r1, #2 + 80039c6: 0018 movs r0, r3 + 80039c8: f7fd ff4a bl 8001860 + 80039cc: 1e03 subs r3, r0, #0 + 80039ce: d000 beq.n 80039d2 + 80039d0: e0b1 b.n 8003b36 { //overload_times2=0; moto.moto2a=0; - 800395e: 4b64 ldr r3, [pc, #400] ; (8003af0 ) - 8003960: 2200 movs r2, #0 - 8003962: 729a strb r2, [r3, #10] + 80039d2: 4b10 ldr r3, [pc, #64] ; (8003a14 ) + 80039d4: 2200 movs r2, #0 + 80039d6: 729a strb r2, [r3, #10] moto.moto2b=0; - 8003964: 4b62 ldr r3, [pc, #392] ; (8003af0 ) - 8003966: 2200 movs r2, #0 - 8003968: 72da strb r2, [r3, #11] + 80039d8: 4b0e ldr r3, [pc, #56] ; (8003a14 ) + 80039da: 2200 movs r2, #0 + 80039dc: 72da strb r2, [r3, #11] } break; - 800396a: e09a b.n 8003aa2 + 80039de: e0aa b.n 8003b36 case 4: //setting mode dis_buff.led_run=0; - 800396c: 4b5e ldr r3, [pc, #376] ; (8003ae8 ) - 800396e: 2200 movs r2, #0 - 8003970: 731a strb r2, [r3, #12] + 80039e0: 4b0a ldr r3, [pc, #40] ; (8003a0c ) + 80039e2: 2200 movs r2, #0 + 80039e4: 731a strb r2, [r3, #12] if(HAL_GetTick()>move) - 8003972: f7fd f849 bl 8000a08 - 8003976: 0002 movs r2, r0 - 8003978: 69bb ldr r3, [r7, #24] - 800397a: 4293 cmp r3, r2 - 800397c: d230 bcs.n 80039e0 + 80039e6: f7fd f80f bl 8000a08 + 80039ea: 0002 movs r2, r0 + 80039ec: 69bb ldr r3, [r7, #24] + 80039ee: 4293 cmp r3, r2 + 80039f0: d240 bcs.n 8003a74 { move=HAL_GetTick()+100; - 800397e: f7fd f843 bl 8000a08 - 8003982: 0003 movs r3, r0 - 8003984: 3364 adds r3, #100 ; 0x64 - 8003986: 61bb str r3, [r7, #24] + 80039f2: f7fd f809 bl 8000a08 + 80039f6: 0003 movs r3, r0 + 80039f8: 3364 adds r3, #100 ; 0x64 + 80039fa: 61bb str r3, [r7, #24] if(dis_buff.dot4==1) - 8003988: 4b57 ldr r3, [pc, #348] ; (8003ae8 ) - 800398a: 7adb ldrb r3, [r3, #11] - 800398c: 2b01 cmp r3, #1 - 800398e: d103 bne.n 8003998 + 80039fc: 4b03 ldr r3, [pc, #12] ; (8003a0c ) + 80039fe: 7adb ldrb r3, [r3, #11] + 8003a00: 2b01 cmp r3, #1 + 8003a02: d113 bne.n 8003a2c { dis_buff.dot4=0; - 8003990: 4b55 ldr r3, [pc, #340] ; (8003ae8 ) - 8003992: 2200 movs r2, #0 - 8003994: 72da strb r2, [r3, #11] - 8003996: e002 b.n 800399e + 8003a04: 4b01 ldr r3, [pc, #4] ; (8003a0c ) + 8003a06: 2200 movs r2, #0 + 8003a08: 72da strb r2, [r3, #11] + 8003a0a: e012 b.n 8003a32 + 8003a0c: 20000038 .word 0x20000038 + 8003a10: 20000100 .word 0x20000100 + 8003a14: 20000134 .word 0x20000134 + 8003a18: 200000d8 .word 0x200000d8 + 8003a1c: 20000110 .word 0x20000110 + 8003a20: 48001400 .word 0x48001400 + 8003a24: 00002710 .word 0x00002710 + 8003a28: 20000124 .word 0x20000124 }else { dis_buff.dot4=1; - 8003998: 4b53 ldr r3, [pc, #332] ; (8003ae8 ) - 800399a: 2201 movs r2, #1 - 800399c: 72da strb r2, [r3, #11] + 8003a2c: 4b94 ldr r3, [pc, #592] ; (8003c80 ) + 8003a2e: 2201 movs r2, #1 + 8003a30: 72da strb r2, [r3, #11] } countdown-=100; - 800399e: 693b ldr r3, [r7, #16] - 80039a0: 3b64 subs r3, #100 ; 0x64 - 80039a2: 613b str r3, [r7, #16] + 8003a32: 693b ldr r3, [r7, #16] + 8003a34: 3b64 subs r3, #100 ; 0x64 + 8003a36: 613b str r3, [r7, #16] if(countdown<0) - 80039a4: 693b ldr r3, [r7, #16] - 80039a6: 2b00 cmp r3, #0 - 80039a8: da03 bge.n 80039b2 + 8003a38: 693b ldr r3, [r7, #16] + 8003a3a: 2b00 cmp r3, #0 + 8003a3c: da03 bge.n 8003a46 { mode=1; - 80039aa: 2317 movs r3, #23 - 80039ac: 18fb adds r3, r7, r3 - 80039ae: 2201 movs r2, #1 - 80039b0: 701a strb r2, [r3, #0] + 8003a3e: 2317 movs r3, #23 + 8003a40: 18fb adds r3, r7, r3 + 8003a42: 2201 movs r2, #1 + 8003a44: 701a strb r2, [r3, #0] } if(key2.code<0){countdown_set+=1000;countdown=10000;} - 80039b2: 4b54 ldr r3, [pc, #336] ; (8003b04 ) - 80039b4: 681b ldr r3, [r3, #0] - 80039b6: 2b00 cmp r3, #0 - 80039b8: da07 bge.n 80039ca - 80039ba: 68fb ldr r3, [r7, #12] - 80039bc: 22fa movs r2, #250 ; 0xfa - 80039be: 0092 lsls r2, r2, #2 - 80039c0: 4694 mov ip, r2 - 80039c2: 4463 add r3, ip - 80039c4: 60fb str r3, [r7, #12] - 80039c6: 4b4e ldr r3, [pc, #312] ; (8003b00 ) - 80039c8: 613b str r3, [r7, #16] + 8003a46: 4b8f ldr r3, [pc, #572] ; (8003c84 ) + 8003a48: 681b ldr r3, [r3, #0] + 8003a4a: 2b00 cmp r3, #0 + 8003a4c: da07 bge.n 8003a5e + 8003a4e: 68fb ldr r3, [r7, #12] + 8003a50: 22fa movs r2, #250 ; 0xfa + 8003a52: 0092 lsls r2, r2, #2 + 8003a54: 4694 mov ip, r2 + 8003a56: 4463 add r3, ip + 8003a58: 60fb str r3, [r7, #12] + 8003a5a: 4b8b ldr r3, [pc, #556] ; (8003c88 ) + 8003a5c: 613b str r3, [r7, #16] if(key3.code<0){countdown_set-=1000;countdown=10000;} - 80039ca: 4b48 ldr r3, [pc, #288] ; (8003aec ) - 80039cc: 681b ldr r3, [r3, #0] - 80039ce: 2b00 cmp r3, #0 - 80039d0: da06 bge.n 80039e0 - 80039d2: 68fb ldr r3, [r7, #12] - 80039d4: 4a4c ldr r2, [pc, #304] ; (8003b08 ) - 80039d6: 4694 mov ip, r2 - 80039d8: 4463 add r3, ip - 80039da: 60fb str r3, [r7, #12] - 80039dc: 4b48 ldr r3, [pc, #288] ; (8003b00 ) - 80039de: 613b str r3, [r7, #16] + 8003a5e: 4b8b ldr r3, [pc, #556] ; (8003c8c ) + 8003a60: 681b ldr r3, [r3, #0] + 8003a62: 2b00 cmp r3, #0 + 8003a64: da06 bge.n 8003a74 + 8003a66: 68fb ldr r3, [r7, #12] + 8003a68: 4a89 ldr r2, [pc, #548] ; (8003c90 ) + 8003a6a: 4694 mov ip, r2 + 8003a6c: 4463 add r3, ip + 8003a6e: 60fb str r3, [r7, #12] + 8003a70: 4b85 ldr r3, [pc, #532] ; (8003c88 ) + 8003a72: 613b str r3, [r7, #16] } if(key2.code>0){countdown_set+=100;countdown=10000;} - 80039e0: 4b48 ldr r3, [pc, #288] ; (8003b04 ) - 80039e2: 681b ldr r3, [r3, #0] - 80039e4: 2b00 cmp r3, #0 - 80039e6: dd04 ble.n 80039f2 - 80039e8: 68fb ldr r3, [r7, #12] - 80039ea: 3364 adds r3, #100 ; 0x64 - 80039ec: 60fb str r3, [r7, #12] - 80039ee: 4b44 ldr r3, [pc, #272] ; (8003b00 ) - 80039f0: 613b str r3, [r7, #16] + 8003a74: 4b83 ldr r3, [pc, #524] ; (8003c84 ) + 8003a76: 681b ldr r3, [r3, #0] + 8003a78: 2b00 cmp r3, #0 + 8003a7a: dd04 ble.n 8003a86 + 8003a7c: 68fb ldr r3, [r7, #12] + 8003a7e: 3364 adds r3, #100 ; 0x64 + 8003a80: 60fb str r3, [r7, #12] + 8003a82: 4b81 ldr r3, [pc, #516] ; (8003c88 ) + 8003a84: 613b str r3, [r7, #16] if(key3.code>0){countdown_set-=100;countdown=10000;} - 80039f2: 4b3e ldr r3, [pc, #248] ; (8003aec ) - 80039f4: 681b ldr r3, [r3, #0] - 80039f6: 2b00 cmp r3, #0 - 80039f8: dd04 ble.n 8003a04 - 80039fa: 68fb ldr r3, [r7, #12] - 80039fc: 3b64 subs r3, #100 ; 0x64 - 80039fe: 60fb str r3, [r7, #12] - 8003a00: 4b3f ldr r3, [pc, #252] ; (8003b00 ) - 8003a02: 613b str r3, [r7, #16] + 8003a86: 4b81 ldr r3, [pc, #516] ; (8003c8c ) + 8003a88: 681b ldr r3, [r3, #0] + 8003a8a: 2b00 cmp r3, #0 + 8003a8c: dd04 ble.n 8003a98 + 8003a8e: 68fb ldr r3, [r7, #12] + 8003a90: 3b64 subs r3, #100 ; 0x64 + 8003a92: 60fb str r3, [r7, #12] + 8003a94: 4b7c ldr r3, [pc, #496] ; (8003c88 ) + 8003a96: 613b str r3, [r7, #16] if(countdown_set<100){countdown_set=100;} - 8003a04: 68fb ldr r3, [r7, #12] - 8003a06: 2b63 cmp r3, #99 ; 0x63 - 8003a08: dc01 bgt.n 8003a0e - 8003a0a: 2364 movs r3, #100 ; 0x64 - 8003a0c: 60fb str r3, [r7, #12] + 8003a98: 68fb ldr r3, [r7, #12] + 8003a9a: 2b63 cmp r3, #99 ; 0x63 + 8003a9c: dc01 bgt.n 8003aa2 + 8003a9e: 2364 movs r3, #100 ; 0x64 + 8003aa0: 60fb str r3, [r7, #12] if(countdown_set>60000){countdown_set=60000;} - 8003a0e: 68fb ldr r3, [r7, #12] - 8003a10: 4a3e ldr r2, [pc, #248] ; (8003b0c ) - 8003a12: 4293 cmp r3, r2 - 8003a14: dd01 ble.n 8003a1a - 8003a16: 4b3d ldr r3, [pc, #244] ; (8003b0c ) - 8003a18: 60fb str r3, [r7, #12] + 8003aa2: 68fb ldr r3, [r7, #12] + 8003aa4: 4a7b ldr r2, [pc, #492] ; (8003c94 ) + 8003aa6: 4293 cmp r3, r2 + 8003aa8: dd01 ble.n 8003aae + 8003aaa: 4b7a ldr r3, [pc, #488] ; (8003c94 ) + 8003aac: 60fb str r3, [r7, #12] if(key4.code!=0){mode=1;} - 8003a1a: 4b36 ldr r3, [pc, #216] ; (8003af4 ) - 8003a1c: 681b ldr r3, [r3, #0] - 8003a1e: 2b00 cmp r3, #0 - 8003a20: d003 beq.n 8003a2a - 8003a22: 2317 movs r3, #23 - 8003a24: 18fb adds r3, r7, r3 - 8003a26: 2201 movs r2, #1 - 8003a28: 701a strb r2, [r3, #0] + 8003aae: 4b7a ldr r3, [pc, #488] ; (8003c98 ) + 8003ab0: 681b ldr r3, [r3, #0] + 8003ab2: 2b00 cmp r3, #0 + 8003ab4: d003 beq.n 8003abe + 8003ab6: 2317 movs r3, #23 + 8003ab8: 18fb adds r3, r7, r3 + 8003aba: 2201 movs r2, #1 + 8003abc: 701a strb r2, [r3, #0] dis_buff.d_num[3]=(countdown_set/100)%10; - 8003a2a: 68fb ldr r3, [r7, #12] - 8003a2c: 2164 movs r1, #100 ; 0x64 - 8003a2e: 0018 movs r0, r3 - 8003a30: f7fc fbf4 bl 800021c <__divsi3> - 8003a34: 0003 movs r3, r0 - 8003a36: 210a movs r1, #10 - 8003a38: 0018 movs r0, r3 - 8003a3a: f7fc fcd5 bl 80003e8 <__aeabi_idivmod> - 8003a3e: 000b movs r3, r1 - 8003a40: b2da uxtb r2, r3 - 8003a42: 4b29 ldr r3, [pc, #164] ; (8003ae8 ) - 8003a44: 70da strb r2, [r3, #3] + 8003abe: 68fb ldr r3, [r7, #12] + 8003ac0: 2164 movs r1, #100 ; 0x64 + 8003ac2: 0018 movs r0, r3 + 8003ac4: f7fc fbaa bl 800021c <__divsi3> + 8003ac8: 0003 movs r3, r0 + 8003aca: 210a movs r1, #10 + 8003acc: 0018 movs r0, r3 + 8003ace: f7fc fc8b bl 80003e8 <__aeabi_idivmod> + 8003ad2: 000b movs r3, r1 + 8003ad4: b2da uxtb r2, r3 + 8003ad6: 4b6a ldr r3, [pc, #424] ; (8003c80 ) + 8003ad8: 70da strb r2, [r3, #3] dis_buff.d_num[2]=(countdown_set/1000)%10; - 8003a46: 68fb ldr r3, [r7, #12] - 8003a48: 22fa movs r2, #250 ; 0xfa - 8003a4a: 0091 lsls r1, r2, #2 - 8003a4c: 0018 movs r0, r3 - 8003a4e: f7fc fbe5 bl 800021c <__divsi3> - 8003a52: 0003 movs r3, r0 - 8003a54: 210a movs r1, #10 - 8003a56: 0018 movs r0, r3 - 8003a58: f7fc fcc6 bl 80003e8 <__aeabi_idivmod> - 8003a5c: 000b movs r3, r1 - 8003a5e: b2da uxtb r2, r3 - 8003a60: 4b21 ldr r3, [pc, #132] ; (8003ae8 ) - 8003a62: 709a strb r2, [r3, #2] + 8003ada: 68fb ldr r3, [r7, #12] + 8003adc: 22fa movs r2, #250 ; 0xfa + 8003ade: 0091 lsls r1, r2, #2 + 8003ae0: 0018 movs r0, r3 + 8003ae2: f7fc fb9b bl 800021c <__divsi3> + 8003ae6: 0003 movs r3, r0 + 8003ae8: 210a movs r1, #10 + 8003aea: 0018 movs r0, r3 + 8003aec: f7fc fc7c bl 80003e8 <__aeabi_idivmod> + 8003af0: 000b movs r3, r1 + 8003af2: b2da uxtb r2, r3 + 8003af4: 4b62 ldr r3, [pc, #392] ; (8003c80 ) + 8003af6: 709a strb r2, [r3, #2] dis_buff.d_num[1]=((countdown_set/10000)%10); - 8003a64: 68fb ldr r3, [r7, #12] - 8003a66: 4926 ldr r1, [pc, #152] ; (8003b00 ) - 8003a68: 0018 movs r0, r3 - 8003a6a: f7fc fbd7 bl 800021c <__divsi3> - 8003a6e: 0003 movs r3, r0 - 8003a70: 210a movs r1, #10 - 8003a72: 0018 movs r0, r3 - 8003a74: f7fc fcb8 bl 80003e8 <__aeabi_idivmod> - 8003a78: 000b movs r3, r1 - 8003a7a: b2da uxtb r2, r3 - 8003a7c: 4b1a ldr r3, [pc, #104] ; (8003ae8 ) - 8003a7e: 705a strb r2, [r3, #1] + 8003af8: 68fb ldr r3, [r7, #12] + 8003afa: 4963 ldr r1, [pc, #396] ; (8003c88 ) + 8003afc: 0018 movs r0, r3 + 8003afe: f7fc fb8d bl 800021c <__divsi3> + 8003b02: 0003 movs r3, r0 + 8003b04: 210a movs r1, #10 + 8003b06: 0018 movs r0, r3 + 8003b08: f7fc fc6e bl 80003e8 <__aeabi_idivmod> + 8003b0c: 000b movs r3, r1 + 8003b0e: b2da uxtb r2, r3 + 8003b10: 4b5b ldr r3, [pc, #364] ; (8003c80 ) + 8003b12: 705a strb r2, [r3, #1] dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1]; - 8003a80: 4b19 ldr r3, [pc, #100] ; (8003ae8 ) - 8003a82: 785b ldrb r3, [r3, #1] - 8003a84: 2b00 cmp r3, #0 - 8003a86: d002 beq.n 8003a8e - 8003a88: 4b17 ldr r3, [pc, #92] ; (8003ae8 ) - 8003a8a: 785a ldrb r2, [r3, #1] - 8003a8c: e000 b.n 8003a90 - 8003a8e: 2210 movs r2, #16 - 8003a90: 4b15 ldr r3, [pc, #84] ; (8003ae8 ) - 8003a92: 705a strb r2, [r3, #1] + 8003b14: 4b5a ldr r3, [pc, #360] ; (8003c80 ) + 8003b16: 785b ldrb r3, [r3, #1] + 8003b18: 2b00 cmp r3, #0 + 8003b1a: d002 beq.n 8003b22 + 8003b1c: 4b58 ldr r3, [pc, #352] ; (8003c80 ) + 8003b1e: 785a ldrb r2, [r3, #1] + 8003b20: e000 b.n 8003b24 + 8003b22: 2210 movs r2, #16 + 8003b24: 4b56 ldr r3, [pc, #344] ; (8003c80 ) + 8003b26: 705a strb r2, [r3, #1] break; - 8003a94: e006 b.n 8003aa4 + 8003b28: e006 b.n 8003b38 break; - 8003a96: 46c0 nop ; (mov r8, r8) - 8003a98: e004 b.n 8003aa4 + 8003b2a: 46c0 nop ; (mov r8, r8) + 8003b2c: e004 b.n 8003b38 break; - 8003a9a: 46c0 nop ; (mov r8, r8) - 8003a9c: e002 b.n 8003aa4 + 8003b2e: 46c0 nop ; (mov r8, r8) + 8003b30: e002 b.n 8003b38 break; - 8003a9e: 46c0 nop ; (mov r8, r8) - 8003aa0: e000 b.n 8003aa4 + 8003b32: 46c0 nop ; (mov r8, r8) + 8003b34: e000 b.n 8003b38 break; - 8003aa2: 46c0 nop ; (mov r8, r8) + 8003b36: 46c0 nop ; (mov r8, r8) if(r480.add[0]==config.key_code[0]&&r480.add[1]==config.key_code[1]) - 8003aa4: 4b1a ldr r3, [pc, #104] ; (8003b10 ) - 8003aa6: 781a ldrb r2, [r3, #0] - 8003aa8: 4b1a ldr r3, [pc, #104] ; (8003b14 ) - 8003aaa: 781b ldrb r3, [r3, #0] - 8003aac: 429a cmp r2, r3 - 8003aae: d13b bne.n 8003b28 - 8003ab0: 4b17 ldr r3, [pc, #92] ; (8003b10 ) - 8003ab2: 785a ldrb r2, [r3, #1] - 8003ab4: 4b17 ldr r3, [pc, #92] ; (8003b14 ) - 8003ab6: 785b ldrb r3, [r3, #1] - 8003ab8: 429a cmp r2, r3 - 8003aba: d135 bne.n 8003b28 + 8003b38: 4b58 ldr r3, [pc, #352] ; (8003c9c ) + 8003b3a: 781a ldrb r2, [r3, #0] + 8003b3c: 4b58 ldr r3, [pc, #352] ; (8003ca0 ) + 8003b3e: 781b ldrb r3, [r3, #0] + 8003b40: 429a cmp r2, r3 + 8003b42: d122 bne.n 8003b8a + 8003b44: 4b55 ldr r3, [pc, #340] ; (8003c9c ) + 8003b46: 785a ldrb r2, [r3, #1] + 8003b48: 4b55 ldr r3, [pc, #340] ; (8003ca0 ) + 8003b4a: 785b ldrb r3, [r3, #1] + 8003b4c: 429a cmp r2, r3 + 8003b4e: d11c bne.n 8003b8a { switch(r480.key) - 8003abc: 4b14 ldr r3, [pc, #80] ; (8003b10 ) - 8003abe: 789b ldrb r3, [r3, #2] - 8003ac0: 2bde cmp r3, #222 ; 0xde - 8003ac2: d02d beq.n 8003b20 - 8003ac4: dc31 bgt.n 8003b2a - 8003ac6: 2bdd cmp r3, #221 ; 0xdd - 8003ac8: d026 beq.n 8003b18 - 8003aca: dc2e bgt.n 8003b2a - 8003acc: 2bd7 cmp r3, #215 ; 0xd7 - 8003ace: d002 beq.n 8003ad6 - 8003ad0: 2bdb cmp r3, #219 ; 0xdb - 8003ad2: d004 beq.n 8003ade - 8003ad4: e029 b.n 8003b2a + 8003b50: 4b52 ldr r3, [pc, #328] ; (8003c9c ) + 8003b52: 789b ldrb r3, [r3, #2] + 8003b54: 2bde cmp r3, #222 ; 0xde + 8003b56: d014 beq.n 8003b82 + 8003b58: dc18 bgt.n 8003b8c + 8003b5a: 2bdd cmp r3, #221 ; 0xdd + 8003b5c: d00d beq.n 8003b7a + 8003b5e: dc15 bgt.n 8003b8c + 8003b60: 2bd7 cmp r3, #215 ; 0xd7 + 8003b62: d002 beq.n 8003b6a + 8003b64: 2bdb cmp r3, #219 ; 0xdb + 8003b66: d004 beq.n 8003b72 + 8003b68: e010 b.n 8003b8c { case 0xd7: dis_buff.button_flag[0]=1; - 8003ad6: 4b04 ldr r3, [pc, #16] ; (8003ae8 ) - 8003ad8: 2201 movs r2, #1 - 8003ada: 711a strb r2, [r3, #4] + 8003b6a: 4b45 ldr r3, [pc, #276] ; (8003c80 ) + 8003b6c: 2201 movs r2, #1 + 8003b6e: 711a strb r2, [r3, #4] break; - 8003adc: e025 b.n 8003b2a + 8003b70: e00c b.n 8003b8c case 0xdb: dis_buff.button_flag[1]=1; - 8003ade: 4b02 ldr r3, [pc, #8] ; (8003ae8 ) - 8003ae0: 2201 movs r2, #1 - 8003ae2: 715a strb r2, [r3, #5] + 8003b72: 4b43 ldr r3, [pc, #268] ; (8003c80 ) + 8003b74: 2201 movs r2, #1 + 8003b76: 715a strb r2, [r3, #5] break; - 8003ae4: e021 b.n 8003b2a - 8003ae6: 46c0 nop ; (mov r8, r8) - 8003ae8: 20000038 .word 0x20000038 - 8003aec: 20000100 .word 0x20000100 - 8003af0: 20000134 .word 0x20000134 - 8003af4: 200000d8 .word 0x200000d8 - 8003af8: 48001400 .word 0x48001400 - 8003afc: 20000110 .word 0x20000110 - 8003b00: 00002710 .word 0x00002710 - 8003b04: 20000124 .word 0x20000124 - 8003b08: fffffc18 .word 0xfffffc18 - 8003b0c: 0000ea60 .word 0x0000ea60 - 8003b10: 200000e8 .word 0x200000e8 - 8003b14: 20000144 .word 0x20000144 + 8003b78: e008 b.n 8003b8c case 0xdd: dis_buff.button_flag[2]=1; - 8003b18: 4b40 ldr r3, [pc, #256] ; (8003c1c ) - 8003b1a: 2201 movs r2, #1 - 8003b1c: 719a strb r2, [r3, #6] + 8003b7a: 4b41 ldr r3, [pc, #260] ; (8003c80 ) + 8003b7c: 2201 movs r2, #1 + 8003b7e: 719a strb r2, [r3, #6] break; - 8003b1e: e004 b.n 8003b2a + 8003b80: e004 b.n 8003b8c case 0xde: dis_buff.button_flag[3]=1; - 8003b20: 4b3e ldr r3, [pc, #248] ; (8003c1c ) - 8003b22: 2201 movs r2, #1 - 8003b24: 71da strb r2, [r3, #7] + 8003b82: 4b3f ldr r3, [pc, #252] ; (8003c80 ) + 8003b84: 2201 movs r2, #1 + 8003b86: 71da strb r2, [r3, #7] break; - 8003b26: e000 b.n 8003b2a + 8003b88: e000 b.n 8003b8c } } - 8003b28: 46c0 nop ; (mov r8, r8) + 8003b8a: 46c0 nop ; (mov r8, r8) r480.key=0; - 8003b2a: 4b3d ldr r3, [pc, #244] ; (8003c20 ) - 8003b2c: 2200 movs r2, #0 - 8003b2e: 709a strb r2, [r3, #2] + 8003b8c: 4b43 ldr r3, [pc, #268] ; (8003c9c ) + 8003b8e: 2200 movs r2, #0 + 8003b90: 709a strb r2, [r3, #2] r480.add[0]=0; - 8003b30: 4b3b ldr r3, [pc, #236] ; (8003c20 ) - 8003b32: 2200 movs r2, #0 - 8003b34: 701a strb r2, [r3, #0] + 8003b92: 4b42 ldr r3, [pc, #264] ; (8003c9c ) + 8003b94: 2200 movs r2, #0 + 8003b96: 701a strb r2, [r3, #0] r480.add[1]=0; - 8003b36: 4b3a ldr r3, [pc, #232] ; (8003c20 ) - 8003b38: 2200 movs r2, #0 - 8003b3a: 705a strb r2, [r3, #1] + 8003b98: 4b40 ldr r3, [pc, #256] ; (8003c9c ) + 8003b9a: 2200 movs r2, #0 + 8003b9c: 705a strb r2, [r3, #1] GEI_BUTTON_CODE(&key1,dis_buff.button_flag[0]); - 8003b3c: 4b37 ldr r3, [pc, #220] ; (8003c1c ) - 8003b3e: 791a ldrb r2, [r3, #4] - 8003b40: 4b38 ldr r3, [pc, #224] ; (8003c24 ) - 8003b42: 0011 movs r1, r2 - 8003b44: 0018 movs r0, r3 - 8003b46: f7fe fd93 bl 8002670 + 8003b9e: 4b38 ldr r3, [pc, #224] ; (8003c80 ) + 8003ba0: 791a ldrb r2, [r3, #4] + 8003ba2: 4b40 ldr r3, [pc, #256] ; (8003ca4 ) + 8003ba4: 0011 movs r1, r2 + 8003ba6: 0018 movs r0, r3 + 8003ba8: f7fe fd62 bl 8002670 GEI_BUTTON_CODE(&key2,dis_buff.button_flag[1]); - 8003b4a: 4b34 ldr r3, [pc, #208] ; (8003c1c ) - 8003b4c: 795a ldrb r2, [r3, #5] - 8003b4e: 4b36 ldr r3, [pc, #216] ; (8003c28 ) - 8003b50: 0011 movs r1, r2 - 8003b52: 0018 movs r0, r3 - 8003b54: f7fe fd8c bl 8002670 + 8003bac: 4b34 ldr r3, [pc, #208] ; (8003c80 ) + 8003bae: 795a ldrb r2, [r3, #5] + 8003bb0: 4b34 ldr r3, [pc, #208] ; (8003c84 ) + 8003bb2: 0011 movs r1, r2 + 8003bb4: 0018 movs r0, r3 + 8003bb6: f7fe fd5b bl 8002670 GEI_BUTTON_CODE(&key3,dis_buff.button_flag[2]); - 8003b58: 4b30 ldr r3, [pc, #192] ; (8003c1c ) - 8003b5a: 799a ldrb r2, [r3, #6] - 8003b5c: 4b33 ldr r3, [pc, #204] ; (8003c2c ) - 8003b5e: 0011 movs r1, r2 - 8003b60: 0018 movs r0, r3 - 8003b62: f7fe fd85 bl 8002670 + 8003bba: 4b31 ldr r3, [pc, #196] ; (8003c80 ) + 8003bbc: 799a ldrb r2, [r3, #6] + 8003bbe: 4b33 ldr r3, [pc, #204] ; (8003c8c ) + 8003bc0: 0011 movs r1, r2 + 8003bc2: 0018 movs r0, r3 + 8003bc4: f7fe fd54 bl 8002670 GEI_BUTTON_CODE(&key4,dis_buff.button_flag[3]); - 8003b66: 4b2d ldr r3, [pc, #180] ; (8003c1c ) - 8003b68: 79da ldrb r2, [r3, #7] - 8003b6a: 4b31 ldr r3, [pc, #196] ; (8003c30 ) - 8003b6c: 0011 movs r1, r2 - 8003b6e: 0018 movs r0, r3 - 8003b70: f7fe fd7e bl 8002670 + 8003bc8: 4b2d ldr r3, [pc, #180] ; (8003c80 ) + 8003bca: 79da ldrb r2, [r3, #7] + 8003bcc: 4b32 ldr r3, [pc, #200] ; (8003c98 ) + 8003bce: 0011 movs r1, r2 + 8003bd0: 0018 movs r0, r3 + 8003bd2: f7fe fd4d bl 8002670 dis_buff.button_flag[0]=0; - 8003b74: 4b29 ldr r3, [pc, #164] ; (8003c1c ) - 8003b76: 2200 movs r2, #0 - 8003b78: 711a strb r2, [r3, #4] + 8003bd6: 4b2a ldr r3, [pc, #168] ; (8003c80 ) + 8003bd8: 2200 movs r2, #0 + 8003bda: 711a strb r2, [r3, #4] dis_buff.button_flag[1]=0; - 8003b7a: 4b28 ldr r3, [pc, #160] ; (8003c1c ) - 8003b7c: 2200 movs r2, #0 - 8003b7e: 715a strb r2, [r3, #5] + 8003bdc: 4b28 ldr r3, [pc, #160] ; (8003c80 ) + 8003bde: 2200 movs r2, #0 + 8003be0: 715a strb r2, [r3, #5] dis_buff.button_flag[2]=0; - 8003b80: 4b26 ldr r3, [pc, #152] ; (8003c1c ) - 8003b82: 2200 movs r2, #0 - 8003b84: 719a strb r2, [r3, #6] + 8003be2: 4b27 ldr r3, [pc, #156] ; (8003c80 ) + 8003be4: 2200 movs r2, #0 + 8003be6: 719a strb r2, [r3, #6] dis_buff.button_flag[3]=0; - 8003b86: 4b25 ldr r3, [pc, #148] ; (8003c1c ) - 8003b88: 2200 movs r2, #0 - 8003b8a: 71da strb r2, [r3, #7] + 8003be8: 4b25 ldr r3, [pc, #148] ; (8003c80 ) + 8003bea: 2200 movs r2, #0 + 8003bec: 71da strb r2, [r3, #7] if(moto_in1!=READ_MOT_IN1) - 8003b8c: 4b29 ldr r3, [pc, #164] ; (8003c34 ) - 8003b8e: 2101 movs r1, #1 - 8003b90: 0018 movs r0, r3 - 8003b92: f7fd fe65 bl 8001860 - 8003b96: 0003 movs r3, r0 - 8003b98: 001a movs r2, r3 - 8003b9a: 200b movs r0, #11 - 8003b9c: 183b adds r3, r7, r0 - 8003b9e: 781b ldrb r3, [r3, #0] - 8003ba0: 4293 cmp r3, r2 - 8003ba2: d014 beq.n 8003bce + 8003bee: 4b2e ldr r3, [pc, #184] ; (8003ca8 ) + 8003bf0: 2101 movs r1, #1 + 8003bf2: 0018 movs r0, r3 + 8003bf4: f7fd fe34 bl 8001860 + 8003bf8: 0003 movs r3, r0 + 8003bfa: 001a movs r2, r3 + 8003bfc: 200b movs r0, #11 + 8003bfe: 183b adds r3, r7, r0 + 8003c00: 781b ldrb r3, [r3, #0] + 8003c02: 4293 cmp r3, r2 + 8003c04: d014 beq.n 8003c30 { moto_in1_pp++; - 8003ba4: 2108 movs r1, #8 - 8003ba6: 187b adds r3, r7, r1 - 8003ba8: 881a ldrh r2, [r3, #0] - 8003baa: 187b adds r3, r7, r1 - 8003bac: 3201 adds r2, #1 - 8003bae: 801a strh r2, [r3, #0] + 8003c06: 2108 movs r1, #8 + 8003c08: 187b adds r3, r7, r1 + 8003c0a: 881a ldrh r2, [r3, #0] + 8003c0c: 187b adds r3, r7, r1 + 8003c0e: 3201 adds r2, #1 + 8003c10: 801a strh r2, [r3, #0] if(moto_in1_pp==100) - 8003bb0: 187b adds r3, r7, r1 - 8003bb2: 881b ldrh r3, [r3, #0] - 8003bb4: 2b64 cmp r3, #100 ; 0x64 - 8003bb6: d10a bne.n 8003bce + 8003c12: 187b adds r3, r7, r1 + 8003c14: 881b ldrh r3, [r3, #0] + 8003c16: 2b64 cmp r3, #100 ; 0x64 + 8003c18: d10a bne.n 8003c30 { moto_in1_pp=0; - 8003bb8: 187b adds r3, r7, r1 - 8003bba: 2200 movs r2, #0 - 8003bbc: 801a strh r2, [r3, #0] + 8003c1a: 187b adds r3, r7, r1 + 8003c1c: 2200 movs r2, #0 + 8003c1e: 801a strh r2, [r3, #0] moto_in1=READ_MOT_IN1; - 8003bbe: 183c adds r4, r7, r0 - 8003bc0: 4b1c ldr r3, [pc, #112] ; (8003c34 ) - 8003bc2: 2101 movs r1, #1 - 8003bc4: 0018 movs r0, r3 - 8003bc6: f7fd fe4b bl 8001860 - 8003bca: 0003 movs r3, r0 - 8003bcc: 7023 strb r3, [r4, #0] + 8003c20: 183c adds r4, r7, r0 + 8003c22: 4b21 ldr r3, [pc, #132] ; (8003ca8 ) + 8003c24: 2101 movs r1, #1 + 8003c26: 0018 movs r0, r3 + 8003c28: f7fd fe1a bl 8001860 + 8003c2c: 0003 movs r3, r0 + 8003c2e: 7023 strb r3, [r4, #0] } } if(moto_in2!=READ_MOT_IN2) - 8003bce: 4b19 ldr r3, [pc, #100] ; (8003c34 ) - 8003bd0: 2102 movs r1, #2 - 8003bd2: 0018 movs r0, r3 - 8003bd4: f7fd fe44 bl 8001860 - 8003bd8: 0003 movs r3, r0 - 8003bda: 001a movs r2, r3 - 8003bdc: 210a movs r1, #10 - 8003bde: 187b adds r3, r7, r1 - 8003be0: 781b ldrb r3, [r3, #0] - 8003be2: 4293 cmp r3, r2 - 8003be4: d013 beq.n 8003c0e + 8003c30: 4b1d ldr r3, [pc, #116] ; (8003ca8 ) + 8003c32: 2102 movs r1, #2 + 8003c34: 0018 movs r0, r3 + 8003c36: f7fd fe13 bl 8001860 + 8003c3a: 0003 movs r3, r0 + 8003c3c: 001a movs r2, r3 + 8003c3e: 210a movs r1, #10 + 8003c40: 187b adds r3, r7, r1 + 8003c42: 781b ldrb r3, [r3, #0] + 8003c44: 4293 cmp r3, r2 + 8003c46: d013 beq.n 8003c70 { moto_in2_pp++; - 8003be6: 1dbb adds r3, r7, #6 - 8003be8: 881a ldrh r2, [r3, #0] - 8003bea: 1dbb adds r3, r7, #6 - 8003bec: 3201 adds r2, #1 - 8003bee: 801a strh r2, [r3, #0] + 8003c48: 1dbb adds r3, r7, #6 + 8003c4a: 881a ldrh r2, [r3, #0] + 8003c4c: 1dbb adds r3, r7, #6 + 8003c4e: 3201 adds r2, #1 + 8003c50: 801a strh r2, [r3, #0] if(moto_in2_pp==100) - 8003bf0: 1dbb adds r3, r7, #6 - 8003bf2: 881b ldrh r3, [r3, #0] - 8003bf4: 2b64 cmp r3, #100 ; 0x64 - 8003bf6: d10a bne.n 8003c0e + 8003c52: 1dbb adds r3, r7, #6 + 8003c54: 881b ldrh r3, [r3, #0] + 8003c56: 2b64 cmp r3, #100 ; 0x64 + 8003c58: d10a bne.n 8003c70 { moto_in2_pp=0; - 8003bf8: 1dbb adds r3, r7, #6 - 8003bfa: 2200 movs r2, #0 - 8003bfc: 801a strh r2, [r3, #0] + 8003c5a: 1dbb adds r3, r7, #6 + 8003c5c: 2200 movs r2, #0 + 8003c5e: 801a strh r2, [r3, #0] moto_in2=READ_MOT_IN2; - 8003bfe: 187c adds r4, r7, r1 - 8003c00: 4b0c ldr r3, [pc, #48] ; (8003c34 ) - 8003c02: 2102 movs r1, #2 - 8003c04: 0018 movs r0, r3 - 8003c06: f7fd fe2b bl 8001860 - 8003c0a: 0003 movs r3, r0 - 8003c0c: 7023 strb r3, [r4, #0] + 8003c60: 187c adds r4, r7, r1 + 8003c62: 4b11 ldr r3, [pc, #68] ; (8003ca8 ) + 8003c64: 2102 movs r1, #2 + 8003c66: 0018 movs r0, r3 + 8003c68: f7fd fdfa bl 8001860 + 8003c6c: 0003 movs r3, r0 + 8003c6e: 7023 strb r3, [r4, #0] } } HT1621_Display_GetButton(); - 8003c0e: f7ff fb05 bl 800321c + 8003c70: f7ff fad4 bl 800321c hc2_sever(); - 8003c12: f7ff f9ef bl 8002ff4 + 8003c74: f7ff f9be bl 8002ff4 moto_server(); - 8003c16: f7ff fa31 bl 800307c + 8003c78: f7ff fa00 bl 800307c for(char a=0;a<2;a++) - 8003c1a: e430 b.n 800347e - 8003c1c: 20000038 .word 0x20000038 - 8003c20: 200000e8 .word 0x200000e8 - 8003c24: 200000f0 .word 0x200000f0 - 8003c28: 20000124 .word 0x20000124 - 8003c2c: 20000100 .word 0x20000100 - 8003c30: 200000d8 .word 0x200000d8 - 8003c34: 48001400 .word 0x48001400 + 8003c7c: f7ff fbff bl 800347e + 8003c80: 20000038 .word 0x20000038 + 8003c84: 20000124 .word 0x20000124 + 8003c88: 00002710 .word 0x00002710 + 8003c8c: 20000100 .word 0x20000100 + 8003c90: fffffc18 .word 0xfffffc18 + 8003c94: 0000ea60 .word 0x0000ea60 + 8003c98: 200000d8 .word 0x200000d8 + 8003c9c: 200000e8 .word 0x200000e8 + 8003ca0: 20000144 .word 0x20000144 + 8003ca4: 200000f0 .word 0x200000f0 + 8003ca8: 48001400 .word 0x48001400 -08003c38 : +08003cac : int read_char_flag=0; char read_data_buffer[3]; char read_begin=0; void r480_init() { - 8003c38: b580 push {r7, lr} - 8003c3a: af00 add r7, sp, #0 + 8003cac: b580 push {r7, lr} + 8003cae: af00 add r7, sp, #0 HAL_TIM_Base_Start_IT(&htim14); - 8003c3c: 4b04 ldr r3, [pc, #16] ; (8003c50 ) - 8003c3e: 0018 movs r0, r3 - 8003c40: f7fe fb1e bl 8002280 + 8003cb0: 4b04 ldr r3, [pc, #16] ; (8003cc4 ) + 8003cb2: 0018 movs r0, r3 + 8003cb4: f7fe fae4 bl 8002280 r480.times=0; - 8003c44: 4b03 ldr r3, [pc, #12] ; (8003c54 ) - 8003c46: 2200 movs r2, #0 - 8003c48: 809a strh r2, [r3, #4] + 8003cb8: 4b03 ldr r3, [pc, #12] ; (8003cc8 ) + 8003cba: 2200 movs r2, #0 + 8003cbc: 809a strh r2, [r3, #4] } - 8003c4a: 46c0 nop ; (mov r8, r8) - 8003c4c: 46bd mov sp, r7 - 8003c4e: bd80 pop {r7, pc} - 8003c50: 2000004c .word 0x2000004c - 8003c54: 200000e8 .word 0x200000e8 + 8003cbe: 46c0 nop ; (mov r8, r8) + 8003cc0: 46bd mov sp, r7 + 8003cc2: bd80 pop {r7, pc} + 8003cc4: 2000004c .word 0x2000004c + 8003cc8: 200000e8 .word 0x200000e8 -08003c58 : +08003ccc : void read_433_exit() { - 8003c58: b590 push {r4, r7, lr} - 8003c5a: b083 sub sp, #12 - 8003c5c: af00 add r7, sp, #0 + 8003ccc: b590 push {r4, r7, lr} + 8003cce: b083 sub sp, #12 + 8003cd0: af00 add r7, sp, #0 char a=read_infrared; - 8003c5e: 1dfc adds r4, r7, #7 - 8003c60: 2390 movs r3, #144 ; 0x90 - 8003c62: 05db lsls r3, r3, #23 - 8003c64: 2108 movs r1, #8 - 8003c66: 0018 movs r0, r3 - 8003c68: f7fd fdfa bl 8001860 - 8003c6c: 0003 movs r3, r0 - 8003c6e: 7023 strb r3, [r4, #0] + 8003cd2: 1dfc adds r4, r7, #7 + 8003cd4: 2390 movs r3, #144 ; 0x90 + 8003cd6: 05db lsls r3, r3, #23 + 8003cd8: 2108 movs r1, #8 + 8003cda: 0018 movs r0, r3 + 8003cdc: f7fd fdc0 bl 8001860 + 8003ce0: 0003 movs r3, r0 + 8003ce2: 7023 strb r3, [r4, #0] int b; if(read_begin==0) - 8003c70: 4b41 ldr r3, [pc, #260] ; (8003d78 ) - 8003c72: 781b ldrb r3, [r3, #0] - 8003c74: 2b00 cmp r3, #0 - 8003c76: d123 bne.n 8003cc0 + 8003ce4: 4b41 ldr r3, [pc, #260] ; (8003dec ) + 8003ce6: 781b ldrb r3, [r3, #0] + 8003ce8: 2b00 cmp r3, #0 + 8003cea: d123 bne.n 8003d34 { if(a==0) - 8003c78: 1dfb adds r3, r7, #7 - 8003c7a: 781b ldrb r3, [r3, #0] - 8003c7c: 2b00 cmp r3, #0 - 8003c7e: d103 bne.n 8003c88 + 8003cec: 1dfb adds r3, r7, #7 + 8003cee: 781b ldrb r3, [r3, #0] + 8003cf0: 2b00 cmp r3, #0 + 8003cf2: d103 bne.n 8003cfc { timer_100us_tick=0; - 8003c80: 4b3e ldr r3, [pc, #248] ; (8003d7c ) - 8003c82: 2200 movs r2, #0 - 8003c84: 801a strh r2, [r3, #0] + 8003cf4: 4b3e ldr r3, [pc, #248] ; (8003df0 ) + 8003cf6: 2200 movs r2, #0 + 8003cf8: 801a strh r2, [r3, #0] return ; - 8003c86: e073 b.n 8003d70 + 8003cfa: e073 b.n 8003de4 }else { if(timer_100us_tick>70&&timer_100us_tick<100) - 8003c88: 4b3c ldr r3, [pc, #240] ; (8003d7c ) - 8003c8a: 881b ldrh r3, [r3, #0] - 8003c8c: 2b46 cmp r3, #70 ; 0x46 - 8003c8e: d800 bhi.n 8003c92 - 8003c90: e06e b.n 8003d70 - 8003c92: 4b3a ldr r3, [pc, #232] ; (8003d7c ) - 8003c94: 881b ldrh r3, [r3, #0] - 8003c96: 2b63 cmp r3, #99 ; 0x63 - 8003c98: d86a bhi.n 8003d70 + 8003cfc: 4b3c ldr r3, [pc, #240] ; (8003df0 ) + 8003cfe: 881b ldrh r3, [r3, #0] + 8003d00: 2b46 cmp r3, #70 ; 0x46 + 8003d02: d800 bhi.n 8003d06 + 8003d04: e06e b.n 8003de4 + 8003d06: 4b3a ldr r3, [pc, #232] ; (8003df0 ) + 8003d08: 881b ldrh r3, [r3, #0] + 8003d0a: 2b63 cmp r3, #99 ; 0x63 + 8003d0c: d86a bhi.n 8003de4 { read_begin=1; - 8003c9a: 4b37 ldr r3, [pc, #220] ; (8003d78 ) - 8003c9c: 2201 movs r2, #1 - 8003c9e: 701a strb r2, [r3, #0] + 8003d0e: 4b37 ldr r3, [pc, #220] ; (8003dec ) + 8003d10: 2201 movs r2, #1 + 8003d12: 701a strb r2, [r3, #0] r480.times++; - 8003ca0: 4b37 ldr r3, [pc, #220] ; (8003d80 ) - 8003ca2: 889b ldrh r3, [r3, #4] - 8003ca4: 3301 adds r3, #1 - 8003ca6: b29a uxth r2, r3 - 8003ca8: 4b35 ldr r3, [pc, #212] ; (8003d80 ) - 8003caa: 809a strh r2, [r3, #4] + 8003d14: 4b37 ldr r3, [pc, #220] ; (8003df4 ) + 8003d16: 889b ldrh r3, [r3, #4] + 8003d18: 3301 adds r3, #1 + 8003d1a: b29a uxth r2, r3 + 8003d1c: 4b35 ldr r3, [pc, #212] ; (8003df4 ) + 8003d1e: 809a strh r2, [r3, #4] read_bit_flag=0; - 8003cac: 4b35 ldr r3, [pc, #212] ; (8003d84 ) - 8003cae: 2200 movs r2, #0 - 8003cb0: 601a str r2, [r3, #0] + 8003d20: 4b35 ldr r3, [pc, #212] ; (8003df8 ) + 8003d22: 2200 movs r2, #0 + 8003d24: 601a str r2, [r3, #0] read_char_flag=0; - 8003cb2: 4b35 ldr r3, [pc, #212] ; (8003d88 ) - 8003cb4: 2200 movs r2, #0 - 8003cb6: 601a str r2, [r3, #0] + 8003d26: 4b35 ldr r3, [pc, #212] ; (8003dfc ) + 8003d28: 2200 movs r2, #0 + 8003d2a: 601a str r2, [r3, #0] timer_100us_tick=0; - 8003cb8: 4b30 ldr r3, [pc, #192] ; (8003d7c ) - 8003cba: 2200 movs r2, #0 - 8003cbc: 801a strh r2, [r3, #0] + 8003d2c: 4b30 ldr r3, [pc, #192] ; (8003df0 ) + 8003d2e: 2200 movs r2, #0 + 8003d30: 801a strh r2, [r3, #0] return ; - 8003cbe: e057 b.n 8003d70 + 8003d32: e057 b.n 8003de4 } } }else { if(timer_100us_tick<5) - 8003cc0: 4b2e ldr r3, [pc, #184] ; (8003d7c ) - 8003cc2: 881b ldrh r3, [r3, #0] - 8003cc4: 2b04 cmp r3, #4 - 8003cc6: d803 bhi.n 8003cd0 + 8003d34: 4b2e ldr r3, [pc, #184] ; (8003df0 ) + 8003d36: 881b ldrh r3, [r3, #0] + 8003d38: 2b04 cmp r3, #4 + 8003d3a: d803 bhi.n 8003d44 { timer_100us_tick=0; - 8003cc8: 4b2c ldr r3, [pc, #176] ; (8003d7c ) - 8003cca: 2200 movs r2, #0 - 8003ccc: 801a strh r2, [r3, #0] + 8003d3c: 4b2c ldr r3, [pc, #176] ; (8003df0 ) + 8003d3e: 2200 movs r2, #0 + 8003d40: 801a strh r2, [r3, #0] return ; - 8003cce: e04f b.n 8003d70 + 8003d42: e04f b.n 8003de4 }else if(timer_100us_tick<12) - 8003cd0: 4b2a ldr r3, [pc, #168] ; (8003d7c ) - 8003cd2: 881b ldrh r3, [r3, #0] - 8003cd4: 2b0b cmp r3, #11 - 8003cd6: d844 bhi.n 8003d62 + 8003d44: 4b2a ldr r3, [pc, #168] ; (8003df0 ) + 8003d46: 881b ldrh r3, [r3, #0] + 8003d48: 2b0b cmp r3, #11 + 8003d4a: d844 bhi.n 8003dd6 { read_data_buffer[read_char_flag]<<=1; - 8003cd8: 4b2b ldr r3, [pc, #172] ; (8003d88 ) - 8003cda: 681b ldr r3, [r3, #0] - 8003cdc: 4a2b ldr r2, [pc, #172] ; (8003d8c ) - 8003cde: 5cd1 ldrb r1, [r2, r3] - 8003ce0: 4b29 ldr r3, [pc, #164] ; (8003d88 ) - 8003ce2: 681a ldr r2, [r3, #0] - 8003ce4: 1c0b adds r3, r1, #0 - 8003ce6: 18db adds r3, r3, r3 - 8003ce8: b2d9 uxtb r1, r3 - 8003cea: 4b28 ldr r3, [pc, #160] ; (8003d8c ) - 8003cec: 5499 strb r1, [r3, r2] + 8003d4c: 4b2b ldr r3, [pc, #172] ; (8003dfc ) + 8003d4e: 681b ldr r3, [r3, #0] + 8003d50: 4a2b ldr r2, [pc, #172] ; (8003e00 ) + 8003d52: 5cd1 ldrb r1, [r2, r3] + 8003d54: 4b29 ldr r3, [pc, #164] ; (8003dfc ) + 8003d56: 681a ldr r2, [r3, #0] + 8003d58: 1c0b adds r3, r1, #0 + 8003d5a: 18db adds r3, r3, r3 + 8003d5c: b2d9 uxtb r1, r3 + 8003d5e: 4b28 ldr r3, [pc, #160] ; (8003e00 ) + 8003d60: 5499 strb r1, [r3, r2] if(a==1) - 8003cee: 1dfb adds r3, r7, #7 - 8003cf0: 781b ldrb r3, [r3, #0] - 8003cf2: 2b01 cmp r3, #1 - 8003cf4: d10a bne.n 8003d0c + 8003d62: 1dfb adds r3, r7, #7 + 8003d64: 781b ldrb r3, [r3, #0] + 8003d66: 2b01 cmp r3, #1 + 8003d68: d10a bne.n 8003d80 { read_data_buffer[read_char_flag]|=0x01; - 8003cf6: 4b24 ldr r3, [pc, #144] ; (8003d88 ) - 8003cf8: 681b ldr r3, [r3, #0] - 8003cfa: 4a24 ldr r2, [pc, #144] ; (8003d8c ) - 8003cfc: 5cd2 ldrb r2, [r2, r3] - 8003cfe: 4b22 ldr r3, [pc, #136] ; (8003d88 ) - 8003d00: 681b ldr r3, [r3, #0] - 8003d02: 2101 movs r1, #1 - 8003d04: 430a orrs r2, r1 - 8003d06: b2d1 uxtb r1, r2 - 8003d08: 4a20 ldr r2, [pc, #128] ; (8003d8c ) - 8003d0a: 54d1 strb r1, [r2, r3] + 8003d6a: 4b24 ldr r3, [pc, #144] ; (8003dfc ) + 8003d6c: 681b ldr r3, [r3, #0] + 8003d6e: 4a24 ldr r2, [pc, #144] ; (8003e00 ) + 8003d70: 5cd2 ldrb r2, [r2, r3] + 8003d72: 4b22 ldr r3, [pc, #136] ; (8003dfc ) + 8003d74: 681b ldr r3, [r3, #0] + 8003d76: 2101 movs r1, #1 + 8003d78: 430a orrs r2, r1 + 8003d7a: b2d1 uxtb r1, r2 + 8003d7c: 4a20 ldr r2, [pc, #128] ; (8003e00 ) + 8003d7e: 54d1 strb r1, [r2, r3] } read_bit_flag++; - 8003d0c: 4b1d ldr r3, [pc, #116] ; (8003d84 ) - 8003d0e: 681b ldr r3, [r3, #0] - 8003d10: 1c5a adds r2, r3, #1 - 8003d12: 4b1c ldr r3, [pc, #112] ; (8003d84 ) - 8003d14: 601a str r2, [r3, #0] + 8003d80: 4b1d ldr r3, [pc, #116] ; (8003df8 ) + 8003d82: 681b ldr r3, [r3, #0] + 8003d84: 1c5a adds r2, r3, #1 + 8003d86: 4b1c ldr r3, [pc, #112] ; (8003df8 ) + 8003d88: 601a str r2, [r3, #0] if(read_bit_flag==8) - 8003d16: 4b1b ldr r3, [pc, #108] ; (8003d84 ) - 8003d18: 681b ldr r3, [r3, #0] - 8003d1a: 2b08 cmp r3, #8 - 8003d1c: d11d bne.n 8003d5a + 8003d8a: 4b1b ldr r3, [pc, #108] ; (8003df8 ) + 8003d8c: 681b ldr r3, [r3, #0] + 8003d8e: 2b08 cmp r3, #8 + 8003d90: d11d bne.n 8003dce { read_bit_flag=0; - 8003d1e: 4b19 ldr r3, [pc, #100] ; (8003d84 ) - 8003d20: 2200 movs r2, #0 - 8003d22: 601a str r2, [r3, #0] + 8003d92: 4b19 ldr r3, [pc, #100] ; (8003df8 ) + 8003d94: 2200 movs r2, #0 + 8003d96: 601a str r2, [r3, #0] read_char_flag++; - 8003d24: 4b18 ldr r3, [pc, #96] ; (8003d88 ) - 8003d26: 681b ldr r3, [r3, #0] - 8003d28: 1c5a adds r2, r3, #1 - 8003d2a: 4b17 ldr r3, [pc, #92] ; (8003d88 ) - 8003d2c: 601a str r2, [r3, #0] + 8003d98: 4b18 ldr r3, [pc, #96] ; (8003dfc ) + 8003d9a: 681b ldr r3, [r3, #0] + 8003d9c: 1c5a adds r2, r3, #1 + 8003d9e: 4b17 ldr r3, [pc, #92] ; (8003dfc ) + 8003da0: 601a str r2, [r3, #0] if(read_char_flag==3) - 8003d2e: 4b16 ldr r3, [pc, #88] ; (8003d88 ) - 8003d30: 681b ldr r3, [r3, #0] - 8003d32: 2b03 cmp r3, #3 - 8003d34: d111 bne.n 8003d5a + 8003da2: 4b16 ldr r3, [pc, #88] ; (8003dfc ) + 8003da4: 681b ldr r3, [r3, #0] + 8003da6: 2b03 cmp r3, #3 + 8003da8: d111 bne.n 8003dce { //got data read_char_flag=0; - 8003d36: 4b14 ldr r3, [pc, #80] ; (8003d88 ) - 8003d38: 2200 movs r2, #0 - 8003d3a: 601a str r2, [r3, #0] + 8003daa: 4b14 ldr r3, [pc, #80] ; (8003dfc ) + 8003dac: 2200 movs r2, #0 + 8003dae: 601a str r2, [r3, #0] timer_100us_tick=0; - 8003d3c: 4b0f ldr r3, [pc, #60] ; (8003d7c ) - 8003d3e: 2200 movs r2, #0 - 8003d40: 801a strh r2, [r3, #0] + 8003db0: 4b0f ldr r3, [pc, #60] ; (8003df0 ) + 8003db2: 2200 movs r2, #0 + 8003db4: 801a strh r2, [r3, #0] r480.add[0]=read_data_buffer[0]; - 8003d42: 4b12 ldr r3, [pc, #72] ; (8003d8c ) - 8003d44: 781a ldrb r2, [r3, #0] - 8003d46: 4b0e ldr r3, [pc, #56] ; (8003d80 ) - 8003d48: 701a strb r2, [r3, #0] + 8003db6: 4b12 ldr r3, [pc, #72] ; (8003e00 ) + 8003db8: 781a ldrb r2, [r3, #0] + 8003dba: 4b0e ldr r3, [pc, #56] ; (8003df4 ) + 8003dbc: 701a strb r2, [r3, #0] r480.add[1]=read_data_buffer[1]; - 8003d4a: 4b10 ldr r3, [pc, #64] ; (8003d8c ) - 8003d4c: 785a ldrb r2, [r3, #1] - 8003d4e: 4b0c ldr r3, [pc, #48] ; (8003d80 ) - 8003d50: 705a strb r2, [r3, #1] + 8003dbe: 4b10 ldr r3, [pc, #64] ; (8003e00 ) + 8003dc0: 785a ldrb r2, [r3, #1] + 8003dc2: 4b0c ldr r3, [pc, #48] ; (8003df4 ) + 8003dc4: 705a strb r2, [r3, #1] r480.key=read_data_buffer[2]; - 8003d52: 4b0e ldr r3, [pc, #56] ; (8003d8c ) - 8003d54: 789a ldrb r2, [r3, #2] - 8003d56: 4b0a ldr r3, [pc, #40] ; (8003d80 ) - 8003d58: 709a strb r2, [r3, #2] + 8003dc6: 4b0e ldr r3, [pc, #56] ; (8003e00 ) + 8003dc8: 789a ldrb r2, [r3, #2] + 8003dca: 4b0a ldr r3, [pc, #40] ; (8003df4 ) + 8003dcc: 709a strb r2, [r3, #2] } } timer_100us_tick=0; - 8003d5a: 4b08 ldr r3, [pc, #32] ; (8003d7c ) - 8003d5c: 2200 movs r2, #0 - 8003d5e: 801a strh r2, [r3, #0] + 8003dce: 4b08 ldr r3, [pc, #32] ; (8003df0 ) + 8003dd0: 2200 movs r2, #0 + 8003dd2: 801a strh r2, [r3, #0] return ; - 8003d60: e006 b.n 8003d70 + 8003dd4: e006 b.n 8003de4 }else//time out { read_begin=0; - 8003d62: 4b05 ldr r3, [pc, #20] ; (8003d78 ) - 8003d64: 2200 movs r2, #0 - 8003d66: 701a strb r2, [r3, #0] + 8003dd6: 4b05 ldr r3, [pc, #20] ; (8003dec ) + 8003dd8: 2200 movs r2, #0 + 8003dda: 701a strb r2, [r3, #0] timer_100us_tick=0; - 8003d68: 4b04 ldr r3, [pc, #16] ; (8003d7c ) - 8003d6a: 2200 movs r2, #0 - 8003d6c: 801a strh r2, [r3, #0] + 8003ddc: 4b04 ldr r3, [pc, #16] ; (8003df0 ) + 8003dde: 2200 movs r2, #0 + 8003de0: 801a strh r2, [r3, #0] return ; - 8003d6e: 46c0 nop ; (mov r8, r8) + 8003de2: 46c0 nop ; (mov r8, r8) } } } - 8003d70: 46bd mov sp, r7 - 8003d72: b003 add sp, #12 - 8003d74: bd90 pop {r4, r7, pc} - 8003d76: 46c0 nop ; (mov r8, r8) - 8003d78: 20000034 .word 0x20000034 - 8003d7c: 20000028 .word 0x20000028 - 8003d80: 200000e8 .word 0x200000e8 - 8003d84: 2000002c .word 0x2000002c - 8003d88: 20000030 .word 0x20000030 - 8003d8c: 2000014c .word 0x2000014c + 8003de4: 46bd mov sp, r7 + 8003de6: b003 add sp, #12 + 8003de8: bd90 pop {r4, r7, pc} + 8003dea: 46c0 nop ; (mov r8, r8) + 8003dec: 20000034 .word 0x20000034 + 8003df0: 20000028 .word 0x20000028 + 8003df4: 200000e8 .word 0x200000e8 + 8003df8: 2000002c .word 0x2000002c + 8003dfc: 20000030 .word 0x20000030 + 8003e00: 2000014c .word 0x2000014c -08003d90 : +08003e04 : void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { - 8003d90: b580 push {r7, lr} - 8003d92: b082 sub sp, #8 - 8003d94: af00 add r7, sp, #0 - 8003d96: 0002 movs r2, r0 - 8003d98: 1dbb adds r3, r7, #6 - 8003d9a: 801a strh r2, [r3, #0] + 8003e04: b580 push {r7, lr} + 8003e06: b082 sub sp, #8 + 8003e08: af00 add r7, sp, #0 + 8003e0a: 0002 movs r2, r0 + 8003e0c: 1dbb adds r3, r7, #6 + 8003e0e: 801a strh r2, [r3, #0] switch(GPIO_Pin) - 8003d9c: 1dbb adds r3, r7, #6 - 8003d9e: 881b ldrh r3, [r3, #0] - 8003da0: 2b08 cmp r3, #8 - 8003da2: d102 bne.n 8003daa + 8003e10: 1dbb adds r3, r7, #6 + 8003e12: 881b ldrh r3, [r3, #0] + 8003e14: 2b08 cmp r3, #8 + 8003e16: d102 bne.n 8003e1e { case infeaed_Pin: read_433_exit(); - 8003da4: f7ff ff58 bl 8003c58 + 8003e18: f7ff ff58 bl 8003ccc return ; - 8003da8: 46c0 nop ; (mov r8, r8) + 8003e1c: 46c0 nop ; (mov r8, r8) break; } } - 8003daa: 46bd mov sp, r7 - 8003dac: b002 add sp, #8 - 8003dae: bd80 pop {r7, pc} + 8003e1e: 46bd mov sp, r7 + 8003e20: b002 add sp, #8 + 8003e22: bd80 pop {r7, pc} -08003db0 : +08003e24 : void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)//100us { - 8003db0: b580 push {r7, lr} - 8003db2: b082 sub sp, #8 - 8003db4: af00 add r7, sp, #0 - 8003db6: 6078 str r0, [r7, #4] + 8003e24: b580 push {r7, lr} + 8003e26: b082 sub sp, #8 + 8003e28: af00 add r7, sp, #0 + 8003e2a: 6078 str r0, [r7, #4] if (htim == (&htim14)) - 8003db8: 687a ldr r2, [r7, #4] - 8003dba: 4b06 ldr r3, [pc, #24] ; (8003dd4 ) - 8003dbc: 429a cmp r2, r3 - 8003dbe: d105 bne.n 8003dcc + 8003e2c: 687a ldr r2, [r7, #4] + 8003e2e: 4b06 ldr r3, [pc, #24] ; (8003e48 ) + 8003e30: 429a cmp r2, r3 + 8003e32: d105 bne.n 8003e40 { timer_100us_tick++; - 8003dc0: 4b05 ldr r3, [pc, #20] ; (8003dd8 ) - 8003dc2: 881b ldrh r3, [r3, #0] - 8003dc4: 3301 adds r3, #1 - 8003dc6: b29a uxth r2, r3 - 8003dc8: 4b03 ldr r3, [pc, #12] ; (8003dd8 ) - 8003dca: 801a strh r2, [r3, #0] + 8003e34: 4b05 ldr r3, [pc, #20] ; (8003e4c ) + 8003e36: 881b ldrh r3, [r3, #0] + 8003e38: 3301 adds r3, #1 + 8003e3a: b29a uxth r2, r3 + 8003e3c: 4b03 ldr r3, [pc, #12] ; (8003e4c ) + 8003e3e: 801a strh r2, [r3, #0] } } - 8003dcc: 46c0 nop ; (mov r8, r8) - 8003dce: 46bd mov sp, r7 - 8003dd0: b002 add sp, #8 - 8003dd2: bd80 pop {r7, pc} - 8003dd4: 2000004c .word 0x2000004c - 8003dd8: 20000028 .word 0x20000028 + 8003e40: 46c0 nop ; (mov r8, r8) + 8003e42: 46bd mov sp, r7 + 8003e44: b002 add sp, #8 + 8003e46: bd80 pop {r7, pc} + 8003e48: 2000004c .word 0x2000004c + 8003e4c: 20000028 .word 0x20000028 -08003ddc <__libc_init_array>: - 8003ddc: b570 push {r4, r5, r6, lr} - 8003dde: 2600 movs r6, #0 - 8003de0: 4d0c ldr r5, [pc, #48] ; (8003e14 <__libc_init_array+0x38>) - 8003de2: 4c0d ldr r4, [pc, #52] ; (8003e18 <__libc_init_array+0x3c>) - 8003de4: 1b64 subs r4, r4, r5 - 8003de6: 10a4 asrs r4, r4, #2 - 8003de8: 42a6 cmp r6, r4 - 8003dea: d109 bne.n 8003e00 <__libc_init_array+0x24> - 8003dec: 2600 movs r6, #0 - 8003dee: f000 f821 bl 8003e34 <_init> - 8003df2: 4d0a ldr r5, [pc, #40] ; (8003e1c <__libc_init_array+0x40>) - 8003df4: 4c0a ldr r4, [pc, #40] ; (8003e20 <__libc_init_array+0x44>) - 8003df6: 1b64 subs r4, r4, r5 - 8003df8: 10a4 asrs r4, r4, #2 - 8003dfa: 42a6 cmp r6, r4 - 8003dfc: d105 bne.n 8003e0a <__libc_init_array+0x2e> - 8003dfe: bd70 pop {r4, r5, r6, pc} - 8003e00: 00b3 lsls r3, r6, #2 - 8003e02: 58eb ldr r3, [r5, r3] - 8003e04: 4798 blx r3 - 8003e06: 3601 adds r6, #1 - 8003e08: e7ee b.n 8003de8 <__libc_init_array+0xc> - 8003e0a: 00b3 lsls r3, r6, #2 - 8003e0c: 58eb ldr r3, [r5, r3] - 8003e0e: 4798 blx r3 - 8003e10: 3601 adds r6, #1 - 8003e12: e7f2 b.n 8003dfa <__libc_init_array+0x1e> - 8003e14: 08003ea4 .word 0x08003ea4 - 8003e18: 08003ea4 .word 0x08003ea4 - 8003e1c: 08003ea4 .word 0x08003ea4 - 8003e20: 08003ea8 .word 0x08003ea8 +08003e50 <__libc_init_array>: + 8003e50: b570 push {r4, r5, r6, lr} + 8003e52: 2600 movs r6, #0 + 8003e54: 4d0c ldr r5, [pc, #48] ; (8003e88 <__libc_init_array+0x38>) + 8003e56: 4c0d ldr r4, [pc, #52] ; (8003e8c <__libc_init_array+0x3c>) + 8003e58: 1b64 subs r4, r4, r5 + 8003e5a: 10a4 asrs r4, r4, #2 + 8003e5c: 42a6 cmp r6, r4 + 8003e5e: d109 bne.n 8003e74 <__libc_init_array+0x24> + 8003e60: 2600 movs r6, #0 + 8003e62: f000 f821 bl 8003ea8 <_init> + 8003e66: 4d0a ldr r5, [pc, #40] ; (8003e90 <__libc_init_array+0x40>) + 8003e68: 4c0a ldr r4, [pc, #40] ; (8003e94 <__libc_init_array+0x44>) + 8003e6a: 1b64 subs r4, r4, r5 + 8003e6c: 10a4 asrs r4, r4, #2 + 8003e6e: 42a6 cmp r6, r4 + 8003e70: d105 bne.n 8003e7e <__libc_init_array+0x2e> + 8003e72: bd70 pop {r4, r5, r6, pc} + 8003e74: 00b3 lsls r3, r6, #2 + 8003e76: 58eb ldr r3, [r5, r3] + 8003e78: 4798 blx r3 + 8003e7a: 3601 adds r6, #1 + 8003e7c: e7ee b.n 8003e5c <__libc_init_array+0xc> + 8003e7e: 00b3 lsls r3, r6, #2 + 8003e80: 58eb ldr r3, [r5, r3] + 8003e82: 4798 blx r3 + 8003e84: 3601 adds r6, #1 + 8003e86: e7f2 b.n 8003e6e <__libc_init_array+0x1e> + 8003e88: 08003f18 .word 0x08003f18 + 8003e8c: 08003f18 .word 0x08003f18 + 8003e90: 08003f18 .word 0x08003f18 + 8003e94: 08003f1c .word 0x08003f1c -08003e24 : - 8003e24: 0003 movs r3, r0 - 8003e26: 1882 adds r2, r0, r2 - 8003e28: 4293 cmp r3, r2 - 8003e2a: d100 bne.n 8003e2e - 8003e2c: 4770 bx lr - 8003e2e: 7019 strb r1, [r3, #0] - 8003e30: 3301 adds r3, #1 - 8003e32: e7f9 b.n 8003e28 +08003e98 : + 8003e98: 0003 movs r3, r0 + 8003e9a: 1882 adds r2, r0, r2 + 8003e9c: 4293 cmp r3, r2 + 8003e9e: d100 bne.n 8003ea2 + 8003ea0: 4770 bx lr + 8003ea2: 7019 strb r1, [r3, #0] + 8003ea4: 3301 adds r3, #1 + 8003ea6: e7f9 b.n 8003e9c -08003e34 <_init>: - 8003e34: b5f8 push {r3, r4, r5, r6, r7, lr} - 8003e36: 46c0 nop ; (mov r8, r8) - 8003e38: bcf8 pop {r3, r4, r5, r6, r7} - 8003e3a: bc08 pop {r3} - 8003e3c: 469e mov lr, r3 - 8003e3e: 4770 bx lr +08003ea8 <_init>: + 8003ea8: b5f8 push {r3, r4, r5, r6, r7, lr} + 8003eaa: 46c0 nop ; (mov r8, r8) + 8003eac: bcf8 pop {r3, r4, r5, r6, r7} + 8003eae: bc08 pop {r3} + 8003eb0: 469e mov lr, r3 + 8003eb2: 4770 bx lr -08003e40 <_fini>: - 8003e40: b5f8 push {r3, r4, r5, r6, r7, lr} - 8003e42: 46c0 nop ; (mov r8, r8) - 8003e44: bcf8 pop {r3, r4, r5, r6, r7} - 8003e46: bc08 pop {r3} - 8003e48: 469e mov lr, r3 - 8003e4a: 4770 bx lr +08003eb4 <_fini>: + 8003eb4: b5f8 push {r3, r4, r5, r6, r7, lr} + 8003eb6: 46c0 nop ; (mov r8, r8) + 8003eb8: bcf8 pop {r3, r4, r5, r6, r7} + 8003eba: bc08 pop {r3} + 8003ebc: 469e mov lr, r3 + 8003ebe: 4770 bx lr diff --git a/Debug/Motor_Controller2.map b/Debug/Motor_Controller2.map index e21a63f..1096f3a 100644 --- a/Debug/Motor_Controller2.map +++ b/Debug/Motor_Controller2.map @@ -3532,7 +3532,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id 0x0000000008000000 g_pfnVectors 0x00000000080000c0 . = ALIGN (0x4) -.text 0x00000000080000c0 0x3d8c +.text 0x00000000080000c0 0x3e00 0x00000000080000c0 . = ALIGN (0x4) *(.text) .text 0x00000000080000c0 0x48 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o @@ -3799,109 +3799,109 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .text.check_need_reset 0x0000000008003340 0xd8 ./my_software/my_code.o 0x0000000008003340 check_need_reset - .text.my_code 0x0000000008003418 0x820 ./my_software/my_code.o + .text.my_code 0x0000000008003418 0x894 ./my_software/my_code.o 0x0000000008003418 my_code .text.r480_init - 0x0000000008003c38 0x20 ./my_software/r480r.o - 0x0000000008003c38 r480_init + 0x0000000008003cac 0x20 ./my_software/r480r.o + 0x0000000008003cac r480_init .text.read_433_exit - 0x0000000008003c58 0x138 ./my_software/r480r.o - 0x0000000008003c58 read_433_exit + 0x0000000008003ccc 0x138 ./my_software/r480r.o + 0x0000000008003ccc read_433_exit .text.HAL_GPIO_EXTI_Callback - 0x0000000008003d90 0x20 ./my_software/r480r.o - 0x0000000008003d90 HAL_GPIO_EXTI_Callback + 0x0000000008003e04 0x20 ./my_software/r480r.o + 0x0000000008003e04 HAL_GPIO_EXTI_Callback .text.HAL_TIM_PeriodElapsedCallback - 0x0000000008003db0 0x2c ./my_software/r480r.o - 0x0000000008003db0 HAL_TIM_PeriodElapsedCallback + 0x0000000008003e24 0x2c ./my_software/r480r.o + 0x0000000008003e24 HAL_TIM_PeriodElapsedCallback .text.__libc_init_array - 0x0000000008003ddc 0x48 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-init.o) - 0x0000000008003ddc __libc_init_array - .text.memset 0x0000000008003e24 0x10 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-memset.o) - 0x0000000008003e24 memset + 0x0000000008003e50 0x48 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-init.o) + 0x0000000008003e50 __libc_init_array + .text.memset 0x0000000008003e98 0x10 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc_nano.a(lib_a-memset.o) + 0x0000000008003e98 memset *(.glue_7) - .glue_7 0x0000000008003e34 0x0 linker stubs + .glue_7 0x0000000008003ea8 0x0 linker stubs *(.glue_7t) - .glue_7t 0x0000000008003e34 0x0 linker stubs + .glue_7t 0x0000000008003ea8 0x0 linker stubs *(.eh_frame) - .eh_frame 0x0000000008003e34 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o + .eh_frame 0x0000000008003ea8 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o *(.init) - .init 0x0000000008003e34 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crti.o - 0x0000000008003e34 _init - .init 0x0000000008003e38 0x8 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o + .init 0x0000000008003ea8 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crti.o + 0x0000000008003ea8 _init + .init 0x0000000008003eac 0x8 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o *(.fini) - .fini 0x0000000008003e40 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crti.o - 0x0000000008003e40 _fini - .fini 0x0000000008003e44 0x8 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o - 0x0000000008003e4c . = ALIGN (0x4) - 0x0000000008003e4c _etext = . + .fini 0x0000000008003eb4 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crti.o + 0x0000000008003eb4 _fini + .fini 0x0000000008003eb8 0x8 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtn.o + 0x0000000008003ec0 . = ALIGN (0x4) + 0x0000000008003ec0 _etext = . -.vfp11_veneer 0x0000000008003e4c 0x0 - .vfp11_veneer 0x0000000008003e4c 0x0 linker stubs +.vfp11_veneer 0x0000000008003ec0 0x0 + .vfp11_veneer 0x0000000008003ec0 0x0 linker stubs -.v4_bx 0x0000000008003e4c 0x0 - .v4_bx 0x0000000008003e4c 0x0 linker stubs +.v4_bx 0x0000000008003ec0 0x0 + .v4_bx 0x0000000008003ec0 0x0 linker stubs -.iplt 0x0000000008003e4c 0x0 - .iplt 0x0000000008003e4c 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o +.iplt 0x0000000008003ec0 0x0 + .iplt 0x0000000008003ec0 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o -.rodata 0x0000000008003e4c 0x58 - 0x0000000008003e4c . = ALIGN (0x4) +.rodata 0x0000000008003ec0 0x58 + 0x0000000008003ec0 . = ALIGN (0x4) *(.rodata) - .rodata 0x0000000008003e4c 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + .rodata 0x0000000008003ec0 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o *(.rodata*) .rodata.AHBPrescTable - 0x0000000008003e6c 0x10 ./Core/Src/system_stm32f0xx.o - 0x0000000008003e6c AHBPrescTable + 0x0000000008003ee0 0x10 ./Core/Src/system_stm32f0xx.o + 0x0000000008003ee0 AHBPrescTable .rodata.LED_Tab - 0x0000000008003e7c 0x12 ./my_software/my_code.o - 0x0000000008003e7c LED_Tab - *fill* 0x0000000008003e8e 0x2 + 0x0000000008003ef0 0x12 ./my_software/my_code.o + 0x0000000008003ef0 LED_Tab + *fill* 0x0000000008003f02 0x2 .rodata.my_code - 0x0000000008003e90 0x14 ./my_software/my_code.o - 0x0000000008003ea4 . = ALIGN (0x4) + 0x0000000008003f04 0x14 ./my_software/my_code.o + 0x0000000008003f18 . = ALIGN (0x4) -.rel.dyn 0x0000000008003ea4 0x0 - .rel.iplt 0x0000000008003ea4 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o +.rel.dyn 0x0000000008003f18 0x0 + .rel.iplt 0x0000000008003f18 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o -.ARM.extab 0x0000000008003ea4 0x0 - 0x0000000008003ea4 . = ALIGN (0x4) +.ARM.extab 0x0000000008003f18 0x0 + 0x0000000008003f18 . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x0000000008003ea4 . = ALIGN (0x4) + 0x0000000008003f18 . = ALIGN (0x4) -.ARM 0x0000000008003ea4 0x0 - 0x0000000008003ea4 . = ALIGN (0x4) - 0x0000000008003ea4 __exidx_start = . +.ARM 0x0000000008003f18 0x0 + 0x0000000008003f18 . = ALIGN (0x4) + 0x0000000008003f18 __exidx_start = . *(.ARM.exidx*) - 0x0000000008003ea4 __exidx_end = . - 0x0000000008003ea4 . = ALIGN (0x4) + 0x0000000008003f18 __exidx_end = . + 0x0000000008003f18 . = ALIGN (0x4) -.preinit_array 0x0000000008003ea4 0x0 - 0x0000000008003ea4 . = ALIGN (0x4) - 0x0000000008003ea4 PROVIDE (__preinit_array_start = .) +.preinit_array 0x0000000008003f18 0x0 + 0x0000000008003f18 . = ALIGN (0x4) + 0x0000000008003f18 PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x0000000008003ea4 PROVIDE (__preinit_array_end = .) - 0x0000000008003ea4 . = ALIGN (0x4) + 0x0000000008003f18 PROVIDE (__preinit_array_end = .) + 0x0000000008003f18 . = ALIGN (0x4) -.init_array 0x0000000008003ea4 0x4 - 0x0000000008003ea4 . = ALIGN (0x4) - 0x0000000008003ea4 PROVIDE (__init_array_start = .) +.init_array 0x0000000008003f18 0x4 + 0x0000000008003f18 . = ALIGN (0x4) + 0x0000000008003f18 PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x0000000008003ea4 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o - 0x0000000008003ea8 PROVIDE (__init_array_end = .) - 0x0000000008003ea8 . = ALIGN (0x4) + .init_array 0x0000000008003f18 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o + 0x0000000008003f1c PROVIDE (__init_array_end = .) + 0x0000000008003f1c . = ALIGN (0x4) -.fini_array 0x0000000008003ea8 0x4 - 0x0000000008003ea8 . = ALIGN (0x4) +.fini_array 0x0000000008003f1c 0x4 + 0x0000000008003f1c . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x0000000008003ea8 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o + .fini_array 0x0000000008003f1c 0x4 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o [!provide] PROVIDE (__fini_array_end = .) - 0x0000000008003eac . = ALIGN (0x4) - 0x0000000008003eac _sidata = LOADADDR (.data) + 0x0000000008003f20 . = ALIGN (0x4) + 0x0000000008003f20 _sidata = LOADADDR (.data) -.data 0x0000000020000000 0xc load address 0x0000000008003eac +.data 0x0000000020000000 0xc load address 0x0000000008003f20 0x0000000020000000 . = ALIGN (0x4) 0x0000000020000000 _sdata = . *(.data) @@ -3921,11 +3921,11 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id *fill* 0x0000000020000009 0x3 0x000000002000000c _edata = . -.igot.plt 0x000000002000000c 0x0 load address 0x0000000008003eb8 +.igot.plt 0x000000002000000c 0x0 load address 0x0000000008003f2c .igot.plt 0x000000002000000c 0x0 /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.macos64_2.0.0.202105311346/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/thumb/v6-m/nofp/crtbegin.o 0x000000002000000c . = ALIGN (0x4) -.bss 0x000000002000000c 0x144 load address 0x0000000008003eb8 +.bss 0x000000002000000c 0x144 load address 0x0000000008003f2c 0x000000002000000c _sbss = . 0x000000002000000c __bss_start__ = _sbss *(.bss) @@ -3969,7 +3969,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id 0x0000000020000150 __bss_end__ = _ebss ._user_heap_stack - 0x0000000020000150 0x600 load address 0x0000000008003eb8 + 0x0000000020000150 0x600 load address 0x0000000008003f2c 0x0000000020000150 . = ALIGN (0x8) [!provide] PROVIDE (end = .) 0x0000000020000150 PROVIDE (_end = .) @@ -4225,7 +4225,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .debug_macro 0x0000000000010216 0x4c ./my_software/my_code.o .debug_macro 0x0000000000010262 0x1e0 ./my_software/r480r.o -.debug_line 0x0000000000000000 0xf1d9 +.debug_line 0x0000000000000000 0xf273 .debug_line 0x0000000000000000 0x8df ./Core/Src/main.o .debug_line 0x00000000000008df 0x793 ./Core/Src/stm32f0xx_hal_msp.o .debug_line 0x0000000000001072 0x7a5 ./Core/Src/stm32f0xx_it.o @@ -4244,8 +4244,8 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .debug_line 0x000000000000c3c8 0x725 ./my_software/gpio.o .debug_line 0x000000000000caed 0x835 ./my_software/ht1621.o .debug_line 0x000000000000d322 0x923 ./my_software/iic.o - .debug_line 0x000000000000dc45 0xda3 ./my_software/my_code.o - .debug_line 0x000000000000e9e8 0x7f1 ./my_software/r480r.o + .debug_line 0x000000000000dc45 0xe3d ./my_software/my_code.o + .debug_line 0x000000000000ea82 0x7f1 ./my_software/r480r.o .debug_str 0x0000000000000000 0x5f5c4 .debug_str 0x0000000000000000 0x5c9bc ./Core/Src/main.o diff --git a/my_software/my_code.c b/my_software/my_code.c index 4835b6e..8862040 100644 --- a/my_software/my_code.c +++ b/my_software/my_code.c @@ -451,18 +451,18 @@ void my_code() moto.moto2a=0; moto.moto2b=10; } - if(key4.code!=0||(moto_in1==1&&READ_MOT_IN1==0)) + if(key4.code!=0||(moto.moto1a==0&&moto.moto1b==0&&moto.moto2a==0&&moto.moto2b==0)) { mode=1; } - if(ADCC.adc_value[1]>400) + if(ADCC.adc_value[1]>400||(moto_in1==1&&READ_MOT_IN1==0)) { //overload_times=0; moto.moto1a=0; moto.moto1b=0; } - if(ADCC.adc_value[0]>400) + if(ADCC.adc_value[0]>400||(moto_in2==1&&READ_MOT_IN2==0)) { moto.moto2a=0; moto.moto2b=0; @@ -500,17 +500,17 @@ void my_code() moto.moto2a=10; moto.moto2b=0; } - if(key4.code!=0||(moto_in2==1&&READ_MOT_IN2==0)) + if(key4.code!=0||(moto.moto1a==0&&moto.moto1b==0&&moto.moto2a==0&&moto.moto2b==0)) { mode=1; } - if(ADCC.adc_value[1]>400) + if(ADCC.adc_value[1]>400||(moto_in1==1&&READ_MOT_IN1==0)) { //overload_times=0; moto.moto1a=0; moto.moto1b=0; } - if(ADCC.adc_value[0]>400) + if(ADCC.adc_value[0]>400||(moto_in2==1&&READ_MOT_IN2==0)) { //overload_times2=0; moto.moto2a=0;