diff --git a/Debug/Motor_Controller2.bin b/Debug/Motor_Controller2.bin index aa7e984..6cd3658 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 be6afef..8494916 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 00002f8c 080000c0 080000c0 000100c0 2**2 + 1 .text 0000303c 080000c0 080000c0 000100c0 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 0000005c 0800304c 0800304c 0001304c 2**2 + 2 .rodata 00000060 080030fc 080030fc 000130fc 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 080030a8 080030a8 0002000c 2**0 + 3 .ARM.extab 00000000 0800315c 0800315c 0002000c 2**0 CONTENTS - 4 .ARM 00000000 080030a8 080030a8 0002000c 2**0 + 4 .ARM 00000000 0800315c 0800315c 0002000c 2**0 CONTENTS - 5 .preinit_array 00000000 080030a8 080030a8 0002000c 2**0 + 5 .preinit_array 00000000 0800315c 0800315c 0002000c 2**0 CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 080030a8 080030a8 000130a8 2**2 + 6 .init_array 00000004 0800315c 0800315c 0001315c 2**2 CONTENTS, ALLOC, LOAD, DATA - 7 .fini_array 00000004 080030ac 080030ac 000130ac 2**2 + 7 .fini_array 00000004 08003160 08003160 00013160 2**2 CONTENTS, ALLOC, LOAD, DATA - 8 .data 0000000c 20000000 080030b0 00020000 2**2 + 8 .data 0000000c 20000000 08003164 00020000 2**2 CONTENTS, ALLOC, LOAD, DATA - 9 .bss 000000e0 2000000c 080030bc 0002000c 2**2 + 9 .bss 000000f8 2000000c 08003170 0002000c 2**2 ALLOC - 10 ._user_heap_stack 00000604 200000ec 080030bc 000200ec 2**0 + 10 ._user_heap_stack 00000604 20000104 08003170 00020104 2**0 ALLOC 11 .ARM.attributes 00000028 00000000 00000000 0002000c 2**0 CONTENTS, READONLY - 12 .debug_info 000050b2 00000000 00000000 00020034 2**0 + 12 .debug_info 000054e8 00000000 00000000 00020034 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 13 .debug_abbrev 000013fb 00000000 00000000 000250e6 2**0 + 13 .debug_abbrev 00001556 00000000 00000000 0002551c 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 14 .debug_aranges 000004d8 00000000 00000000 000264e8 2**3 + 14 .debug_aranges 00000518 00000000 00000000 00026a78 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 15 .debug_ranges 00000420 00000000 00000000 000269c0 2**3 + 15 .debug_ranges 00000450 00000000 00000000 00026f90 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 16 .debug_macro 0000e973 00000000 00000000 00026de0 2**0 + 16 .debug_macro 0000ec48 00000000 00000000 000273e0 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_line 00007107 00000000 00000000 00035753 2**0 + 17 .debug_line 0000791f 00000000 00000000 00036028 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_str 000567a6 00000000 00000000 0003c85a 2**0 + 18 .debug_str 0005692c 00000000 00000000 0003d947 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .comment 00000053 00000000 00000000 00093000 2**0 + 19 .comment 00000053 00000000 00000000 00094273 2**0 CONTENTS, READONLY - 20 .debug_frame 00000f50 00000000 00000000 00093054 2**2 + 20 .debug_frame 00000ff4 00000000 00000000 000942c8 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: 08003034 .word 0x08003034 + 80000e4: 080030e4 .word 0x080030e4 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: 08003034 .word 0x08003034 + 8000104: 080030e4 .word 0x080030e4 08000108 <__udivsi3>: 8000108: 2200 movs r2, #0 @@ -499,7 +499,7 @@ int main(void) /* USER CODE BEGIN 2 */ my_code(); - 8000408: f002 f95a bl 80026c0 + 8000408: f002 f9b2 bl 8002770 /* USER CODE END 2 */ /* Infinite loop */ @@ -524,14 +524,14 @@ void SystemClock_Config(void) 800041a: 2330 movs r3, #48 ; 0x30 800041c: 001a movs r2, r3 800041e: 2100 movs r1, #0 - 8000420: f002 fe00 bl 8003024 + 8000420: f002 fe58 bl 80030d4 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; 8000424: 003b movs r3, r7 8000426: 0018 movs r0, r3 8000428: 2310 movs r3, #16 800042a: 001a movs r2, r3 800042c: 2100 movs r1, #0 - 800042e: f002 fdf9 bl 8003024 + 800042e: f002 fe51 bl 80030d4 /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. @@ -577,7 +577,7 @@ void SystemClock_Config(void) if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) 800046c: 187b adds r3, r7, r1 800046e: 0018 movs r0, r3 - 8000470: f001 f91a bl 80016a8 + 8000470: f001 f8fe bl 8001670 8000474: 1e03 subs r3, r0, #0 8000476: d001 beq.n 800047c { @@ -608,7 +608,7 @@ void SystemClock_Config(void) 8000494: 003b movs r3, r7 8000496: 2101 movs r1, #1 8000498: 0018 movs r0, r3 - 800049a: f001 fc1f bl 8001cdc + 800049a: f001 fc03 bl 8001ca4 800049e: 1e03 subs r3, r0, #0 80004a0: d001 beq.n 80004a6 { @@ -643,7 +643,7 @@ static void MX_ADC_Init(void) 80004ba: 230c movs r3, #12 80004bc: 001a movs r2, r3 80004be: 2100 movs r1, #0 - 80004c0: f002 fdb0 bl 8003024 + 80004c0: f002 fe08 bl 80030d4 /* USER CODE BEGIN ADC_Init 1 */ /* USER CODE END ADC_Init 1 */ @@ -772,7 +772,7 @@ static void MX_ADC_Init(void) 8000572: 46bd mov sp, r7 8000574: b004 add sp, #16 8000576: bd80 pop {r7, pc} - 8000578: 20000028 .word 0x20000028 + 8000578: 20000034 .word 0x20000034 800057c: 40012400 .word 0x40012400 08000580 : @@ -792,7 +792,7 @@ static void MX_GPIO_Init(void) 800058c: 2314 movs r3, #20 800058e: 001a movs r2, r3 8000590: 2100 movs r1, #0 - 8000592: f002 fd47 bl 8003024 + 8000592: f002 fd9f bl 80030d4 /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOF_CLK_ENABLE(); @@ -834,7 +834,7 @@ static void MX_GPIO_Init(void) 80005d4: 05db lsls r3, r3, #23 80005d6: 2200 movs r2, #0 80005d8: 0018 movs r0, r3 - 80005da: f001 f848 bl 800166e + 80005da: f001 f82b bl 8001634 |HC595_SLK2_Pin, GPIO_PIN_RESET); /*Configure GPIO pins : MOT_IN1_Pin MOT_IN2_Pin */ @@ -1014,7 +1014,7 @@ void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc) 80006ba: 2314 movs r3, #20 80006bc: 001a movs r2, r3 80006be: 2100 movs r1, #0 - 80006c0: f002 fcb0 bl 8003024 + 80006c0: f002 fd08 bl 80030d4 if(hadc->Instance==ADC1) 80006c4: 687b ldr r3, [r7, #4] 80006c6: 681b ldr r3, [r3, #0] @@ -1278,7 +1278,7 @@ LoopFillZerobss: 800079a: f7ff ffe4 bl 8000766 /* Call static constructors */ bl __libc_init_array - 800079e: f002 fc1d bl 8002fdc <__libc_init_array> + 800079e: f002 fc75 bl 800308c <__libc_init_array> /* Call the application's entry point.*/ bl main 80007a2: f7ff fe27 bl 80003f4
@@ -1295,11 +1295,11 @@ LoopForever: ldr r1, =_edata 80007b0: 2000000c .word 0x2000000c ldr r2, =_sidata - 80007b4: 080030b0 .word 0x080030b0 + 80007b4: 08003164 .word 0x08003164 ldr r2, =_sbss 80007b8: 2000000c .word 0x2000000c ldr r4, =_ebss - 80007bc: 200000ec .word 0x200000ec + 80007bc: 20000104 .word 0x20000104 080007c0 : * @retval : None @@ -1447,7 +1447,7 @@ __weak void HAL_IncTick(void) 800086c: bd80 pop {r7, pc} 800086e: 46c0 nop ; (mov r8, r8) 8000870: 20000008 .word 0x20000008 - 8000874: 20000068 .word 0x20000068 + 8000874: 20000074 .word 0x20000074 08000878 : * @note This function is declared as __weak to be overwritten in case of other @@ -1466,7 +1466,7 @@ __weak uint32_t HAL_GetTick(void) 8000882: 46bd mov sp, r7 8000884: bd80 pop {r7, pc} 8000886: 46c0 nop ; (mov r8, r8) - 8000888: 20000068 .word 0x20000068 + 8000888: 20000074 .word 0x20000074 0800088c : * of structure "ADC_InitTypeDef". @@ -4048,4444 +4048,4538 @@ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) 800162c: 48000c00 .word 0x48000c00 8001630: 40010400 .word 0x40010400 -08001634 : - * @param GPIO_Pin specifies the port bit to read. - * This parameter can be GPIO_PIN_x where x can be (0..15). - * @retval The input port pin value. - */ -GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin) -{ - 8001634: b580 push {r7, lr} - 8001636: b084 sub sp, #16 - 8001638: af00 add r7, sp, #0 - 800163a: 6078 str r0, [r7, #4] - 800163c: 000a movs r2, r1 - 800163e: 1cbb adds r3, r7, #2 - 8001640: 801a strh r2, [r3, #0] - GPIO_PinState bitstatus; - - /* Check the parameters */ - assert_param(IS_GPIO_PIN(GPIO_Pin)); - - if ((GPIOx->IDR & GPIO_Pin) != (uint32_t)GPIO_PIN_RESET) - 8001642: 687b ldr r3, [r7, #4] - 8001644: 691b ldr r3, [r3, #16] - 8001646: 1cba adds r2, r7, #2 - 8001648: 8812 ldrh r2, [r2, #0] - 800164a: 4013 ands r3, r2 - 800164c: d004 beq.n 8001658 - { - bitstatus = GPIO_PIN_SET; - 800164e: 230f movs r3, #15 - 8001650: 18fb adds r3, r7, r3 - 8001652: 2201 movs r2, #1 - 8001654: 701a strb r2, [r3, #0] - 8001656: e003 b.n 8001660 - } - else - { - bitstatus = GPIO_PIN_RESET; - 8001658: 230f movs r3, #15 - 800165a: 18fb adds r3, r7, r3 - 800165c: 2200 movs r2, #0 - 800165e: 701a strb r2, [r3, #0] - } - return bitstatus; - 8001660: 230f movs r3, #15 - 8001662: 18fb adds r3, r7, r3 - 8001664: 781b ldrb r3, [r3, #0] - } - 8001666: 0018 movs r0, r3 - 8001668: 46bd mov sp, r7 - 800166a: b004 add sp, #16 - 800166c: bd80 pop {r7, pc} - -0800166e : +08001634 : * @arg GPIO_PIN_RESET: to clear the port pin * @arg GPIO_PIN_SET: to set the port pin * @retval None */ void HAL_GPIO_WritePin(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin, GPIO_PinState PinState) { - 800166e: b580 push {r7, lr} - 8001670: b082 sub sp, #8 - 8001672: af00 add r7, sp, #0 - 8001674: 6078 str r0, [r7, #4] - 8001676: 0008 movs r0, r1 - 8001678: 0011 movs r1, r2 - 800167a: 1cbb adds r3, r7, #2 - 800167c: 1c02 adds r2, r0, #0 - 800167e: 801a strh r2, [r3, #0] - 8001680: 1c7b adds r3, r7, #1 - 8001682: 1c0a adds r2, r1, #0 - 8001684: 701a strb r2, [r3, #0] + 8001634: b580 push {r7, lr} + 8001636: b082 sub sp, #8 + 8001638: af00 add r7, sp, #0 + 800163a: 6078 str r0, [r7, #4] + 800163c: 0008 movs r0, r1 + 800163e: 0011 movs r1, r2 + 8001640: 1cbb adds r3, r7, #2 + 8001642: 1c02 adds r2, r0, #0 + 8001644: 801a strh r2, [r3, #0] + 8001646: 1c7b adds r3, r7, #1 + 8001648: 1c0a adds r2, r1, #0 + 800164a: 701a strb r2, [r3, #0] /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); assert_param(IS_GPIO_PIN_ACTION(PinState)); if (PinState != GPIO_PIN_RESET) - 8001686: 1c7b adds r3, r7, #1 - 8001688: 781b ldrb r3, [r3, #0] - 800168a: 2b00 cmp r3, #0 - 800168c: d004 beq.n 8001698 + 800164c: 1c7b adds r3, r7, #1 + 800164e: 781b ldrb r3, [r3, #0] + 8001650: 2b00 cmp r3, #0 + 8001652: d004 beq.n 800165e { GPIOx->BSRR = (uint32_t)GPIO_Pin; - 800168e: 1cbb adds r3, r7, #2 - 8001690: 881a ldrh r2, [r3, #0] - 8001692: 687b ldr r3, [r7, #4] - 8001694: 619a str r2, [r3, #24] + 8001654: 1cbb adds r3, r7, #2 + 8001656: 881a ldrh r2, [r3, #0] + 8001658: 687b ldr r3, [r7, #4] + 800165a: 619a str r2, [r3, #24] } else { GPIOx->BRR = (uint32_t)GPIO_Pin; } } - 8001696: e003 b.n 80016a0 + 800165c: e003 b.n 8001666 GPIOx->BRR = (uint32_t)GPIO_Pin; - 8001698: 1cbb adds r3, r7, #2 - 800169a: 881a ldrh r2, [r3, #0] - 800169c: 687b ldr r3, [r7, #4] - 800169e: 629a str r2, [r3, #40] ; 0x28 + 800165e: 1cbb adds r3, r7, #2 + 8001660: 881a ldrh r2, [r3, #0] + 8001662: 687b ldr r3, [r7, #4] + 8001664: 629a str r2, [r3, #40] ; 0x28 } - 80016a0: 46c0 nop ; (mov r8, r8) - 80016a2: 46bd mov sp, r7 - 80016a4: b002 add sp, #8 - 80016a6: bd80 pop {r7, pc} + 8001666: 46c0 nop ; (mov r8, r8) + 8001668: 46bd mov sp, r7 + 800166a: b002 add sp, #8 + 800166c: bd80 pop {r7, pc} + ... -080016a8 : +08001670 : * supported by this macro. User should request a transition to HSE Off * first and then HSE On or HSE Bypass. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { - 80016a8: b580 push {r7, lr} - 80016aa: b088 sub sp, #32 - 80016ac: af00 add r7, sp, #0 - 80016ae: 6078 str r0, [r7, #4] + 8001670: b580 push {r7, lr} + 8001672: b088 sub sp, #32 + 8001674: af00 add r7, sp, #0 + 8001676: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; uint32_t pll_config2; /* Check Null pointer */ if(RCC_OscInitStruct == NULL) - 80016b0: 687b ldr r3, [r7, #4] - 80016b2: 2b00 cmp r3, #0 - 80016b4: d101 bne.n 80016ba + 8001678: 687b ldr r3, [r7, #4] + 800167a: 2b00 cmp r3, #0 + 800167c: d101 bne.n 8001682 { return HAL_ERROR; - 80016b6: 2301 movs r3, #1 - 80016b8: e301 b.n 8001cbe + 800167e: 2301 movs r3, #1 + 8001680: e301 b.n 8001c86 /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 80016ba: 687b ldr r3, [r7, #4] - 80016bc: 681b ldr r3, [r3, #0] - 80016be: 2201 movs r2, #1 - 80016c0: 4013 ands r3, r2 - 80016c2: d100 bne.n 80016c6 - 80016c4: e08d b.n 80017e2 + 8001682: 687b ldr r3, [r7, #4] + 8001684: 681b ldr r3, [r3, #0] + 8001686: 2201 movs r2, #1 + 8001688: 4013 ands r3, r2 + 800168a: d100 bne.n 800168e + 800168c: e08d b.n 80017aa { /* Check the parameters */ assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */ if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE) - 80016c6: 4bc3 ldr r3, [pc, #780] ; (80019d4 ) - 80016c8: 685b ldr r3, [r3, #4] - 80016ca: 220c movs r2, #12 - 80016cc: 4013 ands r3, r2 - 80016ce: 2b04 cmp r3, #4 - 80016d0: d00e beq.n 80016f0 + 800168e: 4bc3 ldr r3, [pc, #780] ; (800199c ) + 8001690: 685b ldr r3, [r3, #4] + 8001692: 220c movs r2, #12 + 8001694: 4013 ands r3, r2 + 8001696: 2b04 cmp r3, #4 + 8001698: d00e beq.n 80016b8 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE))) - 80016d2: 4bc0 ldr r3, [pc, #768] ; (80019d4 ) - 80016d4: 685b ldr r3, [r3, #4] - 80016d6: 220c movs r2, #12 - 80016d8: 4013 ands r3, r2 - 80016da: 2b08 cmp r3, #8 - 80016dc: d116 bne.n 800170c - 80016de: 4bbd ldr r3, [pc, #756] ; (80019d4 ) - 80016e0: 685a ldr r2, [r3, #4] - 80016e2: 2380 movs r3, #128 ; 0x80 - 80016e4: 025b lsls r3, r3, #9 - 80016e6: 401a ands r2, r3 - 80016e8: 2380 movs r3, #128 ; 0x80 - 80016ea: 025b lsls r3, r3, #9 - 80016ec: 429a cmp r2, r3 - 80016ee: d10d bne.n 800170c + 800169a: 4bc0 ldr r3, [pc, #768] ; (800199c ) + 800169c: 685b ldr r3, [r3, #4] + 800169e: 220c movs r2, #12 + 80016a0: 4013 ands r3, r2 + 80016a2: 2b08 cmp r3, #8 + 80016a4: d116 bne.n 80016d4 + 80016a6: 4bbd ldr r3, [pc, #756] ; (800199c ) + 80016a8: 685a ldr r2, [r3, #4] + 80016aa: 2380 movs r3, #128 ; 0x80 + 80016ac: 025b lsls r3, r3, #9 + 80016ae: 401a ands r2, r3 + 80016b0: 2380 movs r3, #128 ; 0x80 + 80016b2: 025b lsls r3, r3, #9 + 80016b4: 429a cmp r2, r3 + 80016b6: d10d bne.n 80016d4 { if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 80016f0: 4bb8 ldr r3, [pc, #736] ; (80019d4 ) - 80016f2: 681a ldr r2, [r3, #0] - 80016f4: 2380 movs r3, #128 ; 0x80 - 80016f6: 029b lsls r3, r3, #10 - 80016f8: 4013 ands r3, r2 - 80016fa: d100 bne.n 80016fe - 80016fc: e070 b.n 80017e0 - 80016fe: 687b ldr r3, [r7, #4] - 8001700: 685b ldr r3, [r3, #4] - 8001702: 2b00 cmp r3, #0 - 8001704: d000 beq.n 8001708 - 8001706: e06b b.n 80017e0 + 80016b8: 4bb8 ldr r3, [pc, #736] ; (800199c ) + 80016ba: 681a ldr r2, [r3, #0] + 80016bc: 2380 movs r3, #128 ; 0x80 + 80016be: 029b lsls r3, r3, #10 + 80016c0: 4013 ands r3, r2 + 80016c2: d100 bne.n 80016c6 + 80016c4: e070 b.n 80017a8 + 80016c6: 687b ldr r3, [r7, #4] + 80016c8: 685b ldr r3, [r3, #4] + 80016ca: 2b00 cmp r3, #0 + 80016cc: d000 beq.n 80016d0 + 80016ce: e06b b.n 80017a8 { return HAL_ERROR; - 8001708: 2301 movs r3, #1 - 800170a: e2d8 b.n 8001cbe + 80016d0: 2301 movs r3, #1 + 80016d2: e2d8 b.n 8001c86 } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 800170c: 687b ldr r3, [r7, #4] - 800170e: 685b ldr r3, [r3, #4] - 8001710: 2b01 cmp r3, #1 - 8001712: d107 bne.n 8001724 - 8001714: 4baf ldr r3, [pc, #700] ; (80019d4 ) - 8001716: 681a ldr r2, [r3, #0] - 8001718: 4bae ldr r3, [pc, #696] ; (80019d4 ) - 800171a: 2180 movs r1, #128 ; 0x80 - 800171c: 0249 lsls r1, r1, #9 - 800171e: 430a orrs r2, r1 - 8001720: 601a str r2, [r3, #0] - 8001722: e02f b.n 8001784 - 8001724: 687b ldr r3, [r7, #4] - 8001726: 685b ldr r3, [r3, #4] - 8001728: 2b00 cmp r3, #0 - 800172a: d10c bne.n 8001746 - 800172c: 4ba9 ldr r3, [pc, #676] ; (80019d4 ) - 800172e: 681a ldr r2, [r3, #0] - 8001730: 4ba8 ldr r3, [pc, #672] ; (80019d4 ) - 8001732: 49a9 ldr r1, [pc, #676] ; (80019d8 ) - 8001734: 400a ands r2, r1 - 8001736: 601a str r2, [r3, #0] - 8001738: 4ba6 ldr r3, [pc, #664] ; (80019d4 ) - 800173a: 681a ldr r2, [r3, #0] - 800173c: 4ba5 ldr r3, [pc, #660] ; (80019d4 ) - 800173e: 49a7 ldr r1, [pc, #668] ; (80019dc ) - 8001740: 400a ands r2, r1 - 8001742: 601a str r2, [r3, #0] - 8001744: e01e b.n 8001784 - 8001746: 687b ldr r3, [r7, #4] - 8001748: 685b ldr r3, [r3, #4] - 800174a: 2b05 cmp r3, #5 - 800174c: d10e bne.n 800176c - 800174e: 4ba1 ldr r3, [pc, #644] ; (80019d4 ) - 8001750: 681a ldr r2, [r3, #0] - 8001752: 4ba0 ldr r3, [pc, #640] ; (80019d4 ) - 8001754: 2180 movs r1, #128 ; 0x80 - 8001756: 02c9 lsls r1, r1, #11 - 8001758: 430a orrs r2, r1 - 800175a: 601a str r2, [r3, #0] - 800175c: 4b9d ldr r3, [pc, #628] ; (80019d4 ) - 800175e: 681a ldr r2, [r3, #0] - 8001760: 4b9c ldr r3, [pc, #624] ; (80019d4 ) - 8001762: 2180 movs r1, #128 ; 0x80 - 8001764: 0249 lsls r1, r1, #9 - 8001766: 430a orrs r2, r1 - 8001768: 601a str r2, [r3, #0] - 800176a: e00b b.n 8001784 - 800176c: 4b99 ldr r3, [pc, #612] ; (80019d4 ) - 800176e: 681a ldr r2, [r3, #0] - 8001770: 4b98 ldr r3, [pc, #608] ; (80019d4 ) - 8001772: 4999 ldr r1, [pc, #612] ; (80019d8 ) - 8001774: 400a ands r2, r1 - 8001776: 601a str r2, [r3, #0] - 8001778: 4b96 ldr r3, [pc, #600] ; (80019d4 ) - 800177a: 681a ldr r2, [r3, #0] - 800177c: 4b95 ldr r3, [pc, #596] ; (80019d4 ) - 800177e: 4997 ldr r1, [pc, #604] ; (80019dc ) - 8001780: 400a ands r2, r1 - 8001782: 601a str r2, [r3, #0] + 80016d4: 687b ldr r3, [r7, #4] + 80016d6: 685b ldr r3, [r3, #4] + 80016d8: 2b01 cmp r3, #1 + 80016da: d107 bne.n 80016ec + 80016dc: 4baf ldr r3, [pc, #700] ; (800199c ) + 80016de: 681a ldr r2, [r3, #0] + 80016e0: 4bae ldr r3, [pc, #696] ; (800199c ) + 80016e2: 2180 movs r1, #128 ; 0x80 + 80016e4: 0249 lsls r1, r1, #9 + 80016e6: 430a orrs r2, r1 + 80016e8: 601a str r2, [r3, #0] + 80016ea: e02f b.n 800174c + 80016ec: 687b ldr r3, [r7, #4] + 80016ee: 685b ldr r3, [r3, #4] + 80016f0: 2b00 cmp r3, #0 + 80016f2: d10c bne.n 800170e + 80016f4: 4ba9 ldr r3, [pc, #676] ; (800199c ) + 80016f6: 681a ldr r2, [r3, #0] + 80016f8: 4ba8 ldr r3, [pc, #672] ; (800199c ) + 80016fa: 49a9 ldr r1, [pc, #676] ; (80019a0 ) + 80016fc: 400a ands r2, r1 + 80016fe: 601a str r2, [r3, #0] + 8001700: 4ba6 ldr r3, [pc, #664] ; (800199c ) + 8001702: 681a ldr r2, [r3, #0] + 8001704: 4ba5 ldr r3, [pc, #660] ; (800199c ) + 8001706: 49a7 ldr r1, [pc, #668] ; (80019a4 ) + 8001708: 400a ands r2, r1 + 800170a: 601a str r2, [r3, #0] + 800170c: e01e b.n 800174c + 800170e: 687b ldr r3, [r7, #4] + 8001710: 685b ldr r3, [r3, #4] + 8001712: 2b05 cmp r3, #5 + 8001714: d10e bne.n 8001734 + 8001716: 4ba1 ldr r3, [pc, #644] ; (800199c ) + 8001718: 681a ldr r2, [r3, #0] + 800171a: 4ba0 ldr r3, [pc, #640] ; (800199c ) + 800171c: 2180 movs r1, #128 ; 0x80 + 800171e: 02c9 lsls r1, r1, #11 + 8001720: 430a orrs r2, r1 + 8001722: 601a str r2, [r3, #0] + 8001724: 4b9d ldr r3, [pc, #628] ; (800199c ) + 8001726: 681a ldr r2, [r3, #0] + 8001728: 4b9c ldr r3, [pc, #624] ; (800199c ) + 800172a: 2180 movs r1, #128 ; 0x80 + 800172c: 0249 lsls r1, r1, #9 + 800172e: 430a orrs r2, r1 + 8001730: 601a str r2, [r3, #0] + 8001732: e00b b.n 800174c + 8001734: 4b99 ldr r3, [pc, #612] ; (800199c ) + 8001736: 681a ldr r2, [r3, #0] + 8001738: 4b98 ldr r3, [pc, #608] ; (800199c ) + 800173a: 4999 ldr r1, [pc, #612] ; (80019a0 ) + 800173c: 400a ands r2, r1 + 800173e: 601a str r2, [r3, #0] + 8001740: 4b96 ldr r3, [pc, #600] ; (800199c ) + 8001742: 681a ldr r2, [r3, #0] + 8001744: 4b95 ldr r3, [pc, #596] ; (800199c ) + 8001746: 4997 ldr r1, [pc, #604] ; (80019a4 ) + 8001748: 400a ands r2, r1 + 800174a: 601a str r2, [r3, #0] /* Check the HSE State */ if(RCC_OscInitStruct->HSEState != RCC_HSE_OFF) - 8001784: 687b ldr r3, [r7, #4] - 8001786: 685b ldr r3, [r3, #4] - 8001788: 2b00 cmp r3, #0 - 800178a: d014 beq.n 80017b6 + 800174c: 687b ldr r3, [r7, #4] + 800174e: 685b ldr r3, [r3, #4] + 8001750: 2b00 cmp r3, #0 + 8001752: d014 beq.n 800177e { /* Get Start Tick */ tickstart = HAL_GetTick(); - 800178c: f7ff f874 bl 8000878 - 8001790: 0003 movs r3, r0 - 8001792: 61bb str r3, [r7, #24] + 8001754: f7ff f890 bl 8000878 + 8001758: 0003 movs r3, r0 + 800175a: 61bb str r3, [r7, #24] /* Wait till HSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8001794: e008 b.n 80017a8 + 800175c: e008 b.n 8001770 { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) - 8001796: f7ff f86f bl 8000878 - 800179a: 0002 movs r2, r0 - 800179c: 69bb ldr r3, [r7, #24] - 800179e: 1ad3 subs r3, r2, r3 - 80017a0: 2b64 cmp r3, #100 ; 0x64 - 80017a2: d901 bls.n 80017a8 + 800175e: f7ff f88b bl 8000878 + 8001762: 0002 movs r2, r0 + 8001764: 69bb ldr r3, [r7, #24] + 8001766: 1ad3 subs r3, r2, r3 + 8001768: 2b64 cmp r3, #100 ; 0x64 + 800176a: d901 bls.n 8001770 { return HAL_TIMEOUT; - 80017a4: 2303 movs r3, #3 - 80017a6: e28a b.n 8001cbe + 800176c: 2303 movs r3, #3 + 800176e: e28a b.n 8001c86 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 80017a8: 4b8a ldr r3, [pc, #552] ; (80019d4 ) - 80017aa: 681a ldr r2, [r3, #0] - 80017ac: 2380 movs r3, #128 ; 0x80 - 80017ae: 029b lsls r3, r3, #10 - 80017b0: 4013 ands r3, r2 - 80017b2: d0f0 beq.n 8001796 - 80017b4: e015 b.n 80017e2 + 8001770: 4b8a ldr r3, [pc, #552] ; (800199c ) + 8001772: 681a ldr r2, [r3, #0] + 8001774: 2380 movs r3, #128 ; 0x80 + 8001776: 029b lsls r3, r3, #10 + 8001778: 4013 ands r3, r2 + 800177a: d0f0 beq.n 800175e + 800177c: e015 b.n 80017aa } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 80017b6: f7ff f85f bl 8000878 - 80017ba: 0003 movs r3, r0 - 80017bc: 61bb str r3, [r7, #24] + 800177e: f7ff f87b bl 8000878 + 8001782: 0003 movs r3, r0 + 8001784: 61bb str r3, [r7, #24] /* Wait till HSE is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 80017be: e008 b.n 80017d2 + 8001786: e008 b.n 800179a { if((HAL_GetTick() - tickstart ) > HSE_TIMEOUT_VALUE) - 80017c0: f7ff f85a bl 8000878 - 80017c4: 0002 movs r2, r0 - 80017c6: 69bb ldr r3, [r7, #24] - 80017c8: 1ad3 subs r3, r2, r3 - 80017ca: 2b64 cmp r3, #100 ; 0x64 - 80017cc: d901 bls.n 80017d2 + 8001788: f7ff f876 bl 8000878 + 800178c: 0002 movs r2, r0 + 800178e: 69bb ldr r3, [r7, #24] + 8001790: 1ad3 subs r3, r2, r3 + 8001792: 2b64 cmp r3, #100 ; 0x64 + 8001794: d901 bls.n 800179a { return HAL_TIMEOUT; - 80017ce: 2303 movs r3, #3 - 80017d0: e275 b.n 8001cbe + 8001796: 2303 movs r3, #3 + 8001798: e275 b.n 8001c86 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 80017d2: 4b80 ldr r3, [pc, #512] ; (80019d4 ) - 80017d4: 681a ldr r2, [r3, #0] - 80017d6: 2380 movs r3, #128 ; 0x80 - 80017d8: 029b lsls r3, r3, #10 - 80017da: 4013 ands r3, r2 - 80017dc: d1f0 bne.n 80017c0 - 80017de: e000 b.n 80017e2 + 800179a: 4b80 ldr r3, [pc, #512] ; (800199c ) + 800179c: 681a ldr r2, [r3, #0] + 800179e: 2380 movs r3, #128 ; 0x80 + 80017a0: 029b lsls r3, r3, #10 + 80017a2: 4013 ands r3, r2 + 80017a4: d1f0 bne.n 8001788 + 80017a6: e000 b.n 80017aa if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 80017e0: 46c0 nop ; (mov r8, r8) + 80017a8: 46c0 nop ; (mov r8, r8) } } } } /*----------------------------- HSI Configuration --------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 80017e2: 687b ldr r3, [r7, #4] - 80017e4: 681b ldr r3, [r3, #0] - 80017e6: 2202 movs r2, #2 - 80017e8: 4013 ands r3, r2 - 80017ea: d100 bne.n 80017ee - 80017ec: e069 b.n 80018c2 + 80017aa: 687b ldr r3, [r7, #4] + 80017ac: 681b ldr r3, [r3, #0] + 80017ae: 2202 movs r2, #2 + 80017b0: 4013 ands r3, r2 + 80017b2: d100 bne.n 80017b6 + 80017b4: e069 b.n 800188a /* Check the parameters */ assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState)); assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue)); /* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */ if((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI) - 80017ee: 4b79 ldr r3, [pc, #484] ; (80019d4 ) - 80017f0: 685b ldr r3, [r3, #4] - 80017f2: 220c movs r2, #12 - 80017f4: 4013 ands r3, r2 - 80017f6: d00b beq.n 8001810 + 80017b6: 4b79 ldr r3, [pc, #484] ; (800199c ) + 80017b8: 685b ldr r3, [r3, #4] + 80017ba: 220c movs r2, #12 + 80017bc: 4013 ands r3, r2 + 80017be: d00b beq.n 80017d8 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI))) - 80017f8: 4b76 ldr r3, [pc, #472] ; (80019d4 ) - 80017fa: 685b ldr r3, [r3, #4] - 80017fc: 220c movs r2, #12 - 80017fe: 4013 ands r3, r2 - 8001800: 2b08 cmp r3, #8 - 8001802: d11c bne.n 800183e - 8001804: 4b73 ldr r3, [pc, #460] ; (80019d4 ) - 8001806: 685a ldr r2, [r3, #4] - 8001808: 2380 movs r3, #128 ; 0x80 - 800180a: 025b lsls r3, r3, #9 - 800180c: 4013 ands r3, r2 - 800180e: d116 bne.n 800183e + 80017c0: 4b76 ldr r3, [pc, #472] ; (800199c ) + 80017c2: 685b ldr r3, [r3, #4] + 80017c4: 220c movs r2, #12 + 80017c6: 4013 ands r3, r2 + 80017c8: 2b08 cmp r3, #8 + 80017ca: d11c bne.n 8001806 + 80017cc: 4b73 ldr r3, [pc, #460] ; (800199c ) + 80017ce: 685a ldr r2, [r3, #4] + 80017d0: 2380 movs r3, #128 ; 0x80 + 80017d2: 025b lsls r3, r3, #9 + 80017d4: 4013 ands r3, r2 + 80017d6: d116 bne.n 8001806 { /* When HSI is used as system clock it will not disabled */ if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 8001810: 4b70 ldr r3, [pc, #448] ; (80019d4 ) - 8001812: 681b ldr r3, [r3, #0] - 8001814: 2202 movs r2, #2 - 8001816: 4013 ands r3, r2 - 8001818: d005 beq.n 8001826 - 800181a: 687b ldr r3, [r7, #4] - 800181c: 68db ldr r3, [r3, #12] - 800181e: 2b01 cmp r3, #1 - 8001820: d001 beq.n 8001826 + 80017d8: 4b70 ldr r3, [pc, #448] ; (800199c ) + 80017da: 681b ldr r3, [r3, #0] + 80017dc: 2202 movs r2, #2 + 80017de: 4013 ands r3, r2 + 80017e0: d005 beq.n 80017ee + 80017e2: 687b ldr r3, [r7, #4] + 80017e4: 68db ldr r3, [r3, #12] + 80017e6: 2b01 cmp r3, #1 + 80017e8: d001 beq.n 80017ee { return HAL_ERROR; - 8001822: 2301 movs r3, #1 - 8001824: e24b b.n 8001cbe + 80017ea: 2301 movs r3, #1 + 80017ec: e24b b.n 8001c86 } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8001826: 4b6b ldr r3, [pc, #428] ; (80019d4 ) - 8001828: 681b ldr r3, [r3, #0] - 800182a: 22f8 movs r2, #248 ; 0xf8 - 800182c: 4393 bics r3, r2 - 800182e: 0019 movs r1, r3 - 8001830: 687b ldr r3, [r7, #4] - 8001832: 691b ldr r3, [r3, #16] - 8001834: 00da lsls r2, r3, #3 - 8001836: 4b67 ldr r3, [pc, #412] ; (80019d4 ) - 8001838: 430a orrs r2, r1 - 800183a: 601a str r2, [r3, #0] + 80017ee: 4b6b ldr r3, [pc, #428] ; (800199c ) + 80017f0: 681b ldr r3, [r3, #0] + 80017f2: 22f8 movs r2, #248 ; 0xf8 + 80017f4: 4393 bics r3, r2 + 80017f6: 0019 movs r1, r3 + 80017f8: 687b ldr r3, [r7, #4] + 80017fa: 691b ldr r3, [r3, #16] + 80017fc: 00da lsls r2, r3, #3 + 80017fe: 4b67 ldr r3, [pc, #412] ; (800199c ) + 8001800: 430a orrs r2, r1 + 8001802: 601a str r2, [r3, #0] if((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 800183c: e041 b.n 80018c2 + 8001804: e041 b.n 800188a } } else { /* Check the HSI State */ if(RCC_OscInitStruct->HSIState != RCC_HSI_OFF) - 800183e: 687b ldr r3, [r7, #4] - 8001840: 68db ldr r3, [r3, #12] - 8001842: 2b00 cmp r3, #0 - 8001844: d024 beq.n 8001890 + 8001806: 687b ldr r3, [r7, #4] + 8001808: 68db ldr r3, [r3, #12] + 800180a: 2b00 cmp r3, #0 + 800180c: d024 beq.n 8001858 { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); - 8001846: 4b63 ldr r3, [pc, #396] ; (80019d4 ) - 8001848: 681a ldr r2, [r3, #0] - 800184a: 4b62 ldr r3, [pc, #392] ; (80019d4 ) - 800184c: 2101 movs r1, #1 - 800184e: 430a orrs r2, r1 - 8001850: 601a str r2, [r3, #0] + 800180e: 4b63 ldr r3, [pc, #396] ; (800199c ) + 8001810: 681a ldr r2, [r3, #0] + 8001812: 4b62 ldr r3, [pc, #392] ; (800199c ) + 8001814: 2101 movs r1, #1 + 8001816: 430a orrs r2, r1 + 8001818: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001852: f7ff f811 bl 8000878 - 8001856: 0003 movs r3, r0 - 8001858: 61bb str r3, [r7, #24] + 800181a: f7ff f82d bl 8000878 + 800181e: 0003 movs r3, r0 + 8001820: 61bb str r3, [r7, #24] /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 800185a: e008 b.n 800186e + 8001822: e008 b.n 8001836 { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) - 800185c: f7ff f80c bl 8000878 - 8001860: 0002 movs r2, r0 - 8001862: 69bb ldr r3, [r7, #24] - 8001864: 1ad3 subs r3, r2, r3 - 8001866: 2b02 cmp r3, #2 - 8001868: d901 bls.n 800186e + 8001824: f7ff f828 bl 8000878 + 8001828: 0002 movs r2, r0 + 800182a: 69bb ldr r3, [r7, #24] + 800182c: 1ad3 subs r3, r2, r3 + 800182e: 2b02 cmp r3, #2 + 8001830: d901 bls.n 8001836 { return HAL_TIMEOUT; - 800186a: 2303 movs r3, #3 - 800186c: e227 b.n 8001cbe + 8001832: 2303 movs r3, #3 + 8001834: e227 b.n 8001c86 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 800186e: 4b59 ldr r3, [pc, #356] ; (80019d4 ) - 8001870: 681b ldr r3, [r3, #0] - 8001872: 2202 movs r2, #2 - 8001874: 4013 ands r3, r2 - 8001876: d0f1 beq.n 800185c + 8001836: 4b59 ldr r3, [pc, #356] ; (800199c ) + 8001838: 681b ldr r3, [r3, #0] + 800183a: 2202 movs r2, #2 + 800183c: 4013 ands r3, r2 + 800183e: d0f1 beq.n 8001824 } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8001878: 4b56 ldr r3, [pc, #344] ; (80019d4 ) - 800187a: 681b ldr r3, [r3, #0] - 800187c: 22f8 movs r2, #248 ; 0xf8 - 800187e: 4393 bics r3, r2 - 8001880: 0019 movs r1, r3 - 8001882: 687b ldr r3, [r7, #4] - 8001884: 691b ldr r3, [r3, #16] - 8001886: 00da lsls r2, r3, #3 - 8001888: 4b52 ldr r3, [pc, #328] ; (80019d4 ) - 800188a: 430a orrs r2, r1 - 800188c: 601a str r2, [r3, #0] - 800188e: e018 b.n 80018c2 + 8001840: 4b56 ldr r3, [pc, #344] ; (800199c ) + 8001842: 681b ldr r3, [r3, #0] + 8001844: 22f8 movs r2, #248 ; 0xf8 + 8001846: 4393 bics r3, r2 + 8001848: 0019 movs r1, r3 + 800184a: 687b ldr r3, [r7, #4] + 800184c: 691b ldr r3, [r3, #16] + 800184e: 00da lsls r2, r3, #3 + 8001850: 4b52 ldr r3, [pc, #328] ; (800199c ) + 8001852: 430a orrs r2, r1 + 8001854: 601a str r2, [r3, #0] + 8001856: e018 b.n 800188a } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); - 8001890: 4b50 ldr r3, [pc, #320] ; (80019d4 ) - 8001892: 681a ldr r2, [r3, #0] - 8001894: 4b4f ldr r3, [pc, #316] ; (80019d4 ) - 8001896: 2101 movs r1, #1 - 8001898: 438a bics r2, r1 - 800189a: 601a str r2, [r3, #0] + 8001858: 4b50 ldr r3, [pc, #320] ; (800199c ) + 800185a: 681a ldr r2, [r3, #0] + 800185c: 4b4f ldr r3, [pc, #316] ; (800199c ) + 800185e: 2101 movs r1, #1 + 8001860: 438a bics r2, r1 + 8001862: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 800189c: f7fe ffec bl 8000878 - 80018a0: 0003 movs r3, r0 - 80018a2: 61bb str r3, [r7, #24] + 8001864: f7ff f808 bl 8000878 + 8001868: 0003 movs r3, r0 + 800186a: 61bb str r3, [r7, #24] /* Wait till HSI is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 80018a4: e008 b.n 80018b8 + 800186c: e008 b.n 8001880 { if((HAL_GetTick() - tickstart ) > HSI_TIMEOUT_VALUE) - 80018a6: f7fe ffe7 bl 8000878 - 80018aa: 0002 movs r2, r0 - 80018ac: 69bb ldr r3, [r7, #24] - 80018ae: 1ad3 subs r3, r2, r3 - 80018b0: 2b02 cmp r3, #2 - 80018b2: d901 bls.n 80018b8 + 800186e: f7ff f803 bl 8000878 + 8001872: 0002 movs r2, r0 + 8001874: 69bb ldr r3, [r7, #24] + 8001876: 1ad3 subs r3, r2, r3 + 8001878: 2b02 cmp r3, #2 + 800187a: d901 bls.n 8001880 { return HAL_TIMEOUT; - 80018b4: 2303 movs r3, #3 - 80018b6: e202 b.n 8001cbe + 800187c: 2303 movs r3, #3 + 800187e: e202 b.n 8001c86 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 80018b8: 4b46 ldr r3, [pc, #280] ; (80019d4 ) - 80018ba: 681b ldr r3, [r3, #0] - 80018bc: 2202 movs r2, #2 - 80018be: 4013 ands r3, r2 - 80018c0: d1f1 bne.n 80018a6 + 8001880: 4b46 ldr r3, [pc, #280] ; (800199c ) + 8001882: 681b ldr r3, [r3, #0] + 8001884: 2202 movs r2, #2 + 8001886: 4013 ands r3, r2 + 8001888: d1f1 bne.n 800186e } } } } /*------------------------------ LSI Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 80018c2: 687b ldr r3, [r7, #4] - 80018c4: 681b ldr r3, [r3, #0] - 80018c6: 2208 movs r2, #8 - 80018c8: 4013 ands r3, r2 - 80018ca: d036 beq.n 800193a + 800188a: 687b ldr r3, [r7, #4] + 800188c: 681b ldr r3, [r3, #0] + 800188e: 2208 movs r2, #8 + 8001890: 4013 ands r3, r2 + 8001892: d036 beq.n 8001902 { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if(RCC_OscInitStruct->LSIState != RCC_LSI_OFF) - 80018cc: 687b ldr r3, [r7, #4] - 80018ce: 69db ldr r3, [r3, #28] - 80018d0: 2b00 cmp r3, #0 - 80018d2: d019 beq.n 8001908 + 8001894: 687b ldr r3, [r7, #4] + 8001896: 69db ldr r3, [r3, #28] + 8001898: 2b00 cmp r3, #0 + 800189a: d019 beq.n 80018d0 { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); - 80018d4: 4b3f ldr r3, [pc, #252] ; (80019d4 ) - 80018d6: 6a5a ldr r2, [r3, #36] ; 0x24 - 80018d8: 4b3e ldr r3, [pc, #248] ; (80019d4 ) - 80018da: 2101 movs r1, #1 - 80018dc: 430a orrs r2, r1 - 80018de: 625a str r2, [r3, #36] ; 0x24 + 800189c: 4b3f ldr r3, [pc, #252] ; (800199c ) + 800189e: 6a5a ldr r2, [r3, #36] ; 0x24 + 80018a0: 4b3e ldr r3, [pc, #248] ; (800199c ) + 80018a2: 2101 movs r1, #1 + 80018a4: 430a orrs r2, r1 + 80018a6: 625a str r2, [r3, #36] ; 0x24 /* Get Start Tick */ tickstart = HAL_GetTick(); - 80018e0: f7fe ffca bl 8000878 - 80018e4: 0003 movs r3, r0 - 80018e6: 61bb str r3, [r7, #24] + 80018a8: f7fe ffe6 bl 8000878 + 80018ac: 0003 movs r3, r0 + 80018ae: 61bb str r3, [r7, #24] /* Wait till LSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 80018e8: e008 b.n 80018fc + 80018b0: e008 b.n 80018c4 { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) - 80018ea: f7fe ffc5 bl 8000878 - 80018ee: 0002 movs r2, r0 - 80018f0: 69bb ldr r3, [r7, #24] - 80018f2: 1ad3 subs r3, r2, r3 - 80018f4: 2b02 cmp r3, #2 - 80018f6: d901 bls.n 80018fc + 80018b2: f7fe ffe1 bl 8000878 + 80018b6: 0002 movs r2, r0 + 80018b8: 69bb ldr r3, [r7, #24] + 80018ba: 1ad3 subs r3, r2, r3 + 80018bc: 2b02 cmp r3, #2 + 80018be: d901 bls.n 80018c4 { return HAL_TIMEOUT; - 80018f8: 2303 movs r3, #3 - 80018fa: e1e0 b.n 8001cbe + 80018c0: 2303 movs r3, #3 + 80018c2: e1e0 b.n 8001c86 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 80018fc: 4b35 ldr r3, [pc, #212] ; (80019d4 ) - 80018fe: 6a5b ldr r3, [r3, #36] ; 0x24 - 8001900: 2202 movs r2, #2 - 8001902: 4013 ands r3, r2 - 8001904: d0f1 beq.n 80018ea - 8001906: e018 b.n 800193a + 80018c4: 4b35 ldr r3, [pc, #212] ; (800199c ) + 80018c6: 6a5b ldr r3, [r3, #36] ; 0x24 + 80018c8: 2202 movs r2, #2 + 80018ca: 4013 ands r3, r2 + 80018cc: d0f1 beq.n 80018b2 + 80018ce: e018 b.n 8001902 } } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); - 8001908: 4b32 ldr r3, [pc, #200] ; (80019d4 ) - 800190a: 6a5a ldr r2, [r3, #36] ; 0x24 - 800190c: 4b31 ldr r3, [pc, #196] ; (80019d4 ) - 800190e: 2101 movs r1, #1 - 8001910: 438a bics r2, r1 - 8001912: 625a str r2, [r3, #36] ; 0x24 + 80018d0: 4b32 ldr r3, [pc, #200] ; (800199c ) + 80018d2: 6a5a ldr r2, [r3, #36] ; 0x24 + 80018d4: 4b31 ldr r3, [pc, #196] ; (800199c ) + 80018d6: 2101 movs r1, #1 + 80018d8: 438a bics r2, r1 + 80018da: 625a str r2, [r3, #36] ; 0x24 /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001914: f7fe ffb0 bl 8000878 - 8001918: 0003 movs r3, r0 - 800191a: 61bb str r3, [r7, #24] + 80018dc: f7fe ffcc bl 8000878 + 80018e0: 0003 movs r3, r0 + 80018e2: 61bb str r3, [r7, #24] /* Wait till LSI is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 800191c: e008 b.n 8001930 + 80018e4: e008 b.n 80018f8 { if((HAL_GetTick() - tickstart ) > LSI_TIMEOUT_VALUE) - 800191e: f7fe ffab bl 8000878 - 8001922: 0002 movs r2, r0 - 8001924: 69bb ldr r3, [r7, #24] - 8001926: 1ad3 subs r3, r2, r3 - 8001928: 2b02 cmp r3, #2 - 800192a: d901 bls.n 8001930 + 80018e6: f7fe ffc7 bl 8000878 + 80018ea: 0002 movs r2, r0 + 80018ec: 69bb ldr r3, [r7, #24] + 80018ee: 1ad3 subs r3, r2, r3 + 80018f0: 2b02 cmp r3, #2 + 80018f2: d901 bls.n 80018f8 { return HAL_TIMEOUT; - 800192c: 2303 movs r3, #3 - 800192e: e1c6 b.n 8001cbe + 80018f4: 2303 movs r3, #3 + 80018f6: e1c6 b.n 8001c86 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8001930: 4b28 ldr r3, [pc, #160] ; (80019d4 ) - 8001932: 6a5b ldr r3, [r3, #36] ; 0x24 - 8001934: 2202 movs r2, #2 - 8001936: 4013 ands r3, r2 - 8001938: d1f1 bne.n 800191e + 80018f8: 4b28 ldr r3, [pc, #160] ; (800199c ) + 80018fa: 6a5b ldr r3, [r3, #36] ; 0x24 + 80018fc: 2202 movs r2, #2 + 80018fe: 4013 ands r3, r2 + 8001900: d1f1 bne.n 80018e6 } } } } /*------------------------------ LSE Configuration -------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 800193a: 687b ldr r3, [r7, #4] - 800193c: 681b ldr r3, [r3, #0] - 800193e: 2204 movs r2, #4 - 8001940: 4013 ands r3, r2 - 8001942: d100 bne.n 8001946 - 8001944: e0b4 b.n 8001ab0 + 8001902: 687b ldr r3, [r7, #4] + 8001904: 681b ldr r3, [r3, #0] + 8001906: 2204 movs r2, #4 + 8001908: 4013 ands r3, r2 + 800190a: d100 bne.n 800190e + 800190c: e0b4 b.n 8001a78 { FlagStatus pwrclkchanged = RESET; - 8001946: 201f movs r0, #31 - 8001948: 183b adds r3, r7, r0 - 800194a: 2200 movs r2, #0 - 800194c: 701a strb r2, [r3, #0] + 800190e: 201f movs r0, #31 + 8001910: 183b adds r3, r7, r0 + 8001912: 2200 movs r2, #0 + 8001914: 701a strb r2, [r3, #0] /* Check the parameters */ assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState)); /* Update LSE configuration in Backup Domain control register */ /* Requires to enable write access to Backup Domain of necessary */ if(__HAL_RCC_PWR_IS_CLK_DISABLED()) - 800194e: 4b21 ldr r3, [pc, #132] ; (80019d4 ) - 8001950: 69da ldr r2, [r3, #28] - 8001952: 2380 movs r3, #128 ; 0x80 - 8001954: 055b lsls r3, r3, #21 - 8001956: 4013 ands r3, r2 - 8001958: d110 bne.n 800197c + 8001916: 4b21 ldr r3, [pc, #132] ; (800199c ) + 8001918: 69da ldr r2, [r3, #28] + 800191a: 2380 movs r3, #128 ; 0x80 + 800191c: 055b lsls r3, r3, #21 + 800191e: 4013 ands r3, r2 + 8001920: d110 bne.n 8001944 { __HAL_RCC_PWR_CLK_ENABLE(); - 800195a: 4b1e ldr r3, [pc, #120] ; (80019d4 ) - 800195c: 69da ldr r2, [r3, #28] - 800195e: 4b1d ldr r3, [pc, #116] ; (80019d4 ) - 8001960: 2180 movs r1, #128 ; 0x80 - 8001962: 0549 lsls r1, r1, #21 - 8001964: 430a orrs r2, r1 - 8001966: 61da str r2, [r3, #28] - 8001968: 4b1a ldr r3, [pc, #104] ; (80019d4 ) - 800196a: 69da ldr r2, [r3, #28] - 800196c: 2380 movs r3, #128 ; 0x80 - 800196e: 055b lsls r3, r3, #21 - 8001970: 4013 ands r3, r2 - 8001972: 60fb str r3, [r7, #12] - 8001974: 68fb ldr r3, [r7, #12] + 8001922: 4b1e ldr r3, [pc, #120] ; (800199c ) + 8001924: 69da ldr r2, [r3, #28] + 8001926: 4b1d ldr r3, [pc, #116] ; (800199c ) + 8001928: 2180 movs r1, #128 ; 0x80 + 800192a: 0549 lsls r1, r1, #21 + 800192c: 430a orrs r2, r1 + 800192e: 61da str r2, [r3, #28] + 8001930: 4b1a ldr r3, [pc, #104] ; (800199c ) + 8001932: 69da ldr r2, [r3, #28] + 8001934: 2380 movs r3, #128 ; 0x80 + 8001936: 055b lsls r3, r3, #21 + 8001938: 4013 ands r3, r2 + 800193a: 60fb str r3, [r7, #12] + 800193c: 68fb ldr r3, [r7, #12] pwrclkchanged = SET; - 8001976: 183b adds r3, r7, r0 - 8001978: 2201 movs r2, #1 - 800197a: 701a strb r2, [r3, #0] + 800193e: 183b adds r3, r7, r0 + 8001940: 2201 movs r2, #1 + 8001942: 701a strb r2, [r3, #0] } if(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 800197c: 4b18 ldr r3, [pc, #96] ; (80019e0 ) - 800197e: 681a ldr r2, [r3, #0] - 8001980: 2380 movs r3, #128 ; 0x80 - 8001982: 005b lsls r3, r3, #1 - 8001984: 4013 ands r3, r2 - 8001986: d11a bne.n 80019be + 8001944: 4b18 ldr r3, [pc, #96] ; (80019a8 ) + 8001946: 681a ldr r2, [r3, #0] + 8001948: 2380 movs r3, #128 ; 0x80 + 800194a: 005b lsls r3, r3, #1 + 800194c: 4013 ands r3, r2 + 800194e: d11a bne.n 8001986 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 8001988: 4b15 ldr r3, [pc, #84] ; (80019e0 ) - 800198a: 681a ldr r2, [r3, #0] - 800198c: 4b14 ldr r3, [pc, #80] ; (80019e0 ) - 800198e: 2180 movs r1, #128 ; 0x80 - 8001990: 0049 lsls r1, r1, #1 - 8001992: 430a orrs r2, r1 - 8001994: 601a str r2, [r3, #0] + 8001950: 4b15 ldr r3, [pc, #84] ; (80019a8 ) + 8001952: 681a ldr r2, [r3, #0] + 8001954: 4b14 ldr r3, [pc, #80] ; (80019a8 ) + 8001956: 2180 movs r1, #128 ; 0x80 + 8001958: 0049 lsls r1, r1, #1 + 800195a: 430a orrs r2, r1 + 800195c: 601a str r2, [r3, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 8001996: f7fe ff6f bl 8000878 - 800199a: 0003 movs r3, r0 - 800199c: 61bb str r3, [r7, #24] + 800195e: f7fe ff8b bl 8000878 + 8001962: 0003 movs r3, r0 + 8001964: 61bb str r3, [r7, #24] while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 800199e: e008 b.n 80019b2 + 8001966: e008 b.n 800197a { if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 80019a0: f7fe ff6a bl 8000878 - 80019a4: 0002 movs r2, r0 - 80019a6: 69bb ldr r3, [r7, #24] - 80019a8: 1ad3 subs r3, r2, r3 - 80019aa: 2b64 cmp r3, #100 ; 0x64 - 80019ac: d901 bls.n 80019b2 + 8001968: f7fe ff86 bl 8000878 + 800196c: 0002 movs r2, r0 + 800196e: 69bb ldr r3, [r7, #24] + 8001970: 1ad3 subs r3, r2, r3 + 8001972: 2b64 cmp r3, #100 ; 0x64 + 8001974: d901 bls.n 800197a { return HAL_TIMEOUT; - 80019ae: 2303 movs r3, #3 - 80019b0: e185 b.n 8001cbe + 8001976: 2303 movs r3, #3 + 8001978: e185 b.n 8001c86 while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80019b2: 4b0b ldr r3, [pc, #44] ; (80019e0 ) - 80019b4: 681a ldr r2, [r3, #0] - 80019b6: 2380 movs r3, #128 ; 0x80 - 80019b8: 005b lsls r3, r3, #1 - 80019ba: 4013 ands r3, r2 - 80019bc: d0f0 beq.n 80019a0 + 800197a: 4b0b ldr r3, [pc, #44] ; (80019a8 ) + 800197c: 681a ldr r2, [r3, #0] + 800197e: 2380 movs r3, #128 ; 0x80 + 8001980: 005b lsls r3, r3, #1 + 8001982: 4013 ands r3, r2 + 8001984: d0f0 beq.n 8001968 } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 80019be: 687b ldr r3, [r7, #4] - 80019c0: 689b ldr r3, [r3, #8] - 80019c2: 2b01 cmp r3, #1 - 80019c4: d10e bne.n 80019e4 - 80019c6: 4b03 ldr r3, [pc, #12] ; (80019d4 ) - 80019c8: 6a1a ldr r2, [r3, #32] - 80019ca: 4b02 ldr r3, [pc, #8] ; (80019d4 ) - 80019cc: 2101 movs r1, #1 - 80019ce: 430a orrs r2, r1 - 80019d0: 621a str r2, [r3, #32] - 80019d2: e035 b.n 8001a40 - 80019d4: 40021000 .word 0x40021000 - 80019d8: fffeffff .word 0xfffeffff - 80019dc: fffbffff .word 0xfffbffff - 80019e0: 40007000 .word 0x40007000 - 80019e4: 687b ldr r3, [r7, #4] - 80019e6: 689b ldr r3, [r3, #8] - 80019e8: 2b00 cmp r3, #0 - 80019ea: d10c bne.n 8001a06 - 80019ec: 4bb6 ldr r3, [pc, #728] ; (8001cc8 ) - 80019ee: 6a1a ldr r2, [r3, #32] - 80019f0: 4bb5 ldr r3, [pc, #724] ; (8001cc8 ) - 80019f2: 2101 movs r1, #1 - 80019f4: 438a bics r2, r1 - 80019f6: 621a str r2, [r3, #32] - 80019f8: 4bb3 ldr r3, [pc, #716] ; (8001cc8 ) - 80019fa: 6a1a ldr r2, [r3, #32] - 80019fc: 4bb2 ldr r3, [pc, #712] ; (8001cc8 ) - 80019fe: 2104 movs r1, #4 - 8001a00: 438a bics r2, r1 - 8001a02: 621a str r2, [r3, #32] - 8001a04: e01c b.n 8001a40 - 8001a06: 687b ldr r3, [r7, #4] - 8001a08: 689b ldr r3, [r3, #8] - 8001a0a: 2b05 cmp r3, #5 - 8001a0c: d10c bne.n 8001a28 - 8001a0e: 4bae ldr r3, [pc, #696] ; (8001cc8 ) - 8001a10: 6a1a ldr r2, [r3, #32] - 8001a12: 4bad ldr r3, [pc, #692] ; (8001cc8 ) - 8001a14: 2104 movs r1, #4 - 8001a16: 430a orrs r2, r1 - 8001a18: 621a str r2, [r3, #32] - 8001a1a: 4bab ldr r3, [pc, #684] ; (8001cc8 ) - 8001a1c: 6a1a ldr r2, [r3, #32] - 8001a1e: 4baa ldr r3, [pc, #680] ; (8001cc8 ) - 8001a20: 2101 movs r1, #1 - 8001a22: 430a orrs r2, r1 - 8001a24: 621a str r2, [r3, #32] - 8001a26: e00b b.n 8001a40 - 8001a28: 4ba7 ldr r3, [pc, #668] ; (8001cc8 ) - 8001a2a: 6a1a ldr r2, [r3, #32] - 8001a2c: 4ba6 ldr r3, [pc, #664] ; (8001cc8 ) - 8001a2e: 2101 movs r1, #1 - 8001a30: 438a bics r2, r1 - 8001a32: 621a str r2, [r3, #32] - 8001a34: 4ba4 ldr r3, [pc, #656] ; (8001cc8 ) - 8001a36: 6a1a ldr r2, [r3, #32] - 8001a38: 4ba3 ldr r3, [pc, #652] ; (8001cc8 ) - 8001a3a: 2104 movs r1, #4 - 8001a3c: 438a bics r2, r1 - 8001a3e: 621a str r2, [r3, #32] + 8001986: 687b ldr r3, [r7, #4] + 8001988: 689b ldr r3, [r3, #8] + 800198a: 2b01 cmp r3, #1 + 800198c: d10e bne.n 80019ac + 800198e: 4b03 ldr r3, [pc, #12] ; (800199c ) + 8001990: 6a1a ldr r2, [r3, #32] + 8001992: 4b02 ldr r3, [pc, #8] ; (800199c ) + 8001994: 2101 movs r1, #1 + 8001996: 430a orrs r2, r1 + 8001998: 621a str r2, [r3, #32] + 800199a: e035 b.n 8001a08 + 800199c: 40021000 .word 0x40021000 + 80019a0: fffeffff .word 0xfffeffff + 80019a4: fffbffff .word 0xfffbffff + 80019a8: 40007000 .word 0x40007000 + 80019ac: 687b ldr r3, [r7, #4] + 80019ae: 689b ldr r3, [r3, #8] + 80019b0: 2b00 cmp r3, #0 + 80019b2: d10c bne.n 80019ce + 80019b4: 4bb6 ldr r3, [pc, #728] ; (8001c90 ) + 80019b6: 6a1a ldr r2, [r3, #32] + 80019b8: 4bb5 ldr r3, [pc, #724] ; (8001c90 ) + 80019ba: 2101 movs r1, #1 + 80019bc: 438a bics r2, r1 + 80019be: 621a str r2, [r3, #32] + 80019c0: 4bb3 ldr r3, [pc, #716] ; (8001c90 ) + 80019c2: 6a1a ldr r2, [r3, #32] + 80019c4: 4bb2 ldr r3, [pc, #712] ; (8001c90 ) + 80019c6: 2104 movs r1, #4 + 80019c8: 438a bics r2, r1 + 80019ca: 621a str r2, [r3, #32] + 80019cc: e01c b.n 8001a08 + 80019ce: 687b ldr r3, [r7, #4] + 80019d0: 689b ldr r3, [r3, #8] + 80019d2: 2b05 cmp r3, #5 + 80019d4: d10c bne.n 80019f0 + 80019d6: 4bae ldr r3, [pc, #696] ; (8001c90 ) + 80019d8: 6a1a ldr r2, [r3, #32] + 80019da: 4bad ldr r3, [pc, #692] ; (8001c90 ) + 80019dc: 2104 movs r1, #4 + 80019de: 430a orrs r2, r1 + 80019e0: 621a str r2, [r3, #32] + 80019e2: 4bab ldr r3, [pc, #684] ; (8001c90 ) + 80019e4: 6a1a ldr r2, [r3, #32] + 80019e6: 4baa ldr r3, [pc, #680] ; (8001c90 ) + 80019e8: 2101 movs r1, #1 + 80019ea: 430a orrs r2, r1 + 80019ec: 621a str r2, [r3, #32] + 80019ee: e00b b.n 8001a08 + 80019f0: 4ba7 ldr r3, [pc, #668] ; (8001c90 ) + 80019f2: 6a1a ldr r2, [r3, #32] + 80019f4: 4ba6 ldr r3, [pc, #664] ; (8001c90 ) + 80019f6: 2101 movs r1, #1 + 80019f8: 438a bics r2, r1 + 80019fa: 621a str r2, [r3, #32] + 80019fc: 4ba4 ldr r3, [pc, #656] ; (8001c90 ) + 80019fe: 6a1a ldr r2, [r3, #32] + 8001a00: 4ba3 ldr r3, [pc, #652] ; (8001c90 ) + 8001a02: 2104 movs r1, #4 + 8001a04: 438a bics r2, r1 + 8001a06: 621a str r2, [r3, #32] /* Check the LSE State */ if(RCC_OscInitStruct->LSEState != RCC_LSE_OFF) - 8001a40: 687b ldr r3, [r7, #4] - 8001a42: 689b ldr r3, [r3, #8] - 8001a44: 2b00 cmp r3, #0 - 8001a46: d014 beq.n 8001a72 + 8001a08: 687b ldr r3, [r7, #4] + 8001a0a: 689b ldr r3, [r3, #8] + 8001a0c: 2b00 cmp r3, #0 + 8001a0e: d014 beq.n 8001a3a { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001a48: f7fe ff16 bl 8000878 - 8001a4c: 0003 movs r3, r0 - 8001a4e: 61bb str r3, [r7, #24] + 8001a10: f7fe ff32 bl 8000878 + 8001a14: 0003 movs r3, r0 + 8001a16: 61bb str r3, [r7, #24] /* Wait till LSE is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8001a50: e009 b.n 8001a66 + 8001a18: e009 b.n 8001a2e { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) - 8001a52: f7fe ff11 bl 8000878 - 8001a56: 0002 movs r2, r0 - 8001a58: 69bb ldr r3, [r7, #24] - 8001a5a: 1ad3 subs r3, r2, r3 - 8001a5c: 4a9b ldr r2, [pc, #620] ; (8001ccc ) - 8001a5e: 4293 cmp r3, r2 - 8001a60: d901 bls.n 8001a66 + 8001a1a: f7fe ff2d bl 8000878 + 8001a1e: 0002 movs r2, r0 + 8001a20: 69bb ldr r3, [r7, #24] + 8001a22: 1ad3 subs r3, r2, r3 + 8001a24: 4a9b ldr r2, [pc, #620] ; (8001c94 ) + 8001a26: 4293 cmp r3, r2 + 8001a28: d901 bls.n 8001a2e { return HAL_TIMEOUT; - 8001a62: 2303 movs r3, #3 - 8001a64: e12b b.n 8001cbe + 8001a2a: 2303 movs r3, #3 + 8001a2c: e12b b.n 8001c86 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8001a66: 4b98 ldr r3, [pc, #608] ; (8001cc8 ) - 8001a68: 6a1b ldr r3, [r3, #32] - 8001a6a: 2202 movs r2, #2 - 8001a6c: 4013 ands r3, r2 - 8001a6e: d0f0 beq.n 8001a52 - 8001a70: e013 b.n 8001a9a + 8001a2e: 4b98 ldr r3, [pc, #608] ; (8001c90 ) + 8001a30: 6a1b ldr r3, [r3, #32] + 8001a32: 2202 movs r2, #2 + 8001a34: 4013 ands r3, r2 + 8001a36: d0f0 beq.n 8001a1a + 8001a38: e013 b.n 8001a62 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001a72: f7fe ff01 bl 8000878 - 8001a76: 0003 movs r3, r0 - 8001a78: 61bb str r3, [r7, #24] + 8001a3a: f7fe ff1d bl 8000878 + 8001a3e: 0003 movs r3, r0 + 8001a40: 61bb str r3, [r7, #24] /* Wait till LSE is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8001a7a: e009 b.n 8001a90 + 8001a42: e009 b.n 8001a58 { if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE) - 8001a7c: f7fe fefc bl 8000878 - 8001a80: 0002 movs r2, r0 - 8001a82: 69bb ldr r3, [r7, #24] - 8001a84: 1ad3 subs r3, r2, r3 - 8001a86: 4a91 ldr r2, [pc, #580] ; (8001ccc ) - 8001a88: 4293 cmp r3, r2 - 8001a8a: d901 bls.n 8001a90 + 8001a44: f7fe ff18 bl 8000878 + 8001a48: 0002 movs r2, r0 + 8001a4a: 69bb ldr r3, [r7, #24] + 8001a4c: 1ad3 subs r3, r2, r3 + 8001a4e: 4a91 ldr r2, [pc, #580] ; (8001c94 ) + 8001a50: 4293 cmp r3, r2 + 8001a52: d901 bls.n 8001a58 { return HAL_TIMEOUT; - 8001a8c: 2303 movs r3, #3 - 8001a8e: e116 b.n 8001cbe + 8001a54: 2303 movs r3, #3 + 8001a56: e116 b.n 8001c86 while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8001a90: 4b8d ldr r3, [pc, #564] ; (8001cc8 ) - 8001a92: 6a1b ldr r3, [r3, #32] - 8001a94: 2202 movs r2, #2 - 8001a96: 4013 ands r3, r2 - 8001a98: d1f0 bne.n 8001a7c + 8001a58: 4b8d ldr r3, [pc, #564] ; (8001c90 ) + 8001a5a: 6a1b ldr r3, [r3, #32] + 8001a5c: 2202 movs r2, #2 + 8001a5e: 4013 ands r3, r2 + 8001a60: d1f0 bne.n 8001a44 } } } /* Require to disable power clock if necessary */ if(pwrclkchanged == SET) - 8001a9a: 231f movs r3, #31 - 8001a9c: 18fb adds r3, r7, r3 - 8001a9e: 781b ldrb r3, [r3, #0] - 8001aa0: 2b01 cmp r3, #1 - 8001aa2: d105 bne.n 8001ab0 + 8001a62: 231f movs r3, #31 + 8001a64: 18fb adds r3, r7, r3 + 8001a66: 781b ldrb r3, [r3, #0] + 8001a68: 2b01 cmp r3, #1 + 8001a6a: d105 bne.n 8001a78 { __HAL_RCC_PWR_CLK_DISABLE(); - 8001aa4: 4b88 ldr r3, [pc, #544] ; (8001cc8 ) - 8001aa6: 69da ldr r2, [r3, #28] - 8001aa8: 4b87 ldr r3, [pc, #540] ; (8001cc8 ) - 8001aaa: 4989 ldr r1, [pc, #548] ; (8001cd0 ) - 8001aac: 400a ands r2, r1 - 8001aae: 61da str r2, [r3, #28] + 8001a6c: 4b88 ldr r3, [pc, #544] ; (8001c90 ) + 8001a6e: 69da ldr r2, [r3, #28] + 8001a70: 4b87 ldr r3, [pc, #540] ; (8001c90 ) + 8001a72: 4989 ldr r1, [pc, #548] ; (8001c98 ) + 8001a74: 400a ands r2, r1 + 8001a76: 61da str r2, [r3, #28] } } /*----------------------------- HSI14 Configuration --------------------------*/ if(((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI14) == RCC_OSCILLATORTYPE_HSI14) - 8001ab0: 687b ldr r3, [r7, #4] - 8001ab2: 681b ldr r3, [r3, #0] - 8001ab4: 2210 movs r2, #16 - 8001ab6: 4013 ands r3, r2 - 8001ab8: d063 beq.n 8001b82 + 8001a78: 687b ldr r3, [r7, #4] + 8001a7a: 681b ldr r3, [r3, #0] + 8001a7c: 2210 movs r2, #16 + 8001a7e: 4013 ands r3, r2 + 8001a80: d063 beq.n 8001b4a /* Check the parameters */ assert_param(IS_RCC_HSI14(RCC_OscInitStruct->HSI14State)); assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSI14CalibrationValue)); /* Check the HSI14 State */ if(RCC_OscInitStruct->HSI14State == RCC_HSI14_ON) - 8001aba: 687b ldr r3, [r7, #4] - 8001abc: 695b ldr r3, [r3, #20] - 8001abe: 2b01 cmp r3, #1 - 8001ac0: d12a bne.n 8001b18 + 8001a82: 687b ldr r3, [r7, #4] + 8001a84: 695b ldr r3, [r3, #20] + 8001a86: 2b01 cmp r3, #1 + 8001a88: d12a bne.n 8001ae0 { /* Disable ADC control of the Internal High Speed oscillator HSI14 */ __HAL_RCC_HSI14ADC_DISABLE(); - 8001ac2: 4b81 ldr r3, [pc, #516] ; (8001cc8 ) - 8001ac4: 6b5a ldr r2, [r3, #52] ; 0x34 - 8001ac6: 4b80 ldr r3, [pc, #512] ; (8001cc8 ) - 8001ac8: 2104 movs r1, #4 - 8001aca: 430a orrs r2, r1 - 8001acc: 635a str r2, [r3, #52] ; 0x34 + 8001a8a: 4b81 ldr r3, [pc, #516] ; (8001c90 ) + 8001a8c: 6b5a ldr r2, [r3, #52] ; 0x34 + 8001a8e: 4b80 ldr r3, [pc, #512] ; (8001c90 ) + 8001a90: 2104 movs r1, #4 + 8001a92: 430a orrs r2, r1 + 8001a94: 635a str r2, [r3, #52] ; 0x34 /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI14_ENABLE(); - 8001ace: 4b7e ldr r3, [pc, #504] ; (8001cc8 ) - 8001ad0: 6b5a ldr r2, [r3, #52] ; 0x34 - 8001ad2: 4b7d ldr r3, [pc, #500] ; (8001cc8 ) - 8001ad4: 2101 movs r1, #1 - 8001ad6: 430a orrs r2, r1 - 8001ad8: 635a str r2, [r3, #52] ; 0x34 + 8001a96: 4b7e ldr r3, [pc, #504] ; (8001c90 ) + 8001a98: 6b5a ldr r2, [r3, #52] ; 0x34 + 8001a9a: 4b7d ldr r3, [pc, #500] ; (8001c90 ) + 8001a9c: 2101 movs r1, #1 + 8001a9e: 430a orrs r2, r1 + 8001aa0: 635a str r2, [r3, #52] ; 0x34 /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001ada: f7fe fecd bl 8000878 - 8001ade: 0003 movs r3, r0 - 8001ae0: 61bb str r3, [r7, #24] + 8001aa2: f7fe fee9 bl 8000878 + 8001aa6: 0003 movs r3, r0 + 8001aa8: 61bb str r3, [r7, #24] /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) == RESET) - 8001ae2: e008 b.n 8001af6 + 8001aaa: e008 b.n 8001abe { if((HAL_GetTick() - tickstart) > HSI14_TIMEOUT_VALUE) - 8001ae4: f7fe fec8 bl 8000878 - 8001ae8: 0002 movs r2, r0 - 8001aea: 69bb ldr r3, [r7, #24] - 8001aec: 1ad3 subs r3, r2, r3 - 8001aee: 2b02 cmp r3, #2 - 8001af0: d901 bls.n 8001af6 + 8001aac: f7fe fee4 bl 8000878 + 8001ab0: 0002 movs r2, r0 + 8001ab2: 69bb ldr r3, [r7, #24] + 8001ab4: 1ad3 subs r3, r2, r3 + 8001ab6: 2b02 cmp r3, #2 + 8001ab8: d901 bls.n 8001abe { return HAL_TIMEOUT; - 8001af2: 2303 movs r3, #3 - 8001af4: e0e3 b.n 8001cbe + 8001aba: 2303 movs r3, #3 + 8001abc: e0e3 b.n 8001c86 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) == RESET) - 8001af6: 4b74 ldr r3, [pc, #464] ; (8001cc8 ) - 8001af8: 6b5b ldr r3, [r3, #52] ; 0x34 - 8001afa: 2202 movs r2, #2 - 8001afc: 4013 ands r3, r2 - 8001afe: d0f1 beq.n 8001ae4 + 8001abe: 4b74 ldr r3, [pc, #464] ; (8001c90 ) + 8001ac0: 6b5b ldr r3, [r3, #52] ; 0x34 + 8001ac2: 2202 movs r2, #2 + 8001ac4: 4013 ands r3, r2 + 8001ac6: d0f1 beq.n 8001aac } } /* Adjusts the Internal High Speed oscillator 14Mhz (HSI14) calibration value. */ __HAL_RCC_HSI14_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSI14CalibrationValue); - 8001b00: 4b71 ldr r3, [pc, #452] ; (8001cc8 ) - 8001b02: 6b5b ldr r3, [r3, #52] ; 0x34 - 8001b04: 22f8 movs r2, #248 ; 0xf8 - 8001b06: 4393 bics r3, r2 - 8001b08: 0019 movs r1, r3 - 8001b0a: 687b ldr r3, [r7, #4] - 8001b0c: 699b ldr r3, [r3, #24] - 8001b0e: 00da lsls r2, r3, #3 - 8001b10: 4b6d ldr r3, [pc, #436] ; (8001cc8 ) - 8001b12: 430a orrs r2, r1 - 8001b14: 635a str r2, [r3, #52] ; 0x34 - 8001b16: e034 b.n 8001b82 + 8001ac8: 4b71 ldr r3, [pc, #452] ; (8001c90 ) + 8001aca: 6b5b ldr r3, [r3, #52] ; 0x34 + 8001acc: 22f8 movs r2, #248 ; 0xf8 + 8001ace: 4393 bics r3, r2 + 8001ad0: 0019 movs r1, r3 + 8001ad2: 687b ldr r3, [r7, #4] + 8001ad4: 699b ldr r3, [r3, #24] + 8001ad6: 00da lsls r2, r3, #3 + 8001ad8: 4b6d ldr r3, [pc, #436] ; (8001c90 ) + 8001ada: 430a orrs r2, r1 + 8001adc: 635a str r2, [r3, #52] ; 0x34 + 8001ade: e034 b.n 8001b4a } else if(RCC_OscInitStruct->HSI14State == RCC_HSI14_ADC_CONTROL) - 8001b18: 687b ldr r3, [r7, #4] - 8001b1a: 695b ldr r3, [r3, #20] - 8001b1c: 3305 adds r3, #5 - 8001b1e: d111 bne.n 8001b44 + 8001ae0: 687b ldr r3, [r7, #4] + 8001ae2: 695b ldr r3, [r3, #20] + 8001ae4: 3305 adds r3, #5 + 8001ae6: d111 bne.n 8001b0c { /* Enable ADC control of the Internal High Speed oscillator HSI14 */ __HAL_RCC_HSI14ADC_ENABLE(); - 8001b20: 4b69 ldr r3, [pc, #420] ; (8001cc8 ) - 8001b22: 6b5a ldr r2, [r3, #52] ; 0x34 - 8001b24: 4b68 ldr r3, [pc, #416] ; (8001cc8 ) - 8001b26: 2104 movs r1, #4 - 8001b28: 438a bics r2, r1 - 8001b2a: 635a str r2, [r3, #52] ; 0x34 + 8001ae8: 4b69 ldr r3, [pc, #420] ; (8001c90 ) + 8001aea: 6b5a ldr r2, [r3, #52] ; 0x34 + 8001aec: 4b68 ldr r3, [pc, #416] ; (8001c90 ) + 8001aee: 2104 movs r1, #4 + 8001af0: 438a bics r2, r1 + 8001af2: 635a str r2, [r3, #52] ; 0x34 /* Adjusts the Internal High Speed oscillator 14Mhz (HSI14) calibration value. */ __HAL_RCC_HSI14_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSI14CalibrationValue); - 8001b2c: 4b66 ldr r3, [pc, #408] ; (8001cc8 ) - 8001b2e: 6b5b ldr r3, [r3, #52] ; 0x34 - 8001b30: 22f8 movs r2, #248 ; 0xf8 - 8001b32: 4393 bics r3, r2 - 8001b34: 0019 movs r1, r3 - 8001b36: 687b ldr r3, [r7, #4] - 8001b38: 699b ldr r3, [r3, #24] - 8001b3a: 00da lsls r2, r3, #3 - 8001b3c: 4b62 ldr r3, [pc, #392] ; (8001cc8 ) - 8001b3e: 430a orrs r2, r1 - 8001b40: 635a str r2, [r3, #52] ; 0x34 - 8001b42: e01e b.n 8001b82 + 8001af4: 4b66 ldr r3, [pc, #408] ; (8001c90 ) + 8001af6: 6b5b ldr r3, [r3, #52] ; 0x34 + 8001af8: 22f8 movs r2, #248 ; 0xf8 + 8001afa: 4393 bics r3, r2 + 8001afc: 0019 movs r1, r3 + 8001afe: 687b ldr r3, [r7, #4] + 8001b00: 699b ldr r3, [r3, #24] + 8001b02: 00da lsls r2, r3, #3 + 8001b04: 4b62 ldr r3, [pc, #392] ; (8001c90 ) + 8001b06: 430a orrs r2, r1 + 8001b08: 635a str r2, [r3, #52] ; 0x34 + 8001b0a: e01e b.n 8001b4a } else { /* Disable ADC control of the Internal High Speed oscillator HSI14 */ __HAL_RCC_HSI14ADC_DISABLE(); - 8001b44: 4b60 ldr r3, [pc, #384] ; (8001cc8 ) - 8001b46: 6b5a ldr r2, [r3, #52] ; 0x34 - 8001b48: 4b5f ldr r3, [pc, #380] ; (8001cc8 ) - 8001b4a: 2104 movs r1, #4 - 8001b4c: 430a orrs r2, r1 - 8001b4e: 635a str r2, [r3, #52] ; 0x34 + 8001b0c: 4b60 ldr r3, [pc, #384] ; (8001c90 ) + 8001b0e: 6b5a ldr r2, [r3, #52] ; 0x34 + 8001b10: 4b5f ldr r3, [pc, #380] ; (8001c90 ) + 8001b12: 2104 movs r1, #4 + 8001b14: 430a orrs r2, r1 + 8001b16: 635a str r2, [r3, #52] ; 0x34 /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI14_DISABLE(); - 8001b50: 4b5d ldr r3, [pc, #372] ; (8001cc8 ) - 8001b52: 6b5a ldr r2, [r3, #52] ; 0x34 - 8001b54: 4b5c ldr r3, [pc, #368] ; (8001cc8 ) - 8001b56: 2101 movs r1, #1 - 8001b58: 438a bics r2, r1 - 8001b5a: 635a str r2, [r3, #52] ; 0x34 + 8001b18: 4b5d ldr r3, [pc, #372] ; (8001c90 ) + 8001b1a: 6b5a ldr r2, [r3, #52] ; 0x34 + 8001b1c: 4b5c ldr r3, [pc, #368] ; (8001c90 ) + 8001b1e: 2101 movs r1, #1 + 8001b20: 438a bics r2, r1 + 8001b22: 635a str r2, [r3, #52] ; 0x34 /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001b5c: f7fe fe8c bl 8000878 - 8001b60: 0003 movs r3, r0 - 8001b62: 61bb str r3, [r7, #24] + 8001b24: f7fe fea8 bl 8000878 + 8001b28: 0003 movs r3, r0 + 8001b2a: 61bb str r3, [r7, #24] /* Wait till HSI is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) != RESET) - 8001b64: e008 b.n 8001b78 + 8001b2c: e008 b.n 8001b40 { if((HAL_GetTick() - tickstart) > HSI14_TIMEOUT_VALUE) - 8001b66: f7fe fe87 bl 8000878 - 8001b6a: 0002 movs r2, r0 - 8001b6c: 69bb ldr r3, [r7, #24] - 8001b6e: 1ad3 subs r3, r2, r3 - 8001b70: 2b02 cmp r3, #2 - 8001b72: d901 bls.n 8001b78 + 8001b2e: f7fe fea3 bl 8000878 + 8001b32: 0002 movs r2, r0 + 8001b34: 69bb ldr r3, [r7, #24] + 8001b36: 1ad3 subs r3, r2, r3 + 8001b38: 2b02 cmp r3, #2 + 8001b3a: d901 bls.n 8001b40 { return HAL_TIMEOUT; - 8001b74: 2303 movs r3, #3 - 8001b76: e0a2 b.n 8001cbe + 8001b3c: 2303 movs r3, #3 + 8001b3e: e0a2 b.n 8001c86 while(__HAL_RCC_GET_FLAG(RCC_FLAG_HSI14RDY) != RESET) - 8001b78: 4b53 ldr r3, [pc, #332] ; (8001cc8 ) - 8001b7a: 6b5b ldr r3, [r3, #52] ; 0x34 - 8001b7c: 2202 movs r2, #2 - 8001b7e: 4013 ands r3, r2 - 8001b80: d1f1 bne.n 8001b66 + 8001b40: 4b53 ldr r3, [pc, #332] ; (8001c90 ) + 8001b42: 6b5b ldr r3, [r3, #52] ; 0x34 + 8001b44: 2202 movs r2, #2 + 8001b46: 4013 ands r3, r2 + 8001b48: d1f1 bne.n 8001b2e #endif /* RCC_HSI48_SUPPORT */ /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - 8001b82: 687b ldr r3, [r7, #4] - 8001b84: 6a1b ldr r3, [r3, #32] - 8001b86: 2b00 cmp r3, #0 - 8001b88: d100 bne.n 8001b8c - 8001b8a: e097 b.n 8001cbc + 8001b4a: 687b ldr r3, [r7, #4] + 8001b4c: 6a1b ldr r3, [r3, #32] + 8001b4e: 2b00 cmp r3, #0 + 8001b50: d100 bne.n 8001b54 + 8001b52: e097 b.n 8001c84 { /* Check if the PLL is used as system clock or not */ if(__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) - 8001b8c: 4b4e ldr r3, [pc, #312] ; (8001cc8 ) - 8001b8e: 685b ldr r3, [r3, #4] - 8001b90: 220c movs r2, #12 - 8001b92: 4013 ands r3, r2 - 8001b94: 2b08 cmp r3, #8 - 8001b96: d100 bne.n 8001b9a - 8001b98: e06b b.n 8001c72 + 8001b54: 4b4e ldr r3, [pc, #312] ; (8001c90 ) + 8001b56: 685b ldr r3, [r3, #4] + 8001b58: 220c movs r2, #12 + 8001b5a: 4013 ands r3, r2 + 8001b5c: 2b08 cmp r3, #8 + 8001b5e: d100 bne.n 8001b62 + 8001b60: e06b b.n 8001c3a { if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 8001b9a: 687b ldr r3, [r7, #4] - 8001b9c: 6a1b ldr r3, [r3, #32] - 8001b9e: 2b02 cmp r3, #2 - 8001ba0: d14c bne.n 8001c3c + 8001b62: 687b ldr r3, [r7, #4] + 8001b64: 6a1b ldr r3, [r3, #32] + 8001b66: 2b02 cmp r3, #2 + 8001b68: d14c bne.n 8001c04 assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource)); assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL)); assert_param(IS_RCC_PREDIV(RCC_OscInitStruct->PLL.PREDIV)); /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 8001ba2: 4b49 ldr r3, [pc, #292] ; (8001cc8 ) - 8001ba4: 681a ldr r2, [r3, #0] - 8001ba6: 4b48 ldr r3, [pc, #288] ; (8001cc8 ) - 8001ba8: 494a ldr r1, [pc, #296] ; (8001cd4 ) - 8001baa: 400a ands r2, r1 - 8001bac: 601a str r2, [r3, #0] + 8001b6a: 4b49 ldr r3, [pc, #292] ; (8001c90 ) + 8001b6c: 681a ldr r2, [r3, #0] + 8001b6e: 4b48 ldr r3, [pc, #288] ; (8001c90 ) + 8001b70: 494a ldr r1, [pc, #296] ; (8001c9c ) + 8001b72: 400a ands r2, r1 + 8001b74: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001bae: f7fe fe63 bl 8000878 - 8001bb2: 0003 movs r3, r0 - 8001bb4: 61bb str r3, [r7, #24] + 8001b76: f7fe fe7f bl 8000878 + 8001b7a: 0003 movs r3, r0 + 8001b7c: 61bb str r3, [r7, #24] /* Wait till PLL is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8001bb6: e008 b.n 8001bca + 8001b7e: e008 b.n 8001b92 { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 8001bb8: f7fe fe5e bl 8000878 - 8001bbc: 0002 movs r2, r0 - 8001bbe: 69bb ldr r3, [r7, #24] - 8001bc0: 1ad3 subs r3, r2, r3 - 8001bc2: 2b02 cmp r3, #2 - 8001bc4: d901 bls.n 8001bca + 8001b80: f7fe fe7a bl 8000878 + 8001b84: 0002 movs r2, r0 + 8001b86: 69bb ldr r3, [r7, #24] + 8001b88: 1ad3 subs r3, r2, r3 + 8001b8a: 2b02 cmp r3, #2 + 8001b8c: d901 bls.n 8001b92 { return HAL_TIMEOUT; - 8001bc6: 2303 movs r3, #3 - 8001bc8: e079 b.n 8001cbe + 8001b8e: 2303 movs r3, #3 + 8001b90: e079 b.n 8001c86 while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8001bca: 4b3f ldr r3, [pc, #252] ; (8001cc8 ) - 8001bcc: 681a ldr r2, [r3, #0] - 8001bce: 2380 movs r3, #128 ; 0x80 - 8001bd0: 049b lsls r3, r3, #18 - 8001bd2: 4013 ands r3, r2 - 8001bd4: d1f0 bne.n 8001bb8 + 8001b92: 4b3f ldr r3, [pc, #252] ; (8001c90 ) + 8001b94: 681a ldr r2, [r3, #0] + 8001b96: 2380 movs r3, #128 ; 0x80 + 8001b98: 049b lsls r3, r3, #18 + 8001b9a: 4013 ands r3, r2 + 8001b9c: d1f0 bne.n 8001b80 } } /* Configure the main PLL clock source, predivider and multiplication factor. */ __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, - 8001bd6: 4b3c ldr r3, [pc, #240] ; (8001cc8 ) - 8001bd8: 6adb ldr r3, [r3, #44] ; 0x2c - 8001bda: 220f movs r2, #15 - 8001bdc: 4393 bics r3, r2 - 8001bde: 0019 movs r1, r3 - 8001be0: 687b ldr r3, [r7, #4] - 8001be2: 6ada ldr r2, [r3, #44] ; 0x2c - 8001be4: 4b38 ldr r3, [pc, #224] ; (8001cc8 ) - 8001be6: 430a orrs r2, r1 - 8001be8: 62da str r2, [r3, #44] ; 0x2c - 8001bea: 4b37 ldr r3, [pc, #220] ; (8001cc8 ) - 8001bec: 685b ldr r3, [r3, #4] - 8001bee: 4a3a ldr r2, [pc, #232] ; (8001cd8 ) - 8001bf0: 4013 ands r3, r2 - 8001bf2: 0019 movs r1, r3 - 8001bf4: 687b ldr r3, [r7, #4] - 8001bf6: 6a9a ldr r2, [r3, #40] ; 0x28 - 8001bf8: 687b ldr r3, [r7, #4] - 8001bfa: 6a5b ldr r3, [r3, #36] ; 0x24 - 8001bfc: 431a orrs r2, r3 - 8001bfe: 4b32 ldr r3, [pc, #200] ; (8001cc8 ) - 8001c00: 430a orrs r2, r1 - 8001c02: 605a str r2, [r3, #4] + 8001b9e: 4b3c ldr r3, [pc, #240] ; (8001c90 ) + 8001ba0: 6adb ldr r3, [r3, #44] ; 0x2c + 8001ba2: 220f movs r2, #15 + 8001ba4: 4393 bics r3, r2 + 8001ba6: 0019 movs r1, r3 + 8001ba8: 687b ldr r3, [r7, #4] + 8001baa: 6ada ldr r2, [r3, #44] ; 0x2c + 8001bac: 4b38 ldr r3, [pc, #224] ; (8001c90 ) + 8001bae: 430a orrs r2, r1 + 8001bb0: 62da str r2, [r3, #44] ; 0x2c + 8001bb2: 4b37 ldr r3, [pc, #220] ; (8001c90 ) + 8001bb4: 685b ldr r3, [r3, #4] + 8001bb6: 4a3a ldr r2, [pc, #232] ; (8001ca0 ) + 8001bb8: 4013 ands r3, r2 + 8001bba: 0019 movs r1, r3 + 8001bbc: 687b ldr r3, [r7, #4] + 8001bbe: 6a9a ldr r2, [r3, #40] ; 0x28 + 8001bc0: 687b ldr r3, [r7, #4] + 8001bc2: 6a5b ldr r3, [r3, #36] ; 0x24 + 8001bc4: 431a orrs r2, r3 + 8001bc6: 4b32 ldr r3, [pc, #200] ; (8001c90 ) + 8001bc8: 430a orrs r2, r1 + 8001bca: 605a str r2, [r3, #4] RCC_OscInitStruct->PLL.PREDIV, RCC_OscInitStruct->PLL.PLLMUL); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); - 8001c04: 4b30 ldr r3, [pc, #192] ; (8001cc8 ) - 8001c06: 681a ldr r2, [r3, #0] - 8001c08: 4b2f ldr r3, [pc, #188] ; (8001cc8 ) - 8001c0a: 2180 movs r1, #128 ; 0x80 - 8001c0c: 0449 lsls r1, r1, #17 - 8001c0e: 430a orrs r2, r1 - 8001c10: 601a str r2, [r3, #0] + 8001bcc: 4b30 ldr r3, [pc, #192] ; (8001c90 ) + 8001bce: 681a ldr r2, [r3, #0] + 8001bd0: 4b2f ldr r3, [pc, #188] ; (8001c90 ) + 8001bd2: 2180 movs r1, #128 ; 0x80 + 8001bd4: 0449 lsls r1, r1, #17 + 8001bd6: 430a orrs r2, r1 + 8001bd8: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001c12: f7fe fe31 bl 8000878 - 8001c16: 0003 movs r3, r0 - 8001c18: 61bb str r3, [r7, #24] + 8001bda: f7fe fe4d bl 8000878 + 8001bde: 0003 movs r3, r0 + 8001be0: 61bb str r3, [r7, #24] /* Wait till PLL is ready */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8001c1a: e008 b.n 8001c2e + 8001be2: e008 b.n 8001bf6 { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 8001c1c: f7fe fe2c bl 8000878 - 8001c20: 0002 movs r2, r0 - 8001c22: 69bb ldr r3, [r7, #24] - 8001c24: 1ad3 subs r3, r2, r3 - 8001c26: 2b02 cmp r3, #2 - 8001c28: d901 bls.n 8001c2e + 8001be4: f7fe fe48 bl 8000878 + 8001be8: 0002 movs r2, r0 + 8001bea: 69bb ldr r3, [r7, #24] + 8001bec: 1ad3 subs r3, r2, r3 + 8001bee: 2b02 cmp r3, #2 + 8001bf0: d901 bls.n 8001bf6 { return HAL_TIMEOUT; - 8001c2a: 2303 movs r3, #3 - 8001c2c: e047 b.n 8001cbe + 8001bf2: 2303 movs r3, #3 + 8001bf4: e047 b.n 8001c86 while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8001c2e: 4b26 ldr r3, [pc, #152] ; (8001cc8 ) - 8001c30: 681a ldr r2, [r3, #0] - 8001c32: 2380 movs r3, #128 ; 0x80 - 8001c34: 049b lsls r3, r3, #18 - 8001c36: 4013 ands r3, r2 - 8001c38: d0f0 beq.n 8001c1c - 8001c3a: e03f b.n 8001cbc + 8001bf6: 4b26 ldr r3, [pc, #152] ; (8001c90 ) + 8001bf8: 681a ldr r2, [r3, #0] + 8001bfa: 2380 movs r3, #128 ; 0x80 + 8001bfc: 049b lsls r3, r3, #18 + 8001bfe: 4013 ands r3, r2 + 8001c00: d0f0 beq.n 8001be4 + 8001c02: e03f b.n 8001c84 } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 8001c3c: 4b22 ldr r3, [pc, #136] ; (8001cc8 ) - 8001c3e: 681a ldr r2, [r3, #0] - 8001c40: 4b21 ldr r3, [pc, #132] ; (8001cc8 ) - 8001c42: 4924 ldr r1, [pc, #144] ; (8001cd4 ) - 8001c44: 400a ands r2, r1 - 8001c46: 601a str r2, [r3, #0] + 8001c04: 4b22 ldr r3, [pc, #136] ; (8001c90 ) + 8001c06: 681a ldr r2, [r3, #0] + 8001c08: 4b21 ldr r3, [pc, #132] ; (8001c90 ) + 8001c0a: 4924 ldr r1, [pc, #144] ; (8001c9c ) + 8001c0c: 400a ands r2, r1 + 8001c0e: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001c48: f7fe fe16 bl 8000878 - 8001c4c: 0003 movs r3, r0 - 8001c4e: 61bb str r3, [r7, #24] + 8001c10: f7fe fe32 bl 8000878 + 8001c14: 0003 movs r3, r0 + 8001c16: 61bb str r3, [r7, #24] /* Wait till PLL is disabled */ while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8001c50: e008 b.n 8001c64 + 8001c18: e008 b.n 8001c2c { if((HAL_GetTick() - tickstart ) > PLL_TIMEOUT_VALUE) - 8001c52: f7fe fe11 bl 8000878 - 8001c56: 0002 movs r2, r0 - 8001c58: 69bb ldr r3, [r7, #24] - 8001c5a: 1ad3 subs r3, r2, r3 - 8001c5c: 2b02 cmp r3, #2 - 8001c5e: d901 bls.n 8001c64 + 8001c1a: f7fe fe2d bl 8000878 + 8001c1e: 0002 movs r2, r0 + 8001c20: 69bb ldr r3, [r7, #24] + 8001c22: 1ad3 subs r3, r2, r3 + 8001c24: 2b02 cmp r3, #2 + 8001c26: d901 bls.n 8001c2c { return HAL_TIMEOUT; - 8001c60: 2303 movs r3, #3 - 8001c62: e02c b.n 8001cbe + 8001c28: 2303 movs r3, #3 + 8001c2a: e02c b.n 8001c86 while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8001c64: 4b18 ldr r3, [pc, #96] ; (8001cc8 ) - 8001c66: 681a ldr r2, [r3, #0] - 8001c68: 2380 movs r3, #128 ; 0x80 - 8001c6a: 049b lsls r3, r3, #18 - 8001c6c: 4013 ands r3, r2 - 8001c6e: d1f0 bne.n 8001c52 - 8001c70: e024 b.n 8001cbc + 8001c2c: 4b18 ldr r3, [pc, #96] ; (8001c90 ) + 8001c2e: 681a ldr r2, [r3, #0] + 8001c30: 2380 movs r3, #128 ; 0x80 + 8001c32: 049b lsls r3, r3, #18 + 8001c34: 4013 ands r3, r2 + 8001c36: d1f0 bne.n 8001c1a + 8001c38: e024 b.n 8001c84 } } else { /* Check if there is a request to disable the PLL used as System clock source */ if((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 8001c72: 687b ldr r3, [r7, #4] - 8001c74: 6a1b ldr r3, [r3, #32] - 8001c76: 2b01 cmp r3, #1 - 8001c78: d101 bne.n 8001c7e + 8001c3a: 687b ldr r3, [r7, #4] + 8001c3c: 6a1b ldr r3, [r3, #32] + 8001c3e: 2b01 cmp r3, #1 + 8001c40: d101 bne.n 8001c46 { return HAL_ERROR; - 8001c7a: 2301 movs r3, #1 - 8001c7c: e01f b.n 8001cbe + 8001c42: 2301 movs r3, #1 + 8001c44: e01f b.n 8001c86 } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->CFGR; - 8001c7e: 4b12 ldr r3, [pc, #72] ; (8001cc8 ) - 8001c80: 685b ldr r3, [r3, #4] - 8001c82: 617b str r3, [r7, #20] + 8001c46: 4b12 ldr r3, [pc, #72] ; (8001c90 ) + 8001c48: 685b ldr r3, [r3, #4] + 8001c4a: 617b str r3, [r7, #20] pll_config2 = RCC->CFGR2; - 8001c84: 4b10 ldr r3, [pc, #64] ; (8001cc8 ) - 8001c86: 6adb ldr r3, [r3, #44] ; 0x2c - 8001c88: 613b str r3, [r7, #16] + 8001c4c: 4b10 ldr r3, [pc, #64] ; (8001c90 ) + 8001c4e: 6adb ldr r3, [r3, #44] ; 0x2c + 8001c50: 613b str r3, [r7, #16] if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8001c8a: 697a ldr r2, [r7, #20] - 8001c8c: 2380 movs r3, #128 ; 0x80 - 8001c8e: 025b lsls r3, r3, #9 - 8001c90: 401a ands r2, r3 - 8001c92: 687b ldr r3, [r7, #4] - 8001c94: 6a5b ldr r3, [r3, #36] ; 0x24 - 8001c96: 429a cmp r2, r3 - 8001c98: d10e bne.n 8001cb8 + 8001c52: 697a ldr r2, [r7, #20] + 8001c54: 2380 movs r3, #128 ; 0x80 + 8001c56: 025b lsls r3, r3, #9 + 8001c58: 401a ands r2, r3 + 8001c5a: 687b ldr r3, [r7, #4] + 8001c5c: 6a5b ldr r3, [r3, #36] ; 0x24 + 8001c5e: 429a cmp r2, r3 + 8001c60: d10e bne.n 8001c80 (READ_BIT(pll_config2, RCC_CFGR2_PREDIV) != RCC_OscInitStruct->PLL.PREDIV) || - 8001c9a: 693b ldr r3, [r7, #16] - 8001c9c: 220f movs r2, #15 - 8001c9e: 401a ands r2, r3 - 8001ca0: 687b ldr r3, [r7, #4] - 8001ca2: 6adb ldr r3, [r3, #44] ; 0x2c + 8001c62: 693b ldr r3, [r7, #16] + 8001c64: 220f movs r2, #15 + 8001c66: 401a ands r2, r3 + 8001c68: 687b ldr r3, [r7, #4] + 8001c6a: 6adb ldr r3, [r3, #44] ; 0x2c if((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8001ca4: 429a cmp r2, r3 - 8001ca6: d107 bne.n 8001cb8 + 8001c6c: 429a cmp r2, r3 + 8001c6e: d107 bne.n 8001c80 (READ_BIT(pll_config, RCC_CFGR_PLLMUL) != RCC_OscInitStruct->PLL.PLLMUL)) - 8001ca8: 697a ldr r2, [r7, #20] - 8001caa: 23f0 movs r3, #240 ; 0xf0 - 8001cac: 039b lsls r3, r3, #14 - 8001cae: 401a ands r2, r3 - 8001cb0: 687b ldr r3, [r7, #4] - 8001cb2: 6a9b ldr r3, [r3, #40] ; 0x28 + 8001c70: 697a ldr r2, [r7, #20] + 8001c72: 23f0 movs r3, #240 ; 0xf0 + 8001c74: 039b lsls r3, r3, #14 + 8001c76: 401a ands r2, r3 + 8001c78: 687b ldr r3, [r7, #4] + 8001c7a: 6a9b ldr r3, [r3, #40] ; 0x28 (READ_BIT(pll_config2, RCC_CFGR2_PREDIV) != RCC_OscInitStruct->PLL.PREDIV) || - 8001cb4: 429a cmp r2, r3 - 8001cb6: d001 beq.n 8001cbc + 8001c7c: 429a cmp r2, r3 + 8001c7e: d001 beq.n 8001c84 { return HAL_ERROR; - 8001cb8: 2301 movs r3, #1 - 8001cba: e000 b.n 8001cbe + 8001c80: 2301 movs r3, #1 + 8001c82: e000 b.n 8001c86 } } } } return HAL_OK; - 8001cbc: 2300 movs r3, #0 + 8001c84: 2300 movs r3, #0 } - 8001cbe: 0018 movs r0, r3 - 8001cc0: 46bd mov sp, r7 - 8001cc2: b008 add sp, #32 - 8001cc4: bd80 pop {r7, pc} - 8001cc6: 46c0 nop ; (mov r8, r8) - 8001cc8: 40021000 .word 0x40021000 - 8001ccc: 00001388 .word 0x00001388 - 8001cd0: efffffff .word 0xefffffff - 8001cd4: feffffff .word 0xfeffffff - 8001cd8: ffc2ffff .word 0xffc2ffff + 8001c86: 0018 movs r0, r3 + 8001c88: 46bd mov sp, r7 + 8001c8a: b008 add sp, #32 + 8001c8c: bd80 pop {r7, pc} + 8001c8e: 46c0 nop ; (mov r8, r8) + 8001c90: 40021000 .word 0x40021000 + 8001c94: 00001388 .word 0x00001388 + 8001c98: efffffff .word 0xefffffff + 8001c9c: feffffff .word 0xfeffffff + 8001ca0: ffc2ffff .word 0xffc2ffff -08001cdc : +08001ca4 : * You can use @ref HAL_RCC_GetClockConfig() function to know which clock is * currently used as system clock source. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) { - 8001cdc: b580 push {r7, lr} - 8001cde: b084 sub sp, #16 - 8001ce0: af00 add r7, sp, #0 - 8001ce2: 6078 str r0, [r7, #4] - 8001ce4: 6039 str r1, [r7, #0] + 8001ca4: b580 push {r7, lr} + 8001ca6: b084 sub sp, #16 + 8001ca8: af00 add r7, sp, #0 + 8001caa: 6078 str r0, [r7, #4] + 8001cac: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if(RCC_ClkInitStruct == NULL) - 8001ce6: 687b ldr r3, [r7, #4] - 8001ce8: 2b00 cmp r3, #0 - 8001cea: d101 bne.n 8001cf0 + 8001cae: 687b ldr r3, [r7, #4] + 8001cb0: 2b00 cmp r3, #0 + 8001cb2: d101 bne.n 8001cb8 { return HAL_ERROR; - 8001cec: 2301 movs r3, #1 - 8001cee: e0b3 b.n 8001e58 + 8001cb4: 2301 movs r3, #1 + 8001cb6: e0b3 b.n 8001e20 /* To correctly read data from FLASH memory, the number of wait states (LATENCY) must be correctly programmed according to the frequency of the CPU clock (HCLK) of the device. */ /* Increasing the number of wait states because of higher CPU frequency */ if(FLatency > __HAL_FLASH_GET_LATENCY()) - 8001cf0: 4b5b ldr r3, [pc, #364] ; (8001e60 ) - 8001cf2: 681b ldr r3, [r3, #0] - 8001cf4: 2201 movs r2, #1 - 8001cf6: 4013 ands r3, r2 - 8001cf8: 683a ldr r2, [r7, #0] - 8001cfa: 429a cmp r2, r3 - 8001cfc: d911 bls.n 8001d22 + 8001cb8: 4b5b ldr r3, [pc, #364] ; (8001e28 ) + 8001cba: 681b ldr r3, [r3, #0] + 8001cbc: 2201 movs r2, #1 + 8001cbe: 4013 ands r3, r2 + 8001cc0: 683a ldr r2, [r7, #0] + 8001cc2: 429a cmp r2, r3 + 8001cc4: d911 bls.n 8001cea { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 8001cfe: 4b58 ldr r3, [pc, #352] ; (8001e60 ) - 8001d00: 681b ldr r3, [r3, #0] - 8001d02: 2201 movs r2, #1 - 8001d04: 4393 bics r3, r2 - 8001d06: 0019 movs r1, r3 - 8001d08: 4b55 ldr r3, [pc, #340] ; (8001e60 ) - 8001d0a: 683a ldr r2, [r7, #0] - 8001d0c: 430a orrs r2, r1 - 8001d0e: 601a str r2, [r3, #0] + 8001cc6: 4b58 ldr r3, [pc, #352] ; (8001e28 ) + 8001cc8: 681b ldr r3, [r3, #0] + 8001cca: 2201 movs r2, #1 + 8001ccc: 4393 bics r3, r2 + 8001cce: 0019 movs r1, r3 + 8001cd0: 4b55 ldr r3, [pc, #340] ; (8001e28 ) + 8001cd2: 683a ldr r2, [r7, #0] + 8001cd4: 430a orrs r2, r1 + 8001cd6: 601a str r2, [r3, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if(__HAL_FLASH_GET_LATENCY() != FLatency) - 8001d10: 4b53 ldr r3, [pc, #332] ; (8001e60 ) - 8001d12: 681b ldr r3, [r3, #0] - 8001d14: 2201 movs r2, #1 - 8001d16: 4013 ands r3, r2 - 8001d18: 683a ldr r2, [r7, #0] - 8001d1a: 429a cmp r2, r3 - 8001d1c: d001 beq.n 8001d22 + 8001cd8: 4b53 ldr r3, [pc, #332] ; (8001e28 ) + 8001cda: 681b ldr r3, [r3, #0] + 8001cdc: 2201 movs r2, #1 + 8001cde: 4013 ands r3, r2 + 8001ce0: 683a ldr r2, [r7, #0] + 8001ce2: 429a cmp r2, r3 + 8001ce4: d001 beq.n 8001cea { return HAL_ERROR; - 8001d1e: 2301 movs r3, #1 - 8001d20: e09a b.n 8001e58 + 8001ce6: 2301 movs r3, #1 + 8001ce8: e09a b.n 8001e20 } } /*-------------------------- HCLK Configuration --------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 8001d22: 687b ldr r3, [r7, #4] - 8001d24: 681b ldr r3, [r3, #0] - 8001d26: 2202 movs r2, #2 - 8001d28: 4013 ands r3, r2 - 8001d2a: d015 beq.n 8001d58 + 8001cea: 687b ldr r3, [r7, #4] + 8001cec: 681b ldr r3, [r3, #0] + 8001cee: 2202 movs r2, #2 + 8001cf0: 4013 ands r3, r2 + 8001cf2: d015 beq.n 8001d20 { /* Set the highest APB divider in order to ensure that we do not go through a non-spec phase whatever we decrease or increase HCLK. */ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 8001d2c: 687b ldr r3, [r7, #4] - 8001d2e: 681b ldr r3, [r3, #0] - 8001d30: 2204 movs r2, #4 - 8001d32: 4013 ands r3, r2 - 8001d34: d006 beq.n 8001d44 + 8001cf4: 687b ldr r3, [r7, #4] + 8001cf6: 681b ldr r3, [r3, #0] + 8001cf8: 2204 movs r2, #4 + 8001cfa: 4013 ands r3, r2 + 8001cfc: d006 beq.n 8001d0c { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE, RCC_HCLK_DIV16); - 8001d36: 4b4b ldr r3, [pc, #300] ; (8001e64 ) - 8001d38: 685a ldr r2, [r3, #4] - 8001d3a: 4b4a ldr r3, [pc, #296] ; (8001e64 ) - 8001d3c: 21e0 movs r1, #224 ; 0xe0 - 8001d3e: 00c9 lsls r1, r1, #3 - 8001d40: 430a orrs r2, r1 - 8001d42: 605a str r2, [r3, #4] + 8001cfe: 4b4b ldr r3, [pc, #300] ; (8001e2c ) + 8001d00: 685a ldr r2, [r3, #4] + 8001d02: 4b4a ldr r3, [pc, #296] ; (8001e2c ) + 8001d04: 21e0 movs r1, #224 ; 0xe0 + 8001d06: 00c9 lsls r1, r1, #3 + 8001d08: 430a orrs r2, r1 + 8001d0a: 605a str r2, [r3, #4] } /* Set the new HCLK clock divider */ assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 8001d44: 4b47 ldr r3, [pc, #284] ; (8001e64 ) - 8001d46: 685b ldr r3, [r3, #4] - 8001d48: 22f0 movs r2, #240 ; 0xf0 - 8001d4a: 4393 bics r3, r2 - 8001d4c: 0019 movs r1, r3 - 8001d4e: 687b ldr r3, [r7, #4] - 8001d50: 689a ldr r2, [r3, #8] - 8001d52: 4b44 ldr r3, [pc, #272] ; (8001e64 ) - 8001d54: 430a orrs r2, r1 - 8001d56: 605a str r2, [r3, #4] + 8001d0c: 4b47 ldr r3, [pc, #284] ; (8001e2c ) + 8001d0e: 685b ldr r3, [r3, #4] + 8001d10: 22f0 movs r2, #240 ; 0xf0 + 8001d12: 4393 bics r3, r2 + 8001d14: 0019 movs r1, r3 + 8001d16: 687b ldr r3, [r7, #4] + 8001d18: 689a ldr r2, [r3, #8] + 8001d1a: 4b44 ldr r3, [pc, #272] ; (8001e2c ) + 8001d1c: 430a orrs r2, r1 + 8001d1e: 605a str r2, [r3, #4] } /*------------------------- SYSCLK Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 8001d58: 687b ldr r3, [r7, #4] - 8001d5a: 681b ldr r3, [r3, #0] - 8001d5c: 2201 movs r2, #1 - 8001d5e: 4013 ands r3, r2 - 8001d60: d040 beq.n 8001de4 + 8001d20: 687b ldr r3, [r7, #4] + 8001d22: 681b ldr r3, [r3, #0] + 8001d24: 2201 movs r2, #1 + 8001d26: 4013 ands r3, r2 + 8001d28: d040 beq.n 8001dac { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 8001d62: 687b ldr r3, [r7, #4] - 8001d64: 685b ldr r3, [r3, #4] - 8001d66: 2b01 cmp r3, #1 - 8001d68: d107 bne.n 8001d7a + 8001d2a: 687b ldr r3, [r7, #4] + 8001d2c: 685b ldr r3, [r3, #4] + 8001d2e: 2b01 cmp r3, #1 + 8001d30: d107 bne.n 8001d42 { /* Check the HSE ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8001d6a: 4b3e ldr r3, [pc, #248] ; (8001e64 ) - 8001d6c: 681a ldr r2, [r3, #0] - 8001d6e: 2380 movs r3, #128 ; 0x80 - 8001d70: 029b lsls r3, r3, #10 - 8001d72: 4013 ands r3, r2 - 8001d74: d114 bne.n 8001da0 + 8001d32: 4b3e ldr r3, [pc, #248] ; (8001e2c ) + 8001d34: 681a ldr r2, [r3, #0] + 8001d36: 2380 movs r3, #128 ; 0x80 + 8001d38: 029b lsls r3, r3, #10 + 8001d3a: 4013 ands r3, r2 + 8001d3c: d114 bne.n 8001d68 { return HAL_ERROR; - 8001d76: 2301 movs r3, #1 - 8001d78: e06e b.n 8001e58 + 8001d3e: 2301 movs r3, #1 + 8001d40: e06e b.n 8001e20 } } /* PLL is selected as System Clock Source */ else if(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) - 8001d7a: 687b ldr r3, [r7, #4] - 8001d7c: 685b ldr r3, [r3, #4] - 8001d7e: 2b02 cmp r3, #2 - 8001d80: d107 bne.n 8001d92 + 8001d42: 687b ldr r3, [r7, #4] + 8001d44: 685b ldr r3, [r3, #4] + 8001d46: 2b02 cmp r3, #2 + 8001d48: d107 bne.n 8001d5a { /* Check the PLL ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8001d82: 4b38 ldr r3, [pc, #224] ; (8001e64 ) - 8001d84: 681a ldr r2, [r3, #0] - 8001d86: 2380 movs r3, #128 ; 0x80 - 8001d88: 049b lsls r3, r3, #18 - 8001d8a: 4013 ands r3, r2 - 8001d8c: d108 bne.n 8001da0 + 8001d4a: 4b38 ldr r3, [pc, #224] ; (8001e2c ) + 8001d4c: 681a ldr r2, [r3, #0] + 8001d4e: 2380 movs r3, #128 ; 0x80 + 8001d50: 049b lsls r3, r3, #18 + 8001d52: 4013 ands r3, r2 + 8001d54: d108 bne.n 8001d68 { return HAL_ERROR; - 8001d8e: 2301 movs r3, #1 - 8001d90: e062 b.n 8001e58 + 8001d56: 2301 movs r3, #1 + 8001d58: e062 b.n 8001e20 #endif /* RCC_CFGR_SWS_HSI48 */ /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if(__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8001d92: 4b34 ldr r3, [pc, #208] ; (8001e64 ) - 8001d94: 681b ldr r3, [r3, #0] - 8001d96: 2202 movs r2, #2 - 8001d98: 4013 ands r3, r2 - 8001d9a: d101 bne.n 8001da0 + 8001d5a: 4b34 ldr r3, [pc, #208] ; (8001e2c ) + 8001d5c: 681b ldr r3, [r3, #0] + 8001d5e: 2202 movs r2, #2 + 8001d60: 4013 ands r3, r2 + 8001d62: d101 bne.n 8001d68 { return HAL_ERROR; - 8001d9c: 2301 movs r3, #1 - 8001d9e: e05b b.n 8001e58 + 8001d64: 2301 movs r3, #1 + 8001d66: e05b b.n 8001e20 } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 8001da0: 4b30 ldr r3, [pc, #192] ; (8001e64 ) - 8001da2: 685b ldr r3, [r3, #4] - 8001da4: 2203 movs r2, #3 - 8001da6: 4393 bics r3, r2 - 8001da8: 0019 movs r1, r3 - 8001daa: 687b ldr r3, [r7, #4] - 8001dac: 685a ldr r2, [r3, #4] - 8001dae: 4b2d ldr r3, [pc, #180] ; (8001e64 ) - 8001db0: 430a orrs r2, r1 - 8001db2: 605a str r2, [r3, #4] + 8001d68: 4b30 ldr r3, [pc, #192] ; (8001e2c ) + 8001d6a: 685b ldr r3, [r3, #4] + 8001d6c: 2203 movs r2, #3 + 8001d6e: 4393 bics r3, r2 + 8001d70: 0019 movs r1, r3 + 8001d72: 687b ldr r3, [r7, #4] + 8001d74: 685a ldr r2, [r3, #4] + 8001d76: 4b2d ldr r3, [pc, #180] ; (8001e2c ) + 8001d78: 430a orrs r2, r1 + 8001d7a: 605a str r2, [r3, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); - 8001db4: f7fe fd60 bl 8000878 - 8001db8: 0003 movs r3, r0 - 8001dba: 60fb str r3, [r7, #12] + 8001d7c: f7fe fd7c bl 8000878 + 8001d80: 0003 movs r3, r0 + 8001d82: 60fb str r3, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8001dbc: e009 b.n 8001dd2 + 8001d84: e009 b.n 8001d9a { if((HAL_GetTick() - tickstart ) > CLOCKSWITCH_TIMEOUT_VALUE) - 8001dbe: f7fe fd5b bl 8000878 - 8001dc2: 0002 movs r2, r0 - 8001dc4: 68fb ldr r3, [r7, #12] - 8001dc6: 1ad3 subs r3, r2, r3 - 8001dc8: 4a27 ldr r2, [pc, #156] ; (8001e68 ) - 8001dca: 4293 cmp r3, r2 - 8001dcc: d901 bls.n 8001dd2 + 8001d86: f7fe fd77 bl 8000878 + 8001d8a: 0002 movs r2, r0 + 8001d8c: 68fb ldr r3, [r7, #12] + 8001d8e: 1ad3 subs r3, r2, r3 + 8001d90: 4a27 ldr r2, [pc, #156] ; (8001e30 ) + 8001d92: 4293 cmp r3, r2 + 8001d94: d901 bls.n 8001d9a { return HAL_TIMEOUT; - 8001dce: 2303 movs r3, #3 - 8001dd0: e042 b.n 8001e58 + 8001d96: 2303 movs r3, #3 + 8001d98: e042 b.n 8001e20 while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8001dd2: 4b24 ldr r3, [pc, #144] ; (8001e64 ) - 8001dd4: 685b ldr r3, [r3, #4] - 8001dd6: 220c movs r2, #12 - 8001dd8: 401a ands r2, r3 - 8001dda: 687b ldr r3, [r7, #4] - 8001ddc: 685b ldr r3, [r3, #4] - 8001dde: 009b lsls r3, r3, #2 - 8001de0: 429a cmp r2, r3 - 8001de2: d1ec bne.n 8001dbe + 8001d9a: 4b24 ldr r3, [pc, #144] ; (8001e2c ) + 8001d9c: 685b ldr r3, [r3, #4] + 8001d9e: 220c movs r2, #12 + 8001da0: 401a ands r2, r3 + 8001da2: 687b ldr r3, [r7, #4] + 8001da4: 685b ldr r3, [r3, #4] + 8001da6: 009b lsls r3, r3, #2 + 8001da8: 429a cmp r2, r3 + 8001daa: d1ec bne.n 8001d86 } } } /* Decreasing the number of wait states because of lower CPU frequency */ if(FLatency < __HAL_FLASH_GET_LATENCY()) - 8001de4: 4b1e ldr r3, [pc, #120] ; (8001e60 ) - 8001de6: 681b ldr r3, [r3, #0] - 8001de8: 2201 movs r2, #1 - 8001dea: 4013 ands r3, r2 - 8001dec: 683a ldr r2, [r7, #0] - 8001dee: 429a cmp r2, r3 - 8001df0: d211 bcs.n 8001e16 + 8001dac: 4b1e ldr r3, [pc, #120] ; (8001e28 ) + 8001dae: 681b ldr r3, [r3, #0] + 8001db0: 2201 movs r2, #1 + 8001db2: 4013 ands r3, r2 + 8001db4: 683a ldr r2, [r7, #0] + 8001db6: 429a cmp r2, r3 + 8001db8: d211 bcs.n 8001dde { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 8001df2: 4b1b ldr r3, [pc, #108] ; (8001e60 ) - 8001df4: 681b ldr r3, [r3, #0] - 8001df6: 2201 movs r2, #1 - 8001df8: 4393 bics r3, r2 - 8001dfa: 0019 movs r1, r3 - 8001dfc: 4b18 ldr r3, [pc, #96] ; (8001e60 ) - 8001dfe: 683a ldr r2, [r7, #0] - 8001e00: 430a orrs r2, r1 - 8001e02: 601a str r2, [r3, #0] + 8001dba: 4b1b ldr r3, [pc, #108] ; (8001e28 ) + 8001dbc: 681b ldr r3, [r3, #0] + 8001dbe: 2201 movs r2, #1 + 8001dc0: 4393 bics r3, r2 + 8001dc2: 0019 movs r1, r3 + 8001dc4: 4b18 ldr r3, [pc, #96] ; (8001e28 ) + 8001dc6: 683a ldr r2, [r7, #0] + 8001dc8: 430a orrs r2, r1 + 8001dca: 601a str r2, [r3, #0] /* Check that the new number of wait states is taken into account to access the Flash memory by reading the FLASH_ACR register */ if(__HAL_FLASH_GET_LATENCY() != FLatency) - 8001e04: 4b16 ldr r3, [pc, #88] ; (8001e60 ) - 8001e06: 681b ldr r3, [r3, #0] - 8001e08: 2201 movs r2, #1 - 8001e0a: 4013 ands r3, r2 - 8001e0c: 683a ldr r2, [r7, #0] - 8001e0e: 429a cmp r2, r3 - 8001e10: d001 beq.n 8001e16 + 8001dcc: 4b16 ldr r3, [pc, #88] ; (8001e28 ) + 8001dce: 681b ldr r3, [r3, #0] + 8001dd0: 2201 movs r2, #1 + 8001dd2: 4013 ands r3, r2 + 8001dd4: 683a ldr r2, [r7, #0] + 8001dd6: 429a cmp r2, r3 + 8001dd8: d001 beq.n 8001dde { return HAL_ERROR; - 8001e12: 2301 movs r3, #1 - 8001e14: e020 b.n 8001e58 + 8001dda: 2301 movs r3, #1 + 8001ddc: e020 b.n 8001e20 } } /*-------------------------- PCLK1 Configuration ---------------------------*/ if(((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 8001e16: 687b ldr r3, [r7, #4] - 8001e18: 681b ldr r3, [r3, #0] - 8001e1a: 2204 movs r2, #4 - 8001e1c: 4013 ands r3, r2 - 8001e1e: d009 beq.n 8001e34 + 8001dde: 687b ldr r3, [r7, #4] + 8001de0: 681b ldr r3, [r3, #0] + 8001de2: 2204 movs r2, #4 + 8001de4: 4013 ands r3, r2 + 8001de6: d009 beq.n 8001dfc { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE, RCC_ClkInitStruct->APB1CLKDivider); - 8001e20: 4b10 ldr r3, [pc, #64] ; (8001e64 ) - 8001e22: 685b ldr r3, [r3, #4] - 8001e24: 4a11 ldr r2, [pc, #68] ; (8001e6c ) - 8001e26: 4013 ands r3, r2 - 8001e28: 0019 movs r1, r3 - 8001e2a: 687b ldr r3, [r7, #4] - 8001e2c: 68da ldr r2, [r3, #12] - 8001e2e: 4b0d ldr r3, [pc, #52] ; (8001e64 ) - 8001e30: 430a orrs r2, r1 - 8001e32: 605a str r2, [r3, #4] + 8001de8: 4b10 ldr r3, [pc, #64] ; (8001e2c ) + 8001dea: 685b ldr r3, [r3, #4] + 8001dec: 4a11 ldr r2, [pc, #68] ; (8001e34 ) + 8001dee: 4013 ands r3, r2 + 8001df0: 0019 movs r1, r3 + 8001df2: 687b ldr r3, [r7, #4] + 8001df4: 68da ldr r2, [r3, #12] + 8001df6: 4b0d ldr r3, [pc, #52] ; (8001e2c ) + 8001df8: 430a orrs r2, r1 + 8001dfa: 605a str r2, [r3, #4] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE)>> RCC_CFGR_HPRE_BITNUMBER]; - 8001e34: f000 f820 bl 8001e78 - 8001e38: 0001 movs r1, r0 - 8001e3a: 4b0a ldr r3, [pc, #40] ; (8001e64 ) - 8001e3c: 685b ldr r3, [r3, #4] - 8001e3e: 091b lsrs r3, r3, #4 - 8001e40: 220f movs r2, #15 - 8001e42: 4013 ands r3, r2 - 8001e44: 4a0a ldr r2, [pc, #40] ; (8001e70 ) - 8001e46: 5cd3 ldrb r3, [r2, r3] - 8001e48: 000a movs r2, r1 - 8001e4a: 40da lsrs r2, r3 - 8001e4c: 4b09 ldr r3, [pc, #36] ; (8001e74 ) - 8001e4e: 601a str r2, [r3, #0] + 8001dfc: f000 f820 bl 8001e40 + 8001e00: 0001 movs r1, r0 + 8001e02: 4b0a ldr r3, [pc, #40] ; (8001e2c ) + 8001e04: 685b ldr r3, [r3, #4] + 8001e06: 091b lsrs r3, r3, #4 + 8001e08: 220f movs r2, #15 + 8001e0a: 4013 ands r3, r2 + 8001e0c: 4a0a ldr r2, [pc, #40] ; (8001e38 ) + 8001e0e: 5cd3 ldrb r3, [r2, r3] + 8001e10: 000a movs r2, r1 + 8001e12: 40da lsrs r2, r3 + 8001e14: 4b09 ldr r3, [pc, #36] ; (8001e3c ) + 8001e16: 601a str r2, [r3, #0] /* Configure the source of time base considering new system clocks settings*/ HAL_InitTick (TICK_INT_PRIORITY); - 8001e50: 2003 movs r0, #3 - 8001e52: f7fe fccb bl 80007ec + 8001e18: 2003 movs r0, #3 + 8001e1a: f7fe fce7 bl 80007ec return HAL_OK; - 8001e56: 2300 movs r3, #0 + 8001e1e: 2300 movs r3, #0 } - 8001e58: 0018 movs r0, r3 - 8001e5a: 46bd mov sp, r7 - 8001e5c: b004 add sp, #16 - 8001e5e: bd80 pop {r7, pc} - 8001e60: 40022000 .word 0x40022000 - 8001e64: 40021000 .word 0x40021000 - 8001e68: 00001388 .word 0x00001388 - 8001e6c: fffff8ff .word 0xfffff8ff - 8001e70: 0800306c .word 0x0800306c - 8001e74: 20000000 .word 0x20000000 + 8001e20: 0018 movs r0, r3 + 8001e22: 46bd mov sp, r7 + 8001e24: b004 add sp, #16 + 8001e26: bd80 pop {r7, pc} + 8001e28: 40022000 .word 0x40022000 + 8001e2c: 40021000 .word 0x40021000 + 8001e30: 00001388 .word 0x00001388 + 8001e34: fffff8ff .word 0xfffff8ff + 8001e38: 0800311c .word 0x0800311c + 8001e3c: 20000000 .word 0x20000000 -08001e78 : +08001e40 : * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { - 8001e78: b590 push {r4, r7, lr} - 8001e7a: b08f sub sp, #60 ; 0x3c - 8001e7c: af00 add r7, sp, #0 + 8001e40: b590 push {r4, r7, lr} + 8001e42: b08f sub sp, #60 ; 0x3c + 8001e44: af00 add r7, sp, #0 const uint8_t aPLLMULFactorTable[16] = { 2U, 3U, 4U, 5U, 6U, 7U, 8U, 9U, - 8001e7e: 2314 movs r3, #20 - 8001e80: 18fb adds r3, r7, r3 - 8001e82: 4a2b ldr r2, [pc, #172] ; (8001f30 ) - 8001e84: ca13 ldmia r2!, {r0, r1, r4} - 8001e86: c313 stmia r3!, {r0, r1, r4} - 8001e88: 6812 ldr r2, [r2, #0] - 8001e8a: 601a str r2, [r3, #0] + 8001e46: 2314 movs r3, #20 + 8001e48: 18fb adds r3, r7, r3 + 8001e4a: 4a2b ldr r2, [pc, #172] ; (8001ef8 ) + 8001e4c: ca13 ldmia r2!, {r0, r1, r4} + 8001e4e: c313 stmia r3!, {r0, r1, r4} + 8001e50: 6812 ldr r2, [r2, #0] + 8001e52: 601a str r2, [r3, #0] 10U, 11U, 12U, 13U, 14U, 15U, 16U, 16U}; const uint8_t aPredivFactorTable[16] = { 1U, 2U, 3U, 4U, 5U, 6U, 7U, 8U, - 8001e8c: 1d3b adds r3, r7, #4 - 8001e8e: 4a29 ldr r2, [pc, #164] ; (8001f34 ) - 8001e90: ca13 ldmia r2!, {r0, r1, r4} - 8001e92: c313 stmia r3!, {r0, r1, r4} - 8001e94: 6812 ldr r2, [r2, #0] - 8001e96: 601a str r2, [r3, #0] + 8001e54: 1d3b adds r3, r7, #4 + 8001e56: 4a29 ldr r2, [pc, #164] ; (8001efc ) + 8001e58: ca13 ldmia r2!, {r0, r1, r4} + 8001e5a: c313 stmia r3!, {r0, r1, r4} + 8001e5c: 6812 ldr r2, [r2, #0] + 8001e5e: 601a str r2, [r3, #0] 9U,10U, 11U, 12U, 13U, 14U, 15U, 16U}; uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U; - 8001e98: 2300 movs r3, #0 - 8001e9a: 62fb str r3, [r7, #44] ; 0x2c - 8001e9c: 2300 movs r3, #0 - 8001e9e: 62bb str r3, [r7, #40] ; 0x28 - 8001ea0: 2300 movs r3, #0 - 8001ea2: 637b str r3, [r7, #52] ; 0x34 - 8001ea4: 2300 movs r3, #0 - 8001ea6: 627b str r3, [r7, #36] ; 0x24 + 8001e60: 2300 movs r3, #0 + 8001e62: 62fb str r3, [r7, #44] ; 0x2c + 8001e64: 2300 movs r3, #0 + 8001e66: 62bb str r3, [r7, #40] ; 0x28 + 8001e68: 2300 movs r3, #0 + 8001e6a: 637b str r3, [r7, #52] ; 0x34 + 8001e6c: 2300 movs r3, #0 + 8001e6e: 627b str r3, [r7, #36] ; 0x24 uint32_t sysclockfreq = 0U; - 8001ea8: 2300 movs r3, #0 - 8001eaa: 633b str r3, [r7, #48] ; 0x30 + 8001e70: 2300 movs r3, #0 + 8001e72: 633b str r3, [r7, #48] ; 0x30 tmpreg = RCC->CFGR; - 8001eac: 4b22 ldr r3, [pc, #136] ; (8001f38 ) - 8001eae: 685b ldr r3, [r3, #4] - 8001eb0: 62fb str r3, [r7, #44] ; 0x2c + 8001e74: 4b22 ldr r3, [pc, #136] ; (8001f00 ) + 8001e76: 685b ldr r3, [r3, #4] + 8001e78: 62fb str r3, [r7, #44] ; 0x2c /* Get SYSCLK source -------------------------------------------------------*/ switch (tmpreg & RCC_CFGR_SWS) - 8001eb2: 6afb ldr r3, [r7, #44] ; 0x2c - 8001eb4: 220c movs r2, #12 - 8001eb6: 4013 ands r3, r2 - 8001eb8: 2b04 cmp r3, #4 - 8001eba: d002 beq.n 8001ec2 - 8001ebc: 2b08 cmp r3, #8 - 8001ebe: d003 beq.n 8001ec8 - 8001ec0: e02d b.n 8001f1e + 8001e7a: 6afb ldr r3, [r7, #44] ; 0x2c + 8001e7c: 220c movs r2, #12 + 8001e7e: 4013 ands r3, r2 + 8001e80: 2b04 cmp r3, #4 + 8001e82: d002 beq.n 8001e8a + 8001e84: 2b08 cmp r3, #8 + 8001e86: d003 beq.n 8001e90 + 8001e88: e02d b.n 8001ee6 { case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ { sysclockfreq = HSE_VALUE; - 8001ec2: 4b1e ldr r3, [pc, #120] ; (8001f3c ) - 8001ec4: 633b str r3, [r7, #48] ; 0x30 + 8001e8a: 4b1e ldr r3, [pc, #120] ; (8001f04 ) + 8001e8c: 633b str r3, [r7, #48] ; 0x30 break; - 8001ec6: e02d b.n 8001f24 + 8001e8e: e02d b.n 8001eec } case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ { pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMUL) >> RCC_CFGR_PLLMUL_BITNUMBER]; - 8001ec8: 6afb ldr r3, [r7, #44] ; 0x2c - 8001eca: 0c9b lsrs r3, r3, #18 - 8001ecc: 220f movs r2, #15 - 8001ece: 4013 ands r3, r2 - 8001ed0: 2214 movs r2, #20 - 8001ed2: 18ba adds r2, r7, r2 - 8001ed4: 5cd3 ldrb r3, [r2, r3] - 8001ed6: 627b str r3, [r7, #36] ; 0x24 + 8001e90: 6afb ldr r3, [r7, #44] ; 0x2c + 8001e92: 0c9b lsrs r3, r3, #18 + 8001e94: 220f movs r2, #15 + 8001e96: 4013 ands r3, r2 + 8001e98: 2214 movs r2, #20 + 8001e9a: 18ba adds r2, r7, r2 + 8001e9c: 5cd3 ldrb r3, [r2, r3] + 8001e9e: 627b str r3, [r7, #36] ; 0x24 prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV) >> RCC_CFGR2_PREDIV_BITNUMBER]; - 8001ed8: 4b17 ldr r3, [pc, #92] ; (8001f38 ) - 8001eda: 6adb ldr r3, [r3, #44] ; 0x2c - 8001edc: 220f movs r2, #15 - 8001ede: 4013 ands r3, r2 - 8001ee0: 1d3a adds r2, r7, #4 - 8001ee2: 5cd3 ldrb r3, [r2, r3] - 8001ee4: 62bb str r3, [r7, #40] ; 0x28 + 8001ea0: 4b17 ldr r3, [pc, #92] ; (8001f00 ) + 8001ea2: 6adb ldr r3, [r3, #44] ; 0x2c + 8001ea4: 220f movs r2, #15 + 8001ea6: 4013 ands r3, r2 + 8001ea8: 1d3a adds r2, r7, #4 + 8001eaa: 5cd3 ldrb r3, [r2, r3] + 8001eac: 62bb str r3, [r7, #40] ; 0x28 if ((tmpreg & RCC_CFGR_PLLSRC) == RCC_PLLSOURCE_HSE) - 8001ee6: 6afa ldr r2, [r7, #44] ; 0x2c - 8001ee8: 2380 movs r3, #128 ; 0x80 - 8001eea: 025b lsls r3, r3, #9 - 8001eec: 4013 ands r3, r2 - 8001eee: d009 beq.n 8001f04 + 8001eae: 6afa ldr r2, [r7, #44] ; 0x2c + 8001eb0: 2380 movs r3, #128 ; 0x80 + 8001eb2: 025b lsls r3, r3, #9 + 8001eb4: 4013 ands r3, r2 + 8001eb6: d009 beq.n 8001ecc { /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV * PLLMUL */ pllclk = (uint32_t)((uint64_t) HSE_VALUE / (uint64_t) (prediv)) * ((uint64_t) pllmul); - 8001ef0: 6ab9 ldr r1, [r7, #40] ; 0x28 - 8001ef2: 4812 ldr r0, [pc, #72] ; (8001f3c ) - 8001ef4: f7fe f908 bl 8000108 <__udivsi3> - 8001ef8: 0003 movs r3, r0 - 8001efa: 001a movs r2, r3 - 8001efc: 6a7b ldr r3, [r7, #36] ; 0x24 - 8001efe: 4353 muls r3, r2 - 8001f00: 637b str r3, [r7, #52] ; 0x34 - 8001f02: e009 b.n 8001f18 + 8001eb8: 6ab9 ldr r1, [r7, #40] ; 0x28 + 8001eba: 4812 ldr r0, [pc, #72] ; (8001f04 ) + 8001ebc: f7fe f924 bl 8000108 <__udivsi3> + 8001ec0: 0003 movs r3, r0 + 8001ec2: 001a movs r2, r3 + 8001ec4: 6a7b ldr r3, [r7, #36] ; 0x24 + 8001ec6: 4353 muls r3, r2 + 8001ec8: 637b str r3, [r7, #52] ; 0x34 + 8001eca: e009 b.n 8001ee0 #if (defined(STM32F042x6) || defined(STM32F048xx) || defined(STM32F070x6) || defined(STM32F071xB) || defined(STM32F072xB) || defined(STM32F078xx) || defined(STM32F070xB) || defined(STM32F091xC) || defined(STM32F098xx) || defined(STM32F030xC)) /* HSI used as PLL clock source : PLLCLK = HSI/PREDIV * PLLMUL */ pllclk = (uint32_t)((uint64_t) HSI_VALUE / (uint64_t) (prediv)) * ((uint64_t) pllmul); #else /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((uint64_t) (HSI_VALUE >> 1U) * ((uint64_t) pllmul)); - 8001f04: 6a79 ldr r1, [r7, #36] ; 0x24 - 8001f06: 000a movs r2, r1 - 8001f08: 0152 lsls r2, r2, #5 - 8001f0a: 1a52 subs r2, r2, r1 - 8001f0c: 0193 lsls r3, r2, #6 - 8001f0e: 1a9b subs r3, r3, r2 - 8001f10: 00db lsls r3, r3, #3 - 8001f12: 185b adds r3, r3, r1 - 8001f14: 021b lsls r3, r3, #8 - 8001f16: 637b str r3, [r7, #52] ; 0x34 + 8001ecc: 6a79 ldr r1, [r7, #36] ; 0x24 + 8001ece: 000a movs r2, r1 + 8001ed0: 0152 lsls r2, r2, #5 + 8001ed2: 1a52 subs r2, r2, r1 + 8001ed4: 0193 lsls r3, r2, #6 + 8001ed6: 1a9b subs r3, r3, r2 + 8001ed8: 00db lsls r3, r3, #3 + 8001eda: 185b adds r3, r3, r1 + 8001edc: 021b lsls r3, r3, #8 + 8001ede: 637b str r3, [r7, #52] ; 0x34 #endif } sysclockfreq = pllclk; - 8001f18: 6b7b ldr r3, [r7, #52] ; 0x34 - 8001f1a: 633b str r3, [r7, #48] ; 0x30 + 8001ee0: 6b7b ldr r3, [r7, #52] ; 0x34 + 8001ee2: 633b str r3, [r7, #48] ; 0x30 break; - 8001f1c: e002 b.n 8001f24 + 8001ee4: e002 b.n 8001eec } #endif /* RCC_CFGR_SWS_HSI48 */ case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ default: /* HSI used as system clock */ { sysclockfreq = HSI_VALUE; - 8001f1e: 4b07 ldr r3, [pc, #28] ; (8001f3c ) - 8001f20: 633b str r3, [r7, #48] ; 0x30 + 8001ee6: 4b07 ldr r3, [pc, #28] ; (8001f04 ) + 8001ee8: 633b str r3, [r7, #48] ; 0x30 break; - 8001f22: 46c0 nop ; (mov r8, r8) + 8001eea: 46c0 nop ; (mov r8, r8) } } return sysclockfreq; - 8001f24: 6b3b ldr r3, [r7, #48] ; 0x30 + 8001eec: 6b3b ldr r3, [r7, #48] ; 0x30 } - 8001f26: 0018 movs r0, r3 - 8001f28: 46bd mov sp, r7 - 8001f2a: b00f add sp, #60 ; 0x3c - 8001f2c: bd90 pop {r4, r7, pc} - 8001f2e: 46c0 nop ; (mov r8, r8) - 8001f30: 0800304c .word 0x0800304c - 8001f34: 0800305c .word 0x0800305c - 8001f38: 40021000 .word 0x40021000 - 8001f3c: 007a1200 .word 0x007a1200 + 8001eee: 0018 movs r0, r3 + 8001ef0: 46bd mov sp, r7 + 8001ef2: b00f add sp, #60 ; 0x3c + 8001ef4: bd90 pop {r4, r7, pc} + 8001ef6: 46c0 nop ; (mov r8, r8) + 8001ef8: 080030fc .word 0x080030fc + 8001efc: 0800310c .word 0x0800310c + 8001f00: 40021000 .word 0x40021000 + 8001f04: 007a1200 .word 0x007a1200 -08001f40 : +08001f08 : */ #include "button.h" void GEI_BUTTON_CODE(struct button *bt,uint8_t in) { - 8001f40: b580 push {r7, lr} - 8001f42: b082 sub sp, #8 - 8001f44: af00 add r7, sp, #0 - 8001f46: 6078 str r0, [r7, #4] - 8001f48: 000a movs r2, r1 - 8001f4a: 1cfb adds r3, r7, #3 - 8001f4c: 701a strb r2, [r3, #0] + 8001f08: b580 push {r7, lr} + 8001f0a: b082 sub sp, #8 + 8001f0c: af00 add r7, sp, #0 + 8001f0e: 6078 str r0, [r7, #4] + 8001f10: 000a movs r2, r1 + 8001f12: 1cfb adds r3, r7, #3 + 8001f14: 701a strb r2, [r3, #0] #define t 250 bt->code=0; - 8001f4e: 687b ldr r3, [r7, #4] - 8001f50: 2200 movs r2, #0 - 8001f52: 601a str r2, [r3, #0] + 8001f16: 687b ldr r3, [r7, #4] + 8001f18: 2200 movs r2, #0 + 8001f1a: 601a str r2, [r3, #0] if(in==1) - 8001f54: 1cfb adds r3, r7, #3 - 8001f56: 781b ldrb r3, [r3, #0] - 8001f58: 2b01 cmp r3, #1 - 8001f5a: d138 bne.n 8001fce + 8001f1c: 1cfb adds r3, r7, #3 + 8001f1e: 781b ldrb r3, [r3, #0] + 8001f20: 2b01 cmp r3, #1 + 8001f22: d138 bne.n 8001f96 { if(bt->lock==0) - 8001f5c: 687b ldr r3, [r7, #4] - 8001f5e: 791b ldrb r3, [r3, #4] - 8001f60: 2b00 cmp r3, #0 - 8001f62: d120 bne.n 8001fa6 + 8001f24: 687b ldr r3, [r7, #4] + 8001f26: 791b ldrb r3, [r3, #4] + 8001f28: 2b00 cmp r3, #0 + 8001f2a: d120 bne.n 8001f6e { if(HAL_GetTick()time+t) - 8001f64: f7fe fc88 bl 8000878 - 8001f68: 0002 movs r2, r0 - 8001f6a: 687b ldr r3, [r7, #4] - 8001f6c: 689b ldr r3, [r3, #8] - 8001f6e: 33fa adds r3, #250 ; 0xfa - 8001f70: 429a cmp r2, r3 - 8001f72: d20d bcs.n 8001f90 + 8001f2c: f7fe fca4 bl 8000878 + 8001f30: 0002 movs r2, r0 + 8001f32: 687b ldr r3, [r7, #4] + 8001f34: 689b ldr r3, [r3, #8] + 8001f36: 33fa adds r3, #250 ; 0xfa + 8001f38: 429a cmp r2, r3 + 8001f3a: d20d bcs.n 8001f58 { bt->times++; - 8001f74: 687b ldr r3, [r7, #4] - 8001f76: 68db ldr r3, [r3, #12] - 8001f78: 1c5a adds r2, r3, #1 - 8001f7a: 687b ldr r3, [r7, #4] - 8001f7c: 60da str r2, [r3, #12] + 8001f3c: 687b ldr r3, [r7, #4] + 8001f3e: 68db ldr r3, [r3, #12] + 8001f40: 1c5a adds r2, r3, #1 + 8001f42: 687b ldr r3, [r7, #4] + 8001f44: 60da str r2, [r3, #12] bt->time=HAL_GetTick(); - 8001f7e: f7fe fc7b bl 8000878 - 8001f82: 0002 movs r2, r0 - 8001f84: 687b ldr r3, [r7, #4] - 8001f86: 609a str r2, [r3, #8] + 8001f46: f7fe fc97 bl 8000878 + 8001f4a: 0002 movs r2, r0 + 8001f4c: 687b ldr r3, [r7, #4] + 8001f4e: 609a str r2, [r3, #8] bt->lock=1; - 8001f88: 687b ldr r3, [r7, #4] - 8001f8a: 2201 movs r2, #1 - 8001f8c: 711a strb r2, [r3, #4] - 8001f8e: e00a b.n 8001fa6 + 8001f50: 687b ldr r3, [r7, #4] + 8001f52: 2201 movs r2, #1 + 8001f54: 711a strb r2, [r3, #4] + 8001f56: e00a b.n 8001f6e }else { bt->times=1; - 8001f90: 687b ldr r3, [r7, #4] - 8001f92: 2201 movs r2, #1 - 8001f94: 60da str r2, [r3, #12] + 8001f58: 687b ldr r3, [r7, #4] + 8001f5a: 2201 movs r2, #1 + 8001f5c: 60da str r2, [r3, #12] bt->time=HAL_GetTick(); - 8001f96: f7fe fc6f bl 8000878 - 8001f9a: 0002 movs r2, r0 - 8001f9c: 687b ldr r3, [r7, #4] - 8001f9e: 609a str r2, [r3, #8] + 8001f5e: f7fe fc8b bl 8000878 + 8001f62: 0002 movs r2, r0 + 8001f64: 687b ldr r3, [r7, #4] + 8001f66: 609a str r2, [r3, #8] bt->lock=1; - 8001fa0: 687b ldr r3, [r7, #4] - 8001fa2: 2201 movs r2, #1 - 8001fa4: 711a strb r2, [r3, #4] + 8001f68: 687b ldr r3, [r7, #4] + 8001f6a: 2201 movs r2, #1 + 8001f6c: 711a strb r2, [r3, #4] } } if(bt->lock==1) - 8001fa6: 687b ldr r3, [r7, #4] - 8001fa8: 791b ldrb r3, [r3, #4] - 8001faa: 2b01 cmp r3, #1 - 8001fac: d10f bne.n 8001fce + 8001f6e: 687b ldr r3, [r7, #4] + 8001f70: 791b ldrb r3, [r3, #4] + 8001f72: 2b01 cmp r3, #1 + 8001f74: d10f bne.n 8001f96 { if(HAL_GetTick()>bt->time+t) - 8001fae: f7fe fc63 bl 8000878 - 8001fb2: 0002 movs r2, r0 - 8001fb4: 687b ldr r3, [r7, #4] - 8001fb6: 689b ldr r3, [r3, #8] - 8001fb8: 33fa adds r3, #250 ; 0xfa - 8001fba: 429a cmp r2, r3 - 8001fbc: d907 bls.n 8001fce + 8001f76: f7fe fc7f bl 8000878 + 8001f7a: 0002 movs r2, r0 + 8001f7c: 687b ldr r3, [r7, #4] + 8001f7e: 689b ldr r3, [r3, #8] + 8001f80: 33fa adds r3, #250 ; 0xfa + 8001f82: 429a cmp r2, r3 + 8001f84: d907 bls.n 8001f96 { bt->code=-1; - 8001fbe: 687b ldr r3, [r7, #4] - 8001fc0: 2201 movs r2, #1 - 8001fc2: 4252 negs r2, r2 - 8001fc4: 601a str r2, [r3, #0] + 8001f86: 687b ldr r3, [r7, #4] + 8001f88: 2201 movs r2, #1 + 8001f8a: 4252 negs r2, r2 + 8001f8c: 601a str r2, [r3, #0] bt->times=-1; - 8001fc6: 687b ldr r3, [r7, #4] - 8001fc8: 2201 movs r2, #1 - 8001fca: 4252 negs r2, r2 - 8001fcc: 60da str r2, [r3, #12] + 8001f8e: 687b ldr r3, [r7, #4] + 8001f90: 2201 movs r2, #1 + 8001f92: 4252 negs r2, r2 + 8001f94: 60da str r2, [r3, #12] } } } if(in==0) - 8001fce: 1cfb adds r3, r7, #3 - 8001fd0: 781b ldrb r3, [r3, #0] - 8001fd2: 2b00 cmp r3, #0 - 8001fd4: d10e bne.n 8001ff4 + 8001f96: 1cfb adds r3, r7, #3 + 8001f98: 781b ldrb r3, [r3, #0] + 8001f9a: 2b00 cmp r3, #0 + 8001f9c: d10e bne.n 8001fbc { if(bt->lock==1) - 8001fd6: 687b ldr r3, [r7, #4] - 8001fd8: 791b ldrb r3, [r3, #4] - 8001fda: 2b01 cmp r3, #1 - 8001fdc: d10a bne.n 8001ff4 + 8001f9e: 687b ldr r3, [r7, #4] + 8001fa0: 791b ldrb r3, [r3, #4] + 8001fa2: 2b01 cmp r3, #1 + 8001fa4: d10a bne.n 8001fbc { if(bt->code==-1) - 8001fde: 687b ldr r3, [r7, #4] - 8001fe0: 681b ldr r3, [r3, #0] - 8001fe2: 3301 adds r3, #1 - 8001fe4: d003 beq.n 8001fee + 8001fa6: 687b ldr r3, [r7, #4] + 8001fa8: 681b ldr r3, [r3, #0] + 8001faa: 3301 adds r3, #1 + 8001fac: d003 beq.n 8001fb6 { }else { bt->code=bt->times; - 8001fe6: 687b ldr r3, [r7, #4] - 8001fe8: 68da ldr r2, [r3, #12] - 8001fea: 687b ldr r3, [r7, #4] - 8001fec: 601a str r2, [r3, #0] + 8001fae: 687b ldr r3, [r7, #4] + 8001fb0: 68da ldr r2, [r3, #12] + 8001fb2: 687b ldr r3, [r7, #4] + 8001fb4: 601a str r2, [r3, #0] } bt->lock=0; - 8001fee: 687b ldr r3, [r7, #4] - 8001ff0: 2200 movs r2, #0 - 8001ff2: 711a strb r2, [r3, #4] + 8001fb6: 687b ldr r3, [r7, #4] + 8001fb8: 2200 movs r2, #0 + 8001fba: 711a strb r2, [r3, #4] } } } - 8001ff4: 46c0 nop ; (mov r8, r8) - 8001ff6: 46bd mov sp, r7 - 8001ff8: b002 add sp, #8 - 8001ffa: bd80 pop {r7, pc} + 8001fbc: 46c0 nop ; (mov r8, r8) + 8001fbe: 46bd mov sp, r7 + 8001fc0: b002 add sp, #8 + 8001fc2: bd80 pop {r7, pc} -08001ffc : +08001fc4 : + * @brief HT1621 clk + * @param None + * @retval None + */ +void WriteClockHT1621(void) +{ + 8001fc4: b580 push {r7, lr} + 8001fc6: af00 add r7, sp, #0 + HC595_SCK(0); + 8001fc8: 2390 movs r3, #144 ; 0x90 + 8001fca: 05db lsls r3, r3, #23 + 8001fcc: 2200 movs r2, #0 + 8001fce: 2140 movs r1, #64 ; 0x40 + 8001fd0: 0018 movs r0, r3 + 8001fd2: f7ff fb2f bl 8001634 + HC595_SCK(1); + 8001fd6: 2390 movs r3, #144 ; 0x90 + 8001fd8: 05db lsls r3, r3, #23 + 8001fda: 2201 movs r2, #1 + 8001fdc: 2140 movs r1, #64 ; 0x40 + 8001fde: 0018 movs r0, r3 + 8001fe0: f7ff fb28 bl 8001634 +} + 8001fe4: 46c0 nop ; (mov r8, r8) + 8001fe6: 46bd mov sp, r7 + 8001fe8: bd80 pop {r7, pc} + +08001fea : + * @brief Write HT1621 Command + * @param FunctonCode->功能/命令码 + * @retval None + */ +void WriteCommandHT1621(unsigned char FunctonCode) +{ + 8001fea: b580 push {r7, lr} + 8001fec: b084 sub sp, #16 + 8001fee: af00 add r7, sp, #0 + 8001ff0: 0002 movs r2, r0 + 8001ff2: 1dfb adds r3, r7, #7 + 8001ff4: 701a strb r2, [r3, #0] + unsigned char Shift = 0x80; + 8001ff6: 230f movs r3, #15 + 8001ff8: 18fb adds r3, r7, r3 + 8001ffa: 2280 movs r2, #128 ; 0x80 + 8001ffc: 701a strb r2, [r3, #0] + unsigned char i; + HC595_RCK(0); //CS 片选开 + 8001ffe: 2390 movs r3, #144 ; 0x90 + 8002000: 05db lsls r3, r3, #23 + 8002002: 2200 movs r2, #0 + 8002004: 2180 movs r1, #128 ; 0x80 + 8002006: 0018 movs r0, r3 + 8002008: f7ff fb14 bl 8001634 + HC595_DCK(1); //100 + 800200c: 2390 movs r3, #144 ; 0x90 + 800200e: 05db lsls r3, r3, #23 + 8002010: 2201 movs r2, #1 + 8002012: 2120 movs r1, #32 + 8002014: 0018 movs r0, r3 + 8002016: f7ff fb0d bl 8001634 + WriteClockHT1621(); + 800201a: f7ff ffd3 bl 8001fc4 + HC595_DCK(0); + 800201e: 2390 movs r3, #144 ; 0x90 + 8002020: 05db lsls r3, r3, #23 + 8002022: 2200 movs r2, #0 + 8002024: 2120 movs r1, #32 + 8002026: 0018 movs r0, r3 + 8002028: f7ff fb04 bl 8001634 + WriteClockHT1621(); + 800202c: f7ff ffca bl 8001fc4 + HC595_DCK(0); + 8002030: 2390 movs r3, #144 ; 0x90 + 8002032: 05db lsls r3, r3, #23 + 8002034: 2200 movs r2, #0 + 8002036: 2120 movs r1, #32 + 8002038: 0018 movs r0, r3 + 800203a: f7ff fafb bl 8001634 + WriteClockHT1621(); + 800203e: f7ff ffc1 bl 8001fc4 + for(i = 0; i < 8; i++) + 8002042: 230e movs r3, #14 + 8002044: 18fb adds r3, r7, r3 + 8002046: 2200 movs r2, #0 + 8002048: 701a strb r2, [r3, #0] + 800204a: e025 b.n 8002098 + { + if(Shift & FunctonCode) + 800204c: 230f movs r3, #15 + 800204e: 18fb adds r3, r7, r3 + 8002050: 1dfa adds r2, r7, #7 + 8002052: 781b ldrb r3, [r3, #0] + 8002054: 7812 ldrb r2, [r2, #0] + 8002056: 4013 ands r3, r2 + 8002058: b2db uxtb r3, r3 + 800205a: 2b00 cmp r3, #0 + 800205c: d007 beq.n 800206e + {HC595_DCK(1);} + 800205e: 2390 movs r3, #144 ; 0x90 + 8002060: 05db lsls r3, r3, #23 + 8002062: 2201 movs r2, #1 + 8002064: 2120 movs r1, #32 + 8002066: 0018 movs r0, r3 + 8002068: f7ff fae4 bl 8001634 + 800206c: e006 b.n 800207c + else + {HC595_DCK(0);} + 800206e: 2390 movs r3, #144 ; 0x90 + 8002070: 05db lsls r3, r3, #23 + 8002072: 2200 movs r2, #0 + 8002074: 2120 movs r1, #32 + 8002076: 0018 movs r0, r3 + 8002078: f7ff fadc bl 8001634 + + WriteClockHT1621(); + 800207c: f7ff ffa2 bl 8001fc4 + Shift = Shift >> 1; + 8002080: 220f movs r2, #15 + 8002082: 18bb adds r3, r7, r2 + 8002084: 18ba adds r2, r7, r2 + 8002086: 7812 ldrb r2, [r2, #0] + 8002088: 0852 lsrs r2, r2, #1 + 800208a: 701a strb r2, [r3, #0] + for(i = 0; i < 8; i++) + 800208c: 210e movs r1, #14 + 800208e: 187b adds r3, r7, r1 + 8002090: 781a ldrb r2, [r3, #0] + 8002092: 187b adds r3, r7, r1 + 8002094: 3201 adds r2, #1 + 8002096: 701a strb r2, [r3, #0] + 8002098: 230e movs r3, #14 + 800209a: 18fb adds r3, r7, r3 + 800209c: 781b ldrb r3, [r3, #0] + 800209e: 2b07 cmp r3, #7 + 80020a0: d9d4 bls.n 800204c + } + {HC595_DCK(0);} + 80020a2: 2390 movs r3, #144 ; 0x90 + 80020a4: 05db lsls r3, r3, #23 + 80020a6: 2200 movs r2, #0 + 80020a8: 2120 movs r1, #32 + 80020aa: 0018 movs r0, r3 + 80020ac: f7ff fac2 bl 8001634 + WriteClockHT1621(); //发送一个 0 命令码中最后一位 X + 80020b0: f7ff ff88 bl 8001fc4 + HC595_RCK(1); //CS 片选关 + 80020b4: 2390 movs r3, #144 ; 0x90 + 80020b6: 05db lsls r3, r3, #23 + 80020b8: 2201 movs r2, #1 + 80020ba: 2180 movs r1, #128 ; 0x80 + 80020bc: 0018 movs r0, r3 + 80020be: f7ff fab9 bl 8001634 + HC595_DCK(1); + 80020c2: 2390 movs r3, #144 ; 0x90 + 80020c4: 05db lsls r3, r3, #23 + 80020c6: 2201 movs r2, #1 + 80020c8: 2120 movs r1, #32 + 80020ca: 0018 movs r0, r3 + 80020cc: f7ff fab2 bl 8001634 +} + 80020d0: 46c0 nop ; (mov r8, r8) + 80020d2: 46bd mov sp, r7 + 80020d4: b004 add sp, #16 + 80020d6: bd80 pop {r7, pc} + +080020d8 : + * @param Addr->写入ram的地址 + * @param Databuf->写入ram的数据 + * @retval None + */ +void Write1DataHT1621(unsigned char Addr,unsigned char Dat) +{ + 80020d8: b580 push {r7, lr} + 80020da: b084 sub sp, #16 + 80020dc: af00 add r7, sp, #0 + 80020de: 0002 movs r2, r0 + 80020e0: 1dfb adds r3, r7, #7 + 80020e2: 701a strb r2, [r3, #0] + 80020e4: 1dbb adds r3, r7, #6 + 80020e6: 1c0a adds r2, r1, #0 + 80020e8: 701a strb r2, [r3, #0] + unsigned char i; + unsigned char Shift; + HC595_RCK(0); //CS 片选开 + 80020ea: 2390 movs r3, #144 ; 0x90 + 80020ec: 05db lsls r3, r3, #23 + 80020ee: 2200 movs r2, #0 + 80020f0: 2180 movs r1, #128 ; 0x80 + 80020f2: 0018 movs r0, r3 + 80020f4: f7ff fa9e bl 8001634 + HC595_DCK(1); //101 + 80020f8: 2390 movs r3, #144 ; 0x90 + 80020fa: 05db lsls r3, r3, #23 + 80020fc: 2201 movs r2, #1 + 80020fe: 2120 movs r1, #32 + 8002100: 0018 movs r0, r3 + 8002102: f7ff fa97 bl 8001634 + WriteClockHT1621(); + 8002106: f7ff ff5d bl 8001fc4 + HC595_DCK(0); + 800210a: 2390 movs r3, #144 ; 0x90 + 800210c: 05db lsls r3, r3, #23 + 800210e: 2200 movs r2, #0 + 8002110: 2120 movs r1, #32 + 8002112: 0018 movs r0, r3 + 8002114: f7ff fa8e bl 8001634 + WriteClockHT1621(); + 8002118: f7ff ff54 bl 8001fc4 + HC595_DCK(1); + 800211c: 2390 movs r3, #144 ; 0x90 + 800211e: 05db lsls r3, r3, #23 + 8002120: 2201 movs r2, #1 + 8002122: 2120 movs r1, #32 + 8002124: 0018 movs r0, r3 + 8002126: f7ff fa85 bl 8001634 + WriteClockHT1621(); + 800212a: f7ff ff4b bl 8001fc4 + Shift = 0x20; //屏蔽高3位 只用5位 + 800212e: 230e movs r3, #14 + 8002130: 18fb adds r3, r7, r3 + 8002132: 2220 movs r2, #32 + 8002134: 701a strb r2, [r3, #0] + for( i = 0; i < HT1621_addrbit; i++) + 8002136: 230f movs r3, #15 + 8002138: 18fb adds r3, r7, r3 + 800213a: 2200 movs r2, #0 + 800213c: 701a strb r2, [r3, #0] + 800213e: e025 b.n 800218c + { + if(Addr & Shift) + 8002140: 1dfb adds r3, r7, #7 + 8002142: 220e movs r2, #14 + 8002144: 18ba adds r2, r7, r2 + 8002146: 781b ldrb r3, [r3, #0] + 8002148: 7812 ldrb r2, [r2, #0] + 800214a: 4013 ands r3, r2 + 800214c: b2db uxtb r3, r3 + 800214e: 2b00 cmp r3, #0 + 8002150: d007 beq.n 8002162 + {HC595_DCK(1);} + 8002152: 2390 movs r3, #144 ; 0x90 + 8002154: 05db lsls r3, r3, #23 + 8002156: 2201 movs r2, #1 + 8002158: 2120 movs r1, #32 + 800215a: 0018 movs r0, r3 + 800215c: f7ff fa6a bl 8001634 + 8002160: e006 b.n 8002170 + else + {HC595_DCK(0);} + 8002162: 2390 movs r3, #144 ; 0x90 + 8002164: 05db lsls r3, r3, #23 + 8002166: 2200 movs r2, #0 + 8002168: 2120 movs r1, #32 + 800216a: 0018 movs r0, r3 + 800216c: f7ff fa62 bl 8001634 + WriteClockHT1621(); + 8002170: f7ff ff28 bl 8001fc4 + Shift = Shift >> 1; + 8002174: 220e movs r2, #14 + 8002176: 18bb adds r3, r7, r2 + 8002178: 18ba adds r2, r7, r2 + 800217a: 7812 ldrb r2, [r2, #0] + 800217c: 0852 lsrs r2, r2, #1 + 800217e: 701a strb r2, [r3, #0] + for( i = 0; i < HT1621_addrbit; i++) + 8002180: 210f movs r1, #15 + 8002182: 187b adds r3, r7, r1 + 8002184: 781a ldrb r2, [r3, #0] + 8002186: 187b adds r3, r7, r1 + 8002188: 3201 adds r2, #1 + 800218a: 701a strb r2, [r3, #0] + 800218c: 210f movs r1, #15 + 800218e: 187b adds r3, r7, r1 + 8002190: 781b ldrb r3, [r3, #0] + 8002192: 2b05 cmp r3, #5 + 8002194: d9d4 bls.n 8002140 + } + + Shift = 0x01; + 8002196: 230e movs r3, #14 + 8002198: 18fb adds r3, r7, r3 + 800219a: 2201 movs r2, #1 + 800219c: 701a strb r2, [r3, #0] + for (i = 0; i < 4; i++) + 800219e: 187b adds r3, r7, r1 + 80021a0: 2200 movs r2, #0 + 80021a2: 701a strb r2, [r3, #0] + 80021a4: e025 b.n 80021f2 + { + if( Dat & Shift) + 80021a6: 1dbb adds r3, r7, #6 + 80021a8: 220e movs r2, #14 + 80021aa: 18ba adds r2, r7, r2 + 80021ac: 781b ldrb r3, [r3, #0] + 80021ae: 7812 ldrb r2, [r2, #0] + 80021b0: 4013 ands r3, r2 + 80021b2: b2db uxtb r3, r3 + 80021b4: 2b00 cmp r3, #0 + 80021b6: d007 beq.n 80021c8 + {HC595_DCK(1);} + 80021b8: 2390 movs r3, #144 ; 0x90 + 80021ba: 05db lsls r3, r3, #23 + 80021bc: 2201 movs r2, #1 + 80021be: 2120 movs r1, #32 + 80021c0: 0018 movs r0, r3 + 80021c2: f7ff fa37 bl 8001634 + 80021c6: e006 b.n 80021d6 + else + {HC595_DCK(0);} + 80021c8: 2390 movs r3, #144 ; 0x90 + 80021ca: 05db lsls r3, r3, #23 + 80021cc: 2200 movs r2, #0 + 80021ce: 2120 movs r1, #32 + 80021d0: 0018 movs r0, r3 + 80021d2: f7ff fa2f bl 8001634 + WriteClockHT1621(); + 80021d6: f7ff fef5 bl 8001fc4 + Shift = Shift << 1; + 80021da: 230e movs r3, #14 + 80021dc: 18fa adds r2, r7, r3 + 80021de: 18fb adds r3, r7, r3 + 80021e0: 781b ldrb r3, [r3, #0] + 80021e2: 18db adds r3, r3, r3 + 80021e4: 7013 strb r3, [r2, #0] + for (i = 0; i < 4; i++) + 80021e6: 210f movs r1, #15 + 80021e8: 187b adds r3, r7, r1 + 80021ea: 781a ldrb r2, [r3, #0] + 80021ec: 187b adds r3, r7, r1 + 80021ee: 3201 adds r2, #1 + 80021f0: 701a strb r2, [r3, #0] + 80021f2: 230f movs r3, #15 + 80021f4: 18fb adds r3, r7, r3 + 80021f6: 781b ldrb r3, [r3, #0] + 80021f8: 2b03 cmp r3, #3 + 80021fa: d9d4 bls.n 80021a6 + } + HC595_RCK(1); //CS 片选关 + 80021fc: 2390 movs r3, #144 ; 0x90 + 80021fe: 05db lsls r3, r3, #23 + 8002200: 2201 movs r2, #1 + 8002202: 2180 movs r1, #128 ; 0x80 + 8002204: 0018 movs r0, r3 + 8002206: f7ff fa15 bl 8001634 + HC595_DCK(1); + 800220a: 2390 movs r3, #144 ; 0x90 + 800220c: 05db lsls r3, r3, #23 + 800220e: 2201 movs r2, #1 + 8002210: 2120 movs r1, #32 + 8002212: 0018 movs r0, r3 + 8002214: f7ff fa0e bl 8001634 +} + 8002218: 46c0 nop ; (mov r8, r8) + 800221a: 46bd mov sp, r7 + 800221c: b004 add sp, #16 + 800221e: bd80 pop {r7, pc} + +08002220 : +#define LCD_F 0x20 +#define LCD_G 0x40 +#define LCD_P 0x80 + +void HT1621_num_init(void) +{ + 8002220: b580 push {r7, lr} + 8002222: b082 sub sp, #8 + 8002224: af00 add r7, sp, #0 + unsigned char num,LCD_data; + + for(num=0; num + { + LCD_data = 0; + 800222e: 1dbb adds r3, r7, #6 + 8002230: 2200 movs r2, #0 + 8002232: 701a strb r2, [r3, #0] + LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_P)) << 7); + 8002234: 1dbb adds r3, r7, #6 + 8002236: 1dba adds r2, r7, #6 + 8002238: 7812 ldrb r2, [r2, #0] + 800223a: 701a strb r2, [r3, #0] + LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_E)) << 6); + 800223c: 1dbb adds r3, r7, #6 + 800223e: 1dba adds r2, r7, #6 + 8002240: 7812 ldrb r2, [r2, #0] + 8002242: 701a strb r2, [r3, #0] + LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_F)) << 5); + 8002244: 1dbb adds r3, r7, #6 + 8002246: 1dba adds r2, r7, #6 + 8002248: 7812 ldrb r2, [r2, #0] + 800224a: 701a strb r2, [r3, #0] + LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_A)) << 4); + 800224c: 1dfb adds r3, r7, #7 + 800224e: 781b ldrb r3, [r3, #0] + 8002250: 4a30 ldr r2, [pc, #192] ; (8002314 ) + 8002252: 5cd3 ldrb r3, [r2, r3] + 8002254: 011b lsls r3, r3, #4 + 8002256: b25b sxtb r3, r3 + 8002258: 2210 movs r2, #16 + 800225a: 4013 ands r3, r2 + 800225c: b25a sxtb r2, r3 + 800225e: 1dbb adds r3, r7, #6 + 8002260: 781b ldrb r3, [r3, #0] + 8002262: b25b sxtb r3, r3 + 8002264: 4313 orrs r3, r2 + 8002266: b25a sxtb r2, r3 + 8002268: 1dbb adds r3, r7, #6 + 800226a: 701a strb r2, [r3, #0] + + LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_D)) << 3); + 800226c: 1dfb adds r3, r7, #7 + 800226e: 781b ldrb r3, [r3, #0] + 8002270: 4a28 ldr r2, [pc, #160] ; (8002314 ) + 8002272: 5cd3 ldrb r3, [r2, r3] + 8002274: 00db lsls r3, r3, #3 + 8002276: b25b sxtb r3, r3 + 8002278: 2240 movs r2, #64 ; 0x40 + 800227a: 4013 ands r3, r2 + 800227c: b25a sxtb r2, r3 + 800227e: 1dbb adds r3, r7, #6 + 8002280: 781b ldrb r3, [r3, #0] + 8002282: b25b sxtb r3, r3 + 8002284: 4313 orrs r3, r2 + 8002286: b25a sxtb r2, r3 + 8002288: 1dbb adds r3, r7, #6 + 800228a: 701a strb r2, [r3, #0] + LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_C)) << 2); + 800228c: 1dfb adds r3, r7, #7 + 800228e: 781b ldrb r3, [r3, #0] + 8002290: 4a20 ldr r2, [pc, #128] ; (8002314 ) + 8002292: 5cd3 ldrb r3, [r2, r3] + 8002294: 009b lsls r3, r3, #2 + 8002296: b25b sxtb r3, r3 + 8002298: 2210 movs r2, #16 + 800229a: 4013 ands r3, r2 + 800229c: b25a sxtb r2, r3 + 800229e: 1dbb adds r3, r7, #6 + 80022a0: 781b ldrb r3, [r3, #0] + 80022a2: b25b sxtb r3, r3 + 80022a4: 4313 orrs r3, r2 + 80022a6: b25a sxtb r2, r3 + 80022a8: 1dbb adds r3, r7, #6 + 80022aa: 701a strb r2, [r3, #0] + LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_G)) << 1); + 80022ac: 1dfb adds r3, r7, #7 + 80022ae: 781b ldrb r3, [r3, #0] + 80022b0: 4a18 ldr r2, [pc, #96] ; (8002314 ) + 80022b2: 5cd3 ldrb r3, [r2, r3] + 80022b4: 005b lsls r3, r3, #1 + 80022b6: b25b sxtb r3, r3 + 80022b8: 227f movs r2, #127 ; 0x7f + 80022ba: 4393 bics r3, r2 + 80022bc: b25a sxtb r2, r3 + 80022be: 1dbb adds r3, r7, #6 + 80022c0: 781b ldrb r3, [r3, #0] + 80022c2: b25b sxtb r3, r3 + 80022c4: 4313 orrs r3, r2 + 80022c6: b25a sxtb r2, r3 + 80022c8: 1dbb adds r3, r7, #6 + 80022ca: 701a strb r2, [r3, #0] + LCD_data = LCD_data | ((unsigned char)((char)(LED_Tab[num] & LCD_B)) << 0); + 80022cc: 1dfb adds r3, r7, #7 + 80022ce: 781b ldrb r3, [r3, #0] + 80022d0: 4a10 ldr r2, [pc, #64] ; (8002314 ) + 80022d2: 5cd3 ldrb r3, [r2, r3] + 80022d4: b25b sxtb r3, r3 + 80022d6: 2202 movs r2, #2 + 80022d8: 4013 ands r3, r2 + 80022da: b25a sxtb r2, r3 + 80022dc: 1dbb adds r3, r7, #6 + 80022de: 781b ldrb r3, [r3, #0] + 80022e0: b25b sxtb r3, r3 + 80022e2: 4313 orrs r3, r2 + 80022e4: b25a sxtb r2, r3 + 80022e6: 1dbb adds r3, r7, #6 + 80022e8: 701a strb r2, [r3, #0] + + LCD_RAM_Tab[num] = LCD_data; + 80022ea: 1dfb adds r3, r7, #7 + 80022ec: 781b ldrb r3, [r3, #0] + 80022ee: 4a0a ldr r2, [pc, #40] ; (8002318 ) + 80022f0: 1db9 adds r1, r7, #6 + 80022f2: 7809 ldrb r1, [r1, #0] + 80022f4: 54d1 strb r1, [r2, r3] + for(num=0; num + } +} + 8002308: 46c0 nop ; (mov r8, r8) + 800230a: 46c0 nop ; (mov r8, r8) + 800230c: 46bd mov sp, r7 + 800230e: b002 add sp, #8 + 8002310: bd80 pop {r7, pc} + 8002312: 46c0 nop ; (mov r8, r8) + 8002314: 0800312c .word 0x0800312c + 8002318: 20000078 .word 0x20000078 + +0800231c : + * @brief HT1621 Init + * @param None + * @retval None + */ +void HT1621_Init(void) //退出掉电低功耗状态重新初始化HT1621 +{ + 800231c: b580 push {r7, lr} + 800231e: af00 add r7, sp, #0 + HC595_RCK(1); + 8002320: 2390 movs r3, #144 ; 0x90 + 8002322: 05db lsls r3, r3, #23 + 8002324: 2201 movs r2, #1 + 8002326: 2180 movs r1, #128 ; 0x80 + 8002328: 0018 movs r0, r3 + 800232a: f7ff f983 bl 8001634 + HC595_SCK(1); + 800232e: 2390 movs r3, #144 ; 0x90 + 8002330: 05db lsls r3, r3, #23 + 8002332: 2201 movs r2, #1 + 8002334: 2140 movs r1, #64 ; 0x40 + 8002336: 0018 movs r0, r3 + 8002338: f7ff f97c bl 8001634 + HC595_DCK(1); + 800233c: 2390 movs r3, #144 ; 0x90 + 800233e: 05db lsls r3, r3, #23 + 8002340: 2201 movs r2, #1 + 8002342: 2120 movs r1, #32 + 8002344: 0018 movs r0, r3 + 8002346: f7ff f975 bl 8001634 + + WriteCommandHT1621(OSC_ON); + 800234a: 2001 movs r0, #1 + 800234c: f7ff fe4d bl 8001fea + WriteCommandHT1621(DISP_ON); + 8002350: 2003 movs r0, #3 + 8002352: f7ff fe4a bl 8001fea + + WriteCommandHT1621(COM_1_3__4); + 8002356: 2029 movs r0, #41 ; 0x29 + 8002358: f7ff fe47 bl 8001fea + + //上电默认配置(以下未用功能关闭降低功耗) + + WriteCommandHT1621(TIMER_DIS); + 800235c: 2004 movs r0, #4 + 800235e: f7ff fe44 bl 8001fea + WriteCommandHT1621(WDT_DIS); + 8002362: 2005 movs r0, #5 + 8002364: f7ff fe41 bl 8001fea + WriteCommandHT1621(BUZZ_OFF); + 8002368: 2008 movs r0, #8 + 800236a: f7ff fe3e bl 8001fea + WriteCommandHT1621(IRQ_DIS); + 800236e: 2080 movs r0, #128 ; 0x80 + 8002370: f7ff fe3b bl 8001fea + + HT1621_num_init(); //自动生成液晶屏需要的数组 + 8002374: f7ff ff54 bl 8002220 +} + 8002378: 46c0 nop ; (mov r8, r8) + 800237a: 46bd mov sp, r7 + 800237c: bd80 pop {r7, pc} + +0800237e : + * @param None + * @retval None + */ + +void HT1621_Display(void) +{ + 800237e: b580 push {r7, lr} + 8002380: af00 add r7, sp, #0 + + Write1DataHT1621(0,0x00); + 8002382: 2100 movs r1, #0 + 8002384: 2000 movs r0, #0 + 8002386: f7ff fea7 bl 80020d8 + Write1DataHT1621(1,0x00); + 800238a: 2100 movs r1, #0 + 800238c: 2001 movs r0, #1 + 800238e: f7ff fea3 bl 80020d8 + Write1DataHT1621(2,0x00); + 8002392: 2100 movs r1, #0 + 8002394: 2002 movs r0, #2 + 8002396: f7ff fe9f bl 80020d8 + Write1DataHT1621(3,0x00); + 800239a: 2100 movs r1, #0 + 800239c: 2003 movs r0, #3 + 800239e: f7ff fe9b bl 80020d8 + Write1DataHT1621(4,0x00); + 80023a2: 2100 movs r1, #0 + 80023a4: 2004 movs r0, #4 + 80023a6: f7ff fe97 bl 80020d8 + Write1DataHT1621(5,0x00); + 80023aa: 2100 movs r1, #0 + 80023ac: 2005 movs r0, #5 + 80023ae: f7ff fe93 bl 80020d8 + Write1DataHT1621(6,0x00); + 80023b2: 2100 movs r1, #0 + 80023b4: 2006 movs r0, #6 + 80023b6: f7ff fe8f bl 80020d8 + Write1DataHT1621(7,0x00); + 80023ba: 2100 movs r1, #0 + 80023bc: 2007 movs r0, #7 + 80023be: f7ff fe8b bl 80020d8 + + +} + 80023c2: 46c0 nop ; (mov r8, r8) + 80023c4: 46bd mov sp, r7 + 80023c6: bd80 pop {r7, pc} + +080023c8 : char moto2b_; }moto; void ds_in_or_out(char a)//change the io function { - 8001ffc: b590 push {r4, r7, lr} - 8001ffe: b089 sub sp, #36 ; 0x24 - 8002000: af00 add r7, sp, #0 - 8002002: 0002 movs r2, r0 - 8002004: 1dfb adds r3, r7, #7 - 8002006: 701a strb r2, [r3, #0] + 80023c8: b590 push {r4, r7, lr} + 80023ca: b089 sub sp, #36 ; 0x24 + 80023cc: af00 add r7, sp, #0 + 80023ce: 0002 movs r2, r0 + 80023d0: 1dfb adds r3, r7, #7 + 80023d2: 701a strb r2, [r3, #0] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8002008: 240c movs r4, #12 - 800200a: 193b adds r3, r7, r4 - 800200c: 0018 movs r0, r3 - 800200e: 2314 movs r3, #20 - 8002010: 001a movs r2, r3 - 8002012: 2100 movs r1, #0 - 8002014: f001 f806 bl 8003024 + 80023d4: 240c movs r4, #12 + 80023d6: 193b adds r3, r7, r4 + 80023d8: 0018 movs r0, r3 + 80023da: 2314 movs r3, #20 + 80023dc: 001a movs r2, r3 + 80023de: 2100 movs r1, #0 + 80023e0: f000 fe78 bl 80030d4 GPIO_InitStruct.Pin = HC595_DLK_Pin; - 8002018: 0021 movs r1, r4 - 800201a: 187b adds r3, r7, r1 - 800201c: 2220 movs r2, #32 - 800201e: 601a str r2, [r3, #0] + 80023e4: 0021 movs r1, r4 + 80023e6: 187b adds r3, r7, r1 + 80023e8: 2220 movs r2, #32 + 80023ea: 601a str r2, [r3, #0] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - 8002020: 187b adds r3, r7, r1 - 8002022: 2203 movs r2, #3 - 8002024: 60da str r2, [r3, #12] + 80023ec: 187b adds r3, r7, r1 + 80023ee: 2203 movs r2, #3 + 80023f0: 60da str r2, [r3, #12] if(a==0) - 8002026: 1dfb adds r3, r7, #7 - 8002028: 781b ldrb r3, [r3, #0] - 800202a: 2b00 cmp r3, #0 - 800202c: d105 bne.n 800203a + 80023f2: 1dfb adds r3, r7, #7 + 80023f4: 781b ldrb r3, [r3, #0] + 80023f6: 2b00 cmp r3, #0 + 80023f8: d105 bne.n 8002406 { GPIO_InitStruct.Pull = GPIO_PULLUP; - 800202e: 187b adds r3, r7, r1 - 8002030: 2201 movs r2, #1 - 8002032: 609a str r2, [r3, #8] + 80023fa: 187b adds r3, r7, r1 + 80023fc: 2201 movs r2, #1 + 80023fe: 609a str r2, [r3, #8] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; - 8002034: 187b adds r3, r7, r1 - 8002036: 2200 movs r2, #0 - 8002038: 605a str r2, [r3, #4] + 8002400: 187b adds r3, r7, r1 + 8002402: 2200 movs r2, #0 + 8002404: 605a str r2, [r3, #4] } if(a==1) - 800203a: 1dfb adds r3, r7, #7 - 800203c: 781b ldrb r3, [r3, #0] - 800203e: 2b01 cmp r3, #1 - 8002040: d106 bne.n 8002050 + 8002406: 1dfb adds r3, r7, #7 + 8002408: 781b ldrb r3, [r3, #0] + 800240a: 2b01 cmp r3, #1 + 800240c: d106 bne.n 800241c { GPIO_InitStruct.Pull = GPIO_NOPULL; - 8002042: 210c movs r1, #12 - 8002044: 187b adds r3, r7, r1 - 8002046: 2200 movs r2, #0 - 8002048: 609a str r2, [r3, #8] + 800240e: 210c movs r1, #12 + 8002410: 187b adds r3, r7, r1 + 8002412: 2200 movs r2, #0 + 8002414: 609a str r2, [r3, #8] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; - 800204a: 187b adds r3, r7, r1 - 800204c: 2201 movs r2, #1 - 800204e: 605a str r2, [r3, #4] + 8002416: 187b adds r3, r7, r1 + 8002418: 2201 movs r2, #1 + 800241a: 605a str r2, [r3, #4] } HAL_GPIO_Init(HC595_DLK_GPIO_Port, &GPIO_InitStruct); - 8002050: 230c movs r3, #12 - 8002052: 18fa adds r2, r7, r3 - 8002054: 2390 movs r3, #144 ; 0x90 - 8002056: 05db lsls r3, r3, #23 - 8002058: 0011 movs r1, r2 - 800205a: 0018 movs r0, r3 - 800205c: f7ff f97a bl 8001354 + 800241c: 230c movs r3, #12 + 800241e: 18fa adds r2, r7, r3 + 8002420: 2390 movs r3, #144 ; 0x90 + 8002422: 05db lsls r3, r3, #23 + 8002424: 0011 movs r1, r2 + 8002426: 0018 movs r0, r3 + 8002428: f7fe ff94 bl 8001354 } - 8002060: 46c0 nop ; (mov r8, r8) - 8002062: 46bd mov sp, r7 - 8002064: b009 add sp, #36 ; 0x24 - 8002066: bd90 pop {r4, r7, pc} + 800242c: 46c0 nop ; (mov r8, r8) + 800242e: 46bd mov sp, r7 + 8002430: b009 add sp, #36 ; 0x24 + 8002432: bd90 pop {r4, r7, pc} -08002068 : -uint8_t Read_Ds() -{ - 8002068: b580 push {r7, lr} - 800206a: af00 add r7, sp, #0 - ds_in_or_out(0); - 800206c: 2000 movs r0, #0 - 800206e: f7ff ffc5 bl 8001ffc +08002434 : if(READ_HC595_DCK){return 0;}else{return 1;} - 8002072: 2390 movs r3, #144 ; 0x90 - 8002074: 05db lsls r3, r3, #23 - 8002076: 2120 movs r1, #32 - 8002078: 0018 movs r0, r3 - 800207a: f7ff fadb bl 8001634 - 800207e: 1e03 subs r3, r0, #0 - 8002080: d001 beq.n 8002086 - 8002082: 2300 movs r3, #0 - 8002084: e000 b.n 8002088 - 8002086: 2301 movs r3, #1 //return READ_HC595_DCK; } - 8002088: 0018 movs r0, r3 - 800208a: 46bd mov sp, r7 - 800208c: bd80 pop {r7, pc} -0800208e : -void Sand_Byte_to_595(uint8_t h,uint8_t l) -{ - 800208e: b580 push {r7, lr} - 8002090: b084 sub sp, #16 - 8002092: af00 add r7, sp, #0 - 8002094: 0002 movs r2, r0 - 8002096: 1dfb adds r3, r7, #7 - 8002098: 701a strb r2, [r3, #0] - 800209a: 1dbb adds r3, r7, #6 - 800209c: 1c0a adds r2, r1, #0 - 800209e: 701a strb r2, [r3, #0] - ds_in_or_out(1); - 80020a0: 2001 movs r0, #1 - 80020a2: f7ff ffab bl 8001ffc - HC595_DCK(0); - 80020a6: 2390 movs r3, #144 ; 0x90 - 80020a8: 05db lsls r3, r3, #23 - 80020aa: 2200 movs r2, #0 - 80020ac: 2120 movs r1, #32 - 80020ae: 0018 movs r0, r3 - 80020b0: f7ff fadd bl 800166e - HC595_SCK(0); - 80020b4: 2390 movs r3, #144 ; 0x90 - 80020b6: 05db lsls r3, r3, #23 - 80020b8: 2200 movs r2, #0 - 80020ba: 2140 movs r1, #64 ; 0x40 - 80020bc: 0018 movs r0, r3 - 80020be: f7ff fad6 bl 800166e - HC595_RCK(0); - 80020c2: 2390 movs r3, #144 ; 0x90 - 80020c4: 05db lsls r3, r3, #23 - 80020c6: 2200 movs r2, #0 - 80020c8: 2180 movs r1, #128 ; 0x80 - 80020ca: 0018 movs r0, r3 - 80020cc: f7ff facf bl 800166e - for(char a=0;a<8;a++) - 80020d0: 230f movs r3, #15 - 80020d2: 18fb adds r3, r7, r3 - 80020d4: 2200 movs r2, #0 - 80020d6: 701a strb r2, [r3, #0] - 80020d8: e02c b.n 8002134 - { - if((h< - { - HC595_DCK(1); - 80020ee: 2390 movs r3, #144 ; 0x90 - 80020f0: 05db lsls r3, r3, #23 - 80020f2: 2201 movs r2, #1 - 80020f4: 2120 movs r1, #32 - 80020f6: 0018 movs r0, r3 - 80020f8: f7ff fab9 bl 800166e - 80020fc: e006 b.n 800210c - }else - { - HC595_DCK(0); - 80020fe: 2390 movs r3, #144 ; 0x90 - 8002100: 05db lsls r3, r3, #23 - 8002102: 2200 movs r2, #0 - 8002104: 2120 movs r1, #32 - 8002106: 0018 movs r0, r3 - 8002108: f7ff fab1 bl 800166e - } - HC595_SCK(1); - 800210c: 2390 movs r3, #144 ; 0x90 - 800210e: 05db lsls r3, r3, #23 - 8002110: 2201 movs r2, #1 - 8002112: 2140 movs r1, #64 ; 0x40 - 8002114: 0018 movs r0, r3 - 8002116: f7ff faaa bl 800166e - HC595_SCK(0); - 800211a: 2390 movs r3, #144 ; 0x90 - 800211c: 05db lsls r3, r3, #23 - 800211e: 2200 movs r2, #0 - 8002120: 2140 movs r1, #64 ; 0x40 - 8002122: 0018 movs r0, r3 - 8002124: f7ff faa3 bl 800166e - for(char a=0;a<8;a++) - 8002128: 210f movs r1, #15 - 800212a: 187b adds r3, r7, r1 - 800212c: 781a ldrb r2, [r3, #0] - 800212e: 187b adds r3, r7, r1 - 8002130: 3201 adds r2, #1 - 8002132: 701a strb r2, [r3, #0] - 8002134: 230f movs r3, #15 - 8002136: 18fb adds r3, r7, r3 - 8002138: 781b ldrb r3, [r3, #0] - 800213a: 2b07 cmp r3, #7 - 800213c: d9cd bls.n 80020da - } - for(char a=0;a<8;a++) - 800213e: 230e movs r3, #14 - 8002140: 18fb adds r3, r7, r3 - 8002142: 2200 movs r2, #0 - 8002144: 701a strb r2, [r3, #0] - 8002146: e02c b.n 80021a2 - { - if((l< - { - HC595_DCK(1); - 800215c: 2390 movs r3, #144 ; 0x90 - 800215e: 05db lsls r3, r3, #23 - 8002160: 2201 movs r2, #1 - 8002162: 2120 movs r1, #32 - 8002164: 0018 movs r0, r3 - 8002166: f7ff fa82 bl 800166e - 800216a: e006 b.n 800217a - }else - { - HC595_DCK(0); - 800216c: 2390 movs r3, #144 ; 0x90 - 800216e: 05db lsls r3, r3, #23 - 8002170: 2200 movs r2, #0 - 8002172: 2120 movs r1, #32 - 8002174: 0018 movs r0, r3 - 8002176: f7ff fa7a bl 800166e - } - HC595_SCK(1); - 800217a: 2390 movs r3, #144 ; 0x90 - 800217c: 05db lsls r3, r3, #23 - 800217e: 2201 movs r2, #1 - 8002180: 2140 movs r1, #64 ; 0x40 - 8002182: 0018 movs r0, r3 - 8002184: f7ff fa73 bl 800166e - HC595_SCK(0); - 8002188: 2390 movs r3, #144 ; 0x90 - 800218a: 05db lsls r3, r3, #23 - 800218c: 2200 movs r2, #0 - 800218e: 2140 movs r1, #64 ; 0x40 - 8002190: 0018 movs r0, r3 - 8002192: f7ff fa6c bl 800166e - for(char a=0;a<8;a++) - 8002196: 210e movs r1, #14 - 8002198: 187b adds r3, r7, r1 - 800219a: 781a ldrb r2, [r3, #0] - 800219c: 187b adds r3, r7, r1 - 800219e: 3201 adds r2, #1 - 80021a0: 701a strb r2, [r3, #0] - 80021a2: 230e movs r3, #14 - 80021a4: 18fb adds r3, r7, r3 - 80021a6: 781b ldrb r3, [r3, #0] - 80021a8: 2b07 cmp r3, #7 - 80021aa: d9cd bls.n 8002148 - } - HC595_RCK(1); - 80021ac: 2390 movs r3, #144 ; 0x90 - 80021ae: 05db lsls r3, r3, #23 - 80021b0: 2201 movs r2, #1 - 80021b2: 2180 movs r1, #128 ; 0x80 - 80021b4: 0018 movs r0, r3 - 80021b6: f7ff fa5a bl 800166e - HC595_RCK(0); - 80021ba: 2390 movs r3, #144 ; 0x90 - 80021bc: 05db lsls r3, r3, #23 - 80021be: 2200 movs r2, #0 - 80021c0: 2180 movs r1, #128 ; 0x80 - 80021c2: 0018 movs r0, r3 - 80021c4: f7ff fa53 bl 800166e -} - 80021c8: 46c0 nop ; (mov r8, r8) - 80021ca: 46bd mov sp, r7 - 80021cc: b004 add sp, #16 - 80021ce: bd80 pop {r7, pc} - -080021d0 : void Sand_Byte_to_595_2(uint8_t h) { - 80021d0: b580 push {r7, lr} - 80021d2: b084 sub sp, #16 - 80021d4: af00 add r7, sp, #0 - 80021d6: 0002 movs r2, r0 - 80021d8: 1dfb adds r3, r7, #7 - 80021da: 701a strb r2, [r3, #0] + 8002434: b580 push {r7, lr} + 8002436: b084 sub sp, #16 + 8002438: af00 add r7, sp, #0 + 800243a: 0002 movs r2, r0 + 800243c: 1dfb adds r3, r7, #7 + 800243e: 701a strb r2, [r3, #0] ds_in_or_out(1); - 80021dc: 2001 movs r0, #1 - 80021de: f7ff ff0d bl 8001ffc + 8002440: 2001 movs r0, #1 + 8002442: f7ff ffc1 bl 80023c8 HC595_DCK(0); - 80021e2: 2390 movs r3, #144 ; 0x90 - 80021e4: 05db lsls r3, r3, #23 - 80021e6: 2200 movs r2, #0 - 80021e8: 2120 movs r1, #32 - 80021ea: 0018 movs r0, r3 - 80021ec: f7ff fa3f bl 800166e + 8002446: 2390 movs r3, #144 ; 0x90 + 8002448: 05db lsls r3, r3, #23 + 800244a: 2200 movs r2, #0 + 800244c: 2120 movs r1, #32 + 800244e: 0018 movs r0, r3 + 8002450: f7ff f8f0 bl 8001634 HC595_SCK2(0); - 80021f0: 2380 movs r3, #128 ; 0x80 - 80021f2: 0099 lsls r1, r3, #2 - 80021f4: 2390 movs r3, #144 ; 0x90 - 80021f6: 05db lsls r3, r3, #23 - 80021f8: 2200 movs r2, #0 - 80021fa: 0018 movs r0, r3 - 80021fc: f7ff fa37 bl 800166e + 8002454: 2380 movs r3, #128 ; 0x80 + 8002456: 0099 lsls r1, r3, #2 + 8002458: 2390 movs r3, #144 ; 0x90 + 800245a: 05db lsls r3, r3, #23 + 800245c: 2200 movs r2, #0 + 800245e: 0018 movs r0, r3 + 8002460: f7ff f8e8 bl 8001634 HC595_RCK(0); - 8002200: 2390 movs r3, #144 ; 0x90 - 8002202: 05db lsls r3, r3, #23 - 8002204: 2200 movs r2, #0 - 8002206: 2180 movs r1, #128 ; 0x80 - 8002208: 0018 movs r0, r3 - 800220a: f7ff fa30 bl 800166e + 8002464: 2390 movs r3, #144 ; 0x90 + 8002466: 05db lsls r3, r3, #23 + 8002468: 2200 movs r2, #0 + 800246a: 2180 movs r1, #128 ; 0x80 + 800246c: 0018 movs r0, r3 + 800246e: f7ff f8e1 bl 8001634 for(char a=0;a<8;a++) - 800220e: 230f movs r3, #15 - 8002210: 18fb adds r3, r7, r3 - 8002212: 2200 movs r2, #0 - 8002214: 701a strb r2, [r3, #0] - 8002216: e02e b.n 8002276 + 8002472: 230f movs r3, #15 + 8002474: 18fb adds r3, r7, r3 + 8002476: 2200 movs r2, #0 + 8002478: 701a strb r2, [r3, #0] + 800247a: e02e b.n 80024da { if((h< + 800247c: 1dfb adds r3, r7, #7 + 800247e: 781a ldrb r2, [r3, #0] + 8002480: 230f movs r3, #15 + 8002482: 18fb adds r3, r7, r3 + 8002484: 781b ldrb r3, [r3, #0] + 8002486: 409a lsls r2, r3 + 8002488: 0013 movs r3, r2 + 800248a: 2280 movs r2, #128 ; 0x80 + 800248c: 4013 ands r3, r2 + 800248e: d007 beq.n 80024a0 { HC595_DCK(1); - 800222c: 2390 movs r3, #144 ; 0x90 - 800222e: 05db lsls r3, r3, #23 - 8002230: 2201 movs r2, #1 - 8002232: 2120 movs r1, #32 - 8002234: 0018 movs r0, r3 - 8002236: f7ff fa1a bl 800166e - 800223a: e006 b.n 800224a + 8002490: 2390 movs r3, #144 ; 0x90 + 8002492: 05db lsls r3, r3, #23 + 8002494: 2201 movs r2, #1 + 8002496: 2120 movs r1, #32 + 8002498: 0018 movs r0, r3 + 800249a: f7ff f8cb bl 8001634 + 800249e: e006 b.n 80024ae }else { HC595_DCK(0); - 800223c: 2390 movs r3, #144 ; 0x90 - 800223e: 05db lsls r3, r3, #23 - 8002240: 2200 movs r2, #0 - 8002242: 2120 movs r1, #32 - 8002244: 0018 movs r0, r3 - 8002246: f7ff fa12 bl 800166e + 80024a0: 2390 movs r3, #144 ; 0x90 + 80024a2: 05db lsls r3, r3, #23 + 80024a4: 2200 movs r2, #0 + 80024a6: 2120 movs r1, #32 + 80024a8: 0018 movs r0, r3 + 80024aa: f7ff f8c3 bl 8001634 } HC595_SCK2(1); - 800224a: 2380 movs r3, #128 ; 0x80 - 800224c: 0099 lsls r1, r3, #2 - 800224e: 2390 movs r3, #144 ; 0x90 - 8002250: 05db lsls r3, r3, #23 - 8002252: 2201 movs r2, #1 - 8002254: 0018 movs r0, r3 - 8002256: f7ff fa0a bl 800166e + 80024ae: 2380 movs r3, #128 ; 0x80 + 80024b0: 0099 lsls r1, r3, #2 + 80024b2: 2390 movs r3, #144 ; 0x90 + 80024b4: 05db lsls r3, r3, #23 + 80024b6: 2201 movs r2, #1 + 80024b8: 0018 movs r0, r3 + 80024ba: f7ff f8bb bl 8001634 HC595_SCK2(0); - 800225a: 2380 movs r3, #128 ; 0x80 - 800225c: 0099 lsls r1, r3, #2 - 800225e: 2390 movs r3, #144 ; 0x90 - 8002260: 05db lsls r3, r3, #23 - 8002262: 2200 movs r2, #0 - 8002264: 0018 movs r0, r3 - 8002266: f7ff fa02 bl 800166e + 80024be: 2380 movs r3, #128 ; 0x80 + 80024c0: 0099 lsls r1, r3, #2 + 80024c2: 2390 movs r3, #144 ; 0x90 + 80024c4: 05db lsls r3, r3, #23 + 80024c6: 2200 movs r2, #0 + 80024c8: 0018 movs r0, r3 + 80024ca: f7ff f8b3 bl 8001634 for(char a=0;a<8;a++) - 800226a: 210f movs r1, #15 - 800226c: 187b adds r3, r7, r1 - 800226e: 781a ldrb r2, [r3, #0] - 8002270: 187b adds r3, r7, r1 - 8002272: 3201 adds r2, #1 - 8002274: 701a strb r2, [r3, #0] - 8002276: 230f movs r3, #15 - 8002278: 18fb adds r3, r7, r3 - 800227a: 781b ldrb r3, [r3, #0] - 800227c: 2b07 cmp r3, #7 - 800227e: d9cb bls.n 8002218 + 80024ce: 210f movs r1, #15 + 80024d0: 187b adds r3, r7, r1 + 80024d2: 781a ldrb r2, [r3, #0] + 80024d4: 187b adds r3, r7, r1 + 80024d6: 3201 adds r2, #1 + 80024d8: 701a strb r2, [r3, #0] + 80024da: 230f movs r3, #15 + 80024dc: 18fb adds r3, r7, r3 + 80024de: 781b ldrb r3, [r3, #0] + 80024e0: 2b07 cmp r3, #7 + 80024e2: d9cb bls.n 800247c } HC595_RCK(1); - 8002280: 2390 movs r3, #144 ; 0x90 - 8002282: 05db lsls r3, r3, #23 - 8002284: 2201 movs r2, #1 - 8002286: 2180 movs r1, #128 ; 0x80 - 8002288: 0018 movs r0, r3 - 800228a: f7ff f9f0 bl 800166e + 80024e4: 2390 movs r3, #144 ; 0x90 + 80024e6: 05db lsls r3, r3, #23 + 80024e8: 2201 movs r2, #1 + 80024ea: 2180 movs r1, #128 ; 0x80 + 80024ec: 0018 movs r0, r3 + 80024ee: f7ff f8a1 bl 8001634 HC595_RCK(0); - 800228e: 2390 movs r3, #144 ; 0x90 - 8002290: 05db lsls r3, r3, #23 - 8002292: 2200 movs r2, #0 - 8002294: 2180 movs r1, #128 ; 0x80 - 8002296: 0018 movs r0, r3 - 8002298: f7ff f9e9 bl 800166e + 80024f2: 2390 movs r3, #144 ; 0x90 + 80024f4: 05db lsls r3, r3, #23 + 80024f6: 2200 movs r2, #0 + 80024f8: 2180 movs r1, #128 ; 0x80 + 80024fa: 0018 movs r0, r3 + 80024fc: f7ff f89a bl 8001634 } - 800229c: 46c0 nop ; (mov r8, r8) - 800229e: 46bd mov sp, r7 - 80022a0: b004 add sp, #16 - 80022a2: bd80 pop {r7, pc} + 8002500: 46c0 nop ; (mov r8, r8) + 8002502: 46bd mov sp, r7 + 8002504: b004 add sp, #16 + 8002506: bd80 pop {r7, pc} -080022a4 : - -const char num_com[4]={0x1,0x2,0x4,0x8}; -const char d_com[4]={0x80,0x40,0x20,0x10}; - -void display_and_button_loop() -{ - 80022a4: b580 push {r7, lr} - 80022a6: b084 sub sp, #16 - 80022a8: af00 add r7, sp, #0 - char lcd_buff[4]; - char change_buff; - char h,l; - //fast time change 1 - - for(int a=0;a<4;a++) - 80022aa: 2300 movs r3, #0 - 80022ac: 60fb str r3, [r7, #12] - 80022ae: e089 b.n 80023c4 - { - change_buff=d_num_data[dis_buff.d_num[a]];//num to data model - 80022b0: 4a65 ldr r2, [pc, #404] ; (8002448 ) - 80022b2: 68fb ldr r3, [r7, #12] - 80022b4: 18d3 adds r3, r2, r3 - 80022b6: 781b ldrb r3, [r3, #0] - 80022b8: 0019 movs r1, r3 - 80022ba: 1d7b adds r3, r7, #5 - 80022bc: 4a63 ldr r2, [pc, #396] ; (800244c ) - 80022be: 5c52 ldrb r2, [r2, r1] - 80022c0: 701a strb r2, [r3, #0] - if(change_buff&&A) - 80022c2: 1d7b adds r3, r7, #5 - 80022c4: 781b ldrb r3, [r3, #0] - 80022c6: 2b00 cmp r3, #0 - 80022c8: d00d beq.n 80022e6 - { - lcd_buff[0]|=0x80>>(a*2); - 80022ca: 003b movs r3, r7 - 80022cc: 781b ldrb r3, [r3, #0] - 80022ce: b25a sxtb r2, r3 - 80022d0: 68fb ldr r3, [r7, #12] - 80022d2: 005b lsls r3, r3, #1 - 80022d4: 2180 movs r1, #128 ; 0x80 - 80022d6: 4119 asrs r1, r3 - 80022d8: 000b movs r3, r1 - 80022da: b25b sxtb r3, r3 - 80022dc: 4313 orrs r3, r2 - 80022de: b25b sxtb r3, r3 - 80022e0: b2da uxtb r2, r3 - 80022e2: 003b movs r3, r7 - 80022e4: 701a strb r2, [r3, #0] - } - if(change_buff&&B) - 80022e6: 1d7b adds r3, r7, #5 - 80022e8: 781b ldrb r3, [r3, #0] - 80022ea: 2b00 cmp r3, #0 - 80022ec: d00d beq.n 800230a - { - lcd_buff[0]|=0x40>>(a*2); - 80022ee: 003b movs r3, r7 - 80022f0: 781b ldrb r3, [r3, #0] - 80022f2: b25a sxtb r2, r3 - 80022f4: 68fb ldr r3, [r7, #12] - 80022f6: 005b lsls r3, r3, #1 - 80022f8: 2140 movs r1, #64 ; 0x40 - 80022fa: 4119 asrs r1, r3 - 80022fc: 000b movs r3, r1 - 80022fe: b25b sxtb r3, r3 - 8002300: 4313 orrs r3, r2 - 8002302: b25b sxtb r3, r3 - 8002304: b2da uxtb r2, r3 - 8002306: 003b movs r3, r7 - 8002308: 701a strb r2, [r3, #0] - } - if(change_buff&&C) - 800230a: 1d7b adds r3, r7, #5 - 800230c: 781b ldrb r3, [r3, #0] - 800230e: 2b00 cmp r3, #0 - 8002310: d00d beq.n 800232e - { - lcd_buff[2]|=0x40>>(a*2); - 8002312: 003b movs r3, r7 - 8002314: 789b ldrb r3, [r3, #2] - 8002316: b25a sxtb r2, r3 - 8002318: 68fb ldr r3, [r7, #12] - 800231a: 005b lsls r3, r3, #1 - 800231c: 2140 movs r1, #64 ; 0x40 - 800231e: 4119 asrs r1, r3 - 8002320: 000b movs r3, r1 - 8002322: b25b sxtb r3, r3 - 8002324: 4313 orrs r3, r2 - 8002326: b25b sxtb r3, r3 - 8002328: b2da uxtb r2, r3 - 800232a: 003b movs r3, r7 - 800232c: 709a strb r2, [r3, #2] - } - if(change_buff&&D) - 800232e: 1d7b adds r3, r7, #5 - 8002330: 781b ldrb r3, [r3, #0] - 8002332: 2b00 cmp r3, #0 - 8002334: d00d beq.n 8002352 - { - lcd_buff[3]|=0x40>>(a*2); - 8002336: 003b movs r3, r7 - 8002338: 78db ldrb r3, [r3, #3] - 800233a: b25a sxtb r2, r3 - 800233c: 68fb ldr r3, [r7, #12] - 800233e: 005b lsls r3, r3, #1 - 8002340: 2140 movs r1, #64 ; 0x40 - 8002342: 4119 asrs r1, r3 - 8002344: 000b movs r3, r1 - 8002346: b25b sxtb r3, r3 - 8002348: 4313 orrs r3, r2 - 800234a: b25b sxtb r3, r3 - 800234c: b2da uxtb r2, r3 - 800234e: 003b movs r3, r7 - 8002350: 70da strb r2, [r3, #3] - } - if(change_buff&&E) - 8002352: 1d7b adds r3, r7, #5 - 8002354: 781b ldrb r3, [r3, #0] - 8002356: 2b00 cmp r3, #0 - 8002358: d00d beq.n 8002376 - { - lcd_buff[2]|=0x80>>(a*2); - 800235a: 003b movs r3, r7 - 800235c: 789b ldrb r3, [r3, #2] - 800235e: b25a sxtb r2, r3 - 8002360: 68fb ldr r3, [r7, #12] - 8002362: 005b lsls r3, r3, #1 - 8002364: 2180 movs r1, #128 ; 0x80 - 8002366: 4119 asrs r1, r3 - 8002368: 000b movs r3, r1 - 800236a: b25b sxtb r3, r3 - 800236c: 4313 orrs r3, r2 - 800236e: b25b sxtb r3, r3 - 8002370: b2da uxtb r2, r3 - 8002372: 003b movs r3, r7 - 8002374: 709a strb r2, [r3, #2] - } - if(change_buff&&F) - 8002376: 1d7b adds r3, r7, #5 - 8002378: 781b ldrb r3, [r3, #0] - 800237a: 2b00 cmp r3, #0 - 800237c: d00d beq.n 800239a - { - lcd_buff[1]|=0x80>>(a*2); - 800237e: 003b movs r3, r7 - 8002380: 785b ldrb r3, [r3, #1] - 8002382: b25a sxtb r2, r3 - 8002384: 68fb ldr r3, [r7, #12] - 8002386: 005b lsls r3, r3, #1 - 8002388: 2180 movs r1, #128 ; 0x80 - 800238a: 4119 asrs r1, r3 - 800238c: 000b movs r3, r1 - 800238e: b25b sxtb r3, r3 - 8002390: 4313 orrs r3, r2 - 8002392: b25b sxtb r3, r3 - 8002394: b2da uxtb r2, r3 - 8002396: 003b movs r3, r7 - 8002398: 705a strb r2, [r3, #1] - } - if(change_buff&&G) - 800239a: 1d7b adds r3, r7, #5 - 800239c: 781b ldrb r3, [r3, #0] - 800239e: 2b00 cmp r3, #0 - 80023a0: d00d beq.n 80023be - { - lcd_buff[1]|=0x40>>(a*2); - 80023a2: 003b movs r3, r7 - 80023a4: 785b ldrb r3, [r3, #1] - 80023a6: b25a sxtb r2, r3 - 80023a8: 68fb ldr r3, [r7, #12] - 80023aa: 005b lsls r3, r3, #1 - 80023ac: 2140 movs r1, #64 ; 0x40 - 80023ae: 4119 asrs r1, r3 - 80023b0: 000b movs r3, r1 - 80023b2: b25b sxtb r3, r3 - 80023b4: 4313 orrs r3, r2 - 80023b6: b25b sxtb r3, r3 - 80023b8: b2da uxtb r2, r3 - 80023ba: 003b movs r3, r7 - 80023bc: 705a strb r2, [r3, #1] - for(int a=0;a<4;a++) - 80023be: 68fb ldr r3, [r7, #12] - 80023c0: 3301 adds r3, #1 - 80023c2: 60fb str r3, [r7, #12] - 80023c4: 68fb ldr r3, [r7, #12] - 80023c6: 2b03 cmp r3, #3 - 80023c8: dc00 bgt.n 80023cc - 80023ca: e771 b.n 80022b0 - //Sand_Byte_to_595(0xff,0xff); - //Sand_Byte_to_595(~h,~l); - //Sand_Byte_to_595(0,0); - //Sand_Byte_to_595(0xff,0xff); - - for(int a=0;a<4;a++) - 80023cc: 2300 movs r3, #0 - 80023ce: 60bb str r3, [r7, #8] - 80023d0: e032 b.n 8002438 - { - l=lcd_buff[a]; - 80023d2: 1dfb adds r3, r7, #7 - 80023d4: 0039 movs r1, r7 - 80023d6: 68ba ldr r2, [r7, #8] - 80023d8: 188a adds r2, r1, r2 - 80023da: 7812 ldrb r2, [r2, #0] - 80023dc: 701a strb r2, [r3, #0] - //h=((~num_com[a])&0x0F); - h=(~d_com[a]&0xf0)|((~num_com[a])&0x0F); - 80023de: 4a1c ldr r2, [pc, #112] ; (8002450 ) - 80023e0: 68bb ldr r3, [r7, #8] - 80023e2: 18d3 adds r3, r2, r3 - 80023e4: 781b ldrb r3, [r3, #0] - 80023e6: b25b sxtb r3, r3 - 80023e8: 43db mvns r3, r3 - 80023ea: b25b sxtb r3, r3 - 80023ec: 220f movs r2, #15 - 80023ee: 4393 bics r3, r2 - 80023f0: b25a sxtb r2, r3 - 80023f2: 4918 ldr r1, [pc, #96] ; (8002454 ) - 80023f4: 68bb ldr r3, [r7, #8] - 80023f6: 18cb adds r3, r1, r3 - 80023f8: 781b ldrb r3, [r3, #0] - 80023fa: b25b sxtb r3, r3 - 80023fc: 43db mvns r3, r3 - 80023fe: b25b sxtb r3, r3 - 8002400: 210f movs r1, #15 - 8002402: 400b ands r3, r1 - 8002404: b25b sxtb r3, r3 - 8002406: 4313 orrs r3, r2 - 8002408: b25a sxtb r2, r3 - 800240a: 1dbb adds r3, r7, #6 - 800240c: 701a strb r2, [r3, #0] - Sand_Byte_to_595(h,l); - 800240e: 1dfb adds r3, r7, #7 - 8002410: 781a ldrb r2, [r3, #0] - 8002412: 1dbb adds r3, r7, #6 - 8002414: 781b ldrb r3, [r3, #0] - 8002416: 0011 movs r1, r2 - 8002418: 0018 movs r0, r3 - 800241a: f7ff fe38 bl 800208e - dis_buff.button_flag[a]=Read_Ds(); - 800241e: f7ff fe23 bl 8002068 - 8002422: 0003 movs r3, r0 - 8002424: 0019 movs r1, r3 - 8002426: 4a08 ldr r2, [pc, #32] ; (8002448 ) - 8002428: 68bb ldr r3, [r7, #8] - 800242a: 18d3 adds r3, r2, r3 - 800242c: 3304 adds r3, #4 - 800242e: 1c0a adds r2, r1, #0 - 8002430: 701a strb r2, [r3, #0] - for(int a=0;a<4;a++) - 8002432: 68bb ldr r3, [r7, #8] - 8002434: 3301 adds r3, #1 - 8002436: 60bb str r3, [r7, #8] - 8002438: 68bb ldr r3, [r7, #8] - 800243a: 2b03 cmp r3, #3 - 800243c: ddc9 ble.n 80023d2 +08002508 : - - - -} - 800243e: 46c0 nop ; (mov r8, r8) - 8002440: 46c0 nop ; (mov r8, r8) - 8002442: 46bd mov sp, r7 - 8002444: b004 add sp, #16 - 8002446: bd80 pop {r7, pc} - 8002448: 2000007c .word 0x2000007c - 800244c: 0800307c .word 0x0800307c - 8002450: 0800308c .word 0x0800308c - 8002454: 08003088 .word 0x08003088 - -08002458 : void hc2_sever() { - 8002458: b580 push {r7, lr} - 800245a: b082 sub sp, #8 - 800245c: af00 add r7, sp, #0 + 8002508: b580 push {r7, lr} + 800250a: b082 sub sp, #8 + 800250c: af00 add r7, sp, #0 char h=0; - 800245e: 1dfb adds r3, r7, #7 - 8002460: 2200 movs r2, #0 - 8002462: 701a strb r2, [r3, #0] + 800250e: 1dfb adds r3, r7, #7 + 8002510: 2200 movs r2, #0 + 8002512: 701a strb r2, [r3, #0] if(dis_buff.led_run==1) - 8002464: 4b24 ldr r3, [pc, #144] ; (80024f8 ) - 8002466: 7a1b ldrb r3, [r3, #8] - 8002468: 2210 movs r2, #16 - 800246a: 4013 ands r3, r2 - 800246c: b2db uxtb r3, r3 - 800246e: 2b00 cmp r3, #0 - 8002470: d005 beq.n 800247e + 8002514: 4b24 ldr r3, [pc, #144] ; (80025a8 ) + 8002516: 7a1b ldrb r3, [r3, #8] + 8002518: 2210 movs r2, #16 + 800251a: 4013 ands r3, r2 + 800251c: b2db uxtb r3, r3 + 800251e: 2b00 cmp r3, #0 + 8002520: d005 beq.n 800252e { h|=0x01; - 8002472: 1dfb adds r3, r7, #7 - 8002474: 1dfa adds r2, r7, #7 - 8002476: 7812 ldrb r2, [r2, #0] - 8002478: 2101 movs r1, #1 - 800247a: 430a orrs r2, r1 - 800247c: 701a strb r2, [r3, #0] + 8002522: 1dfb adds r3, r7, #7 + 8002524: 1dfa adds r2, r7, #7 + 8002526: 7812 ldrb r2, [r2, #0] + 8002528: 2101 movs r1, #1 + 800252a: 430a orrs r2, r1 + 800252c: 701a strb r2, [r3, #0] } if(dis_buff.moto1a==1) - 800247e: 4b1e ldr r3, [pc, #120] ; (80024f8 ) - 8002480: 7a1b ldrb r3, [r3, #8] - 8002482: 2220 movs r2, #32 - 8002484: 4013 ands r3, r2 - 8002486: b2db uxtb r3, r3 - 8002488: 2b00 cmp r3, #0 - 800248a: d005 beq.n 8002498 + 800252e: 4b1e ldr r3, [pc, #120] ; (80025a8 ) + 8002530: 7a1b ldrb r3, [r3, #8] + 8002532: 2220 movs r2, #32 + 8002534: 4013 ands r3, r2 + 8002536: b2db uxtb r3, r3 + 8002538: 2b00 cmp r3, #0 + 800253a: d005 beq.n 8002548 { h|=0x02; - 800248c: 1dfb adds r3, r7, #7 - 800248e: 1dfa adds r2, r7, #7 - 8002490: 7812 ldrb r2, [r2, #0] - 8002492: 2102 movs r1, #2 - 8002494: 430a orrs r2, r1 - 8002496: 701a strb r2, [r3, #0] + 800253c: 1dfb adds r3, r7, #7 + 800253e: 1dfa adds r2, r7, #7 + 8002540: 7812 ldrb r2, [r2, #0] + 8002542: 2102 movs r1, #2 + 8002544: 430a orrs r2, r1 + 8002546: 701a strb r2, [r3, #0] } if(dis_buff.moto1b==1) - 8002498: 4b17 ldr r3, [pc, #92] ; (80024f8 ) - 800249a: 7a1b ldrb r3, [r3, #8] - 800249c: 2240 movs r2, #64 ; 0x40 - 800249e: 4013 ands r3, r2 - 80024a0: b2db uxtb r3, r3 - 80024a2: 2b00 cmp r3, #0 - 80024a4: d005 beq.n 80024b2 + 8002548: 4b17 ldr r3, [pc, #92] ; (80025a8 ) + 800254a: 7a1b ldrb r3, [r3, #8] + 800254c: 2240 movs r2, #64 ; 0x40 + 800254e: 4013 ands r3, r2 + 8002550: b2db uxtb r3, r3 + 8002552: 2b00 cmp r3, #0 + 8002554: d005 beq.n 8002562 { h|=0x04; - 80024a6: 1dfb adds r3, r7, #7 - 80024a8: 1dfa adds r2, r7, #7 - 80024aa: 7812 ldrb r2, [r2, #0] - 80024ac: 2104 movs r1, #4 - 80024ae: 430a orrs r2, r1 - 80024b0: 701a strb r2, [r3, #0] + 8002556: 1dfb adds r3, r7, #7 + 8002558: 1dfa adds r2, r7, #7 + 800255a: 7812 ldrb r2, [r2, #0] + 800255c: 2104 movs r1, #4 + 800255e: 430a orrs r2, r1 + 8002560: 701a strb r2, [r3, #0] } if(dis_buff.moto2a==1) - 80024b2: 4b11 ldr r3, [pc, #68] ; (80024f8 ) - 80024b4: 7a1b ldrb r3, [r3, #8] - 80024b6: 227f movs r2, #127 ; 0x7f - 80024b8: 4393 bics r3, r2 - 80024ba: b2db uxtb r3, r3 - 80024bc: 2b00 cmp r3, #0 - 80024be: d005 beq.n 80024cc + 8002562: 4b11 ldr r3, [pc, #68] ; (80025a8 ) + 8002564: 7a1b ldrb r3, [r3, #8] + 8002566: 227f movs r2, #127 ; 0x7f + 8002568: 4393 bics r3, r2 + 800256a: b2db uxtb r3, r3 + 800256c: 2b00 cmp r3, #0 + 800256e: d005 beq.n 800257c { h|=0x08; - 80024c0: 1dfb adds r3, r7, #7 - 80024c2: 1dfa adds r2, r7, #7 - 80024c4: 7812 ldrb r2, [r2, #0] - 80024c6: 2108 movs r1, #8 - 80024c8: 430a orrs r2, r1 - 80024ca: 701a strb r2, [r3, #0] + 8002570: 1dfb adds r3, r7, #7 + 8002572: 1dfa adds r2, r7, #7 + 8002574: 7812 ldrb r2, [r2, #0] + 8002576: 2108 movs r1, #8 + 8002578: 430a orrs r2, r1 + 800257a: 701a strb r2, [r3, #0] } if(dis_buff.moto2b==1) - 80024cc: 4b0a ldr r3, [pc, #40] ; (80024f8 ) - 80024ce: 7a5b ldrb r3, [r3, #9] - 80024d0: 2201 movs r2, #1 - 80024d2: 4013 ands r3, r2 - 80024d4: b2db uxtb r3, r3 - 80024d6: 2b00 cmp r3, #0 - 80024d8: d005 beq.n 80024e6 + 800257c: 4b0a ldr r3, [pc, #40] ; (80025a8 ) + 800257e: 7a5b ldrb r3, [r3, #9] + 8002580: 2201 movs r2, #1 + 8002582: 4013 ands r3, r2 + 8002584: b2db uxtb r3, r3 + 8002586: 2b00 cmp r3, #0 + 8002588: d005 beq.n 8002596 { h|=0x10; - 80024da: 1dfb adds r3, r7, #7 - 80024dc: 1dfa adds r2, r7, #7 - 80024de: 7812 ldrb r2, [r2, #0] - 80024e0: 2110 movs r1, #16 - 80024e2: 430a orrs r2, r1 - 80024e4: 701a strb r2, [r3, #0] + 800258a: 1dfb adds r3, r7, #7 + 800258c: 1dfa adds r2, r7, #7 + 800258e: 7812 ldrb r2, [r2, #0] + 8002590: 2110 movs r1, #16 + 8002592: 430a orrs r2, r1 + 8002594: 701a strb r2, [r3, #0] } Sand_Byte_to_595_2(h); - 80024e6: 1dfb adds r3, r7, #7 - 80024e8: 781b ldrb r3, [r3, #0] - 80024ea: 0018 movs r0, r3 - 80024ec: f7ff fe70 bl 80021d0 + 8002596: 1dfb adds r3, r7, #7 + 8002598: 781b ldrb r3, [r3, #0] + 800259a: 0018 movs r0, r3 + 800259c: f7ff ff4a bl 8002434 } - 80024f0: 46c0 nop ; (mov r8, r8) - 80024f2: 46bd mov sp, r7 - 80024f4: b002 add sp, #8 - 80024f6: bd80 pop {r7, pc} - 80024f8: 2000007c .word 0x2000007c + 80025a0: 46c0 nop ; (mov r8, r8) + 80025a2: 46bd mov sp, r7 + 80025a4: b002 add sp, #8 + 80025a6: bd80 pop {r7, pc} + 80025a8: 20000028 .word 0x20000028 -080024fc : +080025ac : void moto_server() { - 80024fc: b580 push {r7, lr} - 80024fe: af00 add r7, sp, #0 + 80025ac: b580 push {r7, lr} + 80025ae: af00 add r7, sp, #0 if(HAL_GetTick()>moto.moto_run) - 8002500: f7fe f9ba bl 8000878 - 8002504: 0002 movs r2, r0 - 8002506: 4b6c ldr r3, [pc, #432] ; (80026b8 ) - 8002508: 681b ldr r3, [r3, #0] - 800250a: 429a cmp r2, r3 - 800250c: d800 bhi.n 8002510 - 800250e: e07e b.n 800260e + 80025b0: f7fe f962 bl 8000878 + 80025b4: 0002 movs r2, r0 + 80025b6: 4b6c ldr r3, [pc, #432] ; (8002768 ) + 80025b8: 681b ldr r3, [r3, #0] + 80025ba: 429a cmp r2, r3 + 80025bc: d800 bhi.n 80025c0 + 80025be: e07e b.n 80026be { moto.moto_run=HAL_GetTick()+10; - 8002510: f7fe f9b2 bl 8000878 - 8002514: 0003 movs r3, r0 - 8002516: 330a adds r3, #10 - 8002518: 001a movs r2, r3 - 800251a: 4b67 ldr r3, [pc, #412] ; (80026b8 ) - 800251c: 601a str r2, [r3, #0] + 80025c0: f7fe f95a bl 8000878 + 80025c4: 0003 movs r3, r0 + 80025c6: 330a adds r3, #10 + 80025c8: 001a movs r2, r3 + 80025ca: 4b67 ldr r3, [pc, #412] ; (8002768 ) + 80025cc: 601a str r2, [r3, #0] if(moto.moto1a!=moto.moto1a_) - 800251e: 4b66 ldr r3, [pc, #408] ; (80026b8 ) - 8002520: 7a1a ldrb r2, [r3, #8] - 8002522: 4b65 ldr r3, [pc, #404] ; (80026b8 ) - 8002524: 7b1b ldrb r3, [r3, #12] - 8002526: 429a cmp r2, r3 - 8002528: d017 beq.n 800255a + 80025ce: 4b66 ldr r3, [pc, #408] ; (8002768 ) + 80025d0: 7a1a ldrb r2, [r3, #8] + 80025d2: 4b65 ldr r3, [pc, #404] ; (8002768 ) + 80025d4: 7b1b ldrb r3, [r3, #12] + 80025d6: 429a cmp r2, r3 + 80025d8: d017 beq.n 800260a { if(moto.moto1a>moto.moto1a_) - 800252a: 4b63 ldr r3, [pc, #396] ; (80026b8 ) - 800252c: 7a1a ldrb r2, [r3, #8] - 800252e: 4b62 ldr r3, [pc, #392] ; (80026b8 ) - 8002530: 7b1b ldrb r3, [r3, #12] - 8002532: 429a cmp r2, r3 - 8002534: d905 bls.n 8002542 + 80025da: 4b63 ldr r3, [pc, #396] ; (8002768 ) + 80025dc: 7a1a ldrb r2, [r3, #8] + 80025de: 4b62 ldr r3, [pc, #392] ; (8002768 ) + 80025e0: 7b1b ldrb r3, [r3, #12] + 80025e2: 429a cmp r2, r3 + 80025e4: d905 bls.n 80025f2 { moto.moto1a_++; - 8002536: 4b60 ldr r3, [pc, #384] ; (80026b8 ) - 8002538: 7b1b ldrb r3, [r3, #12] - 800253a: 3301 adds r3, #1 - 800253c: b2da uxtb r2, r3 - 800253e: 4b5e ldr r3, [pc, #376] ; (80026b8 ) - 8002540: 731a strb r2, [r3, #12] + 80025e6: 4b60 ldr r3, [pc, #384] ; (8002768 ) + 80025e8: 7b1b ldrb r3, [r3, #12] + 80025ea: 3301 adds r3, #1 + 80025ec: b2da uxtb r2, r3 + 80025ee: 4b5e ldr r3, [pc, #376] ; (8002768 ) + 80025f0: 731a strb r2, [r3, #12] } if(moto.moto1a) - 8002544: 7a1a ldrb r2, [r3, #8] - 8002546: 4b5c ldr r3, [pc, #368] ; (80026b8 ) - 8002548: 7b1b ldrb r3, [r3, #12] - 800254a: 429a cmp r2, r3 - 800254c: d205 bcs.n 800255a + 80025f2: 4b5d ldr r3, [pc, #372] ; (8002768 ) + 80025f4: 7a1a ldrb r2, [r3, #8] + 80025f6: 4b5c ldr r3, [pc, #368] ; (8002768 ) + 80025f8: 7b1b ldrb r3, [r3, #12] + 80025fa: 429a cmp r2, r3 + 80025fc: d205 bcs.n 800260a { moto.moto1a_--; - 800254e: 4b5a ldr r3, [pc, #360] ; (80026b8 ) - 8002550: 7b1b ldrb r3, [r3, #12] - 8002552: 3b01 subs r3, #1 - 8002554: b2da uxtb r2, r3 - 8002556: 4b58 ldr r3, [pc, #352] ; (80026b8 ) - 8002558: 731a strb r2, [r3, #12] + 80025fe: 4b5a ldr r3, [pc, #360] ; (8002768 ) + 8002600: 7b1b ldrb r3, [r3, #12] + 8002602: 3b01 subs r3, #1 + 8002604: b2da uxtb r2, r3 + 8002606: 4b58 ldr r3, [pc, #352] ; (8002768 ) + 8002608: 731a strb r2, [r3, #12] } } if(moto.moto1b!=moto.moto1b_) - 800255a: 4b57 ldr r3, [pc, #348] ; (80026b8 ) - 800255c: 7a5a ldrb r2, [r3, #9] - 800255e: 4b56 ldr r3, [pc, #344] ; (80026b8 ) - 8002560: 7b5b ldrb r3, [r3, #13] - 8002562: 429a cmp r2, r3 - 8002564: d017 beq.n 8002596 + 800260a: 4b57 ldr r3, [pc, #348] ; (8002768 ) + 800260c: 7a5a ldrb r2, [r3, #9] + 800260e: 4b56 ldr r3, [pc, #344] ; (8002768 ) + 8002610: 7b5b ldrb r3, [r3, #13] + 8002612: 429a cmp r2, r3 + 8002614: d017 beq.n 8002646 { if(moto.moto1b>moto.moto1b_) - 8002566: 4b54 ldr r3, [pc, #336] ; (80026b8 ) - 8002568: 7a5a ldrb r2, [r3, #9] - 800256a: 4b53 ldr r3, [pc, #332] ; (80026b8 ) - 800256c: 7b5b ldrb r3, [r3, #13] - 800256e: 429a cmp r2, r3 - 8002570: d905 bls.n 800257e + 8002616: 4b54 ldr r3, [pc, #336] ; (8002768 ) + 8002618: 7a5a ldrb r2, [r3, #9] + 800261a: 4b53 ldr r3, [pc, #332] ; (8002768 ) + 800261c: 7b5b ldrb r3, [r3, #13] + 800261e: 429a cmp r2, r3 + 8002620: d905 bls.n 800262e { moto.moto1b_++; - 8002572: 4b51 ldr r3, [pc, #324] ; (80026b8 ) - 8002574: 7b5b ldrb r3, [r3, #13] - 8002576: 3301 adds r3, #1 - 8002578: b2da uxtb r2, r3 - 800257a: 4b4f ldr r3, [pc, #316] ; (80026b8 ) - 800257c: 735a strb r2, [r3, #13] + 8002622: 4b51 ldr r3, [pc, #324] ; (8002768 ) + 8002624: 7b5b ldrb r3, [r3, #13] + 8002626: 3301 adds r3, #1 + 8002628: b2da uxtb r2, r3 + 800262a: 4b4f ldr r3, [pc, #316] ; (8002768 ) + 800262c: 735a strb r2, [r3, #13] } if(moto.moto1b) - 8002580: 7a5a ldrb r2, [r3, #9] - 8002582: 4b4d ldr r3, [pc, #308] ; (80026b8 ) - 8002584: 7b5b ldrb r3, [r3, #13] - 8002586: 429a cmp r2, r3 - 8002588: d205 bcs.n 8002596 + 800262e: 4b4e ldr r3, [pc, #312] ; (8002768 ) + 8002630: 7a5a ldrb r2, [r3, #9] + 8002632: 4b4d ldr r3, [pc, #308] ; (8002768 ) + 8002634: 7b5b ldrb r3, [r3, #13] + 8002636: 429a cmp r2, r3 + 8002638: d205 bcs.n 8002646 { moto.moto1b_--; - 800258a: 4b4b ldr r3, [pc, #300] ; (80026b8 ) - 800258c: 7b5b ldrb r3, [r3, #13] - 800258e: 3b01 subs r3, #1 - 8002590: b2da uxtb r2, r3 - 8002592: 4b49 ldr r3, [pc, #292] ; (80026b8 ) - 8002594: 735a strb r2, [r3, #13] + 800263a: 4b4b ldr r3, [pc, #300] ; (8002768 ) + 800263c: 7b5b ldrb r3, [r3, #13] + 800263e: 3b01 subs r3, #1 + 8002640: b2da uxtb r2, r3 + 8002642: 4b49 ldr r3, [pc, #292] ; (8002768 ) + 8002644: 735a strb r2, [r3, #13] } } if(moto.moto2a!=moto.moto2a_) - 8002596: 4b48 ldr r3, [pc, #288] ; (80026b8 ) - 8002598: 7a9a ldrb r2, [r3, #10] - 800259a: 4b47 ldr r3, [pc, #284] ; (80026b8 ) - 800259c: 7b9b ldrb r3, [r3, #14] - 800259e: 429a cmp r2, r3 - 80025a0: d017 beq.n 80025d2 + 8002646: 4b48 ldr r3, [pc, #288] ; (8002768 ) + 8002648: 7a9a ldrb r2, [r3, #10] + 800264a: 4b47 ldr r3, [pc, #284] ; (8002768 ) + 800264c: 7b9b ldrb r3, [r3, #14] + 800264e: 429a cmp r2, r3 + 8002650: d017 beq.n 8002682 { if(moto.moto2a>moto.moto2a_) - 80025a2: 4b45 ldr r3, [pc, #276] ; (80026b8 ) - 80025a4: 7a9a ldrb r2, [r3, #10] - 80025a6: 4b44 ldr r3, [pc, #272] ; (80026b8 ) - 80025a8: 7b9b ldrb r3, [r3, #14] - 80025aa: 429a cmp r2, r3 - 80025ac: d905 bls.n 80025ba + 8002652: 4b45 ldr r3, [pc, #276] ; (8002768 ) + 8002654: 7a9a ldrb r2, [r3, #10] + 8002656: 4b44 ldr r3, [pc, #272] ; (8002768 ) + 8002658: 7b9b ldrb r3, [r3, #14] + 800265a: 429a cmp r2, r3 + 800265c: d905 bls.n 800266a { moto.moto2a_++; - 80025ae: 4b42 ldr r3, [pc, #264] ; (80026b8 ) - 80025b0: 7b9b ldrb r3, [r3, #14] - 80025b2: 3301 adds r3, #1 - 80025b4: b2da uxtb r2, r3 - 80025b6: 4b40 ldr r3, [pc, #256] ; (80026b8 ) - 80025b8: 739a strb r2, [r3, #14] + 800265e: 4b42 ldr r3, [pc, #264] ; (8002768 ) + 8002660: 7b9b ldrb r3, [r3, #14] + 8002662: 3301 adds r3, #1 + 8002664: b2da uxtb r2, r3 + 8002666: 4b40 ldr r3, [pc, #256] ; (8002768 ) + 8002668: 739a strb r2, [r3, #14] } if(moto.moto2a) - 80025bc: 7a9a ldrb r2, [r3, #10] - 80025be: 4b3e ldr r3, [pc, #248] ; (80026b8 ) - 80025c0: 7b9b ldrb r3, [r3, #14] - 80025c2: 429a cmp r2, r3 - 80025c4: d205 bcs.n 80025d2 + 800266a: 4b3f ldr r3, [pc, #252] ; (8002768 ) + 800266c: 7a9a ldrb r2, [r3, #10] + 800266e: 4b3e ldr r3, [pc, #248] ; (8002768 ) + 8002670: 7b9b ldrb r3, [r3, #14] + 8002672: 429a cmp r2, r3 + 8002674: d205 bcs.n 8002682 { moto.moto2a_--; - 80025c6: 4b3c ldr r3, [pc, #240] ; (80026b8 ) - 80025c8: 7b9b ldrb r3, [r3, #14] - 80025ca: 3b01 subs r3, #1 - 80025cc: b2da uxtb r2, r3 - 80025ce: 4b3a ldr r3, [pc, #232] ; (80026b8 ) - 80025d0: 739a strb r2, [r3, #14] + 8002676: 4b3c ldr r3, [pc, #240] ; (8002768 ) + 8002678: 7b9b ldrb r3, [r3, #14] + 800267a: 3b01 subs r3, #1 + 800267c: b2da uxtb r2, r3 + 800267e: 4b3a ldr r3, [pc, #232] ; (8002768 ) + 8002680: 739a strb r2, [r3, #14] } } if(moto.moto2b!=moto.moto2b_) - 80025d2: 4b39 ldr r3, [pc, #228] ; (80026b8 ) - 80025d4: 7ada ldrb r2, [r3, #11] - 80025d6: 4b38 ldr r3, [pc, #224] ; (80026b8 ) - 80025d8: 7bdb ldrb r3, [r3, #15] - 80025da: 429a cmp r2, r3 - 80025dc: d017 beq.n 800260e + 8002682: 4b39 ldr r3, [pc, #228] ; (8002768 ) + 8002684: 7ada ldrb r2, [r3, #11] + 8002686: 4b38 ldr r3, [pc, #224] ; (8002768 ) + 8002688: 7bdb ldrb r3, [r3, #15] + 800268a: 429a cmp r2, r3 + 800268c: d017 beq.n 80026be { if(moto.moto2b>moto.moto2b_) - 80025de: 4b36 ldr r3, [pc, #216] ; (80026b8 ) - 80025e0: 7ada ldrb r2, [r3, #11] - 80025e2: 4b35 ldr r3, [pc, #212] ; (80026b8 ) - 80025e4: 7bdb ldrb r3, [r3, #15] - 80025e6: 429a cmp r2, r3 - 80025e8: d905 bls.n 80025f6 + 800268e: 4b36 ldr r3, [pc, #216] ; (8002768 ) + 8002690: 7ada ldrb r2, [r3, #11] + 8002692: 4b35 ldr r3, [pc, #212] ; (8002768 ) + 8002694: 7bdb ldrb r3, [r3, #15] + 8002696: 429a cmp r2, r3 + 8002698: d905 bls.n 80026a6 { moto.moto2b_++; - 80025ea: 4b33 ldr r3, [pc, #204] ; (80026b8 ) - 80025ec: 7bdb ldrb r3, [r3, #15] - 80025ee: 3301 adds r3, #1 - 80025f0: b2da uxtb r2, r3 - 80025f2: 4b31 ldr r3, [pc, #196] ; (80026b8 ) - 80025f4: 73da strb r2, [r3, #15] + 800269a: 4b33 ldr r3, [pc, #204] ; (8002768 ) + 800269c: 7bdb ldrb r3, [r3, #15] + 800269e: 3301 adds r3, #1 + 80026a0: b2da uxtb r2, r3 + 80026a2: 4b31 ldr r3, [pc, #196] ; (8002768 ) + 80026a4: 73da strb r2, [r3, #15] } if(moto.moto2b) - 80025f8: 7ada ldrb r2, [r3, #11] - 80025fa: 4b2f ldr r3, [pc, #188] ; (80026b8 ) - 80025fc: 7bdb ldrb r3, [r3, #15] - 80025fe: 429a cmp r2, r3 - 8002600: d205 bcs.n 800260e + 80026a6: 4b30 ldr r3, [pc, #192] ; (8002768 ) + 80026a8: 7ada ldrb r2, [r3, #11] + 80026aa: 4b2f ldr r3, [pc, #188] ; (8002768 ) + 80026ac: 7bdb ldrb r3, [r3, #15] + 80026ae: 429a cmp r2, r3 + 80026b0: d205 bcs.n 80026be { moto.moto2b_--; - 8002602: 4b2d ldr r3, [pc, #180] ; (80026b8 ) - 8002604: 7bdb ldrb r3, [r3, #15] - 8002606: 3b01 subs r3, #1 - 8002608: b2da uxtb r2, r3 - 800260a: 4b2b ldr r3, [pc, #172] ; (80026b8 ) - 800260c: 73da strb r2, [r3, #15] + 80026b2: 4b2d ldr r3, [pc, #180] ; (8002768 ) + 80026b4: 7bdb ldrb r3, [r3, #15] + 80026b6: 3b01 subs r3, #1 + 80026b8: b2da uxtb r2, r3 + 80026ba: 4b2b ldr r3, [pc, #172] ; (8002768 ) + 80026bc: 73da strb r2, [r3, #15] moto.pwm_run++; - 800260e: 4b2a ldr r3, [pc, #168] ; (80026b8 ) - 8002610: 685b ldr r3, [r3, #4] - 8002612: 1c5a adds r2, r3, #1 - 8002614: 4b28 ldr r3, [pc, #160] ; (80026b8 ) - 8002616: 605a str r2, [r3, #4] + 80026be: 4b2a ldr r3, [pc, #168] ; (8002768 ) + 80026c0: 685b ldr r3, [r3, #4] + 80026c2: 1c5a adds r2, r3, #1 + 80026c4: 4b28 ldr r3, [pc, #160] ; (8002768 ) + 80026c6: 605a str r2, [r3, #4] if(moto.pwm_run==10) - 8002618: 4b27 ldr r3, [pc, #156] ; (80026b8 ) - 800261a: 685b ldr r3, [r3, #4] - 800261c: 2b0a cmp r3, #10 - 800261e: d102 bne.n 8002626 + 80026c8: 4b27 ldr r3, [pc, #156] ; (8002768 ) + 80026ca: 685b ldr r3, [r3, #4] + 80026cc: 2b0a cmp r3, #10 + 80026ce: d102 bne.n 80026d6 { moto.pwm_run=0; - 8002620: 4b25 ldr r3, [pc, #148] ; (80026b8 ) - 8002622: 2200 movs r2, #0 - 8002624: 605a str r2, [r3, #4] + 80026d0: 4b25 ldr r3, [pc, #148] ; (8002768 ) + 80026d2: 2200 movs r2, #0 + 80026d4: 605a str r2, [r3, #4] } if(moto.pwm_run) - 8002628: 685b ldr r3, [r3, #4] - 800262a: 4a23 ldr r2, [pc, #140] ; (80026b8 ) - 800262c: 7b12 ldrb r2, [r2, #12] - 800262e: 4293 cmp r3, r2 - 8002630: da05 bge.n 800263e + 80026d6: 4b24 ldr r3, [pc, #144] ; (8002768 ) + 80026d8: 685b ldr r3, [r3, #4] + 80026da: 4a23 ldr r2, [pc, #140] ; (8002768 ) + 80026dc: 7b12 ldrb r2, [r2, #12] + 80026de: 4293 cmp r3, r2 + 80026e0: da05 bge.n 80026ee { dis_buff.moto1a=1; - 8002632: 4b22 ldr r3, [pc, #136] ; (80026bc ) - 8002634: 7a1a ldrb r2, [r3, #8] - 8002636: 2120 movs r1, #32 - 8002638: 430a orrs r2, r1 - 800263a: 721a strb r2, [r3, #8] - 800263c: e004 b.n 8002648 + 80026e2: 4b22 ldr r3, [pc, #136] ; (800276c ) + 80026e4: 7a1a ldrb r2, [r3, #8] + 80026e6: 2120 movs r1, #32 + 80026e8: 430a orrs r2, r1 + 80026ea: 721a strb r2, [r3, #8] + 80026ec: e004 b.n 80026f8 }else { dis_buff.moto1a=0; - 800263e: 4b1f ldr r3, [pc, #124] ; (80026bc ) - 8002640: 7a1a ldrb r2, [r3, #8] - 8002642: 2120 movs r1, #32 - 8002644: 438a bics r2, r1 - 8002646: 721a strb r2, [r3, #8] + 80026ee: 4b1f ldr r3, [pc, #124] ; (800276c ) + 80026f0: 7a1a ldrb r2, [r3, #8] + 80026f2: 2120 movs r1, #32 + 80026f4: 438a bics r2, r1 + 80026f6: 721a strb r2, [r3, #8] } if(moto.pwm_run) - 800264a: 685b ldr r3, [r3, #4] - 800264c: 4a1a ldr r2, [pc, #104] ; (80026b8 ) - 800264e: 7b52 ldrb r2, [r2, #13] - 8002650: 4293 cmp r3, r2 - 8002652: da05 bge.n 8002660 + 80026f8: 4b1b ldr r3, [pc, #108] ; (8002768 ) + 80026fa: 685b ldr r3, [r3, #4] + 80026fc: 4a1a ldr r2, [pc, #104] ; (8002768 ) + 80026fe: 7b52 ldrb r2, [r2, #13] + 8002700: 4293 cmp r3, r2 + 8002702: da05 bge.n 8002710 { dis_buff.moto1b=1; - 8002654: 4b19 ldr r3, [pc, #100] ; (80026bc ) - 8002656: 7a1a ldrb r2, [r3, #8] - 8002658: 2140 movs r1, #64 ; 0x40 - 800265a: 430a orrs r2, r1 - 800265c: 721a strb r2, [r3, #8] - 800265e: e004 b.n 800266a + 8002704: 4b19 ldr r3, [pc, #100] ; (800276c ) + 8002706: 7a1a ldrb r2, [r3, #8] + 8002708: 2140 movs r1, #64 ; 0x40 + 800270a: 430a orrs r2, r1 + 800270c: 721a strb r2, [r3, #8] + 800270e: e004 b.n 800271a }else { dis_buff.moto1b=0; - 8002660: 4b16 ldr r3, [pc, #88] ; (80026bc ) - 8002662: 7a1a ldrb r2, [r3, #8] - 8002664: 2140 movs r1, #64 ; 0x40 - 8002666: 438a bics r2, r1 - 8002668: 721a strb r2, [r3, #8] + 8002710: 4b16 ldr r3, [pc, #88] ; (800276c ) + 8002712: 7a1a ldrb r2, [r3, #8] + 8002714: 2140 movs r1, #64 ; 0x40 + 8002716: 438a bics r2, r1 + 8002718: 721a strb r2, [r3, #8] } if(moto.pwm_run) - 800266c: 685b ldr r3, [r3, #4] - 800266e: 4a12 ldr r2, [pc, #72] ; (80026b8 ) - 8002670: 7b92 ldrb r2, [r2, #14] - 8002672: 4293 cmp r3, r2 - 8002674: da06 bge.n 8002684 + 800271a: 4b13 ldr r3, [pc, #76] ; (8002768 ) + 800271c: 685b ldr r3, [r3, #4] + 800271e: 4a12 ldr r2, [pc, #72] ; (8002768 ) + 8002720: 7b92 ldrb r2, [r2, #14] + 8002722: 4293 cmp r3, r2 + 8002724: da06 bge.n 8002734 { dis_buff.moto2a=1; - 8002676: 4b11 ldr r3, [pc, #68] ; (80026bc ) - 8002678: 7a1a ldrb r2, [r3, #8] - 800267a: 2180 movs r1, #128 ; 0x80 - 800267c: 4249 negs r1, r1 - 800267e: 430a orrs r2, r1 - 8002680: 721a strb r2, [r3, #8] - 8002682: e004 b.n 800268e + 8002726: 4b11 ldr r3, [pc, #68] ; (800276c ) + 8002728: 7a1a ldrb r2, [r3, #8] + 800272a: 2180 movs r1, #128 ; 0x80 + 800272c: 4249 negs r1, r1 + 800272e: 430a orrs r2, r1 + 8002730: 721a strb r2, [r3, #8] + 8002732: e004 b.n 800273e }else { dis_buff.moto2a=0; - 8002684: 4b0d ldr r3, [pc, #52] ; (80026bc ) - 8002686: 7a1a ldrb r2, [r3, #8] - 8002688: 217f movs r1, #127 ; 0x7f - 800268a: 400a ands r2, r1 - 800268c: 721a strb r2, [r3, #8] + 8002734: 4b0d ldr r3, [pc, #52] ; (800276c ) + 8002736: 7a1a ldrb r2, [r3, #8] + 8002738: 217f movs r1, #127 ; 0x7f + 800273a: 400a ands r2, r1 + 800273c: 721a strb r2, [r3, #8] } if(moto.pwm_run) - 8002690: 685b ldr r3, [r3, #4] - 8002692: 4a09 ldr r2, [pc, #36] ; (80026b8 ) - 8002694: 7bd2 ldrb r2, [r2, #15] - 8002696: 4293 cmp r3, r2 - 8002698: da05 bge.n 80026a6 + 800273e: 4b0a ldr r3, [pc, #40] ; (8002768 ) + 8002740: 685b ldr r3, [r3, #4] + 8002742: 4a09 ldr r2, [pc, #36] ; (8002768 ) + 8002744: 7bd2 ldrb r2, [r2, #15] + 8002746: 4293 cmp r3, r2 + 8002748: da05 bge.n 8002756 { dis_buff.moto2b=1; - 800269a: 4b08 ldr r3, [pc, #32] ; (80026bc ) - 800269c: 7a5a ldrb r2, [r3, #9] - 800269e: 2101 movs r1, #1 - 80026a0: 430a orrs r2, r1 - 80026a2: 725a strb r2, [r3, #9] + 800274a: 4b08 ldr r3, [pc, #32] ; (800276c ) + 800274c: 7a5a ldrb r2, [r3, #9] + 800274e: 2101 movs r1, #1 + 8002750: 430a orrs r2, r1 + 8002752: 725a strb r2, [r3, #9] }else { dis_buff.moto2b=0; } } - 80026a4: e004 b.n 80026b0 + 8002754: e004 b.n 8002760 dis_buff.moto2b=0; - 80026a6: 4b05 ldr r3, [pc, #20] ; (80026bc ) - 80026a8: 7a5a ldrb r2, [r3, #9] - 80026aa: 2101 movs r1, #1 - 80026ac: 438a bics r2, r1 - 80026ae: 725a strb r2, [r3, #9] + 8002756: 4b05 ldr r3, [pc, #20] ; (800276c ) + 8002758: 7a5a ldrb r2, [r3, #9] + 800275a: 2101 movs r1, #1 + 800275c: 438a bics r2, r1 + 800275e: 725a strb r2, [r3, #9] } - 80026b0: 46c0 nop ; (mov r8, r8) - 80026b2: 46bd mov sp, r7 - 80026b4: bd80 pop {r7, pc} - 80026b6: 46c0 nop ; (mov r8, r8) - 80026b8: 200000dc .word 0x200000dc - 80026bc: 2000007c .word 0x2000007c + 8002760: 46c0 nop ; (mov r8, r8) + 8002762: 46bd mov sp, r7 + 8002764: bd80 pop {r7, pc} + 8002766: 46c0 nop ; (mov r8, r8) + 8002768: 200000f4 .word 0x200000f4 + 800276c: 20000028 .word 0x20000028 -080026c0 : +08002770 : void my_code() { - 80026c0: b580 push {r7, lr} - 80026c2: b086 sub sp, #24 - 80026c4: af00 add r7, sp, #0 + 8002770: b580 push {r7, lr} + 8002772: b086 sub sp, #24 + 8002774: af00 add r7, sp, #0 uint32_t runtime=0,move=0; - 80026c6: 2300 movs r3, #0 - 80026c8: 617b str r3, [r7, #20] - 80026ca: 2300 movs r3, #0 - 80026cc: 613b str r3, [r7, #16] + 8002776: 2300 movs r3, #0 + 8002778: 617b str r3, [r7, #20] + 800277a: 2300 movs r3, #0 + 800277c: 613b str r3, [r7, #16] uint8_t mode=0,overload_mode=0; - 80026ce: 230f movs r3, #15 - 80026d0: 18fb adds r3, r7, r3 - 80026d2: 2200 movs r2, #0 - 80026d4: 701a strb r2, [r3, #0] - 80026d6: 230e movs r3, #14 - 80026d8: 18fb adds r3, r7, r3 - 80026da: 2200 movs r2, #0 - 80026dc: 701a strb r2, [r3, #0] - uint16_t adc,adc_times=0; - 80026de: 003b movs r3, r7 - 80026e0: 2200 movs r2, #0 - 80026e2: 801a strh r2, [r3, #0] - uint32_t adc_l; + 800277e: 230f movs r3, #15 + 8002780: 18fb adds r3, r7, r3 + 8002782: 2200 movs r2, #0 + 8002784: 701a strb r2, [r3, #0] + 8002786: 230e movs r3, #14 + 8002788: 18fb adds r3, r7, r3 + 800278a: 2200 movs r2, #0 + 800278c: 701a strb r2, [r3, #0] + uint16_t overload_times=0; - 80026e4: 230c movs r3, #12 - 80026e6: 18fb adds r3, r7, r3 - 80026e8: 2200 movs r2, #0 - 80026ea: 801a strh r2, [r3, #0] + 800278e: 230c movs r3, #12 + 8002790: 18fb adds r3, r7, r3 + 8002792: 2200 movs r2, #0 + 8002794: 801a strh r2, [r3, #0] long countdown=0; - 80026ec: 2300 movs r3, #0 - 80026ee: 60bb str r3, [r7, #8] + 8002796: 2300 movs r3, #0 + 8002798: 60bb str r3, [r7, #8] long countdown_set=15000; - 80026f0: 4be3 ldr r3, [pc, #908] ; (8002a80 ) - 80026f2: 607b str r3, [r7, #4] + 800279a: 4be5 ldr r3, [pc, #916] ; (8002b30 ) + 800279c: 607b str r3, [r7, #4] dis_buff.d_num[0]=8; - 80026f4: 4be3 ldr r3, [pc, #908] ; (8002a84 ) - 80026f6: 2208 movs r2, #8 - 80026f8: 701a strb r2, [r3, #0] + 800279e: 4be5 ldr r3, [pc, #916] ; (8002b34 ) + 80027a0: 2208 movs r2, #8 + 80027a2: 701a strb r2, [r3, #0] dis_buff.d_num[1]=8; - 80026fa: 4be2 ldr r3, [pc, #904] ; (8002a84 ) - 80026fc: 2208 movs r2, #8 - 80026fe: 705a strb r2, [r3, #1] + 80027a4: 4be3 ldr r3, [pc, #908] ; (8002b34 ) + 80027a6: 2208 movs r2, #8 + 80027a8: 705a strb r2, [r3, #1] dis_buff.d_num[2]=8; - 8002700: 4be0 ldr r3, [pc, #896] ; (8002a84 ) - 8002702: 2208 movs r2, #8 - 8002704: 709a strb r2, [r3, #2] + 80027aa: 4be2 ldr r3, [pc, #904] ; (8002b34 ) + 80027ac: 2208 movs r2, #8 + 80027ae: 709a strb r2, [r3, #2] dis_buff.d_num[3]=8; - 8002706: 4bdf ldr r3, [pc, #892] ; (8002a84 ) - 8002708: 2208 movs r2, #8 - 800270a: 70da strb r2, [r3, #3] + 80027b0: 4be0 ldr r3, [pc, #896] ; (8002b34 ) + 80027b2: 2208 movs r2, #8 + 80027b4: 70da strb r2, [r3, #3] dis_buff.moto1a=0; - 800270c: 4bdd ldr r3, [pc, #884] ; (8002a84 ) - 800270e: 7a1a ldrb r2, [r3, #8] - 8002710: 2120 movs r1, #32 - 8002712: 438a bics r2, r1 - 8002714: 721a strb r2, [r3, #8] + 80027b6: 4bdf ldr r3, [pc, #892] ; (8002b34 ) + 80027b8: 7a1a ldrb r2, [r3, #8] + 80027ba: 2120 movs r1, #32 + 80027bc: 438a bics r2, r1 + 80027be: 721a strb r2, [r3, #8] dis_buff.moto1b=0; - 8002716: 4bdb ldr r3, [pc, #876] ; (8002a84 ) - 8002718: 7a1a ldrb r2, [r3, #8] - 800271a: 2140 movs r1, #64 ; 0x40 - 800271c: 438a bics r2, r1 - 800271e: 721a strb r2, [r3, #8] + 80027c0: 4bdc ldr r3, [pc, #880] ; (8002b34 ) + 80027c2: 7a1a ldrb r2, [r3, #8] + 80027c4: 2140 movs r1, #64 ; 0x40 + 80027c6: 438a bics r2, r1 + 80027c8: 721a strb r2, [r3, #8] dis_buff.moto2a=0; - 8002720: 4bd8 ldr r3, [pc, #864] ; (8002a84 ) - 8002722: 7a1a ldrb r2, [r3, #8] - 8002724: 217f movs r1, #127 ; 0x7f - 8002726: 400a ands r2, r1 - 8002728: 721a strb r2, [r3, #8] + 80027ca: 4bda ldr r3, [pc, #872] ; (8002b34 ) + 80027cc: 7a1a ldrb r2, [r3, #8] + 80027ce: 217f movs r1, #127 ; 0x7f + 80027d0: 400a ands r2, r1 + 80027d2: 721a strb r2, [r3, #8] dis_buff.moto2b=0; - 800272a: 4bd6 ldr r3, [pc, #856] ; (8002a84 ) - 800272c: 7a5a ldrb r2, [r3, #9] - 800272e: 2101 movs r1, #1 - 8002730: 438a bics r2, r1 - 8002732: 725a strb r2, [r3, #9] + 80027d4: 4bd7 ldr r3, [pc, #860] ; (8002b34 ) + 80027d6: 7a5a ldrb r2, [r3, #9] + 80027d8: 2101 movs r1, #1 + 80027da: 438a bics r2, r1 + 80027dc: 725a strb r2, [r3, #9] -moto.moto_run=0; - 8002734: 4bd4 ldr r3, [pc, #848] ; (8002a88 ) - 8002736: 2200 movs r2, #0 - 8002738: 601a str r2, [r3, #0] -moto.pwm_run=0; - 800273a: 4bd3 ldr r3, [pc, #844] ; (8002a88 ) - 800273c: 2200 movs r2, #0 - 800273e: 605a str r2, [r3, #4] -moto.moto1a=0; - 8002740: 4bd1 ldr r3, [pc, #836] ; (8002a88 ) - 8002742: 2200 movs r2, #0 - 8002744: 721a strb r2, [r3, #8] -moto.moto1b=0; - 8002746: 4bd0 ldr r3, [pc, #832] ; (8002a88 ) - 8002748: 2200 movs r2, #0 - 800274a: 725a strb r2, [r3, #9] -moto.moto2a=0; - 800274c: 4bce ldr r3, [pc, #824] ; (8002a88 ) - 800274e: 2200 movs r2, #0 - 8002750: 729a strb r2, [r3, #10] -moto.moto2b=0; - 8002752: 4bcd ldr r3, [pc, #820] ; (8002a88 ) - 8002754: 2200 movs r2, #0 - 8002756: 72da strb r2, [r3, #11] + moto.moto_run=0; + 80027de: 4bd6 ldr r3, [pc, #856] ; (8002b38 ) + 80027e0: 2200 movs r2, #0 + 80027e2: 601a str r2, [r3, #0] + moto.pwm_run=0; + 80027e4: 4bd4 ldr r3, [pc, #848] ; (8002b38 ) + 80027e6: 2200 movs r2, #0 + 80027e8: 605a str r2, [r3, #4] + moto.moto1a=0; + 80027ea: 4bd3 ldr r3, [pc, #844] ; (8002b38 ) + 80027ec: 2200 movs r2, #0 + 80027ee: 721a strb r2, [r3, #8] + moto.moto1b=0; + 80027f0: 4bd1 ldr r3, [pc, #836] ; (8002b38 ) + 80027f2: 2200 movs r2, #0 + 80027f4: 725a strb r2, [r3, #9] + moto.moto2a=0; + 80027f6: 4bd0 ldr r3, [pc, #832] ; (8002b38 ) + 80027f8: 2200 movs r2, #0 + 80027fa: 729a strb r2, [r3, #10] + moto.moto2b=0; + 80027fc: 4bce ldr r3, [pc, #824] ; (8002b38 ) + 80027fe: 2200 movs r2, #0 + 8002800: 72da strb r2, [r3, #11] -moto.moto1a_=0; - 8002758: 4bcb ldr r3, [pc, #812] ; (8002a88 ) - 800275a: 2200 movs r2, #0 - 800275c: 731a strb r2, [r3, #12] -moto.moto1b_=0; - 800275e: 4bca ldr r3, [pc, #808] ; (8002a88 ) - 8002760: 2200 movs r2, #0 - 8002762: 735a strb r2, [r3, #13] -moto.moto2a_=0; - 8002764: 4bc8 ldr r3, [pc, #800] ; (8002a88 ) - 8002766: 2200 movs r2, #0 - 8002768: 739a strb r2, [r3, #14] -moto.moto2b_=0; - 800276a: 4bc7 ldr r3, [pc, #796] ; (8002a88 ) - 800276c: 2200 movs r2, #0 - 800276e: 73da strb r2, [r3, #15] + moto.moto1a_=0; + 8002802: 4bcd ldr r3, [pc, #820] ; (8002b38 ) + 8002804: 2200 movs r2, #0 + 8002806: 731a strb r2, [r3, #12] + moto.moto1b_=0; + 8002808: 4bcb ldr r3, [pc, #812] ; (8002b38 ) + 800280a: 2200 movs r2, #0 + 800280c: 735a strb r2, [r3, #13] + moto.moto2a_=0; + 800280e: 4bca ldr r3, [pc, #808] ; (8002b38 ) + 8002810: 2200 movs r2, #0 + 8002812: 739a strb r2, [r3, #14] + moto.moto2b_=0; + 8002814: 4bc8 ldr r3, [pc, #800] ; (8002b38 ) + 8002816: 2200 movs r2, #0 + 8002818: 73da strb r2, [r3, #15] + + HT1621_Init(); + 800281a: f7ff fd7f bl 800231c while(1) { //*adc读取 并计滤波 并计算温度*/ ///*获取两个通道*/ for(char a=0;a<2;a++) - 8002770: 1cfb adds r3, r7, #3 - 8002772: 2200 movs r2, #0 - 8002774: 701a strb r2, [r3, #0] - 8002776: e025 b.n 80027c4 + 800281e: 1cfb adds r3, r7, #3 + 8002820: 2200 movs r2, #0 + 8002822: 701a strb r2, [r3, #0] + 8002824: e025 b.n 8002872 { HAL_ADC_Start(&hadc); - 8002778: 4bc4 ldr r3, [pc, #784] ; (8002a8c ) - 800277a: 0018 movs r0, r3 - 800277c: f7fe f9c6 bl 8000b0c + 8002826: 4bc5 ldr r3, [pc, #788] ; (8002b3c ) + 8002828: 0018 movs r0, r3 + 800282a: f7fe f96f bl 8000b0c while(HAL_ADC_PollForConversion(&hadc,0xffff)!=HAL_OK); - 8002780: 46c0 nop ; (mov r8, r8) - 8002782: 4ac3 ldr r2, [pc, #780] ; (8002a90 ) - 8002784: 4bc1 ldr r3, [pc, #772] ; (8002a8c ) - 8002786: 0011 movs r1, r2 - 8002788: 0018 movs r0, r3 - 800278a: f7fe fa53 bl 8000c34 - 800278e: 1e03 subs r3, r0, #0 - 8002790: d1f7 bne.n 8002782 + 800282e: 46c0 nop ; (mov r8, r8) + 8002830: 4ac3 ldr r2, [pc, #780] ; (8002b40 ) + 8002832: 4bc2 ldr r3, [pc, #776] ; (8002b3c ) + 8002834: 0011 movs r1, r2 + 8002836: 0018 movs r0, r3 + 8002838: f7fe f9fc bl 8000c34 + 800283c: 1e03 subs r3, r0, #0 + 800283e: d1f7 bne.n 8002830 ADCC.adc_filtering[a]+=HAL_ADC_GetValue(&hadc); //把读到的值加到滤波缓存 - 8002792: 4bbe ldr r3, [pc, #760] ; (8002a8c ) - 8002794: 0018 movs r0, r3 - 8002796: f7fe fae5 bl 8000d64 - 800279a: 0001 movs r1, r0 - 800279c: 1cfb adds r3, r7, #3 - 800279e: 781b ldrb r3, [r3, #0] - 80027a0: 4abc ldr r2, [pc, #752] ; (8002a94 ) - 80027a2: 009b lsls r3, r3, #2 - 80027a4: 18d3 adds r3, r2, r3 - 80027a6: 3304 adds r3, #4 - 80027a8: 681a ldr r2, [r3, #0] - 80027aa: 1cfb adds r3, r7, #3 - 80027ac: 781b ldrb r3, [r3, #0] - 80027ae: 188a adds r2, r1, r2 - 80027b0: 49b8 ldr r1, [pc, #736] ; (8002a94 ) - 80027b2: 009b lsls r3, r3, #2 - 80027b4: 18cb adds r3, r1, r3 - 80027b6: 3304 adds r3, #4 - 80027b8: 601a str r2, [r3, #0] + 8002840: 4bbe ldr r3, [pc, #760] ; (8002b3c ) + 8002842: 0018 movs r0, r3 + 8002844: f7fe fa8e bl 8000d64 + 8002848: 0001 movs r1, r0 + 800284a: 1cfb adds r3, r7, #3 + 800284c: 781b ldrb r3, [r3, #0] + 800284e: 4abd ldr r2, [pc, #756] ; (8002b44 ) + 8002850: 009b lsls r3, r3, #2 + 8002852: 18d3 adds r3, r2, r3 + 8002854: 3304 adds r3, #4 + 8002856: 681a ldr r2, [r3, #0] + 8002858: 1cfb adds r3, r7, #3 + 800285a: 781b ldrb r3, [r3, #0] + 800285c: 188a adds r2, r1, r2 + 800285e: 49b9 ldr r1, [pc, #740] ; (8002b44 ) + 8002860: 009b lsls r3, r3, #2 + 8002862: 18cb adds r3, r1, r3 + 8002864: 3304 adds r3, #4 + 8002866: 601a str r2, [r3, #0] for(char a=0;a<2;a++) - 80027ba: 1cfb adds r3, r7, #3 - 80027bc: 781a ldrb r2, [r3, #0] - 80027be: 1cfb adds r3, r7, #3 - 80027c0: 3201 adds r2, #1 - 80027c2: 701a strb r2, [r3, #0] - 80027c4: 1cfb adds r3, r7, #3 - 80027c6: 781b ldrb r3, [r3, #0] - 80027c8: 2b01 cmp r3, #1 - 80027ca: d9d5 bls.n 8002778 + 8002868: 1cfb adds r3, r7, #3 + 800286a: 781a ldrb r2, [r3, #0] + 800286c: 1cfb adds r3, r7, #3 + 800286e: 3201 adds r2, #1 + 8002870: 701a strb r2, [r3, #0] + 8002872: 1cfb adds r3, r7, #3 + 8002874: 781b ldrb r3, [r3, #0] + 8002876: 2b01 cmp r3, #1 + 8002878: d9d5 bls.n 8002826 } HAL_ADC_Stop(&hadc); - 80027cc: 4baf ldr r3, [pc, #700] ; (8002a8c ) - 80027ce: 0018 movs r0, r3 - 80027d0: f7fe f9f0 bl 8000bb4 + 800287a: 4bb0 ldr r3, [pc, #704] ; (8002b3c ) + 800287c: 0018 movs r0, r3 + 800287e: f7fe f999 bl 8000bb4 ///*开始滤波*/ ADCC.filtering_times+=1; //每采样加一次记一次 - 80027d4: 4baf ldr r3, [pc, #700] ; (8002a94 ) - 80027d6: 681b ldr r3, [r3, #0] - 80027d8: 1c5a adds r2, r3, #1 - 80027da: 4bae ldr r3, [pc, #696] ; (8002a94 ) - 80027dc: 601a str r2, [r3, #0] + 8002882: 4bb0 ldr r3, [pc, #704] ; (8002b44 ) + 8002884: 681b ldr r3, [r3, #0] + 8002886: 1c5a adds r2, r3, #1 + 8002888: 4bae ldr r3, [pc, #696] ; (8002b44 ) + 800288a: 601a str r2, [r3, #0] if(ADCC.filtering_times==set_filtering_times) //当达到设定的滤波采样次数 - 80027de: 4bad ldr r3, [pc, #692] ; (8002a94 ) - 80027e0: 681b ldr r3, [r3, #0] - 80027e2: 2b32 cmp r3, #50 ; 0x32 - 80027e4: d11c bne.n 8002820 + 800288c: 4bad ldr r3, [pc, #692] ; (8002b44 ) + 800288e: 681b ldr r3, [r3, #0] + 8002890: 2b32 cmp r3, #50 ; 0x32 + 8002892: d11c bne.n 80028ce { ADCC.filtering_times=0; - 80027e6: 4bab ldr r3, [pc, #684] ; (8002a94 ) - 80027e8: 2200 movs r2, #0 - 80027ea: 601a str r2, [r3, #0] + 8002894: 4bab ldr r3, [pc, #684] ; (8002b44 ) + 8002896: 2200 movs r2, #0 + 8002898: 601a str r2, [r3, #0] ADCC.adc_value[0]=ADCC.adc_filtering[0]/set_filtering_times; //就除于采样次数 - 80027ec: 4ba9 ldr r3, [pc, #676] ; (8002a94 ) - 80027ee: 685b ldr r3, [r3, #4] - 80027f0: 2132 movs r1, #50 ; 0x32 - 80027f2: 0018 movs r0, r3 - 80027f4: f7fd fc88 bl 8000108 <__udivsi3> - 80027f8: 0003 movs r3, r0 - 80027fa: 001a movs r2, r3 - 80027fc: 4ba5 ldr r3, [pc, #660] ; (8002a94 ) - 80027fe: 60da str r2, [r3, #12] + 800289a: 4baa ldr r3, [pc, #680] ; (8002b44 ) + 800289c: 685b ldr r3, [r3, #4] + 800289e: 2132 movs r1, #50 ; 0x32 + 80028a0: 0018 movs r0, r3 + 80028a2: f7fd fc31 bl 8000108 <__udivsi3> + 80028a6: 0003 movs r3, r0 + 80028a8: 001a movs r2, r3 + 80028aa: 4ba6 ldr r3, [pc, #664] ; (8002b44 ) + 80028ac: 60da str r2, [r3, #12] ADCC.adc_filtering[0]=0; - 8002800: 4ba4 ldr r3, [pc, #656] ; (8002a94 ) - 8002802: 2200 movs r2, #0 - 8002804: 605a str r2, [r3, #4] + 80028ae: 4ba5 ldr r3, [pc, #660] ; (8002b44 ) + 80028b0: 2200 movs r2, #0 + 80028b2: 605a str r2, [r3, #4] ADCC.adc_value[1]=ADCC.adc_filtering[1]/set_filtering_times; - 8002806: 4ba3 ldr r3, [pc, #652] ; (8002a94 ) - 8002808: 689b ldr r3, [r3, #8] - 800280a: 2132 movs r1, #50 ; 0x32 - 800280c: 0018 movs r0, r3 - 800280e: f7fd fc7b bl 8000108 <__udivsi3> - 8002812: 0003 movs r3, r0 - 8002814: 001a movs r2, r3 - 8002816: 4b9f ldr r3, [pc, #636] ; (8002a94 ) - 8002818: 611a str r2, [r3, #16] + 80028b4: 4ba3 ldr r3, [pc, #652] ; (8002b44 ) + 80028b6: 689b ldr r3, [r3, #8] + 80028b8: 2132 movs r1, #50 ; 0x32 + 80028ba: 0018 movs r0, r3 + 80028bc: f7fd fc24 bl 8000108 <__udivsi3> + 80028c0: 0003 movs r3, r0 + 80028c2: 001a movs r2, r3 + 80028c4: 4b9f ldr r3, [pc, #636] ; (8002b44 ) + 80028c6: 611a str r2, [r3, #16] ADCC.adc_filtering[1]=0; - 800281a: 4b9e ldr r3, [pc, #632] ; (8002a94 ) - 800281c: 2200 movs r2, #0 - 800281e: 609a str r2, [r3, #8] + 80028c8: 4b9e ldr r3, [pc, #632] ; (8002b44 ) + 80028ca: 2200 movs r2, #0 + 80028cc: 609a str r2, [r3, #8] } switch(mode) - 8002820: 230f movs r3, #15 - 8002822: 18fb adds r3, r7, r3 - 8002824: 781b ldrb r3, [r3, #0] - 8002826: 2b05 cmp r3, #5 - 8002828: d900 bls.n 800282c - 800282a: e38a b.n 8002f42 - 800282c: 009a lsls r2, r3, #2 - 800282e: 4b9a ldr r3, [pc, #616] ; (8002a98 ) - 8002830: 18d3 adds r3, r2, r3 - 8002832: 681b ldr r3, [r3, #0] - 8002834: 469f mov pc, r3 + 80028ce: 230f movs r3, #15 + 80028d0: 18fb adds r3, r7, r3 + 80028d2: 781b ldrb r3, [r3, #0] + 80028d4: 2b05 cmp r3, #5 + 80028d6: d900 bls.n 80028da + 80028d8: e38b b.n 8002ff2 + 80028da: 009a lsls r2, r3, #2 + 80028dc: 4b9a ldr r3, [pc, #616] ; (8002b48 ) + 80028de: 18d3 adds r3, r2, r3 + 80028e0: 681b ldr r3, [r3, #0] + 80028e2: 469f mov pc, r3 { case 0: //Startup if(HAL_GetTick()>move) - 8002836: f7fe f81f bl 8000878 - 800283a: 0002 movs r2, r0 - 800283c: 693b ldr r3, [r7, #16] - 800283e: 4293 cmp r3, r2 - 8002840: d300 bcc.n 8002844 - 8002842: e375 b.n 8002f30 + 80028e4: f7fd ffc8 bl 8000878 + 80028e8: 0002 movs r2, r0 + 80028ea: 693b ldr r3, [r7, #16] + 80028ec: 4293 cmp r3, r2 + 80028ee: d300 bcc.n 80028f2 + 80028f0: e376 b.n 8002fe0 { move=HAL_GetTick()+100; - 8002844: f7fe f818 bl 8000878 - 8002848: 0003 movs r3, r0 - 800284a: 3364 adds r3, #100 ; 0x64 - 800284c: 613b str r3, [r7, #16] + 80028f2: f7fd ffc1 bl 8000878 + 80028f6: 0003 movs r3, r0 + 80028f8: 3364 adds r3, #100 ; 0x64 + 80028fa: 613b str r3, [r7, #16] countdown-=100; - 800284e: 68bb ldr r3, [r7, #8] - 8002850: 3b64 subs r3, #100 ; 0x64 - 8002852: 60bb str r3, [r7, #8] + 80028fc: 68bb ldr r3, [r7, #8] + 80028fe: 3b64 subs r3, #100 ; 0x64 + 8002900: 60bb str r3, [r7, #8] if(countdown<0) - 8002854: 68bb ldr r3, [r7, #8] - 8002856: 2b00 cmp r3, #0 - 8002858: da03 bge.n 8002862 + 8002902: 68bb ldr r3, [r7, #8] + 8002904: 2b00 cmp r3, #0 + 8002906: da03 bge.n 8002910 { mode=1; - 800285a: 230f movs r3, #15 - 800285c: 18fb adds r3, r7, r3 - 800285e: 2201 movs r2, #1 - 8002860: 701a strb r2, [r3, #0] + 8002908: 230f movs r3, #15 + 800290a: 18fb adds r3, r7, r3 + 800290c: 2201 movs r2, #1 + 800290e: 701a strb r2, [r3, #0] } dis_buff.d_num[0]=((countdown/100)%10); - 8002862: 68bb ldr r3, [r7, #8] - 8002864: 2164 movs r1, #100 ; 0x64 - 8002866: 0018 movs r0, r3 - 8002868: f7fd fcd8 bl 800021c <__divsi3> - 800286c: 0003 movs r3, r0 - 800286e: 210a movs r1, #10 - 8002870: 0018 movs r0, r3 - 8002872: f7fd fdb9 bl 80003e8 <__aeabi_idivmod> - 8002876: 000b movs r3, r1 - 8002878: b2da uxtb r2, r3 - 800287a: 4b82 ldr r3, [pc, #520] ; (8002a84 ) - 800287c: 701a strb r2, [r3, #0] + 8002910: 68bb ldr r3, [r7, #8] + 8002912: 2164 movs r1, #100 ; 0x64 + 8002914: 0018 movs r0, r3 + 8002916: f7fd fc81 bl 800021c <__divsi3> + 800291a: 0003 movs r3, r0 + 800291c: 210a movs r1, #10 + 800291e: 0018 movs r0, r3 + 8002920: f7fd fd62 bl 80003e8 <__aeabi_idivmod> + 8002924: 000b movs r3, r1 + 8002926: b2da uxtb r2, r3 + 8002928: 4b82 ldr r3, [pc, #520] ; (8002b34 ) + 800292a: 701a strb r2, [r3, #0] dis_buff.d_num[1]=((countdown/100)%10); - 800287e: 68bb ldr r3, [r7, #8] - 8002880: 2164 movs r1, #100 ; 0x64 - 8002882: 0018 movs r0, r3 - 8002884: f7fd fcca bl 800021c <__divsi3> - 8002888: 0003 movs r3, r0 - 800288a: 210a movs r1, #10 - 800288c: 0018 movs r0, r3 - 800288e: f7fd fdab bl 80003e8 <__aeabi_idivmod> - 8002892: 000b movs r3, r1 - 8002894: b2da uxtb r2, r3 - 8002896: 4b7b ldr r3, [pc, #492] ; (8002a84 ) - 8002898: 705a strb r2, [r3, #1] + 800292c: 68bb ldr r3, [r7, #8] + 800292e: 2164 movs r1, #100 ; 0x64 + 8002930: 0018 movs r0, r3 + 8002932: f7fd fc73 bl 800021c <__divsi3> + 8002936: 0003 movs r3, r0 + 8002938: 210a movs r1, #10 + 800293a: 0018 movs r0, r3 + 800293c: f7fd fd54 bl 80003e8 <__aeabi_idivmod> + 8002940: 000b movs r3, r1 + 8002942: b2da uxtb r2, r3 + 8002944: 4b7b ldr r3, [pc, #492] ; (8002b34 ) + 8002946: 705a strb r2, [r3, #1] dis_buff.d_num[2]=((countdown/100)%10); - 800289a: 68bb ldr r3, [r7, #8] - 800289c: 2164 movs r1, #100 ; 0x64 - 800289e: 0018 movs r0, r3 - 80028a0: f7fd fcbc bl 800021c <__divsi3> - 80028a4: 0003 movs r3, r0 - 80028a6: 210a movs r1, #10 - 80028a8: 0018 movs r0, r3 - 80028aa: f7fd fd9d bl 80003e8 <__aeabi_idivmod> - 80028ae: 000b movs r3, r1 - 80028b0: b2da uxtb r2, r3 - 80028b2: 4b74 ldr r3, [pc, #464] ; (8002a84 ) - 80028b4: 709a strb r2, [r3, #2] + 8002948: 68bb ldr r3, [r7, #8] + 800294a: 2164 movs r1, #100 ; 0x64 + 800294c: 0018 movs r0, r3 + 800294e: f7fd fc65 bl 800021c <__divsi3> + 8002952: 0003 movs r3, r0 + 8002954: 210a movs r1, #10 + 8002956: 0018 movs r0, r3 + 8002958: f7fd fd46 bl 80003e8 <__aeabi_idivmod> + 800295c: 000b movs r3, r1 + 800295e: b2da uxtb r2, r3 + 8002960: 4b74 ldr r3, [pc, #464] ; (8002b34 ) + 8002962: 709a strb r2, [r3, #2] dis_buff.d_num[3]=((countdown/100)%10); - 80028b6: 68bb ldr r3, [r7, #8] - 80028b8: 2164 movs r1, #100 ; 0x64 - 80028ba: 0018 movs r0, r3 - 80028bc: f7fd fcae bl 800021c <__divsi3> - 80028c0: 0003 movs r3, r0 - 80028c2: 210a movs r1, #10 - 80028c4: 0018 movs r0, r3 - 80028c6: f7fd fd8f bl 80003e8 <__aeabi_idivmod> - 80028ca: 000b movs r3, r1 - 80028cc: b2da uxtb r2, r3 - 80028ce: 4b6d ldr r3, [pc, #436] ; (8002a84 ) - 80028d0: 70da strb r2, [r3, #3] + 8002964: 68bb ldr r3, [r7, #8] + 8002966: 2164 movs r1, #100 ; 0x64 + 8002968: 0018 movs r0, r3 + 800296a: f7fd fc57 bl 800021c <__divsi3> + 800296e: 0003 movs r3, r0 + 8002970: 210a movs r1, #10 + 8002972: 0018 movs r0, r3 + 8002974: f7fd fd38 bl 80003e8 <__aeabi_idivmod> + 8002978: 000b movs r3, r1 + 800297a: b2da uxtb r2, r3 + 800297c: 4b6d ldr r3, [pc, #436] ; (8002b34 ) + 800297e: 70da strb r2, [r3, #3] dis_buff.dot1=countdown>>3; - 80028d2: 68bb ldr r3, [r7, #8] - 80028d4: 10db asrs r3, r3, #3 - 80028d6: 1c1a adds r2, r3, #0 - 80028d8: 2301 movs r3, #1 - 80028da: 4013 ands r3, r2 - 80028dc: b2da uxtb r2, r3 - 80028de: 4b69 ldr r3, [pc, #420] ; (8002a84 ) - 80028e0: 2101 movs r1, #1 - 80028e2: 400a ands r2, r1 - 80028e4: 0010 movs r0, r2 - 80028e6: 7a1a ldrb r2, [r3, #8] - 80028e8: 2101 movs r1, #1 - 80028ea: 438a bics r2, r1 - 80028ec: 1c11 adds r1, r2, #0 - 80028ee: 1c02 adds r2, r0, #0 - 80028f0: 430a orrs r2, r1 - 80028f2: 721a strb r2, [r3, #8] + 8002980: 68bb ldr r3, [r7, #8] + 8002982: 10db asrs r3, r3, #3 + 8002984: 1c1a adds r2, r3, #0 + 8002986: 2301 movs r3, #1 + 8002988: 4013 ands r3, r2 + 800298a: b2da uxtb r2, r3 + 800298c: 4b69 ldr r3, [pc, #420] ; (8002b34 ) + 800298e: 2101 movs r1, #1 + 8002990: 400a ands r2, r1 + 8002992: 0010 movs r0, r2 + 8002994: 7a1a ldrb r2, [r3, #8] + 8002996: 2101 movs r1, #1 + 8002998: 438a bics r2, r1 + 800299a: 1c11 adds r1, r2, #0 + 800299c: 1c02 adds r2, r0, #0 + 800299e: 430a orrs r2, r1 + 80029a0: 721a strb r2, [r3, #8] dis_buff.dot2=countdown>>4; - 80028f4: 68bb ldr r3, [r7, #8] - 80028f6: 111b asrs r3, r3, #4 - 80028f8: 1c1a adds r2, r3, #0 - 80028fa: 2301 movs r3, #1 - 80028fc: 4013 ands r3, r2 - 80028fe: b2da uxtb r2, r3 - 8002900: 4b60 ldr r3, [pc, #384] ; (8002a84 ) - 8002902: 2101 movs r1, #1 - 8002904: 400a ands r2, r1 - 8002906: 1890 adds r0, r2, r2 - 8002908: 7a1a ldrb r2, [r3, #8] - 800290a: 2102 movs r1, #2 - 800290c: 438a bics r2, r1 - 800290e: 1c11 adds r1, r2, #0 - 8002910: 1c02 adds r2, r0, #0 - 8002912: 430a orrs r2, r1 - 8002914: 721a strb r2, [r3, #8] + 80029a2: 68bb ldr r3, [r7, #8] + 80029a4: 111b asrs r3, r3, #4 + 80029a6: 1c1a adds r2, r3, #0 + 80029a8: 2301 movs r3, #1 + 80029aa: 4013 ands r3, r2 + 80029ac: b2da uxtb r2, r3 + 80029ae: 4b61 ldr r3, [pc, #388] ; (8002b34 ) + 80029b0: 2101 movs r1, #1 + 80029b2: 400a ands r2, r1 + 80029b4: 1890 adds r0, r2, r2 + 80029b6: 7a1a ldrb r2, [r3, #8] + 80029b8: 2102 movs r1, #2 + 80029ba: 438a bics r2, r1 + 80029bc: 1c11 adds r1, r2, #0 + 80029be: 1c02 adds r2, r0, #0 + 80029c0: 430a orrs r2, r1 + 80029c2: 721a strb r2, [r3, #8] dis_buff.dot3=countdown>>5; - 8002916: 68bb ldr r3, [r7, #8] - 8002918: 115b asrs r3, r3, #5 - 800291a: 1c1a adds r2, r3, #0 - 800291c: 2301 movs r3, #1 - 800291e: 4013 ands r3, r2 - 8002920: b2da uxtb r2, r3 - 8002922: 4b58 ldr r3, [pc, #352] ; (8002a84 ) - 8002924: 2101 movs r1, #1 - 8002926: 400a ands r2, r1 - 8002928: 0090 lsls r0, r2, #2 - 800292a: 7a1a ldrb r2, [r3, #8] - 800292c: 2104 movs r1, #4 - 800292e: 438a bics r2, r1 - 8002930: 1c11 adds r1, r2, #0 - 8002932: 1c02 adds r2, r0, #0 - 8002934: 430a orrs r2, r1 - 8002936: 721a strb r2, [r3, #8] + 80029c4: 68bb ldr r3, [r7, #8] + 80029c6: 115b asrs r3, r3, #5 + 80029c8: 1c1a adds r2, r3, #0 + 80029ca: 2301 movs r3, #1 + 80029cc: 4013 ands r3, r2 + 80029ce: b2da uxtb r2, r3 + 80029d0: 4b58 ldr r3, [pc, #352] ; (8002b34 ) + 80029d2: 2101 movs r1, #1 + 80029d4: 400a ands r2, r1 + 80029d6: 0090 lsls r0, r2, #2 + 80029d8: 7a1a ldrb r2, [r3, #8] + 80029da: 2104 movs r1, #4 + 80029dc: 438a bics r2, r1 + 80029de: 1c11 adds r1, r2, #0 + 80029e0: 1c02 adds r2, r0, #0 + 80029e2: 430a orrs r2, r1 + 80029e4: 721a strb r2, [r3, #8] dis_buff.dot4=countdown>>6; - 8002938: 68bb ldr r3, [r7, #8] - 800293a: 119b asrs r3, r3, #6 - 800293c: 1c1a adds r2, r3, #0 - 800293e: 2301 movs r3, #1 - 8002940: 4013 ands r3, r2 - 8002942: b2da uxtb r2, r3 - 8002944: 4b4f ldr r3, [pc, #316] ; (8002a84 ) - 8002946: 2101 movs r1, #1 - 8002948: 400a ands r2, r1 - 800294a: 00d0 lsls r0, r2, #3 - 800294c: 7a1a ldrb r2, [r3, #8] - 800294e: 2108 movs r1, #8 - 8002950: 438a bics r2, r1 - 8002952: 1c11 adds r1, r2, #0 - 8002954: 1c02 adds r2, r0, #0 - 8002956: 430a orrs r2, r1 - 8002958: 721a strb r2, [r3, #8] + 80029e6: 68bb ldr r3, [r7, #8] + 80029e8: 119b asrs r3, r3, #6 + 80029ea: 1c1a adds r2, r3, #0 + 80029ec: 2301 movs r3, #1 + 80029ee: 4013 ands r3, r2 + 80029f0: b2da uxtb r2, r3 + 80029f2: 4b50 ldr r3, [pc, #320] ; (8002b34 ) + 80029f4: 2101 movs r1, #1 + 80029f6: 400a ands r2, r1 + 80029f8: 00d0 lsls r0, r2, #3 + 80029fa: 7a1a ldrb r2, [r3, #8] + 80029fc: 2108 movs r1, #8 + 80029fe: 438a bics r2, r1 + 8002a00: 1c11 adds r1, r2, #0 + 8002a02: 1c02 adds r2, r0, #0 + 8002a04: 430a orrs r2, r1 + 8002a06: 721a strb r2, [r3, #8] } break; - 800295a: e2e9 b.n 8002f30 + 8002a08: e2ea b.n 8002fe0 case 1: //standby moto.moto1a=0; - 800295c: 4b4a ldr r3, [pc, #296] ; (8002a88 ) - 800295e: 2200 movs r2, #0 - 8002960: 721a strb r2, [r3, #8] + 8002a0a: 4b4b ldr r3, [pc, #300] ; (8002b38 ) + 8002a0c: 2200 movs r2, #0 + 8002a0e: 721a strb r2, [r3, #8] moto.moto1b=0; - 8002962: 4b49 ldr r3, [pc, #292] ; (8002a88 ) - 8002964: 2200 movs r2, #0 - 8002966: 725a strb r2, [r3, #9] + 8002a10: 4b49 ldr r3, [pc, #292] ; (8002b38 ) + 8002a12: 2200 movs r2, #0 + 8002a14: 725a strb r2, [r3, #9] moto.moto2a=0; - 8002968: 4b47 ldr r3, [pc, #284] ; (8002a88 ) - 800296a: 2200 movs r2, #0 - 800296c: 729a strb r2, [r3, #10] + 8002a16: 4b48 ldr r3, [pc, #288] ; (8002b38 ) + 8002a18: 2200 movs r2, #0 + 8002a1a: 729a strb r2, [r3, #10] moto.moto2b=0; - 800296e: 4b46 ldr r3, [pc, #280] ; (8002a88 ) - 8002970: 2200 movs r2, #0 - 8002972: 72da strb r2, [r3, #11] + 8002a1c: 4b46 ldr r3, [pc, #280] ; (8002b38 ) + 8002a1e: 2200 movs r2, #0 + 8002a20: 72da strb r2, [r3, #11] if(HAL_GetTick()>runtime) - 8002974: f7fd ff80 bl 8000878 - 8002978: 0002 movs r2, r0 - 800297a: 697b ldr r3, [r7, #20] - 800297c: 4293 cmp r3, r2 - 800297e: d217 bcs.n 80029b0 + 8002a22: f7fd ff29 bl 8000878 + 8002a26: 0002 movs r2, r0 + 8002a28: 697b ldr r3, [r7, #20] + 8002a2a: 4293 cmp r3, r2 + 8002a2c: d217 bcs.n 8002a5e { runtime+=1000; - 8002980: 697b ldr r3, [r7, #20] - 8002982: 22fa movs r2, #250 ; 0xfa - 8002984: 0092 lsls r2, r2, #2 - 8002986: 4694 mov ip, r2 - 8002988: 4463 add r3, ip - 800298a: 617b str r3, [r7, #20] + 8002a2e: 697b ldr r3, [r7, #20] + 8002a30: 22fa movs r2, #250 ; 0xfa + 8002a32: 0092 lsls r2, r2, #2 + 8002a34: 4694 mov ip, r2 + 8002a36: 4463 add r3, ip + 8002a38: 617b str r3, [r7, #20] if(dis_buff.led_run==1) - 800298c: 4b3d ldr r3, [pc, #244] ; (8002a84 ) - 800298e: 7a1b ldrb r3, [r3, #8] - 8002990: 2210 movs r2, #16 - 8002992: 4013 ands r3, r2 - 8002994: b2db uxtb r3, r3 - 8002996: 2b00 cmp r3, #0 - 8002998: d005 beq.n 80029a6 + 8002a3a: 4b3e ldr r3, [pc, #248] ; (8002b34 ) + 8002a3c: 7a1b ldrb r3, [r3, #8] + 8002a3e: 2210 movs r2, #16 + 8002a40: 4013 ands r3, r2 + 8002a42: b2db uxtb r3, r3 + 8002a44: 2b00 cmp r3, #0 + 8002a46: d005 beq.n 8002a54 { dis_buff.led_run=0; - 800299a: 4b3a ldr r3, [pc, #232] ; (8002a84 ) - 800299c: 7a1a ldrb r2, [r3, #8] - 800299e: 2110 movs r1, #16 - 80029a0: 438a bics r2, r1 - 80029a2: 721a strb r2, [r3, #8] - 80029a4: e004 b.n 80029b0 + 8002a48: 4b3a ldr r3, [pc, #232] ; (8002b34 ) + 8002a4a: 7a1a ldrb r2, [r3, #8] + 8002a4c: 2110 movs r1, #16 + 8002a4e: 438a bics r2, r1 + 8002a50: 721a strb r2, [r3, #8] + 8002a52: e004 b.n 8002a5e }else { dis_buff.led_run=1; - 80029a6: 4b37 ldr r3, [pc, #220] ; (8002a84 ) - 80029a8: 7a1a ldrb r2, [r3, #8] - 80029aa: 2110 movs r1, #16 - 80029ac: 430a orrs r2, r1 - 80029ae: 721a strb r2, [r3, #8] + 8002a54: 4b37 ldr r3, [pc, #220] ; (8002b34 ) + 8002a56: 7a1a ldrb r2, [r3, #8] + 8002a58: 2110 movs r1, #16 + 8002a5a: 430a orrs r2, r1 + 8002a5c: 721a strb r2, [r3, #8] } } dis_buff.d_num[0]=0xff; - 80029b0: 4b34 ldr r3, [pc, #208] ; (8002a84 ) - 80029b2: 22ff movs r2, #255 ; 0xff - 80029b4: 701a strb r2, [r3, #0] + 8002a5e: 4b35 ldr r3, [pc, #212] ; (8002b34 ) + 8002a60: 22ff movs r2, #255 ; 0xff + 8002a62: 701a strb r2, [r3, #0] dis_buff.d_num[1]=0xff; - 80029b6: 4b33 ldr r3, [pc, #204] ; (8002a84 ) - 80029b8: 22ff movs r2, #255 ; 0xff - 80029ba: 705a strb r2, [r3, #1] + 8002a64: 4b33 ldr r3, [pc, #204] ; (8002b34 ) + 8002a66: 22ff movs r2, #255 ; 0xff + 8002a68: 705a strb r2, [r3, #1] dis_buff.d_num[2]=0xff; - 80029bc: 4b31 ldr r3, [pc, #196] ; (8002a84 ) - 80029be: 22ff movs r2, #255 ; 0xff - 80029c0: 709a strb r2, [r3, #2] + 8002a6a: 4b32 ldr r3, [pc, #200] ; (8002b34 ) + 8002a6c: 22ff movs r2, #255 ; 0xff + 8002a6e: 709a strb r2, [r3, #2] dis_buff.d_num[3]=0xff; - 80029c2: 4b30 ldr r3, [pc, #192] ; (8002a84 ) - 80029c4: 22ff movs r2, #255 ; 0xff - 80029c6: 70da strb r2, [r3, #3] + 8002a70: 4b30 ldr r3, [pc, #192] ; (8002b34 ) + 8002a72: 22ff movs r2, #255 ; 0xff + 8002a74: 70da strb r2, [r3, #3] dis_buff.dot1=0; - 80029c8: 4b2e ldr r3, [pc, #184] ; (8002a84 ) - 80029ca: 7a1a ldrb r2, [r3, #8] - 80029cc: 2101 movs r1, #1 - 80029ce: 438a bics r2, r1 - 80029d0: 721a strb r2, [r3, #8] + 8002a76: 4b2f ldr r3, [pc, #188] ; (8002b34 ) + 8002a78: 7a1a ldrb r2, [r3, #8] + 8002a7a: 2101 movs r1, #1 + 8002a7c: 438a bics r2, r1 + 8002a7e: 721a strb r2, [r3, #8] dis_buff.dot2=0; - 80029d2: 4b2c ldr r3, [pc, #176] ; (8002a84 ) - 80029d4: 7a1a ldrb r2, [r3, #8] - 80029d6: 2102 movs r1, #2 - 80029d8: 438a bics r2, r1 - 80029da: 721a strb r2, [r3, #8] + 8002a80: 4b2c ldr r3, [pc, #176] ; (8002b34 ) + 8002a82: 7a1a ldrb r2, [r3, #8] + 8002a84: 2102 movs r1, #2 + 8002a86: 438a bics r2, r1 + 8002a88: 721a strb r2, [r3, #8] dis_buff.dot3=0; - 80029dc: 4b29 ldr r3, [pc, #164] ; (8002a84 ) - 80029de: 7a1a ldrb r2, [r3, #8] - 80029e0: 2104 movs r1, #4 - 80029e2: 438a bics r2, r1 - 80029e4: 721a strb r2, [r3, #8] + 8002a8a: 4b2a ldr r3, [pc, #168] ; (8002b34 ) + 8002a8c: 7a1a ldrb r2, [r3, #8] + 8002a8e: 2104 movs r1, #4 + 8002a90: 438a bics r2, r1 + 8002a92: 721a strb r2, [r3, #8] dis_buff.dot4=0; - 80029e6: 4b27 ldr r3, [pc, #156] ; (8002a84 ) - 80029e8: 7a1a ldrb r2, [r3, #8] - 80029ea: 2108 movs r1, #8 - 80029ec: 438a bics r2, r1 - 80029ee: 721a strb r2, [r3, #8] + 8002a94: 4b27 ldr r3, [pc, #156] ; (8002b34 ) + 8002a96: 7a1a ldrb r2, [r3, #8] + 8002a98: 2108 movs r1, #8 + 8002a9a: 438a bics r2, r1 + 8002a9c: 721a strb r2, [r3, #8] overload_times=0; - 80029f0: 230c movs r3, #12 - 80029f2: 18fb adds r3, r7, r3 - 80029f4: 2200 movs r2, #0 - 80029f6: 801a strh r2, [r3, #0] + 8002a9e: 230c movs r3, #12 + 8002aa0: 18fb adds r3, r7, r3 + 8002aa2: 2200 movs r2, #0 + 8002aa4: 801a strh r2, [r3, #0] if(key2.code!=0) - 80029f8: 4b28 ldr r3, [pc, #160] ; (8002a9c ) - 80029fa: 681b ldr r3, [r3, #0] - 80029fc: 2b00 cmp r3, #0 - 80029fe: d005 beq.n 8002a0c + 8002aa6: 4b29 ldr r3, [pc, #164] ; (8002b4c ) + 8002aa8: 681b ldr r3, [r3, #0] + 8002aaa: 2b00 cmp r3, #0 + 8002aac: d005 beq.n 8002aba { mode=2; - 8002a00: 230f movs r3, #15 - 8002a02: 18fb adds r3, r7, r3 - 8002a04: 2202 movs r2, #2 - 8002a06: 701a strb r2, [r3, #0] + 8002aae: 230f movs r3, #15 + 8002ab0: 18fb adds r3, r7, r3 + 8002ab2: 2202 movs r2, #2 + 8002ab4: 701a strb r2, [r3, #0] countdown=countdown_set; - 8002a08: 687b ldr r3, [r7, #4] - 8002a0a: 60bb str r3, [r7, #8] + 8002ab6: 687b ldr r3, [r7, #4] + 8002ab8: 60bb str r3, [r7, #8] } if(key3.code!=0) - 8002a0c: 4b24 ldr r3, [pc, #144] ; (8002aa0 ) - 8002a0e: 681b ldr r3, [r3, #0] - 8002a10: 2b00 cmp r3, #0 - 8002a12: d005 beq.n 8002a20 + 8002aba: 4b25 ldr r3, [pc, #148] ; (8002b50 ) + 8002abc: 681b ldr r3, [r3, #0] + 8002abe: 2b00 cmp r3, #0 + 8002ac0: d005 beq.n 8002ace { mode=3; - 8002a14: 230f movs r3, #15 - 8002a16: 18fb adds r3, r7, r3 - 8002a18: 2203 movs r2, #3 - 8002a1a: 701a strb r2, [r3, #0] - countdown=countdown_set; - 8002a1c: 687b ldr r3, [r7, #4] - 8002a1e: 60bb str r3, [r7, #8] - } - if(key1.code!=0) - 8002a20: 4b20 ldr r3, [pc, #128] ; (8002aa4 ) - 8002a22: 681b ldr r3, [r3, #0] - 8002a24: 2b00 cmp r3, #0 - 8002a26: d100 bne.n 8002a2a - 8002a28: e284 b.n 8002f34 - { - mode=4; - 8002a2a: 230f movs r3, #15 - 8002a2c: 18fb adds r3, r7, r3 - 8002a2e: 2204 movs r2, #4 - 8002a30: 701a strb r2, [r3, #0] - countdown=10000; - 8002a32: 4b1d ldr r3, [pc, #116] ; (8002aa8 ) - 8002a34: 60bb str r3, [r7, #8] - } - break; - 8002a36: e27d b.n 8002f34 - case 2: - moto.moto1a=10; - 8002a38: 4b13 ldr r3, [pc, #76] ; (8002a88 ) - 8002a3a: 220a movs r2, #10 - 8002a3c: 721a strb r2, [r3, #8] - moto.moto1b=0; - 8002a3e: 4b12 ldr r3, [pc, #72] ; (8002a88 ) - 8002a40: 2200 movs r2, #0 - 8002a42: 725a strb r2, [r3, #9] - moto.moto2a=10; - 8002a44: 4b10 ldr r3, [pc, #64] ; (8002a88 ) - 8002a46: 220a movs r2, #10 - 8002a48: 729a strb r2, [r3, #10] - moto.moto2b=0; - 8002a4a: 4b0f ldr r3, [pc, #60] ; (8002a88 ) - 8002a4c: 2200 movs r2, #0 - 8002a4e: 72da strb r2, [r3, #11] - if(HAL_GetTick()>move) - 8002a50: f7fd ff12 bl 8000878 - 8002a54: 0002 movs r2, r0 - 8002a56: 693b ldr r3, [r7, #16] - 8002a58: 4293 cmp r3, r2 - 8002a5a: d236 bcs.n 8002aca - { - move=HAL_GetTick()+100; - 8002a5c: f7fd ff0c bl 8000878 - 8002a60: 0003 movs r3, r0 - 8002a62: 3364 adds r3, #100 ; 0x64 - 8002a64: 613b str r3, [r7, #16] - if(dis_buff.led_run==1) - 8002a66: 4b07 ldr r3, [pc, #28] ; (8002a84 ) - 8002a68: 7a1b ldrb r3, [r3, #8] - 8002a6a: 2210 movs r2, #16 - 8002a6c: 4013 ands r3, r2 - 8002a6e: b2db uxtb r3, r3 - 8002a70: 2b00 cmp r3, #0 - 8002a72: d01b beq.n 8002aac - { - dis_buff.led_run=0; - 8002a74: 4b03 ldr r3, [pc, #12] ; (8002a84 ) - 8002a76: 7a1a ldrb r2, [r3, #8] - 8002a78: 2110 movs r1, #16 - 8002a7a: 438a bics r2, r1 - 8002a7c: 721a strb r2, [r3, #8] - 8002a7e: e01a b.n 8002ab6 - 8002a80: 00003a98 .word 0x00003a98 - 8002a84: 2000007c .word 0x2000007c - 8002a88: 200000dc .word 0x200000dc - 8002a8c: 20000028 .word 0x20000028 - 8002a90: 0000ffff .word 0x0000ffff - 8002a94: 200000b8 .word 0x200000b8 - 8002a98: 08003090 .word 0x08003090 - 8002a9c: 200000cc .word 0x200000cc - 8002aa0: 200000a8 .word 0x200000a8 - 8002aa4: 20000088 .word 0x20000088 - 8002aa8: 00002710 .word 0x00002710 - }else - { - dis_buff.led_run=1; - 8002aac: 4bd9 ldr r3, [pc, #868] ; (8002e14 ) - 8002aae: 7a1a ldrb r2, [r3, #8] - 8002ab0: 2110 movs r1, #16 - 8002ab2: 430a orrs r2, r1 - 8002ab4: 721a strb r2, [r3, #8] - } - countdown-=100; - 8002ab6: 68bb ldr r3, [r7, #8] - 8002ab8: 3b64 subs r3, #100 ; 0x64 - 8002aba: 60bb str r3, [r7, #8] - if(countdown<0) - 8002abc: 68bb ldr r3, [r7, #8] - 8002abe: 2b00 cmp r3, #0 - 8002ac0: da03 bge.n 8002aca - { - mode=1; 8002ac2: 230f movs r3, #15 8002ac4: 18fb adds r3, r7, r3 - 8002ac6: 2201 movs r2, #1 + 8002ac6: 2203 movs r2, #3 8002ac8: 701a strb r2, [r3, #0] - } + countdown=countdown_set; + 8002aca: 687b ldr r3, [r7, #4] + 8002acc: 60bb str r3, [r7, #8] } - dis_buff.d_num[3]=(countdown/100)%10; - 8002aca: 68bb ldr r3, [r7, #8] - 8002acc: 2164 movs r1, #100 ; 0x64 - 8002ace: 0018 movs r0, r3 - 8002ad0: f7fd fba4 bl 800021c <__divsi3> - 8002ad4: 0003 movs r3, r0 - 8002ad6: 210a movs r1, #10 - 8002ad8: 0018 movs r0, r3 - 8002ada: f7fd fc85 bl 80003e8 <__aeabi_idivmod> - 8002ade: 000b movs r3, r1 - 8002ae0: b2da uxtb r2, r3 - 8002ae2: 4bcc ldr r3, [pc, #816] ; (8002e14 ) - 8002ae4: 70da strb r2, [r3, #3] - dis_buff.d_num[2]=(countdown/1000)%10; - 8002ae6: 68bb ldr r3, [r7, #8] - 8002ae8: 22fa movs r2, #250 ; 0xfa - 8002aea: 0091 lsls r1, r2, #2 - 8002aec: 0018 movs r0, r3 - 8002aee: f7fd fb95 bl 800021c <__divsi3> - 8002af2: 0003 movs r3, r0 - 8002af4: 210a movs r1, #10 - 8002af6: 0018 movs r0, r3 - 8002af8: f7fd fc76 bl 80003e8 <__aeabi_idivmod> - 8002afc: 000b movs r3, r1 - 8002afe: b2da uxtb r2, r3 - 8002b00: 4bc4 ldr r3, [pc, #784] ; (8002e14 ) - 8002b02: 709a strb r2, [r3, #2] - dis_buff.d_num[1]=((countdown/10000)%10); - 8002b04: 68bb ldr r3, [r7, #8] - 8002b06: 49c4 ldr r1, [pc, #784] ; (8002e18 ) - 8002b08: 0018 movs r0, r3 - 8002b0a: f7fd fb87 bl 800021c <__divsi3> - 8002b0e: 0003 movs r3, r0 - 8002b10: 210a movs r1, #10 - 8002b12: 0018 movs r0, r3 - 8002b14: f7fd fc68 bl 80003e8 <__aeabi_idivmod> - 8002b18: 000b movs r3, r1 - 8002b1a: b2da uxtb r2, r3 - 8002b1c: 4bbd ldr r3, [pc, #756] ; (8002e14 ) - 8002b1e: 705a strb r2, [r3, #1] - dis_buff.d_num[1]=dis_buff.d_num[1]==0?255:dis_buff.d_num[1]; - 8002b20: 4bbc ldr r3, [pc, #752] ; (8002e14 ) - 8002b22: 785b ldrb r3, [r3, #1] - 8002b24: 2b00 cmp r3, #0 - 8002b26: d002 beq.n 8002b2e - 8002b28: 4bba ldr r3, [pc, #744] ; (8002e14 ) - 8002b2a: 785a ldrb r2, [r3, #1] - 8002b2c: e000 b.n 8002b30 - 8002b2e: 22ff movs r2, #255 ; 0xff - 8002b30: 4bb8 ldr r3, [pc, #736] ; (8002e14 ) - 8002b32: 705a strb r2, [r3, #1] - dis_buff.dot3=1; - 8002b34: 4bb7 ldr r3, [pc, #732] ; (8002e14 ) - 8002b36: 7a1a ldrb r2, [r3, #8] - 8002b38: 2104 movs r1, #4 - 8002b3a: 430a orrs r2, r1 - 8002b3c: 721a strb r2, [r3, #8] - - if(key3.code!=0) - 8002b3e: 4bb7 ldr r3, [pc, #732] ; (8002e1c ) - 8002b40: 681b ldr r3, [r3, #0] - 8002b42: 2b00 cmp r3, #0 - 8002b44: d007 beq.n 8002b56 + if(key1.code!=0) + 8002ace: 4b21 ldr r3, [pc, #132] ; (8002b54 ) + 8002ad0: 681b ldr r3, [r3, #0] + 8002ad2: 2b00 cmp r3, #0 + 8002ad4: d100 bne.n 8002ad8 + 8002ad6: e285 b.n 8002fe4 { - mode=3; - 8002b46: 230f movs r3, #15 - 8002b48: 18fb adds r3, r7, r3 - 8002b4a: 2203 movs r2, #3 - 8002b4c: 701a strb r2, [r3, #0] - countdown=countdown_set-countdown; - 8002b4e: 687a ldr r2, [r7, #4] - 8002b50: 68bb ldr r3, [r7, #8] - 8002b52: 1ad3 subs r3, r2, r3 - 8002b54: 60bb str r3, [r7, #8] - } - if(key4.code!=0) - 8002b56: 4bb2 ldr r3, [pc, #712] ; (8002e20 ) - 8002b58: 681b ldr r3, [r3, #0] - 8002b5a: 2b00 cmp r3, #0 - 8002b5c: d003 beq.n 8002b66 - { - mode=1; - 8002b5e: 230f movs r3, #15 - 8002b60: 18fb adds r3, r7, r3 - 8002b62: 2201 movs r2, #1 - 8002b64: 701a strb r2, [r3, #0] - } - if(overload.code!=0) - 8002b66: 4baf ldr r3, [pc, #700] ; (8002e24 ) - 8002b68: 681b ldr r3, [r3, #0] - 8002b6a: 2b00 cmp r3, #0 - 8002b6c: d005 beq.n 8002b7a - { - overload_times+=1; - 8002b6e: 220c movs r2, #12 - 8002b70: 18bb adds r3, r7, r2 - 8002b72: 18ba adds r2, r7, r2 - 8002b74: 8812 ldrh r2, [r2, #0] - 8002b76: 3201 adds r2, #1 - 8002b78: 801a strh r2, [r3, #0] - } - if(overload_times>2) - 8002b7a: 230c movs r3, #12 - 8002b7c: 18fb adds r3, r7, r3 - 8002b7e: 881b ldrh r3, [r3, #0] - 8002b80: 2b02 cmp r3, #2 - 8002b82: d800 bhi.n 8002b86 - 8002b84: e1d8 b.n 8002f38 - { - overload_mode=2; - 8002b86: 230e movs r3, #14 - 8002b88: 18fb adds r3, r7, r3 - 8002b8a: 2202 movs r2, #2 - 8002b8c: 701a strb r2, [r3, #0] - mode=5; - 8002b8e: 230f movs r3, #15 - 8002b90: 18fb adds r3, r7, r3 - 8002b92: 2205 movs r2, #5 - 8002b94: 701a strb r2, [r3, #0] + mode=4; + 8002ad8: 230f movs r3, #15 + 8002ada: 18fb adds r3, r7, r3 + 8002adc: 2204 movs r2, #4 + 8002ade: 701a strb r2, [r3, #0] + countdown=10000; + 8002ae0: 4b1d ldr r3, [pc, #116] ; (8002b58 ) + 8002ae2: 60bb str r3, [r7, #8] } break; - 8002b96: e1cf b.n 8002f38 - case 3: - moto.moto1a=0; - 8002b98: 4ba3 ldr r3, [pc, #652] ; (8002e28 ) - 8002b9a: 2200 movs r2, #0 - 8002b9c: 721a strb r2, [r3, #8] - moto.moto1b=10; - 8002b9e: 4ba2 ldr r3, [pc, #648] ; (8002e28 ) - 8002ba0: 220a movs r2, #10 - 8002ba2: 725a strb r2, [r3, #9] - moto.moto2a=0; - 8002ba4: 4ba0 ldr r3, [pc, #640] ; (8002e28 ) - 8002ba6: 2200 movs r2, #0 - 8002ba8: 729a strb r2, [r3, #10] - moto.moto2b=10; - 8002baa: 4b9f ldr r3, [pc, #636] ; (8002e28 ) - 8002bac: 220a movs r2, #10 - 8002bae: 72da strb r2, [r3, #11] + 8002ae4: e27e b.n 8002fe4 + case 2: + moto.moto1a=10; + 8002ae6: 4b14 ldr r3, [pc, #80] ; (8002b38 ) + 8002ae8: 220a movs r2, #10 + 8002aea: 721a strb r2, [r3, #8] + moto.moto1b=0; + 8002aec: 4b12 ldr r3, [pc, #72] ; (8002b38 ) + 8002aee: 2200 movs r2, #0 + 8002af0: 725a strb r2, [r3, #9] + moto.moto2a=10; + 8002af2: 4b11 ldr r3, [pc, #68] ; (8002b38 ) + 8002af4: 220a movs r2, #10 + 8002af6: 729a strb r2, [r3, #10] + moto.moto2b=0; + 8002af8: 4b0f ldr r3, [pc, #60] ; (8002b38 ) + 8002afa: 2200 movs r2, #0 + 8002afc: 72da strb r2, [r3, #11] if(HAL_GetTick()>move) - 8002bb0: f7fd fe62 bl 8000878 - 8002bb4: 0002 movs r2, r0 - 8002bb6: 693b ldr r3, [r7, #16] - 8002bb8: 4293 cmp r3, r2 - 8002bba: d220 bcs.n 8002bfe + 8002afe: f7fd febb bl 8000878 + 8002b02: 0002 movs r2, r0 + 8002b04: 693b ldr r3, [r7, #16] + 8002b06: 4293 cmp r3, r2 + 8002b08: d237 bcs.n 8002b7a { move=HAL_GetTick()+100; - 8002bbc: f7fd fe5c bl 8000878 - 8002bc0: 0003 movs r3, r0 - 8002bc2: 3364 adds r3, #100 ; 0x64 - 8002bc4: 613b str r3, [r7, #16] + 8002b0a: f7fd feb5 bl 8000878 + 8002b0e: 0003 movs r3, r0 + 8002b10: 3364 adds r3, #100 ; 0x64 + 8002b12: 613b str r3, [r7, #16] if(dis_buff.led_run==1) - 8002bc6: 4b93 ldr r3, [pc, #588] ; (8002e14 ) - 8002bc8: 7a1b ldrb r3, [r3, #8] - 8002bca: 2210 movs r2, #16 - 8002bcc: 4013 ands r3, r2 - 8002bce: b2db uxtb r3, r3 - 8002bd0: 2b00 cmp r3, #0 - 8002bd2: d005 beq.n 8002be0 + 8002b14: 4b07 ldr r3, [pc, #28] ; (8002b34 ) + 8002b16: 7a1b ldrb r3, [r3, #8] + 8002b18: 2210 movs r2, #16 + 8002b1a: 4013 ands r3, r2 + 8002b1c: b2db uxtb r3, r3 + 8002b1e: 2b00 cmp r3, #0 + 8002b20: d01c beq.n 8002b5c { dis_buff.led_run=0; - 8002bd4: 4b8f ldr r3, [pc, #572] ; (8002e14 ) - 8002bd6: 7a1a ldrb r2, [r3, #8] - 8002bd8: 2110 movs r1, #16 - 8002bda: 438a bics r2, r1 - 8002bdc: 721a strb r2, [r3, #8] - 8002bde: e004 b.n 8002bea + 8002b22: 4b04 ldr r3, [pc, #16] ; (8002b34 ) + 8002b24: 7a1a ldrb r2, [r3, #8] + 8002b26: 2110 movs r1, #16 + 8002b28: 438a bics r2, r1 + 8002b2a: 721a strb r2, [r3, #8] + 8002b2c: e01b b.n 8002b66 + 8002b2e: 46c0 nop ; (mov r8, r8) + 8002b30: 00003a98 .word 0x00003a98 + 8002b34: 20000028 .word 0x20000028 + 8002b38: 200000f4 .word 0x200000f4 + 8002b3c: 20000034 .word 0x20000034 + 8002b40: 0000ffff .word 0x0000ffff + 8002b44: 200000d0 .word 0x200000d0 + 8002b48: 08003144 .word 0x08003144 + 8002b4c: 200000e4 .word 0x200000e4 + 8002b50: 200000c0 .word 0x200000c0 + 8002b54: 200000a0 .word 0x200000a0 + 8002b58: 00002710 .word 0x00002710 }else { dis_buff.led_run=1; - 8002be0: 4b8c ldr r3, [pc, #560] ; (8002e14 ) - 8002be2: 7a1a ldrb r2, [r3, #8] - 8002be4: 2110 movs r1, #16 - 8002be6: 430a orrs r2, r1 - 8002be8: 721a strb r2, [r3, #8] + 8002b5c: 4bd9 ldr r3, [pc, #868] ; (8002ec4 ) + 8002b5e: 7a1a ldrb r2, [r3, #8] + 8002b60: 2110 movs r1, #16 + 8002b62: 430a orrs r2, r1 + 8002b64: 721a strb r2, [r3, #8] } countdown-=100; - 8002bea: 68bb ldr r3, [r7, #8] - 8002bec: 3b64 subs r3, #100 ; 0x64 - 8002bee: 60bb str r3, [r7, #8] + 8002b66: 68bb ldr r3, [r7, #8] + 8002b68: 3b64 subs r3, #100 ; 0x64 + 8002b6a: 60bb str r3, [r7, #8] if(countdown<0) - 8002bf0: 68bb ldr r3, [r7, #8] - 8002bf2: 2b00 cmp r3, #0 - 8002bf4: da03 bge.n 8002bfe + 8002b6c: 68bb ldr r3, [r7, #8] + 8002b6e: 2b00 cmp r3, #0 + 8002b70: da03 bge.n 8002b7a { mode=1; - 8002bf6: 230f movs r3, #15 - 8002bf8: 18fb adds r3, r7, r3 - 8002bfa: 2201 movs r2, #1 - 8002bfc: 701a strb r2, [r3, #0] + 8002b72: 230f movs r3, #15 + 8002b74: 18fb adds r3, r7, r3 + 8002b76: 2201 movs r2, #1 + 8002b78: 701a strb r2, [r3, #0] } } dis_buff.d_num[3]=(countdown/100)%10; - 8002bfe: 68bb ldr r3, [r7, #8] - 8002c00: 2164 movs r1, #100 ; 0x64 - 8002c02: 0018 movs r0, r3 - 8002c04: f7fd fb0a bl 800021c <__divsi3> - 8002c08: 0003 movs r3, r0 - 8002c0a: 210a movs r1, #10 - 8002c0c: 0018 movs r0, r3 - 8002c0e: f7fd fbeb bl 80003e8 <__aeabi_idivmod> - 8002c12: 000b movs r3, r1 - 8002c14: b2da uxtb r2, r3 - 8002c16: 4b7f ldr r3, [pc, #508] ; (8002e14 ) - 8002c18: 70da strb r2, [r3, #3] + 8002b7a: 68bb ldr r3, [r7, #8] + 8002b7c: 2164 movs r1, #100 ; 0x64 + 8002b7e: 0018 movs r0, r3 + 8002b80: f7fd fb4c bl 800021c <__divsi3> + 8002b84: 0003 movs r3, r0 + 8002b86: 210a movs r1, #10 + 8002b88: 0018 movs r0, r3 + 8002b8a: f7fd fc2d bl 80003e8 <__aeabi_idivmod> + 8002b8e: 000b movs r3, r1 + 8002b90: b2da uxtb r2, r3 + 8002b92: 4bcc ldr r3, [pc, #816] ; (8002ec4 ) + 8002b94: 70da strb r2, [r3, #3] dis_buff.d_num[2]=(countdown/1000)%10; - 8002c1a: 68bb ldr r3, [r7, #8] - 8002c1c: 22fa movs r2, #250 ; 0xfa - 8002c1e: 0091 lsls r1, r2, #2 - 8002c20: 0018 movs r0, r3 - 8002c22: f7fd fafb bl 800021c <__divsi3> - 8002c26: 0003 movs r3, r0 - 8002c28: 210a movs r1, #10 - 8002c2a: 0018 movs r0, r3 - 8002c2c: f7fd fbdc bl 80003e8 <__aeabi_idivmod> - 8002c30: 000b movs r3, r1 - 8002c32: b2da uxtb r2, r3 - 8002c34: 4b77 ldr r3, [pc, #476] ; (8002e14 ) - 8002c36: 709a strb r2, [r3, #2] + 8002b96: 68bb ldr r3, [r7, #8] + 8002b98: 22fa movs r2, #250 ; 0xfa + 8002b9a: 0091 lsls r1, r2, #2 + 8002b9c: 0018 movs r0, r3 + 8002b9e: f7fd fb3d bl 800021c <__divsi3> + 8002ba2: 0003 movs r3, r0 + 8002ba4: 210a movs r1, #10 + 8002ba6: 0018 movs r0, r3 + 8002ba8: f7fd fc1e bl 80003e8 <__aeabi_idivmod> + 8002bac: 000b movs r3, r1 + 8002bae: b2da uxtb r2, r3 + 8002bb0: 4bc4 ldr r3, [pc, #784] ; (8002ec4 ) + 8002bb2: 709a strb r2, [r3, #2] dis_buff.d_num[1]=((countdown/10000)%10); - 8002c38: 68bb ldr r3, [r7, #8] - 8002c3a: 4977 ldr r1, [pc, #476] ; (8002e18 ) - 8002c3c: 0018 movs r0, r3 - 8002c3e: f7fd faed bl 800021c <__divsi3> - 8002c42: 0003 movs r3, r0 - 8002c44: 210a movs r1, #10 - 8002c46: 0018 movs r0, r3 - 8002c48: f7fd fbce bl 80003e8 <__aeabi_idivmod> - 8002c4c: 000b movs r3, r1 - 8002c4e: b2da uxtb r2, r3 - 8002c50: 4b70 ldr r3, [pc, #448] ; (8002e14 ) - 8002c52: 705a strb r2, [r3, #1] + 8002bb4: 68bb ldr r3, [r7, #8] + 8002bb6: 49c4 ldr r1, [pc, #784] ; (8002ec8 ) + 8002bb8: 0018 movs r0, r3 + 8002bba: f7fd fb2f bl 800021c <__divsi3> + 8002bbe: 0003 movs r3, r0 + 8002bc0: 210a movs r1, #10 + 8002bc2: 0018 movs r0, r3 + 8002bc4: f7fd fc10 bl 80003e8 <__aeabi_idivmod> + 8002bc8: 000b movs r3, r1 + 8002bca: b2da uxtb r2, r3 + 8002bcc: 4bbd ldr r3, [pc, #756] ; (8002ec4 ) + 8002bce: 705a strb r2, [r3, #1] dis_buff.d_num[1]=dis_buff.d_num[1]==0?255:dis_buff.d_num[1]; - 8002c54: 4b6f ldr r3, [pc, #444] ; (8002e14 ) - 8002c56: 785b ldrb r3, [r3, #1] - 8002c58: 2b00 cmp r3, #0 - 8002c5a: d002 beq.n 8002c62 - 8002c5c: 4b6d ldr r3, [pc, #436] ; (8002e14 ) - 8002c5e: 785a ldrb r2, [r3, #1] - 8002c60: e000 b.n 8002c64 - 8002c62: 22ff movs r2, #255 ; 0xff - 8002c64: 4b6b ldr r3, [pc, #428] ; (8002e14 ) - 8002c66: 705a strb r2, [r3, #1] + 8002bd0: 4bbc ldr r3, [pc, #752] ; (8002ec4 ) + 8002bd2: 785b ldrb r3, [r3, #1] + 8002bd4: 2b00 cmp r3, #0 + 8002bd6: d002 beq.n 8002bde + 8002bd8: 4bba ldr r3, [pc, #744] ; (8002ec4 ) + 8002bda: 785a ldrb r2, [r3, #1] + 8002bdc: e000 b.n 8002be0 + 8002bde: 22ff movs r2, #255 ; 0xff + 8002be0: 4bb8 ldr r3, [pc, #736] ; (8002ec4 ) + 8002be2: 705a strb r2, [r3, #1] dis_buff.dot3=1; - 8002c68: 4b6a ldr r3, [pc, #424] ; (8002e14 ) - 8002c6a: 7a1a ldrb r2, [r3, #8] - 8002c6c: 2104 movs r1, #4 - 8002c6e: 430a orrs r2, r1 - 8002c70: 721a strb r2, [r3, #8] - if(key2.code!=0) - 8002c72: 4b6e ldr r3, [pc, #440] ; (8002e2c ) - 8002c74: 681b ldr r3, [r3, #0] - 8002c76: 2b00 cmp r3, #0 - 8002c78: d007 beq.n 8002c8a + 8002be4: 4bb7 ldr r3, [pc, #732] ; (8002ec4 ) + 8002be6: 7a1a ldrb r2, [r3, #8] + 8002be8: 2104 movs r1, #4 + 8002bea: 430a orrs r2, r1 + 8002bec: 721a strb r2, [r3, #8] + + if(key3.code!=0) + 8002bee: 4bb7 ldr r3, [pc, #732] ; (8002ecc ) + 8002bf0: 681b ldr r3, [r3, #0] + 8002bf2: 2b00 cmp r3, #0 + 8002bf4: d007 beq.n 8002c06 { - mode=2; - 8002c7a: 230f movs r3, #15 - 8002c7c: 18fb adds r3, r7, r3 - 8002c7e: 2202 movs r2, #2 - 8002c80: 701a strb r2, [r3, #0] + mode=3; + 8002bf6: 230f movs r3, #15 + 8002bf8: 18fb adds r3, r7, r3 + 8002bfa: 2203 movs r2, #3 + 8002bfc: 701a strb r2, [r3, #0] countdown=countdown_set-countdown; - 8002c82: 687a ldr r2, [r7, #4] - 8002c84: 68bb ldr r3, [r7, #8] - 8002c86: 1ad3 subs r3, r2, r3 - 8002c88: 60bb str r3, [r7, #8] + 8002bfe: 687a ldr r2, [r7, #4] + 8002c00: 68bb ldr r3, [r7, #8] + 8002c02: 1ad3 subs r3, r2, r3 + 8002c04: 60bb str r3, [r7, #8] } if(key4.code!=0) - 8002c8a: 4b65 ldr r3, [pc, #404] ; (8002e20 ) - 8002c8c: 681b ldr r3, [r3, #0] - 8002c8e: 2b00 cmp r3, #0 - 8002c90: d003 beq.n 8002c9a + 8002c06: 4bb2 ldr r3, [pc, #712] ; (8002ed0 ) + 8002c08: 681b ldr r3, [r3, #0] + 8002c0a: 2b00 cmp r3, #0 + 8002c0c: d003 beq.n 8002c16 { mode=1; - 8002c92: 230f movs r3, #15 - 8002c94: 18fb adds r3, r7, r3 - 8002c96: 2201 movs r2, #1 - 8002c98: 701a strb r2, [r3, #0] + 8002c0e: 230f movs r3, #15 + 8002c10: 18fb adds r3, r7, r3 + 8002c12: 2201 movs r2, #1 + 8002c14: 701a strb r2, [r3, #0] } if(overload.code!=0) - 8002c9a: 4b62 ldr r3, [pc, #392] ; (8002e24 ) - 8002c9c: 681b ldr r3, [r3, #0] - 8002c9e: 2b00 cmp r3, #0 - 8002ca0: d005 beq.n 8002cae + 8002c16: 4baf ldr r3, [pc, #700] ; (8002ed4 ) + 8002c18: 681b ldr r3, [r3, #0] + 8002c1a: 2b00 cmp r3, #0 + 8002c1c: d005 beq.n 8002c2a { overload_times+=1; - 8002ca2: 220c movs r2, #12 - 8002ca4: 18bb adds r3, r7, r2 - 8002ca6: 18ba adds r2, r7, r2 - 8002ca8: 8812 ldrh r2, [r2, #0] - 8002caa: 3201 adds r2, #1 - 8002cac: 801a strh r2, [r3, #0] + 8002c1e: 220c movs r2, #12 + 8002c20: 18bb adds r3, r7, r2 + 8002c22: 18ba adds r2, r7, r2 + 8002c24: 8812 ldrh r2, [r2, #0] + 8002c26: 3201 adds r2, #1 + 8002c28: 801a strh r2, [r3, #0] } if(overload_times>2) - 8002cae: 230c movs r3, #12 - 8002cb0: 18fb adds r3, r7, r3 - 8002cb2: 881b ldrh r3, [r3, #0] - 8002cb4: 2b02 cmp r3, #2 - 8002cb6: d800 bhi.n 8002cba - 8002cb8: e140 b.n 8002f3c + 8002c2a: 230c movs r3, #12 + 8002c2c: 18fb adds r3, r7, r3 + 8002c2e: 881b ldrh r3, [r3, #0] + 8002c30: 2b02 cmp r3, #2 + 8002c32: d800 bhi.n 8002c36 + 8002c34: e1d8 b.n 8002fe8 { - overload_mode=3; - 8002cba: 230e movs r3, #14 - 8002cbc: 18fb adds r3, r7, r3 - 8002cbe: 2203 movs r2, #3 - 8002cc0: 701a strb r2, [r3, #0] + overload_mode=2; + 8002c36: 230e movs r3, #14 + 8002c38: 18fb adds r3, r7, r3 + 8002c3a: 2202 movs r2, #2 + 8002c3c: 701a strb r2, [r3, #0] mode=5; - 8002cc2: 230f movs r3, #15 - 8002cc4: 18fb adds r3, r7, r3 - 8002cc6: 2205 movs r2, #5 - 8002cc8: 701a strb r2, [r3, #0] + 8002c3e: 230f movs r3, #15 + 8002c40: 18fb adds r3, r7, r3 + 8002c42: 2205 movs r2, #5 + 8002c44: 701a strb r2, [r3, #0] } break; - 8002cca: e137 b.n 8002f3c + 8002c46: e1cf b.n 8002fe8 + case 3: + moto.moto1a=0; + 8002c48: 4ba3 ldr r3, [pc, #652] ; (8002ed8 ) + 8002c4a: 2200 movs r2, #0 + 8002c4c: 721a strb r2, [r3, #8] + moto.moto1b=10; + 8002c4e: 4ba2 ldr r3, [pc, #648] ; (8002ed8 ) + 8002c50: 220a movs r2, #10 + 8002c52: 725a strb r2, [r3, #9] + moto.moto2a=0; + 8002c54: 4ba0 ldr r3, [pc, #640] ; (8002ed8 ) + 8002c56: 2200 movs r2, #0 + 8002c58: 729a strb r2, [r3, #10] + moto.moto2b=10; + 8002c5a: 4b9f ldr r3, [pc, #636] ; (8002ed8 ) + 8002c5c: 220a movs r2, #10 + 8002c5e: 72da strb r2, [r3, #11] + if(HAL_GetTick()>move) + 8002c60: f7fd fe0a bl 8000878 + 8002c64: 0002 movs r2, r0 + 8002c66: 693b ldr r3, [r7, #16] + 8002c68: 4293 cmp r3, r2 + 8002c6a: d220 bcs.n 8002cae + { + move=HAL_GetTick()+100; + 8002c6c: f7fd fe04 bl 8000878 + 8002c70: 0003 movs r3, r0 + 8002c72: 3364 adds r3, #100 ; 0x64 + 8002c74: 613b str r3, [r7, #16] + if(dis_buff.led_run==1) + 8002c76: 4b93 ldr r3, [pc, #588] ; (8002ec4 ) + 8002c78: 7a1b ldrb r3, [r3, #8] + 8002c7a: 2210 movs r2, #16 + 8002c7c: 4013 ands r3, r2 + 8002c7e: b2db uxtb r3, r3 + 8002c80: 2b00 cmp r3, #0 + 8002c82: d005 beq.n 8002c90 + { + dis_buff.led_run=0; + 8002c84: 4b8f ldr r3, [pc, #572] ; (8002ec4 ) + 8002c86: 7a1a ldrb r2, [r3, #8] + 8002c88: 2110 movs r1, #16 + 8002c8a: 438a bics r2, r1 + 8002c8c: 721a strb r2, [r3, #8] + 8002c8e: e004 b.n 8002c9a + }else + { + dis_buff.led_run=1; + 8002c90: 4b8c ldr r3, [pc, #560] ; (8002ec4 ) + 8002c92: 7a1a ldrb r2, [r3, #8] + 8002c94: 2110 movs r1, #16 + 8002c96: 430a orrs r2, r1 + 8002c98: 721a strb r2, [r3, #8] + } + countdown-=100; + 8002c9a: 68bb ldr r3, [r7, #8] + 8002c9c: 3b64 subs r3, #100 ; 0x64 + 8002c9e: 60bb str r3, [r7, #8] + if(countdown<0) + 8002ca0: 68bb ldr r3, [r7, #8] + 8002ca2: 2b00 cmp r3, #0 + 8002ca4: da03 bge.n 8002cae + { + mode=1; + 8002ca6: 230f movs r3, #15 + 8002ca8: 18fb adds r3, r7, r3 + 8002caa: 2201 movs r2, #1 + 8002cac: 701a strb r2, [r3, #0] + } + } + dis_buff.d_num[3]=(countdown/100)%10; + 8002cae: 68bb ldr r3, [r7, #8] + 8002cb0: 2164 movs r1, #100 ; 0x64 + 8002cb2: 0018 movs r0, r3 + 8002cb4: f7fd fab2 bl 800021c <__divsi3> + 8002cb8: 0003 movs r3, r0 + 8002cba: 210a movs r1, #10 + 8002cbc: 0018 movs r0, r3 + 8002cbe: f7fd fb93 bl 80003e8 <__aeabi_idivmod> + 8002cc2: 000b movs r3, r1 + 8002cc4: b2da uxtb r2, r3 + 8002cc6: 4b7f ldr r3, [pc, #508] ; (8002ec4 ) + 8002cc8: 70da strb r2, [r3, #3] + dis_buff.d_num[2]=(countdown/1000)%10; + 8002cca: 68bb ldr r3, [r7, #8] + 8002ccc: 22fa movs r2, #250 ; 0xfa + 8002cce: 0091 lsls r1, r2, #2 + 8002cd0: 0018 movs r0, r3 + 8002cd2: f7fd faa3 bl 800021c <__divsi3> + 8002cd6: 0003 movs r3, r0 + 8002cd8: 210a movs r1, #10 + 8002cda: 0018 movs r0, r3 + 8002cdc: f7fd fb84 bl 80003e8 <__aeabi_idivmod> + 8002ce0: 000b movs r3, r1 + 8002ce2: b2da uxtb r2, r3 + 8002ce4: 4b77 ldr r3, [pc, #476] ; (8002ec4 ) + 8002ce6: 709a strb r2, [r3, #2] + dis_buff.d_num[1]=((countdown/10000)%10); + 8002ce8: 68bb ldr r3, [r7, #8] + 8002cea: 4977 ldr r1, [pc, #476] ; (8002ec8 ) + 8002cec: 0018 movs r0, r3 + 8002cee: f7fd fa95 bl 800021c <__divsi3> + 8002cf2: 0003 movs r3, r0 + 8002cf4: 210a movs r1, #10 + 8002cf6: 0018 movs r0, r3 + 8002cf8: f7fd fb76 bl 80003e8 <__aeabi_idivmod> + 8002cfc: 000b movs r3, r1 + 8002cfe: b2da uxtb r2, r3 + 8002d00: 4b70 ldr r3, [pc, #448] ; (8002ec4 ) + 8002d02: 705a strb r2, [r3, #1] + dis_buff.d_num[1]=dis_buff.d_num[1]==0?255:dis_buff.d_num[1]; + 8002d04: 4b6f ldr r3, [pc, #444] ; (8002ec4 ) + 8002d06: 785b ldrb r3, [r3, #1] + 8002d08: 2b00 cmp r3, #0 + 8002d0a: d002 beq.n 8002d12 + 8002d0c: 4b6d ldr r3, [pc, #436] ; (8002ec4 ) + 8002d0e: 785a ldrb r2, [r3, #1] + 8002d10: e000 b.n 8002d14 + 8002d12: 22ff movs r2, #255 ; 0xff + 8002d14: 4b6b ldr r3, [pc, #428] ; (8002ec4 ) + 8002d16: 705a strb r2, [r3, #1] + dis_buff.dot3=1; + 8002d18: 4b6a ldr r3, [pc, #424] ; (8002ec4 ) + 8002d1a: 7a1a ldrb r2, [r3, #8] + 8002d1c: 2104 movs r1, #4 + 8002d1e: 430a orrs r2, r1 + 8002d20: 721a strb r2, [r3, #8] + if(key2.code!=0) + 8002d22: 4b6e ldr r3, [pc, #440] ; (8002edc ) + 8002d24: 681b ldr r3, [r3, #0] + 8002d26: 2b00 cmp r3, #0 + 8002d28: d007 beq.n 8002d3a + { + mode=2; + 8002d2a: 230f movs r3, #15 + 8002d2c: 18fb adds r3, r7, r3 + 8002d2e: 2202 movs r2, #2 + 8002d30: 701a strb r2, [r3, #0] + countdown=countdown_set-countdown; + 8002d32: 687a ldr r2, [r7, #4] + 8002d34: 68bb ldr r3, [r7, #8] + 8002d36: 1ad3 subs r3, r2, r3 + 8002d38: 60bb str r3, [r7, #8] + } + if(key4.code!=0) + 8002d3a: 4b65 ldr r3, [pc, #404] ; (8002ed0 ) + 8002d3c: 681b ldr r3, [r3, #0] + 8002d3e: 2b00 cmp r3, #0 + 8002d40: d003 beq.n 8002d4a + { + mode=1; + 8002d42: 230f movs r3, #15 + 8002d44: 18fb adds r3, r7, r3 + 8002d46: 2201 movs r2, #1 + 8002d48: 701a strb r2, [r3, #0] + } + if(overload.code!=0) + 8002d4a: 4b62 ldr r3, [pc, #392] ; (8002ed4 ) + 8002d4c: 681b ldr r3, [r3, #0] + 8002d4e: 2b00 cmp r3, #0 + 8002d50: d005 beq.n 8002d5e + { + overload_times+=1; + 8002d52: 220c movs r2, #12 + 8002d54: 18bb adds r3, r7, r2 + 8002d56: 18ba adds r2, r7, r2 + 8002d58: 8812 ldrh r2, [r2, #0] + 8002d5a: 3201 adds r2, #1 + 8002d5c: 801a strh r2, [r3, #0] + } + if(overload_times>2) + 8002d5e: 230c movs r3, #12 + 8002d60: 18fb adds r3, r7, r3 + 8002d62: 881b ldrh r3, [r3, #0] + 8002d64: 2b02 cmp r3, #2 + 8002d66: d800 bhi.n 8002d6a + 8002d68: e140 b.n 8002fec + { + overload_mode=3; + 8002d6a: 230e movs r3, #14 + 8002d6c: 18fb adds r3, r7, r3 + 8002d6e: 2203 movs r2, #3 + 8002d70: 701a strb r2, [r3, #0] + mode=5; + 8002d72: 230f movs r3, #15 + 8002d74: 18fb adds r3, r7, r3 + 8002d76: 2205 movs r2, #5 + 8002d78: 701a strb r2, [r3, #0] + } + break; + 8002d7a: e137 b.n 8002fec case 4: //setting mode dis_buff.led_run=0; - 8002ccc: 4b51 ldr r3, [pc, #324] ; (8002e14 ) - 8002cce: 7a1a ldrb r2, [r3, #8] - 8002cd0: 2110 movs r1, #16 - 8002cd2: 438a bics r2, r1 - 8002cd4: 721a strb r2, [r3, #8] + 8002d7c: 4b51 ldr r3, [pc, #324] ; (8002ec4 ) + 8002d7e: 7a1a ldrb r2, [r3, #8] + 8002d80: 2110 movs r1, #16 + 8002d82: 438a bics r2, r1 + 8002d84: 721a strb r2, [r3, #8] if(HAL_GetTick()>move) - 8002cd6: f7fd fdcf bl 8000878 - 8002cda: 0002 movs r2, r0 - 8002cdc: 693b ldr r3, [r7, #16] - 8002cde: 4293 cmp r3, r2 - 8002ce0: d237 bcs.n 8002d52 + 8002d86: f7fd fd77 bl 8000878 + 8002d8a: 0002 movs r2, r0 + 8002d8c: 693b ldr r3, [r7, #16] + 8002d8e: 4293 cmp r3, r2 + 8002d90: d237 bcs.n 8002e02 { move=HAL_GetTick()+100; - 8002ce2: f7fd fdc9 bl 8000878 - 8002ce6: 0003 movs r3, r0 - 8002ce8: 3364 adds r3, #100 ; 0x64 - 8002cea: 613b str r3, [r7, #16] + 8002d92: f7fd fd71 bl 8000878 + 8002d96: 0003 movs r3, r0 + 8002d98: 3364 adds r3, #100 ; 0x64 + 8002d9a: 613b str r3, [r7, #16] if(dis_buff.dot1==1) - 8002cec: 4b49 ldr r3, [pc, #292] ; (8002e14 ) - 8002cee: 7a1b ldrb r3, [r3, #8] - 8002cf0: 2201 movs r2, #1 - 8002cf2: 4013 ands r3, r2 - 8002cf4: b2db uxtb r3, r3 - 8002cf6: 2b00 cmp r3, #0 - 8002cf8: d005 beq.n 8002d06 + 8002d9c: 4b49 ldr r3, [pc, #292] ; (8002ec4 ) + 8002d9e: 7a1b ldrb r3, [r3, #8] + 8002da0: 2201 movs r2, #1 + 8002da2: 4013 ands r3, r2 + 8002da4: b2db uxtb r3, r3 + 8002da6: 2b00 cmp r3, #0 + 8002da8: d005 beq.n 8002db6 { dis_buff.dot1=0; - 8002cfa: 4b46 ldr r3, [pc, #280] ; (8002e14 ) - 8002cfc: 7a1a ldrb r2, [r3, #8] - 8002cfe: 2101 movs r1, #1 - 8002d00: 438a bics r2, r1 - 8002d02: 721a strb r2, [r3, #8] - 8002d04: e004 b.n 8002d10 + 8002daa: 4b46 ldr r3, [pc, #280] ; (8002ec4 ) + 8002dac: 7a1a ldrb r2, [r3, #8] + 8002dae: 2101 movs r1, #1 + 8002db0: 438a bics r2, r1 + 8002db2: 721a strb r2, [r3, #8] + 8002db4: e004 b.n 8002dc0 }else { dis_buff.dot1=1; - 8002d06: 4b43 ldr r3, [pc, #268] ; (8002e14 ) - 8002d08: 7a1a ldrb r2, [r3, #8] - 8002d0a: 2101 movs r1, #1 - 8002d0c: 430a orrs r2, r1 - 8002d0e: 721a strb r2, [r3, #8] + 8002db6: 4b43 ldr r3, [pc, #268] ; (8002ec4 ) + 8002db8: 7a1a ldrb r2, [r3, #8] + 8002dba: 2101 movs r1, #1 + 8002dbc: 430a orrs r2, r1 + 8002dbe: 721a strb r2, [r3, #8] } countdown-=100; - 8002d10: 68bb ldr r3, [r7, #8] - 8002d12: 3b64 subs r3, #100 ; 0x64 - 8002d14: 60bb str r3, [r7, #8] + 8002dc0: 68bb ldr r3, [r7, #8] + 8002dc2: 3b64 subs r3, #100 ; 0x64 + 8002dc4: 60bb str r3, [r7, #8] if(countdown<0) - 8002d16: 68bb ldr r3, [r7, #8] - 8002d18: 2b00 cmp r3, #0 - 8002d1a: da03 bge.n 8002d24 + 8002dc6: 68bb ldr r3, [r7, #8] + 8002dc8: 2b00 cmp r3, #0 + 8002dca: da03 bge.n 8002dd4 { mode=1; - 8002d1c: 230f movs r3, #15 - 8002d1e: 18fb adds r3, r7, r3 - 8002d20: 2201 movs r2, #1 - 8002d22: 701a strb r2, [r3, #0] + 8002dcc: 230f movs r3, #15 + 8002dce: 18fb adds r3, r7, r3 + 8002dd0: 2201 movs r2, #1 + 8002dd2: 701a strb r2, [r3, #0] } if(key2.code<0){countdown_set+=1000;countdown=10000;} - 8002d24: 4b41 ldr r3, [pc, #260] ; (8002e2c ) - 8002d26: 681b ldr r3, [r3, #0] - 8002d28: 2b00 cmp r3, #0 - 8002d2a: da07 bge.n 8002d3c - 8002d2c: 687b ldr r3, [r7, #4] - 8002d2e: 22fa movs r2, #250 ; 0xfa - 8002d30: 0092 lsls r2, r2, #2 - 8002d32: 4694 mov ip, r2 - 8002d34: 4463 add r3, ip - 8002d36: 607b str r3, [r7, #4] - 8002d38: 4b37 ldr r3, [pc, #220] ; (8002e18 ) - 8002d3a: 60bb str r3, [r7, #8] + 8002dd4: 4b41 ldr r3, [pc, #260] ; (8002edc ) + 8002dd6: 681b ldr r3, [r3, #0] + 8002dd8: 2b00 cmp r3, #0 + 8002dda: da07 bge.n 8002dec + 8002ddc: 687b ldr r3, [r7, #4] + 8002dde: 22fa movs r2, #250 ; 0xfa + 8002de0: 0092 lsls r2, r2, #2 + 8002de2: 4694 mov ip, r2 + 8002de4: 4463 add r3, ip + 8002de6: 607b str r3, [r7, #4] + 8002de8: 4b37 ldr r3, [pc, #220] ; (8002ec8 ) + 8002dea: 60bb str r3, [r7, #8] if(key3.code<0){countdown_set-=1000;countdown=10000;} - 8002d3c: 4b37 ldr r3, [pc, #220] ; (8002e1c ) - 8002d3e: 681b ldr r3, [r3, #0] - 8002d40: 2b00 cmp r3, #0 - 8002d42: da06 bge.n 8002d52 - 8002d44: 687b ldr r3, [r7, #4] - 8002d46: 4a3a ldr r2, [pc, #232] ; (8002e30 ) - 8002d48: 4694 mov ip, r2 - 8002d4a: 4463 add r3, ip - 8002d4c: 607b str r3, [r7, #4] - 8002d4e: 4b32 ldr r3, [pc, #200] ; (8002e18 ) - 8002d50: 60bb str r3, [r7, #8] + 8002dec: 4b37 ldr r3, [pc, #220] ; (8002ecc ) + 8002dee: 681b ldr r3, [r3, #0] + 8002df0: 2b00 cmp r3, #0 + 8002df2: da06 bge.n 8002e02 + 8002df4: 687b ldr r3, [r7, #4] + 8002df6: 4a3a ldr r2, [pc, #232] ; (8002ee0 ) + 8002df8: 4694 mov ip, r2 + 8002dfa: 4463 add r3, ip + 8002dfc: 607b str r3, [r7, #4] + 8002dfe: 4b32 ldr r3, [pc, #200] ; (8002ec8 ) + 8002e00: 60bb str r3, [r7, #8] } if(key2.code>0){countdown_set+=100;countdown=10000;} - 8002d52: 4b36 ldr r3, [pc, #216] ; (8002e2c ) - 8002d54: 681b ldr r3, [r3, #0] - 8002d56: 2b00 cmp r3, #0 - 8002d58: dd04 ble.n 8002d64 - 8002d5a: 687b ldr r3, [r7, #4] - 8002d5c: 3364 adds r3, #100 ; 0x64 - 8002d5e: 607b str r3, [r7, #4] - 8002d60: 4b2d ldr r3, [pc, #180] ; (8002e18 ) - 8002d62: 60bb str r3, [r7, #8] + 8002e02: 4b36 ldr r3, [pc, #216] ; (8002edc ) + 8002e04: 681b ldr r3, [r3, #0] + 8002e06: 2b00 cmp r3, #0 + 8002e08: dd04 ble.n 8002e14 + 8002e0a: 687b ldr r3, [r7, #4] + 8002e0c: 3364 adds r3, #100 ; 0x64 + 8002e0e: 607b str r3, [r7, #4] + 8002e10: 4b2d ldr r3, [pc, #180] ; (8002ec8 ) + 8002e12: 60bb str r3, [r7, #8] if(key3.code>0){countdown_set-=100;countdown=10000;} - 8002d64: 4b2d ldr r3, [pc, #180] ; (8002e1c ) - 8002d66: 681b ldr r3, [r3, #0] - 8002d68: 2b00 cmp r3, #0 - 8002d6a: dd04 ble.n 8002d76 - 8002d6c: 687b ldr r3, [r7, #4] - 8002d6e: 3b64 subs r3, #100 ; 0x64 - 8002d70: 607b str r3, [r7, #4] - 8002d72: 4b29 ldr r3, [pc, #164] ; (8002e18 ) - 8002d74: 60bb str r3, [r7, #8] + 8002e14: 4b2d ldr r3, [pc, #180] ; (8002ecc ) + 8002e16: 681b ldr r3, [r3, #0] + 8002e18: 2b00 cmp r3, #0 + 8002e1a: dd04 ble.n 8002e26 + 8002e1c: 687b ldr r3, [r7, #4] + 8002e1e: 3b64 subs r3, #100 ; 0x64 + 8002e20: 607b str r3, [r7, #4] + 8002e22: 4b29 ldr r3, [pc, #164] ; (8002ec8 ) + 8002e24: 60bb str r3, [r7, #8] if(countdown_set<100){countdown_set=100;} - 8002d76: 687b ldr r3, [r7, #4] - 8002d78: 2b63 cmp r3, #99 ; 0x63 - 8002d7a: dc01 bgt.n 8002d80 - 8002d7c: 2364 movs r3, #100 ; 0x64 - 8002d7e: 607b str r3, [r7, #4] + 8002e26: 687b ldr r3, [r7, #4] + 8002e28: 2b63 cmp r3, #99 ; 0x63 + 8002e2a: dc01 bgt.n 8002e30 + 8002e2c: 2364 movs r3, #100 ; 0x64 + 8002e2e: 607b str r3, [r7, #4] if(countdown_set>60000){countdown_set=60000;} - 8002d80: 687b ldr r3, [r7, #4] - 8002d82: 4a2c ldr r2, [pc, #176] ; (8002e34 ) - 8002d84: 4293 cmp r3, r2 - 8002d86: dd01 ble.n 8002d8c - 8002d88: 4b2a ldr r3, [pc, #168] ; (8002e34 ) - 8002d8a: 607b str r3, [r7, #4] + 8002e30: 687b ldr r3, [r7, #4] + 8002e32: 4a2c ldr r2, [pc, #176] ; (8002ee4 ) + 8002e34: 4293 cmp r3, r2 + 8002e36: dd01 ble.n 8002e3c + 8002e38: 4b2a ldr r3, [pc, #168] ; (8002ee4 ) + 8002e3a: 607b str r3, [r7, #4] if(key1.code!=0){mode=1;} - 8002d8c: 4b2a ldr r3, [pc, #168] ; (8002e38 ) - 8002d8e: 681b ldr r3, [r3, #0] - 8002d90: 2b00 cmp r3, #0 - 8002d92: d003 beq.n 8002d9c - 8002d94: 230f movs r3, #15 - 8002d96: 18fb adds r3, r7, r3 - 8002d98: 2201 movs r2, #1 - 8002d9a: 701a strb r2, [r3, #0] + 8002e3c: 4b2a ldr r3, [pc, #168] ; (8002ee8 ) + 8002e3e: 681b ldr r3, [r3, #0] + 8002e40: 2b00 cmp r3, #0 + 8002e42: d003 beq.n 8002e4c + 8002e44: 230f movs r3, #15 + 8002e46: 18fb adds r3, r7, r3 + 8002e48: 2201 movs r2, #1 + 8002e4a: 701a strb r2, [r3, #0] dis_buff.d_num[3]=(countdown_set/100)%10; - 8002d9c: 687b ldr r3, [r7, #4] - 8002d9e: 2164 movs r1, #100 ; 0x64 - 8002da0: 0018 movs r0, r3 - 8002da2: f7fd fa3b bl 800021c <__divsi3> - 8002da6: 0003 movs r3, r0 - 8002da8: 210a movs r1, #10 - 8002daa: 0018 movs r0, r3 - 8002dac: f7fd fb1c bl 80003e8 <__aeabi_idivmod> - 8002db0: 000b movs r3, r1 - 8002db2: b2da uxtb r2, r3 - 8002db4: 4b17 ldr r3, [pc, #92] ; (8002e14 ) - 8002db6: 70da strb r2, [r3, #3] + 8002e4c: 687b ldr r3, [r7, #4] + 8002e4e: 2164 movs r1, #100 ; 0x64 + 8002e50: 0018 movs r0, r3 + 8002e52: f7fd f9e3 bl 800021c <__divsi3> + 8002e56: 0003 movs r3, r0 + 8002e58: 210a movs r1, #10 + 8002e5a: 0018 movs r0, r3 + 8002e5c: f7fd fac4 bl 80003e8 <__aeabi_idivmod> + 8002e60: 000b movs r3, r1 + 8002e62: b2da uxtb r2, r3 + 8002e64: 4b17 ldr r3, [pc, #92] ; (8002ec4 ) + 8002e66: 70da strb r2, [r3, #3] dis_buff.d_num[2]=(countdown_set/1000)%10; - 8002db8: 687b ldr r3, [r7, #4] - 8002dba: 22fa movs r2, #250 ; 0xfa - 8002dbc: 0091 lsls r1, r2, #2 - 8002dbe: 0018 movs r0, r3 - 8002dc0: f7fd fa2c bl 800021c <__divsi3> - 8002dc4: 0003 movs r3, r0 - 8002dc6: 210a movs r1, #10 - 8002dc8: 0018 movs r0, r3 - 8002dca: f7fd fb0d bl 80003e8 <__aeabi_idivmod> - 8002dce: 000b movs r3, r1 - 8002dd0: b2da uxtb r2, r3 - 8002dd2: 4b10 ldr r3, [pc, #64] ; (8002e14 ) - 8002dd4: 709a strb r2, [r3, #2] + 8002e68: 687b ldr r3, [r7, #4] + 8002e6a: 22fa movs r2, #250 ; 0xfa + 8002e6c: 0091 lsls r1, r2, #2 + 8002e6e: 0018 movs r0, r3 + 8002e70: f7fd f9d4 bl 800021c <__divsi3> + 8002e74: 0003 movs r3, r0 + 8002e76: 210a movs r1, #10 + 8002e78: 0018 movs r0, r3 + 8002e7a: f7fd fab5 bl 80003e8 <__aeabi_idivmod> + 8002e7e: 000b movs r3, r1 + 8002e80: b2da uxtb r2, r3 + 8002e82: 4b10 ldr r3, [pc, #64] ; (8002ec4 ) + 8002e84: 709a strb r2, [r3, #2] dis_buff.d_num[1]=((countdown_set/10000)%10); - 8002dd6: 687b ldr r3, [r7, #4] - 8002dd8: 490f ldr r1, [pc, #60] ; (8002e18 ) - 8002dda: 0018 movs r0, r3 - 8002ddc: f7fd fa1e bl 800021c <__divsi3> - 8002de0: 0003 movs r3, r0 - 8002de2: 210a movs r1, #10 - 8002de4: 0018 movs r0, r3 - 8002de6: f7fd faff bl 80003e8 <__aeabi_idivmod> - 8002dea: 000b movs r3, r1 - 8002dec: b2da uxtb r2, r3 - 8002dee: 4b09 ldr r3, [pc, #36] ; (8002e14 ) - 8002df0: 705a strb r2, [r3, #1] + 8002e86: 687b ldr r3, [r7, #4] + 8002e88: 490f ldr r1, [pc, #60] ; (8002ec8 ) + 8002e8a: 0018 movs r0, r3 + 8002e8c: f7fd f9c6 bl 800021c <__divsi3> + 8002e90: 0003 movs r3, r0 + 8002e92: 210a movs r1, #10 + 8002e94: 0018 movs r0, r3 + 8002e96: f7fd faa7 bl 80003e8 <__aeabi_idivmod> + 8002e9a: 000b movs r3, r1 + 8002e9c: b2da uxtb r2, r3 + 8002e9e: 4b09 ldr r3, [pc, #36] ; (8002ec4 ) + 8002ea0: 705a strb r2, [r3, #1] dis_buff.d_num[1]=dis_buff.d_num[1]==0?255:dis_buff.d_num[1]; - 8002df2: 4b08 ldr r3, [pc, #32] ; (8002e14 ) - 8002df4: 785b ldrb r3, [r3, #1] - 8002df6: 2b00 cmp r3, #0 - 8002df8: d002 beq.n 8002e00 - 8002dfa: 4b06 ldr r3, [pc, #24] ; (8002e14 ) - 8002dfc: 785a ldrb r2, [r3, #1] - 8002dfe: e000 b.n 8002e02 - 8002e00: 22ff movs r2, #255 ; 0xff - 8002e02: 4b04 ldr r3, [pc, #16] ; (8002e14 ) - 8002e04: 705a strb r2, [r3, #1] + 8002ea2: 4b08 ldr r3, [pc, #32] ; (8002ec4 ) + 8002ea4: 785b ldrb r3, [r3, #1] + 8002ea6: 2b00 cmp r3, #0 + 8002ea8: d002 beq.n 8002eb0 + 8002eaa: 4b06 ldr r3, [pc, #24] ; (8002ec4 ) + 8002eac: 785a ldrb r2, [r3, #1] + 8002eae: e000 b.n 8002eb2 + 8002eb0: 22ff movs r2, #255 ; 0xff + 8002eb2: 4b04 ldr r3, [pc, #16] ; (8002ec4 ) + 8002eb4: 705a strb r2, [r3, #1] dis_buff.dot3=1; - 8002e06: 4b03 ldr r3, [pc, #12] ; (8002e14 ) - 8002e08: 7a1a ldrb r2, [r3, #8] - 8002e0a: 2104 movs r1, #4 - 8002e0c: 430a orrs r2, r1 - 8002e0e: 721a strb r2, [r3, #8] + 8002eb6: 4b03 ldr r3, [pc, #12] ; (8002ec4 ) + 8002eb8: 7a1a ldrb r2, [r3, #8] + 8002eba: 2104 movs r1, #4 + 8002ebc: 430a orrs r2, r1 + 8002ebe: 721a strb r2, [r3, #8] break; - 8002e10: e097 b.n 8002f42 - 8002e12: 46c0 nop ; (mov r8, r8) - 8002e14: 2000007c .word 0x2000007c - 8002e18: 00002710 .word 0x00002710 - 8002e1c: 200000a8 .word 0x200000a8 - 8002e20: 2000006c .word 0x2000006c - 8002e24: 20000098 .word 0x20000098 - 8002e28: 200000dc .word 0x200000dc - 8002e2c: 200000cc .word 0x200000cc - 8002e30: fffffc18 .word 0xfffffc18 - 8002e34: 0000ea60 .word 0x0000ea60 - 8002e38: 20000088 .word 0x20000088 + 8002ec0: e097 b.n 8002ff2 + 8002ec2: 46c0 nop ; (mov r8, r8) + 8002ec4: 20000028 .word 0x20000028 + 8002ec8: 00002710 .word 0x00002710 + 8002ecc: 200000c0 .word 0x200000c0 + 8002ed0: 20000090 .word 0x20000090 + 8002ed4: 200000b0 .word 0x200000b0 + 8002ed8: 200000f4 .word 0x200000f4 + 8002edc: 200000e4 .word 0x200000e4 + 8002ee0: fffffc18 .word 0xfffffc18 + 8002ee4: 0000ea60 .word 0x0000ea60 + 8002ee8: 200000a0 .word 0x200000a0 case 5: //overload moto.moto1a=0; - 8002e3c: 4b5e ldr r3, [pc, #376] ; (8002fb8 ) - 8002e3e: 2200 movs r2, #0 - 8002e40: 721a strb r2, [r3, #8] + 8002eec: 4b5e ldr r3, [pc, #376] ; (8003068 ) + 8002eee: 2200 movs r2, #0 + 8002ef0: 721a strb r2, [r3, #8] moto.moto1b=0; - 8002e42: 4b5d ldr r3, [pc, #372] ; (8002fb8 ) - 8002e44: 2200 movs r2, #0 - 8002e46: 725a strb r2, [r3, #9] + 8002ef2: 4b5d ldr r3, [pc, #372] ; (8003068 ) + 8002ef4: 2200 movs r2, #0 + 8002ef6: 725a strb r2, [r3, #9] moto.moto2a=0; - 8002e48: 4b5b ldr r3, [pc, #364] ; (8002fb8 ) - 8002e4a: 2200 movs r2, #0 - 8002e4c: 729a strb r2, [r3, #10] + 8002ef8: 4b5b ldr r3, [pc, #364] ; (8003068 ) + 8002efa: 2200 movs r2, #0 + 8002efc: 729a strb r2, [r3, #10] moto.moto2b=0; - 8002e4e: 4b5a ldr r3, [pc, #360] ; (8002fb8 ) - 8002e50: 2200 movs r2, #0 - 8002e52: 72da strb r2, [r3, #11] + 8002efe: 4b5a ldr r3, [pc, #360] ; (8003068 ) + 8002f00: 2200 movs r2, #0 + 8002f02: 72da strb r2, [r3, #11] dis_buff.led_run=1; - 8002e54: 4b59 ldr r3, [pc, #356] ; (8002fbc ) - 8002e56: 7a1a ldrb r2, [r3, #8] - 8002e58: 2110 movs r1, #16 - 8002e5a: 430a orrs r2, r1 - 8002e5c: 721a strb r2, [r3, #8] + 8002f04: 4b59 ldr r3, [pc, #356] ; (800306c ) + 8002f06: 7a1a ldrb r2, [r3, #8] + 8002f08: 2110 movs r1, #16 + 8002f0a: 430a orrs r2, r1 + 8002f0c: 721a strb r2, [r3, #8] overload_times=0; - 8002e5e: 230c movs r3, #12 - 8002e60: 18fb adds r3, r7, r3 - 8002e62: 2200 movs r2, #0 - 8002e64: 801a strh r2, [r3, #0] + 8002f0e: 230c movs r3, #12 + 8002f10: 18fb adds r3, r7, r3 + 8002f12: 2200 movs r2, #0 + 8002f14: 801a strh r2, [r3, #0] dis_buff.d_num[3]=(countdown/100)%10; - 8002e66: 68bb ldr r3, [r7, #8] - 8002e68: 2164 movs r1, #100 ; 0x64 - 8002e6a: 0018 movs r0, r3 - 8002e6c: f7fd f9d6 bl 800021c <__divsi3> - 8002e70: 0003 movs r3, r0 - 8002e72: 210a movs r1, #10 - 8002e74: 0018 movs r0, r3 - 8002e76: f7fd fab7 bl 80003e8 <__aeabi_idivmod> - 8002e7a: 000b movs r3, r1 - 8002e7c: b2da uxtb r2, r3 - 8002e7e: 4b4f ldr r3, [pc, #316] ; (8002fbc ) - 8002e80: 70da strb r2, [r3, #3] + 8002f16: 68bb ldr r3, [r7, #8] + 8002f18: 2164 movs r1, #100 ; 0x64 + 8002f1a: 0018 movs r0, r3 + 8002f1c: f7fd f97e bl 800021c <__divsi3> + 8002f20: 0003 movs r3, r0 + 8002f22: 210a movs r1, #10 + 8002f24: 0018 movs r0, r3 + 8002f26: f7fd fa5f bl 80003e8 <__aeabi_idivmod> + 8002f2a: 000b movs r3, r1 + 8002f2c: b2da uxtb r2, r3 + 8002f2e: 4b4f ldr r3, [pc, #316] ; (800306c ) + 8002f30: 70da strb r2, [r3, #3] dis_buff.d_num[2]=(countdown/1000)%10; - 8002e82: 68bb ldr r3, [r7, #8] - 8002e84: 22fa movs r2, #250 ; 0xfa - 8002e86: 0091 lsls r1, r2, #2 - 8002e88: 0018 movs r0, r3 - 8002e8a: f7fd f9c7 bl 800021c <__divsi3> - 8002e8e: 0003 movs r3, r0 - 8002e90: 210a movs r1, #10 - 8002e92: 0018 movs r0, r3 - 8002e94: f7fd faa8 bl 80003e8 <__aeabi_idivmod> - 8002e98: 000b movs r3, r1 - 8002e9a: b2da uxtb r2, r3 - 8002e9c: 4b47 ldr r3, [pc, #284] ; (8002fbc ) - 8002e9e: 709a strb r2, [r3, #2] + 8002f32: 68bb ldr r3, [r7, #8] + 8002f34: 22fa movs r2, #250 ; 0xfa + 8002f36: 0091 lsls r1, r2, #2 + 8002f38: 0018 movs r0, r3 + 8002f3a: f7fd f96f bl 800021c <__divsi3> + 8002f3e: 0003 movs r3, r0 + 8002f40: 210a movs r1, #10 + 8002f42: 0018 movs r0, r3 + 8002f44: f7fd fa50 bl 80003e8 <__aeabi_idivmod> + 8002f48: 000b movs r3, r1 + 8002f4a: b2da uxtb r2, r3 + 8002f4c: 4b47 ldr r3, [pc, #284] ; (800306c ) + 8002f4e: 709a strb r2, [r3, #2] dis_buff.d_num[1]=((countdown/10000)%10); - 8002ea0: 68bb ldr r3, [r7, #8] - 8002ea2: 4947 ldr r1, [pc, #284] ; (8002fc0 ) - 8002ea4: 0018 movs r0, r3 - 8002ea6: f7fd f9b9 bl 800021c <__divsi3> - 8002eaa: 0003 movs r3, r0 - 8002eac: 210a movs r1, #10 - 8002eae: 0018 movs r0, r3 - 8002eb0: f7fd fa9a bl 80003e8 <__aeabi_idivmod> - 8002eb4: 000b movs r3, r1 - 8002eb6: b2da uxtb r2, r3 - 8002eb8: 4b40 ldr r3, [pc, #256] ; (8002fbc ) - 8002eba: 705a strb r2, [r3, #1] + 8002f50: 68bb ldr r3, [r7, #8] + 8002f52: 4947 ldr r1, [pc, #284] ; (8003070 ) + 8002f54: 0018 movs r0, r3 + 8002f56: f7fd f961 bl 800021c <__divsi3> + 8002f5a: 0003 movs r3, r0 + 8002f5c: 210a movs r1, #10 + 8002f5e: 0018 movs r0, r3 + 8002f60: f7fd fa42 bl 80003e8 <__aeabi_idivmod> + 8002f64: 000b movs r3, r1 + 8002f66: b2da uxtb r2, r3 + 8002f68: 4b40 ldr r3, [pc, #256] ; (800306c ) + 8002f6a: 705a strb r2, [r3, #1] dis_buff.d_num[1]=dis_buff.d_num[1]==0?255:dis_buff.d_num[1]; - 8002ebc: 4b3f ldr r3, [pc, #252] ; (8002fbc ) - 8002ebe: 785b ldrb r3, [r3, #1] - 8002ec0: 2b00 cmp r3, #0 - 8002ec2: d002 beq.n 8002eca - 8002ec4: 4b3d ldr r3, [pc, #244] ; (8002fbc ) - 8002ec6: 785a ldrb r2, [r3, #1] - 8002ec8: e000 b.n 8002ecc - 8002eca: 22ff movs r2, #255 ; 0xff - 8002ecc: 4b3b ldr r3, [pc, #236] ; (8002fbc ) - 8002ece: 705a strb r2, [r3, #1] + 8002f6c: 4b3f ldr r3, [pc, #252] ; (800306c ) + 8002f6e: 785b ldrb r3, [r3, #1] + 8002f70: 2b00 cmp r3, #0 + 8002f72: d002 beq.n 8002f7a + 8002f74: 4b3d ldr r3, [pc, #244] ; (800306c ) + 8002f76: 785a ldrb r2, [r3, #1] + 8002f78: e000 b.n 8002f7c + 8002f7a: 22ff movs r2, #255 ; 0xff + 8002f7c: 4b3b ldr r3, [pc, #236] ; (800306c ) + 8002f7e: 705a strb r2, [r3, #1] dis_buff.dot3=1; - 8002ed0: 4b3a ldr r3, [pc, #232] ; (8002fbc ) - 8002ed2: 7a1a ldrb r2, [r3, #8] - 8002ed4: 2104 movs r1, #4 - 8002ed6: 430a orrs r2, r1 - 8002ed8: 721a strb r2, [r3, #8] + 8002f80: 4b3a ldr r3, [pc, #232] ; (800306c ) + 8002f82: 7a1a ldrb r2, [r3, #8] + 8002f84: 2104 movs r1, #4 + 8002f86: 430a orrs r2, r1 + 8002f88: 721a strb r2, [r3, #8] if(key4.code!=0){mode=1;} - 8002eda: 4b3a ldr r3, [pc, #232] ; (8002fc4 ) - 8002edc: 681b ldr r3, [r3, #0] - 8002ede: 2b00 cmp r3, #0 - 8002ee0: d003 beq.n 8002eea - 8002ee2: 230f movs r3, #15 - 8002ee4: 18fb adds r3, r7, r3 - 8002ee6: 2201 movs r2, #1 - 8002ee8: 701a strb r2, [r3, #0] + 8002f8a: 4b3a ldr r3, [pc, #232] ; (8003074 ) + 8002f8c: 681b ldr r3, [r3, #0] + 8002f8e: 2b00 cmp r3, #0 + 8002f90: d003 beq.n 8002f9a + 8002f92: 230f movs r3, #15 + 8002f94: 18fb adds r3, r7, r3 + 8002f96: 2201 movs r2, #1 + 8002f98: 701a strb r2, [r3, #0] if(key2.code!=0) - 8002eea: 4b37 ldr r3, [pc, #220] ; (8002fc8 ) - 8002eec: 681b ldr r3, [r3, #0] - 8002eee: 2b00 cmp r3, #0 - 8002ef0: d00c beq.n 8002f0c + 8002f9a: 4b37 ldr r3, [pc, #220] ; (8003078 ) + 8002f9c: 681b ldr r3, [r3, #0] + 8002f9e: 2b00 cmp r3, #0 + 8002fa0: d00c beq.n 8002fbc { mode=2; - 8002ef2: 230f movs r3, #15 - 8002ef4: 18fb adds r3, r7, r3 - 8002ef6: 2202 movs r2, #2 - 8002ef8: 701a strb r2, [r3, #0] + 8002fa2: 230f movs r3, #15 + 8002fa4: 18fb adds r3, r7, r3 + 8002fa6: 2202 movs r2, #2 + 8002fa8: 701a strb r2, [r3, #0] if(overload_mode==2) - 8002efa: 230e movs r3, #14 - 8002efc: 18fb adds r3, r7, r3 - 8002efe: 781b ldrb r3, [r3, #0] - 8002f00: 2b02 cmp r3, #2 - 8002f02: d003 beq.n 8002f0c + 8002faa: 230e movs r3, #14 + 8002fac: 18fb adds r3, r7, r3 + 8002fae: 781b ldrb r3, [r3, #0] + 8002fb0: 2b02 cmp r3, #2 + 8002fb2: d003 beq.n 8002fbc { }else { countdown=countdown_set-countdown; - 8002f04: 687a ldr r2, [r7, #4] - 8002f06: 68bb ldr r3, [r7, #8] - 8002f08: 1ad3 subs r3, r2, r3 - 8002f0a: 60bb str r3, [r7, #8] + 8002fb4: 687a ldr r2, [r7, #4] + 8002fb6: 68bb ldr r3, [r7, #8] + 8002fb8: 1ad3 subs r3, r2, r3 + 8002fba: 60bb str r3, [r7, #8] } } if(key3.code!=0) - 8002f0c: 4b2f ldr r3, [pc, #188] ; (8002fcc ) - 8002f0e: 681b ldr r3, [r3, #0] - 8002f10: 2b00 cmp r3, #0 - 8002f12: d015 beq.n 8002f40 + 8002fbc: 4b2f ldr r3, [pc, #188] ; (800307c ) + 8002fbe: 681b ldr r3, [r3, #0] + 8002fc0: 2b00 cmp r3, #0 + 8002fc2: d015 beq.n 8002ff0 { mode=3; - 8002f14: 230f movs r3, #15 - 8002f16: 18fb adds r3, r7, r3 - 8002f18: 2203 movs r2, #3 - 8002f1a: 701a strb r2, [r3, #0] + 8002fc4: 230f movs r3, #15 + 8002fc6: 18fb adds r3, r7, r3 + 8002fc8: 2203 movs r2, #3 + 8002fca: 701a strb r2, [r3, #0] if(overload_mode==3) - 8002f1c: 230e movs r3, #14 - 8002f1e: 18fb adds r3, r7, r3 - 8002f20: 781b ldrb r3, [r3, #0] - 8002f22: 2b03 cmp r3, #3 - 8002f24: d00c beq.n 8002f40 + 8002fcc: 230e movs r3, #14 + 8002fce: 18fb adds r3, r7, r3 + 8002fd0: 781b ldrb r3, [r3, #0] + 8002fd2: 2b03 cmp r3, #3 + 8002fd4: d00c beq.n 8002ff0 { }else { countdown=countdown_set-countdown; - 8002f26: 687a ldr r2, [r7, #4] - 8002f28: 68bb ldr r3, [r7, #8] - 8002f2a: 1ad3 subs r3, r2, r3 - 8002f2c: 60bb str r3, [r7, #8] + 8002fd6: 687a ldr r2, [r7, #4] + 8002fd8: 68bb ldr r3, [r7, #8] + 8002fda: 1ad3 subs r3, r2, r3 + 8002fdc: 60bb str r3, [r7, #8] } } break; - 8002f2e: e007 b.n 8002f40 + 8002fde: e007 b.n 8002ff0 break; - 8002f30: 46c0 nop ; (mov r8, r8) - 8002f32: e006 b.n 8002f42 + 8002fe0: 46c0 nop ; (mov r8, r8) + 8002fe2: e006 b.n 8002ff2 break; - 8002f34: 46c0 nop ; (mov r8, r8) - 8002f36: e004 b.n 8002f42 + 8002fe4: 46c0 nop ; (mov r8, r8) + 8002fe6: e004 b.n 8002ff2 break; - 8002f38: 46c0 nop ; (mov r8, r8) - 8002f3a: e002 b.n 8002f42 + 8002fe8: 46c0 nop ; (mov r8, r8) + 8002fea: e002 b.n 8002ff2 break; - 8002f3c: 46c0 nop ; (mov r8, r8) - 8002f3e: e000 b.n 8002f42 + 8002fec: 46c0 nop ; (mov r8, r8) + 8002fee: e000 b.n 8002ff2 break; - 8002f40: 46c0 nop ; (mov r8, r8) + 8002ff0: 46c0 nop ; (mov r8, r8) } if(ADCC.adc_value[0]>600||ADCC.adc_value[1]>600) - 8002f42: 4b23 ldr r3, [pc, #140] ; (8002fd0 ) - 8002f44: 68da ldr r2, [r3, #12] - 8002f46: 2396 movs r3, #150 ; 0x96 - 8002f48: 009b lsls r3, r3, #2 - 8002f4a: 429a cmp r2, r3 - 8002f4c: dc05 bgt.n 8002f5a - 8002f4e: 4b20 ldr r3, [pc, #128] ; (8002fd0 ) - 8002f50: 691a ldr r2, [r3, #16] - 8002f52: 2396 movs r3, #150 ; 0x96 - 8002f54: 009b lsls r3, r3, #2 - 8002f56: 429a cmp r2, r3 - 8002f58: dd05 ble.n 8002f66 + 8002ff2: 4b23 ldr r3, [pc, #140] ; (8003080 ) + 8002ff4: 68da ldr r2, [r3, #12] + 8002ff6: 2396 movs r3, #150 ; 0x96 + 8002ff8: 009b lsls r3, r3, #2 + 8002ffa: 429a cmp r2, r3 + 8002ffc: dc05 bgt.n 800300a + 8002ffe: 4b20 ldr r3, [pc, #128] ; (8003080 ) + 8003000: 691a ldr r2, [r3, #16] + 8003002: 2396 movs r3, #150 ; 0x96 + 8003004: 009b lsls r3, r3, #2 + 8003006: 429a cmp r2, r3 + 8003008: dd05 ble.n 8003016 { GEI_BUTTON_CODE(&overload,1); - 8002f5a: 4b1e ldr r3, [pc, #120] ; (8002fd4 ) - 8002f5c: 2101 movs r1, #1 - 8002f5e: 0018 movs r0, r3 - 8002f60: f7fe ffee bl 8001f40 - 8002f64: e004 b.n 8002f70 + 800300a: 4b1e ldr r3, [pc, #120] ; (8003084 ) + 800300c: 2101 movs r1, #1 + 800300e: 0018 movs r0, r3 + 8003010: f7fe ff7a bl 8001f08 + 8003014: e004 b.n 8003020 }else { GEI_BUTTON_CODE(&overload,0); - 8002f66: 4b1b ldr r3, [pc, #108] ; (8002fd4 ) - 8002f68: 2100 movs r1, #0 - 8002f6a: 0018 movs r0, r3 - 8002f6c: f7fe ffe8 bl 8001f40 + 8003016: 4b1b ldr r3, [pc, #108] ; (8003084 ) + 8003018: 2100 movs r1, #0 + 800301a: 0018 movs r0, r3 + 800301c: f7fe ff74 bl 8001f08 } GEI_BUTTON_CODE(&key1,dis_buff.button_flag[0]); - 8002f70: 4b12 ldr r3, [pc, #72] ; (8002fbc ) - 8002f72: 791a ldrb r2, [r3, #4] - 8002f74: 4b18 ldr r3, [pc, #96] ; (8002fd8 ) - 8002f76: 0011 movs r1, r2 - 8002f78: 0018 movs r0, r3 - 8002f7a: f7fe ffe1 bl 8001f40 + 8003020: 4b12 ldr r3, [pc, #72] ; (800306c ) + 8003022: 791a ldrb r2, [r3, #4] + 8003024: 4b18 ldr r3, [pc, #96] ; (8003088 ) + 8003026: 0011 movs r1, r2 + 8003028: 0018 movs r0, r3 + 800302a: f7fe ff6d bl 8001f08 GEI_BUTTON_CODE(&key2,dis_buff.button_flag[1]); - 8002f7e: 4b0f ldr r3, [pc, #60] ; (8002fbc ) - 8002f80: 795a ldrb r2, [r3, #5] - 8002f82: 4b11 ldr r3, [pc, #68] ; (8002fc8 ) - 8002f84: 0011 movs r1, r2 - 8002f86: 0018 movs r0, r3 - 8002f88: f7fe ffda bl 8001f40 + 800302e: 4b0f ldr r3, [pc, #60] ; (800306c ) + 8003030: 795a ldrb r2, [r3, #5] + 8003032: 4b11 ldr r3, [pc, #68] ; (8003078 ) + 8003034: 0011 movs r1, r2 + 8003036: 0018 movs r0, r3 + 8003038: f7fe ff66 bl 8001f08 GEI_BUTTON_CODE(&key3,dis_buff.button_flag[2]); - 8002f8c: 4b0b ldr r3, [pc, #44] ; (8002fbc ) - 8002f8e: 799a ldrb r2, [r3, #6] - 8002f90: 4b0e ldr r3, [pc, #56] ; (8002fcc ) - 8002f92: 0011 movs r1, r2 - 8002f94: 0018 movs r0, r3 - 8002f96: f7fe ffd3 bl 8001f40 + 800303c: 4b0b ldr r3, [pc, #44] ; (800306c ) + 800303e: 799a ldrb r2, [r3, #6] + 8003040: 4b0e ldr r3, [pc, #56] ; (800307c ) + 8003042: 0011 movs r1, r2 + 8003044: 0018 movs r0, r3 + 8003046: f7fe ff5f bl 8001f08 GEI_BUTTON_CODE(&key4,dis_buff.button_flag[3]); - 8002f9a: 4b08 ldr r3, [pc, #32] ; (8002fbc ) - 8002f9c: 79da ldrb r2, [r3, #7] - 8002f9e: 4b09 ldr r3, [pc, #36] ; (8002fc4 ) - 8002fa0: 0011 movs r1, r2 - 8002fa2: 0018 movs r0, r3 - 8002fa4: f7fe ffcc bl 8001f40 - display_and_button_loop(); - 8002fa8: f7ff f97c bl 80022a4 + 800304a: 4b08 ldr r3, [pc, #32] ; (800306c ) + 800304c: 79da ldrb r2, [r3, #7] + 800304e: 4b09 ldr r3, [pc, #36] ; (8003074 ) + 8003050: 0011 movs r1, r2 + 8003052: 0018 movs r0, r3 + 8003054: f7fe ff58 bl 8001f08 + //display_and_button_loop(); + HT1621_Display(); + 8003058: f7ff f991 bl 800237e hc2_sever(); - 8002fac: f7ff fa54 bl 8002458 + 800305c: f7ff fa54 bl 8002508 moto_server(); - 8002fb0: f7ff faa4 bl 80024fc + 8003060: f7ff faa4 bl 80025ac for(char a=0;a<2;a++) - 8002fb4: f7ff fbdc bl 8002770 - 8002fb8: 200000dc .word 0x200000dc - 8002fbc: 2000007c .word 0x2000007c - 8002fc0: 00002710 .word 0x00002710 - 8002fc4: 2000006c .word 0x2000006c - 8002fc8: 200000cc .word 0x200000cc - 8002fcc: 200000a8 .word 0x200000a8 - 8002fd0: 200000b8 .word 0x200000b8 - 8002fd4: 20000098 .word 0x20000098 - 8002fd8: 20000088 .word 0x20000088 + 8003064: f7ff fbdb bl 800281e + 8003068: 200000f4 .word 0x200000f4 + 800306c: 20000028 .word 0x20000028 + 8003070: 00002710 .word 0x00002710 + 8003074: 20000090 .word 0x20000090 + 8003078: 200000e4 .word 0x200000e4 + 800307c: 200000c0 .word 0x200000c0 + 8003080: 200000d0 .word 0x200000d0 + 8003084: 200000b0 .word 0x200000b0 + 8003088: 200000a0 .word 0x200000a0 -08002fdc <__libc_init_array>: - 8002fdc: b570 push {r4, r5, r6, lr} - 8002fde: 2600 movs r6, #0 - 8002fe0: 4d0c ldr r5, [pc, #48] ; (8003014 <__libc_init_array+0x38>) - 8002fe2: 4c0d ldr r4, [pc, #52] ; (8003018 <__libc_init_array+0x3c>) - 8002fe4: 1b64 subs r4, r4, r5 - 8002fe6: 10a4 asrs r4, r4, #2 - 8002fe8: 42a6 cmp r6, r4 - 8002fea: d109 bne.n 8003000 <__libc_init_array+0x24> - 8002fec: 2600 movs r6, #0 - 8002fee: f000 f821 bl 8003034 <_init> - 8002ff2: 4d0a ldr r5, [pc, #40] ; (800301c <__libc_init_array+0x40>) - 8002ff4: 4c0a ldr r4, [pc, #40] ; (8003020 <__libc_init_array+0x44>) - 8002ff6: 1b64 subs r4, r4, r5 - 8002ff8: 10a4 asrs r4, r4, #2 - 8002ffa: 42a6 cmp r6, r4 - 8002ffc: d105 bne.n 800300a <__libc_init_array+0x2e> - 8002ffe: bd70 pop {r4, r5, r6, pc} - 8003000: 00b3 lsls r3, r6, #2 - 8003002: 58eb ldr r3, [r5, r3] - 8003004: 4798 blx r3 - 8003006: 3601 adds r6, #1 - 8003008: e7ee b.n 8002fe8 <__libc_init_array+0xc> - 800300a: 00b3 lsls r3, r6, #2 - 800300c: 58eb ldr r3, [r5, r3] - 800300e: 4798 blx r3 - 8003010: 3601 adds r6, #1 - 8003012: e7f2 b.n 8002ffa <__libc_init_array+0x1e> - 8003014: 080030a8 .word 0x080030a8 - 8003018: 080030a8 .word 0x080030a8 - 800301c: 080030a8 .word 0x080030a8 - 8003020: 080030ac .word 0x080030ac +0800308c <__libc_init_array>: + 800308c: b570 push {r4, r5, r6, lr} + 800308e: 2600 movs r6, #0 + 8003090: 4d0c ldr r5, [pc, #48] ; (80030c4 <__libc_init_array+0x38>) + 8003092: 4c0d ldr r4, [pc, #52] ; (80030c8 <__libc_init_array+0x3c>) + 8003094: 1b64 subs r4, r4, r5 + 8003096: 10a4 asrs r4, r4, #2 + 8003098: 42a6 cmp r6, r4 + 800309a: d109 bne.n 80030b0 <__libc_init_array+0x24> + 800309c: 2600 movs r6, #0 + 800309e: f000 f821 bl 80030e4 <_init> + 80030a2: 4d0a ldr r5, [pc, #40] ; (80030cc <__libc_init_array+0x40>) + 80030a4: 4c0a ldr r4, [pc, #40] ; (80030d0 <__libc_init_array+0x44>) + 80030a6: 1b64 subs r4, r4, r5 + 80030a8: 10a4 asrs r4, r4, #2 + 80030aa: 42a6 cmp r6, r4 + 80030ac: d105 bne.n 80030ba <__libc_init_array+0x2e> + 80030ae: bd70 pop {r4, r5, r6, pc} + 80030b0: 00b3 lsls r3, r6, #2 + 80030b2: 58eb ldr r3, [r5, r3] + 80030b4: 4798 blx r3 + 80030b6: 3601 adds r6, #1 + 80030b8: e7ee b.n 8003098 <__libc_init_array+0xc> + 80030ba: 00b3 lsls r3, r6, #2 + 80030bc: 58eb ldr r3, [r5, r3] + 80030be: 4798 blx r3 + 80030c0: 3601 adds r6, #1 + 80030c2: e7f2 b.n 80030aa <__libc_init_array+0x1e> + 80030c4: 0800315c .word 0x0800315c + 80030c8: 0800315c .word 0x0800315c + 80030cc: 0800315c .word 0x0800315c + 80030d0: 08003160 .word 0x08003160 -08003024 : - 8003024: 0003 movs r3, r0 - 8003026: 1882 adds r2, r0, r2 - 8003028: 4293 cmp r3, r2 - 800302a: d100 bne.n 800302e - 800302c: 4770 bx lr - 800302e: 7019 strb r1, [r3, #0] - 8003030: 3301 adds r3, #1 - 8003032: e7f9 b.n 8003028 +080030d4 : + 80030d4: 0003 movs r3, r0 + 80030d6: 1882 adds r2, r0, r2 + 80030d8: 4293 cmp r3, r2 + 80030da: d100 bne.n 80030de + 80030dc: 4770 bx lr + 80030de: 7019 strb r1, [r3, #0] + 80030e0: 3301 adds r3, #1 + 80030e2: e7f9 b.n 80030d8 -08003034 <_init>: - 8003034: b5f8 push {r3, r4, r5, r6, r7, lr} - 8003036: 46c0 nop ; (mov r8, r8) - 8003038: bcf8 pop {r3, r4, r5, r6, r7} - 800303a: bc08 pop {r3} - 800303c: 469e mov lr, r3 - 800303e: 4770 bx lr +080030e4 <_init>: + 80030e4: b5f8 push {r3, r4, r5, r6, r7, lr} + 80030e6: 46c0 nop ; (mov r8, r8) + 80030e8: bcf8 pop {r3, r4, r5, r6, r7} + 80030ea: bc08 pop {r3} + 80030ec: 469e mov lr, r3 + 80030ee: 4770 bx lr -08003040 <_fini>: - 8003040: b5f8 push {r3, r4, r5, r6, r7, lr} - 8003042: 46c0 nop ; (mov r8, r8) - 8003044: bcf8 pop {r3, r4, r5, r6, r7} - 8003046: bc08 pop {r3} - 8003048: 469e mov lr, r3 - 800304a: 4770 bx lr +080030f0 <_fini>: + 80030f0: b5f8 push {r3, r4, r5, r6, r7, lr} + 80030f2: 46c0 nop ; (mov r8, r8) + 80030f4: bcf8 pop {r3, r4, r5, r6, r7} + 80030f6: bc08 pop {r3} + 80030f8: 469e mov lr, r3 + 80030fa: 4770 bx lr diff --git a/Debug/Motor_Controller2.map b/Debug/Motor_Controller2.map index 51a3088..f6abf54 100644 --- a/Debug/Motor_Controller2.map +++ b/Debug/Motor_Controller2.map @@ -22,8 +22,9 @@ Common symbol size file key4 0x10 ./my_software/my_code.o uwTick 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o +LCD_RAM_Tab 0x17 ./my_software/ht1621.o pFlash 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.o -dis_buff 0xa ./my_software/my_code.o +dis_buff 0xa ./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 @@ -84,6 +85,7 @@ Discarded input sections .group 0x0000000000000000 0xc ./Core/Src/main.o .group 0x0000000000000000 0xc ./Core/Src/main.o .group 0x0000000000000000 0xc ./Core/Src/main.o + .group 0x0000000000000000 0xc ./Core/Src/main.o .text 0x0000000000000000 0x0 ./Core/Src/main.o .data 0x0000000000000000 0x0 ./Core/Src/main.o .bss 0x0000000000000000 0x0 ./Core/Src/main.o @@ -1485,6 +1487,8 @@ Discarded input sections .bss 0x0000000000000000 0x0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o .text.HAL_GPIO_DeInit 0x0000000000000000 0x1a0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o + .text.HAL_GPIO_ReadPin + 0x0000000000000000 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o .text.HAL_GPIO_TogglePin 0x0000000000000000 0x36 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o .text.HAL_GPIO_LockPin @@ -2538,6 +2542,94 @@ Discarded input sections .debug_macro 0x0000000000000000 0x2b ./my_software/button.o .debug_macro 0x0000000000000000 0xf1 ./my_software/button.o .debug_macro 0x0000000000000000 0x88 ./my_software/button.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/ht1621.o + .text 0x0000000000000000 0x0 ./my_software/ht1621.o + .data 0x0000000000000000 0x0 ./my_software/ht1621.o + .bss 0x0000000000000000 0x0 ./my_software/ht1621.o + .text.WritenDataHT1621 + 0x0000000000000000 0x182 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0xa7e ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x12d ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x2e ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x22 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x22 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x8e ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x51 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x103 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x6a ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x1df ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x1c ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x22 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0xb5 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x391 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x6e67 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x66 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x34a6 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x174 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x55 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x924 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0xe5 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x1af ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0xb3 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x1a0 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x1ed ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x34 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x43 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x28 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x33d ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0xbc ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0xb0 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x15a ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x22c ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x61 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0xa5 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x4c ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x2b ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0xf1 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x88 ./my_software/ht1621.o + .debug_macro 0x0000000000000000 0x28 ./my_software/ht1621.o + .group 0x0000000000000000 0xc ./my_software/my_code.o + .group 0x0000000000000000 0xc ./my_software/my_code.o .group 0x0000000000000000 0xc ./my_software/my_code.o .group 0x0000000000000000 0xc ./my_software/my_code.o .group 0x0000000000000000 0xc ./my_software/my_code.o @@ -2580,6 +2672,7 @@ Discarded input sections .text 0x0000000000000000 0x0 ./my_software/my_code.o .data 0x0000000000000000 0x0 ./my_software/my_code.o .bss 0x0000000000000000 0x0 ./my_software/my_code.o + .text.Read_Ds 0x0000000000000000 0x26 ./my_software/my_code.o .debug_macro 0x0000000000000000 0xa7e ./my_software/my_code.o .debug_macro 0x0000000000000000 0x12d ./my_software/my_code.o .debug_macro 0x0000000000000000 0x2e ./my_software/my_code.o @@ -2703,6 +2796,7 @@ LOAD ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.o LOAD ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o LOAD ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o LOAD ./my_software/button.o +LOAD ./my_software/ht1621.o LOAD ./my_software/my_code.o START GROUP 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/libc_nano.a @@ -2735,7 +2829,7 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id 0x0000000008000000 g_pfnVectors 0x00000000080000c0 . = ALIGN (0x4) -.text 0x00000000080000c0 0x2f8c +.text 0x00000000080000c0 0x303c 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 @@ -2867,140 +2961,143 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .text.HAL_GPIO_Init 0x0000000008001354 0x2e0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o 0x0000000008001354 HAL_GPIO_Init - .text.HAL_GPIO_ReadPin - 0x0000000008001634 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o - 0x0000000008001634 HAL_GPIO_ReadPin .text.HAL_GPIO_WritePin - 0x000000000800166e 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o - 0x000000000800166e HAL_GPIO_WritePin + 0x0000000008001634 0x3a ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o + 0x0000000008001634 HAL_GPIO_WritePin + *fill* 0x000000000800166e 0x2 .text.HAL_RCC_OscConfig - 0x00000000080016a8 0x634 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o - 0x00000000080016a8 HAL_RCC_OscConfig + 0x0000000008001670 0x634 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + 0x0000000008001670 HAL_RCC_OscConfig .text.HAL_RCC_ClockConfig - 0x0000000008001cdc 0x19c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o - 0x0000000008001cdc HAL_RCC_ClockConfig + 0x0000000008001ca4 0x19c ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + 0x0000000008001ca4 HAL_RCC_ClockConfig .text.HAL_RCC_GetSysClockFreq - 0x0000000008001e78 0xc8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o - 0x0000000008001e78 HAL_RCC_GetSysClockFreq + 0x0000000008001e40 0xc8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + 0x0000000008001e40 HAL_RCC_GetSysClockFreq .text.GEI_BUTTON_CODE - 0x0000000008001f40 0xbc ./my_software/button.o - 0x0000000008001f40 GEI_BUTTON_CODE + 0x0000000008001f08 0xbc ./my_software/button.o + 0x0000000008001f08 GEI_BUTTON_CODE + .text.WriteClockHT1621 + 0x0000000008001fc4 0x26 ./my_software/ht1621.o + 0x0000000008001fc4 WriteClockHT1621 + .text.WriteCommandHT1621 + 0x0000000008001fea 0xee ./my_software/ht1621.o + 0x0000000008001fea WriteCommandHT1621 + .text.Write1DataHT1621 + 0x00000000080020d8 0x148 ./my_software/ht1621.o + 0x00000000080020d8 Write1DataHT1621 + .text.HT1621_num_init + 0x0000000008002220 0xfc ./my_software/ht1621.o + 0x0000000008002220 HT1621_num_init + .text.HT1621_Init + 0x000000000800231c 0x62 ./my_software/ht1621.o + 0x000000000800231c HT1621_Init + .text.HT1621_Display + 0x000000000800237e 0x4a ./my_software/ht1621.o + 0x000000000800237e HT1621_Display .text.ds_in_or_out - 0x0000000008001ffc 0x6c ./my_software/my_code.o - 0x0000000008001ffc ds_in_or_out - .text.Read_Ds 0x0000000008002068 0x26 ./my_software/my_code.o - 0x0000000008002068 Read_Ds - .text.Sand_Byte_to_595 - 0x000000000800208e 0x142 ./my_software/my_code.o - 0x000000000800208e Sand_Byte_to_595 + 0x00000000080023c8 0x6c ./my_software/my_code.o + 0x00000000080023c8 ds_in_or_out .text.Sand_Byte_to_595_2 - 0x00000000080021d0 0xd4 ./my_software/my_code.o - 0x00000000080021d0 Sand_Byte_to_595_2 - .text.display_and_button_loop - 0x00000000080022a4 0x1b4 ./my_software/my_code.o - 0x00000000080022a4 display_and_button_loop + 0x0000000008002434 0xd4 ./my_software/my_code.o + 0x0000000008002434 Sand_Byte_to_595_2 .text.hc2_sever - 0x0000000008002458 0xa4 ./my_software/my_code.o - 0x0000000008002458 hc2_sever + 0x0000000008002508 0xa4 ./my_software/my_code.o + 0x0000000008002508 hc2_sever .text.moto_server - 0x00000000080024fc 0x1c4 ./my_software/my_code.o - 0x00000000080024fc moto_server - .text.my_code 0x00000000080026c0 0x91c ./my_software/my_code.o - 0x00000000080026c0 my_code + 0x00000000080025ac 0x1c4 ./my_software/my_code.o + 0x00000000080025ac moto_server + .text.my_code 0x0000000008002770 0x91c ./my_software/my_code.o + 0x0000000008002770 my_code .text.__libc_init_array - 0x0000000008002fdc 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) - 0x0000000008002fdc __libc_init_array - .text.memset 0x0000000008003024 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) - 0x0000000008003024 memset + 0x000000000800308c 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) + 0x000000000800308c __libc_init_array + .text.memset 0x00000000080030d4 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) + 0x00000000080030d4 memset *(.glue_7) - .glue_7 0x0000000008003034 0x0 linker stubs + .glue_7 0x00000000080030e4 0x0 linker stubs *(.glue_7t) - .glue_7t 0x0000000008003034 0x0 linker stubs + .glue_7t 0x00000000080030e4 0x0 linker stubs *(.eh_frame) - .eh_frame 0x0000000008003034 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 0x00000000080030e4 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 0x0000000008003034 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 - 0x0000000008003034 _init - .init 0x0000000008003038 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 0x00000000080030e4 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 + 0x00000000080030e4 _init + .init 0x00000000080030e8 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 0x0000000008003040 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 - 0x0000000008003040 _fini - .fini 0x0000000008003044 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 - 0x000000000800304c . = ALIGN (0x4) - 0x000000000800304c _etext = . + .fini 0x00000000080030f0 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 + 0x00000000080030f0 _fini + .fini 0x00000000080030f4 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 + 0x00000000080030fc . = ALIGN (0x4) + 0x00000000080030fc _etext = . -.vfp11_veneer 0x000000000800304c 0x0 - .vfp11_veneer 0x000000000800304c 0x0 linker stubs +.vfp11_veneer 0x00000000080030fc 0x0 + .vfp11_veneer 0x00000000080030fc 0x0 linker stubs -.v4_bx 0x000000000800304c 0x0 - .v4_bx 0x000000000800304c 0x0 linker stubs +.v4_bx 0x00000000080030fc 0x0 + .v4_bx 0x00000000080030fc 0x0 linker stubs -.iplt 0x000000000800304c 0x0 - .iplt 0x000000000800304c 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 0x00000000080030fc 0x0 + .iplt 0x00000000080030fc 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 0x000000000800304c 0x5c - 0x000000000800304c . = ALIGN (0x4) +.rodata 0x00000000080030fc 0x60 + 0x00000000080030fc . = ALIGN (0x4) *(.rodata) - .rodata 0x000000000800304c 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + .rodata 0x00000000080030fc 0x20 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o *(.rodata*) .rodata.AHBPrescTable - 0x000000000800306c 0x10 ./Core/Src/system_stm32f0xx.o - 0x000000000800306c AHBPrescTable - .rodata.d_num_data - 0x000000000800307c 0xa ./my_software/my_code.o - 0x000000000800307c d_num_data - *fill* 0x0000000008003086 0x2 - .rodata.num_com - 0x0000000008003088 0x4 ./my_software/my_code.o - 0x0000000008003088 num_com - .rodata.d_com 0x000000000800308c 0x4 ./my_software/my_code.o - 0x000000000800308c d_com + 0x000000000800311c 0x10 ./Core/Src/system_stm32f0xx.o + 0x000000000800311c AHBPrescTable + .rodata.LED_Tab + 0x000000000800312c 0x17 ./my_software/ht1621.o + 0x000000000800312c LED_Tab + *fill* 0x0000000008003143 0x1 .rodata.my_code - 0x0000000008003090 0x18 ./my_software/my_code.o - 0x00000000080030a8 . = ALIGN (0x4) + 0x0000000008003144 0x18 ./my_software/my_code.o + 0x000000000800315c . = ALIGN (0x4) -.rel.dyn 0x00000000080030a8 0x0 - .rel.iplt 0x00000000080030a8 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 0x000000000800315c 0x0 + .rel.iplt 0x000000000800315c 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 0x00000000080030a8 0x0 - 0x00000000080030a8 . = ALIGN (0x4) +.ARM.extab 0x000000000800315c 0x0 + 0x000000000800315c . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x00000000080030a8 . = ALIGN (0x4) + 0x000000000800315c . = ALIGN (0x4) -.ARM 0x00000000080030a8 0x0 - 0x00000000080030a8 . = ALIGN (0x4) - 0x00000000080030a8 __exidx_start = . +.ARM 0x000000000800315c 0x0 + 0x000000000800315c . = ALIGN (0x4) + 0x000000000800315c __exidx_start = . *(.ARM.exidx*) - 0x00000000080030a8 __exidx_end = . - 0x00000000080030a8 . = ALIGN (0x4) + 0x000000000800315c __exidx_end = . + 0x000000000800315c . = ALIGN (0x4) -.preinit_array 0x00000000080030a8 0x0 - 0x00000000080030a8 . = ALIGN (0x4) - 0x00000000080030a8 PROVIDE (__preinit_array_start = .) +.preinit_array 0x000000000800315c 0x0 + 0x000000000800315c . = ALIGN (0x4) + 0x000000000800315c PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x00000000080030a8 PROVIDE (__preinit_array_end = .) - 0x00000000080030a8 . = ALIGN (0x4) + 0x000000000800315c PROVIDE (__preinit_array_end = .) + 0x000000000800315c . = ALIGN (0x4) -.init_array 0x00000000080030a8 0x4 - 0x00000000080030a8 . = ALIGN (0x4) - 0x00000000080030a8 PROVIDE (__init_array_start = .) +.init_array 0x000000000800315c 0x4 + 0x000000000800315c . = ALIGN (0x4) + 0x000000000800315c PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x00000000080030a8 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 - 0x00000000080030ac PROVIDE (__init_array_end = .) - 0x00000000080030ac . = ALIGN (0x4) + .init_array 0x000000000800315c 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 + 0x0000000008003160 PROVIDE (__init_array_end = .) + 0x0000000008003160 . = ALIGN (0x4) -.fini_array 0x00000000080030ac 0x4 - 0x00000000080030ac . = ALIGN (0x4) +.fini_array 0x0000000008003160 0x4 + 0x0000000008003160 . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x00000000080030ac 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 0x0000000008003160 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 = .) - 0x00000000080030b0 . = ALIGN (0x4) - 0x00000000080030b0 _sidata = LOADADDR (.data) + 0x0000000008003164 . = ALIGN (0x4) + 0x0000000008003164 _sidata = LOADADDR (.data) -.data 0x0000000020000000 0xc load address 0x00000000080030b0 +.data 0x0000000020000000 0xc load address 0x0000000008003164 0x0000000020000000 . = ALIGN (0x4) 0x0000000020000000 _sdata = . *(.data) @@ -3020,45 +3117,48 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id *fill* 0x0000000020000009 0x3 0x000000002000000c _edata = . -.igot.plt 0x000000002000000c 0x0 load address 0x00000000080030bc +.igot.plt 0x000000002000000c 0x0 load address 0x0000000008003170 .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 0xe0 load address 0x00000000080030bc +.bss 0x000000002000000c 0xf8 load address 0x0000000008003170 0x000000002000000c _sbss = . 0x000000002000000c __bss_start__ = _sbss *(.bss) .bss 0x000000002000000c 0x1c /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 *(.bss*) *(COMMON) - COMMON 0x0000000020000028 0x40 ./Core/Src/main.o - 0x0000000020000028 hadc - COMMON 0x0000000020000068 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o - 0x0000000020000068 uwTick - COMMON 0x000000002000006c 0x80 ./my_software/my_code.o - 0x000000002000006c key4 - 0x000000002000007c dis_buff - 0x0000000020000088 key1 - 0x0000000020000098 overload - 0x00000000200000a8 key3 - 0x00000000200000b8 ADCC - 0x00000000200000cc key2 - 0x00000000200000dc moto - 0x00000000200000ec . = ALIGN (0x4) - 0x00000000200000ec _ebss = . - 0x00000000200000ec __bss_end__ = _ebss + COMMON 0x0000000020000028 0x4c ./Core/Src/main.o + 0x0000000020000028 dis_buff + 0x0000000020000034 hadc + COMMON 0x0000000020000074 0x4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o + 0x0000000020000074 uwTick + COMMON 0x0000000020000078 0x17 ./my_software/ht1621.o + 0x0000000020000078 LCD_RAM_Tab + *fill* 0x000000002000008f 0x1 + COMMON 0x0000000020000090 0x74 ./my_software/my_code.o + 0x0000000020000090 key4 + 0x00000000200000a0 key1 + 0x00000000200000b0 overload + 0x00000000200000c0 key3 + 0x00000000200000d0 ADCC + 0x00000000200000e4 key2 + 0x00000000200000f4 moto + 0x0000000020000104 . = ALIGN (0x4) + 0x0000000020000104 _ebss = . + 0x0000000020000104 __bss_end__ = _ebss ._user_heap_stack - 0x00000000200000ec 0x604 load address 0x00000000080030bc - 0x00000000200000f0 . = ALIGN (0x8) - *fill* 0x00000000200000ec 0x4 + 0x0000000020000104 0x604 load address 0x0000000008003170 + 0x0000000020000108 . = ALIGN (0x8) + *fill* 0x0000000020000104 0x4 [!provide] PROVIDE (end = .) - 0x00000000200000f0 PROVIDE (_end = .) - 0x00000000200002f0 . = (. + _Min_Heap_Size) - *fill* 0x00000000200000f0 0x200 - 0x00000000200006f0 . = (. + _Min_Stack_Size) - *fill* 0x00000000200002f0 0x400 - 0x00000000200006f0 . = ALIGN (0x8) + 0x0000000020000108 PROVIDE (_end = .) + 0x0000000020000308 . = (. + _Min_Heap_Size) + *fill* 0x0000000020000108 0x200 + 0x0000000020000708 . = (. + _Min_Stack_Size) + *fill* 0x0000000020000308 0x400 + 0x0000000020000708 . = ALIGN (0x8) /DISCARD/ libc.a(*) @@ -3095,54 +3195,58 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .ARM.attributes 0x00000000000001f7 0x2c ./my_software/button.o .ARM.attributes - 0x0000000000000223 0x2c ./my_software/my_code.o + 0x0000000000000223 0x2c ./my_software/ht1621.o .ARM.attributes - 0x000000000000024f 0x2c /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) + 0x000000000000024f 0x2c ./my_software/my_code.o .ARM.attributes - 0x000000000000027b 0x2c /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) + 0x000000000000027b 0x2c /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) .ARM.attributes - 0x00000000000002a7 0x1e /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(_udivsi3.o) + 0x00000000000002a7 0x2c /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) .ARM.attributes - 0x00000000000002c5 0x1e /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(_divsi3.o) + 0x00000000000002d3 0x1e /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(_udivsi3.o) .ARM.attributes - 0x00000000000002e3 0x1e /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(_dvmd_tls.o) + 0x00000000000002f1 0x1e /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(_divsi3.o) .ARM.attributes - 0x0000000000000301 0x1e /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 + 0x000000000000030f 0x1e /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(_dvmd_tls.o) + .ARM.attributes + 0x000000000000032d 0x1e /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 OUTPUT(Motor_Controller2.elf elf32-littlearm) LOAD linker stubs 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/libc.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/../../../../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 0x50b2 - .debug_info 0x0000000000000000 0xa5b ./Core/Src/main.o - .debug_info 0x0000000000000a5b 0x888 ./Core/Src/stm32f0xx_hal_msp.o - .debug_info 0x00000000000012e3 0x1b3 ./Core/Src/stm32f0xx_it.o - .debug_info 0x0000000000001496 0x2c3 ./Core/Src/system_stm32f0xx.o - .debug_info 0x0000000000001759 0x22 ./Core/Startup/startup_stm32f030f4px.o - .debug_info 0x000000000000177b 0x6be ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o - .debug_info 0x0000000000001e39 0xd62 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o - .debug_info 0x0000000000002b9b 0x7a0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o - .debug_info 0x000000000000333b 0x6d3 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o - .debug_info 0x0000000000003a0e 0x88d ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o - .debug_info 0x000000000000429b 0x1d4 ./my_software/button.o - .debug_info 0x000000000000446f 0xc43 ./my_software/my_code.o +.debug_info 0x0000000000000000 0x54e8 + .debug_info 0x0000000000000000 0xb3c ./Core/Src/main.o + .debug_info 0x0000000000000b3c 0x888 ./Core/Src/stm32f0xx_hal_msp.o + .debug_info 0x00000000000013c4 0x1b3 ./Core/Src/stm32f0xx_it.o + .debug_info 0x0000000000001577 0x2c3 ./Core/Src/system_stm32f0xx.o + .debug_info 0x000000000000183a 0x22 ./Core/Startup/startup_stm32f030f4px.o + .debug_info 0x000000000000185c 0x6be ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o + .debug_info 0x0000000000001f1a 0xd62 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o + .debug_info 0x0000000000002c7c 0x7a0 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o + .debug_info 0x000000000000341c 0x6d3 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o + .debug_info 0x0000000000003aef 0x88d ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + .debug_info 0x000000000000437c 0x1d4 ./my_software/button.o + .debug_info 0x0000000000004550 0x4cd ./my_software/ht1621.o + .debug_info 0x0000000000004a1d 0xacb ./my_software/my_code.o -.debug_abbrev 0x0000000000000000 0x13fb - .debug_abbrev 0x0000000000000000 0x208 ./Core/Src/main.o - .debug_abbrev 0x0000000000000208 0x1ac ./Core/Src/stm32f0xx_hal_msp.o - .debug_abbrev 0x00000000000003b4 0xd2 ./Core/Src/stm32f0xx_it.o - .debug_abbrev 0x0000000000000486 0x145 ./Core/Src/system_stm32f0xx.o - .debug_abbrev 0x00000000000005cb 0x12 ./Core/Startup/startup_stm32f030f4px.o - .debug_abbrev 0x00000000000005dd 0x21e ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o - .debug_abbrev 0x00000000000007fb 0x1f1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o - .debug_abbrev 0x00000000000009ec 0x2a9 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o - .debug_abbrev 0x0000000000000c95 0x1e8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o - .debug_abbrev 0x0000000000000e7d 0x23b ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o - .debug_abbrev 0x00000000000010b8 0xf6 ./my_software/button.o - .debug_abbrev 0x00000000000011ae 0x24d ./my_software/my_code.o +.debug_abbrev 0x0000000000000000 0x1556 + .debug_abbrev 0x0000000000000000 0x21f ./Core/Src/main.o + .debug_abbrev 0x000000000000021f 0x1ac ./Core/Src/stm32f0xx_hal_msp.o + .debug_abbrev 0x00000000000003cb 0xd2 ./Core/Src/stm32f0xx_it.o + .debug_abbrev 0x000000000000049d 0x145 ./Core/Src/system_stm32f0xx.o + .debug_abbrev 0x00000000000005e2 0x12 ./Core/Startup/startup_stm32f030f4px.o + .debug_abbrev 0x00000000000005f4 0x21e ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o + .debug_abbrev 0x0000000000000812 0x1f1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o + .debug_abbrev 0x0000000000000a03 0x2a9 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o + .debug_abbrev 0x0000000000000cac 0x1e8 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o + .debug_abbrev 0x0000000000000e94 0x23b ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + .debug_abbrev 0x00000000000010cf 0xf6 ./my_software/button.o + .debug_abbrev 0x00000000000011c5 0x1a9 ./my_software/ht1621.o + .debug_abbrev 0x000000000000136e 0x1e8 ./my_software/my_code.o -.debug_aranges 0x0000000000000000 0x4d8 +.debug_aranges 0x0000000000000000 0x518 .debug_aranges 0x0000000000000000 0x40 ./Core/Src/main.o .debug_aranges @@ -3166,9 +3270,11 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .debug_aranges 0x0000000000000460 0x20 ./my_software/button.o .debug_aranges - 0x0000000000000480 0x58 ./my_software/my_code.o + 0x0000000000000480 0x50 ./my_software/ht1621.o + .debug_aranges + 0x00000000000004d0 0x48 ./my_software/my_code.o -.debug_ranges 0x0000000000000000 0x420 +.debug_ranges 0x0000000000000000 0x450 .debug_ranges 0x0000000000000000 0x30 ./Core/Src/main.o .debug_ranges 0x0000000000000030 0x20 ./Core/Src/stm32f0xx_hal_msp.o .debug_ranges 0x0000000000000050 0x30 ./Core/Src/stm32f0xx_it.o @@ -3180,61 +3286,67 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .debug_ranges 0x0000000000000310 0x48 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o .debug_ranges 0x0000000000000358 0x70 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .debug_ranges 0x00000000000003c8 0x10 ./my_software/button.o - .debug_ranges 0x00000000000003d8 0x48 ./my_software/my_code.o + .debug_ranges 0x00000000000003d8 0x40 ./my_software/ht1621.o + .debug_ranges 0x0000000000000418 0x38 ./my_software/my_code.o -.debug_macro 0x0000000000000000 0xe973 - .debug_macro 0x0000000000000000 0x1c6 ./Core/Src/main.o - .debug_macro 0x00000000000001c6 0xa7e ./Core/Src/main.o - .debug_macro 0x0000000000000c44 0x12d ./Core/Src/main.o - .debug_macro 0x0000000000000d71 0x2e ./Core/Src/main.o - .debug_macro 0x0000000000000d9f 0x22 ./Core/Src/main.o - .debug_macro 0x0000000000000dc1 0x22 ./Core/Src/main.o - .debug_macro 0x0000000000000de3 0x8e ./Core/Src/main.o - .debug_macro 0x0000000000000e71 0x51 ./Core/Src/main.o - .debug_macro 0x0000000000000ec2 0x103 ./Core/Src/main.o - .debug_macro 0x0000000000000fc5 0x6a ./Core/Src/main.o - .debug_macro 0x000000000000102f 0x1df ./Core/Src/main.o - .debug_macro 0x000000000000120e 0x1c ./Core/Src/main.o - .debug_macro 0x000000000000122a 0x22 ./Core/Src/main.o - .debug_macro 0x000000000000124c 0xb5 ./Core/Src/main.o - .debug_macro 0x0000000000001301 0x391 ./Core/Src/main.o - .debug_macro 0x0000000000001692 0x6e67 ./Core/Src/main.o - .debug_macro 0x00000000000084f9 0x66 ./Core/Src/main.o - .debug_macro 0x000000000000855f 0x34a6 ./Core/Src/main.o - .debug_macro 0x000000000000ba05 0x174 ./Core/Src/main.o - .debug_macro 0x000000000000bb79 0x55 ./Core/Src/main.o - .debug_macro 0x000000000000bbce 0x924 ./Core/Src/main.o - .debug_macro 0x000000000000c4f2 0xe5 ./Core/Src/main.o - .debug_macro 0x000000000000c5d7 0x1af ./Core/Src/main.o - .debug_macro 0x000000000000c786 0xb3 ./Core/Src/main.o - .debug_macro 0x000000000000c839 0x1a0 ./Core/Src/main.o - .debug_macro 0x000000000000c9d9 0x1ed ./Core/Src/main.o - .debug_macro 0x000000000000cbc6 0x34 ./Core/Src/main.o - .debug_macro 0x000000000000cbfa 0x43 ./Core/Src/main.o - .debug_macro 0x000000000000cc3d 0x28 ./Core/Src/main.o - .debug_macro 0x000000000000cc65 0x33d ./Core/Src/main.o - .debug_macro 0x000000000000cfa2 0xbc ./Core/Src/main.o - .debug_macro 0x000000000000d05e 0xb0 ./Core/Src/main.o - .debug_macro 0x000000000000d10e 0x15a ./Core/Src/main.o - .debug_macro 0x000000000000d268 0x22c ./Core/Src/main.o - .debug_macro 0x000000000000d494 0x61 ./Core/Src/main.o - .debug_macro 0x000000000000d4f5 0xa5 ./Core/Src/main.o - .debug_macro 0x000000000000d59a 0x4c ./Core/Src/main.o - .debug_macro 0x000000000000d5e6 0x2b ./Core/Src/main.o - .debug_macro 0x000000000000d611 0xf1 ./Core/Src/main.o - .debug_macro 0x000000000000d702 0x88 ./Core/Src/main.o - .debug_macro 0x000000000000d78a 0x1bc ./Core/Src/stm32f0xx_hal_msp.o - .debug_macro 0x000000000000d946 0x1c6 ./Core/Src/stm32f0xx_it.o - .debug_macro 0x000000000000db0c 0x1ad ./Core/Src/system_stm32f0xx.o - .debug_macro 0x000000000000dcb9 0x1d1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o - .debug_macro 0x000000000000de8a 0x1d1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o - .debug_macro 0x000000000000e05b 0x1ad ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o - .debug_macro 0x000000000000e208 0x1b4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o - .debug_macro 0x000000000000e3bc 0x1bf ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o - .debug_macro 0x000000000000e57b 0x1cc ./my_software/button.o - .debug_macro 0x000000000000e747 0x22c ./my_software/my_code.o +.debug_macro 0x0000000000000000 0xec48 + .debug_macro 0x0000000000000000 0x1c5 ./Core/Src/main.o + .debug_macro 0x00000000000001c5 0xa7e ./Core/Src/main.o + .debug_macro 0x0000000000000c43 0x12d ./Core/Src/main.o + .debug_macro 0x0000000000000d70 0x2e ./Core/Src/main.o + .debug_macro 0x0000000000000d9e 0x22 ./Core/Src/main.o + .debug_macro 0x0000000000000dc0 0x22 ./Core/Src/main.o + .debug_macro 0x0000000000000de2 0x8e ./Core/Src/main.o + .debug_macro 0x0000000000000e70 0x51 ./Core/Src/main.o + .debug_macro 0x0000000000000ec1 0x103 ./Core/Src/main.o + .debug_macro 0x0000000000000fc4 0x6a ./Core/Src/main.o + .debug_macro 0x000000000000102e 0x1df ./Core/Src/main.o + .debug_macro 0x000000000000120d 0x1c ./Core/Src/main.o + .debug_macro 0x0000000000001229 0x22 ./Core/Src/main.o + .debug_macro 0x000000000000124b 0xb5 ./Core/Src/main.o + .debug_macro 0x0000000000001300 0x391 ./Core/Src/main.o + .debug_macro 0x0000000000001691 0x6e67 ./Core/Src/main.o + .debug_macro 0x00000000000084f8 0x66 ./Core/Src/main.o + .debug_macro 0x000000000000855e 0x34a6 ./Core/Src/main.o + .debug_macro 0x000000000000ba04 0x174 ./Core/Src/main.o + .debug_macro 0x000000000000bb78 0x55 ./Core/Src/main.o + .debug_macro 0x000000000000bbcd 0x924 ./Core/Src/main.o + .debug_macro 0x000000000000c4f1 0xe5 ./Core/Src/main.o + .debug_macro 0x000000000000c5d6 0x1af ./Core/Src/main.o + .debug_macro 0x000000000000c785 0xb3 ./Core/Src/main.o + .debug_macro 0x000000000000c838 0x1a0 ./Core/Src/main.o + .debug_macro 0x000000000000c9d8 0x1ed ./Core/Src/main.o + .debug_macro 0x000000000000cbc5 0x34 ./Core/Src/main.o + .debug_macro 0x000000000000cbf9 0x43 ./Core/Src/main.o + .debug_macro 0x000000000000cc3c 0x28 ./Core/Src/main.o + .debug_macro 0x000000000000cc64 0x33d ./Core/Src/main.o + .debug_macro 0x000000000000cfa1 0xbc ./Core/Src/main.o + .debug_macro 0x000000000000d05d 0xb0 ./Core/Src/main.o + .debug_macro 0x000000000000d10d 0x15a ./Core/Src/main.o + .debug_macro 0x000000000000d267 0x22c ./Core/Src/main.o + .debug_macro 0x000000000000d493 0x61 ./Core/Src/main.o + .debug_macro 0x000000000000d4f4 0xa5 ./Core/Src/main.o + .debug_macro 0x000000000000d599 0x4c ./Core/Src/main.o + .debug_macro 0x000000000000d5e5 0x2b ./Core/Src/main.o + .debug_macro 0x000000000000d610 0xf1 ./Core/Src/main.o + .debug_macro 0x000000000000d701 0x88 ./Core/Src/main.o + .debug_macro 0x000000000000d789 0x28 ./Core/Src/main.o + .debug_macro 0x000000000000d7b1 0x1bc ./Core/Src/stm32f0xx_hal_msp.o + .debug_macro 0x000000000000d96d 0x1c6 ./Core/Src/stm32f0xx_it.o + .debug_macro 0x000000000000db33 0x1ad ./Core/Src/system_stm32f0xx.o + .debug_macro 0x000000000000dce0 0x1d1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o + .debug_macro 0x000000000000deb1 0x1d1 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o + .debug_macro 0x000000000000e082 0x1ad ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o + .debug_macro 0x000000000000e22f 0x1b4 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o + .debug_macro 0x000000000000e3e3 0x1bf ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + .debug_macro 0x000000000000e5a2 0x1cc ./my_software/button.o + .debug_macro 0x000000000000e76e 0x212 ./my_software/ht1621.o + .debug_macro 0x000000000000e980 0x5e ./my_software/ht1621.o + .debug_macro 0x000000000000e9de 0x1e4 ./my_software/my_code.o + .debug_macro 0x000000000000ebc2 0x22 ./my_software/my_code.o + .debug_macro 0x000000000000ebe4 0x64 ./my_software/my_code.o -.debug_line 0x0000000000000000 0x7107 +.debug_line 0x0000000000000000 0x791f .debug_line 0x0000000000000000 0x851 ./Core/Src/main.o .debug_line 0x0000000000000851 0x727 ./Core/Src/stm32f0xx_hal_msp.o .debug_line 0x0000000000000f78 0x744 ./Core/Src/stm32f0xx_it.o @@ -3246,33 +3358,36 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .debug_line 0x0000000000004369 0xad7 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o .debug_line 0x0000000000004e40 0xd46 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .debug_line 0x0000000000005b86 0x73a ./my_software/button.o - .debug_line 0x00000000000062c0 0xe47 ./my_software/my_code.o + .debug_line 0x00000000000062c0 0x987 ./my_software/ht1621.o + .debug_line 0x0000000000006c47 0xcd8 ./my_software/my_code.o -.debug_str 0x0000000000000000 0x567a6 - .debug_str 0x0000000000000000 0x5556f ./Core/Src/main.o - 0x55853 (size before relaxing) - .debug_str 0x000000000005556f 0x4e ./Core/Src/stm32f0xx_hal_msp.o +.debug_str 0x0000000000000000 0x5692c + .debug_str 0x0000000000000000 0x55732 ./Core/Src/main.o + 0x55a16 (size before relaxing) + .debug_str 0x0000000000055732 0x4e ./Core/Src/stm32f0xx_hal_msp.o 0x556a0 (size before relaxing) - .debug_str 0x00000000000555bd 0x76 ./Core/Src/stm32f0xx_it.o + .debug_str 0x0000000000055780 0x76 ./Core/Src/stm32f0xx_it.o 0x5528c (size before relaxing) - .debug_str 0x0000000000055633 0x5f ./Core/Src/system_stm32f0xx.o + .debug_str 0x00000000000557f6 0x5f ./Core/Src/system_stm32f0xx.o 0x550bf (size before relaxing) - .debug_str 0x0000000000055692 0x36 ./Core/Startup/startup_stm32f030f4px.o + .debug_str 0x0000000000055855 0x36 ./Core/Startup/startup_stm32f030f4px.o 0x7c (size before relaxing) - .debug_str 0x00000000000556c8 0x413 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o + .debug_str 0x000000000005588b 0x413 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.o 0x55596 (size before relaxing) - .debug_str 0x0000000000055adb 0x393 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o + .debug_str 0x0000000000055c9e 0x393 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_adc.o 0x557bf (size before relaxing) - .debug_str 0x0000000000055e6e 0x1dc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o + .debug_str 0x0000000000056031 0x1dc ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.o 0x5544a (size before relaxing) - .debug_str 0x000000000005604a 0x150 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o + .debug_str 0x000000000005620d 0x150 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o 0x5529e (size before relaxing) - .debug_str 0x000000000005619a 0x240 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o + .debug_str 0x000000000005635d 0x240 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o 0x554c9 (size before relaxing) - .debug_str 0x00000000000563da 0x40 ./my_software/button.o + .debug_str 0x000000000005659d 0x40 ./my_software/button.o 0x5526b (size before relaxing) - .debug_str 0x000000000005641a 0x38c ./my_software/my_code.o - 0x559e8 (size before relaxing) + .debug_str 0x00000000000565dd 0x217 ./my_software/ht1621.o + 0x55642 (size before relaxing) + .debug_str 0x00000000000567f4 0x138 ./my_software/my_code.o + 0x55a38 (size before relaxing) .comment 0x0000000000000000 0x53 .comment 0x0000000000000000 0x53 ./Core/Src/main.o @@ -3286,9 +3401,10 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .comment 0x0000000000000053 0x54 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o .comment 0x0000000000000053 0x54 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .comment 0x0000000000000053 0x54 ./my_software/button.o + .comment 0x0000000000000053 0x54 ./my_software/ht1621.o .comment 0x0000000000000053 0x54 ./my_software/my_code.o -.debug_frame 0x0000000000000000 0xf50 +.debug_frame 0x0000000000000000 0xff4 .debug_frame 0x0000000000000000 0xa8 ./Core/Src/main.o .debug_frame 0x00000000000000a8 0x70 ./Core/Src/stm32f0xx_hal_msp.o .debug_frame 0x0000000000000118 0x9c ./Core/Src/stm32f0xx_it.o @@ -3299,8 +3415,9 @@ LOAD /Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.id .debug_frame 0x0000000000000ae4 0x110 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.o .debug_frame 0x0000000000000bf4 0x198 ./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.o .debug_frame 0x0000000000000d8c 0x30 ./my_software/button.o - .debug_frame 0x0000000000000dbc 0x108 ./my_software/my_code.o - .debug_frame 0x0000000000000ec4 0x2c /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) - .debug_frame 0x0000000000000ef0 0x20 /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) - .debug_frame 0x0000000000000f10 0x20 /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(_udivsi3.o) - .debug_frame 0x0000000000000f30 0x20 /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(_divsi3.o) + .debug_frame 0x0000000000000dbc 0xe4 ./my_software/ht1621.o + .debug_frame 0x0000000000000ea0 0xc8 ./my_software/my_code.o + .debug_frame 0x0000000000000f68 0x2c /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) + .debug_frame 0x0000000000000f94 0x20 /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) + .debug_frame 0x0000000000000fb4 0x20 /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(_udivsi3.o) + .debug_frame 0x0000000000000fd4 0x20 /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(_divsi3.o) diff --git a/Debug/my_software/ht1621.d b/Debug/my_software/ht1621.d new file mode 100644 index 0000000..63ccc72 --- /dev/null +++ b/Debug/my_software/ht1621.d @@ -0,0 +1,89 @@ +my_software/ht1621.o: ../my_software/ht1621.c ../my_software/ht1621.h \ + ../Core/Inc/main.h ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h \ + ../Core/Inc/stm32f0xx_hal_conf.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h \ + ../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h \ + ../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x6.h \ + ../Drivers/CMSIS/Include/core_cm0.h \ + ../Drivers/CMSIS/Include/cmsis_version.h \ + ../Drivers/CMSIS/Include/cmsis_compiler.h \ + ../Drivers/CMSIS/Include/cmsis_gcc.h \ + ../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ + ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ + ../my_software/my_code.h + +../my_software/ht1621.h: + +../Core/Inc/main.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h: + +../Core/Inc/stm32f0xx_hal_conf.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h: + +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h: + +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x6.h: + +../Drivers/CMSIS/Include/core_cm0.h: + +../Drivers/CMSIS/Include/cmsis_version.h: + +../Drivers/CMSIS/Include/cmsis_compiler.h: + +../Drivers/CMSIS/Include/cmsis_gcc.h: + +../Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_rcc_ex.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_gpio_ex.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_exti.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_dma_ex.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_cortex.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_adc_ex.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h: + +../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: + +../my_software/my_code.h: diff --git a/Debug/my_software/ht1621.su b/Debug/my_software/ht1621.su new file mode 100644 index 0000000..3151e69 --- /dev/null +++ b/Debug/my_software/ht1621.su @@ -0,0 +1,7 @@ +ht1621.c:19:6:WriteClockHT1621 8 static +ht1621.c:29:6:WriteCommandHT1621 24 static +ht1621.c:61:6:Write1DataHT1621 24 static +ht1621.c:103:6:WritenDataHT1621 24 static +ht1621.c:169:6:HT1621_num_init 16 static +ht1621.c:194:6:HT1621_Init 8 static +ht1621.c:222:6:HT1621_Display 8 static diff --git a/Debug/my_software/my_code.d b/Debug/my_software/my_code.d index b1e1b71..e20a41c 100644 --- a/Debug/my_software/my_code.d +++ b/Debug/my_software/my_code.d @@ -26,7 +26,7 @@ my_software/my_code.o: ../my_software/my_code.c ../my_software/my_code.h \ ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_i2c_ex.h \ ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr.h \ ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h \ - ../my_software/button.h + ../my_software/button.h ../my_software/ht1621.h ../my_software/my_code.h: @@ -87,3 +87,5 @@ my_software/my_code.o: ../my_software/my_code.c ../my_software/my_code.h \ ../Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pwr_ex.h: ../my_software/button.h: + +../my_software/ht1621.h: diff --git a/Debug/my_software/my_code.su b/Debug/my_software/my_code.su index 5fb1ab6..a349568 100644 --- a/Debug/my_software/my_code.su +++ b/Debug/my_software/my_code.su @@ -1,8 +1,6 @@ -my_code.c:71:6:ds_in_or_out 48 static -my_code.c:89:9:Read_Ds 8 static -my_code.c:95:6:Sand_Byte_to_595 24 static -my_code.c:128:6:Sand_Byte_to_595_2 24 static -my_code.c:161:6:display_and_button_loop 24 static -my_code.c:227:6:hc2_sever 16 static -my_code.c:253:6:moto_server 8 static -my_code.c:345:6:my_code 32 static +my_code.c:45:6:ds_in_or_out 48 static +my_code.c:63:9:Read_Ds 8 static +my_code.c:70:6:Sand_Byte_to_595_2 24 static +my_code.c:93:6:hc2_sever 16 static +my_code.c:119:6:moto_server 8 static +my_code.c:211:6:my_code 32 static diff --git a/Debug/my_software/subdir.mk b/Debug/my_software/subdir.mk index 421e02c..1bab65e 100644 --- a/Debug/my_software/subdir.mk +++ b/Debug/my_software/subdir.mk @@ -6,14 +6,17 @@ # Add inputs and outputs from these tool invocations to the build variables C_SRCS += \ ../my_software/button.c \ +../my_software/ht1621.c \ ../my_software/my_code.c OBJS += \ ./my_software/button.o \ +./my_software/ht1621.o \ ./my_software/my_code.o C_DEPS += \ ./my_software/button.d \ +./my_software/ht1621.d \ ./my_software/my_code.d diff --git a/Debug/objects.list b/Debug/objects.list index 0d64c74..c13f6e9 100644 --- a/Debug/objects.list +++ b/Debug/objects.list @@ -23,4 +23,5 @@ "./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.o" "./Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.o" "./my_software/button.o" +"./my_software/ht1621.o" "./my_software/my_code.o" diff --git a/my_software/ht1621.c b/my_software/ht1621.c new file mode 100644 index 0000000..733630e --- /dev/null +++ b/my_software/ht1621.c @@ -0,0 +1,236 @@ +/* + * ht1621.c + * + * Created on: 2021年10月12日 + * Author: wuwenfeng + */ + + +#include "ht1621.h" +#include "my_code.h" + +#define HT1621_addrbit 6 //驱动ic的ram地址位数 A5-A0 + +/** + * @brief HT1621 clk + * @param None + * @retval None + */ +void WriteClockHT1621(void) +{ + HC595_SCK(0); + HC595_SCK(1); +} +/** + * @brief Write HT1621 Command + * @param FunctonCode->功能/命令码 + * @retval None + */ +void WriteCommandHT1621(unsigned char FunctonCode) +{ + unsigned char Shift = 0x80; + unsigned char i; + HC595_RCK(0); //CS 片选开 + HC595_DCK(1); //100 + WriteClockHT1621(); + HC595_DCK(0); + WriteClockHT1621(); + HC595_DCK(0); + WriteClockHT1621(); + for(i = 0; i < 8; i++) + { + if(Shift & FunctonCode) + {HC595_DCK(1);} + else + {HC595_DCK(0);} + + WriteClockHT1621(); + Shift = Shift >> 1; + } + {HC595_DCK(0);} + WriteClockHT1621(); //发送一个 0 命令码中最后一位 X + HC595_RCK(1); //CS 片选关 + HC595_DCK(1); +} +/** + * @brief Write 1 data to HT1621 + * @param Addr->写入ram的地址 + * @param Databuf->写入ram的数据 + * @retval None + */ +void Write1DataHT1621(unsigned char Addr,unsigned char Dat) +{ + unsigned char i; + unsigned char Shift; + HC595_RCK(0); //CS 片选开 + HC595_DCK(1); //101 + WriteClockHT1621(); + HC595_DCK(0); + WriteClockHT1621(); + HC595_DCK(1); + WriteClockHT1621(); + Shift = 0x20; //屏蔽高3位 只用5位 + for( i = 0; i < HT1621_addrbit; i++) + { + if(Addr & Shift) + {HC595_DCK(1);} + else + {HC595_DCK(0);} + WriteClockHT1621(); + Shift = Shift >> 1; + } + + Shift = 0x01; + for (i = 0; i < 4; i++) + { + if( Dat & Shift) + {HC595_DCK(1);} + else + {HC595_DCK(0);} + WriteClockHT1621(); + Shift = Shift << 1; + } + HC595_RCK(1); //CS 片选关 + HC595_DCK(1); +} +/** + * @brief Write n data to HT1621 + * @param Addr->写入ram的起始地址 + * @param Databuf->写入ram的数据buffer + * @param Cnt->写入ram的数据个数 + * @retval None + */ +void WritenDataHT1621(unsigned char Addr,unsigned char *Databuf,unsigned char Cnt) +{ + unsigned char i,j; + unsigned char Shift; + unsigned char dataval; + HC595_RCK(0); //CS 片选开 + HC595_DCK(1); //101 + WriteClockHT1621(); + HC595_DCK(0); + WriteClockHT1621(); + HC595_DCK(1); + WriteClockHT1621(); + Shift = 0x20; //屏蔽高3位 只用5位 + for( i = 0; i < HT1621_addrbit; i++) + { + if (Addr & Shift) + {HC595_DCK(1);} + else + {HC595_DCK(0);} + WriteClockHT1621(); + Shift = Shift >> 1; + } + for (j = 0; j < Cnt; j++) + { + Shift = 0x01; + dataval=*Databuf++; + for (i = 0; i < 4; i++) + { + if( dataval & Shift) + {HC595_DCK(1);} + else + {HC595_DCK(0);} + WriteClockHT1621(); + Shift = Shift << 1; + } + } + HC595_RCK(1); //CS 片选关 + HC595_DCK(1); +} +/** + * @brief 数据交换,自动生成液晶需要的数组,此程序,需要根据液晶图纸修改 + * @param None + * @retval None + */ +const unsigned char LED_Tab[]= +{ + 0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71, //0-15 = 0--f + 0x58, //16=c + 0x37, //17=N + 0x40, //18=- + 0x0E, //19=J + 0x3E, //20=U + 0x76, //21=H + 0x30, //22=I +}; +unsigned char LCD_RAM_Tab[sizeof(LED_Tab)]; + +#define LCD_A 0x01 +#define LCD_B 0x02 +#define LCD_C 0x04 +#define LCD_D 0x08 +#define LCD_E 0x10 +#define LCD_F 0x20 +#define LCD_G 0x40 +#define LCD_P 0x80 + +void HT1621_num_init(void) +{ + unsigned char num,LCD_data; + + for(num=0; num>(a*2); - } - if(change_buff&&B) - { - lcd_buff[0]|=0x40>>(a*2); - } - if(change_buff&&C) - { - lcd_buff[2]|=0x40>>(a*2); - } - if(change_buff&&D) - { - lcd_buff[3]|=0x40>>(a*2); - } - if(change_buff&&E) - { - lcd_buff[2]|=0x80>>(a*2); - } - if(change_buff&&F) - { - lcd_buff[1]|=0x80>>(a*2); - } - if(change_buff&&G) - { - lcd_buff[1]|=0x40>>(a*2); - } - } - - //Sand_Byte_to_595(0xff,0xff); - //Sand_Byte_to_595(~h,~l); - //Sand_Byte_to_595(0,0); - //Sand_Byte_to_595(0xff,0xff); - - for(int a=0;a<4;a++) - { - l=lcd_buff[a]; - //h=((~num_com[a])&0x0F); - h=(~d_com[a]&0xf0)|((~num_com[a])&0x0F); - Sand_Byte_to_595(h,l); - dis_buff.button_flag[a]=Read_Ds(); - //Sand_Byte_to_595(~h,~l); - - } - - - - - - -} void hc2_sever() { char h=0; @@ -346,8 +212,7 @@ void my_code() { uint32_t runtime=0,move=0; uint8_t mode=0,overload_mode=0; - uint16_t adc,adc_times=0; - uint32_t adc_l; + uint16_t overload_times=0; long countdown=0; long countdown_set=15000; @@ -361,17 +226,19 @@ void my_code() dis_buff.moto2a=0; dis_buff.moto2b=0; -moto.moto_run=0; -moto.pwm_run=0; -moto.moto1a=0; -moto.moto1b=0; -moto.moto2a=0; -moto.moto2b=0; + moto.moto_run=0; + moto.pwm_run=0; + moto.moto1a=0; + moto.moto1b=0; + moto.moto2a=0; + moto.moto2b=0; -moto.moto1a_=0; -moto.moto1b_=0; -moto.moto2a_=0; -moto.moto2b_=0; + moto.moto1a_=0; + moto.moto1b_=0; + moto.moto2a_=0; + moto.moto2b_=0; + + HT1621_Init(); while(1) { //*adc读取 并计滤波 并计算温度*/ @@ -651,7 +518,8 @@ moto.moto2b_=0; GEI_BUTTON_CODE(&key2,dis_buff.button_flag[1]); GEI_BUTTON_CODE(&key3,dis_buff.button_flag[2]); GEI_BUTTON_CODE(&key4,dis_buff.button_flag[3]); - display_and_button_loop(); + //display_and_button_loop(); + HT1621_Display(); hc2_sever(); moto_server(); } diff --git a/my_software/my_code.h b/my_software/my_code.h index 4819008..5b589f9 100644 --- a/my_software/my_code.h +++ b/my_software/my_code.h @@ -11,4 +11,29 @@ void my_code(); + + +#define HC595_DCK(x) HAL_GPIO_WritePin(HC595_DLK_GPIO_Port, HC595_DLK_Pin, x); +#define HC595_RCK(x) HAL_GPIO_WritePin(HC595_RLK_GPIO_Port, HC595_RLK_Pin, x); +#define HC595_SCK(x) HAL_GPIO_WritePin(HC595_SLK_GPIO_Port, HC595_SLK_Pin, x); +#define HC595_SCK2(x) HAL_GPIO_WritePin(HC595_SLK2_GPIO_Port, HC595_SLK2_Pin, x); +#define READ_HC595_DCK HAL_GPIO_ReadPin(HC595_DLK_GPIO_Port,HC595_DLK_Pin) + + +struct display_penal +{ + char d_num[4]; + char button_flag[4]; + char dot1:1; + char dot2:1; + char dot3:1; + char dot4:1; + char led_run:1; + + char moto1a:1; + char moto1b:1; + char moto2a:1; + char moto2b:1; +}dis_buff; + #endif /* MY_CODE_H_ */