diff --git a/Core/Src/main.c b/Core/Src/main.c index 327bdfd..fb75d81 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -174,8 +174,8 @@ static void MX_ADC_Init(void) hadc.Init.EOCSelection = ADC_EOC_SINGLE_CONV; hadc.Init.LowPowerAutoWait = DISABLE; hadc.Init.LowPowerAutoPowerOff = DISABLE; - hadc.Init.ContinuousConvMode = ENABLE; - hadc.Init.DiscontinuousConvMode = DISABLE; + hadc.Init.ContinuousConvMode = DISABLE; + hadc.Init.DiscontinuousConvMode = ENABLE; hadc.Init.ExternalTrigConv = ADC_SOFTWARE_START; hadc.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE; hadc.Init.DMAContinuousRequests = DISABLE; diff --git a/Debug/Motor_Controller2.bin b/Debug/Motor_Controller2.bin index 8bdfdaa..3135310 100755 Binary files a/Debug/Motor_Controller2.bin and b/Debug/Motor_Controller2.bin differ diff --git a/Debug/Motor_Controller2.list b/Debug/Motor_Controller2.list index 4a33785..4b65795 100644 --- a/Debug/Motor_Controller2.list +++ b/Debug/Motor_Controller2.list @@ -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 00003ec8 080000c0 080000c0 000100c0 2**2 + 1 .text 00003d8c 080000c0 080000c0 000100c0 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 00000060 08003f88 08003f88 00013f88 2**2 + 2 .rodata 00000058 08003e4c 08003e4c 00013e4c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 08003fe8 08003fe8 0002000c 2**0 + 3 .ARM.extab 00000000 08003ea4 08003ea4 0002000c 2**0 CONTENTS - 4 .ARM 00000000 08003fe8 08003fe8 0002000c 2**0 + 4 .ARM 00000000 08003ea4 08003ea4 0002000c 2**0 CONTENTS - 5 .preinit_array 00000000 08003fe8 08003fe8 0002000c 2**0 + 5 .preinit_array 00000000 08003ea4 08003ea4 0002000c 2**0 CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 08003fe8 08003fe8 00013fe8 2**2 + 6 .init_array 00000004 08003ea4 08003ea4 00013ea4 2**2 CONTENTS, ALLOC, LOAD, DATA - 7 .fini_array 00000004 08003fec 08003fec 00013fec 2**2 + 7 .fini_array 00000004 08003ea8 08003ea8 00013ea8 2**2 CONTENTS, ALLOC, LOAD, DATA - 8 .data 0000000c 20000000 08003ff0 00020000 2**2 + 8 .data 0000000c 20000000 08003eac 00020000 2**2 CONTENTS, ALLOC, LOAD, DATA - 9 .bss 00000164 2000000c 08003ffc 0002000c 2**2 + 9 .bss 00000144 2000000c 08003eb8 0002000c 2**2 ALLOC - 10 ._user_heap_stack 00000600 20000170 08003ffc 00020170 2**0 + 10 ._user_heap_stack 00000600 20000150 08003eb8 00020150 2**0 ALLOC 11 .ARM.attributes 00000028 00000000 00000000 0002000c 2**0 CONTENTS, READONLY - 12 .debug_info 0000beb2 00000000 00000000 00020034 2**0 + 12 .debug_info 0000be6e 00000000 00000000 00020034 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 13 .debug_abbrev 000022ae 00000000 00000000 0002bee6 2**0 + 13 .debug_abbrev 000022ae 00000000 00000000 0002bea2 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 14 .debug_aranges 00000b88 00000000 00000000 0002e198 2**3 + 14 .debug_aranges 00000b88 00000000 00000000 0002e150 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 15 .debug_ranges 00000a50 00000000 00000000 0002ed20 2**3 + 15 .debug_ranges 00000a50 00000000 00000000 0002ecd8 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 16 .debug_macro 00010442 00000000 00000000 0002f770 2**0 + 16 .debug_macro 00010442 00000000 00000000 0002f728 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_line 0000f24c 00000000 00000000 0003fbb2 2**0 + 17 .debug_line 0000f1d9 00000000 00000000 0003fb6a 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_str 0005f5f6 00000000 00000000 0004edfe 2**0 + 18 .debug_str 0005f5c4 00000000 00000000 0004ed43 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .comment 00000053 00000000 00000000 000ae3f4 2**0 + 19 .comment 00000053 00000000 00000000 000ae307 2**0 CONTENTS, READONLY - 20 .debug_frame 00002790 00000000 00000000 000ae448 2**2 + 20 .debug_frame 00002790 00000000 00000000 000ae35c 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: 08003f70 .word 0x08003f70 + 80000e4: 08003e34 .word 0x08003e34 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: 08003f70 .word 0x08003f70 + 8000104: 08003e34 .word 0x08003e34 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 fd9c bl 8003f60 + 8000424: f003 fcfe bl 8003e24 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 fd95 bl 8003f60 + 8000432: f003 fcf7 bl 8003e24 /** 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 fd4c bl 8003f60 + 80004c4: f003 fcae bl 8003e24 /* USER CODE BEGIN ADC_Init 1 */ /* USER CODE END ADC_Init 1 */ @@ -683,13 +683,13 @@ static void MX_ADC_Init(void) 80004f2: 4b22 ldr r3, [pc, #136] ; (800057c ) 80004f4: 2200 movs r2, #0 80004f6: 765a strb r2, [r3, #25] - hadc.Init.ContinuousConvMode = ENABLE; + hadc.Init.ContinuousConvMode = DISABLE; 80004f8: 4b20 ldr r3, [pc, #128] ; (800057c ) - 80004fa: 2201 movs r2, #1 + 80004fa: 2200 movs r2, #0 80004fc: 769a strb r2, [r3, #26] - hadc.Init.DiscontinuousConvMode = DISABLE; + hadc.Init.DiscontinuousConvMode = ENABLE; 80004fe: 4b1f ldr r3, [pc, #124] ; (800057c ) - 8000500: 2200 movs r2, #0 + 8000500: 2201 movs r2, #1 8000502: 76da strb r2, [r3, #27] hadc.Init.ExternalTrigConv = ADC_SOFTWARE_START; 8000504: 4b1d ldr r3, [pc, #116] ; (800057c ) @@ -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 fcbf bl 8003f60 + 80005de: f003 fc21 bl 8003e24 /* 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 fbc4 bl 8003f60 + 80007d4: f003 fb26 bl 8003e24 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 faf3 bl 8003f18 <__libc_init_array> + 800092e: f003 fa55 bl 8003ddc <__libc_init_array> /* Call the application's entry point.*/ bl main 8000932: f7ff fd5f bl 80003f4
@@ -1593,11 +1593,11 @@ LoopForever: ldr r1, =_edata 8000940: 2000000c .word 0x2000000c ldr r2, =_sidata - 8000944: 08003ff0 .word 0x08003ff0 + 8000944: 08003eac .word 0x08003eac ldr r2, =_sbss 8000948: 2000000c .word 0x2000000c ldr r4, =_ebss - 800094c: 20000170 .word 0x20000170 + 800094c: 20000150 .word 0x20000150 08000950 : * @retval : None @@ -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 fae7 bl 8003ecc + 80018fa: f002 fa49 bl 8003d90 } } 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: 08003fa8 .word 0x08003fa8 + 8002110: 08003e6c .word 0x08003e6c 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: 08003f88 .word 0x08003f88 - 80021d4: 08003f98 .word 0x08003f98 + 80021d0: 08003e4c .word 0x08003e4c + 80021d4: 08003e5c .word 0x08003e5c 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 fd23 bl 8003eec + 80024a2: f001 fc85 bl 8003db0 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } @@ -9135,7 +9135,7 @@ void moto_server() 800320e: 46c0 nop ; (mov r8, r8) 8003210: 46bd mov sp, r7 8003212: bd80 pop {r7, pc} - 8003214: 20000154 .word 0x20000154 + 8003214: 20000134 .word 0x20000134 8003218: 20000038 .word 0x20000038 0800321c : @@ -9328,7 +9328,7 @@ void HT1621_Display_GetButton(void) 8003334: b004 add sp, #16 8003336: bd80 pop {r7, pc} 8003338: 20000038 .word 0x20000038 - 800333c: 08003fb8 .word 0x08003fb8 + 800333c: 08003e7c .word 0x08003e7c 08003340 : @@ -9476,517 +9476,512 @@ void my_code() 800342a: 2201 movs r2, #1 800342c: 701a strb r2, [r3, #0] - uint16_t overload_times=0; - 800342e: 2314 movs r3, #20 - 8003430: 18fb adds r3, r7, r3 - 8003432: 2200 movs r2, #0 - 8003434: 801a strh r2, [r3, #0] - uint16_t overload_times2=0; - 8003436: 2312 movs r3, #18 - 8003438: 18fb adds r3, r7, r3 - 800343a: 2200 movs r2, #0 - 800343c: 801a strh r2, [r3, #0] + long countdown=1000; - 800343e: 23fa movs r3, #250 ; 0xfa - 8003440: 009b lsls r3, r3, #2 - 8003442: 60fb str r3, [r7, #12] + 800342e: 23fa movs r3, #250 ; 0xfa + 8003430: 009b lsls r3, r3, #2 + 8003432: 613b str r3, [r7, #16] long countdown_set=15000; - 8003444: 4bce ldr r3, [pc, #824] ; (8003780 ) - 8003446: 60bb str r3, [r7, #8] + 8003434: 4bcb ldr r3, [pc, #812] ; (8003764 ) + 8003436: 60fb str r3, [r7, #12] char moto_in1,moto_in2; uint16_t moto_in1_pp=0,moto_in2_pp=0; - 8003448: 1d3b adds r3, r7, #4 - 800344a: 2200 movs r2, #0 - 800344c: 801a strh r2, [r3, #0] - 800344e: 1cbb adds r3, r7, #2 - 8003450: 2200 movs r2, #0 - 8003452: 801a strh r2, [r3, #0] + 8003438: 2308 movs r3, #8 + 800343a: 18fb adds r3, r7, r3 + 800343c: 2200 movs r2, #0 + 800343e: 801a strh r2, [r3, #0] + 8003440: 1dbb adds r3, r7, #6 + 8003442: 2200 movs r2, #0 + 8003444: 801a strh r2, [r3, #0] HT1621_Init(); - 8003454: f7ff fba1 bl 8002b9a + 8003446: f7ff fba8 bl 8002b9a r480_init(); - 8003458: f000 fc8c bl 8003d74 + 800344a: f000 fbf5 bl 8003c38 config.begin=0; - 800345c: 4bc9 ldr r3, [pc, #804] ; (8003784 ) - 800345e: 2200 movs r2, #0 - 8003460: 709a strb r2, [r3, #2] + 800344e: 4bc6 ldr r3, [pc, #792] ; (8003768 ) + 8003450: 2200 movs r2, #0 + 8003452: 709a strb r2, [r3, #2] AT24CXX_Read(32,(char *)&config,sizeof(config_setting)); - 8003462: 4bc8 ldr r3, [pc, #800] ; (8003784 ) - 8003464: 2208 movs r2, #8 - 8003466: 0019 movs r1, r3 - 8003468: 2020 movs r0, #32 - 800346a: f7ff f9c8 bl 80027fe + 8003454: 4bc4 ldr r3, [pc, #784] ; (8003768 ) + 8003456: 2208 movs r2, #8 + 8003458: 0019 movs r1, r3 + 800345a: 2020 movs r0, #32 + 800345c: f7ff f9cf bl 80027fe if(config.begin!=0xab||check_need_reset()) - 800346e: 4bc5 ldr r3, [pc, #788] ; (8003784 ) - 8003470: 789b ldrb r3, [r3, #2] - 8003472: 2bab cmp r3, #171 ; 0xab - 8003474: d103 bne.n 800347e - 8003476: f7ff ff63 bl 8003340 - 800347a: 1e03 subs r3, r0, #0 - 800347c: d006 beq.n 800348c + 8003460: 4bc1 ldr r3, [pc, #772] ; (8003768 ) + 8003462: 789b ldrb r3, [r3, #2] + 8003464: 2bab cmp r3, #171 ; 0xab + 8003466: d103 bne.n 8003470 + 8003468: f7ff ff6a bl 8003340 + 800346c: 1e03 subs r3, r0, #0 + 800346e: d006 beq.n 800347e { mode=0; - 800347e: 2317 movs r3, #23 - 8003480: 18fb adds r3, r7, r3 - 8003482: 2200 movs r2, #0 - 8003484: 701a strb r2, [r3, #0] + 8003470: 2317 movs r3, #23 + 8003472: 18fb adds r3, r7, r3 + 8003474: 2200 movs r2, #0 + 8003476: 701a strb r2, [r3, #0] r480.key=0; - 8003486: 4bc0 ldr r3, [pc, #768] ; (8003788 ) - 8003488: 2200 movs r2, #0 - 800348a: 709a strb r2, [r3, #2] - } - - mode=6; - 800348c: 2317 movs r3, #23 - 800348e: 18fb adds r3, r7, r3 - 8003490: 2206 movs r2, #6 - 8003492: 701a strb r2, [r3, #0] + 8003478: 4bbc ldr r3, [pc, #752] ; (800376c ) + 800347a: 2200 movs r2, #0 + 800347c: 709a strb r2, [r3, #2] while(1) { //get ADC + for(char a=0;a<2;a++) - 8003494: 1c7b adds r3, r7, #1 - 8003496: 2200 movs r2, #0 - 8003498: 701a strb r2, [r3, #0] - 800349a: e025 b.n 80034e8 + 800347e: 1d7b adds r3, r7, #5 + 8003480: 2200 movs r2, #0 + 8003482: 701a strb r2, [r3, #0] + 8003484: e025 b.n 80034d2 { HAL_ADC_Start(&hadc); - 800349c: 4bbb ldr r3, [pc, #748] ; (800378c ) - 800349e: 0018 movs r0, r3 - 80034a0: f7fd fc20 bl 8000ce4 + 8003486: 4bba ldr r3, [pc, #744] ; (8003770 ) + 8003488: 0018 movs r0, r3 + 800348a: f7fd fc2b bl 8000ce4 while(HAL_ADC_PollForConversion(&hadc,0xffff)!=HAL_OK); - 80034a4: 46c0 nop ; (mov r8, r8) - 80034a6: 4aba ldr r2, [pc, #744] ; (8003790 ) - 80034a8: 4bb8 ldr r3, [pc, #736] ; (800378c ) - 80034aa: 0011 movs r1, r2 - 80034ac: 0018 movs r0, r3 - 80034ae: f7fd fcad bl 8000e0c - 80034b2: 1e03 subs r3, r0, #0 - 80034b4: d1f7 bne.n 80034a6 + 800348e: 46c0 nop ; (mov r8, r8) + 8003490: 4ab8 ldr r2, [pc, #736] ; (8003774 ) + 8003492: 4bb7 ldr r3, [pc, #732] ; (8003770 ) + 8003494: 0011 movs r1, r2 + 8003496: 0018 movs r0, r3 + 8003498: f7fd fcb8 bl 8000e0c + 800349c: 1e03 subs r3, r0, #0 + 800349e: d1f7 bne.n 8003490 ADCC.adc_filtering[a]+=HAL_ADC_GetValue(&hadc); - 80034b6: 4bb5 ldr r3, [pc, #724] ; (800378c ) - 80034b8: 0018 movs r0, r3 - 80034ba: f7fd fd3f bl 8000f3c - 80034be: 0001 movs r1, r0 - 80034c0: 1c7b adds r3, r7, #1 - 80034c2: 781b ldrb r3, [r3, #0] - 80034c4: 4ab3 ldr r2, [pc, #716] ; (8003794 ) - 80034c6: 009b lsls r3, r3, #2 - 80034c8: 18d3 adds r3, r2, r3 - 80034ca: 3304 adds r3, #4 - 80034cc: 681a ldr r2, [r3, #0] - 80034ce: 1c7b adds r3, r7, #1 - 80034d0: 781b ldrb r3, [r3, #0] - 80034d2: 188a adds r2, r1, r2 - 80034d4: 49af ldr r1, [pc, #700] ; (8003794 ) - 80034d6: 009b lsls r3, r3, #2 - 80034d8: 18cb adds r3, r1, r3 - 80034da: 3304 adds r3, #4 - 80034dc: 601a str r2, [r3, #0] + 80034a0: 4bb3 ldr r3, [pc, #716] ; (8003770 ) + 80034a2: 0018 movs r0, r3 + 80034a4: f7fd fd4a bl 8000f3c + 80034a8: 0001 movs r1, r0 + 80034aa: 1d7b adds r3, r7, #5 + 80034ac: 781b ldrb r3, [r3, #0] + 80034ae: 4ab2 ldr r2, [pc, #712] ; (8003778 ) + 80034b0: 009b lsls r3, r3, #2 + 80034b2: 18d3 adds r3, r2, r3 + 80034b4: 3304 adds r3, #4 + 80034b6: 681a ldr r2, [r3, #0] + 80034b8: 1d7b adds r3, r7, #5 + 80034ba: 781b ldrb r3, [r3, #0] + 80034bc: 188a adds r2, r1, r2 + 80034be: 49ae ldr r1, [pc, #696] ; (8003778 ) + 80034c0: 009b lsls r3, r3, #2 + 80034c2: 18cb adds r3, r1, r3 + 80034c4: 3304 adds r3, #4 + 80034c6: 601a str r2, [r3, #0] for(char a=0;a<2;a++) - 80034de: 1c7b adds r3, r7, #1 - 80034e0: 781a ldrb r2, [r3, #0] - 80034e2: 1c7b adds r3, r7, #1 - 80034e4: 3201 adds r2, #1 - 80034e6: 701a strb r2, [r3, #0] - 80034e8: 1c7b adds r3, r7, #1 - 80034ea: 781b ldrb r3, [r3, #0] - 80034ec: 2b01 cmp r3, #1 - 80034ee: d9d5 bls.n 800349c + 80034c8: 1d7b adds r3, r7, #5 + 80034ca: 781a ldrb r2, [r3, #0] + 80034cc: 1d7b adds r3, r7, #5 + 80034ce: 3201 adds r2, #1 + 80034d0: 701a strb r2, [r3, #0] + 80034d2: 1d7b adds r3, r7, #5 + 80034d4: 781b ldrb r3, [r3, #0] + 80034d6: 2b01 cmp r3, #1 + 80034d8: d9d5 bls.n 8003486 } HAL_ADC_Stop(&hadc); - 80034f0: 4ba6 ldr r3, [pc, #664] ; (800378c ) - 80034f2: 0018 movs r0, r3 - 80034f4: f7fd fc4a bl 8000d8c + 80034da: 4ba5 ldr r3, [pc, #660] ; (8003770 ) + 80034dc: 0018 movs r0, r3 + 80034de: f7fd fc55 bl 8000d8c ADCC.filtering_times+=1; - 80034f8: 4ba6 ldr r3, [pc, #664] ; (8003794 ) - 80034fa: 681b ldr r3, [r3, #0] - 80034fc: 1c5a adds r2, r3, #1 - 80034fe: 4ba5 ldr r3, [pc, #660] ; (8003794 ) - 8003500: 601a str r2, [r3, #0] + 80034e2: 4ba5 ldr r3, [pc, #660] ; (8003778 ) + 80034e4: 681b ldr r3, [r3, #0] + 80034e6: 1c5a adds r2, r3, #1 + 80034e8: 4ba3 ldr r3, [pc, #652] ; (8003778 ) + 80034ea: 601a str r2, [r3, #0] if(ADCC.filtering_times==set_filtering_times) - 8003502: 4ba4 ldr r3, [pc, #656] ; (8003794 ) - 8003504: 681b ldr r3, [r3, #0] - 8003506: 2b32 cmp r3, #50 ; 0x32 - 8003508: d11c bne.n 8003544 + 80034ec: 4ba2 ldr r3, [pc, #648] ; (8003778 ) + 80034ee: 681b ldr r3, [r3, #0] + 80034f0: 2b32 cmp r3, #50 ; 0x32 + 80034f2: d11c bne.n 800352e { ADCC.filtering_times=0; - 800350a: 4ba2 ldr r3, [pc, #648] ; (8003794 ) - 800350c: 2200 movs r2, #0 - 800350e: 601a str r2, [r3, #0] + 80034f4: 4ba0 ldr r3, [pc, #640] ; (8003778 ) + 80034f6: 2200 movs r2, #0 + 80034f8: 601a str r2, [r3, #0] ADCC.adc_value[0]=ADCC.adc_filtering[0]/set_filtering_times; - 8003510: 4ba0 ldr r3, [pc, #640] ; (8003794 ) - 8003512: 685b ldr r3, [r3, #4] - 8003514: 2132 movs r1, #50 ; 0x32 - 8003516: 0018 movs r0, r3 - 8003518: f7fc fdf6 bl 8000108 <__udivsi3> - 800351c: 0003 movs r3, r0 - 800351e: 001a movs r2, r3 - 8003520: 4b9c ldr r3, [pc, #624] ; (8003794 ) - 8003522: 60da str r2, [r3, #12] + 80034fa: 4b9f ldr r3, [pc, #636] ; (8003778 ) + 80034fc: 685b ldr r3, [r3, #4] + 80034fe: 2132 movs r1, #50 ; 0x32 + 8003500: 0018 movs r0, r3 + 8003502: f7fc fe01 bl 8000108 <__udivsi3> + 8003506: 0003 movs r3, r0 + 8003508: 001a movs r2, r3 + 800350a: 4b9b ldr r3, [pc, #620] ; (8003778 ) + 800350c: 60da str r2, [r3, #12] ADCC.adc_filtering[0]=0; - 8003524: 4b9b ldr r3, [pc, #620] ; (8003794 ) - 8003526: 2200 movs r2, #0 - 8003528: 605a str r2, [r3, #4] + 800350e: 4b9a ldr r3, [pc, #616] ; (8003778 ) + 8003510: 2200 movs r2, #0 + 8003512: 605a str r2, [r3, #4] ADCC.adc_value[1]=ADCC.adc_filtering[1]/set_filtering_times; - 800352a: 4b9a ldr r3, [pc, #616] ; (8003794 ) - 800352c: 689b ldr r3, [r3, #8] - 800352e: 2132 movs r1, #50 ; 0x32 - 8003530: 0018 movs r0, r3 - 8003532: f7fc fde9 bl 8000108 <__udivsi3> - 8003536: 0003 movs r3, r0 - 8003538: 001a movs r2, r3 - 800353a: 4b96 ldr r3, [pc, #600] ; (8003794 ) - 800353c: 611a str r2, [r3, #16] + 8003514: 4b98 ldr r3, [pc, #608] ; (8003778 ) + 8003516: 689b ldr r3, [r3, #8] + 8003518: 2132 movs r1, #50 ; 0x32 + 800351a: 0018 movs r0, r3 + 800351c: f7fc fdf4 bl 8000108 <__udivsi3> + 8003520: 0003 movs r3, r0 + 8003522: 001a movs r2, r3 + 8003524: 4b94 ldr r3, [pc, #592] ; (8003778 ) + 8003526: 611a str r2, [r3, #16] ADCC.adc_filtering[1]=0; - 800353e: 4b95 ldr r3, [pc, #596] ; (8003794 ) - 8003540: 2200 movs r2, #0 - 8003542: 609a str r2, [r3, #8] + 8003528: 4b93 ldr r3, [pc, #588] ; (8003778 ) + 800352a: 2200 movs r2, #0 + 800352c: 609a str r2, [r3, #8] } switch(mode) - 8003544: 2317 movs r3, #23 - 8003546: 18fb adds r3, r7, r3 - 8003548: 781b ldrb r3, [r3, #0] - 800354a: 2b06 cmp r3, #6 - 800354c: d900 bls.n 8003550 - 800354e: e335 b.n 8003bbc - 8003550: 009a lsls r2, r3, #2 - 8003552: 4b91 ldr r3, [pc, #580] ; (8003798 ) - 8003554: 18d3 adds r3, r2, r3 - 8003556: 681b ldr r3, [r3, #0] - 8003558: 469f mov pc, r3 + 800352e: 2317 movs r3, #23 + 8003530: 18fb adds r3, r7, r3 + 8003532: 781b ldrb r3, [r3, #0] + 8003534: 2b04 cmp r3, #4 + 8003536: d900 bls.n 800353a + 8003538: e2b4 b.n 8003aa4 + 800353a: 009a lsls r2, r3, #2 + 800353c: 4b8f ldr r3, [pc, #572] ; (800377c ) + 800353e: 18d3 adds r3, r2, r3 + 8003540: 681b ldr r3, [r3, #0] + 8003542: 469f mov pc, r3 { case 0: //Startup if(HAL_GetTick()>runtime) - 800355a: f7fd fa55 bl 8000a08 - 800355e: 0002 movs r2, r0 - 8003560: 69fb ldr r3, [r7, #28] - 8003562: 4293 cmp r3, r2 - 8003564: d21c bcs.n 80035a0 + 8003544: f7fd fa60 bl 8000a08 + 8003548: 0002 movs r2, r0 + 800354a: 69fb ldr r3, [r7, #28] + 800354c: 4293 cmp r3, r2 + 800354e: d21c bcs.n 800358a { runtime+=1000; - 8003566: 69fb ldr r3, [r7, #28] - 8003568: 22fa movs r2, #250 ; 0xfa - 800356a: 0092 lsls r2, r2, #2 - 800356c: 4694 mov ip, r2 - 800356e: 4463 add r3, ip - 8003570: 61fb str r3, [r7, #28] + 8003550: 69fb ldr r3, [r7, #28] + 8003552: 22fa movs r2, #250 ; 0xfa + 8003554: 0092 lsls r2, r2, #2 + 8003556: 4694 mov ip, r2 + 8003558: 4463 add r3, ip + 800355a: 61fb str r3, [r7, #28] if(dis_buff.led_run==1) - 8003572: 4b8a ldr r3, [pc, #552] ; (800379c ) - 8003574: 7b1b ldrb r3, [r3, #12] - 8003576: 2b01 cmp r3, #1 - 8003578: d109 bne.n 800358e + 800355c: 4b88 ldr r3, [pc, #544] ; (8003780 ) + 800355e: 7b1b ldrb r3, [r3, #12] + 8003560: 2b01 cmp r3, #1 + 8003562: d109 bne.n 8003578 { dis_buff.led_run=0; - 800357a: 4b88 ldr r3, [pc, #544] ; (800379c ) - 800357c: 2200 movs r2, #0 - 800357e: 731a strb r2, [r3, #12] + 8003564: 4b86 ldr r3, [pc, #536] ; (8003780 ) + 8003566: 2200 movs r2, #0 + 8003568: 731a strb r2, [r3, #12] dis_buff.dot4=1; - 8003580: 4b86 ldr r3, [pc, #536] ; (800379c ) - 8003582: 2201 movs r2, #1 - 8003584: 72da strb r2, [r3, #11] + 800356a: 4b85 ldr r3, [pc, #532] ; (8003780 ) + 800356c: 2201 movs r2, #1 + 800356e: 72da strb r2, [r3, #11] dis_buff.d_num[0]=16; - 8003586: 4b85 ldr r3, [pc, #532] ; (800379c ) - 8003588: 2210 movs r2, #16 - 800358a: 701a strb r2, [r3, #0] - 800358c: e008 b.n 80035a0 + 8003570: 4b83 ldr r3, [pc, #524] ; (8003780 ) + 8003572: 2210 movs r2, #16 + 8003574: 701a strb r2, [r3, #0] + 8003576: e008 b.n 800358a }else { dis_buff.led_run=1; - 800358e: 4b83 ldr r3, [pc, #524] ; (800379c ) - 8003590: 2201 movs r2, #1 - 8003592: 731a strb r2, [r3, #12] + 8003578: 4b81 ldr r3, [pc, #516] ; (8003780 ) + 800357a: 2201 movs r2, #1 + 800357c: 731a strb r2, [r3, #12] dis_buff.dot4=0; - 8003594: 4b81 ldr r3, [pc, #516] ; (800379c ) - 8003596: 2200 movs r2, #0 - 8003598: 72da strb r2, [r3, #11] + 800357e: 4b80 ldr r3, [pc, #512] ; (8003780 ) + 8003580: 2200 movs r2, #0 + 8003582: 72da strb r2, [r3, #11] dis_buff.d_num[0]=10; - 800359a: 4b80 ldr r3, [pc, #512] ; (800379c ) - 800359c: 220a movs r2, #10 - 800359e: 701a strb r2, [r3, #0] + 8003584: 4b7e ldr r3, [pc, #504] ; (8003780 ) + 8003586: 220a movs r2, #10 + 8003588: 701a strb r2, [r3, #0] } } if(r480.key==0xd7) - 80035a0: 4b79 ldr r3, [pc, #484] ; (8003788 ) - 80035a2: 789b ldrb r3, [r3, #2] - 80035a4: 2bd7 cmp r3, #215 ; 0xd7 - 80035a6: d000 beq.n 80035aa - 80035a8: e301 b.n 8003bae + 800358a: 4b78 ldr r3, [pc, #480] ; (800376c ) + 800358c: 789b ldrb r3, [r3, #2] + 800358e: 2bd7 cmp r3, #215 ; 0xd7 + 8003590: d000 beq.n 8003594 + 8003592: e280 b.n 8003a96 { config.begin=0xab; - 80035aa: 4b76 ldr r3, [pc, #472] ; (8003784 ) - 80035ac: 22ab movs r2, #171 ; 0xab - 80035ae: 709a strb r2, [r3, #2] + 8003594: 4b74 ldr r3, [pc, #464] ; (8003768 ) + 8003596: 22ab movs r2, #171 ; 0xab + 8003598: 709a strb r2, [r3, #2] config.key_code[0]=r480.add[0]; - 80035b0: 4b75 ldr r3, [pc, #468] ; (8003788 ) - 80035b2: 781a ldrb r2, [r3, #0] - 80035b4: 4b73 ldr r3, [pc, #460] ; (8003784 ) - 80035b6: 701a strb r2, [r3, #0] + 800359a: 4b74 ldr r3, [pc, #464] ; (800376c ) + 800359c: 781a ldrb r2, [r3, #0] + 800359e: 4b72 ldr r3, [pc, #456] ; (8003768 ) + 80035a0: 701a strb r2, [r3, #0] config.key_code[1]=r480.add[1]; - 80035b8: 4b73 ldr r3, [pc, #460] ; (8003788 ) - 80035ba: 785a ldrb r2, [r3, #1] - 80035bc: 4b71 ldr r3, [pc, #452] ; (8003784 ) - 80035be: 705a strb r2, [r3, #1] + 80035a2: 4b72 ldr r3, [pc, #456] ; (800376c ) + 80035a4: 785a ldrb r2, [r3, #1] + 80035a6: 4b70 ldr r3, [pc, #448] ; (8003768 ) + 80035a8: 705a strb r2, [r3, #1] r480.key=0; - 80035c0: 4b71 ldr r3, [pc, #452] ; (8003788 ) - 80035c2: 2200 movs r2, #0 - 80035c4: 709a strb r2, [r3, #2] + 80035aa: 4b70 ldr r3, [pc, #448] ; (800376c ) + 80035ac: 2200 movs r2, #0 + 80035ae: 709a strb r2, [r3, #2] r480.add[0]=0; - 80035c6: 4b70 ldr r3, [pc, #448] ; (8003788 ) - 80035c8: 2200 movs r2, #0 - 80035ca: 701a strb r2, [r3, #0] + 80035b0: 4b6e ldr r3, [pc, #440] ; (800376c ) + 80035b2: 2200 movs r2, #0 + 80035b4: 701a strb r2, [r3, #0] r480.add[1]=0; - 80035cc: 4b6e ldr r3, [pc, #440] ; (8003788 ) - 80035ce: 2200 movs r2, #0 - 80035d0: 705a strb r2, [r3, #1] + 80035b6: 4b6d ldr r3, [pc, #436] ; (800376c ) + 80035b8: 2200 movs r2, #0 + 80035ba: 705a strb r2, [r3, #1] mode=1; - 80035d2: 2317 movs r3, #23 - 80035d4: 18fb adds r3, r7, r3 - 80035d6: 2201 movs r2, #1 - 80035d8: 701a strb r2, [r3, #0] + 80035bc: 2317 movs r3, #23 + 80035be: 18fb adds r3, r7, r3 + 80035c0: 2201 movs r2, #1 + 80035c2: 701a strb r2, [r3, #0] AT24CXX_Write(32,(char *)&config,sizeof(config_setting)); - 80035da: 4b6a ldr r3, [pc, #424] ; (8003784 ) - 80035dc: 2208 movs r2, #8 - 80035de: 0019 movs r1, r3 - 80035e0: 2020 movs r0, #32 - 80035e2: f7ff f933 bl 800284c + 80035c4: 4b68 ldr r3, [pc, #416] ; (8003768 ) + 80035c6: 2208 movs r2, #8 + 80035c8: 0019 movs r1, r3 + 80035ca: 2020 movs r0, #32 + 80035cc: f7ff f93e bl 800284c } break; - 80035e6: e2e2 b.n 8003bae + 80035d0: e261 b.n 8003a96 case 1: //standby moto.moto1a=0; - 80035e8: 4b6d ldr r3, [pc, #436] ; (80037a0 ) - 80035ea: 2200 movs r2, #0 - 80035ec: 721a strb r2, [r3, #8] + 80035d2: 4b6c ldr r3, [pc, #432] ; (8003784 ) + 80035d4: 2200 movs r2, #0 + 80035d6: 721a strb r2, [r3, #8] moto.moto1b=0; - 80035ee: 4b6c ldr r3, [pc, #432] ; (80037a0 ) - 80035f0: 2200 movs r2, #0 - 80035f2: 725a strb r2, [r3, #9] + 80035d8: 4b6a ldr r3, [pc, #424] ; (8003784 ) + 80035da: 2200 movs r2, #0 + 80035dc: 725a strb r2, [r3, #9] moto.moto2a=0; - 80035f4: 4b6a ldr r3, [pc, #424] ; (80037a0 ) - 80035f6: 2200 movs r2, #0 - 80035f8: 729a strb r2, [r3, #10] + 80035de: 4b69 ldr r3, [pc, #420] ; (8003784 ) + 80035e0: 2200 movs r2, #0 + 80035e2: 729a strb r2, [r3, #10] moto.moto2b=0; - 80035fa: 4b69 ldr r3, [pc, #420] ; (80037a0 ) - 80035fc: 2200 movs r2, #0 - 80035fe: 72da strb r2, [r3, #11] + 80035e4: 4b67 ldr r3, [pc, #412] ; (8003784 ) + 80035e6: 2200 movs r2, #0 + 80035e8: 72da strb r2, [r3, #11] dis_buff.d_num[0]=16; - 8003600: 4b66 ldr r3, [pc, #408] ; (800379c ) - 8003602: 2210 movs r2, #16 - 8003604: 701a strb r2, [r3, #0] + 80035ea: 4b65 ldr r3, [pc, #404] ; (8003780 ) + 80035ec: 2210 movs r2, #16 + 80035ee: 701a strb r2, [r3, #0] dis_buff.d_num[1]=16; - 8003606: 4b65 ldr r3, [pc, #404] ; (800379c ) - 8003608: 2210 movs r2, #16 - 800360a: 705a strb r2, [r3, #1] + 80035f0: 4b63 ldr r3, [pc, #396] ; (8003780 ) + 80035f2: 2210 movs r2, #16 + 80035f4: 705a strb r2, [r3, #1] dis_buff.d_num[2]=16; - 800360c: 4b63 ldr r3, [pc, #396] ; (800379c ) - 800360e: 2210 movs r2, #16 - 8003610: 709a strb r2, [r3, #2] + 80035f6: 4b62 ldr r3, [pc, #392] ; (8003780 ) + 80035f8: 2210 movs r2, #16 + 80035fa: 709a strb r2, [r3, #2] dis_buff.d_num[3]=16; - 8003612: 4b62 ldr r3, [pc, #392] ; (800379c ) - 8003614: 2210 movs r2, #16 - 8003616: 70da strb r2, [r3, #3] + 80035fc: 4b60 ldr r3, [pc, #384] ; (8003780 ) + 80035fe: 2210 movs r2, #16 + 8003600: 70da strb r2, [r3, #3] dis_buff.dot1=0; - 8003618: 4b60 ldr r3, [pc, #384] ; (800379c ) - 800361a: 2200 movs r2, #0 - 800361c: 721a strb r2, [r3, #8] + 8003602: 4b5f ldr r3, [pc, #380] ; (8003780 ) + 8003604: 2200 movs r2, #0 + 8003606: 721a strb r2, [r3, #8] dis_buff.dot2=0; - 800361e: 4b5f ldr r3, [pc, #380] ; (800379c ) - 8003620: 2200 movs r2, #0 - 8003622: 725a strb r2, [r3, #9] + 8003608: 4b5d ldr r3, [pc, #372] ; (8003780 ) + 800360a: 2200 movs r2, #0 + 800360c: 725a strb r2, [r3, #9] dis_buff.dot3=0; - 8003624: 4b5d ldr r3, [pc, #372] ; (800379c ) - 8003626: 2200 movs r2, #0 - 8003628: 729a strb r2, [r3, #10] + 800360e: 4b5c ldr r3, [pc, #368] ; (8003780 ) + 8003610: 2200 movs r2, #0 + 8003612: 729a strb r2, [r3, #10] if(HAL_GetTick()>runtime) - 800362a: f7fd f9ed bl 8000a08 - 800362e: 0002 movs r2, r0 - 8003630: 69fb ldr r3, [r7, #28] - 8003632: 4293 cmp r3, r2 - 8003634: d216 bcs.n 8003664 + 8003614: f7fd f9f8 bl 8000a08 + 8003618: 0002 movs r2, r0 + 800361a: 69fb ldr r3, [r7, #28] + 800361c: 4293 cmp r3, r2 + 800361e: d216 bcs.n 800364e { runtime+=1000; - 8003636: 69fb ldr r3, [r7, #28] - 8003638: 22fa movs r2, #250 ; 0xfa - 800363a: 0092 lsls r2, r2, #2 - 800363c: 4694 mov ip, r2 - 800363e: 4463 add r3, ip - 8003640: 61fb str r3, [r7, #28] + 8003620: 69fb ldr r3, [r7, #28] + 8003622: 22fa movs r2, #250 ; 0xfa + 8003624: 0092 lsls r2, r2, #2 + 8003626: 4694 mov ip, r2 + 8003628: 4463 add r3, ip + 800362a: 61fb str r3, [r7, #28] if(dis_buff.led_run==1) - 8003642: 4b56 ldr r3, [pc, #344] ; (800379c ) - 8003644: 7b1b ldrb r3, [r3, #12] - 8003646: 2b01 cmp r3, #1 - 8003648: d106 bne.n 8003658 + 800362c: 4b54 ldr r3, [pc, #336] ; (8003780 ) + 800362e: 7b1b ldrb r3, [r3, #12] + 8003630: 2b01 cmp r3, #1 + 8003632: d106 bne.n 8003642 { dis_buff.led_run=0; - 800364a: 4b54 ldr r3, [pc, #336] ; (800379c ) - 800364c: 2200 movs r2, #0 - 800364e: 731a strb r2, [r3, #12] + 8003634: 4b52 ldr r3, [pc, #328] ; (8003780 ) + 8003636: 2200 movs r2, #0 + 8003638: 731a strb r2, [r3, #12] dis_buff.dot4=1; - 8003650: 4b52 ldr r3, [pc, #328] ; (800379c ) - 8003652: 2201 movs r2, #1 - 8003654: 72da strb r2, [r3, #11] - 8003656: e005 b.n 8003664 + 800363a: 4b51 ldr r3, [pc, #324] ; (8003780 ) + 800363c: 2201 movs r2, #1 + 800363e: 72da strb r2, [r3, #11] + 8003640: e005 b.n 800364e }else { dis_buff.led_run=1; - 8003658: 4b50 ldr r3, [pc, #320] ; (800379c ) - 800365a: 2201 movs r2, #1 - 800365c: 731a strb r2, [r3, #12] + 8003642: 4b4f ldr r3, [pc, #316] ; (8003780 ) + 8003644: 2201 movs r2, #1 + 8003646: 731a strb r2, [r3, #12] dis_buff.dot4=0; - 800365e: 4b4f ldr r3, [pc, #316] ; (800379c ) - 8003660: 2200 movs r2, #0 - 8003662: 72da strb r2, [r3, #11] + 8003648: 4b4d ldr r3, [pc, #308] ; (8003780 ) + 800364a: 2200 movs r2, #0 + 800364c: 72da strb r2, [r3, #11] } } - overload_times=0; - 8003664: 2314 movs r3, #20 - 8003666: 18fb adds r3, r7, r3 - 8003668: 2200 movs r2, #0 - 800366a: 801a strh r2, [r3, #0] if(key2.code!=0) - 800366c: 4b4d ldr r3, [pc, #308] ; (80037a4 ) - 800366e: 681b ldr r3, [r3, #0] - 8003670: 2b00 cmp r3, #0 - 8003672: d011 beq.n 8003698 + 800364e: 4b4e ldr r3, [pc, #312] ; (8003788 ) + 8003650: 681b ldr r3, [r3, #0] + 8003652: 2b00 cmp r3, #0 + 8003654: d011 beq.n 800367a { mode=2; - 8003674: 2317 movs r3, #23 - 8003676: 18fb adds r3, r7, r3 - 8003678: 2202 movs r2, #2 - 800367a: 701a strb r2, [r3, #0] + 8003656: 2317 movs r3, #23 + 8003658: 18fb adds r3, r7, r3 + 800365a: 2202 movs r2, #2 + 800365c: 701a strb r2, [r3, #0] countdown=countdown_set; - 800367c: 68bb ldr r3, [r7, #8] - 800367e: 60fb str r3, [r7, #12] + 800365e: 68fb ldr r3, [r7, #12] + 8003660: 613b str r3, [r7, #16] moto.moto1a=10; - 8003680: 4b47 ldr r3, [pc, #284] ; (80037a0 ) - 8003682: 220a movs r2, #10 - 8003684: 721a strb r2, [r3, #8] + 8003662: 4b48 ldr r3, [pc, #288] ; (8003784 ) + 8003664: 220a movs r2, #10 + 8003666: 721a strb r2, [r3, #8] moto.moto1b=0; - 8003686: 4b46 ldr r3, [pc, #280] ; (80037a0 ) - 8003688: 2200 movs r2, #0 - 800368a: 725a strb r2, [r3, #9] + 8003668: 4b46 ldr r3, [pc, #280] ; (8003784 ) + 800366a: 2200 movs r2, #0 + 800366c: 725a strb r2, [r3, #9] moto.moto2a=10; - 800368c: 4b44 ldr r3, [pc, #272] ; (80037a0 ) - 800368e: 220a movs r2, #10 - 8003690: 729a strb r2, [r3, #10] + 800366e: 4b45 ldr r3, [pc, #276] ; (8003784 ) + 8003670: 220a movs r2, #10 + 8003672: 729a strb r2, [r3, #10] moto.moto2b=0; - 8003692: 4b43 ldr r3, [pc, #268] ; (80037a0 ) - 8003694: 2200 movs r2, #0 - 8003696: 72da strb r2, [r3, #11] + 8003674: 4b43 ldr r3, [pc, #268] ; (8003784 ) + 8003676: 2200 movs r2, #0 + 8003678: 72da strb r2, [r3, #11] } if(key3.code!=0) - 8003698: 4b43 ldr r3, [pc, #268] ; (80037a8 ) - 800369a: 681b ldr r3, [r3, #0] - 800369c: 2b00 cmp r3, #0 - 800369e: d011 beq.n 80036c4 + 800367a: 4b44 ldr r3, [pc, #272] ; (800378c ) + 800367c: 681b ldr r3, [r3, #0] + 800367e: 2b00 cmp r3, #0 + 8003680: d011 beq.n 80036a6 { moto.moto1a=0; - 80036a0: 4b3f ldr r3, [pc, #252] ; (80037a0 ) - 80036a2: 2200 movs r2, #0 - 80036a4: 721a strb r2, [r3, #8] + 8003682: 4b40 ldr r3, [pc, #256] ; (8003784 ) + 8003684: 2200 movs r2, #0 + 8003686: 721a strb r2, [r3, #8] moto.moto1b=10; - 80036a6: 4b3e ldr r3, [pc, #248] ; (80037a0 ) - 80036a8: 220a movs r2, #10 - 80036aa: 725a strb r2, [r3, #9] + 8003688: 4b3e ldr r3, [pc, #248] ; (8003784 ) + 800368a: 220a movs r2, #10 + 800368c: 725a strb r2, [r3, #9] moto.moto2a=0; - 80036ac: 4b3c ldr r3, [pc, #240] ; (80037a0 ) - 80036ae: 2200 movs r2, #0 - 80036b0: 729a strb r2, [r3, #10] + 800368e: 4b3d ldr r3, [pc, #244] ; (8003784 ) + 8003690: 2200 movs r2, #0 + 8003692: 729a strb r2, [r3, #10] moto.moto2b=10; - 80036b2: 4b3b ldr r3, [pc, #236] ; (80037a0 ) - 80036b4: 220a movs r2, #10 - 80036b6: 72da strb r2, [r3, #11] + 8003694: 4b3b ldr r3, [pc, #236] ; (8003784 ) + 8003696: 220a movs r2, #10 + 8003698: 72da strb r2, [r3, #11] mode=3; - 80036b8: 2317 movs r3, #23 - 80036ba: 18fb adds r3, r7, r3 - 80036bc: 2203 movs r2, #3 - 80036be: 701a strb r2, [r3, #0] + 800369a: 2317 movs r3, #23 + 800369c: 18fb adds r3, r7, r3 + 800369e: 2203 movs r2, #3 + 80036a0: 701a strb r2, [r3, #0] countdown=countdown_set; - 80036c0: 68bb ldr r3, [r7, #8] - 80036c2: 60fb str r3, [r7, #12] + 80036a2: 68fb ldr r3, [r7, #12] + 80036a4: 613b str r3, [r7, #16] } if(key1.code!=0) - 80036c4: 4b39 ldr r3, [pc, #228] ; (80037ac ) - 80036c6: 681b ldr r3, [r3, #0] - 80036c8: 2b00 cmp r3, #0 - 80036ca: d100 bne.n 80036ce - 80036cc: e271 b.n 8003bb2 + 80036a6: 4b3a ldr r3, [pc, #232] ; (8003790 ) + 80036a8: 681b ldr r3, [r3, #0] + 80036aa: 2b00 cmp r3, #0 + 80036ac: d100 bne.n 80036b0 + 80036ae: e1f4 b.n 8003a9a { mode=4; - 80036ce: 2317 movs r3, #23 - 80036d0: 18fb adds r3, r7, r3 - 80036d2: 2204 movs r2, #4 - 80036d4: 701a strb r2, [r3, #0] + 80036b0: 2317 movs r3, #23 + 80036b2: 18fb adds r3, r7, r3 + 80036b4: 2204 movs r2, #4 + 80036b6: 701a strb r2, [r3, #0] countdown=10000; - 80036d6: 4b36 ldr r3, [pc, #216] ; (80037b0 ) - 80036d8: 60fb str r3, [r7, #12] + 80036b8: 4b36 ldr r3, [pc, #216] ; (8003794 ) + 80036ba: 613b str r3, [r7, #16] } break; - 80036da: e26a b.n 8003bb2 + 80036bc: e1ed b.n 8003a9a case 2: if(HAL_GetTick()>move) - 80036dc: f7fd f994 bl 8000a08 - 80036e0: 0002 movs r2, r0 - 80036e2: 69bb ldr r3, [r7, #24] - 80036e4: 4293 cmp r3, r2 - 80036e6: d219 bcs.n 800371c + 80036be: f7fd f9a3 bl 8000a08 + 80036c2: 0002 movs r2, r0 + 80036c4: 69bb ldr r3, [r7, #24] + 80036c6: 4293 cmp r3, r2 + 80036c8: d219 bcs.n 80036fe { move=HAL_GetTick()+100; - 80036e8: f7fd f98e bl 8000a08 - 80036ec: 0003 movs r3, r0 - 80036ee: 3364 adds r3, #100 ; 0x64 - 80036f0: 61bb str r3, [r7, #24] + 80036ca: f7fd f99d bl 8000a08 + 80036ce: 0003 movs r3, r0 + 80036d0: 3364 adds r3, #100 ; 0x64 + 80036d2: 61bb str r3, [r7, #24] if(dis_buff.led_run==1) - 80036f2: 4b2a ldr r3, [pc, #168] ; (800379c ) - 80036f4: 7b1b ldrb r3, [r3, #12] - 80036f6: 2b01 cmp r3, #1 - 80036f8: d103 bne.n 8003702 + 80036d4: 4b2a ldr r3, [pc, #168] ; (8003780 ) + 80036d6: 7b1b ldrb r3, [r3, #12] + 80036d8: 2b01 cmp r3, #1 + 80036da: d103 bne.n 80036e4 { dis_buff.led_run=0; - 80036fa: 4b28 ldr r3, [pc, #160] ; (800379c ) - 80036fc: 2200 movs r2, #0 - 80036fe: 731a strb r2, [r3, #12] - 8003700: e002 b.n 8003708 + 80036dc: 4b28 ldr r3, [pc, #160] ; (8003780 ) + 80036de: 2200 movs r2, #0 + 80036e0: 731a strb r2, [r3, #12] + 80036e2: e002 b.n 80036ea }else { dis_buff.led_run=1; - 8003702: 4b26 ldr r3, [pc, #152] ; (800379c ) - 8003704: 2201 movs r2, #1 - 8003706: 731a strb r2, [r3, #12] + 80036e4: 4b26 ldr r3, [pc, #152] ; (8003780 ) + 80036e6: 2201 movs r2, #1 + 80036e8: 731a strb r2, [r3, #12] } countdown-=100; - 8003708: 68fb ldr r3, [r7, #12] - 800370a: 3b64 subs r3, #100 ; 0x64 - 800370c: 60fb str r3, [r7, #12] + 80036ea: 693b ldr r3, [r7, #16] + 80036ec: 3b64 subs r3, #100 ; 0x64 + 80036ee: 613b str r3, [r7, #16] if(countdown<0) - 800370e: 68fb ldr r3, [r7, #12] - 8003710: 2b00 cmp r3, #0 - 8003712: da03 bge.n 800371c + 80036f0: 693b ldr r3, [r7, #16] + 80036f2: 2b00 cmp r3, #0 + 80036f4: da03 bge.n 80036fe { mode=1; - 8003714: 2317 movs r3, #23 - 8003716: 18fb adds r3, r7, r3 - 8003718: 2201 movs r2, #1 - 800371a: 701a strb r2, [r3, #0] + 80036f6: 2317 movs r3, #23 + 80036f8: 18fb adds r3, r7, r3 + 80036fa: 2201 movs r2, #1 + 80036fc: 701a strb r2, [r3, #0] } } dis_buff.d_num[3]=(countdown/100)%10; - 800371c: 68fb ldr r3, [r7, #12] - 800371e: 2164 movs r1, #100 ; 0x64 + 80036fe: 693b ldr r3, [r7, #16] + 8003700: 2164 movs r1, #100 ; 0x64 + 8003702: 0018 movs r0, r3 + 8003704: f7fc fd8a bl 800021c <__divsi3> + 8003708: 0003 movs r3, r0 + 800370a: 210a movs r1, #10 + 800370c: 0018 movs r0, r3 + 800370e: f7fc fe6b bl 80003e8 <__aeabi_idivmod> + 8003712: 000b movs r3, r1 + 8003714: b2da uxtb r2, r3 + 8003716: 4b1a ldr r3, [pc, #104] ; (8003780 ) + 8003718: 70da strb r2, [r3, #3] + dis_buff.d_num[2]=(countdown/1000)%10; + 800371a: 693b ldr r3, [r7, #16] + 800371c: 22fa movs r2, #250 ; 0xfa + 800371e: 0091 lsls r1, r2, #2 8003720: 0018 movs r0, r3 8003722: f7fc fd7b bl 800021c <__divsi3> 8003726: 0003 movs r3, r0 @@ -9995,1301 +9990,1120 @@ void my_code() 800372c: f7fc fe5c bl 80003e8 <__aeabi_idivmod> 8003730: 000b movs r3, r1 8003732: b2da uxtb r2, r3 - 8003734: 4b19 ldr r3, [pc, #100] ; (800379c ) - 8003736: 70da strb r2, [r3, #3] - dis_buff.d_num[2]=(countdown/1000)%10; - 8003738: 68fb ldr r3, [r7, #12] - 800373a: 22fa movs r2, #250 ; 0xfa - 800373c: 0091 lsls r1, r2, #2 - 800373e: 0018 movs r0, r3 - 8003740: f7fc fd6c bl 800021c <__divsi3> - 8003744: 0003 movs r3, r0 - 8003746: 210a movs r1, #10 - 8003748: 0018 movs r0, r3 - 800374a: f7fc fe4d bl 80003e8 <__aeabi_idivmod> - 800374e: 000b movs r3, r1 - 8003750: b2da uxtb r2, r3 - 8003752: 4b12 ldr r3, [pc, #72] ; (800379c ) - 8003754: 709a strb r2, [r3, #2] + 8003734: 4b12 ldr r3, [pc, #72] ; (8003780 ) + 8003736: 709a strb r2, [r3, #2] dis_buff.d_num[1]=((countdown/10000)%10); - 8003756: 68fb ldr r3, [r7, #12] - 8003758: 4915 ldr r1, [pc, #84] ; (80037b0 ) - 800375a: 0018 movs r0, r3 - 800375c: f7fc fd5e bl 800021c <__divsi3> - 8003760: 0003 movs r3, r0 - 8003762: 210a movs r1, #10 - 8003764: 0018 movs r0, r3 - 8003766: f7fc fe3f bl 80003e8 <__aeabi_idivmod> - 800376a: 000b movs r3, r1 - 800376c: b2da uxtb r2, r3 - 800376e: 4b0b ldr r3, [pc, #44] ; (800379c ) - 8003770: 705a strb r2, [r3, #1] + 8003738: 693b ldr r3, [r7, #16] + 800373a: 4916 ldr r1, [pc, #88] ; (8003794 ) + 800373c: 0018 movs r0, r3 + 800373e: f7fc fd6d bl 800021c <__divsi3> + 8003742: 0003 movs r3, r0 + 8003744: 210a movs r1, #10 + 8003746: 0018 movs r0, r3 + 8003748: f7fc fe4e bl 80003e8 <__aeabi_idivmod> + 800374c: 000b movs r3, r1 + 800374e: b2da uxtb r2, r3 + 8003750: 4b0b ldr r3, [pc, #44] ; (8003780 ) + 8003752: 705a strb r2, [r3, #1] dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1]; - 8003772: 4b0a ldr r3, [pc, #40] ; (800379c ) - 8003774: 785b ldrb r3, [r3, #1] - 8003776: 2b00 cmp r3, #0 - 8003778: d01c beq.n 80037b4 - 800377a: 4b08 ldr r3, [pc, #32] ; (800379c ) - 800377c: 785a ldrb r2, [r3, #1] - 800377e: e01a b.n 80037b6 - 8003780: 00003a98 .word 0x00003a98 - 8003784: 20000164 .word 0x20000164 - 8003788: 200000f8 .word 0x200000f8 - 800378c: 20000094 .word 0x20000094 - 8003790: 0000ffff .word 0x0000ffff - 8003794: 20000130 .word 0x20000130 - 8003798: 08003fcc .word 0x08003fcc - 800379c: 20000038 .word 0x20000038 - 80037a0: 20000154 .word 0x20000154 - 80037a4: 20000144 .word 0x20000144 - 80037a8: 20000120 .word 0x20000120 - 80037ac: 20000100 .word 0x20000100 - 80037b0: 00002710 .word 0x00002710 - 80037b4: 2210 movs r2, #16 - 80037b6: 4bd0 ldr r3, [pc, #832] ; (8003af8 ) - 80037b8: 705a strb r2, [r3, #1] + 8003754: 4b0a ldr r3, [pc, #40] ; (8003780 ) + 8003756: 785b ldrb r3, [r3, #1] + 8003758: 2b00 cmp r3, #0 + 800375a: d01d beq.n 8003798 + 800375c: 4b08 ldr r3, [pc, #32] ; (8003780 ) + 800375e: 785a ldrb r2, [r3, #1] + 8003760: e01b b.n 800379a + 8003762: 46c0 nop ; (mov r8, r8) + 8003764: 00003a98 .word 0x00003a98 + 8003768: 20000144 .word 0x20000144 + 800376c: 200000e8 .word 0x200000e8 + 8003770: 20000094 .word 0x20000094 + 8003774: 0000ffff .word 0x0000ffff + 8003778: 20000110 .word 0x20000110 + 800377c: 08003e90 .word 0x08003e90 + 8003780: 20000038 .word 0x20000038 + 8003784: 20000134 .word 0x20000134 + 8003788: 20000124 .word 0x20000124 + 800378c: 20000100 .word 0x20000100 + 8003790: 200000f0 .word 0x200000f0 + 8003794: 00002710 .word 0x00002710 + 8003798: 2210 movs r2, #16 + 800379a: 4bd3 ldr r3, [pc, #844] ; (8003ae8 ) + 800379c: 705a strb r2, [r3, #1] dis_buff.dot4=1; - 80037ba: 4bcf ldr r3, [pc, #828] ; (8003af8 ) - 80037bc: 2201 movs r2, #1 - 80037be: 72da strb r2, [r3, #11] + 800379e: 4bd2 ldr r3, [pc, #840] ; (8003ae8 ) + 80037a0: 2201 movs r2, #1 + 80037a2: 72da strb r2, [r3, #11] if(key3.code!=0) - 80037c0: 4bce ldr r3, [pc, #824] ; (8003afc ) - 80037c2: 681b ldr r3, [r3, #0] - 80037c4: 2b00 cmp r3, #0 - 80037c6: d013 beq.n 80037f0 + 80037a4: 4bd1 ldr r3, [pc, #836] ; (8003aec ) + 80037a6: 681b ldr r3, [r3, #0] + 80037a8: 2b00 cmp r3, #0 + 80037aa: d013 beq.n 80037d4 { mode=3; - 80037c8: 2317 movs r3, #23 - 80037ca: 18fb adds r3, r7, r3 - 80037cc: 2203 movs r2, #3 - 80037ce: 701a strb r2, [r3, #0] + 80037ac: 2317 movs r3, #23 + 80037ae: 18fb adds r3, r7, r3 + 80037b0: 2203 movs r2, #3 + 80037b2: 701a strb r2, [r3, #0] countdown=countdown_set-countdown; - 80037d0: 68ba ldr r2, [r7, #8] - 80037d2: 68fb ldr r3, [r7, #12] - 80037d4: 1ad3 subs r3, r2, r3 - 80037d6: 60fb str r3, [r7, #12] + 80037b4: 68fa ldr r2, [r7, #12] + 80037b6: 693b ldr r3, [r7, #16] + 80037b8: 1ad3 subs r3, r2, r3 + 80037ba: 613b str r3, [r7, #16] moto.moto1a=0; - 80037d8: 4bc9 ldr r3, [pc, #804] ; (8003b00 ) - 80037da: 2200 movs r2, #0 - 80037dc: 721a strb r2, [r3, #8] + 80037bc: 4bcc ldr r3, [pc, #816] ; (8003af0 ) + 80037be: 2200 movs r2, #0 + 80037c0: 721a strb r2, [r3, #8] moto.moto1b=10; - 80037de: 4bc8 ldr r3, [pc, #800] ; (8003b00 ) - 80037e0: 220a movs r2, #10 - 80037e2: 725a strb r2, [r3, #9] + 80037c2: 4bcb ldr r3, [pc, #812] ; (8003af0 ) + 80037c4: 220a movs r2, #10 + 80037c6: 725a strb r2, [r3, #9] moto.moto2a=0; - 80037e4: 4bc6 ldr r3, [pc, #792] ; (8003b00 ) - 80037e6: 2200 movs r2, #0 - 80037e8: 729a strb r2, [r3, #10] + 80037c8: 4bc9 ldr r3, [pc, #804] ; (8003af0 ) + 80037ca: 2200 movs r2, #0 + 80037cc: 729a strb r2, [r3, #10] moto.moto2b=10; - 80037ea: 4bc5 ldr r3, [pc, #788] ; (8003b00 ) - 80037ec: 220a movs r2, #10 - 80037ee: 72da strb r2, [r3, #11] + 80037ce: 4bc8 ldr r3, [pc, #800] ; (8003af0 ) + 80037d0: 220a movs r2, #10 + 80037d2: 72da strb r2, [r3, #11] } if(key4.code!=0||(moto_in1==1&&READ_MOT_IN1==0)) - 80037f0: 4bc4 ldr r3, [pc, #784] ; (8003b04 ) - 80037f2: 681b ldr r3, [r3, #0] - 80037f4: 2b00 cmp r3, #0 - 80037f6: d10a bne.n 800380e - 80037f8: 1dfb adds r3, r7, #7 - 80037fa: 781b ldrb r3, [r3, #0] - 80037fc: 2b01 cmp r3, #1 - 80037fe: d10a bne.n 8003816 - 8003800: 4bc1 ldr r3, [pc, #772] ; (8003b08 ) - 8003802: 2101 movs r1, #1 - 8003804: 0018 movs r0, r3 - 8003806: f7fe f82b bl 8001860 - 800380a: 1e03 subs r3, r0, #0 - 800380c: d103 bne.n 8003816 + 80037d4: 4bc7 ldr r3, [pc, #796] ; (8003af4 ) + 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 { mode=1; - 800380e: 2317 movs r3, #23 - 8003810: 18fb adds r3, r7, r3 - 8003812: 2201 movs r2, #1 - 8003814: 701a strb r2, [r3, #0] + 80037f4: 2317 movs r3, #23 + 80037f6: 18fb adds r3, r7, r3 + 80037f8: 2201 movs r2, #1 + 80037fa: 701a strb r2, [r3, #0] } - if(overload.code!=0) - 8003816: 4bbd ldr r3, [pc, #756] ; (8003b0c ) - 8003818: 681b ldr r3, [r3, #0] - 800381a: 2b00 cmp r3, #0 - 800381c: d005 beq.n 800382a + + 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 { - overload_times+=1; - 800381e: 2214 movs r2, #20 - 8003820: 18bb adds r3, r7, r2 - 8003822: 18ba adds r2, r7, r2 - 8003824: 8812 ldrh r2, [r2, #0] - 8003826: 3201 adds r2, #1 - 8003828: 801a strh r2, [r3, #0] - } - if(overload2.code!=0) - 800382a: 4bb9 ldr r3, [pc, #740] ; (8003b10 ) - 800382c: 681b ldr r3, [r3, #0] - 800382e: 2b00 cmp r3, #0 - 8003830: d005 beq.n 800383e - { - overload_times2+=1; - 8003832: 2212 movs r2, #18 - 8003834: 18bb adds r3, r7, r2 - 8003836: 18ba adds r2, r7, r2 - 8003838: 8812 ldrh r2, [r2, #0] - 800383a: 3201 adds r2, #1 - 800383c: 801a strh r2, [r3, #0] - } - if(overload_times>2) - 800383e: 2214 movs r2, #20 - 8003840: 18bb adds r3, r7, r2 - 8003842: 881b ldrh r3, [r3, #0] - 8003844: 2b02 cmp r3, #2 - 8003846: d905 bls.n 8003854 - { - overload_times=0; - 8003848: 18bb adds r3, r7, r2 - 800384a: 2200 movs r2, #0 - 800384c: 801a strh r2, [r3, #0] + //overload_times=0; + moto.moto1a=0; + 8003808: 4bb9 ldr r3, [pc, #740] ; (8003af0 ) + 800380a: 2200 movs r2, #0 + 800380c: 721a strb r2, [r3, #8] moto.moto1b=0; - 800384e: 4bac ldr r3, [pc, #688] ; (8003b00 ) - 8003850: 2200 movs r2, #0 - 8003852: 725a strb r2, [r3, #9] + 800380e: 4bb8 ldr r3, [pc, #736] ; (8003af0 ) + 8003810: 2200 movs r2, #0 + 8003812: 725a strb r2, [r3, #9] } - if(overload_times2>2) - 8003854: 2212 movs r2, #18 - 8003856: 18bb adds r3, r7, r2 - 8003858: 881b ldrh r3, [r3, #0] - 800385a: 2b02 cmp r3, #2 - 800385c: d800 bhi.n 8003860 - 800385e: e1aa b.n 8003bb6 + 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 { - overload_times2=0; - 8003860: 18bb adds r3, r7, r2 - 8003862: 2200 movs r2, #0 - 8003864: 801a strh r2, [r3, #0] + moto.moto2a=0; + 8003822: 4bb3 ldr r3, [pc, #716] ; (8003af0 ) + 8003824: 2200 movs r2, #0 + 8003826: 729a strb r2, [r3, #10] moto.moto2b=0; - 8003866: 4ba6 ldr r3, [pc, #664] ; (8003b00 ) - 8003868: 2200 movs r2, #0 - 800386a: 72da strb r2, [r3, #11] + 8003828: 4bb1 ldr r3, [pc, #708] ; (8003af0 ) + 800382a: 2200 movs r2, #0 + 800382c: 72da strb r2, [r3, #11] } break; - 800386c: e1a3 b.n 8003bb6 + 800382e: e136 b.n 8003a9e case 3: if(HAL_GetTick()>move) - 800386e: f7fd f8cb bl 8000a08 - 8003872: 0002 movs r2, r0 - 8003874: 69bb ldr r3, [r7, #24] - 8003876: 4293 cmp r3, r2 - 8003878: d219 bcs.n 80038ae + 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 { move=HAL_GetTick()+100; - 800387a: f7fd f8c5 bl 8000a08 - 800387e: 0003 movs r3, r0 - 8003880: 3364 adds r3, #100 ; 0x64 - 8003882: 61bb str r3, [r7, #24] + 800383c: f7fd f8e4 bl 8000a08 + 8003840: 0003 movs r3, r0 + 8003842: 3364 adds r3, #100 ; 0x64 + 8003844: 61bb str r3, [r7, #24] if(dis_buff.led_run==1) - 8003884: 4b9c ldr r3, [pc, #624] ; (8003af8 ) - 8003886: 7b1b ldrb r3, [r3, #12] - 8003888: 2b01 cmp r3, #1 - 800388a: d103 bne.n 8003894 + 8003846: 4ba8 ldr r3, [pc, #672] ; (8003ae8 ) + 8003848: 7b1b ldrb r3, [r3, #12] + 800384a: 2b01 cmp r3, #1 + 800384c: d103 bne.n 8003856 { dis_buff.led_run=0; - 800388c: 4b9a ldr r3, [pc, #616] ; (8003af8 ) - 800388e: 2200 movs r2, #0 - 8003890: 731a strb r2, [r3, #12] - 8003892: e002 b.n 800389a + 800384e: 4ba6 ldr r3, [pc, #664] ; (8003ae8 ) + 8003850: 2200 movs r2, #0 + 8003852: 731a strb r2, [r3, #12] + 8003854: e002 b.n 800385c }else { dis_buff.led_run=1; - 8003894: 4b98 ldr r3, [pc, #608] ; (8003af8 ) - 8003896: 2201 movs r2, #1 - 8003898: 731a strb r2, [r3, #12] + 8003856: 4ba4 ldr r3, [pc, #656] ; (8003ae8 ) + 8003858: 2201 movs r2, #1 + 800385a: 731a strb r2, [r3, #12] } countdown-=100; - 800389a: 68fb ldr r3, [r7, #12] - 800389c: 3b64 subs r3, #100 ; 0x64 - 800389e: 60fb str r3, [r7, #12] + 800385c: 693b ldr r3, [r7, #16] + 800385e: 3b64 subs r3, #100 ; 0x64 + 8003860: 613b str r3, [r7, #16] if(countdown<0) - 80038a0: 68fb ldr r3, [r7, #12] - 80038a2: 2b00 cmp r3, #0 - 80038a4: da03 bge.n 80038ae + 8003862: 693b ldr r3, [r7, #16] + 8003864: 2b00 cmp r3, #0 + 8003866: da03 bge.n 8003870 { mode=1; - 80038a6: 2317 movs r3, #23 - 80038a8: 18fb adds r3, r7, r3 - 80038aa: 2201 movs r2, #1 - 80038ac: 701a strb r2, [r3, #0] + 8003868: 2317 movs r3, #23 + 800386a: 18fb adds r3, r7, r3 + 800386c: 2201 movs r2, #1 + 800386e: 701a strb r2, [r3, #0] } } dis_buff.d_num[3]=(countdown/100)%10; - 80038ae: 68fb ldr r3, [r7, #12] - 80038b0: 2164 movs r1, #100 ; 0x64 - 80038b2: 0018 movs r0, r3 - 80038b4: f7fc fcb2 bl 800021c <__divsi3> - 80038b8: 0003 movs r3, r0 - 80038ba: 210a movs r1, #10 - 80038bc: 0018 movs r0, r3 - 80038be: f7fc fd93 bl 80003e8 <__aeabi_idivmod> - 80038c2: 000b movs r3, r1 - 80038c4: b2da uxtb r2, r3 - 80038c6: 4b8c ldr r3, [pc, #560] ; (8003af8 ) - 80038c8: 70da strb r2, [r3, #3] + 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; - 80038ca: 68fb ldr r3, [r7, #12] - 80038cc: 22fa movs r2, #250 ; 0xfa - 80038ce: 0091 lsls r1, r2, #2 - 80038d0: 0018 movs r0, r3 - 80038d2: f7fc fca3 bl 800021c <__divsi3> - 80038d6: 0003 movs r3, r0 - 80038d8: 210a movs r1, #10 - 80038da: 0018 movs r0, r3 - 80038dc: f7fc fd84 bl 80003e8 <__aeabi_idivmod> - 80038e0: 000b movs r3, r1 - 80038e2: b2da uxtb r2, r3 - 80038e4: 4b84 ldr r3, [pc, #528] ; (8003af8 ) - 80038e6: 709a strb r2, [r3, #2] + 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); - 80038e8: 68fb ldr r3, [r7, #12] - 80038ea: 498a ldr r1, [pc, #552] ; (8003b14 ) - 80038ec: 0018 movs r0, r3 - 80038ee: f7fc fc95 bl 800021c <__divsi3> - 80038f2: 0003 movs r3, r0 - 80038f4: 210a movs r1, #10 - 80038f6: 0018 movs r0, r3 - 80038f8: f7fc fd76 bl 80003e8 <__aeabi_idivmod> - 80038fc: 000b movs r3, r1 - 80038fe: b2da uxtb r2, r3 - 8003900: 4b7d ldr r3, [pc, #500] ; (8003af8 ) - 8003902: 705a strb r2, [r3, #1] + 80038aa: 693b ldr r3, [r7, #16] + 80038ac: 4994 ldr r1, [pc, #592] ; (8003b00 ) + 80038ae: 0018 movs r0, r3 + 80038b0: f7fc fcb4 bl 800021c <__divsi3> + 80038b4: 0003 movs r3, r0 + 80038b6: 210a movs r1, #10 + 80038b8: 0018 movs r0, r3 + 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] dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1]; - 8003904: 4b7c ldr r3, [pc, #496] ; (8003af8 ) - 8003906: 785b ldrb r3, [r3, #1] - 8003908: 2b00 cmp r3, #0 - 800390a: d002 beq.n 8003912 - 800390c: 4b7a ldr r3, [pc, #488] ; (8003af8 ) - 800390e: 785a ldrb r2, [r3, #1] - 8003910: e000 b.n 8003914 - 8003912: 2210 movs r2, #16 - 8003914: 4b78 ldr r3, [pc, #480] ; (8003af8 ) - 8003916: 705a strb r2, [r3, #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] dis_buff.dot4=1; - 8003918: 4b77 ldr r3, [pc, #476] ; (8003af8 ) - 800391a: 2201 movs r2, #1 - 800391c: 72da strb r2, [r3, #11] + 80038da: 4b83 ldr r3, [pc, #524] ; (8003ae8 ) + 80038dc: 2201 movs r2, #1 + 80038de: 72da strb r2, [r3, #11] if(key2.code!=0) - 800391e: 4b7e ldr r3, [pc, #504] ; (8003b18 ) - 8003920: 681b ldr r3, [r3, #0] - 8003922: 2b00 cmp r3, #0 - 8003924: d013 beq.n 800394e + 80038e0: 4b88 ldr r3, [pc, #544] ; (8003b04 ) + 80038e2: 681b ldr r3, [r3, #0] + 80038e4: 2b00 cmp r3, #0 + 80038e6: d013 beq.n 8003910 { mode=2; - 8003926: 2317 movs r3, #23 - 8003928: 18fb adds r3, r7, r3 - 800392a: 2202 movs r2, #2 - 800392c: 701a strb r2, [r3, #0] + 80038e8: 2317 movs r3, #23 + 80038ea: 18fb adds r3, r7, r3 + 80038ec: 2202 movs r2, #2 + 80038ee: 701a strb r2, [r3, #0] countdown=countdown_set-countdown; - 800392e: 68ba ldr r2, [r7, #8] - 8003930: 68fb ldr r3, [r7, #12] - 8003932: 1ad3 subs r3, r2, r3 - 8003934: 60fb str r3, [r7, #12] + 80038f0: 68fa ldr r2, [r7, #12] + 80038f2: 693b ldr r3, [r7, #16] + 80038f4: 1ad3 subs r3, r2, r3 + 80038f6: 613b str r3, [r7, #16] moto.moto1a=10; - 8003936: 4b72 ldr r3, [pc, #456] ; (8003b00 ) - 8003938: 220a movs r2, #10 - 800393a: 721a strb r2, [r3, #8] + 80038f8: 4b7d ldr r3, [pc, #500] ; (8003af0 ) + 80038fa: 220a movs r2, #10 + 80038fc: 721a strb r2, [r3, #8] moto.moto1b=0; - 800393c: 4b70 ldr r3, [pc, #448] ; (8003b00 ) - 800393e: 2200 movs r2, #0 - 8003940: 725a strb r2, [r3, #9] + 80038fe: 4b7c ldr r3, [pc, #496] ; (8003af0 ) + 8003900: 2200 movs r2, #0 + 8003902: 725a strb r2, [r3, #9] moto.moto2a=10; - 8003942: 4b6f ldr r3, [pc, #444] ; (8003b00 ) - 8003944: 220a movs r2, #10 - 8003946: 729a strb r2, [r3, #10] + 8003904: 4b7a ldr r3, [pc, #488] ; (8003af0 ) + 8003906: 220a movs r2, #10 + 8003908: 729a strb r2, [r3, #10] moto.moto2b=0; - 8003948: 4b6d ldr r3, [pc, #436] ; (8003b00 ) - 800394a: 2200 movs r2, #0 - 800394c: 72da strb r2, [r3, #11] + 800390a: 4b79 ldr r3, [pc, #484] ; (8003af0 ) + 800390c: 2200 movs r2, #0 + 800390e: 72da strb r2, [r3, #11] } if(key4.code!=0||(moto_in2==1&&READ_MOT_IN2==0)) - 800394e: 4b6d ldr r3, [pc, #436] ; (8003b04 ) - 8003950: 681b ldr r3, [r3, #0] - 8003952: 2b00 cmp r3, #0 - 8003954: d10a bne.n 800396c - 8003956: 1dbb adds r3, r7, #6 - 8003958: 781b ldrb r3, [r3, #0] - 800395a: 2b01 cmp r3, #1 - 800395c: d10a bne.n 8003974 - 800395e: 4b6a ldr r3, [pc, #424] ; (8003b08 ) - 8003960: 2102 movs r1, #2 - 8003962: 0018 movs r0, r3 - 8003964: f7fd ff7c bl 8001860 - 8003968: 1e03 subs r3, r0, #0 - 800396a: d103 bne.n 8003974 + 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 { mode=1; - 800396c: 2317 movs r3, #23 - 800396e: 18fb adds r3, r7, r3 - 8003970: 2201 movs r2, #1 - 8003972: 701a strb r2, [r3, #0] + 8003930: 2317 movs r3, #23 + 8003932: 18fb adds r3, r7, r3 + 8003934: 2201 movs r2, #1 + 8003936: 701a strb r2, [r3, #0] } - if(overload.code!=0) - 8003974: 4b65 ldr r3, [pc, #404] ; (8003b0c ) - 8003976: 681b ldr r3, [r3, #0] - 8003978: 2b00 cmp r3, #0 - 800397a: d005 beq.n 8003988 + 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 { - overload_times+=1; - 800397c: 2214 movs r2, #20 - 800397e: 18bb adds r3, r7, r2 - 8003980: 18ba adds r2, r7, r2 - 8003982: 8812 ldrh r2, [r2, #0] - 8003984: 3201 adds r2, #1 - 8003986: 801a strh r2, [r3, #0] - } - if(overload2.code!=0) - 8003988: 4b61 ldr r3, [pc, #388] ; (8003b10 ) - 800398a: 681b ldr r3, [r3, #0] - 800398c: 2b00 cmp r3, #0 - 800398e: d005 beq.n 800399c - { - overload_times2+=1; - 8003990: 2212 movs r2, #18 - 8003992: 18bb adds r3, r7, r2 - 8003994: 18ba adds r2, r7, r2 - 8003996: 8812 ldrh r2, [r2, #0] - 8003998: 3201 adds r2, #1 - 800399a: 801a strh r2, [r3, #0] - } - if(overload_times>2) - 800399c: 2214 movs r2, #20 - 800399e: 18bb adds r3, r7, r2 - 80039a0: 881b ldrh r3, [r3, #0] - 80039a2: 2b02 cmp r3, #2 - 80039a4: d905 bls.n 80039b2 - { - overload_times=0; - 80039a6: 18bb adds r3, r7, r2 - 80039a8: 2200 movs r2, #0 - 80039aa: 801a strh r2, [r3, #0] + //overload_times=0; + moto.moto1a=0; + 8003944: 4b6a ldr r3, [pc, #424] ; (8003af0 ) + 8003946: 2200 movs r2, #0 + 8003948: 721a strb r2, [r3, #8] moto.moto1b=0; - 80039ac: 4b54 ldr r3, [pc, #336] ; (8003b00 ) - 80039ae: 2200 movs r2, #0 - 80039b0: 725a strb r2, [r3, #9] + 800394a: 4b69 ldr r3, [pc, #420] ; (8003af0 ) + 800394c: 2200 movs r2, #0 + 800394e: 725a strb r2, [r3, #9] } - if(overload_times2>2) - 80039b2: 2212 movs r2, #18 - 80039b4: 18bb adds r3, r7, r2 - 80039b6: 881b ldrh r3, [r3, #0] - 80039b8: 2b02 cmp r3, #2 - 80039ba: d800 bhi.n 80039be - 80039bc: e0fd b.n 8003bba + 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 { - overload_times2=0; - 80039be: 18bb adds r3, r7, r2 - 80039c0: 2200 movs r2, #0 - 80039c2: 801a strh r2, [r3, #0] + //overload_times2=0; + moto.moto2a=0; + 800395e: 4b64 ldr r3, [pc, #400] ; (8003af0 ) + 8003960: 2200 movs r2, #0 + 8003962: 729a strb r2, [r3, #10] moto.moto2b=0; - 80039c4: 4b4e ldr r3, [pc, #312] ; (8003b00 ) - 80039c6: 2200 movs r2, #0 - 80039c8: 72da strb r2, [r3, #11] + 8003964: 4b62 ldr r3, [pc, #392] ; (8003af0 ) + 8003966: 2200 movs r2, #0 + 8003968: 72da strb r2, [r3, #11] } break; - 80039ca: e0f6 b.n 8003bba + 800396a: e09a b.n 8003aa2 case 4: //setting mode dis_buff.led_run=0; - 80039cc: 4b4a ldr r3, [pc, #296] ; (8003af8 ) - 80039ce: 2200 movs r2, #0 - 80039d0: 731a strb r2, [r3, #12] + 800396c: 4b5e ldr r3, [pc, #376] ; (8003ae8 ) + 800396e: 2200 movs r2, #0 + 8003970: 731a strb r2, [r3, #12] if(HAL_GetTick()>move) - 80039d2: f7fd f819 bl 8000a08 - 80039d6: 0002 movs r2, r0 - 80039d8: 69bb ldr r3, [r7, #24] - 80039da: 4293 cmp r3, r2 - 80039dc: d230 bcs.n 8003a40 + 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 { move=HAL_GetTick()+100; - 80039de: f7fd f813 bl 8000a08 - 80039e2: 0003 movs r3, r0 - 80039e4: 3364 adds r3, #100 ; 0x64 - 80039e6: 61bb str r3, [r7, #24] + 800397e: f7fd f843 bl 8000a08 + 8003982: 0003 movs r3, r0 + 8003984: 3364 adds r3, #100 ; 0x64 + 8003986: 61bb str r3, [r7, #24] if(dis_buff.dot4==1) - 80039e8: 4b43 ldr r3, [pc, #268] ; (8003af8 ) - 80039ea: 7adb ldrb r3, [r3, #11] - 80039ec: 2b01 cmp r3, #1 - 80039ee: d103 bne.n 80039f8 + 8003988: 4b57 ldr r3, [pc, #348] ; (8003ae8 ) + 800398a: 7adb ldrb r3, [r3, #11] + 800398c: 2b01 cmp r3, #1 + 800398e: d103 bne.n 8003998 { dis_buff.dot4=0; - 80039f0: 4b41 ldr r3, [pc, #260] ; (8003af8 ) - 80039f2: 2200 movs r2, #0 - 80039f4: 72da strb r2, [r3, #11] - 80039f6: e002 b.n 80039fe + 8003990: 4b55 ldr r3, [pc, #340] ; (8003ae8 ) + 8003992: 2200 movs r2, #0 + 8003994: 72da strb r2, [r3, #11] + 8003996: e002 b.n 800399e }else { dis_buff.dot4=1; - 80039f8: 4b3f ldr r3, [pc, #252] ; (8003af8 ) - 80039fa: 2201 movs r2, #1 - 80039fc: 72da strb r2, [r3, #11] + 8003998: 4b53 ldr r3, [pc, #332] ; (8003ae8 ) + 800399a: 2201 movs r2, #1 + 800399c: 72da strb r2, [r3, #11] } countdown-=100; - 80039fe: 68fb ldr r3, [r7, #12] - 8003a00: 3b64 subs r3, #100 ; 0x64 - 8003a02: 60fb str r3, [r7, #12] + 800399e: 693b ldr r3, [r7, #16] + 80039a0: 3b64 subs r3, #100 ; 0x64 + 80039a2: 613b str r3, [r7, #16] if(countdown<0) - 8003a04: 68fb ldr r3, [r7, #12] - 8003a06: 2b00 cmp r3, #0 - 8003a08: da03 bge.n 8003a12 + 80039a4: 693b ldr r3, [r7, #16] + 80039a6: 2b00 cmp r3, #0 + 80039a8: da03 bge.n 80039b2 { mode=1; - 8003a0a: 2317 movs r3, #23 - 8003a0c: 18fb adds r3, r7, r3 - 8003a0e: 2201 movs r2, #1 - 8003a10: 701a strb r2, [r3, #0] + 80039aa: 2317 movs r3, #23 + 80039ac: 18fb adds r3, r7, r3 + 80039ae: 2201 movs r2, #1 + 80039b0: 701a strb r2, [r3, #0] } if(key2.code<0){countdown_set+=1000;countdown=10000;} - 8003a12: 4b41 ldr r3, [pc, #260] ; (8003b18 ) - 8003a14: 681b ldr r3, [r3, #0] - 8003a16: 2b00 cmp r3, #0 - 8003a18: da07 bge.n 8003a2a - 8003a1a: 68bb ldr r3, [r7, #8] - 8003a1c: 22fa movs r2, #250 ; 0xfa - 8003a1e: 0092 lsls r2, r2, #2 - 8003a20: 4694 mov ip, r2 - 8003a22: 4463 add r3, ip - 8003a24: 60bb str r3, [r7, #8] - 8003a26: 4b3b ldr r3, [pc, #236] ; (8003b14 ) - 8003a28: 60fb str r3, [r7, #12] + 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] if(key3.code<0){countdown_set-=1000;countdown=10000;} - 8003a2a: 4b34 ldr r3, [pc, #208] ; (8003afc ) - 8003a2c: 681b ldr r3, [r3, #0] - 8003a2e: 2b00 cmp r3, #0 - 8003a30: da06 bge.n 8003a40 - 8003a32: 68bb ldr r3, [r7, #8] - 8003a34: 4a39 ldr r2, [pc, #228] ; (8003b1c ) - 8003a36: 4694 mov ip, r2 - 8003a38: 4463 add r3, ip - 8003a3a: 60bb str r3, [r7, #8] - 8003a3c: 4b35 ldr r3, [pc, #212] ; (8003b14 ) - 8003a3e: 60fb str r3, [r7, #12] + 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] } if(key2.code>0){countdown_set+=100;countdown=10000;} - 8003a40: 4b35 ldr r3, [pc, #212] ; (8003b18 ) - 8003a42: 681b ldr r3, [r3, #0] - 8003a44: 2b00 cmp r3, #0 - 8003a46: dd04 ble.n 8003a52 - 8003a48: 68bb ldr r3, [r7, #8] - 8003a4a: 3364 adds r3, #100 ; 0x64 - 8003a4c: 60bb str r3, [r7, #8] - 8003a4e: 4b31 ldr r3, [pc, #196] ; (8003b14 ) - 8003a50: 60fb str r3, [r7, #12] + 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] if(key3.code>0){countdown_set-=100;countdown=10000;} - 8003a52: 4b2a ldr r3, [pc, #168] ; (8003afc ) - 8003a54: 681b ldr r3, [r3, #0] - 8003a56: 2b00 cmp r3, #0 - 8003a58: dd04 ble.n 8003a64 - 8003a5a: 68bb ldr r3, [r7, #8] - 8003a5c: 3b64 subs r3, #100 ; 0x64 - 8003a5e: 60bb str r3, [r7, #8] - 8003a60: 4b2c ldr r3, [pc, #176] ; (8003b14 ) - 8003a62: 60fb str r3, [r7, #12] + 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] if(countdown_set<100){countdown_set=100;} - 8003a64: 68bb ldr r3, [r7, #8] - 8003a66: 2b63 cmp r3, #99 ; 0x63 - 8003a68: dc01 bgt.n 8003a6e - 8003a6a: 2364 movs r3, #100 ; 0x64 - 8003a6c: 60bb str r3, [r7, #8] + 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] if(countdown_set>60000){countdown_set=60000;} - 8003a6e: 68bb ldr r3, [r7, #8] - 8003a70: 4a2b ldr r2, [pc, #172] ; (8003b20 ) - 8003a72: 4293 cmp r3, r2 - 8003a74: dd01 ble.n 8003a7a - 8003a76: 4b2a ldr r3, [pc, #168] ; (8003b20 ) - 8003a78: 60bb str r3, [r7, #8] + 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] if(key4.code!=0){mode=1;} - 8003a7a: 4b22 ldr r3, [pc, #136] ; (8003b04 ) - 8003a7c: 681b ldr r3, [r3, #0] - 8003a7e: 2b00 cmp r3, #0 - 8003a80: d003 beq.n 8003a8a - 8003a82: 2317 movs r3, #23 - 8003a84: 18fb adds r3, r7, r3 - 8003a86: 2201 movs r2, #1 - 8003a88: 701a strb r2, [r3, #0] + 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] dis_buff.d_num[3]=(countdown_set/100)%10; - 8003a8a: 68bb ldr r3, [r7, #8] - 8003a8c: 2164 movs r1, #100 ; 0x64 - 8003a8e: 0018 movs r0, r3 - 8003a90: f7fc fbc4 bl 800021c <__divsi3> - 8003a94: 0003 movs r3, r0 - 8003a96: 210a movs r1, #10 - 8003a98: 0018 movs r0, r3 - 8003a9a: f7fc fca5 bl 80003e8 <__aeabi_idivmod> - 8003a9e: 000b movs r3, r1 - 8003aa0: b2da uxtb r2, r3 - 8003aa2: 4b15 ldr r3, [pc, #84] ; (8003af8 ) - 8003aa4: 70da strb r2, [r3, #3] + 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] dis_buff.d_num[2]=(countdown_set/1000)%10; - 8003aa6: 68bb ldr r3, [r7, #8] - 8003aa8: 22fa movs r2, #250 ; 0xfa - 8003aaa: 0091 lsls r1, r2, #2 - 8003aac: 0018 movs r0, r3 - 8003aae: f7fc fbb5 bl 800021c <__divsi3> - 8003ab2: 0003 movs r3, r0 - 8003ab4: 210a movs r1, #10 - 8003ab6: 0018 movs r0, r3 - 8003ab8: f7fc fc96 bl 80003e8 <__aeabi_idivmod> - 8003abc: 000b movs r3, r1 - 8003abe: b2da uxtb r2, r3 - 8003ac0: 4b0d ldr r3, [pc, #52] ; (8003af8 ) - 8003ac2: 709a strb r2, [r3, #2] + 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] dis_buff.d_num[1]=((countdown_set/10000)%10); - 8003ac4: 68bb ldr r3, [r7, #8] - 8003ac6: 4913 ldr r1, [pc, #76] ; (8003b14 ) - 8003ac8: 0018 movs r0, r3 - 8003aca: f7fc fba7 bl 800021c <__divsi3> - 8003ace: 0003 movs r3, r0 - 8003ad0: 210a movs r1, #10 - 8003ad2: 0018 movs r0, r3 - 8003ad4: f7fc fc88 bl 80003e8 <__aeabi_idivmod> - 8003ad8: 000b movs r3, r1 - 8003ada: b2da uxtb r2, r3 - 8003adc: 4b06 ldr r3, [pc, #24] ; (8003af8 ) - 8003ade: 705a strb r2, [r3, #1] + 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] dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1]; - 8003ae0: 4b05 ldr r3, [pc, #20] ; (8003af8 ) - 8003ae2: 785b ldrb r3, [r3, #1] - 8003ae4: 2b00 cmp r3, #0 - 8003ae6: d002 beq.n 8003aee - 8003ae8: 4b03 ldr r3, [pc, #12] ; (8003af8 ) - 8003aea: 785a ldrb r2, [r3, #1] - 8003aec: e000 b.n 8003af0 - 8003aee: 2210 movs r2, #16 - 8003af0: 4b01 ldr r3, [pc, #4] ; (8003af8 ) - 8003af2: 705a strb r2, [r3, #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] break; - 8003af4: e062 b.n 8003bbc - 8003af6: 46c0 nop ; (mov r8, r8) - 8003af8: 20000038 .word 0x20000038 - 8003afc: 20000120 .word 0x20000120 - 8003b00: 20000154 .word 0x20000154 - 8003b04: 200000e8 .word 0x200000e8 - 8003b08: 48001400 .word 0x48001400 - 8003b0c: 20000110 .word 0x20000110 - 8003b10: 200000d8 .word 0x200000d8 - 8003b14: 00002710 .word 0x00002710 - 8003b18: 20000144 .word 0x20000144 - 8003b1c: fffffc18 .word 0xfffffc18 - 8003b20: 0000ea60 .word 0x0000ea60 + 8003a94: e006 b.n 8003aa4 + break; + 8003a96: 46c0 nop ; (mov r8, r8) + 8003a98: e004 b.n 8003aa4 + break; + 8003a9a: 46c0 nop ; (mov r8, r8) + 8003a9c: e002 b.n 8003aa4 + break; + 8003a9e: 46c0 nop ; (mov r8, r8) + 8003aa0: e000 b.n 8003aa4 + break; + 8003aa2: 46c0 nop ; (mov r8, r8) - case 6: - moto.moto1a=10; - 8003b24: 4b87 ldr r3, [pc, #540] ; (8003d44 ) - 8003b26: 220a movs r2, #10 - 8003b28: 721a strb r2, [r3, #8] - moto.moto1b=0; - 8003b2a: 4b86 ldr r3, [pc, #536] ; (8003d44 ) - 8003b2c: 2200 movs r2, #0 - 8003b2e: 725a strb r2, [r3, #9] - moto.moto2a=10; - 8003b30: 4b84 ldr r3, [pc, #528] ; (8003d44 ) - 8003b32: 220a movs r2, #10 - 8003b34: 729a strb r2, [r3, #10] - moto.moto2b=0; - 8003b36: 4b83 ldr r3, [pc, #524] ; (8003d44 ) - 8003b38: 2200 movs r2, #0 - 8003b3a: 72da strb r2, [r3, #11] - dis_buff.d_num[3]=(ADCC.adc_value[1])%10; - 8003b3c: 4b82 ldr r3, [pc, #520] ; (8003d48 ) - 8003b3e: 691b ldr r3, [r3, #16] - 8003b40: 210a movs r1, #10 - 8003b42: 0018 movs r0, r3 - 8003b44: f7fc fc50 bl 80003e8 <__aeabi_idivmod> - 8003b48: 000b movs r3, r1 - 8003b4a: b2da uxtb r2, r3 - 8003b4c: 4b7f ldr r3, [pc, #508] ; (8003d4c ) - 8003b4e: 70da strb r2, [r3, #3] - dis_buff.d_num[2]=(ADCC.adc_value[1]/10)%10; - 8003b50: 4b7d ldr r3, [pc, #500] ; (8003d48 ) - 8003b52: 691b ldr r3, [r3, #16] - 8003b54: 210a movs r1, #10 - 8003b56: 0018 movs r0, r3 - 8003b58: f7fc fb60 bl 800021c <__divsi3> - 8003b5c: 0003 movs r3, r0 - 8003b5e: 210a movs r1, #10 - 8003b60: 0018 movs r0, r3 - 8003b62: f7fc fc41 bl 80003e8 <__aeabi_idivmod> - 8003b66: 000b movs r3, r1 - 8003b68: b2da uxtb r2, r3 - 8003b6a: 4b78 ldr r3, [pc, #480] ; (8003d4c ) - 8003b6c: 709a strb r2, [r3, #2] - dis_buff.d_num[1]=((ADCC.adc_value[1]/100)%10); - 8003b6e: 4b76 ldr r3, [pc, #472] ; (8003d48 ) - 8003b70: 691b ldr r3, [r3, #16] - 8003b72: 2164 movs r1, #100 ; 0x64 - 8003b74: 0018 movs r0, r3 - 8003b76: f7fc fb51 bl 800021c <__divsi3> - 8003b7a: 0003 movs r3, r0 - 8003b7c: 210a movs r1, #10 - 8003b7e: 0018 movs r0, r3 - 8003b80: f7fc fc32 bl 80003e8 <__aeabi_idivmod> - 8003b84: 000b movs r3, r1 - 8003b86: b2da uxtb r2, r3 - 8003b88: 4b70 ldr r3, [pc, #448] ; (8003d4c ) - 8003b8a: 705a strb r2, [r3, #1] - dis_buff.d_num[0]=((ADCC.adc_value[1]/1000)%10); - 8003b8c: 4b6e ldr r3, [pc, #440] ; (8003d48 ) - 8003b8e: 691b ldr r3, [r3, #16] - 8003b90: 22fa movs r2, #250 ; 0xfa - 8003b92: 0091 lsls r1, r2, #2 - 8003b94: 0018 movs r0, r3 - 8003b96: f7fc fb41 bl 800021c <__divsi3> - 8003b9a: 0003 movs r3, r0 - 8003b9c: 210a movs r1, #10 - 8003b9e: 0018 movs r0, r3 - 8003ba0: f7fc fc22 bl 80003e8 <__aeabi_idivmod> - 8003ba4: 000b movs r3, r1 - 8003ba6: b2da uxtb r2, r3 - 8003ba8: 4b68 ldr r3, [pc, #416] ; (8003d4c ) - 8003baa: 701a strb r2, [r3, #0] - break; - 8003bac: e006 b.n 8003bbc - break; - 8003bae: 46c0 nop ; (mov r8, r8) - 8003bb0: e004 b.n 8003bbc - break; - 8003bb2: 46c0 nop ; (mov r8, r8) - 8003bb4: e002 b.n 8003bbc - break; - 8003bb6: 46c0 nop ; (mov r8, r8) - 8003bb8: e000 b.n 8003bbc - break; - 8003bba: 46c0 nop ; (mov r8, r8) -// -// break; - } - - if(ADCC.adc_value[0]>600) - 8003bbc: 4b62 ldr r3, [pc, #392] ; (8003d48 ) - 8003bbe: 68da ldr r2, [r3, #12] - 8003bc0: 2396 movs r3, #150 ; 0x96 - 8003bc2: 009b lsls r3, r3, #2 - 8003bc4: 429a cmp r2, r3 - 8003bc6: dd05 ble.n 8003bd4 - { - GEI_BUTTON_CODE(&overload,1); - 8003bc8: 4b61 ldr r3, [pc, #388] ; (8003d50 ) - 8003bca: 2101 movs r1, #1 - 8003bcc: 0018 movs r0, r3 - 8003bce: f7fe fd4f bl 8002670 - 8003bd2: e004 b.n 8003bde - }else - { - GEI_BUTTON_CODE(&overload,0); - 8003bd4: 4b5e ldr r3, [pc, #376] ; (8003d50 ) - 8003bd6: 2100 movs r1, #0 - 8003bd8: 0018 movs r0, r3 - 8003bda: f7fe fd49 bl 8002670 - } - if(ADCC.adc_value[1]>600) - 8003bde: 4b5a ldr r3, [pc, #360] ; (8003d48 ) - 8003be0: 691a ldr r2, [r3, #16] - 8003be2: 2396 movs r3, #150 ; 0x96 - 8003be4: 009b lsls r3, r3, #2 - 8003be6: 429a cmp r2, r3 - 8003be8: dd05 ble.n 8003bf6 - { - GEI_BUTTON_CODE(&overload2,1); - 8003bea: 4b5a ldr r3, [pc, #360] ; (8003d54 ) - 8003bec: 2101 movs r1, #1 - 8003bee: 0018 movs r0, r3 - 8003bf0: f7fe fd3e bl 8002670 - 8003bf4: e004 b.n 8003c00 - }else - { - GEI_BUTTON_CODE(&overload2,0); - 8003bf6: 4b57 ldr r3, [pc, #348] ; (8003d54 ) - 8003bf8: 2100 movs r1, #0 - 8003bfa: 0018 movs r0, r3 - 8003bfc: f7fe fd38 bl 8002670 - } if(r480.add[0]==config.key_code[0]&&r480.add[1]==config.key_code[1]) - 8003c00: 4b55 ldr r3, [pc, #340] ; (8003d58 ) - 8003c02: 781a ldrb r2, [r3, #0] - 8003c04: 4b55 ldr r3, [pc, #340] ; (8003d5c ) - 8003c06: 781b ldrb r3, [r3, #0] - 8003c08: 429a cmp r2, r3 - 8003c0a: d122 bne.n 8003c52 - 8003c0c: 4b52 ldr r3, [pc, #328] ; (8003d58 ) - 8003c0e: 785a ldrb r2, [r3, #1] - 8003c10: 4b52 ldr r3, [pc, #328] ; (8003d5c ) - 8003c12: 785b ldrb r3, [r3, #1] - 8003c14: 429a cmp r2, r3 - 8003c16: d11c bne.n 8003c52 + 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 { switch(r480.key) - 8003c18: 4b4f ldr r3, [pc, #316] ; (8003d58 ) - 8003c1a: 789b ldrb r3, [r3, #2] - 8003c1c: 2bde cmp r3, #222 ; 0xde - 8003c1e: d014 beq.n 8003c4a - 8003c20: dc18 bgt.n 8003c54 - 8003c22: 2bdd cmp r3, #221 ; 0xdd - 8003c24: d00d beq.n 8003c42 - 8003c26: dc15 bgt.n 8003c54 - 8003c28: 2bd7 cmp r3, #215 ; 0xd7 - 8003c2a: d002 beq.n 8003c32 - 8003c2c: 2bdb cmp r3, #219 ; 0xdb - 8003c2e: d004 beq.n 8003c3a - 8003c30: e010 b.n 8003c54 + 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 { case 0xd7: dis_buff.button_flag[0]=1; - 8003c32: 4b46 ldr r3, [pc, #280] ; (8003d4c ) - 8003c34: 2201 movs r2, #1 - 8003c36: 711a strb r2, [r3, #4] + 8003ad6: 4b04 ldr r3, [pc, #16] ; (8003ae8 ) + 8003ad8: 2201 movs r2, #1 + 8003ada: 711a strb r2, [r3, #4] break; - 8003c38: e00c b.n 8003c54 + 8003adc: e025 b.n 8003b2a case 0xdb: dis_buff.button_flag[1]=1; - 8003c3a: 4b44 ldr r3, [pc, #272] ; (8003d4c ) - 8003c3c: 2201 movs r2, #1 - 8003c3e: 715a strb r2, [r3, #5] + 8003ade: 4b02 ldr r3, [pc, #8] ; (8003ae8 ) + 8003ae0: 2201 movs r2, #1 + 8003ae2: 715a strb r2, [r3, #5] break; - 8003c40: e008 b.n 8003c54 + 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 case 0xdd: dis_buff.button_flag[2]=1; - 8003c42: 4b42 ldr r3, [pc, #264] ; (8003d4c ) - 8003c44: 2201 movs r2, #1 - 8003c46: 719a strb r2, [r3, #6] + 8003b18: 4b40 ldr r3, [pc, #256] ; (8003c1c ) + 8003b1a: 2201 movs r2, #1 + 8003b1c: 719a strb r2, [r3, #6] break; - 8003c48: e004 b.n 8003c54 + 8003b1e: e004 b.n 8003b2a case 0xde: dis_buff.button_flag[3]=1; - 8003c4a: 4b40 ldr r3, [pc, #256] ; (8003d4c ) - 8003c4c: 2201 movs r2, #1 - 8003c4e: 71da strb r2, [r3, #7] + 8003b20: 4b3e ldr r3, [pc, #248] ; (8003c1c ) + 8003b22: 2201 movs r2, #1 + 8003b24: 71da strb r2, [r3, #7] break; - 8003c50: e000 b.n 8003c54 + 8003b26: e000 b.n 8003b2a } } - 8003c52: 46c0 nop ; (mov r8, r8) + 8003b28: 46c0 nop ; (mov r8, r8) r480.key=0; - 8003c54: 4b40 ldr r3, [pc, #256] ; (8003d58 ) - 8003c56: 2200 movs r2, #0 - 8003c58: 709a strb r2, [r3, #2] + 8003b2a: 4b3d ldr r3, [pc, #244] ; (8003c20 ) + 8003b2c: 2200 movs r2, #0 + 8003b2e: 709a strb r2, [r3, #2] r480.add[0]=0; - 8003c5a: 4b3f ldr r3, [pc, #252] ; (8003d58 ) - 8003c5c: 2200 movs r2, #0 - 8003c5e: 701a strb r2, [r3, #0] + 8003b30: 4b3b ldr r3, [pc, #236] ; (8003c20 ) + 8003b32: 2200 movs r2, #0 + 8003b34: 701a strb r2, [r3, #0] r480.add[1]=0; - 8003c60: 4b3d ldr r3, [pc, #244] ; (8003d58 ) - 8003c62: 2200 movs r2, #0 - 8003c64: 705a strb r2, [r3, #1] + 8003b36: 4b3a ldr r3, [pc, #232] ; (8003c20 ) + 8003b38: 2200 movs r2, #0 + 8003b3a: 705a strb r2, [r3, #1] GEI_BUTTON_CODE(&key1,dis_buff.button_flag[0]); - 8003c66: 4b39 ldr r3, [pc, #228] ; (8003d4c ) - 8003c68: 791a ldrb r2, [r3, #4] - 8003c6a: 4b3d ldr r3, [pc, #244] ; (8003d60 ) - 8003c6c: 0011 movs r1, r2 - 8003c6e: 0018 movs r0, r3 - 8003c70: f7fe fcfe bl 8002670 + 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 GEI_BUTTON_CODE(&key2,dis_buff.button_flag[1]); - 8003c74: 4b35 ldr r3, [pc, #212] ; (8003d4c ) - 8003c76: 795a ldrb r2, [r3, #5] - 8003c78: 4b3a ldr r3, [pc, #232] ; (8003d64 ) - 8003c7a: 0011 movs r1, r2 - 8003c7c: 0018 movs r0, r3 - 8003c7e: f7fe fcf7 bl 8002670 + 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 GEI_BUTTON_CODE(&key3,dis_buff.button_flag[2]); - 8003c82: 4b32 ldr r3, [pc, #200] ; (8003d4c ) - 8003c84: 799a ldrb r2, [r3, #6] - 8003c86: 4b38 ldr r3, [pc, #224] ; (8003d68 ) - 8003c88: 0011 movs r1, r2 - 8003c8a: 0018 movs r0, r3 - 8003c8c: f7fe fcf0 bl 8002670 + 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 GEI_BUTTON_CODE(&key4,dis_buff.button_flag[3]); - 8003c90: 4b2e ldr r3, [pc, #184] ; (8003d4c ) - 8003c92: 79da ldrb r2, [r3, #7] - 8003c94: 4b35 ldr r3, [pc, #212] ; (8003d6c ) - 8003c96: 0011 movs r1, r2 - 8003c98: 0018 movs r0, r3 - 8003c9a: f7fe fce9 bl 8002670 + 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 dis_buff.button_flag[0]=0; - 8003c9e: 4b2b ldr r3, [pc, #172] ; (8003d4c ) - 8003ca0: 2200 movs r2, #0 - 8003ca2: 711a strb r2, [r3, #4] + 8003b74: 4b29 ldr r3, [pc, #164] ; (8003c1c ) + 8003b76: 2200 movs r2, #0 + 8003b78: 711a strb r2, [r3, #4] dis_buff.button_flag[1]=0; - 8003ca4: 4b29 ldr r3, [pc, #164] ; (8003d4c ) - 8003ca6: 2200 movs r2, #0 - 8003ca8: 715a strb r2, [r3, #5] + 8003b7a: 4b28 ldr r3, [pc, #160] ; (8003c1c ) + 8003b7c: 2200 movs r2, #0 + 8003b7e: 715a strb r2, [r3, #5] dis_buff.button_flag[2]=0; - 8003caa: 4b28 ldr r3, [pc, #160] ; (8003d4c ) - 8003cac: 2200 movs r2, #0 - 8003cae: 719a strb r2, [r3, #6] + 8003b80: 4b26 ldr r3, [pc, #152] ; (8003c1c ) + 8003b82: 2200 movs r2, #0 + 8003b84: 719a strb r2, [r3, #6] dis_buff.button_flag[3]=0; - 8003cb0: 4b26 ldr r3, [pc, #152] ; (8003d4c ) - 8003cb2: 2200 movs r2, #0 - 8003cb4: 71da strb r2, [r3, #7] + 8003b86: 4b25 ldr r3, [pc, #148] ; (8003c1c ) + 8003b88: 2200 movs r2, #0 + 8003b8a: 71da strb r2, [r3, #7] if(moto_in1!=READ_MOT_IN1) - 8003cb6: 4b2e ldr r3, [pc, #184] ; (8003d70 ) - 8003cb8: 2101 movs r1, #1 - 8003cba: 0018 movs r0, r3 - 8003cbc: f7fd fdd0 bl 8001860 - 8003cc0: 0003 movs r3, r0 - 8003cc2: 001a movs r2, r3 - 8003cc4: 1dfb adds r3, r7, #7 - 8003cc6: 781b ldrb r3, [r3, #0] - 8003cc8: 4293 cmp r3, r2 - 8003cca: d013 beq.n 8003cf4 + 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 { moto_in1_pp++; - 8003ccc: 1d3b adds r3, r7, #4 - 8003cce: 881a ldrh r2, [r3, #0] - 8003cd0: 1d3b adds r3, r7, #4 - 8003cd2: 3201 adds r2, #1 - 8003cd4: 801a strh r2, [r3, #0] + 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] if(moto_in1_pp==100) - 8003cd6: 1d3b adds r3, r7, #4 - 8003cd8: 881b ldrh r3, [r3, #0] - 8003cda: 2b64 cmp r3, #100 ; 0x64 - 8003cdc: d10a bne.n 8003cf4 + 8003bb0: 187b adds r3, r7, r1 + 8003bb2: 881b ldrh r3, [r3, #0] + 8003bb4: 2b64 cmp r3, #100 ; 0x64 + 8003bb6: d10a bne.n 8003bce { moto_in1_pp=0; - 8003cde: 1d3b adds r3, r7, #4 - 8003ce0: 2200 movs r2, #0 - 8003ce2: 801a strh r2, [r3, #0] + 8003bb8: 187b adds r3, r7, r1 + 8003bba: 2200 movs r2, #0 + 8003bbc: 801a strh r2, [r3, #0] moto_in1=READ_MOT_IN1; - 8003ce4: 1dfc adds r4, r7, #7 - 8003ce6: 4b22 ldr r3, [pc, #136] ; (8003d70 ) - 8003ce8: 2101 movs r1, #1 - 8003cea: 0018 movs r0, r3 - 8003cec: f7fd fdb8 bl 8001860 - 8003cf0: 0003 movs r3, r0 - 8003cf2: 7023 strb r3, [r4, #0] + 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] } } if(moto_in2!=READ_MOT_IN2) - 8003cf4: 4b1e ldr r3, [pc, #120] ; (8003d70 ) - 8003cf6: 2102 movs r1, #2 - 8003cf8: 0018 movs r0, r3 - 8003cfa: f7fd fdb1 bl 8001860 - 8003cfe: 0003 movs r3, r0 - 8003d00: 001a movs r2, r3 - 8003d02: 1dbb adds r3, r7, #6 - 8003d04: 781b ldrb r3, [r3, #0] - 8003d06: 4293 cmp r3, r2 - 8003d08: d013 beq.n 8003d32 + 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 { moto_in2_pp++; - 8003d0a: 1cbb adds r3, r7, #2 - 8003d0c: 881a ldrh r2, [r3, #0] - 8003d0e: 1cbb adds r3, r7, #2 - 8003d10: 3201 adds r2, #1 - 8003d12: 801a strh r2, [r3, #0] + 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] if(moto_in2_pp==100) - 8003d14: 1cbb adds r3, r7, #2 - 8003d16: 881b ldrh r3, [r3, #0] - 8003d18: 2b64 cmp r3, #100 ; 0x64 - 8003d1a: d10a bne.n 8003d32 + 8003bf0: 1dbb adds r3, r7, #6 + 8003bf2: 881b ldrh r3, [r3, #0] + 8003bf4: 2b64 cmp r3, #100 ; 0x64 + 8003bf6: d10a bne.n 8003c0e { moto_in2_pp=0; - 8003d1c: 1cbb adds r3, r7, #2 - 8003d1e: 2200 movs r2, #0 - 8003d20: 801a strh r2, [r3, #0] + 8003bf8: 1dbb adds r3, r7, #6 + 8003bfa: 2200 movs r2, #0 + 8003bfc: 801a strh r2, [r3, #0] moto_in2=READ_MOT_IN2; - 8003d22: 1dbc adds r4, r7, #6 - 8003d24: 4b12 ldr r3, [pc, #72] ; (8003d70 ) - 8003d26: 2102 movs r1, #2 - 8003d28: 0018 movs r0, r3 - 8003d2a: f7fd fd99 bl 8001860 - 8003d2e: 0003 movs r3, r0 - 8003d30: 7023 strb r3, [r4, #0] + 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] } } HT1621_Display_GetButton(); - 8003d32: f7ff fa73 bl 800321c + 8003c0e: f7ff fb05 bl 800321c hc2_sever(); - 8003d36: f7ff f95d bl 8002ff4 + 8003c12: f7ff f9ef bl 8002ff4 moto_server(); - 8003d3a: f7ff f99f bl 800307c + 8003c16: f7ff fa31 bl 800307c for(char a=0;a<2;a++) - 8003d3e: f7ff fba9 bl 8003494 - 8003d42: 46c0 nop ; (mov r8, r8) - 8003d44: 20000154 .word 0x20000154 - 8003d48: 20000130 .word 0x20000130 - 8003d4c: 20000038 .word 0x20000038 - 8003d50: 20000110 .word 0x20000110 - 8003d54: 200000d8 .word 0x200000d8 - 8003d58: 200000f8 .word 0x200000f8 - 8003d5c: 20000164 .word 0x20000164 - 8003d60: 20000100 .word 0x20000100 - 8003d64: 20000144 .word 0x20000144 - 8003d68: 20000120 .word 0x20000120 - 8003d6c: 200000e8 .word 0x200000e8 - 8003d70: 48001400 .word 0x48001400 + 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 -08003d74 : +08003c38 : int read_char_flag=0; char read_data_buffer[3]; char read_begin=0; void r480_init() { - 8003d74: b580 push {r7, lr} - 8003d76: af00 add r7, sp, #0 + 8003c38: b580 push {r7, lr} + 8003c3a: af00 add r7, sp, #0 HAL_TIM_Base_Start_IT(&htim14); - 8003d78: 4b04 ldr r3, [pc, #16] ; (8003d8c ) - 8003d7a: 0018 movs r0, r3 - 8003d7c: f7fe fa80 bl 8002280 + 8003c3c: 4b04 ldr r3, [pc, #16] ; (8003c50 ) + 8003c3e: 0018 movs r0, r3 + 8003c40: f7fe fb1e bl 8002280 r480.times=0; - 8003d80: 4b03 ldr r3, [pc, #12] ; (8003d90 ) - 8003d82: 2200 movs r2, #0 - 8003d84: 809a strh r2, [r3, #4] + 8003c44: 4b03 ldr r3, [pc, #12] ; (8003c54 ) + 8003c46: 2200 movs r2, #0 + 8003c48: 809a strh r2, [r3, #4] } - 8003d86: 46c0 nop ; (mov r8, r8) - 8003d88: 46bd mov sp, r7 - 8003d8a: bd80 pop {r7, pc} - 8003d8c: 2000004c .word 0x2000004c - 8003d90: 200000f8 .word 0x200000f8 + 8003c4a: 46c0 nop ; (mov r8, r8) + 8003c4c: 46bd mov sp, r7 + 8003c4e: bd80 pop {r7, pc} + 8003c50: 2000004c .word 0x2000004c + 8003c54: 200000e8 .word 0x200000e8 -08003d94 : +08003c58 : void read_433_exit() { - 8003d94: b590 push {r4, r7, lr} - 8003d96: b083 sub sp, #12 - 8003d98: af00 add r7, sp, #0 + 8003c58: b590 push {r4, r7, lr} + 8003c5a: b083 sub sp, #12 + 8003c5c: af00 add r7, sp, #0 char a=read_infrared; - 8003d9a: 1dfc adds r4, r7, #7 - 8003d9c: 2390 movs r3, #144 ; 0x90 - 8003d9e: 05db lsls r3, r3, #23 - 8003da0: 2108 movs r1, #8 - 8003da2: 0018 movs r0, r3 - 8003da4: f7fd fd5c bl 8001860 - 8003da8: 0003 movs r3, r0 - 8003daa: 7023 strb r3, [r4, #0] + 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] int b; if(read_begin==0) - 8003dac: 4b41 ldr r3, [pc, #260] ; (8003eb4 ) - 8003dae: 781b ldrb r3, [r3, #0] - 8003db0: 2b00 cmp r3, #0 - 8003db2: d123 bne.n 8003dfc + 8003c70: 4b41 ldr r3, [pc, #260] ; (8003d78 ) + 8003c72: 781b ldrb r3, [r3, #0] + 8003c74: 2b00 cmp r3, #0 + 8003c76: d123 bne.n 8003cc0 { if(a==0) - 8003db4: 1dfb adds r3, r7, #7 - 8003db6: 781b ldrb r3, [r3, #0] - 8003db8: 2b00 cmp r3, #0 - 8003dba: d103 bne.n 8003dc4 + 8003c78: 1dfb adds r3, r7, #7 + 8003c7a: 781b ldrb r3, [r3, #0] + 8003c7c: 2b00 cmp r3, #0 + 8003c7e: d103 bne.n 8003c88 { timer_100us_tick=0; - 8003dbc: 4b3e ldr r3, [pc, #248] ; (8003eb8 ) - 8003dbe: 2200 movs r2, #0 - 8003dc0: 801a strh r2, [r3, #0] + 8003c80: 4b3e ldr r3, [pc, #248] ; (8003d7c ) + 8003c82: 2200 movs r2, #0 + 8003c84: 801a strh r2, [r3, #0] return ; - 8003dc2: e073 b.n 8003eac + 8003c86: e073 b.n 8003d70 }else { if(timer_100us_tick>70&&timer_100us_tick<100) - 8003dc4: 4b3c ldr r3, [pc, #240] ; (8003eb8 ) - 8003dc6: 881b ldrh r3, [r3, #0] - 8003dc8: 2b46 cmp r3, #70 ; 0x46 - 8003dca: d800 bhi.n 8003dce - 8003dcc: e06e b.n 8003eac - 8003dce: 4b3a ldr r3, [pc, #232] ; (8003eb8 ) - 8003dd0: 881b ldrh r3, [r3, #0] - 8003dd2: 2b63 cmp r3, #99 ; 0x63 - 8003dd4: d86a bhi.n 8003eac + 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 { read_begin=1; - 8003dd6: 4b37 ldr r3, [pc, #220] ; (8003eb4 ) - 8003dd8: 2201 movs r2, #1 - 8003dda: 701a strb r2, [r3, #0] + 8003c9a: 4b37 ldr r3, [pc, #220] ; (8003d78 ) + 8003c9c: 2201 movs r2, #1 + 8003c9e: 701a strb r2, [r3, #0] r480.times++; - 8003ddc: 4b37 ldr r3, [pc, #220] ; (8003ebc ) - 8003dde: 889b ldrh r3, [r3, #4] - 8003de0: 3301 adds r3, #1 - 8003de2: b29a uxth r2, r3 - 8003de4: 4b35 ldr r3, [pc, #212] ; (8003ebc ) - 8003de6: 809a strh r2, [r3, #4] + 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] read_bit_flag=0; - 8003de8: 4b35 ldr r3, [pc, #212] ; (8003ec0 ) - 8003dea: 2200 movs r2, #0 - 8003dec: 601a str r2, [r3, #0] + 8003cac: 4b35 ldr r3, [pc, #212] ; (8003d84 ) + 8003cae: 2200 movs r2, #0 + 8003cb0: 601a str r2, [r3, #0] read_char_flag=0; - 8003dee: 4b35 ldr r3, [pc, #212] ; (8003ec4 ) - 8003df0: 2200 movs r2, #0 - 8003df2: 601a str r2, [r3, #0] + 8003cb2: 4b35 ldr r3, [pc, #212] ; (8003d88 ) + 8003cb4: 2200 movs r2, #0 + 8003cb6: 601a str r2, [r3, #0] timer_100us_tick=0; - 8003df4: 4b30 ldr r3, [pc, #192] ; (8003eb8 ) - 8003df6: 2200 movs r2, #0 - 8003df8: 801a strh r2, [r3, #0] + 8003cb8: 4b30 ldr r3, [pc, #192] ; (8003d7c ) + 8003cba: 2200 movs r2, #0 + 8003cbc: 801a strh r2, [r3, #0] return ; - 8003dfa: e057 b.n 8003eac + 8003cbe: e057 b.n 8003d70 } } }else { if(timer_100us_tick<5) - 8003dfc: 4b2e ldr r3, [pc, #184] ; (8003eb8 ) - 8003dfe: 881b ldrh r3, [r3, #0] - 8003e00: 2b04 cmp r3, #4 - 8003e02: d803 bhi.n 8003e0c + 8003cc0: 4b2e ldr r3, [pc, #184] ; (8003d7c ) + 8003cc2: 881b ldrh r3, [r3, #0] + 8003cc4: 2b04 cmp r3, #4 + 8003cc6: d803 bhi.n 8003cd0 { timer_100us_tick=0; - 8003e04: 4b2c ldr r3, [pc, #176] ; (8003eb8 ) - 8003e06: 2200 movs r2, #0 - 8003e08: 801a strh r2, [r3, #0] + 8003cc8: 4b2c ldr r3, [pc, #176] ; (8003d7c ) + 8003cca: 2200 movs r2, #0 + 8003ccc: 801a strh r2, [r3, #0] return ; - 8003e0a: e04f b.n 8003eac + 8003cce: e04f b.n 8003d70 }else if(timer_100us_tick<12) - 8003e0c: 4b2a ldr r3, [pc, #168] ; (8003eb8 ) - 8003e0e: 881b ldrh r3, [r3, #0] - 8003e10: 2b0b cmp r3, #11 - 8003e12: d844 bhi.n 8003e9e + 8003cd0: 4b2a ldr r3, [pc, #168] ; (8003d7c ) + 8003cd2: 881b ldrh r3, [r3, #0] + 8003cd4: 2b0b cmp r3, #11 + 8003cd6: d844 bhi.n 8003d62 { read_data_buffer[read_char_flag]<<=1; - 8003e14: 4b2b ldr r3, [pc, #172] ; (8003ec4 ) - 8003e16: 681b ldr r3, [r3, #0] - 8003e18: 4a2b ldr r2, [pc, #172] ; (8003ec8 ) - 8003e1a: 5cd1 ldrb r1, [r2, r3] - 8003e1c: 4b29 ldr r3, [pc, #164] ; (8003ec4 ) - 8003e1e: 681a ldr r2, [r3, #0] - 8003e20: 1c0b adds r3, r1, #0 - 8003e22: 18db adds r3, r3, r3 - 8003e24: b2d9 uxtb r1, r3 - 8003e26: 4b28 ldr r3, [pc, #160] ; (8003ec8 ) - 8003e28: 5499 strb r1, [r3, r2] + 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] if(a==1) - 8003e2a: 1dfb adds r3, r7, #7 - 8003e2c: 781b ldrb r3, [r3, #0] - 8003e2e: 2b01 cmp r3, #1 - 8003e30: d10a bne.n 8003e48 + 8003cee: 1dfb adds r3, r7, #7 + 8003cf0: 781b ldrb r3, [r3, #0] + 8003cf2: 2b01 cmp r3, #1 + 8003cf4: d10a bne.n 8003d0c { read_data_buffer[read_char_flag]|=0x01; - 8003e32: 4b24 ldr r3, [pc, #144] ; (8003ec4 ) - 8003e34: 681b ldr r3, [r3, #0] - 8003e36: 4a24 ldr r2, [pc, #144] ; (8003ec8 ) - 8003e38: 5cd2 ldrb r2, [r2, r3] - 8003e3a: 4b22 ldr r3, [pc, #136] ; (8003ec4 ) - 8003e3c: 681b ldr r3, [r3, #0] - 8003e3e: 2101 movs r1, #1 - 8003e40: 430a orrs r2, r1 - 8003e42: b2d1 uxtb r1, r2 - 8003e44: 4a20 ldr r2, [pc, #128] ; (8003ec8 ) - 8003e46: 54d1 strb r1, [r2, r3] + 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] } read_bit_flag++; - 8003e48: 4b1d ldr r3, [pc, #116] ; (8003ec0 ) - 8003e4a: 681b ldr r3, [r3, #0] - 8003e4c: 1c5a adds r2, r3, #1 - 8003e4e: 4b1c ldr r3, [pc, #112] ; (8003ec0 ) - 8003e50: 601a str r2, [r3, #0] + 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] if(read_bit_flag==8) - 8003e52: 4b1b ldr r3, [pc, #108] ; (8003ec0 ) - 8003e54: 681b ldr r3, [r3, #0] - 8003e56: 2b08 cmp r3, #8 - 8003e58: d11d bne.n 8003e96 + 8003d16: 4b1b ldr r3, [pc, #108] ; (8003d84 ) + 8003d18: 681b ldr r3, [r3, #0] + 8003d1a: 2b08 cmp r3, #8 + 8003d1c: d11d bne.n 8003d5a { read_bit_flag=0; - 8003e5a: 4b19 ldr r3, [pc, #100] ; (8003ec0 ) - 8003e5c: 2200 movs r2, #0 - 8003e5e: 601a str r2, [r3, #0] + 8003d1e: 4b19 ldr r3, [pc, #100] ; (8003d84 ) + 8003d20: 2200 movs r2, #0 + 8003d22: 601a str r2, [r3, #0] read_char_flag++; - 8003e60: 4b18 ldr r3, [pc, #96] ; (8003ec4 ) - 8003e62: 681b ldr r3, [r3, #0] - 8003e64: 1c5a adds r2, r3, #1 - 8003e66: 4b17 ldr r3, [pc, #92] ; (8003ec4 ) - 8003e68: 601a str r2, [r3, #0] + 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] if(read_char_flag==3) - 8003e6a: 4b16 ldr r3, [pc, #88] ; (8003ec4 ) - 8003e6c: 681b ldr r3, [r3, #0] - 8003e6e: 2b03 cmp r3, #3 - 8003e70: d111 bne.n 8003e96 + 8003d2e: 4b16 ldr r3, [pc, #88] ; (8003d88 ) + 8003d30: 681b ldr r3, [r3, #0] + 8003d32: 2b03 cmp r3, #3 + 8003d34: d111 bne.n 8003d5a { //got data read_char_flag=0; - 8003e72: 4b14 ldr r3, [pc, #80] ; (8003ec4 ) - 8003e74: 2200 movs r2, #0 - 8003e76: 601a str r2, [r3, #0] + 8003d36: 4b14 ldr r3, [pc, #80] ; (8003d88 ) + 8003d38: 2200 movs r2, #0 + 8003d3a: 601a str r2, [r3, #0] timer_100us_tick=0; - 8003e78: 4b0f ldr r3, [pc, #60] ; (8003eb8 ) - 8003e7a: 2200 movs r2, #0 - 8003e7c: 801a strh r2, [r3, #0] + 8003d3c: 4b0f ldr r3, [pc, #60] ; (8003d7c ) + 8003d3e: 2200 movs r2, #0 + 8003d40: 801a strh r2, [r3, #0] r480.add[0]=read_data_buffer[0]; - 8003e7e: 4b12 ldr r3, [pc, #72] ; (8003ec8 ) - 8003e80: 781a ldrb r2, [r3, #0] - 8003e82: 4b0e ldr r3, [pc, #56] ; (8003ebc ) - 8003e84: 701a strb r2, [r3, #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] r480.add[1]=read_data_buffer[1]; - 8003e86: 4b10 ldr r3, [pc, #64] ; (8003ec8 ) - 8003e88: 785a ldrb r2, [r3, #1] - 8003e8a: 4b0c ldr r3, [pc, #48] ; (8003ebc ) - 8003e8c: 705a strb r2, [r3, #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] r480.key=read_data_buffer[2]; - 8003e8e: 4b0e ldr r3, [pc, #56] ; (8003ec8 ) - 8003e90: 789a ldrb r2, [r3, #2] - 8003e92: 4b0a ldr r3, [pc, #40] ; (8003ebc ) - 8003e94: 709a strb r2, [r3, #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] } } timer_100us_tick=0; - 8003e96: 4b08 ldr r3, [pc, #32] ; (8003eb8 ) - 8003e98: 2200 movs r2, #0 - 8003e9a: 801a strh r2, [r3, #0] + 8003d5a: 4b08 ldr r3, [pc, #32] ; (8003d7c ) + 8003d5c: 2200 movs r2, #0 + 8003d5e: 801a strh r2, [r3, #0] return ; - 8003e9c: e006 b.n 8003eac + 8003d60: e006 b.n 8003d70 }else//time out { read_begin=0; - 8003e9e: 4b05 ldr r3, [pc, #20] ; (8003eb4 ) - 8003ea0: 2200 movs r2, #0 - 8003ea2: 701a strb r2, [r3, #0] + 8003d62: 4b05 ldr r3, [pc, #20] ; (8003d78 ) + 8003d64: 2200 movs r2, #0 + 8003d66: 701a strb r2, [r3, #0] timer_100us_tick=0; - 8003ea4: 4b04 ldr r3, [pc, #16] ; (8003eb8 ) - 8003ea6: 2200 movs r2, #0 - 8003ea8: 801a strh r2, [r3, #0] + 8003d68: 4b04 ldr r3, [pc, #16] ; (8003d7c ) + 8003d6a: 2200 movs r2, #0 + 8003d6c: 801a strh r2, [r3, #0] return ; - 8003eaa: 46c0 nop ; (mov r8, r8) + 8003d6e: 46c0 nop ; (mov r8, r8) } } } - 8003eac: 46bd mov sp, r7 - 8003eae: b003 add sp, #12 - 8003eb0: bd90 pop {r4, r7, pc} - 8003eb2: 46c0 nop ; (mov r8, r8) - 8003eb4: 20000034 .word 0x20000034 - 8003eb8: 20000028 .word 0x20000028 - 8003ebc: 200000f8 .word 0x200000f8 - 8003ec0: 2000002c .word 0x2000002c - 8003ec4: 20000030 .word 0x20000030 - 8003ec8: 2000016c .word 0x2000016c + 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 -08003ecc : +08003d90 : void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { - 8003ecc: b580 push {r7, lr} - 8003ece: b082 sub sp, #8 - 8003ed0: af00 add r7, sp, #0 - 8003ed2: 0002 movs r2, r0 - 8003ed4: 1dbb adds r3, r7, #6 - 8003ed6: 801a strh r2, [r3, #0] + 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] switch(GPIO_Pin) - 8003ed8: 1dbb adds r3, r7, #6 - 8003eda: 881b ldrh r3, [r3, #0] - 8003edc: 2b08 cmp r3, #8 - 8003ede: d102 bne.n 8003ee6 + 8003d9c: 1dbb adds r3, r7, #6 + 8003d9e: 881b ldrh r3, [r3, #0] + 8003da0: 2b08 cmp r3, #8 + 8003da2: d102 bne.n 8003daa { case infeaed_Pin: read_433_exit(); - 8003ee0: f7ff ff58 bl 8003d94 + 8003da4: f7ff ff58 bl 8003c58 return ; - 8003ee4: 46c0 nop ; (mov r8, r8) + 8003da8: 46c0 nop ; (mov r8, r8) break; } } - 8003ee6: 46bd mov sp, r7 - 8003ee8: b002 add sp, #8 - 8003eea: bd80 pop {r7, pc} + 8003daa: 46bd mov sp, r7 + 8003dac: b002 add sp, #8 + 8003dae: bd80 pop {r7, pc} -08003eec : +08003db0 : void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)//100us { - 8003eec: b580 push {r7, lr} - 8003eee: b082 sub sp, #8 - 8003ef0: af00 add r7, sp, #0 - 8003ef2: 6078 str r0, [r7, #4] + 8003db0: b580 push {r7, lr} + 8003db2: b082 sub sp, #8 + 8003db4: af00 add r7, sp, #0 + 8003db6: 6078 str r0, [r7, #4] if (htim == (&htim14)) - 8003ef4: 687a ldr r2, [r7, #4] - 8003ef6: 4b06 ldr r3, [pc, #24] ; (8003f10 ) - 8003ef8: 429a cmp r2, r3 - 8003efa: d105 bne.n 8003f08 + 8003db8: 687a ldr r2, [r7, #4] + 8003dba: 4b06 ldr r3, [pc, #24] ; (8003dd4 ) + 8003dbc: 429a cmp r2, r3 + 8003dbe: d105 bne.n 8003dcc { timer_100us_tick++; - 8003efc: 4b05 ldr r3, [pc, #20] ; (8003f14 ) - 8003efe: 881b ldrh r3, [r3, #0] - 8003f00: 3301 adds r3, #1 - 8003f02: b29a uxth r2, r3 - 8003f04: 4b03 ldr r3, [pc, #12] ; (8003f14 ) - 8003f06: 801a strh r2, [r3, #0] + 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] } } - 8003f08: 46c0 nop ; (mov r8, r8) - 8003f0a: 46bd mov sp, r7 - 8003f0c: b002 add sp, #8 - 8003f0e: bd80 pop {r7, pc} - 8003f10: 2000004c .word 0x2000004c - 8003f14: 20000028 .word 0x20000028 + 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 -08003f18 <__libc_init_array>: - 8003f18: b570 push {r4, r5, r6, lr} - 8003f1a: 2600 movs r6, #0 - 8003f1c: 4d0c ldr r5, [pc, #48] ; (8003f50 <__libc_init_array+0x38>) - 8003f1e: 4c0d ldr r4, [pc, #52] ; (8003f54 <__libc_init_array+0x3c>) - 8003f20: 1b64 subs r4, r4, r5 - 8003f22: 10a4 asrs r4, r4, #2 - 8003f24: 42a6 cmp r6, r4 - 8003f26: d109 bne.n 8003f3c <__libc_init_array+0x24> - 8003f28: 2600 movs r6, #0 - 8003f2a: f000 f821 bl 8003f70 <_init> - 8003f2e: 4d0a ldr r5, [pc, #40] ; (8003f58 <__libc_init_array+0x40>) - 8003f30: 4c0a ldr r4, [pc, #40] ; (8003f5c <__libc_init_array+0x44>) - 8003f32: 1b64 subs r4, r4, r5 - 8003f34: 10a4 asrs r4, r4, #2 - 8003f36: 42a6 cmp r6, r4 - 8003f38: d105 bne.n 8003f46 <__libc_init_array+0x2e> - 8003f3a: bd70 pop {r4, r5, r6, pc} - 8003f3c: 00b3 lsls r3, r6, #2 - 8003f3e: 58eb ldr r3, [r5, r3] - 8003f40: 4798 blx r3 - 8003f42: 3601 adds r6, #1 - 8003f44: e7ee b.n 8003f24 <__libc_init_array+0xc> - 8003f46: 00b3 lsls r3, r6, #2 - 8003f48: 58eb ldr r3, [r5, r3] - 8003f4a: 4798 blx r3 - 8003f4c: 3601 adds r6, #1 - 8003f4e: e7f2 b.n 8003f36 <__libc_init_array+0x1e> - 8003f50: 08003fe8 .word 0x08003fe8 - 8003f54: 08003fe8 .word 0x08003fe8 - 8003f58: 08003fe8 .word 0x08003fe8 - 8003f5c: 08003fec .word 0x08003fec +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 -08003f60 : - 8003f60: 0003 movs r3, r0 - 8003f62: 1882 adds r2, r0, r2 - 8003f64: 4293 cmp r3, r2 - 8003f66: d100 bne.n 8003f6a - 8003f68: 4770 bx lr - 8003f6a: 7019 strb r1, [r3, #0] - 8003f6c: 3301 adds r3, #1 - 8003f6e: e7f9 b.n 8003f64 +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 -08003f70 <_init>: - 8003f70: b5f8 push {r3, r4, r5, r6, r7, lr} - 8003f72: 46c0 nop ; (mov r8, r8) - 8003f74: bcf8 pop {r3, r4, r5, r6, r7} - 8003f76: bc08 pop {r3} - 8003f78: 469e mov lr, r3 - 8003f7a: 4770 bx lr +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 -08003f7c <_fini>: - 8003f7c: b5f8 push {r3, r4, r5, r6, r7, lr} - 8003f7e: 46c0 nop ; (mov r8, r8) - 8003f80: bcf8 pop {r3, r4, r5, r6, r7} - 8003f82: bc08 pop {r3} - 8003f84: 469e mov lr, r3 - 8003f86: 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 diff --git a/Debug/Motor_Controller2.map b/Debug/Motor_Controller2.map index 6f380ae..e21a63f 100644 --- a/Debug/Motor_Controller2.map +++ b/Debug/Motor_Controller2.map @@ -20,7 +20,6 @@ Archive member included to satisfy reference by file (symbol) Allocating common symbols Common symbol size file -overload2 0x10 ./my_software/my_code.o key4 0x10 ./my_software/my_code.o read_data_buffer 0x3 ./my_software/r480r.o r480 0x6 ./my_software/my_code.o @@ -28,7 +27,6 @@ uwTick 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0 pFlash 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.o dis_buff 0x11 ./Core/Src/main.o key1 0x10 ./my_software/my_code.o -overload 0x10 ./my_software/my_code.o key3 0x10 ./my_software/my_code.o ADCC 0x14 ./my_software/my_code.o key2 0x10 ./my_software/my_code.o @@ -3534,7 +3532,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id 0x0000000008000000 g_pfnVectors 0x00000000080000c0 . = ALIGN (0x4) -.text 0x00000000080000c0 0x3ec8 +.text 0x00000000080000c0 0x3d8c 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 @@ -3801,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 0x95c ./my_software/my_code.o + .text.my_code 0x0000000008003418 0x820 ./my_software/my_code.o 0x0000000008003418 my_code .text.r480_init - 0x0000000008003d74 0x20 ./my_software/r480r.o - 0x0000000008003d74 r480_init + 0x0000000008003c38 0x20 ./my_software/r480r.o + 0x0000000008003c38 r480_init .text.read_433_exit - 0x0000000008003d94 0x138 ./my_software/r480r.o - 0x0000000008003d94 read_433_exit + 0x0000000008003c58 0x138 ./my_software/r480r.o + 0x0000000008003c58 read_433_exit .text.HAL_GPIO_EXTI_Callback - 0x0000000008003ecc 0x20 ./my_software/r480r.o - 0x0000000008003ecc HAL_GPIO_EXTI_Callback + 0x0000000008003d90 0x20 ./my_software/r480r.o + 0x0000000008003d90 HAL_GPIO_EXTI_Callback .text.HAL_TIM_PeriodElapsedCallback - 0x0000000008003eec 0x2c ./my_software/r480r.o - 0x0000000008003eec HAL_TIM_PeriodElapsedCallback + 0x0000000008003db0 0x2c ./my_software/r480r.o + 0x0000000008003db0 HAL_TIM_PeriodElapsedCallback .text.__libc_init_array - 0x0000000008003f18 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) - 0x0000000008003f18 __libc_init_array - .text.memset 0x0000000008003f60 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) - 0x0000000008003f60 memset + 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 *(.glue_7) - .glue_7 0x0000000008003f70 0x0 linker stubs + .glue_7 0x0000000008003e34 0x0 linker stubs *(.glue_7t) - .glue_7t 0x0000000008003f70 0x0 linker stubs + .glue_7t 0x0000000008003e34 0x0 linker stubs *(.eh_frame) - .eh_frame 0x0000000008003f70 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 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 *(.init) - .init 0x0000000008003f70 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 - 0x0000000008003f70 _init - .init 0x0000000008003f74 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 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 *(.fini) - .fini 0x0000000008003f7c 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 - 0x0000000008003f7c _fini - .fini 0x0000000008003f80 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 - 0x0000000008003f88 . = ALIGN (0x4) - 0x0000000008003f88 _etext = . + .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 = . -.vfp11_veneer 0x0000000008003f88 0x0 - .vfp11_veneer 0x0000000008003f88 0x0 linker stubs +.vfp11_veneer 0x0000000008003e4c 0x0 + .vfp11_veneer 0x0000000008003e4c 0x0 linker stubs -.v4_bx 0x0000000008003f88 0x0 - .v4_bx 0x0000000008003f88 0x0 linker stubs +.v4_bx 0x0000000008003e4c 0x0 + .v4_bx 0x0000000008003e4c 0x0 linker stubs -.iplt 0x0000000008003f88 0x0 - .iplt 0x0000000008003f88 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 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 -.rodata 0x0000000008003f88 0x60 - 0x0000000008003f88 . = ALIGN (0x4) +.rodata 0x0000000008003e4c 0x58 + 0x0000000008003e4c . = ALIGN (0x4) *(.rodata) - .rodata 0x0000000008003f88 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + .rodata 0x0000000008003e4c 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o *(.rodata*) .rodata.AHBPrescTable - 0x0000000008003fa8 0x10 ./Core/Src/system_stm32f0xx.o - 0x0000000008003fa8 AHBPrescTable + 0x0000000008003e6c 0x10 ./Core/Src/system_stm32f0xx.o + 0x0000000008003e6c AHBPrescTable .rodata.LED_Tab - 0x0000000008003fb8 0x12 ./my_software/my_code.o - 0x0000000008003fb8 LED_Tab - *fill* 0x0000000008003fca 0x2 + 0x0000000008003e7c 0x12 ./my_software/my_code.o + 0x0000000008003e7c LED_Tab + *fill* 0x0000000008003e8e 0x2 .rodata.my_code - 0x0000000008003fcc 0x1c ./my_software/my_code.o - 0x0000000008003fe8 . = ALIGN (0x4) + 0x0000000008003e90 0x14 ./my_software/my_code.o + 0x0000000008003ea4 . = ALIGN (0x4) -.rel.dyn 0x0000000008003fe8 0x0 - .rel.iplt 0x0000000008003fe8 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 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 -.ARM.extab 0x0000000008003fe8 0x0 - 0x0000000008003fe8 . = ALIGN (0x4) +.ARM.extab 0x0000000008003ea4 0x0 + 0x0000000008003ea4 . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x0000000008003fe8 . = ALIGN (0x4) + 0x0000000008003ea4 . = ALIGN (0x4) -.ARM 0x0000000008003fe8 0x0 - 0x0000000008003fe8 . = ALIGN (0x4) - 0x0000000008003fe8 __exidx_start = . +.ARM 0x0000000008003ea4 0x0 + 0x0000000008003ea4 . = ALIGN (0x4) + 0x0000000008003ea4 __exidx_start = . *(.ARM.exidx*) - 0x0000000008003fe8 __exidx_end = . - 0x0000000008003fe8 . = ALIGN (0x4) + 0x0000000008003ea4 __exidx_end = . + 0x0000000008003ea4 . = ALIGN (0x4) -.preinit_array 0x0000000008003fe8 0x0 - 0x0000000008003fe8 . = ALIGN (0x4) - 0x0000000008003fe8 PROVIDE (__preinit_array_start = .) +.preinit_array 0x0000000008003ea4 0x0 + 0x0000000008003ea4 . = ALIGN (0x4) + 0x0000000008003ea4 PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x0000000008003fe8 PROVIDE (__preinit_array_end = .) - 0x0000000008003fe8 . = ALIGN (0x4) + 0x0000000008003ea4 PROVIDE (__preinit_array_end = .) + 0x0000000008003ea4 . = ALIGN (0x4) -.init_array 0x0000000008003fe8 0x4 - 0x0000000008003fe8 . = ALIGN (0x4) - 0x0000000008003fe8 PROVIDE (__init_array_start = .) +.init_array 0x0000000008003ea4 0x4 + 0x0000000008003ea4 . = ALIGN (0x4) + 0x0000000008003ea4 PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x0000000008003fe8 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 - 0x0000000008003fec PROVIDE (__init_array_end = .) - 0x0000000008003fec . = ALIGN (0x4) + .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) -.fini_array 0x0000000008003fec 0x4 - 0x0000000008003fec . = ALIGN (0x4) +.fini_array 0x0000000008003ea8 0x4 + 0x0000000008003ea8 . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x0000000008003fec 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 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 [!provide] PROVIDE (__fini_array_end = .) - 0x0000000008003ff0 . = ALIGN (0x4) - 0x0000000008003ff0 _sidata = LOADADDR (.data) + 0x0000000008003eac . = ALIGN (0x4) + 0x0000000008003eac _sidata = LOADADDR (.data) -.data 0x0000000020000000 0xc load address 0x0000000008003ff0 +.data 0x0000000020000000 0xc load address 0x0000000008003eac 0x0000000020000000 . = ALIGN (0x4) 0x0000000020000000 _sdata = . *(.data) @@ -3923,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 0x0000000008003ffc +.igot.plt 0x000000002000000c 0x0 load address 0x0000000008003eb8 .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 0x164 load address 0x0000000008003ffc +.bss 0x000000002000000c 0x144 load address 0x0000000008003eb8 0x000000002000000c _sbss = . 0x000000002000000c __bss_start__ = _sbss *(.bss) @@ -3954,34 +3952,32 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id 0x0000000020000094 hadc COMMON 0x00000000200000d4 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o 0x00000000200000d4 uwTick - COMMON 0x00000000200000d8 0x94 ./my_software/my_code.o - 0x00000000200000d8 overload2 - 0x00000000200000e8 key4 - 0x00000000200000f8 r480 - 0x0000000020000100 key1 - 0x0000000020000110 overload - 0x0000000020000120 key3 - 0x0000000020000130 ADCC - 0x0000000020000144 key2 - 0x0000000020000154 moto - 0x0000000020000164 config - COMMON 0x000000002000016c 0x3 ./my_software/r480r.o - 0x000000002000016c read_data_buffer - 0x0000000020000170 . = ALIGN (0x4) - *fill* 0x000000002000016f 0x1 - 0x0000000020000170 _ebss = . - 0x0000000020000170 __bss_end__ = _ebss + COMMON 0x00000000200000d8 0x74 ./my_software/my_code.o + 0x00000000200000d8 key4 + 0x00000000200000e8 r480 + 0x00000000200000f0 key1 + 0x0000000020000100 key3 + 0x0000000020000110 ADCC + 0x0000000020000124 key2 + 0x0000000020000134 moto + 0x0000000020000144 config + COMMON 0x000000002000014c 0x3 ./my_software/r480r.o + 0x000000002000014c read_data_buffer + 0x0000000020000150 . = ALIGN (0x4) + *fill* 0x000000002000014f 0x1 + 0x0000000020000150 _ebss = . + 0x0000000020000150 __bss_end__ = _ebss ._user_heap_stack - 0x0000000020000170 0x600 load address 0x0000000008003ffc - 0x0000000020000170 . = ALIGN (0x8) + 0x0000000020000150 0x600 load address 0x0000000008003eb8 + 0x0000000020000150 . = ALIGN (0x8) [!provide] PROVIDE (end = .) - 0x0000000020000170 PROVIDE (_end = .) - 0x0000000020000370 . = (. + _Min_Heap_Size) - *fill* 0x0000000020000170 0x200 - 0x0000000020000770 . = (. + _Min_Stack_Size) - *fill* 0x0000000020000370 0x400 - 0x0000000020000770 . = ALIGN (0x8) + 0x0000000020000150 PROVIDE (_end = .) + 0x0000000020000350 . = (. + _Min_Heap_Size) + *fill* 0x0000000020000150 0x200 + 0x0000000020000750 . = (. + _Min_Stack_Size) + *fill* 0x0000000020000350 0x400 + 0x0000000020000750 . = ALIGN (0x8) /DISCARD/ libc.a(*) @@ -4053,7 +4049,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id LOAD /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/libm.a LOAD /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/libgcc.a -.debug_info 0x0000000000000000 0xbeb2 +.debug_info 0x0000000000000000 0xbe6e .debug_info 0x0000000000000000 0xf4c ./Core/Src/main.o .debug_info 0x0000000000000f4c 0xcdc ./Core/Src/stm32f0xx_hal_msp.o .debug_info 0x0000000000001c28 0x76a ./Core/Src/stm32f0xx_it.o @@ -4072,8 +4068,8 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .debug_info 0x0000000000009f93 0x2d3 ./my_software/gpio.o .debug_info 0x000000000000a266 0x3cc ./my_software/ht1621.o .debug_info 0x000000000000a632 0x3ea ./my_software/iic.o - .debug_info 0x000000000000aa1c 0xba7 ./my_software/my_code.o - .debug_info 0x000000000000b5c3 0x8ef ./my_software/r480r.o + .debug_info 0x000000000000aa1c 0xb63 ./my_software/my_code.o + .debug_info 0x000000000000b57f 0x8ef ./my_software/r480r.o .debug_abbrev 0x0000000000000000 0x22ae .debug_abbrev 0x0000000000000000 0x23c ./Core/Src/main.o @@ -4229,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 0xf24c +.debug_line 0x0000000000000000 0xf1d9 .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 @@ -4248,10 +4244,10 @@ 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 0xe16 ./my_software/my_code.o - .debug_line 0x000000000000ea5b 0x7f1 ./my_software/r480r.o + .debug_line 0x000000000000dc45 0xda3 ./my_software/my_code.o + .debug_line 0x000000000000e9e8 0x7f1 ./my_software/r480r.o -.debug_str 0x0000000000000000 0x5f5f6 +.debug_str 0x0000000000000000 0x5f5c4 .debug_str 0x0000000000000000 0x5c9bc ./Core/Src/main.o 0x5cd69 (size before relaxing) .debug_str 0x000000000005c9bc 0x84 ./Core/Src/stm32f0xx_hal_msp.o @@ -4288,9 +4284,9 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id 0x5c4ba (size before relaxing) .debug_str 0x000000000005f0e7 0x256 ./my_software/iic.o 0x5c2f3 (size before relaxing) - .debug_str 0x000000000005f33d 0x202 ./my_software/my_code.o - 0x5ca9f (size before relaxing) - .debug_str 0x000000000005f53f 0xb7 ./my_software/r480r.o + .debug_str 0x000000000005f33d 0x1d0 ./my_software/my_code.o + 0x5ca6d (size before relaxing) + .debug_str 0x000000000005f50d 0xb7 ./my_software/r480r.o 0x5c64b (size before relaxing) .comment 0x0000000000000000 0x53 diff --git a/Motor_Controller2.ioc b/Motor_Controller2.ioc index e3b3f03..de45dfb 100644 --- a/Motor_Controller2.ioc +++ b/Motor_Controller2.ioc @@ -1,6 +1,7 @@ #MicroXplorer Configuration settings - do not modify -ADC.ContinuousConvMode=ENABLE -ADC.IPParameters=ContinuousConvMode +ADC.ContinuousConvMode=DISABLE +ADC.DiscontinuousConvMode=ENABLE +ADC.IPParameters=ContinuousConvMode,DiscontinuousConvMode File.Version=6 GPIO.groupedBy=Group By Peripherals KeepUserPlacement=false diff --git a/my_software/my_code.c b/my_software/my_code.c index fc6db25..4835b6e 100644 --- a/my_software/my_code.c +++ b/my_software/my_code.c @@ -12,7 +12,7 @@ #include "eeprom.h" extern ADC_HandleTypeDef hadc; -struct button key1,key2,key3,key4,overload,overload2; +struct button key1,key2,key3,key4; config_setting config; @@ -290,8 +290,7 @@ void my_code() uint32_t runtime=0,move=0; uint8_t mode=1; - uint16_t overload_times=0; - uint16_t overload_times2=0; + long countdown=1000; long countdown_set=15000; @@ -309,11 +308,12 @@ void my_code() r480.key=0; } - mode=6; + while(1) { //get ADC + for(char a=0;a<2;a++) { HAL_ADC_Start(&hadc); @@ -394,7 +394,6 @@ void my_code() } - overload_times=0; if(key2.code!=0) { mode=2; @@ -456,22 +455,16 @@ void my_code() { mode=1; } - if(overload.code!=0) + + if(ADCC.adc_value[1]>400) { - overload_times+=1; - } - if(overload2.code!=0) - { - overload_times2+=1; - } - if(overload_times>2) - { - overload_times=0; + //overload_times=0; + moto.moto1a=0; moto.moto1b=0; } - if(overload_times2>2) + if(ADCC.adc_value[0]>400) { - overload_times2=0; + moto.moto2a=0; moto.moto2b=0; } break; @@ -511,22 +504,16 @@ void my_code() { mode=1; } - if(overload.code!=0) + if(ADCC.adc_value[1]>400) { - overload_times+=1; - } - if(overload2.code!=0) - { - overload_times2+=1; - } - if(overload_times>2) - { - overload_times=0; + //overload_times=0; + moto.moto1a=0; moto.moto1b=0; } - if(overload_times2>2) + if(ADCC.adc_value[0]>400) { - overload_times2=0; + //overload_times2=0; + moto.moto2a=0; moto.moto2b=0; } break; @@ -568,74 +555,11 @@ void my_code() break; - case 6: - moto.moto1a=10; - moto.moto1b=0; - moto.moto2a=10; - moto.moto2b=0; - dis_buff.d_num[3]=(ADCC.adc_value[1])%10; - dis_buff.d_num[2]=(ADCC.adc_value[1]/10)%10; - dis_buff.d_num[1]=((ADCC.adc_value[1]/100)%10); - dis_buff.d_num[0]=((ADCC.adc_value[1]/1000)%10); - break; -// case 5: -// //overload -// moto.moto1a=0; -// moto.moto1b=0; -// moto.moto2a=0; -// moto.moto2b=0; -// dis_buff.led_run=1; -// overload_times=0; -// dis_buff.d_num[3]=(countdown/100)%10; -// dis_buff.d_num[2]=(countdown/1000)%10; -// dis_buff.d_num[1]=((countdown/10000)%10); -// dis_buff.d_num[1]=dis_buff.d_num[1]==0?16:dis_buff.d_num[1]; -// dis_buff.dot3=1; -// if(key4.code!=0){mode=1;} -// -// if(key2.code!=0) -// { -// mode=2; -// if(overload_mode==2) -// { -// -// }else -// { -// countdown=countdown_set-countdown; -// } -// -// } -// if(key3.code!=0) -// { -// mode=3; -// if(overload_mode==3) -// { -// -// }else -// { -// countdown=countdown_set-countdown; -// } -// -// } -// -// break; + } - if(ADCC.adc_value[0]>600) - { - GEI_BUTTON_CODE(&overload,1); - }else - { - GEI_BUTTON_CODE(&overload,0); - } - if(ADCC.adc_value[1]>600) - { - GEI_BUTTON_CODE(&overload2,1); - }else - { - GEI_BUTTON_CODE(&overload2,0); - } +