diff --git a/firmware/modularkbd/Core/Src/main.c b/firmware/modularkbd/Core/Src/main.c index 9ba17717..92046843 100644 --- a/firmware/modularkbd/Core/Src/main.c +++ b/firmware/modularkbd/Core/Src/main.c @@ -123,6 +123,11 @@ UARTMessage reportBuff; extern USBD_HandleTypeDef hUsbDeviceFS; volatile uint8_t MODE = MODE_INACTIVE; +UARTMessage uartBuffer; +volatile int uartUpdateFlag = 0; +// Encoder state (TIM3 in encoder mode on PA6/PA7) +volatile int32_t LAST_ENCODER_COUNT = 0; + /* USER CODE END PV */ /* Private function prototypes -----------------------------------------------*/ @@ -133,6 +138,7 @@ void UART_DMA_SendReport(UART_HandleTypeDef *huart); void addUSBReport(uint8_t usageID); void handleUARTMessages(uint8_t *data, UART_HandleTypeDef *sender); void matrixScan(void); +void encoderProcess(void); void resetReport(void); void sendMessage(void); void findBestParent(); @@ -188,6 +194,9 @@ int main(void) HAL_UART_Receive_DMA(&huart2, (uint8_t*)&RX2Msg, sizeof(UARTMessage)); HAL_UART_Receive_DMA(&huart4, (uint8_t*)&RX4Msg, sizeof(UARTMessage)); HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); + // Start TIM3 encoder (PA6/PA7) so we can read encoder delta + HAL_TIM_Encoder_Start(&htim3, TIM_CHANNEL_ALL); + LAST_ENCODER_COUNT = __HAL_TIM_GET_COUNTER(&htim3); /* USER CODE END 2 */ /* Infinite loop */ @@ -198,6 +207,7 @@ int main(void) case MODE_ACTIVE: resetReport(); matrixScan(); + encoderProcess(); UARTMessage UARTREPORT; UARTREPORT.DEPTH = DEPTH; UARTREPORT.TYPE = 0xEE; @@ -229,11 +239,15 @@ int main(void) break; case MODE_MAINBOARD: - resetReport(); //Something related to this making the key stick. Likely due to race conditions - matrixScan(); //Removing resetReport() makes the modules inputs works but makes the key stick - //Merge the bufer to the key report - for(int i = 0; i < sizeof(reportBuff.KEYPRESS); i++){ - REPORT.KEYPRESS[i] |= reportBuff.KEYPRESS[i]; + resetReport(); + matrixScan();//Something related to this making the key stick. Likely due to race conditions + encoderProcess(); + if(uartUpdateFlag){ + for(int i = 0; i < 12; i++){ + REPORT.KEYPRESS[i] |= uartBuffer.KEYPRESS[i]; + } + uartUpdateFlag = 0; + memset(uartBuffer.KEYPRESS, 0, 12); } USBD_HID_SendReport(&hUsbDeviceFS, (uint8_t*)&REPORT, sizeof(REPORT)); break; @@ -242,7 +256,7 @@ int main(void) break; } - HAL_Delay(); + HAL_Delay(100); /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ @@ -390,9 +404,12 @@ void handleUARTMessages(uint8_t *data, UART_HandleTypeDef *sender) { case 0xEE: //TODO: Append message to the thingy - if(MODE!=MODE_INACTIVE){ - memcpy(msg.KEYPRESS, reportBuff.KEYPRESS, sizeof(reply.KEYPRESS)); - } + if (MODE != MODE_INACTIVE) { + for (int i = 0; i < sizeof(REPORT.KEYPRESS); i++) { + uartBuffer.KEYPRESS[i] |= msg.KEYPRESS[i]; + } + uartUpdateFlag = 1; + } break; default: @@ -423,6 +440,31 @@ void matrixScan(void){ } } +// Read TIM3 encoder counter, calculate delta and add corresponding keycodes +void encoderProcess(void){ + int32_t cnt = (int32_t)__HAL_TIM_GET_COUNTER(&htim3); + int32_t diff = cnt - LAST_ENCODER_COUNT; + // TIM3 configured as 16-bit counter (period 65535). Fix wrap-around. + if(diff > 32767) diff -= 65536; + if(diff < -32768) diff += 65536; + if(diff > 0){ + int steps = diff; + if(steps > 10) steps = 10; // cap bursts + for(int i = 0; i < steps; i++){ + // CW -> KEYCODES[0][0] + addUSBReport(KEYCODES[0][0]); + } + }else if(diff < 0){ + int steps = -diff; + if(steps > 10) steps = 10; + for(int i = 0; i < steps; i++){ + // CCW -> KEYCODES[0][1] + addUSBReport(KEYCODES[0][1]); + } + } + LAST_ENCODER_COUNT = cnt; +} + void resetReport(void){ REPORT.MODIFIER = 0; memset(REPORT.KEYPRESS, 0, sizeof(REPORT.KEYPRESS)); @@ -460,3 +502,4 @@ void assert_failed(uint8_t *file, uint32_t line) /* USER CODE END 6 */ } #endif /* USE_FULL_ASSERT */ + diff --git a/firmware/modularkbd/Debug/Core/Src/main.cyclo b/firmware/modularkbd/Debug/Core/Src/main.cyclo index 50654a40..7d360e6e 100644 --- a/firmware/modularkbd/Debug/Core/Src/main.cyclo +++ b/firmware/modularkbd/Debug/Core/Src/main.cyclo @@ -1,10 +1,10 @@ -../Core/Src/main.c:150:5:main 7 -../Core/Src/main.c:257:6:SystemClock_Config 3 -../Core/Src/main.c:301:6:HAL_UART_RxCpltCallback 5 -../Core/Src/main.c:320:6:HAL_UART_ErrorCallback 5 -../Core/Src/main.c:338:6:findBestParent 4 -../Core/Src/main.c:359:6:handleUARTMessages 11 -../Core/Src/main.c:405:6:addUSBReport 3 -../Core/Src/main.c:413:6:matrixScan 4 -../Core/Src/main.c:426:6:resetReport 1 -../Core/Src/main.c:437:6:Error_Handler 1 +../Core/Src/main.c:153:5:main 8 +../Core/Src/main.c:263:6:SystemClock_Config 3 +../Core/Src/main.c:307:6:HAL_UART_RxCpltCallback 5 +../Core/Src/main.c:326:6:HAL_UART_ErrorCallback 5 +../Core/Src/main.c:344:6:findBestParent 4 +../Core/Src/main.c:365:6:handleUARTMessages 12 +../Core/Src/main.c:414:6:addUSBReport 3 +../Core/Src/main.c:422:6:matrixScan 4 +../Core/Src/main.c:435:6:resetReport 1 +../Core/Src/main.c:446:6:Error_Handler 1 diff --git a/firmware/modularkbd/Debug/Core/Src/main.o b/firmware/modularkbd/Debug/Core/Src/main.o index 3d397cec..7a478507 100644 Binary files a/firmware/modularkbd/Debug/Core/Src/main.o and b/firmware/modularkbd/Debug/Core/Src/main.o differ diff --git a/firmware/modularkbd/Debug/Core/Src/main.su b/firmware/modularkbd/Debug/Core/Src/main.su index 282320d1..d7301226 100644 --- a/firmware/modularkbd/Debug/Core/Src/main.su +++ b/firmware/modularkbd/Debug/Core/Src/main.su @@ -1,10 +1,10 @@ -../Core/Src/main.c:150:5:main 48 static -../Core/Src/main.c:257:6:SystemClock_Config 88 static -../Core/Src/main.c:301:6:HAL_UART_RxCpltCallback 16 static -../Core/Src/main.c:320:6:HAL_UART_ErrorCallback 16 static -../Core/Src/main.c:338:6:findBestParent 24 static -../Core/Src/main.c:359:6:handleUARTMessages 56 static -../Core/Src/main.c:405:6:addUSBReport 24 static -../Core/Src/main.c:413:6:matrixScan 16 static -../Core/Src/main.c:426:6:resetReport 8 static -../Core/Src/main.c:437:6:Error_Handler 4 static,ignoring_inline_asm +../Core/Src/main.c:153:5:main 48 static +../Core/Src/main.c:263:6:SystemClock_Config 88 static +../Core/Src/main.c:307:6:HAL_UART_RxCpltCallback 16 static +../Core/Src/main.c:326:6:HAL_UART_ErrorCallback 16 static +../Core/Src/main.c:344:6:findBestParent 24 static +../Core/Src/main.c:365:6:handleUARTMessages 64 static +../Core/Src/main.c:414:6:addUSBReport 24 static +../Core/Src/main.c:422:6:matrixScan 16 static +../Core/Src/main.c:435:6:resetReport 8 static +../Core/Src/main.c:446:6:Error_Handler 4 static,ignoring_inline_asm diff --git a/firmware/modularkbd/Debug/modularkbd.elf b/firmware/modularkbd/Debug/modularkbd.elf index 8f755d10..c37a23e7 100755 Binary files a/firmware/modularkbd/Debug/modularkbd.elf and b/firmware/modularkbd/Debug/modularkbd.elf differ diff --git a/firmware/modularkbd/Debug/modularkbd.list b/firmware/modularkbd/Debug/modularkbd.list index 9041e3f3..d2602e9f 100644 --- a/firmware/modularkbd/Debug/modularkbd.list +++ b/firmware/modularkbd/Debug/modularkbd.list @@ -5,47 +5,47 @@ Sections: Idx Name Size VMA LMA File off Algn 0 .isr_vector 000001c4 08000000 08000000 00001000 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA - 1 .text 0000a8c0 080001c4 080001c4 000011c4 2**2 + 1 .text 0000a914 080001c4 080001c4 000011c4 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 0000005c 0800aa84 0800aa84 0000ba84 2**2 + 2 .rodata 0000005c 0800aad8 0800aad8 0000bad8 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 0800aae0 0800aae0 0000c1a0 2**0 + 3 .ARM.extab 00000000 0800ab34 0800ab34 0000c1a0 2**0 CONTENTS, READONLY - 4 .ARM 00000008 0800aae0 0800aae0 0000bae0 2**2 + 4 .ARM 00000008 0800ab34 0800ab34 0000bb34 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 5 .preinit_array 00000000 0800aae8 0800aae8 0000c1a0 2**0 + 5 .preinit_array 00000000 0800ab3c 0800ab3c 0000c1a0 2**0 CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 0800aae8 0800aae8 0000bae8 2**2 + 6 .init_array 00000004 0800ab3c 0800ab3c 0000bb3c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 7 .fini_array 00000004 0800aaec 0800aaec 0000baec 2**2 + 7 .fini_array 00000004 0800ab40 0800ab40 0000bb40 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 8 .data 000001a0 20000000 0800aaf0 0000c000 2**2 + 8 .data 000001a0 20000000 0800ab44 0000c000 2**2 CONTENTS, ALLOC, LOAD, DATA - 9 .bss 00000f68 200001a0 0800ac90 0000c1a0 2**2 + 9 .bss 00000f6c 200001a0 0800ace4 0000c1a0 2**2 ALLOC - 10 ._user_heap_stack 00000600 20001108 0800ac90 0000d108 2**0 + 10 ._user_heap_stack 00000604 2000110c 0800ace4 0000d10c 2**0 ALLOC 11 .ARM.attributes 00000030 00000000 00000000 0000c1a0 2**0 CONTENTS, READONLY - 12 .debug_info 0001af9a 00000000 00000000 0000c1d0 2**0 + 12 .debug_info 0001afd8 00000000 00000000 0000c1d0 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 13 .debug_abbrev 00004037 00000000 00000000 0002716a 2**0 + 13 .debug_abbrev 00004037 00000000 00000000 000271a8 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 14 .debug_aranges 00001788 00000000 00000000 0002b1a8 2**3 + 14 .debug_aranges 00001788 00000000 00000000 0002b1e0 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 15 .debug_rnglists 00001246 00000000 00000000 0002c930 2**0 + 15 .debug_rnglists 00001246 00000000 00000000 0002c968 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 16 .debug_macro 00026060 00000000 00000000 0002db76 2**0 + 16 .debug_macro 00026060 00000000 00000000 0002dbae 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_line 0001e6ce 00000000 00000000 00053bd6 2**0 + 17 .debug_line 0001e6f9 00000000 00000000 00053c0e 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_str 000d7ec6 00000000 00000000 000722a4 2**0 + 18 .debug_str 000d7edb 00000000 00000000 00072307 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .comment 00000043 00000000 00000000 0014a16a 2**0 + 19 .comment 00000043 00000000 00000000 0014a1e2 2**0 CONTENTS, READONLY - 20 .debug_frame 000062c0 00000000 00000000 0014a1b0 2**2 + 20 .debug_frame 000062c0 00000000 00000000 0014a228 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS - 21 .debug_line_str 00000062 00000000 00000000 00150470 2**0 + 21 .debug_line_str 00000062 00000000 00000000 001504e8 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS Disassembly of section .text: @@ -64,7 +64,7 @@ Disassembly of section .text: 80001da: bd10 pop {r4, pc} 80001dc: 200001a0 .word 0x200001a0 80001e0: 00000000 .word 0x00000000 - 80001e4: 0800aa6c .word 0x0800aa6c + 80001e4: 0800aac0 .word 0x0800aac0 080001e8 : 80001e8: b508 push {r3, lr} @@ -76,7 +76,7 @@ Disassembly of section .text: 80001f6: bd08 pop {r3, pc} 80001f8: 00000000 .word 0x00000000 80001fc: 200001a4 .word 0x200001a4 - 8000200: 0800aa6c .word 0x0800aa6c + 8000200: 0800aac0 .word 0x0800aac0 08000204 <__aeabi_uldivmod>: 8000204: b953 cbnz r3, 800021c <__aeabi_uldivmod+0x18> @@ -414,73 +414,73 @@ void MX_DMA_Init(void) 800056e: 2200 movs r2, #0 8000570: 2100 movs r1, #0 8000572: 200b movs r0, #11 - 8000574: f001 fbdb bl 8001d2e + 8000574: f001 fc05 bl 8001d82 HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn); 8000578: 200b movs r0, #11 - 800057a: f001 fbf4 bl 8001d66 + 800057a: f001 fc1e bl 8001dba /* DMA1_Stream2_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Stream2_IRQn, 0, 0); 800057e: 2200 movs r2, #0 8000580: 2100 movs r1, #0 8000582: 200d movs r0, #13 - 8000584: f001 fbd3 bl 8001d2e + 8000584: f001 fbfd bl 8001d82 HAL_NVIC_EnableIRQ(DMA1_Stream2_IRQn); 8000588: 200d movs r0, #13 - 800058a: f001 fbec bl 8001d66 + 800058a: f001 fc16 bl 8001dba /* DMA1_Stream4_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Stream4_IRQn, 0, 0); 800058e: 2200 movs r2, #0 8000590: 2100 movs r1, #0 8000592: 200f movs r0, #15 - 8000594: f001 fbcb bl 8001d2e + 8000594: f001 fbf5 bl 8001d82 HAL_NVIC_EnableIRQ(DMA1_Stream4_IRQn); 8000598: 200f movs r0, #15 - 800059a: f001 fbe4 bl 8001d66 + 800059a: f001 fc0e bl 8001dba /* DMA1_Stream5_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Stream5_IRQn, 0, 0); 800059e: 2200 movs r2, #0 80005a0: 2100 movs r1, #0 80005a2: 2010 movs r0, #16 - 80005a4: f001 fbc3 bl 8001d2e + 80005a4: f001 fbed bl 8001d82 HAL_NVIC_EnableIRQ(DMA1_Stream5_IRQn); 80005a8: 2010 movs r0, #16 - 80005aa: f001 fbdc bl 8001d66 + 80005aa: f001 fc06 bl 8001dba /* DMA1_Stream6_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Stream6_IRQn, 0, 0); 80005ae: 2200 movs r2, #0 80005b0: 2100 movs r1, #0 80005b2: 2011 movs r0, #17 - 80005b4: f001 fbbb bl 8001d2e + 80005b4: f001 fbe5 bl 8001d82 HAL_NVIC_EnableIRQ(DMA1_Stream6_IRQn); 80005b8: 2011 movs r0, #17 - 80005ba: f001 fbd4 bl 8001d66 + 80005ba: f001 fbfe bl 8001dba /* DMA1_Stream7_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA1_Stream7_IRQn, 0, 0); 80005be: 2200 movs r2, #0 80005c0: 2100 movs r1, #0 80005c2: 202f movs r0, #47 @ 0x2f - 80005c4: f001 fbb3 bl 8001d2e + 80005c4: f001 fbdd bl 8001d82 HAL_NVIC_EnableIRQ(DMA1_Stream7_IRQn); 80005c8: 202f movs r0, #47 @ 0x2f - 80005ca: f001 fbcc bl 8001d66 + 80005ca: f001 fbf6 bl 8001dba /* DMA2_Stream2_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA2_Stream2_IRQn, 0, 0); 80005ce: 2200 movs r2, #0 80005d0: 2100 movs r1, #0 80005d2: 203a movs r0, #58 @ 0x3a - 80005d4: f001 fbab bl 8001d2e + 80005d4: f001 fbd5 bl 8001d82 HAL_NVIC_EnableIRQ(DMA2_Stream2_IRQn); 80005d8: 203a movs r0, #58 @ 0x3a - 80005da: f001 fbc4 bl 8001d66 + 80005da: f001 fbee bl 8001dba /* DMA2_Stream7_IRQn interrupt configuration */ HAL_NVIC_SetPriority(DMA2_Stream7_IRQn, 0, 0); 80005de: 2200 movs r2, #0 80005e0: 2100 movs r1, #0 80005e2: 2046 movs r0, #70 @ 0x46 - 80005e4: f001 fba3 bl 8001d2e + 80005e4: f001 fbcd bl 8001d82 HAL_NVIC_EnableIRQ(DMA2_Stream7_IRQn); 80005e8: 2046 movs r0, #70 @ 0x46 - 80005ea: f001 fbbc bl 8001d66 + 80005ea: f001 fbe6 bl 8001dba } 80005ee: bf00 nop @@ -582,14 +582,14 @@ void MX_GPIO_Init(void) 800069e: 2200 movs r2, #0 80006a0: f44f 7170 mov.w r1, #960 @ 0x3c0 80006a4: 4822 ldr r0, [pc, #136] @ (8000730 ) - 80006a6: f002 f927 bl 80028f8 + 80006a6: f002 f951 bl 800294c /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOA, GPIO_PIN_8, GPIO_PIN_RESET); 80006aa: 2200 movs r2, #0 80006ac: f44f 7180 mov.w r1, #256 @ 0x100 80006b0: 4820 ldr r0, [pc, #128] @ (8000734 ) - 80006b2: f002 f921 bl 80028f8 + 80006b2: f002 f94b bl 800294c /*Configure GPIO pins : PC4 PC5 */ GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5; @@ -605,7 +605,7 @@ void MX_GPIO_Init(void) 80006c2: f107 0314 add.w r3, r7, #20 80006c6: 4619 mov r1, r3 80006c8: 4819 ldr r0, [pc, #100] @ (8000730 ) - 80006ca: f001 ff69 bl 80025a0 + 80006ca: f001 ff93 bl 80025f4 /*Configure GPIO pins : PB0 PB1 PB2 PB10 */ GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_10; @@ -621,7 +621,7 @@ void MX_GPIO_Init(void) 80006dc: f107 0314 add.w r3, r7, #20 80006e0: 4619 mov r1, r3 80006e2: 4815 ldr r0, [pc, #84] @ (8000738 ) - 80006e4: f001 ff5c bl 80025a0 + 80006e4: f001 ff86 bl 80025f4 /*Configure GPIO pins : PC6 PC7 PC8 PC9 */ GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9; @@ -640,7 +640,7 @@ void MX_GPIO_Init(void) 80006fa: f107 0314 add.w r3, r7, #20 80006fe: 4619 mov r1, r3 8000700: 480b ldr r0, [pc, #44] @ (8000730 ) - 8000702: f001 ff4d bl 80025a0 + 8000702: f001 ff77 bl 80025f4 /*Configure GPIO pin : PA8 */ GPIO_InitStruct.Pin = GPIO_PIN_8; @@ -659,7 +659,7 @@ void MX_GPIO_Init(void) 8000718: f107 0314 add.w r3, r7, #20 800071c: 4619 mov r1, r3 800071e: 4805 ldr r0, [pc, #20] @ (8000734 ) - 8000720: f001 ff3e bl 80025a0 + 8000720: f001 ff68 bl 80025f4 } 8000724: bf00 nop @@ -723,13 +723,13 @@ void MX_I2C1_Init(void) 8000776: 621a str r2, [r3, #32] if (HAL_I2C_Init(&hi2c1) != HAL_OK) 8000778: 4804 ldr r0, [pc, #16] @ (800078c ) - 800077a: f002 f8d7 bl 800292c + 800077a: f002 f901 bl 8002980 800077e: 4603 mov r3, r0 8000780: 2b00 cmp r3, #0 8000782: d001 beq.n 8000788 { Error_Handler(); - 8000784: f000 fb90 bl 8000ea8 + 8000784: f000 fbba bl 8000efc } /* USER CODE BEGIN I2C1_Init 2 */ @@ -806,7 +806,7 @@ void HAL_I2C_MspInit(I2C_HandleTypeDef* i2cHandle) 80007ea: f107 0314 add.w r3, r7, #20 80007ee: 4619 mov r1, r3 80007f0: 480c ldr r0, [pc, #48] @ (8000824 ) - 80007f2: f001 fed5 bl 80025a0 + 80007f2: f001 feff bl 80025f4 /* I2C1 clock enable */ __HAL_RCC_I2C1_CLK_ENABLE(); @@ -852,14 +852,14 @@ int main(void) /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); - 800082e: f001 f90d bl 8001a4c + 800082e: f001 f937 bl 8001aa0 /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); - 8000832: f000 f8cb bl 80009cc + 8000832: f000 f8dd bl 80009f0 /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ @@ -870,5730 +870,5718 @@ int main(void) MX_DMA_Init(); 800083a: f7ff fe79 bl 8000530 MX_TIM2_Init(); - 800083e: f000 fc25 bl 800108c + 800083e: f000 fc4f bl 80010e0 MX_TIM3_Init(); - 8000842: f000 fc7b bl 800113c + 8000842: f000 fca5 bl 8001190 MX_UART4_Init(); - 8000846: f000 fd6d bl 8001324 + 8000846: f000 fd97 bl 8001378 MX_UART5_Init(); - 800084a: f000 fd95 bl 8001378 + 800084a: f000 fdbf bl 80013cc MX_USART1_UART_Init(); - 800084e: f000 fdbd bl 80013cc + 800084e: f000 fde7 bl 8001420 MX_USART2_UART_Init(); - 8000852: f000 fde5 bl 8001420 + 8000852: f000 fe0f bl 8001474 MX_I2C1_Init(); 8000856: f7ff ff71 bl 800073c MX_USB_DEVICE_Init(); - 800085a: f009 fc2d bl 800a0b8 + 800085a: f009 fc57 bl 800a10c /* USER CODE BEGIN 2 */ //Enable UART RX DMA for all ports HAL_UART_Receive_DMA(&huart1, (uint8_t*)&RX1Msg, sizeof(UARTMessage)); 800085e: 2210 movs r2, #16 - 8000860: 494c ldr r1, [pc, #304] @ (8000994 ) - 8000862: 484d ldr r0, [pc, #308] @ (8000998 ) - 8000864: f005 fa2e bl 8005cc4 + 8000860: 4953 ldr r1, [pc, #332] @ (80009b0 ) + 8000862: 4854 ldr r0, [pc, #336] @ (80009b4 ) + 8000864: f005 fa58 bl 8005d18 HAL_UART_Receive_DMA(&huart2, (uint8_t*)&RX2Msg, sizeof(UARTMessage)); 8000868: 2210 movs r2, #16 - 800086a: 494c ldr r1, [pc, #304] @ (800099c ) - 800086c: 484c ldr r0, [pc, #304] @ (80009a0 ) - 800086e: f005 fa29 bl 8005cc4 + 800086a: 4953 ldr r1, [pc, #332] @ (80009b8 ) + 800086c: 4853 ldr r0, [pc, #332] @ (80009bc ) + 800086e: f005 fa53 bl 8005d18 HAL_UART_Receive_DMA(&huart4, (uint8_t*)&RX4Msg, sizeof(UARTMessage)); 8000872: 2210 movs r2, #16 - 8000874: 494b ldr r1, [pc, #300] @ (80009a4 ) - 8000876: 484c ldr r0, [pc, #304] @ (80009a8 ) - 8000878: f005 fa24 bl 8005cc4 + 8000874: 4952 ldr r1, [pc, #328] @ (80009c0 ) + 8000876: 4853 ldr r0, [pc, #332] @ (80009c4 ) + 8000878: f005 fa4e bl 8005d18 HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); 800087c: 2210 movs r2, #16 - 800087e: 494b ldr r1, [pc, #300] @ (80009ac ) - 8000880: 484b ldr r0, [pc, #300] @ (80009b0 ) - 8000882: f005 fa1f bl 8005cc4 + 800087e: 4952 ldr r1, [pc, #328] @ (80009c8 ) + 8000880: 4852 ldr r0, [pc, #328] @ (80009cc ) + 8000882: f005 fa49 bl 8005d18 /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { switch (MODE){ - 8000886: 4b4b ldr r3, [pc, #300] @ (80009b4 ) + 8000886: 4b52 ldr r3, [pc, #328] @ (80009d0 ) 8000888: 781b ldrb r3, [r3, #0] 800088a: b2db uxtb r3, r3 800088c: 2b02 cmp r3, #2 - 800088e: d006 beq.n 800089e + 800088e: d007 beq.n 80008a0 8000890: 2b02 cmp r3, #2 - 8000892: dc7a bgt.n 800098a - 8000894: 2b00 cmp r3, #0 - 8000896: d01c beq.n 80008d2 - 8000898: 2b01 cmp r3, #1 - 800089a: d051 beq.n 8000940 + 8000892: f300 8087 bgt.w 80009a4 + 8000896: 2b00 cmp r3, #0 + 8000898: d01c beq.n 80008d4 + 800089a: 2b01 cmp r3, #1 + 800089c: d051 beq.n 8000942 } USBD_HID_SendReport(&hUsbDeviceFS, (uint8_t*)&REPORT, sizeof(REPORT)); break; default: break; - 800089c: e075 b.n 800098a + 800089e: e081 b.n 80009a4 resetReport(); - 800089e: f000 faf3 bl 8000e88 + 80008a0: f000 fb1c bl 8000edc matrixScan(); - 80008a2: f000 fa97 bl 8000dd4 + 80008a4: f000 fac0 bl 8000e28 UARTREPORT.DEPTH = DEPTH; - 80008a6: 4b44 ldr r3, [pc, #272] @ (80009b8 ) - 80008a8: 881b ldrh r3, [r3, #0] - 80008aa: 82bb strh r3, [r7, #20] + 80008a8: 4b4a ldr r3, [pc, #296] @ (80009d4 ) + 80008aa: 881b ldrh r3, [r3, #0] + 80008ac: 82bb strh r3, [r7, #20] UARTREPORT.TYPE = 0xEE; - 80008ac: 23ee movs r3, #238 @ 0xee - 80008ae: 82fb strh r3, [r7, #22] + 80008ae: 23ee movs r3, #238 @ 0xee + 80008b0: 82fb strh r3, [r7, #22] memcpy(UARTREPORT.KEYPRESS, REPORT.KEYPRESS, sizeof(UARTREPORT.KEYPRESS)); - 80008b0: 4a42 ldr r2, [pc, #264] @ (80009bc ) - 80008b2: f107 0318 add.w r3, r7, #24 - 80008b6: 3202 adds r2, #2 - 80008b8: 6810 ldr r0, [r2, #0] - 80008ba: 6851 ldr r1, [r2, #4] - 80008bc: 6892 ldr r2, [r2, #8] - 80008be: c307 stmia r3!, {r0, r1, r2} + 80008b2: 4a49 ldr r2, [pc, #292] @ (80009d8 ) + 80008b4: f107 0318 add.w r3, r7, #24 + 80008b8: 3202 adds r2, #2 + 80008ba: 6810 ldr r0, [r2, #0] + 80008bc: 6851 ldr r1, [r2, #4] + 80008be: 6892 ldr r2, [r2, #8] + 80008c0: c307 stmia r3!, {r0, r1, r2} HAL_UART_Transmit_DMA(PARENT, (uint8_t*)&UARTREPORT, sizeof(UARTREPORT)); - 80008c0: 4b3f ldr r3, [pc, #252] @ (80009c0 ) - 80008c2: 681b ldr r3, [r3, #0] - 80008c4: f107 0114 add.w r1, r7, #20 - 80008c8: 2210 movs r2, #16 - 80008ca: 4618 mov r0, r3 - 80008cc: f005 f97e bl 8005bcc + 80008c2: 4b46 ldr r3, [pc, #280] @ (80009dc ) + 80008c4: 681b ldr r3, [r3, #0] + 80008c6: f107 0114 add.w r1, r7, #20 + 80008ca: 2210 movs r2, #16 + 80008cc: 4618 mov r0, r3 + 80008ce: f005 f9a7 bl 8005c20 break; - 80008d0: e05c b.n 800098c + 80008d2: e068 b.n 80009a6 if(hUsbDeviceFS.dev_state == USBD_STATE_CONFIGURED){ - 80008d2: 4b3c ldr r3, [pc, #240] @ (80009c4 ) - 80008d4: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80008d8: b2db uxtb r3, r3 - 80008da: 2b03 cmp r3, #3 - 80008dc: d106 bne.n 80008ec + 80008d4: 4b42 ldr r3, [pc, #264] @ (80009e0 ) + 80008d6: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 80008da: b2db uxtb r3, r3 + 80008dc: 2b03 cmp r3, #3 + 80008de: d106 bne.n 80008ee MODE = MODE_MAINBOARD; - 80008de: 4b35 ldr r3, [pc, #212] @ (80009b4 ) - 80008e0: 2201 movs r2, #1 - 80008e2: 701a strb r2, [r3, #0] + 80008e0: 4b3b ldr r3, [pc, #236] @ (80009d0 ) + 80008e2: 2201 movs r2, #1 + 80008e4: 701a strb r2, [r3, #0] DEPTH = 0; - 80008e4: 4b34 ldr r3, [pc, #208] @ (80009b8 ) - 80008e6: 2200 movs r2, #0 - 80008e8: 801a strh r2, [r3, #0] + 80008e6: 4b3b ldr r3, [pc, #236] @ (80009d4 ) + 80008e8: 2200 movs r2, #0 + 80008ea: 801a strh r2, [r3, #0] break; - 80008ea: e04f b.n 800098c + 80008ec: e05b b.n 80009a6 REQ.DEPTH = 0; - 80008ec: 2300 movs r3, #0 - 80008ee: 80bb strh r3, [r7, #4] + 80008ee: 2300 movs r3, #0 + 80008f0: 80bb strh r3, [r7, #4] REQ.TYPE = 0xFF; //Message code for request is 0xFF - 80008f0: 23ff movs r3, #255 @ 0xff - 80008f2: 80fb strh r3, [r7, #6] + 80008f2: 23ff movs r3, #255 @ 0xff + 80008f4: 80fb strh r3, [r7, #6] memset(REQ.KEYPRESS, 0, sizeof(REQ.KEYPRESS)); - 80008f4: 1d3b adds r3, r7, #4 - 80008f6: 3304 adds r3, #4 - 80008f8: 220c movs r2, #12 - 80008fa: 2100 movs r1, #0 - 80008fc: 4618 mov r0, r3 - 80008fe: f00a f889 bl 800aa14 + 80008f6: 1d3b adds r3, r7, #4 + 80008f8: 3304 adds r3, #4 + 80008fa: 220c movs r2, #12 + 80008fc: 2100 movs r1, #0 + 80008fe: 4618 mov r0, r3 + 8000900: f00a f8b2 bl 800aa68 HAL_UART_Transmit_DMA(&huart1, (uint8_t*)&REQ, sizeof(REQ)); - 8000902: 1d3b adds r3, r7, #4 - 8000904: 2210 movs r2, #16 - 8000906: 4619 mov r1, r3 - 8000908: 4823 ldr r0, [pc, #140] @ (8000998 ) - 800090a: f005 f95f bl 8005bcc + 8000904: 1d3b adds r3, r7, #4 + 8000906: 2210 movs r2, #16 + 8000908: 4619 mov r1, r3 + 800090a: 482a ldr r0, [pc, #168] @ (80009b4 ) + 800090c: f005 f988 bl 8005c20 HAL_UART_Transmit_DMA(&huart2, (uint8_t*)&REQ, sizeof(REQ)); - 800090e: 1d3b adds r3, r7, #4 - 8000910: 2210 movs r2, #16 - 8000912: 4619 mov r1, r3 - 8000914: 4822 ldr r0, [pc, #136] @ (80009a0 ) - 8000916: f005 f959 bl 8005bcc + 8000910: 1d3b adds r3, r7, #4 + 8000912: 2210 movs r2, #16 + 8000914: 4619 mov r1, r3 + 8000916: 4829 ldr r0, [pc, #164] @ (80009bc ) + 8000918: f005 f982 bl 8005c20 HAL_UART_Transmit_DMA(&huart4, (uint8_t*)&REQ, sizeof(REQ)); - 800091a: 1d3b adds r3, r7, #4 - 800091c: 2210 movs r2, #16 - 800091e: 4619 mov r1, r3 - 8000920: 4821 ldr r0, [pc, #132] @ (80009a8 ) - 8000922: f005 f953 bl 8005bcc + 800091c: 1d3b adds r3, r7, #4 + 800091e: 2210 movs r2, #16 + 8000920: 4619 mov r1, r3 + 8000922: 4828 ldr r0, [pc, #160] @ (80009c4 ) + 8000924: f005 f97c bl 8005c20 HAL_UART_Transmit_DMA(&huart5, (uint8_t*)&REQ, sizeof(REQ)); - 8000926: 1d3b adds r3, r7, #4 - 8000928: 2210 movs r2, #16 - 800092a: 4619 mov r1, r3 - 800092c: 4820 ldr r0, [pc, #128] @ (80009b0 ) - 800092e: f005 f94d bl 8005bcc + 8000928: 1d3b adds r3, r7, #4 + 800092a: 2210 movs r2, #16 + 800092c: 4619 mov r1, r3 + 800092e: 4827 ldr r0, [pc, #156] @ (80009cc ) + 8000930: f005 f976 bl 8005c20 HAL_Delay(500); - 8000932: f44f 70fa mov.w r0, #500 @ 0x1f4 - 8000936: f001 f8fb bl 8001b30 + 8000934: f44f 70fa mov.w r0, #500 @ 0x1f4 + 8000938: f001 f924 bl 8001b84 findBestParent(); //So true... - 800093a: f000 f95b bl 8000bf4 + 800093c: f000 f96c bl 8000c18 break; - 800093e: e025 b.n 800098c - resetReport(); //Something related to this making the key stick. Likely due to race conditions - 8000940: f000 faa2 bl 8000e88 - matrixScan(); //Removing resetReport() makes the modules inputs works but makes the key stick - 8000944: f000 fa46 bl 8000dd4 - for(int i = 0; i < sizeof(reportBuff.KEYPRESS); i++){ - 8000948: 2300 movs r3, #0 - 800094a: 627b str r3, [r7, #36] @ 0x24 - 800094c: e014 b.n 8000978 - REPORT.KEYPRESS[i] |= reportBuff.KEYPRESS[i]; - 800094e: 4a1b ldr r2, [pc, #108] @ (80009bc ) - 8000950: 6a7b ldr r3, [r7, #36] @ 0x24 - 8000952: 4413 add r3, r2 - 8000954: 3302 adds r3, #2 - 8000956: 781a ldrb r2, [r3, #0] - 8000958: 491b ldr r1, [pc, #108] @ (80009c8 ) + 8000940: e031 b.n 80009a6 + resetReport(); + 8000942: f000 facb bl 8000edc + matrixScan();//Something related to this making the key stick. Likely due to race conditions + 8000946: f000 fa6f bl 8000e28 + if(uartUpdateFlag){ + 800094a: 4b26 ldr r3, [pc, #152] @ (80009e4 ) + 800094c: 681b ldr r3, [r3, #0] + 800094e: 2b00 cmp r3, #0 + 8000950: d022 beq.n 8000998 + for(int i = 0; i < 12; i++){ + 8000952: 2300 movs r3, #0 + 8000954: 627b str r3, [r7, #36] @ 0x24 + 8000956: e014 b.n 8000982 + REPORT.KEYPRESS[i] |= uartBuffer.KEYPRESS[i]; + 8000958: 4a1f ldr r2, [pc, #124] @ (80009d8 ) 800095a: 6a7b ldr r3, [r7, #36] @ 0x24 - 800095c: 440b add r3, r1 - 800095e: 3304 adds r3, #4 - 8000960: 781b ldrb r3, [r3, #0] - 8000962: 4313 orrs r3, r2 - 8000964: b2d9 uxtb r1, r3 - 8000966: 4a15 ldr r2, [pc, #84] @ (80009bc ) - 8000968: 6a7b ldr r3, [r7, #36] @ 0x24 - 800096a: 4413 add r3, r2 - 800096c: 3302 adds r3, #2 - 800096e: 460a mov r2, r1 - 8000970: 701a strb r2, [r3, #0] - for(int i = 0; i < sizeof(reportBuff.KEYPRESS); i++){ + 800095c: 4413 add r3, r2 + 800095e: 3302 adds r3, #2 + 8000960: 781a ldrb r2, [r3, #0] + 8000962: 4921 ldr r1, [pc, #132] @ (80009e8 ) + 8000964: 6a7b ldr r3, [r7, #36] @ 0x24 + 8000966: 440b add r3, r1 + 8000968: 3304 adds r3, #4 + 800096a: 781b ldrb r3, [r3, #0] + 800096c: 4313 orrs r3, r2 + 800096e: b2d9 uxtb r1, r3 + 8000970: 4a19 ldr r2, [pc, #100] @ (80009d8 ) 8000972: 6a7b ldr r3, [r7, #36] @ 0x24 - 8000974: 3301 adds r3, #1 - 8000976: 627b str r3, [r7, #36] @ 0x24 - 8000978: 6a7b ldr r3, [r7, #36] @ 0x24 - 800097a: 2b0b cmp r3, #11 - 800097c: d9e7 bls.n 800094e + 8000974: 4413 add r3, r2 + 8000976: 3302 adds r3, #2 + 8000978: 460a mov r2, r1 + 800097a: 701a strb r2, [r3, #0] + for(int i = 0; i < 12; i++){ + 800097c: 6a7b ldr r3, [r7, #36] @ 0x24 + 800097e: 3301 adds r3, #1 + 8000980: 627b str r3, [r7, #36] @ 0x24 + 8000982: 6a7b ldr r3, [r7, #36] @ 0x24 + 8000984: 2b0b cmp r3, #11 + 8000986: dde7 ble.n 8000958 + uartUpdateFlag = 0; + 8000988: 4b16 ldr r3, [pc, #88] @ (80009e4 ) + 800098a: 2200 movs r2, #0 + 800098c: 601a str r2, [r3, #0] + memset(uartBuffer.KEYPRESS, 0, 12); + 800098e: 220c movs r2, #12 + 8000990: 2100 movs r1, #0 + 8000992: 4816 ldr r0, [pc, #88] @ (80009ec ) + 8000994: f00a f868 bl 800aa68 USBD_HID_SendReport(&hUsbDeviceFS, (uint8_t*)&REPORT, sizeof(REPORT)); - 800097e: 220e movs r2, #14 - 8000980: 490e ldr r1, [pc, #56] @ (80009bc ) - 8000982: 4810 ldr r0, [pc, #64] @ (80009c4 ) - 8000984: f007 ffcc bl 8008920 + 8000998: 220e movs r2, #14 + 800099a: 490f ldr r1, [pc, #60] @ (80009d8 ) + 800099c: 4810 ldr r0, [pc, #64] @ (80009e0 ) + 800099e: f007 ffe9 bl 8008974 break; - 8000988: e000 b.n 800098c + 80009a2: e000 b.n 80009a6 break; - 800098a: bf00 nop + 80009a4: bf00 nop } HAL_Delay(100); - 800098c: 2064 movs r0, #100 @ 0x64 - 800098e: f001 f8cf bl 8001b30 + 80009a6: 2064 movs r0, #100 @ 0x64 + 80009a8: f001 f8ec bl 8001b84 switch (MODE){ - 8000992: e778 b.n 8000886 - 8000994: 20000230 .word 0x20000230 - 8000998: 2000039c .word 0x2000039c - 800099c: 20000240 .word 0x20000240 - 80009a0: 200003e4 .word 0x200003e4 - 80009a4: 20000250 .word 0x20000250 - 80009a8: 2000030c .word 0x2000030c - 80009ac: 20000220 .word 0x20000220 - 80009b0: 20000354 .word 0x20000354 - 80009b4: 20000278 .word 0x20000278 - 80009b8: 20000260 .word 0x20000260 - 80009bc: 20000210 .word 0x20000210 - 80009c0: 20000264 .word 0x20000264 - 80009c4: 20000734 .word 0x20000734 - 80009c8: 20000268 .word 0x20000268 + 80009ac: e76b b.n 8000886 + 80009ae: bf00 nop + 80009b0: 20000230 .word 0x20000230 + 80009b4: 200003a0 .word 0x200003a0 + 80009b8: 20000240 .word 0x20000240 + 80009bc: 200003e8 .word 0x200003e8 + 80009c0: 20000250 .word 0x20000250 + 80009c4: 20000310 .word 0x20000310 + 80009c8: 20000220 .word 0x20000220 + 80009cc: 20000358 .word 0x20000358 + 80009d0: 20000268 .word 0x20000268 + 80009d4: 20000260 .word 0x20000260 + 80009d8: 20000210 .word 0x20000210 + 80009dc: 20000264 .word 0x20000264 + 80009e0: 20000738 .word 0x20000738 + 80009e4: 2000027c .word 0x2000027c + 80009e8: 2000026c .word 0x2000026c + 80009ec: 20000270 .word 0x20000270 -080009cc : +080009f0 : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { - 80009cc: b580 push {r7, lr} - 80009ce: b094 sub sp, #80 @ 0x50 - 80009d0: af00 add r7, sp, #0 + 80009f0: b580 push {r7, lr} + 80009f2: b094 sub sp, #80 @ 0x50 + 80009f4: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - 80009d2: f107 031c add.w r3, r7, #28 - 80009d6: 2234 movs r2, #52 @ 0x34 - 80009d8: 2100 movs r1, #0 - 80009da: 4618 mov r0, r3 - 80009dc: f00a f81a bl 800aa14 + 80009f6: f107 031c add.w r3, r7, #28 + 80009fa: 2234 movs r2, #52 @ 0x34 + 80009fc: 2100 movs r1, #0 + 80009fe: 4618 mov r0, r3 + 8000a00: f00a f832 bl 800aa68 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - 80009e0: f107 0308 add.w r3, r7, #8 - 80009e4: 2200 movs r2, #0 - 80009e6: 601a str r2, [r3, #0] - 80009e8: 605a str r2, [r3, #4] - 80009ea: 609a str r2, [r3, #8] - 80009ec: 60da str r2, [r3, #12] - 80009ee: 611a str r2, [r3, #16] + 8000a04: f107 0308 add.w r3, r7, #8 + 8000a08: 2200 movs r2, #0 + 8000a0a: 601a str r2, [r3, #0] + 8000a0c: 605a str r2, [r3, #4] + 8000a0e: 609a str r2, [r3, #8] + 8000a10: 60da str r2, [r3, #12] + 8000a12: 611a str r2, [r3, #16] /** Configure the main internal regulator out put voltage */ __HAL_RCC_PWR_CLK_ENABLE(); - 80009f0: 2300 movs r3, #0 - 80009f2: 607b str r3, [r7, #4] - 80009f4: 4b29 ldr r3, [pc, #164] @ (8000a9c ) - 80009f6: 6c1b ldr r3, [r3, #64] @ 0x40 - 80009f8: 4a28 ldr r2, [pc, #160] @ (8000a9c ) - 80009fa: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 80009fe: 6413 str r3, [r2, #64] @ 0x40 - 8000a00: 4b26 ldr r3, [pc, #152] @ (8000a9c ) - 8000a02: 6c1b ldr r3, [r3, #64] @ 0x40 - 8000a04: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8000a08: 607b str r3, [r7, #4] - 8000a0a: 687b ldr r3, [r7, #4] + 8000a14: 2300 movs r3, #0 + 8000a16: 607b str r3, [r7, #4] + 8000a18: 4b29 ldr r3, [pc, #164] @ (8000ac0 ) + 8000a1a: 6c1b ldr r3, [r3, #64] @ 0x40 + 8000a1c: 4a28 ldr r2, [pc, #160] @ (8000ac0 ) + 8000a1e: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8000a22: 6413 str r3, [r2, #64] @ 0x40 + 8000a24: 4b26 ldr r3, [pc, #152] @ (8000ac0 ) + 8000a26: 6c1b ldr r3, [r3, #64] @ 0x40 + 8000a28: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8000a2c: 607b str r3, [r7, #4] + 8000a2e: 687b ldr r3, [r7, #4] __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3); - 8000a0c: 2300 movs r3, #0 - 8000a0e: 603b str r3, [r7, #0] - 8000a10: 4b23 ldr r3, [pc, #140] @ (8000aa0 ) - 8000a12: 681b ldr r3, [r3, #0] - 8000a14: f423 4340 bic.w r3, r3, #49152 @ 0xc000 - 8000a18: 4a21 ldr r2, [pc, #132] @ (8000aa0 ) - 8000a1a: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 8000a1e: 6013 str r3, [r2, #0] - 8000a20: 4b1f ldr r3, [pc, #124] @ (8000aa0 ) - 8000a22: 681b ldr r3, [r3, #0] - 8000a24: f403 4340 and.w r3, r3, #49152 @ 0xc000 - 8000a28: 603b str r3, [r7, #0] - 8000a2a: 683b ldr r3, [r7, #0] + 8000a30: 2300 movs r3, #0 + 8000a32: 603b str r3, [r7, #0] + 8000a34: 4b23 ldr r3, [pc, #140] @ (8000ac4 ) + 8000a36: 681b ldr r3, [r3, #0] + 8000a38: f423 4340 bic.w r3, r3, #49152 @ 0xc000 + 8000a3c: 4a21 ldr r2, [pc, #132] @ (8000ac4 ) + 8000a3e: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 8000a42: 6013 str r3, [r2, #0] + 8000a44: 4b1f ldr r3, [pc, #124] @ (8000ac4 ) + 8000a46: 681b ldr r3, [r3, #0] + 8000a48: f403 4340 and.w r3, r3, #49152 @ 0xc000 + 8000a4c: 603b str r3, [r7, #0] + 8000a4e: 683b ldr r3, [r7, #0] /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; - 8000a2c: 2301 movs r3, #1 - 8000a2e: 61fb str r3, [r7, #28] + 8000a50: 2301 movs r3, #1 + 8000a52: 61fb str r3, [r7, #28] RCC_OscInitStruct.HSEState = RCC_HSE_ON; - 8000a30: f44f 3380 mov.w r3, #65536 @ 0x10000 - 8000a34: 623b str r3, [r7, #32] + 8000a54: f44f 3380 mov.w r3, #65536 @ 0x10000 + 8000a58: 623b str r3, [r7, #32] RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; - 8000a36: 2302 movs r3, #2 - 8000a38: 637b str r3, [r7, #52] @ 0x34 + 8000a5a: 2302 movs r3, #2 + 8000a5c: 637b str r3, [r7, #52] @ 0x34 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; - 8000a3a: f44f 0380 mov.w r3, #4194304 @ 0x400000 - 8000a3e: 63bb str r3, [r7, #56] @ 0x38 + 8000a5e: f44f 0380 mov.w r3, #4194304 @ 0x400000 + 8000a62: 63bb str r3, [r7, #56] @ 0x38 RCC_OscInitStruct.PLL.PLLM = 4; - 8000a40: 2304 movs r3, #4 - 8000a42: 63fb str r3, [r7, #60] @ 0x3c + 8000a64: 2304 movs r3, #4 + 8000a66: 63fb str r3, [r7, #60] @ 0x3c RCC_OscInitStruct.PLL.PLLN = 96; - 8000a44: 2360 movs r3, #96 @ 0x60 - 8000a46: 643b str r3, [r7, #64] @ 0x40 + 8000a68: 2360 movs r3, #96 @ 0x60 + 8000a6a: 643b str r3, [r7, #64] @ 0x40 RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; - 8000a48: 2302 movs r3, #2 - 8000a4a: 647b str r3, [r7, #68] @ 0x44 + 8000a6c: 2302 movs r3, #2 + 8000a6e: 647b str r3, [r7, #68] @ 0x44 RCC_OscInitStruct.PLL.PLLQ = 4; - 8000a4c: 2304 movs r3, #4 - 8000a4e: 64bb str r3, [r7, #72] @ 0x48 + 8000a70: 2304 movs r3, #4 + 8000a72: 64bb str r3, [r7, #72] @ 0x48 RCC_OscInitStruct.PLL.PLLR = 2; - 8000a50: 2302 movs r3, #2 - 8000a52: 64fb str r3, [r7, #76] @ 0x4c + 8000a74: 2302 movs r3, #2 + 8000a76: 64fb str r3, [r7, #76] @ 0x4c if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - 8000a54: f107 031c add.w r3, r7, #28 - 8000a58: 4618 mov r0, r3 - 8000a5a: f004 f9a5 bl 8004da8 - 8000a5e: 4603 mov r3, r0 - 8000a60: 2b00 cmp r3, #0 - 8000a62: d001 beq.n 8000a68 + 8000a78: f107 031c add.w r3, r7, #28 + 8000a7c: 4618 mov r0, r3 + 8000a7e: f004 f9bd bl 8004dfc + 8000a82: 4603 mov r3, r0 + 8000a84: 2b00 cmp r3, #0 + 8000a86: d001 beq.n 8000a8c { Error_Handler(); - 8000a64: f000 fa20 bl 8000ea8 + 8000a88: f000 fa38 bl 8000efc } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - 8000a68: 230f movs r3, #15 - 8000a6a: 60bb str r3, [r7, #8] + 8000a8c: 230f movs r3, #15 + 8000a8e: 60bb str r3, [r7, #8] |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; - 8000a6c: 2302 movs r3, #2 - 8000a6e: 60fb str r3, [r7, #12] + 8000a90: 2302 movs r3, #2 + 8000a92: 60fb str r3, [r7, #12] RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV2; - 8000a70: 2380 movs r3, #128 @ 0x80 - 8000a72: 613b str r3, [r7, #16] + 8000a94: 2380 movs r3, #128 @ 0x80 + 8000a96: 613b str r3, [r7, #16] RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; - 8000a74: f44f 5380 mov.w r3, #4096 @ 0x1000 - 8000a78: 617b str r3, [r7, #20] + 8000a98: f44f 5380 mov.w r3, #4096 @ 0x1000 + 8000a9c: 617b str r3, [r7, #20] RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; - 8000a7a: 2300 movs r3, #0 - 8000a7c: 61bb str r3, [r7, #24] + 8000a9e: 2300 movs r3, #0 + 8000aa0: 61bb str r3, [r7, #24] if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK) - 8000a7e: f107 0308 add.w r3, r7, #8 - 8000a82: 2101 movs r1, #1 - 8000a84: 4618 mov r0, r3 - 8000a86: f003 fb1b bl 80040c0 - 8000a8a: 4603 mov r3, r0 - 8000a8c: 2b00 cmp r3, #0 - 8000a8e: d001 beq.n 8000a94 + 8000aa2: f107 0308 add.w r3, r7, #8 + 8000aa6: 2101 movs r1, #1 + 8000aa8: 4618 mov r0, r3 + 8000aaa: f003 fb33 bl 8004114 + 8000aae: 4603 mov r3, r0 + 8000ab0: 2b00 cmp r3, #0 + 8000ab2: d001 beq.n 8000ab8 { Error_Handler(); - 8000a90: f000 fa0a bl 8000ea8 + 8000ab4: f000 fa22 bl 8000efc } } - 8000a94: bf00 nop - 8000a96: 3750 adds r7, #80 @ 0x50 - 8000a98: 46bd mov sp, r7 - 8000a9a: bd80 pop {r7, pc} - 8000a9c: 40023800 .word 0x40023800 - 8000aa0: 40007000 .word 0x40007000 + 8000ab8: bf00 nop + 8000aba: 3750 adds r7, #80 @ 0x50 + 8000abc: 46bd mov sp, r7 + 8000abe: bd80 pop {r7, pc} + 8000ac0: 40023800 .word 0x40023800 + 8000ac4: 40007000 .word 0x40007000 -08000aa4 : +08000ac8 : /* USER CODE BEGIN 4 */ // UART Message Requests Goes Here void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { - 8000aa4: b580 push {r7, lr} - 8000aa6: b082 sub sp, #8 - 8000aa8: af00 add r7, sp, #0 - 8000aaa: 6078 str r0, [r7, #4] + 8000ac8: b580 push {r7, lr} + 8000aca: b082 sub sp, #8 + 8000acc: af00 add r7, sp, #0 + 8000ace: 6078 str r0, [r7, #4] if (huart->Instance == USART1) { - 8000aac: 687b ldr r3, [r7, #4] - 8000aae: 681b ldr r3, [r3, #0] - 8000ab0: 4a1e ldr r2, [pc, #120] @ (8000b2c ) - 8000ab2: 4293 cmp r3, r2 - 8000ab4: d109 bne.n 8000aca + 8000ad0: 687b ldr r3, [r7, #4] + 8000ad2: 681b ldr r3, [r3, #0] + 8000ad4: 4a1e ldr r2, [pc, #120] @ (8000b50 ) + 8000ad6: 4293 cmp r3, r2 + 8000ad8: d109 bne.n 8000aee handleUARTMessages((uint8_t*)&RX1Msg, &huart1); - 8000ab6: 491e ldr r1, [pc, #120] @ (8000b30 ) - 8000ab8: 481e ldr r0, [pc, #120] @ (8000b34 ) - 8000aba: f000 f8dd bl 8000c78 + 8000ada: 491e ldr r1, [pc, #120] @ (8000b54 ) + 8000adc: 481e ldr r0, [pc, #120] @ (8000b58 ) + 8000ade: f000 f8dd bl 8000c9c HAL_UART_Receive_DMA(&huart1, (uint8_t*)&RX1Msg, sizeof(UARTMessage)); - 8000abe: 2210 movs r2, #16 - 8000ac0: 491c ldr r1, [pc, #112] @ (8000b34 ) - 8000ac2: 481b ldr r0, [pc, #108] @ (8000b30 ) - 8000ac4: f005 f8fe bl 8005cc4 + 8000ae2: 2210 movs r2, #16 + 8000ae4: 491c ldr r1, [pc, #112] @ (8000b58 ) + 8000ae6: 481b ldr r0, [pc, #108] @ (8000b54 ) + 8000ae8: f005 f916 bl 8005d18 } else if (huart->Instance == UART5) { handleUARTMessages((uint8_t*)&RX5Msg, &huart5); HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); } } - 8000ac8: e02b b.n 8000b22 + 8000aec: e02b b.n 8000b46 else if (huart->Instance == USART2) { - 8000aca: 687b ldr r3, [r7, #4] - 8000acc: 681b ldr r3, [r3, #0] - 8000ace: 4a1a ldr r2, [pc, #104] @ (8000b38 ) - 8000ad0: 4293 cmp r3, r2 - 8000ad2: d109 bne.n 8000ae8 + 8000aee: 687b ldr r3, [r7, #4] + 8000af0: 681b ldr r3, [r3, #0] + 8000af2: 4a1a ldr r2, [pc, #104] @ (8000b5c ) + 8000af4: 4293 cmp r3, r2 + 8000af6: d109 bne.n 8000b0c handleUARTMessages((uint8_t*)&RX2Msg, &huart2); - 8000ad4: 4919 ldr r1, [pc, #100] @ (8000b3c ) - 8000ad6: 481a ldr r0, [pc, #104] @ (8000b40 ) - 8000ad8: f000 f8ce bl 8000c78 + 8000af8: 4919 ldr r1, [pc, #100] @ (8000b60 ) + 8000afa: 481a ldr r0, [pc, #104] @ (8000b64 ) + 8000afc: f000 f8ce bl 8000c9c HAL_UART_Receive_DMA(&huart2, (uint8_t*)&RX2Msg, sizeof(UARTMessage)); - 8000adc: 2210 movs r2, #16 - 8000ade: 4918 ldr r1, [pc, #96] @ (8000b40 ) - 8000ae0: 4816 ldr r0, [pc, #88] @ (8000b3c ) - 8000ae2: f005 f8ef bl 8005cc4 + 8000b00: 2210 movs r2, #16 + 8000b02: 4918 ldr r1, [pc, #96] @ (8000b64 ) + 8000b04: 4816 ldr r0, [pc, #88] @ (8000b60 ) + 8000b06: f005 f907 bl 8005d18 } - 8000ae6: e01c b.n 8000b22 + 8000b0a: e01c b.n 8000b46 else if (huart->Instance == UART4) { - 8000ae8: 687b ldr r3, [r7, #4] - 8000aea: 681b ldr r3, [r3, #0] - 8000aec: 4a15 ldr r2, [pc, #84] @ (8000b44 ) - 8000aee: 4293 cmp r3, r2 - 8000af0: d109 bne.n 8000b06 + 8000b0c: 687b ldr r3, [r7, #4] + 8000b0e: 681b ldr r3, [r3, #0] + 8000b10: 4a15 ldr r2, [pc, #84] @ (8000b68 ) + 8000b12: 4293 cmp r3, r2 + 8000b14: d109 bne.n 8000b2a handleUARTMessages((uint8_t*)&RX4Msg, &huart4); - 8000af2: 4915 ldr r1, [pc, #84] @ (8000b48 ) - 8000af4: 4815 ldr r0, [pc, #84] @ (8000b4c ) - 8000af6: f000 f8bf bl 8000c78 + 8000b16: 4915 ldr r1, [pc, #84] @ (8000b6c ) + 8000b18: 4815 ldr r0, [pc, #84] @ (8000b70 ) + 8000b1a: f000 f8bf bl 8000c9c HAL_UART_Receive_DMA(&huart4, (uint8_t*)&RX4Msg, sizeof(UARTMessage)); - 8000afa: 2210 movs r2, #16 - 8000afc: 4913 ldr r1, [pc, #76] @ (8000b4c ) - 8000afe: 4812 ldr r0, [pc, #72] @ (8000b48 ) - 8000b00: f005 f8e0 bl 8005cc4 + 8000b1e: 2210 movs r2, #16 + 8000b20: 4913 ldr r1, [pc, #76] @ (8000b70 ) + 8000b22: 4812 ldr r0, [pc, #72] @ (8000b6c ) + 8000b24: f005 f8f8 bl 8005d18 } - 8000b04: e00d b.n 8000b22 + 8000b28: e00d b.n 8000b46 else if (huart->Instance == UART5) { - 8000b06: 687b ldr r3, [r7, #4] - 8000b08: 681b ldr r3, [r3, #0] - 8000b0a: 4a11 ldr r2, [pc, #68] @ (8000b50 ) - 8000b0c: 4293 cmp r3, r2 - 8000b0e: d108 bne.n 8000b22 + 8000b2a: 687b ldr r3, [r7, #4] + 8000b2c: 681b ldr r3, [r3, #0] + 8000b2e: 4a11 ldr r2, [pc, #68] @ (8000b74 ) + 8000b30: 4293 cmp r3, r2 + 8000b32: d108 bne.n 8000b46 handleUARTMessages((uint8_t*)&RX5Msg, &huart5); - 8000b10: 4910 ldr r1, [pc, #64] @ (8000b54 ) - 8000b12: 4811 ldr r0, [pc, #68] @ (8000b58 ) - 8000b14: f000 f8b0 bl 8000c78 + 8000b34: 4910 ldr r1, [pc, #64] @ (8000b78 ) + 8000b36: 4811 ldr r0, [pc, #68] @ (8000b7c ) + 8000b38: f000 f8b0 bl 8000c9c HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); - 8000b18: 2210 movs r2, #16 - 8000b1a: 490f ldr r1, [pc, #60] @ (8000b58 ) - 8000b1c: 480d ldr r0, [pc, #52] @ (8000b54 ) - 8000b1e: f005 f8d1 bl 8005cc4 + 8000b3c: 2210 movs r2, #16 + 8000b3e: 490f ldr r1, [pc, #60] @ (8000b7c ) + 8000b40: 480d ldr r0, [pc, #52] @ (8000b78 ) + 8000b42: f005 f8e9 bl 8005d18 } - 8000b22: bf00 nop - 8000b24: 3708 adds r7, #8 - 8000b26: 46bd mov sp, r7 - 8000b28: bd80 pop {r7, pc} - 8000b2a: bf00 nop - 8000b2c: 40011000 .word 0x40011000 - 8000b30: 2000039c .word 0x2000039c - 8000b34: 20000230 .word 0x20000230 - 8000b38: 40004400 .word 0x40004400 - 8000b3c: 200003e4 .word 0x200003e4 - 8000b40: 20000240 .word 0x20000240 - 8000b44: 40004c00 .word 0x40004c00 - 8000b48: 2000030c .word 0x2000030c - 8000b4c: 20000250 .word 0x20000250 - 8000b50: 40005000 .word 0x40005000 - 8000b54: 20000354 .word 0x20000354 - 8000b58: 20000220 .word 0x20000220 + 8000b46: bf00 nop + 8000b48: 3708 adds r7, #8 + 8000b4a: 46bd mov sp, r7 + 8000b4c: bd80 pop {r7, pc} + 8000b4e: bf00 nop + 8000b50: 40011000 .word 0x40011000 + 8000b54: 200003a0 .word 0x200003a0 + 8000b58: 20000230 .word 0x20000230 + 8000b5c: 40004400 .word 0x40004400 + 8000b60: 200003e8 .word 0x200003e8 + 8000b64: 20000240 .word 0x20000240 + 8000b68: 40004c00 .word 0x40004c00 + 8000b6c: 20000310 .word 0x20000310 + 8000b70: 20000250 .word 0x20000250 + 8000b74: 40005000 .word 0x40005000 + 8000b78: 20000358 .word 0x20000358 + 8000b7c: 20000220 .word 0x20000220 -08000b5c : +08000b80 : void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) { - 8000b5c: b580 push {r7, lr} - 8000b5e: b082 sub sp, #8 - 8000b60: af00 add r7, sp, #0 - 8000b62: 6078 str r0, [r7, #4] + 8000b80: b580 push {r7, lr} + 8000b82: b082 sub sp, #8 + 8000b84: af00 add r7, sp, #0 + 8000b86: 6078 str r0, [r7, #4] // Restart DMA on error if (huart->Instance == USART1) { - 8000b64: 687b ldr r3, [r7, #4] - 8000b66: 681b ldr r3, [r3, #0] - 8000b68: 4a16 ldr r2, [pc, #88] @ (8000bc4 ) - 8000b6a: 4293 cmp r3, r2 - 8000b6c: d105 bne.n 8000b7a + 8000b88: 687b ldr r3, [r7, #4] + 8000b8a: 681b ldr r3, [r3, #0] + 8000b8c: 4a16 ldr r2, [pc, #88] @ (8000be8 ) + 8000b8e: 4293 cmp r3, r2 + 8000b90: d105 bne.n 8000b9e HAL_UART_Receive_DMA(&huart1, (uint8_t*)&RX1Msg, sizeof(UARTMessage)); - 8000b6e: 2210 movs r2, #16 - 8000b70: 4915 ldr r1, [pc, #84] @ (8000bc8 ) - 8000b72: 4816 ldr r0, [pc, #88] @ (8000bcc ) - 8000b74: f005 f8a6 bl 8005cc4 + 8000b92: 2210 movs r2, #16 + 8000b94: 4915 ldr r1, [pc, #84] @ (8000bec ) + 8000b96: 4816 ldr r0, [pc, #88] @ (8000bf0 ) + 8000b98: f005 f8be bl 8005d18 HAL_UART_Receive_DMA(&huart4, (uint8_t*)&RX4Msg, sizeof(UARTMessage)); } else if (huart->Instance == UART5) { HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); } } - 8000b78: e01f b.n 8000bba + 8000b9c: e01f b.n 8000bde else if (huart->Instance == USART2) { - 8000b7a: 687b ldr r3, [r7, #4] - 8000b7c: 681b ldr r3, [r3, #0] - 8000b7e: 4a14 ldr r2, [pc, #80] @ (8000bd0 ) - 8000b80: 4293 cmp r3, r2 - 8000b82: d105 bne.n 8000b90 + 8000b9e: 687b ldr r3, [r7, #4] + 8000ba0: 681b ldr r3, [r3, #0] + 8000ba2: 4a14 ldr r2, [pc, #80] @ (8000bf4 ) + 8000ba4: 4293 cmp r3, r2 + 8000ba6: d105 bne.n 8000bb4 HAL_UART_Receive_DMA(&huart2, (uint8_t*)&RX2Msg, sizeof(UARTMessage)); - 8000b84: 2210 movs r2, #16 - 8000b86: 4913 ldr r1, [pc, #76] @ (8000bd4 ) - 8000b88: 4813 ldr r0, [pc, #76] @ (8000bd8 ) - 8000b8a: f005 f89b bl 8005cc4 + 8000ba8: 2210 movs r2, #16 + 8000baa: 4913 ldr r1, [pc, #76] @ (8000bf8 ) + 8000bac: 4813 ldr r0, [pc, #76] @ (8000bfc ) + 8000bae: f005 f8b3 bl 8005d18 } - 8000b8e: e014 b.n 8000bba + 8000bb2: e014 b.n 8000bde else if (huart->Instance == UART4) { - 8000b90: 687b ldr r3, [r7, #4] - 8000b92: 681b ldr r3, [r3, #0] - 8000b94: 4a11 ldr r2, [pc, #68] @ (8000bdc ) - 8000b96: 4293 cmp r3, r2 - 8000b98: d105 bne.n 8000ba6 + 8000bb4: 687b ldr r3, [r7, #4] + 8000bb6: 681b ldr r3, [r3, #0] + 8000bb8: 4a11 ldr r2, [pc, #68] @ (8000c00 ) + 8000bba: 4293 cmp r3, r2 + 8000bbc: d105 bne.n 8000bca HAL_UART_Receive_DMA(&huart4, (uint8_t*)&RX4Msg, sizeof(UARTMessage)); - 8000b9a: 2210 movs r2, #16 - 8000b9c: 4910 ldr r1, [pc, #64] @ (8000be0 ) - 8000b9e: 4811 ldr r0, [pc, #68] @ (8000be4 ) - 8000ba0: f005 f890 bl 8005cc4 + 8000bbe: 2210 movs r2, #16 + 8000bc0: 4910 ldr r1, [pc, #64] @ (8000c04 ) + 8000bc2: 4811 ldr r0, [pc, #68] @ (8000c08 ) + 8000bc4: f005 f8a8 bl 8005d18 } - 8000ba4: e009 b.n 8000bba + 8000bc8: e009 b.n 8000bde else if (huart->Instance == UART5) { - 8000ba6: 687b ldr r3, [r7, #4] - 8000ba8: 681b ldr r3, [r3, #0] - 8000baa: 4a0f ldr r2, [pc, #60] @ (8000be8 ) - 8000bac: 4293 cmp r3, r2 - 8000bae: d104 bne.n 8000bba + 8000bca: 687b ldr r3, [r7, #4] + 8000bcc: 681b ldr r3, [r3, #0] + 8000bce: 4a0f ldr r2, [pc, #60] @ (8000c0c ) + 8000bd0: 4293 cmp r3, r2 + 8000bd2: d104 bne.n 8000bde HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); - 8000bb0: 2210 movs r2, #16 - 8000bb2: 490e ldr r1, [pc, #56] @ (8000bec ) - 8000bb4: 480e ldr r0, [pc, #56] @ (8000bf0 ) - 8000bb6: f005 f885 bl 8005cc4 + 8000bd4: 2210 movs r2, #16 + 8000bd6: 490e ldr r1, [pc, #56] @ (8000c10 ) + 8000bd8: 480e ldr r0, [pc, #56] @ (8000c14 ) + 8000bda: f005 f89d bl 8005d18 } - 8000bba: bf00 nop - 8000bbc: 3708 adds r7, #8 - 8000bbe: 46bd mov sp, r7 - 8000bc0: bd80 pop {r7, pc} - 8000bc2: bf00 nop - 8000bc4: 40011000 .word 0x40011000 - 8000bc8: 20000230 .word 0x20000230 - 8000bcc: 2000039c .word 0x2000039c - 8000bd0: 40004400 .word 0x40004400 - 8000bd4: 20000240 .word 0x20000240 - 8000bd8: 200003e4 .word 0x200003e4 - 8000bdc: 40004c00 .word 0x40004c00 - 8000be0: 20000250 .word 0x20000250 - 8000be4: 2000030c .word 0x2000030c - 8000be8: 40005000 .word 0x40005000 - 8000bec: 20000220 .word 0x20000220 - 8000bf0: 20000354 .word 0x20000354 + 8000bde: bf00 nop + 8000be0: 3708 adds r7, #8 + 8000be2: 46bd mov sp, r7 + 8000be4: bd80 pop {r7, pc} + 8000be6: bf00 nop + 8000be8: 40011000 .word 0x40011000 + 8000bec: 20000230 .word 0x20000230 + 8000bf0: 200003a0 .word 0x200003a0 + 8000bf4: 40004400 .word 0x40004400 + 8000bf8: 20000240 .word 0x20000240 + 8000bfc: 200003e8 .word 0x200003e8 + 8000c00: 40004c00 .word 0x40004c00 + 8000c04: 20000250 .word 0x20000250 + 8000c08: 20000310 .word 0x20000310 + 8000c0c: 40005000 .word 0x40005000 + 8000c10: 20000220 .word 0x20000220 + 8000c14: 20000358 .word 0x20000358 -08000bf4 : +08000c18 : void findBestParent(){ - 8000bf4: b580 push {r7, lr} - 8000bf6: b084 sub sp, #16 - 8000bf8: af00 add r7, sp, #0 + 8000c18: b580 push {r7, lr} + 8000c1a: b084 sub sp, #16 + 8000c1c: af00 add r7, sp, #0 //Find least depth parent uint16_t least_val = 0xFF; - 8000bfa: 23ff movs r3, #255 @ 0xff - 8000bfc: 81fb strh r3, [r7, #14] + 8000c1e: 23ff movs r3, #255 @ 0xff + 8000c20: 81fb strh r3, [r7, #14] UART_HandleTypeDef* least_port = NULL; - 8000bfe: 2300 movs r3, #0 - 8000c00: 60bb str r3, [r7, #8] + 8000c22: 2300 movs r3, #0 + 8000c24: 60bb str r3, [r7, #8] for(uint8_t i = 0; i < 4; i++){ - 8000c02: 2300 movs r3, #0 - 8000c04: 71fb strb r3, [r7, #7] - 8000c06: e013 b.n 8000c30 + 8000c26: 2300 movs r3, #0 + 8000c28: 71fb strb r3, [r7, #7] + 8000c2a: e013 b.n 8000c54 if(PORT_DEPTH[i]) - 8000c0c: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 8000c10: 89fa ldrh r2, [r7, #14] - 8000c12: 429a cmp r2, r3 - 8000c14: d909 bls.n 8000c2a + 8000c2c: 79fb ldrb r3, [r7, #7] + 8000c2e: 4a16 ldr r2, [pc, #88] @ (8000c88 ) + 8000c30: f832 3013 ldrh.w r3, [r2, r3, lsl #1] + 8000c34: 89fa ldrh r2, [r7, #14] + 8000c36: 429a cmp r2, r3 + 8000c38: d909 bls.n 8000c4e least_port = PORTS[i]; - 8000c16: 79fb ldrb r3, [r7, #7] - 8000c18: 4a13 ldr r2, [pc, #76] @ (8000c68 ) - 8000c1a: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8000c1e: 60bb str r3, [r7, #8] + 8000c3a: 79fb ldrb r3, [r7, #7] + 8000c3c: 4a13 ldr r2, [pc, #76] @ (8000c8c ) + 8000c3e: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8000c42: 60bb str r3, [r7, #8] least_val = PORT_DEPTH[i]; - 8000c20: 79fb ldrb r3, [r7, #7] - 8000c22: 4a10 ldr r2, [pc, #64] @ (8000c64 ) - 8000c24: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 8000c28: 81fb strh r3, [r7, #14] + 8000c44: 79fb ldrb r3, [r7, #7] + 8000c46: 4a10 ldr r2, [pc, #64] @ (8000c88 ) + 8000c48: f832 3013 ldrh.w r3, [r2, r3, lsl #1] + 8000c4c: 81fb strh r3, [r7, #14] for(uint8_t i = 0; i < 4; i++){ - 8000c2a: 79fb ldrb r3, [r7, #7] - 8000c2c: 3301 adds r3, #1 - 8000c2e: 71fb strb r3, [r7, #7] - 8000c30: 79fb ldrb r3, [r7, #7] - 8000c32: 2b03 cmp r3, #3 - 8000c34: d9e8 bls.n 8000c08 + 8000c4e: 79fb ldrb r3, [r7, #7] + 8000c50: 3301 adds r3, #1 + 8000c52: 71fb strb r3, [r7, #7] + 8000c54: 79fb ldrb r3, [r7, #7] + 8000c56: 2b03 cmp r3, #3 + 8000c58: d9e8 bls.n 8000c2c } } //Assign if valid if(least_val < 0xFF){ - 8000c36: 89fb ldrh r3, [r7, #14] - 8000c38: 2bfe cmp r3, #254 @ 0xfe - 8000c3a: d80e bhi.n 8000c5a + 8000c5a: 89fb ldrh r3, [r7, #14] + 8000c5c: 2bfe cmp r3, #254 @ 0xfe + 8000c5e: d80e bhi.n 8000c7e PARENT = least_port; - 8000c3c: 4a0b ldr r2, [pc, #44] @ (8000c6c ) - 8000c3e: 68bb ldr r3, [r7, #8] - 8000c40: 6013 str r3, [r2, #0] + 8000c60: 4a0b ldr r2, [pc, #44] @ (8000c90 ) + 8000c62: 68bb ldr r3, [r7, #8] + 8000c64: 6013 str r3, [r2, #0] DEPTH = least_val + 1; - 8000c42: 89fb ldrh r3, [r7, #14] - 8000c44: 3301 adds r3, #1 - 8000c46: b29a uxth r2, r3 - 8000c48: 4b09 ldr r3, [pc, #36] @ (8000c70 ) - 8000c4a: 801a strh r2, [r3, #0] + 8000c66: 89fb ldrh r3, [r7, #14] + 8000c68: 3301 adds r3, #1 + 8000c6a: b29a uxth r2, r3 + 8000c6c: 4b09 ldr r3, [pc, #36] @ (8000c94 ) + 8000c6e: 801a strh r2, [r3, #0] MODE = MODE_ACTIVE; - 8000c4c: 4b09 ldr r3, [pc, #36] @ (8000c74 ) - 8000c4e: 2202 movs r2, #2 - 8000c50: 701a strb r2, [r3, #0] + 8000c70: 4b09 ldr r3, [pc, #36] @ (8000c98 ) + 8000c72: 2202 movs r2, #2 + 8000c74: 701a strb r2, [r3, #0] HAL_Delay(500); - 8000c52: f44f 70fa mov.w r0, #500 @ 0x1f4 - 8000c56: f000 ff6b bl 8001b30 + 8000c76: f44f 70fa mov.w r0, #500 @ 0x1f4 + 8000c7a: f000 ff83 bl 8001b84 } } - 8000c5a: bf00 nop - 8000c5c: 3710 adds r7, #16 - 8000c5e: 46bd mov sp, r7 - 8000c60: bd80 pop {r7, pc} - 8000c62: bf00 nop - 8000c64: 20000078 .word 0x20000078 - 8000c68: 20000080 .word 0x20000080 - 8000c6c: 20000264 .word 0x20000264 - 8000c70: 20000260 .word 0x20000260 - 8000c74: 20000278 .word 0x20000278 + 8000c7e: bf00 nop + 8000c80: 3710 adds r7, #16 + 8000c82: 46bd mov sp, r7 + 8000c84: bd80 pop {r7, pc} + 8000c86: bf00 nop + 8000c88: 20000078 .word 0x20000078 + 8000c8c: 20000080 .word 0x20000080 + 8000c90: 20000264 .word 0x20000264 + 8000c94: 20000260 .word 0x20000260 + 8000c98: 20000268 .word 0x20000268 -08000c78 : +08000c9c : // Called when UART RX interrupt completes void handleUARTMessages(uint8_t *data, UART_HandleTypeDef *sender) { - 8000c78: b590 push {r4, r7, lr} - 8000c7a: b08b sub sp, #44 @ 0x2c - 8000c7c: af00 add r7, sp, #0 - 8000c7e: 6078 str r0, [r7, #4] - 8000c80: 6039 str r1, [r7, #0] + 8000c9c: b590 push {r4, r7, lr} + 8000c9e: b08d sub sp, #52 @ 0x34 + 8000ca0: af00 add r7, sp, #0 + 8000ca2: 6078 str r0, [r7, #4] + 8000ca4: 6039 str r1, [r7, #0] UARTMessage msg; UARTMessage reply; // Parse incoming message into struct memcpy(&msg, data, sizeof(UARTMessage)); - 8000c82: 687b ldr r3, [r7, #4] - 8000c84: f107 0418 add.w r4, r7, #24 - 8000c88: 6818 ldr r0, [r3, #0] - 8000c8a: 6859 ldr r1, [r3, #4] - 8000c8c: 689a ldr r2, [r3, #8] - 8000c8e: 68db ldr r3, [r3, #12] - 8000c90: c40f stmia r4!, {r0, r1, r2, r3} + 8000ca6: 687b ldr r3, [r7, #4] + 8000ca8: f107 041c add.w r4, r7, #28 + 8000cac: 6818 ldr r0, [r3, #0] + 8000cae: 6859 ldr r1, [r3, #4] + 8000cb0: 689a ldr r2, [r3, #8] + 8000cb2: 68db ldr r3, [r3, #12] + 8000cb4: c40f stmia r4!, {r0, r1, r2, r3} switch(msg.TYPE) { - 8000c92: 8b7b ldrh r3, [r7, #26] - 8000c94: 2bff cmp r3, #255 @ 0xff - 8000c96: d026 beq.n 8000ce6 - 8000c98: 2bff cmp r3, #255 @ 0xff - 8000c9a: dc4b bgt.n 8000d34 - 8000c9c: 2baa cmp r3, #170 @ 0xaa - 8000c9e: d002 beq.n 8000ca6 - 8000ca0: 2bee cmp r3, #238 @ 0xee - 8000ca2: d03a beq.n 8000d1a - memcpy(msg.KEYPRESS, reportBuff.KEYPRESS, sizeof(reply.KEYPRESS)); - } + 8000cb6: 8bfb ldrh r3, [r7, #30] + 8000cb8: 2bff cmp r3, #255 @ 0xff + 8000cba: d026 beq.n 8000d0a + 8000cbc: 2bff cmp r3, #255 @ 0xff + 8000cbe: dc62 bgt.n 8000d86 + 8000cc0: 2baa cmp r3, #170 @ 0xaa + 8000cc2: d002 beq.n 8000cca + 8000cc4: 2bee cmp r3, #238 @ 0xee + 8000cc6: d03a beq.n 8000d3e + uartUpdateFlag = 1; + } break; default: break; - 8000ca4: e046 b.n 8000d34 + 8000cc8: e05d b.n 8000d86 if(sender == &huart5) { - 8000ca6: 683b ldr r3, [r7, #0] - 8000ca8: 4a28 ldr r2, [pc, #160] @ (8000d4c ) - 8000caa: 4293 cmp r3, r2 - 8000cac: d103 bne.n 8000cb6 + 8000cca: 683b ldr r3, [r7, #0] + 8000ccc: 4a33 ldr r2, [pc, #204] @ (8000d9c ) + 8000cce: 4293 cmp r3, r2 + 8000cd0: d103 bne.n 8000cda PORT_DEPTH[0] = msg.DEPTH; - 8000cae: 8b3a ldrh r2, [r7, #24] - 8000cb0: 4b27 ldr r3, [pc, #156] @ (8000d50 ) - 8000cb2: 801a strh r2, [r3, #0] + 8000cd2: 8bba ldrh r2, [r7, #28] + 8000cd4: 4b32 ldr r3, [pc, #200] @ (8000da0 ) + 8000cd6: 801a strh r2, [r3, #0] break; - 8000cb4: e040 b.n 8000d38 + 8000cd8: e057 b.n 8000d8a } else if(sender == &huart1) { - 8000cb6: 683b ldr r3, [r7, #0] - 8000cb8: 4a26 ldr r2, [pc, #152] @ (8000d54 ) - 8000cba: 4293 cmp r3, r2 - 8000cbc: d103 bne.n 8000cc6 + 8000cda: 683b ldr r3, [r7, #0] + 8000cdc: 4a31 ldr r2, [pc, #196] @ (8000da4 ) + 8000cde: 4293 cmp r3, r2 + 8000ce0: d103 bne.n 8000cea PORT_DEPTH[1] = msg.DEPTH; - 8000cbe: 8b3a ldrh r2, [r7, #24] - 8000cc0: 4b23 ldr r3, [pc, #140] @ (8000d50 ) - 8000cc2: 805a strh r2, [r3, #2] + 8000ce2: 8bba ldrh r2, [r7, #28] + 8000ce4: 4b2e ldr r3, [pc, #184] @ (8000da0 ) + 8000ce6: 805a strh r2, [r3, #2] break; - 8000cc4: e038 b.n 8000d38 + 8000ce8: e04f b.n 8000d8a } else if(sender == &huart2) { - 8000cc6: 683b ldr r3, [r7, #0] - 8000cc8: 4a23 ldr r2, [pc, #140] @ (8000d58 ) - 8000cca: 4293 cmp r3, r2 - 8000ccc: d103 bne.n 8000cd6 + 8000cea: 683b ldr r3, [r7, #0] + 8000cec: 4a2e ldr r2, [pc, #184] @ (8000da8 ) + 8000cee: 4293 cmp r3, r2 + 8000cf0: d103 bne.n 8000cfa PORT_DEPTH[2] = msg.DEPTH; - 8000cce: 8b3a ldrh r2, [r7, #24] - 8000cd0: 4b1f ldr r3, [pc, #124] @ (8000d50 ) - 8000cd2: 809a strh r2, [r3, #4] + 8000cf2: 8bba ldrh r2, [r7, #28] + 8000cf4: 4b2a ldr r3, [pc, #168] @ (8000da0 ) + 8000cf6: 809a strh r2, [r3, #4] break; - 8000cd4: e030 b.n 8000d38 + 8000cf8: e047 b.n 8000d8a } else if(sender == &huart4) { - 8000cd6: 683b ldr r3, [r7, #0] - 8000cd8: 4a20 ldr r2, [pc, #128] @ (8000d5c ) - 8000cda: 4293 cmp r3, r2 - 8000cdc: d12c bne.n 8000d38 + 8000cfa: 683b ldr r3, [r7, #0] + 8000cfc: 4a2b ldr r2, [pc, #172] @ (8000dac ) + 8000cfe: 4293 cmp r3, r2 + 8000d00: d143 bne.n 8000d8a PORT_DEPTH[3] = msg.DEPTH; - 8000cde: 8b3a ldrh r2, [r7, #24] - 8000ce0: 4b1b ldr r3, [pc, #108] @ (8000d50 ) - 8000ce2: 80da strh r2, [r3, #6] + 8000d02: 8bba ldrh r2, [r7, #28] + 8000d04: 4b26 ldr r3, [pc, #152] @ (8000da0 ) + 8000d06: 80da strh r2, [r3, #6] break; - 8000ce4: e028 b.n 8000d38 + 8000d08: e03f b.n 8000d8a if(MODE!=MODE_INACTIVE){ - 8000ce6: 4b1e ldr r3, [pc, #120] @ (8000d60 ) - 8000ce8: 781b ldrb r3, [r3, #0] - 8000cea: b2db uxtb r3, r3 - 8000cec: 2b00 cmp r3, #0 - 8000cee: d025 beq.n 8000d3c + 8000d0a: 4b29 ldr r3, [pc, #164] @ (8000db0 ) + 8000d0c: 781b ldrb r3, [r3, #0] + 8000d0e: b2db uxtb r3, r3 + 8000d10: 2b00 cmp r3, #0 + 8000d12: d03c beq.n 8000d8e reply.TYPE = 0xAA; - 8000cf0: 23aa movs r3, #170 @ 0xaa - 8000cf2: 817b strh r3, [r7, #10] + 8000d14: 23aa movs r3, #170 @ 0xaa + 8000d16: 81fb strh r3, [r7, #14] reply.DEPTH = DEPTH; // use your local DEPTH - 8000cf4: 4b1b ldr r3, [pc, #108] @ (8000d64 ) - 8000cf6: 881b ldrh r3, [r3, #0] - 8000cf8: 813b strh r3, [r7, #8] + 8000d18: 4b26 ldr r3, [pc, #152] @ (8000db4 ) + 8000d1a: 881b ldrh r3, [r3, #0] + 8000d1c: 81bb strh r3, [r7, #12] memset(reply.KEYPRESS, 0, sizeof(reply.KEYPRESS)); - 8000cfa: f107 0308 add.w r3, r7, #8 - 8000cfe: 3304 adds r3, #4 - 8000d00: 220c movs r2, #12 - 8000d02: 2100 movs r1, #0 - 8000d04: 4618 mov r0, r3 - 8000d06: f009 fe85 bl 800aa14 + 8000d1e: f107 030c add.w r3, r7, #12 + 8000d22: 3304 adds r3, #4 + 8000d24: 220c movs r2, #12 + 8000d26: 2100 movs r1, #0 + 8000d28: 4618 mov r0, r3 + 8000d2a: f009 fe9d bl 800aa68 HAL_UART_Transmit_DMA(sender, (uint8_t*)&reply, sizeof(reply)); - 8000d0a: f107 0308 add.w r3, r7, #8 - 8000d0e: 2210 movs r2, #16 - 8000d10: 4619 mov r1, r3 - 8000d12: 6838 ldr r0, [r7, #0] - 8000d14: f004 ff5a bl 8005bcc + 8000d2e: f107 030c add.w r3, r7, #12 + 8000d32: 2210 movs r2, #16 + 8000d34: 4619 mov r1, r3 + 8000d36: 6838 ldr r0, [r7, #0] + 8000d38: f004 ff72 bl 8005c20 break; - 8000d18: e010 b.n 8000d3c - if(MODE!=MODE_INACTIVE){ - 8000d1a: 4b11 ldr r3, [pc, #68] @ (8000d60 ) - 8000d1c: 781b ldrb r3, [r3, #0] - 8000d1e: b2db uxtb r3, r3 - 8000d20: 2b00 cmp r3, #0 - 8000d22: d00d beq.n 8000d40 - memcpy(msg.KEYPRESS, reportBuff.KEYPRESS, sizeof(reply.KEYPRESS)); - 8000d24: 4a10 ldr r2, [pc, #64] @ (8000d68 ) - 8000d26: f107 031c add.w r3, r7, #28 - 8000d2a: 3204 adds r2, #4 - 8000d2c: ca07 ldmia r2, {r0, r1, r2} - 8000d2e: e883 0007 stmia.w r3, {r0, r1, r2} + 8000d3c: e027 b.n 8000d8e + if (MODE != MODE_INACTIVE) { + 8000d3e: 4b1c ldr r3, [pc, #112] @ (8000db0 ) + 8000d40: 781b ldrb r3, [r3, #0] + 8000d42: b2db uxtb r3, r3 + 8000d44: 2b00 cmp r3, #0 + 8000d46: d024 beq.n 8000d92 + for (int i = 0; i < sizeof(REPORT.KEYPRESS); i++) { + 8000d48: 2300 movs r3, #0 + 8000d4a: 62fb str r3, [r7, #44] @ 0x2c + 8000d4c: e014 b.n 8000d78 + uartBuffer.KEYPRESS[i] |= msg.KEYPRESS[i]; + 8000d4e: 4a1a ldr r2, [pc, #104] @ (8000db8 ) + 8000d50: 6afb ldr r3, [r7, #44] @ 0x2c + 8000d52: 4413 add r3, r2 + 8000d54: 3304 adds r3, #4 + 8000d56: 781a ldrb r2, [r3, #0] + 8000d58: f107 0120 add.w r1, r7, #32 + 8000d5c: 6afb ldr r3, [r7, #44] @ 0x2c + 8000d5e: 440b add r3, r1 + 8000d60: 781b ldrb r3, [r3, #0] + 8000d62: 4313 orrs r3, r2 + 8000d64: b2d9 uxtb r1, r3 + 8000d66: 4a14 ldr r2, [pc, #80] @ (8000db8 ) + 8000d68: 6afb ldr r3, [r7, #44] @ 0x2c + 8000d6a: 4413 add r3, r2 + 8000d6c: 3304 adds r3, #4 + 8000d6e: 460a mov r2, r1 + 8000d70: 701a strb r2, [r3, #0] + for (int i = 0; i < sizeof(REPORT.KEYPRESS); i++) { + 8000d72: 6afb ldr r3, [r7, #44] @ 0x2c + 8000d74: 3301 adds r3, #1 + 8000d76: 62fb str r3, [r7, #44] @ 0x2c + 8000d78: 6afb ldr r3, [r7, #44] @ 0x2c + 8000d7a: 2b0b cmp r3, #11 + 8000d7c: d9e7 bls.n 8000d4e + uartUpdateFlag = 1; + 8000d7e: 4b0f ldr r3, [pc, #60] @ (8000dbc ) + 8000d80: 2201 movs r2, #1 + 8000d82: 601a str r2, [r3, #0] break; - 8000d32: e005 b.n 8000d40 + 8000d84: e005 b.n 8000d92 break; - 8000d34: bf00 nop - 8000d36: e004 b.n 8000d42 + 8000d86: bf00 nop + 8000d88: e004 b.n 8000d94 break; - 8000d38: bf00 nop - 8000d3a: e002 b.n 8000d42 + 8000d8a: bf00 nop + 8000d8c: e002 b.n 8000d94 break; - 8000d3c: bf00 nop - 8000d3e: e000 b.n 8000d42 + 8000d8e: bf00 nop + 8000d90: e000 b.n 8000d94 break; - 8000d40: bf00 nop + 8000d92: bf00 nop } } - 8000d42: bf00 nop - 8000d44: 372c adds r7, #44 @ 0x2c - 8000d46: 46bd mov sp, r7 - 8000d48: bd90 pop {r4, r7, pc} - 8000d4a: bf00 nop - 8000d4c: 20000354 .word 0x20000354 - 8000d50: 20000078 .word 0x20000078 - 8000d54: 2000039c .word 0x2000039c - 8000d58: 200003e4 .word 0x200003e4 - 8000d5c: 2000030c .word 0x2000030c - 8000d60: 20000278 .word 0x20000278 - 8000d64: 20000260 .word 0x20000260 - 8000d68: 20000268 .word 0x20000268 + 8000d94: bf00 nop + 8000d96: 3734 adds r7, #52 @ 0x34 + 8000d98: 46bd mov sp, r7 + 8000d9a: bd90 pop {r4, r7, pc} + 8000d9c: 20000358 .word 0x20000358 + 8000da0: 20000078 .word 0x20000078 + 8000da4: 200003a0 .word 0x200003a0 + 8000da8: 200003e8 .word 0x200003e8 + 8000dac: 20000310 .word 0x20000310 + 8000db0: 20000268 .word 0x20000268 + 8000db4: 20000260 .word 0x20000260 + 8000db8: 2000026c .word 0x2000026c + 8000dbc: 2000027c .word 0x2000027c -08000d6c : +08000dc0 : void addUSBReport(uint8_t usageID){ - 8000d6c: b480 push {r7} - 8000d6e: b085 sub sp, #20 - 8000d70: af00 add r7, sp, #0 - 8000d72: 4603 mov r3, r0 - 8000d74: 71fb strb r3, [r7, #7] + 8000dc0: b480 push {r7} + 8000dc2: b085 sub sp, #20 + 8000dc4: af00 add r7, sp, #0 + 8000dc6: 4603 mov r3, r0 + 8000dc8: 71fb strb r3, [r7, #7] if(usageID < 0x04 || usageID > 0x73) return; //Usage ID is out of bounds - 8000d76: 79fb ldrb r3, [r7, #7] - 8000d78: 2b03 cmp r3, #3 - 8000d7a: d922 bls.n 8000dc2 - 8000d7c: 79fb ldrb r3, [r7, #7] - 8000d7e: 2b73 cmp r3, #115 @ 0x73 - 8000d80: d81f bhi.n 8000dc2 + 8000dca: 79fb ldrb r3, [r7, #7] + 8000dcc: 2b03 cmp r3, #3 + 8000dce: d922 bls.n 8000e16 + 8000dd0: 79fb ldrb r3, [r7, #7] + 8000dd2: 2b73 cmp r3, #115 @ 0x73 + 8000dd4: d81f bhi.n 8000e16 uint16_t bit_index = usageID - 0x04; //Offset, UsageID starts with 0x04. Gives us the actual value of the bit - 8000d82: 79fb ldrb r3, [r7, #7] - 8000d84: b29b uxth r3, r3 - 8000d86: 3b04 subs r3, #4 - 8000d88: 81fb strh r3, [r7, #14] + 8000dd6: 79fb ldrb r3, [r7, #7] + 8000dd8: b29b uxth r3, r3 + 8000dda: 3b04 subs r3, #4 + 8000ddc: 81fb strh r3, [r7, #14] uint8_t byte_index = bit_index/8; //Calculates which byte in the REPORT array - 8000d8a: 89fb ldrh r3, [r7, #14] - 8000d8c: 08db lsrs r3, r3, #3 - 8000d8e: b29b uxth r3, r3 - 8000d90: 737b strb r3, [r7, #13] + 8000dde: 89fb ldrh r3, [r7, #14] + 8000de0: 08db lsrs r3, r3, #3 + 8000de2: b29b uxth r3, r3 + 8000de4: 737b strb r3, [r7, #13] uint8_t bit_offset = bit_index%8; //Calculates which bits in the REPORT[byte_index] should be set/unset - 8000d92: 89fb ldrh r3, [r7, #14] - 8000d94: b2db uxtb r3, r3 - 8000d96: f003 0307 and.w r3, r3, #7 - 8000d9a: 733b strb r3, [r7, #12] + 8000de6: 89fb ldrh r3, [r7, #14] + 8000de8: b2db uxtb r3, r3 + 8000dea: f003 0307 and.w r3, r3, #7 + 8000dee: 733b strb r3, [r7, #12] REPORT.KEYPRESS[byte_index] |= (1 << bit_offset); - 8000d9c: 7b7b ldrb r3, [r7, #13] - 8000d9e: 4a0c ldr r2, [pc, #48] @ (8000dd0 ) - 8000da0: 4413 add r3, r2 - 8000da2: 789b ldrb r3, [r3, #2] - 8000da4: b25a sxtb r2, r3 - 8000da6: 7b3b ldrb r3, [r7, #12] - 8000da8: 2101 movs r1, #1 - 8000daa: fa01 f303 lsl.w r3, r1, r3 - 8000dae: b25b sxtb r3, r3 - 8000db0: 4313 orrs r3, r2 - 8000db2: b25a sxtb r2, r3 - 8000db4: 7b7b ldrb r3, [r7, #13] - 8000db6: b2d1 uxtb r1, r2 - 8000db8: 4a05 ldr r2, [pc, #20] @ (8000dd0 ) - 8000dba: 4413 add r3, r2 - 8000dbc: 460a mov r2, r1 - 8000dbe: 709a strb r2, [r3, #2] - 8000dc0: e000 b.n 8000dc4 + 8000df0: 7b7b ldrb r3, [r7, #13] + 8000df2: 4a0c ldr r2, [pc, #48] @ (8000e24 ) + 8000df4: 4413 add r3, r2 + 8000df6: 789b ldrb r3, [r3, #2] + 8000df8: b25a sxtb r2, r3 + 8000dfa: 7b3b ldrb r3, [r7, #12] + 8000dfc: 2101 movs r1, #1 + 8000dfe: fa01 f303 lsl.w r3, r1, r3 + 8000e02: b25b sxtb r3, r3 + 8000e04: 4313 orrs r3, r2 + 8000e06: b25a sxtb r2, r3 + 8000e08: 7b7b ldrb r3, [r7, #13] + 8000e0a: b2d1 uxtb r1, r2 + 8000e0c: 4a05 ldr r2, [pc, #20] @ (8000e24 ) + 8000e0e: 4413 add r3, r2 + 8000e10: 460a mov r2, r1 + 8000e12: 709a strb r2, [r3, #2] + 8000e14: e000 b.n 8000e18 if(usageID < 0x04 || usageID > 0x73) return; //Usage ID is out of bounds - 8000dc2: bf00 nop + 8000e16: bf00 nop } - 8000dc4: 3714 adds r7, #20 - 8000dc6: 46bd mov sp, r7 - 8000dc8: f85d 7b04 ldr.w r7, [sp], #4 - 8000dcc: 4770 bx lr - 8000dce: bf00 nop - 8000dd0: 20000210 .word 0x20000210 + 8000e18: 3714 adds r7, #20 + 8000e1a: 46bd mov sp, r7 + 8000e1c: f85d 7b04 ldr.w r7, [sp], #4 + 8000e20: 4770 bx lr + 8000e22: bf00 nop + 8000e24: 20000210 .word 0x20000210 -08000dd4 : +08000e28 : void matrixScan(void){ - 8000dd4: b580 push {r7, lr} - 8000dd6: b082 sub sp, #8 - 8000dd8: af00 add r7, sp, #0 + 8000e28: b580 push {r7, lr} + 8000e2a: b082 sub sp, #8 + 8000e2c: af00 add r7, sp, #0 for (uint8_t col = 0; col < COL; col++){ - 8000dda: 2300 movs r3, #0 - 8000ddc: 71fb strb r3, [r7, #7] - 8000dde: e044 b.n 8000e6a + 8000e2e: 2300 movs r3, #0 + 8000e30: 71fb strb r3, [r7, #7] + 8000e32: e044 b.n 8000ebe HAL_GPIO_WritePin(COLUMN_PINS[col].GPIOx, COLUMN_PINS[col].PIN, GPIO_PIN_SET); - 8000de0: 79fb ldrb r3, [r7, #7] - 8000de2: 4a26 ldr r2, [pc, #152] @ (8000e7c ) - 8000de4: f852 0033 ldr.w r0, [r2, r3, lsl #3] - 8000de8: 79fb ldrb r3, [r7, #7] - 8000dea: 4a24 ldr r2, [pc, #144] @ (8000e7c ) - 8000dec: 00db lsls r3, r3, #3 - 8000dee: 4413 add r3, r2 - 8000df0: 889b ldrh r3, [r3, #4] - 8000df2: 2201 movs r2, #1 - 8000df4: 4619 mov r1, r3 - 8000df6: f001 fd7f bl 80028f8 + 8000e34: 79fb ldrb r3, [r7, #7] + 8000e36: 4a26 ldr r2, [pc, #152] @ (8000ed0 ) + 8000e38: f852 0033 ldr.w r0, [r2, r3, lsl #3] + 8000e3c: 79fb ldrb r3, [r7, #7] + 8000e3e: 4a24 ldr r2, [pc, #144] @ (8000ed0 ) + 8000e40: 00db lsls r3, r3, #3 + 8000e42: 4413 add r3, r2 + 8000e44: 889b ldrh r3, [r3, #4] + 8000e46: 2201 movs r2, #1 + 8000e48: 4619 mov r1, r3 + 8000e4a: f001 fd7f bl 800294c HAL_Delay(1); - 8000dfa: 2001 movs r0, #1 - 8000dfc: f000 fe98 bl 8001b30 + 8000e4e: 2001 movs r0, #1 + 8000e50: f000 fe98 bl 8001b84 for(uint8_t row = 0; row < ROW; row++){ - 8000e00: 2300 movs r3, #0 - 8000e02: 71bb strb r3, [r7, #6] - 8000e04: e01e b.n 8000e44 + 8000e54: 2300 movs r3, #0 + 8000e56: 71bb strb r3, [r7, #6] + 8000e58: e01e b.n 8000e98 if(HAL_GPIO_ReadPin(ROW_PINS[row].GPIOx, ROW_PINS[row].PIN)){ - 8000e06: 79bb ldrb r3, [r7, #6] - 8000e08: 4a1d ldr r2, [pc, #116] @ (8000e80 ) - 8000e0a: f852 2033 ldr.w r2, [r2, r3, lsl #3] - 8000e0e: 79bb ldrb r3, [r7, #6] - 8000e10: 491b ldr r1, [pc, #108] @ (8000e80 ) - 8000e12: 00db lsls r3, r3, #3 - 8000e14: 440b add r3, r1 - 8000e16: 889b ldrh r3, [r3, #4] - 8000e18: 4619 mov r1, r3 - 8000e1a: 4610 mov r0, r2 - 8000e1c: f001 fd54 bl 80028c8 - 8000e20: 4603 mov r3, r0 - 8000e22: 2b00 cmp r3, #0 - 8000e24: d00b beq.n 8000e3e + 8000e5a: 79bb ldrb r3, [r7, #6] + 8000e5c: 4a1d ldr r2, [pc, #116] @ (8000ed4 ) + 8000e5e: f852 2033 ldr.w r2, [r2, r3, lsl #3] + 8000e62: 79bb ldrb r3, [r7, #6] + 8000e64: 491b ldr r1, [pc, #108] @ (8000ed4 ) + 8000e66: 00db lsls r3, r3, #3 + 8000e68: 440b add r3, r1 + 8000e6a: 889b ldrh r3, [r3, #4] + 8000e6c: 4619 mov r1, r3 + 8000e6e: 4610 mov r0, r2 + 8000e70: f001 fd54 bl 800291c + 8000e74: 4603 mov r3, r0 + 8000e76: 2b00 cmp r3, #0 + 8000e78: d00b beq.n 8000e92 addUSBReport(KEYCODES[row][col]); - 8000e26: 79ba ldrb r2, [r7, #6] - 8000e28: 79f9 ldrb r1, [r7, #7] - 8000e2a: 4816 ldr r0, [pc, #88] @ (8000e84 ) - 8000e2c: 4613 mov r3, r2 - 8000e2e: 009b lsls r3, r3, #2 - 8000e30: 4413 add r3, r2 - 8000e32: 4403 add r3, r0 - 8000e34: 440b add r3, r1 - 8000e36: 781b ldrb r3, [r3, #0] - 8000e38: 4618 mov r0, r3 - 8000e3a: f7ff ff97 bl 8000d6c + 8000e7a: 79ba ldrb r2, [r7, #6] + 8000e7c: 79f9 ldrb r1, [r7, #7] + 8000e7e: 4816 ldr r0, [pc, #88] @ (8000ed8 ) + 8000e80: 4613 mov r3, r2 + 8000e82: 009b lsls r3, r3, #2 + 8000e84: 4413 add r3, r2 + 8000e86: 4403 add r3, r0 + 8000e88: 440b add r3, r1 + 8000e8a: 781b ldrb r3, [r3, #0] + 8000e8c: 4618 mov r0, r3 + 8000e8e: f7ff ff97 bl 8000dc0 for(uint8_t row = 0; row < ROW; row++){ - 8000e3e: 79bb ldrb r3, [r7, #6] - 8000e40: 3301 adds r3, #1 - 8000e42: 71bb strb r3, [r7, #6] - 8000e44: 79bb ldrb r3, [r7, #6] - 8000e46: 2b05 cmp r3, #5 - 8000e48: d9dd bls.n 8000e06 + 8000e92: 79bb ldrb r3, [r7, #6] + 8000e94: 3301 adds r3, #1 + 8000e96: 71bb strb r3, [r7, #6] + 8000e98: 79bb ldrb r3, [r7, #6] + 8000e9a: 2b05 cmp r3, #5 + 8000e9c: d9dd bls.n 8000e5a } } HAL_GPIO_WritePin(COLUMN_PINS[col].GPIOx, COLUMN_PINS[col].PIN, GPIO_PIN_RESET); - 8000e4a: 79fb ldrb r3, [r7, #7] - 8000e4c: 4a0b ldr r2, [pc, #44] @ (8000e7c ) - 8000e4e: f852 0033 ldr.w r0, [r2, r3, lsl #3] - 8000e52: 79fb ldrb r3, [r7, #7] - 8000e54: 4a09 ldr r2, [pc, #36] @ (8000e7c ) - 8000e56: 00db lsls r3, r3, #3 - 8000e58: 4413 add r3, r2 - 8000e5a: 889b ldrh r3, [r3, #4] - 8000e5c: 2200 movs r2, #0 - 8000e5e: 4619 mov r1, r3 - 8000e60: f001 fd4a bl 80028f8 + 8000e9e: 79fb ldrb r3, [r7, #7] + 8000ea0: 4a0b ldr r2, [pc, #44] @ (8000ed0 ) + 8000ea2: f852 0033 ldr.w r0, [r2, r3, lsl #3] + 8000ea6: 79fb ldrb r3, [r7, #7] + 8000ea8: 4a09 ldr r2, [pc, #36] @ (8000ed0 ) + 8000eaa: 00db lsls r3, r3, #3 + 8000eac: 4413 add r3, r2 + 8000eae: 889b ldrh r3, [r3, #4] + 8000eb0: 2200 movs r2, #0 + 8000eb2: 4619 mov r1, r3 + 8000eb4: f001 fd4a bl 800294c for (uint8_t col = 0; col < COL; col++){ - 8000e64: 79fb ldrb r3, [r7, #7] - 8000e66: 3301 adds r3, #1 - 8000e68: 71fb strb r3, [r7, #7] - 8000e6a: 79fb ldrb r3, [r7, #7] - 8000e6c: 2b04 cmp r3, #4 - 8000e6e: d9b7 bls.n 8000de0 + 8000eb8: 79fb ldrb r3, [r7, #7] + 8000eba: 3301 adds r3, #1 + 8000ebc: 71fb strb r3, [r7, #7] + 8000ebe: 79fb ldrb r3, [r7, #7] + 8000ec0: 2b04 cmp r3, #4 + 8000ec2: d9b7 bls.n 8000e34 } } - 8000e70: bf00 nop - 8000e72: bf00 nop - 8000e74: 3708 adds r7, #8 - 8000e76: 46bd mov sp, r7 - 8000e78: bd80 pop {r7, pc} - 8000e7a: bf00 nop - 8000e7c: 20000030 .word 0x20000030 - 8000e80: 20000000 .word 0x20000000 - 8000e84: 20000058 .word 0x20000058 + 8000ec4: bf00 nop + 8000ec6: bf00 nop + 8000ec8: 3708 adds r7, #8 + 8000eca: 46bd mov sp, r7 + 8000ecc: bd80 pop {r7, pc} + 8000ece: bf00 nop + 8000ed0: 20000030 .word 0x20000030 + 8000ed4: 20000000 .word 0x20000000 + 8000ed8: 20000058 .word 0x20000058 -08000e88 : +08000edc : void resetReport(void){ - 8000e88: b580 push {r7, lr} - 8000e8a: af00 add r7, sp, #0 + 8000edc: b580 push {r7, lr} + 8000ede: af00 add r7, sp, #0 REPORT.MODIFIER = 0; - 8000e8c: 4b04 ldr r3, [pc, #16] @ (8000ea0 ) - 8000e8e: 2200 movs r2, #0 - 8000e90: 701a strb r2, [r3, #0] + 8000ee0: 4b04 ldr r3, [pc, #16] @ (8000ef4 ) + 8000ee2: 2200 movs r2, #0 + 8000ee4: 701a strb r2, [r3, #0] memset(REPORT.KEYPRESS, 0, sizeof(REPORT.KEYPRESS)); - 8000e92: 220c movs r2, #12 - 8000e94: 2100 movs r1, #0 - 8000e96: 4803 ldr r0, [pc, #12] @ (8000ea4 ) - 8000e98: f009 fdbc bl 800aa14 + 8000ee6: 220c movs r2, #12 + 8000ee8: 2100 movs r1, #0 + 8000eea: 4803 ldr r0, [pc, #12] @ (8000ef8 ) + 8000eec: f009 fdbc bl 800aa68 } - 8000e9c: bf00 nop - 8000e9e: bd80 pop {r7, pc} - 8000ea0: 20000210 .word 0x20000210 - 8000ea4: 20000212 .word 0x20000212 + 8000ef0: bf00 nop + 8000ef2: bd80 pop {r7, pc} + 8000ef4: 20000210 .word 0x20000210 + 8000ef8: 20000212 .word 0x20000212 -08000ea8 : +08000efc : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { - 8000ea8: b480 push {r7} - 8000eaa: af00 add r7, sp, #0 + 8000efc: b480 push {r7} + 8000efe: af00 add r7, sp, #0 \details Disables IRQ interrupts by setting special-purpose register PRIMASK. Can only be executed in Privileged modes. */ __STATIC_FORCEINLINE void __disable_irq(void) { __ASM volatile ("cpsid i" : : : "memory"); - 8000eac: b672 cpsid i + 8000f00: b672 cpsid i } - 8000eae: bf00 nop + 8000f02: bf00 nop /* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ __disable_irq(); while (1) - 8000eb0: bf00 nop - 8000eb2: e7fd b.n 8000eb0 + 8000f04: bf00 nop + 8000f06: e7fd b.n 8000f04 -08000eb4 : +08000f08 : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { - 8000eb4: b480 push {r7} - 8000eb6: b083 sub sp, #12 - 8000eb8: af00 add r7, sp, #0 + 8000f08: b480 push {r7} + 8000f0a: b083 sub sp, #12 + 8000f0c: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 8000eba: 2300 movs r3, #0 - 8000ebc: 607b str r3, [r7, #4] - 8000ebe: 4b10 ldr r3, [pc, #64] @ (8000f00 ) - 8000ec0: 6c5b ldr r3, [r3, #68] @ 0x44 - 8000ec2: 4a0f ldr r2, [pc, #60] @ (8000f00 ) - 8000ec4: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 8000ec8: 6453 str r3, [r2, #68] @ 0x44 - 8000eca: 4b0d ldr r3, [pc, #52] @ (8000f00 ) - 8000ecc: 6c5b ldr r3, [r3, #68] @ 0x44 - 8000ece: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 8000ed2: 607b str r3, [r7, #4] - 8000ed4: 687b ldr r3, [r7, #4] + 8000f0e: 2300 movs r3, #0 + 8000f10: 607b str r3, [r7, #4] + 8000f12: 4b10 ldr r3, [pc, #64] @ (8000f54 ) + 8000f14: 6c5b ldr r3, [r3, #68] @ 0x44 + 8000f16: 4a0f ldr r2, [pc, #60] @ (8000f54 ) + 8000f18: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 8000f1c: 6453 str r3, [r2, #68] @ 0x44 + 8000f1e: 4b0d ldr r3, [pc, #52] @ (8000f54 ) + 8000f20: 6c5b ldr r3, [r3, #68] @ 0x44 + 8000f22: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 8000f26: 607b str r3, [r7, #4] + 8000f28: 687b ldr r3, [r7, #4] __HAL_RCC_PWR_CLK_ENABLE(); - 8000ed6: 2300 movs r3, #0 - 8000ed8: 603b str r3, [r7, #0] - 8000eda: 4b09 ldr r3, [pc, #36] @ (8000f00 ) - 8000edc: 6c1b ldr r3, [r3, #64] @ 0x40 - 8000ede: 4a08 ldr r2, [pc, #32] @ (8000f00 ) - 8000ee0: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8000ee4: 6413 str r3, [r2, #64] @ 0x40 - 8000ee6: 4b06 ldr r3, [pc, #24] @ (8000f00 ) - 8000ee8: 6c1b ldr r3, [r3, #64] @ 0x40 - 8000eea: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8000eee: 603b str r3, [r7, #0] - 8000ef0: 683b ldr r3, [r7, #0] + 8000f2a: 2300 movs r3, #0 + 8000f2c: 603b str r3, [r7, #0] + 8000f2e: 4b09 ldr r3, [pc, #36] @ (8000f54 ) + 8000f30: 6c1b ldr r3, [r3, #64] @ 0x40 + 8000f32: 4a08 ldr r2, [pc, #32] @ (8000f54 ) + 8000f34: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8000f38: 6413 str r3, [r2, #64] @ 0x40 + 8000f3a: 4b06 ldr r3, [pc, #24] @ (8000f54 ) + 8000f3c: 6c1b ldr r3, [r3, #64] @ 0x40 + 8000f3e: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8000f42: 603b str r3, [r7, #0] + 8000f44: 683b ldr r3, [r7, #0] /* System interrupt init*/ /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } - 8000ef2: bf00 nop - 8000ef4: 370c adds r7, #12 - 8000ef6: 46bd mov sp, r7 - 8000ef8: f85d 7b04 ldr.w r7, [sp], #4 - 8000efc: 4770 bx lr - 8000efe: bf00 nop - 8000f00: 40023800 .word 0x40023800 + 8000f46: bf00 nop + 8000f48: 370c adds r7, #12 + 8000f4a: 46bd mov sp, r7 + 8000f4c: f85d 7b04 ldr.w r7, [sp], #4 + 8000f50: 4770 bx lr + 8000f52: bf00 nop + 8000f54: 40023800 .word 0x40023800 -08000f04 : +08000f58 : /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { - 8000f04: b480 push {r7} - 8000f06: af00 add r7, sp, #0 + 8000f58: b480 push {r7} + 8000f5a: af00 add r7, sp, #0 /* USER CODE BEGIN NonMaskableInt_IRQn 0 */ /* USER CODE END NonMaskableInt_IRQn 0 */ /* USER CODE BEGIN NonMaskableInt_IRQn 1 */ while (1) - 8000f08: bf00 nop - 8000f0a: e7fd b.n 8000f08 + 8000f5c: bf00 nop + 8000f5e: e7fd b.n 8000f5c -08000f0c : +08000f60 : /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { - 8000f0c: b480 push {r7} - 8000f0e: af00 add r7, sp, #0 + 8000f60: b480 push {r7} + 8000f62: af00 add r7, sp, #0 /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) - 8000f10: bf00 nop - 8000f12: e7fd b.n 8000f10 + 8000f64: bf00 nop + 8000f66: e7fd b.n 8000f64 -08000f14 : +08000f68 : /** * @brief This function handles Memory management fault. */ void MemManage_Handler(void) { - 8000f14: b480 push {r7} - 8000f16: af00 add r7, sp, #0 + 8000f68: b480 push {r7} + 8000f6a: af00 add r7, sp, #0 /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) - 8000f18: bf00 nop - 8000f1a: e7fd b.n 8000f18 + 8000f6c: bf00 nop + 8000f6e: e7fd b.n 8000f6c -08000f1c : +08000f70 : /** * @brief This function handles Pre-fetch fault, memory access fault. */ void BusFault_Handler(void) { - 8000f1c: b480 push {r7} - 8000f1e: af00 add r7, sp, #0 + 8000f70: b480 push {r7} + 8000f72: af00 add r7, sp, #0 /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) - 8000f20: bf00 nop - 8000f22: e7fd b.n 8000f20 + 8000f74: bf00 nop + 8000f76: e7fd b.n 8000f74 -08000f24 : +08000f78 : /** * @brief This function handles Undefined instruction or illegal state. */ void UsageFault_Handler(void) { - 8000f24: b480 push {r7} - 8000f26: af00 add r7, sp, #0 + 8000f78: b480 push {r7} + 8000f7a: af00 add r7, sp, #0 /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) - 8000f28: bf00 nop - 8000f2a: e7fd b.n 8000f28 + 8000f7c: bf00 nop + 8000f7e: e7fd b.n 8000f7c -08000f2c : +08000f80 : /** * @brief This function handles System service call via SWI instruction. */ void SVC_Handler(void) { - 8000f2c: b480 push {r7} - 8000f2e: af00 add r7, sp, #0 + 8000f80: b480 push {r7} + 8000f82: af00 add r7, sp, #0 /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } - 8000f30: bf00 nop - 8000f32: 46bd mov sp, r7 - 8000f34: f85d 7b04 ldr.w r7, [sp], #4 - 8000f38: 4770 bx lr + 8000f84: bf00 nop + 8000f86: 46bd mov sp, r7 + 8000f88: f85d 7b04 ldr.w r7, [sp], #4 + 8000f8c: 4770 bx lr -08000f3a : +08000f8e : /** * @brief This function handles Debug monitor. */ void DebugMon_Handler(void) { - 8000f3a: b480 push {r7} - 8000f3c: af00 add r7, sp, #0 + 8000f8e: b480 push {r7} + 8000f90: af00 add r7, sp, #0 /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } - 8000f3e: bf00 nop - 8000f40: 46bd mov sp, r7 - 8000f42: f85d 7b04 ldr.w r7, [sp], #4 - 8000f46: 4770 bx lr + 8000f92: bf00 nop + 8000f94: 46bd mov sp, r7 + 8000f96: f85d 7b04 ldr.w r7, [sp], #4 + 8000f9a: 4770 bx lr -08000f48 : +08000f9c : /** * @brief This function handles Pendable request for system service. */ void PendSV_Handler(void) { - 8000f48: b480 push {r7} - 8000f4a: af00 add r7, sp, #0 + 8000f9c: b480 push {r7} + 8000f9e: af00 add r7, sp, #0 /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } - 8000f4c: bf00 nop - 8000f4e: 46bd mov sp, r7 - 8000f50: f85d 7b04 ldr.w r7, [sp], #4 - 8000f54: 4770 bx lr + 8000fa0: bf00 nop + 8000fa2: 46bd mov sp, r7 + 8000fa4: f85d 7b04 ldr.w r7, [sp], #4 + 8000fa8: 4770 bx lr -08000f56 : +08000faa : /** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { - 8000f56: b580 push {r7, lr} - 8000f58: af00 add r7, sp, #0 + 8000faa: b580 push {r7, lr} + 8000fac: af00 add r7, sp, #0 /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); - 8000f5a: f000 fdc9 bl 8001af0 + 8000fae: f000 fdc9 bl 8001b44 /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } - 8000f5e: bf00 nop - 8000f60: bd80 pop {r7, pc} + 8000fb2: bf00 nop + 8000fb4: bd80 pop {r7, pc} ... -08000f64 : +08000fb8 : /** * @brief This function handles DMA1 stream0 global interrupt. */ void DMA1_Stream0_IRQHandler(void) { - 8000f64: b580 push {r7, lr} - 8000f66: af00 add r7, sp, #0 + 8000fb8: b580 push {r7, lr} + 8000fba: af00 add r7, sp, #0 /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */ /* USER CODE END DMA1_Stream0_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_uart5_rx); - 8000f68: 4802 ldr r0, [pc, #8] @ (8000f74 ) - 8000f6a: f001 f8af bl 80020cc + 8000fbc: 4802 ldr r0, [pc, #8] @ (8000fc8 ) + 8000fbe: f001 f8af bl 8002120 /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */ /* USER CODE END DMA1_Stream0_IRQn 1 */ } - 8000f6e: bf00 nop - 8000f70: bd80 pop {r7, pc} - 8000f72: bf00 nop - 8000f74: 200004ec .word 0x200004ec + 8000fc2: bf00 nop + 8000fc4: bd80 pop {r7, pc} + 8000fc6: bf00 nop + 8000fc8: 200004f0 .word 0x200004f0 -08000f78 : +08000fcc : /** * @brief This function handles DMA1 stream2 global interrupt. */ void DMA1_Stream2_IRQHandler(void) { - 8000f78: b580 push {r7, lr} - 8000f7a: af00 add r7, sp, #0 + 8000fcc: b580 push {r7, lr} + 8000fce: af00 add r7, sp, #0 /* USER CODE BEGIN DMA1_Stream2_IRQn 0 */ /* USER CODE END DMA1_Stream2_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_uart4_rx); - 8000f7c: 4802 ldr r0, [pc, #8] @ (8000f88 ) - 8000f7e: f001 f8a5 bl 80020cc + 8000fd0: 4802 ldr r0, [pc, #8] @ (8000fdc ) + 8000fd2: f001 f8a5 bl 8002120 /* USER CODE BEGIN DMA1_Stream2_IRQn 1 */ /* USER CODE END DMA1_Stream2_IRQn 1 */ } - 8000f82: bf00 nop - 8000f84: bd80 pop {r7, pc} - 8000f86: bf00 nop - 8000f88: 2000042c .word 0x2000042c + 8000fd6: bf00 nop + 8000fd8: bd80 pop {r7, pc} + 8000fda: bf00 nop + 8000fdc: 20000430 .word 0x20000430 -08000f8c : +08000fe0 : /** * @brief This function handles DMA1 stream4 global interrupt. */ void DMA1_Stream4_IRQHandler(void) { - 8000f8c: b580 push {r7, lr} - 8000f8e: af00 add r7, sp, #0 + 8000fe0: b580 push {r7, lr} + 8000fe2: af00 add r7, sp, #0 /* USER CODE BEGIN DMA1_Stream4_IRQn 0 */ /* USER CODE END DMA1_Stream4_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_uart4_tx); - 8000f90: 4802 ldr r0, [pc, #8] @ (8000f9c ) - 8000f92: f001 f89b bl 80020cc + 8000fe4: 4802 ldr r0, [pc, #8] @ (8000ff0 ) + 8000fe6: f001 f89b bl 8002120 /* USER CODE BEGIN DMA1_Stream4_IRQn 1 */ /* USER CODE END DMA1_Stream4_IRQn 1 */ } - 8000f96: bf00 nop - 8000f98: bd80 pop {r7, pc} - 8000f9a: bf00 nop - 8000f9c: 2000048c .word 0x2000048c + 8000fea: bf00 nop + 8000fec: bd80 pop {r7, pc} + 8000fee: bf00 nop + 8000ff0: 20000490 .word 0x20000490 -08000fa0 : +08000ff4 : /** * @brief This function handles DMA1 stream5 global interrupt. */ void DMA1_Stream5_IRQHandler(void) { - 8000fa0: b580 push {r7, lr} - 8000fa2: af00 add r7, sp, #0 + 8000ff4: b580 push {r7, lr} + 8000ff6: af00 add r7, sp, #0 /* USER CODE BEGIN DMA1_Stream5_IRQn 0 */ /* USER CODE END DMA1_Stream5_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_usart2_rx); - 8000fa4: 4802 ldr r0, [pc, #8] @ (8000fb0 ) - 8000fa6: f001 f891 bl 80020cc + 8000ff8: 4802 ldr r0, [pc, #8] @ (8001004 ) + 8000ffa: f001 f891 bl 8002120 /* USER CODE BEGIN DMA1_Stream5_IRQn 1 */ /* USER CODE END DMA1_Stream5_IRQn 1 */ } - 8000faa: bf00 nop - 8000fac: bd80 pop {r7, pc} - 8000fae: bf00 nop - 8000fb0: 2000066c .word 0x2000066c + 8000ffe: bf00 nop + 8001000: bd80 pop {r7, pc} + 8001002: bf00 nop + 8001004: 20000670 .word 0x20000670 -08000fb4 : +08001008 : /** * @brief This function handles DMA1 stream6 global interrupt. */ void DMA1_Stream6_IRQHandler(void) { - 8000fb4: b580 push {r7, lr} - 8000fb6: af00 add r7, sp, #0 + 8001008: b580 push {r7, lr} + 800100a: af00 add r7, sp, #0 /* USER CODE BEGIN DMA1_Stream6_IRQn 0 */ /* USER CODE END DMA1_Stream6_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_usart2_tx); - 8000fb8: 4802 ldr r0, [pc, #8] @ (8000fc4 ) - 8000fba: f001 f887 bl 80020cc + 800100c: 4802 ldr r0, [pc, #8] @ (8001018 ) + 800100e: f001 f887 bl 8002120 /* USER CODE BEGIN DMA1_Stream6_IRQn 1 */ /* USER CODE END DMA1_Stream6_IRQn 1 */ } - 8000fbe: bf00 nop - 8000fc0: bd80 pop {r7, pc} - 8000fc2: bf00 nop - 8000fc4: 200006cc .word 0x200006cc + 8001012: bf00 nop + 8001014: bd80 pop {r7, pc} + 8001016: bf00 nop + 8001018: 200006d0 .word 0x200006d0 -08000fc8 : +0800101c : /** * @brief This function handles USART1 global interrupt. */ void USART1_IRQHandler(void) { - 8000fc8: b580 push {r7, lr} - 8000fca: af00 add r7, sp, #0 + 800101c: b580 push {r7, lr} + 800101e: af00 add r7, sp, #0 /* USER CODE BEGIN USART1_IRQn 0 */ /* USER CODE END USART1_IRQn 0 */ HAL_UART_IRQHandler(&huart1); - 8000fcc: 4802 ldr r0, [pc, #8] @ (8000fd8 ) - 8000fce: f004 fe9f bl 8005d10 + 8001020: 4802 ldr r0, [pc, #8] @ (800102c ) + 8001022: f004 fe9f bl 8005d64 /* USER CODE BEGIN USART1_IRQn 1 */ /* USER CODE END USART1_IRQn 1 */ } - 8000fd2: bf00 nop - 8000fd4: bd80 pop {r7, pc} - 8000fd6: bf00 nop - 8000fd8: 2000039c .word 0x2000039c + 8001026: bf00 nop + 8001028: bd80 pop {r7, pc} + 800102a: bf00 nop + 800102c: 200003a0 .word 0x200003a0 -08000fdc : +08001030 : /** * @brief This function handles USART2 global interrupt. */ void USART2_IRQHandler(void) { - 8000fdc: b580 push {r7, lr} - 8000fde: af00 add r7, sp, #0 + 8001030: b580 push {r7, lr} + 8001032: af00 add r7, sp, #0 /* USER CODE BEGIN USART2_IRQn 0 */ /* USER CODE END USART2_IRQn 0 */ HAL_UART_IRQHandler(&huart2); - 8000fe0: 4802 ldr r0, [pc, #8] @ (8000fec ) - 8000fe2: f004 fe95 bl 8005d10 + 8001034: 4802 ldr r0, [pc, #8] @ (8001040 ) + 8001036: f004 fe95 bl 8005d64 /* USER CODE BEGIN USART2_IRQn 1 */ /* USER CODE END USART2_IRQn 1 */ } - 8000fe6: bf00 nop - 8000fe8: bd80 pop {r7, pc} - 8000fea: bf00 nop - 8000fec: 200003e4 .word 0x200003e4 + 800103a: bf00 nop + 800103c: bd80 pop {r7, pc} + 800103e: bf00 nop + 8001040: 200003e8 .word 0x200003e8 -08000ff0 : +08001044 : /** * @brief This function handles DMA1 stream7 global interrupt. */ void DMA1_Stream7_IRQHandler(void) { - 8000ff0: b580 push {r7, lr} - 8000ff2: af00 add r7, sp, #0 + 8001044: b580 push {r7, lr} + 8001046: af00 add r7, sp, #0 /* USER CODE BEGIN DMA1_Stream7_IRQn 0 */ /* USER CODE END DMA1_Stream7_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_uart5_tx); - 8000ff4: 4802 ldr r0, [pc, #8] @ (8001000 ) - 8000ff6: f001 f869 bl 80020cc + 8001048: 4802 ldr r0, [pc, #8] @ (8001054 ) + 800104a: f001 f869 bl 8002120 /* USER CODE BEGIN DMA1_Stream7_IRQn 1 */ /* USER CODE END DMA1_Stream7_IRQn 1 */ } - 8000ffa: bf00 nop - 8000ffc: bd80 pop {r7, pc} - 8000ffe: bf00 nop - 8001000: 2000054c .word 0x2000054c + 800104e: bf00 nop + 8001050: bd80 pop {r7, pc} + 8001052: bf00 nop + 8001054: 20000550 .word 0x20000550 -08001004 : +08001058 : /** * @brief This function handles UART4 global interrupt. */ void UART4_IRQHandler(void) { - 8001004: b580 push {r7, lr} - 8001006: af00 add r7, sp, #0 + 8001058: b580 push {r7, lr} + 800105a: af00 add r7, sp, #0 /* USER CODE BEGIN UART4_IRQn 0 */ /* USER CODE END UART4_IRQn 0 */ HAL_UART_IRQHandler(&huart4); - 8001008: 4802 ldr r0, [pc, #8] @ (8001014 ) - 800100a: f004 fe81 bl 8005d10 + 800105c: 4802 ldr r0, [pc, #8] @ (8001068 ) + 800105e: f004 fe81 bl 8005d64 /* USER CODE BEGIN UART4_IRQn 1 */ /* USER CODE END UART4_IRQn 1 */ } - 800100e: bf00 nop - 8001010: bd80 pop {r7, pc} - 8001012: bf00 nop - 8001014: 2000030c .word 0x2000030c + 8001062: bf00 nop + 8001064: bd80 pop {r7, pc} + 8001066: bf00 nop + 8001068: 20000310 .word 0x20000310 -08001018 : +0800106c : /** * @brief This function handles UART5 global interrupt. */ void UART5_IRQHandler(void) { - 8001018: b580 push {r7, lr} - 800101a: af00 add r7, sp, #0 + 800106c: b580 push {r7, lr} + 800106e: af00 add r7, sp, #0 /* USER CODE BEGIN UART5_IRQn 0 */ /* USER CODE END UART5_IRQn 0 */ HAL_UART_IRQHandler(&huart5); - 800101c: 4802 ldr r0, [pc, #8] @ (8001028 ) - 800101e: f004 fe77 bl 8005d10 + 8001070: 4802 ldr r0, [pc, #8] @ (800107c ) + 8001072: f004 fe77 bl 8005d64 /* USER CODE BEGIN UART5_IRQn 1 */ /* USER CODE END UART5_IRQn 1 */ } - 8001022: bf00 nop - 8001024: bd80 pop {r7, pc} - 8001026: bf00 nop - 8001028: 20000354 .word 0x20000354 + 8001076: bf00 nop + 8001078: bd80 pop {r7, pc} + 800107a: bf00 nop + 800107c: 20000358 .word 0x20000358 -0800102c : +08001080 : /** * @brief This function handles DMA2 stream2 global interrupt. */ void DMA2_Stream2_IRQHandler(void) { - 800102c: b580 push {r7, lr} - 800102e: af00 add r7, sp, #0 + 8001080: b580 push {r7, lr} + 8001082: af00 add r7, sp, #0 /* USER CODE BEGIN DMA2_Stream2_IRQn 0 */ /* USER CODE END DMA2_Stream2_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_usart1_rx); - 8001030: 4802 ldr r0, [pc, #8] @ (800103c ) - 8001032: f001 f84b bl 80020cc + 8001084: 4802 ldr r0, [pc, #8] @ (8001090 ) + 8001086: f001 f84b bl 8002120 /* USER CODE BEGIN DMA2_Stream2_IRQn 1 */ /* USER CODE END DMA2_Stream2_IRQn 1 */ } - 8001036: bf00 nop - 8001038: bd80 pop {r7, pc} - 800103a: bf00 nop - 800103c: 200005ac .word 0x200005ac + 800108a: bf00 nop + 800108c: bd80 pop {r7, pc} + 800108e: bf00 nop + 8001090: 200005b0 .word 0x200005b0 -08001040 : +08001094 : /** * @brief This function handles USB On The Go FS global interrupt. */ void OTG_FS_IRQHandler(void) { - 8001040: b580 push {r7, lr} - 8001042: af00 add r7, sp, #0 + 8001094: b580 push {r7, lr} + 8001096: af00 add r7, sp, #0 /* USER CODE BEGIN OTG_FS_IRQn 0 */ /* USER CODE END OTG_FS_IRQn 0 */ HAL_PCD_IRQHandler(&hpcd_USB_OTG_FS); - 8001044: 4802 ldr r0, [pc, #8] @ (8001050 ) - 8001046: f001 ff00 bl 8002e4a + 8001098: 4802 ldr r0, [pc, #8] @ (80010a4 ) + 800109a: f001 ff00 bl 8002e9e /* USER CODE BEGIN OTG_FS_IRQn 1 */ /* USER CODE END OTG_FS_IRQn 1 */ } - 800104a: bf00 nop - 800104c: bd80 pop {r7, pc} - 800104e: bf00 nop - 8001050: 20000c10 .word 0x20000c10 + 800109e: bf00 nop + 80010a0: bd80 pop {r7, pc} + 80010a2: bf00 nop + 80010a4: 20000c14 .word 0x20000c14 -08001054 : +080010a8 : /** * @brief This function handles DMA2 stream7 global interrupt. */ void DMA2_Stream7_IRQHandler(void) { - 8001054: b580 push {r7, lr} - 8001056: af00 add r7, sp, #0 + 80010a8: b580 push {r7, lr} + 80010aa: af00 add r7, sp, #0 /* USER CODE BEGIN DMA2_Stream7_IRQn 0 */ /* USER CODE END DMA2_Stream7_IRQn 0 */ HAL_DMA_IRQHandler(&hdma_usart1_tx); - 8001058: 4802 ldr r0, [pc, #8] @ (8001064 ) - 800105a: f001 f837 bl 80020cc + 80010ac: 4802 ldr r0, [pc, #8] @ (80010b8 ) + 80010ae: f001 f837 bl 8002120 /* USER CODE BEGIN DMA2_Stream7_IRQn 1 */ /* USER CODE END DMA2_Stream7_IRQn 1 */ } - 800105e: bf00 nop - 8001060: bd80 pop {r7, pc} - 8001062: bf00 nop - 8001064: 2000060c .word 0x2000060c + 80010b2: bf00 nop + 80010b4: bd80 pop {r7, pc} + 80010b6: bf00 nop + 80010b8: 20000610 .word 0x20000610 -08001068 : +080010bc : * configuration. * @param None * @retval None */ void SystemInit(void) { - 8001068: b480 push {r7} - 800106a: af00 add r7, sp, #0 + 80010bc: b480 push {r7} + 80010be: af00 add r7, sp, #0 /* FPU settings ------------------------------------------------------------*/ #if (__FPU_PRESENT == 1) && (__FPU_USED == 1) SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */ - 800106c: 4b06 ldr r3, [pc, #24] @ (8001088 ) - 800106e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8001072: 4a05 ldr r2, [pc, #20] @ (8001088 ) - 8001074: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000 - 8001078: f8c2 3088 str.w r3, [r2, #136] @ 0x88 + 80010c0: 4b06 ldr r3, [pc, #24] @ (80010dc ) + 80010c2: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 80010c6: 4a05 ldr r2, [pc, #20] @ (80010dc ) + 80010c8: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000 + 80010cc: f8c2 3088 str.w r3, [r2, #136] @ 0x88 /* Configure the Vector Table location -------------------------------------*/ #if defined(USER_VECT_TAB_ADDRESS) SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */ #endif /* USER_VECT_TAB_ADDRESS */ } - 800107c: bf00 nop - 800107e: 46bd mov sp, r7 - 8001080: f85d 7b04 ldr.w r7, [sp], #4 - 8001084: 4770 bx lr - 8001086: bf00 nop - 8001088: e000ed00 .word 0xe000ed00 + 80010d0: bf00 nop + 80010d2: 46bd mov sp, r7 + 80010d4: f85d 7b04 ldr.w r7, [sp], #4 + 80010d8: 4770 bx lr + 80010da: bf00 nop + 80010dc: e000ed00 .word 0xe000ed00 -0800108c : +080010e0 : TIM_HandleTypeDef htim2; TIM_HandleTypeDef htim3; /* TIM2 init function */ void MX_TIM2_Init(void) { - 800108c: b580 push {r7, lr} - 800108e: b08a sub sp, #40 @ 0x28 - 8001090: af00 add r7, sp, #0 + 80010e0: b580 push {r7, lr} + 80010e2: b08a sub sp, #40 @ 0x28 + 80010e4: af00 add r7, sp, #0 /* USER CODE BEGIN TIM2_Init 0 */ /* USER CODE END TIM2_Init 0 */ TIM_MasterConfigTypeDef sMasterConfig = {0}; - 8001092: f107 0320 add.w r3, r7, #32 - 8001096: 2200 movs r2, #0 - 8001098: 601a str r2, [r3, #0] - 800109a: 605a str r2, [r3, #4] + 80010e6: f107 0320 add.w r3, r7, #32 + 80010ea: 2200 movs r2, #0 + 80010ec: 601a str r2, [r3, #0] + 80010ee: 605a str r2, [r3, #4] TIM_OC_InitTypeDef sConfigOC = {0}; - 800109c: 1d3b adds r3, r7, #4 - 800109e: 2200 movs r2, #0 - 80010a0: 601a str r2, [r3, #0] - 80010a2: 605a str r2, [r3, #4] - 80010a4: 609a str r2, [r3, #8] - 80010a6: 60da str r2, [r3, #12] - 80010a8: 611a str r2, [r3, #16] - 80010aa: 615a str r2, [r3, #20] - 80010ac: 619a str r2, [r3, #24] + 80010f0: 1d3b adds r3, r7, #4 + 80010f2: 2200 movs r2, #0 + 80010f4: 601a str r2, [r3, #0] + 80010f6: 605a str r2, [r3, #4] + 80010f8: 609a str r2, [r3, #8] + 80010fa: 60da str r2, [r3, #12] + 80010fc: 611a str r2, [r3, #16] + 80010fe: 615a str r2, [r3, #20] + 8001100: 619a str r2, [r3, #24] /* USER CODE BEGIN TIM2_Init 1 */ /* USER CODE END TIM2_Init 1 */ htim2.Instance = TIM2; - 80010ae: 4b22 ldr r3, [pc, #136] @ (8001138 ) - 80010b0: f04f 4280 mov.w r2, #1073741824 @ 0x40000000 - 80010b4: 601a str r2, [r3, #0] + 8001102: 4b22 ldr r3, [pc, #136] @ (800118c ) + 8001104: f04f 4280 mov.w r2, #1073741824 @ 0x40000000 + 8001108: 601a str r2, [r3, #0] htim2.Init.Prescaler = 0; - 80010b6: 4b20 ldr r3, [pc, #128] @ (8001138 ) - 80010b8: 2200 movs r2, #0 - 80010ba: 605a str r2, [r3, #4] + 800110a: 4b20 ldr r3, [pc, #128] @ (800118c ) + 800110c: 2200 movs r2, #0 + 800110e: 605a str r2, [r3, #4] htim2.Init.CounterMode = TIM_COUNTERMODE_UP; - 80010bc: 4b1e ldr r3, [pc, #120] @ (8001138 ) - 80010be: 2200 movs r2, #0 - 80010c0: 609a str r2, [r3, #8] + 8001110: 4b1e ldr r3, [pc, #120] @ (800118c ) + 8001112: 2200 movs r2, #0 + 8001114: 609a str r2, [r3, #8] htim2.Init.Period = 4294967295; - 80010c2: 4b1d ldr r3, [pc, #116] @ (8001138 ) - 80010c4: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff - 80010c8: 60da str r2, [r3, #12] + 8001116: 4b1d ldr r3, [pc, #116] @ (800118c ) + 8001118: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff + 800111c: 60da str r2, [r3, #12] htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; - 80010ca: 4b1b ldr r3, [pc, #108] @ (8001138 ) - 80010cc: 2200 movs r2, #0 - 80010ce: 611a str r2, [r3, #16] + 800111e: 4b1b ldr r3, [pc, #108] @ (800118c ) + 8001120: 2200 movs r2, #0 + 8001122: 611a str r2, [r3, #16] htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; - 80010d0: 4b19 ldr r3, [pc, #100] @ (8001138 ) - 80010d2: 2200 movs r2, #0 - 80010d4: 619a str r2, [r3, #24] + 8001124: 4b19 ldr r3, [pc, #100] @ (800118c ) + 8001126: 2200 movs r2, #0 + 8001128: 619a str r2, [r3, #24] if (HAL_TIM_OC_Init(&htim2) != HAL_OK) - 80010d6: 4818 ldr r0, [pc, #96] @ (8001138 ) - 80010d8: f004 f904 bl 80052e4 - 80010dc: 4603 mov r3, r0 - 80010de: 2b00 cmp r3, #0 - 80010e0: d001 beq.n 80010e6 + 800112a: 4818 ldr r0, [pc, #96] @ (800118c ) + 800112c: f004 f904 bl 8005338 + 8001130: 4603 mov r3, r0 + 8001132: 2b00 cmp r3, #0 + 8001134: d001 beq.n 800113a { Error_Handler(); - 80010e2: f7ff fee1 bl 8000ea8 + 8001136: f7ff fee1 bl 8000efc } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; - 80010e6: 2300 movs r3, #0 - 80010e8: 623b str r3, [r7, #32] + 800113a: 2300 movs r3, #0 + 800113c: 623b str r3, [r7, #32] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; - 80010ea: 2300 movs r3, #0 - 80010ec: 627b str r3, [r7, #36] @ 0x24 + 800113e: 2300 movs r3, #0 + 8001140: 627b str r3, [r7, #36] @ 0x24 if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig) != HAL_OK) - 80010ee: f107 0320 add.w r3, r7, #32 - 80010f2: 4619 mov r1, r3 - 80010f4: 4810 ldr r0, [pc, #64] @ (8001138 ) - 80010f6: f004 fc9d bl 8005a34 - 80010fa: 4603 mov r3, r0 - 80010fc: 2b00 cmp r3, #0 - 80010fe: d001 beq.n 8001104 + 8001142: f107 0320 add.w r3, r7, #32 + 8001146: 4619 mov r1, r3 + 8001148: 4810 ldr r0, [pc, #64] @ (800118c ) + 800114a: f004 fc9d bl 8005a88 + 800114e: 4603 mov r3, r0 + 8001150: 2b00 cmp r3, #0 + 8001152: d001 beq.n 8001158 { Error_Handler(); - 8001100: f7ff fed2 bl 8000ea8 + 8001154: f7ff fed2 bl 8000efc } sConfigOC.OCMode = TIM_OCMODE_FORCED_ACTIVE; - 8001104: 2350 movs r3, #80 @ 0x50 - 8001106: 607b str r3, [r7, #4] + 8001158: 2350 movs r3, #80 @ 0x50 + 800115a: 607b str r3, [r7, #4] sConfigOC.Pulse = 0; - 8001108: 2300 movs r3, #0 - 800110a: 60bb str r3, [r7, #8] + 800115c: 2300 movs r3, #0 + 800115e: 60bb str r3, [r7, #8] sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; - 800110c: 2300 movs r3, #0 - 800110e: 60fb str r3, [r7, #12] + 8001160: 2300 movs r3, #0 + 8001162: 60fb str r3, [r7, #12] sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; - 8001110: 2300 movs r3, #0 - 8001112: 617b str r3, [r7, #20] + 8001164: 2300 movs r3, #0 + 8001166: 617b str r3, [r7, #20] if (HAL_TIM_OC_ConfigChannel(&htim2, &sConfigOC, TIM_CHANNEL_1) != HAL_OK) - 8001114: 1d3b adds r3, r7, #4 - 8001116: 2200 movs r2, #0 - 8001118: 4619 mov r1, r3 - 800111a: 4807 ldr r0, [pc, #28] @ (8001138 ) - 800111c: f004 f9d8 bl 80054d0 - 8001120: 4603 mov r3, r0 - 8001122: 2b00 cmp r3, #0 - 8001124: d001 beq.n 800112a + 8001168: 1d3b adds r3, r7, #4 + 800116a: 2200 movs r2, #0 + 800116c: 4619 mov r1, r3 + 800116e: 4807 ldr r0, [pc, #28] @ (800118c ) + 8001170: f004 f9d8 bl 8005524 + 8001174: 4603 mov r3, r0 + 8001176: 2b00 cmp r3, #0 + 8001178: d001 beq.n 800117e { Error_Handler(); - 8001126: f7ff febf bl 8000ea8 + 800117a: f7ff febf bl 8000efc } /* USER CODE BEGIN TIM2_Init 2 */ /* USER CODE END TIM2_Init 2 */ HAL_TIM_MspPostInit(&htim2); - 800112a: 4803 ldr r0, [pc, #12] @ (8001138 ) - 800112c: f000 f8c2 bl 80012b4 + 800117e: 4803 ldr r0, [pc, #12] @ (800118c ) + 8001180: f000 f8c2 bl 8001308 } - 8001130: bf00 nop - 8001132: 3728 adds r7, #40 @ 0x28 - 8001134: 46bd mov sp, r7 - 8001136: bd80 pop {r7, pc} - 8001138: 2000027c .word 0x2000027c + 8001184: bf00 nop + 8001186: 3728 adds r7, #40 @ 0x28 + 8001188: 46bd mov sp, r7 + 800118a: bd80 pop {r7, pc} + 800118c: 20000280 .word 0x20000280 -0800113c : +08001190 : /* TIM3 init function */ void MX_TIM3_Init(void) { - 800113c: b580 push {r7, lr} - 800113e: b08c sub sp, #48 @ 0x30 - 8001140: af00 add r7, sp, #0 + 8001190: b580 push {r7, lr} + 8001192: b08c sub sp, #48 @ 0x30 + 8001194: af00 add r7, sp, #0 /* USER CODE BEGIN TIM3_Init 0 */ /* USER CODE END TIM3_Init 0 */ TIM_Encoder_InitTypeDef sConfig = {0}; - 8001142: f107 030c add.w r3, r7, #12 - 8001146: 2224 movs r2, #36 @ 0x24 - 8001148: 2100 movs r1, #0 - 800114a: 4618 mov r0, r3 - 800114c: f009 fc62 bl 800aa14 + 8001196: f107 030c add.w r3, r7, #12 + 800119a: 2224 movs r2, #36 @ 0x24 + 800119c: 2100 movs r1, #0 + 800119e: 4618 mov r0, r3 + 80011a0: f009 fc62 bl 800aa68 TIM_MasterConfigTypeDef sMasterConfig = {0}; - 8001150: 1d3b adds r3, r7, #4 - 8001152: 2200 movs r2, #0 - 8001154: 601a str r2, [r3, #0] - 8001156: 605a str r2, [r3, #4] + 80011a4: 1d3b adds r3, r7, #4 + 80011a6: 2200 movs r2, #0 + 80011a8: 601a str r2, [r3, #0] + 80011aa: 605a str r2, [r3, #4] /* USER CODE BEGIN TIM3_Init 1 */ /* USER CODE END TIM3_Init 1 */ htim3.Instance = TIM3; - 8001158: 4b20 ldr r3, [pc, #128] @ (80011dc ) - 800115a: 4a21 ldr r2, [pc, #132] @ (80011e0 ) - 800115c: 601a str r2, [r3, #0] + 80011ac: 4b20 ldr r3, [pc, #128] @ (8001230 ) + 80011ae: 4a21 ldr r2, [pc, #132] @ (8001234 ) + 80011b0: 601a str r2, [r3, #0] htim3.Init.Prescaler = 0; - 800115e: 4b1f ldr r3, [pc, #124] @ (80011dc ) - 8001160: 2200 movs r2, #0 - 8001162: 605a str r2, [r3, #4] + 80011b2: 4b1f ldr r3, [pc, #124] @ (8001230 ) + 80011b4: 2200 movs r2, #0 + 80011b6: 605a str r2, [r3, #4] htim3.Init.CounterMode = TIM_COUNTERMODE_UP; - 8001164: 4b1d ldr r3, [pc, #116] @ (80011dc ) - 8001166: 2200 movs r2, #0 - 8001168: 609a str r2, [r3, #8] + 80011b8: 4b1d ldr r3, [pc, #116] @ (8001230 ) + 80011ba: 2200 movs r2, #0 + 80011bc: 609a str r2, [r3, #8] htim3.Init.Period = 65535; - 800116a: 4b1c ldr r3, [pc, #112] @ (80011dc ) - 800116c: f64f 72ff movw r2, #65535 @ 0xffff - 8001170: 60da str r2, [r3, #12] + 80011be: 4b1c ldr r3, [pc, #112] @ (8001230 ) + 80011c0: f64f 72ff movw r2, #65535 @ 0xffff + 80011c4: 60da str r2, [r3, #12] htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; - 8001172: 4b1a ldr r3, [pc, #104] @ (80011dc ) - 8001174: 2200 movs r2, #0 - 8001176: 611a str r2, [r3, #16] + 80011c6: 4b1a ldr r3, [pc, #104] @ (8001230 ) + 80011c8: 2200 movs r2, #0 + 80011ca: 611a str r2, [r3, #16] htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; - 8001178: 4b18 ldr r3, [pc, #96] @ (80011dc ) - 800117a: 2200 movs r2, #0 - 800117c: 619a str r2, [r3, #24] + 80011cc: 4b18 ldr r3, [pc, #96] @ (8001230 ) + 80011ce: 2200 movs r2, #0 + 80011d0: 619a str r2, [r3, #24] sConfig.EncoderMode = TIM_ENCODERMODE_TI1; - 800117e: 2301 movs r3, #1 - 8001180: 60fb str r3, [r7, #12] + 80011d2: 2301 movs r3, #1 + 80011d4: 60fb str r3, [r7, #12] sConfig.IC1Polarity = TIM_ICPOLARITY_RISING; - 8001182: 2300 movs r3, #0 - 8001184: 613b str r3, [r7, #16] + 80011d6: 2300 movs r3, #0 + 80011d8: 613b str r3, [r7, #16] sConfig.IC1Selection = TIM_ICSELECTION_DIRECTTI; - 8001186: 2301 movs r3, #1 - 8001188: 617b str r3, [r7, #20] + 80011da: 2301 movs r3, #1 + 80011dc: 617b str r3, [r7, #20] sConfig.IC1Prescaler = TIM_ICPSC_DIV1; - 800118a: 2300 movs r3, #0 - 800118c: 61bb str r3, [r7, #24] + 80011de: 2300 movs r3, #0 + 80011e0: 61bb str r3, [r7, #24] sConfig.IC1Filter = 0; - 800118e: 2300 movs r3, #0 - 8001190: 61fb str r3, [r7, #28] + 80011e2: 2300 movs r3, #0 + 80011e4: 61fb str r3, [r7, #28] sConfig.IC2Polarity = TIM_ICPOLARITY_RISING; - 8001192: 2300 movs r3, #0 - 8001194: 623b str r3, [r7, #32] + 80011e6: 2300 movs r3, #0 + 80011e8: 623b str r3, [r7, #32] sConfig.IC2Selection = TIM_ICSELECTION_DIRECTTI; - 8001196: 2301 movs r3, #1 - 8001198: 627b str r3, [r7, #36] @ 0x24 + 80011ea: 2301 movs r3, #1 + 80011ec: 627b str r3, [r7, #36] @ 0x24 sConfig.IC2Prescaler = TIM_ICPSC_DIV1; - 800119a: 2300 movs r3, #0 - 800119c: 62bb str r3, [r7, #40] @ 0x28 + 80011ee: 2300 movs r3, #0 + 80011f0: 62bb str r3, [r7, #40] @ 0x28 sConfig.IC2Filter = 0; - 800119e: 2300 movs r3, #0 - 80011a0: 62fb str r3, [r7, #44] @ 0x2c + 80011f2: 2300 movs r3, #0 + 80011f4: 62fb str r3, [r7, #44] @ 0x2c if (HAL_TIM_Encoder_Init(&htim3, &sConfig) != HAL_OK) - 80011a2: f107 030c add.w r3, r7, #12 - 80011a6: 4619 mov r1, r3 - 80011a8: 480c ldr r0, [pc, #48] @ (80011dc ) - 80011aa: f004 f8ea bl 8005382 - 80011ae: 4603 mov r3, r0 - 80011b0: 2b00 cmp r3, #0 - 80011b2: d001 beq.n 80011b8 + 80011f6: f107 030c add.w r3, r7, #12 + 80011fa: 4619 mov r1, r3 + 80011fc: 480c ldr r0, [pc, #48] @ (8001230 ) + 80011fe: f004 f8ea bl 80053d6 + 8001202: 4603 mov r3, r0 + 8001204: 2b00 cmp r3, #0 + 8001206: d001 beq.n 800120c { Error_Handler(); - 80011b4: f7ff fe78 bl 8000ea8 + 8001208: f7ff fe78 bl 8000efc } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; - 80011b8: 2300 movs r3, #0 - 80011ba: 607b str r3, [r7, #4] + 800120c: 2300 movs r3, #0 + 800120e: 607b str r3, [r7, #4] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; - 80011bc: 2300 movs r3, #0 - 80011be: 60bb str r3, [r7, #8] + 8001210: 2300 movs r3, #0 + 8001212: 60bb str r3, [r7, #8] if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK) - 80011c0: 1d3b adds r3, r7, #4 - 80011c2: 4619 mov r1, r3 - 80011c4: 4805 ldr r0, [pc, #20] @ (80011dc ) - 80011c6: f004 fc35 bl 8005a34 - 80011ca: 4603 mov r3, r0 - 80011cc: 2b00 cmp r3, #0 - 80011ce: d001 beq.n 80011d4 + 8001214: 1d3b adds r3, r7, #4 + 8001216: 4619 mov r1, r3 + 8001218: 4805 ldr r0, [pc, #20] @ (8001230 ) + 800121a: f004 fc35 bl 8005a88 + 800121e: 4603 mov r3, r0 + 8001220: 2b00 cmp r3, #0 + 8001222: d001 beq.n 8001228 { Error_Handler(); - 80011d0: f7ff fe6a bl 8000ea8 + 8001224: f7ff fe6a bl 8000efc } /* USER CODE BEGIN TIM3_Init 2 */ /* USER CODE END TIM3_Init 2 */ } - 80011d4: bf00 nop - 80011d6: 3730 adds r7, #48 @ 0x30 - 80011d8: 46bd mov sp, r7 - 80011da: bd80 pop {r7, pc} - 80011dc: 200002c4 .word 0x200002c4 - 80011e0: 40000400 .word 0x40000400 + 8001228: bf00 nop + 800122a: 3730 adds r7, #48 @ 0x30 + 800122c: 46bd mov sp, r7 + 800122e: bd80 pop {r7, pc} + 8001230: 200002c8 .word 0x200002c8 + 8001234: 40000400 .word 0x40000400 -080011e4 : +08001238 : void HAL_TIM_OC_MspInit(TIM_HandleTypeDef* tim_ocHandle) { - 80011e4: b480 push {r7} - 80011e6: b085 sub sp, #20 - 80011e8: af00 add r7, sp, #0 - 80011ea: 6078 str r0, [r7, #4] + 8001238: b480 push {r7} + 800123a: b085 sub sp, #20 + 800123c: af00 add r7, sp, #0 + 800123e: 6078 str r0, [r7, #4] if(tim_ocHandle->Instance==TIM2) - 80011ec: 687b ldr r3, [r7, #4] - 80011ee: 681b ldr r3, [r3, #0] - 80011f0: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 80011f4: d10d bne.n 8001212 + 8001240: 687b ldr r3, [r7, #4] + 8001242: 681b ldr r3, [r3, #0] + 8001244: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8001248: d10d bne.n 8001266 { /* USER CODE BEGIN TIM2_MspInit 0 */ /* USER CODE END TIM2_MspInit 0 */ /* TIM2 clock enable */ __HAL_RCC_TIM2_CLK_ENABLE(); - 80011f6: 2300 movs r3, #0 - 80011f8: 60fb str r3, [r7, #12] - 80011fa: 4b09 ldr r3, [pc, #36] @ (8001220 ) - 80011fc: 6c1b ldr r3, [r3, #64] @ 0x40 - 80011fe: 4a08 ldr r2, [pc, #32] @ (8001220 ) - 8001200: f043 0301 orr.w r3, r3, #1 - 8001204: 6413 str r3, [r2, #64] @ 0x40 - 8001206: 4b06 ldr r3, [pc, #24] @ (8001220 ) - 8001208: 6c1b ldr r3, [r3, #64] @ 0x40 - 800120a: f003 0301 and.w r3, r3, #1 - 800120e: 60fb str r3, [r7, #12] - 8001210: 68fb ldr r3, [r7, #12] + 800124a: 2300 movs r3, #0 + 800124c: 60fb str r3, [r7, #12] + 800124e: 4b09 ldr r3, [pc, #36] @ (8001274 ) + 8001250: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001252: 4a08 ldr r2, [pc, #32] @ (8001274 ) + 8001254: f043 0301 orr.w r3, r3, #1 + 8001258: 6413 str r3, [r2, #64] @ 0x40 + 800125a: 4b06 ldr r3, [pc, #24] @ (8001274 ) + 800125c: 6c1b ldr r3, [r3, #64] @ 0x40 + 800125e: f003 0301 and.w r3, r3, #1 + 8001262: 60fb str r3, [r7, #12] + 8001264: 68fb ldr r3, [r7, #12] /* USER CODE BEGIN TIM2_MspInit 1 */ /* USER CODE END TIM2_MspInit 1 */ } } - 8001212: bf00 nop - 8001214: 3714 adds r7, #20 - 8001216: 46bd mov sp, r7 - 8001218: f85d 7b04 ldr.w r7, [sp], #4 - 800121c: 4770 bx lr - 800121e: bf00 nop - 8001220: 40023800 .word 0x40023800 + 8001266: bf00 nop + 8001268: 3714 adds r7, #20 + 800126a: 46bd mov sp, r7 + 800126c: f85d 7b04 ldr.w r7, [sp], #4 + 8001270: 4770 bx lr + 8001272: bf00 nop + 8001274: 40023800 .word 0x40023800 -08001224 : +08001278 : void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef* tim_encoderHandle) { - 8001224: b580 push {r7, lr} - 8001226: b08a sub sp, #40 @ 0x28 - 8001228: af00 add r7, sp, #0 - 800122a: 6078 str r0, [r7, #4] + 8001278: b580 push {r7, lr} + 800127a: b08a sub sp, #40 @ 0x28 + 800127c: af00 add r7, sp, #0 + 800127e: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800122c: f107 0314 add.w r3, r7, #20 - 8001230: 2200 movs r2, #0 - 8001232: 601a str r2, [r3, #0] - 8001234: 605a str r2, [r3, #4] - 8001236: 609a str r2, [r3, #8] - 8001238: 60da str r2, [r3, #12] - 800123a: 611a str r2, [r3, #16] + 8001280: f107 0314 add.w r3, r7, #20 + 8001284: 2200 movs r2, #0 + 8001286: 601a str r2, [r3, #0] + 8001288: 605a str r2, [r3, #4] + 800128a: 609a str r2, [r3, #8] + 800128c: 60da str r2, [r3, #12] + 800128e: 611a str r2, [r3, #16] if(tim_encoderHandle->Instance==TIM3) - 800123c: 687b ldr r3, [r7, #4] - 800123e: 681b ldr r3, [r3, #0] - 8001240: 4a19 ldr r2, [pc, #100] @ (80012a8 ) - 8001242: 4293 cmp r3, r2 - 8001244: d12b bne.n 800129e + 8001290: 687b ldr r3, [r7, #4] + 8001292: 681b ldr r3, [r3, #0] + 8001294: 4a19 ldr r2, [pc, #100] @ (80012fc ) + 8001296: 4293 cmp r3, r2 + 8001298: d12b bne.n 80012f2 { /* USER CODE BEGIN TIM3_MspInit 0 */ /* USER CODE END TIM3_MspInit 0 */ /* TIM3 clock enable */ __HAL_RCC_TIM3_CLK_ENABLE(); - 8001246: 2300 movs r3, #0 - 8001248: 613b str r3, [r7, #16] - 800124a: 4b18 ldr r3, [pc, #96] @ (80012ac ) - 800124c: 6c1b ldr r3, [r3, #64] @ 0x40 - 800124e: 4a17 ldr r2, [pc, #92] @ (80012ac ) - 8001250: f043 0302 orr.w r3, r3, #2 - 8001254: 6413 str r3, [r2, #64] @ 0x40 - 8001256: 4b15 ldr r3, [pc, #84] @ (80012ac ) - 8001258: 6c1b ldr r3, [r3, #64] @ 0x40 - 800125a: f003 0302 and.w r3, r3, #2 - 800125e: 613b str r3, [r7, #16] - 8001260: 693b ldr r3, [r7, #16] + 800129a: 2300 movs r3, #0 + 800129c: 613b str r3, [r7, #16] + 800129e: 4b18 ldr r3, [pc, #96] @ (8001300 ) + 80012a0: 6c1b ldr r3, [r3, #64] @ 0x40 + 80012a2: 4a17 ldr r2, [pc, #92] @ (8001300 ) + 80012a4: f043 0302 orr.w r3, r3, #2 + 80012a8: 6413 str r3, [r2, #64] @ 0x40 + 80012aa: 4b15 ldr r3, [pc, #84] @ (8001300 ) + 80012ac: 6c1b ldr r3, [r3, #64] @ 0x40 + 80012ae: f003 0302 and.w r3, r3, #2 + 80012b2: 613b str r3, [r7, #16] + 80012b4: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001262: 2300 movs r3, #0 - 8001264: 60fb str r3, [r7, #12] - 8001266: 4b11 ldr r3, [pc, #68] @ (80012ac ) - 8001268: 6b1b ldr r3, [r3, #48] @ 0x30 - 800126a: 4a10 ldr r2, [pc, #64] @ (80012ac ) - 800126c: f043 0301 orr.w r3, r3, #1 - 8001270: 6313 str r3, [r2, #48] @ 0x30 - 8001272: 4b0e ldr r3, [pc, #56] @ (80012ac ) - 8001274: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001276: f003 0301 and.w r3, r3, #1 - 800127a: 60fb str r3, [r7, #12] - 800127c: 68fb ldr r3, [r7, #12] + 80012b6: 2300 movs r3, #0 + 80012b8: 60fb str r3, [r7, #12] + 80012ba: 4b11 ldr r3, [pc, #68] @ (8001300 ) + 80012bc: 6b1b ldr r3, [r3, #48] @ 0x30 + 80012be: 4a10 ldr r2, [pc, #64] @ (8001300 ) + 80012c0: f043 0301 orr.w r3, r3, #1 + 80012c4: 6313 str r3, [r2, #48] @ 0x30 + 80012c6: 4b0e ldr r3, [pc, #56] @ (8001300 ) + 80012c8: 6b1b ldr r3, [r3, #48] @ 0x30 + 80012ca: f003 0301 and.w r3, r3, #1 + 80012ce: 60fb str r3, [r7, #12] + 80012d0: 68fb ldr r3, [r7, #12] /**TIM3 GPIO Configuration PA6 ------> TIM3_CH1 PA7 ------> TIM3_CH2 */ GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7; - 800127e: 23c0 movs r3, #192 @ 0xc0 - 8001280: 617b str r3, [r7, #20] + 80012d2: 23c0 movs r3, #192 @ 0xc0 + 80012d4: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001282: 2302 movs r3, #2 - 8001284: 61bb str r3, [r7, #24] + 80012d6: 2302 movs r3, #2 + 80012d8: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001286: 2300 movs r3, #0 - 8001288: 61fb str r3, [r7, #28] + 80012da: 2300 movs r3, #0 + 80012dc: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 800128a: 2300 movs r3, #0 - 800128c: 623b str r3, [r7, #32] + 80012de: 2300 movs r3, #0 + 80012e0: 623b str r3, [r7, #32] GPIO_InitStruct.Alternate = GPIO_AF2_TIM3; - 800128e: 2302 movs r3, #2 - 8001290: 627b str r3, [r7, #36] @ 0x24 + 80012e2: 2302 movs r3, #2 + 80012e4: 627b str r3, [r7, #36] @ 0x24 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8001292: f107 0314 add.w r3, r7, #20 - 8001296: 4619 mov r1, r3 - 8001298: 4805 ldr r0, [pc, #20] @ (80012b0 ) - 800129a: f001 f981 bl 80025a0 + 80012e6: f107 0314 add.w r3, r7, #20 + 80012ea: 4619 mov r1, r3 + 80012ec: 4805 ldr r0, [pc, #20] @ (8001304 ) + 80012ee: f001 f981 bl 80025f4 /* USER CODE BEGIN TIM3_MspInit 1 */ /* USER CODE END TIM3_MspInit 1 */ } } - 800129e: bf00 nop - 80012a0: 3728 adds r7, #40 @ 0x28 - 80012a2: 46bd mov sp, r7 - 80012a4: bd80 pop {r7, pc} - 80012a6: bf00 nop - 80012a8: 40000400 .word 0x40000400 - 80012ac: 40023800 .word 0x40023800 - 80012b0: 40020000 .word 0x40020000 + 80012f2: bf00 nop + 80012f4: 3728 adds r7, #40 @ 0x28 + 80012f6: 46bd mov sp, r7 + 80012f8: bd80 pop {r7, pc} + 80012fa: bf00 nop + 80012fc: 40000400 .word 0x40000400 + 8001300: 40023800 .word 0x40023800 + 8001304: 40020000 .word 0x40020000 -080012b4 : +08001308 : void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle) { - 80012b4: b580 push {r7, lr} - 80012b6: b088 sub sp, #32 - 80012b8: af00 add r7, sp, #0 - 80012ba: 6078 str r0, [r7, #4] + 8001308: b580 push {r7, lr} + 800130a: b088 sub sp, #32 + 800130c: af00 add r7, sp, #0 + 800130e: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80012bc: f107 030c add.w r3, r7, #12 - 80012c0: 2200 movs r2, #0 - 80012c2: 601a str r2, [r3, #0] - 80012c4: 605a str r2, [r3, #4] - 80012c6: 609a str r2, [r3, #8] - 80012c8: 60da str r2, [r3, #12] - 80012ca: 611a str r2, [r3, #16] + 8001310: f107 030c add.w r3, r7, #12 + 8001314: 2200 movs r2, #0 + 8001316: 601a str r2, [r3, #0] + 8001318: 605a str r2, [r3, #4] + 800131a: 609a str r2, [r3, #8] + 800131c: 60da str r2, [r3, #12] + 800131e: 611a str r2, [r3, #16] if(timHandle->Instance==TIM2) - 80012cc: 687b ldr r3, [r7, #4] - 80012ce: 681b ldr r3, [r3, #0] - 80012d0: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 80012d4: d11d bne.n 8001312 + 8001320: 687b ldr r3, [r7, #4] + 8001322: 681b ldr r3, [r3, #0] + 8001324: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8001328: d11d bne.n 8001366 { /* USER CODE BEGIN TIM2_MspPostInit 0 */ /* USER CODE END TIM2_MspPostInit 0 */ __HAL_RCC_GPIOA_CLK_ENABLE(); - 80012d6: 2300 movs r3, #0 - 80012d8: 60bb str r3, [r7, #8] - 80012da: 4b10 ldr r3, [pc, #64] @ (800131c ) - 80012dc: 6b1b ldr r3, [r3, #48] @ 0x30 - 80012de: 4a0f ldr r2, [pc, #60] @ (800131c ) - 80012e0: f043 0301 orr.w r3, r3, #1 - 80012e4: 6313 str r3, [r2, #48] @ 0x30 - 80012e6: 4b0d ldr r3, [pc, #52] @ (800131c ) - 80012e8: 6b1b ldr r3, [r3, #48] @ 0x30 - 80012ea: f003 0301 and.w r3, r3, #1 - 80012ee: 60bb str r3, [r7, #8] - 80012f0: 68bb ldr r3, [r7, #8] + 800132a: 2300 movs r3, #0 + 800132c: 60bb str r3, [r7, #8] + 800132e: 4b10 ldr r3, [pc, #64] @ (8001370 ) + 8001330: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001332: 4a0f ldr r2, [pc, #60] @ (8001370 ) + 8001334: f043 0301 orr.w r3, r3, #1 + 8001338: 6313 str r3, [r2, #48] @ 0x30 + 800133a: 4b0d ldr r3, [pc, #52] @ (8001370 ) + 800133c: 6b1b ldr r3, [r3, #48] @ 0x30 + 800133e: f003 0301 and.w r3, r3, #1 + 8001342: 60bb str r3, [r7, #8] + 8001344: 68bb ldr r3, [r7, #8] /**TIM2 GPIO Configuration PA5 ------> TIM2_CH1 */ GPIO_InitStruct.Pin = GPIO_PIN_5; - 80012f2: 2320 movs r3, #32 - 80012f4: 60fb str r3, [r7, #12] + 8001346: 2320 movs r3, #32 + 8001348: 60fb str r3, [r7, #12] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80012f6: 2302 movs r3, #2 - 80012f8: 613b str r3, [r7, #16] + 800134a: 2302 movs r3, #2 + 800134c: 613b str r3, [r7, #16] GPIO_InitStruct.Pull = GPIO_NOPULL; - 80012fa: 2300 movs r3, #0 - 80012fc: 617b str r3, [r7, #20] + 800134e: 2300 movs r3, #0 + 8001350: 617b str r3, [r7, #20] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 80012fe: 2300 movs r3, #0 - 8001300: 61bb str r3, [r7, #24] + 8001352: 2300 movs r3, #0 + 8001354: 61bb str r3, [r7, #24] GPIO_InitStruct.Alternate = GPIO_AF1_TIM2; - 8001302: 2301 movs r3, #1 - 8001304: 61fb str r3, [r7, #28] + 8001356: 2301 movs r3, #1 + 8001358: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8001306: f107 030c add.w r3, r7, #12 - 800130a: 4619 mov r1, r3 - 800130c: 4804 ldr r0, [pc, #16] @ (8001320 ) - 800130e: f001 f947 bl 80025a0 + 800135a: f107 030c add.w r3, r7, #12 + 800135e: 4619 mov r1, r3 + 8001360: 4804 ldr r0, [pc, #16] @ (8001374 ) + 8001362: f001 f947 bl 80025f4 /* USER CODE BEGIN TIM2_MspPostInit 1 */ /* USER CODE END TIM2_MspPostInit 1 */ } } - 8001312: bf00 nop - 8001314: 3720 adds r7, #32 - 8001316: 46bd mov sp, r7 - 8001318: bd80 pop {r7, pc} - 800131a: bf00 nop - 800131c: 40023800 .word 0x40023800 - 8001320: 40020000 .word 0x40020000 + 8001366: bf00 nop + 8001368: 3720 adds r7, #32 + 800136a: 46bd mov sp, r7 + 800136c: bd80 pop {r7, pc} + 800136e: bf00 nop + 8001370: 40023800 .word 0x40023800 + 8001374: 40020000 .word 0x40020000 -08001324 : +08001378 : DMA_HandleTypeDef hdma_usart2_rx; DMA_HandleTypeDef hdma_usart2_tx; /* UART4 init function */ void MX_UART4_Init(void) { - 8001324: b580 push {r7, lr} - 8001326: af00 add r7, sp, #0 + 8001378: b580 push {r7, lr} + 800137a: af00 add r7, sp, #0 /* USER CODE END UART4_Init 0 */ /* USER CODE BEGIN UART4_Init 1 */ /* USER CODE END UART4_Init 1 */ huart4.Instance = UART4; - 8001328: 4b11 ldr r3, [pc, #68] @ (8001370 ) - 800132a: 4a12 ldr r2, [pc, #72] @ (8001374 ) - 800132c: 601a str r2, [r3, #0] + 800137c: 4b11 ldr r3, [pc, #68] @ (80013c4 ) + 800137e: 4a12 ldr r2, [pc, #72] @ (80013c8 ) + 8001380: 601a str r2, [r3, #0] huart4.Init.BaudRate = 115200; - 800132e: 4b10 ldr r3, [pc, #64] @ (8001370 ) - 8001330: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 8001334: 605a str r2, [r3, #4] + 8001382: 4b10 ldr r3, [pc, #64] @ (80013c4 ) + 8001384: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 8001388: 605a str r2, [r3, #4] huart4.Init.WordLength = UART_WORDLENGTH_8B; - 8001336: 4b0e ldr r3, [pc, #56] @ (8001370 ) - 8001338: 2200 movs r2, #0 - 800133a: 609a str r2, [r3, #8] + 800138a: 4b0e ldr r3, [pc, #56] @ (80013c4 ) + 800138c: 2200 movs r2, #0 + 800138e: 609a str r2, [r3, #8] huart4.Init.StopBits = UART_STOPBITS_1; - 800133c: 4b0c ldr r3, [pc, #48] @ (8001370 ) - 800133e: 2200 movs r2, #0 - 8001340: 60da str r2, [r3, #12] + 8001390: 4b0c ldr r3, [pc, #48] @ (80013c4 ) + 8001392: 2200 movs r2, #0 + 8001394: 60da str r2, [r3, #12] huart4.Init.Parity = UART_PARITY_NONE; - 8001342: 4b0b ldr r3, [pc, #44] @ (8001370 ) - 8001344: 2200 movs r2, #0 - 8001346: 611a str r2, [r3, #16] + 8001396: 4b0b ldr r3, [pc, #44] @ (80013c4 ) + 8001398: 2200 movs r2, #0 + 800139a: 611a str r2, [r3, #16] huart4.Init.Mode = UART_MODE_TX_RX; - 8001348: 4b09 ldr r3, [pc, #36] @ (8001370 ) - 800134a: 220c movs r2, #12 - 800134c: 615a str r2, [r3, #20] + 800139c: 4b09 ldr r3, [pc, #36] @ (80013c4 ) + 800139e: 220c movs r2, #12 + 80013a0: 615a str r2, [r3, #20] huart4.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 800134e: 4b08 ldr r3, [pc, #32] @ (8001370 ) - 8001350: 2200 movs r2, #0 - 8001352: 619a str r2, [r3, #24] + 80013a2: 4b08 ldr r3, [pc, #32] @ (80013c4 ) + 80013a4: 2200 movs r2, #0 + 80013a6: 619a str r2, [r3, #24] huart4.Init.OverSampling = UART_OVERSAMPLING_16; - 8001354: 4b06 ldr r3, [pc, #24] @ (8001370 ) - 8001356: 2200 movs r2, #0 - 8001358: 61da str r2, [r3, #28] + 80013a8: 4b06 ldr r3, [pc, #24] @ (80013c4 ) + 80013aa: 2200 movs r2, #0 + 80013ac: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart4) != HAL_OK) - 800135a: 4805 ldr r0, [pc, #20] @ (8001370 ) - 800135c: f004 fbe6 bl 8005b2c - 8001360: 4603 mov r3, r0 - 8001362: 2b00 cmp r3, #0 - 8001364: d001 beq.n 800136a + 80013ae: 4805 ldr r0, [pc, #20] @ (80013c4 ) + 80013b0: f004 fbe6 bl 8005b80 + 80013b4: 4603 mov r3, r0 + 80013b6: 2b00 cmp r3, #0 + 80013b8: d001 beq.n 80013be { Error_Handler(); - 8001366: f7ff fd9f bl 8000ea8 + 80013ba: f7ff fd9f bl 8000efc } /* USER CODE BEGIN UART4_Init 2 */ /* USER CODE END UART4_Init 2 */ } - 800136a: bf00 nop - 800136c: bd80 pop {r7, pc} - 800136e: bf00 nop - 8001370: 2000030c .word 0x2000030c - 8001374: 40004c00 .word 0x40004c00 + 80013be: bf00 nop + 80013c0: bd80 pop {r7, pc} + 80013c2: bf00 nop + 80013c4: 20000310 .word 0x20000310 + 80013c8: 40004c00 .word 0x40004c00 -08001378 : +080013cc : /* UART5 init function */ void MX_UART5_Init(void) { - 8001378: b580 push {r7, lr} - 800137a: af00 add r7, sp, #0 + 80013cc: b580 push {r7, lr} + 80013ce: af00 add r7, sp, #0 /* USER CODE END UART5_Init 0 */ /* USER CODE BEGIN UART5_Init 1 */ /* USER CODE END UART5_Init 1 */ huart5.Instance = UART5; - 800137c: 4b11 ldr r3, [pc, #68] @ (80013c4 ) - 800137e: 4a12 ldr r2, [pc, #72] @ (80013c8 ) - 8001380: 601a str r2, [r3, #0] + 80013d0: 4b11 ldr r3, [pc, #68] @ (8001418 ) + 80013d2: 4a12 ldr r2, [pc, #72] @ (800141c ) + 80013d4: 601a str r2, [r3, #0] huart5.Init.BaudRate = 115200; - 8001382: 4b10 ldr r3, [pc, #64] @ (80013c4 ) - 8001384: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 8001388: 605a str r2, [r3, #4] + 80013d6: 4b10 ldr r3, [pc, #64] @ (8001418 ) + 80013d8: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 80013dc: 605a str r2, [r3, #4] huart5.Init.WordLength = UART_WORDLENGTH_8B; - 800138a: 4b0e ldr r3, [pc, #56] @ (80013c4 ) - 800138c: 2200 movs r2, #0 - 800138e: 609a str r2, [r3, #8] + 80013de: 4b0e ldr r3, [pc, #56] @ (8001418 ) + 80013e0: 2200 movs r2, #0 + 80013e2: 609a str r2, [r3, #8] huart5.Init.StopBits = UART_STOPBITS_1; - 8001390: 4b0c ldr r3, [pc, #48] @ (80013c4 ) - 8001392: 2200 movs r2, #0 - 8001394: 60da str r2, [r3, #12] + 80013e4: 4b0c ldr r3, [pc, #48] @ (8001418 ) + 80013e6: 2200 movs r2, #0 + 80013e8: 60da str r2, [r3, #12] huart5.Init.Parity = UART_PARITY_NONE; - 8001396: 4b0b ldr r3, [pc, #44] @ (80013c4 ) - 8001398: 2200 movs r2, #0 - 800139a: 611a str r2, [r3, #16] + 80013ea: 4b0b ldr r3, [pc, #44] @ (8001418 ) + 80013ec: 2200 movs r2, #0 + 80013ee: 611a str r2, [r3, #16] huart5.Init.Mode = UART_MODE_TX_RX; - 800139c: 4b09 ldr r3, [pc, #36] @ (80013c4 ) - 800139e: 220c movs r2, #12 - 80013a0: 615a str r2, [r3, #20] + 80013f0: 4b09 ldr r3, [pc, #36] @ (8001418 ) + 80013f2: 220c movs r2, #12 + 80013f4: 615a str r2, [r3, #20] huart5.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 80013a2: 4b08 ldr r3, [pc, #32] @ (80013c4 ) - 80013a4: 2200 movs r2, #0 - 80013a6: 619a str r2, [r3, #24] + 80013f6: 4b08 ldr r3, [pc, #32] @ (8001418 ) + 80013f8: 2200 movs r2, #0 + 80013fa: 619a str r2, [r3, #24] huart5.Init.OverSampling = UART_OVERSAMPLING_16; - 80013a8: 4b06 ldr r3, [pc, #24] @ (80013c4 ) - 80013aa: 2200 movs r2, #0 - 80013ac: 61da str r2, [r3, #28] + 80013fc: 4b06 ldr r3, [pc, #24] @ (8001418 ) + 80013fe: 2200 movs r2, #0 + 8001400: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart5) != HAL_OK) - 80013ae: 4805 ldr r0, [pc, #20] @ (80013c4 ) - 80013b0: f004 fbbc bl 8005b2c - 80013b4: 4603 mov r3, r0 - 80013b6: 2b00 cmp r3, #0 - 80013b8: d001 beq.n 80013be + 8001402: 4805 ldr r0, [pc, #20] @ (8001418 ) + 8001404: f004 fbbc bl 8005b80 + 8001408: 4603 mov r3, r0 + 800140a: 2b00 cmp r3, #0 + 800140c: d001 beq.n 8001412 { Error_Handler(); - 80013ba: f7ff fd75 bl 8000ea8 + 800140e: f7ff fd75 bl 8000efc } /* USER CODE BEGIN UART5_Init 2 */ /* USER CODE END UART5_Init 2 */ } - 80013be: bf00 nop - 80013c0: bd80 pop {r7, pc} - 80013c2: bf00 nop - 80013c4: 20000354 .word 0x20000354 - 80013c8: 40005000 .word 0x40005000 + 8001412: bf00 nop + 8001414: bd80 pop {r7, pc} + 8001416: bf00 nop + 8001418: 20000358 .word 0x20000358 + 800141c: 40005000 .word 0x40005000 -080013cc : +08001420 : /* USART1 init function */ void MX_USART1_UART_Init(void) { - 80013cc: b580 push {r7, lr} - 80013ce: af00 add r7, sp, #0 + 8001420: b580 push {r7, lr} + 8001422: af00 add r7, sp, #0 /* USER CODE END USART1_Init 0 */ /* USER CODE BEGIN USART1_Init 1 */ /* USER CODE END USART1_Init 1 */ huart1.Instance = USART1; - 80013d0: 4b11 ldr r3, [pc, #68] @ (8001418 ) - 80013d2: 4a12 ldr r2, [pc, #72] @ (800141c ) - 80013d4: 601a str r2, [r3, #0] + 8001424: 4b11 ldr r3, [pc, #68] @ (800146c ) + 8001426: 4a12 ldr r2, [pc, #72] @ (8001470 ) + 8001428: 601a str r2, [r3, #0] huart1.Init.BaudRate = 115200; - 80013d6: 4b10 ldr r3, [pc, #64] @ (8001418 ) - 80013d8: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 80013dc: 605a str r2, [r3, #4] + 800142a: 4b10 ldr r3, [pc, #64] @ (800146c ) + 800142c: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 8001430: 605a str r2, [r3, #4] huart1.Init.WordLength = UART_WORDLENGTH_8B; - 80013de: 4b0e ldr r3, [pc, #56] @ (8001418 ) - 80013e0: 2200 movs r2, #0 - 80013e2: 609a str r2, [r3, #8] + 8001432: 4b0e ldr r3, [pc, #56] @ (800146c ) + 8001434: 2200 movs r2, #0 + 8001436: 609a str r2, [r3, #8] huart1.Init.StopBits = UART_STOPBITS_1; - 80013e4: 4b0c ldr r3, [pc, #48] @ (8001418 ) - 80013e6: 2200 movs r2, #0 - 80013e8: 60da str r2, [r3, #12] + 8001438: 4b0c ldr r3, [pc, #48] @ (800146c ) + 800143a: 2200 movs r2, #0 + 800143c: 60da str r2, [r3, #12] huart1.Init.Parity = UART_PARITY_NONE; - 80013ea: 4b0b ldr r3, [pc, #44] @ (8001418 ) - 80013ec: 2200 movs r2, #0 - 80013ee: 611a str r2, [r3, #16] + 800143e: 4b0b ldr r3, [pc, #44] @ (800146c ) + 8001440: 2200 movs r2, #0 + 8001442: 611a str r2, [r3, #16] huart1.Init.Mode = UART_MODE_TX_RX; - 80013f0: 4b09 ldr r3, [pc, #36] @ (8001418 ) - 80013f2: 220c movs r2, #12 - 80013f4: 615a str r2, [r3, #20] + 8001444: 4b09 ldr r3, [pc, #36] @ (800146c ) + 8001446: 220c movs r2, #12 + 8001448: 615a str r2, [r3, #20] huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 80013f6: 4b08 ldr r3, [pc, #32] @ (8001418 ) - 80013f8: 2200 movs r2, #0 - 80013fa: 619a str r2, [r3, #24] + 800144a: 4b08 ldr r3, [pc, #32] @ (800146c ) + 800144c: 2200 movs r2, #0 + 800144e: 619a str r2, [r3, #24] huart1.Init.OverSampling = UART_OVERSAMPLING_16; - 80013fc: 4b06 ldr r3, [pc, #24] @ (8001418 ) - 80013fe: 2200 movs r2, #0 - 8001400: 61da str r2, [r3, #28] + 8001450: 4b06 ldr r3, [pc, #24] @ (800146c ) + 8001452: 2200 movs r2, #0 + 8001454: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart1) != HAL_OK) - 8001402: 4805 ldr r0, [pc, #20] @ (8001418 ) - 8001404: f004 fb92 bl 8005b2c - 8001408: 4603 mov r3, r0 - 800140a: 2b00 cmp r3, #0 - 800140c: d001 beq.n 8001412 + 8001456: 4805 ldr r0, [pc, #20] @ (800146c ) + 8001458: f004 fb92 bl 8005b80 + 800145c: 4603 mov r3, r0 + 800145e: 2b00 cmp r3, #0 + 8001460: d001 beq.n 8001466 { Error_Handler(); - 800140e: f7ff fd4b bl 8000ea8 + 8001462: f7ff fd4b bl 8000efc } /* USER CODE BEGIN USART1_Init 2 */ /* USER CODE END USART1_Init 2 */ } - 8001412: bf00 nop - 8001414: bd80 pop {r7, pc} - 8001416: bf00 nop - 8001418: 2000039c .word 0x2000039c - 800141c: 40011000 .word 0x40011000 + 8001466: bf00 nop + 8001468: bd80 pop {r7, pc} + 800146a: bf00 nop + 800146c: 200003a0 .word 0x200003a0 + 8001470: 40011000 .word 0x40011000 -08001420 : +08001474 : /* USART2 init function */ void MX_USART2_UART_Init(void) { - 8001420: b580 push {r7, lr} - 8001422: af00 add r7, sp, #0 + 8001474: b580 push {r7, lr} + 8001476: af00 add r7, sp, #0 /* USER CODE END USART2_Init 0 */ /* USER CODE BEGIN USART2_Init 1 */ /* USER CODE END USART2_Init 1 */ huart2.Instance = USART2; - 8001424: 4b11 ldr r3, [pc, #68] @ (800146c ) - 8001426: 4a12 ldr r2, [pc, #72] @ (8001470 ) - 8001428: 601a str r2, [r3, #0] + 8001478: 4b11 ldr r3, [pc, #68] @ (80014c0 ) + 800147a: 4a12 ldr r2, [pc, #72] @ (80014c4 ) + 800147c: 601a str r2, [r3, #0] huart2.Init.BaudRate = 115200; - 800142a: 4b10 ldr r3, [pc, #64] @ (800146c ) - 800142c: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 8001430: 605a str r2, [r3, #4] + 800147e: 4b10 ldr r3, [pc, #64] @ (80014c0 ) + 8001480: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 8001484: 605a str r2, [r3, #4] huart2.Init.WordLength = UART_WORDLENGTH_8B; - 8001432: 4b0e ldr r3, [pc, #56] @ (800146c ) - 8001434: 2200 movs r2, #0 - 8001436: 609a str r2, [r3, #8] + 8001486: 4b0e ldr r3, [pc, #56] @ (80014c0 ) + 8001488: 2200 movs r2, #0 + 800148a: 609a str r2, [r3, #8] huart2.Init.StopBits = UART_STOPBITS_1; - 8001438: 4b0c ldr r3, [pc, #48] @ (800146c ) - 800143a: 2200 movs r2, #0 - 800143c: 60da str r2, [r3, #12] + 800148c: 4b0c ldr r3, [pc, #48] @ (80014c0 ) + 800148e: 2200 movs r2, #0 + 8001490: 60da str r2, [r3, #12] huart2.Init.Parity = UART_PARITY_NONE; - 800143e: 4b0b ldr r3, [pc, #44] @ (800146c ) - 8001440: 2200 movs r2, #0 - 8001442: 611a str r2, [r3, #16] + 8001492: 4b0b ldr r3, [pc, #44] @ (80014c0 ) + 8001494: 2200 movs r2, #0 + 8001496: 611a str r2, [r3, #16] huart2.Init.Mode = UART_MODE_TX_RX; - 8001444: 4b09 ldr r3, [pc, #36] @ (800146c ) - 8001446: 220c movs r2, #12 - 8001448: 615a str r2, [r3, #20] + 8001498: 4b09 ldr r3, [pc, #36] @ (80014c0 ) + 800149a: 220c movs r2, #12 + 800149c: 615a str r2, [r3, #20] huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 800144a: 4b08 ldr r3, [pc, #32] @ (800146c ) - 800144c: 2200 movs r2, #0 - 800144e: 619a str r2, [r3, #24] + 800149e: 4b08 ldr r3, [pc, #32] @ (80014c0 ) + 80014a0: 2200 movs r2, #0 + 80014a2: 619a str r2, [r3, #24] huart2.Init.OverSampling = UART_OVERSAMPLING_16; - 8001450: 4b06 ldr r3, [pc, #24] @ (800146c ) - 8001452: 2200 movs r2, #0 - 8001454: 61da str r2, [r3, #28] + 80014a4: 4b06 ldr r3, [pc, #24] @ (80014c0 ) + 80014a6: 2200 movs r2, #0 + 80014a8: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart2) != HAL_OK) - 8001456: 4805 ldr r0, [pc, #20] @ (800146c ) - 8001458: f004 fb68 bl 8005b2c - 800145c: 4603 mov r3, r0 - 800145e: 2b00 cmp r3, #0 - 8001460: d001 beq.n 8001466 + 80014aa: 4805 ldr r0, [pc, #20] @ (80014c0 ) + 80014ac: f004 fb68 bl 8005b80 + 80014b0: 4603 mov r3, r0 + 80014b2: 2b00 cmp r3, #0 + 80014b4: d001 beq.n 80014ba { Error_Handler(); - 8001462: f7ff fd21 bl 8000ea8 + 80014b6: f7ff fd21 bl 8000efc } /* USER CODE BEGIN USART2_Init 2 */ /* USER CODE END USART2_Init 2 */ } - 8001466: bf00 nop - 8001468: bd80 pop {r7, pc} - 800146a: bf00 nop - 800146c: 200003e4 .word 0x200003e4 - 8001470: 40004400 .word 0x40004400 + 80014ba: bf00 nop + 80014bc: bd80 pop {r7, pc} + 80014be: bf00 nop + 80014c0: 200003e8 .word 0x200003e8 + 80014c4: 40004400 .word 0x40004400 -08001474 : +080014c8 : void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) { - 8001474: b580 push {r7, lr} - 8001476: b090 sub sp, #64 @ 0x40 - 8001478: af00 add r7, sp, #0 - 800147a: 6078 str r0, [r7, #4] + 80014c8: b580 push {r7, lr} + 80014ca: b090 sub sp, #64 @ 0x40 + 80014cc: af00 add r7, sp, #0 + 80014ce: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800147c: f107 032c add.w r3, r7, #44 @ 0x2c - 8001480: 2200 movs r2, #0 - 8001482: 601a str r2, [r3, #0] - 8001484: 605a str r2, [r3, #4] - 8001486: 609a str r2, [r3, #8] - 8001488: 60da str r2, [r3, #12] - 800148a: 611a str r2, [r3, #16] + 80014d0: f107 032c add.w r3, r7, #44 @ 0x2c + 80014d4: 2200 movs r2, #0 + 80014d6: 601a str r2, [r3, #0] + 80014d8: 605a str r2, [r3, #4] + 80014da: 609a str r2, [r3, #8] + 80014dc: 60da str r2, [r3, #12] + 80014de: 611a str r2, [r3, #16] if(uartHandle->Instance==UART4) - 800148c: 687b ldr r3, [r7, #4] - 800148e: 681b ldr r3, [r3, #0] - 8001490: 4a4a ldr r2, [pc, #296] @ (80015bc ) - 8001492: 4293 cmp r3, r2 - 8001494: f040 80a0 bne.w 80015d8 + 80014e0: 687b ldr r3, [r7, #4] + 80014e2: 681b ldr r3, [r3, #0] + 80014e4: 4a4a ldr r2, [pc, #296] @ (8001610 ) + 80014e6: 4293 cmp r3, r2 + 80014e8: f040 80a0 bne.w 800162c { /* USER CODE BEGIN UART4_MspInit 0 */ /* USER CODE END UART4_MspInit 0 */ /* UART4 clock enable */ __HAL_RCC_UART4_CLK_ENABLE(); - 8001498: 2300 movs r3, #0 - 800149a: 62bb str r3, [r7, #40] @ 0x28 - 800149c: 4b48 ldr r3, [pc, #288] @ (80015c0 ) - 800149e: 6c1b ldr r3, [r3, #64] @ 0x40 - 80014a0: 4a47 ldr r2, [pc, #284] @ (80015c0 ) - 80014a2: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 80014a6: 6413 str r3, [r2, #64] @ 0x40 - 80014a8: 4b45 ldr r3, [pc, #276] @ (80015c0 ) - 80014aa: 6c1b ldr r3, [r3, #64] @ 0x40 - 80014ac: f403 2300 and.w r3, r3, #524288 @ 0x80000 - 80014b0: 62bb str r3, [r7, #40] @ 0x28 - 80014b2: 6abb ldr r3, [r7, #40] @ 0x28 + 80014ec: 2300 movs r3, #0 + 80014ee: 62bb str r3, [r7, #40] @ 0x28 + 80014f0: 4b48 ldr r3, [pc, #288] @ (8001614 ) + 80014f2: 6c1b ldr r3, [r3, #64] @ 0x40 + 80014f4: 4a47 ldr r2, [pc, #284] @ (8001614 ) + 80014f6: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 80014fa: 6413 str r3, [r2, #64] @ 0x40 + 80014fc: 4b45 ldr r3, [pc, #276] @ (8001614 ) + 80014fe: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001500: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 8001504: 62bb str r3, [r7, #40] @ 0x28 + 8001506: 6abb ldr r3, [r7, #40] @ 0x28 __HAL_RCC_GPIOA_CLK_ENABLE(); - 80014b4: 2300 movs r3, #0 - 80014b6: 627b str r3, [r7, #36] @ 0x24 - 80014b8: 4b41 ldr r3, [pc, #260] @ (80015c0 ) - 80014ba: 6b1b ldr r3, [r3, #48] @ 0x30 - 80014bc: 4a40 ldr r2, [pc, #256] @ (80015c0 ) - 80014be: f043 0301 orr.w r3, r3, #1 - 80014c2: 6313 str r3, [r2, #48] @ 0x30 - 80014c4: 4b3e ldr r3, [pc, #248] @ (80015c0 ) - 80014c6: 6b1b ldr r3, [r3, #48] @ 0x30 - 80014c8: f003 0301 and.w r3, r3, #1 - 80014cc: 627b str r3, [r7, #36] @ 0x24 - 80014ce: 6a7b ldr r3, [r7, #36] @ 0x24 + 8001508: 2300 movs r3, #0 + 800150a: 627b str r3, [r7, #36] @ 0x24 + 800150c: 4b41 ldr r3, [pc, #260] @ (8001614 ) + 800150e: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001510: 4a40 ldr r2, [pc, #256] @ (8001614 ) + 8001512: f043 0301 orr.w r3, r3, #1 + 8001516: 6313 str r3, [r2, #48] @ 0x30 + 8001518: 4b3e ldr r3, [pc, #248] @ (8001614 ) + 800151a: 6b1b ldr r3, [r3, #48] @ 0x30 + 800151c: f003 0301 and.w r3, r3, #1 + 8001520: 627b str r3, [r7, #36] @ 0x24 + 8001522: 6a7b ldr r3, [r7, #36] @ 0x24 /**UART4 GPIO Configuration PA0-WKUP ------> UART4_TX PA1 ------> UART4_RX */ GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1; - 80014d0: 2303 movs r3, #3 - 80014d2: 62fb str r3, [r7, #44] @ 0x2c + 8001524: 2303 movs r3, #3 + 8001526: 62fb str r3, [r7, #44] @ 0x2c GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80014d4: 2302 movs r3, #2 - 80014d6: 633b str r3, [r7, #48] @ 0x30 + 8001528: 2302 movs r3, #2 + 800152a: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Pull = GPIO_NOPULL; - 80014d8: 2300 movs r3, #0 - 80014da: 637b str r3, [r7, #52] @ 0x34 + 800152c: 2300 movs r3, #0 + 800152e: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 80014dc: 2303 movs r3, #3 - 80014de: 63bb str r3, [r7, #56] @ 0x38 + 8001530: 2303 movs r3, #3 + 8001532: 63bb str r3, [r7, #56] @ 0x38 GPIO_InitStruct.Alternate = GPIO_AF8_UART4; - 80014e0: 2308 movs r3, #8 - 80014e2: 63fb str r3, [r7, #60] @ 0x3c + 8001534: 2308 movs r3, #8 + 8001536: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 80014e4: f107 032c add.w r3, r7, #44 @ 0x2c - 80014e8: 4619 mov r1, r3 - 80014ea: 4836 ldr r0, [pc, #216] @ (80015c4 ) - 80014ec: f001 f858 bl 80025a0 + 8001538: f107 032c add.w r3, r7, #44 @ 0x2c + 800153c: 4619 mov r1, r3 + 800153e: 4836 ldr r0, [pc, #216] @ (8001618 ) + 8001540: f001 f858 bl 80025f4 /* UART4 DMA Init */ /* UART4_RX Init */ hdma_uart4_rx.Instance = DMA1_Stream2; - 80014f0: 4b35 ldr r3, [pc, #212] @ (80015c8 ) - 80014f2: 4a36 ldr r2, [pc, #216] @ (80015cc ) - 80014f4: 601a str r2, [r3, #0] + 8001544: 4b35 ldr r3, [pc, #212] @ (800161c ) + 8001546: 4a36 ldr r2, [pc, #216] @ (8001620 ) + 8001548: 601a str r2, [r3, #0] hdma_uart4_rx.Init.Channel = DMA_CHANNEL_4; - 80014f6: 4b34 ldr r3, [pc, #208] @ (80015c8 ) - 80014f8: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 80014fc: 605a str r2, [r3, #4] + 800154a: 4b34 ldr r3, [pc, #208] @ (800161c ) + 800154c: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001550: 605a str r2, [r3, #4] hdma_uart4_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - 80014fe: 4b32 ldr r3, [pc, #200] @ (80015c8 ) - 8001500: 2200 movs r2, #0 - 8001502: 609a str r2, [r3, #8] + 8001552: 4b32 ldr r3, [pc, #200] @ (800161c ) + 8001554: 2200 movs r2, #0 + 8001556: 609a str r2, [r3, #8] hdma_uart4_rx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001504: 4b30 ldr r3, [pc, #192] @ (80015c8 ) - 8001506: 2200 movs r2, #0 - 8001508: 60da str r2, [r3, #12] + 8001558: 4b30 ldr r3, [pc, #192] @ (800161c ) + 800155a: 2200 movs r2, #0 + 800155c: 60da str r2, [r3, #12] hdma_uart4_rx.Init.MemInc = DMA_MINC_ENABLE; - 800150a: 4b2f ldr r3, [pc, #188] @ (80015c8 ) - 800150c: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001510: 611a str r2, [r3, #16] + 800155e: 4b2f ldr r3, [pc, #188] @ (800161c ) + 8001560: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001564: 611a str r2, [r3, #16] hdma_uart4_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001512: 4b2d ldr r3, [pc, #180] @ (80015c8 ) - 8001514: 2200 movs r2, #0 - 8001516: 615a str r2, [r3, #20] + 8001566: 4b2d ldr r3, [pc, #180] @ (800161c ) + 8001568: 2200 movs r2, #0 + 800156a: 615a str r2, [r3, #20] hdma_uart4_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001518: 4b2b ldr r3, [pc, #172] @ (80015c8 ) - 800151a: 2200 movs r2, #0 - 800151c: 619a str r2, [r3, #24] + 800156c: 4b2b ldr r3, [pc, #172] @ (800161c ) + 800156e: 2200 movs r2, #0 + 8001570: 619a str r2, [r3, #24] hdma_uart4_rx.Init.Mode = DMA_NORMAL; - 800151e: 4b2a ldr r3, [pc, #168] @ (80015c8 ) - 8001520: 2200 movs r2, #0 - 8001522: 61da str r2, [r3, #28] + 8001572: 4b2a ldr r3, [pc, #168] @ (800161c ) + 8001574: 2200 movs r2, #0 + 8001576: 61da str r2, [r3, #28] hdma_uart4_rx.Init.Priority = DMA_PRIORITY_LOW; - 8001524: 4b28 ldr r3, [pc, #160] @ (80015c8 ) - 8001526: 2200 movs r2, #0 - 8001528: 621a str r2, [r3, #32] + 8001578: 4b28 ldr r3, [pc, #160] @ (800161c ) + 800157a: 2200 movs r2, #0 + 800157c: 621a str r2, [r3, #32] hdma_uart4_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 800152a: 4b27 ldr r3, [pc, #156] @ (80015c8 ) - 800152c: 2200 movs r2, #0 - 800152e: 625a str r2, [r3, #36] @ 0x24 + 800157e: 4b27 ldr r3, [pc, #156] @ (800161c ) + 8001580: 2200 movs r2, #0 + 8001582: 625a str r2, [r3, #36] @ 0x24 if (HAL_DMA_Init(&hdma_uart4_rx) != HAL_OK) - 8001530: 4825 ldr r0, [pc, #148] @ (80015c8 ) - 8001532: f000 fc33 bl 8001d9c - 8001536: 4603 mov r3, r0 - 8001538: 2b00 cmp r3, #0 - 800153a: d001 beq.n 8001540 + 8001584: 4825 ldr r0, [pc, #148] @ (800161c ) + 8001586: f000 fc33 bl 8001df0 + 800158a: 4603 mov r3, r0 + 800158c: 2b00 cmp r3, #0 + 800158e: d001 beq.n 8001594 { Error_Handler(); - 800153c: f7ff fcb4 bl 8000ea8 + 8001590: f7ff fcb4 bl 8000efc } __HAL_LINKDMA(uartHandle,hdmarx,hdma_uart4_rx); - 8001540: 687b ldr r3, [r7, #4] - 8001542: 4a21 ldr r2, [pc, #132] @ (80015c8 ) - 8001544: 63da str r2, [r3, #60] @ 0x3c - 8001546: 4a20 ldr r2, [pc, #128] @ (80015c8 ) - 8001548: 687b ldr r3, [r7, #4] - 800154a: 6393 str r3, [r2, #56] @ 0x38 + 8001594: 687b ldr r3, [r7, #4] + 8001596: 4a21 ldr r2, [pc, #132] @ (800161c ) + 8001598: 63da str r2, [r3, #60] @ 0x3c + 800159a: 4a20 ldr r2, [pc, #128] @ (800161c ) + 800159c: 687b ldr r3, [r7, #4] + 800159e: 6393 str r3, [r2, #56] @ 0x38 /* UART4_TX Init */ hdma_uart4_tx.Instance = DMA1_Stream4; - 800154c: 4b20 ldr r3, [pc, #128] @ (80015d0 ) - 800154e: 4a21 ldr r2, [pc, #132] @ (80015d4 ) - 8001550: 601a str r2, [r3, #0] + 80015a0: 4b20 ldr r3, [pc, #128] @ (8001624 ) + 80015a2: 4a21 ldr r2, [pc, #132] @ (8001628 ) + 80015a4: 601a str r2, [r3, #0] hdma_uart4_tx.Init.Channel = DMA_CHANNEL_4; - 8001552: 4b1f ldr r3, [pc, #124] @ (80015d0 ) - 8001554: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001558: 605a str r2, [r3, #4] + 80015a6: 4b1f ldr r3, [pc, #124] @ (8001624 ) + 80015a8: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 80015ac: 605a str r2, [r3, #4] hdma_uart4_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; - 800155a: 4b1d ldr r3, [pc, #116] @ (80015d0 ) - 800155c: 2240 movs r2, #64 @ 0x40 - 800155e: 609a str r2, [r3, #8] + 80015ae: 4b1d ldr r3, [pc, #116] @ (8001624 ) + 80015b0: 2240 movs r2, #64 @ 0x40 + 80015b2: 609a str r2, [r3, #8] hdma_uart4_tx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001560: 4b1b ldr r3, [pc, #108] @ (80015d0 ) - 8001562: 2200 movs r2, #0 - 8001564: 60da str r2, [r3, #12] + 80015b4: 4b1b ldr r3, [pc, #108] @ (8001624 ) + 80015b6: 2200 movs r2, #0 + 80015b8: 60da str r2, [r3, #12] hdma_uart4_tx.Init.MemInc = DMA_MINC_ENABLE; - 8001566: 4b1a ldr r3, [pc, #104] @ (80015d0 ) - 8001568: f44f 6280 mov.w r2, #1024 @ 0x400 - 800156c: 611a str r2, [r3, #16] + 80015ba: 4b1a ldr r3, [pc, #104] @ (8001624 ) + 80015bc: f44f 6280 mov.w r2, #1024 @ 0x400 + 80015c0: 611a str r2, [r3, #16] hdma_uart4_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 800156e: 4b18 ldr r3, [pc, #96] @ (80015d0 ) - 8001570: 2200 movs r2, #0 - 8001572: 615a str r2, [r3, #20] + 80015c2: 4b18 ldr r3, [pc, #96] @ (8001624 ) + 80015c4: 2200 movs r2, #0 + 80015c6: 615a str r2, [r3, #20] hdma_uart4_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001574: 4b16 ldr r3, [pc, #88] @ (80015d0 ) - 8001576: 2200 movs r2, #0 - 8001578: 619a str r2, [r3, #24] + 80015c8: 4b16 ldr r3, [pc, #88] @ (8001624 ) + 80015ca: 2200 movs r2, #0 + 80015cc: 619a str r2, [r3, #24] hdma_uart4_tx.Init.Mode = DMA_NORMAL; - 800157a: 4b15 ldr r3, [pc, #84] @ (80015d0 ) - 800157c: 2200 movs r2, #0 - 800157e: 61da str r2, [r3, #28] + 80015ce: 4b15 ldr r3, [pc, #84] @ (8001624 ) + 80015d0: 2200 movs r2, #0 + 80015d2: 61da str r2, [r3, #28] hdma_uart4_tx.Init.Priority = DMA_PRIORITY_LOW; - 8001580: 4b13 ldr r3, [pc, #76] @ (80015d0 ) - 8001582: 2200 movs r2, #0 - 8001584: 621a str r2, [r3, #32] + 80015d4: 4b13 ldr r3, [pc, #76] @ (8001624 ) + 80015d6: 2200 movs r2, #0 + 80015d8: 621a str r2, [r3, #32] hdma_uart4_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001586: 4b12 ldr r3, [pc, #72] @ (80015d0 ) - 8001588: 2200 movs r2, #0 - 800158a: 625a str r2, [r3, #36] @ 0x24 + 80015da: 4b12 ldr r3, [pc, #72] @ (8001624 ) + 80015dc: 2200 movs r2, #0 + 80015de: 625a str r2, [r3, #36] @ 0x24 if (HAL_DMA_Init(&hdma_uart4_tx) != HAL_OK) - 800158c: 4810 ldr r0, [pc, #64] @ (80015d0 ) - 800158e: f000 fc05 bl 8001d9c - 8001592: 4603 mov r3, r0 - 8001594: 2b00 cmp r3, #0 - 8001596: d001 beq.n 800159c + 80015e0: 4810 ldr r0, [pc, #64] @ (8001624 ) + 80015e2: f000 fc05 bl 8001df0 + 80015e6: 4603 mov r3, r0 + 80015e8: 2b00 cmp r3, #0 + 80015ea: d001 beq.n 80015f0 { Error_Handler(); - 8001598: f7ff fc86 bl 8000ea8 + 80015ec: f7ff fc86 bl 8000efc } __HAL_LINKDMA(uartHandle,hdmatx,hdma_uart4_tx); - 800159c: 687b ldr r3, [r7, #4] - 800159e: 4a0c ldr r2, [pc, #48] @ (80015d0 ) - 80015a0: 639a str r2, [r3, #56] @ 0x38 - 80015a2: 4a0b ldr r2, [pc, #44] @ (80015d0 ) - 80015a4: 687b ldr r3, [r7, #4] - 80015a6: 6393 str r3, [r2, #56] @ 0x38 + 80015f0: 687b ldr r3, [r7, #4] + 80015f2: 4a0c ldr r2, [pc, #48] @ (8001624 ) + 80015f4: 639a str r2, [r3, #56] @ 0x38 + 80015f6: 4a0b ldr r2, [pc, #44] @ (8001624 ) + 80015f8: 687b ldr r3, [r7, #4] + 80015fa: 6393 str r3, [r2, #56] @ 0x38 /* UART4 interrupt Init */ HAL_NVIC_SetPriority(UART4_IRQn, 5, 0); - 80015a8: 2200 movs r2, #0 - 80015aa: 2105 movs r1, #5 - 80015ac: 2034 movs r0, #52 @ 0x34 - 80015ae: f000 fbbe bl 8001d2e + 80015fc: 2200 movs r2, #0 + 80015fe: 2105 movs r1, #5 + 8001600: 2034 movs r0, #52 @ 0x34 + 8001602: f000 fbbe bl 8001d82 HAL_NVIC_EnableIRQ(UART4_IRQn); - 80015b2: 2034 movs r0, #52 @ 0x34 - 80015b4: f000 fbd7 bl 8001d66 + 8001606: 2034 movs r0, #52 @ 0x34 + 8001608: f000 fbd7 bl 8001dba HAL_NVIC_EnableIRQ(USART2_IRQn); /* USER CODE BEGIN USART2_MspInit 1 */ /* USER CODE END USART2_MspInit 1 */ } } - 80015b8: e202 b.n 80019c0 - 80015ba: bf00 nop - 80015bc: 40004c00 .word 0x40004c00 - 80015c0: 40023800 .word 0x40023800 - 80015c4: 40020000 .word 0x40020000 - 80015c8: 2000042c .word 0x2000042c - 80015cc: 40026040 .word 0x40026040 - 80015d0: 2000048c .word 0x2000048c - 80015d4: 40026070 .word 0x40026070 + 800160c: e202 b.n 8001a14 + 800160e: bf00 nop + 8001610: 40004c00 .word 0x40004c00 + 8001614: 40023800 .word 0x40023800 + 8001618: 40020000 .word 0x40020000 + 800161c: 20000430 .word 0x20000430 + 8001620: 40026040 .word 0x40026040 + 8001624: 20000490 .word 0x20000490 + 8001628: 40026070 .word 0x40026070 else if(uartHandle->Instance==UART5) - 80015d8: 687b ldr r3, [r7, #4] - 80015da: 681b ldr r3, [r3, #0] - 80015dc: 4a59 ldr r2, [pc, #356] @ (8001744 ) - 80015de: 4293 cmp r3, r2 - 80015e0: f040 80c0 bne.w 8001764 + 800162c: 687b ldr r3, [r7, #4] + 800162e: 681b ldr r3, [r3, #0] + 8001630: 4a59 ldr r2, [pc, #356] @ (8001798 ) + 8001632: 4293 cmp r3, r2 + 8001634: f040 80c0 bne.w 80017b8 __HAL_RCC_UART5_CLK_ENABLE(); - 80015e4: 2300 movs r3, #0 - 80015e6: 623b str r3, [r7, #32] - 80015e8: 4b57 ldr r3, [pc, #348] @ (8001748 ) - 80015ea: 6c1b ldr r3, [r3, #64] @ 0x40 - 80015ec: 4a56 ldr r2, [pc, #344] @ (8001748 ) - 80015ee: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 - 80015f2: 6413 str r3, [r2, #64] @ 0x40 - 80015f4: 4b54 ldr r3, [pc, #336] @ (8001748 ) - 80015f6: 6c1b ldr r3, [r3, #64] @ 0x40 - 80015f8: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 80015fc: 623b str r3, [r7, #32] - 80015fe: 6a3b ldr r3, [r7, #32] + 8001638: 2300 movs r3, #0 + 800163a: 623b str r3, [r7, #32] + 800163c: 4b57 ldr r3, [pc, #348] @ (800179c ) + 800163e: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001640: 4a56 ldr r2, [pc, #344] @ (800179c ) + 8001642: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 + 8001646: 6413 str r3, [r2, #64] @ 0x40 + 8001648: 4b54 ldr r3, [pc, #336] @ (800179c ) + 800164a: 6c1b ldr r3, [r3, #64] @ 0x40 + 800164c: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 8001650: 623b str r3, [r7, #32] + 8001652: 6a3b ldr r3, [r7, #32] __HAL_RCC_GPIOC_CLK_ENABLE(); - 8001600: 2300 movs r3, #0 - 8001602: 61fb str r3, [r7, #28] - 8001604: 4b50 ldr r3, [pc, #320] @ (8001748 ) - 8001606: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001608: 4a4f ldr r2, [pc, #316] @ (8001748 ) - 800160a: f043 0304 orr.w r3, r3, #4 - 800160e: 6313 str r3, [r2, #48] @ 0x30 - 8001610: 4b4d ldr r3, [pc, #308] @ (8001748 ) - 8001612: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001614: f003 0304 and.w r3, r3, #4 - 8001618: 61fb str r3, [r7, #28] - 800161a: 69fb ldr r3, [r7, #28] + 8001654: 2300 movs r3, #0 + 8001656: 61fb str r3, [r7, #28] + 8001658: 4b50 ldr r3, [pc, #320] @ (800179c ) + 800165a: 6b1b ldr r3, [r3, #48] @ 0x30 + 800165c: 4a4f ldr r2, [pc, #316] @ (800179c ) + 800165e: f043 0304 orr.w r3, r3, #4 + 8001662: 6313 str r3, [r2, #48] @ 0x30 + 8001664: 4b4d ldr r3, [pc, #308] @ (800179c ) + 8001666: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001668: f003 0304 and.w r3, r3, #4 + 800166c: 61fb str r3, [r7, #28] + 800166e: 69fb ldr r3, [r7, #28] __HAL_RCC_GPIOD_CLK_ENABLE(); - 800161c: 2300 movs r3, #0 - 800161e: 61bb str r3, [r7, #24] - 8001620: 4b49 ldr r3, [pc, #292] @ (8001748 ) - 8001622: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001624: 4a48 ldr r2, [pc, #288] @ (8001748 ) - 8001626: f043 0308 orr.w r3, r3, #8 - 800162a: 6313 str r3, [r2, #48] @ 0x30 - 800162c: 4b46 ldr r3, [pc, #280] @ (8001748 ) - 800162e: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001630: f003 0308 and.w r3, r3, #8 - 8001634: 61bb str r3, [r7, #24] - 8001636: 69bb ldr r3, [r7, #24] + 8001670: 2300 movs r3, #0 + 8001672: 61bb str r3, [r7, #24] + 8001674: 4b49 ldr r3, [pc, #292] @ (800179c ) + 8001676: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001678: 4a48 ldr r2, [pc, #288] @ (800179c ) + 800167a: f043 0308 orr.w r3, r3, #8 + 800167e: 6313 str r3, [r2, #48] @ 0x30 + 8001680: 4b46 ldr r3, [pc, #280] @ (800179c ) + 8001682: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001684: f003 0308 and.w r3, r3, #8 + 8001688: 61bb str r3, [r7, #24] + 800168a: 69bb ldr r3, [r7, #24] GPIO_InitStruct.Pin = GPIO_PIN_12; - 8001638: f44f 5380 mov.w r3, #4096 @ 0x1000 - 800163c: 62fb str r3, [r7, #44] @ 0x2c + 800168c: f44f 5380 mov.w r3, #4096 @ 0x1000 + 8001690: 62fb str r3, [r7, #44] @ 0x2c GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800163e: 2302 movs r3, #2 - 8001640: 633b str r3, [r7, #48] @ 0x30 + 8001692: 2302 movs r3, #2 + 8001694: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001642: 2300 movs r3, #0 - 8001644: 637b str r3, [r7, #52] @ 0x34 + 8001696: 2300 movs r3, #0 + 8001698: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8001646: 2303 movs r3, #3 - 8001648: 63bb str r3, [r7, #56] @ 0x38 + 800169a: 2303 movs r3, #3 + 800169c: 63bb str r3, [r7, #56] @ 0x38 GPIO_InitStruct.Alternate = GPIO_AF8_UART5; - 800164a: 2308 movs r3, #8 - 800164c: 63fb str r3, [r7, #60] @ 0x3c + 800169e: 2308 movs r3, #8 + 80016a0: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - 800164e: f107 032c add.w r3, r7, #44 @ 0x2c - 8001652: 4619 mov r1, r3 - 8001654: 483d ldr r0, [pc, #244] @ (800174c ) - 8001656: f000 ffa3 bl 80025a0 + 80016a2: f107 032c add.w r3, r7, #44 @ 0x2c + 80016a6: 4619 mov r1, r3 + 80016a8: 483d ldr r0, [pc, #244] @ (80017a0 ) + 80016aa: f000 ffa3 bl 80025f4 GPIO_InitStruct.Pin = GPIO_PIN_2; - 800165a: 2304 movs r3, #4 - 800165c: 62fb str r3, [r7, #44] @ 0x2c + 80016ae: 2304 movs r3, #4 + 80016b0: 62fb str r3, [r7, #44] @ 0x2c GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800165e: 2302 movs r3, #2 - 8001660: 633b str r3, [r7, #48] @ 0x30 + 80016b2: 2302 movs r3, #2 + 80016b4: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001662: 2300 movs r3, #0 - 8001664: 637b str r3, [r7, #52] @ 0x34 + 80016b6: 2300 movs r3, #0 + 80016b8: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8001666: 2303 movs r3, #3 - 8001668: 63bb str r3, [r7, #56] @ 0x38 + 80016ba: 2303 movs r3, #3 + 80016bc: 63bb str r3, [r7, #56] @ 0x38 GPIO_InitStruct.Alternate = GPIO_AF8_UART5; - 800166a: 2308 movs r3, #8 - 800166c: 63fb str r3, [r7, #60] @ 0x3c + 80016be: 2308 movs r3, #8 + 80016c0: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 800166e: f107 032c add.w r3, r7, #44 @ 0x2c - 8001672: 4619 mov r1, r3 - 8001674: 4836 ldr r0, [pc, #216] @ (8001750 ) - 8001676: f000 ff93 bl 80025a0 + 80016c2: f107 032c add.w r3, r7, #44 @ 0x2c + 80016c6: 4619 mov r1, r3 + 80016c8: 4836 ldr r0, [pc, #216] @ (80017a4 ) + 80016ca: f000 ff93 bl 80025f4 hdma_uart5_rx.Instance = DMA1_Stream0; - 800167a: 4b36 ldr r3, [pc, #216] @ (8001754 ) - 800167c: 4a36 ldr r2, [pc, #216] @ (8001758 ) - 800167e: 601a str r2, [r3, #0] + 80016ce: 4b36 ldr r3, [pc, #216] @ (80017a8 ) + 80016d0: 4a36 ldr r2, [pc, #216] @ (80017ac ) + 80016d2: 601a str r2, [r3, #0] hdma_uart5_rx.Init.Channel = DMA_CHANNEL_4; - 8001680: 4b34 ldr r3, [pc, #208] @ (8001754 ) - 8001682: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001686: 605a str r2, [r3, #4] + 80016d4: 4b34 ldr r3, [pc, #208] @ (80017a8 ) + 80016d6: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 80016da: 605a str r2, [r3, #4] hdma_uart5_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - 8001688: 4b32 ldr r3, [pc, #200] @ (8001754 ) - 800168a: 2200 movs r2, #0 - 800168c: 609a str r2, [r3, #8] + 80016dc: 4b32 ldr r3, [pc, #200] @ (80017a8 ) + 80016de: 2200 movs r2, #0 + 80016e0: 609a str r2, [r3, #8] hdma_uart5_rx.Init.PeriphInc = DMA_PINC_DISABLE; - 800168e: 4b31 ldr r3, [pc, #196] @ (8001754 ) - 8001690: 2200 movs r2, #0 - 8001692: 60da str r2, [r3, #12] + 80016e2: 4b31 ldr r3, [pc, #196] @ (80017a8 ) + 80016e4: 2200 movs r2, #0 + 80016e6: 60da str r2, [r3, #12] hdma_uart5_rx.Init.MemInc = DMA_MINC_ENABLE; - 8001694: 4b2f ldr r3, [pc, #188] @ (8001754 ) - 8001696: f44f 6280 mov.w r2, #1024 @ 0x400 - 800169a: 611a str r2, [r3, #16] + 80016e8: 4b2f ldr r3, [pc, #188] @ (80017a8 ) + 80016ea: f44f 6280 mov.w r2, #1024 @ 0x400 + 80016ee: 611a str r2, [r3, #16] hdma_uart5_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 800169c: 4b2d ldr r3, [pc, #180] @ (8001754 ) - 800169e: 2200 movs r2, #0 - 80016a0: 615a str r2, [r3, #20] + 80016f0: 4b2d ldr r3, [pc, #180] @ (80017a8 ) + 80016f2: 2200 movs r2, #0 + 80016f4: 615a str r2, [r3, #20] hdma_uart5_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 80016a2: 4b2c ldr r3, [pc, #176] @ (8001754 ) - 80016a4: 2200 movs r2, #0 - 80016a6: 619a str r2, [r3, #24] + 80016f6: 4b2c ldr r3, [pc, #176] @ (80017a8 ) + 80016f8: 2200 movs r2, #0 + 80016fa: 619a str r2, [r3, #24] hdma_uart5_rx.Init.Mode = DMA_NORMAL; - 80016a8: 4b2a ldr r3, [pc, #168] @ (8001754 ) - 80016aa: 2200 movs r2, #0 - 80016ac: 61da str r2, [r3, #28] + 80016fc: 4b2a ldr r3, [pc, #168] @ (80017a8 ) + 80016fe: 2200 movs r2, #0 + 8001700: 61da str r2, [r3, #28] hdma_uart5_rx.Init.Priority = DMA_PRIORITY_LOW; - 80016ae: 4b29 ldr r3, [pc, #164] @ (8001754 ) - 80016b0: 2200 movs r2, #0 - 80016b2: 621a str r2, [r3, #32] + 8001702: 4b29 ldr r3, [pc, #164] @ (80017a8 ) + 8001704: 2200 movs r2, #0 + 8001706: 621a str r2, [r3, #32] hdma_uart5_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 80016b4: 4b27 ldr r3, [pc, #156] @ (8001754 ) - 80016b6: 2200 movs r2, #0 - 80016b8: 625a str r2, [r3, #36] @ 0x24 + 8001708: 4b27 ldr r3, [pc, #156] @ (80017a8 ) + 800170a: 2200 movs r2, #0 + 800170c: 625a str r2, [r3, #36] @ 0x24 if (HAL_DMA_Init(&hdma_uart5_rx) != HAL_OK) - 80016ba: 4826 ldr r0, [pc, #152] @ (8001754 ) - 80016bc: f000 fb6e bl 8001d9c - 80016c0: 4603 mov r3, r0 - 80016c2: 2b00 cmp r3, #0 - 80016c4: d001 beq.n 80016ca + 800170e: 4826 ldr r0, [pc, #152] @ (80017a8 ) + 8001710: f000 fb6e bl 8001df0 + 8001714: 4603 mov r3, r0 + 8001716: 2b00 cmp r3, #0 + 8001718: d001 beq.n 800171e Error_Handler(); - 80016c6: f7ff fbef bl 8000ea8 + 800171a: f7ff fbef bl 8000efc __HAL_LINKDMA(uartHandle,hdmarx,hdma_uart5_rx); - 80016ca: 687b ldr r3, [r7, #4] - 80016cc: 4a21 ldr r2, [pc, #132] @ (8001754 ) - 80016ce: 63da str r2, [r3, #60] @ 0x3c - 80016d0: 4a20 ldr r2, [pc, #128] @ (8001754 ) - 80016d2: 687b ldr r3, [r7, #4] - 80016d4: 6393 str r3, [r2, #56] @ 0x38 - hdma_uart5_tx.Instance = DMA1_Stream7; - 80016d6: 4b21 ldr r3, [pc, #132] @ (800175c ) - 80016d8: 4a21 ldr r2, [pc, #132] @ (8001760 ) - 80016da: 601a str r2, [r3, #0] - hdma_uart5_tx.Init.Channel = DMA_CHANNEL_4; - 80016dc: 4b1f ldr r3, [pc, #124] @ (800175c ) - 80016de: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 80016e2: 605a str r2, [r3, #4] - hdma_uart5_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; - 80016e4: 4b1d ldr r3, [pc, #116] @ (800175c ) - 80016e6: 2240 movs r2, #64 @ 0x40 - 80016e8: 609a str r2, [r3, #8] - hdma_uart5_tx.Init.PeriphInc = DMA_PINC_DISABLE; - 80016ea: 4b1c ldr r3, [pc, #112] @ (800175c ) - 80016ec: 2200 movs r2, #0 - 80016ee: 60da str r2, [r3, #12] - hdma_uart5_tx.Init.MemInc = DMA_MINC_ENABLE; - 80016f0: 4b1a ldr r3, [pc, #104] @ (800175c ) - 80016f2: f44f 6280 mov.w r2, #1024 @ 0x400 - 80016f6: 611a str r2, [r3, #16] - hdma_uart5_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 80016f8: 4b18 ldr r3, [pc, #96] @ (800175c ) - 80016fa: 2200 movs r2, #0 - 80016fc: 615a str r2, [r3, #20] - hdma_uart5_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 80016fe: 4b17 ldr r3, [pc, #92] @ (800175c ) - 8001700: 2200 movs r2, #0 - 8001702: 619a str r2, [r3, #24] - hdma_uart5_tx.Init.Mode = DMA_NORMAL; - 8001704: 4b15 ldr r3, [pc, #84] @ (800175c ) - 8001706: 2200 movs r2, #0 - 8001708: 61da str r2, [r3, #28] - hdma_uart5_tx.Init.Priority = DMA_PRIORITY_LOW; - 800170a: 4b14 ldr r3, [pc, #80] @ (800175c ) - 800170c: 2200 movs r2, #0 - 800170e: 621a str r2, [r3, #32] - hdma_uart5_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001710: 4b12 ldr r3, [pc, #72] @ (800175c ) - 8001712: 2200 movs r2, #0 - 8001714: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_uart5_tx) != HAL_OK) - 8001716: 4811 ldr r0, [pc, #68] @ (800175c ) - 8001718: f000 fb40 bl 8001d9c - 800171c: 4603 mov r3, r0 - 800171e: 2b00 cmp r3, #0 - 8001720: d001 beq.n 8001726 - Error_Handler(); - 8001722: f7ff fbc1 bl 8000ea8 - __HAL_LINKDMA(uartHandle,hdmatx,hdma_uart5_tx); + 800171e: 687b ldr r3, [r7, #4] + 8001720: 4a21 ldr r2, [pc, #132] @ (80017a8 ) + 8001722: 63da str r2, [r3, #60] @ 0x3c + 8001724: 4a20 ldr r2, [pc, #128] @ (80017a8 ) 8001726: 687b ldr r3, [r7, #4] - 8001728: 4a0c ldr r2, [pc, #48] @ (800175c ) - 800172a: 639a str r2, [r3, #56] @ 0x38 - 800172c: 4a0b ldr r2, [pc, #44] @ (800175c ) - 800172e: 687b ldr r3, [r7, #4] - 8001730: 6393 str r3, [r2, #56] @ 0x38 + 8001728: 6393 str r3, [r2, #56] @ 0x38 + hdma_uart5_tx.Instance = DMA1_Stream7; + 800172a: 4b21 ldr r3, [pc, #132] @ (80017b0 ) + 800172c: 4a21 ldr r2, [pc, #132] @ (80017b4 ) + 800172e: 601a str r2, [r3, #0] + hdma_uart5_tx.Init.Channel = DMA_CHANNEL_4; + 8001730: 4b1f ldr r3, [pc, #124] @ (80017b0 ) + 8001732: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001736: 605a str r2, [r3, #4] + hdma_uart5_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; + 8001738: 4b1d ldr r3, [pc, #116] @ (80017b0 ) + 800173a: 2240 movs r2, #64 @ 0x40 + 800173c: 609a str r2, [r3, #8] + hdma_uart5_tx.Init.PeriphInc = DMA_PINC_DISABLE; + 800173e: 4b1c ldr r3, [pc, #112] @ (80017b0 ) + 8001740: 2200 movs r2, #0 + 8001742: 60da str r2, [r3, #12] + hdma_uart5_tx.Init.MemInc = DMA_MINC_ENABLE; + 8001744: 4b1a ldr r3, [pc, #104] @ (80017b0 ) + 8001746: f44f 6280 mov.w r2, #1024 @ 0x400 + 800174a: 611a str r2, [r3, #16] + hdma_uart5_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; + 800174c: 4b18 ldr r3, [pc, #96] @ (80017b0 ) + 800174e: 2200 movs r2, #0 + 8001750: 615a str r2, [r3, #20] + hdma_uart5_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; + 8001752: 4b17 ldr r3, [pc, #92] @ (80017b0 ) + 8001754: 2200 movs r2, #0 + 8001756: 619a str r2, [r3, #24] + hdma_uart5_tx.Init.Mode = DMA_NORMAL; + 8001758: 4b15 ldr r3, [pc, #84] @ (80017b0 ) + 800175a: 2200 movs r2, #0 + 800175c: 61da str r2, [r3, #28] + hdma_uart5_tx.Init.Priority = DMA_PRIORITY_LOW; + 800175e: 4b14 ldr r3, [pc, #80] @ (80017b0 ) + 8001760: 2200 movs r2, #0 + 8001762: 621a str r2, [r3, #32] + hdma_uart5_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; + 8001764: 4b12 ldr r3, [pc, #72] @ (80017b0 ) + 8001766: 2200 movs r2, #0 + 8001768: 625a str r2, [r3, #36] @ 0x24 + if (HAL_DMA_Init(&hdma_uart5_tx) != HAL_OK) + 800176a: 4811 ldr r0, [pc, #68] @ (80017b0 ) + 800176c: f000 fb40 bl 8001df0 + 8001770: 4603 mov r3, r0 + 8001772: 2b00 cmp r3, #0 + 8001774: d001 beq.n 800177a + Error_Handler(); + 8001776: f7ff fbc1 bl 8000efc + __HAL_LINKDMA(uartHandle,hdmatx,hdma_uart5_tx); + 800177a: 687b ldr r3, [r7, #4] + 800177c: 4a0c ldr r2, [pc, #48] @ (80017b0 ) + 800177e: 639a str r2, [r3, #56] @ 0x38 + 8001780: 4a0b ldr r2, [pc, #44] @ (80017b0 ) + 8001782: 687b ldr r3, [r7, #4] + 8001784: 6393 str r3, [r2, #56] @ 0x38 HAL_NVIC_SetPriority(UART5_IRQn, 5, 0); - 8001732: 2200 movs r2, #0 - 8001734: 2105 movs r1, #5 - 8001736: 2035 movs r0, #53 @ 0x35 - 8001738: f000 faf9 bl 8001d2e + 8001786: 2200 movs r2, #0 + 8001788: 2105 movs r1, #5 + 800178a: 2035 movs r0, #53 @ 0x35 + 800178c: f000 faf9 bl 8001d82 HAL_NVIC_EnableIRQ(UART5_IRQn); - 800173c: 2035 movs r0, #53 @ 0x35 - 800173e: f000 fb12 bl 8001d66 + 8001790: 2035 movs r0, #53 @ 0x35 + 8001792: f000 fb12 bl 8001dba } - 8001742: e13d b.n 80019c0 - 8001744: 40005000 .word 0x40005000 - 8001748: 40023800 .word 0x40023800 - 800174c: 40020800 .word 0x40020800 - 8001750: 40020c00 .word 0x40020c00 - 8001754: 200004ec .word 0x200004ec - 8001758: 40026010 .word 0x40026010 - 800175c: 2000054c .word 0x2000054c - 8001760: 400260b8 .word 0x400260b8 + 8001796: e13d b.n 8001a14 + 8001798: 40005000 .word 0x40005000 + 800179c: 40023800 .word 0x40023800 + 80017a0: 40020800 .word 0x40020800 + 80017a4: 40020c00 .word 0x40020c00 + 80017a8: 200004f0 .word 0x200004f0 + 80017ac: 40026010 .word 0x40026010 + 80017b0: 20000550 .word 0x20000550 + 80017b4: 400260b8 .word 0x400260b8 else if(uartHandle->Instance==USART1) - 8001764: 687b ldr r3, [r7, #4] - 8001766: 681b ldr r3, [r3, #0] - 8001768: 4a97 ldr r2, [pc, #604] @ (80019c8 ) - 800176a: 4293 cmp r3, r2 - 800176c: f040 8092 bne.w 8001894 + 80017b8: 687b ldr r3, [r7, #4] + 80017ba: 681b ldr r3, [r3, #0] + 80017bc: 4a97 ldr r2, [pc, #604] @ (8001a1c ) + 80017be: 4293 cmp r3, r2 + 80017c0: f040 8092 bne.w 80018e8 __HAL_RCC_USART1_CLK_ENABLE(); - 8001770: 2300 movs r3, #0 - 8001772: 617b str r3, [r7, #20] - 8001774: 4b95 ldr r3, [pc, #596] @ (80019cc ) - 8001776: 6c5b ldr r3, [r3, #68] @ 0x44 - 8001778: 4a94 ldr r2, [pc, #592] @ (80019cc ) - 800177a: f043 0310 orr.w r3, r3, #16 - 800177e: 6453 str r3, [r2, #68] @ 0x44 - 8001780: 4b92 ldr r3, [pc, #584] @ (80019cc ) - 8001782: 6c5b ldr r3, [r3, #68] @ 0x44 - 8001784: f003 0310 and.w r3, r3, #16 - 8001788: 617b str r3, [r7, #20] - 800178a: 697b ldr r3, [r7, #20] + 80017c4: 2300 movs r3, #0 + 80017c6: 617b str r3, [r7, #20] + 80017c8: 4b95 ldr r3, [pc, #596] @ (8001a20 ) + 80017ca: 6c5b ldr r3, [r3, #68] @ 0x44 + 80017cc: 4a94 ldr r2, [pc, #592] @ (8001a20 ) + 80017ce: f043 0310 orr.w r3, r3, #16 + 80017d2: 6453 str r3, [r2, #68] @ 0x44 + 80017d4: 4b92 ldr r3, [pc, #584] @ (8001a20 ) + 80017d6: 6c5b ldr r3, [r3, #68] @ 0x44 + 80017d8: f003 0310 and.w r3, r3, #16 + 80017dc: 617b str r3, [r7, #20] + 80017de: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOA_CLK_ENABLE(); - 800178c: 2300 movs r3, #0 - 800178e: 613b str r3, [r7, #16] - 8001790: 4b8e ldr r3, [pc, #568] @ (80019cc ) - 8001792: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001794: 4a8d ldr r2, [pc, #564] @ (80019cc ) - 8001796: f043 0301 orr.w r3, r3, #1 - 800179a: 6313 str r3, [r2, #48] @ 0x30 - 800179c: 4b8b ldr r3, [pc, #556] @ (80019cc ) - 800179e: 6b1b ldr r3, [r3, #48] @ 0x30 - 80017a0: f003 0301 and.w r3, r3, #1 - 80017a4: 613b str r3, [r7, #16] - 80017a6: 693b ldr r3, [r7, #16] + 80017e0: 2300 movs r3, #0 + 80017e2: 613b str r3, [r7, #16] + 80017e4: 4b8e ldr r3, [pc, #568] @ (8001a20 ) + 80017e6: 6b1b ldr r3, [r3, #48] @ 0x30 + 80017e8: 4a8d ldr r2, [pc, #564] @ (8001a20 ) + 80017ea: f043 0301 orr.w r3, r3, #1 + 80017ee: 6313 str r3, [r2, #48] @ 0x30 + 80017f0: 4b8b ldr r3, [pc, #556] @ (8001a20 ) + 80017f2: 6b1b ldr r3, [r3, #48] @ 0x30 + 80017f4: f003 0301 and.w r3, r3, #1 + 80017f8: 613b str r3, [r7, #16] + 80017fa: 693b ldr r3, [r7, #16] GPIO_InitStruct.Pin = GPIO_PIN_9|GPIO_PIN_10; - 80017a8: f44f 63c0 mov.w r3, #1536 @ 0x600 - 80017ac: 62fb str r3, [r7, #44] @ 0x2c + 80017fc: f44f 63c0 mov.w r3, #1536 @ 0x600 + 8001800: 62fb str r3, [r7, #44] @ 0x2c GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80017ae: 2302 movs r3, #2 - 80017b0: 633b str r3, [r7, #48] @ 0x30 + 8001802: 2302 movs r3, #2 + 8001804: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Pull = GPIO_NOPULL; - 80017b2: 2300 movs r3, #0 - 80017b4: 637b str r3, [r7, #52] @ 0x34 + 8001806: 2300 movs r3, #0 + 8001808: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 80017b6: 2303 movs r3, #3 - 80017b8: 63bb str r3, [r7, #56] @ 0x38 + 800180a: 2303 movs r3, #3 + 800180c: 63bb str r3, [r7, #56] @ 0x38 GPIO_InitStruct.Alternate = GPIO_AF7_USART1; - 80017ba: 2307 movs r3, #7 - 80017bc: 63fb str r3, [r7, #60] @ 0x3c + 800180e: 2307 movs r3, #7 + 8001810: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 80017be: f107 032c add.w r3, r7, #44 @ 0x2c - 80017c2: 4619 mov r1, r3 - 80017c4: 4882 ldr r0, [pc, #520] @ (80019d0 ) - 80017c6: f000 feeb bl 80025a0 + 8001812: f107 032c add.w r3, r7, #44 @ 0x2c + 8001816: 4619 mov r1, r3 + 8001818: 4882 ldr r0, [pc, #520] @ (8001a24 ) + 800181a: f000 feeb bl 80025f4 hdma_usart1_rx.Instance = DMA2_Stream2; - 80017ca: 4b82 ldr r3, [pc, #520] @ (80019d4 ) - 80017cc: 4a82 ldr r2, [pc, #520] @ (80019d8 ) - 80017ce: 601a str r2, [r3, #0] + 800181e: 4b82 ldr r3, [pc, #520] @ (8001a28 ) + 8001820: 4a82 ldr r2, [pc, #520] @ (8001a2c ) + 8001822: 601a str r2, [r3, #0] hdma_usart1_rx.Init.Channel = DMA_CHANNEL_4; - 80017d0: 4b80 ldr r3, [pc, #512] @ (80019d4 ) - 80017d2: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 80017d6: 605a str r2, [r3, #4] + 8001824: 4b80 ldr r3, [pc, #512] @ (8001a28 ) + 8001826: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 800182a: 605a str r2, [r3, #4] hdma_usart1_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - 80017d8: 4b7e ldr r3, [pc, #504] @ (80019d4 ) - 80017da: 2200 movs r2, #0 - 80017dc: 609a str r2, [r3, #8] + 800182c: 4b7e ldr r3, [pc, #504] @ (8001a28 ) + 800182e: 2200 movs r2, #0 + 8001830: 609a str r2, [r3, #8] hdma_usart1_rx.Init.PeriphInc = DMA_PINC_DISABLE; - 80017de: 4b7d ldr r3, [pc, #500] @ (80019d4 ) - 80017e0: 2200 movs r2, #0 - 80017e2: 60da str r2, [r3, #12] + 8001832: 4b7d ldr r3, [pc, #500] @ (8001a28 ) + 8001834: 2200 movs r2, #0 + 8001836: 60da str r2, [r3, #12] hdma_usart1_rx.Init.MemInc = DMA_MINC_ENABLE; - 80017e4: 4b7b ldr r3, [pc, #492] @ (80019d4 ) - 80017e6: f44f 6280 mov.w r2, #1024 @ 0x400 - 80017ea: 611a str r2, [r3, #16] + 8001838: 4b7b ldr r3, [pc, #492] @ (8001a28 ) + 800183a: f44f 6280 mov.w r2, #1024 @ 0x400 + 800183e: 611a str r2, [r3, #16] hdma_usart1_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 80017ec: 4b79 ldr r3, [pc, #484] @ (80019d4 ) - 80017ee: 2200 movs r2, #0 - 80017f0: 615a str r2, [r3, #20] + 8001840: 4b79 ldr r3, [pc, #484] @ (8001a28 ) + 8001842: 2200 movs r2, #0 + 8001844: 615a str r2, [r3, #20] hdma_usart1_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 80017f2: 4b78 ldr r3, [pc, #480] @ (80019d4 ) - 80017f4: 2200 movs r2, #0 - 80017f6: 619a str r2, [r3, #24] + 8001846: 4b78 ldr r3, [pc, #480] @ (8001a28 ) + 8001848: 2200 movs r2, #0 + 800184a: 619a str r2, [r3, #24] hdma_usart1_rx.Init.Mode = DMA_NORMAL; - 80017f8: 4b76 ldr r3, [pc, #472] @ (80019d4 ) - 80017fa: 2200 movs r2, #0 - 80017fc: 61da str r2, [r3, #28] + 800184c: 4b76 ldr r3, [pc, #472] @ (8001a28 ) + 800184e: 2200 movs r2, #0 + 8001850: 61da str r2, [r3, #28] hdma_usart1_rx.Init.Priority = DMA_PRIORITY_LOW; - 80017fe: 4b75 ldr r3, [pc, #468] @ (80019d4 ) - 8001800: 2200 movs r2, #0 - 8001802: 621a str r2, [r3, #32] + 8001852: 4b75 ldr r3, [pc, #468] @ (8001a28 ) + 8001854: 2200 movs r2, #0 + 8001856: 621a str r2, [r3, #32] hdma_usart1_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001804: 4b73 ldr r3, [pc, #460] @ (80019d4 ) - 8001806: 2200 movs r2, #0 - 8001808: 625a str r2, [r3, #36] @ 0x24 + 8001858: 4b73 ldr r3, [pc, #460] @ (8001a28 ) + 800185a: 2200 movs r2, #0 + 800185c: 625a str r2, [r3, #36] @ 0x24 if (HAL_DMA_Init(&hdma_usart1_rx) != HAL_OK) - 800180a: 4872 ldr r0, [pc, #456] @ (80019d4 ) - 800180c: f000 fac6 bl 8001d9c - 8001810: 4603 mov r3, r0 - 8001812: 2b00 cmp r3, #0 - 8001814: d001 beq.n 800181a + 800185e: 4872 ldr r0, [pc, #456] @ (8001a28 ) + 8001860: f000 fac6 bl 8001df0 + 8001864: 4603 mov r3, r0 + 8001866: 2b00 cmp r3, #0 + 8001868: d001 beq.n 800186e Error_Handler(); - 8001816: f7ff fb47 bl 8000ea8 + 800186a: f7ff fb47 bl 8000efc __HAL_LINKDMA(uartHandle,hdmarx,hdma_usart1_rx); - 800181a: 687b ldr r3, [r7, #4] - 800181c: 4a6d ldr r2, [pc, #436] @ (80019d4 ) - 800181e: 63da str r2, [r3, #60] @ 0x3c - 8001820: 4a6c ldr r2, [pc, #432] @ (80019d4 ) - 8001822: 687b ldr r3, [r7, #4] - 8001824: 6393 str r3, [r2, #56] @ 0x38 - hdma_usart1_tx.Instance = DMA2_Stream7; - 8001826: 4b6d ldr r3, [pc, #436] @ (80019dc ) - 8001828: 4a6d ldr r2, [pc, #436] @ (80019e0 ) - 800182a: 601a str r2, [r3, #0] - hdma_usart1_tx.Init.Channel = DMA_CHANNEL_4; - 800182c: 4b6b ldr r3, [pc, #428] @ (80019dc ) - 800182e: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001832: 605a str r2, [r3, #4] - hdma_usart1_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; - 8001834: 4b69 ldr r3, [pc, #420] @ (80019dc ) - 8001836: 2240 movs r2, #64 @ 0x40 - 8001838: 609a str r2, [r3, #8] - hdma_usart1_tx.Init.PeriphInc = DMA_PINC_DISABLE; - 800183a: 4b68 ldr r3, [pc, #416] @ (80019dc ) - 800183c: 2200 movs r2, #0 - 800183e: 60da str r2, [r3, #12] - hdma_usart1_tx.Init.MemInc = DMA_MINC_ENABLE; - 8001840: 4b66 ldr r3, [pc, #408] @ (80019dc ) - 8001842: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001846: 611a str r2, [r3, #16] - hdma_usart1_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001848: 4b64 ldr r3, [pc, #400] @ (80019dc ) - 800184a: 2200 movs r2, #0 - 800184c: 615a str r2, [r3, #20] - hdma_usart1_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 800184e: 4b63 ldr r3, [pc, #396] @ (80019dc ) - 8001850: 2200 movs r2, #0 - 8001852: 619a str r2, [r3, #24] - hdma_usart1_tx.Init.Mode = DMA_NORMAL; - 8001854: 4b61 ldr r3, [pc, #388] @ (80019dc ) - 8001856: 2200 movs r2, #0 - 8001858: 61da str r2, [r3, #28] - hdma_usart1_tx.Init.Priority = DMA_PRIORITY_LOW; - 800185a: 4b60 ldr r3, [pc, #384] @ (80019dc ) - 800185c: 2200 movs r2, #0 - 800185e: 621a str r2, [r3, #32] - hdma_usart1_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001860: 4b5e ldr r3, [pc, #376] @ (80019dc ) - 8001862: 2200 movs r2, #0 - 8001864: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_usart1_tx) != HAL_OK) - 8001866: 485d ldr r0, [pc, #372] @ (80019dc ) - 8001868: f000 fa98 bl 8001d9c - 800186c: 4603 mov r3, r0 - 800186e: 2b00 cmp r3, #0 - 8001870: d001 beq.n 8001876 - Error_Handler(); - 8001872: f7ff fb19 bl 8000ea8 - __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart1_tx); + 800186e: 687b ldr r3, [r7, #4] + 8001870: 4a6d ldr r2, [pc, #436] @ (8001a28 ) + 8001872: 63da str r2, [r3, #60] @ 0x3c + 8001874: 4a6c ldr r2, [pc, #432] @ (8001a28 ) 8001876: 687b ldr r3, [r7, #4] - 8001878: 4a58 ldr r2, [pc, #352] @ (80019dc ) - 800187a: 639a str r2, [r3, #56] @ 0x38 - 800187c: 4a57 ldr r2, [pc, #348] @ (80019dc ) - 800187e: 687b ldr r3, [r7, #4] - 8001880: 6393 str r3, [r2, #56] @ 0x38 + 8001878: 6393 str r3, [r2, #56] @ 0x38 + hdma_usart1_tx.Instance = DMA2_Stream7; + 800187a: 4b6d ldr r3, [pc, #436] @ (8001a30 ) + 800187c: 4a6d ldr r2, [pc, #436] @ (8001a34 ) + 800187e: 601a str r2, [r3, #0] + hdma_usart1_tx.Init.Channel = DMA_CHANNEL_4; + 8001880: 4b6b ldr r3, [pc, #428] @ (8001a30 ) + 8001882: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001886: 605a str r2, [r3, #4] + hdma_usart1_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; + 8001888: 4b69 ldr r3, [pc, #420] @ (8001a30 ) + 800188a: 2240 movs r2, #64 @ 0x40 + 800188c: 609a str r2, [r3, #8] + hdma_usart1_tx.Init.PeriphInc = DMA_PINC_DISABLE; + 800188e: 4b68 ldr r3, [pc, #416] @ (8001a30 ) + 8001890: 2200 movs r2, #0 + 8001892: 60da str r2, [r3, #12] + hdma_usart1_tx.Init.MemInc = DMA_MINC_ENABLE; + 8001894: 4b66 ldr r3, [pc, #408] @ (8001a30 ) + 8001896: f44f 6280 mov.w r2, #1024 @ 0x400 + 800189a: 611a str r2, [r3, #16] + hdma_usart1_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; + 800189c: 4b64 ldr r3, [pc, #400] @ (8001a30 ) + 800189e: 2200 movs r2, #0 + 80018a0: 615a str r2, [r3, #20] + hdma_usart1_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; + 80018a2: 4b63 ldr r3, [pc, #396] @ (8001a30 ) + 80018a4: 2200 movs r2, #0 + 80018a6: 619a str r2, [r3, #24] + hdma_usart1_tx.Init.Mode = DMA_NORMAL; + 80018a8: 4b61 ldr r3, [pc, #388] @ (8001a30 ) + 80018aa: 2200 movs r2, #0 + 80018ac: 61da str r2, [r3, #28] + hdma_usart1_tx.Init.Priority = DMA_PRIORITY_LOW; + 80018ae: 4b60 ldr r3, [pc, #384] @ (8001a30 ) + 80018b0: 2200 movs r2, #0 + 80018b2: 621a str r2, [r3, #32] + hdma_usart1_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; + 80018b4: 4b5e ldr r3, [pc, #376] @ (8001a30 ) + 80018b6: 2200 movs r2, #0 + 80018b8: 625a str r2, [r3, #36] @ 0x24 + if (HAL_DMA_Init(&hdma_usart1_tx) != HAL_OK) + 80018ba: 485d ldr r0, [pc, #372] @ (8001a30 ) + 80018bc: f000 fa98 bl 8001df0 + 80018c0: 4603 mov r3, r0 + 80018c2: 2b00 cmp r3, #0 + 80018c4: d001 beq.n 80018ca + Error_Handler(); + 80018c6: f7ff fb19 bl 8000efc + __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart1_tx); + 80018ca: 687b ldr r3, [r7, #4] + 80018cc: 4a58 ldr r2, [pc, #352] @ (8001a30 ) + 80018ce: 639a str r2, [r3, #56] @ 0x38 + 80018d0: 4a57 ldr r2, [pc, #348] @ (8001a30 ) + 80018d2: 687b ldr r3, [r7, #4] + 80018d4: 6393 str r3, [r2, #56] @ 0x38 HAL_NVIC_SetPriority(USART1_IRQn, 5, 0); - 8001882: 2200 movs r2, #0 - 8001884: 2105 movs r1, #5 - 8001886: 2025 movs r0, #37 @ 0x25 - 8001888: f000 fa51 bl 8001d2e + 80018d6: 2200 movs r2, #0 + 80018d8: 2105 movs r1, #5 + 80018da: 2025 movs r0, #37 @ 0x25 + 80018dc: f000 fa51 bl 8001d82 HAL_NVIC_EnableIRQ(USART1_IRQn); - 800188c: 2025 movs r0, #37 @ 0x25 - 800188e: f000 fa6a bl 8001d66 + 80018e0: 2025 movs r0, #37 @ 0x25 + 80018e2: f000 fa6a bl 8001dba } - 8001892: e095 b.n 80019c0 + 80018e6: e095 b.n 8001a14 else if(uartHandle->Instance==USART2) - 8001894: 687b ldr r3, [r7, #4] - 8001896: 681b ldr r3, [r3, #0] - 8001898: 4a52 ldr r2, [pc, #328] @ (80019e4 ) - 800189a: 4293 cmp r3, r2 - 800189c: f040 8090 bne.w 80019c0 + 80018e8: 687b ldr r3, [r7, #4] + 80018ea: 681b ldr r3, [r3, #0] + 80018ec: 4a52 ldr r2, [pc, #328] @ (8001a38 ) + 80018ee: 4293 cmp r3, r2 + 80018f0: f040 8090 bne.w 8001a14 __HAL_RCC_USART2_CLK_ENABLE(); - 80018a0: 2300 movs r3, #0 - 80018a2: 60fb str r3, [r7, #12] - 80018a4: 4b49 ldr r3, [pc, #292] @ (80019cc ) - 80018a6: 6c1b ldr r3, [r3, #64] @ 0x40 - 80018a8: 4a48 ldr r2, [pc, #288] @ (80019cc ) - 80018aa: f443 3300 orr.w r3, r3, #131072 @ 0x20000 - 80018ae: 6413 str r3, [r2, #64] @ 0x40 - 80018b0: 4b46 ldr r3, [pc, #280] @ (80019cc ) - 80018b2: 6c1b ldr r3, [r3, #64] @ 0x40 - 80018b4: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 80018b8: 60fb str r3, [r7, #12] - 80018ba: 68fb ldr r3, [r7, #12] + 80018f4: 2300 movs r3, #0 + 80018f6: 60fb str r3, [r7, #12] + 80018f8: 4b49 ldr r3, [pc, #292] @ (8001a20 ) + 80018fa: 6c1b ldr r3, [r3, #64] @ 0x40 + 80018fc: 4a48 ldr r2, [pc, #288] @ (8001a20 ) + 80018fe: f443 3300 orr.w r3, r3, #131072 @ 0x20000 + 8001902: 6413 str r3, [r2, #64] @ 0x40 + 8001904: 4b46 ldr r3, [pc, #280] @ (8001a20 ) + 8001906: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001908: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 800190c: 60fb str r3, [r7, #12] + 800190e: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOA_CLK_ENABLE(); - 80018bc: 2300 movs r3, #0 - 80018be: 60bb str r3, [r7, #8] - 80018c0: 4b42 ldr r3, [pc, #264] @ (80019cc ) - 80018c2: 6b1b ldr r3, [r3, #48] @ 0x30 - 80018c4: 4a41 ldr r2, [pc, #260] @ (80019cc ) - 80018c6: f043 0301 orr.w r3, r3, #1 - 80018ca: 6313 str r3, [r2, #48] @ 0x30 - 80018cc: 4b3f ldr r3, [pc, #252] @ (80019cc ) - 80018ce: 6b1b ldr r3, [r3, #48] @ 0x30 - 80018d0: f003 0301 and.w r3, r3, #1 - 80018d4: 60bb str r3, [r7, #8] - 80018d6: 68bb ldr r3, [r7, #8] + 8001910: 2300 movs r3, #0 + 8001912: 60bb str r3, [r7, #8] + 8001914: 4b42 ldr r3, [pc, #264] @ (8001a20 ) + 8001916: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001918: 4a41 ldr r2, [pc, #260] @ (8001a20 ) + 800191a: f043 0301 orr.w r3, r3, #1 + 800191e: 6313 str r3, [r2, #48] @ 0x30 + 8001920: 4b3f ldr r3, [pc, #252] @ (8001a20 ) + 8001922: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001924: f003 0301 and.w r3, r3, #1 + 8001928: 60bb str r3, [r7, #8] + 800192a: 68bb ldr r3, [r7, #8] GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3; - 80018d8: 230c movs r3, #12 - 80018da: 62fb str r3, [r7, #44] @ 0x2c + 800192c: 230c movs r3, #12 + 800192e: 62fb str r3, [r7, #44] @ 0x2c GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80018dc: 2302 movs r3, #2 - 80018de: 633b str r3, [r7, #48] @ 0x30 + 8001930: 2302 movs r3, #2 + 8001932: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Pull = GPIO_NOPULL; - 80018e0: 2300 movs r3, #0 - 80018e2: 637b str r3, [r7, #52] @ 0x34 + 8001934: 2300 movs r3, #0 + 8001936: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 80018e4: 2303 movs r3, #3 - 80018e6: 63bb str r3, [r7, #56] @ 0x38 + 8001938: 2303 movs r3, #3 + 800193a: 63bb str r3, [r7, #56] @ 0x38 GPIO_InitStruct.Alternate = GPIO_AF7_USART2; - 80018e8: 2307 movs r3, #7 - 80018ea: 63fb str r3, [r7, #60] @ 0x3c + 800193c: 2307 movs r3, #7 + 800193e: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 80018ec: f107 032c add.w r3, r7, #44 @ 0x2c - 80018f0: 4619 mov r1, r3 - 80018f2: 4837 ldr r0, [pc, #220] @ (80019d0 ) - 80018f4: f000 fe54 bl 80025a0 + 8001940: f107 032c add.w r3, r7, #44 @ 0x2c + 8001944: 4619 mov r1, r3 + 8001946: 4837 ldr r0, [pc, #220] @ (8001a24 ) + 8001948: f000 fe54 bl 80025f4 hdma_usart2_rx.Instance = DMA1_Stream5; - 80018f8: 4b3b ldr r3, [pc, #236] @ (80019e8 ) - 80018fa: 4a3c ldr r2, [pc, #240] @ (80019ec ) - 80018fc: 601a str r2, [r3, #0] + 800194c: 4b3b ldr r3, [pc, #236] @ (8001a3c ) + 800194e: 4a3c ldr r2, [pc, #240] @ (8001a40 ) + 8001950: 601a str r2, [r3, #0] hdma_usart2_rx.Init.Channel = DMA_CHANNEL_4; - 80018fe: 4b3a ldr r3, [pc, #232] @ (80019e8 ) - 8001900: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001904: 605a str r2, [r3, #4] + 8001952: 4b3a ldr r3, [pc, #232] @ (8001a3c ) + 8001954: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001958: 605a str r2, [r3, #4] hdma_usart2_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - 8001906: 4b38 ldr r3, [pc, #224] @ (80019e8 ) - 8001908: 2200 movs r2, #0 - 800190a: 609a str r2, [r3, #8] + 800195a: 4b38 ldr r3, [pc, #224] @ (8001a3c ) + 800195c: 2200 movs r2, #0 + 800195e: 609a str r2, [r3, #8] hdma_usart2_rx.Init.PeriphInc = DMA_PINC_DISABLE; - 800190c: 4b36 ldr r3, [pc, #216] @ (80019e8 ) - 800190e: 2200 movs r2, #0 - 8001910: 60da str r2, [r3, #12] + 8001960: 4b36 ldr r3, [pc, #216] @ (8001a3c ) + 8001962: 2200 movs r2, #0 + 8001964: 60da str r2, [r3, #12] hdma_usart2_rx.Init.MemInc = DMA_MINC_ENABLE; - 8001912: 4b35 ldr r3, [pc, #212] @ (80019e8 ) - 8001914: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001918: 611a str r2, [r3, #16] + 8001966: 4b35 ldr r3, [pc, #212] @ (8001a3c ) + 8001968: f44f 6280 mov.w r2, #1024 @ 0x400 + 800196c: 611a str r2, [r3, #16] hdma_usart2_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 800191a: 4b33 ldr r3, [pc, #204] @ (80019e8 ) - 800191c: 2200 movs r2, #0 - 800191e: 615a str r2, [r3, #20] + 800196e: 4b33 ldr r3, [pc, #204] @ (8001a3c ) + 8001970: 2200 movs r2, #0 + 8001972: 615a str r2, [r3, #20] hdma_usart2_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001920: 4b31 ldr r3, [pc, #196] @ (80019e8 ) - 8001922: 2200 movs r2, #0 - 8001924: 619a str r2, [r3, #24] + 8001974: 4b31 ldr r3, [pc, #196] @ (8001a3c ) + 8001976: 2200 movs r2, #0 + 8001978: 619a str r2, [r3, #24] hdma_usart2_rx.Init.Mode = DMA_NORMAL; - 8001926: 4b30 ldr r3, [pc, #192] @ (80019e8 ) - 8001928: 2200 movs r2, #0 - 800192a: 61da str r2, [r3, #28] + 800197a: 4b30 ldr r3, [pc, #192] @ (8001a3c ) + 800197c: 2200 movs r2, #0 + 800197e: 61da str r2, [r3, #28] hdma_usart2_rx.Init.Priority = DMA_PRIORITY_LOW; - 800192c: 4b2e ldr r3, [pc, #184] @ (80019e8 ) - 800192e: 2200 movs r2, #0 - 8001930: 621a str r2, [r3, #32] + 8001980: 4b2e ldr r3, [pc, #184] @ (8001a3c ) + 8001982: 2200 movs r2, #0 + 8001984: 621a str r2, [r3, #32] hdma_usart2_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001932: 4b2d ldr r3, [pc, #180] @ (80019e8 ) - 8001934: 2200 movs r2, #0 - 8001936: 625a str r2, [r3, #36] @ 0x24 + 8001986: 4b2d ldr r3, [pc, #180] @ (8001a3c ) + 8001988: 2200 movs r2, #0 + 800198a: 625a str r2, [r3, #36] @ 0x24 if (HAL_DMA_Init(&hdma_usart2_rx) != HAL_OK) - 8001938: 482b ldr r0, [pc, #172] @ (80019e8 ) - 800193a: f000 fa2f bl 8001d9c - 800193e: 4603 mov r3, r0 - 8001940: 2b00 cmp r3, #0 - 8001942: d001 beq.n 8001948 + 800198c: 482b ldr r0, [pc, #172] @ (8001a3c ) + 800198e: f000 fa2f bl 8001df0 + 8001992: 4603 mov r3, r0 + 8001994: 2b00 cmp r3, #0 + 8001996: d001 beq.n 800199c Error_Handler(); - 8001944: f7ff fab0 bl 8000ea8 + 8001998: f7ff fab0 bl 8000efc __HAL_LINKDMA(uartHandle,hdmarx,hdma_usart2_rx); - 8001948: 687b ldr r3, [r7, #4] - 800194a: 4a27 ldr r2, [pc, #156] @ (80019e8 ) - 800194c: 63da str r2, [r3, #60] @ 0x3c - 800194e: 4a26 ldr r2, [pc, #152] @ (80019e8 ) - 8001950: 687b ldr r3, [r7, #4] - 8001952: 6393 str r3, [r2, #56] @ 0x38 - hdma_usart2_tx.Instance = DMA1_Stream6; - 8001954: 4b26 ldr r3, [pc, #152] @ (80019f0 ) - 8001956: 4a27 ldr r2, [pc, #156] @ (80019f4 ) - 8001958: 601a str r2, [r3, #0] - hdma_usart2_tx.Init.Channel = DMA_CHANNEL_4; - 800195a: 4b25 ldr r3, [pc, #148] @ (80019f0 ) - 800195c: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001960: 605a str r2, [r3, #4] - hdma_usart2_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; - 8001962: 4b23 ldr r3, [pc, #140] @ (80019f0 ) - 8001964: 2240 movs r2, #64 @ 0x40 - 8001966: 609a str r2, [r3, #8] - hdma_usart2_tx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001968: 4b21 ldr r3, [pc, #132] @ (80019f0 ) - 800196a: 2200 movs r2, #0 - 800196c: 60da str r2, [r3, #12] - hdma_usart2_tx.Init.MemInc = DMA_MINC_ENABLE; - 800196e: 4b20 ldr r3, [pc, #128] @ (80019f0 ) - 8001970: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001974: 611a str r2, [r3, #16] - hdma_usart2_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001976: 4b1e ldr r3, [pc, #120] @ (80019f0 ) - 8001978: 2200 movs r2, #0 - 800197a: 615a str r2, [r3, #20] - hdma_usart2_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 800197c: 4b1c ldr r3, [pc, #112] @ (80019f0 ) - 800197e: 2200 movs r2, #0 - 8001980: 619a str r2, [r3, #24] - hdma_usart2_tx.Init.Mode = DMA_NORMAL; - 8001982: 4b1b ldr r3, [pc, #108] @ (80019f0 ) - 8001984: 2200 movs r2, #0 - 8001986: 61da str r2, [r3, #28] - hdma_usart2_tx.Init.Priority = DMA_PRIORITY_LOW; - 8001988: 4b19 ldr r3, [pc, #100] @ (80019f0 ) - 800198a: 2200 movs r2, #0 - 800198c: 621a str r2, [r3, #32] - hdma_usart2_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 800198e: 4b18 ldr r3, [pc, #96] @ (80019f0 ) - 8001990: 2200 movs r2, #0 - 8001992: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_usart2_tx) != HAL_OK) - 8001994: 4816 ldr r0, [pc, #88] @ (80019f0 ) - 8001996: f000 fa01 bl 8001d9c - 800199a: 4603 mov r3, r0 - 800199c: 2b00 cmp r3, #0 - 800199e: d001 beq.n 80019a4 - Error_Handler(); - 80019a0: f7ff fa82 bl 8000ea8 - __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart2_tx); + 800199c: 687b ldr r3, [r7, #4] + 800199e: 4a27 ldr r2, [pc, #156] @ (8001a3c ) + 80019a0: 63da str r2, [r3, #60] @ 0x3c + 80019a2: 4a26 ldr r2, [pc, #152] @ (8001a3c ) 80019a4: 687b ldr r3, [r7, #4] - 80019a6: 4a12 ldr r2, [pc, #72] @ (80019f0 ) - 80019a8: 639a str r2, [r3, #56] @ 0x38 - 80019aa: 4a11 ldr r2, [pc, #68] @ (80019f0 ) - 80019ac: 687b ldr r3, [r7, #4] - 80019ae: 6393 str r3, [r2, #56] @ 0x38 + 80019a6: 6393 str r3, [r2, #56] @ 0x38 + hdma_usart2_tx.Instance = DMA1_Stream6; + 80019a8: 4b26 ldr r3, [pc, #152] @ (8001a44 ) + 80019aa: 4a27 ldr r2, [pc, #156] @ (8001a48 ) + 80019ac: 601a str r2, [r3, #0] + hdma_usart2_tx.Init.Channel = DMA_CHANNEL_4; + 80019ae: 4b25 ldr r3, [pc, #148] @ (8001a44 ) + 80019b0: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 80019b4: 605a str r2, [r3, #4] + hdma_usart2_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; + 80019b6: 4b23 ldr r3, [pc, #140] @ (8001a44 ) + 80019b8: 2240 movs r2, #64 @ 0x40 + 80019ba: 609a str r2, [r3, #8] + hdma_usart2_tx.Init.PeriphInc = DMA_PINC_DISABLE; + 80019bc: 4b21 ldr r3, [pc, #132] @ (8001a44 ) + 80019be: 2200 movs r2, #0 + 80019c0: 60da str r2, [r3, #12] + hdma_usart2_tx.Init.MemInc = DMA_MINC_ENABLE; + 80019c2: 4b20 ldr r3, [pc, #128] @ (8001a44 ) + 80019c4: f44f 6280 mov.w r2, #1024 @ 0x400 + 80019c8: 611a str r2, [r3, #16] + hdma_usart2_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; + 80019ca: 4b1e ldr r3, [pc, #120] @ (8001a44 ) + 80019cc: 2200 movs r2, #0 + 80019ce: 615a str r2, [r3, #20] + hdma_usart2_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; + 80019d0: 4b1c ldr r3, [pc, #112] @ (8001a44 ) + 80019d2: 2200 movs r2, #0 + 80019d4: 619a str r2, [r3, #24] + hdma_usart2_tx.Init.Mode = DMA_NORMAL; + 80019d6: 4b1b ldr r3, [pc, #108] @ (8001a44 ) + 80019d8: 2200 movs r2, #0 + 80019da: 61da str r2, [r3, #28] + hdma_usart2_tx.Init.Priority = DMA_PRIORITY_LOW; + 80019dc: 4b19 ldr r3, [pc, #100] @ (8001a44 ) + 80019de: 2200 movs r2, #0 + 80019e0: 621a str r2, [r3, #32] + hdma_usart2_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; + 80019e2: 4b18 ldr r3, [pc, #96] @ (8001a44 ) + 80019e4: 2200 movs r2, #0 + 80019e6: 625a str r2, [r3, #36] @ 0x24 + if (HAL_DMA_Init(&hdma_usart2_tx) != HAL_OK) + 80019e8: 4816 ldr r0, [pc, #88] @ (8001a44 ) + 80019ea: f000 fa01 bl 8001df0 + 80019ee: 4603 mov r3, r0 + 80019f0: 2b00 cmp r3, #0 + 80019f2: d001 beq.n 80019f8 + Error_Handler(); + 80019f4: f7ff fa82 bl 8000efc + __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart2_tx); + 80019f8: 687b ldr r3, [r7, #4] + 80019fa: 4a12 ldr r2, [pc, #72] @ (8001a44 ) + 80019fc: 639a str r2, [r3, #56] @ 0x38 + 80019fe: 4a11 ldr r2, [pc, #68] @ (8001a44 ) + 8001a00: 687b ldr r3, [r7, #4] + 8001a02: 6393 str r3, [r2, #56] @ 0x38 HAL_NVIC_SetPriority(USART2_IRQn, 5, 0); - 80019b0: 2200 movs r2, #0 - 80019b2: 2105 movs r1, #5 - 80019b4: 2026 movs r0, #38 @ 0x26 - 80019b6: f000 f9ba bl 8001d2e + 8001a04: 2200 movs r2, #0 + 8001a06: 2105 movs r1, #5 + 8001a08: 2026 movs r0, #38 @ 0x26 + 8001a0a: f000 f9ba bl 8001d82 HAL_NVIC_EnableIRQ(USART2_IRQn); - 80019ba: 2026 movs r0, #38 @ 0x26 - 80019bc: f000 f9d3 bl 8001d66 + 8001a0e: 2026 movs r0, #38 @ 0x26 + 8001a10: f000 f9d3 bl 8001dba } - 80019c0: bf00 nop - 80019c2: 3740 adds r7, #64 @ 0x40 - 80019c4: 46bd mov sp, r7 - 80019c6: bd80 pop {r7, pc} - 80019c8: 40011000 .word 0x40011000 - 80019cc: 40023800 .word 0x40023800 - 80019d0: 40020000 .word 0x40020000 - 80019d4: 200005ac .word 0x200005ac - 80019d8: 40026440 .word 0x40026440 - 80019dc: 2000060c .word 0x2000060c - 80019e0: 400264b8 .word 0x400264b8 - 80019e4: 40004400 .word 0x40004400 - 80019e8: 2000066c .word 0x2000066c - 80019ec: 40026088 .word 0x40026088 - 80019f0: 200006cc .word 0x200006cc - 80019f4: 400260a0 .word 0x400260a0 + 8001a14: bf00 nop + 8001a16: 3740 adds r7, #64 @ 0x40 + 8001a18: 46bd mov sp, r7 + 8001a1a: bd80 pop {r7, pc} + 8001a1c: 40011000 .word 0x40011000 + 8001a20: 40023800 .word 0x40023800 + 8001a24: 40020000 .word 0x40020000 + 8001a28: 200005b0 .word 0x200005b0 + 8001a2c: 40026440 .word 0x40026440 + 8001a30: 20000610 .word 0x20000610 + 8001a34: 400264b8 .word 0x400264b8 + 8001a38: 40004400 .word 0x40004400 + 8001a3c: 20000670 .word 0x20000670 + 8001a40: 40026088 .word 0x40026088 + 8001a44: 200006d0 .word 0x200006d0 + 8001a48: 400260a0 .word 0x400260a0 -080019f8 : +08001a4c : .section .text.Reset_Handler .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: ldr sp, =_estack /* set stack pointer */ - 80019f8: f8df d034 ldr.w sp, [pc, #52] @ 8001a30 + 8001a4c: f8df d034 ldr.w sp, [pc, #52] @ 8001a84 /* Call the clock system initialization function.*/ bl SystemInit - 80019fc: f7ff fb34 bl 8001068 + 8001a50: f7ff fb34 bl 80010bc /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata - 8001a00: 480c ldr r0, [pc, #48] @ (8001a34 ) + 8001a54: 480c ldr r0, [pc, #48] @ (8001a88 ) ldr r1, =_edata - 8001a02: 490d ldr r1, [pc, #52] @ (8001a38 ) + 8001a56: 490d ldr r1, [pc, #52] @ (8001a8c ) ldr r2, =_sidata - 8001a04: 4a0d ldr r2, [pc, #52] @ (8001a3c ) + 8001a58: 4a0d ldr r2, [pc, #52] @ (8001a90 ) movs r3, #0 - 8001a06: 2300 movs r3, #0 + 8001a5a: 2300 movs r3, #0 b LoopCopyDataInit - 8001a08: e002 b.n 8001a10 + 8001a5c: e002 b.n 8001a64 -08001a0a : +08001a5e : CopyDataInit: ldr r4, [r2, r3] - 8001a0a: 58d4 ldr r4, [r2, r3] + 8001a5e: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] - 8001a0c: 50c4 str r4, [r0, r3] + 8001a60: 50c4 str r4, [r0, r3] adds r3, r3, #4 - 8001a0e: 3304 adds r3, #4 + 8001a62: 3304 adds r3, #4 -08001a10 : +08001a64 : LoopCopyDataInit: adds r4, r0, r3 - 8001a10: 18c4 adds r4, r0, r3 + 8001a64: 18c4 adds r4, r0, r3 cmp r4, r1 - 8001a12: 428c cmp r4, r1 + 8001a66: 428c cmp r4, r1 bcc CopyDataInit - 8001a14: d3f9 bcc.n 8001a0a + 8001a68: d3f9 bcc.n 8001a5e /* Zero fill the bss segment. */ ldr r2, =_sbss - 8001a16: 4a0a ldr r2, [pc, #40] @ (8001a40 ) + 8001a6a: 4a0a ldr r2, [pc, #40] @ (8001a94 ) ldr r4, =_ebss - 8001a18: 4c0a ldr r4, [pc, #40] @ (8001a44 ) + 8001a6c: 4c0a ldr r4, [pc, #40] @ (8001a98 ) movs r3, #0 - 8001a1a: 2300 movs r3, #0 + 8001a6e: 2300 movs r3, #0 b LoopFillZerobss - 8001a1c: e001 b.n 8001a22 + 8001a70: e001 b.n 8001a76 -08001a1e : +08001a72 : FillZerobss: str r3, [r2] - 8001a1e: 6013 str r3, [r2, #0] + 8001a72: 6013 str r3, [r2, #0] adds r2, r2, #4 - 8001a20: 3204 adds r2, #4 + 8001a74: 3204 adds r2, #4 -08001a22 : +08001a76 : LoopFillZerobss: cmp r2, r4 - 8001a22: 42a2 cmp r2, r4 + 8001a76: 42a2 cmp r2, r4 bcc FillZerobss - 8001a24: d3fb bcc.n 8001a1e + 8001a78: d3fb bcc.n 8001a72 /* Call static constructors */ bl __libc_init_array - 8001a26: f008 fffd bl 800aa24 <__libc_init_array> + 8001a7a: f008 fffd bl 800aa78 <__libc_init_array> /* Call the application's entry point.*/ bl main - 8001a2a: f7fe fefd bl 8000828
+ 8001a7e: f7fe fed3 bl 8000828
bx lr - 8001a2e: 4770 bx lr + 8001a82: 4770 bx lr ldr sp, =_estack /* set stack pointer */ - 8001a30: 20020000 .word 0x20020000 + 8001a84: 20020000 .word 0x20020000 ldr r0, =_sdata - 8001a34: 20000000 .word 0x20000000 + 8001a88: 20000000 .word 0x20000000 ldr r1, =_edata - 8001a38: 200001a0 .word 0x200001a0 + 8001a8c: 200001a0 .word 0x200001a0 ldr r2, =_sidata - 8001a3c: 0800aaf0 .word 0x0800aaf0 + 8001a90: 0800ab44 .word 0x0800ab44 ldr r2, =_sbss - 8001a40: 200001a0 .word 0x200001a0 + 8001a94: 200001a0 .word 0x200001a0 ldr r4, =_ebss - 8001a44: 20001108 .word 0x20001108 + 8001a98: 2000110c .word 0x2000110c -08001a48 : +08001a9c : * @retval None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop - 8001a48: e7fe b.n 8001a48 + 8001a9c: e7fe b.n 8001a9c ... -08001a4c : +08001aa0 : * need to ensure that the SysTick time base is always set to 1 millisecond * to have correct HAL operation. * @retval HAL status */ HAL_StatusTypeDef HAL_Init(void) { - 8001a4c: b580 push {r7, lr} - 8001a4e: af00 add r7, sp, #0 + 8001aa0: b580 push {r7, lr} + 8001aa2: af00 add r7, sp, #0 /* Configure Flash prefetch, Instruction cache, Data cache */ #if (INSTRUCTION_CACHE_ENABLE != 0U) __HAL_FLASH_INSTRUCTION_CACHE_ENABLE(); - 8001a50: 4b0e ldr r3, [pc, #56] @ (8001a8c ) - 8001a52: 681b ldr r3, [r3, #0] - 8001a54: 4a0d ldr r2, [pc, #52] @ (8001a8c ) - 8001a56: f443 7300 orr.w r3, r3, #512 @ 0x200 - 8001a5a: 6013 str r3, [r2, #0] + 8001aa4: 4b0e ldr r3, [pc, #56] @ (8001ae0 ) + 8001aa6: 681b ldr r3, [r3, #0] + 8001aa8: 4a0d ldr r2, [pc, #52] @ (8001ae0 ) + 8001aaa: f443 7300 orr.w r3, r3, #512 @ 0x200 + 8001aae: 6013 str r3, [r2, #0] #endif /* INSTRUCTION_CACHE_ENABLE */ #if (DATA_CACHE_ENABLE != 0U) __HAL_FLASH_DATA_CACHE_ENABLE(); - 8001a5c: 4b0b ldr r3, [pc, #44] @ (8001a8c ) - 8001a5e: 681b ldr r3, [r3, #0] - 8001a60: 4a0a ldr r2, [pc, #40] @ (8001a8c ) - 8001a62: f443 6380 orr.w r3, r3, #1024 @ 0x400 - 8001a66: 6013 str r3, [r2, #0] + 8001ab0: 4b0b ldr r3, [pc, #44] @ (8001ae0 ) + 8001ab2: 681b ldr r3, [r3, #0] + 8001ab4: 4a0a ldr r2, [pc, #40] @ (8001ae0 ) + 8001ab6: f443 6380 orr.w r3, r3, #1024 @ 0x400 + 8001aba: 6013 str r3, [r2, #0] #endif /* DATA_CACHE_ENABLE */ #if (PREFETCH_ENABLE != 0U) __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); - 8001a68: 4b08 ldr r3, [pc, #32] @ (8001a8c ) - 8001a6a: 681b ldr r3, [r3, #0] - 8001a6c: 4a07 ldr r2, [pc, #28] @ (8001a8c ) - 8001a6e: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8001a72: 6013 str r3, [r2, #0] + 8001abc: 4b08 ldr r3, [pc, #32] @ (8001ae0 ) + 8001abe: 681b ldr r3, [r3, #0] + 8001ac0: 4a07 ldr r2, [pc, #28] @ (8001ae0 ) + 8001ac2: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8001ac6: 6013 str r3, [r2, #0] #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - 8001a74: 2003 movs r0, #3 - 8001a76: f000 f94f bl 8001d18 + 8001ac8: 2003 movs r0, #3 + 8001aca: f000 f94f bl 8001d6c /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); - 8001a7a: 200f movs r0, #15 - 8001a7c: f000 f808 bl 8001a90 + 8001ace: 200f movs r0, #15 + 8001ad0: f000 f808 bl 8001ae4 /* Init the low level hardware */ HAL_MspInit(); - 8001a80: f7ff fa18 bl 8000eb4 + 8001ad4: f7ff fa18 bl 8000f08 /* Return function status */ return HAL_OK; - 8001a84: 2300 movs r3, #0 + 8001ad8: 2300 movs r3, #0 } - 8001a86: 4618 mov r0, r3 - 8001a88: bd80 pop {r7, pc} - 8001a8a: bf00 nop - 8001a8c: 40023c00 .word 0x40023c00 + 8001ada: 4618 mov r0, r3 + 8001adc: bd80 pop {r7, pc} + 8001ade: bf00 nop + 8001ae0: 40023c00 .word 0x40023c00 -08001a90 : +08001ae4 : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { - 8001a90: b580 push {r7, lr} - 8001a92: b082 sub sp, #8 - 8001a94: af00 add r7, sp, #0 - 8001a96: 6078 str r0, [r7, #4] + 8001ae4: b580 push {r7, lr} + 8001ae6: b082 sub sp, #8 + 8001ae8: af00 add r7, sp, #0 + 8001aea: 6078 str r0, [r7, #4] /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) - 8001a98: 4b12 ldr r3, [pc, #72] @ (8001ae4 ) - 8001a9a: 681a ldr r2, [r3, #0] - 8001a9c: 4b12 ldr r3, [pc, #72] @ (8001ae8 ) - 8001a9e: 781b ldrb r3, [r3, #0] - 8001aa0: 4619 mov r1, r3 - 8001aa2: f44f 737a mov.w r3, #1000 @ 0x3e8 - 8001aa6: fbb3 f3f1 udiv r3, r3, r1 - 8001aaa: fbb2 f3f3 udiv r3, r2, r3 - 8001aae: 4618 mov r0, r3 - 8001ab0: f000 f967 bl 8001d82 - 8001ab4: 4603 mov r3, r0 - 8001ab6: 2b00 cmp r3, #0 - 8001ab8: d001 beq.n 8001abe + 8001aec: 4b12 ldr r3, [pc, #72] @ (8001b38 ) + 8001aee: 681a ldr r2, [r3, #0] + 8001af0: 4b12 ldr r3, [pc, #72] @ (8001b3c ) + 8001af2: 781b ldrb r3, [r3, #0] + 8001af4: 4619 mov r1, r3 + 8001af6: f44f 737a mov.w r3, #1000 @ 0x3e8 + 8001afa: fbb3 f3f1 udiv r3, r3, r1 + 8001afe: fbb2 f3f3 udiv r3, r2, r3 + 8001b02: 4618 mov r0, r3 + 8001b04: f000 f967 bl 8001dd6 + 8001b08: 4603 mov r3, r0 + 8001b0a: 2b00 cmp r3, #0 + 8001b0c: d001 beq.n 8001b12 { return HAL_ERROR; - 8001aba: 2301 movs r3, #1 - 8001abc: e00e b.n 8001adc + 8001b0e: 2301 movs r3, #1 + 8001b10: e00e b.n 8001b30 } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 8001abe: 687b ldr r3, [r7, #4] - 8001ac0: 2b0f cmp r3, #15 - 8001ac2: d80a bhi.n 8001ada + 8001b12: 687b ldr r3, [r7, #4] + 8001b14: 2b0f cmp r3, #15 + 8001b16: d80a bhi.n 8001b2e { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); - 8001ac4: 2200 movs r2, #0 - 8001ac6: 6879 ldr r1, [r7, #4] - 8001ac8: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff - 8001acc: f000 f92f bl 8001d2e + 8001b18: 2200 movs r2, #0 + 8001b1a: 6879 ldr r1, [r7, #4] + 8001b1c: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff + 8001b20: f000 f92f bl 8001d82 uwTickPrio = TickPriority; - 8001ad0: 4a06 ldr r2, [pc, #24] @ (8001aec ) - 8001ad2: 687b ldr r3, [r7, #4] - 8001ad4: 6013 str r3, [r2, #0] + 8001b24: 4a06 ldr r2, [pc, #24] @ (8001b40 ) + 8001b26: 687b ldr r3, [r7, #4] + 8001b28: 6013 str r3, [r2, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; - 8001ad6: 2300 movs r3, #0 - 8001ad8: e000 b.n 8001adc + 8001b2a: 2300 movs r3, #0 + 8001b2c: e000 b.n 8001b30 return HAL_ERROR; - 8001ada: 2301 movs r3, #1 + 8001b2e: 2301 movs r3, #1 } - 8001adc: 4618 mov r0, r3 - 8001ade: 3708 adds r7, #8 - 8001ae0: 46bd mov sp, r7 - 8001ae2: bd80 pop {r7, pc} - 8001ae4: 20000090 .word 0x20000090 - 8001ae8: 20000098 .word 0x20000098 - 8001aec: 20000094 .word 0x20000094 + 8001b30: 4618 mov r0, r3 + 8001b32: 3708 adds r7, #8 + 8001b34: 46bd mov sp, r7 + 8001b36: bd80 pop {r7, pc} + 8001b38: 20000090 .word 0x20000090 + 8001b3c: 20000098 .word 0x20000098 + 8001b40: 20000094 .word 0x20000094 -08001af0 : +08001b44 : * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval None */ __weak void HAL_IncTick(void) { - 8001af0: b480 push {r7} - 8001af2: af00 add r7, sp, #0 + 8001b44: b480 push {r7} + 8001b46: af00 add r7, sp, #0 uwTick += uwTickFreq; - 8001af4: 4b06 ldr r3, [pc, #24] @ (8001b10 ) - 8001af6: 781b ldrb r3, [r3, #0] - 8001af8: 461a mov r2, r3 - 8001afa: 4b06 ldr r3, [pc, #24] @ (8001b14 ) - 8001afc: 681b ldr r3, [r3, #0] - 8001afe: 4413 add r3, r2 - 8001b00: 4a04 ldr r2, [pc, #16] @ (8001b14 ) - 8001b02: 6013 str r3, [r2, #0] + 8001b48: 4b06 ldr r3, [pc, #24] @ (8001b64 ) + 8001b4a: 781b ldrb r3, [r3, #0] + 8001b4c: 461a mov r2, r3 + 8001b4e: 4b06 ldr r3, [pc, #24] @ (8001b68 ) + 8001b50: 681b ldr r3, [r3, #0] + 8001b52: 4413 add r3, r2 + 8001b54: 4a04 ldr r2, [pc, #16] @ (8001b68 ) + 8001b56: 6013 str r3, [r2, #0] } - 8001b04: bf00 nop - 8001b06: 46bd mov sp, r7 - 8001b08: f85d 7b04 ldr.w r7, [sp], #4 - 8001b0c: 4770 bx lr - 8001b0e: bf00 nop - 8001b10: 20000098 .word 0x20000098 - 8001b14: 2000072c .word 0x2000072c + 8001b58: bf00 nop + 8001b5a: 46bd mov sp, r7 + 8001b5c: f85d 7b04 ldr.w r7, [sp], #4 + 8001b60: 4770 bx lr + 8001b62: bf00 nop + 8001b64: 20000098 .word 0x20000098 + 8001b68: 20000730 .word 0x20000730 -08001b18 : +08001b6c : * @note This function is declared as __weak to be overwritten in case of other * implementations in user file. * @retval tick value */ __weak uint32_t HAL_GetTick(void) { - 8001b18: b480 push {r7} - 8001b1a: af00 add r7, sp, #0 + 8001b6c: b480 push {r7} + 8001b6e: af00 add r7, sp, #0 return uwTick; - 8001b1c: 4b03 ldr r3, [pc, #12] @ (8001b2c ) - 8001b1e: 681b ldr r3, [r3, #0] + 8001b70: 4b03 ldr r3, [pc, #12] @ (8001b80 ) + 8001b72: 681b ldr r3, [r3, #0] } - 8001b20: 4618 mov r0, r3 - 8001b22: 46bd mov sp, r7 - 8001b24: f85d 7b04 ldr.w r7, [sp], #4 - 8001b28: 4770 bx lr - 8001b2a: bf00 nop - 8001b2c: 2000072c .word 0x2000072c + 8001b74: 4618 mov r0, r3 + 8001b76: 46bd mov sp, r7 + 8001b78: f85d 7b04 ldr.w r7, [sp], #4 + 8001b7c: 4770 bx lr + 8001b7e: bf00 nop + 8001b80: 20000730 .word 0x20000730 -08001b30 : +08001b84 : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { - 8001b30: b580 push {r7, lr} - 8001b32: b084 sub sp, #16 - 8001b34: af00 add r7, sp, #0 - 8001b36: 6078 str r0, [r7, #4] + 8001b84: b580 push {r7, lr} + 8001b86: b084 sub sp, #16 + 8001b88: af00 add r7, sp, #0 + 8001b8a: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); - 8001b38: f7ff ffee bl 8001b18 - 8001b3c: 60b8 str r0, [r7, #8] + 8001b8c: f7ff ffee bl 8001b6c + 8001b90: 60b8 str r0, [r7, #8] uint32_t wait = Delay; - 8001b3e: 687b ldr r3, [r7, #4] - 8001b40: 60fb str r3, [r7, #12] + 8001b92: 687b ldr r3, [r7, #4] + 8001b94: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) - 8001b42: 68fb ldr r3, [r7, #12] - 8001b44: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff - 8001b48: d005 beq.n 8001b56 + 8001b96: 68fb ldr r3, [r7, #12] + 8001b98: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff + 8001b9c: d005 beq.n 8001baa { wait += (uint32_t)(uwTickFreq); - 8001b4a: 4b0a ldr r3, [pc, #40] @ (8001b74 ) - 8001b4c: 781b ldrb r3, [r3, #0] - 8001b4e: 461a mov r2, r3 - 8001b50: 68fb ldr r3, [r7, #12] - 8001b52: 4413 add r3, r2 - 8001b54: 60fb str r3, [r7, #12] + 8001b9e: 4b0a ldr r3, [pc, #40] @ (8001bc8 ) + 8001ba0: 781b ldrb r3, [r3, #0] + 8001ba2: 461a mov r2, r3 + 8001ba4: 68fb ldr r3, [r7, #12] + 8001ba6: 4413 add r3, r2 + 8001ba8: 60fb str r3, [r7, #12] } while((HAL_GetTick() - tickstart) < wait) - 8001b56: bf00 nop - 8001b58: f7ff ffde bl 8001b18 - 8001b5c: 4602 mov r2, r0 - 8001b5e: 68bb ldr r3, [r7, #8] - 8001b60: 1ad3 subs r3, r2, r3 - 8001b62: 68fa ldr r2, [r7, #12] - 8001b64: 429a cmp r2, r3 - 8001b66: d8f7 bhi.n 8001b58 + 8001baa: bf00 nop + 8001bac: f7ff ffde bl 8001b6c + 8001bb0: 4602 mov r2, r0 + 8001bb2: 68bb ldr r3, [r7, #8] + 8001bb4: 1ad3 subs r3, r2, r3 + 8001bb6: 68fa ldr r2, [r7, #12] + 8001bb8: 429a cmp r2, r3 + 8001bba: d8f7 bhi.n 8001bac { } } - 8001b68: bf00 nop - 8001b6a: bf00 nop - 8001b6c: 3710 adds r7, #16 - 8001b6e: 46bd mov sp, r7 - 8001b70: bd80 pop {r7, pc} - 8001b72: bf00 nop - 8001b74: 20000098 .word 0x20000098 + 8001bbc: bf00 nop + 8001bbe: bf00 nop + 8001bc0: 3710 adds r7, #16 + 8001bc2: 46bd mov sp, r7 + 8001bc4: bd80 pop {r7, pc} + 8001bc6: bf00 nop + 8001bc8: 20000098 .word 0x20000098 -08001b78 <__NVIC_SetPriorityGrouping>: +08001bcc <__NVIC_SetPriorityGrouping>: In case of a conflict between priority grouping and available priority bits (__NVIC_PRIO_BITS), the smallest possible priority group is set. \param [in] PriorityGroup Priority grouping field. */ __STATIC_INLINE void __NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { - 8001b78: b480 push {r7} - 8001b7a: b085 sub sp, #20 - 8001b7c: af00 add r7, sp, #0 - 8001b7e: 6078 str r0, [r7, #4] + 8001bcc: b480 push {r7} + 8001bce: b085 sub sp, #20 + 8001bd0: af00 add r7, sp, #0 + 8001bd2: 6078 str r0, [r7, #4] uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 8001b80: 687b ldr r3, [r7, #4] - 8001b82: f003 0307 and.w r3, r3, #7 - 8001b86: 60fb str r3, [r7, #12] + 8001bd4: 687b ldr r3, [r7, #4] + 8001bd6: f003 0307 and.w r3, r3, #7 + 8001bda: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ - 8001b88: 4b0c ldr r3, [pc, #48] @ (8001bbc <__NVIC_SetPriorityGrouping+0x44>) - 8001b8a: 68db ldr r3, [r3, #12] - 8001b8c: 60bb str r3, [r7, #8] + 8001bdc: 4b0c ldr r3, [pc, #48] @ (8001c10 <__NVIC_SetPriorityGrouping+0x44>) + 8001bde: 68db ldr r3, [r3, #12] + 8001be0: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - 8001b8e: 68ba ldr r2, [r7, #8] - 8001b90: f64f 03ff movw r3, #63743 @ 0xf8ff - 8001b94: 4013 ands r3, r2 - 8001b96: 60bb str r3, [r7, #8] + 8001be2: 68ba ldr r2, [r7, #8] + 8001be4: f64f 03ff movw r3, #63743 @ 0xf8ff + 8001be8: 4013 ands r3, r2 + 8001bea: 60bb str r3, [r7, #8] reg_value = (reg_value | ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ - 8001b98: 68fb ldr r3, [r7, #12] - 8001b9a: 021a lsls r2, r3, #8 + 8001bec: 68fb ldr r3, [r7, #12] + 8001bee: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 8001b9c: 68bb ldr r3, [r7, #8] - 8001b9e: 4313 orrs r3, r2 + 8001bf0: 68bb ldr r3, [r7, #8] + 8001bf2: 4313 orrs r3, r2 reg_value = (reg_value | - 8001ba0: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 - 8001ba4: f443 3300 orr.w r3, r3, #131072 @ 0x20000 - 8001ba8: 60bb str r3, [r7, #8] + 8001bf4: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 + 8001bf8: f443 3300 orr.w r3, r3, #131072 @ 0x20000 + 8001bfc: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; - 8001baa: 4a04 ldr r2, [pc, #16] @ (8001bbc <__NVIC_SetPriorityGrouping+0x44>) - 8001bac: 68bb ldr r3, [r7, #8] - 8001bae: 60d3 str r3, [r2, #12] + 8001bfe: 4a04 ldr r2, [pc, #16] @ (8001c10 <__NVIC_SetPriorityGrouping+0x44>) + 8001c00: 68bb ldr r3, [r7, #8] + 8001c02: 60d3 str r3, [r2, #12] } - 8001bb0: bf00 nop - 8001bb2: 3714 adds r7, #20 - 8001bb4: 46bd mov sp, r7 - 8001bb6: f85d 7b04 ldr.w r7, [sp], #4 - 8001bba: 4770 bx lr - 8001bbc: e000ed00 .word 0xe000ed00 + 8001c04: bf00 nop + 8001c06: 3714 adds r7, #20 + 8001c08: 46bd mov sp, r7 + 8001c0a: f85d 7b04 ldr.w r7, [sp], #4 + 8001c0e: 4770 bx lr + 8001c10: e000ed00 .word 0xe000ed00 -08001bc0 <__NVIC_GetPriorityGrouping>: +08001c14 <__NVIC_GetPriorityGrouping>: \brief Get Priority Grouping \details Reads the priority grouping field from the NVIC Interrupt Controller. \return Priority grouping field (SCB->AIRCR [10:8] PRIGROUP field). */ __STATIC_INLINE uint32_t __NVIC_GetPriorityGrouping(void) { - 8001bc0: b480 push {r7} - 8001bc2: af00 add r7, sp, #0 + 8001c14: b480 push {r7} + 8001c16: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); - 8001bc4: 4b04 ldr r3, [pc, #16] @ (8001bd8 <__NVIC_GetPriorityGrouping+0x18>) - 8001bc6: 68db ldr r3, [r3, #12] - 8001bc8: 0a1b lsrs r3, r3, #8 - 8001bca: f003 0307 and.w r3, r3, #7 + 8001c18: 4b04 ldr r3, [pc, #16] @ (8001c2c <__NVIC_GetPriorityGrouping+0x18>) + 8001c1a: 68db ldr r3, [r3, #12] + 8001c1c: 0a1b lsrs r3, r3, #8 + 8001c1e: f003 0307 and.w r3, r3, #7 } - 8001bce: 4618 mov r0, r3 - 8001bd0: 46bd mov sp, r7 - 8001bd2: f85d 7b04 ldr.w r7, [sp], #4 - 8001bd6: 4770 bx lr - 8001bd8: e000ed00 .word 0xe000ed00 + 8001c22: 4618 mov r0, r3 + 8001c24: 46bd mov sp, r7 + 8001c26: f85d 7b04 ldr.w r7, [sp], #4 + 8001c2a: 4770 bx lr + 8001c2c: e000ed00 .word 0xe000ed00 -08001bdc <__NVIC_EnableIRQ>: +08001c30 <__NVIC_EnableIRQ>: \details Enables a device specific interrupt in the NVIC interrupt controller. \param [in] IRQn Device specific interrupt number. \note IRQn must not be negative. */ __STATIC_INLINE void __NVIC_EnableIRQ(IRQn_Type IRQn) { - 8001bdc: b480 push {r7} - 8001bde: b083 sub sp, #12 - 8001be0: af00 add r7, sp, #0 - 8001be2: 4603 mov r3, r0 - 8001be4: 71fb strb r3, [r7, #7] + 8001c30: b480 push {r7} + 8001c32: b083 sub sp, #12 + 8001c34: af00 add r7, sp, #0 + 8001c36: 4603 mov r3, r0 + 8001c38: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8001be6: f997 3007 ldrsb.w r3, [r7, #7] - 8001bea: 2b00 cmp r3, #0 - 8001bec: db0b blt.n 8001c06 <__NVIC_EnableIRQ+0x2a> + 8001c3a: f997 3007 ldrsb.w r3, [r7, #7] + 8001c3e: 2b00 cmp r3, #0 + 8001c40: db0b blt.n 8001c5a <__NVIC_EnableIRQ+0x2a> { __COMPILER_BARRIER(); NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - 8001bee: 79fb ldrb r3, [r7, #7] - 8001bf0: f003 021f and.w r2, r3, #31 - 8001bf4: 4907 ldr r1, [pc, #28] @ (8001c14 <__NVIC_EnableIRQ+0x38>) - 8001bf6: f997 3007 ldrsb.w r3, [r7, #7] - 8001bfa: 095b lsrs r3, r3, #5 - 8001bfc: 2001 movs r0, #1 - 8001bfe: fa00 f202 lsl.w r2, r0, r2 - 8001c02: f841 2023 str.w r2, [r1, r3, lsl #2] + 8001c42: 79fb ldrb r3, [r7, #7] + 8001c44: f003 021f and.w r2, r3, #31 + 8001c48: 4907 ldr r1, [pc, #28] @ (8001c68 <__NVIC_EnableIRQ+0x38>) + 8001c4a: f997 3007 ldrsb.w r3, [r7, #7] + 8001c4e: 095b lsrs r3, r3, #5 + 8001c50: 2001 movs r0, #1 + 8001c52: fa00 f202 lsl.w r2, r0, r2 + 8001c56: f841 2023 str.w r2, [r1, r3, lsl #2] __COMPILER_BARRIER(); } } - 8001c06: bf00 nop - 8001c08: 370c adds r7, #12 - 8001c0a: 46bd mov sp, r7 - 8001c0c: f85d 7b04 ldr.w r7, [sp], #4 - 8001c10: 4770 bx lr - 8001c12: bf00 nop - 8001c14: e000e100 .word 0xe000e100 + 8001c5a: bf00 nop + 8001c5c: 370c adds r7, #12 + 8001c5e: 46bd mov sp, r7 + 8001c60: f85d 7b04 ldr.w r7, [sp], #4 + 8001c64: 4770 bx lr + 8001c66: bf00 nop + 8001c68: e000e100 .word 0xe000e100 -08001c18 <__NVIC_SetPriority>: +08001c6c <__NVIC_SetPriority>: \param [in] IRQn Interrupt number. \param [in] priority Priority to set. \note The priority cannot be set for every processor exception. */ __STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) { - 8001c18: b480 push {r7} - 8001c1a: b083 sub sp, #12 - 8001c1c: af00 add r7, sp, #0 - 8001c1e: 4603 mov r3, r0 - 8001c20: 6039 str r1, [r7, #0] - 8001c22: 71fb strb r3, [r7, #7] + 8001c6c: b480 push {r7} + 8001c6e: b083 sub sp, #12 + 8001c70: af00 add r7, sp, #0 + 8001c72: 4603 mov r3, r0 + 8001c74: 6039 str r1, [r7, #0] + 8001c76: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8001c24: f997 3007 ldrsb.w r3, [r7, #7] - 8001c28: 2b00 cmp r3, #0 - 8001c2a: db0a blt.n 8001c42 <__NVIC_SetPriority+0x2a> + 8001c78: f997 3007 ldrsb.w r3, [r7, #7] + 8001c7c: 2b00 cmp r3, #0 + 8001c7e: db0a blt.n 8001c96 <__NVIC_SetPriority+0x2a> { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8001c2c: 683b ldr r3, [r7, #0] - 8001c2e: b2da uxtb r2, r3 - 8001c30: 490c ldr r1, [pc, #48] @ (8001c64 <__NVIC_SetPriority+0x4c>) - 8001c32: f997 3007 ldrsb.w r3, [r7, #7] - 8001c36: 0112 lsls r2, r2, #4 - 8001c38: b2d2 uxtb r2, r2 - 8001c3a: 440b add r3, r1 - 8001c3c: f883 2300 strb.w r2, [r3, #768] @ 0x300 + 8001c80: 683b ldr r3, [r7, #0] + 8001c82: b2da uxtb r2, r3 + 8001c84: 490c ldr r1, [pc, #48] @ (8001cb8 <__NVIC_SetPriority+0x4c>) + 8001c86: f997 3007 ldrsb.w r3, [r7, #7] + 8001c8a: 0112 lsls r2, r2, #4 + 8001c8c: b2d2 uxtb r2, r2 + 8001c8e: 440b add r3, r1 + 8001c90: f883 2300 strb.w r2, [r3, #768] @ 0x300 } else { SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); } } - 8001c40: e00a b.n 8001c58 <__NVIC_SetPriority+0x40> + 8001c94: e00a b.n 8001cac <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8001c42: 683b ldr r3, [r7, #0] - 8001c44: b2da uxtb r2, r3 - 8001c46: 4908 ldr r1, [pc, #32] @ (8001c68 <__NVIC_SetPriority+0x50>) - 8001c48: 79fb ldrb r3, [r7, #7] - 8001c4a: f003 030f and.w r3, r3, #15 - 8001c4e: 3b04 subs r3, #4 - 8001c50: 0112 lsls r2, r2, #4 - 8001c52: b2d2 uxtb r2, r2 - 8001c54: 440b add r3, r1 - 8001c56: 761a strb r2, [r3, #24] + 8001c96: 683b ldr r3, [r7, #0] + 8001c98: b2da uxtb r2, r3 + 8001c9a: 4908 ldr r1, [pc, #32] @ (8001cbc <__NVIC_SetPriority+0x50>) + 8001c9c: 79fb ldrb r3, [r7, #7] + 8001c9e: f003 030f and.w r3, r3, #15 + 8001ca2: 3b04 subs r3, #4 + 8001ca4: 0112 lsls r2, r2, #4 + 8001ca6: b2d2 uxtb r2, r2 + 8001ca8: 440b add r3, r1 + 8001caa: 761a strb r2, [r3, #24] } - 8001c58: bf00 nop - 8001c5a: 370c adds r7, #12 - 8001c5c: 46bd mov sp, r7 - 8001c5e: f85d 7b04 ldr.w r7, [sp], #4 - 8001c62: 4770 bx lr - 8001c64: e000e100 .word 0xe000e100 - 8001c68: e000ed00 .word 0xe000ed00 + 8001cac: bf00 nop + 8001cae: 370c adds r7, #12 + 8001cb0: 46bd mov sp, r7 + 8001cb2: f85d 7b04 ldr.w r7, [sp], #4 + 8001cb6: 4770 bx lr + 8001cb8: e000e100 .word 0xe000e100 + 8001cbc: e000ed00 .word 0xe000ed00 -08001c6c : +08001cc0 : \param [in] PreemptPriority Preemptive priority value (starting from 0). \param [in] SubPriority Subpriority value (starting from 0). \return Encoded priority. Value can be used in the function \ref NVIC_SetPriority(). */ __STATIC_INLINE uint32_t NVIC_EncodePriority (uint32_t PriorityGroup, uint32_t PreemptPriority, uint32_t SubPriority) { - 8001c6c: b480 push {r7} - 8001c6e: b089 sub sp, #36 @ 0x24 - 8001c70: af00 add r7, sp, #0 - 8001c72: 60f8 str r0, [r7, #12] - 8001c74: 60b9 str r1, [r7, #8] - 8001c76: 607a str r2, [r7, #4] + 8001cc0: b480 push {r7} + 8001cc2: b089 sub sp, #36 @ 0x24 + 8001cc4: af00 add r7, sp, #0 + 8001cc6: 60f8 str r0, [r7, #12] + 8001cc8: 60b9 str r1, [r7, #8] + 8001cca: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 8001c78: 68fb ldr r3, [r7, #12] - 8001c7a: f003 0307 and.w r3, r3, #7 - 8001c7e: 61fb str r3, [r7, #28] + 8001ccc: 68fb ldr r3, [r7, #12] + 8001cce: f003 0307 and.w r3, r3, #7 + 8001cd2: 61fb str r3, [r7, #28] uint32_t PreemptPriorityBits; uint32_t SubPriorityBits; PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - 8001c80: 69fb ldr r3, [r7, #28] - 8001c82: f1c3 0307 rsb r3, r3, #7 - 8001c86: 2b04 cmp r3, #4 - 8001c88: bf28 it cs - 8001c8a: 2304 movcs r3, #4 - 8001c8c: 61bb str r3, [r7, #24] + 8001cd4: 69fb ldr r3, [r7, #28] + 8001cd6: f1c3 0307 rsb r3, r3, #7 + 8001cda: 2b04 cmp r3, #4 + 8001cdc: bf28 it cs + 8001cde: 2304 movcs r3, #4 + 8001ce0: 61bb str r3, [r7, #24] SubPriorityBits = ((PriorityGroupTmp + (uint32_t)(__NVIC_PRIO_BITS)) < (uint32_t)7UL) ? (uint32_t)0UL : (uint32_t)((PriorityGroupTmp - 7UL) + (uint32_t)(__NVIC_PRIO_BITS)); - 8001c8e: 69fb ldr r3, [r7, #28] - 8001c90: 3304 adds r3, #4 - 8001c92: 2b06 cmp r3, #6 - 8001c94: d902 bls.n 8001c9c - 8001c96: 69fb ldr r3, [r7, #28] - 8001c98: 3b03 subs r3, #3 - 8001c9a: e000 b.n 8001c9e - 8001c9c: 2300 movs r3, #0 - 8001c9e: 617b str r3, [r7, #20] + 8001ce2: 69fb ldr r3, [r7, #28] + 8001ce4: 3304 adds r3, #4 + 8001ce6: 2b06 cmp r3, #6 + 8001ce8: d902 bls.n 8001cf0 + 8001cea: 69fb ldr r3, [r7, #28] + 8001cec: 3b03 subs r3, #3 + 8001cee: e000 b.n 8001cf2 + 8001cf0: 2300 movs r3, #0 + 8001cf2: 617b str r3, [r7, #20] return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8001ca0: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff - 8001ca4: 69bb ldr r3, [r7, #24] - 8001ca6: fa02 f303 lsl.w r3, r2, r3 - 8001caa: 43da mvns r2, r3 - 8001cac: 68bb ldr r3, [r7, #8] - 8001cae: 401a ands r2, r3 - 8001cb0: 697b ldr r3, [r7, #20] - 8001cb2: 409a lsls r2, r3 + 8001cf4: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff + 8001cf8: 69bb ldr r3, [r7, #24] + 8001cfa: fa02 f303 lsl.w r3, r2, r3 + 8001cfe: 43da mvns r2, r3 + 8001d00: 68bb ldr r3, [r7, #8] + 8001d02: 401a ands r2, r3 + 8001d04: 697b ldr r3, [r7, #20] + 8001d06: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - 8001cb4: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff - 8001cb8: 697b ldr r3, [r7, #20] - 8001cba: fa01 f303 lsl.w r3, r1, r3 - 8001cbe: 43d9 mvns r1, r3 - 8001cc0: 687b ldr r3, [r7, #4] - 8001cc2: 400b ands r3, r1 + 8001d08: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff + 8001d0c: 697b ldr r3, [r7, #20] + 8001d0e: fa01 f303 lsl.w r3, r1, r3 + 8001d12: 43d9 mvns r1, r3 + 8001d14: 687b ldr r3, [r7, #4] + 8001d16: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8001cc4: 4313 orrs r3, r2 + 8001d18: 4313 orrs r3, r2 ); } - 8001cc6: 4618 mov r0, r3 - 8001cc8: 3724 adds r7, #36 @ 0x24 - 8001cca: 46bd mov sp, r7 - 8001ccc: f85d 7b04 ldr.w r7, [sp], #4 - 8001cd0: 4770 bx lr + 8001d1a: 4618 mov r0, r3 + 8001d1c: 3724 adds r7, #36 @ 0x24 + 8001d1e: 46bd mov sp, r7 + 8001d20: f85d 7b04 ldr.w r7, [sp], #4 + 8001d24: 4770 bx lr ... -08001cd4 : +08001d28 : \note When the variable __Vendor_SysTickConfig is set to 1, then the function SysTick_Config is not included. In this case, the file device.h must contain a vendor-specific implementation of this function. */ __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) { - 8001cd4: b580 push {r7, lr} - 8001cd6: b082 sub sp, #8 - 8001cd8: af00 add r7, sp, #0 - 8001cda: 6078 str r0, [r7, #4] + 8001d28: b580 push {r7, lr} + 8001d2a: b082 sub sp, #8 + 8001d2c: af00 add r7, sp, #0 + 8001d2e: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - 8001cdc: 687b ldr r3, [r7, #4] - 8001cde: 3b01 subs r3, #1 - 8001ce0: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 - 8001ce4: d301 bcc.n 8001cea + 8001d30: 687b ldr r3, [r7, #4] + 8001d32: 3b01 subs r3, #1 + 8001d34: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 + 8001d38: d301 bcc.n 8001d3e { return (1UL); /* Reload value impossible */ - 8001ce6: 2301 movs r3, #1 - 8001ce8: e00f b.n 8001d0a + 8001d3a: 2301 movs r3, #1 + 8001d3c: e00f b.n 8001d5e } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - 8001cea: 4a0a ldr r2, [pc, #40] @ (8001d14 ) - 8001cec: 687b ldr r3, [r7, #4] - 8001cee: 3b01 subs r3, #1 - 8001cf0: 6053 str r3, [r2, #4] + 8001d3e: 4a0a ldr r2, [pc, #40] @ (8001d68 ) + 8001d40: 687b ldr r3, [r7, #4] + 8001d42: 3b01 subs r3, #1 + 8001d44: 6053 str r3, [r2, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - 8001cf2: 210f movs r1, #15 - 8001cf4: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff - 8001cf8: f7ff ff8e bl 8001c18 <__NVIC_SetPriority> + 8001d46: 210f movs r1, #15 + 8001d48: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff + 8001d4c: f7ff ff8e bl 8001c6c <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - 8001cfc: 4b05 ldr r3, [pc, #20] @ (8001d14 ) - 8001cfe: 2200 movs r2, #0 - 8001d00: 609a str r2, [r3, #8] + 8001d50: 4b05 ldr r3, [pc, #20] @ (8001d68 ) + 8001d52: 2200 movs r2, #0 + 8001d54: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - 8001d02: 4b04 ldr r3, [pc, #16] @ (8001d14 ) - 8001d04: 2207 movs r2, #7 - 8001d06: 601a str r2, [r3, #0] + 8001d56: 4b04 ldr r3, [pc, #16] @ (8001d68 ) + 8001d58: 2207 movs r2, #7 + 8001d5a: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ - 8001d08: 2300 movs r3, #0 + 8001d5c: 2300 movs r3, #0 } - 8001d0a: 4618 mov r0, r3 - 8001d0c: 3708 adds r7, #8 - 8001d0e: 46bd mov sp, r7 - 8001d10: bd80 pop {r7, pc} - 8001d12: bf00 nop - 8001d14: e000e010 .word 0xe000e010 + 8001d5e: 4618 mov r0, r3 + 8001d60: 3708 adds r7, #8 + 8001d62: 46bd mov sp, r7 + 8001d64: bd80 pop {r7, pc} + 8001d66: bf00 nop + 8001d68: e000e010 .word 0xe000e010 -08001d18 : +08001d6c : * @note When the NVIC_PriorityGroup_0 is selected, IRQ preemption is no more possible. * The pending IRQ priority will be managed only by the subpriority. * @retval None */ void HAL_NVIC_SetPriorityGrouping(uint32_t PriorityGroup) { - 8001d18: b580 push {r7, lr} - 8001d1a: b082 sub sp, #8 - 8001d1c: af00 add r7, sp, #0 - 8001d1e: 6078 str r0, [r7, #4] + 8001d6c: b580 push {r7, lr} + 8001d6e: b082 sub sp, #8 + 8001d70: af00 add r7, sp, #0 + 8001d72: 6078 str r0, [r7, #4] /* Check the parameters */ assert_param(IS_NVIC_PRIORITY_GROUP(PriorityGroup)); /* Set the PRIGROUP[10:8] bits according to the PriorityGroup parameter value */ NVIC_SetPriorityGrouping(PriorityGroup); - 8001d20: 6878 ldr r0, [r7, #4] - 8001d22: f7ff ff29 bl 8001b78 <__NVIC_SetPriorityGrouping> -} - 8001d26: bf00 nop - 8001d28: 3708 adds r7, #8 - 8001d2a: 46bd mov sp, r7 - 8001d2c: bd80 pop {r7, pc} - -08001d2e : - * This parameter can be a value between 0 and 15 - * A lower priority value indicates a higher priority. - * @retval None - */ -void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority) -{ - 8001d2e: b580 push {r7, lr} - 8001d30: b086 sub sp, #24 - 8001d32: af00 add r7, sp, #0 - 8001d34: 4603 mov r3, r0 - 8001d36: 60b9 str r1, [r7, #8] - 8001d38: 607a str r2, [r7, #4] - 8001d3a: 73fb strb r3, [r7, #15] - uint32_t prioritygroup = 0x00U; - 8001d3c: 2300 movs r3, #0 - 8001d3e: 617b str r3, [r7, #20] - - /* Check the parameters */ - assert_param(IS_NVIC_SUB_PRIORITY(SubPriority)); - assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); - - prioritygroup = NVIC_GetPriorityGrouping(); - 8001d40: f7ff ff3e bl 8001bc0 <__NVIC_GetPriorityGrouping> - 8001d44: 6178 str r0, [r7, #20] - - NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); - 8001d46: 687a ldr r2, [r7, #4] - 8001d48: 68b9 ldr r1, [r7, #8] - 8001d4a: 6978 ldr r0, [r7, #20] - 8001d4c: f7ff ff8e bl 8001c6c - 8001d50: 4602 mov r2, r0 - 8001d52: f997 300f ldrsb.w r3, [r7, #15] - 8001d56: 4611 mov r1, r2 - 8001d58: 4618 mov r0, r3 - 8001d5a: f7ff ff5d bl 8001c18 <__NVIC_SetPriority> -} - 8001d5e: bf00 nop - 8001d60: 3718 adds r7, #24 - 8001d62: 46bd mov sp, r7 - 8001d64: bd80 pop {r7, pc} - -08001d66 : - * This parameter can be an enumerator of IRQn_Type enumeration - * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h)) - * @retval None - */ -void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) -{ - 8001d66: b580 push {r7, lr} - 8001d68: b082 sub sp, #8 - 8001d6a: af00 add r7, sp, #0 - 8001d6c: 4603 mov r3, r0 - 8001d6e: 71fb strb r3, [r7, #7] - /* Check the parameters */ - assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - - /* Enable interrupt */ - NVIC_EnableIRQ(IRQn); - 8001d70: f997 3007 ldrsb.w r3, [r7, #7] - 8001d74: 4618 mov r0, r3 - 8001d76: f7ff ff31 bl 8001bdc <__NVIC_EnableIRQ> + 8001d74: 6878 ldr r0, [r7, #4] + 8001d76: f7ff ff29 bl 8001bcc <__NVIC_SetPriorityGrouping> } 8001d7a: bf00 nop 8001d7c: 3708 adds r7, #8 8001d7e: 46bd mov sp, r7 8001d80: bd80 pop {r7, pc} -08001d82 : +08001d82 : + * This parameter can be a value between 0 and 15 + * A lower priority value indicates a higher priority. + * @retval None + */ +void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority) +{ + 8001d82: b580 push {r7, lr} + 8001d84: b086 sub sp, #24 + 8001d86: af00 add r7, sp, #0 + 8001d88: 4603 mov r3, r0 + 8001d8a: 60b9 str r1, [r7, #8] + 8001d8c: 607a str r2, [r7, #4] + 8001d8e: 73fb strb r3, [r7, #15] + uint32_t prioritygroup = 0x00U; + 8001d90: 2300 movs r3, #0 + 8001d92: 617b str r3, [r7, #20] + + /* Check the parameters */ + assert_param(IS_NVIC_SUB_PRIORITY(SubPriority)); + assert_param(IS_NVIC_PREEMPTION_PRIORITY(PreemptPriority)); + + prioritygroup = NVIC_GetPriorityGrouping(); + 8001d94: f7ff ff3e bl 8001c14 <__NVIC_GetPriorityGrouping> + 8001d98: 6178 str r0, [r7, #20] + + NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); + 8001d9a: 687a ldr r2, [r7, #4] + 8001d9c: 68b9 ldr r1, [r7, #8] + 8001d9e: 6978 ldr r0, [r7, #20] + 8001da0: f7ff ff8e bl 8001cc0 + 8001da4: 4602 mov r2, r0 + 8001da6: f997 300f ldrsb.w r3, [r7, #15] + 8001daa: 4611 mov r1, r2 + 8001dac: 4618 mov r0, r3 + 8001dae: f7ff ff5d bl 8001c6c <__NVIC_SetPriority> +} + 8001db2: bf00 nop + 8001db4: 3718 adds r7, #24 + 8001db6: 46bd mov sp, r7 + 8001db8: bd80 pop {r7, pc} + +08001dba : + * This parameter can be an enumerator of IRQn_Type enumeration + * (For the complete STM32 Devices IRQ Channels list, please refer to the appropriate CMSIS device file (stm32f4xxxx.h)) + * @retval None + */ +void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) +{ + 8001dba: b580 push {r7, lr} + 8001dbc: b082 sub sp, #8 + 8001dbe: af00 add r7, sp, #0 + 8001dc0: 4603 mov r3, r0 + 8001dc2: 71fb strb r3, [r7, #7] + /* Check the parameters */ + assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); + + /* Enable interrupt */ + NVIC_EnableIRQ(IRQn); + 8001dc4: f997 3007 ldrsb.w r3, [r7, #7] + 8001dc8: 4618 mov r0, r3 + 8001dca: f7ff ff31 bl 8001c30 <__NVIC_EnableIRQ> +} + 8001dce: bf00 nop + 8001dd0: 3708 adds r7, #8 + 8001dd2: 46bd mov sp, r7 + 8001dd4: bd80 pop {r7, pc} + +08001dd6 : * @param TicksNumb Specifies the ticks Number of ticks between two interrupts. * @retval status: - 0 Function succeeded. * - 1 Function failed. */ uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb) { - 8001d82: b580 push {r7, lr} - 8001d84: b082 sub sp, #8 - 8001d86: af00 add r7, sp, #0 - 8001d88: 6078 str r0, [r7, #4] + 8001dd6: b580 push {r7, lr} + 8001dd8: b082 sub sp, #8 + 8001dda: af00 add r7, sp, #0 + 8001ddc: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); - 8001d8a: 6878 ldr r0, [r7, #4] - 8001d8c: f7ff ffa2 bl 8001cd4 - 8001d90: 4603 mov r3, r0 + 8001dde: 6878 ldr r0, [r7, #4] + 8001de0: f7ff ffa2 bl 8001d28 + 8001de4: 4603 mov r3, r0 } - 8001d92: 4618 mov r0, r3 - 8001d94: 3708 adds r7, #8 - 8001d96: 46bd mov sp, r7 - 8001d98: bd80 pop {r7, pc} + 8001de6: 4618 mov r0, r3 + 8001de8: 3708 adds r7, #8 + 8001dea: 46bd mov sp, r7 + 8001dec: bd80 pop {r7, pc} ... -08001d9c : +08001df0 : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Init(DMA_HandleTypeDef *hdma) { - 8001d9c: b580 push {r7, lr} - 8001d9e: b086 sub sp, #24 - 8001da0: af00 add r7, sp, #0 - 8001da2: 6078 str r0, [r7, #4] + 8001df0: b580 push {r7, lr} + 8001df2: b086 sub sp, #24 + 8001df4: af00 add r7, sp, #0 + 8001df6: 6078 str r0, [r7, #4] uint32_t tmp = 0U; - 8001da4: 2300 movs r3, #0 - 8001da6: 617b str r3, [r7, #20] + 8001df8: 2300 movs r3, #0 + 8001dfa: 617b str r3, [r7, #20] uint32_t tickstart = HAL_GetTick(); - 8001da8: f7ff feb6 bl 8001b18 - 8001dac: 6138 str r0, [r7, #16] + 8001dfc: f7ff feb6 bl 8001b6c + 8001e00: 6138 str r0, [r7, #16] DMA_Base_Registers *regs; /* Check the DMA peripheral state */ if(hdma == NULL) - 8001dae: 687b ldr r3, [r7, #4] - 8001db0: 2b00 cmp r3, #0 - 8001db2: d101 bne.n 8001db8 + 8001e02: 687b ldr r3, [r7, #4] + 8001e04: 2b00 cmp r3, #0 + 8001e06: d101 bne.n 8001e0c { return HAL_ERROR; - 8001db4: 2301 movs r3, #1 - 8001db6: e099 b.n 8001eec + 8001e08: 2301 movs r3, #1 + 8001e0a: e099 b.n 8001f40 assert_param(IS_DMA_MEMORY_BURST(hdma->Init.MemBurst)); assert_param(IS_DMA_PERIPHERAL_BURST(hdma->Init.PeriphBurst)); } /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_BUSY; - 8001db8: 687b ldr r3, [r7, #4] - 8001dba: 2202 movs r2, #2 - 8001dbc: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8001e0c: 687b ldr r3, [r7, #4] + 8001e0e: 2202 movs r2, #2 + 8001e10: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Allocate lock resource */ __HAL_UNLOCK(hdma); - 8001dc0: 687b ldr r3, [r7, #4] - 8001dc2: 2200 movs r2, #0 - 8001dc4: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 8001e14: 687b ldr r3, [r7, #4] + 8001e16: 2200 movs r2, #0 + 8001e18: f883 2034 strb.w r2, [r3, #52] @ 0x34 /* Disable the peripheral */ __HAL_DMA_DISABLE(hdma); - 8001dc8: 687b ldr r3, [r7, #4] - 8001dca: 681b ldr r3, [r3, #0] - 8001dcc: 681a ldr r2, [r3, #0] - 8001dce: 687b ldr r3, [r7, #4] - 8001dd0: 681b ldr r3, [r3, #0] - 8001dd2: f022 0201 bic.w r2, r2, #1 - 8001dd6: 601a str r2, [r3, #0] + 8001e1c: 687b ldr r3, [r7, #4] + 8001e1e: 681b ldr r3, [r3, #0] + 8001e20: 681a ldr r2, [r3, #0] + 8001e22: 687b ldr r3, [r7, #4] + 8001e24: 681b ldr r3, [r3, #0] + 8001e26: f022 0201 bic.w r2, r2, #1 + 8001e2a: 601a str r2, [r3, #0] /* Check if the DMA Stream is effectively disabled */ while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) - 8001dd8: e00f b.n 8001dfa + 8001e2c: e00f b.n 8001e4e { /* Check for the Timeout */ if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT) - 8001dda: f7ff fe9d bl 8001b18 - 8001dde: 4602 mov r2, r0 - 8001de0: 693b ldr r3, [r7, #16] - 8001de2: 1ad3 subs r3, r2, r3 - 8001de4: 2b05 cmp r3, #5 - 8001de6: d908 bls.n 8001dfa + 8001e2e: f7ff fe9d bl 8001b6c + 8001e32: 4602 mov r2, r0 + 8001e34: 693b ldr r3, [r7, #16] + 8001e36: 1ad3 subs r3, r2, r3 + 8001e38: 2b05 cmp r3, #5 + 8001e3a: d908 bls.n 8001e4e { /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; - 8001de8: 687b ldr r3, [r7, #4] - 8001dea: 2220 movs r2, #32 - 8001dec: 655a str r2, [r3, #84] @ 0x54 + 8001e3c: 687b ldr r3, [r7, #4] + 8001e3e: 2220 movs r2, #32 + 8001e40: 655a str r2, [r3, #84] @ 0x54 /* Change the DMA state */ hdma->State = HAL_DMA_STATE_TIMEOUT; - 8001dee: 687b ldr r3, [r7, #4] - 8001df0: 2203 movs r2, #3 - 8001df2: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8001e42: 687b ldr r3, [r7, #4] + 8001e44: 2203 movs r2, #3 + 8001e46: f883 2035 strb.w r2, [r3, #53] @ 0x35 return HAL_TIMEOUT; - 8001df6: 2303 movs r3, #3 - 8001df8: e078 b.n 8001eec + 8001e4a: 2303 movs r3, #3 + 8001e4c: e078 b.n 8001f40 while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) - 8001dfa: 687b ldr r3, [r7, #4] - 8001dfc: 681b ldr r3, [r3, #0] - 8001dfe: 681b ldr r3, [r3, #0] - 8001e00: f003 0301 and.w r3, r3, #1 - 8001e04: 2b00 cmp r3, #0 - 8001e06: d1e8 bne.n 8001dda + 8001e4e: 687b ldr r3, [r7, #4] + 8001e50: 681b ldr r3, [r3, #0] + 8001e52: 681b ldr r3, [r3, #0] + 8001e54: f003 0301 and.w r3, r3, #1 + 8001e58: 2b00 cmp r3, #0 + 8001e5a: d1e8 bne.n 8001e2e } } /* Get the CR register value */ tmp = hdma->Instance->CR; - 8001e08: 687b ldr r3, [r7, #4] - 8001e0a: 681b ldr r3, [r3, #0] - 8001e0c: 681b ldr r3, [r3, #0] - 8001e0e: 617b str r3, [r7, #20] + 8001e5c: 687b ldr r3, [r7, #4] + 8001e5e: 681b ldr r3, [r3, #0] + 8001e60: 681b ldr r3, [r3, #0] + 8001e62: 617b str r3, [r7, #20] /* Clear CHSEL, MBURST, PBURST, PL, MSIZE, PSIZE, MINC, PINC, CIRC, DIR, CT and DBM bits */ tmp &= ((uint32_t)~(DMA_SxCR_CHSEL | DMA_SxCR_MBURST | DMA_SxCR_PBURST | \ - 8001e10: 697a ldr r2, [r7, #20] - 8001e12: 4b38 ldr r3, [pc, #224] @ (8001ef4 ) - 8001e14: 4013 ands r3, r2 - 8001e16: 617b str r3, [r7, #20] + 8001e64: 697a ldr r2, [r7, #20] + 8001e66: 4b38 ldr r3, [pc, #224] @ (8001f48 ) + 8001e68: 4013 ands r3, r2 + 8001e6a: 617b str r3, [r7, #20] DMA_SxCR_PL | DMA_SxCR_MSIZE | DMA_SxCR_PSIZE | \ DMA_SxCR_MINC | DMA_SxCR_PINC | DMA_SxCR_CIRC | \ DMA_SxCR_DIR | DMA_SxCR_CT | DMA_SxCR_DBM)); /* Prepare the DMA Stream configuration */ tmp |= hdma->Init.Channel | hdma->Init.Direction | - 8001e18: 687b ldr r3, [r7, #4] - 8001e1a: 685a ldr r2, [r3, #4] - 8001e1c: 687b ldr r3, [r7, #4] - 8001e1e: 689b ldr r3, [r3, #8] - 8001e20: 431a orrs r2, r3 + 8001e6c: 687b ldr r3, [r7, #4] + 8001e6e: 685a ldr r2, [r3, #4] + 8001e70: 687b ldr r3, [r7, #4] + 8001e72: 689b ldr r3, [r3, #8] + 8001e74: 431a orrs r2, r3 hdma->Init.PeriphInc | hdma->Init.MemInc | - 8001e22: 687b ldr r3, [r7, #4] - 8001e24: 68db ldr r3, [r3, #12] + 8001e76: 687b ldr r3, [r7, #4] + 8001e78: 68db ldr r3, [r3, #12] tmp |= hdma->Init.Channel | hdma->Init.Direction | - 8001e26: 431a orrs r2, r3 + 8001e7a: 431a orrs r2, r3 hdma->Init.PeriphInc | hdma->Init.MemInc | - 8001e28: 687b ldr r3, [r7, #4] - 8001e2a: 691b ldr r3, [r3, #16] - 8001e2c: 431a orrs r2, r3 + 8001e7c: 687b ldr r3, [r7, #4] + 8001e7e: 691b ldr r3, [r3, #16] + 8001e80: 431a orrs r2, r3 hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 8001e2e: 687b ldr r3, [r7, #4] - 8001e30: 695b ldr r3, [r3, #20] + 8001e82: 687b ldr r3, [r7, #4] + 8001e84: 695b ldr r3, [r3, #20] hdma->Init.PeriphInc | hdma->Init.MemInc | - 8001e32: 431a orrs r2, r3 + 8001e86: 431a orrs r2, r3 hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 8001e34: 687b ldr r3, [r7, #4] - 8001e36: 699b ldr r3, [r3, #24] - 8001e38: 431a orrs r2, r3 + 8001e88: 687b ldr r3, [r7, #4] + 8001e8a: 699b ldr r3, [r3, #24] + 8001e8c: 431a orrs r2, r3 hdma->Init.Mode | hdma->Init.Priority; - 8001e3a: 687b ldr r3, [r7, #4] - 8001e3c: 69db ldr r3, [r3, #28] + 8001e8e: 687b ldr r3, [r7, #4] + 8001e90: 69db ldr r3, [r3, #28] hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 8001e3e: 431a orrs r2, r3 + 8001e92: 431a orrs r2, r3 hdma->Init.Mode | hdma->Init.Priority; - 8001e40: 687b ldr r3, [r7, #4] - 8001e42: 6a1b ldr r3, [r3, #32] - 8001e44: 4313 orrs r3, r2 + 8001e94: 687b ldr r3, [r7, #4] + 8001e96: 6a1b ldr r3, [r3, #32] + 8001e98: 4313 orrs r3, r2 tmp |= hdma->Init.Channel | hdma->Init.Direction | - 8001e46: 697a ldr r2, [r7, #20] - 8001e48: 4313 orrs r3, r2 - 8001e4a: 617b str r3, [r7, #20] + 8001e9a: 697a ldr r2, [r7, #20] + 8001e9c: 4313 orrs r3, r2 + 8001e9e: 617b str r3, [r7, #20] /* the Memory burst and peripheral burst are not used when the FIFO is disabled */ if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE) - 8001e4c: 687b ldr r3, [r7, #4] - 8001e4e: 6a5b ldr r3, [r3, #36] @ 0x24 - 8001e50: 2b04 cmp r3, #4 - 8001e52: d107 bne.n 8001e64 + 8001ea0: 687b ldr r3, [r7, #4] + 8001ea2: 6a5b ldr r3, [r3, #36] @ 0x24 + 8001ea4: 2b04 cmp r3, #4 + 8001ea6: d107 bne.n 8001eb8 { /* Get memory burst and peripheral burst */ tmp |= hdma->Init.MemBurst | hdma->Init.PeriphBurst; - 8001e54: 687b ldr r3, [r7, #4] - 8001e56: 6ada ldr r2, [r3, #44] @ 0x2c - 8001e58: 687b ldr r3, [r7, #4] - 8001e5a: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001e5c: 4313 orrs r3, r2 - 8001e5e: 697a ldr r2, [r7, #20] - 8001e60: 4313 orrs r3, r2 - 8001e62: 617b str r3, [r7, #20] + 8001ea8: 687b ldr r3, [r7, #4] + 8001eaa: 6ada ldr r2, [r3, #44] @ 0x2c + 8001eac: 687b ldr r3, [r7, #4] + 8001eae: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001eb0: 4313 orrs r3, r2 + 8001eb2: 697a ldr r2, [r7, #20] + 8001eb4: 4313 orrs r3, r2 + 8001eb6: 617b str r3, [r7, #20] } /* Write to DMA Stream CR register */ hdma->Instance->CR = tmp; - 8001e64: 687b ldr r3, [r7, #4] - 8001e66: 681b ldr r3, [r3, #0] - 8001e68: 697a ldr r2, [r7, #20] - 8001e6a: 601a str r2, [r3, #0] + 8001eb8: 687b ldr r3, [r7, #4] + 8001eba: 681b ldr r3, [r3, #0] + 8001ebc: 697a ldr r2, [r7, #20] + 8001ebe: 601a str r2, [r3, #0] /* Get the FCR register value */ tmp = hdma->Instance->FCR; - 8001e6c: 687b ldr r3, [r7, #4] - 8001e6e: 681b ldr r3, [r3, #0] - 8001e70: 695b ldr r3, [r3, #20] - 8001e72: 617b str r3, [r7, #20] + 8001ec0: 687b ldr r3, [r7, #4] + 8001ec2: 681b ldr r3, [r3, #0] + 8001ec4: 695b ldr r3, [r3, #20] + 8001ec6: 617b str r3, [r7, #20] /* Clear Direct mode and FIFO threshold bits */ tmp &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH); - 8001e74: 697b ldr r3, [r7, #20] - 8001e76: f023 0307 bic.w r3, r3, #7 - 8001e7a: 617b str r3, [r7, #20] + 8001ec8: 697b ldr r3, [r7, #20] + 8001eca: f023 0307 bic.w r3, r3, #7 + 8001ece: 617b str r3, [r7, #20] /* Prepare the DMA Stream FIFO configuration */ tmp |= hdma->Init.FIFOMode; - 8001e7c: 687b ldr r3, [r7, #4] - 8001e7e: 6a5b ldr r3, [r3, #36] @ 0x24 - 8001e80: 697a ldr r2, [r7, #20] - 8001e82: 4313 orrs r3, r2 - 8001e84: 617b str r3, [r7, #20] + 8001ed0: 687b ldr r3, [r7, #4] + 8001ed2: 6a5b ldr r3, [r3, #36] @ 0x24 + 8001ed4: 697a ldr r2, [r7, #20] + 8001ed6: 4313 orrs r3, r2 + 8001ed8: 617b str r3, [r7, #20] /* The FIFO threshold is not used when the FIFO mode is disabled */ if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE) - 8001e86: 687b ldr r3, [r7, #4] - 8001e88: 6a5b ldr r3, [r3, #36] @ 0x24 - 8001e8a: 2b04 cmp r3, #4 - 8001e8c: d117 bne.n 8001ebe + 8001eda: 687b ldr r3, [r7, #4] + 8001edc: 6a5b ldr r3, [r3, #36] @ 0x24 + 8001ede: 2b04 cmp r3, #4 + 8001ee0: d117 bne.n 8001f12 { /* Get the FIFO threshold */ tmp |= hdma->Init.FIFOThreshold; - 8001e8e: 687b ldr r3, [r7, #4] - 8001e90: 6a9b ldr r3, [r3, #40] @ 0x28 - 8001e92: 697a ldr r2, [r7, #20] - 8001e94: 4313 orrs r3, r2 - 8001e96: 617b str r3, [r7, #20] + 8001ee2: 687b ldr r3, [r7, #4] + 8001ee4: 6a9b ldr r3, [r3, #40] @ 0x28 + 8001ee6: 697a ldr r2, [r7, #20] + 8001ee8: 4313 orrs r3, r2 + 8001eea: 617b str r3, [r7, #20] /* Check compatibility between FIFO threshold level and size of the memory burst */ /* for INCR4, INCR8, INCR16 bursts */ if (hdma->Init.MemBurst != DMA_MBURST_SINGLE) - 8001e98: 687b ldr r3, [r7, #4] - 8001e9a: 6adb ldr r3, [r3, #44] @ 0x2c - 8001e9c: 2b00 cmp r3, #0 - 8001e9e: d00e beq.n 8001ebe + 8001eec: 687b ldr r3, [r7, #4] + 8001eee: 6adb ldr r3, [r3, #44] @ 0x2c + 8001ef0: 2b00 cmp r3, #0 + 8001ef2: d00e beq.n 8001f12 { if (DMA_CheckFifoParam(hdma) != HAL_OK) - 8001ea0: 6878 ldr r0, [r7, #4] - 8001ea2: f000 fb01 bl 80024a8 - 8001ea6: 4603 mov r3, r0 - 8001ea8: 2b00 cmp r3, #0 - 8001eaa: d008 beq.n 8001ebe + 8001ef4: 6878 ldr r0, [r7, #4] + 8001ef6: f000 fb01 bl 80024fc + 8001efa: 4603 mov r3, r0 + 8001efc: 2b00 cmp r3, #0 + 8001efe: d008 beq.n 8001f12 { /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_PARAM; - 8001eac: 687b ldr r3, [r7, #4] - 8001eae: 2240 movs r2, #64 @ 0x40 - 8001eb0: 655a str r2, [r3, #84] @ 0x54 + 8001f00: 687b ldr r3, [r7, #4] + 8001f02: 2240 movs r2, #64 @ 0x40 + 8001f04: 655a str r2, [r3, #84] @ 0x54 /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 8001eb2: 687b ldr r3, [r7, #4] - 8001eb4: 2201 movs r2, #1 - 8001eb6: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8001f06: 687b ldr r3, [r7, #4] + 8001f08: 2201 movs r2, #1 + 8001f0a: f883 2035 strb.w r2, [r3, #53] @ 0x35 return HAL_ERROR; - 8001eba: 2301 movs r3, #1 - 8001ebc: e016 b.n 8001eec + 8001f0e: 2301 movs r3, #1 + 8001f10: e016 b.n 8001f40 } } } /* Write to DMA Stream FCR */ hdma->Instance->FCR = tmp; - 8001ebe: 687b ldr r3, [r7, #4] - 8001ec0: 681b ldr r3, [r3, #0] - 8001ec2: 697a ldr r2, [r7, #20] - 8001ec4: 615a str r2, [r3, #20] + 8001f12: 687b ldr r3, [r7, #4] + 8001f14: 681b ldr r3, [r3, #0] + 8001f16: 697a ldr r2, [r7, #20] + 8001f18: 615a str r2, [r3, #20] /* Initialize StreamBaseAddress and StreamIndex parameters to be used to calculate DMA steam Base Address needed by HAL_DMA_IRQHandler() and HAL_DMA_PollForTransfer() */ regs = (DMA_Base_Registers *)DMA_CalcBaseAndBitshift(hdma); - 8001ec6: 6878 ldr r0, [r7, #4] - 8001ec8: f000 fab8 bl 800243c - 8001ecc: 4603 mov r3, r0 - 8001ece: 60fb str r3, [r7, #12] + 8001f1a: 6878 ldr r0, [r7, #4] + 8001f1c: f000 fab8 bl 8002490 + 8001f20: 4603 mov r3, r0 + 8001f22: 60fb str r3, [r7, #12] /* Clear all interrupt flags */ regs->IFCR = 0x3FU << hdma->StreamIndex; - 8001ed0: 687b ldr r3, [r7, #4] - 8001ed2: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001ed4: 223f movs r2, #63 @ 0x3f - 8001ed6: 409a lsls r2, r3 - 8001ed8: 68fb ldr r3, [r7, #12] - 8001eda: 609a str r2, [r3, #8] + 8001f24: 687b ldr r3, [r7, #4] + 8001f26: 6ddb ldr r3, [r3, #92] @ 0x5c + 8001f28: 223f movs r2, #63 @ 0x3f + 8001f2a: 409a lsls r2, r3 + 8001f2c: 68fb ldr r3, [r7, #12] + 8001f2e: 609a str r2, [r3, #8] /* Initialize the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; - 8001edc: 687b ldr r3, [r7, #4] - 8001ede: 2200 movs r2, #0 - 8001ee0: 655a str r2, [r3, #84] @ 0x54 + 8001f30: 687b ldr r3, [r7, #4] + 8001f32: 2200 movs r2, #0 + 8001f34: 655a str r2, [r3, #84] @ 0x54 /* Initialize the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 8001ee2: 687b ldr r3, [r7, #4] - 8001ee4: 2201 movs r2, #1 - 8001ee6: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8001f36: 687b ldr r3, [r7, #4] + 8001f38: 2201 movs r2, #1 + 8001f3a: f883 2035 strb.w r2, [r3, #53] @ 0x35 return HAL_OK; - 8001eea: 2300 movs r3, #0 + 8001f3e: 2300 movs r3, #0 } - 8001eec: 4618 mov r0, r3 - 8001eee: 3718 adds r7, #24 - 8001ef0: 46bd mov sp, r7 - 8001ef2: bd80 pop {r7, pc} - 8001ef4: f010803f .word 0xf010803f + 8001f40: 4618 mov r0, r3 + 8001f42: 3718 adds r7, #24 + 8001f44: 46bd mov sp, r7 + 8001f46: bd80 pop {r7, pc} + 8001f48: f010803f .word 0xf010803f -08001ef8 : +08001f4c : * @param DstAddress The destination memory Buffer address * @param DataLength The length of data to be transferred from source to destination * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Start_IT(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) { - 8001ef8: b580 push {r7, lr} - 8001efa: b086 sub sp, #24 - 8001efc: af00 add r7, sp, #0 - 8001efe: 60f8 str r0, [r7, #12] - 8001f00: 60b9 str r1, [r7, #8] - 8001f02: 607a str r2, [r7, #4] - 8001f04: 603b str r3, [r7, #0] + 8001f4c: b580 push {r7, lr} + 8001f4e: b086 sub sp, #24 + 8001f50: af00 add r7, sp, #0 + 8001f52: 60f8 str r0, [r7, #12] + 8001f54: 60b9 str r1, [r7, #8] + 8001f56: 607a str r2, [r7, #4] + 8001f58: 603b str r3, [r7, #0] HAL_StatusTypeDef status = HAL_OK; - 8001f06: 2300 movs r3, #0 - 8001f08: 75fb strb r3, [r7, #23] + 8001f5a: 2300 movs r3, #0 + 8001f5c: 75fb strb r3, [r7, #23] /* calculate DMA base and stream number */ DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress; - 8001f0a: 68fb ldr r3, [r7, #12] - 8001f0c: 6d9b ldr r3, [r3, #88] @ 0x58 - 8001f0e: 613b str r3, [r7, #16] + 8001f5e: 68fb ldr r3, [r7, #12] + 8001f60: 6d9b ldr r3, [r3, #88] @ 0x58 + 8001f62: 613b str r3, [r7, #16] /* Check the parameters */ assert_param(IS_DMA_BUFFER_SIZE(DataLength)); /* Process locked */ __HAL_LOCK(hdma); - 8001f10: 68fb ldr r3, [r7, #12] - 8001f12: f893 3034 ldrb.w r3, [r3, #52] @ 0x34 - 8001f16: 2b01 cmp r3, #1 - 8001f18: d101 bne.n 8001f1e - 8001f1a: 2302 movs r3, #2 - 8001f1c: e040 b.n 8001fa0 - 8001f1e: 68fb ldr r3, [r7, #12] - 8001f20: 2201 movs r2, #1 - 8001f22: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 8001f64: 68fb ldr r3, [r7, #12] + 8001f66: f893 3034 ldrb.w r3, [r3, #52] @ 0x34 + 8001f6a: 2b01 cmp r3, #1 + 8001f6c: d101 bne.n 8001f72 + 8001f6e: 2302 movs r3, #2 + 8001f70: e040 b.n 8001ff4 + 8001f72: 68fb ldr r3, [r7, #12] + 8001f74: 2201 movs r2, #1 + 8001f76: f883 2034 strb.w r2, [r3, #52] @ 0x34 if(HAL_DMA_STATE_READY == hdma->State) - 8001f26: 68fb ldr r3, [r7, #12] - 8001f28: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 - 8001f2c: b2db uxtb r3, r3 - 8001f2e: 2b01 cmp r3, #1 - 8001f30: d12f bne.n 8001f92 + 8001f7a: 68fb ldr r3, [r7, #12] + 8001f7c: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 + 8001f80: b2db uxtb r3, r3 + 8001f82: 2b01 cmp r3, #1 + 8001f84: d12f bne.n 8001fe6 { /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_BUSY; - 8001f32: 68fb ldr r3, [r7, #12] - 8001f34: 2202 movs r2, #2 - 8001f36: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8001f86: 68fb ldr r3, [r7, #12] + 8001f88: 2202 movs r2, #2 + 8001f8a: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Initialize the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; - 8001f3a: 68fb ldr r3, [r7, #12] - 8001f3c: 2200 movs r2, #0 - 8001f3e: 655a str r2, [r3, #84] @ 0x54 + 8001f8e: 68fb ldr r3, [r7, #12] + 8001f90: 2200 movs r2, #0 + 8001f92: 655a str r2, [r3, #84] @ 0x54 /* Configure the source, destination address and the data length */ DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength); - 8001f40: 683b ldr r3, [r7, #0] - 8001f42: 687a ldr r2, [r7, #4] - 8001f44: 68b9 ldr r1, [r7, #8] - 8001f46: 68f8 ldr r0, [r7, #12] - 8001f48: f000 fa4a bl 80023e0 + 8001f94: 683b ldr r3, [r7, #0] + 8001f96: 687a ldr r2, [r7, #4] + 8001f98: 68b9 ldr r1, [r7, #8] + 8001f9a: 68f8 ldr r0, [r7, #12] + 8001f9c: f000 fa4a bl 8002434 /* Clear all interrupt flags at correct offset within the register */ regs->IFCR = 0x3FU << hdma->StreamIndex; - 8001f4c: 68fb ldr r3, [r7, #12] - 8001f4e: 6ddb ldr r3, [r3, #92] @ 0x5c - 8001f50: 223f movs r2, #63 @ 0x3f - 8001f52: 409a lsls r2, r3 - 8001f54: 693b ldr r3, [r7, #16] - 8001f56: 609a str r2, [r3, #8] + 8001fa0: 68fb ldr r3, [r7, #12] + 8001fa2: 6ddb ldr r3, [r3, #92] @ 0x5c + 8001fa4: 223f movs r2, #63 @ 0x3f + 8001fa6: 409a lsls r2, r3 + 8001fa8: 693b ldr r3, [r7, #16] + 8001faa: 609a str r2, [r3, #8] /* Enable Common interrupts*/ hdma->Instance->CR |= DMA_IT_TC | DMA_IT_TE | DMA_IT_DME; - 8001f58: 68fb ldr r3, [r7, #12] - 8001f5a: 681b ldr r3, [r3, #0] - 8001f5c: 681a ldr r2, [r3, #0] - 8001f5e: 68fb ldr r3, [r7, #12] - 8001f60: 681b ldr r3, [r3, #0] - 8001f62: f042 0216 orr.w r2, r2, #22 - 8001f66: 601a str r2, [r3, #0] + 8001fac: 68fb ldr r3, [r7, #12] + 8001fae: 681b ldr r3, [r3, #0] + 8001fb0: 681a ldr r2, [r3, #0] + 8001fb2: 68fb ldr r3, [r7, #12] + 8001fb4: 681b ldr r3, [r3, #0] + 8001fb6: f042 0216 orr.w r2, r2, #22 + 8001fba: 601a str r2, [r3, #0] if(hdma->XferHalfCpltCallback != NULL) - 8001f68: 68fb ldr r3, [r7, #12] - 8001f6a: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001f6c: 2b00 cmp r3, #0 - 8001f6e: d007 beq.n 8001f80 + 8001fbc: 68fb ldr r3, [r7, #12] + 8001fbe: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001fc0: 2b00 cmp r3, #0 + 8001fc2: d007 beq.n 8001fd4 { hdma->Instance->CR |= DMA_IT_HT; - 8001f70: 68fb ldr r3, [r7, #12] - 8001f72: 681b ldr r3, [r3, #0] - 8001f74: 681a ldr r2, [r3, #0] - 8001f76: 68fb ldr r3, [r7, #12] - 8001f78: 681b ldr r3, [r3, #0] - 8001f7a: f042 0208 orr.w r2, r2, #8 - 8001f7e: 601a str r2, [r3, #0] + 8001fc4: 68fb ldr r3, [r7, #12] + 8001fc6: 681b ldr r3, [r3, #0] + 8001fc8: 681a ldr r2, [r3, #0] + 8001fca: 68fb ldr r3, [r7, #12] + 8001fcc: 681b ldr r3, [r3, #0] + 8001fce: f042 0208 orr.w r2, r2, #8 + 8001fd2: 601a str r2, [r3, #0] } /* Enable the Peripheral */ __HAL_DMA_ENABLE(hdma); - 8001f80: 68fb ldr r3, [r7, #12] - 8001f82: 681b ldr r3, [r3, #0] - 8001f84: 681a ldr r2, [r3, #0] - 8001f86: 68fb ldr r3, [r7, #12] - 8001f88: 681b ldr r3, [r3, #0] - 8001f8a: f042 0201 orr.w r2, r2, #1 - 8001f8e: 601a str r2, [r3, #0] - 8001f90: e005 b.n 8001f9e + 8001fd4: 68fb ldr r3, [r7, #12] + 8001fd6: 681b ldr r3, [r3, #0] + 8001fd8: 681a ldr r2, [r3, #0] + 8001fda: 68fb ldr r3, [r7, #12] + 8001fdc: 681b ldr r3, [r3, #0] + 8001fde: f042 0201 orr.w r2, r2, #1 + 8001fe2: 601a str r2, [r3, #0] + 8001fe4: e005 b.n 8001ff2 } else { /* Process unlocked */ __HAL_UNLOCK(hdma); - 8001f92: 68fb ldr r3, [r7, #12] - 8001f94: 2200 movs r2, #0 - 8001f96: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 8001fe6: 68fb ldr r3, [r7, #12] + 8001fe8: 2200 movs r2, #0 + 8001fea: f883 2034 strb.w r2, [r3, #52] @ 0x34 /* Return error status */ status = HAL_BUSY; - 8001f9a: 2302 movs r3, #2 - 8001f9c: 75fb strb r3, [r7, #23] + 8001fee: 2302 movs r3, #2 + 8001ff0: 75fb strb r3, [r7, #23] } return status; - 8001f9e: 7dfb ldrb r3, [r7, #23] + 8001ff2: 7dfb ldrb r3, [r7, #23] } - 8001fa0: 4618 mov r0, r3 - 8001fa2: 3718 adds r7, #24 - 8001fa4: 46bd mov sp, r7 - 8001fa6: bd80 pop {r7, pc} + 8001ff4: 4618 mov r0, r3 + 8001ff6: 3718 adds r7, #24 + 8001ff8: 46bd mov sp, r7 + 8001ffa: bd80 pop {r7, pc} -08001fa8 : +08001ffc : * and the Stream will be effectively disabled only after the transfer of * this single data is finished. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Abort(DMA_HandleTypeDef *hdma) { - 8001fa8: b580 push {r7, lr} - 8001faa: b084 sub sp, #16 - 8001fac: af00 add r7, sp, #0 - 8001fae: 6078 str r0, [r7, #4] + 8001ffc: b580 push {r7, lr} + 8001ffe: b084 sub sp, #16 + 8002000: af00 add r7, sp, #0 + 8002002: 6078 str r0, [r7, #4] /* calculate DMA base and stream number */ DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress; - 8001fb0: 687b ldr r3, [r7, #4] - 8001fb2: 6d9b ldr r3, [r3, #88] @ 0x58 - 8001fb4: 60fb str r3, [r7, #12] + 8002004: 687b ldr r3, [r7, #4] + 8002006: 6d9b ldr r3, [r3, #88] @ 0x58 + 8002008: 60fb str r3, [r7, #12] uint32_t tickstart = HAL_GetTick(); - 8001fb6: f7ff fdaf bl 8001b18 - 8001fba: 60b8 str r0, [r7, #8] + 800200a: f7ff fdaf bl 8001b6c + 800200e: 60b8 str r0, [r7, #8] if(hdma->State != HAL_DMA_STATE_BUSY) - 8001fbc: 687b ldr r3, [r7, #4] - 8001fbe: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 - 8001fc2: b2db uxtb r3, r3 - 8001fc4: 2b02 cmp r3, #2 - 8001fc6: d008 beq.n 8001fda + 8002010: 687b ldr r3, [r7, #4] + 8002012: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 + 8002016: b2db uxtb r3, r3 + 8002018: 2b02 cmp r3, #2 + 800201a: d008 beq.n 800202e { hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 8001fc8: 687b ldr r3, [r7, #4] - 8001fca: 2280 movs r2, #128 @ 0x80 - 8001fcc: 655a str r2, [r3, #84] @ 0x54 + 800201c: 687b ldr r3, [r7, #4] + 800201e: 2280 movs r2, #128 @ 0x80 + 8002020: 655a str r2, [r3, #84] @ 0x54 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 8001fce: 687b ldr r3, [r7, #4] - 8001fd0: 2200 movs r2, #0 - 8001fd2: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 8002022: 687b ldr r3, [r7, #4] + 8002024: 2200 movs r2, #0 + 8002026: f883 2034 strb.w r2, [r3, #52] @ 0x34 return HAL_ERROR; - 8001fd6: 2301 movs r3, #1 - 8001fd8: e052 b.n 8002080 + 800202a: 2301 movs r3, #1 + 800202c: e052 b.n 80020d4 } else { /* Disable all the transfer interrupts */ hdma->Instance->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME); - 8001fda: 687b ldr r3, [r7, #4] - 8001fdc: 681b ldr r3, [r3, #0] - 8001fde: 681a ldr r2, [r3, #0] - 8001fe0: 687b ldr r3, [r7, #4] - 8001fe2: 681b ldr r3, [r3, #0] - 8001fe4: f022 0216 bic.w r2, r2, #22 - 8001fe8: 601a str r2, [r3, #0] + 800202e: 687b ldr r3, [r7, #4] + 8002030: 681b ldr r3, [r3, #0] + 8002032: 681a ldr r2, [r3, #0] + 8002034: 687b ldr r3, [r7, #4] + 8002036: 681b ldr r3, [r3, #0] + 8002038: f022 0216 bic.w r2, r2, #22 + 800203c: 601a str r2, [r3, #0] hdma->Instance->FCR &= ~(DMA_IT_FE); - 8001fea: 687b ldr r3, [r7, #4] - 8001fec: 681b ldr r3, [r3, #0] - 8001fee: 695a ldr r2, [r3, #20] - 8001ff0: 687b ldr r3, [r7, #4] - 8001ff2: 681b ldr r3, [r3, #0] - 8001ff4: f022 0280 bic.w r2, r2, #128 @ 0x80 - 8001ff8: 615a str r2, [r3, #20] + 800203e: 687b ldr r3, [r7, #4] + 8002040: 681b ldr r3, [r3, #0] + 8002042: 695a ldr r2, [r3, #20] + 8002044: 687b ldr r3, [r7, #4] + 8002046: 681b ldr r3, [r3, #0] + 8002048: f022 0280 bic.w r2, r2, #128 @ 0x80 + 800204c: 615a str r2, [r3, #20] if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL)) - 8001ffa: 687b ldr r3, [r7, #4] - 8001ffc: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001ffe: 2b00 cmp r3, #0 - 8002000: d103 bne.n 800200a - 8002002: 687b ldr r3, [r7, #4] - 8002004: 6c9b ldr r3, [r3, #72] @ 0x48 - 8002006: 2b00 cmp r3, #0 - 8002008: d007 beq.n 800201a + 800204e: 687b ldr r3, [r7, #4] + 8002050: 6c1b ldr r3, [r3, #64] @ 0x40 + 8002052: 2b00 cmp r3, #0 + 8002054: d103 bne.n 800205e + 8002056: 687b ldr r3, [r7, #4] + 8002058: 6c9b ldr r3, [r3, #72] @ 0x48 + 800205a: 2b00 cmp r3, #0 + 800205c: d007 beq.n 800206e { hdma->Instance->CR &= ~(DMA_IT_HT); - 800200a: 687b ldr r3, [r7, #4] - 800200c: 681b ldr r3, [r3, #0] - 800200e: 681a ldr r2, [r3, #0] - 8002010: 687b ldr r3, [r7, #4] - 8002012: 681b ldr r3, [r3, #0] - 8002014: f022 0208 bic.w r2, r2, #8 - 8002018: 601a str r2, [r3, #0] + 800205e: 687b ldr r3, [r7, #4] + 8002060: 681b ldr r3, [r3, #0] + 8002062: 681a ldr r2, [r3, #0] + 8002064: 687b ldr r3, [r7, #4] + 8002066: 681b ldr r3, [r3, #0] + 8002068: f022 0208 bic.w r2, r2, #8 + 800206c: 601a str r2, [r3, #0] } /* Disable the stream */ __HAL_DMA_DISABLE(hdma); - 800201a: 687b ldr r3, [r7, #4] - 800201c: 681b ldr r3, [r3, #0] - 800201e: 681a ldr r2, [r3, #0] - 8002020: 687b ldr r3, [r7, #4] - 8002022: 681b ldr r3, [r3, #0] - 8002024: f022 0201 bic.w r2, r2, #1 - 8002028: 601a str r2, [r3, #0] + 800206e: 687b ldr r3, [r7, #4] + 8002070: 681b ldr r3, [r3, #0] + 8002072: 681a ldr r2, [r3, #0] + 8002074: 687b ldr r3, [r7, #4] + 8002076: 681b ldr r3, [r3, #0] + 8002078: f022 0201 bic.w r2, r2, #1 + 800207c: 601a str r2, [r3, #0] /* Check if the DMA Stream is effectively disabled */ while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) - 800202a: e013 b.n 8002054 + 800207e: e013 b.n 80020a8 { /* Check for the Timeout */ if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT) - 800202c: f7ff fd74 bl 8001b18 - 8002030: 4602 mov r2, r0 - 8002032: 68bb ldr r3, [r7, #8] - 8002034: 1ad3 subs r3, r2, r3 - 8002036: 2b05 cmp r3, #5 - 8002038: d90c bls.n 8002054 + 8002080: f7ff fd74 bl 8001b6c + 8002084: 4602 mov r2, r0 + 8002086: 68bb ldr r3, [r7, #8] + 8002088: 1ad3 subs r3, r2, r3 + 800208a: 2b05 cmp r3, #5 + 800208c: d90c bls.n 80020a8 { /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; - 800203a: 687b ldr r3, [r7, #4] - 800203c: 2220 movs r2, #32 - 800203e: 655a str r2, [r3, #84] @ 0x54 + 800208e: 687b ldr r3, [r7, #4] + 8002090: 2220 movs r2, #32 + 8002092: 655a str r2, [r3, #84] @ 0x54 /* Change the DMA state */ hdma->State = HAL_DMA_STATE_TIMEOUT; - 8002040: 687b ldr r3, [r7, #4] - 8002042: 2203 movs r2, #3 - 8002044: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8002094: 687b ldr r3, [r7, #4] + 8002096: 2203 movs r2, #3 + 8002098: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 8002048: 687b ldr r3, [r7, #4] - 800204a: 2200 movs r2, #0 - 800204c: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 800209c: 687b ldr r3, [r7, #4] + 800209e: 2200 movs r2, #0 + 80020a0: f883 2034 strb.w r2, [r3, #52] @ 0x34 return HAL_TIMEOUT; - 8002050: 2303 movs r3, #3 - 8002052: e015 b.n 8002080 + 80020a4: 2303 movs r3, #3 + 80020a6: e015 b.n 80020d4 while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) - 8002054: 687b ldr r3, [r7, #4] - 8002056: 681b ldr r3, [r3, #0] - 8002058: 681b ldr r3, [r3, #0] - 800205a: f003 0301 and.w r3, r3, #1 - 800205e: 2b00 cmp r3, #0 - 8002060: d1e4 bne.n 800202c + 80020a8: 687b ldr r3, [r7, #4] + 80020aa: 681b ldr r3, [r3, #0] + 80020ac: 681b ldr r3, [r3, #0] + 80020ae: f003 0301 and.w r3, r3, #1 + 80020b2: 2b00 cmp r3, #0 + 80020b4: d1e4 bne.n 8002080 } } /* Clear all interrupt flags at correct offset within the register */ regs->IFCR = 0x3FU << hdma->StreamIndex; - 8002062: 687b ldr r3, [r7, #4] - 8002064: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002066: 223f movs r2, #63 @ 0x3f - 8002068: 409a lsls r2, r3 - 800206a: 68fb ldr r3, [r7, #12] - 800206c: 609a str r2, [r3, #8] + 80020b6: 687b ldr r3, [r7, #4] + 80020b8: 6ddb ldr r3, [r3, #92] @ 0x5c + 80020ba: 223f movs r2, #63 @ 0x3f + 80020bc: 409a lsls r2, r3 + 80020be: 68fb ldr r3, [r7, #12] + 80020c0: 609a str r2, [r3, #8] /* Change the DMA state*/ hdma->State = HAL_DMA_STATE_READY; - 800206e: 687b ldr r3, [r7, #4] - 8002070: 2201 movs r2, #1 - 8002072: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 80020c2: 687b ldr r3, [r7, #4] + 80020c4: 2201 movs r2, #1 + 80020c6: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 8002076: 687b ldr r3, [r7, #4] - 8002078: 2200 movs r2, #0 - 800207a: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 80020ca: 687b ldr r3, [r7, #4] + 80020cc: 2200 movs r2, #0 + 80020ce: f883 2034 strb.w r2, [r3, #52] @ 0x34 } return HAL_OK; - 800207e: 2300 movs r3, #0 + 80020d2: 2300 movs r3, #0 } - 8002080: 4618 mov r0, r3 - 8002082: 3710 adds r7, #16 - 8002084: 46bd mov sp, r7 - 8002086: bd80 pop {r7, pc} + 80020d4: 4618 mov r0, r3 + 80020d6: 3710 adds r7, #16 + 80020d8: 46bd mov sp, r7 + 80020da: bd80 pop {r7, pc} -08002088 : +080020dc : * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval HAL status */ HAL_StatusTypeDef HAL_DMA_Abort_IT(DMA_HandleTypeDef *hdma) { - 8002088: b480 push {r7} - 800208a: b083 sub sp, #12 - 800208c: af00 add r7, sp, #0 - 800208e: 6078 str r0, [r7, #4] + 80020dc: b480 push {r7} + 80020de: b083 sub sp, #12 + 80020e0: af00 add r7, sp, #0 + 80020e2: 6078 str r0, [r7, #4] if(hdma->State != HAL_DMA_STATE_BUSY) - 8002090: 687b ldr r3, [r7, #4] - 8002092: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 - 8002096: b2db uxtb r3, r3 - 8002098: 2b02 cmp r3, #2 - 800209a: d004 beq.n 80020a6 + 80020e4: 687b ldr r3, [r7, #4] + 80020e6: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 + 80020ea: b2db uxtb r3, r3 + 80020ec: 2b02 cmp r3, #2 + 80020ee: d004 beq.n 80020fa { hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 800209c: 687b ldr r3, [r7, #4] - 800209e: 2280 movs r2, #128 @ 0x80 - 80020a0: 655a str r2, [r3, #84] @ 0x54 + 80020f0: 687b ldr r3, [r7, #4] + 80020f2: 2280 movs r2, #128 @ 0x80 + 80020f4: 655a str r2, [r3, #84] @ 0x54 return HAL_ERROR; - 80020a2: 2301 movs r3, #1 - 80020a4: e00c b.n 80020c0 + 80020f6: 2301 movs r3, #1 + 80020f8: e00c b.n 8002114 } else { /* Set Abort State */ hdma->State = HAL_DMA_STATE_ABORT; - 80020a6: 687b ldr r3, [r7, #4] - 80020a8: 2205 movs r2, #5 - 80020aa: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 80020fa: 687b ldr r3, [r7, #4] + 80020fc: 2205 movs r2, #5 + 80020fe: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Disable the stream */ __HAL_DMA_DISABLE(hdma); - 80020ae: 687b ldr r3, [r7, #4] - 80020b0: 681b ldr r3, [r3, #0] - 80020b2: 681a ldr r2, [r3, #0] - 80020b4: 687b ldr r3, [r7, #4] - 80020b6: 681b ldr r3, [r3, #0] - 80020b8: f022 0201 bic.w r2, r2, #1 - 80020bc: 601a str r2, [r3, #0] + 8002102: 687b ldr r3, [r7, #4] + 8002104: 681b ldr r3, [r3, #0] + 8002106: 681a ldr r2, [r3, #0] + 8002108: 687b ldr r3, [r7, #4] + 800210a: 681b ldr r3, [r3, #0] + 800210c: f022 0201 bic.w r2, r2, #1 + 8002110: 601a str r2, [r3, #0] } return HAL_OK; - 80020be: 2300 movs r3, #0 + 8002112: 2300 movs r3, #0 } - 80020c0: 4618 mov r0, r3 - 80020c2: 370c adds r7, #12 - 80020c4: 46bd mov sp, r7 - 80020c6: f85d 7b04 ldr.w r7, [sp], #4 - 80020ca: 4770 bx lr + 8002114: 4618 mov r0, r3 + 8002116: 370c adds r7, #12 + 8002118: 46bd mov sp, r7 + 800211a: f85d 7b04 ldr.w r7, [sp], #4 + 800211e: 4770 bx lr -080020cc : +08002120 : * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval None */ void HAL_DMA_IRQHandler(DMA_HandleTypeDef *hdma) { - 80020cc: b580 push {r7, lr} - 80020ce: b086 sub sp, #24 - 80020d0: af00 add r7, sp, #0 - 80020d2: 6078 str r0, [r7, #4] + 8002120: b580 push {r7, lr} + 8002122: b086 sub sp, #24 + 8002124: af00 add r7, sp, #0 + 8002126: 6078 str r0, [r7, #4] uint32_t tmpisr; __IO uint32_t count = 0U; - 80020d4: 2300 movs r3, #0 - 80020d6: 60bb str r3, [r7, #8] + 8002128: 2300 movs r3, #0 + 800212a: 60bb str r3, [r7, #8] uint32_t timeout = SystemCoreClock / 9600U; - 80020d8: 4b8e ldr r3, [pc, #568] @ (8002314 ) - 80020da: 681b ldr r3, [r3, #0] - 80020dc: 4a8e ldr r2, [pc, #568] @ (8002318 ) - 80020de: fba2 2303 umull r2, r3, r2, r3 - 80020e2: 0a9b lsrs r3, r3, #10 - 80020e4: 617b str r3, [r7, #20] + 800212c: 4b8e ldr r3, [pc, #568] @ (8002368 ) + 800212e: 681b ldr r3, [r3, #0] + 8002130: 4a8e ldr r2, [pc, #568] @ (800236c ) + 8002132: fba2 2303 umull r2, r3, r2, r3 + 8002136: 0a9b lsrs r3, r3, #10 + 8002138: 617b str r3, [r7, #20] /* calculate DMA base and stream number */ DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress; - 80020e6: 687b ldr r3, [r7, #4] - 80020e8: 6d9b ldr r3, [r3, #88] @ 0x58 - 80020ea: 613b str r3, [r7, #16] + 800213a: 687b ldr r3, [r7, #4] + 800213c: 6d9b ldr r3, [r3, #88] @ 0x58 + 800213e: 613b str r3, [r7, #16] tmpisr = regs->ISR; - 80020ec: 693b ldr r3, [r7, #16] - 80020ee: 681b ldr r3, [r3, #0] - 80020f0: 60fb str r3, [r7, #12] + 8002140: 693b ldr r3, [r7, #16] + 8002142: 681b ldr r3, [r3, #0] + 8002144: 60fb str r3, [r7, #12] /* Transfer Error Interrupt management ***************************************/ if ((tmpisr & (DMA_FLAG_TEIF0_4 << hdma->StreamIndex)) != RESET) - 80020f2: 687b ldr r3, [r7, #4] - 80020f4: 6ddb ldr r3, [r3, #92] @ 0x5c - 80020f6: 2208 movs r2, #8 - 80020f8: 409a lsls r2, r3 - 80020fa: 68fb ldr r3, [r7, #12] - 80020fc: 4013 ands r3, r2 - 80020fe: 2b00 cmp r3, #0 - 8002100: d01a beq.n 8002138 + 8002146: 687b ldr r3, [r7, #4] + 8002148: 6ddb ldr r3, [r3, #92] @ 0x5c + 800214a: 2208 movs r2, #8 + 800214c: 409a lsls r2, r3 + 800214e: 68fb ldr r3, [r7, #12] + 8002150: 4013 ands r3, r2 + 8002152: 2b00 cmp r3, #0 + 8002154: d01a beq.n 800218c { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != RESET) - 8002102: 687b ldr r3, [r7, #4] - 8002104: 681b ldr r3, [r3, #0] - 8002106: 681b ldr r3, [r3, #0] - 8002108: f003 0304 and.w r3, r3, #4 - 800210c: 2b00 cmp r3, #0 - 800210e: d013 beq.n 8002138 + 8002156: 687b ldr r3, [r7, #4] + 8002158: 681b ldr r3, [r3, #0] + 800215a: 681b ldr r3, [r3, #0] + 800215c: f003 0304 and.w r3, r3, #4 + 8002160: 2b00 cmp r3, #0 + 8002162: d013 beq.n 800218c { /* Disable the transfer error interrupt */ hdma->Instance->CR &= ~(DMA_IT_TE); - 8002110: 687b ldr r3, [r7, #4] - 8002112: 681b ldr r3, [r3, #0] - 8002114: 681a ldr r2, [r3, #0] - 8002116: 687b ldr r3, [r7, #4] - 8002118: 681b ldr r3, [r3, #0] - 800211a: f022 0204 bic.w r2, r2, #4 - 800211e: 601a str r2, [r3, #0] + 8002164: 687b ldr r3, [r7, #4] + 8002166: 681b ldr r3, [r3, #0] + 8002168: 681a ldr r2, [r3, #0] + 800216a: 687b ldr r3, [r7, #4] + 800216c: 681b ldr r3, [r3, #0] + 800216e: f022 0204 bic.w r2, r2, #4 + 8002172: 601a str r2, [r3, #0] /* Clear the transfer error flag */ regs->IFCR = DMA_FLAG_TEIF0_4 << hdma->StreamIndex; - 8002120: 687b ldr r3, [r7, #4] - 8002122: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002124: 2208 movs r2, #8 - 8002126: 409a lsls r2, r3 - 8002128: 693b ldr r3, [r7, #16] - 800212a: 609a str r2, [r3, #8] + 8002174: 687b ldr r3, [r7, #4] + 8002176: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002178: 2208 movs r2, #8 + 800217a: 409a lsls r2, r3 + 800217c: 693b ldr r3, [r7, #16] + 800217e: 609a str r2, [r3, #8] /* Update error code */ hdma->ErrorCode |= HAL_DMA_ERROR_TE; - 800212c: 687b ldr r3, [r7, #4] - 800212e: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002130: f043 0201 orr.w r2, r3, #1 - 8002134: 687b ldr r3, [r7, #4] - 8002136: 655a str r2, [r3, #84] @ 0x54 + 8002180: 687b ldr r3, [r7, #4] + 8002182: 6d5b ldr r3, [r3, #84] @ 0x54 + 8002184: f043 0201 orr.w r2, r3, #1 + 8002188: 687b ldr r3, [r7, #4] + 800218a: 655a str r2, [r3, #84] @ 0x54 } } /* FIFO Error Interrupt management ******************************************/ if ((tmpisr & (DMA_FLAG_FEIF0_4 << hdma->StreamIndex)) != RESET) - 8002138: 687b ldr r3, [r7, #4] - 800213a: 6ddb ldr r3, [r3, #92] @ 0x5c - 800213c: 2201 movs r2, #1 - 800213e: 409a lsls r2, r3 - 8002140: 68fb ldr r3, [r7, #12] - 8002142: 4013 ands r3, r2 - 8002144: 2b00 cmp r3, #0 - 8002146: d012 beq.n 800216e + 800218c: 687b ldr r3, [r7, #4] + 800218e: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002190: 2201 movs r2, #1 + 8002192: 409a lsls r2, r3 + 8002194: 68fb ldr r3, [r7, #12] + 8002196: 4013 ands r3, r2 + 8002198: 2b00 cmp r3, #0 + 800219a: d012 beq.n 80021c2 { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != RESET) - 8002148: 687b ldr r3, [r7, #4] - 800214a: 681b ldr r3, [r3, #0] - 800214c: 695b ldr r3, [r3, #20] - 800214e: f003 0380 and.w r3, r3, #128 @ 0x80 - 8002152: 2b00 cmp r3, #0 - 8002154: d00b beq.n 800216e + 800219c: 687b ldr r3, [r7, #4] + 800219e: 681b ldr r3, [r3, #0] + 80021a0: 695b ldr r3, [r3, #20] + 80021a2: f003 0380 and.w r3, r3, #128 @ 0x80 + 80021a6: 2b00 cmp r3, #0 + 80021a8: d00b beq.n 80021c2 { /* Clear the FIFO error flag */ regs->IFCR = DMA_FLAG_FEIF0_4 << hdma->StreamIndex; - 8002156: 687b ldr r3, [r7, #4] - 8002158: 6ddb ldr r3, [r3, #92] @ 0x5c - 800215a: 2201 movs r2, #1 - 800215c: 409a lsls r2, r3 - 800215e: 693b ldr r3, [r7, #16] - 8002160: 609a str r2, [r3, #8] + 80021aa: 687b ldr r3, [r7, #4] + 80021ac: 6ddb ldr r3, [r3, #92] @ 0x5c + 80021ae: 2201 movs r2, #1 + 80021b0: 409a lsls r2, r3 + 80021b2: 693b ldr r3, [r7, #16] + 80021b4: 609a str r2, [r3, #8] /* Update error code */ hdma->ErrorCode |= HAL_DMA_ERROR_FE; - 8002162: 687b ldr r3, [r7, #4] - 8002164: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002166: f043 0202 orr.w r2, r3, #2 - 800216a: 687b ldr r3, [r7, #4] - 800216c: 655a str r2, [r3, #84] @ 0x54 + 80021b6: 687b ldr r3, [r7, #4] + 80021b8: 6d5b ldr r3, [r3, #84] @ 0x54 + 80021ba: f043 0202 orr.w r2, r3, #2 + 80021be: 687b ldr r3, [r7, #4] + 80021c0: 655a str r2, [r3, #84] @ 0x54 } } /* Direct Mode Error Interrupt management ***********************************/ if ((tmpisr & (DMA_FLAG_DMEIF0_4 << hdma->StreamIndex)) != RESET) - 800216e: 687b ldr r3, [r7, #4] - 8002170: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002172: 2204 movs r2, #4 - 8002174: 409a lsls r2, r3 - 8002176: 68fb ldr r3, [r7, #12] - 8002178: 4013 ands r3, r2 - 800217a: 2b00 cmp r3, #0 - 800217c: d012 beq.n 80021a4 + 80021c2: 687b ldr r3, [r7, #4] + 80021c4: 6ddb ldr r3, [r3, #92] @ 0x5c + 80021c6: 2204 movs r2, #4 + 80021c8: 409a lsls r2, r3 + 80021ca: 68fb ldr r3, [r7, #12] + 80021cc: 4013 ands r3, r2 + 80021ce: 2b00 cmp r3, #0 + 80021d0: d012 beq.n 80021f8 { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != RESET) - 800217e: 687b ldr r3, [r7, #4] - 8002180: 681b ldr r3, [r3, #0] - 8002182: 681b ldr r3, [r3, #0] - 8002184: f003 0302 and.w r3, r3, #2 - 8002188: 2b00 cmp r3, #0 - 800218a: d00b beq.n 80021a4 + 80021d2: 687b ldr r3, [r7, #4] + 80021d4: 681b ldr r3, [r3, #0] + 80021d6: 681b ldr r3, [r3, #0] + 80021d8: f003 0302 and.w r3, r3, #2 + 80021dc: 2b00 cmp r3, #0 + 80021de: d00b beq.n 80021f8 { /* Clear the direct mode error flag */ regs->IFCR = DMA_FLAG_DMEIF0_4 << hdma->StreamIndex; - 800218c: 687b ldr r3, [r7, #4] - 800218e: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002190: 2204 movs r2, #4 - 8002192: 409a lsls r2, r3 - 8002194: 693b ldr r3, [r7, #16] - 8002196: 609a str r2, [r3, #8] + 80021e0: 687b ldr r3, [r7, #4] + 80021e2: 6ddb ldr r3, [r3, #92] @ 0x5c + 80021e4: 2204 movs r2, #4 + 80021e6: 409a lsls r2, r3 + 80021e8: 693b ldr r3, [r7, #16] + 80021ea: 609a str r2, [r3, #8] /* Update error code */ hdma->ErrorCode |= HAL_DMA_ERROR_DME; - 8002198: 687b ldr r3, [r7, #4] - 800219a: 6d5b ldr r3, [r3, #84] @ 0x54 - 800219c: f043 0204 orr.w r2, r3, #4 - 80021a0: 687b ldr r3, [r7, #4] - 80021a2: 655a str r2, [r3, #84] @ 0x54 + 80021ec: 687b ldr r3, [r7, #4] + 80021ee: 6d5b ldr r3, [r3, #84] @ 0x54 + 80021f0: f043 0204 orr.w r2, r3, #4 + 80021f4: 687b ldr r3, [r7, #4] + 80021f6: 655a str r2, [r3, #84] @ 0x54 } } /* Half Transfer Complete Interrupt management ******************************/ if ((tmpisr & (DMA_FLAG_HTIF0_4 << hdma->StreamIndex)) != RESET) - 80021a4: 687b ldr r3, [r7, #4] - 80021a6: 6ddb ldr r3, [r3, #92] @ 0x5c - 80021a8: 2210 movs r2, #16 - 80021aa: 409a lsls r2, r3 - 80021ac: 68fb ldr r3, [r7, #12] - 80021ae: 4013 ands r3, r2 - 80021b0: 2b00 cmp r3, #0 - 80021b2: d043 beq.n 800223c + 80021f8: 687b ldr r3, [r7, #4] + 80021fa: 6ddb ldr r3, [r3, #92] @ 0x5c + 80021fc: 2210 movs r2, #16 + 80021fe: 409a lsls r2, r3 + 8002200: 68fb ldr r3, [r7, #12] + 8002202: 4013 ands r3, r2 + 8002204: 2b00 cmp r3, #0 + 8002206: d043 beq.n 8002290 { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != RESET) - 80021b4: 687b ldr r3, [r7, #4] - 80021b6: 681b ldr r3, [r3, #0] - 80021b8: 681b ldr r3, [r3, #0] - 80021ba: f003 0308 and.w r3, r3, #8 - 80021be: 2b00 cmp r3, #0 - 80021c0: d03c beq.n 800223c + 8002208: 687b ldr r3, [r7, #4] + 800220a: 681b ldr r3, [r3, #0] + 800220c: 681b ldr r3, [r3, #0] + 800220e: f003 0308 and.w r3, r3, #8 + 8002212: 2b00 cmp r3, #0 + 8002214: d03c beq.n 8002290 { /* Clear the half transfer complete flag */ regs->IFCR = DMA_FLAG_HTIF0_4 << hdma->StreamIndex; - 80021c2: 687b ldr r3, [r7, #4] - 80021c4: 6ddb ldr r3, [r3, #92] @ 0x5c - 80021c6: 2210 movs r2, #16 - 80021c8: 409a lsls r2, r3 - 80021ca: 693b ldr r3, [r7, #16] - 80021cc: 609a str r2, [r3, #8] + 8002216: 687b ldr r3, [r7, #4] + 8002218: 6ddb ldr r3, [r3, #92] @ 0x5c + 800221a: 2210 movs r2, #16 + 800221c: 409a lsls r2, r3 + 800221e: 693b ldr r3, [r7, #16] + 8002220: 609a str r2, [r3, #8] /* Multi_Buffering mode enabled */ if(((hdma->Instance->CR) & (uint32_t)(DMA_SxCR_DBM)) != RESET) - 80021ce: 687b ldr r3, [r7, #4] - 80021d0: 681b ldr r3, [r3, #0] - 80021d2: 681b ldr r3, [r3, #0] - 80021d4: f403 2380 and.w r3, r3, #262144 @ 0x40000 - 80021d8: 2b00 cmp r3, #0 - 80021da: d018 beq.n 800220e + 8002222: 687b ldr r3, [r7, #4] + 8002224: 681b ldr r3, [r3, #0] + 8002226: 681b ldr r3, [r3, #0] + 8002228: f403 2380 and.w r3, r3, #262144 @ 0x40000 + 800222c: 2b00 cmp r3, #0 + 800222e: d018 beq.n 8002262 { /* Current memory buffer used is Memory 0 */ if((hdma->Instance->CR & DMA_SxCR_CT) == RESET) - 80021dc: 687b ldr r3, [r7, #4] - 80021de: 681b ldr r3, [r3, #0] - 80021e0: 681b ldr r3, [r3, #0] - 80021e2: f403 2300 and.w r3, r3, #524288 @ 0x80000 - 80021e6: 2b00 cmp r3, #0 - 80021e8: d108 bne.n 80021fc + 8002230: 687b ldr r3, [r7, #4] + 8002232: 681b ldr r3, [r3, #0] + 8002234: 681b ldr r3, [r3, #0] + 8002236: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 800223a: 2b00 cmp r3, #0 + 800223c: d108 bne.n 8002250 { if(hdma->XferHalfCpltCallback != NULL) - 80021ea: 687b ldr r3, [r7, #4] - 80021ec: 6c1b ldr r3, [r3, #64] @ 0x40 - 80021ee: 2b00 cmp r3, #0 - 80021f0: d024 beq.n 800223c + 800223e: 687b ldr r3, [r7, #4] + 8002240: 6c1b ldr r3, [r3, #64] @ 0x40 + 8002242: 2b00 cmp r3, #0 + 8002244: d024 beq.n 8002290 { /* Half transfer callback */ hdma->XferHalfCpltCallback(hdma); - 80021f2: 687b ldr r3, [r7, #4] - 80021f4: 6c1b ldr r3, [r3, #64] @ 0x40 - 80021f6: 6878 ldr r0, [r7, #4] - 80021f8: 4798 blx r3 - 80021fa: e01f b.n 800223c + 8002246: 687b ldr r3, [r7, #4] + 8002248: 6c1b ldr r3, [r3, #64] @ 0x40 + 800224a: 6878 ldr r0, [r7, #4] + 800224c: 4798 blx r3 + 800224e: e01f b.n 8002290 } } /* Current memory buffer used is Memory 1 */ else { if(hdma->XferM1HalfCpltCallback != NULL) - 80021fc: 687b ldr r3, [r7, #4] - 80021fe: 6c9b ldr r3, [r3, #72] @ 0x48 - 8002200: 2b00 cmp r3, #0 - 8002202: d01b beq.n 800223c + 8002250: 687b ldr r3, [r7, #4] + 8002252: 6c9b ldr r3, [r3, #72] @ 0x48 + 8002254: 2b00 cmp r3, #0 + 8002256: d01b beq.n 8002290 { /* Half transfer callback */ hdma->XferM1HalfCpltCallback(hdma); - 8002204: 687b ldr r3, [r7, #4] - 8002206: 6c9b ldr r3, [r3, #72] @ 0x48 - 8002208: 6878 ldr r0, [r7, #4] - 800220a: 4798 blx r3 - 800220c: e016 b.n 800223c + 8002258: 687b ldr r3, [r7, #4] + 800225a: 6c9b ldr r3, [r3, #72] @ 0x48 + 800225c: 6878 ldr r0, [r7, #4] + 800225e: 4798 blx r3 + 8002260: e016 b.n 8002290 } } else { /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */ if((hdma->Instance->CR & DMA_SxCR_CIRC) == RESET) - 800220e: 687b ldr r3, [r7, #4] - 8002210: 681b ldr r3, [r3, #0] - 8002212: 681b ldr r3, [r3, #0] - 8002214: f403 7380 and.w r3, r3, #256 @ 0x100 - 8002218: 2b00 cmp r3, #0 - 800221a: d107 bne.n 800222c + 8002262: 687b ldr r3, [r7, #4] + 8002264: 681b ldr r3, [r3, #0] + 8002266: 681b ldr r3, [r3, #0] + 8002268: f403 7380 and.w r3, r3, #256 @ 0x100 + 800226c: 2b00 cmp r3, #0 + 800226e: d107 bne.n 8002280 { /* Disable the half transfer interrupt */ hdma->Instance->CR &= ~(DMA_IT_HT); - 800221c: 687b ldr r3, [r7, #4] - 800221e: 681b ldr r3, [r3, #0] - 8002220: 681a ldr r2, [r3, #0] - 8002222: 687b ldr r3, [r7, #4] - 8002224: 681b ldr r3, [r3, #0] - 8002226: f022 0208 bic.w r2, r2, #8 - 800222a: 601a str r2, [r3, #0] + 8002270: 687b ldr r3, [r7, #4] + 8002272: 681b ldr r3, [r3, #0] + 8002274: 681a ldr r2, [r3, #0] + 8002276: 687b ldr r3, [r7, #4] + 8002278: 681b ldr r3, [r3, #0] + 800227a: f022 0208 bic.w r2, r2, #8 + 800227e: 601a str r2, [r3, #0] } if(hdma->XferHalfCpltCallback != NULL) - 800222c: 687b ldr r3, [r7, #4] - 800222e: 6c1b ldr r3, [r3, #64] @ 0x40 - 8002230: 2b00 cmp r3, #0 - 8002232: d003 beq.n 800223c + 8002280: 687b ldr r3, [r7, #4] + 8002282: 6c1b ldr r3, [r3, #64] @ 0x40 + 8002284: 2b00 cmp r3, #0 + 8002286: d003 beq.n 8002290 { /* Half transfer callback */ hdma->XferHalfCpltCallback(hdma); - 8002234: 687b ldr r3, [r7, #4] - 8002236: 6c1b ldr r3, [r3, #64] @ 0x40 - 8002238: 6878 ldr r0, [r7, #4] - 800223a: 4798 blx r3 + 8002288: 687b ldr r3, [r7, #4] + 800228a: 6c1b ldr r3, [r3, #64] @ 0x40 + 800228c: 6878 ldr r0, [r7, #4] + 800228e: 4798 blx r3 } } } } /* Transfer Complete Interrupt management ***********************************/ if ((tmpisr & (DMA_FLAG_TCIF0_4 << hdma->StreamIndex)) != RESET) - 800223c: 687b ldr r3, [r7, #4] - 800223e: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002240: 2220 movs r2, #32 - 8002242: 409a lsls r2, r3 - 8002244: 68fb ldr r3, [r7, #12] - 8002246: 4013 ands r3, r2 - 8002248: 2b00 cmp r3, #0 - 800224a: f000 808f beq.w 800236c + 8002290: 687b ldr r3, [r7, #4] + 8002292: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002294: 2220 movs r2, #32 + 8002296: 409a lsls r2, r3 + 8002298: 68fb ldr r3, [r7, #12] + 800229a: 4013 ands r3, r2 + 800229c: 2b00 cmp r3, #0 + 800229e: f000 808f beq.w 80023c0 { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != RESET) - 800224e: 687b ldr r3, [r7, #4] - 8002250: 681b ldr r3, [r3, #0] - 8002252: 681b ldr r3, [r3, #0] - 8002254: f003 0310 and.w r3, r3, #16 - 8002258: 2b00 cmp r3, #0 - 800225a: f000 8087 beq.w 800236c + 80022a2: 687b ldr r3, [r7, #4] + 80022a4: 681b ldr r3, [r3, #0] + 80022a6: 681b ldr r3, [r3, #0] + 80022a8: f003 0310 and.w r3, r3, #16 + 80022ac: 2b00 cmp r3, #0 + 80022ae: f000 8087 beq.w 80023c0 { /* Clear the transfer complete flag */ regs->IFCR = DMA_FLAG_TCIF0_4 << hdma->StreamIndex; - 800225e: 687b ldr r3, [r7, #4] - 8002260: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002262: 2220 movs r2, #32 - 8002264: 409a lsls r2, r3 - 8002266: 693b ldr r3, [r7, #16] - 8002268: 609a str r2, [r3, #8] + 80022b2: 687b ldr r3, [r7, #4] + 80022b4: 6ddb ldr r3, [r3, #92] @ 0x5c + 80022b6: 2220 movs r2, #32 + 80022b8: 409a lsls r2, r3 + 80022ba: 693b ldr r3, [r7, #16] + 80022bc: 609a str r2, [r3, #8] if(HAL_DMA_STATE_ABORT == hdma->State) - 800226a: 687b ldr r3, [r7, #4] - 800226c: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 - 8002270: b2db uxtb r3, r3 - 8002272: 2b05 cmp r3, #5 - 8002274: d136 bne.n 80022e4 + 80022be: 687b ldr r3, [r7, #4] + 80022c0: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 + 80022c4: b2db uxtb r3, r3 + 80022c6: 2b05 cmp r3, #5 + 80022c8: d136 bne.n 8002338 { /* Disable all the transfer interrupts */ hdma->Instance->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME); - 8002276: 687b ldr r3, [r7, #4] - 8002278: 681b ldr r3, [r3, #0] - 800227a: 681a ldr r2, [r3, #0] - 800227c: 687b ldr r3, [r7, #4] - 800227e: 681b ldr r3, [r3, #0] - 8002280: f022 0216 bic.w r2, r2, #22 - 8002284: 601a str r2, [r3, #0] + 80022ca: 687b ldr r3, [r7, #4] + 80022cc: 681b ldr r3, [r3, #0] + 80022ce: 681a ldr r2, [r3, #0] + 80022d0: 687b ldr r3, [r7, #4] + 80022d2: 681b ldr r3, [r3, #0] + 80022d4: f022 0216 bic.w r2, r2, #22 + 80022d8: 601a str r2, [r3, #0] hdma->Instance->FCR &= ~(DMA_IT_FE); - 8002286: 687b ldr r3, [r7, #4] - 8002288: 681b ldr r3, [r3, #0] - 800228a: 695a ldr r2, [r3, #20] - 800228c: 687b ldr r3, [r7, #4] - 800228e: 681b ldr r3, [r3, #0] - 8002290: f022 0280 bic.w r2, r2, #128 @ 0x80 - 8002294: 615a str r2, [r3, #20] + 80022da: 687b ldr r3, [r7, #4] + 80022dc: 681b ldr r3, [r3, #0] + 80022de: 695a ldr r2, [r3, #20] + 80022e0: 687b ldr r3, [r7, #4] + 80022e2: 681b ldr r3, [r3, #0] + 80022e4: f022 0280 bic.w r2, r2, #128 @ 0x80 + 80022e8: 615a str r2, [r3, #20] if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL)) - 8002296: 687b ldr r3, [r7, #4] - 8002298: 6c1b ldr r3, [r3, #64] @ 0x40 - 800229a: 2b00 cmp r3, #0 - 800229c: d103 bne.n 80022a6 - 800229e: 687b ldr r3, [r7, #4] - 80022a0: 6c9b ldr r3, [r3, #72] @ 0x48 - 80022a2: 2b00 cmp r3, #0 - 80022a4: d007 beq.n 80022b6 + 80022ea: 687b ldr r3, [r7, #4] + 80022ec: 6c1b ldr r3, [r3, #64] @ 0x40 + 80022ee: 2b00 cmp r3, #0 + 80022f0: d103 bne.n 80022fa + 80022f2: 687b ldr r3, [r7, #4] + 80022f4: 6c9b ldr r3, [r3, #72] @ 0x48 + 80022f6: 2b00 cmp r3, #0 + 80022f8: d007 beq.n 800230a { hdma->Instance->CR &= ~(DMA_IT_HT); - 80022a6: 687b ldr r3, [r7, #4] - 80022a8: 681b ldr r3, [r3, #0] - 80022aa: 681a ldr r2, [r3, #0] - 80022ac: 687b ldr r3, [r7, #4] - 80022ae: 681b ldr r3, [r3, #0] - 80022b0: f022 0208 bic.w r2, r2, #8 - 80022b4: 601a str r2, [r3, #0] + 80022fa: 687b ldr r3, [r7, #4] + 80022fc: 681b ldr r3, [r3, #0] + 80022fe: 681a ldr r2, [r3, #0] + 8002300: 687b ldr r3, [r7, #4] + 8002302: 681b ldr r3, [r3, #0] + 8002304: f022 0208 bic.w r2, r2, #8 + 8002308: 601a str r2, [r3, #0] } /* Clear all interrupt flags at correct offset within the register */ regs->IFCR = 0x3FU << hdma->StreamIndex; - 80022b6: 687b ldr r3, [r7, #4] - 80022b8: 6ddb ldr r3, [r3, #92] @ 0x5c - 80022ba: 223f movs r2, #63 @ 0x3f - 80022bc: 409a lsls r2, r3 - 80022be: 693b ldr r3, [r7, #16] - 80022c0: 609a str r2, [r3, #8] + 800230a: 687b ldr r3, [r7, #4] + 800230c: 6ddb ldr r3, [r3, #92] @ 0x5c + 800230e: 223f movs r2, #63 @ 0x3f + 8002310: 409a lsls r2, r3 + 8002312: 693b ldr r3, [r7, #16] + 8002314: 609a str r2, [r3, #8] /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 80022c2: 687b ldr r3, [r7, #4] - 80022c4: 2201 movs r2, #1 - 80022c6: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8002316: 687b ldr r3, [r7, #4] + 8002318: 2201 movs r2, #1 + 800231a: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 80022ca: 687b ldr r3, [r7, #4] - 80022cc: 2200 movs r2, #0 - 80022ce: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 800231e: 687b ldr r3, [r7, #4] + 8002320: 2200 movs r2, #0 + 8002322: f883 2034 strb.w r2, [r3, #52] @ 0x34 if(hdma->XferAbortCallback != NULL) - 80022d2: 687b ldr r3, [r7, #4] - 80022d4: 6d1b ldr r3, [r3, #80] @ 0x50 - 80022d6: 2b00 cmp r3, #0 - 80022d8: d07e beq.n 80023d8 + 8002326: 687b ldr r3, [r7, #4] + 8002328: 6d1b ldr r3, [r3, #80] @ 0x50 + 800232a: 2b00 cmp r3, #0 + 800232c: d07e beq.n 800242c { hdma->XferAbortCallback(hdma); - 80022da: 687b ldr r3, [r7, #4] - 80022dc: 6d1b ldr r3, [r3, #80] @ 0x50 - 80022de: 6878 ldr r0, [r7, #4] - 80022e0: 4798 blx r3 + 800232e: 687b ldr r3, [r7, #4] + 8002330: 6d1b ldr r3, [r3, #80] @ 0x50 + 8002332: 6878 ldr r0, [r7, #4] + 8002334: 4798 blx r3 } return; - 80022e2: e079 b.n 80023d8 + 8002336: e079 b.n 800242c } if(((hdma->Instance->CR) & (uint32_t)(DMA_SxCR_DBM)) != RESET) - 80022e4: 687b ldr r3, [r7, #4] - 80022e6: 681b ldr r3, [r3, #0] - 80022e8: 681b ldr r3, [r3, #0] - 80022ea: f403 2380 and.w r3, r3, #262144 @ 0x40000 - 80022ee: 2b00 cmp r3, #0 - 80022f0: d01d beq.n 800232e + 8002338: 687b ldr r3, [r7, #4] + 800233a: 681b ldr r3, [r3, #0] + 800233c: 681b ldr r3, [r3, #0] + 800233e: f403 2380 and.w r3, r3, #262144 @ 0x40000 + 8002342: 2b00 cmp r3, #0 + 8002344: d01d beq.n 8002382 { /* Current memory buffer used is Memory 0 */ if((hdma->Instance->CR & DMA_SxCR_CT) == RESET) - 80022f2: 687b ldr r3, [r7, #4] - 80022f4: 681b ldr r3, [r3, #0] - 80022f6: 681b ldr r3, [r3, #0] - 80022f8: f403 2300 and.w r3, r3, #524288 @ 0x80000 - 80022fc: 2b00 cmp r3, #0 - 80022fe: d10d bne.n 800231c + 8002346: 687b ldr r3, [r7, #4] + 8002348: 681b ldr r3, [r3, #0] + 800234a: 681b ldr r3, [r3, #0] + 800234c: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 8002350: 2b00 cmp r3, #0 + 8002352: d10d bne.n 8002370 { if(hdma->XferM1CpltCallback != NULL) - 8002300: 687b ldr r3, [r7, #4] - 8002302: 6c5b ldr r3, [r3, #68] @ 0x44 - 8002304: 2b00 cmp r3, #0 - 8002306: d031 beq.n 800236c + 8002354: 687b ldr r3, [r7, #4] + 8002356: 6c5b ldr r3, [r3, #68] @ 0x44 + 8002358: 2b00 cmp r3, #0 + 800235a: d031 beq.n 80023c0 { /* Transfer complete Callback for memory1 */ hdma->XferM1CpltCallback(hdma); - 8002308: 687b ldr r3, [r7, #4] - 800230a: 6c5b ldr r3, [r3, #68] @ 0x44 - 800230c: 6878 ldr r0, [r7, #4] - 800230e: 4798 blx r3 - 8002310: e02c b.n 800236c - 8002312: bf00 nop - 8002314: 20000090 .word 0x20000090 - 8002318: 1b4e81b5 .word 0x1b4e81b5 + 800235c: 687b ldr r3, [r7, #4] + 800235e: 6c5b ldr r3, [r3, #68] @ 0x44 + 8002360: 6878 ldr r0, [r7, #4] + 8002362: 4798 blx r3 + 8002364: e02c b.n 80023c0 + 8002366: bf00 nop + 8002368: 20000090 .word 0x20000090 + 800236c: 1b4e81b5 .word 0x1b4e81b5 } } /* Current memory buffer used is Memory 1 */ else { if(hdma->XferCpltCallback != NULL) - 800231c: 687b ldr r3, [r7, #4] - 800231e: 6bdb ldr r3, [r3, #60] @ 0x3c - 8002320: 2b00 cmp r3, #0 - 8002322: d023 beq.n 800236c + 8002370: 687b ldr r3, [r7, #4] + 8002372: 6bdb ldr r3, [r3, #60] @ 0x3c + 8002374: 2b00 cmp r3, #0 + 8002376: d023 beq.n 80023c0 { /* Transfer complete Callback for memory0 */ hdma->XferCpltCallback(hdma); - 8002324: 687b ldr r3, [r7, #4] - 8002326: 6bdb ldr r3, [r3, #60] @ 0x3c - 8002328: 6878 ldr r0, [r7, #4] - 800232a: 4798 blx r3 - 800232c: e01e b.n 800236c + 8002378: 687b ldr r3, [r7, #4] + 800237a: 6bdb ldr r3, [r3, #60] @ 0x3c + 800237c: 6878 ldr r0, [r7, #4] + 800237e: 4798 blx r3 + 8002380: e01e b.n 80023c0 } } /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */ else { if((hdma->Instance->CR & DMA_SxCR_CIRC) == RESET) - 800232e: 687b ldr r3, [r7, #4] - 8002330: 681b ldr r3, [r3, #0] - 8002332: 681b ldr r3, [r3, #0] - 8002334: f403 7380 and.w r3, r3, #256 @ 0x100 - 8002338: 2b00 cmp r3, #0 - 800233a: d10f bne.n 800235c + 8002382: 687b ldr r3, [r7, #4] + 8002384: 681b ldr r3, [r3, #0] + 8002386: 681b ldr r3, [r3, #0] + 8002388: f403 7380 and.w r3, r3, #256 @ 0x100 + 800238c: 2b00 cmp r3, #0 + 800238e: d10f bne.n 80023b0 { /* Disable the transfer complete interrupt */ hdma->Instance->CR &= ~(DMA_IT_TC); - 800233c: 687b ldr r3, [r7, #4] - 800233e: 681b ldr r3, [r3, #0] - 8002340: 681a ldr r2, [r3, #0] - 8002342: 687b ldr r3, [r7, #4] - 8002344: 681b ldr r3, [r3, #0] - 8002346: f022 0210 bic.w r2, r2, #16 - 800234a: 601a str r2, [r3, #0] + 8002390: 687b ldr r3, [r7, #4] + 8002392: 681b ldr r3, [r3, #0] + 8002394: 681a ldr r2, [r3, #0] + 8002396: 687b ldr r3, [r7, #4] + 8002398: 681b ldr r3, [r3, #0] + 800239a: f022 0210 bic.w r2, r2, #16 + 800239e: 601a str r2, [r3, #0] /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 800234c: 687b ldr r3, [r7, #4] - 800234e: 2201 movs r2, #1 - 8002350: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 80023a0: 687b ldr r3, [r7, #4] + 80023a2: 2201 movs r2, #1 + 80023a4: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 8002354: 687b ldr r3, [r7, #4] - 8002356: 2200 movs r2, #0 - 8002358: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 80023a8: 687b ldr r3, [r7, #4] + 80023aa: 2200 movs r2, #0 + 80023ac: f883 2034 strb.w r2, [r3, #52] @ 0x34 } if(hdma->XferCpltCallback != NULL) - 800235c: 687b ldr r3, [r7, #4] - 800235e: 6bdb ldr r3, [r3, #60] @ 0x3c - 8002360: 2b00 cmp r3, #0 - 8002362: d003 beq.n 800236c + 80023b0: 687b ldr r3, [r7, #4] + 80023b2: 6bdb ldr r3, [r3, #60] @ 0x3c + 80023b4: 2b00 cmp r3, #0 + 80023b6: d003 beq.n 80023c0 { /* Transfer complete callback */ hdma->XferCpltCallback(hdma); - 8002364: 687b ldr r3, [r7, #4] - 8002366: 6bdb ldr r3, [r3, #60] @ 0x3c - 8002368: 6878 ldr r0, [r7, #4] - 800236a: 4798 blx r3 + 80023b8: 687b ldr r3, [r7, #4] + 80023ba: 6bdb ldr r3, [r3, #60] @ 0x3c + 80023bc: 6878 ldr r0, [r7, #4] + 80023be: 4798 blx r3 } } } /* manage error case */ if(hdma->ErrorCode != HAL_DMA_ERROR_NONE) - 800236c: 687b ldr r3, [r7, #4] - 800236e: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002370: 2b00 cmp r3, #0 - 8002372: d032 beq.n 80023da + 80023c0: 687b ldr r3, [r7, #4] + 80023c2: 6d5b ldr r3, [r3, #84] @ 0x54 + 80023c4: 2b00 cmp r3, #0 + 80023c6: d032 beq.n 800242e { if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != RESET) - 8002374: 687b ldr r3, [r7, #4] - 8002376: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002378: f003 0301 and.w r3, r3, #1 - 800237c: 2b00 cmp r3, #0 - 800237e: d022 beq.n 80023c6 + 80023c8: 687b ldr r3, [r7, #4] + 80023ca: 6d5b ldr r3, [r3, #84] @ 0x54 + 80023cc: f003 0301 and.w r3, r3, #1 + 80023d0: 2b00 cmp r3, #0 + 80023d2: d022 beq.n 800241a { hdma->State = HAL_DMA_STATE_ABORT; - 8002380: 687b ldr r3, [r7, #4] - 8002382: 2205 movs r2, #5 - 8002384: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 80023d4: 687b ldr r3, [r7, #4] + 80023d6: 2205 movs r2, #5 + 80023d8: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Disable the stream */ __HAL_DMA_DISABLE(hdma); - 8002388: 687b ldr r3, [r7, #4] - 800238a: 681b ldr r3, [r3, #0] - 800238c: 681a ldr r2, [r3, #0] - 800238e: 687b ldr r3, [r7, #4] - 8002390: 681b ldr r3, [r3, #0] - 8002392: f022 0201 bic.w r2, r2, #1 - 8002396: 601a str r2, [r3, #0] + 80023dc: 687b ldr r3, [r7, #4] + 80023de: 681b ldr r3, [r3, #0] + 80023e0: 681a ldr r2, [r3, #0] + 80023e2: 687b ldr r3, [r7, #4] + 80023e4: 681b ldr r3, [r3, #0] + 80023e6: f022 0201 bic.w r2, r2, #1 + 80023ea: 601a str r2, [r3, #0] do { if (++count > timeout) - 8002398: 68bb ldr r3, [r7, #8] - 800239a: 3301 adds r3, #1 - 800239c: 60bb str r3, [r7, #8] - 800239e: 697a ldr r2, [r7, #20] - 80023a0: 429a cmp r2, r3 - 80023a2: d307 bcc.n 80023b4 + 80023ec: 68bb ldr r3, [r7, #8] + 80023ee: 3301 adds r3, #1 + 80023f0: 60bb str r3, [r7, #8] + 80023f2: 697a ldr r2, [r7, #20] + 80023f4: 429a cmp r2, r3 + 80023f6: d307 bcc.n 8002408 { break; } } while((hdma->Instance->CR & DMA_SxCR_EN) != RESET); - 80023a4: 687b ldr r3, [r7, #4] - 80023a6: 681b ldr r3, [r3, #0] - 80023a8: 681b ldr r3, [r3, #0] - 80023aa: f003 0301 and.w r3, r3, #1 - 80023ae: 2b00 cmp r3, #0 - 80023b0: d1f2 bne.n 8002398 - 80023b2: e000 b.n 80023b6 + 80023f8: 687b ldr r3, [r7, #4] + 80023fa: 681b ldr r3, [r3, #0] + 80023fc: 681b ldr r3, [r3, #0] + 80023fe: f003 0301 and.w r3, r3, #1 + 8002402: 2b00 cmp r3, #0 + 8002404: d1f2 bne.n 80023ec + 8002406: e000 b.n 800240a break; - 80023b4: bf00 nop + 8002408: bf00 nop /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 80023b6: 687b ldr r3, [r7, #4] - 80023b8: 2201 movs r2, #1 - 80023ba: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 800240a: 687b ldr r3, [r7, #4] + 800240c: 2201 movs r2, #1 + 800240e: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 80023be: 687b ldr r3, [r7, #4] - 80023c0: 2200 movs r2, #0 - 80023c2: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 8002412: 687b ldr r3, [r7, #4] + 8002414: 2200 movs r2, #0 + 8002416: f883 2034 strb.w r2, [r3, #52] @ 0x34 } if(hdma->XferErrorCallback != NULL) - 80023c6: 687b ldr r3, [r7, #4] - 80023c8: 6cdb ldr r3, [r3, #76] @ 0x4c - 80023ca: 2b00 cmp r3, #0 - 80023cc: d005 beq.n 80023da + 800241a: 687b ldr r3, [r7, #4] + 800241c: 6cdb ldr r3, [r3, #76] @ 0x4c + 800241e: 2b00 cmp r3, #0 + 8002420: d005 beq.n 800242e { /* Transfer error callback */ hdma->XferErrorCallback(hdma); - 80023ce: 687b ldr r3, [r7, #4] - 80023d0: 6cdb ldr r3, [r3, #76] @ 0x4c - 80023d2: 6878 ldr r0, [r7, #4] - 80023d4: 4798 blx r3 - 80023d6: e000 b.n 80023da + 8002422: 687b ldr r3, [r7, #4] + 8002424: 6cdb ldr r3, [r3, #76] @ 0x4c + 8002426: 6878 ldr r0, [r7, #4] + 8002428: 4798 blx r3 + 800242a: e000 b.n 800242e return; - 80023d8: bf00 nop + 800242c: bf00 nop } } } - 80023da: 3718 adds r7, #24 - 80023dc: 46bd mov sp, r7 - 80023de: bd80 pop {r7, pc} + 800242e: 3718 adds r7, #24 + 8002430: 46bd mov sp, r7 + 8002432: bd80 pop {r7, pc} -080023e0 : +08002434 : * @param DstAddress The destination memory Buffer address * @param DataLength The length of data to be transferred from source to destination * @retval HAL status */ static void DMA_SetConfig(DMA_HandleTypeDef *hdma, uint32_t SrcAddress, uint32_t DstAddress, uint32_t DataLength) { - 80023e0: b480 push {r7} - 80023e2: b085 sub sp, #20 - 80023e4: af00 add r7, sp, #0 - 80023e6: 60f8 str r0, [r7, #12] - 80023e8: 60b9 str r1, [r7, #8] - 80023ea: 607a str r2, [r7, #4] - 80023ec: 603b str r3, [r7, #0] + 8002434: b480 push {r7} + 8002436: b085 sub sp, #20 + 8002438: af00 add r7, sp, #0 + 800243a: 60f8 str r0, [r7, #12] + 800243c: 60b9 str r1, [r7, #8] + 800243e: 607a str r2, [r7, #4] + 8002440: 603b str r3, [r7, #0] /* Clear DBM bit */ hdma->Instance->CR &= (uint32_t)(~DMA_SxCR_DBM); - 80023ee: 68fb ldr r3, [r7, #12] - 80023f0: 681b ldr r3, [r3, #0] - 80023f2: 681a ldr r2, [r3, #0] - 80023f4: 68fb ldr r3, [r7, #12] - 80023f6: 681b ldr r3, [r3, #0] - 80023f8: f422 2280 bic.w r2, r2, #262144 @ 0x40000 - 80023fc: 601a str r2, [r3, #0] + 8002442: 68fb ldr r3, [r7, #12] + 8002444: 681b ldr r3, [r3, #0] + 8002446: 681a ldr r2, [r3, #0] + 8002448: 68fb ldr r3, [r7, #12] + 800244a: 681b ldr r3, [r3, #0] + 800244c: f422 2280 bic.w r2, r2, #262144 @ 0x40000 + 8002450: 601a str r2, [r3, #0] /* Configure DMA Stream data length */ hdma->Instance->NDTR = DataLength; - 80023fe: 68fb ldr r3, [r7, #12] - 8002400: 681b ldr r3, [r3, #0] - 8002402: 683a ldr r2, [r7, #0] - 8002404: 605a str r2, [r3, #4] + 8002452: 68fb ldr r3, [r7, #12] + 8002454: 681b ldr r3, [r3, #0] + 8002456: 683a ldr r2, [r7, #0] + 8002458: 605a str r2, [r3, #4] /* Memory to Peripheral */ if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH) - 8002406: 68fb ldr r3, [r7, #12] - 8002408: 689b ldr r3, [r3, #8] - 800240a: 2b40 cmp r3, #64 @ 0x40 - 800240c: d108 bne.n 8002420 + 800245a: 68fb ldr r3, [r7, #12] + 800245c: 689b ldr r3, [r3, #8] + 800245e: 2b40 cmp r3, #64 @ 0x40 + 8002460: d108 bne.n 8002474 { /* Configure DMA Stream destination address */ hdma->Instance->PAR = DstAddress; - 800240e: 68fb ldr r3, [r7, #12] - 8002410: 681b ldr r3, [r3, #0] - 8002412: 687a ldr r2, [r7, #4] - 8002414: 609a str r2, [r3, #8] + 8002462: 68fb ldr r3, [r7, #12] + 8002464: 681b ldr r3, [r3, #0] + 8002466: 687a ldr r2, [r7, #4] + 8002468: 609a str r2, [r3, #8] /* Configure DMA Stream source address */ hdma->Instance->M0AR = SrcAddress; - 8002416: 68fb ldr r3, [r7, #12] - 8002418: 681b ldr r3, [r3, #0] - 800241a: 68ba ldr r2, [r7, #8] - 800241c: 60da str r2, [r3, #12] + 800246a: 68fb ldr r3, [r7, #12] + 800246c: 681b ldr r3, [r3, #0] + 800246e: 68ba ldr r2, [r7, #8] + 8002470: 60da str r2, [r3, #12] hdma->Instance->PAR = SrcAddress; /* Configure DMA Stream destination address */ hdma->Instance->M0AR = DstAddress; } } - 800241e: e007 b.n 8002430 + 8002472: e007 b.n 8002484 hdma->Instance->PAR = SrcAddress; - 8002420: 68fb ldr r3, [r7, #12] - 8002422: 681b ldr r3, [r3, #0] - 8002424: 68ba ldr r2, [r7, #8] - 8002426: 609a str r2, [r3, #8] + 8002474: 68fb ldr r3, [r7, #12] + 8002476: 681b ldr r3, [r3, #0] + 8002478: 68ba ldr r2, [r7, #8] + 800247a: 609a str r2, [r3, #8] hdma->Instance->M0AR = DstAddress; - 8002428: 68fb ldr r3, [r7, #12] - 800242a: 681b ldr r3, [r3, #0] - 800242c: 687a ldr r2, [r7, #4] - 800242e: 60da str r2, [r3, #12] + 800247c: 68fb ldr r3, [r7, #12] + 800247e: 681b ldr r3, [r3, #0] + 8002480: 687a ldr r2, [r7, #4] + 8002482: 60da str r2, [r3, #12] } - 8002430: bf00 nop - 8002432: 3714 adds r7, #20 - 8002434: 46bd mov sp, r7 - 8002436: f85d 7b04 ldr.w r7, [sp], #4 - 800243a: 4770 bx lr + 8002484: bf00 nop + 8002486: 3714 adds r7, #20 + 8002488: 46bd mov sp, r7 + 800248a: f85d 7b04 ldr.w r7, [sp], #4 + 800248e: 4770 bx lr -0800243c : +08002490 : * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval Stream base address */ static uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma) { - 800243c: b480 push {r7} - 800243e: b085 sub sp, #20 - 8002440: af00 add r7, sp, #0 - 8002442: 6078 str r0, [r7, #4] + 8002490: b480 push {r7} + 8002492: b085 sub sp, #20 + 8002494: af00 add r7, sp, #0 + 8002496: 6078 str r0, [r7, #4] uint32_t stream_number = (((uint32_t)hdma->Instance & 0xFFU) - 16U) / 24U; - 8002444: 687b ldr r3, [r7, #4] - 8002446: 681b ldr r3, [r3, #0] - 8002448: b2db uxtb r3, r3 - 800244a: 3b10 subs r3, #16 - 800244c: 4a14 ldr r2, [pc, #80] @ (80024a0 ) - 800244e: fba2 2303 umull r2, r3, r2, r3 - 8002452: 091b lsrs r3, r3, #4 - 8002454: 60fb str r3, [r7, #12] + 8002498: 687b ldr r3, [r7, #4] + 800249a: 681b ldr r3, [r3, #0] + 800249c: b2db uxtb r3, r3 + 800249e: 3b10 subs r3, #16 + 80024a0: 4a14 ldr r2, [pc, #80] @ (80024f4 ) + 80024a2: fba2 2303 umull r2, r3, r2, r3 + 80024a6: 091b lsrs r3, r3, #4 + 80024a8: 60fb str r3, [r7, #12] /* lookup table for necessary bitshift of flags within status registers */ static const uint8_t flagBitshiftOffset[8U] = {0U, 6U, 16U, 22U, 0U, 6U, 16U, 22U}; hdma->StreamIndex = flagBitshiftOffset[stream_number]; - 8002456: 4a13 ldr r2, [pc, #76] @ (80024a4 ) - 8002458: 68fb ldr r3, [r7, #12] - 800245a: 4413 add r3, r2 - 800245c: 781b ldrb r3, [r3, #0] - 800245e: 461a mov r2, r3 - 8002460: 687b ldr r3, [r7, #4] - 8002462: 65da str r2, [r3, #92] @ 0x5c + 80024aa: 4a13 ldr r2, [pc, #76] @ (80024f8 ) + 80024ac: 68fb ldr r3, [r7, #12] + 80024ae: 4413 add r3, r2 + 80024b0: 781b ldrb r3, [r3, #0] + 80024b2: 461a mov r2, r3 + 80024b4: 687b ldr r3, [r7, #4] + 80024b6: 65da str r2, [r3, #92] @ 0x5c if (stream_number > 3U) - 8002464: 68fb ldr r3, [r7, #12] - 8002466: 2b03 cmp r3, #3 - 8002468: d909 bls.n 800247e + 80024b8: 68fb ldr r3, [r7, #12] + 80024ba: 2b03 cmp r3, #3 + 80024bc: d909 bls.n 80024d2 { /* return pointer to HISR and HIFCR */ hdma->StreamBaseAddress = (((uint32_t)hdma->Instance & (uint32_t)(~0x3FFU)) + 4U); - 800246a: 687b ldr r3, [r7, #4] - 800246c: 681b ldr r3, [r3, #0] - 800246e: f423 737f bic.w r3, r3, #1020 @ 0x3fc - 8002472: f023 0303 bic.w r3, r3, #3 - 8002476: 1d1a adds r2, r3, #4 - 8002478: 687b ldr r3, [r7, #4] - 800247a: 659a str r2, [r3, #88] @ 0x58 - 800247c: e007 b.n 800248e + 80024be: 687b ldr r3, [r7, #4] + 80024c0: 681b ldr r3, [r3, #0] + 80024c2: f423 737f bic.w r3, r3, #1020 @ 0x3fc + 80024c6: f023 0303 bic.w r3, r3, #3 + 80024ca: 1d1a adds r2, r3, #4 + 80024cc: 687b ldr r3, [r7, #4] + 80024ce: 659a str r2, [r3, #88] @ 0x58 + 80024d0: e007 b.n 80024e2 } else { /* return pointer to LISR and LIFCR */ hdma->StreamBaseAddress = ((uint32_t)hdma->Instance & (uint32_t)(~0x3FFU)); - 800247e: 687b ldr r3, [r7, #4] - 8002480: 681b ldr r3, [r3, #0] - 8002482: f423 737f bic.w r3, r3, #1020 @ 0x3fc - 8002486: f023 0303 bic.w r3, r3, #3 - 800248a: 687a ldr r2, [r7, #4] - 800248c: 6593 str r3, [r2, #88] @ 0x58 + 80024d2: 687b ldr r3, [r7, #4] + 80024d4: 681b ldr r3, [r3, #0] + 80024d6: f423 737f bic.w r3, r3, #1020 @ 0x3fc + 80024da: f023 0303 bic.w r3, r3, #3 + 80024de: 687a ldr r2, [r7, #4] + 80024e0: 6593 str r3, [r2, #88] @ 0x58 } return hdma->StreamBaseAddress; - 800248e: 687b ldr r3, [r7, #4] - 8002490: 6d9b ldr r3, [r3, #88] @ 0x58 + 80024e2: 687b ldr r3, [r7, #4] + 80024e4: 6d9b ldr r3, [r3, #88] @ 0x58 } - 8002492: 4618 mov r0, r3 - 8002494: 3714 adds r7, #20 - 8002496: 46bd mov sp, r7 - 8002498: f85d 7b04 ldr.w r7, [sp], #4 - 800249c: 4770 bx lr - 800249e: bf00 nop - 80024a0: aaaaaaab .word 0xaaaaaaab - 80024a4: 0800aad8 .word 0x0800aad8 + 80024e6: 4618 mov r0, r3 + 80024e8: 3714 adds r7, #20 + 80024ea: 46bd mov sp, r7 + 80024ec: f85d 7b04 ldr.w r7, [sp], #4 + 80024f0: 4770 bx lr + 80024f2: bf00 nop + 80024f4: aaaaaaab .word 0xaaaaaaab + 80024f8: 0800ab2c .word 0x0800ab2c -080024a8 : +080024fc : * @param hdma pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA Stream. * @retval HAL status */ static HAL_StatusTypeDef DMA_CheckFifoParam(DMA_HandleTypeDef *hdma) { - 80024a8: b480 push {r7} - 80024aa: b085 sub sp, #20 - 80024ac: af00 add r7, sp, #0 - 80024ae: 6078 str r0, [r7, #4] + 80024fc: b480 push {r7} + 80024fe: b085 sub sp, #20 + 8002500: af00 add r7, sp, #0 + 8002502: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 80024b0: 2300 movs r3, #0 - 80024b2: 73fb strb r3, [r7, #15] + 8002504: 2300 movs r3, #0 + 8002506: 73fb strb r3, [r7, #15] uint32_t tmp = hdma->Init.FIFOThreshold; - 80024b4: 687b ldr r3, [r7, #4] - 80024b6: 6a9b ldr r3, [r3, #40] @ 0x28 - 80024b8: 60bb str r3, [r7, #8] + 8002508: 687b ldr r3, [r7, #4] + 800250a: 6a9b ldr r3, [r3, #40] @ 0x28 + 800250c: 60bb str r3, [r7, #8] /* Memory Data size equal to Byte */ if(hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE) - 80024ba: 687b ldr r3, [r7, #4] - 80024bc: 699b ldr r3, [r3, #24] - 80024be: 2b00 cmp r3, #0 - 80024c0: d11f bne.n 8002502 + 800250e: 687b ldr r3, [r7, #4] + 8002510: 699b ldr r3, [r3, #24] + 8002512: 2b00 cmp r3, #0 + 8002514: d11f bne.n 8002556 { switch (tmp) - 80024c2: 68bb ldr r3, [r7, #8] - 80024c4: 2b03 cmp r3, #3 - 80024c6: d856 bhi.n 8002576 - 80024c8: a201 add r2, pc, #4 @ (adr r2, 80024d0 ) - 80024ca: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 80024ce: bf00 nop - 80024d0: 080024e1 .word 0x080024e1 - 80024d4: 080024f3 .word 0x080024f3 - 80024d8: 080024e1 .word 0x080024e1 - 80024dc: 08002577 .word 0x08002577 + 8002516: 68bb ldr r3, [r7, #8] + 8002518: 2b03 cmp r3, #3 + 800251a: d856 bhi.n 80025ca + 800251c: a201 add r2, pc, #4 @ (adr r2, 8002524 ) + 800251e: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8002522: bf00 nop + 8002524: 08002535 .word 0x08002535 + 8002528: 08002547 .word 0x08002547 + 800252c: 08002535 .word 0x08002535 + 8002530: 080025cb .word 0x080025cb { case DMA_FIFO_THRESHOLD_1QUARTERFULL: case DMA_FIFO_THRESHOLD_3QUARTERSFULL: if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 80024e0: 687b ldr r3, [r7, #4] - 80024e2: 6adb ldr r3, [r3, #44] @ 0x2c - 80024e4: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 - 80024e8: 2b00 cmp r3, #0 - 80024ea: d046 beq.n 800257a + 8002534: 687b ldr r3, [r7, #4] + 8002536: 6adb ldr r3, [r3, #44] @ 0x2c + 8002538: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 + 800253c: 2b00 cmp r3, #0 + 800253e: d046 beq.n 80025ce { status = HAL_ERROR; - 80024ec: 2301 movs r3, #1 - 80024ee: 73fb strb r3, [r7, #15] + 8002540: 2301 movs r3, #1 + 8002542: 73fb strb r3, [r7, #15] } break; - 80024f0: e043 b.n 800257a + 8002544: e043 b.n 80025ce case DMA_FIFO_THRESHOLD_HALFFULL: if (hdma->Init.MemBurst == DMA_MBURST_INC16) - 80024f2: 687b ldr r3, [r7, #4] - 80024f4: 6adb ldr r3, [r3, #44] @ 0x2c - 80024f6: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000 - 80024fa: d140 bne.n 800257e + 8002546: 687b ldr r3, [r7, #4] + 8002548: 6adb ldr r3, [r3, #44] @ 0x2c + 800254a: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000 + 800254e: d140 bne.n 80025d2 { status = HAL_ERROR; - 80024fc: 2301 movs r3, #1 - 80024fe: 73fb strb r3, [r7, #15] + 8002550: 2301 movs r3, #1 + 8002552: 73fb strb r3, [r7, #15] } break; - 8002500: e03d b.n 800257e + 8002554: e03d b.n 80025d2 break; } } /* Memory Data size equal to Half-Word */ else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD) - 8002502: 687b ldr r3, [r7, #4] - 8002504: 699b ldr r3, [r3, #24] - 8002506: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 - 800250a: d121 bne.n 8002550 + 8002556: 687b ldr r3, [r7, #4] + 8002558: 699b ldr r3, [r3, #24] + 800255a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 + 800255e: d121 bne.n 80025a4 { switch (tmp) - 800250c: 68bb ldr r3, [r7, #8] - 800250e: 2b03 cmp r3, #3 - 8002510: d837 bhi.n 8002582 - 8002512: a201 add r2, pc, #4 @ (adr r2, 8002518 ) - 8002514: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8002518: 08002529 .word 0x08002529 - 800251c: 0800252f .word 0x0800252f - 8002520: 08002529 .word 0x08002529 - 8002524: 08002541 .word 0x08002541 + 8002560: 68bb ldr r3, [r7, #8] + 8002562: 2b03 cmp r3, #3 + 8002564: d837 bhi.n 80025d6 + 8002566: a201 add r2, pc, #4 @ (adr r2, 800256c ) + 8002568: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800256c: 0800257d .word 0x0800257d + 8002570: 08002583 .word 0x08002583 + 8002574: 0800257d .word 0x0800257d + 8002578: 08002595 .word 0x08002595 { case DMA_FIFO_THRESHOLD_1QUARTERFULL: case DMA_FIFO_THRESHOLD_3QUARTERSFULL: status = HAL_ERROR; - 8002528: 2301 movs r3, #1 - 800252a: 73fb strb r3, [r7, #15] + 800257c: 2301 movs r3, #1 + 800257e: 73fb strb r3, [r7, #15] break; - 800252c: e030 b.n 8002590 + 8002580: e030 b.n 80025e4 case DMA_FIFO_THRESHOLD_HALFFULL: if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 800252e: 687b ldr r3, [r7, #4] - 8002530: 6adb ldr r3, [r3, #44] @ 0x2c - 8002532: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 - 8002536: 2b00 cmp r3, #0 - 8002538: d025 beq.n 8002586 + 8002582: 687b ldr r3, [r7, #4] + 8002584: 6adb ldr r3, [r3, #44] @ 0x2c + 8002586: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 + 800258a: 2b00 cmp r3, #0 + 800258c: d025 beq.n 80025da { status = HAL_ERROR; - 800253a: 2301 movs r3, #1 - 800253c: 73fb strb r3, [r7, #15] + 800258e: 2301 movs r3, #1 + 8002590: 73fb strb r3, [r7, #15] } break; - 800253e: e022 b.n 8002586 + 8002592: e022 b.n 80025da case DMA_FIFO_THRESHOLD_FULL: if (hdma->Init.MemBurst == DMA_MBURST_INC16) - 8002540: 687b ldr r3, [r7, #4] - 8002542: 6adb ldr r3, [r3, #44] @ 0x2c - 8002544: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000 - 8002548: d11f bne.n 800258a + 8002594: 687b ldr r3, [r7, #4] + 8002596: 6adb ldr r3, [r3, #44] @ 0x2c + 8002598: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000 + 800259c: d11f bne.n 80025de { status = HAL_ERROR; - 800254a: 2301 movs r3, #1 - 800254c: 73fb strb r3, [r7, #15] + 800259e: 2301 movs r3, #1 + 80025a0: 73fb strb r3, [r7, #15] } break; - 800254e: e01c b.n 800258a + 80025a2: e01c b.n 80025de } /* Memory Data size equal to Word */ else { switch (tmp) - 8002550: 68bb ldr r3, [r7, #8] - 8002552: 2b02 cmp r3, #2 - 8002554: d903 bls.n 800255e - 8002556: 68bb ldr r3, [r7, #8] - 8002558: 2b03 cmp r3, #3 - 800255a: d003 beq.n 8002564 + 80025a4: 68bb ldr r3, [r7, #8] + 80025a6: 2b02 cmp r3, #2 + 80025a8: d903 bls.n 80025b2 + 80025aa: 68bb ldr r3, [r7, #8] + 80025ac: 2b03 cmp r3, #3 + 80025ae: d003 beq.n 80025b8 { status = HAL_ERROR; } break; default: break; - 800255c: e018 b.n 8002590 + 80025b0: e018 b.n 80025e4 status = HAL_ERROR; - 800255e: 2301 movs r3, #1 - 8002560: 73fb strb r3, [r7, #15] + 80025b2: 2301 movs r3, #1 + 80025b4: 73fb strb r3, [r7, #15] break; - 8002562: e015 b.n 8002590 + 80025b6: e015 b.n 80025e4 if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 8002564: 687b ldr r3, [r7, #4] - 8002566: 6adb ldr r3, [r3, #44] @ 0x2c - 8002568: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 - 800256c: 2b00 cmp r3, #0 - 800256e: d00e beq.n 800258e + 80025b8: 687b ldr r3, [r7, #4] + 80025ba: 6adb ldr r3, [r3, #44] @ 0x2c + 80025bc: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 + 80025c0: 2b00 cmp r3, #0 + 80025c2: d00e beq.n 80025e2 status = HAL_ERROR; - 8002570: 2301 movs r3, #1 - 8002572: 73fb strb r3, [r7, #15] + 80025c4: 2301 movs r3, #1 + 80025c6: 73fb strb r3, [r7, #15] break; - 8002574: e00b b.n 800258e + 80025c8: e00b b.n 80025e2 break; - 8002576: bf00 nop - 8002578: e00a b.n 8002590 + 80025ca: bf00 nop + 80025cc: e00a b.n 80025e4 break; - 800257a: bf00 nop - 800257c: e008 b.n 8002590 + 80025ce: bf00 nop + 80025d0: e008 b.n 80025e4 break; - 800257e: bf00 nop - 8002580: e006 b.n 8002590 + 80025d2: bf00 nop + 80025d4: e006 b.n 80025e4 break; - 8002582: bf00 nop - 8002584: e004 b.n 8002590 + 80025d6: bf00 nop + 80025d8: e004 b.n 80025e4 break; - 8002586: bf00 nop - 8002588: e002 b.n 8002590 + 80025da: bf00 nop + 80025dc: e002 b.n 80025e4 break; - 800258a: bf00 nop - 800258c: e000 b.n 8002590 + 80025de: bf00 nop + 80025e0: e000 b.n 80025e4 break; - 800258e: bf00 nop + 80025e2: bf00 nop } } return status; - 8002590: 7bfb ldrb r3, [r7, #15] + 80025e4: 7bfb ldrb r3, [r7, #15] } - 8002592: 4618 mov r0, r3 - 8002594: 3714 adds r7, #20 - 8002596: 46bd mov sp, r7 - 8002598: f85d 7b04 ldr.w r7, [sp], #4 - 800259c: 4770 bx lr - 800259e: bf00 nop + 80025e6: 4618 mov r0, r3 + 80025e8: 3714 adds r7, #20 + 80025ea: 46bd mov sp, r7 + 80025ec: f85d 7b04 ldr.w r7, [sp], #4 + 80025f0: 4770 bx lr + 80025f2: bf00 nop -080025a0 : +080025f4 : * @param GPIO_Init pointer to a GPIO_InitTypeDef structure that contains * the configuration information for the specified GPIO peripheral. * @retval None */ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) { - 80025a0: b480 push {r7} - 80025a2: b089 sub sp, #36 @ 0x24 - 80025a4: af00 add r7, sp, #0 - 80025a6: 6078 str r0, [r7, #4] - 80025a8: 6039 str r1, [r7, #0] + 80025f4: b480 push {r7} + 80025f6: b089 sub sp, #36 @ 0x24 + 80025f8: af00 add r7, sp, #0 + 80025fa: 6078 str r0, [r7, #4] + 80025fc: 6039 str r1, [r7, #0] uint32_t position; uint32_t ioposition = 0x00U; - 80025aa: 2300 movs r3, #0 - 80025ac: 617b str r3, [r7, #20] + 80025fe: 2300 movs r3, #0 + 8002600: 617b str r3, [r7, #20] uint32_t iocurrent = 0x00U; - 80025ae: 2300 movs r3, #0 - 80025b0: 613b str r3, [r7, #16] + 8002602: 2300 movs r3, #0 + 8002604: 613b str r3, [r7, #16] uint32_t temp = 0x00U; - 80025b2: 2300 movs r3, #0 - 80025b4: 61bb str r3, [r7, #24] + 8002606: 2300 movs r3, #0 + 8002608: 61bb str r3, [r7, #24] assert_param(IS_GPIO_ALL_INSTANCE(GPIOx)); assert_param(IS_GPIO_PIN(GPIO_Init->Pin)); assert_param(IS_GPIO_MODE(GPIO_Init->Mode)); /* Configure the port pins */ for(position = 0U; position < GPIO_NUMBER; position++) - 80025b6: 2300 movs r3, #0 - 80025b8: 61fb str r3, [r7, #28] - 80025ba: e165 b.n 8002888 + 800260a: 2300 movs r3, #0 + 800260c: 61fb str r3, [r7, #28] + 800260e: e165 b.n 80028dc { /* Get the IO position */ ioposition = 0x01U << position; - 80025bc: 2201 movs r2, #1 - 80025be: 69fb ldr r3, [r7, #28] - 80025c0: fa02 f303 lsl.w r3, r2, r3 - 80025c4: 617b str r3, [r7, #20] + 8002610: 2201 movs r2, #1 + 8002612: 69fb ldr r3, [r7, #28] + 8002614: fa02 f303 lsl.w r3, r2, r3 + 8002618: 617b str r3, [r7, #20] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; - 80025c6: 683b ldr r3, [r7, #0] - 80025c8: 681b ldr r3, [r3, #0] - 80025ca: 697a ldr r2, [r7, #20] - 80025cc: 4013 ands r3, r2 - 80025ce: 613b str r3, [r7, #16] + 800261a: 683b ldr r3, [r7, #0] + 800261c: 681b ldr r3, [r3, #0] + 800261e: 697a ldr r2, [r7, #20] + 8002620: 4013 ands r3, r2 + 8002622: 613b str r3, [r7, #16] if(iocurrent == ioposition) - 80025d0: 693a ldr r2, [r7, #16] - 80025d2: 697b ldr r3, [r7, #20] - 80025d4: 429a cmp r2, r3 - 80025d6: f040 8154 bne.w 8002882 + 8002624: 693a ldr r2, [r7, #16] + 8002626: 697b ldr r3, [r7, #20] + 8002628: 429a cmp r2, r3 + 800262a: f040 8154 bne.w 80028d6 { /*--------------------- GPIO Mode Configuration ------------------------*/ /* In case of Output or Alternate function mode selection */ if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \ - 80025da: 683b ldr r3, [r7, #0] - 80025dc: 685b ldr r3, [r3, #4] - 80025de: f003 0303 and.w r3, r3, #3 - 80025e2: 2b01 cmp r3, #1 - 80025e4: d005 beq.n 80025f2 + 800262e: 683b ldr r3, [r7, #0] + 8002630: 685b ldr r3, [r3, #4] + 8002632: f003 0303 and.w r3, r3, #3 + 8002636: 2b01 cmp r3, #1 + 8002638: d005 beq.n 8002646 (GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - 80025e6: 683b ldr r3, [r7, #0] - 80025e8: 685b ldr r3, [r3, #4] - 80025ea: f003 0303 and.w r3, r3, #3 + 800263a: 683b ldr r3, [r7, #0] + 800263c: 685b ldr r3, [r3, #4] + 800263e: f003 0303 and.w r3, r3, #3 if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \ - 80025ee: 2b02 cmp r3, #2 - 80025f0: d130 bne.n 8002654 + 8002642: 2b02 cmp r3, #2 + 8002644: d130 bne.n 80026a8 { /* Check the Speed parameter */ assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); /* Configure the IO Speed */ temp = GPIOx->OSPEEDR; - 80025f2: 687b ldr r3, [r7, #4] - 80025f4: 689b ldr r3, [r3, #8] - 80025f6: 61bb str r3, [r7, #24] + 8002646: 687b ldr r3, [r7, #4] + 8002648: 689b ldr r3, [r3, #8] + 800264a: 61bb str r3, [r7, #24] temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); - 80025f8: 69fb ldr r3, [r7, #28] - 80025fa: 005b lsls r3, r3, #1 - 80025fc: 2203 movs r2, #3 - 80025fe: fa02 f303 lsl.w r3, r2, r3 - 8002602: 43db mvns r3, r3 - 8002604: 69ba ldr r2, [r7, #24] - 8002606: 4013 ands r3, r2 - 8002608: 61bb str r3, [r7, #24] + 800264c: 69fb ldr r3, [r7, #28] + 800264e: 005b lsls r3, r3, #1 + 8002650: 2203 movs r2, #3 + 8002652: fa02 f303 lsl.w r3, r2, r3 + 8002656: 43db mvns r3, r3 + 8002658: 69ba ldr r2, [r7, #24] + 800265a: 4013 ands r3, r2 + 800265c: 61bb str r3, [r7, #24] temp |= (GPIO_Init->Speed << (position * 2U)); - 800260a: 683b ldr r3, [r7, #0] - 800260c: 68da ldr r2, [r3, #12] - 800260e: 69fb ldr r3, [r7, #28] - 8002610: 005b lsls r3, r3, #1 - 8002612: fa02 f303 lsl.w r3, r2, r3 - 8002616: 69ba ldr r2, [r7, #24] - 8002618: 4313 orrs r3, r2 - 800261a: 61bb str r3, [r7, #24] + 800265e: 683b ldr r3, [r7, #0] + 8002660: 68da ldr r2, [r3, #12] + 8002662: 69fb ldr r3, [r7, #28] + 8002664: 005b lsls r3, r3, #1 + 8002666: fa02 f303 lsl.w r3, r2, r3 + 800266a: 69ba ldr r2, [r7, #24] + 800266c: 4313 orrs r3, r2 + 800266e: 61bb str r3, [r7, #24] GPIOx->OSPEEDR = temp; - 800261c: 687b ldr r3, [r7, #4] - 800261e: 69ba ldr r2, [r7, #24] - 8002620: 609a str r2, [r3, #8] + 8002670: 687b ldr r3, [r7, #4] + 8002672: 69ba ldr r2, [r7, #24] + 8002674: 609a str r2, [r3, #8] /* Configure the IO Output Type */ temp = GPIOx->OTYPER; - 8002622: 687b ldr r3, [r7, #4] - 8002624: 685b ldr r3, [r3, #4] - 8002626: 61bb str r3, [r7, #24] + 8002676: 687b ldr r3, [r7, #4] + 8002678: 685b ldr r3, [r3, #4] + 800267a: 61bb str r3, [r7, #24] temp &= ~(GPIO_OTYPER_OT_0 << position) ; - 8002628: 2201 movs r2, #1 - 800262a: 69fb ldr r3, [r7, #28] - 800262c: fa02 f303 lsl.w r3, r2, r3 - 8002630: 43db mvns r3, r3 - 8002632: 69ba ldr r2, [r7, #24] - 8002634: 4013 ands r3, r2 - 8002636: 61bb str r3, [r7, #24] + 800267c: 2201 movs r2, #1 + 800267e: 69fb ldr r3, [r7, #28] + 8002680: fa02 f303 lsl.w r3, r2, r3 + 8002684: 43db mvns r3, r3 + 8002686: 69ba ldr r2, [r7, #24] + 8002688: 4013 ands r3, r2 + 800268a: 61bb str r3, [r7, #24] temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); - 8002638: 683b ldr r3, [r7, #0] - 800263a: 685b ldr r3, [r3, #4] - 800263c: 091b lsrs r3, r3, #4 - 800263e: f003 0201 and.w r2, r3, #1 - 8002642: 69fb ldr r3, [r7, #28] - 8002644: fa02 f303 lsl.w r3, r2, r3 - 8002648: 69ba ldr r2, [r7, #24] - 800264a: 4313 orrs r3, r2 - 800264c: 61bb str r3, [r7, #24] + 800268c: 683b ldr r3, [r7, #0] + 800268e: 685b ldr r3, [r3, #4] + 8002690: 091b lsrs r3, r3, #4 + 8002692: f003 0201 and.w r2, r3, #1 + 8002696: 69fb ldr r3, [r7, #28] + 8002698: fa02 f303 lsl.w r3, r2, r3 + 800269c: 69ba ldr r2, [r7, #24] + 800269e: 4313 orrs r3, r2 + 80026a0: 61bb str r3, [r7, #24] GPIOx->OTYPER = temp; - 800264e: 687b ldr r3, [r7, #4] - 8002650: 69ba ldr r2, [r7, #24] - 8002652: 605a str r2, [r3, #4] + 80026a2: 687b ldr r3, [r7, #4] + 80026a4: 69ba ldr r2, [r7, #24] + 80026a6: 605a str r2, [r3, #4] } if((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG) - 8002654: 683b ldr r3, [r7, #0] - 8002656: 685b ldr r3, [r3, #4] - 8002658: f003 0303 and.w r3, r3, #3 - 800265c: 2b03 cmp r3, #3 - 800265e: d017 beq.n 8002690 + 80026a8: 683b ldr r3, [r7, #0] + 80026aa: 685b ldr r3, [r3, #4] + 80026ac: f003 0303 and.w r3, r3, #3 + 80026b0: 2b03 cmp r3, #3 + 80026b2: d017 beq.n 80026e4 { /* Check the parameters */ assert_param(IS_GPIO_PULL(GPIO_Init->Pull)); /* Activate the Pull-up or Pull down resistor for the current IO */ temp = GPIOx->PUPDR; - 8002660: 687b ldr r3, [r7, #4] - 8002662: 68db ldr r3, [r3, #12] - 8002664: 61bb str r3, [r7, #24] + 80026b4: 687b ldr r3, [r7, #4] + 80026b6: 68db ldr r3, [r3, #12] + 80026b8: 61bb str r3, [r7, #24] temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U)); - 8002666: 69fb ldr r3, [r7, #28] - 8002668: 005b lsls r3, r3, #1 - 800266a: 2203 movs r2, #3 - 800266c: fa02 f303 lsl.w r3, r2, r3 - 8002670: 43db mvns r3, r3 - 8002672: 69ba ldr r2, [r7, #24] - 8002674: 4013 ands r3, r2 - 8002676: 61bb str r3, [r7, #24] + 80026ba: 69fb ldr r3, [r7, #28] + 80026bc: 005b lsls r3, r3, #1 + 80026be: 2203 movs r2, #3 + 80026c0: fa02 f303 lsl.w r3, r2, r3 + 80026c4: 43db mvns r3, r3 + 80026c6: 69ba ldr r2, [r7, #24] + 80026c8: 4013 ands r3, r2 + 80026ca: 61bb str r3, [r7, #24] temp |= ((GPIO_Init->Pull) << (position * 2U)); - 8002678: 683b ldr r3, [r7, #0] - 800267a: 689a ldr r2, [r3, #8] - 800267c: 69fb ldr r3, [r7, #28] - 800267e: 005b lsls r3, r3, #1 - 8002680: fa02 f303 lsl.w r3, r2, r3 - 8002684: 69ba ldr r2, [r7, #24] - 8002686: 4313 orrs r3, r2 - 8002688: 61bb str r3, [r7, #24] + 80026cc: 683b ldr r3, [r7, #0] + 80026ce: 689a ldr r2, [r3, #8] + 80026d0: 69fb ldr r3, [r7, #28] + 80026d2: 005b lsls r3, r3, #1 + 80026d4: fa02 f303 lsl.w r3, r2, r3 + 80026d8: 69ba ldr r2, [r7, #24] + 80026da: 4313 orrs r3, r2 + 80026dc: 61bb str r3, [r7, #24] GPIOx->PUPDR = temp; - 800268a: 687b ldr r3, [r7, #4] - 800268c: 69ba ldr r2, [r7, #24] - 800268e: 60da str r2, [r3, #12] + 80026de: 687b ldr r3, [r7, #4] + 80026e0: 69ba ldr r2, [r7, #24] + 80026e2: 60da str r2, [r3, #12] } /* In case of Alternate function mode selection */ if((GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - 8002690: 683b ldr r3, [r7, #0] - 8002692: 685b ldr r3, [r3, #4] - 8002694: f003 0303 and.w r3, r3, #3 - 8002698: 2b02 cmp r3, #2 - 800269a: d123 bne.n 80026e4 + 80026e4: 683b ldr r3, [r7, #0] + 80026e6: 685b ldr r3, [r3, #4] + 80026e8: f003 0303 and.w r3, r3, #3 + 80026ec: 2b02 cmp r3, #2 + 80026ee: d123 bne.n 8002738 { /* Check the Alternate function parameter */ assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); /* Configure Alternate function mapped with the current IO */ temp = GPIOx->AFR[position >> 3U]; - 800269c: 69fb ldr r3, [r7, #28] - 800269e: 08da lsrs r2, r3, #3 - 80026a0: 687b ldr r3, [r7, #4] - 80026a2: 3208 adds r2, #8 - 80026a4: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80026a8: 61bb str r3, [r7, #24] + 80026f0: 69fb ldr r3, [r7, #28] + 80026f2: 08da lsrs r2, r3, #3 + 80026f4: 687b ldr r3, [r7, #4] + 80026f6: 3208 adds r2, #8 + 80026f8: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80026fc: 61bb str r3, [r7, #24] temp &= ~(0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; - 80026aa: 69fb ldr r3, [r7, #28] - 80026ac: f003 0307 and.w r3, r3, #7 - 80026b0: 009b lsls r3, r3, #2 - 80026b2: 220f movs r2, #15 - 80026b4: fa02 f303 lsl.w r3, r2, r3 - 80026b8: 43db mvns r3, r3 - 80026ba: 69ba ldr r2, [r7, #24] - 80026bc: 4013 ands r3, r2 - 80026be: 61bb str r3, [r7, #24] + 80026fe: 69fb ldr r3, [r7, #28] + 8002700: f003 0307 and.w r3, r3, #7 + 8002704: 009b lsls r3, r3, #2 + 8002706: 220f movs r2, #15 + 8002708: fa02 f303 lsl.w r3, r2, r3 + 800270c: 43db mvns r3, r3 + 800270e: 69ba ldr r2, [r7, #24] + 8002710: 4013 ands r3, r2 + 8002712: 61bb str r3, [r7, #24] temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4U)); - 80026c0: 683b ldr r3, [r7, #0] - 80026c2: 691a ldr r2, [r3, #16] - 80026c4: 69fb ldr r3, [r7, #28] - 80026c6: f003 0307 and.w r3, r3, #7 - 80026ca: 009b lsls r3, r3, #2 - 80026cc: fa02 f303 lsl.w r3, r2, r3 - 80026d0: 69ba ldr r2, [r7, #24] - 80026d2: 4313 orrs r3, r2 - 80026d4: 61bb str r3, [r7, #24] + 8002714: 683b ldr r3, [r7, #0] + 8002716: 691a ldr r2, [r3, #16] + 8002718: 69fb ldr r3, [r7, #28] + 800271a: f003 0307 and.w r3, r3, #7 + 800271e: 009b lsls r3, r3, #2 + 8002720: fa02 f303 lsl.w r3, r2, r3 + 8002724: 69ba ldr r2, [r7, #24] + 8002726: 4313 orrs r3, r2 + 8002728: 61bb str r3, [r7, #24] GPIOx->AFR[position >> 3U] = temp; - 80026d6: 69fb ldr r3, [r7, #28] - 80026d8: 08da lsrs r2, r3, #3 - 80026da: 687b ldr r3, [r7, #4] - 80026dc: 3208 adds r2, #8 - 80026de: 69b9 ldr r1, [r7, #24] - 80026e0: f843 1022 str.w r1, [r3, r2, lsl #2] + 800272a: 69fb ldr r3, [r7, #28] + 800272c: 08da lsrs r2, r3, #3 + 800272e: 687b ldr r3, [r7, #4] + 8002730: 3208 adds r2, #8 + 8002732: 69b9 ldr r1, [r7, #24] + 8002734: f843 1022 str.w r1, [r3, r2, lsl #2] } /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ temp = GPIOx->MODER; - 80026e4: 687b ldr r3, [r7, #4] - 80026e6: 681b ldr r3, [r3, #0] - 80026e8: 61bb str r3, [r7, #24] + 8002738: 687b ldr r3, [r7, #4] + 800273a: 681b ldr r3, [r3, #0] + 800273c: 61bb str r3, [r7, #24] temp &= ~(GPIO_MODER_MODER0 << (position * 2U)); - 80026ea: 69fb ldr r3, [r7, #28] - 80026ec: 005b lsls r3, r3, #1 - 80026ee: 2203 movs r2, #3 - 80026f0: fa02 f303 lsl.w r3, r2, r3 - 80026f4: 43db mvns r3, r3 - 80026f6: 69ba ldr r2, [r7, #24] - 80026f8: 4013 ands r3, r2 - 80026fa: 61bb str r3, [r7, #24] + 800273e: 69fb ldr r3, [r7, #28] + 8002740: 005b lsls r3, r3, #1 + 8002742: 2203 movs r2, #3 + 8002744: fa02 f303 lsl.w r3, r2, r3 + 8002748: 43db mvns r3, r3 + 800274a: 69ba ldr r2, [r7, #24] + 800274c: 4013 ands r3, r2 + 800274e: 61bb str r3, [r7, #24] temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); - 80026fc: 683b ldr r3, [r7, #0] - 80026fe: 685b ldr r3, [r3, #4] - 8002700: f003 0203 and.w r2, r3, #3 - 8002704: 69fb ldr r3, [r7, #28] - 8002706: 005b lsls r3, r3, #1 - 8002708: fa02 f303 lsl.w r3, r2, r3 - 800270c: 69ba ldr r2, [r7, #24] - 800270e: 4313 orrs r3, r2 - 8002710: 61bb str r3, [r7, #24] + 8002750: 683b ldr r3, [r7, #0] + 8002752: 685b ldr r3, [r3, #4] + 8002754: f003 0203 and.w r2, r3, #3 + 8002758: 69fb ldr r3, [r7, #28] + 800275a: 005b lsls r3, r3, #1 + 800275c: fa02 f303 lsl.w r3, r2, r3 + 8002760: 69ba ldr r2, [r7, #24] + 8002762: 4313 orrs r3, r2 + 8002764: 61bb str r3, [r7, #24] GPIOx->MODER = temp; - 8002712: 687b ldr r3, [r7, #4] - 8002714: 69ba ldr r2, [r7, #24] - 8002716: 601a str r2, [r3, #0] + 8002766: 687b ldr r3, [r7, #4] + 8002768: 69ba ldr r2, [r7, #24] + 800276a: 601a str r2, [r3, #0] /*--------------------- EXTI Mode Configuration ------------------------*/ /* Configure the External Interrupt or event for the current IO */ if((GPIO_Init->Mode & EXTI_MODE) != 0x00U) - 8002718: 683b ldr r3, [r7, #0] - 800271a: 685b ldr r3, [r3, #4] - 800271c: f403 3340 and.w r3, r3, #196608 @ 0x30000 - 8002720: 2b00 cmp r3, #0 - 8002722: f000 80ae beq.w 8002882 + 800276c: 683b ldr r3, [r7, #0] + 800276e: 685b ldr r3, [r3, #4] + 8002770: f403 3340 and.w r3, r3, #196608 @ 0x30000 + 8002774: 2b00 cmp r3, #0 + 8002776: f000 80ae beq.w 80028d6 { /* Enable SYSCFG Clock */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 8002726: 2300 movs r3, #0 - 8002728: 60fb str r3, [r7, #12] - 800272a: 4b5d ldr r3, [pc, #372] @ (80028a0 ) - 800272c: 6c5b ldr r3, [r3, #68] @ 0x44 - 800272e: 4a5c ldr r2, [pc, #368] @ (80028a0 ) - 8002730: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 8002734: 6453 str r3, [r2, #68] @ 0x44 - 8002736: 4b5a ldr r3, [pc, #360] @ (80028a0 ) - 8002738: 6c5b ldr r3, [r3, #68] @ 0x44 - 800273a: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 800273e: 60fb str r3, [r7, #12] - 8002740: 68fb ldr r3, [r7, #12] + 800277a: 2300 movs r3, #0 + 800277c: 60fb str r3, [r7, #12] + 800277e: 4b5d ldr r3, [pc, #372] @ (80028f4 ) + 8002780: 6c5b ldr r3, [r3, #68] @ 0x44 + 8002782: 4a5c ldr r2, [pc, #368] @ (80028f4 ) + 8002784: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 8002788: 6453 str r3, [r2, #68] @ 0x44 + 800278a: 4b5a ldr r3, [pc, #360] @ (80028f4 ) + 800278c: 6c5b ldr r3, [r3, #68] @ 0x44 + 800278e: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 8002792: 60fb str r3, [r7, #12] + 8002794: 68fb ldr r3, [r7, #12] temp = SYSCFG->EXTICR[position >> 2U]; - 8002742: 4a58 ldr r2, [pc, #352] @ (80028a4 ) - 8002744: 69fb ldr r3, [r7, #28] - 8002746: 089b lsrs r3, r3, #2 - 8002748: 3302 adds r3, #2 - 800274a: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 800274e: 61bb str r3, [r7, #24] + 8002796: 4a58 ldr r2, [pc, #352] @ (80028f8 ) + 8002798: 69fb ldr r3, [r7, #28] + 800279a: 089b lsrs r3, r3, #2 + 800279c: 3302 adds r3, #2 + 800279e: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 80027a2: 61bb str r3, [r7, #24] temp &= ~(0x0FU << (4U * (position & 0x03U))); - 8002750: 69fb ldr r3, [r7, #28] - 8002752: f003 0303 and.w r3, r3, #3 - 8002756: 009b lsls r3, r3, #2 - 8002758: 220f movs r2, #15 - 800275a: fa02 f303 lsl.w r3, r2, r3 - 800275e: 43db mvns r3, r3 - 8002760: 69ba ldr r2, [r7, #24] - 8002762: 4013 ands r3, r2 - 8002764: 61bb str r3, [r7, #24] + 80027a4: 69fb ldr r3, [r7, #28] + 80027a6: f003 0303 and.w r3, r3, #3 + 80027aa: 009b lsls r3, r3, #2 + 80027ac: 220f movs r2, #15 + 80027ae: fa02 f303 lsl.w r3, r2, r3 + 80027b2: 43db mvns r3, r3 + 80027b4: 69ba ldr r2, [r7, #24] + 80027b6: 4013 ands r3, r2 + 80027b8: 61bb str r3, [r7, #24] temp |= ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U))); - 8002766: 687b ldr r3, [r7, #4] - 8002768: 4a4f ldr r2, [pc, #316] @ (80028a8 ) - 800276a: 4293 cmp r3, r2 - 800276c: d025 beq.n 80027ba - 800276e: 687b ldr r3, [r7, #4] - 8002770: 4a4e ldr r2, [pc, #312] @ (80028ac ) - 8002772: 4293 cmp r3, r2 - 8002774: d01f beq.n 80027b6 - 8002776: 687b ldr r3, [r7, #4] - 8002778: 4a4d ldr r2, [pc, #308] @ (80028b0 ) - 800277a: 4293 cmp r3, r2 - 800277c: d019 beq.n 80027b2 - 800277e: 687b ldr r3, [r7, #4] - 8002780: 4a4c ldr r2, [pc, #304] @ (80028b4 ) - 8002782: 4293 cmp r3, r2 - 8002784: d013 beq.n 80027ae - 8002786: 687b ldr r3, [r7, #4] - 8002788: 4a4b ldr r2, [pc, #300] @ (80028b8 ) - 800278a: 4293 cmp r3, r2 - 800278c: d00d beq.n 80027aa - 800278e: 687b ldr r3, [r7, #4] - 8002790: 4a4a ldr r2, [pc, #296] @ (80028bc ) - 8002792: 4293 cmp r3, r2 - 8002794: d007 beq.n 80027a6 - 8002796: 687b ldr r3, [r7, #4] - 8002798: 4a49 ldr r2, [pc, #292] @ (80028c0 ) - 800279a: 4293 cmp r3, r2 - 800279c: d101 bne.n 80027a2 - 800279e: 2306 movs r3, #6 - 80027a0: e00c b.n 80027bc - 80027a2: 2307 movs r3, #7 - 80027a4: e00a b.n 80027bc - 80027a6: 2305 movs r3, #5 - 80027a8: e008 b.n 80027bc - 80027aa: 2304 movs r3, #4 - 80027ac: e006 b.n 80027bc - 80027ae: 2303 movs r3, #3 - 80027b0: e004 b.n 80027bc - 80027b2: 2302 movs r3, #2 - 80027b4: e002 b.n 80027bc - 80027b6: 2301 movs r3, #1 - 80027b8: e000 b.n 80027bc - 80027ba: 2300 movs r3, #0 - 80027bc: 69fa ldr r2, [r7, #28] - 80027be: f002 0203 and.w r2, r2, #3 - 80027c2: 0092 lsls r2, r2, #2 - 80027c4: 4093 lsls r3, r2 - 80027c6: 69ba ldr r2, [r7, #24] - 80027c8: 4313 orrs r3, r2 - 80027ca: 61bb str r3, [r7, #24] + 80027ba: 687b ldr r3, [r7, #4] + 80027bc: 4a4f ldr r2, [pc, #316] @ (80028fc ) + 80027be: 4293 cmp r3, r2 + 80027c0: d025 beq.n 800280e + 80027c2: 687b ldr r3, [r7, #4] + 80027c4: 4a4e ldr r2, [pc, #312] @ (8002900 ) + 80027c6: 4293 cmp r3, r2 + 80027c8: d01f beq.n 800280a + 80027ca: 687b ldr r3, [r7, #4] + 80027cc: 4a4d ldr r2, [pc, #308] @ (8002904 ) + 80027ce: 4293 cmp r3, r2 + 80027d0: d019 beq.n 8002806 + 80027d2: 687b ldr r3, [r7, #4] + 80027d4: 4a4c ldr r2, [pc, #304] @ (8002908 ) + 80027d6: 4293 cmp r3, r2 + 80027d8: d013 beq.n 8002802 + 80027da: 687b ldr r3, [r7, #4] + 80027dc: 4a4b ldr r2, [pc, #300] @ (800290c ) + 80027de: 4293 cmp r3, r2 + 80027e0: d00d beq.n 80027fe + 80027e2: 687b ldr r3, [r7, #4] + 80027e4: 4a4a ldr r2, [pc, #296] @ (8002910 ) + 80027e6: 4293 cmp r3, r2 + 80027e8: d007 beq.n 80027fa + 80027ea: 687b ldr r3, [r7, #4] + 80027ec: 4a49 ldr r2, [pc, #292] @ (8002914 ) + 80027ee: 4293 cmp r3, r2 + 80027f0: d101 bne.n 80027f6 + 80027f2: 2306 movs r3, #6 + 80027f4: e00c b.n 8002810 + 80027f6: 2307 movs r3, #7 + 80027f8: e00a b.n 8002810 + 80027fa: 2305 movs r3, #5 + 80027fc: e008 b.n 8002810 + 80027fe: 2304 movs r3, #4 + 8002800: e006 b.n 8002810 + 8002802: 2303 movs r3, #3 + 8002804: e004 b.n 8002810 + 8002806: 2302 movs r3, #2 + 8002808: e002 b.n 8002810 + 800280a: 2301 movs r3, #1 + 800280c: e000 b.n 8002810 + 800280e: 2300 movs r3, #0 + 8002810: 69fa ldr r2, [r7, #28] + 8002812: f002 0203 and.w r2, r2, #3 + 8002816: 0092 lsls r2, r2, #2 + 8002818: 4093 lsls r3, r2 + 800281a: 69ba ldr r2, [r7, #24] + 800281c: 4313 orrs r3, r2 + 800281e: 61bb str r3, [r7, #24] SYSCFG->EXTICR[position >> 2U] = temp; - 80027cc: 4935 ldr r1, [pc, #212] @ (80028a4 ) - 80027ce: 69fb ldr r3, [r7, #28] - 80027d0: 089b lsrs r3, r3, #2 - 80027d2: 3302 adds r3, #2 - 80027d4: 69ba ldr r2, [r7, #24] - 80027d6: f841 2023 str.w r2, [r1, r3, lsl #2] + 8002820: 4935 ldr r1, [pc, #212] @ (80028f8 ) + 8002822: 69fb ldr r3, [r7, #28] + 8002824: 089b lsrs r3, r3, #2 + 8002826: 3302 adds r3, #2 + 8002828: 69ba ldr r2, [r7, #24] + 800282a: f841 2023 str.w r2, [r1, r3, lsl #2] /* Clear Rising Falling edge configuration */ temp = EXTI->RTSR; - 80027da: 4b3a ldr r3, [pc, #232] @ (80028c4 ) - 80027dc: 689b ldr r3, [r3, #8] - 80027de: 61bb str r3, [r7, #24] - temp &= ~((uint32_t)iocurrent); - 80027e0: 693b ldr r3, [r7, #16] - 80027e2: 43db mvns r3, r3 - 80027e4: 69ba ldr r2, [r7, #24] - 80027e6: 4013 ands r3, r2 - 80027e8: 61bb str r3, [r7, #24] - if((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U) - 80027ea: 683b ldr r3, [r7, #0] - 80027ec: 685b ldr r3, [r3, #4] - 80027ee: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 80027f2: 2b00 cmp r3, #0 - 80027f4: d003 beq.n 80027fe - { - temp |= iocurrent; - 80027f6: 69ba ldr r2, [r7, #24] - 80027f8: 693b ldr r3, [r7, #16] - 80027fa: 4313 orrs r3, r2 - 80027fc: 61bb str r3, [r7, #24] - } - EXTI->RTSR = temp; - 80027fe: 4a31 ldr r2, [pc, #196] @ (80028c4 ) - 8002800: 69bb ldr r3, [r7, #24] - 8002802: 6093 str r3, [r2, #8] - - temp = EXTI->FTSR; - 8002804: 4b2f ldr r3, [pc, #188] @ (80028c4 ) - 8002806: 68db ldr r3, [r3, #12] - 8002808: 61bb str r3, [r7, #24] - temp &= ~((uint32_t)iocurrent); - 800280a: 693b ldr r3, [r7, #16] - 800280c: 43db mvns r3, r3 - 800280e: 69ba ldr r2, [r7, #24] - 8002810: 4013 ands r3, r2 - 8002812: 61bb str r3, [r7, #24] - if((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U) - 8002814: 683b ldr r3, [r7, #0] - 8002816: 685b ldr r3, [r3, #4] - 8002818: f403 1300 and.w r3, r3, #2097152 @ 0x200000 - 800281c: 2b00 cmp r3, #0 - 800281e: d003 beq.n 8002828 - { - temp |= iocurrent; - 8002820: 69ba ldr r2, [r7, #24] - 8002822: 693b ldr r3, [r7, #16] - 8002824: 4313 orrs r3, r2 - 8002826: 61bb str r3, [r7, #24] - } - EXTI->FTSR = temp; - 8002828: 4a26 ldr r2, [pc, #152] @ (80028c4 ) - 800282a: 69bb ldr r3, [r7, #24] - 800282c: 60d3 str r3, [r2, #12] - - temp = EXTI->EMR; - 800282e: 4b25 ldr r3, [pc, #148] @ (80028c4 ) - 8002830: 685b ldr r3, [r3, #4] + 800282e: 4b3a ldr r3, [pc, #232] @ (8002918 ) + 8002830: 689b ldr r3, [r3, #8] 8002832: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); 8002834: 693b ldr r3, [r7, #16] @@ -6601,12 +6589,12 @@ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) 8002838: 69ba ldr r2, [r7, #24] 800283a: 4013 ands r3, r2 800283c: 61bb str r3, [r7, #24] - if((GPIO_Init->Mode & EXTI_EVT) != 0x00U) + if((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U) 800283e: 683b ldr r3, [r7, #0] 8002840: 685b ldr r3, [r3, #4] - 8002842: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8002842: f403 1380 and.w r3, r3, #1048576 @ 0x100000 8002846: 2b00 cmp r3, #0 - 8002848: d003 beq.n 8002852 + 8002848: d003 beq.n 8002852 { temp |= iocurrent; 800284a: 69ba ldr r2, [r7, #24] @@ -6614,15 +6602,14 @@ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) 800284e: 4313 orrs r3, r2 8002850: 61bb str r3, [r7, #24] } - EXTI->EMR = temp; - 8002852: 4a1c ldr r2, [pc, #112] @ (80028c4 ) + EXTI->RTSR = temp; + 8002852: 4a31 ldr r2, [pc, #196] @ (8002918 ) 8002854: 69bb ldr r3, [r7, #24] - 8002856: 6053 str r3, [r2, #4] + 8002856: 6093 str r3, [r2, #8] - /* Clear EXTI line configuration */ - temp = EXTI->IMR; - 8002858: 4b1a ldr r3, [pc, #104] @ (80028c4 ) - 800285a: 681b ldr r3, [r3, #0] + temp = EXTI->FTSR; + 8002858: 4b2f ldr r3, [pc, #188] @ (8002918 ) + 800285a: 68db ldr r3, [r3, #12] 800285c: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); 800285e: 693b ldr r3, [r7, #16] @@ -6630,12 +6617,12 @@ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) 8002862: 69ba ldr r2, [r7, #24] 8002864: 4013 ands r3, r2 8002866: 61bb str r3, [r7, #24] - if((GPIO_Init->Mode & EXTI_IT) != 0x00U) + if((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U) 8002868: 683b ldr r3, [r7, #0] 800286a: 685b ldr r3, [r3, #4] - 800286c: f403 3380 and.w r3, r3, #65536 @ 0x10000 + 800286c: f403 1300 and.w r3, r3, #2097152 @ 0x200000 8002870: 2b00 cmp r3, #0 - 8002872: d003 beq.n 800287c + 8002872: d003 beq.n 800287c { temp |= iocurrent; 8002874: 69ba ldr r2, [r7, #24] @@ -6643,392 +6630,412 @@ void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init) 8002878: 4313 orrs r3, r2 800287a: 61bb str r3, [r7, #24] } - EXTI->IMR = temp; - 800287c: 4a11 ldr r2, [pc, #68] @ (80028c4 ) + EXTI->FTSR = temp; + 800287c: 4a26 ldr r2, [pc, #152] @ (8002918 ) 800287e: 69bb ldr r3, [r7, #24] - 8002880: 6013 str r3, [r2, #0] + 8002880: 60d3 str r3, [r2, #12] + + temp = EXTI->EMR; + 8002882: 4b25 ldr r3, [pc, #148] @ (8002918 ) + 8002884: 685b ldr r3, [r3, #4] + 8002886: 61bb str r3, [r7, #24] + temp &= ~((uint32_t)iocurrent); + 8002888: 693b ldr r3, [r7, #16] + 800288a: 43db mvns r3, r3 + 800288c: 69ba ldr r2, [r7, #24] + 800288e: 4013 ands r3, r2 + 8002890: 61bb str r3, [r7, #24] + if((GPIO_Init->Mode & EXTI_EVT) != 0x00U) + 8002892: 683b ldr r3, [r7, #0] + 8002894: 685b ldr r3, [r3, #4] + 8002896: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 800289a: 2b00 cmp r3, #0 + 800289c: d003 beq.n 80028a6 + { + temp |= iocurrent; + 800289e: 69ba ldr r2, [r7, #24] + 80028a0: 693b ldr r3, [r7, #16] + 80028a2: 4313 orrs r3, r2 + 80028a4: 61bb str r3, [r7, #24] + } + EXTI->EMR = temp; + 80028a6: 4a1c ldr r2, [pc, #112] @ (8002918 ) + 80028a8: 69bb ldr r3, [r7, #24] + 80028aa: 6053 str r3, [r2, #4] + + /* Clear EXTI line configuration */ + temp = EXTI->IMR; + 80028ac: 4b1a ldr r3, [pc, #104] @ (8002918 ) + 80028ae: 681b ldr r3, [r3, #0] + 80028b0: 61bb str r3, [r7, #24] + temp &= ~((uint32_t)iocurrent); + 80028b2: 693b ldr r3, [r7, #16] + 80028b4: 43db mvns r3, r3 + 80028b6: 69ba ldr r2, [r7, #24] + 80028b8: 4013 ands r3, r2 + 80028ba: 61bb str r3, [r7, #24] + if((GPIO_Init->Mode & EXTI_IT) != 0x00U) + 80028bc: 683b ldr r3, [r7, #0] + 80028be: 685b ldr r3, [r3, #4] + 80028c0: f403 3380 and.w r3, r3, #65536 @ 0x10000 + 80028c4: 2b00 cmp r3, #0 + 80028c6: d003 beq.n 80028d0 + { + temp |= iocurrent; + 80028c8: 69ba ldr r2, [r7, #24] + 80028ca: 693b ldr r3, [r7, #16] + 80028cc: 4313 orrs r3, r2 + 80028ce: 61bb str r3, [r7, #24] + } + EXTI->IMR = temp; + 80028d0: 4a11 ldr r2, [pc, #68] @ (8002918 ) + 80028d2: 69bb ldr r3, [r7, #24] + 80028d4: 6013 str r3, [r2, #0] for(position = 0U; position < GPIO_NUMBER; position++) - 8002882: 69fb ldr r3, [r7, #28] - 8002884: 3301 adds r3, #1 - 8002886: 61fb str r3, [r7, #28] - 8002888: 69fb ldr r3, [r7, #28] - 800288a: 2b0f cmp r3, #15 - 800288c: f67f ae96 bls.w 80025bc + 80028d6: 69fb ldr r3, [r7, #28] + 80028d8: 3301 adds r3, #1 + 80028da: 61fb str r3, [r7, #28] + 80028dc: 69fb ldr r3, [r7, #28] + 80028de: 2b0f cmp r3, #15 + 80028e0: f67f ae96 bls.w 8002610 } } } } - 8002890: bf00 nop - 8002892: bf00 nop - 8002894: 3724 adds r7, #36 @ 0x24 - 8002896: 46bd mov sp, r7 - 8002898: f85d 7b04 ldr.w r7, [sp], #4 - 800289c: 4770 bx lr - 800289e: bf00 nop - 80028a0: 40023800 .word 0x40023800 - 80028a4: 40013800 .word 0x40013800 - 80028a8: 40020000 .word 0x40020000 - 80028ac: 40020400 .word 0x40020400 - 80028b0: 40020800 .word 0x40020800 - 80028b4: 40020c00 .word 0x40020c00 - 80028b8: 40021000 .word 0x40021000 - 80028bc: 40021400 .word 0x40021400 - 80028c0: 40021800 .word 0x40021800 - 80028c4: 40013c00 .word 0x40013c00 + 80028e4: bf00 nop + 80028e6: bf00 nop + 80028e8: 3724 adds r7, #36 @ 0x24 + 80028ea: 46bd mov sp, r7 + 80028ec: f85d 7b04 ldr.w r7, [sp], #4 + 80028f0: 4770 bx lr + 80028f2: bf00 nop + 80028f4: 40023800 .word 0x40023800 + 80028f8: 40013800 .word 0x40013800 + 80028fc: 40020000 .word 0x40020000 + 8002900: 40020400 .word 0x40020400 + 8002904: 40020800 .word 0x40020800 + 8002908: 40020c00 .word 0x40020c00 + 800290c: 40021000 .word 0x40021000 + 8002910: 40021400 .word 0x40021400 + 8002914: 40021800 .word 0x40021800 + 8002918: 40013c00 .word 0x40013c00 -080028c8 : +0800291c : * @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) { - 80028c8: b480 push {r7} - 80028ca: b085 sub sp, #20 - 80028cc: af00 add r7, sp, #0 - 80028ce: 6078 str r0, [r7, #4] - 80028d0: 460b mov r3, r1 - 80028d2: 807b strh r3, [r7, #2] + 800291c: b480 push {r7} + 800291e: b085 sub sp, #20 + 8002920: af00 add r7, sp, #0 + 8002922: 6078 str r0, [r7, #4] + 8002924: 460b mov r3, r1 + 8002926: 807b strh r3, [r7, #2] GPIO_PinState bitstatus; /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); if((GPIOx->IDR & GPIO_Pin) != (uint32_t)GPIO_PIN_RESET) - 80028d4: 687b ldr r3, [r7, #4] - 80028d6: 691a ldr r2, [r3, #16] - 80028d8: 887b ldrh r3, [r7, #2] - 80028da: 4013 ands r3, r2 - 80028dc: 2b00 cmp r3, #0 - 80028de: d002 beq.n 80028e6 + 8002928: 687b ldr r3, [r7, #4] + 800292a: 691a ldr r2, [r3, #16] + 800292c: 887b ldrh r3, [r7, #2] + 800292e: 4013 ands r3, r2 + 8002930: 2b00 cmp r3, #0 + 8002932: d002 beq.n 800293a { bitstatus = GPIO_PIN_SET; - 80028e0: 2301 movs r3, #1 - 80028e2: 73fb strb r3, [r7, #15] - 80028e4: e001 b.n 80028ea + 8002934: 2301 movs r3, #1 + 8002936: 73fb strb r3, [r7, #15] + 8002938: e001 b.n 800293e } else { bitstatus = GPIO_PIN_RESET; - 80028e6: 2300 movs r3, #0 - 80028e8: 73fb strb r3, [r7, #15] + 800293a: 2300 movs r3, #0 + 800293c: 73fb strb r3, [r7, #15] } return bitstatus; - 80028ea: 7bfb ldrb r3, [r7, #15] + 800293e: 7bfb ldrb r3, [r7, #15] } - 80028ec: 4618 mov r0, r3 - 80028ee: 3714 adds r7, #20 - 80028f0: 46bd mov sp, r7 - 80028f2: f85d 7b04 ldr.w r7, [sp], #4 - 80028f6: 4770 bx lr + 8002940: 4618 mov r0, r3 + 8002942: 3714 adds r7, #20 + 8002944: 46bd mov sp, r7 + 8002946: f85d 7b04 ldr.w r7, [sp], #4 + 800294a: 4770 bx lr -080028f8 : +0800294c : * @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) { - 80028f8: b480 push {r7} - 80028fa: b083 sub sp, #12 - 80028fc: af00 add r7, sp, #0 - 80028fe: 6078 str r0, [r7, #4] - 8002900: 460b mov r3, r1 - 8002902: 807b strh r3, [r7, #2] - 8002904: 4613 mov r3, r2 - 8002906: 707b strb r3, [r7, #1] + 800294c: b480 push {r7} + 800294e: b083 sub sp, #12 + 8002950: af00 add r7, sp, #0 + 8002952: 6078 str r0, [r7, #4] + 8002954: 460b mov r3, r1 + 8002956: 807b strh r3, [r7, #2] + 8002958: 4613 mov r3, r2 + 800295a: 707b strb r3, [r7, #1] /* Check the parameters */ assert_param(IS_GPIO_PIN(GPIO_Pin)); assert_param(IS_GPIO_PIN_ACTION(PinState)); if(PinState != GPIO_PIN_RESET) - 8002908: 787b ldrb r3, [r7, #1] - 800290a: 2b00 cmp r3, #0 - 800290c: d003 beq.n 8002916 + 800295c: 787b ldrb r3, [r7, #1] + 800295e: 2b00 cmp r3, #0 + 8002960: d003 beq.n 800296a { GPIOx->BSRR = GPIO_Pin; - 800290e: 887a ldrh r2, [r7, #2] - 8002910: 687b ldr r3, [r7, #4] - 8002912: 619a str r2, [r3, #24] + 8002962: 887a ldrh r2, [r7, #2] + 8002964: 687b ldr r3, [r7, #4] + 8002966: 619a str r2, [r3, #24] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U; } } - 8002914: e003 b.n 800291e + 8002968: e003 b.n 8002972 GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U; - 8002916: 887b ldrh r3, [r7, #2] - 8002918: 041a lsls r2, r3, #16 - 800291a: 687b ldr r3, [r7, #4] - 800291c: 619a str r2, [r3, #24] + 800296a: 887b ldrh r3, [r7, #2] + 800296c: 041a lsls r2, r3, #16 + 800296e: 687b ldr r3, [r7, #4] + 8002970: 619a str r2, [r3, #24] } - 800291e: bf00 nop - 8002920: 370c adds r7, #12 - 8002922: 46bd mov sp, r7 - 8002924: f85d 7b04 ldr.w r7, [sp], #4 - 8002928: 4770 bx lr + 8002972: bf00 nop + 8002974: 370c adds r7, #12 + 8002976: 46bd mov sp, r7 + 8002978: f85d 7b04 ldr.w r7, [sp], #4 + 800297c: 4770 bx lr ... -0800292c : +08002980 : * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c) { - 800292c: b580 push {r7, lr} - 800292e: b084 sub sp, #16 - 8002930: af00 add r7, sp, #0 - 8002932: 6078 str r0, [r7, #4] + 8002980: b580 push {r7, lr} + 8002982: b084 sub sp, #16 + 8002984: af00 add r7, sp, #0 + 8002986: 6078 str r0, [r7, #4] uint32_t freqrange; uint32_t pclk1; /* Check the I2C handle allocation */ if (hi2c == NULL) - 8002934: 687b ldr r3, [r7, #4] - 8002936: 2b00 cmp r3, #0 - 8002938: d101 bne.n 800293e + 8002988: 687b ldr r3, [r7, #4] + 800298a: 2b00 cmp r3, #0 + 800298c: d101 bne.n 8002992 { return HAL_ERROR; - 800293a: 2301 movs r3, #1 - 800293c: e12b b.n 8002b96 + 800298e: 2301 movs r3, #1 + 8002990: e12b b.n 8002bea assert_param(IS_I2C_DUAL_ADDRESS(hi2c->Init.DualAddressMode)); assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2)); assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode)); assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode)); if (hi2c->State == HAL_I2C_STATE_RESET) - 800293e: 687b ldr r3, [r7, #4] - 8002940: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 8002944: b2db uxtb r3, r3 - 8002946: 2b00 cmp r3, #0 - 8002948: d106 bne.n 8002958 + 8002992: 687b ldr r3, [r7, #4] + 8002994: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 8002998: b2db uxtb r3, r3 + 800299a: 2b00 cmp r3, #0 + 800299c: d106 bne.n 80029ac { /* Allocate lock resource and initialize it */ hi2c->Lock = HAL_UNLOCKED; - 800294a: 687b ldr r3, [r7, #4] - 800294c: 2200 movs r2, #0 - 800294e: f883 203c strb.w r2, [r3, #60] @ 0x3c + 800299e: 687b ldr r3, [r7, #4] + 80029a0: 2200 movs r2, #0 + 80029a2: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Init the low level hardware : GPIO, CLOCK, NVIC */ hi2c->MspInitCallback(hi2c); #else /* Init the low level hardware : GPIO, CLOCK, NVIC */ HAL_I2C_MspInit(hi2c); - 8002952: 6878 ldr r0, [r7, #4] - 8002954: f7fd ff20 bl 8000798 + 80029a6: 6878 ldr r0, [r7, #4] + 80029a8: f7fd fef6 bl 8000798 #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } hi2c->State = HAL_I2C_STATE_BUSY; - 8002958: 687b ldr r3, [r7, #4] - 800295a: 2224 movs r2, #36 @ 0x24 - 800295c: f883 203d strb.w r2, [r3, #61] @ 0x3d + 80029ac: 687b ldr r3, [r7, #4] + 80029ae: 2224 movs r2, #36 @ 0x24 + 80029b0: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); - 8002960: 687b ldr r3, [r7, #4] - 8002962: 681b ldr r3, [r3, #0] - 8002964: 681a ldr r2, [r3, #0] - 8002966: 687b ldr r3, [r7, #4] - 8002968: 681b ldr r3, [r3, #0] - 800296a: f022 0201 bic.w r2, r2, #1 - 800296e: 601a str r2, [r3, #0] + 80029b4: 687b ldr r3, [r7, #4] + 80029b6: 681b ldr r3, [r3, #0] + 80029b8: 681a ldr r2, [r3, #0] + 80029ba: 687b ldr r3, [r7, #4] + 80029bc: 681b ldr r3, [r3, #0] + 80029be: f022 0201 bic.w r2, r2, #1 + 80029c2: 601a str r2, [r3, #0] /*Reset I2C*/ hi2c->Instance->CR1 |= I2C_CR1_SWRST; - 8002970: 687b ldr r3, [r7, #4] - 8002972: 681b ldr r3, [r3, #0] - 8002974: 681a ldr r2, [r3, #0] - 8002976: 687b ldr r3, [r7, #4] - 8002978: 681b ldr r3, [r3, #0] - 800297a: f442 4200 orr.w r2, r2, #32768 @ 0x8000 - 800297e: 601a str r2, [r3, #0] + 80029c4: 687b ldr r3, [r7, #4] + 80029c6: 681b ldr r3, [r3, #0] + 80029c8: 681a ldr r2, [r3, #0] + 80029ca: 687b ldr r3, [r7, #4] + 80029cc: 681b ldr r3, [r3, #0] + 80029ce: f442 4200 orr.w r2, r2, #32768 @ 0x8000 + 80029d2: 601a str r2, [r3, #0] hi2c->Instance->CR1 &= ~I2C_CR1_SWRST; - 8002980: 687b ldr r3, [r7, #4] - 8002982: 681b ldr r3, [r3, #0] - 8002984: 681a ldr r2, [r3, #0] - 8002986: 687b ldr r3, [r7, #4] - 8002988: 681b ldr r3, [r3, #0] - 800298a: f422 4200 bic.w r2, r2, #32768 @ 0x8000 - 800298e: 601a str r2, [r3, #0] + 80029d4: 687b ldr r3, [r7, #4] + 80029d6: 681b ldr r3, [r3, #0] + 80029d8: 681a ldr r2, [r3, #0] + 80029da: 687b ldr r3, [r7, #4] + 80029dc: 681b ldr r3, [r3, #0] + 80029de: f422 4200 bic.w r2, r2, #32768 @ 0x8000 + 80029e2: 601a str r2, [r3, #0] /* Get PCLK1 frequency */ pclk1 = HAL_RCC_GetPCLK1Freq(); - 8002990: f001 fc88 bl 80042a4 - 8002994: 60f8 str r0, [r7, #12] + 80029e4: f001 fc88 bl 80042f8 + 80029e8: 60f8 str r0, [r7, #12] /* Check the minimum allowed PCLK1 frequency */ if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U) - 8002996: 687b ldr r3, [r7, #4] - 8002998: 685b ldr r3, [r3, #4] - 800299a: 4a81 ldr r2, [pc, #516] @ (8002ba0 ) - 800299c: 4293 cmp r3, r2 - 800299e: d807 bhi.n 80029b0 - 80029a0: 68fb ldr r3, [r7, #12] - 80029a2: 4a80 ldr r2, [pc, #512] @ (8002ba4 ) - 80029a4: 4293 cmp r3, r2 - 80029a6: bf94 ite ls - 80029a8: 2301 movls r3, #1 - 80029aa: 2300 movhi r3, #0 - 80029ac: b2db uxtb r3, r3 - 80029ae: e006 b.n 80029be - 80029b0: 68fb ldr r3, [r7, #12] - 80029b2: 4a7d ldr r2, [pc, #500] @ (8002ba8 ) - 80029b4: 4293 cmp r3, r2 - 80029b6: bf94 ite ls - 80029b8: 2301 movls r3, #1 - 80029ba: 2300 movhi r3, #0 - 80029bc: b2db uxtb r3, r3 - 80029be: 2b00 cmp r3, #0 - 80029c0: d001 beq.n 80029c6 + 80029ea: 687b ldr r3, [r7, #4] + 80029ec: 685b ldr r3, [r3, #4] + 80029ee: 4a81 ldr r2, [pc, #516] @ (8002bf4 ) + 80029f0: 4293 cmp r3, r2 + 80029f2: d807 bhi.n 8002a04 + 80029f4: 68fb ldr r3, [r7, #12] + 80029f6: 4a80 ldr r2, [pc, #512] @ (8002bf8 ) + 80029f8: 4293 cmp r3, r2 + 80029fa: bf94 ite ls + 80029fc: 2301 movls r3, #1 + 80029fe: 2300 movhi r3, #0 + 8002a00: b2db uxtb r3, r3 + 8002a02: e006 b.n 8002a12 + 8002a04: 68fb ldr r3, [r7, #12] + 8002a06: 4a7d ldr r2, [pc, #500] @ (8002bfc ) + 8002a08: 4293 cmp r3, r2 + 8002a0a: bf94 ite ls + 8002a0c: 2301 movls r3, #1 + 8002a0e: 2300 movhi r3, #0 + 8002a10: b2db uxtb r3, r3 + 8002a12: 2b00 cmp r3, #0 + 8002a14: d001 beq.n 8002a1a { return HAL_ERROR; - 80029c2: 2301 movs r3, #1 - 80029c4: e0e7 b.n 8002b96 + 8002a16: 2301 movs r3, #1 + 8002a18: e0e7 b.n 8002bea } /* Calculate frequency range */ freqrange = I2C_FREQRANGE(pclk1); - 80029c6: 68fb ldr r3, [r7, #12] - 80029c8: 4a78 ldr r2, [pc, #480] @ (8002bac ) - 80029ca: fba2 2303 umull r2, r3, r2, r3 - 80029ce: 0c9b lsrs r3, r3, #18 - 80029d0: 60bb str r3, [r7, #8] + 8002a1a: 68fb ldr r3, [r7, #12] + 8002a1c: 4a78 ldr r2, [pc, #480] @ (8002c00 ) + 8002a1e: fba2 2303 umull r2, r3, r2, r3 + 8002a22: 0c9b lsrs r3, r3, #18 + 8002a24: 60bb str r3, [r7, #8] /*---------------------------- I2Cx CR2 Configuration ----------------------*/ /* Configure I2Cx: Frequency range */ MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange); - 80029d2: 687b ldr r3, [r7, #4] - 80029d4: 681b ldr r3, [r3, #0] - 80029d6: 685b ldr r3, [r3, #4] - 80029d8: f023 013f bic.w r1, r3, #63 @ 0x3f - 80029dc: 687b ldr r3, [r7, #4] - 80029de: 681b ldr r3, [r3, #0] - 80029e0: 68ba ldr r2, [r7, #8] - 80029e2: 430a orrs r2, r1 - 80029e4: 605a str r2, [r3, #4] + 8002a26: 687b ldr r3, [r7, #4] + 8002a28: 681b ldr r3, [r3, #0] + 8002a2a: 685b ldr r3, [r3, #4] + 8002a2c: f023 013f bic.w r1, r3, #63 @ 0x3f + 8002a30: 687b ldr r3, [r7, #4] + 8002a32: 681b ldr r3, [r3, #0] + 8002a34: 68ba ldr r2, [r7, #8] + 8002a36: 430a orrs r2, r1 + 8002a38: 605a str r2, [r3, #4] /*---------------------------- I2Cx TRISE Configuration --------------------*/ /* Configure I2Cx: Rise Time */ MODIFY_REG(hi2c->Instance->TRISE, I2C_TRISE_TRISE, I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed)); - 80029e6: 687b ldr r3, [r7, #4] - 80029e8: 681b ldr r3, [r3, #0] - 80029ea: 6a1b ldr r3, [r3, #32] - 80029ec: f023 013f bic.w r1, r3, #63 @ 0x3f - 80029f0: 687b ldr r3, [r7, #4] - 80029f2: 685b ldr r3, [r3, #4] - 80029f4: 4a6a ldr r2, [pc, #424] @ (8002ba0 ) - 80029f6: 4293 cmp r3, r2 - 80029f8: d802 bhi.n 8002a00 - 80029fa: 68bb ldr r3, [r7, #8] - 80029fc: 3301 adds r3, #1 - 80029fe: e009 b.n 8002a14 - 8002a00: 68bb ldr r3, [r7, #8] - 8002a02: f44f 7296 mov.w r2, #300 @ 0x12c - 8002a06: fb02 f303 mul.w r3, r2, r3 - 8002a0a: 4a69 ldr r2, [pc, #420] @ (8002bb0 ) - 8002a0c: fba2 2303 umull r2, r3, r2, r3 - 8002a10: 099b lsrs r3, r3, #6 - 8002a12: 3301 adds r3, #1 - 8002a14: 687a ldr r2, [r7, #4] - 8002a16: 6812 ldr r2, [r2, #0] - 8002a18: 430b orrs r3, r1 - 8002a1a: 6213 str r3, [r2, #32] + 8002a3a: 687b ldr r3, [r7, #4] + 8002a3c: 681b ldr r3, [r3, #0] + 8002a3e: 6a1b ldr r3, [r3, #32] + 8002a40: f023 013f bic.w r1, r3, #63 @ 0x3f + 8002a44: 687b ldr r3, [r7, #4] + 8002a46: 685b ldr r3, [r3, #4] + 8002a48: 4a6a ldr r2, [pc, #424] @ (8002bf4 ) + 8002a4a: 4293 cmp r3, r2 + 8002a4c: d802 bhi.n 8002a54 + 8002a4e: 68bb ldr r3, [r7, #8] + 8002a50: 3301 adds r3, #1 + 8002a52: e009 b.n 8002a68 + 8002a54: 68bb ldr r3, [r7, #8] + 8002a56: f44f 7296 mov.w r2, #300 @ 0x12c + 8002a5a: fb02 f303 mul.w r3, r2, r3 + 8002a5e: 4a69 ldr r2, [pc, #420] @ (8002c04 ) + 8002a60: fba2 2303 umull r2, r3, r2, r3 + 8002a64: 099b lsrs r3, r3, #6 + 8002a66: 3301 adds r3, #1 + 8002a68: 687a ldr r2, [r7, #4] + 8002a6a: 6812 ldr r2, [r2, #0] + 8002a6c: 430b orrs r3, r1 + 8002a6e: 6213 str r3, [r2, #32] /*---------------------------- I2Cx CCR Configuration ----------------------*/ /* Configure I2Cx: Speed */ MODIFY_REG(hi2c->Instance->CCR, (I2C_CCR_FS | I2C_CCR_DUTY | I2C_CCR_CCR), I2C_SPEED(pclk1, hi2c->Init.ClockSpeed, hi2c->Init.DutyCycle)); - 8002a1c: 687b ldr r3, [r7, #4] - 8002a1e: 681b ldr r3, [r3, #0] - 8002a20: 69db ldr r3, [r3, #28] - 8002a22: f423 424f bic.w r2, r3, #52992 @ 0xcf00 - 8002a26: f022 02ff bic.w r2, r2, #255 @ 0xff - 8002a2a: 687b ldr r3, [r7, #4] - 8002a2c: 685b ldr r3, [r3, #4] - 8002a2e: 495c ldr r1, [pc, #368] @ (8002ba0 ) - 8002a30: 428b cmp r3, r1 - 8002a32: d819 bhi.n 8002a68 - 8002a34: 68fb ldr r3, [r7, #12] - 8002a36: 1e59 subs r1, r3, #1 - 8002a38: 687b ldr r3, [r7, #4] - 8002a3a: 685b ldr r3, [r3, #4] - 8002a3c: 005b lsls r3, r3, #1 - 8002a3e: fbb1 f3f3 udiv r3, r1, r3 - 8002a42: 1c59 adds r1, r3, #1 - 8002a44: f640 73fc movw r3, #4092 @ 0xffc - 8002a48: 400b ands r3, r1 - 8002a4a: 2b00 cmp r3, #0 - 8002a4c: d00a beq.n 8002a64 - 8002a4e: 68fb ldr r3, [r7, #12] - 8002a50: 1e59 subs r1, r3, #1 - 8002a52: 687b ldr r3, [r7, #4] - 8002a54: 685b ldr r3, [r3, #4] - 8002a56: 005b lsls r3, r3, #1 - 8002a58: fbb1 f3f3 udiv r3, r1, r3 - 8002a5c: 3301 adds r3, #1 - 8002a5e: f3c3 030b ubfx r3, r3, #0, #12 - 8002a62: e051 b.n 8002b08 - 8002a64: 2304 movs r3, #4 - 8002a66: e04f b.n 8002b08 - 8002a68: 687b ldr r3, [r7, #4] - 8002a6a: 689b ldr r3, [r3, #8] - 8002a6c: 2b00 cmp r3, #0 - 8002a6e: d111 bne.n 8002a94 - 8002a70: 68fb ldr r3, [r7, #12] - 8002a72: 1e58 subs r0, r3, #1 - 8002a74: 687b ldr r3, [r7, #4] - 8002a76: 6859 ldr r1, [r3, #4] - 8002a78: 460b mov r3, r1 - 8002a7a: 005b lsls r3, r3, #1 - 8002a7c: 440b add r3, r1 - 8002a7e: fbb0 f3f3 udiv r3, r0, r3 - 8002a82: 3301 adds r3, #1 - 8002a84: f3c3 030b ubfx r3, r3, #0, #12 - 8002a88: 2b00 cmp r3, #0 - 8002a8a: bf0c ite eq - 8002a8c: 2301 moveq r3, #1 - 8002a8e: 2300 movne r3, #0 - 8002a90: b2db uxtb r3, r3 - 8002a92: e012 b.n 8002aba - 8002a94: 68fb ldr r3, [r7, #12] - 8002a96: 1e58 subs r0, r3, #1 - 8002a98: 687b ldr r3, [r7, #4] - 8002a9a: 6859 ldr r1, [r3, #4] - 8002a9c: 460b mov r3, r1 - 8002a9e: 009b lsls r3, r3, #2 - 8002aa0: 440b add r3, r1 - 8002aa2: 0099 lsls r1, r3, #2 - 8002aa4: 440b add r3, r1 - 8002aa6: fbb0 f3f3 udiv r3, r0, r3 - 8002aaa: 3301 adds r3, #1 - 8002aac: f3c3 030b ubfx r3, r3, #0, #12 - 8002ab0: 2b00 cmp r3, #0 - 8002ab2: bf0c ite eq - 8002ab4: 2301 moveq r3, #1 - 8002ab6: 2300 movne r3, #0 - 8002ab8: b2db uxtb r3, r3 - 8002aba: 2b00 cmp r3, #0 - 8002abc: d001 beq.n 8002ac2 - 8002abe: 2301 movs r3, #1 - 8002ac0: e022 b.n 8002b08 - 8002ac2: 687b ldr r3, [r7, #4] - 8002ac4: 689b ldr r3, [r3, #8] - 8002ac6: 2b00 cmp r3, #0 - 8002ac8: d10e bne.n 8002ae8 - 8002aca: 68fb ldr r3, [r7, #12] - 8002acc: 1e58 subs r0, r3, #1 - 8002ace: 687b ldr r3, [r7, #4] - 8002ad0: 6859 ldr r1, [r3, #4] - 8002ad2: 460b mov r3, r1 - 8002ad4: 005b lsls r3, r3, #1 - 8002ad6: 440b add r3, r1 - 8002ad8: fbb0 f3f3 udiv r3, r0, r3 - 8002adc: 3301 adds r3, #1 - 8002ade: f3c3 030b ubfx r3, r3, #0, #12 - 8002ae2: f443 4300 orr.w r3, r3, #32768 @ 0x8000 - 8002ae6: e00f b.n 8002b08 + 8002a70: 687b ldr r3, [r7, #4] + 8002a72: 681b ldr r3, [r3, #0] + 8002a74: 69db ldr r3, [r3, #28] + 8002a76: f423 424f bic.w r2, r3, #52992 @ 0xcf00 + 8002a7a: f022 02ff bic.w r2, r2, #255 @ 0xff + 8002a7e: 687b ldr r3, [r7, #4] + 8002a80: 685b ldr r3, [r3, #4] + 8002a82: 495c ldr r1, [pc, #368] @ (8002bf4 ) + 8002a84: 428b cmp r3, r1 + 8002a86: d819 bhi.n 8002abc + 8002a88: 68fb ldr r3, [r7, #12] + 8002a8a: 1e59 subs r1, r3, #1 + 8002a8c: 687b ldr r3, [r7, #4] + 8002a8e: 685b ldr r3, [r3, #4] + 8002a90: 005b lsls r3, r3, #1 + 8002a92: fbb1 f3f3 udiv r3, r1, r3 + 8002a96: 1c59 adds r1, r3, #1 + 8002a98: f640 73fc movw r3, #4092 @ 0xffc + 8002a9c: 400b ands r3, r1 + 8002a9e: 2b00 cmp r3, #0 + 8002aa0: d00a beq.n 8002ab8 + 8002aa2: 68fb ldr r3, [r7, #12] + 8002aa4: 1e59 subs r1, r3, #1 + 8002aa6: 687b ldr r3, [r7, #4] + 8002aa8: 685b ldr r3, [r3, #4] + 8002aaa: 005b lsls r3, r3, #1 + 8002aac: fbb1 f3f3 udiv r3, r1, r3 + 8002ab0: 3301 adds r3, #1 + 8002ab2: f3c3 030b ubfx r3, r3, #0, #12 + 8002ab6: e051 b.n 8002b5c + 8002ab8: 2304 movs r3, #4 + 8002aba: e04f b.n 8002b5c + 8002abc: 687b ldr r3, [r7, #4] + 8002abe: 689b ldr r3, [r3, #8] + 8002ac0: 2b00 cmp r3, #0 + 8002ac2: d111 bne.n 8002ae8 + 8002ac4: 68fb ldr r3, [r7, #12] + 8002ac6: 1e58 subs r0, r3, #1 + 8002ac8: 687b ldr r3, [r7, #4] + 8002aca: 6859 ldr r1, [r3, #4] + 8002acc: 460b mov r3, r1 + 8002ace: 005b lsls r3, r3, #1 + 8002ad0: 440b add r3, r1 + 8002ad2: fbb0 f3f3 udiv r3, r0, r3 + 8002ad6: 3301 adds r3, #1 + 8002ad8: f3c3 030b ubfx r3, r3, #0, #12 + 8002adc: 2b00 cmp r3, #0 + 8002ade: bf0c ite eq + 8002ae0: 2301 moveq r3, #1 + 8002ae2: 2300 movne r3, #0 + 8002ae4: b2db uxtb r3, r3 + 8002ae6: e012 b.n 8002b0e 8002ae8: 68fb ldr r3, [r7, #12] 8002aea: 1e58 subs r0, r3, #1 8002aec: 687b ldr r3, [r7, #4] @@ -7041,287 +7048,277 @@ HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c) 8002afa: fbb0 f3f3 udiv r3, r0, r3 8002afe: 3301 adds r3, #1 8002b00: f3c3 030b ubfx r3, r3, #0, #12 - 8002b04: f443 4340 orr.w r3, r3, #49152 @ 0xc000 - 8002b08: 6879 ldr r1, [r7, #4] - 8002b0a: 6809 ldr r1, [r1, #0] - 8002b0c: 4313 orrs r3, r2 - 8002b0e: 61cb str r3, [r1, #28] + 8002b04: 2b00 cmp r3, #0 + 8002b06: bf0c ite eq + 8002b08: 2301 moveq r3, #1 + 8002b0a: 2300 movne r3, #0 + 8002b0c: b2db uxtb r3, r3 + 8002b0e: 2b00 cmp r3, #0 + 8002b10: d001 beq.n 8002b16 + 8002b12: 2301 movs r3, #1 + 8002b14: e022 b.n 8002b5c + 8002b16: 687b ldr r3, [r7, #4] + 8002b18: 689b ldr r3, [r3, #8] + 8002b1a: 2b00 cmp r3, #0 + 8002b1c: d10e bne.n 8002b3c + 8002b1e: 68fb ldr r3, [r7, #12] + 8002b20: 1e58 subs r0, r3, #1 + 8002b22: 687b ldr r3, [r7, #4] + 8002b24: 6859 ldr r1, [r3, #4] + 8002b26: 460b mov r3, r1 + 8002b28: 005b lsls r3, r3, #1 + 8002b2a: 440b add r3, r1 + 8002b2c: fbb0 f3f3 udiv r3, r0, r3 + 8002b30: 3301 adds r3, #1 + 8002b32: f3c3 030b ubfx r3, r3, #0, #12 + 8002b36: f443 4300 orr.w r3, r3, #32768 @ 0x8000 + 8002b3a: e00f b.n 8002b5c + 8002b3c: 68fb ldr r3, [r7, #12] + 8002b3e: 1e58 subs r0, r3, #1 + 8002b40: 687b ldr r3, [r7, #4] + 8002b42: 6859 ldr r1, [r3, #4] + 8002b44: 460b mov r3, r1 + 8002b46: 009b lsls r3, r3, #2 + 8002b48: 440b add r3, r1 + 8002b4a: 0099 lsls r1, r3, #2 + 8002b4c: 440b add r3, r1 + 8002b4e: fbb0 f3f3 udiv r3, r0, r3 + 8002b52: 3301 adds r3, #1 + 8002b54: f3c3 030b ubfx r3, r3, #0, #12 + 8002b58: f443 4340 orr.w r3, r3, #49152 @ 0xc000 + 8002b5c: 6879 ldr r1, [r7, #4] + 8002b5e: 6809 ldr r1, [r1, #0] + 8002b60: 4313 orrs r3, r2 + 8002b62: 61cb str r3, [r1, #28] /*---------------------------- I2Cx CR1 Configuration ----------------------*/ /* Configure I2Cx: Generalcall and NoStretch mode */ MODIFY_REG(hi2c->Instance->CR1, (I2C_CR1_ENGC | I2C_CR1_NOSTRETCH), (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode)); - 8002b10: 687b ldr r3, [r7, #4] - 8002b12: 681b ldr r3, [r3, #0] - 8002b14: 681b ldr r3, [r3, #0] - 8002b16: f023 01c0 bic.w r1, r3, #192 @ 0xc0 - 8002b1a: 687b ldr r3, [r7, #4] - 8002b1c: 69da ldr r2, [r3, #28] - 8002b1e: 687b ldr r3, [r7, #4] - 8002b20: 6a1b ldr r3, [r3, #32] - 8002b22: 431a orrs r2, r3 - 8002b24: 687b ldr r3, [r7, #4] - 8002b26: 681b ldr r3, [r3, #0] - 8002b28: 430a orrs r2, r1 - 8002b2a: 601a str r2, [r3, #0] + 8002b64: 687b ldr r3, [r7, #4] + 8002b66: 681b ldr r3, [r3, #0] + 8002b68: 681b ldr r3, [r3, #0] + 8002b6a: f023 01c0 bic.w r1, r3, #192 @ 0xc0 + 8002b6e: 687b ldr r3, [r7, #4] + 8002b70: 69da ldr r2, [r3, #28] + 8002b72: 687b ldr r3, [r7, #4] + 8002b74: 6a1b ldr r3, [r3, #32] + 8002b76: 431a orrs r2, r3 + 8002b78: 687b ldr r3, [r7, #4] + 8002b7a: 681b ldr r3, [r3, #0] + 8002b7c: 430a orrs r2, r1 + 8002b7e: 601a str r2, [r3, #0] /*---------------------------- I2Cx OAR1 Configuration ---------------------*/ /* Configure I2Cx: Own Address1 and addressing mode */ MODIFY_REG(hi2c->Instance->OAR1, (I2C_OAR1_ADDMODE | I2C_OAR1_ADD8_9 | I2C_OAR1_ADD1_7 | I2C_OAR1_ADD0), (hi2c->Init.AddressingMode | hi2c->Init.OwnAddress1)); - 8002b2c: 687b ldr r3, [r7, #4] - 8002b2e: 681b ldr r3, [r3, #0] - 8002b30: 689b ldr r3, [r3, #8] - 8002b32: f423 4303 bic.w r3, r3, #33536 @ 0x8300 - 8002b36: f023 03ff bic.w r3, r3, #255 @ 0xff - 8002b3a: 687a ldr r2, [r7, #4] - 8002b3c: 6911 ldr r1, [r2, #16] - 8002b3e: 687a ldr r2, [r7, #4] - 8002b40: 68d2 ldr r2, [r2, #12] - 8002b42: 4311 orrs r1, r2 - 8002b44: 687a ldr r2, [r7, #4] - 8002b46: 6812 ldr r2, [r2, #0] - 8002b48: 430b orrs r3, r1 - 8002b4a: 6093 str r3, [r2, #8] + 8002b80: 687b ldr r3, [r7, #4] + 8002b82: 681b ldr r3, [r3, #0] + 8002b84: 689b ldr r3, [r3, #8] + 8002b86: f423 4303 bic.w r3, r3, #33536 @ 0x8300 + 8002b8a: f023 03ff bic.w r3, r3, #255 @ 0xff + 8002b8e: 687a ldr r2, [r7, #4] + 8002b90: 6911 ldr r1, [r2, #16] + 8002b92: 687a ldr r2, [r7, #4] + 8002b94: 68d2 ldr r2, [r2, #12] + 8002b96: 4311 orrs r1, r2 + 8002b98: 687a ldr r2, [r7, #4] + 8002b9a: 6812 ldr r2, [r2, #0] + 8002b9c: 430b orrs r3, r1 + 8002b9e: 6093 str r3, [r2, #8] /*---------------------------- I2Cx OAR2 Configuration ---------------------*/ /* Configure I2Cx: Dual mode and Own Address2 */ MODIFY_REG(hi2c->Instance->OAR2, (I2C_OAR2_ENDUAL | I2C_OAR2_ADD2), (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2)); - 8002b4c: 687b ldr r3, [r7, #4] - 8002b4e: 681b ldr r3, [r3, #0] - 8002b50: 68db ldr r3, [r3, #12] - 8002b52: f023 01ff bic.w r1, r3, #255 @ 0xff - 8002b56: 687b ldr r3, [r7, #4] - 8002b58: 695a ldr r2, [r3, #20] - 8002b5a: 687b ldr r3, [r7, #4] - 8002b5c: 699b ldr r3, [r3, #24] - 8002b5e: 431a orrs r2, r3 - 8002b60: 687b ldr r3, [r7, #4] - 8002b62: 681b ldr r3, [r3, #0] - 8002b64: 430a orrs r2, r1 - 8002b66: 60da str r2, [r3, #12] + 8002ba0: 687b ldr r3, [r7, #4] + 8002ba2: 681b ldr r3, [r3, #0] + 8002ba4: 68db ldr r3, [r3, #12] + 8002ba6: f023 01ff bic.w r1, r3, #255 @ 0xff + 8002baa: 687b ldr r3, [r7, #4] + 8002bac: 695a ldr r2, [r3, #20] + 8002bae: 687b ldr r3, [r7, #4] + 8002bb0: 699b ldr r3, [r3, #24] + 8002bb2: 431a orrs r2, r3 + 8002bb4: 687b ldr r3, [r7, #4] + 8002bb6: 681b ldr r3, [r3, #0] + 8002bb8: 430a orrs r2, r1 + 8002bba: 60da str r2, [r3, #12] /* Enable the selected I2C peripheral */ __HAL_I2C_ENABLE(hi2c); - 8002b68: 687b ldr r3, [r7, #4] - 8002b6a: 681b ldr r3, [r3, #0] - 8002b6c: 681a ldr r2, [r3, #0] - 8002b6e: 687b ldr r3, [r7, #4] - 8002b70: 681b ldr r3, [r3, #0] - 8002b72: f042 0201 orr.w r2, r2, #1 - 8002b76: 601a str r2, [r3, #0] + 8002bbc: 687b ldr r3, [r7, #4] + 8002bbe: 681b ldr r3, [r3, #0] + 8002bc0: 681a ldr r2, [r3, #0] + 8002bc2: 687b ldr r3, [r7, #4] + 8002bc4: 681b ldr r3, [r3, #0] + 8002bc6: f042 0201 orr.w r2, r2, #1 + 8002bca: 601a str r2, [r3, #0] hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8002b78: 687b ldr r3, [r7, #4] - 8002b7a: 2200 movs r2, #0 - 8002b7c: 641a str r2, [r3, #64] @ 0x40 + 8002bcc: 687b ldr r3, [r7, #4] + 8002bce: 2200 movs r2, #0 + 8002bd0: 641a str r2, [r3, #64] @ 0x40 hi2c->State = HAL_I2C_STATE_READY; - 8002b7e: 687b ldr r3, [r7, #4] - 8002b80: 2220 movs r2, #32 - 8002b82: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8002bd2: 687b ldr r3, [r7, #4] + 8002bd4: 2220 movs r2, #32 + 8002bd6: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->PreviousState = I2C_STATE_NONE; - 8002b86: 687b ldr r3, [r7, #4] - 8002b88: 2200 movs r2, #0 - 8002b8a: 631a str r2, [r3, #48] @ 0x30 + 8002bda: 687b ldr r3, [r7, #4] + 8002bdc: 2200 movs r2, #0 + 8002bde: 631a str r2, [r3, #48] @ 0x30 hi2c->Mode = HAL_I2C_MODE_NONE; - 8002b8c: 687b ldr r3, [r7, #4] - 8002b8e: 2200 movs r2, #0 - 8002b90: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8002be0: 687b ldr r3, [r7, #4] + 8002be2: 2200 movs r2, #0 + 8002be4: f883 203e strb.w r2, [r3, #62] @ 0x3e return HAL_OK; - 8002b94: 2300 movs r3, #0 + 8002be8: 2300 movs r3, #0 } - 8002b96: 4618 mov r0, r3 - 8002b98: 3710 adds r7, #16 - 8002b9a: 46bd mov sp, r7 - 8002b9c: bd80 pop {r7, pc} - 8002b9e: bf00 nop - 8002ba0: 000186a0 .word 0x000186a0 - 8002ba4: 001e847f .word 0x001e847f - 8002ba8: 003d08ff .word 0x003d08ff - 8002bac: 431bde83 .word 0x431bde83 - 8002bb0: 10624dd3 .word 0x10624dd3 + 8002bea: 4618 mov r0, r3 + 8002bec: 3710 adds r7, #16 + 8002bee: 46bd mov sp, r7 + 8002bf0: bd80 pop {r7, pc} + 8002bf2: bf00 nop + 8002bf4: 000186a0 .word 0x000186a0 + 8002bf8: 001e847f .word 0x001e847f + 8002bfc: 003d08ff .word 0x003d08ff + 8002c00: 431bde83 .word 0x431bde83 + 8002c04: 10624dd3 .word 0x10624dd3 -08002bb4 : +08002c08 : * parameters in the PCD_InitTypeDef and initialize the associated handle. * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd) { - 8002bb4: b580 push {r7, lr} - 8002bb6: b086 sub sp, #24 - 8002bb8: af02 add r7, sp, #8 - 8002bba: 6078 str r0, [r7, #4] + 8002c08: b580 push {r7, lr} + 8002c0a: b086 sub sp, #24 + 8002c0c: af02 add r7, sp, #8 + 8002c0e: 6078 str r0, [r7, #4] const USB_OTG_GlobalTypeDef *USBx; #endif /* defined (USB_OTG_FS) */ uint8_t i; /* Check the PCD handle allocation */ if (hpcd == NULL) - 8002bbc: 687b ldr r3, [r7, #4] - 8002bbe: 2b00 cmp r3, #0 - 8002bc0: d101 bne.n 8002bc6 + 8002c10: 687b ldr r3, [r7, #4] + 8002c12: 2b00 cmp r3, #0 + 8002c14: d101 bne.n 8002c1a { return HAL_ERROR; - 8002bc2: 2301 movs r3, #1 - 8002bc4: e108 b.n 8002dd8 + 8002c16: 2301 movs r3, #1 + 8002c18: e108 b.n 8002e2c /* Check the parameters */ assert_param(IS_PCD_ALL_INSTANCE(hpcd->Instance)); #if defined (USB_OTG_FS) USBx = hpcd->Instance; - 8002bc6: 687b ldr r3, [r7, #4] - 8002bc8: 681b ldr r3, [r3, #0] - 8002bca: 60bb str r3, [r7, #8] + 8002c1a: 687b ldr r3, [r7, #4] + 8002c1c: 681b ldr r3, [r3, #0] + 8002c1e: 60bb str r3, [r7, #8] #endif /* defined (USB_OTG_FS) */ if (hpcd->State == HAL_PCD_STATE_RESET) - 8002bcc: 687b ldr r3, [r7, #4] - 8002bce: f893 3495 ldrb.w r3, [r3, #1173] @ 0x495 - 8002bd2: b2db uxtb r3, r3 - 8002bd4: 2b00 cmp r3, #0 - 8002bd6: d106 bne.n 8002be6 + 8002c20: 687b ldr r3, [r7, #4] + 8002c22: f893 3495 ldrb.w r3, [r3, #1173] @ 0x495 + 8002c26: b2db uxtb r3, r3 + 8002c28: 2b00 cmp r3, #0 + 8002c2a: d106 bne.n 8002c3a { /* Allocate lock resource and initialize it */ hpcd->Lock = HAL_UNLOCKED; - 8002bd8: 687b ldr r3, [r7, #4] - 8002bda: 2200 movs r2, #0 - 8002bdc: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8002c2c: 687b ldr r3, [r7, #4] + 8002c2e: 2200 movs r2, #0 + 8002c30: f883 2494 strb.w r2, [r3, #1172] @ 0x494 /* Init the low level hardware */ hpcd->MspInitCallback(hpcd); #else /* Init the low level hardware : GPIO, CLOCK, NVIC... */ HAL_PCD_MspInit(hpcd); - 8002be0: 6878 ldr r0, [r7, #4] - 8002be2: f007 fbb1 bl 800a348 + 8002c34: 6878 ldr r0, [r7, #4] + 8002c36: f007 fbb1 bl 800a39c #endif /* (USE_HAL_PCD_REGISTER_CALLBACKS) */ } hpcd->State = HAL_PCD_STATE_BUSY; - 8002be6: 687b ldr r3, [r7, #4] - 8002be8: 2203 movs r2, #3 - 8002bea: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 8002c3a: 687b ldr r3, [r7, #4] + 8002c3c: 2203 movs r2, #3 + 8002c3e: f883 2495 strb.w r2, [r3, #1173] @ 0x495 #if defined (USB_OTG_FS) /* Disable DMA mode for FS instance */ if (USBx == USB_OTG_FS) - 8002bee: 68bb ldr r3, [r7, #8] - 8002bf0: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 - 8002bf4: d102 bne.n 8002bfc + 8002c42: 68bb ldr r3, [r7, #8] + 8002c44: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 + 8002c48: d102 bne.n 8002c50 { hpcd->Init.dma_enable = 0U; - 8002bf6: 687b ldr r3, [r7, #4] - 8002bf8: 2200 movs r2, #0 - 8002bfa: 719a strb r2, [r3, #6] + 8002c4a: 687b ldr r3, [r7, #4] + 8002c4c: 2200 movs r2, #0 + 8002c4e: 719a strb r2, [r3, #6] } #endif /* defined (USB_OTG_FS) */ /* Disable the Interrupts */ __HAL_PCD_DISABLE(hpcd); - 8002bfc: 687b ldr r3, [r7, #4] - 8002bfe: 681b ldr r3, [r3, #0] - 8002c00: 4618 mov r0, r3 - 8002c02: f004 faa6 bl 8007152 + 8002c50: 687b ldr r3, [r7, #4] + 8002c52: 681b ldr r3, [r3, #0] + 8002c54: 4618 mov r0, r3 + 8002c56: f004 faa6 bl 80071a6 /*Init the Core (common init.) */ if (USB_CoreInit(hpcd->Instance, hpcd->Init) != HAL_OK) - 8002c06: 687b ldr r3, [r7, #4] - 8002c08: 6818 ldr r0, [r3, #0] - 8002c0a: 687b ldr r3, [r7, #4] - 8002c0c: 7c1a ldrb r2, [r3, #16] - 8002c0e: f88d 2000 strb.w r2, [sp] - 8002c12: 3304 adds r3, #4 - 8002c14: cb0e ldmia r3, {r1, r2, r3} - 8002c16: f004 f985 bl 8006f24 - 8002c1a: 4603 mov r3, r0 - 8002c1c: 2b00 cmp r3, #0 - 8002c1e: d005 beq.n 8002c2c + 8002c5a: 687b ldr r3, [r7, #4] + 8002c5c: 6818 ldr r0, [r3, #0] + 8002c5e: 687b ldr r3, [r7, #4] + 8002c60: 7c1a ldrb r2, [r3, #16] + 8002c62: f88d 2000 strb.w r2, [sp] + 8002c66: 3304 adds r3, #4 + 8002c68: cb0e ldmia r3, {r1, r2, r3} + 8002c6a: f004 f985 bl 8006f78 + 8002c6e: 4603 mov r3, r0 + 8002c70: 2b00 cmp r3, #0 + 8002c72: d005 beq.n 8002c80 { hpcd->State = HAL_PCD_STATE_ERROR; - 8002c20: 687b ldr r3, [r7, #4] - 8002c22: 2202 movs r2, #2 - 8002c24: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 8002c74: 687b ldr r3, [r7, #4] + 8002c76: 2202 movs r2, #2 + 8002c78: f883 2495 strb.w r2, [r3, #1173] @ 0x495 return HAL_ERROR; - 8002c28: 2301 movs r3, #1 - 8002c2a: e0d5 b.n 8002dd8 + 8002c7c: 2301 movs r3, #1 + 8002c7e: e0d5 b.n 8002e2c } /* Force Device Mode */ if (USB_SetCurrentMode(hpcd->Instance, USB_DEVICE_MODE) != HAL_OK) - 8002c2c: 687b ldr r3, [r7, #4] - 8002c2e: 681b ldr r3, [r3, #0] - 8002c30: 2100 movs r1, #0 - 8002c32: 4618 mov r0, r3 - 8002c34: f004 fa9e bl 8007174 - 8002c38: 4603 mov r3, r0 - 8002c3a: 2b00 cmp r3, #0 - 8002c3c: d005 beq.n 8002c4a + 8002c80: 687b ldr r3, [r7, #4] + 8002c82: 681b ldr r3, [r3, #0] + 8002c84: 2100 movs r1, #0 + 8002c86: 4618 mov r0, r3 + 8002c88: f004 fa9e bl 80071c8 + 8002c8c: 4603 mov r3, r0 + 8002c8e: 2b00 cmp r3, #0 + 8002c90: d005 beq.n 8002c9e { hpcd->State = HAL_PCD_STATE_ERROR; - 8002c3e: 687b ldr r3, [r7, #4] - 8002c40: 2202 movs r2, #2 - 8002c42: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 8002c92: 687b ldr r3, [r7, #4] + 8002c94: 2202 movs r2, #2 + 8002c96: f883 2495 strb.w r2, [r3, #1173] @ 0x495 return HAL_ERROR; - 8002c46: 2301 movs r3, #1 - 8002c48: e0c6 b.n 8002dd8 + 8002c9a: 2301 movs r3, #1 + 8002c9c: e0c6 b.n 8002e2c } /* Init endpoints structures */ for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 8002c4a: 2300 movs r3, #0 - 8002c4c: 73fb strb r3, [r7, #15] - 8002c4e: e04a b.n 8002ce6 + 8002c9e: 2300 movs r3, #0 + 8002ca0: 73fb strb r3, [r7, #15] + 8002ca2: e04a b.n 8002d3a { /* Init ep structure */ hpcd->IN_ep[i].is_in = 1U; - 8002c50: 7bfa ldrb r2, [r7, #15] - 8002c52: 6879 ldr r1, [r7, #4] - 8002c54: 4613 mov r3, r2 - 8002c56: 00db lsls r3, r3, #3 - 8002c58: 4413 add r3, r2 - 8002c5a: 009b lsls r3, r3, #2 - 8002c5c: 440b add r3, r1 - 8002c5e: 3315 adds r3, #21 - 8002c60: 2201 movs r2, #1 - 8002c62: 701a strb r2, [r3, #0] - hpcd->IN_ep[i].num = i; - 8002c64: 7bfa ldrb r2, [r7, #15] - 8002c66: 6879 ldr r1, [r7, #4] - 8002c68: 4613 mov r3, r2 - 8002c6a: 00db lsls r3, r3, #3 - 8002c6c: 4413 add r3, r2 - 8002c6e: 009b lsls r3, r3, #2 - 8002c70: 440b add r3, r1 - 8002c72: 3314 adds r3, #20 - 8002c74: 7bfa ldrb r2, [r7, #15] - 8002c76: 701a strb r2, [r3, #0] - hpcd->IN_ep[i].tx_fifo_num = i; - 8002c78: 7bfa ldrb r2, [r7, #15] - 8002c7a: 7bfb ldrb r3, [r7, #15] - 8002c7c: b298 uxth r0, r3 - 8002c7e: 6879 ldr r1, [r7, #4] - 8002c80: 4613 mov r3, r2 - 8002c82: 00db lsls r3, r3, #3 - 8002c84: 4413 add r3, r2 - 8002c86: 009b lsls r3, r3, #2 - 8002c88: 440b add r3, r1 - 8002c8a: 332e adds r3, #46 @ 0x2e - 8002c8c: 4602 mov r2, r0 - 8002c8e: 801a strh r2, [r3, #0] - /* Control until ep is activated */ - hpcd->IN_ep[i].type = EP_TYPE_CTRL; - 8002c90: 7bfa ldrb r2, [r7, #15] - 8002c92: 6879 ldr r1, [r7, #4] - 8002c94: 4613 mov r3, r2 - 8002c96: 00db lsls r3, r3, #3 - 8002c98: 4413 add r3, r2 - 8002c9a: 009b lsls r3, r3, #2 - 8002c9c: 440b add r3, r1 - 8002c9e: 3318 adds r3, #24 - 8002ca0: 2200 movs r2, #0 - 8002ca2: 701a strb r2, [r3, #0] - hpcd->IN_ep[i].maxpacket = 0U; 8002ca4: 7bfa ldrb r2, [r7, #15] 8002ca6: 6879 ldr r1, [r7, #4] 8002ca8: 4613 mov r3, r2 @@ -7329,10 +7326,10 @@ HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd) 8002cac: 4413 add r3, r2 8002cae: 009b lsls r3, r3, #2 8002cb0: 440b add r3, r1 - 8002cb2: 331c adds r3, #28 - 8002cb4: 2200 movs r2, #0 - 8002cb6: 601a str r2, [r3, #0] - hpcd->IN_ep[i].xfer_buff = 0U; + 8002cb2: 3315 adds r3, #21 + 8002cb4: 2201 movs r2, #1 + 8002cb6: 701a strb r2, [r3, #0] + hpcd->IN_ep[i].num = i; 8002cb8: 7bfa ldrb r2, [r7, #15] 8002cba: 6879 ldr r1, [r7, #4] 8002cbc: 4613 mov r3, r2 @@ -7340,48 +7337,46 @@ HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd) 8002cc0: 4413 add r3, r2 8002cc2: 009b lsls r3, r3, #2 8002cc4: 440b add r3, r1 - 8002cc6: 3320 adds r3, #32 - 8002cc8: 2200 movs r2, #0 - 8002cca: 601a str r2, [r3, #0] - hpcd->IN_ep[i].xfer_len = 0U; + 8002cc6: 3314 adds r3, #20 + 8002cc8: 7bfa ldrb r2, [r7, #15] + 8002cca: 701a strb r2, [r3, #0] + hpcd->IN_ep[i].tx_fifo_num = i; 8002ccc: 7bfa ldrb r2, [r7, #15] - 8002cce: 6879 ldr r1, [r7, #4] - 8002cd0: 4613 mov r3, r2 - 8002cd2: 00db lsls r3, r3, #3 - 8002cd4: 4413 add r3, r2 - 8002cd6: 009b lsls r3, r3, #2 - 8002cd8: 440b add r3, r1 - 8002cda: 3324 adds r3, #36 @ 0x24 - 8002cdc: 2200 movs r2, #0 - 8002cde: 601a str r2, [r3, #0] - for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 8002ce0: 7bfb ldrb r3, [r7, #15] - 8002ce2: 3301 adds r3, #1 - 8002ce4: 73fb strb r3, [r7, #15] - 8002ce6: 687b ldr r3, [r7, #4] - 8002ce8: 791b ldrb r3, [r3, #4] - 8002cea: 7bfa ldrb r2, [r7, #15] - 8002cec: 429a cmp r2, r3 - 8002cee: d3af bcc.n 8002c50 - } - - for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 8002cf0: 2300 movs r3, #0 - 8002cf2: 73fb strb r3, [r7, #15] - 8002cf4: e044 b.n 8002d80 - { - hpcd->OUT_ep[i].is_in = 0U; - 8002cf6: 7bfa ldrb r2, [r7, #15] - 8002cf8: 6879 ldr r1, [r7, #4] - 8002cfa: 4613 mov r3, r2 - 8002cfc: 00db lsls r3, r3, #3 - 8002cfe: 4413 add r3, r2 - 8002d00: 009b lsls r3, r3, #2 - 8002d02: 440b add r3, r1 - 8002d04: f203 2355 addw r3, r3, #597 @ 0x255 + 8002cce: 7bfb ldrb r3, [r7, #15] + 8002cd0: b298 uxth r0, r3 + 8002cd2: 6879 ldr r1, [r7, #4] + 8002cd4: 4613 mov r3, r2 + 8002cd6: 00db lsls r3, r3, #3 + 8002cd8: 4413 add r3, r2 + 8002cda: 009b lsls r3, r3, #2 + 8002cdc: 440b add r3, r1 + 8002cde: 332e adds r3, #46 @ 0x2e + 8002ce0: 4602 mov r2, r0 + 8002ce2: 801a strh r2, [r3, #0] + /* Control until ep is activated */ + hpcd->IN_ep[i].type = EP_TYPE_CTRL; + 8002ce4: 7bfa ldrb r2, [r7, #15] + 8002ce6: 6879 ldr r1, [r7, #4] + 8002ce8: 4613 mov r3, r2 + 8002cea: 00db lsls r3, r3, #3 + 8002cec: 4413 add r3, r2 + 8002cee: 009b lsls r3, r3, #2 + 8002cf0: 440b add r3, r1 + 8002cf2: 3318 adds r3, #24 + 8002cf4: 2200 movs r2, #0 + 8002cf6: 701a strb r2, [r3, #0] + hpcd->IN_ep[i].maxpacket = 0U; + 8002cf8: 7bfa ldrb r2, [r7, #15] + 8002cfa: 6879 ldr r1, [r7, #4] + 8002cfc: 4613 mov r3, r2 + 8002cfe: 00db lsls r3, r3, #3 + 8002d00: 4413 add r3, r2 + 8002d02: 009b lsls r3, r3, #2 + 8002d04: 440b add r3, r1 + 8002d06: 331c adds r3, #28 8002d08: 2200 movs r2, #0 - 8002d0a: 701a strb r2, [r3, #0] - hpcd->OUT_ep[i].num = i; + 8002d0a: 601a str r2, [r3, #0] + hpcd->IN_ep[i].xfer_buff = 0U; 8002d0c: 7bfa ldrb r2, [r7, #15] 8002d0e: 6879 ldr r1, [r7, #4] 8002d10: 4613 mov r3, r2 @@ -7389,21087 +7384,21136 @@ HAL_StatusTypeDef HAL_PCD_Init(PCD_HandleTypeDef *hpcd) 8002d14: 4413 add r3, r2 8002d16: 009b lsls r3, r3, #2 8002d18: 440b add r3, r1 - 8002d1a: f503 7315 add.w r3, r3, #596 @ 0x254 - 8002d1e: 7bfa ldrb r2, [r7, #15] - 8002d20: 701a strb r2, [r3, #0] + 8002d1a: 3320 adds r3, #32 + 8002d1c: 2200 movs r2, #0 + 8002d1e: 601a str r2, [r3, #0] + hpcd->IN_ep[i].xfer_len = 0U; + 8002d20: 7bfa ldrb r2, [r7, #15] + 8002d22: 6879 ldr r1, [r7, #4] + 8002d24: 4613 mov r3, r2 + 8002d26: 00db lsls r3, r3, #3 + 8002d28: 4413 add r3, r2 + 8002d2a: 009b lsls r3, r3, #2 + 8002d2c: 440b add r3, r1 + 8002d2e: 3324 adds r3, #36 @ 0x24 + 8002d30: 2200 movs r2, #0 + 8002d32: 601a str r2, [r3, #0] + for (i = 0U; i < hpcd->Init.dev_endpoints; i++) + 8002d34: 7bfb ldrb r3, [r7, #15] + 8002d36: 3301 adds r3, #1 + 8002d38: 73fb strb r3, [r7, #15] + 8002d3a: 687b ldr r3, [r7, #4] + 8002d3c: 791b ldrb r3, [r3, #4] + 8002d3e: 7bfa ldrb r2, [r7, #15] + 8002d40: 429a cmp r2, r3 + 8002d42: d3af bcc.n 8002ca4 + } + + for (i = 0U; i < hpcd->Init.dev_endpoints; i++) + 8002d44: 2300 movs r3, #0 + 8002d46: 73fb strb r3, [r7, #15] + 8002d48: e044 b.n 8002dd4 + { + hpcd->OUT_ep[i].is_in = 0U; + 8002d4a: 7bfa ldrb r2, [r7, #15] + 8002d4c: 6879 ldr r1, [r7, #4] + 8002d4e: 4613 mov r3, r2 + 8002d50: 00db lsls r3, r3, #3 + 8002d52: 4413 add r3, r2 + 8002d54: 009b lsls r3, r3, #2 + 8002d56: 440b add r3, r1 + 8002d58: f203 2355 addw r3, r3, #597 @ 0x255 + 8002d5c: 2200 movs r2, #0 + 8002d5e: 701a strb r2, [r3, #0] + hpcd->OUT_ep[i].num = i; + 8002d60: 7bfa ldrb r2, [r7, #15] + 8002d62: 6879 ldr r1, [r7, #4] + 8002d64: 4613 mov r3, r2 + 8002d66: 00db lsls r3, r3, #3 + 8002d68: 4413 add r3, r2 + 8002d6a: 009b lsls r3, r3, #2 + 8002d6c: 440b add r3, r1 + 8002d6e: f503 7315 add.w r3, r3, #596 @ 0x254 + 8002d72: 7bfa ldrb r2, [r7, #15] + 8002d74: 701a strb r2, [r3, #0] /* Control until ep is activated */ hpcd->OUT_ep[i].type = EP_TYPE_CTRL; - 8002d22: 7bfa ldrb r2, [r7, #15] - 8002d24: 6879 ldr r1, [r7, #4] - 8002d26: 4613 mov r3, r2 - 8002d28: 00db lsls r3, r3, #3 - 8002d2a: 4413 add r3, r2 - 8002d2c: 009b lsls r3, r3, #2 - 8002d2e: 440b add r3, r1 - 8002d30: f503 7316 add.w r3, r3, #600 @ 0x258 - 8002d34: 2200 movs r2, #0 - 8002d36: 701a strb r2, [r3, #0] + 8002d76: 7bfa ldrb r2, [r7, #15] + 8002d78: 6879 ldr r1, [r7, #4] + 8002d7a: 4613 mov r3, r2 + 8002d7c: 00db lsls r3, r3, #3 + 8002d7e: 4413 add r3, r2 + 8002d80: 009b lsls r3, r3, #2 + 8002d82: 440b add r3, r1 + 8002d84: f503 7316 add.w r3, r3, #600 @ 0x258 + 8002d88: 2200 movs r2, #0 + 8002d8a: 701a strb r2, [r3, #0] hpcd->OUT_ep[i].maxpacket = 0U; - 8002d38: 7bfa ldrb r2, [r7, #15] - 8002d3a: 6879 ldr r1, [r7, #4] - 8002d3c: 4613 mov r3, r2 - 8002d3e: 00db lsls r3, r3, #3 - 8002d40: 4413 add r3, r2 - 8002d42: 009b lsls r3, r3, #2 - 8002d44: 440b add r3, r1 - 8002d46: f503 7317 add.w r3, r3, #604 @ 0x25c - 8002d4a: 2200 movs r2, #0 - 8002d4c: 601a str r2, [r3, #0] + 8002d8c: 7bfa ldrb r2, [r7, #15] + 8002d8e: 6879 ldr r1, [r7, #4] + 8002d90: 4613 mov r3, r2 + 8002d92: 00db lsls r3, r3, #3 + 8002d94: 4413 add r3, r2 + 8002d96: 009b lsls r3, r3, #2 + 8002d98: 440b add r3, r1 + 8002d9a: f503 7317 add.w r3, r3, #604 @ 0x25c + 8002d9e: 2200 movs r2, #0 + 8002da0: 601a str r2, [r3, #0] hpcd->OUT_ep[i].xfer_buff = 0U; - 8002d4e: 7bfa ldrb r2, [r7, #15] - 8002d50: 6879 ldr r1, [r7, #4] - 8002d52: 4613 mov r3, r2 - 8002d54: 00db lsls r3, r3, #3 - 8002d56: 4413 add r3, r2 - 8002d58: 009b lsls r3, r3, #2 - 8002d5a: 440b add r3, r1 - 8002d5c: f503 7318 add.w r3, r3, #608 @ 0x260 - 8002d60: 2200 movs r2, #0 - 8002d62: 601a str r2, [r3, #0] + 8002da2: 7bfa ldrb r2, [r7, #15] + 8002da4: 6879 ldr r1, [r7, #4] + 8002da6: 4613 mov r3, r2 + 8002da8: 00db lsls r3, r3, #3 + 8002daa: 4413 add r3, r2 + 8002dac: 009b lsls r3, r3, #2 + 8002dae: 440b add r3, r1 + 8002db0: f503 7318 add.w r3, r3, #608 @ 0x260 + 8002db4: 2200 movs r2, #0 + 8002db6: 601a str r2, [r3, #0] hpcd->OUT_ep[i].xfer_len = 0U; - 8002d64: 7bfa ldrb r2, [r7, #15] - 8002d66: 6879 ldr r1, [r7, #4] - 8002d68: 4613 mov r3, r2 - 8002d6a: 00db lsls r3, r3, #3 - 8002d6c: 4413 add r3, r2 - 8002d6e: 009b lsls r3, r3, #2 - 8002d70: 440b add r3, r1 - 8002d72: f503 7319 add.w r3, r3, #612 @ 0x264 - 8002d76: 2200 movs r2, #0 - 8002d78: 601a str r2, [r3, #0] + 8002db8: 7bfa ldrb r2, [r7, #15] + 8002dba: 6879 ldr r1, [r7, #4] + 8002dbc: 4613 mov r3, r2 + 8002dbe: 00db lsls r3, r3, #3 + 8002dc0: 4413 add r3, r2 + 8002dc2: 009b lsls r3, r3, #2 + 8002dc4: 440b add r3, r1 + 8002dc6: f503 7319 add.w r3, r3, #612 @ 0x264 + 8002dca: 2200 movs r2, #0 + 8002dcc: 601a str r2, [r3, #0] for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 8002d7a: 7bfb ldrb r3, [r7, #15] - 8002d7c: 3301 adds r3, #1 - 8002d7e: 73fb strb r3, [r7, #15] - 8002d80: 687b ldr r3, [r7, #4] - 8002d82: 791b ldrb r3, [r3, #4] - 8002d84: 7bfa ldrb r2, [r7, #15] - 8002d86: 429a cmp r2, r3 - 8002d88: d3b5 bcc.n 8002cf6 + 8002dce: 7bfb ldrb r3, [r7, #15] + 8002dd0: 3301 adds r3, #1 + 8002dd2: 73fb strb r3, [r7, #15] + 8002dd4: 687b ldr r3, [r7, #4] + 8002dd6: 791b ldrb r3, [r3, #4] + 8002dd8: 7bfa ldrb r2, [r7, #15] + 8002dda: 429a cmp r2, r3 + 8002ddc: d3b5 bcc.n 8002d4a } /* Init Device */ if (USB_DevInit(hpcd->Instance, hpcd->Init) != HAL_OK) - 8002d8a: 687b ldr r3, [r7, #4] - 8002d8c: 6818 ldr r0, [r3, #0] - 8002d8e: 687b ldr r3, [r7, #4] - 8002d90: 7c1a ldrb r2, [r3, #16] - 8002d92: f88d 2000 strb.w r2, [sp] - 8002d96: 3304 adds r3, #4 - 8002d98: cb0e ldmia r3, {r1, r2, r3} - 8002d9a: f004 fa37 bl 800720c - 8002d9e: 4603 mov r3, r0 - 8002da0: 2b00 cmp r3, #0 - 8002da2: d005 beq.n 8002db0 + 8002dde: 687b ldr r3, [r7, #4] + 8002de0: 6818 ldr r0, [r3, #0] + 8002de2: 687b ldr r3, [r7, #4] + 8002de4: 7c1a ldrb r2, [r3, #16] + 8002de6: f88d 2000 strb.w r2, [sp] + 8002dea: 3304 adds r3, #4 + 8002dec: cb0e ldmia r3, {r1, r2, r3} + 8002dee: f004 fa37 bl 8007260 + 8002df2: 4603 mov r3, r0 + 8002df4: 2b00 cmp r3, #0 + 8002df6: d005 beq.n 8002e04 { hpcd->State = HAL_PCD_STATE_ERROR; - 8002da4: 687b ldr r3, [r7, #4] - 8002da6: 2202 movs r2, #2 - 8002da8: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 8002df8: 687b ldr r3, [r7, #4] + 8002dfa: 2202 movs r2, #2 + 8002dfc: f883 2495 strb.w r2, [r3, #1173] @ 0x495 return HAL_ERROR; - 8002dac: 2301 movs r3, #1 - 8002dae: e013 b.n 8002dd8 + 8002e00: 2301 movs r3, #1 + 8002e02: e013 b.n 8002e2c } hpcd->USB_Address = 0U; - 8002db0: 687b ldr r3, [r7, #4] - 8002db2: 2200 movs r2, #0 - 8002db4: 745a strb r2, [r3, #17] + 8002e04: 687b ldr r3, [r7, #4] + 8002e06: 2200 movs r2, #0 + 8002e08: 745a strb r2, [r3, #17] hpcd->State = HAL_PCD_STATE_READY; - 8002db6: 687b ldr r3, [r7, #4] - 8002db8: 2201 movs r2, #1 - 8002dba: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 8002e0a: 687b ldr r3, [r7, #4] + 8002e0c: 2201 movs r2, #1 + 8002e0e: f883 2495 strb.w r2, [r3, #1173] @ 0x495 #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) \ || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) \ || defined(STM32F423xx) /* Activate LPM */ if (hpcd->Init.lpm_enable == 1U) - 8002dbe: 687b ldr r3, [r7, #4] - 8002dc0: 7b1b ldrb r3, [r3, #12] - 8002dc2: 2b01 cmp r3, #1 - 8002dc4: d102 bne.n 8002dcc + 8002e12: 687b ldr r3, [r7, #4] + 8002e14: 7b1b ldrb r3, [r3, #12] + 8002e16: 2b01 cmp r3, #1 + 8002e18: d102 bne.n 8002e20 { (void)HAL_PCDEx_ActivateLPM(hpcd); - 8002dc6: 6878 ldr r0, [r7, #4] - 8002dc8: f001 f956 bl 8004078 + 8002e1a: 6878 ldr r0, [r7, #4] + 8002e1c: f001 f956 bl 80040cc } #endif /* defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) */ (void)USB_DevDisconnect(hpcd->Instance); - 8002dcc: 687b ldr r3, [r7, #4] - 8002dce: 681b ldr r3, [r3, #0] - 8002dd0: 4618 mov r0, r3 - 8002dd2: f005 fa74 bl 80082be + 8002e20: 687b ldr r3, [r7, #4] + 8002e22: 681b ldr r3, [r3, #0] + 8002e24: 4618 mov r0, r3 + 8002e26: f005 fa74 bl 8008312 return HAL_OK; - 8002dd6: 2300 movs r3, #0 + 8002e2a: 2300 movs r3, #0 } - 8002dd8: 4618 mov r0, r3 - 8002dda: 3710 adds r7, #16 - 8002ddc: 46bd mov sp, r7 - 8002dde: bd80 pop {r7, pc} + 8002e2c: 4618 mov r0, r3 + 8002e2e: 3710 adds r7, #16 + 8002e30: 46bd mov sp, r7 + 8002e32: bd80 pop {r7, pc} -08002de0 : +08002e34 : * @brief Start the USB device * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_Start(PCD_HandleTypeDef *hpcd) { - 8002de0: b580 push {r7, lr} - 8002de2: b084 sub sp, #16 - 8002de4: af00 add r7, sp, #0 - 8002de6: 6078 str r0, [r7, #4] + 8002e34: b580 push {r7, lr} + 8002e36: b084 sub sp, #16 + 8002e38: af00 add r7, sp, #0 + 8002e3a: 6078 str r0, [r7, #4] USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 8002de8: 687b ldr r3, [r7, #4] - 8002dea: 681b ldr r3, [r3, #0] - 8002dec: 60fb str r3, [r7, #12] + 8002e3c: 687b ldr r3, [r7, #4] + 8002e3e: 681b ldr r3, [r3, #0] + 8002e40: 60fb str r3, [r7, #12] __HAL_LOCK(hpcd); - 8002dee: 687b ldr r3, [r7, #4] - 8002df0: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8002df4: 2b01 cmp r3, #1 - 8002df6: d101 bne.n 8002dfc - 8002df8: 2302 movs r3, #2 - 8002dfa: e022 b.n 8002e42 - 8002dfc: 687b ldr r3, [r7, #4] - 8002dfe: 2201 movs r2, #1 - 8002e00: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8002e42: 687b ldr r3, [r7, #4] + 8002e44: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8002e48: 2b01 cmp r3, #1 + 8002e4a: d101 bne.n 8002e50 + 8002e4c: 2302 movs r3, #2 + 8002e4e: e022 b.n 8002e96 + 8002e50: 687b ldr r3, [r7, #4] + 8002e52: 2201 movs r2, #1 + 8002e54: f883 2494 strb.w r2, [r3, #1172] @ 0x494 if (((USBx->GUSBCFG & USB_OTG_GUSBCFG_PHYSEL) != 0U) && - 8002e04: 68fb ldr r3, [r7, #12] - 8002e06: 68db ldr r3, [r3, #12] - 8002e08: f003 0340 and.w r3, r3, #64 @ 0x40 - 8002e0c: 2b00 cmp r3, #0 - 8002e0e: d009 beq.n 8002e24 + 8002e58: 68fb ldr r3, [r7, #12] + 8002e5a: 68db ldr r3, [r3, #12] + 8002e5c: f003 0340 and.w r3, r3, #64 @ 0x40 + 8002e60: 2b00 cmp r3, #0 + 8002e62: d009 beq.n 8002e78 (hpcd->Init.battery_charging_enable == 1U)) - 8002e10: 687b ldr r3, [r7, #4] - 8002e12: 7b5b ldrb r3, [r3, #13] + 8002e64: 687b ldr r3, [r7, #4] + 8002e66: 7b5b ldrb r3, [r3, #13] if (((USBx->GUSBCFG & USB_OTG_GUSBCFG_PHYSEL) != 0U) && - 8002e14: 2b01 cmp r3, #1 - 8002e16: d105 bne.n 8002e24 + 8002e68: 2b01 cmp r3, #1 + 8002e6a: d105 bne.n 8002e78 { /* Enable USB Transceiver */ USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN; - 8002e18: 68fb ldr r3, [r7, #12] - 8002e1a: 6b9b ldr r3, [r3, #56] @ 0x38 - 8002e1c: f443 3280 orr.w r2, r3, #65536 @ 0x10000 - 8002e20: 68fb ldr r3, [r7, #12] - 8002e22: 639a str r2, [r3, #56] @ 0x38 + 8002e6c: 68fb ldr r3, [r7, #12] + 8002e6e: 6b9b ldr r3, [r3, #56] @ 0x38 + 8002e70: f443 3280 orr.w r2, r3, #65536 @ 0x10000 + 8002e74: 68fb ldr r3, [r7, #12] + 8002e76: 639a str r2, [r3, #56] @ 0x38 } __HAL_PCD_ENABLE(hpcd); - 8002e24: 687b ldr r3, [r7, #4] - 8002e26: 681b ldr r3, [r3, #0] - 8002e28: 4618 mov r0, r3 - 8002e2a: f004 f981 bl 8007130 + 8002e78: 687b ldr r3, [r7, #4] + 8002e7a: 681b ldr r3, [r3, #0] + 8002e7c: 4618 mov r0, r3 + 8002e7e: f004 f981 bl 8007184 (void)USB_DevConnect(hpcd->Instance); - 8002e2e: 687b ldr r3, [r7, #4] - 8002e30: 681b ldr r3, [r3, #0] - 8002e32: 4618 mov r0, r3 - 8002e34: f005 fa22 bl 800827c + 8002e82: 687b ldr r3, [r7, #4] + 8002e84: 681b ldr r3, [r3, #0] + 8002e86: 4618 mov r0, r3 + 8002e88: f005 fa22 bl 80082d0 __HAL_UNLOCK(hpcd); - 8002e38: 687b ldr r3, [r7, #4] - 8002e3a: 2200 movs r2, #0 - 8002e3c: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8002e8c: 687b ldr r3, [r7, #4] + 8002e8e: 2200 movs r2, #0 + 8002e90: f883 2494 strb.w r2, [r3, #1172] @ 0x494 return HAL_OK; - 8002e40: 2300 movs r3, #0 + 8002e94: 2300 movs r3, #0 } - 8002e42: 4618 mov r0, r3 - 8002e44: 3710 adds r7, #16 - 8002e46: 46bd mov sp, r7 - 8002e48: bd80 pop {r7, pc} + 8002e96: 4618 mov r0, r3 + 8002e98: 3710 adds r7, #16 + 8002e9a: 46bd mov sp, r7 + 8002e9c: bd80 pop {r7, pc} -08002e4a : +08002e9e : * @brief Handles PCD interrupt request. * @param hpcd PCD handle * @retval HAL status */ void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd) { - 8002e4a: b590 push {r4, r7, lr} - 8002e4c: b08d sub sp, #52 @ 0x34 - 8002e4e: af00 add r7, sp, #0 - 8002e50: 6078 str r0, [r7, #4] + 8002e9e: b590 push {r4, r7, lr} + 8002ea0: b08d sub sp, #52 @ 0x34 + 8002ea2: af00 add r7, sp, #0 + 8002ea4: 6078 str r0, [r7, #4] USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 8002e52: 687b ldr r3, [r7, #4] - 8002e54: 681b ldr r3, [r3, #0] - 8002e56: 623b str r3, [r7, #32] + 8002ea6: 687b ldr r3, [r7, #4] + 8002ea8: 681b ldr r3, [r3, #0] + 8002eaa: 623b str r3, [r7, #32] uint32_t USBx_BASE = (uint32_t)USBx; - 8002e58: 6a3b ldr r3, [r7, #32] - 8002e5a: 61fb str r3, [r7, #28] + 8002eac: 6a3b ldr r3, [r7, #32] + 8002eae: 61fb str r3, [r7, #28] uint32_t epnum; uint32_t fifoemptymsk; uint32_t RegVal; /* ensure that we are in device mode */ if (USB_GetMode(hpcd->Instance) == USB_OTG_MODE_DEVICE) - 8002e5c: 687b ldr r3, [r7, #4] - 8002e5e: 681b ldr r3, [r3, #0] - 8002e60: 4618 mov r0, r3 - 8002e62: f005 fae0 bl 8008426 - 8002e66: 4603 mov r3, r0 - 8002e68: 2b00 cmp r3, #0 - 8002e6a: f040 84b9 bne.w 80037e0 + 8002eb0: 687b ldr r3, [r7, #4] + 8002eb2: 681b ldr r3, [r3, #0] + 8002eb4: 4618 mov r0, r3 + 8002eb6: f005 fae0 bl 800847a + 8002eba: 4603 mov r3, r0 + 8002ebc: 2b00 cmp r3, #0 + 8002ebe: f040 84b9 bne.w 8003834 { /* avoid spurious interrupt */ if (__HAL_PCD_IS_INVALID_INTERRUPT(hpcd)) - 8002e6e: 687b ldr r3, [r7, #4] - 8002e70: 681b ldr r3, [r3, #0] - 8002e72: 4618 mov r0, r3 - 8002e74: f005 fa44 bl 8008300 - 8002e78: 4603 mov r3, r0 - 8002e7a: 2b00 cmp r3, #0 - 8002e7c: f000 84af beq.w 80037de + 8002ec2: 687b ldr r3, [r7, #4] + 8002ec4: 681b ldr r3, [r3, #0] + 8002ec6: 4618 mov r0, r3 + 8002ec8: f005 fa44 bl 8008354 + 8002ecc: 4603 mov r3, r0 + 8002ece: 2b00 cmp r3, #0 + 8002ed0: f000 84af beq.w 8003832 { return; } /* store current frame number */ hpcd->FrameNumber = (USBx_DEVICE->DSTS & USB_OTG_DSTS_FNSOF_Msk) >> USB_OTG_DSTS_FNSOF_Pos; - 8002e80: 69fb ldr r3, [r7, #28] - 8002e82: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8002e86: 689b ldr r3, [r3, #8] - 8002e88: 0a1b lsrs r3, r3, #8 - 8002e8a: f3c3 020d ubfx r2, r3, #0, #14 - 8002e8e: 687b ldr r3, [r7, #4] - 8002e90: f8c3 24d4 str.w r2, [r3, #1236] @ 0x4d4 + 8002ed4: 69fb ldr r3, [r7, #28] + 8002ed6: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8002eda: 689b ldr r3, [r3, #8] + 8002edc: 0a1b lsrs r3, r3, #8 + 8002ede: f3c3 020d ubfx r2, r3, #0, #14 + 8002ee2: 687b ldr r3, [r7, #4] + 8002ee4: f8c3 24d4 str.w r2, [r3, #1236] @ 0x4d4 if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_MMIS)) - 8002e94: 687b ldr r3, [r7, #4] - 8002e96: 681b ldr r3, [r3, #0] - 8002e98: 4618 mov r0, r3 - 8002e9a: f005 fa31 bl 8008300 - 8002e9e: 4603 mov r3, r0 - 8002ea0: f003 0302 and.w r3, r3, #2 - 8002ea4: 2b02 cmp r3, #2 - 8002ea6: d107 bne.n 8002eb8 + 8002ee8: 687b ldr r3, [r7, #4] + 8002eea: 681b ldr r3, [r3, #0] + 8002eec: 4618 mov r0, r3 + 8002eee: f005 fa31 bl 8008354 + 8002ef2: 4603 mov r3, r0 + 8002ef4: f003 0302 and.w r3, r3, #2 + 8002ef8: 2b02 cmp r3, #2 + 8002efa: d107 bne.n 8002f0c { /* incorrect mode, acknowledge the interrupt */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_MMIS); - 8002ea8: 687b ldr r3, [r7, #4] - 8002eaa: 681b ldr r3, [r3, #0] - 8002eac: 695a ldr r2, [r3, #20] - 8002eae: 687b ldr r3, [r7, #4] - 8002eb0: 681b ldr r3, [r3, #0] - 8002eb2: f002 0202 and.w r2, r2, #2 - 8002eb6: 615a str r2, [r3, #20] + 8002efc: 687b ldr r3, [r7, #4] + 8002efe: 681b ldr r3, [r3, #0] + 8002f00: 695a ldr r2, [r3, #20] + 8002f02: 687b ldr r3, [r7, #4] + 8002f04: 681b ldr r3, [r3, #0] + 8002f06: f002 0202 and.w r2, r2, #2 + 8002f0a: 615a str r2, [r3, #20] } /* Handle RxQLevel Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_RXFLVL)) - 8002eb8: 687b ldr r3, [r7, #4] - 8002eba: 681b ldr r3, [r3, #0] - 8002ebc: 4618 mov r0, r3 - 8002ebe: f005 fa1f bl 8008300 - 8002ec2: 4603 mov r3, r0 - 8002ec4: f003 0310 and.w r3, r3, #16 - 8002ec8: 2b10 cmp r3, #16 - 8002eca: d161 bne.n 8002f90 + 8002f0c: 687b ldr r3, [r7, #4] + 8002f0e: 681b ldr r3, [r3, #0] + 8002f10: 4618 mov r0, r3 + 8002f12: f005 fa1f bl 8008354 + 8002f16: 4603 mov r3, r0 + 8002f18: f003 0310 and.w r3, r3, #16 + 8002f1c: 2b10 cmp r3, #16 + 8002f1e: d161 bne.n 8002fe4 { USB_MASK_INTERRUPT(hpcd->Instance, USB_OTG_GINTSTS_RXFLVL); - 8002ecc: 687b ldr r3, [r7, #4] - 8002ece: 681b ldr r3, [r3, #0] - 8002ed0: 699a ldr r2, [r3, #24] - 8002ed2: 687b ldr r3, [r7, #4] - 8002ed4: 681b ldr r3, [r3, #0] - 8002ed6: f022 0210 bic.w r2, r2, #16 - 8002eda: 619a str r2, [r3, #24] + 8002f20: 687b ldr r3, [r7, #4] + 8002f22: 681b ldr r3, [r3, #0] + 8002f24: 699a ldr r2, [r3, #24] + 8002f26: 687b ldr r3, [r7, #4] + 8002f28: 681b ldr r3, [r3, #0] + 8002f2a: f022 0210 bic.w r2, r2, #16 + 8002f2e: 619a str r2, [r3, #24] RegVal = USBx->GRXSTSP; - 8002edc: 6a3b ldr r3, [r7, #32] - 8002ede: 6a1b ldr r3, [r3, #32] - 8002ee0: 61bb str r3, [r7, #24] + 8002f30: 6a3b ldr r3, [r7, #32] + 8002f32: 6a1b ldr r3, [r3, #32] + 8002f34: 61bb str r3, [r7, #24] ep = &hpcd->OUT_ep[RegVal & USB_OTG_GRXSTSP_EPNUM]; - 8002ee2: 69bb ldr r3, [r7, #24] - 8002ee4: f003 020f and.w r2, r3, #15 - 8002ee8: 4613 mov r3, r2 - 8002eea: 00db lsls r3, r3, #3 - 8002eec: 4413 add r3, r2 - 8002eee: 009b lsls r3, r3, #2 - 8002ef0: f503 7314 add.w r3, r3, #592 @ 0x250 - 8002ef4: 687a ldr r2, [r7, #4] - 8002ef6: 4413 add r3, r2 - 8002ef8: 3304 adds r3, #4 - 8002efa: 617b str r3, [r7, #20] + 8002f36: 69bb ldr r3, [r7, #24] + 8002f38: f003 020f and.w r2, r3, #15 + 8002f3c: 4613 mov r3, r2 + 8002f3e: 00db lsls r3, r3, #3 + 8002f40: 4413 add r3, r2 + 8002f42: 009b lsls r3, r3, #2 + 8002f44: f503 7314 add.w r3, r3, #592 @ 0x250 + 8002f48: 687a ldr r2, [r7, #4] + 8002f4a: 4413 add r3, r2 + 8002f4c: 3304 adds r3, #4 + 8002f4e: 617b str r3, [r7, #20] if (((RegVal & USB_OTG_GRXSTSP_PKTSTS) >> 17) == STS_DATA_UPDT) - 8002efc: 69bb ldr r3, [r7, #24] - 8002efe: f403 13f0 and.w r3, r3, #1966080 @ 0x1e0000 - 8002f02: f5b3 2f80 cmp.w r3, #262144 @ 0x40000 - 8002f06: d124 bne.n 8002f52 + 8002f50: 69bb ldr r3, [r7, #24] + 8002f52: f403 13f0 and.w r3, r3, #1966080 @ 0x1e0000 + 8002f56: f5b3 2f80 cmp.w r3, #262144 @ 0x40000 + 8002f5a: d124 bne.n 8002fa6 { if ((RegVal & USB_OTG_GRXSTSP_BCNT) != 0U) - 8002f08: 69ba ldr r2, [r7, #24] - 8002f0a: f647 73f0 movw r3, #32752 @ 0x7ff0 - 8002f0e: 4013 ands r3, r2 - 8002f10: 2b00 cmp r3, #0 - 8002f12: d035 beq.n 8002f80 + 8002f5c: 69ba ldr r2, [r7, #24] + 8002f5e: f647 73f0 movw r3, #32752 @ 0x7ff0 + 8002f62: 4013 ands r3, r2 + 8002f64: 2b00 cmp r3, #0 + 8002f66: d035 beq.n 8002fd4 { (void)USB_ReadPacket(USBx, ep->xfer_buff, - 8002f14: 697b ldr r3, [r7, #20] - 8002f16: 68d9 ldr r1, [r3, #12] + 8002f68: 697b ldr r3, [r7, #20] + 8002f6a: 68d9 ldr r1, [r3, #12] (uint16_t)((RegVal & USB_OTG_GRXSTSP_BCNT) >> 4)); - 8002f18: 69bb ldr r3, [r7, #24] - 8002f1a: 091b lsrs r3, r3, #4 - 8002f1c: b29b uxth r3, r3 + 8002f6c: 69bb ldr r3, [r7, #24] + 8002f6e: 091b lsrs r3, r3, #4 + 8002f70: b29b uxth r3, r3 (void)USB_ReadPacket(USBx, ep->xfer_buff, - 8002f1e: f3c3 030a ubfx r3, r3, #0, #11 - 8002f22: b29b uxth r3, r3 - 8002f24: 461a mov r2, r3 - 8002f26: 6a38 ldr r0, [r7, #32] - 8002f28: f005 f856 bl 8007fd8 + 8002f72: f3c3 030a ubfx r3, r3, #0, #11 + 8002f76: b29b uxth r3, r3 + 8002f78: 461a mov r2, r3 + 8002f7a: 6a38 ldr r0, [r7, #32] + 8002f7c: f005 f856 bl 800802c ep->xfer_buff += (RegVal & USB_OTG_GRXSTSP_BCNT) >> 4; - 8002f2c: 697b ldr r3, [r7, #20] - 8002f2e: 68da ldr r2, [r3, #12] - 8002f30: 69bb ldr r3, [r7, #24] - 8002f32: 091b lsrs r3, r3, #4 - 8002f34: f3c3 030a ubfx r3, r3, #0, #11 - 8002f38: 441a add r2, r3 - 8002f3a: 697b ldr r3, [r7, #20] - 8002f3c: 60da str r2, [r3, #12] + 8002f80: 697b ldr r3, [r7, #20] + 8002f82: 68da ldr r2, [r3, #12] + 8002f84: 69bb ldr r3, [r7, #24] + 8002f86: 091b lsrs r3, r3, #4 + 8002f88: f3c3 030a ubfx r3, r3, #0, #11 + 8002f8c: 441a add r2, r3 + 8002f8e: 697b ldr r3, [r7, #20] + 8002f90: 60da str r2, [r3, #12] ep->xfer_count += (RegVal & USB_OTG_GRXSTSP_BCNT) >> 4; - 8002f3e: 697b ldr r3, [r7, #20] - 8002f40: 695a ldr r2, [r3, #20] - 8002f42: 69bb ldr r3, [r7, #24] - 8002f44: 091b lsrs r3, r3, #4 - 8002f46: f3c3 030a ubfx r3, r3, #0, #11 - 8002f4a: 441a add r2, r3 - 8002f4c: 697b ldr r3, [r7, #20] - 8002f4e: 615a str r2, [r3, #20] - 8002f50: e016 b.n 8002f80 + 8002f92: 697b ldr r3, [r7, #20] + 8002f94: 695a ldr r2, [r3, #20] + 8002f96: 69bb ldr r3, [r7, #24] + 8002f98: 091b lsrs r3, r3, #4 + 8002f9a: f3c3 030a ubfx r3, r3, #0, #11 + 8002f9e: 441a add r2, r3 + 8002fa0: 697b ldr r3, [r7, #20] + 8002fa2: 615a str r2, [r3, #20] + 8002fa4: e016 b.n 8002fd4 } } else if (((RegVal & USB_OTG_GRXSTSP_PKTSTS) >> 17) == STS_SETUP_UPDT) - 8002f52: 69bb ldr r3, [r7, #24] - 8002f54: f403 13f0 and.w r3, r3, #1966080 @ 0x1e0000 - 8002f58: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000 - 8002f5c: d110 bne.n 8002f80 + 8002fa6: 69bb ldr r3, [r7, #24] + 8002fa8: f403 13f0 and.w r3, r3, #1966080 @ 0x1e0000 + 8002fac: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000 + 8002fb0: d110 bne.n 8002fd4 { (void)USB_ReadPacket(USBx, (uint8_t *)hpcd->Setup, 8U); - 8002f5e: 687b ldr r3, [r7, #4] - 8002f60: f203 439c addw r3, r3, #1180 @ 0x49c - 8002f64: 2208 movs r2, #8 - 8002f66: 4619 mov r1, r3 - 8002f68: 6a38 ldr r0, [r7, #32] - 8002f6a: f005 f835 bl 8007fd8 + 8002fb2: 687b ldr r3, [r7, #4] + 8002fb4: f203 439c addw r3, r3, #1180 @ 0x49c + 8002fb8: 2208 movs r2, #8 + 8002fba: 4619 mov r1, r3 + 8002fbc: 6a38 ldr r0, [r7, #32] + 8002fbe: f005 f835 bl 800802c ep->xfer_count += (RegVal & USB_OTG_GRXSTSP_BCNT) >> 4; - 8002f6e: 697b ldr r3, [r7, #20] - 8002f70: 695a ldr r2, [r3, #20] - 8002f72: 69bb ldr r3, [r7, #24] - 8002f74: 091b lsrs r3, r3, #4 - 8002f76: f3c3 030a ubfx r3, r3, #0, #11 - 8002f7a: 441a add r2, r3 - 8002f7c: 697b ldr r3, [r7, #20] - 8002f7e: 615a str r2, [r3, #20] + 8002fc2: 697b ldr r3, [r7, #20] + 8002fc4: 695a ldr r2, [r3, #20] + 8002fc6: 69bb ldr r3, [r7, #24] + 8002fc8: 091b lsrs r3, r3, #4 + 8002fca: f3c3 030a ubfx r3, r3, #0, #11 + 8002fce: 441a add r2, r3 + 8002fd0: 697b ldr r3, [r7, #20] + 8002fd2: 615a str r2, [r3, #20] else { /* ... */ } USB_UNMASK_INTERRUPT(hpcd->Instance, USB_OTG_GINTSTS_RXFLVL); - 8002f80: 687b ldr r3, [r7, #4] - 8002f82: 681b ldr r3, [r3, #0] - 8002f84: 699a ldr r2, [r3, #24] - 8002f86: 687b ldr r3, [r7, #4] - 8002f88: 681b ldr r3, [r3, #0] - 8002f8a: f042 0210 orr.w r2, r2, #16 - 8002f8e: 619a str r2, [r3, #24] + 8002fd4: 687b ldr r3, [r7, #4] + 8002fd6: 681b ldr r3, [r3, #0] + 8002fd8: 699a ldr r2, [r3, #24] + 8002fda: 687b ldr r3, [r7, #4] + 8002fdc: 681b ldr r3, [r3, #0] + 8002fde: f042 0210 orr.w r2, r2, #16 + 8002fe2: 619a str r2, [r3, #24] } if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_OEPINT)) - 8002f90: 687b ldr r3, [r7, #4] - 8002f92: 681b ldr r3, [r3, #0] - 8002f94: 4618 mov r0, r3 - 8002f96: f005 f9b3 bl 8008300 - 8002f9a: 4603 mov r3, r0 - 8002f9c: f403 2300 and.w r3, r3, #524288 @ 0x80000 - 8002fa0: f5b3 2f00 cmp.w r3, #524288 @ 0x80000 - 8002fa4: f040 80a7 bne.w 80030f6 + 8002fe4: 687b ldr r3, [r7, #4] + 8002fe6: 681b ldr r3, [r3, #0] + 8002fe8: 4618 mov r0, r3 + 8002fea: f005 f9b3 bl 8008354 + 8002fee: 4603 mov r3, r0 + 8002ff0: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 8002ff4: f5b3 2f00 cmp.w r3, #524288 @ 0x80000 + 8002ff8: f040 80a7 bne.w 800314a { epnum = 0U; - 8002fa8: 2300 movs r3, #0 - 8002faa: 627b str r3, [r7, #36] @ 0x24 + 8002ffc: 2300 movs r3, #0 + 8002ffe: 627b str r3, [r7, #36] @ 0x24 /* Read in the device interrupt bits */ ep_intr = USB_ReadDevAllOutEpInterrupt(hpcd->Instance); - 8002fac: 687b ldr r3, [r7, #4] - 8002fae: 681b ldr r3, [r3, #0] - 8002fb0: 4618 mov r0, r3 - 8002fb2: f005 f9b8 bl 8008326 - 8002fb6: 62b8 str r0, [r7, #40] @ 0x28 + 8003000: 687b ldr r3, [r7, #4] + 8003002: 681b ldr r3, [r3, #0] + 8003004: 4618 mov r0, r3 + 8003006: f005 f9b8 bl 800837a + 800300a: 62b8 str r0, [r7, #40] @ 0x28 while (ep_intr != 0U) - 8002fb8: e099 b.n 80030ee + 800300c: e099 b.n 8003142 { if ((ep_intr & 0x1U) != 0U) - 8002fba: 6abb ldr r3, [r7, #40] @ 0x28 - 8002fbc: f003 0301 and.w r3, r3, #1 - 8002fc0: 2b00 cmp r3, #0 - 8002fc2: f000 808e beq.w 80030e2 + 800300e: 6abb ldr r3, [r7, #40] @ 0x28 + 8003010: f003 0301 and.w r3, r3, #1 + 8003014: 2b00 cmp r3, #0 + 8003016: f000 808e beq.w 8003136 { epint = USB_ReadDevOutEPInterrupt(hpcd->Instance, (uint8_t)epnum); - 8002fc6: 687b ldr r3, [r7, #4] - 8002fc8: 681b ldr r3, [r3, #0] - 8002fca: 6a7a ldr r2, [r7, #36] @ 0x24 - 8002fcc: b2d2 uxtb r2, r2 - 8002fce: 4611 mov r1, r2 - 8002fd0: 4618 mov r0, r3 - 8002fd2: f005 f9dc bl 800838e - 8002fd6: 6138 str r0, [r7, #16] + 800301a: 687b ldr r3, [r7, #4] + 800301c: 681b ldr r3, [r3, #0] + 800301e: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003020: b2d2 uxtb r2, r2 + 8003022: 4611 mov r1, r2 + 8003024: 4618 mov r0, r3 + 8003026: f005 f9dc bl 80083e2 + 800302a: 6138 str r0, [r7, #16] if ((epint & USB_OTG_DOEPINT_XFRC) == USB_OTG_DOEPINT_XFRC) - 8002fd8: 693b ldr r3, [r7, #16] - 8002fda: f003 0301 and.w r3, r3, #1 - 8002fde: 2b00 cmp r3, #0 - 8002fe0: d00c beq.n 8002ffc + 800302c: 693b ldr r3, [r7, #16] + 800302e: f003 0301 and.w r3, r3, #1 + 8003032: 2b00 cmp r3, #0 + 8003034: d00c beq.n 8003050 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_XFRC); - 8002fe2: 6a7b ldr r3, [r7, #36] @ 0x24 - 8002fe4: 015a lsls r2, r3, #5 - 8002fe6: 69fb ldr r3, [r7, #28] - 8002fe8: 4413 add r3, r2 - 8002fea: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8002fee: 461a mov r2, r3 - 8002ff0: 2301 movs r3, #1 - 8002ff2: 6093 str r3, [r2, #8] + 8003036: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003038: 015a lsls r2, r3, #5 + 800303a: 69fb ldr r3, [r7, #28] + 800303c: 4413 add r3, r2 + 800303e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003042: 461a mov r2, r3 + 8003044: 2301 movs r3, #1 + 8003046: 6093 str r3, [r2, #8] (void)PCD_EP_OutXfrComplete_int(hpcd, epnum); - 8002ff4: 6a79 ldr r1, [r7, #36] @ 0x24 - 8002ff6: 6878 ldr r0, [r7, #4] - 8002ff8: f000 feb8 bl 8003d6c + 8003048: 6a79 ldr r1, [r7, #36] @ 0x24 + 800304a: 6878 ldr r0, [r7, #4] + 800304c: f000 feb8 bl 8003dc0 } if ((epint & USB_OTG_DOEPINT_STUP) == USB_OTG_DOEPINT_STUP) - 8002ffc: 693b ldr r3, [r7, #16] - 8002ffe: f003 0308 and.w r3, r3, #8 - 8003002: 2b00 cmp r3, #0 - 8003004: d00c beq.n 8003020 + 8003050: 693b ldr r3, [r7, #16] + 8003052: f003 0308 and.w r3, r3, #8 + 8003056: 2b00 cmp r3, #0 + 8003058: d00c beq.n 8003074 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STUP); - 8003006: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003008: 015a lsls r2, r3, #5 - 800300a: 69fb ldr r3, [r7, #28] - 800300c: 4413 add r3, r2 - 800300e: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003012: 461a mov r2, r3 - 8003014: 2308 movs r3, #8 - 8003016: 6093 str r3, [r2, #8] + 800305a: 6a7b ldr r3, [r7, #36] @ 0x24 + 800305c: 015a lsls r2, r3, #5 + 800305e: 69fb ldr r3, [r7, #28] + 8003060: 4413 add r3, r2 + 8003062: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003066: 461a mov r2, r3 + 8003068: 2308 movs r3, #8 + 800306a: 6093 str r3, [r2, #8] /* Class B setup phase done for previous decoded setup */ (void)PCD_EP_OutSetupPacket_int(hpcd, epnum); - 8003018: 6a79 ldr r1, [r7, #36] @ 0x24 - 800301a: 6878 ldr r0, [r7, #4] - 800301c: f000 ff8e bl 8003f3c + 800306c: 6a79 ldr r1, [r7, #36] @ 0x24 + 800306e: 6878 ldr r0, [r7, #4] + 8003070: f000 ff8e bl 8003f90 } if ((epint & USB_OTG_DOEPINT_OTEPDIS) == USB_OTG_DOEPINT_OTEPDIS) - 8003020: 693b ldr r3, [r7, #16] - 8003022: f003 0310 and.w r3, r3, #16 - 8003026: 2b00 cmp r3, #0 - 8003028: d008 beq.n 800303c + 8003074: 693b ldr r3, [r7, #16] + 8003076: f003 0310 and.w r3, r3, #16 + 800307a: 2b00 cmp r3, #0 + 800307c: d008 beq.n 8003090 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPDIS); - 800302a: 6a7b ldr r3, [r7, #36] @ 0x24 - 800302c: 015a lsls r2, r3, #5 - 800302e: 69fb ldr r3, [r7, #28] - 8003030: 4413 add r3, r2 - 8003032: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003036: 461a mov r2, r3 - 8003038: 2310 movs r3, #16 - 800303a: 6093 str r3, [r2, #8] + 800307e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003080: 015a lsls r2, r3, #5 + 8003082: 69fb ldr r3, [r7, #28] + 8003084: 4413 add r3, r2 + 8003086: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800308a: 461a mov r2, r3 + 800308c: 2310 movs r3, #16 + 800308e: 6093 str r3, [r2, #8] } /* Clear OUT Endpoint disable interrupt */ if ((epint & USB_OTG_DOEPINT_EPDISD) == USB_OTG_DOEPINT_EPDISD) - 800303c: 693b ldr r3, [r7, #16] - 800303e: f003 0302 and.w r3, r3, #2 - 8003042: 2b00 cmp r3, #0 - 8003044: d030 beq.n 80030a8 + 8003090: 693b ldr r3, [r7, #16] + 8003092: f003 0302 and.w r3, r3, #2 + 8003096: 2b00 cmp r3, #0 + 8003098: d030 beq.n 80030fc { if ((USBx->GINTSTS & USB_OTG_GINTSTS_BOUTNAKEFF) == USB_OTG_GINTSTS_BOUTNAKEFF) - 8003046: 6a3b ldr r3, [r7, #32] - 8003048: 695b ldr r3, [r3, #20] - 800304a: f003 0380 and.w r3, r3, #128 @ 0x80 - 800304e: 2b80 cmp r3, #128 @ 0x80 - 8003050: d109 bne.n 8003066 + 800309a: 6a3b ldr r3, [r7, #32] + 800309c: 695b ldr r3, [r3, #20] + 800309e: f003 0380 and.w r3, r3, #128 @ 0x80 + 80030a2: 2b80 cmp r3, #128 @ 0x80 + 80030a4: d109 bne.n 80030ba { USBx_DEVICE->DCTL |= USB_OTG_DCTL_CGONAK; - 8003052: 69fb ldr r3, [r7, #28] - 8003054: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003058: 685b ldr r3, [r3, #4] - 800305a: 69fa ldr r2, [r7, #28] - 800305c: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003060: f443 6380 orr.w r3, r3, #1024 @ 0x400 - 8003064: 6053 str r3, [r2, #4] + 80030a6: 69fb ldr r3, [r7, #28] + 80030a8: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80030ac: 685b ldr r3, [r3, #4] + 80030ae: 69fa ldr r2, [r7, #28] + 80030b0: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80030b4: f443 6380 orr.w r3, r3, #1024 @ 0x400 + 80030b8: 6053 str r3, [r2, #4] } ep = &hpcd->OUT_ep[epnum]; - 8003066: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003068: 4613 mov r3, r2 - 800306a: 00db lsls r3, r3, #3 - 800306c: 4413 add r3, r2 - 800306e: 009b lsls r3, r3, #2 - 8003070: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003074: 687a ldr r2, [r7, #4] - 8003076: 4413 add r3, r2 - 8003078: 3304 adds r3, #4 - 800307a: 617b str r3, [r7, #20] + 80030ba: 6a7a ldr r2, [r7, #36] @ 0x24 + 80030bc: 4613 mov r3, r2 + 80030be: 00db lsls r3, r3, #3 + 80030c0: 4413 add r3, r2 + 80030c2: 009b lsls r3, r3, #2 + 80030c4: f503 7314 add.w r3, r3, #592 @ 0x250 + 80030c8: 687a ldr r2, [r7, #4] + 80030ca: 4413 add r3, r2 + 80030cc: 3304 adds r3, #4 + 80030ce: 617b str r3, [r7, #20] if (ep->is_iso_incomplete == 1U) - 800307c: 697b ldr r3, [r7, #20] - 800307e: 78db ldrb r3, [r3, #3] - 8003080: 2b01 cmp r3, #1 - 8003082: d108 bne.n 8003096 + 80030d0: 697b ldr r3, [r7, #20] + 80030d2: 78db ldrb r3, [r3, #3] + 80030d4: 2b01 cmp r3, #1 + 80030d6: d108 bne.n 80030ea { ep->is_iso_incomplete = 0U; - 8003084: 697b ldr r3, [r7, #20] - 8003086: 2200 movs r2, #0 - 8003088: 70da strb r2, [r3, #3] + 80030d8: 697b ldr r3, [r7, #20] + 80030da: 2200 movs r2, #0 + 80030dc: 70da strb r2, [r3, #3] #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->ISOOUTIncompleteCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_ISOOUTIncompleteCallback(hpcd, (uint8_t)epnum); - 800308a: 6a7b ldr r3, [r7, #36] @ 0x24 - 800308c: b2db uxtb r3, r3 - 800308e: 4619 mov r1, r3 - 8003090: 6878 ldr r0, [r7, #4] - 8003092: f007 fa75 bl 800a580 + 80030de: 6a7b ldr r3, [r7, #36] @ 0x24 + 80030e0: b2db uxtb r3, r3 + 80030e2: 4619 mov r1, r3 + 80030e4: 6878 ldr r0, [r7, #4] + 80030e6: f007 fa75 bl 800a5d4 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_EPDISD); - 8003096: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003098: 015a lsls r2, r3, #5 - 800309a: 69fb ldr r3, [r7, #28] - 800309c: 4413 add r3, r2 - 800309e: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80030a2: 461a mov r2, r3 - 80030a4: 2302 movs r3, #2 - 80030a6: 6093 str r3, [r2, #8] + 80030ea: 6a7b ldr r3, [r7, #36] @ 0x24 + 80030ec: 015a lsls r2, r3, #5 + 80030ee: 69fb ldr r3, [r7, #28] + 80030f0: 4413 add r3, r2 + 80030f2: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80030f6: 461a mov r2, r3 + 80030f8: 2302 movs r3, #2 + 80030fa: 6093 str r3, [r2, #8] } /* Clear Status Phase Received interrupt */ if ((epint & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) - 80030a8: 693b ldr r3, [r7, #16] - 80030aa: f003 0320 and.w r3, r3, #32 - 80030ae: 2b00 cmp r3, #0 - 80030b0: d008 beq.n 80030c4 + 80030fc: 693b ldr r3, [r7, #16] + 80030fe: f003 0320 and.w r3, r3, #32 + 8003102: 2b00 cmp r3, #0 + 8003104: d008 beq.n 8003118 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); - 80030b2: 6a7b ldr r3, [r7, #36] @ 0x24 - 80030b4: 015a lsls r2, r3, #5 - 80030b6: 69fb ldr r3, [r7, #28] - 80030b8: 4413 add r3, r2 - 80030ba: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80030be: 461a mov r2, r3 - 80030c0: 2320 movs r3, #32 - 80030c2: 6093 str r3, [r2, #8] + 8003106: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003108: 015a lsls r2, r3, #5 + 800310a: 69fb ldr r3, [r7, #28] + 800310c: 4413 add r3, r2 + 800310e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003112: 461a mov r2, r3 + 8003114: 2320 movs r3, #32 + 8003116: 6093 str r3, [r2, #8] } /* Clear OUT NAK interrupt */ if ((epint & USB_OTG_DOEPINT_NAK) == USB_OTG_DOEPINT_NAK) - 80030c4: 693b ldr r3, [r7, #16] - 80030c6: f403 5300 and.w r3, r3, #8192 @ 0x2000 - 80030ca: 2b00 cmp r3, #0 - 80030cc: d009 beq.n 80030e2 + 8003118: 693b ldr r3, [r7, #16] + 800311a: f403 5300 and.w r3, r3, #8192 @ 0x2000 + 800311e: 2b00 cmp r3, #0 + 8003120: d009 beq.n 8003136 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_NAK); - 80030ce: 6a7b ldr r3, [r7, #36] @ 0x24 - 80030d0: 015a lsls r2, r3, #5 - 80030d2: 69fb ldr r3, [r7, #28] - 80030d4: 4413 add r3, r2 - 80030d6: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80030da: 461a mov r2, r3 - 80030dc: f44f 5300 mov.w r3, #8192 @ 0x2000 - 80030e0: 6093 str r3, [r2, #8] + 8003122: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003124: 015a lsls r2, r3, #5 + 8003126: 69fb ldr r3, [r7, #28] + 8003128: 4413 add r3, r2 + 800312a: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800312e: 461a mov r2, r3 + 8003130: f44f 5300 mov.w r3, #8192 @ 0x2000 + 8003134: 6093 str r3, [r2, #8] } } epnum++; - 80030e2: 6a7b ldr r3, [r7, #36] @ 0x24 - 80030e4: 3301 adds r3, #1 - 80030e6: 627b str r3, [r7, #36] @ 0x24 + 8003136: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003138: 3301 adds r3, #1 + 800313a: 627b str r3, [r7, #36] @ 0x24 ep_intr >>= 1U; - 80030e8: 6abb ldr r3, [r7, #40] @ 0x28 - 80030ea: 085b lsrs r3, r3, #1 - 80030ec: 62bb str r3, [r7, #40] @ 0x28 + 800313c: 6abb ldr r3, [r7, #40] @ 0x28 + 800313e: 085b lsrs r3, r3, #1 + 8003140: 62bb str r3, [r7, #40] @ 0x28 while (ep_intr != 0U) - 80030ee: 6abb ldr r3, [r7, #40] @ 0x28 - 80030f0: 2b00 cmp r3, #0 - 80030f2: f47f af62 bne.w 8002fba + 8003142: 6abb ldr r3, [r7, #40] @ 0x28 + 8003144: 2b00 cmp r3, #0 + 8003146: f47f af62 bne.w 800300e } } if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_IEPINT)) - 80030f6: 687b ldr r3, [r7, #4] - 80030f8: 681b ldr r3, [r3, #0] - 80030fa: 4618 mov r0, r3 - 80030fc: f005 f900 bl 8008300 - 8003100: 4603 mov r3, r0 - 8003102: f403 2380 and.w r3, r3, #262144 @ 0x40000 - 8003106: f5b3 2f80 cmp.w r3, #262144 @ 0x40000 - 800310a: f040 80db bne.w 80032c4 + 800314a: 687b ldr r3, [r7, #4] + 800314c: 681b ldr r3, [r3, #0] + 800314e: 4618 mov r0, r3 + 8003150: f005 f900 bl 8008354 + 8003154: 4603 mov r3, r0 + 8003156: f403 2380 and.w r3, r3, #262144 @ 0x40000 + 800315a: f5b3 2f80 cmp.w r3, #262144 @ 0x40000 + 800315e: f040 80db bne.w 8003318 { /* Read in the device interrupt bits */ ep_intr = USB_ReadDevAllInEpInterrupt(hpcd->Instance); - 800310e: 687b ldr r3, [r7, #4] - 8003110: 681b ldr r3, [r3, #0] - 8003112: 4618 mov r0, r3 - 8003114: f005 f921 bl 800835a - 8003118: 62b8 str r0, [r7, #40] @ 0x28 + 8003162: 687b ldr r3, [r7, #4] + 8003164: 681b ldr r3, [r3, #0] + 8003166: 4618 mov r0, r3 + 8003168: f005 f921 bl 80083ae + 800316c: 62b8 str r0, [r7, #40] @ 0x28 epnum = 0U; - 800311a: 2300 movs r3, #0 - 800311c: 627b str r3, [r7, #36] @ 0x24 + 800316e: 2300 movs r3, #0 + 8003170: 627b str r3, [r7, #36] @ 0x24 while (ep_intr != 0U) - 800311e: e0cd b.n 80032bc + 8003172: e0cd b.n 8003310 { if ((ep_intr & 0x1U) != 0U) /* In ITR */ - 8003120: 6abb ldr r3, [r7, #40] @ 0x28 - 8003122: f003 0301 and.w r3, r3, #1 - 8003126: 2b00 cmp r3, #0 - 8003128: f000 80c2 beq.w 80032b0 + 8003174: 6abb ldr r3, [r7, #40] @ 0x28 + 8003176: f003 0301 and.w r3, r3, #1 + 800317a: 2b00 cmp r3, #0 + 800317c: f000 80c2 beq.w 8003304 { epint = USB_ReadDevInEPInterrupt(hpcd->Instance, (uint8_t)epnum); - 800312c: 687b ldr r3, [r7, #4] - 800312e: 681b ldr r3, [r3, #0] - 8003130: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003132: b2d2 uxtb r2, r2 - 8003134: 4611 mov r1, r2 - 8003136: 4618 mov r0, r3 - 8003138: f005 f947 bl 80083ca - 800313c: 6138 str r0, [r7, #16] + 8003180: 687b ldr r3, [r7, #4] + 8003182: 681b ldr r3, [r3, #0] + 8003184: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003186: b2d2 uxtb r2, r2 + 8003188: 4611 mov r1, r2 + 800318a: 4618 mov r0, r3 + 800318c: f005 f947 bl 800841e + 8003190: 6138 str r0, [r7, #16] if ((epint & USB_OTG_DIEPINT_XFRC) == USB_OTG_DIEPINT_XFRC) - 800313e: 693b ldr r3, [r7, #16] - 8003140: f003 0301 and.w r3, r3, #1 - 8003144: 2b00 cmp r3, #0 - 8003146: d057 beq.n 80031f8 + 8003192: 693b ldr r3, [r7, #16] + 8003194: f003 0301 and.w r3, r3, #1 + 8003198: 2b00 cmp r3, #0 + 800319a: d057 beq.n 800324c { fifoemptymsk = (uint32_t)(0x1UL << (epnum & EP_ADDR_MSK)); - 8003148: 6a7b ldr r3, [r7, #36] @ 0x24 - 800314a: f003 030f and.w r3, r3, #15 - 800314e: 2201 movs r2, #1 - 8003150: fa02 f303 lsl.w r3, r2, r3 - 8003154: 60fb str r3, [r7, #12] + 800319c: 6a7b ldr r3, [r7, #36] @ 0x24 + 800319e: f003 030f and.w r3, r3, #15 + 80031a2: 2201 movs r2, #1 + 80031a4: fa02 f303 lsl.w r3, r2, r3 + 80031a8: 60fb str r3, [r7, #12] USBx_DEVICE->DIEPEMPMSK &= ~fifoemptymsk; - 8003156: 69fb ldr r3, [r7, #28] - 8003158: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800315c: 6b5a ldr r2, [r3, #52] @ 0x34 - 800315e: 68fb ldr r3, [r7, #12] - 8003160: 43db mvns r3, r3 - 8003162: 69f9 ldr r1, [r7, #28] - 8003164: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8003168: 4013 ands r3, r2 - 800316a: 634b str r3, [r1, #52] @ 0x34 + 80031aa: 69fb ldr r3, [r7, #28] + 80031ac: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80031b0: 6b5a ldr r2, [r3, #52] @ 0x34 + 80031b2: 68fb ldr r3, [r7, #12] + 80031b4: 43db mvns r3, r3 + 80031b6: 69f9 ldr r1, [r7, #28] + 80031b8: f501 6100 add.w r1, r1, #2048 @ 0x800 + 80031bc: 4013 ands r3, r2 + 80031be: 634b str r3, [r1, #52] @ 0x34 CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_XFRC); - 800316c: 6a7b ldr r3, [r7, #36] @ 0x24 - 800316e: 015a lsls r2, r3, #5 - 8003170: 69fb ldr r3, [r7, #28] - 8003172: 4413 add r3, r2 - 8003174: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8003178: 461a mov r2, r3 - 800317a: 2301 movs r3, #1 - 800317c: 6093 str r3, [r2, #8] + 80031c0: 6a7b ldr r3, [r7, #36] @ 0x24 + 80031c2: 015a lsls r2, r3, #5 + 80031c4: 69fb ldr r3, [r7, #28] + 80031c6: 4413 add r3, r2 + 80031c8: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80031cc: 461a mov r2, r3 + 80031ce: 2301 movs r3, #1 + 80031d0: 6093 str r3, [r2, #8] if (hpcd->Init.dma_enable == 1U) - 800317e: 687b ldr r3, [r7, #4] - 8003180: 799b ldrb r3, [r3, #6] - 8003182: 2b01 cmp r3, #1 - 8003184: d132 bne.n 80031ec + 80031d2: 687b ldr r3, [r7, #4] + 80031d4: 799b ldrb r3, [r3, #6] + 80031d6: 2b01 cmp r3, #1 + 80031d8: d132 bne.n 8003240 { hpcd->IN_ep[epnum].xfer_buff += hpcd->IN_ep[epnum].maxpacket; - 8003186: 6879 ldr r1, [r7, #4] - 8003188: 6a7a ldr r2, [r7, #36] @ 0x24 - 800318a: 4613 mov r3, r2 - 800318c: 00db lsls r3, r3, #3 - 800318e: 4413 add r3, r2 - 8003190: 009b lsls r3, r3, #2 - 8003192: 440b add r3, r1 - 8003194: 3320 adds r3, #32 - 8003196: 6819 ldr r1, [r3, #0] - 8003198: 6878 ldr r0, [r7, #4] - 800319a: 6a7a ldr r2, [r7, #36] @ 0x24 - 800319c: 4613 mov r3, r2 - 800319e: 00db lsls r3, r3, #3 - 80031a0: 4413 add r3, r2 - 80031a2: 009b lsls r3, r3, #2 - 80031a4: 4403 add r3, r0 - 80031a6: 331c adds r3, #28 - 80031a8: 681b ldr r3, [r3, #0] - 80031aa: 4419 add r1, r3 - 80031ac: 6878 ldr r0, [r7, #4] - 80031ae: 6a7a ldr r2, [r7, #36] @ 0x24 - 80031b0: 4613 mov r3, r2 - 80031b2: 00db lsls r3, r3, #3 - 80031b4: 4413 add r3, r2 - 80031b6: 009b lsls r3, r3, #2 - 80031b8: 4403 add r3, r0 - 80031ba: 3320 adds r3, #32 - 80031bc: 6019 str r1, [r3, #0] + 80031da: 6879 ldr r1, [r7, #4] + 80031dc: 6a7a ldr r2, [r7, #36] @ 0x24 + 80031de: 4613 mov r3, r2 + 80031e0: 00db lsls r3, r3, #3 + 80031e2: 4413 add r3, r2 + 80031e4: 009b lsls r3, r3, #2 + 80031e6: 440b add r3, r1 + 80031e8: 3320 adds r3, #32 + 80031ea: 6819 ldr r1, [r3, #0] + 80031ec: 6878 ldr r0, [r7, #4] + 80031ee: 6a7a ldr r2, [r7, #36] @ 0x24 + 80031f0: 4613 mov r3, r2 + 80031f2: 00db lsls r3, r3, #3 + 80031f4: 4413 add r3, r2 + 80031f6: 009b lsls r3, r3, #2 + 80031f8: 4403 add r3, r0 + 80031fa: 331c adds r3, #28 + 80031fc: 681b ldr r3, [r3, #0] + 80031fe: 4419 add r1, r3 + 8003200: 6878 ldr r0, [r7, #4] + 8003202: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003204: 4613 mov r3, r2 + 8003206: 00db lsls r3, r3, #3 + 8003208: 4413 add r3, r2 + 800320a: 009b lsls r3, r3, #2 + 800320c: 4403 add r3, r0 + 800320e: 3320 adds r3, #32 + 8003210: 6019 str r1, [r3, #0] /* this is ZLP, so prepare EP0 for next setup */ if ((epnum == 0U) && (hpcd->IN_ep[epnum].xfer_len == 0U)) - 80031be: 6a7b ldr r3, [r7, #36] @ 0x24 - 80031c0: 2b00 cmp r3, #0 - 80031c2: d113 bne.n 80031ec - 80031c4: 6879 ldr r1, [r7, #4] - 80031c6: 6a7a ldr r2, [r7, #36] @ 0x24 - 80031c8: 4613 mov r3, r2 - 80031ca: 00db lsls r3, r3, #3 - 80031cc: 4413 add r3, r2 - 80031ce: 009b lsls r3, r3, #2 - 80031d0: 440b add r3, r1 - 80031d2: 3324 adds r3, #36 @ 0x24 - 80031d4: 681b ldr r3, [r3, #0] - 80031d6: 2b00 cmp r3, #0 - 80031d8: d108 bne.n 80031ec + 8003212: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003214: 2b00 cmp r3, #0 + 8003216: d113 bne.n 8003240 + 8003218: 6879 ldr r1, [r7, #4] + 800321a: 6a7a ldr r2, [r7, #36] @ 0x24 + 800321c: 4613 mov r3, r2 + 800321e: 00db lsls r3, r3, #3 + 8003220: 4413 add r3, r2 + 8003222: 009b lsls r3, r3, #2 + 8003224: 440b add r3, r1 + 8003226: 3324 adds r3, #36 @ 0x24 + 8003228: 681b ldr r3, [r3, #0] + 800322a: 2b00 cmp r3, #0 + 800322c: d108 bne.n 8003240 { /* prepare to rx more setup packets */ (void)USB_EP0_OutStart(hpcd->Instance, 1U, (uint8_t *)hpcd->Setup); - 80031da: 687b ldr r3, [r7, #4] - 80031dc: 6818 ldr r0, [r3, #0] - 80031de: 687b ldr r3, [r7, #4] - 80031e0: f203 439c addw r3, r3, #1180 @ 0x49c - 80031e4: 461a mov r2, r3 - 80031e6: 2101 movs r1, #1 - 80031e8: f005 f94e bl 8008488 + 800322e: 687b ldr r3, [r7, #4] + 8003230: 6818 ldr r0, [r3, #0] + 8003232: 687b ldr r3, [r7, #4] + 8003234: f203 439c addw r3, r3, #1180 @ 0x49c + 8003238: 461a mov r2, r3 + 800323a: 2101 movs r1, #1 + 800323c: f005 f94e bl 80084dc } #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->DataInStageCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_DataInStageCallback(hpcd, (uint8_t)epnum); - 80031ec: 6a7b ldr r3, [r7, #36] @ 0x24 - 80031ee: b2db uxtb r3, r3 - 80031f0: 4619 mov r1, r3 - 80031f2: 6878 ldr r0, [r7, #4] - 80031f4: f007 f93f bl 800a476 + 8003240: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003242: b2db uxtb r3, r3 + 8003244: 4619 mov r1, r3 + 8003246: 6878 ldr r0, [r7, #4] + 8003248: f007 f93f bl 800a4ca #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } if ((epint & USB_OTG_DIEPINT_TOC) == USB_OTG_DIEPINT_TOC) - 80031f8: 693b ldr r3, [r7, #16] - 80031fa: f003 0308 and.w r3, r3, #8 - 80031fe: 2b00 cmp r3, #0 - 8003200: d008 beq.n 8003214 + 800324c: 693b ldr r3, [r7, #16] + 800324e: f003 0308 and.w r3, r3, #8 + 8003252: 2b00 cmp r3, #0 + 8003254: d008 beq.n 8003268 { CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_TOC); - 8003202: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003204: 015a lsls r2, r3, #5 - 8003206: 69fb ldr r3, [r7, #28] - 8003208: 4413 add r3, r2 - 800320a: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800320e: 461a mov r2, r3 - 8003210: 2308 movs r3, #8 - 8003212: 6093 str r3, [r2, #8] + 8003256: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003258: 015a lsls r2, r3, #5 + 800325a: 69fb ldr r3, [r7, #28] + 800325c: 4413 add r3, r2 + 800325e: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8003262: 461a mov r2, r3 + 8003264: 2308 movs r3, #8 + 8003266: 6093 str r3, [r2, #8] } if ((epint & USB_OTG_DIEPINT_ITTXFE) == USB_OTG_DIEPINT_ITTXFE) - 8003214: 693b ldr r3, [r7, #16] - 8003216: f003 0310 and.w r3, r3, #16 - 800321a: 2b00 cmp r3, #0 - 800321c: d008 beq.n 8003230 + 8003268: 693b ldr r3, [r7, #16] + 800326a: f003 0310 and.w r3, r3, #16 + 800326e: 2b00 cmp r3, #0 + 8003270: d008 beq.n 8003284 { CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_ITTXFE); - 800321e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003220: 015a lsls r2, r3, #5 - 8003222: 69fb ldr r3, [r7, #28] - 8003224: 4413 add r3, r2 - 8003226: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800322a: 461a mov r2, r3 - 800322c: 2310 movs r3, #16 - 800322e: 6093 str r3, [r2, #8] + 8003272: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003274: 015a lsls r2, r3, #5 + 8003276: 69fb ldr r3, [r7, #28] + 8003278: 4413 add r3, r2 + 800327a: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800327e: 461a mov r2, r3 + 8003280: 2310 movs r3, #16 + 8003282: 6093 str r3, [r2, #8] } if ((epint & USB_OTG_DIEPINT_INEPNE) == USB_OTG_DIEPINT_INEPNE) - 8003230: 693b ldr r3, [r7, #16] - 8003232: f003 0340 and.w r3, r3, #64 @ 0x40 - 8003236: 2b00 cmp r3, #0 - 8003238: d008 beq.n 800324c + 8003284: 693b ldr r3, [r7, #16] + 8003286: f003 0340 and.w r3, r3, #64 @ 0x40 + 800328a: 2b00 cmp r3, #0 + 800328c: d008 beq.n 80032a0 { CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_INEPNE); - 800323a: 6a7b ldr r3, [r7, #36] @ 0x24 - 800323c: 015a lsls r2, r3, #5 - 800323e: 69fb ldr r3, [r7, #28] - 8003240: 4413 add r3, r2 - 8003242: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8003246: 461a mov r2, r3 - 8003248: 2340 movs r3, #64 @ 0x40 - 800324a: 6093 str r3, [r2, #8] + 800328e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003290: 015a lsls r2, r3, #5 + 8003292: 69fb ldr r3, [r7, #28] + 8003294: 4413 add r3, r2 + 8003296: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800329a: 461a mov r2, r3 + 800329c: 2340 movs r3, #64 @ 0x40 + 800329e: 6093 str r3, [r2, #8] } if ((epint & USB_OTG_DIEPINT_EPDISD) == USB_OTG_DIEPINT_EPDISD) - 800324c: 693b ldr r3, [r7, #16] - 800324e: f003 0302 and.w r3, r3, #2 - 8003252: 2b00 cmp r3, #0 - 8003254: d023 beq.n 800329e + 80032a0: 693b ldr r3, [r7, #16] + 80032a2: f003 0302 and.w r3, r3, #2 + 80032a6: 2b00 cmp r3, #0 + 80032a8: d023 beq.n 80032f2 { (void)USB_FlushTxFifo(USBx, epnum); - 8003256: 6a79 ldr r1, [r7, #36] @ 0x24 - 8003258: 6a38 ldr r0, [r7, #32] - 800325a: f004 f935 bl 80074c8 + 80032aa: 6a79 ldr r1, [r7, #36] @ 0x24 + 80032ac: 6a38 ldr r0, [r7, #32] + 80032ae: f004 f935 bl 800751c ep = &hpcd->IN_ep[epnum]; - 800325e: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003260: 4613 mov r3, r2 - 8003262: 00db lsls r3, r3, #3 - 8003264: 4413 add r3, r2 - 8003266: 009b lsls r3, r3, #2 - 8003268: 3310 adds r3, #16 - 800326a: 687a ldr r2, [r7, #4] - 800326c: 4413 add r3, r2 - 800326e: 3304 adds r3, #4 - 8003270: 617b str r3, [r7, #20] + 80032b2: 6a7a ldr r2, [r7, #36] @ 0x24 + 80032b4: 4613 mov r3, r2 + 80032b6: 00db lsls r3, r3, #3 + 80032b8: 4413 add r3, r2 + 80032ba: 009b lsls r3, r3, #2 + 80032bc: 3310 adds r3, #16 + 80032be: 687a ldr r2, [r7, #4] + 80032c0: 4413 add r3, r2 + 80032c2: 3304 adds r3, #4 + 80032c4: 617b str r3, [r7, #20] if (ep->is_iso_incomplete == 1U) - 8003272: 697b ldr r3, [r7, #20] - 8003274: 78db ldrb r3, [r3, #3] - 8003276: 2b01 cmp r3, #1 - 8003278: d108 bne.n 800328c + 80032c6: 697b ldr r3, [r7, #20] + 80032c8: 78db ldrb r3, [r3, #3] + 80032ca: 2b01 cmp r3, #1 + 80032cc: d108 bne.n 80032e0 { ep->is_iso_incomplete = 0U; - 800327a: 697b ldr r3, [r7, #20] - 800327c: 2200 movs r2, #0 - 800327e: 70da strb r2, [r3, #3] + 80032ce: 697b ldr r3, [r7, #20] + 80032d0: 2200 movs r2, #0 + 80032d2: 70da strb r2, [r3, #3] #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->ISOINIncompleteCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_ISOINIncompleteCallback(hpcd, (uint8_t)epnum); - 8003280: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003282: b2db uxtb r3, r3 - 8003284: 4619 mov r1, r3 - 8003286: 6878 ldr r0, [r7, #4] - 8003288: f007 f98c bl 800a5a4 + 80032d4: 6a7b ldr r3, [r7, #36] @ 0x24 + 80032d6: b2db uxtb r3, r3 + 80032d8: 4619 mov r1, r3 + 80032da: 6878 ldr r0, [r7, #4] + 80032dc: f007 f98c bl 800a5f8 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_EPDISD); - 800328c: 6a7b ldr r3, [r7, #36] @ 0x24 - 800328e: 015a lsls r2, r3, #5 - 8003290: 69fb ldr r3, [r7, #28] - 8003292: 4413 add r3, r2 - 8003294: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8003298: 461a mov r2, r3 - 800329a: 2302 movs r3, #2 - 800329c: 6093 str r3, [r2, #8] + 80032e0: 6a7b ldr r3, [r7, #36] @ 0x24 + 80032e2: 015a lsls r2, r3, #5 + 80032e4: 69fb ldr r3, [r7, #28] + 80032e6: 4413 add r3, r2 + 80032e8: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80032ec: 461a mov r2, r3 + 80032ee: 2302 movs r3, #2 + 80032f0: 6093 str r3, [r2, #8] } if ((epint & USB_OTG_DIEPINT_TXFE) == USB_OTG_DIEPINT_TXFE) - 800329e: 693b ldr r3, [r7, #16] - 80032a0: f003 0380 and.w r3, r3, #128 @ 0x80 - 80032a4: 2b00 cmp r3, #0 - 80032a6: d003 beq.n 80032b0 + 80032f2: 693b ldr r3, [r7, #16] + 80032f4: f003 0380 and.w r3, r3, #128 @ 0x80 + 80032f8: 2b00 cmp r3, #0 + 80032fa: d003 beq.n 8003304 { (void)PCD_WriteEmptyTxFifo(hpcd, epnum); - 80032a8: 6a79 ldr r1, [r7, #36] @ 0x24 - 80032aa: 6878 ldr r0, [r7, #4] - 80032ac: f000 fcd2 bl 8003c54 + 80032fc: 6a79 ldr r1, [r7, #36] @ 0x24 + 80032fe: 6878 ldr r0, [r7, #4] + 8003300: f000 fcd2 bl 8003ca8 } } epnum++; - 80032b0: 6a7b ldr r3, [r7, #36] @ 0x24 - 80032b2: 3301 adds r3, #1 - 80032b4: 627b str r3, [r7, #36] @ 0x24 + 8003304: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003306: 3301 adds r3, #1 + 8003308: 627b str r3, [r7, #36] @ 0x24 ep_intr >>= 1U; - 80032b6: 6abb ldr r3, [r7, #40] @ 0x28 - 80032b8: 085b lsrs r3, r3, #1 - 80032ba: 62bb str r3, [r7, #40] @ 0x28 + 800330a: 6abb ldr r3, [r7, #40] @ 0x28 + 800330c: 085b lsrs r3, r3, #1 + 800330e: 62bb str r3, [r7, #40] @ 0x28 while (ep_intr != 0U) - 80032bc: 6abb ldr r3, [r7, #40] @ 0x28 - 80032be: 2b00 cmp r3, #0 - 80032c0: f47f af2e bne.w 8003120 + 8003310: 6abb ldr r3, [r7, #40] @ 0x28 + 8003312: 2b00 cmp r3, #0 + 8003314: f47f af2e bne.w 8003174 } } /* Handle Resume Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_WKUINT)) - 80032c4: 687b ldr r3, [r7, #4] - 80032c6: 681b ldr r3, [r3, #0] - 80032c8: 4618 mov r0, r3 - 80032ca: f005 f819 bl 8008300 - 80032ce: 4603 mov r3, r0 - 80032d0: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 80032d4: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 80032d8: d122 bne.n 8003320 + 8003318: 687b ldr r3, [r7, #4] + 800331a: 681b ldr r3, [r3, #0] + 800331c: 4618 mov r0, r3 + 800331e: f005 f819 bl 8008354 + 8003322: 4603 mov r3, r0 + 8003324: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8003328: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 800332c: d122 bne.n 8003374 { /* Clear the Remote Wake-up Signaling */ USBx_DEVICE->DCTL &= ~USB_OTG_DCTL_RWUSIG; - 80032da: 69fb ldr r3, [r7, #28] - 80032dc: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80032e0: 685b ldr r3, [r3, #4] - 80032e2: 69fa ldr r2, [r7, #28] - 80032e4: f502 6200 add.w r2, r2, #2048 @ 0x800 - 80032e8: f023 0301 bic.w r3, r3, #1 - 80032ec: 6053 str r3, [r2, #4] + 800332e: 69fb ldr r3, [r7, #28] + 8003330: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003334: 685b ldr r3, [r3, #4] + 8003336: 69fa ldr r2, [r7, #28] + 8003338: f502 6200 add.w r2, r2, #2048 @ 0x800 + 800333c: f023 0301 bic.w r3, r3, #1 + 8003340: 6053 str r3, [r2, #4] if (hpcd->LPM_State == LPM_L1) - 80032ee: 687b ldr r3, [r7, #4] - 80032f0: f893 34cc ldrb.w r3, [r3, #1228] @ 0x4cc - 80032f4: 2b01 cmp r3, #1 - 80032f6: d108 bne.n 800330a + 8003342: 687b ldr r3, [r7, #4] + 8003344: f893 34cc ldrb.w r3, [r3, #1228] @ 0x4cc + 8003348: 2b01 cmp r3, #1 + 800334a: d108 bne.n 800335e { hpcd->LPM_State = LPM_L0; - 80032f8: 687b ldr r3, [r7, #4] - 80032fa: 2200 movs r2, #0 - 80032fc: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc + 800334c: 687b ldr r3, [r7, #4] + 800334e: 2200 movs r2, #0 + 8003350: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->LPMCallback(hpcd, PCD_LPM_L0_ACTIVE); #else HAL_PCDEx_LPM_Callback(hpcd, PCD_LPM_L0_ACTIVE); - 8003300: 2100 movs r1, #0 - 8003302: 6878 ldr r0, [r7, #4] - 8003304: f007 faf4 bl 800a8f0 - 8003308: e002 b.n 8003310 + 8003354: 2100 movs r1, #0 + 8003356: 6878 ldr r0, [r7, #4] + 8003358: f007 faf4 bl 800a944 + 800335c: e002 b.n 8003364 else { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->ResumeCallback(hpcd); #else HAL_PCD_ResumeCallback(hpcd); - 800330a: 6878 ldr r0, [r7, #4] - 800330c: f007 f92a bl 800a564 + 800335e: 6878 ldr r0, [r7, #4] + 8003360: f007 f92a bl 800a5b8 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_WKUINT); - 8003310: 687b ldr r3, [r7, #4] - 8003312: 681b ldr r3, [r3, #0] - 8003314: 695a ldr r2, [r3, #20] - 8003316: 687b ldr r3, [r7, #4] - 8003318: 681b ldr r3, [r3, #0] - 800331a: f002 4200 and.w r2, r2, #2147483648 @ 0x80000000 - 800331e: 615a str r2, [r3, #20] + 8003364: 687b ldr r3, [r7, #4] + 8003366: 681b ldr r3, [r3, #0] + 8003368: 695a ldr r2, [r3, #20] + 800336a: 687b ldr r3, [r7, #4] + 800336c: 681b ldr r3, [r3, #0] + 800336e: f002 4200 and.w r2, r2, #2147483648 @ 0x80000000 + 8003372: 615a str r2, [r3, #20] } /* Handle Suspend Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_USBSUSP)) - 8003320: 687b ldr r3, [r7, #4] - 8003322: 681b ldr r3, [r3, #0] - 8003324: 4618 mov r0, r3 - 8003326: f004 ffeb bl 8008300 - 800332a: 4603 mov r3, r0 - 800332c: f403 6300 and.w r3, r3, #2048 @ 0x800 - 8003330: f5b3 6f00 cmp.w r3, #2048 @ 0x800 - 8003334: d112 bne.n 800335c + 8003374: 687b ldr r3, [r7, #4] + 8003376: 681b ldr r3, [r3, #0] + 8003378: 4618 mov r0, r3 + 800337a: f004 ffeb bl 8008354 + 800337e: 4603 mov r3, r0 + 8003380: f403 6300 and.w r3, r3, #2048 @ 0x800 + 8003384: f5b3 6f00 cmp.w r3, #2048 @ 0x800 + 8003388: d112 bne.n 80033b0 { if ((USBx_DEVICE->DSTS & USB_OTG_DSTS_SUSPSTS) == USB_OTG_DSTS_SUSPSTS) - 8003336: 69fb ldr r3, [r7, #28] - 8003338: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800333c: 689b ldr r3, [r3, #8] - 800333e: f003 0301 and.w r3, r3, #1 - 8003342: 2b01 cmp r3, #1 - 8003344: d102 bne.n 800334c + 800338a: 69fb ldr r3, [r7, #28] + 800338c: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003390: 689b ldr r3, [r3, #8] + 8003392: f003 0301 and.w r3, r3, #1 + 8003396: 2b01 cmp r3, #1 + 8003398: d102 bne.n 80033a0 { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->SuspendCallback(hpcd); #else HAL_PCD_SuspendCallback(hpcd); - 8003346: 6878 ldr r0, [r7, #4] - 8003348: f007 f8e6 bl 800a518 + 800339a: 6878 ldr r0, [r7, #4] + 800339c: f007 f8e6 bl 800a56c #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_USBSUSP); - 800334c: 687b ldr r3, [r7, #4] - 800334e: 681b ldr r3, [r3, #0] - 8003350: 695a ldr r2, [r3, #20] - 8003352: 687b ldr r3, [r7, #4] - 8003354: 681b ldr r3, [r3, #0] - 8003356: f402 6200 and.w r2, r2, #2048 @ 0x800 - 800335a: 615a str r2, [r3, #20] + 80033a0: 687b ldr r3, [r7, #4] + 80033a2: 681b ldr r3, [r3, #0] + 80033a4: 695a ldr r2, [r3, #20] + 80033a6: 687b ldr r3, [r7, #4] + 80033a8: 681b ldr r3, [r3, #0] + 80033aa: f402 6200 and.w r2, r2, #2048 @ 0x800 + 80033ae: 615a str r2, [r3, #20] } #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) \ || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) \ || defined(STM32F423xx) /* Handle LPM Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_LPMINT)) - 800335c: 687b ldr r3, [r7, #4] - 800335e: 681b ldr r3, [r3, #0] - 8003360: 4618 mov r0, r3 - 8003362: f004 ffcd bl 8008300 - 8003366: 4603 mov r3, r0 - 8003368: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 - 800336c: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 - 8003370: d121 bne.n 80033b6 + 80033b0: 687b ldr r3, [r7, #4] + 80033b2: 681b ldr r3, [r3, #0] + 80033b4: 4618 mov r0, r3 + 80033b6: f004 ffcd bl 8008354 + 80033ba: 4603 mov r3, r0 + 80033bc: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 + 80033c0: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 + 80033c4: d121 bne.n 800340a { __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_LPMINT); - 8003372: 687b ldr r3, [r7, #4] - 8003374: 681b ldr r3, [r3, #0] - 8003376: 695a ldr r2, [r3, #20] - 8003378: 687b ldr r3, [r7, #4] - 800337a: 681b ldr r3, [r3, #0] - 800337c: f002 6200 and.w r2, r2, #134217728 @ 0x8000000 - 8003380: 615a str r2, [r3, #20] + 80033c6: 687b ldr r3, [r7, #4] + 80033c8: 681b ldr r3, [r3, #0] + 80033ca: 695a ldr r2, [r3, #20] + 80033cc: 687b ldr r3, [r7, #4] + 80033ce: 681b ldr r3, [r3, #0] + 80033d0: f002 6200 and.w r2, r2, #134217728 @ 0x8000000 + 80033d4: 615a str r2, [r3, #20] if (hpcd->LPM_State == LPM_L0) - 8003382: 687b ldr r3, [r7, #4] - 8003384: f893 34cc ldrb.w r3, [r3, #1228] @ 0x4cc - 8003388: 2b00 cmp r3, #0 - 800338a: d111 bne.n 80033b0 + 80033d6: 687b ldr r3, [r7, #4] + 80033d8: f893 34cc ldrb.w r3, [r3, #1228] @ 0x4cc + 80033dc: 2b00 cmp r3, #0 + 80033de: d111 bne.n 8003404 { hpcd->LPM_State = LPM_L1; - 800338c: 687b ldr r3, [r7, #4] - 800338e: 2201 movs r2, #1 - 8003390: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc + 80033e0: 687b ldr r3, [r7, #4] + 80033e2: 2201 movs r2, #1 + 80033e4: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc hpcd->BESL = (hpcd->Instance->GLPMCFG & USB_OTG_GLPMCFG_BESL) >> 2U; - 8003394: 687b ldr r3, [r7, #4] - 8003396: 681b ldr r3, [r3, #0] - 8003398: 6d5b ldr r3, [r3, #84] @ 0x54 - 800339a: 089b lsrs r3, r3, #2 - 800339c: f003 020f and.w r2, r3, #15 - 80033a0: 687b ldr r3, [r7, #4] - 80033a2: f8c3 24d0 str.w r2, [r3, #1232] @ 0x4d0 + 80033e8: 687b ldr r3, [r7, #4] + 80033ea: 681b ldr r3, [r3, #0] + 80033ec: 6d5b ldr r3, [r3, #84] @ 0x54 + 80033ee: 089b lsrs r3, r3, #2 + 80033f0: f003 020f and.w r2, r3, #15 + 80033f4: 687b ldr r3, [r7, #4] + 80033f6: f8c3 24d0 str.w r2, [r3, #1232] @ 0x4d0 #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->LPMCallback(hpcd, PCD_LPM_L1_ACTIVE); #else HAL_PCDEx_LPM_Callback(hpcd, PCD_LPM_L1_ACTIVE); - 80033a6: 2101 movs r1, #1 - 80033a8: 6878 ldr r0, [r7, #4] - 80033aa: f007 faa1 bl 800a8f0 - 80033ae: e002 b.n 80033b6 + 80033fa: 2101 movs r1, #1 + 80033fc: 6878 ldr r0, [r7, #4] + 80033fe: f007 faa1 bl 800a944 + 8003402: e002 b.n 800340a else { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->SuspendCallback(hpcd); #else HAL_PCD_SuspendCallback(hpcd); - 80033b0: 6878 ldr r0, [r7, #4] - 80033b2: f007 f8b1 bl 800a518 + 8003404: 6878 ldr r0, [r7, #4] + 8003406: f007 f8b1 bl 800a56c } #endif /* defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) */ /* Handle Reset Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_USBRST)) - 80033b6: 687b ldr r3, [r7, #4] - 80033b8: 681b ldr r3, [r3, #0] - 80033ba: 4618 mov r0, r3 - 80033bc: f004 ffa0 bl 8008300 - 80033c0: 4603 mov r3, r0 - 80033c2: f403 5380 and.w r3, r3, #4096 @ 0x1000 - 80033c6: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 80033ca: f040 80b7 bne.w 800353c + 800340a: 687b ldr r3, [r7, #4] + 800340c: 681b ldr r3, [r3, #0] + 800340e: 4618 mov r0, r3 + 8003410: f004 ffa0 bl 8008354 + 8003414: 4603 mov r3, r0 + 8003416: f403 5380 and.w r3, r3, #4096 @ 0x1000 + 800341a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 800341e: f040 80b7 bne.w 8003590 { USBx_DEVICE->DCTL &= ~USB_OTG_DCTL_RWUSIG; - 80033ce: 69fb ldr r3, [r7, #28] - 80033d0: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80033d4: 685b ldr r3, [r3, #4] - 80033d6: 69fa ldr r2, [r7, #28] - 80033d8: f502 6200 add.w r2, r2, #2048 @ 0x800 - 80033dc: f023 0301 bic.w r3, r3, #1 - 80033e0: 6053 str r3, [r2, #4] + 8003422: 69fb ldr r3, [r7, #28] + 8003424: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003428: 685b ldr r3, [r3, #4] + 800342a: 69fa ldr r2, [r7, #28] + 800342c: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8003430: f023 0301 bic.w r3, r3, #1 + 8003434: 6053 str r3, [r2, #4] (void)USB_FlushTxFifo(hpcd->Instance, 0x10U); - 80033e2: 687b ldr r3, [r7, #4] - 80033e4: 681b ldr r3, [r3, #0] - 80033e6: 2110 movs r1, #16 - 80033e8: 4618 mov r0, r3 - 80033ea: f004 f86d bl 80074c8 + 8003436: 687b ldr r3, [r7, #4] + 8003438: 681b ldr r3, [r3, #0] + 800343a: 2110 movs r1, #16 + 800343c: 4618 mov r0, r3 + 800343e: f004 f86d bl 800751c for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 80033ee: 2300 movs r3, #0 - 80033f0: 62fb str r3, [r7, #44] @ 0x2c - 80033f2: e046 b.n 8003482 + 8003442: 2300 movs r3, #0 + 8003444: 62fb str r3, [r7, #44] @ 0x2c + 8003446: e046 b.n 80034d6 { USBx_INEP(i)->DIEPINT = 0xFB7FU; - 80033f4: 6afb ldr r3, [r7, #44] @ 0x2c - 80033f6: 015a lsls r2, r3, #5 - 80033f8: 69fb ldr r3, [r7, #28] - 80033fa: 4413 add r3, r2 - 80033fc: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8003400: 461a mov r2, r3 - 8003402: f64f 337f movw r3, #64383 @ 0xfb7f - 8003406: 6093 str r3, [r2, #8] + 8003448: 6afb ldr r3, [r7, #44] @ 0x2c + 800344a: 015a lsls r2, r3, #5 + 800344c: 69fb ldr r3, [r7, #28] + 800344e: 4413 add r3, r2 + 8003450: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8003454: 461a mov r2, r3 + 8003456: f64f 337f movw r3, #64383 @ 0xfb7f + 800345a: 6093 str r3, [r2, #8] USBx_INEP(i)->DIEPCTL &= ~USB_OTG_DIEPCTL_STALL; - 8003408: 6afb ldr r3, [r7, #44] @ 0x2c - 800340a: 015a lsls r2, r3, #5 - 800340c: 69fb ldr r3, [r7, #28] - 800340e: 4413 add r3, r2 - 8003410: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8003414: 681b ldr r3, [r3, #0] - 8003416: 6afa ldr r2, [r7, #44] @ 0x2c - 8003418: 0151 lsls r1, r2, #5 - 800341a: 69fa ldr r2, [r7, #28] - 800341c: 440a add r2, r1 - 800341e: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8003422: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 - 8003426: 6013 str r3, [r2, #0] - USBx_OUTEP(i)->DOEPINT = 0xFB7FU; - 8003428: 6afb ldr r3, [r7, #44] @ 0x2c - 800342a: 015a lsls r2, r3, #5 - 800342c: 69fb ldr r3, [r7, #28] - 800342e: 4413 add r3, r2 - 8003430: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003434: 461a mov r2, r3 - 8003436: f64f 337f movw r3, #64383 @ 0xfb7f - 800343a: 6093 str r3, [r2, #8] - USBx_OUTEP(i)->DOEPCTL &= ~USB_OTG_DOEPCTL_STALL; - 800343c: 6afb ldr r3, [r7, #44] @ 0x2c - 800343e: 015a lsls r2, r3, #5 - 8003440: 69fb ldr r3, [r7, #28] - 8003442: 4413 add r3, r2 - 8003444: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003448: 681b ldr r3, [r3, #0] - 800344a: 6afa ldr r2, [r7, #44] @ 0x2c - 800344c: 0151 lsls r1, r2, #5 - 800344e: 69fa ldr r2, [r7, #28] - 8003450: 440a add r2, r1 - 8003452: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8003456: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 - 800345a: 6013 str r3, [r2, #0] - USBx_OUTEP(i)->DOEPCTL |= USB_OTG_DOEPCTL_SNAK; 800345c: 6afb ldr r3, [r7, #44] @ 0x2c 800345e: 015a lsls r2, r3, #5 8003460: 69fb ldr r3, [r7, #28] 8003462: 4413 add r3, r2 - 8003464: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003464: f503 6310 add.w r3, r3, #2304 @ 0x900 8003468: 681b ldr r3, [r3, #0] 800346a: 6afa ldr r2, [r7, #44] @ 0x2c 800346c: 0151 lsls r1, r2, #5 800346e: 69fa ldr r2, [r7, #28] 8003470: 440a add r2, r1 - 8003472: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8003476: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 8003472: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8003476: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 800347a: 6013 str r3, [r2, #0] - for (i = 0U; i < hpcd->Init.dev_endpoints; i++) + USBx_OUTEP(i)->DOEPINT = 0xFB7FU; 800347c: 6afb ldr r3, [r7, #44] @ 0x2c - 800347e: 3301 adds r3, #1 - 8003480: 62fb str r3, [r7, #44] @ 0x2c - 8003482: 687b ldr r3, [r7, #4] - 8003484: 791b ldrb r3, [r3, #4] - 8003486: 461a mov r2, r3 - 8003488: 6afb ldr r3, [r7, #44] @ 0x2c - 800348a: 4293 cmp r3, r2 - 800348c: d3b2 bcc.n 80033f4 + 800347e: 015a lsls r2, r3, #5 + 8003480: 69fb ldr r3, [r7, #28] + 8003482: 4413 add r3, r2 + 8003484: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003488: 461a mov r2, r3 + 800348a: f64f 337f movw r3, #64383 @ 0xfb7f + 800348e: 6093 str r3, [r2, #8] + USBx_OUTEP(i)->DOEPCTL &= ~USB_OTG_DOEPCTL_STALL; + 8003490: 6afb ldr r3, [r7, #44] @ 0x2c + 8003492: 015a lsls r2, r3, #5 + 8003494: 69fb ldr r3, [r7, #28] + 8003496: 4413 add r3, r2 + 8003498: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800349c: 681b ldr r3, [r3, #0] + 800349e: 6afa ldr r2, [r7, #44] @ 0x2c + 80034a0: 0151 lsls r1, r2, #5 + 80034a2: 69fa ldr r2, [r7, #28] + 80034a4: 440a add r2, r1 + 80034a6: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80034aa: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 + 80034ae: 6013 str r3, [r2, #0] + USBx_OUTEP(i)->DOEPCTL |= USB_OTG_DOEPCTL_SNAK; + 80034b0: 6afb ldr r3, [r7, #44] @ 0x2c + 80034b2: 015a lsls r2, r3, #5 + 80034b4: 69fb ldr r3, [r7, #28] + 80034b6: 4413 add r3, r2 + 80034b8: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80034bc: 681b ldr r3, [r3, #0] + 80034be: 6afa ldr r2, [r7, #44] @ 0x2c + 80034c0: 0151 lsls r1, r2, #5 + 80034c2: 69fa ldr r2, [r7, #28] + 80034c4: 440a add r2, r1 + 80034c6: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80034ca: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 80034ce: 6013 str r3, [r2, #0] + for (i = 0U; i < hpcd->Init.dev_endpoints; i++) + 80034d0: 6afb ldr r3, [r7, #44] @ 0x2c + 80034d2: 3301 adds r3, #1 + 80034d4: 62fb str r3, [r7, #44] @ 0x2c + 80034d6: 687b ldr r3, [r7, #4] + 80034d8: 791b ldrb r3, [r3, #4] + 80034da: 461a mov r2, r3 + 80034dc: 6afb ldr r3, [r7, #44] @ 0x2c + 80034de: 4293 cmp r3, r2 + 80034e0: d3b2 bcc.n 8003448 } USBx_DEVICE->DAINTMSK |= 0x10001U; - 800348e: 69fb ldr r3, [r7, #28] - 8003490: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003494: 69db ldr r3, [r3, #28] - 8003496: 69fa ldr r2, [r7, #28] - 8003498: f502 6200 add.w r2, r2, #2048 @ 0x800 - 800349c: f043 1301 orr.w r3, r3, #65537 @ 0x10001 - 80034a0: 61d3 str r3, [r2, #28] + 80034e2: 69fb ldr r3, [r7, #28] + 80034e4: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80034e8: 69db ldr r3, [r3, #28] + 80034ea: 69fa ldr r2, [r7, #28] + 80034ec: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80034f0: f043 1301 orr.w r3, r3, #65537 @ 0x10001 + 80034f4: 61d3 str r3, [r2, #28] if (hpcd->Init.use_dedicated_ep1 != 0U) - 80034a2: 687b ldr r3, [r7, #4] - 80034a4: 7bdb ldrb r3, [r3, #15] - 80034a6: 2b00 cmp r3, #0 - 80034a8: d016 beq.n 80034d8 + 80034f6: 687b ldr r3, [r7, #4] + 80034f8: 7bdb ldrb r3, [r3, #15] + 80034fa: 2b00 cmp r3, #0 + 80034fc: d016 beq.n 800352c { USBx_DEVICE->DOUTEP1MSK |= USB_OTG_DOEPMSK_STUPM | - 80034aa: 69fb ldr r3, [r7, #28] - 80034ac: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80034b0: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 80034b4: 69fa ldr r2, [r7, #28] - 80034b6: f502 6200 add.w r2, r2, #2048 @ 0x800 - 80034ba: f043 030b orr.w r3, r3, #11 - 80034be: f8c2 3084 str.w r3, [r2, #132] @ 0x84 + 80034fe: 69fb ldr r3, [r7, #28] + 8003500: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003504: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8003508: 69fa ldr r2, [r7, #28] + 800350a: f502 6200 add.w r2, r2, #2048 @ 0x800 + 800350e: f043 030b orr.w r3, r3, #11 + 8003512: f8c2 3084 str.w r3, [r2, #132] @ 0x84 USB_OTG_DOEPMSK_XFRCM | USB_OTG_DOEPMSK_EPDM; USBx_DEVICE->DINEP1MSK |= USB_OTG_DIEPMSK_TOM | - 80034c2: 69fb ldr r3, [r7, #28] - 80034c4: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80034c8: 6c5b ldr r3, [r3, #68] @ 0x44 - 80034ca: 69fa ldr r2, [r7, #28] - 80034cc: f502 6200 add.w r2, r2, #2048 @ 0x800 - 80034d0: f043 030b orr.w r3, r3, #11 - 80034d4: 6453 str r3, [r2, #68] @ 0x44 - 80034d6: e015 b.n 8003504 + 8003516: 69fb ldr r3, [r7, #28] + 8003518: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800351c: 6c5b ldr r3, [r3, #68] @ 0x44 + 800351e: 69fa ldr r2, [r7, #28] + 8003520: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8003524: f043 030b orr.w r3, r3, #11 + 8003528: 6453 str r3, [r2, #68] @ 0x44 + 800352a: e015 b.n 8003558 USB_OTG_DIEPMSK_XFRCM | USB_OTG_DIEPMSK_EPDM; } else { USBx_DEVICE->DOEPMSK |= USB_OTG_DOEPMSK_STUPM | - 80034d8: 69fb ldr r3, [r7, #28] - 80034da: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80034de: 695b ldr r3, [r3, #20] - 80034e0: 69fa ldr r2, [r7, #28] - 80034e2: f502 6200 add.w r2, r2, #2048 @ 0x800 - 80034e6: f443 5300 orr.w r3, r3, #8192 @ 0x2000 - 80034ea: f043 032b orr.w r3, r3, #43 @ 0x2b - 80034ee: 6153 str r3, [r2, #20] + 800352c: 69fb ldr r3, [r7, #28] + 800352e: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003532: 695b ldr r3, [r3, #20] + 8003534: 69fa ldr r2, [r7, #28] + 8003536: f502 6200 add.w r2, r2, #2048 @ 0x800 + 800353a: f443 5300 orr.w r3, r3, #8192 @ 0x2000 + 800353e: f043 032b orr.w r3, r3, #43 @ 0x2b + 8003542: 6153 str r3, [r2, #20] USB_OTG_DOEPMSK_XFRCM | USB_OTG_DOEPMSK_EPDM | USB_OTG_DOEPMSK_OTEPSPRM | USB_OTG_DOEPMSK_NAKM; USBx_DEVICE->DIEPMSK |= USB_OTG_DIEPMSK_TOM | - 80034f0: 69fb ldr r3, [r7, #28] - 80034f2: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80034f6: 691b ldr r3, [r3, #16] - 80034f8: 69fa ldr r2, [r7, #28] - 80034fa: f502 6200 add.w r2, r2, #2048 @ 0x800 - 80034fe: f043 030b orr.w r3, r3, #11 - 8003502: 6113 str r3, [r2, #16] + 8003544: 69fb ldr r3, [r7, #28] + 8003546: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800354a: 691b ldr r3, [r3, #16] + 800354c: 69fa ldr r2, [r7, #28] + 800354e: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8003552: f043 030b orr.w r3, r3, #11 + 8003556: 6113 str r3, [r2, #16] USB_OTG_DIEPMSK_XFRCM | USB_OTG_DIEPMSK_EPDM; } /* Set Default Address to 0 */ USBx_DEVICE->DCFG &= ~USB_OTG_DCFG_DAD; - 8003504: 69fb ldr r3, [r7, #28] - 8003506: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800350a: 681b ldr r3, [r3, #0] - 800350c: 69fa ldr r2, [r7, #28] - 800350e: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003512: f423 63fe bic.w r3, r3, #2032 @ 0x7f0 - 8003516: 6013 str r3, [r2, #0] + 8003558: 69fb ldr r3, [r7, #28] + 800355a: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800355e: 681b ldr r3, [r3, #0] + 8003560: 69fa ldr r2, [r7, #28] + 8003562: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8003566: f423 63fe bic.w r3, r3, #2032 @ 0x7f0 + 800356a: 6013 str r3, [r2, #0] /* setup EP0 to receive SETUP packets */ (void)USB_EP0_OutStart(hpcd->Instance, (uint8_t)hpcd->Init.dma_enable, - 8003518: 687b ldr r3, [r7, #4] - 800351a: 6818 ldr r0, [r3, #0] - 800351c: 687b ldr r3, [r7, #4] - 800351e: 7999 ldrb r1, [r3, #6] + 800356c: 687b ldr r3, [r7, #4] + 800356e: 6818 ldr r0, [r3, #0] + 8003570: 687b ldr r3, [r7, #4] + 8003572: 7999 ldrb r1, [r3, #6] (uint8_t *)hpcd->Setup); - 8003520: 687b ldr r3, [r7, #4] - 8003522: f203 439c addw r3, r3, #1180 @ 0x49c + 8003574: 687b ldr r3, [r7, #4] + 8003576: f203 439c addw r3, r3, #1180 @ 0x49c (void)USB_EP0_OutStart(hpcd->Instance, (uint8_t)hpcd->Init.dma_enable, - 8003526: 461a mov r2, r3 - 8003528: f004 ffae bl 8008488 + 800357a: 461a mov r2, r3 + 800357c: f004 ffae bl 80084dc __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_USBRST); - 800352c: 687b ldr r3, [r7, #4] - 800352e: 681b ldr r3, [r3, #0] - 8003530: 695a ldr r2, [r3, #20] - 8003532: 687b ldr r3, [r7, #4] - 8003534: 681b ldr r3, [r3, #0] - 8003536: f402 5280 and.w r2, r2, #4096 @ 0x1000 - 800353a: 615a str r2, [r3, #20] + 8003580: 687b ldr r3, [r7, #4] + 8003582: 681b ldr r3, [r3, #0] + 8003584: 695a ldr r2, [r3, #20] + 8003586: 687b ldr r3, [r7, #4] + 8003588: 681b ldr r3, [r3, #0] + 800358a: f402 5280 and.w r2, r2, #4096 @ 0x1000 + 800358e: 615a str r2, [r3, #20] } /* Handle Enumeration done Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_ENUMDNE)) - 800353c: 687b ldr r3, [r7, #4] - 800353e: 681b ldr r3, [r3, #0] - 8003540: 4618 mov r0, r3 - 8003542: f004 fedd bl 8008300 - 8003546: 4603 mov r3, r0 - 8003548: f403 5300 and.w r3, r3, #8192 @ 0x2000 - 800354c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 - 8003550: d123 bne.n 800359a + 8003590: 687b ldr r3, [r7, #4] + 8003592: 681b ldr r3, [r3, #0] + 8003594: 4618 mov r0, r3 + 8003596: f004 fedd bl 8008354 + 800359a: 4603 mov r3, r0 + 800359c: f403 5300 and.w r3, r3, #8192 @ 0x2000 + 80035a0: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 + 80035a4: d123 bne.n 80035ee { (void)USB_ActivateSetup(hpcd->Instance); - 8003552: 687b ldr r3, [r7, #4] - 8003554: 681b ldr r3, [r3, #0] - 8003556: 4618 mov r0, r3 - 8003558: f004 ff73 bl 8008442 + 80035a6: 687b ldr r3, [r7, #4] + 80035a8: 681b ldr r3, [r3, #0] + 80035aa: 4618 mov r0, r3 + 80035ac: f004 ff73 bl 8008496 hpcd->Init.speed = USB_GetDevSpeed(hpcd->Instance); - 800355c: 687b ldr r3, [r7, #4] - 800355e: 681b ldr r3, [r3, #0] - 8003560: 4618 mov r0, r3 - 8003562: f004 f82a bl 80075ba - 8003566: 4603 mov r3, r0 - 8003568: 461a mov r2, r3 - 800356a: 687b ldr r3, [r7, #4] - 800356c: 71da strb r2, [r3, #7] + 80035b0: 687b ldr r3, [r7, #4] + 80035b2: 681b ldr r3, [r3, #0] + 80035b4: 4618 mov r0, r3 + 80035b6: f004 f82a bl 800760e + 80035ba: 4603 mov r3, r0 + 80035bc: 461a mov r2, r3 + 80035be: 687b ldr r3, [r7, #4] + 80035c0: 71da strb r2, [r3, #7] /* Set USB Turnaround time */ (void)USB_SetTurnaroundTime(hpcd->Instance, - 800356e: 687b ldr r3, [r7, #4] - 8003570: 681c ldr r4, [r3, #0] - 8003572: f000 fe8b bl 800428c - 8003576: 4601 mov r1, r0 + 80035c2: 687b ldr r3, [r7, #4] + 80035c4: 681c ldr r4, [r3, #0] + 80035c6: f000 fe8b bl 80042e0 + 80035ca: 4601 mov r1, r0 HAL_RCC_GetHCLKFreq(), (uint8_t)hpcd->Init.speed); - 8003578: 687b ldr r3, [r7, #4] - 800357a: 79db ldrb r3, [r3, #7] + 80035cc: 687b ldr r3, [r7, #4] + 80035ce: 79db ldrb r3, [r3, #7] (void)USB_SetTurnaroundTime(hpcd->Instance, - 800357c: 461a mov r2, r3 - 800357e: 4620 mov r0, r4 - 8003580: f003 fd34 bl 8006fec + 80035d0: 461a mov r2, r3 + 80035d2: 4620 mov r0, r4 + 80035d4: f003 fd34 bl 8007040 #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->ResetCallback(hpcd); #else HAL_PCD_ResetCallback(hpcd); - 8003584: 6878 ldr r0, [r7, #4] - 8003586: f006 ff9e bl 800a4c6 + 80035d8: 6878 ldr r0, [r7, #4] + 80035da: f006 ff9e bl 800a51a #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_ENUMDNE); - 800358a: 687b ldr r3, [r7, #4] - 800358c: 681b ldr r3, [r3, #0] - 800358e: 695a ldr r2, [r3, #20] - 8003590: 687b ldr r3, [r7, #4] - 8003592: 681b ldr r3, [r3, #0] - 8003594: f402 5200 and.w r2, r2, #8192 @ 0x2000 - 8003598: 615a str r2, [r3, #20] + 80035de: 687b ldr r3, [r7, #4] + 80035e0: 681b ldr r3, [r3, #0] + 80035e2: 695a ldr r2, [r3, #20] + 80035e4: 687b ldr r3, [r7, #4] + 80035e6: 681b ldr r3, [r3, #0] + 80035e8: f402 5200 and.w r2, r2, #8192 @ 0x2000 + 80035ec: 615a str r2, [r3, #20] } /* Handle SOF Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_SOF)) - 800359a: 687b ldr r3, [r7, #4] - 800359c: 681b ldr r3, [r3, #0] - 800359e: 4618 mov r0, r3 - 80035a0: f004 feae bl 8008300 - 80035a4: 4603 mov r3, r0 - 80035a6: f003 0308 and.w r3, r3, #8 - 80035aa: 2b08 cmp r3, #8 - 80035ac: d10a bne.n 80035c4 + 80035ee: 687b ldr r3, [r7, #4] + 80035f0: 681b ldr r3, [r3, #0] + 80035f2: 4618 mov r0, r3 + 80035f4: f004 feae bl 8008354 + 80035f8: 4603 mov r3, r0 + 80035fa: f003 0308 and.w r3, r3, #8 + 80035fe: 2b08 cmp r3, #8 + 8003600: d10a bne.n 8003618 { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->SOFCallback(hpcd); #else HAL_PCD_SOFCallback(hpcd); - 80035ae: 6878 ldr r0, [r7, #4] - 80035b0: f006 ff7b bl 800a4aa + 8003602: 6878 ldr r0, [r7, #4] + 8003604: f006 ff7b bl 800a4fe #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_SOF); - 80035b4: 687b ldr r3, [r7, #4] - 80035b6: 681b ldr r3, [r3, #0] - 80035b8: 695a ldr r2, [r3, #20] - 80035ba: 687b ldr r3, [r7, #4] - 80035bc: 681b ldr r3, [r3, #0] - 80035be: f002 0208 and.w r2, r2, #8 - 80035c2: 615a str r2, [r3, #20] + 8003608: 687b ldr r3, [r7, #4] + 800360a: 681b ldr r3, [r3, #0] + 800360c: 695a ldr r2, [r3, #20] + 800360e: 687b ldr r3, [r7, #4] + 8003610: 681b ldr r3, [r3, #0] + 8003612: f002 0208 and.w r2, r2, #8 + 8003616: 615a str r2, [r3, #20] } /* Handle Global OUT NAK effective Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_BOUTNAKEFF)) - 80035c4: 687b ldr r3, [r7, #4] - 80035c6: 681b ldr r3, [r3, #0] - 80035c8: 4618 mov r0, r3 - 80035ca: f004 fe99 bl 8008300 - 80035ce: 4603 mov r3, r0 - 80035d0: f003 0380 and.w r3, r3, #128 @ 0x80 - 80035d4: 2b80 cmp r3, #128 @ 0x80 - 80035d6: d123 bne.n 8003620 + 8003618: 687b ldr r3, [r7, #4] + 800361a: 681b ldr r3, [r3, #0] + 800361c: 4618 mov r0, r3 + 800361e: f004 fe99 bl 8008354 + 8003622: 4603 mov r3, r0 + 8003624: f003 0380 and.w r3, r3, #128 @ 0x80 + 8003628: 2b80 cmp r3, #128 @ 0x80 + 800362a: d123 bne.n 8003674 { USBx->GINTMSK &= ~USB_OTG_GINTMSK_GONAKEFFM; - 80035d8: 6a3b ldr r3, [r7, #32] - 80035da: 699b ldr r3, [r3, #24] - 80035dc: f023 0280 bic.w r2, r3, #128 @ 0x80 - 80035e0: 6a3b ldr r3, [r7, #32] - 80035e2: 619a str r2, [r3, #24] + 800362c: 6a3b ldr r3, [r7, #32] + 800362e: 699b ldr r3, [r3, #24] + 8003630: f023 0280 bic.w r2, r3, #128 @ 0x80 + 8003634: 6a3b ldr r3, [r7, #32] + 8003636: 619a str r2, [r3, #24] for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 80035e4: 2301 movs r3, #1 - 80035e6: 627b str r3, [r7, #36] @ 0x24 - 80035e8: e014 b.n 8003614 + 8003638: 2301 movs r3, #1 + 800363a: 627b str r3, [r7, #36] @ 0x24 + 800363c: e014 b.n 8003668 { if (hpcd->OUT_ep[epnum].is_iso_incomplete == 1U) - 80035ea: 6879 ldr r1, [r7, #4] - 80035ec: 6a7a ldr r2, [r7, #36] @ 0x24 - 80035ee: 4613 mov r3, r2 - 80035f0: 00db lsls r3, r3, #3 - 80035f2: 4413 add r3, r2 - 80035f4: 009b lsls r3, r3, #2 - 80035f6: 440b add r3, r1 - 80035f8: f203 2357 addw r3, r3, #599 @ 0x257 - 80035fc: 781b ldrb r3, [r3, #0] - 80035fe: 2b01 cmp r3, #1 - 8003600: d105 bne.n 800360e + 800363e: 6879 ldr r1, [r7, #4] + 8003640: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003642: 4613 mov r3, r2 + 8003644: 00db lsls r3, r3, #3 + 8003646: 4413 add r3, r2 + 8003648: 009b lsls r3, r3, #2 + 800364a: 440b add r3, r1 + 800364c: f203 2357 addw r3, r3, #599 @ 0x257 + 8003650: 781b ldrb r3, [r3, #0] + 8003652: 2b01 cmp r3, #1 + 8003654: d105 bne.n 8003662 { /* Abort current transaction and disable the EP */ (void)HAL_PCD_EP_Abort(hpcd, (uint8_t)epnum); - 8003602: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003604: b2db uxtb r3, r3 - 8003606: 4619 mov r1, r3 - 8003608: 6878 ldr r0, [r7, #4] - 800360a: f000 faf2 bl 8003bf2 + 8003656: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003658: b2db uxtb r3, r3 + 800365a: 4619 mov r1, r3 + 800365c: 6878 ldr r0, [r7, #4] + 800365e: f000 faf2 bl 8003c46 for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 800360e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003610: 3301 adds r3, #1 - 8003612: 627b str r3, [r7, #36] @ 0x24 - 8003614: 687b ldr r3, [r7, #4] - 8003616: 791b ldrb r3, [r3, #4] - 8003618: 461a mov r2, r3 - 800361a: 6a7b ldr r3, [r7, #36] @ 0x24 - 800361c: 4293 cmp r3, r2 - 800361e: d3e4 bcc.n 80035ea + 8003662: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003664: 3301 adds r3, #1 + 8003666: 627b str r3, [r7, #36] @ 0x24 + 8003668: 687b ldr r3, [r7, #4] + 800366a: 791b ldrb r3, [r3, #4] + 800366c: 461a mov r2, r3 + 800366e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003670: 4293 cmp r3, r2 + 8003672: d3e4 bcc.n 800363e } } } /* Handle Incomplete ISO IN Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_IISOIXFR)) - 8003620: 687b ldr r3, [r7, #4] - 8003622: 681b ldr r3, [r3, #0] - 8003624: 4618 mov r0, r3 - 8003626: f004 fe6b bl 8008300 - 800362a: 4603 mov r3, r0 - 800362c: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 8003630: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 - 8003634: d13c bne.n 80036b0 + 8003674: 687b ldr r3, [r7, #4] + 8003676: 681b ldr r3, [r3, #0] + 8003678: 4618 mov r0, r3 + 800367a: f004 fe6b bl 8008354 + 800367e: 4603 mov r3, r0 + 8003680: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 8003684: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 + 8003688: d13c bne.n 8003704 { for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 8003636: 2301 movs r3, #1 - 8003638: 627b str r3, [r7, #36] @ 0x24 - 800363a: e02b b.n 8003694 + 800368a: 2301 movs r3, #1 + 800368c: 627b str r3, [r7, #36] @ 0x24 + 800368e: e02b b.n 80036e8 { RegVal = USBx_INEP(epnum)->DIEPCTL; - 800363c: 6a7b ldr r3, [r7, #36] @ 0x24 - 800363e: 015a lsls r2, r3, #5 - 8003640: 69fb ldr r3, [r7, #28] - 8003642: 4413 add r3, r2 - 8003644: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8003648: 681b ldr r3, [r3, #0] - 800364a: 61bb str r3, [r7, #24] + 8003690: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003692: 015a lsls r2, r3, #5 + 8003694: 69fb ldr r3, [r7, #28] + 8003696: 4413 add r3, r2 + 8003698: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800369c: 681b ldr r3, [r3, #0] + 800369e: 61bb str r3, [r7, #24] if ((hpcd->IN_ep[epnum].type == EP_TYPE_ISOC) && - 800364c: 6879 ldr r1, [r7, #4] - 800364e: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003650: 4613 mov r3, r2 - 8003652: 00db lsls r3, r3, #3 - 8003654: 4413 add r3, r2 - 8003656: 009b lsls r3, r3, #2 - 8003658: 440b add r3, r1 - 800365a: 3318 adds r3, #24 - 800365c: 781b ldrb r3, [r3, #0] - 800365e: 2b01 cmp r3, #1 - 8003660: d115 bne.n 800368e + 80036a0: 6879 ldr r1, [r7, #4] + 80036a2: 6a7a ldr r2, [r7, #36] @ 0x24 + 80036a4: 4613 mov r3, r2 + 80036a6: 00db lsls r3, r3, #3 + 80036a8: 4413 add r3, r2 + 80036aa: 009b lsls r3, r3, #2 + 80036ac: 440b add r3, r1 + 80036ae: 3318 adds r3, #24 + 80036b0: 781b ldrb r3, [r3, #0] + 80036b2: 2b01 cmp r3, #1 + 80036b4: d115 bne.n 80036e2 ((RegVal & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA)) - 8003662: 69bb ldr r3, [r7, #24] + 80036b6: 69bb ldr r3, [r7, #24] if ((hpcd->IN_ep[epnum].type == EP_TYPE_ISOC) && - 8003664: 2b00 cmp r3, #0 - 8003666: da12 bge.n 800368e + 80036b8: 2b00 cmp r3, #0 + 80036ba: da12 bge.n 80036e2 { hpcd->IN_ep[epnum].is_iso_incomplete = 1U; - 8003668: 6879 ldr r1, [r7, #4] - 800366a: 6a7a ldr r2, [r7, #36] @ 0x24 - 800366c: 4613 mov r3, r2 - 800366e: 00db lsls r3, r3, #3 - 8003670: 4413 add r3, r2 - 8003672: 009b lsls r3, r3, #2 - 8003674: 440b add r3, r1 - 8003676: 3317 adds r3, #23 - 8003678: 2201 movs r2, #1 - 800367a: 701a strb r2, [r3, #0] + 80036bc: 6879 ldr r1, [r7, #4] + 80036be: 6a7a ldr r2, [r7, #36] @ 0x24 + 80036c0: 4613 mov r3, r2 + 80036c2: 00db lsls r3, r3, #3 + 80036c4: 4413 add r3, r2 + 80036c6: 009b lsls r3, r3, #2 + 80036c8: 440b add r3, r1 + 80036ca: 3317 adds r3, #23 + 80036cc: 2201 movs r2, #1 + 80036ce: 701a strb r2, [r3, #0] /* Abort current transaction and disable the EP */ (void)HAL_PCD_EP_Abort(hpcd, (uint8_t)(epnum | 0x80U)); - 800367c: 6a7b ldr r3, [r7, #36] @ 0x24 - 800367e: b2db uxtb r3, r3 - 8003680: f063 037f orn r3, r3, #127 @ 0x7f - 8003684: b2db uxtb r3, r3 - 8003686: 4619 mov r1, r3 - 8003688: 6878 ldr r0, [r7, #4] - 800368a: f000 fab2 bl 8003bf2 + 80036d0: 6a7b ldr r3, [r7, #36] @ 0x24 + 80036d2: b2db uxtb r3, r3 + 80036d4: f063 037f orn r3, r3, #127 @ 0x7f + 80036d8: b2db uxtb r3, r3 + 80036da: 4619 mov r1, r3 + 80036dc: 6878 ldr r0, [r7, #4] + 80036de: f000 fab2 bl 8003c46 for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 800368e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003690: 3301 adds r3, #1 - 8003692: 627b str r3, [r7, #36] @ 0x24 - 8003694: 687b ldr r3, [r7, #4] - 8003696: 791b ldrb r3, [r3, #4] - 8003698: 461a mov r2, r3 - 800369a: 6a7b ldr r3, [r7, #36] @ 0x24 - 800369c: 4293 cmp r3, r2 - 800369e: d3cd bcc.n 800363c + 80036e2: 6a7b ldr r3, [r7, #36] @ 0x24 + 80036e4: 3301 adds r3, #1 + 80036e6: 627b str r3, [r7, #36] @ 0x24 + 80036e8: 687b ldr r3, [r7, #4] + 80036ea: 791b ldrb r3, [r3, #4] + 80036ec: 461a mov r2, r3 + 80036ee: 6a7b ldr r3, [r7, #36] @ 0x24 + 80036f0: 4293 cmp r3, r2 + 80036f2: d3cd bcc.n 8003690 } } __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_IISOIXFR); - 80036a0: 687b ldr r3, [r7, #4] - 80036a2: 681b ldr r3, [r3, #0] - 80036a4: 695a ldr r2, [r3, #20] - 80036a6: 687b ldr r3, [r7, #4] - 80036a8: 681b ldr r3, [r3, #0] - 80036aa: f402 1280 and.w r2, r2, #1048576 @ 0x100000 - 80036ae: 615a str r2, [r3, #20] + 80036f4: 687b ldr r3, [r7, #4] + 80036f6: 681b ldr r3, [r3, #0] + 80036f8: 695a ldr r2, [r3, #20] + 80036fa: 687b ldr r3, [r7, #4] + 80036fc: 681b ldr r3, [r3, #0] + 80036fe: f402 1280 and.w r2, r2, #1048576 @ 0x100000 + 8003702: 615a str r2, [r3, #20] } /* Handle Incomplete ISO OUT Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_PXFR_INCOMPISOOUT)) - 80036b0: 687b ldr r3, [r7, #4] - 80036b2: 681b ldr r3, [r3, #0] - 80036b4: 4618 mov r0, r3 - 80036b6: f004 fe23 bl 8008300 - 80036ba: 4603 mov r3, r0 - 80036bc: f403 1300 and.w r3, r3, #2097152 @ 0x200000 - 80036c0: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000 - 80036c4: d156 bne.n 8003774 + 8003704: 687b ldr r3, [r7, #4] + 8003706: 681b ldr r3, [r3, #0] + 8003708: 4618 mov r0, r3 + 800370a: f004 fe23 bl 8008354 + 800370e: 4603 mov r3, r0 + 8003710: f403 1300 and.w r3, r3, #2097152 @ 0x200000 + 8003714: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000 + 8003718: d156 bne.n 80037c8 { for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 80036c6: 2301 movs r3, #1 - 80036c8: 627b str r3, [r7, #36] @ 0x24 - 80036ca: e045 b.n 8003758 + 800371a: 2301 movs r3, #1 + 800371c: 627b str r3, [r7, #36] @ 0x24 + 800371e: e045 b.n 80037ac { RegVal = USBx_OUTEP(epnum)->DOEPCTL; - 80036cc: 6a7b ldr r3, [r7, #36] @ 0x24 - 80036ce: 015a lsls r2, r3, #5 - 80036d0: 69fb ldr r3, [r7, #28] - 80036d2: 4413 add r3, r2 - 80036d4: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80036d8: 681b ldr r3, [r3, #0] - 80036da: 61bb str r3, [r7, #24] + 8003720: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003722: 015a lsls r2, r3, #5 + 8003724: 69fb ldr r3, [r7, #28] + 8003726: 4413 add r3, r2 + 8003728: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800372c: 681b ldr r3, [r3, #0] + 800372e: 61bb str r3, [r7, #24] if ((hpcd->OUT_ep[epnum].type == EP_TYPE_ISOC) && - 80036dc: 6879 ldr r1, [r7, #4] - 80036de: 6a7a ldr r2, [r7, #36] @ 0x24 - 80036e0: 4613 mov r3, r2 - 80036e2: 00db lsls r3, r3, #3 - 80036e4: 4413 add r3, r2 - 80036e6: 009b lsls r3, r3, #2 - 80036e8: 440b add r3, r1 - 80036ea: f503 7316 add.w r3, r3, #600 @ 0x258 - 80036ee: 781b ldrb r3, [r3, #0] - 80036f0: 2b01 cmp r3, #1 - 80036f2: d12e bne.n 8003752 + 8003730: 6879 ldr r1, [r7, #4] + 8003732: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003734: 4613 mov r3, r2 + 8003736: 00db lsls r3, r3, #3 + 8003738: 4413 add r3, r2 + 800373a: 009b lsls r3, r3, #2 + 800373c: 440b add r3, r1 + 800373e: f503 7316 add.w r3, r3, #600 @ 0x258 + 8003742: 781b ldrb r3, [r3, #0] + 8003744: 2b01 cmp r3, #1 + 8003746: d12e bne.n 80037a6 ((RegVal & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) && - 80036f4: 69bb ldr r3, [r7, #24] + 8003748: 69bb ldr r3, [r7, #24] if ((hpcd->OUT_ep[epnum].type == EP_TYPE_ISOC) && - 80036f6: 2b00 cmp r3, #0 - 80036f8: da2b bge.n 8003752 + 800374a: 2b00 cmp r3, #0 + 800374c: da2b bge.n 80037a6 (((RegVal & (0x1U << 16)) >> 16U) == (hpcd->FrameNumber & 0x1U))) - 80036fa: 69bb ldr r3, [r7, #24] - 80036fc: 0c1a lsrs r2, r3, #16 - 80036fe: 687b ldr r3, [r7, #4] - 8003700: f8d3 34d4 ldr.w r3, [r3, #1236] @ 0x4d4 - 8003704: 4053 eors r3, r2 - 8003706: f003 0301 and.w r3, r3, #1 + 800374e: 69bb ldr r3, [r7, #24] + 8003750: 0c1a lsrs r2, r3, #16 + 8003752: 687b ldr r3, [r7, #4] + 8003754: f8d3 34d4 ldr.w r3, [r3, #1236] @ 0x4d4 + 8003758: 4053 eors r3, r2 + 800375a: f003 0301 and.w r3, r3, #1 ((RegVal & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) && - 800370a: 2b00 cmp r3, #0 - 800370c: d121 bne.n 8003752 + 800375e: 2b00 cmp r3, #0 + 8003760: d121 bne.n 80037a6 { hpcd->OUT_ep[epnum].is_iso_incomplete = 1U; - 800370e: 6879 ldr r1, [r7, #4] - 8003710: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003712: 4613 mov r3, r2 - 8003714: 00db lsls r3, r3, #3 - 8003716: 4413 add r3, r2 - 8003718: 009b lsls r3, r3, #2 - 800371a: 440b add r3, r1 - 800371c: f203 2357 addw r3, r3, #599 @ 0x257 - 8003720: 2201 movs r2, #1 - 8003722: 701a strb r2, [r3, #0] + 8003762: 6879 ldr r1, [r7, #4] + 8003764: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003766: 4613 mov r3, r2 + 8003768: 00db lsls r3, r3, #3 + 800376a: 4413 add r3, r2 + 800376c: 009b lsls r3, r3, #2 + 800376e: 440b add r3, r1 + 8003770: f203 2357 addw r3, r3, #599 @ 0x257 + 8003774: 2201 movs r2, #1 + 8003776: 701a strb r2, [r3, #0] USBx->GINTMSK |= USB_OTG_GINTMSK_GONAKEFFM; - 8003724: 6a3b ldr r3, [r7, #32] - 8003726: 699b ldr r3, [r3, #24] - 8003728: f043 0280 orr.w r2, r3, #128 @ 0x80 - 800372c: 6a3b ldr r3, [r7, #32] - 800372e: 619a str r2, [r3, #24] + 8003778: 6a3b ldr r3, [r7, #32] + 800377a: 699b ldr r3, [r3, #24] + 800377c: f043 0280 orr.w r2, r3, #128 @ 0x80 + 8003780: 6a3b ldr r3, [r7, #32] + 8003782: 619a str r2, [r3, #24] if ((USBx->GINTSTS & USB_OTG_GINTSTS_BOUTNAKEFF) == 0U) - 8003730: 6a3b ldr r3, [r7, #32] - 8003732: 695b ldr r3, [r3, #20] - 8003734: f003 0380 and.w r3, r3, #128 @ 0x80 - 8003738: 2b00 cmp r3, #0 - 800373a: d10a bne.n 8003752 + 8003784: 6a3b ldr r3, [r7, #32] + 8003786: 695b ldr r3, [r3, #20] + 8003788: f003 0380 and.w r3, r3, #128 @ 0x80 + 800378c: 2b00 cmp r3, #0 + 800378e: d10a bne.n 80037a6 { USBx_DEVICE->DCTL |= USB_OTG_DCTL_SGONAK; - 800373c: 69fb ldr r3, [r7, #28] - 800373e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003742: 685b ldr r3, [r3, #4] - 8003744: 69fa ldr r2, [r7, #28] - 8003746: f502 6200 add.w r2, r2, #2048 @ 0x800 - 800374a: f443 7300 orr.w r3, r3, #512 @ 0x200 - 800374e: 6053 str r3, [r2, #4] + 8003790: 69fb ldr r3, [r7, #28] + 8003792: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003796: 685b ldr r3, [r3, #4] + 8003798: 69fa ldr r2, [r7, #28] + 800379a: f502 6200 add.w r2, r2, #2048 @ 0x800 + 800379e: f443 7300 orr.w r3, r3, #512 @ 0x200 + 80037a2: 6053 str r3, [r2, #4] break; - 8003750: e008 b.n 8003764 + 80037a4: e008 b.n 80037b8 for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 8003752: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003754: 3301 adds r3, #1 - 8003756: 627b str r3, [r7, #36] @ 0x24 - 8003758: 687b ldr r3, [r7, #4] - 800375a: 791b ldrb r3, [r3, #4] - 800375c: 461a mov r2, r3 - 800375e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003760: 4293 cmp r3, r2 - 8003762: d3b3 bcc.n 80036cc + 80037a6: 6a7b ldr r3, [r7, #36] @ 0x24 + 80037a8: 3301 adds r3, #1 + 80037aa: 627b str r3, [r7, #36] @ 0x24 + 80037ac: 687b ldr r3, [r7, #4] + 80037ae: 791b ldrb r3, [r3, #4] + 80037b0: 461a mov r2, r3 + 80037b2: 6a7b ldr r3, [r7, #36] @ 0x24 + 80037b4: 4293 cmp r3, r2 + 80037b6: d3b3 bcc.n 8003720 } } } __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_PXFR_INCOMPISOOUT); - 8003764: 687b ldr r3, [r7, #4] - 8003766: 681b ldr r3, [r3, #0] - 8003768: 695a ldr r2, [r3, #20] - 800376a: 687b ldr r3, [r7, #4] - 800376c: 681b ldr r3, [r3, #0] - 800376e: f402 1200 and.w r2, r2, #2097152 @ 0x200000 - 8003772: 615a str r2, [r3, #20] + 80037b8: 687b ldr r3, [r7, #4] + 80037ba: 681b ldr r3, [r3, #0] + 80037bc: 695a ldr r2, [r3, #20] + 80037be: 687b ldr r3, [r7, #4] + 80037c0: 681b ldr r3, [r3, #0] + 80037c2: f402 1200 and.w r2, r2, #2097152 @ 0x200000 + 80037c6: 615a str r2, [r3, #20] } /* Handle Connection event Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_SRQINT)) - 8003774: 687b ldr r3, [r7, #4] - 8003776: 681b ldr r3, [r3, #0] - 8003778: 4618 mov r0, r3 - 800377a: f004 fdc1 bl 8008300 - 800377e: 4603 mov r3, r0 - 8003780: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000 - 8003784: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8003788: d10a bne.n 80037a0 + 80037c8: 687b ldr r3, [r7, #4] + 80037ca: 681b ldr r3, [r3, #0] + 80037cc: 4618 mov r0, r3 + 80037ce: f004 fdc1 bl 8008354 + 80037d2: 4603 mov r3, r0 + 80037d4: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000 + 80037d8: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 80037dc: d10a bne.n 80037f4 { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->ConnectCallback(hpcd); #else HAL_PCD_ConnectCallback(hpcd); - 800378a: 6878 ldr r0, [r7, #4] - 800378c: f006 ff1c bl 800a5c8 + 80037de: 6878 ldr r0, [r7, #4] + 80037e0: f006 ff1c bl 800a61c #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_SRQINT); - 8003790: 687b ldr r3, [r7, #4] - 8003792: 681b ldr r3, [r3, #0] - 8003794: 695a ldr r2, [r3, #20] - 8003796: 687b ldr r3, [r7, #4] - 8003798: 681b ldr r3, [r3, #0] - 800379a: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000 - 800379e: 615a str r2, [r3, #20] + 80037e4: 687b ldr r3, [r7, #4] + 80037e6: 681b ldr r3, [r3, #0] + 80037e8: 695a ldr r2, [r3, #20] + 80037ea: 687b ldr r3, [r7, #4] + 80037ec: 681b ldr r3, [r3, #0] + 80037ee: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000 + 80037f2: 615a str r2, [r3, #20] } /* Handle Disconnection event Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_OTGINT)) - 80037a0: 687b ldr r3, [r7, #4] - 80037a2: 681b ldr r3, [r3, #0] - 80037a4: 4618 mov r0, r3 - 80037a6: f004 fdab bl 8008300 - 80037aa: 4603 mov r3, r0 - 80037ac: f003 0304 and.w r3, r3, #4 - 80037b0: 2b04 cmp r3, #4 - 80037b2: d115 bne.n 80037e0 + 80037f4: 687b ldr r3, [r7, #4] + 80037f6: 681b ldr r3, [r3, #0] + 80037f8: 4618 mov r0, r3 + 80037fa: f004 fdab bl 8008354 + 80037fe: 4603 mov r3, r0 + 8003800: f003 0304 and.w r3, r3, #4 + 8003804: 2b04 cmp r3, #4 + 8003806: d115 bne.n 8003834 { RegVal = hpcd->Instance->GOTGINT; - 80037b4: 687b ldr r3, [r7, #4] - 80037b6: 681b ldr r3, [r3, #0] - 80037b8: 685b ldr r3, [r3, #4] - 80037ba: 61bb str r3, [r7, #24] + 8003808: 687b ldr r3, [r7, #4] + 800380a: 681b ldr r3, [r3, #0] + 800380c: 685b ldr r3, [r3, #4] + 800380e: 61bb str r3, [r7, #24] if ((RegVal & USB_OTG_GOTGINT_SEDET) == USB_OTG_GOTGINT_SEDET) - 80037bc: 69bb ldr r3, [r7, #24] - 80037be: f003 0304 and.w r3, r3, #4 - 80037c2: 2b00 cmp r3, #0 - 80037c4: d002 beq.n 80037cc + 8003810: 69bb ldr r3, [r7, #24] + 8003812: f003 0304 and.w r3, r3, #4 + 8003816: 2b00 cmp r3, #0 + 8003818: d002 beq.n 8003820 { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->DisconnectCallback(hpcd); #else HAL_PCD_DisconnectCallback(hpcd); - 80037c6: 6878 ldr r0, [r7, #4] - 80037c8: f006 ff0c bl 800a5e4 + 800381a: 6878 ldr r0, [r7, #4] + 800381c: f006 ff0c bl 800a638 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } hpcd->Instance->GOTGINT |= RegVal; - 80037cc: 687b ldr r3, [r7, #4] - 80037ce: 681b ldr r3, [r3, #0] - 80037d0: 6859 ldr r1, [r3, #4] - 80037d2: 687b ldr r3, [r7, #4] - 80037d4: 681b ldr r3, [r3, #0] - 80037d6: 69ba ldr r2, [r7, #24] - 80037d8: 430a orrs r2, r1 - 80037da: 605a str r2, [r3, #4] - 80037dc: e000 b.n 80037e0 + 8003820: 687b ldr r3, [r7, #4] + 8003822: 681b ldr r3, [r3, #0] + 8003824: 6859 ldr r1, [r3, #4] + 8003826: 687b ldr r3, [r7, #4] + 8003828: 681b ldr r3, [r3, #0] + 800382a: 69ba ldr r2, [r7, #24] + 800382c: 430a orrs r2, r1 + 800382e: 605a str r2, [r3, #4] + 8003830: e000 b.n 8003834 return; - 80037de: bf00 nop + 8003832: bf00 nop } } } - 80037e0: 3734 adds r7, #52 @ 0x34 - 80037e2: 46bd mov sp, r7 - 80037e4: bd90 pop {r4, r7, pc} + 8003834: 3734 adds r7, #52 @ 0x34 + 8003836: 46bd mov sp, r7 + 8003838: bd90 pop {r4, r7, pc} -080037e6 : +0800383a : * @param hpcd PCD handle * @param address new device address * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_SetAddress(PCD_HandleTypeDef *hpcd, uint8_t address) { - 80037e6: b580 push {r7, lr} - 80037e8: b082 sub sp, #8 - 80037ea: af00 add r7, sp, #0 - 80037ec: 6078 str r0, [r7, #4] - 80037ee: 460b mov r3, r1 - 80037f0: 70fb strb r3, [r7, #3] + 800383a: b580 push {r7, lr} + 800383c: b082 sub sp, #8 + 800383e: af00 add r7, sp, #0 + 8003840: 6078 str r0, [r7, #4] + 8003842: 460b mov r3, r1 + 8003844: 70fb strb r3, [r7, #3] __HAL_LOCK(hpcd); - 80037f2: 687b ldr r3, [r7, #4] - 80037f4: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 80037f8: 2b01 cmp r3, #1 - 80037fa: d101 bne.n 8003800 - 80037fc: 2302 movs r3, #2 - 80037fe: e012 b.n 8003826 - 8003800: 687b ldr r3, [r7, #4] - 8003802: 2201 movs r2, #1 - 8003804: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003846: 687b ldr r3, [r7, #4] + 8003848: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 800384c: 2b01 cmp r3, #1 + 800384e: d101 bne.n 8003854 + 8003850: 2302 movs r3, #2 + 8003852: e012 b.n 800387a + 8003854: 687b ldr r3, [r7, #4] + 8003856: 2201 movs r2, #1 + 8003858: f883 2494 strb.w r2, [r3, #1172] @ 0x494 hpcd->USB_Address = address; - 8003808: 687b ldr r3, [r7, #4] - 800380a: 78fa ldrb r2, [r7, #3] - 800380c: 745a strb r2, [r3, #17] + 800385c: 687b ldr r3, [r7, #4] + 800385e: 78fa ldrb r2, [r7, #3] + 8003860: 745a strb r2, [r3, #17] (void)USB_SetDevAddress(hpcd->Instance, address); - 800380e: 687b ldr r3, [r7, #4] - 8003810: 681b ldr r3, [r3, #0] - 8003812: 78fa ldrb r2, [r7, #3] - 8003814: 4611 mov r1, r2 - 8003816: 4618 mov r0, r3 - 8003818: f004 fd0a bl 8008230 + 8003862: 687b ldr r3, [r7, #4] + 8003864: 681b ldr r3, [r3, #0] + 8003866: 78fa ldrb r2, [r7, #3] + 8003868: 4611 mov r1, r2 + 800386a: 4618 mov r0, r3 + 800386c: f004 fd0a bl 8008284 __HAL_UNLOCK(hpcd); - 800381c: 687b ldr r3, [r7, #4] - 800381e: 2200 movs r2, #0 - 8003820: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003870: 687b ldr r3, [r7, #4] + 8003872: 2200 movs r2, #0 + 8003874: f883 2494 strb.w r2, [r3, #1172] @ 0x494 return HAL_OK; - 8003824: 2300 movs r3, #0 + 8003878: 2300 movs r3, #0 } - 8003826: 4618 mov r0, r3 - 8003828: 3708 adds r7, #8 - 800382a: 46bd mov sp, r7 - 800382c: bd80 pop {r7, pc} + 800387a: 4618 mov r0, r3 + 800387c: 3708 adds r7, #8 + 800387e: 46bd mov sp, r7 + 8003880: bd80 pop {r7, pc} -0800382e : +08003882 : * @param ep_type endpoint type * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_Open(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint16_t ep_mps, uint8_t ep_type) { - 800382e: b580 push {r7, lr} - 8003830: b084 sub sp, #16 - 8003832: af00 add r7, sp, #0 - 8003834: 6078 str r0, [r7, #4] - 8003836: 4608 mov r0, r1 - 8003838: 4611 mov r1, r2 - 800383a: 461a mov r2, r3 - 800383c: 4603 mov r3, r0 - 800383e: 70fb strb r3, [r7, #3] - 8003840: 460b mov r3, r1 - 8003842: 803b strh r3, [r7, #0] - 8003844: 4613 mov r3, r2 - 8003846: 70bb strb r3, [r7, #2] + 8003882: b580 push {r7, lr} + 8003884: b084 sub sp, #16 + 8003886: af00 add r7, sp, #0 + 8003888: 6078 str r0, [r7, #4] + 800388a: 4608 mov r0, r1 + 800388c: 4611 mov r1, r2 + 800388e: 461a mov r2, r3 + 8003890: 4603 mov r3, r0 + 8003892: 70fb strb r3, [r7, #3] + 8003894: 460b mov r3, r1 + 8003896: 803b strh r3, [r7, #0] + 8003898: 4613 mov r3, r2 + 800389a: 70bb strb r3, [r7, #2] HAL_StatusTypeDef ret = HAL_OK; - 8003848: 2300 movs r3, #0 - 800384a: 72fb strb r3, [r7, #11] + 800389c: 2300 movs r3, #0 + 800389e: 72fb strb r3, [r7, #11] PCD_EPTypeDef *ep; if ((ep_addr & 0x80U) == 0x80U) - 800384c: f997 3003 ldrsb.w r3, [r7, #3] - 8003850: 2b00 cmp r3, #0 - 8003852: da0f bge.n 8003874 + 80038a0: f997 3003 ldrsb.w r3, [r7, #3] + 80038a4: 2b00 cmp r3, #0 + 80038a6: da0f bge.n 80038c8 { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003854: 78fb ldrb r3, [r7, #3] - 8003856: f003 020f and.w r2, r3, #15 - 800385a: 4613 mov r3, r2 - 800385c: 00db lsls r3, r3, #3 - 800385e: 4413 add r3, r2 - 8003860: 009b lsls r3, r3, #2 - 8003862: 3310 adds r3, #16 - 8003864: 687a ldr r2, [r7, #4] - 8003866: 4413 add r3, r2 - 8003868: 3304 adds r3, #4 - 800386a: 60fb str r3, [r7, #12] + 80038a8: 78fb ldrb r3, [r7, #3] + 80038aa: f003 020f and.w r2, r3, #15 + 80038ae: 4613 mov r3, r2 + 80038b0: 00db lsls r3, r3, #3 + 80038b2: 4413 add r3, r2 + 80038b4: 009b lsls r3, r3, #2 + 80038b6: 3310 adds r3, #16 + 80038b8: 687a ldr r2, [r7, #4] + 80038ba: 4413 add r3, r2 + 80038bc: 3304 adds r3, #4 + 80038be: 60fb str r3, [r7, #12] ep->is_in = 1U; - 800386c: 68fb ldr r3, [r7, #12] - 800386e: 2201 movs r2, #1 - 8003870: 705a strb r2, [r3, #1] - 8003872: e00f b.n 8003894 + 80038c0: 68fb ldr r3, [r7, #12] + 80038c2: 2201 movs r2, #1 + 80038c4: 705a strb r2, [r3, #1] + 80038c6: e00f b.n 80038e8 } else { ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 8003874: 78fb ldrb r3, [r7, #3] - 8003876: f003 020f and.w r2, r3, #15 - 800387a: 4613 mov r3, r2 - 800387c: 00db lsls r3, r3, #3 - 800387e: 4413 add r3, r2 - 8003880: 009b lsls r3, r3, #2 - 8003882: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003886: 687a ldr r2, [r7, #4] - 8003888: 4413 add r3, r2 - 800388a: 3304 adds r3, #4 - 800388c: 60fb str r3, [r7, #12] + 80038c8: 78fb ldrb r3, [r7, #3] + 80038ca: f003 020f and.w r2, r3, #15 + 80038ce: 4613 mov r3, r2 + 80038d0: 00db lsls r3, r3, #3 + 80038d2: 4413 add r3, r2 + 80038d4: 009b lsls r3, r3, #2 + 80038d6: f503 7314 add.w r3, r3, #592 @ 0x250 + 80038da: 687a ldr r2, [r7, #4] + 80038dc: 4413 add r3, r2 + 80038de: 3304 adds r3, #4 + 80038e0: 60fb str r3, [r7, #12] ep->is_in = 0U; - 800388e: 68fb ldr r3, [r7, #12] - 8003890: 2200 movs r2, #0 - 8003892: 705a strb r2, [r3, #1] + 80038e2: 68fb ldr r3, [r7, #12] + 80038e4: 2200 movs r2, #0 + 80038e6: 705a strb r2, [r3, #1] } ep->num = ep_addr & EP_ADDR_MSK; - 8003894: 78fb ldrb r3, [r7, #3] - 8003896: f003 030f and.w r3, r3, #15 - 800389a: b2da uxtb r2, r3 - 800389c: 68fb ldr r3, [r7, #12] - 800389e: 701a strb r2, [r3, #0] + 80038e8: 78fb ldrb r3, [r7, #3] + 80038ea: f003 030f and.w r3, r3, #15 + 80038ee: b2da uxtb r2, r3 + 80038f0: 68fb ldr r3, [r7, #12] + 80038f2: 701a strb r2, [r3, #0] ep->maxpacket = (uint32_t)ep_mps & 0x7FFU; - 80038a0: 883b ldrh r3, [r7, #0] - 80038a2: f3c3 020a ubfx r2, r3, #0, #11 - 80038a6: 68fb ldr r3, [r7, #12] - 80038a8: 609a str r2, [r3, #8] + 80038f4: 883b ldrh r3, [r7, #0] + 80038f6: f3c3 020a ubfx r2, r3, #0, #11 + 80038fa: 68fb ldr r3, [r7, #12] + 80038fc: 609a str r2, [r3, #8] ep->type = ep_type; - 80038aa: 68fb ldr r3, [r7, #12] - 80038ac: 78ba ldrb r2, [r7, #2] - 80038ae: 711a strb r2, [r3, #4] + 80038fe: 68fb ldr r3, [r7, #12] + 8003900: 78ba ldrb r2, [r7, #2] + 8003902: 711a strb r2, [r3, #4] if (ep->is_in != 0U) - 80038b0: 68fb ldr r3, [r7, #12] - 80038b2: 785b ldrb r3, [r3, #1] - 80038b4: 2b00 cmp r3, #0 - 80038b6: d004 beq.n 80038c2 + 8003904: 68fb ldr r3, [r7, #12] + 8003906: 785b ldrb r3, [r3, #1] + 8003908: 2b00 cmp r3, #0 + 800390a: d004 beq.n 8003916 { /* Assign a Tx FIFO */ ep->tx_fifo_num = ep->num; - 80038b8: 68fb ldr r3, [r7, #12] - 80038ba: 781b ldrb r3, [r3, #0] - 80038bc: 461a mov r2, r3 - 80038be: 68fb ldr r3, [r7, #12] - 80038c0: 835a strh r2, [r3, #26] + 800390c: 68fb ldr r3, [r7, #12] + 800390e: 781b ldrb r3, [r3, #0] + 8003910: 461a mov r2, r3 + 8003912: 68fb ldr r3, [r7, #12] + 8003914: 835a strh r2, [r3, #26] } /* Set initial data PID. */ if (ep_type == EP_TYPE_BULK) - 80038c2: 78bb ldrb r3, [r7, #2] - 80038c4: 2b02 cmp r3, #2 - 80038c6: d102 bne.n 80038ce + 8003916: 78bb ldrb r3, [r7, #2] + 8003918: 2b02 cmp r3, #2 + 800391a: d102 bne.n 8003922 { ep->data_pid_start = 0U; - 80038c8: 68fb ldr r3, [r7, #12] - 80038ca: 2200 movs r2, #0 - 80038cc: 715a strb r2, [r3, #5] + 800391c: 68fb ldr r3, [r7, #12] + 800391e: 2200 movs r2, #0 + 8003920: 715a strb r2, [r3, #5] } __HAL_LOCK(hpcd); - 80038ce: 687b ldr r3, [r7, #4] - 80038d0: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 80038d4: 2b01 cmp r3, #1 - 80038d6: d101 bne.n 80038dc - 80038d8: 2302 movs r3, #2 - 80038da: e00e b.n 80038fa - 80038dc: 687b ldr r3, [r7, #4] - 80038de: 2201 movs r2, #1 - 80038e0: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003922: 687b ldr r3, [r7, #4] + 8003924: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8003928: 2b01 cmp r3, #1 + 800392a: d101 bne.n 8003930 + 800392c: 2302 movs r3, #2 + 800392e: e00e b.n 800394e + 8003930: 687b ldr r3, [r7, #4] + 8003932: 2201 movs r2, #1 + 8003934: f883 2494 strb.w r2, [r3, #1172] @ 0x494 (void)USB_ActivateEndpoint(hpcd->Instance, ep); - 80038e4: 687b ldr r3, [r7, #4] - 80038e6: 681b ldr r3, [r3, #0] - 80038e8: 68f9 ldr r1, [r7, #12] - 80038ea: 4618 mov r0, r3 - 80038ec: f003 fe8a bl 8007604 + 8003938: 687b ldr r3, [r7, #4] + 800393a: 681b ldr r3, [r3, #0] + 800393c: 68f9 ldr r1, [r7, #12] + 800393e: 4618 mov r0, r3 + 8003940: f003 fe8a bl 8007658 __HAL_UNLOCK(hpcd); - 80038f0: 687b ldr r3, [r7, #4] - 80038f2: 2200 movs r2, #0 - 80038f4: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003944: 687b ldr r3, [r7, #4] + 8003946: 2200 movs r2, #0 + 8003948: f883 2494 strb.w r2, [r3, #1172] @ 0x494 return ret; - 80038f8: 7afb ldrb r3, [r7, #11] + 800394c: 7afb ldrb r3, [r7, #11] } - 80038fa: 4618 mov r0, r3 - 80038fc: 3710 adds r7, #16 - 80038fe: 46bd mov sp, r7 - 8003900: bd80 pop {r7, pc} + 800394e: 4618 mov r0, r3 + 8003950: 3710 adds r7, #16 + 8003952: 46bd mov sp, r7 + 8003954: bd80 pop {r7, pc} -08003902 : +08003956 : * @param hpcd PCD handle * @param ep_addr endpoint address * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_Close(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) { - 8003902: b580 push {r7, lr} - 8003904: b084 sub sp, #16 - 8003906: af00 add r7, sp, #0 - 8003908: 6078 str r0, [r7, #4] - 800390a: 460b mov r3, r1 - 800390c: 70fb strb r3, [r7, #3] + 8003956: b580 push {r7, lr} + 8003958: b084 sub sp, #16 + 800395a: af00 add r7, sp, #0 + 800395c: 6078 str r0, [r7, #4] + 800395e: 460b mov r3, r1 + 8003960: 70fb strb r3, [r7, #3] PCD_EPTypeDef *ep; if ((ep_addr & 0x80U) == 0x80U) - 800390e: f997 3003 ldrsb.w r3, [r7, #3] - 8003912: 2b00 cmp r3, #0 - 8003914: da0f bge.n 8003936 + 8003962: f997 3003 ldrsb.w r3, [r7, #3] + 8003966: 2b00 cmp r3, #0 + 8003968: da0f bge.n 800398a { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003916: 78fb ldrb r3, [r7, #3] - 8003918: f003 020f and.w r2, r3, #15 - 800391c: 4613 mov r3, r2 - 800391e: 00db lsls r3, r3, #3 - 8003920: 4413 add r3, r2 - 8003922: 009b lsls r3, r3, #2 - 8003924: 3310 adds r3, #16 - 8003926: 687a ldr r2, [r7, #4] - 8003928: 4413 add r3, r2 - 800392a: 3304 adds r3, #4 - 800392c: 60fb str r3, [r7, #12] + 800396a: 78fb ldrb r3, [r7, #3] + 800396c: f003 020f and.w r2, r3, #15 + 8003970: 4613 mov r3, r2 + 8003972: 00db lsls r3, r3, #3 + 8003974: 4413 add r3, r2 + 8003976: 009b lsls r3, r3, #2 + 8003978: 3310 adds r3, #16 + 800397a: 687a ldr r2, [r7, #4] + 800397c: 4413 add r3, r2 + 800397e: 3304 adds r3, #4 + 8003980: 60fb str r3, [r7, #12] ep->is_in = 1U; - 800392e: 68fb ldr r3, [r7, #12] - 8003930: 2201 movs r2, #1 - 8003932: 705a strb r2, [r3, #1] - 8003934: e00f b.n 8003956 + 8003982: 68fb ldr r3, [r7, #12] + 8003984: 2201 movs r2, #1 + 8003986: 705a strb r2, [r3, #1] + 8003988: e00f b.n 80039aa } else { ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 8003936: 78fb ldrb r3, [r7, #3] - 8003938: f003 020f and.w r2, r3, #15 - 800393c: 4613 mov r3, r2 - 800393e: 00db lsls r3, r3, #3 - 8003940: 4413 add r3, r2 - 8003942: 009b lsls r3, r3, #2 - 8003944: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003948: 687a ldr r2, [r7, #4] - 800394a: 4413 add r3, r2 - 800394c: 3304 adds r3, #4 - 800394e: 60fb str r3, [r7, #12] + 800398a: 78fb ldrb r3, [r7, #3] + 800398c: f003 020f and.w r2, r3, #15 + 8003990: 4613 mov r3, r2 + 8003992: 00db lsls r3, r3, #3 + 8003994: 4413 add r3, r2 + 8003996: 009b lsls r3, r3, #2 + 8003998: f503 7314 add.w r3, r3, #592 @ 0x250 + 800399c: 687a ldr r2, [r7, #4] + 800399e: 4413 add r3, r2 + 80039a0: 3304 adds r3, #4 + 80039a2: 60fb str r3, [r7, #12] ep->is_in = 0U; - 8003950: 68fb ldr r3, [r7, #12] - 8003952: 2200 movs r2, #0 - 8003954: 705a strb r2, [r3, #1] + 80039a4: 68fb ldr r3, [r7, #12] + 80039a6: 2200 movs r2, #0 + 80039a8: 705a strb r2, [r3, #1] } ep->num = ep_addr & EP_ADDR_MSK; - 8003956: 78fb ldrb r3, [r7, #3] - 8003958: f003 030f and.w r3, r3, #15 - 800395c: b2da uxtb r2, r3 - 800395e: 68fb ldr r3, [r7, #12] - 8003960: 701a strb r2, [r3, #0] + 80039aa: 78fb ldrb r3, [r7, #3] + 80039ac: f003 030f and.w r3, r3, #15 + 80039b0: b2da uxtb r2, r3 + 80039b2: 68fb ldr r3, [r7, #12] + 80039b4: 701a strb r2, [r3, #0] __HAL_LOCK(hpcd); - 8003962: 687b ldr r3, [r7, #4] - 8003964: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003968: 2b01 cmp r3, #1 - 800396a: d101 bne.n 8003970 - 800396c: 2302 movs r3, #2 - 800396e: e00e b.n 800398e - 8003970: 687b ldr r3, [r7, #4] - 8003972: 2201 movs r2, #1 - 8003974: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 80039b6: 687b ldr r3, [r7, #4] + 80039b8: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 80039bc: 2b01 cmp r3, #1 + 80039be: d101 bne.n 80039c4 + 80039c0: 2302 movs r3, #2 + 80039c2: e00e b.n 80039e2 + 80039c4: 687b ldr r3, [r7, #4] + 80039c6: 2201 movs r2, #1 + 80039c8: f883 2494 strb.w r2, [r3, #1172] @ 0x494 (void)USB_DeactivateEndpoint(hpcd->Instance, ep); - 8003978: 687b ldr r3, [r7, #4] - 800397a: 681b ldr r3, [r3, #0] - 800397c: 68f9 ldr r1, [r7, #12] - 800397e: 4618 mov r0, r3 - 8003980: f003 fec8 bl 8007714 + 80039cc: 687b ldr r3, [r7, #4] + 80039ce: 681b ldr r3, [r3, #0] + 80039d0: 68f9 ldr r1, [r7, #12] + 80039d2: 4618 mov r0, r3 + 80039d4: f003 fec8 bl 8007768 __HAL_UNLOCK(hpcd); - 8003984: 687b ldr r3, [r7, #4] - 8003986: 2200 movs r2, #0 - 8003988: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 80039d8: 687b ldr r3, [r7, #4] + 80039da: 2200 movs r2, #0 + 80039dc: f883 2494 strb.w r2, [r3, #1172] @ 0x494 return HAL_OK; - 800398c: 2300 movs r3, #0 + 80039e0: 2300 movs r3, #0 } - 800398e: 4618 mov r0, r3 - 8003990: 3710 adds r7, #16 - 8003992: 46bd mov sp, r7 - 8003994: bd80 pop {r7, pc} + 80039e2: 4618 mov r0, r3 + 80039e4: 3710 adds r7, #16 + 80039e6: 46bd mov sp, r7 + 80039e8: bd80 pop {r7, pc} -08003996 : +080039ea : * @param pBuf pointer to the reception buffer * @param len amount of data to be received * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_Receive(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len) { - 8003996: b580 push {r7, lr} - 8003998: b086 sub sp, #24 - 800399a: af00 add r7, sp, #0 - 800399c: 60f8 str r0, [r7, #12] - 800399e: 607a str r2, [r7, #4] - 80039a0: 603b str r3, [r7, #0] - 80039a2: 460b mov r3, r1 - 80039a4: 72fb strb r3, [r7, #11] + 80039ea: b580 push {r7, lr} + 80039ec: b086 sub sp, #24 + 80039ee: af00 add r7, sp, #0 + 80039f0: 60f8 str r0, [r7, #12] + 80039f2: 607a str r2, [r7, #4] + 80039f4: 603b str r3, [r7, #0] + 80039f6: 460b mov r3, r1 + 80039f8: 72fb strb r3, [r7, #11] PCD_EPTypeDef *ep; ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 80039a6: 7afb ldrb r3, [r7, #11] - 80039a8: f003 020f and.w r2, r3, #15 - 80039ac: 4613 mov r3, r2 - 80039ae: 00db lsls r3, r3, #3 - 80039b0: 4413 add r3, r2 - 80039b2: 009b lsls r3, r3, #2 - 80039b4: f503 7314 add.w r3, r3, #592 @ 0x250 - 80039b8: 68fa ldr r2, [r7, #12] - 80039ba: 4413 add r3, r2 - 80039bc: 3304 adds r3, #4 - 80039be: 617b str r3, [r7, #20] + 80039fa: 7afb ldrb r3, [r7, #11] + 80039fc: f003 020f and.w r2, r3, #15 + 8003a00: 4613 mov r3, r2 + 8003a02: 00db lsls r3, r3, #3 + 8003a04: 4413 add r3, r2 + 8003a06: 009b lsls r3, r3, #2 + 8003a08: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003a0c: 68fa ldr r2, [r7, #12] + 8003a0e: 4413 add r3, r2 + 8003a10: 3304 adds r3, #4 + 8003a12: 617b str r3, [r7, #20] /*setup and start the Xfer */ ep->xfer_buff = pBuf; - 80039c0: 697b ldr r3, [r7, #20] - 80039c2: 687a ldr r2, [r7, #4] - 80039c4: 60da str r2, [r3, #12] + 8003a14: 697b ldr r3, [r7, #20] + 8003a16: 687a ldr r2, [r7, #4] + 8003a18: 60da str r2, [r3, #12] ep->xfer_len = len; - 80039c6: 697b ldr r3, [r7, #20] - 80039c8: 683a ldr r2, [r7, #0] - 80039ca: 611a str r2, [r3, #16] + 8003a1a: 697b ldr r3, [r7, #20] + 8003a1c: 683a ldr r2, [r7, #0] + 8003a1e: 611a str r2, [r3, #16] ep->xfer_count = 0U; - 80039cc: 697b ldr r3, [r7, #20] - 80039ce: 2200 movs r2, #0 - 80039d0: 615a str r2, [r3, #20] + 8003a20: 697b ldr r3, [r7, #20] + 8003a22: 2200 movs r2, #0 + 8003a24: 615a str r2, [r3, #20] ep->is_in = 0U; - 80039d2: 697b ldr r3, [r7, #20] - 80039d4: 2200 movs r2, #0 - 80039d6: 705a strb r2, [r3, #1] + 8003a26: 697b ldr r3, [r7, #20] + 8003a28: 2200 movs r2, #0 + 8003a2a: 705a strb r2, [r3, #1] ep->num = ep_addr & EP_ADDR_MSK; - 80039d8: 7afb ldrb r3, [r7, #11] - 80039da: f003 030f and.w r3, r3, #15 - 80039de: b2da uxtb r2, r3 - 80039e0: 697b ldr r3, [r7, #20] - 80039e2: 701a strb r2, [r3, #0] + 8003a2c: 7afb ldrb r3, [r7, #11] + 8003a2e: f003 030f and.w r3, r3, #15 + 8003a32: b2da uxtb r2, r3 + 8003a34: 697b ldr r3, [r7, #20] + 8003a36: 701a strb r2, [r3, #0] if (hpcd->Init.dma_enable == 1U) - 80039e4: 68fb ldr r3, [r7, #12] - 80039e6: 799b ldrb r3, [r3, #6] - 80039e8: 2b01 cmp r3, #1 - 80039ea: d102 bne.n 80039f2 + 8003a38: 68fb ldr r3, [r7, #12] + 8003a3a: 799b ldrb r3, [r3, #6] + 8003a3c: 2b01 cmp r3, #1 + 8003a3e: d102 bne.n 8003a46 { ep->dma_addr = (uint32_t)pBuf; - 80039ec: 687a ldr r2, [r7, #4] - 80039ee: 697b ldr r3, [r7, #20] - 80039f0: 61da str r2, [r3, #28] + 8003a40: 687a ldr r2, [r7, #4] + 8003a42: 697b ldr r3, [r7, #20] + 8003a44: 61da str r2, [r3, #28] } (void)USB_EPStartXfer(hpcd->Instance, ep, (uint8_t)hpcd->Init.dma_enable); - 80039f2: 68fb ldr r3, [r7, #12] - 80039f4: 6818 ldr r0, [r3, #0] - 80039f6: 68fb ldr r3, [r7, #12] - 80039f8: 799b ldrb r3, [r3, #6] - 80039fa: 461a mov r2, r3 - 80039fc: 6979 ldr r1, [r7, #20] - 80039fe: f003 ff65 bl 80078cc + 8003a46: 68fb ldr r3, [r7, #12] + 8003a48: 6818 ldr r0, [r3, #0] + 8003a4a: 68fb ldr r3, [r7, #12] + 8003a4c: 799b ldrb r3, [r3, #6] + 8003a4e: 461a mov r2, r3 + 8003a50: 6979 ldr r1, [r7, #20] + 8003a52: f003 ff65 bl 8007920 return HAL_OK; - 8003a02: 2300 movs r3, #0 + 8003a56: 2300 movs r3, #0 } - 8003a04: 4618 mov r0, r3 - 8003a06: 3718 adds r7, #24 - 8003a08: 46bd mov sp, r7 - 8003a0a: bd80 pop {r7, pc} + 8003a58: 4618 mov r0, r3 + 8003a5a: 3718 adds r7, #24 + 8003a5c: 46bd mov sp, r7 + 8003a5e: bd80 pop {r7, pc} -08003a0c : +08003a60 : * @param pBuf pointer to the transmission buffer * @param len amount of data to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_Transmit(PCD_HandleTypeDef *hpcd, uint8_t ep_addr, uint8_t *pBuf, uint32_t len) { - 8003a0c: b580 push {r7, lr} - 8003a0e: b086 sub sp, #24 - 8003a10: af00 add r7, sp, #0 - 8003a12: 60f8 str r0, [r7, #12] - 8003a14: 607a str r2, [r7, #4] - 8003a16: 603b str r3, [r7, #0] - 8003a18: 460b mov r3, r1 - 8003a1a: 72fb strb r3, [r7, #11] + 8003a60: b580 push {r7, lr} + 8003a62: b086 sub sp, #24 + 8003a64: af00 add r7, sp, #0 + 8003a66: 60f8 str r0, [r7, #12] + 8003a68: 607a str r2, [r7, #4] + 8003a6a: 603b str r3, [r7, #0] + 8003a6c: 460b mov r3, r1 + 8003a6e: 72fb strb r3, [r7, #11] PCD_EPTypeDef *ep; ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003a1c: 7afb ldrb r3, [r7, #11] - 8003a1e: f003 020f and.w r2, r3, #15 - 8003a22: 4613 mov r3, r2 - 8003a24: 00db lsls r3, r3, #3 - 8003a26: 4413 add r3, r2 - 8003a28: 009b lsls r3, r3, #2 - 8003a2a: 3310 adds r3, #16 - 8003a2c: 68fa ldr r2, [r7, #12] - 8003a2e: 4413 add r3, r2 - 8003a30: 3304 adds r3, #4 - 8003a32: 617b str r3, [r7, #20] + 8003a70: 7afb ldrb r3, [r7, #11] + 8003a72: f003 020f and.w r2, r3, #15 + 8003a76: 4613 mov r3, r2 + 8003a78: 00db lsls r3, r3, #3 + 8003a7a: 4413 add r3, r2 + 8003a7c: 009b lsls r3, r3, #2 + 8003a7e: 3310 adds r3, #16 + 8003a80: 68fa ldr r2, [r7, #12] + 8003a82: 4413 add r3, r2 + 8003a84: 3304 adds r3, #4 + 8003a86: 617b str r3, [r7, #20] /*setup and start the Xfer */ ep->xfer_buff = pBuf; - 8003a34: 697b ldr r3, [r7, #20] - 8003a36: 687a ldr r2, [r7, #4] - 8003a38: 60da str r2, [r3, #12] + 8003a88: 697b ldr r3, [r7, #20] + 8003a8a: 687a ldr r2, [r7, #4] + 8003a8c: 60da str r2, [r3, #12] ep->xfer_len = len; - 8003a3a: 697b ldr r3, [r7, #20] - 8003a3c: 683a ldr r2, [r7, #0] - 8003a3e: 611a str r2, [r3, #16] + 8003a8e: 697b ldr r3, [r7, #20] + 8003a90: 683a ldr r2, [r7, #0] + 8003a92: 611a str r2, [r3, #16] ep->xfer_count = 0U; - 8003a40: 697b ldr r3, [r7, #20] - 8003a42: 2200 movs r2, #0 - 8003a44: 615a str r2, [r3, #20] + 8003a94: 697b ldr r3, [r7, #20] + 8003a96: 2200 movs r2, #0 + 8003a98: 615a str r2, [r3, #20] ep->is_in = 1U; - 8003a46: 697b ldr r3, [r7, #20] - 8003a48: 2201 movs r2, #1 - 8003a4a: 705a strb r2, [r3, #1] + 8003a9a: 697b ldr r3, [r7, #20] + 8003a9c: 2201 movs r2, #1 + 8003a9e: 705a strb r2, [r3, #1] ep->num = ep_addr & EP_ADDR_MSK; - 8003a4c: 7afb ldrb r3, [r7, #11] - 8003a4e: f003 030f and.w r3, r3, #15 - 8003a52: b2da uxtb r2, r3 - 8003a54: 697b ldr r3, [r7, #20] - 8003a56: 701a strb r2, [r3, #0] + 8003aa0: 7afb ldrb r3, [r7, #11] + 8003aa2: f003 030f and.w r3, r3, #15 + 8003aa6: b2da uxtb r2, r3 + 8003aa8: 697b ldr r3, [r7, #20] + 8003aaa: 701a strb r2, [r3, #0] if (hpcd->Init.dma_enable == 1U) - 8003a58: 68fb ldr r3, [r7, #12] - 8003a5a: 799b ldrb r3, [r3, #6] - 8003a5c: 2b01 cmp r3, #1 - 8003a5e: d102 bne.n 8003a66 + 8003aac: 68fb ldr r3, [r7, #12] + 8003aae: 799b ldrb r3, [r3, #6] + 8003ab0: 2b01 cmp r3, #1 + 8003ab2: d102 bne.n 8003aba { ep->dma_addr = (uint32_t)pBuf; - 8003a60: 687a ldr r2, [r7, #4] - 8003a62: 697b ldr r3, [r7, #20] - 8003a64: 61da str r2, [r3, #28] + 8003ab4: 687a ldr r2, [r7, #4] + 8003ab6: 697b ldr r3, [r7, #20] + 8003ab8: 61da str r2, [r3, #28] } (void)USB_EPStartXfer(hpcd->Instance, ep, (uint8_t)hpcd->Init.dma_enable); - 8003a66: 68fb ldr r3, [r7, #12] - 8003a68: 6818 ldr r0, [r3, #0] - 8003a6a: 68fb ldr r3, [r7, #12] - 8003a6c: 799b ldrb r3, [r3, #6] - 8003a6e: 461a mov r2, r3 - 8003a70: 6979 ldr r1, [r7, #20] - 8003a72: f003 ff2b bl 80078cc + 8003aba: 68fb ldr r3, [r7, #12] + 8003abc: 6818 ldr r0, [r3, #0] + 8003abe: 68fb ldr r3, [r7, #12] + 8003ac0: 799b ldrb r3, [r3, #6] + 8003ac2: 461a mov r2, r3 + 8003ac4: 6979 ldr r1, [r7, #20] + 8003ac6: f003 ff2b bl 8007920 return HAL_OK; - 8003a76: 2300 movs r3, #0 + 8003aca: 2300 movs r3, #0 } - 8003a78: 4618 mov r0, r3 - 8003a7a: 3718 adds r7, #24 - 8003a7c: 46bd mov sp, r7 - 8003a7e: bd80 pop {r7, pc} + 8003acc: 4618 mov r0, r3 + 8003ace: 3718 adds r7, #24 + 8003ad0: 46bd mov sp, r7 + 8003ad2: bd80 pop {r7, pc} -08003a80 : +08003ad4 : * @param hpcd PCD handle * @param ep_addr endpoint address * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_SetStall(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) { - 8003a80: b580 push {r7, lr} - 8003a82: b084 sub sp, #16 - 8003a84: af00 add r7, sp, #0 - 8003a86: 6078 str r0, [r7, #4] - 8003a88: 460b mov r3, r1 - 8003a8a: 70fb strb r3, [r7, #3] + 8003ad4: b580 push {r7, lr} + 8003ad6: b084 sub sp, #16 + 8003ad8: af00 add r7, sp, #0 + 8003ada: 6078 str r0, [r7, #4] + 8003adc: 460b mov r3, r1 + 8003ade: 70fb strb r3, [r7, #3] PCD_EPTypeDef *ep; if (((uint32_t)ep_addr & EP_ADDR_MSK) > hpcd->Init.dev_endpoints) - 8003a8c: 78fb ldrb r3, [r7, #3] - 8003a8e: f003 030f and.w r3, r3, #15 - 8003a92: 687a ldr r2, [r7, #4] - 8003a94: 7912 ldrb r2, [r2, #4] - 8003a96: 4293 cmp r3, r2 - 8003a98: d901 bls.n 8003a9e + 8003ae0: 78fb ldrb r3, [r7, #3] + 8003ae2: f003 030f and.w r3, r3, #15 + 8003ae6: 687a ldr r2, [r7, #4] + 8003ae8: 7912 ldrb r2, [r2, #4] + 8003aea: 4293 cmp r3, r2 + 8003aec: d901 bls.n 8003af2 { return HAL_ERROR; - 8003a9a: 2301 movs r3, #1 - 8003a9c: e04f b.n 8003b3e + 8003aee: 2301 movs r3, #1 + 8003af0: e04f b.n 8003b92 } if ((0x80U & ep_addr) == 0x80U) - 8003a9e: f997 3003 ldrsb.w r3, [r7, #3] - 8003aa2: 2b00 cmp r3, #0 - 8003aa4: da0f bge.n 8003ac6 + 8003af2: f997 3003 ldrsb.w r3, [r7, #3] + 8003af6: 2b00 cmp r3, #0 + 8003af8: da0f bge.n 8003b1a { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003aa6: 78fb ldrb r3, [r7, #3] - 8003aa8: f003 020f and.w r2, r3, #15 - 8003aac: 4613 mov r3, r2 - 8003aae: 00db lsls r3, r3, #3 - 8003ab0: 4413 add r3, r2 - 8003ab2: 009b lsls r3, r3, #2 - 8003ab4: 3310 adds r3, #16 - 8003ab6: 687a ldr r2, [r7, #4] - 8003ab8: 4413 add r3, r2 - 8003aba: 3304 adds r3, #4 - 8003abc: 60fb str r3, [r7, #12] + 8003afa: 78fb ldrb r3, [r7, #3] + 8003afc: f003 020f and.w r2, r3, #15 + 8003b00: 4613 mov r3, r2 + 8003b02: 00db lsls r3, r3, #3 + 8003b04: 4413 add r3, r2 + 8003b06: 009b lsls r3, r3, #2 + 8003b08: 3310 adds r3, #16 + 8003b0a: 687a ldr r2, [r7, #4] + 8003b0c: 4413 add r3, r2 + 8003b0e: 3304 adds r3, #4 + 8003b10: 60fb str r3, [r7, #12] ep->is_in = 1U; - 8003abe: 68fb ldr r3, [r7, #12] - 8003ac0: 2201 movs r2, #1 - 8003ac2: 705a strb r2, [r3, #1] - 8003ac4: e00d b.n 8003ae2 + 8003b12: 68fb ldr r3, [r7, #12] + 8003b14: 2201 movs r2, #1 + 8003b16: 705a strb r2, [r3, #1] + 8003b18: e00d b.n 8003b36 } else { ep = &hpcd->OUT_ep[ep_addr]; - 8003ac6: 78fa ldrb r2, [r7, #3] - 8003ac8: 4613 mov r3, r2 - 8003aca: 00db lsls r3, r3, #3 - 8003acc: 4413 add r3, r2 - 8003ace: 009b lsls r3, r3, #2 - 8003ad0: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003ad4: 687a ldr r2, [r7, #4] - 8003ad6: 4413 add r3, r2 - 8003ad8: 3304 adds r3, #4 - 8003ada: 60fb str r3, [r7, #12] + 8003b1a: 78fa ldrb r2, [r7, #3] + 8003b1c: 4613 mov r3, r2 + 8003b1e: 00db lsls r3, r3, #3 + 8003b20: 4413 add r3, r2 + 8003b22: 009b lsls r3, r3, #2 + 8003b24: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003b28: 687a ldr r2, [r7, #4] + 8003b2a: 4413 add r3, r2 + 8003b2c: 3304 adds r3, #4 + 8003b2e: 60fb str r3, [r7, #12] ep->is_in = 0U; - 8003adc: 68fb ldr r3, [r7, #12] - 8003ade: 2200 movs r2, #0 - 8003ae0: 705a strb r2, [r3, #1] + 8003b30: 68fb ldr r3, [r7, #12] + 8003b32: 2200 movs r2, #0 + 8003b34: 705a strb r2, [r3, #1] } ep->is_stall = 1U; - 8003ae2: 68fb ldr r3, [r7, #12] - 8003ae4: 2201 movs r2, #1 - 8003ae6: 709a strb r2, [r3, #2] + 8003b36: 68fb ldr r3, [r7, #12] + 8003b38: 2201 movs r2, #1 + 8003b3a: 709a strb r2, [r3, #2] ep->num = ep_addr & EP_ADDR_MSK; - 8003ae8: 78fb ldrb r3, [r7, #3] - 8003aea: f003 030f and.w r3, r3, #15 - 8003aee: b2da uxtb r2, r3 - 8003af0: 68fb ldr r3, [r7, #12] - 8003af2: 701a strb r2, [r3, #0] + 8003b3c: 78fb ldrb r3, [r7, #3] + 8003b3e: f003 030f and.w r3, r3, #15 + 8003b42: b2da uxtb r2, r3 + 8003b44: 68fb ldr r3, [r7, #12] + 8003b46: 701a strb r2, [r3, #0] __HAL_LOCK(hpcd); - 8003af4: 687b ldr r3, [r7, #4] - 8003af6: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003afa: 2b01 cmp r3, #1 - 8003afc: d101 bne.n 8003b02 - 8003afe: 2302 movs r3, #2 - 8003b00: e01d b.n 8003b3e - 8003b02: 687b ldr r3, [r7, #4] - 8003b04: 2201 movs r2, #1 - 8003b06: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003b48: 687b ldr r3, [r7, #4] + 8003b4a: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8003b4e: 2b01 cmp r3, #1 + 8003b50: d101 bne.n 8003b56 + 8003b52: 2302 movs r3, #2 + 8003b54: e01d b.n 8003b92 + 8003b56: 687b ldr r3, [r7, #4] + 8003b58: 2201 movs r2, #1 + 8003b5a: f883 2494 strb.w r2, [r3, #1172] @ 0x494 (void)USB_EPSetStall(hpcd->Instance, ep); - 8003b0a: 687b ldr r3, [r7, #4] - 8003b0c: 681b ldr r3, [r3, #0] - 8003b0e: 68f9 ldr r1, [r7, #12] - 8003b10: 4618 mov r0, r3 - 8003b12: f004 fab9 bl 8008088 + 8003b5e: 687b ldr r3, [r7, #4] + 8003b60: 681b ldr r3, [r3, #0] + 8003b62: 68f9 ldr r1, [r7, #12] + 8003b64: 4618 mov r0, r3 + 8003b66: f004 fab9 bl 80080dc if ((ep_addr & EP_ADDR_MSK) == 0U) - 8003b16: 78fb ldrb r3, [r7, #3] - 8003b18: f003 030f and.w r3, r3, #15 - 8003b1c: 2b00 cmp r3, #0 - 8003b1e: d109 bne.n 8003b34 + 8003b6a: 78fb ldrb r3, [r7, #3] + 8003b6c: f003 030f and.w r3, r3, #15 + 8003b70: 2b00 cmp r3, #0 + 8003b72: d109 bne.n 8003b88 { (void)USB_EP0_OutStart(hpcd->Instance, (uint8_t)hpcd->Init.dma_enable, (uint8_t *)hpcd->Setup); - 8003b20: 687b ldr r3, [r7, #4] - 8003b22: 6818 ldr r0, [r3, #0] - 8003b24: 687b ldr r3, [r7, #4] - 8003b26: 7999 ldrb r1, [r3, #6] - 8003b28: 687b ldr r3, [r7, #4] - 8003b2a: f203 439c addw r3, r3, #1180 @ 0x49c - 8003b2e: 461a mov r2, r3 - 8003b30: f004 fcaa bl 8008488 + 8003b74: 687b ldr r3, [r7, #4] + 8003b76: 6818 ldr r0, [r3, #0] + 8003b78: 687b ldr r3, [r7, #4] + 8003b7a: 7999 ldrb r1, [r3, #6] + 8003b7c: 687b ldr r3, [r7, #4] + 8003b7e: f203 439c addw r3, r3, #1180 @ 0x49c + 8003b82: 461a mov r2, r3 + 8003b84: f004 fcaa bl 80084dc } __HAL_UNLOCK(hpcd); - 8003b34: 687b ldr r3, [r7, #4] - 8003b36: 2200 movs r2, #0 - 8003b38: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003b88: 687b ldr r3, [r7, #4] + 8003b8a: 2200 movs r2, #0 + 8003b8c: f883 2494 strb.w r2, [r3, #1172] @ 0x494 return HAL_OK; - 8003b3c: 2300 movs r3, #0 + 8003b90: 2300 movs r3, #0 } - 8003b3e: 4618 mov r0, r3 - 8003b40: 3710 adds r7, #16 - 8003b42: 46bd mov sp, r7 - 8003b44: bd80 pop {r7, pc} + 8003b92: 4618 mov r0, r3 + 8003b94: 3710 adds r7, #16 + 8003b96: 46bd mov sp, r7 + 8003b98: bd80 pop {r7, pc} -08003b46 : +08003b9a : * @param hpcd PCD handle * @param ep_addr endpoint address * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_ClrStall(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) { - 8003b46: b580 push {r7, lr} - 8003b48: b084 sub sp, #16 - 8003b4a: af00 add r7, sp, #0 - 8003b4c: 6078 str r0, [r7, #4] - 8003b4e: 460b mov r3, r1 - 8003b50: 70fb strb r3, [r7, #3] + 8003b9a: b580 push {r7, lr} + 8003b9c: b084 sub sp, #16 + 8003b9e: af00 add r7, sp, #0 + 8003ba0: 6078 str r0, [r7, #4] + 8003ba2: 460b mov r3, r1 + 8003ba4: 70fb strb r3, [r7, #3] PCD_EPTypeDef *ep; if (((uint32_t)ep_addr & 0x0FU) > hpcd->Init.dev_endpoints) - 8003b52: 78fb ldrb r3, [r7, #3] - 8003b54: f003 030f and.w r3, r3, #15 - 8003b58: 687a ldr r2, [r7, #4] - 8003b5a: 7912 ldrb r2, [r2, #4] - 8003b5c: 4293 cmp r3, r2 - 8003b5e: d901 bls.n 8003b64 + 8003ba6: 78fb ldrb r3, [r7, #3] + 8003ba8: f003 030f and.w r3, r3, #15 + 8003bac: 687a ldr r2, [r7, #4] + 8003bae: 7912 ldrb r2, [r2, #4] + 8003bb0: 4293 cmp r3, r2 + 8003bb2: d901 bls.n 8003bb8 { return HAL_ERROR; - 8003b60: 2301 movs r3, #1 - 8003b62: e042 b.n 8003bea + 8003bb4: 2301 movs r3, #1 + 8003bb6: e042 b.n 8003c3e } if ((0x80U & ep_addr) == 0x80U) - 8003b64: f997 3003 ldrsb.w r3, [r7, #3] - 8003b68: 2b00 cmp r3, #0 - 8003b6a: da0f bge.n 8003b8c + 8003bb8: f997 3003 ldrsb.w r3, [r7, #3] + 8003bbc: 2b00 cmp r3, #0 + 8003bbe: da0f bge.n 8003be0 { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003b6c: 78fb ldrb r3, [r7, #3] - 8003b6e: f003 020f and.w r2, r3, #15 - 8003b72: 4613 mov r3, r2 - 8003b74: 00db lsls r3, r3, #3 - 8003b76: 4413 add r3, r2 - 8003b78: 009b lsls r3, r3, #2 - 8003b7a: 3310 adds r3, #16 - 8003b7c: 687a ldr r2, [r7, #4] - 8003b7e: 4413 add r3, r2 - 8003b80: 3304 adds r3, #4 - 8003b82: 60fb str r3, [r7, #12] + 8003bc0: 78fb ldrb r3, [r7, #3] + 8003bc2: f003 020f and.w r2, r3, #15 + 8003bc6: 4613 mov r3, r2 + 8003bc8: 00db lsls r3, r3, #3 + 8003bca: 4413 add r3, r2 + 8003bcc: 009b lsls r3, r3, #2 + 8003bce: 3310 adds r3, #16 + 8003bd0: 687a ldr r2, [r7, #4] + 8003bd2: 4413 add r3, r2 + 8003bd4: 3304 adds r3, #4 + 8003bd6: 60fb str r3, [r7, #12] ep->is_in = 1U; - 8003b84: 68fb ldr r3, [r7, #12] - 8003b86: 2201 movs r2, #1 - 8003b88: 705a strb r2, [r3, #1] - 8003b8a: e00f b.n 8003bac + 8003bd8: 68fb ldr r3, [r7, #12] + 8003bda: 2201 movs r2, #1 + 8003bdc: 705a strb r2, [r3, #1] + 8003bde: e00f b.n 8003c00 } else { ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 8003b8c: 78fb ldrb r3, [r7, #3] - 8003b8e: f003 020f and.w r2, r3, #15 - 8003b92: 4613 mov r3, r2 - 8003b94: 00db lsls r3, r3, #3 - 8003b96: 4413 add r3, r2 - 8003b98: 009b lsls r3, r3, #2 - 8003b9a: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003b9e: 687a ldr r2, [r7, #4] - 8003ba0: 4413 add r3, r2 - 8003ba2: 3304 adds r3, #4 - 8003ba4: 60fb str r3, [r7, #12] + 8003be0: 78fb ldrb r3, [r7, #3] + 8003be2: f003 020f and.w r2, r3, #15 + 8003be6: 4613 mov r3, r2 + 8003be8: 00db lsls r3, r3, #3 + 8003bea: 4413 add r3, r2 + 8003bec: 009b lsls r3, r3, #2 + 8003bee: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003bf2: 687a ldr r2, [r7, #4] + 8003bf4: 4413 add r3, r2 + 8003bf6: 3304 adds r3, #4 + 8003bf8: 60fb str r3, [r7, #12] ep->is_in = 0U; - 8003ba6: 68fb ldr r3, [r7, #12] - 8003ba8: 2200 movs r2, #0 - 8003baa: 705a strb r2, [r3, #1] + 8003bfa: 68fb ldr r3, [r7, #12] + 8003bfc: 2200 movs r2, #0 + 8003bfe: 705a strb r2, [r3, #1] } ep->is_stall = 0U; - 8003bac: 68fb ldr r3, [r7, #12] - 8003bae: 2200 movs r2, #0 - 8003bb0: 709a strb r2, [r3, #2] + 8003c00: 68fb ldr r3, [r7, #12] + 8003c02: 2200 movs r2, #0 + 8003c04: 709a strb r2, [r3, #2] ep->num = ep_addr & EP_ADDR_MSK; - 8003bb2: 78fb ldrb r3, [r7, #3] - 8003bb4: f003 030f and.w r3, r3, #15 - 8003bb8: b2da uxtb r2, r3 - 8003bba: 68fb ldr r3, [r7, #12] - 8003bbc: 701a strb r2, [r3, #0] + 8003c06: 78fb ldrb r3, [r7, #3] + 8003c08: f003 030f and.w r3, r3, #15 + 8003c0c: b2da uxtb r2, r3 + 8003c0e: 68fb ldr r3, [r7, #12] + 8003c10: 701a strb r2, [r3, #0] __HAL_LOCK(hpcd); - 8003bbe: 687b ldr r3, [r7, #4] - 8003bc0: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003bc4: 2b01 cmp r3, #1 - 8003bc6: d101 bne.n 8003bcc - 8003bc8: 2302 movs r3, #2 - 8003bca: e00e b.n 8003bea - 8003bcc: 687b ldr r3, [r7, #4] - 8003bce: 2201 movs r2, #1 - 8003bd0: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003c12: 687b ldr r3, [r7, #4] + 8003c14: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8003c18: 2b01 cmp r3, #1 + 8003c1a: d101 bne.n 8003c20 + 8003c1c: 2302 movs r3, #2 + 8003c1e: e00e b.n 8003c3e + 8003c20: 687b ldr r3, [r7, #4] + 8003c22: 2201 movs r2, #1 + 8003c24: f883 2494 strb.w r2, [r3, #1172] @ 0x494 (void)USB_EPClearStall(hpcd->Instance, ep); - 8003bd4: 687b ldr r3, [r7, #4] - 8003bd6: 681b ldr r3, [r3, #0] - 8003bd8: 68f9 ldr r1, [r7, #12] - 8003bda: 4618 mov r0, r3 - 8003bdc: f004 fac2 bl 8008164 + 8003c28: 687b ldr r3, [r7, #4] + 8003c2a: 681b ldr r3, [r3, #0] + 8003c2c: 68f9 ldr r1, [r7, #12] + 8003c2e: 4618 mov r0, r3 + 8003c30: f004 fac2 bl 80081b8 __HAL_UNLOCK(hpcd); - 8003be0: 687b ldr r3, [r7, #4] - 8003be2: 2200 movs r2, #0 - 8003be4: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003c34: 687b ldr r3, [r7, #4] + 8003c36: 2200 movs r2, #0 + 8003c38: f883 2494 strb.w r2, [r3, #1172] @ 0x494 return HAL_OK; - 8003be8: 2300 movs r3, #0 + 8003c3c: 2300 movs r3, #0 } - 8003bea: 4618 mov r0, r3 - 8003bec: 3710 adds r7, #16 - 8003bee: 46bd mov sp, r7 - 8003bf0: bd80 pop {r7, pc} + 8003c3e: 4618 mov r0, r3 + 8003c40: 3710 adds r7, #16 + 8003c42: 46bd mov sp, r7 + 8003c44: bd80 pop {r7, pc} -08003bf2 : +08003c46 : * @param hpcd PCD handle * @param ep_addr endpoint address * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_EP_Abort(PCD_HandleTypeDef *hpcd, uint8_t ep_addr) { - 8003bf2: b580 push {r7, lr} - 8003bf4: b084 sub sp, #16 - 8003bf6: af00 add r7, sp, #0 - 8003bf8: 6078 str r0, [r7, #4] - 8003bfa: 460b mov r3, r1 - 8003bfc: 70fb strb r3, [r7, #3] + 8003c46: b580 push {r7, lr} + 8003c48: b084 sub sp, #16 + 8003c4a: af00 add r7, sp, #0 + 8003c4c: 6078 str r0, [r7, #4] + 8003c4e: 460b mov r3, r1 + 8003c50: 70fb strb r3, [r7, #3] HAL_StatusTypeDef ret; PCD_EPTypeDef *ep; if ((0x80U & ep_addr) == 0x80U) - 8003bfe: f997 3003 ldrsb.w r3, [r7, #3] - 8003c02: 2b00 cmp r3, #0 - 8003c04: da0c bge.n 8003c20 + 8003c52: f997 3003 ldrsb.w r3, [r7, #3] + 8003c56: 2b00 cmp r3, #0 + 8003c58: da0c bge.n 8003c74 { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003c06: 78fb ldrb r3, [r7, #3] - 8003c08: f003 020f and.w r2, r3, #15 - 8003c0c: 4613 mov r3, r2 - 8003c0e: 00db lsls r3, r3, #3 - 8003c10: 4413 add r3, r2 - 8003c12: 009b lsls r3, r3, #2 - 8003c14: 3310 adds r3, #16 - 8003c16: 687a ldr r2, [r7, #4] - 8003c18: 4413 add r3, r2 - 8003c1a: 3304 adds r3, #4 - 8003c1c: 60fb str r3, [r7, #12] - 8003c1e: e00c b.n 8003c3a + 8003c5a: 78fb ldrb r3, [r7, #3] + 8003c5c: f003 020f and.w r2, r3, #15 + 8003c60: 4613 mov r3, r2 + 8003c62: 00db lsls r3, r3, #3 + 8003c64: 4413 add r3, r2 + 8003c66: 009b lsls r3, r3, #2 + 8003c68: 3310 adds r3, #16 + 8003c6a: 687a ldr r2, [r7, #4] + 8003c6c: 4413 add r3, r2 + 8003c6e: 3304 adds r3, #4 + 8003c70: 60fb str r3, [r7, #12] + 8003c72: e00c b.n 8003c8e } else { ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 8003c20: 78fb ldrb r3, [r7, #3] - 8003c22: f003 020f and.w r2, r3, #15 - 8003c26: 4613 mov r3, r2 - 8003c28: 00db lsls r3, r3, #3 - 8003c2a: 4413 add r3, r2 - 8003c2c: 009b lsls r3, r3, #2 - 8003c2e: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003c32: 687a ldr r2, [r7, #4] - 8003c34: 4413 add r3, r2 - 8003c36: 3304 adds r3, #4 - 8003c38: 60fb str r3, [r7, #12] + 8003c74: 78fb ldrb r3, [r7, #3] + 8003c76: f003 020f and.w r2, r3, #15 + 8003c7a: 4613 mov r3, r2 + 8003c7c: 00db lsls r3, r3, #3 + 8003c7e: 4413 add r3, r2 + 8003c80: 009b lsls r3, r3, #2 + 8003c82: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003c86: 687a ldr r2, [r7, #4] + 8003c88: 4413 add r3, r2 + 8003c8a: 3304 adds r3, #4 + 8003c8c: 60fb str r3, [r7, #12] } /* Stop Xfer */ ret = USB_EPStopXfer(hpcd->Instance, ep); - 8003c3a: 687b ldr r3, [r7, #4] - 8003c3c: 681b ldr r3, [r3, #0] - 8003c3e: 68f9 ldr r1, [r7, #12] - 8003c40: 4618 mov r0, r3 - 8003c42: f004 f8e1 bl 8007e08 - 8003c46: 4603 mov r3, r0 - 8003c48: 72fb strb r3, [r7, #11] + 8003c8e: 687b ldr r3, [r7, #4] + 8003c90: 681b ldr r3, [r3, #0] + 8003c92: 68f9 ldr r1, [r7, #12] + 8003c94: 4618 mov r0, r3 + 8003c96: f004 f8e1 bl 8007e5c + 8003c9a: 4603 mov r3, r0 + 8003c9c: 72fb strb r3, [r7, #11] return ret; - 8003c4a: 7afb ldrb r3, [r7, #11] + 8003c9e: 7afb ldrb r3, [r7, #11] } - 8003c4c: 4618 mov r0, r3 - 8003c4e: 3710 adds r7, #16 - 8003c50: 46bd mov sp, r7 - 8003c52: bd80 pop {r7, pc} + 8003ca0: 4618 mov r0, r3 + 8003ca2: 3710 adds r7, #16 + 8003ca4: 46bd mov sp, r7 + 8003ca6: bd80 pop {r7, pc} -08003c54 : +08003ca8 : * @param hpcd PCD handle * @param epnum endpoint number * @retval HAL status */ static HAL_StatusTypeDef PCD_WriteEmptyTxFifo(PCD_HandleTypeDef *hpcd, uint32_t epnum) { - 8003c54: b580 push {r7, lr} - 8003c56: b08a sub sp, #40 @ 0x28 - 8003c58: af02 add r7, sp, #8 - 8003c5a: 6078 str r0, [r7, #4] - 8003c5c: 6039 str r1, [r7, #0] + 8003ca8: b580 push {r7, lr} + 8003caa: b08a sub sp, #40 @ 0x28 + 8003cac: af02 add r7, sp, #8 + 8003cae: 6078 str r0, [r7, #4] + 8003cb0: 6039 str r1, [r7, #0] USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 8003c5e: 687b ldr r3, [r7, #4] - 8003c60: 681b ldr r3, [r3, #0] - 8003c62: 617b str r3, [r7, #20] + 8003cb2: 687b ldr r3, [r7, #4] + 8003cb4: 681b ldr r3, [r3, #0] + 8003cb6: 617b str r3, [r7, #20] uint32_t USBx_BASE = (uint32_t)USBx; - 8003c64: 697b ldr r3, [r7, #20] - 8003c66: 613b str r3, [r7, #16] + 8003cb8: 697b ldr r3, [r7, #20] + 8003cba: 613b str r3, [r7, #16] USB_OTG_EPTypeDef *ep; uint32_t len; uint32_t len32b; uint32_t fifoemptymsk; ep = &hpcd->IN_ep[epnum]; - 8003c68: 683a ldr r2, [r7, #0] - 8003c6a: 4613 mov r3, r2 - 8003c6c: 00db lsls r3, r3, #3 - 8003c6e: 4413 add r3, r2 - 8003c70: 009b lsls r3, r3, #2 - 8003c72: 3310 adds r3, #16 - 8003c74: 687a ldr r2, [r7, #4] - 8003c76: 4413 add r3, r2 - 8003c78: 3304 adds r3, #4 - 8003c7a: 60fb str r3, [r7, #12] + 8003cbc: 683a ldr r2, [r7, #0] + 8003cbe: 4613 mov r3, r2 + 8003cc0: 00db lsls r3, r3, #3 + 8003cc2: 4413 add r3, r2 + 8003cc4: 009b lsls r3, r3, #2 + 8003cc6: 3310 adds r3, #16 + 8003cc8: 687a ldr r2, [r7, #4] + 8003cca: 4413 add r3, r2 + 8003ccc: 3304 adds r3, #4 + 8003cce: 60fb str r3, [r7, #12] if (ep->xfer_count > ep->xfer_len) - 8003c7c: 68fb ldr r3, [r7, #12] - 8003c7e: 695a ldr r2, [r3, #20] - 8003c80: 68fb ldr r3, [r7, #12] - 8003c82: 691b ldr r3, [r3, #16] - 8003c84: 429a cmp r2, r3 - 8003c86: d901 bls.n 8003c8c + 8003cd0: 68fb ldr r3, [r7, #12] + 8003cd2: 695a ldr r2, [r3, #20] + 8003cd4: 68fb ldr r3, [r7, #12] + 8003cd6: 691b ldr r3, [r3, #16] + 8003cd8: 429a cmp r2, r3 + 8003cda: d901 bls.n 8003ce0 { return HAL_ERROR; - 8003c88: 2301 movs r3, #1 - 8003c8a: e06b b.n 8003d64 + 8003cdc: 2301 movs r3, #1 + 8003cde: e06b b.n 8003db8 } len = ep->xfer_len - ep->xfer_count; - 8003c8c: 68fb ldr r3, [r7, #12] - 8003c8e: 691a ldr r2, [r3, #16] - 8003c90: 68fb ldr r3, [r7, #12] - 8003c92: 695b ldr r3, [r3, #20] - 8003c94: 1ad3 subs r3, r2, r3 - 8003c96: 61fb str r3, [r7, #28] + 8003ce0: 68fb ldr r3, [r7, #12] + 8003ce2: 691a ldr r2, [r3, #16] + 8003ce4: 68fb ldr r3, [r7, #12] + 8003ce6: 695b ldr r3, [r3, #20] + 8003ce8: 1ad3 subs r3, r2, r3 + 8003cea: 61fb str r3, [r7, #28] if (len > ep->maxpacket) - 8003c98: 68fb ldr r3, [r7, #12] - 8003c9a: 689b ldr r3, [r3, #8] - 8003c9c: 69fa ldr r2, [r7, #28] - 8003c9e: 429a cmp r2, r3 - 8003ca0: d902 bls.n 8003ca8 + 8003cec: 68fb ldr r3, [r7, #12] + 8003cee: 689b ldr r3, [r3, #8] + 8003cf0: 69fa ldr r2, [r7, #28] + 8003cf2: 429a cmp r2, r3 + 8003cf4: d902 bls.n 8003cfc { len = ep->maxpacket; - 8003ca2: 68fb ldr r3, [r7, #12] - 8003ca4: 689b ldr r3, [r3, #8] - 8003ca6: 61fb str r3, [r7, #28] + 8003cf6: 68fb ldr r3, [r7, #12] + 8003cf8: 689b ldr r3, [r3, #8] + 8003cfa: 61fb str r3, [r7, #28] } len32b = (len + 3U) / 4U; - 8003ca8: 69fb ldr r3, [r7, #28] - 8003caa: 3303 adds r3, #3 - 8003cac: 089b lsrs r3, r3, #2 - 8003cae: 61bb str r3, [r7, #24] + 8003cfc: 69fb ldr r3, [r7, #28] + 8003cfe: 3303 adds r3, #3 + 8003d00: 089b lsrs r3, r3, #2 + 8003d02: 61bb str r3, [r7, #24] while (((USBx_INEP(epnum)->DTXFSTS & USB_OTG_DTXFSTS_INEPTFSAV) >= len32b) && - 8003cb0: e02a b.n 8003d08 + 8003d04: e02a b.n 8003d5c (ep->xfer_count < ep->xfer_len) && (ep->xfer_len != 0U)) { /* Write the FIFO */ len = ep->xfer_len - ep->xfer_count; - 8003cb2: 68fb ldr r3, [r7, #12] - 8003cb4: 691a ldr r2, [r3, #16] - 8003cb6: 68fb ldr r3, [r7, #12] - 8003cb8: 695b ldr r3, [r3, #20] - 8003cba: 1ad3 subs r3, r2, r3 - 8003cbc: 61fb str r3, [r7, #28] + 8003d06: 68fb ldr r3, [r7, #12] + 8003d08: 691a ldr r2, [r3, #16] + 8003d0a: 68fb ldr r3, [r7, #12] + 8003d0c: 695b ldr r3, [r3, #20] + 8003d0e: 1ad3 subs r3, r2, r3 + 8003d10: 61fb str r3, [r7, #28] if (len > ep->maxpacket) - 8003cbe: 68fb ldr r3, [r7, #12] - 8003cc0: 689b ldr r3, [r3, #8] - 8003cc2: 69fa ldr r2, [r7, #28] - 8003cc4: 429a cmp r2, r3 - 8003cc6: d902 bls.n 8003cce + 8003d12: 68fb ldr r3, [r7, #12] + 8003d14: 689b ldr r3, [r3, #8] + 8003d16: 69fa ldr r2, [r7, #28] + 8003d18: 429a cmp r2, r3 + 8003d1a: d902 bls.n 8003d22 { len = ep->maxpacket; - 8003cc8: 68fb ldr r3, [r7, #12] - 8003cca: 689b ldr r3, [r3, #8] - 8003ccc: 61fb str r3, [r7, #28] + 8003d1c: 68fb ldr r3, [r7, #12] + 8003d1e: 689b ldr r3, [r3, #8] + 8003d20: 61fb str r3, [r7, #28] } len32b = (len + 3U) / 4U; - 8003cce: 69fb ldr r3, [r7, #28] - 8003cd0: 3303 adds r3, #3 - 8003cd2: 089b lsrs r3, r3, #2 - 8003cd4: 61bb str r3, [r7, #24] + 8003d22: 69fb ldr r3, [r7, #28] + 8003d24: 3303 adds r3, #3 + 8003d26: 089b lsrs r3, r3, #2 + 8003d28: 61bb str r3, [r7, #24] (void)USB_WritePacket(USBx, ep->xfer_buff, (uint8_t)epnum, (uint16_t)len, - 8003cd6: 68fb ldr r3, [r7, #12] - 8003cd8: 68d9 ldr r1, [r3, #12] - 8003cda: 683b ldr r3, [r7, #0] - 8003cdc: b2da uxtb r2, r3 - 8003cde: 69fb ldr r3, [r7, #28] - 8003ce0: b298 uxth r0, r3 + 8003d2a: 68fb ldr r3, [r7, #12] + 8003d2c: 68d9 ldr r1, [r3, #12] + 8003d2e: 683b ldr r3, [r7, #0] + 8003d30: b2da uxtb r2, r3 + 8003d32: 69fb ldr r3, [r7, #28] + 8003d34: b298 uxth r0, r3 (uint8_t)hpcd->Init.dma_enable); - 8003ce2: 687b ldr r3, [r7, #4] - 8003ce4: 799b ldrb r3, [r3, #6] + 8003d36: 687b ldr r3, [r7, #4] + 8003d38: 799b ldrb r3, [r3, #6] (void)USB_WritePacket(USBx, ep->xfer_buff, (uint8_t)epnum, (uint16_t)len, - 8003ce6: 9300 str r3, [sp, #0] - 8003ce8: 4603 mov r3, r0 - 8003cea: 6978 ldr r0, [r7, #20] - 8003cec: f004 f936 bl 8007f5c + 8003d3a: 9300 str r3, [sp, #0] + 8003d3c: 4603 mov r3, r0 + 8003d3e: 6978 ldr r0, [r7, #20] + 8003d40: f004 f936 bl 8007fb0 ep->xfer_buff += len; - 8003cf0: 68fb ldr r3, [r7, #12] - 8003cf2: 68da ldr r2, [r3, #12] - 8003cf4: 69fb ldr r3, [r7, #28] - 8003cf6: 441a add r2, r3 - 8003cf8: 68fb ldr r3, [r7, #12] - 8003cfa: 60da str r2, [r3, #12] + 8003d44: 68fb ldr r3, [r7, #12] + 8003d46: 68da ldr r2, [r3, #12] + 8003d48: 69fb ldr r3, [r7, #28] + 8003d4a: 441a add r2, r3 + 8003d4c: 68fb ldr r3, [r7, #12] + 8003d4e: 60da str r2, [r3, #12] ep->xfer_count += len; - 8003cfc: 68fb ldr r3, [r7, #12] - 8003cfe: 695a ldr r2, [r3, #20] - 8003d00: 69fb ldr r3, [r7, #28] - 8003d02: 441a add r2, r3 - 8003d04: 68fb ldr r3, [r7, #12] - 8003d06: 615a str r2, [r3, #20] + 8003d50: 68fb ldr r3, [r7, #12] + 8003d52: 695a ldr r2, [r3, #20] + 8003d54: 69fb ldr r3, [r7, #28] + 8003d56: 441a add r2, r3 + 8003d58: 68fb ldr r3, [r7, #12] + 8003d5a: 615a str r2, [r3, #20] while (((USBx_INEP(epnum)->DTXFSTS & USB_OTG_DTXFSTS_INEPTFSAV) >= len32b) && - 8003d08: 683b ldr r3, [r7, #0] - 8003d0a: 015a lsls r2, r3, #5 - 8003d0c: 693b ldr r3, [r7, #16] - 8003d0e: 4413 add r3, r2 - 8003d10: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8003d14: 699b ldr r3, [r3, #24] - 8003d16: b29b uxth r3, r3 + 8003d5c: 683b ldr r3, [r7, #0] + 8003d5e: 015a lsls r2, r3, #5 + 8003d60: 693b ldr r3, [r7, #16] + 8003d62: 4413 add r3, r2 + 8003d64: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8003d68: 699b ldr r3, [r3, #24] + 8003d6a: b29b uxth r3, r3 (ep->xfer_count < ep->xfer_len) && (ep->xfer_len != 0U)) - 8003d18: 69ba ldr r2, [r7, #24] - 8003d1a: 429a cmp r2, r3 - 8003d1c: d809 bhi.n 8003d32 - 8003d1e: 68fb ldr r3, [r7, #12] - 8003d20: 695a ldr r2, [r3, #20] - 8003d22: 68fb ldr r3, [r7, #12] - 8003d24: 691b ldr r3, [r3, #16] + 8003d6c: 69ba ldr r2, [r7, #24] + 8003d6e: 429a cmp r2, r3 + 8003d70: d809 bhi.n 8003d86 + 8003d72: 68fb ldr r3, [r7, #12] + 8003d74: 695a ldr r2, [r3, #20] + 8003d76: 68fb ldr r3, [r7, #12] + 8003d78: 691b ldr r3, [r3, #16] while (((USBx_INEP(epnum)->DTXFSTS & USB_OTG_DTXFSTS_INEPTFSAV) >= len32b) && - 8003d26: 429a cmp r2, r3 - 8003d28: d203 bcs.n 8003d32 + 8003d7a: 429a cmp r2, r3 + 8003d7c: d203 bcs.n 8003d86 (ep->xfer_count < ep->xfer_len) && (ep->xfer_len != 0U)) - 8003d2a: 68fb ldr r3, [r7, #12] - 8003d2c: 691b ldr r3, [r3, #16] - 8003d2e: 2b00 cmp r3, #0 - 8003d30: d1bf bne.n 8003cb2 + 8003d7e: 68fb ldr r3, [r7, #12] + 8003d80: 691b ldr r3, [r3, #16] + 8003d82: 2b00 cmp r3, #0 + 8003d84: d1bf bne.n 8003d06 } if (ep->xfer_len <= ep->xfer_count) - 8003d32: 68fb ldr r3, [r7, #12] - 8003d34: 691a ldr r2, [r3, #16] - 8003d36: 68fb ldr r3, [r7, #12] - 8003d38: 695b ldr r3, [r3, #20] - 8003d3a: 429a cmp r2, r3 - 8003d3c: d811 bhi.n 8003d62 + 8003d86: 68fb ldr r3, [r7, #12] + 8003d88: 691a ldr r2, [r3, #16] + 8003d8a: 68fb ldr r3, [r7, #12] + 8003d8c: 695b ldr r3, [r3, #20] + 8003d8e: 429a cmp r2, r3 + 8003d90: d811 bhi.n 8003db6 { fifoemptymsk = (uint32_t)(0x1UL << (epnum & EP_ADDR_MSK)); - 8003d3e: 683b ldr r3, [r7, #0] - 8003d40: f003 030f and.w r3, r3, #15 - 8003d44: 2201 movs r2, #1 - 8003d46: fa02 f303 lsl.w r3, r2, r3 - 8003d4a: 60bb str r3, [r7, #8] + 8003d92: 683b ldr r3, [r7, #0] + 8003d94: f003 030f and.w r3, r3, #15 + 8003d98: 2201 movs r2, #1 + 8003d9a: fa02 f303 lsl.w r3, r2, r3 + 8003d9e: 60bb str r3, [r7, #8] USBx_DEVICE->DIEPEMPMSK &= ~fifoemptymsk; - 8003d4c: 693b ldr r3, [r7, #16] - 8003d4e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003d52: 6b5a ldr r2, [r3, #52] @ 0x34 - 8003d54: 68bb ldr r3, [r7, #8] - 8003d56: 43db mvns r3, r3 - 8003d58: 6939 ldr r1, [r7, #16] - 8003d5a: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8003d5e: 4013 ands r3, r2 - 8003d60: 634b str r3, [r1, #52] @ 0x34 + 8003da0: 693b ldr r3, [r7, #16] + 8003da2: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003da6: 6b5a ldr r2, [r3, #52] @ 0x34 + 8003da8: 68bb ldr r3, [r7, #8] + 8003daa: 43db mvns r3, r3 + 8003dac: 6939 ldr r1, [r7, #16] + 8003dae: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8003db2: 4013 ands r3, r2 + 8003db4: 634b str r3, [r1, #52] @ 0x34 } return HAL_OK; - 8003d62: 2300 movs r3, #0 + 8003db6: 2300 movs r3, #0 } - 8003d64: 4618 mov r0, r3 - 8003d66: 3720 adds r7, #32 - 8003d68: 46bd mov sp, r7 - 8003d6a: bd80 pop {r7, pc} + 8003db8: 4618 mov r0, r3 + 8003dba: 3720 adds r7, #32 + 8003dbc: 46bd mov sp, r7 + 8003dbe: bd80 pop {r7, pc} -08003d6c : +08003dc0 : * @param hpcd PCD handle * @param epnum endpoint number * @retval HAL status */ static HAL_StatusTypeDef PCD_EP_OutXfrComplete_int(PCD_HandleTypeDef *hpcd, uint32_t epnum) { - 8003d6c: b580 push {r7, lr} - 8003d6e: b088 sub sp, #32 - 8003d70: af00 add r7, sp, #0 - 8003d72: 6078 str r0, [r7, #4] - 8003d74: 6039 str r1, [r7, #0] + 8003dc0: b580 push {r7, lr} + 8003dc2: b088 sub sp, #32 + 8003dc4: af00 add r7, sp, #0 + 8003dc6: 6078 str r0, [r7, #4] + 8003dc8: 6039 str r1, [r7, #0] USB_OTG_EPTypeDef *ep; const USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 8003d76: 687b ldr r3, [r7, #4] - 8003d78: 681b ldr r3, [r3, #0] - 8003d7a: 61fb str r3, [r7, #28] + 8003dca: 687b ldr r3, [r7, #4] + 8003dcc: 681b ldr r3, [r3, #0] + 8003dce: 61fb str r3, [r7, #28] uint32_t USBx_BASE = (uint32_t)USBx; - 8003d7c: 69fb ldr r3, [r7, #28] - 8003d7e: 61bb str r3, [r7, #24] + 8003dd0: 69fb ldr r3, [r7, #28] + 8003dd2: 61bb str r3, [r7, #24] uint32_t gSNPSiD = *(__IO const uint32_t *)(&USBx->CID + 0x1U); - 8003d80: 69fb ldr r3, [r7, #28] - 8003d82: 333c adds r3, #60 @ 0x3c - 8003d84: 3304 adds r3, #4 - 8003d86: 681b ldr r3, [r3, #0] - 8003d88: 617b str r3, [r7, #20] + 8003dd4: 69fb ldr r3, [r7, #28] + 8003dd6: 333c adds r3, #60 @ 0x3c + 8003dd8: 3304 adds r3, #4 + 8003dda: 681b ldr r3, [r3, #0] + 8003ddc: 617b str r3, [r7, #20] uint32_t DoepintReg = USBx_OUTEP(epnum)->DOEPINT; - 8003d8a: 683b ldr r3, [r7, #0] - 8003d8c: 015a lsls r2, r3, #5 - 8003d8e: 69bb ldr r3, [r7, #24] - 8003d90: 4413 add r3, r2 - 8003d92: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003d96: 689b ldr r3, [r3, #8] - 8003d98: 613b str r3, [r7, #16] + 8003dde: 683b ldr r3, [r7, #0] + 8003de0: 015a lsls r2, r3, #5 + 8003de2: 69bb ldr r3, [r7, #24] + 8003de4: 4413 add r3, r2 + 8003de6: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003dea: 689b ldr r3, [r3, #8] + 8003dec: 613b str r3, [r7, #16] if (hpcd->Init.dma_enable == 1U) - 8003d9a: 687b ldr r3, [r7, #4] - 8003d9c: 799b ldrb r3, [r3, #6] - 8003d9e: 2b01 cmp r3, #1 - 8003da0: d17b bne.n 8003e9a + 8003dee: 687b ldr r3, [r7, #4] + 8003df0: 799b ldrb r3, [r3, #6] + 8003df2: 2b01 cmp r3, #1 + 8003df4: d17b bne.n 8003eee { if ((DoepintReg & USB_OTG_DOEPINT_STUP) == USB_OTG_DOEPINT_STUP) /* Class C */ - 8003da2: 693b ldr r3, [r7, #16] - 8003da4: f003 0308 and.w r3, r3, #8 - 8003da8: 2b00 cmp r3, #0 - 8003daa: d015 beq.n 8003dd8 - { - /* StupPktRcvd = 1 this is a setup packet */ - if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 8003dac: 697b ldr r3, [r7, #20] - 8003dae: 4a61 ldr r2, [pc, #388] @ (8003f34 ) - 8003db0: 4293 cmp r3, r2 - 8003db2: f240 80b9 bls.w 8003f28 - ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX)) - 8003db6: 693b ldr r3, [r7, #16] - 8003db8: f403 4300 and.w r3, r3, #32768 @ 0x8000 - if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 8003dbc: 2b00 cmp r3, #0 - 8003dbe: f000 80b3 beq.w 8003f28 - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); - 8003dc2: 683b ldr r3, [r7, #0] - 8003dc4: 015a lsls r2, r3, #5 - 8003dc6: 69bb ldr r3, [r7, #24] - 8003dc8: 4413 add r3, r2 - 8003dca: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003dce: 461a mov r2, r3 - 8003dd0: f44f 4300 mov.w r3, #32768 @ 0x8000 - 8003dd4: 6093 str r3, [r2, #8] - 8003dd6: e0a7 b.n 8003f28 - } - } - else if ((DoepintReg & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) /* Class E */ - 8003dd8: 693b ldr r3, [r7, #16] - 8003dda: f003 0320 and.w r3, r3, #32 - 8003dde: 2b00 cmp r3, #0 - 8003de0: d009 beq.n 8003df6 - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); - 8003de2: 683b ldr r3, [r7, #0] - 8003de4: 015a lsls r2, r3, #5 - 8003de6: 69bb ldr r3, [r7, #24] - 8003de8: 4413 add r3, r2 - 8003dea: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003dee: 461a mov r2, r3 - 8003df0: 2320 movs r3, #32 - 8003df2: 6093 str r3, [r2, #8] - 8003df4: e098 b.n 8003f28 - } - else if ((DoepintReg & (USB_OTG_DOEPINT_STUP | USB_OTG_DOEPINT_OTEPSPR)) == 0U) 8003df6: 693b ldr r3, [r7, #16] - 8003df8: f003 0328 and.w r3, r3, #40 @ 0x28 + 8003df8: f003 0308 and.w r3, r3, #8 8003dfc: 2b00 cmp r3, #0 - 8003dfe: f040 8093 bne.w 8003f28 + 8003dfe: d015 beq.n 8003e2c { /* StupPktRcvd = 1 this is a setup packet */ if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 8003e02: 697b ldr r3, [r7, #20] - 8003e04: 4a4b ldr r2, [pc, #300] @ (8003f34 ) - 8003e06: 4293 cmp r3, r2 - 8003e08: d90f bls.n 8003e2a + 8003e00: 697b ldr r3, [r7, #20] + 8003e02: 4a61 ldr r2, [pc, #388] @ (8003f88 ) + 8003e04: 4293 cmp r3, r2 + 8003e06: f240 80b9 bls.w 8003f7c ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX)) 8003e0a: 693b ldr r3, [r7, #16] 8003e0c: f403 4300 and.w r3, r3, #32768 @ 0x8000 if ((gSNPSiD > USB_OTG_CORE_ID_300A) && 8003e10: 2b00 cmp r3, #0 - 8003e12: d00a beq.n 8003e2a + 8003e12: f000 80b3 beq.w 8003f7c { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); - 8003e14: 683b ldr r3, [r7, #0] - 8003e16: 015a lsls r2, r3, #5 - 8003e18: 69bb ldr r3, [r7, #24] - 8003e1a: 4413 add r3, r2 - 8003e1c: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003e20: 461a mov r2, r3 - 8003e22: f44f 4300 mov.w r3, #32768 @ 0x8000 - 8003e26: 6093 str r3, [r2, #8] - 8003e28: e07e b.n 8003f28 + 8003e16: 683b ldr r3, [r7, #0] + 8003e18: 015a lsls r2, r3, #5 + 8003e1a: 69bb ldr r3, [r7, #24] + 8003e1c: 4413 add r3, r2 + 8003e1e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003e22: 461a mov r2, r3 + 8003e24: f44f 4300 mov.w r3, #32768 @ 0x8000 + 8003e28: 6093 str r3, [r2, #8] + 8003e2a: e0a7 b.n 8003f7c + } + } + else if ((DoepintReg & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) /* Class E */ + 8003e2c: 693b ldr r3, [r7, #16] + 8003e2e: f003 0320 and.w r3, r3, #32 + 8003e32: 2b00 cmp r3, #0 + 8003e34: d009 beq.n 8003e4a + { + CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); + 8003e36: 683b ldr r3, [r7, #0] + 8003e38: 015a lsls r2, r3, #5 + 8003e3a: 69bb ldr r3, [r7, #24] + 8003e3c: 4413 add r3, r2 + 8003e3e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003e42: 461a mov r2, r3 + 8003e44: 2320 movs r3, #32 + 8003e46: 6093 str r3, [r2, #8] + 8003e48: e098 b.n 8003f7c + } + else if ((DoepintReg & (USB_OTG_DOEPINT_STUP | USB_OTG_DOEPINT_OTEPSPR)) == 0U) + 8003e4a: 693b ldr r3, [r7, #16] + 8003e4c: f003 0328 and.w r3, r3, #40 @ 0x28 + 8003e50: 2b00 cmp r3, #0 + 8003e52: f040 8093 bne.w 8003f7c + { + /* StupPktRcvd = 1 this is a setup packet */ + if ((gSNPSiD > USB_OTG_CORE_ID_300A) && + 8003e56: 697b ldr r3, [r7, #20] + 8003e58: 4a4b ldr r2, [pc, #300] @ (8003f88 ) + 8003e5a: 4293 cmp r3, r2 + 8003e5c: d90f bls.n 8003e7e + ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX)) + 8003e5e: 693b ldr r3, [r7, #16] + 8003e60: f403 4300 and.w r3, r3, #32768 @ 0x8000 + if ((gSNPSiD > USB_OTG_CORE_ID_300A) && + 8003e64: 2b00 cmp r3, #0 + 8003e66: d00a beq.n 8003e7e + { + CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); + 8003e68: 683b ldr r3, [r7, #0] + 8003e6a: 015a lsls r2, r3, #5 + 8003e6c: 69bb ldr r3, [r7, #24] + 8003e6e: 4413 add r3, r2 + 8003e70: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003e74: 461a mov r2, r3 + 8003e76: f44f 4300 mov.w r3, #32768 @ 0x8000 + 8003e7a: 6093 str r3, [r2, #8] + 8003e7c: e07e b.n 8003f7c } else { ep = &hpcd->OUT_ep[epnum]; - 8003e2a: 683a ldr r2, [r7, #0] - 8003e2c: 4613 mov r3, r2 - 8003e2e: 00db lsls r3, r3, #3 - 8003e30: 4413 add r3, r2 - 8003e32: 009b lsls r3, r3, #2 - 8003e34: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003e38: 687a ldr r2, [r7, #4] - 8003e3a: 4413 add r3, r2 - 8003e3c: 3304 adds r3, #4 - 8003e3e: 60fb str r3, [r7, #12] + 8003e7e: 683a ldr r2, [r7, #0] + 8003e80: 4613 mov r3, r2 + 8003e82: 00db lsls r3, r3, #3 + 8003e84: 4413 add r3, r2 + 8003e86: 009b lsls r3, r3, #2 + 8003e88: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003e8c: 687a ldr r2, [r7, #4] + 8003e8e: 4413 add r3, r2 + 8003e90: 3304 adds r3, #4 + 8003e92: 60fb str r3, [r7, #12] /* out data packet received over EP */ ep->xfer_count = ep->xfer_size - (USBx_OUTEP(epnum)->DOEPTSIZ & USB_OTG_DOEPTSIZ_XFRSIZ); - 8003e40: 68fb ldr r3, [r7, #12] - 8003e42: 6a1a ldr r2, [r3, #32] - 8003e44: 683b ldr r3, [r7, #0] - 8003e46: 0159 lsls r1, r3, #5 - 8003e48: 69bb ldr r3, [r7, #24] - 8003e4a: 440b add r3, r1 - 8003e4c: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003e50: 691b ldr r3, [r3, #16] - 8003e52: f3c3 0312 ubfx r3, r3, #0, #19 - 8003e56: 1ad2 subs r2, r2, r3 - 8003e58: 68fb ldr r3, [r7, #12] - 8003e5a: 615a str r2, [r3, #20] + 8003e94: 68fb ldr r3, [r7, #12] + 8003e96: 6a1a ldr r2, [r3, #32] + 8003e98: 683b ldr r3, [r7, #0] + 8003e9a: 0159 lsls r1, r3, #5 + 8003e9c: 69bb ldr r3, [r7, #24] + 8003e9e: 440b add r3, r1 + 8003ea0: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003ea4: 691b ldr r3, [r3, #16] + 8003ea6: f3c3 0312 ubfx r3, r3, #0, #19 + 8003eaa: 1ad2 subs r2, r2, r3 + 8003eac: 68fb ldr r3, [r7, #12] + 8003eae: 615a str r2, [r3, #20] if (epnum == 0U) - 8003e5c: 683b ldr r3, [r7, #0] - 8003e5e: 2b00 cmp r3, #0 - 8003e60: d114 bne.n 8003e8c + 8003eb0: 683b ldr r3, [r7, #0] + 8003eb2: 2b00 cmp r3, #0 + 8003eb4: d114 bne.n 8003ee0 { if (ep->xfer_len == 0U) - 8003e62: 68fb ldr r3, [r7, #12] - 8003e64: 691b ldr r3, [r3, #16] - 8003e66: 2b00 cmp r3, #0 - 8003e68: d109 bne.n 8003e7e + 8003eb6: 68fb ldr r3, [r7, #12] + 8003eb8: 691b ldr r3, [r3, #16] + 8003eba: 2b00 cmp r3, #0 + 8003ebc: d109 bne.n 8003ed2 { /* this is ZLP, so prepare EP0 for next setup */ (void)USB_EP0_OutStart(hpcd->Instance, 1U, (uint8_t *)hpcd->Setup); - 8003e6a: 687b ldr r3, [r7, #4] - 8003e6c: 6818 ldr r0, [r3, #0] - 8003e6e: 687b ldr r3, [r7, #4] - 8003e70: f203 439c addw r3, r3, #1180 @ 0x49c - 8003e74: 461a mov r2, r3 - 8003e76: 2101 movs r1, #1 - 8003e78: f004 fb06 bl 8008488 - 8003e7c: e006 b.n 8003e8c + 8003ebe: 687b ldr r3, [r7, #4] + 8003ec0: 6818 ldr r0, [r3, #0] + 8003ec2: 687b ldr r3, [r7, #4] + 8003ec4: f203 439c addw r3, r3, #1180 @ 0x49c + 8003ec8: 461a mov r2, r3 + 8003eca: 2101 movs r1, #1 + 8003ecc: f004 fb06 bl 80084dc + 8003ed0: e006 b.n 8003ee0 } else { ep->xfer_buff += ep->xfer_count; - 8003e7e: 68fb ldr r3, [r7, #12] - 8003e80: 68da ldr r2, [r3, #12] - 8003e82: 68fb ldr r3, [r7, #12] - 8003e84: 695b ldr r3, [r3, #20] - 8003e86: 441a add r2, r3 - 8003e88: 68fb ldr r3, [r7, #12] - 8003e8a: 60da str r2, [r3, #12] + 8003ed2: 68fb ldr r3, [r7, #12] + 8003ed4: 68da ldr r2, [r3, #12] + 8003ed6: 68fb ldr r3, [r7, #12] + 8003ed8: 695b ldr r3, [r3, #20] + 8003eda: 441a add r2, r3 + 8003edc: 68fb ldr r3, [r7, #12] + 8003ede: 60da str r2, [r3, #12] } #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->DataOutStageCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_DataOutStageCallback(hpcd, (uint8_t)epnum); - 8003e8c: 683b ldr r3, [r7, #0] - 8003e8e: b2db uxtb r3, r3 - 8003e90: 4619 mov r1, r3 - 8003e92: 6878 ldr r0, [r7, #4] - 8003e94: f006 fad4 bl 800a440 - 8003e98: e046 b.n 8003f28 + 8003ee0: 683b ldr r3, [r7, #0] + 8003ee2: b2db uxtb r3, r3 + 8003ee4: 4619 mov r1, r3 + 8003ee6: 6878 ldr r0, [r7, #4] + 8003ee8: f006 fad4 bl 800a494 + 8003eec: e046 b.n 8003f7c /* ... */ } } else { if (gSNPSiD == USB_OTG_CORE_ID_310A) - 8003e9a: 697b ldr r3, [r7, #20] - 8003e9c: 4a26 ldr r2, [pc, #152] @ (8003f38 ) - 8003e9e: 4293 cmp r3, r2 - 8003ea0: d124 bne.n 8003eec + 8003eee: 697b ldr r3, [r7, #20] + 8003ef0: 4a26 ldr r2, [pc, #152] @ (8003f8c ) + 8003ef2: 4293 cmp r3, r2 + 8003ef4: d124 bne.n 8003f40 { /* StupPktRcvd = 1 this is a setup packet */ if ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX) - 8003ea2: 693b ldr r3, [r7, #16] - 8003ea4: f403 4300 and.w r3, r3, #32768 @ 0x8000 - 8003ea8: 2b00 cmp r3, #0 - 8003eaa: d00a beq.n 8003ec2 + 8003ef6: 693b ldr r3, [r7, #16] + 8003ef8: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 8003efc: 2b00 cmp r3, #0 + 8003efe: d00a beq.n 8003f16 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); - 8003eac: 683b ldr r3, [r7, #0] - 8003eae: 015a lsls r2, r3, #5 - 8003eb0: 69bb ldr r3, [r7, #24] - 8003eb2: 4413 add r3, r2 - 8003eb4: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003eb8: 461a mov r2, r3 - 8003eba: f44f 4300 mov.w r3, #32768 @ 0x8000 - 8003ebe: 6093 str r3, [r2, #8] - 8003ec0: e032 b.n 8003f28 + 8003f00: 683b ldr r3, [r7, #0] + 8003f02: 015a lsls r2, r3, #5 + 8003f04: 69bb ldr r3, [r7, #24] + 8003f06: 4413 add r3, r2 + 8003f08: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003f0c: 461a mov r2, r3 + 8003f0e: f44f 4300 mov.w r3, #32768 @ 0x8000 + 8003f12: 6093 str r3, [r2, #8] + 8003f14: e032 b.n 8003f7c } else { if ((DoepintReg & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) - 8003ec2: 693b ldr r3, [r7, #16] - 8003ec4: f003 0320 and.w r3, r3, #32 - 8003ec8: 2b00 cmp r3, #0 - 8003eca: d008 beq.n 8003ede + 8003f16: 693b ldr r3, [r7, #16] + 8003f18: f003 0320 and.w r3, r3, #32 + 8003f1c: 2b00 cmp r3, #0 + 8003f1e: d008 beq.n 8003f32 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); - 8003ecc: 683b ldr r3, [r7, #0] - 8003ece: 015a lsls r2, r3, #5 - 8003ed0: 69bb ldr r3, [r7, #24] - 8003ed2: 4413 add r3, r2 - 8003ed4: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003ed8: 461a mov r2, r3 - 8003eda: 2320 movs r3, #32 - 8003edc: 6093 str r3, [r2, #8] + 8003f20: 683b ldr r3, [r7, #0] + 8003f22: 015a lsls r2, r3, #5 + 8003f24: 69bb ldr r3, [r7, #24] + 8003f26: 4413 add r3, r2 + 8003f28: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003f2c: 461a mov r2, r3 + 8003f2e: 2320 movs r3, #32 + 8003f30: 6093 str r3, [r2, #8] } #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->DataOutStageCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_DataOutStageCallback(hpcd, (uint8_t)epnum); - 8003ede: 683b ldr r3, [r7, #0] - 8003ee0: b2db uxtb r3, r3 - 8003ee2: 4619 mov r1, r3 - 8003ee4: 6878 ldr r0, [r7, #4] - 8003ee6: f006 faab bl 800a440 - 8003eea: e01d b.n 8003f28 + 8003f32: 683b ldr r3, [r7, #0] + 8003f34: b2db uxtb r3, r3 + 8003f36: 4619 mov r1, r3 + 8003f38: 6878 ldr r0, [r7, #4] + 8003f3a: f006 faab bl 800a494 + 8003f3e: e01d b.n 8003f7c #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } } else { if ((epnum == 0U) && (hpcd->OUT_ep[epnum].xfer_len == 0U)) - 8003eec: 683b ldr r3, [r7, #0] - 8003eee: 2b00 cmp r3, #0 - 8003ef0: d114 bne.n 8003f1c - 8003ef2: 6879 ldr r1, [r7, #4] - 8003ef4: 683a ldr r2, [r7, #0] - 8003ef6: 4613 mov r3, r2 - 8003ef8: 00db lsls r3, r3, #3 - 8003efa: 4413 add r3, r2 - 8003efc: 009b lsls r3, r3, #2 - 8003efe: 440b add r3, r1 - 8003f00: f503 7319 add.w r3, r3, #612 @ 0x264 - 8003f04: 681b ldr r3, [r3, #0] - 8003f06: 2b00 cmp r3, #0 - 8003f08: d108 bne.n 8003f1c + 8003f40: 683b ldr r3, [r7, #0] + 8003f42: 2b00 cmp r3, #0 + 8003f44: d114 bne.n 8003f70 + 8003f46: 6879 ldr r1, [r7, #4] + 8003f48: 683a ldr r2, [r7, #0] + 8003f4a: 4613 mov r3, r2 + 8003f4c: 00db lsls r3, r3, #3 + 8003f4e: 4413 add r3, r2 + 8003f50: 009b lsls r3, r3, #2 + 8003f52: 440b add r3, r1 + 8003f54: f503 7319 add.w r3, r3, #612 @ 0x264 + 8003f58: 681b ldr r3, [r3, #0] + 8003f5a: 2b00 cmp r3, #0 + 8003f5c: d108 bne.n 8003f70 { /* this is ZLP, so prepare EP0 for next setup */ (void)USB_EP0_OutStart(hpcd->Instance, 0U, (uint8_t *)hpcd->Setup); - 8003f0a: 687b ldr r3, [r7, #4] - 8003f0c: 6818 ldr r0, [r3, #0] - 8003f0e: 687b ldr r3, [r7, #4] - 8003f10: f203 439c addw r3, r3, #1180 @ 0x49c - 8003f14: 461a mov r2, r3 - 8003f16: 2100 movs r1, #0 - 8003f18: f004 fab6 bl 8008488 + 8003f5e: 687b ldr r3, [r7, #4] + 8003f60: 6818 ldr r0, [r3, #0] + 8003f62: 687b ldr r3, [r7, #4] + 8003f64: f203 439c addw r3, r3, #1180 @ 0x49c + 8003f68: 461a mov r2, r3 + 8003f6a: 2100 movs r1, #0 + 8003f6c: f004 fab6 bl 80084dc } #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->DataOutStageCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_DataOutStageCallback(hpcd, (uint8_t)epnum); - 8003f1c: 683b ldr r3, [r7, #0] - 8003f1e: b2db uxtb r3, r3 - 8003f20: 4619 mov r1, r3 - 8003f22: 6878 ldr r0, [r7, #4] - 8003f24: f006 fa8c bl 800a440 + 8003f70: 683b ldr r3, [r7, #0] + 8003f72: b2db uxtb r3, r3 + 8003f74: 4619 mov r1, r3 + 8003f76: 6878 ldr r0, [r7, #4] + 8003f78: f006 fa8c bl 800a494 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } } return HAL_OK; - 8003f28: 2300 movs r3, #0 + 8003f7c: 2300 movs r3, #0 } - 8003f2a: 4618 mov r0, r3 - 8003f2c: 3720 adds r7, #32 - 8003f2e: 46bd mov sp, r7 - 8003f30: bd80 pop {r7, pc} - 8003f32: bf00 nop - 8003f34: 4f54300a .word 0x4f54300a - 8003f38: 4f54310a .word 0x4f54310a + 8003f7e: 4618 mov r0, r3 + 8003f80: 3720 adds r7, #32 + 8003f82: 46bd mov sp, r7 + 8003f84: bd80 pop {r7, pc} + 8003f86: bf00 nop + 8003f88: 4f54300a .word 0x4f54300a + 8003f8c: 4f54310a .word 0x4f54310a -08003f3c : +08003f90 : * @param hpcd PCD handle * @param epnum endpoint number * @retval HAL status */ static HAL_StatusTypeDef PCD_EP_OutSetupPacket_int(PCD_HandleTypeDef *hpcd, uint32_t epnum) { - 8003f3c: b580 push {r7, lr} - 8003f3e: b086 sub sp, #24 - 8003f40: af00 add r7, sp, #0 - 8003f42: 6078 str r0, [r7, #4] - 8003f44: 6039 str r1, [r7, #0] + 8003f90: b580 push {r7, lr} + 8003f92: b086 sub sp, #24 + 8003f94: af00 add r7, sp, #0 + 8003f96: 6078 str r0, [r7, #4] + 8003f98: 6039 str r1, [r7, #0] const USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 8003f46: 687b ldr r3, [r7, #4] - 8003f48: 681b ldr r3, [r3, #0] - 8003f4a: 617b str r3, [r7, #20] + 8003f9a: 687b ldr r3, [r7, #4] + 8003f9c: 681b ldr r3, [r3, #0] + 8003f9e: 617b str r3, [r7, #20] uint32_t USBx_BASE = (uint32_t)USBx; - 8003f4c: 697b ldr r3, [r7, #20] - 8003f4e: 613b str r3, [r7, #16] + 8003fa0: 697b ldr r3, [r7, #20] + 8003fa2: 613b str r3, [r7, #16] uint32_t gSNPSiD = *(__IO const uint32_t *)(&USBx->CID + 0x1U); - 8003f50: 697b ldr r3, [r7, #20] - 8003f52: 333c adds r3, #60 @ 0x3c - 8003f54: 3304 adds r3, #4 - 8003f56: 681b ldr r3, [r3, #0] - 8003f58: 60fb str r3, [r7, #12] + 8003fa4: 697b ldr r3, [r7, #20] + 8003fa6: 333c adds r3, #60 @ 0x3c + 8003fa8: 3304 adds r3, #4 + 8003faa: 681b ldr r3, [r3, #0] + 8003fac: 60fb str r3, [r7, #12] uint32_t DoepintReg = USBx_OUTEP(epnum)->DOEPINT; - 8003f5a: 683b ldr r3, [r7, #0] - 8003f5c: 015a lsls r2, r3, #5 - 8003f5e: 693b ldr r3, [r7, #16] - 8003f60: 4413 add r3, r2 - 8003f62: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003f66: 689b ldr r3, [r3, #8] - 8003f68: 60bb str r3, [r7, #8] + 8003fae: 683b ldr r3, [r7, #0] + 8003fb0: 015a lsls r2, r3, #5 + 8003fb2: 693b ldr r3, [r7, #16] + 8003fb4: 4413 add r3, r2 + 8003fb6: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003fba: 689b ldr r3, [r3, #8] + 8003fbc: 60bb str r3, [r7, #8] if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 8003f6a: 68fb ldr r3, [r7, #12] - 8003f6c: 4a15 ldr r2, [pc, #84] @ (8003fc4 ) - 8003f6e: 4293 cmp r3, r2 - 8003f70: d90e bls.n 8003f90 + 8003fbe: 68fb ldr r3, [r7, #12] + 8003fc0: 4a15 ldr r2, [pc, #84] @ (8004018 ) + 8003fc2: 4293 cmp r3, r2 + 8003fc4: d90e bls.n 8003fe4 ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX)) - 8003f72: 68bb ldr r3, [r7, #8] - 8003f74: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 8003fc6: 68bb ldr r3, [r7, #8] + 8003fc8: f403 4300 and.w r3, r3, #32768 @ 0x8000 if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 8003f78: 2b00 cmp r3, #0 - 8003f7a: d009 beq.n 8003f90 + 8003fcc: 2b00 cmp r3, #0 + 8003fce: d009 beq.n 8003fe4 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); - 8003f7c: 683b ldr r3, [r7, #0] - 8003f7e: 015a lsls r2, r3, #5 - 8003f80: 693b ldr r3, [r7, #16] - 8003f82: 4413 add r3, r2 - 8003f84: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003f88: 461a mov r2, r3 - 8003f8a: f44f 4300 mov.w r3, #32768 @ 0x8000 - 8003f8e: 6093 str r3, [r2, #8] + 8003fd0: 683b ldr r3, [r7, #0] + 8003fd2: 015a lsls r2, r3, #5 + 8003fd4: 693b ldr r3, [r7, #16] + 8003fd6: 4413 add r3, r2 + 8003fd8: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003fdc: 461a mov r2, r3 + 8003fde: f44f 4300 mov.w r3, #32768 @ 0x8000 + 8003fe2: 6093 str r3, [r2, #8] /* Inform the upper layer that a setup packet is available */ #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->SetupStageCallback(hpcd); #else HAL_PCD_SetupStageCallback(hpcd); - 8003f90: 6878 ldr r0, [r7, #4] - 8003f92: f006 fa43 bl 800a41c + 8003fe4: 6878 ldr r0, [r7, #4] + 8003fe6: f006 fa43 bl 800a470 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ if ((gSNPSiD > USB_OTG_CORE_ID_300A) && (hpcd->Init.dma_enable == 1U)) - 8003f96: 68fb ldr r3, [r7, #12] - 8003f98: 4a0a ldr r2, [pc, #40] @ (8003fc4 ) - 8003f9a: 4293 cmp r3, r2 - 8003f9c: d90c bls.n 8003fb8 - 8003f9e: 687b ldr r3, [r7, #4] - 8003fa0: 799b ldrb r3, [r3, #6] - 8003fa2: 2b01 cmp r3, #1 - 8003fa4: d108 bne.n 8003fb8 + 8003fea: 68fb ldr r3, [r7, #12] + 8003fec: 4a0a ldr r2, [pc, #40] @ (8004018 ) + 8003fee: 4293 cmp r3, r2 + 8003ff0: d90c bls.n 800400c + 8003ff2: 687b ldr r3, [r7, #4] + 8003ff4: 799b ldrb r3, [r3, #6] + 8003ff6: 2b01 cmp r3, #1 + 8003ff8: d108 bne.n 800400c { (void)USB_EP0_OutStart(hpcd->Instance, 1U, (uint8_t *)hpcd->Setup); - 8003fa6: 687b ldr r3, [r7, #4] - 8003fa8: 6818 ldr r0, [r3, #0] - 8003faa: 687b ldr r3, [r7, #4] - 8003fac: f203 439c addw r3, r3, #1180 @ 0x49c - 8003fb0: 461a mov r2, r3 - 8003fb2: 2101 movs r1, #1 - 8003fb4: f004 fa68 bl 8008488 + 8003ffa: 687b ldr r3, [r7, #4] + 8003ffc: 6818 ldr r0, [r3, #0] + 8003ffe: 687b ldr r3, [r7, #4] + 8004000: f203 439c addw r3, r3, #1180 @ 0x49c + 8004004: 461a mov r2, r3 + 8004006: 2101 movs r1, #1 + 8004008: f004 fa68 bl 80084dc } return HAL_OK; - 8003fb8: 2300 movs r3, #0 + 800400c: 2300 movs r3, #0 } - 8003fba: 4618 mov r0, r3 - 8003fbc: 3718 adds r7, #24 - 8003fbe: 46bd mov sp, r7 - 8003fc0: bd80 pop {r7, pc} - 8003fc2: bf00 nop - 8003fc4: 4f54300a .word 0x4f54300a + 800400e: 4618 mov r0, r3 + 8004010: 3718 adds r7, #24 + 8004012: 46bd mov sp, r7 + 8004014: bd80 pop {r7, pc} + 8004016: bf00 nop + 8004018: 4f54300a .word 0x4f54300a -08003fc8 : +0800401c : * @param fifo The number of Tx fifo * @param size Fifo size * @retval HAL status */ HAL_StatusTypeDef HAL_PCDEx_SetTxFiFo(PCD_HandleTypeDef *hpcd, uint8_t fifo, uint16_t size) { - 8003fc8: b480 push {r7} - 8003fca: b085 sub sp, #20 - 8003fcc: af00 add r7, sp, #0 - 8003fce: 6078 str r0, [r7, #4] - 8003fd0: 460b mov r3, r1 - 8003fd2: 70fb strb r3, [r7, #3] - 8003fd4: 4613 mov r3, r2 - 8003fd6: 803b strh r3, [r7, #0] + 800401c: b480 push {r7} + 800401e: b085 sub sp, #20 + 8004020: af00 add r7, sp, #0 + 8004022: 6078 str r0, [r7, #4] + 8004024: 460b mov r3, r1 + 8004026: 70fb strb r3, [r7, #3] + 8004028: 4613 mov r3, r2 + 800402a: 803b strh r3, [r7, #0] --> Txn should be configured with the minimum space of 16 words The FIFO is used optimally when used TxFIFOs are allocated in the top of the FIFO.Ex: use EP1 and EP2 as IN instead of EP1 and EP3 as IN ones. When DMA is used 3n * FIFO locations should be reserved for internal DMA registers */ Tx_Offset = hpcd->Instance->GRXFSIZ; - 8003fd8: 687b ldr r3, [r7, #4] - 8003fda: 681b ldr r3, [r3, #0] - 8003fdc: 6a5b ldr r3, [r3, #36] @ 0x24 - 8003fde: 60bb str r3, [r7, #8] + 800402c: 687b ldr r3, [r7, #4] + 800402e: 681b ldr r3, [r3, #0] + 8004030: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004032: 60bb str r3, [r7, #8] if (fifo == 0U) - 8003fe0: 78fb ldrb r3, [r7, #3] - 8003fe2: 2b00 cmp r3, #0 - 8003fe4: d107 bne.n 8003ff6 + 8004034: 78fb ldrb r3, [r7, #3] + 8004036: 2b00 cmp r3, #0 + 8004038: d107 bne.n 800404a { hpcd->Instance->DIEPTXF0_HNPTXFSIZ = ((uint32_t)size << 16) | Tx_Offset; - 8003fe6: 883b ldrh r3, [r7, #0] - 8003fe8: 0419 lsls r1, r3, #16 - 8003fea: 687b ldr r3, [r7, #4] - 8003fec: 681b ldr r3, [r3, #0] - 8003fee: 68ba ldr r2, [r7, #8] - 8003ff0: 430a orrs r2, r1 - 8003ff2: 629a str r2, [r3, #40] @ 0x28 - 8003ff4: e028 b.n 8004048 + 800403a: 883b ldrh r3, [r7, #0] + 800403c: 0419 lsls r1, r3, #16 + 800403e: 687b ldr r3, [r7, #4] + 8004040: 681b ldr r3, [r3, #0] + 8004042: 68ba ldr r2, [r7, #8] + 8004044: 430a orrs r2, r1 + 8004046: 629a str r2, [r3, #40] @ 0x28 + 8004048: e028 b.n 800409c } else { Tx_Offset += (hpcd->Instance->DIEPTXF0_HNPTXFSIZ) >> 16; - 8003ff6: 687b ldr r3, [r7, #4] - 8003ff8: 681b ldr r3, [r3, #0] - 8003ffa: 6a9b ldr r3, [r3, #40] @ 0x28 - 8003ffc: 0c1b lsrs r3, r3, #16 - 8003ffe: 68ba ldr r2, [r7, #8] - 8004000: 4413 add r3, r2 - 8004002: 60bb str r3, [r7, #8] + 800404a: 687b ldr r3, [r7, #4] + 800404c: 681b ldr r3, [r3, #0] + 800404e: 6a9b ldr r3, [r3, #40] @ 0x28 + 8004050: 0c1b lsrs r3, r3, #16 + 8004052: 68ba ldr r2, [r7, #8] + 8004054: 4413 add r3, r2 + 8004056: 60bb str r3, [r7, #8] for (i = 0U; i < (fifo - 1U); i++) - 8004004: 2300 movs r3, #0 - 8004006: 73fb strb r3, [r7, #15] - 8004008: e00d b.n 8004026 + 8004058: 2300 movs r3, #0 + 800405a: 73fb strb r3, [r7, #15] + 800405c: e00d b.n 800407a { Tx_Offset += (hpcd->Instance->DIEPTXF[i] >> 16); - 800400a: 687b ldr r3, [r7, #4] - 800400c: 681a ldr r2, [r3, #0] - 800400e: 7bfb ldrb r3, [r7, #15] - 8004010: 3340 adds r3, #64 @ 0x40 - 8004012: 009b lsls r3, r3, #2 - 8004014: 4413 add r3, r2 - 8004016: 685b ldr r3, [r3, #4] - 8004018: 0c1b lsrs r3, r3, #16 - 800401a: 68ba ldr r2, [r7, #8] - 800401c: 4413 add r3, r2 - 800401e: 60bb str r3, [r7, #8] + 800405e: 687b ldr r3, [r7, #4] + 8004060: 681a ldr r2, [r3, #0] + 8004062: 7bfb ldrb r3, [r7, #15] + 8004064: 3340 adds r3, #64 @ 0x40 + 8004066: 009b lsls r3, r3, #2 + 8004068: 4413 add r3, r2 + 800406a: 685b ldr r3, [r3, #4] + 800406c: 0c1b lsrs r3, r3, #16 + 800406e: 68ba ldr r2, [r7, #8] + 8004070: 4413 add r3, r2 + 8004072: 60bb str r3, [r7, #8] for (i = 0U; i < (fifo - 1U); i++) - 8004020: 7bfb ldrb r3, [r7, #15] - 8004022: 3301 adds r3, #1 - 8004024: 73fb strb r3, [r7, #15] - 8004026: 7bfa ldrb r2, [r7, #15] - 8004028: 78fb ldrb r3, [r7, #3] - 800402a: 3b01 subs r3, #1 - 800402c: 429a cmp r2, r3 - 800402e: d3ec bcc.n 800400a + 8004074: 7bfb ldrb r3, [r7, #15] + 8004076: 3301 adds r3, #1 + 8004078: 73fb strb r3, [r7, #15] + 800407a: 7bfa ldrb r2, [r7, #15] + 800407c: 78fb ldrb r3, [r7, #3] + 800407e: 3b01 subs r3, #1 + 8004080: 429a cmp r2, r3 + 8004082: d3ec bcc.n 800405e } /* Multiply Tx_Size by 2 to get higher performance */ hpcd->Instance->DIEPTXF[fifo - 1U] = ((uint32_t)size << 16) | Tx_Offset; - 8004030: 883b ldrh r3, [r7, #0] - 8004032: 0418 lsls r0, r3, #16 - 8004034: 687b ldr r3, [r7, #4] - 8004036: 6819 ldr r1, [r3, #0] - 8004038: 78fb ldrb r3, [r7, #3] - 800403a: 3b01 subs r3, #1 - 800403c: 68ba ldr r2, [r7, #8] - 800403e: 4302 orrs r2, r0 - 8004040: 3340 adds r3, #64 @ 0x40 - 8004042: 009b lsls r3, r3, #2 - 8004044: 440b add r3, r1 - 8004046: 605a str r2, [r3, #4] + 8004084: 883b ldrh r3, [r7, #0] + 8004086: 0418 lsls r0, r3, #16 + 8004088: 687b ldr r3, [r7, #4] + 800408a: 6819 ldr r1, [r3, #0] + 800408c: 78fb ldrb r3, [r7, #3] + 800408e: 3b01 subs r3, #1 + 8004090: 68ba ldr r2, [r7, #8] + 8004092: 4302 orrs r2, r0 + 8004094: 3340 adds r3, #64 @ 0x40 + 8004096: 009b lsls r3, r3, #2 + 8004098: 440b add r3, r1 + 800409a: 605a str r2, [r3, #4] } return HAL_OK; - 8004048: 2300 movs r3, #0 + 800409c: 2300 movs r3, #0 } - 800404a: 4618 mov r0, r3 - 800404c: 3714 adds r7, #20 - 800404e: 46bd mov sp, r7 - 8004050: f85d 7b04 ldr.w r7, [sp], #4 - 8004054: 4770 bx lr + 800409e: 4618 mov r0, r3 + 80040a0: 3714 adds r7, #20 + 80040a2: 46bd mov sp, r7 + 80040a4: f85d 7b04 ldr.w r7, [sp], #4 + 80040a8: 4770 bx lr -08004056 : +080040aa : * @param hpcd PCD handle * @param size Size of Rx fifo * @retval HAL status */ HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size) { - 8004056: b480 push {r7} - 8004058: b083 sub sp, #12 - 800405a: af00 add r7, sp, #0 - 800405c: 6078 str r0, [r7, #4] - 800405e: 460b mov r3, r1 - 8004060: 807b strh r3, [r7, #2] + 80040aa: b480 push {r7} + 80040ac: b083 sub sp, #12 + 80040ae: af00 add r7, sp, #0 + 80040b0: 6078 str r0, [r7, #4] + 80040b2: 460b mov r3, r1 + 80040b4: 807b strh r3, [r7, #2] hpcd->Instance->GRXFSIZ = size; - 8004062: 687b ldr r3, [r7, #4] - 8004064: 681b ldr r3, [r3, #0] - 8004066: 887a ldrh r2, [r7, #2] - 8004068: 625a str r2, [r3, #36] @ 0x24 + 80040b6: 687b ldr r3, [r7, #4] + 80040b8: 681b ldr r3, [r3, #0] + 80040ba: 887a ldrh r2, [r7, #2] + 80040bc: 625a str r2, [r3, #36] @ 0x24 return HAL_OK; - 800406a: 2300 movs r3, #0 + 80040be: 2300 movs r3, #0 } - 800406c: 4618 mov r0, r3 - 800406e: 370c adds r7, #12 - 8004070: 46bd mov sp, r7 - 8004072: f85d 7b04 ldr.w r7, [sp], #4 - 8004076: 4770 bx lr + 80040c0: 4618 mov r0, r3 + 80040c2: 370c adds r7, #12 + 80040c4: 46bd mov sp, r7 + 80040c6: f85d 7b04 ldr.w r7, [sp], #4 + 80040ca: 4770 bx lr -08004078 : +080040cc : * @brief Activate LPM feature. * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd) { - 8004078: b480 push {r7} - 800407a: b085 sub sp, #20 - 800407c: af00 add r7, sp, #0 - 800407e: 6078 str r0, [r7, #4] + 80040cc: b480 push {r7} + 80040ce: b085 sub sp, #20 + 80040d0: af00 add r7, sp, #0 + 80040d2: 6078 str r0, [r7, #4] USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 8004080: 687b ldr r3, [r7, #4] - 8004082: 681b ldr r3, [r3, #0] - 8004084: 60fb str r3, [r7, #12] + 80040d4: 687b ldr r3, [r7, #4] + 80040d6: 681b ldr r3, [r3, #0] + 80040d8: 60fb str r3, [r7, #12] hpcd->lpm_active = 1U; - 8004086: 687b ldr r3, [r7, #4] - 8004088: 2201 movs r2, #1 - 800408a: f8c3 24d8 str.w r2, [r3, #1240] @ 0x4d8 + 80040da: 687b ldr r3, [r7, #4] + 80040dc: 2201 movs r2, #1 + 80040de: f8c3 24d8 str.w r2, [r3, #1240] @ 0x4d8 hpcd->LPM_State = LPM_L0; - 800408e: 687b ldr r3, [r7, #4] - 8004090: 2200 movs r2, #0 - 8004092: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc + 80040e2: 687b ldr r3, [r7, #4] + 80040e4: 2200 movs r2, #0 + 80040e6: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc USBx->GINTMSK |= USB_OTG_GINTMSK_LPMINTM; - 8004096: 68fb ldr r3, [r7, #12] - 8004098: 699b ldr r3, [r3, #24] - 800409a: f043 6200 orr.w r2, r3, #134217728 @ 0x8000000 - 800409e: 68fb ldr r3, [r7, #12] - 80040a0: 619a str r2, [r3, #24] + 80040ea: 68fb ldr r3, [r7, #12] + 80040ec: 699b ldr r3, [r3, #24] + 80040ee: f043 6200 orr.w r2, r3, #134217728 @ 0x8000000 + 80040f2: 68fb ldr r3, [r7, #12] + 80040f4: 619a str r2, [r3, #24] USBx->GLPMCFG |= (USB_OTG_GLPMCFG_LPMEN | USB_OTG_GLPMCFG_LPMACK | USB_OTG_GLPMCFG_ENBESL); - 80040a2: 68fb ldr r3, [r7, #12] - 80040a4: 6d5b ldr r3, [r3, #84] @ 0x54 - 80040a6: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 80040aa: f043 0303 orr.w r3, r3, #3 - 80040ae: 68fa ldr r2, [r7, #12] - 80040b0: 6553 str r3, [r2, #84] @ 0x54 + 80040f6: 68fb ldr r3, [r7, #12] + 80040f8: 6d5b ldr r3, [r3, #84] @ 0x54 + 80040fa: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80040fe: f043 0303 orr.w r3, r3, #3 + 8004102: 68fa ldr r2, [r7, #12] + 8004104: 6553 str r3, [r2, #84] @ 0x54 return HAL_OK; - 80040b2: 2300 movs r3, #0 + 8004106: 2300 movs r3, #0 } - 80040b4: 4618 mov r0, r3 - 80040b6: 3714 adds r7, #20 - 80040b8: 46bd mov sp, r7 - 80040ba: f85d 7b04 ldr.w r7, [sp], #4 - 80040be: 4770 bx lr + 8004108: 4618 mov r0, r3 + 800410a: 3714 adds r7, #20 + 800410c: 46bd mov sp, r7 + 800410e: f85d 7b04 ldr.w r7, [sp], #4 + 8004112: 4770 bx lr -080040c0 : +08004114 : * HPRE[3:0] bits to ensure that HCLK not exceed the maximum allowed frequency * (for more details refer to section above "Initialization/de-initialization functions") * @retval None */ HAL_StatusTypeDef HAL_RCC_ClockConfig(const RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) { - 80040c0: b580 push {r7, lr} - 80040c2: b084 sub sp, #16 - 80040c4: af00 add r7, sp, #0 - 80040c6: 6078 str r0, [r7, #4] - 80040c8: 6039 str r1, [r7, #0] + 8004114: b580 push {r7, lr} + 8004116: b084 sub sp, #16 + 8004118: af00 add r7, sp, #0 + 800411a: 6078 str r0, [r7, #4] + 800411c: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if (RCC_ClkInitStruct == NULL) - 80040ca: 687b ldr r3, [r7, #4] - 80040cc: 2b00 cmp r3, #0 - 80040ce: d101 bne.n 80040d4 + 800411e: 687b ldr r3, [r7, #4] + 8004120: 2b00 cmp r3, #0 + 8004122: d101 bne.n 8004128 { return HAL_ERROR; - 80040d0: 2301 movs r3, #1 - 80040d2: e0cc b.n 800426e + 8004124: 2301 movs r3, #1 + 8004126: e0cc b.n 80042c2 /* 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) and the supply voltage of the device. */ /* Increasing the number of wait states because of higher CPU frequency */ if (FLatency > __HAL_FLASH_GET_LATENCY()) - 80040d4: 4b68 ldr r3, [pc, #416] @ (8004278 ) - 80040d6: 681b ldr r3, [r3, #0] - 80040d8: f003 030f and.w r3, r3, #15 - 80040dc: 683a ldr r2, [r7, #0] - 80040de: 429a cmp r2, r3 - 80040e0: d90c bls.n 80040fc + 8004128: 4b68 ldr r3, [pc, #416] @ (80042cc ) + 800412a: 681b ldr r3, [r3, #0] + 800412c: f003 030f and.w r3, r3, #15 + 8004130: 683a ldr r2, [r7, #0] + 8004132: 429a cmp r2, r3 + 8004134: d90c bls.n 8004150 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 80040e2: 4b65 ldr r3, [pc, #404] @ (8004278 ) - 80040e4: 683a ldr r2, [r7, #0] - 80040e6: b2d2 uxtb r2, r2 - 80040e8: 701a strb r2, [r3, #0] + 8004136: 4b65 ldr r3, [pc, #404] @ (80042cc ) + 8004138: 683a ldr r2, [r7, #0] + 800413a: b2d2 uxtb r2, r2 + 800413c: 701a strb 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) - 80040ea: 4b63 ldr r3, [pc, #396] @ (8004278 ) - 80040ec: 681b ldr r3, [r3, #0] - 80040ee: f003 030f and.w r3, r3, #15 - 80040f2: 683a ldr r2, [r7, #0] - 80040f4: 429a cmp r2, r3 - 80040f6: d001 beq.n 80040fc + 800413e: 4b63 ldr r3, [pc, #396] @ (80042cc ) + 8004140: 681b ldr r3, [r3, #0] + 8004142: f003 030f and.w r3, r3, #15 + 8004146: 683a ldr r2, [r7, #0] + 8004148: 429a cmp r2, r3 + 800414a: d001 beq.n 8004150 { return HAL_ERROR; - 80040f8: 2301 movs r3, #1 - 80040fa: e0b8 b.n 800426e + 800414c: 2301 movs r3, #1 + 800414e: e0b8 b.n 80042c2 } } /*-------------------------- HCLK Configuration --------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 80040fc: 687b ldr r3, [r7, #4] - 80040fe: 681b ldr r3, [r3, #0] - 8004100: f003 0302 and.w r3, r3, #2 - 8004104: 2b00 cmp r3, #0 - 8004106: d020 beq.n 800414a + 8004150: 687b ldr r3, [r7, #4] + 8004152: 681b ldr r3, [r3, #0] + 8004154: f003 0302 and.w r3, r3, #2 + 8004158: 2b00 cmp r3, #0 + 800415a: d020 beq.n 800419e { /* Set the highest APBx dividers 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) - 8004108: 687b ldr r3, [r7, #4] - 800410a: 681b ldr r3, [r3, #0] - 800410c: f003 0304 and.w r3, r3, #4 - 8004110: 2b00 cmp r3, #0 - 8004112: d005 beq.n 8004120 + 800415c: 687b ldr r3, [r7, #4] + 800415e: 681b ldr r3, [r3, #0] + 8004160: f003 0304 and.w r3, r3, #4 + 8004164: 2b00 cmp r3, #0 + 8004166: d005 beq.n 8004174 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); - 8004114: 4b59 ldr r3, [pc, #356] @ (800427c ) - 8004116: 689b ldr r3, [r3, #8] - 8004118: 4a58 ldr r2, [pc, #352] @ (800427c ) - 800411a: f443 53e0 orr.w r3, r3, #7168 @ 0x1c00 - 800411e: 6093 str r3, [r2, #8] + 8004168: 4b59 ldr r3, [pc, #356] @ (80042d0 ) + 800416a: 689b ldr r3, [r3, #8] + 800416c: 4a58 ldr r2, [pc, #352] @ (80042d0 ) + 800416e: f443 53e0 orr.w r3, r3, #7168 @ 0x1c00 + 8004172: 6093 str r3, [r2, #8] } if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8004120: 687b ldr r3, [r7, #4] - 8004122: 681b ldr r3, [r3, #0] - 8004124: f003 0308 and.w r3, r3, #8 - 8004128: 2b00 cmp r3, #0 - 800412a: d005 beq.n 8004138 + 8004174: 687b ldr r3, [r7, #4] + 8004176: 681b ldr r3, [r3, #0] + 8004178: f003 0308 and.w r3, r3, #8 + 800417c: 2b00 cmp r3, #0 + 800417e: d005 beq.n 800418c { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); - 800412c: 4b53 ldr r3, [pc, #332] @ (800427c ) - 800412e: 689b ldr r3, [r3, #8] - 8004130: 4a52 ldr r2, [pc, #328] @ (800427c ) - 8004132: f443 4360 orr.w r3, r3, #57344 @ 0xe000 - 8004136: 6093 str r3, [r2, #8] + 8004180: 4b53 ldr r3, [pc, #332] @ (80042d0 ) + 8004182: 689b ldr r3, [r3, #8] + 8004184: 4a52 ldr r2, [pc, #328] @ (80042d0 ) + 8004186: f443 4360 orr.w r3, r3, #57344 @ 0xe000 + 800418a: 6093 str r3, [r2, #8] } assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 8004138: 4b50 ldr r3, [pc, #320] @ (800427c ) - 800413a: 689b ldr r3, [r3, #8] - 800413c: f023 02f0 bic.w r2, r3, #240 @ 0xf0 - 8004140: 687b ldr r3, [r7, #4] - 8004142: 689b ldr r3, [r3, #8] - 8004144: 494d ldr r1, [pc, #308] @ (800427c ) - 8004146: 4313 orrs r3, r2 - 8004148: 608b str r3, [r1, #8] + 800418c: 4b50 ldr r3, [pc, #320] @ (80042d0 ) + 800418e: 689b ldr r3, [r3, #8] + 8004190: f023 02f0 bic.w r2, r3, #240 @ 0xf0 + 8004194: 687b ldr r3, [r7, #4] + 8004196: 689b ldr r3, [r3, #8] + 8004198: 494d ldr r1, [pc, #308] @ (80042d0 ) + 800419a: 4313 orrs r3, r2 + 800419c: 608b str r3, [r1, #8] } /*------------------------- SYSCLK Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 800414a: 687b ldr r3, [r7, #4] - 800414c: 681b ldr r3, [r3, #0] - 800414e: f003 0301 and.w r3, r3, #1 - 8004152: 2b00 cmp r3, #0 - 8004154: d044 beq.n 80041e0 + 800419e: 687b ldr r3, [r7, #4] + 80041a0: 681b ldr r3, [r3, #0] + 80041a2: f003 0301 and.w r3, r3, #1 + 80041a6: 2b00 cmp r3, #0 + 80041a8: d044 beq.n 8004234 { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 8004156: 687b ldr r3, [r7, #4] - 8004158: 685b ldr r3, [r3, #4] - 800415a: 2b01 cmp r3, #1 - 800415c: d107 bne.n 800416e + 80041aa: 687b ldr r3, [r7, #4] + 80041ac: 685b ldr r3, [r3, #4] + 80041ae: 2b01 cmp r3, #1 + 80041b0: d107 bne.n 80041c2 { /* Check the HSE ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 800415e: 4b47 ldr r3, [pc, #284] @ (800427c ) - 8004160: 681b ldr r3, [r3, #0] - 8004162: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8004166: 2b00 cmp r3, #0 - 8004168: d119 bne.n 800419e + 80041b2: 4b47 ldr r3, [pc, #284] @ (80042d0 ) + 80041b4: 681b ldr r3, [r3, #0] + 80041b6: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 80041ba: 2b00 cmp r3, #0 + 80041bc: d119 bne.n 80041f2 { return HAL_ERROR; - 800416a: 2301 movs r3, #1 - 800416c: e07f b.n 800426e + 80041be: 2301 movs r3, #1 + 80041c0: e07f b.n 80042c2 } } /* PLL is selected as System Clock Source */ else if ((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) || - 800416e: 687b ldr r3, [r7, #4] - 8004170: 685b ldr r3, [r3, #4] - 8004172: 2b02 cmp r3, #2 - 8004174: d003 beq.n 800417e + 80041c2: 687b ldr r3, [r7, #4] + 80041c4: 685b ldr r3, [r3, #4] + 80041c6: 2b02 cmp r3, #2 + 80041c8: d003 beq.n 80041d2 (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLRCLK)) - 8004176: 687b ldr r3, [r7, #4] - 8004178: 685b ldr r3, [r3, #4] + 80041ca: 687b ldr r3, [r7, #4] + 80041cc: 685b ldr r3, [r3, #4] else if ((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) || - 800417a: 2b03 cmp r3, #3 - 800417c: d107 bne.n 800418e + 80041ce: 2b03 cmp r3, #3 + 80041d0: d107 bne.n 80041e2 { /* Check the PLL ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 800417e: 4b3f ldr r3, [pc, #252] @ (800427c ) - 8004180: 681b ldr r3, [r3, #0] - 8004182: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8004186: 2b00 cmp r3, #0 - 8004188: d109 bne.n 800419e + 80041d2: 4b3f ldr r3, [pc, #252] @ (80042d0 ) + 80041d4: 681b ldr r3, [r3, #0] + 80041d6: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 80041da: 2b00 cmp r3, #0 + 80041dc: d109 bne.n 80041f2 { return HAL_ERROR; - 800418a: 2301 movs r3, #1 - 800418c: e06f b.n 800426e + 80041de: 2301 movs r3, #1 + 80041e0: e06f b.n 80042c2 } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 800418e: 4b3b ldr r3, [pc, #236] @ (800427c ) - 8004190: 681b ldr r3, [r3, #0] - 8004192: f003 0302 and.w r3, r3, #2 - 8004196: 2b00 cmp r3, #0 - 8004198: d101 bne.n 800419e + 80041e2: 4b3b ldr r3, [pc, #236] @ (80042d0 ) + 80041e4: 681b ldr r3, [r3, #0] + 80041e6: f003 0302 and.w r3, r3, #2 + 80041ea: 2b00 cmp r3, #0 + 80041ec: d101 bne.n 80041f2 { return HAL_ERROR; - 800419a: 2301 movs r3, #1 - 800419c: e067 b.n 800426e + 80041ee: 2301 movs r3, #1 + 80041f0: e067 b.n 80042c2 } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 800419e: 4b37 ldr r3, [pc, #220] @ (800427c ) - 80041a0: 689b ldr r3, [r3, #8] - 80041a2: f023 0203 bic.w r2, r3, #3 - 80041a6: 687b ldr r3, [r7, #4] - 80041a8: 685b ldr r3, [r3, #4] - 80041aa: 4934 ldr r1, [pc, #208] @ (800427c ) - 80041ac: 4313 orrs r3, r2 - 80041ae: 608b str r3, [r1, #8] + 80041f2: 4b37 ldr r3, [pc, #220] @ (80042d0 ) + 80041f4: 689b ldr r3, [r3, #8] + 80041f6: f023 0203 bic.w r2, r3, #3 + 80041fa: 687b ldr r3, [r7, #4] + 80041fc: 685b ldr r3, [r3, #4] + 80041fe: 4934 ldr r1, [pc, #208] @ (80042d0 ) + 8004200: 4313 orrs r3, r2 + 8004202: 608b str r3, [r1, #8] /* Get Start Tick */ tickstart = HAL_GetTick(); - 80041b0: f7fd fcb2 bl 8001b18 - 80041b4: 60f8 str r0, [r7, #12] + 8004204: f7fd fcb2 bl 8001b6c + 8004208: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 80041b6: e00a b.n 80041ce + 800420a: e00a b.n 8004222 { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 80041b8: f7fd fcae bl 8001b18 - 80041bc: 4602 mov r2, r0 - 80041be: 68fb ldr r3, [r7, #12] - 80041c0: 1ad3 subs r3, r2, r3 - 80041c2: f241 3288 movw r2, #5000 @ 0x1388 - 80041c6: 4293 cmp r3, r2 - 80041c8: d901 bls.n 80041ce + 800420c: f7fd fcae bl 8001b6c + 8004210: 4602 mov r2, r0 + 8004212: 68fb ldr r3, [r7, #12] + 8004214: 1ad3 subs r3, r2, r3 + 8004216: f241 3288 movw r2, #5000 @ 0x1388 + 800421a: 4293 cmp r3, r2 + 800421c: d901 bls.n 8004222 { return HAL_TIMEOUT; - 80041ca: 2303 movs r3, #3 - 80041cc: e04f b.n 800426e + 800421e: 2303 movs r3, #3 + 8004220: e04f b.n 80042c2 while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 80041ce: 4b2b ldr r3, [pc, #172] @ (800427c ) - 80041d0: 689b ldr r3, [r3, #8] - 80041d2: f003 020c and.w r2, r3, #12 - 80041d6: 687b ldr r3, [r7, #4] - 80041d8: 685b ldr r3, [r3, #4] - 80041da: 009b lsls r3, r3, #2 - 80041dc: 429a cmp r2, r3 - 80041de: d1eb bne.n 80041b8 + 8004222: 4b2b ldr r3, [pc, #172] @ (80042d0 ) + 8004224: 689b ldr r3, [r3, #8] + 8004226: f003 020c and.w r2, r3, #12 + 800422a: 687b ldr r3, [r7, #4] + 800422c: 685b ldr r3, [r3, #4] + 800422e: 009b lsls r3, r3, #2 + 8004230: 429a cmp r2, r3 + 8004232: d1eb bne.n 800420c } } } /* Decreasing the number of wait states because of lower CPU frequency */ if (FLatency < __HAL_FLASH_GET_LATENCY()) - 80041e0: 4b25 ldr r3, [pc, #148] @ (8004278 ) - 80041e2: 681b ldr r3, [r3, #0] - 80041e4: f003 030f and.w r3, r3, #15 - 80041e8: 683a ldr r2, [r7, #0] - 80041ea: 429a cmp r2, r3 - 80041ec: d20c bcs.n 8004208 + 8004234: 4b25 ldr r3, [pc, #148] @ (80042cc ) + 8004236: 681b ldr r3, [r3, #0] + 8004238: f003 030f and.w r3, r3, #15 + 800423c: 683a ldr r2, [r7, #0] + 800423e: 429a cmp r2, r3 + 8004240: d20c bcs.n 800425c { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 80041ee: 4b22 ldr r3, [pc, #136] @ (8004278 ) - 80041f0: 683a ldr r2, [r7, #0] - 80041f2: b2d2 uxtb r2, r2 - 80041f4: 701a strb r2, [r3, #0] + 8004242: 4b22 ldr r3, [pc, #136] @ (80042cc ) + 8004244: 683a ldr r2, [r7, #0] + 8004246: b2d2 uxtb r2, r2 + 8004248: 701a strb 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) - 80041f6: 4b20 ldr r3, [pc, #128] @ (8004278 ) - 80041f8: 681b ldr r3, [r3, #0] - 80041fa: f003 030f and.w r3, r3, #15 - 80041fe: 683a ldr r2, [r7, #0] - 8004200: 429a cmp r2, r3 - 8004202: d001 beq.n 8004208 + 800424a: 4b20 ldr r3, [pc, #128] @ (80042cc ) + 800424c: 681b ldr r3, [r3, #0] + 800424e: f003 030f and.w r3, r3, #15 + 8004252: 683a ldr r2, [r7, #0] + 8004254: 429a cmp r2, r3 + 8004256: d001 beq.n 800425c { return HAL_ERROR; - 8004204: 2301 movs r3, #1 - 8004206: e032 b.n 800426e + 8004258: 2301 movs r3, #1 + 800425a: e032 b.n 80042c2 } } /*-------------------------- PCLK1 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 8004208: 687b ldr r3, [r7, #4] - 800420a: 681b ldr r3, [r3, #0] - 800420c: f003 0304 and.w r3, r3, #4 - 8004210: 2b00 cmp r3, #0 - 8004212: d008 beq.n 8004226 + 800425c: 687b ldr r3, [r7, #4] + 800425e: 681b ldr r3, [r3, #0] + 8004260: f003 0304 and.w r3, r3, #4 + 8004264: 2b00 cmp r3, #0 + 8004266: d008 beq.n 800427a { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); - 8004214: 4b19 ldr r3, [pc, #100] @ (800427c ) - 8004216: 689b ldr r3, [r3, #8] - 8004218: f423 52e0 bic.w r2, r3, #7168 @ 0x1c00 - 800421c: 687b ldr r3, [r7, #4] - 800421e: 68db ldr r3, [r3, #12] - 8004220: 4916 ldr r1, [pc, #88] @ (800427c ) - 8004222: 4313 orrs r3, r2 - 8004224: 608b str r3, [r1, #8] + 8004268: 4b19 ldr r3, [pc, #100] @ (80042d0 ) + 800426a: 689b ldr r3, [r3, #8] + 800426c: f423 52e0 bic.w r2, r3, #7168 @ 0x1c00 + 8004270: 687b ldr r3, [r7, #4] + 8004272: 68db ldr r3, [r3, #12] + 8004274: 4916 ldr r1, [pc, #88] @ (80042d0 ) + 8004276: 4313 orrs r3, r2 + 8004278: 608b str r3, [r1, #8] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8004226: 687b ldr r3, [r7, #4] - 8004228: 681b ldr r3, [r3, #0] - 800422a: f003 0308 and.w r3, r3, #8 - 800422e: 2b00 cmp r3, #0 - 8004230: d009 beq.n 8004246 + 800427a: 687b ldr r3, [r7, #4] + 800427c: 681b ldr r3, [r3, #0] + 800427e: f003 0308 and.w r3, r3, #8 + 8004282: 2b00 cmp r3, #0 + 8004284: d009 beq.n 800429a { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3U)); - 8004232: 4b12 ldr r3, [pc, #72] @ (800427c ) - 8004234: 689b ldr r3, [r3, #8] - 8004236: f423 4260 bic.w r2, r3, #57344 @ 0xe000 - 800423a: 687b ldr r3, [r7, #4] - 800423c: 691b ldr r3, [r3, #16] - 800423e: 00db lsls r3, r3, #3 - 8004240: 490e ldr r1, [pc, #56] @ (800427c ) - 8004242: 4313 orrs r3, r2 - 8004244: 608b str r3, [r1, #8] + 8004286: 4b12 ldr r3, [pc, #72] @ (80042d0 ) + 8004288: 689b ldr r3, [r3, #8] + 800428a: f423 4260 bic.w r2, r3, #57344 @ 0xe000 + 800428e: 687b ldr r3, [r7, #4] + 8004290: 691b ldr r3, [r3, #16] + 8004292: 00db lsls r3, r3, #3 + 8004294: 490e ldr r1, [pc, #56] @ (80042d0 ) + 8004296: 4313 orrs r3, r2 + 8004298: 608b str r3, [r1, #8] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]; - 8004246: f000 fb7f bl 8004948 - 800424a: 4602 mov r2, r0 - 800424c: 4b0b ldr r3, [pc, #44] @ (800427c ) - 800424e: 689b ldr r3, [r3, #8] - 8004250: 091b lsrs r3, r3, #4 - 8004252: f003 030f and.w r3, r3, #15 - 8004256: 490a ldr r1, [pc, #40] @ (8004280 ) - 8004258: 5ccb ldrb r3, [r1, r3] - 800425a: fa22 f303 lsr.w r3, r2, r3 - 800425e: 4a09 ldr r2, [pc, #36] @ (8004284 ) - 8004260: 6013 str r3, [r2, #0] + 800429a: f000 fb7f bl 800499c + 800429e: 4602 mov r2, r0 + 80042a0: 4b0b ldr r3, [pc, #44] @ (80042d0 ) + 80042a2: 689b ldr r3, [r3, #8] + 80042a4: 091b lsrs r3, r3, #4 + 80042a6: f003 030f and.w r3, r3, #15 + 80042aa: 490a ldr r1, [pc, #40] @ (80042d4 ) + 80042ac: 5ccb ldrb r3, [r1, r3] + 80042ae: fa22 f303 lsr.w r3, r2, r3 + 80042b2: 4a09 ldr r2, [pc, #36] @ (80042d8 ) + 80042b4: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings */ HAL_InitTick(uwTickPrio); - 8004262: 4b09 ldr r3, [pc, #36] @ (8004288 ) - 8004264: 681b ldr r3, [r3, #0] - 8004266: 4618 mov r0, r3 - 8004268: f7fd fc12 bl 8001a90 + 80042b6: 4b09 ldr r3, [pc, #36] @ (80042dc ) + 80042b8: 681b ldr r3, [r3, #0] + 80042ba: 4618 mov r0, r3 + 80042bc: f7fd fc12 bl 8001ae4 return HAL_OK; - 800426c: 2300 movs r3, #0 + 80042c0: 2300 movs r3, #0 } - 800426e: 4618 mov r0, r3 - 8004270: 3710 adds r7, #16 - 8004272: 46bd mov sp, r7 - 8004274: bd80 pop {r7, pc} - 8004276: bf00 nop - 8004278: 40023c00 .word 0x40023c00 - 800427c: 40023800 .word 0x40023800 - 8004280: 0800aac0 .word 0x0800aac0 - 8004284: 20000090 .word 0x20000090 - 8004288: 20000094 .word 0x20000094 + 80042c2: 4618 mov r0, r3 + 80042c4: 3710 adds r7, #16 + 80042c6: 46bd mov sp, r7 + 80042c8: bd80 pop {r7, pc} + 80042ca: bf00 nop + 80042cc: 40023c00 .word 0x40023c00 + 80042d0: 40023800 .word 0x40023800 + 80042d4: 0800ab14 .word 0x0800ab14 + 80042d8: 20000090 .word 0x20000090 + 80042dc: 20000094 .word 0x20000094 -0800428c : +080042e0 : * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency * and updated within this function * @retval HCLK frequency */ uint32_t HAL_RCC_GetHCLKFreq(void) { - 800428c: b480 push {r7} - 800428e: af00 add r7, sp, #0 + 80042e0: b480 push {r7} + 80042e2: af00 add r7, sp, #0 return SystemCoreClock; - 8004290: 4b03 ldr r3, [pc, #12] @ (80042a0 ) - 8004292: 681b ldr r3, [r3, #0] + 80042e4: 4b03 ldr r3, [pc, #12] @ (80042f4 ) + 80042e6: 681b ldr r3, [r3, #0] } - 8004294: 4618 mov r0, r3 - 8004296: 46bd mov sp, r7 - 8004298: f85d 7b04 ldr.w r7, [sp], #4 - 800429c: 4770 bx lr - 800429e: bf00 nop - 80042a0: 20000090 .word 0x20000090 + 80042e8: 4618 mov r0, r3 + 80042ea: 46bd mov sp, r7 + 80042ec: f85d 7b04 ldr.w r7, [sp], #4 + 80042f0: 4770 bx lr + 80042f2: bf00 nop + 80042f4: 20000090 .word 0x20000090 -080042a4 : +080042f8 : * @note Each time PCLK1 changes, this function must be called to update the * right PCLK1 value. Otherwise, any configuration based on this function will be incorrect. * @retval PCLK1 frequency */ uint32_t HAL_RCC_GetPCLK1Freq(void) { - 80042a4: b580 push {r7, lr} - 80042a6: af00 add r7, sp, #0 + 80042f8: b580 push {r7, lr} + 80042fa: af00 add r7, sp, #0 /* Get HCLK source and Compute PCLK1 frequency ---------------------------*/ return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE1) >> RCC_CFGR_PPRE1_Pos]); - 80042a8: f7ff fff0 bl 800428c - 80042ac: 4602 mov r2, r0 - 80042ae: 4b05 ldr r3, [pc, #20] @ (80042c4 ) - 80042b0: 689b ldr r3, [r3, #8] - 80042b2: 0a9b lsrs r3, r3, #10 - 80042b4: f003 0307 and.w r3, r3, #7 - 80042b8: 4903 ldr r1, [pc, #12] @ (80042c8 ) - 80042ba: 5ccb ldrb r3, [r1, r3] - 80042bc: fa22 f303 lsr.w r3, r2, r3 + 80042fc: f7ff fff0 bl 80042e0 + 8004300: 4602 mov r2, r0 + 8004302: 4b05 ldr r3, [pc, #20] @ (8004318 ) + 8004304: 689b ldr r3, [r3, #8] + 8004306: 0a9b lsrs r3, r3, #10 + 8004308: f003 0307 and.w r3, r3, #7 + 800430c: 4903 ldr r1, [pc, #12] @ (800431c ) + 800430e: 5ccb ldrb r3, [r1, r3] + 8004310: fa22 f303 lsr.w r3, r2, r3 } - 80042c0: 4618 mov r0, r3 - 80042c2: bd80 pop {r7, pc} - 80042c4: 40023800 .word 0x40023800 - 80042c8: 0800aad0 .word 0x0800aad0 + 8004314: 4618 mov r0, r3 + 8004316: bd80 pop {r7, pc} + 8004318: 40023800 .word 0x40023800 + 800431c: 0800ab24 .word 0x0800ab24 -080042cc : +08004320 : * @note Each time PCLK2 changes, this function must be called to update the * right PCLK2 value. Otherwise, any configuration based on this function will be incorrect. * @retval PCLK2 frequency */ uint32_t HAL_RCC_GetPCLK2Freq(void) { - 80042cc: b580 push {r7, lr} - 80042ce: af00 add r7, sp, #0 + 8004320: b580 push {r7, lr} + 8004322: af00 add r7, sp, #0 /* Get HCLK source and Compute PCLK2 frequency ---------------------------*/ return (HAL_RCC_GetHCLKFreq() >> APBPrescTable[(RCC->CFGR & RCC_CFGR_PPRE2) >> RCC_CFGR_PPRE2_Pos]); - 80042d0: f7ff ffdc bl 800428c - 80042d4: 4602 mov r2, r0 - 80042d6: 4b05 ldr r3, [pc, #20] @ (80042ec ) - 80042d8: 689b ldr r3, [r3, #8] - 80042da: 0b5b lsrs r3, r3, #13 - 80042dc: f003 0307 and.w r3, r3, #7 - 80042e0: 4903 ldr r1, [pc, #12] @ (80042f0 ) - 80042e2: 5ccb ldrb r3, [r1, r3] - 80042e4: fa22 f303 lsr.w r3, r2, r3 + 8004324: f7ff ffdc bl 80042e0 + 8004328: 4602 mov r2, r0 + 800432a: 4b05 ldr r3, [pc, #20] @ (8004340 ) + 800432c: 689b ldr r3, [r3, #8] + 800432e: 0b5b lsrs r3, r3, #13 + 8004330: f003 0307 and.w r3, r3, #7 + 8004334: 4903 ldr r1, [pc, #12] @ (8004344 ) + 8004336: 5ccb ldrb r3, [r1, r3] + 8004338: fa22 f303 lsr.w r3, r2, r3 } - 80042e8: 4618 mov r0, r3 - 80042ea: bd80 pop {r7, pc} - 80042ec: 40023800 .word 0x40023800 - 80042f0: 0800aad0 .word 0x0800aad0 + 800433c: 4618 mov r0, r3 + 800433e: bd80 pop {r7, pc} + 8004340: 40023800 .word 0x40023800 + 8004344: 0800ab24 .word 0x0800ab24 -080042f4 : +08004348 : * the backup registers) and RCC_BDCR register are set to their reset values. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { - 80042f4: b580 push {r7, lr} - 80042f6: b08c sub sp, #48 @ 0x30 - 80042f8: af00 add r7, sp, #0 - 80042fa: 6078 str r0, [r7, #4] + 8004348: b580 push {r7, lr} + 800434a: b08c sub sp, #48 @ 0x30 + 800434c: af00 add r7, sp, #0 + 800434e: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; - 80042fc: 2300 movs r3, #0 - 80042fe: 627b str r3, [r7, #36] @ 0x24 + 8004350: 2300 movs r3, #0 + 8004352: 627b str r3, [r7, #36] @ 0x24 uint32_t tmpreg1 = 0U; - 8004300: 2300 movs r3, #0 - 8004302: 623b str r3, [r7, #32] + 8004354: 2300 movs r3, #0 + 8004356: 623b str r3, [r7, #32] uint32_t plli2sp = 0U; - 8004304: 2300 movs r3, #0 - 8004306: 61fb str r3, [r7, #28] + 8004358: 2300 movs r3, #0 + 800435a: 61fb str r3, [r7, #28] uint32_t plli2sq = 0U; - 8004308: 2300 movs r3, #0 - 800430a: 61bb str r3, [r7, #24] + 800435c: 2300 movs r3, #0 + 800435e: 61bb str r3, [r7, #24] uint32_t plli2sr = 0U; - 800430c: 2300 movs r3, #0 - 800430e: 617b str r3, [r7, #20] + 8004360: 2300 movs r3, #0 + 8004362: 617b str r3, [r7, #20] uint32_t pllsaip = 0U; - 8004310: 2300 movs r3, #0 - 8004312: 613b str r3, [r7, #16] + 8004364: 2300 movs r3, #0 + 8004366: 613b str r3, [r7, #16] uint32_t pllsaiq = 0U; - 8004314: 2300 movs r3, #0 - 8004316: 60fb str r3, [r7, #12] + 8004368: 2300 movs r3, #0 + 800436a: 60fb str r3, [r7, #12] uint32_t plli2sused = 0U; - 8004318: 2300 movs r3, #0 - 800431a: 62fb str r3, [r7, #44] @ 0x2c + 800436c: 2300 movs r3, #0 + 800436e: 62fb str r3, [r7, #44] @ 0x2c uint32_t pllsaiused = 0U; - 800431c: 2300 movs r3, #0 - 800431e: 62bb str r3, [r7, #40] @ 0x28 + 8004370: 2300 movs r3, #0 + 8004372: 62bb str r3, [r7, #40] @ 0x28 /* Check the peripheral clock selection parameters */ assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection)); /*------------------------ I2S APB1 configuration --------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB1) == (RCC_PERIPHCLK_I2S_APB1)) - 8004320: 687b ldr r3, [r7, #4] - 8004322: 681b ldr r3, [r3, #0] - 8004324: f003 0301 and.w r3, r3, #1 - 8004328: 2b00 cmp r3, #0 - 800432a: d010 beq.n 800434e + 8004374: 687b ldr r3, [r7, #4] + 8004376: 681b ldr r3, [r3, #0] + 8004378: f003 0301 and.w r3, r3, #1 + 800437c: 2b00 cmp r3, #0 + 800437e: d010 beq.n 80043a2 { /* Check the parameters */ assert_param(IS_RCC_I2SAPB1CLKSOURCE(PeriphClkInit->I2sApb1ClockSelection)); /* Configure I2S Clock source */ __HAL_RCC_I2S_APB1_CONFIG(PeriphClkInit->I2sApb1ClockSelection); - 800432c: 4b6f ldr r3, [pc, #444] @ (80044ec ) - 800432e: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 8004332: f023 62c0 bic.w r2, r3, #100663296 @ 0x6000000 - 8004336: 687b ldr r3, [r7, #4] - 8004338: 6b9b ldr r3, [r3, #56] @ 0x38 - 800433a: 496c ldr r1, [pc, #432] @ (80044ec ) - 800433c: 4313 orrs r3, r2 - 800433e: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 8004380: 4b6f ldr r3, [pc, #444] @ (8004540 ) + 8004382: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 8004386: f023 62c0 bic.w r2, r3, #100663296 @ 0x6000000 + 800438a: 687b ldr r3, [r7, #4] + 800438c: 6b9b ldr r3, [r3, #56] @ 0x38 + 800438e: 496c ldr r1, [pc, #432] @ (8004540 ) + 8004390: 4313 orrs r3, r2 + 8004392: f8c1 308c str.w r3, [r1, #140] @ 0x8c /* Enable the PLLI2S when it's used as clock source for I2S */ if (PeriphClkInit->I2sApb1ClockSelection == RCC_I2SAPB1CLKSOURCE_PLLI2S) - 8004342: 687b ldr r3, [r7, #4] - 8004344: 6b9b ldr r3, [r3, #56] @ 0x38 - 8004346: 2b00 cmp r3, #0 - 8004348: d101 bne.n 800434e + 8004396: 687b ldr r3, [r7, #4] + 8004398: 6b9b ldr r3, [r3, #56] @ 0x38 + 800439a: 2b00 cmp r3, #0 + 800439c: d101 bne.n 80043a2 { plli2sused = 1U; - 800434a: 2301 movs r3, #1 - 800434c: 62fb str r3, [r7, #44] @ 0x2c + 800439e: 2301 movs r3, #1 + 80043a0: 62fb str r3, [r7, #44] @ 0x2c } } /*--------------------------------------------------------------------------*/ /*---------------------------- I2S APB2 configuration ----------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == (RCC_PERIPHCLK_I2S_APB2)) - 800434e: 687b ldr r3, [r7, #4] - 8004350: 681b ldr r3, [r3, #0] - 8004352: f003 0302 and.w r3, r3, #2 - 8004356: 2b00 cmp r3, #0 - 8004358: d010 beq.n 800437c + 80043a2: 687b ldr r3, [r7, #4] + 80043a4: 681b ldr r3, [r3, #0] + 80043a6: f003 0302 and.w r3, r3, #2 + 80043aa: 2b00 cmp r3, #0 + 80043ac: d010 beq.n 80043d0 { /* Check the parameters */ assert_param(IS_RCC_I2SAPB2CLKSOURCE(PeriphClkInit->I2sApb2ClockSelection)); /* Configure I2S Clock source */ __HAL_RCC_I2S_APB2_CONFIG(PeriphClkInit->I2sApb2ClockSelection); - 800435a: 4b64 ldr r3, [pc, #400] @ (80044ec ) - 800435c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 8004360: f023 52c0 bic.w r2, r3, #402653184 @ 0x18000000 - 8004364: 687b ldr r3, [r7, #4] - 8004366: 6bdb ldr r3, [r3, #60] @ 0x3c - 8004368: 4960 ldr r1, [pc, #384] @ (80044ec ) - 800436a: 4313 orrs r3, r2 - 800436c: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 80043ae: 4b64 ldr r3, [pc, #400] @ (8004540 ) + 80043b0: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 80043b4: f023 52c0 bic.w r2, r3, #402653184 @ 0x18000000 + 80043b8: 687b ldr r3, [r7, #4] + 80043ba: 6bdb ldr r3, [r3, #60] @ 0x3c + 80043bc: 4960 ldr r1, [pc, #384] @ (8004540 ) + 80043be: 4313 orrs r3, r2 + 80043c0: f8c1 308c str.w r3, [r1, #140] @ 0x8c /* Enable the PLLI2S when it's used as clock source for I2S */ if (PeriphClkInit->I2sApb2ClockSelection == RCC_I2SAPB2CLKSOURCE_PLLI2S) - 8004370: 687b ldr r3, [r7, #4] - 8004372: 6bdb ldr r3, [r3, #60] @ 0x3c - 8004374: 2b00 cmp r3, #0 - 8004376: d101 bne.n 800437c + 80043c4: 687b ldr r3, [r7, #4] + 80043c6: 6bdb ldr r3, [r3, #60] @ 0x3c + 80043c8: 2b00 cmp r3, #0 + 80043ca: d101 bne.n 80043d0 { plli2sused = 1U; - 8004378: 2301 movs r3, #1 - 800437a: 62fb str r3, [r7, #44] @ 0x2c + 80043cc: 2301 movs r3, #1 + 80043ce: 62fb str r3, [r7, #44] @ 0x2c } } /*--------------------------------------------------------------------------*/ /*--------------------------- SAI1 configuration ---------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == (RCC_PERIPHCLK_SAI1)) - 800437c: 687b ldr r3, [r7, #4] - 800437e: 681b ldr r3, [r3, #0] - 8004380: f003 0304 and.w r3, r3, #4 - 8004384: 2b00 cmp r3, #0 - 8004386: d017 beq.n 80043b8 + 80043d0: 687b ldr r3, [r7, #4] + 80043d2: 681b ldr r3, [r3, #0] + 80043d4: f003 0304 and.w r3, r3, #4 + 80043d8: 2b00 cmp r3, #0 + 80043da: d017 beq.n 800440c { /* Check the parameters */ assert_param(IS_RCC_SAI1CLKSOURCE(PeriphClkInit->Sai1ClockSelection)); /* Configure SAI1 Clock source */ __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection); - 8004388: 4b58 ldr r3, [pc, #352] @ (80044ec ) - 800438a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 800438e: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 - 8004392: 687b ldr r3, [r7, #4] - 8004394: 6b1b ldr r3, [r3, #48] @ 0x30 - 8004396: 4955 ldr r1, [pc, #340] @ (80044ec ) - 8004398: 4313 orrs r3, r2 - 800439a: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 80043dc: 4b58 ldr r3, [pc, #352] @ (8004540 ) + 80043de: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 80043e2: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 + 80043e6: 687b ldr r3, [r7, #4] + 80043e8: 6b1b ldr r3, [r3, #48] @ 0x30 + 80043ea: 4955 ldr r1, [pc, #340] @ (8004540 ) + 80043ec: 4313 orrs r3, r2 + 80043ee: f8c1 308c str.w r3, [r1, #140] @ 0x8c /* Enable the PLLI2S when it's used as clock source for SAI */ if (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S) - 800439e: 687b ldr r3, [r7, #4] - 80043a0: 6b1b ldr r3, [r3, #48] @ 0x30 - 80043a2: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 - 80043a6: d101 bne.n 80043ac + 80043f2: 687b ldr r3, [r7, #4] + 80043f4: 6b1b ldr r3, [r3, #48] @ 0x30 + 80043f6: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 + 80043fa: d101 bne.n 8004400 { plli2sused = 1U; - 80043a8: 2301 movs r3, #1 - 80043aa: 62fb str r3, [r7, #44] @ 0x2c + 80043fc: 2301 movs r3, #1 + 80043fe: 62fb str r3, [r7, #44] @ 0x2c } /* Enable the PLLSAI when it's used as clock source for SAI */ if (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI) - 80043ac: 687b ldr r3, [r7, #4] - 80043ae: 6b1b ldr r3, [r3, #48] @ 0x30 - 80043b0: 2b00 cmp r3, #0 - 80043b2: d101 bne.n 80043b8 + 8004400: 687b ldr r3, [r7, #4] + 8004402: 6b1b ldr r3, [r3, #48] @ 0x30 + 8004404: 2b00 cmp r3, #0 + 8004406: d101 bne.n 800440c { pllsaiused = 1U; - 80043b4: 2301 movs r3, #1 - 80043b6: 62bb str r3, [r7, #40] @ 0x28 + 8004408: 2301 movs r3, #1 + 800440a: 62bb str r3, [r7, #40] @ 0x28 } } /*--------------------------------------------------------------------------*/ /*-------------------------- SAI2 configuration ----------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == (RCC_PERIPHCLK_SAI2)) - 80043b8: 687b ldr r3, [r7, #4] - 80043ba: 681b ldr r3, [r3, #0] - 80043bc: f003 0308 and.w r3, r3, #8 - 80043c0: 2b00 cmp r3, #0 - 80043c2: d017 beq.n 80043f4 + 800440c: 687b ldr r3, [r7, #4] + 800440e: 681b ldr r3, [r3, #0] + 8004410: f003 0308 and.w r3, r3, #8 + 8004414: 2b00 cmp r3, #0 + 8004416: d017 beq.n 8004448 { /* Check the parameters */ assert_param(IS_RCC_SAI2CLKSOURCE(PeriphClkInit->Sai2ClockSelection)); /* Configure SAI2 Clock source */ __HAL_RCC_SAI2_CONFIG(PeriphClkInit->Sai2ClockSelection); - 80043c4: 4b49 ldr r3, [pc, #292] @ (80044ec ) - 80043c6: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 80043ca: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 - 80043ce: 687b ldr r3, [r7, #4] - 80043d0: 6b5b ldr r3, [r3, #52] @ 0x34 - 80043d2: 4946 ldr r1, [pc, #280] @ (80044ec ) - 80043d4: 4313 orrs r3, r2 - 80043d6: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 8004418: 4b49 ldr r3, [pc, #292] @ (8004540 ) + 800441a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 800441e: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 + 8004422: 687b ldr r3, [r7, #4] + 8004424: 6b5b ldr r3, [r3, #52] @ 0x34 + 8004426: 4946 ldr r1, [pc, #280] @ (8004540 ) + 8004428: 4313 orrs r3, r2 + 800442a: f8c1 308c str.w r3, [r1, #140] @ 0x8c /* Enable the PLLI2S when it's used as clock source for SAI */ if (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S) - 80043da: 687b ldr r3, [r7, #4] - 80043dc: 6b5b ldr r3, [r3, #52] @ 0x34 - 80043de: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 80043e2: d101 bne.n 80043e8 + 800442e: 687b ldr r3, [r7, #4] + 8004430: 6b5b ldr r3, [r3, #52] @ 0x34 + 8004432: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 8004436: d101 bne.n 800443c { plli2sused = 1U; - 80043e4: 2301 movs r3, #1 - 80043e6: 62fb str r3, [r7, #44] @ 0x2c + 8004438: 2301 movs r3, #1 + 800443a: 62fb str r3, [r7, #44] @ 0x2c } /* Enable the PLLSAI when it's used as clock source for SAI */ if (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI) - 80043e8: 687b ldr r3, [r7, #4] - 80043ea: 6b5b ldr r3, [r3, #52] @ 0x34 - 80043ec: 2b00 cmp r3, #0 - 80043ee: d101 bne.n 80043f4 + 800443c: 687b ldr r3, [r7, #4] + 800443e: 6b5b ldr r3, [r3, #52] @ 0x34 + 8004440: 2b00 cmp r3, #0 + 8004442: d101 bne.n 8004448 { pllsaiused = 1U; - 80043f0: 2301 movs r3, #1 - 80043f2: 62bb str r3, [r7, #40] @ 0x28 + 8004444: 2301 movs r3, #1 + 8004446: 62bb str r3, [r7, #40] @ 0x28 } } /*--------------------------------------------------------------------------*/ /*----------------------------- RTC configuration --------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) - 80043f4: 687b ldr r3, [r7, #4] - 80043f6: 681b ldr r3, [r3, #0] - 80043f8: f003 0320 and.w r3, r3, #32 - 80043fc: 2b00 cmp r3, #0 - 80043fe: f000 808a beq.w 8004516 + 8004448: 687b ldr r3, [r7, #4] + 800444a: 681b ldr r3, [r3, #0] + 800444c: f003 0320 and.w r3, r3, #32 + 8004450: 2b00 cmp r3, #0 + 8004452: f000 808a beq.w 800456a { /* Check for RTC Parameters used to output RTCCLK */ assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); /* Enable Power Clock*/ __HAL_RCC_PWR_CLK_ENABLE(); - 8004402: 2300 movs r3, #0 - 8004404: 60bb str r3, [r7, #8] - 8004406: 4b39 ldr r3, [pc, #228] @ (80044ec ) - 8004408: 6c1b ldr r3, [r3, #64] @ 0x40 - 800440a: 4a38 ldr r2, [pc, #224] @ (80044ec ) - 800440c: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8004410: 6413 str r3, [r2, #64] @ 0x40 - 8004412: 4b36 ldr r3, [pc, #216] @ (80044ec ) - 8004414: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004416: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 800441a: 60bb str r3, [r7, #8] - 800441c: 68bb ldr r3, [r7, #8] + 8004456: 2300 movs r3, #0 + 8004458: 60bb str r3, [r7, #8] + 800445a: 4b39 ldr r3, [pc, #228] @ (8004540 ) + 800445c: 6c1b ldr r3, [r3, #64] @ 0x40 + 800445e: 4a38 ldr r2, [pc, #224] @ (8004540 ) + 8004460: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8004464: 6413 str r3, [r2, #64] @ 0x40 + 8004466: 4b36 ldr r3, [pc, #216] @ (8004540 ) + 8004468: 6c1b ldr r3, [r3, #64] @ 0x40 + 800446a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 800446e: 60bb str r3, [r7, #8] + 8004470: 68bb ldr r3, [r7, #8] /* Enable write access to Backup domain */ PWR->CR |= PWR_CR_DBP; - 800441e: 4b34 ldr r3, [pc, #208] @ (80044f0 ) - 8004420: 681b ldr r3, [r3, #0] - 8004422: 4a33 ldr r2, [pc, #204] @ (80044f0 ) - 8004424: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8004428: 6013 str r3, [r2, #0] + 8004472: 4b34 ldr r3, [pc, #208] @ (8004544 ) + 8004474: 681b ldr r3, [r3, #0] + 8004476: 4a33 ldr r2, [pc, #204] @ (8004544 ) + 8004478: f443 7380 orr.w r3, r3, #256 @ 0x100 + 800447c: 6013 str r3, [r2, #0] /* Get tick */ tickstart = HAL_GetTick(); - 800442a: f7fd fb75 bl 8001b18 - 800442e: 6278 str r0, [r7, #36] @ 0x24 + 800447e: f7fd fb75 bl 8001b6c + 8004482: 6278 str r0, [r7, #36] @ 0x24 while ((PWR->CR & PWR_CR_DBP) == RESET) - 8004430: e008 b.n 8004444 + 8004484: e008 b.n 8004498 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 8004432: f7fd fb71 bl 8001b18 - 8004436: 4602 mov r2, r0 - 8004438: 6a7b ldr r3, [r7, #36] @ 0x24 - 800443a: 1ad3 subs r3, r2, r3 - 800443c: 2b02 cmp r3, #2 - 800443e: d901 bls.n 8004444 + 8004486: f7fd fb71 bl 8001b6c + 800448a: 4602 mov r2, r0 + 800448c: 6a7b ldr r3, [r7, #36] @ 0x24 + 800448e: 1ad3 subs r3, r2, r3 + 8004490: 2b02 cmp r3, #2 + 8004492: d901 bls.n 8004498 { return HAL_TIMEOUT; - 8004440: 2303 movs r3, #3 - 8004442: e278 b.n 8004936 + 8004494: 2303 movs r3, #3 + 8004496: e278 b.n 800498a while ((PWR->CR & PWR_CR_DBP) == RESET) - 8004444: 4b2a ldr r3, [pc, #168] @ (80044f0 ) - 8004446: 681b ldr r3, [r3, #0] - 8004448: f403 7380 and.w r3, r3, #256 @ 0x100 - 800444c: 2b00 cmp r3, #0 - 800444e: d0f0 beq.n 8004432 + 8004498: 4b2a ldr r3, [pc, #168] @ (8004544 ) + 800449a: 681b ldr r3, [r3, #0] + 800449c: f403 7380 and.w r3, r3, #256 @ 0x100 + 80044a0: 2b00 cmp r3, #0 + 80044a2: d0f0 beq.n 8004486 } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ tmpreg1 = (RCC->BDCR & RCC_BDCR_RTCSEL); - 8004450: 4b26 ldr r3, [pc, #152] @ (80044ec ) - 8004452: 6f1b ldr r3, [r3, #112] @ 0x70 - 8004454: f403 7340 and.w r3, r3, #768 @ 0x300 - 8004458: 623b str r3, [r7, #32] + 80044a4: 4b26 ldr r3, [pc, #152] @ (8004540 ) + 80044a6: 6f1b ldr r3, [r3, #112] @ 0x70 + 80044a8: f403 7340 and.w r3, r3, #768 @ 0x300 + 80044ac: 623b str r3, [r7, #32] if ((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) - 800445a: 6a3b ldr r3, [r7, #32] - 800445c: 2b00 cmp r3, #0 - 800445e: d02f beq.n 80044c0 - 8004460: 687b ldr r3, [r7, #4] - 8004462: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004464: f403 7340 and.w r3, r3, #768 @ 0x300 - 8004468: 6a3a ldr r2, [r7, #32] - 800446a: 429a cmp r2, r3 - 800446c: d028 beq.n 80044c0 + 80044ae: 6a3b ldr r3, [r7, #32] + 80044b0: 2b00 cmp r3, #0 + 80044b2: d02f beq.n 8004514 + 80044b4: 687b ldr r3, [r7, #4] + 80044b6: 6c1b ldr r3, [r3, #64] @ 0x40 + 80044b8: f403 7340 and.w r3, r3, #768 @ 0x300 + 80044bc: 6a3a ldr r2, [r7, #32] + 80044be: 429a cmp r2, r3 + 80044c0: d028 beq.n 8004514 { /* Store the content of BDCR register before the reset of Backup Domain */ tmpreg1 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); - 800446e: 4b1f ldr r3, [pc, #124] @ (80044ec ) - 8004470: 6f1b ldr r3, [r3, #112] @ 0x70 - 8004472: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8004476: 623b str r3, [r7, #32] + 80044c2: 4b1f ldr r3, [pc, #124] @ (8004540 ) + 80044c4: 6f1b ldr r3, [r3, #112] @ 0x70 + 80044c6: f423 7340 bic.w r3, r3, #768 @ 0x300 + 80044ca: 623b str r3, [r7, #32] /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); - 8004478: 4b1e ldr r3, [pc, #120] @ (80044f4 ) - 800447a: 2201 movs r2, #1 - 800447c: 601a str r2, [r3, #0] + 80044cc: 4b1e ldr r3, [pc, #120] @ (8004548 ) + 80044ce: 2201 movs r2, #1 + 80044d0: 601a str r2, [r3, #0] __HAL_RCC_BACKUPRESET_RELEASE(); - 800447e: 4b1d ldr r3, [pc, #116] @ (80044f4 ) - 8004480: 2200 movs r2, #0 - 8004482: 601a str r2, [r3, #0] + 80044d2: 4b1d ldr r3, [pc, #116] @ (8004548 ) + 80044d4: 2200 movs r2, #0 + 80044d6: 601a str r2, [r3, #0] /* Restore the Content of BDCR register */ RCC->BDCR = tmpreg1; - 8004484: 4a19 ldr r2, [pc, #100] @ (80044ec ) - 8004486: 6a3b ldr r3, [r7, #32] - 8004488: 6713 str r3, [r2, #112] @ 0x70 + 80044d8: 4a19 ldr r2, [pc, #100] @ (8004540 ) + 80044da: 6a3b ldr r3, [r7, #32] + 80044dc: 6713 str r3, [r2, #112] @ 0x70 /* Wait for LSE reactivation if LSE was enable prior to Backup Domain reset */ if (HAL_IS_BIT_SET(RCC->BDCR, RCC_BDCR_LSEON)) - 800448a: 4b18 ldr r3, [pc, #96] @ (80044ec ) - 800448c: 6f1b ldr r3, [r3, #112] @ 0x70 - 800448e: f003 0301 and.w r3, r3, #1 - 8004492: 2b01 cmp r3, #1 - 8004494: d114 bne.n 80044c0 + 80044de: 4b18 ldr r3, [pc, #96] @ (8004540 ) + 80044e0: 6f1b ldr r3, [r3, #112] @ 0x70 + 80044e2: f003 0301 and.w r3, r3, #1 + 80044e6: 2b01 cmp r3, #1 + 80044e8: d114 bne.n 8004514 { /* Get tick */ tickstart = HAL_GetTick(); - 8004496: f7fd fb3f bl 8001b18 - 800449a: 6278 str r0, [r7, #36] @ 0x24 + 80044ea: f7fd fb3f bl 8001b6c + 80044ee: 6278 str r0, [r7, #36] @ 0x24 /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 800449c: e00a b.n 80044b4 + 80044f0: e00a b.n 8004508 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 800449e: f7fd fb3b bl 8001b18 - 80044a2: 4602 mov r2, r0 - 80044a4: 6a7b ldr r3, [r7, #36] @ 0x24 - 80044a6: 1ad3 subs r3, r2, r3 - 80044a8: f241 3288 movw r2, #5000 @ 0x1388 - 80044ac: 4293 cmp r3, r2 - 80044ae: d901 bls.n 80044b4 + 80044f2: f7fd fb3b bl 8001b6c + 80044f6: 4602 mov r2, r0 + 80044f8: 6a7b ldr r3, [r7, #36] @ 0x24 + 80044fa: 1ad3 subs r3, r2, r3 + 80044fc: f241 3288 movw r2, #5000 @ 0x1388 + 8004500: 4293 cmp r3, r2 + 8004502: d901 bls.n 8004508 { return HAL_TIMEOUT; - 80044b0: 2303 movs r3, #3 - 80044b2: e240 b.n 8004936 + 8004504: 2303 movs r3, #3 + 8004506: e240 b.n 800498a while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 80044b4: 4b0d ldr r3, [pc, #52] @ (80044ec ) - 80044b6: 6f1b ldr r3, [r3, #112] @ 0x70 - 80044b8: f003 0302 and.w r3, r3, #2 - 80044bc: 2b00 cmp r3, #0 - 80044be: d0ee beq.n 800449e + 8004508: 4b0d ldr r3, [pc, #52] @ (8004540 ) + 800450a: 6f1b ldr r3, [r3, #112] @ 0x70 + 800450c: f003 0302 and.w r3, r3, #2 + 8004510: 2b00 cmp r3, #0 + 8004512: d0ee beq.n 80044f2 } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); - 80044c0: 687b ldr r3, [r7, #4] - 80044c2: 6c1b ldr r3, [r3, #64] @ 0x40 - 80044c4: f403 7340 and.w r3, r3, #768 @ 0x300 - 80044c8: f5b3 7f40 cmp.w r3, #768 @ 0x300 - 80044cc: d114 bne.n 80044f8 - 80044ce: 4b07 ldr r3, [pc, #28] @ (80044ec ) - 80044d0: 689b ldr r3, [r3, #8] - 80044d2: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000 - 80044d6: 687b ldr r3, [r7, #4] - 80044d8: 6c1b ldr r3, [r3, #64] @ 0x40 - 80044da: f023 4370 bic.w r3, r3, #4026531840 @ 0xf0000000 - 80044de: f423 7340 bic.w r3, r3, #768 @ 0x300 - 80044e2: 4902 ldr r1, [pc, #8] @ (80044ec ) - 80044e4: 4313 orrs r3, r2 - 80044e6: 608b str r3, [r1, #8] - 80044e8: e00c b.n 8004504 - 80044ea: bf00 nop - 80044ec: 40023800 .word 0x40023800 - 80044f0: 40007000 .word 0x40007000 - 80044f4: 42470e40 .word 0x42470e40 - 80044f8: 4b4a ldr r3, [pc, #296] @ (8004624 ) - 80044fa: 689b ldr r3, [r3, #8] - 80044fc: 4a49 ldr r2, [pc, #292] @ (8004624 ) - 80044fe: f423 13f8 bic.w r3, r3, #2031616 @ 0x1f0000 - 8004502: 6093 str r3, [r2, #8] - 8004504: 4b47 ldr r3, [pc, #284] @ (8004624 ) - 8004506: 6f1a ldr r2, [r3, #112] @ 0x70 - 8004508: 687b ldr r3, [r7, #4] - 800450a: 6c1b ldr r3, [r3, #64] @ 0x40 - 800450c: f3c3 030b ubfx r3, r3, #0, #12 - 8004510: 4944 ldr r1, [pc, #272] @ (8004624 ) - 8004512: 4313 orrs r3, r2 - 8004514: 670b str r3, [r1, #112] @ 0x70 + 8004514: 687b ldr r3, [r7, #4] + 8004516: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004518: f403 7340 and.w r3, r3, #768 @ 0x300 + 800451c: f5b3 7f40 cmp.w r3, #768 @ 0x300 + 8004520: d114 bne.n 800454c + 8004522: 4b07 ldr r3, [pc, #28] @ (8004540 ) + 8004524: 689b ldr r3, [r3, #8] + 8004526: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000 + 800452a: 687b ldr r3, [r7, #4] + 800452c: 6c1b ldr r3, [r3, #64] @ 0x40 + 800452e: f023 4370 bic.w r3, r3, #4026531840 @ 0xf0000000 + 8004532: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8004536: 4902 ldr r1, [pc, #8] @ (8004540 ) + 8004538: 4313 orrs r3, r2 + 800453a: 608b str r3, [r1, #8] + 800453c: e00c b.n 8004558 + 800453e: bf00 nop + 8004540: 40023800 .word 0x40023800 + 8004544: 40007000 .word 0x40007000 + 8004548: 42470e40 .word 0x42470e40 + 800454c: 4b4a ldr r3, [pc, #296] @ (8004678 ) + 800454e: 689b ldr r3, [r3, #8] + 8004550: 4a49 ldr r2, [pc, #292] @ (8004678 ) + 8004552: f423 13f8 bic.w r3, r3, #2031616 @ 0x1f0000 + 8004556: 6093 str r3, [r2, #8] + 8004558: 4b47 ldr r3, [pc, #284] @ (8004678 ) + 800455a: 6f1a ldr r2, [r3, #112] @ 0x70 + 800455c: 687b ldr r3, [r7, #4] + 800455e: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004560: f3c3 030b ubfx r3, r3, #0, #12 + 8004564: 4944 ldr r1, [pc, #272] @ (8004678 ) + 8004566: 4313 orrs r3, r2 + 8004568: 670b str r3, [r1, #112] @ 0x70 } /*--------------------------------------------------------------------------*/ /*---------------------------- TIM configuration ---------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == (RCC_PERIPHCLK_TIM)) - 8004516: 687b ldr r3, [r7, #4] - 8004518: 681b ldr r3, [r3, #0] - 800451a: f003 0310 and.w r3, r3, #16 - 800451e: 2b00 cmp r3, #0 - 8004520: d004 beq.n 800452c + 800456a: 687b ldr r3, [r7, #4] + 800456c: 681b ldr r3, [r3, #0] + 800456e: f003 0310 and.w r3, r3, #16 + 8004572: 2b00 cmp r3, #0 + 8004574: d004 beq.n 8004580 { /* Configure Timer Prescaler */ __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection); - 8004522: 687b ldr r3, [r7, #4] - 8004524: f893 2058 ldrb.w r2, [r3, #88] @ 0x58 - 8004528: 4b3f ldr r3, [pc, #252] @ (8004628 ) - 800452a: 601a str r2, [r3, #0] + 8004576: 687b ldr r3, [r7, #4] + 8004578: f893 2058 ldrb.w r2, [r3, #88] @ 0x58 + 800457c: 4b3f ldr r3, [pc, #252] @ (800467c ) + 800457e: 601a str r2, [r3, #0] } /*--------------------------------------------------------------------------*/ /*---------------------------- FMPI2C1 Configuration -----------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMPI2C1) == RCC_PERIPHCLK_FMPI2C1) - 800452c: 687b ldr r3, [r7, #4] - 800452e: 681b ldr r3, [r3, #0] - 8004530: f003 0380 and.w r3, r3, #128 @ 0x80 - 8004534: 2b00 cmp r3, #0 - 8004536: d00a beq.n 800454e + 8004580: 687b ldr r3, [r7, #4] + 8004582: 681b ldr r3, [r3, #0] + 8004584: f003 0380 and.w r3, r3, #128 @ 0x80 + 8004588: 2b00 cmp r3, #0 + 800458a: d00a beq.n 80045a2 { /* Check the parameters */ assert_param(IS_RCC_FMPI2C1CLKSOURCE(PeriphClkInit->Fmpi2c1ClockSelection)); /* Configure the FMPI2C1 clock source */ __HAL_RCC_FMPI2C1_CONFIG(PeriphClkInit->Fmpi2c1ClockSelection); - 8004538: 4b3a ldr r3, [pc, #232] @ (8004624 ) - 800453a: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 800453e: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 - 8004542: 687b ldr r3, [r7, #4] - 8004544: 6cdb ldr r3, [r3, #76] @ 0x4c - 8004546: 4937 ldr r1, [pc, #220] @ (8004624 ) - 8004548: 4313 orrs r3, r2 - 800454a: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 800458c: 4b3a ldr r3, [pc, #232] @ (8004678 ) + 800458e: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 8004592: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 + 8004596: 687b ldr r3, [r7, #4] + 8004598: 6cdb ldr r3, [r3, #76] @ 0x4c + 800459a: 4937 ldr r1, [pc, #220] @ (8004678 ) + 800459c: 4313 orrs r3, r2 + 800459e: f8c1 3094 str.w r3, [r1, #148] @ 0x94 } /*--------------------------------------------------------------------------*/ /*------------------------------ CEC Configuration -------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC) - 800454e: 687b ldr r3, [r7, #4] - 8004550: 681b ldr r3, [r3, #0] - 8004552: f003 0340 and.w r3, r3, #64 @ 0x40 - 8004556: 2b00 cmp r3, #0 - 8004558: d00a beq.n 8004570 + 80045a2: 687b ldr r3, [r7, #4] + 80045a4: 681b ldr r3, [r3, #0] + 80045a6: f003 0340 and.w r3, r3, #64 @ 0x40 + 80045aa: 2b00 cmp r3, #0 + 80045ac: d00a beq.n 80045c4 { /* Check the parameters */ assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection)); /* Configure the CEC clock source */ __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection); - 800455a: 4b32 ldr r3, [pc, #200] @ (8004624 ) - 800455c: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 8004560: f023 6280 bic.w r2, r3, #67108864 @ 0x4000000 - 8004564: 687b ldr r3, [r7, #4] - 8004566: 6c9b ldr r3, [r3, #72] @ 0x48 - 8004568: 492e ldr r1, [pc, #184] @ (8004624 ) - 800456a: 4313 orrs r3, r2 - 800456c: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 80045ae: 4b32 ldr r3, [pc, #200] @ (8004678 ) + 80045b0: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 80045b4: f023 6280 bic.w r2, r3, #67108864 @ 0x4000000 + 80045b8: 687b ldr r3, [r7, #4] + 80045ba: 6c9b ldr r3, [r3, #72] @ 0x48 + 80045bc: 492e ldr r1, [pc, #184] @ (8004678 ) + 80045be: 4313 orrs r3, r2 + 80045c0: f8c1 3094 str.w r3, [r1, #148] @ 0x94 } /*--------------------------------------------------------------------------*/ /*----------------------------- CLK48 Configuration ------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) - 8004570: 687b ldr r3, [r7, #4] - 8004572: 681b ldr r3, [r3, #0] - 8004574: f403 7380 and.w r3, r3, #256 @ 0x100 - 8004578: 2b00 cmp r3, #0 - 800457a: d011 beq.n 80045a0 + 80045c4: 687b ldr r3, [r7, #4] + 80045c6: 681b ldr r3, [r3, #0] + 80045c8: f403 7380 and.w r3, r3, #256 @ 0x100 + 80045cc: 2b00 cmp r3, #0 + 80045ce: d011 beq.n 80045f4 { /* Check the parameters */ assert_param(IS_RCC_CLK48CLKSOURCE(PeriphClkInit->Clk48ClockSelection)); /* Configure the CLK48 clock source */ __HAL_RCC_CLK48_CONFIG(PeriphClkInit->Clk48ClockSelection); - 800457c: 4b29 ldr r3, [pc, #164] @ (8004624 ) - 800457e: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 8004582: f023 6200 bic.w r2, r3, #134217728 @ 0x8000000 - 8004586: 687b ldr r3, [r7, #4] - 8004588: 6d5b ldr r3, [r3, #84] @ 0x54 - 800458a: 4926 ldr r1, [pc, #152] @ (8004624 ) - 800458c: 4313 orrs r3, r2 - 800458e: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 80045d0: 4b29 ldr r3, [pc, #164] @ (8004678 ) + 80045d2: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 80045d6: f023 6200 bic.w r2, r3, #134217728 @ 0x8000000 + 80045da: 687b ldr r3, [r7, #4] + 80045dc: 6d5b ldr r3, [r3, #84] @ 0x54 + 80045de: 4926 ldr r1, [pc, #152] @ (8004678 ) + 80045e0: 4313 orrs r3, r2 + 80045e2: f8c1 3094 str.w r3, [r1, #148] @ 0x94 /* Enable the PLLSAI when it's used as clock source for CLK48 */ if (PeriphClkInit->Clk48ClockSelection == RCC_CLK48CLKSOURCE_PLLSAIP) - 8004592: 687b ldr r3, [r7, #4] - 8004594: 6d5b ldr r3, [r3, #84] @ 0x54 - 8004596: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 - 800459a: d101 bne.n 80045a0 + 80045e6: 687b ldr r3, [r7, #4] + 80045e8: 6d5b ldr r3, [r3, #84] @ 0x54 + 80045ea: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 + 80045ee: d101 bne.n 80045f4 { pllsaiused = 1U; - 800459c: 2301 movs r3, #1 - 800459e: 62bb str r3, [r7, #40] @ 0x28 + 80045f0: 2301 movs r3, #1 + 80045f2: 62bb str r3, [r7, #40] @ 0x28 } } /*--------------------------------------------------------------------------*/ /*----------------------------- SDIO Configuration -------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDIO) == RCC_PERIPHCLK_SDIO) - 80045a0: 687b ldr r3, [r7, #4] - 80045a2: 681b ldr r3, [r3, #0] - 80045a4: f403 7300 and.w r3, r3, #512 @ 0x200 - 80045a8: 2b00 cmp r3, #0 - 80045aa: d00a beq.n 80045c2 + 80045f4: 687b ldr r3, [r7, #4] + 80045f6: 681b ldr r3, [r3, #0] + 80045f8: f403 7300 and.w r3, r3, #512 @ 0x200 + 80045fc: 2b00 cmp r3, #0 + 80045fe: d00a beq.n 8004616 { /* Check the parameters */ assert_param(IS_RCC_SDIOCLKSOURCE(PeriphClkInit->SdioClockSelection)); /* Configure the SDIO clock source */ __HAL_RCC_SDIO_CONFIG(PeriphClkInit->SdioClockSelection); - 80045ac: 4b1d ldr r3, [pc, #116] @ (8004624 ) - 80045ae: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 80045b2: f023 5280 bic.w r2, r3, #268435456 @ 0x10000000 - 80045b6: 687b ldr r3, [r7, #4] - 80045b8: 6c5b ldr r3, [r3, #68] @ 0x44 - 80045ba: 491a ldr r1, [pc, #104] @ (8004624 ) - 80045bc: 4313 orrs r3, r2 - 80045be: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 8004600: 4b1d ldr r3, [pc, #116] @ (8004678 ) + 8004602: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 8004606: f023 5280 bic.w r2, r3, #268435456 @ 0x10000000 + 800460a: 687b ldr r3, [r7, #4] + 800460c: 6c5b ldr r3, [r3, #68] @ 0x44 + 800460e: 491a ldr r1, [pc, #104] @ (8004678 ) + 8004610: 4313 orrs r3, r2 + 8004612: f8c1 3094 str.w r3, [r1, #148] @ 0x94 } /*--------------------------------------------------------------------------*/ /*------------------------------ SPDIFRX Configuration ---------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX) - 80045c2: 687b ldr r3, [r7, #4] - 80045c4: 681b ldr r3, [r3, #0] - 80045c6: f403 6380 and.w r3, r3, #1024 @ 0x400 - 80045ca: 2b00 cmp r3, #0 - 80045cc: d011 beq.n 80045f2 + 8004616: 687b ldr r3, [r7, #4] + 8004618: 681b ldr r3, [r3, #0] + 800461a: f403 6380 and.w r3, r3, #1024 @ 0x400 + 800461e: 2b00 cmp r3, #0 + 8004620: d011 beq.n 8004646 { /* Check the parameters */ assert_param(IS_RCC_SPDIFRXCLKSOURCE(PeriphClkInit->SpdifClockSelection)); /* Configure the SPDIFRX clock source */ __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifClockSelection); - 80045ce: 4b15 ldr r3, [pc, #84] @ (8004624 ) - 80045d0: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 80045d4: f023 5200 bic.w r2, r3, #536870912 @ 0x20000000 - 80045d8: 687b ldr r3, [r7, #4] - 80045da: 6d1b ldr r3, [r3, #80] @ 0x50 - 80045dc: 4911 ldr r1, [pc, #68] @ (8004624 ) - 80045de: 4313 orrs r3, r2 - 80045e0: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 8004622: 4b15 ldr r3, [pc, #84] @ (8004678 ) + 8004624: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 8004628: f023 5200 bic.w r2, r3, #536870912 @ 0x20000000 + 800462c: 687b ldr r3, [r7, #4] + 800462e: 6d1b ldr r3, [r3, #80] @ 0x50 + 8004630: 4911 ldr r1, [pc, #68] @ (8004678 ) + 8004632: 4313 orrs r3, r2 + 8004634: f8c1 3094 str.w r3, [r1, #148] @ 0x94 /* Enable the PLLI2S when it's used as clock source for SPDIFRX */ if (PeriphClkInit->SpdifClockSelection == RCC_SPDIFRXCLKSOURCE_PLLI2SP) - 80045e4: 687b ldr r3, [r7, #4] - 80045e6: 6d1b ldr r3, [r3, #80] @ 0x50 - 80045e8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 80045ec: d101 bne.n 80045f2 + 8004638: 687b ldr r3, [r7, #4] + 800463a: 6d1b ldr r3, [r3, #80] @ 0x50 + 800463c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 8004640: d101 bne.n 8004646 { plli2sused = 1U; - 80045ee: 2301 movs r3, #1 - 80045f0: 62fb str r3, [r7, #44] @ 0x2c + 8004642: 2301 movs r3, #1 + 8004644: 62fb str r3, [r7, #44] @ 0x2c /*--------------------------------------------------------------------------*/ /*---------------------------- PLLI2S Configuration ------------------------*/ /* PLLI2S is configured when a peripheral will use it as source clock : SAI1, SAI2, I2S on APB1, I2S on APB2 or SPDIFRX */ if ((plli2sused == 1U) || (PeriphClkInit->PeriphClockSelection == RCC_PERIPHCLK_PLLI2S)) - 80045f2: 6afb ldr r3, [r7, #44] @ 0x2c - 80045f4: 2b01 cmp r3, #1 - 80045f6: d005 beq.n 8004604 - 80045f8: 687b ldr r3, [r7, #4] - 80045fa: 681b ldr r3, [r3, #0] - 80045fc: f5b3 6f00 cmp.w r3, #2048 @ 0x800 - 8004600: f040 80ff bne.w 8004802 + 8004646: 6afb ldr r3, [r7, #44] @ 0x2c + 8004648: 2b01 cmp r3, #1 + 800464a: d005 beq.n 8004658 + 800464c: 687b ldr r3, [r7, #4] + 800464e: 681b ldr r3, [r3, #0] + 8004650: f5b3 6f00 cmp.w r3, #2048 @ 0x800 + 8004654: f040 80ff bne.w 8004856 { /* Disable the PLLI2S */ __HAL_RCC_PLLI2S_DISABLE(); - 8004604: 4b09 ldr r3, [pc, #36] @ (800462c ) - 8004606: 2200 movs r2, #0 - 8004608: 601a str r2, [r3, #0] + 8004658: 4b09 ldr r3, [pc, #36] @ (8004680 ) + 800465a: 2200 movs r2, #0 + 800465c: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 800460a: f7fd fa85 bl 8001b18 - 800460e: 6278 str r0, [r7, #36] @ 0x24 + 800465e: f7fd fa85 bl 8001b6c + 8004662: 6278 str r0, [r7, #36] @ 0x24 /* Wait till PLLI2S is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) - 8004610: e00e b.n 8004630 + 8004664: e00e b.n 8004684 { if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) - 8004612: f7fd fa81 bl 8001b18 - 8004616: 4602 mov r2, r0 - 8004618: 6a7b ldr r3, [r7, #36] @ 0x24 - 800461a: 1ad3 subs r3, r2, r3 - 800461c: 2b02 cmp r3, #2 - 800461e: d907 bls.n 8004630 + 8004666: f7fd fa81 bl 8001b6c + 800466a: 4602 mov r2, r0 + 800466c: 6a7b ldr r3, [r7, #36] @ 0x24 + 800466e: 1ad3 subs r3, r2, r3 + 8004670: 2b02 cmp r3, #2 + 8004672: d907 bls.n 8004684 { /* return in case of Timeout detected */ return HAL_TIMEOUT; - 8004620: 2303 movs r3, #3 - 8004622: e188 b.n 8004936 - 8004624: 40023800 .word 0x40023800 - 8004628: 424711e0 .word 0x424711e0 - 800462c: 42470068 .word 0x42470068 + 8004674: 2303 movs r3, #3 + 8004676: e188 b.n 800498a + 8004678: 40023800 .word 0x40023800 + 800467c: 424711e0 .word 0x424711e0 + 8004680: 42470068 .word 0x42470068 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) - 8004630: 4b7e ldr r3, [pc, #504] @ (800482c ) - 8004632: 681b ldr r3, [r3, #0] - 8004634: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 - 8004638: 2b00 cmp r3, #0 - 800463a: d1ea bne.n 8004612 + 8004684: 4b7e ldr r3, [pc, #504] @ (8004880 ) + 8004686: 681b ldr r3, [r3, #0] + 8004688: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 + 800468c: 2b00 cmp r3, #0 + 800468e: d1ea bne.n 8004666 /* check for common PLLI2S Parameters */ assert_param(IS_RCC_PLLI2SM_VALUE(PeriphClkInit->PLLI2S.PLLI2SM)); assert_param(IS_RCC_PLLI2SN_VALUE(PeriphClkInit->PLLI2S.PLLI2SN)); /*------ In Case of PLLI2S is selected as source clock for I2S -----------*/ if (((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB1) == RCC_PERIPHCLK_I2S_APB1) - 800463c: 687b ldr r3, [r7, #4] - 800463e: 681b ldr r3, [r3, #0] - 8004640: f003 0301 and.w r3, r3, #1 - 8004644: 2b00 cmp r3, #0 - 8004646: d003 beq.n 8004650 + 8004690: 687b ldr r3, [r7, #4] + 8004692: 681b ldr r3, [r3, #0] + 8004694: f003 0301 and.w r3, r3, #1 + 8004698: 2b00 cmp r3, #0 + 800469a: d003 beq.n 80046a4 && (PeriphClkInit->I2sApb1ClockSelection == RCC_I2SAPB1CLKSOURCE_PLLI2S)) || - 8004648: 687b ldr r3, [r7, #4] - 800464a: 6b9b ldr r3, [r3, #56] @ 0x38 - 800464c: 2b00 cmp r3, #0 - 800464e: d009 beq.n 8004664 + 800469c: 687b ldr r3, [r7, #4] + 800469e: 6b9b ldr r3, [r3, #56] @ 0x38 + 80046a0: 2b00 cmp r3, #0 + 80046a2: d009 beq.n 80046b8 ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == RCC_PERIPHCLK_I2S_APB2) && (PeriphClkInit->I2sApb2ClockSelection == RCC_I2SAPB2CLKSOURCE_PLLI2S))) - 8004650: 687b ldr r3, [r7, #4] - 8004652: 681b ldr r3, [r3, #0] - 8004654: f003 0302 and.w r3, r3, #2 + 80046a4: 687b ldr r3, [r7, #4] + 80046a6: 681b ldr r3, [r3, #0] + 80046a8: f003 0302 and.w r3, r3, #2 && (PeriphClkInit->I2sApb1ClockSelection == RCC_I2SAPB1CLKSOURCE_PLLI2S)) || - 8004658: 2b00 cmp r3, #0 - 800465a: d028 beq.n 80046ae + 80046ac: 2b00 cmp r3, #0 + 80046ae: d028 beq.n 8004702 ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == RCC_PERIPHCLK_I2S_APB2) && (PeriphClkInit->I2sApb2ClockSelection == RCC_I2SAPB2CLKSOURCE_PLLI2S))) - 800465c: 687b ldr r3, [r7, #4] - 800465e: 6bdb ldr r3, [r3, #60] @ 0x3c - 8004660: 2b00 cmp r3, #0 - 8004662: d124 bne.n 80046ae + 80046b0: 687b ldr r3, [r7, #4] + 80046b2: 6bdb ldr r3, [r3, #60] @ 0x3c + 80046b4: 2b00 cmp r3, #0 + 80046b6: d124 bne.n 8004702 { /* check for Parameters */ assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); /* Read PLLI2SP/PLLI2SQ value from PLLI2SCFGR register (this value is not needed for I2S configuration) */ plli2sp = ((((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SP) >> RCC_PLLI2SCFGR_PLLI2SP_Pos) + 1U) << 1U); - 8004664: 4b71 ldr r3, [pc, #452] @ (800482c ) - 8004666: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 800466a: 0c1b lsrs r3, r3, #16 - 800466c: f003 0303 and.w r3, r3, #3 - 8004670: 3301 adds r3, #1 - 8004672: 005b lsls r3, r3, #1 - 8004674: 61fb str r3, [r7, #28] + 80046b8: 4b71 ldr r3, [pc, #452] @ (8004880 ) + 80046ba: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 80046be: 0c1b lsrs r3, r3, #16 + 80046c0: f003 0303 and.w r3, r3, #3 + 80046c4: 3301 adds r3, #1 + 80046c6: 005b lsls r3, r3, #1 + 80046c8: 61fb str r3, [r7, #28] plli2sq = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos); - 8004676: 4b6d ldr r3, [pc, #436] @ (800482c ) - 8004678: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 800467c: 0e1b lsrs r3, r3, #24 - 800467e: f003 030f and.w r3, r3, #15 - 8004682: 61bb str r3, [r7, #24] + 80046ca: 4b6d ldr r3, [pc, #436] @ (8004880 ) + 80046cc: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 80046d0: 0e1b lsrs r3, r3, #24 + 80046d2: f003 030f and.w r3, r3, #15 + 80046d6: 61bb str r3, [r7, #24] /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLI2SM) */ /* I2SCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SR */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SM, PeriphClkInit->PLLI2S.PLLI2SN, plli2sp, plli2sq, - 8004684: 687b ldr r3, [r7, #4] - 8004686: 685a ldr r2, [r3, #4] - 8004688: 687b ldr r3, [r7, #4] - 800468a: 689b ldr r3, [r3, #8] - 800468c: 019b lsls r3, r3, #6 - 800468e: 431a orrs r2, r3 - 8004690: 69fb ldr r3, [r7, #28] - 8004692: 085b lsrs r3, r3, #1 - 8004694: 3b01 subs r3, #1 - 8004696: 041b lsls r3, r3, #16 - 8004698: 431a orrs r2, r3 - 800469a: 69bb ldr r3, [r7, #24] - 800469c: 061b lsls r3, r3, #24 - 800469e: 431a orrs r2, r3 - 80046a0: 687b ldr r3, [r7, #4] - 80046a2: 695b ldr r3, [r3, #20] - 80046a4: 071b lsls r3, r3, #28 - 80046a6: 4961 ldr r1, [pc, #388] @ (800482c ) - 80046a8: 4313 orrs r3, r2 - 80046aa: f8c1 3084 str.w r3, [r1, #132] @ 0x84 + 80046d8: 687b ldr r3, [r7, #4] + 80046da: 685a ldr r2, [r3, #4] + 80046dc: 687b ldr r3, [r7, #4] + 80046de: 689b ldr r3, [r3, #8] + 80046e0: 019b lsls r3, r3, #6 + 80046e2: 431a orrs r2, r3 + 80046e4: 69fb ldr r3, [r7, #28] + 80046e6: 085b lsrs r3, r3, #1 + 80046e8: 3b01 subs r3, #1 + 80046ea: 041b lsls r3, r3, #16 + 80046ec: 431a orrs r2, r3 + 80046ee: 69bb ldr r3, [r7, #24] + 80046f0: 061b lsls r3, r3, #24 + 80046f2: 431a orrs r2, r3 + 80046f4: 687b ldr r3, [r7, #4] + 80046f6: 695b ldr r3, [r3, #20] + 80046f8: 071b lsls r3, r3, #28 + 80046fa: 4961 ldr r1, [pc, #388] @ (8004880 ) + 80046fc: 4313 orrs r3, r2 + 80046fe: f8c1 3084 str.w r3, [r1, #132] @ 0x84 PeriphClkInit->PLLI2S.PLLI2SR); } /*------- In Case of PLLI2S is selected as source clock for SAI ----------*/ if (((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) - 80046ae: 687b ldr r3, [r7, #4] - 80046b0: 681b ldr r3, [r3, #0] - 80046b2: f003 0304 and.w r3, r3, #4 - 80046b6: 2b00 cmp r3, #0 - 80046b8: d004 beq.n 80046c4 + 8004702: 687b ldr r3, [r7, #4] + 8004704: 681b ldr r3, [r3, #0] + 8004706: f003 0304 and.w r3, r3, #4 + 800470a: 2b00 cmp r3, #0 + 800470c: d004 beq.n 8004718 && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)) || - 80046ba: 687b ldr r3, [r7, #4] - 80046bc: 6b1b ldr r3, [r3, #48] @ 0x30 - 80046be: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 - 80046c2: d00a beq.n 80046da + 800470e: 687b ldr r3, [r7, #4] + 8004710: 6b1b ldr r3, [r3, #48] @ 0x30 + 8004712: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 + 8004716: d00a beq.n 800472e ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S))) - 80046c4: 687b ldr r3, [r7, #4] - 80046c6: 681b ldr r3, [r3, #0] - 80046c8: f003 0308 and.w r3, r3, #8 + 8004718: 687b ldr r3, [r7, #4] + 800471a: 681b ldr r3, [r3, #0] + 800471c: f003 0308 and.w r3, r3, #8 && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)) || - 80046cc: 2b00 cmp r3, #0 - 80046ce: d035 beq.n 800473c + 8004720: 2b00 cmp r3, #0 + 8004722: d035 beq.n 8004790 ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S))) - 80046d0: 687b ldr r3, [r7, #4] - 80046d2: 6b5b ldr r3, [r3, #52] @ 0x34 - 80046d4: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 80046d8: d130 bne.n 800473c + 8004724: 687b ldr r3, [r7, #4] + 8004726: 6b5b ldr r3, [r3, #52] @ 0x34 + 8004728: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 800472c: d130 bne.n 8004790 assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ)); /* Check for PLLI2S/DIVQ parameters */ assert_param(IS_RCC_PLLI2S_DIVQ_VALUE(PeriphClkInit->PLLI2SDivQ)); /* Read PLLI2SP/PLLI2SR value from PLLI2SCFGR register (this value is not needed for SAI configuration) */ plli2sp = ((((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SP) >> RCC_PLLI2SCFGR_PLLI2SP_Pos) + 1U) << 1U); - 80046da: 4b54 ldr r3, [pc, #336] @ (800482c ) - 80046dc: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 80046e0: 0c1b lsrs r3, r3, #16 - 80046e2: f003 0303 and.w r3, r3, #3 - 80046e6: 3301 adds r3, #1 - 80046e8: 005b lsls r3, r3, #1 - 80046ea: 61fb str r3, [r7, #28] + 800472e: 4b54 ldr r3, [pc, #336] @ (8004880 ) + 8004730: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8004734: 0c1b lsrs r3, r3, #16 + 8004736: f003 0303 and.w r3, r3, #3 + 800473a: 3301 adds r3, #1 + 800473c: 005b lsls r3, r3, #1 + 800473e: 61fb str r3, [r7, #28] plli2sr = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); - 80046ec: 4b4f ldr r3, [pc, #316] @ (800482c ) - 80046ee: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 80046f2: 0f1b lsrs r3, r3, #28 - 80046f4: f003 0307 and.w r3, r3, #7 - 80046f8: 617b str r3, [r7, #20] + 8004740: 4b4f ldr r3, [pc, #316] @ (8004880 ) + 8004742: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8004746: 0f1b lsrs r3, r3, #28 + 8004748: f003 0307 and.w r3, r3, #7 + 800474c: 617b str r3, [r7, #20] /* Configure the PLLI2S division factors */ /* PLLI2S_VCO Input = PLL_SOURCE/PLLI2SM */ /* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */ /* SAI_CLK(first level) = PLLI2S_VCO Output/PLLI2SQ */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SM, PeriphClkInit->PLLI2S.PLLI2SN, plli2sp, - 80046fa: 687b ldr r3, [r7, #4] - 80046fc: 685a ldr r2, [r3, #4] - 80046fe: 687b ldr r3, [r7, #4] - 8004700: 689b ldr r3, [r3, #8] - 8004702: 019b lsls r3, r3, #6 - 8004704: 431a orrs r2, r3 - 8004706: 69fb ldr r3, [r7, #28] - 8004708: 085b lsrs r3, r3, #1 - 800470a: 3b01 subs r3, #1 - 800470c: 041b lsls r3, r3, #16 - 800470e: 431a orrs r2, r3 - 8004710: 687b ldr r3, [r7, #4] - 8004712: 691b ldr r3, [r3, #16] - 8004714: 061b lsls r3, r3, #24 - 8004716: 431a orrs r2, r3 - 8004718: 697b ldr r3, [r7, #20] - 800471a: 071b lsls r3, r3, #28 - 800471c: 4943 ldr r1, [pc, #268] @ (800482c ) - 800471e: 4313 orrs r3, r2 - 8004720: f8c1 3084 str.w r3, [r1, #132] @ 0x84 + 800474e: 687b ldr r3, [r7, #4] + 8004750: 685a ldr r2, [r3, #4] + 8004752: 687b ldr r3, [r7, #4] + 8004754: 689b ldr r3, [r3, #8] + 8004756: 019b lsls r3, r3, #6 + 8004758: 431a orrs r2, r3 + 800475a: 69fb ldr r3, [r7, #28] + 800475c: 085b lsrs r3, r3, #1 + 800475e: 3b01 subs r3, #1 + 8004760: 041b lsls r3, r3, #16 + 8004762: 431a orrs r2, r3 + 8004764: 687b ldr r3, [r7, #4] + 8004766: 691b ldr r3, [r3, #16] + 8004768: 061b lsls r3, r3, #24 + 800476a: 431a orrs r2, r3 + 800476c: 697b ldr r3, [r7, #20] + 800476e: 071b lsls r3, r3, #28 + 8004770: 4943 ldr r1, [pc, #268] @ (8004880 ) + 8004772: 4313 orrs r3, r2 + 8004774: f8c1 3084 str.w r3, [r1, #132] @ 0x84 PeriphClkInit->PLLI2S.PLLI2SQ, plli2sr); /* SAI_CLK_x = SAI_CLK(first level)/PLLI2SDIVQ */ __HAL_RCC_PLLI2S_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLI2SDivQ); - 8004724: 4b41 ldr r3, [pc, #260] @ (800482c ) - 8004726: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 800472a: f023 021f bic.w r2, r3, #31 - 800472e: 687b ldr r3, [r7, #4] - 8004730: 6a9b ldr r3, [r3, #40] @ 0x28 - 8004732: 3b01 subs r3, #1 - 8004734: 493d ldr r1, [pc, #244] @ (800482c ) - 8004736: 4313 orrs r3, r2 - 8004738: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 8004778: 4b41 ldr r3, [pc, #260] @ (8004880 ) + 800477a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 800477e: f023 021f bic.w r2, r3, #31 + 8004782: 687b ldr r3, [r7, #4] + 8004784: 6a9b ldr r3, [r3, #40] @ 0x28 + 8004786: 3b01 subs r3, #1 + 8004788: 493d ldr r1, [pc, #244] @ (8004880 ) + 800478a: 4313 orrs r3, r2 + 800478c: f8c1 308c str.w r3, [r1, #140] @ 0x8c } /*------ In Case of PLLI2S is selected as source clock for SPDIFRX -------*/ if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX) - 800473c: 687b ldr r3, [r7, #4] - 800473e: 681b ldr r3, [r3, #0] - 8004740: f403 6380 and.w r3, r3, #1024 @ 0x400 - 8004744: 2b00 cmp r3, #0 - 8004746: d029 beq.n 800479c + 8004790: 687b ldr r3, [r7, #4] + 8004792: 681b ldr r3, [r3, #0] + 8004794: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8004798: 2b00 cmp r3, #0 + 800479a: d029 beq.n 80047f0 && (PeriphClkInit->SpdifClockSelection == RCC_SPDIFRXCLKSOURCE_PLLI2SP)) - 8004748: 687b ldr r3, [r7, #4] - 800474a: 6d1b ldr r3, [r3, #80] @ 0x50 - 800474c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8004750: d124 bne.n 800479c + 800479c: 687b ldr r3, [r7, #4] + 800479e: 6d1b ldr r3, [r3, #80] @ 0x50 + 80047a0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 80047a4: d124 bne.n 80047f0 { /* check for Parameters */ assert_param(IS_RCC_PLLI2SP_VALUE(PeriphClkInit->PLLI2S.PLLI2SP)); /* Read PLLI2SR value from PLLI2SCFGR register (this value is not need for SAI configuration) */ plli2sq = ((((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SP) >> RCC_PLLI2SCFGR_PLLI2SP_Pos) + 1U) << 1U); - 8004752: 4b36 ldr r3, [pc, #216] @ (800482c ) - 8004754: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8004758: 0c1b lsrs r3, r3, #16 - 800475a: f003 0303 and.w r3, r3, #3 - 800475e: 3301 adds r3, #1 - 8004760: 005b lsls r3, r3, #1 - 8004762: 61bb str r3, [r7, #24] + 80047a6: 4b36 ldr r3, [pc, #216] @ (8004880 ) + 80047a8: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 80047ac: 0c1b lsrs r3, r3, #16 + 80047ae: f003 0303 and.w r3, r3, #3 + 80047b2: 3301 adds r3, #1 + 80047b4: 005b lsls r3, r3, #1 + 80047b6: 61bb str r3, [r7, #24] plli2sr = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); - 8004764: 4b31 ldr r3, [pc, #196] @ (800482c ) - 8004766: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 800476a: 0f1b lsrs r3, r3, #28 - 800476c: f003 0307 and.w r3, r3, #7 - 8004770: 617b str r3, [r7, #20] + 80047b8: 4b31 ldr r3, [pc, #196] @ (8004880 ) + 80047ba: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 80047be: 0f1b lsrs r3, r3, #28 + 80047c0: f003 0307 and.w r3, r3, #7 + 80047c4: 617b str r3, [r7, #20] /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLI2SM) */ /* SPDIFRXCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SP */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SM, PeriphClkInit->PLLI2S.PLLI2SN, PeriphClkInit->PLLI2S.PLLI2SP, - 8004772: 687b ldr r3, [r7, #4] - 8004774: 685a ldr r2, [r3, #4] - 8004776: 687b ldr r3, [r7, #4] - 8004778: 689b ldr r3, [r3, #8] - 800477a: 019b lsls r3, r3, #6 - 800477c: 431a orrs r2, r3 - 800477e: 687b ldr r3, [r7, #4] - 8004780: 68db ldr r3, [r3, #12] - 8004782: 085b lsrs r3, r3, #1 - 8004784: 3b01 subs r3, #1 - 8004786: 041b lsls r3, r3, #16 - 8004788: 431a orrs r2, r3 - 800478a: 69bb ldr r3, [r7, #24] - 800478c: 061b lsls r3, r3, #24 - 800478e: 431a orrs r2, r3 - 8004790: 697b ldr r3, [r7, #20] - 8004792: 071b lsls r3, r3, #28 - 8004794: 4925 ldr r1, [pc, #148] @ (800482c ) - 8004796: 4313 orrs r3, r2 - 8004798: f8c1 3084 str.w r3, [r1, #132] @ 0x84 + 80047c6: 687b ldr r3, [r7, #4] + 80047c8: 685a ldr r2, [r3, #4] + 80047ca: 687b ldr r3, [r7, #4] + 80047cc: 689b ldr r3, [r3, #8] + 80047ce: 019b lsls r3, r3, #6 + 80047d0: 431a orrs r2, r3 + 80047d2: 687b ldr r3, [r7, #4] + 80047d4: 68db ldr r3, [r3, #12] + 80047d6: 085b lsrs r3, r3, #1 + 80047d8: 3b01 subs r3, #1 + 80047da: 041b lsls r3, r3, #16 + 80047dc: 431a orrs r2, r3 + 80047de: 69bb ldr r3, [r7, #24] + 80047e0: 061b lsls r3, r3, #24 + 80047e2: 431a orrs r2, r3 + 80047e4: 697b ldr r3, [r7, #20] + 80047e6: 071b lsls r3, r3, #28 + 80047e8: 4925 ldr r1, [pc, #148] @ (8004880 ) + 80047ea: 4313 orrs r3, r2 + 80047ec: f8c1 3084 str.w r3, [r1, #132] @ 0x84 plli2sq, plli2sr); } /*----------------- In Case of PLLI2S is just selected -----------------*/ if ((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S) - 800479c: 687b ldr r3, [r7, #4] - 800479e: 681b ldr r3, [r3, #0] - 80047a0: f403 6300 and.w r3, r3, #2048 @ 0x800 - 80047a4: 2b00 cmp r3, #0 - 80047a6: d016 beq.n 80047d6 + 80047f0: 687b ldr r3, [r7, #4] + 80047f2: 681b ldr r3, [r3, #0] + 80047f4: f403 6300 and.w r3, r3, #2048 @ 0x800 + 80047f8: 2b00 cmp r3, #0 + 80047fa: d016 beq.n 800482a assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR)); assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ)); /* Configure the PLLI2S division factors */ /* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLI2SM) */ __HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SM, PeriphClkInit->PLLI2S.PLLI2SN, PeriphClkInit->PLLI2S.PLLI2SP, - 80047a8: 687b ldr r3, [r7, #4] - 80047aa: 685a ldr r2, [r3, #4] - 80047ac: 687b ldr r3, [r7, #4] - 80047ae: 689b ldr r3, [r3, #8] - 80047b0: 019b lsls r3, r3, #6 - 80047b2: 431a orrs r2, r3 - 80047b4: 687b ldr r3, [r7, #4] - 80047b6: 68db ldr r3, [r3, #12] - 80047b8: 085b lsrs r3, r3, #1 - 80047ba: 3b01 subs r3, #1 - 80047bc: 041b lsls r3, r3, #16 - 80047be: 431a orrs r2, r3 - 80047c0: 687b ldr r3, [r7, #4] - 80047c2: 691b ldr r3, [r3, #16] - 80047c4: 061b lsls r3, r3, #24 - 80047c6: 431a orrs r2, r3 - 80047c8: 687b ldr r3, [r7, #4] - 80047ca: 695b ldr r3, [r3, #20] - 80047cc: 071b lsls r3, r3, #28 - 80047ce: 4917 ldr r1, [pc, #92] @ (800482c ) - 80047d0: 4313 orrs r3, r2 - 80047d2: f8c1 3084 str.w r3, [r1, #132] @ 0x84 + 80047fc: 687b ldr r3, [r7, #4] + 80047fe: 685a ldr r2, [r3, #4] + 8004800: 687b ldr r3, [r7, #4] + 8004802: 689b ldr r3, [r3, #8] + 8004804: 019b lsls r3, r3, #6 + 8004806: 431a orrs r2, r3 + 8004808: 687b ldr r3, [r7, #4] + 800480a: 68db ldr r3, [r3, #12] + 800480c: 085b lsrs r3, r3, #1 + 800480e: 3b01 subs r3, #1 + 8004810: 041b lsls r3, r3, #16 + 8004812: 431a orrs r2, r3 + 8004814: 687b ldr r3, [r7, #4] + 8004816: 691b ldr r3, [r3, #16] + 8004818: 061b lsls r3, r3, #24 + 800481a: 431a orrs r2, r3 + 800481c: 687b ldr r3, [r7, #4] + 800481e: 695b ldr r3, [r3, #20] + 8004820: 071b lsls r3, r3, #28 + 8004822: 4917 ldr r1, [pc, #92] @ (8004880 ) + 8004824: 4313 orrs r3, r2 + 8004826: f8c1 3084 str.w r3, [r1, #132] @ 0x84 PeriphClkInit->PLLI2S.PLLI2SQ, PeriphClkInit->PLLI2S.PLLI2SR); } /* Enable the PLLI2S */ __HAL_RCC_PLLI2S_ENABLE(); - 80047d6: 4b16 ldr r3, [pc, #88] @ (8004830 ) - 80047d8: 2201 movs r2, #1 - 80047da: 601a str r2, [r3, #0] + 800482a: 4b16 ldr r3, [pc, #88] @ (8004884 ) + 800482c: 2201 movs r2, #1 + 800482e: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 80047dc: f7fd f99c bl 8001b18 - 80047e0: 6278 str r0, [r7, #36] @ 0x24 + 8004830: f7fd f99c bl 8001b6c + 8004834: 6278 str r0, [r7, #36] @ 0x24 /* Wait till PLLI2S is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) - 80047e2: e008 b.n 80047f6 + 8004836: e008 b.n 800484a { if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) - 80047e4: f7fd f998 bl 8001b18 - 80047e8: 4602 mov r2, r0 - 80047ea: 6a7b ldr r3, [r7, #36] @ 0x24 - 80047ec: 1ad3 subs r3, r2, r3 - 80047ee: 2b02 cmp r3, #2 - 80047f0: d901 bls.n 80047f6 + 8004838: f7fd f998 bl 8001b6c + 800483c: 4602 mov r2, r0 + 800483e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8004840: 1ad3 subs r3, r2, r3 + 8004842: 2b02 cmp r3, #2 + 8004844: d901 bls.n 800484a { /* return in case of Timeout detected */ return HAL_TIMEOUT; - 80047f2: 2303 movs r3, #3 - 80047f4: e09f b.n 8004936 + 8004846: 2303 movs r3, #3 + 8004848: e09f b.n 800498a while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) - 80047f6: 4b0d ldr r3, [pc, #52] @ (800482c ) - 80047f8: 681b ldr r3, [r3, #0] - 80047fa: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 - 80047fe: 2b00 cmp r3, #0 - 8004800: d0f0 beq.n 80047e4 + 800484a: 4b0d ldr r3, [pc, #52] @ (8004880 ) + 800484c: 681b ldr r3, [r3, #0] + 800484e: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 + 8004852: 2b00 cmp r3, #0 + 8004854: d0f0 beq.n 8004838 } /*--------------------------------------------------------------------------*/ /*----------------------------- PLLSAI Configuration -----------------------*/ /* PLLSAI is configured when a peripheral will use it as source clock : SAI1, SAI2, CLK48 or SDIO */ if (pllsaiused == 1U) - 8004802: 6abb ldr r3, [r7, #40] @ 0x28 - 8004804: 2b01 cmp r3, #1 - 8004806: f040 8095 bne.w 8004934 + 8004856: 6abb ldr r3, [r7, #40] @ 0x28 + 8004858: 2b01 cmp r3, #1 + 800485a: f040 8095 bne.w 8004988 { /* Disable PLLSAI Clock */ __HAL_RCC_PLLSAI_DISABLE(); - 800480a: 4b0a ldr r3, [pc, #40] @ (8004834 ) - 800480c: 2200 movs r2, #0 - 800480e: 601a str r2, [r3, #0] + 800485e: 4b0a ldr r3, [pc, #40] @ (8004888 ) + 8004860: 2200 movs r2, #0 + 8004862: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8004810: f7fd f982 bl 8001b18 - 8004814: 6278 str r0, [r7, #36] @ 0x24 + 8004864: f7fd f982 bl 8001b6c + 8004868: 6278 str r0, [r7, #36] @ 0x24 /* Wait till PLLSAI is disabled */ while (__HAL_RCC_PLLSAI_GET_FLAG() != RESET) - 8004816: e00f b.n 8004838 + 800486a: e00f b.n 800488c { if ((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE) - 8004818: f7fd f97e bl 8001b18 - 800481c: 4602 mov r2, r0 - 800481e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8004820: 1ad3 subs r3, r2, r3 - 8004822: 2b02 cmp r3, #2 - 8004824: d908 bls.n 8004838 + 800486c: f7fd f97e bl 8001b6c + 8004870: 4602 mov r2, r0 + 8004872: 6a7b ldr r3, [r7, #36] @ 0x24 + 8004874: 1ad3 subs r3, r2, r3 + 8004876: 2b02 cmp r3, #2 + 8004878: d908 bls.n 800488c { /* return in case of Timeout detected */ return HAL_TIMEOUT; - 8004826: 2303 movs r3, #3 - 8004828: e085 b.n 8004936 - 800482a: bf00 nop - 800482c: 40023800 .word 0x40023800 - 8004830: 42470068 .word 0x42470068 - 8004834: 42470070 .word 0x42470070 + 800487a: 2303 movs r3, #3 + 800487c: e085 b.n 800498a + 800487e: bf00 nop + 8004880: 40023800 .word 0x40023800 + 8004884: 42470068 .word 0x42470068 + 8004888: 42470070 .word 0x42470070 while (__HAL_RCC_PLLSAI_GET_FLAG() != RESET) - 8004838: 4b41 ldr r3, [pc, #260] @ (8004940 ) - 800483a: 681b ldr r3, [r3, #0] - 800483c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 - 8004840: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8004844: d0e8 beq.n 8004818 + 800488c: 4b41 ldr r3, [pc, #260] @ (8004994 ) + 800488e: 681b ldr r3, [r3, #0] + 8004890: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 + 8004894: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 8004898: d0e8 beq.n 800486c /* Check the PLLSAI division factors */ assert_param(IS_RCC_PLLSAIM_VALUE(PeriphClkInit->PLLSAI.PLLSAIM)); assert_param(IS_RCC_PLLSAIN_VALUE(PeriphClkInit->PLLSAI.PLLSAIN)); /*------ In Case of PLLSAI is selected as source clock for SAI -----------*/ if (((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) - 8004846: 687b ldr r3, [r7, #4] - 8004848: 681b ldr r3, [r3, #0] - 800484a: f003 0304 and.w r3, r3, #4 - 800484e: 2b00 cmp r3, #0 - 8004850: d003 beq.n 800485a + 800489a: 687b ldr r3, [r7, #4] + 800489c: 681b ldr r3, [r3, #0] + 800489e: f003 0304 and.w r3, r3, #4 + 80048a2: 2b00 cmp r3, #0 + 80048a4: d003 beq.n 80048ae && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)) || - 8004852: 687b ldr r3, [r7, #4] - 8004854: 6b1b ldr r3, [r3, #48] @ 0x30 - 8004856: 2b00 cmp r3, #0 - 8004858: d009 beq.n 800486e + 80048a6: 687b ldr r3, [r7, #4] + 80048a8: 6b1b ldr r3, [r3, #48] @ 0x30 + 80048aa: 2b00 cmp r3, #0 + 80048ac: d009 beq.n 80048c2 ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI))) - 800485a: 687b ldr r3, [r7, #4] - 800485c: 681b ldr r3, [r3, #0] - 800485e: f003 0308 and.w r3, r3, #8 + 80048ae: 687b ldr r3, [r7, #4] + 80048b0: 681b ldr r3, [r3, #0] + 80048b2: f003 0308 and.w r3, r3, #8 && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)) || - 8004862: 2b00 cmp r3, #0 - 8004864: d02b beq.n 80048be + 80048b6: 2b00 cmp r3, #0 + 80048b8: d02b beq.n 8004912 ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI))) - 8004866: 687b ldr r3, [r7, #4] - 8004868: 6b5b ldr r3, [r3, #52] @ 0x34 - 800486a: 2b00 cmp r3, #0 - 800486c: d127 bne.n 80048be + 80048ba: 687b ldr r3, [r7, #4] + 80048bc: 6b5b ldr r3, [r3, #52] @ 0x34 + 80048be: 2b00 cmp r3, #0 + 80048c0: d127 bne.n 8004912 assert_param(IS_RCC_PLLSAIQ_VALUE(PeriphClkInit->PLLSAI.PLLSAIQ)); /* check for PLLSAI/DIVQ Parameter */ assert_param(IS_RCC_PLLSAI_DIVQ_VALUE(PeriphClkInit->PLLSAIDivQ)); /* Read PLLSAIP value from PLLSAICFGR register (this value is not needed for SAI configuration) */ pllsaip = ((((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIP) >> RCC_PLLSAICFGR_PLLSAIP_Pos) + 1U) << 1U); - 800486e: 4b34 ldr r3, [pc, #208] @ (8004940 ) - 8004870: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8004874: 0c1b lsrs r3, r3, #16 - 8004876: f003 0303 and.w r3, r3, #3 - 800487a: 3301 adds r3, #1 - 800487c: 005b lsls r3, r3, #1 - 800487e: 613b str r3, [r7, #16] + 80048c2: 4b34 ldr r3, [pc, #208] @ (8004994 ) + 80048c4: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 80048c8: 0c1b lsrs r3, r3, #16 + 80048ca: f003 0303 and.w r3, r3, #3 + 80048ce: 3301 adds r3, #1 + 80048d0: 005b lsls r3, r3, #1 + 80048d2: 613b str r3, [r7, #16] /* PLLSAI_VCO Input = PLL_SOURCE/PLLM */ /* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN */ /* SAI_CLK(first level) = PLLSAI_VCO Output/PLLSAIQ */ __HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIM, PeriphClkInit->PLLSAI.PLLSAIN, pllsaip, - 8004880: 687b ldr r3, [r7, #4] - 8004882: 699a ldr r2, [r3, #24] - 8004884: 687b ldr r3, [r7, #4] - 8004886: 69db ldr r3, [r3, #28] - 8004888: 019b lsls r3, r3, #6 - 800488a: 431a orrs r2, r3 - 800488c: 693b ldr r3, [r7, #16] - 800488e: 085b lsrs r3, r3, #1 - 8004890: 3b01 subs r3, #1 - 8004892: 041b lsls r3, r3, #16 - 8004894: 431a orrs r2, r3 - 8004896: 687b ldr r3, [r7, #4] - 8004898: 6a5b ldr r3, [r3, #36] @ 0x24 - 800489a: 061b lsls r3, r3, #24 - 800489c: 4928 ldr r1, [pc, #160] @ (8004940 ) - 800489e: 4313 orrs r3, r2 - 80048a0: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 80048d4: 687b ldr r3, [r7, #4] + 80048d6: 699a ldr r2, [r3, #24] + 80048d8: 687b ldr r3, [r7, #4] + 80048da: 69db ldr r3, [r3, #28] + 80048dc: 019b lsls r3, r3, #6 + 80048de: 431a orrs r2, r3 + 80048e0: 693b ldr r3, [r7, #16] + 80048e2: 085b lsrs r3, r3, #1 + 80048e4: 3b01 subs r3, #1 + 80048e6: 041b lsls r3, r3, #16 + 80048e8: 431a orrs r2, r3 + 80048ea: 687b ldr r3, [r7, #4] + 80048ec: 6a5b ldr r3, [r3, #36] @ 0x24 + 80048ee: 061b lsls r3, r3, #24 + 80048f0: 4928 ldr r1, [pc, #160] @ (8004994 ) + 80048f2: 4313 orrs r3, r2 + 80048f4: f8c1 3088 str.w r3, [r1, #136] @ 0x88 PeriphClkInit->PLLSAI.PLLSAIQ, 0U); /* SAI_CLK_x = SAI_CLK(first level)/PLLSAIDIVQ */ __HAL_RCC_PLLSAI_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLSAIDivQ); - 80048a4: 4b26 ldr r3, [pc, #152] @ (8004940 ) - 80048a6: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 80048aa: f423 52f8 bic.w r2, r3, #7936 @ 0x1f00 - 80048ae: 687b ldr r3, [r7, #4] - 80048b0: 6adb ldr r3, [r3, #44] @ 0x2c - 80048b2: 3b01 subs r3, #1 - 80048b4: 021b lsls r3, r3, #8 - 80048b6: 4922 ldr r1, [pc, #136] @ (8004940 ) - 80048b8: 4313 orrs r3, r2 - 80048ba: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 80048f8: 4b26 ldr r3, [pc, #152] @ (8004994 ) + 80048fa: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 80048fe: f423 52f8 bic.w r2, r3, #7936 @ 0x1f00 + 8004902: 687b ldr r3, [r7, #4] + 8004904: 6adb ldr r3, [r3, #44] @ 0x2c + 8004906: 3b01 subs r3, #1 + 8004908: 021b lsls r3, r3, #8 + 800490a: 4922 ldr r1, [pc, #136] @ (8004994 ) + 800490c: 4313 orrs r3, r2 + 800490e: f8c1 308c str.w r3, [r1, #140] @ 0x8c } /*------ In Case of PLLSAI is selected as source clock for CLK48 ---------*/ /* In Case of PLLI2S is selected as source clock for CLK48 */ if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) - 80048be: 687b ldr r3, [r7, #4] - 80048c0: 681b ldr r3, [r3, #0] - 80048c2: f403 7380 and.w r3, r3, #256 @ 0x100 - 80048c6: 2b00 cmp r3, #0 - 80048c8: d01d beq.n 8004906 + 8004912: 687b ldr r3, [r7, #4] + 8004914: 681b ldr r3, [r3, #0] + 8004916: f403 7380 and.w r3, r3, #256 @ 0x100 + 800491a: 2b00 cmp r3, #0 + 800491c: d01d beq.n 800495a && (PeriphClkInit->Clk48ClockSelection == RCC_CLK48CLKSOURCE_PLLSAIP)) - 80048ca: 687b ldr r3, [r7, #4] - 80048cc: 6d5b ldr r3, [r3, #84] @ 0x54 - 80048ce: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 - 80048d2: d118 bne.n 8004906 + 800491e: 687b ldr r3, [r7, #4] + 8004920: 6d5b ldr r3, [r3, #84] @ 0x54 + 8004922: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 + 8004926: d118 bne.n 800495a { /* check for Parameters */ assert_param(IS_RCC_PLLSAIP_VALUE(PeriphClkInit->PLLSAI.PLLSAIP)); /* Read PLLSAIQ value from PLLI2SCFGR register (this value is not need for SAI configuration) */ pllsaiq = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos); - 80048d4: 4b1a ldr r3, [pc, #104] @ (8004940 ) - 80048d6: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 80048da: 0e1b lsrs r3, r3, #24 - 80048dc: f003 030f and.w r3, r3, #15 - 80048e0: 60fb str r3, [r7, #12] + 8004928: 4b1a ldr r3, [pc, #104] @ (8004994 ) + 800492a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 800492e: 0e1b lsrs r3, r3, #24 + 8004930: f003 030f and.w r3, r3, #15 + 8004934: 60fb str r3, [r7, #12] /* Configure the PLLSAI division factors */ /* PLLSAI_VCO = f(VCO clock) = f(PLLSAI clock input) * (PLLI2SN/PLLSAIM) */ /* 48CLK = f(PLLSAI clock output) = f(VCO clock) / PLLSAIP */ __HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIM, PeriphClkInit->PLLSAI.PLLSAIN, PeriphClkInit->PLLSAI.PLLSAIP, - 80048e2: 687b ldr r3, [r7, #4] - 80048e4: 699a ldr r2, [r3, #24] - 80048e6: 687b ldr r3, [r7, #4] - 80048e8: 69db ldr r3, [r3, #28] - 80048ea: 019b lsls r3, r3, #6 - 80048ec: 431a orrs r2, r3 - 80048ee: 687b ldr r3, [r7, #4] - 80048f0: 6a1b ldr r3, [r3, #32] - 80048f2: 085b lsrs r3, r3, #1 - 80048f4: 3b01 subs r3, #1 - 80048f6: 041b lsls r3, r3, #16 - 80048f8: 431a orrs r2, r3 - 80048fa: 68fb ldr r3, [r7, #12] - 80048fc: 061b lsls r3, r3, #24 - 80048fe: 4910 ldr r1, [pc, #64] @ (8004940 ) - 8004900: 4313 orrs r3, r2 - 8004902: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 8004936: 687b ldr r3, [r7, #4] + 8004938: 699a ldr r2, [r3, #24] + 800493a: 687b ldr r3, [r7, #4] + 800493c: 69db ldr r3, [r3, #28] + 800493e: 019b lsls r3, r3, #6 + 8004940: 431a orrs r2, r3 + 8004942: 687b ldr r3, [r7, #4] + 8004944: 6a1b ldr r3, [r3, #32] + 8004946: 085b lsrs r3, r3, #1 + 8004948: 3b01 subs r3, #1 + 800494a: 041b lsls r3, r3, #16 + 800494c: 431a orrs r2, r3 + 800494e: 68fb ldr r3, [r7, #12] + 8004950: 061b lsls r3, r3, #24 + 8004952: 4910 ldr r1, [pc, #64] @ (8004994 ) + 8004954: 4313 orrs r3, r2 + 8004956: f8c1 3088 str.w r3, [r1, #136] @ 0x88 pllsaiq, 0U); } /* Enable PLLSAI Clock */ __HAL_RCC_PLLSAI_ENABLE(); - 8004906: 4b0f ldr r3, [pc, #60] @ (8004944 ) - 8004908: 2201 movs r2, #1 - 800490a: 601a str r2, [r3, #0] + 800495a: 4b0f ldr r3, [pc, #60] @ (8004998 ) + 800495c: 2201 movs r2, #1 + 800495e: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 800490c: f7fd f904 bl 8001b18 - 8004910: 6278 str r0, [r7, #36] @ 0x24 + 8004960: f7fd f904 bl 8001b6c + 8004964: 6278 str r0, [r7, #36] @ 0x24 /* Wait till PLLSAI is ready */ while (__HAL_RCC_PLLSAI_GET_FLAG() == RESET) - 8004912: e008 b.n 8004926 + 8004966: e008 b.n 800497a { if ((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE) - 8004914: f7fd f900 bl 8001b18 - 8004918: 4602 mov r2, r0 - 800491a: 6a7b ldr r3, [r7, #36] @ 0x24 - 800491c: 1ad3 subs r3, r2, r3 - 800491e: 2b02 cmp r3, #2 - 8004920: d901 bls.n 8004926 + 8004968: f7fd f900 bl 8001b6c + 800496c: 4602 mov r2, r0 + 800496e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8004970: 1ad3 subs r3, r2, r3 + 8004972: 2b02 cmp r3, #2 + 8004974: d901 bls.n 800497a { /* return in case of Timeout detected */ return HAL_TIMEOUT; - 8004922: 2303 movs r3, #3 - 8004924: e007 b.n 8004936 + 8004976: 2303 movs r3, #3 + 8004978: e007 b.n 800498a while (__HAL_RCC_PLLSAI_GET_FLAG() == RESET) - 8004926: 4b06 ldr r3, [pc, #24] @ (8004940 ) - 8004928: 681b ldr r3, [r3, #0] - 800492a: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 - 800492e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8004932: d1ef bne.n 8004914 + 800497a: 4b06 ldr r3, [pc, #24] @ (8004994 ) + 800497c: 681b ldr r3, [r3, #0] + 800497e: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 + 8004982: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 8004986: d1ef bne.n 8004968 } } } return HAL_OK; - 8004934: 2300 movs r3, #0 + 8004988: 2300 movs r3, #0 } - 8004936: 4618 mov r0, r3 - 8004938: 3730 adds r7, #48 @ 0x30 - 800493a: 46bd mov sp, r7 - 800493c: bd80 pop {r7, pc} - 800493e: bf00 nop - 8004940: 40023800 .word 0x40023800 - 8004944: 42470070 .word 0x42470070 + 800498a: 4618 mov r0, r3 + 800498c: 3730 adds r7, #48 @ 0x30 + 800498e: 46bd mov sp, r7 + 8004990: bd80 pop {r7, pc} + 8004992: bf00 nop + 8004994: 40023800 .word 0x40023800 + 8004998: 42470070 .word 0x42470070 -08004948 : +0800499c : * * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { - 8004948: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} - 800494c: b0ae sub sp, #184 @ 0xb8 - 800494e: af00 add r7, sp, #0 + 800499c: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} + 80049a0: b0ae sub sp, #184 @ 0xb8 + 80049a2: af00 add r7, sp, #0 uint32_t pllm = 0U; - 8004950: 2300 movs r3, #0 - 8004952: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 80049a4: 2300 movs r3, #0 + 80049a6: f8c7 30ac str.w r3, [r7, #172] @ 0xac uint32_t pllvco = 0U; - 8004956: 2300 movs r3, #0 - 8004958: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 80049aa: 2300 movs r3, #0 + 80049ac: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 uint32_t pllp = 0U; - 800495c: 2300 movs r3, #0 - 800495e: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 80049b0: 2300 movs r3, #0 + 80049b2: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 uint32_t pllr = 0U; - 8004962: 2300 movs r3, #0 - 8004964: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 80049b6: 2300 movs r3, #0 + 80049b8: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 uint32_t sysclockfreq = 0U; - 8004968: 2300 movs r3, #0 - 800496a: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 80049bc: 2300 movs r3, #0 + 80049be: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 /* Get SYSCLK source -------------------------------------------------------*/ switch (RCC->CFGR & RCC_CFGR_SWS) - 800496e: 4bcb ldr r3, [pc, #812] @ (8004c9c ) - 8004970: 689b ldr r3, [r3, #8] - 8004972: f003 030c and.w r3, r3, #12 - 8004976: 2b0c cmp r3, #12 - 8004978: f200 8206 bhi.w 8004d88 - 800497c: a201 add r2, pc, #4 @ (adr r2, 8004984 ) - 800497e: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8004982: bf00 nop - 8004984: 080049b9 .word 0x080049b9 - 8004988: 08004d89 .word 0x08004d89 - 800498c: 08004d89 .word 0x08004d89 - 8004990: 08004d89 .word 0x08004d89 - 8004994: 080049c1 .word 0x080049c1 - 8004998: 08004d89 .word 0x08004d89 - 800499c: 08004d89 .word 0x08004d89 - 80049a0: 08004d89 .word 0x08004d89 - 80049a4: 080049c9 .word 0x080049c9 - 80049a8: 08004d89 .word 0x08004d89 - 80049ac: 08004d89 .word 0x08004d89 - 80049b0: 08004d89 .word 0x08004d89 - 80049b4: 08004bb9 .word 0x08004bb9 + 80049c2: 4bcb ldr r3, [pc, #812] @ (8004cf0 ) + 80049c4: 689b ldr r3, [r3, #8] + 80049c6: f003 030c and.w r3, r3, #12 + 80049ca: 2b0c cmp r3, #12 + 80049cc: f200 8206 bhi.w 8004ddc + 80049d0: a201 add r2, pc, #4 @ (adr r2, 80049d8 ) + 80049d2: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 80049d6: bf00 nop + 80049d8: 08004a0d .word 0x08004a0d + 80049dc: 08004ddd .word 0x08004ddd + 80049e0: 08004ddd .word 0x08004ddd + 80049e4: 08004ddd .word 0x08004ddd + 80049e8: 08004a15 .word 0x08004a15 + 80049ec: 08004ddd .word 0x08004ddd + 80049f0: 08004ddd .word 0x08004ddd + 80049f4: 08004ddd .word 0x08004ddd + 80049f8: 08004a1d .word 0x08004a1d + 80049fc: 08004ddd .word 0x08004ddd + 8004a00: 08004ddd .word 0x08004ddd + 8004a04: 08004ddd .word 0x08004ddd + 8004a08: 08004c0d .word 0x08004c0d { case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */ { sysclockfreq = HSI_VALUE; - 80049b8: 4bb9 ldr r3, [pc, #740] @ (8004ca0 ) - 80049ba: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004a0c: 4bb9 ldr r3, [pc, #740] @ (8004cf4 ) + 8004a0e: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 80049be: e1e7 b.n 8004d90 + 8004a12: e1e7 b.n 8004de4 } case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */ { sysclockfreq = HSE_VALUE; - 80049c0: 4bb8 ldr r3, [pc, #736] @ (8004ca4 ) - 80049c2: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004a14: 4bb8 ldr r3, [pc, #736] @ (8004cf8 ) + 8004a16: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 80049c6: e1e3 b.n 8004d90 + 8004a1a: e1e3 b.n 8004de4 } case RCC_CFGR_SWS_PLL: /* PLL/PLLP used as system clock source */ { /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN SYSCLK = PLL_VCO / PLLP */ pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; - 80049c8: 4bb4 ldr r3, [pc, #720] @ (8004c9c ) - 80049ca: 685b ldr r3, [r3, #4] - 80049cc: f003 033f and.w r3, r3, #63 @ 0x3f - 80049d0: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8004a1c: 4bb4 ldr r3, [pc, #720] @ (8004cf0 ) + 8004a1e: 685b ldr r3, [r3, #4] + 8004a20: f003 033f and.w r3, r3, #63 @ 0x3f + 8004a24: f8c7 30ac str.w r3, [r7, #172] @ 0xac if (__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI) - 80049d4: 4bb1 ldr r3, [pc, #708] @ (8004c9c ) - 80049d6: 685b ldr r3, [r3, #4] - 80049d8: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 80049dc: 2b00 cmp r3, #0 - 80049de: d071 beq.n 8004ac4 + 8004a28: 4bb1 ldr r3, [pc, #708] @ (8004cf0 ) + 8004a2a: 685b ldr r3, [r3, #4] + 8004a2c: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004a30: 2b00 cmp r3, #0 + 8004a32: d071 beq.n 8004b18 { /* HSE used as PLL clock source */ pllvco = (uint32_t)((((uint64_t) HSE_VALUE * ((uint64_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); - 80049e0: 4bae ldr r3, [pc, #696] @ (8004c9c ) - 80049e2: 685b ldr r3, [r3, #4] - 80049e4: 099b lsrs r3, r3, #6 - 80049e6: 2200 movs r2, #0 - 80049e8: f8c7 3098 str.w r3, [r7, #152] @ 0x98 - 80049ec: f8c7 209c str.w r2, [r7, #156] @ 0x9c - 80049f0: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 - 80049f4: f3c3 0308 ubfx r3, r3, #0, #9 - 80049f8: f8c7 3090 str.w r3, [r7, #144] @ 0x90 - 80049fc: 2300 movs r3, #0 - 80049fe: f8c7 3094 str.w r3, [r7, #148] @ 0x94 - 8004a02: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 - 8004a06: 4622 mov r2, r4 - 8004a08: 462b mov r3, r5 - 8004a0a: f04f 0000 mov.w r0, #0 - 8004a0e: f04f 0100 mov.w r1, #0 - 8004a12: 0159 lsls r1, r3, #5 - 8004a14: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8004a18: 0150 lsls r0, r2, #5 - 8004a1a: 4602 mov r2, r0 - 8004a1c: 460b mov r3, r1 - 8004a1e: 4621 mov r1, r4 - 8004a20: 1a51 subs r1, r2, r1 - 8004a22: 6439 str r1, [r7, #64] @ 0x40 - 8004a24: 4629 mov r1, r5 - 8004a26: eb63 0301 sbc.w r3, r3, r1 - 8004a2a: 647b str r3, [r7, #68] @ 0x44 - 8004a2c: f04f 0200 mov.w r2, #0 - 8004a30: f04f 0300 mov.w r3, #0 - 8004a34: e9d7 8910 ldrd r8, r9, [r7, #64] @ 0x40 - 8004a38: 4649 mov r1, r9 - 8004a3a: 018b lsls r3, r1, #6 - 8004a3c: 4641 mov r1, r8 - 8004a3e: ea43 6391 orr.w r3, r3, r1, lsr #26 - 8004a42: 4641 mov r1, r8 - 8004a44: 018a lsls r2, r1, #6 - 8004a46: 4641 mov r1, r8 - 8004a48: 1a51 subs r1, r2, r1 - 8004a4a: 63b9 str r1, [r7, #56] @ 0x38 - 8004a4c: 4649 mov r1, r9 - 8004a4e: eb63 0301 sbc.w r3, r3, r1 - 8004a52: 63fb str r3, [r7, #60] @ 0x3c - 8004a54: f04f 0200 mov.w r2, #0 - 8004a58: f04f 0300 mov.w r3, #0 - 8004a5c: e9d7 890e ldrd r8, r9, [r7, #56] @ 0x38 - 8004a60: 4649 mov r1, r9 - 8004a62: 00cb lsls r3, r1, #3 - 8004a64: 4641 mov r1, r8 - 8004a66: ea43 7351 orr.w r3, r3, r1, lsr #29 - 8004a6a: 4641 mov r1, r8 - 8004a6c: 00ca lsls r2, r1, #3 - 8004a6e: 4610 mov r0, r2 - 8004a70: 4619 mov r1, r3 - 8004a72: 4603 mov r3, r0 - 8004a74: 4622 mov r2, r4 - 8004a76: 189b adds r3, r3, r2 - 8004a78: 633b str r3, [r7, #48] @ 0x30 - 8004a7a: 462b mov r3, r5 - 8004a7c: 460a mov r2, r1 - 8004a7e: eb42 0303 adc.w r3, r2, r3 - 8004a82: 637b str r3, [r7, #52] @ 0x34 - 8004a84: f04f 0200 mov.w r2, #0 - 8004a88: f04f 0300 mov.w r3, #0 - 8004a8c: e9d7 450c ldrd r4, r5, [r7, #48] @ 0x30 - 8004a90: 4629 mov r1, r5 - 8004a92: 024b lsls r3, r1, #9 - 8004a94: 4621 mov r1, r4 - 8004a96: ea43 53d1 orr.w r3, r3, r1, lsr #23 - 8004a9a: 4621 mov r1, r4 - 8004a9c: 024a lsls r2, r1, #9 - 8004a9e: 4610 mov r0, r2 - 8004aa0: 4619 mov r1, r3 - 8004aa2: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8004aa6: 2200 movs r2, #0 - 8004aa8: f8c7 3088 str.w r3, [r7, #136] @ 0x88 - 8004aac: f8c7 208c str.w r2, [r7, #140] @ 0x8c - 8004ab0: e9d7 2322 ldrd r2, r3, [r7, #136] @ 0x88 - 8004ab4: f7fb fba6 bl 8000204 <__aeabi_uldivmod> - 8004ab8: 4602 mov r2, r0 - 8004aba: 460b mov r3, r1 - 8004abc: 4613 mov r3, r2 - 8004abe: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 8004ac2: e067 b.n 8004b94 + 8004a34: 4bae ldr r3, [pc, #696] @ (8004cf0 ) + 8004a36: 685b ldr r3, [r3, #4] + 8004a38: 099b lsrs r3, r3, #6 + 8004a3a: 2200 movs r2, #0 + 8004a3c: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 8004a40: f8c7 209c str.w r2, [r7, #156] @ 0x9c + 8004a44: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 + 8004a48: f3c3 0308 ubfx r3, r3, #0, #9 + 8004a4c: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 8004a50: 2300 movs r3, #0 + 8004a52: f8c7 3094 str.w r3, [r7, #148] @ 0x94 + 8004a56: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 + 8004a5a: 4622 mov r2, r4 + 8004a5c: 462b mov r3, r5 + 8004a5e: f04f 0000 mov.w r0, #0 + 8004a62: f04f 0100 mov.w r1, #0 + 8004a66: 0159 lsls r1, r3, #5 + 8004a68: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8004a6c: 0150 lsls r0, r2, #5 + 8004a6e: 4602 mov r2, r0 + 8004a70: 460b mov r3, r1 + 8004a72: 4621 mov r1, r4 + 8004a74: 1a51 subs r1, r2, r1 + 8004a76: 6439 str r1, [r7, #64] @ 0x40 + 8004a78: 4629 mov r1, r5 + 8004a7a: eb63 0301 sbc.w r3, r3, r1 + 8004a7e: 647b str r3, [r7, #68] @ 0x44 + 8004a80: f04f 0200 mov.w r2, #0 + 8004a84: f04f 0300 mov.w r3, #0 + 8004a88: e9d7 8910 ldrd r8, r9, [r7, #64] @ 0x40 + 8004a8c: 4649 mov r1, r9 + 8004a8e: 018b lsls r3, r1, #6 + 8004a90: 4641 mov r1, r8 + 8004a92: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8004a96: 4641 mov r1, r8 + 8004a98: 018a lsls r2, r1, #6 + 8004a9a: 4641 mov r1, r8 + 8004a9c: 1a51 subs r1, r2, r1 + 8004a9e: 63b9 str r1, [r7, #56] @ 0x38 + 8004aa0: 4649 mov r1, r9 + 8004aa2: eb63 0301 sbc.w r3, r3, r1 + 8004aa6: 63fb str r3, [r7, #60] @ 0x3c + 8004aa8: f04f 0200 mov.w r2, #0 + 8004aac: f04f 0300 mov.w r3, #0 + 8004ab0: e9d7 890e ldrd r8, r9, [r7, #56] @ 0x38 + 8004ab4: 4649 mov r1, r9 + 8004ab6: 00cb lsls r3, r1, #3 + 8004ab8: 4641 mov r1, r8 + 8004aba: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8004abe: 4641 mov r1, r8 + 8004ac0: 00ca lsls r2, r1, #3 + 8004ac2: 4610 mov r0, r2 + 8004ac4: 4619 mov r1, r3 + 8004ac6: 4603 mov r3, r0 + 8004ac8: 4622 mov r2, r4 + 8004aca: 189b adds r3, r3, r2 + 8004acc: 633b str r3, [r7, #48] @ 0x30 + 8004ace: 462b mov r3, r5 + 8004ad0: 460a mov r2, r1 + 8004ad2: eb42 0303 adc.w r3, r2, r3 + 8004ad6: 637b str r3, [r7, #52] @ 0x34 + 8004ad8: f04f 0200 mov.w r2, #0 + 8004adc: f04f 0300 mov.w r3, #0 + 8004ae0: e9d7 450c ldrd r4, r5, [r7, #48] @ 0x30 + 8004ae4: 4629 mov r1, r5 + 8004ae6: 024b lsls r3, r1, #9 + 8004ae8: 4621 mov r1, r4 + 8004aea: ea43 53d1 orr.w r3, r3, r1, lsr #23 + 8004aee: 4621 mov r1, r4 + 8004af0: 024a lsls r2, r1, #9 + 8004af2: 4610 mov r0, r2 + 8004af4: 4619 mov r1, r3 + 8004af6: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8004afa: 2200 movs r2, #0 + 8004afc: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 8004b00: f8c7 208c str.w r2, [r7, #140] @ 0x8c + 8004b04: e9d7 2322 ldrd r2, r3, [r7, #136] @ 0x88 + 8004b08: f7fb fb7c bl 8000204 <__aeabi_uldivmod> + 8004b0c: 4602 mov r2, r0 + 8004b0e: 460b mov r3, r1 + 8004b10: 4613 mov r3, r2 + 8004b12: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8004b16: e067 b.n 8004be8 } else { /* HSI used as PLL clock source */ pllvco = (uint32_t)((((uint64_t) HSI_VALUE * ((uint64_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); - 8004ac4: 4b75 ldr r3, [pc, #468] @ (8004c9c ) - 8004ac6: 685b ldr r3, [r3, #4] - 8004ac8: 099b lsrs r3, r3, #6 - 8004aca: 2200 movs r2, #0 - 8004acc: f8c7 3080 str.w r3, [r7, #128] @ 0x80 - 8004ad0: f8c7 2084 str.w r2, [r7, #132] @ 0x84 - 8004ad4: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 - 8004ad8: f3c3 0308 ubfx r3, r3, #0, #9 - 8004adc: 67bb str r3, [r7, #120] @ 0x78 - 8004ade: 2300 movs r3, #0 - 8004ae0: 67fb str r3, [r7, #124] @ 0x7c - 8004ae2: e9d7 451e ldrd r4, r5, [r7, #120] @ 0x78 - 8004ae6: 4622 mov r2, r4 - 8004ae8: 462b mov r3, r5 - 8004aea: f04f 0000 mov.w r0, #0 - 8004aee: f04f 0100 mov.w r1, #0 - 8004af2: 0159 lsls r1, r3, #5 - 8004af4: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8004af8: 0150 lsls r0, r2, #5 - 8004afa: 4602 mov r2, r0 - 8004afc: 460b mov r3, r1 - 8004afe: 4621 mov r1, r4 - 8004b00: 1a51 subs r1, r2, r1 - 8004b02: 62b9 str r1, [r7, #40] @ 0x28 - 8004b04: 4629 mov r1, r5 - 8004b06: eb63 0301 sbc.w r3, r3, r1 - 8004b0a: 62fb str r3, [r7, #44] @ 0x2c - 8004b0c: f04f 0200 mov.w r2, #0 - 8004b10: f04f 0300 mov.w r3, #0 - 8004b14: e9d7 890a ldrd r8, r9, [r7, #40] @ 0x28 - 8004b18: 4649 mov r1, r9 - 8004b1a: 018b lsls r3, r1, #6 - 8004b1c: 4641 mov r1, r8 - 8004b1e: ea43 6391 orr.w r3, r3, r1, lsr #26 - 8004b22: 4641 mov r1, r8 - 8004b24: 018a lsls r2, r1, #6 - 8004b26: 4641 mov r1, r8 - 8004b28: ebb2 0a01 subs.w sl, r2, r1 - 8004b2c: 4649 mov r1, r9 - 8004b2e: eb63 0b01 sbc.w fp, r3, r1 - 8004b32: f04f 0200 mov.w r2, #0 - 8004b36: f04f 0300 mov.w r3, #0 - 8004b3a: ea4f 03cb mov.w r3, fp, lsl #3 - 8004b3e: ea43 735a orr.w r3, r3, sl, lsr #29 - 8004b42: ea4f 02ca mov.w r2, sl, lsl #3 - 8004b46: 4692 mov sl, r2 - 8004b48: 469b mov fp, r3 - 8004b4a: 4623 mov r3, r4 - 8004b4c: eb1a 0303 adds.w r3, sl, r3 - 8004b50: 623b str r3, [r7, #32] - 8004b52: 462b mov r3, r5 - 8004b54: eb4b 0303 adc.w r3, fp, r3 - 8004b58: 627b str r3, [r7, #36] @ 0x24 - 8004b5a: f04f 0200 mov.w r2, #0 - 8004b5e: f04f 0300 mov.w r3, #0 - 8004b62: e9d7 4508 ldrd r4, r5, [r7, #32] - 8004b66: 4629 mov r1, r5 - 8004b68: 028b lsls r3, r1, #10 - 8004b6a: 4621 mov r1, r4 - 8004b6c: ea43 5391 orr.w r3, r3, r1, lsr #22 - 8004b70: 4621 mov r1, r4 - 8004b72: 028a lsls r2, r1, #10 - 8004b74: 4610 mov r0, r2 - 8004b76: 4619 mov r1, r3 - 8004b78: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8004b7c: 2200 movs r2, #0 - 8004b7e: 673b str r3, [r7, #112] @ 0x70 - 8004b80: 677a str r2, [r7, #116] @ 0x74 - 8004b82: e9d7 231c ldrd r2, r3, [r7, #112] @ 0x70 - 8004b86: f7fb fb3d bl 8000204 <__aeabi_uldivmod> - 8004b8a: 4602 mov r2, r0 - 8004b8c: 460b mov r3, r1 - 8004b8e: 4613 mov r3, r2 - 8004b90: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8004b18: 4b75 ldr r3, [pc, #468] @ (8004cf0 ) + 8004b1a: 685b ldr r3, [r3, #4] + 8004b1c: 099b lsrs r3, r3, #6 + 8004b1e: 2200 movs r2, #0 + 8004b20: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 8004b24: f8c7 2084 str.w r2, [r7, #132] @ 0x84 + 8004b28: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 + 8004b2c: f3c3 0308 ubfx r3, r3, #0, #9 + 8004b30: 67bb str r3, [r7, #120] @ 0x78 + 8004b32: 2300 movs r3, #0 + 8004b34: 67fb str r3, [r7, #124] @ 0x7c + 8004b36: e9d7 451e ldrd r4, r5, [r7, #120] @ 0x78 + 8004b3a: 4622 mov r2, r4 + 8004b3c: 462b mov r3, r5 + 8004b3e: f04f 0000 mov.w r0, #0 + 8004b42: f04f 0100 mov.w r1, #0 + 8004b46: 0159 lsls r1, r3, #5 + 8004b48: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8004b4c: 0150 lsls r0, r2, #5 + 8004b4e: 4602 mov r2, r0 + 8004b50: 460b mov r3, r1 + 8004b52: 4621 mov r1, r4 + 8004b54: 1a51 subs r1, r2, r1 + 8004b56: 62b9 str r1, [r7, #40] @ 0x28 + 8004b58: 4629 mov r1, r5 + 8004b5a: eb63 0301 sbc.w r3, r3, r1 + 8004b5e: 62fb str r3, [r7, #44] @ 0x2c + 8004b60: f04f 0200 mov.w r2, #0 + 8004b64: f04f 0300 mov.w r3, #0 + 8004b68: e9d7 890a ldrd r8, r9, [r7, #40] @ 0x28 + 8004b6c: 4649 mov r1, r9 + 8004b6e: 018b lsls r3, r1, #6 + 8004b70: 4641 mov r1, r8 + 8004b72: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8004b76: 4641 mov r1, r8 + 8004b78: 018a lsls r2, r1, #6 + 8004b7a: 4641 mov r1, r8 + 8004b7c: ebb2 0a01 subs.w sl, r2, r1 + 8004b80: 4649 mov r1, r9 + 8004b82: eb63 0b01 sbc.w fp, r3, r1 + 8004b86: f04f 0200 mov.w r2, #0 + 8004b8a: f04f 0300 mov.w r3, #0 + 8004b8e: ea4f 03cb mov.w r3, fp, lsl #3 + 8004b92: ea43 735a orr.w r3, r3, sl, lsr #29 + 8004b96: ea4f 02ca mov.w r2, sl, lsl #3 + 8004b9a: 4692 mov sl, r2 + 8004b9c: 469b mov fp, r3 + 8004b9e: 4623 mov r3, r4 + 8004ba0: eb1a 0303 adds.w r3, sl, r3 + 8004ba4: 623b str r3, [r7, #32] + 8004ba6: 462b mov r3, r5 + 8004ba8: eb4b 0303 adc.w r3, fp, r3 + 8004bac: 627b str r3, [r7, #36] @ 0x24 + 8004bae: f04f 0200 mov.w r2, #0 + 8004bb2: f04f 0300 mov.w r3, #0 + 8004bb6: e9d7 4508 ldrd r4, r5, [r7, #32] + 8004bba: 4629 mov r1, r5 + 8004bbc: 028b lsls r3, r1, #10 + 8004bbe: 4621 mov r1, r4 + 8004bc0: ea43 5391 orr.w r3, r3, r1, lsr #22 + 8004bc4: 4621 mov r1, r4 + 8004bc6: 028a lsls r2, r1, #10 + 8004bc8: 4610 mov r0, r2 + 8004bca: 4619 mov r1, r3 + 8004bcc: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8004bd0: 2200 movs r2, #0 + 8004bd2: 673b str r3, [r7, #112] @ 0x70 + 8004bd4: 677a str r2, [r7, #116] @ 0x74 + 8004bd6: e9d7 231c ldrd r2, r3, [r7, #112] @ 0x70 + 8004bda: f7fb fb13 bl 8000204 <__aeabi_uldivmod> + 8004bde: 4602 mov r2, r0 + 8004be0: 460b mov r3, r1 + 8004be2: 4613 mov r3, r2 + 8004be4: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 } pllp = ((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) + 1U) * 2U); - 8004b94: 4b41 ldr r3, [pc, #260] @ (8004c9c ) - 8004b96: 685b ldr r3, [r3, #4] - 8004b98: 0c1b lsrs r3, r3, #16 - 8004b9a: f003 0303 and.w r3, r3, #3 - 8004b9e: 3301 adds r3, #1 - 8004ba0: 005b lsls r3, r3, #1 - 8004ba2: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 8004be8: 4b41 ldr r3, [pc, #260] @ (8004cf0 ) + 8004bea: 685b ldr r3, [r3, #4] + 8004bec: 0c1b lsrs r3, r3, #16 + 8004bee: f003 0303 and.w r3, r3, #3 + 8004bf2: 3301 adds r3, #1 + 8004bf4: 005b lsls r3, r3, #1 + 8004bf6: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 sysclockfreq = pllvco / pllp; - 8004ba6: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 - 8004baa: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 - 8004bae: fbb2 f3f3 udiv r3, r2, r3 - 8004bb2: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004bfa: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 + 8004bfe: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 + 8004c02: fbb2 f3f3 udiv r3, r2, r3 + 8004c06: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 8004bb6: e0eb b.n 8004d90 + 8004c0a: e0eb b.n 8004de4 } case RCC_CFGR_SWS_PLLR: /* PLL/PLLR used as system clock source */ { /* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN SYSCLK = PLL_VCO / PLLR */ pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM; - 8004bb8: 4b38 ldr r3, [pc, #224] @ (8004c9c ) - 8004bba: 685b ldr r3, [r3, #4] - 8004bbc: f003 033f and.w r3, r3, #63 @ 0x3f - 8004bc0: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8004c0c: 4b38 ldr r3, [pc, #224] @ (8004cf0 ) + 8004c0e: 685b ldr r3, [r3, #4] + 8004c10: f003 033f and.w r3, r3, #63 @ 0x3f + 8004c14: f8c7 30ac str.w r3, [r7, #172] @ 0xac if (__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI) - 8004bc4: 4b35 ldr r3, [pc, #212] @ (8004c9c ) - 8004bc6: 685b ldr r3, [r3, #4] - 8004bc8: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8004bcc: 2b00 cmp r3, #0 - 8004bce: d06b beq.n 8004ca8 + 8004c18: 4b35 ldr r3, [pc, #212] @ (8004cf0 ) + 8004c1a: 685b ldr r3, [r3, #4] + 8004c1c: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004c20: 2b00 cmp r3, #0 + 8004c22: d06b beq.n 8004cfc { /* HSE used as PLL clock source */ pllvco = (uint32_t)((((uint64_t) HSE_VALUE * ((uint64_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); - 8004bd0: 4b32 ldr r3, [pc, #200] @ (8004c9c ) - 8004bd2: 685b ldr r3, [r3, #4] - 8004bd4: 099b lsrs r3, r3, #6 - 8004bd6: 2200 movs r2, #0 - 8004bd8: 66bb str r3, [r7, #104] @ 0x68 - 8004bda: 66fa str r2, [r7, #108] @ 0x6c - 8004bdc: 6ebb ldr r3, [r7, #104] @ 0x68 - 8004bde: f3c3 0308 ubfx r3, r3, #0, #9 - 8004be2: 663b str r3, [r7, #96] @ 0x60 - 8004be4: 2300 movs r3, #0 - 8004be6: 667b str r3, [r7, #100] @ 0x64 - 8004be8: e9d7 4518 ldrd r4, r5, [r7, #96] @ 0x60 - 8004bec: 4622 mov r2, r4 - 8004bee: 462b mov r3, r5 - 8004bf0: f04f 0000 mov.w r0, #0 - 8004bf4: f04f 0100 mov.w r1, #0 - 8004bf8: 0159 lsls r1, r3, #5 - 8004bfa: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8004bfe: 0150 lsls r0, r2, #5 - 8004c00: 4602 mov r2, r0 - 8004c02: 460b mov r3, r1 - 8004c04: 4621 mov r1, r4 - 8004c06: 1a51 subs r1, r2, r1 - 8004c08: 61b9 str r1, [r7, #24] - 8004c0a: 4629 mov r1, r5 - 8004c0c: eb63 0301 sbc.w r3, r3, r1 - 8004c10: 61fb str r3, [r7, #28] - 8004c12: f04f 0200 mov.w r2, #0 - 8004c16: f04f 0300 mov.w r3, #0 - 8004c1a: e9d7 ab06 ldrd sl, fp, [r7, #24] - 8004c1e: 4659 mov r1, fp - 8004c20: 018b lsls r3, r1, #6 - 8004c22: 4651 mov r1, sl - 8004c24: ea43 6391 orr.w r3, r3, r1, lsr #26 - 8004c28: 4651 mov r1, sl - 8004c2a: 018a lsls r2, r1, #6 - 8004c2c: 4651 mov r1, sl - 8004c2e: ebb2 0801 subs.w r8, r2, r1 - 8004c32: 4659 mov r1, fp - 8004c34: eb63 0901 sbc.w r9, r3, r1 - 8004c38: f04f 0200 mov.w r2, #0 - 8004c3c: f04f 0300 mov.w r3, #0 - 8004c40: ea4f 03c9 mov.w r3, r9, lsl #3 - 8004c44: ea43 7358 orr.w r3, r3, r8, lsr #29 - 8004c48: ea4f 02c8 mov.w r2, r8, lsl #3 - 8004c4c: 4690 mov r8, r2 - 8004c4e: 4699 mov r9, r3 - 8004c50: 4623 mov r3, r4 - 8004c52: eb18 0303 adds.w r3, r8, r3 - 8004c56: 613b str r3, [r7, #16] - 8004c58: 462b mov r3, r5 - 8004c5a: eb49 0303 adc.w r3, r9, r3 - 8004c5e: 617b str r3, [r7, #20] - 8004c60: f04f 0200 mov.w r2, #0 - 8004c64: f04f 0300 mov.w r3, #0 - 8004c68: e9d7 4504 ldrd r4, r5, [r7, #16] - 8004c6c: 4629 mov r1, r5 - 8004c6e: 024b lsls r3, r1, #9 - 8004c70: 4621 mov r1, r4 - 8004c72: ea43 53d1 orr.w r3, r3, r1, lsr #23 - 8004c76: 4621 mov r1, r4 - 8004c78: 024a lsls r2, r1, #9 - 8004c7a: 4610 mov r0, r2 - 8004c7c: 4619 mov r1, r3 - 8004c7e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8004c82: 2200 movs r2, #0 - 8004c84: 65bb str r3, [r7, #88] @ 0x58 - 8004c86: 65fa str r2, [r7, #92] @ 0x5c - 8004c88: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 - 8004c8c: f7fb faba bl 8000204 <__aeabi_uldivmod> - 8004c90: 4602 mov r2, r0 - 8004c92: 460b mov r3, r1 - 8004c94: 4613 mov r3, r2 - 8004c96: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 8004c9a: e065 b.n 8004d68 - 8004c9c: 40023800 .word 0x40023800 - 8004ca0: 00f42400 .word 0x00f42400 - 8004ca4: 007a1200 .word 0x007a1200 + 8004c24: 4b32 ldr r3, [pc, #200] @ (8004cf0 ) + 8004c26: 685b ldr r3, [r3, #4] + 8004c28: 099b lsrs r3, r3, #6 + 8004c2a: 2200 movs r2, #0 + 8004c2c: 66bb str r3, [r7, #104] @ 0x68 + 8004c2e: 66fa str r2, [r7, #108] @ 0x6c + 8004c30: 6ebb ldr r3, [r7, #104] @ 0x68 + 8004c32: f3c3 0308 ubfx r3, r3, #0, #9 + 8004c36: 663b str r3, [r7, #96] @ 0x60 + 8004c38: 2300 movs r3, #0 + 8004c3a: 667b str r3, [r7, #100] @ 0x64 + 8004c3c: e9d7 4518 ldrd r4, r5, [r7, #96] @ 0x60 + 8004c40: 4622 mov r2, r4 + 8004c42: 462b mov r3, r5 + 8004c44: f04f 0000 mov.w r0, #0 + 8004c48: f04f 0100 mov.w r1, #0 + 8004c4c: 0159 lsls r1, r3, #5 + 8004c4e: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8004c52: 0150 lsls r0, r2, #5 + 8004c54: 4602 mov r2, r0 + 8004c56: 460b mov r3, r1 + 8004c58: 4621 mov r1, r4 + 8004c5a: 1a51 subs r1, r2, r1 + 8004c5c: 61b9 str r1, [r7, #24] + 8004c5e: 4629 mov r1, r5 + 8004c60: eb63 0301 sbc.w r3, r3, r1 + 8004c64: 61fb str r3, [r7, #28] + 8004c66: f04f 0200 mov.w r2, #0 + 8004c6a: f04f 0300 mov.w r3, #0 + 8004c6e: e9d7 ab06 ldrd sl, fp, [r7, #24] + 8004c72: 4659 mov r1, fp + 8004c74: 018b lsls r3, r1, #6 + 8004c76: 4651 mov r1, sl + 8004c78: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8004c7c: 4651 mov r1, sl + 8004c7e: 018a lsls r2, r1, #6 + 8004c80: 4651 mov r1, sl + 8004c82: ebb2 0801 subs.w r8, r2, r1 + 8004c86: 4659 mov r1, fp + 8004c88: eb63 0901 sbc.w r9, r3, r1 + 8004c8c: f04f 0200 mov.w r2, #0 + 8004c90: f04f 0300 mov.w r3, #0 + 8004c94: ea4f 03c9 mov.w r3, r9, lsl #3 + 8004c98: ea43 7358 orr.w r3, r3, r8, lsr #29 + 8004c9c: ea4f 02c8 mov.w r2, r8, lsl #3 + 8004ca0: 4690 mov r8, r2 + 8004ca2: 4699 mov r9, r3 + 8004ca4: 4623 mov r3, r4 + 8004ca6: eb18 0303 adds.w r3, r8, r3 + 8004caa: 613b str r3, [r7, #16] + 8004cac: 462b mov r3, r5 + 8004cae: eb49 0303 adc.w r3, r9, r3 + 8004cb2: 617b str r3, [r7, #20] + 8004cb4: f04f 0200 mov.w r2, #0 + 8004cb8: f04f 0300 mov.w r3, #0 + 8004cbc: e9d7 4504 ldrd r4, r5, [r7, #16] + 8004cc0: 4629 mov r1, r5 + 8004cc2: 024b lsls r3, r1, #9 + 8004cc4: 4621 mov r1, r4 + 8004cc6: ea43 53d1 orr.w r3, r3, r1, lsr #23 + 8004cca: 4621 mov r1, r4 + 8004ccc: 024a lsls r2, r1, #9 + 8004cce: 4610 mov r0, r2 + 8004cd0: 4619 mov r1, r3 + 8004cd2: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8004cd6: 2200 movs r2, #0 + 8004cd8: 65bb str r3, [r7, #88] @ 0x58 + 8004cda: 65fa str r2, [r7, #92] @ 0x5c + 8004cdc: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 + 8004ce0: f7fb fa90 bl 8000204 <__aeabi_uldivmod> + 8004ce4: 4602 mov r2, r0 + 8004ce6: 460b mov r3, r1 + 8004ce8: 4613 mov r3, r2 + 8004cea: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8004cee: e065 b.n 8004dbc + 8004cf0: 40023800 .word 0x40023800 + 8004cf4: 00f42400 .word 0x00f42400 + 8004cf8: 007a1200 .word 0x007a1200 } else { /* HSI used as PLL clock source */ pllvco = (uint32_t)((((uint64_t) HSI_VALUE * ((uint64_t)((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> RCC_PLLCFGR_PLLN_Pos)))) / (uint64_t)pllm); - 8004ca8: 4b3d ldr r3, [pc, #244] @ (8004da0 ) - 8004caa: 685b ldr r3, [r3, #4] - 8004cac: 099b lsrs r3, r3, #6 - 8004cae: 2200 movs r2, #0 - 8004cb0: 4618 mov r0, r3 - 8004cb2: 4611 mov r1, r2 - 8004cb4: f3c0 0308 ubfx r3, r0, #0, #9 - 8004cb8: 653b str r3, [r7, #80] @ 0x50 - 8004cba: 2300 movs r3, #0 - 8004cbc: 657b str r3, [r7, #84] @ 0x54 - 8004cbe: e9d7 8914 ldrd r8, r9, [r7, #80] @ 0x50 - 8004cc2: 4642 mov r2, r8 - 8004cc4: 464b mov r3, r9 - 8004cc6: f04f 0000 mov.w r0, #0 - 8004cca: f04f 0100 mov.w r1, #0 - 8004cce: 0159 lsls r1, r3, #5 - 8004cd0: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8004cd4: 0150 lsls r0, r2, #5 - 8004cd6: 4602 mov r2, r0 - 8004cd8: 460b mov r3, r1 - 8004cda: 4641 mov r1, r8 - 8004cdc: 1a51 subs r1, r2, r1 - 8004cde: 60b9 str r1, [r7, #8] - 8004ce0: 4649 mov r1, r9 - 8004ce2: eb63 0301 sbc.w r3, r3, r1 - 8004ce6: 60fb str r3, [r7, #12] - 8004ce8: f04f 0200 mov.w r2, #0 - 8004cec: f04f 0300 mov.w r3, #0 - 8004cf0: e9d7 ab02 ldrd sl, fp, [r7, #8] - 8004cf4: 4659 mov r1, fp - 8004cf6: 018b lsls r3, r1, #6 - 8004cf8: 4651 mov r1, sl - 8004cfa: ea43 6391 orr.w r3, r3, r1, lsr #26 - 8004cfe: 4651 mov r1, sl - 8004d00: 018a lsls r2, r1, #6 - 8004d02: 4651 mov r1, sl - 8004d04: 1a54 subs r4, r2, r1 - 8004d06: 4659 mov r1, fp - 8004d08: eb63 0501 sbc.w r5, r3, r1 - 8004d0c: f04f 0200 mov.w r2, #0 - 8004d10: f04f 0300 mov.w r3, #0 - 8004d14: 00eb lsls r3, r5, #3 - 8004d16: ea43 7354 orr.w r3, r3, r4, lsr #29 - 8004d1a: 00e2 lsls r2, r4, #3 - 8004d1c: 4614 mov r4, r2 - 8004d1e: 461d mov r5, r3 - 8004d20: 4643 mov r3, r8 - 8004d22: 18e3 adds r3, r4, r3 - 8004d24: 603b str r3, [r7, #0] - 8004d26: 464b mov r3, r9 - 8004d28: eb45 0303 adc.w r3, r5, r3 - 8004d2c: 607b str r3, [r7, #4] - 8004d2e: f04f 0200 mov.w r2, #0 - 8004d32: f04f 0300 mov.w r3, #0 - 8004d36: e9d7 4500 ldrd r4, r5, [r7] - 8004d3a: 4629 mov r1, r5 - 8004d3c: 028b lsls r3, r1, #10 - 8004d3e: 4621 mov r1, r4 - 8004d40: ea43 5391 orr.w r3, r3, r1, lsr #22 - 8004d44: 4621 mov r1, r4 - 8004d46: 028a lsls r2, r1, #10 - 8004d48: 4610 mov r0, r2 - 8004d4a: 4619 mov r1, r3 - 8004d4c: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8004d50: 2200 movs r2, #0 - 8004d52: 64bb str r3, [r7, #72] @ 0x48 - 8004d54: 64fa str r2, [r7, #76] @ 0x4c - 8004d56: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 - 8004d5a: f7fb fa53 bl 8000204 <__aeabi_uldivmod> - 8004d5e: 4602 mov r2, r0 - 8004d60: 460b mov r3, r1 - 8004d62: 4613 mov r3, r2 - 8004d64: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8004cfc: 4b3d ldr r3, [pc, #244] @ (8004df4 ) + 8004cfe: 685b ldr r3, [r3, #4] + 8004d00: 099b lsrs r3, r3, #6 + 8004d02: 2200 movs r2, #0 + 8004d04: 4618 mov r0, r3 + 8004d06: 4611 mov r1, r2 + 8004d08: f3c0 0308 ubfx r3, r0, #0, #9 + 8004d0c: 653b str r3, [r7, #80] @ 0x50 + 8004d0e: 2300 movs r3, #0 + 8004d10: 657b str r3, [r7, #84] @ 0x54 + 8004d12: e9d7 8914 ldrd r8, r9, [r7, #80] @ 0x50 + 8004d16: 4642 mov r2, r8 + 8004d18: 464b mov r3, r9 + 8004d1a: f04f 0000 mov.w r0, #0 + 8004d1e: f04f 0100 mov.w r1, #0 + 8004d22: 0159 lsls r1, r3, #5 + 8004d24: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8004d28: 0150 lsls r0, r2, #5 + 8004d2a: 4602 mov r2, r0 + 8004d2c: 460b mov r3, r1 + 8004d2e: 4641 mov r1, r8 + 8004d30: 1a51 subs r1, r2, r1 + 8004d32: 60b9 str r1, [r7, #8] + 8004d34: 4649 mov r1, r9 + 8004d36: eb63 0301 sbc.w r3, r3, r1 + 8004d3a: 60fb str r3, [r7, #12] + 8004d3c: f04f 0200 mov.w r2, #0 + 8004d40: f04f 0300 mov.w r3, #0 + 8004d44: e9d7 ab02 ldrd sl, fp, [r7, #8] + 8004d48: 4659 mov r1, fp + 8004d4a: 018b lsls r3, r1, #6 + 8004d4c: 4651 mov r1, sl + 8004d4e: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8004d52: 4651 mov r1, sl + 8004d54: 018a lsls r2, r1, #6 + 8004d56: 4651 mov r1, sl + 8004d58: 1a54 subs r4, r2, r1 + 8004d5a: 4659 mov r1, fp + 8004d5c: eb63 0501 sbc.w r5, r3, r1 + 8004d60: f04f 0200 mov.w r2, #0 + 8004d64: f04f 0300 mov.w r3, #0 + 8004d68: 00eb lsls r3, r5, #3 + 8004d6a: ea43 7354 orr.w r3, r3, r4, lsr #29 + 8004d6e: 00e2 lsls r2, r4, #3 + 8004d70: 4614 mov r4, r2 + 8004d72: 461d mov r5, r3 + 8004d74: 4643 mov r3, r8 + 8004d76: 18e3 adds r3, r4, r3 + 8004d78: 603b str r3, [r7, #0] + 8004d7a: 464b mov r3, r9 + 8004d7c: eb45 0303 adc.w r3, r5, r3 + 8004d80: 607b str r3, [r7, #4] + 8004d82: f04f 0200 mov.w r2, #0 + 8004d86: f04f 0300 mov.w r3, #0 + 8004d8a: e9d7 4500 ldrd r4, r5, [r7] + 8004d8e: 4629 mov r1, r5 + 8004d90: 028b lsls r3, r1, #10 + 8004d92: 4621 mov r1, r4 + 8004d94: ea43 5391 orr.w r3, r3, r1, lsr #22 + 8004d98: 4621 mov r1, r4 + 8004d9a: 028a lsls r2, r1, #10 + 8004d9c: 4610 mov r0, r2 + 8004d9e: 4619 mov r1, r3 + 8004da0: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8004da4: 2200 movs r2, #0 + 8004da6: 64bb str r3, [r7, #72] @ 0x48 + 8004da8: 64fa str r2, [r7, #76] @ 0x4c + 8004daa: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 + 8004dae: f7fb fa29 bl 8000204 <__aeabi_uldivmod> + 8004db2: 4602 mov r2, r0 + 8004db4: 460b mov r3, r1 + 8004db6: 4613 mov r3, r2 + 8004db8: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 } pllr = ((RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> RCC_PLLCFGR_PLLR_Pos); - 8004d68: 4b0d ldr r3, [pc, #52] @ (8004da0 ) - 8004d6a: 685b ldr r3, [r3, #4] - 8004d6c: 0f1b lsrs r3, r3, #28 - 8004d6e: f003 0307 and.w r3, r3, #7 - 8004d72: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 8004dbc: 4b0d ldr r3, [pc, #52] @ (8004df4 ) + 8004dbe: 685b ldr r3, [r3, #4] + 8004dc0: 0f1b lsrs r3, r3, #28 + 8004dc2: f003 0307 and.w r3, r3, #7 + 8004dc6: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 sysclockfreq = pllvco / pllr; - 8004d76: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 - 8004d7a: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4 - 8004d7e: fbb2 f3f3 udiv r3, r2, r3 - 8004d82: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004dca: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 + 8004dce: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4 + 8004dd2: fbb2 f3f3 udiv r3, r2, r3 + 8004dd6: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 8004d86: e003 b.n 8004d90 + 8004dda: e003 b.n 8004de4 } default: { sysclockfreq = HSI_VALUE; - 8004d88: 4b06 ldr r3, [pc, #24] @ (8004da4 ) - 8004d8a: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004ddc: 4b06 ldr r3, [pc, #24] @ (8004df8 ) + 8004dde: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 8004d8e: bf00 nop + 8004de2: bf00 nop } } return sysclockfreq; - 8004d90: f8d7 30b0 ldr.w r3, [r7, #176] @ 0xb0 + 8004de4: f8d7 30b0 ldr.w r3, [r7, #176] @ 0xb0 } - 8004d94: 4618 mov r0, r3 - 8004d96: 37b8 adds r7, #184 @ 0xb8 - 8004d98: 46bd mov sp, r7 - 8004d9a: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} - 8004d9e: bf00 nop - 8004da0: 40023800 .word 0x40023800 - 8004da4: 00f42400 .word 0x00f42400 + 8004de8: 4618 mov r0, r3 + 8004dea: 37b8 adds r7, #184 @ 0xb8 + 8004dec: 46bd mov sp, r7 + 8004dee: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} + 8004df2: bf00 nop + 8004df4: 40023800 .word 0x40023800 + 8004df8: 00f42400 .word 0x00f42400 -08004da8 : +08004dfc : * @note This function add the PLL/PLLR factor management during PLL configuration this feature * is only available in STM32F410xx/STM32F446xx/STM32F469xx/STM32F479xx/STM32F412Zx/STM32F412Vx/STM32F412Rx/STM32F412Cx devices * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_OscConfig(const RCC_OscInitTypeDef *RCC_OscInitStruct) { - 8004da8: b580 push {r7, lr} - 8004daa: b086 sub sp, #24 - 8004dac: af00 add r7, sp, #0 - 8004dae: 6078 str r0, [r7, #4] + 8004dfc: b580 push {r7, lr} + 8004dfe: b086 sub sp, #24 + 8004e00: af00 add r7, sp, #0 + 8004e02: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; /* Check Null pointer */ if (RCC_OscInitStruct == NULL) - 8004db0: 687b ldr r3, [r7, #4] - 8004db2: 2b00 cmp r3, #0 - 8004db4: d101 bne.n 8004dba + 8004e04: 687b ldr r3, [r7, #4] + 8004e06: 2b00 cmp r3, #0 + 8004e08: d101 bne.n 8004e0e { return HAL_ERROR; - 8004db6: 2301 movs r3, #1 - 8004db8: e28d b.n 80052d6 + 8004e0a: 2301 movs r3, #1 + 8004e0c: e28d b.n 800532a } /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 8004dba: 687b ldr r3, [r7, #4] - 8004dbc: 681b ldr r3, [r3, #0] - 8004dbe: f003 0301 and.w r3, r3, #1 - 8004dc2: 2b00 cmp r3, #0 - 8004dc4: f000 8083 beq.w 8004ece + 8004e0e: 687b ldr r3, [r7, #4] + 8004e10: 681b ldr r3, [r3, #0] + 8004e12: f003 0301 and.w r3, r3, #1 + 8004e16: 2b00 cmp r3, #0 + 8004e18: f000 8083 beq.w 8004f22 { /* 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 HSE will not disabled */ #if defined(STM32F446xx) if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) - 8004dc8: 4b94 ldr r3, [pc, #592] @ (800501c ) - 8004dca: 689b ldr r3, [r3, #8] - 8004dcc: f003 030c and.w r3, r3, #12 - 8004dd0: 2b04 cmp r3, #4 - 8004dd2: d019 beq.n 8004e08 + 8004e1c: 4b94 ldr r3, [pc, #592] @ (8005070 ) + 8004e1e: 689b ldr r3, [r3, #8] + 8004e20: f003 030c and.w r3, r3, #12 + 8004e24: 2b04 cmp r3, #4 + 8004e26: d019 beq.n 8004e5c || \ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)) || \ - 8004dd4: 4b91 ldr r3, [pc, #580] @ (800501c ) - 8004dd6: 689b ldr r3, [r3, #8] - 8004dd8: f003 030c and.w r3, r3, #12 + 8004e28: 4b91 ldr r3, [pc, #580] @ (8005070 ) + 8004e2a: 689b ldr r3, [r3, #8] + 8004e2c: f003 030c and.w r3, r3, #12 || \ - 8004ddc: 2b08 cmp r3, #8 - 8004dde: d106 bne.n 8004dee + 8004e30: 2b08 cmp r3, #8 + 8004e32: d106 bne.n 8004e42 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)) || \ - 8004de0: 4b8e ldr r3, [pc, #568] @ (800501c ) - 8004de2: 685b ldr r3, [r3, #4] - 8004de4: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8004de8: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 8004dec: d00c beq.n 8004e08 + 8004e34: 4b8e ldr r3, [pc, #568] @ (8005070 ) + 8004e36: 685b ldr r3, [r3, #4] + 8004e38: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004e3c: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 8004e40: d00c beq.n 8004e5c ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) - 8004dee: 4b8b ldr r3, [pc, #556] @ (800501c ) - 8004df0: 689b ldr r3, [r3, #8] - 8004df2: f003 030c and.w r3, r3, #12 + 8004e42: 4b8b ldr r3, [pc, #556] @ (8005070 ) + 8004e44: 689b ldr r3, [r3, #8] + 8004e46: f003 030c and.w r3, r3, #12 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)) || \ - 8004df6: 2b0c cmp r3, #12 - 8004df8: d112 bne.n 8004e20 + 8004e4a: 2b0c cmp r3, #12 + 8004e4c: d112 bne.n 8004e74 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) - 8004dfa: 4b88 ldr r3, [pc, #544] @ (800501c ) - 8004dfc: 685b ldr r3, [r3, #4] - 8004dfe: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8004e02: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 8004e06: d10b bne.n 8004e20 + 8004e4e: 4b88 ldr r3, [pc, #544] @ (8005070 ) + 8004e50: 685b ldr r3, [r3, #4] + 8004e52: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004e56: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 8004e5a: d10b bne.n 8004e74 if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) || \ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) #endif /* STM32F446xx */ { if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8004e08: 4b84 ldr r3, [pc, #528] @ (800501c ) - 8004e0a: 681b ldr r3, [r3, #0] - 8004e0c: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8004e10: 2b00 cmp r3, #0 - 8004e12: d05b beq.n 8004ecc - 8004e14: 687b ldr r3, [r7, #4] - 8004e16: 685b ldr r3, [r3, #4] - 8004e18: 2b00 cmp r3, #0 - 8004e1a: d157 bne.n 8004ecc + 8004e5c: 4b84 ldr r3, [pc, #528] @ (8005070 ) + 8004e5e: 681b ldr r3, [r3, #0] + 8004e60: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8004e64: 2b00 cmp r3, #0 + 8004e66: d05b beq.n 8004f20 + 8004e68: 687b ldr r3, [r7, #4] + 8004e6a: 685b ldr r3, [r3, #4] + 8004e6c: 2b00 cmp r3, #0 + 8004e6e: d157 bne.n 8004f20 { return HAL_ERROR; - 8004e1c: 2301 movs r3, #1 - 8004e1e: e25a b.n 80052d6 + 8004e70: 2301 movs r3, #1 + 8004e72: e25a b.n 800532a } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 8004e20: 687b ldr r3, [r7, #4] - 8004e22: 685b ldr r3, [r3, #4] - 8004e24: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 - 8004e28: d106 bne.n 8004e38 - 8004e2a: 4b7c ldr r3, [pc, #496] @ (800501c ) - 8004e2c: 681b ldr r3, [r3, #0] - 8004e2e: 4a7b ldr r2, [pc, #492] @ (800501c ) - 8004e30: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8004e34: 6013 str r3, [r2, #0] - 8004e36: e01d b.n 8004e74 - 8004e38: 687b ldr r3, [r7, #4] - 8004e3a: 685b ldr r3, [r3, #4] - 8004e3c: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 - 8004e40: d10c bne.n 8004e5c - 8004e42: 4b76 ldr r3, [pc, #472] @ (800501c ) - 8004e44: 681b ldr r3, [r3, #0] - 8004e46: 4a75 ldr r2, [pc, #468] @ (800501c ) - 8004e48: f443 2380 orr.w r3, r3, #262144 @ 0x40000 - 8004e4c: 6013 str r3, [r2, #0] - 8004e4e: 4b73 ldr r3, [pc, #460] @ (800501c ) - 8004e50: 681b ldr r3, [r3, #0] - 8004e52: 4a72 ldr r2, [pc, #456] @ (800501c ) - 8004e54: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8004e58: 6013 str r3, [r2, #0] - 8004e5a: e00b b.n 8004e74 - 8004e5c: 4b6f ldr r3, [pc, #444] @ (800501c ) - 8004e5e: 681b ldr r3, [r3, #0] - 8004e60: 4a6e ldr r2, [pc, #440] @ (800501c ) - 8004e62: f423 3380 bic.w r3, r3, #65536 @ 0x10000 - 8004e66: 6013 str r3, [r2, #0] - 8004e68: 4b6c ldr r3, [pc, #432] @ (800501c ) - 8004e6a: 681b ldr r3, [r3, #0] - 8004e6c: 4a6b ldr r2, [pc, #428] @ (800501c ) - 8004e6e: f423 2380 bic.w r3, r3, #262144 @ 0x40000 - 8004e72: 6013 str r3, [r2, #0] + 8004e74: 687b ldr r3, [r7, #4] + 8004e76: 685b ldr r3, [r3, #4] + 8004e78: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 + 8004e7c: d106 bne.n 8004e8c + 8004e7e: 4b7c ldr r3, [pc, #496] @ (8005070 ) + 8004e80: 681b ldr r3, [r3, #0] + 8004e82: 4a7b ldr r2, [pc, #492] @ (8005070 ) + 8004e84: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 8004e88: 6013 str r3, [r2, #0] + 8004e8a: e01d b.n 8004ec8 + 8004e8c: 687b ldr r3, [r7, #4] + 8004e8e: 685b ldr r3, [r3, #4] + 8004e90: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 + 8004e94: d10c bne.n 8004eb0 + 8004e96: 4b76 ldr r3, [pc, #472] @ (8005070 ) + 8004e98: 681b ldr r3, [r3, #0] + 8004e9a: 4a75 ldr r2, [pc, #468] @ (8005070 ) + 8004e9c: f443 2380 orr.w r3, r3, #262144 @ 0x40000 + 8004ea0: 6013 str r3, [r2, #0] + 8004ea2: 4b73 ldr r3, [pc, #460] @ (8005070 ) + 8004ea4: 681b ldr r3, [r3, #0] + 8004ea6: 4a72 ldr r2, [pc, #456] @ (8005070 ) + 8004ea8: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 8004eac: 6013 str r3, [r2, #0] + 8004eae: e00b b.n 8004ec8 + 8004eb0: 4b6f ldr r3, [pc, #444] @ (8005070 ) + 8004eb2: 681b ldr r3, [r3, #0] + 8004eb4: 4a6e ldr r2, [pc, #440] @ (8005070 ) + 8004eb6: f423 3380 bic.w r3, r3, #65536 @ 0x10000 + 8004eba: 6013 str r3, [r2, #0] + 8004ebc: 4b6c ldr r3, [pc, #432] @ (8005070 ) + 8004ebe: 681b ldr r3, [r3, #0] + 8004ec0: 4a6b ldr r2, [pc, #428] @ (8005070 ) + 8004ec2: f423 2380 bic.w r3, r3, #262144 @ 0x40000 + 8004ec6: 6013 str r3, [r2, #0] /* Check the HSE State */ if ((RCC_OscInitStruct->HSEState) != RCC_HSE_OFF) - 8004e74: 687b ldr r3, [r7, #4] - 8004e76: 685b ldr r3, [r3, #4] - 8004e78: 2b00 cmp r3, #0 - 8004e7a: d013 beq.n 8004ea4 + 8004ec8: 687b ldr r3, [r7, #4] + 8004eca: 685b ldr r3, [r3, #4] + 8004ecc: 2b00 cmp r3, #0 + 8004ece: d013 beq.n 8004ef8 { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8004e7c: f7fc fe4c bl 8001b18 - 8004e80: 6138 str r0, [r7, #16] + 8004ed0: f7fc fe4c bl 8001b6c + 8004ed4: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8004e82: e008 b.n 8004e96 + 8004ed6: e008 b.n 8004eea { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8004e84: f7fc fe48 bl 8001b18 - 8004e88: 4602 mov r2, r0 - 8004e8a: 693b ldr r3, [r7, #16] - 8004e8c: 1ad3 subs r3, r2, r3 - 8004e8e: 2b64 cmp r3, #100 @ 0x64 - 8004e90: d901 bls.n 8004e96 + 8004ed8: f7fc fe48 bl 8001b6c + 8004edc: 4602 mov r2, r0 + 8004ede: 693b ldr r3, [r7, #16] + 8004ee0: 1ad3 subs r3, r2, r3 + 8004ee2: 2b64 cmp r3, #100 @ 0x64 + 8004ee4: d901 bls.n 8004eea { return HAL_TIMEOUT; - 8004e92: 2303 movs r3, #3 - 8004e94: e21f b.n 80052d6 + 8004ee6: 2303 movs r3, #3 + 8004ee8: e21f b.n 800532a while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8004e96: 4b61 ldr r3, [pc, #388] @ (800501c ) - 8004e98: 681b ldr r3, [r3, #0] - 8004e9a: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8004e9e: 2b00 cmp r3, #0 - 8004ea0: d0f0 beq.n 8004e84 - 8004ea2: e014 b.n 8004ece + 8004eea: 4b61 ldr r3, [pc, #388] @ (8005070 ) + 8004eec: 681b ldr r3, [r3, #0] + 8004eee: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8004ef2: 2b00 cmp r3, #0 + 8004ef4: d0f0 beq.n 8004ed8 + 8004ef6: e014 b.n 8004f22 } } else { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8004ea4: f7fc fe38 bl 8001b18 - 8004ea8: 6138 str r0, [r7, #16] + 8004ef8: f7fc fe38 bl 8001b6c + 8004efc: 6138 str r0, [r7, #16] /* Wait till HSE is bypassed or disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8004eaa: e008 b.n 8004ebe + 8004efe: e008 b.n 8004f12 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8004eac: f7fc fe34 bl 8001b18 - 8004eb0: 4602 mov r2, r0 - 8004eb2: 693b ldr r3, [r7, #16] - 8004eb4: 1ad3 subs r3, r2, r3 - 8004eb6: 2b64 cmp r3, #100 @ 0x64 - 8004eb8: d901 bls.n 8004ebe + 8004f00: f7fc fe34 bl 8001b6c + 8004f04: 4602 mov r2, r0 + 8004f06: 693b ldr r3, [r7, #16] + 8004f08: 1ad3 subs r3, r2, r3 + 8004f0a: 2b64 cmp r3, #100 @ 0x64 + 8004f0c: d901 bls.n 8004f12 { return HAL_TIMEOUT; - 8004eba: 2303 movs r3, #3 - 8004ebc: e20b b.n 80052d6 + 8004f0e: 2303 movs r3, #3 + 8004f10: e20b b.n 800532a while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8004ebe: 4b57 ldr r3, [pc, #348] @ (800501c ) - 8004ec0: 681b ldr r3, [r3, #0] - 8004ec2: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8004ec6: 2b00 cmp r3, #0 - 8004ec8: d1f0 bne.n 8004eac - 8004eca: e000 b.n 8004ece + 8004f12: 4b57 ldr r3, [pc, #348] @ (8005070 ) + 8004f14: 681b ldr r3, [r3, #0] + 8004f16: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8004f1a: 2b00 cmp r3, #0 + 8004f1c: d1f0 bne.n 8004f00 + 8004f1e: e000 b.n 8004f22 if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8004ecc: bf00 nop + 8004f20: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 8004ece: 687b ldr r3, [r7, #4] - 8004ed0: 681b ldr r3, [r3, #0] - 8004ed2: f003 0302 and.w r3, r3, #2 - 8004ed6: 2b00 cmp r3, #0 - 8004ed8: d06f beq.n 8004fba + 8004f22: 687b ldr r3, [r7, #4] + 8004f24: 681b ldr r3, [r3, #0] + 8004f26: f003 0302 and.w r3, r3, #2 + 8004f2a: 2b00 cmp r3, #0 + 8004f2c: d06f beq.n 800500e 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 defined(STM32F446xx) if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) - 8004eda: 4b50 ldr r3, [pc, #320] @ (800501c ) - 8004edc: 689b ldr r3, [r3, #8] - 8004ede: f003 030c and.w r3, r3, #12 - 8004ee2: 2b00 cmp r3, #0 - 8004ee4: d017 beq.n 8004f16 + 8004f2e: 4b50 ldr r3, [pc, #320] @ (8005070 ) + 8004f30: 689b ldr r3, [r3, #8] + 8004f32: f003 030c and.w r3, r3, #12 + 8004f36: 2b00 cmp r3, #0 + 8004f38: d017 beq.n 8004f6a || \ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)) || \ - 8004ee6: 4b4d ldr r3, [pc, #308] @ (800501c ) - 8004ee8: 689b ldr r3, [r3, #8] - 8004eea: f003 030c and.w r3, r3, #12 + 8004f3a: 4b4d ldr r3, [pc, #308] @ (8005070 ) + 8004f3c: 689b ldr r3, [r3, #8] + 8004f3e: f003 030c and.w r3, r3, #12 || \ - 8004eee: 2b08 cmp r3, #8 - 8004ef0: d105 bne.n 8004efe + 8004f42: 2b08 cmp r3, #8 + 8004f44: d105 bne.n 8004f52 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)) || \ - 8004ef2: 4b4a ldr r3, [pc, #296] @ (800501c ) - 8004ef4: 685b ldr r3, [r3, #4] - 8004ef6: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8004efa: 2b00 cmp r3, #0 - 8004efc: d00b beq.n 8004f16 + 8004f46: 4b4a ldr r3, [pc, #296] @ (8005070 ) + 8004f48: 685b ldr r3, [r3, #4] + 8004f4a: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004f4e: 2b00 cmp r3, #0 + 8004f50: d00b beq.n 8004f6a ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) - 8004efe: 4b47 ldr r3, [pc, #284] @ (800501c ) - 8004f00: 689b ldr r3, [r3, #8] - 8004f02: f003 030c and.w r3, r3, #12 + 8004f52: 4b47 ldr r3, [pc, #284] @ (8005070 ) + 8004f54: 689b ldr r3, [r3, #8] + 8004f56: f003 030c and.w r3, r3, #12 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)) || \ - 8004f06: 2b0c cmp r3, #12 - 8004f08: d11c bne.n 8004f44 + 8004f5a: 2b0c cmp r3, #12 + 8004f5c: d11c bne.n 8004f98 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) - 8004f0a: 4b44 ldr r3, [pc, #272] @ (800501c ) - 8004f0c: 685b ldr r3, [r3, #4] - 8004f0e: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8004f12: 2b00 cmp r3, #0 - 8004f14: d116 bne.n 8004f44 + 8004f5e: 4b44 ldr r3, [pc, #272] @ (8005070 ) + 8004f60: 685b ldr r3, [r3, #4] + 8004f62: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004f66: 2b00 cmp r3, #0 + 8004f68: d116 bne.n 8004f98 || \ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) #endif /* STM32F446xx */ { /* 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)) - 8004f16: 4b41 ldr r3, [pc, #260] @ (800501c ) - 8004f18: 681b ldr r3, [r3, #0] - 8004f1a: f003 0302 and.w r3, r3, #2 - 8004f1e: 2b00 cmp r3, #0 - 8004f20: d005 beq.n 8004f2e - 8004f22: 687b ldr r3, [r7, #4] - 8004f24: 68db ldr r3, [r3, #12] - 8004f26: 2b01 cmp r3, #1 - 8004f28: d001 beq.n 8004f2e + 8004f6a: 4b41 ldr r3, [pc, #260] @ (8005070 ) + 8004f6c: 681b ldr r3, [r3, #0] + 8004f6e: f003 0302 and.w r3, r3, #2 + 8004f72: 2b00 cmp r3, #0 + 8004f74: d005 beq.n 8004f82 + 8004f76: 687b ldr r3, [r7, #4] + 8004f78: 68db ldr r3, [r3, #12] + 8004f7a: 2b01 cmp r3, #1 + 8004f7c: d001 beq.n 8004f82 { return HAL_ERROR; - 8004f2a: 2301 movs r3, #1 - 8004f2c: e1d3 b.n 80052d6 + 8004f7e: 2301 movs r3, #1 + 8004f80: e1d3 b.n 800532a } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8004f2e: 4b3b ldr r3, [pc, #236] @ (800501c ) - 8004f30: 681b ldr r3, [r3, #0] - 8004f32: f023 02f8 bic.w r2, r3, #248 @ 0xf8 - 8004f36: 687b ldr r3, [r7, #4] - 8004f38: 691b ldr r3, [r3, #16] - 8004f3a: 00db lsls r3, r3, #3 - 8004f3c: 4937 ldr r1, [pc, #220] @ (800501c ) - 8004f3e: 4313 orrs r3, r2 - 8004f40: 600b str r3, [r1, #0] + 8004f82: 4b3b ldr r3, [pc, #236] @ (8005070 ) + 8004f84: 681b ldr r3, [r3, #0] + 8004f86: f023 02f8 bic.w r2, r3, #248 @ 0xf8 + 8004f8a: 687b ldr r3, [r7, #4] + 8004f8c: 691b ldr r3, [r3, #16] + 8004f8e: 00db lsls r3, r3, #3 + 8004f90: 4937 ldr r1, [pc, #220] @ (8005070 ) + 8004f92: 4313 orrs r3, r2 + 8004f94: 600b str r3, [r1, #0] if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 8004f42: e03a b.n 8004fba + 8004f96: e03a b.n 800500e } } else { /* Check the HSI State */ if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF) - 8004f44: 687b ldr r3, [r7, #4] - 8004f46: 68db ldr r3, [r3, #12] - 8004f48: 2b00 cmp r3, #0 - 8004f4a: d020 beq.n 8004f8e + 8004f98: 687b ldr r3, [r7, #4] + 8004f9a: 68db ldr r3, [r3, #12] + 8004f9c: 2b00 cmp r3, #0 + 8004f9e: d020 beq.n 8004fe2 { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); - 8004f4c: 4b34 ldr r3, [pc, #208] @ (8005020 ) - 8004f4e: 2201 movs r2, #1 - 8004f50: 601a str r2, [r3, #0] + 8004fa0: 4b34 ldr r3, [pc, #208] @ (8005074 ) + 8004fa2: 2201 movs r2, #1 + 8004fa4: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8004f52: f7fc fde1 bl 8001b18 - 8004f56: 6138 str r0, [r7, #16] + 8004fa6: f7fc fde1 bl 8001b6c + 8004faa: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8004f58: e008 b.n 8004f6c + 8004fac: e008 b.n 8004fc0 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8004f5a: f7fc fddd bl 8001b18 - 8004f5e: 4602 mov r2, r0 - 8004f60: 693b ldr r3, [r7, #16] - 8004f62: 1ad3 subs r3, r2, r3 - 8004f64: 2b02 cmp r3, #2 - 8004f66: d901 bls.n 8004f6c + 8004fae: f7fc fddd bl 8001b6c + 8004fb2: 4602 mov r2, r0 + 8004fb4: 693b ldr r3, [r7, #16] + 8004fb6: 1ad3 subs r3, r2, r3 + 8004fb8: 2b02 cmp r3, #2 + 8004fba: d901 bls.n 8004fc0 { return HAL_TIMEOUT; - 8004f68: 2303 movs r3, #3 - 8004f6a: e1b4 b.n 80052d6 + 8004fbc: 2303 movs r3, #3 + 8004fbe: e1b4 b.n 800532a while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8004f6c: 4b2b ldr r3, [pc, #172] @ (800501c ) - 8004f6e: 681b ldr r3, [r3, #0] - 8004f70: f003 0302 and.w r3, r3, #2 - 8004f74: 2b00 cmp r3, #0 - 8004f76: d0f0 beq.n 8004f5a + 8004fc0: 4b2b ldr r3, [pc, #172] @ (8005070 ) + 8004fc2: 681b ldr r3, [r3, #0] + 8004fc4: f003 0302 and.w r3, r3, #2 + 8004fc8: 2b00 cmp r3, #0 + 8004fca: d0f0 beq.n 8004fae } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8004f78: 4b28 ldr r3, [pc, #160] @ (800501c ) - 8004f7a: 681b ldr r3, [r3, #0] - 8004f7c: f023 02f8 bic.w r2, r3, #248 @ 0xf8 - 8004f80: 687b ldr r3, [r7, #4] - 8004f82: 691b ldr r3, [r3, #16] - 8004f84: 00db lsls r3, r3, #3 - 8004f86: 4925 ldr r1, [pc, #148] @ (800501c ) - 8004f88: 4313 orrs r3, r2 - 8004f8a: 600b str r3, [r1, #0] - 8004f8c: e015 b.n 8004fba + 8004fcc: 4b28 ldr r3, [pc, #160] @ (8005070 ) + 8004fce: 681b ldr r3, [r3, #0] + 8004fd0: f023 02f8 bic.w r2, r3, #248 @ 0xf8 + 8004fd4: 687b ldr r3, [r7, #4] + 8004fd6: 691b ldr r3, [r3, #16] + 8004fd8: 00db lsls r3, r3, #3 + 8004fda: 4925 ldr r1, [pc, #148] @ (8005070 ) + 8004fdc: 4313 orrs r3, r2 + 8004fde: 600b str r3, [r1, #0] + 8004fe0: e015 b.n 800500e } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); - 8004f8e: 4b24 ldr r3, [pc, #144] @ (8005020 ) - 8004f90: 2200 movs r2, #0 - 8004f92: 601a str r2, [r3, #0] + 8004fe2: 4b24 ldr r3, [pc, #144] @ (8005074 ) + 8004fe4: 2200 movs r2, #0 + 8004fe6: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8004f94: f7fc fdc0 bl 8001b18 - 8004f98: 6138 str r0, [r7, #16] + 8004fe8: f7fc fdc0 bl 8001b6c + 8004fec: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8004f9a: e008 b.n 8004fae + 8004fee: e008 b.n 8005002 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8004f9c: f7fc fdbc bl 8001b18 - 8004fa0: 4602 mov r2, r0 - 8004fa2: 693b ldr r3, [r7, #16] - 8004fa4: 1ad3 subs r3, r2, r3 - 8004fa6: 2b02 cmp r3, #2 - 8004fa8: d901 bls.n 8004fae + 8004ff0: f7fc fdbc bl 8001b6c + 8004ff4: 4602 mov r2, r0 + 8004ff6: 693b ldr r3, [r7, #16] + 8004ff8: 1ad3 subs r3, r2, r3 + 8004ffa: 2b02 cmp r3, #2 + 8004ffc: d901 bls.n 8005002 { return HAL_TIMEOUT; - 8004faa: 2303 movs r3, #3 - 8004fac: e193 b.n 80052d6 + 8004ffe: 2303 movs r3, #3 + 8005000: e193 b.n 800532a while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8004fae: 4b1b ldr r3, [pc, #108] @ (800501c ) - 8004fb0: 681b ldr r3, [r3, #0] - 8004fb2: f003 0302 and.w r3, r3, #2 - 8004fb6: 2b00 cmp r3, #0 - 8004fb8: d1f0 bne.n 8004f9c + 8005002: 4b1b ldr r3, [pc, #108] @ (8005070 ) + 8005004: 681b ldr r3, [r3, #0] + 8005006: f003 0302 and.w r3, r3, #2 + 800500a: 2b00 cmp r3, #0 + 800500c: d1f0 bne.n 8004ff0 } } } } /*------------------------------ LSI Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 8004fba: 687b ldr r3, [r7, #4] - 8004fbc: 681b ldr r3, [r3, #0] - 8004fbe: f003 0308 and.w r3, r3, #8 - 8004fc2: 2b00 cmp r3, #0 - 8004fc4: d036 beq.n 8005034 + 800500e: 687b ldr r3, [r7, #4] + 8005010: 681b ldr r3, [r3, #0] + 8005012: f003 0308 and.w r3, r3, #8 + 8005016: 2b00 cmp r3, #0 + 8005018: d036 beq.n 8005088 { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF) - 8004fc6: 687b ldr r3, [r7, #4] - 8004fc8: 695b ldr r3, [r3, #20] - 8004fca: 2b00 cmp r3, #0 - 8004fcc: d016 beq.n 8004ffc + 800501a: 687b ldr r3, [r7, #4] + 800501c: 695b ldr r3, [r3, #20] + 800501e: 2b00 cmp r3, #0 + 8005020: d016 beq.n 8005050 { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); - 8004fce: 4b15 ldr r3, [pc, #84] @ (8005024 ) - 8004fd0: 2201 movs r2, #1 - 8004fd2: 601a str r2, [r3, #0] + 8005022: 4b15 ldr r3, [pc, #84] @ (8005078 ) + 8005024: 2201 movs r2, #1 + 8005026: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8004fd4: f7fc fda0 bl 8001b18 - 8004fd8: 6138 str r0, [r7, #16] + 8005028: f7fc fda0 bl 8001b6c + 800502c: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8004fda: e008 b.n 8004fee + 800502e: e008 b.n 8005042 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 8004fdc: f7fc fd9c bl 8001b18 - 8004fe0: 4602 mov r2, r0 - 8004fe2: 693b ldr r3, [r7, #16] - 8004fe4: 1ad3 subs r3, r2, r3 - 8004fe6: 2b02 cmp r3, #2 - 8004fe8: d901 bls.n 8004fee + 8005030: f7fc fd9c bl 8001b6c + 8005034: 4602 mov r2, r0 + 8005036: 693b ldr r3, [r7, #16] + 8005038: 1ad3 subs r3, r2, r3 + 800503a: 2b02 cmp r3, #2 + 800503c: d901 bls.n 8005042 { return HAL_TIMEOUT; - 8004fea: 2303 movs r3, #3 - 8004fec: e173 b.n 80052d6 + 800503e: 2303 movs r3, #3 + 8005040: e173 b.n 800532a while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8004fee: 4b0b ldr r3, [pc, #44] @ (800501c ) - 8004ff0: 6f5b ldr r3, [r3, #116] @ 0x74 - 8004ff2: f003 0302 and.w r3, r3, #2 - 8004ff6: 2b00 cmp r3, #0 - 8004ff8: d0f0 beq.n 8004fdc - 8004ffa: e01b b.n 8005034 + 8005042: 4b0b ldr r3, [pc, #44] @ (8005070 ) + 8005044: 6f5b ldr r3, [r3, #116] @ 0x74 + 8005046: f003 0302 and.w r3, r3, #2 + 800504a: 2b00 cmp r3, #0 + 800504c: d0f0 beq.n 8005030 + 800504e: e01b b.n 8005088 } } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); - 8004ffc: 4b09 ldr r3, [pc, #36] @ (8005024 ) - 8004ffe: 2200 movs r2, #0 - 8005000: 601a str r2, [r3, #0] + 8005050: 4b09 ldr r3, [pc, #36] @ (8005078 ) + 8005052: 2200 movs r2, #0 + 8005054: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8005002: f7fc fd89 bl 8001b18 - 8005006: 6138 str r0, [r7, #16] + 8005056: f7fc fd89 bl 8001b6c + 800505a: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8005008: e00e b.n 8005028 + 800505c: e00e b.n 800507c { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 800500a: f7fc fd85 bl 8001b18 - 800500e: 4602 mov r2, r0 - 8005010: 693b ldr r3, [r7, #16] - 8005012: 1ad3 subs r3, r2, r3 - 8005014: 2b02 cmp r3, #2 - 8005016: d907 bls.n 8005028 + 800505e: f7fc fd85 bl 8001b6c + 8005062: 4602 mov r2, r0 + 8005064: 693b ldr r3, [r7, #16] + 8005066: 1ad3 subs r3, r2, r3 + 8005068: 2b02 cmp r3, #2 + 800506a: d907 bls.n 800507c { return HAL_TIMEOUT; - 8005018: 2303 movs r3, #3 - 800501a: e15c b.n 80052d6 - 800501c: 40023800 .word 0x40023800 - 8005020: 42470000 .word 0x42470000 - 8005024: 42470e80 .word 0x42470e80 + 800506c: 2303 movs r3, #3 + 800506e: e15c b.n 800532a + 8005070: 40023800 .word 0x40023800 + 8005074: 42470000 .word 0x42470000 + 8005078: 42470e80 .word 0x42470e80 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8005028: 4b8a ldr r3, [pc, #552] @ (8005254 ) - 800502a: 6f5b ldr r3, [r3, #116] @ 0x74 - 800502c: f003 0302 and.w r3, r3, #2 - 8005030: 2b00 cmp r3, #0 - 8005032: d1ea bne.n 800500a + 800507c: 4b8a ldr r3, [pc, #552] @ (80052a8 ) + 800507e: 6f5b ldr r3, [r3, #116] @ 0x74 + 8005080: f003 0302 and.w r3, r3, #2 + 8005084: 2b00 cmp r3, #0 + 8005086: d1ea bne.n 800505e } } } } /*------------------------------ LSE Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 8005034: 687b ldr r3, [r7, #4] - 8005036: 681b ldr r3, [r3, #0] - 8005038: f003 0304 and.w r3, r3, #4 - 800503c: 2b00 cmp r3, #0 - 800503e: f000 8097 beq.w 8005170 + 8005088: 687b ldr r3, [r7, #4] + 800508a: 681b ldr r3, [r3, #0] + 800508c: f003 0304 and.w r3, r3, #4 + 8005090: 2b00 cmp r3, #0 + 8005092: f000 8097 beq.w 80051c4 { FlagStatus pwrclkchanged = RESET; - 8005042: 2300 movs r3, #0 - 8005044: 75fb strb r3, [r7, #23] + 8005096: 2300 movs r3, #0 + 8005098: 75fb strb r3, [r7, #23] /* 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()) - 8005046: 4b83 ldr r3, [pc, #524] @ (8005254 ) - 8005048: 6c1b ldr r3, [r3, #64] @ 0x40 - 800504a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 800504e: 2b00 cmp r3, #0 - 8005050: d10f bne.n 8005072 + 800509a: 4b83 ldr r3, [pc, #524] @ (80052a8 ) + 800509c: 6c1b ldr r3, [r3, #64] @ 0x40 + 800509e: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 80050a2: 2b00 cmp r3, #0 + 80050a4: d10f bne.n 80050c6 { __HAL_RCC_PWR_CLK_ENABLE(); - 8005052: 2300 movs r3, #0 - 8005054: 60bb str r3, [r7, #8] - 8005056: 4b7f ldr r3, [pc, #508] @ (8005254 ) - 8005058: 6c1b ldr r3, [r3, #64] @ 0x40 - 800505a: 4a7e ldr r2, [pc, #504] @ (8005254 ) - 800505c: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8005060: 6413 str r3, [r2, #64] @ 0x40 - 8005062: 4b7c ldr r3, [pc, #496] @ (8005254 ) - 8005064: 6c1b ldr r3, [r3, #64] @ 0x40 - 8005066: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 800506a: 60bb str r3, [r7, #8] - 800506c: 68bb ldr r3, [r7, #8] + 80050a6: 2300 movs r3, #0 + 80050a8: 60bb str r3, [r7, #8] + 80050aa: 4b7f ldr r3, [pc, #508] @ (80052a8 ) + 80050ac: 6c1b ldr r3, [r3, #64] @ 0x40 + 80050ae: 4a7e ldr r2, [pc, #504] @ (80052a8 ) + 80050b0: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80050b4: 6413 str r3, [r2, #64] @ 0x40 + 80050b6: 4b7c ldr r3, [pc, #496] @ (80052a8 ) + 80050b8: 6c1b ldr r3, [r3, #64] @ 0x40 + 80050ba: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 80050be: 60bb str r3, [r7, #8] + 80050c0: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; - 800506e: 2301 movs r3, #1 - 8005070: 75fb strb r3, [r7, #23] + 80050c2: 2301 movs r3, #1 + 80050c4: 75fb strb r3, [r7, #23] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8005072: 4b79 ldr r3, [pc, #484] @ (8005258 ) - 8005074: 681b ldr r3, [r3, #0] - 8005076: f403 7380 and.w r3, r3, #256 @ 0x100 - 800507a: 2b00 cmp r3, #0 - 800507c: d118 bne.n 80050b0 + 80050c6: 4b79 ldr r3, [pc, #484] @ (80052ac ) + 80050c8: 681b ldr r3, [r3, #0] + 80050ca: f403 7380 and.w r3, r3, #256 @ 0x100 + 80050ce: 2b00 cmp r3, #0 + 80050d0: d118 bne.n 8005104 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 800507e: 4b76 ldr r3, [pc, #472] @ (8005258 ) - 8005080: 681b ldr r3, [r3, #0] - 8005082: 4a75 ldr r2, [pc, #468] @ (8005258 ) - 8005084: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8005088: 6013 str r3, [r2, #0] + 80050d2: 4b76 ldr r3, [pc, #472] @ (80052ac ) + 80050d4: 681b ldr r3, [r3, #0] + 80050d6: 4a75 ldr r2, [pc, #468] @ (80052ac ) + 80050d8: f443 7380 orr.w r3, r3, #256 @ 0x100 + 80050dc: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 800508a: f7fc fd45 bl 8001b18 - 800508e: 6138 str r0, [r7, #16] + 80050de: f7fc fd45 bl 8001b6c + 80050e2: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8005090: e008 b.n 80050a4 + 80050e4: e008 b.n 80050f8 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 8005092: f7fc fd41 bl 8001b18 - 8005096: 4602 mov r2, r0 - 8005098: 693b ldr r3, [r7, #16] - 800509a: 1ad3 subs r3, r2, r3 - 800509c: 2b02 cmp r3, #2 - 800509e: d901 bls.n 80050a4 + 80050e6: f7fc fd41 bl 8001b6c + 80050ea: 4602 mov r2, r0 + 80050ec: 693b ldr r3, [r7, #16] + 80050ee: 1ad3 subs r3, r2, r3 + 80050f0: 2b02 cmp r3, #2 + 80050f2: d901 bls.n 80050f8 { return HAL_TIMEOUT; - 80050a0: 2303 movs r3, #3 - 80050a2: e118 b.n 80052d6 + 80050f4: 2303 movs r3, #3 + 80050f6: e118 b.n 800532a while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80050a4: 4b6c ldr r3, [pc, #432] @ (8005258 ) - 80050a6: 681b ldr r3, [r3, #0] - 80050a8: f403 7380 and.w r3, r3, #256 @ 0x100 - 80050ac: 2b00 cmp r3, #0 - 80050ae: d0f0 beq.n 8005092 + 80050f8: 4b6c ldr r3, [pc, #432] @ (80052ac ) + 80050fa: 681b ldr r3, [r3, #0] + 80050fc: f403 7380 and.w r3, r3, #256 @ 0x100 + 8005100: 2b00 cmp r3, #0 + 8005102: d0f0 beq.n 80050e6 } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 80050b0: 687b ldr r3, [r7, #4] - 80050b2: 689b ldr r3, [r3, #8] - 80050b4: 2b01 cmp r3, #1 - 80050b6: d106 bne.n 80050c6 - 80050b8: 4b66 ldr r3, [pc, #408] @ (8005254 ) - 80050ba: 6f1b ldr r3, [r3, #112] @ 0x70 - 80050bc: 4a65 ldr r2, [pc, #404] @ (8005254 ) - 80050be: f043 0301 orr.w r3, r3, #1 - 80050c2: 6713 str r3, [r2, #112] @ 0x70 - 80050c4: e01c b.n 8005100 - 80050c6: 687b ldr r3, [r7, #4] - 80050c8: 689b ldr r3, [r3, #8] - 80050ca: 2b05 cmp r3, #5 - 80050cc: d10c bne.n 80050e8 - 80050ce: 4b61 ldr r3, [pc, #388] @ (8005254 ) - 80050d0: 6f1b ldr r3, [r3, #112] @ 0x70 - 80050d2: 4a60 ldr r2, [pc, #384] @ (8005254 ) - 80050d4: f043 0304 orr.w r3, r3, #4 - 80050d8: 6713 str r3, [r2, #112] @ 0x70 - 80050da: 4b5e ldr r3, [pc, #376] @ (8005254 ) - 80050dc: 6f1b ldr r3, [r3, #112] @ 0x70 - 80050de: 4a5d ldr r2, [pc, #372] @ (8005254 ) - 80050e0: f043 0301 orr.w r3, r3, #1 - 80050e4: 6713 str r3, [r2, #112] @ 0x70 - 80050e6: e00b b.n 8005100 - 80050e8: 4b5a ldr r3, [pc, #360] @ (8005254 ) - 80050ea: 6f1b ldr r3, [r3, #112] @ 0x70 - 80050ec: 4a59 ldr r2, [pc, #356] @ (8005254 ) - 80050ee: f023 0301 bic.w r3, r3, #1 - 80050f2: 6713 str r3, [r2, #112] @ 0x70 - 80050f4: 4b57 ldr r3, [pc, #348] @ (8005254 ) - 80050f6: 6f1b ldr r3, [r3, #112] @ 0x70 - 80050f8: 4a56 ldr r2, [pc, #344] @ (8005254 ) - 80050fa: f023 0304 bic.w r3, r3, #4 - 80050fe: 6713 str r3, [r2, #112] @ 0x70 + 8005104: 687b ldr r3, [r7, #4] + 8005106: 689b ldr r3, [r3, #8] + 8005108: 2b01 cmp r3, #1 + 800510a: d106 bne.n 800511a + 800510c: 4b66 ldr r3, [pc, #408] @ (80052a8 ) + 800510e: 6f1b ldr r3, [r3, #112] @ 0x70 + 8005110: 4a65 ldr r2, [pc, #404] @ (80052a8 ) + 8005112: f043 0301 orr.w r3, r3, #1 + 8005116: 6713 str r3, [r2, #112] @ 0x70 + 8005118: e01c b.n 8005154 + 800511a: 687b ldr r3, [r7, #4] + 800511c: 689b ldr r3, [r3, #8] + 800511e: 2b05 cmp r3, #5 + 8005120: d10c bne.n 800513c + 8005122: 4b61 ldr r3, [pc, #388] @ (80052a8 ) + 8005124: 6f1b ldr r3, [r3, #112] @ 0x70 + 8005126: 4a60 ldr r2, [pc, #384] @ (80052a8 ) + 8005128: f043 0304 orr.w r3, r3, #4 + 800512c: 6713 str r3, [r2, #112] @ 0x70 + 800512e: 4b5e ldr r3, [pc, #376] @ (80052a8 ) + 8005130: 6f1b ldr r3, [r3, #112] @ 0x70 + 8005132: 4a5d ldr r2, [pc, #372] @ (80052a8 ) + 8005134: f043 0301 orr.w r3, r3, #1 + 8005138: 6713 str r3, [r2, #112] @ 0x70 + 800513a: e00b b.n 8005154 + 800513c: 4b5a ldr r3, [pc, #360] @ (80052a8 ) + 800513e: 6f1b ldr r3, [r3, #112] @ 0x70 + 8005140: 4a59 ldr r2, [pc, #356] @ (80052a8 ) + 8005142: f023 0301 bic.w r3, r3, #1 + 8005146: 6713 str r3, [r2, #112] @ 0x70 + 8005148: 4b57 ldr r3, [pc, #348] @ (80052a8 ) + 800514a: 6f1b ldr r3, [r3, #112] @ 0x70 + 800514c: 4a56 ldr r2, [pc, #344] @ (80052a8 ) + 800514e: f023 0304 bic.w r3, r3, #4 + 8005152: 6713 str r3, [r2, #112] @ 0x70 /* Check the LSE State */ if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF) - 8005100: 687b ldr r3, [r7, #4] - 8005102: 689b ldr r3, [r3, #8] - 8005104: 2b00 cmp r3, #0 - 8005106: d015 beq.n 8005134 + 8005154: 687b ldr r3, [r7, #4] + 8005156: 689b ldr r3, [r3, #8] + 8005158: 2b00 cmp r3, #0 + 800515a: d015 beq.n 8005188 { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8005108: f7fc fd06 bl 8001b18 - 800510c: 6138 str r0, [r7, #16] + 800515c: f7fc fd06 bl 8001b6c + 8005160: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 800510e: e00a b.n 8005126 + 8005162: e00a b.n 800517a { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 8005110: f7fc fd02 bl 8001b18 - 8005114: 4602 mov r2, r0 - 8005116: 693b ldr r3, [r7, #16] - 8005118: 1ad3 subs r3, r2, r3 - 800511a: f241 3288 movw r2, #5000 @ 0x1388 - 800511e: 4293 cmp r3, r2 - 8005120: d901 bls.n 8005126 + 8005164: f7fc fd02 bl 8001b6c + 8005168: 4602 mov r2, r0 + 800516a: 693b ldr r3, [r7, #16] + 800516c: 1ad3 subs r3, r2, r3 + 800516e: f241 3288 movw r2, #5000 @ 0x1388 + 8005172: 4293 cmp r3, r2 + 8005174: d901 bls.n 800517a { return HAL_TIMEOUT; - 8005122: 2303 movs r3, #3 - 8005124: e0d7 b.n 80052d6 + 8005176: 2303 movs r3, #3 + 8005178: e0d7 b.n 800532a while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8005126: 4b4b ldr r3, [pc, #300] @ (8005254 ) - 8005128: 6f1b ldr r3, [r3, #112] @ 0x70 - 800512a: f003 0302 and.w r3, r3, #2 - 800512e: 2b00 cmp r3, #0 - 8005130: d0ee beq.n 8005110 - 8005132: e014 b.n 800515e + 800517a: 4b4b ldr r3, [pc, #300] @ (80052a8 ) + 800517c: 6f1b ldr r3, [r3, #112] @ 0x70 + 800517e: f003 0302 and.w r3, r3, #2 + 8005182: 2b00 cmp r3, #0 + 8005184: d0ee beq.n 8005164 + 8005186: e014 b.n 80051b2 } } else { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8005134: f7fc fcf0 bl 8001b18 - 8005138: 6138 str r0, [r7, #16] + 8005188: f7fc fcf0 bl 8001b6c + 800518c: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 800513a: e00a b.n 8005152 + 800518e: e00a b.n 80051a6 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 800513c: f7fc fcec bl 8001b18 - 8005140: 4602 mov r2, r0 - 8005142: 693b ldr r3, [r7, #16] - 8005144: 1ad3 subs r3, r2, r3 - 8005146: f241 3288 movw r2, #5000 @ 0x1388 - 800514a: 4293 cmp r3, r2 - 800514c: d901 bls.n 8005152 + 8005190: f7fc fcec bl 8001b6c + 8005194: 4602 mov r2, r0 + 8005196: 693b ldr r3, [r7, #16] + 8005198: 1ad3 subs r3, r2, r3 + 800519a: f241 3288 movw r2, #5000 @ 0x1388 + 800519e: 4293 cmp r3, r2 + 80051a0: d901 bls.n 80051a6 { return HAL_TIMEOUT; - 800514e: 2303 movs r3, #3 - 8005150: e0c1 b.n 80052d6 + 80051a2: 2303 movs r3, #3 + 80051a4: e0c1 b.n 800532a while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8005152: 4b40 ldr r3, [pc, #256] @ (8005254 ) - 8005154: 6f1b ldr r3, [r3, #112] @ 0x70 - 8005156: f003 0302 and.w r3, r3, #2 - 800515a: 2b00 cmp r3, #0 - 800515c: d1ee bne.n 800513c + 80051a6: 4b40 ldr r3, [pc, #256] @ (80052a8 ) + 80051a8: 6f1b ldr r3, [r3, #112] @ 0x70 + 80051aa: f003 0302 and.w r3, r3, #2 + 80051ae: 2b00 cmp r3, #0 + 80051b0: d1ee bne.n 8005190 } } } /* Restore clock configuration if changed */ if (pwrclkchanged == SET) - 800515e: 7dfb ldrb r3, [r7, #23] - 8005160: 2b01 cmp r3, #1 - 8005162: d105 bne.n 8005170 + 80051b2: 7dfb ldrb r3, [r7, #23] + 80051b4: 2b01 cmp r3, #1 + 80051b6: d105 bne.n 80051c4 { __HAL_RCC_PWR_CLK_DISABLE(); - 8005164: 4b3b ldr r3, [pc, #236] @ (8005254 ) - 8005166: 6c1b ldr r3, [r3, #64] @ 0x40 - 8005168: 4a3a ldr r2, [pc, #232] @ (8005254 ) - 800516a: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 800516e: 6413 str r3, [r2, #64] @ 0x40 + 80051b8: 4b3b ldr r3, [pc, #236] @ (80052a8 ) + 80051ba: 6c1b ldr r3, [r3, #64] @ 0x40 + 80051bc: 4a3a ldr r2, [pc, #232] @ (80052a8 ) + 80051be: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 80051c2: 6413 str r3, [r2, #64] @ 0x40 } } /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) - 8005170: 687b ldr r3, [r7, #4] - 8005172: 699b ldr r3, [r3, #24] - 8005174: 2b00 cmp r3, #0 - 8005176: f000 80ad beq.w 80052d4 + 80051c4: 687b ldr r3, [r7, #4] + 80051c6: 699b ldr r3, [r3, #24] + 80051c8: 2b00 cmp r3, #0 + 80051ca: f000 80ad beq.w 8005328 { /* Check if the PLL is used as system clock or not */ if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL) - 800517a: 4b36 ldr r3, [pc, #216] @ (8005254 ) - 800517c: 689b ldr r3, [r3, #8] - 800517e: f003 030c and.w r3, r3, #12 - 8005182: 2b08 cmp r3, #8 - 8005184: d060 beq.n 8005248 + 80051ce: 4b36 ldr r3, [pc, #216] @ (80052a8 ) + 80051d0: 689b ldr r3, [r3, #8] + 80051d2: f003 030c and.w r3, r3, #12 + 80051d6: 2b08 cmp r3, #8 + 80051d8: d060 beq.n 800529c { if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 8005186: 687b ldr r3, [r7, #4] - 8005188: 699b ldr r3, [r3, #24] - 800518a: 2b02 cmp r3, #2 - 800518c: d145 bne.n 800521a + 80051da: 687b ldr r3, [r7, #4] + 80051dc: 699b ldr r3, [r3, #24] + 80051de: 2b02 cmp r3, #2 + 80051e0: d145 bne.n 800526e assert_param(IS_RCC_PLLP_VALUE(RCC_OscInitStruct->PLL.PLLP)); assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ)); assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR)); /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 800518e: 4b33 ldr r3, [pc, #204] @ (800525c ) - 8005190: 2200 movs r2, #0 - 8005192: 601a str r2, [r3, #0] + 80051e2: 4b33 ldr r3, [pc, #204] @ (80052b0 ) + 80051e4: 2200 movs r2, #0 + 80051e6: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8005194: f7fc fcc0 bl 8001b18 - 8005198: 6138 str r0, [r7, #16] + 80051e8: f7fc fcc0 bl 8001b6c + 80051ec: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800519a: e008 b.n 80051ae + 80051ee: e008 b.n 8005202 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 800519c: f7fc fcbc bl 8001b18 - 80051a0: 4602 mov r2, r0 - 80051a2: 693b ldr r3, [r7, #16] - 80051a4: 1ad3 subs r3, r2, r3 - 80051a6: 2b02 cmp r3, #2 - 80051a8: d901 bls.n 80051ae + 80051f0: f7fc fcbc bl 8001b6c + 80051f4: 4602 mov r2, r0 + 80051f6: 693b ldr r3, [r7, #16] + 80051f8: 1ad3 subs r3, r2, r3 + 80051fa: 2b02 cmp r3, #2 + 80051fc: d901 bls.n 8005202 { return HAL_TIMEOUT; - 80051aa: 2303 movs r3, #3 - 80051ac: e093 b.n 80052d6 + 80051fe: 2303 movs r3, #3 + 8005200: e093 b.n 800532a while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 80051ae: 4b29 ldr r3, [pc, #164] @ (8005254 ) - 80051b0: 681b ldr r3, [r3, #0] - 80051b2: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 80051b6: 2b00 cmp r3, #0 - 80051b8: d1f0 bne.n 800519c + 8005202: 4b29 ldr r3, [pc, #164] @ (80052a8 ) + 8005204: 681b ldr r3, [r3, #0] + 8005206: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 800520a: 2b00 cmp r3, #0 + 800520c: d1f0 bne.n 80051f0 } } /* Configure the main PLL clock source, multiplication and division factors. */ WRITE_REG(RCC->PLLCFGR, (RCC_OscInitStruct->PLL.PLLSource | \ - 80051ba: 687b ldr r3, [r7, #4] - 80051bc: 69da ldr r2, [r3, #28] - 80051be: 687b ldr r3, [r7, #4] - 80051c0: 6a1b ldr r3, [r3, #32] - 80051c2: 431a orrs r2, r3 - 80051c4: 687b ldr r3, [r7, #4] - 80051c6: 6a5b ldr r3, [r3, #36] @ 0x24 - 80051c8: 019b lsls r3, r3, #6 - 80051ca: 431a orrs r2, r3 - 80051cc: 687b ldr r3, [r7, #4] - 80051ce: 6a9b ldr r3, [r3, #40] @ 0x28 - 80051d0: 085b lsrs r3, r3, #1 - 80051d2: 3b01 subs r3, #1 - 80051d4: 041b lsls r3, r3, #16 - 80051d6: 431a orrs r2, r3 - 80051d8: 687b ldr r3, [r7, #4] - 80051da: 6adb ldr r3, [r3, #44] @ 0x2c - 80051dc: 061b lsls r3, r3, #24 - 80051de: 431a orrs r2, r3 - 80051e0: 687b ldr r3, [r7, #4] - 80051e2: 6b1b ldr r3, [r3, #48] @ 0x30 - 80051e4: 071b lsls r3, r3, #28 - 80051e6: 491b ldr r1, [pc, #108] @ (8005254 ) - 80051e8: 4313 orrs r3, r2 - 80051ea: 604b str r3, [r1, #4] + 800520e: 687b ldr r3, [r7, #4] + 8005210: 69da ldr r2, [r3, #28] + 8005212: 687b ldr r3, [r7, #4] + 8005214: 6a1b ldr r3, [r3, #32] + 8005216: 431a orrs r2, r3 + 8005218: 687b ldr r3, [r7, #4] + 800521a: 6a5b ldr r3, [r3, #36] @ 0x24 + 800521c: 019b lsls r3, r3, #6 + 800521e: 431a orrs r2, r3 + 8005220: 687b ldr r3, [r7, #4] + 8005222: 6a9b ldr r3, [r3, #40] @ 0x28 + 8005224: 085b lsrs r3, r3, #1 + 8005226: 3b01 subs r3, #1 + 8005228: 041b lsls r3, r3, #16 + 800522a: 431a orrs r2, r3 + 800522c: 687b ldr r3, [r7, #4] + 800522e: 6adb ldr r3, [r3, #44] @ 0x2c + 8005230: 061b lsls r3, r3, #24 + 8005232: 431a orrs r2, r3 + 8005234: 687b ldr r3, [r7, #4] + 8005236: 6b1b ldr r3, [r3, #48] @ 0x30 + 8005238: 071b lsls r3, r3, #28 + 800523a: 491b ldr r1, [pc, #108] @ (80052a8 ) + 800523c: 4313 orrs r3, r2 + 800523e: 604b str r3, [r1, #4] (RCC_OscInitStruct->PLL.PLLN << RCC_PLLCFGR_PLLN_Pos) | \ (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U) << RCC_PLLCFGR_PLLP_Pos) | \ (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos) | \ (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos))); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); - 80051ec: 4b1b ldr r3, [pc, #108] @ (800525c ) - 80051ee: 2201 movs r2, #1 - 80051f0: 601a str r2, [r3, #0] + 8005240: 4b1b ldr r3, [pc, #108] @ (80052b0 ) + 8005242: 2201 movs r2, #1 + 8005244: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80051f2: f7fc fc91 bl 8001b18 - 80051f6: 6138 str r0, [r7, #16] + 8005246: f7fc fc91 bl 8001b6c + 800524a: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80051f8: e008 b.n 800520c + 800524c: e008 b.n 8005260 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 80051fa: f7fc fc8d bl 8001b18 - 80051fe: 4602 mov r2, r0 - 8005200: 693b ldr r3, [r7, #16] - 8005202: 1ad3 subs r3, r2, r3 - 8005204: 2b02 cmp r3, #2 - 8005206: d901 bls.n 800520c + 800524e: f7fc fc8d bl 8001b6c + 8005252: 4602 mov r2, r0 + 8005254: 693b ldr r3, [r7, #16] + 8005256: 1ad3 subs r3, r2, r3 + 8005258: 2b02 cmp r3, #2 + 800525a: d901 bls.n 8005260 { return HAL_TIMEOUT; - 8005208: 2303 movs r3, #3 - 800520a: e064 b.n 80052d6 + 800525c: 2303 movs r3, #3 + 800525e: e064 b.n 800532a while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 800520c: 4b11 ldr r3, [pc, #68] @ (8005254 ) - 800520e: 681b ldr r3, [r3, #0] - 8005210: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8005214: 2b00 cmp r3, #0 - 8005216: d0f0 beq.n 80051fa - 8005218: e05c b.n 80052d4 + 8005260: 4b11 ldr r3, [pc, #68] @ (80052a8 ) + 8005262: 681b ldr r3, [r3, #0] + 8005264: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 8005268: 2b00 cmp r3, #0 + 800526a: d0f0 beq.n 800524e + 800526c: e05c b.n 8005328 } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 800521a: 4b10 ldr r3, [pc, #64] @ (800525c ) - 800521c: 2200 movs r2, #0 - 800521e: 601a str r2, [r3, #0] + 800526e: 4b10 ldr r3, [pc, #64] @ (80052b0 ) + 8005270: 2200 movs r2, #0 + 8005272: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8005220: f7fc fc7a bl 8001b18 - 8005224: 6138 str r0, [r7, #16] + 8005274: f7fc fc7a bl 8001b6c + 8005278: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8005226: e008 b.n 800523a + 800527a: e008 b.n 800528e { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 8005228: f7fc fc76 bl 8001b18 - 800522c: 4602 mov r2, r0 - 800522e: 693b ldr r3, [r7, #16] - 8005230: 1ad3 subs r3, r2, r3 - 8005232: 2b02 cmp r3, #2 - 8005234: d901 bls.n 800523a + 800527c: f7fc fc76 bl 8001b6c + 8005280: 4602 mov r2, r0 + 8005282: 693b ldr r3, [r7, #16] + 8005284: 1ad3 subs r3, r2, r3 + 8005286: 2b02 cmp r3, #2 + 8005288: d901 bls.n 800528e { return HAL_TIMEOUT; - 8005236: 2303 movs r3, #3 - 8005238: e04d b.n 80052d6 + 800528a: 2303 movs r3, #3 + 800528c: e04d b.n 800532a while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800523a: 4b06 ldr r3, [pc, #24] @ (8005254 ) - 800523c: 681b ldr r3, [r3, #0] - 800523e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8005242: 2b00 cmp r3, #0 - 8005244: d1f0 bne.n 8005228 - 8005246: e045 b.n 80052d4 + 800528e: 4b06 ldr r3, [pc, #24] @ (80052a8 ) + 8005290: 681b ldr r3, [r3, #0] + 8005292: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 8005296: 2b00 cmp r3, #0 + 8005298: d1f0 bne.n 800527c + 800529a: e045 b.n 8005328 } } else { /* Check if there is a request to disable the PLL used as System clock source */ if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 8005248: 687b ldr r3, [r7, #4] - 800524a: 699b ldr r3, [r3, #24] - 800524c: 2b01 cmp r3, #1 - 800524e: d107 bne.n 8005260 + 800529c: 687b ldr r3, [r7, #4] + 800529e: 699b ldr r3, [r3, #24] + 80052a0: 2b01 cmp r3, #1 + 80052a2: d107 bne.n 80052b4 { return HAL_ERROR; - 8005250: 2301 movs r3, #1 - 8005252: e040 b.n 80052d6 - 8005254: 40023800 .word 0x40023800 - 8005258: 40007000 .word 0x40007000 - 800525c: 42470060 .word 0x42470060 + 80052a4: 2301 movs r3, #1 + 80052a6: e040 b.n 800532a + 80052a8: 40023800 .word 0x40023800 + 80052ac: 40007000 .word 0x40007000 + 80052b0: 42470060 .word 0x42470060 } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->PLLCFGR; - 8005260: 4b1f ldr r3, [pc, #124] @ (80052e0 ) - 8005262: 685b ldr r3, [r3, #4] - 8005264: 60fb str r3, [r7, #12] + 80052b4: 4b1f ldr r3, [pc, #124] @ (8005334 ) + 80052b6: 685b ldr r3, [r3, #4] + 80052b8: 60fb str r3, [r7, #12] #if defined (RCC_PLLCFGR_PLLR) if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 8005266: 687b ldr r3, [r7, #4] - 8005268: 699b ldr r3, [r3, #24] - 800526a: 2b01 cmp r3, #1 - 800526c: d030 beq.n 80052d0 + 80052ba: 687b ldr r3, [r7, #4] + 80052bc: 699b ldr r3, [r3, #24] + 80052be: 2b01 cmp r3, #1 + 80052c0: d030 beq.n 8005324 (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 800526e: 68fb ldr r3, [r7, #12] - 8005270: f403 0280 and.w r2, r3, #4194304 @ 0x400000 - 8005274: 687b ldr r3, [r7, #4] - 8005276: 69db ldr r3, [r3, #28] + 80052c2: 68fb ldr r3, [r7, #12] + 80052c4: f403 0280 and.w r2, r3, #4194304 @ 0x400000 + 80052c8: 687b ldr r3, [r7, #4] + 80052ca: 69db ldr r3, [r3, #28] if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 8005278: 429a cmp r2, r3 - 800527a: d129 bne.n 80052d0 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || - 800527c: 68fb ldr r3, [r7, #12] - 800527e: f003 023f and.w r2, r3, #63 @ 0x3f - 8005282: 687b ldr r3, [r7, #4] - 8005284: 6a1b ldr r3, [r3, #32] - (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8005286: 429a cmp r2, r3 - 8005288: d122 bne.n 80052d0 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || - 800528a: 68fa ldr r2, [r7, #12] - 800528c: f647 73c0 movw r3, #32704 @ 0x7fc0 - 8005290: 4013 ands r3, r2 - 8005292: 687a ldr r2, [r7, #4] - 8005294: 6a52 ldr r2, [r2, #36] @ 0x24 - 8005296: 0192 lsls r2, r2, #6 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || - 8005298: 4293 cmp r3, r2 - 800529a: d119 bne.n 80052d0 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || - 800529c: 68fb ldr r3, [r7, #12] - 800529e: f403 3240 and.w r2, r3, #196608 @ 0x30000 - 80052a2: 687b ldr r3, [r7, #4] - 80052a4: 6a9b ldr r3, [r3, #40] @ 0x28 - 80052a6: 085b lsrs r3, r3, #1 - 80052a8: 3b01 subs r3, #1 - 80052aa: 041b lsls r3, r3, #16 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || - 80052ac: 429a cmp r2, r3 - 80052ae: d10f bne.n 80052d0 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || - 80052b0: 68fb ldr r3, [r7, #12] - 80052b2: f003 6270 and.w r2, r3, #251658240 @ 0xf000000 - 80052b6: 687b ldr r3, [r7, #4] - 80052b8: 6adb ldr r3, [r3, #44] @ 0x2c - 80052ba: 061b lsls r3, r3, #24 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || - 80052bc: 429a cmp r2, r3 - 80052be: d107 bne.n 80052d0 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLR) != (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos))) - 80052c0: 68fb ldr r3, [r7, #12] - 80052c2: f003 42e0 and.w r2, r3, #1879048192 @ 0x70000000 - 80052c6: 687b ldr r3, [r7, #4] - 80052c8: 6b1b ldr r3, [r3, #48] @ 0x30 - 80052ca: 071b lsls r3, r3, #28 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || 80052cc: 429a cmp r2, r3 - 80052ce: d001 beq.n 80052d4 + 80052ce: d129 bne.n 8005324 + (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || + 80052d0: 68fb ldr r3, [r7, #12] + 80052d2: f003 023f and.w r2, r3, #63 @ 0x3f + 80052d6: 687b ldr r3, [r7, #4] + 80052d8: 6a1b ldr r3, [r3, #32] + (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || + 80052da: 429a cmp r2, r3 + 80052dc: d122 bne.n 8005324 + (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || + 80052de: 68fa ldr r2, [r7, #12] + 80052e0: f647 73c0 movw r3, #32704 @ 0x7fc0 + 80052e4: 4013 ands r3, r2 + 80052e6: 687a ldr r2, [r7, #4] + 80052e8: 6a52 ldr r2, [r2, #36] @ 0x24 + 80052ea: 0192 lsls r2, r2, #6 + (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || + 80052ec: 4293 cmp r3, r2 + 80052ee: d119 bne.n 8005324 + (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || + 80052f0: 68fb ldr r3, [r7, #12] + 80052f2: f403 3240 and.w r2, r3, #196608 @ 0x30000 + 80052f6: 687b ldr r3, [r7, #4] + 80052f8: 6a9b ldr r3, [r3, #40] @ 0x28 + 80052fa: 085b lsrs r3, r3, #1 + 80052fc: 3b01 subs r3, #1 + 80052fe: 041b lsls r3, r3, #16 + (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || + 8005300: 429a cmp r2, r3 + 8005302: d10f bne.n 8005324 + (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || + 8005304: 68fb ldr r3, [r7, #12] + 8005306: f003 6270 and.w r2, r3, #251658240 @ 0xf000000 + 800530a: 687b ldr r3, [r7, #4] + 800530c: 6adb ldr r3, [r3, #44] @ 0x2c + 800530e: 061b lsls r3, r3, #24 + (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || + 8005310: 429a cmp r2, r3 + 8005312: d107 bne.n 8005324 + (READ_BIT(pll_config, RCC_PLLCFGR_PLLR) != (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos))) + 8005314: 68fb ldr r3, [r7, #12] + 8005316: f003 42e0 and.w r2, r3, #1879048192 @ 0x70000000 + 800531a: 687b ldr r3, [r7, #4] + 800531c: 6b1b ldr r3, [r3, #48] @ 0x30 + 800531e: 071b lsls r3, r3, #28 + (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || + 8005320: 429a cmp r2, r3 + 8005322: d001 beq.n 8005328 (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos))) #endif /* RCC_PLLCFGR_PLLR */ { return HAL_ERROR; - 80052d0: 2301 movs r3, #1 - 80052d2: e000 b.n 80052d6 + 8005324: 2301 movs r3, #1 + 8005326: e000 b.n 800532a } } } } return HAL_OK; - 80052d4: 2300 movs r3, #0 + 8005328: 2300 movs r3, #0 } - 80052d6: 4618 mov r0, r3 - 80052d8: 3718 adds r7, #24 - 80052da: 46bd mov sp, r7 - 80052dc: bd80 pop {r7, pc} - 80052de: bf00 nop - 80052e0: 40023800 .word 0x40023800 + 800532a: 4618 mov r0, r3 + 800532c: 3718 adds r7, #24 + 800532e: 46bd mov sp, r7 + 8005330: bd80 pop {r7, pc} + 8005332: bf00 nop + 8005334: 40023800 .word 0x40023800 -080052e4 : +08005338 : * Ex: call @ref HAL_TIM_OC_DeInit() before HAL_TIM_OC_Init() * @param htim TIM Output Compare handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_Init(TIM_HandleTypeDef *htim) { - 80052e4: b580 push {r7, lr} - 80052e6: b082 sub sp, #8 - 80052e8: af00 add r7, sp, #0 - 80052ea: 6078 str r0, [r7, #4] + 8005338: b580 push {r7, lr} + 800533a: b082 sub sp, #8 + 800533c: af00 add r7, sp, #0 + 800533e: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) - 80052ec: 687b ldr r3, [r7, #4] - 80052ee: 2b00 cmp r3, #0 - 80052f0: d101 bne.n 80052f6 + 8005340: 687b ldr r3, [r7, #4] + 8005342: 2b00 cmp r3, #0 + 8005344: d101 bne.n 800534a { return HAL_ERROR; - 80052f2: 2301 movs r3, #1 - 80052f4: e041 b.n 800537a + 8005346: 2301 movs r3, #1 + 8005348: e041 b.n 80053ce assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_PERIOD(htim, htim->Init.Period)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) - 80052f6: 687b ldr r3, [r7, #4] - 80052f8: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 80052fc: b2db uxtb r3, r3 - 80052fe: 2b00 cmp r3, #0 - 8005300: d106 bne.n 8005310 + 800534a: 687b ldr r3, [r7, #4] + 800534c: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 8005350: b2db uxtb r3, r3 + 8005352: 2b00 cmp r3, #0 + 8005354: d106 bne.n 8005364 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; - 8005302: 687b ldr r3, [r7, #4] - 8005304: 2200 movs r2, #0 - 8005306: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005356: 687b ldr r3, [r7, #4] + 8005358: 2200 movs r2, #0 + 800535a: f883 203c strb.w r2, [r3, #60] @ 0x3c } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->OC_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ HAL_TIM_OC_MspInit(htim); - 800530a: 6878 ldr r0, [r7, #4] - 800530c: f7fb ff6a bl 80011e4 + 800535e: 6878 ldr r0, [r7, #4] + 8005360: f7fb ff6a bl 8001238 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; - 8005310: 687b ldr r3, [r7, #4] - 8005312: 2202 movs r2, #2 - 8005314: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8005364: 687b ldr r3, [r7, #4] + 8005366: 2202 movs r2, #2 + 8005368: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Init the base time for the Output Compare */ TIM_Base_SetConfig(htim->Instance, &htim->Init); - 8005318: 687b ldr r3, [r7, #4] - 800531a: 681a ldr r2, [r3, #0] - 800531c: 687b ldr r3, [r7, #4] - 800531e: 3304 adds r3, #4 - 8005320: 4619 mov r1, r3 - 8005322: 4610 mov r0, r2 - 8005324: f000 f930 bl 8005588 + 800536c: 687b ldr r3, [r7, #4] + 800536e: 681a ldr r2, [r3, #0] + 8005370: 687b ldr r3, [r7, #4] + 8005372: 3304 adds r3, #4 + 8005374: 4619 mov r1, r3 + 8005376: 4610 mov r0, r2 + 8005378: f000 f930 bl 80055dc /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - 8005328: 687b ldr r3, [r7, #4] - 800532a: 2201 movs r2, #1 - 800532c: f883 2046 strb.w r2, [r3, #70] @ 0x46 + 800537c: 687b ldr r3, [r7, #4] + 800537e: 2201 movs r2, #1 + 8005380: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 8005330: 687b ldr r3, [r7, #4] - 8005332: 2201 movs r2, #1 - 8005334: f883 203e strb.w r2, [r3, #62] @ 0x3e - 8005338: 687b ldr r3, [r7, #4] - 800533a: 2201 movs r2, #1 - 800533c: f883 203f strb.w r2, [r3, #63] @ 0x3f - 8005340: 687b ldr r3, [r7, #4] - 8005342: 2201 movs r2, #1 - 8005344: f883 2040 strb.w r2, [r3, #64] @ 0x40 - 8005348: 687b ldr r3, [r7, #4] - 800534a: 2201 movs r2, #1 - 800534c: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8005384: 687b ldr r3, [r7, #4] + 8005386: 2201 movs r2, #1 + 8005388: f883 203e strb.w r2, [r3, #62] @ 0x3e + 800538c: 687b ldr r3, [r7, #4] + 800538e: 2201 movs r2, #1 + 8005390: f883 203f strb.w r2, [r3, #63] @ 0x3f + 8005394: 687b ldr r3, [r7, #4] + 8005396: 2201 movs r2, #1 + 8005398: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 800539c: 687b ldr r3, [r7, #4] + 800539e: 2201 movs r2, #1 + 80053a0: f883 2041 strb.w r2, [r3, #65] @ 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 8005350: 687b ldr r3, [r7, #4] - 8005352: 2201 movs r2, #1 - 8005354: f883 2042 strb.w r2, [r3, #66] @ 0x42 - 8005358: 687b ldr r3, [r7, #4] - 800535a: 2201 movs r2, #1 - 800535c: f883 2043 strb.w r2, [r3, #67] @ 0x43 - 8005360: 687b ldr r3, [r7, #4] - 8005362: 2201 movs r2, #1 - 8005364: f883 2044 strb.w r2, [r3, #68] @ 0x44 - 8005368: 687b ldr r3, [r7, #4] - 800536a: 2201 movs r2, #1 - 800536c: f883 2045 strb.w r2, [r3, #69] @ 0x45 + 80053a4: 687b ldr r3, [r7, #4] + 80053a6: 2201 movs r2, #1 + 80053a8: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80053ac: 687b ldr r3, [r7, #4] + 80053ae: 2201 movs r2, #1 + 80053b0: f883 2043 strb.w r2, [r3, #67] @ 0x43 + 80053b4: 687b ldr r3, [r7, #4] + 80053b6: 2201 movs r2, #1 + 80053b8: f883 2044 strb.w r2, [r3, #68] @ 0x44 + 80053bc: 687b ldr r3, [r7, #4] + 80053be: 2201 movs r2, #1 + 80053c0: f883 2045 strb.w r2, [r3, #69] @ 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; - 8005370: 687b ldr r3, [r7, #4] - 8005372: 2201 movs r2, #1 - 8005374: f883 203d strb.w r2, [r3, #61] @ 0x3d + 80053c4: 687b ldr r3, [r7, #4] + 80053c6: 2201 movs r2, #1 + 80053c8: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; - 8005378: 2300 movs r3, #0 + 80053cc: 2300 movs r3, #0 } - 800537a: 4618 mov r0, r3 - 800537c: 3708 adds r7, #8 - 800537e: 46bd mov sp, r7 - 8005380: bd80 pop {r7, pc} + 80053ce: 4618 mov r0, r3 + 80053d0: 3708 adds r7, #8 + 80053d2: 46bd mov sp, r7 + 80053d4: bd80 pop {r7, pc} -08005382 : +080053d6 : * @param htim TIM Encoder Interface handle * @param sConfig TIM Encoder Interface configuration structure * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Encoder_Init(TIM_HandleTypeDef *htim, const TIM_Encoder_InitTypeDef *sConfig) { - 8005382: b580 push {r7, lr} - 8005384: b086 sub sp, #24 - 8005386: af00 add r7, sp, #0 - 8005388: 6078 str r0, [r7, #4] - 800538a: 6039 str r1, [r7, #0] + 80053d6: b580 push {r7, lr} + 80053d8: b086 sub sp, #24 + 80053da: af00 add r7, sp, #0 + 80053dc: 6078 str r0, [r7, #4] + 80053de: 6039 str r1, [r7, #0] uint32_t tmpsmcr; uint32_t tmpccmr1; uint32_t tmpccer; /* Check the TIM handle allocation */ if (htim == NULL) - 800538c: 687b ldr r3, [r7, #4] - 800538e: 2b00 cmp r3, #0 - 8005390: d101 bne.n 8005396 + 80053e0: 687b ldr r3, [r7, #4] + 80053e2: 2b00 cmp r3, #0 + 80053e4: d101 bne.n 80053ea { return HAL_ERROR; - 8005392: 2301 movs r3, #1 - 8005394: e097 b.n 80054c6 + 80053e6: 2301 movs r3, #1 + 80053e8: e097 b.n 800551a assert_param(IS_TIM_IC_PRESCALER(sConfig->IC2Prescaler)); assert_param(IS_TIM_IC_FILTER(sConfig->IC1Filter)); assert_param(IS_TIM_IC_FILTER(sConfig->IC2Filter)); assert_param(IS_TIM_PERIOD(htim, htim->Init.Period)); if (htim->State == HAL_TIM_STATE_RESET) - 8005396: 687b ldr r3, [r7, #4] - 8005398: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 800539c: b2db uxtb r3, r3 - 800539e: 2b00 cmp r3, #0 - 80053a0: d106 bne.n 80053b0 + 80053ea: 687b ldr r3, [r7, #4] + 80053ec: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 80053f0: b2db uxtb r3, r3 + 80053f2: 2b00 cmp r3, #0 + 80053f4: d106 bne.n 8005404 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; - 80053a2: 687b ldr r3, [r7, #4] - 80053a4: 2200 movs r2, #0 - 80053a6: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80053f6: 687b ldr r3, [r7, #4] + 80053f8: 2200 movs r2, #0 + 80053fa: f883 203c strb.w r2, [r3, #60] @ 0x3c } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->Encoder_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ HAL_TIM_Encoder_MspInit(htim); - 80053aa: 6878 ldr r0, [r7, #4] - 80053ac: f7fb ff3a bl 8001224 + 80053fe: 6878 ldr r0, [r7, #4] + 8005400: f7fb ff3a bl 8001278 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; - 80053b0: 687b ldr r3, [r7, #4] - 80053b2: 2202 movs r2, #2 - 80053b4: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8005404: 687b ldr r3, [r7, #4] + 8005406: 2202 movs r2, #2 + 8005408: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Reset the SMS and ECE bits */ htim->Instance->SMCR &= ~(TIM_SMCR_SMS | TIM_SMCR_ECE); - 80053b8: 687b ldr r3, [r7, #4] - 80053ba: 681b ldr r3, [r3, #0] - 80053bc: 689b ldr r3, [r3, #8] - 80053be: 687a ldr r2, [r7, #4] - 80053c0: 6812 ldr r2, [r2, #0] - 80053c2: f423 4380 bic.w r3, r3, #16384 @ 0x4000 - 80053c6: f023 0307 bic.w r3, r3, #7 - 80053ca: 6093 str r3, [r2, #8] + 800540c: 687b ldr r3, [r7, #4] + 800540e: 681b ldr r3, [r3, #0] + 8005410: 689b ldr r3, [r3, #8] + 8005412: 687a ldr r2, [r7, #4] + 8005414: 6812 ldr r2, [r2, #0] + 8005416: f423 4380 bic.w r3, r3, #16384 @ 0x4000 + 800541a: f023 0307 bic.w r3, r3, #7 + 800541e: 6093 str r3, [r2, #8] /* Configure the Time base in the Encoder Mode */ TIM_Base_SetConfig(htim->Instance, &htim->Init); - 80053cc: 687b ldr r3, [r7, #4] - 80053ce: 681a ldr r2, [r3, #0] - 80053d0: 687b ldr r3, [r7, #4] - 80053d2: 3304 adds r3, #4 - 80053d4: 4619 mov r1, r3 - 80053d6: 4610 mov r0, r2 - 80053d8: f000 f8d6 bl 8005588 + 8005420: 687b ldr r3, [r7, #4] + 8005422: 681a ldr r2, [r3, #0] + 8005424: 687b ldr r3, [r7, #4] + 8005426: 3304 adds r3, #4 + 8005428: 4619 mov r1, r3 + 800542a: 4610 mov r0, r2 + 800542c: f000 f8d6 bl 80055dc /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; - 80053dc: 687b ldr r3, [r7, #4] - 80053de: 681b ldr r3, [r3, #0] - 80053e0: 689b ldr r3, [r3, #8] - 80053e2: 617b str r3, [r7, #20] + 8005430: 687b ldr r3, [r7, #4] + 8005432: 681b ldr r3, [r3, #0] + 8005434: 689b ldr r3, [r3, #8] + 8005436: 617b str r3, [r7, #20] /* Get the TIMx CCMR1 register value */ tmpccmr1 = htim->Instance->CCMR1; - 80053e4: 687b ldr r3, [r7, #4] - 80053e6: 681b ldr r3, [r3, #0] - 80053e8: 699b ldr r3, [r3, #24] - 80053ea: 613b str r3, [r7, #16] + 8005438: 687b ldr r3, [r7, #4] + 800543a: 681b ldr r3, [r3, #0] + 800543c: 699b ldr r3, [r3, #24] + 800543e: 613b str r3, [r7, #16] /* Get the TIMx CCER register value */ tmpccer = htim->Instance->CCER; - 80053ec: 687b ldr r3, [r7, #4] - 80053ee: 681b ldr r3, [r3, #0] - 80053f0: 6a1b ldr r3, [r3, #32] - 80053f2: 60fb str r3, [r7, #12] + 8005440: 687b ldr r3, [r7, #4] + 8005442: 681b ldr r3, [r3, #0] + 8005444: 6a1b ldr r3, [r3, #32] + 8005446: 60fb str r3, [r7, #12] /* Set the encoder Mode */ tmpsmcr |= sConfig->EncoderMode; - 80053f4: 683b ldr r3, [r7, #0] - 80053f6: 681b ldr r3, [r3, #0] - 80053f8: 697a ldr r2, [r7, #20] - 80053fa: 4313 orrs r3, r2 - 80053fc: 617b str r3, [r7, #20] + 8005448: 683b ldr r3, [r7, #0] + 800544a: 681b ldr r3, [r3, #0] + 800544c: 697a ldr r2, [r7, #20] + 800544e: 4313 orrs r3, r2 + 8005450: 617b str r3, [r7, #20] /* Select the Capture Compare 1 and the Capture Compare 2 as input */ tmpccmr1 &= ~(TIM_CCMR1_CC1S | TIM_CCMR1_CC2S); - 80053fe: 693b ldr r3, [r7, #16] - 8005400: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8005404: f023 0303 bic.w r3, r3, #3 - 8005408: 613b str r3, [r7, #16] + 8005452: 693b ldr r3, [r7, #16] + 8005454: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8005458: f023 0303 bic.w r3, r3, #3 + 800545c: 613b str r3, [r7, #16] tmpccmr1 |= (sConfig->IC1Selection | (sConfig->IC2Selection << 8U)); - 800540a: 683b ldr r3, [r7, #0] - 800540c: 689a ldr r2, [r3, #8] - 800540e: 683b ldr r3, [r7, #0] - 8005410: 699b ldr r3, [r3, #24] - 8005412: 021b lsls r3, r3, #8 - 8005414: 4313 orrs r3, r2 - 8005416: 693a ldr r2, [r7, #16] - 8005418: 4313 orrs r3, r2 - 800541a: 613b str r3, [r7, #16] + 800545e: 683b ldr r3, [r7, #0] + 8005460: 689a ldr r2, [r3, #8] + 8005462: 683b ldr r3, [r7, #0] + 8005464: 699b ldr r3, [r3, #24] + 8005466: 021b lsls r3, r3, #8 + 8005468: 4313 orrs r3, r2 + 800546a: 693a ldr r2, [r7, #16] + 800546c: 4313 orrs r3, r2 + 800546e: 613b str r3, [r7, #16] /* Set the Capture Compare 1 and the Capture Compare 2 prescalers and filters */ tmpccmr1 &= ~(TIM_CCMR1_IC1PSC | TIM_CCMR1_IC2PSC); - 800541c: 693b ldr r3, [r7, #16] - 800541e: f423 6340 bic.w r3, r3, #3072 @ 0xc00 - 8005422: f023 030c bic.w r3, r3, #12 - 8005426: 613b str r3, [r7, #16] + 8005470: 693b ldr r3, [r7, #16] + 8005472: f423 6340 bic.w r3, r3, #3072 @ 0xc00 + 8005476: f023 030c bic.w r3, r3, #12 + 800547a: 613b str r3, [r7, #16] tmpccmr1 &= ~(TIM_CCMR1_IC1F | TIM_CCMR1_IC2F); - 8005428: 693b ldr r3, [r7, #16] - 800542a: f423 4370 bic.w r3, r3, #61440 @ 0xf000 - 800542e: f023 03f0 bic.w r3, r3, #240 @ 0xf0 - 8005432: 613b str r3, [r7, #16] + 800547c: 693b ldr r3, [r7, #16] + 800547e: f423 4370 bic.w r3, r3, #61440 @ 0xf000 + 8005482: f023 03f0 bic.w r3, r3, #240 @ 0xf0 + 8005486: 613b str r3, [r7, #16] tmpccmr1 |= sConfig->IC1Prescaler | (sConfig->IC2Prescaler << 8U); - 8005434: 683b ldr r3, [r7, #0] - 8005436: 68da ldr r2, [r3, #12] - 8005438: 683b ldr r3, [r7, #0] - 800543a: 69db ldr r3, [r3, #28] - 800543c: 021b lsls r3, r3, #8 - 800543e: 4313 orrs r3, r2 - 8005440: 693a ldr r2, [r7, #16] - 8005442: 4313 orrs r3, r2 - 8005444: 613b str r3, [r7, #16] + 8005488: 683b ldr r3, [r7, #0] + 800548a: 68da ldr r2, [r3, #12] + 800548c: 683b ldr r3, [r7, #0] + 800548e: 69db ldr r3, [r3, #28] + 8005490: 021b lsls r3, r3, #8 + 8005492: 4313 orrs r3, r2 + 8005494: 693a ldr r2, [r7, #16] + 8005496: 4313 orrs r3, r2 + 8005498: 613b str r3, [r7, #16] tmpccmr1 |= (sConfig->IC1Filter << 4U) | (sConfig->IC2Filter << 12U); - 8005446: 683b ldr r3, [r7, #0] - 8005448: 691b ldr r3, [r3, #16] - 800544a: 011a lsls r2, r3, #4 - 800544c: 683b ldr r3, [r7, #0] - 800544e: 6a1b ldr r3, [r3, #32] - 8005450: 031b lsls r3, r3, #12 - 8005452: 4313 orrs r3, r2 - 8005454: 693a ldr r2, [r7, #16] - 8005456: 4313 orrs r3, r2 - 8005458: 613b str r3, [r7, #16] + 800549a: 683b ldr r3, [r7, #0] + 800549c: 691b ldr r3, [r3, #16] + 800549e: 011a lsls r2, r3, #4 + 80054a0: 683b ldr r3, [r7, #0] + 80054a2: 6a1b ldr r3, [r3, #32] + 80054a4: 031b lsls r3, r3, #12 + 80054a6: 4313 orrs r3, r2 + 80054a8: 693a ldr r2, [r7, #16] + 80054aa: 4313 orrs r3, r2 + 80054ac: 613b str r3, [r7, #16] /* Set the TI1 and the TI2 Polarities */ tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC2P); - 800545a: 68fb ldr r3, [r7, #12] - 800545c: f023 0322 bic.w r3, r3, #34 @ 0x22 - 8005460: 60fb str r3, [r7, #12] + 80054ae: 68fb ldr r3, [r7, #12] + 80054b0: f023 0322 bic.w r3, r3, #34 @ 0x22 + 80054b4: 60fb str r3, [r7, #12] tmpccer &= ~(TIM_CCER_CC1NP | TIM_CCER_CC2NP); - 8005462: 68fb ldr r3, [r7, #12] - 8005464: f023 0388 bic.w r3, r3, #136 @ 0x88 - 8005468: 60fb str r3, [r7, #12] + 80054b6: 68fb ldr r3, [r7, #12] + 80054b8: f023 0388 bic.w r3, r3, #136 @ 0x88 + 80054bc: 60fb str r3, [r7, #12] tmpccer |= sConfig->IC1Polarity | (sConfig->IC2Polarity << 4U); - 800546a: 683b ldr r3, [r7, #0] - 800546c: 685a ldr r2, [r3, #4] - 800546e: 683b ldr r3, [r7, #0] - 8005470: 695b ldr r3, [r3, #20] - 8005472: 011b lsls r3, r3, #4 - 8005474: 4313 orrs r3, r2 - 8005476: 68fa ldr r2, [r7, #12] - 8005478: 4313 orrs r3, r2 - 800547a: 60fb str r3, [r7, #12] + 80054be: 683b ldr r3, [r7, #0] + 80054c0: 685a ldr r2, [r3, #4] + 80054c2: 683b ldr r3, [r7, #0] + 80054c4: 695b ldr r3, [r3, #20] + 80054c6: 011b lsls r3, r3, #4 + 80054c8: 4313 orrs r3, r2 + 80054ca: 68fa ldr r2, [r7, #12] + 80054cc: 4313 orrs r3, r2 + 80054ce: 60fb str r3, [r7, #12] /* Write to TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; - 800547c: 687b ldr r3, [r7, #4] - 800547e: 681b ldr r3, [r3, #0] - 8005480: 697a ldr r2, [r7, #20] - 8005482: 609a str r2, [r3, #8] + 80054d0: 687b ldr r3, [r7, #4] + 80054d2: 681b ldr r3, [r3, #0] + 80054d4: 697a ldr r2, [r7, #20] + 80054d6: 609a str r2, [r3, #8] /* Write to TIMx CCMR1 */ htim->Instance->CCMR1 = tmpccmr1; - 8005484: 687b ldr r3, [r7, #4] - 8005486: 681b ldr r3, [r3, #0] - 8005488: 693a ldr r2, [r7, #16] - 800548a: 619a str r2, [r3, #24] + 80054d8: 687b ldr r3, [r7, #4] + 80054da: 681b ldr r3, [r3, #0] + 80054dc: 693a ldr r2, [r7, #16] + 80054de: 619a str r2, [r3, #24] /* Write to TIMx CCER */ htim->Instance->CCER = tmpccer; - 800548c: 687b ldr r3, [r7, #4] - 800548e: 681b ldr r3, [r3, #0] - 8005490: 68fa ldr r2, [r7, #12] - 8005492: 621a str r2, [r3, #32] + 80054e0: 687b ldr r3, [r7, #4] + 80054e2: 681b ldr r3, [r3, #0] + 80054e4: 68fa ldr r2, [r7, #12] + 80054e6: 621a str r2, [r3, #32] /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - 8005494: 687b ldr r3, [r7, #4] - 8005496: 2201 movs r2, #1 - 8005498: f883 2046 strb.w r2, [r3, #70] @ 0x46 + 80054e8: 687b ldr r3, [r7, #4] + 80054ea: 2201 movs r2, #1 + 80054ec: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Set the TIM channels state */ TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - 800549c: 687b ldr r3, [r7, #4] - 800549e: 2201 movs r2, #1 - 80054a0: f883 203e strb.w r2, [r3, #62] @ 0x3e + 80054f0: 687b ldr r3, [r7, #4] + 80054f2: 2201 movs r2, #1 + 80054f4: f883 203e strb.w r2, [r3, #62] @ 0x3e TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - 80054a4: 687b ldr r3, [r7, #4] - 80054a6: 2201 movs r2, #1 - 80054a8: f883 203f strb.w r2, [r3, #63] @ 0x3f + 80054f8: 687b ldr r3, [r7, #4] + 80054fa: 2201 movs r2, #1 + 80054fc: f883 203f strb.w r2, [r3, #63] @ 0x3f TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - 80054ac: 687b ldr r3, [r7, #4] - 80054ae: 2201 movs r2, #1 - 80054b0: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8005500: 687b ldr r3, [r7, #4] + 8005502: 2201 movs r2, #1 + 8005504: f883 2042 strb.w r2, [r3, #66] @ 0x42 TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - 80054b4: 687b ldr r3, [r7, #4] - 80054b6: 2201 movs r2, #1 - 80054b8: f883 2043 strb.w r2, [r3, #67] @ 0x43 + 8005508: 687b ldr r3, [r7, #4] + 800550a: 2201 movs r2, #1 + 800550c: f883 2043 strb.w r2, [r3, #67] @ 0x43 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; - 80054bc: 687b ldr r3, [r7, #4] - 80054be: 2201 movs r2, #1 - 80054c0: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8005510: 687b ldr r3, [r7, #4] + 8005512: 2201 movs r2, #1 + 8005514: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; - 80054c4: 2300 movs r3, #0 + 8005518: 2300 movs r3, #0 } - 80054c6: 4618 mov r0, r3 - 80054c8: 3718 adds r7, #24 - 80054ca: 46bd mov sp, r7 - 80054cc: bd80 pop {r7, pc} + 800551a: 4618 mov r0, r3 + 800551c: 3718 adds r7, #24 + 800551e: 46bd mov sp, r7 + 8005520: bd80 pop {r7, pc} ... -080054d0 : +08005524 : * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_OC_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, uint32_t Channel) { - 80054d0: b580 push {r7, lr} - 80054d2: b086 sub sp, #24 - 80054d4: af00 add r7, sp, #0 - 80054d6: 60f8 str r0, [r7, #12] - 80054d8: 60b9 str r1, [r7, #8] - 80054da: 607a str r2, [r7, #4] + 8005524: b580 push {r7, lr} + 8005526: b086 sub sp, #24 + 8005528: af00 add r7, sp, #0 + 800552a: 60f8 str r0, [r7, #12] + 800552c: 60b9 str r1, [r7, #8] + 800552e: 607a str r2, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 80054dc: 2300 movs r3, #0 - 80054de: 75fb strb r3, [r7, #23] + 8005530: 2300 movs r3, #0 + 8005532: 75fb strb r3, [r7, #23] assert_param(IS_TIM_CHANNELS(Channel)); assert_param(IS_TIM_OC_MODE(sConfig->OCMode)); assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity)); /* Process Locked */ __HAL_LOCK(htim); - 80054e0: 68fb ldr r3, [r7, #12] - 80054e2: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 80054e6: 2b01 cmp r3, #1 - 80054e8: d101 bne.n 80054ee - 80054ea: 2302 movs r3, #2 - 80054ec: e048 b.n 8005580 - 80054ee: 68fb ldr r3, [r7, #12] - 80054f0: 2201 movs r2, #1 - 80054f2: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005534: 68fb ldr r3, [r7, #12] + 8005536: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 800553a: 2b01 cmp r3, #1 + 800553c: d101 bne.n 8005542 + 800553e: 2302 movs r3, #2 + 8005540: e048 b.n 80055d4 + 8005542: 68fb ldr r3, [r7, #12] + 8005544: 2201 movs r2, #1 + 8005546: f883 203c strb.w r2, [r3, #60] @ 0x3c switch (Channel) - 80054f6: 687b ldr r3, [r7, #4] - 80054f8: 2b0c cmp r3, #12 - 80054fa: d839 bhi.n 8005570 - 80054fc: a201 add r2, pc, #4 @ (adr r2, 8005504 ) - 80054fe: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8005502: bf00 nop - 8005504: 08005539 .word 0x08005539 - 8005508: 08005571 .word 0x08005571 - 800550c: 08005571 .word 0x08005571 - 8005510: 08005571 .word 0x08005571 - 8005514: 08005547 .word 0x08005547 - 8005518: 08005571 .word 0x08005571 - 800551c: 08005571 .word 0x08005571 - 8005520: 08005571 .word 0x08005571 - 8005524: 08005555 .word 0x08005555 - 8005528: 08005571 .word 0x08005571 - 800552c: 08005571 .word 0x08005571 - 8005530: 08005571 .word 0x08005571 - 8005534: 08005563 .word 0x08005563 + 800554a: 687b ldr r3, [r7, #4] + 800554c: 2b0c cmp r3, #12 + 800554e: d839 bhi.n 80055c4 + 8005550: a201 add r2, pc, #4 @ (adr r2, 8005558 ) + 8005552: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8005556: bf00 nop + 8005558: 0800558d .word 0x0800558d + 800555c: 080055c5 .word 0x080055c5 + 8005560: 080055c5 .word 0x080055c5 + 8005564: 080055c5 .word 0x080055c5 + 8005568: 0800559b .word 0x0800559b + 800556c: 080055c5 .word 0x080055c5 + 8005570: 080055c5 .word 0x080055c5 + 8005574: 080055c5 .word 0x080055c5 + 8005578: 080055a9 .word 0x080055a9 + 800557c: 080055c5 .word 0x080055c5 + 8005580: 080055c5 .word 0x080055c5 + 8005584: 080055c5 .word 0x080055c5 + 8005588: 080055b7 .word 0x080055b7 { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); /* Configure the TIM Channel 1 in Output Compare */ TIM_OC1_SetConfig(htim->Instance, sConfig); - 8005538: 68fb ldr r3, [r7, #12] - 800553a: 681b ldr r3, [r3, #0] - 800553c: 68b9 ldr r1, [r7, #8] - 800553e: 4618 mov r0, r3 - 8005540: f000 f8c8 bl 80056d4 + 800558c: 68fb ldr r3, [r7, #12] + 800558e: 681b ldr r3, [r3, #0] + 8005590: 68b9 ldr r1, [r7, #8] + 8005592: 4618 mov r0, r3 + 8005594: f000 f8c8 bl 8005728 break; - 8005544: e017 b.n 8005576 + 8005598: e017 b.n 80055ca { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); /* Configure the TIM Channel 2 in Output Compare */ TIM_OC2_SetConfig(htim->Instance, sConfig); - 8005546: 68fb ldr r3, [r7, #12] - 8005548: 681b ldr r3, [r3, #0] - 800554a: 68b9 ldr r1, [r7, #8] - 800554c: 4618 mov r0, r3 - 800554e: f000 f931 bl 80057b4 + 800559a: 68fb ldr r3, [r7, #12] + 800559c: 681b ldr r3, [r3, #0] + 800559e: 68b9 ldr r1, [r7, #8] + 80055a0: 4618 mov r0, r3 + 80055a2: f000 f931 bl 8005808 break; - 8005552: e010 b.n 8005576 + 80055a6: e010 b.n 80055ca { /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); /* Configure the TIM Channel 3 in Output Compare */ TIM_OC3_SetConfig(htim->Instance, sConfig); - 8005554: 68fb ldr r3, [r7, #12] - 8005556: 681b ldr r3, [r3, #0] - 8005558: 68b9 ldr r1, [r7, #8] - 800555a: 4618 mov r0, r3 - 800555c: f000 f9a0 bl 80058a0 + 80055a8: 68fb ldr r3, [r7, #12] + 80055aa: 681b ldr r3, [r3, #0] + 80055ac: 68b9 ldr r1, [r7, #8] + 80055ae: 4618 mov r0, r3 + 80055b0: f000 f9a0 bl 80058f4 break; - 8005560: e009 b.n 8005576 + 80055b4: e009 b.n 80055ca { /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); /* Configure the TIM Channel 4 in Output Compare */ TIM_OC4_SetConfig(htim->Instance, sConfig); - 8005562: 68fb ldr r3, [r7, #12] - 8005564: 681b ldr r3, [r3, #0] - 8005566: 68b9 ldr r1, [r7, #8] - 8005568: 4618 mov r0, r3 - 800556a: f000 fa0d bl 8005988 + 80055b6: 68fb ldr r3, [r7, #12] + 80055b8: 681b ldr r3, [r3, #0] + 80055ba: 68b9 ldr r1, [r7, #8] + 80055bc: 4618 mov r0, r3 + 80055be: f000 fa0d bl 80059dc break; - 800556e: e002 b.n 8005576 + 80055c2: e002 b.n 80055ca } default: status = HAL_ERROR; - 8005570: 2301 movs r3, #1 - 8005572: 75fb strb r3, [r7, #23] + 80055c4: 2301 movs r3, #1 + 80055c6: 75fb strb r3, [r7, #23] break; - 8005574: bf00 nop + 80055c8: bf00 nop } __HAL_UNLOCK(htim); - 8005576: 68fb ldr r3, [r7, #12] - 8005578: 2200 movs r2, #0 - 800557a: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80055ca: 68fb ldr r3, [r7, #12] + 80055cc: 2200 movs r2, #0 + 80055ce: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; - 800557e: 7dfb ldrb r3, [r7, #23] + 80055d2: 7dfb ldrb r3, [r7, #23] } - 8005580: 4618 mov r0, r3 - 8005582: 3718 adds r7, #24 - 8005584: 46bd mov sp, r7 - 8005586: bd80 pop {r7, pc} + 80055d4: 4618 mov r0, r3 + 80055d6: 3718 adds r7, #24 + 80055d8: 46bd mov sp, r7 + 80055da: bd80 pop {r7, pc} -08005588 : +080055dc : * @param TIMx TIM peripheral * @param Structure TIM Base configuration structure * @retval None */ void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure) { - 8005588: b480 push {r7} - 800558a: b085 sub sp, #20 - 800558c: af00 add r7, sp, #0 - 800558e: 6078 str r0, [r7, #4] - 8005590: 6039 str r1, [r7, #0] + 80055dc: b480 push {r7} + 80055de: b085 sub sp, #20 + 80055e0: af00 add r7, sp, #0 + 80055e2: 6078 str r0, [r7, #4] + 80055e4: 6039 str r1, [r7, #0] uint32_t tmpcr1; tmpcr1 = TIMx->CR1; - 8005592: 687b ldr r3, [r7, #4] - 8005594: 681b ldr r3, [r3, #0] - 8005596: 60fb str r3, [r7, #12] + 80055e6: 687b ldr r3, [r7, #4] + 80055e8: 681b ldr r3, [r3, #0] + 80055ea: 60fb str r3, [r7, #12] /* Set TIM Time Base Unit parameters ---------------------------------------*/ if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) - 8005598: 687b ldr r3, [r7, #4] - 800559a: 4a43 ldr r2, [pc, #268] @ (80056a8 ) - 800559c: 4293 cmp r3, r2 - 800559e: d013 beq.n 80055c8 - 80055a0: 687b ldr r3, [r7, #4] - 80055a2: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 80055a6: d00f beq.n 80055c8 - 80055a8: 687b ldr r3, [r7, #4] - 80055aa: 4a40 ldr r2, [pc, #256] @ (80056ac ) - 80055ac: 4293 cmp r3, r2 - 80055ae: d00b beq.n 80055c8 - 80055b0: 687b ldr r3, [r7, #4] - 80055b2: 4a3f ldr r2, [pc, #252] @ (80056b0 ) - 80055b4: 4293 cmp r3, r2 - 80055b6: d007 beq.n 80055c8 - 80055b8: 687b ldr r3, [r7, #4] - 80055ba: 4a3e ldr r2, [pc, #248] @ (80056b4 ) - 80055bc: 4293 cmp r3, r2 - 80055be: d003 beq.n 80055c8 - 80055c0: 687b ldr r3, [r7, #4] - 80055c2: 4a3d ldr r2, [pc, #244] @ (80056b8 ) - 80055c4: 4293 cmp r3, r2 - 80055c6: d108 bne.n 80055da + 80055ec: 687b ldr r3, [r7, #4] + 80055ee: 4a43 ldr r2, [pc, #268] @ (80056fc ) + 80055f0: 4293 cmp r3, r2 + 80055f2: d013 beq.n 800561c + 80055f4: 687b ldr r3, [r7, #4] + 80055f6: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 80055fa: d00f beq.n 800561c + 80055fc: 687b ldr r3, [r7, #4] + 80055fe: 4a40 ldr r2, [pc, #256] @ (8005700 ) + 8005600: 4293 cmp r3, r2 + 8005602: d00b beq.n 800561c + 8005604: 687b ldr r3, [r7, #4] + 8005606: 4a3f ldr r2, [pc, #252] @ (8005704 ) + 8005608: 4293 cmp r3, r2 + 800560a: d007 beq.n 800561c + 800560c: 687b ldr r3, [r7, #4] + 800560e: 4a3e ldr r2, [pc, #248] @ (8005708 ) + 8005610: 4293 cmp r3, r2 + 8005612: d003 beq.n 800561c + 8005614: 687b ldr r3, [r7, #4] + 8005616: 4a3d ldr r2, [pc, #244] @ (800570c ) + 8005618: 4293 cmp r3, r2 + 800561a: d108 bne.n 800562e { /* Select the Counter Mode */ tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); - 80055c8: 68fb ldr r3, [r7, #12] - 80055ca: f023 0370 bic.w r3, r3, #112 @ 0x70 - 80055ce: 60fb str r3, [r7, #12] + 800561c: 68fb ldr r3, [r7, #12] + 800561e: f023 0370 bic.w r3, r3, #112 @ 0x70 + 8005622: 60fb str r3, [r7, #12] tmpcr1 |= Structure->CounterMode; - 80055d0: 683b ldr r3, [r7, #0] - 80055d2: 685b ldr r3, [r3, #4] - 80055d4: 68fa ldr r2, [r7, #12] - 80055d6: 4313 orrs r3, r2 - 80055d8: 60fb str r3, [r7, #12] + 8005624: 683b ldr r3, [r7, #0] + 8005626: 685b ldr r3, [r3, #4] + 8005628: 68fa ldr r2, [r7, #12] + 800562a: 4313 orrs r3, r2 + 800562c: 60fb str r3, [r7, #12] } if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) - 80055da: 687b ldr r3, [r7, #4] - 80055dc: 4a32 ldr r2, [pc, #200] @ (80056a8 ) - 80055de: 4293 cmp r3, r2 - 80055e0: d02b beq.n 800563a - 80055e2: 687b ldr r3, [r7, #4] - 80055e4: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 80055e8: d027 beq.n 800563a - 80055ea: 687b ldr r3, [r7, #4] - 80055ec: 4a2f ldr r2, [pc, #188] @ (80056ac ) - 80055ee: 4293 cmp r3, r2 - 80055f0: d023 beq.n 800563a - 80055f2: 687b ldr r3, [r7, #4] - 80055f4: 4a2e ldr r2, [pc, #184] @ (80056b0 ) - 80055f6: 4293 cmp r3, r2 - 80055f8: d01f beq.n 800563a - 80055fa: 687b ldr r3, [r7, #4] - 80055fc: 4a2d ldr r2, [pc, #180] @ (80056b4 ) - 80055fe: 4293 cmp r3, r2 - 8005600: d01b beq.n 800563a - 8005602: 687b ldr r3, [r7, #4] - 8005604: 4a2c ldr r2, [pc, #176] @ (80056b8 ) - 8005606: 4293 cmp r3, r2 - 8005608: d017 beq.n 800563a - 800560a: 687b ldr r3, [r7, #4] - 800560c: 4a2b ldr r2, [pc, #172] @ (80056bc ) - 800560e: 4293 cmp r3, r2 - 8005610: d013 beq.n 800563a - 8005612: 687b ldr r3, [r7, #4] - 8005614: 4a2a ldr r2, [pc, #168] @ (80056c0 ) - 8005616: 4293 cmp r3, r2 - 8005618: d00f beq.n 800563a - 800561a: 687b ldr r3, [r7, #4] - 800561c: 4a29 ldr r2, [pc, #164] @ (80056c4 ) - 800561e: 4293 cmp r3, r2 - 8005620: d00b beq.n 800563a - 8005622: 687b ldr r3, [r7, #4] - 8005624: 4a28 ldr r2, [pc, #160] @ (80056c8 ) - 8005626: 4293 cmp r3, r2 - 8005628: d007 beq.n 800563a - 800562a: 687b ldr r3, [r7, #4] - 800562c: 4a27 ldr r2, [pc, #156] @ (80056cc ) - 800562e: 4293 cmp r3, r2 - 8005630: d003 beq.n 800563a - 8005632: 687b ldr r3, [r7, #4] - 8005634: 4a26 ldr r2, [pc, #152] @ (80056d0 ) - 8005636: 4293 cmp r3, r2 - 8005638: d108 bne.n 800564c + 800562e: 687b ldr r3, [r7, #4] + 8005630: 4a32 ldr r2, [pc, #200] @ (80056fc ) + 8005632: 4293 cmp r3, r2 + 8005634: d02b beq.n 800568e + 8005636: 687b ldr r3, [r7, #4] + 8005638: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 800563c: d027 beq.n 800568e + 800563e: 687b ldr r3, [r7, #4] + 8005640: 4a2f ldr r2, [pc, #188] @ (8005700 ) + 8005642: 4293 cmp r3, r2 + 8005644: d023 beq.n 800568e + 8005646: 687b ldr r3, [r7, #4] + 8005648: 4a2e ldr r2, [pc, #184] @ (8005704 ) + 800564a: 4293 cmp r3, r2 + 800564c: d01f beq.n 800568e + 800564e: 687b ldr r3, [r7, #4] + 8005650: 4a2d ldr r2, [pc, #180] @ (8005708 ) + 8005652: 4293 cmp r3, r2 + 8005654: d01b beq.n 800568e + 8005656: 687b ldr r3, [r7, #4] + 8005658: 4a2c ldr r2, [pc, #176] @ (800570c ) + 800565a: 4293 cmp r3, r2 + 800565c: d017 beq.n 800568e + 800565e: 687b ldr r3, [r7, #4] + 8005660: 4a2b ldr r2, [pc, #172] @ (8005710 ) + 8005662: 4293 cmp r3, r2 + 8005664: d013 beq.n 800568e + 8005666: 687b ldr r3, [r7, #4] + 8005668: 4a2a ldr r2, [pc, #168] @ (8005714 ) + 800566a: 4293 cmp r3, r2 + 800566c: d00f beq.n 800568e + 800566e: 687b ldr r3, [r7, #4] + 8005670: 4a29 ldr r2, [pc, #164] @ (8005718 ) + 8005672: 4293 cmp r3, r2 + 8005674: d00b beq.n 800568e + 8005676: 687b ldr r3, [r7, #4] + 8005678: 4a28 ldr r2, [pc, #160] @ (800571c ) + 800567a: 4293 cmp r3, r2 + 800567c: d007 beq.n 800568e + 800567e: 687b ldr r3, [r7, #4] + 8005680: 4a27 ldr r2, [pc, #156] @ (8005720 ) + 8005682: 4293 cmp r3, r2 + 8005684: d003 beq.n 800568e + 8005686: 687b ldr r3, [r7, #4] + 8005688: 4a26 ldr r2, [pc, #152] @ (8005724 ) + 800568a: 4293 cmp r3, r2 + 800568c: d108 bne.n 80056a0 { /* Set the clock division */ tmpcr1 &= ~TIM_CR1_CKD; - 800563a: 68fb ldr r3, [r7, #12] - 800563c: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8005640: 60fb str r3, [r7, #12] + 800568e: 68fb ldr r3, [r7, #12] + 8005690: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8005694: 60fb str r3, [r7, #12] tmpcr1 |= (uint32_t)Structure->ClockDivision; - 8005642: 683b ldr r3, [r7, #0] - 8005644: 68db ldr r3, [r3, #12] - 8005646: 68fa ldr r2, [r7, #12] - 8005648: 4313 orrs r3, r2 - 800564a: 60fb str r3, [r7, #12] + 8005696: 683b ldr r3, [r7, #0] + 8005698: 68db ldr r3, [r3, #12] + 800569a: 68fa ldr r2, [r7, #12] + 800569c: 4313 orrs r3, r2 + 800569e: 60fb str r3, [r7, #12] } /* Set the auto-reload preload */ MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); - 800564c: 68fb ldr r3, [r7, #12] - 800564e: f023 0280 bic.w r2, r3, #128 @ 0x80 - 8005652: 683b ldr r3, [r7, #0] - 8005654: 695b ldr r3, [r3, #20] - 8005656: 4313 orrs r3, r2 - 8005658: 60fb str r3, [r7, #12] + 80056a0: 68fb ldr r3, [r7, #12] + 80056a2: f023 0280 bic.w r2, r3, #128 @ 0x80 + 80056a6: 683b ldr r3, [r7, #0] + 80056a8: 695b ldr r3, [r3, #20] + 80056aa: 4313 orrs r3, r2 + 80056ac: 60fb str r3, [r7, #12] /* Set the Autoreload value */ TIMx->ARR = (uint32_t)Structure->Period ; - 800565a: 683b ldr r3, [r7, #0] - 800565c: 689a ldr r2, [r3, #8] - 800565e: 687b ldr r3, [r7, #4] - 8005660: 62da str r2, [r3, #44] @ 0x2c + 80056ae: 683b ldr r3, [r7, #0] + 80056b0: 689a ldr r2, [r3, #8] + 80056b2: 687b ldr r3, [r7, #4] + 80056b4: 62da str r2, [r3, #44] @ 0x2c /* Set the Prescaler value */ TIMx->PSC = Structure->Prescaler; - 8005662: 683b ldr r3, [r7, #0] - 8005664: 681a ldr r2, [r3, #0] - 8005666: 687b ldr r3, [r7, #4] - 8005668: 629a str r2, [r3, #40] @ 0x28 + 80056b6: 683b ldr r3, [r7, #0] + 80056b8: 681a ldr r2, [r3, #0] + 80056ba: 687b ldr r3, [r7, #4] + 80056bc: 629a str r2, [r3, #40] @ 0x28 if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) - 800566a: 687b ldr r3, [r7, #4] - 800566c: 4a0e ldr r2, [pc, #56] @ (80056a8 ) - 800566e: 4293 cmp r3, r2 - 8005670: d003 beq.n 800567a - 8005672: 687b ldr r3, [r7, #4] - 8005674: 4a10 ldr r2, [pc, #64] @ (80056b8 ) - 8005676: 4293 cmp r3, r2 - 8005678: d103 bne.n 8005682 + 80056be: 687b ldr r3, [r7, #4] + 80056c0: 4a0e ldr r2, [pc, #56] @ (80056fc ) + 80056c2: 4293 cmp r3, r2 + 80056c4: d003 beq.n 80056ce + 80056c6: 687b ldr r3, [r7, #4] + 80056c8: 4a10 ldr r2, [pc, #64] @ (800570c ) + 80056ca: 4293 cmp r3, r2 + 80056cc: d103 bne.n 80056d6 { /* Set the Repetition Counter value */ TIMx->RCR = Structure->RepetitionCounter; - 800567a: 683b ldr r3, [r7, #0] - 800567c: 691a ldr r2, [r3, #16] - 800567e: 687b ldr r3, [r7, #4] - 8005680: 631a str r2, [r3, #48] @ 0x30 + 80056ce: 683b ldr r3, [r7, #0] + 80056d0: 691a ldr r2, [r3, #16] + 80056d2: 687b ldr r3, [r7, #4] + 80056d4: 631a str r2, [r3, #48] @ 0x30 } /* Disable Update Event (UEV) with Update Generation (UG) by changing Update Request Source (URS) to avoid Update flag (UIF) */ SET_BIT(TIMx->CR1, TIM_CR1_URS); - 8005682: 687b ldr r3, [r7, #4] - 8005684: 681b ldr r3, [r3, #0] - 8005686: f043 0204 orr.w r2, r3, #4 - 800568a: 687b ldr r3, [r7, #4] - 800568c: 601a str r2, [r3, #0] + 80056d6: 687b ldr r3, [r7, #4] + 80056d8: 681b ldr r3, [r3, #0] + 80056da: f043 0204 orr.w r2, r3, #4 + 80056de: 687b ldr r3, [r7, #4] + 80056e0: 601a str r2, [r3, #0] /* Generate an update event to reload the Prescaler and the repetition counter (only for advanced timer) value immediately */ TIMx->EGR = TIM_EGR_UG; - 800568e: 687b ldr r3, [r7, #4] - 8005690: 2201 movs r2, #1 - 8005692: 615a str r2, [r3, #20] + 80056e2: 687b ldr r3, [r7, #4] + 80056e4: 2201 movs r2, #1 + 80056e6: 615a str r2, [r3, #20] TIMx->CR1 = tmpcr1; - 8005694: 687b ldr r3, [r7, #4] - 8005696: 68fa ldr r2, [r7, #12] - 8005698: 601a str r2, [r3, #0] + 80056e8: 687b ldr r3, [r7, #4] + 80056ea: 68fa ldr r2, [r7, #12] + 80056ec: 601a str r2, [r3, #0] } - 800569a: bf00 nop - 800569c: 3714 adds r7, #20 - 800569e: 46bd mov sp, r7 - 80056a0: f85d 7b04 ldr.w r7, [sp], #4 - 80056a4: 4770 bx lr - 80056a6: bf00 nop - 80056a8: 40010000 .word 0x40010000 - 80056ac: 40000400 .word 0x40000400 - 80056b0: 40000800 .word 0x40000800 - 80056b4: 40000c00 .word 0x40000c00 - 80056b8: 40010400 .word 0x40010400 - 80056bc: 40014000 .word 0x40014000 - 80056c0: 40014400 .word 0x40014400 - 80056c4: 40014800 .word 0x40014800 - 80056c8: 40001800 .word 0x40001800 - 80056cc: 40001c00 .word 0x40001c00 - 80056d0: 40002000 .word 0x40002000 + 80056ee: bf00 nop + 80056f0: 3714 adds r7, #20 + 80056f2: 46bd mov sp, r7 + 80056f4: f85d 7b04 ldr.w r7, [sp], #4 + 80056f8: 4770 bx lr + 80056fa: bf00 nop + 80056fc: 40010000 .word 0x40010000 + 8005700: 40000400 .word 0x40000400 + 8005704: 40000800 .word 0x40000800 + 8005708: 40000c00 .word 0x40000c00 + 800570c: 40010400 .word 0x40010400 + 8005710: 40014000 .word 0x40014000 + 8005714: 40014400 .word 0x40014400 + 8005718: 40014800 .word 0x40014800 + 800571c: 40001800 .word 0x40001800 + 8005720: 40001c00 .word 0x40001c00 + 8005724: 40002000 .word 0x40002000 -080056d4 : +08005728 : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) { - 80056d4: b480 push {r7} - 80056d6: b087 sub sp, #28 - 80056d8: af00 add r7, sp, #0 - 80056da: 6078 str r0, [r7, #4] - 80056dc: 6039 str r1, [r7, #0] + 8005728: b480 push {r7} + 800572a: b087 sub sp, #28 + 800572c: af00 add r7, sp, #0 + 800572e: 6078 str r0, [r7, #4] + 8005730: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 80056de: 687b ldr r3, [r7, #4] - 80056e0: 6a1b ldr r3, [r3, #32] - 80056e2: 617b str r3, [r7, #20] + 8005732: 687b ldr r3, [r7, #4] + 8005734: 6a1b ldr r3, [r3, #32] + 8005736: 617b str r3, [r7, #20] /* Disable the Channel 1: Reset the CC1E Bit */ TIMx->CCER &= ~TIM_CCER_CC1E; - 80056e4: 687b ldr r3, [r7, #4] - 80056e6: 6a1b ldr r3, [r3, #32] - 80056e8: f023 0201 bic.w r2, r3, #1 - 80056ec: 687b ldr r3, [r7, #4] - 80056ee: 621a str r2, [r3, #32] + 8005738: 687b ldr r3, [r7, #4] + 800573a: 6a1b ldr r3, [r3, #32] + 800573c: f023 0201 bic.w r2, r3, #1 + 8005740: 687b ldr r3, [r7, #4] + 8005742: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 80056f0: 687b ldr r3, [r7, #4] - 80056f2: 685b ldr r3, [r3, #4] - 80056f4: 613b str r3, [r7, #16] + 8005744: 687b ldr r3, [r7, #4] + 8005746: 685b ldr r3, [r3, #4] + 8005748: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; - 80056f6: 687b ldr r3, [r7, #4] - 80056f8: 699b ldr r3, [r3, #24] - 80056fa: 60fb str r3, [r7, #12] + 800574a: 687b ldr r3, [r7, #4] + 800574c: 699b ldr r3, [r3, #24] + 800574e: 60fb str r3, [r7, #12] /* Reset the Output Compare Mode Bits */ tmpccmrx &= ~TIM_CCMR1_OC1M; - 80056fc: 68fb ldr r3, [r7, #12] - 80056fe: f023 0370 bic.w r3, r3, #112 @ 0x70 - 8005702: 60fb str r3, [r7, #12] + 8005750: 68fb ldr r3, [r7, #12] + 8005752: f023 0370 bic.w r3, r3, #112 @ 0x70 + 8005756: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC1S; - 8005704: 68fb ldr r3, [r7, #12] - 8005706: f023 0303 bic.w r3, r3, #3 - 800570a: 60fb str r3, [r7, #12] + 8005758: 68fb ldr r3, [r7, #12] + 800575a: f023 0303 bic.w r3, r3, #3 + 800575e: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; - 800570c: 683b ldr r3, [r7, #0] - 800570e: 681b ldr r3, [r3, #0] - 8005710: 68fa ldr r2, [r7, #12] - 8005712: 4313 orrs r3, r2 - 8005714: 60fb str r3, [r7, #12] + 8005760: 683b ldr r3, [r7, #0] + 8005762: 681b ldr r3, [r3, #0] + 8005764: 68fa ldr r2, [r7, #12] + 8005766: 4313 orrs r3, r2 + 8005768: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC1P; - 8005716: 697b ldr r3, [r7, #20] - 8005718: f023 0302 bic.w r3, r3, #2 - 800571c: 617b str r3, [r7, #20] + 800576a: 697b ldr r3, [r7, #20] + 800576c: f023 0302 bic.w r3, r3, #2 + 8005770: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= OC_Config->OCPolarity; - 800571e: 683b ldr r3, [r7, #0] - 8005720: 689b ldr r3, [r3, #8] - 8005722: 697a ldr r2, [r7, #20] - 8005724: 4313 orrs r3, r2 - 8005726: 617b str r3, [r7, #20] + 8005772: 683b ldr r3, [r7, #0] + 8005774: 689b ldr r3, [r3, #8] + 8005776: 697a ldr r2, [r7, #20] + 8005778: 4313 orrs r3, r2 + 800577a: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1)) - 8005728: 687b ldr r3, [r7, #4] - 800572a: 4a20 ldr r2, [pc, #128] @ (80057ac ) - 800572c: 4293 cmp r3, r2 - 800572e: d003 beq.n 8005738 - 8005730: 687b ldr r3, [r7, #4] - 8005732: 4a1f ldr r2, [pc, #124] @ (80057b0 ) - 8005734: 4293 cmp r3, r2 - 8005736: d10c bne.n 8005752 + 800577c: 687b ldr r3, [r7, #4] + 800577e: 4a20 ldr r2, [pc, #128] @ (8005800 ) + 8005780: 4293 cmp r3, r2 + 8005782: d003 beq.n 800578c + 8005784: 687b ldr r3, [r7, #4] + 8005786: 4a1f ldr r2, [pc, #124] @ (8005804 ) + 8005788: 4293 cmp r3, r2 + 800578a: d10c bne.n 80057a6 { /* Check parameters */ assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC1NP; - 8005738: 697b ldr r3, [r7, #20] - 800573a: f023 0308 bic.w r3, r3, #8 - 800573e: 617b str r3, [r7, #20] + 800578c: 697b ldr r3, [r7, #20] + 800578e: f023 0308 bic.w r3, r3, #8 + 8005792: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= OC_Config->OCNPolarity; - 8005740: 683b ldr r3, [r7, #0] - 8005742: 68db ldr r3, [r3, #12] - 8005744: 697a ldr r2, [r7, #20] - 8005746: 4313 orrs r3, r2 - 8005748: 617b str r3, [r7, #20] + 8005794: 683b ldr r3, [r7, #0] + 8005796: 68db ldr r3, [r3, #12] + 8005798: 697a ldr r2, [r7, #20] + 800579a: 4313 orrs r3, r2 + 800579c: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC1NE; - 800574a: 697b ldr r3, [r7, #20] - 800574c: f023 0304 bic.w r3, r3, #4 - 8005750: 617b str r3, [r7, #20] + 800579e: 697b ldr r3, [r7, #20] + 80057a0: f023 0304 bic.w r3, r3, #4 + 80057a4: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) - 8005752: 687b ldr r3, [r7, #4] - 8005754: 4a15 ldr r2, [pc, #84] @ (80057ac ) - 8005756: 4293 cmp r3, r2 - 8005758: d003 beq.n 8005762 - 800575a: 687b ldr r3, [r7, #4] - 800575c: 4a14 ldr r2, [pc, #80] @ (80057b0 ) - 800575e: 4293 cmp r3, r2 - 8005760: d111 bne.n 8005786 + 80057a6: 687b ldr r3, [r7, #4] + 80057a8: 4a15 ldr r2, [pc, #84] @ (8005800 ) + 80057aa: 4293 cmp r3, r2 + 80057ac: d003 beq.n 80057b6 + 80057ae: 687b ldr r3, [r7, #4] + 80057b0: 4a14 ldr r2, [pc, #80] @ (8005804 ) + 80057b2: 4293 cmp r3, r2 + 80057b4: d111 bne.n 80057da /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS1; - 8005762: 693b ldr r3, [r7, #16] - 8005764: f423 7380 bic.w r3, r3, #256 @ 0x100 - 8005768: 613b str r3, [r7, #16] + 80057b6: 693b ldr r3, [r7, #16] + 80057b8: f423 7380 bic.w r3, r3, #256 @ 0x100 + 80057bc: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS1N; - 800576a: 693b ldr r3, [r7, #16] - 800576c: f423 7300 bic.w r3, r3, #512 @ 0x200 - 8005770: 613b str r3, [r7, #16] + 80057be: 693b ldr r3, [r7, #16] + 80057c0: f423 7300 bic.w r3, r3, #512 @ 0x200 + 80057c4: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= OC_Config->OCIdleState; - 8005772: 683b ldr r3, [r7, #0] - 8005774: 695b ldr r3, [r3, #20] - 8005776: 693a ldr r2, [r7, #16] - 8005778: 4313 orrs r3, r2 - 800577a: 613b str r3, [r7, #16] + 80057c6: 683b ldr r3, [r7, #0] + 80057c8: 695b ldr r3, [r3, #20] + 80057ca: 693a ldr r2, [r7, #16] + 80057cc: 4313 orrs r3, r2 + 80057ce: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= OC_Config->OCNIdleState; - 800577c: 683b ldr r3, [r7, #0] - 800577e: 699b ldr r3, [r3, #24] - 8005780: 693a ldr r2, [r7, #16] - 8005782: 4313 orrs r3, r2 - 8005784: 613b str r3, [r7, #16] + 80057d0: 683b ldr r3, [r7, #0] + 80057d2: 699b ldr r3, [r3, #24] + 80057d4: 693a ldr r2, [r7, #16] + 80057d6: 4313 orrs r3, r2 + 80057d8: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 8005786: 687b ldr r3, [r7, #4] - 8005788: 693a ldr r2, [r7, #16] - 800578a: 605a str r2, [r3, #4] + 80057da: 687b ldr r3, [r7, #4] + 80057dc: 693a ldr r2, [r7, #16] + 80057de: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; - 800578c: 687b ldr r3, [r7, #4] - 800578e: 68fa ldr r2, [r7, #12] - 8005790: 619a str r2, [r3, #24] + 80057e0: 687b ldr r3, [r7, #4] + 80057e2: 68fa ldr r2, [r7, #12] + 80057e4: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR1 = OC_Config->Pulse; - 8005792: 683b ldr r3, [r7, #0] - 8005794: 685a ldr r2, [r3, #4] - 8005796: 687b ldr r3, [r7, #4] - 8005798: 635a str r2, [r3, #52] @ 0x34 + 80057e6: 683b ldr r3, [r7, #0] + 80057e8: 685a ldr r2, [r3, #4] + 80057ea: 687b ldr r3, [r7, #4] + 80057ec: 635a str r2, [r3, #52] @ 0x34 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 800579a: 687b ldr r3, [r7, #4] - 800579c: 697a ldr r2, [r7, #20] - 800579e: 621a str r2, [r3, #32] + 80057ee: 687b ldr r3, [r7, #4] + 80057f0: 697a ldr r2, [r7, #20] + 80057f2: 621a str r2, [r3, #32] } - 80057a0: bf00 nop - 80057a2: 371c adds r7, #28 - 80057a4: 46bd mov sp, r7 - 80057a6: f85d 7b04 ldr.w r7, [sp], #4 - 80057aa: 4770 bx lr - 80057ac: 40010000 .word 0x40010000 - 80057b0: 40010400 .word 0x40010400 + 80057f4: bf00 nop + 80057f6: 371c adds r7, #28 + 80057f8: 46bd mov sp, r7 + 80057fa: f85d 7b04 ldr.w r7, [sp], #4 + 80057fe: 4770 bx lr + 8005800: 40010000 .word 0x40010000 + 8005804: 40010400 .word 0x40010400 -080057b4 : +08005808 : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) { - 80057b4: b480 push {r7} - 80057b6: b087 sub sp, #28 - 80057b8: af00 add r7, sp, #0 - 80057ba: 6078 str r0, [r7, #4] - 80057bc: 6039 str r1, [r7, #0] + 8005808: b480 push {r7} + 800580a: b087 sub sp, #28 + 800580c: af00 add r7, sp, #0 + 800580e: 6078 str r0, [r7, #4] + 8005810: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 80057be: 687b ldr r3, [r7, #4] - 80057c0: 6a1b ldr r3, [r3, #32] - 80057c2: 617b str r3, [r7, #20] + 8005812: 687b ldr r3, [r7, #4] + 8005814: 6a1b ldr r3, [r3, #32] + 8005816: 617b str r3, [r7, #20] /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC2E; - 80057c4: 687b ldr r3, [r7, #4] - 80057c6: 6a1b ldr r3, [r3, #32] - 80057c8: f023 0210 bic.w r2, r3, #16 - 80057cc: 687b ldr r3, [r7, #4] - 80057ce: 621a str r2, [r3, #32] + 8005818: 687b ldr r3, [r7, #4] + 800581a: 6a1b ldr r3, [r3, #32] + 800581c: f023 0210 bic.w r2, r3, #16 + 8005820: 687b ldr r3, [r7, #4] + 8005822: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 80057d0: 687b ldr r3, [r7, #4] - 80057d2: 685b ldr r3, [r3, #4] - 80057d4: 613b str r3, [r7, #16] + 8005824: 687b ldr r3, [r7, #4] + 8005826: 685b ldr r3, [r3, #4] + 8005828: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; - 80057d6: 687b ldr r3, [r7, #4] - 80057d8: 699b ldr r3, [r3, #24] - 80057da: 60fb str r3, [r7, #12] + 800582a: 687b ldr r3, [r7, #4] + 800582c: 699b ldr r3, [r3, #24] + 800582e: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR1_OC2M; - 80057dc: 68fb ldr r3, [r7, #12] - 80057de: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 - 80057e2: 60fb str r3, [r7, #12] + 8005830: 68fb ldr r3, [r7, #12] + 8005832: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 + 8005836: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC2S; - 80057e4: 68fb ldr r3, [r7, #12] - 80057e6: f423 7340 bic.w r3, r3, #768 @ 0x300 - 80057ea: 60fb str r3, [r7, #12] + 8005838: 68fb ldr r3, [r7, #12] + 800583a: f423 7340 bic.w r3, r3, #768 @ 0x300 + 800583e: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); - 80057ec: 683b ldr r3, [r7, #0] - 80057ee: 681b ldr r3, [r3, #0] - 80057f0: 021b lsls r3, r3, #8 - 80057f2: 68fa ldr r2, [r7, #12] - 80057f4: 4313 orrs r3, r2 - 80057f6: 60fb str r3, [r7, #12] + 8005840: 683b ldr r3, [r7, #0] + 8005842: 681b ldr r3, [r3, #0] + 8005844: 021b lsls r3, r3, #8 + 8005846: 68fa ldr r2, [r7, #12] + 8005848: 4313 orrs r3, r2 + 800584a: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC2P; - 80057f8: 697b ldr r3, [r7, #20] - 80057fa: f023 0320 bic.w r3, r3, #32 - 80057fe: 617b str r3, [r7, #20] + 800584c: 697b ldr r3, [r7, #20] + 800584e: f023 0320 bic.w r3, r3, #32 + 8005852: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 4U); - 8005800: 683b ldr r3, [r7, #0] - 8005802: 689b ldr r3, [r3, #8] - 8005804: 011b lsls r3, r3, #4 - 8005806: 697a ldr r2, [r7, #20] - 8005808: 4313 orrs r3, r2 - 800580a: 617b str r3, [r7, #20] + 8005854: 683b ldr r3, [r7, #0] + 8005856: 689b ldr r3, [r3, #8] + 8005858: 011b lsls r3, r3, #4 + 800585a: 697a ldr r2, [r7, #20] + 800585c: 4313 orrs r3, r2 + 800585e: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2)) - 800580c: 687b ldr r3, [r7, #4] - 800580e: 4a22 ldr r2, [pc, #136] @ (8005898 ) - 8005810: 4293 cmp r3, r2 - 8005812: d003 beq.n 800581c - 8005814: 687b ldr r3, [r7, #4] - 8005816: 4a21 ldr r2, [pc, #132] @ (800589c ) - 8005818: 4293 cmp r3, r2 - 800581a: d10d bne.n 8005838 + 8005860: 687b ldr r3, [r7, #4] + 8005862: 4a22 ldr r2, [pc, #136] @ (80058ec ) + 8005864: 4293 cmp r3, r2 + 8005866: d003 beq.n 8005870 + 8005868: 687b ldr r3, [r7, #4] + 800586a: 4a21 ldr r2, [pc, #132] @ (80058f0 ) + 800586c: 4293 cmp r3, r2 + 800586e: d10d bne.n 800588c { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC2NP; - 800581c: 697b ldr r3, [r7, #20] - 800581e: f023 0380 bic.w r3, r3, #128 @ 0x80 - 8005822: 617b str r3, [r7, #20] + 8005870: 697b ldr r3, [r7, #20] + 8005872: f023 0380 bic.w r3, r3, #128 @ 0x80 + 8005876: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 4U); - 8005824: 683b ldr r3, [r7, #0] - 8005826: 68db ldr r3, [r3, #12] - 8005828: 011b lsls r3, r3, #4 - 800582a: 697a ldr r2, [r7, #20] - 800582c: 4313 orrs r3, r2 - 800582e: 617b str r3, [r7, #20] + 8005878: 683b ldr r3, [r7, #0] + 800587a: 68db ldr r3, [r3, #12] + 800587c: 011b lsls r3, r3, #4 + 800587e: 697a ldr r2, [r7, #20] + 8005880: 4313 orrs r3, r2 + 8005882: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC2NE; - 8005830: 697b ldr r3, [r7, #20] - 8005832: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8005836: 617b str r3, [r7, #20] + 8005884: 697b ldr r3, [r7, #20] + 8005886: f023 0340 bic.w r3, r3, #64 @ 0x40 + 800588a: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) - 8005838: 687b ldr r3, [r7, #4] - 800583a: 4a17 ldr r2, [pc, #92] @ (8005898 ) - 800583c: 4293 cmp r3, r2 - 800583e: d003 beq.n 8005848 - 8005840: 687b ldr r3, [r7, #4] - 8005842: 4a16 ldr r2, [pc, #88] @ (800589c ) - 8005844: 4293 cmp r3, r2 - 8005846: d113 bne.n 8005870 + 800588c: 687b ldr r3, [r7, #4] + 800588e: 4a17 ldr r2, [pc, #92] @ (80058ec ) + 8005890: 4293 cmp r3, r2 + 8005892: d003 beq.n 800589c + 8005894: 687b ldr r3, [r7, #4] + 8005896: 4a16 ldr r2, [pc, #88] @ (80058f0 ) + 8005898: 4293 cmp r3, r2 + 800589a: d113 bne.n 80058c4 /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS2; - 8005848: 693b ldr r3, [r7, #16] - 800584a: f423 6380 bic.w r3, r3, #1024 @ 0x400 - 800584e: 613b str r3, [r7, #16] + 800589c: 693b ldr r3, [r7, #16] + 800589e: f423 6380 bic.w r3, r3, #1024 @ 0x400 + 80058a2: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS2N; - 8005850: 693b ldr r3, [r7, #16] - 8005852: f423 6300 bic.w r3, r3, #2048 @ 0x800 - 8005856: 613b str r3, [r7, #16] + 80058a4: 693b ldr r3, [r7, #16] + 80058a6: f423 6300 bic.w r3, r3, #2048 @ 0x800 + 80058aa: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 2U); - 8005858: 683b ldr r3, [r7, #0] - 800585a: 695b ldr r3, [r3, #20] - 800585c: 009b lsls r3, r3, #2 - 800585e: 693a ldr r2, [r7, #16] - 8005860: 4313 orrs r3, r2 - 8005862: 613b str r3, [r7, #16] + 80058ac: 683b ldr r3, [r7, #0] + 80058ae: 695b ldr r3, [r3, #20] + 80058b0: 009b lsls r3, r3, #2 + 80058b2: 693a ldr r2, [r7, #16] + 80058b4: 4313 orrs r3, r2 + 80058b6: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 2U); - 8005864: 683b ldr r3, [r7, #0] - 8005866: 699b ldr r3, [r3, #24] - 8005868: 009b lsls r3, r3, #2 - 800586a: 693a ldr r2, [r7, #16] - 800586c: 4313 orrs r3, r2 - 800586e: 613b str r3, [r7, #16] + 80058b8: 683b ldr r3, [r7, #0] + 80058ba: 699b ldr r3, [r3, #24] + 80058bc: 009b lsls r3, r3, #2 + 80058be: 693a ldr r2, [r7, #16] + 80058c0: 4313 orrs r3, r2 + 80058c2: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 8005870: 687b ldr r3, [r7, #4] - 8005872: 693a ldr r2, [r7, #16] - 8005874: 605a str r2, [r3, #4] + 80058c4: 687b ldr r3, [r7, #4] + 80058c6: 693a ldr r2, [r7, #16] + 80058c8: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; - 8005876: 687b ldr r3, [r7, #4] - 8005878: 68fa ldr r2, [r7, #12] - 800587a: 619a str r2, [r3, #24] + 80058ca: 687b ldr r3, [r7, #4] + 80058cc: 68fa ldr r2, [r7, #12] + 80058ce: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR2 = OC_Config->Pulse; - 800587c: 683b ldr r3, [r7, #0] - 800587e: 685a ldr r2, [r3, #4] - 8005880: 687b ldr r3, [r7, #4] - 8005882: 639a str r2, [r3, #56] @ 0x38 + 80058d0: 683b ldr r3, [r7, #0] + 80058d2: 685a ldr r2, [r3, #4] + 80058d4: 687b ldr r3, [r7, #4] + 80058d6: 639a str r2, [r3, #56] @ 0x38 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 8005884: 687b ldr r3, [r7, #4] - 8005886: 697a ldr r2, [r7, #20] - 8005888: 621a str r2, [r3, #32] + 80058d8: 687b ldr r3, [r7, #4] + 80058da: 697a ldr r2, [r7, #20] + 80058dc: 621a str r2, [r3, #32] } - 800588a: bf00 nop - 800588c: 371c adds r7, #28 - 800588e: 46bd mov sp, r7 - 8005890: f85d 7b04 ldr.w r7, [sp], #4 - 8005894: 4770 bx lr - 8005896: bf00 nop - 8005898: 40010000 .word 0x40010000 - 800589c: 40010400 .word 0x40010400 + 80058de: bf00 nop + 80058e0: 371c adds r7, #28 + 80058e2: 46bd mov sp, r7 + 80058e4: f85d 7b04 ldr.w r7, [sp], #4 + 80058e8: 4770 bx lr + 80058ea: bf00 nop + 80058ec: 40010000 .word 0x40010000 + 80058f0: 40010400 .word 0x40010400 -080058a0 : +080058f4 : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) { - 80058a0: b480 push {r7} - 80058a2: b087 sub sp, #28 - 80058a4: af00 add r7, sp, #0 - 80058a6: 6078 str r0, [r7, #4] - 80058a8: 6039 str r1, [r7, #0] + 80058f4: b480 push {r7} + 80058f6: b087 sub sp, #28 + 80058f8: af00 add r7, sp, #0 + 80058fa: 6078 str r0, [r7, #4] + 80058fc: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 80058aa: 687b ldr r3, [r7, #4] - 80058ac: 6a1b ldr r3, [r3, #32] - 80058ae: 617b str r3, [r7, #20] + 80058fe: 687b ldr r3, [r7, #4] + 8005900: 6a1b ldr r3, [r3, #32] + 8005902: 617b str r3, [r7, #20] /* Disable the Channel 3: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC3E; - 80058b0: 687b ldr r3, [r7, #4] - 80058b2: 6a1b ldr r3, [r3, #32] - 80058b4: f423 7280 bic.w r2, r3, #256 @ 0x100 - 80058b8: 687b ldr r3, [r7, #4] - 80058ba: 621a str r2, [r3, #32] + 8005904: 687b ldr r3, [r7, #4] + 8005906: 6a1b ldr r3, [r3, #32] + 8005908: f423 7280 bic.w r2, r3, #256 @ 0x100 + 800590c: 687b ldr r3, [r7, #4] + 800590e: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 80058bc: 687b ldr r3, [r7, #4] - 80058be: 685b ldr r3, [r3, #4] - 80058c0: 613b str r3, [r7, #16] + 8005910: 687b ldr r3, [r7, #4] + 8005912: 685b ldr r3, [r3, #4] + 8005914: 613b str r3, [r7, #16] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; - 80058c2: 687b ldr r3, [r7, #4] - 80058c4: 69db ldr r3, [r3, #28] - 80058c6: 60fb str r3, [r7, #12] + 8005916: 687b ldr r3, [r7, #4] + 8005918: 69db ldr r3, [r3, #28] + 800591a: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC3M; - 80058c8: 68fb ldr r3, [r7, #12] - 80058ca: f023 0370 bic.w r3, r3, #112 @ 0x70 - 80058ce: 60fb str r3, [r7, #12] + 800591c: 68fb ldr r3, [r7, #12] + 800591e: f023 0370 bic.w r3, r3, #112 @ 0x70 + 8005922: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC3S; - 80058d0: 68fb ldr r3, [r7, #12] - 80058d2: f023 0303 bic.w r3, r3, #3 - 80058d6: 60fb str r3, [r7, #12] + 8005924: 68fb ldr r3, [r7, #12] + 8005926: f023 0303 bic.w r3, r3, #3 + 800592a: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; - 80058d8: 683b ldr r3, [r7, #0] - 80058da: 681b ldr r3, [r3, #0] - 80058dc: 68fa ldr r2, [r7, #12] - 80058de: 4313 orrs r3, r2 - 80058e0: 60fb str r3, [r7, #12] + 800592c: 683b ldr r3, [r7, #0] + 800592e: 681b ldr r3, [r3, #0] + 8005930: 68fa ldr r2, [r7, #12] + 8005932: 4313 orrs r3, r2 + 8005934: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC3P; - 80058e2: 697b ldr r3, [r7, #20] - 80058e4: f423 7300 bic.w r3, r3, #512 @ 0x200 - 80058e8: 617b str r3, [r7, #20] + 8005936: 697b ldr r3, [r7, #20] + 8005938: f423 7300 bic.w r3, r3, #512 @ 0x200 + 800593c: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 8U); - 80058ea: 683b ldr r3, [r7, #0] - 80058ec: 689b ldr r3, [r3, #8] - 80058ee: 021b lsls r3, r3, #8 - 80058f0: 697a ldr r2, [r7, #20] - 80058f2: 4313 orrs r3, r2 - 80058f4: 617b str r3, [r7, #20] + 800593e: 683b ldr r3, [r7, #0] + 8005940: 689b ldr r3, [r3, #8] + 8005942: 021b lsls r3, r3, #8 + 8005944: 697a ldr r2, [r7, #20] + 8005946: 4313 orrs r3, r2 + 8005948: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3)) - 80058f6: 687b ldr r3, [r7, #4] - 80058f8: 4a21 ldr r2, [pc, #132] @ (8005980 ) - 80058fa: 4293 cmp r3, r2 - 80058fc: d003 beq.n 8005906 - 80058fe: 687b ldr r3, [r7, #4] - 8005900: 4a20 ldr r2, [pc, #128] @ (8005984 ) - 8005902: 4293 cmp r3, r2 - 8005904: d10d bne.n 8005922 + 800594a: 687b ldr r3, [r7, #4] + 800594c: 4a21 ldr r2, [pc, #132] @ (80059d4 ) + 800594e: 4293 cmp r3, r2 + 8005950: d003 beq.n 800595a + 8005952: 687b ldr r3, [r7, #4] + 8005954: 4a20 ldr r2, [pc, #128] @ (80059d8 ) + 8005956: 4293 cmp r3, r2 + 8005958: d10d bne.n 8005976 { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC3NP; - 8005906: 697b ldr r3, [r7, #20] - 8005908: f423 6300 bic.w r3, r3, #2048 @ 0x800 - 800590c: 617b str r3, [r7, #20] + 800595a: 697b ldr r3, [r7, #20] + 800595c: f423 6300 bic.w r3, r3, #2048 @ 0x800 + 8005960: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 8U); - 800590e: 683b ldr r3, [r7, #0] - 8005910: 68db ldr r3, [r3, #12] - 8005912: 021b lsls r3, r3, #8 - 8005914: 697a ldr r2, [r7, #20] - 8005916: 4313 orrs r3, r2 - 8005918: 617b str r3, [r7, #20] + 8005962: 683b ldr r3, [r7, #0] + 8005964: 68db ldr r3, [r3, #12] + 8005966: 021b lsls r3, r3, #8 + 8005968: 697a ldr r2, [r7, #20] + 800596a: 4313 orrs r3, r2 + 800596c: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC3NE; - 800591a: 697b ldr r3, [r7, #20] - 800591c: f423 6380 bic.w r3, r3, #1024 @ 0x400 - 8005920: 617b str r3, [r7, #20] + 800596e: 697b ldr r3, [r7, #20] + 8005970: f423 6380 bic.w r3, r3, #1024 @ 0x400 + 8005974: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) - 8005922: 687b ldr r3, [r7, #4] - 8005924: 4a16 ldr r2, [pc, #88] @ (8005980 ) - 8005926: 4293 cmp r3, r2 - 8005928: d003 beq.n 8005932 - 800592a: 687b ldr r3, [r7, #4] - 800592c: 4a15 ldr r2, [pc, #84] @ (8005984 ) - 800592e: 4293 cmp r3, r2 - 8005930: d113 bne.n 800595a + 8005976: 687b ldr r3, [r7, #4] + 8005978: 4a16 ldr r2, [pc, #88] @ (80059d4 ) + 800597a: 4293 cmp r3, r2 + 800597c: d003 beq.n 8005986 + 800597e: 687b ldr r3, [r7, #4] + 8005980: 4a15 ldr r2, [pc, #84] @ (80059d8 ) + 8005982: 4293 cmp r3, r2 + 8005984: d113 bne.n 80059ae /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS3; - 8005932: 693b ldr r3, [r7, #16] - 8005934: f423 5380 bic.w r3, r3, #4096 @ 0x1000 - 8005938: 613b str r3, [r7, #16] + 8005986: 693b ldr r3, [r7, #16] + 8005988: f423 5380 bic.w r3, r3, #4096 @ 0x1000 + 800598c: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS3N; - 800593a: 693b ldr r3, [r7, #16] - 800593c: f423 5300 bic.w r3, r3, #8192 @ 0x2000 - 8005940: 613b str r3, [r7, #16] + 800598e: 693b ldr r3, [r7, #16] + 8005990: f423 5300 bic.w r3, r3, #8192 @ 0x2000 + 8005994: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 4U); - 8005942: 683b ldr r3, [r7, #0] - 8005944: 695b ldr r3, [r3, #20] - 8005946: 011b lsls r3, r3, #4 - 8005948: 693a ldr r2, [r7, #16] - 800594a: 4313 orrs r3, r2 - 800594c: 613b str r3, [r7, #16] + 8005996: 683b ldr r3, [r7, #0] + 8005998: 695b ldr r3, [r3, #20] + 800599a: 011b lsls r3, r3, #4 + 800599c: 693a ldr r2, [r7, #16] + 800599e: 4313 orrs r3, r2 + 80059a0: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 4U); - 800594e: 683b ldr r3, [r7, #0] - 8005950: 699b ldr r3, [r3, #24] - 8005952: 011b lsls r3, r3, #4 - 8005954: 693a ldr r2, [r7, #16] - 8005956: 4313 orrs r3, r2 - 8005958: 613b str r3, [r7, #16] + 80059a2: 683b ldr r3, [r7, #0] + 80059a4: 699b ldr r3, [r3, #24] + 80059a6: 011b lsls r3, r3, #4 + 80059a8: 693a ldr r2, [r7, #16] + 80059aa: 4313 orrs r3, r2 + 80059ac: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 800595a: 687b ldr r3, [r7, #4] - 800595c: 693a ldr r2, [r7, #16] - 800595e: 605a str r2, [r3, #4] + 80059ae: 687b ldr r3, [r7, #4] + 80059b0: 693a ldr r2, [r7, #16] + 80059b2: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; - 8005960: 687b ldr r3, [r7, #4] - 8005962: 68fa ldr r2, [r7, #12] - 8005964: 61da str r2, [r3, #28] + 80059b4: 687b ldr r3, [r7, #4] + 80059b6: 68fa ldr r2, [r7, #12] + 80059b8: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR3 = OC_Config->Pulse; - 8005966: 683b ldr r3, [r7, #0] - 8005968: 685a ldr r2, [r3, #4] - 800596a: 687b ldr r3, [r7, #4] - 800596c: 63da str r2, [r3, #60] @ 0x3c + 80059ba: 683b ldr r3, [r7, #0] + 80059bc: 685a ldr r2, [r3, #4] + 80059be: 687b ldr r3, [r7, #4] + 80059c0: 63da str r2, [r3, #60] @ 0x3c /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 800596e: 687b ldr r3, [r7, #4] - 8005970: 697a ldr r2, [r7, #20] - 8005972: 621a str r2, [r3, #32] + 80059c2: 687b ldr r3, [r7, #4] + 80059c4: 697a ldr r2, [r7, #20] + 80059c6: 621a str r2, [r3, #32] } - 8005974: bf00 nop - 8005976: 371c adds r7, #28 - 8005978: 46bd mov sp, r7 - 800597a: f85d 7b04 ldr.w r7, [sp], #4 - 800597e: 4770 bx lr - 8005980: 40010000 .word 0x40010000 - 8005984: 40010400 .word 0x40010400 + 80059c8: bf00 nop + 80059ca: 371c adds r7, #28 + 80059cc: 46bd mov sp, r7 + 80059ce: f85d 7b04 ldr.w r7, [sp], #4 + 80059d2: 4770 bx lr + 80059d4: 40010000 .word 0x40010000 + 80059d8: 40010400 .word 0x40010400 -08005988 : +080059dc : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, const TIM_OC_InitTypeDef *OC_Config) { - 8005988: b480 push {r7} - 800598a: b087 sub sp, #28 - 800598c: af00 add r7, sp, #0 - 800598e: 6078 str r0, [r7, #4] - 8005990: 6039 str r1, [r7, #0] + 80059dc: b480 push {r7} + 80059de: b087 sub sp, #28 + 80059e0: af00 add r7, sp, #0 + 80059e2: 6078 str r0, [r7, #4] + 80059e4: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 8005992: 687b ldr r3, [r7, #4] - 8005994: 6a1b ldr r3, [r3, #32] - 8005996: 613b str r3, [r7, #16] + 80059e6: 687b ldr r3, [r7, #4] + 80059e8: 6a1b ldr r3, [r3, #32] + 80059ea: 613b str r3, [r7, #16] /* Disable the Channel 4: Reset the CC4E Bit */ TIMx->CCER &= ~TIM_CCER_CC4E; - 8005998: 687b ldr r3, [r7, #4] - 800599a: 6a1b ldr r3, [r3, #32] - 800599c: f423 5280 bic.w r2, r3, #4096 @ 0x1000 - 80059a0: 687b ldr r3, [r7, #4] - 80059a2: 621a str r2, [r3, #32] + 80059ec: 687b ldr r3, [r7, #4] + 80059ee: 6a1b ldr r3, [r3, #32] + 80059f0: f423 5280 bic.w r2, r3, #4096 @ 0x1000 + 80059f4: 687b ldr r3, [r7, #4] + 80059f6: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 80059a4: 687b ldr r3, [r7, #4] - 80059a6: 685b ldr r3, [r3, #4] - 80059a8: 617b str r3, [r7, #20] + 80059f8: 687b ldr r3, [r7, #4] + 80059fa: 685b ldr r3, [r3, #4] + 80059fc: 617b str r3, [r7, #20] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; - 80059aa: 687b ldr r3, [r7, #4] - 80059ac: 69db ldr r3, [r3, #28] - 80059ae: 60fb str r3, [r7, #12] + 80059fe: 687b ldr r3, [r7, #4] + 8005a00: 69db ldr r3, [r3, #28] + 8005a02: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC4M; - 80059b0: 68fb ldr r3, [r7, #12] - 80059b2: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 - 80059b6: 60fb str r3, [r7, #12] + 8005a04: 68fb ldr r3, [r7, #12] + 8005a06: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 + 8005a0a: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC4S; - 80059b8: 68fb ldr r3, [r7, #12] - 80059ba: f423 7340 bic.w r3, r3, #768 @ 0x300 - 80059be: 60fb str r3, [r7, #12] + 8005a0c: 68fb ldr r3, [r7, #12] + 8005a0e: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8005a12: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); - 80059c0: 683b ldr r3, [r7, #0] - 80059c2: 681b ldr r3, [r3, #0] - 80059c4: 021b lsls r3, r3, #8 - 80059c6: 68fa ldr r2, [r7, #12] - 80059c8: 4313 orrs r3, r2 - 80059ca: 60fb str r3, [r7, #12] + 8005a14: 683b ldr r3, [r7, #0] + 8005a16: 681b ldr r3, [r3, #0] + 8005a18: 021b lsls r3, r3, #8 + 8005a1a: 68fa ldr r2, [r7, #12] + 8005a1c: 4313 orrs r3, r2 + 8005a1e: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC4P; - 80059cc: 693b ldr r3, [r7, #16] - 80059ce: f423 5300 bic.w r3, r3, #8192 @ 0x2000 - 80059d2: 613b str r3, [r7, #16] + 8005a20: 693b ldr r3, [r7, #16] + 8005a22: f423 5300 bic.w r3, r3, #8192 @ 0x2000 + 8005a26: 613b str r3, [r7, #16] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 12U); - 80059d4: 683b ldr r3, [r7, #0] - 80059d6: 689b ldr r3, [r3, #8] - 80059d8: 031b lsls r3, r3, #12 - 80059da: 693a ldr r2, [r7, #16] - 80059dc: 4313 orrs r3, r2 - 80059de: 613b str r3, [r7, #16] + 8005a28: 683b ldr r3, [r7, #0] + 8005a2a: 689b ldr r3, [r3, #8] + 8005a2c: 031b lsls r3, r3, #12 + 8005a2e: 693a ldr r2, [r7, #16] + 8005a30: 4313 orrs r3, r2 + 8005a32: 613b str r3, [r7, #16] if (IS_TIM_BREAK_INSTANCE(TIMx)) - 80059e0: 687b ldr r3, [r7, #4] - 80059e2: 4a12 ldr r2, [pc, #72] @ (8005a2c ) - 80059e4: 4293 cmp r3, r2 - 80059e6: d003 beq.n 80059f0 - 80059e8: 687b ldr r3, [r7, #4] - 80059ea: 4a11 ldr r2, [pc, #68] @ (8005a30 ) - 80059ec: 4293 cmp r3, r2 - 80059ee: d109 bne.n 8005a04 + 8005a34: 687b ldr r3, [r7, #4] + 8005a36: 4a12 ldr r2, [pc, #72] @ (8005a80 ) + 8005a38: 4293 cmp r3, r2 + 8005a3a: d003 beq.n 8005a44 + 8005a3c: 687b ldr r3, [r7, #4] + 8005a3e: 4a11 ldr r2, [pc, #68] @ (8005a84 ) + 8005a40: 4293 cmp r3, r2 + 8005a42: d109 bne.n 8005a58 { /* Check parameters */ assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare IDLE State */ tmpcr2 &= ~TIM_CR2_OIS4; - 80059f0: 697b ldr r3, [r7, #20] - 80059f2: f423 4380 bic.w r3, r3, #16384 @ 0x4000 - 80059f6: 617b str r3, [r7, #20] + 8005a44: 697b ldr r3, [r7, #20] + 8005a46: f423 4380 bic.w r3, r3, #16384 @ 0x4000 + 8005a4a: 617b str r3, [r7, #20] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 6U); - 80059f8: 683b ldr r3, [r7, #0] - 80059fa: 695b ldr r3, [r3, #20] - 80059fc: 019b lsls r3, r3, #6 - 80059fe: 697a ldr r2, [r7, #20] - 8005a00: 4313 orrs r3, r2 - 8005a02: 617b str r3, [r7, #20] + 8005a4c: 683b ldr r3, [r7, #0] + 8005a4e: 695b ldr r3, [r3, #20] + 8005a50: 019b lsls r3, r3, #6 + 8005a52: 697a ldr r2, [r7, #20] + 8005a54: 4313 orrs r3, r2 + 8005a56: 617b str r3, [r7, #20] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 8005a04: 687b ldr r3, [r7, #4] - 8005a06: 697a ldr r2, [r7, #20] - 8005a08: 605a str r2, [r3, #4] + 8005a58: 687b ldr r3, [r7, #4] + 8005a5a: 697a ldr r2, [r7, #20] + 8005a5c: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; - 8005a0a: 687b ldr r3, [r7, #4] - 8005a0c: 68fa ldr r2, [r7, #12] - 8005a0e: 61da str r2, [r3, #28] + 8005a5e: 687b ldr r3, [r7, #4] + 8005a60: 68fa ldr r2, [r7, #12] + 8005a62: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR4 = OC_Config->Pulse; - 8005a10: 683b ldr r3, [r7, #0] - 8005a12: 685a ldr r2, [r3, #4] - 8005a14: 687b ldr r3, [r7, #4] - 8005a16: 641a str r2, [r3, #64] @ 0x40 + 8005a64: 683b ldr r3, [r7, #0] + 8005a66: 685a ldr r2, [r3, #4] + 8005a68: 687b ldr r3, [r7, #4] + 8005a6a: 641a str r2, [r3, #64] @ 0x40 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 8005a18: 687b ldr r3, [r7, #4] - 8005a1a: 693a ldr r2, [r7, #16] - 8005a1c: 621a str r2, [r3, #32] + 8005a6c: 687b ldr r3, [r7, #4] + 8005a6e: 693a ldr r2, [r7, #16] + 8005a70: 621a str r2, [r3, #32] } - 8005a1e: bf00 nop - 8005a20: 371c adds r7, #28 - 8005a22: 46bd mov sp, r7 - 8005a24: f85d 7b04 ldr.w r7, [sp], #4 - 8005a28: 4770 bx lr - 8005a2a: bf00 nop - 8005a2c: 40010000 .word 0x40010000 - 8005a30: 40010400 .word 0x40010400 + 8005a72: bf00 nop + 8005a74: 371c adds r7, #28 + 8005a76: 46bd mov sp, r7 + 8005a78: f85d 7b04 ldr.w r7, [sp], #4 + 8005a7c: 4770 bx lr + 8005a7e: bf00 nop + 8005a80: 40010000 .word 0x40010000 + 8005a84: 40010400 .word 0x40010400 -08005a34 : +08005a88 : * mode. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, const TIM_MasterConfigTypeDef *sMasterConfig) { - 8005a34: b480 push {r7} - 8005a36: b085 sub sp, #20 - 8005a38: af00 add r7, sp, #0 - 8005a3a: 6078 str r0, [r7, #4] - 8005a3c: 6039 str r1, [r7, #0] + 8005a88: b480 push {r7} + 8005a8a: b085 sub sp, #20 + 8005a8c: af00 add r7, sp, #0 + 8005a8e: 6078 str r0, [r7, #4] + 8005a90: 6039 str r1, [r7, #0] assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance)); assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger)); assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode)); /* Check input state */ __HAL_LOCK(htim); - 8005a3e: 687b ldr r3, [r7, #4] - 8005a40: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 8005a44: 2b01 cmp r3, #1 - 8005a46: d101 bne.n 8005a4c - 8005a48: 2302 movs r3, #2 - 8005a4a: e05a b.n 8005b02 - 8005a4c: 687b ldr r3, [r7, #4] - 8005a4e: 2201 movs r2, #1 - 8005a50: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005a92: 687b ldr r3, [r7, #4] + 8005a94: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 8005a98: 2b01 cmp r3, #1 + 8005a9a: d101 bne.n 8005aa0 + 8005a9c: 2302 movs r3, #2 + 8005a9e: e05a b.n 8005b56 + 8005aa0: 687b ldr r3, [r7, #4] + 8005aa2: 2201 movs r2, #1 + 8005aa4: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Change the handler state */ htim->State = HAL_TIM_STATE_BUSY; - 8005a54: 687b ldr r3, [r7, #4] - 8005a56: 2202 movs r2, #2 - 8005a58: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8005aa8: 687b ldr r3, [r7, #4] + 8005aaa: 2202 movs r2, #2 + 8005aac: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Get the TIMx CR2 register value */ tmpcr2 = htim->Instance->CR2; - 8005a5c: 687b ldr r3, [r7, #4] - 8005a5e: 681b ldr r3, [r3, #0] - 8005a60: 685b ldr r3, [r3, #4] - 8005a62: 60fb str r3, [r7, #12] + 8005ab0: 687b ldr r3, [r7, #4] + 8005ab2: 681b ldr r3, [r3, #0] + 8005ab4: 685b ldr r3, [r3, #4] + 8005ab6: 60fb str r3, [r7, #12] /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; - 8005a64: 687b ldr r3, [r7, #4] - 8005a66: 681b ldr r3, [r3, #0] - 8005a68: 689b ldr r3, [r3, #8] - 8005a6a: 60bb str r3, [r7, #8] + 8005ab8: 687b ldr r3, [r7, #4] + 8005aba: 681b ldr r3, [r3, #0] + 8005abc: 689b ldr r3, [r3, #8] + 8005abe: 60bb str r3, [r7, #8] /* Reset the MMS Bits */ tmpcr2 &= ~TIM_CR2_MMS; - 8005a6c: 68fb ldr r3, [r7, #12] - 8005a6e: f023 0370 bic.w r3, r3, #112 @ 0x70 - 8005a72: 60fb str r3, [r7, #12] + 8005ac0: 68fb ldr r3, [r7, #12] + 8005ac2: f023 0370 bic.w r3, r3, #112 @ 0x70 + 8005ac6: 60fb str r3, [r7, #12] /* Select the TRGO source */ tmpcr2 |= sMasterConfig->MasterOutputTrigger; - 8005a74: 683b ldr r3, [r7, #0] - 8005a76: 681b ldr r3, [r3, #0] - 8005a78: 68fa ldr r2, [r7, #12] - 8005a7a: 4313 orrs r3, r2 - 8005a7c: 60fb str r3, [r7, #12] + 8005ac8: 683b ldr r3, [r7, #0] + 8005aca: 681b ldr r3, [r3, #0] + 8005acc: 68fa ldr r2, [r7, #12] + 8005ace: 4313 orrs r3, r2 + 8005ad0: 60fb str r3, [r7, #12] /* Update TIMx CR2 */ htim->Instance->CR2 = tmpcr2; - 8005a7e: 687b ldr r3, [r7, #4] - 8005a80: 681b ldr r3, [r3, #0] - 8005a82: 68fa ldr r2, [r7, #12] - 8005a84: 605a str r2, [r3, #4] + 8005ad2: 687b ldr r3, [r7, #4] + 8005ad4: 681b ldr r3, [r3, #0] + 8005ad6: 68fa ldr r2, [r7, #12] + 8005ad8: 605a str r2, [r3, #4] if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - 8005a86: 687b ldr r3, [r7, #4] - 8005a88: 681b ldr r3, [r3, #0] - 8005a8a: 4a21 ldr r2, [pc, #132] @ (8005b10 ) - 8005a8c: 4293 cmp r3, r2 - 8005a8e: d022 beq.n 8005ad6 - 8005a90: 687b ldr r3, [r7, #4] - 8005a92: 681b ldr r3, [r3, #0] - 8005a94: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8005a98: d01d beq.n 8005ad6 - 8005a9a: 687b ldr r3, [r7, #4] - 8005a9c: 681b ldr r3, [r3, #0] - 8005a9e: 4a1d ldr r2, [pc, #116] @ (8005b14 ) - 8005aa0: 4293 cmp r3, r2 - 8005aa2: d018 beq.n 8005ad6 - 8005aa4: 687b ldr r3, [r7, #4] - 8005aa6: 681b ldr r3, [r3, #0] - 8005aa8: 4a1b ldr r2, [pc, #108] @ (8005b18 ) - 8005aaa: 4293 cmp r3, r2 - 8005aac: d013 beq.n 8005ad6 - 8005aae: 687b ldr r3, [r7, #4] - 8005ab0: 681b ldr r3, [r3, #0] - 8005ab2: 4a1a ldr r2, [pc, #104] @ (8005b1c ) - 8005ab4: 4293 cmp r3, r2 - 8005ab6: d00e beq.n 8005ad6 - 8005ab8: 687b ldr r3, [r7, #4] - 8005aba: 681b ldr r3, [r3, #0] - 8005abc: 4a18 ldr r2, [pc, #96] @ (8005b20 ) - 8005abe: 4293 cmp r3, r2 - 8005ac0: d009 beq.n 8005ad6 - 8005ac2: 687b ldr r3, [r7, #4] - 8005ac4: 681b ldr r3, [r3, #0] - 8005ac6: 4a17 ldr r2, [pc, #92] @ (8005b24 ) - 8005ac8: 4293 cmp r3, r2 - 8005aca: d004 beq.n 8005ad6 - 8005acc: 687b ldr r3, [r7, #4] - 8005ace: 681b ldr r3, [r3, #0] - 8005ad0: 4a15 ldr r2, [pc, #84] @ (8005b28 ) - 8005ad2: 4293 cmp r3, r2 - 8005ad4: d10c bne.n 8005af0 + 8005ada: 687b ldr r3, [r7, #4] + 8005adc: 681b ldr r3, [r3, #0] + 8005ade: 4a21 ldr r2, [pc, #132] @ (8005b64 ) + 8005ae0: 4293 cmp r3, r2 + 8005ae2: d022 beq.n 8005b2a + 8005ae4: 687b ldr r3, [r7, #4] + 8005ae6: 681b ldr r3, [r3, #0] + 8005ae8: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8005aec: d01d beq.n 8005b2a + 8005aee: 687b ldr r3, [r7, #4] + 8005af0: 681b ldr r3, [r3, #0] + 8005af2: 4a1d ldr r2, [pc, #116] @ (8005b68 ) + 8005af4: 4293 cmp r3, r2 + 8005af6: d018 beq.n 8005b2a + 8005af8: 687b ldr r3, [r7, #4] + 8005afa: 681b ldr r3, [r3, #0] + 8005afc: 4a1b ldr r2, [pc, #108] @ (8005b6c ) + 8005afe: 4293 cmp r3, r2 + 8005b00: d013 beq.n 8005b2a + 8005b02: 687b ldr r3, [r7, #4] + 8005b04: 681b ldr r3, [r3, #0] + 8005b06: 4a1a ldr r2, [pc, #104] @ (8005b70 ) + 8005b08: 4293 cmp r3, r2 + 8005b0a: d00e beq.n 8005b2a + 8005b0c: 687b ldr r3, [r7, #4] + 8005b0e: 681b ldr r3, [r3, #0] + 8005b10: 4a18 ldr r2, [pc, #96] @ (8005b74 ) + 8005b12: 4293 cmp r3, r2 + 8005b14: d009 beq.n 8005b2a + 8005b16: 687b ldr r3, [r7, #4] + 8005b18: 681b ldr r3, [r3, #0] + 8005b1a: 4a17 ldr r2, [pc, #92] @ (8005b78 ) + 8005b1c: 4293 cmp r3, r2 + 8005b1e: d004 beq.n 8005b2a + 8005b20: 687b ldr r3, [r7, #4] + 8005b22: 681b ldr r3, [r3, #0] + 8005b24: 4a15 ldr r2, [pc, #84] @ (8005b7c ) + 8005b26: 4293 cmp r3, r2 + 8005b28: d10c bne.n 8005b44 { /* Reset the MSM Bit */ tmpsmcr &= ~TIM_SMCR_MSM; - 8005ad6: 68bb ldr r3, [r7, #8] - 8005ad8: f023 0380 bic.w r3, r3, #128 @ 0x80 - 8005adc: 60bb str r3, [r7, #8] + 8005b2a: 68bb ldr r3, [r7, #8] + 8005b2c: f023 0380 bic.w r3, r3, #128 @ 0x80 + 8005b30: 60bb str r3, [r7, #8] /* Set master mode */ tmpsmcr |= sMasterConfig->MasterSlaveMode; - 8005ade: 683b ldr r3, [r7, #0] - 8005ae0: 685b ldr r3, [r3, #4] - 8005ae2: 68ba ldr r2, [r7, #8] - 8005ae4: 4313 orrs r3, r2 - 8005ae6: 60bb str r3, [r7, #8] + 8005b32: 683b ldr r3, [r7, #0] + 8005b34: 685b ldr r3, [r3, #4] + 8005b36: 68ba ldr r2, [r7, #8] + 8005b38: 4313 orrs r3, r2 + 8005b3a: 60bb str r3, [r7, #8] /* Update TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; - 8005ae8: 687b ldr r3, [r7, #4] - 8005aea: 681b ldr r3, [r3, #0] - 8005aec: 68ba ldr r2, [r7, #8] - 8005aee: 609a str r2, [r3, #8] + 8005b3c: 687b ldr r3, [r7, #4] + 8005b3e: 681b ldr r3, [r3, #0] + 8005b40: 68ba ldr r2, [r7, #8] + 8005b42: 609a str r2, [r3, #8] } /* Change the htim state */ htim->State = HAL_TIM_STATE_READY; - 8005af0: 687b ldr r3, [r7, #4] - 8005af2: 2201 movs r2, #1 - 8005af4: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8005b44: 687b ldr r3, [r7, #4] + 8005b46: 2201 movs r2, #1 + 8005b48: f883 203d strb.w r2, [r3, #61] @ 0x3d __HAL_UNLOCK(htim); - 8005af8: 687b ldr r3, [r7, #4] - 8005afa: 2200 movs r2, #0 - 8005afc: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005b4c: 687b ldr r3, [r7, #4] + 8005b4e: 2200 movs r2, #0 + 8005b50: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_OK; - 8005b00: 2300 movs r3, #0 + 8005b54: 2300 movs r3, #0 } - 8005b02: 4618 mov r0, r3 - 8005b04: 3714 adds r7, #20 - 8005b06: 46bd mov sp, r7 - 8005b08: f85d 7b04 ldr.w r7, [sp], #4 - 8005b0c: 4770 bx lr - 8005b0e: bf00 nop - 8005b10: 40010000 .word 0x40010000 - 8005b14: 40000400 .word 0x40000400 - 8005b18: 40000800 .word 0x40000800 - 8005b1c: 40000c00 .word 0x40000c00 - 8005b20: 40010400 .word 0x40010400 - 8005b24: 40014000 .word 0x40014000 - 8005b28: 40001800 .word 0x40001800 + 8005b56: 4618 mov r0, r3 + 8005b58: 3714 adds r7, #20 + 8005b5a: 46bd mov sp, r7 + 8005b5c: f85d 7b04 ldr.w r7, [sp], #4 + 8005b60: 4770 bx lr + 8005b62: bf00 nop + 8005b64: 40010000 .word 0x40010000 + 8005b68: 40000400 .word 0x40000400 + 8005b6c: 40000800 .word 0x40000800 + 8005b70: 40000c00 .word 0x40000c00 + 8005b74: 40010400 .word 0x40010400 + 8005b78: 40014000 .word 0x40014000 + 8005b7c: 40001800 .word 0x40001800 -08005b2c : +08005b80 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart) { - 8005b2c: b580 push {r7, lr} - 8005b2e: b082 sub sp, #8 - 8005b30: af00 add r7, sp, #0 - 8005b32: 6078 str r0, [r7, #4] + 8005b80: b580 push {r7, lr} + 8005b82: b082 sub sp, #8 + 8005b84: af00 add r7, sp, #0 + 8005b86: 6078 str r0, [r7, #4] /* Check the UART handle allocation */ if (huart == NULL) - 8005b34: 687b ldr r3, [r7, #4] - 8005b36: 2b00 cmp r3, #0 - 8005b38: d101 bne.n 8005b3e + 8005b88: 687b ldr r3, [r7, #4] + 8005b8a: 2b00 cmp r3, #0 + 8005b8c: d101 bne.n 8005b92 { return HAL_ERROR; - 8005b3a: 2301 movs r3, #1 - 8005b3c: e042 b.n 8005bc4 + 8005b8e: 2301 movs r3, #1 + 8005b90: e042 b.n 8005c18 assert_param(IS_UART_INSTANCE(huart->Instance)); } assert_param(IS_UART_WORD_LENGTH(huart->Init.WordLength)); assert_param(IS_UART_OVERSAMPLING(huart->Init.OverSampling)); if (huart->gState == HAL_UART_STATE_RESET) - 8005b3e: 687b ldr r3, [r7, #4] - 8005b40: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 8005b44: b2db uxtb r3, r3 - 8005b46: 2b00 cmp r3, #0 - 8005b48: d106 bne.n 8005b58 + 8005b92: 687b ldr r3, [r7, #4] + 8005b94: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 8005b98: b2db uxtb r3, r3 + 8005b9a: 2b00 cmp r3, #0 + 8005b9c: d106 bne.n 8005bac { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; - 8005b4a: 687b ldr r3, [r7, #4] - 8005b4c: 2200 movs r2, #0 - 8005b4e: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 8005b9e: 687b ldr r3, [r7, #4] + 8005ba0: 2200 movs r2, #0 + 8005ba2: f883 2040 strb.w r2, [r3, #64] @ 0x40 /* Init the low level hardware */ huart->MspInitCallback(huart); #else /* Init the low level hardware : GPIO, CLOCK */ HAL_UART_MspInit(huart); - 8005b52: 6878 ldr r0, [r7, #4] - 8005b54: f7fb fc8e bl 8001474 + 8005ba6: 6878 ldr r0, [r7, #4] + 8005ba8: f7fb fc8e bl 80014c8 #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; - 8005b58: 687b ldr r3, [r7, #4] - 8005b5a: 2224 movs r2, #36 @ 0x24 - 8005b5c: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8005bac: 687b ldr r3, [r7, #4] + 8005bae: 2224 movs r2, #36 @ 0x24 + 8005bb0: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Disable the peripheral */ __HAL_UART_DISABLE(huart); - 8005b60: 687b ldr r3, [r7, #4] - 8005b62: 681b ldr r3, [r3, #0] - 8005b64: 68da ldr r2, [r3, #12] - 8005b66: 687b ldr r3, [r7, #4] - 8005b68: 681b ldr r3, [r3, #0] - 8005b6a: f422 5200 bic.w r2, r2, #8192 @ 0x2000 - 8005b6e: 60da str r2, [r3, #12] + 8005bb4: 687b ldr r3, [r7, #4] + 8005bb6: 681b ldr r3, [r3, #0] + 8005bb8: 68da ldr r2, [r3, #12] + 8005bba: 687b ldr r3, [r7, #4] + 8005bbc: 681b ldr r3, [r3, #0] + 8005bbe: f422 5200 bic.w r2, r2, #8192 @ 0x2000 + 8005bc2: 60da str r2, [r3, #12] /* Set the UART Communication parameters */ UART_SetConfig(huart); - 8005b70: 6878 ldr r0, [r7, #4] - 8005b72: f000 ff63 bl 8006a3c + 8005bc4: 6878 ldr r0, [r7, #4] + 8005bc6: f000 ff63 bl 8006a90 /* In asynchronous mode, the following bits must be kept cleared: - LINEN and CLKEN bits in the USART_CR2 register, - SCEN, HDSEL and IREN bits in the USART_CR3 register.*/ CLEAR_BIT(huart->Instance->CR2, (USART_CR2_LINEN | USART_CR2_CLKEN)); - 8005b76: 687b ldr r3, [r7, #4] - 8005b78: 681b ldr r3, [r3, #0] - 8005b7a: 691a ldr r2, [r3, #16] - 8005b7c: 687b ldr r3, [r7, #4] - 8005b7e: 681b ldr r3, [r3, #0] - 8005b80: f422 4290 bic.w r2, r2, #18432 @ 0x4800 - 8005b84: 611a str r2, [r3, #16] + 8005bca: 687b ldr r3, [r7, #4] + 8005bcc: 681b ldr r3, [r3, #0] + 8005bce: 691a ldr r2, [r3, #16] + 8005bd0: 687b ldr r3, [r7, #4] + 8005bd2: 681b ldr r3, [r3, #0] + 8005bd4: f422 4290 bic.w r2, r2, #18432 @ 0x4800 + 8005bd8: 611a str r2, [r3, #16] CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); - 8005b86: 687b ldr r3, [r7, #4] - 8005b88: 681b ldr r3, [r3, #0] - 8005b8a: 695a ldr r2, [r3, #20] - 8005b8c: 687b ldr r3, [r7, #4] - 8005b8e: 681b ldr r3, [r3, #0] - 8005b90: f022 022a bic.w r2, r2, #42 @ 0x2a - 8005b94: 615a str r2, [r3, #20] + 8005bda: 687b ldr r3, [r7, #4] + 8005bdc: 681b ldr r3, [r3, #0] + 8005bde: 695a ldr r2, [r3, #20] + 8005be0: 687b ldr r3, [r7, #4] + 8005be2: 681b ldr r3, [r3, #0] + 8005be4: f022 022a bic.w r2, r2, #42 @ 0x2a + 8005be8: 615a str r2, [r3, #20] /* Enable the peripheral */ __HAL_UART_ENABLE(huart); - 8005b96: 687b ldr r3, [r7, #4] - 8005b98: 681b ldr r3, [r3, #0] - 8005b9a: 68da ldr r2, [r3, #12] - 8005b9c: 687b ldr r3, [r7, #4] - 8005b9e: 681b ldr r3, [r3, #0] - 8005ba0: f442 5200 orr.w r2, r2, #8192 @ 0x2000 - 8005ba4: 60da str r2, [r3, #12] + 8005bea: 687b ldr r3, [r7, #4] + 8005bec: 681b ldr r3, [r3, #0] + 8005bee: 68da ldr r2, [r3, #12] + 8005bf0: 687b ldr r3, [r7, #4] + 8005bf2: 681b ldr r3, [r3, #0] + 8005bf4: f442 5200 orr.w r2, r2, #8192 @ 0x2000 + 8005bf8: 60da str r2, [r3, #12] /* Initialize the UART state */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 8005ba6: 687b ldr r3, [r7, #4] - 8005ba8: 2200 movs r2, #0 - 8005baa: 645a str r2, [r3, #68] @ 0x44 + 8005bfa: 687b ldr r3, [r7, #4] + 8005bfc: 2200 movs r2, #0 + 8005bfe: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_READY; - 8005bac: 687b ldr r3, [r7, #4] - 8005bae: 2220 movs r2, #32 - 8005bb0: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8005c00: 687b ldr r3, [r7, #4] + 8005c02: 2220 movs r2, #32 + 8005c04: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_READY; - 8005bb4: 687b ldr r3, [r7, #4] - 8005bb6: 2220 movs r2, #32 - 8005bb8: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8005c08: 687b ldr r3, [r7, #4] + 8005c0a: 2220 movs r2, #32 + 8005c0c: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->RxEventType = HAL_UART_RXEVENT_TC; - 8005bbc: 687b ldr r3, [r7, #4] - 8005bbe: 2200 movs r2, #0 - 8005bc0: 635a str r2, [r3, #52] @ 0x34 + 8005c10: 687b ldr r3, [r7, #4] + 8005c12: 2200 movs r2, #0 + 8005c14: 635a str r2, [r3, #52] @ 0x34 return HAL_OK; - 8005bc2: 2300 movs r3, #0 + 8005c16: 2300 movs r3, #0 } - 8005bc4: 4618 mov r0, r3 - 8005bc6: 3708 adds r7, #8 - 8005bc8: 46bd mov sp, r7 - 8005bca: bd80 pop {r7, pc} + 8005c18: 4618 mov r0, r3 + 8005c1a: 3708 adds r7, #8 + 8005c1c: 46bd mov sp, r7 + 8005c1e: bd80 pop {r7, pc} -08005bcc : +08005c20 : * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be sent * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Transmit_DMA(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size) { - 8005bcc: b580 push {r7, lr} - 8005bce: b08c sub sp, #48 @ 0x30 - 8005bd0: af00 add r7, sp, #0 - 8005bd2: 60f8 str r0, [r7, #12] - 8005bd4: 60b9 str r1, [r7, #8] - 8005bd6: 4613 mov r3, r2 - 8005bd8: 80fb strh r3, [r7, #6] + 8005c20: b580 push {r7, lr} + 8005c22: b08c sub sp, #48 @ 0x30 + 8005c24: af00 add r7, sp, #0 + 8005c26: 60f8 str r0, [r7, #12] + 8005c28: 60b9 str r1, [r7, #8] + 8005c2a: 4613 mov r3, r2 + 8005c2c: 80fb strh r3, [r7, #6] const uint32_t *tmp; /* Check that a Tx process is not already ongoing */ if (huart->gState == HAL_UART_STATE_READY) - 8005bda: 68fb ldr r3, [r7, #12] - 8005bdc: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 8005be0: b2db uxtb r3, r3 - 8005be2: 2b20 cmp r3, #32 - 8005be4: d162 bne.n 8005cac + 8005c2e: 68fb ldr r3, [r7, #12] + 8005c30: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 8005c34: b2db uxtb r3, r3 + 8005c36: 2b20 cmp r3, #32 + 8005c38: d162 bne.n 8005d00 { if ((pData == NULL) || (Size == 0U)) - 8005be6: 68bb ldr r3, [r7, #8] - 8005be8: 2b00 cmp r3, #0 - 8005bea: d002 beq.n 8005bf2 - 8005bec: 88fb ldrh r3, [r7, #6] - 8005bee: 2b00 cmp r3, #0 - 8005bf0: d101 bne.n 8005bf6 + 8005c3a: 68bb ldr r3, [r7, #8] + 8005c3c: 2b00 cmp r3, #0 + 8005c3e: d002 beq.n 8005c46 + 8005c40: 88fb ldrh r3, [r7, #6] + 8005c42: 2b00 cmp r3, #0 + 8005c44: d101 bne.n 8005c4a { return HAL_ERROR; - 8005bf2: 2301 movs r3, #1 - 8005bf4: e05b b.n 8005cae + 8005c46: 2301 movs r3, #1 + 8005c48: e05b b.n 8005d02 } huart->pTxBuffPtr = pData; - 8005bf6: 68ba ldr r2, [r7, #8] - 8005bf8: 68fb ldr r3, [r7, #12] - 8005bfa: 621a str r2, [r3, #32] + 8005c4a: 68ba ldr r2, [r7, #8] + 8005c4c: 68fb ldr r3, [r7, #12] + 8005c4e: 621a str r2, [r3, #32] huart->TxXferSize = Size; - 8005bfc: 68fb ldr r3, [r7, #12] - 8005bfe: 88fa ldrh r2, [r7, #6] - 8005c00: 849a strh r2, [r3, #36] @ 0x24 + 8005c50: 68fb ldr r3, [r7, #12] + 8005c52: 88fa ldrh r2, [r7, #6] + 8005c54: 849a strh r2, [r3, #36] @ 0x24 huart->TxXferCount = Size; - 8005c02: 68fb ldr r3, [r7, #12] - 8005c04: 88fa ldrh r2, [r7, #6] - 8005c06: 84da strh r2, [r3, #38] @ 0x26 + 8005c56: 68fb ldr r3, [r7, #12] + 8005c58: 88fa ldrh r2, [r7, #6] + 8005c5a: 84da strh r2, [r3, #38] @ 0x26 huart->ErrorCode = HAL_UART_ERROR_NONE; - 8005c08: 68fb ldr r3, [r7, #12] - 8005c0a: 2200 movs r2, #0 - 8005c0c: 645a str r2, [r3, #68] @ 0x44 + 8005c5c: 68fb ldr r3, [r7, #12] + 8005c5e: 2200 movs r2, #0 + 8005c60: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_BUSY_TX; - 8005c0e: 68fb ldr r3, [r7, #12] - 8005c10: 2221 movs r2, #33 @ 0x21 - 8005c12: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8005c62: 68fb ldr r3, [r7, #12] + 8005c64: 2221 movs r2, #33 @ 0x21 + 8005c66: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Set the UART DMA transfer complete callback */ huart->hdmatx->XferCpltCallback = UART_DMATransmitCplt; - 8005c16: 68fb ldr r3, [r7, #12] - 8005c18: 6b9b ldr r3, [r3, #56] @ 0x38 - 8005c1a: 4a27 ldr r2, [pc, #156] @ (8005cb8 ) - 8005c1c: 63da str r2, [r3, #60] @ 0x3c + 8005c6a: 68fb ldr r3, [r7, #12] + 8005c6c: 6b9b ldr r3, [r3, #56] @ 0x38 + 8005c6e: 4a27 ldr r2, [pc, #156] @ (8005d0c ) + 8005c70: 63da str r2, [r3, #60] @ 0x3c /* Set the UART DMA Half transfer complete callback */ huart->hdmatx->XferHalfCpltCallback = UART_DMATxHalfCplt; - 8005c1e: 68fb ldr r3, [r7, #12] - 8005c20: 6b9b ldr r3, [r3, #56] @ 0x38 - 8005c22: 4a26 ldr r2, [pc, #152] @ (8005cbc ) - 8005c24: 641a str r2, [r3, #64] @ 0x40 + 8005c72: 68fb ldr r3, [r7, #12] + 8005c74: 6b9b ldr r3, [r3, #56] @ 0x38 + 8005c76: 4a26 ldr r2, [pc, #152] @ (8005d10 ) + 8005c78: 641a str r2, [r3, #64] @ 0x40 /* Set the DMA error callback */ huart->hdmatx->XferErrorCallback = UART_DMAError; - 8005c26: 68fb ldr r3, [r7, #12] - 8005c28: 6b9b ldr r3, [r3, #56] @ 0x38 - 8005c2a: 4a25 ldr r2, [pc, #148] @ (8005cc0 ) - 8005c2c: 64da str r2, [r3, #76] @ 0x4c + 8005c7a: 68fb ldr r3, [r7, #12] + 8005c7c: 6b9b ldr r3, [r3, #56] @ 0x38 + 8005c7e: 4a25 ldr r2, [pc, #148] @ (8005d14 ) + 8005c80: 64da str r2, [r3, #76] @ 0x4c /* Set the DMA abort callback */ huart->hdmatx->XferAbortCallback = NULL; - 8005c2e: 68fb ldr r3, [r7, #12] - 8005c30: 6b9b ldr r3, [r3, #56] @ 0x38 - 8005c32: 2200 movs r2, #0 - 8005c34: 651a str r2, [r3, #80] @ 0x50 + 8005c82: 68fb ldr r3, [r7, #12] + 8005c84: 6b9b ldr r3, [r3, #56] @ 0x38 + 8005c86: 2200 movs r2, #0 + 8005c88: 651a str r2, [r3, #80] @ 0x50 /* Enable the UART transmit DMA stream */ tmp = (const uint32_t *)&pData; - 8005c36: f107 0308 add.w r3, r7, #8 - 8005c3a: 62fb str r3, [r7, #44] @ 0x2c + 8005c8a: f107 0308 add.w r3, r7, #8 + 8005c8e: 62fb str r3, [r7, #44] @ 0x2c if (HAL_DMA_Start_IT(huart->hdmatx, *(const uint32_t *)tmp, (uint32_t)&huart->Instance->DR, Size) != HAL_OK) - 8005c3c: 68fb ldr r3, [r7, #12] - 8005c3e: 6b98 ldr r0, [r3, #56] @ 0x38 - 8005c40: 6afb ldr r3, [r7, #44] @ 0x2c - 8005c42: 6819 ldr r1, [r3, #0] - 8005c44: 68fb ldr r3, [r7, #12] - 8005c46: 681b ldr r3, [r3, #0] - 8005c48: 3304 adds r3, #4 - 8005c4a: 461a mov r2, r3 - 8005c4c: 88fb ldrh r3, [r7, #6] - 8005c4e: f7fc f953 bl 8001ef8 - 8005c52: 4603 mov r3, r0 - 8005c54: 2b00 cmp r3, #0 - 8005c56: d008 beq.n 8005c6a + 8005c90: 68fb ldr r3, [r7, #12] + 8005c92: 6b98 ldr r0, [r3, #56] @ 0x38 + 8005c94: 6afb ldr r3, [r7, #44] @ 0x2c + 8005c96: 6819 ldr r1, [r3, #0] + 8005c98: 68fb ldr r3, [r7, #12] + 8005c9a: 681b ldr r3, [r3, #0] + 8005c9c: 3304 adds r3, #4 + 8005c9e: 461a mov r2, r3 + 8005ca0: 88fb ldrh r3, [r7, #6] + 8005ca2: f7fc f953 bl 8001f4c + 8005ca6: 4603 mov r3, r0 + 8005ca8: 2b00 cmp r3, #0 + 8005caa: d008 beq.n 8005cbe { /* Set error code to DMA */ huart->ErrorCode = HAL_UART_ERROR_DMA; - 8005c58: 68fb ldr r3, [r7, #12] - 8005c5a: 2210 movs r2, #16 - 8005c5c: 645a str r2, [r3, #68] @ 0x44 + 8005cac: 68fb ldr r3, [r7, #12] + 8005cae: 2210 movs r2, #16 + 8005cb0: 645a str r2, [r3, #68] @ 0x44 /* Restore huart->gState to ready */ huart->gState = HAL_UART_STATE_READY; - 8005c5e: 68fb ldr r3, [r7, #12] - 8005c60: 2220 movs r2, #32 - 8005c62: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8005cb2: 68fb ldr r3, [r7, #12] + 8005cb4: 2220 movs r2, #32 + 8005cb6: f883 2041 strb.w r2, [r3, #65] @ 0x41 return HAL_ERROR; - 8005c66: 2301 movs r3, #1 - 8005c68: e021 b.n 8005cae + 8005cba: 2301 movs r3, #1 + 8005cbc: e021 b.n 8005d02 } /* Clear the TC flag in the SR register by writing 0 to it */ __HAL_UART_CLEAR_FLAG(huart, UART_FLAG_TC); - 8005c6a: 68fb ldr r3, [r7, #12] - 8005c6c: 681b ldr r3, [r3, #0] - 8005c6e: f06f 0240 mvn.w r2, #64 @ 0x40 - 8005c72: 601a str r2, [r3, #0] + 8005cbe: 68fb ldr r3, [r7, #12] + 8005cc0: 681b ldr r3, [r3, #0] + 8005cc2: f06f 0240 mvn.w r2, #64 @ 0x40 + 8005cc6: 601a str r2, [r3, #0] /* Enable the DMA transfer for transmit request by setting the DMAT bit in the UART CR3 register */ ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_DMAT); - 8005c74: 68fb ldr r3, [r7, #12] - 8005c76: 681b ldr r3, [r3, #0] - 8005c78: 3314 adds r3, #20 - 8005c7a: 61bb str r3, [r7, #24] + 8005cc8: 68fb ldr r3, [r7, #12] + 8005cca: 681b ldr r3, [r3, #0] + 8005ccc: 3314 adds r3, #20 + 8005cce: 61bb str r3, [r7, #24] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005c7c: 69bb ldr r3, [r7, #24] - 8005c7e: e853 3f00 ldrex r3, [r3] - 8005c82: 617b str r3, [r7, #20] + 8005cd0: 69bb ldr r3, [r7, #24] + 8005cd2: e853 3f00 ldrex r3, [r3] + 8005cd6: 617b str r3, [r7, #20] return(result); - 8005c84: 697b ldr r3, [r7, #20] - 8005c86: f043 0380 orr.w r3, r3, #128 @ 0x80 - 8005c8a: 62bb str r3, [r7, #40] @ 0x28 - 8005c8c: 68fb ldr r3, [r7, #12] - 8005c8e: 681b ldr r3, [r3, #0] - 8005c90: 3314 adds r3, #20 - 8005c92: 6aba ldr r2, [r7, #40] @ 0x28 - 8005c94: 627a str r2, [r7, #36] @ 0x24 - 8005c96: 623b str r3, [r7, #32] + 8005cd8: 697b ldr r3, [r7, #20] + 8005cda: f043 0380 orr.w r3, r3, #128 @ 0x80 + 8005cde: 62bb str r3, [r7, #40] @ 0x28 + 8005ce0: 68fb ldr r3, [r7, #12] + 8005ce2: 681b ldr r3, [r3, #0] + 8005ce4: 3314 adds r3, #20 + 8005ce6: 6aba ldr r2, [r7, #40] @ 0x28 + 8005ce8: 627a str r2, [r7, #36] @ 0x24 + 8005cea: 623b str r3, [r7, #32] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005c98: 6a39 ldr r1, [r7, #32] - 8005c9a: 6a7a ldr r2, [r7, #36] @ 0x24 - 8005c9c: e841 2300 strex r3, r2, [r1] - 8005ca0: 61fb str r3, [r7, #28] + 8005cec: 6a39 ldr r1, [r7, #32] + 8005cee: 6a7a ldr r2, [r7, #36] @ 0x24 + 8005cf0: e841 2300 strex r3, r2, [r1] + 8005cf4: 61fb str r3, [r7, #28] return(result); - 8005ca2: 69fb ldr r3, [r7, #28] - 8005ca4: 2b00 cmp r3, #0 - 8005ca6: d1e5 bne.n 8005c74 + 8005cf6: 69fb ldr r3, [r7, #28] + 8005cf8: 2b00 cmp r3, #0 + 8005cfa: d1e5 bne.n 8005cc8 return HAL_OK; - 8005ca8: 2300 movs r3, #0 - 8005caa: e000 b.n 8005cae + 8005cfc: 2300 movs r3, #0 + 8005cfe: e000 b.n 8005d02 } else { return HAL_BUSY; - 8005cac: 2302 movs r3, #2 + 8005d00: 2302 movs r3, #2 } } - 8005cae: 4618 mov r0, r3 - 8005cb0: 3730 adds r7, #48 @ 0x30 - 8005cb2: 46bd mov sp, r7 - 8005cb4: bd80 pop {r7, pc} - 8005cb6: bf00 nop - 8005cb8: 080062b9 .word 0x080062b9 - 8005cbc: 08006353 .word 0x08006353 - 8005cc0: 080064d7 .word 0x080064d7 + 8005d02: 4618 mov r0, r3 + 8005d04: 3730 adds r7, #48 @ 0x30 + 8005d06: 46bd mov sp, r7 + 8005d08: bd80 pop {r7, pc} + 8005d0a: bf00 nop + 8005d0c: 0800630d .word 0x0800630d + 8005d10: 080063a7 .word 0x080063a7 + 8005d14: 0800652b .word 0x0800652b -08005cc4 : +08005d18 : * @param Size Amount of data elements (u8 or u16) to be received. * @note When the UART parity is enabled (PCE = 1) the received data contains the parity bit. * @retval HAL status */ HAL_StatusTypeDef HAL_UART_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { - 8005cc4: b580 push {r7, lr} - 8005cc6: b084 sub sp, #16 - 8005cc8: af00 add r7, sp, #0 - 8005cca: 60f8 str r0, [r7, #12] - 8005ccc: 60b9 str r1, [r7, #8] - 8005cce: 4613 mov r3, r2 - 8005cd0: 80fb strh r3, [r7, #6] + 8005d18: b580 push {r7, lr} + 8005d1a: b084 sub sp, #16 + 8005d1c: af00 add r7, sp, #0 + 8005d1e: 60f8 str r0, [r7, #12] + 8005d20: 60b9 str r1, [r7, #8] + 8005d22: 4613 mov r3, r2 + 8005d24: 80fb strh r3, [r7, #6] /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) - 8005cd2: 68fb ldr r3, [r7, #12] - 8005cd4: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 - 8005cd8: b2db uxtb r3, r3 - 8005cda: 2b20 cmp r3, #32 - 8005cdc: d112 bne.n 8005d04 + 8005d26: 68fb ldr r3, [r7, #12] + 8005d28: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 + 8005d2c: b2db uxtb r3, r3 + 8005d2e: 2b20 cmp r3, #32 + 8005d30: d112 bne.n 8005d58 { if ((pData == NULL) || (Size == 0U)) - 8005cde: 68bb ldr r3, [r7, #8] - 8005ce0: 2b00 cmp r3, #0 - 8005ce2: d002 beq.n 8005cea - 8005ce4: 88fb ldrh r3, [r7, #6] - 8005ce6: 2b00 cmp r3, #0 - 8005ce8: d101 bne.n 8005cee + 8005d32: 68bb ldr r3, [r7, #8] + 8005d34: 2b00 cmp r3, #0 + 8005d36: d002 beq.n 8005d3e + 8005d38: 88fb ldrh r3, [r7, #6] + 8005d3a: 2b00 cmp r3, #0 + 8005d3c: d101 bne.n 8005d42 { return HAL_ERROR; - 8005cea: 2301 movs r3, #1 - 8005cec: e00b b.n 8005d06 + 8005d3e: 2301 movs r3, #1 + 8005d40: e00b b.n 8005d5a } /* Set Reception type to Standard reception */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8005cee: 68fb ldr r3, [r7, #12] - 8005cf0: 2200 movs r2, #0 - 8005cf2: 631a str r2, [r3, #48] @ 0x30 + 8005d42: 68fb ldr r3, [r7, #12] + 8005d44: 2200 movs r2, #0 + 8005d46: 631a str r2, [r3, #48] @ 0x30 return (UART_Start_Receive_DMA(huart, pData, Size)); - 8005cf4: 88fb ldrh r3, [r7, #6] - 8005cf6: 461a mov r2, r3 - 8005cf8: 68b9 ldr r1, [r7, #8] - 8005cfa: 68f8 ldr r0, [r7, #12] - 8005cfc: f000 fc36 bl 800656c - 8005d00: 4603 mov r3, r0 - 8005d02: e000 b.n 8005d06 + 8005d48: 88fb ldrh r3, [r7, #6] + 8005d4a: 461a mov r2, r3 + 8005d4c: 68b9 ldr r1, [r7, #8] + 8005d4e: 68f8 ldr r0, [r7, #12] + 8005d50: f000 fc36 bl 80065c0 + 8005d54: 4603 mov r3, r0 + 8005d56: e000 b.n 8005d5a } else { return HAL_BUSY; - 8005d04: 2302 movs r3, #2 + 8005d58: 2302 movs r3, #2 } } - 8005d06: 4618 mov r0, r3 - 8005d08: 3710 adds r7, #16 - 8005d0a: 46bd mov sp, r7 - 8005d0c: bd80 pop {r7, pc} + 8005d5a: 4618 mov r0, r3 + 8005d5c: 3710 adds r7, #16 + 8005d5e: 46bd mov sp, r7 + 8005d60: bd80 pop {r7, pc} ... -08005d10 : +08005d64 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ void HAL_UART_IRQHandler(UART_HandleTypeDef *huart) { - 8005d10: b580 push {r7, lr} - 8005d12: b0ba sub sp, #232 @ 0xe8 - 8005d14: af00 add r7, sp, #0 - 8005d16: 6078 str r0, [r7, #4] + 8005d64: b580 push {r7, lr} + 8005d66: b0ba sub sp, #232 @ 0xe8 + 8005d68: af00 add r7, sp, #0 + 8005d6a: 6078 str r0, [r7, #4] uint32_t isrflags = READ_REG(huart->Instance->SR); - 8005d18: 687b ldr r3, [r7, #4] - 8005d1a: 681b ldr r3, [r3, #0] - 8005d1c: 681b ldr r3, [r3, #0] - 8005d1e: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 + 8005d6c: 687b ldr r3, [r7, #4] + 8005d6e: 681b ldr r3, [r3, #0] + 8005d70: 681b ldr r3, [r3, #0] + 8005d72: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 uint32_t cr1its = READ_REG(huart->Instance->CR1); - 8005d22: 687b ldr r3, [r7, #4] - 8005d24: 681b ldr r3, [r3, #0] - 8005d26: 68db ldr r3, [r3, #12] - 8005d28: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 + 8005d76: 687b ldr r3, [r7, #4] + 8005d78: 681b ldr r3, [r3, #0] + 8005d7a: 68db ldr r3, [r3, #12] + 8005d7c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 uint32_t cr3its = READ_REG(huart->Instance->CR3); - 8005d2c: 687b ldr r3, [r7, #4] - 8005d2e: 681b ldr r3, [r3, #0] - 8005d30: 695b ldr r3, [r3, #20] - 8005d32: f8c7 30dc str.w r3, [r7, #220] @ 0xdc + 8005d80: 687b ldr r3, [r7, #4] + 8005d82: 681b ldr r3, [r3, #0] + 8005d84: 695b ldr r3, [r3, #20] + 8005d86: f8c7 30dc str.w r3, [r7, #220] @ 0xdc uint32_t errorflags = 0x00U; - 8005d36: 2300 movs r3, #0 - 8005d38: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 + 8005d8a: 2300 movs r3, #0 + 8005d8c: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 uint32_t dmarequest = 0x00U; - 8005d3c: 2300 movs r3, #0 - 8005d3e: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 + 8005d90: 2300 movs r3, #0 + 8005d92: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 /* If no error occurs */ errorflags = (isrflags & (uint32_t)(USART_SR_PE | USART_SR_FE | USART_SR_ORE | USART_SR_NE)); - 8005d42: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8005d46: f003 030f and.w r3, r3, #15 - 8005d4a: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 + 8005d96: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005d9a: f003 030f and.w r3, r3, #15 + 8005d9e: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 if (errorflags == RESET) - 8005d4e: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 - 8005d52: 2b00 cmp r3, #0 - 8005d54: d10f bne.n 8005d76 + 8005da2: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 + 8005da6: 2b00 cmp r3, #0 + 8005da8: d10f bne.n 8005dca { /* UART in mode Receiver -------------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) - 8005d56: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8005d5a: f003 0320 and.w r3, r3, #32 - 8005d5e: 2b00 cmp r3, #0 - 8005d60: d009 beq.n 8005d76 - 8005d62: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8005d66: f003 0320 and.w r3, r3, #32 - 8005d6a: 2b00 cmp r3, #0 - 8005d6c: d003 beq.n 8005d76 + 8005daa: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005dae: f003 0320 and.w r3, r3, #32 + 8005db2: 2b00 cmp r3, #0 + 8005db4: d009 beq.n 8005dca + 8005db6: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005dba: f003 0320 and.w r3, r3, #32 + 8005dbe: 2b00 cmp r3, #0 + 8005dc0: d003 beq.n 8005dca { UART_Receive_IT(huart); - 8005d6e: 6878 ldr r0, [r7, #4] - 8005d70: f000 fda6 bl 80068c0 + 8005dc2: 6878 ldr r0, [r7, #4] + 8005dc4: f000 fda6 bl 8006914 return; - 8005d74: e273 b.n 800625e + 8005dc8: e273 b.n 80062b2 } } /* If some errors occur */ if ((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) - 8005d76: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 - 8005d7a: 2b00 cmp r3, #0 - 8005d7c: f000 80de beq.w 8005f3c - 8005d80: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8005d84: f003 0301 and.w r3, r3, #1 - 8005d88: 2b00 cmp r3, #0 - 8005d8a: d106 bne.n 8005d9a + 8005dca: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 + 8005dce: 2b00 cmp r3, #0 + 8005dd0: f000 80de beq.w 8005f90 + 8005dd4: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8005dd8: f003 0301 and.w r3, r3, #1 + 8005ddc: 2b00 cmp r3, #0 + 8005dde: d106 bne.n 8005dee || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET))) - 8005d8c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8005d90: f403 7390 and.w r3, r3, #288 @ 0x120 - 8005d94: 2b00 cmp r3, #0 - 8005d96: f000 80d1 beq.w 8005f3c + 8005de0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005de4: f403 7390 and.w r3, r3, #288 @ 0x120 + 8005de8: 2b00 cmp r3, #0 + 8005dea: f000 80d1 beq.w 8005f90 { /* UART parity error interrupt occurred ----------------------------------*/ if (((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET)) - 8005d9a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8005d9e: f003 0301 and.w r3, r3, #1 - 8005da2: 2b00 cmp r3, #0 - 8005da4: d00b beq.n 8005dbe - 8005da6: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8005daa: f403 7380 and.w r3, r3, #256 @ 0x100 - 8005dae: 2b00 cmp r3, #0 - 8005db0: d005 beq.n 8005dbe + 8005dee: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005df2: f003 0301 and.w r3, r3, #1 + 8005df6: 2b00 cmp r3, #0 + 8005df8: d00b beq.n 8005e12 + 8005dfa: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005dfe: f403 7380 and.w r3, r3, #256 @ 0x100 + 8005e02: 2b00 cmp r3, #0 + 8005e04: d005 beq.n 8005e12 { huart->ErrorCode |= HAL_UART_ERROR_PE; - 8005db2: 687b ldr r3, [r7, #4] - 8005db4: 6c5b ldr r3, [r3, #68] @ 0x44 - 8005db6: f043 0201 orr.w r2, r3, #1 - 8005dba: 687b ldr r3, [r7, #4] - 8005dbc: 645a str r2, [r3, #68] @ 0x44 + 8005e06: 687b ldr r3, [r7, #4] + 8005e08: 6c5b ldr r3, [r3, #68] @ 0x44 + 8005e0a: f043 0201 orr.w r2, r3, #1 + 8005e0e: 687b ldr r3, [r7, #4] + 8005e10: 645a str r2, [r3, #68] @ 0x44 } /* UART noise error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) - 8005dbe: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8005dc2: f003 0304 and.w r3, r3, #4 - 8005dc6: 2b00 cmp r3, #0 - 8005dc8: d00b beq.n 8005de2 - 8005dca: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8005dce: f003 0301 and.w r3, r3, #1 - 8005dd2: 2b00 cmp r3, #0 - 8005dd4: d005 beq.n 8005de2 - { - huart->ErrorCode |= HAL_UART_ERROR_NE; - 8005dd6: 687b ldr r3, [r7, #4] - 8005dd8: 6c5b ldr r3, [r3, #68] @ 0x44 - 8005dda: f043 0202 orr.w r2, r3, #2 - 8005dde: 687b ldr r3, [r7, #4] - 8005de0: 645a str r2, [r3, #68] @ 0x44 - } - - /* UART frame error interrupt occurred -----------------------------------*/ - if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) - 8005de2: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8005de6: f003 0302 and.w r3, r3, #2 - 8005dea: 2b00 cmp r3, #0 - 8005dec: d00b beq.n 8005e06 - 8005dee: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8005df2: f003 0301 and.w r3, r3, #1 - 8005df6: 2b00 cmp r3, #0 - 8005df8: d005 beq.n 8005e06 - { - huart->ErrorCode |= HAL_UART_ERROR_FE; - 8005dfa: 687b ldr r3, [r7, #4] - 8005dfc: 6c5b ldr r3, [r3, #68] @ 0x44 - 8005dfe: f043 0204 orr.w r2, r3, #4 - 8005e02: 687b ldr r3, [r7, #4] - 8005e04: 645a str r2, [r3, #68] @ 0x44 - } - - /* UART Over-Run interrupt occurred --------------------------------------*/ - if (((isrflags & USART_SR_ORE) != RESET) && (((cr1its & USART_CR1_RXNEIE) != RESET) - 8005e06: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8005e0a: f003 0308 and.w r3, r3, #8 - 8005e0e: 2b00 cmp r3, #0 - 8005e10: d011 beq.n 8005e36 - 8005e12: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8005e16: f003 0320 and.w r3, r3, #32 + 8005e12: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005e16: f003 0304 and.w r3, r3, #4 8005e1a: 2b00 cmp r3, #0 - 8005e1c: d105 bne.n 8005e2a - || ((cr3its & USART_CR3_EIE) != RESET))) + 8005e1c: d00b beq.n 8005e36 8005e1e: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc 8005e22: f003 0301 and.w r3, r3, #1 8005e26: 2b00 cmp r3, #0 - 8005e28: d005 beq.n 8005e36 + 8005e28: d005 beq.n 8005e36 { - huart->ErrorCode |= HAL_UART_ERROR_ORE; + huart->ErrorCode |= HAL_UART_ERROR_NE; 8005e2a: 687b ldr r3, [r7, #4] 8005e2c: 6c5b ldr r3, [r3, #68] @ 0x44 - 8005e2e: f043 0208 orr.w r2, r3, #8 + 8005e2e: f043 0202 orr.w r2, r3, #2 8005e32: 687b ldr r3, [r7, #4] 8005e34: 645a str r2, [r3, #68] @ 0x44 } + /* UART frame error interrupt occurred -----------------------------------*/ + if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) + 8005e36: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005e3a: f003 0302 and.w r3, r3, #2 + 8005e3e: 2b00 cmp r3, #0 + 8005e40: d00b beq.n 8005e5a + 8005e42: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8005e46: f003 0301 and.w r3, r3, #1 + 8005e4a: 2b00 cmp r3, #0 + 8005e4c: d005 beq.n 8005e5a + { + huart->ErrorCode |= HAL_UART_ERROR_FE; + 8005e4e: 687b ldr r3, [r7, #4] + 8005e50: 6c5b ldr r3, [r3, #68] @ 0x44 + 8005e52: f043 0204 orr.w r2, r3, #4 + 8005e56: 687b ldr r3, [r7, #4] + 8005e58: 645a str r2, [r3, #68] @ 0x44 + } + + /* UART Over-Run interrupt occurred --------------------------------------*/ + if (((isrflags & USART_SR_ORE) != RESET) && (((cr1its & USART_CR1_RXNEIE) != RESET) + 8005e5a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005e5e: f003 0308 and.w r3, r3, #8 + 8005e62: 2b00 cmp r3, #0 + 8005e64: d011 beq.n 8005e8a + 8005e66: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005e6a: f003 0320 and.w r3, r3, #32 + 8005e6e: 2b00 cmp r3, #0 + 8005e70: d105 bne.n 8005e7e + || ((cr3its & USART_CR3_EIE) != RESET))) + 8005e72: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8005e76: f003 0301 and.w r3, r3, #1 + 8005e7a: 2b00 cmp r3, #0 + 8005e7c: d005 beq.n 8005e8a + { + huart->ErrorCode |= HAL_UART_ERROR_ORE; + 8005e7e: 687b ldr r3, [r7, #4] + 8005e80: 6c5b ldr r3, [r3, #68] @ 0x44 + 8005e82: f043 0208 orr.w r2, r3, #8 + 8005e86: 687b ldr r3, [r7, #4] + 8005e88: 645a str r2, [r3, #68] @ 0x44 + } + /* Call UART Error Call back function if need be --------------------------*/ if (huart->ErrorCode != HAL_UART_ERROR_NONE) - 8005e36: 687b ldr r3, [r7, #4] - 8005e38: 6c5b ldr r3, [r3, #68] @ 0x44 - 8005e3a: 2b00 cmp r3, #0 - 8005e3c: f000 820a beq.w 8006254 + 8005e8a: 687b ldr r3, [r7, #4] + 8005e8c: 6c5b ldr r3, [r3, #68] @ 0x44 + 8005e8e: 2b00 cmp r3, #0 + 8005e90: f000 820a beq.w 80062a8 { /* UART in mode Receiver -----------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) - 8005e40: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8005e44: f003 0320 and.w r3, r3, #32 - 8005e48: 2b00 cmp r3, #0 - 8005e4a: d008 beq.n 8005e5e - 8005e4c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8005e50: f003 0320 and.w r3, r3, #32 - 8005e54: 2b00 cmp r3, #0 - 8005e56: d002 beq.n 8005e5e + 8005e94: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005e98: f003 0320 and.w r3, r3, #32 + 8005e9c: 2b00 cmp r3, #0 + 8005e9e: d008 beq.n 8005eb2 + 8005ea0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005ea4: f003 0320 and.w r3, r3, #32 + 8005ea8: 2b00 cmp r3, #0 + 8005eaa: d002 beq.n 8005eb2 { UART_Receive_IT(huart); - 8005e58: 6878 ldr r0, [r7, #4] - 8005e5a: f000 fd31 bl 80068c0 + 8005eac: 6878 ldr r0, [r7, #4] + 8005eae: f000 fd31 bl 8006914 } /* If Overrun error occurs, or if any error occurs in DMA mode reception, consider error as blocking */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR); - 8005e5e: 687b ldr r3, [r7, #4] - 8005e60: 681b ldr r3, [r3, #0] - 8005e62: 695b ldr r3, [r3, #20] - 8005e64: f003 0340 and.w r3, r3, #64 @ 0x40 - 8005e68: 2b40 cmp r3, #64 @ 0x40 - 8005e6a: bf0c ite eq - 8005e6c: 2301 moveq r3, #1 - 8005e6e: 2300 movne r3, #0 - 8005e70: b2db uxtb r3, r3 - 8005e72: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 + 8005eb2: 687b ldr r3, [r7, #4] + 8005eb4: 681b ldr r3, [r3, #0] + 8005eb6: 695b ldr r3, [r3, #20] + 8005eb8: f003 0340 and.w r3, r3, #64 @ 0x40 + 8005ebc: 2b40 cmp r3, #64 @ 0x40 + 8005ebe: bf0c ite eq + 8005ec0: 2301 moveq r3, #1 + 8005ec2: 2300 movne r3, #0 + 8005ec4: b2db uxtb r3, r3 + 8005ec6: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 if (((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest) - 8005e76: 687b ldr r3, [r7, #4] - 8005e78: 6c5b ldr r3, [r3, #68] @ 0x44 - 8005e7a: f003 0308 and.w r3, r3, #8 - 8005e7e: 2b00 cmp r3, #0 - 8005e80: d103 bne.n 8005e8a - 8005e82: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4 - 8005e86: 2b00 cmp r3, #0 - 8005e88: d04f beq.n 8005f2a + 8005eca: 687b ldr r3, [r7, #4] + 8005ecc: 6c5b ldr r3, [r3, #68] @ 0x44 + 8005ece: f003 0308 and.w r3, r3, #8 + 8005ed2: 2b00 cmp r3, #0 + 8005ed4: d103 bne.n 8005ede + 8005ed6: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4 + 8005eda: 2b00 cmp r3, #0 + 8005edc: d04f beq.n 8005f7e { /* Blocking error : transfer is aborted Set the UART state ready to be able to start again the process, Disable Rx Interrupts, and disable Rx DMA request, if ongoing */ UART_EndRxTransfer(huart); - 8005e8a: 6878 ldr r0, [r7, #4] - 8005e8c: f000 fc3c bl 8006708 + 8005ede: 6878 ldr r0, [r7, #4] + 8005ee0: f000 fc3c bl 800675c /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8005e90: 687b ldr r3, [r7, #4] - 8005e92: 681b ldr r3, [r3, #0] - 8005e94: 695b ldr r3, [r3, #20] - 8005e96: f003 0340 and.w r3, r3, #64 @ 0x40 - 8005e9a: 2b40 cmp r3, #64 @ 0x40 - 8005e9c: d141 bne.n 8005f22 + 8005ee4: 687b ldr r3, [r7, #4] + 8005ee6: 681b ldr r3, [r3, #0] + 8005ee8: 695b ldr r3, [r3, #20] + 8005eea: f003 0340 and.w r3, r3, #64 @ 0x40 + 8005eee: 2b40 cmp r3, #64 @ 0x40 + 8005ef0: d141 bne.n 8005f76 { ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - 8005e9e: 687b ldr r3, [r7, #4] - 8005ea0: 681b ldr r3, [r3, #0] - 8005ea2: 3314 adds r3, #20 - 8005ea4: f8c7 309c str.w r3, [r7, #156] @ 0x9c + 8005ef2: 687b ldr r3, [r7, #4] + 8005ef4: 681b ldr r3, [r3, #0] + 8005ef6: 3314 adds r3, #20 + 8005ef8: f8c7 309c str.w r3, [r7, #156] @ 0x9c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005ea8: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c - 8005eac: e853 3f00 ldrex r3, [r3] - 8005eb0: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 8005efc: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c + 8005f00: e853 3f00 ldrex r3, [r3] + 8005f04: f8c7 3098 str.w r3, [r7, #152] @ 0x98 return(result); - 8005eb4: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 - 8005eb8: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8005ebc: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 - 8005ec0: 687b ldr r3, [r7, #4] - 8005ec2: 681b ldr r3, [r3, #0] - 8005ec4: 3314 adds r3, #20 - 8005ec6: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0 - 8005eca: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8 - 8005ece: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 8005f08: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 + 8005f0c: f023 0340 bic.w r3, r3, #64 @ 0x40 + 8005f10: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 + 8005f14: 687b ldr r3, [r7, #4] + 8005f16: 681b ldr r3, [r3, #0] + 8005f18: 3314 adds r3, #20 + 8005f1a: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0 + 8005f1e: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8 + 8005f22: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005ed2: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4 - 8005ed6: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8 - 8005eda: e841 2300 strex r3, r2, [r1] - 8005ede: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 + 8005f26: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4 + 8005f2a: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8 + 8005f2e: e841 2300 strex r3, r2, [r1] + 8005f32: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 return(result); - 8005ee2: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 - 8005ee6: 2b00 cmp r3, #0 - 8005ee8: d1d9 bne.n 8005e9e + 8005f36: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 + 8005f3a: 2b00 cmp r3, #0 + 8005f3c: d1d9 bne.n 8005ef2 /* Abort the UART DMA Rx stream */ if (huart->hdmarx != NULL) - 8005eea: 687b ldr r3, [r7, #4] - 8005eec: 6bdb ldr r3, [r3, #60] @ 0x3c - 8005eee: 2b00 cmp r3, #0 - 8005ef0: d013 beq.n 8005f1a + 8005f3e: 687b ldr r3, [r7, #4] + 8005f40: 6bdb ldr r3, [r3, #60] @ 0x3c + 8005f42: 2b00 cmp r3, #0 + 8005f44: d013 beq.n 8005f6e { /* Set the UART DMA Abort callback : will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */ huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError; - 8005ef2: 687b ldr r3, [r7, #4] - 8005ef4: 6bdb ldr r3, [r3, #60] @ 0x3c - 8005ef6: 4a8a ldr r2, [pc, #552] @ (8006120 ) - 8005ef8: 651a str r2, [r3, #80] @ 0x50 + 8005f46: 687b ldr r3, [r7, #4] + 8005f48: 6bdb ldr r3, [r3, #60] @ 0x3c + 8005f4a: 4a8a ldr r2, [pc, #552] @ (8006174 ) + 8005f4c: 651a str r2, [r3, #80] @ 0x50 if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) - 8005efa: 687b ldr r3, [r7, #4] - 8005efc: 6bdb ldr r3, [r3, #60] @ 0x3c - 8005efe: 4618 mov r0, r3 - 8005f00: f7fc f8c2 bl 8002088 - 8005f04: 4603 mov r3, r0 - 8005f06: 2b00 cmp r3, #0 - 8005f08: d016 beq.n 8005f38 + 8005f4e: 687b ldr r3, [r7, #4] + 8005f50: 6bdb ldr r3, [r3, #60] @ 0x3c + 8005f52: 4618 mov r0, r3 + 8005f54: f7fc f8c2 bl 80020dc + 8005f58: 4603 mov r3, r0 + 8005f5a: 2b00 cmp r3, #0 + 8005f5c: d016 beq.n 8005f8c { /* Call Directly XferAbortCallback function in case of error */ huart->hdmarx->XferAbortCallback(huart->hdmarx); - 8005f0a: 687b ldr r3, [r7, #4] - 8005f0c: 6bdb ldr r3, [r3, #60] @ 0x3c - 8005f0e: 6d1b ldr r3, [r3, #80] @ 0x50 - 8005f10: 687a ldr r2, [r7, #4] - 8005f12: 6bd2 ldr r2, [r2, #60] @ 0x3c - 8005f14: 4610 mov r0, r2 - 8005f16: 4798 blx r3 + 8005f5e: 687b ldr r3, [r7, #4] + 8005f60: 6bdb ldr r3, [r3, #60] @ 0x3c + 8005f62: 6d1b ldr r3, [r3, #80] @ 0x50 + 8005f64: 687a ldr r2, [r7, #4] + 8005f66: 6bd2 ldr r2, [r2, #60] @ 0x3c + 8005f68: 4610 mov r0, r2 + 8005f6a: 4798 blx r3 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8005f18: e00e b.n 8005f38 + 8005f6c: e00e b.n 8005f8c #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 8005f1a: 6878 ldr r0, [r7, #4] - 8005f1c: f7fa fe1e bl 8000b5c + 8005f6e: 6878 ldr r0, [r7, #4] + 8005f70: f7fa fe06 bl 8000b80 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8005f20: e00a b.n 8005f38 + 8005f74: e00a b.n 8005f8c #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 8005f22: 6878 ldr r0, [r7, #4] - 8005f24: f7fa fe1a bl 8000b5c + 8005f76: 6878 ldr r0, [r7, #4] + 8005f78: f7fa fe02 bl 8000b80 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8005f28: e006 b.n 8005f38 + 8005f7c: e006 b.n 8005f8c #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 8005f2a: 6878 ldr r0, [r7, #4] - 8005f2c: f7fa fe16 bl 8000b5c + 8005f7e: 6878 ldr r0, [r7, #4] + 8005f80: f7fa fdfe bl 8000b80 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 8005f30: 687b ldr r3, [r7, #4] - 8005f32: 2200 movs r2, #0 - 8005f34: 645a str r2, [r3, #68] @ 0x44 + 8005f84: 687b ldr r3, [r7, #4] + 8005f86: 2200 movs r2, #0 + 8005f88: 645a str r2, [r3, #68] @ 0x44 } } return; - 8005f36: e18d b.n 8006254 + 8005f8a: e18d b.n 80062a8 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8005f38: bf00 nop + 8005f8c: bf00 nop return; - 8005f3a: e18b b.n 8006254 + 8005f8e: e18b b.n 80062a8 } /* End if some error occurs */ /* Check current reception Mode : If Reception till IDLE event has been selected : */ if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8005f3c: 687b ldr r3, [r7, #4] - 8005f3e: 6b1b ldr r3, [r3, #48] @ 0x30 - 8005f40: 2b01 cmp r3, #1 - 8005f42: f040 8167 bne.w 8006214 + 8005f90: 687b ldr r3, [r7, #4] + 8005f92: 6b1b ldr r3, [r3, #48] @ 0x30 + 8005f94: 2b01 cmp r3, #1 + 8005f96: f040 8167 bne.w 8006268 && ((isrflags & USART_SR_IDLE) != 0U) - 8005f46: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8005f4a: f003 0310 and.w r3, r3, #16 - 8005f4e: 2b00 cmp r3, #0 - 8005f50: f000 8160 beq.w 8006214 + 8005f9a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8005f9e: f003 0310 and.w r3, r3, #16 + 8005fa2: 2b00 cmp r3, #0 + 8005fa4: f000 8160 beq.w 8006268 && ((cr1its & USART_CR1_IDLEIE) != 0U)) - 8005f54: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8005f58: f003 0310 and.w r3, r3, #16 - 8005f5c: 2b00 cmp r3, #0 - 8005f5e: f000 8159 beq.w 8006214 + 8005fa8: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8005fac: f003 0310 and.w r3, r3, #16 + 8005fb0: 2b00 cmp r3, #0 + 8005fb2: f000 8159 beq.w 8006268 { __HAL_UART_CLEAR_IDLEFLAG(huart); - 8005f62: 2300 movs r3, #0 - 8005f64: 60bb str r3, [r7, #8] - 8005f66: 687b ldr r3, [r7, #4] - 8005f68: 681b ldr r3, [r3, #0] - 8005f6a: 681b ldr r3, [r3, #0] - 8005f6c: 60bb str r3, [r7, #8] - 8005f6e: 687b ldr r3, [r7, #4] - 8005f70: 681b ldr r3, [r3, #0] - 8005f72: 685b ldr r3, [r3, #4] - 8005f74: 60bb str r3, [r7, #8] - 8005f76: 68bb ldr r3, [r7, #8] + 8005fb6: 2300 movs r3, #0 + 8005fb8: 60bb str r3, [r7, #8] + 8005fba: 687b ldr r3, [r7, #4] + 8005fbc: 681b ldr r3, [r3, #0] + 8005fbe: 681b ldr r3, [r3, #0] + 8005fc0: 60bb str r3, [r7, #8] + 8005fc2: 687b ldr r3, [r7, #4] + 8005fc4: 681b ldr r3, [r3, #0] + 8005fc6: 685b ldr r3, [r3, #4] + 8005fc8: 60bb str r3, [r7, #8] + 8005fca: 68bb ldr r3, [r7, #8] /* Check if DMA mode is enabled in UART */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8005f78: 687b ldr r3, [r7, #4] - 8005f7a: 681b ldr r3, [r3, #0] - 8005f7c: 695b ldr r3, [r3, #20] - 8005f7e: f003 0340 and.w r3, r3, #64 @ 0x40 - 8005f82: 2b40 cmp r3, #64 @ 0x40 - 8005f84: f040 80ce bne.w 8006124 + 8005fcc: 687b ldr r3, [r7, #4] + 8005fce: 681b ldr r3, [r3, #0] + 8005fd0: 695b ldr r3, [r3, #20] + 8005fd2: f003 0340 and.w r3, r3, #64 @ 0x40 + 8005fd6: 2b40 cmp r3, #64 @ 0x40 + 8005fd8: f040 80ce bne.w 8006178 { /* DMA mode enabled */ /* Check received length : If all expected data are received, do nothing, (DMA cplt callback will be called). Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ uint16_t nb_remaining_rx_data = (uint16_t) __HAL_DMA_GET_COUNTER(huart->hdmarx); - 8005f88: 687b ldr r3, [r7, #4] - 8005f8a: 6bdb ldr r3, [r3, #60] @ 0x3c - 8005f8c: 681b ldr r3, [r3, #0] - 8005f8e: 685b ldr r3, [r3, #4] - 8005f90: f8a7 30be strh.w r3, [r7, #190] @ 0xbe + 8005fdc: 687b ldr r3, [r7, #4] + 8005fde: 6bdb ldr r3, [r3, #60] @ 0x3c + 8005fe0: 681b ldr r3, [r3, #0] + 8005fe2: 685b ldr r3, [r3, #4] + 8005fe4: f8a7 30be strh.w r3, [r7, #190] @ 0xbe if ((nb_remaining_rx_data > 0U) - 8005f94: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe - 8005f98: 2b00 cmp r3, #0 - 8005f9a: f000 80a9 beq.w 80060f0 + 8005fe8: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe + 8005fec: 2b00 cmp r3, #0 + 8005fee: f000 80a9 beq.w 8006144 && (nb_remaining_rx_data < huart->RxXferSize)) - 8005f9e: 687b ldr r3, [r7, #4] - 8005fa0: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8005fa2: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 8005fa6: 429a cmp r2, r3 - 8005fa8: f080 80a2 bcs.w 80060f0 + 8005ff2: 687b ldr r3, [r7, #4] + 8005ff4: 8d9b ldrh r3, [r3, #44] @ 0x2c + 8005ff6: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 8005ffa: 429a cmp r2, r3 + 8005ffc: f080 80a2 bcs.w 8006144 { /* Reception is not complete */ huart->RxXferCount = nb_remaining_rx_data; - 8005fac: 687b ldr r3, [r7, #4] - 8005fae: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 8005fb2: 85da strh r2, [r3, #46] @ 0x2e + 8006000: 687b ldr r3, [r7, #4] + 8006002: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 8006006: 85da strh r2, [r3, #46] @ 0x2e /* In Normal mode, end DMA xfer and HAL UART Rx process*/ if (huart->hdmarx->Init.Mode != DMA_CIRCULAR) - 8005fb4: 687b ldr r3, [r7, #4] - 8005fb6: 6bdb ldr r3, [r3, #60] @ 0x3c - 8005fb8: 69db ldr r3, [r3, #28] - 8005fba: f5b3 7f80 cmp.w r3, #256 @ 0x100 - 8005fbe: f000 8088 beq.w 80060d2 + 8006008: 687b ldr r3, [r7, #4] + 800600a: 6bdb ldr r3, [r3, #60] @ 0x3c + 800600c: 69db ldr r3, [r3, #28] + 800600e: f5b3 7f80 cmp.w r3, #256 @ 0x100 + 8006012: f000 8088 beq.w 8006126 { /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - 8005fc2: 687b ldr r3, [r7, #4] - 8005fc4: 681b ldr r3, [r3, #0] - 8005fc6: 330c adds r3, #12 - 8005fc8: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 8006016: 687b ldr r3, [r7, #4] + 8006018: 681b ldr r3, [r3, #0] + 800601a: 330c adds r3, #12 + 800601c: f8c7 3088 str.w r3, [r7, #136] @ 0x88 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8005fcc: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 - 8005fd0: e853 3f00 ldrex r3, [r3] - 8005fd4: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + 8006020: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 + 8006024: e853 3f00 ldrex r3, [r3] + 8006028: f8c7 3084 str.w r3, [r7, #132] @ 0x84 return(result); - 8005fd8: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 - 8005fdc: f423 7380 bic.w r3, r3, #256 @ 0x100 - 8005fe0: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 - 8005fe4: 687b ldr r3, [r7, #4] - 8005fe6: 681b ldr r3, [r3, #0] - 8005fe8: 330c adds r3, #12 - 8005fea: f8d7 20b8 ldr.w r2, [r7, #184] @ 0xb8 - 8005fee: f8c7 2094 str.w r2, [r7, #148] @ 0x94 - 8005ff2: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 800602c: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 8006030: f423 7380 bic.w r3, r3, #256 @ 0x100 + 8006034: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 + 8006038: 687b ldr r3, [r7, #4] + 800603a: 681b ldr r3, [r3, #0] + 800603c: 330c adds r3, #12 + 800603e: f8d7 20b8 ldr.w r2, [r7, #184] @ 0xb8 + 8006042: f8c7 2094 str.w r2, [r7, #148] @ 0x94 + 8006046: f8c7 3090 str.w r3, [r7, #144] @ 0x90 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8005ff6: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90 - 8005ffa: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 - 8005ffe: e841 2300 strex r3, r2, [r1] - 8006002: f8c7 308c str.w r3, [r7, #140] @ 0x8c + 800604a: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90 + 800604e: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 + 8006052: e841 2300 strex r3, r2, [r1] + 8006056: f8c7 308c str.w r3, [r7, #140] @ 0x8c return(result); - 8006006: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c - 800600a: 2b00 cmp r3, #0 - 800600c: d1d9 bne.n 8005fc2 + 800605a: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c + 800605e: 2b00 cmp r3, #0 + 8006060: d1d9 bne.n 8006016 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 800600e: 687b ldr r3, [r7, #4] - 8006010: 681b ldr r3, [r3, #0] - 8006012: 3314 adds r3, #20 - 8006014: 677b str r3, [r7, #116] @ 0x74 + 8006062: 687b ldr r3, [r7, #4] + 8006064: 681b ldr r3, [r3, #0] + 8006066: 3314 adds r3, #20 + 8006068: 677b str r3, [r7, #116] @ 0x74 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006016: 6f7b ldr r3, [r7, #116] @ 0x74 - 8006018: e853 3f00 ldrex r3, [r3] - 800601c: 673b str r3, [r7, #112] @ 0x70 + 800606a: 6f7b ldr r3, [r7, #116] @ 0x74 + 800606c: e853 3f00 ldrex r3, [r3] + 8006070: 673b str r3, [r7, #112] @ 0x70 return(result); - 800601e: 6f3b ldr r3, [r7, #112] @ 0x70 - 8006020: f023 0301 bic.w r3, r3, #1 - 8006024: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 8006028: 687b ldr r3, [r7, #4] - 800602a: 681b ldr r3, [r3, #0] - 800602c: 3314 adds r3, #20 - 800602e: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 - 8006032: f8c7 2080 str.w r2, [r7, #128] @ 0x80 - 8006036: 67fb str r3, [r7, #124] @ 0x7c + 8006072: 6f3b ldr r3, [r7, #112] @ 0x70 + 8006074: f023 0301 bic.w r3, r3, #1 + 8006078: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 800607c: 687b ldr r3, [r7, #4] + 800607e: 681b ldr r3, [r3, #0] + 8006080: 3314 adds r3, #20 + 8006082: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 + 8006086: f8c7 2080 str.w r2, [r7, #128] @ 0x80 + 800608a: 67fb str r3, [r7, #124] @ 0x7c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006038: 6ff9 ldr r1, [r7, #124] @ 0x7c - 800603a: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 - 800603e: e841 2300 strex r3, r2, [r1] - 8006042: 67bb str r3, [r7, #120] @ 0x78 + 800608c: 6ff9 ldr r1, [r7, #124] @ 0x7c + 800608e: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 + 8006092: e841 2300 strex r3, r2, [r1] + 8006096: 67bb str r3, [r7, #120] @ 0x78 return(result); - 8006044: 6fbb ldr r3, [r7, #120] @ 0x78 - 8006046: 2b00 cmp r3, #0 - 8006048: d1e1 bne.n 800600e + 8006098: 6fbb ldr r3, [r7, #120] @ 0x78 + 800609a: 2b00 cmp r3, #0 + 800609c: d1e1 bne.n 8006062 /* Disable the DMA transfer for the receiver request by resetting the DMAR bit in the UART CR3 register */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - 800604a: 687b ldr r3, [r7, #4] - 800604c: 681b ldr r3, [r3, #0] - 800604e: 3314 adds r3, #20 - 8006050: 663b str r3, [r7, #96] @ 0x60 + 800609e: 687b ldr r3, [r7, #4] + 80060a0: 681b ldr r3, [r3, #0] + 80060a2: 3314 adds r3, #20 + 80060a4: 663b str r3, [r7, #96] @ 0x60 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006052: 6e3b ldr r3, [r7, #96] @ 0x60 - 8006054: e853 3f00 ldrex r3, [r3] - 8006058: 65fb str r3, [r7, #92] @ 0x5c + 80060a6: 6e3b ldr r3, [r7, #96] @ 0x60 + 80060a8: e853 3f00 ldrex r3, [r3] + 80060ac: 65fb str r3, [r7, #92] @ 0x5c return(result); - 800605a: 6dfb ldr r3, [r7, #92] @ 0x5c - 800605c: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8006060: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - 8006064: 687b ldr r3, [r7, #4] - 8006066: 681b ldr r3, [r3, #0] - 8006068: 3314 adds r3, #20 - 800606a: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0 - 800606e: 66fa str r2, [r7, #108] @ 0x6c - 8006070: 66bb str r3, [r7, #104] @ 0x68 + 80060ae: 6dfb ldr r3, [r7, #92] @ 0x5c + 80060b0: f023 0340 bic.w r3, r3, #64 @ 0x40 + 80060b4: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 80060b8: 687b ldr r3, [r7, #4] + 80060ba: 681b ldr r3, [r3, #0] + 80060bc: 3314 adds r3, #20 + 80060be: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0 + 80060c2: 66fa str r2, [r7, #108] @ 0x6c + 80060c4: 66bb str r3, [r7, #104] @ 0x68 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006072: 6eb9 ldr r1, [r7, #104] @ 0x68 - 8006074: 6efa ldr r2, [r7, #108] @ 0x6c - 8006076: e841 2300 strex r3, r2, [r1] - 800607a: 667b str r3, [r7, #100] @ 0x64 + 80060c6: 6eb9 ldr r1, [r7, #104] @ 0x68 + 80060c8: 6efa ldr r2, [r7, #108] @ 0x6c + 80060ca: e841 2300 strex r3, r2, [r1] + 80060ce: 667b str r3, [r7, #100] @ 0x64 return(result); - 800607c: 6e7b ldr r3, [r7, #100] @ 0x64 - 800607e: 2b00 cmp r3, #0 - 8006080: d1e3 bne.n 800604a + 80060d0: 6e7b ldr r3, [r7, #100] @ 0x64 + 80060d2: 2b00 cmp r3, #0 + 80060d4: d1e3 bne.n 800609e /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8006082: 687b ldr r3, [r7, #4] - 8006084: 2220 movs r2, #32 - 8006086: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80060d6: 687b ldr r3, [r7, #4] + 80060d8: 2220 movs r2, #32 + 80060da: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 800608a: 687b ldr r3, [r7, #4] - 800608c: 2200 movs r2, #0 - 800608e: 631a str r2, [r3, #48] @ 0x30 + 80060de: 687b ldr r3, [r7, #4] + 80060e0: 2200 movs r2, #0 + 80060e2: 631a str r2, [r3, #48] @ 0x30 ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8006090: 687b ldr r3, [r7, #4] - 8006092: 681b ldr r3, [r3, #0] - 8006094: 330c adds r3, #12 - 8006096: 64fb str r3, [r7, #76] @ 0x4c + 80060e4: 687b ldr r3, [r7, #4] + 80060e6: 681b ldr r3, [r3, #0] + 80060e8: 330c adds r3, #12 + 80060ea: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006098: 6cfb ldr r3, [r7, #76] @ 0x4c - 800609a: e853 3f00 ldrex r3, [r3] - 800609e: 64bb str r3, [r7, #72] @ 0x48 + 80060ec: 6cfb ldr r3, [r7, #76] @ 0x4c + 80060ee: e853 3f00 ldrex r3, [r3] + 80060f2: 64bb str r3, [r7, #72] @ 0x48 return(result); - 80060a0: 6cbb ldr r3, [r7, #72] @ 0x48 - 80060a2: f023 0310 bic.w r3, r3, #16 - 80060a6: f8c7 30ac str.w r3, [r7, #172] @ 0xac - 80060aa: 687b ldr r3, [r7, #4] - 80060ac: 681b ldr r3, [r3, #0] - 80060ae: 330c adds r3, #12 - 80060b0: f8d7 20ac ldr.w r2, [r7, #172] @ 0xac - 80060b4: 65ba str r2, [r7, #88] @ 0x58 - 80060b6: 657b str r3, [r7, #84] @ 0x54 + 80060f4: 6cbb ldr r3, [r7, #72] @ 0x48 + 80060f6: f023 0310 bic.w r3, r3, #16 + 80060fa: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 80060fe: 687b ldr r3, [r7, #4] + 8006100: 681b ldr r3, [r3, #0] + 8006102: 330c adds r3, #12 + 8006104: f8d7 20ac ldr.w r2, [r7, #172] @ 0xac + 8006108: 65ba str r2, [r7, #88] @ 0x58 + 800610a: 657b str r3, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80060b8: 6d79 ldr r1, [r7, #84] @ 0x54 - 80060ba: 6dba ldr r2, [r7, #88] @ 0x58 - 80060bc: e841 2300 strex r3, r2, [r1] - 80060c0: 653b str r3, [r7, #80] @ 0x50 + 800610c: 6d79 ldr r1, [r7, #84] @ 0x54 + 800610e: 6dba ldr r2, [r7, #88] @ 0x58 + 8006110: e841 2300 strex r3, r2, [r1] + 8006114: 653b str r3, [r7, #80] @ 0x50 return(result); - 80060c2: 6d3b ldr r3, [r7, #80] @ 0x50 - 80060c4: 2b00 cmp r3, #0 - 80060c6: d1e3 bne.n 8006090 + 8006116: 6d3b ldr r3, [r7, #80] @ 0x50 + 8006118: 2b00 cmp r3, #0 + 800611a: d1e3 bne.n 80060e4 /* Last bytes received, so no need as the abort is immediate */ (void)HAL_DMA_Abort(huart->hdmarx); - 80060c8: 687b ldr r3, [r7, #4] - 80060ca: 6bdb ldr r3, [r3, #60] @ 0x3c - 80060cc: 4618 mov r0, r3 - 80060ce: f7fb ff6b bl 8001fa8 + 800611c: 687b ldr r3, [r7, #4] + 800611e: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006120: 4618 mov r0, r3 + 8006122: f7fb ff6b bl 8001ffc } /* Initialize type of RxEvent that correspond to RxEvent callback execution; In this case, Rx Event type is Idle Event */ huart->RxEventType = HAL_UART_RXEVENT_IDLE; - 80060d2: 687b ldr r3, [r7, #4] - 80060d4: 2202 movs r2, #2 - 80060d6: 635a str r2, [r3, #52] @ 0x34 + 8006126: 687b ldr r3, [r7, #4] + 8006128: 2202 movs r2, #2 + 800612a: 635a str r2, [r3, #52] @ 0x34 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, (huart->RxXferSize - huart->RxXferCount)); - 80060d8: 687b ldr r3, [r7, #4] - 80060da: 8d9a ldrh r2, [r3, #44] @ 0x2c - 80060dc: 687b ldr r3, [r7, #4] - 80060de: 8ddb ldrh r3, [r3, #46] @ 0x2e - 80060e0: b29b uxth r3, r3 - 80060e2: 1ad3 subs r3, r2, r3 - 80060e4: b29b uxth r3, r3 - 80060e6: 4619 mov r1, r3 - 80060e8: 6878 ldr r0, [r7, #4] - 80060ea: f000 f8d9 bl 80062a0 + 800612c: 687b ldr r3, [r7, #4] + 800612e: 8d9a ldrh r2, [r3, #44] @ 0x2c + 8006130: 687b ldr r3, [r7, #4] + 8006132: 8ddb ldrh r3, [r3, #46] @ 0x2e + 8006134: b29b uxth r3, r3 + 8006136: 1ad3 subs r3, r2, r3 + 8006138: b29b uxth r3, r3 + 800613a: 4619 mov r1, r3 + 800613c: 6878 ldr r0, [r7, #4] + 800613e: f000 f8d9 bl 80062f4 HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } } } return; - 80060ee: e0b3 b.n 8006258 + 8006142: e0b3 b.n 80062ac if (nb_remaining_rx_data == huart->RxXferSize) - 80060f0: 687b ldr r3, [r7, #4] - 80060f2: 8d9b ldrh r3, [r3, #44] @ 0x2c - 80060f4: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 80060f8: 429a cmp r2, r3 - 80060fa: f040 80ad bne.w 8006258 + 8006144: 687b ldr r3, [r7, #4] + 8006146: 8d9b ldrh r3, [r3, #44] @ 0x2c + 8006148: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 800614c: 429a cmp r2, r3 + 800614e: f040 80ad bne.w 80062ac if (huart->hdmarx->Init.Mode == DMA_CIRCULAR) - 80060fe: 687b ldr r3, [r7, #4] - 8006100: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006102: 69db ldr r3, [r3, #28] - 8006104: f5b3 7f80 cmp.w r3, #256 @ 0x100 - 8006108: f040 80a6 bne.w 8006258 + 8006152: 687b ldr r3, [r7, #4] + 8006154: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006156: 69db ldr r3, [r3, #28] + 8006158: f5b3 7f80 cmp.w r3, #256 @ 0x100 + 800615c: f040 80a6 bne.w 80062ac huart->RxEventType = HAL_UART_RXEVENT_IDLE; - 800610c: 687b ldr r3, [r7, #4] - 800610e: 2202 movs r2, #2 - 8006110: 635a str r2, [r3, #52] @ 0x34 + 8006160: 687b ldr r3, [r7, #4] + 8006162: 2202 movs r2, #2 + 8006164: 635a str r2, [r3, #52] @ 0x34 HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); - 8006112: 687b ldr r3, [r7, #4] - 8006114: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8006116: 4619 mov r1, r3 - 8006118: 6878 ldr r0, [r7, #4] - 800611a: f000 f8c1 bl 80062a0 + 8006166: 687b ldr r3, [r7, #4] + 8006168: 8d9b ldrh r3, [r3, #44] @ 0x2c + 800616a: 4619 mov r1, r3 + 800616c: 6878 ldr r0, [r7, #4] + 800616e: f000 f8c1 bl 80062f4 return; - 800611e: e09b b.n 8006258 - 8006120: 080067cf .word 0x080067cf + 8006172: e09b b.n 80062ac + 8006174: 08006823 .word 0x08006823 else { /* DMA mode not enabled */ /* Check received length : If all expected data are received, do nothing. Otherwise, if at least one data has already been received, IDLE event is to be notified to user */ uint16_t nb_rx_data = huart->RxXferSize - huart->RxXferCount; - 8006124: 687b ldr r3, [r7, #4] - 8006126: 8d9a ldrh r2, [r3, #44] @ 0x2c - 8006128: 687b ldr r3, [r7, #4] - 800612a: 8ddb ldrh r3, [r3, #46] @ 0x2e - 800612c: b29b uxth r3, r3 - 800612e: 1ad3 subs r3, r2, r3 - 8006130: f8a7 30ce strh.w r3, [r7, #206] @ 0xce + 8006178: 687b ldr r3, [r7, #4] + 800617a: 8d9a ldrh r2, [r3, #44] @ 0x2c + 800617c: 687b ldr r3, [r7, #4] + 800617e: 8ddb ldrh r3, [r3, #46] @ 0x2e + 8006180: b29b uxth r3, r3 + 8006182: 1ad3 subs r3, r2, r3 + 8006184: f8a7 30ce strh.w r3, [r7, #206] @ 0xce if ((huart->RxXferCount > 0U) - 8006134: 687b ldr r3, [r7, #4] - 8006136: 8ddb ldrh r3, [r3, #46] @ 0x2e - 8006138: b29b uxth r3, r3 - 800613a: 2b00 cmp r3, #0 - 800613c: f000 808e beq.w 800625c + 8006188: 687b ldr r3, [r7, #4] + 800618a: 8ddb ldrh r3, [r3, #46] @ 0x2e + 800618c: b29b uxth r3, r3 + 800618e: 2b00 cmp r3, #0 + 8006190: f000 808e beq.w 80062b0 && (nb_rx_data > 0U)) - 8006140: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce - 8006144: 2b00 cmp r3, #0 - 8006146: f000 8089 beq.w 800625c + 8006194: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce + 8006198: 2b00 cmp r3, #0 + 800619a: f000 8089 beq.w 80062b0 { /* Disable the UART Parity Error Interrupt and RXNE interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); - 800614a: 687b ldr r3, [r7, #4] - 800614c: 681b ldr r3, [r3, #0] - 800614e: 330c adds r3, #12 - 8006150: 63bb str r3, [r7, #56] @ 0x38 + 800619e: 687b ldr r3, [r7, #4] + 80061a0: 681b ldr r3, [r3, #0] + 80061a2: 330c adds r3, #12 + 80061a4: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006152: 6bbb ldr r3, [r7, #56] @ 0x38 - 8006154: e853 3f00 ldrex r3, [r3] - 8006158: 637b str r3, [r7, #52] @ 0x34 + 80061a6: 6bbb ldr r3, [r7, #56] @ 0x38 + 80061a8: e853 3f00 ldrex r3, [r3] + 80061ac: 637b str r3, [r7, #52] @ 0x34 return(result); - 800615a: 6b7b ldr r3, [r7, #52] @ 0x34 - 800615c: f423 7390 bic.w r3, r3, #288 @ 0x120 - 8006160: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 - 8006164: 687b ldr r3, [r7, #4] - 8006166: 681b ldr r3, [r3, #0] - 8006168: 330c adds r3, #12 - 800616a: f8d7 20c8 ldr.w r2, [r7, #200] @ 0xc8 - 800616e: 647a str r2, [r7, #68] @ 0x44 - 8006170: 643b str r3, [r7, #64] @ 0x40 + 80061ae: 6b7b ldr r3, [r7, #52] @ 0x34 + 80061b0: f423 7390 bic.w r3, r3, #288 @ 0x120 + 80061b4: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 + 80061b8: 687b ldr r3, [r7, #4] + 80061ba: 681b ldr r3, [r3, #0] + 80061bc: 330c adds r3, #12 + 80061be: f8d7 20c8 ldr.w r2, [r7, #200] @ 0xc8 + 80061c2: 647a str r2, [r7, #68] @ 0x44 + 80061c4: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006172: 6c39 ldr r1, [r7, #64] @ 0x40 - 8006174: 6c7a ldr r2, [r7, #68] @ 0x44 - 8006176: e841 2300 strex r3, r2, [r1] - 800617a: 63fb str r3, [r7, #60] @ 0x3c + 80061c6: 6c39 ldr r1, [r7, #64] @ 0x40 + 80061c8: 6c7a ldr r2, [r7, #68] @ 0x44 + 80061ca: e841 2300 strex r3, r2, [r1] + 80061ce: 63fb str r3, [r7, #60] @ 0x3c return(result); - 800617c: 6bfb ldr r3, [r7, #60] @ 0x3c - 800617e: 2b00 cmp r3, #0 - 8006180: d1e3 bne.n 800614a + 80061d0: 6bfb ldr r3, [r7, #60] @ 0x3c + 80061d2: 2b00 cmp r3, #0 + 80061d4: d1e3 bne.n 800619e /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8006182: 687b ldr r3, [r7, #4] - 8006184: 681b ldr r3, [r3, #0] - 8006186: 3314 adds r3, #20 - 8006188: 627b str r3, [r7, #36] @ 0x24 + 80061d6: 687b ldr r3, [r7, #4] + 80061d8: 681b ldr r3, [r3, #0] + 80061da: 3314 adds r3, #20 + 80061dc: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800618a: 6a7b ldr r3, [r7, #36] @ 0x24 - 800618c: e853 3f00 ldrex r3, [r3] - 8006190: 623b str r3, [r7, #32] + 80061de: 6a7b ldr r3, [r7, #36] @ 0x24 + 80061e0: e853 3f00 ldrex r3, [r3] + 80061e4: 623b str r3, [r7, #32] return(result); - 8006192: 6a3b ldr r3, [r7, #32] - 8006194: f023 0301 bic.w r3, r3, #1 - 8006198: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4 - 800619c: 687b ldr r3, [r7, #4] - 800619e: 681b ldr r3, [r3, #0] - 80061a0: 3314 adds r3, #20 - 80061a2: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4 - 80061a6: 633a str r2, [r7, #48] @ 0x30 - 80061a8: 62fb str r3, [r7, #44] @ 0x2c + 80061e6: 6a3b ldr r3, [r7, #32] + 80061e8: f023 0301 bic.w r3, r3, #1 + 80061ec: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4 + 80061f0: 687b ldr r3, [r7, #4] + 80061f2: 681b ldr r3, [r3, #0] + 80061f4: 3314 adds r3, #20 + 80061f6: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4 + 80061fa: 633a str r2, [r7, #48] @ 0x30 + 80061fc: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80061aa: 6af9 ldr r1, [r7, #44] @ 0x2c - 80061ac: 6b3a ldr r2, [r7, #48] @ 0x30 - 80061ae: e841 2300 strex r3, r2, [r1] - 80061b2: 62bb str r3, [r7, #40] @ 0x28 + 80061fe: 6af9 ldr r1, [r7, #44] @ 0x2c + 8006200: 6b3a ldr r2, [r7, #48] @ 0x30 + 8006202: e841 2300 strex r3, r2, [r1] + 8006206: 62bb str r3, [r7, #40] @ 0x28 return(result); - 80061b4: 6abb ldr r3, [r7, #40] @ 0x28 - 80061b6: 2b00 cmp r3, #0 - 80061b8: d1e3 bne.n 8006182 + 8006208: 6abb ldr r3, [r7, #40] @ 0x28 + 800620a: 2b00 cmp r3, #0 + 800620c: d1e3 bne.n 80061d6 /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 80061ba: 687b ldr r3, [r7, #4] - 80061bc: 2220 movs r2, #32 - 80061be: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 800620e: 687b ldr r3, [r7, #4] + 8006210: 2220 movs r2, #32 + 8006212: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 80061c2: 687b ldr r3, [r7, #4] - 80061c4: 2200 movs r2, #0 - 80061c6: 631a str r2, [r3, #48] @ 0x30 + 8006216: 687b ldr r3, [r7, #4] + 8006218: 2200 movs r2, #0 + 800621a: 631a str r2, [r3, #48] @ 0x30 ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 80061c8: 687b ldr r3, [r7, #4] - 80061ca: 681b ldr r3, [r3, #0] - 80061cc: 330c adds r3, #12 - 80061ce: 613b str r3, [r7, #16] + 800621c: 687b ldr r3, [r7, #4] + 800621e: 681b ldr r3, [r3, #0] + 8006220: 330c adds r3, #12 + 8006222: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80061d0: 693b ldr r3, [r7, #16] - 80061d2: e853 3f00 ldrex r3, [r3] - 80061d6: 60fb str r3, [r7, #12] + 8006224: 693b ldr r3, [r7, #16] + 8006226: e853 3f00 ldrex r3, [r3] + 800622a: 60fb str r3, [r7, #12] return(result); - 80061d8: 68fb ldr r3, [r7, #12] - 80061da: f023 0310 bic.w r3, r3, #16 - 80061de: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 - 80061e2: 687b ldr r3, [r7, #4] - 80061e4: 681b ldr r3, [r3, #0] - 80061e6: 330c adds r3, #12 - 80061e8: f8d7 20c0 ldr.w r2, [r7, #192] @ 0xc0 - 80061ec: 61fa str r2, [r7, #28] - 80061ee: 61bb str r3, [r7, #24] + 800622c: 68fb ldr r3, [r7, #12] + 800622e: f023 0310 bic.w r3, r3, #16 + 8006232: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 + 8006236: 687b ldr r3, [r7, #4] + 8006238: 681b ldr r3, [r3, #0] + 800623a: 330c adds r3, #12 + 800623c: f8d7 20c0 ldr.w r2, [r7, #192] @ 0xc0 + 8006240: 61fa str r2, [r7, #28] + 8006242: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80061f0: 69b9 ldr r1, [r7, #24] - 80061f2: 69fa ldr r2, [r7, #28] - 80061f4: e841 2300 strex r3, r2, [r1] - 80061f8: 617b str r3, [r7, #20] + 8006244: 69b9 ldr r1, [r7, #24] + 8006246: 69fa ldr r2, [r7, #28] + 8006248: e841 2300 strex r3, r2, [r1] + 800624c: 617b str r3, [r7, #20] return(result); - 80061fa: 697b ldr r3, [r7, #20] - 80061fc: 2b00 cmp r3, #0 - 80061fe: d1e3 bne.n 80061c8 + 800624e: 697b ldr r3, [r7, #20] + 8006250: 2b00 cmp r3, #0 + 8006252: d1e3 bne.n 800621c /* Initialize type of RxEvent that correspond to RxEvent callback execution; In this case, Rx Event type is Idle Event */ huart->RxEventType = HAL_UART_RXEVENT_IDLE; - 8006200: 687b ldr r3, [r7, #4] - 8006202: 2202 movs r2, #2 - 8006204: 635a str r2, [r3, #52] @ 0x34 + 8006254: 687b ldr r3, [r7, #4] + 8006256: 2202 movs r2, #2 + 8006258: 635a str r2, [r3, #52] @ 0x34 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx complete callback*/ huart->RxEventCallback(huart, nb_rx_data); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, nb_rx_data); - 8006206: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce - 800620a: 4619 mov r1, r3 - 800620c: 6878 ldr r0, [r7, #4] - 800620e: f000 f847 bl 80062a0 + 800625a: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce + 800625e: 4619 mov r1, r3 + 8006260: 6878 ldr r0, [r7, #4] + 8006262: f000 f847 bl 80062f4 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return; - 8006212: e023 b.n 800625c + 8006266: e023 b.n 80062b0 } } /* UART in mode Transmitter ------------------------------------------------*/ if (((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET)) - 8006214: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006218: f003 0380 and.w r3, r3, #128 @ 0x80 - 800621c: 2b00 cmp r3, #0 - 800621e: d009 beq.n 8006234 - 8006220: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006224: f003 0380 and.w r3, r3, #128 @ 0x80 - 8006228: 2b00 cmp r3, #0 - 800622a: d003 beq.n 8006234 + 8006268: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 800626c: f003 0380 and.w r3, r3, #128 @ 0x80 + 8006270: 2b00 cmp r3, #0 + 8006272: d009 beq.n 8006288 + 8006274: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8006278: f003 0380 and.w r3, r3, #128 @ 0x80 + 800627c: 2b00 cmp r3, #0 + 800627e: d003 beq.n 8006288 { UART_Transmit_IT(huart); - 800622c: 6878 ldr r0, [r7, #4] - 800622e: f000 fadf bl 80067f0 + 8006280: 6878 ldr r0, [r7, #4] + 8006282: f000 fadf bl 8006844 return; - 8006232: e014 b.n 800625e + 8006286: e014 b.n 80062b2 } /* UART in mode Transmitter end --------------------------------------------*/ if (((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET)) - 8006234: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006238: f003 0340 and.w r3, r3, #64 @ 0x40 - 800623c: 2b00 cmp r3, #0 - 800623e: d00e beq.n 800625e - 8006240: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006244: f003 0340 and.w r3, r3, #64 @ 0x40 - 8006248: 2b00 cmp r3, #0 - 800624a: d008 beq.n 800625e + 8006288: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 800628c: f003 0340 and.w r3, r3, #64 @ 0x40 + 8006290: 2b00 cmp r3, #0 + 8006292: d00e beq.n 80062b2 + 8006294: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8006298: f003 0340 and.w r3, r3, #64 @ 0x40 + 800629c: 2b00 cmp r3, #0 + 800629e: d008 beq.n 80062b2 { UART_EndTransmit_IT(huart); - 800624c: 6878 ldr r0, [r7, #4] - 800624e: f000 fb1f bl 8006890 + 80062a0: 6878 ldr r0, [r7, #4] + 80062a2: f000 fb1f bl 80068e4 return; - 8006252: e004 b.n 800625e + 80062a6: e004 b.n 80062b2 return; - 8006254: bf00 nop - 8006256: e002 b.n 800625e + 80062a8: bf00 nop + 80062aa: e002 b.n 80062b2 return; - 8006258: bf00 nop - 800625a: e000 b.n 800625e + 80062ac: bf00 nop + 80062ae: e000 b.n 80062b2 return; - 800625c: bf00 nop + 80062b0: bf00 nop } } - 800625e: 37e8 adds r7, #232 @ 0xe8 - 8006260: 46bd mov sp, r7 - 8006262: bd80 pop {r7, pc} + 80062b2: 37e8 adds r7, #232 @ 0xe8 + 80062b4: 46bd mov sp, r7 + 80062b6: bd80 pop {r7, pc} -08006264 : +080062b8 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) { - 8006264: b480 push {r7} - 8006266: b083 sub sp, #12 - 8006268: af00 add r7, sp, #0 - 800626a: 6078 str r0, [r7, #4] + 80062b8: b480 push {r7} + 80062ba: b083 sub sp, #12 + 80062bc: af00 add r7, sp, #0 + 80062be: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_TxCpltCallback could be implemented in the user file */ } - 800626c: bf00 nop - 800626e: 370c adds r7, #12 - 8006270: 46bd mov sp, r7 - 8006272: f85d 7b04 ldr.w r7, [sp], #4 - 8006276: 4770 bx lr + 80062c0: bf00 nop + 80062c2: 370c adds r7, #12 + 80062c4: 46bd mov sp, r7 + 80062c6: f85d 7b04 ldr.w r7, [sp], #4 + 80062ca: 4770 bx lr -08006278 : +080062cc : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_TxHalfCpltCallback(UART_HandleTypeDef *huart) { - 8006278: b480 push {r7} - 800627a: b083 sub sp, #12 - 800627c: af00 add r7, sp, #0 - 800627e: 6078 str r0, [r7, #4] + 80062cc: b480 push {r7} + 80062ce: b083 sub sp, #12 + 80062d0: af00 add r7, sp, #0 + 80062d2: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_TxHalfCpltCallback could be implemented in the user file */ } - 8006280: bf00 nop - 8006282: 370c adds r7, #12 - 8006284: 46bd mov sp, r7 - 8006286: f85d 7b04 ldr.w r7, [sp], #4 - 800628a: 4770 bx lr + 80062d4: bf00 nop + 80062d6: 370c adds r7, #12 + 80062d8: 46bd mov sp, r7 + 80062da: f85d 7b04 ldr.w r7, [sp], #4 + 80062de: 4770 bx lr -0800628c : +080062e0 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ __weak void HAL_UART_RxHalfCpltCallback(UART_HandleTypeDef *huart) { - 800628c: b480 push {r7} - 800628e: b083 sub sp, #12 - 8006290: af00 add r7, sp, #0 - 8006292: 6078 str r0, [r7, #4] + 80062e0: b480 push {r7} + 80062e2: b083 sub sp, #12 + 80062e4: af00 add r7, sp, #0 + 80062e6: 6078 str r0, [r7, #4] /* Prevent unused argument(s) compilation warning */ UNUSED(huart); /* NOTE: This function should not be modified, when the callback is needed, the HAL_UART_RxHalfCpltCallback could be implemented in the user file */ } - 8006294: bf00 nop - 8006296: 370c adds r7, #12 - 8006298: 46bd mov sp, r7 - 800629a: f85d 7b04 ldr.w r7, [sp], #4 - 800629e: 4770 bx lr + 80062e8: bf00 nop + 80062ea: 370c adds r7, #12 + 80062ec: 46bd mov sp, r7 + 80062ee: f85d 7b04 ldr.w r7, [sp], #4 + 80062f2: 4770 bx lr -080062a0 : +080062f4 : * @param Size Number of data available in application reception buffer (indicates a position in * reception buffer until which, data are available) * @retval None */ __weak void HAL_UARTEx_RxEventCallback(UART_HandleTypeDef *huart, uint16_t Size) { - 80062a0: b480 push {r7} - 80062a2: b083 sub sp, #12 - 80062a4: af00 add r7, sp, #0 - 80062a6: 6078 str r0, [r7, #4] - 80062a8: 460b mov r3, r1 - 80062aa: 807b strh r3, [r7, #2] + 80062f4: b480 push {r7} + 80062f6: b083 sub sp, #12 + 80062f8: af00 add r7, sp, #0 + 80062fa: 6078 str r0, [r7, #4] + 80062fc: 460b mov r3, r1 + 80062fe: 807b strh r3, [r7, #2] UNUSED(Size); /* NOTE : This function should not be modified, when the callback is needed, the HAL_UARTEx_RxEventCallback can be implemented in the user file. */ } - 80062ac: bf00 nop - 80062ae: 370c adds r7, #12 - 80062b0: 46bd mov sp, r7 - 80062b2: f85d 7b04 ldr.w r7, [sp], #4 - 80062b6: 4770 bx lr + 8006300: bf00 nop + 8006302: 370c adds r7, #12 + 8006304: 46bd mov sp, r7 + 8006306: f85d 7b04 ldr.w r7, [sp], #4 + 800630a: 4770 bx lr -080062b8 : +0800630c : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMATransmitCplt(DMA_HandleTypeDef *hdma) { - 80062b8: b580 push {r7, lr} - 80062ba: b090 sub sp, #64 @ 0x40 - 80062bc: af00 add r7, sp, #0 - 80062be: 6078 str r0, [r7, #4] + 800630c: b580 push {r7, lr} + 800630e: b090 sub sp, #64 @ 0x40 + 8006310: af00 add r7, sp, #0 + 8006312: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 80062c0: 687b ldr r3, [r7, #4] - 80062c2: 6b9b ldr r3, [r3, #56] @ 0x38 - 80062c4: 63fb str r3, [r7, #60] @ 0x3c + 8006314: 687b ldr r3, [r7, #4] + 8006316: 6b9b ldr r3, [r3, #56] @ 0x38 + 8006318: 63fb str r3, [r7, #60] @ 0x3c /* DMA Normal mode*/ if ((hdma->Instance->CR & DMA_SxCR_CIRC) == 0U) - 80062c6: 687b ldr r3, [r7, #4] - 80062c8: 681b ldr r3, [r3, #0] - 80062ca: 681b ldr r3, [r3, #0] - 80062cc: f403 7380 and.w r3, r3, #256 @ 0x100 - 80062d0: 2b00 cmp r3, #0 - 80062d2: d137 bne.n 8006344 + 800631a: 687b ldr r3, [r7, #4] + 800631c: 681b ldr r3, [r3, #0] + 800631e: 681b ldr r3, [r3, #0] + 8006320: f403 7380 and.w r3, r3, #256 @ 0x100 + 8006324: 2b00 cmp r3, #0 + 8006326: d137 bne.n 8006398 { huart->TxXferCount = 0x00U; - 80062d4: 6bfb ldr r3, [r7, #60] @ 0x3c - 80062d6: 2200 movs r2, #0 - 80062d8: 84da strh r2, [r3, #38] @ 0x26 + 8006328: 6bfb ldr r3, [r7, #60] @ 0x3c + 800632a: 2200 movs r2, #0 + 800632c: 84da strh r2, [r3, #38] @ 0x26 /* Disable the DMA transfer for transmit request by setting the DMAT bit in the UART CR3 register */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAT); - 80062da: 6bfb ldr r3, [r7, #60] @ 0x3c - 80062dc: 681b ldr r3, [r3, #0] - 80062de: 3314 adds r3, #20 - 80062e0: 627b str r3, [r7, #36] @ 0x24 + 800632e: 6bfb ldr r3, [r7, #60] @ 0x3c + 8006330: 681b ldr r3, [r3, #0] + 8006332: 3314 adds r3, #20 + 8006334: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80062e2: 6a7b ldr r3, [r7, #36] @ 0x24 - 80062e4: e853 3f00 ldrex r3, [r3] - 80062e8: 623b str r3, [r7, #32] + 8006336: 6a7b ldr r3, [r7, #36] @ 0x24 + 8006338: e853 3f00 ldrex r3, [r3] + 800633c: 623b str r3, [r7, #32] return(result); - 80062ea: 6a3b ldr r3, [r7, #32] - 80062ec: f023 0380 bic.w r3, r3, #128 @ 0x80 - 80062f0: 63bb str r3, [r7, #56] @ 0x38 - 80062f2: 6bfb ldr r3, [r7, #60] @ 0x3c - 80062f4: 681b ldr r3, [r3, #0] - 80062f6: 3314 adds r3, #20 - 80062f8: 6bba ldr r2, [r7, #56] @ 0x38 - 80062fa: 633a str r2, [r7, #48] @ 0x30 - 80062fc: 62fb str r3, [r7, #44] @ 0x2c + 800633e: 6a3b ldr r3, [r7, #32] + 8006340: f023 0380 bic.w r3, r3, #128 @ 0x80 + 8006344: 63bb str r3, [r7, #56] @ 0x38 + 8006346: 6bfb ldr r3, [r7, #60] @ 0x3c + 8006348: 681b ldr r3, [r3, #0] + 800634a: 3314 adds r3, #20 + 800634c: 6bba ldr r2, [r7, #56] @ 0x38 + 800634e: 633a str r2, [r7, #48] @ 0x30 + 8006350: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80062fe: 6af9 ldr r1, [r7, #44] @ 0x2c - 8006300: 6b3a ldr r2, [r7, #48] @ 0x30 - 8006302: e841 2300 strex r3, r2, [r1] - 8006306: 62bb str r3, [r7, #40] @ 0x28 + 8006352: 6af9 ldr r1, [r7, #44] @ 0x2c + 8006354: 6b3a ldr r2, [r7, #48] @ 0x30 + 8006356: e841 2300 strex r3, r2, [r1] + 800635a: 62bb str r3, [r7, #40] @ 0x28 return(result); - 8006308: 6abb ldr r3, [r7, #40] @ 0x28 - 800630a: 2b00 cmp r3, #0 - 800630c: d1e5 bne.n 80062da + 800635c: 6abb ldr r3, [r7, #40] @ 0x28 + 800635e: 2b00 cmp r3, #0 + 8006360: d1e5 bne.n 800632e /* Enable the UART Transmit Complete Interrupt */ ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE); - 800630e: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006310: 681b ldr r3, [r3, #0] - 8006312: 330c adds r3, #12 - 8006314: 613b str r3, [r7, #16] + 8006362: 6bfb ldr r3, [r7, #60] @ 0x3c + 8006364: 681b ldr r3, [r3, #0] + 8006366: 330c adds r3, #12 + 8006368: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006316: 693b ldr r3, [r7, #16] - 8006318: e853 3f00 ldrex r3, [r3] - 800631c: 60fb str r3, [r7, #12] + 800636a: 693b ldr r3, [r7, #16] + 800636c: e853 3f00 ldrex r3, [r3] + 8006370: 60fb str r3, [r7, #12] return(result); - 800631e: 68fb ldr r3, [r7, #12] - 8006320: f043 0340 orr.w r3, r3, #64 @ 0x40 - 8006324: 637b str r3, [r7, #52] @ 0x34 - 8006326: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006328: 681b ldr r3, [r3, #0] - 800632a: 330c adds r3, #12 - 800632c: 6b7a ldr r2, [r7, #52] @ 0x34 - 800632e: 61fa str r2, [r7, #28] - 8006330: 61bb str r3, [r7, #24] + 8006372: 68fb ldr r3, [r7, #12] + 8006374: f043 0340 orr.w r3, r3, #64 @ 0x40 + 8006378: 637b str r3, [r7, #52] @ 0x34 + 800637a: 6bfb ldr r3, [r7, #60] @ 0x3c + 800637c: 681b ldr r3, [r3, #0] + 800637e: 330c adds r3, #12 + 8006380: 6b7a ldr r2, [r7, #52] @ 0x34 + 8006382: 61fa str r2, [r7, #28] + 8006384: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006332: 69b9 ldr r1, [r7, #24] - 8006334: 69fa ldr r2, [r7, #28] - 8006336: e841 2300 strex r3, r2, [r1] - 800633a: 617b str r3, [r7, #20] + 8006386: 69b9 ldr r1, [r7, #24] + 8006388: 69fa ldr r2, [r7, #28] + 800638a: e841 2300 strex r3, r2, [r1] + 800638e: 617b str r3, [r7, #20] return(result); - 800633c: 697b ldr r3, [r7, #20] - 800633e: 2b00 cmp r3, #0 - 8006340: d1e5 bne.n 800630e + 8006390: 697b ldr r3, [r7, #20] + 8006392: 2b00 cmp r3, #0 + 8006394: d1e5 bne.n 8006362 #else /*Call legacy weak Tx complete callback*/ HAL_UART_TxCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } - 8006342: e002 b.n 800634a + 8006396: e002 b.n 800639e HAL_UART_TxCpltCallback(huart); - 8006344: 6bf8 ldr r0, [r7, #60] @ 0x3c - 8006346: f7ff ff8d bl 8006264 + 8006398: 6bf8 ldr r0, [r7, #60] @ 0x3c + 800639a: f7ff ff8d bl 80062b8 } - 800634a: bf00 nop - 800634c: 3740 adds r7, #64 @ 0x40 - 800634e: 46bd mov sp, r7 - 8006350: bd80 pop {r7, pc} + 800639e: bf00 nop + 80063a0: 3740 adds r7, #64 @ 0x40 + 80063a2: 46bd mov sp, r7 + 80063a4: bd80 pop {r7, pc} -08006352 : +080063a6 : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMATxHalfCplt(DMA_HandleTypeDef *hdma) { - 8006352: b580 push {r7, lr} - 8006354: b084 sub sp, #16 - 8006356: af00 add r7, sp, #0 - 8006358: 6078 str r0, [r7, #4] + 80063a6: b580 push {r7, lr} + 80063a8: b084 sub sp, #16 + 80063aa: af00 add r7, sp, #0 + 80063ac: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 800635a: 687b ldr r3, [r7, #4] - 800635c: 6b9b ldr r3, [r3, #56] @ 0x38 - 800635e: 60fb str r3, [r7, #12] + 80063ae: 687b ldr r3, [r7, #4] + 80063b0: 6b9b ldr r3, [r3, #56] @ 0x38 + 80063b2: 60fb str r3, [r7, #12] #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Tx complete callback*/ huart->TxHalfCpltCallback(huart); #else /*Call legacy weak Tx complete callback*/ HAL_UART_TxHalfCpltCallback(huart); - 8006360: 68f8 ldr r0, [r7, #12] - 8006362: f7ff ff89 bl 8006278 + 80063b4: 68f8 ldr r0, [r7, #12] + 80063b6: f7ff ff89 bl 80062cc #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } - 8006366: bf00 nop - 8006368: 3710 adds r7, #16 - 800636a: 46bd mov sp, r7 - 800636c: bd80 pop {r7, pc} + 80063ba: bf00 nop + 80063bc: 3710 adds r7, #16 + 80063be: 46bd mov sp, r7 + 80063c0: bd80 pop {r7, pc} -0800636e : +080063c2 : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMAReceiveCplt(DMA_HandleTypeDef *hdma) { - 800636e: b580 push {r7, lr} - 8006370: b09c sub sp, #112 @ 0x70 - 8006372: af00 add r7, sp, #0 - 8006374: 6078 str r0, [r7, #4] + 80063c2: b580 push {r7, lr} + 80063c4: b09c sub sp, #112 @ 0x70 + 80063c6: af00 add r7, sp, #0 + 80063c8: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 8006376: 687b ldr r3, [r7, #4] - 8006378: 6b9b ldr r3, [r3, #56] @ 0x38 - 800637a: 66fb str r3, [r7, #108] @ 0x6c + 80063ca: 687b ldr r3, [r7, #4] + 80063cc: 6b9b ldr r3, [r3, #56] @ 0x38 + 80063ce: 66fb str r3, [r7, #108] @ 0x6c /* DMA Normal mode*/ if ((hdma->Instance->CR & DMA_SxCR_CIRC) == 0U) - 800637c: 687b ldr r3, [r7, #4] - 800637e: 681b ldr r3, [r3, #0] - 8006380: 681b ldr r3, [r3, #0] - 8006382: f403 7380 and.w r3, r3, #256 @ 0x100 - 8006386: 2b00 cmp r3, #0 - 8006388: d172 bne.n 8006470 + 80063d0: 687b ldr r3, [r7, #4] + 80063d2: 681b ldr r3, [r3, #0] + 80063d4: 681b ldr r3, [r3, #0] + 80063d6: f403 7380 and.w r3, r3, #256 @ 0x100 + 80063da: 2b00 cmp r3, #0 + 80063dc: d172 bne.n 80064c4 { huart->RxXferCount = 0U; - 800638a: 6efb ldr r3, [r7, #108] @ 0x6c - 800638c: 2200 movs r2, #0 - 800638e: 85da strh r2, [r3, #46] @ 0x2e + 80063de: 6efb ldr r3, [r7, #108] @ 0x6c + 80063e0: 2200 movs r2, #0 + 80063e2: 85da strh r2, [r3, #46] @ 0x2e /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - 8006390: 6efb ldr r3, [r7, #108] @ 0x6c - 8006392: 681b ldr r3, [r3, #0] - 8006394: 330c adds r3, #12 - 8006396: 64fb str r3, [r7, #76] @ 0x4c + 80063e4: 6efb ldr r3, [r7, #108] @ 0x6c + 80063e6: 681b ldr r3, [r3, #0] + 80063e8: 330c adds r3, #12 + 80063ea: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006398: 6cfb ldr r3, [r7, #76] @ 0x4c - 800639a: e853 3f00 ldrex r3, [r3] - 800639e: 64bb str r3, [r7, #72] @ 0x48 + 80063ec: 6cfb ldr r3, [r7, #76] @ 0x4c + 80063ee: e853 3f00 ldrex r3, [r3] + 80063f2: 64bb str r3, [r7, #72] @ 0x48 return(result); - 80063a0: 6cbb ldr r3, [r7, #72] @ 0x48 - 80063a2: f423 7380 bic.w r3, r3, #256 @ 0x100 - 80063a6: 66bb str r3, [r7, #104] @ 0x68 - 80063a8: 6efb ldr r3, [r7, #108] @ 0x6c - 80063aa: 681b ldr r3, [r3, #0] - 80063ac: 330c adds r3, #12 - 80063ae: 6eba ldr r2, [r7, #104] @ 0x68 - 80063b0: 65ba str r2, [r7, #88] @ 0x58 - 80063b2: 657b str r3, [r7, #84] @ 0x54 + 80063f4: 6cbb ldr r3, [r7, #72] @ 0x48 + 80063f6: f423 7380 bic.w r3, r3, #256 @ 0x100 + 80063fa: 66bb str r3, [r7, #104] @ 0x68 + 80063fc: 6efb ldr r3, [r7, #108] @ 0x6c + 80063fe: 681b ldr r3, [r3, #0] + 8006400: 330c adds r3, #12 + 8006402: 6eba ldr r2, [r7, #104] @ 0x68 + 8006404: 65ba str r2, [r7, #88] @ 0x58 + 8006406: 657b str r3, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80063b4: 6d79 ldr r1, [r7, #84] @ 0x54 - 80063b6: 6dba ldr r2, [r7, #88] @ 0x58 - 80063b8: e841 2300 strex r3, r2, [r1] - 80063bc: 653b str r3, [r7, #80] @ 0x50 + 8006408: 6d79 ldr r1, [r7, #84] @ 0x54 + 800640a: 6dba ldr r2, [r7, #88] @ 0x58 + 800640c: e841 2300 strex r3, r2, [r1] + 8006410: 653b str r3, [r7, #80] @ 0x50 return(result); - 80063be: 6d3b ldr r3, [r7, #80] @ 0x50 - 80063c0: 2b00 cmp r3, #0 - 80063c2: d1e5 bne.n 8006390 + 8006412: 6d3b ldr r3, [r7, #80] @ 0x50 + 8006414: 2b00 cmp r3, #0 + 8006416: d1e5 bne.n 80063e4 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 80063c4: 6efb ldr r3, [r7, #108] @ 0x6c - 80063c6: 681b ldr r3, [r3, #0] - 80063c8: 3314 adds r3, #20 - 80063ca: 63bb str r3, [r7, #56] @ 0x38 + 8006418: 6efb ldr r3, [r7, #108] @ 0x6c + 800641a: 681b ldr r3, [r3, #0] + 800641c: 3314 adds r3, #20 + 800641e: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80063cc: 6bbb ldr r3, [r7, #56] @ 0x38 - 80063ce: e853 3f00 ldrex r3, [r3] - 80063d2: 637b str r3, [r7, #52] @ 0x34 + 8006420: 6bbb ldr r3, [r7, #56] @ 0x38 + 8006422: e853 3f00 ldrex r3, [r3] + 8006426: 637b str r3, [r7, #52] @ 0x34 return(result); - 80063d4: 6b7b ldr r3, [r7, #52] @ 0x34 - 80063d6: f023 0301 bic.w r3, r3, #1 - 80063da: 667b str r3, [r7, #100] @ 0x64 - 80063dc: 6efb ldr r3, [r7, #108] @ 0x6c - 80063de: 681b ldr r3, [r3, #0] - 80063e0: 3314 adds r3, #20 - 80063e2: 6e7a ldr r2, [r7, #100] @ 0x64 - 80063e4: 647a str r2, [r7, #68] @ 0x44 - 80063e6: 643b str r3, [r7, #64] @ 0x40 + 8006428: 6b7b ldr r3, [r7, #52] @ 0x34 + 800642a: f023 0301 bic.w r3, r3, #1 + 800642e: 667b str r3, [r7, #100] @ 0x64 + 8006430: 6efb ldr r3, [r7, #108] @ 0x6c + 8006432: 681b ldr r3, [r3, #0] + 8006434: 3314 adds r3, #20 + 8006436: 6e7a ldr r2, [r7, #100] @ 0x64 + 8006438: 647a str r2, [r7, #68] @ 0x44 + 800643a: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80063e8: 6c39 ldr r1, [r7, #64] @ 0x40 - 80063ea: 6c7a ldr r2, [r7, #68] @ 0x44 - 80063ec: e841 2300 strex r3, r2, [r1] - 80063f0: 63fb str r3, [r7, #60] @ 0x3c + 800643c: 6c39 ldr r1, [r7, #64] @ 0x40 + 800643e: 6c7a ldr r2, [r7, #68] @ 0x44 + 8006440: e841 2300 strex r3, r2, [r1] + 8006444: 63fb str r3, [r7, #60] @ 0x3c return(result); - 80063f2: 6bfb ldr r3, [r7, #60] @ 0x3c - 80063f4: 2b00 cmp r3, #0 - 80063f6: d1e5 bne.n 80063c4 + 8006446: 6bfb ldr r3, [r7, #60] @ 0x3c + 8006448: 2b00 cmp r3, #0 + 800644a: d1e5 bne.n 8006418 /* Disable the DMA transfer for the receiver request by setting the DMAR bit in the UART CR3 register */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - 80063f8: 6efb ldr r3, [r7, #108] @ 0x6c - 80063fa: 681b ldr r3, [r3, #0] - 80063fc: 3314 adds r3, #20 - 80063fe: 627b str r3, [r7, #36] @ 0x24 + 800644c: 6efb ldr r3, [r7, #108] @ 0x6c + 800644e: 681b ldr r3, [r3, #0] + 8006450: 3314 adds r3, #20 + 8006452: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006400: 6a7b ldr r3, [r7, #36] @ 0x24 - 8006402: e853 3f00 ldrex r3, [r3] - 8006406: 623b str r3, [r7, #32] + 8006454: 6a7b ldr r3, [r7, #36] @ 0x24 + 8006456: e853 3f00 ldrex r3, [r3] + 800645a: 623b str r3, [r7, #32] return(result); - 8006408: 6a3b ldr r3, [r7, #32] - 800640a: f023 0340 bic.w r3, r3, #64 @ 0x40 - 800640e: 663b str r3, [r7, #96] @ 0x60 - 8006410: 6efb ldr r3, [r7, #108] @ 0x6c - 8006412: 681b ldr r3, [r3, #0] - 8006414: 3314 adds r3, #20 - 8006416: 6e3a ldr r2, [r7, #96] @ 0x60 - 8006418: 633a str r2, [r7, #48] @ 0x30 - 800641a: 62fb str r3, [r7, #44] @ 0x2c + 800645c: 6a3b ldr r3, [r7, #32] + 800645e: f023 0340 bic.w r3, r3, #64 @ 0x40 + 8006462: 663b str r3, [r7, #96] @ 0x60 + 8006464: 6efb ldr r3, [r7, #108] @ 0x6c + 8006466: 681b ldr r3, [r3, #0] + 8006468: 3314 adds r3, #20 + 800646a: 6e3a ldr r2, [r7, #96] @ 0x60 + 800646c: 633a str r2, [r7, #48] @ 0x30 + 800646e: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800641c: 6af9 ldr r1, [r7, #44] @ 0x2c - 800641e: 6b3a ldr r2, [r7, #48] @ 0x30 - 8006420: e841 2300 strex r3, r2, [r1] - 8006424: 62bb str r3, [r7, #40] @ 0x28 + 8006470: 6af9 ldr r1, [r7, #44] @ 0x2c + 8006472: 6b3a ldr r2, [r7, #48] @ 0x30 + 8006474: e841 2300 strex r3, r2, [r1] + 8006478: 62bb str r3, [r7, #40] @ 0x28 return(result); - 8006426: 6abb ldr r3, [r7, #40] @ 0x28 - 8006428: 2b00 cmp r3, #0 - 800642a: d1e5 bne.n 80063f8 + 800647a: 6abb ldr r3, [r7, #40] @ 0x28 + 800647c: 2b00 cmp r3, #0 + 800647e: d1e5 bne.n 800644c /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 800642c: 6efb ldr r3, [r7, #108] @ 0x6c - 800642e: 2220 movs r2, #32 - 8006430: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8006480: 6efb ldr r3, [r7, #108] @ 0x6c + 8006482: 2220 movs r2, #32 + 8006484: f883 2042 strb.w r2, [r3, #66] @ 0x42 /* If Reception till IDLE event has been selected, Disable IDLE Interrupt */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8006434: 6efb ldr r3, [r7, #108] @ 0x6c - 8006436: 6b1b ldr r3, [r3, #48] @ 0x30 - 8006438: 2b01 cmp r3, #1 - 800643a: d119 bne.n 8006470 + 8006488: 6efb ldr r3, [r7, #108] @ 0x6c + 800648a: 6b1b ldr r3, [r3, #48] @ 0x30 + 800648c: 2b01 cmp r3, #1 + 800648e: d119 bne.n 80064c4 { ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 800643c: 6efb ldr r3, [r7, #108] @ 0x6c - 800643e: 681b ldr r3, [r3, #0] - 8006440: 330c adds r3, #12 - 8006442: 613b str r3, [r7, #16] + 8006490: 6efb ldr r3, [r7, #108] @ 0x6c + 8006492: 681b ldr r3, [r3, #0] + 8006494: 330c adds r3, #12 + 8006496: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006444: 693b ldr r3, [r7, #16] - 8006446: e853 3f00 ldrex r3, [r3] - 800644a: 60fb str r3, [r7, #12] + 8006498: 693b ldr r3, [r7, #16] + 800649a: e853 3f00 ldrex r3, [r3] + 800649e: 60fb str r3, [r7, #12] return(result); - 800644c: 68fb ldr r3, [r7, #12] - 800644e: f023 0310 bic.w r3, r3, #16 - 8006452: 65fb str r3, [r7, #92] @ 0x5c - 8006454: 6efb ldr r3, [r7, #108] @ 0x6c - 8006456: 681b ldr r3, [r3, #0] - 8006458: 330c adds r3, #12 - 800645a: 6dfa ldr r2, [r7, #92] @ 0x5c - 800645c: 61fa str r2, [r7, #28] - 800645e: 61bb str r3, [r7, #24] + 80064a0: 68fb ldr r3, [r7, #12] + 80064a2: f023 0310 bic.w r3, r3, #16 + 80064a6: 65fb str r3, [r7, #92] @ 0x5c + 80064a8: 6efb ldr r3, [r7, #108] @ 0x6c + 80064aa: 681b ldr r3, [r3, #0] + 80064ac: 330c adds r3, #12 + 80064ae: 6dfa ldr r2, [r7, #92] @ 0x5c + 80064b0: 61fa str r2, [r7, #28] + 80064b2: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006460: 69b9 ldr r1, [r7, #24] - 8006462: 69fa ldr r2, [r7, #28] - 8006464: e841 2300 strex r3, r2, [r1] - 8006468: 617b str r3, [r7, #20] + 80064b4: 69b9 ldr r1, [r7, #24] + 80064b6: 69fa ldr r2, [r7, #28] + 80064b8: e841 2300 strex r3, r2, [r1] + 80064bc: 617b str r3, [r7, #20] return(result); - 800646a: 697b ldr r3, [r7, #20] - 800646c: 2b00 cmp r3, #0 - 800646e: d1e5 bne.n 800643c + 80064be: 697b ldr r3, [r7, #20] + 80064c0: 2b00 cmp r3, #0 + 80064c2: d1e5 bne.n 8006490 } } /* Initialize type of RxEvent that correspond to RxEvent callback execution; In this case, Rx Event type is Transfer Complete */ huart->RxEventType = HAL_UART_RXEVENT_TC; - 8006470: 6efb ldr r3, [r7, #108] @ 0x6c - 8006472: 2200 movs r2, #0 - 8006474: 635a str r2, [r3, #52] @ 0x34 + 80064c4: 6efb ldr r3, [r7, #108] @ 0x6c + 80064c6: 2200 movs r2, #0 + 80064c8: 635a str r2, [r3, #52] @ 0x34 /* Check current reception Mode : If Reception till IDLE event has been selected : use Rx Event callback */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8006476: 6efb ldr r3, [r7, #108] @ 0x6c - 8006478: 6b1b ldr r3, [r3, #48] @ 0x30 - 800647a: 2b01 cmp r3, #1 - 800647c: d106 bne.n 800648c + 80064ca: 6efb ldr r3, [r7, #108] @ 0x6c + 80064cc: 6b1b ldr r3, [r3, #48] @ 0x30 + 80064ce: 2b01 cmp r3, #1 + 80064d0: d106 bne.n 80064e0 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); - 800647e: 6efb ldr r3, [r7, #108] @ 0x6c - 8006480: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8006482: 4619 mov r1, r3 - 8006484: 6ef8 ldr r0, [r7, #108] @ 0x6c - 8006486: f7ff ff0b bl 80062a0 + 80064d2: 6efb ldr r3, [r7, #108] @ 0x6c + 80064d4: 8d9b ldrh r3, [r3, #44] @ 0x2c + 80064d6: 4619 mov r1, r3 + 80064d8: 6ef8 ldr r0, [r7, #108] @ 0x6c + 80064da: f7ff ff0b bl 80062f4 #else /*Call legacy weak Rx complete callback*/ HAL_UART_RxCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } - 800648a: e002 b.n 8006492 + 80064de: e002 b.n 80064e6 HAL_UART_RxCpltCallback(huart); - 800648c: 6ef8 ldr r0, [r7, #108] @ 0x6c - 800648e: f7fa fb09 bl 8000aa4 + 80064e0: 6ef8 ldr r0, [r7, #108] @ 0x6c + 80064e2: f7fa faf1 bl 8000ac8 } - 8006492: bf00 nop - 8006494: 3770 adds r7, #112 @ 0x70 - 8006496: 46bd mov sp, r7 - 8006498: bd80 pop {r7, pc} + 80064e6: bf00 nop + 80064e8: 3770 adds r7, #112 @ 0x70 + 80064ea: 46bd mov sp, r7 + 80064ec: bd80 pop {r7, pc} -0800649a : +080064ee : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMARxHalfCplt(DMA_HandleTypeDef *hdma) { - 800649a: b580 push {r7, lr} - 800649c: b084 sub sp, #16 - 800649e: af00 add r7, sp, #0 - 80064a0: 6078 str r0, [r7, #4] + 80064ee: b580 push {r7, lr} + 80064f0: b084 sub sp, #16 + 80064f2: af00 add r7, sp, #0 + 80064f4: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 80064a2: 687b ldr r3, [r7, #4] - 80064a4: 6b9b ldr r3, [r3, #56] @ 0x38 - 80064a6: 60fb str r3, [r7, #12] + 80064f6: 687b ldr r3, [r7, #4] + 80064f8: 6b9b ldr r3, [r3, #56] @ 0x38 + 80064fa: 60fb str r3, [r7, #12] /* Initialize type of RxEvent that correspond to RxEvent callback execution; In this case, Rx Event type is Half Transfer */ huart->RxEventType = HAL_UART_RXEVENT_HT; - 80064a8: 68fb ldr r3, [r7, #12] - 80064aa: 2201 movs r2, #1 - 80064ac: 635a str r2, [r3, #52] @ 0x34 + 80064fc: 68fb ldr r3, [r7, #12] + 80064fe: 2201 movs r2, #1 + 8006500: 635a str r2, [r3, #52] @ 0x34 /* Check current reception Mode : If Reception till IDLE event has been selected : use Rx Event callback */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 80064ae: 68fb ldr r3, [r7, #12] - 80064b0: 6b1b ldr r3, [r3, #48] @ 0x30 - 80064b2: 2b01 cmp r3, #1 - 80064b4: d108 bne.n 80064c8 + 8006502: 68fb ldr r3, [r7, #12] + 8006504: 6b1b ldr r3, [r3, #48] @ 0x30 + 8006506: 2b01 cmp r3, #1 + 8006508: d108 bne.n 800651c #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize / 2U); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize / 2U); - 80064b6: 68fb ldr r3, [r7, #12] - 80064b8: 8d9b ldrh r3, [r3, #44] @ 0x2c - 80064ba: 085b lsrs r3, r3, #1 - 80064bc: b29b uxth r3, r3 - 80064be: 4619 mov r1, r3 - 80064c0: 68f8 ldr r0, [r7, #12] - 80064c2: f7ff feed bl 80062a0 + 800650a: 68fb ldr r3, [r7, #12] + 800650c: 8d9b ldrh r3, [r3, #44] @ 0x2c + 800650e: 085b lsrs r3, r3, #1 + 8006510: b29b uxth r3, r3 + 8006512: 4619 mov r1, r3 + 8006514: 68f8 ldr r0, [r7, #12] + 8006516: f7ff feed bl 80062f4 #else /*Call legacy weak Rx Half complete callback*/ HAL_UART_RxHalfCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } - 80064c6: e002 b.n 80064ce + 800651a: e002 b.n 8006522 HAL_UART_RxHalfCpltCallback(huart); - 80064c8: 68f8 ldr r0, [r7, #12] - 80064ca: f7ff fedf bl 800628c + 800651c: 68f8 ldr r0, [r7, #12] + 800651e: f7ff fedf bl 80062e0 } - 80064ce: bf00 nop - 80064d0: 3710 adds r7, #16 - 80064d2: 46bd mov sp, r7 - 80064d4: bd80 pop {r7, pc} + 8006522: bf00 nop + 8006524: 3710 adds r7, #16 + 8006526: 46bd mov sp, r7 + 8006528: bd80 pop {r7, pc} -080064d6 : +0800652a : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMAError(DMA_HandleTypeDef *hdma) { - 80064d6: b580 push {r7, lr} - 80064d8: b084 sub sp, #16 - 80064da: af00 add r7, sp, #0 - 80064dc: 6078 str r0, [r7, #4] + 800652a: b580 push {r7, lr} + 800652c: b084 sub sp, #16 + 800652e: af00 add r7, sp, #0 + 8006530: 6078 str r0, [r7, #4] uint32_t dmarequest = 0x00U; - 80064de: 2300 movs r3, #0 - 80064e0: 60fb str r3, [r7, #12] + 8006532: 2300 movs r3, #0 + 8006534: 60fb str r3, [r7, #12] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 80064e2: 687b ldr r3, [r7, #4] - 80064e4: 6b9b ldr r3, [r3, #56] @ 0x38 - 80064e6: 60bb str r3, [r7, #8] + 8006536: 687b ldr r3, [r7, #4] + 8006538: 6b9b ldr r3, [r3, #56] @ 0x38 + 800653a: 60bb str r3, [r7, #8] /* Stop UART DMA Tx request if ongoing */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT); - 80064e8: 68bb ldr r3, [r7, #8] - 80064ea: 681b ldr r3, [r3, #0] - 80064ec: 695b ldr r3, [r3, #20] - 80064ee: f003 0380 and.w r3, r3, #128 @ 0x80 - 80064f2: 2b80 cmp r3, #128 @ 0x80 - 80064f4: bf0c ite eq - 80064f6: 2301 moveq r3, #1 - 80064f8: 2300 movne r3, #0 - 80064fa: b2db uxtb r3, r3 - 80064fc: 60fb str r3, [r7, #12] + 800653c: 68bb ldr r3, [r7, #8] + 800653e: 681b ldr r3, [r3, #0] + 8006540: 695b ldr r3, [r3, #20] + 8006542: f003 0380 and.w r3, r3, #128 @ 0x80 + 8006546: 2b80 cmp r3, #128 @ 0x80 + 8006548: bf0c ite eq + 800654a: 2301 moveq r3, #1 + 800654c: 2300 movne r3, #0 + 800654e: b2db uxtb r3, r3 + 8006550: 60fb str r3, [r7, #12] if ((huart->gState == HAL_UART_STATE_BUSY_TX) && dmarequest) - 80064fe: 68bb ldr r3, [r7, #8] - 8006500: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 8006504: b2db uxtb r3, r3 - 8006506: 2b21 cmp r3, #33 @ 0x21 - 8006508: d108 bne.n 800651c - 800650a: 68fb ldr r3, [r7, #12] - 800650c: 2b00 cmp r3, #0 - 800650e: d005 beq.n 800651c + 8006552: 68bb ldr r3, [r7, #8] + 8006554: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 8006558: b2db uxtb r3, r3 + 800655a: 2b21 cmp r3, #33 @ 0x21 + 800655c: d108 bne.n 8006570 + 800655e: 68fb ldr r3, [r7, #12] + 8006560: 2b00 cmp r3, #0 + 8006562: d005 beq.n 8006570 { huart->TxXferCount = 0x00U; - 8006510: 68bb ldr r3, [r7, #8] - 8006512: 2200 movs r2, #0 - 8006514: 84da strh r2, [r3, #38] @ 0x26 + 8006564: 68bb ldr r3, [r7, #8] + 8006566: 2200 movs r2, #0 + 8006568: 84da strh r2, [r3, #38] @ 0x26 UART_EndTxTransfer(huart); - 8006516: 68b8 ldr r0, [r7, #8] - 8006518: f000 f8ce bl 80066b8 + 800656a: 68b8 ldr r0, [r7, #8] + 800656c: f000 f8ce bl 800670c } /* Stop UART DMA Rx request if ongoing */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR); - 800651c: 68bb ldr r3, [r7, #8] - 800651e: 681b ldr r3, [r3, #0] - 8006520: 695b ldr r3, [r3, #20] - 8006522: f003 0340 and.w r3, r3, #64 @ 0x40 - 8006526: 2b40 cmp r3, #64 @ 0x40 - 8006528: bf0c ite eq - 800652a: 2301 moveq r3, #1 - 800652c: 2300 movne r3, #0 - 800652e: b2db uxtb r3, r3 - 8006530: 60fb str r3, [r7, #12] + 8006570: 68bb ldr r3, [r7, #8] + 8006572: 681b ldr r3, [r3, #0] + 8006574: 695b ldr r3, [r3, #20] + 8006576: f003 0340 and.w r3, r3, #64 @ 0x40 + 800657a: 2b40 cmp r3, #64 @ 0x40 + 800657c: bf0c ite eq + 800657e: 2301 moveq r3, #1 + 8006580: 2300 movne r3, #0 + 8006582: b2db uxtb r3, r3 + 8006584: 60fb str r3, [r7, #12] if ((huart->RxState == HAL_UART_STATE_BUSY_RX) && dmarequest) - 8006532: 68bb ldr r3, [r7, #8] - 8006534: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 - 8006538: b2db uxtb r3, r3 - 800653a: 2b22 cmp r3, #34 @ 0x22 - 800653c: d108 bne.n 8006550 - 800653e: 68fb ldr r3, [r7, #12] - 8006540: 2b00 cmp r3, #0 - 8006542: d005 beq.n 8006550 + 8006586: 68bb ldr r3, [r7, #8] + 8006588: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 + 800658c: b2db uxtb r3, r3 + 800658e: 2b22 cmp r3, #34 @ 0x22 + 8006590: d108 bne.n 80065a4 + 8006592: 68fb ldr r3, [r7, #12] + 8006594: 2b00 cmp r3, #0 + 8006596: d005 beq.n 80065a4 { huart->RxXferCount = 0x00U; - 8006544: 68bb ldr r3, [r7, #8] - 8006546: 2200 movs r2, #0 - 8006548: 85da strh r2, [r3, #46] @ 0x2e + 8006598: 68bb ldr r3, [r7, #8] + 800659a: 2200 movs r2, #0 + 800659c: 85da strh r2, [r3, #46] @ 0x2e UART_EndRxTransfer(huart); - 800654a: 68b8 ldr r0, [r7, #8] - 800654c: f000 f8dc bl 8006708 + 800659e: 68b8 ldr r0, [r7, #8] + 80065a0: f000 f8dc bl 800675c } huart->ErrorCode |= HAL_UART_ERROR_DMA; - 8006550: 68bb ldr r3, [r7, #8] - 8006552: 6c5b ldr r3, [r3, #68] @ 0x44 - 8006554: f043 0210 orr.w r2, r3, #16 - 8006558: 68bb ldr r3, [r7, #8] - 800655a: 645a str r2, [r3, #68] @ 0x44 + 80065a4: 68bb ldr r3, [r7, #8] + 80065a6: 6c5b ldr r3, [r3, #68] @ 0x44 + 80065a8: f043 0210 orr.w r2, r3, #16 + 80065ac: 68bb ldr r3, [r7, #8] + 80065ae: 645a str r2, [r3, #68] @ 0x44 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 800655c: 68b8 ldr r0, [r7, #8] - 800655e: f7fa fafd bl 8000b5c + 80065b0: 68b8 ldr r0, [r7, #8] + 80065b2: f7fa fae5 bl 8000b80 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } - 8006562: bf00 nop - 8006564: 3710 adds r7, #16 - 8006566: 46bd mov sp, r7 - 8006568: bd80 pop {r7, pc} + 80065b6: bf00 nop + 80065b8: 3710 adds r7, #16 + 80065ba: 46bd mov sp, r7 + 80065bc: bd80 pop {r7, pc} ... -0800656c : +080065c0 : * @param pData Pointer to data buffer (u8 or u16 data elements). * @param Size Amount of data elements (u8 or u16) to be received. * @retval HAL status */ HAL_StatusTypeDef UART_Start_Receive_DMA(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size) { - 800656c: b580 push {r7, lr} - 800656e: b098 sub sp, #96 @ 0x60 - 8006570: af00 add r7, sp, #0 - 8006572: 60f8 str r0, [r7, #12] - 8006574: 60b9 str r1, [r7, #8] - 8006576: 4613 mov r3, r2 - 8006578: 80fb strh r3, [r7, #6] + 80065c0: b580 push {r7, lr} + 80065c2: b098 sub sp, #96 @ 0x60 + 80065c4: af00 add r7, sp, #0 + 80065c6: 60f8 str r0, [r7, #12] + 80065c8: 60b9 str r1, [r7, #8] + 80065ca: 4613 mov r3, r2 + 80065cc: 80fb strh r3, [r7, #6] uint32_t *tmp; huart->pRxBuffPtr = pData; - 800657a: 68ba ldr r2, [r7, #8] - 800657c: 68fb ldr r3, [r7, #12] - 800657e: 629a str r2, [r3, #40] @ 0x28 + 80065ce: 68ba ldr r2, [r7, #8] + 80065d0: 68fb ldr r3, [r7, #12] + 80065d2: 629a str r2, [r3, #40] @ 0x28 huart->RxXferSize = Size; - 8006580: 68fb ldr r3, [r7, #12] - 8006582: 88fa ldrh r2, [r7, #6] - 8006584: 859a strh r2, [r3, #44] @ 0x2c + 80065d4: 68fb ldr r3, [r7, #12] + 80065d6: 88fa ldrh r2, [r7, #6] + 80065d8: 859a strh r2, [r3, #44] @ 0x2c huart->ErrorCode = HAL_UART_ERROR_NONE; - 8006586: 68fb ldr r3, [r7, #12] - 8006588: 2200 movs r2, #0 - 800658a: 645a str r2, [r3, #68] @ 0x44 + 80065da: 68fb ldr r3, [r7, #12] + 80065dc: 2200 movs r2, #0 + 80065de: 645a str r2, [r3, #68] @ 0x44 huart->RxState = HAL_UART_STATE_BUSY_RX; - 800658c: 68fb ldr r3, [r7, #12] - 800658e: 2222 movs r2, #34 @ 0x22 - 8006590: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80065e0: 68fb ldr r3, [r7, #12] + 80065e2: 2222 movs r2, #34 @ 0x22 + 80065e4: f883 2042 strb.w r2, [r3, #66] @ 0x42 /* Set the UART DMA transfer complete callback */ huart->hdmarx->XferCpltCallback = UART_DMAReceiveCplt; - 8006594: 68fb ldr r3, [r7, #12] - 8006596: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006598: 4a44 ldr r2, [pc, #272] @ (80066ac ) - 800659a: 63da str r2, [r3, #60] @ 0x3c + 80065e8: 68fb ldr r3, [r7, #12] + 80065ea: 6bdb ldr r3, [r3, #60] @ 0x3c + 80065ec: 4a44 ldr r2, [pc, #272] @ (8006700 ) + 80065ee: 63da str r2, [r3, #60] @ 0x3c /* Set the UART DMA Half transfer complete callback */ huart->hdmarx->XferHalfCpltCallback = UART_DMARxHalfCplt; - 800659c: 68fb ldr r3, [r7, #12] - 800659e: 6bdb ldr r3, [r3, #60] @ 0x3c - 80065a0: 4a43 ldr r2, [pc, #268] @ (80066b0 ) - 80065a2: 641a str r2, [r3, #64] @ 0x40 + 80065f0: 68fb ldr r3, [r7, #12] + 80065f2: 6bdb ldr r3, [r3, #60] @ 0x3c + 80065f4: 4a43 ldr r2, [pc, #268] @ (8006704 ) + 80065f6: 641a str r2, [r3, #64] @ 0x40 /* Set the DMA error callback */ huart->hdmarx->XferErrorCallback = UART_DMAError; - 80065a4: 68fb ldr r3, [r7, #12] - 80065a6: 6bdb ldr r3, [r3, #60] @ 0x3c - 80065a8: 4a42 ldr r2, [pc, #264] @ (80066b4 ) - 80065aa: 64da str r2, [r3, #76] @ 0x4c + 80065f8: 68fb ldr r3, [r7, #12] + 80065fa: 6bdb ldr r3, [r3, #60] @ 0x3c + 80065fc: 4a42 ldr r2, [pc, #264] @ (8006708 ) + 80065fe: 64da str r2, [r3, #76] @ 0x4c /* Set the DMA abort callback */ huart->hdmarx->XferAbortCallback = NULL; - 80065ac: 68fb ldr r3, [r7, #12] - 80065ae: 6bdb ldr r3, [r3, #60] @ 0x3c - 80065b0: 2200 movs r2, #0 - 80065b2: 651a str r2, [r3, #80] @ 0x50 + 8006600: 68fb ldr r3, [r7, #12] + 8006602: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006604: 2200 movs r2, #0 + 8006606: 651a str r2, [r3, #80] @ 0x50 /* Enable the DMA stream */ tmp = (uint32_t *)&pData; - 80065b4: f107 0308 add.w r3, r7, #8 - 80065b8: 65fb str r3, [r7, #92] @ 0x5c + 8006608: f107 0308 add.w r3, r7, #8 + 800660c: 65fb str r3, [r7, #92] @ 0x5c if (HAL_DMA_Start_IT(huart->hdmarx, (uint32_t)&huart->Instance->DR, *(uint32_t *)tmp, Size) != HAL_OK) - 80065ba: 68fb ldr r3, [r7, #12] - 80065bc: 6bd8 ldr r0, [r3, #60] @ 0x3c - 80065be: 68fb ldr r3, [r7, #12] - 80065c0: 681b ldr r3, [r3, #0] - 80065c2: 3304 adds r3, #4 - 80065c4: 4619 mov r1, r3 - 80065c6: 6dfb ldr r3, [r7, #92] @ 0x5c - 80065c8: 681a ldr r2, [r3, #0] - 80065ca: 88fb ldrh r3, [r7, #6] - 80065cc: f7fb fc94 bl 8001ef8 - 80065d0: 4603 mov r3, r0 - 80065d2: 2b00 cmp r3, #0 - 80065d4: d008 beq.n 80065e8 + 800660e: 68fb ldr r3, [r7, #12] + 8006610: 6bd8 ldr r0, [r3, #60] @ 0x3c + 8006612: 68fb ldr r3, [r7, #12] + 8006614: 681b ldr r3, [r3, #0] + 8006616: 3304 adds r3, #4 + 8006618: 4619 mov r1, r3 + 800661a: 6dfb ldr r3, [r7, #92] @ 0x5c + 800661c: 681a ldr r2, [r3, #0] + 800661e: 88fb ldrh r3, [r7, #6] + 8006620: f7fb fc94 bl 8001f4c + 8006624: 4603 mov r3, r0 + 8006626: 2b00 cmp r3, #0 + 8006628: d008 beq.n 800663c { /* Set error code to DMA */ huart->ErrorCode = HAL_UART_ERROR_DMA; - 80065d6: 68fb ldr r3, [r7, #12] - 80065d8: 2210 movs r2, #16 - 80065da: 645a str r2, [r3, #68] @ 0x44 + 800662a: 68fb ldr r3, [r7, #12] + 800662c: 2210 movs r2, #16 + 800662e: 645a str r2, [r3, #68] @ 0x44 /* Restore huart->RxState to ready */ huart->RxState = HAL_UART_STATE_READY; - 80065dc: 68fb ldr r3, [r7, #12] - 80065de: 2220 movs r2, #32 - 80065e0: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8006630: 68fb ldr r3, [r7, #12] + 8006632: 2220 movs r2, #32 + 8006634: f883 2042 strb.w r2, [r3, #66] @ 0x42 return HAL_ERROR; - 80065e4: 2301 movs r3, #1 - 80065e6: e05d b.n 80066a4 + 8006638: 2301 movs r3, #1 + 800663a: e05d b.n 80066f8 } /* Clear the Overrun flag just before enabling the DMA Rx request: can be mandatory for the second transfer */ __HAL_UART_CLEAR_OREFLAG(huart); - 80065e8: 2300 movs r3, #0 - 80065ea: 613b str r3, [r7, #16] - 80065ec: 68fb ldr r3, [r7, #12] - 80065ee: 681b ldr r3, [r3, #0] - 80065f0: 681b ldr r3, [r3, #0] - 80065f2: 613b str r3, [r7, #16] - 80065f4: 68fb ldr r3, [r7, #12] - 80065f6: 681b ldr r3, [r3, #0] - 80065f8: 685b ldr r3, [r3, #4] - 80065fa: 613b str r3, [r7, #16] - 80065fc: 693b ldr r3, [r7, #16] + 800663c: 2300 movs r3, #0 + 800663e: 613b str r3, [r7, #16] + 8006640: 68fb ldr r3, [r7, #12] + 8006642: 681b ldr r3, [r3, #0] + 8006644: 681b ldr r3, [r3, #0] + 8006646: 613b str r3, [r7, #16] + 8006648: 68fb ldr r3, [r7, #12] + 800664a: 681b ldr r3, [r3, #0] + 800664c: 685b ldr r3, [r3, #4] + 800664e: 613b str r3, [r7, #16] + 8006650: 693b ldr r3, [r7, #16] if (huart->Init.Parity != UART_PARITY_NONE) - 80065fe: 68fb ldr r3, [r7, #12] - 8006600: 691b ldr r3, [r3, #16] - 8006602: 2b00 cmp r3, #0 - 8006604: d019 beq.n 800663a + 8006652: 68fb ldr r3, [r7, #12] + 8006654: 691b ldr r3, [r3, #16] + 8006656: 2b00 cmp r3, #0 + 8006658: d019 beq.n 800668e { /* Enable the UART Parity Error Interrupt */ ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); - 8006606: 68fb ldr r3, [r7, #12] - 8006608: 681b ldr r3, [r3, #0] - 800660a: 330c adds r3, #12 - 800660c: 643b str r3, [r7, #64] @ 0x40 + 800665a: 68fb ldr r3, [r7, #12] + 800665c: 681b ldr r3, [r3, #0] + 800665e: 330c adds r3, #12 + 8006660: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800660e: 6c3b ldr r3, [r7, #64] @ 0x40 - 8006610: e853 3f00 ldrex r3, [r3] - 8006614: 63fb str r3, [r7, #60] @ 0x3c + 8006662: 6c3b ldr r3, [r7, #64] @ 0x40 + 8006664: e853 3f00 ldrex r3, [r3] + 8006668: 63fb str r3, [r7, #60] @ 0x3c return(result); - 8006616: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006618: f443 7380 orr.w r3, r3, #256 @ 0x100 - 800661c: 65bb str r3, [r7, #88] @ 0x58 - 800661e: 68fb ldr r3, [r7, #12] - 8006620: 681b ldr r3, [r3, #0] - 8006622: 330c adds r3, #12 - 8006624: 6dba ldr r2, [r7, #88] @ 0x58 - 8006626: 64fa str r2, [r7, #76] @ 0x4c - 8006628: 64bb str r3, [r7, #72] @ 0x48 + 800666a: 6bfb ldr r3, [r7, #60] @ 0x3c + 800666c: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8006670: 65bb str r3, [r7, #88] @ 0x58 + 8006672: 68fb ldr r3, [r7, #12] + 8006674: 681b ldr r3, [r3, #0] + 8006676: 330c adds r3, #12 + 8006678: 6dba ldr r2, [r7, #88] @ 0x58 + 800667a: 64fa str r2, [r7, #76] @ 0x4c + 800667c: 64bb str r3, [r7, #72] @ 0x48 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800662a: 6cb9 ldr r1, [r7, #72] @ 0x48 - 800662c: 6cfa ldr r2, [r7, #76] @ 0x4c - 800662e: e841 2300 strex r3, r2, [r1] - 8006632: 647b str r3, [r7, #68] @ 0x44 + 800667e: 6cb9 ldr r1, [r7, #72] @ 0x48 + 8006680: 6cfa ldr r2, [r7, #76] @ 0x4c + 8006682: e841 2300 strex r3, r2, [r1] + 8006686: 647b str r3, [r7, #68] @ 0x44 return(result); - 8006634: 6c7b ldr r3, [r7, #68] @ 0x44 - 8006636: 2b00 cmp r3, #0 - 8006638: d1e5 bne.n 8006606 + 8006688: 6c7b ldr r3, [r7, #68] @ 0x44 + 800668a: 2b00 cmp r3, #0 + 800668c: d1e5 bne.n 800665a } /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */ ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE); - 800663a: 68fb ldr r3, [r7, #12] - 800663c: 681b ldr r3, [r3, #0] - 800663e: 3314 adds r3, #20 - 8006640: 62fb str r3, [r7, #44] @ 0x2c + 800668e: 68fb ldr r3, [r7, #12] + 8006690: 681b ldr r3, [r3, #0] + 8006692: 3314 adds r3, #20 + 8006694: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006642: 6afb ldr r3, [r7, #44] @ 0x2c - 8006644: e853 3f00 ldrex r3, [r3] - 8006648: 62bb str r3, [r7, #40] @ 0x28 + 8006696: 6afb ldr r3, [r7, #44] @ 0x2c + 8006698: e853 3f00 ldrex r3, [r3] + 800669c: 62bb str r3, [r7, #40] @ 0x28 return(result); - 800664a: 6abb ldr r3, [r7, #40] @ 0x28 - 800664c: f043 0301 orr.w r3, r3, #1 - 8006650: 657b str r3, [r7, #84] @ 0x54 - 8006652: 68fb ldr r3, [r7, #12] - 8006654: 681b ldr r3, [r3, #0] - 8006656: 3314 adds r3, #20 - 8006658: 6d7a ldr r2, [r7, #84] @ 0x54 - 800665a: 63ba str r2, [r7, #56] @ 0x38 - 800665c: 637b str r3, [r7, #52] @ 0x34 + 800669e: 6abb ldr r3, [r7, #40] @ 0x28 + 80066a0: f043 0301 orr.w r3, r3, #1 + 80066a4: 657b str r3, [r7, #84] @ 0x54 + 80066a6: 68fb ldr r3, [r7, #12] + 80066a8: 681b ldr r3, [r3, #0] + 80066aa: 3314 adds r3, #20 + 80066ac: 6d7a ldr r2, [r7, #84] @ 0x54 + 80066ae: 63ba str r2, [r7, #56] @ 0x38 + 80066b0: 637b str r3, [r7, #52] @ 0x34 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800665e: 6b79 ldr r1, [r7, #52] @ 0x34 - 8006660: 6bba ldr r2, [r7, #56] @ 0x38 - 8006662: e841 2300 strex r3, r2, [r1] - 8006666: 633b str r3, [r7, #48] @ 0x30 + 80066b2: 6b79 ldr r1, [r7, #52] @ 0x34 + 80066b4: 6bba ldr r2, [r7, #56] @ 0x38 + 80066b6: e841 2300 strex r3, r2, [r1] + 80066ba: 633b str r3, [r7, #48] @ 0x30 return(result); - 8006668: 6b3b ldr r3, [r7, #48] @ 0x30 - 800666a: 2b00 cmp r3, #0 - 800666c: d1e5 bne.n 800663a + 80066bc: 6b3b ldr r3, [r7, #48] @ 0x30 + 80066be: 2b00 cmp r3, #0 + 80066c0: d1e5 bne.n 800668e /* Enable the DMA transfer for the receiver request by setting the DMAR bit in the UART CR3 register */ ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_DMAR); - 800666e: 68fb ldr r3, [r7, #12] - 8006670: 681b ldr r3, [r3, #0] - 8006672: 3314 adds r3, #20 - 8006674: 61bb str r3, [r7, #24] + 80066c2: 68fb ldr r3, [r7, #12] + 80066c4: 681b ldr r3, [r3, #0] + 80066c6: 3314 adds r3, #20 + 80066c8: 61bb str r3, [r7, #24] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006676: 69bb ldr r3, [r7, #24] - 8006678: e853 3f00 ldrex r3, [r3] - 800667c: 617b str r3, [r7, #20] + 80066ca: 69bb ldr r3, [r7, #24] + 80066cc: e853 3f00 ldrex r3, [r3] + 80066d0: 617b str r3, [r7, #20] return(result); - 800667e: 697b ldr r3, [r7, #20] - 8006680: f043 0340 orr.w r3, r3, #64 @ 0x40 - 8006684: 653b str r3, [r7, #80] @ 0x50 - 8006686: 68fb ldr r3, [r7, #12] - 8006688: 681b ldr r3, [r3, #0] - 800668a: 3314 adds r3, #20 - 800668c: 6d3a ldr r2, [r7, #80] @ 0x50 - 800668e: 627a str r2, [r7, #36] @ 0x24 - 8006690: 623b str r3, [r7, #32] + 80066d2: 697b ldr r3, [r7, #20] + 80066d4: f043 0340 orr.w r3, r3, #64 @ 0x40 + 80066d8: 653b str r3, [r7, #80] @ 0x50 + 80066da: 68fb ldr r3, [r7, #12] + 80066dc: 681b ldr r3, [r3, #0] + 80066de: 3314 adds r3, #20 + 80066e0: 6d3a ldr r2, [r7, #80] @ 0x50 + 80066e2: 627a str r2, [r7, #36] @ 0x24 + 80066e4: 623b str r3, [r7, #32] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006692: 6a39 ldr r1, [r7, #32] - 8006694: 6a7a ldr r2, [r7, #36] @ 0x24 - 8006696: e841 2300 strex r3, r2, [r1] - 800669a: 61fb str r3, [r7, #28] + 80066e6: 6a39 ldr r1, [r7, #32] + 80066e8: 6a7a ldr r2, [r7, #36] @ 0x24 + 80066ea: e841 2300 strex r3, r2, [r1] + 80066ee: 61fb str r3, [r7, #28] return(result); - 800669c: 69fb ldr r3, [r7, #28] - 800669e: 2b00 cmp r3, #0 - 80066a0: d1e5 bne.n 800666e + 80066f0: 69fb ldr r3, [r7, #28] + 80066f2: 2b00 cmp r3, #0 + 80066f4: d1e5 bne.n 80066c2 return HAL_OK; - 80066a2: 2300 movs r3, #0 + 80066f6: 2300 movs r3, #0 } - 80066a4: 4618 mov r0, r3 - 80066a6: 3760 adds r7, #96 @ 0x60 - 80066a8: 46bd mov sp, r7 - 80066aa: bd80 pop {r7, pc} - 80066ac: 0800636f .word 0x0800636f - 80066b0: 0800649b .word 0x0800649b - 80066b4: 080064d7 .word 0x080064d7 + 80066f8: 4618 mov r0, r3 + 80066fa: 3760 adds r7, #96 @ 0x60 + 80066fc: 46bd mov sp, r7 + 80066fe: bd80 pop {r7, pc} + 8006700: 080063c3 .word 0x080063c3 + 8006704: 080064ef .word 0x080064ef + 8006708: 0800652b .word 0x0800652b -080066b8 : +0800670c : * @brief End ongoing Tx transfer on UART peripheral (following error detection or Transmit completion). * @param huart UART handle. * @retval None */ static void UART_EndTxTransfer(UART_HandleTypeDef *huart) { - 80066b8: b480 push {r7} - 80066ba: b089 sub sp, #36 @ 0x24 - 80066bc: af00 add r7, sp, #0 - 80066be: 6078 str r0, [r7, #4] + 800670c: b480 push {r7} + 800670e: b089 sub sp, #36 @ 0x24 + 8006710: af00 add r7, sp, #0 + 8006712: 6078 str r0, [r7, #4] /* Disable TXEIE and TCIE interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE)); - 80066c0: 687b ldr r3, [r7, #4] - 80066c2: 681b ldr r3, [r3, #0] - 80066c4: 330c adds r3, #12 - 80066c6: 60fb str r3, [r7, #12] + 8006714: 687b ldr r3, [r7, #4] + 8006716: 681b ldr r3, [r3, #0] + 8006718: 330c adds r3, #12 + 800671a: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80066c8: 68fb ldr r3, [r7, #12] - 80066ca: e853 3f00 ldrex r3, [r3] - 80066ce: 60bb str r3, [r7, #8] + 800671c: 68fb ldr r3, [r7, #12] + 800671e: e853 3f00 ldrex r3, [r3] + 8006722: 60bb str r3, [r7, #8] return(result); - 80066d0: 68bb ldr r3, [r7, #8] - 80066d2: f023 03c0 bic.w r3, r3, #192 @ 0xc0 - 80066d6: 61fb str r3, [r7, #28] - 80066d8: 687b ldr r3, [r7, #4] - 80066da: 681b ldr r3, [r3, #0] - 80066dc: 330c adds r3, #12 - 80066de: 69fa ldr r2, [r7, #28] - 80066e0: 61ba str r2, [r7, #24] - 80066e2: 617b str r3, [r7, #20] + 8006724: 68bb ldr r3, [r7, #8] + 8006726: f023 03c0 bic.w r3, r3, #192 @ 0xc0 + 800672a: 61fb str r3, [r7, #28] + 800672c: 687b ldr r3, [r7, #4] + 800672e: 681b ldr r3, [r3, #0] + 8006730: 330c adds r3, #12 + 8006732: 69fa ldr r2, [r7, #28] + 8006734: 61ba str r2, [r7, #24] + 8006736: 617b str r3, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80066e4: 6979 ldr r1, [r7, #20] - 80066e6: 69ba ldr r2, [r7, #24] - 80066e8: e841 2300 strex r3, r2, [r1] - 80066ec: 613b str r3, [r7, #16] + 8006738: 6979 ldr r1, [r7, #20] + 800673a: 69ba ldr r2, [r7, #24] + 800673c: e841 2300 strex r3, r2, [r1] + 8006740: 613b str r3, [r7, #16] return(result); - 80066ee: 693b ldr r3, [r7, #16] - 80066f0: 2b00 cmp r3, #0 - 80066f2: d1e5 bne.n 80066c0 + 8006742: 693b ldr r3, [r7, #16] + 8006744: 2b00 cmp r3, #0 + 8006746: d1e5 bne.n 8006714 /* At end of Tx process, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; - 80066f4: 687b ldr r3, [r7, #4] - 80066f6: 2220 movs r2, #32 - 80066f8: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8006748: 687b ldr r3, [r7, #4] + 800674a: 2220 movs r2, #32 + 800674c: f883 2041 strb.w r2, [r3, #65] @ 0x41 } - 80066fc: bf00 nop - 80066fe: 3724 adds r7, #36 @ 0x24 - 8006700: 46bd mov sp, r7 - 8006702: f85d 7b04 ldr.w r7, [sp], #4 - 8006706: 4770 bx lr + 8006750: bf00 nop + 8006752: 3724 adds r7, #36 @ 0x24 + 8006754: 46bd mov sp, r7 + 8006756: f85d 7b04 ldr.w r7, [sp], #4 + 800675a: 4770 bx lr -08006708 : +0800675c : * @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion). * @param huart UART handle. * @retval None */ static void UART_EndRxTransfer(UART_HandleTypeDef *huart) { - 8006708: b480 push {r7} - 800670a: b095 sub sp, #84 @ 0x54 - 800670c: af00 add r7, sp, #0 - 800670e: 6078 str r0, [r7, #4] + 800675c: b480 push {r7} + 800675e: b095 sub sp, #84 @ 0x54 + 8006760: af00 add r7, sp, #0 + 8006762: 6078 str r0, [r7, #4] /* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); - 8006710: 687b ldr r3, [r7, #4] - 8006712: 681b ldr r3, [r3, #0] - 8006714: 330c adds r3, #12 - 8006716: 637b str r3, [r7, #52] @ 0x34 + 8006764: 687b ldr r3, [r7, #4] + 8006766: 681b ldr r3, [r3, #0] + 8006768: 330c adds r3, #12 + 800676a: 637b str r3, [r7, #52] @ 0x34 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006718: 6b7b ldr r3, [r7, #52] @ 0x34 - 800671a: e853 3f00 ldrex r3, [r3] - 800671e: 633b str r3, [r7, #48] @ 0x30 + 800676c: 6b7b ldr r3, [r7, #52] @ 0x34 + 800676e: e853 3f00 ldrex r3, [r3] + 8006772: 633b str r3, [r7, #48] @ 0x30 return(result); - 8006720: 6b3b ldr r3, [r7, #48] @ 0x30 - 8006722: f423 7390 bic.w r3, r3, #288 @ 0x120 - 8006726: 64fb str r3, [r7, #76] @ 0x4c - 8006728: 687b ldr r3, [r7, #4] - 800672a: 681b ldr r3, [r3, #0] - 800672c: 330c adds r3, #12 - 800672e: 6cfa ldr r2, [r7, #76] @ 0x4c - 8006730: 643a str r2, [r7, #64] @ 0x40 - 8006732: 63fb str r3, [r7, #60] @ 0x3c + 8006774: 6b3b ldr r3, [r7, #48] @ 0x30 + 8006776: f423 7390 bic.w r3, r3, #288 @ 0x120 + 800677a: 64fb str r3, [r7, #76] @ 0x4c + 800677c: 687b ldr r3, [r7, #4] + 800677e: 681b ldr r3, [r3, #0] + 8006780: 330c adds r3, #12 + 8006782: 6cfa ldr r2, [r7, #76] @ 0x4c + 8006784: 643a str r2, [r7, #64] @ 0x40 + 8006786: 63fb str r3, [r7, #60] @ 0x3c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006734: 6bf9 ldr r1, [r7, #60] @ 0x3c - 8006736: 6c3a ldr r2, [r7, #64] @ 0x40 - 8006738: e841 2300 strex r3, r2, [r1] - 800673c: 63bb str r3, [r7, #56] @ 0x38 + 8006788: 6bf9 ldr r1, [r7, #60] @ 0x3c + 800678a: 6c3a ldr r2, [r7, #64] @ 0x40 + 800678c: e841 2300 strex r3, r2, [r1] + 8006790: 63bb str r3, [r7, #56] @ 0x38 return(result); - 800673e: 6bbb ldr r3, [r7, #56] @ 0x38 - 8006740: 2b00 cmp r3, #0 - 8006742: d1e5 bne.n 8006710 + 8006792: 6bbb ldr r3, [r7, #56] @ 0x38 + 8006794: 2b00 cmp r3, #0 + 8006796: d1e5 bne.n 8006764 ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8006744: 687b ldr r3, [r7, #4] - 8006746: 681b ldr r3, [r3, #0] - 8006748: 3314 adds r3, #20 - 800674a: 623b str r3, [r7, #32] + 8006798: 687b ldr r3, [r7, #4] + 800679a: 681b ldr r3, [r3, #0] + 800679c: 3314 adds r3, #20 + 800679e: 623b str r3, [r7, #32] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800674c: 6a3b ldr r3, [r7, #32] - 800674e: e853 3f00 ldrex r3, [r3] - 8006752: 61fb str r3, [r7, #28] + 80067a0: 6a3b ldr r3, [r7, #32] + 80067a2: e853 3f00 ldrex r3, [r3] + 80067a6: 61fb str r3, [r7, #28] return(result); - 8006754: 69fb ldr r3, [r7, #28] - 8006756: f023 0301 bic.w r3, r3, #1 - 800675a: 64bb str r3, [r7, #72] @ 0x48 - 800675c: 687b ldr r3, [r7, #4] - 800675e: 681b ldr r3, [r3, #0] - 8006760: 3314 adds r3, #20 - 8006762: 6cba ldr r2, [r7, #72] @ 0x48 - 8006764: 62fa str r2, [r7, #44] @ 0x2c - 8006766: 62bb str r3, [r7, #40] @ 0x28 + 80067a8: 69fb ldr r3, [r7, #28] + 80067aa: f023 0301 bic.w r3, r3, #1 + 80067ae: 64bb str r3, [r7, #72] @ 0x48 + 80067b0: 687b ldr r3, [r7, #4] + 80067b2: 681b ldr r3, [r3, #0] + 80067b4: 3314 adds r3, #20 + 80067b6: 6cba ldr r2, [r7, #72] @ 0x48 + 80067b8: 62fa str r2, [r7, #44] @ 0x2c + 80067ba: 62bb str r3, [r7, #40] @ 0x28 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006768: 6ab9 ldr r1, [r7, #40] @ 0x28 - 800676a: 6afa ldr r2, [r7, #44] @ 0x2c - 800676c: e841 2300 strex r3, r2, [r1] - 8006770: 627b str r3, [r7, #36] @ 0x24 + 80067bc: 6ab9 ldr r1, [r7, #40] @ 0x28 + 80067be: 6afa ldr r2, [r7, #44] @ 0x2c + 80067c0: e841 2300 strex r3, r2, [r1] + 80067c4: 627b str r3, [r7, #36] @ 0x24 return(result); - 8006772: 6a7b ldr r3, [r7, #36] @ 0x24 - 8006774: 2b00 cmp r3, #0 - 8006776: d1e5 bne.n 8006744 + 80067c6: 6a7b ldr r3, [r7, #36] @ 0x24 + 80067c8: 2b00 cmp r3, #0 + 80067ca: d1e5 bne.n 8006798 /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8006778: 687b ldr r3, [r7, #4] - 800677a: 6b1b ldr r3, [r3, #48] @ 0x30 - 800677c: 2b01 cmp r3, #1 - 800677e: d119 bne.n 80067b4 + 80067cc: 687b ldr r3, [r7, #4] + 80067ce: 6b1b ldr r3, [r3, #48] @ 0x30 + 80067d0: 2b01 cmp r3, #1 + 80067d2: d119 bne.n 8006808 { ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8006780: 687b ldr r3, [r7, #4] - 8006782: 681b ldr r3, [r3, #0] - 8006784: 330c adds r3, #12 - 8006786: 60fb str r3, [r7, #12] + 80067d4: 687b ldr r3, [r7, #4] + 80067d6: 681b ldr r3, [r3, #0] + 80067d8: 330c adds r3, #12 + 80067da: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006788: 68fb ldr r3, [r7, #12] - 800678a: e853 3f00 ldrex r3, [r3] - 800678e: 60bb str r3, [r7, #8] + 80067dc: 68fb ldr r3, [r7, #12] + 80067de: e853 3f00 ldrex r3, [r3] + 80067e2: 60bb str r3, [r7, #8] return(result); - 8006790: 68bb ldr r3, [r7, #8] - 8006792: f023 0310 bic.w r3, r3, #16 - 8006796: 647b str r3, [r7, #68] @ 0x44 - 8006798: 687b ldr r3, [r7, #4] - 800679a: 681b ldr r3, [r3, #0] - 800679c: 330c adds r3, #12 - 800679e: 6c7a ldr r2, [r7, #68] @ 0x44 - 80067a0: 61ba str r2, [r7, #24] - 80067a2: 617b str r3, [r7, #20] + 80067e4: 68bb ldr r3, [r7, #8] + 80067e6: f023 0310 bic.w r3, r3, #16 + 80067ea: 647b str r3, [r7, #68] @ 0x44 + 80067ec: 687b ldr r3, [r7, #4] + 80067ee: 681b ldr r3, [r3, #0] + 80067f0: 330c adds r3, #12 + 80067f2: 6c7a ldr r2, [r7, #68] @ 0x44 + 80067f4: 61ba str r2, [r7, #24] + 80067f6: 617b str r3, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80067a4: 6979 ldr r1, [r7, #20] - 80067a6: 69ba ldr r2, [r7, #24] - 80067a8: e841 2300 strex r3, r2, [r1] - 80067ac: 613b str r3, [r7, #16] + 80067f8: 6979 ldr r1, [r7, #20] + 80067fa: 69ba ldr r2, [r7, #24] + 80067fc: e841 2300 strex r3, r2, [r1] + 8006800: 613b str r3, [r7, #16] return(result); - 80067ae: 693b ldr r3, [r7, #16] - 80067b0: 2b00 cmp r3, #0 - 80067b2: d1e5 bne.n 8006780 + 8006802: 693b ldr r3, [r7, #16] + 8006804: 2b00 cmp r3, #0 + 8006806: d1e5 bne.n 80067d4 } /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 80067b4: 687b ldr r3, [r7, #4] - 80067b6: 2220 movs r2, #32 - 80067b8: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8006808: 687b ldr r3, [r7, #4] + 800680a: 2220 movs r2, #32 + 800680c: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 80067bc: 687b ldr r3, [r7, #4] - 80067be: 2200 movs r2, #0 - 80067c0: 631a str r2, [r3, #48] @ 0x30 + 8006810: 687b ldr r3, [r7, #4] + 8006812: 2200 movs r2, #0 + 8006814: 631a str r2, [r3, #48] @ 0x30 } - 80067c2: bf00 nop - 80067c4: 3754 adds r7, #84 @ 0x54 - 80067c6: 46bd mov sp, r7 - 80067c8: f85d 7b04 ldr.w r7, [sp], #4 - 80067cc: 4770 bx lr + 8006816: bf00 nop + 8006818: 3754 adds r7, #84 @ 0x54 + 800681a: 46bd mov sp, r7 + 800681c: f85d 7b04 ldr.w r7, [sp], #4 + 8006820: 4770 bx lr -080067ce : +08006822 : * @param hdma Pointer to a DMA_HandleTypeDef structure that contains * the configuration information for the specified DMA module. * @retval None */ static void UART_DMAAbortOnError(DMA_HandleTypeDef *hdma) { - 80067ce: b580 push {r7, lr} - 80067d0: b084 sub sp, #16 - 80067d2: af00 add r7, sp, #0 - 80067d4: 6078 str r0, [r7, #4] + 8006822: b580 push {r7, lr} + 8006824: b084 sub sp, #16 + 8006826: af00 add r7, sp, #0 + 8006828: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 80067d6: 687b ldr r3, [r7, #4] - 80067d8: 6b9b ldr r3, [r3, #56] @ 0x38 - 80067da: 60fb str r3, [r7, #12] + 800682a: 687b ldr r3, [r7, #4] + 800682c: 6b9b ldr r3, [r3, #56] @ 0x38 + 800682e: 60fb str r3, [r7, #12] huart->RxXferCount = 0x00U; - 80067dc: 68fb ldr r3, [r7, #12] - 80067de: 2200 movs r2, #0 - 80067e0: 85da strh r2, [r3, #46] @ 0x2e + 8006830: 68fb ldr r3, [r7, #12] + 8006832: 2200 movs r2, #0 + 8006834: 85da strh r2, [r3, #46] @ 0x2e #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 80067e2: 68f8 ldr r0, [r7, #12] - 80067e4: f7fa f9ba bl 8000b5c + 8006836: 68f8 ldr r0, [r7, #12] + 8006838: f7fa f9a2 bl 8000b80 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } - 80067e8: bf00 nop - 80067ea: 3710 adds r7, #16 - 80067ec: 46bd mov sp, r7 - 80067ee: bd80 pop {r7, pc} + 800683c: bf00 nop + 800683e: 3710 adds r7, #16 + 8006840: 46bd mov sp, r7 + 8006842: bd80 pop {r7, pc} -080067f0 : +08006844 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_Transmit_IT(UART_HandleTypeDef *huart) { - 80067f0: b480 push {r7} - 80067f2: b085 sub sp, #20 - 80067f4: af00 add r7, sp, #0 - 80067f6: 6078 str r0, [r7, #4] + 8006844: b480 push {r7} + 8006846: b085 sub sp, #20 + 8006848: af00 add r7, sp, #0 + 800684a: 6078 str r0, [r7, #4] const uint16_t *tmp; /* Check that a Tx process is ongoing */ if (huart->gState == HAL_UART_STATE_BUSY_TX) - 80067f8: 687b ldr r3, [r7, #4] - 80067fa: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 80067fe: b2db uxtb r3, r3 - 8006800: 2b21 cmp r3, #33 @ 0x21 - 8006802: d13e bne.n 8006882 + 800684c: 687b ldr r3, [r7, #4] + 800684e: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 8006852: b2db uxtb r3, r3 + 8006854: 2b21 cmp r3, #33 @ 0x21 + 8006856: d13e bne.n 80068d6 { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 8006804: 687b ldr r3, [r7, #4] - 8006806: 689b ldr r3, [r3, #8] - 8006808: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 800680c: d114 bne.n 8006838 - 800680e: 687b ldr r3, [r7, #4] - 8006810: 691b ldr r3, [r3, #16] - 8006812: 2b00 cmp r3, #0 - 8006814: d110 bne.n 8006838 + 8006858: 687b ldr r3, [r7, #4] + 800685a: 689b ldr r3, [r3, #8] + 800685c: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 8006860: d114 bne.n 800688c + 8006862: 687b ldr r3, [r7, #4] + 8006864: 691b ldr r3, [r3, #16] + 8006866: 2b00 cmp r3, #0 + 8006868: d110 bne.n 800688c { tmp = (const uint16_t *) huart->pTxBuffPtr; - 8006816: 687b ldr r3, [r7, #4] - 8006818: 6a1b ldr r3, [r3, #32] - 800681a: 60fb str r3, [r7, #12] + 800686a: 687b ldr r3, [r7, #4] + 800686c: 6a1b ldr r3, [r3, #32] + 800686e: 60fb str r3, [r7, #12] huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF); - 800681c: 68fb ldr r3, [r7, #12] - 800681e: 881b ldrh r3, [r3, #0] - 8006820: 461a mov r2, r3 - 8006822: 687b ldr r3, [r7, #4] - 8006824: 681b ldr r3, [r3, #0] - 8006826: f3c2 0208 ubfx r2, r2, #0, #9 - 800682a: 605a str r2, [r3, #4] + 8006870: 68fb ldr r3, [r7, #12] + 8006872: 881b ldrh r3, [r3, #0] + 8006874: 461a mov r2, r3 + 8006876: 687b ldr r3, [r7, #4] + 8006878: 681b ldr r3, [r3, #0] + 800687a: f3c2 0208 ubfx r2, r2, #0, #9 + 800687e: 605a str r2, [r3, #4] huart->pTxBuffPtr += 2U; - 800682c: 687b ldr r3, [r7, #4] - 800682e: 6a1b ldr r3, [r3, #32] - 8006830: 1c9a adds r2, r3, #2 - 8006832: 687b ldr r3, [r7, #4] - 8006834: 621a str r2, [r3, #32] - 8006836: e008 b.n 800684a + 8006880: 687b ldr r3, [r7, #4] + 8006882: 6a1b ldr r3, [r3, #32] + 8006884: 1c9a adds r2, r3, #2 + 8006886: 687b ldr r3, [r7, #4] + 8006888: 621a str r2, [r3, #32] + 800688a: e008 b.n 800689e } else { huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF); - 8006838: 687b ldr r3, [r7, #4] - 800683a: 6a1b ldr r3, [r3, #32] - 800683c: 1c59 adds r1, r3, #1 - 800683e: 687a ldr r2, [r7, #4] - 8006840: 6211 str r1, [r2, #32] - 8006842: 781a ldrb r2, [r3, #0] - 8006844: 687b ldr r3, [r7, #4] - 8006846: 681b ldr r3, [r3, #0] - 8006848: 605a str r2, [r3, #4] + 800688c: 687b ldr r3, [r7, #4] + 800688e: 6a1b ldr r3, [r3, #32] + 8006890: 1c59 adds r1, r3, #1 + 8006892: 687a ldr r2, [r7, #4] + 8006894: 6211 str r1, [r2, #32] + 8006896: 781a ldrb r2, [r3, #0] + 8006898: 687b ldr r3, [r7, #4] + 800689a: 681b ldr r3, [r3, #0] + 800689c: 605a str r2, [r3, #4] } if (--huart->TxXferCount == 0U) - 800684a: 687b ldr r3, [r7, #4] - 800684c: 8cdb ldrh r3, [r3, #38] @ 0x26 - 800684e: b29b uxth r3, r3 - 8006850: 3b01 subs r3, #1 - 8006852: b29b uxth r3, r3 - 8006854: 687a ldr r2, [r7, #4] - 8006856: 4619 mov r1, r3 - 8006858: 84d1 strh r1, [r2, #38] @ 0x26 - 800685a: 2b00 cmp r3, #0 - 800685c: d10f bne.n 800687e + 800689e: 687b ldr r3, [r7, #4] + 80068a0: 8cdb ldrh r3, [r3, #38] @ 0x26 + 80068a2: b29b uxth r3, r3 + 80068a4: 3b01 subs r3, #1 + 80068a6: b29b uxth r3, r3 + 80068a8: 687a ldr r2, [r7, #4] + 80068aa: 4619 mov r1, r3 + 80068ac: 84d1 strh r1, [r2, #38] @ 0x26 + 80068ae: 2b00 cmp r3, #0 + 80068b0: d10f bne.n 80068d2 { /* Disable the UART Transmit Data Register Empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TXE); - 800685e: 687b ldr r3, [r7, #4] - 8006860: 681b ldr r3, [r3, #0] - 8006862: 68da ldr r2, [r3, #12] - 8006864: 687b ldr r3, [r7, #4] - 8006866: 681b ldr r3, [r3, #0] - 8006868: f022 0280 bic.w r2, r2, #128 @ 0x80 - 800686c: 60da str r2, [r3, #12] + 80068b2: 687b ldr r3, [r7, #4] + 80068b4: 681b ldr r3, [r3, #0] + 80068b6: 68da ldr r2, [r3, #12] + 80068b8: 687b ldr r3, [r7, #4] + 80068ba: 681b ldr r3, [r3, #0] + 80068bc: f022 0280 bic.w r2, r2, #128 @ 0x80 + 80068c0: 60da str r2, [r3, #12] /* Enable the UART Transmit Complete Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_TC); - 800686e: 687b ldr r3, [r7, #4] - 8006870: 681b ldr r3, [r3, #0] - 8006872: 68da ldr r2, [r3, #12] - 8006874: 687b ldr r3, [r7, #4] - 8006876: 681b ldr r3, [r3, #0] - 8006878: f042 0240 orr.w r2, r2, #64 @ 0x40 - 800687c: 60da str r2, [r3, #12] + 80068c2: 687b ldr r3, [r7, #4] + 80068c4: 681b ldr r3, [r3, #0] + 80068c6: 68da ldr r2, [r3, #12] + 80068c8: 687b ldr r3, [r7, #4] + 80068ca: 681b ldr r3, [r3, #0] + 80068cc: f042 0240 orr.w r2, r2, #64 @ 0x40 + 80068d0: 60da str r2, [r3, #12] } return HAL_OK; - 800687e: 2300 movs r3, #0 - 8006880: e000 b.n 8006884 + 80068d2: 2300 movs r3, #0 + 80068d4: e000 b.n 80068d8 } else { return HAL_BUSY; - 8006882: 2302 movs r3, #2 + 80068d6: 2302 movs r3, #2 } } - 8006884: 4618 mov r0, r3 - 8006886: 3714 adds r7, #20 - 8006888: 46bd mov sp, r7 - 800688a: f85d 7b04 ldr.w r7, [sp], #4 - 800688e: 4770 bx lr + 80068d8: 4618 mov r0, r3 + 80068da: 3714 adds r7, #20 + 80068dc: 46bd mov sp, r7 + 80068de: f85d 7b04 ldr.w r7, [sp], #4 + 80068e2: 4770 bx lr -08006890 : +080068e4 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_EndTransmit_IT(UART_HandleTypeDef *huart) { - 8006890: b580 push {r7, lr} - 8006892: b082 sub sp, #8 - 8006894: af00 add r7, sp, #0 - 8006896: 6078 str r0, [r7, #4] + 80068e4: b580 push {r7, lr} + 80068e6: b082 sub sp, #8 + 80068e8: af00 add r7, sp, #0 + 80068ea: 6078 str r0, [r7, #4] /* Disable the UART Transmit Complete Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TC); - 8006898: 687b ldr r3, [r7, #4] - 800689a: 681b ldr r3, [r3, #0] - 800689c: 68da ldr r2, [r3, #12] - 800689e: 687b ldr r3, [r7, #4] - 80068a0: 681b ldr r3, [r3, #0] - 80068a2: f022 0240 bic.w r2, r2, #64 @ 0x40 - 80068a6: 60da str r2, [r3, #12] + 80068ec: 687b ldr r3, [r7, #4] + 80068ee: 681b ldr r3, [r3, #0] + 80068f0: 68da ldr r2, [r3, #12] + 80068f2: 687b ldr r3, [r7, #4] + 80068f4: 681b ldr r3, [r3, #0] + 80068f6: f022 0240 bic.w r2, r2, #64 @ 0x40 + 80068fa: 60da str r2, [r3, #12] /* Tx process is ended, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; - 80068a8: 687b ldr r3, [r7, #4] - 80068aa: 2220 movs r2, #32 - 80068ac: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 80068fc: 687b ldr r3, [r7, #4] + 80068fe: 2220 movs r2, #32 + 8006900: f883 2041 strb.w r2, [r3, #65] @ 0x41 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Tx complete callback*/ huart->TxCpltCallback(huart); #else /*Call legacy weak Tx complete callback*/ HAL_UART_TxCpltCallback(huart); - 80068b0: 6878 ldr r0, [r7, #4] - 80068b2: f7ff fcd7 bl 8006264 + 8006904: 6878 ldr r0, [r7, #4] + 8006906: f7ff fcd7 bl 80062b8 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ return HAL_OK; - 80068b6: 2300 movs r3, #0 + 800690a: 2300 movs r3, #0 } - 80068b8: 4618 mov r0, r3 - 80068ba: 3708 adds r7, #8 - 80068bc: 46bd mov sp, r7 - 80068be: bd80 pop {r7, pc} + 800690c: 4618 mov r0, r3 + 800690e: 3708 adds r7, #8 + 8006910: 46bd mov sp, r7 + 8006912: bd80 pop {r7, pc} -080068c0 : +08006914 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval HAL status */ static HAL_StatusTypeDef UART_Receive_IT(UART_HandleTypeDef *huart) { - 80068c0: b580 push {r7, lr} - 80068c2: b08c sub sp, #48 @ 0x30 - 80068c4: af00 add r7, sp, #0 - 80068c6: 6078 str r0, [r7, #4] + 8006914: b580 push {r7, lr} + 8006916: b08c sub sp, #48 @ 0x30 + 8006918: af00 add r7, sp, #0 + 800691a: 6078 str r0, [r7, #4] uint8_t *pdata8bits = NULL; - 80068c8: 2300 movs r3, #0 - 80068ca: 62fb str r3, [r7, #44] @ 0x2c + 800691c: 2300 movs r3, #0 + 800691e: 62fb str r3, [r7, #44] @ 0x2c uint16_t *pdata16bits = NULL; - 80068cc: 2300 movs r3, #0 - 80068ce: 62bb str r3, [r7, #40] @ 0x28 + 8006920: 2300 movs r3, #0 + 8006922: 62bb str r3, [r7, #40] @ 0x28 /* Check that a Rx process is ongoing */ if (huart->RxState == HAL_UART_STATE_BUSY_RX) - 80068d0: 687b ldr r3, [r7, #4] - 80068d2: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 - 80068d6: b2db uxtb r3, r3 - 80068d8: 2b22 cmp r3, #34 @ 0x22 - 80068da: f040 80aa bne.w 8006a32 + 8006924: 687b ldr r3, [r7, #4] + 8006926: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 + 800692a: b2db uxtb r3, r3 + 800692c: 2b22 cmp r3, #34 @ 0x22 + 800692e: f040 80aa bne.w 8006a86 { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 80068de: 687b ldr r3, [r7, #4] - 80068e0: 689b ldr r3, [r3, #8] - 80068e2: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 80068e6: d115 bne.n 8006914 - 80068e8: 687b ldr r3, [r7, #4] - 80068ea: 691b ldr r3, [r3, #16] - 80068ec: 2b00 cmp r3, #0 - 80068ee: d111 bne.n 8006914 + 8006932: 687b ldr r3, [r7, #4] + 8006934: 689b ldr r3, [r3, #8] + 8006936: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 800693a: d115 bne.n 8006968 + 800693c: 687b ldr r3, [r7, #4] + 800693e: 691b ldr r3, [r3, #16] + 8006940: 2b00 cmp r3, #0 + 8006942: d111 bne.n 8006968 { /* Unused pdata8bits */ UNUSED(pdata8bits); pdata16bits = (uint16_t *) huart->pRxBuffPtr; - 80068f0: 687b ldr r3, [r7, #4] - 80068f2: 6a9b ldr r3, [r3, #40] @ 0x28 - 80068f4: 62bb str r3, [r7, #40] @ 0x28 + 8006944: 687b ldr r3, [r7, #4] + 8006946: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006948: 62bb str r3, [r7, #40] @ 0x28 *pdata16bits = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF); - 80068f6: 687b ldr r3, [r7, #4] - 80068f8: 681b ldr r3, [r3, #0] - 80068fa: 685b ldr r3, [r3, #4] - 80068fc: b29b uxth r3, r3 - 80068fe: f3c3 0308 ubfx r3, r3, #0, #9 - 8006902: b29a uxth r2, r3 - 8006904: 6abb ldr r3, [r7, #40] @ 0x28 - 8006906: 801a strh r2, [r3, #0] + 800694a: 687b ldr r3, [r7, #4] + 800694c: 681b ldr r3, [r3, #0] + 800694e: 685b ldr r3, [r3, #4] + 8006950: b29b uxth r3, r3 + 8006952: f3c3 0308 ubfx r3, r3, #0, #9 + 8006956: b29a uxth r2, r3 + 8006958: 6abb ldr r3, [r7, #40] @ 0x28 + 800695a: 801a strh r2, [r3, #0] huart->pRxBuffPtr += 2U; - 8006908: 687b ldr r3, [r7, #4] - 800690a: 6a9b ldr r3, [r3, #40] @ 0x28 - 800690c: 1c9a adds r2, r3, #2 - 800690e: 687b ldr r3, [r7, #4] - 8006910: 629a str r2, [r3, #40] @ 0x28 - 8006912: e024 b.n 800695e + 800695c: 687b ldr r3, [r7, #4] + 800695e: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006960: 1c9a adds r2, r3, #2 + 8006962: 687b ldr r3, [r7, #4] + 8006964: 629a str r2, [r3, #40] @ 0x28 + 8006966: e024 b.n 80069b2 } else { pdata8bits = (uint8_t *) huart->pRxBuffPtr; - 8006914: 687b ldr r3, [r7, #4] - 8006916: 6a9b ldr r3, [r3, #40] @ 0x28 - 8006918: 62fb str r3, [r7, #44] @ 0x2c + 8006968: 687b ldr r3, [r7, #4] + 800696a: 6a9b ldr r3, [r3, #40] @ 0x28 + 800696c: 62fb str r3, [r7, #44] @ 0x2c /* Unused pdata16bits */ UNUSED(pdata16bits); if ((huart->Init.WordLength == UART_WORDLENGTH_9B) || ((huart->Init.WordLength == UART_WORDLENGTH_8B) && (huart->Init.Parity == UART_PARITY_NONE))) - 800691a: 687b ldr r3, [r7, #4] - 800691c: 689b ldr r3, [r3, #8] - 800691e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8006922: d007 beq.n 8006934 - 8006924: 687b ldr r3, [r7, #4] - 8006926: 689b ldr r3, [r3, #8] - 8006928: 2b00 cmp r3, #0 - 800692a: d10a bne.n 8006942 - 800692c: 687b ldr r3, [r7, #4] - 800692e: 691b ldr r3, [r3, #16] - 8006930: 2b00 cmp r3, #0 - 8006932: d106 bne.n 8006942 + 800696e: 687b ldr r3, [r7, #4] + 8006970: 689b ldr r3, [r3, #8] + 8006972: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 8006976: d007 beq.n 8006988 + 8006978: 687b ldr r3, [r7, #4] + 800697a: 689b ldr r3, [r3, #8] + 800697c: 2b00 cmp r3, #0 + 800697e: d10a bne.n 8006996 + 8006980: 687b ldr r3, [r7, #4] + 8006982: 691b ldr r3, [r3, #16] + 8006984: 2b00 cmp r3, #0 + 8006986: d106 bne.n 8006996 { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF); - 8006934: 687b ldr r3, [r7, #4] - 8006936: 681b ldr r3, [r3, #0] - 8006938: 685b ldr r3, [r3, #4] - 800693a: b2da uxtb r2, r3 - 800693c: 6afb ldr r3, [r7, #44] @ 0x2c - 800693e: 701a strb r2, [r3, #0] - 8006940: e008 b.n 8006954 + 8006988: 687b ldr r3, [r7, #4] + 800698a: 681b ldr r3, [r3, #0] + 800698c: 685b ldr r3, [r3, #4] + 800698e: b2da uxtb r2, r3 + 8006990: 6afb ldr r3, [r7, #44] @ 0x2c + 8006992: 701a strb r2, [r3, #0] + 8006994: e008 b.n 80069a8 } else { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F); - 8006942: 687b ldr r3, [r7, #4] - 8006944: 681b ldr r3, [r3, #0] - 8006946: 685b ldr r3, [r3, #4] - 8006948: b2db uxtb r3, r3 - 800694a: f003 037f and.w r3, r3, #127 @ 0x7f - 800694e: b2da uxtb r2, r3 - 8006950: 6afb ldr r3, [r7, #44] @ 0x2c - 8006952: 701a strb r2, [r3, #0] + 8006996: 687b ldr r3, [r7, #4] + 8006998: 681b ldr r3, [r3, #0] + 800699a: 685b ldr r3, [r3, #4] + 800699c: b2db uxtb r3, r3 + 800699e: f003 037f and.w r3, r3, #127 @ 0x7f + 80069a2: b2da uxtb r2, r3 + 80069a4: 6afb ldr r3, [r7, #44] @ 0x2c + 80069a6: 701a strb r2, [r3, #0] } huart->pRxBuffPtr += 1U; - 8006954: 687b ldr r3, [r7, #4] - 8006956: 6a9b ldr r3, [r3, #40] @ 0x28 - 8006958: 1c5a adds r2, r3, #1 - 800695a: 687b ldr r3, [r7, #4] - 800695c: 629a str r2, [r3, #40] @ 0x28 + 80069a8: 687b ldr r3, [r7, #4] + 80069aa: 6a9b ldr r3, [r3, #40] @ 0x28 + 80069ac: 1c5a adds r2, r3, #1 + 80069ae: 687b ldr r3, [r7, #4] + 80069b0: 629a str r2, [r3, #40] @ 0x28 } if (--huart->RxXferCount == 0U) - 800695e: 687b ldr r3, [r7, #4] - 8006960: 8ddb ldrh r3, [r3, #46] @ 0x2e - 8006962: b29b uxth r3, r3 - 8006964: 3b01 subs r3, #1 - 8006966: b29b uxth r3, r3 - 8006968: 687a ldr r2, [r7, #4] - 800696a: 4619 mov r1, r3 - 800696c: 85d1 strh r1, [r2, #46] @ 0x2e - 800696e: 2b00 cmp r3, #0 - 8006970: d15d bne.n 8006a2e + 80069b2: 687b ldr r3, [r7, #4] + 80069b4: 8ddb ldrh r3, [r3, #46] @ 0x2e + 80069b6: b29b uxth r3, r3 + 80069b8: 3b01 subs r3, #1 + 80069ba: b29b uxth r3, r3 + 80069bc: 687a ldr r2, [r7, #4] + 80069be: 4619 mov r1, r3 + 80069c0: 85d1 strh r1, [r2, #46] @ 0x2e + 80069c2: 2b00 cmp r3, #0 + 80069c4: d15d bne.n 8006a82 { /* Disable the UART Data Register not empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE); - 8006972: 687b ldr r3, [r7, #4] - 8006974: 681b ldr r3, [r3, #0] - 8006976: 68da ldr r2, [r3, #12] - 8006978: 687b ldr r3, [r7, #4] - 800697a: 681b ldr r3, [r3, #0] - 800697c: f022 0220 bic.w r2, r2, #32 - 8006980: 60da str r2, [r3, #12] + 80069c6: 687b ldr r3, [r7, #4] + 80069c8: 681b ldr r3, [r3, #0] + 80069ca: 68da ldr r2, [r3, #12] + 80069cc: 687b ldr r3, [r7, #4] + 80069ce: 681b ldr r3, [r3, #0] + 80069d0: f022 0220 bic.w r2, r2, #32 + 80069d4: 60da str r2, [r3, #12] /* Disable the UART Parity Error Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_PE); - 8006982: 687b ldr r3, [r7, #4] - 8006984: 681b ldr r3, [r3, #0] - 8006986: 68da ldr r2, [r3, #12] - 8006988: 687b ldr r3, [r7, #4] - 800698a: 681b ldr r3, [r3, #0] - 800698c: f422 7280 bic.w r2, r2, #256 @ 0x100 - 8006990: 60da str r2, [r3, #12] + 80069d6: 687b ldr r3, [r7, #4] + 80069d8: 681b ldr r3, [r3, #0] + 80069da: 68da ldr r2, [r3, #12] + 80069dc: 687b ldr r3, [r7, #4] + 80069de: 681b ldr r3, [r3, #0] + 80069e0: f422 7280 bic.w r2, r2, #256 @ 0x100 + 80069e4: 60da str r2, [r3, #12] /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ __HAL_UART_DISABLE_IT(huart, UART_IT_ERR); - 8006992: 687b ldr r3, [r7, #4] - 8006994: 681b ldr r3, [r3, #0] - 8006996: 695a ldr r2, [r3, #20] - 8006998: 687b ldr r3, [r7, #4] - 800699a: 681b ldr r3, [r3, #0] - 800699c: f022 0201 bic.w r2, r2, #1 - 80069a0: 615a str r2, [r3, #20] + 80069e6: 687b ldr r3, [r7, #4] + 80069e8: 681b ldr r3, [r3, #0] + 80069ea: 695a ldr r2, [r3, #20] + 80069ec: 687b ldr r3, [r7, #4] + 80069ee: 681b ldr r3, [r3, #0] + 80069f0: f022 0201 bic.w r2, r2, #1 + 80069f4: 615a str r2, [r3, #20] /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 80069a2: 687b ldr r3, [r7, #4] - 80069a4: 2220 movs r2, #32 - 80069a6: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80069f6: 687b ldr r3, [r7, #4] + 80069f8: 2220 movs r2, #32 + 80069fa: f883 2042 strb.w r2, [r3, #66] @ 0x42 /* Initialize type of RxEvent to Transfer Complete */ huart->RxEventType = HAL_UART_RXEVENT_TC; - 80069aa: 687b ldr r3, [r7, #4] - 80069ac: 2200 movs r2, #0 - 80069ae: 635a str r2, [r3, #52] @ 0x34 + 80069fe: 687b ldr r3, [r7, #4] + 8006a00: 2200 movs r2, #0 + 8006a02: 635a str r2, [r3, #52] @ 0x34 /* Check current reception Mode : If Reception till IDLE event has been selected : */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 80069b0: 687b ldr r3, [r7, #4] - 80069b2: 6b1b ldr r3, [r3, #48] @ 0x30 - 80069b4: 2b01 cmp r3, #1 - 80069b6: d135 bne.n 8006a24 + 8006a04: 687b ldr r3, [r7, #4] + 8006a06: 6b1b ldr r3, [r3, #48] @ 0x30 + 8006a08: 2b01 cmp r3, #1 + 8006a0a: d135 bne.n 8006a78 { /* Set reception type to Standard */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 80069b8: 687b ldr r3, [r7, #4] - 80069ba: 2200 movs r2, #0 - 80069bc: 631a str r2, [r3, #48] @ 0x30 + 8006a0c: 687b ldr r3, [r7, #4] + 8006a0e: 2200 movs r2, #0 + 8006a10: 631a str r2, [r3, #48] @ 0x30 /* Disable IDLE interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 80069be: 687b ldr r3, [r7, #4] - 80069c0: 681b ldr r3, [r3, #0] - 80069c2: 330c adds r3, #12 - 80069c4: 617b str r3, [r7, #20] + 8006a12: 687b ldr r3, [r7, #4] + 8006a14: 681b ldr r3, [r3, #0] + 8006a16: 330c adds r3, #12 + 8006a18: 617b str r3, [r7, #20] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80069c6: 697b ldr r3, [r7, #20] - 80069c8: e853 3f00 ldrex r3, [r3] - 80069cc: 613b str r3, [r7, #16] + 8006a1a: 697b ldr r3, [r7, #20] + 8006a1c: e853 3f00 ldrex r3, [r3] + 8006a20: 613b str r3, [r7, #16] return(result); - 80069ce: 693b ldr r3, [r7, #16] - 80069d0: f023 0310 bic.w r3, r3, #16 - 80069d4: 627b str r3, [r7, #36] @ 0x24 - 80069d6: 687b ldr r3, [r7, #4] - 80069d8: 681b ldr r3, [r3, #0] - 80069da: 330c adds r3, #12 - 80069dc: 6a7a ldr r2, [r7, #36] @ 0x24 - 80069de: 623a str r2, [r7, #32] - 80069e0: 61fb str r3, [r7, #28] + 8006a22: 693b ldr r3, [r7, #16] + 8006a24: f023 0310 bic.w r3, r3, #16 + 8006a28: 627b str r3, [r7, #36] @ 0x24 + 8006a2a: 687b ldr r3, [r7, #4] + 8006a2c: 681b ldr r3, [r3, #0] + 8006a2e: 330c adds r3, #12 + 8006a30: 6a7a ldr r2, [r7, #36] @ 0x24 + 8006a32: 623a str r2, [r7, #32] + 8006a34: 61fb str r3, [r7, #28] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80069e2: 69f9 ldr r1, [r7, #28] - 80069e4: 6a3a ldr r2, [r7, #32] - 80069e6: e841 2300 strex r3, r2, [r1] - 80069ea: 61bb str r3, [r7, #24] + 8006a36: 69f9 ldr r1, [r7, #28] + 8006a38: 6a3a ldr r2, [r7, #32] + 8006a3a: e841 2300 strex r3, r2, [r1] + 8006a3e: 61bb str r3, [r7, #24] return(result); - 80069ec: 69bb ldr r3, [r7, #24] - 80069ee: 2b00 cmp r3, #0 - 80069f0: d1e5 bne.n 80069be + 8006a40: 69bb ldr r3, [r7, #24] + 8006a42: 2b00 cmp r3, #0 + 8006a44: d1e5 bne.n 8006a12 /* Check if IDLE flag is set */ if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE)) - 80069f2: 687b ldr r3, [r7, #4] - 80069f4: 681b ldr r3, [r3, #0] - 80069f6: 681b ldr r3, [r3, #0] - 80069f8: f003 0310 and.w r3, r3, #16 - 80069fc: 2b10 cmp r3, #16 - 80069fe: d10a bne.n 8006a16 + 8006a46: 687b ldr r3, [r7, #4] + 8006a48: 681b ldr r3, [r3, #0] + 8006a4a: 681b ldr r3, [r3, #0] + 8006a4c: f003 0310 and.w r3, r3, #16 + 8006a50: 2b10 cmp r3, #16 + 8006a52: d10a bne.n 8006a6a { /* Clear IDLE flag in ISR */ __HAL_UART_CLEAR_IDLEFLAG(huart); - 8006a00: 2300 movs r3, #0 - 8006a02: 60fb str r3, [r7, #12] - 8006a04: 687b ldr r3, [r7, #4] - 8006a06: 681b ldr r3, [r3, #0] - 8006a08: 681b ldr r3, [r3, #0] - 8006a0a: 60fb str r3, [r7, #12] - 8006a0c: 687b ldr r3, [r7, #4] - 8006a0e: 681b ldr r3, [r3, #0] - 8006a10: 685b ldr r3, [r3, #4] - 8006a12: 60fb str r3, [r7, #12] - 8006a14: 68fb ldr r3, [r7, #12] + 8006a54: 2300 movs r3, #0 + 8006a56: 60fb str r3, [r7, #12] + 8006a58: 687b ldr r3, [r7, #4] + 8006a5a: 681b ldr r3, [r3, #0] + 8006a5c: 681b ldr r3, [r3, #0] + 8006a5e: 60fb str r3, [r7, #12] + 8006a60: 687b ldr r3, [r7, #4] + 8006a62: 681b ldr r3, [r3, #0] + 8006a64: 685b ldr r3, [r3, #4] + 8006a66: 60fb str r3, [r7, #12] + 8006a68: 68fb ldr r3, [r7, #12] #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx Event callback*/ huart->RxEventCallback(huart, huart->RxXferSize); #else /*Call legacy weak Rx Event callback*/ HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); - 8006a16: 687b ldr r3, [r7, #4] - 8006a18: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8006a1a: 4619 mov r1, r3 - 8006a1c: 6878 ldr r0, [r7, #4] - 8006a1e: f7ff fc3f bl 80062a0 - 8006a22: e002 b.n 8006a2a + 8006a6a: 687b ldr r3, [r7, #4] + 8006a6c: 8d9b ldrh r3, [r3, #44] @ 0x2c + 8006a6e: 4619 mov r1, r3 + 8006a70: 6878 ldr r0, [r7, #4] + 8006a72: f7ff fc3f bl 80062f4 + 8006a76: e002 b.n 8006a7e #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered Rx complete callback*/ huart->RxCpltCallback(huart); #else /*Call legacy weak Rx complete callback*/ HAL_UART_RxCpltCallback(huart); - 8006a24: 6878 ldr r0, [r7, #4] - 8006a26: f7fa f83d bl 8000aa4 + 8006a78: 6878 ldr r0, [r7, #4] + 8006a7a: f7fa f825 bl 8000ac8 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return HAL_OK; - 8006a2a: 2300 movs r3, #0 - 8006a2c: e002 b.n 8006a34 + 8006a7e: 2300 movs r3, #0 + 8006a80: e002 b.n 8006a88 } return HAL_OK; - 8006a2e: 2300 movs r3, #0 - 8006a30: e000 b.n 8006a34 + 8006a82: 2300 movs r3, #0 + 8006a84: e000 b.n 8006a88 } else { return HAL_BUSY; - 8006a32: 2302 movs r3, #2 + 8006a86: 2302 movs r3, #2 } } - 8006a34: 4618 mov r0, r3 - 8006a36: 3730 adds r7, #48 @ 0x30 - 8006a38: 46bd mov sp, r7 - 8006a3a: bd80 pop {r7, pc} + 8006a88: 4618 mov r0, r3 + 8006a8a: 3730 adds r7, #48 @ 0x30 + 8006a8c: 46bd mov sp, r7 + 8006a8e: bd80 pop {r7, pc} -08006a3c : +08006a90 : * @param huart Pointer to a UART_HandleTypeDef structure that contains * the configuration information for the specified UART module. * @retval None */ static void UART_SetConfig(UART_HandleTypeDef *huart) { - 8006a3c: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} - 8006a40: b0c0 sub sp, #256 @ 0x100 - 8006a42: af00 add r7, sp, #0 - 8006a44: f8c7 00f4 str.w r0, [r7, #244] @ 0xf4 + 8006a90: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} + 8006a94: b0c0 sub sp, #256 @ 0x100 + 8006a96: af00 add r7, sp, #0 + 8006a98: f8c7 00f4 str.w r0, [r7, #244] @ 0xf4 assert_param(IS_UART_MODE(huart->Init.Mode)); /*-------------------------- USART CR2 Configuration -----------------------*/ /* Configure the UART Stop Bits: Set STOP[13:12] bits according to huart->Init.StopBits value */ MODIFY_REG(huart->Instance->CR2, USART_CR2_STOP, huart->Init.StopBits); - 8006a48: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006a4c: 681b ldr r3, [r3, #0] - 8006a4e: 691b ldr r3, [r3, #16] - 8006a50: f423 5040 bic.w r0, r3, #12288 @ 0x3000 - 8006a54: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006a58: 68d9 ldr r1, [r3, #12] - 8006a5a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006a5e: 681a ldr r2, [r3, #0] - 8006a60: ea40 0301 orr.w r3, r0, r1 - 8006a64: 6113 str r3, [r2, #16] + 8006a9c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006aa0: 681b ldr r3, [r3, #0] + 8006aa2: 691b ldr r3, [r3, #16] + 8006aa4: f423 5040 bic.w r0, r3, #12288 @ 0x3000 + 8006aa8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006aac: 68d9 ldr r1, [r3, #12] + 8006aae: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006ab2: 681a ldr r2, [r3, #0] + 8006ab4: ea40 0301 orr.w r3, r0, r1 + 8006ab8: 6113 str r3, [r2, #16] Set the M bits according to huart->Init.WordLength value Set PCE and PS bits according to huart->Init.Parity value Set TE and RE bits according to huart->Init.Mode value Set OVER8 bit according to huart->Init.OverSampling value */ tmpreg = (uint32_t)huart->Init.WordLength | huart->Init.Parity | huart->Init.Mode | huart->Init.OverSampling; - 8006a66: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006a6a: 689a ldr r2, [r3, #8] - 8006a6c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006a70: 691b ldr r3, [r3, #16] - 8006a72: 431a orrs r2, r3 - 8006a74: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006a78: 695b ldr r3, [r3, #20] - 8006a7a: 431a orrs r2, r3 - 8006a7c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006a80: 69db ldr r3, [r3, #28] - 8006a82: 4313 orrs r3, r2 - 8006a84: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8 + 8006aba: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006abe: 689a ldr r2, [r3, #8] + 8006ac0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006ac4: 691b ldr r3, [r3, #16] + 8006ac6: 431a orrs r2, r3 + 8006ac8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006acc: 695b ldr r3, [r3, #20] + 8006ace: 431a orrs r2, r3 + 8006ad0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006ad4: 69db ldr r3, [r3, #28] + 8006ad6: 4313 orrs r3, r2 + 8006ad8: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8 MODIFY_REG(huart->Instance->CR1, - 8006a88: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006a8c: 681b ldr r3, [r3, #0] - 8006a8e: 68db ldr r3, [r3, #12] - 8006a90: f423 4116 bic.w r1, r3, #38400 @ 0x9600 - 8006a94: f021 010c bic.w r1, r1, #12 - 8006a98: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006a9c: 681a ldr r2, [r3, #0] - 8006a9e: f8d7 30f8 ldr.w r3, [r7, #248] @ 0xf8 - 8006aa2: 430b orrs r3, r1 - 8006aa4: 60d3 str r3, [r2, #12] + 8006adc: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006ae0: 681b ldr r3, [r3, #0] + 8006ae2: 68db ldr r3, [r3, #12] + 8006ae4: f423 4116 bic.w r1, r3, #38400 @ 0x9600 + 8006ae8: f021 010c bic.w r1, r1, #12 + 8006aec: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006af0: 681a ldr r2, [r3, #0] + 8006af2: f8d7 30f8 ldr.w r3, [r7, #248] @ 0xf8 + 8006af6: 430b orrs r3, r1 + 8006af8: 60d3 str r3, [r2, #12] (uint32_t)(USART_CR1_M | USART_CR1_PCE | USART_CR1_PS | USART_CR1_TE | USART_CR1_RE | USART_CR1_OVER8), tmpreg); /*-------------------------- USART CR3 Configuration -----------------------*/ /* Configure the UART HFC: Set CTSE and RTSE bits according to huart->Init.HwFlowCtl value */ MODIFY_REG(huart->Instance->CR3, (USART_CR3_RTSE | USART_CR3_CTSE), huart->Init.HwFlowCtl); - 8006aa6: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006aaa: 681b ldr r3, [r3, #0] - 8006aac: 695b ldr r3, [r3, #20] - 8006aae: f423 7040 bic.w r0, r3, #768 @ 0x300 - 8006ab2: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006ab6: 6999 ldr r1, [r3, #24] - 8006ab8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006abc: 681a ldr r2, [r3, #0] - 8006abe: ea40 0301 orr.w r3, r0, r1 - 8006ac2: 6153 str r3, [r2, #20] + 8006afa: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006afe: 681b ldr r3, [r3, #0] + 8006b00: 695b ldr r3, [r3, #20] + 8006b02: f423 7040 bic.w r0, r3, #768 @ 0x300 + 8006b06: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006b0a: 6999 ldr r1, [r3, #24] + 8006b0c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006b10: 681a ldr r2, [r3, #0] + 8006b12: ea40 0301 orr.w r3, r0, r1 + 8006b16: 6153 str r3, [r2, #20] if ((huart->Instance == USART1) || (huart->Instance == USART6) || (huart->Instance == UART9) || (huart->Instance == UART10)) { pclk = HAL_RCC_GetPCLK2Freq(); } #elif defined(USART6) if ((huart->Instance == USART1) || (huart->Instance == USART6)) - 8006ac4: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006ac8: 681a ldr r2, [r3, #0] - 8006aca: 4b8f ldr r3, [pc, #572] @ (8006d08 ) - 8006acc: 429a cmp r2, r3 - 8006ace: d005 beq.n 8006adc - 8006ad0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006ad4: 681a ldr r2, [r3, #0] - 8006ad6: 4b8d ldr r3, [pc, #564] @ (8006d0c ) - 8006ad8: 429a cmp r2, r3 - 8006ada: d104 bne.n 8006ae6 + 8006b18: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006b1c: 681a ldr r2, [r3, #0] + 8006b1e: 4b8f ldr r3, [pc, #572] @ (8006d5c ) + 8006b20: 429a cmp r2, r3 + 8006b22: d005 beq.n 8006b30 + 8006b24: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006b28: 681a ldr r2, [r3, #0] + 8006b2a: 4b8d ldr r3, [pc, #564] @ (8006d60 ) + 8006b2c: 429a cmp r2, r3 + 8006b2e: d104 bne.n 8006b3a { pclk = HAL_RCC_GetPCLK2Freq(); - 8006adc: f7fd fbf6 bl 80042cc - 8006ae0: f8c7 00fc str.w r0, [r7, #252] @ 0xfc - 8006ae4: e003 b.n 8006aee + 8006b30: f7fd fbf6 bl 8004320 + 8006b34: f8c7 00fc str.w r0, [r7, #252] @ 0xfc + 8006b38: e003 b.n 8006b42 pclk = HAL_RCC_GetPCLK2Freq(); } #endif /* USART6 */ else { pclk = HAL_RCC_GetPCLK1Freq(); - 8006ae6: f7fd fbdd bl 80042a4 - 8006aea: f8c7 00fc str.w r0, [r7, #252] @ 0xfc + 8006b3a: f7fd fbdd bl 80042f8 + 8006b3e: f8c7 00fc str.w r0, [r7, #252] @ 0xfc } /*-------------------------- USART BRR Configuration ---------------------*/ if (huart->Init.OverSampling == UART_OVERSAMPLING_8) - 8006aee: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006af2: 69db ldr r3, [r3, #28] - 8006af4: f5b3 4f00 cmp.w r3, #32768 @ 0x8000 - 8006af8: f040 810c bne.w 8006d14 + 8006b42: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006b46: 69db ldr r3, [r3, #28] + 8006b48: f5b3 4f00 cmp.w r3, #32768 @ 0x8000 + 8006b4c: f040 810c bne.w 8006d68 { huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate); - 8006afc: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 8006b00: 2200 movs r2, #0 - 8006b02: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8 - 8006b06: f8c7 20ec str.w r2, [r7, #236] @ 0xec - 8006b0a: e9d7 453a ldrd r4, r5, [r7, #232] @ 0xe8 - 8006b0e: 4622 mov r2, r4 - 8006b10: 462b mov r3, r5 - 8006b12: 1891 adds r1, r2, r2 - 8006b14: 65b9 str r1, [r7, #88] @ 0x58 - 8006b16: 415b adcs r3, r3 - 8006b18: 65fb str r3, [r7, #92] @ 0x5c - 8006b1a: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 - 8006b1e: 4621 mov r1, r4 - 8006b20: eb12 0801 adds.w r8, r2, r1 - 8006b24: 4629 mov r1, r5 - 8006b26: eb43 0901 adc.w r9, r3, r1 - 8006b2a: f04f 0200 mov.w r2, #0 - 8006b2e: f04f 0300 mov.w r3, #0 - 8006b32: ea4f 03c9 mov.w r3, r9, lsl #3 - 8006b36: ea43 7358 orr.w r3, r3, r8, lsr #29 - 8006b3a: ea4f 02c8 mov.w r2, r8, lsl #3 - 8006b3e: 4690 mov r8, r2 - 8006b40: 4699 mov r9, r3 - 8006b42: 4623 mov r3, r4 - 8006b44: eb18 0303 adds.w r3, r8, r3 - 8006b48: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 - 8006b4c: 462b mov r3, r5 - 8006b4e: eb49 0303 adc.w r3, r9, r3 - 8006b52: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 - 8006b56: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006b5a: 685b ldr r3, [r3, #4] - 8006b5c: 2200 movs r2, #0 - 8006b5e: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 - 8006b62: f8c7 20dc str.w r2, [r7, #220] @ 0xdc - 8006b66: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8 - 8006b6a: 460b mov r3, r1 - 8006b6c: 18db adds r3, r3, r3 - 8006b6e: 653b str r3, [r7, #80] @ 0x50 - 8006b70: 4613 mov r3, r2 - 8006b72: eb42 0303 adc.w r3, r2, r3 - 8006b76: 657b str r3, [r7, #84] @ 0x54 - 8006b78: e9d7 2314 ldrd r2, r3, [r7, #80] @ 0x50 - 8006b7c: e9d7 0138 ldrd r0, r1, [r7, #224] @ 0xe0 - 8006b80: f7f9 fb40 bl 8000204 <__aeabi_uldivmod> - 8006b84: 4602 mov r2, r0 - 8006b86: 460b mov r3, r1 - 8006b88: 4b61 ldr r3, [pc, #388] @ (8006d10 ) - 8006b8a: fba3 2302 umull r2, r3, r3, r2 - 8006b8e: 095b lsrs r3, r3, #5 - 8006b90: 011c lsls r4, r3, #4 - 8006b92: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 8006b96: 2200 movs r2, #0 - 8006b98: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 - 8006b9c: f8c7 20d4 str.w r2, [r7, #212] @ 0xd4 - 8006ba0: e9d7 8934 ldrd r8, r9, [r7, #208] @ 0xd0 - 8006ba4: 4642 mov r2, r8 - 8006ba6: 464b mov r3, r9 - 8006ba8: 1891 adds r1, r2, r2 - 8006baa: 64b9 str r1, [r7, #72] @ 0x48 - 8006bac: 415b adcs r3, r3 - 8006bae: 64fb str r3, [r7, #76] @ 0x4c - 8006bb0: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 - 8006bb4: 4641 mov r1, r8 - 8006bb6: eb12 0a01 adds.w sl, r2, r1 - 8006bba: 4649 mov r1, r9 - 8006bbc: eb43 0b01 adc.w fp, r3, r1 - 8006bc0: f04f 0200 mov.w r2, #0 - 8006bc4: f04f 0300 mov.w r3, #0 - 8006bc8: ea4f 03cb mov.w r3, fp, lsl #3 - 8006bcc: ea43 735a orr.w r3, r3, sl, lsr #29 - 8006bd0: ea4f 02ca mov.w r2, sl, lsl #3 - 8006bd4: 4692 mov sl, r2 - 8006bd6: 469b mov fp, r3 - 8006bd8: 4643 mov r3, r8 - 8006bda: eb1a 0303 adds.w r3, sl, r3 - 8006bde: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 - 8006be2: 464b mov r3, r9 - 8006be4: eb4b 0303 adc.w r3, fp, r3 - 8006be8: f8c7 30cc str.w r3, [r7, #204] @ 0xcc - 8006bec: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006bf0: 685b ldr r3, [r3, #4] - 8006bf2: 2200 movs r2, #0 - 8006bf4: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 - 8006bf8: f8c7 20c4 str.w r2, [r7, #196] @ 0xc4 - 8006bfc: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0 - 8006c00: 460b mov r3, r1 - 8006c02: 18db adds r3, r3, r3 - 8006c04: 643b str r3, [r7, #64] @ 0x40 - 8006c06: 4613 mov r3, r2 - 8006c08: eb42 0303 adc.w r3, r2, r3 - 8006c0c: 647b str r3, [r7, #68] @ 0x44 - 8006c0e: e9d7 2310 ldrd r2, r3, [r7, #64] @ 0x40 - 8006c12: e9d7 0132 ldrd r0, r1, [r7, #200] @ 0xc8 - 8006c16: f7f9 faf5 bl 8000204 <__aeabi_uldivmod> - 8006c1a: 4602 mov r2, r0 - 8006c1c: 460b mov r3, r1 - 8006c1e: 4611 mov r1, r2 - 8006c20: 4b3b ldr r3, [pc, #236] @ (8006d10 ) - 8006c22: fba3 2301 umull r2, r3, r3, r1 - 8006c26: 095b lsrs r3, r3, #5 - 8006c28: 2264 movs r2, #100 @ 0x64 - 8006c2a: fb02 f303 mul.w r3, r2, r3 - 8006c2e: 1acb subs r3, r1, r3 - 8006c30: 00db lsls r3, r3, #3 - 8006c32: f103 0232 add.w r2, r3, #50 @ 0x32 - 8006c36: 4b36 ldr r3, [pc, #216] @ (8006d10 ) - 8006c38: fba3 2302 umull r2, r3, r3, r2 - 8006c3c: 095b lsrs r3, r3, #5 - 8006c3e: 005b lsls r3, r3, #1 - 8006c40: f403 73f8 and.w r3, r3, #496 @ 0x1f0 - 8006c44: 441c add r4, r3 - 8006c46: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 8006c4a: 2200 movs r2, #0 - 8006c4c: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 - 8006c50: f8c7 20bc str.w r2, [r7, #188] @ 0xbc - 8006c54: e9d7 892e ldrd r8, r9, [r7, #184] @ 0xb8 - 8006c58: 4642 mov r2, r8 - 8006c5a: 464b mov r3, r9 - 8006c5c: 1891 adds r1, r2, r2 - 8006c5e: 63b9 str r1, [r7, #56] @ 0x38 - 8006c60: 415b adcs r3, r3 - 8006c62: 63fb str r3, [r7, #60] @ 0x3c - 8006c64: e9d7 230e ldrd r2, r3, [r7, #56] @ 0x38 - 8006c68: 4641 mov r1, r8 - 8006c6a: 1851 adds r1, r2, r1 - 8006c6c: 6339 str r1, [r7, #48] @ 0x30 - 8006c6e: 4649 mov r1, r9 - 8006c70: 414b adcs r3, r1 - 8006c72: 637b str r3, [r7, #52] @ 0x34 - 8006c74: f04f 0200 mov.w r2, #0 - 8006c78: f04f 0300 mov.w r3, #0 - 8006c7c: e9d7 ab0c ldrd sl, fp, [r7, #48] @ 0x30 - 8006c80: 4659 mov r1, fp - 8006c82: 00cb lsls r3, r1, #3 - 8006c84: 4651 mov r1, sl - 8006c86: ea43 7351 orr.w r3, r3, r1, lsr #29 - 8006c8a: 4651 mov r1, sl - 8006c8c: 00ca lsls r2, r1, #3 - 8006c8e: 4610 mov r0, r2 - 8006c90: 4619 mov r1, r3 - 8006c92: 4603 mov r3, r0 - 8006c94: 4642 mov r2, r8 - 8006c96: 189b adds r3, r3, r2 - 8006c98: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - 8006c9c: 464b mov r3, r9 - 8006c9e: 460a mov r2, r1 - 8006ca0: eb42 0303 adc.w r3, r2, r3 - 8006ca4: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 8006ca8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006cac: 685b ldr r3, [r3, #4] - 8006cae: 2200 movs r2, #0 - 8006cb0: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 - 8006cb4: f8c7 20ac str.w r2, [r7, #172] @ 0xac - 8006cb8: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8 - 8006cbc: 460b mov r3, r1 - 8006cbe: 18db adds r3, r3, r3 - 8006cc0: 62bb str r3, [r7, #40] @ 0x28 - 8006cc2: 4613 mov r3, r2 - 8006cc4: eb42 0303 adc.w r3, r2, r3 - 8006cc8: 62fb str r3, [r7, #44] @ 0x2c - 8006cca: e9d7 230a ldrd r2, r3, [r7, #40] @ 0x28 - 8006cce: e9d7 012c ldrd r0, r1, [r7, #176] @ 0xb0 - 8006cd2: f7f9 fa97 bl 8000204 <__aeabi_uldivmod> - 8006cd6: 4602 mov r2, r0 - 8006cd8: 460b mov r3, r1 - 8006cda: 4b0d ldr r3, [pc, #52] @ (8006d10 ) - 8006cdc: fba3 1302 umull r1, r3, r3, r2 - 8006ce0: 095b lsrs r3, r3, #5 - 8006ce2: 2164 movs r1, #100 @ 0x64 - 8006ce4: fb01 f303 mul.w r3, r1, r3 - 8006ce8: 1ad3 subs r3, r2, r3 - 8006cea: 00db lsls r3, r3, #3 - 8006cec: 3332 adds r3, #50 @ 0x32 - 8006cee: 4a08 ldr r2, [pc, #32] @ (8006d10 ) - 8006cf0: fba2 2303 umull r2, r3, r2, r3 - 8006cf4: 095b lsrs r3, r3, #5 - 8006cf6: f003 0207 and.w r2, r3, #7 - 8006cfa: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006cfe: 681b ldr r3, [r3, #0] - 8006d00: 4422 add r2, r4 - 8006d02: 609a str r2, [r3, #8] + 8006b50: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8006b54: 2200 movs r2, #0 + 8006b56: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8 + 8006b5a: f8c7 20ec str.w r2, [r7, #236] @ 0xec + 8006b5e: e9d7 453a ldrd r4, r5, [r7, #232] @ 0xe8 + 8006b62: 4622 mov r2, r4 + 8006b64: 462b mov r3, r5 + 8006b66: 1891 adds r1, r2, r2 + 8006b68: 65b9 str r1, [r7, #88] @ 0x58 + 8006b6a: 415b adcs r3, r3 + 8006b6c: 65fb str r3, [r7, #92] @ 0x5c + 8006b6e: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 + 8006b72: 4621 mov r1, r4 + 8006b74: eb12 0801 adds.w r8, r2, r1 + 8006b78: 4629 mov r1, r5 + 8006b7a: eb43 0901 adc.w r9, r3, r1 + 8006b7e: f04f 0200 mov.w r2, #0 + 8006b82: f04f 0300 mov.w r3, #0 + 8006b86: ea4f 03c9 mov.w r3, r9, lsl #3 + 8006b8a: ea43 7358 orr.w r3, r3, r8, lsr #29 + 8006b8e: ea4f 02c8 mov.w r2, r8, lsl #3 + 8006b92: 4690 mov r8, r2 + 8006b94: 4699 mov r9, r3 + 8006b96: 4623 mov r3, r4 + 8006b98: eb18 0303 adds.w r3, r8, r3 + 8006b9c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 + 8006ba0: 462b mov r3, r5 + 8006ba2: eb49 0303 adc.w r3, r9, r3 + 8006ba6: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 + 8006baa: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006bae: 685b ldr r3, [r3, #4] + 8006bb0: 2200 movs r2, #0 + 8006bb2: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 + 8006bb6: f8c7 20dc str.w r2, [r7, #220] @ 0xdc + 8006bba: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8 + 8006bbe: 460b mov r3, r1 + 8006bc0: 18db adds r3, r3, r3 + 8006bc2: 653b str r3, [r7, #80] @ 0x50 + 8006bc4: 4613 mov r3, r2 + 8006bc6: eb42 0303 adc.w r3, r2, r3 + 8006bca: 657b str r3, [r7, #84] @ 0x54 + 8006bcc: e9d7 2314 ldrd r2, r3, [r7, #80] @ 0x50 + 8006bd0: e9d7 0138 ldrd r0, r1, [r7, #224] @ 0xe0 + 8006bd4: f7f9 fb16 bl 8000204 <__aeabi_uldivmod> + 8006bd8: 4602 mov r2, r0 + 8006bda: 460b mov r3, r1 + 8006bdc: 4b61 ldr r3, [pc, #388] @ (8006d64 ) + 8006bde: fba3 2302 umull r2, r3, r3, r2 + 8006be2: 095b lsrs r3, r3, #5 + 8006be4: 011c lsls r4, r3, #4 + 8006be6: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8006bea: 2200 movs r2, #0 + 8006bec: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 + 8006bf0: f8c7 20d4 str.w r2, [r7, #212] @ 0xd4 + 8006bf4: e9d7 8934 ldrd r8, r9, [r7, #208] @ 0xd0 + 8006bf8: 4642 mov r2, r8 + 8006bfa: 464b mov r3, r9 + 8006bfc: 1891 adds r1, r2, r2 + 8006bfe: 64b9 str r1, [r7, #72] @ 0x48 + 8006c00: 415b adcs r3, r3 + 8006c02: 64fb str r3, [r7, #76] @ 0x4c + 8006c04: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 + 8006c08: 4641 mov r1, r8 + 8006c0a: eb12 0a01 adds.w sl, r2, r1 + 8006c0e: 4649 mov r1, r9 + 8006c10: eb43 0b01 adc.w fp, r3, r1 + 8006c14: f04f 0200 mov.w r2, #0 + 8006c18: f04f 0300 mov.w r3, #0 + 8006c1c: ea4f 03cb mov.w r3, fp, lsl #3 + 8006c20: ea43 735a orr.w r3, r3, sl, lsr #29 + 8006c24: ea4f 02ca mov.w r2, sl, lsl #3 + 8006c28: 4692 mov sl, r2 + 8006c2a: 469b mov fp, r3 + 8006c2c: 4643 mov r3, r8 + 8006c2e: eb1a 0303 adds.w r3, sl, r3 + 8006c32: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 + 8006c36: 464b mov r3, r9 + 8006c38: eb4b 0303 adc.w r3, fp, r3 + 8006c3c: f8c7 30cc str.w r3, [r7, #204] @ 0xcc + 8006c40: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006c44: 685b ldr r3, [r3, #4] + 8006c46: 2200 movs r2, #0 + 8006c48: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 + 8006c4c: f8c7 20c4 str.w r2, [r7, #196] @ 0xc4 + 8006c50: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0 + 8006c54: 460b mov r3, r1 + 8006c56: 18db adds r3, r3, r3 + 8006c58: 643b str r3, [r7, #64] @ 0x40 + 8006c5a: 4613 mov r3, r2 + 8006c5c: eb42 0303 adc.w r3, r2, r3 + 8006c60: 647b str r3, [r7, #68] @ 0x44 + 8006c62: e9d7 2310 ldrd r2, r3, [r7, #64] @ 0x40 + 8006c66: e9d7 0132 ldrd r0, r1, [r7, #200] @ 0xc8 + 8006c6a: f7f9 facb bl 8000204 <__aeabi_uldivmod> + 8006c6e: 4602 mov r2, r0 + 8006c70: 460b mov r3, r1 + 8006c72: 4611 mov r1, r2 + 8006c74: 4b3b ldr r3, [pc, #236] @ (8006d64 ) + 8006c76: fba3 2301 umull r2, r3, r3, r1 + 8006c7a: 095b lsrs r3, r3, #5 + 8006c7c: 2264 movs r2, #100 @ 0x64 + 8006c7e: fb02 f303 mul.w r3, r2, r3 + 8006c82: 1acb subs r3, r1, r3 + 8006c84: 00db lsls r3, r3, #3 + 8006c86: f103 0232 add.w r2, r3, #50 @ 0x32 + 8006c8a: 4b36 ldr r3, [pc, #216] @ (8006d64 ) + 8006c8c: fba3 2302 umull r2, r3, r3, r2 + 8006c90: 095b lsrs r3, r3, #5 + 8006c92: 005b lsls r3, r3, #1 + 8006c94: f403 73f8 and.w r3, r3, #496 @ 0x1f0 + 8006c98: 441c add r4, r3 + 8006c9a: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8006c9e: 2200 movs r2, #0 + 8006ca0: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 + 8006ca4: f8c7 20bc str.w r2, [r7, #188] @ 0xbc + 8006ca8: e9d7 892e ldrd r8, r9, [r7, #184] @ 0xb8 + 8006cac: 4642 mov r2, r8 + 8006cae: 464b mov r3, r9 + 8006cb0: 1891 adds r1, r2, r2 + 8006cb2: 63b9 str r1, [r7, #56] @ 0x38 + 8006cb4: 415b adcs r3, r3 + 8006cb6: 63fb str r3, [r7, #60] @ 0x3c + 8006cb8: e9d7 230e ldrd r2, r3, [r7, #56] @ 0x38 + 8006cbc: 4641 mov r1, r8 + 8006cbe: 1851 adds r1, r2, r1 + 8006cc0: 6339 str r1, [r7, #48] @ 0x30 + 8006cc2: 4649 mov r1, r9 + 8006cc4: 414b adcs r3, r1 + 8006cc6: 637b str r3, [r7, #52] @ 0x34 + 8006cc8: f04f 0200 mov.w r2, #0 + 8006ccc: f04f 0300 mov.w r3, #0 + 8006cd0: e9d7 ab0c ldrd sl, fp, [r7, #48] @ 0x30 + 8006cd4: 4659 mov r1, fp + 8006cd6: 00cb lsls r3, r1, #3 + 8006cd8: 4651 mov r1, sl + 8006cda: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8006cde: 4651 mov r1, sl + 8006ce0: 00ca lsls r2, r1, #3 + 8006ce2: 4610 mov r0, r2 + 8006ce4: 4619 mov r1, r3 + 8006ce6: 4603 mov r3, r0 + 8006ce8: 4642 mov r2, r8 + 8006cea: 189b adds r3, r3, r2 + 8006cec: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8006cf0: 464b mov r3, r9 + 8006cf2: 460a mov r2, r1 + 8006cf4: eb42 0303 adc.w r3, r2, r3 + 8006cf8: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8006cfc: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006d00: 685b ldr r3, [r3, #4] + 8006d02: 2200 movs r2, #0 + 8006d04: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 8006d08: f8c7 20ac str.w r2, [r7, #172] @ 0xac + 8006d0c: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8 + 8006d10: 460b mov r3, r1 + 8006d12: 18db adds r3, r3, r3 + 8006d14: 62bb str r3, [r7, #40] @ 0x28 + 8006d16: 4613 mov r3, r2 + 8006d18: eb42 0303 adc.w r3, r2, r3 + 8006d1c: 62fb str r3, [r7, #44] @ 0x2c + 8006d1e: e9d7 230a ldrd r2, r3, [r7, #40] @ 0x28 + 8006d22: e9d7 012c ldrd r0, r1, [r7, #176] @ 0xb0 + 8006d26: f7f9 fa6d bl 8000204 <__aeabi_uldivmod> + 8006d2a: 4602 mov r2, r0 + 8006d2c: 460b mov r3, r1 + 8006d2e: 4b0d ldr r3, [pc, #52] @ (8006d64 ) + 8006d30: fba3 1302 umull r1, r3, r3, r2 + 8006d34: 095b lsrs r3, r3, #5 + 8006d36: 2164 movs r1, #100 @ 0x64 + 8006d38: fb01 f303 mul.w r3, r1, r3 + 8006d3c: 1ad3 subs r3, r2, r3 + 8006d3e: 00db lsls r3, r3, #3 + 8006d40: 3332 adds r3, #50 @ 0x32 + 8006d42: 4a08 ldr r2, [pc, #32] @ (8006d64 ) + 8006d44: fba2 2303 umull r2, r3, r2, r3 + 8006d48: 095b lsrs r3, r3, #5 + 8006d4a: f003 0207 and.w r2, r3, #7 + 8006d4e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006d52: 681b ldr r3, [r3, #0] + 8006d54: 4422 add r2, r4 + 8006d56: 609a str r2, [r3, #8] } else { huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); } } - 8006d04: e106 b.n 8006f14 - 8006d06: bf00 nop - 8006d08: 40011000 .word 0x40011000 - 8006d0c: 40011400 .word 0x40011400 - 8006d10: 51eb851f .word 0x51eb851f + 8006d58: e106 b.n 8006f68 + 8006d5a: bf00 nop + 8006d5c: 40011000 .word 0x40011000 + 8006d60: 40011400 .word 0x40011400 + 8006d64: 51eb851f .word 0x51eb851f huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); - 8006d14: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 8006d18: 2200 movs r2, #0 - 8006d1a: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 - 8006d1e: f8c7 20a4 str.w r2, [r7, #164] @ 0xa4 - 8006d22: e9d7 8928 ldrd r8, r9, [r7, #160] @ 0xa0 - 8006d26: 4642 mov r2, r8 - 8006d28: 464b mov r3, r9 - 8006d2a: 1891 adds r1, r2, r2 - 8006d2c: 6239 str r1, [r7, #32] - 8006d2e: 415b adcs r3, r3 - 8006d30: 627b str r3, [r7, #36] @ 0x24 - 8006d32: e9d7 2308 ldrd r2, r3, [r7, #32] - 8006d36: 4641 mov r1, r8 - 8006d38: 1854 adds r4, r2, r1 - 8006d3a: 4649 mov r1, r9 - 8006d3c: eb43 0501 adc.w r5, r3, r1 - 8006d40: f04f 0200 mov.w r2, #0 - 8006d44: f04f 0300 mov.w r3, #0 - 8006d48: 00eb lsls r3, r5, #3 - 8006d4a: ea43 7354 orr.w r3, r3, r4, lsr #29 - 8006d4e: 00e2 lsls r2, r4, #3 - 8006d50: 4614 mov r4, r2 - 8006d52: 461d mov r5, r3 - 8006d54: 4643 mov r3, r8 - 8006d56: 18e3 adds r3, r4, r3 - 8006d58: f8c7 3098 str.w r3, [r7, #152] @ 0x98 - 8006d5c: 464b mov r3, r9 - 8006d5e: eb45 0303 adc.w r3, r5, r3 - 8006d62: f8c7 309c str.w r3, [r7, #156] @ 0x9c - 8006d66: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006d6a: 685b ldr r3, [r3, #4] + 8006d68: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc 8006d6c: 2200 movs r2, #0 - 8006d6e: f8c7 3090 str.w r3, [r7, #144] @ 0x90 - 8006d72: f8c7 2094 str.w r2, [r7, #148] @ 0x94 - 8006d76: f04f 0200 mov.w r2, #0 - 8006d7a: f04f 0300 mov.w r3, #0 - 8006d7e: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 - 8006d82: 4629 mov r1, r5 - 8006d84: 008b lsls r3, r1, #2 - 8006d86: 4621 mov r1, r4 - 8006d88: ea43 7391 orr.w r3, r3, r1, lsr #30 - 8006d8c: 4621 mov r1, r4 - 8006d8e: 008a lsls r2, r1, #2 - 8006d90: e9d7 0126 ldrd r0, r1, [r7, #152] @ 0x98 - 8006d94: f7f9 fa36 bl 8000204 <__aeabi_uldivmod> - 8006d98: 4602 mov r2, r0 - 8006d9a: 460b mov r3, r1 - 8006d9c: 4b60 ldr r3, [pc, #384] @ (8006f20 ) - 8006d9e: fba3 2302 umull r2, r3, r3, r2 - 8006da2: 095b lsrs r3, r3, #5 - 8006da4: 011c lsls r4, r3, #4 - 8006da6: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 8006daa: 2200 movs r2, #0 - 8006dac: f8c7 3088 str.w r3, [r7, #136] @ 0x88 - 8006db0: f8c7 208c str.w r2, [r7, #140] @ 0x8c - 8006db4: e9d7 8922 ldrd r8, r9, [r7, #136] @ 0x88 - 8006db8: 4642 mov r2, r8 - 8006dba: 464b mov r3, r9 - 8006dbc: 1891 adds r1, r2, r2 - 8006dbe: 61b9 str r1, [r7, #24] - 8006dc0: 415b adcs r3, r3 - 8006dc2: 61fb str r3, [r7, #28] - 8006dc4: e9d7 2306 ldrd r2, r3, [r7, #24] - 8006dc8: 4641 mov r1, r8 - 8006dca: 1851 adds r1, r2, r1 - 8006dcc: 6139 str r1, [r7, #16] - 8006dce: 4649 mov r1, r9 - 8006dd0: 414b adcs r3, r1 - 8006dd2: 617b str r3, [r7, #20] - 8006dd4: f04f 0200 mov.w r2, #0 - 8006dd8: f04f 0300 mov.w r3, #0 - 8006ddc: e9d7 ab04 ldrd sl, fp, [r7, #16] - 8006de0: 4659 mov r1, fp - 8006de2: 00cb lsls r3, r1, #3 - 8006de4: 4651 mov r1, sl - 8006de6: ea43 7351 orr.w r3, r3, r1, lsr #29 - 8006dea: 4651 mov r1, sl - 8006dec: 00ca lsls r2, r1, #3 - 8006dee: 4610 mov r0, r2 - 8006df0: 4619 mov r1, r3 - 8006df2: 4603 mov r3, r0 - 8006df4: 4642 mov r2, r8 - 8006df6: 189b adds r3, r3, r2 - 8006df8: f8c7 3080 str.w r3, [r7, #128] @ 0x80 - 8006dfc: 464b mov r3, r9 - 8006dfe: 460a mov r2, r1 - 8006e00: eb42 0303 adc.w r3, r2, r3 - 8006e04: f8c7 3084 str.w r3, [r7, #132] @ 0x84 - 8006e08: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006e0c: 685b ldr r3, [r3, #4] - 8006e0e: 2200 movs r2, #0 - 8006e10: 67bb str r3, [r7, #120] @ 0x78 - 8006e12: 67fa str r2, [r7, #124] @ 0x7c - 8006e14: f04f 0200 mov.w r2, #0 - 8006e18: f04f 0300 mov.w r3, #0 - 8006e1c: e9d7 891e ldrd r8, r9, [r7, #120] @ 0x78 - 8006e20: 4649 mov r1, r9 - 8006e22: 008b lsls r3, r1, #2 - 8006e24: 4641 mov r1, r8 - 8006e26: ea43 7391 orr.w r3, r3, r1, lsr #30 - 8006e2a: 4641 mov r1, r8 - 8006e2c: 008a lsls r2, r1, #2 - 8006e2e: e9d7 0120 ldrd r0, r1, [r7, #128] @ 0x80 - 8006e32: f7f9 f9e7 bl 8000204 <__aeabi_uldivmod> - 8006e36: 4602 mov r2, r0 - 8006e38: 460b mov r3, r1 - 8006e3a: 4611 mov r1, r2 - 8006e3c: 4b38 ldr r3, [pc, #224] @ (8006f20 ) - 8006e3e: fba3 2301 umull r2, r3, r3, r1 - 8006e42: 095b lsrs r3, r3, #5 - 8006e44: 2264 movs r2, #100 @ 0x64 - 8006e46: fb02 f303 mul.w r3, r2, r3 - 8006e4a: 1acb subs r3, r1, r3 - 8006e4c: 011b lsls r3, r3, #4 - 8006e4e: 3332 adds r3, #50 @ 0x32 - 8006e50: 4a33 ldr r2, [pc, #204] @ (8006f20 ) - 8006e52: fba2 2303 umull r2, r3, r2, r3 - 8006e56: 095b lsrs r3, r3, #5 - 8006e58: f003 03f0 and.w r3, r3, #240 @ 0xf0 - 8006e5c: 441c add r4, r3 - 8006e5e: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8006d6e: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 + 8006d72: f8c7 20a4 str.w r2, [r7, #164] @ 0xa4 + 8006d76: e9d7 8928 ldrd r8, r9, [r7, #160] @ 0xa0 + 8006d7a: 4642 mov r2, r8 + 8006d7c: 464b mov r3, r9 + 8006d7e: 1891 adds r1, r2, r2 + 8006d80: 6239 str r1, [r7, #32] + 8006d82: 415b adcs r3, r3 + 8006d84: 627b str r3, [r7, #36] @ 0x24 + 8006d86: e9d7 2308 ldrd r2, r3, [r7, #32] + 8006d8a: 4641 mov r1, r8 + 8006d8c: 1854 adds r4, r2, r1 + 8006d8e: 4649 mov r1, r9 + 8006d90: eb43 0501 adc.w r5, r3, r1 + 8006d94: f04f 0200 mov.w r2, #0 + 8006d98: f04f 0300 mov.w r3, #0 + 8006d9c: 00eb lsls r3, r5, #3 + 8006d9e: ea43 7354 orr.w r3, r3, r4, lsr #29 + 8006da2: 00e2 lsls r2, r4, #3 + 8006da4: 4614 mov r4, r2 + 8006da6: 461d mov r5, r3 + 8006da8: 4643 mov r3, r8 + 8006daa: 18e3 adds r3, r4, r3 + 8006dac: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 8006db0: 464b mov r3, r9 + 8006db2: eb45 0303 adc.w r3, r5, r3 + 8006db6: f8c7 309c str.w r3, [r7, #156] @ 0x9c + 8006dba: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006dbe: 685b ldr r3, [r3, #4] + 8006dc0: 2200 movs r2, #0 + 8006dc2: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 8006dc6: f8c7 2094 str.w r2, [r7, #148] @ 0x94 + 8006dca: f04f 0200 mov.w r2, #0 + 8006dce: f04f 0300 mov.w r3, #0 + 8006dd2: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 + 8006dd6: 4629 mov r1, r5 + 8006dd8: 008b lsls r3, r1, #2 + 8006dda: 4621 mov r1, r4 + 8006ddc: ea43 7391 orr.w r3, r3, r1, lsr #30 + 8006de0: 4621 mov r1, r4 + 8006de2: 008a lsls r2, r1, #2 + 8006de4: e9d7 0126 ldrd r0, r1, [r7, #152] @ 0x98 + 8006de8: f7f9 fa0c bl 8000204 <__aeabi_uldivmod> + 8006dec: 4602 mov r2, r0 + 8006dee: 460b mov r3, r1 + 8006df0: 4b60 ldr r3, [pc, #384] @ (8006f74 ) + 8006df2: fba3 2302 umull r2, r3, r3, r2 + 8006df6: 095b lsrs r3, r3, #5 + 8006df8: 011c lsls r4, r3, #4 + 8006dfa: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8006dfe: 2200 movs r2, #0 + 8006e00: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 8006e04: f8c7 208c str.w r2, [r7, #140] @ 0x8c + 8006e08: e9d7 8922 ldrd r8, r9, [r7, #136] @ 0x88 + 8006e0c: 4642 mov r2, r8 + 8006e0e: 464b mov r3, r9 + 8006e10: 1891 adds r1, r2, r2 + 8006e12: 61b9 str r1, [r7, #24] + 8006e14: 415b adcs r3, r3 + 8006e16: 61fb str r3, [r7, #28] + 8006e18: e9d7 2306 ldrd r2, r3, [r7, #24] + 8006e1c: 4641 mov r1, r8 + 8006e1e: 1851 adds r1, r2, r1 + 8006e20: 6139 str r1, [r7, #16] + 8006e22: 4649 mov r1, r9 + 8006e24: 414b adcs r3, r1 + 8006e26: 617b str r3, [r7, #20] + 8006e28: f04f 0200 mov.w r2, #0 + 8006e2c: f04f 0300 mov.w r3, #0 + 8006e30: e9d7 ab04 ldrd sl, fp, [r7, #16] + 8006e34: 4659 mov r1, fp + 8006e36: 00cb lsls r3, r1, #3 + 8006e38: 4651 mov r1, sl + 8006e3a: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8006e3e: 4651 mov r1, sl + 8006e40: 00ca lsls r2, r1, #3 + 8006e42: 4610 mov r0, r2 + 8006e44: 4619 mov r1, r3 + 8006e46: 4603 mov r3, r0 + 8006e48: 4642 mov r2, r8 + 8006e4a: 189b adds r3, r3, r2 + 8006e4c: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 8006e50: 464b mov r3, r9 + 8006e52: 460a mov r2, r1 + 8006e54: eb42 0303 adc.w r3, r2, r3 + 8006e58: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + 8006e5c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006e60: 685b ldr r3, [r3, #4] 8006e62: 2200 movs r2, #0 - 8006e64: 673b str r3, [r7, #112] @ 0x70 - 8006e66: 677a str r2, [r7, #116] @ 0x74 - 8006e68: e9d7 891c ldrd r8, r9, [r7, #112] @ 0x70 - 8006e6c: 4642 mov r2, r8 - 8006e6e: 464b mov r3, r9 - 8006e70: 1891 adds r1, r2, r2 - 8006e72: 60b9 str r1, [r7, #8] - 8006e74: 415b adcs r3, r3 - 8006e76: 60fb str r3, [r7, #12] - 8006e78: e9d7 2302 ldrd r2, r3, [r7, #8] - 8006e7c: 4641 mov r1, r8 - 8006e7e: 1851 adds r1, r2, r1 - 8006e80: 6039 str r1, [r7, #0] - 8006e82: 4649 mov r1, r9 - 8006e84: 414b adcs r3, r1 - 8006e86: 607b str r3, [r7, #4] - 8006e88: f04f 0200 mov.w r2, #0 - 8006e8c: f04f 0300 mov.w r3, #0 - 8006e90: e9d7 ab00 ldrd sl, fp, [r7] - 8006e94: 4659 mov r1, fp - 8006e96: 00cb lsls r3, r1, #3 - 8006e98: 4651 mov r1, sl - 8006e9a: ea43 7351 orr.w r3, r3, r1, lsr #29 - 8006e9e: 4651 mov r1, sl - 8006ea0: 00ca lsls r2, r1, #3 - 8006ea2: 4610 mov r0, r2 - 8006ea4: 4619 mov r1, r3 - 8006ea6: 4603 mov r3, r0 - 8006ea8: 4642 mov r2, r8 - 8006eaa: 189b adds r3, r3, r2 - 8006eac: 66bb str r3, [r7, #104] @ 0x68 - 8006eae: 464b mov r3, r9 - 8006eb0: 460a mov r2, r1 - 8006eb2: eb42 0303 adc.w r3, r2, r3 - 8006eb6: 66fb str r3, [r7, #108] @ 0x6c - 8006eb8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006ebc: 685b ldr r3, [r3, #4] - 8006ebe: 2200 movs r2, #0 - 8006ec0: 663b str r3, [r7, #96] @ 0x60 - 8006ec2: 667a str r2, [r7, #100] @ 0x64 - 8006ec4: f04f 0200 mov.w r2, #0 - 8006ec8: f04f 0300 mov.w r3, #0 - 8006ecc: e9d7 8918 ldrd r8, r9, [r7, #96] @ 0x60 - 8006ed0: 4649 mov r1, r9 - 8006ed2: 008b lsls r3, r1, #2 - 8006ed4: 4641 mov r1, r8 - 8006ed6: ea43 7391 orr.w r3, r3, r1, lsr #30 - 8006eda: 4641 mov r1, r8 - 8006edc: 008a lsls r2, r1, #2 - 8006ede: e9d7 011a ldrd r0, r1, [r7, #104] @ 0x68 - 8006ee2: f7f9 f98f bl 8000204 <__aeabi_uldivmod> - 8006ee6: 4602 mov r2, r0 - 8006ee8: 460b mov r3, r1 - 8006eea: 4b0d ldr r3, [pc, #52] @ (8006f20 ) - 8006eec: fba3 1302 umull r1, r3, r3, r2 - 8006ef0: 095b lsrs r3, r3, #5 - 8006ef2: 2164 movs r1, #100 @ 0x64 - 8006ef4: fb01 f303 mul.w r3, r1, r3 - 8006ef8: 1ad3 subs r3, r2, r3 - 8006efa: 011b lsls r3, r3, #4 - 8006efc: 3332 adds r3, #50 @ 0x32 - 8006efe: 4a08 ldr r2, [pc, #32] @ (8006f20 ) - 8006f00: fba2 2303 umull r2, r3, r2, r3 - 8006f04: 095b lsrs r3, r3, #5 - 8006f06: f003 020f and.w r2, r3, #15 - 8006f0a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8006f0e: 681b ldr r3, [r3, #0] - 8006f10: 4422 add r2, r4 - 8006f12: 609a str r2, [r3, #8] + 8006e64: 67bb str r3, [r7, #120] @ 0x78 + 8006e66: 67fa str r2, [r7, #124] @ 0x7c + 8006e68: f04f 0200 mov.w r2, #0 + 8006e6c: f04f 0300 mov.w r3, #0 + 8006e70: e9d7 891e ldrd r8, r9, [r7, #120] @ 0x78 + 8006e74: 4649 mov r1, r9 + 8006e76: 008b lsls r3, r1, #2 + 8006e78: 4641 mov r1, r8 + 8006e7a: ea43 7391 orr.w r3, r3, r1, lsr #30 + 8006e7e: 4641 mov r1, r8 + 8006e80: 008a lsls r2, r1, #2 + 8006e82: e9d7 0120 ldrd r0, r1, [r7, #128] @ 0x80 + 8006e86: f7f9 f9bd bl 8000204 <__aeabi_uldivmod> + 8006e8a: 4602 mov r2, r0 + 8006e8c: 460b mov r3, r1 + 8006e8e: 4611 mov r1, r2 + 8006e90: 4b38 ldr r3, [pc, #224] @ (8006f74 ) + 8006e92: fba3 2301 umull r2, r3, r3, r1 + 8006e96: 095b lsrs r3, r3, #5 + 8006e98: 2264 movs r2, #100 @ 0x64 + 8006e9a: fb02 f303 mul.w r3, r2, r3 + 8006e9e: 1acb subs r3, r1, r3 + 8006ea0: 011b lsls r3, r3, #4 + 8006ea2: 3332 adds r3, #50 @ 0x32 + 8006ea4: 4a33 ldr r2, [pc, #204] @ (8006f74 ) + 8006ea6: fba2 2303 umull r2, r3, r2, r3 + 8006eaa: 095b lsrs r3, r3, #5 + 8006eac: f003 03f0 and.w r3, r3, #240 @ 0xf0 + 8006eb0: 441c add r4, r3 + 8006eb2: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8006eb6: 2200 movs r2, #0 + 8006eb8: 673b str r3, [r7, #112] @ 0x70 + 8006eba: 677a str r2, [r7, #116] @ 0x74 + 8006ebc: e9d7 891c ldrd r8, r9, [r7, #112] @ 0x70 + 8006ec0: 4642 mov r2, r8 + 8006ec2: 464b mov r3, r9 + 8006ec4: 1891 adds r1, r2, r2 + 8006ec6: 60b9 str r1, [r7, #8] + 8006ec8: 415b adcs r3, r3 + 8006eca: 60fb str r3, [r7, #12] + 8006ecc: e9d7 2302 ldrd r2, r3, [r7, #8] + 8006ed0: 4641 mov r1, r8 + 8006ed2: 1851 adds r1, r2, r1 + 8006ed4: 6039 str r1, [r7, #0] + 8006ed6: 4649 mov r1, r9 + 8006ed8: 414b adcs r3, r1 + 8006eda: 607b str r3, [r7, #4] + 8006edc: f04f 0200 mov.w r2, #0 + 8006ee0: f04f 0300 mov.w r3, #0 + 8006ee4: e9d7 ab00 ldrd sl, fp, [r7] + 8006ee8: 4659 mov r1, fp + 8006eea: 00cb lsls r3, r1, #3 + 8006eec: 4651 mov r1, sl + 8006eee: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8006ef2: 4651 mov r1, sl + 8006ef4: 00ca lsls r2, r1, #3 + 8006ef6: 4610 mov r0, r2 + 8006ef8: 4619 mov r1, r3 + 8006efa: 4603 mov r3, r0 + 8006efc: 4642 mov r2, r8 + 8006efe: 189b adds r3, r3, r2 + 8006f00: 66bb str r3, [r7, #104] @ 0x68 + 8006f02: 464b mov r3, r9 + 8006f04: 460a mov r2, r1 + 8006f06: eb42 0303 adc.w r3, r2, r3 + 8006f0a: 66fb str r3, [r7, #108] @ 0x6c + 8006f0c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006f10: 685b ldr r3, [r3, #4] + 8006f12: 2200 movs r2, #0 + 8006f14: 663b str r3, [r7, #96] @ 0x60 + 8006f16: 667a str r2, [r7, #100] @ 0x64 + 8006f18: f04f 0200 mov.w r2, #0 + 8006f1c: f04f 0300 mov.w r3, #0 + 8006f20: e9d7 8918 ldrd r8, r9, [r7, #96] @ 0x60 + 8006f24: 4649 mov r1, r9 + 8006f26: 008b lsls r3, r1, #2 + 8006f28: 4641 mov r1, r8 + 8006f2a: ea43 7391 orr.w r3, r3, r1, lsr #30 + 8006f2e: 4641 mov r1, r8 + 8006f30: 008a lsls r2, r1, #2 + 8006f32: e9d7 011a ldrd r0, r1, [r7, #104] @ 0x68 + 8006f36: f7f9 f965 bl 8000204 <__aeabi_uldivmod> + 8006f3a: 4602 mov r2, r0 + 8006f3c: 460b mov r3, r1 + 8006f3e: 4b0d ldr r3, [pc, #52] @ (8006f74 ) + 8006f40: fba3 1302 umull r1, r3, r3, r2 + 8006f44: 095b lsrs r3, r3, #5 + 8006f46: 2164 movs r1, #100 @ 0x64 + 8006f48: fb01 f303 mul.w r3, r1, r3 + 8006f4c: 1ad3 subs r3, r2, r3 + 8006f4e: 011b lsls r3, r3, #4 + 8006f50: 3332 adds r3, #50 @ 0x32 + 8006f52: 4a08 ldr r2, [pc, #32] @ (8006f74 ) + 8006f54: fba2 2303 umull r2, r3, r2, r3 + 8006f58: 095b lsrs r3, r3, #5 + 8006f5a: f003 020f and.w r2, r3, #15 + 8006f5e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8006f62: 681b ldr r3, [r3, #0] + 8006f64: 4422 add r2, r4 + 8006f66: 609a str r2, [r3, #8] } - 8006f14: bf00 nop - 8006f16: f507 7780 add.w r7, r7, #256 @ 0x100 - 8006f1a: 46bd mov sp, r7 - 8006f1c: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} - 8006f20: 51eb851f .word 0x51eb851f + 8006f68: bf00 nop + 8006f6a: f507 7780 add.w r7, r7, #256 @ 0x100 + 8006f6e: 46bd mov sp, r7 + 8006f70: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} + 8006f74: 51eb851f .word 0x51eb851f -08006f24 : +08006f78 : * @param cfg pointer to a USB_OTG_CfgTypeDef structure that contains * the configuration information for the specified USBx peripheral. * @retval HAL status */ HAL_StatusTypeDef USB_CoreInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg) { - 8006f24: b084 sub sp, #16 - 8006f26: b580 push {r7, lr} - 8006f28: b084 sub sp, #16 - 8006f2a: af00 add r7, sp, #0 - 8006f2c: 6078 str r0, [r7, #4] - 8006f2e: f107 001c add.w r0, r7, #28 - 8006f32: e880 000e stmia.w r0, {r1, r2, r3} + 8006f78: b084 sub sp, #16 + 8006f7a: b580 push {r7, lr} + 8006f7c: b084 sub sp, #16 + 8006f7e: af00 add r7, sp, #0 + 8006f80: 6078 str r0, [r7, #4] + 8006f82: f107 001c add.w r0, r7, #28 + 8006f86: e880 000e stmia.w r0, {r1, r2, r3} HAL_StatusTypeDef ret; if (cfg.phy_itface == USB_OTG_ULPI_PHY) - 8006f36: f897 3021 ldrb.w r3, [r7, #33] @ 0x21 - 8006f3a: 2b01 cmp r3, #1 - 8006f3c: d123 bne.n 8006f86 + 8006f8a: f897 3021 ldrb.w r3, [r7, #33] @ 0x21 + 8006f8e: 2b01 cmp r3, #1 + 8006f90: d123 bne.n 8006fda { USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); - 8006f3e: 687b ldr r3, [r7, #4] - 8006f40: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006f42: f423 3280 bic.w r2, r3, #65536 @ 0x10000 - 8006f46: 687b ldr r3, [r7, #4] - 8006f48: 639a str r2, [r3, #56] @ 0x38 + 8006f92: 687b ldr r3, [r7, #4] + 8006f94: 6b9b ldr r3, [r3, #56] @ 0x38 + 8006f96: f423 3280 bic.w r2, r3, #65536 @ 0x10000 + 8006f9a: 687b ldr r3, [r7, #4] + 8006f9c: 639a str r2, [r3, #56] @ 0x38 /* Init The ULPI Interface */ USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_TSDPS | USB_OTG_GUSBCFG_ULPIFSLS | USB_OTG_GUSBCFG_PHYSEL); - 8006f4a: 687b ldr r3, [r7, #4] - 8006f4c: 68db ldr r3, [r3, #12] - 8006f4e: f423 0384 bic.w r3, r3, #4325376 @ 0x420000 - 8006f52: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8006f56: 687a ldr r2, [r7, #4] - 8006f58: 60d3 str r3, [r2, #12] + 8006f9e: 687b ldr r3, [r7, #4] + 8006fa0: 68db ldr r3, [r3, #12] + 8006fa2: f423 0384 bic.w r3, r3, #4325376 @ 0x420000 + 8006fa6: f023 0340 bic.w r3, r3, #64 @ 0x40 + 8006faa: 687a ldr r2, [r7, #4] + 8006fac: 60d3 str r3, [r2, #12] /* Select vbus source */ USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_ULPIEVBUSD | USB_OTG_GUSBCFG_ULPIEVBUSI); - 8006f5a: 687b ldr r3, [r7, #4] - 8006f5c: 68db ldr r3, [r3, #12] - 8006f5e: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 - 8006f62: 687b ldr r3, [r7, #4] - 8006f64: 60da str r2, [r3, #12] + 8006fae: 687b ldr r3, [r7, #4] + 8006fb0: 68db ldr r3, [r3, #12] + 8006fb2: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 + 8006fb6: 687b ldr r3, [r7, #4] + 8006fb8: 60da str r2, [r3, #12] if (cfg.use_external_vbus == 1U) - 8006f66: f897 3028 ldrb.w r3, [r7, #40] @ 0x28 - 8006f6a: 2b01 cmp r3, #1 - 8006f6c: d105 bne.n 8006f7a + 8006fba: f897 3028 ldrb.w r3, [r7, #40] @ 0x28 + 8006fbe: 2b01 cmp r3, #1 + 8006fc0: d105 bne.n 8006fce { USBx->GUSBCFG |= USB_OTG_GUSBCFG_ULPIEVBUSD; - 8006f6e: 687b ldr r3, [r7, #4] - 8006f70: 68db ldr r3, [r3, #12] - 8006f72: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 - 8006f76: 687b ldr r3, [r7, #4] - 8006f78: 60da str r2, [r3, #12] + 8006fc2: 687b ldr r3, [r7, #4] + 8006fc4: 68db ldr r3, [r3, #12] + 8006fc6: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 + 8006fca: 687b ldr r3, [r7, #4] + 8006fcc: 60da str r2, [r3, #12] } /* Reset after a PHY select */ ret = USB_CoreReset(USBx); - 8006f7a: 6878 ldr r0, [r7, #4] - 8006f7c: f001 fae2 bl 8008544 - 8006f80: 4603 mov r3, r0 - 8006f82: 73fb strb r3, [r7, #15] - 8006f84: e01b b.n 8006fbe + 8006fce: 6878 ldr r0, [r7, #4] + 8006fd0: f001 fae2 bl 8008598 + 8006fd4: 4603 mov r3, r0 + 8006fd6: 73fb strb r3, [r7, #15] + 8006fd8: e01b b.n 8007012 } else /* FS interface (embedded Phy) */ { /* Select FS Embedded PHY */ USBx->GUSBCFG |= USB_OTG_GUSBCFG_PHYSEL; - 8006f86: 687b ldr r3, [r7, #4] - 8006f88: 68db ldr r3, [r3, #12] - 8006f8a: f043 0240 orr.w r2, r3, #64 @ 0x40 - 8006f8e: 687b ldr r3, [r7, #4] - 8006f90: 60da str r2, [r3, #12] + 8006fda: 687b ldr r3, [r7, #4] + 8006fdc: 68db ldr r3, [r3, #12] + 8006fde: f043 0240 orr.w r2, r3, #64 @ 0x40 + 8006fe2: 687b ldr r3, [r7, #4] + 8006fe4: 60da str r2, [r3, #12] /* Reset after a PHY select */ ret = USB_CoreReset(USBx); - 8006f92: 6878 ldr r0, [r7, #4] - 8006f94: f001 fad6 bl 8008544 - 8006f98: 4603 mov r3, r0 - 8006f9a: 73fb strb r3, [r7, #15] + 8006fe6: 6878 ldr r0, [r7, #4] + 8006fe8: f001 fad6 bl 8008598 + 8006fec: 4603 mov r3, r0 + 8006fee: 73fb strb r3, [r7, #15] if (cfg.battery_charging_enable == 0U) - 8006f9c: f897 3025 ldrb.w r3, [r7, #37] @ 0x25 - 8006fa0: 2b00 cmp r3, #0 - 8006fa2: d106 bne.n 8006fb2 + 8006ff0: f897 3025 ldrb.w r3, [r7, #37] @ 0x25 + 8006ff4: 2b00 cmp r3, #0 + 8006ff6: d106 bne.n 8007006 { /* Activate the USB Transceiver */ USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN; - 8006fa4: 687b ldr r3, [r7, #4] - 8006fa6: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006fa8: f443 3280 orr.w r2, r3, #65536 @ 0x10000 - 8006fac: 687b ldr r3, [r7, #4] - 8006fae: 639a str r2, [r3, #56] @ 0x38 - 8006fb0: e005 b.n 8006fbe + 8006ff8: 687b ldr r3, [r7, #4] + 8006ffa: 6b9b ldr r3, [r3, #56] @ 0x38 + 8006ffc: f443 3280 orr.w r2, r3, #65536 @ 0x10000 + 8007000: 687b ldr r3, [r7, #4] + 8007002: 639a str r2, [r3, #56] @ 0x38 + 8007004: e005 b.n 8007012 } else { /* Deactivate the USB Transceiver */ USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); - 8006fb2: 687b ldr r3, [r7, #4] - 8006fb4: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006fb6: f423 3280 bic.w r2, r3, #65536 @ 0x10000 - 8006fba: 687b ldr r3, [r7, #4] - 8006fbc: 639a str r2, [r3, #56] @ 0x38 + 8007006: 687b ldr r3, [r7, #4] + 8007008: 6b9b ldr r3, [r3, #56] @ 0x38 + 800700a: f423 3280 bic.w r2, r3, #65536 @ 0x10000 + 800700e: 687b ldr r3, [r7, #4] + 8007010: 639a str r2, [r3, #56] @ 0x38 } } if (cfg.dma_enable == 1U) - 8006fbe: 7fbb ldrb r3, [r7, #30] - 8006fc0: 2b01 cmp r3, #1 - 8006fc2: d10b bne.n 8006fdc + 8007012: 7fbb ldrb r3, [r7, #30] + 8007014: 2b01 cmp r3, #1 + 8007016: d10b bne.n 8007030 { USBx->GAHBCFG |= USB_OTG_GAHBCFG_HBSTLEN_2; - 8006fc4: 687b ldr r3, [r7, #4] - 8006fc6: 689b ldr r3, [r3, #8] - 8006fc8: f043 0206 orr.w r2, r3, #6 - 8006fcc: 687b ldr r3, [r7, #4] - 8006fce: 609a str r2, [r3, #8] + 8007018: 687b ldr r3, [r7, #4] + 800701a: 689b ldr r3, [r3, #8] + 800701c: f043 0206 orr.w r2, r3, #6 + 8007020: 687b ldr r3, [r7, #4] + 8007022: 609a str r2, [r3, #8] USBx->GAHBCFG |= USB_OTG_GAHBCFG_DMAEN; - 8006fd0: 687b ldr r3, [r7, #4] - 8006fd2: 689b ldr r3, [r3, #8] - 8006fd4: f043 0220 orr.w r2, r3, #32 - 8006fd8: 687b ldr r3, [r7, #4] - 8006fda: 609a str r2, [r3, #8] + 8007024: 687b ldr r3, [r7, #4] + 8007026: 689b ldr r3, [r3, #8] + 8007028: f043 0220 orr.w r2, r3, #32 + 800702c: 687b ldr r3, [r7, #4] + 800702e: 609a str r2, [r3, #8] } return ret; - 8006fdc: 7bfb ldrb r3, [r7, #15] + 8007030: 7bfb ldrb r3, [r7, #15] } - 8006fde: 4618 mov r0, r3 - 8006fe0: 3710 adds r7, #16 - 8006fe2: 46bd mov sp, r7 - 8006fe4: e8bd 4080 ldmia.w sp!, {r7, lr} - 8006fe8: b004 add sp, #16 - 8006fea: 4770 bx lr + 8007032: 4618 mov r0, r3 + 8007034: 3710 adds r7, #16 + 8007036: 46bd mov sp, r7 + 8007038: e8bd 4080 ldmia.w sp!, {r7, lr} + 800703c: b004 add sp, #16 + 800703e: 4770 bx lr -08006fec : +08007040 : * @param hclk: AHB clock frequency * @retval USB turnaround time In PHY Clocks number */ HAL_StatusTypeDef USB_SetTurnaroundTime(USB_OTG_GlobalTypeDef *USBx, uint32_t hclk, uint8_t speed) { - 8006fec: b480 push {r7} - 8006fee: b087 sub sp, #28 - 8006ff0: af00 add r7, sp, #0 - 8006ff2: 60f8 str r0, [r7, #12] - 8006ff4: 60b9 str r1, [r7, #8] - 8006ff6: 4613 mov r3, r2 - 8006ff8: 71fb strb r3, [r7, #7] + 8007040: b480 push {r7} + 8007042: b087 sub sp, #28 + 8007044: af00 add r7, sp, #0 + 8007046: 60f8 str r0, [r7, #12] + 8007048: 60b9 str r1, [r7, #8] + 800704a: 4613 mov r3, r2 + 800704c: 71fb strb r3, [r7, #7] /* The USBTRD is configured according to the tables below, depending on AHB frequency used by application. In the low AHB frequency range it is used to stretch enough the USB response time to IN tokens, the USB turnaround time, so to compensate for the longer AHB read access latency to the Data FIFO */ if (speed == USBD_FS_SPEED) - 8006ffa: 79fb ldrb r3, [r7, #7] - 8006ffc: 2b02 cmp r3, #2 - 8006ffe: d165 bne.n 80070cc + 800704e: 79fb ldrb r3, [r7, #7] + 8007050: 2b02 cmp r3, #2 + 8007052: d165 bne.n 8007120 { if ((hclk >= 14200000U) && (hclk < 15000000U)) - 8007000: 68bb ldr r3, [r7, #8] - 8007002: 4a41 ldr r2, [pc, #260] @ (8007108 ) - 8007004: 4293 cmp r3, r2 - 8007006: d906 bls.n 8007016 - 8007008: 68bb ldr r3, [r7, #8] - 800700a: 4a40 ldr r2, [pc, #256] @ (800710c ) - 800700c: 4293 cmp r3, r2 - 800700e: d202 bcs.n 8007016 + 8007054: 68bb ldr r3, [r7, #8] + 8007056: 4a41 ldr r2, [pc, #260] @ (800715c ) + 8007058: 4293 cmp r3, r2 + 800705a: d906 bls.n 800706a + 800705c: 68bb ldr r3, [r7, #8] + 800705e: 4a40 ldr r2, [pc, #256] @ (8007160 ) + 8007060: 4293 cmp r3, r2 + 8007062: d202 bcs.n 800706a { /* hclk Clock Range between 14.2-15 MHz */ UsbTrd = 0xFU; - 8007010: 230f movs r3, #15 - 8007012: 617b str r3, [r7, #20] - 8007014: e062 b.n 80070dc + 8007064: 230f movs r3, #15 + 8007066: 617b str r3, [r7, #20] + 8007068: e062 b.n 8007130 } else if ((hclk >= 15000000U) && (hclk < 16000000U)) - 8007016: 68bb ldr r3, [r7, #8] - 8007018: 4a3c ldr r2, [pc, #240] @ (800710c ) - 800701a: 4293 cmp r3, r2 - 800701c: d306 bcc.n 800702c - 800701e: 68bb ldr r3, [r7, #8] - 8007020: 4a3b ldr r2, [pc, #236] @ (8007110 ) - 8007022: 4293 cmp r3, r2 - 8007024: d202 bcs.n 800702c + 800706a: 68bb ldr r3, [r7, #8] + 800706c: 4a3c ldr r2, [pc, #240] @ (8007160 ) + 800706e: 4293 cmp r3, r2 + 8007070: d306 bcc.n 8007080 + 8007072: 68bb ldr r3, [r7, #8] + 8007074: 4a3b ldr r2, [pc, #236] @ (8007164 ) + 8007076: 4293 cmp r3, r2 + 8007078: d202 bcs.n 8007080 { /* hclk Clock Range between 15-16 MHz */ UsbTrd = 0xEU; - 8007026: 230e movs r3, #14 - 8007028: 617b str r3, [r7, #20] - 800702a: e057 b.n 80070dc + 800707a: 230e movs r3, #14 + 800707c: 617b str r3, [r7, #20] + 800707e: e057 b.n 8007130 } else if ((hclk >= 16000000U) && (hclk < 17200000U)) - 800702c: 68bb ldr r3, [r7, #8] - 800702e: 4a38 ldr r2, [pc, #224] @ (8007110 ) - 8007030: 4293 cmp r3, r2 - 8007032: d306 bcc.n 8007042 - 8007034: 68bb ldr r3, [r7, #8] - 8007036: 4a37 ldr r2, [pc, #220] @ (8007114 ) - 8007038: 4293 cmp r3, r2 - 800703a: d202 bcs.n 8007042 + 8007080: 68bb ldr r3, [r7, #8] + 8007082: 4a38 ldr r2, [pc, #224] @ (8007164 ) + 8007084: 4293 cmp r3, r2 + 8007086: d306 bcc.n 8007096 + 8007088: 68bb ldr r3, [r7, #8] + 800708a: 4a37 ldr r2, [pc, #220] @ (8007168 ) + 800708c: 4293 cmp r3, r2 + 800708e: d202 bcs.n 8007096 { /* hclk Clock Range between 16-17.2 MHz */ UsbTrd = 0xDU; - 800703c: 230d movs r3, #13 - 800703e: 617b str r3, [r7, #20] - 8007040: e04c b.n 80070dc + 8007090: 230d movs r3, #13 + 8007092: 617b str r3, [r7, #20] + 8007094: e04c b.n 8007130 } else if ((hclk >= 17200000U) && (hclk < 18500000U)) - 8007042: 68bb ldr r3, [r7, #8] - 8007044: 4a33 ldr r2, [pc, #204] @ (8007114 ) - 8007046: 4293 cmp r3, r2 - 8007048: d306 bcc.n 8007058 - 800704a: 68bb ldr r3, [r7, #8] - 800704c: 4a32 ldr r2, [pc, #200] @ (8007118 ) - 800704e: 4293 cmp r3, r2 - 8007050: d802 bhi.n 8007058 + 8007096: 68bb ldr r3, [r7, #8] + 8007098: 4a33 ldr r2, [pc, #204] @ (8007168 ) + 800709a: 4293 cmp r3, r2 + 800709c: d306 bcc.n 80070ac + 800709e: 68bb ldr r3, [r7, #8] + 80070a0: 4a32 ldr r2, [pc, #200] @ (800716c ) + 80070a2: 4293 cmp r3, r2 + 80070a4: d802 bhi.n 80070ac { /* hclk Clock Range between 17.2-18.5 MHz */ UsbTrd = 0xCU; - 8007052: 230c movs r3, #12 - 8007054: 617b str r3, [r7, #20] - 8007056: e041 b.n 80070dc + 80070a6: 230c movs r3, #12 + 80070a8: 617b str r3, [r7, #20] + 80070aa: e041 b.n 8007130 } else if ((hclk >= 18500000U) && (hclk < 20000000U)) - 8007058: 68bb ldr r3, [r7, #8] - 800705a: 4a2f ldr r2, [pc, #188] @ (8007118 ) - 800705c: 4293 cmp r3, r2 - 800705e: d906 bls.n 800706e - 8007060: 68bb ldr r3, [r7, #8] - 8007062: 4a2e ldr r2, [pc, #184] @ (800711c ) - 8007064: 4293 cmp r3, r2 - 8007066: d802 bhi.n 800706e + 80070ac: 68bb ldr r3, [r7, #8] + 80070ae: 4a2f ldr r2, [pc, #188] @ (800716c ) + 80070b0: 4293 cmp r3, r2 + 80070b2: d906 bls.n 80070c2 + 80070b4: 68bb ldr r3, [r7, #8] + 80070b6: 4a2e ldr r2, [pc, #184] @ (8007170 ) + 80070b8: 4293 cmp r3, r2 + 80070ba: d802 bhi.n 80070c2 { /* hclk Clock Range between 18.5-20 MHz */ UsbTrd = 0xBU; - 8007068: 230b movs r3, #11 - 800706a: 617b str r3, [r7, #20] - 800706c: e036 b.n 80070dc + 80070bc: 230b movs r3, #11 + 80070be: 617b str r3, [r7, #20] + 80070c0: e036 b.n 8007130 } else if ((hclk >= 20000000U) && (hclk < 21800000U)) - 800706e: 68bb ldr r3, [r7, #8] - 8007070: 4a2a ldr r2, [pc, #168] @ (800711c ) - 8007072: 4293 cmp r3, r2 - 8007074: d906 bls.n 8007084 - 8007076: 68bb ldr r3, [r7, #8] - 8007078: 4a29 ldr r2, [pc, #164] @ (8007120 ) - 800707a: 4293 cmp r3, r2 - 800707c: d802 bhi.n 8007084 + 80070c2: 68bb ldr r3, [r7, #8] + 80070c4: 4a2a ldr r2, [pc, #168] @ (8007170 ) + 80070c6: 4293 cmp r3, r2 + 80070c8: d906 bls.n 80070d8 + 80070ca: 68bb ldr r3, [r7, #8] + 80070cc: 4a29 ldr r2, [pc, #164] @ (8007174 ) + 80070ce: 4293 cmp r3, r2 + 80070d0: d802 bhi.n 80070d8 { /* hclk Clock Range between 20-21.8 MHz */ UsbTrd = 0xAU; - 800707e: 230a movs r3, #10 - 8007080: 617b str r3, [r7, #20] - 8007082: e02b b.n 80070dc + 80070d2: 230a movs r3, #10 + 80070d4: 617b str r3, [r7, #20] + 80070d6: e02b b.n 8007130 } else if ((hclk >= 21800000U) && (hclk < 24000000U)) - 8007084: 68bb ldr r3, [r7, #8] - 8007086: 4a26 ldr r2, [pc, #152] @ (8007120 ) - 8007088: 4293 cmp r3, r2 - 800708a: d906 bls.n 800709a - 800708c: 68bb ldr r3, [r7, #8] - 800708e: 4a25 ldr r2, [pc, #148] @ (8007124 ) - 8007090: 4293 cmp r3, r2 - 8007092: d202 bcs.n 800709a + 80070d8: 68bb ldr r3, [r7, #8] + 80070da: 4a26 ldr r2, [pc, #152] @ (8007174 ) + 80070dc: 4293 cmp r3, r2 + 80070de: d906 bls.n 80070ee + 80070e0: 68bb ldr r3, [r7, #8] + 80070e2: 4a25 ldr r2, [pc, #148] @ (8007178 ) + 80070e4: 4293 cmp r3, r2 + 80070e6: d202 bcs.n 80070ee { /* hclk Clock Range between 21.8-24 MHz */ UsbTrd = 0x9U; - 8007094: 2309 movs r3, #9 - 8007096: 617b str r3, [r7, #20] - 8007098: e020 b.n 80070dc + 80070e8: 2309 movs r3, #9 + 80070ea: 617b str r3, [r7, #20] + 80070ec: e020 b.n 8007130 } else if ((hclk >= 24000000U) && (hclk < 27700000U)) - 800709a: 68bb ldr r3, [r7, #8] - 800709c: 4a21 ldr r2, [pc, #132] @ (8007124 ) - 800709e: 4293 cmp r3, r2 - 80070a0: d306 bcc.n 80070b0 - 80070a2: 68bb ldr r3, [r7, #8] - 80070a4: 4a20 ldr r2, [pc, #128] @ (8007128 ) - 80070a6: 4293 cmp r3, r2 - 80070a8: d802 bhi.n 80070b0 + 80070ee: 68bb ldr r3, [r7, #8] + 80070f0: 4a21 ldr r2, [pc, #132] @ (8007178 ) + 80070f2: 4293 cmp r3, r2 + 80070f4: d306 bcc.n 8007104 + 80070f6: 68bb ldr r3, [r7, #8] + 80070f8: 4a20 ldr r2, [pc, #128] @ (800717c ) + 80070fa: 4293 cmp r3, r2 + 80070fc: d802 bhi.n 8007104 { /* hclk Clock Range between 24-27.7 MHz */ UsbTrd = 0x8U; - 80070aa: 2308 movs r3, #8 - 80070ac: 617b str r3, [r7, #20] - 80070ae: e015 b.n 80070dc + 80070fe: 2308 movs r3, #8 + 8007100: 617b str r3, [r7, #20] + 8007102: e015 b.n 8007130 } else if ((hclk >= 27700000U) && (hclk < 32000000U)) - 80070b0: 68bb ldr r3, [r7, #8] - 80070b2: 4a1d ldr r2, [pc, #116] @ (8007128 ) - 80070b4: 4293 cmp r3, r2 - 80070b6: d906 bls.n 80070c6 - 80070b8: 68bb ldr r3, [r7, #8] - 80070ba: 4a1c ldr r2, [pc, #112] @ (800712c ) - 80070bc: 4293 cmp r3, r2 - 80070be: d202 bcs.n 80070c6 + 8007104: 68bb ldr r3, [r7, #8] + 8007106: 4a1d ldr r2, [pc, #116] @ (800717c ) + 8007108: 4293 cmp r3, r2 + 800710a: d906 bls.n 800711a + 800710c: 68bb ldr r3, [r7, #8] + 800710e: 4a1c ldr r2, [pc, #112] @ (8007180 ) + 8007110: 4293 cmp r3, r2 + 8007112: d202 bcs.n 800711a { /* hclk Clock Range between 27.7-32 MHz */ UsbTrd = 0x7U; - 80070c0: 2307 movs r3, #7 - 80070c2: 617b str r3, [r7, #20] - 80070c4: e00a b.n 80070dc + 8007114: 2307 movs r3, #7 + 8007116: 617b str r3, [r7, #20] + 8007118: e00a b.n 8007130 } else /* if(hclk >= 32000000) */ { /* hclk Clock Range between 32-200 MHz */ UsbTrd = 0x6U; - 80070c6: 2306 movs r3, #6 - 80070c8: 617b str r3, [r7, #20] - 80070ca: e007 b.n 80070dc + 800711a: 2306 movs r3, #6 + 800711c: 617b str r3, [r7, #20] + 800711e: e007 b.n 8007130 } } else if (speed == USBD_HS_SPEED) - 80070cc: 79fb ldrb r3, [r7, #7] - 80070ce: 2b00 cmp r3, #0 - 80070d0: d102 bne.n 80070d8 + 8007120: 79fb ldrb r3, [r7, #7] + 8007122: 2b00 cmp r3, #0 + 8007124: d102 bne.n 800712c { UsbTrd = USBD_HS_TRDT_VALUE; - 80070d2: 2309 movs r3, #9 - 80070d4: 617b str r3, [r7, #20] - 80070d6: e001 b.n 80070dc + 8007126: 2309 movs r3, #9 + 8007128: 617b str r3, [r7, #20] + 800712a: e001 b.n 8007130 } else { UsbTrd = USBD_DEFAULT_TRDT_VALUE; - 80070d8: 2309 movs r3, #9 - 80070da: 617b str r3, [r7, #20] + 800712c: 2309 movs r3, #9 + 800712e: 617b str r3, [r7, #20] } USBx->GUSBCFG &= ~USB_OTG_GUSBCFG_TRDT; - 80070dc: 68fb ldr r3, [r7, #12] - 80070de: 68db ldr r3, [r3, #12] - 80070e0: f423 5270 bic.w r2, r3, #15360 @ 0x3c00 - 80070e4: 68fb ldr r3, [r7, #12] - 80070e6: 60da str r2, [r3, #12] + 8007130: 68fb ldr r3, [r7, #12] + 8007132: 68db ldr r3, [r3, #12] + 8007134: f423 5270 bic.w r2, r3, #15360 @ 0x3c00 + 8007138: 68fb ldr r3, [r7, #12] + 800713a: 60da str r2, [r3, #12] USBx->GUSBCFG |= (uint32_t)((UsbTrd << 10) & USB_OTG_GUSBCFG_TRDT); - 80070e8: 68fb ldr r3, [r7, #12] - 80070ea: 68da ldr r2, [r3, #12] - 80070ec: 697b ldr r3, [r7, #20] - 80070ee: 029b lsls r3, r3, #10 - 80070f0: f403 5370 and.w r3, r3, #15360 @ 0x3c00 - 80070f4: 431a orrs r2, r3 - 80070f6: 68fb ldr r3, [r7, #12] - 80070f8: 60da str r2, [r3, #12] + 800713c: 68fb ldr r3, [r7, #12] + 800713e: 68da ldr r2, [r3, #12] + 8007140: 697b ldr r3, [r7, #20] + 8007142: 029b lsls r3, r3, #10 + 8007144: f403 5370 and.w r3, r3, #15360 @ 0x3c00 + 8007148: 431a orrs r2, r3 + 800714a: 68fb ldr r3, [r7, #12] + 800714c: 60da str r2, [r3, #12] return HAL_OK; - 80070fa: 2300 movs r3, #0 + 800714e: 2300 movs r3, #0 } - 80070fc: 4618 mov r0, r3 - 80070fe: 371c adds r7, #28 - 8007100: 46bd mov sp, r7 - 8007102: f85d 7b04 ldr.w r7, [sp], #4 - 8007106: 4770 bx lr - 8007108: 00d8acbf .word 0x00d8acbf - 800710c: 00e4e1c0 .word 0x00e4e1c0 - 8007110: 00f42400 .word 0x00f42400 - 8007114: 01067380 .word 0x01067380 - 8007118: 011a499f .word 0x011a499f - 800711c: 01312cff .word 0x01312cff - 8007120: 014ca43f .word 0x014ca43f - 8007124: 016e3600 .word 0x016e3600 - 8007128: 01a6ab1f .word 0x01a6ab1f - 800712c: 01e84800 .word 0x01e84800 + 8007150: 4618 mov r0, r3 + 8007152: 371c adds r7, #28 + 8007154: 46bd mov sp, r7 + 8007156: f85d 7b04 ldr.w r7, [sp], #4 + 800715a: 4770 bx lr + 800715c: 00d8acbf .word 0x00d8acbf + 8007160: 00e4e1c0 .word 0x00e4e1c0 + 8007164: 00f42400 .word 0x00f42400 + 8007168: 01067380 .word 0x01067380 + 800716c: 011a499f .word 0x011a499f + 8007170: 01312cff .word 0x01312cff + 8007174: 014ca43f .word 0x014ca43f + 8007178: 016e3600 .word 0x016e3600 + 800717c: 01a6ab1f .word 0x01a6ab1f + 8007180: 01e84800 .word 0x01e84800 -08007130 : +08007184 : * Enables the controller's Global Int in the AHB Config reg * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_EnableGlobalInt(USB_OTG_GlobalTypeDef *USBx) { - 8007130: b480 push {r7} - 8007132: b083 sub sp, #12 - 8007134: af00 add r7, sp, #0 - 8007136: 6078 str r0, [r7, #4] + 8007184: b480 push {r7} + 8007186: b083 sub sp, #12 + 8007188: af00 add r7, sp, #0 + 800718a: 6078 str r0, [r7, #4] USBx->GAHBCFG |= USB_OTG_GAHBCFG_GINT; - 8007138: 687b ldr r3, [r7, #4] - 800713a: 689b ldr r3, [r3, #8] - 800713c: f043 0201 orr.w r2, r3, #1 - 8007140: 687b ldr r3, [r7, #4] - 8007142: 609a str r2, [r3, #8] + 800718c: 687b ldr r3, [r7, #4] + 800718e: 689b ldr r3, [r3, #8] + 8007190: f043 0201 orr.w r2, r3, #1 + 8007194: 687b ldr r3, [r7, #4] + 8007196: 609a str r2, [r3, #8] return HAL_OK; - 8007144: 2300 movs r3, #0 + 8007198: 2300 movs r3, #0 } - 8007146: 4618 mov r0, r3 - 8007148: 370c adds r7, #12 - 800714a: 46bd mov sp, r7 - 800714c: f85d 7b04 ldr.w r7, [sp], #4 - 8007150: 4770 bx lr + 800719a: 4618 mov r0, r3 + 800719c: 370c adds r7, #12 + 800719e: 46bd mov sp, r7 + 80071a0: f85d 7b04 ldr.w r7, [sp], #4 + 80071a4: 4770 bx lr -08007152 : +080071a6 : * Disable the controller's Global Int in the AHB Config reg * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_DisableGlobalInt(USB_OTG_GlobalTypeDef *USBx) { - 8007152: b480 push {r7} - 8007154: b083 sub sp, #12 - 8007156: af00 add r7, sp, #0 - 8007158: 6078 str r0, [r7, #4] + 80071a6: b480 push {r7} + 80071a8: b083 sub sp, #12 + 80071aa: af00 add r7, sp, #0 + 80071ac: 6078 str r0, [r7, #4] USBx->GAHBCFG &= ~USB_OTG_GAHBCFG_GINT; - 800715a: 687b ldr r3, [r7, #4] - 800715c: 689b ldr r3, [r3, #8] - 800715e: f023 0201 bic.w r2, r3, #1 - 8007162: 687b ldr r3, [r7, #4] - 8007164: 609a str r2, [r3, #8] + 80071ae: 687b ldr r3, [r7, #4] + 80071b0: 689b ldr r3, [r3, #8] + 80071b2: f023 0201 bic.w r2, r3, #1 + 80071b6: 687b ldr r3, [r7, #4] + 80071b8: 609a str r2, [r3, #8] return HAL_OK; - 8007166: 2300 movs r3, #0 + 80071ba: 2300 movs r3, #0 } - 8007168: 4618 mov r0, r3 - 800716a: 370c adds r7, #12 - 800716c: 46bd mov sp, r7 - 800716e: f85d 7b04 ldr.w r7, [sp], #4 - 8007172: 4770 bx lr + 80071bc: 4618 mov r0, r3 + 80071be: 370c adds r7, #12 + 80071c0: 46bd mov sp, r7 + 80071c2: f85d 7b04 ldr.w r7, [sp], #4 + 80071c6: 4770 bx lr -08007174 : +080071c8 : * @arg USB_DEVICE_MODE Peripheral mode * @arg USB_HOST_MODE Host mode * @retval HAL status */ HAL_StatusTypeDef USB_SetCurrentMode(USB_OTG_GlobalTypeDef *USBx, USB_OTG_ModeTypeDef mode) { - 8007174: b580 push {r7, lr} - 8007176: b084 sub sp, #16 - 8007178: af00 add r7, sp, #0 - 800717a: 6078 str r0, [r7, #4] - 800717c: 460b mov r3, r1 - 800717e: 70fb strb r3, [r7, #3] + 80071c8: b580 push {r7, lr} + 80071ca: b084 sub sp, #16 + 80071cc: af00 add r7, sp, #0 + 80071ce: 6078 str r0, [r7, #4] + 80071d0: 460b mov r3, r1 + 80071d2: 70fb strb r3, [r7, #3] uint32_t ms = 0U; - 8007180: 2300 movs r3, #0 - 8007182: 60fb str r3, [r7, #12] + 80071d4: 2300 movs r3, #0 + 80071d6: 60fb str r3, [r7, #12] USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_FHMOD | USB_OTG_GUSBCFG_FDMOD); - 8007184: 687b ldr r3, [r7, #4] - 8007186: 68db ldr r3, [r3, #12] - 8007188: f023 42c0 bic.w r2, r3, #1610612736 @ 0x60000000 - 800718c: 687b ldr r3, [r7, #4] - 800718e: 60da str r2, [r3, #12] + 80071d8: 687b ldr r3, [r7, #4] + 80071da: 68db ldr r3, [r3, #12] + 80071dc: f023 42c0 bic.w r2, r3, #1610612736 @ 0x60000000 + 80071e0: 687b ldr r3, [r7, #4] + 80071e2: 60da str r2, [r3, #12] if (mode == USB_HOST_MODE) - 8007190: 78fb ldrb r3, [r7, #3] - 8007192: 2b01 cmp r3, #1 - 8007194: d115 bne.n 80071c2 + 80071e4: 78fb ldrb r3, [r7, #3] + 80071e6: 2b01 cmp r3, #1 + 80071e8: d115 bne.n 8007216 { USBx->GUSBCFG |= USB_OTG_GUSBCFG_FHMOD; - 8007196: 687b ldr r3, [r7, #4] - 8007198: 68db ldr r3, [r3, #12] - 800719a: f043 5200 orr.w r2, r3, #536870912 @ 0x20000000 - 800719e: 687b ldr r3, [r7, #4] - 80071a0: 60da str r2, [r3, #12] + 80071ea: 687b ldr r3, [r7, #4] + 80071ec: 68db ldr r3, [r3, #12] + 80071ee: f043 5200 orr.w r2, r3, #536870912 @ 0x20000000 + 80071f2: 687b ldr r3, [r7, #4] + 80071f4: 60da str r2, [r3, #12] do { HAL_Delay(10U); - 80071a2: 200a movs r0, #10 - 80071a4: f7fa fcc4 bl 8001b30 + 80071f6: 200a movs r0, #10 + 80071f8: f7fa fcc4 bl 8001b84 ms += 10U; - 80071a8: 68fb ldr r3, [r7, #12] - 80071aa: 330a adds r3, #10 - 80071ac: 60fb str r3, [r7, #12] + 80071fc: 68fb ldr r3, [r7, #12] + 80071fe: 330a adds r3, #10 + 8007200: 60fb str r3, [r7, #12] } while ((USB_GetMode(USBx) != (uint32_t)USB_HOST_MODE) && (ms < HAL_USB_CURRENT_MODE_MAX_DELAY_MS)); - 80071ae: 6878 ldr r0, [r7, #4] - 80071b0: f001 f939 bl 8008426 - 80071b4: 4603 mov r3, r0 - 80071b6: 2b01 cmp r3, #1 - 80071b8: d01e beq.n 80071f8 - 80071ba: 68fb ldr r3, [r7, #12] - 80071bc: 2bc7 cmp r3, #199 @ 0xc7 - 80071be: d9f0 bls.n 80071a2 - 80071c0: e01a b.n 80071f8 + 8007202: 6878 ldr r0, [r7, #4] + 8007204: f001 f939 bl 800847a + 8007208: 4603 mov r3, r0 + 800720a: 2b01 cmp r3, #1 + 800720c: d01e beq.n 800724c + 800720e: 68fb ldr r3, [r7, #12] + 8007210: 2bc7 cmp r3, #199 @ 0xc7 + 8007212: d9f0 bls.n 80071f6 + 8007214: e01a b.n 800724c } else if (mode == USB_DEVICE_MODE) - 80071c2: 78fb ldrb r3, [r7, #3] - 80071c4: 2b00 cmp r3, #0 - 80071c6: d115 bne.n 80071f4 + 8007216: 78fb ldrb r3, [r7, #3] + 8007218: 2b00 cmp r3, #0 + 800721a: d115 bne.n 8007248 { USBx->GUSBCFG |= USB_OTG_GUSBCFG_FDMOD; - 80071c8: 687b ldr r3, [r7, #4] - 80071ca: 68db ldr r3, [r3, #12] - 80071cc: f043 4280 orr.w r2, r3, #1073741824 @ 0x40000000 - 80071d0: 687b ldr r3, [r7, #4] - 80071d2: 60da str r2, [r3, #12] + 800721c: 687b ldr r3, [r7, #4] + 800721e: 68db ldr r3, [r3, #12] + 8007220: f043 4280 orr.w r2, r3, #1073741824 @ 0x40000000 + 8007224: 687b ldr r3, [r7, #4] + 8007226: 60da str r2, [r3, #12] do { HAL_Delay(10U); - 80071d4: 200a movs r0, #10 - 80071d6: f7fa fcab bl 8001b30 + 8007228: 200a movs r0, #10 + 800722a: f7fa fcab bl 8001b84 ms += 10U; - 80071da: 68fb ldr r3, [r7, #12] - 80071dc: 330a adds r3, #10 - 80071de: 60fb str r3, [r7, #12] + 800722e: 68fb ldr r3, [r7, #12] + 8007230: 330a adds r3, #10 + 8007232: 60fb str r3, [r7, #12] } while ((USB_GetMode(USBx) != (uint32_t)USB_DEVICE_MODE) && (ms < HAL_USB_CURRENT_MODE_MAX_DELAY_MS)); - 80071e0: 6878 ldr r0, [r7, #4] - 80071e2: f001 f920 bl 8008426 - 80071e6: 4603 mov r3, r0 - 80071e8: 2b00 cmp r3, #0 - 80071ea: d005 beq.n 80071f8 - 80071ec: 68fb ldr r3, [r7, #12] - 80071ee: 2bc7 cmp r3, #199 @ 0xc7 - 80071f0: d9f0 bls.n 80071d4 - 80071f2: e001 b.n 80071f8 + 8007234: 6878 ldr r0, [r7, #4] + 8007236: f001 f920 bl 800847a + 800723a: 4603 mov r3, r0 + 800723c: 2b00 cmp r3, #0 + 800723e: d005 beq.n 800724c + 8007240: 68fb ldr r3, [r7, #12] + 8007242: 2bc7 cmp r3, #199 @ 0xc7 + 8007244: d9f0 bls.n 8007228 + 8007246: e001 b.n 800724c } else { return HAL_ERROR; - 80071f4: 2301 movs r3, #1 - 80071f6: e005 b.n 8007204 + 8007248: 2301 movs r3, #1 + 800724a: e005 b.n 8007258 } if (ms == HAL_USB_CURRENT_MODE_MAX_DELAY_MS) - 80071f8: 68fb ldr r3, [r7, #12] - 80071fa: 2bc8 cmp r3, #200 @ 0xc8 - 80071fc: d101 bne.n 8007202 + 800724c: 68fb ldr r3, [r7, #12] + 800724e: 2bc8 cmp r3, #200 @ 0xc8 + 8007250: d101 bne.n 8007256 { return HAL_ERROR; - 80071fe: 2301 movs r3, #1 - 8007200: e000 b.n 8007204 + 8007252: 2301 movs r3, #1 + 8007254: e000 b.n 8007258 } return HAL_OK; - 8007202: 2300 movs r3, #0 + 8007256: 2300 movs r3, #0 } - 8007204: 4618 mov r0, r3 - 8007206: 3710 adds r7, #16 - 8007208: 46bd mov sp, r7 - 800720a: bd80 pop {r7, pc} + 8007258: 4618 mov r0, r3 + 800725a: 3710 adds r7, #16 + 800725c: 46bd mov sp, r7 + 800725e: bd80 pop {r7, pc} -0800720c : +08007260 : * @param cfg pointer to a USB_OTG_CfgTypeDef structure that contains * the configuration information for the specified USBx peripheral. * @retval HAL status */ HAL_StatusTypeDef USB_DevInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg) { - 800720c: b084 sub sp, #16 - 800720e: b580 push {r7, lr} - 8007210: b086 sub sp, #24 - 8007212: af00 add r7, sp, #0 - 8007214: 6078 str r0, [r7, #4] - 8007216: f107 0024 add.w r0, r7, #36 @ 0x24 - 800721a: e880 000e stmia.w r0, {r1, r2, r3} + 8007260: b084 sub sp, #16 + 8007262: b580 push {r7, lr} + 8007264: b086 sub sp, #24 + 8007266: af00 add r7, sp, #0 + 8007268: 6078 str r0, [r7, #4] + 800726a: f107 0024 add.w r0, r7, #36 @ 0x24 + 800726e: e880 000e stmia.w r0, {r1, r2, r3} HAL_StatusTypeDef ret = HAL_OK; - 800721e: 2300 movs r3, #0 - 8007220: 75fb strb r3, [r7, #23] + 8007272: 2300 movs r3, #0 + 8007274: 75fb strb r3, [r7, #23] uint32_t USBx_BASE = (uint32_t)USBx; - 8007222: 687b ldr r3, [r7, #4] - 8007224: 60fb str r3, [r7, #12] + 8007276: 687b ldr r3, [r7, #4] + 8007278: 60fb str r3, [r7, #12] uint32_t i; for (i = 0U; i < 15U; i++) - 8007226: 2300 movs r3, #0 - 8007228: 613b str r3, [r7, #16] - 800722a: e009 b.n 8007240 + 800727a: 2300 movs r3, #0 + 800727c: 613b str r3, [r7, #16] + 800727e: e009 b.n 8007294 { USBx->DIEPTXF[i] = 0U; - 800722c: 687a ldr r2, [r7, #4] - 800722e: 693b ldr r3, [r7, #16] - 8007230: 3340 adds r3, #64 @ 0x40 - 8007232: 009b lsls r3, r3, #2 - 8007234: 4413 add r3, r2 - 8007236: 2200 movs r2, #0 - 8007238: 605a str r2, [r3, #4] + 8007280: 687a ldr r2, [r7, #4] + 8007282: 693b ldr r3, [r7, #16] + 8007284: 3340 adds r3, #64 @ 0x40 + 8007286: 009b lsls r3, r3, #2 + 8007288: 4413 add r3, r2 + 800728a: 2200 movs r2, #0 + 800728c: 605a str r2, [r3, #4] for (i = 0U; i < 15U; i++) - 800723a: 693b ldr r3, [r7, #16] - 800723c: 3301 adds r3, #1 - 800723e: 613b str r3, [r7, #16] - 8007240: 693b ldr r3, [r7, #16] - 8007242: 2b0e cmp r3, #14 - 8007244: d9f2 bls.n 800722c + 800728e: 693b ldr r3, [r7, #16] + 8007290: 3301 adds r3, #1 + 8007292: 613b str r3, [r7, #16] + 8007294: 693b ldr r3, [r7, #16] + 8007296: 2b0e cmp r3, #14 + 8007298: d9f2 bls.n 8007280 #if defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) \ || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) \ || defined(STM32F423xx) /* VBUS Sensing setup */ if (cfg.vbus_sensing_enable == 0U) - 8007246: f897 302e ldrb.w r3, [r7, #46] @ 0x2e - 800724a: 2b00 cmp r3, #0 - 800724c: d11c bne.n 8007288 + 800729a: f897 302e ldrb.w r3, [r7, #46] @ 0x2e + 800729e: 2b00 cmp r3, #0 + 80072a0: d11c bne.n 80072dc { USBx_DEVICE->DCTL |= USB_OTG_DCTL_SDIS; - 800724e: 68fb ldr r3, [r7, #12] - 8007250: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007254: 685b ldr r3, [r3, #4] - 8007256: 68fa ldr r2, [r7, #12] - 8007258: f502 6200 add.w r2, r2, #2048 @ 0x800 - 800725c: f043 0302 orr.w r3, r3, #2 - 8007260: 6053 str r3, [r2, #4] + 80072a2: 68fb ldr r3, [r7, #12] + 80072a4: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80072a8: 685b ldr r3, [r3, #4] + 80072aa: 68fa ldr r2, [r7, #12] + 80072ac: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80072b0: f043 0302 orr.w r3, r3, #2 + 80072b4: 6053 str r3, [r2, #4] /* Deactivate VBUS Sensing B */ USBx->GCCFG &= ~USB_OTG_GCCFG_VBDEN; - 8007262: 687b ldr r3, [r7, #4] - 8007264: 6b9b ldr r3, [r3, #56] @ 0x38 - 8007266: f423 1200 bic.w r2, r3, #2097152 @ 0x200000 - 800726a: 687b ldr r3, [r7, #4] - 800726c: 639a str r2, [r3, #56] @ 0x38 + 80072b6: 687b ldr r3, [r7, #4] + 80072b8: 6b9b ldr r3, [r3, #56] @ 0x38 + 80072ba: f423 1200 bic.w r2, r3, #2097152 @ 0x200000 + 80072be: 687b ldr r3, [r7, #4] + 80072c0: 639a str r2, [r3, #56] @ 0x38 /* B-peripheral session valid override enable */ USBx->GOTGCTL |= USB_OTG_GOTGCTL_BVALOEN; - 800726e: 687b ldr r3, [r7, #4] - 8007270: 681b ldr r3, [r3, #0] - 8007272: f043 0240 orr.w r2, r3, #64 @ 0x40 - 8007276: 687b ldr r3, [r7, #4] - 8007278: 601a str r2, [r3, #0] + 80072c2: 687b ldr r3, [r7, #4] + 80072c4: 681b ldr r3, [r3, #0] + 80072c6: f043 0240 orr.w r2, r3, #64 @ 0x40 + 80072ca: 687b ldr r3, [r7, #4] + 80072cc: 601a str r2, [r3, #0] USBx->GOTGCTL |= USB_OTG_GOTGCTL_BVALOVAL; - 800727a: 687b ldr r3, [r7, #4] - 800727c: 681b ldr r3, [r3, #0] - 800727e: f043 0280 orr.w r2, r3, #128 @ 0x80 - 8007282: 687b ldr r3, [r7, #4] - 8007284: 601a str r2, [r3, #0] - 8007286: e005 b.n 8007294 + 80072ce: 687b ldr r3, [r7, #4] + 80072d0: 681b ldr r3, [r3, #0] + 80072d2: f043 0280 orr.w r2, r3, #128 @ 0x80 + 80072d6: 687b ldr r3, [r7, #4] + 80072d8: 601a str r2, [r3, #0] + 80072da: e005 b.n 80072e8 } else { /* Enable HW VBUS sensing */ USBx->GCCFG |= USB_OTG_GCCFG_VBDEN; - 8007288: 687b ldr r3, [r7, #4] - 800728a: 6b9b ldr r3, [r3, #56] @ 0x38 - 800728c: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 - 8007290: 687b ldr r3, [r7, #4] - 8007292: 639a str r2, [r3, #56] @ 0x38 + 80072dc: 687b ldr r3, [r7, #4] + 80072de: 6b9b ldr r3, [r3, #56] @ 0x38 + 80072e0: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 + 80072e4: 687b ldr r3, [r7, #4] + 80072e6: 639a str r2, [r3, #56] @ 0x38 #endif /* defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) */ /* Restart the Phy Clock */ USBx_PCGCCTL = 0U; - 8007294: 68fb ldr r3, [r7, #12] - 8007296: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 800729a: 461a mov r2, r3 - 800729c: 2300 movs r3, #0 - 800729e: 6013 str r3, [r2, #0] + 80072e8: 68fb ldr r3, [r7, #12] + 80072ea: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 80072ee: 461a mov r2, r3 + 80072f0: 2300 movs r3, #0 + 80072f2: 6013 str r3, [r2, #0] if (cfg.phy_itface == USB_OTG_ULPI_PHY) - 80072a0: f897 3029 ldrb.w r3, [r7, #41] @ 0x29 - 80072a4: 2b01 cmp r3, #1 - 80072a6: d10d bne.n 80072c4 + 80072f4: f897 3029 ldrb.w r3, [r7, #41] @ 0x29 + 80072f8: 2b01 cmp r3, #1 + 80072fa: d10d bne.n 8007318 { if (cfg.speed == USBD_HS_SPEED) - 80072a8: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 - 80072ac: 2b00 cmp r3, #0 - 80072ae: d104 bne.n 80072ba + 80072fc: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 + 8007300: 2b00 cmp r3, #0 + 8007302: d104 bne.n 800730e { /* Set Core speed to High speed mode */ (void)USB_SetDevSpeed(USBx, USB_OTG_SPEED_HIGH); - 80072b0: 2100 movs r1, #0 - 80072b2: 6878 ldr r0, [r7, #4] - 80072b4: f000 f968 bl 8007588 - 80072b8: e008 b.n 80072cc + 8007304: 2100 movs r1, #0 + 8007306: 6878 ldr r0, [r7, #4] + 8007308: f000 f968 bl 80075dc + 800730c: e008 b.n 8007320 } else { /* Set Core speed to Full speed mode */ (void)USB_SetDevSpeed(USBx, USB_OTG_SPEED_HIGH_IN_FULL); - 80072ba: 2101 movs r1, #1 - 80072bc: 6878 ldr r0, [r7, #4] - 80072be: f000 f963 bl 8007588 - 80072c2: e003 b.n 80072cc + 800730e: 2101 movs r1, #1 + 8007310: 6878 ldr r0, [r7, #4] + 8007312: f000 f963 bl 80075dc + 8007316: e003 b.n 8007320 } } else { /* Set Core speed to Full speed mode */ (void)USB_SetDevSpeed(USBx, USB_OTG_SPEED_FULL); - 80072c4: 2103 movs r1, #3 - 80072c6: 6878 ldr r0, [r7, #4] - 80072c8: f000 f95e bl 8007588 + 8007318: 2103 movs r1, #3 + 800731a: 6878 ldr r0, [r7, #4] + 800731c: f000 f95e bl 80075dc } /* Flush the FIFOs */ if (USB_FlushTxFifo(USBx, 0x10U) != HAL_OK) /* all Tx FIFOs */ - 80072cc: 2110 movs r1, #16 - 80072ce: 6878 ldr r0, [r7, #4] - 80072d0: f000 f8fa bl 80074c8 - 80072d4: 4603 mov r3, r0 - 80072d6: 2b00 cmp r3, #0 - 80072d8: d001 beq.n 80072de + 8007320: 2110 movs r1, #16 + 8007322: 6878 ldr r0, [r7, #4] + 8007324: f000 f8fa bl 800751c + 8007328: 4603 mov r3, r0 + 800732a: 2b00 cmp r3, #0 + 800732c: d001 beq.n 8007332 { ret = HAL_ERROR; - 80072da: 2301 movs r3, #1 - 80072dc: 75fb strb r3, [r7, #23] + 800732e: 2301 movs r3, #1 + 8007330: 75fb strb r3, [r7, #23] } if (USB_FlushRxFifo(USBx) != HAL_OK) - 80072de: 6878 ldr r0, [r7, #4] - 80072e0: f000 f924 bl 800752c - 80072e4: 4603 mov r3, r0 - 80072e6: 2b00 cmp r3, #0 - 80072e8: d001 beq.n 80072ee + 8007332: 6878 ldr r0, [r7, #4] + 8007334: f000 f924 bl 8007580 + 8007338: 4603 mov r3, r0 + 800733a: 2b00 cmp r3, #0 + 800733c: d001 beq.n 8007342 { ret = HAL_ERROR; - 80072ea: 2301 movs r3, #1 - 80072ec: 75fb strb r3, [r7, #23] + 800733e: 2301 movs r3, #1 + 8007340: 75fb strb r3, [r7, #23] } /* Clear all pending Device Interrupts */ USBx_DEVICE->DIEPMSK = 0U; - 80072ee: 68fb ldr r3, [r7, #12] - 80072f0: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80072f4: 461a mov r2, r3 - 80072f6: 2300 movs r3, #0 - 80072f8: 6113 str r3, [r2, #16] + 8007342: 68fb ldr r3, [r7, #12] + 8007344: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007348: 461a mov r2, r3 + 800734a: 2300 movs r3, #0 + 800734c: 6113 str r3, [r2, #16] USBx_DEVICE->DOEPMSK = 0U; - 80072fa: 68fb ldr r3, [r7, #12] - 80072fc: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007300: 461a mov r2, r3 - 8007302: 2300 movs r3, #0 - 8007304: 6153 str r3, [r2, #20] + 800734e: 68fb ldr r3, [r7, #12] + 8007350: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007354: 461a mov r2, r3 + 8007356: 2300 movs r3, #0 + 8007358: 6153 str r3, [r2, #20] USBx_DEVICE->DAINTMSK = 0U; - 8007306: 68fb ldr r3, [r7, #12] - 8007308: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800730c: 461a mov r2, r3 - 800730e: 2300 movs r3, #0 - 8007310: 61d3 str r3, [r2, #28] + 800735a: 68fb ldr r3, [r7, #12] + 800735c: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007360: 461a mov r2, r3 + 8007362: 2300 movs r3, #0 + 8007364: 61d3 str r3, [r2, #28] for (i = 0U; i < cfg.dev_endpoints; i++) - 8007312: 2300 movs r3, #0 - 8007314: 613b str r3, [r7, #16] - 8007316: e043 b.n 80073a0 + 8007366: 2300 movs r3, #0 + 8007368: 613b str r3, [r7, #16] + 800736a: e043 b.n 80073f4 { if ((USBx_INEP(i)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) - 8007318: 693b ldr r3, [r7, #16] - 800731a: 015a lsls r2, r3, #5 - 800731c: 68fb ldr r3, [r7, #12] - 800731e: 4413 add r3, r2 - 8007320: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007324: 681b ldr r3, [r3, #0] - 8007326: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 800732a: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 800732e: d118 bne.n 8007362 + 800736c: 693b ldr r3, [r7, #16] + 800736e: 015a lsls r2, r3, #5 + 8007370: 68fb ldr r3, [r7, #12] + 8007372: 4413 add r3, r2 + 8007374: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007378: 681b ldr r3, [r3, #0] + 800737a: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 800737e: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8007382: d118 bne.n 80073b6 { if (i == 0U) - 8007330: 693b ldr r3, [r7, #16] - 8007332: 2b00 cmp r3, #0 - 8007334: d10a bne.n 800734c + 8007384: 693b ldr r3, [r7, #16] + 8007386: 2b00 cmp r3, #0 + 8007388: d10a bne.n 80073a0 { USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_SNAK; - 8007336: 693b ldr r3, [r7, #16] - 8007338: 015a lsls r2, r3, #5 - 800733a: 68fb ldr r3, [r7, #12] - 800733c: 4413 add r3, r2 - 800733e: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007342: 461a mov r2, r3 - 8007344: f04f 6300 mov.w r3, #134217728 @ 0x8000000 - 8007348: 6013 str r3, [r2, #0] - 800734a: e013 b.n 8007374 + 800738a: 693b ldr r3, [r7, #16] + 800738c: 015a lsls r2, r3, #5 + 800738e: 68fb ldr r3, [r7, #12] + 8007390: 4413 add r3, r2 + 8007392: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007396: 461a mov r2, r3 + 8007398: f04f 6300 mov.w r3, #134217728 @ 0x8000000 + 800739c: 6013 str r3, [r2, #0] + 800739e: e013 b.n 80073c8 } else { USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_EPDIS | USB_OTG_DIEPCTL_SNAK; - 800734c: 693b ldr r3, [r7, #16] - 800734e: 015a lsls r2, r3, #5 - 8007350: 68fb ldr r3, [r7, #12] - 8007352: 4413 add r3, r2 - 8007354: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007358: 461a mov r2, r3 - 800735a: f04f 4390 mov.w r3, #1207959552 @ 0x48000000 - 800735e: 6013 str r3, [r2, #0] - 8007360: e008 b.n 8007374 + 80073a0: 693b ldr r3, [r7, #16] + 80073a2: 015a lsls r2, r3, #5 + 80073a4: 68fb ldr r3, [r7, #12] + 80073a6: 4413 add r3, r2 + 80073a8: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80073ac: 461a mov r2, r3 + 80073ae: f04f 4390 mov.w r3, #1207959552 @ 0x48000000 + 80073b2: 6013 str r3, [r2, #0] + 80073b4: e008 b.n 80073c8 } } else { USBx_INEP(i)->DIEPCTL = 0U; - 8007362: 693b ldr r3, [r7, #16] - 8007364: 015a lsls r2, r3, #5 - 8007366: 68fb ldr r3, [r7, #12] - 8007368: 4413 add r3, r2 - 800736a: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800736e: 461a mov r2, r3 - 8007370: 2300 movs r3, #0 - 8007372: 6013 str r3, [r2, #0] + 80073b6: 693b ldr r3, [r7, #16] + 80073b8: 015a lsls r2, r3, #5 + 80073ba: 68fb ldr r3, [r7, #12] + 80073bc: 4413 add r3, r2 + 80073be: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80073c2: 461a mov r2, r3 + 80073c4: 2300 movs r3, #0 + 80073c6: 6013 str r3, [r2, #0] } USBx_INEP(i)->DIEPTSIZ = 0U; - 8007374: 693b ldr r3, [r7, #16] - 8007376: 015a lsls r2, r3, #5 - 8007378: 68fb ldr r3, [r7, #12] - 800737a: 4413 add r3, r2 - 800737c: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007380: 461a mov r2, r3 - 8007382: 2300 movs r3, #0 - 8007384: 6113 str r3, [r2, #16] + 80073c8: 693b ldr r3, [r7, #16] + 80073ca: 015a lsls r2, r3, #5 + 80073cc: 68fb ldr r3, [r7, #12] + 80073ce: 4413 add r3, r2 + 80073d0: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80073d4: 461a mov r2, r3 + 80073d6: 2300 movs r3, #0 + 80073d8: 6113 str r3, [r2, #16] USBx_INEP(i)->DIEPINT = 0xFB7FU; - 8007386: 693b ldr r3, [r7, #16] - 8007388: 015a lsls r2, r3, #5 - 800738a: 68fb ldr r3, [r7, #12] - 800738c: 4413 add r3, r2 - 800738e: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007392: 461a mov r2, r3 - 8007394: f64f 337f movw r3, #64383 @ 0xfb7f - 8007398: 6093 str r3, [r2, #8] + 80073da: 693b ldr r3, [r7, #16] + 80073dc: 015a lsls r2, r3, #5 + 80073de: 68fb ldr r3, [r7, #12] + 80073e0: 4413 add r3, r2 + 80073e2: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80073e6: 461a mov r2, r3 + 80073e8: f64f 337f movw r3, #64383 @ 0xfb7f + 80073ec: 6093 str r3, [r2, #8] for (i = 0U; i < cfg.dev_endpoints; i++) - 800739a: 693b ldr r3, [r7, #16] - 800739c: 3301 adds r3, #1 - 800739e: 613b str r3, [r7, #16] - 80073a0: f897 3024 ldrb.w r3, [r7, #36] @ 0x24 - 80073a4: 461a mov r2, r3 - 80073a6: 693b ldr r3, [r7, #16] - 80073a8: 4293 cmp r3, r2 - 80073aa: d3b5 bcc.n 8007318 + 80073ee: 693b ldr r3, [r7, #16] + 80073f0: 3301 adds r3, #1 + 80073f2: 613b str r3, [r7, #16] + 80073f4: f897 3024 ldrb.w r3, [r7, #36] @ 0x24 + 80073f8: 461a mov r2, r3 + 80073fa: 693b ldr r3, [r7, #16] + 80073fc: 4293 cmp r3, r2 + 80073fe: d3b5 bcc.n 800736c } for (i = 0U; i < cfg.dev_endpoints; i++) - 80073ac: 2300 movs r3, #0 - 80073ae: 613b str r3, [r7, #16] - 80073b0: e043 b.n 800743a + 8007400: 2300 movs r3, #0 + 8007402: 613b str r3, [r7, #16] + 8007404: e043 b.n 800748e { if ((USBx_OUTEP(i)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) - 80073b2: 693b ldr r3, [r7, #16] - 80073b4: 015a lsls r2, r3, #5 - 80073b6: 68fb ldr r3, [r7, #12] - 80073b8: 4413 add r3, r2 - 80073ba: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80073be: 681b ldr r3, [r3, #0] - 80073c0: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 80073c4: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 80073c8: d118 bne.n 80073fc + 8007406: 693b ldr r3, [r7, #16] + 8007408: 015a lsls r2, r3, #5 + 800740a: 68fb ldr r3, [r7, #12] + 800740c: 4413 add r3, r2 + 800740e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007412: 681b ldr r3, [r3, #0] + 8007414: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8007418: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 800741c: d118 bne.n 8007450 { if (i == 0U) - 80073ca: 693b ldr r3, [r7, #16] - 80073cc: 2b00 cmp r3, #0 - 80073ce: d10a bne.n 80073e6 + 800741e: 693b ldr r3, [r7, #16] + 8007420: 2b00 cmp r3, #0 + 8007422: d10a bne.n 800743a { USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_SNAK; - 80073d0: 693b ldr r3, [r7, #16] - 80073d2: 015a lsls r2, r3, #5 - 80073d4: 68fb ldr r3, [r7, #12] - 80073d6: 4413 add r3, r2 - 80073d8: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80073dc: 461a mov r2, r3 - 80073de: f04f 6300 mov.w r3, #134217728 @ 0x8000000 - 80073e2: 6013 str r3, [r2, #0] - 80073e4: e013 b.n 800740e + 8007424: 693b ldr r3, [r7, #16] + 8007426: 015a lsls r2, r3, #5 + 8007428: 68fb ldr r3, [r7, #12] + 800742a: 4413 add r3, r2 + 800742c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007430: 461a mov r2, r3 + 8007432: f04f 6300 mov.w r3, #134217728 @ 0x8000000 + 8007436: 6013 str r3, [r2, #0] + 8007438: e013 b.n 8007462 } else { USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_EPDIS | USB_OTG_DOEPCTL_SNAK; - 80073e6: 693b ldr r3, [r7, #16] - 80073e8: 015a lsls r2, r3, #5 - 80073ea: 68fb ldr r3, [r7, #12] - 80073ec: 4413 add r3, r2 - 80073ee: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80073f2: 461a mov r2, r3 - 80073f4: f04f 4390 mov.w r3, #1207959552 @ 0x48000000 - 80073f8: 6013 str r3, [r2, #0] - 80073fa: e008 b.n 800740e + 800743a: 693b ldr r3, [r7, #16] + 800743c: 015a lsls r2, r3, #5 + 800743e: 68fb ldr r3, [r7, #12] + 8007440: 4413 add r3, r2 + 8007442: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007446: 461a mov r2, r3 + 8007448: f04f 4390 mov.w r3, #1207959552 @ 0x48000000 + 800744c: 6013 str r3, [r2, #0] + 800744e: e008 b.n 8007462 } } else { USBx_OUTEP(i)->DOEPCTL = 0U; - 80073fc: 693b ldr r3, [r7, #16] - 80073fe: 015a lsls r2, r3, #5 - 8007400: 68fb ldr r3, [r7, #12] - 8007402: 4413 add r3, r2 - 8007404: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007408: 461a mov r2, r3 - 800740a: 2300 movs r3, #0 - 800740c: 6013 str r3, [r2, #0] + 8007450: 693b ldr r3, [r7, #16] + 8007452: 015a lsls r2, r3, #5 + 8007454: 68fb ldr r3, [r7, #12] + 8007456: 4413 add r3, r2 + 8007458: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800745c: 461a mov r2, r3 + 800745e: 2300 movs r3, #0 + 8007460: 6013 str r3, [r2, #0] } USBx_OUTEP(i)->DOEPTSIZ = 0U; - 800740e: 693b ldr r3, [r7, #16] - 8007410: 015a lsls r2, r3, #5 - 8007412: 68fb ldr r3, [r7, #12] - 8007414: 4413 add r3, r2 - 8007416: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800741a: 461a mov r2, r3 - 800741c: 2300 movs r3, #0 - 800741e: 6113 str r3, [r2, #16] + 8007462: 693b ldr r3, [r7, #16] + 8007464: 015a lsls r2, r3, #5 + 8007466: 68fb ldr r3, [r7, #12] + 8007468: 4413 add r3, r2 + 800746a: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800746e: 461a mov r2, r3 + 8007470: 2300 movs r3, #0 + 8007472: 6113 str r3, [r2, #16] USBx_OUTEP(i)->DOEPINT = 0xFB7FU; - 8007420: 693b ldr r3, [r7, #16] - 8007422: 015a lsls r2, r3, #5 - 8007424: 68fb ldr r3, [r7, #12] - 8007426: 4413 add r3, r2 - 8007428: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800742c: 461a mov r2, r3 - 800742e: f64f 337f movw r3, #64383 @ 0xfb7f - 8007432: 6093 str r3, [r2, #8] + 8007474: 693b ldr r3, [r7, #16] + 8007476: 015a lsls r2, r3, #5 + 8007478: 68fb ldr r3, [r7, #12] + 800747a: 4413 add r3, r2 + 800747c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007480: 461a mov r2, r3 + 8007482: f64f 337f movw r3, #64383 @ 0xfb7f + 8007486: 6093 str r3, [r2, #8] for (i = 0U; i < cfg.dev_endpoints; i++) - 8007434: 693b ldr r3, [r7, #16] - 8007436: 3301 adds r3, #1 - 8007438: 613b str r3, [r7, #16] - 800743a: f897 3024 ldrb.w r3, [r7, #36] @ 0x24 - 800743e: 461a mov r2, r3 - 8007440: 693b ldr r3, [r7, #16] - 8007442: 4293 cmp r3, r2 - 8007444: d3b5 bcc.n 80073b2 + 8007488: 693b ldr r3, [r7, #16] + 800748a: 3301 adds r3, #1 + 800748c: 613b str r3, [r7, #16] + 800748e: f897 3024 ldrb.w r3, [r7, #36] @ 0x24 + 8007492: 461a mov r2, r3 + 8007494: 693b ldr r3, [r7, #16] + 8007496: 4293 cmp r3, r2 + 8007498: d3b5 bcc.n 8007406 } USBx_DEVICE->DIEPMSK &= ~(USB_OTG_DIEPMSK_TXFURM); - 8007446: 68fb ldr r3, [r7, #12] - 8007448: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800744c: 691b ldr r3, [r3, #16] - 800744e: 68fa ldr r2, [r7, #12] - 8007450: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8007454: f423 7380 bic.w r3, r3, #256 @ 0x100 - 8007458: 6113 str r3, [r2, #16] + 800749a: 68fb ldr r3, [r7, #12] + 800749c: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80074a0: 691b ldr r3, [r3, #16] + 80074a2: 68fa ldr r2, [r7, #12] + 80074a4: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80074a8: f423 7380 bic.w r3, r3, #256 @ 0x100 + 80074ac: 6113 str r3, [r2, #16] /* Disable all interrupts. */ USBx->GINTMSK = 0U; - 800745a: 687b ldr r3, [r7, #4] - 800745c: 2200 movs r2, #0 - 800745e: 619a str r2, [r3, #24] + 80074ae: 687b ldr r3, [r7, #4] + 80074b0: 2200 movs r2, #0 + 80074b2: 619a str r2, [r3, #24] /* Clear any pending interrupts */ USBx->GINTSTS = 0xBFFFFFFFU; - 8007460: 687b ldr r3, [r7, #4] - 8007462: f06f 4280 mvn.w r2, #1073741824 @ 0x40000000 - 8007466: 615a str r2, [r3, #20] + 80074b4: 687b ldr r3, [r7, #4] + 80074b6: f06f 4280 mvn.w r2, #1073741824 @ 0x40000000 + 80074ba: 615a str r2, [r3, #20] /* Enable the common interrupts */ if (cfg.dma_enable == 0U) - 8007468: f897 3026 ldrb.w r3, [r7, #38] @ 0x26 - 800746c: 2b00 cmp r3, #0 - 800746e: d105 bne.n 800747c + 80074bc: f897 3026 ldrb.w r3, [r7, #38] @ 0x26 + 80074c0: 2b00 cmp r3, #0 + 80074c2: d105 bne.n 80074d0 { USBx->GINTMSK |= USB_OTG_GINTMSK_RXFLVLM; - 8007470: 687b ldr r3, [r7, #4] - 8007472: 699b ldr r3, [r3, #24] - 8007474: f043 0210 orr.w r2, r3, #16 - 8007478: 687b ldr r3, [r7, #4] - 800747a: 619a str r2, [r3, #24] + 80074c4: 687b ldr r3, [r7, #4] + 80074c6: 699b ldr r3, [r3, #24] + 80074c8: f043 0210 orr.w r2, r3, #16 + 80074cc: 687b ldr r3, [r7, #4] + 80074ce: 619a str r2, [r3, #24] } /* Enable interrupts matching to the Device mode ONLY */ USBx->GINTMSK |= USB_OTG_GINTMSK_USBSUSPM | USB_OTG_GINTMSK_USBRST | - 800747c: 687b ldr r3, [r7, #4] - 800747e: 699a ldr r2, [r3, #24] - 8007480: 4b10 ldr r3, [pc, #64] @ (80074c4 ) - 8007482: 4313 orrs r3, r2 - 8007484: 687a ldr r2, [r7, #4] - 8007486: 6193 str r3, [r2, #24] + 80074d0: 687b ldr r3, [r7, #4] + 80074d2: 699a ldr r2, [r3, #24] + 80074d4: 4b10 ldr r3, [pc, #64] @ (8007518 ) + 80074d6: 4313 orrs r3, r2 + 80074d8: 687a ldr r2, [r7, #4] + 80074da: 6193 str r3, [r2, #24] USB_OTG_GINTMSK_ENUMDNEM | USB_OTG_GINTMSK_IEPINT | USB_OTG_GINTMSK_OEPINT | USB_OTG_GINTMSK_IISOIXFRM | USB_OTG_GINTMSK_PXFRM_IISOOXFRM | USB_OTG_GINTMSK_WUIM; if (cfg.Sof_enable != 0U) - 8007488: f897 302a ldrb.w r3, [r7, #42] @ 0x2a - 800748c: 2b00 cmp r3, #0 - 800748e: d005 beq.n 800749c + 80074dc: f897 302a ldrb.w r3, [r7, #42] @ 0x2a + 80074e0: 2b00 cmp r3, #0 + 80074e2: d005 beq.n 80074f0 { USBx->GINTMSK |= USB_OTG_GINTMSK_SOFM; - 8007490: 687b ldr r3, [r7, #4] - 8007492: 699b ldr r3, [r3, #24] - 8007494: f043 0208 orr.w r2, r3, #8 - 8007498: 687b ldr r3, [r7, #4] - 800749a: 619a str r2, [r3, #24] + 80074e4: 687b ldr r3, [r7, #4] + 80074e6: 699b ldr r3, [r3, #24] + 80074e8: f043 0208 orr.w r2, r3, #8 + 80074ec: 687b ldr r3, [r7, #4] + 80074ee: 619a str r2, [r3, #24] } if (cfg.vbus_sensing_enable == 1U) - 800749c: f897 302e ldrb.w r3, [r7, #46] @ 0x2e - 80074a0: 2b01 cmp r3, #1 - 80074a2: d107 bne.n 80074b4 + 80074f0: f897 302e ldrb.w r3, [r7, #46] @ 0x2e + 80074f4: 2b01 cmp r3, #1 + 80074f6: d107 bne.n 8007508 { USBx->GINTMSK |= (USB_OTG_GINTMSK_SRQIM | USB_OTG_GINTMSK_OTGINT); - 80074a4: 687b ldr r3, [r7, #4] - 80074a6: 699b ldr r3, [r3, #24] - 80074a8: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 80074ac: f043 0304 orr.w r3, r3, #4 - 80074b0: 687a ldr r2, [r7, #4] - 80074b2: 6193 str r3, [r2, #24] + 80074f8: 687b ldr r3, [r7, #4] + 80074fa: 699b ldr r3, [r3, #24] + 80074fc: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 8007500: f043 0304 orr.w r3, r3, #4 + 8007504: 687a ldr r2, [r7, #4] + 8007506: 6193 str r3, [r2, #24] } return ret; - 80074b4: 7dfb ldrb r3, [r7, #23] + 8007508: 7dfb ldrb r3, [r7, #23] } - 80074b6: 4618 mov r0, r3 - 80074b8: 3718 adds r7, #24 - 80074ba: 46bd mov sp, r7 - 80074bc: e8bd 4080 ldmia.w sp!, {r7, lr} - 80074c0: b004 add sp, #16 - 80074c2: 4770 bx lr - 80074c4: 803c3800 .word 0x803c3800 + 800750a: 4618 mov r0, r3 + 800750c: 3718 adds r7, #24 + 800750e: 46bd mov sp, r7 + 8007510: e8bd 4080 ldmia.w sp!, {r7, lr} + 8007514: b004 add sp, #16 + 8007516: 4770 bx lr + 8007518: 803c3800 .word 0x803c3800 -080074c8 : +0800751c : * This parameter can be a value from 1 to 15 15 means Flush all Tx FIFOs * @retval HAL status */ HAL_StatusTypeDef USB_FlushTxFifo(USB_OTG_GlobalTypeDef *USBx, uint32_t num) { - 80074c8: b480 push {r7} - 80074ca: b085 sub sp, #20 - 80074cc: af00 add r7, sp, #0 - 80074ce: 6078 str r0, [r7, #4] - 80074d0: 6039 str r1, [r7, #0] + 800751c: b480 push {r7} + 800751e: b085 sub sp, #20 + 8007520: af00 add r7, sp, #0 + 8007522: 6078 str r0, [r7, #4] + 8007524: 6039 str r1, [r7, #0] __IO uint32_t count = 0U; - 80074d2: 2300 movs r3, #0 - 80074d4: 60fb str r3, [r7, #12] + 8007526: 2300 movs r3, #0 + 8007528: 60fb str r3, [r7, #12] /* Wait for AHB master IDLE state. */ do { count++; - 80074d6: 68fb ldr r3, [r7, #12] - 80074d8: 3301 adds r3, #1 - 80074da: 60fb str r3, [r7, #12] + 800752a: 68fb ldr r3, [r7, #12] + 800752c: 3301 adds r3, #1 + 800752e: 60fb str r3, [r7, #12] if (count > HAL_USB_TIMEOUT) - 80074dc: 68fb ldr r3, [r7, #12] - 80074de: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 80074e2: d901 bls.n 80074e8 + 8007530: 68fb ldr r3, [r7, #12] + 8007532: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 8007536: d901 bls.n 800753c { return HAL_TIMEOUT; - 80074e4: 2303 movs r3, #3 - 80074e6: e01b b.n 8007520 + 8007538: 2303 movs r3, #3 + 800753a: e01b b.n 8007574 } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_AHBIDL) == 0U); - 80074e8: 687b ldr r3, [r7, #4] - 80074ea: 691b ldr r3, [r3, #16] - 80074ec: 2b00 cmp r3, #0 - 80074ee: daf2 bge.n 80074d6 + 800753c: 687b ldr r3, [r7, #4] + 800753e: 691b ldr r3, [r3, #16] + 8007540: 2b00 cmp r3, #0 + 8007542: daf2 bge.n 800752a /* Flush TX Fifo */ count = 0U; - 80074f0: 2300 movs r3, #0 - 80074f2: 60fb str r3, [r7, #12] + 8007544: 2300 movs r3, #0 + 8007546: 60fb str r3, [r7, #12] USBx->GRSTCTL = (USB_OTG_GRSTCTL_TXFFLSH | (num << 6)); - 80074f4: 683b ldr r3, [r7, #0] - 80074f6: 019b lsls r3, r3, #6 - 80074f8: f043 0220 orr.w r2, r3, #32 - 80074fc: 687b ldr r3, [r7, #4] - 80074fe: 611a str r2, [r3, #16] + 8007548: 683b ldr r3, [r7, #0] + 800754a: 019b lsls r3, r3, #6 + 800754c: f043 0220 orr.w r2, r3, #32 + 8007550: 687b ldr r3, [r7, #4] + 8007552: 611a str r2, [r3, #16] do { count++; - 8007500: 68fb ldr r3, [r7, #12] - 8007502: 3301 adds r3, #1 - 8007504: 60fb str r3, [r7, #12] + 8007554: 68fb ldr r3, [r7, #12] + 8007556: 3301 adds r3, #1 + 8007558: 60fb str r3, [r7, #12] if (count > HAL_USB_TIMEOUT) - 8007506: 68fb ldr r3, [r7, #12] - 8007508: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 800750c: d901 bls.n 8007512 + 800755a: 68fb ldr r3, [r7, #12] + 800755c: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 8007560: d901 bls.n 8007566 { return HAL_TIMEOUT; - 800750e: 2303 movs r3, #3 - 8007510: e006 b.n 8007520 + 8007562: 2303 movs r3, #3 + 8007564: e006 b.n 8007574 } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_TXFFLSH) == USB_OTG_GRSTCTL_TXFFLSH); - 8007512: 687b ldr r3, [r7, #4] - 8007514: 691b ldr r3, [r3, #16] - 8007516: f003 0320 and.w r3, r3, #32 - 800751a: 2b20 cmp r3, #32 - 800751c: d0f0 beq.n 8007500 + 8007566: 687b ldr r3, [r7, #4] + 8007568: 691b ldr r3, [r3, #16] + 800756a: f003 0320 and.w r3, r3, #32 + 800756e: 2b20 cmp r3, #32 + 8007570: d0f0 beq.n 8007554 return HAL_OK; - 800751e: 2300 movs r3, #0 + 8007572: 2300 movs r3, #0 } - 8007520: 4618 mov r0, r3 - 8007522: 3714 adds r7, #20 - 8007524: 46bd mov sp, r7 - 8007526: f85d 7b04 ldr.w r7, [sp], #4 - 800752a: 4770 bx lr + 8007574: 4618 mov r0, r3 + 8007576: 3714 adds r7, #20 + 8007578: 46bd mov sp, r7 + 800757a: f85d 7b04 ldr.w r7, [sp], #4 + 800757e: 4770 bx lr -0800752c : +08007580 : * @brief USB_FlushRxFifo Flush Rx FIFO * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_FlushRxFifo(USB_OTG_GlobalTypeDef *USBx) { - 800752c: b480 push {r7} - 800752e: b085 sub sp, #20 - 8007530: af00 add r7, sp, #0 - 8007532: 6078 str r0, [r7, #4] + 8007580: b480 push {r7} + 8007582: b085 sub sp, #20 + 8007584: af00 add r7, sp, #0 + 8007586: 6078 str r0, [r7, #4] __IO uint32_t count = 0U; - 8007534: 2300 movs r3, #0 - 8007536: 60fb str r3, [r7, #12] + 8007588: 2300 movs r3, #0 + 800758a: 60fb str r3, [r7, #12] /* Wait for AHB master IDLE state. */ do { count++; - 8007538: 68fb ldr r3, [r7, #12] - 800753a: 3301 adds r3, #1 - 800753c: 60fb str r3, [r7, #12] + 800758c: 68fb ldr r3, [r7, #12] + 800758e: 3301 adds r3, #1 + 8007590: 60fb str r3, [r7, #12] if (count > HAL_USB_TIMEOUT) - 800753e: 68fb ldr r3, [r7, #12] - 8007540: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 8007544: d901 bls.n 800754a + 8007592: 68fb ldr r3, [r7, #12] + 8007594: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 8007598: d901 bls.n 800759e { return HAL_TIMEOUT; - 8007546: 2303 movs r3, #3 - 8007548: e018 b.n 800757c + 800759a: 2303 movs r3, #3 + 800759c: e018 b.n 80075d0 } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_AHBIDL) == 0U); - 800754a: 687b ldr r3, [r7, #4] - 800754c: 691b ldr r3, [r3, #16] - 800754e: 2b00 cmp r3, #0 - 8007550: daf2 bge.n 8007538 + 800759e: 687b ldr r3, [r7, #4] + 80075a0: 691b ldr r3, [r3, #16] + 80075a2: 2b00 cmp r3, #0 + 80075a4: daf2 bge.n 800758c /* Flush RX Fifo */ count = 0U; - 8007552: 2300 movs r3, #0 - 8007554: 60fb str r3, [r7, #12] + 80075a6: 2300 movs r3, #0 + 80075a8: 60fb str r3, [r7, #12] USBx->GRSTCTL = USB_OTG_GRSTCTL_RXFFLSH; - 8007556: 687b ldr r3, [r7, #4] - 8007558: 2210 movs r2, #16 - 800755a: 611a str r2, [r3, #16] + 80075aa: 687b ldr r3, [r7, #4] + 80075ac: 2210 movs r2, #16 + 80075ae: 611a str r2, [r3, #16] do { count++; - 800755c: 68fb ldr r3, [r7, #12] - 800755e: 3301 adds r3, #1 - 8007560: 60fb str r3, [r7, #12] + 80075b0: 68fb ldr r3, [r7, #12] + 80075b2: 3301 adds r3, #1 + 80075b4: 60fb str r3, [r7, #12] if (count > HAL_USB_TIMEOUT) - 8007562: 68fb ldr r3, [r7, #12] - 8007564: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 8007568: d901 bls.n 800756e + 80075b6: 68fb ldr r3, [r7, #12] + 80075b8: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 80075bc: d901 bls.n 80075c2 { return HAL_TIMEOUT; - 800756a: 2303 movs r3, #3 - 800756c: e006 b.n 800757c + 80075be: 2303 movs r3, #3 + 80075c0: e006 b.n 80075d0 } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_RXFFLSH) == USB_OTG_GRSTCTL_RXFFLSH); - 800756e: 687b ldr r3, [r7, #4] - 8007570: 691b ldr r3, [r3, #16] - 8007572: f003 0310 and.w r3, r3, #16 - 8007576: 2b10 cmp r3, #16 - 8007578: d0f0 beq.n 800755c + 80075c2: 687b ldr r3, [r7, #4] + 80075c4: 691b ldr r3, [r3, #16] + 80075c6: f003 0310 and.w r3, r3, #16 + 80075ca: 2b10 cmp r3, #16 + 80075cc: d0f0 beq.n 80075b0 return HAL_OK; - 800757a: 2300 movs r3, #0 + 80075ce: 2300 movs r3, #0 } - 800757c: 4618 mov r0, r3 - 800757e: 3714 adds r7, #20 - 8007580: 46bd mov sp, r7 - 8007582: f85d 7b04 ldr.w r7, [sp], #4 - 8007586: 4770 bx lr + 80075d0: 4618 mov r0, r3 + 80075d2: 3714 adds r7, #20 + 80075d4: 46bd mov sp, r7 + 80075d6: f85d 7b04 ldr.w r7, [sp], #4 + 80075da: 4770 bx lr -08007588 : +080075dc : * @arg USB_OTG_SPEED_HIGH_IN_FULL: High speed core in Full Speed mode * @arg USB_OTG_SPEED_FULL: Full speed mode * @retval Hal status */ HAL_StatusTypeDef USB_SetDevSpeed(const USB_OTG_GlobalTypeDef *USBx, uint8_t speed) { - 8007588: b480 push {r7} - 800758a: b085 sub sp, #20 - 800758c: af00 add r7, sp, #0 - 800758e: 6078 str r0, [r7, #4] - 8007590: 460b mov r3, r1 - 8007592: 70fb strb r3, [r7, #3] + 80075dc: b480 push {r7} + 80075de: b085 sub sp, #20 + 80075e0: af00 add r7, sp, #0 + 80075e2: 6078 str r0, [r7, #4] + 80075e4: 460b mov r3, r1 + 80075e6: 70fb strb r3, [r7, #3] uint32_t USBx_BASE = (uint32_t)USBx; - 8007594: 687b ldr r3, [r7, #4] - 8007596: 60fb str r3, [r7, #12] + 80075e8: 687b ldr r3, [r7, #4] + 80075ea: 60fb str r3, [r7, #12] USBx_DEVICE->DCFG |= speed; - 8007598: 68fb ldr r3, [r7, #12] - 800759a: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800759e: 681a ldr r2, [r3, #0] - 80075a0: 78fb ldrb r3, [r7, #3] - 80075a2: 68f9 ldr r1, [r7, #12] - 80075a4: f501 6100 add.w r1, r1, #2048 @ 0x800 - 80075a8: 4313 orrs r3, r2 - 80075aa: 600b str r3, [r1, #0] + 80075ec: 68fb ldr r3, [r7, #12] + 80075ee: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80075f2: 681a ldr r2, [r3, #0] + 80075f4: 78fb ldrb r3, [r7, #3] + 80075f6: 68f9 ldr r1, [r7, #12] + 80075f8: f501 6100 add.w r1, r1, #2048 @ 0x800 + 80075fc: 4313 orrs r3, r2 + 80075fe: 600b str r3, [r1, #0] return HAL_OK; - 80075ac: 2300 movs r3, #0 + 8007600: 2300 movs r3, #0 } - 80075ae: 4618 mov r0, r3 - 80075b0: 3714 adds r7, #20 - 80075b2: 46bd mov sp, r7 - 80075b4: f85d 7b04 ldr.w r7, [sp], #4 - 80075b8: 4770 bx lr + 8007602: 4618 mov r0, r3 + 8007604: 3714 adds r7, #20 + 8007606: 46bd mov sp, r7 + 8007608: f85d 7b04 ldr.w r7, [sp], #4 + 800760c: 4770 bx lr -080075ba : +0800760e : * This parameter can be one of these values: * @arg USBD_HS_SPEED: High speed mode * @arg USBD_FS_SPEED: Full speed mode */ uint8_t USB_GetDevSpeed(const USB_OTG_GlobalTypeDef *USBx) { - 80075ba: b480 push {r7} - 80075bc: b087 sub sp, #28 - 80075be: af00 add r7, sp, #0 - 80075c0: 6078 str r0, [r7, #4] + 800760e: b480 push {r7} + 8007610: b087 sub sp, #28 + 8007612: af00 add r7, sp, #0 + 8007614: 6078 str r0, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 80075c2: 687b ldr r3, [r7, #4] - 80075c4: 613b str r3, [r7, #16] + 8007616: 687b ldr r3, [r7, #4] + 8007618: 613b str r3, [r7, #16] uint8_t speed; uint32_t DevEnumSpeed = USBx_DEVICE->DSTS & USB_OTG_DSTS_ENUMSPD; - 80075c6: 693b ldr r3, [r7, #16] - 80075c8: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80075cc: 689b ldr r3, [r3, #8] - 80075ce: f003 0306 and.w r3, r3, #6 - 80075d2: 60fb str r3, [r7, #12] + 800761a: 693b ldr r3, [r7, #16] + 800761c: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007620: 689b ldr r3, [r3, #8] + 8007622: f003 0306 and.w r3, r3, #6 + 8007626: 60fb str r3, [r7, #12] if (DevEnumSpeed == DSTS_ENUMSPD_HS_PHY_30MHZ_OR_60MHZ) - 80075d4: 68fb ldr r3, [r7, #12] - 80075d6: 2b00 cmp r3, #0 - 80075d8: d102 bne.n 80075e0 + 8007628: 68fb ldr r3, [r7, #12] + 800762a: 2b00 cmp r3, #0 + 800762c: d102 bne.n 8007634 { speed = USBD_HS_SPEED; - 80075da: 2300 movs r3, #0 - 80075dc: 75fb strb r3, [r7, #23] - 80075de: e00a b.n 80075f6 + 800762e: 2300 movs r3, #0 + 8007630: 75fb strb r3, [r7, #23] + 8007632: e00a b.n 800764a } else if ((DevEnumSpeed == DSTS_ENUMSPD_FS_PHY_30MHZ_OR_60MHZ) || - 80075e0: 68fb ldr r3, [r7, #12] - 80075e2: 2b02 cmp r3, #2 - 80075e4: d002 beq.n 80075ec - 80075e6: 68fb ldr r3, [r7, #12] - 80075e8: 2b06 cmp r3, #6 - 80075ea: d102 bne.n 80075f2 + 8007634: 68fb ldr r3, [r7, #12] + 8007636: 2b02 cmp r3, #2 + 8007638: d002 beq.n 8007640 + 800763a: 68fb ldr r3, [r7, #12] + 800763c: 2b06 cmp r3, #6 + 800763e: d102 bne.n 8007646 (DevEnumSpeed == DSTS_ENUMSPD_FS_PHY_48MHZ)) { speed = USBD_FS_SPEED; - 80075ec: 2302 movs r3, #2 - 80075ee: 75fb strb r3, [r7, #23] - 80075f0: e001 b.n 80075f6 + 8007640: 2302 movs r3, #2 + 8007642: 75fb strb r3, [r7, #23] + 8007644: e001 b.n 800764a } else { speed = 0xFU; - 80075f2: 230f movs r3, #15 - 80075f4: 75fb strb r3, [r7, #23] + 8007646: 230f movs r3, #15 + 8007648: 75fb strb r3, [r7, #23] } return speed; - 80075f6: 7dfb ldrb r3, [r7, #23] + 800764a: 7dfb ldrb r3, [r7, #23] } - 80075f8: 4618 mov r0, r3 - 80075fa: 371c adds r7, #28 - 80075fc: 46bd mov sp, r7 - 80075fe: f85d 7b04 ldr.w r7, [sp], #4 - 8007602: 4770 bx lr + 800764c: 4618 mov r0, r3 + 800764e: 371c adds r7, #28 + 8007650: 46bd mov sp, r7 + 8007652: f85d 7b04 ldr.w r7, [sp], #4 + 8007656: 4770 bx lr -08007604 : +08007658 : * @param USBx Selected device * @param ep pointer to endpoint structure * @retval HAL status */ HAL_StatusTypeDef USB_ActivateEndpoint(const USB_OTG_GlobalTypeDef *USBx, const USB_OTG_EPTypeDef *ep) { - 8007604: b480 push {r7} - 8007606: b085 sub sp, #20 - 8007608: af00 add r7, sp, #0 - 800760a: 6078 str r0, [r7, #4] - 800760c: 6039 str r1, [r7, #0] + 8007658: b480 push {r7} + 800765a: b085 sub sp, #20 + 800765c: af00 add r7, sp, #0 + 800765e: 6078 str r0, [r7, #4] + 8007660: 6039 str r1, [r7, #0] uint32_t USBx_BASE = (uint32_t)USBx; - 800760e: 687b ldr r3, [r7, #4] - 8007610: 60fb str r3, [r7, #12] + 8007662: 687b ldr r3, [r7, #4] + 8007664: 60fb str r3, [r7, #12] uint32_t epnum = (uint32_t)ep->num; - 8007612: 683b ldr r3, [r7, #0] - 8007614: 781b ldrb r3, [r3, #0] - 8007616: 60bb str r3, [r7, #8] + 8007666: 683b ldr r3, [r7, #0] + 8007668: 781b ldrb r3, [r3, #0] + 800766a: 60bb str r3, [r7, #8] if (ep->is_in == 1U) - 8007618: 683b ldr r3, [r7, #0] - 800761a: 785b ldrb r3, [r3, #1] - 800761c: 2b01 cmp r3, #1 - 800761e: d13a bne.n 8007696 + 800766c: 683b ldr r3, [r7, #0] + 800766e: 785b ldrb r3, [r3, #1] + 8007670: 2b01 cmp r3, #1 + 8007672: d13a bne.n 80076ea { USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK)); - 8007620: 68fb ldr r3, [r7, #12] - 8007622: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007626: 69da ldr r2, [r3, #28] - 8007628: 683b ldr r3, [r7, #0] - 800762a: 781b ldrb r3, [r3, #0] - 800762c: f003 030f and.w r3, r3, #15 - 8007630: 2101 movs r1, #1 - 8007632: fa01 f303 lsl.w r3, r1, r3 - 8007636: b29b uxth r3, r3 - 8007638: 68f9 ldr r1, [r7, #12] - 800763a: f501 6100 add.w r1, r1, #2048 @ 0x800 - 800763e: 4313 orrs r3, r2 - 8007640: 61cb str r3, [r1, #28] + 8007674: 68fb ldr r3, [r7, #12] + 8007676: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800767a: 69da ldr r2, [r3, #28] + 800767c: 683b ldr r3, [r7, #0] + 800767e: 781b ldrb r3, [r3, #0] + 8007680: f003 030f and.w r3, r3, #15 + 8007684: 2101 movs r1, #1 + 8007686: fa01 f303 lsl.w r3, r1, r3 + 800768a: b29b uxth r3, r3 + 800768c: 68f9 ldr r1, [r7, #12] + 800768e: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8007692: 4313 orrs r3, r2 + 8007694: 61cb str r3, [r1, #28] if ((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_USBAEP) == 0U) - 8007642: 68bb ldr r3, [r7, #8] - 8007644: 015a lsls r2, r3, #5 - 8007646: 68fb ldr r3, [r7, #12] - 8007648: 4413 add r3, r2 - 800764a: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800764e: 681b ldr r3, [r3, #0] - 8007650: f403 4300 and.w r3, r3, #32768 @ 0x8000 - 8007654: 2b00 cmp r3, #0 - 8007656: d155 bne.n 8007704 + 8007696: 68bb ldr r3, [r7, #8] + 8007698: 015a lsls r2, r3, #5 + 800769a: 68fb ldr r3, [r7, #12] + 800769c: 4413 add r3, r2 + 800769e: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80076a2: 681b ldr r3, [r3, #0] + 80076a4: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 80076a8: 2b00 cmp r3, #0 + 80076aa: d155 bne.n 8007758 { USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) | - 8007658: 68bb ldr r3, [r7, #8] - 800765a: 015a lsls r2, r3, #5 - 800765c: 68fb ldr r3, [r7, #12] - 800765e: 4413 add r3, r2 - 8007660: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007664: 681a ldr r2, [r3, #0] - 8007666: 683b ldr r3, [r7, #0] - 8007668: 689b ldr r3, [r3, #8] - 800766a: f3c3 010a ubfx r1, r3, #0, #11 + 80076ac: 68bb ldr r3, [r7, #8] + 80076ae: 015a lsls r2, r3, #5 + 80076b0: 68fb ldr r3, [r7, #12] + 80076b2: 4413 add r3, r2 + 80076b4: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80076b8: 681a ldr r2, [r3, #0] + 80076ba: 683b ldr r3, [r7, #0] + 80076bc: 689b ldr r3, [r3, #8] + 80076be: f3c3 010a ubfx r1, r3, #0, #11 ((uint32_t)ep->type << 18) | (epnum << 22) | - 800766e: 683b ldr r3, [r7, #0] - 8007670: 791b ldrb r3, [r3, #4] - 8007672: 049b lsls r3, r3, #18 + 80076c2: 683b ldr r3, [r7, #0] + 80076c4: 791b ldrb r3, [r3, #4] + 80076c6: 049b lsls r3, r3, #18 USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) | - 8007674: 4319 orrs r1, r3 + 80076c8: 4319 orrs r1, r3 ((uint32_t)ep->type << 18) | (epnum << 22) | - 8007676: 68bb ldr r3, [r7, #8] - 8007678: 059b lsls r3, r3, #22 - 800767a: 430b orrs r3, r1 + 80076ca: 68bb ldr r3, [r7, #8] + 80076cc: 059b lsls r3, r3, #22 + 80076ce: 430b orrs r3, r1 USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) | - 800767c: 4313 orrs r3, r2 - 800767e: 68ba ldr r2, [r7, #8] - 8007680: 0151 lsls r1, r2, #5 - 8007682: 68fa ldr r2, [r7, #12] - 8007684: 440a add r2, r1 - 8007686: f502 6210 add.w r2, r2, #2304 @ 0x900 - 800768a: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 800768e: f443 4300 orr.w r3, r3, #32768 @ 0x8000 - 8007692: 6013 str r3, [r2, #0] - 8007694: e036 b.n 8007704 + 80076d0: 4313 orrs r3, r2 + 80076d2: 68ba ldr r2, [r7, #8] + 80076d4: 0151 lsls r1, r2, #5 + 80076d6: 68fa ldr r2, [r7, #12] + 80076d8: 440a add r2, r1 + 80076da: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80076de: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80076e2: f443 4300 orr.w r3, r3, #32768 @ 0x8000 + 80076e6: 6013 str r3, [r2, #0] + 80076e8: e036 b.n 8007758 USB_OTG_DIEPCTL_USBAEP; } } else { USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16); - 8007696: 68fb ldr r3, [r7, #12] - 8007698: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800769c: 69da ldr r2, [r3, #28] - 800769e: 683b ldr r3, [r7, #0] - 80076a0: 781b ldrb r3, [r3, #0] - 80076a2: f003 030f and.w r3, r3, #15 - 80076a6: 2101 movs r1, #1 - 80076a8: fa01 f303 lsl.w r3, r1, r3 - 80076ac: 041b lsls r3, r3, #16 - 80076ae: 68f9 ldr r1, [r7, #12] - 80076b0: f501 6100 add.w r1, r1, #2048 @ 0x800 - 80076b4: 4313 orrs r3, r2 - 80076b6: 61cb str r3, [r1, #28] + 80076ea: 68fb ldr r3, [r7, #12] + 80076ec: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80076f0: 69da ldr r2, [r3, #28] + 80076f2: 683b ldr r3, [r7, #0] + 80076f4: 781b ldrb r3, [r3, #0] + 80076f6: f003 030f and.w r3, r3, #15 + 80076fa: 2101 movs r1, #1 + 80076fc: fa01 f303 lsl.w r3, r1, r3 + 8007700: 041b lsls r3, r3, #16 + 8007702: 68f9 ldr r1, [r7, #12] + 8007704: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8007708: 4313 orrs r3, r2 + 800770a: 61cb str r3, [r1, #28] if (((USBx_OUTEP(epnum)->DOEPCTL) & USB_OTG_DOEPCTL_USBAEP) == 0U) - 80076b8: 68bb ldr r3, [r7, #8] - 80076ba: 015a lsls r2, r3, #5 - 80076bc: 68fb ldr r3, [r7, #12] - 80076be: 4413 add r3, r2 - 80076c0: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80076c4: 681b ldr r3, [r3, #0] - 80076c6: f403 4300 and.w r3, r3, #32768 @ 0x8000 - 80076ca: 2b00 cmp r3, #0 - 80076cc: d11a bne.n 8007704 + 800770c: 68bb ldr r3, [r7, #8] + 800770e: 015a lsls r2, r3, #5 + 8007710: 68fb ldr r3, [r7, #12] + 8007712: 4413 add r3, r2 + 8007714: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007718: 681b ldr r3, [r3, #0] + 800771a: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 800771e: 2b00 cmp r3, #0 + 8007720: d11a bne.n 8007758 { USBx_OUTEP(epnum)->DOEPCTL |= (ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ) | - 80076ce: 68bb ldr r3, [r7, #8] - 80076d0: 015a lsls r2, r3, #5 - 80076d2: 68fb ldr r3, [r7, #12] - 80076d4: 4413 add r3, r2 - 80076d6: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80076da: 681a ldr r2, [r3, #0] - 80076dc: 683b ldr r3, [r7, #0] - 80076de: 689b ldr r3, [r3, #8] - 80076e0: f3c3 010a ubfx r1, r3, #0, #11 + 8007722: 68bb ldr r3, [r7, #8] + 8007724: 015a lsls r2, r3, #5 + 8007726: 68fb ldr r3, [r7, #12] + 8007728: 4413 add r3, r2 + 800772a: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800772e: 681a ldr r2, [r3, #0] + 8007730: 683b ldr r3, [r7, #0] + 8007732: 689b ldr r3, [r3, #8] + 8007734: f3c3 010a ubfx r1, r3, #0, #11 ((uint32_t)ep->type << 18) | - 80076e4: 683b ldr r3, [r7, #0] - 80076e6: 791b ldrb r3, [r3, #4] - 80076e8: 049b lsls r3, r3, #18 + 8007738: 683b ldr r3, [r7, #0] + 800773a: 791b ldrb r3, [r3, #4] + 800773c: 049b lsls r3, r3, #18 USBx_OUTEP(epnum)->DOEPCTL |= (ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ) | - 80076ea: 430b orrs r3, r1 - 80076ec: 4313 orrs r3, r2 - 80076ee: 68ba ldr r2, [r7, #8] - 80076f0: 0151 lsls r1, r2, #5 - 80076f2: 68fa ldr r2, [r7, #12] - 80076f4: 440a add r2, r1 - 80076f6: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 80076fa: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 80076fe: f443 4300 orr.w r3, r3, #32768 @ 0x8000 - 8007702: 6013 str r3, [r2, #0] + 800773e: 430b orrs r3, r1 + 8007740: 4313 orrs r3, r2 + 8007742: 68ba ldr r2, [r7, #8] + 8007744: 0151 lsls r1, r2, #5 + 8007746: 68fa ldr r2, [r7, #12] + 8007748: 440a add r2, r1 + 800774a: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 800774e: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8007752: f443 4300 orr.w r3, r3, #32768 @ 0x8000 + 8007756: 6013 str r3, [r2, #0] USB_OTG_DIEPCTL_SD0PID_SEVNFRM | USB_OTG_DOEPCTL_USBAEP; } } return HAL_OK; - 8007704: 2300 movs r3, #0 + 8007758: 2300 movs r3, #0 } - 8007706: 4618 mov r0, r3 - 8007708: 3714 adds r7, #20 - 800770a: 46bd mov sp, r7 - 800770c: f85d 7b04 ldr.w r7, [sp], #4 - 8007710: 4770 bx lr + 800775a: 4618 mov r0, r3 + 800775c: 3714 adds r7, #20 + 800775e: 46bd mov sp, r7 + 8007760: f85d 7b04 ldr.w r7, [sp], #4 + 8007764: 4770 bx lr ... -08007714 : +08007768 : * @param USBx Selected device * @param ep pointer to endpoint structure * @retval HAL status */ HAL_StatusTypeDef USB_DeactivateEndpoint(const USB_OTG_GlobalTypeDef *USBx, const USB_OTG_EPTypeDef *ep) { - 8007714: b480 push {r7} - 8007716: b085 sub sp, #20 - 8007718: af00 add r7, sp, #0 - 800771a: 6078 str r0, [r7, #4] - 800771c: 6039 str r1, [r7, #0] + 8007768: b480 push {r7} + 800776a: b085 sub sp, #20 + 800776c: af00 add r7, sp, #0 + 800776e: 6078 str r0, [r7, #4] + 8007770: 6039 str r1, [r7, #0] uint32_t USBx_BASE = (uint32_t)USBx; - 800771e: 687b ldr r3, [r7, #4] - 8007720: 60fb str r3, [r7, #12] + 8007772: 687b ldr r3, [r7, #4] + 8007774: 60fb str r3, [r7, #12] uint32_t epnum = (uint32_t)ep->num; - 8007722: 683b ldr r3, [r7, #0] - 8007724: 781b ldrb r3, [r3, #0] - 8007726: 60bb str r3, [r7, #8] + 8007776: 683b ldr r3, [r7, #0] + 8007778: 781b ldrb r3, [r3, #0] + 800777a: 60bb str r3, [r7, #8] /* Read DEPCTLn register */ if (ep->is_in == 1U) - 8007728: 683b ldr r3, [r7, #0] - 800772a: 785b ldrb r3, [r3, #1] - 800772c: 2b01 cmp r3, #1 - 800772e: d161 bne.n 80077f4 + 800777c: 683b ldr r3, [r7, #0] + 800777e: 785b ldrb r3, [r3, #1] + 8007780: 2b01 cmp r3, #1 + 8007782: d161 bne.n 8007848 { if ((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) - 8007730: 68bb ldr r3, [r7, #8] - 8007732: 015a lsls r2, r3, #5 - 8007734: 68fb ldr r3, [r7, #12] - 8007736: 4413 add r3, r2 - 8007738: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800773c: 681b ldr r3, [r3, #0] - 800773e: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8007742: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8007746: d11f bne.n 8007788 + 8007784: 68bb ldr r3, [r7, #8] + 8007786: 015a lsls r2, r3, #5 + 8007788: 68fb ldr r3, [r7, #12] + 800778a: 4413 add r3, r2 + 800778c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007790: 681b ldr r3, [r3, #0] + 8007792: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8007796: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 800779a: d11f bne.n 80077dc { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SNAK; - 8007748: 68bb ldr r3, [r7, #8] - 800774a: 015a lsls r2, r3, #5 - 800774c: 68fb ldr r3, [r7, #12] - 800774e: 4413 add r3, r2 - 8007750: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007754: 681b ldr r3, [r3, #0] - 8007756: 68ba ldr r2, [r7, #8] - 8007758: 0151 lsls r1, r2, #5 - 800775a: 68fa ldr r2, [r7, #12] - 800775c: 440a add r2, r1 - 800775e: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007762: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 8007766: 6013 str r3, [r2, #0] + 800779c: 68bb ldr r3, [r7, #8] + 800779e: 015a lsls r2, r3, #5 + 80077a0: 68fb ldr r3, [r7, #12] + 80077a2: 4413 add r3, r2 + 80077a4: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80077a8: 681b ldr r3, [r3, #0] + 80077aa: 68ba ldr r2, [r7, #8] + 80077ac: 0151 lsls r1, r2, #5 + 80077ae: 68fa ldr r2, [r7, #12] + 80077b0: 440a add r2, r1 + 80077b2: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80077b6: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 80077ba: 6013 str r3, [r2, #0] USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_EPDIS; - 8007768: 68bb ldr r3, [r7, #8] - 800776a: 015a lsls r2, r3, #5 - 800776c: 68fb ldr r3, [r7, #12] - 800776e: 4413 add r3, r2 - 8007770: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007774: 681b ldr r3, [r3, #0] - 8007776: 68ba ldr r2, [r7, #8] - 8007778: 0151 lsls r1, r2, #5 - 800777a: 68fa ldr r2, [r7, #12] - 800777c: 440a add r2, r1 - 800777e: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007782: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 8007786: 6013 str r3, [r2, #0] + 80077bc: 68bb ldr r3, [r7, #8] + 80077be: 015a lsls r2, r3, #5 + 80077c0: 68fb ldr r3, [r7, #12] + 80077c2: 4413 add r3, r2 + 80077c4: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80077c8: 681b ldr r3, [r3, #0] + 80077ca: 68ba ldr r2, [r7, #8] + 80077cc: 0151 lsls r1, r2, #5 + 80077ce: 68fa ldr r2, [r7, #12] + 80077d0: 440a add r2, r1 + 80077d2: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80077d6: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 80077da: 6013 str r3, [r2, #0] } USBx_DEVICE->DEACHMSK &= ~(USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK))); - 8007788: 68fb ldr r3, [r7, #12] - 800778a: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800778e: 6bda ldr r2, [r3, #60] @ 0x3c - 8007790: 683b ldr r3, [r7, #0] - 8007792: 781b ldrb r3, [r3, #0] - 8007794: f003 030f and.w r3, r3, #15 - 8007798: 2101 movs r1, #1 - 800779a: fa01 f303 lsl.w r3, r1, r3 - 800779e: b29b uxth r3, r3 - 80077a0: 43db mvns r3, r3 - 80077a2: 68f9 ldr r1, [r7, #12] - 80077a4: f501 6100 add.w r1, r1, #2048 @ 0x800 - 80077a8: 4013 ands r3, r2 - 80077aa: 63cb str r3, [r1, #60] @ 0x3c + 80077dc: 68fb ldr r3, [r7, #12] + 80077de: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80077e2: 6bda ldr r2, [r3, #60] @ 0x3c + 80077e4: 683b ldr r3, [r7, #0] + 80077e6: 781b ldrb r3, [r3, #0] + 80077e8: f003 030f and.w r3, r3, #15 + 80077ec: 2101 movs r1, #1 + 80077ee: fa01 f303 lsl.w r3, r1, r3 + 80077f2: b29b uxth r3, r3 + 80077f4: 43db mvns r3, r3 + 80077f6: 68f9 ldr r1, [r7, #12] + 80077f8: f501 6100 add.w r1, r1, #2048 @ 0x800 + 80077fc: 4013 ands r3, r2 + 80077fe: 63cb str r3, [r1, #60] @ 0x3c USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK))); - 80077ac: 68fb ldr r3, [r7, #12] - 80077ae: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80077b2: 69da ldr r2, [r3, #28] - 80077b4: 683b ldr r3, [r7, #0] - 80077b6: 781b ldrb r3, [r3, #0] - 80077b8: f003 030f and.w r3, r3, #15 - 80077bc: 2101 movs r1, #1 - 80077be: fa01 f303 lsl.w r3, r1, r3 - 80077c2: b29b uxth r3, r3 - 80077c4: 43db mvns r3, r3 - 80077c6: 68f9 ldr r1, [r7, #12] - 80077c8: f501 6100 add.w r1, r1, #2048 @ 0x800 - 80077cc: 4013 ands r3, r2 - 80077ce: 61cb str r3, [r1, #28] + 8007800: 68fb ldr r3, [r7, #12] + 8007802: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007806: 69da ldr r2, [r3, #28] + 8007808: 683b ldr r3, [r7, #0] + 800780a: 781b ldrb r3, [r3, #0] + 800780c: f003 030f and.w r3, r3, #15 + 8007810: 2101 movs r1, #1 + 8007812: fa01 f303 lsl.w r3, r1, r3 + 8007816: b29b uxth r3, r3 + 8007818: 43db mvns r3, r3 + 800781a: 68f9 ldr r1, [r7, #12] + 800781c: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8007820: 4013 ands r3, r2 + 8007822: 61cb str r3, [r1, #28] USBx_INEP(epnum)->DIEPCTL &= ~(USB_OTG_DIEPCTL_USBAEP | - 80077d0: 68bb ldr r3, [r7, #8] - 80077d2: 015a lsls r2, r3, #5 - 80077d4: 68fb ldr r3, [r7, #12] - 80077d6: 4413 add r3, r2 - 80077d8: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80077dc: 681a ldr r2, [r3, #0] - 80077de: 68bb ldr r3, [r7, #8] - 80077e0: 0159 lsls r1, r3, #5 - 80077e2: 68fb ldr r3, [r7, #12] - 80077e4: 440b add r3, r1 - 80077e6: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80077ea: 4619 mov r1, r3 - 80077ec: 4b35 ldr r3, [pc, #212] @ (80078c4 ) - 80077ee: 4013 ands r3, r2 - 80077f0: 600b str r3, [r1, #0] - 80077f2: e060 b.n 80078b6 + 8007824: 68bb ldr r3, [r7, #8] + 8007826: 015a lsls r2, r3, #5 + 8007828: 68fb ldr r3, [r7, #12] + 800782a: 4413 add r3, r2 + 800782c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007830: 681a ldr r2, [r3, #0] + 8007832: 68bb ldr r3, [r7, #8] + 8007834: 0159 lsls r1, r3, #5 + 8007836: 68fb ldr r3, [r7, #12] + 8007838: 440b add r3, r1 + 800783a: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800783e: 4619 mov r1, r3 + 8007840: 4b35 ldr r3, [pc, #212] @ (8007918 ) + 8007842: 4013 ands r3, r2 + 8007844: 600b str r3, [r1, #0] + 8007846: e060 b.n 800790a USB_OTG_DIEPCTL_SD0PID_SEVNFRM | USB_OTG_DIEPCTL_EPTYP); } else { if ((USBx_OUTEP(epnum)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) - 80077f4: 68bb ldr r3, [r7, #8] - 80077f6: 015a lsls r2, r3, #5 - 80077f8: 68fb ldr r3, [r7, #12] - 80077fa: 4413 add r3, r2 - 80077fc: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007800: 681b ldr r3, [r3, #0] - 8007802: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8007806: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 800780a: d11f bne.n 800784c + 8007848: 68bb ldr r3, [r7, #8] + 800784a: 015a lsls r2, r3, #5 + 800784c: 68fb ldr r3, [r7, #12] + 800784e: 4413 add r3, r2 + 8007850: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007854: 681b ldr r3, [r3, #0] + 8007856: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 800785a: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 800785e: d11f bne.n 80078a0 { USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SNAK; - 800780c: 68bb ldr r3, [r7, #8] - 800780e: 015a lsls r2, r3, #5 - 8007810: 68fb ldr r3, [r7, #12] - 8007812: 4413 add r3, r2 - 8007814: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007818: 681b ldr r3, [r3, #0] - 800781a: 68ba ldr r2, [r7, #8] - 800781c: 0151 lsls r1, r2, #5 - 800781e: 68fa ldr r2, [r7, #12] - 8007820: 440a add r2, r1 - 8007822: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8007826: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 800782a: 6013 str r3, [r2, #0] + 8007860: 68bb ldr r3, [r7, #8] + 8007862: 015a lsls r2, r3, #5 + 8007864: 68fb ldr r3, [r7, #12] + 8007866: 4413 add r3, r2 + 8007868: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800786c: 681b ldr r3, [r3, #0] + 800786e: 68ba ldr r2, [r7, #8] + 8007870: 0151 lsls r1, r2, #5 + 8007872: 68fa ldr r2, [r7, #12] + 8007874: 440a add r2, r1 + 8007876: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 800787a: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 800787e: 6013 str r3, [r2, #0] USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_EPDIS; - 800782c: 68bb ldr r3, [r7, #8] - 800782e: 015a lsls r2, r3, #5 - 8007830: 68fb ldr r3, [r7, #12] - 8007832: 4413 add r3, r2 - 8007834: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007838: 681b ldr r3, [r3, #0] - 800783a: 68ba ldr r2, [r7, #8] - 800783c: 0151 lsls r1, r2, #5 - 800783e: 68fa ldr r2, [r7, #12] - 8007840: 440a add r2, r1 - 8007842: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8007846: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 800784a: 6013 str r3, [r2, #0] + 8007880: 68bb ldr r3, [r7, #8] + 8007882: 015a lsls r2, r3, #5 + 8007884: 68fb ldr r3, [r7, #12] + 8007886: 4413 add r3, r2 + 8007888: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800788c: 681b ldr r3, [r3, #0] + 800788e: 68ba ldr r2, [r7, #8] + 8007890: 0151 lsls r1, r2, #5 + 8007892: 68fa ldr r2, [r7, #12] + 8007894: 440a add r2, r1 + 8007896: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 800789a: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 800789e: 6013 str r3, [r2, #0] } USBx_DEVICE->DEACHMSK &= ~(USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16)); - 800784c: 68fb ldr r3, [r7, #12] - 800784e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007852: 6bda ldr r2, [r3, #60] @ 0x3c - 8007854: 683b ldr r3, [r7, #0] - 8007856: 781b ldrb r3, [r3, #0] - 8007858: f003 030f and.w r3, r3, #15 - 800785c: 2101 movs r1, #1 - 800785e: fa01 f303 lsl.w r3, r1, r3 - 8007862: 041b lsls r3, r3, #16 - 8007864: 43db mvns r3, r3 - 8007866: 68f9 ldr r1, [r7, #12] - 8007868: f501 6100 add.w r1, r1, #2048 @ 0x800 - 800786c: 4013 ands r3, r2 - 800786e: 63cb str r3, [r1, #60] @ 0x3c + 80078a0: 68fb ldr r3, [r7, #12] + 80078a2: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80078a6: 6bda ldr r2, [r3, #60] @ 0x3c + 80078a8: 683b ldr r3, [r7, #0] + 80078aa: 781b ldrb r3, [r3, #0] + 80078ac: f003 030f and.w r3, r3, #15 + 80078b0: 2101 movs r1, #1 + 80078b2: fa01 f303 lsl.w r3, r1, r3 + 80078b6: 041b lsls r3, r3, #16 + 80078b8: 43db mvns r3, r3 + 80078ba: 68f9 ldr r1, [r7, #12] + 80078bc: f501 6100 add.w r1, r1, #2048 @ 0x800 + 80078c0: 4013 ands r3, r2 + 80078c2: 63cb str r3, [r1, #60] @ 0x3c USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16)); - 8007870: 68fb ldr r3, [r7, #12] - 8007872: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007876: 69da ldr r2, [r3, #28] - 8007878: 683b ldr r3, [r7, #0] - 800787a: 781b ldrb r3, [r3, #0] - 800787c: f003 030f and.w r3, r3, #15 - 8007880: 2101 movs r1, #1 - 8007882: fa01 f303 lsl.w r3, r1, r3 - 8007886: 041b lsls r3, r3, #16 - 8007888: 43db mvns r3, r3 - 800788a: 68f9 ldr r1, [r7, #12] - 800788c: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8007890: 4013 ands r3, r2 - 8007892: 61cb str r3, [r1, #28] + 80078c4: 68fb ldr r3, [r7, #12] + 80078c6: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80078ca: 69da ldr r2, [r3, #28] + 80078cc: 683b ldr r3, [r7, #0] + 80078ce: 781b ldrb r3, [r3, #0] + 80078d0: f003 030f and.w r3, r3, #15 + 80078d4: 2101 movs r1, #1 + 80078d6: fa01 f303 lsl.w r3, r1, r3 + 80078da: 041b lsls r3, r3, #16 + 80078dc: 43db mvns r3, r3 + 80078de: 68f9 ldr r1, [r7, #12] + 80078e0: f501 6100 add.w r1, r1, #2048 @ 0x800 + 80078e4: 4013 ands r3, r2 + 80078e6: 61cb str r3, [r1, #28] USBx_OUTEP(epnum)->DOEPCTL &= ~(USB_OTG_DOEPCTL_USBAEP | - 8007894: 68bb ldr r3, [r7, #8] - 8007896: 015a lsls r2, r3, #5 - 8007898: 68fb ldr r3, [r7, #12] - 800789a: 4413 add r3, r2 - 800789c: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80078a0: 681a ldr r2, [r3, #0] - 80078a2: 68bb ldr r3, [r7, #8] - 80078a4: 0159 lsls r1, r3, #5 - 80078a6: 68fb ldr r3, [r7, #12] - 80078a8: 440b add r3, r1 - 80078aa: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80078ae: 4619 mov r1, r3 - 80078b0: 4b05 ldr r3, [pc, #20] @ (80078c8 ) - 80078b2: 4013 ands r3, r2 - 80078b4: 600b str r3, [r1, #0] + 80078e8: 68bb ldr r3, [r7, #8] + 80078ea: 015a lsls r2, r3, #5 + 80078ec: 68fb ldr r3, [r7, #12] + 80078ee: 4413 add r3, r2 + 80078f0: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80078f4: 681a ldr r2, [r3, #0] + 80078f6: 68bb ldr r3, [r7, #8] + 80078f8: 0159 lsls r1, r3, #5 + 80078fa: 68fb ldr r3, [r7, #12] + 80078fc: 440b add r3, r1 + 80078fe: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007902: 4619 mov r1, r3 + 8007904: 4b05 ldr r3, [pc, #20] @ (800791c ) + 8007906: 4013 ands r3, r2 + 8007908: 600b str r3, [r1, #0] USB_OTG_DOEPCTL_MPSIZ | USB_OTG_DOEPCTL_SD0PID_SEVNFRM | USB_OTG_DOEPCTL_EPTYP); } return HAL_OK; - 80078b6: 2300 movs r3, #0 + 800790a: 2300 movs r3, #0 } - 80078b8: 4618 mov r0, r3 - 80078ba: 3714 adds r7, #20 - 80078bc: 46bd mov sp, r7 - 80078be: f85d 7b04 ldr.w r7, [sp], #4 - 80078c2: 4770 bx lr - 80078c4: ec337800 .word 0xec337800 - 80078c8: eff37800 .word 0xeff37800 + 800790c: 4618 mov r0, r3 + 800790e: 3714 adds r7, #20 + 8007910: 46bd mov sp, r7 + 8007912: f85d 7b04 ldr.w r7, [sp], #4 + 8007916: 4770 bx lr + 8007918: ec337800 .word 0xec337800 + 800791c: eff37800 .word 0xeff37800 -080078cc : +08007920 : * 0 : DMA feature not used * 1 : DMA feature used * @retval HAL status */ HAL_StatusTypeDef USB_EPStartXfer(USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep, uint8_t dma) { - 80078cc: b580 push {r7, lr} - 80078ce: b08a sub sp, #40 @ 0x28 - 80078d0: af02 add r7, sp, #8 - 80078d2: 60f8 str r0, [r7, #12] - 80078d4: 60b9 str r1, [r7, #8] - 80078d6: 4613 mov r3, r2 - 80078d8: 71fb strb r3, [r7, #7] + 8007920: b580 push {r7, lr} + 8007922: b08a sub sp, #40 @ 0x28 + 8007924: af02 add r7, sp, #8 + 8007926: 60f8 str r0, [r7, #12] + 8007928: 60b9 str r1, [r7, #8] + 800792a: 4613 mov r3, r2 + 800792c: 71fb strb r3, [r7, #7] uint32_t USBx_BASE = (uint32_t)USBx; - 80078da: 68fb ldr r3, [r7, #12] - 80078dc: 61fb str r3, [r7, #28] + 800792e: 68fb ldr r3, [r7, #12] + 8007930: 61fb str r3, [r7, #28] uint32_t epnum = (uint32_t)ep->num; - 80078de: 68bb ldr r3, [r7, #8] - 80078e0: 781b ldrb r3, [r3, #0] - 80078e2: 61bb str r3, [r7, #24] + 8007932: 68bb ldr r3, [r7, #8] + 8007934: 781b ldrb r3, [r3, #0] + 8007936: 61bb str r3, [r7, #24] uint16_t pktcnt; /* IN endpoint */ if (ep->is_in == 1U) - 80078e4: 68bb ldr r3, [r7, #8] - 80078e6: 785b ldrb r3, [r3, #1] - 80078e8: 2b01 cmp r3, #1 - 80078ea: f040 817f bne.w 8007bec + 8007938: 68bb ldr r3, [r7, #8] + 800793a: 785b ldrb r3, [r3, #1] + 800793c: 2b01 cmp r3, #1 + 800793e: f040 817f bne.w 8007c40 { /* Zero Length Packet? */ if (ep->xfer_len == 0U) - 80078ee: 68bb ldr r3, [r7, #8] - 80078f0: 691b ldr r3, [r3, #16] - 80078f2: 2b00 cmp r3, #0 - 80078f4: d132 bne.n 800795c + 8007942: 68bb ldr r3, [r7, #8] + 8007944: 691b ldr r3, [r3, #16] + 8007946: 2b00 cmp r3, #0 + 8007948: d132 bne.n 80079b0 { USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT); - 80078f6: 69bb ldr r3, [r7, #24] - 80078f8: 015a lsls r2, r3, #5 - 80078fa: 69fb ldr r3, [r7, #28] - 80078fc: 4413 add r3, r2 - 80078fe: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007902: 691b ldr r3, [r3, #16] - 8007904: 69ba ldr r2, [r7, #24] - 8007906: 0151 lsls r1, r2, #5 - 8007908: 69fa ldr r2, [r7, #28] - 800790a: 440a add r2, r1 - 800790c: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007910: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 - 8007914: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 - 8007918: 6113 str r3, [r2, #16] + 800794a: 69bb ldr r3, [r7, #24] + 800794c: 015a lsls r2, r3, #5 + 800794e: 69fb ldr r3, [r7, #28] + 8007950: 4413 add r3, r2 + 8007952: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007956: 691b ldr r3, [r3, #16] + 8007958: 69ba ldr r2, [r7, #24] + 800795a: 0151 lsls r1, r2, #5 + 800795c: 69fa ldr r2, [r7, #28] + 800795e: 440a add r2, r1 + 8007960: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007964: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 + 8007968: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 + 800796c: 6113 str r3, [r2, #16] USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (1U << 19)); - 800791a: 69bb ldr r3, [r7, #24] - 800791c: 015a lsls r2, r3, #5 - 800791e: 69fb ldr r3, [r7, #28] - 8007920: 4413 add r3, r2 - 8007922: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007926: 691b ldr r3, [r3, #16] - 8007928: 69ba ldr r2, [r7, #24] - 800792a: 0151 lsls r1, r2, #5 - 800792c: 69fa ldr r2, [r7, #28] - 800792e: 440a add r2, r1 - 8007930: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007934: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 8007938: 6113 str r3, [r2, #16] + 800796e: 69bb ldr r3, [r7, #24] + 8007970: 015a lsls r2, r3, #5 + 8007972: 69fb ldr r3, [r7, #28] + 8007974: 4413 add r3, r2 + 8007976: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800797a: 691b ldr r3, [r3, #16] + 800797c: 69ba ldr r2, [r7, #24] + 800797e: 0151 lsls r1, r2, #5 + 8007980: 69fa ldr r2, [r7, #28] + 8007982: 440a add r2, r1 + 8007984: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007988: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 800798c: 6113 str r3, [r2, #16] USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_XFRSIZ); - 800793a: 69bb ldr r3, [r7, #24] - 800793c: 015a lsls r2, r3, #5 - 800793e: 69fb ldr r3, [r7, #28] - 8007940: 4413 add r3, r2 - 8007942: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007946: 691b ldr r3, [r3, #16] - 8007948: 69ba ldr r2, [r7, #24] - 800794a: 0151 lsls r1, r2, #5 - 800794c: 69fa ldr r2, [r7, #28] - 800794e: 440a add r2, r1 - 8007950: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007954: 0cdb lsrs r3, r3, #19 - 8007956: 04db lsls r3, r3, #19 - 8007958: 6113 str r3, [r2, #16] - 800795a: e097 b.n 8007a8c + 800798e: 69bb ldr r3, [r7, #24] + 8007990: 015a lsls r2, r3, #5 + 8007992: 69fb ldr r3, [r7, #28] + 8007994: 4413 add r3, r2 + 8007996: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800799a: 691b ldr r3, [r3, #16] + 800799c: 69ba ldr r2, [r7, #24] + 800799e: 0151 lsls r1, r2, #5 + 80079a0: 69fa ldr r2, [r7, #28] + 80079a2: 440a add r2, r1 + 80079a4: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80079a8: 0cdb lsrs r3, r3, #19 + 80079aa: 04db lsls r3, r3, #19 + 80079ac: 6113 str r3, [r2, #16] + 80079ae: e097 b.n 8007ae0 /* Program the transfer size and packet count * as follows: xfersize = N * maxpacket + * short_packet pktcnt = N + (short_packet * exist ? 1 : 0) */ USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_XFRSIZ); - 800795c: 69bb ldr r3, [r7, #24] - 800795e: 015a lsls r2, r3, #5 - 8007960: 69fb ldr r3, [r7, #28] - 8007962: 4413 add r3, r2 - 8007964: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007968: 691b ldr r3, [r3, #16] - 800796a: 69ba ldr r2, [r7, #24] - 800796c: 0151 lsls r1, r2, #5 - 800796e: 69fa ldr r2, [r7, #28] - 8007970: 440a add r2, r1 - 8007972: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007976: 0cdb lsrs r3, r3, #19 - 8007978: 04db lsls r3, r3, #19 - 800797a: 6113 str r3, [r2, #16] + 80079b0: 69bb ldr r3, [r7, #24] + 80079b2: 015a lsls r2, r3, #5 + 80079b4: 69fb ldr r3, [r7, #28] + 80079b6: 4413 add r3, r2 + 80079b8: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80079bc: 691b ldr r3, [r3, #16] + 80079be: 69ba ldr r2, [r7, #24] + 80079c0: 0151 lsls r1, r2, #5 + 80079c2: 69fa ldr r2, [r7, #28] + 80079c4: 440a add r2, r1 + 80079c6: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80079ca: 0cdb lsrs r3, r3, #19 + 80079cc: 04db lsls r3, r3, #19 + 80079ce: 6113 str r3, [r2, #16] USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT); - 800797c: 69bb ldr r3, [r7, #24] - 800797e: 015a lsls r2, r3, #5 - 8007980: 69fb ldr r3, [r7, #28] - 8007982: 4413 add r3, r2 - 8007984: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007988: 691b ldr r3, [r3, #16] - 800798a: 69ba ldr r2, [r7, #24] - 800798c: 0151 lsls r1, r2, #5 - 800798e: 69fa ldr r2, [r7, #28] - 8007990: 440a add r2, r1 - 8007992: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007996: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 - 800799a: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 - 800799e: 6113 str r3, [r2, #16] + 80079d0: 69bb ldr r3, [r7, #24] + 80079d2: 015a lsls r2, r3, #5 + 80079d4: 69fb ldr r3, [r7, #28] + 80079d6: 4413 add r3, r2 + 80079d8: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80079dc: 691b ldr r3, [r3, #16] + 80079de: 69ba ldr r2, [r7, #24] + 80079e0: 0151 lsls r1, r2, #5 + 80079e2: 69fa ldr r2, [r7, #28] + 80079e4: 440a add r2, r1 + 80079e6: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80079ea: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 + 80079ee: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 + 80079f2: 6113 str r3, [r2, #16] if (epnum == 0U) - 80079a0: 69bb ldr r3, [r7, #24] - 80079a2: 2b00 cmp r3, #0 - 80079a4: d11a bne.n 80079dc + 80079f4: 69bb ldr r3, [r7, #24] + 80079f6: 2b00 cmp r3, #0 + 80079f8: d11a bne.n 8007a30 { if (ep->xfer_len > ep->maxpacket) - 80079a6: 68bb ldr r3, [r7, #8] - 80079a8: 691a ldr r2, [r3, #16] - 80079aa: 68bb ldr r3, [r7, #8] - 80079ac: 689b ldr r3, [r3, #8] - 80079ae: 429a cmp r2, r3 - 80079b0: d903 bls.n 80079ba + 80079fa: 68bb ldr r3, [r7, #8] + 80079fc: 691a ldr r2, [r3, #16] + 80079fe: 68bb ldr r3, [r7, #8] + 8007a00: 689b ldr r3, [r3, #8] + 8007a02: 429a cmp r2, r3 + 8007a04: d903 bls.n 8007a0e { ep->xfer_len = ep->maxpacket; - 80079b2: 68bb ldr r3, [r7, #8] - 80079b4: 689a ldr r2, [r3, #8] - 80079b6: 68bb ldr r3, [r7, #8] - 80079b8: 611a str r2, [r3, #16] + 8007a06: 68bb ldr r3, [r7, #8] + 8007a08: 689a ldr r2, [r3, #8] + 8007a0a: 68bb ldr r3, [r7, #8] + 8007a0c: 611a str r2, [r3, #16] } USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (1U << 19)); - 80079ba: 69bb ldr r3, [r7, #24] - 80079bc: 015a lsls r2, r3, #5 - 80079be: 69fb ldr r3, [r7, #28] - 80079c0: 4413 add r3, r2 - 80079c2: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80079c6: 691b ldr r3, [r3, #16] - 80079c8: 69ba ldr r2, [r7, #24] - 80079ca: 0151 lsls r1, r2, #5 - 80079cc: 69fa ldr r2, [r7, #28] - 80079ce: 440a add r2, r1 - 80079d0: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80079d4: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 80079d8: 6113 str r3, [r2, #16] - 80079da: e044 b.n 8007a66 + 8007a0e: 69bb ldr r3, [r7, #24] + 8007a10: 015a lsls r2, r3, #5 + 8007a12: 69fb ldr r3, [r7, #28] + 8007a14: 4413 add r3, r2 + 8007a16: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007a1a: 691b ldr r3, [r3, #16] + 8007a1c: 69ba ldr r2, [r7, #24] + 8007a1e: 0151 lsls r1, r2, #5 + 8007a20: 69fa ldr r2, [r7, #28] + 8007a22: 440a add r2, r1 + 8007a24: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007a28: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 8007a2c: 6113 str r3, [r2, #16] + 8007a2e: e044 b.n 8007aba } else { pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket); - 80079dc: 68bb ldr r3, [r7, #8] - 80079de: 691a ldr r2, [r3, #16] - 80079e0: 68bb ldr r3, [r7, #8] - 80079e2: 689b ldr r3, [r3, #8] - 80079e4: 4413 add r3, r2 - 80079e6: 1e5a subs r2, r3, #1 - 80079e8: 68bb ldr r3, [r7, #8] - 80079ea: 689b ldr r3, [r3, #8] - 80079ec: fbb2 f3f3 udiv r3, r2, r3 - 80079f0: 82fb strh r3, [r7, #22] + 8007a30: 68bb ldr r3, [r7, #8] + 8007a32: 691a ldr r2, [r3, #16] + 8007a34: 68bb ldr r3, [r7, #8] + 8007a36: 689b ldr r3, [r3, #8] + 8007a38: 4413 add r3, r2 + 8007a3a: 1e5a subs r2, r3, #1 + 8007a3c: 68bb ldr r3, [r7, #8] + 8007a3e: 689b ldr r3, [r3, #8] + 8007a40: fbb2 f3f3 udiv r3, r2, r3 + 8007a44: 82fb strh r3, [r7, #22] USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & ((uint32_t)pktcnt << 19)); - 80079f2: 69bb ldr r3, [r7, #24] - 80079f4: 015a lsls r2, r3, #5 - 80079f6: 69fb ldr r3, [r7, #28] - 80079f8: 4413 add r3, r2 - 80079fa: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80079fe: 691a ldr r2, [r3, #16] - 8007a00: 8afb ldrh r3, [r7, #22] - 8007a02: 04d9 lsls r1, r3, #19 - 8007a04: 4ba4 ldr r3, [pc, #656] @ (8007c98 ) - 8007a06: 400b ands r3, r1 - 8007a08: 69b9 ldr r1, [r7, #24] - 8007a0a: 0148 lsls r0, r1, #5 - 8007a0c: 69f9 ldr r1, [r7, #28] - 8007a0e: 4401 add r1, r0 - 8007a10: f501 6110 add.w r1, r1, #2304 @ 0x900 - 8007a14: 4313 orrs r3, r2 - 8007a16: 610b str r3, [r1, #16] + 8007a46: 69bb ldr r3, [r7, #24] + 8007a48: 015a lsls r2, r3, #5 + 8007a4a: 69fb ldr r3, [r7, #28] + 8007a4c: 4413 add r3, r2 + 8007a4e: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007a52: 691a ldr r2, [r3, #16] + 8007a54: 8afb ldrh r3, [r7, #22] + 8007a56: 04d9 lsls r1, r3, #19 + 8007a58: 4ba4 ldr r3, [pc, #656] @ (8007cec ) + 8007a5a: 400b ands r3, r1 + 8007a5c: 69b9 ldr r1, [r7, #24] + 8007a5e: 0148 lsls r0, r1, #5 + 8007a60: 69f9 ldr r1, [r7, #28] + 8007a62: 4401 add r1, r0 + 8007a64: f501 6110 add.w r1, r1, #2304 @ 0x900 + 8007a68: 4313 orrs r3, r2 + 8007a6a: 610b str r3, [r1, #16] if (ep->type == EP_TYPE_ISOC) - 8007a18: 68bb ldr r3, [r7, #8] - 8007a1a: 791b ldrb r3, [r3, #4] - 8007a1c: 2b01 cmp r3, #1 - 8007a1e: d122 bne.n 8007a66 + 8007a6c: 68bb ldr r3, [r7, #8] + 8007a6e: 791b ldrb r3, [r3, #4] + 8007a70: 2b01 cmp r3, #1 + 8007a72: d122 bne.n 8007aba { USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_MULCNT); - 8007a20: 69bb ldr r3, [r7, #24] - 8007a22: 015a lsls r2, r3, #5 - 8007a24: 69fb ldr r3, [r7, #28] - 8007a26: 4413 add r3, r2 - 8007a28: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007a2c: 691b ldr r3, [r3, #16] - 8007a2e: 69ba ldr r2, [r7, #24] - 8007a30: 0151 lsls r1, r2, #5 - 8007a32: 69fa ldr r2, [r7, #28] - 8007a34: 440a add r2, r1 - 8007a36: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007a3a: f023 43c0 bic.w r3, r3, #1610612736 @ 0x60000000 - 8007a3e: 6113 str r3, [r2, #16] + 8007a74: 69bb ldr r3, [r7, #24] + 8007a76: 015a lsls r2, r3, #5 + 8007a78: 69fb ldr r3, [r7, #28] + 8007a7a: 4413 add r3, r2 + 8007a7c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007a80: 691b ldr r3, [r3, #16] + 8007a82: 69ba ldr r2, [r7, #24] + 8007a84: 0151 lsls r1, r2, #5 + 8007a86: 69fa ldr r2, [r7, #28] + 8007a88: 440a add r2, r1 + 8007a8a: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007a8e: f023 43c0 bic.w r3, r3, #1610612736 @ 0x60000000 + 8007a92: 6113 str r3, [r2, #16] USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_MULCNT & ((uint32_t)pktcnt << 29)); - 8007a40: 69bb ldr r3, [r7, #24] - 8007a42: 015a lsls r2, r3, #5 - 8007a44: 69fb ldr r3, [r7, #28] - 8007a46: 4413 add r3, r2 - 8007a48: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007a4c: 691a ldr r2, [r3, #16] - 8007a4e: 8afb ldrh r3, [r7, #22] - 8007a50: 075b lsls r3, r3, #29 - 8007a52: f003 43c0 and.w r3, r3, #1610612736 @ 0x60000000 - 8007a56: 69b9 ldr r1, [r7, #24] - 8007a58: 0148 lsls r0, r1, #5 - 8007a5a: 69f9 ldr r1, [r7, #28] - 8007a5c: 4401 add r1, r0 - 8007a5e: f501 6110 add.w r1, r1, #2304 @ 0x900 - 8007a62: 4313 orrs r3, r2 - 8007a64: 610b str r3, [r1, #16] + 8007a94: 69bb ldr r3, [r7, #24] + 8007a96: 015a lsls r2, r3, #5 + 8007a98: 69fb ldr r3, [r7, #28] + 8007a9a: 4413 add r3, r2 + 8007a9c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007aa0: 691a ldr r2, [r3, #16] + 8007aa2: 8afb ldrh r3, [r7, #22] + 8007aa4: 075b lsls r3, r3, #29 + 8007aa6: f003 43c0 and.w r3, r3, #1610612736 @ 0x60000000 + 8007aaa: 69b9 ldr r1, [r7, #24] + 8007aac: 0148 lsls r0, r1, #5 + 8007aae: 69f9 ldr r1, [r7, #28] + 8007ab0: 4401 add r1, r0 + 8007ab2: f501 6110 add.w r1, r1, #2304 @ 0x900 + 8007ab6: 4313 orrs r3, r2 + 8007ab8: 610b str r3, [r1, #16] } } USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len); - 8007a66: 69bb ldr r3, [r7, #24] - 8007a68: 015a lsls r2, r3, #5 - 8007a6a: 69fb ldr r3, [r7, #28] - 8007a6c: 4413 add r3, r2 - 8007a6e: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007a72: 691a ldr r2, [r3, #16] - 8007a74: 68bb ldr r3, [r7, #8] - 8007a76: 691b ldr r3, [r3, #16] - 8007a78: f3c3 0312 ubfx r3, r3, #0, #19 - 8007a7c: 69b9 ldr r1, [r7, #24] - 8007a7e: 0148 lsls r0, r1, #5 - 8007a80: 69f9 ldr r1, [r7, #28] - 8007a82: 4401 add r1, r0 - 8007a84: f501 6110 add.w r1, r1, #2304 @ 0x900 - 8007a88: 4313 orrs r3, r2 - 8007a8a: 610b str r3, [r1, #16] + 8007aba: 69bb ldr r3, [r7, #24] + 8007abc: 015a lsls r2, r3, #5 + 8007abe: 69fb ldr r3, [r7, #28] + 8007ac0: 4413 add r3, r2 + 8007ac2: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007ac6: 691a ldr r2, [r3, #16] + 8007ac8: 68bb ldr r3, [r7, #8] + 8007aca: 691b ldr r3, [r3, #16] + 8007acc: f3c3 0312 ubfx r3, r3, #0, #19 + 8007ad0: 69b9 ldr r1, [r7, #24] + 8007ad2: 0148 lsls r0, r1, #5 + 8007ad4: 69f9 ldr r1, [r7, #28] + 8007ad6: 4401 add r1, r0 + 8007ad8: f501 6110 add.w r1, r1, #2304 @ 0x900 + 8007adc: 4313 orrs r3, r2 + 8007ade: 610b str r3, [r1, #16] } if (dma == 1U) - 8007a8c: 79fb ldrb r3, [r7, #7] - 8007a8e: 2b01 cmp r3, #1 - 8007a90: d14b bne.n 8007b2a + 8007ae0: 79fb ldrb r3, [r7, #7] + 8007ae2: 2b01 cmp r3, #1 + 8007ae4: d14b bne.n 8007b7e { if ((uint32_t)ep->dma_addr != 0U) - 8007a92: 68bb ldr r3, [r7, #8] - 8007a94: 69db ldr r3, [r3, #28] - 8007a96: 2b00 cmp r3, #0 - 8007a98: d009 beq.n 8007aae + 8007ae6: 68bb ldr r3, [r7, #8] + 8007ae8: 69db ldr r3, [r3, #28] + 8007aea: 2b00 cmp r3, #0 + 8007aec: d009 beq.n 8007b02 { USBx_INEP(epnum)->DIEPDMA = (uint32_t)(ep->dma_addr); - 8007a9a: 69bb ldr r3, [r7, #24] - 8007a9c: 015a lsls r2, r3, #5 - 8007a9e: 69fb ldr r3, [r7, #28] - 8007aa0: 4413 add r3, r2 - 8007aa2: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007aa6: 461a mov r2, r3 - 8007aa8: 68bb ldr r3, [r7, #8] - 8007aaa: 69db ldr r3, [r3, #28] - 8007aac: 6153 str r3, [r2, #20] + 8007aee: 69bb ldr r3, [r7, #24] + 8007af0: 015a lsls r2, r3, #5 + 8007af2: 69fb ldr r3, [r7, #28] + 8007af4: 4413 add r3, r2 + 8007af6: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007afa: 461a mov r2, r3 + 8007afc: 68bb ldr r3, [r7, #8] + 8007afe: 69db ldr r3, [r3, #28] + 8007b00: 6153 str r3, [r2, #20] } if (ep->type == EP_TYPE_ISOC) - 8007aae: 68bb ldr r3, [r7, #8] - 8007ab0: 791b ldrb r3, [r3, #4] - 8007ab2: 2b01 cmp r3, #1 - 8007ab4: d128 bne.n 8007b08 + 8007b02: 68bb ldr r3, [r7, #8] + 8007b04: 791b ldrb r3, [r3, #4] + 8007b06: 2b01 cmp r3, #1 + 8007b08: d128 bne.n 8007b5c { if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U) - 8007ab6: 69fb ldr r3, [r7, #28] - 8007ab8: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007abc: 689b ldr r3, [r3, #8] - 8007abe: f403 7380 and.w r3, r3, #256 @ 0x100 - 8007ac2: 2b00 cmp r3, #0 - 8007ac4: d110 bne.n 8007ae8 + 8007b0a: 69fb ldr r3, [r7, #28] + 8007b0c: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007b10: 689b ldr r3, [r3, #8] + 8007b12: f403 7380 and.w r3, r3, #256 @ 0x100 + 8007b16: 2b00 cmp r3, #0 + 8007b18: d110 bne.n 8007b3c { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SODDFRM; - 8007ac6: 69bb ldr r3, [r7, #24] - 8007ac8: 015a lsls r2, r3, #5 - 8007aca: 69fb ldr r3, [r7, #28] - 8007acc: 4413 add r3, r2 - 8007ace: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007ad2: 681b ldr r3, [r3, #0] - 8007ad4: 69ba ldr r2, [r7, #24] - 8007ad6: 0151 lsls r1, r2, #5 - 8007ad8: 69fa ldr r2, [r7, #28] - 8007ada: 440a add r2, r1 - 8007adc: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007ae0: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 - 8007ae4: 6013 str r3, [r2, #0] - 8007ae6: e00f b.n 8007b08 + 8007b1a: 69bb ldr r3, [r7, #24] + 8007b1c: 015a lsls r2, r3, #5 + 8007b1e: 69fb ldr r3, [r7, #28] + 8007b20: 4413 add r3, r2 + 8007b22: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007b26: 681b ldr r3, [r3, #0] + 8007b28: 69ba ldr r2, [r7, #24] + 8007b2a: 0151 lsls r1, r2, #5 + 8007b2c: 69fa ldr r2, [r7, #28] + 8007b2e: 440a add r2, r1 + 8007b30: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007b34: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 + 8007b38: 6013 str r3, [r2, #0] + 8007b3a: e00f b.n 8007b5c } else { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM; - 8007ae8: 69bb ldr r3, [r7, #24] - 8007aea: 015a lsls r2, r3, #5 - 8007aec: 69fb ldr r3, [r7, #28] - 8007aee: 4413 add r3, r2 - 8007af0: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007af4: 681b ldr r3, [r3, #0] - 8007af6: 69ba ldr r2, [r7, #24] - 8007af8: 0151 lsls r1, r2, #5 - 8007afa: 69fa ldr r2, [r7, #28] - 8007afc: 440a add r2, r1 - 8007afe: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007b02: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8007b06: 6013 str r3, [r2, #0] + 8007b3c: 69bb ldr r3, [r7, #24] + 8007b3e: 015a lsls r2, r3, #5 + 8007b40: 69fb ldr r3, [r7, #28] + 8007b42: 4413 add r3, r2 + 8007b44: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007b48: 681b ldr r3, [r3, #0] + 8007b4a: 69ba ldr r2, [r7, #24] + 8007b4c: 0151 lsls r1, r2, #5 + 8007b4e: 69fa ldr r2, [r7, #28] + 8007b50: 440a add r2, r1 + 8007b52: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007b56: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8007b5a: 6013 str r3, [r2, #0] } } /* EP enable, IN data in FIFO */ USBx_INEP(epnum)->DIEPCTL |= (USB_OTG_DIEPCTL_CNAK | USB_OTG_DIEPCTL_EPENA); - 8007b08: 69bb ldr r3, [r7, #24] - 8007b0a: 015a lsls r2, r3, #5 - 8007b0c: 69fb ldr r3, [r7, #28] - 8007b0e: 4413 add r3, r2 - 8007b10: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007b14: 681b ldr r3, [r3, #0] - 8007b16: 69ba ldr r2, [r7, #24] - 8007b18: 0151 lsls r1, r2, #5 - 8007b1a: 69fa ldr r2, [r7, #28] - 8007b1c: 440a add r2, r1 - 8007b1e: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007b22: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 - 8007b26: 6013 str r3, [r2, #0] - 8007b28: e166 b.n 8007df8 + 8007b5c: 69bb ldr r3, [r7, #24] + 8007b5e: 015a lsls r2, r3, #5 + 8007b60: 69fb ldr r3, [r7, #28] + 8007b62: 4413 add r3, r2 + 8007b64: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007b68: 681b ldr r3, [r3, #0] + 8007b6a: 69ba ldr r2, [r7, #24] + 8007b6c: 0151 lsls r1, r2, #5 + 8007b6e: 69fa ldr r2, [r7, #28] + 8007b70: 440a add r2, r1 + 8007b72: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007b76: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 + 8007b7a: 6013 str r3, [r2, #0] + 8007b7c: e166 b.n 8007e4c } else { /* EP enable, IN data in FIFO */ USBx_INEP(epnum)->DIEPCTL |= (USB_OTG_DIEPCTL_CNAK | USB_OTG_DIEPCTL_EPENA); - 8007b2a: 69bb ldr r3, [r7, #24] - 8007b2c: 015a lsls r2, r3, #5 - 8007b2e: 69fb ldr r3, [r7, #28] - 8007b30: 4413 add r3, r2 - 8007b32: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007b36: 681b ldr r3, [r3, #0] - 8007b38: 69ba ldr r2, [r7, #24] - 8007b3a: 0151 lsls r1, r2, #5 - 8007b3c: 69fa ldr r2, [r7, #28] - 8007b3e: 440a add r2, r1 - 8007b40: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007b44: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 - 8007b48: 6013 str r3, [r2, #0] + 8007b7e: 69bb ldr r3, [r7, #24] + 8007b80: 015a lsls r2, r3, #5 + 8007b82: 69fb ldr r3, [r7, #28] + 8007b84: 4413 add r3, r2 + 8007b86: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007b8a: 681b ldr r3, [r3, #0] + 8007b8c: 69ba ldr r2, [r7, #24] + 8007b8e: 0151 lsls r1, r2, #5 + 8007b90: 69fa ldr r2, [r7, #28] + 8007b92: 440a add r2, r1 + 8007b94: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007b98: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 + 8007b9c: 6013 str r3, [r2, #0] if (ep->type != EP_TYPE_ISOC) - 8007b4a: 68bb ldr r3, [r7, #8] - 8007b4c: 791b ldrb r3, [r3, #4] - 8007b4e: 2b01 cmp r3, #1 - 8007b50: d015 beq.n 8007b7e + 8007b9e: 68bb ldr r3, [r7, #8] + 8007ba0: 791b ldrb r3, [r3, #4] + 8007ba2: 2b01 cmp r3, #1 + 8007ba4: d015 beq.n 8007bd2 { /* Enable the Tx FIFO Empty Interrupt for this EP */ if (ep->xfer_len > 0U) - 8007b52: 68bb ldr r3, [r7, #8] - 8007b54: 691b ldr r3, [r3, #16] - 8007b56: 2b00 cmp r3, #0 - 8007b58: f000 814e beq.w 8007df8 + 8007ba6: 68bb ldr r3, [r7, #8] + 8007ba8: 691b ldr r3, [r3, #16] + 8007baa: 2b00 cmp r3, #0 + 8007bac: f000 814e beq.w 8007e4c { USBx_DEVICE->DIEPEMPMSK |= 1UL << (ep->num & EP_ADDR_MSK); - 8007b5c: 69fb ldr r3, [r7, #28] - 8007b5e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007b62: 6b5a ldr r2, [r3, #52] @ 0x34 - 8007b64: 68bb ldr r3, [r7, #8] - 8007b66: 781b ldrb r3, [r3, #0] - 8007b68: f003 030f and.w r3, r3, #15 - 8007b6c: 2101 movs r1, #1 - 8007b6e: fa01 f303 lsl.w r3, r1, r3 - 8007b72: 69f9 ldr r1, [r7, #28] - 8007b74: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8007b78: 4313 orrs r3, r2 - 8007b7a: 634b str r3, [r1, #52] @ 0x34 - 8007b7c: e13c b.n 8007df8 + 8007bb0: 69fb ldr r3, [r7, #28] + 8007bb2: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007bb6: 6b5a ldr r2, [r3, #52] @ 0x34 + 8007bb8: 68bb ldr r3, [r7, #8] + 8007bba: 781b ldrb r3, [r3, #0] + 8007bbc: f003 030f and.w r3, r3, #15 + 8007bc0: 2101 movs r1, #1 + 8007bc2: fa01 f303 lsl.w r3, r1, r3 + 8007bc6: 69f9 ldr r1, [r7, #28] + 8007bc8: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8007bcc: 4313 orrs r3, r2 + 8007bce: 634b str r3, [r1, #52] @ 0x34 + 8007bd0: e13c b.n 8007e4c } } else { if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U) - 8007b7e: 69fb ldr r3, [r7, #28] - 8007b80: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007b84: 689b ldr r3, [r3, #8] - 8007b86: f403 7380 and.w r3, r3, #256 @ 0x100 - 8007b8a: 2b00 cmp r3, #0 - 8007b8c: d110 bne.n 8007bb0 + 8007bd2: 69fb ldr r3, [r7, #28] + 8007bd4: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007bd8: 689b ldr r3, [r3, #8] + 8007bda: f403 7380 and.w r3, r3, #256 @ 0x100 + 8007bde: 2b00 cmp r3, #0 + 8007be0: d110 bne.n 8007c04 { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SODDFRM; - 8007b8e: 69bb ldr r3, [r7, #24] - 8007b90: 015a lsls r2, r3, #5 - 8007b92: 69fb ldr r3, [r7, #28] - 8007b94: 4413 add r3, r2 - 8007b96: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007b9a: 681b ldr r3, [r3, #0] - 8007b9c: 69ba ldr r2, [r7, #24] - 8007b9e: 0151 lsls r1, r2, #5 - 8007ba0: 69fa ldr r2, [r7, #28] - 8007ba2: 440a add r2, r1 - 8007ba4: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007ba8: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 - 8007bac: 6013 str r3, [r2, #0] - 8007bae: e00f b.n 8007bd0 + 8007be2: 69bb ldr r3, [r7, #24] + 8007be4: 015a lsls r2, r3, #5 + 8007be6: 69fb ldr r3, [r7, #28] + 8007be8: 4413 add r3, r2 + 8007bea: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007bee: 681b ldr r3, [r3, #0] + 8007bf0: 69ba ldr r2, [r7, #24] + 8007bf2: 0151 lsls r1, r2, #5 + 8007bf4: 69fa ldr r2, [r7, #28] + 8007bf6: 440a add r2, r1 + 8007bf8: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007bfc: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 + 8007c00: 6013 str r3, [r2, #0] + 8007c02: e00f b.n 8007c24 } else { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM; - 8007bb0: 69bb ldr r3, [r7, #24] - 8007bb2: 015a lsls r2, r3, #5 - 8007bb4: 69fb ldr r3, [r7, #28] - 8007bb6: 4413 add r3, r2 - 8007bb8: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007bbc: 681b ldr r3, [r3, #0] - 8007bbe: 69ba ldr r2, [r7, #24] - 8007bc0: 0151 lsls r1, r2, #5 - 8007bc2: 69fa ldr r2, [r7, #28] - 8007bc4: 440a add r2, r1 - 8007bc6: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007bca: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8007bce: 6013 str r3, [r2, #0] + 8007c04: 69bb ldr r3, [r7, #24] + 8007c06: 015a lsls r2, r3, #5 + 8007c08: 69fb ldr r3, [r7, #28] + 8007c0a: 4413 add r3, r2 + 8007c0c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007c10: 681b ldr r3, [r3, #0] + 8007c12: 69ba ldr r2, [r7, #24] + 8007c14: 0151 lsls r1, r2, #5 + 8007c16: 69fa ldr r2, [r7, #28] + 8007c18: 440a add r2, r1 + 8007c1a: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007c1e: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8007c22: 6013 str r3, [r2, #0] } (void)USB_WritePacket(USBx, ep->xfer_buff, ep->num, (uint16_t)ep->xfer_len, dma); - 8007bd0: 68bb ldr r3, [r7, #8] - 8007bd2: 68d9 ldr r1, [r3, #12] - 8007bd4: 68bb ldr r3, [r7, #8] - 8007bd6: 781a ldrb r2, [r3, #0] - 8007bd8: 68bb ldr r3, [r7, #8] - 8007bda: 691b ldr r3, [r3, #16] - 8007bdc: b298 uxth r0, r3 - 8007bde: 79fb ldrb r3, [r7, #7] - 8007be0: 9300 str r3, [sp, #0] - 8007be2: 4603 mov r3, r0 - 8007be4: 68f8 ldr r0, [r7, #12] - 8007be6: f000 f9b9 bl 8007f5c - 8007bea: e105 b.n 8007df8 + 8007c24: 68bb ldr r3, [r7, #8] + 8007c26: 68d9 ldr r1, [r3, #12] + 8007c28: 68bb ldr r3, [r7, #8] + 8007c2a: 781a ldrb r2, [r3, #0] + 8007c2c: 68bb ldr r3, [r7, #8] + 8007c2e: 691b ldr r3, [r3, #16] + 8007c30: b298 uxth r0, r3 + 8007c32: 79fb ldrb r3, [r7, #7] + 8007c34: 9300 str r3, [sp, #0] + 8007c36: 4603 mov r3, r0 + 8007c38: 68f8 ldr r0, [r7, #12] + 8007c3a: f000 f9b9 bl 8007fb0 + 8007c3e: e105 b.n 8007e4c { /* Program the transfer size and packet count as follows: * pktcnt = N * xfersize = N * maxpacket */ USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_XFRSIZ); - 8007bec: 69bb ldr r3, [r7, #24] - 8007bee: 015a lsls r2, r3, #5 - 8007bf0: 69fb ldr r3, [r7, #28] - 8007bf2: 4413 add r3, r2 - 8007bf4: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007bf8: 691b ldr r3, [r3, #16] - 8007bfa: 69ba ldr r2, [r7, #24] - 8007bfc: 0151 lsls r1, r2, #5 - 8007bfe: 69fa ldr r2, [r7, #28] - 8007c00: 440a add r2, r1 - 8007c02: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8007c06: 0cdb lsrs r3, r3, #19 - 8007c08: 04db lsls r3, r3, #19 - 8007c0a: 6113 str r3, [r2, #16] + 8007c40: 69bb ldr r3, [r7, #24] + 8007c42: 015a lsls r2, r3, #5 + 8007c44: 69fb ldr r3, [r7, #28] + 8007c46: 4413 add r3, r2 + 8007c48: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007c4c: 691b ldr r3, [r3, #16] + 8007c4e: 69ba ldr r2, [r7, #24] + 8007c50: 0151 lsls r1, r2, #5 + 8007c52: 69fa ldr r2, [r7, #28] + 8007c54: 440a add r2, r1 + 8007c56: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8007c5a: 0cdb lsrs r3, r3, #19 + 8007c5c: 04db lsls r3, r3, #19 + 8007c5e: 6113 str r3, [r2, #16] USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_PKTCNT); - 8007c0c: 69bb ldr r3, [r7, #24] - 8007c0e: 015a lsls r2, r3, #5 - 8007c10: 69fb ldr r3, [r7, #28] - 8007c12: 4413 add r3, r2 - 8007c14: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007c18: 691b ldr r3, [r3, #16] - 8007c1a: 69ba ldr r2, [r7, #24] - 8007c1c: 0151 lsls r1, r2, #5 - 8007c1e: 69fa ldr r2, [r7, #28] - 8007c20: 440a add r2, r1 - 8007c22: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8007c26: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 - 8007c2a: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 - 8007c2e: 6113 str r3, [r2, #16] + 8007c60: 69bb ldr r3, [r7, #24] + 8007c62: 015a lsls r2, r3, #5 + 8007c64: 69fb ldr r3, [r7, #28] + 8007c66: 4413 add r3, r2 + 8007c68: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007c6c: 691b ldr r3, [r3, #16] + 8007c6e: 69ba ldr r2, [r7, #24] + 8007c70: 0151 lsls r1, r2, #5 + 8007c72: 69fa ldr r2, [r7, #28] + 8007c74: 440a add r2, r1 + 8007c76: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8007c7a: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 + 8007c7e: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 + 8007c82: 6113 str r3, [r2, #16] if (epnum == 0U) - 8007c30: 69bb ldr r3, [r7, #24] - 8007c32: 2b00 cmp r3, #0 - 8007c34: d132 bne.n 8007c9c + 8007c84: 69bb ldr r3, [r7, #24] + 8007c86: 2b00 cmp r3, #0 + 8007c88: d132 bne.n 8007cf0 { if (ep->xfer_len > 0U) - 8007c36: 68bb ldr r3, [r7, #8] - 8007c38: 691b ldr r3, [r3, #16] - 8007c3a: 2b00 cmp r3, #0 - 8007c3c: d003 beq.n 8007c46 + 8007c8a: 68bb ldr r3, [r7, #8] + 8007c8c: 691b ldr r3, [r3, #16] + 8007c8e: 2b00 cmp r3, #0 + 8007c90: d003 beq.n 8007c9a { ep->xfer_len = ep->maxpacket; - 8007c3e: 68bb ldr r3, [r7, #8] - 8007c40: 689a ldr r2, [r3, #8] - 8007c42: 68bb ldr r3, [r7, #8] - 8007c44: 611a str r2, [r3, #16] + 8007c92: 68bb ldr r3, [r7, #8] + 8007c94: 689a ldr r2, [r3, #8] + 8007c96: 68bb ldr r3, [r7, #8] + 8007c98: 611a str r2, [r3, #16] } /* Store transfer size, for EP0 this is equal to endpoint max packet size */ ep->xfer_size = ep->maxpacket; - 8007c46: 68bb ldr r3, [r7, #8] - 8007c48: 689a ldr r2, [r3, #8] - 8007c4a: 68bb ldr r3, [r7, #8] - 8007c4c: 621a str r2, [r3, #32] + 8007c9a: 68bb ldr r3, [r7, #8] + 8007c9c: 689a ldr r2, [r3, #8] + 8007c9e: 68bb ldr r3, [r7, #8] + 8007ca0: 621a str r2, [r3, #32] USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & ep->xfer_size); - 8007c4e: 69bb ldr r3, [r7, #24] - 8007c50: 015a lsls r2, r3, #5 - 8007c52: 69fb ldr r3, [r7, #28] - 8007c54: 4413 add r3, r2 - 8007c56: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007c5a: 691a ldr r2, [r3, #16] - 8007c5c: 68bb ldr r3, [r7, #8] - 8007c5e: 6a1b ldr r3, [r3, #32] - 8007c60: f3c3 0312 ubfx r3, r3, #0, #19 - 8007c64: 69b9 ldr r1, [r7, #24] - 8007c66: 0148 lsls r0, r1, #5 - 8007c68: 69f9 ldr r1, [r7, #28] - 8007c6a: 4401 add r1, r0 - 8007c6c: f501 6130 add.w r1, r1, #2816 @ 0xb00 - 8007c70: 4313 orrs r3, r2 - 8007c72: 610b str r3, [r1, #16] + 8007ca2: 69bb ldr r3, [r7, #24] + 8007ca4: 015a lsls r2, r3, #5 + 8007ca6: 69fb ldr r3, [r7, #28] + 8007ca8: 4413 add r3, r2 + 8007caa: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007cae: 691a ldr r2, [r3, #16] + 8007cb0: 68bb ldr r3, [r7, #8] + 8007cb2: 6a1b ldr r3, [r3, #32] + 8007cb4: f3c3 0312 ubfx r3, r3, #0, #19 + 8007cb8: 69b9 ldr r1, [r7, #24] + 8007cba: 0148 lsls r0, r1, #5 + 8007cbc: 69f9 ldr r1, [r7, #28] + 8007cbe: 4401 add r1, r0 + 8007cc0: f501 6130 add.w r1, r1, #2816 @ 0xb00 + 8007cc4: 4313 orrs r3, r2 + 8007cc6: 610b str r3, [r1, #16] USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); - 8007c74: 69bb ldr r3, [r7, #24] - 8007c76: 015a lsls r2, r3, #5 - 8007c78: 69fb ldr r3, [r7, #28] - 8007c7a: 4413 add r3, r2 - 8007c7c: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007c80: 691b ldr r3, [r3, #16] - 8007c82: 69ba ldr r2, [r7, #24] - 8007c84: 0151 lsls r1, r2, #5 - 8007c86: 69fa ldr r2, [r7, #28] - 8007c88: 440a add r2, r1 - 8007c8a: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8007c8e: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 8007c92: 6113 str r3, [r2, #16] - 8007c94: e062 b.n 8007d5c - 8007c96: bf00 nop - 8007c98: 1ff80000 .word 0x1ff80000 + 8007cc8: 69bb ldr r3, [r7, #24] + 8007cca: 015a lsls r2, r3, #5 + 8007ccc: 69fb ldr r3, [r7, #28] + 8007cce: 4413 add r3, r2 + 8007cd0: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007cd4: 691b ldr r3, [r3, #16] + 8007cd6: 69ba ldr r2, [r7, #24] + 8007cd8: 0151 lsls r1, r2, #5 + 8007cda: 69fa ldr r2, [r7, #28] + 8007cdc: 440a add r2, r1 + 8007cde: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8007ce2: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 8007ce6: 6113 str r3, [r2, #16] + 8007ce8: e062 b.n 8007db0 + 8007cea: bf00 nop + 8007cec: 1ff80000 .word 0x1ff80000 } else { if (ep->xfer_len == 0U) - 8007c9c: 68bb ldr r3, [r7, #8] - 8007c9e: 691b ldr r3, [r3, #16] - 8007ca0: 2b00 cmp r3, #0 - 8007ca2: d123 bne.n 8007cec + 8007cf0: 68bb ldr r3, [r7, #8] + 8007cf2: 691b ldr r3, [r3, #16] + 8007cf4: 2b00 cmp r3, #0 + 8007cf6: d123 bne.n 8007d40 { USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & ep->maxpacket); - 8007ca4: 69bb ldr r3, [r7, #24] - 8007ca6: 015a lsls r2, r3, #5 - 8007ca8: 69fb ldr r3, [r7, #28] - 8007caa: 4413 add r3, r2 - 8007cac: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007cb0: 691a ldr r2, [r3, #16] - 8007cb2: 68bb ldr r3, [r7, #8] - 8007cb4: 689b ldr r3, [r3, #8] - 8007cb6: f3c3 0312 ubfx r3, r3, #0, #19 - 8007cba: 69b9 ldr r1, [r7, #24] - 8007cbc: 0148 lsls r0, r1, #5 - 8007cbe: 69f9 ldr r1, [r7, #28] - 8007cc0: 4401 add r1, r0 - 8007cc2: f501 6130 add.w r1, r1, #2816 @ 0xb00 - 8007cc6: 4313 orrs r3, r2 - 8007cc8: 610b str r3, [r1, #16] + 8007cf8: 69bb ldr r3, [r7, #24] + 8007cfa: 015a lsls r2, r3, #5 + 8007cfc: 69fb ldr r3, [r7, #28] + 8007cfe: 4413 add r3, r2 + 8007d00: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007d04: 691a ldr r2, [r3, #16] + 8007d06: 68bb ldr r3, [r7, #8] + 8007d08: 689b ldr r3, [r3, #8] + 8007d0a: f3c3 0312 ubfx r3, r3, #0, #19 + 8007d0e: 69b9 ldr r1, [r7, #24] + 8007d10: 0148 lsls r0, r1, #5 + 8007d12: 69f9 ldr r1, [r7, #28] + 8007d14: 4401 add r1, r0 + 8007d16: f501 6130 add.w r1, r1, #2816 @ 0xb00 + 8007d1a: 4313 orrs r3, r2 + 8007d1c: 610b str r3, [r1, #16] USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); - 8007cca: 69bb ldr r3, [r7, #24] - 8007ccc: 015a lsls r2, r3, #5 - 8007cce: 69fb ldr r3, [r7, #28] - 8007cd0: 4413 add r3, r2 - 8007cd2: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007cd6: 691b ldr r3, [r3, #16] - 8007cd8: 69ba ldr r2, [r7, #24] - 8007cda: 0151 lsls r1, r2, #5 - 8007cdc: 69fa ldr r2, [r7, #28] - 8007cde: 440a add r2, r1 - 8007ce0: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8007ce4: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 8007ce8: 6113 str r3, [r2, #16] - 8007cea: e037 b.n 8007d5c + 8007d1e: 69bb ldr r3, [r7, #24] + 8007d20: 015a lsls r2, r3, #5 + 8007d22: 69fb ldr r3, [r7, #28] + 8007d24: 4413 add r3, r2 + 8007d26: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007d2a: 691b ldr r3, [r3, #16] + 8007d2c: 69ba ldr r2, [r7, #24] + 8007d2e: 0151 lsls r1, r2, #5 + 8007d30: 69fa ldr r2, [r7, #28] + 8007d32: 440a add r2, r1 + 8007d34: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8007d38: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 8007d3c: 6113 str r3, [r2, #16] + 8007d3e: e037 b.n 8007db0 } else { pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket); - 8007cec: 68bb ldr r3, [r7, #8] - 8007cee: 691a ldr r2, [r3, #16] - 8007cf0: 68bb ldr r3, [r7, #8] - 8007cf2: 689b ldr r3, [r3, #8] - 8007cf4: 4413 add r3, r2 - 8007cf6: 1e5a subs r2, r3, #1 - 8007cf8: 68bb ldr r3, [r7, #8] - 8007cfa: 689b ldr r3, [r3, #8] - 8007cfc: fbb2 f3f3 udiv r3, r2, r3 - 8007d00: 82fb strh r3, [r7, #22] - ep->xfer_size = ep->maxpacket * pktcnt; - 8007d02: 68bb ldr r3, [r7, #8] - 8007d04: 689b ldr r3, [r3, #8] - 8007d06: 8afa ldrh r2, [r7, #22] - 8007d08: fb03 f202 mul.w r2, r3, r2 - 8007d0c: 68bb ldr r3, [r7, #8] - 8007d0e: 621a str r2, [r3, #32] - - USBx_OUTEP(epnum)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_PKTCNT & ((uint32_t)pktcnt << 19); - 8007d10: 69bb ldr r3, [r7, #24] - 8007d12: 015a lsls r2, r3, #5 - 8007d14: 69fb ldr r3, [r7, #28] - 8007d16: 4413 add r3, r2 - 8007d18: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007d1c: 691a ldr r2, [r3, #16] - 8007d1e: 8afb ldrh r3, [r7, #22] - 8007d20: 04d9 lsls r1, r3, #19 - 8007d22: 4b38 ldr r3, [pc, #224] @ (8007e04 ) - 8007d24: 400b ands r3, r1 - 8007d26: 69b9 ldr r1, [r7, #24] - 8007d28: 0148 lsls r0, r1, #5 - 8007d2a: 69f9 ldr r1, [r7, #28] - 8007d2c: 4401 add r1, r0 - 8007d2e: f501 6130 add.w r1, r1, #2816 @ 0xb00 - 8007d32: 4313 orrs r3, r2 - 8007d34: 610b str r3, [r1, #16] - USBx_OUTEP(epnum)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_XFRSIZ & ep->xfer_size; - 8007d36: 69bb ldr r3, [r7, #24] - 8007d38: 015a lsls r2, r3, #5 - 8007d3a: 69fb ldr r3, [r7, #28] - 8007d3c: 4413 add r3, r2 - 8007d3e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007d40: 68bb ldr r3, [r7, #8] 8007d42: 691a ldr r2, [r3, #16] 8007d44: 68bb ldr r3, [r7, #8] - 8007d46: 6a1b ldr r3, [r3, #32] - 8007d48: f3c3 0312 ubfx r3, r3, #0, #19 - 8007d4c: 69b9 ldr r1, [r7, #24] - 8007d4e: 0148 lsls r0, r1, #5 - 8007d50: 69f9 ldr r1, [r7, #28] - 8007d52: 4401 add r1, r0 - 8007d54: f501 6130 add.w r1, r1, #2816 @ 0xb00 - 8007d58: 4313 orrs r3, r2 - 8007d5a: 610b str r3, [r1, #16] + 8007d46: 689b ldr r3, [r3, #8] + 8007d48: 4413 add r3, r2 + 8007d4a: 1e5a subs r2, r3, #1 + 8007d4c: 68bb ldr r3, [r7, #8] + 8007d4e: 689b ldr r3, [r3, #8] + 8007d50: fbb2 f3f3 udiv r3, r2, r3 + 8007d54: 82fb strh r3, [r7, #22] + ep->xfer_size = ep->maxpacket * pktcnt; + 8007d56: 68bb ldr r3, [r7, #8] + 8007d58: 689b ldr r3, [r3, #8] + 8007d5a: 8afa ldrh r2, [r7, #22] + 8007d5c: fb03 f202 mul.w r2, r3, r2 + 8007d60: 68bb ldr r3, [r7, #8] + 8007d62: 621a str r2, [r3, #32] + + USBx_OUTEP(epnum)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_PKTCNT & ((uint32_t)pktcnt << 19); + 8007d64: 69bb ldr r3, [r7, #24] + 8007d66: 015a lsls r2, r3, #5 + 8007d68: 69fb ldr r3, [r7, #28] + 8007d6a: 4413 add r3, r2 + 8007d6c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007d70: 691a ldr r2, [r3, #16] + 8007d72: 8afb ldrh r3, [r7, #22] + 8007d74: 04d9 lsls r1, r3, #19 + 8007d76: 4b38 ldr r3, [pc, #224] @ (8007e58 ) + 8007d78: 400b ands r3, r1 + 8007d7a: 69b9 ldr r1, [r7, #24] + 8007d7c: 0148 lsls r0, r1, #5 + 8007d7e: 69f9 ldr r1, [r7, #28] + 8007d80: 4401 add r1, r0 + 8007d82: f501 6130 add.w r1, r1, #2816 @ 0xb00 + 8007d86: 4313 orrs r3, r2 + 8007d88: 610b str r3, [r1, #16] + USBx_OUTEP(epnum)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_XFRSIZ & ep->xfer_size; + 8007d8a: 69bb ldr r3, [r7, #24] + 8007d8c: 015a lsls r2, r3, #5 + 8007d8e: 69fb ldr r3, [r7, #28] + 8007d90: 4413 add r3, r2 + 8007d92: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007d96: 691a ldr r2, [r3, #16] + 8007d98: 68bb ldr r3, [r7, #8] + 8007d9a: 6a1b ldr r3, [r3, #32] + 8007d9c: f3c3 0312 ubfx r3, r3, #0, #19 + 8007da0: 69b9 ldr r1, [r7, #24] + 8007da2: 0148 lsls r0, r1, #5 + 8007da4: 69f9 ldr r1, [r7, #28] + 8007da6: 4401 add r1, r0 + 8007da8: f501 6130 add.w r1, r1, #2816 @ 0xb00 + 8007dac: 4313 orrs r3, r2 + 8007dae: 610b str r3, [r1, #16] } } if (dma == 1U) - 8007d5c: 79fb ldrb r3, [r7, #7] - 8007d5e: 2b01 cmp r3, #1 - 8007d60: d10d bne.n 8007d7e + 8007db0: 79fb ldrb r3, [r7, #7] + 8007db2: 2b01 cmp r3, #1 + 8007db4: d10d bne.n 8007dd2 { if ((uint32_t)ep->xfer_buff != 0U) - 8007d62: 68bb ldr r3, [r7, #8] - 8007d64: 68db ldr r3, [r3, #12] - 8007d66: 2b00 cmp r3, #0 - 8007d68: d009 beq.n 8007d7e + 8007db6: 68bb ldr r3, [r7, #8] + 8007db8: 68db ldr r3, [r3, #12] + 8007dba: 2b00 cmp r3, #0 + 8007dbc: d009 beq.n 8007dd2 { USBx_OUTEP(epnum)->DOEPDMA = (uint32_t)(ep->xfer_buff); - 8007d6a: 68bb ldr r3, [r7, #8] - 8007d6c: 68d9 ldr r1, [r3, #12] - 8007d6e: 69bb ldr r3, [r7, #24] - 8007d70: 015a lsls r2, r3, #5 - 8007d72: 69fb ldr r3, [r7, #28] - 8007d74: 4413 add r3, r2 - 8007d76: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007d7a: 460a mov r2, r1 - 8007d7c: 615a str r2, [r3, #20] + 8007dbe: 68bb ldr r3, [r7, #8] + 8007dc0: 68d9 ldr r1, [r3, #12] + 8007dc2: 69bb ldr r3, [r7, #24] + 8007dc4: 015a lsls r2, r3, #5 + 8007dc6: 69fb ldr r3, [r7, #28] + 8007dc8: 4413 add r3, r2 + 8007dca: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007dce: 460a mov r2, r1 + 8007dd0: 615a str r2, [r3, #20] } } if (ep->type == EP_TYPE_ISOC) - 8007d7e: 68bb ldr r3, [r7, #8] - 8007d80: 791b ldrb r3, [r3, #4] - 8007d82: 2b01 cmp r3, #1 - 8007d84: d128 bne.n 8007dd8 + 8007dd2: 68bb ldr r3, [r7, #8] + 8007dd4: 791b ldrb r3, [r3, #4] + 8007dd6: 2b01 cmp r3, #1 + 8007dd8: d128 bne.n 8007e2c { if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U) - 8007d86: 69fb ldr r3, [r7, #28] - 8007d88: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007d8c: 689b ldr r3, [r3, #8] - 8007d8e: f403 7380 and.w r3, r3, #256 @ 0x100 - 8007d92: 2b00 cmp r3, #0 - 8007d94: d110 bne.n 8007db8 + 8007dda: 69fb ldr r3, [r7, #28] + 8007ddc: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007de0: 689b ldr r3, [r3, #8] + 8007de2: f403 7380 and.w r3, r3, #256 @ 0x100 + 8007de6: 2b00 cmp r3, #0 + 8007de8: d110 bne.n 8007e0c { USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SODDFRM; - 8007d96: 69bb ldr r3, [r7, #24] - 8007d98: 015a lsls r2, r3, #5 - 8007d9a: 69fb ldr r3, [r7, #28] - 8007d9c: 4413 add r3, r2 - 8007d9e: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007da2: 681b ldr r3, [r3, #0] - 8007da4: 69ba ldr r2, [r7, #24] - 8007da6: 0151 lsls r1, r2, #5 - 8007da8: 69fa ldr r2, [r7, #28] - 8007daa: 440a add r2, r1 - 8007dac: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8007db0: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 - 8007db4: 6013 str r3, [r2, #0] - 8007db6: e00f b.n 8007dd8 + 8007dea: 69bb ldr r3, [r7, #24] + 8007dec: 015a lsls r2, r3, #5 + 8007dee: 69fb ldr r3, [r7, #28] + 8007df0: 4413 add r3, r2 + 8007df2: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007df6: 681b ldr r3, [r3, #0] + 8007df8: 69ba ldr r2, [r7, #24] + 8007dfa: 0151 lsls r1, r2, #5 + 8007dfc: 69fa ldr r2, [r7, #28] + 8007dfe: 440a add r2, r1 + 8007e00: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8007e04: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 + 8007e08: 6013 str r3, [r2, #0] + 8007e0a: e00f b.n 8007e2c } else { USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SD0PID_SEVNFRM; - 8007db8: 69bb ldr r3, [r7, #24] - 8007dba: 015a lsls r2, r3, #5 - 8007dbc: 69fb ldr r3, [r7, #28] - 8007dbe: 4413 add r3, r2 - 8007dc0: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007dc4: 681b ldr r3, [r3, #0] - 8007dc6: 69ba ldr r2, [r7, #24] - 8007dc8: 0151 lsls r1, r2, #5 - 8007dca: 69fa ldr r2, [r7, #28] - 8007dcc: 440a add r2, r1 - 8007dce: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8007dd2: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8007dd6: 6013 str r3, [r2, #0] + 8007e0c: 69bb ldr r3, [r7, #24] + 8007e0e: 015a lsls r2, r3, #5 + 8007e10: 69fb ldr r3, [r7, #28] + 8007e12: 4413 add r3, r2 + 8007e14: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007e18: 681b ldr r3, [r3, #0] + 8007e1a: 69ba ldr r2, [r7, #24] + 8007e1c: 0151 lsls r1, r2, #5 + 8007e1e: 69fa ldr r2, [r7, #28] + 8007e20: 440a add r2, r1 + 8007e22: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8007e26: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8007e2a: 6013 str r3, [r2, #0] } } /* EP enable */ USBx_OUTEP(epnum)->DOEPCTL |= (USB_OTG_DOEPCTL_CNAK | USB_OTG_DOEPCTL_EPENA); - 8007dd8: 69bb ldr r3, [r7, #24] - 8007dda: 015a lsls r2, r3, #5 - 8007ddc: 69fb ldr r3, [r7, #28] - 8007dde: 4413 add r3, r2 - 8007de0: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007de4: 681b ldr r3, [r3, #0] - 8007de6: 69ba ldr r2, [r7, #24] - 8007de8: 0151 lsls r1, r2, #5 - 8007dea: 69fa ldr r2, [r7, #28] - 8007dec: 440a add r2, r1 - 8007dee: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8007df2: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 - 8007df6: 6013 str r3, [r2, #0] + 8007e2c: 69bb ldr r3, [r7, #24] + 8007e2e: 015a lsls r2, r3, #5 + 8007e30: 69fb ldr r3, [r7, #28] + 8007e32: 4413 add r3, r2 + 8007e34: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007e38: 681b ldr r3, [r3, #0] + 8007e3a: 69ba ldr r2, [r7, #24] + 8007e3c: 0151 lsls r1, r2, #5 + 8007e3e: 69fa ldr r2, [r7, #28] + 8007e40: 440a add r2, r1 + 8007e42: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8007e46: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 + 8007e4a: 6013 str r3, [r2, #0] } return HAL_OK; - 8007df8: 2300 movs r3, #0 + 8007e4c: 2300 movs r3, #0 } - 8007dfa: 4618 mov r0, r3 - 8007dfc: 3720 adds r7, #32 - 8007dfe: 46bd mov sp, r7 - 8007e00: bd80 pop {r7, pc} - 8007e02: bf00 nop - 8007e04: 1ff80000 .word 0x1ff80000 + 8007e4e: 4618 mov r0, r3 + 8007e50: 3720 adds r7, #32 + 8007e52: 46bd mov sp, r7 + 8007e54: bd80 pop {r7, pc} + 8007e56: bf00 nop + 8007e58: 1ff80000 .word 0x1ff80000 -08007e08 : +08007e5c : * @param USBx usb device instance * @param ep pointer to endpoint structure * @retval HAL status */ HAL_StatusTypeDef USB_EPStopXfer(const USB_OTG_GlobalTypeDef *USBx, USB_OTG_EPTypeDef *ep) { - 8007e08: b480 push {r7} - 8007e0a: b087 sub sp, #28 - 8007e0c: af00 add r7, sp, #0 - 8007e0e: 6078 str r0, [r7, #4] - 8007e10: 6039 str r1, [r7, #0] + 8007e5c: b480 push {r7} + 8007e5e: b087 sub sp, #28 + 8007e60: af00 add r7, sp, #0 + 8007e62: 6078 str r0, [r7, #4] + 8007e64: 6039 str r1, [r7, #0] __IO uint32_t count = 0U; - 8007e12: 2300 movs r3, #0 - 8007e14: 60fb str r3, [r7, #12] + 8007e66: 2300 movs r3, #0 + 8007e68: 60fb str r3, [r7, #12] HAL_StatusTypeDef ret = HAL_OK; - 8007e16: 2300 movs r3, #0 - 8007e18: 75fb strb r3, [r7, #23] + 8007e6a: 2300 movs r3, #0 + 8007e6c: 75fb strb r3, [r7, #23] uint32_t USBx_BASE = (uint32_t)USBx; - 8007e1a: 687b ldr r3, [r7, #4] - 8007e1c: 613b str r3, [r7, #16] + 8007e6e: 687b ldr r3, [r7, #4] + 8007e70: 613b str r3, [r7, #16] /* IN endpoint */ if (ep->is_in == 1U) - 8007e1e: 683b ldr r3, [r7, #0] - 8007e20: 785b ldrb r3, [r3, #1] - 8007e22: 2b01 cmp r3, #1 - 8007e24: d14a bne.n 8007ebc + 8007e72: 683b ldr r3, [r7, #0] + 8007e74: 785b ldrb r3, [r3, #1] + 8007e76: 2b01 cmp r3, #1 + 8007e78: d14a bne.n 8007f10 { /* EP enable, IN data in FIFO */ if (((USBx_INEP(ep->num)->DIEPCTL) & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) - 8007e26: 683b ldr r3, [r7, #0] - 8007e28: 781b ldrb r3, [r3, #0] - 8007e2a: 015a lsls r2, r3, #5 - 8007e2c: 693b ldr r3, [r7, #16] - 8007e2e: 4413 add r3, r2 - 8007e30: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007e34: 681b ldr r3, [r3, #0] - 8007e36: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8007e3a: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8007e3e: f040 8086 bne.w 8007f4e + 8007e7a: 683b ldr r3, [r7, #0] + 8007e7c: 781b ldrb r3, [r3, #0] + 8007e7e: 015a lsls r2, r3, #5 + 8007e80: 693b ldr r3, [r7, #16] + 8007e82: 4413 add r3, r2 + 8007e84: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007e88: 681b ldr r3, [r3, #0] + 8007e8a: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8007e8e: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8007e92: f040 8086 bne.w 8007fa2 { USBx_INEP(ep->num)->DIEPCTL |= (USB_OTG_DIEPCTL_SNAK); - 8007e42: 683b ldr r3, [r7, #0] - 8007e44: 781b ldrb r3, [r3, #0] - 8007e46: 015a lsls r2, r3, #5 - 8007e48: 693b ldr r3, [r7, #16] - 8007e4a: 4413 add r3, r2 - 8007e4c: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007e50: 681b ldr r3, [r3, #0] - 8007e52: 683a ldr r2, [r7, #0] - 8007e54: 7812 ldrb r2, [r2, #0] - 8007e56: 0151 lsls r1, r2, #5 - 8007e58: 693a ldr r2, [r7, #16] - 8007e5a: 440a add r2, r1 - 8007e5c: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007e60: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 8007e64: 6013 str r3, [r2, #0] + 8007e96: 683b ldr r3, [r7, #0] + 8007e98: 781b ldrb r3, [r3, #0] + 8007e9a: 015a lsls r2, r3, #5 + 8007e9c: 693b ldr r3, [r7, #16] + 8007e9e: 4413 add r3, r2 + 8007ea0: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007ea4: 681b ldr r3, [r3, #0] + 8007ea6: 683a ldr r2, [r7, #0] + 8007ea8: 7812 ldrb r2, [r2, #0] + 8007eaa: 0151 lsls r1, r2, #5 + 8007eac: 693a ldr r2, [r7, #16] + 8007eae: 440a add r2, r1 + 8007eb0: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007eb4: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 8007eb8: 6013 str r3, [r2, #0] USBx_INEP(ep->num)->DIEPCTL |= (USB_OTG_DIEPCTL_EPDIS); - 8007e66: 683b ldr r3, [r7, #0] - 8007e68: 781b ldrb r3, [r3, #0] - 8007e6a: 015a lsls r2, r3, #5 - 8007e6c: 693b ldr r3, [r7, #16] - 8007e6e: 4413 add r3, r2 - 8007e70: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007e74: 681b ldr r3, [r3, #0] - 8007e76: 683a ldr r2, [r7, #0] - 8007e78: 7812 ldrb r2, [r2, #0] - 8007e7a: 0151 lsls r1, r2, #5 - 8007e7c: 693a ldr r2, [r7, #16] - 8007e7e: 440a add r2, r1 - 8007e80: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007e84: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 8007e88: 6013 str r3, [r2, #0] + 8007eba: 683b ldr r3, [r7, #0] + 8007ebc: 781b ldrb r3, [r3, #0] + 8007ebe: 015a lsls r2, r3, #5 + 8007ec0: 693b ldr r3, [r7, #16] + 8007ec2: 4413 add r3, r2 + 8007ec4: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007ec8: 681b ldr r3, [r3, #0] + 8007eca: 683a ldr r2, [r7, #0] + 8007ecc: 7812 ldrb r2, [r2, #0] + 8007ece: 0151 lsls r1, r2, #5 + 8007ed0: 693a ldr r2, [r7, #16] + 8007ed2: 440a add r2, r1 + 8007ed4: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007ed8: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 8007edc: 6013 str r3, [r2, #0] do { count++; - 8007e8a: 68fb ldr r3, [r7, #12] - 8007e8c: 3301 adds r3, #1 - 8007e8e: 60fb str r3, [r7, #12] + 8007ede: 68fb ldr r3, [r7, #12] + 8007ee0: 3301 adds r3, #1 + 8007ee2: 60fb str r3, [r7, #12] if (count > 10000U) - 8007e90: 68fb ldr r3, [r7, #12] - 8007e92: f242 7210 movw r2, #10000 @ 0x2710 - 8007e96: 4293 cmp r3, r2 - 8007e98: d902 bls.n 8007ea0 + 8007ee4: 68fb ldr r3, [r7, #12] + 8007ee6: f242 7210 movw r2, #10000 @ 0x2710 + 8007eea: 4293 cmp r3, r2 + 8007eec: d902 bls.n 8007ef4 { ret = HAL_ERROR; - 8007e9a: 2301 movs r3, #1 - 8007e9c: 75fb strb r3, [r7, #23] + 8007eee: 2301 movs r3, #1 + 8007ef0: 75fb strb r3, [r7, #23] break; - 8007e9e: e056 b.n 8007f4e + 8007ef2: e056 b.n 8007fa2 } } while (((USBx_INEP(ep->num)->DIEPCTL) & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA); - 8007ea0: 683b ldr r3, [r7, #0] - 8007ea2: 781b ldrb r3, [r3, #0] - 8007ea4: 015a lsls r2, r3, #5 - 8007ea6: 693b ldr r3, [r7, #16] - 8007ea8: 4413 add r3, r2 - 8007eaa: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007eae: 681b ldr r3, [r3, #0] - 8007eb0: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8007eb4: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8007eb8: d0e7 beq.n 8007e8a - 8007eba: e048 b.n 8007f4e + 8007ef4: 683b ldr r3, [r7, #0] + 8007ef6: 781b ldrb r3, [r3, #0] + 8007ef8: 015a lsls r2, r3, #5 + 8007efa: 693b ldr r3, [r7, #16] + 8007efc: 4413 add r3, r2 + 8007efe: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007f02: 681b ldr r3, [r3, #0] + 8007f04: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8007f08: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8007f0c: d0e7 beq.n 8007ede + 8007f0e: e048 b.n 8007fa2 } } else /* OUT endpoint */ { if (((USBx_OUTEP(ep->num)->DOEPCTL) & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) - 8007ebc: 683b ldr r3, [r7, #0] - 8007ebe: 781b ldrb r3, [r3, #0] - 8007ec0: 015a lsls r2, r3, #5 - 8007ec2: 693b ldr r3, [r7, #16] - 8007ec4: 4413 add r3, r2 - 8007ec6: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007eca: 681b ldr r3, [r3, #0] - 8007ecc: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8007ed0: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8007ed4: d13b bne.n 8007f4e + 8007f10: 683b ldr r3, [r7, #0] + 8007f12: 781b ldrb r3, [r3, #0] + 8007f14: 015a lsls r2, r3, #5 + 8007f16: 693b ldr r3, [r7, #16] + 8007f18: 4413 add r3, r2 + 8007f1a: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007f1e: 681b ldr r3, [r3, #0] + 8007f20: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8007f24: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8007f28: d13b bne.n 8007fa2 { USBx_OUTEP(ep->num)->DOEPCTL |= (USB_OTG_DOEPCTL_SNAK); - 8007ed6: 683b ldr r3, [r7, #0] - 8007ed8: 781b ldrb r3, [r3, #0] - 8007eda: 015a lsls r2, r3, #5 - 8007edc: 693b ldr r3, [r7, #16] - 8007ede: 4413 add r3, r2 - 8007ee0: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007ee4: 681b ldr r3, [r3, #0] - 8007ee6: 683a ldr r2, [r7, #0] - 8007ee8: 7812 ldrb r2, [r2, #0] - 8007eea: 0151 lsls r1, r2, #5 - 8007eec: 693a ldr r2, [r7, #16] - 8007eee: 440a add r2, r1 - 8007ef0: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8007ef4: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 8007ef8: 6013 str r3, [r2, #0] + 8007f2a: 683b ldr r3, [r7, #0] + 8007f2c: 781b ldrb r3, [r3, #0] + 8007f2e: 015a lsls r2, r3, #5 + 8007f30: 693b ldr r3, [r7, #16] + 8007f32: 4413 add r3, r2 + 8007f34: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007f38: 681b ldr r3, [r3, #0] + 8007f3a: 683a ldr r2, [r7, #0] + 8007f3c: 7812 ldrb r2, [r2, #0] + 8007f3e: 0151 lsls r1, r2, #5 + 8007f40: 693a ldr r2, [r7, #16] + 8007f42: 440a add r2, r1 + 8007f44: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8007f48: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 8007f4c: 6013 str r3, [r2, #0] USBx_OUTEP(ep->num)->DOEPCTL |= (USB_OTG_DOEPCTL_EPDIS); - 8007efa: 683b ldr r3, [r7, #0] - 8007efc: 781b ldrb r3, [r3, #0] - 8007efe: 015a lsls r2, r3, #5 - 8007f00: 693b ldr r3, [r7, #16] - 8007f02: 4413 add r3, r2 - 8007f04: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007f08: 681b ldr r3, [r3, #0] - 8007f0a: 683a ldr r2, [r7, #0] - 8007f0c: 7812 ldrb r2, [r2, #0] - 8007f0e: 0151 lsls r1, r2, #5 - 8007f10: 693a ldr r2, [r7, #16] - 8007f12: 440a add r2, r1 - 8007f14: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8007f18: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 8007f1c: 6013 str r3, [r2, #0] + 8007f4e: 683b ldr r3, [r7, #0] + 8007f50: 781b ldrb r3, [r3, #0] + 8007f52: 015a lsls r2, r3, #5 + 8007f54: 693b ldr r3, [r7, #16] + 8007f56: 4413 add r3, r2 + 8007f58: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007f5c: 681b ldr r3, [r3, #0] + 8007f5e: 683a ldr r2, [r7, #0] + 8007f60: 7812 ldrb r2, [r2, #0] + 8007f62: 0151 lsls r1, r2, #5 + 8007f64: 693a ldr r2, [r7, #16] + 8007f66: 440a add r2, r1 + 8007f68: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8007f6c: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 8007f70: 6013 str r3, [r2, #0] do { count++; - 8007f1e: 68fb ldr r3, [r7, #12] - 8007f20: 3301 adds r3, #1 - 8007f22: 60fb str r3, [r7, #12] + 8007f72: 68fb ldr r3, [r7, #12] + 8007f74: 3301 adds r3, #1 + 8007f76: 60fb str r3, [r7, #12] if (count > 10000U) - 8007f24: 68fb ldr r3, [r7, #12] - 8007f26: f242 7210 movw r2, #10000 @ 0x2710 - 8007f2a: 4293 cmp r3, r2 - 8007f2c: d902 bls.n 8007f34 + 8007f78: 68fb ldr r3, [r7, #12] + 8007f7a: f242 7210 movw r2, #10000 @ 0x2710 + 8007f7e: 4293 cmp r3, r2 + 8007f80: d902 bls.n 8007f88 { ret = HAL_ERROR; - 8007f2e: 2301 movs r3, #1 - 8007f30: 75fb strb r3, [r7, #23] + 8007f82: 2301 movs r3, #1 + 8007f84: 75fb strb r3, [r7, #23] break; - 8007f32: e00c b.n 8007f4e + 8007f86: e00c b.n 8007fa2 } } while (((USBx_OUTEP(ep->num)->DOEPCTL) & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA); - 8007f34: 683b ldr r3, [r7, #0] - 8007f36: 781b ldrb r3, [r3, #0] - 8007f38: 015a lsls r2, r3, #5 - 8007f3a: 693b ldr r3, [r7, #16] - 8007f3c: 4413 add r3, r2 - 8007f3e: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007f42: 681b ldr r3, [r3, #0] - 8007f44: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8007f48: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8007f4c: d0e7 beq.n 8007f1e + 8007f88: 683b ldr r3, [r7, #0] + 8007f8a: 781b ldrb r3, [r3, #0] + 8007f8c: 015a lsls r2, r3, #5 + 8007f8e: 693b ldr r3, [r7, #16] + 8007f90: 4413 add r3, r2 + 8007f92: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007f96: 681b ldr r3, [r3, #0] + 8007f98: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8007f9c: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8007fa0: d0e7 beq.n 8007f72 } } return ret; - 8007f4e: 7dfb ldrb r3, [r7, #23] + 8007fa2: 7dfb ldrb r3, [r7, #23] } - 8007f50: 4618 mov r0, r3 - 8007f52: 371c adds r7, #28 - 8007f54: 46bd mov sp, r7 - 8007f56: f85d 7b04 ldr.w r7, [sp], #4 - 8007f5a: 4770 bx lr + 8007fa4: 4618 mov r0, r3 + 8007fa6: 371c adds r7, #28 + 8007fa8: 46bd mov sp, r7 + 8007faa: f85d 7b04 ldr.w r7, [sp], #4 + 8007fae: 4770 bx lr -08007f5c : +08007fb0 : * 1 : DMA feature used * @retval HAL status */ HAL_StatusTypeDef USB_WritePacket(const USB_OTG_GlobalTypeDef *USBx, uint8_t *src, uint8_t ch_ep_num, uint16_t len, uint8_t dma) { - 8007f5c: b480 push {r7} - 8007f5e: b089 sub sp, #36 @ 0x24 - 8007f60: af00 add r7, sp, #0 - 8007f62: 60f8 str r0, [r7, #12] - 8007f64: 60b9 str r1, [r7, #8] - 8007f66: 4611 mov r1, r2 - 8007f68: 461a mov r2, r3 - 8007f6a: 460b mov r3, r1 - 8007f6c: 71fb strb r3, [r7, #7] - 8007f6e: 4613 mov r3, r2 - 8007f70: 80bb strh r3, [r7, #4] + 8007fb0: b480 push {r7} + 8007fb2: b089 sub sp, #36 @ 0x24 + 8007fb4: af00 add r7, sp, #0 + 8007fb6: 60f8 str r0, [r7, #12] + 8007fb8: 60b9 str r1, [r7, #8] + 8007fba: 4611 mov r1, r2 + 8007fbc: 461a mov r2, r3 + 8007fbe: 460b mov r3, r1 + 8007fc0: 71fb strb r3, [r7, #7] + 8007fc2: 4613 mov r3, r2 + 8007fc4: 80bb strh r3, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 8007f72: 68fb ldr r3, [r7, #12] - 8007f74: 617b str r3, [r7, #20] + 8007fc6: 68fb ldr r3, [r7, #12] + 8007fc8: 617b str r3, [r7, #20] uint8_t *pSrc = src; - 8007f76: 68bb ldr r3, [r7, #8] - 8007f78: 61fb str r3, [r7, #28] + 8007fca: 68bb ldr r3, [r7, #8] + 8007fcc: 61fb str r3, [r7, #28] uint32_t count32b; uint32_t i; if (dma == 0U) - 8007f7a: f897 3028 ldrb.w r3, [r7, #40] @ 0x28 - 8007f7e: 2b00 cmp r3, #0 - 8007f80: d123 bne.n 8007fca + 8007fce: f897 3028 ldrb.w r3, [r7, #40] @ 0x28 + 8007fd2: 2b00 cmp r3, #0 + 8007fd4: d123 bne.n 800801e { count32b = ((uint32_t)len + 3U) / 4U; - 8007f82: 88bb ldrh r3, [r7, #4] - 8007f84: 3303 adds r3, #3 - 8007f86: 089b lsrs r3, r3, #2 - 8007f88: 613b str r3, [r7, #16] + 8007fd6: 88bb ldrh r3, [r7, #4] + 8007fd8: 3303 adds r3, #3 + 8007fda: 089b lsrs r3, r3, #2 + 8007fdc: 613b str r3, [r7, #16] for (i = 0U; i < count32b; i++) - 8007f8a: 2300 movs r3, #0 - 8007f8c: 61bb str r3, [r7, #24] - 8007f8e: e018 b.n 8007fc2 + 8007fde: 2300 movs r3, #0 + 8007fe0: 61bb str r3, [r7, #24] + 8007fe2: e018 b.n 8008016 { USBx_DFIFO((uint32_t)ch_ep_num) = __UNALIGNED_UINT32_READ(pSrc); - 8007f90: 79fb ldrb r3, [r7, #7] - 8007f92: 031a lsls r2, r3, #12 - 8007f94: 697b ldr r3, [r7, #20] - 8007f96: 4413 add r3, r2 - 8007f98: f503 5380 add.w r3, r3, #4096 @ 0x1000 - 8007f9c: 461a mov r2, r3 - 8007f9e: 69fb ldr r3, [r7, #28] - 8007fa0: 681b ldr r3, [r3, #0] - 8007fa2: 6013 str r3, [r2, #0] + 8007fe4: 79fb ldrb r3, [r7, #7] + 8007fe6: 031a lsls r2, r3, #12 + 8007fe8: 697b ldr r3, [r7, #20] + 8007fea: 4413 add r3, r2 + 8007fec: f503 5380 add.w r3, r3, #4096 @ 0x1000 + 8007ff0: 461a mov r2, r3 + 8007ff2: 69fb ldr r3, [r7, #28] + 8007ff4: 681b ldr r3, [r3, #0] + 8007ff6: 6013 str r3, [r2, #0] pSrc++; - 8007fa4: 69fb ldr r3, [r7, #28] - 8007fa6: 3301 adds r3, #1 - 8007fa8: 61fb str r3, [r7, #28] + 8007ff8: 69fb ldr r3, [r7, #28] + 8007ffa: 3301 adds r3, #1 + 8007ffc: 61fb str r3, [r7, #28] pSrc++; - 8007faa: 69fb ldr r3, [r7, #28] - 8007fac: 3301 adds r3, #1 - 8007fae: 61fb str r3, [r7, #28] + 8007ffe: 69fb ldr r3, [r7, #28] + 8008000: 3301 adds r3, #1 + 8008002: 61fb str r3, [r7, #28] pSrc++; - 8007fb0: 69fb ldr r3, [r7, #28] - 8007fb2: 3301 adds r3, #1 - 8007fb4: 61fb str r3, [r7, #28] + 8008004: 69fb ldr r3, [r7, #28] + 8008006: 3301 adds r3, #1 + 8008008: 61fb str r3, [r7, #28] pSrc++; - 8007fb6: 69fb ldr r3, [r7, #28] - 8007fb8: 3301 adds r3, #1 - 8007fba: 61fb str r3, [r7, #28] + 800800a: 69fb ldr r3, [r7, #28] + 800800c: 3301 adds r3, #1 + 800800e: 61fb str r3, [r7, #28] for (i = 0U; i < count32b; i++) - 8007fbc: 69bb ldr r3, [r7, #24] - 8007fbe: 3301 adds r3, #1 - 8007fc0: 61bb str r3, [r7, #24] - 8007fc2: 69ba ldr r2, [r7, #24] - 8007fc4: 693b ldr r3, [r7, #16] - 8007fc6: 429a cmp r2, r3 - 8007fc8: d3e2 bcc.n 8007f90 + 8008010: 69bb ldr r3, [r7, #24] + 8008012: 3301 adds r3, #1 + 8008014: 61bb str r3, [r7, #24] + 8008016: 69ba ldr r2, [r7, #24] + 8008018: 693b ldr r3, [r7, #16] + 800801a: 429a cmp r2, r3 + 800801c: d3e2 bcc.n 8007fe4 } } return HAL_OK; - 8007fca: 2300 movs r3, #0 + 800801e: 2300 movs r3, #0 } - 8007fcc: 4618 mov r0, r3 - 8007fce: 3724 adds r7, #36 @ 0x24 - 8007fd0: 46bd mov sp, r7 - 8007fd2: f85d 7b04 ldr.w r7, [sp], #4 - 8007fd6: 4770 bx lr + 8008020: 4618 mov r0, r3 + 8008022: 3724 adds r7, #36 @ 0x24 + 8008024: 46bd mov sp, r7 + 8008026: f85d 7b04 ldr.w r7, [sp], #4 + 800802a: 4770 bx lr -08007fd8 : +0800802c : * @param dest source pointer * @param len Number of bytes to read * @retval pointer to destination buffer */ void *USB_ReadPacket(const USB_OTG_GlobalTypeDef *USBx, uint8_t *dest, uint16_t len) { - 8007fd8: b480 push {r7} - 8007fda: b08b sub sp, #44 @ 0x2c - 8007fdc: af00 add r7, sp, #0 - 8007fde: 60f8 str r0, [r7, #12] - 8007fe0: 60b9 str r1, [r7, #8] - 8007fe2: 4613 mov r3, r2 - 8007fe4: 80fb strh r3, [r7, #6] + 800802c: b480 push {r7} + 800802e: b08b sub sp, #44 @ 0x2c + 8008030: af00 add r7, sp, #0 + 8008032: 60f8 str r0, [r7, #12] + 8008034: 60b9 str r1, [r7, #8] + 8008036: 4613 mov r3, r2 + 8008038: 80fb strh r3, [r7, #6] uint32_t USBx_BASE = (uint32_t)USBx; - 8007fe6: 68fb ldr r3, [r7, #12] - 8007fe8: 61bb str r3, [r7, #24] + 800803a: 68fb ldr r3, [r7, #12] + 800803c: 61bb str r3, [r7, #24] uint8_t *pDest = dest; - 8007fea: 68bb ldr r3, [r7, #8] - 8007fec: 627b str r3, [r7, #36] @ 0x24 + 800803e: 68bb ldr r3, [r7, #8] + 8008040: 627b str r3, [r7, #36] @ 0x24 uint32_t pData; uint32_t i; uint32_t count32b = (uint32_t)len >> 2U; - 8007fee: 88fb ldrh r3, [r7, #6] - 8007ff0: 089b lsrs r3, r3, #2 - 8007ff2: b29b uxth r3, r3 - 8007ff4: 617b str r3, [r7, #20] + 8008042: 88fb ldrh r3, [r7, #6] + 8008044: 089b lsrs r3, r3, #2 + 8008046: b29b uxth r3, r3 + 8008048: 617b str r3, [r7, #20] uint16_t remaining_bytes = len % 4U; - 8007ff6: 88fb ldrh r3, [r7, #6] - 8007ff8: f003 0303 and.w r3, r3, #3 - 8007ffc: 83fb strh r3, [r7, #30] + 800804a: 88fb ldrh r3, [r7, #6] + 800804c: f003 0303 and.w r3, r3, #3 + 8008050: 83fb strh r3, [r7, #30] for (i = 0U; i < count32b; i++) - 8007ffe: 2300 movs r3, #0 - 8008000: 623b str r3, [r7, #32] - 8008002: e014 b.n 800802e + 8008052: 2300 movs r3, #0 + 8008054: 623b str r3, [r7, #32] + 8008056: e014 b.n 8008082 { __UNALIGNED_UINT32_WRITE(pDest, USBx_DFIFO(0U)); - 8008004: 69bb ldr r3, [r7, #24] - 8008006: f503 5380 add.w r3, r3, #4096 @ 0x1000 - 800800a: 681a ldr r2, [r3, #0] - 800800c: 6a7b ldr r3, [r7, #36] @ 0x24 - 800800e: 601a str r2, [r3, #0] + 8008058: 69bb ldr r3, [r7, #24] + 800805a: f503 5380 add.w r3, r3, #4096 @ 0x1000 + 800805e: 681a ldr r2, [r3, #0] + 8008060: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008062: 601a str r2, [r3, #0] pDest++; - 8008010: 6a7b ldr r3, [r7, #36] @ 0x24 - 8008012: 3301 adds r3, #1 - 8008014: 627b str r3, [r7, #36] @ 0x24 + 8008064: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008066: 3301 adds r3, #1 + 8008068: 627b str r3, [r7, #36] @ 0x24 pDest++; - 8008016: 6a7b ldr r3, [r7, #36] @ 0x24 - 8008018: 3301 adds r3, #1 - 800801a: 627b str r3, [r7, #36] @ 0x24 + 800806a: 6a7b ldr r3, [r7, #36] @ 0x24 + 800806c: 3301 adds r3, #1 + 800806e: 627b str r3, [r7, #36] @ 0x24 pDest++; - 800801c: 6a7b ldr r3, [r7, #36] @ 0x24 - 800801e: 3301 adds r3, #1 - 8008020: 627b str r3, [r7, #36] @ 0x24 + 8008070: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008072: 3301 adds r3, #1 + 8008074: 627b str r3, [r7, #36] @ 0x24 pDest++; - 8008022: 6a7b ldr r3, [r7, #36] @ 0x24 - 8008024: 3301 adds r3, #1 - 8008026: 627b str r3, [r7, #36] @ 0x24 + 8008076: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008078: 3301 adds r3, #1 + 800807a: 627b str r3, [r7, #36] @ 0x24 for (i = 0U; i < count32b; i++) - 8008028: 6a3b ldr r3, [r7, #32] - 800802a: 3301 adds r3, #1 - 800802c: 623b str r3, [r7, #32] - 800802e: 6a3a ldr r2, [r7, #32] - 8008030: 697b ldr r3, [r7, #20] - 8008032: 429a cmp r2, r3 - 8008034: d3e6 bcc.n 8008004 + 800807c: 6a3b ldr r3, [r7, #32] + 800807e: 3301 adds r3, #1 + 8008080: 623b str r3, [r7, #32] + 8008082: 6a3a ldr r2, [r7, #32] + 8008084: 697b ldr r3, [r7, #20] + 8008086: 429a cmp r2, r3 + 8008088: d3e6 bcc.n 8008058 } /* When Number of data is not word aligned, read the remaining byte */ if (remaining_bytes != 0U) - 8008036: 8bfb ldrh r3, [r7, #30] - 8008038: 2b00 cmp r3, #0 - 800803a: d01e beq.n 800807a + 800808a: 8bfb ldrh r3, [r7, #30] + 800808c: 2b00 cmp r3, #0 + 800808e: d01e beq.n 80080ce { i = 0U; - 800803c: 2300 movs r3, #0 - 800803e: 623b str r3, [r7, #32] + 8008090: 2300 movs r3, #0 + 8008092: 623b str r3, [r7, #32] __UNALIGNED_UINT32_WRITE(&pData, USBx_DFIFO(0U)); - 8008040: 69bb ldr r3, [r7, #24] - 8008042: f503 5380 add.w r3, r3, #4096 @ 0x1000 - 8008046: 461a mov r2, r3 - 8008048: f107 0310 add.w r3, r7, #16 - 800804c: 6812 ldr r2, [r2, #0] - 800804e: 601a str r2, [r3, #0] + 8008094: 69bb ldr r3, [r7, #24] + 8008096: f503 5380 add.w r3, r3, #4096 @ 0x1000 + 800809a: 461a mov r2, r3 + 800809c: f107 0310 add.w r3, r7, #16 + 80080a0: 6812 ldr r2, [r2, #0] + 80080a2: 601a str r2, [r3, #0] do { *(uint8_t *)pDest = (uint8_t)(pData >> (8U * (uint8_t)(i))); - 8008050: 693a ldr r2, [r7, #16] - 8008052: 6a3b ldr r3, [r7, #32] - 8008054: b2db uxtb r3, r3 - 8008056: 00db lsls r3, r3, #3 - 8008058: fa22 f303 lsr.w r3, r2, r3 - 800805c: b2da uxtb r2, r3 - 800805e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8008060: 701a strb r2, [r3, #0] + 80080a4: 693a ldr r2, [r7, #16] + 80080a6: 6a3b ldr r3, [r7, #32] + 80080a8: b2db uxtb r3, r3 + 80080aa: 00db lsls r3, r3, #3 + 80080ac: fa22 f303 lsr.w r3, r2, r3 + 80080b0: b2da uxtb r2, r3 + 80080b2: 6a7b ldr r3, [r7, #36] @ 0x24 + 80080b4: 701a strb r2, [r3, #0] i++; - 8008062: 6a3b ldr r3, [r7, #32] - 8008064: 3301 adds r3, #1 - 8008066: 623b str r3, [r7, #32] + 80080b6: 6a3b ldr r3, [r7, #32] + 80080b8: 3301 adds r3, #1 + 80080ba: 623b str r3, [r7, #32] pDest++; - 8008068: 6a7b ldr r3, [r7, #36] @ 0x24 - 800806a: 3301 adds r3, #1 - 800806c: 627b str r3, [r7, #36] @ 0x24 + 80080bc: 6a7b ldr r3, [r7, #36] @ 0x24 + 80080be: 3301 adds r3, #1 + 80080c0: 627b str r3, [r7, #36] @ 0x24 remaining_bytes--; - 800806e: 8bfb ldrh r3, [r7, #30] - 8008070: 3b01 subs r3, #1 - 8008072: 83fb strh r3, [r7, #30] + 80080c2: 8bfb ldrh r3, [r7, #30] + 80080c4: 3b01 subs r3, #1 + 80080c6: 83fb strh r3, [r7, #30] } while (remaining_bytes != 0U); - 8008074: 8bfb ldrh r3, [r7, #30] - 8008076: 2b00 cmp r3, #0 - 8008078: d1ea bne.n 8008050 + 80080c8: 8bfb ldrh r3, [r7, #30] + 80080ca: 2b00 cmp r3, #0 + 80080cc: d1ea bne.n 80080a4 } return ((void *)pDest); - 800807a: 6a7b ldr r3, [r7, #36] @ 0x24 + 80080ce: 6a7b ldr r3, [r7, #36] @ 0x24 } - 800807c: 4618 mov r0, r3 - 800807e: 372c adds r7, #44 @ 0x2c - 8008080: 46bd mov sp, r7 - 8008082: f85d 7b04 ldr.w r7, [sp], #4 - 8008086: 4770 bx lr + 80080d0: 4618 mov r0, r3 + 80080d2: 372c adds r7, #44 @ 0x2c + 80080d4: 46bd mov sp, r7 + 80080d6: f85d 7b04 ldr.w r7, [sp], #4 + 80080da: 4770 bx lr -08008088 : +080080dc : * @param USBx Selected device * @param ep pointer to endpoint structure * @retval HAL status */ HAL_StatusTypeDef USB_EPSetStall(const USB_OTG_GlobalTypeDef *USBx, const USB_OTG_EPTypeDef *ep) { - 8008088: b480 push {r7} - 800808a: b085 sub sp, #20 - 800808c: af00 add r7, sp, #0 - 800808e: 6078 str r0, [r7, #4] - 8008090: 6039 str r1, [r7, #0] + 80080dc: b480 push {r7} + 80080de: b085 sub sp, #20 + 80080e0: af00 add r7, sp, #0 + 80080e2: 6078 str r0, [r7, #4] + 80080e4: 6039 str r1, [r7, #0] uint32_t USBx_BASE = (uint32_t)USBx; - 8008092: 687b ldr r3, [r7, #4] - 8008094: 60fb str r3, [r7, #12] + 80080e6: 687b ldr r3, [r7, #4] + 80080e8: 60fb str r3, [r7, #12] uint32_t epnum = (uint32_t)ep->num; - 8008096: 683b ldr r3, [r7, #0] - 8008098: 781b ldrb r3, [r3, #0] - 800809a: 60bb str r3, [r7, #8] + 80080ea: 683b ldr r3, [r7, #0] + 80080ec: 781b ldrb r3, [r3, #0] + 80080ee: 60bb str r3, [r7, #8] if (ep->is_in == 1U) - 800809c: 683b ldr r3, [r7, #0] - 800809e: 785b ldrb r3, [r3, #1] - 80080a0: 2b01 cmp r3, #1 - 80080a2: d12c bne.n 80080fe + 80080f0: 683b ldr r3, [r7, #0] + 80080f2: 785b ldrb r3, [r3, #1] + 80080f4: 2b01 cmp r3, #1 + 80080f6: d12c bne.n 8008152 { if (((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == 0U) && (epnum != 0U)) - 80080a4: 68bb ldr r3, [r7, #8] - 80080a6: 015a lsls r2, r3, #5 - 80080a8: 68fb ldr r3, [r7, #12] - 80080aa: 4413 add r3, r2 - 80080ac: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80080b0: 681b ldr r3, [r3, #0] - 80080b2: 2b00 cmp r3, #0 - 80080b4: db12 blt.n 80080dc - 80080b6: 68bb ldr r3, [r7, #8] - 80080b8: 2b00 cmp r3, #0 - 80080ba: d00f beq.n 80080dc + 80080f8: 68bb ldr r3, [r7, #8] + 80080fa: 015a lsls r2, r3, #5 + 80080fc: 68fb ldr r3, [r7, #12] + 80080fe: 4413 add r3, r2 + 8008100: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008104: 681b ldr r3, [r3, #0] + 8008106: 2b00 cmp r3, #0 + 8008108: db12 blt.n 8008130 + 800810a: 68bb ldr r3, [r7, #8] + 800810c: 2b00 cmp r3, #0 + 800810e: d00f beq.n 8008130 { USBx_INEP(epnum)->DIEPCTL &= ~(USB_OTG_DIEPCTL_EPDIS); - 80080bc: 68bb ldr r3, [r7, #8] - 80080be: 015a lsls r2, r3, #5 - 80080c0: 68fb ldr r3, [r7, #12] - 80080c2: 4413 add r3, r2 - 80080c4: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80080c8: 681b ldr r3, [r3, #0] - 80080ca: 68ba ldr r2, [r7, #8] - 80080cc: 0151 lsls r1, r2, #5 - 80080ce: 68fa ldr r2, [r7, #12] - 80080d0: 440a add r2, r1 - 80080d2: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80080d6: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000 - 80080da: 6013 str r3, [r2, #0] + 8008110: 68bb ldr r3, [r7, #8] + 8008112: 015a lsls r2, r3, #5 + 8008114: 68fb ldr r3, [r7, #12] + 8008116: 4413 add r3, r2 + 8008118: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800811c: 681b ldr r3, [r3, #0] + 800811e: 68ba ldr r2, [r7, #8] + 8008120: 0151 lsls r1, r2, #5 + 8008122: 68fa ldr r2, [r7, #12] + 8008124: 440a add r2, r1 + 8008126: f502 6210 add.w r2, r2, #2304 @ 0x900 + 800812a: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000 + 800812e: 6013 str r3, [r2, #0] } USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_STALL; - 80080dc: 68bb ldr r3, [r7, #8] - 80080de: 015a lsls r2, r3, #5 - 80080e0: 68fb ldr r3, [r7, #12] - 80080e2: 4413 add r3, r2 - 80080e4: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80080e8: 681b ldr r3, [r3, #0] - 80080ea: 68ba ldr r2, [r7, #8] - 80080ec: 0151 lsls r1, r2, #5 - 80080ee: 68fa ldr r2, [r7, #12] - 80080f0: 440a add r2, r1 - 80080f2: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80080f6: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 - 80080fa: 6013 str r3, [r2, #0] - 80080fc: e02b b.n 8008156 + 8008130: 68bb ldr r3, [r7, #8] + 8008132: 015a lsls r2, r3, #5 + 8008134: 68fb ldr r3, [r7, #12] + 8008136: 4413 add r3, r2 + 8008138: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800813c: 681b ldr r3, [r3, #0] + 800813e: 68ba ldr r2, [r7, #8] + 8008140: 0151 lsls r1, r2, #5 + 8008142: 68fa ldr r2, [r7, #12] + 8008144: 440a add r2, r1 + 8008146: f502 6210 add.w r2, r2, #2304 @ 0x900 + 800814a: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 + 800814e: 6013 str r3, [r2, #0] + 8008150: e02b b.n 80081aa } else { if (((USBx_OUTEP(epnum)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == 0U) && (epnum != 0U)) - 80080fe: 68bb ldr r3, [r7, #8] - 8008100: 015a lsls r2, r3, #5 - 8008102: 68fb ldr r3, [r7, #12] - 8008104: 4413 add r3, r2 - 8008106: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800810a: 681b ldr r3, [r3, #0] - 800810c: 2b00 cmp r3, #0 - 800810e: db12 blt.n 8008136 - 8008110: 68bb ldr r3, [r7, #8] - 8008112: 2b00 cmp r3, #0 - 8008114: d00f beq.n 8008136 + 8008152: 68bb ldr r3, [r7, #8] + 8008154: 015a lsls r2, r3, #5 + 8008156: 68fb ldr r3, [r7, #12] + 8008158: 4413 add r3, r2 + 800815a: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800815e: 681b ldr r3, [r3, #0] + 8008160: 2b00 cmp r3, #0 + 8008162: db12 blt.n 800818a + 8008164: 68bb ldr r3, [r7, #8] + 8008166: 2b00 cmp r3, #0 + 8008168: d00f beq.n 800818a { USBx_OUTEP(epnum)->DOEPCTL &= ~(USB_OTG_DOEPCTL_EPDIS); - 8008116: 68bb ldr r3, [r7, #8] - 8008118: 015a lsls r2, r3, #5 - 800811a: 68fb ldr r3, [r7, #12] - 800811c: 4413 add r3, r2 - 800811e: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008122: 681b ldr r3, [r3, #0] - 8008124: 68ba ldr r2, [r7, #8] - 8008126: 0151 lsls r1, r2, #5 - 8008128: 68fa ldr r2, [r7, #12] - 800812a: 440a add r2, r1 - 800812c: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008130: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000 - 8008134: 6013 str r3, [r2, #0] + 800816a: 68bb ldr r3, [r7, #8] + 800816c: 015a lsls r2, r3, #5 + 800816e: 68fb ldr r3, [r7, #12] + 8008170: 4413 add r3, r2 + 8008172: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008176: 681b ldr r3, [r3, #0] + 8008178: 68ba ldr r2, [r7, #8] + 800817a: 0151 lsls r1, r2, #5 + 800817c: 68fa ldr r2, [r7, #12] + 800817e: 440a add r2, r1 + 8008180: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008184: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000 + 8008188: 6013 str r3, [r2, #0] } USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_STALL; - 8008136: 68bb ldr r3, [r7, #8] - 8008138: 015a lsls r2, r3, #5 - 800813a: 68fb ldr r3, [r7, #12] - 800813c: 4413 add r3, r2 - 800813e: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008142: 681b ldr r3, [r3, #0] - 8008144: 68ba ldr r2, [r7, #8] - 8008146: 0151 lsls r1, r2, #5 - 8008148: 68fa ldr r2, [r7, #12] - 800814a: 440a add r2, r1 - 800814c: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008150: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 - 8008154: 6013 str r3, [r2, #0] + 800818a: 68bb ldr r3, [r7, #8] + 800818c: 015a lsls r2, r3, #5 + 800818e: 68fb ldr r3, [r7, #12] + 8008190: 4413 add r3, r2 + 8008192: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008196: 681b ldr r3, [r3, #0] + 8008198: 68ba ldr r2, [r7, #8] + 800819a: 0151 lsls r1, r2, #5 + 800819c: 68fa ldr r2, [r7, #12] + 800819e: 440a add r2, r1 + 80081a0: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80081a4: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 + 80081a8: 6013 str r3, [r2, #0] } return HAL_OK; - 8008156: 2300 movs r3, #0 + 80081aa: 2300 movs r3, #0 } - 8008158: 4618 mov r0, r3 - 800815a: 3714 adds r7, #20 - 800815c: 46bd mov sp, r7 - 800815e: f85d 7b04 ldr.w r7, [sp], #4 - 8008162: 4770 bx lr + 80081ac: 4618 mov r0, r3 + 80081ae: 3714 adds r7, #20 + 80081b0: 46bd mov sp, r7 + 80081b2: f85d 7b04 ldr.w r7, [sp], #4 + 80081b6: 4770 bx lr -08008164 : +080081b8 : * @param USBx Selected device * @param ep pointer to endpoint structure * @retval HAL status */ HAL_StatusTypeDef USB_EPClearStall(const USB_OTG_GlobalTypeDef *USBx, const USB_OTG_EPTypeDef *ep) { - 8008164: b480 push {r7} - 8008166: b085 sub sp, #20 - 8008168: af00 add r7, sp, #0 - 800816a: 6078 str r0, [r7, #4] - 800816c: 6039 str r1, [r7, #0] + 80081b8: b480 push {r7} + 80081ba: b085 sub sp, #20 + 80081bc: af00 add r7, sp, #0 + 80081be: 6078 str r0, [r7, #4] + 80081c0: 6039 str r1, [r7, #0] uint32_t USBx_BASE = (uint32_t)USBx; - 800816e: 687b ldr r3, [r7, #4] - 8008170: 60fb str r3, [r7, #12] + 80081c2: 687b ldr r3, [r7, #4] + 80081c4: 60fb str r3, [r7, #12] uint32_t epnum = (uint32_t)ep->num; - 8008172: 683b ldr r3, [r7, #0] - 8008174: 781b ldrb r3, [r3, #0] - 8008176: 60bb str r3, [r7, #8] + 80081c6: 683b ldr r3, [r7, #0] + 80081c8: 781b ldrb r3, [r3, #0] + 80081ca: 60bb str r3, [r7, #8] if (ep->is_in == 1U) - 8008178: 683b ldr r3, [r7, #0] - 800817a: 785b ldrb r3, [r3, #1] - 800817c: 2b01 cmp r3, #1 - 800817e: d128 bne.n 80081d2 + 80081cc: 683b ldr r3, [r7, #0] + 80081ce: 785b ldrb r3, [r3, #1] + 80081d0: 2b01 cmp r3, #1 + 80081d2: d128 bne.n 8008226 { USBx_INEP(epnum)->DIEPCTL &= ~USB_OTG_DIEPCTL_STALL; - 8008180: 68bb ldr r3, [r7, #8] - 8008182: 015a lsls r2, r3, #5 - 8008184: 68fb ldr r3, [r7, #12] - 8008186: 4413 add r3, r2 - 8008188: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800818c: 681b ldr r3, [r3, #0] - 800818e: 68ba ldr r2, [r7, #8] - 8008190: 0151 lsls r1, r2, #5 - 8008192: 68fa ldr r2, [r7, #12] - 8008194: 440a add r2, r1 - 8008196: f502 6210 add.w r2, r2, #2304 @ 0x900 - 800819a: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 - 800819e: 6013 str r3, [r2, #0] + 80081d4: 68bb ldr r3, [r7, #8] + 80081d6: 015a lsls r2, r3, #5 + 80081d8: 68fb ldr r3, [r7, #12] + 80081da: 4413 add r3, r2 + 80081dc: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80081e0: 681b ldr r3, [r3, #0] + 80081e2: 68ba ldr r2, [r7, #8] + 80081e4: 0151 lsls r1, r2, #5 + 80081e6: 68fa ldr r2, [r7, #12] + 80081e8: 440a add r2, r1 + 80081ea: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80081ee: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 + 80081f2: 6013 str r3, [r2, #0] if ((ep->type == EP_TYPE_INTR) || (ep->type == EP_TYPE_BULK)) - 80081a0: 683b ldr r3, [r7, #0] - 80081a2: 791b ldrb r3, [r3, #4] - 80081a4: 2b03 cmp r3, #3 - 80081a6: d003 beq.n 80081b0 - 80081a8: 683b ldr r3, [r7, #0] - 80081aa: 791b ldrb r3, [r3, #4] - 80081ac: 2b02 cmp r3, #2 - 80081ae: d138 bne.n 8008222 + 80081f4: 683b ldr r3, [r7, #0] + 80081f6: 791b ldrb r3, [r3, #4] + 80081f8: 2b03 cmp r3, #3 + 80081fa: d003 beq.n 8008204 + 80081fc: 683b ldr r3, [r7, #0] + 80081fe: 791b ldrb r3, [r3, #4] + 8008200: 2b02 cmp r3, #2 + 8008202: d138 bne.n 8008276 { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM; /* DATA0 */ - 80081b0: 68bb ldr r3, [r7, #8] - 80081b2: 015a lsls r2, r3, #5 - 80081b4: 68fb ldr r3, [r7, #12] - 80081b6: 4413 add r3, r2 - 80081b8: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80081bc: 681b ldr r3, [r3, #0] - 80081be: 68ba ldr r2, [r7, #8] - 80081c0: 0151 lsls r1, r2, #5 - 80081c2: 68fa ldr r2, [r7, #12] - 80081c4: 440a add r2, r1 - 80081c6: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80081ca: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 80081ce: 6013 str r3, [r2, #0] - 80081d0: e027 b.n 8008222 + 8008204: 68bb ldr r3, [r7, #8] + 8008206: 015a lsls r2, r3, #5 + 8008208: 68fb ldr r3, [r7, #12] + 800820a: 4413 add r3, r2 + 800820c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008210: 681b ldr r3, [r3, #0] + 8008212: 68ba ldr r2, [r7, #8] + 8008214: 0151 lsls r1, r2, #5 + 8008216: 68fa ldr r2, [r7, #12] + 8008218: 440a add r2, r1 + 800821a: f502 6210 add.w r2, r2, #2304 @ 0x900 + 800821e: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8008222: 6013 str r3, [r2, #0] + 8008224: e027 b.n 8008276 } } else { USBx_OUTEP(epnum)->DOEPCTL &= ~USB_OTG_DOEPCTL_STALL; - 80081d2: 68bb ldr r3, [r7, #8] - 80081d4: 015a lsls r2, r3, #5 - 80081d6: 68fb ldr r3, [r7, #12] - 80081d8: 4413 add r3, r2 - 80081da: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80081de: 681b ldr r3, [r3, #0] - 80081e0: 68ba ldr r2, [r7, #8] - 80081e2: 0151 lsls r1, r2, #5 - 80081e4: 68fa ldr r2, [r7, #12] - 80081e6: 440a add r2, r1 - 80081e8: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 80081ec: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 - 80081f0: 6013 str r3, [r2, #0] + 8008226: 68bb ldr r3, [r7, #8] + 8008228: 015a lsls r2, r3, #5 + 800822a: 68fb ldr r3, [r7, #12] + 800822c: 4413 add r3, r2 + 800822e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008232: 681b ldr r3, [r3, #0] + 8008234: 68ba ldr r2, [r7, #8] + 8008236: 0151 lsls r1, r2, #5 + 8008238: 68fa ldr r2, [r7, #12] + 800823a: 440a add r2, r1 + 800823c: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008240: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 + 8008244: 6013 str r3, [r2, #0] if ((ep->type == EP_TYPE_INTR) || (ep->type == EP_TYPE_BULK)) - 80081f2: 683b ldr r3, [r7, #0] - 80081f4: 791b ldrb r3, [r3, #4] - 80081f6: 2b03 cmp r3, #3 - 80081f8: d003 beq.n 8008202 - 80081fa: 683b ldr r3, [r7, #0] - 80081fc: 791b ldrb r3, [r3, #4] - 80081fe: 2b02 cmp r3, #2 - 8008200: d10f bne.n 8008222 + 8008246: 683b ldr r3, [r7, #0] + 8008248: 791b ldrb r3, [r3, #4] + 800824a: 2b03 cmp r3, #3 + 800824c: d003 beq.n 8008256 + 800824e: 683b ldr r3, [r7, #0] + 8008250: 791b ldrb r3, [r3, #4] + 8008252: 2b02 cmp r3, #2 + 8008254: d10f bne.n 8008276 { USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SD0PID_SEVNFRM; /* DATA0 */ - 8008202: 68bb ldr r3, [r7, #8] - 8008204: 015a lsls r2, r3, #5 - 8008206: 68fb ldr r3, [r7, #12] - 8008208: 4413 add r3, r2 - 800820a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800820e: 681b ldr r3, [r3, #0] - 8008210: 68ba ldr r2, [r7, #8] - 8008212: 0151 lsls r1, r2, #5 - 8008214: 68fa ldr r2, [r7, #12] - 8008216: 440a add r2, r1 - 8008218: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 800821c: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8008220: 6013 str r3, [r2, #0] + 8008256: 68bb ldr r3, [r7, #8] + 8008258: 015a lsls r2, r3, #5 + 800825a: 68fb ldr r3, [r7, #12] + 800825c: 4413 add r3, r2 + 800825e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008262: 681b ldr r3, [r3, #0] + 8008264: 68ba ldr r2, [r7, #8] + 8008266: 0151 lsls r1, r2, #5 + 8008268: 68fa ldr r2, [r7, #12] + 800826a: 440a add r2, r1 + 800826c: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008270: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8008274: 6013 str r3, [r2, #0] } } return HAL_OK; - 8008222: 2300 movs r3, #0 + 8008276: 2300 movs r3, #0 } - 8008224: 4618 mov r0, r3 - 8008226: 3714 adds r7, #20 - 8008228: 46bd mov sp, r7 - 800822a: f85d 7b04 ldr.w r7, [sp], #4 - 800822e: 4770 bx lr + 8008278: 4618 mov r0, r3 + 800827a: 3714 adds r7, #20 + 800827c: 46bd mov sp, r7 + 800827e: f85d 7b04 ldr.w r7, [sp], #4 + 8008282: 4770 bx lr -08008230 : +08008284 : * @param address new device address to be assigned * This parameter can be a value from 0 to 255 * @retval HAL status */ HAL_StatusTypeDef USB_SetDevAddress(const USB_OTG_GlobalTypeDef *USBx, uint8_t address) { - 8008230: b480 push {r7} - 8008232: b085 sub sp, #20 - 8008234: af00 add r7, sp, #0 - 8008236: 6078 str r0, [r7, #4] - 8008238: 460b mov r3, r1 - 800823a: 70fb strb r3, [r7, #3] + 8008284: b480 push {r7} + 8008286: b085 sub sp, #20 + 8008288: af00 add r7, sp, #0 + 800828a: 6078 str r0, [r7, #4] + 800828c: 460b mov r3, r1 + 800828e: 70fb strb r3, [r7, #3] uint32_t USBx_BASE = (uint32_t)USBx; - 800823c: 687b ldr r3, [r7, #4] - 800823e: 60fb str r3, [r7, #12] + 8008290: 687b ldr r3, [r7, #4] + 8008292: 60fb str r3, [r7, #12] USBx_DEVICE->DCFG &= ~(USB_OTG_DCFG_DAD); - 8008240: 68fb ldr r3, [r7, #12] - 8008242: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008246: 681b ldr r3, [r3, #0] - 8008248: 68fa ldr r2, [r7, #12] - 800824a: f502 6200 add.w r2, r2, #2048 @ 0x800 - 800824e: f423 63fe bic.w r3, r3, #2032 @ 0x7f0 - 8008252: 6013 str r3, [r2, #0] + 8008294: 68fb ldr r3, [r7, #12] + 8008296: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800829a: 681b ldr r3, [r3, #0] + 800829c: 68fa ldr r2, [r7, #12] + 800829e: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80082a2: f423 63fe bic.w r3, r3, #2032 @ 0x7f0 + 80082a6: 6013 str r3, [r2, #0] USBx_DEVICE->DCFG |= ((uint32_t)address << 4) & USB_OTG_DCFG_DAD; - 8008254: 68fb ldr r3, [r7, #12] - 8008256: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800825a: 681a ldr r2, [r3, #0] - 800825c: 78fb ldrb r3, [r7, #3] - 800825e: 011b lsls r3, r3, #4 - 8008260: f403 63fe and.w r3, r3, #2032 @ 0x7f0 - 8008264: 68f9 ldr r1, [r7, #12] - 8008266: f501 6100 add.w r1, r1, #2048 @ 0x800 - 800826a: 4313 orrs r3, r2 - 800826c: 600b str r3, [r1, #0] + 80082a8: 68fb ldr r3, [r7, #12] + 80082aa: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80082ae: 681a ldr r2, [r3, #0] + 80082b0: 78fb ldrb r3, [r7, #3] + 80082b2: 011b lsls r3, r3, #4 + 80082b4: f403 63fe and.w r3, r3, #2032 @ 0x7f0 + 80082b8: 68f9 ldr r1, [r7, #12] + 80082ba: f501 6100 add.w r1, r1, #2048 @ 0x800 + 80082be: 4313 orrs r3, r2 + 80082c0: 600b str r3, [r1, #0] return HAL_OK; - 800826e: 2300 movs r3, #0 + 80082c2: 2300 movs r3, #0 } - 8008270: 4618 mov r0, r3 - 8008272: 3714 adds r7, #20 - 8008274: 46bd mov sp, r7 - 8008276: f85d 7b04 ldr.w r7, [sp], #4 - 800827a: 4770 bx lr + 80082c4: 4618 mov r0, r3 + 80082c6: 3714 adds r7, #20 + 80082c8: 46bd mov sp, r7 + 80082ca: f85d 7b04 ldr.w r7, [sp], #4 + 80082ce: 4770 bx lr -0800827c : +080082d0 : * @brief USB_DevConnect : Connect the USB device by enabling Rpu * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_DevConnect(const USB_OTG_GlobalTypeDef *USBx) { - 800827c: b480 push {r7} - 800827e: b085 sub sp, #20 - 8008280: af00 add r7, sp, #0 - 8008282: 6078 str r0, [r7, #4] + 80082d0: b480 push {r7} + 80082d2: b085 sub sp, #20 + 80082d4: af00 add r7, sp, #0 + 80082d6: 6078 str r0, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 8008284: 687b ldr r3, [r7, #4] - 8008286: 60fb str r3, [r7, #12] + 80082d8: 687b ldr r3, [r7, #4] + 80082da: 60fb str r3, [r7, #12] /* In case phy is stopped, ensure to ungate and restore the phy CLK */ USBx_PCGCCTL &= ~(USB_OTG_PCGCCTL_STOPCLK | USB_OTG_PCGCCTL_GATECLK); - 8008288: 68fb ldr r3, [r7, #12] - 800828a: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 800828e: 681b ldr r3, [r3, #0] - 8008290: 68fa ldr r2, [r7, #12] - 8008292: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 8008296: f023 0303 bic.w r3, r3, #3 - 800829a: 6013 str r3, [r2, #0] + 80082dc: 68fb ldr r3, [r7, #12] + 80082de: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 80082e2: 681b ldr r3, [r3, #0] + 80082e4: 68fa ldr r2, [r7, #12] + 80082e6: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 80082ea: f023 0303 bic.w r3, r3, #3 + 80082ee: 6013 str r3, [r2, #0] USBx_DEVICE->DCTL &= ~USB_OTG_DCTL_SDIS; - 800829c: 68fb ldr r3, [r7, #12] - 800829e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80082a2: 685b ldr r3, [r3, #4] - 80082a4: 68fa ldr r2, [r7, #12] - 80082a6: f502 6200 add.w r2, r2, #2048 @ 0x800 - 80082aa: f023 0302 bic.w r3, r3, #2 - 80082ae: 6053 str r3, [r2, #4] + 80082f0: 68fb ldr r3, [r7, #12] + 80082f2: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80082f6: 685b ldr r3, [r3, #4] + 80082f8: 68fa ldr r2, [r7, #12] + 80082fa: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80082fe: f023 0302 bic.w r3, r3, #2 + 8008302: 6053 str r3, [r2, #4] return HAL_OK; - 80082b0: 2300 movs r3, #0 + 8008304: 2300 movs r3, #0 } - 80082b2: 4618 mov r0, r3 - 80082b4: 3714 adds r7, #20 - 80082b6: 46bd mov sp, r7 - 80082b8: f85d 7b04 ldr.w r7, [sp], #4 - 80082bc: 4770 bx lr + 8008306: 4618 mov r0, r3 + 8008308: 3714 adds r7, #20 + 800830a: 46bd mov sp, r7 + 800830c: f85d 7b04 ldr.w r7, [sp], #4 + 8008310: 4770 bx lr -080082be : +08008312 : * @brief USB_DevDisconnect : Disconnect the USB device by disabling Rpu * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_DevDisconnect(const USB_OTG_GlobalTypeDef *USBx) { - 80082be: b480 push {r7} - 80082c0: b085 sub sp, #20 - 80082c2: af00 add r7, sp, #0 - 80082c4: 6078 str r0, [r7, #4] + 8008312: b480 push {r7} + 8008314: b085 sub sp, #20 + 8008316: af00 add r7, sp, #0 + 8008318: 6078 str r0, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 80082c6: 687b ldr r3, [r7, #4] - 80082c8: 60fb str r3, [r7, #12] + 800831a: 687b ldr r3, [r7, #4] + 800831c: 60fb str r3, [r7, #12] /* In case phy is stopped, ensure to ungate and restore the phy CLK */ USBx_PCGCCTL &= ~(USB_OTG_PCGCCTL_STOPCLK | USB_OTG_PCGCCTL_GATECLK); - 80082ca: 68fb ldr r3, [r7, #12] - 80082cc: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 80082d0: 681b ldr r3, [r3, #0] - 80082d2: 68fa ldr r2, [r7, #12] - 80082d4: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 80082d8: f023 0303 bic.w r3, r3, #3 - 80082dc: 6013 str r3, [r2, #0] + 800831e: 68fb ldr r3, [r7, #12] + 8008320: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 8008324: 681b ldr r3, [r3, #0] + 8008326: 68fa ldr r2, [r7, #12] + 8008328: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 800832c: f023 0303 bic.w r3, r3, #3 + 8008330: 6013 str r3, [r2, #0] USBx_DEVICE->DCTL |= USB_OTG_DCTL_SDIS; - 80082de: 68fb ldr r3, [r7, #12] - 80082e0: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80082e4: 685b ldr r3, [r3, #4] - 80082e6: 68fa ldr r2, [r7, #12] - 80082e8: f502 6200 add.w r2, r2, #2048 @ 0x800 - 80082ec: f043 0302 orr.w r3, r3, #2 - 80082f0: 6053 str r3, [r2, #4] + 8008332: 68fb ldr r3, [r7, #12] + 8008334: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008338: 685b ldr r3, [r3, #4] + 800833a: 68fa ldr r2, [r7, #12] + 800833c: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8008340: f043 0302 orr.w r3, r3, #2 + 8008344: 6053 str r3, [r2, #4] return HAL_OK; - 80082f2: 2300 movs r3, #0 + 8008346: 2300 movs r3, #0 } - 80082f4: 4618 mov r0, r3 - 80082f6: 3714 adds r7, #20 - 80082f8: 46bd mov sp, r7 - 80082fa: f85d 7b04 ldr.w r7, [sp], #4 - 80082fe: 4770 bx lr + 8008348: 4618 mov r0, r3 + 800834a: 3714 adds r7, #20 + 800834c: 46bd mov sp, r7 + 800834e: f85d 7b04 ldr.w r7, [sp], #4 + 8008352: 4770 bx lr -08008300 : +08008354 : * @brief USB_ReadInterrupts: return the global USB interrupt status * @param USBx Selected device * @retval USB Global Interrupt status */ uint32_t USB_ReadInterrupts(USB_OTG_GlobalTypeDef const *USBx) { - 8008300: b480 push {r7} - 8008302: b085 sub sp, #20 - 8008304: af00 add r7, sp, #0 - 8008306: 6078 str r0, [r7, #4] + 8008354: b480 push {r7} + 8008356: b085 sub sp, #20 + 8008358: af00 add r7, sp, #0 + 800835a: 6078 str r0, [r7, #4] uint32_t tmpreg; tmpreg = USBx->GINTSTS; - 8008308: 687b ldr r3, [r7, #4] - 800830a: 695b ldr r3, [r3, #20] - 800830c: 60fb str r3, [r7, #12] + 800835c: 687b ldr r3, [r7, #4] + 800835e: 695b ldr r3, [r3, #20] + 8008360: 60fb str r3, [r7, #12] tmpreg &= USBx->GINTMSK; - 800830e: 687b ldr r3, [r7, #4] - 8008310: 699b ldr r3, [r3, #24] - 8008312: 68fa ldr r2, [r7, #12] - 8008314: 4013 ands r3, r2 - 8008316: 60fb str r3, [r7, #12] + 8008362: 687b ldr r3, [r7, #4] + 8008364: 699b ldr r3, [r3, #24] + 8008366: 68fa ldr r2, [r7, #12] + 8008368: 4013 ands r3, r2 + 800836a: 60fb str r3, [r7, #12] return tmpreg; - 8008318: 68fb ldr r3, [r7, #12] + 800836c: 68fb ldr r3, [r7, #12] } - 800831a: 4618 mov r0, r3 - 800831c: 3714 adds r7, #20 - 800831e: 46bd mov sp, r7 - 8008320: f85d 7b04 ldr.w r7, [sp], #4 - 8008324: 4770 bx lr + 800836e: 4618 mov r0, r3 + 8008370: 3714 adds r7, #20 + 8008372: 46bd mov sp, r7 + 8008374: f85d 7b04 ldr.w r7, [sp], #4 + 8008378: 4770 bx lr -08008326 : +0800837a : * @brief USB_ReadDevAllOutEpInterrupt: return the USB device OUT endpoints interrupt status * @param USBx Selected device * @retval USB Device OUT EP interrupt status */ uint32_t USB_ReadDevAllOutEpInterrupt(const USB_OTG_GlobalTypeDef *USBx) { - 8008326: b480 push {r7} - 8008328: b085 sub sp, #20 - 800832a: af00 add r7, sp, #0 - 800832c: 6078 str r0, [r7, #4] + 800837a: b480 push {r7} + 800837c: b085 sub sp, #20 + 800837e: af00 add r7, sp, #0 + 8008380: 6078 str r0, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 800832e: 687b ldr r3, [r7, #4] - 8008330: 60fb str r3, [r7, #12] + 8008382: 687b ldr r3, [r7, #4] + 8008384: 60fb str r3, [r7, #12] uint32_t tmpreg; tmpreg = USBx_DEVICE->DAINT; - 8008332: 68fb ldr r3, [r7, #12] - 8008334: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008338: 699b ldr r3, [r3, #24] - 800833a: 60bb str r3, [r7, #8] + 8008386: 68fb ldr r3, [r7, #12] + 8008388: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800838c: 699b ldr r3, [r3, #24] + 800838e: 60bb str r3, [r7, #8] tmpreg &= USBx_DEVICE->DAINTMSK; - 800833c: 68fb ldr r3, [r7, #12] - 800833e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008342: 69db ldr r3, [r3, #28] - 8008344: 68ba ldr r2, [r7, #8] - 8008346: 4013 ands r3, r2 - 8008348: 60bb str r3, [r7, #8] + 8008390: 68fb ldr r3, [r7, #12] + 8008392: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008396: 69db ldr r3, [r3, #28] + 8008398: 68ba ldr r2, [r7, #8] + 800839a: 4013 ands r3, r2 + 800839c: 60bb str r3, [r7, #8] return ((tmpreg & 0xffff0000U) >> 16); - 800834a: 68bb ldr r3, [r7, #8] - 800834c: 0c1b lsrs r3, r3, #16 + 800839e: 68bb ldr r3, [r7, #8] + 80083a0: 0c1b lsrs r3, r3, #16 } - 800834e: 4618 mov r0, r3 - 8008350: 3714 adds r7, #20 - 8008352: 46bd mov sp, r7 - 8008354: f85d 7b04 ldr.w r7, [sp], #4 - 8008358: 4770 bx lr + 80083a2: 4618 mov r0, r3 + 80083a4: 3714 adds r7, #20 + 80083a6: 46bd mov sp, r7 + 80083a8: f85d 7b04 ldr.w r7, [sp], #4 + 80083ac: 4770 bx lr -0800835a : +080083ae : * @brief USB_ReadDevAllInEpInterrupt: return the USB device IN endpoints interrupt status * @param USBx Selected device * @retval USB Device IN EP interrupt status */ uint32_t USB_ReadDevAllInEpInterrupt(const USB_OTG_GlobalTypeDef *USBx) { - 800835a: b480 push {r7} - 800835c: b085 sub sp, #20 - 800835e: af00 add r7, sp, #0 - 8008360: 6078 str r0, [r7, #4] + 80083ae: b480 push {r7} + 80083b0: b085 sub sp, #20 + 80083b2: af00 add r7, sp, #0 + 80083b4: 6078 str r0, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 8008362: 687b ldr r3, [r7, #4] - 8008364: 60fb str r3, [r7, #12] + 80083b6: 687b ldr r3, [r7, #4] + 80083b8: 60fb str r3, [r7, #12] uint32_t tmpreg; tmpreg = USBx_DEVICE->DAINT; - 8008366: 68fb ldr r3, [r7, #12] - 8008368: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800836c: 699b ldr r3, [r3, #24] - 800836e: 60bb str r3, [r7, #8] + 80083ba: 68fb ldr r3, [r7, #12] + 80083bc: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80083c0: 699b ldr r3, [r3, #24] + 80083c2: 60bb str r3, [r7, #8] tmpreg &= USBx_DEVICE->DAINTMSK; - 8008370: 68fb ldr r3, [r7, #12] - 8008372: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008376: 69db ldr r3, [r3, #28] - 8008378: 68ba ldr r2, [r7, #8] - 800837a: 4013 ands r3, r2 - 800837c: 60bb str r3, [r7, #8] + 80083c4: 68fb ldr r3, [r7, #12] + 80083c6: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80083ca: 69db ldr r3, [r3, #28] + 80083cc: 68ba ldr r2, [r7, #8] + 80083ce: 4013 ands r3, r2 + 80083d0: 60bb str r3, [r7, #8] return ((tmpreg & 0xFFFFU)); - 800837e: 68bb ldr r3, [r7, #8] - 8008380: b29b uxth r3, r3 + 80083d2: 68bb ldr r3, [r7, #8] + 80083d4: b29b uxth r3, r3 } - 8008382: 4618 mov r0, r3 - 8008384: 3714 adds r7, #20 - 8008386: 46bd mov sp, r7 - 8008388: f85d 7b04 ldr.w r7, [sp], #4 - 800838c: 4770 bx lr + 80083d6: 4618 mov r0, r3 + 80083d8: 3714 adds r7, #20 + 80083da: 46bd mov sp, r7 + 80083dc: f85d 7b04 ldr.w r7, [sp], #4 + 80083e0: 4770 bx lr -0800838e : +080083e2 : * @param epnum endpoint number * This parameter can be a value from 0 to 15 * @retval Device OUT EP Interrupt register */ uint32_t USB_ReadDevOutEPInterrupt(const USB_OTG_GlobalTypeDef *USBx, uint8_t epnum) { - 800838e: b480 push {r7} - 8008390: b085 sub sp, #20 - 8008392: af00 add r7, sp, #0 - 8008394: 6078 str r0, [r7, #4] - 8008396: 460b mov r3, r1 - 8008398: 70fb strb r3, [r7, #3] + 80083e2: b480 push {r7} + 80083e4: b085 sub sp, #20 + 80083e6: af00 add r7, sp, #0 + 80083e8: 6078 str r0, [r7, #4] + 80083ea: 460b mov r3, r1 + 80083ec: 70fb strb r3, [r7, #3] uint32_t USBx_BASE = (uint32_t)USBx; - 800839a: 687b ldr r3, [r7, #4] - 800839c: 60fb str r3, [r7, #12] + 80083ee: 687b ldr r3, [r7, #4] + 80083f0: 60fb str r3, [r7, #12] uint32_t tmpreg; tmpreg = USBx_OUTEP((uint32_t)epnum)->DOEPINT; - 800839e: 78fb ldrb r3, [r7, #3] - 80083a0: 015a lsls r2, r3, #5 - 80083a2: 68fb ldr r3, [r7, #12] - 80083a4: 4413 add r3, r2 - 80083a6: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80083aa: 689b ldr r3, [r3, #8] - 80083ac: 60bb str r3, [r7, #8] + 80083f2: 78fb ldrb r3, [r7, #3] + 80083f4: 015a lsls r2, r3, #5 + 80083f6: 68fb ldr r3, [r7, #12] + 80083f8: 4413 add r3, r2 + 80083fa: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80083fe: 689b ldr r3, [r3, #8] + 8008400: 60bb str r3, [r7, #8] tmpreg &= USBx_DEVICE->DOEPMSK; - 80083ae: 68fb ldr r3, [r7, #12] - 80083b0: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80083b4: 695b ldr r3, [r3, #20] - 80083b6: 68ba ldr r2, [r7, #8] - 80083b8: 4013 ands r3, r2 - 80083ba: 60bb str r3, [r7, #8] + 8008402: 68fb ldr r3, [r7, #12] + 8008404: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008408: 695b ldr r3, [r3, #20] + 800840a: 68ba ldr r2, [r7, #8] + 800840c: 4013 ands r3, r2 + 800840e: 60bb str r3, [r7, #8] return tmpreg; - 80083bc: 68bb ldr r3, [r7, #8] + 8008410: 68bb ldr r3, [r7, #8] } - 80083be: 4618 mov r0, r3 - 80083c0: 3714 adds r7, #20 - 80083c2: 46bd mov sp, r7 - 80083c4: f85d 7b04 ldr.w r7, [sp], #4 - 80083c8: 4770 bx lr + 8008412: 4618 mov r0, r3 + 8008414: 3714 adds r7, #20 + 8008416: 46bd mov sp, r7 + 8008418: f85d 7b04 ldr.w r7, [sp], #4 + 800841c: 4770 bx lr -080083ca : +0800841e : * @param epnum endpoint number * This parameter can be a value from 0 to 15 * @retval Device IN EP Interrupt register */ uint32_t USB_ReadDevInEPInterrupt(const USB_OTG_GlobalTypeDef *USBx, uint8_t epnum) { - 80083ca: b480 push {r7} - 80083cc: b087 sub sp, #28 - 80083ce: af00 add r7, sp, #0 - 80083d0: 6078 str r0, [r7, #4] - 80083d2: 460b mov r3, r1 - 80083d4: 70fb strb r3, [r7, #3] + 800841e: b480 push {r7} + 8008420: b087 sub sp, #28 + 8008422: af00 add r7, sp, #0 + 8008424: 6078 str r0, [r7, #4] + 8008426: 460b mov r3, r1 + 8008428: 70fb strb r3, [r7, #3] uint32_t USBx_BASE = (uint32_t)USBx; - 80083d6: 687b ldr r3, [r7, #4] - 80083d8: 617b str r3, [r7, #20] + 800842a: 687b ldr r3, [r7, #4] + 800842c: 617b str r3, [r7, #20] uint32_t tmpreg; uint32_t msk; uint32_t emp; msk = USBx_DEVICE->DIEPMSK; - 80083da: 697b ldr r3, [r7, #20] - 80083dc: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80083e0: 691b ldr r3, [r3, #16] - 80083e2: 613b str r3, [r7, #16] + 800842e: 697b ldr r3, [r7, #20] + 8008430: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008434: 691b ldr r3, [r3, #16] + 8008436: 613b str r3, [r7, #16] emp = USBx_DEVICE->DIEPEMPMSK; - 80083e4: 697b ldr r3, [r7, #20] - 80083e6: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80083ea: 6b5b ldr r3, [r3, #52] @ 0x34 - 80083ec: 60fb str r3, [r7, #12] + 8008438: 697b ldr r3, [r7, #20] + 800843a: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800843e: 6b5b ldr r3, [r3, #52] @ 0x34 + 8008440: 60fb str r3, [r7, #12] msk |= ((emp >> (epnum & EP_ADDR_MSK)) & 0x1U) << 7; - 80083ee: 78fb ldrb r3, [r7, #3] - 80083f0: f003 030f and.w r3, r3, #15 - 80083f4: 68fa ldr r2, [r7, #12] - 80083f6: fa22 f303 lsr.w r3, r2, r3 - 80083fa: 01db lsls r3, r3, #7 - 80083fc: b2db uxtb r3, r3 - 80083fe: 693a ldr r2, [r7, #16] - 8008400: 4313 orrs r3, r2 - 8008402: 613b str r3, [r7, #16] + 8008442: 78fb ldrb r3, [r7, #3] + 8008444: f003 030f and.w r3, r3, #15 + 8008448: 68fa ldr r2, [r7, #12] + 800844a: fa22 f303 lsr.w r3, r2, r3 + 800844e: 01db lsls r3, r3, #7 + 8008450: b2db uxtb r3, r3 + 8008452: 693a ldr r2, [r7, #16] + 8008454: 4313 orrs r3, r2 + 8008456: 613b str r3, [r7, #16] tmpreg = USBx_INEP((uint32_t)epnum)->DIEPINT & msk; - 8008404: 78fb ldrb r3, [r7, #3] - 8008406: 015a lsls r2, r3, #5 - 8008408: 697b ldr r3, [r7, #20] - 800840a: 4413 add r3, r2 - 800840c: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008410: 689b ldr r3, [r3, #8] - 8008412: 693a ldr r2, [r7, #16] - 8008414: 4013 ands r3, r2 - 8008416: 60bb str r3, [r7, #8] + 8008458: 78fb ldrb r3, [r7, #3] + 800845a: 015a lsls r2, r3, #5 + 800845c: 697b ldr r3, [r7, #20] + 800845e: 4413 add r3, r2 + 8008460: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008464: 689b ldr r3, [r3, #8] + 8008466: 693a ldr r2, [r7, #16] + 8008468: 4013 ands r3, r2 + 800846a: 60bb str r3, [r7, #8] return tmpreg; - 8008418: 68bb ldr r3, [r7, #8] + 800846c: 68bb ldr r3, [r7, #8] } - 800841a: 4618 mov r0, r3 - 800841c: 371c adds r7, #28 - 800841e: 46bd mov sp, r7 - 8008420: f85d 7b04 ldr.w r7, [sp], #4 - 8008424: 4770 bx lr + 800846e: 4618 mov r0, r3 + 8008470: 371c adds r7, #28 + 8008472: 46bd mov sp, r7 + 8008474: f85d 7b04 ldr.w r7, [sp], #4 + 8008478: 4770 bx lr -08008426 : +0800847a : * This parameter can be one of these values: * 1 : Host * 0 : Device */ uint32_t USB_GetMode(const USB_OTG_GlobalTypeDef *USBx) { - 8008426: b480 push {r7} - 8008428: b083 sub sp, #12 - 800842a: af00 add r7, sp, #0 - 800842c: 6078 str r0, [r7, #4] + 800847a: b480 push {r7} + 800847c: b083 sub sp, #12 + 800847e: af00 add r7, sp, #0 + 8008480: 6078 str r0, [r7, #4] return ((USBx->GINTSTS) & 0x1U); - 800842e: 687b ldr r3, [r7, #4] - 8008430: 695b ldr r3, [r3, #20] - 8008432: f003 0301 and.w r3, r3, #1 + 8008482: 687b ldr r3, [r7, #4] + 8008484: 695b ldr r3, [r3, #20] + 8008486: f003 0301 and.w r3, r3, #1 } - 8008436: 4618 mov r0, r3 - 8008438: 370c adds r7, #12 - 800843a: 46bd mov sp, r7 - 800843c: f85d 7b04 ldr.w r7, [sp], #4 - 8008440: 4770 bx lr + 800848a: 4618 mov r0, r3 + 800848c: 370c adds r7, #12 + 800848e: 46bd mov sp, r7 + 8008490: f85d 7b04 ldr.w r7, [sp], #4 + 8008494: 4770 bx lr -08008442 : +08008496 : * @brief Activate EP0 for Setup transactions * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_ActivateSetup(const USB_OTG_GlobalTypeDef *USBx) { - 8008442: b480 push {r7} - 8008444: b085 sub sp, #20 - 8008446: af00 add r7, sp, #0 - 8008448: 6078 str r0, [r7, #4] + 8008496: b480 push {r7} + 8008498: b085 sub sp, #20 + 800849a: af00 add r7, sp, #0 + 800849c: 6078 str r0, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 800844a: 687b ldr r3, [r7, #4] - 800844c: 60fb str r3, [r7, #12] + 800849e: 687b ldr r3, [r7, #4] + 80084a0: 60fb str r3, [r7, #12] /* Set the MPS of the IN EP0 to 64 bytes */ USBx_INEP(0U)->DIEPCTL &= ~USB_OTG_DIEPCTL_MPSIZ; - 800844e: 68fb ldr r3, [r7, #12] - 8008450: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008454: 681b ldr r3, [r3, #0] - 8008456: 68fa ldr r2, [r7, #12] - 8008458: f502 6210 add.w r2, r2, #2304 @ 0x900 - 800845c: f423 63ff bic.w r3, r3, #2040 @ 0x7f8 - 8008460: f023 0307 bic.w r3, r3, #7 - 8008464: 6013 str r3, [r2, #0] + 80084a2: 68fb ldr r3, [r7, #12] + 80084a4: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80084a8: 681b ldr r3, [r3, #0] + 80084aa: 68fa ldr r2, [r7, #12] + 80084ac: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80084b0: f423 63ff bic.w r3, r3, #2040 @ 0x7f8 + 80084b4: f023 0307 bic.w r3, r3, #7 + 80084b8: 6013 str r3, [r2, #0] USBx_DEVICE->DCTL |= USB_OTG_DCTL_CGINAK; - 8008466: 68fb ldr r3, [r7, #12] - 8008468: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800846c: 685b ldr r3, [r3, #4] - 800846e: 68fa ldr r2, [r7, #12] - 8008470: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8008474: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8008478: 6053 str r3, [r2, #4] + 80084ba: 68fb ldr r3, [r7, #12] + 80084bc: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80084c0: 685b ldr r3, [r3, #4] + 80084c2: 68fa ldr r2, [r7, #12] + 80084c4: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80084c8: f443 7380 orr.w r3, r3, #256 @ 0x100 + 80084cc: 6053 str r3, [r2, #4] return HAL_OK; - 800847a: 2300 movs r3, #0 + 80084ce: 2300 movs r3, #0 } - 800847c: 4618 mov r0, r3 - 800847e: 3714 adds r7, #20 - 8008480: 46bd mov sp, r7 - 8008482: f85d 7b04 ldr.w r7, [sp], #4 - 8008486: 4770 bx lr + 80084d0: 4618 mov r0, r3 + 80084d2: 3714 adds r7, #20 + 80084d4: 46bd mov sp, r7 + 80084d6: f85d 7b04 ldr.w r7, [sp], #4 + 80084da: 4770 bx lr -08008488 : +080084dc : * 1 : DMA feature used * @param psetup pointer to setup packet * @retval HAL status */ HAL_StatusTypeDef USB_EP0_OutStart(const USB_OTG_GlobalTypeDef *USBx, uint8_t dma, const uint8_t *psetup) { - 8008488: b480 push {r7} - 800848a: b087 sub sp, #28 - 800848c: af00 add r7, sp, #0 - 800848e: 60f8 str r0, [r7, #12] - 8008490: 460b mov r3, r1 - 8008492: 607a str r2, [r7, #4] - 8008494: 72fb strb r3, [r7, #11] + 80084dc: b480 push {r7} + 80084de: b087 sub sp, #28 + 80084e0: af00 add r7, sp, #0 + 80084e2: 60f8 str r0, [r7, #12] + 80084e4: 460b mov r3, r1 + 80084e6: 607a str r2, [r7, #4] + 80084e8: 72fb strb r3, [r7, #11] uint32_t USBx_BASE = (uint32_t)USBx; - 8008496: 68fb ldr r3, [r7, #12] - 8008498: 617b str r3, [r7, #20] + 80084ea: 68fb ldr r3, [r7, #12] + 80084ec: 617b str r3, [r7, #20] uint32_t gSNPSiD = *(__IO const uint32_t *)(&USBx->CID + 0x1U); - 800849a: 68fb ldr r3, [r7, #12] - 800849c: 333c adds r3, #60 @ 0x3c - 800849e: 3304 adds r3, #4 - 80084a0: 681b ldr r3, [r3, #0] - 80084a2: 613b str r3, [r7, #16] + 80084ee: 68fb ldr r3, [r7, #12] + 80084f0: 333c adds r3, #60 @ 0x3c + 80084f2: 3304 adds r3, #4 + 80084f4: 681b ldr r3, [r3, #0] + 80084f6: 613b str r3, [r7, #16] if (gSNPSiD > USB_OTG_CORE_ID_300A) - 80084a4: 693b ldr r3, [r7, #16] - 80084a6: 4a26 ldr r2, [pc, #152] @ (8008540 ) - 80084a8: 4293 cmp r3, r2 - 80084aa: d90a bls.n 80084c2 + 80084f8: 693b ldr r3, [r7, #16] + 80084fa: 4a26 ldr r2, [pc, #152] @ (8008594 ) + 80084fc: 4293 cmp r3, r2 + 80084fe: d90a bls.n 8008516 { if ((USBx_OUTEP(0U)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) - 80084ac: 697b ldr r3, [r7, #20] - 80084ae: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80084b2: 681b ldr r3, [r3, #0] - 80084b4: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 80084b8: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 80084bc: d101 bne.n 80084c2 + 8008500: 697b ldr r3, [r7, #20] + 8008502: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008506: 681b ldr r3, [r3, #0] + 8008508: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 800850c: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8008510: d101 bne.n 8008516 { return HAL_OK; - 80084be: 2300 movs r3, #0 - 80084c0: e037 b.n 8008532 + 8008512: 2300 movs r3, #0 + 8008514: e037 b.n 8008586 } } USBx_OUTEP(0U)->DOEPTSIZ = 0U; - 80084c2: 697b ldr r3, [r7, #20] - 80084c4: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80084c8: 461a mov r2, r3 - 80084ca: 2300 movs r3, #0 - 80084cc: 6113 str r3, [r2, #16] + 8008516: 697b ldr r3, [r7, #20] + 8008518: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800851c: 461a mov r2, r3 + 800851e: 2300 movs r3, #0 + 8008520: 6113 str r3, [r2, #16] USBx_OUTEP(0U)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); - 80084ce: 697b ldr r3, [r7, #20] - 80084d0: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80084d4: 691b ldr r3, [r3, #16] - 80084d6: 697a ldr r2, [r7, #20] - 80084d8: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 80084dc: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 80084e0: 6113 str r3, [r2, #16] + 8008522: 697b ldr r3, [r7, #20] + 8008524: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008528: 691b ldr r3, [r3, #16] + 800852a: 697a ldr r2, [r7, #20] + 800852c: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008530: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 8008534: 6113 str r3, [r2, #16] USBx_OUTEP(0U)->DOEPTSIZ |= (3U * 8U); - 80084e2: 697b ldr r3, [r7, #20] - 80084e4: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80084e8: 691b ldr r3, [r3, #16] - 80084ea: 697a ldr r2, [r7, #20] - 80084ec: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 80084f0: f043 0318 orr.w r3, r3, #24 - 80084f4: 6113 str r3, [r2, #16] + 8008536: 697b ldr r3, [r7, #20] + 8008538: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800853c: 691b ldr r3, [r3, #16] + 800853e: 697a ldr r2, [r7, #20] + 8008540: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008544: f043 0318 orr.w r3, r3, #24 + 8008548: 6113 str r3, [r2, #16] USBx_OUTEP(0U)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_STUPCNT; - 80084f6: 697b ldr r3, [r7, #20] - 80084f8: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80084fc: 691b ldr r3, [r3, #16] - 80084fe: 697a ldr r2, [r7, #20] - 8008500: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008504: f043 43c0 orr.w r3, r3, #1610612736 @ 0x60000000 - 8008508: 6113 str r3, [r2, #16] + 800854a: 697b ldr r3, [r7, #20] + 800854c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008550: 691b ldr r3, [r3, #16] + 8008552: 697a ldr r2, [r7, #20] + 8008554: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008558: f043 43c0 orr.w r3, r3, #1610612736 @ 0x60000000 + 800855c: 6113 str r3, [r2, #16] if (dma == 1U) - 800850a: 7afb ldrb r3, [r7, #11] - 800850c: 2b01 cmp r3, #1 - 800850e: d10f bne.n 8008530 + 800855e: 7afb ldrb r3, [r7, #11] + 8008560: 2b01 cmp r3, #1 + 8008562: d10f bne.n 8008584 { USBx_OUTEP(0U)->DOEPDMA = (uint32_t)psetup; - 8008510: 697b ldr r3, [r7, #20] - 8008512: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008516: 461a mov r2, r3 - 8008518: 687b ldr r3, [r7, #4] - 800851a: 6153 str r3, [r2, #20] + 8008564: 697b ldr r3, [r7, #20] + 8008566: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800856a: 461a mov r2, r3 + 800856c: 687b ldr r3, [r7, #4] + 800856e: 6153 str r3, [r2, #20] /* EP enable */ USBx_OUTEP(0U)->DOEPCTL |= USB_OTG_DOEPCTL_EPENA | USB_OTG_DOEPCTL_USBAEP; - 800851c: 697b ldr r3, [r7, #20] - 800851e: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008522: 681b ldr r3, [r3, #0] - 8008524: 697a ldr r2, [r7, #20] - 8008526: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 800852a: f043 2380 orr.w r3, r3, #2147516416 @ 0x80008000 - 800852e: 6013 str r3, [r2, #0] + 8008570: 697b ldr r3, [r7, #20] + 8008572: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008576: 681b ldr r3, [r3, #0] + 8008578: 697a ldr r2, [r7, #20] + 800857a: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 800857e: f043 2380 orr.w r3, r3, #2147516416 @ 0x80008000 + 8008582: 6013 str r3, [r2, #0] } return HAL_OK; - 8008530: 2300 movs r3, #0 + 8008584: 2300 movs r3, #0 } - 8008532: 4618 mov r0, r3 - 8008534: 371c adds r7, #28 - 8008536: 46bd mov sp, r7 - 8008538: f85d 7b04 ldr.w r7, [sp], #4 - 800853c: 4770 bx lr - 800853e: bf00 nop - 8008540: 4f54300a .word 0x4f54300a + 8008586: 4618 mov r0, r3 + 8008588: 371c adds r7, #28 + 800858a: 46bd mov sp, r7 + 800858c: f85d 7b04 ldr.w r7, [sp], #4 + 8008590: 4770 bx lr + 8008592: bf00 nop + 8008594: 4f54300a .word 0x4f54300a -08008544 : +08008598 : * @brief Reset the USB Core (needed after USB clock settings change) * @param USBx Selected device * @retval HAL status */ static HAL_StatusTypeDef USB_CoreReset(USB_OTG_GlobalTypeDef *USBx) { - 8008544: b480 push {r7} - 8008546: b085 sub sp, #20 - 8008548: af00 add r7, sp, #0 - 800854a: 6078 str r0, [r7, #4] + 8008598: b480 push {r7} + 800859a: b085 sub sp, #20 + 800859c: af00 add r7, sp, #0 + 800859e: 6078 str r0, [r7, #4] __IO uint32_t count = 0U; - 800854c: 2300 movs r3, #0 - 800854e: 60fb str r3, [r7, #12] + 80085a0: 2300 movs r3, #0 + 80085a2: 60fb str r3, [r7, #12] /* Wait for AHB master IDLE state. */ do { count++; - 8008550: 68fb ldr r3, [r7, #12] - 8008552: 3301 adds r3, #1 - 8008554: 60fb str r3, [r7, #12] + 80085a4: 68fb ldr r3, [r7, #12] + 80085a6: 3301 adds r3, #1 + 80085a8: 60fb str r3, [r7, #12] if (count > HAL_USB_TIMEOUT) - 8008556: 68fb ldr r3, [r7, #12] - 8008558: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 800855c: d901 bls.n 8008562 + 80085aa: 68fb ldr r3, [r7, #12] + 80085ac: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 80085b0: d901 bls.n 80085b6 { return HAL_TIMEOUT; - 800855e: 2303 movs r3, #3 - 8008560: e022 b.n 80085a8 + 80085b2: 2303 movs r3, #3 + 80085b4: e022 b.n 80085fc } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_AHBIDL) == 0U); - 8008562: 687b ldr r3, [r7, #4] - 8008564: 691b ldr r3, [r3, #16] - 8008566: 2b00 cmp r3, #0 - 8008568: daf2 bge.n 8008550 + 80085b6: 687b ldr r3, [r7, #4] + 80085b8: 691b ldr r3, [r3, #16] + 80085ba: 2b00 cmp r3, #0 + 80085bc: daf2 bge.n 80085a4 count = 10U; - 800856a: 230a movs r3, #10 - 800856c: 60fb str r3, [r7, #12] + 80085be: 230a movs r3, #10 + 80085c0: 60fb str r3, [r7, #12] /* few cycles before setting core reset */ while (count > 0U) - 800856e: e002 b.n 8008576 + 80085c2: e002 b.n 80085ca { count--; - 8008570: 68fb ldr r3, [r7, #12] - 8008572: 3b01 subs r3, #1 - 8008574: 60fb str r3, [r7, #12] + 80085c4: 68fb ldr r3, [r7, #12] + 80085c6: 3b01 subs r3, #1 + 80085c8: 60fb str r3, [r7, #12] while (count > 0U) - 8008576: 68fb ldr r3, [r7, #12] - 8008578: 2b00 cmp r3, #0 - 800857a: d1f9 bne.n 8008570 + 80085ca: 68fb ldr r3, [r7, #12] + 80085cc: 2b00 cmp r3, #0 + 80085ce: d1f9 bne.n 80085c4 } /* Core Soft Reset */ USBx->GRSTCTL |= USB_OTG_GRSTCTL_CSRST; - 800857c: 687b ldr r3, [r7, #4] - 800857e: 691b ldr r3, [r3, #16] - 8008580: f043 0201 orr.w r2, r3, #1 - 8008584: 687b ldr r3, [r7, #4] - 8008586: 611a str r2, [r3, #16] + 80085d0: 687b ldr r3, [r7, #4] + 80085d2: 691b ldr r3, [r3, #16] + 80085d4: f043 0201 orr.w r2, r3, #1 + 80085d8: 687b ldr r3, [r7, #4] + 80085da: 611a str r2, [r3, #16] do { count++; - 8008588: 68fb ldr r3, [r7, #12] - 800858a: 3301 adds r3, #1 - 800858c: 60fb str r3, [r7, #12] + 80085dc: 68fb ldr r3, [r7, #12] + 80085de: 3301 adds r3, #1 + 80085e0: 60fb str r3, [r7, #12] if (count > HAL_USB_TIMEOUT) - 800858e: 68fb ldr r3, [r7, #12] - 8008590: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 8008594: d901 bls.n 800859a + 80085e2: 68fb ldr r3, [r7, #12] + 80085e4: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 80085e8: d901 bls.n 80085ee { return HAL_TIMEOUT; - 8008596: 2303 movs r3, #3 - 8008598: e006 b.n 80085a8 + 80085ea: 2303 movs r3, #3 + 80085ec: e006 b.n 80085fc } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_CSRST) == USB_OTG_GRSTCTL_CSRST); - 800859a: 687b ldr r3, [r7, #4] - 800859c: 691b ldr r3, [r3, #16] - 800859e: f003 0301 and.w r3, r3, #1 - 80085a2: 2b01 cmp r3, #1 - 80085a4: d0f0 beq.n 8008588 + 80085ee: 687b ldr r3, [r7, #4] + 80085f0: 691b ldr r3, [r3, #16] + 80085f2: f003 0301 and.w r3, r3, #1 + 80085f6: 2b01 cmp r3, #1 + 80085f8: d0f0 beq.n 80085dc return HAL_OK; - 80085a6: 2300 movs r3, #0 + 80085fa: 2300 movs r3, #0 } - 80085a8: 4618 mov r0, r3 - 80085aa: 3714 adds r7, #20 - 80085ac: 46bd mov sp, r7 - 80085ae: f85d 7b04 ldr.w r7, [sp], #4 - 80085b2: 4770 bx lr + 80085fc: 4618 mov r0, r3 + 80085fe: 3714 adds r7, #20 + 8008600: 46bd mov sp, r7 + 8008602: f85d 7b04 ldr.w r7, [sp], #4 + 8008606: 4770 bx lr -080085b4 : +08008608 : * @param pdev: device instance * @param cfgidx: Configuration index * @retval status */ static uint8_t USBD_HID_Init(USBD_HandleTypeDef *pdev, uint8_t cfgidx) { - 80085b4: b580 push {r7, lr} - 80085b6: b084 sub sp, #16 - 80085b8: af00 add r7, sp, #0 - 80085ba: 6078 str r0, [r7, #4] - 80085bc: 460b mov r3, r1 - 80085be: 70fb strb r3, [r7, #3] + 8008608: b580 push {r7, lr} + 800860a: b084 sub sp, #16 + 800860c: af00 add r7, sp, #0 + 800860e: 6078 str r0, [r7, #4] + 8008610: 460b mov r3, r1 + 8008612: 70fb strb r3, [r7, #3] UNUSED(cfgidx); USBD_HID_HandleTypeDef *hhid; hhid = (USBD_HID_HandleTypeDef *)USBD_malloc(sizeof(USBD_HID_HandleTypeDef)); - 80085c0: 2010 movs r0, #16 - 80085c2: f002 f9e3 bl 800a98c - 80085c6: 60f8 str r0, [r7, #12] + 8008614: 2010 movs r0, #16 + 8008616: f002 f9e3 bl 800a9e0 + 800861a: 60f8 str r0, [r7, #12] if (hhid == NULL) - 80085c8: 68fb ldr r3, [r7, #12] - 80085ca: 2b00 cmp r3, #0 - 80085cc: d109 bne.n 80085e2 + 800861c: 68fb ldr r3, [r7, #12] + 800861e: 2b00 cmp r3, #0 + 8008620: d109 bne.n 8008636 { pdev->pClassDataCmsit[pdev->classId] = NULL; - 80085ce: 687b ldr r3, [r7, #4] - 80085d0: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80085d4: 687b ldr r3, [r7, #4] - 80085d6: 32b0 adds r2, #176 @ 0xb0 - 80085d8: 2100 movs r1, #0 - 80085da: f843 1022 str.w r1, [r3, r2, lsl #2] + 8008622: 687b ldr r3, [r7, #4] + 8008624: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008628: 687b ldr r3, [r7, #4] + 800862a: 32b0 adds r2, #176 @ 0xb0 + 800862c: 2100 movs r1, #0 + 800862e: f843 1022 str.w r1, [r3, r2, lsl #2] return (uint8_t)USBD_EMEM; - 80085de: 2302 movs r3, #2 - 80085e0: e048 b.n 8008674 + 8008632: 2302 movs r3, #2 + 8008634: e048 b.n 80086c8 } pdev->pClassDataCmsit[pdev->classId] = (void *)hhid; - 80085e2: 687b ldr r3, [r7, #4] - 80085e4: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80085e8: 687b ldr r3, [r7, #4] - 80085ea: 32b0 adds r2, #176 @ 0xb0 - 80085ec: 68f9 ldr r1, [r7, #12] - 80085ee: f843 1022 str.w r1, [r3, r2, lsl #2] + 8008636: 687b ldr r3, [r7, #4] + 8008638: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 800863c: 687b ldr r3, [r7, #4] + 800863e: 32b0 adds r2, #176 @ 0xb0 + 8008640: 68f9 ldr r1, [r7, #12] + 8008642: f843 1022 str.w r1, [r3, r2, lsl #2] pdev->pClassData = pdev->pClassDataCmsit[pdev->classId]; - 80085f2: 687b ldr r3, [r7, #4] - 80085f4: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80085f8: 687b ldr r3, [r7, #4] - 80085fa: 32b0 adds r2, #176 @ 0xb0 - 80085fc: f853 2022 ldr.w r2, [r3, r2, lsl #2] - 8008600: 687b ldr r3, [r7, #4] - 8008602: f8c3 22bc str.w r2, [r3, #700] @ 0x2bc + 8008646: 687b ldr r3, [r7, #4] + 8008648: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 800864c: 687b ldr r3, [r7, #4] + 800864e: 32b0 adds r2, #176 @ 0xb0 + 8008650: f853 2022 ldr.w r2, [r3, r2, lsl #2] + 8008654: 687b ldr r3, [r7, #4] + 8008656: f8c3 22bc str.w r2, [r3, #700] @ 0x2bc #ifdef USE_USBD_COMPOSITE /* Get the Endpoints addresses allocated for this class instance */ HIDInEpAdd = USBD_CoreGetEPAdd(pdev, USBD_EP_IN, USBD_EP_TYPE_INTR, (uint8_t)pdev->classId); #endif /* USE_USBD_COMPOSITE */ if (pdev->dev_speed == USBD_SPEED_HIGH) - 8008606: 687b ldr r3, [r7, #4] - 8008608: 7c1b ldrb r3, [r3, #16] - 800860a: 2b00 cmp r3, #0 - 800860c: d10d bne.n 800862a + 800865a: 687b ldr r3, [r7, #4] + 800865c: 7c1b ldrb r3, [r3, #16] + 800865e: 2b00 cmp r3, #0 + 8008660: d10d bne.n 800867e { pdev->ep_in[HIDInEpAdd & 0xFU].bInterval = HID_HS_BINTERVAL; - 800860e: 4b1b ldr r3, [pc, #108] @ (800867c ) - 8008610: 781b ldrb r3, [r3, #0] - 8008612: f003 020f and.w r2, r3, #15 - 8008616: 6879 ldr r1, [r7, #4] - 8008618: 4613 mov r3, r2 - 800861a: 009b lsls r3, r3, #2 - 800861c: 4413 add r3, r2 - 800861e: 009b lsls r3, r3, #2 - 8008620: 440b add r3, r1 - 8008622: 331c adds r3, #28 - 8008624: 2207 movs r2, #7 - 8008626: 601a str r2, [r3, #0] - 8008628: e00c b.n 8008644 + 8008662: 4b1b ldr r3, [pc, #108] @ (80086d0 ) + 8008664: 781b ldrb r3, [r3, #0] + 8008666: f003 020f and.w r2, r3, #15 + 800866a: 6879 ldr r1, [r7, #4] + 800866c: 4613 mov r3, r2 + 800866e: 009b lsls r3, r3, #2 + 8008670: 4413 add r3, r2 + 8008672: 009b lsls r3, r3, #2 + 8008674: 440b add r3, r1 + 8008676: 331c adds r3, #28 + 8008678: 2207 movs r2, #7 + 800867a: 601a str r2, [r3, #0] + 800867c: e00c b.n 8008698 } else /* LOW and FULL-speed endpoints */ { pdev->ep_in[HIDInEpAdd & 0xFU].bInterval = HID_FS_BINTERVAL; - 800862a: 4b14 ldr r3, [pc, #80] @ (800867c ) - 800862c: 781b ldrb r3, [r3, #0] - 800862e: f003 020f and.w r2, r3, #15 - 8008632: 6879 ldr r1, [r7, #4] - 8008634: 4613 mov r3, r2 - 8008636: 009b lsls r3, r3, #2 - 8008638: 4413 add r3, r2 - 800863a: 009b lsls r3, r3, #2 - 800863c: 440b add r3, r1 - 800863e: 331c adds r3, #28 - 8008640: 220a movs r2, #10 - 8008642: 601a str r2, [r3, #0] + 800867e: 4b14 ldr r3, [pc, #80] @ (80086d0 ) + 8008680: 781b ldrb r3, [r3, #0] + 8008682: f003 020f and.w r2, r3, #15 + 8008686: 6879 ldr r1, [r7, #4] + 8008688: 4613 mov r3, r2 + 800868a: 009b lsls r3, r3, #2 + 800868c: 4413 add r3, r2 + 800868e: 009b lsls r3, r3, #2 + 8008690: 440b add r3, r1 + 8008692: 331c adds r3, #28 + 8008694: 220a movs r2, #10 + 8008696: 601a str r2, [r3, #0] } /* Open EP IN */ (void)USBD_LL_OpenEP(pdev, HIDInEpAdd, USBD_EP_TYPE_INTR, HID_EPIN_SIZE); - 8008644: 4b0d ldr r3, [pc, #52] @ (800867c ) - 8008646: 7819 ldrb r1, [r3, #0] - 8008648: 230e movs r3, #14 - 800864a: 2203 movs r2, #3 - 800864c: 6878 ldr r0, [r7, #4] - 800864e: f002 f83e bl 800a6ce + 8008698: 4b0d ldr r3, [pc, #52] @ (80086d0 ) + 800869a: 7819 ldrb r1, [r3, #0] + 800869c: 230e movs r3, #14 + 800869e: 2203 movs r2, #3 + 80086a0: 6878 ldr r0, [r7, #4] + 80086a2: f002 f83e bl 800a722 pdev->ep_in[HIDInEpAdd & 0xFU].is_used = 1U; - 8008652: 4b0a ldr r3, [pc, #40] @ (800867c ) - 8008654: 781b ldrb r3, [r3, #0] - 8008656: f003 020f and.w r2, r3, #15 - 800865a: 6879 ldr r1, [r7, #4] - 800865c: 4613 mov r3, r2 - 800865e: 009b lsls r3, r3, #2 - 8008660: 4413 add r3, r2 - 8008662: 009b lsls r3, r3, #2 - 8008664: 440b add r3, r1 - 8008666: 3323 adds r3, #35 @ 0x23 - 8008668: 2201 movs r2, #1 - 800866a: 701a strb r2, [r3, #0] + 80086a6: 4b0a ldr r3, [pc, #40] @ (80086d0 ) + 80086a8: 781b ldrb r3, [r3, #0] + 80086aa: f003 020f and.w r2, r3, #15 + 80086ae: 6879 ldr r1, [r7, #4] + 80086b0: 4613 mov r3, r2 + 80086b2: 009b lsls r3, r3, #2 + 80086b4: 4413 add r3, r2 + 80086b6: 009b lsls r3, r3, #2 + 80086b8: 440b add r3, r1 + 80086ba: 3323 adds r3, #35 @ 0x23 + 80086bc: 2201 movs r2, #1 + 80086be: 701a strb r2, [r3, #0] hhid->state = USBD_HID_IDLE; - 800866c: 68fb ldr r3, [r7, #12] - 800866e: 2200 movs r2, #0 - 8008670: 731a strb r2, [r3, #12] + 80086c0: 68fb ldr r3, [r7, #12] + 80086c2: 2200 movs r2, #0 + 80086c4: 731a strb r2, [r3, #12] return (uint8_t)USBD_OK; - 8008672: 2300 movs r3, #0 + 80086c6: 2300 movs r3, #0 } - 8008674: 4618 mov r0, r3 - 8008676: 3710 adds r7, #16 - 8008678: 46bd mov sp, r7 - 800867a: bd80 pop {r7, pc} - 800867c: 2000013d .word 0x2000013d + 80086c8: 4618 mov r0, r3 + 80086ca: 3710 adds r7, #16 + 80086cc: 46bd mov sp, r7 + 80086ce: bd80 pop {r7, pc} + 80086d0: 2000013d .word 0x2000013d -08008680 : +080086d4 : * @param pdev: device instance * @param cfgidx: Configuration index * @retval status */ static uint8_t USBD_HID_DeInit(USBD_HandleTypeDef *pdev, uint8_t cfgidx) { - 8008680: b580 push {r7, lr} - 8008682: b082 sub sp, #8 - 8008684: af00 add r7, sp, #0 - 8008686: 6078 str r0, [r7, #4] - 8008688: 460b mov r3, r1 - 800868a: 70fb strb r3, [r7, #3] + 80086d4: b580 push {r7, lr} + 80086d6: b082 sub sp, #8 + 80086d8: af00 add r7, sp, #0 + 80086da: 6078 str r0, [r7, #4] + 80086dc: 460b mov r3, r1 + 80086de: 70fb strb r3, [r7, #3] /* Get the Endpoints addresses allocated for this class instance */ HIDInEpAdd = USBD_CoreGetEPAdd(pdev, USBD_EP_IN, USBD_EP_TYPE_INTR, (uint8_t)pdev->classId); #endif /* USE_USBD_COMPOSITE */ /* Close HID EPs */ (void)USBD_LL_CloseEP(pdev, HIDInEpAdd); - 800868c: 4b1f ldr r3, [pc, #124] @ (800870c ) - 800868e: 781b ldrb r3, [r3, #0] - 8008690: 4619 mov r1, r3 - 8008692: 6878 ldr r0, [r7, #4] - 8008694: f002 f841 bl 800a71a + 80086e0: 4b1f ldr r3, [pc, #124] @ (8008760 ) + 80086e2: 781b ldrb r3, [r3, #0] + 80086e4: 4619 mov r1, r3 + 80086e6: 6878 ldr r0, [r7, #4] + 80086e8: f002 f841 bl 800a76e pdev->ep_in[HIDInEpAdd & 0xFU].is_used = 0U; - 8008698: 4b1c ldr r3, [pc, #112] @ (800870c ) - 800869a: 781b ldrb r3, [r3, #0] - 800869c: f003 020f and.w r2, r3, #15 - 80086a0: 6879 ldr r1, [r7, #4] - 80086a2: 4613 mov r3, r2 - 80086a4: 009b lsls r3, r3, #2 - 80086a6: 4413 add r3, r2 - 80086a8: 009b lsls r3, r3, #2 - 80086aa: 440b add r3, r1 - 80086ac: 3323 adds r3, #35 @ 0x23 - 80086ae: 2200 movs r2, #0 - 80086b0: 701a strb r2, [r3, #0] + 80086ec: 4b1c ldr r3, [pc, #112] @ (8008760 ) + 80086ee: 781b ldrb r3, [r3, #0] + 80086f0: f003 020f and.w r2, r3, #15 + 80086f4: 6879 ldr r1, [r7, #4] + 80086f6: 4613 mov r3, r2 + 80086f8: 009b lsls r3, r3, #2 + 80086fa: 4413 add r3, r2 + 80086fc: 009b lsls r3, r3, #2 + 80086fe: 440b add r3, r1 + 8008700: 3323 adds r3, #35 @ 0x23 + 8008702: 2200 movs r2, #0 + 8008704: 701a strb r2, [r3, #0] pdev->ep_in[HIDInEpAdd & 0xFU].bInterval = 0U; - 80086b2: 4b16 ldr r3, [pc, #88] @ (800870c ) - 80086b4: 781b ldrb r3, [r3, #0] - 80086b6: f003 020f and.w r2, r3, #15 - 80086ba: 6879 ldr r1, [r7, #4] - 80086bc: 4613 mov r3, r2 - 80086be: 009b lsls r3, r3, #2 - 80086c0: 4413 add r3, r2 - 80086c2: 009b lsls r3, r3, #2 - 80086c4: 440b add r3, r1 - 80086c6: 331c adds r3, #28 - 80086c8: 2200 movs r2, #0 - 80086ca: 601a str r2, [r3, #0] + 8008706: 4b16 ldr r3, [pc, #88] @ (8008760 ) + 8008708: 781b ldrb r3, [r3, #0] + 800870a: f003 020f and.w r2, r3, #15 + 800870e: 6879 ldr r1, [r7, #4] + 8008710: 4613 mov r3, r2 + 8008712: 009b lsls r3, r3, #2 + 8008714: 4413 add r3, r2 + 8008716: 009b lsls r3, r3, #2 + 8008718: 440b add r3, r1 + 800871a: 331c adds r3, #28 + 800871c: 2200 movs r2, #0 + 800871e: 601a str r2, [r3, #0] /* Free allocated memory */ if (pdev->pClassDataCmsit[pdev->classId] != NULL) - 80086cc: 687b ldr r3, [r7, #4] - 80086ce: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80086d2: 687b ldr r3, [r7, #4] - 80086d4: 32b0 adds r2, #176 @ 0xb0 - 80086d6: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80086da: 2b00 cmp r3, #0 - 80086dc: d011 beq.n 8008702 + 8008720: 687b ldr r3, [r7, #4] + 8008722: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008726: 687b ldr r3, [r7, #4] + 8008728: 32b0 adds r2, #176 @ 0xb0 + 800872a: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800872e: 2b00 cmp r3, #0 + 8008730: d011 beq.n 8008756 { (void)USBD_free(pdev->pClassDataCmsit[pdev->classId]); - 80086de: 687b ldr r3, [r7, #4] - 80086e0: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80086e4: 687b ldr r3, [r7, #4] - 80086e6: 32b0 adds r2, #176 @ 0xb0 - 80086e8: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80086ec: 4618 mov r0, r3 - 80086ee: f002 f95b bl 800a9a8 + 8008732: 687b ldr r3, [r7, #4] + 8008734: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008738: 687b ldr r3, [r7, #4] + 800873a: 32b0 adds r2, #176 @ 0xb0 + 800873c: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008740: 4618 mov r0, r3 + 8008742: f002 f95b bl 800a9fc pdev->pClassDataCmsit[pdev->classId] = NULL; - 80086f2: 687b ldr r3, [r7, #4] - 80086f4: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80086f8: 687b ldr r3, [r7, #4] - 80086fa: 32b0 adds r2, #176 @ 0xb0 - 80086fc: 2100 movs r1, #0 - 80086fe: f843 1022 str.w r1, [r3, r2, lsl #2] + 8008746: 687b ldr r3, [r7, #4] + 8008748: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 800874c: 687b ldr r3, [r7, #4] + 800874e: 32b0 adds r2, #176 @ 0xb0 + 8008750: 2100 movs r1, #0 + 8008752: f843 1022 str.w r1, [r3, r2, lsl #2] } return (uint8_t)USBD_OK; - 8008702: 2300 movs r3, #0 + 8008756: 2300 movs r3, #0 } - 8008704: 4618 mov r0, r3 - 8008706: 3708 adds r7, #8 - 8008708: 46bd mov sp, r7 - 800870a: bd80 pop {r7, pc} - 800870c: 2000013d .word 0x2000013d + 8008758: 4618 mov r0, r3 + 800875a: 3708 adds r7, #8 + 800875c: 46bd mov sp, r7 + 800875e: bd80 pop {r7, pc} + 8008760: 2000013d .word 0x2000013d -08008710 : +08008764 : * @param pdev: instance * @param req: usb requests * @retval status */ static uint8_t USBD_HID_Setup(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 8008710: b580 push {r7, lr} - 8008712: b086 sub sp, #24 - 8008714: af00 add r7, sp, #0 - 8008716: 6078 str r0, [r7, #4] - 8008718: 6039 str r1, [r7, #0] + 8008764: b580 push {r7, lr} + 8008766: b086 sub sp, #24 + 8008768: af00 add r7, sp, #0 + 800876a: 6078 str r0, [r7, #4] + 800876c: 6039 str r1, [r7, #0] USBD_HID_HandleTypeDef *hhid = (USBD_HID_HandleTypeDef *)pdev->pClassDataCmsit[pdev->classId]; - 800871a: 687b ldr r3, [r7, #4] - 800871c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8008720: 687b ldr r3, [r7, #4] - 8008722: 32b0 adds r2, #176 @ 0xb0 - 8008724: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8008728: 60fb str r3, [r7, #12] + 800876e: 687b ldr r3, [r7, #4] + 8008770: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008774: 687b ldr r3, [r7, #4] + 8008776: 32b0 adds r2, #176 @ 0xb0 + 8008778: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800877c: 60fb str r3, [r7, #12] USBD_StatusTypeDef ret = USBD_OK; - 800872a: 2300 movs r3, #0 - 800872c: 75fb strb r3, [r7, #23] + 800877e: 2300 movs r3, #0 + 8008780: 75fb strb r3, [r7, #23] uint16_t len; uint8_t *pbuf; uint16_t status_info = 0U; - 800872e: 2300 movs r3, #0 - 8008730: 817b strh r3, [r7, #10] + 8008782: 2300 movs r3, #0 + 8008784: 817b strh r3, [r7, #10] if (hhid == NULL) - 8008732: 68fb ldr r3, [r7, #12] - 8008734: 2b00 cmp r3, #0 - 8008736: d101 bne.n 800873c + 8008786: 68fb ldr r3, [r7, #12] + 8008788: 2b00 cmp r3, #0 + 800878a: d101 bne.n 8008790 { return (uint8_t)USBD_FAIL; - 8008738: 2303 movs r3, #3 - 800873a: e0e8 b.n 800890e + 800878c: 2303 movs r3, #3 + 800878e: e0e8 b.n 8008962 } switch (req->bmRequest & USB_REQ_TYPE_MASK) - 800873c: 683b ldr r3, [r7, #0] - 800873e: 781b ldrb r3, [r3, #0] - 8008740: f003 0360 and.w r3, r3, #96 @ 0x60 - 8008744: 2b00 cmp r3, #0 - 8008746: d046 beq.n 80087d6 - 8008748: 2b20 cmp r3, #32 - 800874a: f040 80d8 bne.w 80088fe + 8008790: 683b ldr r3, [r7, #0] + 8008792: 781b ldrb r3, [r3, #0] + 8008794: f003 0360 and.w r3, r3, #96 @ 0x60 + 8008798: 2b00 cmp r3, #0 + 800879a: d046 beq.n 800882a + 800879c: 2b20 cmp r3, #32 + 800879e: f040 80d8 bne.w 8008952 { case USB_REQ_TYPE_CLASS : switch (req->bRequest) - 800874e: 683b ldr r3, [r7, #0] - 8008750: 785b ldrb r3, [r3, #1] - 8008752: 3b02 subs r3, #2 - 8008754: 2b09 cmp r3, #9 - 8008756: d836 bhi.n 80087c6 - 8008758: a201 add r2, pc, #4 @ (adr r2, 8008760 ) - 800875a: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800875e: bf00 nop - 8008760: 080087b7 .word 0x080087b7 - 8008764: 08008797 .word 0x08008797 - 8008768: 080087c7 .word 0x080087c7 - 800876c: 080087c7 .word 0x080087c7 - 8008770: 080087c7 .word 0x080087c7 - 8008774: 080087c7 .word 0x080087c7 - 8008778: 080087c7 .word 0x080087c7 - 800877c: 080087c7 .word 0x080087c7 - 8008780: 080087a5 .word 0x080087a5 - 8008784: 08008789 .word 0x08008789 + 80087a2: 683b ldr r3, [r7, #0] + 80087a4: 785b ldrb r3, [r3, #1] + 80087a6: 3b02 subs r3, #2 + 80087a8: 2b09 cmp r3, #9 + 80087aa: d836 bhi.n 800881a + 80087ac: a201 add r2, pc, #4 @ (adr r2, 80087b4 ) + 80087ae: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 80087b2: bf00 nop + 80087b4: 0800880b .word 0x0800880b + 80087b8: 080087eb .word 0x080087eb + 80087bc: 0800881b .word 0x0800881b + 80087c0: 0800881b .word 0x0800881b + 80087c4: 0800881b .word 0x0800881b + 80087c8: 0800881b .word 0x0800881b + 80087cc: 0800881b .word 0x0800881b + 80087d0: 0800881b .word 0x0800881b + 80087d4: 080087f9 .word 0x080087f9 + 80087d8: 080087dd .word 0x080087dd { case USBD_HID_REQ_SET_PROTOCOL: hhid->Protocol = (uint8_t)(req->wValue); - 8008788: 683b ldr r3, [r7, #0] - 800878a: 885b ldrh r3, [r3, #2] - 800878c: b2db uxtb r3, r3 - 800878e: 461a mov r2, r3 - 8008790: 68fb ldr r3, [r7, #12] - 8008792: 601a str r2, [r3, #0] + 80087dc: 683b ldr r3, [r7, #0] + 80087de: 885b ldrh r3, [r3, #2] + 80087e0: b2db uxtb r3, r3 + 80087e2: 461a mov r2, r3 + 80087e4: 68fb ldr r3, [r7, #12] + 80087e6: 601a str r2, [r3, #0] break; - 8008794: e01e b.n 80087d4 + 80087e8: e01e b.n 8008828 case USBD_HID_REQ_GET_PROTOCOL: (void)USBD_CtlSendData(pdev, (uint8_t *)&hhid->Protocol, 1U); - 8008796: 68fb ldr r3, [r7, #12] - 8008798: 2201 movs r2, #1 - 800879a: 4619 mov r1, r3 - 800879c: 6878 ldr r0, [r7, #4] - 800879e: f001 fc25 bl 8009fec + 80087ea: 68fb ldr r3, [r7, #12] + 80087ec: 2201 movs r2, #1 + 80087ee: 4619 mov r1, r3 + 80087f0: 6878 ldr r0, [r7, #4] + 80087f2: f001 fc25 bl 800a040 break; - 80087a2: e017 b.n 80087d4 + 80087f6: e017 b.n 8008828 case USBD_HID_REQ_SET_IDLE: hhid->IdleState = (uint8_t)(req->wValue >> 8); - 80087a4: 683b ldr r3, [r7, #0] - 80087a6: 885b ldrh r3, [r3, #2] - 80087a8: 0a1b lsrs r3, r3, #8 - 80087aa: b29b uxth r3, r3 - 80087ac: b2db uxtb r3, r3 - 80087ae: 461a mov r2, r3 - 80087b0: 68fb ldr r3, [r7, #12] - 80087b2: 605a str r2, [r3, #4] + 80087f8: 683b ldr r3, [r7, #0] + 80087fa: 885b ldrh r3, [r3, #2] + 80087fc: 0a1b lsrs r3, r3, #8 + 80087fe: b29b uxth r3, r3 + 8008800: b2db uxtb r3, r3 + 8008802: 461a mov r2, r3 + 8008804: 68fb ldr r3, [r7, #12] + 8008806: 605a str r2, [r3, #4] break; - 80087b4: e00e b.n 80087d4 + 8008808: e00e b.n 8008828 case USBD_HID_REQ_GET_IDLE: (void)USBD_CtlSendData(pdev, (uint8_t *)&hhid->IdleState, 1U); - 80087b6: 68fb ldr r3, [r7, #12] - 80087b8: 3304 adds r3, #4 - 80087ba: 2201 movs r2, #1 - 80087bc: 4619 mov r1, r3 - 80087be: 6878 ldr r0, [r7, #4] - 80087c0: f001 fc14 bl 8009fec + 800880a: 68fb ldr r3, [r7, #12] + 800880c: 3304 adds r3, #4 + 800880e: 2201 movs r2, #1 + 8008810: 4619 mov r1, r3 + 8008812: 6878 ldr r0, [r7, #4] + 8008814: f001 fc14 bl 800a040 break; - 80087c4: e006 b.n 80087d4 + 8008818: e006 b.n 8008828 default: USBD_CtlError(pdev, req); - 80087c6: 6839 ldr r1, [r7, #0] - 80087c8: 6878 ldr r0, [r7, #4] - 80087ca: f001 fb92 bl 8009ef2 + 800881a: 6839 ldr r1, [r7, #0] + 800881c: 6878 ldr r0, [r7, #4] + 800881e: f001 fb92 bl 8009f46 ret = USBD_FAIL; - 80087ce: 2303 movs r3, #3 - 80087d0: 75fb strb r3, [r7, #23] + 8008822: 2303 movs r3, #3 + 8008824: 75fb strb r3, [r7, #23] break; - 80087d2: bf00 nop + 8008826: bf00 nop } break; - 80087d4: e09a b.n 800890c + 8008828: e09a b.n 8008960 case USB_REQ_TYPE_STANDARD: switch (req->bRequest) - 80087d6: 683b ldr r3, [r7, #0] - 80087d8: 785b ldrb r3, [r3, #1] - 80087da: 2b0b cmp r3, #11 - 80087dc: f200 8086 bhi.w 80088ec - 80087e0: a201 add r2, pc, #4 @ (adr r2, 80087e8 ) - 80087e2: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 80087e6: bf00 nop - 80087e8: 08008819 .word 0x08008819 - 80087ec: 080088fb .word 0x080088fb - 80087f0: 080088ed .word 0x080088ed - 80087f4: 080088ed .word 0x080088ed - 80087f8: 080088ed .word 0x080088ed - 80087fc: 080088ed .word 0x080088ed - 8008800: 08008843 .word 0x08008843 - 8008804: 080088ed .word 0x080088ed - 8008808: 080088ed .word 0x080088ed - 800880c: 080088ed .word 0x080088ed - 8008810: 0800889b .word 0x0800889b - 8008814: 080088c5 .word 0x080088c5 + 800882a: 683b ldr r3, [r7, #0] + 800882c: 785b ldrb r3, [r3, #1] + 800882e: 2b0b cmp r3, #11 + 8008830: f200 8086 bhi.w 8008940 + 8008834: a201 add r2, pc, #4 @ (adr r2, 800883c ) + 8008836: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800883a: bf00 nop + 800883c: 0800886d .word 0x0800886d + 8008840: 0800894f .word 0x0800894f + 8008844: 08008941 .word 0x08008941 + 8008848: 08008941 .word 0x08008941 + 800884c: 08008941 .word 0x08008941 + 8008850: 08008941 .word 0x08008941 + 8008854: 08008897 .word 0x08008897 + 8008858: 08008941 .word 0x08008941 + 800885c: 08008941 .word 0x08008941 + 8008860: 08008941 .word 0x08008941 + 8008864: 080088ef .word 0x080088ef + 8008868: 08008919 .word 0x08008919 { case USB_REQ_GET_STATUS: if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8008818: 687b ldr r3, [r7, #4] - 800881a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800881e: b2db uxtb r3, r3 - 8008820: 2b03 cmp r3, #3 - 8008822: d107 bne.n 8008834 + 800886c: 687b ldr r3, [r7, #4] + 800886e: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8008872: b2db uxtb r3, r3 + 8008874: 2b03 cmp r3, #3 + 8008876: d107 bne.n 8008888 { (void)USBD_CtlSendData(pdev, (uint8_t *)&status_info, 2U); - 8008824: f107 030a add.w r3, r7, #10 - 8008828: 2202 movs r2, #2 - 800882a: 4619 mov r1, r3 - 800882c: 6878 ldr r0, [r7, #4] - 800882e: f001 fbdd bl 8009fec + 8008878: f107 030a add.w r3, r7, #10 + 800887c: 2202 movs r2, #2 + 800887e: 4619 mov r1, r3 + 8008880: 6878 ldr r0, [r7, #4] + 8008882: f001 fbdd bl 800a040 else { USBD_CtlError(pdev, req); ret = USBD_FAIL; } break; - 8008832: e063 b.n 80088fc + 8008886: e063 b.n 8008950 USBD_CtlError(pdev, req); - 8008834: 6839 ldr r1, [r7, #0] - 8008836: 6878 ldr r0, [r7, #4] - 8008838: f001 fb5b bl 8009ef2 + 8008888: 6839 ldr r1, [r7, #0] + 800888a: 6878 ldr r0, [r7, #4] + 800888c: f001 fb5b bl 8009f46 ret = USBD_FAIL; - 800883c: 2303 movs r3, #3 - 800883e: 75fb strb r3, [r7, #23] + 8008890: 2303 movs r3, #3 + 8008892: 75fb strb r3, [r7, #23] break; - 8008840: e05c b.n 80088fc + 8008894: e05c b.n 8008950 case USB_REQ_GET_DESCRIPTOR: if ((req->wValue >> 8) == HID_REPORT_DESC) - 8008842: 683b ldr r3, [r7, #0] - 8008844: 885b ldrh r3, [r3, #2] - 8008846: 0a1b lsrs r3, r3, #8 - 8008848: b29b uxth r3, r3 - 800884a: 2b22 cmp r3, #34 @ 0x22 - 800884c: d108 bne.n 8008860 + 8008896: 683b ldr r3, [r7, #0] + 8008898: 885b ldrh r3, [r3, #2] + 800889a: 0a1b lsrs r3, r3, #8 + 800889c: b29b uxth r3, r3 + 800889e: 2b22 cmp r3, #34 @ 0x22 + 80088a0: d108 bne.n 80088b4 { len = MIN(HID_MOUSE_REPORT_DESC_SIZE, req->wLength); - 800884e: 683b ldr r3, [r7, #0] - 8008850: 88db ldrh r3, [r3, #6] - 8008852: 2b2d cmp r3, #45 @ 0x2d - 8008854: bf28 it cs - 8008856: 232d movcs r3, #45 @ 0x2d - 8008858: 82bb strh r3, [r7, #20] + 80088a2: 683b ldr r3, [r7, #0] + 80088a4: 88db ldrh r3, [r3, #6] + 80088a6: 2b2d cmp r3, #45 @ 0x2d + 80088a8: bf28 it cs + 80088aa: 232d movcs r3, #45 @ 0x2d + 80088ac: 82bb strh r3, [r7, #20] pbuf = HID_MOUSE_ReportDesc; - 800885a: 4b2f ldr r3, [pc, #188] @ (8008918 ) - 800885c: 613b str r3, [r7, #16] - 800885e: e015 b.n 800888c + 80088ae: 4b2f ldr r3, [pc, #188] @ (800896c ) + 80088b0: 613b str r3, [r7, #16] + 80088b2: e015 b.n 80088e0 } else if ((req->wValue >> 8) == HID_DESCRIPTOR_TYPE) - 8008860: 683b ldr r3, [r7, #0] - 8008862: 885b ldrh r3, [r3, #2] - 8008864: 0a1b lsrs r3, r3, #8 - 8008866: b29b uxth r3, r3 - 8008868: 2b21 cmp r3, #33 @ 0x21 - 800886a: d108 bne.n 800887e + 80088b4: 683b ldr r3, [r7, #0] + 80088b6: 885b ldrh r3, [r3, #2] + 80088b8: 0a1b lsrs r3, r3, #8 + 80088ba: b29b uxth r3, r3 + 80088bc: 2b21 cmp r3, #33 @ 0x21 + 80088be: d108 bne.n 80088d2 { pbuf = USBD_HID_Desc; - 800886c: 4b2b ldr r3, [pc, #172] @ (800891c ) - 800886e: 613b str r3, [r7, #16] + 80088c0: 4b2b ldr r3, [pc, #172] @ (8008970 ) + 80088c2: 613b str r3, [r7, #16] len = MIN(USB_HID_DESC_SIZ, req->wLength); - 8008870: 683b ldr r3, [r7, #0] - 8008872: 88db ldrh r3, [r3, #6] - 8008874: 2b09 cmp r3, #9 - 8008876: bf28 it cs - 8008878: 2309 movcs r3, #9 - 800887a: 82bb strh r3, [r7, #20] - 800887c: e006 b.n 800888c + 80088c4: 683b ldr r3, [r7, #0] + 80088c6: 88db ldrh r3, [r3, #6] + 80088c8: 2b09 cmp r3, #9 + 80088ca: bf28 it cs + 80088cc: 2309 movcs r3, #9 + 80088ce: 82bb strh r3, [r7, #20] + 80088d0: e006 b.n 80088e0 } else { USBD_CtlError(pdev, req); - 800887e: 6839 ldr r1, [r7, #0] - 8008880: 6878 ldr r0, [r7, #4] - 8008882: f001 fb36 bl 8009ef2 + 80088d2: 6839 ldr r1, [r7, #0] + 80088d4: 6878 ldr r0, [r7, #4] + 80088d6: f001 fb36 bl 8009f46 ret = USBD_FAIL; - 8008886: 2303 movs r3, #3 - 8008888: 75fb strb r3, [r7, #23] + 80088da: 2303 movs r3, #3 + 80088dc: 75fb strb r3, [r7, #23] break; - 800888a: e037 b.n 80088fc + 80088de: e037 b.n 8008950 } (void)USBD_CtlSendData(pdev, pbuf, len); - 800888c: 8abb ldrh r3, [r7, #20] - 800888e: 461a mov r2, r3 - 8008890: 6939 ldr r1, [r7, #16] - 8008892: 6878 ldr r0, [r7, #4] - 8008894: f001 fbaa bl 8009fec + 80088e0: 8abb ldrh r3, [r7, #20] + 80088e2: 461a mov r2, r3 + 80088e4: 6939 ldr r1, [r7, #16] + 80088e6: 6878 ldr r0, [r7, #4] + 80088e8: f001 fbaa bl 800a040 break; - 8008898: e030 b.n 80088fc + 80088ec: e030 b.n 8008950 case USB_REQ_GET_INTERFACE : if (pdev->dev_state == USBD_STATE_CONFIGURED) - 800889a: 687b ldr r3, [r7, #4] - 800889c: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80088a0: b2db uxtb r3, r3 - 80088a2: 2b03 cmp r3, #3 - 80088a4: d107 bne.n 80088b6 + 80088ee: 687b ldr r3, [r7, #4] + 80088f0: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 80088f4: b2db uxtb r3, r3 + 80088f6: 2b03 cmp r3, #3 + 80088f8: d107 bne.n 800890a { (void)USBD_CtlSendData(pdev, (uint8_t *)&hhid->AltSetting, 1U); - 80088a6: 68fb ldr r3, [r7, #12] - 80088a8: 3308 adds r3, #8 - 80088aa: 2201 movs r2, #1 - 80088ac: 4619 mov r1, r3 - 80088ae: 6878 ldr r0, [r7, #4] - 80088b0: f001 fb9c bl 8009fec + 80088fa: 68fb ldr r3, [r7, #12] + 80088fc: 3308 adds r3, #8 + 80088fe: 2201 movs r2, #1 + 8008900: 4619 mov r1, r3 + 8008902: 6878 ldr r0, [r7, #4] + 8008904: f001 fb9c bl 800a040 else { USBD_CtlError(pdev, req); ret = USBD_FAIL; } break; - 80088b4: e022 b.n 80088fc + 8008908: e022 b.n 8008950 USBD_CtlError(pdev, req); - 80088b6: 6839 ldr r1, [r7, #0] - 80088b8: 6878 ldr r0, [r7, #4] - 80088ba: f001 fb1a bl 8009ef2 + 800890a: 6839 ldr r1, [r7, #0] + 800890c: 6878 ldr r0, [r7, #4] + 800890e: f001 fb1a bl 8009f46 ret = USBD_FAIL; - 80088be: 2303 movs r3, #3 - 80088c0: 75fb strb r3, [r7, #23] + 8008912: 2303 movs r3, #3 + 8008914: 75fb strb r3, [r7, #23] break; - 80088c2: e01b b.n 80088fc + 8008916: e01b b.n 8008950 case USB_REQ_SET_INTERFACE: if (pdev->dev_state == USBD_STATE_CONFIGURED) - 80088c4: 687b ldr r3, [r7, #4] - 80088c6: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80088ca: b2db uxtb r3, r3 - 80088cc: 2b03 cmp r3, #3 - 80088ce: d106 bne.n 80088de + 8008918: 687b ldr r3, [r7, #4] + 800891a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800891e: b2db uxtb r3, r3 + 8008920: 2b03 cmp r3, #3 + 8008922: d106 bne.n 8008932 { hhid->AltSetting = (uint8_t)(req->wValue); - 80088d0: 683b ldr r3, [r7, #0] - 80088d2: 885b ldrh r3, [r3, #2] - 80088d4: b2db uxtb r3, r3 - 80088d6: 461a mov r2, r3 - 80088d8: 68fb ldr r3, [r7, #12] - 80088da: 609a str r2, [r3, #8] + 8008924: 683b ldr r3, [r7, #0] + 8008926: 885b ldrh r3, [r3, #2] + 8008928: b2db uxtb r3, r3 + 800892a: 461a mov r2, r3 + 800892c: 68fb ldr r3, [r7, #12] + 800892e: 609a str r2, [r3, #8] else { USBD_CtlError(pdev, req); ret = USBD_FAIL; } break; - 80088dc: e00e b.n 80088fc + 8008930: e00e b.n 8008950 USBD_CtlError(pdev, req); - 80088de: 6839 ldr r1, [r7, #0] - 80088e0: 6878 ldr r0, [r7, #4] - 80088e2: f001 fb06 bl 8009ef2 + 8008932: 6839 ldr r1, [r7, #0] + 8008934: 6878 ldr r0, [r7, #4] + 8008936: f001 fb06 bl 8009f46 ret = USBD_FAIL; - 80088e6: 2303 movs r3, #3 - 80088e8: 75fb strb r3, [r7, #23] + 800893a: 2303 movs r3, #3 + 800893c: 75fb strb r3, [r7, #23] break; - 80088ea: e007 b.n 80088fc + 800893e: e007 b.n 8008950 case USB_REQ_CLEAR_FEATURE: break; default: USBD_CtlError(pdev, req); - 80088ec: 6839 ldr r1, [r7, #0] - 80088ee: 6878 ldr r0, [r7, #4] - 80088f0: f001 faff bl 8009ef2 + 8008940: 6839 ldr r1, [r7, #0] + 8008942: 6878 ldr r0, [r7, #4] + 8008944: f001 faff bl 8009f46 ret = USBD_FAIL; - 80088f4: 2303 movs r3, #3 - 80088f6: 75fb strb r3, [r7, #23] + 8008948: 2303 movs r3, #3 + 800894a: 75fb strb r3, [r7, #23] break; - 80088f8: e000 b.n 80088fc + 800894c: e000 b.n 8008950 break; - 80088fa: bf00 nop + 800894e: bf00 nop } break; - 80088fc: e006 b.n 800890c + 8008950: e006 b.n 8008960 default: USBD_CtlError(pdev, req); - 80088fe: 6839 ldr r1, [r7, #0] - 8008900: 6878 ldr r0, [r7, #4] - 8008902: f001 faf6 bl 8009ef2 + 8008952: 6839 ldr r1, [r7, #0] + 8008954: 6878 ldr r0, [r7, #4] + 8008956: f001 faf6 bl 8009f46 ret = USBD_FAIL; - 8008906: 2303 movs r3, #3 - 8008908: 75fb strb r3, [r7, #23] + 800895a: 2303 movs r3, #3 + 800895c: 75fb strb r3, [r7, #23] break; - 800890a: bf00 nop + 800895e: bf00 nop } return (uint8_t)ret; - 800890c: 7dfb ldrb r3, [r7, #23] + 8008960: 7dfb ldrb r3, [r7, #23] } - 800890e: 4618 mov r0, r3 - 8008910: 3718 adds r7, #24 - 8008912: 46bd mov sp, r7 - 8008914: bd80 pop {r7, pc} - 8008916: bf00 nop - 8008918: 20000110 .word 0x20000110 - 800891c: 200000f8 .word 0x200000f8 + 8008962: 4618 mov r0, r3 + 8008964: 3718 adds r7, #24 + 8008966: 46bd mov sp, r7 + 8008968: bd80 pop {r7, pc} + 800896a: bf00 nop + 800896c: 20000110 .word 0x20000110 + 8008970: 200000f8 .word 0x200000f8 -08008920 : +08008974 : uint8_t USBD_HID_SendReport(USBD_HandleTypeDef *pdev, uint8_t *report, uint16_t len, uint8_t ClassId) { USBD_HID_HandleTypeDef *hhid = (USBD_HID_HandleTypeDef *)pdev->pClassDataCmsit[ClassId]; #else uint8_t USBD_HID_SendReport(USBD_HandleTypeDef *pdev, uint8_t *report, uint16_t len) { - 8008920: b580 push {r7, lr} - 8008922: b086 sub sp, #24 - 8008924: af00 add r7, sp, #0 - 8008926: 60f8 str r0, [r7, #12] - 8008928: 60b9 str r1, [r7, #8] - 800892a: 4613 mov r3, r2 - 800892c: 80fb strh r3, [r7, #6] + 8008974: b580 push {r7, lr} + 8008976: b086 sub sp, #24 + 8008978: af00 add r7, sp, #0 + 800897a: 60f8 str r0, [r7, #12] + 800897c: 60b9 str r1, [r7, #8] + 800897e: 4613 mov r3, r2 + 8008980: 80fb strh r3, [r7, #6] USBD_HID_HandleTypeDef *hhid = (USBD_HID_HandleTypeDef *)pdev->pClassDataCmsit[pdev->classId]; - 800892e: 68fb ldr r3, [r7, #12] - 8008930: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8008934: 68fb ldr r3, [r7, #12] - 8008936: 32b0 adds r2, #176 @ 0xb0 - 8008938: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800893c: 617b str r3, [r7, #20] + 8008982: 68fb ldr r3, [r7, #12] + 8008984: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008988: 68fb ldr r3, [r7, #12] + 800898a: 32b0 adds r2, #176 @ 0xb0 + 800898c: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008990: 617b str r3, [r7, #20] #endif /* USE_USBD_COMPOSITE */ if (hhid == NULL) - 800893e: 697b ldr r3, [r7, #20] - 8008940: 2b00 cmp r3, #0 - 8008942: d101 bne.n 8008948 + 8008992: 697b ldr r3, [r7, #20] + 8008994: 2b00 cmp r3, #0 + 8008996: d101 bne.n 800899c { return (uint8_t)USBD_FAIL; - 8008944: 2303 movs r3, #3 - 8008946: e014 b.n 8008972 + 8008998: 2303 movs r3, #3 + 800899a: e014 b.n 80089c6 #ifdef USE_USBD_COMPOSITE /* Get the Endpoints addresses allocated for this class instance */ HIDInEpAdd = USBD_CoreGetEPAdd(pdev, USBD_EP_IN, USBD_EP_TYPE_INTR, ClassId); #endif /* USE_USBD_COMPOSITE */ if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8008948: 68fb ldr r3, [r7, #12] - 800894a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800894e: b2db uxtb r3, r3 - 8008950: 2b03 cmp r3, #3 - 8008952: d10d bne.n 8008970 + 800899c: 68fb ldr r3, [r7, #12] + 800899e: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 80089a2: b2db uxtb r3, r3 + 80089a4: 2b03 cmp r3, #3 + 80089a6: d10d bne.n 80089c4 { if (hhid->state == USBD_HID_IDLE) - 8008954: 697b ldr r3, [r7, #20] - 8008956: 7b1b ldrb r3, [r3, #12] - 8008958: 2b00 cmp r3, #0 - 800895a: d109 bne.n 8008970 + 80089a8: 697b ldr r3, [r7, #20] + 80089aa: 7b1b ldrb r3, [r3, #12] + 80089ac: 2b00 cmp r3, #0 + 80089ae: d109 bne.n 80089c4 { hhid->state = USBD_HID_BUSY; - 800895c: 697b ldr r3, [r7, #20] - 800895e: 2201 movs r2, #1 - 8008960: 731a strb r2, [r3, #12] + 80089b0: 697b ldr r3, [r7, #20] + 80089b2: 2201 movs r2, #1 + 80089b4: 731a strb r2, [r3, #12] (void)USBD_LL_Transmit(pdev, HIDInEpAdd, report, len); - 8008962: 4b06 ldr r3, [pc, #24] @ (800897c ) - 8008964: 7819 ldrb r1, [r3, #0] - 8008966: 88fb ldrh r3, [r7, #6] - 8008968: 68ba ldr r2, [r7, #8] - 800896a: 68f8 ldr r0, [r7, #12] - 800896c: f001 ff7d bl 800a86a + 80089b6: 4b06 ldr r3, [pc, #24] @ (80089d0 ) + 80089b8: 7819 ldrb r1, [r3, #0] + 80089ba: 88fb ldrh r3, [r7, #6] + 80089bc: 68ba ldr r2, [r7, #8] + 80089be: 68f8 ldr r0, [r7, #12] + 80089c0: f001 ff7d bl 800a8be } } return (uint8_t)USBD_OK; - 8008970: 2300 movs r3, #0 + 80089c4: 2300 movs r3, #0 } - 8008972: 4618 mov r0, r3 - 8008974: 3718 adds r7, #24 - 8008976: 46bd mov sp, r7 - 8008978: bd80 pop {r7, pc} - 800897a: bf00 nop - 800897c: 2000013d .word 0x2000013d + 80089c6: 4618 mov r0, r3 + 80089c8: 3718 adds r7, #24 + 80089ca: 46bd mov sp, r7 + 80089cc: bd80 pop {r7, pc} + 80089ce: bf00 nop + 80089d0: 2000013d .word 0x2000013d -08008980 : +080089d4 : * @param speed : current device speed * @param length : pointer data length * @retval pointer to descriptor buffer */ static uint8_t *USBD_HID_GetFSCfgDesc(uint16_t *length) { - 8008980: b580 push {r7, lr} - 8008982: b084 sub sp, #16 - 8008984: af00 add r7, sp, #0 - 8008986: 6078 str r0, [r7, #4] + 80089d4: b580 push {r7, lr} + 80089d6: b084 sub sp, #16 + 80089d8: af00 add r7, sp, #0 + 80089da: 6078 str r0, [r7, #4] USBD_EpDescTypeDef *pEpDesc = USBD_GetEpDesc(USBD_HID_CfgDesc, HID_EPIN_ADDR); - 8008988: 2181 movs r1, #129 @ 0x81 - 800898a: 4809 ldr r0, [pc, #36] @ (80089b0 ) - 800898c: f000 fc4e bl 800922c - 8008990: 60f8 str r0, [r7, #12] + 80089dc: 2181 movs r1, #129 @ 0x81 + 80089de: 4809 ldr r0, [pc, #36] @ (8008a04 ) + 80089e0: f000 fc4e bl 8009280 + 80089e4: 60f8 str r0, [r7, #12] if (pEpDesc != NULL) - 8008992: 68fb ldr r3, [r7, #12] - 8008994: 2b00 cmp r3, #0 - 8008996: d002 beq.n 800899e + 80089e6: 68fb ldr r3, [r7, #12] + 80089e8: 2b00 cmp r3, #0 + 80089ea: d002 beq.n 80089f2 { pEpDesc->bInterval = HID_FS_BINTERVAL; - 8008998: 68fb ldr r3, [r7, #12] - 800899a: 220a movs r2, #10 - 800899c: 719a strb r2, [r3, #6] + 80089ec: 68fb ldr r3, [r7, #12] + 80089ee: 220a movs r2, #10 + 80089f0: 719a strb r2, [r3, #6] } *length = (uint16_t)sizeof(USBD_HID_CfgDesc); - 800899e: 687b ldr r3, [r7, #4] - 80089a0: 2222 movs r2, #34 @ 0x22 - 80089a2: 801a strh r2, [r3, #0] + 80089f2: 687b ldr r3, [r7, #4] + 80089f4: 2222 movs r2, #34 @ 0x22 + 80089f6: 801a strh r2, [r3, #0] return USBD_HID_CfgDesc; - 80089a4: 4b02 ldr r3, [pc, #8] @ (80089b0 ) + 80089f8: 4b02 ldr r3, [pc, #8] @ (8008a04 ) } - 80089a6: 4618 mov r0, r3 - 80089a8: 3710 adds r7, #16 - 80089aa: 46bd mov sp, r7 - 80089ac: bd80 pop {r7, pc} - 80089ae: bf00 nop - 80089b0: 200000d4 .word 0x200000d4 + 80089fa: 4618 mov r0, r3 + 80089fc: 3710 adds r7, #16 + 80089fe: 46bd mov sp, r7 + 8008a00: bd80 pop {r7, pc} + 8008a02: bf00 nop + 8008a04: 200000d4 .word 0x200000d4 -080089b4 : +08008a08 : * @param speed : current device speed * @param length : pointer data length * @retval pointer to descriptor buffer */ static uint8_t *USBD_HID_GetHSCfgDesc(uint16_t *length) { - 80089b4: b580 push {r7, lr} - 80089b6: b084 sub sp, #16 - 80089b8: af00 add r7, sp, #0 - 80089ba: 6078 str r0, [r7, #4] + 8008a08: b580 push {r7, lr} + 8008a0a: b084 sub sp, #16 + 8008a0c: af00 add r7, sp, #0 + 8008a0e: 6078 str r0, [r7, #4] USBD_EpDescTypeDef *pEpDesc = USBD_GetEpDesc(USBD_HID_CfgDesc, HID_EPIN_ADDR); - 80089bc: 2181 movs r1, #129 @ 0x81 - 80089be: 4809 ldr r0, [pc, #36] @ (80089e4 ) - 80089c0: f000 fc34 bl 800922c - 80089c4: 60f8 str r0, [r7, #12] + 8008a10: 2181 movs r1, #129 @ 0x81 + 8008a12: 4809 ldr r0, [pc, #36] @ (8008a38 ) + 8008a14: f000 fc34 bl 8009280 + 8008a18: 60f8 str r0, [r7, #12] if (pEpDesc != NULL) - 80089c6: 68fb ldr r3, [r7, #12] - 80089c8: 2b00 cmp r3, #0 - 80089ca: d002 beq.n 80089d2 + 8008a1a: 68fb ldr r3, [r7, #12] + 8008a1c: 2b00 cmp r3, #0 + 8008a1e: d002 beq.n 8008a26 { pEpDesc->bInterval = HID_HS_BINTERVAL; - 80089cc: 68fb ldr r3, [r7, #12] - 80089ce: 2207 movs r2, #7 - 80089d0: 719a strb r2, [r3, #6] + 8008a20: 68fb ldr r3, [r7, #12] + 8008a22: 2207 movs r2, #7 + 8008a24: 719a strb r2, [r3, #6] } *length = (uint16_t)sizeof(USBD_HID_CfgDesc); - 80089d2: 687b ldr r3, [r7, #4] - 80089d4: 2222 movs r2, #34 @ 0x22 - 80089d6: 801a strh r2, [r3, #0] + 8008a26: 687b ldr r3, [r7, #4] + 8008a28: 2222 movs r2, #34 @ 0x22 + 8008a2a: 801a strh r2, [r3, #0] return USBD_HID_CfgDesc; - 80089d8: 4b02 ldr r3, [pc, #8] @ (80089e4 ) + 8008a2c: 4b02 ldr r3, [pc, #8] @ (8008a38 ) } - 80089da: 4618 mov r0, r3 - 80089dc: 3710 adds r7, #16 - 80089de: 46bd mov sp, r7 - 80089e0: bd80 pop {r7, pc} - 80089e2: bf00 nop - 80089e4: 200000d4 .word 0x200000d4 + 8008a2e: 4618 mov r0, r3 + 8008a30: 3710 adds r7, #16 + 8008a32: 46bd mov sp, r7 + 8008a34: bd80 pop {r7, pc} + 8008a36: bf00 nop + 8008a38: 200000d4 .word 0x200000d4 -080089e8 : +08008a3c : * @param speed : current device speed * @param length : pointer data length * @retval pointer to descriptor buffer */ static uint8_t *USBD_HID_GetOtherSpeedCfgDesc(uint16_t *length) { - 80089e8: b580 push {r7, lr} - 80089ea: b084 sub sp, #16 - 80089ec: af00 add r7, sp, #0 - 80089ee: 6078 str r0, [r7, #4] + 8008a3c: b580 push {r7, lr} + 8008a3e: b084 sub sp, #16 + 8008a40: af00 add r7, sp, #0 + 8008a42: 6078 str r0, [r7, #4] USBD_EpDescTypeDef *pEpDesc = USBD_GetEpDesc(USBD_HID_CfgDesc, HID_EPIN_ADDR); - 80089f0: 2181 movs r1, #129 @ 0x81 - 80089f2: 4809 ldr r0, [pc, #36] @ (8008a18 ) - 80089f4: f000 fc1a bl 800922c - 80089f8: 60f8 str r0, [r7, #12] + 8008a44: 2181 movs r1, #129 @ 0x81 + 8008a46: 4809 ldr r0, [pc, #36] @ (8008a6c ) + 8008a48: f000 fc1a bl 8009280 + 8008a4c: 60f8 str r0, [r7, #12] if (pEpDesc != NULL) - 80089fa: 68fb ldr r3, [r7, #12] - 80089fc: 2b00 cmp r3, #0 - 80089fe: d002 beq.n 8008a06 + 8008a4e: 68fb ldr r3, [r7, #12] + 8008a50: 2b00 cmp r3, #0 + 8008a52: d002 beq.n 8008a5a { pEpDesc->bInterval = HID_FS_BINTERVAL; - 8008a00: 68fb ldr r3, [r7, #12] - 8008a02: 220a movs r2, #10 - 8008a04: 719a strb r2, [r3, #6] + 8008a54: 68fb ldr r3, [r7, #12] + 8008a56: 220a movs r2, #10 + 8008a58: 719a strb r2, [r3, #6] } *length = (uint16_t)sizeof(USBD_HID_CfgDesc); - 8008a06: 687b ldr r3, [r7, #4] - 8008a08: 2222 movs r2, #34 @ 0x22 - 8008a0a: 801a strh r2, [r3, #0] + 8008a5a: 687b ldr r3, [r7, #4] + 8008a5c: 2222 movs r2, #34 @ 0x22 + 8008a5e: 801a strh r2, [r3, #0] return USBD_HID_CfgDesc; - 8008a0c: 4b02 ldr r3, [pc, #8] @ (8008a18 ) + 8008a60: 4b02 ldr r3, [pc, #8] @ (8008a6c ) } - 8008a0e: 4618 mov r0, r3 - 8008a10: 3710 adds r7, #16 - 8008a12: 46bd mov sp, r7 - 8008a14: bd80 pop {r7, pc} - 8008a16: bf00 nop - 8008a18: 200000d4 .word 0x200000d4 + 8008a62: 4618 mov r0, r3 + 8008a64: 3710 adds r7, #16 + 8008a66: 46bd mov sp, r7 + 8008a68: bd80 pop {r7, pc} + 8008a6a: bf00 nop + 8008a6c: 200000d4 .word 0x200000d4 -08008a1c : +08008a70 : * @param pdev: device instance * @param epnum: endpoint index * @retval status */ static uint8_t USBD_HID_DataIn(USBD_HandleTypeDef *pdev, uint8_t epnum) { - 8008a1c: b480 push {r7} - 8008a1e: b083 sub sp, #12 - 8008a20: af00 add r7, sp, #0 - 8008a22: 6078 str r0, [r7, #4] - 8008a24: 460b mov r3, r1 - 8008a26: 70fb strb r3, [r7, #3] + 8008a70: b480 push {r7} + 8008a72: b083 sub sp, #12 + 8008a74: af00 add r7, sp, #0 + 8008a76: 6078 str r0, [r7, #4] + 8008a78: 460b mov r3, r1 + 8008a7a: 70fb strb r3, [r7, #3] UNUSED(epnum); /* Ensure that the FIFO is empty before a new transfer, this condition could be caused by a new transfer before the end of the previous transfer */ ((USBD_HID_HandleTypeDef *)pdev->pClassDataCmsit[pdev->classId])->state = USBD_HID_IDLE; - 8008a28: 687b ldr r3, [r7, #4] - 8008a2a: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8008a2e: 687b ldr r3, [r7, #4] - 8008a30: 32b0 adds r2, #176 @ 0xb0 - 8008a32: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8008a36: 2200 movs r2, #0 - 8008a38: 731a strb r2, [r3, #12] + 8008a7c: 687b ldr r3, [r7, #4] + 8008a7e: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008a82: 687b ldr r3, [r7, #4] + 8008a84: 32b0 adds r2, #176 @ 0xb0 + 8008a86: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008a8a: 2200 movs r2, #0 + 8008a8c: 731a strb r2, [r3, #12] return (uint8_t)USBD_OK; - 8008a3a: 2300 movs r3, #0 + 8008a8e: 2300 movs r3, #0 } - 8008a3c: 4618 mov r0, r3 - 8008a3e: 370c adds r7, #12 - 8008a40: 46bd mov sp, r7 - 8008a42: f85d 7b04 ldr.w r7, [sp], #4 - 8008a46: 4770 bx lr + 8008a90: 4618 mov r0, r3 + 8008a92: 370c adds r7, #12 + 8008a94: 46bd mov sp, r7 + 8008a96: f85d 7b04 ldr.w r7, [sp], #4 + 8008a9a: 4770 bx lr -08008a48 : +08008a9c : * return Device Qualifier descriptor * @param length : pointer data length * @retval pointer to descriptor buffer */ static uint8_t *USBD_HID_GetDeviceQualifierDesc(uint16_t *length) { - 8008a48: b480 push {r7} - 8008a4a: b083 sub sp, #12 - 8008a4c: af00 add r7, sp, #0 - 8008a4e: 6078 str r0, [r7, #4] + 8008a9c: b480 push {r7} + 8008a9e: b083 sub sp, #12 + 8008aa0: af00 add r7, sp, #0 + 8008aa2: 6078 str r0, [r7, #4] *length = (uint16_t)sizeof(USBD_HID_DeviceQualifierDesc); - 8008a50: 687b ldr r3, [r7, #4] - 8008a52: 220a movs r2, #10 - 8008a54: 801a strh r2, [r3, #0] + 8008aa4: 687b ldr r3, [r7, #4] + 8008aa6: 220a movs r2, #10 + 8008aa8: 801a strh r2, [r3, #0] return USBD_HID_DeviceQualifierDesc; - 8008a56: 4b03 ldr r3, [pc, #12] @ (8008a64 ) + 8008aaa: 4b03 ldr r3, [pc, #12] @ (8008ab8 ) } - 8008a58: 4618 mov r0, r3 - 8008a5a: 370c adds r7, #12 - 8008a5c: 46bd mov sp, r7 - 8008a5e: f85d 7b04 ldr.w r7, [sp], #4 - 8008a62: 4770 bx lr - 8008a64: 20000104 .word 0x20000104 + 8008aac: 4618 mov r0, r3 + 8008aae: 370c adds r7, #12 + 8008ab0: 46bd mov sp, r7 + 8008ab2: f85d 7b04 ldr.w r7, [sp], #4 + 8008ab6: 4770 bx lr + 8008ab8: 20000104 .word 0x20000104 -08008a68 : +08008abc : * @param id: Low level core index * @retval status: USBD Status */ USBD_StatusTypeDef USBD_Init(USBD_HandleTypeDef *pdev, USBD_DescriptorsTypeDef *pdesc, uint8_t id) { - 8008a68: b580 push {r7, lr} - 8008a6a: b086 sub sp, #24 - 8008a6c: af00 add r7, sp, #0 - 8008a6e: 60f8 str r0, [r7, #12] - 8008a70: 60b9 str r1, [r7, #8] - 8008a72: 4613 mov r3, r2 - 8008a74: 71fb strb r3, [r7, #7] + 8008abc: b580 push {r7, lr} + 8008abe: b086 sub sp, #24 + 8008ac0: af00 add r7, sp, #0 + 8008ac2: 60f8 str r0, [r7, #12] + 8008ac4: 60b9 str r1, [r7, #8] + 8008ac6: 4613 mov r3, r2 + 8008ac8: 71fb strb r3, [r7, #7] USBD_StatusTypeDef ret; /* Check whether the USB Host handle is valid */ if (pdev == NULL) - 8008a76: 68fb ldr r3, [r7, #12] - 8008a78: 2b00 cmp r3, #0 - 8008a7a: d101 bne.n 8008a80 + 8008aca: 68fb ldr r3, [r7, #12] + 8008acc: 2b00 cmp r3, #0 + 8008ace: d101 bne.n 8008ad4 { #if (USBD_DEBUG_LEVEL > 1U) USBD_ErrLog("Invalid Device handle"); #endif /* (USBD_DEBUG_LEVEL > 1U) */ return USBD_FAIL; - 8008a7c: 2303 movs r3, #3 - 8008a7e: e01f b.n 8008ac0 + 8008ad0: 2303 movs r3, #3 + 8008ad2: e01f b.n 8008b14 pdev->NumClasses = 0; pdev->classId = 0; } #else /* Unlink previous class*/ pdev->pClass[0] = NULL; - 8008a80: 68fb ldr r3, [r7, #12] - 8008a82: 2200 movs r2, #0 - 8008a84: f8c3 22b8 str.w r2, [r3, #696] @ 0x2b8 + 8008ad4: 68fb ldr r3, [r7, #12] + 8008ad6: 2200 movs r2, #0 + 8008ad8: f8c3 22b8 str.w r2, [r3, #696] @ 0x2b8 pdev->pUserData[0] = NULL; - 8008a88: 68fb ldr r3, [r7, #12] - 8008a8a: 2200 movs r2, #0 - 8008a8c: f8c3 22c4 str.w r2, [r3, #708] @ 0x2c4 + 8008adc: 68fb ldr r3, [r7, #12] + 8008ade: 2200 movs r2, #0 + 8008ae0: f8c3 22c4 str.w r2, [r3, #708] @ 0x2c4 #endif /* USE_USBD_COMPOSITE */ pdev->pConfDesc = NULL; - 8008a90: 68fb ldr r3, [r7, #12] - 8008a92: 2200 movs r2, #0 - 8008a94: f8c3 22d0 str.w r2, [r3, #720] @ 0x2d0 + 8008ae4: 68fb ldr r3, [r7, #12] + 8008ae6: 2200 movs r2, #0 + 8008ae8: f8c3 22d0 str.w r2, [r3, #720] @ 0x2d0 /* Assign USBD Descriptors */ if (pdesc != NULL) - 8008a98: 68bb ldr r3, [r7, #8] - 8008a9a: 2b00 cmp r3, #0 - 8008a9c: d003 beq.n 8008aa6 + 8008aec: 68bb ldr r3, [r7, #8] + 8008aee: 2b00 cmp r3, #0 + 8008af0: d003 beq.n 8008afa { pdev->pDesc = pdesc; - 8008a9e: 68fb ldr r3, [r7, #12] - 8008aa0: 68ba ldr r2, [r7, #8] - 8008aa2: f8c3 22b4 str.w r2, [r3, #692] @ 0x2b4 + 8008af2: 68fb ldr r3, [r7, #12] + 8008af4: 68ba ldr r2, [r7, #8] + 8008af6: f8c3 22b4 str.w r2, [r3, #692] @ 0x2b4 } /* Set Device initial State */ pdev->dev_state = USBD_STATE_DEFAULT; - 8008aa6: 68fb ldr r3, [r7, #12] - 8008aa8: 2201 movs r2, #1 - 8008aaa: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8008afa: 68fb ldr r3, [r7, #12] + 8008afc: 2201 movs r2, #1 + 8008afe: f883 229c strb.w r2, [r3, #668] @ 0x29c pdev->id = id; - 8008aae: 68fb ldr r3, [r7, #12] - 8008ab0: 79fa ldrb r2, [r7, #7] - 8008ab2: 701a strb r2, [r3, #0] + 8008b02: 68fb ldr r3, [r7, #12] + 8008b04: 79fa ldrb r2, [r7, #7] + 8008b06: 701a strb r2, [r3, #0] /* Initialize low level driver */ ret = USBD_LL_Init(pdev); - 8008ab4: 68f8 ldr r0, [r7, #12] - 8008ab6: f001 fda3 bl 800a600 - 8008aba: 4603 mov r3, r0 - 8008abc: 75fb strb r3, [r7, #23] + 8008b08: 68f8 ldr r0, [r7, #12] + 8008b0a: f001 fda3 bl 800a654 + 8008b0e: 4603 mov r3, r0 + 8008b10: 75fb strb r3, [r7, #23] return ret; - 8008abe: 7dfb ldrb r3, [r7, #23] + 8008b12: 7dfb ldrb r3, [r7, #23] } - 8008ac0: 4618 mov r0, r3 - 8008ac2: 3718 adds r7, #24 - 8008ac4: 46bd mov sp, r7 - 8008ac6: bd80 pop {r7, pc} + 8008b14: 4618 mov r0, r3 + 8008b16: 3718 adds r7, #24 + 8008b18: 46bd mov sp, r7 + 8008b1a: bd80 pop {r7, pc} -08008ac8 : +08008b1c : * @param pdev: Device Handle * @param pclass: Class handle * @retval USBD Status */ USBD_StatusTypeDef USBD_RegisterClass(USBD_HandleTypeDef *pdev, USBD_ClassTypeDef *pclass) { - 8008ac8: b580 push {r7, lr} - 8008aca: b084 sub sp, #16 - 8008acc: af00 add r7, sp, #0 - 8008ace: 6078 str r0, [r7, #4] - 8008ad0: 6039 str r1, [r7, #0] + 8008b1c: b580 push {r7, lr} + 8008b1e: b084 sub sp, #16 + 8008b20: af00 add r7, sp, #0 + 8008b22: 6078 str r0, [r7, #4] + 8008b24: 6039 str r1, [r7, #0] uint16_t len = 0U; - 8008ad2: 2300 movs r3, #0 - 8008ad4: 81fb strh r3, [r7, #14] + 8008b26: 2300 movs r3, #0 + 8008b28: 81fb strh r3, [r7, #14] if (pclass == NULL) - 8008ad6: 683b ldr r3, [r7, #0] - 8008ad8: 2b00 cmp r3, #0 - 8008ada: d101 bne.n 8008ae0 + 8008b2a: 683b ldr r3, [r7, #0] + 8008b2c: 2b00 cmp r3, #0 + 8008b2e: d101 bne.n 8008b34 { #if (USBD_DEBUG_LEVEL > 1U) USBD_ErrLog("Invalid Class handle"); #endif /* (USBD_DEBUG_LEVEL > 1U) */ return USBD_FAIL; - 8008adc: 2303 movs r3, #3 - 8008ade: e025 b.n 8008b2c + 8008b30: 2303 movs r3, #3 + 8008b32: e025 b.n 8008b80 } /* link the class to the USB Device handle */ pdev->pClass[0] = pclass; - 8008ae0: 687b ldr r3, [r7, #4] - 8008ae2: 683a ldr r2, [r7, #0] - 8008ae4: f8c3 22b8 str.w r2, [r3, #696] @ 0x2b8 + 8008b34: 687b ldr r3, [r7, #4] + 8008b36: 683a ldr r2, [r7, #0] + 8008b38: f8c3 22b8 str.w r2, [r3, #696] @ 0x2b8 if (pdev->pClass[pdev->classId]->GetHSConfigDescriptor != NULL) { pdev->pConfDesc = (void *)pdev->pClass[pdev->classId]->GetHSConfigDescriptor(&len); } #else /* Default USE_USB_FS */ if (pdev->pClass[pdev->classId]->GetFSConfigDescriptor != NULL) - 8008ae8: 687b ldr r3, [r7, #4] - 8008aea: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8008aee: 687b ldr r3, [r7, #4] - 8008af0: 32ae adds r2, #174 @ 0xae - 8008af2: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8008af6: 6adb ldr r3, [r3, #44] @ 0x2c - 8008af8: 2b00 cmp r3, #0 - 8008afa: d00f beq.n 8008b1c + 8008b3c: 687b ldr r3, [r7, #4] + 8008b3e: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008b42: 687b ldr r3, [r7, #4] + 8008b44: 32ae adds r2, #174 @ 0xae + 8008b46: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008b4a: 6adb ldr r3, [r3, #44] @ 0x2c + 8008b4c: 2b00 cmp r3, #0 + 8008b4e: d00f beq.n 8008b70 { pdev->pConfDesc = (void *)pdev->pClass[pdev->classId]->GetFSConfigDescriptor(&len); - 8008afc: 687b ldr r3, [r7, #4] - 8008afe: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8008b02: 687b ldr r3, [r7, #4] - 8008b04: 32ae adds r2, #174 @ 0xae - 8008b06: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8008b0a: 6adb ldr r3, [r3, #44] @ 0x2c - 8008b0c: f107 020e add.w r2, r7, #14 - 8008b10: 4610 mov r0, r2 - 8008b12: 4798 blx r3 - 8008b14: 4602 mov r2, r0 - 8008b16: 687b ldr r3, [r7, #4] - 8008b18: f8c3 22d0 str.w r2, [r3, #720] @ 0x2d0 + 8008b50: 687b ldr r3, [r7, #4] + 8008b52: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008b56: 687b ldr r3, [r7, #4] + 8008b58: 32ae adds r2, #174 @ 0xae + 8008b5a: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008b5e: 6adb ldr r3, [r3, #44] @ 0x2c + 8008b60: f107 020e add.w r2, r7, #14 + 8008b64: 4610 mov r0, r2 + 8008b66: 4798 blx r3 + 8008b68: 4602 mov r2, r0 + 8008b6a: 687b ldr r3, [r7, #4] + 8008b6c: f8c3 22d0 str.w r2, [r3, #720] @ 0x2d0 } #endif /* USE_USB_FS */ /* Increment the NumClasses */ pdev->NumClasses++; - 8008b1c: 687b ldr r3, [r7, #4] - 8008b1e: f8d3 32d8 ldr.w r3, [r3, #728] @ 0x2d8 - 8008b22: 1c5a adds r2, r3, #1 - 8008b24: 687b ldr r3, [r7, #4] - 8008b26: f8c3 22d8 str.w r2, [r3, #728] @ 0x2d8 + 8008b70: 687b ldr r3, [r7, #4] + 8008b72: f8d3 32d8 ldr.w r3, [r3, #728] @ 0x2d8 + 8008b76: 1c5a adds r2, r3, #1 + 8008b78: 687b ldr r3, [r7, #4] + 8008b7a: f8c3 22d8 str.w r2, [r3, #728] @ 0x2d8 return USBD_OK; - 8008b2a: 2300 movs r3, #0 + 8008b7e: 2300 movs r3, #0 } - 8008b2c: 4618 mov r0, r3 - 8008b2e: 3710 adds r7, #16 - 8008b30: 46bd mov sp, r7 - 8008b32: bd80 pop {r7, pc} + 8008b80: 4618 mov r0, r3 + 8008b82: 3710 adds r7, #16 + 8008b84: 46bd mov sp, r7 + 8008b86: bd80 pop {r7, pc} -08008b34 : +08008b88 : * Start the USB Device Core. * @param pdev: Device Handle * @retval USBD Status */ USBD_StatusTypeDef USBD_Start(USBD_HandleTypeDef *pdev) { - 8008b34: b580 push {r7, lr} - 8008b36: b082 sub sp, #8 - 8008b38: af00 add r7, sp, #0 - 8008b3a: 6078 str r0, [r7, #4] + 8008b88: b580 push {r7, lr} + 8008b8a: b082 sub sp, #8 + 8008b8c: af00 add r7, sp, #0 + 8008b8e: 6078 str r0, [r7, #4] #ifdef USE_USBD_COMPOSITE pdev->classId = 0U; #endif /* USE_USBD_COMPOSITE */ /* Start the low level driver */ return USBD_LL_Start(pdev); - 8008b3c: 6878 ldr r0, [r7, #4] - 8008b3e: f001 fdab bl 800a698 - 8008b42: 4603 mov r3, r0 + 8008b90: 6878 ldr r0, [r7, #4] + 8008b92: f001 fdab bl 800a6ec + 8008b96: 4603 mov r3, r0 } - 8008b44: 4618 mov r0, r3 - 8008b46: 3708 adds r7, #8 - 8008b48: 46bd mov sp, r7 - 8008b4a: bd80 pop {r7, pc} + 8008b98: 4618 mov r0, r3 + 8008b9a: 3708 adds r7, #8 + 8008b9c: 46bd mov sp, r7 + 8008b9e: bd80 pop {r7, pc} -08008b4c : +08008ba0 : * Launch test mode process * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_RunTestMode(USBD_HandleTypeDef *pdev) { - 8008b4c: b480 push {r7} - 8008b4e: b083 sub sp, #12 - 8008b50: af00 add r7, sp, #0 - 8008b52: 6078 str r0, [r7, #4] + 8008ba0: b480 push {r7} + 8008ba2: b083 sub sp, #12 + 8008ba4: af00 add r7, sp, #0 + 8008ba6: 6078 str r0, [r7, #4] return ret; #else /* Prevent unused argument compilation warning */ UNUSED(pdev); return USBD_OK; - 8008b54: 2300 movs r3, #0 + 8008ba8: 2300 movs r3, #0 #endif /* USBD_HS_TESTMODE_ENABLE */ } - 8008b56: 4618 mov r0, r3 - 8008b58: 370c adds r7, #12 - 8008b5a: 46bd mov sp, r7 - 8008b5c: f85d 7b04 ldr.w r7, [sp], #4 - 8008b60: 4770 bx lr + 8008baa: 4618 mov r0, r3 + 8008bac: 370c adds r7, #12 + 8008bae: 46bd mov sp, r7 + 8008bb0: f85d 7b04 ldr.w r7, [sp], #4 + 8008bb4: 4770 bx lr -08008b62 : +08008bb6 : * @param cfgidx: configuration index * @retval status */ USBD_StatusTypeDef USBD_SetClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx) { - 8008b62: b580 push {r7, lr} - 8008b64: b084 sub sp, #16 - 8008b66: af00 add r7, sp, #0 - 8008b68: 6078 str r0, [r7, #4] - 8008b6a: 460b mov r3, r1 - 8008b6c: 70fb strb r3, [r7, #3] + 8008bb6: b580 push {r7, lr} + 8008bb8: b084 sub sp, #16 + 8008bba: af00 add r7, sp, #0 + 8008bbc: 6078 str r0, [r7, #4] + 8008bbe: 460b mov r3, r1 + 8008bc0: 70fb strb r3, [r7, #3] USBD_StatusTypeDef ret = USBD_OK; - 8008b6e: 2300 movs r3, #0 - 8008b70: 73fb strb r3, [r7, #15] + 8008bc2: 2300 movs r3, #0 + 8008bc4: 73fb strb r3, [r7, #15] } } } } #else if (pdev->pClass[0] != NULL) - 8008b72: 687b ldr r3, [r7, #4] - 8008b74: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8008b78: 2b00 cmp r3, #0 - 8008b7a: d009 beq.n 8008b90 + 8008bc6: 687b ldr r3, [r7, #4] + 8008bc8: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8008bcc: 2b00 cmp r3, #0 + 8008bce: d009 beq.n 8008be4 { /* Set configuration and Start the Class */ ret = (USBD_StatusTypeDef)pdev->pClass[0]->Init(pdev, cfgidx); - 8008b7c: 687b ldr r3, [r7, #4] - 8008b7e: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8008b82: 681b ldr r3, [r3, #0] - 8008b84: 78fa ldrb r2, [r7, #3] - 8008b86: 4611 mov r1, r2 - 8008b88: 6878 ldr r0, [r7, #4] - 8008b8a: 4798 blx r3 - 8008b8c: 4603 mov r3, r0 - 8008b8e: 73fb strb r3, [r7, #15] + 8008bd0: 687b ldr r3, [r7, #4] + 8008bd2: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8008bd6: 681b ldr r3, [r3, #0] + 8008bd8: 78fa ldrb r2, [r7, #3] + 8008bda: 4611 mov r1, r2 + 8008bdc: 6878 ldr r0, [r7, #4] + 8008bde: 4798 blx r3 + 8008be0: 4603 mov r3, r0 + 8008be2: 73fb strb r3, [r7, #15] } #endif /* USE_USBD_COMPOSITE */ return ret; - 8008b90: 7bfb ldrb r3, [r7, #15] + 8008be4: 7bfb ldrb r3, [r7, #15] } - 8008b92: 4618 mov r0, r3 - 8008b94: 3710 adds r7, #16 - 8008b96: 46bd mov sp, r7 - 8008b98: bd80 pop {r7, pc} + 8008be6: 4618 mov r0, r3 + 8008be8: 3710 adds r7, #16 + 8008bea: 46bd mov sp, r7 + 8008bec: bd80 pop {r7, pc} -08008b9a : +08008bee : * @param pdev: device instance * @param cfgidx: configuration index * @retval status */ USBD_StatusTypeDef USBD_ClrClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx) { - 8008b9a: b580 push {r7, lr} - 8008b9c: b084 sub sp, #16 - 8008b9e: af00 add r7, sp, #0 - 8008ba0: 6078 str r0, [r7, #4] - 8008ba2: 460b mov r3, r1 - 8008ba4: 70fb strb r3, [r7, #3] + 8008bee: b580 push {r7, lr} + 8008bf0: b084 sub sp, #16 + 8008bf2: af00 add r7, sp, #0 + 8008bf4: 6078 str r0, [r7, #4] + 8008bf6: 460b mov r3, r1 + 8008bf8: 70fb strb r3, [r7, #3] USBD_StatusTypeDef ret = USBD_OK; - 8008ba6: 2300 movs r3, #0 - 8008ba8: 73fb strb r3, [r7, #15] + 8008bfa: 2300 movs r3, #0 + 8008bfc: 73fb strb r3, [r7, #15] } } } #else /* Clear configuration and De-initialize the Class process */ if (pdev->pClass[0]->DeInit(pdev, cfgidx) != 0U) - 8008baa: 687b ldr r3, [r7, #4] - 8008bac: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8008bb0: 685b ldr r3, [r3, #4] - 8008bb2: 78fa ldrb r2, [r7, #3] - 8008bb4: 4611 mov r1, r2 - 8008bb6: 6878 ldr r0, [r7, #4] - 8008bb8: 4798 blx r3 - 8008bba: 4603 mov r3, r0 - 8008bbc: 2b00 cmp r3, #0 - 8008bbe: d001 beq.n 8008bc4 + 8008bfe: 687b ldr r3, [r7, #4] + 8008c00: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8008c04: 685b ldr r3, [r3, #4] + 8008c06: 78fa ldrb r2, [r7, #3] + 8008c08: 4611 mov r1, r2 + 8008c0a: 6878 ldr r0, [r7, #4] + 8008c0c: 4798 blx r3 + 8008c0e: 4603 mov r3, r0 + 8008c10: 2b00 cmp r3, #0 + 8008c12: d001 beq.n 8008c18 { ret = USBD_FAIL; - 8008bc0: 2303 movs r3, #3 - 8008bc2: 73fb strb r3, [r7, #15] + 8008c14: 2303 movs r3, #3 + 8008c16: 73fb strb r3, [r7, #15] } #endif /* USE_USBD_COMPOSITE */ return ret; - 8008bc4: 7bfb ldrb r3, [r7, #15] + 8008c18: 7bfb ldrb r3, [r7, #15] } - 8008bc6: 4618 mov r0, r3 - 8008bc8: 3710 adds r7, #16 - 8008bca: 46bd mov sp, r7 - 8008bcc: bd80 pop {r7, pc} + 8008c1a: 4618 mov r0, r3 + 8008c1c: 3710 adds r7, #16 + 8008c1e: 46bd mov sp, r7 + 8008c20: bd80 pop {r7, pc} -08008bce : +08008c22 : * @param pdev: device instance * @param psetup: setup packet buffer pointer * @retval status */ USBD_StatusTypeDef USBD_LL_SetupStage(USBD_HandleTypeDef *pdev, uint8_t *psetup) { - 8008bce: b580 push {r7, lr} - 8008bd0: b084 sub sp, #16 - 8008bd2: af00 add r7, sp, #0 - 8008bd4: 6078 str r0, [r7, #4] - 8008bd6: 6039 str r1, [r7, #0] + 8008c22: b580 push {r7, lr} + 8008c24: b084 sub sp, #16 + 8008c26: af00 add r7, sp, #0 + 8008c28: 6078 str r0, [r7, #4] + 8008c2a: 6039 str r1, [r7, #0] USBD_StatusTypeDef ret; USBD_ParseSetupRequest(&pdev->request, psetup); - 8008bd8: 687b ldr r3, [r7, #4] - 8008bda: f203 23aa addw r3, r3, #682 @ 0x2aa - 8008bde: 6839 ldr r1, [r7, #0] - 8008be0: 4618 mov r0, r3 - 8008be2: f001 f94c bl 8009e7e + 8008c2c: 687b ldr r3, [r7, #4] + 8008c2e: f203 23aa addw r3, r3, #682 @ 0x2aa + 8008c32: 6839 ldr r1, [r7, #0] + 8008c34: 4618 mov r0, r3 + 8008c36: f001 f94c bl 8009ed2 pdev->ep0_state = USBD_EP0_SETUP; - 8008be6: 687b ldr r3, [r7, #4] - 8008be8: 2201 movs r2, #1 - 8008bea: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 8008c3a: 687b ldr r3, [r7, #4] + 8008c3c: 2201 movs r2, #1 + 8008c3e: f8c3 2294 str.w r2, [r3, #660] @ 0x294 pdev->ep0_data_len = pdev->request.wLength; - 8008bee: 687b ldr r3, [r7, #4] - 8008bf0: f8b3 32b0 ldrh.w r3, [r3, #688] @ 0x2b0 - 8008bf4: 461a mov r2, r3 - 8008bf6: 687b ldr r3, [r7, #4] - 8008bf8: f8c3 2298 str.w r2, [r3, #664] @ 0x298 + 8008c42: 687b ldr r3, [r7, #4] + 8008c44: f8b3 32b0 ldrh.w r3, [r3, #688] @ 0x2b0 + 8008c48: 461a mov r2, r3 + 8008c4a: 687b ldr r3, [r7, #4] + 8008c4c: f8c3 2298 str.w r2, [r3, #664] @ 0x298 switch (pdev->request.bmRequest & 0x1FU) - 8008bfc: 687b ldr r3, [r7, #4] - 8008bfe: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa - 8008c02: f003 031f and.w r3, r3, #31 - 8008c06: 2b02 cmp r3, #2 - 8008c08: d01a beq.n 8008c40 - 8008c0a: 2b02 cmp r3, #2 - 8008c0c: d822 bhi.n 8008c54 - 8008c0e: 2b00 cmp r3, #0 - 8008c10: d002 beq.n 8008c18 - 8008c12: 2b01 cmp r3, #1 - 8008c14: d00a beq.n 8008c2c - 8008c16: e01d b.n 8008c54 + 8008c50: 687b ldr r3, [r7, #4] + 8008c52: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa + 8008c56: f003 031f and.w r3, r3, #31 + 8008c5a: 2b02 cmp r3, #2 + 8008c5c: d01a beq.n 8008c94 + 8008c5e: 2b02 cmp r3, #2 + 8008c60: d822 bhi.n 8008ca8 + 8008c62: 2b00 cmp r3, #0 + 8008c64: d002 beq.n 8008c6c + 8008c66: 2b01 cmp r3, #1 + 8008c68: d00a beq.n 8008c80 + 8008c6a: e01d b.n 8008ca8 { case USB_REQ_RECIPIENT_DEVICE: ret = USBD_StdDevReq(pdev, &pdev->request); - 8008c18: 687b ldr r3, [r7, #4] - 8008c1a: f203 23aa addw r3, r3, #682 @ 0x2aa - 8008c1e: 4619 mov r1, r3 - 8008c20: 6878 ldr r0, [r7, #4] - 8008c22: f000 fb77 bl 8009314 - 8008c26: 4603 mov r3, r0 - 8008c28: 73fb strb r3, [r7, #15] + 8008c6c: 687b ldr r3, [r7, #4] + 8008c6e: f203 23aa addw r3, r3, #682 @ 0x2aa + 8008c72: 4619 mov r1, r3 + 8008c74: 6878 ldr r0, [r7, #4] + 8008c76: f000 fb77 bl 8009368 + 8008c7a: 4603 mov r3, r0 + 8008c7c: 73fb strb r3, [r7, #15] break; - 8008c2a: e020 b.n 8008c6e + 8008c7e: e020 b.n 8008cc2 case USB_REQ_RECIPIENT_INTERFACE: ret = USBD_StdItfReq(pdev, &pdev->request); - 8008c2c: 687b ldr r3, [r7, #4] - 8008c2e: f203 23aa addw r3, r3, #682 @ 0x2aa - 8008c32: 4619 mov r1, r3 - 8008c34: 6878 ldr r0, [r7, #4] - 8008c36: f000 fbdf bl 80093f8 - 8008c3a: 4603 mov r3, r0 - 8008c3c: 73fb strb r3, [r7, #15] + 8008c80: 687b ldr r3, [r7, #4] + 8008c82: f203 23aa addw r3, r3, #682 @ 0x2aa + 8008c86: 4619 mov r1, r3 + 8008c88: 6878 ldr r0, [r7, #4] + 8008c8a: f000 fbdf bl 800944c + 8008c8e: 4603 mov r3, r0 + 8008c90: 73fb strb r3, [r7, #15] break; - 8008c3e: e016 b.n 8008c6e + 8008c92: e016 b.n 8008cc2 case USB_REQ_RECIPIENT_ENDPOINT: ret = USBD_StdEPReq(pdev, &pdev->request); - 8008c40: 687b ldr r3, [r7, #4] - 8008c42: f203 23aa addw r3, r3, #682 @ 0x2aa - 8008c46: 4619 mov r1, r3 - 8008c48: 6878 ldr r0, [r7, #4] - 8008c4a: f000 fc41 bl 80094d0 - 8008c4e: 4603 mov r3, r0 - 8008c50: 73fb strb r3, [r7, #15] + 8008c94: 687b ldr r3, [r7, #4] + 8008c96: f203 23aa addw r3, r3, #682 @ 0x2aa + 8008c9a: 4619 mov r1, r3 + 8008c9c: 6878 ldr r0, [r7, #4] + 8008c9e: f000 fc41 bl 8009524 + 8008ca2: 4603 mov r3, r0 + 8008ca4: 73fb strb r3, [r7, #15] break; - 8008c52: e00c b.n 8008c6e + 8008ca6: e00c b.n 8008cc2 default: ret = USBD_LL_StallEP(pdev, (pdev->request.bmRequest & 0x80U)); - 8008c54: 687b ldr r3, [r7, #4] - 8008c56: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa - 8008c5a: f023 037f bic.w r3, r3, #127 @ 0x7f - 8008c5e: b2db uxtb r3, r3 - 8008c60: 4619 mov r1, r3 - 8008c62: 6878 ldr r0, [r7, #4] - 8008c64: f001 fd78 bl 800a758 - 8008c68: 4603 mov r3, r0 - 8008c6a: 73fb strb r3, [r7, #15] + 8008ca8: 687b ldr r3, [r7, #4] + 8008caa: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa + 8008cae: f023 037f bic.w r3, r3, #127 @ 0x7f + 8008cb2: b2db uxtb r3, r3 + 8008cb4: 4619 mov r1, r3 + 8008cb6: 6878 ldr r0, [r7, #4] + 8008cb8: f001 fd78 bl 800a7ac + 8008cbc: 4603 mov r3, r0 + 8008cbe: 73fb strb r3, [r7, #15] break; - 8008c6c: bf00 nop + 8008cc0: bf00 nop } return ret; - 8008c6e: 7bfb ldrb r3, [r7, #15] + 8008cc2: 7bfb ldrb r3, [r7, #15] } - 8008c70: 4618 mov r0, r3 - 8008c72: 3710 adds r7, #16 - 8008c74: 46bd mov sp, r7 - 8008c76: bd80 pop {r7, pc} + 8008cc4: 4618 mov r0, r3 + 8008cc6: 3710 adds r7, #16 + 8008cc8: 46bd mov sp, r7 + 8008cca: bd80 pop {r7, pc} -08008c78 : +08008ccc : * @param pdata: data pointer * @retval status */ USBD_StatusTypeDef USBD_LL_DataOutStage(USBD_HandleTypeDef *pdev, uint8_t epnum, uint8_t *pdata) { - 8008c78: b580 push {r7, lr} - 8008c7a: b086 sub sp, #24 - 8008c7c: af00 add r7, sp, #0 - 8008c7e: 60f8 str r0, [r7, #12] - 8008c80: 460b mov r3, r1 - 8008c82: 607a str r2, [r7, #4] - 8008c84: 72fb strb r3, [r7, #11] + 8008ccc: b580 push {r7, lr} + 8008cce: b086 sub sp, #24 + 8008cd0: af00 add r7, sp, #0 + 8008cd2: 60f8 str r0, [r7, #12] + 8008cd4: 460b mov r3, r1 + 8008cd6: 607a str r2, [r7, #4] + 8008cd8: 72fb strb r3, [r7, #11] USBD_EndpointTypeDef *pep; USBD_StatusTypeDef ret = USBD_OK; - 8008c86: 2300 movs r3, #0 - 8008c88: 75fb strb r3, [r7, #23] + 8008cda: 2300 movs r3, #0 + 8008cdc: 75fb strb r3, [r7, #23] uint8_t idx; UNUSED(pdata); if (epnum == 0U) - 8008c8a: 7afb ldrb r3, [r7, #11] - 8008c8c: 2b00 cmp r3, #0 - 8008c8e: d177 bne.n 8008d80 + 8008cde: 7afb ldrb r3, [r7, #11] + 8008ce0: 2b00 cmp r3, #0 + 8008ce2: d177 bne.n 8008dd4 { pep = &pdev->ep_out[0]; - 8008c90: 68fb ldr r3, [r7, #12] - 8008c92: f503 73aa add.w r3, r3, #340 @ 0x154 - 8008c96: 613b str r3, [r7, #16] + 8008ce4: 68fb ldr r3, [r7, #12] + 8008ce6: f503 73aa add.w r3, r3, #340 @ 0x154 + 8008cea: 613b str r3, [r7, #16] if (pdev->ep0_state == USBD_EP0_DATA_OUT) - 8008c98: 68fb ldr r3, [r7, #12] - 8008c9a: f8d3 3294 ldr.w r3, [r3, #660] @ 0x294 - 8008c9e: 2b03 cmp r3, #3 - 8008ca0: f040 80a1 bne.w 8008de6 + 8008cec: 68fb ldr r3, [r7, #12] + 8008cee: f8d3 3294 ldr.w r3, [r3, #660] @ 0x294 + 8008cf2: 2b03 cmp r3, #3 + 8008cf4: f040 80a1 bne.w 8008e3a { if (pep->rem_length > pep->maxpacket) - 8008ca4: 693b ldr r3, [r7, #16] - 8008ca6: 685b ldr r3, [r3, #4] - 8008ca8: 693a ldr r2, [r7, #16] - 8008caa: 8992 ldrh r2, [r2, #12] - 8008cac: 4293 cmp r3, r2 - 8008cae: d91c bls.n 8008cea + 8008cf8: 693b ldr r3, [r7, #16] + 8008cfa: 685b ldr r3, [r3, #4] + 8008cfc: 693a ldr r2, [r7, #16] + 8008cfe: 8992 ldrh r2, [r2, #12] + 8008d00: 4293 cmp r3, r2 + 8008d02: d91c bls.n 8008d3e { pep->rem_length -= pep->maxpacket; - 8008cb0: 693b ldr r3, [r7, #16] - 8008cb2: 685b ldr r3, [r3, #4] - 8008cb4: 693a ldr r2, [r7, #16] - 8008cb6: 8992 ldrh r2, [r2, #12] - 8008cb8: 1a9a subs r2, r3, r2 - 8008cba: 693b ldr r3, [r7, #16] - 8008cbc: 605a str r2, [r3, #4] + 8008d04: 693b ldr r3, [r7, #16] + 8008d06: 685b ldr r3, [r3, #4] + 8008d08: 693a ldr r2, [r7, #16] + 8008d0a: 8992 ldrh r2, [r2, #12] + 8008d0c: 1a9a subs r2, r3, r2 + 8008d0e: 693b ldr r3, [r7, #16] + 8008d10: 605a str r2, [r3, #4] pep->pbuffer += pep->maxpacket; - 8008cbe: 693b ldr r3, [r7, #16] - 8008cc0: 691b ldr r3, [r3, #16] - 8008cc2: 693a ldr r2, [r7, #16] - 8008cc4: 8992 ldrh r2, [r2, #12] - 8008cc6: 441a add r2, r3 - 8008cc8: 693b ldr r3, [r7, #16] - 8008cca: 611a str r2, [r3, #16] + 8008d12: 693b ldr r3, [r7, #16] + 8008d14: 691b ldr r3, [r3, #16] + 8008d16: 693a ldr r2, [r7, #16] + 8008d18: 8992 ldrh r2, [r2, #12] + 8008d1a: 441a add r2, r3 + 8008d1c: 693b ldr r3, [r7, #16] + 8008d1e: 611a str r2, [r3, #16] (void)USBD_CtlContinueRx(pdev, pep->pbuffer, MAX(pep->rem_length, pep->maxpacket)); - 8008ccc: 693b ldr r3, [r7, #16] - 8008cce: 6919 ldr r1, [r3, #16] - 8008cd0: 693b ldr r3, [r7, #16] - 8008cd2: 899b ldrh r3, [r3, #12] - 8008cd4: 461a mov r2, r3 - 8008cd6: 693b ldr r3, [r7, #16] - 8008cd8: 685b ldr r3, [r3, #4] - 8008cda: 4293 cmp r3, r2 - 8008cdc: bf38 it cc - 8008cde: 4613 movcc r3, r2 - 8008ce0: 461a mov r2, r3 - 8008ce2: 68f8 ldr r0, [r7, #12] - 8008ce4: f001 f9b1 bl 800a04a - 8008ce8: e07d b.n 8008de6 + 8008d20: 693b ldr r3, [r7, #16] + 8008d22: 6919 ldr r1, [r3, #16] + 8008d24: 693b ldr r3, [r7, #16] + 8008d26: 899b ldrh r3, [r3, #12] + 8008d28: 461a mov r2, r3 + 8008d2a: 693b ldr r3, [r7, #16] + 8008d2c: 685b ldr r3, [r3, #4] + 8008d2e: 4293 cmp r3, r2 + 8008d30: bf38 it cc + 8008d32: 4613 movcc r3, r2 + 8008d34: 461a mov r2, r3 + 8008d36: 68f8 ldr r0, [r7, #12] + 8008d38: f001 f9b1 bl 800a09e + 8008d3c: e07d b.n 8008e3a } else { /* Find the class ID relative to the current request */ switch (pdev->request.bmRequest & 0x1FU) - 8008cea: 68fb ldr r3, [r7, #12] - 8008cec: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa - 8008cf0: f003 031f and.w r3, r3, #31 - 8008cf4: 2b02 cmp r3, #2 - 8008cf6: d014 beq.n 8008d22 - 8008cf8: 2b02 cmp r3, #2 - 8008cfa: d81d bhi.n 8008d38 - 8008cfc: 2b00 cmp r3, #0 - 8008cfe: d002 beq.n 8008d06 - 8008d00: 2b01 cmp r3, #1 - 8008d02: d003 beq.n 8008d0c - 8008d04: e018 b.n 8008d38 + 8008d3e: 68fb ldr r3, [r7, #12] + 8008d40: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa + 8008d44: f003 031f and.w r3, r3, #31 + 8008d48: 2b02 cmp r3, #2 + 8008d4a: d014 beq.n 8008d76 + 8008d4c: 2b02 cmp r3, #2 + 8008d4e: d81d bhi.n 8008d8c + 8008d50: 2b00 cmp r3, #0 + 8008d52: d002 beq.n 8008d5a + 8008d54: 2b01 cmp r3, #1 + 8008d56: d003 beq.n 8008d60 + 8008d58: e018 b.n 8008d8c { case USB_REQ_RECIPIENT_DEVICE: /* Device requests must be managed by the first instantiated class (or duplicated by all classes for simplicity) */ idx = 0U; - 8008d06: 2300 movs r3, #0 - 8008d08: 75bb strb r3, [r7, #22] + 8008d5a: 2300 movs r3, #0 + 8008d5c: 75bb strb r3, [r7, #22] break; - 8008d0a: e018 b.n 8008d3e + 8008d5e: e018 b.n 8008d92 case USB_REQ_RECIPIENT_INTERFACE: idx = USBD_CoreFindIF(pdev, LOBYTE(pdev->request.wIndex)); - 8008d0c: 68fb ldr r3, [r7, #12] - 8008d0e: f8b3 32ae ldrh.w r3, [r3, #686] @ 0x2ae - 8008d12: b2db uxtb r3, r3 - 8008d14: 4619 mov r1, r3 - 8008d16: 68f8 ldr r0, [r7, #12] - 8008d18: f000 fa6e bl 80091f8 - 8008d1c: 4603 mov r3, r0 - 8008d1e: 75bb strb r3, [r7, #22] + 8008d60: 68fb ldr r3, [r7, #12] + 8008d62: f8b3 32ae ldrh.w r3, [r3, #686] @ 0x2ae + 8008d66: b2db uxtb r3, r3 + 8008d68: 4619 mov r1, r3 + 8008d6a: 68f8 ldr r0, [r7, #12] + 8008d6c: f000 fa6e bl 800924c + 8008d70: 4603 mov r3, r0 + 8008d72: 75bb strb r3, [r7, #22] break; - 8008d20: e00d b.n 8008d3e + 8008d74: e00d b.n 8008d92 case USB_REQ_RECIPIENT_ENDPOINT: idx = USBD_CoreFindEP(pdev, LOBYTE(pdev->request.wIndex)); - 8008d22: 68fb ldr r3, [r7, #12] - 8008d24: f8b3 32ae ldrh.w r3, [r3, #686] @ 0x2ae - 8008d28: b2db uxtb r3, r3 - 8008d2a: 4619 mov r1, r3 - 8008d2c: 68f8 ldr r0, [r7, #12] - 8008d2e: f000 fa70 bl 8009212 - 8008d32: 4603 mov r3, r0 - 8008d34: 75bb strb r3, [r7, #22] + 8008d76: 68fb ldr r3, [r7, #12] + 8008d78: f8b3 32ae ldrh.w r3, [r3, #686] @ 0x2ae + 8008d7c: b2db uxtb r3, r3 + 8008d7e: 4619 mov r1, r3 + 8008d80: 68f8 ldr r0, [r7, #12] + 8008d82: f000 fa70 bl 8009266 + 8008d86: 4603 mov r3, r0 + 8008d88: 75bb strb r3, [r7, #22] break; - 8008d36: e002 b.n 8008d3e + 8008d8a: e002 b.n 8008d92 default: /* Back to the first class in case of doubt */ idx = 0U; - 8008d38: 2300 movs r3, #0 - 8008d3a: 75bb strb r3, [r7, #22] + 8008d8c: 2300 movs r3, #0 + 8008d8e: 75bb strb r3, [r7, #22] break; - 8008d3c: bf00 nop + 8008d90: bf00 nop } if (idx < USBD_MAX_SUPPORTED_CLASS) - 8008d3e: 7dbb ldrb r3, [r7, #22] - 8008d40: 2b00 cmp r3, #0 - 8008d42: d119 bne.n 8008d78 + 8008d92: 7dbb ldrb r3, [r7, #22] + 8008d94: 2b00 cmp r3, #0 + 8008d96: d119 bne.n 8008dcc { /* Setup the class ID and route the request to the relative class function */ if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8008d44: 68fb ldr r3, [r7, #12] - 8008d46: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8008d4a: b2db uxtb r3, r3 - 8008d4c: 2b03 cmp r3, #3 - 8008d4e: d113 bne.n 8008d78 + 8008d98: 68fb ldr r3, [r7, #12] + 8008d9a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8008d9e: b2db uxtb r3, r3 + 8008da0: 2b03 cmp r3, #3 + 8008da2: d113 bne.n 8008dcc { if (pdev->pClass[idx]->EP0_RxReady != NULL) - 8008d50: 7dba ldrb r2, [r7, #22] - 8008d52: 68fb ldr r3, [r7, #12] - 8008d54: 32ae adds r2, #174 @ 0xae - 8008d56: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8008d5a: 691b ldr r3, [r3, #16] - 8008d5c: 2b00 cmp r3, #0 - 8008d5e: d00b beq.n 8008d78 + 8008da4: 7dba ldrb r2, [r7, #22] + 8008da6: 68fb ldr r3, [r7, #12] + 8008da8: 32ae adds r2, #174 @ 0xae + 8008daa: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008dae: 691b ldr r3, [r3, #16] + 8008db0: 2b00 cmp r3, #0 + 8008db2: d00b beq.n 8008dcc { pdev->classId = idx; - 8008d60: 7dba ldrb r2, [r7, #22] - 8008d62: 68fb ldr r3, [r7, #12] - 8008d64: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8008db4: 7dba ldrb r2, [r7, #22] + 8008db6: 68fb ldr r3, [r7, #12] + 8008db8: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 pdev->pClass[idx]->EP0_RxReady(pdev); - 8008d68: 7dba ldrb r2, [r7, #22] - 8008d6a: 68fb ldr r3, [r7, #12] - 8008d6c: 32ae adds r2, #174 @ 0xae - 8008d6e: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8008d72: 691b ldr r3, [r3, #16] - 8008d74: 68f8 ldr r0, [r7, #12] - 8008d76: 4798 blx r3 + 8008dbc: 7dba ldrb r2, [r7, #22] + 8008dbe: 68fb ldr r3, [r7, #12] + 8008dc0: 32ae adds r2, #174 @ 0xae + 8008dc2: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008dc6: 691b ldr r3, [r3, #16] + 8008dc8: 68f8 ldr r0, [r7, #12] + 8008dca: 4798 blx r3 } } } (void)USBD_CtlSendStatus(pdev); - 8008d78: 68f8 ldr r0, [r7, #12] - 8008d7a: f001 f977 bl 800a06c - 8008d7e: e032 b.n 8008de6 + 8008dcc: 68f8 ldr r0, [r7, #12] + 8008dce: f001 f977 bl 800a0c0 + 8008dd2: e032 b.n 8008e3a } } else { /* Get the class index relative to this interface */ idx = USBD_CoreFindEP(pdev, (epnum & 0x7FU)); - 8008d80: 7afb ldrb r3, [r7, #11] - 8008d82: f003 037f and.w r3, r3, #127 @ 0x7f - 8008d86: b2db uxtb r3, r3 - 8008d88: 4619 mov r1, r3 - 8008d8a: 68f8 ldr r0, [r7, #12] - 8008d8c: f000 fa41 bl 8009212 - 8008d90: 4603 mov r3, r0 - 8008d92: 75bb strb r3, [r7, #22] + 8008dd4: 7afb ldrb r3, [r7, #11] + 8008dd6: f003 037f and.w r3, r3, #127 @ 0x7f + 8008dda: b2db uxtb r3, r3 + 8008ddc: 4619 mov r1, r3 + 8008dde: 68f8 ldr r0, [r7, #12] + 8008de0: f000 fa41 bl 8009266 + 8008de4: 4603 mov r3, r0 + 8008de6: 75bb strb r3, [r7, #22] if (((uint16_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 8008d94: 7dbb ldrb r3, [r7, #22] - 8008d96: 2bff cmp r3, #255 @ 0xff - 8008d98: d025 beq.n 8008de6 - 8008d9a: 7dbb ldrb r3, [r7, #22] - 8008d9c: 2b00 cmp r3, #0 - 8008d9e: d122 bne.n 8008de6 + 8008de8: 7dbb ldrb r3, [r7, #22] + 8008dea: 2bff cmp r3, #255 @ 0xff + 8008dec: d025 beq.n 8008e3a + 8008dee: 7dbb ldrb r3, [r7, #22] + 8008df0: 2b00 cmp r3, #0 + 8008df2: d122 bne.n 8008e3a { /* Call the class data out function to manage the request */ if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8008da0: 68fb ldr r3, [r7, #12] - 8008da2: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8008da6: b2db uxtb r3, r3 - 8008da8: 2b03 cmp r3, #3 - 8008daa: d117 bne.n 8008ddc + 8008df4: 68fb ldr r3, [r7, #12] + 8008df6: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8008dfa: b2db uxtb r3, r3 + 8008dfc: 2b03 cmp r3, #3 + 8008dfe: d117 bne.n 8008e30 { if (pdev->pClass[idx]->DataOut != NULL) - 8008dac: 7dba ldrb r2, [r7, #22] - 8008dae: 68fb ldr r3, [r7, #12] - 8008db0: 32ae adds r2, #174 @ 0xae - 8008db2: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8008db6: 699b ldr r3, [r3, #24] - 8008db8: 2b00 cmp r3, #0 - 8008dba: d00f beq.n 8008ddc + 8008e00: 7dba ldrb r2, [r7, #22] + 8008e02: 68fb ldr r3, [r7, #12] + 8008e04: 32ae adds r2, #174 @ 0xae + 8008e06: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008e0a: 699b ldr r3, [r3, #24] + 8008e0c: 2b00 cmp r3, #0 + 8008e0e: d00f beq.n 8008e30 { pdev->classId = idx; - 8008dbc: 7dba ldrb r2, [r7, #22] - 8008dbe: 68fb ldr r3, [r7, #12] - 8008dc0: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8008e10: 7dba ldrb r2, [r7, #22] + 8008e12: 68fb ldr r3, [r7, #12] + 8008e14: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 ret = (USBD_StatusTypeDef)pdev->pClass[idx]->DataOut(pdev, epnum); - 8008dc4: 7dba ldrb r2, [r7, #22] - 8008dc6: 68fb ldr r3, [r7, #12] - 8008dc8: 32ae adds r2, #174 @ 0xae - 8008dca: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8008dce: 699b ldr r3, [r3, #24] - 8008dd0: 7afa ldrb r2, [r7, #11] - 8008dd2: 4611 mov r1, r2 - 8008dd4: 68f8 ldr r0, [r7, #12] - 8008dd6: 4798 blx r3 - 8008dd8: 4603 mov r3, r0 - 8008dda: 75fb strb r3, [r7, #23] + 8008e18: 7dba ldrb r2, [r7, #22] + 8008e1a: 68fb ldr r3, [r7, #12] + 8008e1c: 32ae adds r2, #174 @ 0xae + 8008e1e: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008e22: 699b ldr r3, [r3, #24] + 8008e24: 7afa ldrb r2, [r7, #11] + 8008e26: 4611 mov r1, r2 + 8008e28: 68f8 ldr r0, [r7, #12] + 8008e2a: 4798 blx r3 + 8008e2c: 4603 mov r3, r0 + 8008e2e: 75fb strb r3, [r7, #23] } } if (ret != USBD_OK) - 8008ddc: 7dfb ldrb r3, [r7, #23] - 8008dde: 2b00 cmp r3, #0 - 8008de0: d001 beq.n 8008de6 + 8008e30: 7dfb ldrb r3, [r7, #23] + 8008e32: 2b00 cmp r3, #0 + 8008e34: d001 beq.n 8008e3a { return ret; - 8008de2: 7dfb ldrb r3, [r7, #23] - 8008de4: e000 b.n 8008de8 + 8008e36: 7dfb ldrb r3, [r7, #23] + 8008e38: e000 b.n 8008e3c } } } return USBD_OK; - 8008de6: 2300 movs r3, #0 + 8008e3a: 2300 movs r3, #0 } - 8008de8: 4618 mov r0, r3 - 8008dea: 3718 adds r7, #24 - 8008dec: 46bd mov sp, r7 - 8008dee: bd80 pop {r7, pc} + 8008e3c: 4618 mov r0, r3 + 8008e3e: 3718 adds r7, #24 + 8008e40: 46bd mov sp, r7 + 8008e42: bd80 pop {r7, pc} -08008df0 : +08008e44 : * @param pdata: data pointer * @retval status */ USBD_StatusTypeDef USBD_LL_DataInStage(USBD_HandleTypeDef *pdev, uint8_t epnum, uint8_t *pdata) { - 8008df0: b580 push {r7, lr} - 8008df2: b086 sub sp, #24 - 8008df4: af00 add r7, sp, #0 - 8008df6: 60f8 str r0, [r7, #12] - 8008df8: 460b mov r3, r1 - 8008dfa: 607a str r2, [r7, #4] - 8008dfc: 72fb strb r3, [r7, #11] + 8008e44: b580 push {r7, lr} + 8008e46: b086 sub sp, #24 + 8008e48: af00 add r7, sp, #0 + 8008e4a: 60f8 str r0, [r7, #12] + 8008e4c: 460b mov r3, r1 + 8008e4e: 607a str r2, [r7, #4] + 8008e50: 72fb strb r3, [r7, #11] USBD_StatusTypeDef ret; uint8_t idx; UNUSED(pdata); if (epnum == 0U) - 8008dfe: 7afb ldrb r3, [r7, #11] - 8008e00: 2b00 cmp r3, #0 - 8008e02: d178 bne.n 8008ef6 + 8008e52: 7afb ldrb r3, [r7, #11] + 8008e54: 2b00 cmp r3, #0 + 8008e56: d178 bne.n 8008f4a { pep = &pdev->ep_in[0]; - 8008e04: 68fb ldr r3, [r7, #12] - 8008e06: 3314 adds r3, #20 - 8008e08: 613b str r3, [r7, #16] + 8008e58: 68fb ldr r3, [r7, #12] + 8008e5a: 3314 adds r3, #20 + 8008e5c: 613b str r3, [r7, #16] if (pdev->ep0_state == USBD_EP0_DATA_IN) - 8008e0a: 68fb ldr r3, [r7, #12] - 8008e0c: f8d3 3294 ldr.w r3, [r3, #660] @ 0x294 - 8008e10: 2b02 cmp r3, #2 - 8008e12: d163 bne.n 8008edc + 8008e5e: 68fb ldr r3, [r7, #12] + 8008e60: f8d3 3294 ldr.w r3, [r3, #660] @ 0x294 + 8008e64: 2b02 cmp r3, #2 + 8008e66: d163 bne.n 8008f30 { if (pep->rem_length > pep->maxpacket) - 8008e14: 693b ldr r3, [r7, #16] - 8008e16: 685b ldr r3, [r3, #4] - 8008e18: 693a ldr r2, [r7, #16] - 8008e1a: 8992 ldrh r2, [r2, #12] - 8008e1c: 4293 cmp r3, r2 - 8008e1e: d91c bls.n 8008e5a + 8008e68: 693b ldr r3, [r7, #16] + 8008e6a: 685b ldr r3, [r3, #4] + 8008e6c: 693a ldr r2, [r7, #16] + 8008e6e: 8992 ldrh r2, [r2, #12] + 8008e70: 4293 cmp r3, r2 + 8008e72: d91c bls.n 8008eae { pep->rem_length -= pep->maxpacket; - 8008e20: 693b ldr r3, [r7, #16] - 8008e22: 685b ldr r3, [r3, #4] - 8008e24: 693a ldr r2, [r7, #16] - 8008e26: 8992 ldrh r2, [r2, #12] - 8008e28: 1a9a subs r2, r3, r2 - 8008e2a: 693b ldr r3, [r7, #16] - 8008e2c: 605a str r2, [r3, #4] + 8008e74: 693b ldr r3, [r7, #16] + 8008e76: 685b ldr r3, [r3, #4] + 8008e78: 693a ldr r2, [r7, #16] + 8008e7a: 8992 ldrh r2, [r2, #12] + 8008e7c: 1a9a subs r2, r3, r2 + 8008e7e: 693b ldr r3, [r7, #16] + 8008e80: 605a str r2, [r3, #4] pep->pbuffer += pep->maxpacket; - 8008e2e: 693b ldr r3, [r7, #16] - 8008e30: 691b ldr r3, [r3, #16] - 8008e32: 693a ldr r2, [r7, #16] - 8008e34: 8992 ldrh r2, [r2, #12] - 8008e36: 441a add r2, r3 - 8008e38: 693b ldr r3, [r7, #16] - 8008e3a: 611a str r2, [r3, #16] + 8008e82: 693b ldr r3, [r7, #16] + 8008e84: 691b ldr r3, [r3, #16] + 8008e86: 693a ldr r2, [r7, #16] + 8008e88: 8992 ldrh r2, [r2, #12] + 8008e8a: 441a add r2, r3 + 8008e8c: 693b ldr r3, [r7, #16] + 8008e8e: 611a str r2, [r3, #16] (void)USBD_CtlContinueSendData(pdev, pep->pbuffer, pep->rem_length); - 8008e3c: 693b ldr r3, [r7, #16] - 8008e3e: 6919 ldr r1, [r3, #16] - 8008e40: 693b ldr r3, [r7, #16] - 8008e42: 685b ldr r3, [r3, #4] - 8008e44: 461a mov r2, r3 - 8008e46: 68f8 ldr r0, [r7, #12] - 8008e48: f001 f8ee bl 800a028 + 8008e90: 693b ldr r3, [r7, #16] + 8008e92: 6919 ldr r1, [r3, #16] + 8008e94: 693b ldr r3, [r7, #16] + 8008e96: 685b ldr r3, [r3, #4] + 8008e98: 461a mov r2, r3 + 8008e9a: 68f8 ldr r0, [r7, #12] + 8008e9c: f001 f8ee bl 800a07c /* Prepare endpoint for premature end of transfer */ (void)USBD_LL_PrepareReceive(pdev, 0U, NULL, 0U); - 8008e4c: 2300 movs r3, #0 - 8008e4e: 2200 movs r2, #0 - 8008e50: 2100 movs r1, #0 - 8008e52: 68f8 ldr r0, [r7, #12] - 8008e54: f001 fd2a bl 800a8ac - 8008e58: e040 b.n 8008edc + 8008ea0: 2300 movs r3, #0 + 8008ea2: 2200 movs r2, #0 + 8008ea4: 2100 movs r1, #0 + 8008ea6: 68f8 ldr r0, [r7, #12] + 8008ea8: f001 fd2a bl 800a900 + 8008eac: e040 b.n 8008f30 } else { /* last packet is MPS multiple, so send ZLP packet */ if ((pep->maxpacket == pep->rem_length) && - 8008e5a: 693b ldr r3, [r7, #16] - 8008e5c: 899b ldrh r3, [r3, #12] - 8008e5e: 461a mov r2, r3 - 8008e60: 693b ldr r3, [r7, #16] - 8008e62: 685b ldr r3, [r3, #4] - 8008e64: 429a cmp r2, r3 - 8008e66: d11c bne.n 8008ea2 + 8008eae: 693b ldr r3, [r7, #16] + 8008eb0: 899b ldrh r3, [r3, #12] + 8008eb2: 461a mov r2, r3 + 8008eb4: 693b ldr r3, [r7, #16] + 8008eb6: 685b ldr r3, [r3, #4] + 8008eb8: 429a cmp r2, r3 + 8008eba: d11c bne.n 8008ef6 (pep->total_length >= pep->maxpacket) && - 8008e68: 693b ldr r3, [r7, #16] - 8008e6a: 681b ldr r3, [r3, #0] - 8008e6c: 693a ldr r2, [r7, #16] - 8008e6e: 8992 ldrh r2, [r2, #12] + 8008ebc: 693b ldr r3, [r7, #16] + 8008ebe: 681b ldr r3, [r3, #0] + 8008ec0: 693a ldr r2, [r7, #16] + 8008ec2: 8992 ldrh r2, [r2, #12] if ((pep->maxpacket == pep->rem_length) && - 8008e70: 4293 cmp r3, r2 - 8008e72: d316 bcc.n 8008ea2 + 8008ec4: 4293 cmp r3, r2 + 8008ec6: d316 bcc.n 8008ef6 (pep->total_length < pdev->ep0_data_len)) - 8008e74: 693b ldr r3, [r7, #16] - 8008e76: 681a ldr r2, [r3, #0] - 8008e78: 68fb ldr r3, [r7, #12] - 8008e7a: f8d3 3298 ldr.w r3, [r3, #664] @ 0x298 + 8008ec8: 693b ldr r3, [r7, #16] + 8008eca: 681a ldr r2, [r3, #0] + 8008ecc: 68fb ldr r3, [r7, #12] + 8008ece: f8d3 3298 ldr.w r3, [r3, #664] @ 0x298 (pep->total_length >= pep->maxpacket) && - 8008e7e: 429a cmp r2, r3 - 8008e80: d20f bcs.n 8008ea2 + 8008ed2: 429a cmp r2, r3 + 8008ed4: d20f bcs.n 8008ef6 { (void)USBD_CtlContinueSendData(pdev, NULL, 0U); - 8008e82: 2200 movs r2, #0 - 8008e84: 2100 movs r1, #0 - 8008e86: 68f8 ldr r0, [r7, #12] - 8008e88: f001 f8ce bl 800a028 + 8008ed6: 2200 movs r2, #0 + 8008ed8: 2100 movs r1, #0 + 8008eda: 68f8 ldr r0, [r7, #12] + 8008edc: f001 f8ce bl 800a07c pdev->ep0_data_len = 0U; - 8008e8c: 68fb ldr r3, [r7, #12] - 8008e8e: 2200 movs r2, #0 - 8008e90: f8c3 2298 str.w r2, [r3, #664] @ 0x298 + 8008ee0: 68fb ldr r3, [r7, #12] + 8008ee2: 2200 movs r2, #0 + 8008ee4: f8c3 2298 str.w r2, [r3, #664] @ 0x298 /* Prepare endpoint for premature end of transfer */ (void)USBD_LL_PrepareReceive(pdev, 0U, NULL, 0U); - 8008e94: 2300 movs r3, #0 - 8008e96: 2200 movs r2, #0 - 8008e98: 2100 movs r1, #0 - 8008e9a: 68f8 ldr r0, [r7, #12] - 8008e9c: f001 fd06 bl 800a8ac - 8008ea0: e01c b.n 8008edc + 8008ee8: 2300 movs r3, #0 + 8008eea: 2200 movs r2, #0 + 8008eec: 2100 movs r1, #0 + 8008eee: 68f8 ldr r0, [r7, #12] + 8008ef0: f001 fd06 bl 800a900 + 8008ef4: e01c b.n 8008f30 } else { if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8008ea2: 68fb ldr r3, [r7, #12] - 8008ea4: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8008ea8: b2db uxtb r3, r3 - 8008eaa: 2b03 cmp r3, #3 - 8008eac: d10f bne.n 8008ece + 8008ef6: 68fb ldr r3, [r7, #12] + 8008ef8: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8008efc: b2db uxtb r3, r3 + 8008efe: 2b03 cmp r3, #3 + 8008f00: d10f bne.n 8008f22 { if (pdev->pClass[0]->EP0_TxSent != NULL) - 8008eae: 68fb ldr r3, [r7, #12] - 8008eb0: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8008eb4: 68db ldr r3, [r3, #12] - 8008eb6: 2b00 cmp r3, #0 - 8008eb8: d009 beq.n 8008ece + 8008f02: 68fb ldr r3, [r7, #12] + 8008f04: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8008f08: 68db ldr r3, [r3, #12] + 8008f0a: 2b00 cmp r3, #0 + 8008f0c: d009 beq.n 8008f22 { pdev->classId = 0U; - 8008eba: 68fb ldr r3, [r7, #12] - 8008ebc: 2200 movs r2, #0 - 8008ebe: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8008f0e: 68fb ldr r3, [r7, #12] + 8008f10: 2200 movs r2, #0 + 8008f12: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 pdev->pClass[0]->EP0_TxSent(pdev); - 8008ec2: 68fb ldr r3, [r7, #12] - 8008ec4: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8008ec8: 68db ldr r3, [r3, #12] - 8008eca: 68f8 ldr r0, [r7, #12] - 8008ecc: 4798 blx r3 + 8008f16: 68fb ldr r3, [r7, #12] + 8008f18: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8008f1c: 68db ldr r3, [r3, #12] + 8008f1e: 68f8 ldr r0, [r7, #12] + 8008f20: 4798 blx r3 } } (void)USBD_LL_StallEP(pdev, 0x80U); - 8008ece: 2180 movs r1, #128 @ 0x80 - 8008ed0: 68f8 ldr r0, [r7, #12] - 8008ed2: f001 fc41 bl 800a758 + 8008f22: 2180 movs r1, #128 @ 0x80 + 8008f24: 68f8 ldr r0, [r7, #12] + 8008f26: f001 fc41 bl 800a7ac (void)USBD_CtlReceiveStatus(pdev); - 8008ed6: 68f8 ldr r0, [r7, #12] - 8008ed8: f001 f8db bl 800a092 + 8008f2a: 68f8 ldr r0, [r7, #12] + 8008f2c: f001 f8db bl 800a0e6 } } } if (pdev->dev_test_mode != 0U) - 8008edc: 68fb ldr r3, [r7, #12] - 8008ede: f893 32a0 ldrb.w r3, [r3, #672] @ 0x2a0 - 8008ee2: 2b00 cmp r3, #0 - 8008ee4: d03a beq.n 8008f5c + 8008f30: 68fb ldr r3, [r7, #12] + 8008f32: f893 32a0 ldrb.w r3, [r3, #672] @ 0x2a0 + 8008f36: 2b00 cmp r3, #0 + 8008f38: d03a beq.n 8008fb0 { (void)USBD_RunTestMode(pdev); - 8008ee6: 68f8 ldr r0, [r7, #12] - 8008ee8: f7ff fe30 bl 8008b4c + 8008f3a: 68f8 ldr r0, [r7, #12] + 8008f3c: f7ff fe30 bl 8008ba0 pdev->dev_test_mode = 0U; - 8008eec: 68fb ldr r3, [r7, #12] - 8008eee: 2200 movs r2, #0 - 8008ef0: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 - 8008ef4: e032 b.n 8008f5c + 8008f40: 68fb ldr r3, [r7, #12] + 8008f42: 2200 movs r2, #0 + 8008f44: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 + 8008f48: e032 b.n 8008fb0 } } else { /* Get the class index relative to this interface */ idx = USBD_CoreFindEP(pdev, ((uint8_t)epnum | 0x80U)); - 8008ef6: 7afb ldrb r3, [r7, #11] - 8008ef8: f063 037f orn r3, r3, #127 @ 0x7f - 8008efc: b2db uxtb r3, r3 - 8008efe: 4619 mov r1, r3 - 8008f00: 68f8 ldr r0, [r7, #12] - 8008f02: f000 f986 bl 8009212 - 8008f06: 4603 mov r3, r0 - 8008f08: 75fb strb r3, [r7, #23] + 8008f4a: 7afb ldrb r3, [r7, #11] + 8008f4c: f063 037f orn r3, r3, #127 @ 0x7f + 8008f50: b2db uxtb r3, r3 + 8008f52: 4619 mov r1, r3 + 8008f54: 68f8 ldr r0, [r7, #12] + 8008f56: f000 f986 bl 8009266 + 8008f5a: 4603 mov r3, r0 + 8008f5c: 75fb strb r3, [r7, #23] if (((uint16_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 8008f0a: 7dfb ldrb r3, [r7, #23] - 8008f0c: 2bff cmp r3, #255 @ 0xff - 8008f0e: d025 beq.n 8008f5c - 8008f10: 7dfb ldrb r3, [r7, #23] - 8008f12: 2b00 cmp r3, #0 - 8008f14: d122 bne.n 8008f5c + 8008f5e: 7dfb ldrb r3, [r7, #23] + 8008f60: 2bff cmp r3, #255 @ 0xff + 8008f62: d025 beq.n 8008fb0 + 8008f64: 7dfb ldrb r3, [r7, #23] + 8008f66: 2b00 cmp r3, #0 + 8008f68: d122 bne.n 8008fb0 { /* Call the class data out function to manage the request */ if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8008f16: 68fb ldr r3, [r7, #12] - 8008f18: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8008f1c: b2db uxtb r3, r3 - 8008f1e: 2b03 cmp r3, #3 - 8008f20: d11c bne.n 8008f5c + 8008f6a: 68fb ldr r3, [r7, #12] + 8008f6c: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8008f70: b2db uxtb r3, r3 + 8008f72: 2b03 cmp r3, #3 + 8008f74: d11c bne.n 8008fb0 { if (pdev->pClass[idx]->DataIn != NULL) - 8008f22: 7dfa ldrb r2, [r7, #23] - 8008f24: 68fb ldr r3, [r7, #12] - 8008f26: 32ae adds r2, #174 @ 0xae - 8008f28: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8008f2c: 695b ldr r3, [r3, #20] - 8008f2e: 2b00 cmp r3, #0 - 8008f30: d014 beq.n 8008f5c + 8008f76: 7dfa ldrb r2, [r7, #23] + 8008f78: 68fb ldr r3, [r7, #12] + 8008f7a: 32ae adds r2, #174 @ 0xae + 8008f7c: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008f80: 695b ldr r3, [r3, #20] + 8008f82: 2b00 cmp r3, #0 + 8008f84: d014 beq.n 8008fb0 { pdev->classId = idx; - 8008f32: 7dfa ldrb r2, [r7, #23] - 8008f34: 68fb ldr r3, [r7, #12] - 8008f36: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8008f86: 7dfa ldrb r2, [r7, #23] + 8008f88: 68fb ldr r3, [r7, #12] + 8008f8a: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 ret = (USBD_StatusTypeDef)pdev->pClass[idx]->DataIn(pdev, epnum); - 8008f3a: 7dfa ldrb r2, [r7, #23] - 8008f3c: 68fb ldr r3, [r7, #12] - 8008f3e: 32ae adds r2, #174 @ 0xae - 8008f40: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8008f44: 695b ldr r3, [r3, #20] - 8008f46: 7afa ldrb r2, [r7, #11] - 8008f48: 4611 mov r1, r2 - 8008f4a: 68f8 ldr r0, [r7, #12] - 8008f4c: 4798 blx r3 - 8008f4e: 4603 mov r3, r0 - 8008f50: 75bb strb r3, [r7, #22] + 8008f8e: 7dfa ldrb r2, [r7, #23] + 8008f90: 68fb ldr r3, [r7, #12] + 8008f92: 32ae adds r2, #174 @ 0xae + 8008f94: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008f98: 695b ldr r3, [r3, #20] + 8008f9a: 7afa ldrb r2, [r7, #11] + 8008f9c: 4611 mov r1, r2 + 8008f9e: 68f8 ldr r0, [r7, #12] + 8008fa0: 4798 blx r3 + 8008fa2: 4603 mov r3, r0 + 8008fa4: 75bb strb r3, [r7, #22] if (ret != USBD_OK) - 8008f52: 7dbb ldrb r3, [r7, #22] - 8008f54: 2b00 cmp r3, #0 - 8008f56: d001 beq.n 8008f5c + 8008fa6: 7dbb ldrb r3, [r7, #22] + 8008fa8: 2b00 cmp r3, #0 + 8008faa: d001 beq.n 8008fb0 { return ret; - 8008f58: 7dbb ldrb r3, [r7, #22] - 8008f5a: e000 b.n 8008f5e + 8008fac: 7dbb ldrb r3, [r7, #22] + 8008fae: e000 b.n 8008fb2 } } } } return USBD_OK; - 8008f5c: 2300 movs r3, #0 + 8008fb0: 2300 movs r3, #0 } - 8008f5e: 4618 mov r0, r3 - 8008f60: 3718 adds r7, #24 - 8008f62: 46bd mov sp, r7 - 8008f64: bd80 pop {r7, pc} + 8008fb2: 4618 mov r0, r3 + 8008fb4: 3718 adds r7, #24 + 8008fb6: 46bd mov sp, r7 + 8008fb8: bd80 pop {r7, pc} -08008f66 : +08008fba : * Handle Reset event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_Reset(USBD_HandleTypeDef *pdev) { - 8008f66: b580 push {r7, lr} - 8008f68: b084 sub sp, #16 - 8008f6a: af00 add r7, sp, #0 - 8008f6c: 6078 str r0, [r7, #4] + 8008fba: b580 push {r7, lr} + 8008fbc: b084 sub sp, #16 + 8008fbe: af00 add r7, sp, #0 + 8008fc0: 6078 str r0, [r7, #4] USBD_StatusTypeDef ret = USBD_OK; - 8008f6e: 2300 movs r3, #0 - 8008f70: 73fb strb r3, [r7, #15] + 8008fc2: 2300 movs r3, #0 + 8008fc4: 73fb strb r3, [r7, #15] /* Upon Reset call user call back */ pdev->dev_state = USBD_STATE_DEFAULT; - 8008f72: 687b ldr r3, [r7, #4] - 8008f74: 2201 movs r2, #1 - 8008f76: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8008fc6: 687b ldr r3, [r7, #4] + 8008fc8: 2201 movs r2, #1 + 8008fca: f883 229c strb.w r2, [r3, #668] @ 0x29c pdev->ep0_state = USBD_EP0_IDLE; - 8008f7a: 687b ldr r3, [r7, #4] - 8008f7c: 2200 movs r2, #0 - 8008f7e: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 8008fce: 687b ldr r3, [r7, #4] + 8008fd0: 2200 movs r2, #0 + 8008fd2: f8c3 2294 str.w r2, [r3, #660] @ 0x294 pdev->dev_config = 0U; - 8008f82: 687b ldr r3, [r7, #4] - 8008f84: 2200 movs r2, #0 - 8008f86: 605a str r2, [r3, #4] + 8008fd6: 687b ldr r3, [r7, #4] + 8008fd8: 2200 movs r2, #0 + 8008fda: 605a str r2, [r3, #4] pdev->dev_remote_wakeup = 0U; - 8008f88: 687b ldr r3, [r7, #4] - 8008f8a: 2200 movs r2, #0 - 8008f8c: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 + 8008fdc: 687b ldr r3, [r7, #4] + 8008fde: 2200 movs r2, #0 + 8008fe0: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 pdev->dev_test_mode = 0U; - 8008f90: 687b ldr r3, [r7, #4] - 8008f92: 2200 movs r2, #0 - 8008f94: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 + 8008fe4: 687b ldr r3, [r7, #4] + 8008fe6: 2200 movs r2, #0 + 8008fe8: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 } } } #else if (pdev->pClass[0] != NULL) - 8008f98: 687b ldr r3, [r7, #4] - 8008f9a: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8008f9e: 2b00 cmp r3, #0 - 8008fa0: d014 beq.n 8008fcc + 8008fec: 687b ldr r3, [r7, #4] + 8008fee: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8008ff2: 2b00 cmp r3, #0 + 8008ff4: d014 beq.n 8009020 { if (pdev->pClass[0]->DeInit != NULL) - 8008fa2: 687b ldr r3, [r7, #4] - 8008fa4: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8008fa8: 685b ldr r3, [r3, #4] - 8008faa: 2b00 cmp r3, #0 - 8008fac: d00e beq.n 8008fcc + 8008ff6: 687b ldr r3, [r7, #4] + 8008ff8: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8008ffc: 685b ldr r3, [r3, #4] + 8008ffe: 2b00 cmp r3, #0 + 8009000: d00e beq.n 8009020 { if (pdev->pClass[0]->DeInit(pdev, (uint8_t)pdev->dev_config) != USBD_OK) - 8008fae: 687b ldr r3, [r7, #4] - 8008fb0: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8008fb4: 685b ldr r3, [r3, #4] - 8008fb6: 687a ldr r2, [r7, #4] - 8008fb8: 6852 ldr r2, [r2, #4] - 8008fba: b2d2 uxtb r2, r2 - 8008fbc: 4611 mov r1, r2 - 8008fbe: 6878 ldr r0, [r7, #4] - 8008fc0: 4798 blx r3 - 8008fc2: 4603 mov r3, r0 - 8008fc4: 2b00 cmp r3, #0 - 8008fc6: d001 beq.n 8008fcc + 8009002: 687b ldr r3, [r7, #4] + 8009004: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009008: 685b ldr r3, [r3, #4] + 800900a: 687a ldr r2, [r7, #4] + 800900c: 6852 ldr r2, [r2, #4] + 800900e: b2d2 uxtb r2, r2 + 8009010: 4611 mov r1, r2 + 8009012: 6878 ldr r0, [r7, #4] + 8009014: 4798 blx r3 + 8009016: 4603 mov r3, r0 + 8009018: 2b00 cmp r3, #0 + 800901a: d001 beq.n 8009020 { ret = USBD_FAIL; - 8008fc8: 2303 movs r3, #3 - 8008fca: 73fb strb r3, [r7, #15] + 800901c: 2303 movs r3, #3 + 800901e: 73fb strb r3, [r7, #15] } } #endif /* USE_USBD_COMPOSITE */ /* Open EP0 OUT */ (void)USBD_LL_OpenEP(pdev, 0x00U, USBD_EP_TYPE_CTRL, USB_MAX_EP0_SIZE); - 8008fcc: 2340 movs r3, #64 @ 0x40 - 8008fce: 2200 movs r2, #0 - 8008fd0: 2100 movs r1, #0 - 8008fd2: 6878 ldr r0, [r7, #4] - 8008fd4: f001 fb7b bl 800a6ce + 8009020: 2340 movs r3, #64 @ 0x40 + 8009022: 2200 movs r2, #0 + 8009024: 2100 movs r1, #0 + 8009026: 6878 ldr r0, [r7, #4] + 8009028: f001 fb7b bl 800a722 pdev->ep_out[0x00U & 0xFU].is_used = 1U; - 8008fd8: 687b ldr r3, [r7, #4] - 8008fda: 2201 movs r2, #1 - 8008fdc: f883 2163 strb.w r2, [r3, #355] @ 0x163 + 800902c: 687b ldr r3, [r7, #4] + 800902e: 2201 movs r2, #1 + 8009030: f883 2163 strb.w r2, [r3, #355] @ 0x163 pdev->ep_out[0].maxpacket = USB_MAX_EP0_SIZE; - 8008fe0: 687b ldr r3, [r7, #4] - 8008fe2: 2240 movs r2, #64 @ 0x40 - 8008fe4: f8a3 2160 strh.w r2, [r3, #352] @ 0x160 + 8009034: 687b ldr r3, [r7, #4] + 8009036: 2240 movs r2, #64 @ 0x40 + 8009038: f8a3 2160 strh.w r2, [r3, #352] @ 0x160 /* Open EP0 IN */ (void)USBD_LL_OpenEP(pdev, 0x80U, USBD_EP_TYPE_CTRL, USB_MAX_EP0_SIZE); - 8008fe8: 2340 movs r3, #64 @ 0x40 - 8008fea: 2200 movs r2, #0 - 8008fec: 2180 movs r1, #128 @ 0x80 - 8008fee: 6878 ldr r0, [r7, #4] - 8008ff0: f001 fb6d bl 800a6ce + 800903c: 2340 movs r3, #64 @ 0x40 + 800903e: 2200 movs r2, #0 + 8009040: 2180 movs r1, #128 @ 0x80 + 8009042: 6878 ldr r0, [r7, #4] + 8009044: f001 fb6d bl 800a722 pdev->ep_in[0x80U & 0xFU].is_used = 1U; - 8008ff4: 687b ldr r3, [r7, #4] - 8008ff6: 2201 movs r2, #1 - 8008ff8: f883 2023 strb.w r2, [r3, #35] @ 0x23 + 8009048: 687b ldr r3, [r7, #4] + 800904a: 2201 movs r2, #1 + 800904c: f883 2023 strb.w r2, [r3, #35] @ 0x23 pdev->ep_in[0].maxpacket = USB_MAX_EP0_SIZE; - 8008ffc: 687b ldr r3, [r7, #4] - 8008ffe: 2240 movs r2, #64 @ 0x40 - 8009000: 841a strh r2, [r3, #32] + 8009050: 687b ldr r3, [r7, #4] + 8009052: 2240 movs r2, #64 @ 0x40 + 8009054: 841a strh r2, [r3, #32] return ret; - 8009002: 7bfb ldrb r3, [r7, #15] + 8009056: 7bfb ldrb r3, [r7, #15] } - 8009004: 4618 mov r0, r3 - 8009006: 3710 adds r7, #16 - 8009008: 46bd mov sp, r7 - 800900a: bd80 pop {r7, pc} + 8009058: 4618 mov r0, r3 + 800905a: 3710 adds r7, #16 + 800905c: 46bd mov sp, r7 + 800905e: bd80 pop {r7, pc} -0800900c : +08009060 : * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_SetSpeed(USBD_HandleTypeDef *pdev, USBD_SpeedTypeDef speed) { - 800900c: b480 push {r7} - 800900e: b083 sub sp, #12 - 8009010: af00 add r7, sp, #0 - 8009012: 6078 str r0, [r7, #4] - 8009014: 460b mov r3, r1 - 8009016: 70fb strb r3, [r7, #3] + 8009060: b480 push {r7} + 8009062: b083 sub sp, #12 + 8009064: af00 add r7, sp, #0 + 8009066: 6078 str r0, [r7, #4] + 8009068: 460b mov r3, r1 + 800906a: 70fb strb r3, [r7, #3] pdev->dev_speed = speed; - 8009018: 687b ldr r3, [r7, #4] - 800901a: 78fa ldrb r2, [r7, #3] - 800901c: 741a strb r2, [r3, #16] + 800906c: 687b ldr r3, [r7, #4] + 800906e: 78fa ldrb r2, [r7, #3] + 8009070: 741a strb r2, [r3, #16] return USBD_OK; - 800901e: 2300 movs r3, #0 + 8009072: 2300 movs r3, #0 } - 8009020: 4618 mov r0, r3 - 8009022: 370c adds r7, #12 - 8009024: 46bd mov sp, r7 - 8009026: f85d 7b04 ldr.w r7, [sp], #4 - 800902a: 4770 bx lr + 8009074: 4618 mov r0, r3 + 8009076: 370c adds r7, #12 + 8009078: 46bd mov sp, r7 + 800907a: f85d 7b04 ldr.w r7, [sp], #4 + 800907e: 4770 bx lr -0800902c : +08009080 : * Handle Suspend event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_Suspend(USBD_HandleTypeDef *pdev) { - 800902c: b480 push {r7} - 800902e: b083 sub sp, #12 - 8009030: af00 add r7, sp, #0 - 8009032: 6078 str r0, [r7, #4] + 8009080: b480 push {r7} + 8009082: b083 sub sp, #12 + 8009084: af00 add r7, sp, #0 + 8009086: 6078 str r0, [r7, #4] if (pdev->dev_state != USBD_STATE_SUSPENDED) - 8009034: 687b ldr r3, [r7, #4] - 8009036: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800903a: b2db uxtb r3, r3 - 800903c: 2b04 cmp r3, #4 - 800903e: d006 beq.n 800904e + 8009088: 687b ldr r3, [r7, #4] + 800908a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800908e: b2db uxtb r3, r3 + 8009090: 2b04 cmp r3, #4 + 8009092: d006 beq.n 80090a2 { pdev->dev_old_state = pdev->dev_state; - 8009040: 687b ldr r3, [r7, #4] - 8009042: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009046: b2da uxtb r2, r3 - 8009048: 687b ldr r3, [r7, #4] - 800904a: f883 229d strb.w r2, [r3, #669] @ 0x29d + 8009094: 687b ldr r3, [r7, #4] + 8009096: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800909a: b2da uxtb r2, r3 + 800909c: 687b ldr r3, [r7, #4] + 800909e: f883 229d strb.w r2, [r3, #669] @ 0x29d } pdev->dev_state = USBD_STATE_SUSPENDED; - 800904e: 687b ldr r3, [r7, #4] - 8009050: 2204 movs r2, #4 - 8009052: f883 229c strb.w r2, [r3, #668] @ 0x29c + 80090a2: 687b ldr r3, [r7, #4] + 80090a4: 2204 movs r2, #4 + 80090a6: f883 229c strb.w r2, [r3, #668] @ 0x29c return USBD_OK; - 8009056: 2300 movs r3, #0 + 80090aa: 2300 movs r3, #0 } - 8009058: 4618 mov r0, r3 - 800905a: 370c adds r7, #12 - 800905c: 46bd mov sp, r7 - 800905e: f85d 7b04 ldr.w r7, [sp], #4 - 8009062: 4770 bx lr + 80090ac: 4618 mov r0, r3 + 80090ae: 370c adds r7, #12 + 80090b0: 46bd mov sp, r7 + 80090b2: f85d 7b04 ldr.w r7, [sp], #4 + 80090b6: 4770 bx lr -08009064 : +080090b8 : * Handle Resume event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_Resume(USBD_HandleTypeDef *pdev) { - 8009064: b480 push {r7} - 8009066: b083 sub sp, #12 - 8009068: af00 add r7, sp, #0 - 800906a: 6078 str r0, [r7, #4] + 80090b8: b480 push {r7} + 80090ba: b083 sub sp, #12 + 80090bc: af00 add r7, sp, #0 + 80090be: 6078 str r0, [r7, #4] if (pdev->dev_state == USBD_STATE_SUSPENDED) - 800906c: 687b ldr r3, [r7, #4] - 800906e: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009072: b2db uxtb r3, r3 - 8009074: 2b04 cmp r3, #4 - 8009076: d106 bne.n 8009086 + 80090c0: 687b ldr r3, [r7, #4] + 80090c2: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 80090c6: b2db uxtb r3, r3 + 80090c8: 2b04 cmp r3, #4 + 80090ca: d106 bne.n 80090da { pdev->dev_state = pdev->dev_old_state; - 8009078: 687b ldr r3, [r7, #4] - 800907a: f893 329d ldrb.w r3, [r3, #669] @ 0x29d - 800907e: b2da uxtb r2, r3 - 8009080: 687b ldr r3, [r7, #4] - 8009082: f883 229c strb.w r2, [r3, #668] @ 0x29c + 80090cc: 687b ldr r3, [r7, #4] + 80090ce: f893 329d ldrb.w r3, [r3, #669] @ 0x29d + 80090d2: b2da uxtb r2, r3 + 80090d4: 687b ldr r3, [r7, #4] + 80090d6: f883 229c strb.w r2, [r3, #668] @ 0x29c } return USBD_OK; - 8009086: 2300 movs r3, #0 + 80090da: 2300 movs r3, #0 } - 8009088: 4618 mov r0, r3 - 800908a: 370c adds r7, #12 - 800908c: 46bd mov sp, r7 - 800908e: f85d 7b04 ldr.w r7, [sp], #4 - 8009092: 4770 bx lr + 80090dc: 4618 mov r0, r3 + 80090de: 370c adds r7, #12 + 80090e0: 46bd mov sp, r7 + 80090e2: f85d 7b04 ldr.w r7, [sp], #4 + 80090e6: 4770 bx lr -08009094 : +080090e8 : * Handle SOF event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_SOF(USBD_HandleTypeDef *pdev) { - 8009094: b580 push {r7, lr} - 8009096: b082 sub sp, #8 - 8009098: af00 add r7, sp, #0 - 800909a: 6078 str r0, [r7, #4] + 80090e8: b580 push {r7, lr} + 80090ea: b082 sub sp, #8 + 80090ec: af00 add r7, sp, #0 + 80090ee: 6078 str r0, [r7, #4] /* The SOF event can be distributed for all classes that support it */ if (pdev->dev_state == USBD_STATE_CONFIGURED) - 800909c: 687b ldr r3, [r7, #4] - 800909e: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80090a2: b2db uxtb r3, r3 - 80090a4: 2b03 cmp r3, #3 - 80090a6: d110 bne.n 80090ca + 80090f0: 687b ldr r3, [r7, #4] + 80090f2: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 80090f6: b2db uxtb r3, r3 + 80090f8: 2b03 cmp r3, #3 + 80090fa: d110 bne.n 800911e } } } } #else if (pdev->pClass[0] != NULL) - 80090a8: 687b ldr r3, [r7, #4] - 80090aa: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 80090ae: 2b00 cmp r3, #0 - 80090b0: d00b beq.n 80090ca + 80090fc: 687b ldr r3, [r7, #4] + 80090fe: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009102: 2b00 cmp r3, #0 + 8009104: d00b beq.n 800911e { if (pdev->pClass[0]->SOF != NULL) - 80090b2: 687b ldr r3, [r7, #4] - 80090b4: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 80090b8: 69db ldr r3, [r3, #28] - 80090ba: 2b00 cmp r3, #0 - 80090bc: d005 beq.n 80090ca + 8009106: 687b ldr r3, [r7, #4] + 8009108: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 800910c: 69db ldr r3, [r3, #28] + 800910e: 2b00 cmp r3, #0 + 8009110: d005 beq.n 800911e { (void)pdev->pClass[0]->SOF(pdev); - 80090be: 687b ldr r3, [r7, #4] - 80090c0: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 80090c4: 69db ldr r3, [r3, #28] - 80090c6: 6878 ldr r0, [r7, #4] - 80090c8: 4798 blx r3 + 8009112: 687b ldr r3, [r7, #4] + 8009114: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009118: 69db ldr r3, [r3, #28] + 800911a: 6878 ldr r0, [r7, #4] + 800911c: 4798 blx r3 } } #endif /* USE_USBD_COMPOSITE */ } return USBD_OK; - 80090ca: 2300 movs r3, #0 + 800911e: 2300 movs r3, #0 } - 80090cc: 4618 mov r0, r3 - 80090ce: 3708 adds r7, #8 - 80090d0: 46bd mov sp, r7 - 80090d2: bd80 pop {r7, pc} + 8009120: 4618 mov r0, r3 + 8009122: 3708 adds r7, #8 + 8009124: 46bd mov sp, r7 + 8009126: bd80 pop {r7, pc} -080090d4 : +08009128 : * @param epnum: Endpoint number * @retval status */ USBD_StatusTypeDef USBD_LL_IsoINIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum) { - 80090d4: b580 push {r7, lr} - 80090d6: b082 sub sp, #8 - 80090d8: af00 add r7, sp, #0 - 80090da: 6078 str r0, [r7, #4] - 80090dc: 460b mov r3, r1 - 80090de: 70fb strb r3, [r7, #3] + 8009128: b580 push {r7, lr} + 800912a: b082 sub sp, #8 + 800912c: af00 add r7, sp, #0 + 800912e: 6078 str r0, [r7, #4] + 8009130: 460b mov r3, r1 + 8009132: 70fb strb r3, [r7, #3] if (pdev->pClass[pdev->classId] == NULL) - 80090e0: 687b ldr r3, [r7, #4] - 80090e2: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80090e6: 687b ldr r3, [r7, #4] - 80090e8: 32ae adds r2, #174 @ 0xae - 80090ea: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80090ee: 2b00 cmp r3, #0 - 80090f0: d101 bne.n 80090f6 + 8009134: 687b ldr r3, [r7, #4] + 8009136: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 800913a: 687b ldr r3, [r7, #4] + 800913c: 32ae adds r2, #174 @ 0xae + 800913e: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009142: 2b00 cmp r3, #0 + 8009144: d101 bne.n 800914a { return USBD_FAIL; - 80090f2: 2303 movs r3, #3 - 80090f4: e01c b.n 8009130 + 8009146: 2303 movs r3, #3 + 8009148: e01c b.n 8009184 } if (pdev->dev_state == USBD_STATE_CONFIGURED) - 80090f6: 687b ldr r3, [r7, #4] - 80090f8: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80090fc: b2db uxtb r3, r3 - 80090fe: 2b03 cmp r3, #3 - 8009100: d115 bne.n 800912e + 800914a: 687b ldr r3, [r7, #4] + 800914c: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009150: b2db uxtb r3, r3 + 8009152: 2b03 cmp r3, #3 + 8009154: d115 bne.n 8009182 { if (pdev->pClass[pdev->classId]->IsoINIncomplete != NULL) - 8009102: 687b ldr r3, [r7, #4] - 8009104: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009108: 687b ldr r3, [r7, #4] - 800910a: 32ae adds r2, #174 @ 0xae - 800910c: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009110: 6a1b ldr r3, [r3, #32] - 8009112: 2b00 cmp r3, #0 - 8009114: d00b beq.n 800912e + 8009156: 687b ldr r3, [r7, #4] + 8009158: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 800915c: 687b ldr r3, [r7, #4] + 800915e: 32ae adds r2, #174 @ 0xae + 8009160: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009164: 6a1b ldr r3, [r3, #32] + 8009166: 2b00 cmp r3, #0 + 8009168: d00b beq.n 8009182 { (void)pdev->pClass[pdev->classId]->IsoINIncomplete(pdev, epnum); - 8009116: 687b ldr r3, [r7, #4] - 8009118: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 800911c: 687b ldr r3, [r7, #4] - 800911e: 32ae adds r2, #174 @ 0xae - 8009120: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009124: 6a1b ldr r3, [r3, #32] - 8009126: 78fa ldrb r2, [r7, #3] - 8009128: 4611 mov r1, r2 - 800912a: 6878 ldr r0, [r7, #4] - 800912c: 4798 blx r3 + 800916a: 687b ldr r3, [r7, #4] + 800916c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009170: 687b ldr r3, [r7, #4] + 8009172: 32ae adds r2, #174 @ 0xae + 8009174: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009178: 6a1b ldr r3, [r3, #32] + 800917a: 78fa ldrb r2, [r7, #3] + 800917c: 4611 mov r1, r2 + 800917e: 6878 ldr r0, [r7, #4] + 8009180: 4798 blx r3 } } return USBD_OK; - 800912e: 2300 movs r3, #0 + 8009182: 2300 movs r3, #0 } - 8009130: 4618 mov r0, r3 - 8009132: 3708 adds r7, #8 - 8009134: 46bd mov sp, r7 - 8009136: bd80 pop {r7, pc} + 8009184: 4618 mov r0, r3 + 8009186: 3708 adds r7, #8 + 8009188: 46bd mov sp, r7 + 800918a: bd80 pop {r7, pc} -08009138 : +0800918c : * @param epnum: Endpoint number * @retval status */ USBD_StatusTypeDef USBD_LL_IsoOUTIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum) { - 8009138: b580 push {r7, lr} - 800913a: b082 sub sp, #8 - 800913c: af00 add r7, sp, #0 - 800913e: 6078 str r0, [r7, #4] - 8009140: 460b mov r3, r1 - 8009142: 70fb strb r3, [r7, #3] + 800918c: b580 push {r7, lr} + 800918e: b082 sub sp, #8 + 8009190: af00 add r7, sp, #0 + 8009192: 6078 str r0, [r7, #4] + 8009194: 460b mov r3, r1 + 8009196: 70fb strb r3, [r7, #3] if (pdev->pClass[pdev->classId] == NULL) - 8009144: 687b ldr r3, [r7, #4] - 8009146: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 800914a: 687b ldr r3, [r7, #4] - 800914c: 32ae adds r2, #174 @ 0xae - 800914e: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009152: 2b00 cmp r3, #0 - 8009154: d101 bne.n 800915a + 8009198: 687b ldr r3, [r7, #4] + 800919a: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 800919e: 687b ldr r3, [r7, #4] + 80091a0: 32ae adds r2, #174 @ 0xae + 80091a2: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80091a6: 2b00 cmp r3, #0 + 80091a8: d101 bne.n 80091ae { return USBD_FAIL; - 8009156: 2303 movs r3, #3 - 8009158: e01c b.n 8009194 + 80091aa: 2303 movs r3, #3 + 80091ac: e01c b.n 80091e8 } if (pdev->dev_state == USBD_STATE_CONFIGURED) - 800915a: 687b ldr r3, [r7, #4] - 800915c: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009160: b2db uxtb r3, r3 - 8009162: 2b03 cmp r3, #3 - 8009164: d115 bne.n 8009192 + 80091ae: 687b ldr r3, [r7, #4] + 80091b0: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 80091b4: b2db uxtb r3, r3 + 80091b6: 2b03 cmp r3, #3 + 80091b8: d115 bne.n 80091e6 { if (pdev->pClass[pdev->classId]->IsoOUTIncomplete != NULL) - 8009166: 687b ldr r3, [r7, #4] - 8009168: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 800916c: 687b ldr r3, [r7, #4] - 800916e: 32ae adds r2, #174 @ 0xae - 8009170: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009174: 6a5b ldr r3, [r3, #36] @ 0x24 - 8009176: 2b00 cmp r3, #0 - 8009178: d00b beq.n 8009192 + 80091ba: 687b ldr r3, [r7, #4] + 80091bc: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 80091c0: 687b ldr r3, [r7, #4] + 80091c2: 32ae adds r2, #174 @ 0xae + 80091c4: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80091c8: 6a5b ldr r3, [r3, #36] @ 0x24 + 80091ca: 2b00 cmp r3, #0 + 80091cc: d00b beq.n 80091e6 { (void)pdev->pClass[pdev->classId]->IsoOUTIncomplete(pdev, epnum); - 800917a: 687b ldr r3, [r7, #4] - 800917c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009180: 687b ldr r3, [r7, #4] - 8009182: 32ae adds r2, #174 @ 0xae - 8009184: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009188: 6a5b ldr r3, [r3, #36] @ 0x24 - 800918a: 78fa ldrb r2, [r7, #3] - 800918c: 4611 mov r1, r2 - 800918e: 6878 ldr r0, [r7, #4] - 8009190: 4798 blx r3 + 80091ce: 687b ldr r3, [r7, #4] + 80091d0: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 80091d4: 687b ldr r3, [r7, #4] + 80091d6: 32ae adds r2, #174 @ 0xae + 80091d8: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80091dc: 6a5b ldr r3, [r3, #36] @ 0x24 + 80091de: 78fa ldrb r2, [r7, #3] + 80091e0: 4611 mov r1, r2 + 80091e2: 6878 ldr r0, [r7, #4] + 80091e4: 4798 blx r3 } } return USBD_OK; - 8009192: 2300 movs r3, #0 + 80091e6: 2300 movs r3, #0 } - 8009194: 4618 mov r0, r3 - 8009196: 3708 adds r7, #8 - 8009198: 46bd mov sp, r7 - 800919a: bd80 pop {r7, pc} + 80091e8: 4618 mov r0, r3 + 80091ea: 3708 adds r7, #8 + 80091ec: 46bd mov sp, r7 + 80091ee: bd80 pop {r7, pc} -0800919c : +080091f0 : * Handle device connection event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_DevConnected(USBD_HandleTypeDef *pdev) { - 800919c: b480 push {r7} - 800919e: b083 sub sp, #12 - 80091a0: af00 add r7, sp, #0 - 80091a2: 6078 str r0, [r7, #4] + 80091f0: b480 push {r7} + 80091f2: b083 sub sp, #12 + 80091f4: af00 add r7, sp, #0 + 80091f6: 6078 str r0, [r7, #4] /* Prevent unused argument compilation warning */ UNUSED(pdev); return USBD_OK; - 80091a4: 2300 movs r3, #0 + 80091f8: 2300 movs r3, #0 } - 80091a6: 4618 mov r0, r3 - 80091a8: 370c adds r7, #12 - 80091aa: 46bd mov sp, r7 - 80091ac: f85d 7b04 ldr.w r7, [sp], #4 - 80091b0: 4770 bx lr + 80091fa: 4618 mov r0, r3 + 80091fc: 370c adds r7, #12 + 80091fe: 46bd mov sp, r7 + 8009200: f85d 7b04 ldr.w r7, [sp], #4 + 8009204: 4770 bx lr -080091b2 : +08009206 : * Handle device disconnection event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_DevDisconnected(USBD_HandleTypeDef *pdev) { - 80091b2: b580 push {r7, lr} - 80091b4: b084 sub sp, #16 - 80091b6: af00 add r7, sp, #0 - 80091b8: 6078 str r0, [r7, #4] + 8009206: b580 push {r7, lr} + 8009208: b084 sub sp, #16 + 800920a: af00 add r7, sp, #0 + 800920c: 6078 str r0, [r7, #4] USBD_StatusTypeDef ret = USBD_OK; - 80091ba: 2300 movs r3, #0 - 80091bc: 73fb strb r3, [r7, #15] + 800920e: 2300 movs r3, #0 + 8009210: 73fb strb r3, [r7, #15] /* Free Class Resources */ pdev->dev_state = USBD_STATE_DEFAULT; - 80091be: 687b ldr r3, [r7, #4] - 80091c0: 2201 movs r2, #1 - 80091c2: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8009212: 687b ldr r3, [r7, #4] + 8009214: 2201 movs r2, #1 + 8009216: f883 229c strb.w r2, [r3, #668] @ 0x29c } } } } #else if (pdev->pClass[0] != NULL) - 80091c6: 687b ldr r3, [r7, #4] - 80091c8: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 80091cc: 2b00 cmp r3, #0 - 80091ce: d00e beq.n 80091ee + 800921a: 687b ldr r3, [r7, #4] + 800921c: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009220: 2b00 cmp r3, #0 + 8009222: d00e beq.n 8009242 { if (pdev->pClass[0]->DeInit(pdev, (uint8_t)pdev->dev_config) != 0U) - 80091d0: 687b ldr r3, [r7, #4] - 80091d2: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 80091d6: 685b ldr r3, [r3, #4] - 80091d8: 687a ldr r2, [r7, #4] - 80091da: 6852 ldr r2, [r2, #4] - 80091dc: b2d2 uxtb r2, r2 - 80091de: 4611 mov r1, r2 - 80091e0: 6878 ldr r0, [r7, #4] - 80091e2: 4798 blx r3 - 80091e4: 4603 mov r3, r0 - 80091e6: 2b00 cmp r3, #0 - 80091e8: d001 beq.n 80091ee + 8009224: 687b ldr r3, [r7, #4] + 8009226: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 800922a: 685b ldr r3, [r3, #4] + 800922c: 687a ldr r2, [r7, #4] + 800922e: 6852 ldr r2, [r2, #4] + 8009230: b2d2 uxtb r2, r2 + 8009232: 4611 mov r1, r2 + 8009234: 6878 ldr r0, [r7, #4] + 8009236: 4798 blx r3 + 8009238: 4603 mov r3, r0 + 800923a: 2b00 cmp r3, #0 + 800923c: d001 beq.n 8009242 { ret = USBD_FAIL; - 80091ea: 2303 movs r3, #3 - 80091ec: 73fb strb r3, [r7, #15] + 800923e: 2303 movs r3, #3 + 8009240: 73fb strb r3, [r7, #15] } } #endif /* USE_USBD_COMPOSITE */ return ret; - 80091ee: 7bfb ldrb r3, [r7, #15] + 8009242: 7bfb ldrb r3, [r7, #15] } - 80091f0: 4618 mov r0, r3 - 80091f2: 3710 adds r7, #16 - 80091f4: 46bd mov sp, r7 - 80091f6: bd80 pop {r7, pc} + 8009244: 4618 mov r0, r3 + 8009246: 3710 adds r7, #16 + 8009248: 46bd mov sp, r7 + 800924a: bd80 pop {r7, pc} -080091f8 : +0800924c : * @param pdev: device instance * @param index : selected interface number * @retval index of the class using the selected interface number. OxFF if no class found. */ uint8_t USBD_CoreFindIF(USBD_HandleTypeDef *pdev, uint8_t index) { - 80091f8: b480 push {r7} - 80091fa: b083 sub sp, #12 - 80091fc: af00 add r7, sp, #0 - 80091fe: 6078 str r0, [r7, #4] - 8009200: 460b mov r3, r1 - 8009202: 70fb strb r3, [r7, #3] + 800924c: b480 push {r7} + 800924e: b083 sub sp, #12 + 8009250: af00 add r7, sp, #0 + 8009252: 6078 str r0, [r7, #4] + 8009254: 460b mov r3, r1 + 8009256: 70fb strb r3, [r7, #3] return 0xFFU; #else UNUSED(pdev); UNUSED(index); return 0x00U; - 8009204: 2300 movs r3, #0 + 8009258: 2300 movs r3, #0 #endif /* USE_USBD_COMPOSITE */ } - 8009206: 4618 mov r0, r3 - 8009208: 370c adds r7, #12 - 800920a: 46bd mov sp, r7 - 800920c: f85d 7b04 ldr.w r7, [sp], #4 - 8009210: 4770 bx lr + 800925a: 4618 mov r0, r3 + 800925c: 370c adds r7, #12 + 800925e: 46bd mov sp, r7 + 8009260: f85d 7b04 ldr.w r7, [sp], #4 + 8009264: 4770 bx lr -08009212 : +08009266 : * @param pdev: device instance * @param index : selected endpoint number * @retval index of the class using the selected endpoint number. 0xFF if no class found. */ uint8_t USBD_CoreFindEP(USBD_HandleTypeDef *pdev, uint8_t index) { - 8009212: b480 push {r7} - 8009214: b083 sub sp, #12 - 8009216: af00 add r7, sp, #0 - 8009218: 6078 str r0, [r7, #4] - 800921a: 460b mov r3, r1 - 800921c: 70fb strb r3, [r7, #3] + 8009266: b480 push {r7} + 8009268: b083 sub sp, #12 + 800926a: af00 add r7, sp, #0 + 800926c: 6078 str r0, [r7, #4] + 800926e: 460b mov r3, r1 + 8009270: 70fb strb r3, [r7, #3] return 0xFFU; #else UNUSED(pdev); UNUSED(index); return 0x00U; - 800921e: 2300 movs r3, #0 + 8009272: 2300 movs r3, #0 #endif /* USE_USBD_COMPOSITE */ } - 8009220: 4618 mov r0, r3 - 8009222: 370c adds r7, #12 - 8009224: 46bd mov sp, r7 - 8009226: f85d 7b04 ldr.w r7, [sp], #4 - 800922a: 4770 bx lr + 8009274: 4618 mov r0, r3 + 8009276: 370c adds r7, #12 + 8009278: 46bd mov sp, r7 + 800927a: f85d 7b04 ldr.w r7, [sp], #4 + 800927e: 4770 bx lr -0800922c : +08009280 : * @param pConfDesc: pointer to Bos descriptor * @param EpAddr: endpoint address * @retval pointer to video endpoint descriptor */ void *USBD_GetEpDesc(uint8_t *pConfDesc, uint8_t EpAddr) { - 800922c: b580 push {r7, lr} - 800922e: b086 sub sp, #24 - 8009230: af00 add r7, sp, #0 - 8009232: 6078 str r0, [r7, #4] - 8009234: 460b mov r3, r1 - 8009236: 70fb strb r3, [r7, #3] + 8009280: b580 push {r7, lr} + 8009282: b086 sub sp, #24 + 8009284: af00 add r7, sp, #0 + 8009286: 6078 str r0, [r7, #4] + 8009288: 460b mov r3, r1 + 800928a: 70fb strb r3, [r7, #3] USBD_DescHeaderTypeDef *pdesc = (USBD_DescHeaderTypeDef *)(void *)pConfDesc; - 8009238: 687b ldr r3, [r7, #4] - 800923a: 617b str r3, [r7, #20] + 800928c: 687b ldr r3, [r7, #4] + 800928e: 617b str r3, [r7, #20] USBD_ConfigDescTypeDef *desc = (USBD_ConfigDescTypeDef *)(void *)pConfDesc; - 800923c: 687b ldr r3, [r7, #4] - 800923e: 60fb str r3, [r7, #12] + 8009290: 687b ldr r3, [r7, #4] + 8009292: 60fb str r3, [r7, #12] USBD_EpDescTypeDef *pEpDesc = NULL; - 8009240: 2300 movs r3, #0 - 8009242: 613b str r3, [r7, #16] + 8009294: 2300 movs r3, #0 + 8009296: 613b str r3, [r7, #16] uint16_t ptr; if (desc->wTotalLength > desc->bLength) - 8009244: 68fb ldr r3, [r7, #12] - 8009246: 885b ldrh r3, [r3, #2] - 8009248: b29b uxth r3, r3 - 800924a: 68fa ldr r2, [r7, #12] - 800924c: 7812 ldrb r2, [r2, #0] - 800924e: 4293 cmp r3, r2 - 8009250: d91f bls.n 8009292 + 8009298: 68fb ldr r3, [r7, #12] + 800929a: 885b ldrh r3, [r3, #2] + 800929c: b29b uxth r3, r3 + 800929e: 68fa ldr r2, [r7, #12] + 80092a0: 7812 ldrb r2, [r2, #0] + 80092a2: 4293 cmp r3, r2 + 80092a4: d91f bls.n 80092e6 { ptr = desc->bLength; - 8009252: 68fb ldr r3, [r7, #12] - 8009254: 781b ldrb r3, [r3, #0] - 8009256: 817b strh r3, [r7, #10] + 80092a6: 68fb ldr r3, [r7, #12] + 80092a8: 781b ldrb r3, [r3, #0] + 80092aa: 817b strh r3, [r7, #10] while (ptr < desc->wTotalLength) - 8009258: e013 b.n 8009282 + 80092ac: e013 b.n 80092d6 { pdesc = USBD_GetNextDesc((uint8_t *)pdesc, &ptr); - 800925a: f107 030a add.w r3, r7, #10 - 800925e: 4619 mov r1, r3 - 8009260: 6978 ldr r0, [r7, #20] - 8009262: f000 f81b bl 800929c - 8009266: 6178 str r0, [r7, #20] + 80092ae: f107 030a add.w r3, r7, #10 + 80092b2: 4619 mov r1, r3 + 80092b4: 6978 ldr r0, [r7, #20] + 80092b6: f000 f81b bl 80092f0 + 80092ba: 6178 str r0, [r7, #20] if (pdesc->bDescriptorType == USB_DESC_TYPE_ENDPOINT) - 8009268: 697b ldr r3, [r7, #20] - 800926a: 785b ldrb r3, [r3, #1] - 800926c: 2b05 cmp r3, #5 - 800926e: d108 bne.n 8009282 + 80092bc: 697b ldr r3, [r7, #20] + 80092be: 785b ldrb r3, [r3, #1] + 80092c0: 2b05 cmp r3, #5 + 80092c2: d108 bne.n 80092d6 { pEpDesc = (USBD_EpDescTypeDef *)(void *)pdesc; - 8009270: 697b ldr r3, [r7, #20] - 8009272: 613b str r3, [r7, #16] + 80092c4: 697b ldr r3, [r7, #20] + 80092c6: 613b str r3, [r7, #16] if (pEpDesc->bEndpointAddress == EpAddr) - 8009274: 693b ldr r3, [r7, #16] - 8009276: 789b ldrb r3, [r3, #2] - 8009278: 78fa ldrb r2, [r7, #3] - 800927a: 429a cmp r2, r3 - 800927c: d008 beq.n 8009290 + 80092c8: 693b ldr r3, [r7, #16] + 80092ca: 789b ldrb r3, [r3, #2] + 80092cc: 78fa ldrb r2, [r7, #3] + 80092ce: 429a cmp r2, r3 + 80092d0: d008 beq.n 80092e4 { break; } else { pEpDesc = NULL; - 800927e: 2300 movs r3, #0 - 8009280: 613b str r3, [r7, #16] + 80092d2: 2300 movs r3, #0 + 80092d4: 613b str r3, [r7, #16] while (ptr < desc->wTotalLength) - 8009282: 68fb ldr r3, [r7, #12] - 8009284: 885b ldrh r3, [r3, #2] - 8009286: b29a uxth r2, r3 - 8009288: 897b ldrh r3, [r7, #10] - 800928a: 429a cmp r2, r3 - 800928c: d8e5 bhi.n 800925a - 800928e: e000 b.n 8009292 + 80092d6: 68fb ldr r3, [r7, #12] + 80092d8: 885b ldrh r3, [r3, #2] + 80092da: b29a uxth r2, r3 + 80092dc: 897b ldrh r3, [r7, #10] + 80092de: 429a cmp r2, r3 + 80092e0: d8e5 bhi.n 80092ae + 80092e2: e000 b.n 80092e6 break; - 8009290: bf00 nop + 80092e4: bf00 nop } } } } return (void *)pEpDesc; - 8009292: 693b ldr r3, [r7, #16] + 80092e6: 693b ldr r3, [r7, #16] } - 8009294: 4618 mov r0, r3 - 8009296: 3718 adds r7, #24 - 8009298: 46bd mov sp, r7 - 800929a: bd80 pop {r7, pc} + 80092e8: 4618 mov r0, r3 + 80092ea: 3718 adds r7, #24 + 80092ec: 46bd mov sp, r7 + 80092ee: bd80 pop {r7, pc} -0800929c : +080092f0 : * @param buf: Buffer where the descriptor is available * @param ptr: data pointer inside the descriptor * @retval next header */ USBD_DescHeaderTypeDef *USBD_GetNextDesc(uint8_t *pbuf, uint16_t *ptr) { - 800929c: b480 push {r7} - 800929e: b085 sub sp, #20 - 80092a0: af00 add r7, sp, #0 - 80092a2: 6078 str r0, [r7, #4] - 80092a4: 6039 str r1, [r7, #0] + 80092f0: b480 push {r7} + 80092f2: b085 sub sp, #20 + 80092f4: af00 add r7, sp, #0 + 80092f6: 6078 str r0, [r7, #4] + 80092f8: 6039 str r1, [r7, #0] USBD_DescHeaderTypeDef *pnext = (USBD_DescHeaderTypeDef *)(void *)pbuf; - 80092a6: 687b ldr r3, [r7, #4] - 80092a8: 60fb str r3, [r7, #12] + 80092fa: 687b ldr r3, [r7, #4] + 80092fc: 60fb str r3, [r7, #12] *ptr += pnext->bLength; - 80092aa: 683b ldr r3, [r7, #0] - 80092ac: 881b ldrh r3, [r3, #0] - 80092ae: 68fa ldr r2, [r7, #12] - 80092b0: 7812 ldrb r2, [r2, #0] - 80092b2: 4413 add r3, r2 - 80092b4: b29a uxth r2, r3 - 80092b6: 683b ldr r3, [r7, #0] - 80092b8: 801a strh r2, [r3, #0] + 80092fe: 683b ldr r3, [r7, #0] + 8009300: 881b ldrh r3, [r3, #0] + 8009302: 68fa ldr r2, [r7, #12] + 8009304: 7812 ldrb r2, [r2, #0] + 8009306: 4413 add r3, r2 + 8009308: b29a uxth r2, r3 + 800930a: 683b ldr r3, [r7, #0] + 800930c: 801a strh r2, [r3, #0] pnext = (USBD_DescHeaderTypeDef *)(void *)(pbuf + pnext->bLength); - 80092ba: 68fb ldr r3, [r7, #12] - 80092bc: 781b ldrb r3, [r3, #0] - 80092be: 461a mov r2, r3 - 80092c0: 687b ldr r3, [r7, #4] - 80092c2: 4413 add r3, r2 - 80092c4: 60fb str r3, [r7, #12] + 800930e: 68fb ldr r3, [r7, #12] + 8009310: 781b ldrb r3, [r3, #0] + 8009312: 461a mov r2, r3 + 8009314: 687b ldr r3, [r7, #4] + 8009316: 4413 add r3, r2 + 8009318: 60fb str r3, [r7, #12] return (pnext); - 80092c6: 68fb ldr r3, [r7, #12] + 800931a: 68fb ldr r3, [r7, #12] } - 80092c8: 4618 mov r0, r3 - 80092ca: 3714 adds r7, #20 - 80092cc: 46bd mov sp, r7 - 80092ce: f85d 7b04 ldr.w r7, [sp], #4 - 80092d2: 4770 bx lr + 800931c: 4618 mov r0, r3 + 800931e: 3714 adds r7, #20 + 8009320: 46bd mov sp, r7 + 8009322: f85d 7b04 ldr.w r7, [sp], #4 + 8009326: 4770 bx lr -080092d4 : +08009328 : /** @defgroup USBD_DEF_Exported_Macros * @{ */ __STATIC_INLINE uint16_t SWAPBYTE(uint8_t *addr) { - 80092d4: b480 push {r7} - 80092d6: b087 sub sp, #28 - 80092d8: af00 add r7, sp, #0 - 80092da: 6078 str r0, [r7, #4] + 8009328: b480 push {r7} + 800932a: b087 sub sp, #28 + 800932c: af00 add r7, sp, #0 + 800932e: 6078 str r0, [r7, #4] uint16_t _SwapVal; uint16_t _Byte1; uint16_t _Byte2; uint8_t *_pbuff = addr; - 80092dc: 687b ldr r3, [r7, #4] - 80092de: 617b str r3, [r7, #20] + 8009330: 687b ldr r3, [r7, #4] + 8009332: 617b str r3, [r7, #20] _Byte1 = *(uint8_t *)_pbuff; - 80092e0: 697b ldr r3, [r7, #20] - 80092e2: 781b ldrb r3, [r3, #0] - 80092e4: 827b strh r3, [r7, #18] + 8009334: 697b ldr r3, [r7, #20] + 8009336: 781b ldrb r3, [r3, #0] + 8009338: 827b strh r3, [r7, #18] _pbuff++; - 80092e6: 697b ldr r3, [r7, #20] - 80092e8: 3301 adds r3, #1 - 80092ea: 617b str r3, [r7, #20] + 800933a: 697b ldr r3, [r7, #20] + 800933c: 3301 adds r3, #1 + 800933e: 617b str r3, [r7, #20] _Byte2 = *(uint8_t *)_pbuff; - 80092ec: 697b ldr r3, [r7, #20] - 80092ee: 781b ldrb r3, [r3, #0] - 80092f0: 823b strh r3, [r7, #16] + 8009340: 697b ldr r3, [r7, #20] + 8009342: 781b ldrb r3, [r3, #0] + 8009344: 823b strh r3, [r7, #16] _SwapVal = (_Byte2 << 8) | _Byte1; - 80092f2: f9b7 3010 ldrsh.w r3, [r7, #16] - 80092f6: 021b lsls r3, r3, #8 - 80092f8: b21a sxth r2, r3 - 80092fa: f9b7 3012 ldrsh.w r3, [r7, #18] - 80092fe: 4313 orrs r3, r2 - 8009300: b21b sxth r3, r3 - 8009302: 81fb strh r3, [r7, #14] + 8009346: f9b7 3010 ldrsh.w r3, [r7, #16] + 800934a: 021b lsls r3, r3, #8 + 800934c: b21a sxth r2, r3 + 800934e: f9b7 3012 ldrsh.w r3, [r7, #18] + 8009352: 4313 orrs r3, r2 + 8009354: b21b sxth r3, r3 + 8009356: 81fb strh r3, [r7, #14] return _SwapVal; - 8009304: 89fb ldrh r3, [r7, #14] + 8009358: 89fb ldrh r3, [r7, #14] } - 8009306: 4618 mov r0, r3 - 8009308: 371c adds r7, #28 - 800930a: 46bd mov sp, r7 - 800930c: f85d 7b04 ldr.w r7, [sp], #4 - 8009310: 4770 bx lr + 800935a: 4618 mov r0, r3 + 800935c: 371c adds r7, #28 + 800935e: 46bd mov sp, r7 + 8009360: f85d 7b04 ldr.w r7, [sp], #4 + 8009364: 4770 bx lr ... -08009314 : +08009368 : * @param pdev: device instance * @param req: usb request * @retval status */ USBD_StatusTypeDef USBD_StdDevReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 8009314: b580 push {r7, lr} - 8009316: b084 sub sp, #16 - 8009318: af00 add r7, sp, #0 - 800931a: 6078 str r0, [r7, #4] - 800931c: 6039 str r1, [r7, #0] + 8009368: b580 push {r7, lr} + 800936a: b084 sub sp, #16 + 800936c: af00 add r7, sp, #0 + 800936e: 6078 str r0, [r7, #4] + 8009370: 6039 str r1, [r7, #0] USBD_StatusTypeDef ret = USBD_OK; - 800931e: 2300 movs r3, #0 - 8009320: 73fb strb r3, [r7, #15] + 8009372: 2300 movs r3, #0 + 8009374: 73fb strb r3, [r7, #15] switch (req->bmRequest & USB_REQ_TYPE_MASK) - 8009322: 683b ldr r3, [r7, #0] - 8009324: 781b ldrb r3, [r3, #0] - 8009326: f003 0360 and.w r3, r3, #96 @ 0x60 - 800932a: 2b40 cmp r3, #64 @ 0x40 - 800932c: d005 beq.n 800933a - 800932e: 2b40 cmp r3, #64 @ 0x40 - 8009330: d857 bhi.n 80093e2 - 8009332: 2b00 cmp r3, #0 - 8009334: d00f beq.n 8009356 - 8009336: 2b20 cmp r3, #32 - 8009338: d153 bne.n 80093e2 + 8009376: 683b ldr r3, [r7, #0] + 8009378: 781b ldrb r3, [r3, #0] + 800937a: f003 0360 and.w r3, r3, #96 @ 0x60 + 800937e: 2b40 cmp r3, #64 @ 0x40 + 8009380: d005 beq.n 800938e + 8009382: 2b40 cmp r3, #64 @ 0x40 + 8009384: d857 bhi.n 8009436 + 8009386: 2b00 cmp r3, #0 + 8009388: d00f beq.n 80093aa + 800938a: 2b20 cmp r3, #32 + 800938c: d153 bne.n 8009436 { case USB_REQ_TYPE_CLASS: case USB_REQ_TYPE_VENDOR: ret = (USBD_StatusTypeDef)pdev->pClass[pdev->classId]->Setup(pdev, req); - 800933a: 687b ldr r3, [r7, #4] - 800933c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009340: 687b ldr r3, [r7, #4] - 8009342: 32ae adds r2, #174 @ 0xae - 8009344: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009348: 689b ldr r3, [r3, #8] - 800934a: 6839 ldr r1, [r7, #0] - 800934c: 6878 ldr r0, [r7, #4] - 800934e: 4798 blx r3 - 8009350: 4603 mov r3, r0 - 8009352: 73fb strb r3, [r7, #15] + 800938e: 687b ldr r3, [r7, #4] + 8009390: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009394: 687b ldr r3, [r7, #4] + 8009396: 32ae adds r2, #174 @ 0xae + 8009398: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800939c: 689b ldr r3, [r3, #8] + 800939e: 6839 ldr r1, [r7, #0] + 80093a0: 6878 ldr r0, [r7, #4] + 80093a2: 4798 blx r3 + 80093a4: 4603 mov r3, r0 + 80093a6: 73fb strb r3, [r7, #15] break; - 8009354: e04a b.n 80093ec + 80093a8: e04a b.n 8009440 case USB_REQ_TYPE_STANDARD: switch (req->bRequest) - 8009356: 683b ldr r3, [r7, #0] - 8009358: 785b ldrb r3, [r3, #1] - 800935a: 2b09 cmp r3, #9 - 800935c: d83b bhi.n 80093d6 - 800935e: a201 add r2, pc, #4 @ (adr r2, 8009364 ) - 8009360: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8009364: 080093b9 .word 0x080093b9 - 8009368: 080093cd .word 0x080093cd - 800936c: 080093d7 .word 0x080093d7 - 8009370: 080093c3 .word 0x080093c3 - 8009374: 080093d7 .word 0x080093d7 - 8009378: 08009397 .word 0x08009397 - 800937c: 0800938d .word 0x0800938d - 8009380: 080093d7 .word 0x080093d7 - 8009384: 080093af .word 0x080093af - 8009388: 080093a1 .word 0x080093a1 + 80093aa: 683b ldr r3, [r7, #0] + 80093ac: 785b ldrb r3, [r3, #1] + 80093ae: 2b09 cmp r3, #9 + 80093b0: d83b bhi.n 800942a + 80093b2: a201 add r2, pc, #4 @ (adr r2, 80093b8 ) + 80093b4: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 80093b8: 0800940d .word 0x0800940d + 80093bc: 08009421 .word 0x08009421 + 80093c0: 0800942b .word 0x0800942b + 80093c4: 08009417 .word 0x08009417 + 80093c8: 0800942b .word 0x0800942b + 80093cc: 080093eb .word 0x080093eb + 80093d0: 080093e1 .word 0x080093e1 + 80093d4: 0800942b .word 0x0800942b + 80093d8: 08009403 .word 0x08009403 + 80093dc: 080093f5 .word 0x080093f5 { case USB_REQ_GET_DESCRIPTOR: USBD_GetDescriptor(pdev, req); - 800938c: 6839 ldr r1, [r7, #0] - 800938e: 6878 ldr r0, [r7, #4] - 8009390: f000 fa3e bl 8009810 + 80093e0: 6839 ldr r1, [r7, #0] + 80093e2: 6878 ldr r0, [r7, #4] + 80093e4: f000 fa3e bl 8009864 break; - 8009394: e024 b.n 80093e0 + 80093e8: e024 b.n 8009434 case USB_REQ_SET_ADDRESS: USBD_SetAddress(pdev, req); - 8009396: 6839 ldr r1, [r7, #0] - 8009398: 6878 ldr r0, [r7, #4] - 800939a: f000 fbcd bl 8009b38 + 80093ea: 6839 ldr r1, [r7, #0] + 80093ec: 6878 ldr r0, [r7, #4] + 80093ee: f000 fbcd bl 8009b8c break; - 800939e: e01f b.n 80093e0 + 80093f2: e01f b.n 8009434 case USB_REQ_SET_CONFIGURATION: ret = USBD_SetConfig(pdev, req); - 80093a0: 6839 ldr r1, [r7, #0] - 80093a2: 6878 ldr r0, [r7, #4] - 80093a4: f000 fc0c bl 8009bc0 - 80093a8: 4603 mov r3, r0 - 80093aa: 73fb strb r3, [r7, #15] + 80093f4: 6839 ldr r1, [r7, #0] + 80093f6: 6878 ldr r0, [r7, #4] + 80093f8: f000 fc0c bl 8009c14 + 80093fc: 4603 mov r3, r0 + 80093fe: 73fb strb r3, [r7, #15] break; - 80093ac: e018 b.n 80093e0 + 8009400: e018 b.n 8009434 case USB_REQ_GET_CONFIGURATION: USBD_GetConfig(pdev, req); - 80093ae: 6839 ldr r1, [r7, #0] - 80093b0: 6878 ldr r0, [r7, #4] - 80093b2: f000 fcaf bl 8009d14 + 8009402: 6839 ldr r1, [r7, #0] + 8009404: 6878 ldr r0, [r7, #4] + 8009406: f000 fcaf bl 8009d68 break; - 80093b6: e013 b.n 80093e0 + 800940a: e013 b.n 8009434 case USB_REQ_GET_STATUS: USBD_GetStatus(pdev, req); - 80093b8: 6839 ldr r1, [r7, #0] - 80093ba: 6878 ldr r0, [r7, #4] - 80093bc: f000 fce0 bl 8009d80 + 800940c: 6839 ldr r1, [r7, #0] + 800940e: 6878 ldr r0, [r7, #4] + 8009410: f000 fce0 bl 8009dd4 break; - 80093c0: e00e b.n 80093e0 + 8009414: e00e b.n 8009434 case USB_REQ_SET_FEATURE: USBD_SetFeature(pdev, req); - 80093c2: 6839 ldr r1, [r7, #0] - 80093c4: 6878 ldr r0, [r7, #4] - 80093c6: f000 fd0f bl 8009de8 + 8009416: 6839 ldr r1, [r7, #0] + 8009418: 6878 ldr r0, [r7, #4] + 800941a: f000 fd0f bl 8009e3c break; - 80093ca: e009 b.n 80093e0 + 800941e: e009 b.n 8009434 case USB_REQ_CLEAR_FEATURE: USBD_ClrFeature(pdev, req); - 80093cc: 6839 ldr r1, [r7, #0] - 80093ce: 6878 ldr r0, [r7, #4] - 80093d0: f000 fd33 bl 8009e3a + 8009420: 6839 ldr r1, [r7, #0] + 8009422: 6878 ldr r0, [r7, #4] + 8009424: f000 fd33 bl 8009e8e break; - 80093d4: e004 b.n 80093e0 + 8009428: e004 b.n 8009434 default: USBD_CtlError(pdev, req); - 80093d6: 6839 ldr r1, [r7, #0] - 80093d8: 6878 ldr r0, [r7, #4] - 80093da: f000 fd8a bl 8009ef2 + 800942a: 6839 ldr r1, [r7, #0] + 800942c: 6878 ldr r0, [r7, #4] + 800942e: f000 fd8a bl 8009f46 break; - 80093de: bf00 nop + 8009432: bf00 nop } break; - 80093e0: e004 b.n 80093ec + 8009434: e004 b.n 8009440 default: USBD_CtlError(pdev, req); - 80093e2: 6839 ldr r1, [r7, #0] - 80093e4: 6878 ldr r0, [r7, #4] - 80093e6: f000 fd84 bl 8009ef2 + 8009436: 6839 ldr r1, [r7, #0] + 8009438: 6878 ldr r0, [r7, #4] + 800943a: f000 fd84 bl 8009f46 break; - 80093ea: bf00 nop + 800943e: bf00 nop } return ret; - 80093ec: 7bfb ldrb r3, [r7, #15] + 8009440: 7bfb ldrb r3, [r7, #15] } - 80093ee: 4618 mov r0, r3 - 80093f0: 3710 adds r7, #16 - 80093f2: 46bd mov sp, r7 - 80093f4: bd80 pop {r7, pc} - 80093f6: bf00 nop + 8009442: 4618 mov r0, r3 + 8009444: 3710 adds r7, #16 + 8009446: 46bd mov sp, r7 + 8009448: bd80 pop {r7, pc} + 800944a: bf00 nop -080093f8 : +0800944c : * @param pdev: device instance * @param req: usb request * @retval status */ USBD_StatusTypeDef USBD_StdItfReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 80093f8: b580 push {r7, lr} - 80093fa: b084 sub sp, #16 - 80093fc: af00 add r7, sp, #0 - 80093fe: 6078 str r0, [r7, #4] - 8009400: 6039 str r1, [r7, #0] + 800944c: b580 push {r7, lr} + 800944e: b084 sub sp, #16 + 8009450: af00 add r7, sp, #0 + 8009452: 6078 str r0, [r7, #4] + 8009454: 6039 str r1, [r7, #0] USBD_StatusTypeDef ret = USBD_OK; - 8009402: 2300 movs r3, #0 - 8009404: 73fb strb r3, [r7, #15] + 8009456: 2300 movs r3, #0 + 8009458: 73fb strb r3, [r7, #15] uint8_t idx; switch (req->bmRequest & USB_REQ_TYPE_MASK) - 8009406: 683b ldr r3, [r7, #0] - 8009408: 781b ldrb r3, [r3, #0] - 800940a: f003 0360 and.w r3, r3, #96 @ 0x60 - 800940e: 2b40 cmp r3, #64 @ 0x40 - 8009410: d005 beq.n 800941e - 8009412: 2b40 cmp r3, #64 @ 0x40 - 8009414: d852 bhi.n 80094bc - 8009416: 2b00 cmp r3, #0 - 8009418: d001 beq.n 800941e - 800941a: 2b20 cmp r3, #32 - 800941c: d14e bne.n 80094bc + 800945a: 683b ldr r3, [r7, #0] + 800945c: 781b ldrb r3, [r3, #0] + 800945e: f003 0360 and.w r3, r3, #96 @ 0x60 + 8009462: 2b40 cmp r3, #64 @ 0x40 + 8009464: d005 beq.n 8009472 + 8009466: 2b40 cmp r3, #64 @ 0x40 + 8009468: d852 bhi.n 8009510 + 800946a: 2b00 cmp r3, #0 + 800946c: d001 beq.n 8009472 + 800946e: 2b20 cmp r3, #32 + 8009470: d14e bne.n 8009510 { case USB_REQ_TYPE_CLASS: case USB_REQ_TYPE_VENDOR: case USB_REQ_TYPE_STANDARD: switch (pdev->dev_state) - 800941e: 687b ldr r3, [r7, #4] - 8009420: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009424: b2db uxtb r3, r3 - 8009426: 3b01 subs r3, #1 - 8009428: 2b02 cmp r3, #2 - 800942a: d840 bhi.n 80094ae + 8009472: 687b ldr r3, [r7, #4] + 8009474: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009478: b2db uxtb r3, r3 + 800947a: 3b01 subs r3, #1 + 800947c: 2b02 cmp r3, #2 + 800947e: d840 bhi.n 8009502 { case USBD_STATE_DEFAULT: case USBD_STATE_ADDRESSED: case USBD_STATE_CONFIGURED: if (LOBYTE(req->wIndex) <= USBD_MAX_NUM_INTERFACES) - 800942c: 683b ldr r3, [r7, #0] - 800942e: 889b ldrh r3, [r3, #4] - 8009430: b2db uxtb r3, r3 - 8009432: 2b01 cmp r3, #1 - 8009434: d836 bhi.n 80094a4 + 8009480: 683b ldr r3, [r7, #0] + 8009482: 889b ldrh r3, [r3, #4] + 8009484: b2db uxtb r3, r3 + 8009486: 2b01 cmp r3, #1 + 8009488: d836 bhi.n 80094f8 { /* Get the class index relative to this interface */ idx = USBD_CoreFindIF(pdev, LOBYTE(req->wIndex)); - 8009436: 683b ldr r3, [r7, #0] - 8009438: 889b ldrh r3, [r3, #4] - 800943a: b2db uxtb r3, r3 - 800943c: 4619 mov r1, r3 - 800943e: 6878 ldr r0, [r7, #4] - 8009440: f7ff feda bl 80091f8 - 8009444: 4603 mov r3, r0 - 8009446: 73bb strb r3, [r7, #14] + 800948a: 683b ldr r3, [r7, #0] + 800948c: 889b ldrh r3, [r3, #4] + 800948e: b2db uxtb r3, r3 + 8009490: 4619 mov r1, r3 + 8009492: 6878 ldr r0, [r7, #4] + 8009494: f7ff feda bl 800924c + 8009498: 4603 mov r3, r0 + 800949a: 73bb strb r3, [r7, #14] if (((uint8_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 8009448: 7bbb ldrb r3, [r7, #14] - 800944a: 2bff cmp r3, #255 @ 0xff - 800944c: d01d beq.n 800948a - 800944e: 7bbb ldrb r3, [r7, #14] - 8009450: 2b00 cmp r3, #0 - 8009452: d11a bne.n 800948a + 800949c: 7bbb ldrb r3, [r7, #14] + 800949e: 2bff cmp r3, #255 @ 0xff + 80094a0: d01d beq.n 80094de + 80094a2: 7bbb ldrb r3, [r7, #14] + 80094a4: 2b00 cmp r3, #0 + 80094a6: d11a bne.n 80094de { /* Call the class data out function to manage the request */ if (pdev->pClass[idx]->Setup != NULL) - 8009454: 7bba ldrb r2, [r7, #14] - 8009456: 687b ldr r3, [r7, #4] - 8009458: 32ae adds r2, #174 @ 0xae - 800945a: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800945e: 689b ldr r3, [r3, #8] - 8009460: 2b00 cmp r3, #0 - 8009462: d00f beq.n 8009484 + 80094a8: 7bba ldrb r2, [r7, #14] + 80094aa: 687b ldr r3, [r7, #4] + 80094ac: 32ae adds r2, #174 @ 0xae + 80094ae: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80094b2: 689b ldr r3, [r3, #8] + 80094b4: 2b00 cmp r3, #0 + 80094b6: d00f beq.n 80094d8 { pdev->classId = idx; - 8009464: 7bba ldrb r2, [r7, #14] - 8009466: 687b ldr r3, [r7, #4] - 8009468: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 80094b8: 7bba ldrb r2, [r7, #14] + 80094ba: 687b ldr r3, [r7, #4] + 80094bc: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 ret = (USBD_StatusTypeDef)(pdev->pClass[idx]->Setup(pdev, req)); - 800946c: 7bba ldrb r2, [r7, #14] - 800946e: 687b ldr r3, [r7, #4] - 8009470: 32ae adds r2, #174 @ 0xae - 8009472: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009476: 689b ldr r3, [r3, #8] - 8009478: 6839 ldr r1, [r7, #0] - 800947a: 6878 ldr r0, [r7, #4] - 800947c: 4798 blx r3 - 800947e: 4603 mov r3, r0 - 8009480: 73fb strb r3, [r7, #15] + 80094c0: 7bba ldrb r2, [r7, #14] + 80094c2: 687b ldr r3, [r7, #4] + 80094c4: 32ae adds r2, #174 @ 0xae + 80094c6: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80094ca: 689b ldr r3, [r3, #8] + 80094cc: 6839 ldr r1, [r7, #0] + 80094ce: 6878 ldr r0, [r7, #4] + 80094d0: 4798 blx r3 + 80094d2: 4603 mov r3, r0 + 80094d4: 73fb strb r3, [r7, #15] if (pdev->pClass[idx]->Setup != NULL) - 8009482: e004 b.n 800948e + 80094d6: e004 b.n 80094e2 } else { /* should never reach this condition */ ret = USBD_FAIL; - 8009484: 2303 movs r3, #3 - 8009486: 73fb strb r3, [r7, #15] + 80094d8: 2303 movs r3, #3 + 80094da: 73fb strb r3, [r7, #15] if (pdev->pClass[idx]->Setup != NULL) - 8009488: e001 b.n 800948e + 80094dc: e001 b.n 80094e2 } } else { /* No relative interface found */ ret = USBD_FAIL; - 800948a: 2303 movs r3, #3 - 800948c: 73fb strb r3, [r7, #15] + 80094de: 2303 movs r3, #3 + 80094e0: 73fb strb r3, [r7, #15] } if ((req->wLength == 0U) && (ret == USBD_OK)) - 800948e: 683b ldr r3, [r7, #0] - 8009490: 88db ldrh r3, [r3, #6] - 8009492: 2b00 cmp r3, #0 - 8009494: d110 bne.n 80094b8 - 8009496: 7bfb ldrb r3, [r7, #15] - 8009498: 2b00 cmp r3, #0 - 800949a: d10d bne.n 80094b8 + 80094e2: 683b ldr r3, [r7, #0] + 80094e4: 88db ldrh r3, [r3, #6] + 80094e6: 2b00 cmp r3, #0 + 80094e8: d110 bne.n 800950c + 80094ea: 7bfb ldrb r3, [r7, #15] + 80094ec: 2b00 cmp r3, #0 + 80094ee: d10d bne.n 800950c { (void)USBD_CtlSendStatus(pdev); - 800949c: 6878 ldr r0, [r7, #4] - 800949e: f000 fde5 bl 800a06c + 80094f0: 6878 ldr r0, [r7, #4] + 80094f2: f000 fde5 bl 800a0c0 } else { USBD_CtlError(pdev, req); } break; - 80094a2: e009 b.n 80094b8 + 80094f6: e009 b.n 800950c USBD_CtlError(pdev, req); - 80094a4: 6839 ldr r1, [r7, #0] - 80094a6: 6878 ldr r0, [r7, #4] - 80094a8: f000 fd23 bl 8009ef2 + 80094f8: 6839 ldr r1, [r7, #0] + 80094fa: 6878 ldr r0, [r7, #4] + 80094fc: f000 fd23 bl 8009f46 break; - 80094ac: e004 b.n 80094b8 + 8009500: e004 b.n 800950c default: USBD_CtlError(pdev, req); - 80094ae: 6839 ldr r1, [r7, #0] - 80094b0: 6878 ldr r0, [r7, #4] - 80094b2: f000 fd1e bl 8009ef2 + 8009502: 6839 ldr r1, [r7, #0] + 8009504: 6878 ldr r0, [r7, #4] + 8009506: f000 fd1e bl 8009f46 break; - 80094b6: e000 b.n 80094ba + 800950a: e000 b.n 800950e break; - 80094b8: bf00 nop + 800950c: bf00 nop } break; - 80094ba: e004 b.n 80094c6 + 800950e: e004 b.n 800951a default: USBD_CtlError(pdev, req); - 80094bc: 6839 ldr r1, [r7, #0] - 80094be: 6878 ldr r0, [r7, #4] - 80094c0: f000 fd17 bl 8009ef2 + 8009510: 6839 ldr r1, [r7, #0] + 8009512: 6878 ldr r0, [r7, #4] + 8009514: f000 fd17 bl 8009f46 break; - 80094c4: bf00 nop + 8009518: bf00 nop } return ret; - 80094c6: 7bfb ldrb r3, [r7, #15] + 800951a: 7bfb ldrb r3, [r7, #15] } - 80094c8: 4618 mov r0, r3 - 80094ca: 3710 adds r7, #16 - 80094cc: 46bd mov sp, r7 - 80094ce: bd80 pop {r7, pc} + 800951c: 4618 mov r0, r3 + 800951e: 3710 adds r7, #16 + 8009520: 46bd mov sp, r7 + 8009522: bd80 pop {r7, pc} -080094d0 : +08009524 : * @param pdev: device instance * @param req: usb request * @retval status */ USBD_StatusTypeDef USBD_StdEPReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 80094d0: b580 push {r7, lr} - 80094d2: b084 sub sp, #16 - 80094d4: af00 add r7, sp, #0 - 80094d6: 6078 str r0, [r7, #4] - 80094d8: 6039 str r1, [r7, #0] + 8009524: b580 push {r7, lr} + 8009526: b084 sub sp, #16 + 8009528: af00 add r7, sp, #0 + 800952a: 6078 str r0, [r7, #4] + 800952c: 6039 str r1, [r7, #0] USBD_EndpointTypeDef *pep; uint8_t ep_addr; uint8_t idx; USBD_StatusTypeDef ret = USBD_OK; - 80094da: 2300 movs r3, #0 - 80094dc: 73fb strb r3, [r7, #15] + 800952e: 2300 movs r3, #0 + 8009530: 73fb strb r3, [r7, #15] ep_addr = LOBYTE(req->wIndex); - 80094de: 683b ldr r3, [r7, #0] - 80094e0: 889b ldrh r3, [r3, #4] - 80094e2: 73bb strb r3, [r7, #14] + 8009532: 683b ldr r3, [r7, #0] + 8009534: 889b ldrh r3, [r3, #4] + 8009536: 73bb strb r3, [r7, #14] switch (req->bmRequest & USB_REQ_TYPE_MASK) - 80094e4: 683b ldr r3, [r7, #0] - 80094e6: 781b ldrb r3, [r3, #0] - 80094e8: f003 0360 and.w r3, r3, #96 @ 0x60 - 80094ec: 2b40 cmp r3, #64 @ 0x40 - 80094ee: d007 beq.n 8009500 - 80094f0: 2b40 cmp r3, #64 @ 0x40 - 80094f2: f200 8181 bhi.w 80097f8 - 80094f6: 2b00 cmp r3, #0 - 80094f8: d02a beq.n 8009550 - 80094fa: 2b20 cmp r3, #32 - 80094fc: f040 817c bne.w 80097f8 + 8009538: 683b ldr r3, [r7, #0] + 800953a: 781b ldrb r3, [r3, #0] + 800953c: f003 0360 and.w r3, r3, #96 @ 0x60 + 8009540: 2b40 cmp r3, #64 @ 0x40 + 8009542: d007 beq.n 8009554 + 8009544: 2b40 cmp r3, #64 @ 0x40 + 8009546: f200 8181 bhi.w 800984c + 800954a: 2b00 cmp r3, #0 + 800954c: d02a beq.n 80095a4 + 800954e: 2b20 cmp r3, #32 + 8009550: f040 817c bne.w 800984c { case USB_REQ_TYPE_CLASS: case USB_REQ_TYPE_VENDOR: /* Get the class index relative to this endpoint */ idx = USBD_CoreFindEP(pdev, ep_addr); - 8009500: 7bbb ldrb r3, [r7, #14] - 8009502: 4619 mov r1, r3 - 8009504: 6878 ldr r0, [r7, #4] - 8009506: f7ff fe84 bl 8009212 - 800950a: 4603 mov r3, r0 - 800950c: 737b strb r3, [r7, #13] + 8009554: 7bbb ldrb r3, [r7, #14] + 8009556: 4619 mov r1, r3 + 8009558: 6878 ldr r0, [r7, #4] + 800955a: f7ff fe84 bl 8009266 + 800955e: 4603 mov r3, r0 + 8009560: 737b strb r3, [r7, #13] if (((uint8_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 800950e: 7b7b ldrb r3, [r7, #13] - 8009510: 2bff cmp r3, #255 @ 0xff - 8009512: f000 8176 beq.w 8009802 - 8009516: 7b7b ldrb r3, [r7, #13] - 8009518: 2b00 cmp r3, #0 - 800951a: f040 8172 bne.w 8009802 + 8009562: 7b7b ldrb r3, [r7, #13] + 8009564: 2bff cmp r3, #255 @ 0xff + 8009566: f000 8176 beq.w 8009856 + 800956a: 7b7b ldrb r3, [r7, #13] + 800956c: 2b00 cmp r3, #0 + 800956e: f040 8172 bne.w 8009856 { pdev->classId = idx; - 800951e: 7b7a ldrb r2, [r7, #13] - 8009520: 687b ldr r3, [r7, #4] - 8009522: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8009572: 7b7a ldrb r2, [r7, #13] + 8009574: 687b ldr r3, [r7, #4] + 8009576: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 /* Call the class data out function to manage the request */ if (pdev->pClass[idx]->Setup != NULL) - 8009526: 7b7a ldrb r2, [r7, #13] - 8009528: 687b ldr r3, [r7, #4] - 800952a: 32ae adds r2, #174 @ 0xae - 800952c: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009530: 689b ldr r3, [r3, #8] - 8009532: 2b00 cmp r3, #0 - 8009534: f000 8165 beq.w 8009802 + 800957a: 7b7a ldrb r2, [r7, #13] + 800957c: 687b ldr r3, [r7, #4] + 800957e: 32ae adds r2, #174 @ 0xae + 8009580: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009584: 689b ldr r3, [r3, #8] + 8009586: 2b00 cmp r3, #0 + 8009588: f000 8165 beq.w 8009856 { ret = (USBD_StatusTypeDef)pdev->pClass[idx]->Setup(pdev, req); - 8009538: 7b7a ldrb r2, [r7, #13] - 800953a: 687b ldr r3, [r7, #4] - 800953c: 32ae adds r2, #174 @ 0xae - 800953e: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009542: 689b ldr r3, [r3, #8] - 8009544: 6839 ldr r1, [r7, #0] - 8009546: 6878 ldr r0, [r7, #4] - 8009548: 4798 blx r3 - 800954a: 4603 mov r3, r0 - 800954c: 73fb strb r3, [r7, #15] + 800958c: 7b7a ldrb r2, [r7, #13] + 800958e: 687b ldr r3, [r7, #4] + 8009590: 32ae adds r2, #174 @ 0xae + 8009592: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009596: 689b ldr r3, [r3, #8] + 8009598: 6839 ldr r1, [r7, #0] + 800959a: 6878 ldr r0, [r7, #4] + 800959c: 4798 blx r3 + 800959e: 4603 mov r3, r0 + 80095a0: 73fb strb r3, [r7, #15] } } break; - 800954e: e158 b.n 8009802 + 80095a2: e158 b.n 8009856 case USB_REQ_TYPE_STANDARD: switch (req->bRequest) - 8009550: 683b ldr r3, [r7, #0] - 8009552: 785b ldrb r3, [r3, #1] - 8009554: 2b03 cmp r3, #3 - 8009556: d008 beq.n 800956a - 8009558: 2b03 cmp r3, #3 - 800955a: f300 8147 bgt.w 80097ec - 800955e: 2b00 cmp r3, #0 - 8009560: f000 809b beq.w 800969a - 8009564: 2b01 cmp r3, #1 - 8009566: d03c beq.n 80095e2 - 8009568: e140 b.n 80097ec + 80095a4: 683b ldr r3, [r7, #0] + 80095a6: 785b ldrb r3, [r3, #1] + 80095a8: 2b03 cmp r3, #3 + 80095aa: d008 beq.n 80095be + 80095ac: 2b03 cmp r3, #3 + 80095ae: f300 8147 bgt.w 8009840 + 80095b2: 2b00 cmp r3, #0 + 80095b4: f000 809b beq.w 80096ee + 80095b8: 2b01 cmp r3, #1 + 80095ba: d03c beq.n 8009636 + 80095bc: e140 b.n 8009840 { case USB_REQ_SET_FEATURE: switch (pdev->dev_state) - 800956a: 687b ldr r3, [r7, #4] - 800956c: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009570: b2db uxtb r3, r3 - 8009572: 2b02 cmp r3, #2 - 8009574: d002 beq.n 800957c - 8009576: 2b03 cmp r3, #3 - 8009578: d016 beq.n 80095a8 - 800957a: e02c b.n 80095d6 + 80095be: 687b ldr r3, [r7, #4] + 80095c0: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 80095c4: b2db uxtb r3, r3 + 80095c6: 2b02 cmp r3, #2 + 80095c8: d002 beq.n 80095d0 + 80095ca: 2b03 cmp r3, #3 + 80095cc: d016 beq.n 80095fc + 80095ce: e02c b.n 800962a { case USBD_STATE_ADDRESSED: if ((ep_addr != 0x00U) && (ep_addr != 0x80U)) - 800957c: 7bbb ldrb r3, [r7, #14] - 800957e: 2b00 cmp r3, #0 - 8009580: d00d beq.n 800959e - 8009582: 7bbb ldrb r3, [r7, #14] - 8009584: 2b80 cmp r3, #128 @ 0x80 - 8009586: d00a beq.n 800959e + 80095d0: 7bbb ldrb r3, [r7, #14] + 80095d2: 2b00 cmp r3, #0 + 80095d4: d00d beq.n 80095f2 + 80095d6: 7bbb ldrb r3, [r7, #14] + 80095d8: 2b80 cmp r3, #128 @ 0x80 + 80095da: d00a beq.n 80095f2 { (void)USBD_LL_StallEP(pdev, ep_addr); - 8009588: 7bbb ldrb r3, [r7, #14] - 800958a: 4619 mov r1, r3 - 800958c: 6878 ldr r0, [r7, #4] - 800958e: f001 f8e3 bl 800a758 + 80095dc: 7bbb ldrb r3, [r7, #14] + 80095de: 4619 mov r1, r3 + 80095e0: 6878 ldr r0, [r7, #4] + 80095e2: f001 f8e3 bl 800a7ac (void)USBD_LL_StallEP(pdev, 0x80U); - 8009592: 2180 movs r1, #128 @ 0x80 - 8009594: 6878 ldr r0, [r7, #4] - 8009596: f001 f8df bl 800a758 - 800959a: bf00 nop + 80095e6: 2180 movs r1, #128 @ 0x80 + 80095e8: 6878 ldr r0, [r7, #4] + 80095ea: f001 f8df bl 800a7ac + 80095ee: bf00 nop } else { USBD_CtlError(pdev, req); } break; - 800959c: e020 b.n 80095e0 + 80095f0: e020 b.n 8009634 USBD_CtlError(pdev, req); - 800959e: 6839 ldr r1, [r7, #0] - 80095a0: 6878 ldr r0, [r7, #4] - 80095a2: f000 fca6 bl 8009ef2 + 80095f2: 6839 ldr r1, [r7, #0] + 80095f4: 6878 ldr r0, [r7, #4] + 80095f6: f000 fca6 bl 8009f46 break; - 80095a6: e01b b.n 80095e0 + 80095fa: e01b b.n 8009634 case USBD_STATE_CONFIGURED: if (req->wValue == USB_FEATURE_EP_HALT) - 80095a8: 683b ldr r3, [r7, #0] - 80095aa: 885b ldrh r3, [r3, #2] - 80095ac: 2b00 cmp r3, #0 - 80095ae: d10e bne.n 80095ce + 80095fc: 683b ldr r3, [r7, #0] + 80095fe: 885b ldrh r3, [r3, #2] + 8009600: 2b00 cmp r3, #0 + 8009602: d10e bne.n 8009622 { if ((ep_addr != 0x00U) && (ep_addr != 0x80U) && (req->wLength == 0x00U)) - 80095b0: 7bbb ldrb r3, [r7, #14] - 80095b2: 2b00 cmp r3, #0 - 80095b4: d00b beq.n 80095ce - 80095b6: 7bbb ldrb r3, [r7, #14] - 80095b8: 2b80 cmp r3, #128 @ 0x80 - 80095ba: d008 beq.n 80095ce - 80095bc: 683b ldr r3, [r7, #0] - 80095be: 88db ldrh r3, [r3, #6] - 80095c0: 2b00 cmp r3, #0 - 80095c2: d104 bne.n 80095ce + 8009604: 7bbb ldrb r3, [r7, #14] + 8009606: 2b00 cmp r3, #0 + 8009608: d00b beq.n 8009622 + 800960a: 7bbb ldrb r3, [r7, #14] + 800960c: 2b80 cmp r3, #128 @ 0x80 + 800960e: d008 beq.n 8009622 + 8009610: 683b ldr r3, [r7, #0] + 8009612: 88db ldrh r3, [r3, #6] + 8009614: 2b00 cmp r3, #0 + 8009616: d104 bne.n 8009622 { (void)USBD_LL_StallEP(pdev, ep_addr); - 80095c4: 7bbb ldrb r3, [r7, #14] - 80095c6: 4619 mov r1, r3 - 80095c8: 6878 ldr r0, [r7, #4] - 80095ca: f001 f8c5 bl 800a758 + 8009618: 7bbb ldrb r3, [r7, #14] + 800961a: 4619 mov r1, r3 + 800961c: 6878 ldr r0, [r7, #4] + 800961e: f001 f8c5 bl 800a7ac } } (void)USBD_CtlSendStatus(pdev); - 80095ce: 6878 ldr r0, [r7, #4] - 80095d0: f000 fd4c bl 800a06c + 8009622: 6878 ldr r0, [r7, #4] + 8009624: f000 fd4c bl 800a0c0 break; - 80095d4: e004 b.n 80095e0 + 8009628: e004 b.n 8009634 default: USBD_CtlError(pdev, req); - 80095d6: 6839 ldr r1, [r7, #0] - 80095d8: 6878 ldr r0, [r7, #4] - 80095da: f000 fc8a bl 8009ef2 + 800962a: 6839 ldr r1, [r7, #0] + 800962c: 6878 ldr r0, [r7, #4] + 800962e: f000 fc8a bl 8009f46 break; - 80095de: bf00 nop + 8009632: bf00 nop } break; - 80095e0: e109 b.n 80097f6 + 8009634: e109 b.n 800984a case USB_REQ_CLEAR_FEATURE: switch (pdev->dev_state) - 80095e2: 687b ldr r3, [r7, #4] - 80095e4: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80095e8: b2db uxtb r3, r3 - 80095ea: 2b02 cmp r3, #2 - 80095ec: d002 beq.n 80095f4 - 80095ee: 2b03 cmp r3, #3 - 80095f0: d016 beq.n 8009620 - 80095f2: e04b b.n 800968c + 8009636: 687b ldr r3, [r7, #4] + 8009638: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800963c: b2db uxtb r3, r3 + 800963e: 2b02 cmp r3, #2 + 8009640: d002 beq.n 8009648 + 8009642: 2b03 cmp r3, #3 + 8009644: d016 beq.n 8009674 + 8009646: e04b b.n 80096e0 { case USBD_STATE_ADDRESSED: if ((ep_addr != 0x00U) && (ep_addr != 0x80U)) - 80095f4: 7bbb ldrb r3, [r7, #14] - 80095f6: 2b00 cmp r3, #0 - 80095f8: d00d beq.n 8009616 - 80095fa: 7bbb ldrb r3, [r7, #14] - 80095fc: 2b80 cmp r3, #128 @ 0x80 - 80095fe: d00a beq.n 8009616 + 8009648: 7bbb ldrb r3, [r7, #14] + 800964a: 2b00 cmp r3, #0 + 800964c: d00d beq.n 800966a + 800964e: 7bbb ldrb r3, [r7, #14] + 8009650: 2b80 cmp r3, #128 @ 0x80 + 8009652: d00a beq.n 800966a { (void)USBD_LL_StallEP(pdev, ep_addr); - 8009600: 7bbb ldrb r3, [r7, #14] - 8009602: 4619 mov r1, r3 - 8009604: 6878 ldr r0, [r7, #4] - 8009606: f001 f8a7 bl 800a758 + 8009654: 7bbb ldrb r3, [r7, #14] + 8009656: 4619 mov r1, r3 + 8009658: 6878 ldr r0, [r7, #4] + 800965a: f001 f8a7 bl 800a7ac (void)USBD_LL_StallEP(pdev, 0x80U); - 800960a: 2180 movs r1, #128 @ 0x80 - 800960c: 6878 ldr r0, [r7, #4] - 800960e: f001 f8a3 bl 800a758 - 8009612: bf00 nop + 800965e: 2180 movs r1, #128 @ 0x80 + 8009660: 6878 ldr r0, [r7, #4] + 8009662: f001 f8a3 bl 800a7ac + 8009666: bf00 nop } else { USBD_CtlError(pdev, req); } break; - 8009614: e040 b.n 8009698 + 8009668: e040 b.n 80096ec USBD_CtlError(pdev, req); - 8009616: 6839 ldr r1, [r7, #0] - 8009618: 6878 ldr r0, [r7, #4] - 800961a: f000 fc6a bl 8009ef2 + 800966a: 6839 ldr r1, [r7, #0] + 800966c: 6878 ldr r0, [r7, #4] + 800966e: f000 fc6a bl 8009f46 break; - 800961e: e03b b.n 8009698 + 8009672: e03b b.n 80096ec case USBD_STATE_CONFIGURED: if (req->wValue == USB_FEATURE_EP_HALT) - 8009620: 683b ldr r3, [r7, #0] - 8009622: 885b ldrh r3, [r3, #2] - 8009624: 2b00 cmp r3, #0 - 8009626: d136 bne.n 8009696 + 8009674: 683b ldr r3, [r7, #0] + 8009676: 885b ldrh r3, [r3, #2] + 8009678: 2b00 cmp r3, #0 + 800967a: d136 bne.n 80096ea { if ((ep_addr & 0x7FU) != 0x00U) - 8009628: 7bbb ldrb r3, [r7, #14] - 800962a: f003 037f and.w r3, r3, #127 @ 0x7f - 800962e: 2b00 cmp r3, #0 - 8009630: d004 beq.n 800963c + 800967c: 7bbb ldrb r3, [r7, #14] + 800967e: f003 037f and.w r3, r3, #127 @ 0x7f + 8009682: 2b00 cmp r3, #0 + 8009684: d004 beq.n 8009690 { (void)USBD_LL_ClearStallEP(pdev, ep_addr); - 8009632: 7bbb ldrb r3, [r7, #14] - 8009634: 4619 mov r1, r3 - 8009636: 6878 ldr r0, [r7, #4] - 8009638: f001 f8ad bl 800a796 + 8009686: 7bbb ldrb r3, [r7, #14] + 8009688: 4619 mov r1, r3 + 800968a: 6878 ldr r0, [r7, #4] + 800968c: f001 f8ad bl 800a7ea } (void)USBD_CtlSendStatus(pdev); - 800963c: 6878 ldr r0, [r7, #4] - 800963e: f000 fd15 bl 800a06c + 8009690: 6878 ldr r0, [r7, #4] + 8009692: f000 fd15 bl 800a0c0 /* Get the class index relative to this interface */ idx = USBD_CoreFindEP(pdev, ep_addr); - 8009642: 7bbb ldrb r3, [r7, #14] - 8009644: 4619 mov r1, r3 - 8009646: 6878 ldr r0, [r7, #4] - 8009648: f7ff fde3 bl 8009212 - 800964c: 4603 mov r3, r0 - 800964e: 737b strb r3, [r7, #13] + 8009696: 7bbb ldrb r3, [r7, #14] + 8009698: 4619 mov r1, r3 + 800969a: 6878 ldr r0, [r7, #4] + 800969c: f7ff fde3 bl 8009266 + 80096a0: 4603 mov r3, r0 + 80096a2: 737b strb r3, [r7, #13] if (((uint8_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 8009650: 7b7b ldrb r3, [r7, #13] - 8009652: 2bff cmp r3, #255 @ 0xff - 8009654: d01f beq.n 8009696 - 8009656: 7b7b ldrb r3, [r7, #13] - 8009658: 2b00 cmp r3, #0 - 800965a: d11c bne.n 8009696 + 80096a4: 7b7b ldrb r3, [r7, #13] + 80096a6: 2bff cmp r3, #255 @ 0xff + 80096a8: d01f beq.n 80096ea + 80096aa: 7b7b ldrb r3, [r7, #13] + 80096ac: 2b00 cmp r3, #0 + 80096ae: d11c bne.n 80096ea { pdev->classId = idx; - 800965c: 7b7a ldrb r2, [r7, #13] - 800965e: 687b ldr r3, [r7, #4] - 8009660: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 80096b0: 7b7a ldrb r2, [r7, #13] + 80096b2: 687b ldr r3, [r7, #4] + 80096b4: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 /* Call the class data out function to manage the request */ if (pdev->pClass[idx]->Setup != NULL) - 8009664: 7b7a ldrb r2, [r7, #13] - 8009666: 687b ldr r3, [r7, #4] - 8009668: 32ae adds r2, #174 @ 0xae - 800966a: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800966e: 689b ldr r3, [r3, #8] - 8009670: 2b00 cmp r3, #0 - 8009672: d010 beq.n 8009696 + 80096b8: 7b7a ldrb r2, [r7, #13] + 80096ba: 687b ldr r3, [r7, #4] + 80096bc: 32ae adds r2, #174 @ 0xae + 80096be: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80096c2: 689b ldr r3, [r3, #8] + 80096c4: 2b00 cmp r3, #0 + 80096c6: d010 beq.n 80096ea { ret = (USBD_StatusTypeDef)(pdev->pClass[idx]->Setup(pdev, req)); - 8009674: 7b7a ldrb r2, [r7, #13] - 8009676: 687b ldr r3, [r7, #4] - 8009678: 32ae adds r2, #174 @ 0xae - 800967a: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800967e: 689b ldr r3, [r3, #8] - 8009680: 6839 ldr r1, [r7, #0] - 8009682: 6878 ldr r0, [r7, #4] - 8009684: 4798 blx r3 - 8009686: 4603 mov r3, r0 - 8009688: 73fb strb r3, [r7, #15] + 80096c8: 7b7a ldrb r2, [r7, #13] + 80096ca: 687b ldr r3, [r7, #4] + 80096cc: 32ae adds r2, #174 @ 0xae + 80096ce: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80096d2: 689b ldr r3, [r3, #8] + 80096d4: 6839 ldr r1, [r7, #0] + 80096d6: 6878 ldr r0, [r7, #4] + 80096d8: 4798 blx r3 + 80096da: 4603 mov r3, r0 + 80096dc: 73fb strb r3, [r7, #15] } } } break; - 800968a: e004 b.n 8009696 + 80096de: e004 b.n 80096ea default: USBD_CtlError(pdev, req); - 800968c: 6839 ldr r1, [r7, #0] - 800968e: 6878 ldr r0, [r7, #4] - 8009690: f000 fc2f bl 8009ef2 + 80096e0: 6839 ldr r1, [r7, #0] + 80096e2: 6878 ldr r0, [r7, #4] + 80096e4: f000 fc2f bl 8009f46 break; - 8009694: e000 b.n 8009698 + 80096e8: e000 b.n 80096ec break; - 8009696: bf00 nop + 80096ea: bf00 nop } break; - 8009698: e0ad b.n 80097f6 + 80096ec: e0ad b.n 800984a case USB_REQ_GET_STATUS: switch (pdev->dev_state) - 800969a: 687b ldr r3, [r7, #4] - 800969c: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80096a0: b2db uxtb r3, r3 - 80096a2: 2b02 cmp r3, #2 - 80096a4: d002 beq.n 80096ac - 80096a6: 2b03 cmp r3, #3 - 80096a8: d033 beq.n 8009712 - 80096aa: e099 b.n 80097e0 + 80096ee: 687b ldr r3, [r7, #4] + 80096f0: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 80096f4: b2db uxtb r3, r3 + 80096f6: 2b02 cmp r3, #2 + 80096f8: d002 beq.n 8009700 + 80096fa: 2b03 cmp r3, #3 + 80096fc: d033 beq.n 8009766 + 80096fe: e099 b.n 8009834 { case USBD_STATE_ADDRESSED: if ((ep_addr != 0x00U) && (ep_addr != 0x80U)) - 80096ac: 7bbb ldrb r3, [r7, #14] - 80096ae: 2b00 cmp r3, #0 - 80096b0: d007 beq.n 80096c2 - 80096b2: 7bbb ldrb r3, [r7, #14] - 80096b4: 2b80 cmp r3, #128 @ 0x80 - 80096b6: d004 beq.n 80096c2 + 8009700: 7bbb ldrb r3, [r7, #14] + 8009702: 2b00 cmp r3, #0 + 8009704: d007 beq.n 8009716 + 8009706: 7bbb ldrb r3, [r7, #14] + 8009708: 2b80 cmp r3, #128 @ 0x80 + 800970a: d004 beq.n 8009716 { USBD_CtlError(pdev, req); - 80096b8: 6839 ldr r1, [r7, #0] - 80096ba: 6878 ldr r0, [r7, #4] - 80096bc: f000 fc19 bl 8009ef2 + 800970c: 6839 ldr r1, [r7, #0] + 800970e: 6878 ldr r0, [r7, #4] + 8009710: f000 fc19 bl 8009f46 break; - 80096c0: e093 b.n 80097ea + 8009714: e093 b.n 800983e } pep = ((ep_addr & 0x80U) == 0x80U) ? &pdev->ep_in[ep_addr & 0x7FU] : \ - 80096c2: f997 300e ldrsb.w r3, [r7, #14] - 80096c6: 2b00 cmp r3, #0 - 80096c8: da0b bge.n 80096e2 - 80096ca: 7bbb ldrb r3, [r7, #14] - 80096cc: f003 027f and.w r2, r3, #127 @ 0x7f - 80096d0: 4613 mov r3, r2 - 80096d2: 009b lsls r3, r3, #2 - 80096d4: 4413 add r3, r2 - 80096d6: 009b lsls r3, r3, #2 - 80096d8: 3310 adds r3, #16 - 80096da: 687a ldr r2, [r7, #4] - 80096dc: 4413 add r3, r2 - 80096de: 3304 adds r3, #4 - 80096e0: e00b b.n 80096fa + 8009716: f997 300e ldrsb.w r3, [r7, #14] + 800971a: 2b00 cmp r3, #0 + 800971c: da0b bge.n 8009736 + 800971e: 7bbb ldrb r3, [r7, #14] + 8009720: f003 027f and.w r2, r3, #127 @ 0x7f + 8009724: 4613 mov r3, r2 + 8009726: 009b lsls r3, r3, #2 + 8009728: 4413 add r3, r2 + 800972a: 009b lsls r3, r3, #2 + 800972c: 3310 adds r3, #16 + 800972e: 687a ldr r2, [r7, #4] + 8009730: 4413 add r3, r2 + 8009732: 3304 adds r3, #4 + 8009734: e00b b.n 800974e &pdev->ep_out[ep_addr & 0x7FU]; - 80096e2: 7bbb ldrb r3, [r7, #14] - 80096e4: f003 027f and.w r2, r3, #127 @ 0x7f + 8009736: 7bbb ldrb r3, [r7, #14] + 8009738: f003 027f and.w r2, r3, #127 @ 0x7f pep = ((ep_addr & 0x80U) == 0x80U) ? &pdev->ep_in[ep_addr & 0x7FU] : \ - 80096e8: 4613 mov r3, r2 - 80096ea: 009b lsls r3, r3, #2 - 80096ec: 4413 add r3, r2 - 80096ee: 009b lsls r3, r3, #2 - 80096f0: f503 73a8 add.w r3, r3, #336 @ 0x150 - 80096f4: 687a ldr r2, [r7, #4] - 80096f6: 4413 add r3, r2 - 80096f8: 3304 adds r3, #4 - 80096fa: 60bb str r3, [r7, #8] + 800973c: 4613 mov r3, r2 + 800973e: 009b lsls r3, r3, #2 + 8009740: 4413 add r3, r2 + 8009742: 009b lsls r3, r3, #2 + 8009744: f503 73a8 add.w r3, r3, #336 @ 0x150 + 8009748: 687a ldr r2, [r7, #4] + 800974a: 4413 add r3, r2 + 800974c: 3304 adds r3, #4 + 800974e: 60bb str r3, [r7, #8] pep->status = 0x0000U; - 80096fc: 68bb ldr r3, [r7, #8] - 80096fe: 2200 movs r2, #0 - 8009700: 739a strb r2, [r3, #14] + 8009750: 68bb ldr r3, [r7, #8] + 8009752: 2200 movs r2, #0 + 8009754: 739a strb r2, [r3, #14] (void)USBD_CtlSendData(pdev, (uint8_t *)&pep->status, 2U); - 8009702: 68bb ldr r3, [r7, #8] - 8009704: 330e adds r3, #14 - 8009706: 2202 movs r2, #2 - 8009708: 4619 mov r1, r3 - 800970a: 6878 ldr r0, [r7, #4] - 800970c: f000 fc6e bl 8009fec + 8009756: 68bb ldr r3, [r7, #8] + 8009758: 330e adds r3, #14 + 800975a: 2202 movs r2, #2 + 800975c: 4619 mov r1, r3 + 800975e: 6878 ldr r0, [r7, #4] + 8009760: f000 fc6e bl 800a040 break; - 8009710: e06b b.n 80097ea + 8009764: e06b b.n 800983e case USBD_STATE_CONFIGURED: if ((ep_addr & 0x80U) == 0x80U) - 8009712: f997 300e ldrsb.w r3, [r7, #14] - 8009716: 2b00 cmp r3, #0 - 8009718: da11 bge.n 800973e + 8009766: f997 300e ldrsb.w r3, [r7, #14] + 800976a: 2b00 cmp r3, #0 + 800976c: da11 bge.n 8009792 { if (pdev->ep_in[ep_addr & 0xFU].is_used == 0U) - 800971a: 7bbb ldrb r3, [r7, #14] - 800971c: f003 020f and.w r2, r3, #15 - 8009720: 6879 ldr r1, [r7, #4] - 8009722: 4613 mov r3, r2 - 8009724: 009b lsls r3, r3, #2 - 8009726: 4413 add r3, r2 - 8009728: 009b lsls r3, r3, #2 - 800972a: 440b add r3, r1 - 800972c: 3323 adds r3, #35 @ 0x23 - 800972e: 781b ldrb r3, [r3, #0] - 8009730: 2b00 cmp r3, #0 - 8009732: d117 bne.n 8009764 + 800976e: 7bbb ldrb r3, [r7, #14] + 8009770: f003 020f and.w r2, r3, #15 + 8009774: 6879 ldr r1, [r7, #4] + 8009776: 4613 mov r3, r2 + 8009778: 009b lsls r3, r3, #2 + 800977a: 4413 add r3, r2 + 800977c: 009b lsls r3, r3, #2 + 800977e: 440b add r3, r1 + 8009780: 3323 adds r3, #35 @ 0x23 + 8009782: 781b ldrb r3, [r3, #0] + 8009784: 2b00 cmp r3, #0 + 8009786: d117 bne.n 80097b8 { USBD_CtlError(pdev, req); - 8009734: 6839 ldr r1, [r7, #0] - 8009736: 6878 ldr r0, [r7, #4] - 8009738: f000 fbdb bl 8009ef2 + 8009788: 6839 ldr r1, [r7, #0] + 800978a: 6878 ldr r0, [r7, #4] + 800978c: f000 fbdb bl 8009f46 break; - 800973c: e055 b.n 80097ea + 8009790: e055 b.n 800983e } } else { if (pdev->ep_out[ep_addr & 0xFU].is_used == 0U) - 800973e: 7bbb ldrb r3, [r7, #14] - 8009740: f003 020f and.w r2, r3, #15 - 8009744: 6879 ldr r1, [r7, #4] - 8009746: 4613 mov r3, r2 - 8009748: 009b lsls r3, r3, #2 - 800974a: 4413 add r3, r2 - 800974c: 009b lsls r3, r3, #2 - 800974e: 440b add r3, r1 - 8009750: f203 1363 addw r3, r3, #355 @ 0x163 - 8009754: 781b ldrb r3, [r3, #0] - 8009756: 2b00 cmp r3, #0 - 8009758: d104 bne.n 8009764 + 8009792: 7bbb ldrb r3, [r7, #14] + 8009794: f003 020f and.w r2, r3, #15 + 8009798: 6879 ldr r1, [r7, #4] + 800979a: 4613 mov r3, r2 + 800979c: 009b lsls r3, r3, #2 + 800979e: 4413 add r3, r2 + 80097a0: 009b lsls r3, r3, #2 + 80097a2: 440b add r3, r1 + 80097a4: f203 1363 addw r3, r3, #355 @ 0x163 + 80097a8: 781b ldrb r3, [r3, #0] + 80097aa: 2b00 cmp r3, #0 + 80097ac: d104 bne.n 80097b8 { USBD_CtlError(pdev, req); - 800975a: 6839 ldr r1, [r7, #0] - 800975c: 6878 ldr r0, [r7, #4] - 800975e: f000 fbc8 bl 8009ef2 + 80097ae: 6839 ldr r1, [r7, #0] + 80097b0: 6878 ldr r0, [r7, #4] + 80097b2: f000 fbc8 bl 8009f46 break; - 8009762: e042 b.n 80097ea + 80097b6: e042 b.n 800983e } } pep = ((ep_addr & 0x80U) == 0x80U) ? &pdev->ep_in[ep_addr & 0x7FU] : \ - 8009764: f997 300e ldrsb.w r3, [r7, #14] - 8009768: 2b00 cmp r3, #0 - 800976a: da0b bge.n 8009784 - 800976c: 7bbb ldrb r3, [r7, #14] - 800976e: f003 027f and.w r2, r3, #127 @ 0x7f - 8009772: 4613 mov r3, r2 - 8009774: 009b lsls r3, r3, #2 - 8009776: 4413 add r3, r2 - 8009778: 009b lsls r3, r3, #2 - 800977a: 3310 adds r3, #16 - 800977c: 687a ldr r2, [r7, #4] - 800977e: 4413 add r3, r2 - 8009780: 3304 adds r3, #4 - 8009782: e00b b.n 800979c + 80097b8: f997 300e ldrsb.w r3, [r7, #14] + 80097bc: 2b00 cmp r3, #0 + 80097be: da0b bge.n 80097d8 + 80097c0: 7bbb ldrb r3, [r7, #14] + 80097c2: f003 027f and.w r2, r3, #127 @ 0x7f + 80097c6: 4613 mov r3, r2 + 80097c8: 009b lsls r3, r3, #2 + 80097ca: 4413 add r3, r2 + 80097cc: 009b lsls r3, r3, #2 + 80097ce: 3310 adds r3, #16 + 80097d0: 687a ldr r2, [r7, #4] + 80097d2: 4413 add r3, r2 + 80097d4: 3304 adds r3, #4 + 80097d6: e00b b.n 80097f0 &pdev->ep_out[ep_addr & 0x7FU]; - 8009784: 7bbb ldrb r3, [r7, #14] - 8009786: f003 027f and.w r2, r3, #127 @ 0x7f + 80097d8: 7bbb ldrb r3, [r7, #14] + 80097da: f003 027f and.w r2, r3, #127 @ 0x7f pep = ((ep_addr & 0x80U) == 0x80U) ? &pdev->ep_in[ep_addr & 0x7FU] : \ - 800978a: 4613 mov r3, r2 - 800978c: 009b lsls r3, r3, #2 - 800978e: 4413 add r3, r2 - 8009790: 009b lsls r3, r3, #2 - 8009792: f503 73a8 add.w r3, r3, #336 @ 0x150 - 8009796: 687a ldr r2, [r7, #4] - 8009798: 4413 add r3, r2 - 800979a: 3304 adds r3, #4 - 800979c: 60bb str r3, [r7, #8] + 80097de: 4613 mov r3, r2 + 80097e0: 009b lsls r3, r3, #2 + 80097e2: 4413 add r3, r2 + 80097e4: 009b lsls r3, r3, #2 + 80097e6: f503 73a8 add.w r3, r3, #336 @ 0x150 + 80097ea: 687a ldr r2, [r7, #4] + 80097ec: 4413 add r3, r2 + 80097ee: 3304 adds r3, #4 + 80097f0: 60bb str r3, [r7, #8] if ((ep_addr == 0x00U) || (ep_addr == 0x80U)) - 800979e: 7bbb ldrb r3, [r7, #14] - 80097a0: 2b00 cmp r3, #0 - 80097a2: d002 beq.n 80097aa - 80097a4: 7bbb ldrb r3, [r7, #14] - 80097a6: 2b80 cmp r3, #128 @ 0x80 - 80097a8: d103 bne.n 80097b2 + 80097f2: 7bbb ldrb r3, [r7, #14] + 80097f4: 2b00 cmp r3, #0 + 80097f6: d002 beq.n 80097fe + 80097f8: 7bbb ldrb r3, [r7, #14] + 80097fa: 2b80 cmp r3, #128 @ 0x80 + 80097fc: d103 bne.n 8009806 { pep->status = 0x0000U; - 80097aa: 68bb ldr r3, [r7, #8] - 80097ac: 2200 movs r2, #0 - 80097ae: 739a strb r2, [r3, #14] - 80097b0: e00e b.n 80097d0 + 80097fe: 68bb ldr r3, [r7, #8] + 8009800: 2200 movs r2, #0 + 8009802: 739a strb r2, [r3, #14] + 8009804: e00e b.n 8009824 } else if (USBD_LL_IsStallEP(pdev, ep_addr) != 0U) - 80097b2: 7bbb ldrb r3, [r7, #14] - 80097b4: 4619 mov r1, r3 - 80097b6: 6878 ldr r0, [r7, #4] - 80097b8: f001 f80c bl 800a7d4 - 80097bc: 4603 mov r3, r0 - 80097be: 2b00 cmp r3, #0 - 80097c0: d003 beq.n 80097ca + 8009806: 7bbb ldrb r3, [r7, #14] + 8009808: 4619 mov r1, r3 + 800980a: 6878 ldr r0, [r7, #4] + 800980c: f001 f80c bl 800a828 + 8009810: 4603 mov r3, r0 + 8009812: 2b00 cmp r3, #0 + 8009814: d003 beq.n 800981e { pep->status = 0x0001U; - 80097c2: 68bb ldr r3, [r7, #8] - 80097c4: 2201 movs r2, #1 - 80097c6: 739a strb r2, [r3, #14] - 80097c8: e002 b.n 80097d0 + 8009816: 68bb ldr r3, [r7, #8] + 8009818: 2201 movs r2, #1 + 800981a: 739a strb r2, [r3, #14] + 800981c: e002 b.n 8009824 } else { pep->status = 0x0000U; - 80097ca: 68bb ldr r3, [r7, #8] - 80097cc: 2200 movs r2, #0 - 80097ce: 739a strb r2, [r3, #14] + 800981e: 68bb ldr r3, [r7, #8] + 8009820: 2200 movs r2, #0 + 8009822: 739a strb r2, [r3, #14] } (void)USBD_CtlSendData(pdev, (uint8_t *)&pep->status, 2U); - 80097d0: 68bb ldr r3, [r7, #8] - 80097d2: 330e adds r3, #14 - 80097d4: 2202 movs r2, #2 - 80097d6: 4619 mov r1, r3 - 80097d8: 6878 ldr r0, [r7, #4] - 80097da: f000 fc07 bl 8009fec + 8009824: 68bb ldr r3, [r7, #8] + 8009826: 330e adds r3, #14 + 8009828: 2202 movs r2, #2 + 800982a: 4619 mov r1, r3 + 800982c: 6878 ldr r0, [r7, #4] + 800982e: f000 fc07 bl 800a040 break; - 80097de: e004 b.n 80097ea + 8009832: e004 b.n 800983e default: USBD_CtlError(pdev, req); - 80097e0: 6839 ldr r1, [r7, #0] - 80097e2: 6878 ldr r0, [r7, #4] - 80097e4: f000 fb85 bl 8009ef2 + 8009834: 6839 ldr r1, [r7, #0] + 8009836: 6878 ldr r0, [r7, #4] + 8009838: f000 fb85 bl 8009f46 break; - 80097e8: bf00 nop + 800983c: bf00 nop } break; - 80097ea: e004 b.n 80097f6 + 800983e: e004 b.n 800984a default: USBD_CtlError(pdev, req); - 80097ec: 6839 ldr r1, [r7, #0] - 80097ee: 6878 ldr r0, [r7, #4] - 80097f0: f000 fb7f bl 8009ef2 + 8009840: 6839 ldr r1, [r7, #0] + 8009842: 6878 ldr r0, [r7, #4] + 8009844: f000 fb7f bl 8009f46 break; - 80097f4: bf00 nop + 8009848: bf00 nop } break; - 80097f6: e005 b.n 8009804 + 800984a: e005 b.n 8009858 default: USBD_CtlError(pdev, req); - 80097f8: 6839 ldr r1, [r7, #0] - 80097fa: 6878 ldr r0, [r7, #4] - 80097fc: f000 fb79 bl 8009ef2 + 800984c: 6839 ldr r1, [r7, #0] + 800984e: 6878 ldr r0, [r7, #4] + 8009850: f000 fb79 bl 8009f46 break; - 8009800: e000 b.n 8009804 + 8009854: e000 b.n 8009858 break; - 8009802: bf00 nop + 8009856: bf00 nop } return ret; - 8009804: 7bfb ldrb r3, [r7, #15] + 8009858: 7bfb ldrb r3, [r7, #15] } - 8009806: 4618 mov r0, r3 - 8009808: 3710 adds r7, #16 - 800980a: 46bd mov sp, r7 - 800980c: bd80 pop {r7, pc} + 800985a: 4618 mov r0, r3 + 800985c: 3710 adds r7, #16 + 800985e: 46bd mov sp, r7 + 8009860: bd80 pop {r7, pc} ... -08009810 : +08009864 : * @param pdev: device instance * @param req: usb request * @retval None */ static void USBD_GetDescriptor(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 8009810: b580 push {r7, lr} - 8009812: b084 sub sp, #16 - 8009814: af00 add r7, sp, #0 - 8009816: 6078 str r0, [r7, #4] - 8009818: 6039 str r1, [r7, #0] + 8009864: b580 push {r7, lr} + 8009866: b084 sub sp, #16 + 8009868: af00 add r7, sp, #0 + 800986a: 6078 str r0, [r7, #4] + 800986c: 6039 str r1, [r7, #0] uint16_t len = 0U; - 800981a: 2300 movs r3, #0 - 800981c: 813b strh r3, [r7, #8] + 800986e: 2300 movs r3, #0 + 8009870: 813b strh r3, [r7, #8] uint8_t *pbuf = NULL; - 800981e: 2300 movs r3, #0 - 8009820: 60fb str r3, [r7, #12] + 8009872: 2300 movs r3, #0 + 8009874: 60fb str r3, [r7, #12] uint8_t err = 0U; - 8009822: 2300 movs r3, #0 - 8009824: 72fb strb r3, [r7, #11] + 8009876: 2300 movs r3, #0 + 8009878: 72fb strb r3, [r7, #11] switch (req->wValue >> 8) - 8009826: 683b ldr r3, [r7, #0] - 8009828: 885b ldrh r3, [r3, #2] - 800982a: 0a1b lsrs r3, r3, #8 - 800982c: b29b uxth r3, r3 - 800982e: 3b01 subs r3, #1 - 8009830: 2b0e cmp r3, #14 - 8009832: f200 8152 bhi.w 8009ada - 8009836: a201 add r2, pc, #4 @ (adr r2, 800983c ) - 8009838: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800983c: 080098ad .word 0x080098ad - 8009840: 080098c5 .word 0x080098c5 - 8009844: 08009905 .word 0x08009905 - 8009848: 08009adb .word 0x08009adb - 800984c: 08009adb .word 0x08009adb - 8009850: 08009a7b .word 0x08009a7b - 8009854: 08009aa7 .word 0x08009aa7 - 8009858: 08009adb .word 0x08009adb - 800985c: 08009adb .word 0x08009adb - 8009860: 08009adb .word 0x08009adb - 8009864: 08009adb .word 0x08009adb - 8009868: 08009adb .word 0x08009adb - 800986c: 08009adb .word 0x08009adb - 8009870: 08009adb .word 0x08009adb - 8009874: 08009879 .word 0x08009879 + 800987a: 683b ldr r3, [r7, #0] + 800987c: 885b ldrh r3, [r3, #2] + 800987e: 0a1b lsrs r3, r3, #8 + 8009880: b29b uxth r3, r3 + 8009882: 3b01 subs r3, #1 + 8009884: 2b0e cmp r3, #14 + 8009886: f200 8152 bhi.w 8009b2e + 800988a: a201 add r2, pc, #4 @ (adr r2, 8009890 ) + 800988c: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8009890: 08009901 .word 0x08009901 + 8009894: 08009919 .word 0x08009919 + 8009898: 08009959 .word 0x08009959 + 800989c: 08009b2f .word 0x08009b2f + 80098a0: 08009b2f .word 0x08009b2f + 80098a4: 08009acf .word 0x08009acf + 80098a8: 08009afb .word 0x08009afb + 80098ac: 08009b2f .word 0x08009b2f + 80098b0: 08009b2f .word 0x08009b2f + 80098b4: 08009b2f .word 0x08009b2f + 80098b8: 08009b2f .word 0x08009b2f + 80098bc: 08009b2f .word 0x08009b2f + 80098c0: 08009b2f .word 0x08009b2f + 80098c4: 08009b2f .word 0x08009b2f + 80098c8: 080098cd .word 0x080098cd { #if ((USBD_LPM_ENABLED == 1U) || (USBD_CLASS_BOS_ENABLED == 1U)) case USB_DESC_TYPE_BOS: if (pdev->pDesc->GetBOSDescriptor != NULL) - 8009878: 687b ldr r3, [r7, #4] - 800987a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800987e: 69db ldr r3, [r3, #28] - 8009880: 2b00 cmp r3, #0 - 8009882: d00b beq.n 800989c + 80098cc: 687b ldr r3, [r7, #4] + 80098ce: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 80098d2: 69db ldr r3, [r3, #28] + 80098d4: 2b00 cmp r3, #0 + 80098d6: d00b beq.n 80098f0 { pbuf = pdev->pDesc->GetBOSDescriptor(pdev->dev_speed, &len); - 8009884: 687b ldr r3, [r7, #4] - 8009886: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800988a: 69db ldr r3, [r3, #28] - 800988c: 687a ldr r2, [r7, #4] - 800988e: 7c12 ldrb r2, [r2, #16] - 8009890: f107 0108 add.w r1, r7, #8 - 8009894: 4610 mov r0, r2 - 8009896: 4798 blx r3 - 8009898: 60f8 str r0, [r7, #12] + 80098d8: 687b ldr r3, [r7, #4] + 80098da: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 80098de: 69db ldr r3, [r3, #28] + 80098e0: 687a ldr r2, [r7, #4] + 80098e2: 7c12 ldrb r2, [r2, #16] + 80098e4: f107 0108 add.w r1, r7, #8 + 80098e8: 4610 mov r0, r2 + 80098ea: 4798 blx r3 + 80098ec: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 800989a: e126 b.n 8009aea + 80098ee: e126 b.n 8009b3e USBD_CtlError(pdev, req); - 800989c: 6839 ldr r1, [r7, #0] - 800989e: 6878 ldr r0, [r7, #4] - 80098a0: f000 fb27 bl 8009ef2 + 80098f0: 6839 ldr r1, [r7, #0] + 80098f2: 6878 ldr r0, [r7, #4] + 80098f4: f000 fb27 bl 8009f46 err++; - 80098a4: 7afb ldrb r3, [r7, #11] - 80098a6: 3301 adds r3, #1 - 80098a8: 72fb strb r3, [r7, #11] + 80098f8: 7afb ldrb r3, [r7, #11] + 80098fa: 3301 adds r3, #1 + 80098fc: 72fb strb r3, [r7, #11] break; - 80098aa: e11e b.n 8009aea + 80098fe: e11e b.n 8009b3e #endif /* (USBD_LPM_ENABLED == 1U) || (USBD_CLASS_BOS_ENABLED == 1U) */ case USB_DESC_TYPE_DEVICE: pbuf = pdev->pDesc->GetDeviceDescriptor(pdev->dev_speed, &len); - 80098ac: 687b ldr r3, [r7, #4] - 80098ae: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 80098b2: 681b ldr r3, [r3, #0] - 80098b4: 687a ldr r2, [r7, #4] - 80098b6: 7c12 ldrb r2, [r2, #16] - 80098b8: f107 0108 add.w r1, r7, #8 - 80098bc: 4610 mov r0, r2 - 80098be: 4798 blx r3 - 80098c0: 60f8 str r0, [r7, #12] + 8009900: 687b ldr r3, [r7, #4] + 8009902: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009906: 681b ldr r3, [r3, #0] + 8009908: 687a ldr r2, [r7, #4] + 800990a: 7c12 ldrb r2, [r2, #16] + 800990c: f107 0108 add.w r1, r7, #8 + 8009910: 4610 mov r0, r2 + 8009912: 4798 blx r3 + 8009914: 60f8 str r0, [r7, #12] break; - 80098c2: e112 b.n 8009aea + 8009916: e112 b.n 8009b3e case USB_DESC_TYPE_CONFIGURATION: if (pdev->dev_speed == USBD_SPEED_HIGH) - 80098c4: 687b ldr r3, [r7, #4] - 80098c6: 7c1b ldrb r3, [r3, #16] - 80098c8: 2b00 cmp r3, #0 - 80098ca: d10d bne.n 80098e8 + 8009918: 687b ldr r3, [r7, #4] + 800991a: 7c1b ldrb r3, [r3, #16] + 800991c: 2b00 cmp r3, #0 + 800991e: d10d bne.n 800993c pbuf = (uint8_t *)USBD_CMPSIT.GetHSConfigDescriptor(&len); } else #endif /* USE_USBD_COMPOSITE */ { pbuf = (uint8_t *)pdev->pClass[0]->GetHSConfigDescriptor(&len); - 80098cc: 687b ldr r3, [r7, #4] - 80098ce: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 80098d2: 6a9b ldr r3, [r3, #40] @ 0x28 - 80098d4: f107 0208 add.w r2, r7, #8 - 80098d8: 4610 mov r0, r2 - 80098da: 4798 blx r3 - 80098dc: 60f8 str r0, [r7, #12] + 8009920: 687b ldr r3, [r7, #4] + 8009922: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009926: 6a9b ldr r3, [r3, #40] @ 0x28 + 8009928: f107 0208 add.w r2, r7, #8 + 800992c: 4610 mov r0, r2 + 800992e: 4798 blx r3 + 8009930: 60f8 str r0, [r7, #12] } pbuf[1] = USB_DESC_TYPE_CONFIGURATION; - 80098de: 68fb ldr r3, [r7, #12] - 80098e0: 3301 adds r3, #1 - 80098e2: 2202 movs r2, #2 - 80098e4: 701a strb r2, [r3, #0] + 8009932: 68fb ldr r3, [r7, #12] + 8009934: 3301 adds r3, #1 + 8009936: 2202 movs r2, #2 + 8009938: 701a strb r2, [r3, #0] { pbuf = (uint8_t *)pdev->pClass[0]->GetFSConfigDescriptor(&len); } pbuf[1] = USB_DESC_TYPE_CONFIGURATION; } break; - 80098e6: e100 b.n 8009aea + 800993a: e100 b.n 8009b3e pbuf = (uint8_t *)pdev->pClass[0]->GetFSConfigDescriptor(&len); - 80098e8: 687b ldr r3, [r7, #4] - 80098ea: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 80098ee: 6adb ldr r3, [r3, #44] @ 0x2c - 80098f0: f107 0208 add.w r2, r7, #8 - 80098f4: 4610 mov r0, r2 - 80098f6: 4798 blx r3 - 80098f8: 60f8 str r0, [r7, #12] + 800993c: 687b ldr r3, [r7, #4] + 800993e: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009942: 6adb ldr r3, [r3, #44] @ 0x2c + 8009944: f107 0208 add.w r2, r7, #8 + 8009948: 4610 mov r0, r2 + 800994a: 4798 blx r3 + 800994c: 60f8 str r0, [r7, #12] pbuf[1] = USB_DESC_TYPE_CONFIGURATION; - 80098fa: 68fb ldr r3, [r7, #12] - 80098fc: 3301 adds r3, #1 - 80098fe: 2202 movs r2, #2 - 8009900: 701a strb r2, [r3, #0] + 800994e: 68fb ldr r3, [r7, #12] + 8009950: 3301 adds r3, #1 + 8009952: 2202 movs r2, #2 + 8009954: 701a strb r2, [r3, #0] break; - 8009902: e0f2 b.n 8009aea + 8009956: e0f2 b.n 8009b3e case USB_DESC_TYPE_STRING: switch ((uint8_t)(req->wValue)) - 8009904: 683b ldr r3, [r7, #0] - 8009906: 885b ldrh r3, [r3, #2] - 8009908: b2db uxtb r3, r3 - 800990a: 2b05 cmp r3, #5 - 800990c: f200 80ac bhi.w 8009a68 - 8009910: a201 add r2, pc, #4 @ (adr r2, 8009918 ) - 8009912: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8009916: bf00 nop - 8009918: 08009931 .word 0x08009931 - 800991c: 08009965 .word 0x08009965 - 8009920: 08009999 .word 0x08009999 - 8009924: 080099cd .word 0x080099cd - 8009928: 08009a01 .word 0x08009a01 - 800992c: 08009a35 .word 0x08009a35 + 8009958: 683b ldr r3, [r7, #0] + 800995a: 885b ldrh r3, [r3, #2] + 800995c: b2db uxtb r3, r3 + 800995e: 2b05 cmp r3, #5 + 8009960: f200 80ac bhi.w 8009abc + 8009964: a201 add r2, pc, #4 @ (adr r2, 800996c ) + 8009966: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800996a: bf00 nop + 800996c: 08009985 .word 0x08009985 + 8009970: 080099b9 .word 0x080099b9 + 8009974: 080099ed .word 0x080099ed + 8009978: 08009a21 .word 0x08009a21 + 800997c: 08009a55 .word 0x08009a55 + 8009980: 08009a89 .word 0x08009a89 { case USBD_IDX_LANGID_STR: if (pdev->pDesc->GetLangIDStrDescriptor != NULL) - 8009930: 687b ldr r3, [r7, #4] - 8009932: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 8009936: 685b ldr r3, [r3, #4] - 8009938: 2b00 cmp r3, #0 - 800993a: d00b beq.n 8009954 + 8009984: 687b ldr r3, [r7, #4] + 8009986: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800998a: 685b ldr r3, [r3, #4] + 800998c: 2b00 cmp r3, #0 + 800998e: d00b beq.n 80099a8 { pbuf = pdev->pDesc->GetLangIDStrDescriptor(pdev->dev_speed, &len); - 800993c: 687b ldr r3, [r7, #4] - 800993e: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 8009942: 685b ldr r3, [r3, #4] - 8009944: 687a ldr r2, [r7, #4] - 8009946: 7c12 ldrb r2, [r2, #16] - 8009948: f107 0108 add.w r1, r7, #8 - 800994c: 4610 mov r0, r2 - 800994e: 4798 blx r3 - 8009950: 60f8 str r0, [r7, #12] + 8009990: 687b ldr r3, [r7, #4] + 8009992: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009996: 685b ldr r3, [r3, #4] + 8009998: 687a ldr r2, [r7, #4] + 800999a: 7c12 ldrb r2, [r2, #16] + 800999c: f107 0108 add.w r1, r7, #8 + 80099a0: 4610 mov r0, r2 + 80099a2: 4798 blx r3 + 80099a4: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 8009952: e091 b.n 8009a78 + 80099a6: e091 b.n 8009acc USBD_CtlError(pdev, req); - 8009954: 6839 ldr r1, [r7, #0] - 8009956: 6878 ldr r0, [r7, #4] - 8009958: f000 facb bl 8009ef2 + 80099a8: 6839 ldr r1, [r7, #0] + 80099aa: 6878 ldr r0, [r7, #4] + 80099ac: f000 facb bl 8009f46 err++; - 800995c: 7afb ldrb r3, [r7, #11] - 800995e: 3301 adds r3, #1 - 8009960: 72fb strb r3, [r7, #11] + 80099b0: 7afb ldrb r3, [r7, #11] + 80099b2: 3301 adds r3, #1 + 80099b4: 72fb strb r3, [r7, #11] break; - 8009962: e089 b.n 8009a78 + 80099b6: e089 b.n 8009acc case USBD_IDX_MFC_STR: if (pdev->pDesc->GetManufacturerStrDescriptor != NULL) - 8009964: 687b ldr r3, [r7, #4] - 8009966: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800996a: 689b ldr r3, [r3, #8] - 800996c: 2b00 cmp r3, #0 - 800996e: d00b beq.n 8009988 + 80099b8: 687b ldr r3, [r7, #4] + 80099ba: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 80099be: 689b ldr r3, [r3, #8] + 80099c0: 2b00 cmp r3, #0 + 80099c2: d00b beq.n 80099dc { pbuf = pdev->pDesc->GetManufacturerStrDescriptor(pdev->dev_speed, &len); - 8009970: 687b ldr r3, [r7, #4] - 8009972: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 8009976: 689b ldr r3, [r3, #8] - 8009978: 687a ldr r2, [r7, #4] - 800997a: 7c12 ldrb r2, [r2, #16] - 800997c: f107 0108 add.w r1, r7, #8 - 8009980: 4610 mov r0, r2 - 8009982: 4798 blx r3 - 8009984: 60f8 str r0, [r7, #12] + 80099c4: 687b ldr r3, [r7, #4] + 80099c6: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 80099ca: 689b ldr r3, [r3, #8] + 80099cc: 687a ldr r2, [r7, #4] + 80099ce: 7c12 ldrb r2, [r2, #16] + 80099d0: f107 0108 add.w r1, r7, #8 + 80099d4: 4610 mov r0, r2 + 80099d6: 4798 blx r3 + 80099d8: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 8009986: e077 b.n 8009a78 + 80099da: e077 b.n 8009acc USBD_CtlError(pdev, req); - 8009988: 6839 ldr r1, [r7, #0] - 800998a: 6878 ldr r0, [r7, #4] - 800998c: f000 fab1 bl 8009ef2 + 80099dc: 6839 ldr r1, [r7, #0] + 80099de: 6878 ldr r0, [r7, #4] + 80099e0: f000 fab1 bl 8009f46 err++; - 8009990: 7afb ldrb r3, [r7, #11] - 8009992: 3301 adds r3, #1 - 8009994: 72fb strb r3, [r7, #11] + 80099e4: 7afb ldrb r3, [r7, #11] + 80099e6: 3301 adds r3, #1 + 80099e8: 72fb strb r3, [r7, #11] break; - 8009996: e06f b.n 8009a78 + 80099ea: e06f b.n 8009acc case USBD_IDX_PRODUCT_STR: if (pdev->pDesc->GetProductStrDescriptor != NULL) - 8009998: 687b ldr r3, [r7, #4] - 800999a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800999e: 68db ldr r3, [r3, #12] - 80099a0: 2b00 cmp r3, #0 - 80099a2: d00b beq.n 80099bc + 80099ec: 687b ldr r3, [r7, #4] + 80099ee: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 80099f2: 68db ldr r3, [r3, #12] + 80099f4: 2b00 cmp r3, #0 + 80099f6: d00b beq.n 8009a10 { pbuf = pdev->pDesc->GetProductStrDescriptor(pdev->dev_speed, &len); - 80099a4: 687b ldr r3, [r7, #4] - 80099a6: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 80099aa: 68db ldr r3, [r3, #12] - 80099ac: 687a ldr r2, [r7, #4] - 80099ae: 7c12 ldrb r2, [r2, #16] - 80099b0: f107 0108 add.w r1, r7, #8 - 80099b4: 4610 mov r0, r2 - 80099b6: 4798 blx r3 - 80099b8: 60f8 str r0, [r7, #12] + 80099f8: 687b ldr r3, [r7, #4] + 80099fa: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 80099fe: 68db ldr r3, [r3, #12] + 8009a00: 687a ldr r2, [r7, #4] + 8009a02: 7c12 ldrb r2, [r2, #16] + 8009a04: f107 0108 add.w r1, r7, #8 + 8009a08: 4610 mov r0, r2 + 8009a0a: 4798 blx r3 + 8009a0c: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 80099ba: e05d b.n 8009a78 + 8009a0e: e05d b.n 8009acc USBD_CtlError(pdev, req); - 80099bc: 6839 ldr r1, [r7, #0] - 80099be: 6878 ldr r0, [r7, #4] - 80099c0: f000 fa97 bl 8009ef2 + 8009a10: 6839 ldr r1, [r7, #0] + 8009a12: 6878 ldr r0, [r7, #4] + 8009a14: f000 fa97 bl 8009f46 err++; - 80099c4: 7afb ldrb r3, [r7, #11] - 80099c6: 3301 adds r3, #1 - 80099c8: 72fb strb r3, [r7, #11] + 8009a18: 7afb ldrb r3, [r7, #11] + 8009a1a: 3301 adds r3, #1 + 8009a1c: 72fb strb r3, [r7, #11] break; - 80099ca: e055 b.n 8009a78 + 8009a1e: e055 b.n 8009acc case USBD_IDX_SERIAL_STR: if (pdev->pDesc->GetSerialStrDescriptor != NULL) - 80099cc: 687b ldr r3, [r7, #4] - 80099ce: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 80099d2: 691b ldr r3, [r3, #16] - 80099d4: 2b00 cmp r3, #0 - 80099d6: d00b beq.n 80099f0 + 8009a20: 687b ldr r3, [r7, #4] + 8009a22: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009a26: 691b ldr r3, [r3, #16] + 8009a28: 2b00 cmp r3, #0 + 8009a2a: d00b beq.n 8009a44 { pbuf = pdev->pDesc->GetSerialStrDescriptor(pdev->dev_speed, &len); - 80099d8: 687b ldr r3, [r7, #4] - 80099da: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 80099de: 691b ldr r3, [r3, #16] - 80099e0: 687a ldr r2, [r7, #4] - 80099e2: 7c12 ldrb r2, [r2, #16] - 80099e4: f107 0108 add.w r1, r7, #8 - 80099e8: 4610 mov r0, r2 - 80099ea: 4798 blx r3 - 80099ec: 60f8 str r0, [r7, #12] + 8009a2c: 687b ldr r3, [r7, #4] + 8009a2e: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009a32: 691b ldr r3, [r3, #16] + 8009a34: 687a ldr r2, [r7, #4] + 8009a36: 7c12 ldrb r2, [r2, #16] + 8009a38: f107 0108 add.w r1, r7, #8 + 8009a3c: 4610 mov r0, r2 + 8009a3e: 4798 blx r3 + 8009a40: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 80099ee: e043 b.n 8009a78 + 8009a42: e043 b.n 8009acc USBD_CtlError(pdev, req); - 80099f0: 6839 ldr r1, [r7, #0] - 80099f2: 6878 ldr r0, [r7, #4] - 80099f4: f000 fa7d bl 8009ef2 + 8009a44: 6839 ldr r1, [r7, #0] + 8009a46: 6878 ldr r0, [r7, #4] + 8009a48: f000 fa7d bl 8009f46 err++; - 80099f8: 7afb ldrb r3, [r7, #11] - 80099fa: 3301 adds r3, #1 - 80099fc: 72fb strb r3, [r7, #11] + 8009a4c: 7afb ldrb r3, [r7, #11] + 8009a4e: 3301 adds r3, #1 + 8009a50: 72fb strb r3, [r7, #11] break; - 80099fe: e03b b.n 8009a78 + 8009a52: e03b b.n 8009acc case USBD_IDX_CONFIG_STR: if (pdev->pDesc->GetConfigurationStrDescriptor != NULL) - 8009a00: 687b ldr r3, [r7, #4] - 8009a02: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 8009a06: 695b ldr r3, [r3, #20] - 8009a08: 2b00 cmp r3, #0 - 8009a0a: d00b beq.n 8009a24 + 8009a54: 687b ldr r3, [r7, #4] + 8009a56: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009a5a: 695b ldr r3, [r3, #20] + 8009a5c: 2b00 cmp r3, #0 + 8009a5e: d00b beq.n 8009a78 { pbuf = pdev->pDesc->GetConfigurationStrDescriptor(pdev->dev_speed, &len); - 8009a0c: 687b ldr r3, [r7, #4] - 8009a0e: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 8009a12: 695b ldr r3, [r3, #20] - 8009a14: 687a ldr r2, [r7, #4] - 8009a16: 7c12 ldrb r2, [r2, #16] - 8009a18: f107 0108 add.w r1, r7, #8 - 8009a1c: 4610 mov r0, r2 - 8009a1e: 4798 blx r3 - 8009a20: 60f8 str r0, [r7, #12] + 8009a60: 687b ldr r3, [r7, #4] + 8009a62: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009a66: 695b ldr r3, [r3, #20] + 8009a68: 687a ldr r2, [r7, #4] + 8009a6a: 7c12 ldrb r2, [r2, #16] + 8009a6c: f107 0108 add.w r1, r7, #8 + 8009a70: 4610 mov r0, r2 + 8009a72: 4798 blx r3 + 8009a74: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 8009a22: e029 b.n 8009a78 + 8009a76: e029 b.n 8009acc USBD_CtlError(pdev, req); - 8009a24: 6839 ldr r1, [r7, #0] - 8009a26: 6878 ldr r0, [r7, #4] - 8009a28: f000 fa63 bl 8009ef2 + 8009a78: 6839 ldr r1, [r7, #0] + 8009a7a: 6878 ldr r0, [r7, #4] + 8009a7c: f000 fa63 bl 8009f46 err++; - 8009a2c: 7afb ldrb r3, [r7, #11] - 8009a2e: 3301 adds r3, #1 - 8009a30: 72fb strb r3, [r7, #11] + 8009a80: 7afb ldrb r3, [r7, #11] + 8009a82: 3301 adds r3, #1 + 8009a84: 72fb strb r3, [r7, #11] break; - 8009a32: e021 b.n 8009a78 + 8009a86: e021 b.n 8009acc case USBD_IDX_INTERFACE_STR: if (pdev->pDesc->GetInterfaceStrDescriptor != NULL) - 8009a34: 687b ldr r3, [r7, #4] - 8009a36: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 8009a3a: 699b ldr r3, [r3, #24] - 8009a3c: 2b00 cmp r3, #0 - 8009a3e: d00b beq.n 8009a58 + 8009a88: 687b ldr r3, [r7, #4] + 8009a8a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009a8e: 699b ldr r3, [r3, #24] + 8009a90: 2b00 cmp r3, #0 + 8009a92: d00b beq.n 8009aac { pbuf = pdev->pDesc->GetInterfaceStrDescriptor(pdev->dev_speed, &len); - 8009a40: 687b ldr r3, [r7, #4] - 8009a42: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 8009a46: 699b ldr r3, [r3, #24] - 8009a48: 687a ldr r2, [r7, #4] - 8009a4a: 7c12 ldrb r2, [r2, #16] - 8009a4c: f107 0108 add.w r1, r7, #8 - 8009a50: 4610 mov r0, r2 - 8009a52: 4798 blx r3 - 8009a54: 60f8 str r0, [r7, #12] + 8009a94: 687b ldr r3, [r7, #4] + 8009a96: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009a9a: 699b ldr r3, [r3, #24] + 8009a9c: 687a ldr r2, [r7, #4] + 8009a9e: 7c12 ldrb r2, [r2, #16] + 8009aa0: f107 0108 add.w r1, r7, #8 + 8009aa4: 4610 mov r0, r2 + 8009aa6: 4798 blx r3 + 8009aa8: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 8009a56: e00f b.n 8009a78 + 8009aaa: e00f b.n 8009acc USBD_CtlError(pdev, req); - 8009a58: 6839 ldr r1, [r7, #0] - 8009a5a: 6878 ldr r0, [r7, #4] - 8009a5c: f000 fa49 bl 8009ef2 + 8009aac: 6839 ldr r1, [r7, #0] + 8009aae: 6878 ldr r0, [r7, #4] + 8009ab0: f000 fa49 bl 8009f46 err++; - 8009a60: 7afb ldrb r3, [r7, #11] - 8009a62: 3301 adds r3, #1 - 8009a64: 72fb strb r3, [r7, #11] + 8009ab4: 7afb ldrb r3, [r7, #11] + 8009ab6: 3301 adds r3, #1 + 8009ab8: 72fb strb r3, [r7, #11] break; - 8009a66: e007 b.n 8009a78 + 8009aba: e007 b.n 8009acc err++; } #endif /* USBD_SUPPORT_USER_STRING_DESC */ #if ((USBD_CLASS_USER_STRING_DESC == 0U) && (USBD_SUPPORT_USER_STRING_DESC == 0U)) USBD_CtlError(pdev, req); - 8009a68: 6839 ldr r1, [r7, #0] - 8009a6a: 6878 ldr r0, [r7, #4] - 8009a6c: f000 fa41 bl 8009ef2 + 8009abc: 6839 ldr r1, [r7, #0] + 8009abe: 6878 ldr r0, [r7, #4] + 8009ac0: f000 fa41 bl 8009f46 err++; - 8009a70: 7afb ldrb r3, [r7, #11] - 8009a72: 3301 adds r3, #1 - 8009a74: 72fb strb r3, [r7, #11] + 8009ac4: 7afb ldrb r3, [r7, #11] + 8009ac6: 3301 adds r3, #1 + 8009ac8: 72fb strb r3, [r7, #11] #endif /* (USBD_CLASS_USER_STRING_DESC == 0U) && (USBD_SUPPORT_USER_STRING_DESC == 0U) */ break; - 8009a76: bf00 nop + 8009aca: bf00 nop } break; - 8009a78: e037 b.n 8009aea + 8009acc: e037 b.n 8009b3e case USB_DESC_TYPE_DEVICE_QUALIFIER: if (pdev->dev_speed == USBD_SPEED_HIGH) - 8009a7a: 687b ldr r3, [r7, #4] - 8009a7c: 7c1b ldrb r3, [r3, #16] - 8009a7e: 2b00 cmp r3, #0 - 8009a80: d109 bne.n 8009a96 + 8009ace: 687b ldr r3, [r7, #4] + 8009ad0: 7c1b ldrb r3, [r3, #16] + 8009ad2: 2b00 cmp r3, #0 + 8009ad4: d109 bne.n 8009aea pbuf = (uint8_t *)USBD_CMPSIT.GetDeviceQualifierDescriptor(&len); } else #endif /* USE_USBD_COMPOSITE */ { pbuf = (uint8_t *)pdev->pClass[0]->GetDeviceQualifierDescriptor(&len); - 8009a82: 687b ldr r3, [r7, #4] - 8009a84: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009a88: 6b5b ldr r3, [r3, #52] @ 0x34 - 8009a8a: f107 0208 add.w r2, r7, #8 - 8009a8e: 4610 mov r0, r2 - 8009a90: 4798 blx r3 - 8009a92: 60f8 str r0, [r7, #12] + 8009ad6: 687b ldr r3, [r7, #4] + 8009ad8: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009adc: 6b5b ldr r3, [r3, #52] @ 0x34 + 8009ade: f107 0208 add.w r2, r7, #8 + 8009ae2: 4610 mov r0, r2 + 8009ae4: 4798 blx r3 + 8009ae6: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 8009a94: e029 b.n 8009aea + 8009ae8: e029 b.n 8009b3e USBD_CtlError(pdev, req); - 8009a96: 6839 ldr r1, [r7, #0] - 8009a98: 6878 ldr r0, [r7, #4] - 8009a9a: f000 fa2a bl 8009ef2 + 8009aea: 6839 ldr r1, [r7, #0] + 8009aec: 6878 ldr r0, [r7, #4] + 8009aee: f000 fa2a bl 8009f46 err++; - 8009a9e: 7afb ldrb r3, [r7, #11] - 8009aa0: 3301 adds r3, #1 - 8009aa2: 72fb strb r3, [r7, #11] + 8009af2: 7afb ldrb r3, [r7, #11] + 8009af4: 3301 adds r3, #1 + 8009af6: 72fb strb r3, [r7, #11] break; - 8009aa4: e021 b.n 8009aea + 8009af8: e021 b.n 8009b3e case USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION: if (pdev->dev_speed == USBD_SPEED_HIGH) - 8009aa6: 687b ldr r3, [r7, #4] - 8009aa8: 7c1b ldrb r3, [r3, #16] - 8009aaa: 2b00 cmp r3, #0 - 8009aac: d10d bne.n 8009aca + 8009afa: 687b ldr r3, [r7, #4] + 8009afc: 7c1b ldrb r3, [r3, #16] + 8009afe: 2b00 cmp r3, #0 + 8009b00: d10d bne.n 8009b1e pbuf = (uint8_t *)USBD_CMPSIT.GetOtherSpeedConfigDescriptor(&len); } else #endif /* USE_USBD_COMPOSITE */ { pbuf = (uint8_t *)pdev->pClass[0]->GetOtherSpeedConfigDescriptor(&len); - 8009aae: 687b ldr r3, [r7, #4] - 8009ab0: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009ab4: 6b1b ldr r3, [r3, #48] @ 0x30 - 8009ab6: f107 0208 add.w r2, r7, #8 - 8009aba: 4610 mov r0, r2 - 8009abc: 4798 blx r3 - 8009abe: 60f8 str r0, [r7, #12] + 8009b02: 687b ldr r3, [r7, #4] + 8009b04: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009b08: 6b1b ldr r3, [r3, #48] @ 0x30 + 8009b0a: f107 0208 add.w r2, r7, #8 + 8009b0e: 4610 mov r0, r2 + 8009b10: 4798 blx r3 + 8009b12: 60f8 str r0, [r7, #12] } pbuf[1] = USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION; - 8009ac0: 68fb ldr r3, [r7, #12] - 8009ac2: 3301 adds r3, #1 - 8009ac4: 2207 movs r2, #7 - 8009ac6: 701a strb r2, [r3, #0] + 8009b14: 68fb ldr r3, [r7, #12] + 8009b16: 3301 adds r3, #1 + 8009b18: 2207 movs r2, #7 + 8009b1a: 701a strb r2, [r3, #0] else { USBD_CtlError(pdev, req); err++; } break; - 8009ac8: e00f b.n 8009aea + 8009b1c: e00f b.n 8009b3e USBD_CtlError(pdev, req); - 8009aca: 6839 ldr r1, [r7, #0] - 8009acc: 6878 ldr r0, [r7, #4] - 8009ace: f000 fa10 bl 8009ef2 + 8009b1e: 6839 ldr r1, [r7, #0] + 8009b20: 6878 ldr r0, [r7, #4] + 8009b22: f000 fa10 bl 8009f46 err++; - 8009ad2: 7afb ldrb r3, [r7, #11] - 8009ad4: 3301 adds r3, #1 - 8009ad6: 72fb strb r3, [r7, #11] + 8009b26: 7afb ldrb r3, [r7, #11] + 8009b28: 3301 adds r3, #1 + 8009b2a: 72fb strb r3, [r7, #11] break; - 8009ad8: e007 b.n 8009aea + 8009b2c: e007 b.n 8009b3e default: USBD_CtlError(pdev, req); - 8009ada: 6839 ldr r1, [r7, #0] - 8009adc: 6878 ldr r0, [r7, #4] - 8009ade: f000 fa08 bl 8009ef2 + 8009b2e: 6839 ldr r1, [r7, #0] + 8009b30: 6878 ldr r0, [r7, #4] + 8009b32: f000 fa08 bl 8009f46 err++; - 8009ae2: 7afb ldrb r3, [r7, #11] - 8009ae4: 3301 adds r3, #1 - 8009ae6: 72fb strb r3, [r7, #11] + 8009b36: 7afb ldrb r3, [r7, #11] + 8009b38: 3301 adds r3, #1 + 8009b3a: 72fb strb r3, [r7, #11] break; - 8009ae8: bf00 nop + 8009b3c: bf00 nop } if (err != 0U) - 8009aea: 7afb ldrb r3, [r7, #11] - 8009aec: 2b00 cmp r3, #0 - 8009aee: d11e bne.n 8009b2e + 8009b3e: 7afb ldrb r3, [r7, #11] + 8009b40: 2b00 cmp r3, #0 + 8009b42: d11e bne.n 8009b82 { return; } if (req->wLength != 0U) - 8009af0: 683b ldr r3, [r7, #0] - 8009af2: 88db ldrh r3, [r3, #6] - 8009af4: 2b00 cmp r3, #0 - 8009af6: d016 beq.n 8009b26 + 8009b44: 683b ldr r3, [r7, #0] + 8009b46: 88db ldrh r3, [r3, #6] + 8009b48: 2b00 cmp r3, #0 + 8009b4a: d016 beq.n 8009b7a { if (len != 0U) - 8009af8: 893b ldrh r3, [r7, #8] - 8009afa: 2b00 cmp r3, #0 - 8009afc: d00e beq.n 8009b1c + 8009b4c: 893b ldrh r3, [r7, #8] + 8009b4e: 2b00 cmp r3, #0 + 8009b50: d00e beq.n 8009b70 { len = MIN(len, req->wLength); - 8009afe: 683b ldr r3, [r7, #0] - 8009b00: 88da ldrh r2, [r3, #6] - 8009b02: 893b ldrh r3, [r7, #8] - 8009b04: 4293 cmp r3, r2 - 8009b06: bf28 it cs - 8009b08: 4613 movcs r3, r2 - 8009b0a: b29b uxth r3, r3 - 8009b0c: 813b strh r3, [r7, #8] + 8009b52: 683b ldr r3, [r7, #0] + 8009b54: 88da ldrh r2, [r3, #6] + 8009b56: 893b ldrh r3, [r7, #8] + 8009b58: 4293 cmp r3, r2 + 8009b5a: bf28 it cs + 8009b5c: 4613 movcs r3, r2 + 8009b5e: b29b uxth r3, r3 + 8009b60: 813b strh r3, [r7, #8] (void)USBD_CtlSendData(pdev, pbuf, len); - 8009b0e: 893b ldrh r3, [r7, #8] - 8009b10: 461a mov r2, r3 - 8009b12: 68f9 ldr r1, [r7, #12] - 8009b14: 6878 ldr r0, [r7, #4] - 8009b16: f000 fa69 bl 8009fec - 8009b1a: e009 b.n 8009b30 + 8009b62: 893b ldrh r3, [r7, #8] + 8009b64: 461a mov r2, r3 + 8009b66: 68f9 ldr r1, [r7, #12] + 8009b68: 6878 ldr r0, [r7, #4] + 8009b6a: f000 fa69 bl 800a040 + 8009b6e: e009 b.n 8009b84 } else { USBD_CtlError(pdev, req); - 8009b1c: 6839 ldr r1, [r7, #0] - 8009b1e: 6878 ldr r0, [r7, #4] - 8009b20: f000 f9e7 bl 8009ef2 - 8009b24: e004 b.n 8009b30 + 8009b70: 6839 ldr r1, [r7, #0] + 8009b72: 6878 ldr r0, [r7, #4] + 8009b74: f000 f9e7 bl 8009f46 + 8009b78: e004 b.n 8009b84 } } else { (void)USBD_CtlSendStatus(pdev); - 8009b26: 6878 ldr r0, [r7, #4] - 8009b28: f000 faa0 bl 800a06c - 8009b2c: e000 b.n 8009b30 + 8009b7a: 6878 ldr r0, [r7, #4] + 8009b7c: f000 faa0 bl 800a0c0 + 8009b80: e000 b.n 8009b84 return; - 8009b2e: bf00 nop + 8009b82: bf00 nop } } - 8009b30: 3710 adds r7, #16 - 8009b32: 46bd mov sp, r7 - 8009b34: bd80 pop {r7, pc} - 8009b36: bf00 nop + 8009b84: 3710 adds r7, #16 + 8009b86: 46bd mov sp, r7 + 8009b88: bd80 pop {r7, pc} + 8009b8a: bf00 nop -08009b38 : +08009b8c : * @param pdev: device instance * @param req: usb request * @retval None */ static void USBD_SetAddress(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 8009b38: b580 push {r7, lr} - 8009b3a: b084 sub sp, #16 - 8009b3c: af00 add r7, sp, #0 - 8009b3e: 6078 str r0, [r7, #4] - 8009b40: 6039 str r1, [r7, #0] + 8009b8c: b580 push {r7, lr} + 8009b8e: b084 sub sp, #16 + 8009b90: af00 add r7, sp, #0 + 8009b92: 6078 str r0, [r7, #4] + 8009b94: 6039 str r1, [r7, #0] uint8_t dev_addr; if ((req->wIndex == 0U) && (req->wLength == 0U) && (req->wValue < 128U)) - 8009b42: 683b ldr r3, [r7, #0] - 8009b44: 889b ldrh r3, [r3, #4] - 8009b46: 2b00 cmp r3, #0 - 8009b48: d131 bne.n 8009bae - 8009b4a: 683b ldr r3, [r7, #0] - 8009b4c: 88db ldrh r3, [r3, #6] - 8009b4e: 2b00 cmp r3, #0 - 8009b50: d12d bne.n 8009bae - 8009b52: 683b ldr r3, [r7, #0] - 8009b54: 885b ldrh r3, [r3, #2] - 8009b56: 2b7f cmp r3, #127 @ 0x7f - 8009b58: d829 bhi.n 8009bae + 8009b96: 683b ldr r3, [r7, #0] + 8009b98: 889b ldrh r3, [r3, #4] + 8009b9a: 2b00 cmp r3, #0 + 8009b9c: d131 bne.n 8009c02 + 8009b9e: 683b ldr r3, [r7, #0] + 8009ba0: 88db ldrh r3, [r3, #6] + 8009ba2: 2b00 cmp r3, #0 + 8009ba4: d12d bne.n 8009c02 + 8009ba6: 683b ldr r3, [r7, #0] + 8009ba8: 885b ldrh r3, [r3, #2] + 8009baa: 2b7f cmp r3, #127 @ 0x7f + 8009bac: d829 bhi.n 8009c02 { dev_addr = (uint8_t)(req->wValue) & 0x7FU; - 8009b5a: 683b ldr r3, [r7, #0] - 8009b5c: 885b ldrh r3, [r3, #2] - 8009b5e: b2db uxtb r3, r3 - 8009b60: f003 037f and.w r3, r3, #127 @ 0x7f - 8009b64: 73fb strb r3, [r7, #15] + 8009bae: 683b ldr r3, [r7, #0] + 8009bb0: 885b ldrh r3, [r3, #2] + 8009bb2: b2db uxtb r3, r3 + 8009bb4: f003 037f and.w r3, r3, #127 @ 0x7f + 8009bb8: 73fb strb r3, [r7, #15] if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009b66: 687b ldr r3, [r7, #4] - 8009b68: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009b6c: b2db uxtb r3, r3 - 8009b6e: 2b03 cmp r3, #3 - 8009b70: d104 bne.n 8009b7c + 8009bba: 687b ldr r3, [r7, #4] + 8009bbc: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009bc0: b2db uxtb r3, r3 + 8009bc2: 2b03 cmp r3, #3 + 8009bc4: d104 bne.n 8009bd0 { USBD_CtlError(pdev, req); - 8009b72: 6839 ldr r1, [r7, #0] - 8009b74: 6878 ldr r0, [r7, #4] - 8009b76: f000 f9bc bl 8009ef2 + 8009bc6: 6839 ldr r1, [r7, #0] + 8009bc8: 6878 ldr r0, [r7, #4] + 8009bca: f000 f9bc bl 8009f46 if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009b7a: e01d b.n 8009bb8 + 8009bce: e01d b.n 8009c0c } else { pdev->dev_address = dev_addr; - 8009b7c: 687b ldr r3, [r7, #4] - 8009b7e: 7bfa ldrb r2, [r7, #15] - 8009b80: f883 229e strb.w r2, [r3, #670] @ 0x29e + 8009bd0: 687b ldr r3, [r7, #4] + 8009bd2: 7bfa ldrb r2, [r7, #15] + 8009bd4: f883 229e strb.w r2, [r3, #670] @ 0x29e (void)USBD_LL_SetUSBAddress(pdev, dev_addr); - 8009b84: 7bfb ldrb r3, [r7, #15] - 8009b86: 4619 mov r1, r3 - 8009b88: 6878 ldr r0, [r7, #4] - 8009b8a: f000 fe4f bl 800a82c + 8009bd8: 7bfb ldrb r3, [r7, #15] + 8009bda: 4619 mov r1, r3 + 8009bdc: 6878 ldr r0, [r7, #4] + 8009bde: f000 fe4f bl 800a880 (void)USBD_CtlSendStatus(pdev); - 8009b8e: 6878 ldr r0, [r7, #4] - 8009b90: f000 fa6c bl 800a06c + 8009be2: 6878 ldr r0, [r7, #4] + 8009be4: f000 fa6c bl 800a0c0 if (dev_addr != 0U) - 8009b94: 7bfb ldrb r3, [r7, #15] - 8009b96: 2b00 cmp r3, #0 - 8009b98: d004 beq.n 8009ba4 + 8009be8: 7bfb ldrb r3, [r7, #15] + 8009bea: 2b00 cmp r3, #0 + 8009bec: d004 beq.n 8009bf8 { pdev->dev_state = USBD_STATE_ADDRESSED; - 8009b9a: 687b ldr r3, [r7, #4] - 8009b9c: 2202 movs r2, #2 - 8009b9e: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8009bee: 687b ldr r3, [r7, #4] + 8009bf0: 2202 movs r2, #2 + 8009bf2: f883 229c strb.w r2, [r3, #668] @ 0x29c if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009ba2: e009 b.n 8009bb8 + 8009bf6: e009 b.n 8009c0c } else { pdev->dev_state = USBD_STATE_DEFAULT; - 8009ba4: 687b ldr r3, [r7, #4] - 8009ba6: 2201 movs r2, #1 - 8009ba8: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8009bf8: 687b ldr r3, [r7, #4] + 8009bfa: 2201 movs r2, #1 + 8009bfc: f883 229c strb.w r2, [r3, #668] @ 0x29c if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009bac: e004 b.n 8009bb8 + 8009c00: e004 b.n 8009c0c } } } else { USBD_CtlError(pdev, req); - 8009bae: 6839 ldr r1, [r7, #0] - 8009bb0: 6878 ldr r0, [r7, #4] - 8009bb2: f000 f99e bl 8009ef2 + 8009c02: 6839 ldr r1, [r7, #0] + 8009c04: 6878 ldr r0, [r7, #4] + 8009c06: f000 f99e bl 8009f46 } } - 8009bb6: bf00 nop - 8009bb8: bf00 nop - 8009bba: 3710 adds r7, #16 - 8009bbc: 46bd mov sp, r7 - 8009bbe: bd80 pop {r7, pc} + 8009c0a: bf00 nop + 8009c0c: bf00 nop + 8009c0e: 3710 adds r7, #16 + 8009c10: 46bd mov sp, r7 + 8009c12: bd80 pop {r7, pc} -08009bc0 : +08009c14 : * @param pdev: device instance * @param req: usb request * @retval status */ static USBD_StatusTypeDef USBD_SetConfig(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 8009bc0: b580 push {r7, lr} - 8009bc2: b084 sub sp, #16 - 8009bc4: af00 add r7, sp, #0 - 8009bc6: 6078 str r0, [r7, #4] - 8009bc8: 6039 str r1, [r7, #0] + 8009c14: b580 push {r7, lr} + 8009c16: b084 sub sp, #16 + 8009c18: af00 add r7, sp, #0 + 8009c1a: 6078 str r0, [r7, #4] + 8009c1c: 6039 str r1, [r7, #0] USBD_StatusTypeDef ret = USBD_OK; - 8009bca: 2300 movs r3, #0 - 8009bcc: 73fb strb r3, [r7, #15] + 8009c1e: 2300 movs r3, #0 + 8009c20: 73fb strb r3, [r7, #15] static uint8_t cfgidx; cfgidx = (uint8_t)(req->wValue); - 8009bce: 683b ldr r3, [r7, #0] - 8009bd0: 885b ldrh r3, [r3, #2] - 8009bd2: b2da uxtb r2, r3 - 8009bd4: 4b4e ldr r3, [pc, #312] @ (8009d10 ) - 8009bd6: 701a strb r2, [r3, #0] + 8009c22: 683b ldr r3, [r7, #0] + 8009c24: 885b ldrh r3, [r3, #2] + 8009c26: b2da uxtb r2, r3 + 8009c28: 4b4e ldr r3, [pc, #312] @ (8009d64 ) + 8009c2a: 701a strb r2, [r3, #0] if (cfgidx > USBD_MAX_NUM_CONFIGURATION) - 8009bd8: 4b4d ldr r3, [pc, #308] @ (8009d10 ) - 8009bda: 781b ldrb r3, [r3, #0] - 8009bdc: 2b01 cmp r3, #1 - 8009bde: d905 bls.n 8009bec + 8009c2c: 4b4d ldr r3, [pc, #308] @ (8009d64 ) + 8009c2e: 781b ldrb r3, [r3, #0] + 8009c30: 2b01 cmp r3, #1 + 8009c32: d905 bls.n 8009c40 { USBD_CtlError(pdev, req); - 8009be0: 6839 ldr r1, [r7, #0] - 8009be2: 6878 ldr r0, [r7, #4] - 8009be4: f000 f985 bl 8009ef2 + 8009c34: 6839 ldr r1, [r7, #0] + 8009c36: 6878 ldr r0, [r7, #4] + 8009c38: f000 f985 bl 8009f46 return USBD_FAIL; - 8009be8: 2303 movs r3, #3 - 8009bea: e08c b.n 8009d06 + 8009c3c: 2303 movs r3, #3 + 8009c3e: e08c b.n 8009d5a } switch (pdev->dev_state) - 8009bec: 687b ldr r3, [r7, #4] - 8009bee: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009bf2: b2db uxtb r3, r3 - 8009bf4: 2b02 cmp r3, #2 - 8009bf6: d002 beq.n 8009bfe - 8009bf8: 2b03 cmp r3, #3 - 8009bfa: d029 beq.n 8009c50 - 8009bfc: e075 b.n 8009cea + 8009c40: 687b ldr r3, [r7, #4] + 8009c42: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009c46: b2db uxtb r3, r3 + 8009c48: 2b02 cmp r3, #2 + 8009c4a: d002 beq.n 8009c52 + 8009c4c: 2b03 cmp r3, #3 + 8009c4e: d029 beq.n 8009ca4 + 8009c50: e075 b.n 8009d3e { case USBD_STATE_ADDRESSED: if (cfgidx != 0U) - 8009bfe: 4b44 ldr r3, [pc, #272] @ (8009d10 ) - 8009c00: 781b ldrb r3, [r3, #0] - 8009c02: 2b00 cmp r3, #0 - 8009c04: d020 beq.n 8009c48 + 8009c52: 4b44 ldr r3, [pc, #272] @ (8009d64 ) + 8009c54: 781b ldrb r3, [r3, #0] + 8009c56: 2b00 cmp r3, #0 + 8009c58: d020 beq.n 8009c9c { pdev->dev_config = cfgidx; - 8009c06: 4b42 ldr r3, [pc, #264] @ (8009d10 ) - 8009c08: 781b ldrb r3, [r3, #0] - 8009c0a: 461a mov r2, r3 - 8009c0c: 687b ldr r3, [r7, #4] - 8009c0e: 605a str r2, [r3, #4] + 8009c5a: 4b42 ldr r3, [pc, #264] @ (8009d64 ) + 8009c5c: 781b ldrb r3, [r3, #0] + 8009c5e: 461a mov r2, r3 + 8009c60: 687b ldr r3, [r7, #4] + 8009c62: 605a str r2, [r3, #4] ret = USBD_SetClassConfig(pdev, cfgidx); - 8009c10: 4b3f ldr r3, [pc, #252] @ (8009d10 ) - 8009c12: 781b ldrb r3, [r3, #0] - 8009c14: 4619 mov r1, r3 - 8009c16: 6878 ldr r0, [r7, #4] - 8009c18: f7fe ffa3 bl 8008b62 - 8009c1c: 4603 mov r3, r0 - 8009c1e: 73fb strb r3, [r7, #15] + 8009c64: 4b3f ldr r3, [pc, #252] @ (8009d64 ) + 8009c66: 781b ldrb r3, [r3, #0] + 8009c68: 4619 mov r1, r3 + 8009c6a: 6878 ldr r0, [r7, #4] + 8009c6c: f7fe ffa3 bl 8008bb6 + 8009c70: 4603 mov r3, r0 + 8009c72: 73fb strb r3, [r7, #15] if (ret != USBD_OK) - 8009c20: 7bfb ldrb r3, [r7, #15] - 8009c22: 2b00 cmp r3, #0 - 8009c24: d008 beq.n 8009c38 + 8009c74: 7bfb ldrb r3, [r7, #15] + 8009c76: 2b00 cmp r3, #0 + 8009c78: d008 beq.n 8009c8c { USBD_CtlError(pdev, req); - 8009c26: 6839 ldr r1, [r7, #0] - 8009c28: 6878 ldr r0, [r7, #4] - 8009c2a: f000 f962 bl 8009ef2 + 8009c7a: 6839 ldr r1, [r7, #0] + 8009c7c: 6878 ldr r0, [r7, #4] + 8009c7e: f000 f962 bl 8009f46 pdev->dev_state = USBD_STATE_ADDRESSED; - 8009c2e: 687b ldr r3, [r7, #4] - 8009c30: 2202 movs r2, #2 - 8009c32: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8009c82: 687b ldr r3, [r7, #4] + 8009c84: 2202 movs r2, #2 + 8009c86: f883 229c strb.w r2, [r3, #668] @ 0x29c } else { (void)USBD_CtlSendStatus(pdev); } break; - 8009c36: e065 b.n 8009d04 + 8009c8a: e065 b.n 8009d58 (void)USBD_CtlSendStatus(pdev); - 8009c38: 6878 ldr r0, [r7, #4] - 8009c3a: f000 fa17 bl 800a06c + 8009c8c: 6878 ldr r0, [r7, #4] + 8009c8e: f000 fa17 bl 800a0c0 pdev->dev_state = USBD_STATE_CONFIGURED; - 8009c3e: 687b ldr r3, [r7, #4] - 8009c40: 2203 movs r2, #3 - 8009c42: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8009c92: 687b ldr r3, [r7, #4] + 8009c94: 2203 movs r2, #3 + 8009c96: f883 229c strb.w r2, [r3, #668] @ 0x29c break; - 8009c46: e05d b.n 8009d04 + 8009c9a: e05d b.n 8009d58 (void)USBD_CtlSendStatus(pdev); - 8009c48: 6878 ldr r0, [r7, #4] - 8009c4a: f000 fa0f bl 800a06c + 8009c9c: 6878 ldr r0, [r7, #4] + 8009c9e: f000 fa0f bl 800a0c0 break; - 8009c4e: e059 b.n 8009d04 + 8009ca2: e059 b.n 8009d58 case USBD_STATE_CONFIGURED: if (cfgidx == 0U) - 8009c50: 4b2f ldr r3, [pc, #188] @ (8009d10 ) - 8009c52: 781b ldrb r3, [r3, #0] - 8009c54: 2b00 cmp r3, #0 - 8009c56: d112 bne.n 8009c7e + 8009ca4: 4b2f ldr r3, [pc, #188] @ (8009d64 ) + 8009ca6: 781b ldrb r3, [r3, #0] + 8009ca8: 2b00 cmp r3, #0 + 8009caa: d112 bne.n 8009cd2 { pdev->dev_state = USBD_STATE_ADDRESSED; - 8009c58: 687b ldr r3, [r7, #4] - 8009c5a: 2202 movs r2, #2 - 8009c5c: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8009cac: 687b ldr r3, [r7, #4] + 8009cae: 2202 movs r2, #2 + 8009cb0: f883 229c strb.w r2, [r3, #668] @ 0x29c pdev->dev_config = cfgidx; - 8009c60: 4b2b ldr r3, [pc, #172] @ (8009d10 ) - 8009c62: 781b ldrb r3, [r3, #0] - 8009c64: 461a mov r2, r3 - 8009c66: 687b ldr r3, [r7, #4] - 8009c68: 605a str r2, [r3, #4] + 8009cb4: 4b2b ldr r3, [pc, #172] @ (8009d64 ) + 8009cb6: 781b ldrb r3, [r3, #0] + 8009cb8: 461a mov r2, r3 + 8009cba: 687b ldr r3, [r7, #4] + 8009cbc: 605a str r2, [r3, #4] (void)USBD_ClrClassConfig(pdev, cfgidx); - 8009c6a: 4b29 ldr r3, [pc, #164] @ (8009d10 ) - 8009c6c: 781b ldrb r3, [r3, #0] - 8009c6e: 4619 mov r1, r3 - 8009c70: 6878 ldr r0, [r7, #4] - 8009c72: f7fe ff92 bl 8008b9a + 8009cbe: 4b29 ldr r3, [pc, #164] @ (8009d64 ) + 8009cc0: 781b ldrb r3, [r3, #0] + 8009cc2: 4619 mov r1, r3 + 8009cc4: 6878 ldr r0, [r7, #4] + 8009cc6: f7fe ff92 bl 8008bee (void)USBD_CtlSendStatus(pdev); - 8009c76: 6878 ldr r0, [r7, #4] - 8009c78: f000 f9f8 bl 800a06c + 8009cca: 6878 ldr r0, [r7, #4] + 8009ccc: f000 f9f8 bl 800a0c0 } else { (void)USBD_CtlSendStatus(pdev); } break; - 8009c7c: e042 b.n 8009d04 + 8009cd0: e042 b.n 8009d58 else if (cfgidx != pdev->dev_config) - 8009c7e: 4b24 ldr r3, [pc, #144] @ (8009d10 ) - 8009c80: 781b ldrb r3, [r3, #0] - 8009c82: 461a mov r2, r3 - 8009c84: 687b ldr r3, [r7, #4] - 8009c86: 685b ldr r3, [r3, #4] - 8009c88: 429a cmp r2, r3 - 8009c8a: d02a beq.n 8009ce2 + 8009cd2: 4b24 ldr r3, [pc, #144] @ (8009d64 ) + 8009cd4: 781b ldrb r3, [r3, #0] + 8009cd6: 461a mov r2, r3 + 8009cd8: 687b ldr r3, [r7, #4] + 8009cda: 685b ldr r3, [r3, #4] + 8009cdc: 429a cmp r2, r3 + 8009cde: d02a beq.n 8009d36 (void)USBD_ClrClassConfig(pdev, (uint8_t)pdev->dev_config); - 8009c8c: 687b ldr r3, [r7, #4] - 8009c8e: 685b ldr r3, [r3, #4] - 8009c90: b2db uxtb r3, r3 - 8009c92: 4619 mov r1, r3 - 8009c94: 6878 ldr r0, [r7, #4] - 8009c96: f7fe ff80 bl 8008b9a + 8009ce0: 687b ldr r3, [r7, #4] + 8009ce2: 685b ldr r3, [r3, #4] + 8009ce4: b2db uxtb r3, r3 + 8009ce6: 4619 mov r1, r3 + 8009ce8: 6878 ldr r0, [r7, #4] + 8009cea: f7fe ff80 bl 8008bee pdev->dev_config = cfgidx; - 8009c9a: 4b1d ldr r3, [pc, #116] @ (8009d10 ) - 8009c9c: 781b ldrb r3, [r3, #0] - 8009c9e: 461a mov r2, r3 - 8009ca0: 687b ldr r3, [r7, #4] - 8009ca2: 605a str r2, [r3, #4] + 8009cee: 4b1d ldr r3, [pc, #116] @ (8009d64 ) + 8009cf0: 781b ldrb r3, [r3, #0] + 8009cf2: 461a mov r2, r3 + 8009cf4: 687b ldr r3, [r7, #4] + 8009cf6: 605a str r2, [r3, #4] ret = USBD_SetClassConfig(pdev, cfgidx); - 8009ca4: 4b1a ldr r3, [pc, #104] @ (8009d10 ) - 8009ca6: 781b ldrb r3, [r3, #0] - 8009ca8: 4619 mov r1, r3 - 8009caa: 6878 ldr r0, [r7, #4] - 8009cac: f7fe ff59 bl 8008b62 - 8009cb0: 4603 mov r3, r0 - 8009cb2: 73fb strb r3, [r7, #15] + 8009cf8: 4b1a ldr r3, [pc, #104] @ (8009d64 ) + 8009cfa: 781b ldrb r3, [r3, #0] + 8009cfc: 4619 mov r1, r3 + 8009cfe: 6878 ldr r0, [r7, #4] + 8009d00: f7fe ff59 bl 8008bb6 + 8009d04: 4603 mov r3, r0 + 8009d06: 73fb strb r3, [r7, #15] if (ret != USBD_OK) - 8009cb4: 7bfb ldrb r3, [r7, #15] - 8009cb6: 2b00 cmp r3, #0 - 8009cb8: d00f beq.n 8009cda + 8009d08: 7bfb ldrb r3, [r7, #15] + 8009d0a: 2b00 cmp r3, #0 + 8009d0c: d00f beq.n 8009d2e USBD_CtlError(pdev, req); - 8009cba: 6839 ldr r1, [r7, #0] - 8009cbc: 6878 ldr r0, [r7, #4] - 8009cbe: f000 f918 bl 8009ef2 + 8009d0e: 6839 ldr r1, [r7, #0] + 8009d10: 6878 ldr r0, [r7, #4] + 8009d12: f000 f918 bl 8009f46 (void)USBD_ClrClassConfig(pdev, (uint8_t)pdev->dev_config); - 8009cc2: 687b ldr r3, [r7, #4] - 8009cc4: 685b ldr r3, [r3, #4] - 8009cc6: b2db uxtb r3, r3 - 8009cc8: 4619 mov r1, r3 - 8009cca: 6878 ldr r0, [r7, #4] - 8009ccc: f7fe ff65 bl 8008b9a + 8009d16: 687b ldr r3, [r7, #4] + 8009d18: 685b ldr r3, [r3, #4] + 8009d1a: b2db uxtb r3, r3 + 8009d1c: 4619 mov r1, r3 + 8009d1e: 6878 ldr r0, [r7, #4] + 8009d20: f7fe ff65 bl 8008bee pdev->dev_state = USBD_STATE_ADDRESSED; - 8009cd0: 687b ldr r3, [r7, #4] - 8009cd2: 2202 movs r2, #2 - 8009cd4: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8009d24: 687b ldr r3, [r7, #4] + 8009d26: 2202 movs r2, #2 + 8009d28: f883 229c strb.w r2, [r3, #668] @ 0x29c break; - 8009cd8: e014 b.n 8009d04 + 8009d2c: e014 b.n 8009d58 (void)USBD_CtlSendStatus(pdev); - 8009cda: 6878 ldr r0, [r7, #4] - 8009cdc: f000 f9c6 bl 800a06c + 8009d2e: 6878 ldr r0, [r7, #4] + 8009d30: f000 f9c6 bl 800a0c0 break; - 8009ce0: e010 b.n 8009d04 + 8009d34: e010 b.n 8009d58 (void)USBD_CtlSendStatus(pdev); - 8009ce2: 6878 ldr r0, [r7, #4] - 8009ce4: f000 f9c2 bl 800a06c + 8009d36: 6878 ldr r0, [r7, #4] + 8009d38: f000 f9c2 bl 800a0c0 break; - 8009ce8: e00c b.n 8009d04 + 8009d3c: e00c b.n 8009d58 default: USBD_CtlError(pdev, req); - 8009cea: 6839 ldr r1, [r7, #0] - 8009cec: 6878 ldr r0, [r7, #4] - 8009cee: f000 f900 bl 8009ef2 + 8009d3e: 6839 ldr r1, [r7, #0] + 8009d40: 6878 ldr r0, [r7, #4] + 8009d42: f000 f900 bl 8009f46 (void)USBD_ClrClassConfig(pdev, cfgidx); - 8009cf2: 4b07 ldr r3, [pc, #28] @ (8009d10 ) - 8009cf4: 781b ldrb r3, [r3, #0] - 8009cf6: 4619 mov r1, r3 - 8009cf8: 6878 ldr r0, [r7, #4] - 8009cfa: f7fe ff4e bl 8008b9a + 8009d46: 4b07 ldr r3, [pc, #28] @ (8009d64 ) + 8009d48: 781b ldrb r3, [r3, #0] + 8009d4a: 4619 mov r1, r3 + 8009d4c: 6878 ldr r0, [r7, #4] + 8009d4e: f7fe ff4e bl 8008bee ret = USBD_FAIL; - 8009cfe: 2303 movs r3, #3 - 8009d00: 73fb strb r3, [r7, #15] + 8009d52: 2303 movs r3, #3 + 8009d54: 73fb strb r3, [r7, #15] break; - 8009d02: bf00 nop + 8009d56: bf00 nop } return ret; - 8009d04: 7bfb ldrb r3, [r7, #15] + 8009d58: 7bfb ldrb r3, [r7, #15] } - 8009d06: 4618 mov r0, r3 - 8009d08: 3710 adds r7, #16 - 8009d0a: 46bd mov sp, r7 - 8009d0c: bd80 pop {r7, pc} - 8009d0e: bf00 nop - 8009d10: 20000730 .word 0x20000730 + 8009d5a: 4618 mov r0, r3 + 8009d5c: 3710 adds r7, #16 + 8009d5e: 46bd mov sp, r7 + 8009d60: bd80 pop {r7, pc} + 8009d62: bf00 nop + 8009d64: 20000734 .word 0x20000734 -08009d14 : +08009d68 : * @param pdev: device instance * @param req: usb request * @retval None */ static void USBD_GetConfig(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 8009d14: b580 push {r7, lr} - 8009d16: b082 sub sp, #8 - 8009d18: af00 add r7, sp, #0 - 8009d1a: 6078 str r0, [r7, #4] - 8009d1c: 6039 str r1, [r7, #0] + 8009d68: b580 push {r7, lr} + 8009d6a: b082 sub sp, #8 + 8009d6c: af00 add r7, sp, #0 + 8009d6e: 6078 str r0, [r7, #4] + 8009d70: 6039 str r1, [r7, #0] if (req->wLength != 1U) - 8009d1e: 683b ldr r3, [r7, #0] - 8009d20: 88db ldrh r3, [r3, #6] - 8009d22: 2b01 cmp r3, #1 - 8009d24: d004 beq.n 8009d30 + 8009d72: 683b ldr r3, [r7, #0] + 8009d74: 88db ldrh r3, [r3, #6] + 8009d76: 2b01 cmp r3, #1 + 8009d78: d004 beq.n 8009d84 { USBD_CtlError(pdev, req); - 8009d26: 6839 ldr r1, [r7, #0] - 8009d28: 6878 ldr r0, [r7, #4] - 8009d2a: f000 f8e2 bl 8009ef2 + 8009d7a: 6839 ldr r1, [r7, #0] + 8009d7c: 6878 ldr r0, [r7, #4] + 8009d7e: f000 f8e2 bl 8009f46 default: USBD_CtlError(pdev, req); break; } } } - 8009d2e: e023 b.n 8009d78 + 8009d82: e023 b.n 8009dcc switch (pdev->dev_state) - 8009d30: 687b ldr r3, [r7, #4] - 8009d32: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009d36: b2db uxtb r3, r3 - 8009d38: 2b02 cmp r3, #2 - 8009d3a: dc02 bgt.n 8009d42 - 8009d3c: 2b00 cmp r3, #0 - 8009d3e: dc03 bgt.n 8009d48 - 8009d40: e015 b.n 8009d6e - 8009d42: 2b03 cmp r3, #3 - 8009d44: d00b beq.n 8009d5e - 8009d46: e012 b.n 8009d6e + 8009d84: 687b ldr r3, [r7, #4] + 8009d86: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009d8a: b2db uxtb r3, r3 + 8009d8c: 2b02 cmp r3, #2 + 8009d8e: dc02 bgt.n 8009d96 + 8009d90: 2b00 cmp r3, #0 + 8009d92: dc03 bgt.n 8009d9c + 8009d94: e015 b.n 8009dc2 + 8009d96: 2b03 cmp r3, #3 + 8009d98: d00b beq.n 8009db2 + 8009d9a: e012 b.n 8009dc2 pdev->dev_default_config = 0U; - 8009d48: 687b ldr r3, [r7, #4] - 8009d4a: 2200 movs r2, #0 - 8009d4c: 609a str r2, [r3, #8] + 8009d9c: 687b ldr r3, [r7, #4] + 8009d9e: 2200 movs r2, #0 + 8009da0: 609a str r2, [r3, #8] (void)USBD_CtlSendData(pdev, (uint8_t *)&pdev->dev_default_config, 1U); - 8009d4e: 687b ldr r3, [r7, #4] - 8009d50: 3308 adds r3, #8 - 8009d52: 2201 movs r2, #1 - 8009d54: 4619 mov r1, r3 - 8009d56: 6878 ldr r0, [r7, #4] - 8009d58: f000 f948 bl 8009fec + 8009da2: 687b ldr r3, [r7, #4] + 8009da4: 3308 adds r3, #8 + 8009da6: 2201 movs r2, #1 + 8009da8: 4619 mov r1, r3 + 8009daa: 6878 ldr r0, [r7, #4] + 8009dac: f000 f948 bl 800a040 break; - 8009d5c: e00c b.n 8009d78 + 8009db0: e00c b.n 8009dcc (void)USBD_CtlSendData(pdev, (uint8_t *)&pdev->dev_config, 1U); - 8009d5e: 687b ldr r3, [r7, #4] - 8009d60: 3304 adds r3, #4 - 8009d62: 2201 movs r2, #1 - 8009d64: 4619 mov r1, r3 - 8009d66: 6878 ldr r0, [r7, #4] - 8009d68: f000 f940 bl 8009fec + 8009db2: 687b ldr r3, [r7, #4] + 8009db4: 3304 adds r3, #4 + 8009db6: 2201 movs r2, #1 + 8009db8: 4619 mov r1, r3 + 8009dba: 6878 ldr r0, [r7, #4] + 8009dbc: f000 f940 bl 800a040 break; - 8009d6c: e004 b.n 8009d78 + 8009dc0: e004 b.n 8009dcc USBD_CtlError(pdev, req); - 8009d6e: 6839 ldr r1, [r7, #0] - 8009d70: 6878 ldr r0, [r7, #4] - 8009d72: f000 f8be bl 8009ef2 + 8009dc2: 6839 ldr r1, [r7, #0] + 8009dc4: 6878 ldr r0, [r7, #4] + 8009dc6: f000 f8be bl 8009f46 break; - 8009d76: bf00 nop + 8009dca: bf00 nop } - 8009d78: bf00 nop - 8009d7a: 3708 adds r7, #8 - 8009d7c: 46bd mov sp, r7 - 8009d7e: bd80 pop {r7, pc} + 8009dcc: bf00 nop + 8009dce: 3708 adds r7, #8 + 8009dd0: 46bd mov sp, r7 + 8009dd2: bd80 pop {r7, pc} -08009d80 : +08009dd4 : * @param pdev: device instance * @param req: usb request * @retval None */ static void USBD_GetStatus(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 8009d80: b580 push {r7, lr} - 8009d82: b082 sub sp, #8 - 8009d84: af00 add r7, sp, #0 - 8009d86: 6078 str r0, [r7, #4] - 8009d88: 6039 str r1, [r7, #0] + 8009dd4: b580 push {r7, lr} + 8009dd6: b082 sub sp, #8 + 8009dd8: af00 add r7, sp, #0 + 8009dda: 6078 str r0, [r7, #4] + 8009ddc: 6039 str r1, [r7, #0] switch (pdev->dev_state) - 8009d8a: 687b ldr r3, [r7, #4] - 8009d8c: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009d90: b2db uxtb r3, r3 - 8009d92: 3b01 subs r3, #1 - 8009d94: 2b02 cmp r3, #2 - 8009d96: d81e bhi.n 8009dd6 + 8009dde: 687b ldr r3, [r7, #4] + 8009de0: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009de4: b2db uxtb r3, r3 + 8009de6: 3b01 subs r3, #1 + 8009de8: 2b02 cmp r3, #2 + 8009dea: d81e bhi.n 8009e2a { case USBD_STATE_DEFAULT: case USBD_STATE_ADDRESSED: case USBD_STATE_CONFIGURED: if (req->wLength != 0x2U) - 8009d98: 683b ldr r3, [r7, #0] - 8009d9a: 88db ldrh r3, [r3, #6] - 8009d9c: 2b02 cmp r3, #2 - 8009d9e: d004 beq.n 8009daa + 8009dec: 683b ldr r3, [r7, #0] + 8009dee: 88db ldrh r3, [r3, #6] + 8009df0: 2b02 cmp r3, #2 + 8009df2: d004 beq.n 8009dfe { USBD_CtlError(pdev, req); - 8009da0: 6839 ldr r1, [r7, #0] - 8009da2: 6878 ldr r0, [r7, #4] - 8009da4: f000 f8a5 bl 8009ef2 + 8009df4: 6839 ldr r1, [r7, #0] + 8009df6: 6878 ldr r0, [r7, #4] + 8009df8: f000 f8a5 bl 8009f46 break; - 8009da8: e01a b.n 8009de0 + 8009dfc: e01a b.n 8009e34 } #if (USBD_SELF_POWERED == 1U) pdev->dev_config_status = USB_CONFIG_SELF_POWERED; - 8009daa: 687b ldr r3, [r7, #4] - 8009dac: 2201 movs r2, #1 - 8009dae: 60da str r2, [r3, #12] + 8009dfe: 687b ldr r3, [r7, #4] + 8009e00: 2201 movs r2, #1 + 8009e02: 60da str r2, [r3, #12] #else pdev->dev_config_status = 0U; #endif /* USBD_SELF_POWERED */ if (pdev->dev_remote_wakeup != 0U) - 8009db0: 687b ldr r3, [r7, #4] - 8009db2: f8d3 32a4 ldr.w r3, [r3, #676] @ 0x2a4 - 8009db6: 2b00 cmp r3, #0 - 8009db8: d005 beq.n 8009dc6 + 8009e04: 687b ldr r3, [r7, #4] + 8009e06: f8d3 32a4 ldr.w r3, [r3, #676] @ 0x2a4 + 8009e0a: 2b00 cmp r3, #0 + 8009e0c: d005 beq.n 8009e1a { pdev->dev_config_status |= USB_CONFIG_REMOTE_WAKEUP; - 8009dba: 687b ldr r3, [r7, #4] - 8009dbc: 68db ldr r3, [r3, #12] - 8009dbe: f043 0202 orr.w r2, r3, #2 - 8009dc2: 687b ldr r3, [r7, #4] - 8009dc4: 60da str r2, [r3, #12] + 8009e0e: 687b ldr r3, [r7, #4] + 8009e10: 68db ldr r3, [r3, #12] + 8009e12: f043 0202 orr.w r2, r3, #2 + 8009e16: 687b ldr r3, [r7, #4] + 8009e18: 60da str r2, [r3, #12] } (void)USBD_CtlSendData(pdev, (uint8_t *)&pdev->dev_config_status, 2U); - 8009dc6: 687b ldr r3, [r7, #4] - 8009dc8: 330c adds r3, #12 - 8009dca: 2202 movs r2, #2 - 8009dcc: 4619 mov r1, r3 - 8009dce: 6878 ldr r0, [r7, #4] - 8009dd0: f000 f90c bl 8009fec + 8009e1a: 687b ldr r3, [r7, #4] + 8009e1c: 330c adds r3, #12 + 8009e1e: 2202 movs r2, #2 + 8009e20: 4619 mov r1, r3 + 8009e22: 6878 ldr r0, [r7, #4] + 8009e24: f000 f90c bl 800a040 break; - 8009dd4: e004 b.n 8009de0 + 8009e28: e004 b.n 8009e34 default: USBD_CtlError(pdev, req); - 8009dd6: 6839 ldr r1, [r7, #0] - 8009dd8: 6878 ldr r0, [r7, #4] - 8009dda: f000 f88a bl 8009ef2 + 8009e2a: 6839 ldr r1, [r7, #0] + 8009e2c: 6878 ldr r0, [r7, #4] + 8009e2e: f000 f88a bl 8009f46 break; - 8009dde: bf00 nop + 8009e32: bf00 nop } } - 8009de0: bf00 nop - 8009de2: 3708 adds r7, #8 - 8009de4: 46bd mov sp, r7 - 8009de6: bd80 pop {r7, pc} + 8009e34: bf00 nop + 8009e36: 3708 adds r7, #8 + 8009e38: 46bd mov sp, r7 + 8009e3a: bd80 pop {r7, pc} -08009de8 : +08009e3c : * @param pdev: device instance * @param req: usb request * @retval None */ static void USBD_SetFeature(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 8009de8: b580 push {r7, lr} - 8009dea: b082 sub sp, #8 - 8009dec: af00 add r7, sp, #0 - 8009dee: 6078 str r0, [r7, #4] - 8009df0: 6039 str r1, [r7, #0] + 8009e3c: b580 push {r7, lr} + 8009e3e: b082 sub sp, #8 + 8009e40: af00 add r7, sp, #0 + 8009e42: 6078 str r0, [r7, #4] + 8009e44: 6039 str r1, [r7, #0] if (req->wValue == USB_FEATURE_REMOTE_WAKEUP) - 8009df2: 683b ldr r3, [r7, #0] - 8009df4: 885b ldrh r3, [r3, #2] - 8009df6: 2b01 cmp r3, #1 - 8009df8: d107 bne.n 8009e0a + 8009e46: 683b ldr r3, [r7, #0] + 8009e48: 885b ldrh r3, [r3, #2] + 8009e4a: 2b01 cmp r3, #1 + 8009e4c: d107 bne.n 8009e5e { pdev->dev_remote_wakeup = 1U; - 8009dfa: 687b ldr r3, [r7, #4] - 8009dfc: 2201 movs r2, #1 - 8009dfe: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 + 8009e4e: 687b ldr r3, [r7, #4] + 8009e50: 2201 movs r2, #1 + 8009e52: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 (void)USBD_CtlSendStatus(pdev); - 8009e02: 6878 ldr r0, [r7, #4] - 8009e04: f000 f932 bl 800a06c + 8009e56: 6878 ldr r0, [r7, #4] + 8009e58: f000 f932 bl 800a0c0 } else { USBD_CtlError(pdev, req); } } - 8009e08: e013 b.n 8009e32 + 8009e5c: e013 b.n 8009e86 else if (req->wValue == USB_FEATURE_TEST_MODE) - 8009e0a: 683b ldr r3, [r7, #0] - 8009e0c: 885b ldrh r3, [r3, #2] - 8009e0e: 2b02 cmp r3, #2 - 8009e10: d10b bne.n 8009e2a + 8009e5e: 683b ldr r3, [r7, #0] + 8009e60: 885b ldrh r3, [r3, #2] + 8009e62: 2b02 cmp r3, #2 + 8009e64: d10b bne.n 8009e7e pdev->dev_test_mode = (uint8_t)(req->wIndex >> 8); - 8009e12: 683b ldr r3, [r7, #0] - 8009e14: 889b ldrh r3, [r3, #4] - 8009e16: 0a1b lsrs r3, r3, #8 - 8009e18: b29b uxth r3, r3 - 8009e1a: b2da uxtb r2, r3 - 8009e1c: 687b ldr r3, [r7, #4] - 8009e1e: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 + 8009e66: 683b ldr r3, [r7, #0] + 8009e68: 889b ldrh r3, [r3, #4] + 8009e6a: 0a1b lsrs r3, r3, #8 + 8009e6c: b29b uxth r3, r3 + 8009e6e: b2da uxtb r2, r3 + 8009e70: 687b ldr r3, [r7, #4] + 8009e72: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 (void)USBD_CtlSendStatus(pdev); - 8009e22: 6878 ldr r0, [r7, #4] - 8009e24: f000 f922 bl 800a06c + 8009e76: 6878 ldr r0, [r7, #4] + 8009e78: f000 f922 bl 800a0c0 } - 8009e28: e003 b.n 8009e32 + 8009e7c: e003 b.n 8009e86 USBD_CtlError(pdev, req); - 8009e2a: 6839 ldr r1, [r7, #0] - 8009e2c: 6878 ldr r0, [r7, #4] - 8009e2e: f000 f860 bl 8009ef2 + 8009e7e: 6839 ldr r1, [r7, #0] + 8009e80: 6878 ldr r0, [r7, #4] + 8009e82: f000 f860 bl 8009f46 } - 8009e32: bf00 nop - 8009e34: 3708 adds r7, #8 - 8009e36: 46bd mov sp, r7 - 8009e38: bd80 pop {r7, pc} + 8009e86: bf00 nop + 8009e88: 3708 adds r7, #8 + 8009e8a: 46bd mov sp, r7 + 8009e8c: bd80 pop {r7, pc} -08009e3a : +08009e8e : * @param pdev: device instance * @param req: usb request * @retval None */ static void USBD_ClrFeature(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 8009e3a: b580 push {r7, lr} - 8009e3c: b082 sub sp, #8 - 8009e3e: af00 add r7, sp, #0 - 8009e40: 6078 str r0, [r7, #4] - 8009e42: 6039 str r1, [r7, #0] + 8009e8e: b580 push {r7, lr} + 8009e90: b082 sub sp, #8 + 8009e92: af00 add r7, sp, #0 + 8009e94: 6078 str r0, [r7, #4] + 8009e96: 6039 str r1, [r7, #0] switch (pdev->dev_state) - 8009e44: 687b ldr r3, [r7, #4] - 8009e46: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009e4a: b2db uxtb r3, r3 - 8009e4c: 3b01 subs r3, #1 - 8009e4e: 2b02 cmp r3, #2 - 8009e50: d80b bhi.n 8009e6a + 8009e98: 687b ldr r3, [r7, #4] + 8009e9a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009e9e: b2db uxtb r3, r3 + 8009ea0: 3b01 subs r3, #1 + 8009ea2: 2b02 cmp r3, #2 + 8009ea4: d80b bhi.n 8009ebe { case USBD_STATE_DEFAULT: case USBD_STATE_ADDRESSED: case USBD_STATE_CONFIGURED: if (req->wValue == USB_FEATURE_REMOTE_WAKEUP) - 8009e52: 683b ldr r3, [r7, #0] - 8009e54: 885b ldrh r3, [r3, #2] - 8009e56: 2b01 cmp r3, #1 - 8009e58: d10c bne.n 8009e74 + 8009ea6: 683b ldr r3, [r7, #0] + 8009ea8: 885b ldrh r3, [r3, #2] + 8009eaa: 2b01 cmp r3, #1 + 8009eac: d10c bne.n 8009ec8 { pdev->dev_remote_wakeup = 0U; - 8009e5a: 687b ldr r3, [r7, #4] - 8009e5c: 2200 movs r2, #0 - 8009e5e: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 + 8009eae: 687b ldr r3, [r7, #4] + 8009eb0: 2200 movs r2, #0 + 8009eb2: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 (void)USBD_CtlSendStatus(pdev); - 8009e62: 6878 ldr r0, [r7, #4] - 8009e64: f000 f902 bl 800a06c + 8009eb6: 6878 ldr r0, [r7, #4] + 8009eb8: f000 f902 bl 800a0c0 } break; - 8009e68: e004 b.n 8009e74 + 8009ebc: e004 b.n 8009ec8 default: USBD_CtlError(pdev, req); - 8009e6a: 6839 ldr r1, [r7, #0] - 8009e6c: 6878 ldr r0, [r7, #4] - 8009e6e: f000 f840 bl 8009ef2 + 8009ebe: 6839 ldr r1, [r7, #0] + 8009ec0: 6878 ldr r0, [r7, #4] + 8009ec2: f000 f840 bl 8009f46 break; - 8009e72: e000 b.n 8009e76 + 8009ec6: e000 b.n 8009eca break; - 8009e74: bf00 nop + 8009ec8: bf00 nop } } - 8009e76: bf00 nop - 8009e78: 3708 adds r7, #8 - 8009e7a: 46bd mov sp, r7 - 8009e7c: bd80 pop {r7, pc} + 8009eca: bf00 nop + 8009ecc: 3708 adds r7, #8 + 8009ece: 46bd mov sp, r7 + 8009ed0: bd80 pop {r7, pc} -08009e7e : +08009ed2 : * @param req: usb request * @param pdata: setup data pointer * @retval None */ void USBD_ParseSetupRequest(USBD_SetupReqTypedef *req, uint8_t *pdata) { - 8009e7e: b580 push {r7, lr} - 8009e80: b084 sub sp, #16 - 8009e82: af00 add r7, sp, #0 - 8009e84: 6078 str r0, [r7, #4] - 8009e86: 6039 str r1, [r7, #0] + 8009ed2: b580 push {r7, lr} + 8009ed4: b084 sub sp, #16 + 8009ed6: af00 add r7, sp, #0 + 8009ed8: 6078 str r0, [r7, #4] + 8009eda: 6039 str r1, [r7, #0] uint8_t *pbuff = pdata; - 8009e88: 683b ldr r3, [r7, #0] - 8009e8a: 60fb str r3, [r7, #12] + 8009edc: 683b ldr r3, [r7, #0] + 8009ede: 60fb str r3, [r7, #12] req->bmRequest = *(uint8_t *)(pbuff); - 8009e8c: 68fb ldr r3, [r7, #12] - 8009e8e: 781a ldrb r2, [r3, #0] - 8009e90: 687b ldr r3, [r7, #4] - 8009e92: 701a strb r2, [r3, #0] + 8009ee0: 68fb ldr r3, [r7, #12] + 8009ee2: 781a ldrb r2, [r3, #0] + 8009ee4: 687b ldr r3, [r7, #4] + 8009ee6: 701a strb r2, [r3, #0] pbuff++; - 8009e94: 68fb ldr r3, [r7, #12] - 8009e96: 3301 adds r3, #1 - 8009e98: 60fb str r3, [r7, #12] + 8009ee8: 68fb ldr r3, [r7, #12] + 8009eea: 3301 adds r3, #1 + 8009eec: 60fb str r3, [r7, #12] req->bRequest = *(uint8_t *)(pbuff); - 8009e9a: 68fb ldr r3, [r7, #12] - 8009e9c: 781a ldrb r2, [r3, #0] - 8009e9e: 687b ldr r3, [r7, #4] - 8009ea0: 705a strb r2, [r3, #1] + 8009eee: 68fb ldr r3, [r7, #12] + 8009ef0: 781a ldrb r2, [r3, #0] + 8009ef2: 687b ldr r3, [r7, #4] + 8009ef4: 705a strb r2, [r3, #1] pbuff++; - 8009ea2: 68fb ldr r3, [r7, #12] - 8009ea4: 3301 adds r3, #1 - 8009ea6: 60fb str r3, [r7, #12] + 8009ef6: 68fb ldr r3, [r7, #12] + 8009ef8: 3301 adds r3, #1 + 8009efa: 60fb str r3, [r7, #12] req->wValue = SWAPBYTE(pbuff); - 8009ea8: 68f8 ldr r0, [r7, #12] - 8009eaa: f7ff fa13 bl 80092d4 - 8009eae: 4603 mov r3, r0 - 8009eb0: 461a mov r2, r3 - 8009eb2: 687b ldr r3, [r7, #4] - 8009eb4: 805a strh r2, [r3, #2] + 8009efc: 68f8 ldr r0, [r7, #12] + 8009efe: f7ff fa13 bl 8009328 + 8009f02: 4603 mov r3, r0 + 8009f04: 461a mov r2, r3 + 8009f06: 687b ldr r3, [r7, #4] + 8009f08: 805a strh r2, [r3, #2] pbuff++; - 8009eb6: 68fb ldr r3, [r7, #12] - 8009eb8: 3301 adds r3, #1 - 8009eba: 60fb str r3, [r7, #12] + 8009f0a: 68fb ldr r3, [r7, #12] + 8009f0c: 3301 adds r3, #1 + 8009f0e: 60fb str r3, [r7, #12] pbuff++; - 8009ebc: 68fb ldr r3, [r7, #12] - 8009ebe: 3301 adds r3, #1 - 8009ec0: 60fb str r3, [r7, #12] + 8009f10: 68fb ldr r3, [r7, #12] + 8009f12: 3301 adds r3, #1 + 8009f14: 60fb str r3, [r7, #12] req->wIndex = SWAPBYTE(pbuff); - 8009ec2: 68f8 ldr r0, [r7, #12] - 8009ec4: f7ff fa06 bl 80092d4 - 8009ec8: 4603 mov r3, r0 - 8009eca: 461a mov r2, r3 - 8009ecc: 687b ldr r3, [r7, #4] - 8009ece: 809a strh r2, [r3, #4] + 8009f16: 68f8 ldr r0, [r7, #12] + 8009f18: f7ff fa06 bl 8009328 + 8009f1c: 4603 mov r3, r0 + 8009f1e: 461a mov r2, r3 + 8009f20: 687b ldr r3, [r7, #4] + 8009f22: 809a strh r2, [r3, #4] pbuff++; - 8009ed0: 68fb ldr r3, [r7, #12] - 8009ed2: 3301 adds r3, #1 - 8009ed4: 60fb str r3, [r7, #12] + 8009f24: 68fb ldr r3, [r7, #12] + 8009f26: 3301 adds r3, #1 + 8009f28: 60fb str r3, [r7, #12] pbuff++; - 8009ed6: 68fb ldr r3, [r7, #12] - 8009ed8: 3301 adds r3, #1 - 8009eda: 60fb str r3, [r7, #12] + 8009f2a: 68fb ldr r3, [r7, #12] + 8009f2c: 3301 adds r3, #1 + 8009f2e: 60fb str r3, [r7, #12] req->wLength = SWAPBYTE(pbuff); - 8009edc: 68f8 ldr r0, [r7, #12] - 8009ede: f7ff f9f9 bl 80092d4 - 8009ee2: 4603 mov r3, r0 - 8009ee4: 461a mov r2, r3 - 8009ee6: 687b ldr r3, [r7, #4] - 8009ee8: 80da strh r2, [r3, #6] + 8009f30: 68f8 ldr r0, [r7, #12] + 8009f32: f7ff f9f9 bl 8009328 + 8009f36: 4603 mov r3, r0 + 8009f38: 461a mov r2, r3 + 8009f3a: 687b ldr r3, [r7, #4] + 8009f3c: 80da strh r2, [r3, #6] } - 8009eea: bf00 nop - 8009eec: 3710 adds r7, #16 - 8009eee: 46bd mov sp, r7 - 8009ef0: bd80 pop {r7, pc} + 8009f3e: bf00 nop + 8009f40: 3710 adds r7, #16 + 8009f42: 46bd mov sp, r7 + 8009f44: bd80 pop {r7, pc} -08009ef2 : +08009f46 : * @param pdev: device instance * @param req: usb request * @retval None */ void USBD_CtlError(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 8009ef2: b580 push {r7, lr} - 8009ef4: b082 sub sp, #8 - 8009ef6: af00 add r7, sp, #0 - 8009ef8: 6078 str r0, [r7, #4] - 8009efa: 6039 str r1, [r7, #0] + 8009f46: b580 push {r7, lr} + 8009f48: b082 sub sp, #8 + 8009f4a: af00 add r7, sp, #0 + 8009f4c: 6078 str r0, [r7, #4] + 8009f4e: 6039 str r1, [r7, #0] UNUSED(req); (void)USBD_LL_StallEP(pdev, 0x80U); - 8009efc: 2180 movs r1, #128 @ 0x80 - 8009efe: 6878 ldr r0, [r7, #4] - 8009f00: f000 fc2a bl 800a758 + 8009f50: 2180 movs r1, #128 @ 0x80 + 8009f52: 6878 ldr r0, [r7, #4] + 8009f54: f000 fc2a bl 800a7ac (void)USBD_LL_StallEP(pdev, 0U); - 8009f04: 2100 movs r1, #0 - 8009f06: 6878 ldr r0, [r7, #4] - 8009f08: f000 fc26 bl 800a758 + 8009f58: 2100 movs r1, #0 + 8009f5a: 6878 ldr r0, [r7, #4] + 8009f5c: f000 fc26 bl 800a7ac } - 8009f0c: bf00 nop - 8009f0e: 3708 adds r7, #8 - 8009f10: 46bd mov sp, r7 - 8009f12: bd80 pop {r7, pc} + 8009f60: bf00 nop + 8009f62: 3708 adds r7, #8 + 8009f64: 46bd mov sp, r7 + 8009f66: bd80 pop {r7, pc} -08009f14 : +08009f68 : * @param unicode : Formatted string buffer (unicode) * @param len : descriptor length * @retval None */ void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len) { - 8009f14: b580 push {r7, lr} - 8009f16: b086 sub sp, #24 - 8009f18: af00 add r7, sp, #0 - 8009f1a: 60f8 str r0, [r7, #12] - 8009f1c: 60b9 str r1, [r7, #8] - 8009f1e: 607a str r2, [r7, #4] + 8009f68: b580 push {r7, lr} + 8009f6a: b086 sub sp, #24 + 8009f6c: af00 add r7, sp, #0 + 8009f6e: 60f8 str r0, [r7, #12] + 8009f70: 60b9 str r1, [r7, #8] + 8009f72: 607a str r2, [r7, #4] uint8_t idx = 0U; - 8009f20: 2300 movs r3, #0 - 8009f22: 75fb strb r3, [r7, #23] + 8009f74: 2300 movs r3, #0 + 8009f76: 75fb strb r3, [r7, #23] uint8_t *pdesc; if (desc == NULL) - 8009f24: 68fb ldr r3, [r7, #12] - 8009f26: 2b00 cmp r3, #0 - 8009f28: d042 beq.n 8009fb0 + 8009f78: 68fb ldr r3, [r7, #12] + 8009f7a: 2b00 cmp r3, #0 + 8009f7c: d042 beq.n 800a004 { return; } pdesc = desc; - 8009f2a: 68fb ldr r3, [r7, #12] - 8009f2c: 613b str r3, [r7, #16] + 8009f7e: 68fb ldr r3, [r7, #12] + 8009f80: 613b str r3, [r7, #16] *len = MIN(USBD_MAX_STR_DESC_SIZ, ((uint16_t)USBD_GetLen(pdesc) * 2U) + 2U); - 8009f2e: 6938 ldr r0, [r7, #16] - 8009f30: f000 f842 bl 8009fb8 - 8009f34: 4603 mov r3, r0 - 8009f36: 3301 adds r3, #1 - 8009f38: 005b lsls r3, r3, #1 - 8009f3a: f5b3 7f00 cmp.w r3, #512 @ 0x200 - 8009f3e: d808 bhi.n 8009f52 - 8009f40: 6938 ldr r0, [r7, #16] - 8009f42: f000 f839 bl 8009fb8 - 8009f46: 4603 mov r3, r0 - 8009f48: 3301 adds r3, #1 - 8009f4a: b29b uxth r3, r3 - 8009f4c: 005b lsls r3, r3, #1 - 8009f4e: b29a uxth r2, r3 - 8009f50: e001 b.n 8009f56 - 8009f52: f44f 7200 mov.w r2, #512 @ 0x200 - 8009f56: 687b ldr r3, [r7, #4] - 8009f58: 801a strh r2, [r3, #0] + 8009f82: 6938 ldr r0, [r7, #16] + 8009f84: f000 f842 bl 800a00c + 8009f88: 4603 mov r3, r0 + 8009f8a: 3301 adds r3, #1 + 8009f8c: 005b lsls r3, r3, #1 + 8009f8e: f5b3 7f00 cmp.w r3, #512 @ 0x200 + 8009f92: d808 bhi.n 8009fa6 + 8009f94: 6938 ldr r0, [r7, #16] + 8009f96: f000 f839 bl 800a00c + 8009f9a: 4603 mov r3, r0 + 8009f9c: 3301 adds r3, #1 + 8009f9e: b29b uxth r3, r3 + 8009fa0: 005b lsls r3, r3, #1 + 8009fa2: b29a uxth r2, r3 + 8009fa4: e001 b.n 8009faa + 8009fa6: f44f 7200 mov.w r2, #512 @ 0x200 + 8009faa: 687b ldr r3, [r7, #4] + 8009fac: 801a strh r2, [r3, #0] unicode[idx] = *(uint8_t *)len; - 8009f5a: 7dfb ldrb r3, [r7, #23] - 8009f5c: 68ba ldr r2, [r7, #8] - 8009f5e: 4413 add r3, r2 - 8009f60: 687a ldr r2, [r7, #4] - 8009f62: 7812 ldrb r2, [r2, #0] - 8009f64: 701a strb r2, [r3, #0] + 8009fae: 7dfb ldrb r3, [r7, #23] + 8009fb0: 68ba ldr r2, [r7, #8] + 8009fb2: 4413 add r3, r2 + 8009fb4: 687a ldr r2, [r7, #4] + 8009fb6: 7812 ldrb r2, [r2, #0] + 8009fb8: 701a strb r2, [r3, #0] idx++; - 8009f66: 7dfb ldrb r3, [r7, #23] - 8009f68: 3301 adds r3, #1 - 8009f6a: 75fb strb r3, [r7, #23] + 8009fba: 7dfb ldrb r3, [r7, #23] + 8009fbc: 3301 adds r3, #1 + 8009fbe: 75fb strb r3, [r7, #23] unicode[idx] = USB_DESC_TYPE_STRING; - 8009f6c: 7dfb ldrb r3, [r7, #23] - 8009f6e: 68ba ldr r2, [r7, #8] - 8009f70: 4413 add r3, r2 - 8009f72: 2203 movs r2, #3 - 8009f74: 701a strb r2, [r3, #0] + 8009fc0: 7dfb ldrb r3, [r7, #23] + 8009fc2: 68ba ldr r2, [r7, #8] + 8009fc4: 4413 add r3, r2 + 8009fc6: 2203 movs r2, #3 + 8009fc8: 701a strb r2, [r3, #0] idx++; - 8009f76: 7dfb ldrb r3, [r7, #23] - 8009f78: 3301 adds r3, #1 - 8009f7a: 75fb strb r3, [r7, #23] + 8009fca: 7dfb ldrb r3, [r7, #23] + 8009fcc: 3301 adds r3, #1 + 8009fce: 75fb strb r3, [r7, #23] while (*pdesc != (uint8_t)'\0') - 8009f7c: e013 b.n 8009fa6 + 8009fd0: e013 b.n 8009ffa { unicode[idx] = *pdesc; - 8009f7e: 7dfb ldrb r3, [r7, #23] - 8009f80: 68ba ldr r2, [r7, #8] - 8009f82: 4413 add r3, r2 - 8009f84: 693a ldr r2, [r7, #16] - 8009f86: 7812 ldrb r2, [r2, #0] - 8009f88: 701a strb r2, [r3, #0] + 8009fd2: 7dfb ldrb r3, [r7, #23] + 8009fd4: 68ba ldr r2, [r7, #8] + 8009fd6: 4413 add r3, r2 + 8009fd8: 693a ldr r2, [r7, #16] + 8009fda: 7812 ldrb r2, [r2, #0] + 8009fdc: 701a strb r2, [r3, #0] pdesc++; - 8009f8a: 693b ldr r3, [r7, #16] - 8009f8c: 3301 adds r3, #1 - 8009f8e: 613b str r3, [r7, #16] + 8009fde: 693b ldr r3, [r7, #16] + 8009fe0: 3301 adds r3, #1 + 8009fe2: 613b str r3, [r7, #16] idx++; - 8009f90: 7dfb ldrb r3, [r7, #23] - 8009f92: 3301 adds r3, #1 - 8009f94: 75fb strb r3, [r7, #23] + 8009fe4: 7dfb ldrb r3, [r7, #23] + 8009fe6: 3301 adds r3, #1 + 8009fe8: 75fb strb r3, [r7, #23] unicode[idx] = 0U; - 8009f96: 7dfb ldrb r3, [r7, #23] - 8009f98: 68ba ldr r2, [r7, #8] - 8009f9a: 4413 add r3, r2 - 8009f9c: 2200 movs r2, #0 - 8009f9e: 701a strb r2, [r3, #0] + 8009fea: 7dfb ldrb r3, [r7, #23] + 8009fec: 68ba ldr r2, [r7, #8] + 8009fee: 4413 add r3, r2 + 8009ff0: 2200 movs r2, #0 + 8009ff2: 701a strb r2, [r3, #0] idx++; - 8009fa0: 7dfb ldrb r3, [r7, #23] - 8009fa2: 3301 adds r3, #1 - 8009fa4: 75fb strb r3, [r7, #23] + 8009ff4: 7dfb ldrb r3, [r7, #23] + 8009ff6: 3301 adds r3, #1 + 8009ff8: 75fb strb r3, [r7, #23] while (*pdesc != (uint8_t)'\0') - 8009fa6: 693b ldr r3, [r7, #16] - 8009fa8: 781b ldrb r3, [r3, #0] - 8009faa: 2b00 cmp r3, #0 - 8009fac: d1e7 bne.n 8009f7e - 8009fae: e000 b.n 8009fb2 + 8009ffa: 693b ldr r3, [r7, #16] + 8009ffc: 781b ldrb r3, [r3, #0] + 8009ffe: 2b00 cmp r3, #0 + 800a000: d1e7 bne.n 8009fd2 + 800a002: e000 b.n 800a006 return; - 8009fb0: bf00 nop + 800a004: bf00 nop } } - 8009fb2: 3718 adds r7, #24 - 8009fb4: 46bd mov sp, r7 - 8009fb6: bd80 pop {r7, pc} + 800a006: 3718 adds r7, #24 + 800a008: 46bd mov sp, r7 + 800a00a: bd80 pop {r7, pc} -08009fb8 : +0800a00c : * return the string length * @param buf : pointer to the ascii string buffer * @retval string length */ static uint8_t USBD_GetLen(uint8_t *buf) { - 8009fb8: b480 push {r7} - 8009fba: b085 sub sp, #20 - 8009fbc: af00 add r7, sp, #0 - 8009fbe: 6078 str r0, [r7, #4] + 800a00c: b480 push {r7} + 800a00e: b085 sub sp, #20 + 800a010: af00 add r7, sp, #0 + 800a012: 6078 str r0, [r7, #4] uint8_t len = 0U; - 8009fc0: 2300 movs r3, #0 - 8009fc2: 73fb strb r3, [r7, #15] + 800a014: 2300 movs r3, #0 + 800a016: 73fb strb r3, [r7, #15] uint8_t *pbuff = buf; - 8009fc4: 687b ldr r3, [r7, #4] - 8009fc6: 60bb str r3, [r7, #8] + 800a018: 687b ldr r3, [r7, #4] + 800a01a: 60bb str r3, [r7, #8] while (*pbuff != (uint8_t)'\0') - 8009fc8: e005 b.n 8009fd6 + 800a01c: e005 b.n 800a02a { len++; - 8009fca: 7bfb ldrb r3, [r7, #15] - 8009fcc: 3301 adds r3, #1 - 8009fce: 73fb strb r3, [r7, #15] + 800a01e: 7bfb ldrb r3, [r7, #15] + 800a020: 3301 adds r3, #1 + 800a022: 73fb strb r3, [r7, #15] pbuff++; - 8009fd0: 68bb ldr r3, [r7, #8] - 8009fd2: 3301 adds r3, #1 - 8009fd4: 60bb str r3, [r7, #8] + 800a024: 68bb ldr r3, [r7, #8] + 800a026: 3301 adds r3, #1 + 800a028: 60bb str r3, [r7, #8] while (*pbuff != (uint8_t)'\0') - 8009fd6: 68bb ldr r3, [r7, #8] - 8009fd8: 781b ldrb r3, [r3, #0] - 8009fda: 2b00 cmp r3, #0 - 8009fdc: d1f5 bne.n 8009fca + 800a02a: 68bb ldr r3, [r7, #8] + 800a02c: 781b ldrb r3, [r3, #0] + 800a02e: 2b00 cmp r3, #0 + 800a030: d1f5 bne.n 800a01e } return len; - 8009fde: 7bfb ldrb r3, [r7, #15] + 800a032: 7bfb ldrb r3, [r7, #15] } - 8009fe0: 4618 mov r0, r3 - 8009fe2: 3714 adds r7, #20 - 8009fe4: 46bd mov sp, r7 - 8009fe6: f85d 7b04 ldr.w r7, [sp], #4 - 8009fea: 4770 bx lr + 800a034: 4618 mov r0, r3 + 800a036: 3714 adds r7, #20 + 800a038: 46bd mov sp, r7 + 800a03a: f85d 7b04 ldr.w r7, [sp], #4 + 800a03e: 4770 bx lr -08009fec : +0800a040 : * @param len: length of data to be sent * @retval status */ USBD_StatusTypeDef USBD_CtlSendData(USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint32_t len) { - 8009fec: b580 push {r7, lr} - 8009fee: b084 sub sp, #16 - 8009ff0: af00 add r7, sp, #0 - 8009ff2: 60f8 str r0, [r7, #12] - 8009ff4: 60b9 str r1, [r7, #8] - 8009ff6: 607a str r2, [r7, #4] + 800a040: b580 push {r7, lr} + 800a042: b084 sub sp, #16 + 800a044: af00 add r7, sp, #0 + 800a046: 60f8 str r0, [r7, #12] + 800a048: 60b9 str r1, [r7, #8] + 800a04a: 607a str r2, [r7, #4] /* Set EP0 State */ pdev->ep0_state = USBD_EP0_DATA_IN; - 8009ff8: 68fb ldr r3, [r7, #12] - 8009ffa: 2202 movs r2, #2 - 8009ffc: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 800a04c: 68fb ldr r3, [r7, #12] + 800a04e: 2202 movs r2, #2 + 800a050: f8c3 2294 str.w r2, [r3, #660] @ 0x294 pdev->ep_in[0].total_length = len; - 800a000: 68fb ldr r3, [r7, #12] - 800a002: 687a ldr r2, [r7, #4] - 800a004: 615a str r2, [r3, #20] + 800a054: 68fb ldr r3, [r7, #12] + 800a056: 687a ldr r2, [r7, #4] + 800a058: 615a str r2, [r3, #20] pdev->ep_in[0].pbuffer = pbuf; - 800a006: 68fb ldr r3, [r7, #12] - 800a008: 68ba ldr r2, [r7, #8] - 800a00a: 625a str r2, [r3, #36] @ 0x24 + 800a05a: 68fb ldr r3, [r7, #12] + 800a05c: 68ba ldr r2, [r7, #8] + 800a05e: 625a str r2, [r3, #36] @ 0x24 #ifdef USBD_AVOID_PACKET_SPLIT_MPS pdev->ep_in[0].rem_length = 0U; #else pdev->ep_in[0].rem_length = len; - 800a00c: 68fb ldr r3, [r7, #12] - 800a00e: 687a ldr r2, [r7, #4] - 800a010: 619a str r2, [r3, #24] + 800a060: 68fb ldr r3, [r7, #12] + 800a062: 687a ldr r2, [r7, #4] + 800a064: 619a str r2, [r3, #24] #endif /* USBD_AVOID_PACKET_SPLIT_MPS */ /* Start the transfer */ (void)USBD_LL_Transmit(pdev, 0x00U, pbuf, len); - 800a012: 687b ldr r3, [r7, #4] - 800a014: 68ba ldr r2, [r7, #8] - 800a016: 2100 movs r1, #0 - 800a018: 68f8 ldr r0, [r7, #12] - 800a01a: f000 fc26 bl 800a86a + 800a066: 687b ldr r3, [r7, #4] + 800a068: 68ba ldr r2, [r7, #8] + 800a06a: 2100 movs r1, #0 + 800a06c: 68f8 ldr r0, [r7, #12] + 800a06e: f000 fc26 bl 800a8be return USBD_OK; - 800a01e: 2300 movs r3, #0 + 800a072: 2300 movs r3, #0 } - 800a020: 4618 mov r0, r3 - 800a022: 3710 adds r7, #16 - 800a024: 46bd mov sp, r7 - 800a026: bd80 pop {r7, pc} + 800a074: 4618 mov r0, r3 + 800a076: 3710 adds r7, #16 + 800a078: 46bd mov sp, r7 + 800a07a: bd80 pop {r7, pc} -0800a028 : +0800a07c : * @param len: length of data to be sent * @retval status */ USBD_StatusTypeDef USBD_CtlContinueSendData(USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint32_t len) { - 800a028: b580 push {r7, lr} - 800a02a: b084 sub sp, #16 - 800a02c: af00 add r7, sp, #0 - 800a02e: 60f8 str r0, [r7, #12] - 800a030: 60b9 str r1, [r7, #8] - 800a032: 607a str r2, [r7, #4] + 800a07c: b580 push {r7, lr} + 800a07e: b084 sub sp, #16 + 800a080: af00 add r7, sp, #0 + 800a082: 60f8 str r0, [r7, #12] + 800a084: 60b9 str r1, [r7, #8] + 800a086: 607a str r2, [r7, #4] /* Start the next transfer */ (void)USBD_LL_Transmit(pdev, 0x00U, pbuf, len); - 800a034: 687b ldr r3, [r7, #4] - 800a036: 68ba ldr r2, [r7, #8] - 800a038: 2100 movs r1, #0 - 800a03a: 68f8 ldr r0, [r7, #12] - 800a03c: f000 fc15 bl 800a86a + 800a088: 687b ldr r3, [r7, #4] + 800a08a: 68ba ldr r2, [r7, #8] + 800a08c: 2100 movs r1, #0 + 800a08e: 68f8 ldr r0, [r7, #12] + 800a090: f000 fc15 bl 800a8be return USBD_OK; - 800a040: 2300 movs r3, #0 + 800a094: 2300 movs r3, #0 } - 800a042: 4618 mov r0, r3 - 800a044: 3710 adds r7, #16 - 800a046: 46bd mov sp, r7 - 800a048: bd80 pop {r7, pc} + 800a096: 4618 mov r0, r3 + 800a098: 3710 adds r7, #16 + 800a09a: 46bd mov sp, r7 + 800a09c: bd80 pop {r7, pc} -0800a04a : +0800a09e : * @param len: length of data to be received * @retval status */ USBD_StatusTypeDef USBD_CtlContinueRx(USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint32_t len) { - 800a04a: b580 push {r7, lr} - 800a04c: b084 sub sp, #16 - 800a04e: af00 add r7, sp, #0 - 800a050: 60f8 str r0, [r7, #12] - 800a052: 60b9 str r1, [r7, #8] - 800a054: 607a str r2, [r7, #4] + 800a09e: b580 push {r7, lr} + 800a0a0: b084 sub sp, #16 + 800a0a2: af00 add r7, sp, #0 + 800a0a4: 60f8 str r0, [r7, #12] + 800a0a6: 60b9 str r1, [r7, #8] + 800a0a8: 607a str r2, [r7, #4] (void)USBD_LL_PrepareReceive(pdev, 0U, pbuf, len); - 800a056: 687b ldr r3, [r7, #4] - 800a058: 68ba ldr r2, [r7, #8] - 800a05a: 2100 movs r1, #0 - 800a05c: 68f8 ldr r0, [r7, #12] - 800a05e: f000 fc25 bl 800a8ac + 800a0aa: 687b ldr r3, [r7, #4] + 800a0ac: 68ba ldr r2, [r7, #8] + 800a0ae: 2100 movs r1, #0 + 800a0b0: 68f8 ldr r0, [r7, #12] + 800a0b2: f000 fc25 bl 800a900 return USBD_OK; - 800a062: 2300 movs r3, #0 + 800a0b6: 2300 movs r3, #0 } - 800a064: 4618 mov r0, r3 - 800a066: 3710 adds r7, #16 - 800a068: 46bd mov sp, r7 - 800a06a: bd80 pop {r7, pc} + 800a0b8: 4618 mov r0, r3 + 800a0ba: 3710 adds r7, #16 + 800a0bc: 46bd mov sp, r7 + 800a0be: bd80 pop {r7, pc} -0800a06c : +0800a0c0 : * send zero lzngth packet on the ctl pipe * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_CtlSendStatus(USBD_HandleTypeDef *pdev) { - 800a06c: b580 push {r7, lr} - 800a06e: b082 sub sp, #8 - 800a070: af00 add r7, sp, #0 - 800a072: 6078 str r0, [r7, #4] + 800a0c0: b580 push {r7, lr} + 800a0c2: b082 sub sp, #8 + 800a0c4: af00 add r7, sp, #0 + 800a0c6: 6078 str r0, [r7, #4] /* Set EP0 State */ pdev->ep0_state = USBD_EP0_STATUS_IN; - 800a074: 687b ldr r3, [r7, #4] - 800a076: 2204 movs r2, #4 - 800a078: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 800a0c8: 687b ldr r3, [r7, #4] + 800a0ca: 2204 movs r2, #4 + 800a0cc: f8c3 2294 str.w r2, [r3, #660] @ 0x294 /* Start the transfer */ (void)USBD_LL_Transmit(pdev, 0x00U, NULL, 0U); - 800a07c: 2300 movs r3, #0 - 800a07e: 2200 movs r2, #0 - 800a080: 2100 movs r1, #0 - 800a082: 6878 ldr r0, [r7, #4] - 800a084: f000 fbf1 bl 800a86a + 800a0d0: 2300 movs r3, #0 + 800a0d2: 2200 movs r2, #0 + 800a0d4: 2100 movs r1, #0 + 800a0d6: 6878 ldr r0, [r7, #4] + 800a0d8: f000 fbf1 bl 800a8be return USBD_OK; - 800a088: 2300 movs r3, #0 + 800a0dc: 2300 movs r3, #0 } - 800a08a: 4618 mov r0, r3 - 800a08c: 3708 adds r7, #8 - 800a08e: 46bd mov sp, r7 - 800a090: bd80 pop {r7, pc} + 800a0de: 4618 mov r0, r3 + 800a0e0: 3708 adds r7, #8 + 800a0e2: 46bd mov sp, r7 + 800a0e4: bd80 pop {r7, pc} -0800a092 : +0800a0e6 : * receive zero lzngth packet on the ctl pipe * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_CtlReceiveStatus(USBD_HandleTypeDef *pdev) { - 800a092: b580 push {r7, lr} - 800a094: b082 sub sp, #8 - 800a096: af00 add r7, sp, #0 - 800a098: 6078 str r0, [r7, #4] + 800a0e6: b580 push {r7, lr} + 800a0e8: b082 sub sp, #8 + 800a0ea: af00 add r7, sp, #0 + 800a0ec: 6078 str r0, [r7, #4] /* Set EP0 State */ pdev->ep0_state = USBD_EP0_STATUS_OUT; - 800a09a: 687b ldr r3, [r7, #4] - 800a09c: 2205 movs r2, #5 - 800a09e: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 800a0ee: 687b ldr r3, [r7, #4] + 800a0f0: 2205 movs r2, #5 + 800a0f2: f8c3 2294 str.w r2, [r3, #660] @ 0x294 /* Start the transfer */ (void)USBD_LL_PrepareReceive(pdev, 0U, NULL, 0U); - 800a0a2: 2300 movs r3, #0 - 800a0a4: 2200 movs r2, #0 - 800a0a6: 2100 movs r1, #0 - 800a0a8: 6878 ldr r0, [r7, #4] - 800a0aa: f000 fbff bl 800a8ac + 800a0f6: 2300 movs r3, #0 + 800a0f8: 2200 movs r2, #0 + 800a0fa: 2100 movs r1, #0 + 800a0fc: 6878 ldr r0, [r7, #4] + 800a0fe: f000 fbff bl 800a900 return USBD_OK; - 800a0ae: 2300 movs r3, #0 + 800a102: 2300 movs r3, #0 } - 800a0b0: 4618 mov r0, r3 - 800a0b2: 3708 adds r7, #8 - 800a0b4: 46bd mov sp, r7 - 800a0b6: bd80 pop {r7, pc} + 800a104: 4618 mov r0, r3 + 800a106: 3708 adds r7, #8 + 800a108: 46bd mov sp, r7 + 800a10a: bd80 pop {r7, pc} -0800a0b8 : +0800a10c : /** * Init USB device Library, add supported class and start the library * @retval None */ void MX_USB_DEVICE_Init(void) { - 800a0b8: b580 push {r7, lr} - 800a0ba: af00 add r7, sp, #0 + 800a10c: b580 push {r7, lr} + 800a10e: af00 add r7, sp, #0 /* USER CODE BEGIN USB_DEVICE_Init_PreTreatment */ /* USER CODE END USB_DEVICE_Init_PreTreatment */ /* Init Device Library, add supported class and start the library. */ if (USBD_Init(&hUsbDeviceFS, &FS_Desc, DEVICE_FS) != USBD_OK) - 800a0bc: 2200 movs r2, #0 - 800a0be: 490e ldr r1, [pc, #56] @ (800a0f8 ) - 800a0c0: 480e ldr r0, [pc, #56] @ (800a0fc ) - 800a0c2: f7fe fcd1 bl 8008a68 - 800a0c6: 4603 mov r3, r0 - 800a0c8: 2b00 cmp r3, #0 - 800a0ca: d001 beq.n 800a0d0 + 800a110: 2200 movs r2, #0 + 800a112: 490e ldr r1, [pc, #56] @ (800a14c ) + 800a114: 480e ldr r0, [pc, #56] @ (800a150 ) + 800a116: f7fe fcd1 bl 8008abc + 800a11a: 4603 mov r3, r0 + 800a11c: 2b00 cmp r3, #0 + 800a11e: d001 beq.n 800a124 { Error_Handler(); - 800a0cc: f7f6 feec bl 8000ea8 + 800a120: f7f6 feec bl 8000efc } if (USBD_RegisterClass(&hUsbDeviceFS, &USBD_HID) != USBD_OK) - 800a0d0: 490b ldr r1, [pc, #44] @ (800a100 ) - 800a0d2: 480a ldr r0, [pc, #40] @ (800a0fc ) - 800a0d4: f7fe fcf8 bl 8008ac8 - 800a0d8: 4603 mov r3, r0 - 800a0da: 2b00 cmp r3, #0 - 800a0dc: d001 beq.n 800a0e2 + 800a124: 490b ldr r1, [pc, #44] @ (800a154 ) + 800a126: 480a ldr r0, [pc, #40] @ (800a150 ) + 800a128: f7fe fcf8 bl 8008b1c + 800a12c: 4603 mov r3, r0 + 800a12e: 2b00 cmp r3, #0 + 800a130: d001 beq.n 800a136 { Error_Handler(); - 800a0de: f7f6 fee3 bl 8000ea8 + 800a132: f7f6 fee3 bl 8000efc } if (USBD_Start(&hUsbDeviceFS) != USBD_OK) - 800a0e2: 4806 ldr r0, [pc, #24] @ (800a0fc ) - 800a0e4: f7fe fd26 bl 8008b34 - 800a0e8: 4603 mov r3, r0 - 800a0ea: 2b00 cmp r3, #0 - 800a0ec: d001 beq.n 800a0f2 + 800a136: 4806 ldr r0, [pc, #24] @ (800a150 ) + 800a138: f7fe fd26 bl 8008b88 + 800a13c: 4603 mov r3, r0 + 800a13e: 2b00 cmp r3, #0 + 800a140: d001 beq.n 800a146 { Error_Handler(); - 800a0ee: f7f6 fedb bl 8000ea8 + 800a142: f7f6 fedb bl 8000efc } /* USER CODE BEGIN USB_DEVICE_Init_PostTreatment */ /* USER CODE END USB_DEVICE_Init_PostTreatment */ } - 800a0f2: bf00 nop - 800a0f4: bd80 pop {r7, pc} - 800a0f6: bf00 nop - 800a0f8: 20000140 .word 0x20000140 - 800a0fc: 20000734 .word 0x20000734 - 800a100: 2000009c .word 0x2000009c + 800a146: bf00 nop + 800a148: bd80 pop {r7, pc} + 800a14a: bf00 nop + 800a14c: 20000140 .word 0x20000140 + 800a150: 20000738 .word 0x20000738 + 800a154: 2000009c .word 0x2000009c -0800a104 : +0800a158 : * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t * USBD_FS_DeviceDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { - 800a104: b480 push {r7} - 800a106: b083 sub sp, #12 - 800a108: af00 add r7, sp, #0 - 800a10a: 4603 mov r3, r0 - 800a10c: 6039 str r1, [r7, #0] - 800a10e: 71fb strb r3, [r7, #7] + 800a158: b480 push {r7} + 800a15a: b083 sub sp, #12 + 800a15c: af00 add r7, sp, #0 + 800a15e: 4603 mov r3, r0 + 800a160: 6039 str r1, [r7, #0] + 800a162: 71fb strb r3, [r7, #7] UNUSED(speed); *length = sizeof(USBD_FS_DeviceDesc); - 800a110: 683b ldr r3, [r7, #0] - 800a112: 2212 movs r2, #18 - 800a114: 801a strh r2, [r3, #0] + 800a164: 683b ldr r3, [r7, #0] + 800a166: 2212 movs r2, #18 + 800a168: 801a strh r2, [r3, #0] return USBD_FS_DeviceDesc; - 800a116: 4b03 ldr r3, [pc, #12] @ (800a124 ) + 800a16a: 4b03 ldr r3, [pc, #12] @ (800a178 ) } - 800a118: 4618 mov r0, r3 - 800a11a: 370c adds r7, #12 - 800a11c: 46bd mov sp, r7 - 800a11e: f85d 7b04 ldr.w r7, [sp], #4 - 800a122: 4770 bx lr - 800a124: 20000160 .word 0x20000160 + 800a16c: 4618 mov r0, r3 + 800a16e: 370c adds r7, #12 + 800a170: 46bd mov sp, r7 + 800a172: f85d 7b04 ldr.w r7, [sp], #4 + 800a176: 4770 bx lr + 800a178: 20000160 .word 0x20000160 -0800a128 : +0800a17c : * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t * USBD_FS_LangIDStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { - 800a128: b480 push {r7} - 800a12a: b083 sub sp, #12 - 800a12c: af00 add r7, sp, #0 - 800a12e: 4603 mov r3, r0 - 800a130: 6039 str r1, [r7, #0] - 800a132: 71fb strb r3, [r7, #7] + 800a17c: b480 push {r7} + 800a17e: b083 sub sp, #12 + 800a180: af00 add r7, sp, #0 + 800a182: 4603 mov r3, r0 + 800a184: 6039 str r1, [r7, #0] + 800a186: 71fb strb r3, [r7, #7] UNUSED(speed); *length = sizeof(USBD_LangIDDesc); - 800a134: 683b ldr r3, [r7, #0] - 800a136: 2204 movs r2, #4 - 800a138: 801a strh r2, [r3, #0] + 800a188: 683b ldr r3, [r7, #0] + 800a18a: 2204 movs r2, #4 + 800a18c: 801a strh r2, [r3, #0] return USBD_LangIDDesc; - 800a13a: 4b03 ldr r3, [pc, #12] @ (800a148 ) + 800a18e: 4b03 ldr r3, [pc, #12] @ (800a19c ) } - 800a13c: 4618 mov r0, r3 - 800a13e: 370c adds r7, #12 - 800a140: 46bd mov sp, r7 - 800a142: f85d 7b04 ldr.w r7, [sp], #4 - 800a146: 4770 bx lr - 800a148: 20000180 .word 0x20000180 + 800a190: 4618 mov r0, r3 + 800a192: 370c adds r7, #12 + 800a194: 46bd mov sp, r7 + 800a196: f85d 7b04 ldr.w r7, [sp], #4 + 800a19a: 4770 bx lr + 800a19c: 20000180 .word 0x20000180 -0800a14c : +0800a1a0 : * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t * USBD_FS_ProductStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { - 800a14c: b580 push {r7, lr} - 800a14e: b082 sub sp, #8 - 800a150: af00 add r7, sp, #0 - 800a152: 4603 mov r3, r0 - 800a154: 6039 str r1, [r7, #0] - 800a156: 71fb strb r3, [r7, #7] + 800a1a0: b580 push {r7, lr} + 800a1a2: b082 sub sp, #8 + 800a1a4: af00 add r7, sp, #0 + 800a1a6: 4603 mov r3, r0 + 800a1a8: 6039 str r1, [r7, #0] + 800a1aa: 71fb strb r3, [r7, #7] if(speed == 0) - 800a158: 79fb ldrb r3, [r7, #7] - 800a15a: 2b00 cmp r3, #0 - 800a15c: d105 bne.n 800a16a + 800a1ac: 79fb ldrb r3, [r7, #7] + 800a1ae: 2b00 cmp r3, #0 + 800a1b0: d105 bne.n 800a1be { USBD_GetString((uint8_t *)USBD_PRODUCT_STRING_FS, USBD_StrDesc, length); - 800a15e: 683a ldr r2, [r7, #0] - 800a160: 4907 ldr r1, [pc, #28] @ (800a180 ) - 800a162: 4808 ldr r0, [pc, #32] @ (800a184 ) - 800a164: f7ff fed6 bl 8009f14 - 800a168: e004 b.n 800a174 + 800a1b2: 683a ldr r2, [r7, #0] + 800a1b4: 4907 ldr r1, [pc, #28] @ (800a1d4 ) + 800a1b6: 4808 ldr r0, [pc, #32] @ (800a1d8 ) + 800a1b8: f7ff fed6 bl 8009f68 + 800a1bc: e004 b.n 800a1c8 } else { USBD_GetString((uint8_t *)USBD_PRODUCT_STRING_FS, USBD_StrDesc, length); - 800a16a: 683a ldr r2, [r7, #0] - 800a16c: 4904 ldr r1, [pc, #16] @ (800a180 ) - 800a16e: 4805 ldr r0, [pc, #20] @ (800a184 ) - 800a170: f7ff fed0 bl 8009f14 + 800a1be: 683a ldr r2, [r7, #0] + 800a1c0: 4904 ldr r1, [pc, #16] @ (800a1d4 ) + 800a1c2: 4805 ldr r0, [pc, #20] @ (800a1d8 ) + 800a1c4: f7ff fed0 bl 8009f68 } return USBD_StrDesc; - 800a174: 4b02 ldr r3, [pc, #8] @ (800a180 ) + 800a1c8: 4b02 ldr r3, [pc, #8] @ (800a1d4 ) } - 800a176: 4618 mov r0, r3 - 800a178: 3708 adds r7, #8 - 800a17a: 46bd mov sp, r7 - 800a17c: bd80 pop {r7, pc} - 800a17e: bf00 nop - 800a180: 20000a10 .word 0x20000a10 - 800a184: 0800aa84 .word 0x0800aa84 + 800a1ca: 4618 mov r0, r3 + 800a1cc: 3708 adds r7, #8 + 800a1ce: 46bd mov sp, r7 + 800a1d0: bd80 pop {r7, pc} + 800a1d2: bf00 nop + 800a1d4: 20000a14 .word 0x20000a14 + 800a1d8: 0800aad8 .word 0x0800aad8 -0800a188 : +0800a1dc : * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t * USBD_FS_ManufacturerStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { - 800a188: b580 push {r7, lr} - 800a18a: b082 sub sp, #8 - 800a18c: af00 add r7, sp, #0 - 800a18e: 4603 mov r3, r0 - 800a190: 6039 str r1, [r7, #0] - 800a192: 71fb strb r3, [r7, #7] + 800a1dc: b580 push {r7, lr} + 800a1de: b082 sub sp, #8 + 800a1e0: af00 add r7, sp, #0 + 800a1e2: 4603 mov r3, r0 + 800a1e4: 6039 str r1, [r7, #0] + 800a1e6: 71fb strb r3, [r7, #7] UNUSED(speed); USBD_GetString((uint8_t *)USBD_MANUFACTURER_STRING, USBD_StrDesc, length); - 800a194: 683a ldr r2, [r7, #0] - 800a196: 4904 ldr r1, [pc, #16] @ (800a1a8 ) - 800a198: 4804 ldr r0, [pc, #16] @ (800a1ac ) - 800a19a: f7ff febb bl 8009f14 + 800a1e8: 683a ldr r2, [r7, #0] + 800a1ea: 4904 ldr r1, [pc, #16] @ (800a1fc ) + 800a1ec: 4804 ldr r0, [pc, #16] @ (800a200 ) + 800a1ee: f7ff febb bl 8009f68 return USBD_StrDesc; - 800a19e: 4b02 ldr r3, [pc, #8] @ (800a1a8 ) + 800a1f2: 4b02 ldr r3, [pc, #8] @ (800a1fc ) } - 800a1a0: 4618 mov r0, r3 - 800a1a2: 3708 adds r7, #8 - 800a1a4: 46bd mov sp, r7 - 800a1a6: bd80 pop {r7, pc} - 800a1a8: 20000a10 .word 0x20000a10 - 800a1ac: 0800aa98 .word 0x0800aa98 + 800a1f4: 4618 mov r0, r3 + 800a1f6: 3708 adds r7, #8 + 800a1f8: 46bd mov sp, r7 + 800a1fa: bd80 pop {r7, pc} + 800a1fc: 20000a14 .word 0x20000a14 + 800a200: 0800aaec .word 0x0800aaec -0800a1b0 : +0800a204 : * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t * USBD_FS_SerialStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { - 800a1b0: b580 push {r7, lr} - 800a1b2: b082 sub sp, #8 - 800a1b4: af00 add r7, sp, #0 - 800a1b6: 4603 mov r3, r0 - 800a1b8: 6039 str r1, [r7, #0] - 800a1ba: 71fb strb r3, [r7, #7] + 800a204: b580 push {r7, lr} + 800a206: b082 sub sp, #8 + 800a208: af00 add r7, sp, #0 + 800a20a: 4603 mov r3, r0 + 800a20c: 6039 str r1, [r7, #0] + 800a20e: 71fb strb r3, [r7, #7] UNUSED(speed); *length = USB_SIZ_STRING_SERIAL; - 800a1bc: 683b ldr r3, [r7, #0] - 800a1be: 221a movs r2, #26 - 800a1c0: 801a strh r2, [r3, #0] + 800a210: 683b ldr r3, [r7, #0] + 800a212: 221a movs r2, #26 + 800a214: 801a strh r2, [r3, #0] /* Update the serial number string descriptor with the data from the unique * ID */ Get_SerialNum(); - 800a1c2: f000 f855 bl 800a270 + 800a216: f000 f855 bl 800a2c4 /* USER CODE BEGIN USBD_FS_SerialStrDescriptor */ /* USER CODE END USBD_FS_SerialStrDescriptor */ return (uint8_t *) USBD_StringSerial; - 800a1c6: 4b02 ldr r3, [pc, #8] @ (800a1d0 ) + 800a21a: 4b02 ldr r3, [pc, #8] @ (800a224 ) } - 800a1c8: 4618 mov r0, r3 - 800a1ca: 3708 adds r7, #8 - 800a1cc: 46bd mov sp, r7 - 800a1ce: bd80 pop {r7, pc} - 800a1d0: 20000184 .word 0x20000184 + 800a21c: 4618 mov r0, r3 + 800a21e: 3708 adds r7, #8 + 800a220: 46bd mov sp, r7 + 800a222: bd80 pop {r7, pc} + 800a224: 20000184 .word 0x20000184 -0800a1d4 : +0800a228 : * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t * USBD_FS_ConfigStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { - 800a1d4: b580 push {r7, lr} - 800a1d6: b082 sub sp, #8 - 800a1d8: af00 add r7, sp, #0 - 800a1da: 4603 mov r3, r0 - 800a1dc: 6039 str r1, [r7, #0] - 800a1de: 71fb strb r3, [r7, #7] + 800a228: b580 push {r7, lr} + 800a22a: b082 sub sp, #8 + 800a22c: af00 add r7, sp, #0 + 800a22e: 4603 mov r3, r0 + 800a230: 6039 str r1, [r7, #0] + 800a232: 71fb strb r3, [r7, #7] if(speed == USBD_SPEED_HIGH) - 800a1e0: 79fb ldrb r3, [r7, #7] - 800a1e2: 2b00 cmp r3, #0 - 800a1e4: d105 bne.n 800a1f2 + 800a234: 79fb ldrb r3, [r7, #7] + 800a236: 2b00 cmp r3, #0 + 800a238: d105 bne.n 800a246 { USBD_GetString((uint8_t *)USBD_CONFIGURATION_STRING_FS, USBD_StrDesc, length); - 800a1e6: 683a ldr r2, [r7, #0] - 800a1e8: 4907 ldr r1, [pc, #28] @ (800a208 ) - 800a1ea: 4808 ldr r0, [pc, #32] @ (800a20c ) - 800a1ec: f7ff fe92 bl 8009f14 - 800a1f0: e004 b.n 800a1fc + 800a23a: 683a ldr r2, [r7, #0] + 800a23c: 4907 ldr r1, [pc, #28] @ (800a25c ) + 800a23e: 4808 ldr r0, [pc, #32] @ (800a260 ) + 800a240: f7ff fe92 bl 8009f68 + 800a244: e004 b.n 800a250 } else { USBD_GetString((uint8_t *)USBD_CONFIGURATION_STRING_FS, USBD_StrDesc, length); - 800a1f2: 683a ldr r2, [r7, #0] - 800a1f4: 4904 ldr r1, [pc, #16] @ (800a208 ) - 800a1f6: 4805 ldr r0, [pc, #20] @ (800a20c ) - 800a1f8: f7ff fe8c bl 8009f14 + 800a246: 683a ldr r2, [r7, #0] + 800a248: 4904 ldr r1, [pc, #16] @ (800a25c ) + 800a24a: 4805 ldr r0, [pc, #20] @ (800a260 ) + 800a24c: f7ff fe8c bl 8009f68 } return USBD_StrDesc; - 800a1fc: 4b02 ldr r3, [pc, #8] @ (800a208 ) + 800a250: 4b02 ldr r3, [pc, #8] @ (800a25c ) } - 800a1fe: 4618 mov r0, r3 - 800a200: 3708 adds r7, #8 - 800a202: 46bd mov sp, r7 - 800a204: bd80 pop {r7, pc} - 800a206: bf00 nop - 800a208: 20000a10 .word 0x20000a10 - 800a20c: 0800aaa4 .word 0x0800aaa4 + 800a252: 4618 mov r0, r3 + 800a254: 3708 adds r7, #8 + 800a256: 46bd mov sp, r7 + 800a258: bd80 pop {r7, pc} + 800a25a: bf00 nop + 800a25c: 20000a14 .word 0x20000a14 + 800a260: 0800aaf8 .word 0x0800aaf8 -0800a210 : +0800a264 : * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t * USBD_FS_InterfaceStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { - 800a210: b580 push {r7, lr} - 800a212: b082 sub sp, #8 - 800a214: af00 add r7, sp, #0 - 800a216: 4603 mov r3, r0 - 800a218: 6039 str r1, [r7, #0] - 800a21a: 71fb strb r3, [r7, #7] + 800a264: b580 push {r7, lr} + 800a266: b082 sub sp, #8 + 800a268: af00 add r7, sp, #0 + 800a26a: 4603 mov r3, r0 + 800a26c: 6039 str r1, [r7, #0] + 800a26e: 71fb strb r3, [r7, #7] if(speed == 0) - 800a21c: 79fb ldrb r3, [r7, #7] - 800a21e: 2b00 cmp r3, #0 - 800a220: d105 bne.n 800a22e + 800a270: 79fb ldrb r3, [r7, #7] + 800a272: 2b00 cmp r3, #0 + 800a274: d105 bne.n 800a282 { USBD_GetString((uint8_t *)USBD_INTERFACE_STRING_FS, USBD_StrDesc, length); - 800a222: 683a ldr r2, [r7, #0] - 800a224: 4907 ldr r1, [pc, #28] @ (800a244 ) - 800a226: 4808 ldr r0, [pc, #32] @ (800a248 ) - 800a228: f7ff fe74 bl 8009f14 - 800a22c: e004 b.n 800a238 + 800a276: 683a ldr r2, [r7, #0] + 800a278: 4907 ldr r1, [pc, #28] @ (800a298 ) + 800a27a: 4808 ldr r0, [pc, #32] @ (800a29c ) + 800a27c: f7ff fe74 bl 8009f68 + 800a280: e004 b.n 800a28c } else { USBD_GetString((uint8_t *)USBD_INTERFACE_STRING_FS, USBD_StrDesc, length); - 800a22e: 683a ldr r2, [r7, #0] - 800a230: 4904 ldr r1, [pc, #16] @ (800a244 ) - 800a232: 4805 ldr r0, [pc, #20] @ (800a248 ) - 800a234: f7ff fe6e bl 8009f14 + 800a282: 683a ldr r2, [r7, #0] + 800a284: 4904 ldr r1, [pc, #16] @ (800a298 ) + 800a286: 4805 ldr r0, [pc, #20] @ (800a29c ) + 800a288: f7ff fe6e bl 8009f68 } return USBD_StrDesc; - 800a238: 4b02 ldr r3, [pc, #8] @ (800a244 ) + 800a28c: 4b02 ldr r3, [pc, #8] @ (800a298 ) } - 800a23a: 4618 mov r0, r3 - 800a23c: 3708 adds r7, #8 - 800a23e: 46bd mov sp, r7 - 800a240: bd80 pop {r7, pc} - 800a242: bf00 nop - 800a244: 20000a10 .word 0x20000a10 - 800a248: 0800aab0 .word 0x0800aab0 + 800a28e: 4618 mov r0, r3 + 800a290: 3708 adds r7, #8 + 800a292: 46bd mov sp, r7 + 800a294: bd80 pop {r7, pc} + 800a296: bf00 nop + 800a298: 20000a14 .word 0x20000a14 + 800a29c: 0800ab04 .word 0x0800ab04 -0800a24c : +0800a2a0 : * @param speed : Current device speed * @param length : Pointer to data length variable * @retval Pointer to descriptor buffer */ uint8_t * USBD_FS_USR_BOSDescriptor(USBD_SpeedTypeDef speed, uint16_t *length) { - 800a24c: b480 push {r7} - 800a24e: b083 sub sp, #12 - 800a250: af00 add r7, sp, #0 - 800a252: 4603 mov r3, r0 - 800a254: 6039 str r1, [r7, #0] - 800a256: 71fb strb r3, [r7, #7] + 800a2a0: b480 push {r7} + 800a2a2: b083 sub sp, #12 + 800a2a4: af00 add r7, sp, #0 + 800a2a6: 4603 mov r3, r0 + 800a2a8: 6039 str r1, [r7, #0] + 800a2aa: 71fb strb r3, [r7, #7] UNUSED(speed); *length = sizeof(USBD_FS_BOSDesc); - 800a258: 683b ldr r3, [r7, #0] - 800a25a: 220c movs r2, #12 - 800a25c: 801a strh r2, [r3, #0] + 800a2ac: 683b ldr r3, [r7, #0] + 800a2ae: 220c movs r2, #12 + 800a2b0: 801a strh r2, [r3, #0] return (uint8_t*)USBD_FS_BOSDesc; - 800a25e: 4b03 ldr r3, [pc, #12] @ (800a26c ) + 800a2b2: 4b03 ldr r3, [pc, #12] @ (800a2c0 ) } - 800a260: 4618 mov r0, r3 - 800a262: 370c adds r7, #12 - 800a264: 46bd mov sp, r7 - 800a266: f85d 7b04 ldr.w r7, [sp], #4 - 800a26a: 4770 bx lr - 800a26c: 20000174 .word 0x20000174 + 800a2b4: 4618 mov r0, r3 + 800a2b6: 370c adds r7, #12 + 800a2b8: 46bd mov sp, r7 + 800a2ba: f85d 7b04 ldr.w r7, [sp], #4 + 800a2be: 4770 bx lr + 800a2c0: 20000174 .word 0x20000174 -0800a270 : +0800a2c4 : * @brief Create the serial number string descriptor * @param None * @retval None */ static void Get_SerialNum(void) { - 800a270: b580 push {r7, lr} - 800a272: b084 sub sp, #16 - 800a274: af00 add r7, sp, #0 + 800a2c4: b580 push {r7, lr} + 800a2c6: b084 sub sp, #16 + 800a2c8: af00 add r7, sp, #0 uint32_t deviceserial0; uint32_t deviceserial1; uint32_t deviceserial2; deviceserial0 = *(uint32_t *) DEVICE_ID1; - 800a276: 4b0f ldr r3, [pc, #60] @ (800a2b4 ) - 800a278: 681b ldr r3, [r3, #0] - 800a27a: 60fb str r3, [r7, #12] + 800a2ca: 4b0f ldr r3, [pc, #60] @ (800a308 ) + 800a2cc: 681b ldr r3, [r3, #0] + 800a2ce: 60fb str r3, [r7, #12] deviceserial1 = *(uint32_t *) DEVICE_ID2; - 800a27c: 4b0e ldr r3, [pc, #56] @ (800a2b8 ) - 800a27e: 681b ldr r3, [r3, #0] - 800a280: 60bb str r3, [r7, #8] + 800a2d0: 4b0e ldr r3, [pc, #56] @ (800a30c ) + 800a2d2: 681b ldr r3, [r3, #0] + 800a2d4: 60bb str r3, [r7, #8] deviceserial2 = *(uint32_t *) DEVICE_ID3; - 800a282: 4b0e ldr r3, [pc, #56] @ (800a2bc ) - 800a284: 681b ldr r3, [r3, #0] - 800a286: 607b str r3, [r7, #4] + 800a2d6: 4b0e ldr r3, [pc, #56] @ (800a310 ) + 800a2d8: 681b ldr r3, [r3, #0] + 800a2da: 607b str r3, [r7, #4] deviceserial0 += deviceserial2; - 800a288: 68fa ldr r2, [r7, #12] - 800a28a: 687b ldr r3, [r7, #4] - 800a28c: 4413 add r3, r2 - 800a28e: 60fb str r3, [r7, #12] + 800a2dc: 68fa ldr r2, [r7, #12] + 800a2de: 687b ldr r3, [r7, #4] + 800a2e0: 4413 add r3, r2 + 800a2e2: 60fb str r3, [r7, #12] if (deviceserial0 != 0) - 800a290: 68fb ldr r3, [r7, #12] - 800a292: 2b00 cmp r3, #0 - 800a294: d009 beq.n 800a2aa + 800a2e4: 68fb ldr r3, [r7, #12] + 800a2e6: 2b00 cmp r3, #0 + 800a2e8: d009 beq.n 800a2fe { IntToUnicode(deviceserial0, &USBD_StringSerial[2], 8); - 800a296: 2208 movs r2, #8 - 800a298: 4909 ldr r1, [pc, #36] @ (800a2c0 ) - 800a29a: 68f8 ldr r0, [r7, #12] - 800a29c: f000 f814 bl 800a2c8 + 800a2ea: 2208 movs r2, #8 + 800a2ec: 4909 ldr r1, [pc, #36] @ (800a314 ) + 800a2ee: 68f8 ldr r0, [r7, #12] + 800a2f0: f000 f814 bl 800a31c IntToUnicode(deviceserial1, &USBD_StringSerial[18], 4); - 800a2a0: 2204 movs r2, #4 - 800a2a2: 4908 ldr r1, [pc, #32] @ (800a2c4 ) - 800a2a4: 68b8 ldr r0, [r7, #8] - 800a2a6: f000 f80f bl 800a2c8 + 800a2f4: 2204 movs r2, #4 + 800a2f6: 4908 ldr r1, [pc, #32] @ (800a318 ) + 800a2f8: 68b8 ldr r0, [r7, #8] + 800a2fa: f000 f80f bl 800a31c } } - 800a2aa: bf00 nop - 800a2ac: 3710 adds r7, #16 - 800a2ae: 46bd mov sp, r7 - 800a2b0: bd80 pop {r7, pc} - 800a2b2: bf00 nop - 800a2b4: 1fff7a10 .word 0x1fff7a10 - 800a2b8: 1fff7a14 .word 0x1fff7a14 - 800a2bc: 1fff7a18 .word 0x1fff7a18 - 800a2c0: 20000186 .word 0x20000186 - 800a2c4: 20000196 .word 0x20000196 + 800a2fe: bf00 nop + 800a300: 3710 adds r7, #16 + 800a302: 46bd mov sp, r7 + 800a304: bd80 pop {r7, pc} + 800a306: bf00 nop + 800a308: 1fff7a10 .word 0x1fff7a10 + 800a30c: 1fff7a14 .word 0x1fff7a14 + 800a310: 1fff7a18 .word 0x1fff7a18 + 800a314: 20000186 .word 0x20000186 + 800a318: 20000196 .word 0x20000196 -0800a2c8 : +0800a31c : * @param pbuf: pointer to the buffer * @param len: buffer length * @retval None */ static void IntToUnicode(uint32_t value, uint8_t * pbuf, uint8_t len) { - 800a2c8: b480 push {r7} - 800a2ca: b087 sub sp, #28 - 800a2cc: af00 add r7, sp, #0 - 800a2ce: 60f8 str r0, [r7, #12] - 800a2d0: 60b9 str r1, [r7, #8] - 800a2d2: 4613 mov r3, r2 - 800a2d4: 71fb strb r3, [r7, #7] + 800a31c: b480 push {r7} + 800a31e: b087 sub sp, #28 + 800a320: af00 add r7, sp, #0 + 800a322: 60f8 str r0, [r7, #12] + 800a324: 60b9 str r1, [r7, #8] + 800a326: 4613 mov r3, r2 + 800a328: 71fb strb r3, [r7, #7] uint8_t idx = 0; - 800a2d6: 2300 movs r3, #0 - 800a2d8: 75fb strb r3, [r7, #23] + 800a32a: 2300 movs r3, #0 + 800a32c: 75fb strb r3, [r7, #23] for (idx = 0; idx < len; idx++) - 800a2da: 2300 movs r3, #0 - 800a2dc: 75fb strb r3, [r7, #23] - 800a2de: e027 b.n 800a330 + 800a32e: 2300 movs r3, #0 + 800a330: 75fb strb r3, [r7, #23] + 800a332: e027 b.n 800a384 { if (((value >> 28)) < 0xA) - 800a2e0: 68fb ldr r3, [r7, #12] - 800a2e2: 0f1b lsrs r3, r3, #28 - 800a2e4: 2b09 cmp r3, #9 - 800a2e6: d80b bhi.n 800a300 + 800a334: 68fb ldr r3, [r7, #12] + 800a336: 0f1b lsrs r3, r3, #28 + 800a338: 2b09 cmp r3, #9 + 800a33a: d80b bhi.n 800a354 { pbuf[2 * idx] = (value >> 28) + '0'; - 800a2e8: 68fb ldr r3, [r7, #12] - 800a2ea: 0f1b lsrs r3, r3, #28 - 800a2ec: b2da uxtb r2, r3 - 800a2ee: 7dfb ldrb r3, [r7, #23] - 800a2f0: 005b lsls r3, r3, #1 - 800a2f2: 4619 mov r1, r3 - 800a2f4: 68bb ldr r3, [r7, #8] - 800a2f6: 440b add r3, r1 - 800a2f8: 3230 adds r2, #48 @ 0x30 - 800a2fa: b2d2 uxtb r2, r2 - 800a2fc: 701a strb r2, [r3, #0] - 800a2fe: e00a b.n 800a316 + 800a33c: 68fb ldr r3, [r7, #12] + 800a33e: 0f1b lsrs r3, r3, #28 + 800a340: b2da uxtb r2, r3 + 800a342: 7dfb ldrb r3, [r7, #23] + 800a344: 005b lsls r3, r3, #1 + 800a346: 4619 mov r1, r3 + 800a348: 68bb ldr r3, [r7, #8] + 800a34a: 440b add r3, r1 + 800a34c: 3230 adds r2, #48 @ 0x30 + 800a34e: b2d2 uxtb r2, r2 + 800a350: 701a strb r2, [r3, #0] + 800a352: e00a b.n 800a36a } else { pbuf[2 * idx] = (value >> 28) + 'A' - 10; - 800a300: 68fb ldr r3, [r7, #12] - 800a302: 0f1b lsrs r3, r3, #28 - 800a304: b2da uxtb r2, r3 - 800a306: 7dfb ldrb r3, [r7, #23] - 800a308: 005b lsls r3, r3, #1 - 800a30a: 4619 mov r1, r3 - 800a30c: 68bb ldr r3, [r7, #8] - 800a30e: 440b add r3, r1 - 800a310: 3237 adds r2, #55 @ 0x37 - 800a312: b2d2 uxtb r2, r2 - 800a314: 701a strb r2, [r3, #0] + 800a354: 68fb ldr r3, [r7, #12] + 800a356: 0f1b lsrs r3, r3, #28 + 800a358: b2da uxtb r2, r3 + 800a35a: 7dfb ldrb r3, [r7, #23] + 800a35c: 005b lsls r3, r3, #1 + 800a35e: 4619 mov r1, r3 + 800a360: 68bb ldr r3, [r7, #8] + 800a362: 440b add r3, r1 + 800a364: 3237 adds r2, #55 @ 0x37 + 800a366: b2d2 uxtb r2, r2 + 800a368: 701a strb r2, [r3, #0] } value = value << 4; - 800a316: 68fb ldr r3, [r7, #12] - 800a318: 011b lsls r3, r3, #4 - 800a31a: 60fb str r3, [r7, #12] + 800a36a: 68fb ldr r3, [r7, #12] + 800a36c: 011b lsls r3, r3, #4 + 800a36e: 60fb str r3, [r7, #12] pbuf[2 * idx + 1] = 0; - 800a31c: 7dfb ldrb r3, [r7, #23] - 800a31e: 005b lsls r3, r3, #1 - 800a320: 3301 adds r3, #1 - 800a322: 68ba ldr r2, [r7, #8] - 800a324: 4413 add r3, r2 - 800a326: 2200 movs r2, #0 - 800a328: 701a strb r2, [r3, #0] + 800a370: 7dfb ldrb r3, [r7, #23] + 800a372: 005b lsls r3, r3, #1 + 800a374: 3301 adds r3, #1 + 800a376: 68ba ldr r2, [r7, #8] + 800a378: 4413 add r3, r2 + 800a37a: 2200 movs r2, #0 + 800a37c: 701a strb r2, [r3, #0] for (idx = 0; idx < len; idx++) - 800a32a: 7dfb ldrb r3, [r7, #23] - 800a32c: 3301 adds r3, #1 - 800a32e: 75fb strb r3, [r7, #23] - 800a330: 7dfa ldrb r2, [r7, #23] - 800a332: 79fb ldrb r3, [r7, #7] - 800a334: 429a cmp r2, r3 - 800a336: d3d3 bcc.n 800a2e0 + 800a37e: 7dfb ldrb r3, [r7, #23] + 800a380: 3301 adds r3, #1 + 800a382: 75fb strb r3, [r7, #23] + 800a384: 7dfa ldrb r2, [r7, #23] + 800a386: 79fb ldrb r3, [r7, #7] + 800a388: 429a cmp r2, r3 + 800a38a: d3d3 bcc.n 800a334 } } - 800a338: bf00 nop - 800a33a: bf00 nop - 800a33c: 371c adds r7, #28 - 800a33e: 46bd mov sp, r7 - 800a340: f85d 7b04 ldr.w r7, [sp], #4 - 800a344: 4770 bx lr + 800a38c: bf00 nop + 800a38e: bf00 nop + 800a390: 371c adds r7, #28 + 800a392: 46bd mov sp, r7 + 800a394: f85d 7b04 ldr.w r7, [sp], #4 + 800a398: 4770 bx lr ... -0800a348 : +0800a39c : LL Driver Callbacks (PCD -> USB Device Library) *******************************************************************************/ /* MSP Init */ void HAL_PCD_MspInit(PCD_HandleTypeDef* pcdHandle) { - 800a348: b580 push {r7, lr} - 800a34a: b0a0 sub sp, #128 @ 0x80 - 800a34c: af00 add r7, sp, #0 - 800a34e: 6078 str r0, [r7, #4] + 800a39c: b580 push {r7, lr} + 800a39e: b0a0 sub sp, #128 @ 0x80 + 800a3a0: af00 add r7, sp, #0 + 800a3a2: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800a350: f107 036c add.w r3, r7, #108 @ 0x6c - 800a354: 2200 movs r2, #0 - 800a356: 601a str r2, [r3, #0] - 800a358: 605a str r2, [r3, #4] - 800a35a: 609a str r2, [r3, #8] - 800a35c: 60da str r2, [r3, #12] - 800a35e: 611a str r2, [r3, #16] + 800a3a4: f107 036c add.w r3, r7, #108 @ 0x6c + 800a3a8: 2200 movs r2, #0 + 800a3aa: 601a str r2, [r3, #0] + 800a3ac: 605a str r2, [r3, #4] + 800a3ae: 609a str r2, [r3, #8] + 800a3b0: 60da str r2, [r3, #12] + 800a3b2: 611a str r2, [r3, #16] RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; - 800a360: f107 0310 add.w r3, r7, #16 - 800a364: 225c movs r2, #92 @ 0x5c - 800a366: 2100 movs r1, #0 - 800a368: 4618 mov r0, r3 - 800a36a: f000 fb53 bl 800aa14 + 800a3b4: f107 0310 add.w r3, r7, #16 + 800a3b8: 225c movs r2, #92 @ 0x5c + 800a3ba: 2100 movs r1, #0 + 800a3bc: 4618 mov r0, r3 + 800a3be: f000 fb53 bl 800aa68 if(pcdHandle->Instance==USB_OTG_FS) - 800a36e: 687b ldr r3, [r7, #4] - 800a370: 681b ldr r3, [r3, #0] - 800a372: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 - 800a376: d149 bne.n 800a40c + 800a3c2: 687b ldr r3, [r7, #4] + 800a3c4: 681b ldr r3, [r3, #0] + 800a3c6: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 + 800a3ca: d149 bne.n 800a460 /* USER CODE END USB_OTG_FS_MspInit 0 */ /** Initializes the peripherals clock */ PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_CLK48; - 800a378: f44f 7380 mov.w r3, #256 @ 0x100 - 800a37c: 613b str r3, [r7, #16] + 800a3cc: f44f 7380 mov.w r3, #256 @ 0x100 + 800a3d0: 613b str r3, [r7, #16] PeriphClkInitStruct.Clk48ClockSelection = RCC_CLK48CLKSOURCE_PLLQ; - 800a37e: 2300 movs r3, #0 - 800a380: 667b str r3, [r7, #100] @ 0x64 + 800a3d2: 2300 movs r3, #0 + 800a3d4: 667b str r3, [r7, #100] @ 0x64 if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - 800a382: f107 0310 add.w r3, r7, #16 - 800a386: 4618 mov r0, r3 - 800a388: f7f9 ffb4 bl 80042f4 - 800a38c: 4603 mov r3, r0 - 800a38e: 2b00 cmp r3, #0 - 800a390: d001 beq.n 800a396 + 800a3d6: f107 0310 add.w r3, r7, #16 + 800a3da: 4618 mov r0, r3 + 800a3dc: f7f9 ffb4 bl 8004348 + 800a3e0: 4603 mov r3, r0 + 800a3e2: 2b00 cmp r3, #0 + 800a3e4: d001 beq.n 800a3ea { Error_Handler(); - 800a392: f7f6 fd89 bl 8000ea8 + 800a3e6: f7f6 fd89 bl 8000efc } __HAL_RCC_GPIOA_CLK_ENABLE(); - 800a396: 2300 movs r3, #0 - 800a398: 60fb str r3, [r7, #12] - 800a39a: 4b1e ldr r3, [pc, #120] @ (800a414 ) - 800a39c: 6b1b ldr r3, [r3, #48] @ 0x30 - 800a39e: 4a1d ldr r2, [pc, #116] @ (800a414 ) - 800a3a0: f043 0301 orr.w r3, r3, #1 - 800a3a4: 6313 str r3, [r2, #48] @ 0x30 - 800a3a6: 4b1b ldr r3, [pc, #108] @ (800a414 ) - 800a3a8: 6b1b ldr r3, [r3, #48] @ 0x30 - 800a3aa: f003 0301 and.w r3, r3, #1 - 800a3ae: 60fb str r3, [r7, #12] - 800a3b0: 68fb ldr r3, [r7, #12] + 800a3ea: 2300 movs r3, #0 + 800a3ec: 60fb str r3, [r7, #12] + 800a3ee: 4b1e ldr r3, [pc, #120] @ (800a468 ) + 800a3f0: 6b1b ldr r3, [r3, #48] @ 0x30 + 800a3f2: 4a1d ldr r2, [pc, #116] @ (800a468 ) + 800a3f4: f043 0301 orr.w r3, r3, #1 + 800a3f8: 6313 str r3, [r2, #48] @ 0x30 + 800a3fa: 4b1b ldr r3, [pc, #108] @ (800a468 ) + 800a3fc: 6b1b ldr r3, [r3, #48] @ 0x30 + 800a3fe: f003 0301 and.w r3, r3, #1 + 800a402: 60fb str r3, [r7, #12] + 800a404: 68fb ldr r3, [r7, #12] /**USB_OTG_FS GPIO Configuration PA11 ------> USB_OTG_FS_DM PA12 ------> USB_OTG_FS_DP */ GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_12; - 800a3b2: f44f 53c0 mov.w r3, #6144 @ 0x1800 - 800a3b6: 66fb str r3, [r7, #108] @ 0x6c + 800a406: f44f 53c0 mov.w r3, #6144 @ 0x1800 + 800a40a: 66fb str r3, [r7, #108] @ 0x6c GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800a3b8: 2302 movs r3, #2 - 800a3ba: 673b str r3, [r7, #112] @ 0x70 + 800a40c: 2302 movs r3, #2 + 800a40e: 673b str r3, [r7, #112] @ 0x70 GPIO_InitStruct.Pull = GPIO_NOPULL; - 800a3bc: 2300 movs r3, #0 - 800a3be: 677b str r3, [r7, #116] @ 0x74 + 800a410: 2300 movs r3, #0 + 800a412: 677b str r3, [r7, #116] @ 0x74 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 800a3c0: 2303 movs r3, #3 - 800a3c2: 67bb str r3, [r7, #120] @ 0x78 + 800a414: 2303 movs r3, #3 + 800a416: 67bb str r3, [r7, #120] @ 0x78 GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS; - 800a3c4: 230a movs r3, #10 - 800a3c6: 67fb str r3, [r7, #124] @ 0x7c + 800a418: 230a movs r3, #10 + 800a41a: 67fb str r3, [r7, #124] @ 0x7c HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 800a3c8: f107 036c add.w r3, r7, #108 @ 0x6c - 800a3cc: 4619 mov r1, r3 - 800a3ce: 4812 ldr r0, [pc, #72] @ (800a418 ) - 800a3d0: f7f8 f8e6 bl 80025a0 + 800a41c: f107 036c add.w r3, r7, #108 @ 0x6c + 800a420: 4619 mov r1, r3 + 800a422: 4812 ldr r0, [pc, #72] @ (800a46c ) + 800a424: f7f8 f8e6 bl 80025f4 /* Peripheral clock enable */ __HAL_RCC_USB_OTG_FS_CLK_ENABLE(); - 800a3d4: 4b0f ldr r3, [pc, #60] @ (800a414 ) - 800a3d6: 6b5b ldr r3, [r3, #52] @ 0x34 - 800a3d8: 4a0e ldr r2, [pc, #56] @ (800a414 ) - 800a3da: f043 0380 orr.w r3, r3, #128 @ 0x80 - 800a3de: 6353 str r3, [r2, #52] @ 0x34 - 800a3e0: 2300 movs r3, #0 - 800a3e2: 60bb str r3, [r7, #8] - 800a3e4: 4b0b ldr r3, [pc, #44] @ (800a414 ) - 800a3e6: 6c5b ldr r3, [r3, #68] @ 0x44 - 800a3e8: 4a0a ldr r2, [pc, #40] @ (800a414 ) - 800a3ea: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 800a3ee: 6453 str r3, [r2, #68] @ 0x44 - 800a3f0: 4b08 ldr r3, [pc, #32] @ (800a414 ) - 800a3f2: 6c5b ldr r3, [r3, #68] @ 0x44 - 800a3f4: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 800a3f8: 60bb str r3, [r7, #8] - 800a3fa: 68bb ldr r3, [r7, #8] + 800a428: 4b0f ldr r3, [pc, #60] @ (800a468 ) + 800a42a: 6b5b ldr r3, [r3, #52] @ 0x34 + 800a42c: 4a0e ldr r2, [pc, #56] @ (800a468 ) + 800a42e: f043 0380 orr.w r3, r3, #128 @ 0x80 + 800a432: 6353 str r3, [r2, #52] @ 0x34 + 800a434: 2300 movs r3, #0 + 800a436: 60bb str r3, [r7, #8] + 800a438: 4b0b ldr r3, [pc, #44] @ (800a468 ) + 800a43a: 6c5b ldr r3, [r3, #68] @ 0x44 + 800a43c: 4a0a ldr r2, [pc, #40] @ (800a468 ) + 800a43e: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 800a442: 6453 str r3, [r2, #68] @ 0x44 + 800a444: 4b08 ldr r3, [pc, #32] @ (800a468 ) + 800a446: 6c5b ldr r3, [r3, #68] @ 0x44 + 800a448: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 800a44c: 60bb str r3, [r7, #8] + 800a44e: 68bb ldr r3, [r7, #8] /* Peripheral interrupt init */ HAL_NVIC_SetPriority(OTG_FS_IRQn, 0, 0); - 800a3fc: 2200 movs r2, #0 - 800a3fe: 2100 movs r1, #0 - 800a400: 2043 movs r0, #67 @ 0x43 - 800a402: f7f7 fc94 bl 8001d2e + 800a450: 2200 movs r2, #0 + 800a452: 2100 movs r1, #0 + 800a454: 2043 movs r0, #67 @ 0x43 + 800a456: f7f7 fc94 bl 8001d82 HAL_NVIC_EnableIRQ(OTG_FS_IRQn); - 800a406: 2043 movs r0, #67 @ 0x43 - 800a408: f7f7 fcad bl 8001d66 + 800a45a: 2043 movs r0, #67 @ 0x43 + 800a45c: f7f7 fcad bl 8001dba /* USER CODE BEGIN USB_OTG_FS_MspInit 1 */ /* USER CODE END USB_OTG_FS_MspInit 1 */ } } - 800a40c: bf00 nop - 800a40e: 3780 adds r7, #128 @ 0x80 - 800a410: 46bd mov sp, r7 - 800a412: bd80 pop {r7, pc} - 800a414: 40023800 .word 0x40023800 - 800a418: 40020000 .word 0x40020000 + 800a460: bf00 nop + 800a462: 3780 adds r7, #128 @ 0x80 + 800a464: 46bd mov sp, r7 + 800a466: bd80 pop {r7, pc} + 800a468: 40023800 .word 0x40023800 + 800a46c: 40020000 .word 0x40020000 -0800a41c : +0800a470 : #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) static void PCD_SetupStageCallback(PCD_HandleTypeDef *hpcd) #else void HAL_PCD_SetupStageCallback(PCD_HandleTypeDef *hpcd) #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ { - 800a41c: b580 push {r7, lr} - 800a41e: b082 sub sp, #8 - 800a420: af00 add r7, sp, #0 - 800a422: 6078 str r0, [r7, #4] + 800a470: b580 push {r7, lr} + 800a472: b082 sub sp, #8 + 800a474: af00 add r7, sp, #0 + 800a476: 6078 str r0, [r7, #4] USBD_LL_SetupStage((USBD_HandleTypeDef*)hpcd->pData, (uint8_t *)hpcd->Setup); - 800a424: 687b ldr r3, [r7, #4] - 800a426: f8d3 24e0 ldr.w r2, [r3, #1248] @ 0x4e0 - 800a42a: 687b ldr r3, [r7, #4] - 800a42c: f203 439c addw r3, r3, #1180 @ 0x49c - 800a430: 4619 mov r1, r3 - 800a432: 4610 mov r0, r2 - 800a434: f7fe fbcb bl 8008bce + 800a478: 687b ldr r3, [r7, #4] + 800a47a: f8d3 24e0 ldr.w r2, [r3, #1248] @ 0x4e0 + 800a47e: 687b ldr r3, [r7, #4] + 800a480: f203 439c addw r3, r3, #1180 @ 0x49c + 800a484: 4619 mov r1, r3 + 800a486: 4610 mov r0, r2 + 800a488: f7fe fbcb bl 8008c22 } - 800a438: bf00 nop - 800a43a: 3708 adds r7, #8 - 800a43c: 46bd mov sp, r7 - 800a43e: bd80 pop {r7, pc} + 800a48c: bf00 nop + 800a48e: 3708 adds r7, #8 + 800a490: 46bd mov sp, r7 + 800a492: bd80 pop {r7, pc} -0800a440 : +0800a494 : #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) static void PCD_DataOutStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) #else void HAL_PCD_DataOutStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ { - 800a440: b580 push {r7, lr} - 800a442: b082 sub sp, #8 - 800a444: af00 add r7, sp, #0 - 800a446: 6078 str r0, [r7, #4] - 800a448: 460b mov r3, r1 - 800a44a: 70fb strb r3, [r7, #3] + 800a494: b580 push {r7, lr} + 800a496: b082 sub sp, #8 + 800a498: af00 add r7, sp, #0 + 800a49a: 6078 str r0, [r7, #4] + 800a49c: 460b mov r3, r1 + 800a49e: 70fb strb r3, [r7, #3] USBD_LL_DataOutStage((USBD_HandleTypeDef*)hpcd->pData, epnum, hpcd->OUT_ep[epnum].xfer_buff); - 800a44c: 687b ldr r3, [r7, #4] - 800a44e: f8d3 04e0 ldr.w r0, [r3, #1248] @ 0x4e0 - 800a452: 78fa ldrb r2, [r7, #3] - 800a454: 6879 ldr r1, [r7, #4] - 800a456: 4613 mov r3, r2 - 800a458: 00db lsls r3, r3, #3 - 800a45a: 4413 add r3, r2 - 800a45c: 009b lsls r3, r3, #2 - 800a45e: 440b add r3, r1 - 800a460: f503 7318 add.w r3, r3, #608 @ 0x260 - 800a464: 681a ldr r2, [r3, #0] - 800a466: 78fb ldrb r3, [r7, #3] - 800a468: 4619 mov r1, r3 - 800a46a: f7fe fc05 bl 8008c78 + 800a4a0: 687b ldr r3, [r7, #4] + 800a4a2: f8d3 04e0 ldr.w r0, [r3, #1248] @ 0x4e0 + 800a4a6: 78fa ldrb r2, [r7, #3] + 800a4a8: 6879 ldr r1, [r7, #4] + 800a4aa: 4613 mov r3, r2 + 800a4ac: 00db lsls r3, r3, #3 + 800a4ae: 4413 add r3, r2 + 800a4b0: 009b lsls r3, r3, #2 + 800a4b2: 440b add r3, r1 + 800a4b4: f503 7318 add.w r3, r3, #608 @ 0x260 + 800a4b8: 681a ldr r2, [r3, #0] + 800a4ba: 78fb ldrb r3, [r7, #3] + 800a4bc: 4619 mov r1, r3 + 800a4be: f7fe fc05 bl 8008ccc } - 800a46e: bf00 nop - 800a470: 3708 adds r7, #8 - 800a472: 46bd mov sp, r7 - 800a474: bd80 pop {r7, pc} + 800a4c2: bf00 nop + 800a4c4: 3708 adds r7, #8 + 800a4c6: 46bd mov sp, r7 + 800a4c8: bd80 pop {r7, pc} -0800a476 : +0800a4ca : #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) static void PCD_DataInStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) #else void HAL_PCD_DataInStageCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ { - 800a476: b580 push {r7, lr} - 800a478: b082 sub sp, #8 - 800a47a: af00 add r7, sp, #0 - 800a47c: 6078 str r0, [r7, #4] - 800a47e: 460b mov r3, r1 - 800a480: 70fb strb r3, [r7, #3] + 800a4ca: b580 push {r7, lr} + 800a4cc: b082 sub sp, #8 + 800a4ce: af00 add r7, sp, #0 + 800a4d0: 6078 str r0, [r7, #4] + 800a4d2: 460b mov r3, r1 + 800a4d4: 70fb strb r3, [r7, #3] USBD_LL_DataInStage((USBD_HandleTypeDef*)hpcd->pData, epnum, hpcd->IN_ep[epnum].xfer_buff); - 800a482: 687b ldr r3, [r7, #4] - 800a484: f8d3 04e0 ldr.w r0, [r3, #1248] @ 0x4e0 - 800a488: 78fa ldrb r2, [r7, #3] - 800a48a: 6879 ldr r1, [r7, #4] - 800a48c: 4613 mov r3, r2 - 800a48e: 00db lsls r3, r3, #3 - 800a490: 4413 add r3, r2 - 800a492: 009b lsls r3, r3, #2 - 800a494: 440b add r3, r1 - 800a496: 3320 adds r3, #32 - 800a498: 681a ldr r2, [r3, #0] - 800a49a: 78fb ldrb r3, [r7, #3] - 800a49c: 4619 mov r1, r3 - 800a49e: f7fe fca7 bl 8008df0 + 800a4d6: 687b ldr r3, [r7, #4] + 800a4d8: f8d3 04e0 ldr.w r0, [r3, #1248] @ 0x4e0 + 800a4dc: 78fa ldrb r2, [r7, #3] + 800a4de: 6879 ldr r1, [r7, #4] + 800a4e0: 4613 mov r3, r2 + 800a4e2: 00db lsls r3, r3, #3 + 800a4e4: 4413 add r3, r2 + 800a4e6: 009b lsls r3, r3, #2 + 800a4e8: 440b add r3, r1 + 800a4ea: 3320 adds r3, #32 + 800a4ec: 681a ldr r2, [r3, #0] + 800a4ee: 78fb ldrb r3, [r7, #3] + 800a4f0: 4619 mov r1, r3 + 800a4f2: f7fe fca7 bl 8008e44 } - 800a4a2: bf00 nop - 800a4a4: 3708 adds r7, #8 - 800a4a6: 46bd mov sp, r7 - 800a4a8: bd80 pop {r7, pc} + 800a4f6: bf00 nop + 800a4f8: 3708 adds r7, #8 + 800a4fa: 46bd mov sp, r7 + 800a4fc: bd80 pop {r7, pc} -0800a4aa : +0800a4fe : #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) static void PCD_SOFCallback(PCD_HandleTypeDef *hpcd) #else void HAL_PCD_SOFCallback(PCD_HandleTypeDef *hpcd) #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ { - 800a4aa: b580 push {r7, lr} - 800a4ac: b082 sub sp, #8 - 800a4ae: af00 add r7, sp, #0 - 800a4b0: 6078 str r0, [r7, #4] + 800a4fe: b580 push {r7, lr} + 800a500: b082 sub sp, #8 + 800a502: af00 add r7, sp, #0 + 800a504: 6078 str r0, [r7, #4] USBD_LL_SOF((USBD_HandleTypeDef*)hpcd->pData); - 800a4b2: 687b ldr r3, [r7, #4] - 800a4b4: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800a4b8: 4618 mov r0, r3 - 800a4ba: f7fe fdeb bl 8009094 + 800a506: 687b ldr r3, [r7, #4] + 800a508: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800a50c: 4618 mov r0, r3 + 800a50e: f7fe fdeb bl 80090e8 } - 800a4be: bf00 nop - 800a4c0: 3708 adds r7, #8 - 800a4c2: 46bd mov sp, r7 - 800a4c4: bd80 pop {r7, pc} + 800a512: bf00 nop + 800a514: 3708 adds r7, #8 + 800a516: 46bd mov sp, r7 + 800a518: bd80 pop {r7, pc} -0800a4c6 : +0800a51a : #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) static void PCD_ResetCallback(PCD_HandleTypeDef *hpcd) #else void HAL_PCD_ResetCallback(PCD_HandleTypeDef *hpcd) #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ { - 800a4c6: b580 push {r7, lr} - 800a4c8: b084 sub sp, #16 - 800a4ca: af00 add r7, sp, #0 - 800a4cc: 6078 str r0, [r7, #4] + 800a51a: b580 push {r7, lr} + 800a51c: b084 sub sp, #16 + 800a51e: af00 add r7, sp, #0 + 800a520: 6078 str r0, [r7, #4] USBD_SpeedTypeDef speed = USBD_SPEED_FULL; - 800a4ce: 2301 movs r3, #1 - 800a4d0: 73fb strb r3, [r7, #15] + 800a522: 2301 movs r3, #1 + 800a524: 73fb strb r3, [r7, #15] if ( hpcd->Init.speed == PCD_SPEED_HIGH) - 800a4d2: 687b ldr r3, [r7, #4] - 800a4d4: 79db ldrb r3, [r3, #7] - 800a4d6: 2b00 cmp r3, #0 - 800a4d8: d102 bne.n 800a4e0 + 800a526: 687b ldr r3, [r7, #4] + 800a528: 79db ldrb r3, [r3, #7] + 800a52a: 2b00 cmp r3, #0 + 800a52c: d102 bne.n 800a534 { speed = USBD_SPEED_HIGH; - 800a4da: 2300 movs r3, #0 - 800a4dc: 73fb strb r3, [r7, #15] - 800a4de: e008 b.n 800a4f2 + 800a52e: 2300 movs r3, #0 + 800a530: 73fb strb r3, [r7, #15] + 800a532: e008 b.n 800a546 } else if ( hpcd->Init.speed == PCD_SPEED_FULL) - 800a4e0: 687b ldr r3, [r7, #4] - 800a4e2: 79db ldrb r3, [r3, #7] - 800a4e4: 2b02 cmp r3, #2 - 800a4e6: d102 bne.n 800a4ee + 800a534: 687b ldr r3, [r7, #4] + 800a536: 79db ldrb r3, [r3, #7] + 800a538: 2b02 cmp r3, #2 + 800a53a: d102 bne.n 800a542 { speed = USBD_SPEED_FULL; - 800a4e8: 2301 movs r3, #1 - 800a4ea: 73fb strb r3, [r7, #15] - 800a4ec: e001 b.n 800a4f2 + 800a53c: 2301 movs r3, #1 + 800a53e: 73fb strb r3, [r7, #15] + 800a540: e001 b.n 800a546 } else { Error_Handler(); - 800a4ee: f7f6 fcdb bl 8000ea8 + 800a542: f7f6 fcdb bl 8000efc } /* Set Speed. */ USBD_LL_SetSpeed((USBD_HandleTypeDef*)hpcd->pData, speed); - 800a4f2: 687b ldr r3, [r7, #4] - 800a4f4: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800a4f8: 7bfa ldrb r2, [r7, #15] - 800a4fa: 4611 mov r1, r2 - 800a4fc: 4618 mov r0, r3 - 800a4fe: f7fe fd85 bl 800900c + 800a546: 687b ldr r3, [r7, #4] + 800a548: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800a54c: 7bfa ldrb r2, [r7, #15] + 800a54e: 4611 mov r1, r2 + 800a550: 4618 mov r0, r3 + 800a552: f7fe fd85 bl 8009060 /* Reset Device. */ USBD_LL_Reset((USBD_HandleTypeDef*)hpcd->pData); - 800a502: 687b ldr r3, [r7, #4] - 800a504: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800a508: 4618 mov r0, r3 - 800a50a: f7fe fd2c bl 8008f66 + 800a556: 687b ldr r3, [r7, #4] + 800a558: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800a55c: 4618 mov r0, r3 + 800a55e: f7fe fd2c bl 8008fba } - 800a50e: bf00 nop - 800a510: 3710 adds r7, #16 - 800a512: 46bd mov sp, r7 - 800a514: bd80 pop {r7, pc} + 800a562: bf00 nop + 800a564: 3710 adds r7, #16 + 800a566: 46bd mov sp, r7 + 800a568: bd80 pop {r7, pc} ... -0800a518 : +0800a56c : #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) static void PCD_SuspendCallback(PCD_HandleTypeDef *hpcd) #else void HAL_PCD_SuspendCallback(PCD_HandleTypeDef *hpcd) #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ { - 800a518: b580 push {r7, lr} - 800a51a: b082 sub sp, #8 - 800a51c: af00 add r7, sp, #0 - 800a51e: 6078 str r0, [r7, #4] + 800a56c: b580 push {r7, lr} + 800a56e: b082 sub sp, #8 + 800a570: af00 add r7, sp, #0 + 800a572: 6078 str r0, [r7, #4] /* Inform USB library that core enters in suspend Mode. */ USBD_LL_Suspend((USBD_HandleTypeDef*)hpcd->pData); - 800a520: 687b ldr r3, [r7, #4] - 800a522: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800a526: 4618 mov r0, r3 - 800a528: f7fe fd80 bl 800902c + 800a574: 687b ldr r3, [r7, #4] + 800a576: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800a57a: 4618 mov r0, r3 + 800a57c: f7fe fd80 bl 8009080 __HAL_PCD_GATE_PHYCLOCK(hpcd); - 800a52c: 687b ldr r3, [r7, #4] - 800a52e: 681b ldr r3, [r3, #0] - 800a530: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 800a534: 681b ldr r3, [r3, #0] - 800a536: 687a ldr r2, [r7, #4] - 800a538: 6812 ldr r2, [r2, #0] - 800a53a: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 800a53e: f043 0301 orr.w r3, r3, #1 - 800a542: 6013 str r3, [r2, #0] + 800a580: 687b ldr r3, [r7, #4] + 800a582: 681b ldr r3, [r3, #0] + 800a584: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 800a588: 681b ldr r3, [r3, #0] + 800a58a: 687a ldr r2, [r7, #4] + 800a58c: 6812 ldr r2, [r2, #0] + 800a58e: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 800a592: f043 0301 orr.w r3, r3, #1 + 800a596: 6013 str r3, [r2, #0] /* Enter in STOP mode. */ /* USER CODE BEGIN 2 */ if (hpcd->Init.low_power_enable) - 800a544: 687b ldr r3, [r7, #4] - 800a546: 7adb ldrb r3, [r3, #11] - 800a548: 2b00 cmp r3, #0 - 800a54a: d005 beq.n 800a558 + 800a598: 687b ldr r3, [r7, #4] + 800a59a: 7adb ldrb r3, [r3, #11] + 800a59c: 2b00 cmp r3, #0 + 800a59e: d005 beq.n 800a5ac { /* Set SLEEPDEEP bit and SleepOnExit of Cortex System Control Register. */ SCB->SCR |= (uint32_t)((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); - 800a54c: 4b04 ldr r3, [pc, #16] @ (800a560 ) - 800a54e: 691b ldr r3, [r3, #16] - 800a550: 4a03 ldr r2, [pc, #12] @ (800a560 ) - 800a552: f043 0306 orr.w r3, r3, #6 - 800a556: 6113 str r3, [r2, #16] + 800a5a0: 4b04 ldr r3, [pc, #16] @ (800a5b4 ) + 800a5a2: 691b ldr r3, [r3, #16] + 800a5a4: 4a03 ldr r2, [pc, #12] @ (800a5b4 ) + 800a5a6: f043 0306 orr.w r3, r3, #6 + 800a5aa: 6113 str r3, [r2, #16] } /* USER CODE END 2 */ } - 800a558: bf00 nop - 800a55a: 3708 adds r7, #8 - 800a55c: 46bd mov sp, r7 - 800a55e: bd80 pop {r7, pc} - 800a560: e000ed00 .word 0xe000ed00 + 800a5ac: bf00 nop + 800a5ae: 3708 adds r7, #8 + 800a5b0: 46bd mov sp, r7 + 800a5b2: bd80 pop {r7, pc} + 800a5b4: e000ed00 .word 0xe000ed00 -0800a564 : +0800a5b8 : #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) static void PCD_ResumeCallback(PCD_HandleTypeDef *hpcd) #else void HAL_PCD_ResumeCallback(PCD_HandleTypeDef *hpcd) #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ { - 800a564: b580 push {r7, lr} - 800a566: b082 sub sp, #8 - 800a568: af00 add r7, sp, #0 - 800a56a: 6078 str r0, [r7, #4] + 800a5b8: b580 push {r7, lr} + 800a5ba: b082 sub sp, #8 + 800a5bc: af00 add r7, sp, #0 + 800a5be: 6078 str r0, [r7, #4] /* USER CODE BEGIN 3 */ /* USER CODE END 3 */ USBD_LL_Resume((USBD_HandleTypeDef*)hpcd->pData); - 800a56c: 687b ldr r3, [r7, #4] - 800a56e: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800a572: 4618 mov r0, r3 - 800a574: f7fe fd76 bl 8009064 + 800a5c0: 687b ldr r3, [r7, #4] + 800a5c2: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800a5c6: 4618 mov r0, r3 + 800a5c8: f7fe fd76 bl 80090b8 } - 800a578: bf00 nop - 800a57a: 3708 adds r7, #8 - 800a57c: 46bd mov sp, r7 - 800a57e: bd80 pop {r7, pc} + 800a5cc: bf00 nop + 800a5ce: 3708 adds r7, #8 + 800a5d0: 46bd mov sp, r7 + 800a5d2: bd80 pop {r7, pc} -0800a580 : +0800a5d4 : #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) static void PCD_ISOOUTIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) #else void HAL_PCD_ISOOUTIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ { - 800a580: b580 push {r7, lr} - 800a582: b082 sub sp, #8 - 800a584: af00 add r7, sp, #0 - 800a586: 6078 str r0, [r7, #4] - 800a588: 460b mov r3, r1 - 800a58a: 70fb strb r3, [r7, #3] + 800a5d4: b580 push {r7, lr} + 800a5d6: b082 sub sp, #8 + 800a5d8: af00 add r7, sp, #0 + 800a5da: 6078 str r0, [r7, #4] + 800a5dc: 460b mov r3, r1 + 800a5de: 70fb strb r3, [r7, #3] USBD_LL_IsoOUTIncomplete((USBD_HandleTypeDef*)hpcd->pData, epnum); - 800a58c: 687b ldr r3, [r7, #4] - 800a58e: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800a592: 78fa ldrb r2, [r7, #3] - 800a594: 4611 mov r1, r2 - 800a596: 4618 mov r0, r3 - 800a598: f7fe fdce bl 8009138 + 800a5e0: 687b ldr r3, [r7, #4] + 800a5e2: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800a5e6: 78fa ldrb r2, [r7, #3] + 800a5e8: 4611 mov r1, r2 + 800a5ea: 4618 mov r0, r3 + 800a5ec: f7fe fdce bl 800918c } - 800a59c: bf00 nop - 800a59e: 3708 adds r7, #8 - 800a5a0: 46bd mov sp, r7 - 800a5a2: bd80 pop {r7, pc} + 800a5f0: bf00 nop + 800a5f2: 3708 adds r7, #8 + 800a5f4: 46bd mov sp, r7 + 800a5f6: bd80 pop {r7, pc} -0800a5a4 : +0800a5f8 : #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) static void PCD_ISOINIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) #else void HAL_PCD_ISOINIncompleteCallback(PCD_HandleTypeDef *hpcd, uint8_t epnum) #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ { - 800a5a4: b580 push {r7, lr} - 800a5a6: b082 sub sp, #8 - 800a5a8: af00 add r7, sp, #0 - 800a5aa: 6078 str r0, [r7, #4] - 800a5ac: 460b mov r3, r1 - 800a5ae: 70fb strb r3, [r7, #3] + 800a5f8: b580 push {r7, lr} + 800a5fa: b082 sub sp, #8 + 800a5fc: af00 add r7, sp, #0 + 800a5fe: 6078 str r0, [r7, #4] + 800a600: 460b mov r3, r1 + 800a602: 70fb strb r3, [r7, #3] USBD_LL_IsoINIncomplete((USBD_HandleTypeDef*)hpcd->pData, epnum); - 800a5b0: 687b ldr r3, [r7, #4] - 800a5b2: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800a5b6: 78fa ldrb r2, [r7, #3] - 800a5b8: 4611 mov r1, r2 - 800a5ba: 4618 mov r0, r3 - 800a5bc: f7fe fd8a bl 80090d4 + 800a604: 687b ldr r3, [r7, #4] + 800a606: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800a60a: 78fa ldrb r2, [r7, #3] + 800a60c: 4611 mov r1, r2 + 800a60e: 4618 mov r0, r3 + 800a610: f7fe fd8a bl 8009128 } - 800a5c0: bf00 nop - 800a5c2: 3708 adds r7, #8 - 800a5c4: 46bd mov sp, r7 - 800a5c6: bd80 pop {r7, pc} + 800a614: bf00 nop + 800a616: 3708 adds r7, #8 + 800a618: 46bd mov sp, r7 + 800a61a: bd80 pop {r7, pc} -0800a5c8 : +0800a61c : #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) static void PCD_ConnectCallback(PCD_HandleTypeDef *hpcd) #else void HAL_PCD_ConnectCallback(PCD_HandleTypeDef *hpcd) #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ { - 800a5c8: b580 push {r7, lr} - 800a5ca: b082 sub sp, #8 - 800a5cc: af00 add r7, sp, #0 - 800a5ce: 6078 str r0, [r7, #4] + 800a61c: b580 push {r7, lr} + 800a61e: b082 sub sp, #8 + 800a620: af00 add r7, sp, #0 + 800a622: 6078 str r0, [r7, #4] USBD_LL_DevConnected((USBD_HandleTypeDef*)hpcd->pData); - 800a5d0: 687b ldr r3, [r7, #4] - 800a5d2: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800a5d6: 4618 mov r0, r3 - 800a5d8: f7fe fde0 bl 800919c + 800a624: 687b ldr r3, [r7, #4] + 800a626: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800a62a: 4618 mov r0, r3 + 800a62c: f7fe fde0 bl 80091f0 } - 800a5dc: bf00 nop - 800a5de: 3708 adds r7, #8 - 800a5e0: 46bd mov sp, r7 - 800a5e2: bd80 pop {r7, pc} + 800a630: bf00 nop + 800a632: 3708 adds r7, #8 + 800a634: 46bd mov sp, r7 + 800a636: bd80 pop {r7, pc} -0800a5e4 : +0800a638 : #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) static void PCD_DisconnectCallback(PCD_HandleTypeDef *hpcd) #else void HAL_PCD_DisconnectCallback(PCD_HandleTypeDef *hpcd) #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ { - 800a5e4: b580 push {r7, lr} - 800a5e6: b082 sub sp, #8 - 800a5e8: af00 add r7, sp, #0 - 800a5ea: 6078 str r0, [r7, #4] + 800a638: b580 push {r7, lr} + 800a63a: b082 sub sp, #8 + 800a63c: af00 add r7, sp, #0 + 800a63e: 6078 str r0, [r7, #4] USBD_LL_DevDisconnected((USBD_HandleTypeDef*)hpcd->pData); - 800a5ec: 687b ldr r3, [r7, #4] - 800a5ee: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800a5f2: 4618 mov r0, r3 - 800a5f4: f7fe fddd bl 80091b2 + 800a640: 687b ldr r3, [r7, #4] + 800a642: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800a646: 4618 mov r0, r3 + 800a648: f7fe fddd bl 8009206 } - 800a5f8: bf00 nop - 800a5fa: 3708 adds r7, #8 - 800a5fc: 46bd mov sp, r7 - 800a5fe: bd80 pop {r7, pc} + 800a64c: bf00 nop + 800a64e: 3708 adds r7, #8 + 800a650: 46bd mov sp, r7 + 800a652: bd80 pop {r7, pc} -0800a600 : +0800a654 : * @brief Initializes the low level portion of the device driver. * @param pdev: Device handle * @retval USBD status */ USBD_StatusTypeDef USBD_LL_Init(USBD_HandleTypeDef *pdev) { - 800a600: b580 push {r7, lr} - 800a602: b082 sub sp, #8 - 800a604: af00 add r7, sp, #0 - 800a606: 6078 str r0, [r7, #4] + 800a654: b580 push {r7, lr} + 800a656: b082 sub sp, #8 + 800a658: af00 add r7, sp, #0 + 800a65a: 6078 str r0, [r7, #4] /* Init USB Ip. */ if (pdev->id == DEVICE_FS) { - 800a608: 687b ldr r3, [r7, #4] - 800a60a: 781b ldrb r3, [r3, #0] - 800a60c: 2b00 cmp r3, #0 - 800a60e: d13c bne.n 800a68a + 800a65c: 687b ldr r3, [r7, #4] + 800a65e: 781b ldrb r3, [r3, #0] + 800a660: 2b00 cmp r3, #0 + 800a662: d13c bne.n 800a6de /* Link the driver to the stack. */ hpcd_USB_OTG_FS.pData = pdev; - 800a610: 4a20 ldr r2, [pc, #128] @ (800a694 ) - 800a612: 687b ldr r3, [r7, #4] - 800a614: f8c2 34e0 str.w r3, [r2, #1248] @ 0x4e0 + 800a664: 4a20 ldr r2, [pc, #128] @ (800a6e8 ) + 800a666: 687b ldr r3, [r7, #4] + 800a668: f8c2 34e0 str.w r3, [r2, #1248] @ 0x4e0 pdev->pData = &hpcd_USB_OTG_FS; - 800a618: 687b ldr r3, [r7, #4] - 800a61a: 4a1e ldr r2, [pc, #120] @ (800a694 ) - 800a61c: f8c3 22c8 str.w r2, [r3, #712] @ 0x2c8 + 800a66c: 687b ldr r3, [r7, #4] + 800a66e: 4a1e ldr r2, [pc, #120] @ (800a6e8 ) + 800a670: f8c3 22c8 str.w r2, [r3, #712] @ 0x2c8 hpcd_USB_OTG_FS.Instance = USB_OTG_FS; - 800a620: 4b1c ldr r3, [pc, #112] @ (800a694 ) - 800a622: f04f 42a0 mov.w r2, #1342177280 @ 0x50000000 - 800a626: 601a str r2, [r3, #0] + 800a674: 4b1c ldr r3, [pc, #112] @ (800a6e8 ) + 800a676: f04f 42a0 mov.w r2, #1342177280 @ 0x50000000 + 800a67a: 601a str r2, [r3, #0] hpcd_USB_OTG_FS.Init.dev_endpoints = 6; - 800a628: 4b1a ldr r3, [pc, #104] @ (800a694 ) - 800a62a: 2206 movs r2, #6 - 800a62c: 711a strb r2, [r3, #4] + 800a67c: 4b1a ldr r3, [pc, #104] @ (800a6e8 ) + 800a67e: 2206 movs r2, #6 + 800a680: 711a strb r2, [r3, #4] hpcd_USB_OTG_FS.Init.speed = PCD_SPEED_FULL; - 800a62e: 4b19 ldr r3, [pc, #100] @ (800a694 ) - 800a630: 2202 movs r2, #2 - 800a632: 71da strb r2, [r3, #7] + 800a682: 4b19 ldr r3, [pc, #100] @ (800a6e8 ) + 800a684: 2202 movs r2, #2 + 800a686: 71da strb r2, [r3, #7] hpcd_USB_OTG_FS.Init.dma_enable = DISABLE; - 800a634: 4b17 ldr r3, [pc, #92] @ (800a694 ) - 800a636: 2200 movs r2, #0 - 800a638: 719a strb r2, [r3, #6] + 800a688: 4b17 ldr r3, [pc, #92] @ (800a6e8 ) + 800a68a: 2200 movs r2, #0 + 800a68c: 719a strb r2, [r3, #6] hpcd_USB_OTG_FS.Init.phy_itface = PCD_PHY_EMBEDDED; - 800a63a: 4b16 ldr r3, [pc, #88] @ (800a694 ) - 800a63c: 2202 movs r2, #2 - 800a63e: 725a strb r2, [r3, #9] + 800a68e: 4b16 ldr r3, [pc, #88] @ (800a6e8 ) + 800a690: 2202 movs r2, #2 + 800a692: 725a strb r2, [r3, #9] hpcd_USB_OTG_FS.Init.Sof_enable = DISABLE; - 800a640: 4b14 ldr r3, [pc, #80] @ (800a694 ) - 800a642: 2200 movs r2, #0 - 800a644: 729a strb r2, [r3, #10] + 800a694: 4b14 ldr r3, [pc, #80] @ (800a6e8 ) + 800a696: 2200 movs r2, #0 + 800a698: 729a strb r2, [r3, #10] hpcd_USB_OTG_FS.Init.low_power_enable = DISABLE; - 800a646: 4b13 ldr r3, [pc, #76] @ (800a694 ) - 800a648: 2200 movs r2, #0 - 800a64a: 72da strb r2, [r3, #11] + 800a69a: 4b13 ldr r3, [pc, #76] @ (800a6e8 ) + 800a69c: 2200 movs r2, #0 + 800a69e: 72da strb r2, [r3, #11] hpcd_USB_OTG_FS.Init.lpm_enable = DISABLE; - 800a64c: 4b11 ldr r3, [pc, #68] @ (800a694 ) - 800a64e: 2200 movs r2, #0 - 800a650: 731a strb r2, [r3, #12] + 800a6a0: 4b11 ldr r3, [pc, #68] @ (800a6e8 ) + 800a6a2: 2200 movs r2, #0 + 800a6a4: 731a strb r2, [r3, #12] hpcd_USB_OTG_FS.Init.vbus_sensing_enable = DISABLE; - 800a652: 4b10 ldr r3, [pc, #64] @ (800a694 ) - 800a654: 2200 movs r2, #0 - 800a656: 739a strb r2, [r3, #14] + 800a6a6: 4b10 ldr r3, [pc, #64] @ (800a6e8 ) + 800a6a8: 2200 movs r2, #0 + 800a6aa: 739a strb r2, [r3, #14] hpcd_USB_OTG_FS.Init.use_dedicated_ep1 = DISABLE; - 800a658: 4b0e ldr r3, [pc, #56] @ (800a694 ) - 800a65a: 2200 movs r2, #0 - 800a65c: 73da strb r2, [r3, #15] + 800a6ac: 4b0e ldr r3, [pc, #56] @ (800a6e8 ) + 800a6ae: 2200 movs r2, #0 + 800a6b0: 73da strb r2, [r3, #15] if (HAL_PCD_Init(&hpcd_USB_OTG_FS) != HAL_OK) - 800a65e: 480d ldr r0, [pc, #52] @ (800a694 ) - 800a660: f7f8 faa8 bl 8002bb4 - 800a664: 4603 mov r3, r0 - 800a666: 2b00 cmp r3, #0 - 800a668: d001 beq.n 800a66e + 800a6b2: 480d ldr r0, [pc, #52] @ (800a6e8 ) + 800a6b4: f7f8 faa8 bl 8002c08 + 800a6b8: 4603 mov r3, r0 + 800a6ba: 2b00 cmp r3, #0 + 800a6bc: d001 beq.n 800a6c2 { Error_Handler( ); - 800a66a: f7f6 fc1d bl 8000ea8 + 800a6be: f7f6 fc1d bl 8000efc HAL_PCD_RegisterDataOutStageCallback(&hpcd_USB_OTG_FS, PCD_DataOutStageCallback); HAL_PCD_RegisterDataInStageCallback(&hpcd_USB_OTG_FS, PCD_DataInStageCallback); HAL_PCD_RegisterIsoOutIncpltCallback(&hpcd_USB_OTG_FS, PCD_ISOOUTIncompleteCallback); HAL_PCD_RegisterIsoInIncpltCallback(&hpcd_USB_OTG_FS, PCD_ISOINIncompleteCallback); #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ HAL_PCDEx_SetRxFiFo(&hpcd_USB_OTG_FS, 0x80); - 800a66e: 2180 movs r1, #128 @ 0x80 - 800a670: 4808 ldr r0, [pc, #32] @ (800a694 ) - 800a672: f7f9 fcf0 bl 8004056 + 800a6c2: 2180 movs r1, #128 @ 0x80 + 800a6c4: 4808 ldr r0, [pc, #32] @ (800a6e8 ) + 800a6c6: f7f9 fcf0 bl 80040aa HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 0, 0x40); - 800a676: 2240 movs r2, #64 @ 0x40 - 800a678: 2100 movs r1, #0 - 800a67a: 4806 ldr r0, [pc, #24] @ (800a694 ) - 800a67c: f7f9 fca4 bl 8003fc8 + 800a6ca: 2240 movs r2, #64 @ 0x40 + 800a6cc: 2100 movs r1, #0 + 800a6ce: 4806 ldr r0, [pc, #24] @ (800a6e8 ) + 800a6d0: f7f9 fca4 bl 800401c HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 1, 0x80); - 800a680: 2280 movs r2, #128 @ 0x80 - 800a682: 2101 movs r1, #1 - 800a684: 4803 ldr r0, [pc, #12] @ (800a694 ) - 800a686: f7f9 fc9f bl 8003fc8 + 800a6d4: 2280 movs r2, #128 @ 0x80 + 800a6d6: 2101 movs r1, #1 + 800a6d8: 4803 ldr r0, [pc, #12] @ (800a6e8 ) + 800a6da: f7f9 fc9f bl 800401c } return USBD_OK; - 800a68a: 2300 movs r3, #0 + 800a6de: 2300 movs r3, #0 } - 800a68c: 4618 mov r0, r3 - 800a68e: 3708 adds r7, #8 - 800a690: 46bd mov sp, r7 - 800a692: bd80 pop {r7, pc} - 800a694: 20000c10 .word 0x20000c10 + 800a6e0: 4618 mov r0, r3 + 800a6e2: 3708 adds r7, #8 + 800a6e4: 46bd mov sp, r7 + 800a6e6: bd80 pop {r7, pc} + 800a6e8: 20000c14 .word 0x20000c14 -0800a698 : +0800a6ec : * @brief Starts the low level portion of the device driver. * @param pdev: Device handle * @retval USBD status */ USBD_StatusTypeDef USBD_LL_Start(USBD_HandleTypeDef *pdev) { - 800a698: b580 push {r7, lr} - 800a69a: b084 sub sp, #16 - 800a69c: af00 add r7, sp, #0 - 800a69e: 6078 str r0, [r7, #4] + 800a6ec: b580 push {r7, lr} + 800a6ee: b084 sub sp, #16 + 800a6f0: af00 add r7, sp, #0 + 800a6f2: 6078 str r0, [r7, #4] HAL_StatusTypeDef hal_status = HAL_OK; - 800a6a0: 2300 movs r3, #0 - 800a6a2: 73fb strb r3, [r7, #15] + 800a6f4: 2300 movs r3, #0 + 800a6f6: 73fb strb r3, [r7, #15] USBD_StatusTypeDef usb_status = USBD_OK; - 800a6a4: 2300 movs r3, #0 - 800a6a6: 73bb strb r3, [r7, #14] + 800a6f8: 2300 movs r3, #0 + 800a6fa: 73bb strb r3, [r7, #14] hal_status = HAL_PCD_Start(pdev->pData); - 800a6a8: 687b ldr r3, [r7, #4] - 800a6aa: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800a6ae: 4618 mov r0, r3 - 800a6b0: f7f8 fb96 bl 8002de0 - 800a6b4: 4603 mov r3, r0 - 800a6b6: 73fb strb r3, [r7, #15] + 800a6fc: 687b ldr r3, [r7, #4] + 800a6fe: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800a702: 4618 mov r0, r3 + 800a704: f7f8 fb96 bl 8002e34 + 800a708: 4603 mov r3, r0 + 800a70a: 73fb strb r3, [r7, #15] usb_status = USBD_Get_USB_Status(hal_status); - 800a6b8: 7bfb ldrb r3, [r7, #15] - 800a6ba: 4618 mov r0, r3 - 800a6bc: f000 f97e bl 800a9bc - 800a6c0: 4603 mov r3, r0 - 800a6c2: 73bb strb r3, [r7, #14] + 800a70c: 7bfb ldrb r3, [r7, #15] + 800a70e: 4618 mov r0, r3 + 800a710: f000 f97e bl 800aa10 + 800a714: 4603 mov r3, r0 + 800a716: 73bb strb r3, [r7, #14] return usb_status; - 800a6c4: 7bbb ldrb r3, [r7, #14] + 800a718: 7bbb ldrb r3, [r7, #14] } - 800a6c6: 4618 mov r0, r3 - 800a6c8: 3710 adds r7, #16 - 800a6ca: 46bd mov sp, r7 - 800a6cc: bd80 pop {r7, pc} + 800a71a: 4618 mov r0, r3 + 800a71c: 3710 adds r7, #16 + 800a71e: 46bd mov sp, r7 + 800a720: bd80 pop {r7, pc} -0800a6ce : +0800a722 : * @param ep_type: Endpoint type * @param ep_mps: Endpoint max packet size * @retval USBD status */ USBD_StatusTypeDef USBD_LL_OpenEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t ep_type, uint16_t ep_mps) { - 800a6ce: b580 push {r7, lr} - 800a6d0: b084 sub sp, #16 - 800a6d2: af00 add r7, sp, #0 - 800a6d4: 6078 str r0, [r7, #4] - 800a6d6: 4608 mov r0, r1 - 800a6d8: 4611 mov r1, r2 - 800a6da: 461a mov r2, r3 - 800a6dc: 4603 mov r3, r0 - 800a6de: 70fb strb r3, [r7, #3] - 800a6e0: 460b mov r3, r1 - 800a6e2: 70bb strb r3, [r7, #2] - 800a6e4: 4613 mov r3, r2 - 800a6e6: 803b strh r3, [r7, #0] + 800a722: b580 push {r7, lr} + 800a724: b084 sub sp, #16 + 800a726: af00 add r7, sp, #0 + 800a728: 6078 str r0, [r7, #4] + 800a72a: 4608 mov r0, r1 + 800a72c: 4611 mov r1, r2 + 800a72e: 461a mov r2, r3 + 800a730: 4603 mov r3, r0 + 800a732: 70fb strb r3, [r7, #3] + 800a734: 460b mov r3, r1 + 800a736: 70bb strb r3, [r7, #2] + 800a738: 4613 mov r3, r2 + 800a73a: 803b strh r3, [r7, #0] HAL_StatusTypeDef hal_status = HAL_OK; - 800a6e8: 2300 movs r3, #0 - 800a6ea: 73fb strb r3, [r7, #15] + 800a73c: 2300 movs r3, #0 + 800a73e: 73fb strb r3, [r7, #15] USBD_StatusTypeDef usb_status = USBD_OK; - 800a6ec: 2300 movs r3, #0 - 800a6ee: 73bb strb r3, [r7, #14] + 800a740: 2300 movs r3, #0 + 800a742: 73bb strb r3, [r7, #14] hal_status = HAL_PCD_EP_Open(pdev->pData, ep_addr, ep_mps, ep_type); - 800a6f0: 687b ldr r3, [r7, #4] - 800a6f2: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 - 800a6f6: 78bb ldrb r3, [r7, #2] - 800a6f8: 883a ldrh r2, [r7, #0] - 800a6fa: 78f9 ldrb r1, [r7, #3] - 800a6fc: f7f9 f897 bl 800382e - 800a700: 4603 mov r3, r0 - 800a702: 73fb strb r3, [r7, #15] + 800a744: 687b ldr r3, [r7, #4] + 800a746: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 + 800a74a: 78bb ldrb r3, [r7, #2] + 800a74c: 883a ldrh r2, [r7, #0] + 800a74e: 78f9 ldrb r1, [r7, #3] + 800a750: f7f9 f897 bl 8003882 + 800a754: 4603 mov r3, r0 + 800a756: 73fb strb r3, [r7, #15] usb_status = USBD_Get_USB_Status(hal_status); - 800a704: 7bfb ldrb r3, [r7, #15] - 800a706: 4618 mov r0, r3 - 800a708: f000 f958 bl 800a9bc - 800a70c: 4603 mov r3, r0 - 800a70e: 73bb strb r3, [r7, #14] + 800a758: 7bfb ldrb r3, [r7, #15] + 800a75a: 4618 mov r0, r3 + 800a75c: f000 f958 bl 800aa10 + 800a760: 4603 mov r3, r0 + 800a762: 73bb strb r3, [r7, #14] return usb_status; - 800a710: 7bbb ldrb r3, [r7, #14] + 800a764: 7bbb ldrb r3, [r7, #14] } - 800a712: 4618 mov r0, r3 - 800a714: 3710 adds r7, #16 - 800a716: 46bd mov sp, r7 - 800a718: bd80 pop {r7, pc} + 800a766: 4618 mov r0, r3 + 800a768: 3710 adds r7, #16 + 800a76a: 46bd mov sp, r7 + 800a76c: bd80 pop {r7, pc} -0800a71a : +0800a76e : * @param pdev: Device handle * @param ep_addr: Endpoint number * @retval USBD status */ USBD_StatusTypeDef USBD_LL_CloseEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) { - 800a71a: b580 push {r7, lr} - 800a71c: b084 sub sp, #16 - 800a71e: af00 add r7, sp, #0 - 800a720: 6078 str r0, [r7, #4] - 800a722: 460b mov r3, r1 - 800a724: 70fb strb r3, [r7, #3] + 800a76e: b580 push {r7, lr} + 800a770: b084 sub sp, #16 + 800a772: af00 add r7, sp, #0 + 800a774: 6078 str r0, [r7, #4] + 800a776: 460b mov r3, r1 + 800a778: 70fb strb r3, [r7, #3] HAL_StatusTypeDef hal_status = HAL_OK; - 800a726: 2300 movs r3, #0 - 800a728: 73fb strb r3, [r7, #15] + 800a77a: 2300 movs r3, #0 + 800a77c: 73fb strb r3, [r7, #15] USBD_StatusTypeDef usb_status = USBD_OK; - 800a72a: 2300 movs r3, #0 - 800a72c: 73bb strb r3, [r7, #14] + 800a77e: 2300 movs r3, #0 + 800a780: 73bb strb r3, [r7, #14] hal_status = HAL_PCD_EP_Close(pdev->pData, ep_addr); - 800a72e: 687b ldr r3, [r7, #4] - 800a730: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800a734: 78fa ldrb r2, [r7, #3] - 800a736: 4611 mov r1, r2 - 800a738: 4618 mov r0, r3 - 800a73a: f7f9 f8e2 bl 8003902 - 800a73e: 4603 mov r3, r0 - 800a740: 73fb strb r3, [r7, #15] + 800a782: 687b ldr r3, [r7, #4] + 800a784: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800a788: 78fa ldrb r2, [r7, #3] + 800a78a: 4611 mov r1, r2 + 800a78c: 4618 mov r0, r3 + 800a78e: f7f9 f8e2 bl 8003956 + 800a792: 4603 mov r3, r0 + 800a794: 73fb strb r3, [r7, #15] usb_status = USBD_Get_USB_Status(hal_status); - 800a742: 7bfb ldrb r3, [r7, #15] - 800a744: 4618 mov r0, r3 - 800a746: f000 f939 bl 800a9bc - 800a74a: 4603 mov r3, r0 - 800a74c: 73bb strb r3, [r7, #14] + 800a796: 7bfb ldrb r3, [r7, #15] + 800a798: 4618 mov r0, r3 + 800a79a: f000 f939 bl 800aa10 + 800a79e: 4603 mov r3, r0 + 800a7a0: 73bb strb r3, [r7, #14] return usb_status; - 800a74e: 7bbb ldrb r3, [r7, #14] + 800a7a2: 7bbb ldrb r3, [r7, #14] } - 800a750: 4618 mov r0, r3 - 800a752: 3710 adds r7, #16 - 800a754: 46bd mov sp, r7 - 800a756: bd80 pop {r7, pc} + 800a7a4: 4618 mov r0, r3 + 800a7a6: 3710 adds r7, #16 + 800a7a8: 46bd mov sp, r7 + 800a7aa: bd80 pop {r7, pc} -0800a758 : +0800a7ac : * @param pdev: Device handle * @param ep_addr: Endpoint number * @retval USBD status */ USBD_StatusTypeDef USBD_LL_StallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) { - 800a758: b580 push {r7, lr} - 800a75a: b084 sub sp, #16 - 800a75c: af00 add r7, sp, #0 - 800a75e: 6078 str r0, [r7, #4] - 800a760: 460b mov r3, r1 - 800a762: 70fb strb r3, [r7, #3] + 800a7ac: b580 push {r7, lr} + 800a7ae: b084 sub sp, #16 + 800a7b0: af00 add r7, sp, #0 + 800a7b2: 6078 str r0, [r7, #4] + 800a7b4: 460b mov r3, r1 + 800a7b6: 70fb strb r3, [r7, #3] HAL_StatusTypeDef hal_status = HAL_OK; - 800a764: 2300 movs r3, #0 - 800a766: 73fb strb r3, [r7, #15] + 800a7b8: 2300 movs r3, #0 + 800a7ba: 73fb strb r3, [r7, #15] USBD_StatusTypeDef usb_status = USBD_OK; - 800a768: 2300 movs r3, #0 - 800a76a: 73bb strb r3, [r7, #14] + 800a7bc: 2300 movs r3, #0 + 800a7be: 73bb strb r3, [r7, #14] hal_status = HAL_PCD_EP_SetStall(pdev->pData, ep_addr); - 800a76c: 687b ldr r3, [r7, #4] - 800a76e: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800a772: 78fa ldrb r2, [r7, #3] - 800a774: 4611 mov r1, r2 - 800a776: 4618 mov r0, r3 - 800a778: f7f9 f982 bl 8003a80 - 800a77c: 4603 mov r3, r0 - 800a77e: 73fb strb r3, [r7, #15] + 800a7c0: 687b ldr r3, [r7, #4] + 800a7c2: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800a7c6: 78fa ldrb r2, [r7, #3] + 800a7c8: 4611 mov r1, r2 + 800a7ca: 4618 mov r0, r3 + 800a7cc: f7f9 f982 bl 8003ad4 + 800a7d0: 4603 mov r3, r0 + 800a7d2: 73fb strb r3, [r7, #15] usb_status = USBD_Get_USB_Status(hal_status); - 800a780: 7bfb ldrb r3, [r7, #15] - 800a782: 4618 mov r0, r3 - 800a784: f000 f91a bl 800a9bc - 800a788: 4603 mov r3, r0 - 800a78a: 73bb strb r3, [r7, #14] + 800a7d4: 7bfb ldrb r3, [r7, #15] + 800a7d6: 4618 mov r0, r3 + 800a7d8: f000 f91a bl 800aa10 + 800a7dc: 4603 mov r3, r0 + 800a7de: 73bb strb r3, [r7, #14] return usb_status; - 800a78c: 7bbb ldrb r3, [r7, #14] + 800a7e0: 7bbb ldrb r3, [r7, #14] } - 800a78e: 4618 mov r0, r3 - 800a790: 3710 adds r7, #16 - 800a792: 46bd mov sp, r7 - 800a794: bd80 pop {r7, pc} + 800a7e2: 4618 mov r0, r3 + 800a7e4: 3710 adds r7, #16 + 800a7e6: 46bd mov sp, r7 + 800a7e8: bd80 pop {r7, pc} -0800a796 : +0800a7ea : * @param pdev: Device handle * @param ep_addr: Endpoint number * @retval USBD status */ USBD_StatusTypeDef USBD_LL_ClearStallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) { - 800a796: b580 push {r7, lr} - 800a798: b084 sub sp, #16 - 800a79a: af00 add r7, sp, #0 - 800a79c: 6078 str r0, [r7, #4] - 800a79e: 460b mov r3, r1 - 800a7a0: 70fb strb r3, [r7, #3] + 800a7ea: b580 push {r7, lr} + 800a7ec: b084 sub sp, #16 + 800a7ee: af00 add r7, sp, #0 + 800a7f0: 6078 str r0, [r7, #4] + 800a7f2: 460b mov r3, r1 + 800a7f4: 70fb strb r3, [r7, #3] HAL_StatusTypeDef hal_status = HAL_OK; - 800a7a2: 2300 movs r3, #0 - 800a7a4: 73fb strb r3, [r7, #15] + 800a7f6: 2300 movs r3, #0 + 800a7f8: 73fb strb r3, [r7, #15] USBD_StatusTypeDef usb_status = USBD_OK; - 800a7a6: 2300 movs r3, #0 - 800a7a8: 73bb strb r3, [r7, #14] + 800a7fa: 2300 movs r3, #0 + 800a7fc: 73bb strb r3, [r7, #14] hal_status = HAL_PCD_EP_ClrStall(pdev->pData, ep_addr); - 800a7aa: 687b ldr r3, [r7, #4] - 800a7ac: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800a7b0: 78fa ldrb r2, [r7, #3] - 800a7b2: 4611 mov r1, r2 - 800a7b4: 4618 mov r0, r3 - 800a7b6: f7f9 f9c6 bl 8003b46 - 800a7ba: 4603 mov r3, r0 - 800a7bc: 73fb strb r3, [r7, #15] + 800a7fe: 687b ldr r3, [r7, #4] + 800a800: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800a804: 78fa ldrb r2, [r7, #3] + 800a806: 4611 mov r1, r2 + 800a808: 4618 mov r0, r3 + 800a80a: f7f9 f9c6 bl 8003b9a + 800a80e: 4603 mov r3, r0 + 800a810: 73fb strb r3, [r7, #15] usb_status = USBD_Get_USB_Status(hal_status); - 800a7be: 7bfb ldrb r3, [r7, #15] - 800a7c0: 4618 mov r0, r3 - 800a7c2: f000 f8fb bl 800a9bc - 800a7c6: 4603 mov r3, r0 - 800a7c8: 73bb strb r3, [r7, #14] + 800a812: 7bfb ldrb r3, [r7, #15] + 800a814: 4618 mov r0, r3 + 800a816: f000 f8fb bl 800aa10 + 800a81a: 4603 mov r3, r0 + 800a81c: 73bb strb r3, [r7, #14] return usb_status; - 800a7ca: 7bbb ldrb r3, [r7, #14] + 800a81e: 7bbb ldrb r3, [r7, #14] } - 800a7cc: 4618 mov r0, r3 - 800a7ce: 3710 adds r7, #16 - 800a7d0: 46bd mov sp, r7 - 800a7d2: bd80 pop {r7, pc} + 800a820: 4618 mov r0, r3 + 800a822: 3710 adds r7, #16 + 800a824: 46bd mov sp, r7 + 800a826: bd80 pop {r7, pc} -0800a7d4 : +0800a828 : * @param pdev: Device handle * @param ep_addr: Endpoint number * @retval Stall (1: Yes, 0: No) */ uint8_t USBD_LL_IsStallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) { - 800a7d4: b480 push {r7} - 800a7d6: b085 sub sp, #20 - 800a7d8: af00 add r7, sp, #0 - 800a7da: 6078 str r0, [r7, #4] - 800a7dc: 460b mov r3, r1 - 800a7de: 70fb strb r3, [r7, #3] + 800a828: b480 push {r7} + 800a82a: b085 sub sp, #20 + 800a82c: af00 add r7, sp, #0 + 800a82e: 6078 str r0, [r7, #4] + 800a830: 460b mov r3, r1 + 800a832: 70fb strb r3, [r7, #3] PCD_HandleTypeDef *hpcd = (PCD_HandleTypeDef*) pdev->pData; - 800a7e0: 687b ldr r3, [r7, #4] - 800a7e2: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800a7e6: 60fb str r3, [r7, #12] + 800a834: 687b ldr r3, [r7, #4] + 800a836: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800a83a: 60fb str r3, [r7, #12] if((ep_addr & 0x80) == 0x80) - 800a7e8: f997 3003 ldrsb.w r3, [r7, #3] - 800a7ec: 2b00 cmp r3, #0 - 800a7ee: da0b bge.n 800a808 + 800a83c: f997 3003 ldrsb.w r3, [r7, #3] + 800a840: 2b00 cmp r3, #0 + 800a842: da0b bge.n 800a85c { return hpcd->IN_ep[ep_addr & 0x7F].is_stall; - 800a7f0: 78fb ldrb r3, [r7, #3] - 800a7f2: f003 027f and.w r2, r3, #127 @ 0x7f - 800a7f6: 68f9 ldr r1, [r7, #12] - 800a7f8: 4613 mov r3, r2 - 800a7fa: 00db lsls r3, r3, #3 - 800a7fc: 4413 add r3, r2 - 800a7fe: 009b lsls r3, r3, #2 - 800a800: 440b add r3, r1 - 800a802: 3316 adds r3, #22 - 800a804: 781b ldrb r3, [r3, #0] - 800a806: e00b b.n 800a820 + 800a844: 78fb ldrb r3, [r7, #3] + 800a846: f003 027f and.w r2, r3, #127 @ 0x7f + 800a84a: 68f9 ldr r1, [r7, #12] + 800a84c: 4613 mov r3, r2 + 800a84e: 00db lsls r3, r3, #3 + 800a850: 4413 add r3, r2 + 800a852: 009b lsls r3, r3, #2 + 800a854: 440b add r3, r1 + 800a856: 3316 adds r3, #22 + 800a858: 781b ldrb r3, [r3, #0] + 800a85a: e00b b.n 800a874 } else { return hpcd->OUT_ep[ep_addr & 0x7F].is_stall; - 800a808: 78fb ldrb r3, [r7, #3] - 800a80a: f003 027f and.w r2, r3, #127 @ 0x7f - 800a80e: 68f9 ldr r1, [r7, #12] - 800a810: 4613 mov r3, r2 - 800a812: 00db lsls r3, r3, #3 - 800a814: 4413 add r3, r2 - 800a816: 009b lsls r3, r3, #2 - 800a818: 440b add r3, r1 - 800a81a: f203 2356 addw r3, r3, #598 @ 0x256 - 800a81e: 781b ldrb r3, [r3, #0] + 800a85c: 78fb ldrb r3, [r7, #3] + 800a85e: f003 027f and.w r2, r3, #127 @ 0x7f + 800a862: 68f9 ldr r1, [r7, #12] + 800a864: 4613 mov r3, r2 + 800a866: 00db lsls r3, r3, #3 + 800a868: 4413 add r3, r2 + 800a86a: 009b lsls r3, r3, #2 + 800a86c: 440b add r3, r1 + 800a86e: f203 2356 addw r3, r3, #598 @ 0x256 + 800a872: 781b ldrb r3, [r3, #0] } } - 800a820: 4618 mov r0, r3 - 800a822: 3714 adds r7, #20 - 800a824: 46bd mov sp, r7 - 800a826: f85d 7b04 ldr.w r7, [sp], #4 - 800a82a: 4770 bx lr + 800a874: 4618 mov r0, r3 + 800a876: 3714 adds r7, #20 + 800a878: 46bd mov sp, r7 + 800a87a: f85d 7b04 ldr.w r7, [sp], #4 + 800a87e: 4770 bx lr -0800a82c : +0800a880 : * @param pdev: Device handle * @param dev_addr: Device address * @retval USBD status */ USBD_StatusTypeDef USBD_LL_SetUSBAddress(USBD_HandleTypeDef *pdev, uint8_t dev_addr) { - 800a82c: b580 push {r7, lr} - 800a82e: b084 sub sp, #16 - 800a830: af00 add r7, sp, #0 - 800a832: 6078 str r0, [r7, #4] - 800a834: 460b mov r3, r1 - 800a836: 70fb strb r3, [r7, #3] + 800a880: b580 push {r7, lr} + 800a882: b084 sub sp, #16 + 800a884: af00 add r7, sp, #0 + 800a886: 6078 str r0, [r7, #4] + 800a888: 460b mov r3, r1 + 800a88a: 70fb strb r3, [r7, #3] HAL_StatusTypeDef hal_status = HAL_OK; - 800a838: 2300 movs r3, #0 - 800a83a: 73fb strb r3, [r7, #15] + 800a88c: 2300 movs r3, #0 + 800a88e: 73fb strb r3, [r7, #15] USBD_StatusTypeDef usb_status = USBD_OK; - 800a83c: 2300 movs r3, #0 - 800a83e: 73bb strb r3, [r7, #14] + 800a890: 2300 movs r3, #0 + 800a892: 73bb strb r3, [r7, #14] hal_status = HAL_PCD_SetAddress(pdev->pData, dev_addr); - 800a840: 687b ldr r3, [r7, #4] - 800a842: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800a846: 78fa ldrb r2, [r7, #3] - 800a848: 4611 mov r1, r2 - 800a84a: 4618 mov r0, r3 - 800a84c: f7f8 ffcb bl 80037e6 - 800a850: 4603 mov r3, r0 - 800a852: 73fb strb r3, [r7, #15] + 800a894: 687b ldr r3, [r7, #4] + 800a896: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800a89a: 78fa ldrb r2, [r7, #3] + 800a89c: 4611 mov r1, r2 + 800a89e: 4618 mov r0, r3 + 800a8a0: f7f8 ffcb bl 800383a + 800a8a4: 4603 mov r3, r0 + 800a8a6: 73fb strb r3, [r7, #15] usb_status = USBD_Get_USB_Status(hal_status); - 800a854: 7bfb ldrb r3, [r7, #15] - 800a856: 4618 mov r0, r3 - 800a858: f000 f8b0 bl 800a9bc - 800a85c: 4603 mov r3, r0 - 800a85e: 73bb strb r3, [r7, #14] + 800a8a8: 7bfb ldrb r3, [r7, #15] + 800a8aa: 4618 mov r0, r3 + 800a8ac: f000 f8b0 bl 800aa10 + 800a8b0: 4603 mov r3, r0 + 800a8b2: 73bb strb r3, [r7, #14] return usb_status; - 800a860: 7bbb ldrb r3, [r7, #14] + 800a8b4: 7bbb ldrb r3, [r7, #14] } - 800a862: 4618 mov r0, r3 - 800a864: 3710 adds r7, #16 - 800a866: 46bd mov sp, r7 - 800a868: bd80 pop {r7, pc} + 800a8b6: 4618 mov r0, r3 + 800a8b8: 3710 adds r7, #16 + 800a8ba: 46bd mov sp, r7 + 800a8bc: bd80 pop {r7, pc} -0800a86a : +0800a8be : * @param pbuf: Pointer to data to be sent * @param size: Data size * @retval USBD status */ USBD_StatusTypeDef USBD_LL_Transmit(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint32_t size) { - 800a86a: b580 push {r7, lr} - 800a86c: b086 sub sp, #24 - 800a86e: af00 add r7, sp, #0 - 800a870: 60f8 str r0, [r7, #12] - 800a872: 607a str r2, [r7, #4] - 800a874: 603b str r3, [r7, #0] - 800a876: 460b mov r3, r1 - 800a878: 72fb strb r3, [r7, #11] + 800a8be: b580 push {r7, lr} + 800a8c0: b086 sub sp, #24 + 800a8c2: af00 add r7, sp, #0 + 800a8c4: 60f8 str r0, [r7, #12] + 800a8c6: 607a str r2, [r7, #4] + 800a8c8: 603b str r3, [r7, #0] + 800a8ca: 460b mov r3, r1 + 800a8cc: 72fb strb r3, [r7, #11] HAL_StatusTypeDef hal_status = HAL_OK; - 800a87a: 2300 movs r3, #0 - 800a87c: 75fb strb r3, [r7, #23] + 800a8ce: 2300 movs r3, #0 + 800a8d0: 75fb strb r3, [r7, #23] USBD_StatusTypeDef usb_status = USBD_OK; - 800a87e: 2300 movs r3, #0 - 800a880: 75bb strb r3, [r7, #22] + 800a8d2: 2300 movs r3, #0 + 800a8d4: 75bb strb r3, [r7, #22] hal_status = HAL_PCD_EP_Transmit(pdev->pData, ep_addr, pbuf, size); - 800a882: 68fb ldr r3, [r7, #12] - 800a884: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 - 800a888: 7af9 ldrb r1, [r7, #11] - 800a88a: 683b ldr r3, [r7, #0] - 800a88c: 687a ldr r2, [r7, #4] - 800a88e: f7f9 f8bd bl 8003a0c - 800a892: 4603 mov r3, r0 - 800a894: 75fb strb r3, [r7, #23] + 800a8d6: 68fb ldr r3, [r7, #12] + 800a8d8: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 + 800a8dc: 7af9 ldrb r1, [r7, #11] + 800a8de: 683b ldr r3, [r7, #0] + 800a8e0: 687a ldr r2, [r7, #4] + 800a8e2: f7f9 f8bd bl 8003a60 + 800a8e6: 4603 mov r3, r0 + 800a8e8: 75fb strb r3, [r7, #23] usb_status = USBD_Get_USB_Status(hal_status); - 800a896: 7dfb ldrb r3, [r7, #23] - 800a898: 4618 mov r0, r3 - 800a89a: f000 f88f bl 800a9bc - 800a89e: 4603 mov r3, r0 - 800a8a0: 75bb strb r3, [r7, #22] + 800a8ea: 7dfb ldrb r3, [r7, #23] + 800a8ec: 4618 mov r0, r3 + 800a8ee: f000 f88f bl 800aa10 + 800a8f2: 4603 mov r3, r0 + 800a8f4: 75bb strb r3, [r7, #22] return usb_status; - 800a8a2: 7dbb ldrb r3, [r7, #22] + 800a8f6: 7dbb ldrb r3, [r7, #22] } - 800a8a4: 4618 mov r0, r3 - 800a8a6: 3718 adds r7, #24 - 800a8a8: 46bd mov sp, r7 - 800a8aa: bd80 pop {r7, pc} + 800a8f8: 4618 mov r0, r3 + 800a8fa: 3718 adds r7, #24 + 800a8fc: 46bd mov sp, r7 + 800a8fe: bd80 pop {r7, pc} -0800a8ac : +0800a900 : * @param pbuf: Pointer to data to be received * @param size: Data size * @retval USBD status */ USBD_StatusTypeDef USBD_LL_PrepareReceive(USBD_HandleTypeDef *pdev, uint8_t ep_addr, uint8_t *pbuf, uint32_t size) { - 800a8ac: b580 push {r7, lr} - 800a8ae: b086 sub sp, #24 - 800a8b0: af00 add r7, sp, #0 - 800a8b2: 60f8 str r0, [r7, #12] - 800a8b4: 607a str r2, [r7, #4] - 800a8b6: 603b str r3, [r7, #0] - 800a8b8: 460b mov r3, r1 - 800a8ba: 72fb strb r3, [r7, #11] + 800a900: b580 push {r7, lr} + 800a902: b086 sub sp, #24 + 800a904: af00 add r7, sp, #0 + 800a906: 60f8 str r0, [r7, #12] + 800a908: 607a str r2, [r7, #4] + 800a90a: 603b str r3, [r7, #0] + 800a90c: 460b mov r3, r1 + 800a90e: 72fb strb r3, [r7, #11] HAL_StatusTypeDef hal_status = HAL_OK; - 800a8bc: 2300 movs r3, #0 - 800a8be: 75fb strb r3, [r7, #23] + 800a910: 2300 movs r3, #0 + 800a912: 75fb strb r3, [r7, #23] USBD_StatusTypeDef usb_status = USBD_OK; - 800a8c0: 2300 movs r3, #0 - 800a8c2: 75bb strb r3, [r7, #22] + 800a914: 2300 movs r3, #0 + 800a916: 75bb strb r3, [r7, #22] hal_status = HAL_PCD_EP_Receive(pdev->pData, ep_addr, pbuf, size); - 800a8c4: 68fb ldr r3, [r7, #12] - 800a8c6: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 - 800a8ca: 7af9 ldrb r1, [r7, #11] - 800a8cc: 683b ldr r3, [r7, #0] - 800a8ce: 687a ldr r2, [r7, #4] - 800a8d0: f7f9 f861 bl 8003996 - 800a8d4: 4603 mov r3, r0 - 800a8d6: 75fb strb r3, [r7, #23] + 800a918: 68fb ldr r3, [r7, #12] + 800a91a: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 + 800a91e: 7af9 ldrb r1, [r7, #11] + 800a920: 683b ldr r3, [r7, #0] + 800a922: 687a ldr r2, [r7, #4] + 800a924: f7f9 f861 bl 80039ea + 800a928: 4603 mov r3, r0 + 800a92a: 75fb strb r3, [r7, #23] usb_status = USBD_Get_USB_Status(hal_status); - 800a8d8: 7dfb ldrb r3, [r7, #23] - 800a8da: 4618 mov r0, r3 - 800a8dc: f000 f86e bl 800a9bc - 800a8e0: 4603 mov r3, r0 - 800a8e2: 75bb strb r3, [r7, #22] + 800a92c: 7dfb ldrb r3, [r7, #23] + 800a92e: 4618 mov r0, r3 + 800a930: f000 f86e bl 800aa10 + 800a934: 4603 mov r3, r0 + 800a936: 75bb strb r3, [r7, #22] return usb_status; - 800a8e4: 7dbb ldrb r3, [r7, #22] + 800a938: 7dbb ldrb r3, [r7, #22] } - 800a8e6: 4618 mov r0, r3 - 800a8e8: 3718 adds r7, #24 - 800a8ea: 46bd mov sp, r7 - 800a8ec: bd80 pop {r7, pc} + 800a93a: 4618 mov r0, r3 + 800a93c: 3718 adds r7, #24 + 800a93e: 46bd mov sp, r7 + 800a940: bd80 pop {r7, pc} ... -0800a8f0 : +0800a944 : * @param hpcd: PCD handle * @param msg: LPM message * @retval None */ void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg) { - 800a8f0: b580 push {r7, lr} - 800a8f2: b082 sub sp, #8 - 800a8f4: af00 add r7, sp, #0 - 800a8f6: 6078 str r0, [r7, #4] - 800a8f8: 460b mov r3, r1 - 800a8fa: 70fb strb r3, [r7, #3] + 800a944: b580 push {r7, lr} + 800a946: b082 sub sp, #8 + 800a948: af00 add r7, sp, #0 + 800a94a: 6078 str r0, [r7, #4] + 800a94c: 460b mov r3, r1 + 800a94e: 70fb strb r3, [r7, #3] switch (msg) - 800a8fc: 78fb ldrb r3, [r7, #3] - 800a8fe: 2b00 cmp r3, #0 - 800a900: d002 beq.n 800a908 - 800a902: 2b01 cmp r3, #1 - 800a904: d01f beq.n 800a946 + 800a950: 78fb ldrb r3, [r7, #3] + 800a952: 2b00 cmp r3, #0 + 800a954: d002 beq.n 800a95c + 800a956: 2b01 cmp r3, #1 + 800a958: d01f beq.n 800a99a /* Set SLEEPDEEP bit and SleepOnExit of Cortex System Control Register. */ SCB->SCR |= (uint32_t)((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); } break; } } - 800a906: e03b b.n 800a980 + 800a95a: e03b b.n 800a9d4 if (hpcd->Init.low_power_enable) - 800a908: 687b ldr r3, [r7, #4] - 800a90a: 7adb ldrb r3, [r3, #11] - 800a90c: 2b00 cmp r3, #0 - 800a90e: d007 beq.n 800a920 + 800a95c: 687b ldr r3, [r7, #4] + 800a95e: 7adb ldrb r3, [r3, #11] + 800a960: 2b00 cmp r3, #0 + 800a962: d007 beq.n 800a974 SystemClock_Config(); - 800a910: f7f6 f85c bl 80009cc + 800a964: f7f6 f844 bl 80009f0 SCB->SCR &= (uint32_t)~((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); - 800a914: 4b1c ldr r3, [pc, #112] @ (800a988 ) - 800a916: 691b ldr r3, [r3, #16] - 800a918: 4a1b ldr r2, [pc, #108] @ (800a988 ) - 800a91a: f023 0306 bic.w r3, r3, #6 - 800a91e: 6113 str r3, [r2, #16] + 800a968: 4b1c ldr r3, [pc, #112] @ (800a9dc ) + 800a96a: 691b ldr r3, [r3, #16] + 800a96c: 4a1b ldr r2, [pc, #108] @ (800a9dc ) + 800a96e: f023 0306 bic.w r3, r3, #6 + 800a972: 6113 str r3, [r2, #16] __HAL_PCD_UNGATE_PHYCLOCK(hpcd); - 800a920: 687b ldr r3, [r7, #4] - 800a922: 681b ldr r3, [r3, #0] - 800a924: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 800a928: 681b ldr r3, [r3, #0] - 800a92a: 687a ldr r2, [r7, #4] - 800a92c: 6812 ldr r2, [r2, #0] - 800a92e: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 800a932: f023 0301 bic.w r3, r3, #1 - 800a936: 6013 str r3, [r2, #0] + 800a974: 687b ldr r3, [r7, #4] + 800a976: 681b ldr r3, [r3, #0] + 800a978: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 800a97c: 681b ldr r3, [r3, #0] + 800a97e: 687a ldr r2, [r7, #4] + 800a980: 6812 ldr r2, [r2, #0] + 800a982: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 800a986: f023 0301 bic.w r3, r3, #1 + 800a98a: 6013 str r3, [r2, #0] USBD_LL_Resume(hpcd->pData); - 800a938: 687b ldr r3, [r7, #4] - 800a93a: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800a93e: 4618 mov r0, r3 - 800a940: f7fe fb90 bl 8009064 + 800a98c: 687b ldr r3, [r7, #4] + 800a98e: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800a992: 4618 mov r0, r3 + 800a994: f7fe fb90 bl 80090b8 break; - 800a944: e01c b.n 800a980 + 800a998: e01c b.n 800a9d4 __HAL_PCD_GATE_PHYCLOCK(hpcd); - 800a946: 687b ldr r3, [r7, #4] - 800a948: 681b ldr r3, [r3, #0] - 800a94a: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 800a94e: 681b ldr r3, [r3, #0] - 800a950: 687a ldr r2, [r7, #4] - 800a952: 6812 ldr r2, [r2, #0] - 800a954: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 800a958: f043 0301 orr.w r3, r3, #1 - 800a95c: 6013 str r3, [r2, #0] + 800a99a: 687b ldr r3, [r7, #4] + 800a99c: 681b ldr r3, [r3, #0] + 800a99e: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 800a9a2: 681b ldr r3, [r3, #0] + 800a9a4: 687a ldr r2, [r7, #4] + 800a9a6: 6812 ldr r2, [r2, #0] + 800a9a8: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 800a9ac: f043 0301 orr.w r3, r3, #1 + 800a9b0: 6013 str r3, [r2, #0] USBD_LL_Suspend(hpcd->pData); - 800a95e: 687b ldr r3, [r7, #4] - 800a960: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800a964: 4618 mov r0, r3 - 800a966: f7fe fb61 bl 800902c + 800a9b2: 687b ldr r3, [r7, #4] + 800a9b4: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800a9b8: 4618 mov r0, r3 + 800a9ba: f7fe fb61 bl 8009080 if (hpcd->Init.low_power_enable) - 800a96a: 687b ldr r3, [r7, #4] - 800a96c: 7adb ldrb r3, [r3, #11] - 800a96e: 2b00 cmp r3, #0 - 800a970: d005 beq.n 800a97e + 800a9be: 687b ldr r3, [r7, #4] + 800a9c0: 7adb ldrb r3, [r3, #11] + 800a9c2: 2b00 cmp r3, #0 + 800a9c4: d005 beq.n 800a9d2 SCB->SCR |= (uint32_t)((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); - 800a972: 4b05 ldr r3, [pc, #20] @ (800a988 ) - 800a974: 691b ldr r3, [r3, #16] - 800a976: 4a04 ldr r2, [pc, #16] @ (800a988 ) - 800a978: f043 0306 orr.w r3, r3, #6 - 800a97c: 6113 str r3, [r2, #16] + 800a9c6: 4b05 ldr r3, [pc, #20] @ (800a9dc ) + 800a9c8: 691b ldr r3, [r3, #16] + 800a9ca: 4a04 ldr r2, [pc, #16] @ (800a9dc ) + 800a9cc: f043 0306 orr.w r3, r3, #6 + 800a9d0: 6113 str r3, [r2, #16] break; - 800a97e: bf00 nop + 800a9d2: bf00 nop } - 800a980: bf00 nop - 800a982: 3708 adds r7, #8 - 800a984: 46bd mov sp, r7 - 800a986: bd80 pop {r7, pc} - 800a988: e000ed00 .word 0xe000ed00 + 800a9d4: bf00 nop + 800a9d6: 3708 adds r7, #8 + 800a9d8: 46bd mov sp, r7 + 800a9da: bd80 pop {r7, pc} + 800a9dc: e000ed00 .word 0xe000ed00 -0800a98c : +0800a9e0 : * @brief Static single allocation. * @param size: Size of allocated memory * @retval None */ void *USBD_static_malloc(uint32_t size) { - 800a98c: b480 push {r7} - 800a98e: b083 sub sp, #12 - 800a990: af00 add r7, sp, #0 - 800a992: 6078 str r0, [r7, #4] + 800a9e0: b480 push {r7} + 800a9e2: b083 sub sp, #12 + 800a9e4: af00 add r7, sp, #0 + 800a9e6: 6078 str r0, [r7, #4] static uint32_t mem[(sizeof(USBD_HID_HandleTypeDef)/4)+1];/* On 32-bit boundary */ return mem; - 800a994: 4b03 ldr r3, [pc, #12] @ (800a9a4 ) + 800a9e8: 4b03 ldr r3, [pc, #12] @ (800a9f8 ) } - 800a996: 4618 mov r0, r3 - 800a998: 370c adds r7, #12 - 800a99a: 46bd mov sp, r7 - 800a99c: f85d 7b04 ldr.w r7, [sp], #4 - 800a9a0: 4770 bx lr - 800a9a2: bf00 nop - 800a9a4: 200010f4 .word 0x200010f4 + 800a9ea: 4618 mov r0, r3 + 800a9ec: 370c adds r7, #12 + 800a9ee: 46bd mov sp, r7 + 800a9f0: f85d 7b04 ldr.w r7, [sp], #4 + 800a9f4: 4770 bx lr + 800a9f6: bf00 nop + 800a9f8: 200010f8 .word 0x200010f8 -0800a9a8 : +0800a9fc : * @brief Dummy memory free * @param p: Pointer to allocated memory address * @retval None */ void USBD_static_free(void *p) { - 800a9a8: b480 push {r7} - 800a9aa: b083 sub sp, #12 - 800a9ac: af00 add r7, sp, #0 - 800a9ae: 6078 str r0, [r7, #4] + 800a9fc: b480 push {r7} + 800a9fe: b083 sub sp, #12 + 800aa00: af00 add r7, sp, #0 + 800aa02: 6078 str r0, [r7, #4] } - 800a9b0: bf00 nop - 800a9b2: 370c adds r7, #12 - 800a9b4: 46bd mov sp, r7 - 800a9b6: f85d 7b04 ldr.w r7, [sp], #4 - 800a9ba: 4770 bx lr + 800aa04: bf00 nop + 800aa06: 370c adds r7, #12 + 800aa08: 46bd mov sp, r7 + 800aa0a: f85d 7b04 ldr.w r7, [sp], #4 + 800aa0e: 4770 bx lr -0800a9bc : +0800aa10 : * @brief Returns the USB status depending on the HAL status: * @param hal_status: HAL status * @retval USB status */ USBD_StatusTypeDef USBD_Get_USB_Status(HAL_StatusTypeDef hal_status) { - 800a9bc: b480 push {r7} - 800a9be: b085 sub sp, #20 - 800a9c0: af00 add r7, sp, #0 - 800a9c2: 4603 mov r3, r0 - 800a9c4: 71fb strb r3, [r7, #7] + 800aa10: b480 push {r7} + 800aa12: b085 sub sp, #20 + 800aa14: af00 add r7, sp, #0 + 800aa16: 4603 mov r3, r0 + 800aa18: 71fb strb r3, [r7, #7] USBD_StatusTypeDef usb_status = USBD_OK; - 800a9c6: 2300 movs r3, #0 - 800a9c8: 73fb strb r3, [r7, #15] + 800aa1a: 2300 movs r3, #0 + 800aa1c: 73fb strb r3, [r7, #15] switch (hal_status) - 800a9ca: 79fb ldrb r3, [r7, #7] - 800a9cc: 2b03 cmp r3, #3 - 800a9ce: d817 bhi.n 800aa00 - 800a9d0: a201 add r2, pc, #4 @ (adr r2, 800a9d8 ) - 800a9d2: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800a9d6: bf00 nop - 800a9d8: 0800a9e9 .word 0x0800a9e9 - 800a9dc: 0800a9ef .word 0x0800a9ef - 800a9e0: 0800a9f5 .word 0x0800a9f5 - 800a9e4: 0800a9fb .word 0x0800a9fb + 800aa1e: 79fb ldrb r3, [r7, #7] + 800aa20: 2b03 cmp r3, #3 + 800aa22: d817 bhi.n 800aa54 + 800aa24: a201 add r2, pc, #4 @ (adr r2, 800aa2c ) + 800aa26: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800aa2a: bf00 nop + 800aa2c: 0800aa3d .word 0x0800aa3d + 800aa30: 0800aa43 .word 0x0800aa43 + 800aa34: 0800aa49 .word 0x0800aa49 + 800aa38: 0800aa4f .word 0x0800aa4f { case HAL_OK : usb_status = USBD_OK; - 800a9e8: 2300 movs r3, #0 - 800a9ea: 73fb strb r3, [r7, #15] + 800aa3c: 2300 movs r3, #0 + 800aa3e: 73fb strb r3, [r7, #15] break; - 800a9ec: e00b b.n 800aa06 + 800aa40: e00b b.n 800aa5a case HAL_ERROR : usb_status = USBD_FAIL; - 800a9ee: 2303 movs r3, #3 - 800a9f0: 73fb strb r3, [r7, #15] + 800aa42: 2303 movs r3, #3 + 800aa44: 73fb strb r3, [r7, #15] break; - 800a9f2: e008 b.n 800aa06 + 800aa46: e008 b.n 800aa5a case HAL_BUSY : usb_status = USBD_BUSY; - 800a9f4: 2301 movs r3, #1 - 800a9f6: 73fb strb r3, [r7, #15] + 800aa48: 2301 movs r3, #1 + 800aa4a: 73fb strb r3, [r7, #15] break; - 800a9f8: e005 b.n 800aa06 + 800aa4c: e005 b.n 800aa5a case HAL_TIMEOUT : usb_status = USBD_FAIL; - 800a9fa: 2303 movs r3, #3 - 800a9fc: 73fb strb r3, [r7, #15] + 800aa4e: 2303 movs r3, #3 + 800aa50: 73fb strb r3, [r7, #15] break; - 800a9fe: e002 b.n 800aa06 + 800aa52: e002 b.n 800aa5a default : usb_status = USBD_FAIL; - 800aa00: 2303 movs r3, #3 - 800aa02: 73fb strb r3, [r7, #15] + 800aa54: 2303 movs r3, #3 + 800aa56: 73fb strb r3, [r7, #15] break; - 800aa04: bf00 nop + 800aa58: bf00 nop } return usb_status; - 800aa06: 7bfb ldrb r3, [r7, #15] + 800aa5a: 7bfb ldrb r3, [r7, #15] } - 800aa08: 4618 mov r0, r3 - 800aa0a: 3714 adds r7, #20 - 800aa0c: 46bd mov sp, r7 - 800aa0e: f85d 7b04 ldr.w r7, [sp], #4 - 800aa12: 4770 bx lr + 800aa5c: 4618 mov r0, r3 + 800aa5e: 3714 adds r7, #20 + 800aa60: 46bd mov sp, r7 + 800aa62: f85d 7b04 ldr.w r7, [sp], #4 + 800aa66: 4770 bx lr -0800aa14 : - 800aa14: 4402 add r2, r0 - 800aa16: 4603 mov r3, r0 - 800aa18: 4293 cmp r3, r2 - 800aa1a: d100 bne.n 800aa1e - 800aa1c: 4770 bx lr - 800aa1e: f803 1b01 strb.w r1, [r3], #1 - 800aa22: e7f9 b.n 800aa18 +0800aa68 : + 800aa68: 4402 add r2, r0 + 800aa6a: 4603 mov r3, r0 + 800aa6c: 4293 cmp r3, r2 + 800aa6e: d100 bne.n 800aa72 + 800aa70: 4770 bx lr + 800aa72: f803 1b01 strb.w r1, [r3], #1 + 800aa76: e7f9 b.n 800aa6c -0800aa24 <__libc_init_array>: - 800aa24: b570 push {r4, r5, r6, lr} - 800aa26: 4d0d ldr r5, [pc, #52] @ (800aa5c <__libc_init_array+0x38>) - 800aa28: 4c0d ldr r4, [pc, #52] @ (800aa60 <__libc_init_array+0x3c>) - 800aa2a: 1b64 subs r4, r4, r5 - 800aa2c: 10a4 asrs r4, r4, #2 - 800aa2e: 2600 movs r6, #0 - 800aa30: 42a6 cmp r6, r4 - 800aa32: d109 bne.n 800aa48 <__libc_init_array+0x24> - 800aa34: 4d0b ldr r5, [pc, #44] @ (800aa64 <__libc_init_array+0x40>) - 800aa36: 4c0c ldr r4, [pc, #48] @ (800aa68 <__libc_init_array+0x44>) - 800aa38: f000 f818 bl 800aa6c <_init> - 800aa3c: 1b64 subs r4, r4, r5 - 800aa3e: 10a4 asrs r4, r4, #2 - 800aa40: 2600 movs r6, #0 - 800aa42: 42a6 cmp r6, r4 - 800aa44: d105 bne.n 800aa52 <__libc_init_array+0x2e> - 800aa46: bd70 pop {r4, r5, r6, pc} - 800aa48: f855 3b04 ldr.w r3, [r5], #4 - 800aa4c: 4798 blx r3 - 800aa4e: 3601 adds r6, #1 - 800aa50: e7ee b.n 800aa30 <__libc_init_array+0xc> - 800aa52: f855 3b04 ldr.w r3, [r5], #4 - 800aa56: 4798 blx r3 - 800aa58: 3601 adds r6, #1 - 800aa5a: e7f2 b.n 800aa42 <__libc_init_array+0x1e> - 800aa5c: 0800aae8 .word 0x0800aae8 - 800aa60: 0800aae8 .word 0x0800aae8 - 800aa64: 0800aae8 .word 0x0800aae8 - 800aa68: 0800aaec .word 0x0800aaec +0800aa78 <__libc_init_array>: + 800aa78: b570 push {r4, r5, r6, lr} + 800aa7a: 4d0d ldr r5, [pc, #52] @ (800aab0 <__libc_init_array+0x38>) + 800aa7c: 4c0d ldr r4, [pc, #52] @ (800aab4 <__libc_init_array+0x3c>) + 800aa7e: 1b64 subs r4, r4, r5 + 800aa80: 10a4 asrs r4, r4, #2 + 800aa82: 2600 movs r6, #0 + 800aa84: 42a6 cmp r6, r4 + 800aa86: d109 bne.n 800aa9c <__libc_init_array+0x24> + 800aa88: 4d0b ldr r5, [pc, #44] @ (800aab8 <__libc_init_array+0x40>) + 800aa8a: 4c0c ldr r4, [pc, #48] @ (800aabc <__libc_init_array+0x44>) + 800aa8c: f000 f818 bl 800aac0 <_init> + 800aa90: 1b64 subs r4, r4, r5 + 800aa92: 10a4 asrs r4, r4, #2 + 800aa94: 2600 movs r6, #0 + 800aa96: 42a6 cmp r6, r4 + 800aa98: d105 bne.n 800aaa6 <__libc_init_array+0x2e> + 800aa9a: bd70 pop {r4, r5, r6, pc} + 800aa9c: f855 3b04 ldr.w r3, [r5], #4 + 800aaa0: 4798 blx r3 + 800aaa2: 3601 adds r6, #1 + 800aaa4: e7ee b.n 800aa84 <__libc_init_array+0xc> + 800aaa6: f855 3b04 ldr.w r3, [r5], #4 + 800aaaa: 4798 blx r3 + 800aaac: 3601 adds r6, #1 + 800aaae: e7f2 b.n 800aa96 <__libc_init_array+0x1e> + 800aab0: 0800ab3c .word 0x0800ab3c + 800aab4: 0800ab3c .word 0x0800ab3c + 800aab8: 0800ab3c .word 0x0800ab3c + 800aabc: 0800ab40 .word 0x0800ab40 -0800aa6c <_init>: - 800aa6c: b5f8 push {r3, r4, r5, r6, r7, lr} - 800aa6e: bf00 nop - 800aa70: bcf8 pop {r3, r4, r5, r6, r7} - 800aa72: bc08 pop {r3} - 800aa74: 469e mov lr, r3 - 800aa76: 4770 bx lr +0800aac0 <_init>: + 800aac0: b5f8 push {r3, r4, r5, r6, r7, lr} + 800aac2: bf00 nop + 800aac4: bcf8 pop {r3, r4, r5, r6, r7} + 800aac6: bc08 pop {r3} + 800aac8: 469e mov lr, r3 + 800aaca: 4770 bx lr -0800aa78 <_fini>: - 800aa78: b5f8 push {r3, r4, r5, r6, r7, lr} - 800aa7a: bf00 nop - 800aa7c: bcf8 pop {r3, r4, r5, r6, r7} - 800aa7e: bc08 pop {r3} - 800aa80: 469e mov lr, r3 - 800aa82: 4770 bx lr +0800aacc <_fini>: + 800aacc: b5f8 push {r3, r4, r5, r6, r7, lr} + 800aace: bf00 nop + 800aad0: bcf8 pop {r3, r4, r5, r6, r7} + 800aad2: bc08 pop {r3} + 800aad4: 469e mov lr, r3 + 800aad6: 4770 bx lr diff --git a/firmware/modularkbd/Debug/modularkbd.map b/firmware/modularkbd/Debug/modularkbd.map index 8dd38e1c..cb84d85e 100644 --- a/firmware/modularkbd/Debug/modularkbd.map +++ b/firmware/modularkbd/Debug/modularkbd.map @@ -370,6 +370,8 @@ Discarded input sections .text 0x00000000 0x0 ./Core/Src/main.o .data 0x00000000 0x0 ./Core/Src/main.o .bss 0x00000000 0x0 ./Core/Src/main.o + .bss.reportBuff + 0x00000000 0x10 ./Core/Src/main.o .debug_macro 0x00000000 0xad8 ./Core/Src/main.o .debug_macro 0x00000000 0x2a7 ./Core/Src/main.o .debug_macro 0x00000000 0x2e ./Core/Src/main.o @@ -5426,7 +5428,7 @@ LOAD /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.external 0x08000000 g_pfnVectors 0x080001c4 . = ALIGN (0x4) -.text 0x080001c4 0xa8c0 +.text 0x080001c4 0xa914 0x080001c4 . = ALIGN (0x4) *(.text) .text 0x080001c4 0x40 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o @@ -5450,870 +5452,870 @@ LOAD /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.external .text.HAL_I2C_MspInit 0x08000798 0x90 ./Core/Src/i2c.o 0x08000798 HAL_I2C_MspInit - .text.main 0x08000828 0x1a4 ./Core/Src/main.o + .text.main 0x08000828 0x1c8 ./Core/Src/main.o 0x08000828 main .text.SystemClock_Config - 0x080009cc 0xd8 ./Core/Src/main.o - 0x080009cc SystemClock_Config + 0x080009f0 0xd8 ./Core/Src/main.o + 0x080009f0 SystemClock_Config .text.HAL_UART_RxCpltCallback - 0x08000aa4 0xb8 ./Core/Src/main.o - 0x08000aa4 HAL_UART_RxCpltCallback + 0x08000ac8 0xb8 ./Core/Src/main.o + 0x08000ac8 HAL_UART_RxCpltCallback .text.HAL_UART_ErrorCallback - 0x08000b5c 0x98 ./Core/Src/main.o - 0x08000b5c HAL_UART_ErrorCallback + 0x08000b80 0x98 ./Core/Src/main.o + 0x08000b80 HAL_UART_ErrorCallback .text.findBestParent - 0x08000bf4 0x84 ./Core/Src/main.o - 0x08000bf4 findBestParent + 0x08000c18 0x84 ./Core/Src/main.o + 0x08000c18 findBestParent .text.handleUARTMessages - 0x08000c78 0xf4 ./Core/Src/main.o - 0x08000c78 handleUARTMessages + 0x08000c9c 0x124 ./Core/Src/main.o + 0x08000c9c handleUARTMessages .text.addUSBReport - 0x08000d6c 0x68 ./Core/Src/main.o - 0x08000d6c addUSBReport + 0x08000dc0 0x68 ./Core/Src/main.o + 0x08000dc0 addUSBReport .text.matrixScan - 0x08000dd4 0xb4 ./Core/Src/main.o - 0x08000dd4 matrixScan + 0x08000e28 0xb4 ./Core/Src/main.o + 0x08000e28 matrixScan .text.resetReport - 0x08000e88 0x20 ./Core/Src/main.o - 0x08000e88 resetReport + 0x08000edc 0x20 ./Core/Src/main.o + 0x08000edc resetReport .text.Error_Handler - 0x08000ea8 0xc ./Core/Src/main.o - 0x08000ea8 Error_Handler + 0x08000efc 0xc ./Core/Src/main.o + 0x08000efc Error_Handler .text.HAL_MspInit - 0x08000eb4 0x50 ./Core/Src/stm32f4xx_hal_msp.o - 0x08000eb4 HAL_MspInit + 0x08000f08 0x50 ./Core/Src/stm32f4xx_hal_msp.o + 0x08000f08 HAL_MspInit .text.NMI_Handler - 0x08000f04 0x8 ./Core/Src/stm32f4xx_it.o - 0x08000f04 NMI_Handler + 0x08000f58 0x8 ./Core/Src/stm32f4xx_it.o + 0x08000f58 NMI_Handler .text.HardFault_Handler - 0x08000f0c 0x8 ./Core/Src/stm32f4xx_it.o - 0x08000f0c HardFault_Handler + 0x08000f60 0x8 ./Core/Src/stm32f4xx_it.o + 0x08000f60 HardFault_Handler .text.MemManage_Handler - 0x08000f14 0x8 ./Core/Src/stm32f4xx_it.o - 0x08000f14 MemManage_Handler + 0x08000f68 0x8 ./Core/Src/stm32f4xx_it.o + 0x08000f68 MemManage_Handler .text.BusFault_Handler - 0x08000f1c 0x8 ./Core/Src/stm32f4xx_it.o - 0x08000f1c BusFault_Handler + 0x08000f70 0x8 ./Core/Src/stm32f4xx_it.o + 0x08000f70 BusFault_Handler .text.UsageFault_Handler - 0x08000f24 0x8 ./Core/Src/stm32f4xx_it.o - 0x08000f24 UsageFault_Handler + 0x08000f78 0x8 ./Core/Src/stm32f4xx_it.o + 0x08000f78 UsageFault_Handler .text.SVC_Handler - 0x08000f2c 0xe ./Core/Src/stm32f4xx_it.o - 0x08000f2c SVC_Handler + 0x08000f80 0xe ./Core/Src/stm32f4xx_it.o + 0x08000f80 SVC_Handler .text.DebugMon_Handler - 0x08000f3a 0xe ./Core/Src/stm32f4xx_it.o - 0x08000f3a DebugMon_Handler + 0x08000f8e 0xe ./Core/Src/stm32f4xx_it.o + 0x08000f8e DebugMon_Handler .text.PendSV_Handler - 0x08000f48 0xe ./Core/Src/stm32f4xx_it.o - 0x08000f48 PendSV_Handler + 0x08000f9c 0xe ./Core/Src/stm32f4xx_it.o + 0x08000f9c PendSV_Handler .text.SysTick_Handler - 0x08000f56 0xc ./Core/Src/stm32f4xx_it.o - 0x08000f56 SysTick_Handler - *fill* 0x08000f62 0x2 + 0x08000faa 0xc ./Core/Src/stm32f4xx_it.o + 0x08000faa SysTick_Handler + *fill* 0x08000fb6 0x2 .text.DMA1_Stream0_IRQHandler - 0x08000f64 0x14 ./Core/Src/stm32f4xx_it.o - 0x08000f64 DMA1_Stream0_IRQHandler + 0x08000fb8 0x14 ./Core/Src/stm32f4xx_it.o + 0x08000fb8 DMA1_Stream0_IRQHandler .text.DMA1_Stream2_IRQHandler - 0x08000f78 0x14 ./Core/Src/stm32f4xx_it.o - 0x08000f78 DMA1_Stream2_IRQHandler + 0x08000fcc 0x14 ./Core/Src/stm32f4xx_it.o + 0x08000fcc DMA1_Stream2_IRQHandler .text.DMA1_Stream4_IRQHandler - 0x08000f8c 0x14 ./Core/Src/stm32f4xx_it.o - 0x08000f8c DMA1_Stream4_IRQHandler + 0x08000fe0 0x14 ./Core/Src/stm32f4xx_it.o + 0x08000fe0 DMA1_Stream4_IRQHandler .text.DMA1_Stream5_IRQHandler - 0x08000fa0 0x14 ./Core/Src/stm32f4xx_it.o - 0x08000fa0 DMA1_Stream5_IRQHandler + 0x08000ff4 0x14 ./Core/Src/stm32f4xx_it.o + 0x08000ff4 DMA1_Stream5_IRQHandler .text.DMA1_Stream6_IRQHandler - 0x08000fb4 0x14 ./Core/Src/stm32f4xx_it.o - 0x08000fb4 DMA1_Stream6_IRQHandler + 0x08001008 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001008 DMA1_Stream6_IRQHandler .text.USART1_IRQHandler - 0x08000fc8 0x14 ./Core/Src/stm32f4xx_it.o - 0x08000fc8 USART1_IRQHandler + 0x0800101c 0x14 ./Core/Src/stm32f4xx_it.o + 0x0800101c USART1_IRQHandler .text.USART2_IRQHandler - 0x08000fdc 0x14 ./Core/Src/stm32f4xx_it.o - 0x08000fdc USART2_IRQHandler + 0x08001030 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001030 USART2_IRQHandler .text.DMA1_Stream7_IRQHandler - 0x08000ff0 0x14 ./Core/Src/stm32f4xx_it.o - 0x08000ff0 DMA1_Stream7_IRQHandler + 0x08001044 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001044 DMA1_Stream7_IRQHandler .text.UART4_IRQHandler - 0x08001004 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001004 UART4_IRQHandler + 0x08001058 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001058 UART4_IRQHandler .text.UART5_IRQHandler - 0x08001018 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001018 UART5_IRQHandler + 0x0800106c 0x14 ./Core/Src/stm32f4xx_it.o + 0x0800106c UART5_IRQHandler .text.DMA2_Stream2_IRQHandler - 0x0800102c 0x14 ./Core/Src/stm32f4xx_it.o - 0x0800102c DMA2_Stream2_IRQHandler + 0x08001080 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001080 DMA2_Stream2_IRQHandler .text.OTG_FS_IRQHandler - 0x08001040 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001040 OTG_FS_IRQHandler + 0x08001094 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001094 OTG_FS_IRQHandler .text.DMA2_Stream7_IRQHandler - 0x08001054 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001054 DMA2_Stream7_IRQHandler + 0x080010a8 0x14 ./Core/Src/stm32f4xx_it.o + 0x080010a8 DMA2_Stream7_IRQHandler .text.SystemInit - 0x08001068 0x24 ./Core/Src/system_stm32f4xx.o - 0x08001068 SystemInit + 0x080010bc 0x24 ./Core/Src/system_stm32f4xx.o + 0x080010bc SystemInit .text.MX_TIM2_Init - 0x0800108c 0xb0 ./Core/Src/tim.o - 0x0800108c MX_TIM2_Init + 0x080010e0 0xb0 ./Core/Src/tim.o + 0x080010e0 MX_TIM2_Init .text.MX_TIM3_Init - 0x0800113c 0xa8 ./Core/Src/tim.o - 0x0800113c MX_TIM3_Init + 0x08001190 0xa8 ./Core/Src/tim.o + 0x08001190 MX_TIM3_Init .text.HAL_TIM_OC_MspInit - 0x080011e4 0x40 ./Core/Src/tim.o - 0x080011e4 HAL_TIM_OC_MspInit + 0x08001238 0x40 ./Core/Src/tim.o + 0x08001238 HAL_TIM_OC_MspInit .text.HAL_TIM_Encoder_MspInit - 0x08001224 0x90 ./Core/Src/tim.o - 0x08001224 HAL_TIM_Encoder_MspInit + 0x08001278 0x90 ./Core/Src/tim.o + 0x08001278 HAL_TIM_Encoder_MspInit .text.HAL_TIM_MspPostInit - 0x080012b4 0x70 ./Core/Src/tim.o - 0x080012b4 HAL_TIM_MspPostInit + 0x08001308 0x70 ./Core/Src/tim.o + 0x08001308 HAL_TIM_MspPostInit .text.MX_UART4_Init - 0x08001324 0x54 ./Core/Src/usart.o - 0x08001324 MX_UART4_Init - .text.MX_UART5_Init 0x08001378 0x54 ./Core/Src/usart.o - 0x08001378 MX_UART5_Init - .text.MX_USART1_UART_Init + 0x08001378 MX_UART4_Init + .text.MX_UART5_Init 0x080013cc 0x54 ./Core/Src/usart.o - 0x080013cc MX_USART1_UART_Init - .text.MX_USART2_UART_Init + 0x080013cc MX_UART5_Init + .text.MX_USART1_UART_Init 0x08001420 0x54 ./Core/Src/usart.o - 0x08001420 MX_USART2_UART_Init + 0x08001420 MX_USART1_UART_Init + .text.MX_USART2_UART_Init + 0x08001474 0x54 ./Core/Src/usart.o + 0x08001474 MX_USART2_UART_Init .text.HAL_UART_MspInit - 0x08001474 0x584 ./Core/Src/usart.o - 0x08001474 HAL_UART_MspInit + 0x080014c8 0x584 ./Core/Src/usart.o + 0x080014c8 HAL_UART_MspInit .text.Reset_Handler - 0x080019f8 0x50 ./Core/Startup/startup_stm32f446retx.o - 0x080019f8 Reset_Handler + 0x08001a4c 0x50 ./Core/Startup/startup_stm32f446retx.o + 0x08001a4c Reset_Handler .text.Default_Handler - 0x08001a48 0x2 ./Core/Startup/startup_stm32f446retx.o - 0x08001a48 RTC_Alarm_IRQHandler - 0x08001a48 EXTI2_IRQHandler - 0x08001a48 TIM8_CC_IRQHandler - 0x08001a48 FMPI2C1_EV_IRQHandler - 0x08001a48 SPI4_IRQHandler - 0x08001a48 TIM1_CC_IRQHandler - 0x08001a48 DMA2_Stream5_IRQHandler - 0x08001a48 PVD_IRQHandler - 0x08001a48 SDIO_IRQHandler - 0x08001a48 TAMP_STAMP_IRQHandler - 0x08001a48 CAN2_RX1_IRQHandler - 0x08001a48 EXTI3_IRQHandler - 0x08001a48 TIM8_TRG_COM_TIM14_IRQHandler - 0x08001a48 TIM1_UP_TIM10_IRQHandler - 0x08001a48 TIM8_UP_TIM13_IRQHandler - 0x08001a48 I2C3_ER_IRQHandler - 0x08001a48 EXTI0_IRQHandler - 0x08001a48 I2C2_EV_IRQHandler - 0x08001a48 CAN1_RX0_IRQHandler - 0x08001a48 FPU_IRQHandler - 0x08001a48 OTG_HS_WKUP_IRQHandler - 0x08001a48 CAN2_SCE_IRQHandler - 0x08001a48 SPI1_IRQHandler - 0x08001a48 TIM6_DAC_IRQHandler - 0x08001a48 TIM1_BRK_TIM9_IRQHandler - 0x08001a48 DCMI_IRQHandler - 0x08001a48 CAN2_RX0_IRQHandler - 0x08001a48 DMA2_Stream3_IRQHandler - 0x08001a48 SAI2_IRQHandler - 0x08001a48 USART6_IRQHandler - 0x08001a48 USART3_IRQHandler - 0x08001a48 CAN1_RX1_IRQHandler - 0x08001a48 DMA2_Stream0_IRQHandler - 0x08001a48 TIM4_IRQHandler - 0x08001a48 QUADSPI_IRQHandler - 0x08001a48 I2C1_EV_IRQHandler - 0x08001a48 DMA1_Stream1_IRQHandler - 0x08001a48 TIM3_IRQHandler - 0x08001a48 RCC_IRQHandler - 0x08001a48 TIM8_BRK_TIM12_IRQHandler - 0x08001a48 Default_Handler - 0x08001a48 CEC_IRQHandler - 0x08001a48 EXTI15_10_IRQHandler - 0x08001a48 ADC_IRQHandler - 0x08001a48 TIM7_IRQHandler - 0x08001a48 CAN2_TX_IRQHandler - 0x08001a48 TIM5_IRQHandler - 0x08001a48 I2C3_EV_IRQHandler - 0x08001a48 EXTI9_5_IRQHandler - 0x08001a48 RTC_WKUP_IRQHandler - 0x08001a48 SPDIF_RX_IRQHandler - 0x08001a48 SPI2_IRQHandler - 0x08001a48 OTG_HS_EP1_IN_IRQHandler - 0x08001a48 CAN1_TX_IRQHandler - 0x08001a48 FMPI2C1_ER_IRQHandler - 0x08001a48 EXTI4_IRQHandler - 0x08001a48 OTG_HS_EP1_OUT_IRQHandler - 0x08001a48 WWDG_IRQHandler - 0x08001a48 TIM2_IRQHandler - 0x08001a48 OTG_FS_WKUP_IRQHandler - 0x08001a48 TIM1_TRG_COM_TIM11_IRQHandler - 0x08001a48 OTG_HS_IRQHandler - 0x08001a48 EXTI1_IRQHandler - 0x08001a48 I2C2_ER_IRQHandler - 0x08001a48 DMA2_Stream1_IRQHandler - 0x08001a48 CAN1_SCE_IRQHandler - 0x08001a48 FLASH_IRQHandler - 0x08001a48 DMA2_Stream4_IRQHandler - 0x08001a48 SPI3_IRQHandler - 0x08001a48 I2C1_ER_IRQHandler - 0x08001a48 FMC_IRQHandler - 0x08001a48 DMA2_Stream6_IRQHandler - 0x08001a48 SAI1_IRQHandler - 0x08001a48 DMA1_Stream3_IRQHandler - *fill* 0x08001a4a 0x2 + 0x08001a9c 0x2 ./Core/Startup/startup_stm32f446retx.o + 0x08001a9c RTC_Alarm_IRQHandler + 0x08001a9c EXTI2_IRQHandler + 0x08001a9c TIM8_CC_IRQHandler + 0x08001a9c FMPI2C1_EV_IRQHandler + 0x08001a9c SPI4_IRQHandler + 0x08001a9c TIM1_CC_IRQHandler + 0x08001a9c DMA2_Stream5_IRQHandler + 0x08001a9c PVD_IRQHandler + 0x08001a9c SDIO_IRQHandler + 0x08001a9c TAMP_STAMP_IRQHandler + 0x08001a9c CAN2_RX1_IRQHandler + 0x08001a9c EXTI3_IRQHandler + 0x08001a9c TIM8_TRG_COM_TIM14_IRQHandler + 0x08001a9c TIM1_UP_TIM10_IRQHandler + 0x08001a9c TIM8_UP_TIM13_IRQHandler + 0x08001a9c I2C3_ER_IRQHandler + 0x08001a9c EXTI0_IRQHandler + 0x08001a9c I2C2_EV_IRQHandler + 0x08001a9c CAN1_RX0_IRQHandler + 0x08001a9c FPU_IRQHandler + 0x08001a9c OTG_HS_WKUP_IRQHandler + 0x08001a9c CAN2_SCE_IRQHandler + 0x08001a9c SPI1_IRQHandler + 0x08001a9c TIM6_DAC_IRQHandler + 0x08001a9c TIM1_BRK_TIM9_IRQHandler + 0x08001a9c DCMI_IRQHandler + 0x08001a9c CAN2_RX0_IRQHandler + 0x08001a9c DMA2_Stream3_IRQHandler + 0x08001a9c SAI2_IRQHandler + 0x08001a9c USART6_IRQHandler + 0x08001a9c USART3_IRQHandler + 0x08001a9c CAN1_RX1_IRQHandler + 0x08001a9c DMA2_Stream0_IRQHandler + 0x08001a9c TIM4_IRQHandler + 0x08001a9c QUADSPI_IRQHandler + 0x08001a9c I2C1_EV_IRQHandler + 0x08001a9c DMA1_Stream1_IRQHandler + 0x08001a9c TIM3_IRQHandler + 0x08001a9c RCC_IRQHandler + 0x08001a9c TIM8_BRK_TIM12_IRQHandler + 0x08001a9c Default_Handler + 0x08001a9c CEC_IRQHandler + 0x08001a9c EXTI15_10_IRQHandler + 0x08001a9c ADC_IRQHandler + 0x08001a9c TIM7_IRQHandler + 0x08001a9c CAN2_TX_IRQHandler + 0x08001a9c TIM5_IRQHandler + 0x08001a9c I2C3_EV_IRQHandler + 0x08001a9c EXTI9_5_IRQHandler + 0x08001a9c RTC_WKUP_IRQHandler + 0x08001a9c SPDIF_RX_IRQHandler + 0x08001a9c SPI2_IRQHandler + 0x08001a9c OTG_HS_EP1_IN_IRQHandler + 0x08001a9c CAN1_TX_IRQHandler + 0x08001a9c FMPI2C1_ER_IRQHandler + 0x08001a9c EXTI4_IRQHandler + 0x08001a9c OTG_HS_EP1_OUT_IRQHandler + 0x08001a9c WWDG_IRQHandler + 0x08001a9c TIM2_IRQHandler + 0x08001a9c OTG_FS_WKUP_IRQHandler + 0x08001a9c TIM1_TRG_COM_TIM11_IRQHandler + 0x08001a9c OTG_HS_IRQHandler + 0x08001a9c EXTI1_IRQHandler + 0x08001a9c I2C2_ER_IRQHandler + 0x08001a9c DMA2_Stream1_IRQHandler + 0x08001a9c CAN1_SCE_IRQHandler + 0x08001a9c FLASH_IRQHandler + 0x08001a9c DMA2_Stream4_IRQHandler + 0x08001a9c SPI3_IRQHandler + 0x08001a9c I2C1_ER_IRQHandler + 0x08001a9c FMC_IRQHandler + 0x08001a9c DMA2_Stream6_IRQHandler + 0x08001a9c SAI1_IRQHandler + 0x08001a9c DMA1_Stream3_IRQHandler + *fill* 0x08001a9e 0x2 .text.HAL_Init - 0x08001a4c 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001a4c HAL_Init + 0x08001aa0 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001aa0 HAL_Init .text.HAL_InitTick - 0x08001a90 0x60 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001a90 HAL_InitTick + 0x08001ae4 0x60 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001ae4 HAL_InitTick .text.HAL_IncTick - 0x08001af0 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001af0 HAL_IncTick + 0x08001b44 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001b44 HAL_IncTick .text.HAL_GetTick - 0x08001b18 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001b18 HAL_GetTick + 0x08001b6c 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001b6c HAL_GetTick .text.HAL_Delay - 0x08001b30 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001b30 HAL_Delay + 0x08001b84 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001b84 HAL_Delay .text.__NVIC_SetPriorityGrouping - 0x08001b78 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001bcc 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.__NVIC_GetPriorityGrouping - 0x08001bc0 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001c14 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.__NVIC_EnableIRQ - 0x08001bdc 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001c30 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.__NVIC_SetPriority - 0x08001c18 0x54 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001c6c 0x54 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.NVIC_EncodePriority - 0x08001c6c 0x66 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - *fill* 0x08001cd2 0x2 + 0x08001cc0 0x66 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + *fill* 0x08001d26 0x2 .text.SysTick_Config - 0x08001cd4 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001d28 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.HAL_NVIC_SetPriorityGrouping - 0x08001d18 0x16 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x08001d18 HAL_NVIC_SetPriorityGrouping + 0x08001d6c 0x16 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001d6c HAL_NVIC_SetPriorityGrouping .text.HAL_NVIC_SetPriority - 0x08001d2e 0x38 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x08001d2e HAL_NVIC_SetPriority + 0x08001d82 0x38 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001d82 HAL_NVIC_SetPriority .text.HAL_NVIC_EnableIRQ - 0x08001d66 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x08001d66 HAL_NVIC_EnableIRQ + 0x08001dba 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001dba HAL_NVIC_EnableIRQ .text.HAL_SYSTICK_Config - 0x08001d82 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x08001d82 HAL_SYSTICK_Config - *fill* 0x08001d9a 0x2 + 0x08001dd6 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001dd6 HAL_SYSTICK_Config + *fill* 0x08001dee 0x2 .text.HAL_DMA_Init - 0x08001d9c 0x15c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x08001d9c HAL_DMA_Init + 0x08001df0 0x15c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x08001df0 HAL_DMA_Init .text.HAL_DMA_Start_IT - 0x08001ef8 0xb0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x08001ef8 HAL_DMA_Start_IT + 0x08001f4c 0xb0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x08001f4c HAL_DMA_Start_IT .text.HAL_DMA_Abort - 0x08001fa8 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x08001fa8 HAL_DMA_Abort + 0x08001ffc 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x08001ffc HAL_DMA_Abort .text.HAL_DMA_Abort_IT - 0x08002088 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x08002088 HAL_DMA_Abort_IT + 0x080020dc 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x080020dc HAL_DMA_Abort_IT .text.HAL_DMA_IRQHandler - 0x080020cc 0x314 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x080020cc HAL_DMA_IRQHandler + 0x08002120 0x314 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x08002120 HAL_DMA_IRQHandler .text.DMA_SetConfig - 0x080023e0 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x08002434 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o .text.DMA_CalcBaseAndBitshift - 0x0800243c 0x6c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x08002490 0x6c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o .text.DMA_CheckFifoParam - 0x080024a8 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x080024fc 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o .text.HAL_GPIO_Init - 0x080025a0 0x328 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - 0x080025a0 HAL_GPIO_Init + 0x080025f4 0x328 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x080025f4 HAL_GPIO_Init .text.HAL_GPIO_ReadPin - 0x080028c8 0x30 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - 0x080028c8 HAL_GPIO_ReadPin + 0x0800291c 0x30 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x0800291c HAL_GPIO_ReadPin .text.HAL_GPIO_WritePin - 0x080028f8 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - 0x080028f8 HAL_GPIO_WritePin - *fill* 0x0800292a 0x2 + 0x0800294c 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x0800294c HAL_GPIO_WritePin + *fill* 0x0800297e 0x2 .text.HAL_I2C_Init - 0x0800292c 0x288 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o - 0x0800292c HAL_I2C_Init + 0x08002980 0x288 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + 0x08002980 HAL_I2C_Init .text.HAL_PCD_Init - 0x08002bb4 0x22c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08002bb4 HAL_PCD_Init + 0x08002c08 0x22c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08002c08 HAL_PCD_Init .text.HAL_PCD_Start - 0x08002de0 0x6a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08002de0 HAL_PCD_Start + 0x08002e34 0x6a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08002e34 HAL_PCD_Start .text.HAL_PCD_IRQHandler - 0x08002e4a 0x99c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08002e4a HAL_PCD_IRQHandler + 0x08002e9e 0x99c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08002e9e HAL_PCD_IRQHandler .text.HAL_PCD_SetAddress - 0x080037e6 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x080037e6 HAL_PCD_SetAddress + 0x0800383a 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x0800383a HAL_PCD_SetAddress .text.HAL_PCD_EP_Open - 0x0800382e 0xd4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x0800382e HAL_PCD_EP_Open + 0x08003882 0xd4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003882 HAL_PCD_EP_Open .text.HAL_PCD_EP_Close - 0x08003902 0x94 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003902 HAL_PCD_EP_Close + 0x08003956 0x94 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003956 HAL_PCD_EP_Close .text.HAL_PCD_EP_Receive - 0x08003996 0x76 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003996 HAL_PCD_EP_Receive + 0x080039ea 0x76 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x080039ea HAL_PCD_EP_Receive .text.HAL_PCD_EP_Transmit - 0x08003a0c 0x74 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003a0c HAL_PCD_EP_Transmit + 0x08003a60 0x74 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003a60 HAL_PCD_EP_Transmit .text.HAL_PCD_EP_SetStall - 0x08003a80 0xc6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003a80 HAL_PCD_EP_SetStall + 0x08003ad4 0xc6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003ad4 HAL_PCD_EP_SetStall .text.HAL_PCD_EP_ClrStall - 0x08003b46 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003b46 HAL_PCD_EP_ClrStall + 0x08003b9a 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003b9a HAL_PCD_EP_ClrStall .text.HAL_PCD_EP_Abort - 0x08003bf2 0x62 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003bf2 HAL_PCD_EP_Abort + 0x08003c46 0x62 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003c46 HAL_PCD_EP_Abort .text.PCD_WriteEmptyTxFifo - 0x08003c54 0x118 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003ca8 0x118 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o .text.PCD_EP_OutXfrComplete_int - 0x08003d6c 0x1d0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003dc0 0x1d0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o .text.PCD_EP_OutSetupPacket_int - 0x08003f3c 0x8c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003f90 0x8c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o .text.HAL_PCDEx_SetTxFiFo - 0x08003fc8 0x8e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - 0x08003fc8 HAL_PCDEx_SetTxFiFo + 0x0800401c 0x8e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + 0x0800401c HAL_PCDEx_SetTxFiFo .text.HAL_PCDEx_SetRxFiFo - 0x08004056 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - 0x08004056 HAL_PCDEx_SetRxFiFo + 0x080040aa 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + 0x080040aa HAL_PCDEx_SetRxFiFo .text.HAL_PCDEx_ActivateLPM - 0x08004078 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - 0x08004078 HAL_PCDEx_ActivateLPM + 0x080040cc 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + 0x080040cc HAL_PCDEx_ActivateLPM .text.HAL_RCC_ClockConfig - 0x080040c0 0x1cc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x080040c0 HAL_RCC_ClockConfig + 0x08004114 0x1cc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x08004114 HAL_RCC_ClockConfig .text.HAL_RCC_GetHCLKFreq - 0x0800428c 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x0800428c HAL_RCC_GetHCLKFreq + 0x080042e0 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x080042e0 HAL_RCC_GetHCLKFreq .text.HAL_RCC_GetPCLK1Freq - 0x080042a4 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x080042a4 HAL_RCC_GetPCLK1Freq + 0x080042f8 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x080042f8 HAL_RCC_GetPCLK1Freq .text.HAL_RCC_GetPCLK2Freq - 0x080042cc 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x080042cc HAL_RCC_GetPCLK2Freq + 0x08004320 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x08004320 HAL_RCC_GetPCLK2Freq .text.HAL_RCCEx_PeriphCLKConfig - 0x080042f4 0x654 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - 0x080042f4 HAL_RCCEx_PeriphCLKConfig + 0x08004348 0x654 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x08004348 HAL_RCCEx_PeriphCLKConfig .text.HAL_RCC_GetSysClockFreq - 0x08004948 0x460 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - 0x08004948 HAL_RCC_GetSysClockFreq + 0x0800499c 0x460 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x0800499c HAL_RCC_GetSysClockFreq .text.HAL_RCC_OscConfig - 0x08004da8 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - 0x08004da8 HAL_RCC_OscConfig + 0x08004dfc 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x08004dfc HAL_RCC_OscConfig .text.HAL_TIM_OC_Init - 0x080052e4 0x9e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x080052e4 HAL_TIM_OC_Init + 0x08005338 0x9e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005338 HAL_TIM_OC_Init .text.HAL_TIM_Encoder_Init - 0x08005382 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005382 HAL_TIM_Encoder_Init - *fill* 0x080054ce 0x2 + 0x080053d6 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080053d6 HAL_TIM_Encoder_Init + *fill* 0x08005522 0x2 .text.HAL_TIM_OC_ConfigChannel - 0x080054d0 0xb8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x080054d0 HAL_TIM_OC_ConfigChannel + 0x08005524 0xb8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005524 HAL_TIM_OC_ConfigChannel .text.TIM_Base_SetConfig - 0x08005588 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005588 TIM_Base_SetConfig + 0x080055dc 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080055dc TIM_Base_SetConfig .text.TIM_OC1_SetConfig - 0x080056d4 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005728 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_OC2_SetConfig - 0x080057b4 0xec ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x080057b4 TIM_OC2_SetConfig + 0x08005808 0xec ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005808 TIM_OC2_SetConfig .text.TIM_OC3_SetConfig - 0x080058a0 0xe8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080058f4 0xe8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_OC4_SetConfig - 0x08005988 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080059dc 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.HAL_TIMEx_MasterConfigSynchronization - 0x08005a34 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - 0x08005a34 HAL_TIMEx_MasterConfigSynchronization + 0x08005a88 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + 0x08005a88 HAL_TIMEx_MasterConfigSynchronization .text.HAL_UART_Init - 0x08005b2c 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08005b2c HAL_UART_Init + 0x08005b80 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08005b80 HAL_UART_Init .text.HAL_UART_Transmit_DMA - 0x08005bcc 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08005bcc HAL_UART_Transmit_DMA + 0x08005c20 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08005c20 HAL_UART_Transmit_DMA .text.HAL_UART_Receive_DMA - 0x08005cc4 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08005cc4 HAL_UART_Receive_DMA - *fill* 0x08005d0e 0x2 + 0x08005d18 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08005d18 HAL_UART_Receive_DMA + *fill* 0x08005d62 0x2 .text.HAL_UART_IRQHandler - 0x08005d10 0x554 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08005d10 HAL_UART_IRQHandler + 0x08005d64 0x554 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08005d64 HAL_UART_IRQHandler .text.HAL_UART_TxCpltCallback - 0x08006264 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006264 HAL_UART_TxCpltCallback + 0x080062b8 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080062b8 HAL_UART_TxCpltCallback .text.HAL_UART_TxHalfCpltCallback - 0x08006278 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006278 HAL_UART_TxHalfCpltCallback + 0x080062cc 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080062cc HAL_UART_TxHalfCpltCallback .text.HAL_UART_RxHalfCpltCallback - 0x0800628c 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x0800628c HAL_UART_RxHalfCpltCallback + 0x080062e0 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080062e0 HAL_UART_RxHalfCpltCallback .text.HAL_UARTEx_RxEventCallback - 0x080062a0 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x080062a0 HAL_UARTEx_RxEventCallback + 0x080062f4 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080062f4 HAL_UARTEx_RxEventCallback .text.UART_DMATransmitCplt - 0x080062b8 0x9a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x0800630c 0x9a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMATxHalfCplt - 0x08006352 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080063a6 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMAReceiveCplt - 0x0800636e 0x12c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080063c2 0x12c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMARxHalfCplt - 0x0800649a 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080064ee 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMAError - 0x080064d6 0x94 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - *fill* 0x0800656a 0x2 + 0x0800652a 0x94 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + *fill* 0x080065be 0x2 .text.UART_Start_Receive_DMA - 0x0800656c 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x0800656c UART_Start_Receive_DMA + 0x080065c0 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080065c0 UART_Start_Receive_DMA .text.UART_EndTxTransfer - 0x080066b8 0x50 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x0800670c 0x50 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_EndRxTransfer - 0x08006708 0xc6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x0800675c 0xc6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMAAbortOnError - 0x080067ce 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006822 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_Transmit_IT - 0x080067f0 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006844 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_EndTransmit_IT - 0x08006890 0x30 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080068e4 0x30 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_Receive_IT - 0x080068c0 0x17c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006914 0x17c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_SetConfig - 0x08006a3c 0x4e8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006a90 0x4e8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.USB_CoreInit - 0x08006f24 0xc8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08006f24 USB_CoreInit + 0x08006f78 0xc8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08006f78 USB_CoreInit .text.USB_SetTurnaroundTime - 0x08006fec 0x144 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08006fec USB_SetTurnaroundTime + 0x08007040 0x144 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007040 USB_SetTurnaroundTime .text.USB_EnableGlobalInt - 0x08007130 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007130 USB_EnableGlobalInt + 0x08007184 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007184 USB_EnableGlobalInt .text.USB_DisableGlobalInt - 0x08007152 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007152 USB_DisableGlobalInt + 0x080071a6 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080071a6 USB_DisableGlobalInt .text.USB_SetCurrentMode - 0x08007174 0x98 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007174 USB_SetCurrentMode + 0x080071c8 0x98 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080071c8 USB_SetCurrentMode .text.USB_DevInit - 0x0800720c 0x2bc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x0800720c USB_DevInit + 0x08007260 0x2bc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007260 USB_DevInit .text.USB_FlushTxFifo - 0x080074c8 0x64 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x080074c8 USB_FlushTxFifo + 0x0800751c 0x64 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x0800751c USB_FlushTxFifo .text.USB_FlushRxFifo - 0x0800752c 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x0800752c USB_FlushRxFifo + 0x08007580 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007580 USB_FlushRxFifo .text.USB_SetDevSpeed - 0x08007588 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007588 USB_SetDevSpeed + 0x080075dc 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080075dc USB_SetDevSpeed .text.USB_GetDevSpeed - 0x080075ba 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x080075ba USB_GetDevSpeed + 0x0800760e 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x0800760e USB_GetDevSpeed .text.USB_ActivateEndpoint - 0x08007604 0x10e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007604 USB_ActivateEndpoint - *fill* 0x08007712 0x2 + 0x08007658 0x10e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007658 USB_ActivateEndpoint + *fill* 0x08007766 0x2 .text.USB_DeactivateEndpoint - 0x08007714 0x1b8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007714 USB_DeactivateEndpoint + 0x08007768 0x1b8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007768 USB_DeactivateEndpoint .text.USB_EPStartXfer - 0x080078cc 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x080078cc USB_EPStartXfer + 0x08007920 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007920 USB_EPStartXfer .text.USB_EPStopXfer - 0x08007e08 0x154 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007e08 USB_EPStopXfer + 0x08007e5c 0x154 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007e5c USB_EPStopXfer .text.USB_WritePacket - 0x08007f5c 0x7c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007f5c USB_WritePacket + 0x08007fb0 0x7c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007fb0 USB_WritePacket .text.USB_ReadPacket - 0x08007fd8 0xb0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007fd8 USB_ReadPacket + 0x0800802c 0xb0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x0800802c USB_ReadPacket .text.USB_EPSetStall - 0x08008088 0xdc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008088 USB_EPSetStall + 0x080080dc 0xdc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080080dc USB_EPSetStall .text.USB_EPClearStall - 0x08008164 0xcc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008164 USB_EPClearStall + 0x080081b8 0xcc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080081b8 USB_EPClearStall .text.USB_SetDevAddress - 0x08008230 0x4c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008230 USB_SetDevAddress + 0x08008284 0x4c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008284 USB_SetDevAddress .text.USB_DevConnect - 0x0800827c 0x42 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x0800827c USB_DevConnect + 0x080082d0 0x42 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080082d0 USB_DevConnect .text.USB_DevDisconnect - 0x080082be 0x42 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x080082be USB_DevDisconnect + 0x08008312 0x42 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008312 USB_DevDisconnect .text.USB_ReadInterrupts - 0x08008300 0x26 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008300 USB_ReadInterrupts + 0x08008354 0x26 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008354 USB_ReadInterrupts .text.USB_ReadDevAllOutEpInterrupt - 0x08008326 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008326 USB_ReadDevAllOutEpInterrupt + 0x0800837a 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x0800837a USB_ReadDevAllOutEpInterrupt .text.USB_ReadDevAllInEpInterrupt - 0x0800835a 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x0800835a USB_ReadDevAllInEpInterrupt + 0x080083ae 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080083ae USB_ReadDevAllInEpInterrupt .text.USB_ReadDevOutEPInterrupt - 0x0800838e 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x0800838e USB_ReadDevOutEPInterrupt + 0x080083e2 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080083e2 USB_ReadDevOutEPInterrupt .text.USB_ReadDevInEPInterrupt - 0x080083ca 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x080083ca USB_ReadDevInEPInterrupt + 0x0800841e 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x0800841e USB_ReadDevInEPInterrupt .text.USB_GetMode - 0x08008426 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008426 USB_GetMode + 0x0800847a 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x0800847a USB_GetMode .text.USB_ActivateSetup - 0x08008442 0x46 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008442 USB_ActivateSetup + 0x08008496 0x46 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008496 USB_ActivateSetup .text.USB_EP0_OutStart - 0x08008488 0xbc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008488 USB_EP0_OutStart + 0x080084dc 0xbc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080084dc USB_EP0_OutStart .text.USB_CoreReset - 0x08008544 0x70 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008598 0x70 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o .text.USBD_HID_Init - 0x080085b4 0xcc ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08008608 0xcc ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_DeInit - 0x08008680 0x90 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x080086d4 0x90 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_Setup - 0x08008710 0x210 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08008764 0x210 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_SendReport - 0x08008920 0x60 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - 0x08008920 USBD_HID_SendReport + 0x08008974 0x60 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08008974 USBD_HID_SendReport .text.USBD_HID_GetFSCfgDesc - 0x08008980 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x080089d4 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_GetHSCfgDesc - 0x080089b4 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08008a08 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_GetOtherSpeedCfgDesc - 0x080089e8 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08008a3c 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_DataIn - 0x08008a1c 0x2c ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08008a70 0x2c ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_GetDeviceQualifierDesc - 0x08008a48 0x20 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08008a9c 0x20 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_Init - 0x08008a68 0x60 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08008a68 USBD_Init + 0x08008abc 0x60 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08008abc USBD_Init .text.USBD_RegisterClass - 0x08008ac8 0x6c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08008ac8 USBD_RegisterClass + 0x08008b1c 0x6c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08008b1c USBD_RegisterClass .text.USBD_Start - 0x08008b34 0x18 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08008b34 USBD_Start + 0x08008b88 0x18 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08008b88 USBD_Start .text.USBD_RunTestMode - 0x08008b4c 0x16 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08008b4c USBD_RunTestMode + 0x08008ba0 0x16 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08008ba0 USBD_RunTestMode .text.USBD_SetClassConfig - 0x08008b62 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08008b62 USBD_SetClassConfig + 0x08008bb6 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08008bb6 USBD_SetClassConfig .text.USBD_ClrClassConfig - 0x08008b9a 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08008b9a USBD_ClrClassConfig + 0x08008bee 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08008bee USBD_ClrClassConfig .text.USBD_LL_SetupStage - 0x08008bce 0xaa ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08008bce USBD_LL_SetupStage + 0x08008c22 0xaa ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08008c22 USBD_LL_SetupStage .text.USBD_LL_DataOutStage - 0x08008c78 0x178 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08008c78 USBD_LL_DataOutStage + 0x08008ccc 0x178 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08008ccc USBD_LL_DataOutStage .text.USBD_LL_DataInStage - 0x08008df0 0x176 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08008df0 USBD_LL_DataInStage + 0x08008e44 0x176 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08008e44 USBD_LL_DataInStage .text.USBD_LL_Reset - 0x08008f66 0xa6 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08008f66 USBD_LL_Reset + 0x08008fba 0xa6 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08008fba USBD_LL_Reset .text.USBD_LL_SetSpeed - 0x0800900c 0x20 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x0800900c USBD_LL_SetSpeed + 0x08009060 0x20 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009060 USBD_LL_SetSpeed .text.USBD_LL_Suspend - 0x0800902c 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x0800902c USBD_LL_Suspend + 0x08009080 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009080 USBD_LL_Suspend .text.USBD_LL_Resume - 0x08009064 0x30 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009064 USBD_LL_Resume + 0x080090b8 0x30 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080090b8 USBD_LL_Resume .text.USBD_LL_SOF - 0x08009094 0x40 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009094 USBD_LL_SOF + 0x080090e8 0x40 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080090e8 USBD_LL_SOF .text.USBD_LL_IsoINIncomplete - 0x080090d4 0x64 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x080090d4 USBD_LL_IsoINIncomplete + 0x08009128 0x64 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009128 USBD_LL_IsoINIncomplete .text.USBD_LL_IsoOUTIncomplete - 0x08009138 0x64 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009138 USBD_LL_IsoOUTIncomplete + 0x0800918c 0x64 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x0800918c USBD_LL_IsoOUTIncomplete .text.USBD_LL_DevConnected - 0x0800919c 0x16 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x0800919c USBD_LL_DevConnected + 0x080091f0 0x16 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080091f0 USBD_LL_DevConnected .text.USBD_LL_DevDisconnected - 0x080091b2 0x46 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x080091b2 USBD_LL_DevDisconnected + 0x08009206 0x46 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009206 USBD_LL_DevDisconnected .text.USBD_CoreFindIF - 0x080091f8 0x1a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x080091f8 USBD_CoreFindIF + 0x0800924c 0x1a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x0800924c USBD_CoreFindIF .text.USBD_CoreFindEP - 0x08009212 0x1a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009212 USBD_CoreFindEP + 0x08009266 0x1a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009266 USBD_CoreFindEP .text.USBD_GetEpDesc - 0x0800922c 0x70 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x0800922c USBD_GetEpDesc + 0x08009280 0x70 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009280 USBD_GetEpDesc .text.USBD_GetNextDesc - 0x0800929c 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x0800929c USBD_GetNextDesc + 0x080092f0 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080092f0 USBD_GetNextDesc .text.SWAPBYTE - 0x080092d4 0x3e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - *fill* 0x08009312 0x2 + 0x08009328 0x3e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + *fill* 0x08009366 0x2 .text.USBD_StdDevReq - 0x08009314 0xe4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x08009314 USBD_StdDevReq + 0x08009368 0xe4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009368 USBD_StdDevReq .text.USBD_StdItfReq - 0x080093f8 0xd8 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x080093f8 USBD_StdItfReq + 0x0800944c 0xd8 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800944c USBD_StdItfReq .text.USBD_StdEPReq - 0x080094d0 0x33e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x080094d0 USBD_StdEPReq - *fill* 0x0800980e 0x2 + 0x08009524 0x33e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009524 USBD_StdEPReq + *fill* 0x08009862 0x2 .text.USBD_GetDescriptor - 0x08009810 0x328 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009864 0x328 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_SetAddress - 0x08009b38 0x88 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009b8c 0x88 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_SetConfig - 0x08009bc0 0x154 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009c14 0x154 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_GetConfig - 0x08009d14 0x6c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009d68 0x6c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_GetStatus - 0x08009d80 0x68 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009dd4 0x68 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_SetFeature - 0x08009de8 0x52 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009e3c 0x52 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_ClrFeature - 0x08009e3a 0x44 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009e8e 0x44 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_ParseSetupRequest - 0x08009e7e 0x74 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x08009e7e USBD_ParseSetupRequest + 0x08009ed2 0x74 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009ed2 USBD_ParseSetupRequest .text.USBD_CtlError - 0x08009ef2 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x08009ef2 USBD_CtlError + 0x08009f46 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009f46 USBD_CtlError .text.USBD_GetString - 0x08009f14 0xa4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x08009f14 USBD_GetString + 0x08009f68 0xa4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009f68 USBD_GetString .text.USBD_GetLen - 0x08009fb8 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a00c 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_CtlSendData - 0x08009fec 0x3c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x08009fec USBD_CtlSendData + 0x0800a040 0x3c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800a040 USBD_CtlSendData .text.USBD_CtlContinueSendData - 0x0800a028 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800a028 USBD_CtlContinueSendData + 0x0800a07c 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800a07c USBD_CtlContinueSendData .text.USBD_CtlContinueRx - 0x0800a04a 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800a04a USBD_CtlContinueRx + 0x0800a09e 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800a09e USBD_CtlContinueRx .text.USBD_CtlSendStatus - 0x0800a06c 0x26 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800a06c USBD_CtlSendStatus + 0x0800a0c0 0x26 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800a0c0 USBD_CtlSendStatus .text.USBD_CtlReceiveStatus - 0x0800a092 0x26 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800a092 USBD_CtlReceiveStatus + 0x0800a0e6 0x26 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800a0e6 USBD_CtlReceiveStatus .text.MX_USB_DEVICE_Init - 0x0800a0b8 0x4c ./USB_DEVICE/App/usb_device.o - 0x0800a0b8 MX_USB_DEVICE_Init + 0x0800a10c 0x4c ./USB_DEVICE/App/usb_device.o + 0x0800a10c MX_USB_DEVICE_Init .text.USBD_FS_DeviceDescriptor - 0x0800a104 0x24 ./USB_DEVICE/App/usbd_desc.o - 0x0800a104 USBD_FS_DeviceDescriptor + 0x0800a158 0x24 ./USB_DEVICE/App/usbd_desc.o + 0x0800a158 USBD_FS_DeviceDescriptor .text.USBD_FS_LangIDStrDescriptor - 0x0800a128 0x24 ./USB_DEVICE/App/usbd_desc.o - 0x0800a128 USBD_FS_LangIDStrDescriptor + 0x0800a17c 0x24 ./USB_DEVICE/App/usbd_desc.o + 0x0800a17c USBD_FS_LangIDStrDescriptor .text.USBD_FS_ProductStrDescriptor - 0x0800a14c 0x3c ./USB_DEVICE/App/usbd_desc.o - 0x0800a14c USBD_FS_ProductStrDescriptor + 0x0800a1a0 0x3c ./USB_DEVICE/App/usbd_desc.o + 0x0800a1a0 USBD_FS_ProductStrDescriptor .text.USBD_FS_ManufacturerStrDescriptor - 0x0800a188 0x28 ./USB_DEVICE/App/usbd_desc.o - 0x0800a188 USBD_FS_ManufacturerStrDescriptor + 0x0800a1dc 0x28 ./USB_DEVICE/App/usbd_desc.o + 0x0800a1dc USBD_FS_ManufacturerStrDescriptor .text.USBD_FS_SerialStrDescriptor - 0x0800a1b0 0x24 ./USB_DEVICE/App/usbd_desc.o - 0x0800a1b0 USBD_FS_SerialStrDescriptor + 0x0800a204 0x24 ./USB_DEVICE/App/usbd_desc.o + 0x0800a204 USBD_FS_SerialStrDescriptor .text.USBD_FS_ConfigStrDescriptor - 0x0800a1d4 0x3c ./USB_DEVICE/App/usbd_desc.o - 0x0800a1d4 USBD_FS_ConfigStrDescriptor + 0x0800a228 0x3c ./USB_DEVICE/App/usbd_desc.o + 0x0800a228 USBD_FS_ConfigStrDescriptor .text.USBD_FS_InterfaceStrDescriptor - 0x0800a210 0x3c ./USB_DEVICE/App/usbd_desc.o - 0x0800a210 USBD_FS_InterfaceStrDescriptor + 0x0800a264 0x3c ./USB_DEVICE/App/usbd_desc.o + 0x0800a264 USBD_FS_InterfaceStrDescriptor .text.USBD_FS_USR_BOSDescriptor - 0x0800a24c 0x24 ./USB_DEVICE/App/usbd_desc.o - 0x0800a24c USBD_FS_USR_BOSDescriptor + 0x0800a2a0 0x24 ./USB_DEVICE/App/usbd_desc.o + 0x0800a2a0 USBD_FS_USR_BOSDescriptor .text.Get_SerialNum - 0x0800a270 0x58 ./USB_DEVICE/App/usbd_desc.o + 0x0800a2c4 0x58 ./USB_DEVICE/App/usbd_desc.o .text.IntToUnicode - 0x0800a2c8 0x7e ./USB_DEVICE/App/usbd_desc.o - *fill* 0x0800a346 0x2 + 0x0800a31c 0x7e ./USB_DEVICE/App/usbd_desc.o + *fill* 0x0800a39a 0x2 .text.HAL_PCD_MspInit - 0x0800a348 0xd4 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a348 HAL_PCD_MspInit + 0x0800a39c 0xd4 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a39c HAL_PCD_MspInit .text.HAL_PCD_SetupStageCallback - 0x0800a41c 0x24 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a41c HAL_PCD_SetupStageCallback + 0x0800a470 0x24 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a470 HAL_PCD_SetupStageCallback .text.HAL_PCD_DataOutStageCallback - 0x0800a440 0x36 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a440 HAL_PCD_DataOutStageCallback + 0x0800a494 0x36 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a494 HAL_PCD_DataOutStageCallback .text.HAL_PCD_DataInStageCallback - 0x0800a476 0x34 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a476 HAL_PCD_DataInStageCallback + 0x0800a4ca 0x34 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a4ca HAL_PCD_DataInStageCallback .text.HAL_PCD_SOFCallback - 0x0800a4aa 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800a4aa HAL_PCD_SOFCallback + 0x0800a4fe 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800a4fe HAL_PCD_SOFCallback .text.HAL_PCD_ResetCallback - 0x0800a4c6 0x50 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a4c6 HAL_PCD_ResetCallback - *fill* 0x0800a516 0x2 + 0x0800a51a 0x50 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a51a HAL_PCD_ResetCallback + *fill* 0x0800a56a 0x2 .text.HAL_PCD_SuspendCallback - 0x0800a518 0x4c ./USB_DEVICE/Target/usbd_conf.o - 0x0800a518 HAL_PCD_SuspendCallback + 0x0800a56c 0x4c ./USB_DEVICE/Target/usbd_conf.o + 0x0800a56c HAL_PCD_SuspendCallback .text.HAL_PCD_ResumeCallback - 0x0800a564 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800a564 HAL_PCD_ResumeCallback + 0x0800a5b8 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800a5b8 HAL_PCD_ResumeCallback .text.HAL_PCD_ISOOUTIncompleteCallback - 0x0800a580 0x24 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a580 HAL_PCD_ISOOUTIncompleteCallback + 0x0800a5d4 0x24 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a5d4 HAL_PCD_ISOOUTIncompleteCallback .text.HAL_PCD_ISOINIncompleteCallback - 0x0800a5a4 0x24 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a5a4 HAL_PCD_ISOINIncompleteCallback + 0x0800a5f8 0x24 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a5f8 HAL_PCD_ISOINIncompleteCallback .text.HAL_PCD_ConnectCallback - 0x0800a5c8 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800a5c8 HAL_PCD_ConnectCallback + 0x0800a61c 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800a61c HAL_PCD_ConnectCallback .text.HAL_PCD_DisconnectCallback - 0x0800a5e4 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800a5e4 HAL_PCD_DisconnectCallback + 0x0800a638 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800a638 HAL_PCD_DisconnectCallback .text.USBD_LL_Init - 0x0800a600 0x98 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a600 USBD_LL_Init + 0x0800a654 0x98 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a654 USBD_LL_Init .text.USBD_LL_Start - 0x0800a698 0x36 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a698 USBD_LL_Start + 0x0800a6ec 0x36 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a6ec USBD_LL_Start .text.USBD_LL_OpenEP - 0x0800a6ce 0x4c ./USB_DEVICE/Target/usbd_conf.o - 0x0800a6ce USBD_LL_OpenEP + 0x0800a722 0x4c ./USB_DEVICE/Target/usbd_conf.o + 0x0800a722 USBD_LL_OpenEP .text.USBD_LL_CloseEP - 0x0800a71a 0x3e ./USB_DEVICE/Target/usbd_conf.o - 0x0800a71a USBD_LL_CloseEP + 0x0800a76e 0x3e ./USB_DEVICE/Target/usbd_conf.o + 0x0800a76e USBD_LL_CloseEP .text.USBD_LL_StallEP - 0x0800a758 0x3e ./USB_DEVICE/Target/usbd_conf.o - 0x0800a758 USBD_LL_StallEP + 0x0800a7ac 0x3e ./USB_DEVICE/Target/usbd_conf.o + 0x0800a7ac USBD_LL_StallEP .text.USBD_LL_ClearStallEP - 0x0800a796 0x3e ./USB_DEVICE/Target/usbd_conf.o - 0x0800a796 USBD_LL_ClearStallEP + 0x0800a7ea 0x3e ./USB_DEVICE/Target/usbd_conf.o + 0x0800a7ea USBD_LL_ClearStallEP .text.USBD_LL_IsStallEP - 0x0800a7d4 0x58 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a7d4 USBD_LL_IsStallEP + 0x0800a828 0x58 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a828 USBD_LL_IsStallEP .text.USBD_LL_SetUSBAddress - 0x0800a82c 0x3e ./USB_DEVICE/Target/usbd_conf.o - 0x0800a82c USBD_LL_SetUSBAddress + 0x0800a880 0x3e ./USB_DEVICE/Target/usbd_conf.o + 0x0800a880 USBD_LL_SetUSBAddress .text.USBD_LL_Transmit - 0x0800a86a 0x42 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a86a USBD_LL_Transmit + 0x0800a8be 0x42 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a8be USBD_LL_Transmit .text.USBD_LL_PrepareReceive - 0x0800a8ac 0x42 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a8ac USBD_LL_PrepareReceive - *fill* 0x0800a8ee 0x2 + 0x0800a900 0x42 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a900 USBD_LL_PrepareReceive + *fill* 0x0800a942 0x2 .text.HAL_PCDEx_LPM_Callback - 0x0800a8f0 0x9c ./USB_DEVICE/Target/usbd_conf.o - 0x0800a8f0 HAL_PCDEx_LPM_Callback + 0x0800a944 0x9c ./USB_DEVICE/Target/usbd_conf.o + 0x0800a944 HAL_PCDEx_LPM_Callback .text.USBD_static_malloc - 0x0800a98c 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800a98c USBD_static_malloc + 0x0800a9e0 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800a9e0 USBD_static_malloc .text.USBD_static_free - 0x0800a9a8 0x14 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a9a8 USBD_static_free + 0x0800a9fc 0x14 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a9fc USBD_static_free .text.USBD_Get_USB_Status - 0x0800a9bc 0x58 ./USB_DEVICE/Target/usbd_conf.o - 0x0800a9bc USBD_Get_USB_Status - .text.memset 0x0800aa14 0x10 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-memset.o) - 0x0800aa14 memset + 0x0800aa10 0x58 ./USB_DEVICE/Target/usbd_conf.o + 0x0800aa10 USBD_Get_USB_Status + .text.memset 0x0800aa68 0x10 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-memset.o) + 0x0800aa68 memset .text.__libc_init_array - 0x0800aa24 0x48 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-init.o) - 0x0800aa24 __libc_init_array + 0x0800aa78 0x48 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-init.o) + 0x0800aa78 __libc_init_array *(.glue_7) - .glue_7 0x0800aa6c 0x0 linker stubs + .glue_7 0x0800aac0 0x0 linker stubs *(.glue_7t) - .glue_7t 0x0800aa6c 0x0 linker stubs + .glue_7t 0x0800aac0 0x0 linker stubs *(.eh_frame) - .eh_frame 0x0800aa6c 0x0 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o + .eh_frame 0x0800aac0 0x0 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o *(.init) - .init 0x0800aa6c 0x4 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o - 0x0800aa6c _init - .init 0x0800aa70 0x8 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o + .init 0x0800aac0 0x4 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o + 0x0800aac0 _init + .init 0x0800aac4 0x8 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o *(.fini) - .fini 0x0800aa78 0x4 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o - 0x0800aa78 _fini - .fini 0x0800aa7c 0x8 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o - 0x0800aa84 . = ALIGN (0x4) - 0x0800aa84 _etext = . + .fini 0x0800aacc 0x4 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o + 0x0800aacc _fini + .fini 0x0800aad0 0x8 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o + 0x0800aad8 . = ALIGN (0x4) + 0x0800aad8 _etext = . -.vfp11_veneer 0x0800aa84 0x0 - .vfp11_veneer 0x0800aa84 0x0 linker stubs +.vfp11_veneer 0x0800aad8 0x0 + .vfp11_veneer 0x0800aad8 0x0 linker stubs -.v4_bx 0x0800aa84 0x0 - .v4_bx 0x0800aa84 0x0 linker stubs +.v4_bx 0x0800aad8 0x0 + .v4_bx 0x0800aad8 0x0 linker stubs -.iplt 0x0800aa84 0x0 - .iplt 0x0800aa84 0x0 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o +.iplt 0x0800aad8 0x0 + .iplt 0x0800aad8 0x0 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o -.rodata 0x0800aa84 0x5c - 0x0800aa84 . = ALIGN (0x4) +.rodata 0x0800aad8 0x5c + 0x0800aad8 . = ALIGN (0x4) *(.rodata) - .rodata 0x0800aa84 0x3a ./USB_DEVICE/App/usbd_desc.o + .rodata 0x0800aad8 0x3a ./USB_DEVICE/App/usbd_desc.o *(.rodata*) - *fill* 0x0800aabe 0x2 + *fill* 0x0800ab12 0x2 .rodata.AHBPrescTable - 0x0800aac0 0x10 ./Core/Src/system_stm32f4xx.o - 0x0800aac0 AHBPrescTable + 0x0800ab14 0x10 ./Core/Src/system_stm32f4xx.o + 0x0800ab14 AHBPrescTable .rodata.APBPrescTable - 0x0800aad0 0x8 ./Core/Src/system_stm32f4xx.o - 0x0800aad0 APBPrescTable + 0x0800ab24 0x8 ./Core/Src/system_stm32f4xx.o + 0x0800ab24 APBPrescTable .rodata.flagBitshiftOffset.0 - 0x0800aad8 0x8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x0800aae0 . = ALIGN (0x4) + 0x0800ab2c 0x8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x0800ab34 . = ALIGN (0x4) -.ARM.extab 0x0800aae0 0x0 - 0x0800aae0 . = ALIGN (0x4) +.ARM.extab 0x0800ab34 0x0 + 0x0800ab34 . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x0800aae0 . = ALIGN (0x4) + 0x0800ab34 . = ALIGN (0x4) -.ARM 0x0800aae0 0x8 - 0x0800aae0 . = ALIGN (0x4) - 0x0800aae0 __exidx_start = . +.ARM 0x0800ab34 0x8 + 0x0800ab34 . = ALIGN (0x4) + 0x0800ab34 __exidx_start = . *(.ARM.exidx*) - .ARM.exidx 0x0800aae0 0x8 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/libgcc.a(_udivmoddi4.o) - 0x0800aae8 __exidx_end = . - 0x0800aae8 . = ALIGN (0x4) + .ARM.exidx 0x0800ab34 0x8 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/libgcc.a(_udivmoddi4.o) + 0x0800ab3c __exidx_end = . + 0x0800ab3c . = ALIGN (0x4) -.preinit_array 0x0800aae8 0x0 - 0x0800aae8 . = ALIGN (0x4) - 0x0800aae8 PROVIDE (__preinit_array_start = .) +.preinit_array 0x0800ab3c 0x0 + 0x0800ab3c . = ALIGN (0x4) + 0x0800ab3c PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x0800aae8 PROVIDE (__preinit_array_end = .) - 0x0800aae8 . = ALIGN (0x4) + 0x0800ab3c PROVIDE (__preinit_array_end = .) + 0x0800ab3c . = ALIGN (0x4) -.init_array 0x0800aae8 0x4 - 0x0800aae8 . = ALIGN (0x4) - 0x0800aae8 PROVIDE (__init_array_start = .) +.init_array 0x0800ab3c 0x4 + 0x0800ab3c . = ALIGN (0x4) + 0x0800ab3c PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x0800aae8 0x4 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o - 0x0800aaec PROVIDE (__init_array_end = .) - 0x0800aaec . = ALIGN (0x4) + .init_array 0x0800ab3c 0x4 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o + 0x0800ab40 PROVIDE (__init_array_end = .) + 0x0800ab40 . = ALIGN (0x4) -.fini_array 0x0800aaec 0x4 - 0x0800aaec . = ALIGN (0x4) +.fini_array 0x0800ab40 0x4 + 0x0800ab40 . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x0800aaec 0x4 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o + .fini_array 0x0800ab40 0x4 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o [!provide] PROVIDE (__fini_array_end = .) - 0x0800aaf0 . = ALIGN (0x4) - 0x0800aaf0 _sidata = LOADADDR (.data) + 0x0800ab44 . = ALIGN (0x4) + 0x0800ab44 _sidata = LOADADDR (.data) -.rel.dyn 0x0800aaf0 0x0 - .rel.iplt 0x0800aaf0 0x0 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o +.rel.dyn 0x0800ab44 0x0 + .rel.iplt 0x0800ab44 0x0 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o -.data 0x20000000 0x1a0 load address 0x0800aaf0 +.data 0x20000000 0x1a0 load address 0x0800ab44 0x20000000 . = ALIGN (0x4) 0x20000000 _sdata = . *(.data) @@ -6381,11 +6383,11 @@ LOAD /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.external *fill* 0x2000019e 0x2 0x200001a0 _edata = . -.igot.plt 0x200001a0 0x0 load address 0x0800ac90 +.igot.plt 0x200001a0 0x0 load address 0x0800ace4 .igot.plt 0x200001a0 0x0 /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o 0x200001a0 . = ALIGN (0x4) -.bss 0x200001a0 0xf68 load address 0x0800ac90 +.bss 0x200001a0 0xf6c load address 0x0800ace4 0x200001a0 _sbss = . 0x200001a0 __bss_start__ = _sbss *(.bss) @@ -6409,77 +6411,81 @@ LOAD /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.external *fill* 0x20000262 0x2 .bss.PARENT 0x20000264 0x4 ./Core/Src/main.o 0x20000264 PARENT - .bss.reportBuff - 0x20000268 0x10 ./Core/Src/main.o - 0x20000268 reportBuff - .bss.MODE 0x20000278 0x1 ./Core/Src/main.o - 0x20000278 MODE - *fill* 0x20000279 0x3 - .bss.htim2 0x2000027c 0x48 ./Core/Src/tim.o - 0x2000027c htim2 - .bss.htim3 0x200002c4 0x48 ./Core/Src/tim.o - 0x200002c4 htim3 - .bss.huart4 0x2000030c 0x48 ./Core/Src/usart.o - 0x2000030c huart4 - .bss.huart5 0x20000354 0x48 ./Core/Src/usart.o - 0x20000354 huart5 - .bss.huart1 0x2000039c 0x48 ./Core/Src/usart.o - 0x2000039c huart1 - .bss.huart2 0x200003e4 0x48 ./Core/Src/usart.o - 0x200003e4 huart2 + .bss.MODE 0x20000268 0x1 ./Core/Src/main.o + 0x20000268 MODE + *fill* 0x20000269 0x3 + .bss.uartBuffer + 0x2000026c 0x10 ./Core/Src/main.o + 0x2000026c uartBuffer + .bss.uartUpdateFlag + 0x2000027c 0x4 ./Core/Src/main.o + 0x2000027c uartUpdateFlag + .bss.htim2 0x20000280 0x48 ./Core/Src/tim.o + 0x20000280 htim2 + .bss.htim3 0x200002c8 0x48 ./Core/Src/tim.o + 0x200002c8 htim3 + .bss.huart4 0x20000310 0x48 ./Core/Src/usart.o + 0x20000310 huart4 + .bss.huart5 0x20000358 0x48 ./Core/Src/usart.o + 0x20000358 huart5 + .bss.huart1 0x200003a0 0x48 ./Core/Src/usart.o + 0x200003a0 huart1 + .bss.huart2 0x200003e8 0x48 ./Core/Src/usart.o + 0x200003e8 huart2 .bss.hdma_uart4_rx - 0x2000042c 0x60 ./Core/Src/usart.o - 0x2000042c hdma_uart4_rx + 0x20000430 0x60 ./Core/Src/usart.o + 0x20000430 hdma_uart4_rx .bss.hdma_uart4_tx - 0x2000048c 0x60 ./Core/Src/usart.o - 0x2000048c hdma_uart4_tx + 0x20000490 0x60 ./Core/Src/usart.o + 0x20000490 hdma_uart4_tx .bss.hdma_uart5_rx - 0x200004ec 0x60 ./Core/Src/usart.o - 0x200004ec hdma_uart5_rx + 0x200004f0 0x60 ./Core/Src/usart.o + 0x200004f0 hdma_uart5_rx .bss.hdma_uart5_tx - 0x2000054c 0x60 ./Core/Src/usart.o - 0x2000054c hdma_uart5_tx + 0x20000550 0x60 ./Core/Src/usart.o + 0x20000550 hdma_uart5_tx .bss.hdma_usart1_rx - 0x200005ac 0x60 ./Core/Src/usart.o - 0x200005ac hdma_usart1_rx + 0x200005b0 0x60 ./Core/Src/usart.o + 0x200005b0 hdma_usart1_rx .bss.hdma_usart1_tx - 0x2000060c 0x60 ./Core/Src/usart.o - 0x2000060c hdma_usart1_tx + 0x20000610 0x60 ./Core/Src/usart.o + 0x20000610 hdma_usart1_tx .bss.hdma_usart2_rx - 0x2000066c 0x60 ./Core/Src/usart.o - 0x2000066c hdma_usart2_rx + 0x20000670 0x60 ./Core/Src/usart.o + 0x20000670 hdma_usart2_rx .bss.hdma_usart2_tx - 0x200006cc 0x60 ./Core/Src/usart.o - 0x200006cc hdma_usart2_tx - .bss.uwTick 0x2000072c 0x4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x2000072c uwTick - .bss.cfgidx.0 0x20000730 0x1 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - *fill* 0x20000731 0x3 + 0x200006d0 0x60 ./Core/Src/usart.o + 0x200006d0 hdma_usart2_tx + .bss.uwTick 0x20000730 0x4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x20000730 uwTick + .bss.cfgidx.0 0x20000734 0x1 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + *fill* 0x20000735 0x3 .bss.hUsbDeviceFS - 0x20000734 0x2dc ./USB_DEVICE/App/usb_device.o - 0x20000734 hUsbDeviceFS + 0x20000738 0x2dc ./USB_DEVICE/App/usb_device.o + 0x20000738 hUsbDeviceFS .bss.USBD_StrDesc - 0x20000a10 0x200 ./USB_DEVICE/App/usbd_desc.o - 0x20000a10 USBD_StrDesc + 0x20000a14 0x200 ./USB_DEVICE/App/usbd_desc.o + 0x20000a14 USBD_StrDesc .bss.hpcd_USB_OTG_FS - 0x20000c10 0x4e4 ./USB_DEVICE/Target/usbd_conf.o - 0x20000c10 hpcd_USB_OTG_FS - .bss.mem.0 0x200010f4 0x14 ./USB_DEVICE/Target/usbd_conf.o + 0x20000c14 0x4e4 ./USB_DEVICE/Target/usbd_conf.o + 0x20000c14 hpcd_USB_OTG_FS + .bss.mem.0 0x200010f8 0x14 ./USB_DEVICE/Target/usbd_conf.o *(COMMON) - 0x20001108 . = ALIGN (0x4) - 0x20001108 _ebss = . - 0x20001108 __bss_end__ = _ebss + 0x2000110c . = ALIGN (0x4) + 0x2000110c _ebss = . + 0x2000110c __bss_end__ = _ebss ._user_heap_stack - 0x20001108 0x600 load address 0x0800ac90 - 0x20001108 . = ALIGN (0x8) + 0x2000110c 0x604 load address 0x0800ace4 + 0x20001110 . = ALIGN (0x8) + *fill* 0x2000110c 0x4 [!provide] PROVIDE (end = .) - 0x20001108 PROVIDE (_end = .) - 0x20001308 . = (. + _Min_Heap_Size) - *fill* 0x20001108 0x200 - 0x20001708 . = (. + _Min_Stack_Size) - *fill* 0x20001308 0x400 - 0x20001708 . = ALIGN (0x8) + 0x20001110 PROVIDE (_end = .) + 0x20001310 . = (. + _Min_Heap_Size) + *fill* 0x20001110 0x200 + 0x20001710 . = (. + _Min_Stack_Size) + *fill* 0x20001310 0x400 + 0x20001710 . = ALIGN (0x8) /DISCARD/ libc.a(*) @@ -6571,37 +6577,37 @@ LOAD /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.external LOAD /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libm.a LOAD /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.linux64_1.0.0.202410170706/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/libgcc.a -.debug_info 0x00000000 0x1af9a +.debug_info 0x00000000 0x1afd8 .debug_info 0x00000000 0x514 ./Core/Src/dma.o .debug_info 0x00000514 0x455 ./Core/Src/gpio.o .debug_info 0x00000969 0x9a4 ./Core/Src/i2c.o - .debug_info 0x0000130d 0x14f2 ./Core/Src/main.o - .debug_info 0x000027ff 0x299 ./Core/Src/stm32f4xx_hal_msp.o - .debug_info 0x00002a98 0xc7c ./Core/Src/stm32f4xx_it.o - .debug_info 0x00003714 0x54a ./Core/Src/system_stm32f4xx.o - .debug_info 0x00003c5e 0xd18 ./Core/Src/tim.o - .debug_info 0x00004976 0xdbf ./Core/Src/usart.o - .debug_info 0x00005735 0x30 ./Core/Startup/startup_stm32f446retx.o - .debug_info 0x00005765 0x99a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_info 0x000060ff 0xdaa ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_info 0x00006ea9 0x8e7 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_info 0x00007790 0x70b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_info 0x00007e9b 0x2421 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o - .debug_info 0x0000a2bc 0x15e3 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - .debug_info 0x0000b89f 0x7b4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - .debug_info 0x0000c053 0x8ff ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_info 0x0000c952 0x960 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_info 0x0000d2b2 0x299d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_info 0x0000fc4f 0x14db ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_info 0x0001112a 0x2f4f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - .debug_info 0x00014079 0x19f1 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - .debug_info 0x00015a6a 0xa9e ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - .debug_info 0x00016508 0xe1f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - .debug_info 0x00017327 0xaf8 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - .debug_info 0x00017e1f 0x76f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - .debug_info 0x0001858e 0x609 ./USB_DEVICE/App/usb_device.o - .debug_info 0x00018b97 0x4ba ./USB_DEVICE/App/usbd_desc.o - .debug_info 0x00019051 0x1f49 ./USB_DEVICE/Target/usbd_conf.o + .debug_info 0x0000130d 0x1530 ./Core/Src/main.o + .debug_info 0x0000283d 0x299 ./Core/Src/stm32f4xx_hal_msp.o + .debug_info 0x00002ad6 0xc7c ./Core/Src/stm32f4xx_it.o + .debug_info 0x00003752 0x54a ./Core/Src/system_stm32f4xx.o + .debug_info 0x00003c9c 0xd18 ./Core/Src/tim.o + .debug_info 0x000049b4 0xdbf ./Core/Src/usart.o + .debug_info 0x00005773 0x30 ./Core/Startup/startup_stm32f446retx.o + .debug_info 0x000057a3 0x99a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_info 0x0000613d 0xdaa ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_info 0x00006ee7 0x8e7 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_info 0x000077ce 0x70b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_info 0x00007ed9 0x2421 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .debug_info 0x0000a2fa 0x15e3 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + .debug_info 0x0000b8dd 0x7b4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + .debug_info 0x0000c091 0x8ff ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_info 0x0000c990 0x960 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_info 0x0000d2f0 0x299d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_info 0x0000fc8d 0x14db ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_info 0x00011168 0x2f4f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_info 0x000140b7 0x19f1 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + .debug_info 0x00015aa8 0xa9e ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + .debug_info 0x00016546 0xe1f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + .debug_info 0x00017365 0xaf8 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + .debug_info 0x00017e5d 0x76f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + .debug_info 0x000185cc 0x609 ./USB_DEVICE/App/usb_device.o + .debug_info 0x00018bd5 0x4ba ./USB_DEVICE/App/usbd_desc.o + .debug_info 0x0001908f 0x1f49 ./USB_DEVICE/Target/usbd_conf.o .debug_abbrev 0x00000000 0x4037 .debug_abbrev 0x00000000 0x11b ./Core/Src/dma.o @@ -6870,70 +6876,70 @@ LOAD /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.external .debug_macro 0x00025c97 0x1c ./USB_DEVICE/App/usbd_desc.o .debug_macro 0x00025cb3 0x3ad ./USB_DEVICE/Target/usbd_conf.o -.debug_line 0x00000000 0x1e6ce +.debug_line 0x00000000 0x1e6f9 .debug_line 0x00000000 0x726 ./Core/Src/dma.o .debug_line 0x00000726 0x74e ./Core/Src/gpio.o .debug_line 0x00000e74 0x789 ./Core/Src/i2c.o - .debug_line 0x000015fd 0xce5 ./Core/Src/main.o - .debug_line 0x000022e2 0x71b ./Core/Src/stm32f4xx_hal_msp.o - .debug_line 0x000029fd 0x902 ./Core/Src/stm32f4xx_it.o - .debug_line 0x000032ff 0x791 ./Core/Src/system_stm32f4xx.o - .debug_line 0x00003a90 0x878 ./Core/Src/tim.o - .debug_line 0x00004308 0xa52 ./Core/Src/usart.o - .debug_line 0x00004d5a 0x7a ./Core/Startup/startup_stm32f446retx.o - .debug_line 0x00004dd4 0xa0d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_line 0x000057e1 0xcdd ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_line 0x000064be 0xf79 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_line 0x00007437 0xb51 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_line 0x00007f88 0x3aba ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o - .debug_line 0x0000ba42 0x1488 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - .debug_line 0x0000ceca 0x82d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - .debug_line 0x0000d6f7 0xe28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_line 0x0000e51f 0x14d9 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_line 0x0000f9f8 0x3782 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_line 0x0001317a 0x196d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_line 0x00014ae7 0x2555 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - .debug_line 0x0001703c 0x1d2f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - .debug_line 0x00018d6b 0xc3e ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - .debug_line 0x000199a9 0xf28 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - .debug_line 0x0001a8d1 0x1107 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - .debug_line 0x0001b9d8 0xa2f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - .debug_line 0x0001c407 0x9d6 ./USB_DEVICE/App/usb_device.o - .debug_line 0x0001cddd 0xab9 ./USB_DEVICE/App/usbd_desc.o - .debug_line 0x0001d896 0xe38 ./USB_DEVICE/Target/usbd_conf.o + .debug_line 0x000015fd 0xd10 ./Core/Src/main.o + .debug_line 0x0000230d 0x71b ./Core/Src/stm32f4xx_hal_msp.o + .debug_line 0x00002a28 0x902 ./Core/Src/stm32f4xx_it.o + .debug_line 0x0000332a 0x791 ./Core/Src/system_stm32f4xx.o + .debug_line 0x00003abb 0x878 ./Core/Src/tim.o + .debug_line 0x00004333 0xa52 ./Core/Src/usart.o + .debug_line 0x00004d85 0x7a ./Core/Startup/startup_stm32f446retx.o + .debug_line 0x00004dff 0xa0d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_line 0x0000580c 0xcdd ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_line 0x000064e9 0xf79 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_line 0x00007462 0xb51 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_line 0x00007fb3 0x3aba ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .debug_line 0x0000ba6d 0x1488 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + .debug_line 0x0000cef5 0x82d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + .debug_line 0x0000d722 0xe28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_line 0x0000e54a 0x14d9 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_line 0x0000fa23 0x3782 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_line 0x000131a5 0x196d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_line 0x00014b12 0x2555 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_line 0x00017067 0x1d2f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + .debug_line 0x00018d96 0xc3e ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + .debug_line 0x000199d4 0xf28 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + .debug_line 0x0001a8fc 0x1107 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + .debug_line 0x0001ba03 0xa2f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + .debug_line 0x0001c432 0x9d6 ./USB_DEVICE/App/usb_device.o + .debug_line 0x0001ce08 0xab9 ./USB_DEVICE/App/usbd_desc.o + .debug_line 0x0001d8c1 0xe38 ./USB_DEVICE/Target/usbd_conf.o -.debug_str 0x00000000 0xd7ec6 - .debug_str 0x00000000 0xd7ec6 ./Core/Src/dma.o +.debug_str 0x00000000 0xd7edb + .debug_str 0x00000000 0xd7edb ./Core/Src/dma.o 0xcd195 (size before relaxing) - .debug_str 0x000d7ec6 0xccd02 ./Core/Src/gpio.o - .debug_str 0x000d7ec6 0xcd236 ./Core/Src/i2c.o - .debug_str 0x000d7ec6 0xd1f17 ./Core/Src/main.o - .debug_str 0x000d7ec6 0xccc37 ./Core/Src/stm32f4xx_hal_msp.o - .debug_str 0x000d7ec6 0xcd5bd ./Core/Src/stm32f4xx_it.o - .debug_str 0x000d7ec6 0xcc61f ./Core/Src/system_stm32f4xx.o - .debug_str 0x000d7ec6 0xcd497 ./Core/Src/tim.o - .debug_str 0x000d7ec6 0xcd809 ./Core/Src/usart.o - .debug_str 0x000d7ec6 0x7e ./Core/Startup/startup_stm32f446retx.o - .debug_str 0x000d7ec6 0xcd1e4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_str 0x000d7ec6 0xccf3b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_str 0x000d7ec6 0xcca14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_str 0x000d7ec6 0xcc79a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_str 0x000d7ec6 0xcd61d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o - .debug_str 0x000d7ec6 0xcd130 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - .debug_str 0x000d7ec6 0xcca32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - .debug_str 0x000d7ec6 0xcca58 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_str 0x000d7ec6 0xcca8b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_str 0x000d7ec6 0xcd984 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_str 0x000d7ec6 0xcd190 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_str 0x000d7ec6 0xcd00f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - .debug_str 0x000d7ec6 0xccfec ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - .debug_str 0x000d7ec6 0xd1755 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - .debug_str 0x000d7ec6 0xd16be ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - .debug_str 0x000d7ec6 0xd14e9 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - .debug_str 0x000d7ec6 0xd13be ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - .debug_str 0x000d7ec6 0xd1553 ./USB_DEVICE/App/usb_device.o - .debug_str 0x000d7ec6 0xd12d2 ./USB_DEVICE/App/usbd_desc.o - .debug_str 0x000d7ec6 0xd271f ./USB_DEVICE/Target/usbd_conf.o + .debug_str 0x000d7edb 0xccd02 ./Core/Src/gpio.o + .debug_str 0x000d7edb 0xcd236 ./Core/Src/i2c.o + .debug_str 0x000d7edb 0xd1f31 ./Core/Src/main.o + .debug_str 0x000d7edb 0xccc37 ./Core/Src/stm32f4xx_hal_msp.o + .debug_str 0x000d7edb 0xcd5bd ./Core/Src/stm32f4xx_it.o + .debug_str 0x000d7edb 0xcc61f ./Core/Src/system_stm32f4xx.o + .debug_str 0x000d7edb 0xcd497 ./Core/Src/tim.o + .debug_str 0x000d7edb 0xcd809 ./Core/Src/usart.o + .debug_str 0x000d7edb 0x7e ./Core/Startup/startup_stm32f446retx.o + .debug_str 0x000d7edb 0xcd1e4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_str 0x000d7edb 0xccf3b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_str 0x000d7edb 0xcca14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_str 0x000d7edb 0xcc79a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_str 0x000d7edb 0xcd61d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .debug_str 0x000d7edb 0xcd130 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + .debug_str 0x000d7edb 0xcca32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + .debug_str 0x000d7edb 0xcca58 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_str 0x000d7edb 0xcca8b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_str 0x000d7edb 0xcd984 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_str 0x000d7edb 0xcd190 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_str 0x000d7edb 0xcd00f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_str 0x000d7edb 0xccfec ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + .debug_str 0x000d7edb 0xd1755 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + .debug_str 0x000d7edb 0xd16be ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + .debug_str 0x000d7edb 0xd14e9 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + .debug_str 0x000d7edb 0xd13be ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + .debug_str 0x000d7edb 0xd1553 ./USB_DEVICE/App/usb_device.o + .debug_str 0x000d7edb 0xd12d2 ./USB_DEVICE/App/usbd_desc.o + .debug_str 0x000d7edb 0xd271f ./USB_DEVICE/Target/usbd_conf.o .comment 0x00000000 0x43 .comment 0x00000000 0x43 ./Core/Src/dma.o