diff --git a/firmware/67percent/.settings/language.settings.xml b/firmware/67percent/.settings/language.settings.xml index 7b0f19e8..500b64f7 100644 --- a/firmware/67percent/.settings/language.settings.xml +++ b/firmware/67percent/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/firmware/67percent/.settings/stm32cubeide.project.prefs b/firmware/67percent/.settings/stm32cubeide.project.prefs index 58b5fd06..f4ce7ff6 100644 --- a/firmware/67percent/.settings/stm32cubeide.project.prefs +++ b/firmware/67percent/.settings/stm32cubeide.project.prefs @@ -1,5 +1,5 @@ 635E684B79701B039C64EA45C3F84D30=995AAB8BA274295E2F8F7F317CB52865 66BE74F758C12D739921AEA421D593D3=0 -8DF89ED150041C4CBC7CB9A9CAA90856=7FDA956CB788B83CC8F90FE0AF50270E -DC22A860405A8BF2F2C095E5B6529F12=B4658D56AC47B13414DF7CA59C5A0171 +8DF89ED150041C4CBC7CB9A9CAA90856=CFE0804C550E33C5B9DAB17F678FB68D +DC22A860405A8BF2F2C095E5B6529F12=F0A07CD21464E41013D963397C49C064 eclipse.preferences.version=1 diff --git a/firmware/67percent/67 Debug.launch b/firmware/67percent/67 Debug.launch index 79084a51..c1e02e14 100644 --- a/firmware/67percent/67 Debug.launch +++ b/firmware/67percent/67 Debug.launch @@ -43,7 +43,7 @@ - + diff --git a/firmware/67percent/Core/Src/main.c b/firmware/67percent/Core/Src/main.c index 22f2a015..d4dbfae8 100644 --- a/firmware/67percent/Core/Src/main.c +++ b/firmware/67percent/Core/Src/main.c @@ -160,7 +160,7 @@ uint8_t KEYCODES[ROW][COL] = { { KEY_LEFT_SHIFT, KEY_Z, KEY_X, KEY_C, KEY_V, KEY_B, KEY_N, KEY_M, KEY_COMMA, KEY_PERIOD, KEY_SLASH, KEY_RIGHT_SHIFT, 0x00, KEY_UP_ARROW, KEY_PAGE_DOWN}, - {KEY_LEFT_CTRL, 0x00, KEY_LEFT_ALT, 0x00, 0x00, KEY_SPACE, 0x00, 0x00, 0x00, KEY_RIGHT_ALT, 0x00, KEY_RIGHT_CTRL, KEY_LEFT_ARROW, KEY_DOWN_ARROW, KEY_RIGHT_ARROW} + {KEY_LEFT_CTRL, KEY_LEFT_GUI, KEY_LEFT_ALT, 0x00, 0x00, KEY_SPACE, 0x00, 0x00, 0x00, KEY_RIGHT_ALT, 0x00, KEY_RIGHT_CTRL, KEY_LEFT_ARROW, KEY_DOWN_ARROW, KEY_RIGHT_ARROW} }; uint16_t DEPTH = 0; @@ -330,7 +330,7 @@ int main(void) break; } - HAL_Delay(20); + HAL_Delay(1); /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ diff --git a/firmware/67percent/Debug/67.elf b/firmware/67percent/Debug/67.elf old mode 100644 new mode 100755 index ae856592..0524323f Binary files a/firmware/67percent/Debug/67.elf and b/firmware/67percent/Debug/67.elf differ diff --git a/firmware/67percent/Debug/67.list b/firmware/67percent/Debug/67.list index 5eebe8a5..8f9d37b7 100644 --- a/firmware/67percent/Debug/67.list +++ b/firmware/67percent/Debug/67.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 0000b238 080001c4 080001c4 000011c4 2**2 + 1 .text 0000aef4 080001c4 080001c4 000011c4 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 0000005c 0800b3fc 0800b3fc 0000c3fc 2**2 + 2 .rodata 0000005c 0800b0b8 0800b0b8 0000c0b8 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 0800b458 0800b458 0000d214 2**0 + 3 .ARM.extab 00000000 0800b114 0800b114 0000d214 2**0 CONTENTS, READONLY - 4 .ARM 00000008 0800b458 0800b458 0000c458 2**2 + 4 .ARM 00000008 0800b114 0800b114 0000c114 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 5 .preinit_array 00000000 0800b460 0800b460 0000d214 2**0 + 5 .preinit_array 00000000 0800b11c 0800b11c 0000d214 2**0 CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 0800b460 0800b460 0000c460 2**2 + 6 .init_array 00000004 0800b11c 0800b11c 0000c11c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 7 .fini_array 00000004 0800b464 0800b464 0000c464 2**2 + 7 .fini_array 00000004 0800b120 0800b120 0000c120 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 8 .data 00000214 20000000 0800b468 0000d000 2**2 + 8 .data 00000214 20000000 0800b124 0000d000 2**2 CONTENTS, ALLOC, LOAD, DATA - 9 .bss 000015e8 20000214 0800b67c 0000d214 2**2 + 9 .bss 00001594 20000214 0800b338 0000d214 2**2 ALLOC - 10 ._user_heap_stack 00000604 200017fc 0800b67c 0000d7fc 2**0 + 10 ._user_heap_stack 00000600 200017a8 0800b338 0000d7a8 2**0 ALLOC 11 .ARM.attributes 00000030 00000000 00000000 0000d214 2**0 CONTENTS, READONLY - 12 .debug_info 0001be15 00000000 00000000 0000d244 2**0 + 12 .debug_info 00019062 00000000 00000000 0000d244 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 13 .debug_abbrev 00004285 00000000 00000000 00029059 2**0 + 13 .debug_abbrev 00003de7 00000000 00000000 000262a6 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 14 .debug_aranges 000017f0 00000000 00000000 0002d2e0 2**3 + 14 .debug_aranges 00001518 00000000 00000000 0002a090 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS - 15 .debug_rnglists 00001291 00000000 00000000 0002ead0 2**0 + 15 .debug_rnglists 00001036 00000000 00000000 0002b5a8 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 16 .debug_macro 000262b3 00000000 00000000 0002fd61 2**0 + 16 .debug_macro 00025e36 00000000 00000000 0002c5de 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_line 000203fa 00000000 00000000 00056014 2**0 + 17 .debug_line 0001bf3a 00000000 00000000 00052414 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_str 000d8080 00000000 00000000 0007640e 2**0 + 18 .debug_str 000d7344 00000000 00000000 0006e34e 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .comment 00000043 00000000 00000000 0014e48e 2**0 + 19 .comment 00000043 00000000 00000000 00145692 2**0 CONTENTS, READONLY - 20 .debug_frame 0000645c 00000000 00000000 0014e4d4 2**2 + 20 .debug_frame 00005764 00000000 00000000 001456d8 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS - 21 .debug_line_str 00000076 00000000 00000000 00154930 2**0 + 21 .debug_line_str 00000076 00000000 00000000 0014ae3c 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS Disassembly of section .text: @@ -64,7 +64,7 @@ Disassembly of section .text: 80001da: bd10 pop {r4, pc} 80001dc: 20000214 .word 0x20000214 80001e0: 00000000 .word 0x00000000 - 80001e4: 0800b3e4 .word 0x0800b3e4 + 80001e4: 0800b0a0 .word 0x0800b0a0 080001e8 : 80001e8: b508 push {r3, lr} @@ -76,7 +76,7 @@ Disassembly of section .text: 80001f6: bd08 pop {r3, pc} 80001f8: 00000000 .word 0x00000000 80001fc: 20000218 .word 0x20000218 - 8000200: 0800b3e4 .word 0x0800b3e4 + 8000200: 0800b0a0 .word 0x0800b0a0 08000204 <__aeabi_uldivmod>: 8000204: b953 cbnz r3, 800021c <__aeabi_uldivmod+0x18> @@ -85,8 +85,8 @@ Disassembly of section .text: 800020a: bf08 it eq 800020c: 2800 cmpeq r0, #0 800020e: bf1c itt ne - 8000210: f04f 31ff movne.w r1, #4294967295 - 8000214: f04f 30ff movne.w r0, #4294967295 + 8000210: f04f 31ff movne.w r1, #4294967295 @ 0xffffffff + 8000214: f04f 30ff movne.w r0, #4294967295 @ 0xffffffff 8000218: f000 b988 b.w 800052c <__aeabi_idiv0> 800021c: f1ad 0c08 sub.w ip, sp, #8 8000220: e96d ce04 strd ip, lr, [sp, #-16]! @@ -125,7 +125,7 @@ Disassembly of section .text: 800027e: 429a cmp r2, r3 8000280: d909 bls.n 8000296 <__udivmoddi4+0x62> 8000282: 18fb adds r3, r7, r3 - 8000284: f101 30ff add.w r0, r1, #4294967295 + 8000284: f101 30ff add.w r0, r1, #4294967295 @ 0xffffffff 8000288: f080 80ea bcs.w 8000460 <__udivmoddi4+0x22c> 800028c: 429a cmp r2, r3 800028e: f240 80e7 bls.w 8000460 <__udivmoddi4+0x22c> @@ -140,7 +140,7 @@ Disassembly of section .text: 80002aa: 459c cmp ip, r3 80002ac: d909 bls.n 80002c2 <__udivmoddi4+0x8e> 80002ae: 18fb adds r3, r7, r3 - 80002b0: f100 32ff add.w r2, r0, #4294967295 + 80002b0: f100 32ff add.w r2, r0, #4294967295 @ 0xffffffff 80002b4: f080 80d6 bcs.w 8000464 <__udivmoddi4+0x230> 80002b8: 459c cmp ip, r3 80002ba: f240 80d3 bls.w 8000464 <__udivmoddi4+0x230> @@ -194,7 +194,7 @@ Disassembly of section .text: 800033e: 429a cmp r2, r3 8000340: d907 bls.n 8000352 <__udivmoddi4+0x11e> 8000342: 18fb adds r3, r7, r3 - 8000344: f10c 38ff add.w r8, ip, #4294967295 + 8000344: f10c 38ff add.w r8, ip, #4294967295 @ 0xffffffff 8000348: d202 bcs.n 8000350 <__udivmoddi4+0x11c> 800034a: 429a cmp r2, r3 800034c: f200 80e0 bhi.w 8000510 <__udivmoddi4+0x2dc> @@ -207,7 +207,7 @@ Disassembly of section .text: 8000364: 429c cmp r4, r3 8000366: d907 bls.n 8000378 <__udivmoddi4+0x144> 8000368: 18fb adds r3, r7, r3 - 800036a: f102 30ff add.w r0, r2, #4294967295 + 800036a: f102 30ff add.w r0, r2, #4294967295 @ 0xffffffff 800036e: d202 bcs.n 8000376 <__udivmoddi4+0x142> 8000370: 429c cmp r4, r3 8000372: f200 80ca bhi.w 800050a <__udivmoddi4+0x2d6> @@ -235,7 +235,7 @@ Disassembly of section .text: 80003ba: fa02 f201 lsl.w r2, r2, r1 80003be: d909 bls.n 80003d4 <__udivmoddi4+0x1a0> 80003c0: 193c adds r4, r7, r4 - 80003c2: f100 3aff add.w sl, r0, #4294967295 + 80003c2: f100 3aff add.w sl, r0, #4294967295 @ 0xffffffff 80003c6: f080 809c bcs.w 8000502 <__udivmoddi4+0x2ce> 80003ca: 45a6 cmp lr, r4 80003cc: f240 8099 bls.w 8000502 <__udivmoddi4+0x2ce> @@ -250,7 +250,7 @@ Disassembly of section .text: 80003ec: 45a4 cmp ip, r4 80003ee: d908 bls.n 8000402 <__udivmoddi4+0x1ce> 80003f0: 193c adds r4, r7, r4 - 80003f2: f103 3eff add.w lr, r3, #4294967295 + 80003f2: f103 3eff add.w lr, r3, #4294967295 @ 0xffffffff 80003f6: f080 8082 bcs.w 80004fe <__udivmoddi4+0x2ca> 80003fa: 45a4 cmp ip, r4 80003fc: d97f bls.n 80004fe <__udivmoddi4+0x2ca> @@ -312,7 +312,7 @@ Disassembly of section .text: 800049a: b280 uxth r0, r0 800049c: d93e bls.n 800051c <__udivmoddi4+0x2e8> 800049e: 1879 adds r1, r7, r1 - 80004a0: f108 3cff add.w ip, r8, #4294967295 + 80004a0: f108 3cff add.w ip, r8, #4294967295 @ 0xffffffff 80004a4: d201 bcs.n 80004aa <__udivmoddi4+0x276> 80004a6: 4589 cmp r9, r1 80004a8: d81f bhi.n 80004ea <__udivmoddi4+0x2b6> @@ -325,7 +325,7 @@ Disassembly of section .text: 80004c0: 4542 cmp r2, r8 80004c2: d229 bcs.n 8000518 <__udivmoddi4+0x2e4> 80004c4: 18ba adds r2, r7, r2 - 80004c6: f109 31ff add.w r1, r9, #4294967295 + 80004c6: f109 31ff add.w r1, r9, #4294967295 @ 0xffffffff 80004ca: d2c4 bcs.n 8000456 <__udivmoddi4+0x222> 80004cc: 4542 cmp r2, r8 80004ce: d2c2 bcs.n 8000456 <__udivmoddi4+0x222> @@ -370,18 +370,9 @@ Disassembly of section .text: 800052e: bf00 nop 08000530 : - -/** - * Enable DMA controller clock - */ -void MX_DMA_Init(void) -{ 8000530: b580 push {r7, lr} 8000532: b082 sub sp, #8 8000534: af00 add r7, sp, #0 - - /* DMA controller clock enable */ - __HAL_RCC_DMA1_CLK_ENABLE(); 8000536: 2300 movs r3, #0 8000538: 607b str r3, [r7, #4] 800053a: 4b2f ldr r3, [pc, #188] @ (80005f8 ) @@ -394,7 +385,6 @@ void MX_DMA_Init(void) 800054a: f403 1300 and.w r3, r3, #2097152 @ 0x200000 800054e: 607b str r3, [r7, #4] 8000550: 687b ldr r3, [r7, #4] - __HAL_RCC_DMA2_CLK_ENABLE(); 8000552: 2300 movs r3, #0 8000554: 603b str r3, [r7, #0] 8000556: 4b28 ldr r3, [pc, #160] @ (80005f8 ) @@ -407,82 +397,54 @@ void MX_DMA_Init(void) 8000566: f403 0380 and.w r3, r3, #4194304 @ 0x400000 800056a: 603b str r3, [r7, #0] 800056c: 683b ldr r3, [r7, #0] - - /* DMA interrupt init */ - /* DMA1_Stream0_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Stream0_IRQn, 0, 0); 800056e: 2200 movs r2, #0 8000570: 2100 movs r1, #0 8000572: 200b movs r0, #11 - 8000574: f001 fdf3 bl 800215e - HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn); + 8000574: f001 fd95 bl 80020a2 8000578: 200b movs r0, #11 - 800057a: f001 fe0c bl 8002196 - /* DMA1_Stream2_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Stream2_IRQn, 0, 0); + 800057a: f001 fdae bl 80020da 800057e: 2200 movs r2, #0 8000580: 2100 movs r1, #0 8000582: 200d movs r0, #13 - 8000584: f001 fdeb bl 800215e - HAL_NVIC_EnableIRQ(DMA1_Stream2_IRQn); + 8000584: f001 fd8d bl 80020a2 8000588: 200d movs r0, #13 - 800058a: f001 fe04 bl 8002196 - /* DMA1_Stream4_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Stream4_IRQn, 0, 0); + 800058a: f001 fda6 bl 80020da 800058e: 2200 movs r2, #0 8000590: 2100 movs r1, #0 8000592: 200f movs r0, #15 - 8000594: f001 fde3 bl 800215e - HAL_NVIC_EnableIRQ(DMA1_Stream4_IRQn); + 8000594: f001 fd85 bl 80020a2 8000598: 200f movs r0, #15 - 800059a: f001 fdfc bl 8002196 - /* DMA1_Stream5_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Stream5_IRQn, 0, 0); + 800059a: f001 fd9e bl 80020da 800059e: 2200 movs r2, #0 80005a0: 2100 movs r1, #0 80005a2: 2010 movs r0, #16 - 80005a4: f001 fddb bl 800215e - HAL_NVIC_EnableIRQ(DMA1_Stream5_IRQn); + 80005a4: f001 fd7d bl 80020a2 80005a8: 2010 movs r0, #16 - 80005aa: f001 fdf4 bl 8002196 - /* DMA1_Stream6_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Stream6_IRQn, 0, 0); + 80005aa: f001 fd96 bl 80020da 80005ae: 2200 movs r2, #0 80005b0: 2100 movs r1, #0 80005b2: 2011 movs r0, #17 - 80005b4: f001 fdd3 bl 800215e - HAL_NVIC_EnableIRQ(DMA1_Stream6_IRQn); + 80005b4: f001 fd75 bl 80020a2 80005b8: 2011 movs r0, #17 - 80005ba: f001 fdec bl 8002196 - /* DMA1_Stream7_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Stream7_IRQn, 0, 0); + 80005ba: f001 fd8e bl 80020da 80005be: 2200 movs r2, #0 80005c0: 2100 movs r1, #0 80005c2: 202f movs r0, #47 @ 0x2f - 80005c4: f001 fdcb bl 800215e - HAL_NVIC_EnableIRQ(DMA1_Stream7_IRQn); + 80005c4: f001 fd6d bl 80020a2 80005c8: 202f movs r0, #47 @ 0x2f - 80005ca: f001 fde4 bl 8002196 - /* DMA2_Stream2_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA2_Stream2_IRQn, 0, 0); + 80005ca: f001 fd86 bl 80020da 80005ce: 2200 movs r2, #0 80005d0: 2100 movs r1, #0 80005d2: 203a movs r0, #58 @ 0x3a - 80005d4: f001 fdc3 bl 800215e - HAL_NVIC_EnableIRQ(DMA2_Stream2_IRQn); + 80005d4: f001 fd65 bl 80020a2 80005d8: 203a movs r0, #58 @ 0x3a - 80005da: f001 fddc bl 8002196 - /* DMA2_Stream7_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA2_Stream7_IRQn, 0, 0); + 80005da: f001 fd7e bl 80020da 80005de: 2200 movs r2, #0 80005e0: 2100 movs r1, #0 80005e2: 2046 movs r0, #70 @ 0x46 - 80005e4: f001 fdbb bl 800215e - HAL_NVIC_EnableIRQ(DMA2_Stream7_IRQn); + 80005e4: f001 fd5d bl 80020a2 80005e8: 2046 movs r0, #70 @ 0x46 - 80005ea: f001 fdd4 bl 8002196 - -} + 80005ea: f001 fd76 bl 80020da 80005ee: bf00 nop 80005f0: 3708 adds r7, #8 80005f2: 46bd mov sp, r7 @@ -582,18 +544,18 @@ void MX_GPIO_Init(void) 800069e: 2200 movs r2, #0 80006a0: f44f 7170 mov.w r1, #960 @ 0x3c0 80006a4: 482a ldr r0, [pc, #168] @ (8000750 ) - 80006a6: f002 fb3f bl 8002d28 + 80006a6: f002 fae1 bl 8002c6c /*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: 4828 ldr r0, [pc, #160] @ (8000754 ) - 80006b2: f002 fb39 bl 8002d28 + 80006b2: f002 fadb bl 8002c6c /*Configure GPIO pins : PC4 PC5 */ - GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_4|GPIO_PIN_5; - 80006b6: 2331 movs r3, #49 @ 0x31 + GPIO_InitStruct.Pin = GPIO_PIN_4|GPIO_PIN_5; + 80006b6: 2330 movs r3, #48 @ 0x30 80006b8: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 80006ba: 2300 movs r3, #0 @@ -605,7 +567,7 @@ void MX_GPIO_Init(void) 80006c2: f107 0314 add.w r3, r7, #20 80006c6: 4619 mov r1, r3 80006c8: 4821 ldr r0, [pc, #132] @ (8000750 ) - 80006ca: f002 f981 bl 80029d0 + 80006ca: f002 f923 bl 8002914 /*Configure GPIO pins : PB0 PB1 PB2 PB10 */ GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_10; @@ -621,11 +583,11 @@ void MX_GPIO_Init(void) 80006dc: f107 0314 add.w r3, r7, #20 80006e0: 4619 mov r1, r3 80006e2: 481d ldr r0, [pc, #116] @ (8000758 ) - 80006e4: f002 f974 bl 80029d0 + 80006e4: f002 f916 bl 8002914 - /*Configure GPIO pins : PC6 PC7 PC8 PC9 */ - GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9; - 80006e8: f44f 7370 mov.w r3, #960 @ 0x3c0 + /*Configure GPIO pins : PC6 PC7 PC8 PC9 PC11*/ + GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7|GPIO_PIN_8| GPIO_PIN_9|GPIO_PIN_10| GPIO_PIN_11; + 80006e8: f44f 637c mov.w r3, #4032 @ 0xfc0 80006ec: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 80006ee: 2301 movs r3, #1 @@ -640,10 +602,10 @@ void MX_GPIO_Init(void) 80006fa: f107 0314 add.w r3, r7, #20 80006fe: 4619 mov r1, r3 8000700: 4813 ldr r0, [pc, #76] @ (8000750 ) - 8000702: f002 f965 bl 80029d0 + 8000702: f002 f907 bl 8002914 - GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_14; - 8000706: f44f 43c0 mov.w r3, #24576 @ 0x6000 + GPIO_InitStruct.Pin = GPIO_PIN_13|GPIO_PIN_14 |GPIO_PIN_15 | GPIO_PIN_4 | GPIO_PIN_5 | GPIO_PIN_6 | GPIO_PIN_7; + 8000706: f24e 03f0 movw r3, #57584 @ 0xe0f0 800070a: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800070c: 2301 movs r3, #1 @@ -658,11 +620,11 @@ void MX_GPIO_Init(void) 8000718: f107 0314 add.w r3, r7, #20 800071c: 4619 mov r1, r3 800071e: 480e ldr r0, [pc, #56] @ (8000758 ) - 8000720: f002 f956 bl 80029d0 + 8000720: f002 f8f8 bl 8002914 - /*Configure GPIO pin : PA8 */ - GPIO_InitStruct.Pin = GPIO_PIN_8; - 8000724: f44f 7380 mov.w r3, #256 @ 0x100 + /*Configure GPIO pin : PA8 PA10 PA15 */ + GPIO_InitStruct.Pin = GPIO_PIN_8 | GPIO_PIN_15 | GPIO_PIN_10; + 8000724: f44f 4305 mov.w r3, #34048 @ 0x8500 8000728: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 800072a: 2301 movs r3, #1 @@ -677,7 +639,7 @@ void MX_GPIO_Init(void) 8000736: f107 0314 add.w r3, r7, #20 800073a: 4619 mov r1, r3 800073c: 4805 ldr r0, [pc, #20] @ (8000754 ) - 800073e: f002 f947 bl 80029d0 + 800073e: f002 f8e9 bl 8002914 } 8000742: bf00 nop @@ -690,29291 +652,19474 @@ void MX_GPIO_Init(void) 8000754: 40020000 .word 0x40020000 8000758: 40020400 .word 0x40020400 -0800075c : - -I2C_HandleTypeDef hi2c1; - -/* I2C1 init function */ -void MX_I2C1_Init(void) -{ - 800075c: b580 push {r7, lr} - 800075e: af00 add r7, sp, #0 - /* USER CODE END I2C1_Init 0 */ - - /* USER CODE BEGIN I2C1_Init 1 */ - - /* USER CODE END I2C1_Init 1 */ - hi2c1.Instance = I2C1; - 8000760: 4b12 ldr r3, [pc, #72] @ (80007ac ) - 8000762: 4a13 ldr r2, [pc, #76] @ (80007b0 ) - 8000764: 601a str r2, [r3, #0] - hi2c1.Init.ClockSpeed = 100000; - 8000766: 4b11 ldr r3, [pc, #68] @ (80007ac ) - 8000768: 4a12 ldr r2, [pc, #72] @ (80007b4 ) - 800076a: 605a str r2, [r3, #4] - hi2c1.Init.DutyCycle = I2C_DUTYCYCLE_2; - 800076c: 4b0f ldr r3, [pc, #60] @ (80007ac ) - 800076e: 2200 movs r2, #0 - 8000770: 609a str r2, [r3, #8] - hi2c1.Init.OwnAddress1 = 0; - 8000772: 4b0e ldr r3, [pc, #56] @ (80007ac ) - 8000774: 2200 movs r2, #0 - 8000776: 60da str r2, [r3, #12] - hi2c1.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; - 8000778: 4b0c ldr r3, [pc, #48] @ (80007ac ) - 800077a: f44f 4280 mov.w r2, #16384 @ 0x4000 - 800077e: 611a str r2, [r3, #16] - hi2c1.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; - 8000780: 4b0a ldr r3, [pc, #40] @ (80007ac ) - 8000782: 2200 movs r2, #0 - 8000784: 615a str r2, [r3, #20] - hi2c1.Init.OwnAddress2 = 0; - 8000786: 4b09 ldr r3, [pc, #36] @ (80007ac ) - 8000788: 2200 movs r2, #0 - 800078a: 619a str r2, [r3, #24] - hi2c1.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; - 800078c: 4b07 ldr r3, [pc, #28] @ (80007ac ) - 800078e: 2200 movs r2, #0 - 8000790: 61da str r2, [r3, #28] - hi2c1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; - 8000792: 4b06 ldr r3, [pc, #24] @ (80007ac ) - 8000794: 2200 movs r2, #0 - 8000796: 621a str r2, [r3, #32] - if (HAL_I2C_Init(&hi2c1) != HAL_OK) - 8000798: 4804 ldr r0, [pc, #16] @ (80007ac ) - 800079a: f002 fadf bl 8002d5c - 800079e: 4603 mov r3, r0 - 80007a0: 2b00 cmp r3, #0 - 80007a2: d001 beq.n 80007a8 - { - Error_Handler(); - 80007a4: f000 fd60 bl 8001268 - } - /* USER CODE BEGIN I2C1_Init 2 */ - - /* USER CODE END I2C1_Init 2 */ - -} - 80007a8: bf00 nop - 80007aa: bd80 pop {r7, pc} - 80007ac: 20000230 .word 0x20000230 - 80007b0: 40005400 .word 0x40005400 - 80007b4: 000186a0 .word 0x000186a0 - -080007b8 : - -void HAL_I2C_MspInit(I2C_HandleTypeDef* i2cHandle) -{ - 80007b8: b580 push {r7, lr} - 80007ba: b08a sub sp, #40 @ 0x28 - 80007bc: af00 add r7, sp, #0 - 80007be: 6078 str r0, [r7, #4] - - GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80007c0: f107 0314 add.w r3, r7, #20 - 80007c4: 2200 movs r2, #0 - 80007c6: 601a str r2, [r3, #0] - 80007c8: 605a str r2, [r3, #4] - 80007ca: 609a str r2, [r3, #8] - 80007cc: 60da str r2, [r3, #12] - 80007ce: 611a str r2, [r3, #16] - if(i2cHandle->Instance==I2C1) - 80007d0: 687b ldr r3, [r7, #4] - 80007d2: 681b ldr r3, [r3, #0] - 80007d4: 4a19 ldr r2, [pc, #100] @ (800083c ) - 80007d6: 4293 cmp r3, r2 - 80007d8: d12b bne.n 8000832 - { - /* USER CODE BEGIN I2C1_MspInit 0 */ - - /* USER CODE END I2C1_MspInit 0 */ - - __HAL_RCC_GPIOB_CLK_ENABLE(); - 80007da: 2300 movs r3, #0 - 80007dc: 613b str r3, [r7, #16] - 80007de: 4b18 ldr r3, [pc, #96] @ (8000840 ) - 80007e0: 6b1b ldr r3, [r3, #48] @ 0x30 - 80007e2: 4a17 ldr r2, [pc, #92] @ (8000840 ) - 80007e4: f043 0302 orr.w r3, r3, #2 - 80007e8: 6313 str r3, [r2, #48] @ 0x30 - 80007ea: 4b15 ldr r3, [pc, #84] @ (8000840 ) - 80007ec: 6b1b ldr r3, [r3, #48] @ 0x30 - 80007ee: f003 0302 and.w r3, r3, #2 - 80007f2: 613b str r3, [r7, #16] - 80007f4: 693b ldr r3, [r7, #16] - /**I2C1 GPIO Configuration - PB6 ------> I2C1_SCL - PB7 ------> I2C1_SDA - */ - GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7; - 80007f6: 23c0 movs r3, #192 @ 0xc0 - 80007f8: 617b str r3, [r7, #20] - GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; - 80007fa: 2312 movs r3, #18 - 80007fc: 61bb str r3, [r7, #24] - GPIO_InitStruct.Pull = GPIO_NOPULL; - 80007fe: 2300 movs r3, #0 - 8000800: 61fb str r3, [r7, #28] - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8000802: 2303 movs r3, #3 - 8000804: 623b str r3, [r7, #32] - GPIO_InitStruct.Alternate = GPIO_AF4_I2C1; - 8000806: 2304 movs r3, #4 - 8000808: 627b str r3, [r7, #36] @ 0x24 - HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - 800080a: f107 0314 add.w r3, r7, #20 - 800080e: 4619 mov r1, r3 - 8000810: 480c ldr r0, [pc, #48] @ (8000844 ) - 8000812: f002 f8dd bl 80029d0 - - /* I2C1 clock enable */ - __HAL_RCC_I2C1_CLK_ENABLE(); - 8000816: 2300 movs r3, #0 - 8000818: 60fb str r3, [r7, #12] - 800081a: 4b09 ldr r3, [pc, #36] @ (8000840 ) - 800081c: 6c1b ldr r3, [r3, #64] @ 0x40 - 800081e: 4a08 ldr r2, [pc, #32] @ (8000840 ) - 8000820: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 - 8000824: 6413 str r3, [r2, #64] @ 0x40 - 8000826: 4b06 ldr r3, [pc, #24] @ (8000840 ) - 8000828: 6c1b ldr r3, [r3, #64] @ 0x40 - 800082a: f403 1300 and.w r3, r3, #2097152 @ 0x200000 - 800082e: 60fb str r3, [r7, #12] - 8000830: 68fb ldr r3, [r7, #12] - /* USER CODE BEGIN I2C1_MspInit 1 */ - - /* USER CODE END I2C1_MspInit 1 */ - } -} - 8000832: bf00 nop - 8000834: 3728 adds r7, #40 @ 0x28 - 8000836: 46bd mov sp, r7 - 8000838: bd80 pop {r7, pc} - 800083a: bf00 nop - 800083c: 40005400 .word 0x40005400 - 8000840: 40023800 .word 0x40023800 - 8000844: 40020400 .word 0x40020400 - -08000848 : +0800075c : volatile uint8_t tail; // accessed in ISR volatile uint8_t count; // optional, only if needed } PacketQueue; // Initialize void pq_init(PacketQueue *q){ - 8000848: b480 push {r7} - 800084a: b083 sub sp, #12 - 800084c: af00 add r7, sp, #0 - 800084e: 6078 str r0, [r7, #4] + 800075c: b480 push {r7} + 800075e: b083 sub sp, #12 + 8000760: af00 add r7, sp, #0 + 8000762: 6078 str r0, [r7, #4] q->head = 0; - 8000850: 687b ldr r3, [r7, #4] - 8000852: 2200 movs r2, #0 - 8000854: f883 2180 strb.w r2, [r3, #384] @ 0x180 + 8000764: 687b ldr r3, [r7, #4] + 8000766: 2200 movs r2, #0 + 8000768: f883 2180 strb.w r2, [r3, #384] @ 0x180 q->tail = 0; - 8000858: 687b ldr r3, [r7, #4] - 800085a: 2200 movs r2, #0 - 800085c: f883 2181 strb.w r2, [r3, #385] @ 0x181 + 800076c: 687b ldr r3, [r7, #4] + 800076e: 2200 movs r2, #0 + 8000770: f883 2181 strb.w r2, [r3, #385] @ 0x181 q->count = 0; - 8000860: 687b ldr r3, [r7, #4] - 8000862: 2200 movs r2, #0 - 8000864: f883 2182 strb.w r2, [r3, #386] @ 0x182 + 8000774: 687b ldr r3, [r7, #4] + 8000776: 2200 movs r2, #0 + 8000778: f883 2182 strb.w r2, [r3, #386] @ 0x182 } - 8000868: bf00 nop - 800086a: 370c adds r7, #12 - 800086c: 46bd mov sp, r7 - 800086e: f85d 7b04 ldr.w r7, [sp], #4 - 8000872: 4770 bx lr + 800077c: bf00 nop + 800077e: 370c adds r7, #12 + 8000780: 46bd mov sp, r7 + 8000782: f85d 7b04 ldr.w r7, [sp], #4 + 8000786: 4770 bx lr -08000874 : +08000788 : // Called from ISR bool pq_push(PacketQueue *q, const uint8_t packet[PACKET_SIZE]){ - 8000874: b580 push {r7, lr} - 8000876: b084 sub sp, #16 - 8000878: af00 add r7, sp, #0 - 800087a: 6078 str r0, [r7, #4] - 800087c: 6039 str r1, [r7, #0] + 8000788: b580 push {r7, lr} + 800078a: b084 sub sp, #16 + 800078c: af00 add r7, sp, #0 + 800078e: 6078 str r0, [r7, #4] + 8000790: 6039 str r1, [r7, #0] uint8_t nextTail = (q->tail + 1) % QUEUE_CAPACITY; - 800087e: 687b ldr r3, [r7, #4] - 8000880: f893 3181 ldrb.w r3, [r3, #385] @ 0x181 - 8000884: b2db uxtb r3, r3 - 8000886: 3301 adds r3, #1 - 8000888: 425a negs r2, r3 - 800088a: f003 031f and.w r3, r3, #31 - 800088e: f002 021f and.w r2, r2, #31 - 8000892: bf58 it pl - 8000894: 4253 negpl r3, r2 - 8000896: 73fb strb r3, [r7, #15] + 8000792: 687b ldr r3, [r7, #4] + 8000794: f893 3181 ldrb.w r3, [r3, #385] @ 0x181 + 8000798: b2db uxtb r3, r3 + 800079a: 3301 adds r3, #1 + 800079c: 425a negs r2, r3 + 800079e: f003 031f and.w r3, r3, #31 + 80007a2: f002 021f and.w r2, r2, #31 + 80007a6: bf58 it pl + 80007a8: 4253 negpl r3, r2 + 80007aa: 73fb strb r3, [r7, #15] if(nextTail == q->head) return false; // queue full - 8000898: 687b ldr r3, [r7, #4] - 800089a: f893 3180 ldrb.w r3, [r3, #384] @ 0x180 - 800089e: b2db uxtb r3, r3 - 80008a0: 7bfa ldrb r2, [r7, #15] - 80008a2: 429a cmp r2, r3 - 80008a4: d101 bne.n 80008aa - 80008a6: 2300 movs r3, #0 - 80008a8: e014 b.n 80008d4 + 80007ac: 687b ldr r3, [r7, #4] + 80007ae: f893 3180 ldrb.w r3, [r3, #384] @ 0x180 + 80007b2: b2db uxtb r3, r3 + 80007b4: 7bfa ldrb r2, [r7, #15] + 80007b6: 429a cmp r2, r3 + 80007b8: d101 bne.n 80007be + 80007ba: 2300 movs r3, #0 + 80007bc: e014 b.n 80007e8 memcpy(q->data[q->tail], packet, PACKET_SIZE); - 80008aa: 687b ldr r3, [r7, #4] - 80008ac: f893 3181 ldrb.w r3, [r3, #385] @ 0x181 - 80008b0: b2db uxtb r3, r3 - 80008b2: 461a mov r2, r3 - 80008b4: 4613 mov r3, r2 - 80008b6: 005b lsls r3, r3, #1 - 80008b8: 4413 add r3, r2 - 80008ba: 009b lsls r3, r3, #2 - 80008bc: 687a ldr r2, [r7, #4] - 80008be: 4413 add r3, r2 - 80008c0: 220c movs r2, #12 - 80008c2: 6839 ldr r1, [r7, #0] - 80008c4: 4618 mov r0, r3 - 80008c6: f00a fd7f bl 800b3c8 + 80007be: 687b ldr r3, [r7, #4] + 80007c0: f893 3181 ldrb.w r3, [r3, #385] @ 0x181 + 80007c4: b2db uxtb r3, r3 + 80007c6: 461a mov r2, r3 + 80007c8: 4613 mov r3, r2 + 80007ca: 005b lsls r3, r3, #1 + 80007cc: 4413 add r3, r2 + 80007ce: 009b lsls r3, r3, #2 + 80007d0: 687a ldr r2, [r7, #4] + 80007d2: 4413 add r3, r2 + 80007d4: 220c movs r2, #12 + 80007d6: 6839 ldr r1, [r7, #0] + 80007d8: 4618 mov r0, r3 + 80007da: f00a fc53 bl 800b084 q->tail = nextTail; - 80008ca: 687b ldr r3, [r7, #4] - 80008cc: 7bfa ldrb r2, [r7, #15] - 80008ce: f883 2181 strb.w r2, [r3, #385] @ 0x181 + 80007de: 687b ldr r3, [r7, #4] + 80007e0: 7bfa ldrb r2, [r7, #15] + 80007e2: f883 2181 strb.w r2, [r3, #385] @ 0x181 return true; - 80008d2: 2301 movs r3, #1 + 80007e6: 2301 movs r3, #1 } - 80008d4: 4618 mov r0, r3 - 80008d6: 3710 adds r7, #16 - 80008d8: 46bd mov sp, r7 - 80008da: bd80 pop {r7, pc} + 80007e8: 4618 mov r0, r3 + 80007ea: 3710 adds r7, #16 + 80007ec: 46bd mov sp, r7 + 80007ee: bd80 pop {r7, pc} -080008dc : +080007f0 : // Called from main bool pq_pop(PacketQueue *q, uint8_t out_packet[PACKET_SIZE]){ - 80008dc: b580 push {r7, lr} - 80008de: b082 sub sp, #8 - 80008e0: af00 add r7, sp, #0 - 80008e2: 6078 str r0, [r7, #4] - 80008e4: 6039 str r1, [r7, #0] + 80007f0: b580 push {r7, lr} + 80007f2: b082 sub sp, #8 + 80007f4: af00 add r7, sp, #0 + 80007f6: 6078 str r0, [r7, #4] + 80007f8: 6039 str r1, [r7, #0] if(q->head == q->tail) return false; // queue empty - 80008e6: 687b ldr r3, [r7, #4] - 80008e8: f893 3180 ldrb.w r3, [r3, #384] @ 0x180 - 80008ec: b2da uxtb r2, r3 - 80008ee: 687b ldr r3, [r7, #4] - 80008f0: f893 3181 ldrb.w r3, [r3, #385] @ 0x181 - 80008f4: b2db uxtb r3, r3 - 80008f6: 429a cmp r2, r3 - 80008f8: d101 bne.n 80008fe - 80008fa: 2300 movs r3, #0 - 80008fc: e020 b.n 8000940 + 80007fa: 687b ldr r3, [r7, #4] + 80007fc: f893 3180 ldrb.w r3, [r3, #384] @ 0x180 + 8000800: b2da uxtb r2, r3 + 8000802: 687b ldr r3, [r7, #4] + 8000804: f893 3181 ldrb.w r3, [r3, #385] @ 0x181 + 8000808: b2db uxtb r3, r3 + 800080a: 429a cmp r2, r3 + 800080c: d101 bne.n 8000812 + 800080e: 2300 movs r3, #0 + 8000810: e020 b.n 8000854 memcpy(out_packet, q->data[q->head], PACKET_SIZE); - 80008fe: 687b ldr r3, [r7, #4] - 8000900: f893 3180 ldrb.w r3, [r3, #384] @ 0x180 - 8000904: b2db uxtb r3, r3 - 8000906: 461a mov r2, r3 - 8000908: 4613 mov r3, r2 - 800090a: 005b lsls r3, r3, #1 - 800090c: 4413 add r3, r2 - 800090e: 009b lsls r3, r3, #2 - 8000910: 687a ldr r2, [r7, #4] - 8000912: 4413 add r3, r2 - 8000914: 220c movs r2, #12 - 8000916: 4619 mov r1, r3 - 8000918: 6838 ldr r0, [r7, #0] - 800091a: f00a fd55 bl 800b3c8 + 8000812: 687b ldr r3, [r7, #4] + 8000814: f893 3180 ldrb.w r3, [r3, #384] @ 0x180 + 8000818: b2db uxtb r3, r3 + 800081a: 461a mov r2, r3 + 800081c: 4613 mov r3, r2 + 800081e: 005b lsls r3, r3, #1 + 8000820: 4413 add r3, r2 + 8000822: 009b lsls r3, r3, #2 + 8000824: 687a ldr r2, [r7, #4] + 8000826: 4413 add r3, r2 + 8000828: 220c movs r2, #12 + 800082a: 4619 mov r1, r3 + 800082c: 6838 ldr r0, [r7, #0] + 800082e: f00a fc29 bl 800b084 q->head = (q->head + 1) % QUEUE_CAPACITY; - 800091e: 687b ldr r3, [r7, #4] - 8000920: f893 3180 ldrb.w r3, [r3, #384] @ 0x180 - 8000924: b2db uxtb r3, r3 - 8000926: 3301 adds r3, #1 - 8000928: 425a negs r2, r3 - 800092a: f003 031f and.w r3, r3, #31 - 800092e: f002 021f and.w r2, r2, #31 - 8000932: bf58 it pl - 8000934: 4253 negpl r3, r2 - 8000936: b2da uxtb r2, r3 - 8000938: 687b ldr r3, [r7, #4] - 800093a: f883 2180 strb.w r2, [r3, #384] @ 0x180 + 8000832: 687b ldr r3, [r7, #4] + 8000834: f893 3180 ldrb.w r3, [r3, #384] @ 0x180 + 8000838: b2db uxtb r3, r3 + 800083a: 3301 adds r3, #1 + 800083c: 425a negs r2, r3 + 800083e: f003 031f and.w r3, r3, #31 + 8000842: f002 021f and.w r2, r2, #31 + 8000846: bf58 it pl + 8000848: 4253 negpl r3, r2 + 800084a: b2da uxtb r2, r3 + 800084c: 687b ldr r3, [r7, #4] + 800084e: f883 2180 strb.w r2, [r3, #384] @ 0x180 return true; - 800093e: 2301 movs r3, #1 + 8000852: 2301 movs r3, #1 } - 8000940: 4618 mov r0, r3 - 8000942: 3708 adds r7, #8 - 8000944: 46bd mov sp, r7 - 8000946: bd80 pop {r7, pc} + 8000854: 4618 mov r0, r3 + 8000856: 3708 adds r7, #8 + 8000858: 46bd mov sp, r7 + 800085a: bd80 pop {r7, pc} -08000948
: +0800085c
: /** * @brief The application entry point. * @retval int */ int main(void) { - 8000948: b580 push {r7, lr} - 800094a: b088 sub sp, #32 - 800094c: af00 add r7, sp, #0 + 800085c: b580 push {r7, lr} + 800085e: b088 sub sp, #32 + 8000860: af00 add r7, sp, #0 /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); - 800094e: f001 fa95 bl 8001e7c + 8000862: f001 faad bl 8001dc0 /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); - 8000952: f000 f97b bl 8000c4c + 8000866: f000 f979 bl 8000b5c /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); - 8000956: f7ff fe51 bl 80005fc + 800086a: f7ff fec7 bl 80005fc MX_DMA_Init();MX_PWM_Init(); - 800095a: f7ff fde9 bl 8000530 - 800095e: f000 fc89 bl 8001274 + 800086e: f7ff fe5f bl 8000530 + 8000872: f000 fca1 bl 80011b8 MX_TIM2_Init(); - 8000962: f000 fdab bl 80014bc + 8000876: f000 fdc3 bl 8001400 MX_TIM3_Init(); - 8000966: f000 fe01 bl 800156c + 800087a: f000 fe19 bl 80014b0 MX_UART4_Init(); - 800096a: f000 fef3 bl 8001754 + 800087e: f000 ff0b bl 8001698 MX_UART5_Init(); - 800096e: f000 ff1b bl 80017a8 + 8000882: f000 ff33 bl 80016ec MX_USART1_UART_Init(); - 8000972: f000 ff43 bl 80017fc + 8000886: f000 ff5b bl 8001740 MX_USART2_UART_Init(); - 8000976: f000 ff6b bl 8001850 - MX_I2C1_Init(); - 800097a: f7ff feef bl 800075c + 800088a: f000 ff83 bl 8001794 MX_USB_DEVICE_Init(); - 800097e: f00a f849 bl 800aa14 + 800088e: f009 ff1f bl 800a6d0 MX_PWM_Init(); - 8000982: f000 fc77 bl 8001274 + 8000892: f000 fc91 bl 80011b8 /* USER CODE BEGIN 2 */ //Enable UART RX DMA for all ports HAL_UART_Receive_DMA(&huart1, (uint8_t*)&RX1Msg, sizeof(UARTMessage)); - 8000986: 2210 movs r2, #16 - 8000988: 4958 ldr r1, [pc, #352] @ (8000aec ) - 800098a: 4859 ldr r0, [pc, #356] @ (8000af0 ) - 800098c: f005 fe48 bl 8006620 + 8000896: 2210 movs r2, #16 + 8000898: 4958 ldr r1, [pc, #352] @ (80009fc ) + 800089a: 4859 ldr r0, [pc, #356] @ (8000a00 ) + 800089c: f005 fd1e bl 80062dc HAL_UART_Receive_DMA(&huart2, (uint8_t*)&RX2Msg, sizeof(UARTMessage)); - 8000990: 2210 movs r2, #16 - 8000992: 4958 ldr r1, [pc, #352] @ (8000af4 ) - 8000994: 4858 ldr r0, [pc, #352] @ (8000af8 ) - 8000996: f005 fe43 bl 8006620 + 80008a0: 2210 movs r2, #16 + 80008a2: 4958 ldr r1, [pc, #352] @ (8000a04 ) + 80008a4: 4858 ldr r0, [pc, #352] @ (8000a08 ) + 80008a6: f005 fd19 bl 80062dc HAL_UART_Receive_DMA(&huart4, (uint8_t*)&RX4Msg, sizeof(UARTMessage)); - 800099a: 2210 movs r2, #16 - 800099c: 4957 ldr r1, [pc, #348] @ (8000afc ) - 800099e: 4858 ldr r0, [pc, #352] @ (8000b00 ) - 80009a0: f005 fe3e bl 8006620 + 80008aa: 2210 movs r2, #16 + 80008ac: 4957 ldr r1, [pc, #348] @ (8000a0c ) + 80008ae: 4858 ldr r0, [pc, #352] @ (8000a10 ) + 80008b0: f005 fd14 bl 80062dc HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); - 80009a4: 2210 movs r2, #16 - 80009a6: 4957 ldr r1, [pc, #348] @ (8000b04 ) - 80009a8: 4857 ldr r0, [pc, #348] @ (8000b08 ) - 80009aa: f005 fe39 bl 8006620 + 80008b4: 2210 movs r2, #16 + 80008b6: 4957 ldr r1, [pc, #348] @ (8000a14 ) + 80008b8: 4857 ldr r0, [pc, #348] @ (8000a18 ) + 80008ba: f005 fd0f bl 80062dc // Start TIM3 encoder (PA6/PA7) so we can read encoder delta HAL_TIM_Encoder_Start(&htim3, TIM_CHANNEL_ALL); - 80009ae: 213c movs r1, #60 @ 0x3c - 80009b0: 4856 ldr r0, [pc, #344] @ (8000b0c ) - 80009b2: f005 f8c5 bl 8005b40 + 80008be: 213c movs r1, #60 @ 0x3c + 80008c0: 4856 ldr r0, [pc, #344] @ (8000a1c ) + 80008c2: f004 ff9b bl 80057fc LAST_ENCODER_COUNT = __HAL_TIM_GET_COUNTER(&htim3); - 80009b6: 4b55 ldr r3, [pc, #340] @ (8000b0c ) - 80009b8: 681b ldr r3, [r3, #0] - 80009ba: 6a5b ldr r3, [r3, #36] @ 0x24 - 80009bc: 461a mov r2, r3 - 80009be: 4b54 ldr r3, [pc, #336] @ (8000b10 ) - 80009c0: 601a str r2, [r3, #0] + 80008c6: 4b55 ldr r3, [pc, #340] @ (8000a1c ) + 80008c8: 681b ldr r3, [r3, #0] + 80008ca: 6a5b ldr r3, [r3, #36] @ 0x24 + 80008cc: 461a mov r2, r3 + 80008ce: 4b54 ldr r3, [pc, #336] @ (8000a20 ) + 80008d0: 601a str r2, [r3, #0] //Prealloc Kestate matrix memset(KEYSTATE, 0, sizeof(KEYSTATE)); - 80009c2: 224b movs r2, #75 @ 0x4b - 80009c4: 2100 movs r1, #0 - 80009c6: 4853 ldr r0, [pc, #332] @ (8000b14 ) - 80009c8: f00a fcd2 bl 800b370 + 80008d2: 224b movs r2, #75 @ 0x4b + 80008d4: 2100 movs r1, #0 + 80008d6: 4853 ldr r0, [pc, #332] @ (8000a24 ) + 80008d8: f00a fba8 bl 800b02c pq_init(&huart1q); - 80009cc: 4852 ldr r0, [pc, #328] @ (8000b18 ) - 80009ce: f7ff ff3b bl 8000848 + 80008dc: 4852 ldr r0, [pc, #328] @ (8000a28 ) + 80008de: f7ff ff3d bl 800075c pq_init(&huart2q); - 80009d2: 4852 ldr r0, [pc, #328] @ (8000b1c ) - 80009d4: f7ff ff38 bl 8000848 + 80008e2: 4852 ldr r0, [pc, #328] @ (8000a2c ) + 80008e4: f7ff ff3a bl 800075c pq_init(&huart4q); - 80009d8: 4851 ldr r0, [pc, #324] @ (8000b20 ) - 80009da: f7ff ff35 bl 8000848 + 80008e8: 4851 ldr r0, [pc, #324] @ (8000a30 ) + 80008ea: f7ff ff37 bl 800075c pq_init(&huart5q); - 80009de: 4851 ldr r0, [pc, #324] @ (8000b24 ) - 80009e0: f7ff ff32 bl 8000848 + 80008ee: 4851 ldr r0, [pc, #324] @ (8000a34 ) + 80008f0: f7ff ff34 bl 800075c PWM_Start(); - 80009e4: f000 fc74 bl 80012d0 + 80008f4: f000 fc8e bl 8001214 /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { __HAL_TIM_SET_COMPARE(&htim2, TIM_CHANNEL_1, 67); - 80009e8: 4b4f ldr r3, [pc, #316] @ (8000b28 ) - 80009ea: 681b ldr r3, [r3, #0] - 80009ec: 2243 movs r2, #67 @ 0x43 - 80009ee: 635a str r2, [r3, #52] @ 0x34 + 80008f8: 4b4f ldr r3, [pc, #316] @ (8000a38 ) + 80008fa: 681b ldr r3, [r3, #0] + 80008fc: 2243 movs r2, #67 @ 0x43 + 80008fe: 635a str r2, [r3, #52] @ 0x34 switch (MODE){ - 80009f0: 4b4e ldr r3, [pc, #312] @ (8000b2c ) - 80009f2: 781b ldrb r3, [r3, #0] - 80009f4: b2db uxtb r3, r3 - 80009f6: 2b02 cmp r3, #2 - 80009f8: d006 beq.n 8000a08 - 80009fa: 2b02 cmp r3, #2 - 80009fc: dc6e bgt.n 8000adc - 80009fe: 2b00 cmp r3, #0 - 8000a00: d027 beq.n 8000a52 - 8000a02: 2b01 cmp r3, #1 - 8000a04: d05c beq.n 8000ac0 + 8000900: 4b4e ldr r3, [pc, #312] @ (8000a3c ) + 8000902: 781b ldrb r3, [r3, #0] + 8000904: b2db uxtb r3, r3 + 8000906: 2b02 cmp r3, #2 + 8000908: d006 beq.n 8000918 + 800090a: 2b02 cmp r3, #2 + 800090c: dc6e bgt.n 80009ec + 800090e: 2b00 cmp r3, #0 + 8000910: d027 beq.n 8000962 + 8000912: 2b01 cmp r3, #1 + 8000914: d05c beq.n 80009d0 encoderProcess(); USBD_HID_SendReport(&hUsbDeviceFS, (uint8_t*)&REPORT, sizeof(REPORT)); break; default: break; - 8000a06: e069 b.n 8000adc + 8000916: e069 b.n 80009ec KEYSTATE_CHANGED_FLAG = 1; - 8000a08: 4b49 ldr r3, [pc, #292] @ (8000b30 ) - 8000a0a: 2201 movs r2, #1 - 8000a0c: 701a strb r2, [r3, #0] + 8000918: 4b49 ldr r3, [pc, #292] @ (8000a40 ) + 800091a: 2201 movs r2, #1 + 800091c: 701a strb r2, [r3, #0] resetReport(); - 8000a0e: f000 fc1f bl 8001250 + 800091e: f000 fc35 bl 800118c matrixScan(); - 8000a12: f000 fb47 bl 80010a4 + 8000922: f000 fb5d bl 8000fe0 mergeChild(); - 8000a16: f000 f895 bl 8000b44 + 8000926: f000 f895 bl 8000a54 encoderProcess(); - 8000a1a: f000 fbbb bl 8001194 + 800092a: f000 fbd1 bl 80010d0 if(KEYSTATE_CHANGED_FLAG == 1){ - 8000a1e: 4b44 ldr r3, [pc, #272] @ (8000b30 ) - 8000a20: 781b ldrb r3, [r3, #0] - 8000a22: 2b01 cmp r3, #1 - 8000a24: d15c bne.n 8000ae0 + 800092e: 4b44 ldr r3, [pc, #272] @ (8000a40 ) + 8000930: 781b ldrb r3, [r3, #0] + 8000932: 2b01 cmp r3, #1 + 8000934: d15c bne.n 80009f0 UARTREPORT.DEPTH = DEPTH; - 8000a26: 4b43 ldr r3, [pc, #268] @ (8000b34 ) - 8000a28: 881b ldrh r3, [r3, #0] - 8000a2a: 823b strh r3, [r7, #16] + 8000936: 4b43 ldr r3, [pc, #268] @ (8000a44 ) + 8000938: 881b ldrh r3, [r3, #0] + 800093a: 823b strh r3, [r7, #16] UARTREPORT.TYPE = 0xEE; - 8000a2c: 23ee movs r3, #238 @ 0xee - 8000a2e: 827b strh r3, [r7, #18] + 800093c: 23ee movs r3, #238 @ 0xee + 800093e: 827b strh r3, [r7, #18] memcpy(UARTREPORT.KEYPRESS, REPORT.KEYPRESS, sizeof(UARTREPORT.KEYPRESS)); - 8000a30: 4a41 ldr r2, [pc, #260] @ (8000b38 ) - 8000a32: f107 0314 add.w r3, r7, #20 - 8000a36: 3202 adds r2, #2 - 8000a38: 6810 ldr r0, [r2, #0] - 8000a3a: 6851 ldr r1, [r2, #4] - 8000a3c: 6892 ldr r2, [r2, #8] - 8000a3e: c307 stmia r3!, {r0, r1, r2} + 8000940: 4a41 ldr r2, [pc, #260] @ (8000a48 ) + 8000942: f107 0314 add.w r3, r7, #20 + 8000946: 3202 adds r2, #2 + 8000948: 6810 ldr r0, [r2, #0] + 800094a: 6851 ldr r1, [r2, #4] + 800094c: 6892 ldr r2, [r2, #8] + 800094e: c307 stmia r3!, {r0, r1, r2} HAL_UART_Transmit_DMA(PARENT, (uint8_t*)&UARTREPORT, sizeof(UARTREPORT)); - 8000a40: 4b3e ldr r3, [pc, #248] @ (8000b3c ) - 8000a42: 681b ldr r3, [r3, #0] - 8000a44: f107 0110 add.w r1, r7, #16 - 8000a48: 2210 movs r2, #16 - 8000a4a: 4618 mov r0, r3 - 8000a4c: f005 fd6c bl 8006528 + 8000950: 4b3e ldr r3, [pc, #248] @ (8000a4c ) + 8000952: 681b ldr r3, [r3, #0] + 8000954: f107 0110 add.w r1, r7, #16 + 8000958: 2210 movs r2, #16 + 800095a: 4618 mov r0, r3 + 800095c: f005 fc42 bl 80061e4 break; - 8000a50: e046 b.n 8000ae0 + 8000960: e046 b.n 80009f0 if(hUsbDeviceFS.dev_state == USBD_STATE_CONFIGURED){ - 8000a52: 4b3b ldr r3, [pc, #236] @ (8000b40 ) - 8000a54: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8000a58: b2db uxtb r3, r3 - 8000a5a: 2b03 cmp r3, #3 - 8000a5c: d106 bne.n 8000a6c + 8000962: 4b3b ldr r3, [pc, #236] @ (8000a50 ) + 8000964: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8000968: b2db uxtb r3, r3 + 800096a: 2b03 cmp r3, #3 + 800096c: d106 bne.n 800097c MODE = MODE_MAINBOARD; - 8000a5e: 4b33 ldr r3, [pc, #204] @ (8000b2c ) - 8000a60: 2201 movs r2, #1 - 8000a62: 701a strb r2, [r3, #0] + 800096e: 4b33 ldr r3, [pc, #204] @ (8000a3c ) + 8000970: 2201 movs r2, #1 + 8000972: 701a strb r2, [r3, #0] DEPTH = 0; - 8000a64: 4b33 ldr r3, [pc, #204] @ (8000b34 ) - 8000a66: 2200 movs r2, #0 - 8000a68: 801a strh r2, [r3, #0] + 8000974: 4b33 ldr r3, [pc, #204] @ (8000a44 ) + 8000976: 2200 movs r2, #0 + 8000978: 801a strh r2, [r3, #0] break; - 8000a6a: e03a b.n 8000ae2 + 800097a: e03a b.n 80009f2 REQ.DEPTH = 0; - 8000a6c: 2300 movs r3, #0 - 8000a6e: 803b strh r3, [r7, #0] + 800097c: 2300 movs r3, #0 + 800097e: 803b strh r3, [r7, #0] REQ.TYPE = 0xFF; //Message code for request is 0xFF - 8000a70: 23ff movs r3, #255 @ 0xff - 8000a72: 807b strh r3, [r7, #2] + 8000980: 23ff movs r3, #255 @ 0xff + 8000982: 807b strh r3, [r7, #2] memset(REQ.KEYPRESS, 0, sizeof(REQ.KEYPRESS)); - 8000a74: 463b mov r3, r7 - 8000a76: 3304 adds r3, #4 - 8000a78: 220c movs r2, #12 - 8000a7a: 2100 movs r1, #0 - 8000a7c: 4618 mov r0, r3 - 8000a7e: f00a fc77 bl 800b370 + 8000984: 463b mov r3, r7 + 8000986: 3304 adds r3, #4 + 8000988: 220c movs r2, #12 + 800098a: 2100 movs r1, #0 + 800098c: 4618 mov r0, r3 + 800098e: f00a fb4d bl 800b02c HAL_UART_Transmit_DMA(&huart1, (uint8_t*)&REQ, sizeof(REQ)); - 8000a82: 463b mov r3, r7 - 8000a84: 2210 movs r2, #16 - 8000a86: 4619 mov r1, r3 - 8000a88: 4819 ldr r0, [pc, #100] @ (8000af0 ) - 8000a8a: f005 fd4d bl 8006528 + 8000992: 463b mov r3, r7 + 8000994: 2210 movs r2, #16 + 8000996: 4619 mov r1, r3 + 8000998: 4819 ldr r0, [pc, #100] @ (8000a00 ) + 800099a: f005 fc23 bl 80061e4 HAL_UART_Transmit_DMA(&huart2, (uint8_t*)&REQ, sizeof(REQ)); - 8000a8e: 463b mov r3, r7 - 8000a90: 2210 movs r2, #16 - 8000a92: 4619 mov r1, r3 - 8000a94: 4818 ldr r0, [pc, #96] @ (8000af8 ) - 8000a96: f005 fd47 bl 8006528 + 800099e: 463b mov r3, r7 + 80009a0: 2210 movs r2, #16 + 80009a2: 4619 mov r1, r3 + 80009a4: 4818 ldr r0, [pc, #96] @ (8000a08 ) + 80009a6: f005 fc1d bl 80061e4 HAL_UART_Transmit_DMA(&huart4, (uint8_t*)&REQ, sizeof(REQ)); - 8000a9a: 463b mov r3, r7 - 8000a9c: 2210 movs r2, #16 - 8000a9e: 4619 mov r1, r3 - 8000aa0: 4817 ldr r0, [pc, #92] @ (8000b00 ) - 8000aa2: f005 fd41 bl 8006528 + 80009aa: 463b mov r3, r7 + 80009ac: 2210 movs r2, #16 + 80009ae: 4619 mov r1, r3 + 80009b0: 4817 ldr r0, [pc, #92] @ (8000a10 ) + 80009b2: f005 fc17 bl 80061e4 HAL_UART_Transmit_DMA(&huart5, (uint8_t*)&REQ, sizeof(REQ)); - 8000aa6: 463b mov r3, r7 - 8000aa8: 2210 movs r2, #16 - 8000aaa: 4619 mov r1, r3 - 8000aac: 4816 ldr r0, [pc, #88] @ (8000b08 ) - 8000aae: f005 fd3b bl 8006528 + 80009b6: 463b mov r3, r7 + 80009b8: 2210 movs r2, #16 + 80009ba: 4619 mov r1, r3 + 80009bc: 4816 ldr r0, [pc, #88] @ (8000a18 ) + 80009be: f005 fc11 bl 80061e4 HAL_Delay(500); - 8000ab2: f44f 70fa mov.w r0, #500 @ 0x1f4 - 8000ab6: f001 fa53 bl 8001f60 + 80009c2: f44f 70fa mov.w r0, #500 @ 0x1f4 + 80009c6: f001 fa6d bl 8001ea4 findBestParent(); //So true... - 8000aba: f000 f9db bl 8000e74 + 80009ca: f000 f9db bl 8000d84 break; - 8000abe: e010 b.n 8000ae2 + 80009ce: e010 b.n 80009f2 resetReport(); - 8000ac0: f000 fbc6 bl 8001250 + 80009d0: f000 fbdc bl 800118c matrixScan();//Something related to this making the key stick. Likely due to race conditions - 8000ac4: f000 faee bl 80010a4 + 80009d4: f000 fb04 bl 8000fe0 mergeChild(); - 8000ac8: f000 f83c bl 8000b44 + 80009d8: f000 f83c bl 8000a54 encoderProcess(); - 8000acc: f000 fb62 bl 8001194 + 80009dc: f000 fb78 bl 80010d0 USBD_HID_SendReport(&hUsbDeviceFS, (uint8_t*)&REPORT, sizeof(REPORT)); - 8000ad0: 220e movs r2, #14 - 8000ad2: 4919 ldr r1, [pc, #100] @ (8000b38 ) - 8000ad4: 481a ldr r0, [pc, #104] @ (8000b40 ) - 8000ad6: f008 fbd1 bl 800927c + 80009e0: 220e movs r2, #14 + 80009e2: 4919 ldr r1, [pc, #100] @ (8000a48 ) + 80009e4: 481a ldr r0, [pc, #104] @ (8000a50 ) + 80009e6: f008 faa7 bl 8008f38 break; - 8000ada: e002 b.n 8000ae2 + 80009ea: e002 b.n 80009f2 break; - 8000adc: bf00 nop - 8000ade: e000 b.n 8000ae2 + 80009ec: bf00 nop + 80009ee: e000 b.n 80009f2 break; - 8000ae0: bf00 nop + 80009f0: bf00 nop } - HAL_Delay(20); - 8000ae2: 2014 movs r0, #20 - 8000ae4: f001 fa3c bl 8001f60 + HAL_Delay(1); + 80009f2: 2001 movs r0, #1 + 80009f4: f001 fa56 bl 8001ea4 __HAL_TIM_SET_COMPARE(&htim2, TIM_CHANNEL_1, 67); - 8000ae8: e77e b.n 80009e8 - 8000aea: bf00 nop - 8000aec: 200002a4 .word 0x200002a4 - 8000af0: 20000a90 .word 0x20000a90 - 8000af4: 200002b4 .word 0x200002b4 - 8000af8: 20000ad8 .word 0x20000ad8 - 8000afc: 200002c4 .word 0x200002c4 - 8000b00: 20000a00 .word 0x20000a00 - 8000b04: 20000294 .word 0x20000294 - 8000b08: 20000a48 .word 0x20000a48 - 8000b0c: 200009b8 .word 0x200009b8 - 8000b10: 2000032c .word 0x2000032c - 8000b14: 200002e0 .word 0x200002e0 - 8000b18: 20000360 .word 0x20000360 - 8000b1c: 200004e4 .word 0x200004e4 - 8000b20: 20000668 .word 0x20000668 - 8000b24: 200007ec .word 0x200007ec - 8000b28: 20000970 .word 0x20000970 - 8000b2c: 2000032b .word 0x2000032b - 8000b30: 200002dc .word 0x200002dc - 8000b34: 200002d4 .word 0x200002d4 - 8000b38: 20000284 .word 0x20000284 - 8000b3c: 200002d8 .word 0x200002d8 - 8000b40: 20000e28 .word 0x20000e28 + 80009f8: e77e b.n 80008f8 + 80009fa: bf00 nop + 80009fc: 20000250 .word 0x20000250 + 8000a00: 20000a3c .word 0x20000a3c + 8000a04: 20000260 .word 0x20000260 + 8000a08: 20000a84 .word 0x20000a84 + 8000a0c: 20000270 .word 0x20000270 + 8000a10: 200009ac .word 0x200009ac + 8000a14: 20000240 .word 0x20000240 + 8000a18: 200009f4 .word 0x200009f4 + 8000a1c: 20000964 .word 0x20000964 + 8000a20: 200002d8 .word 0x200002d8 + 8000a24: 2000028c .word 0x2000028c + 8000a28: 2000030c .word 0x2000030c + 8000a2c: 20000490 .word 0x20000490 + 8000a30: 20000614 .word 0x20000614 + 8000a34: 20000798 .word 0x20000798 + 8000a38: 2000091c .word 0x2000091c + 8000a3c: 200002d7 .word 0x200002d7 + 8000a40: 20000288 .word 0x20000288 + 8000a44: 20000280 .word 0x20000280 + 8000a48: 20000230 .word 0x20000230 + 8000a4c: 20000284 .word 0x20000284 + 8000a50: 20000dd4 .word 0x20000dd4 -08000b44 : +08000a54 : /* USER CODE BEGIN 3 */ } /* USER CODE END 3 */ } void mergeChild(){ - 8000b44: b590 push {r4, r7, lr} - 8000b46: b087 sub sp, #28 - 8000b48: af00 add r7, sp, #0 + 8000a54: b590 push {r4, r7, lr} + 8000a56: b087 sub sp, #28 + 8000a58: af00 add r7, sp, #0 uint8_t packet[12]; if (pq_pop(&huart1q, packet)) { - 8000b4a: 1d3b adds r3, r7, #4 - 8000b4c: 4619 mov r1, r3 - 8000b4e: 4838 ldr r0, [pc, #224] @ (8000c30 ) - 8000b50: f7ff fec4 bl 80008dc - 8000b54: 4603 mov r3, r0 - 8000b56: 2b00 cmp r3, #0 - 8000b58: d008 beq.n 8000b6c + 8000a5a: 1d3b adds r3, r7, #4 + 8000a5c: 4619 mov r1, r3 + 8000a5e: 4838 ldr r0, [pc, #224] @ (8000b40 ) + 8000a60: f7ff fec6 bl 80007f0 + 8000a64: 4603 mov r3, r0 + 8000a66: 2b00 cmp r3, #0 + 8000a68: d008 beq.n 8000a7c memcpy(UART_KEYSTATE[1], packet, 12); - 8000b5a: 4b36 ldr r3, [pc, #216] @ (8000c34 ) - 8000b5c: 330c adds r3, #12 - 8000b5e: 1d3a adds r2, r7, #4 - 8000b60: ca07 ldmia r2, {r0, r1, r2} - 8000b62: e883 0007 stmia.w r3, {r0, r1, r2} + 8000a6a: 4b36 ldr r3, [pc, #216] @ (8000b44 ) + 8000a6c: 330c adds r3, #12 + 8000a6e: 1d3a adds r2, r7, #4 + 8000a70: ca07 ldmia r2, {r0, r1, r2} + 8000a72: e883 0007 stmia.w r3, {r0, r1, r2} KEYSTATE_CHANGED_FLAG = 1; - 8000b66: 4b34 ldr r3, [pc, #208] @ (8000c38 ) - 8000b68: 2201 movs r2, #1 - 8000b6a: 701a strb r2, [r3, #0] + 8000a76: 4b34 ldr r3, [pc, #208] @ (8000b48 ) + 8000a78: 2201 movs r2, #1 + 8000a7a: 701a strb r2, [r3, #0] } if (pq_pop(&huart2q, packet)) { - 8000b6c: 1d3b adds r3, r7, #4 - 8000b6e: 4619 mov r1, r3 - 8000b70: 4832 ldr r0, [pc, #200] @ (8000c3c ) - 8000b72: f7ff feb3 bl 80008dc - 8000b76: 4603 mov r3, r0 - 8000b78: 2b00 cmp r3, #0 - 8000b7a: d008 beq.n 8000b8e + 8000a7c: 1d3b adds r3, r7, #4 + 8000a7e: 4619 mov r1, r3 + 8000a80: 4832 ldr r0, [pc, #200] @ (8000b4c ) + 8000a82: f7ff feb5 bl 80007f0 + 8000a86: 4603 mov r3, r0 + 8000a88: 2b00 cmp r3, #0 + 8000a8a: d008 beq.n 8000a9e memcpy(UART_KEYSTATE[2], packet, 12); - 8000b7c: 4b2d ldr r3, [pc, #180] @ (8000c34 ) - 8000b7e: 3318 adds r3, #24 - 8000b80: 1d3a adds r2, r7, #4 - 8000b82: ca07 ldmia r2, {r0, r1, r2} - 8000b84: e883 0007 stmia.w r3, {r0, r1, r2} + 8000a8c: 4b2d ldr r3, [pc, #180] @ (8000b44 ) + 8000a8e: 3318 adds r3, #24 + 8000a90: 1d3a adds r2, r7, #4 + 8000a92: ca07 ldmia r2, {r0, r1, r2} + 8000a94: e883 0007 stmia.w r3, {r0, r1, r2} KEYSTATE_CHANGED_FLAG = 1; - 8000b88: 4b2b ldr r3, [pc, #172] @ (8000c38 ) - 8000b8a: 2201 movs r2, #1 - 8000b8c: 701a strb r2, [r3, #0] + 8000a98: 4b2b ldr r3, [pc, #172] @ (8000b48 ) + 8000a9a: 2201 movs r2, #1 + 8000a9c: 701a strb r2, [r3, #0] } if (pq_pop(&huart4q, packet)) { - 8000b8e: 1d3b adds r3, r7, #4 - 8000b90: 4619 mov r1, r3 - 8000b92: 482b ldr r0, [pc, #172] @ (8000c40 ) - 8000b94: f7ff fea2 bl 80008dc - 8000b98: 4603 mov r3, r0 - 8000b9a: 2b00 cmp r3, #0 - 8000b9c: d008 beq.n 8000bb0 + 8000a9e: 1d3b adds r3, r7, #4 + 8000aa0: 4619 mov r1, r3 + 8000aa2: 482b ldr r0, [pc, #172] @ (8000b50 ) + 8000aa4: f7ff fea4 bl 80007f0 + 8000aa8: 4603 mov r3, r0 + 8000aaa: 2b00 cmp r3, #0 + 8000aac: d008 beq.n 8000ac0 memcpy(UART_KEYSTATE[3], packet, 12); - 8000b9e: 4b25 ldr r3, [pc, #148] @ (8000c34 ) - 8000ba0: 3324 adds r3, #36 @ 0x24 - 8000ba2: 1d3a adds r2, r7, #4 - 8000ba4: ca07 ldmia r2, {r0, r1, r2} - 8000ba6: e883 0007 stmia.w r3, {r0, r1, r2} + 8000aae: 4b25 ldr r3, [pc, #148] @ (8000b44 ) + 8000ab0: 3324 adds r3, #36 @ 0x24 + 8000ab2: 1d3a adds r2, r7, #4 + 8000ab4: ca07 ldmia r2, {r0, r1, r2} + 8000ab6: e883 0007 stmia.w r3, {r0, r1, r2} KEYSTATE_CHANGED_FLAG = 1; - 8000baa: 4b23 ldr r3, [pc, #140] @ (8000c38 ) - 8000bac: 2201 movs r2, #1 - 8000bae: 701a strb r2, [r3, #0] + 8000aba: 4b23 ldr r3, [pc, #140] @ (8000b48 ) + 8000abc: 2201 movs r2, #1 + 8000abe: 701a strb r2, [r3, #0] } if (pq_pop(&huart5q, packet)) { - 8000bb0: 1d3b adds r3, r7, #4 - 8000bb2: 4619 mov r1, r3 - 8000bb4: 4823 ldr r0, [pc, #140] @ (8000c44 ) - 8000bb6: f7ff fe91 bl 80008dc - 8000bba: 4603 mov r3, r0 - 8000bbc: 2b00 cmp r3, #0 - 8000bbe: d009 beq.n 8000bd4 + 8000ac0: 1d3b adds r3, r7, #4 + 8000ac2: 4619 mov r1, r3 + 8000ac4: 4823 ldr r0, [pc, #140] @ (8000b54 ) + 8000ac6: f7ff fe93 bl 80007f0 + 8000aca: 4603 mov r3, r0 + 8000acc: 2b00 cmp r3, #0 + 8000ace: d009 beq.n 8000ae4 memcpy(UART_KEYSTATE[0], packet, 12); - 8000bc0: 4b1c ldr r3, [pc, #112] @ (8000c34 ) - 8000bc2: 461c mov r4, r3 - 8000bc4: 1d3b adds r3, r7, #4 - 8000bc6: e893 0007 ldmia.w r3, {r0, r1, r2} - 8000bca: e884 0007 stmia.w r4, {r0, r1, r2} + 8000ad0: 4b1c ldr r3, [pc, #112] @ (8000b44 ) + 8000ad2: 461c mov r4, r3 + 8000ad4: 1d3b adds r3, r7, #4 + 8000ad6: e893 0007 ldmia.w r3, {r0, r1, r2} + 8000ada: e884 0007 stmia.w r4, {r0, r1, r2} KEYSTATE_CHANGED_FLAG = 1; - 8000bce: 4b1a ldr r3, [pc, #104] @ (8000c38 ) - 8000bd0: 2201 movs r2, #1 - 8000bd2: 701a strb r2, [r3, #0] + 8000ade: 4b1a ldr r3, [pc, #104] @ (8000b48 ) + 8000ae0: 2201 movs r2, #1 + 8000ae2: 701a strb r2, [r3, #0] } for(int i = 0; i < 4; i++){ - 8000bd4: 2300 movs r3, #0 - 8000bd6: 617b str r3, [r7, #20] - 8000bd8: e022 b.n 8000c20 + 8000ae4: 2300 movs r3, #0 + 8000ae6: 617b str r3, [r7, #20] + 8000ae8: e022 b.n 8000b30 for(int j = 0; j < 12; j++){ - 8000bda: 2300 movs r3, #0 - 8000bdc: 613b str r3, [r7, #16] - 8000bde: e019 b.n 8000c14 + 8000aea: 2300 movs r3, #0 + 8000aec: 613b str r3, [r7, #16] + 8000aee: e019 b.n 8000b24 REPORT.KEYPRESS[j] |= UART_KEYSTATE[i][j]; - 8000be0: 4a19 ldr r2, [pc, #100] @ (8000c48 ) - 8000be2: 693b ldr r3, [r7, #16] - 8000be4: 4413 add r3, r2 - 8000be6: 3302 adds r3, #2 - 8000be8: 7819 ldrb r1, [r3, #0] - 8000bea: 4812 ldr r0, [pc, #72] @ (8000c34 ) - 8000bec: 697a ldr r2, [r7, #20] - 8000bee: 4613 mov r3, r2 - 8000bf0: 005b lsls r3, r3, #1 - 8000bf2: 4413 add r3, r2 - 8000bf4: 009b lsls r3, r3, #2 - 8000bf6: 18c2 adds r2, r0, r3 - 8000bf8: 693b ldr r3, [r7, #16] - 8000bfa: 4413 add r3, r2 - 8000bfc: 781b ldrb r3, [r3, #0] - 8000bfe: 430b orrs r3, r1 - 8000c00: b2d9 uxtb r1, r3 - 8000c02: 4a11 ldr r2, [pc, #68] @ (8000c48 ) - 8000c04: 693b ldr r3, [r7, #16] - 8000c06: 4413 add r3, r2 - 8000c08: 3302 adds r3, #2 - 8000c0a: 460a mov r2, r1 - 8000c0c: 701a strb r2, [r3, #0] + 8000af0: 4a19 ldr r2, [pc, #100] @ (8000b58 ) + 8000af2: 693b ldr r3, [r7, #16] + 8000af4: 4413 add r3, r2 + 8000af6: 3302 adds r3, #2 + 8000af8: 7819 ldrb r1, [r3, #0] + 8000afa: 4812 ldr r0, [pc, #72] @ (8000b44 ) + 8000afc: 697a ldr r2, [r7, #20] + 8000afe: 4613 mov r3, r2 + 8000b00: 005b lsls r3, r3, #1 + 8000b02: 4413 add r3, r2 + 8000b04: 009b lsls r3, r3, #2 + 8000b06: 18c2 adds r2, r0, r3 + 8000b08: 693b ldr r3, [r7, #16] + 8000b0a: 4413 add r3, r2 + 8000b0c: 781b ldrb r3, [r3, #0] + 8000b0e: 430b orrs r3, r1 + 8000b10: b2d9 uxtb r1, r3 + 8000b12: 4a11 ldr r2, [pc, #68] @ (8000b58 ) + 8000b14: 693b ldr r3, [r7, #16] + 8000b16: 4413 add r3, r2 + 8000b18: 3302 adds r3, #2 + 8000b1a: 460a mov r2, r1 + 8000b1c: 701a strb r2, [r3, #0] for(int j = 0; j < 12; j++){ - 8000c0e: 693b ldr r3, [r7, #16] - 8000c10: 3301 adds r3, #1 - 8000c12: 613b str r3, [r7, #16] - 8000c14: 693b ldr r3, [r7, #16] - 8000c16: 2b0b cmp r3, #11 - 8000c18: dde2 ble.n 8000be0 + 8000b1e: 693b ldr r3, [r7, #16] + 8000b20: 3301 adds r3, #1 + 8000b22: 613b str r3, [r7, #16] + 8000b24: 693b ldr r3, [r7, #16] + 8000b26: 2b0b cmp r3, #11 + 8000b28: dde2 ble.n 8000af0 for(int i = 0; i < 4; i++){ - 8000c1a: 697b ldr r3, [r7, #20] - 8000c1c: 3301 adds r3, #1 - 8000c1e: 617b str r3, [r7, #20] - 8000c20: 697b ldr r3, [r7, #20] - 8000c22: 2b03 cmp r3, #3 - 8000c24: ddd9 ble.n 8000bda + 8000b2a: 697b ldr r3, [r7, #20] + 8000b2c: 3301 adds r3, #1 + 8000b2e: 617b str r3, [r7, #20] + 8000b30: 697b ldr r3, [r7, #20] + 8000b32: 2b03 cmp r3, #3 + 8000b34: ddd9 ble.n 8000aea } } } - 8000c26: bf00 nop - 8000c28: bf00 nop - 8000c2a: 371c adds r7, #28 - 8000c2c: 46bd mov sp, r7 - 8000c2e: bd90 pop {r4, r7, pc} - 8000c30: 20000360 .word 0x20000360 - 8000c34: 20000330 .word 0x20000330 - 8000c38: 200002dc .word 0x200002dc - 8000c3c: 200004e4 .word 0x200004e4 - 8000c40: 20000668 .word 0x20000668 - 8000c44: 200007ec .word 0x200007ec - 8000c48: 20000284 .word 0x20000284 + 8000b36: bf00 nop + 8000b38: bf00 nop + 8000b3a: 371c adds r7, #28 + 8000b3c: 46bd mov sp, r7 + 8000b3e: bd90 pop {r4, r7, pc} + 8000b40: 2000030c .word 0x2000030c + 8000b44: 200002dc .word 0x200002dc + 8000b48: 20000288 .word 0x20000288 + 8000b4c: 20000490 .word 0x20000490 + 8000b50: 20000614 .word 0x20000614 + 8000b54: 20000798 .word 0x20000798 + 8000b58: 20000230 .word 0x20000230 -08000c4c : +08000b5c : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { - 8000c4c: b580 push {r7, lr} - 8000c4e: b094 sub sp, #80 @ 0x50 - 8000c50: af00 add r7, sp, #0 + 8000b5c: b580 push {r7, lr} + 8000b5e: b094 sub sp, #80 @ 0x50 + 8000b60: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - 8000c52: f107 031c add.w r3, r7, #28 - 8000c56: 2234 movs r2, #52 @ 0x34 - 8000c58: 2100 movs r1, #0 - 8000c5a: 4618 mov r0, r3 - 8000c5c: f00a fb88 bl 800b370 + 8000b62: f107 031c add.w r3, r7, #28 + 8000b66: 2234 movs r2, #52 @ 0x34 + 8000b68: 2100 movs r1, #0 + 8000b6a: 4618 mov r0, r3 + 8000b6c: f00a fa5e bl 800b02c RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - 8000c60: f107 0308 add.w r3, r7, #8 - 8000c64: 2200 movs r2, #0 - 8000c66: 601a str r2, [r3, #0] - 8000c68: 605a str r2, [r3, #4] - 8000c6a: 609a str r2, [r3, #8] - 8000c6c: 60da str r2, [r3, #12] - 8000c6e: 611a str r2, [r3, #16] + 8000b70: f107 0308 add.w r3, r7, #8 + 8000b74: 2200 movs r2, #0 + 8000b76: 601a str r2, [r3, #0] + 8000b78: 605a str r2, [r3, #4] + 8000b7a: 609a str r2, [r3, #8] + 8000b7c: 60da str r2, [r3, #12] + 8000b7e: 611a str r2, [r3, #16] /** Configure the main internal regulator out put voltage */ __HAL_RCC_PWR_CLK_ENABLE(); - 8000c70: 2300 movs r3, #0 - 8000c72: 607b str r3, [r7, #4] - 8000c74: 4b29 ldr r3, [pc, #164] @ (8000d1c ) - 8000c76: 6c1b ldr r3, [r3, #64] @ 0x40 - 8000c78: 4a28 ldr r2, [pc, #160] @ (8000d1c ) - 8000c7a: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8000c7e: 6413 str r3, [r2, #64] @ 0x40 - 8000c80: 4b26 ldr r3, [pc, #152] @ (8000d1c ) - 8000c82: 6c1b ldr r3, [r3, #64] @ 0x40 - 8000c84: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8000c88: 607b str r3, [r7, #4] - 8000c8a: 687b ldr r3, [r7, #4] + 8000b80: 2300 movs r3, #0 + 8000b82: 607b str r3, [r7, #4] + 8000b84: 4b29 ldr r3, [pc, #164] @ (8000c2c ) + 8000b86: 6c1b ldr r3, [r3, #64] @ 0x40 + 8000b88: 4a28 ldr r2, [pc, #160] @ (8000c2c ) + 8000b8a: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8000b8e: 6413 str r3, [r2, #64] @ 0x40 + 8000b90: 4b26 ldr r3, [pc, #152] @ (8000c2c ) + 8000b92: 6c1b ldr r3, [r3, #64] @ 0x40 + 8000b94: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8000b98: 607b str r3, [r7, #4] + 8000b9a: 687b ldr r3, [r7, #4] __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3); - 8000c8c: 2300 movs r3, #0 - 8000c8e: 603b str r3, [r7, #0] - 8000c90: 4b23 ldr r3, [pc, #140] @ (8000d20 ) - 8000c92: 681b ldr r3, [r3, #0] - 8000c94: f423 4340 bic.w r3, r3, #49152 @ 0xc000 - 8000c98: 4a21 ldr r2, [pc, #132] @ (8000d20 ) - 8000c9a: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 8000c9e: 6013 str r3, [r2, #0] - 8000ca0: 4b1f ldr r3, [pc, #124] @ (8000d20 ) - 8000ca2: 681b ldr r3, [r3, #0] - 8000ca4: f403 4340 and.w r3, r3, #49152 @ 0xc000 - 8000ca8: 603b str r3, [r7, #0] - 8000caa: 683b ldr r3, [r7, #0] + 8000b9c: 2300 movs r3, #0 + 8000b9e: 603b str r3, [r7, #0] + 8000ba0: 4b23 ldr r3, [pc, #140] @ (8000c30 ) + 8000ba2: 681b ldr r3, [r3, #0] + 8000ba4: f423 4340 bic.w r3, r3, #49152 @ 0xc000 + 8000ba8: 4a21 ldr r2, [pc, #132] @ (8000c30 ) + 8000baa: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 8000bae: 6013 str r3, [r2, #0] + 8000bb0: 4b1f ldr r3, [pc, #124] @ (8000c30 ) + 8000bb2: 681b ldr r3, [r3, #0] + 8000bb4: f403 4340 and.w r3, r3, #49152 @ 0xc000 + 8000bb8: 603b str r3, [r7, #0] + 8000bba: 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; - 8000cac: 2301 movs r3, #1 - 8000cae: 61fb str r3, [r7, #28] + 8000bbc: 2301 movs r3, #1 + 8000bbe: 61fb str r3, [r7, #28] RCC_OscInitStruct.HSEState = RCC_HSE_ON; - 8000cb0: f44f 3380 mov.w r3, #65536 @ 0x10000 - 8000cb4: 623b str r3, [r7, #32] + 8000bc0: f44f 3380 mov.w r3, #65536 @ 0x10000 + 8000bc4: 623b str r3, [r7, #32] RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; - 8000cb6: 2302 movs r3, #2 - 8000cb8: 637b str r3, [r7, #52] @ 0x34 + 8000bc6: 2302 movs r3, #2 + 8000bc8: 637b str r3, [r7, #52] @ 0x34 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; - 8000cba: f44f 0380 mov.w r3, #4194304 @ 0x400000 - 8000cbe: 63bb str r3, [r7, #56] @ 0x38 + 8000bca: f44f 0380 mov.w r3, #4194304 @ 0x400000 + 8000bce: 63bb str r3, [r7, #56] @ 0x38 RCC_OscInitStruct.PLL.PLLM = 4; - 8000cc0: 2304 movs r3, #4 - 8000cc2: 63fb str r3, [r7, #60] @ 0x3c + 8000bd0: 2304 movs r3, #4 + 8000bd2: 63fb str r3, [r7, #60] @ 0x3c RCC_OscInitStruct.PLL.PLLN = 96; - 8000cc4: 2360 movs r3, #96 @ 0x60 - 8000cc6: 643b str r3, [r7, #64] @ 0x40 + 8000bd4: 2360 movs r3, #96 @ 0x60 + 8000bd6: 643b str r3, [r7, #64] @ 0x40 RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; - 8000cc8: 2302 movs r3, #2 - 8000cca: 647b str r3, [r7, #68] @ 0x44 + 8000bd8: 2302 movs r3, #2 + 8000bda: 647b str r3, [r7, #68] @ 0x44 RCC_OscInitStruct.PLL.PLLQ = 4; - 8000ccc: 2304 movs r3, #4 - 8000cce: 64bb str r3, [r7, #72] @ 0x48 + 8000bdc: 2304 movs r3, #4 + 8000bde: 64bb str r3, [r7, #72] @ 0x48 RCC_OscInitStruct.PLL.PLLR = 2; - 8000cd0: 2302 movs r3, #2 - 8000cd2: 64fb str r3, [r7, #76] @ 0x4c + 8000be0: 2302 movs r3, #2 + 8000be2: 64fb str r3, [r7, #76] @ 0x4c if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - 8000cd4: f107 031c add.w r3, r7, #28 - 8000cd8: 4618 mov r0, r3 - 8000cda: f004 fa7d bl 80051d8 - 8000cde: 4603 mov r3, r0 - 8000ce0: 2b00 cmp r3, #0 - 8000ce2: d001 beq.n 8000ce8 + 8000be4: f107 031c add.w r3, r7, #28 + 8000be8: 4618 mov r0, r3 + 8000bea: f004 f953 bl 8004e94 + 8000bee: 4603 mov r3, r0 + 8000bf0: 2b00 cmp r3, #0 + 8000bf2: d001 beq.n 8000bf8 { Error_Handler(); - 8000ce4: f000 fac0 bl 8001268 + 8000bf4: f000 fada bl 80011ac } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - 8000ce8: 230f movs r3, #15 - 8000cea: 60bb str r3, [r7, #8] + 8000bf8: 230f movs r3, #15 + 8000bfa: 60bb str r3, [r7, #8] |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; - 8000cec: 2302 movs r3, #2 - 8000cee: 60fb str r3, [r7, #12] + 8000bfc: 2302 movs r3, #2 + 8000bfe: 60fb str r3, [r7, #12] RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV2; - 8000cf0: 2380 movs r3, #128 @ 0x80 - 8000cf2: 613b str r3, [r7, #16] + 8000c00: 2380 movs r3, #128 @ 0x80 + 8000c02: 613b str r3, [r7, #16] RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; - 8000cf4: f44f 5380 mov.w r3, #4096 @ 0x1000 - 8000cf8: 617b str r3, [r7, #20] + 8000c04: f44f 5380 mov.w r3, #4096 @ 0x1000 + 8000c08: 617b str r3, [r7, #20] RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; - 8000cfa: 2300 movs r3, #0 - 8000cfc: 61bb str r3, [r7, #24] + 8000c0a: 2300 movs r3, #0 + 8000c0c: 61bb str r3, [r7, #24] if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK) - 8000cfe: f107 0308 add.w r3, r7, #8 - 8000d02: 2101 movs r1, #1 - 8000d04: 4618 mov r0, r3 - 8000d06: f003 fbf3 bl 80044f0 - 8000d0a: 4603 mov r3, r0 - 8000d0c: 2b00 cmp r3, #0 - 8000d0e: d001 beq.n 8000d14 + 8000c0e: f107 0308 add.w r3, r7, #8 + 8000c12: 2101 movs r1, #1 + 8000c14: 4618 mov r0, r3 + 8000c16: f003 fac9 bl 80041ac + 8000c1a: 4603 mov r3, r0 + 8000c1c: 2b00 cmp r3, #0 + 8000c1e: d001 beq.n 8000c24 { Error_Handler(); - 8000d10: f000 faaa bl 8001268 + 8000c20: f000 fac4 bl 80011ac } } - 8000d14: bf00 nop - 8000d16: 3750 adds r7, #80 @ 0x50 - 8000d18: 46bd mov sp, r7 - 8000d1a: bd80 pop {r7, pc} - 8000d1c: 40023800 .word 0x40023800 - 8000d20: 40007000 .word 0x40007000 + 8000c24: bf00 nop + 8000c26: 3750 adds r7, #80 @ 0x50 + 8000c28: 46bd mov sp, r7 + 8000c2a: bd80 pop {r7, pc} + 8000c2c: 40023800 .word 0x40023800 + 8000c30: 40007000 .word 0x40007000 -08000d24 : +08000c34 : /* USER CODE BEGIN 4 */ // UART Message Requests Goes Here void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { - 8000d24: b580 push {r7, lr} - 8000d26: b082 sub sp, #8 - 8000d28: af00 add r7, sp, #0 - 8000d2a: 6078 str r0, [r7, #4] + 8000c34: b580 push {r7, lr} + 8000c36: b082 sub sp, #8 + 8000c38: af00 add r7, sp, #0 + 8000c3a: 6078 str r0, [r7, #4] if (huart->Instance == USART1) { - 8000d2c: 687b ldr r3, [r7, #4] - 8000d2e: 681b ldr r3, [r3, #0] - 8000d30: 4a1e ldr r2, [pc, #120] @ (8000dac ) - 8000d32: 4293 cmp r3, r2 - 8000d34: d109 bne.n 8000d4a + 8000c3c: 687b ldr r3, [r7, #4] + 8000c3e: 681b ldr r3, [r3, #0] + 8000c40: 4a1e ldr r2, [pc, #120] @ (8000cbc ) + 8000c42: 4293 cmp r3, r2 + 8000c44: d109 bne.n 8000c5a handleUARTMessages((uint8_t*)&RX1Msg, &huart1); - 8000d36: 491e ldr r1, [pc, #120] @ (8000db0 ) - 8000d38: 481e ldr r0, [pc, #120] @ (8000db4 ) - 8000d3a: f000 f8dd bl 8000ef8 + 8000c46: 491e ldr r1, [pc, #120] @ (8000cc0 ) + 8000c48: 481e ldr r0, [pc, #120] @ (8000cc4 ) + 8000c4a: f000 f8dd bl 8000e08 HAL_UART_Receive_DMA(&huart1, (uint8_t*)&RX1Msg, sizeof(UARTMessage)); - 8000d3e: 2210 movs r2, #16 - 8000d40: 491c ldr r1, [pc, #112] @ (8000db4 ) - 8000d42: 481b ldr r0, [pc, #108] @ (8000db0 ) - 8000d44: f005 fc6c bl 8006620 + 8000c4e: 2210 movs r2, #16 + 8000c50: 491c ldr r1, [pc, #112] @ (8000cc4 ) + 8000c52: 481b ldr r0, [pc, #108] @ (8000cc0 ) + 8000c54: f005 fb42 bl 80062dc } else if (huart->Instance == UART5) { handleUARTMessages((uint8_t*)&RX5Msg, &huart5); HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); } } - 8000d48: e02b b.n 8000da2 + 8000c58: e02b b.n 8000cb2 else if (huart->Instance == USART2) { - 8000d4a: 687b ldr r3, [r7, #4] - 8000d4c: 681b ldr r3, [r3, #0] - 8000d4e: 4a1a ldr r2, [pc, #104] @ (8000db8 ) - 8000d50: 4293 cmp r3, r2 - 8000d52: d109 bne.n 8000d68 + 8000c5a: 687b ldr r3, [r7, #4] + 8000c5c: 681b ldr r3, [r3, #0] + 8000c5e: 4a1a ldr r2, [pc, #104] @ (8000cc8 ) + 8000c60: 4293 cmp r3, r2 + 8000c62: d109 bne.n 8000c78 handleUARTMessages((uint8_t*)&RX2Msg, &huart2); - 8000d54: 4919 ldr r1, [pc, #100] @ (8000dbc ) - 8000d56: 481a ldr r0, [pc, #104] @ (8000dc0 ) - 8000d58: f000 f8ce bl 8000ef8 + 8000c64: 4919 ldr r1, [pc, #100] @ (8000ccc ) + 8000c66: 481a ldr r0, [pc, #104] @ (8000cd0 ) + 8000c68: f000 f8ce bl 8000e08 HAL_UART_Receive_DMA(&huart2, (uint8_t*)&RX2Msg, sizeof(UARTMessage)); - 8000d5c: 2210 movs r2, #16 - 8000d5e: 4918 ldr r1, [pc, #96] @ (8000dc0 ) - 8000d60: 4816 ldr r0, [pc, #88] @ (8000dbc ) - 8000d62: f005 fc5d bl 8006620 + 8000c6c: 2210 movs r2, #16 + 8000c6e: 4918 ldr r1, [pc, #96] @ (8000cd0 ) + 8000c70: 4816 ldr r0, [pc, #88] @ (8000ccc ) + 8000c72: f005 fb33 bl 80062dc } - 8000d66: e01c b.n 8000da2 + 8000c76: e01c b.n 8000cb2 else if (huart->Instance == UART4) { - 8000d68: 687b ldr r3, [r7, #4] - 8000d6a: 681b ldr r3, [r3, #0] - 8000d6c: 4a15 ldr r2, [pc, #84] @ (8000dc4 ) - 8000d6e: 4293 cmp r3, r2 - 8000d70: d109 bne.n 8000d86 + 8000c78: 687b ldr r3, [r7, #4] + 8000c7a: 681b ldr r3, [r3, #0] + 8000c7c: 4a15 ldr r2, [pc, #84] @ (8000cd4 ) + 8000c7e: 4293 cmp r3, r2 + 8000c80: d109 bne.n 8000c96 handleUARTMessages((uint8_t*)&RX4Msg, &huart4); - 8000d72: 4915 ldr r1, [pc, #84] @ (8000dc8 ) - 8000d74: 4815 ldr r0, [pc, #84] @ (8000dcc ) - 8000d76: f000 f8bf bl 8000ef8 + 8000c82: 4915 ldr r1, [pc, #84] @ (8000cd8 ) + 8000c84: 4815 ldr r0, [pc, #84] @ (8000cdc ) + 8000c86: f000 f8bf bl 8000e08 HAL_UART_Receive_DMA(&huart4, (uint8_t*)&RX4Msg, sizeof(UARTMessage)); - 8000d7a: 2210 movs r2, #16 - 8000d7c: 4913 ldr r1, [pc, #76] @ (8000dcc ) - 8000d7e: 4812 ldr r0, [pc, #72] @ (8000dc8 ) - 8000d80: f005 fc4e bl 8006620 + 8000c8a: 2210 movs r2, #16 + 8000c8c: 4913 ldr r1, [pc, #76] @ (8000cdc ) + 8000c8e: 4812 ldr r0, [pc, #72] @ (8000cd8 ) + 8000c90: f005 fb24 bl 80062dc } - 8000d84: e00d b.n 8000da2 + 8000c94: e00d b.n 8000cb2 else if (huart->Instance == UART5) { - 8000d86: 687b ldr r3, [r7, #4] - 8000d88: 681b ldr r3, [r3, #0] - 8000d8a: 4a11 ldr r2, [pc, #68] @ (8000dd0 ) - 8000d8c: 4293 cmp r3, r2 - 8000d8e: d108 bne.n 8000da2 + 8000c96: 687b ldr r3, [r7, #4] + 8000c98: 681b ldr r3, [r3, #0] + 8000c9a: 4a11 ldr r2, [pc, #68] @ (8000ce0 ) + 8000c9c: 4293 cmp r3, r2 + 8000c9e: d108 bne.n 8000cb2 handleUARTMessages((uint8_t*)&RX5Msg, &huart5); - 8000d90: 4910 ldr r1, [pc, #64] @ (8000dd4 ) - 8000d92: 4811 ldr r0, [pc, #68] @ (8000dd8 ) - 8000d94: f000 f8b0 bl 8000ef8 + 8000ca0: 4910 ldr r1, [pc, #64] @ (8000ce4 ) + 8000ca2: 4811 ldr r0, [pc, #68] @ (8000ce8 ) + 8000ca4: f000 f8b0 bl 8000e08 HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); - 8000d98: 2210 movs r2, #16 - 8000d9a: 490f ldr r1, [pc, #60] @ (8000dd8 ) - 8000d9c: 480d ldr r0, [pc, #52] @ (8000dd4 ) - 8000d9e: f005 fc3f bl 8006620 + 8000ca8: 2210 movs r2, #16 + 8000caa: 490f ldr r1, [pc, #60] @ (8000ce8 ) + 8000cac: 480d ldr r0, [pc, #52] @ (8000ce4 ) + 8000cae: f005 fb15 bl 80062dc } - 8000da2: bf00 nop - 8000da4: 3708 adds r7, #8 - 8000da6: 46bd mov sp, r7 - 8000da8: bd80 pop {r7, pc} - 8000daa: bf00 nop - 8000dac: 40011000 .word 0x40011000 - 8000db0: 20000a90 .word 0x20000a90 - 8000db4: 200002a4 .word 0x200002a4 - 8000db8: 40004400 .word 0x40004400 - 8000dbc: 20000ad8 .word 0x20000ad8 - 8000dc0: 200002b4 .word 0x200002b4 - 8000dc4: 40004c00 .word 0x40004c00 - 8000dc8: 20000a00 .word 0x20000a00 - 8000dcc: 200002c4 .word 0x200002c4 - 8000dd0: 40005000 .word 0x40005000 - 8000dd4: 20000a48 .word 0x20000a48 - 8000dd8: 20000294 .word 0x20000294 + 8000cb2: bf00 nop + 8000cb4: 3708 adds r7, #8 + 8000cb6: 46bd mov sp, r7 + 8000cb8: bd80 pop {r7, pc} + 8000cba: bf00 nop + 8000cbc: 40011000 .word 0x40011000 + 8000cc0: 20000a3c .word 0x20000a3c + 8000cc4: 20000250 .word 0x20000250 + 8000cc8: 40004400 .word 0x40004400 + 8000ccc: 20000a84 .word 0x20000a84 + 8000cd0: 20000260 .word 0x20000260 + 8000cd4: 40004c00 .word 0x40004c00 + 8000cd8: 200009ac .word 0x200009ac + 8000cdc: 20000270 .word 0x20000270 + 8000ce0: 40005000 .word 0x40005000 + 8000ce4: 200009f4 .word 0x200009f4 + 8000ce8: 20000240 .word 0x20000240 -08000ddc : +08000cec : void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) { - 8000ddc: b580 push {r7, lr} - 8000dde: b082 sub sp, #8 - 8000de0: af00 add r7, sp, #0 - 8000de2: 6078 str r0, [r7, #4] + 8000cec: b580 push {r7, lr} + 8000cee: b082 sub sp, #8 + 8000cf0: af00 add r7, sp, #0 + 8000cf2: 6078 str r0, [r7, #4] // Restart DMA on error if (huart->Instance == USART1) { - 8000de4: 687b ldr r3, [r7, #4] - 8000de6: 681b ldr r3, [r3, #0] - 8000de8: 4a16 ldr r2, [pc, #88] @ (8000e44 ) - 8000dea: 4293 cmp r3, r2 - 8000dec: d105 bne.n 8000dfa + 8000cf4: 687b ldr r3, [r7, #4] + 8000cf6: 681b ldr r3, [r3, #0] + 8000cf8: 4a16 ldr r2, [pc, #88] @ (8000d54 ) + 8000cfa: 4293 cmp r3, r2 + 8000cfc: d105 bne.n 8000d0a HAL_UART_Receive_DMA(&huart1, (uint8_t*)&RX1Msg, sizeof(UARTMessage)); - 8000dee: 2210 movs r2, #16 - 8000df0: 4915 ldr r1, [pc, #84] @ (8000e48 ) - 8000df2: 4816 ldr r0, [pc, #88] @ (8000e4c ) - 8000df4: f005 fc14 bl 8006620 + 8000cfe: 2210 movs r2, #16 + 8000d00: 4915 ldr r1, [pc, #84] @ (8000d58 ) + 8000d02: 4816 ldr r0, [pc, #88] @ (8000d5c ) + 8000d04: f005 faea bl 80062dc 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)); } } - 8000df8: e01f b.n 8000e3a + 8000d08: e01f b.n 8000d4a else if (huart->Instance == USART2) { - 8000dfa: 687b ldr r3, [r7, #4] - 8000dfc: 681b ldr r3, [r3, #0] - 8000dfe: 4a14 ldr r2, [pc, #80] @ (8000e50 ) - 8000e00: 4293 cmp r3, r2 - 8000e02: d105 bne.n 8000e10 + 8000d0a: 687b ldr r3, [r7, #4] + 8000d0c: 681b ldr r3, [r3, #0] + 8000d0e: 4a14 ldr r2, [pc, #80] @ (8000d60 ) + 8000d10: 4293 cmp r3, r2 + 8000d12: d105 bne.n 8000d20 HAL_UART_Receive_DMA(&huart2, (uint8_t*)&RX2Msg, sizeof(UARTMessage)); - 8000e04: 2210 movs r2, #16 - 8000e06: 4913 ldr r1, [pc, #76] @ (8000e54 ) - 8000e08: 4813 ldr r0, [pc, #76] @ (8000e58 ) - 8000e0a: f005 fc09 bl 8006620 + 8000d14: 2210 movs r2, #16 + 8000d16: 4913 ldr r1, [pc, #76] @ (8000d64 ) + 8000d18: 4813 ldr r0, [pc, #76] @ (8000d68 ) + 8000d1a: f005 fadf bl 80062dc } - 8000e0e: e014 b.n 8000e3a + 8000d1e: e014 b.n 8000d4a else if (huart->Instance == UART4) { - 8000e10: 687b ldr r3, [r7, #4] - 8000e12: 681b ldr r3, [r3, #0] - 8000e14: 4a11 ldr r2, [pc, #68] @ (8000e5c ) - 8000e16: 4293 cmp r3, r2 - 8000e18: d105 bne.n 8000e26 + 8000d20: 687b ldr r3, [r7, #4] + 8000d22: 681b ldr r3, [r3, #0] + 8000d24: 4a11 ldr r2, [pc, #68] @ (8000d6c ) + 8000d26: 4293 cmp r3, r2 + 8000d28: d105 bne.n 8000d36 HAL_UART_Receive_DMA(&huart4, (uint8_t*)&RX4Msg, sizeof(UARTMessage)); - 8000e1a: 2210 movs r2, #16 - 8000e1c: 4910 ldr r1, [pc, #64] @ (8000e60 ) - 8000e1e: 4811 ldr r0, [pc, #68] @ (8000e64 ) - 8000e20: f005 fbfe bl 8006620 + 8000d2a: 2210 movs r2, #16 + 8000d2c: 4910 ldr r1, [pc, #64] @ (8000d70 ) + 8000d2e: 4811 ldr r0, [pc, #68] @ (8000d74 ) + 8000d30: f005 fad4 bl 80062dc } - 8000e24: e009 b.n 8000e3a + 8000d34: e009 b.n 8000d4a else if (huart->Instance == UART5) { - 8000e26: 687b ldr r3, [r7, #4] - 8000e28: 681b ldr r3, [r3, #0] - 8000e2a: 4a0f ldr r2, [pc, #60] @ (8000e68 ) - 8000e2c: 4293 cmp r3, r2 - 8000e2e: d104 bne.n 8000e3a + 8000d36: 687b ldr r3, [r7, #4] + 8000d38: 681b ldr r3, [r3, #0] + 8000d3a: 4a0f ldr r2, [pc, #60] @ (8000d78 ) + 8000d3c: 4293 cmp r3, r2 + 8000d3e: d104 bne.n 8000d4a HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); - 8000e30: 2210 movs r2, #16 - 8000e32: 490e ldr r1, [pc, #56] @ (8000e6c ) - 8000e34: 480e ldr r0, [pc, #56] @ (8000e70 ) - 8000e36: f005 fbf3 bl 8006620 + 8000d40: 2210 movs r2, #16 + 8000d42: 490e ldr r1, [pc, #56] @ (8000d7c ) + 8000d44: 480e ldr r0, [pc, #56] @ (8000d80 ) + 8000d46: f005 fac9 bl 80062dc } - 8000e3a: bf00 nop - 8000e3c: 3708 adds r7, #8 - 8000e3e: 46bd mov sp, r7 - 8000e40: bd80 pop {r7, pc} - 8000e42: bf00 nop - 8000e44: 40011000 .word 0x40011000 - 8000e48: 200002a4 .word 0x200002a4 - 8000e4c: 20000a90 .word 0x20000a90 - 8000e50: 40004400 .word 0x40004400 - 8000e54: 200002b4 .word 0x200002b4 - 8000e58: 20000ad8 .word 0x20000ad8 - 8000e5c: 40004c00 .word 0x40004c00 - 8000e60: 200002c4 .word 0x200002c4 - 8000e64: 20000a00 .word 0x20000a00 - 8000e68: 40005000 .word 0x40005000 - 8000e6c: 20000294 .word 0x20000294 - 8000e70: 20000a48 .word 0x20000a48 + 8000d4a: bf00 nop + 8000d4c: 3708 adds r7, #8 + 8000d4e: 46bd mov sp, r7 + 8000d50: bd80 pop {r7, pc} + 8000d52: bf00 nop + 8000d54: 40011000 .word 0x40011000 + 8000d58: 20000250 .word 0x20000250 + 8000d5c: 20000a3c .word 0x20000a3c + 8000d60: 40004400 .word 0x40004400 + 8000d64: 20000260 .word 0x20000260 + 8000d68: 20000a84 .word 0x20000a84 + 8000d6c: 40004c00 .word 0x40004c00 + 8000d70: 20000270 .word 0x20000270 + 8000d74: 200009ac .word 0x200009ac + 8000d78: 40005000 .word 0x40005000 + 8000d7c: 20000240 .word 0x20000240 + 8000d80: 200009f4 .word 0x200009f4 -08000e74 : +08000d84 : void findBestParent(){ - 8000e74: b580 push {r7, lr} - 8000e76: b084 sub sp, #16 - 8000e78: af00 add r7, sp, #0 + 8000d84: b580 push {r7, lr} + 8000d86: b084 sub sp, #16 + 8000d88: af00 add r7, sp, #0 //Find least depth parent uint16_t least_val = 0xFF; - 8000e7a: 23ff movs r3, #255 @ 0xff - 8000e7c: 81fb strh r3, [r7, #14] + 8000d8a: 23ff movs r3, #255 @ 0xff + 8000d8c: 81fb strh r3, [r7, #14] UART_HandleTypeDef* least_port = NULL; - 8000e7e: 2300 movs r3, #0 - 8000e80: 60bb str r3, [r7, #8] + 8000d8e: 2300 movs r3, #0 + 8000d90: 60bb str r3, [r7, #8] for(uint8_t i = 0; i < 4; i++){ - 8000e82: 2300 movs r3, #0 - 8000e84: 71fb strb r3, [r7, #7] - 8000e86: e013 b.n 8000eb0 + 8000d92: 2300 movs r3, #0 + 8000d94: 71fb strb r3, [r7, #7] + 8000d96: e013 b.n 8000dc0 if(PORT_DEPTH[i]) - 8000e8c: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 8000e90: 89fa ldrh r2, [r7, #14] - 8000e92: 429a cmp r2, r3 - 8000e94: d909 bls.n 8000eaa + 8000d98: 79fb ldrb r3, [r7, #7] + 8000d9a: 4a16 ldr r2, [pc, #88] @ (8000df4 ) + 8000d9c: f832 3013 ldrh.w r3, [r2, r3, lsl #1] + 8000da0: 89fa ldrh r2, [r7, #14] + 8000da2: 429a cmp r2, r3 + 8000da4: d909 bls.n 8000dba least_port = PORTS[i]; - 8000e96: 79fb ldrb r3, [r7, #7] - 8000e98: 4a13 ldr r2, [pc, #76] @ (8000ee8 ) - 8000e9a: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8000e9e: 60bb str r3, [r7, #8] + 8000da6: 79fb ldrb r3, [r7, #7] + 8000da8: 4a13 ldr r2, [pc, #76] @ (8000df8 ) + 8000daa: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8000dae: 60bb str r3, [r7, #8] least_val = PORT_DEPTH[i]; - 8000ea0: 79fb ldrb r3, [r7, #7] - 8000ea2: 4a10 ldr r2, [pc, #64] @ (8000ee4 ) - 8000ea4: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 8000ea8: 81fb strh r3, [r7, #14] + 8000db0: 79fb ldrb r3, [r7, #7] + 8000db2: 4a10 ldr r2, [pc, #64] @ (8000df4 ) + 8000db4: f832 3013 ldrh.w r3, [r2, r3, lsl #1] + 8000db8: 81fb strh r3, [r7, #14] for(uint8_t i = 0; i < 4; i++){ - 8000eaa: 79fb ldrb r3, [r7, #7] - 8000eac: 3301 adds r3, #1 - 8000eae: 71fb strb r3, [r7, #7] - 8000eb0: 79fb ldrb r3, [r7, #7] - 8000eb2: 2b03 cmp r3, #3 - 8000eb4: d9e8 bls.n 8000e88 + 8000dba: 79fb ldrb r3, [r7, #7] + 8000dbc: 3301 adds r3, #1 + 8000dbe: 71fb strb r3, [r7, #7] + 8000dc0: 79fb ldrb r3, [r7, #7] + 8000dc2: 2b03 cmp r3, #3 + 8000dc4: d9e8 bls.n 8000d98 } } //Assign if valid if(least_val < 0xFF){ - 8000eb6: 89fb ldrh r3, [r7, #14] - 8000eb8: 2bfe cmp r3, #254 @ 0xfe - 8000eba: d80e bhi.n 8000eda + 8000dc6: 89fb ldrh r3, [r7, #14] + 8000dc8: 2bfe cmp r3, #254 @ 0xfe + 8000dca: d80e bhi.n 8000dea PARENT = least_port; - 8000ebc: 4a0b ldr r2, [pc, #44] @ (8000eec ) - 8000ebe: 68bb ldr r3, [r7, #8] - 8000ec0: 6013 str r3, [r2, #0] + 8000dcc: 4a0b ldr r2, [pc, #44] @ (8000dfc ) + 8000dce: 68bb ldr r3, [r7, #8] + 8000dd0: 6013 str r3, [r2, #0] DEPTH = least_val + 1; - 8000ec2: 89fb ldrh r3, [r7, #14] - 8000ec4: 3301 adds r3, #1 - 8000ec6: b29a uxth r2, r3 - 8000ec8: 4b09 ldr r3, [pc, #36] @ (8000ef0 ) - 8000eca: 801a strh r2, [r3, #0] + 8000dd2: 89fb ldrh r3, [r7, #14] + 8000dd4: 3301 adds r3, #1 + 8000dd6: b29a uxth r2, r3 + 8000dd8: 4b09 ldr r3, [pc, #36] @ (8000e00 ) + 8000dda: 801a strh r2, [r3, #0] MODE = MODE_ACTIVE; - 8000ecc: 4b09 ldr r3, [pc, #36] @ (8000ef4 ) - 8000ece: 2202 movs r2, #2 - 8000ed0: 701a strb r2, [r3, #0] + 8000ddc: 4b09 ldr r3, [pc, #36] @ (8000e04 ) + 8000dde: 2202 movs r2, #2 + 8000de0: 701a strb r2, [r3, #0] HAL_Delay(500); - 8000ed2: f44f 70fa mov.w r0, #500 @ 0x1f4 - 8000ed6: f001 f843 bl 8001f60 + 8000de2: f44f 70fa mov.w r0, #500 @ 0x1f4 + 8000de6: f001 f85d bl 8001ea4 } } - 8000eda: bf00 nop - 8000edc: 3710 adds r7, #16 - 8000ede: 46bd mov sp, r7 - 8000ee0: bd80 pop {r7, pc} - 8000ee2: bf00 nop - 8000ee4: 200000ec .word 0x200000ec - 8000ee8: 200000f4 .word 0x200000f4 - 8000eec: 200002d8 .word 0x200002d8 - 8000ef0: 200002d4 .word 0x200002d4 - 8000ef4: 2000032b .word 0x2000032b + 8000dea: bf00 nop + 8000dec: 3710 adds r7, #16 + 8000dee: 46bd mov sp, r7 + 8000df0: bd80 pop {r7, pc} + 8000df2: bf00 nop + 8000df4: 200000ec .word 0x200000ec + 8000df8: 200000f4 .word 0x200000f4 + 8000dfc: 20000284 .word 0x20000284 + 8000e00: 20000280 .word 0x20000280 + 8000e04: 200002d7 .word 0x200002d7 -08000ef8 : +08000e08 : // Called when UART RX interrupt completes void handleUARTMessages(uint8_t *data, UART_HandleTypeDef *sender) { - 8000ef8: b590 push {r4, r7, lr} - 8000efa: b08b sub sp, #44 @ 0x2c - 8000efc: af00 add r7, sp, #0 - 8000efe: 6078 str r0, [r7, #4] - 8000f00: 6039 str r1, [r7, #0] + 8000e08: b590 push {r4, r7, lr} + 8000e0a: b08b sub sp, #44 @ 0x2c + 8000e0c: af00 add r7, sp, #0 + 8000e0e: 6078 str r0, [r7, #4] + 8000e10: 6039 str r1, [r7, #0] UARTMessage msg; UARTMessage reply; // Parse incoming message into struct memcpy(&msg, data, sizeof(UARTMessage)); - 8000f02: 687b ldr r3, [r7, #4] - 8000f04: f107 0418 add.w r4, r7, #24 - 8000f08: 6818 ldr r0, [r3, #0] - 8000f0a: 6859 ldr r1, [r3, #4] - 8000f0c: 689a ldr r2, [r3, #8] - 8000f0e: 68db ldr r3, [r3, #12] - 8000f10: c40f stmia r4!, {r0, r1, r2, r3} + 8000e12: 687b ldr r3, [r7, #4] + 8000e14: f107 0418 add.w r4, r7, #24 + 8000e18: 6818 ldr r0, [r3, #0] + 8000e1a: 6859 ldr r1, [r3, #4] + 8000e1c: 689a ldr r2, [r3, #8] + 8000e1e: 68db ldr r3, [r3, #12] + 8000e20: c40f stmia r4!, {r0, r1, r2, r3} switch(msg.TYPE) { - 8000f12: 8b7b ldrh r3, [r7, #26] - 8000f14: 2bff cmp r3, #255 @ 0xff - 8000f16: d026 beq.n 8000f66 - 8000f18: 2bff cmp r3, #255 @ 0xff - 8000f1a: dc6e bgt.n 8000ffa - 8000f1c: 2baa cmp r3, #170 @ 0xaa - 8000f1e: d002 beq.n 8000f26 - 8000f20: 2bee cmp r3, #238 @ 0xee - 8000f22: d03a beq.n 8000f9a + 8000e22: 8b7b ldrh r3, [r7, #26] + 8000e24: 2bff cmp r3, #255 @ 0xff + 8000e26: d026 beq.n 8000e76 + 8000e28: 2bff cmp r3, #255 @ 0xff + 8000e2a: dc6e bgt.n 8000f0a + 8000e2c: 2baa cmp r3, #170 @ 0xaa + 8000e2e: d002 beq.n 8000e36 + 8000e30: 2bee cmp r3, #238 @ 0xee + 8000e32: d03a beq.n 8000eaa } break; default: break; - 8000f24: e069 b.n 8000ffa + 8000e34: e069 b.n 8000f0a if(sender == &huart5) { - 8000f26: 683b ldr r3, [r7, #0] - 8000f28: 4a39 ldr r2, [pc, #228] @ (8001010 ) - 8000f2a: 4293 cmp r3, r2 - 8000f2c: d103 bne.n 8000f36 + 8000e36: 683b ldr r3, [r7, #0] + 8000e38: 4a39 ldr r2, [pc, #228] @ (8000f20 ) + 8000e3a: 4293 cmp r3, r2 + 8000e3c: d103 bne.n 8000e46 PORT_DEPTH[0] = msg.DEPTH; - 8000f2e: 8b3a ldrh r2, [r7, #24] - 8000f30: 4b38 ldr r3, [pc, #224] @ (8001014 ) - 8000f32: 801a strh r2, [r3, #0] + 8000e3e: 8b3a ldrh r2, [r7, #24] + 8000e40: 4b38 ldr r3, [pc, #224] @ (8000f24 ) + 8000e42: 801a strh r2, [r3, #0] break; - 8000f34: e063 b.n 8000ffe + 8000e44: e063 b.n 8000f0e } else if(sender == &huart1) { - 8000f36: 683b ldr r3, [r7, #0] - 8000f38: 4a37 ldr r2, [pc, #220] @ (8001018 ) - 8000f3a: 4293 cmp r3, r2 - 8000f3c: d103 bne.n 8000f46 + 8000e46: 683b ldr r3, [r7, #0] + 8000e48: 4a37 ldr r2, [pc, #220] @ (8000f28 ) + 8000e4a: 4293 cmp r3, r2 + 8000e4c: d103 bne.n 8000e56 PORT_DEPTH[1] = msg.DEPTH; - 8000f3e: 8b3a ldrh r2, [r7, #24] - 8000f40: 4b34 ldr r3, [pc, #208] @ (8001014 ) - 8000f42: 805a strh r2, [r3, #2] + 8000e4e: 8b3a ldrh r2, [r7, #24] + 8000e50: 4b34 ldr r3, [pc, #208] @ (8000f24 ) + 8000e52: 805a strh r2, [r3, #2] break; - 8000f44: e05b b.n 8000ffe + 8000e54: e05b b.n 8000f0e } else if(sender == &huart2) { - 8000f46: 683b ldr r3, [r7, #0] - 8000f48: 4a34 ldr r2, [pc, #208] @ (800101c ) - 8000f4a: 4293 cmp r3, r2 - 8000f4c: d103 bne.n 8000f56 + 8000e56: 683b ldr r3, [r7, #0] + 8000e58: 4a34 ldr r2, [pc, #208] @ (8000f2c ) + 8000e5a: 4293 cmp r3, r2 + 8000e5c: d103 bne.n 8000e66 PORT_DEPTH[2] = msg.DEPTH; - 8000f4e: 8b3a ldrh r2, [r7, #24] - 8000f50: 4b30 ldr r3, [pc, #192] @ (8001014 ) - 8000f52: 809a strh r2, [r3, #4] + 8000e5e: 8b3a ldrh r2, [r7, #24] + 8000e60: 4b30 ldr r3, [pc, #192] @ (8000f24 ) + 8000e62: 809a strh r2, [r3, #4] break; - 8000f54: e053 b.n 8000ffe + 8000e64: e053 b.n 8000f0e } else if(sender == &huart4) { - 8000f56: 683b ldr r3, [r7, #0] - 8000f58: 4a31 ldr r2, [pc, #196] @ (8001020 ) - 8000f5a: 4293 cmp r3, r2 - 8000f5c: d14f bne.n 8000ffe + 8000e66: 683b ldr r3, [r7, #0] + 8000e68: 4a31 ldr r2, [pc, #196] @ (8000f30 ) + 8000e6a: 4293 cmp r3, r2 + 8000e6c: d14f bne.n 8000f0e PORT_DEPTH[3] = msg.DEPTH; - 8000f5e: 8b3a ldrh r2, [r7, #24] - 8000f60: 4b2c ldr r3, [pc, #176] @ (8001014 ) - 8000f62: 80da strh r2, [r3, #6] + 8000e6e: 8b3a ldrh r2, [r7, #24] + 8000e70: 4b2c ldr r3, [pc, #176] @ (8000f24 ) + 8000e72: 80da strh r2, [r3, #6] break; - 8000f64: e04b b.n 8000ffe + 8000e74: e04b b.n 8000f0e if(MODE!=MODE_INACTIVE){ - 8000f66: 4b2f ldr r3, [pc, #188] @ (8001024 ) - 8000f68: 781b ldrb r3, [r3, #0] - 8000f6a: b2db uxtb r3, r3 - 8000f6c: 2b00 cmp r3, #0 - 8000f6e: d048 beq.n 8001002 + 8000e76: 4b2f ldr r3, [pc, #188] @ (8000f34 ) + 8000e78: 781b ldrb r3, [r3, #0] + 8000e7a: b2db uxtb r3, r3 + 8000e7c: 2b00 cmp r3, #0 + 8000e7e: d048 beq.n 8000f12 reply.TYPE = 0xAA; - 8000f70: 23aa movs r3, #170 @ 0xaa - 8000f72: 817b strh r3, [r7, #10] + 8000e80: 23aa movs r3, #170 @ 0xaa + 8000e82: 817b strh r3, [r7, #10] reply.DEPTH = DEPTH; // use your local DEPTH - 8000f74: 4b2c ldr r3, [pc, #176] @ (8001028 ) - 8000f76: 881b ldrh r3, [r3, #0] - 8000f78: 813b strh r3, [r7, #8] + 8000e84: 4b2c ldr r3, [pc, #176] @ (8000f38 ) + 8000e86: 881b ldrh r3, [r3, #0] + 8000e88: 813b strh r3, [r7, #8] memset(reply.KEYPRESS, 0, sizeof(reply.KEYPRESS)); - 8000f7a: f107 0308 add.w r3, r7, #8 - 8000f7e: 3304 adds r3, #4 - 8000f80: 220c movs r2, #12 - 8000f82: 2100 movs r1, #0 - 8000f84: 4618 mov r0, r3 - 8000f86: f00a f9f3 bl 800b370 + 8000e8a: f107 0308 add.w r3, r7, #8 + 8000e8e: 3304 adds r3, #4 + 8000e90: 220c movs r2, #12 + 8000e92: 2100 movs r1, #0 + 8000e94: 4618 mov r0, r3 + 8000e96: f00a f8c9 bl 800b02c HAL_UART_Transmit_DMA(sender, (uint8_t*)&reply, sizeof(reply)); - 8000f8a: f107 0308 add.w r3, r7, #8 - 8000f8e: 2210 movs r2, #16 - 8000f90: 4619 mov r1, r3 - 8000f92: 6838 ldr r0, [r7, #0] - 8000f94: f005 fac8 bl 8006528 + 8000e9a: f107 0308 add.w r3, r7, #8 + 8000e9e: 2210 movs r2, #16 + 8000ea0: 4619 mov r1, r3 + 8000ea2: 6838 ldr r0, [r7, #0] + 8000ea4: f005 f99e bl 80061e4 break; - 8000f98: e033 b.n 8001002 + 8000ea8: e033 b.n 8000f12 if(sender == &huart5) { - 8000f9a: 683b ldr r3, [r7, #0] - 8000f9c: 4a1c ldr r2, [pc, #112] @ (8001010 ) - 8000f9e: 4293 cmp r3, r2 - 8000fa0: d107 bne.n 8000fb2 + 8000eaa: 683b ldr r3, [r7, #0] + 8000eac: 4a1c ldr r2, [pc, #112] @ (8000f20 ) + 8000eae: 4293 cmp r3, r2 + 8000eb0: d107 bne.n 8000ec2 pq_push(&huart5q, msg.KEYPRESS); - 8000fa2: f107 0318 add.w r3, r7, #24 - 8000fa6: 3304 adds r3, #4 - 8000fa8: 4619 mov r1, r3 - 8000faa: 4820 ldr r0, [pc, #128] @ (800102c ) - 8000fac: f7ff fc62 bl 8000874 + 8000eb2: f107 0318 add.w r3, r7, #24 + 8000eb6: 3304 adds r3, #4 + 8000eb8: 4619 mov r1, r3 + 8000eba: 4820 ldr r0, [pc, #128] @ (8000f3c ) + 8000ebc: f7ff fc64 bl 8000788 break; - 8000fb0: e029 b.n 8001006 + 8000ec0: e029 b.n 8000f16 } else if(sender == &huart1) { - 8000fb2: 683b ldr r3, [r7, #0] - 8000fb4: 4a18 ldr r2, [pc, #96] @ (8001018 ) - 8000fb6: 4293 cmp r3, r2 - 8000fb8: d107 bne.n 8000fca + 8000ec2: 683b ldr r3, [r7, #0] + 8000ec4: 4a18 ldr r2, [pc, #96] @ (8000f28 ) + 8000ec6: 4293 cmp r3, r2 + 8000ec8: d107 bne.n 8000eda pq_push(&huart1q, msg.KEYPRESS); - 8000fba: f107 0318 add.w r3, r7, #24 - 8000fbe: 3304 adds r3, #4 - 8000fc0: 4619 mov r1, r3 - 8000fc2: 481b ldr r0, [pc, #108] @ (8001030 ) - 8000fc4: f7ff fc56 bl 8000874 + 8000eca: f107 0318 add.w r3, r7, #24 + 8000ece: 3304 adds r3, #4 + 8000ed0: 4619 mov r1, r3 + 8000ed2: 481b ldr r0, [pc, #108] @ (8000f40 ) + 8000ed4: f7ff fc58 bl 8000788 break; - 8000fc8: e01d b.n 8001006 + 8000ed8: e01d b.n 8000f16 } else if(sender == &huart2) { - 8000fca: 683b ldr r3, [r7, #0] - 8000fcc: 4a13 ldr r2, [pc, #76] @ (800101c ) - 8000fce: 4293 cmp r3, r2 - 8000fd0: d107 bne.n 8000fe2 + 8000eda: 683b ldr r3, [r7, #0] + 8000edc: 4a13 ldr r2, [pc, #76] @ (8000f2c ) + 8000ede: 4293 cmp r3, r2 + 8000ee0: d107 bne.n 8000ef2 pq_push(&huart2q, msg.KEYPRESS); - 8000fd2: f107 0318 add.w r3, r7, #24 - 8000fd6: 3304 adds r3, #4 - 8000fd8: 4619 mov r1, r3 - 8000fda: 4816 ldr r0, [pc, #88] @ (8001034 ) - 8000fdc: f7ff fc4a bl 8000874 + 8000ee2: f107 0318 add.w r3, r7, #24 + 8000ee6: 3304 adds r3, #4 + 8000ee8: 4619 mov r1, r3 + 8000eea: 4816 ldr r0, [pc, #88] @ (8000f44 ) + 8000eec: f7ff fc4c bl 8000788 break; - 8000fe0: e011 b.n 8001006 + 8000ef0: e011 b.n 8000f16 } else if(sender == &huart4) { - 8000fe2: 683b ldr r3, [r7, #0] - 8000fe4: 4a0e ldr r2, [pc, #56] @ (8001020 ) - 8000fe6: 4293 cmp r3, r2 - 8000fe8: d10d bne.n 8001006 + 8000ef2: 683b ldr r3, [r7, #0] + 8000ef4: 4a0e ldr r2, [pc, #56] @ (8000f30 ) + 8000ef6: 4293 cmp r3, r2 + 8000ef8: d10d bne.n 8000f16 pq_push(&huart4q, msg.KEYPRESS); - 8000fea: f107 0318 add.w r3, r7, #24 - 8000fee: 3304 adds r3, #4 - 8000ff0: 4619 mov r1, r3 - 8000ff2: 4811 ldr r0, [pc, #68] @ (8001038 ) - 8000ff4: f7ff fc3e bl 8000874 + 8000efa: f107 0318 add.w r3, r7, #24 + 8000efe: 3304 adds r3, #4 + 8000f00: 4619 mov r1, r3 + 8000f02: 4811 ldr r0, [pc, #68] @ (8000f48 ) + 8000f04: f7ff fc40 bl 8000788 break; - 8000ff8: e005 b.n 8001006 + 8000f08: e005 b.n 8000f16 break; - 8000ffa: bf00 nop - 8000ffc: e004 b.n 8001008 + 8000f0a: bf00 nop + 8000f0c: e004 b.n 8000f18 break; - 8000ffe: bf00 nop - 8001000: e002 b.n 8001008 + 8000f0e: bf00 nop + 8000f10: e002 b.n 8000f18 break; - 8001002: bf00 nop - 8001004: e000 b.n 8001008 + 8000f12: bf00 nop + 8000f14: e000 b.n 8000f18 break; - 8001006: bf00 nop + 8000f16: bf00 nop } } - 8001008: bf00 nop - 800100a: 372c adds r7, #44 @ 0x2c - 800100c: 46bd mov sp, r7 - 800100e: bd90 pop {r4, r7, pc} - 8001010: 20000a48 .word 0x20000a48 - 8001014: 200000ec .word 0x200000ec - 8001018: 20000a90 .word 0x20000a90 - 800101c: 20000ad8 .word 0x20000ad8 - 8001020: 20000a00 .word 0x20000a00 - 8001024: 2000032b .word 0x2000032b - 8001028: 200002d4 .word 0x200002d4 - 800102c: 200007ec .word 0x200007ec - 8001030: 20000360 .word 0x20000360 - 8001034: 200004e4 .word 0x200004e4 - 8001038: 20000668 .word 0x20000668 + 8000f18: bf00 nop + 8000f1a: 372c adds r7, #44 @ 0x2c + 8000f1c: 46bd mov sp, r7 + 8000f1e: bd90 pop {r4, r7, pc} + 8000f20: 200009f4 .word 0x200009f4 + 8000f24: 200000ec .word 0x200000ec + 8000f28: 20000a3c .word 0x20000a3c + 8000f2c: 20000a84 .word 0x20000a84 + 8000f30: 200009ac .word 0x200009ac + 8000f34: 200002d7 .word 0x200002d7 + 8000f38: 20000280 .word 0x20000280 + 8000f3c: 20000798 .word 0x20000798 + 8000f40: 2000030c .word 0x2000030c + 8000f44: 20000490 .word 0x20000490 + 8000f48: 20000614 .word 0x20000614 -0800103c : +08000f4c : void addUSBReport(uint8_t usageID){ - 800103c: b480 push {r7} - 800103e: b085 sub sp, #20 - 8001040: af00 add r7, sp, #0 - 8001042: 4603 mov r3, r0 - 8001044: 71fb strb r3, [r7, #7] - if(usageID < 0x04 || usageID > 0x73) return; //Usage ID is out of bounds - 8001046: 79fb ldrb r3, [r7, #7] - 8001048: 2b03 cmp r3, #3 - 800104a: d922 bls.n 8001092 - 800104c: 79fb ldrb r3, [r7, #7] - 800104e: 2b73 cmp r3, #115 @ 0x73 - 8001050: d81f bhi.n 8001092 - uint16_t bit_index = usageID - 0x04; //Offset, UsageID starts with 0x04. Gives us the actual value of the bit - 8001052: 79fb ldrb r3, [r7, #7] - 8001054: b29b uxth r3, r3 - 8001056: 3b04 subs r3, #4 - 8001058: 81fb strh r3, [r7, #14] - uint8_t byte_index = bit_index/8; //Calculates which byte in the REPORT array - 800105a: 89fb ldrh r3, [r7, #14] - 800105c: 08db lsrs r3, r3, #3 - 800105e: b29b uxth r3, r3 - 8001060: 737b strb r3, [r7, #13] - uint8_t bit_offset = bit_index%8; //Calculates which bits in the REPORT[byte_index] should be set/unset - 8001062: 89fb ldrh r3, [r7, #14] - 8001064: b2db uxtb r3, r3 - 8001066: f003 0307 and.w r3, r3, #7 - 800106a: 733b strb r3, [r7, #12] - REPORT.KEYPRESS[byte_index] |= (1 << bit_offset); - 800106c: 7b7b ldrb r3, [r7, #13] - 800106e: 4a0c ldr r2, [pc, #48] @ (80010a0 ) - 8001070: 4413 add r3, r2 - 8001072: 789b ldrb r3, [r3, #2] - 8001074: b25a sxtb r2, r3 - 8001076: 7b3b ldrb r3, [r7, #12] - 8001078: 2101 movs r1, #1 - 800107a: fa01 f303 lsl.w r3, r1, r3 - 800107e: b25b sxtb r3, r3 - 8001080: 4313 orrs r3, r2 - 8001082: b25a sxtb r2, r3 - 8001084: 7b7b ldrb r3, [r7, #13] - 8001086: b2d1 uxtb r1, r2 - 8001088: 4a05 ldr r2, [pc, #20] @ (80010a0 ) - 800108a: 4413 add r3, r2 - 800108c: 460a mov r2, r1 - 800108e: 709a strb r2, [r3, #2] - 8001090: e000 b.n 8001094 - if(usageID < 0x04 || usageID > 0x73) return; //Usage ID is out of bounds - 8001092: bf00 nop -} - 8001094: 3714 adds r7, #20 - 8001096: 46bd mov sp, r7 - 8001098: f85d 7b04 ldr.w r7, [sp], #4 - 800109c: 4770 bx lr - 800109e: bf00 nop - 80010a0: 20000284 .word 0x20000284 + 8000f4c: b480 push {r7} + 8000f4e: b085 sub sp, #20 + 8000f50: af00 add r7, sp, #0 + 8000f52: 4603 mov r3, r0 + 8000f54: 71fb strb r3, [r7, #7] + // Modifiers (0xE0 - 0xE7) go in REPORT.MODIFIER + if(usageID >= 0xE0 && usageID <= 0xE7){ + 8000f56: 79fb ldrb r3, [r7, #7] + 8000f58: 2bdf cmp r3, #223 @ 0xdf + 8000f5a: d913 bls.n 8000f84 + 8000f5c: 79fb ldrb r3, [r7, #7] + 8000f5e: 2be7 cmp r3, #231 @ 0xe7 + 8000f60: d810 bhi.n 8000f84 + uint8_t mod_bit = usageID - 0xE0; // 0..7 + 8000f62: 79fb ldrb r3, [r7, #7] + 8000f64: 3320 adds r3, #32 + 8000f66: 73fb strb r3, [r7, #15] + REPORT.MODIFIER |= (1 << mod_bit); + 8000f68: 4b1c ldr r3, [pc, #112] @ (8000fdc ) + 8000f6a: 781b ldrb r3, [r3, #0] + 8000f6c: b25a sxtb r2, r3 + 8000f6e: 7bfb ldrb r3, [r7, #15] + 8000f70: 2101 movs r1, #1 + 8000f72: fa01 f303 lsl.w r3, r1, r3 + 8000f76: b25b sxtb r3, r3 + 8000f78: 4313 orrs r3, r2 + 8000f7a: b25b sxtb r3, r3 + 8000f7c: b2da uxtb r2, r3 + 8000f7e: 4b17 ldr r3, [pc, #92] @ (8000fdc ) + 8000f80: 701a strb r2, [r3, #0] + return; + 8000f82: e026 b.n 8000fd2 + } -080010a4 : + // Regular keys (0x04 - 0x73) go in bitmap KEYPRESS[] + if(usageID < 0x04 || usageID > 0x73) return; //Usage ID out of bounds for bitmap + 8000f84: 79fb ldrb r3, [r7, #7] + 8000f86: 2b03 cmp r3, #3 + 8000f88: d922 bls.n 8000fd0 + 8000f8a: 79fb ldrb r3, [r7, #7] + 8000f8c: 2b73 cmp r3, #115 @ 0x73 + 8000f8e: d81f bhi.n 8000fd0 + uint16_t bit_index = usageID - 0x04; // Offset from 0x04 + 8000f90: 79fb ldrb r3, [r7, #7] + 8000f92: b29b uxth r3, r3 + 8000f94: 3b04 subs r3, #4 + 8000f96: 81bb strh r3, [r7, #12] + uint8_t byte_index = bit_index/8; // Byte within bitmap + 8000f98: 89bb ldrh r3, [r7, #12] + 8000f9a: 08db lsrs r3, r3, #3 + 8000f9c: b29b uxth r3, r3 + 8000f9e: 72fb strb r3, [r7, #11] + uint8_t bit_offset = bit_index%8; // Bit within byte + 8000fa0: 89bb ldrh r3, [r7, #12] + 8000fa2: b2db uxtb r3, r3 + 8000fa4: f003 0307 and.w r3, r3, #7 + 8000fa8: 72bb strb r3, [r7, #10] + REPORT.KEYPRESS[byte_index] |= (1 << bit_offset); + 8000faa: 7afb ldrb r3, [r7, #11] + 8000fac: 4a0b ldr r2, [pc, #44] @ (8000fdc ) + 8000fae: 4413 add r3, r2 + 8000fb0: 789b ldrb r3, [r3, #2] + 8000fb2: b25a sxtb r2, r3 + 8000fb4: 7abb ldrb r3, [r7, #10] + 8000fb6: 2101 movs r1, #1 + 8000fb8: fa01 f303 lsl.w r3, r1, r3 + 8000fbc: b25b sxtb r3, r3 + 8000fbe: 4313 orrs r3, r2 + 8000fc0: b25a sxtb r2, r3 + 8000fc2: 7afb ldrb r3, [r7, #11] + 8000fc4: b2d1 uxtb r1, r2 + 8000fc6: 4a05 ldr r2, [pc, #20] @ (8000fdc ) + 8000fc8: 4413 add r3, r2 + 8000fca: 460a mov r2, r1 + 8000fcc: 709a strb r2, [r3, #2] + 8000fce: e000 b.n 8000fd2 + if(usageID < 0x04 || usageID > 0x73) return; //Usage ID out of bounds for bitmap + 8000fd0: bf00 nop +} + 8000fd2: 3714 adds r7, #20 + 8000fd4: 46bd mov sp, r7 + 8000fd6: f85d 7b04 ldr.w r7, [sp], #4 + 8000fda: 4770 bx lr + 8000fdc: 20000230 .word 0x20000230 + +08000fe0 : void matrixScan(void){ - 80010a4: b580 push {r7, lr} - 80010a6: b082 sub sp, #8 - 80010a8: af00 add r7, sp, #0 + 8000fe0: b580 push {r7, lr} + 8000fe2: b082 sub sp, #8 + 8000fe4: af00 add r7, sp, #0 for (uint8_t col = 0; col < COL; col++){ - 80010aa: 2300 movs r3, #0 - 80010ac: 71fb strb r3, [r7, #7] - 80010ae: e05f b.n 8001170 + 8000fe6: 2300 movs r3, #0 + 8000fe8: 71fb strb r3, [r7, #7] + 8000fea: e05f b.n 80010ac HAL_GPIO_WritePin(COLUMN_PINS[col].GPIOx, COLUMN_PINS[col].PIN, GPIO_PIN_SET); - 80010b0: 79fb ldrb r3, [r7, #7] - 80010b2: 4a33 ldr r2, [pc, #204] @ (8001180 ) - 80010b4: f852 0033 ldr.w r0, [r2, r3, lsl #3] - 80010b8: 79fb ldrb r3, [r7, #7] - 80010ba: 4a31 ldr r2, [pc, #196] @ (8001180 ) - 80010bc: 00db lsls r3, r3, #3 - 80010be: 4413 add r3, r2 - 80010c0: 889b ldrh r3, [r3, #4] - 80010c2: 2201 movs r2, #1 - 80010c4: 4619 mov r1, r3 - 80010c6: f001 fe2f bl 8002d28 + 8000fec: 79fb ldrb r3, [r7, #7] + 8000fee: 4a33 ldr r2, [pc, #204] @ (80010bc ) + 8000ff0: f852 0033 ldr.w r0, [r2, r3, lsl #3] + 8000ff4: 79fb ldrb r3, [r7, #7] + 8000ff6: 4a31 ldr r2, [pc, #196] @ (80010bc ) + 8000ff8: 00db lsls r3, r3, #3 + 8000ffa: 4413 add r3, r2 + 8000ffc: 889b ldrh r3, [r3, #4] + 8000ffe: 2201 movs r2, #1 + 8001000: 4619 mov r1, r3 + 8001002: f001 fe33 bl 8002c6c HAL_Delay(1); - 80010ca: 2001 movs r0, #1 - 80010cc: f000 ff48 bl 8001f60 + 8001006: 2001 movs r0, #1 + 8001008: f000 ff4c bl 8001ea4 for(uint8_t row = 0; row < ROW; row++){ - 80010d0: 2300 movs r3, #0 - 80010d2: 71bb strb r3, [r7, #6] - 80010d4: e039 b.n 800114a + 800100c: 2300 movs r3, #0 + 800100e: 71bb strb r3, [r7, #6] + 8001010: e039 b.n 8001086 uint8_t new_key = HAL_GPIO_ReadPin(ROW_PINS[row].GPIOx, ROW_PINS[row].PIN); - 80010d6: 79bb ldrb r3, [r7, #6] - 80010d8: 4a2a ldr r2, [pc, #168] @ (8001184 ) - 80010da: f852 2033 ldr.w r2, [r2, r3, lsl #3] - 80010de: 79bb ldrb r3, [r7, #6] - 80010e0: 4928 ldr r1, [pc, #160] @ (8001184 ) - 80010e2: 00db lsls r3, r3, #3 - 80010e4: 440b add r3, r1 - 80010e6: 889b ldrh r3, [r3, #4] - 80010e8: 4619 mov r1, r3 - 80010ea: 4610 mov r0, r2 - 80010ec: f001 fe04 bl 8002cf8 - 80010f0: 4603 mov r3, r0 - 80010f2: 717b strb r3, [r7, #5] + 8001012: 79bb ldrb r3, [r7, #6] + 8001014: 4a2a ldr r2, [pc, #168] @ (80010c0 ) + 8001016: f852 2033 ldr.w r2, [r2, r3, lsl #3] + 800101a: 79bb ldrb r3, [r7, #6] + 800101c: 4928 ldr r1, [pc, #160] @ (80010c0 ) + 800101e: 00db lsls r3, r3, #3 + 8001020: 440b add r3, r1 + 8001022: 889b ldrh r3, [r3, #4] + 8001024: 4619 mov r1, r3 + 8001026: 4610 mov r0, r2 + 8001028: f001 fe08 bl 8002c3c + 800102c: 4603 mov r3, r0 + 800102e: 717b strb r3, [r7, #5] if(new_key != KEYSTATE[row][col]){ - 80010f4: 79ba ldrb r2, [r7, #6] - 80010f6: 79f9 ldrb r1, [r7, #7] - 80010f8: 4823 ldr r0, [pc, #140] @ (8001188 ) - 80010fa: 4613 mov r3, r2 - 80010fc: 011b lsls r3, r3, #4 - 80010fe: 1a9b subs r3, r3, r2 - 8001100: 4403 add r3, r0 - 8001102: 440b add r3, r1 - 8001104: 781b ldrb r3, [r3, #0] - 8001106: 797a ldrb r2, [r7, #5] - 8001108: 429a cmp r2, r3 - 800110a: d00c beq.n 8001126 + 8001030: 79ba ldrb r2, [r7, #6] + 8001032: 79f9 ldrb r1, [r7, #7] + 8001034: 4823 ldr r0, [pc, #140] @ (80010c4 ) + 8001036: 4613 mov r3, r2 + 8001038: 011b lsls r3, r3, #4 + 800103a: 1a9b subs r3, r3, r2 + 800103c: 4403 add r3, r0 + 800103e: 440b add r3, r1 + 8001040: 781b ldrb r3, [r3, #0] + 8001042: 797a ldrb r2, [r7, #5] + 8001044: 429a cmp r2, r3 + 8001046: d00c beq.n 8001062 KEYSTATE_CHANGED_FLAG = 1; - 800110c: 4b1f ldr r3, [pc, #124] @ (800118c ) - 800110e: 2201 movs r2, #1 - 8001110: 701a strb r2, [r3, #0] + 8001048: 4b1f ldr r3, [pc, #124] @ (80010c8 ) + 800104a: 2201 movs r2, #1 + 800104c: 701a strb r2, [r3, #0] KEYSTATE[row][col] = new_key; - 8001112: 79ba ldrb r2, [r7, #6] - 8001114: 79f9 ldrb r1, [r7, #7] - 8001116: 481c ldr r0, [pc, #112] @ (8001188 ) - 8001118: 4613 mov r3, r2 - 800111a: 011b lsls r3, r3, #4 - 800111c: 1a9b subs r3, r3, r2 - 800111e: 4403 add r3, r0 - 8001120: 440b add r3, r1 - 8001122: 797a ldrb r2, [r7, #5] - 8001124: 701a strb r2, [r3, #0] + 800104e: 79ba ldrb r2, [r7, #6] + 8001050: 79f9 ldrb r1, [r7, #7] + 8001052: 481c ldr r0, [pc, #112] @ (80010c4 ) + 8001054: 4613 mov r3, r2 + 8001056: 011b lsls r3, r3, #4 + 8001058: 1a9b subs r3, r3, r2 + 800105a: 4403 add r3, r0 + 800105c: 440b add r3, r1 + 800105e: 797a ldrb r2, [r7, #5] + 8001060: 701a strb r2, [r3, #0] } if(new_key){ - 8001126: 797b ldrb r3, [r7, #5] - 8001128: 2b00 cmp r3, #0 - 800112a: d00b beq.n 8001144 + 8001062: 797b ldrb r3, [r7, #5] + 8001064: 2b00 cmp r3, #0 + 8001066: d00b beq.n 8001080 addUSBReport(KEYCODES[row][col]); - 800112c: 79ba ldrb r2, [r7, #6] - 800112e: 79f9 ldrb r1, [r7, #7] - 8001130: 4817 ldr r0, [pc, #92] @ (8001190 ) - 8001132: 4613 mov r3, r2 - 8001134: 011b lsls r3, r3, #4 - 8001136: 1a9b subs r3, r3, r2 - 8001138: 4403 add r3, r0 - 800113a: 440b add r3, r1 - 800113c: 781b ldrb r3, [r3, #0] - 800113e: 4618 mov r0, r3 - 8001140: f7ff ff7c bl 800103c + 8001068: 79ba ldrb r2, [r7, #6] + 800106a: 79f9 ldrb r1, [r7, #7] + 800106c: 4817 ldr r0, [pc, #92] @ (80010cc ) + 800106e: 4613 mov r3, r2 + 8001070: 011b lsls r3, r3, #4 + 8001072: 1a9b subs r3, r3, r2 + 8001074: 4403 add r3, r0 + 8001076: 440b add r3, r1 + 8001078: 781b ldrb r3, [r3, #0] + 800107a: 4618 mov r0, r3 + 800107c: f7ff ff66 bl 8000f4c for(uint8_t row = 0; row < ROW; row++){ - 8001144: 79bb ldrb r3, [r7, #6] - 8001146: 3301 adds r3, #1 - 8001148: 71bb strb r3, [r7, #6] - 800114a: 79bb ldrb r3, [r7, #6] - 800114c: 2b04 cmp r3, #4 - 800114e: d9c2 bls.n 80010d6 + 8001080: 79bb ldrb r3, [r7, #6] + 8001082: 3301 adds r3, #1 + 8001084: 71bb strb r3, [r7, #6] + 8001086: 79bb ldrb r3, [r7, #6] + 8001088: 2b04 cmp r3, #4 + 800108a: d9c2 bls.n 8001012 } } HAL_GPIO_WritePin(COLUMN_PINS[col].GPIOx, COLUMN_PINS[col].PIN, GPIO_PIN_RESET); - 8001150: 79fb ldrb r3, [r7, #7] - 8001152: 4a0b ldr r2, [pc, #44] @ (8001180 ) - 8001154: f852 0033 ldr.w r0, [r2, r3, lsl #3] - 8001158: 79fb ldrb r3, [r7, #7] - 800115a: 4a09 ldr r2, [pc, #36] @ (8001180 ) - 800115c: 00db lsls r3, r3, #3 - 800115e: 4413 add r3, r2 - 8001160: 889b ldrh r3, [r3, #4] - 8001162: 2200 movs r2, #0 - 8001164: 4619 mov r1, r3 - 8001166: f001 fddf bl 8002d28 + 800108c: 79fb ldrb r3, [r7, #7] + 800108e: 4a0b ldr r2, [pc, #44] @ (80010bc ) + 8001090: f852 0033 ldr.w r0, [r2, r3, lsl #3] + 8001094: 79fb ldrb r3, [r7, #7] + 8001096: 4a09 ldr r2, [pc, #36] @ (80010bc ) + 8001098: 00db lsls r3, r3, #3 + 800109a: 4413 add r3, r2 + 800109c: 889b ldrh r3, [r3, #4] + 800109e: 2200 movs r2, #0 + 80010a0: 4619 mov r1, r3 + 80010a2: f001 fde3 bl 8002c6c for (uint8_t col = 0; col < COL; col++){ - 800116a: 79fb ldrb r3, [r7, #7] - 800116c: 3301 adds r3, #1 - 800116e: 71fb strb r3, [r7, #7] - 8001170: 79fb ldrb r3, [r7, #7] - 8001172: 2b0e cmp r3, #14 - 8001174: d99c bls.n 80010b0 + 80010a6: 79fb ldrb r3, [r7, #7] + 80010a8: 3301 adds r3, #1 + 80010aa: 71fb strb r3, [r7, #7] + 80010ac: 79fb ldrb r3, [r7, #7] + 80010ae: 2b0e cmp r3, #14 + 80010b0: d99c bls.n 8000fec } } - 8001176: bf00 nop - 8001178: bf00 nop - 800117a: 3708 adds r7, #8 - 800117c: 46bd mov sp, r7 - 800117e: bd80 pop {r7, pc} - 8001180: 20000028 .word 0x20000028 - 8001184: 20000000 .word 0x20000000 - 8001188: 200002e0 .word 0x200002e0 - 800118c: 200002dc .word 0x200002dc - 8001190: 200000a0 .word 0x200000a0 + 80010b2: bf00 nop + 80010b4: bf00 nop + 80010b6: 3708 adds r7, #8 + 80010b8: 46bd mov sp, r7 + 80010ba: bd80 pop {r7, pc} + 80010bc: 20000028 .word 0x20000028 + 80010c0: 20000000 .word 0x20000000 + 80010c4: 2000028c .word 0x2000028c + 80010c8: 20000288 .word 0x20000288 + 80010cc: 200000a0 .word 0x200000a0 -08001194 : +080010d0 : // Read TIM3 encoder counter, calculate delta and add corresponding keycodes void encoderProcess(void){ - 8001194: b580 push {r7, lr} - 8001196: b086 sub sp, #24 - 8001198: af00 add r7, sp, #0 + 80010d0: b580 push {r7, lr} + 80010d2: b086 sub sp, #24 + 80010d4: af00 add r7, sp, #0 int32_t cnt = (int32_t)__HAL_TIM_GET_COUNTER(&htim3); - 800119a: 4b2a ldr r3, [pc, #168] @ (8001244 ) - 800119c: 681b ldr r3, [r3, #0] - 800119e: 6a5b ldr r3, [r3, #36] @ 0x24 - 80011a0: 603b str r3, [r7, #0] + 80010d6: 4b2a ldr r3, [pc, #168] @ (8001180 ) + 80010d8: 681b ldr r3, [r3, #0] + 80010da: 6a5b ldr r3, [r3, #36] @ 0x24 + 80010dc: 603b str r3, [r7, #0] int32_t diff = cnt - LAST_ENCODER_COUNT; - 80011a2: 4b29 ldr r3, [pc, #164] @ (8001248 ) - 80011a4: 681b ldr r3, [r3, #0] - 80011a6: 683a ldr r2, [r7, #0] - 80011a8: 1ad3 subs r3, r2, r3 - 80011aa: 617b str r3, [r7, #20] + 80010de: 4b29 ldr r3, [pc, #164] @ (8001184 ) + 80010e0: 681b ldr r3, [r3, #0] + 80010e2: 683a ldr r2, [r7, #0] + 80010e4: 1ad3 subs r3, r2, r3 + 80010e6: 617b str r3, [r7, #20] // TIM3 configured as 16-bit counter (period 65535). Fix wrap-around. if(diff > 32767) diff -= 65536; - 80011ac: 697b ldr r3, [r7, #20] - 80011ae: f5b3 4f00 cmp.w r3, #32768 @ 0x8000 - 80011b2: db03 blt.n 80011bc - 80011b4: 697b ldr r3, [r7, #20] - 80011b6: f5a3 3380 sub.w r3, r3, #65536 @ 0x10000 - 80011ba: 617b str r3, [r7, #20] + 80010e8: 697b ldr r3, [r7, #20] + 80010ea: f5b3 4f00 cmp.w r3, #32768 @ 0x8000 + 80010ee: db03 blt.n 80010f8 + 80010f0: 697b ldr r3, [r7, #20] + 80010f2: f5a3 3380 sub.w r3, r3, #65536 @ 0x10000 + 80010f6: 617b str r3, [r7, #20] if(diff < -32768) diff += 65536; - 80011bc: 697b ldr r3, [r7, #20] - 80011be: f513 4f00 cmn.w r3, #32768 @ 0x8000 - 80011c2: da03 bge.n 80011cc - 80011c4: 697b ldr r3, [r7, #20] - 80011c6: f503 3380 add.w r3, r3, #65536 @ 0x10000 - 80011ca: 617b str r3, [r7, #20] + 80010f8: 697b ldr r3, [r7, #20] + 80010fa: f513 4f00 cmn.w r3, #32768 @ 0x8000 + 80010fe: da03 bge.n 8001108 + 8001100: 697b ldr r3, [r7, #20] + 8001102: f503 3380 add.w r3, r3, #65536 @ 0x10000 + 8001106: 617b str r3, [r7, #20] if(diff > 0){ - 80011cc: 697b ldr r3, [r7, #20] - 80011ce: 2b00 cmp r3, #0 - 80011d0: dd17 ble.n 8001202 + 8001108: 697b ldr r3, [r7, #20] + 800110a: 2b00 cmp r3, #0 + 800110c: dd17 ble.n 800113e int steps = diff; - 80011d2: 697b ldr r3, [r7, #20] - 80011d4: 613b str r3, [r7, #16] + 800110e: 697b ldr r3, [r7, #20] + 8001110: 613b str r3, [r7, #16] if(steps > 10) steps = 10; // cap bursts - 80011d6: 693b ldr r3, [r7, #16] - 80011d8: 2b0a cmp r3, #10 - 80011da: dd01 ble.n 80011e0 - 80011dc: 230a movs r3, #10 - 80011de: 613b str r3, [r7, #16] + 8001112: 693b ldr r3, [r7, #16] + 8001114: 2b0a cmp r3, #10 + 8001116: dd01 ble.n 800111c + 8001118: 230a movs r3, #10 + 800111a: 613b str r3, [r7, #16] for(int i = 0; i < steps; i++){ - 80011e0: 2300 movs r3, #0 - 80011e2: 60fb str r3, [r7, #12] - 80011e4: e008 b.n 80011f8 + 800111c: 2300 movs r3, #0 + 800111e: 60fb str r3, [r7, #12] + 8001120: e008 b.n 8001134 // CW -> KEYCODES[0][0] addUSBReport(KEYCODES[3][3]); - 80011e6: 4b19 ldr r3, [pc, #100] @ (800124c ) - 80011e8: f893 3030 ldrb.w r3, [r3, #48] @ 0x30 - 80011ec: 4618 mov r0, r3 - 80011ee: f7ff ff25 bl 800103c + 8001122: 4b19 ldr r3, [pc, #100] @ (8001188 ) + 8001124: f893 3030 ldrb.w r3, [r3, #48] @ 0x30 + 8001128: 4618 mov r0, r3 + 800112a: f7ff ff0f bl 8000f4c for(int i = 0; i < steps; i++){ - 80011f2: 68fb ldr r3, [r7, #12] - 80011f4: 3301 adds r3, #1 - 80011f6: 60fb str r3, [r7, #12] - 80011f8: 68fa ldr r2, [r7, #12] - 80011fa: 693b ldr r3, [r7, #16] - 80011fc: 429a cmp r2, r3 - 80011fe: dbf2 blt.n 80011e6 - 8001200: e019 b.n 8001236 + 800112e: 68fb ldr r3, [r7, #12] + 8001130: 3301 adds r3, #1 + 8001132: 60fb str r3, [r7, #12] + 8001134: 68fa ldr r2, [r7, #12] + 8001136: 693b ldr r3, [r7, #16] + 8001138: 429a cmp r2, r3 + 800113a: dbf2 blt.n 8001122 + 800113c: e019 b.n 8001172 } }else if(diff < 0){ - 8001202: 697b ldr r3, [r7, #20] - 8001204: 2b00 cmp r3, #0 - 8001206: da16 bge.n 8001236 + 800113e: 697b ldr r3, [r7, #20] + 8001140: 2b00 cmp r3, #0 + 8001142: da16 bge.n 8001172 int steps = -diff; - 8001208: 697b ldr r3, [r7, #20] - 800120a: 425b negs r3, r3 - 800120c: 60bb str r3, [r7, #8] + 8001144: 697b ldr r3, [r7, #20] + 8001146: 425b negs r3, r3 + 8001148: 60bb str r3, [r7, #8] if(steps > 10) steps = 10; - 800120e: 68bb ldr r3, [r7, #8] - 8001210: 2b0a cmp r3, #10 - 8001212: dd01 ble.n 8001218 - 8001214: 230a movs r3, #10 - 8001216: 60bb str r3, [r7, #8] + 800114a: 68bb ldr r3, [r7, #8] + 800114c: 2b0a cmp r3, #10 + 800114e: dd01 ble.n 8001154 + 8001150: 230a movs r3, #10 + 8001152: 60bb str r3, [r7, #8] for(int i = 0; i < steps; i++){ - 8001218: 2300 movs r3, #0 - 800121a: 607b str r3, [r7, #4] - 800121c: e007 b.n 800122e + 8001154: 2300 movs r3, #0 + 8001156: 607b str r3, [r7, #4] + 8001158: e007 b.n 800116a // CCW -> KEYCODES[0][1] addUSBReport(KEYCODES[2][1]); - 800121e: 4b0b ldr r3, [pc, #44] @ (800124c ) - 8001220: 7fdb ldrb r3, [r3, #31] - 8001222: 4618 mov r0, r3 - 8001224: f7ff ff0a bl 800103c + 800115a: 4b0b ldr r3, [pc, #44] @ (8001188 ) + 800115c: 7fdb ldrb r3, [r3, #31] + 800115e: 4618 mov r0, r3 + 8001160: f7ff fef4 bl 8000f4c for(int i = 0; i < steps; i++){ - 8001228: 687b ldr r3, [r7, #4] - 800122a: 3301 adds r3, #1 - 800122c: 607b str r3, [r7, #4] - 800122e: 687a ldr r2, [r7, #4] - 8001230: 68bb ldr r3, [r7, #8] - 8001232: 429a cmp r2, r3 - 8001234: dbf3 blt.n 800121e + 8001164: 687b ldr r3, [r7, #4] + 8001166: 3301 adds r3, #1 + 8001168: 607b str r3, [r7, #4] + 800116a: 687a ldr r2, [r7, #4] + 800116c: 68bb ldr r3, [r7, #8] + 800116e: 429a cmp r2, r3 + 8001170: dbf3 blt.n 800115a } } LAST_ENCODER_COUNT = cnt; - 8001236: 4a04 ldr r2, [pc, #16] @ (8001248 ) - 8001238: 683b ldr r3, [r7, #0] - 800123a: 6013 str r3, [r2, #0] + 8001172: 4a04 ldr r2, [pc, #16] @ (8001184 ) + 8001174: 683b ldr r3, [r7, #0] + 8001176: 6013 str r3, [r2, #0] } - 800123c: bf00 nop - 800123e: 3718 adds r7, #24 - 8001240: 46bd mov sp, r7 - 8001242: bd80 pop {r7, pc} - 8001244: 200009b8 .word 0x200009b8 - 8001248: 2000032c .word 0x2000032c - 800124c: 200000a0 .word 0x200000a0 + 8001178: bf00 nop + 800117a: 3718 adds r7, #24 + 800117c: 46bd mov sp, r7 + 800117e: bd80 pop {r7, pc} + 8001180: 20000964 .word 0x20000964 + 8001184: 200002d8 .word 0x200002d8 + 8001188: 200000a0 .word 0x200000a0 -08001250 : +0800118c : void resetReport(void){ - 8001250: b580 push {r7, lr} - 8001252: af00 add r7, sp, #0 - memset(REPORT.KEYPRESS, 0, sizeof(REPORT.KEYPRESS)); - 8001254: 220c movs r2, #12 - 8001256: 2100 movs r1, #0 - 8001258: 4802 ldr r0, [pc, #8] @ (8001264 ) - 800125a: f00a f889 bl 800b370 + 800118c: b580 push {r7, lr} + 800118e: af00 add r7, sp, #0 + REPORT.MODIFIER = 0; + 8001190: 4b04 ldr r3, [pc, #16] @ (80011a4 ) + 8001192: 2200 movs r2, #0 + 8001194: 701a strb r2, [r3, #0] + memset(REPORT.KEYPRESS, 0, sizeof(REPORT.KEYPRESS)); + 8001196: 220c movs r2, #12 + 8001198: 2100 movs r1, #0 + 800119a: 4803 ldr r0, [pc, #12] @ (80011a8 ) + 800119c: f009 ff46 bl 800b02c } - 800125e: bf00 nop - 8001260: bd80 pop {r7, pc} - 8001262: bf00 nop - 8001264: 20000286 .word 0x20000286 + 80011a0: bf00 nop + 80011a2: bd80 pop {r7, pc} + 80011a4: 20000230 .word 0x20000230 + 80011a8: 20000232 .word 0x20000232 -08001268 : +080011ac : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { - 8001268: b480 push {r7} - 800126a: af00 add r7, sp, #0 + 80011ac: b480 push {r7} + 80011ae: 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"); - 800126c: b672 cpsid i + 80011b0: b672 cpsid i } - 800126e: bf00 nop + 80011b2: 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) - 8001270: bf00 nop - 8001272: e7fd b.n 8001270 + 80011b4: bf00 nop + 80011b6: e7fd b.n 80011b4 -08001274 : -#include "pwm.h" -#include "tim.h" +080011b8 : + 80011b8: b580 push {r7, lr} + 80011ba: b088 sub sp, #32 + 80011bc: af00 add r7, sp, #0 + 80011be: 1d3b adds r3, r7, #4 + 80011c0: 2200 movs r2, #0 + 80011c2: 601a str r2, [r3, #0] + 80011c4: 605a str r2, [r3, #4] + 80011c6: 609a str r2, [r3, #8] + 80011c8: 60da str r2, [r3, #12] + 80011ca: 611a str r2, [r3, #16] + 80011cc: 615a str r2, [r3, #20] + 80011ce: 619a str r2, [r3, #24] + 80011d0: 480f ldr r0, [pc, #60] @ (8001210 ) + 80011d2: f004 f94c bl 800546e + 80011d6: 4603 mov r3, r0 + 80011d8: 2b00 cmp r3, #0 + 80011da: d001 beq.n 80011e0 + 80011dc: f7ff ffe6 bl 80011ac + 80011e0: 2360 movs r3, #96 @ 0x60 + 80011e2: 607b str r3, [r7, #4] + 80011e4: 2300 movs r3, #0 + 80011e6: 60bb str r3, [r7, #8] + 80011e8: 2300 movs r3, #0 + 80011ea: 60fb str r3, [r7, #12] + 80011ec: 2300 movs r3, #0 + 80011ee: 617b str r3, [r7, #20] + 80011f0: 1d3b adds r3, r7, #4 + 80011f2: 2200 movs r2, #0 + 80011f4: 4619 mov r1, r3 + 80011f6: 4806 ldr r0, [pc, #24] @ (8001210 ) + 80011f8: f004 fbea bl 80059d0 + 80011fc: 4603 mov r3, r0 + 80011fe: 2b00 cmp r3, #0 + 8001200: d001 beq.n 8001206 + 8001202: f7ff ffd3 bl 80011ac + 8001206: bf00 nop + 8001208: 3720 adds r7, #32 + 800120a: 46bd mov sp, r7 + 800120c: bd80 pop {r7, pc} + 800120e: bf00 nop + 8001210: 2000091c .word 0x2000091c -void MX_PWM_Init(void){ - 8001274: b580 push {r7, lr} - 8001276: b088 sub sp, #32 - 8001278: af00 add r7, sp, #0 - TIM_OC_InitTypeDef sConfigOC = {0}; - 800127a: 1d3b adds r3, r7, #4 - 800127c: 2200 movs r2, #0 - 800127e: 601a str r2, [r3, #0] - 8001280: 605a str r2, [r3, #4] - 8001282: 609a str r2, [r3, #8] - 8001284: 60da str r2, [r3, #12] - 8001286: 611a str r2, [r3, #16] - 8001288: 615a str r2, [r3, #20] - 800128a: 619a str r2, [r3, #24] +08001214 : + 8001214: b580 push {r7, lr} + 8001216: af00 add r7, sp, #0 + 8001218: 2100 movs r1, #0 + 800121a: 4802 ldr r0, [pc, #8] @ (8001224 ) + 800121c: f004 f980 bl 8005520 + 8001220: bf00 nop + 8001222: bd80 pop {r7, pc} + 8001224: 2000091c .word 0x2000091c - // Initialize TIM2 for PWM (safe to call even if TIM2 was previously initialized for OC) - if (HAL_TIM_PWM_Init(&htim2) != HAL_OK){ - 800128c: 480f ldr r0, [pc, #60] @ (80012cc ) - 800128e: f004 fa90 bl 80057b2 - 8001292: 4603 mov r3, r0 - 8001294: 2b00 cmp r3, #0 - 8001296: d001 beq.n 800129c - Error_Handler(); - 8001298: f7ff ffe6 bl 8001268 - } +08001228 : + 8001228: b480 push {r7} + 800122a: b083 sub sp, #12 + 800122c: af00 add r7, sp, #0 + 800122e: 2300 movs r3, #0 + 8001230: 607b str r3, [r7, #4] + 8001232: 4b10 ldr r3, [pc, #64] @ (8001274 ) + 8001234: 6c5b ldr r3, [r3, #68] @ 0x44 + 8001236: 4a0f ldr r2, [pc, #60] @ (8001274 ) + 8001238: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 800123c: 6453 str r3, [r2, #68] @ 0x44 + 800123e: 4b0d ldr r3, [pc, #52] @ (8001274 ) + 8001240: 6c5b ldr r3, [r3, #68] @ 0x44 + 8001242: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 8001246: 607b str r3, [r7, #4] + 8001248: 687b ldr r3, [r7, #4] + 800124a: 2300 movs r3, #0 + 800124c: 603b str r3, [r7, #0] + 800124e: 4b09 ldr r3, [pc, #36] @ (8001274 ) + 8001250: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001252: 4a08 ldr r2, [pc, #32] @ (8001274 ) + 8001254: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8001258: 6413 str r3, [r2, #64] @ 0x40 + 800125a: 4b06 ldr r3, [pc, #24] @ (8001274 ) + 800125c: 6c1b ldr r3, [r3, #64] @ 0x40 + 800125e: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8001262: 603b str r3, [r7, #0] + 8001264: 683b ldr r3, [r7, #0] + 8001266: bf00 nop + 8001268: 370c adds r7, #12 + 800126a: 46bd mov sp, r7 + 800126c: f85d 7b04 ldr.w r7, [sp], #4 + 8001270: 4770 bx lr + 8001272: bf00 nop + 8001274: 40023800 .word 0x40023800 - sConfigOC.OCMode = TIM_OCMODE_PWM1; - 800129c: 2360 movs r3, #96 @ 0x60 - 800129e: 607b str r3, [r7, #4] - sConfigOC.Pulse = 0; - 80012a0: 2300 movs r3, #0 - 80012a2: 60bb str r3, [r7, #8] - sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; - 80012a4: 2300 movs r3, #0 - 80012a6: 60fb str r3, [r7, #12] - sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; - 80012a8: 2300 movs r3, #0 - 80012aa: 617b str r3, [r7, #20] - if (HAL_TIM_PWM_ConfigChannel(&htim2, &sConfigOC, TIM_CHANNEL_1) != HAL_OK){ - 80012ac: 1d3b adds r3, r7, #4 - 80012ae: 2200 movs r2, #0 - 80012b0: 4619 mov r1, r3 - 80012b2: 4806 ldr r0, [pc, #24] @ (80012cc ) - 80012b4: f004 fd2e bl 8005d14 - 80012b8: 4603 mov r3, r0 - 80012ba: 2b00 cmp r3, #0 - 80012bc: d001 beq.n 80012c2 - Error_Handler(); - 80012be: f7ff ffd3 bl 8001268 - } -} - 80012c2: bf00 nop - 80012c4: 3720 adds r7, #32 - 80012c6: 46bd mov sp, r7 - 80012c8: bd80 pop {r7, pc} - 80012ca: bf00 nop - 80012cc: 20000970 .word 0x20000970 +08001278 : + 8001278: b480 push {r7} + 800127a: af00 add r7, sp, #0 + 800127c: bf00 nop + 800127e: e7fd b.n 800127c -080012d0 : +08001280 : + 8001280: b480 push {r7} + 8001282: af00 add r7, sp, #0 + 8001284: bf00 nop + 8001286: e7fd b.n 8001284 -void PWM_Start(void){ - 80012d0: b580 push {r7, lr} - 80012d2: af00 add r7, sp, #0 - HAL_TIM_PWM_Start(&htim2, TIM_CHANNEL_1); - 80012d4: 2100 movs r1, #0 - 80012d6: 4802 ldr r0, [pc, #8] @ (80012e0 ) - 80012d8: f004 fac4 bl 8005864 -} - 80012dc: bf00 nop - 80012de: bd80 pop {r7, pc} - 80012e0: 20000970 .word 0x20000970 +08001288 : + 8001288: b480 push {r7} + 800128a: af00 add r7, sp, #0 + 800128c: bf00 nop + 800128e: e7fd b.n 800128c -080012e4 : -/* USER CODE END 0 */ -/** - * Initializes the Global MSP. - */ -void HAL_MspInit(void) -{ - 80012e4: b480 push {r7} - 80012e6: b083 sub sp, #12 - 80012e8: af00 add r7, sp, #0 +08001290 : + 8001290: b480 push {r7} + 8001292: af00 add r7, sp, #0 + 8001294: bf00 nop + 8001296: e7fd b.n 8001294 - /* USER CODE BEGIN MspInit 0 */ +08001298 : + 8001298: b480 push {r7} + 800129a: af00 add r7, sp, #0 + 800129c: bf00 nop + 800129e: e7fd b.n 800129c - /* USER CODE END MspInit 0 */ +080012a0 : + 80012a0: b480 push {r7} + 80012a2: af00 add r7, sp, #0 + 80012a4: bf00 nop + 80012a6: 46bd mov sp, r7 + 80012a8: f85d 7b04 ldr.w r7, [sp], #4 + 80012ac: 4770 bx lr - __HAL_RCC_SYSCFG_CLK_ENABLE(); - 80012ea: 2300 movs r3, #0 - 80012ec: 607b str r3, [r7, #4] - 80012ee: 4b10 ldr r3, [pc, #64] @ (8001330 ) - 80012f0: 6c5b ldr r3, [r3, #68] @ 0x44 - 80012f2: 4a0f ldr r2, [pc, #60] @ (8001330 ) - 80012f4: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 80012f8: 6453 str r3, [r2, #68] @ 0x44 - 80012fa: 4b0d ldr r3, [pc, #52] @ (8001330 ) - 80012fc: 6c5b ldr r3, [r3, #68] @ 0x44 - 80012fe: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 8001302: 607b str r3, [r7, #4] - 8001304: 687b ldr r3, [r7, #4] - __HAL_RCC_PWR_CLK_ENABLE(); - 8001306: 2300 movs r3, #0 - 8001308: 603b str r3, [r7, #0] - 800130a: 4b09 ldr r3, [pc, #36] @ (8001330 ) - 800130c: 6c1b ldr r3, [r3, #64] @ 0x40 - 800130e: 4a08 ldr r2, [pc, #32] @ (8001330 ) - 8001310: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8001314: 6413 str r3, [r2, #64] @ 0x40 - 8001316: 4b06 ldr r3, [pc, #24] @ (8001330 ) - 8001318: 6c1b ldr r3, [r3, #64] @ 0x40 - 800131a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 800131e: 603b str r3, [r7, #0] - 8001320: 683b ldr r3, [r7, #0] - /* System interrupt init*/ +080012ae : + 80012ae: b480 push {r7} + 80012b0: af00 add r7, sp, #0 + 80012b2: bf00 nop + 80012b4: 46bd mov sp, r7 + 80012b6: f85d 7b04 ldr.w r7, [sp], #4 + 80012ba: 4770 bx lr - /* USER CODE BEGIN MspInit 1 */ +080012bc : + 80012bc: b480 push {r7} + 80012be: af00 add r7, sp, #0 + 80012c0: bf00 nop + 80012c2: 46bd mov sp, r7 + 80012c4: f85d 7b04 ldr.w r7, [sp], #4 + 80012c8: 4770 bx lr - /* USER CODE END MspInit 1 */ -} - 8001322: bf00 nop - 8001324: 370c adds r7, #12 - 8001326: 46bd mov sp, r7 - 8001328: f85d 7b04 ldr.w r7, [sp], #4 - 800132c: 4770 bx lr - 800132e: bf00 nop - 8001330: 40023800 .word 0x40023800 - -08001334 : -/******************************************************************************/ -/** - * @brief This function handles Non maskable interrupt. - */ -void NMI_Handler(void) -{ - 8001334: b480 push {r7} - 8001336: 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) - 8001338: bf00 nop - 800133a: e7fd b.n 8001338 - -0800133c : - -/** - * @brief This function handles Hard fault interrupt. - */ -void HardFault_Handler(void) -{ - 800133c: b480 push {r7} - 800133e: af00 add r7, sp, #0 - /* USER CODE BEGIN HardFault_IRQn 0 */ - - /* USER CODE END HardFault_IRQn 0 */ - while (1) - 8001340: bf00 nop - 8001342: e7fd b.n 8001340 - -08001344 : - -/** - * @brief This function handles Memory management fault. - */ -void MemManage_Handler(void) -{ - 8001344: b480 push {r7} - 8001346: af00 add r7, sp, #0 - /* USER CODE BEGIN MemoryManagement_IRQn 0 */ - - /* USER CODE END MemoryManagement_IRQn 0 */ - while (1) - 8001348: bf00 nop - 800134a: e7fd b.n 8001348 - -0800134c : - -/** - * @brief This function handles Pre-fetch fault, memory access fault. - */ -void BusFault_Handler(void) -{ - 800134c: b480 push {r7} - 800134e: af00 add r7, sp, #0 - /* USER CODE BEGIN BusFault_IRQn 0 */ - - /* USER CODE END BusFault_IRQn 0 */ - while (1) - 8001350: bf00 nop - 8001352: e7fd b.n 8001350 - -08001354 : - -/** - * @brief This function handles Undefined instruction or illegal state. - */ -void UsageFault_Handler(void) -{ - 8001354: b480 push {r7} - 8001356: af00 add r7, sp, #0 - /* USER CODE BEGIN UsageFault_IRQn 0 */ - - /* USER CODE END UsageFault_IRQn 0 */ - while (1) - 8001358: bf00 nop - 800135a: e7fd b.n 8001358 - -0800135c : - -/** - * @brief This function handles System service call via SWI instruction. - */ -void SVC_Handler(void) -{ - 800135c: b480 push {r7} - 800135e: af00 add r7, sp, #0 - - /* USER CODE END SVCall_IRQn 0 */ - /* USER CODE BEGIN SVCall_IRQn 1 */ - - /* USER CODE END SVCall_IRQn 1 */ -} - 8001360: bf00 nop - 8001362: 46bd mov sp, r7 - 8001364: f85d 7b04 ldr.w r7, [sp], #4 - 8001368: 4770 bx lr - -0800136a : - -/** - * @brief This function handles Debug monitor. - */ -void DebugMon_Handler(void) -{ - 800136a: b480 push {r7} - 800136c: af00 add r7, sp, #0 - - /* USER CODE END DebugMonitor_IRQn 0 */ - /* USER CODE BEGIN DebugMonitor_IRQn 1 */ - - /* USER CODE END DebugMonitor_IRQn 1 */ -} - 800136e: bf00 nop - 8001370: 46bd mov sp, r7 - 8001372: f85d 7b04 ldr.w r7, [sp], #4 - 8001376: 4770 bx lr - -08001378 : - -/** - * @brief This function handles Pendable request for system service. - */ -void PendSV_Handler(void) -{ - 8001378: b480 push {r7} - 800137a: af00 add r7, sp, #0 - - /* USER CODE END PendSV_IRQn 0 */ - /* USER CODE BEGIN PendSV_IRQn 1 */ - - /* USER CODE END PendSV_IRQn 1 */ -} - 800137c: bf00 nop - 800137e: 46bd mov sp, r7 - 8001380: f85d 7b04 ldr.w r7, [sp], #4 - 8001384: 4770 bx lr - -08001386 : - -/** - * @brief This function handles System tick timer. - */ -void SysTick_Handler(void) -{ - 8001386: b580 push {r7, lr} - 8001388: af00 add r7, sp, #0 - /* USER CODE BEGIN SysTick_IRQn 0 */ - - /* USER CODE END SysTick_IRQn 0 */ - HAL_IncTick(); - 800138a: f000 fdc9 bl 8001f20 - /* USER CODE BEGIN SysTick_IRQn 1 */ - - /* USER CODE END SysTick_IRQn 1 */ -} - 800138e: bf00 nop - 8001390: bd80 pop {r7, pc} +080012ca : + 80012ca: b580 push {r7, lr} + 80012cc: af00 add r7, sp, #0 + 80012ce: f000 fdc9 bl 8001e64 + 80012d2: bf00 nop + 80012d4: bd80 pop {r7, pc} ... -08001394 : +080012d8 : + 80012d8: b580 push {r7, lr} + 80012da: af00 add r7, sp, #0 + 80012dc: 4802 ldr r0, [pc, #8] @ (80012e8 ) + 80012de: f001 f8af bl 8002440 + 80012e2: bf00 nop + 80012e4: bd80 pop {r7, pc} + 80012e6: bf00 nop + 80012e8: 20000b8c .word 0x20000b8c -/** - * @brief This function handles DMA1 stream0 global interrupt. - */ -void DMA1_Stream0_IRQHandler(void) -{ - 8001394: b580 push {r7, lr} - 8001396: af00 add r7, sp, #0 - /* USER CODE BEGIN DMA1_Stream0_IRQn 0 */ +080012ec : + 80012ec: b580 push {r7, lr} + 80012ee: af00 add r7, sp, #0 + 80012f0: 4802 ldr r0, [pc, #8] @ (80012fc ) + 80012f2: f001 f8a5 bl 8002440 + 80012f6: bf00 nop + 80012f8: bd80 pop {r7, pc} + 80012fa: bf00 nop + 80012fc: 20000acc .word 0x20000acc - /* USER CODE END DMA1_Stream0_IRQn 0 */ - HAL_DMA_IRQHandler(&hdma_uart5_rx); - 8001398: 4802 ldr r0, [pc, #8] @ (80013a4 ) - 800139a: f001 f8af bl 80024fc - /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */ +08001300 : + 8001300: b580 push {r7, lr} + 8001302: af00 add r7, sp, #0 + 8001304: 4802 ldr r0, [pc, #8] @ (8001310 ) + 8001306: f001 f89b bl 8002440 + 800130a: bf00 nop + 800130c: bd80 pop {r7, pc} + 800130e: bf00 nop + 8001310: 20000b2c .word 0x20000b2c - /* USER CODE END DMA1_Stream0_IRQn 1 */ -} - 800139e: bf00 nop - 80013a0: bd80 pop {r7, pc} - 80013a2: bf00 nop - 80013a4: 20000be0 .word 0x20000be0 +08001314 : + 8001314: b580 push {r7, lr} + 8001316: af00 add r7, sp, #0 + 8001318: 4802 ldr r0, [pc, #8] @ (8001324 ) + 800131a: f001 f891 bl 8002440 + 800131e: bf00 nop + 8001320: bd80 pop {r7, pc} + 8001322: bf00 nop + 8001324: 20000d0c .word 0x20000d0c -080013a8 : +08001328 : + 8001328: b580 push {r7, lr} + 800132a: af00 add r7, sp, #0 + 800132c: 4802 ldr r0, [pc, #8] @ (8001338 ) + 800132e: f001 f887 bl 8002440 + 8001332: bf00 nop + 8001334: bd80 pop {r7, pc} + 8001336: bf00 nop + 8001338: 20000d6c .word 0x20000d6c -/** - * @brief This function handles DMA1 stream2 global interrupt. - */ -void DMA1_Stream2_IRQHandler(void) -{ - 80013a8: b580 push {r7, lr} - 80013aa: af00 add r7, sp, #0 - /* USER CODE BEGIN DMA1_Stream2_IRQn 0 */ +0800133c : + 800133c: b580 push {r7, lr} + 800133e: af00 add r7, sp, #0 + 8001340: 4802 ldr r0, [pc, #8] @ (800134c ) + 8001342: f004 fff1 bl 8006328 + 8001346: bf00 nop + 8001348: bd80 pop {r7, pc} + 800134a: bf00 nop + 800134c: 20000a3c .word 0x20000a3c - /* USER CODE END DMA1_Stream2_IRQn 0 */ - HAL_DMA_IRQHandler(&hdma_uart4_rx); - 80013ac: 4802 ldr r0, [pc, #8] @ (80013b8 ) - 80013ae: f001 f8a5 bl 80024fc - /* USER CODE BEGIN DMA1_Stream2_IRQn 1 */ +08001350 : + 8001350: b580 push {r7, lr} + 8001352: af00 add r7, sp, #0 + 8001354: 4802 ldr r0, [pc, #8] @ (8001360 ) + 8001356: f004 ffe7 bl 8006328 + 800135a: bf00 nop + 800135c: bd80 pop {r7, pc} + 800135e: bf00 nop + 8001360: 20000a84 .word 0x20000a84 - /* USER CODE END DMA1_Stream2_IRQn 1 */ -} - 80013b2: bf00 nop - 80013b4: bd80 pop {r7, pc} - 80013b6: bf00 nop - 80013b8: 20000b20 .word 0x20000b20 +08001364 : + 8001364: b580 push {r7, lr} + 8001366: af00 add r7, sp, #0 + 8001368: 4802 ldr r0, [pc, #8] @ (8001374 ) + 800136a: f001 f869 bl 8002440 + 800136e: bf00 nop + 8001370: bd80 pop {r7, pc} + 8001372: bf00 nop + 8001374: 20000bec .word 0x20000bec -080013bc : +08001378 : + 8001378: b580 push {r7, lr} + 800137a: af00 add r7, sp, #0 + 800137c: 4802 ldr r0, [pc, #8] @ (8001388 ) + 800137e: f004 ffd3 bl 8006328 + 8001382: bf00 nop + 8001384: bd80 pop {r7, pc} + 8001386: bf00 nop + 8001388: 200009ac .word 0x200009ac -/** - * @brief This function handles DMA1 stream4 global interrupt. - */ -void DMA1_Stream4_IRQHandler(void) -{ - 80013bc: b580 push {r7, lr} - 80013be: af00 add r7, sp, #0 - /* USER CODE BEGIN DMA1_Stream4_IRQn 0 */ +0800138c : + 800138c: b580 push {r7, lr} + 800138e: af00 add r7, sp, #0 + 8001390: 4802 ldr r0, [pc, #8] @ (800139c ) + 8001392: f004 ffc9 bl 8006328 + 8001396: bf00 nop + 8001398: bd80 pop {r7, pc} + 800139a: bf00 nop + 800139c: 200009f4 .word 0x200009f4 - /* USER CODE END DMA1_Stream4_IRQn 0 */ - HAL_DMA_IRQHandler(&hdma_uart4_tx); - 80013c0: 4802 ldr r0, [pc, #8] @ (80013cc ) - 80013c2: f001 f89b bl 80024fc - /* USER CODE BEGIN DMA1_Stream4_IRQn 1 */ +080013a0 : + 80013a0: b580 push {r7, lr} + 80013a2: af00 add r7, sp, #0 + 80013a4: 4802 ldr r0, [pc, #8] @ (80013b0 ) + 80013a6: f001 f84b bl 8002440 + 80013aa: bf00 nop + 80013ac: bd80 pop {r7, pc} + 80013ae: bf00 nop + 80013b0: 20000c4c .word 0x20000c4c - /* USER CODE END DMA1_Stream4_IRQn 1 */ -} - 80013c6: bf00 nop - 80013c8: bd80 pop {r7, pc} - 80013ca: bf00 nop - 80013cc: 20000b80 .word 0x20000b80 +080013b4 : + 80013b4: b580 push {r7, lr} + 80013b6: af00 add r7, sp, #0 + 80013b8: 4802 ldr r0, [pc, #8] @ (80013c4 ) + 80013ba: f001 fdbb bl 8002f34 + 80013be: bf00 nop + 80013c0: bd80 pop {r7, pc} + 80013c2: bf00 nop + 80013c4: 200012b0 .word 0x200012b0 -080013d0 : +080013c8 : + 80013c8: b580 push {r7, lr} + 80013ca: af00 add r7, sp, #0 + 80013cc: 4802 ldr r0, [pc, #8] @ (80013d8 ) + 80013ce: f001 f837 bl 8002440 + 80013d2: bf00 nop + 80013d4: bd80 pop {r7, pc} + 80013d6: bf00 nop + 80013d8: 20000cac .word 0x20000cac -/** - * @brief This function handles DMA1 stream5 global interrupt. - */ -void DMA1_Stream5_IRQHandler(void) -{ - 80013d0: b580 push {r7, lr} - 80013d2: af00 add r7, sp, #0 - /* USER CODE BEGIN DMA1_Stream5_IRQn 0 */ +080013dc : + 80013dc: b480 push {r7} + 80013de: af00 add r7, sp, #0 + 80013e0: 4b06 ldr r3, [pc, #24] @ (80013fc ) + 80013e2: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 80013e6: 4a05 ldr r2, [pc, #20] @ (80013fc ) + 80013e8: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000 + 80013ec: f8c2 3088 str.w r3, [r2, #136] @ 0x88 + 80013f0: bf00 nop + 80013f2: 46bd mov sp, r7 + 80013f4: f85d 7b04 ldr.w r7, [sp], #4 + 80013f8: 4770 bx lr + 80013fa: bf00 nop + 80013fc: e000ed00 .word 0xe000ed00 - /* USER CODE END DMA1_Stream5_IRQn 0 */ - HAL_DMA_IRQHandler(&hdma_usart2_rx); - 80013d4: 4802 ldr r0, [pc, #8] @ (80013e0 ) - 80013d6: f001 f891 bl 80024fc - /* USER CODE BEGIN DMA1_Stream5_IRQn 1 */ +08001400 : + 8001400: b580 push {r7, lr} + 8001402: b08a sub sp, #40 @ 0x28 + 8001404: af00 add r7, sp, #0 + 8001406: f107 0320 add.w r3, r7, #32 + 800140a: 2200 movs r2, #0 + 800140c: 601a str r2, [r3, #0] + 800140e: 605a str r2, [r3, #4] + 8001410: 1d3b adds r3, r7, #4 + 8001412: 2200 movs r2, #0 + 8001414: 601a str r2, [r3, #0] + 8001416: 605a str r2, [r3, #4] + 8001418: 609a str r2, [r3, #8] + 800141a: 60da str r2, [r3, #12] + 800141c: 611a str r2, [r3, #16] + 800141e: 615a str r2, [r3, #20] + 8001420: 619a str r2, [r3, #24] + 8001422: 4b22 ldr r3, [pc, #136] @ (80014ac ) + 8001424: f04f 4280 mov.w r2, #1073741824 @ 0x40000000 + 8001428: 601a str r2, [r3, #0] + 800142a: 4b20 ldr r3, [pc, #128] @ (80014ac ) + 800142c: 2200 movs r2, #0 + 800142e: 605a str r2, [r3, #4] + 8001430: 4b1e ldr r3, [pc, #120] @ (80014ac ) + 8001432: 2200 movs r2, #0 + 8001434: 609a str r2, [r3, #8] + 8001436: 4b1d ldr r3, [pc, #116] @ (80014ac ) + 8001438: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff + 800143c: 60da str r2, [r3, #12] + 800143e: 4b1b ldr r3, [pc, #108] @ (80014ac ) + 8001440: 2200 movs r2, #0 + 8001442: 611a str r2, [r3, #16] + 8001444: 4b19 ldr r3, [pc, #100] @ (80014ac ) + 8001446: 2200 movs r2, #0 + 8001448: 619a str r2, [r3, #24] + 800144a: 4818 ldr r0, [pc, #96] @ (80014ac ) + 800144c: f003 ffc0 bl 80053d0 + 8001450: 4603 mov r3, r0 + 8001452: 2b00 cmp r3, #0 + 8001454: d001 beq.n 800145a + 8001456: f7ff fea9 bl 80011ac + 800145a: 2300 movs r3, #0 + 800145c: 623b str r3, [r7, #32] + 800145e: 2300 movs r3, #0 + 8001460: 627b str r3, [r7, #36] @ 0x24 + 8001462: f107 0320 add.w r3, r7, #32 + 8001466: 4619 mov r1, r3 + 8001468: 4810 ldr r0, [pc, #64] @ (80014ac ) + 800146a: f004 fdef bl 800604c + 800146e: 4603 mov r3, r0 + 8001470: 2b00 cmp r3, #0 + 8001472: d001 beq.n 8001478 + 8001474: f7ff fe9a bl 80011ac + 8001478: 2350 movs r3, #80 @ 0x50 + 800147a: 607b str r3, [r7, #4] + 800147c: 2300 movs r3, #0 + 800147e: 60bb str r3, [r7, #8] + 8001480: 2300 movs r3, #0 + 8001482: 60fb str r3, [r7, #12] + 8001484: 2300 movs r3, #0 + 8001486: 617b str r3, [r7, #20] + 8001488: 1d3b adds r3, r7, #4 + 800148a: 2200 movs r2, #0 + 800148c: 4619 mov r1, r3 + 800148e: 4807 ldr r0, [pc, #28] @ (80014ac ) + 8001490: f004 fa42 bl 8005918 + 8001494: 4603 mov r3, r0 + 8001496: 2b00 cmp r3, #0 + 8001498: d001 beq.n 800149e + 800149a: f7ff fe87 bl 80011ac + 800149e: 4803 ldr r0, [pc, #12] @ (80014ac ) + 80014a0: f000 f8c2 bl 8001628 + 80014a4: bf00 nop + 80014a6: 3728 adds r7, #40 @ 0x28 + 80014a8: 46bd mov sp, r7 + 80014aa: bd80 pop {r7, pc} + 80014ac: 2000091c .word 0x2000091c - /* USER CODE END DMA1_Stream5_IRQn 1 */ -} - 80013da: bf00 nop - 80013dc: bd80 pop {r7, pc} - 80013de: bf00 nop - 80013e0: 20000d60 .word 0x20000d60 - -080013e4 : - -/** - * @brief This function handles DMA1 stream6 global interrupt. - */ -void DMA1_Stream6_IRQHandler(void) -{ - 80013e4: b580 push {r7, lr} - 80013e6: 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); - 80013e8: 4802 ldr r0, [pc, #8] @ (80013f4 ) - 80013ea: f001 f887 bl 80024fc - /* USER CODE BEGIN DMA1_Stream6_IRQn 1 */ - - /* USER CODE END DMA1_Stream6_IRQn 1 */ -} - 80013ee: bf00 nop - 80013f0: bd80 pop {r7, pc} - 80013f2: bf00 nop - 80013f4: 20000dc0 .word 0x20000dc0 - -080013f8 : - -/** - * @brief This function handles USART1 global interrupt. - */ -void USART1_IRQHandler(void) -{ - 80013f8: b580 push {r7, lr} - 80013fa: af00 add r7, sp, #0 - /* USER CODE BEGIN USART1_IRQn 0 */ - - /* USER CODE END USART1_IRQn 0 */ - HAL_UART_IRQHandler(&huart1); - 80013fc: 4802 ldr r0, [pc, #8] @ (8001408 ) - 80013fe: f005 f935 bl 800666c - /* USER CODE BEGIN USART1_IRQn 1 */ - - /* USER CODE END USART1_IRQn 1 */ -} - 8001402: bf00 nop - 8001404: bd80 pop {r7, pc} - 8001406: bf00 nop - 8001408: 20000a90 .word 0x20000a90 - -0800140c : - -/** - * @brief This function handles USART2 global interrupt. - */ -void USART2_IRQHandler(void) -{ - 800140c: b580 push {r7, lr} - 800140e: af00 add r7, sp, #0 - /* USER CODE BEGIN USART2_IRQn 0 */ - - /* USER CODE END USART2_IRQn 0 */ - HAL_UART_IRQHandler(&huart2); - 8001410: 4802 ldr r0, [pc, #8] @ (800141c ) - 8001412: f005 f92b bl 800666c - /* USER CODE BEGIN USART2_IRQn 1 */ - - /* USER CODE END USART2_IRQn 1 */ -} - 8001416: bf00 nop - 8001418: bd80 pop {r7, pc} - 800141a: bf00 nop - 800141c: 20000ad8 .word 0x20000ad8 - -08001420 : - -/** - * @brief This function handles DMA1 stream7 global interrupt. - */ -void DMA1_Stream7_IRQHandler(void) -{ - 8001420: b580 push {r7, lr} - 8001422: 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); - 8001424: 4802 ldr r0, [pc, #8] @ (8001430 ) - 8001426: f001 f869 bl 80024fc - /* USER CODE BEGIN DMA1_Stream7_IRQn 1 */ - - /* USER CODE END DMA1_Stream7_IRQn 1 */ -} - 800142a: bf00 nop - 800142c: bd80 pop {r7, pc} - 800142e: bf00 nop - 8001430: 20000c40 .word 0x20000c40 - -08001434 : - -/** - * @brief This function handles UART4 global interrupt. - */ -void UART4_IRQHandler(void) -{ - 8001434: b580 push {r7, lr} - 8001436: af00 add r7, sp, #0 - /* USER CODE BEGIN UART4_IRQn 0 */ - - /* USER CODE END UART4_IRQn 0 */ - HAL_UART_IRQHandler(&huart4); - 8001438: 4802 ldr r0, [pc, #8] @ (8001444 ) - 800143a: f005 f917 bl 800666c - /* USER CODE BEGIN UART4_IRQn 1 */ - - /* USER CODE END UART4_IRQn 1 */ -} - 800143e: bf00 nop - 8001440: bd80 pop {r7, pc} - 8001442: bf00 nop - 8001444: 20000a00 .word 0x20000a00 - -08001448 : - -/** - * @brief This function handles UART5 global interrupt. - */ -void UART5_IRQHandler(void) -{ - 8001448: b580 push {r7, lr} - 800144a: af00 add r7, sp, #0 - /* USER CODE BEGIN UART5_IRQn 0 */ - - /* USER CODE END UART5_IRQn 0 */ - HAL_UART_IRQHandler(&huart5); - 800144c: 4802 ldr r0, [pc, #8] @ (8001458 ) - 800144e: f005 f90d bl 800666c - /* USER CODE BEGIN UART5_IRQn 1 */ - - /* USER CODE END UART5_IRQn 1 */ -} - 8001452: bf00 nop - 8001454: bd80 pop {r7, pc} - 8001456: bf00 nop - 8001458: 20000a48 .word 0x20000a48 - -0800145c : - -/** - * @brief This function handles DMA2 stream2 global interrupt. - */ -void DMA2_Stream2_IRQHandler(void) -{ - 800145c: b580 push {r7, lr} - 800145e: 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); - 8001460: 4802 ldr r0, [pc, #8] @ (800146c ) - 8001462: f001 f84b bl 80024fc - /* USER CODE BEGIN DMA2_Stream2_IRQn 1 */ - - /* USER CODE END DMA2_Stream2_IRQn 1 */ -} - 8001466: bf00 nop - 8001468: bd80 pop {r7, pc} - 800146a: bf00 nop - 800146c: 20000ca0 .word 0x20000ca0 - -08001470 : - -/** - * @brief This function handles USB On The Go FS global interrupt. - */ -void OTG_FS_IRQHandler(void) -{ - 8001470: b580 push {r7, lr} - 8001472: 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); - 8001474: 4802 ldr r0, [pc, #8] @ (8001480 ) - 8001476: f001 ff00 bl 800327a - /* USER CODE BEGIN OTG_FS_IRQn 1 */ - - /* USER CODE END OTG_FS_IRQn 1 */ -} - 800147a: bf00 nop - 800147c: bd80 pop {r7, pc} - 800147e: bf00 nop - 8001480: 20001304 .word 0x20001304 - -08001484 : - -/** - * @brief This function handles DMA2 stream7 global interrupt. - */ -void DMA2_Stream7_IRQHandler(void) -{ - 8001484: b580 push {r7, lr} - 8001486: 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); - 8001488: 4802 ldr r0, [pc, #8] @ (8001494 ) - 800148a: f001 f837 bl 80024fc - /* USER CODE BEGIN DMA2_Stream7_IRQn 1 */ - - /* USER CODE END DMA2_Stream7_IRQn 1 */ -} - 800148e: bf00 nop - 8001490: bd80 pop {r7, pc} - 8001492: bf00 nop - 8001494: 20000d00 .word 0x20000d00 - -08001498 : - * configuration. - * @param None - * @retval None - */ -void SystemInit(void) -{ - 8001498: b480 push {r7} - 800149a: 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 */ - 800149c: 4b06 ldr r3, [pc, #24] @ (80014b8 ) - 800149e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 80014a2: 4a05 ldr r2, [pc, #20] @ (80014b8 ) - 80014a4: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000 - 80014a8: 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 */ -} - 80014ac: bf00 nop - 80014ae: 46bd mov sp, r7 - 80014b0: f85d 7b04 ldr.w r7, [sp], #4 - 80014b4: 4770 bx lr - 80014b6: bf00 nop - 80014b8: e000ed00 .word 0xe000ed00 - -080014bc : -TIM_HandleTypeDef htim2; -TIM_HandleTypeDef htim3; - -/* TIM2 init function */ -void MX_TIM2_Init(void) -{ - 80014bc: b580 push {r7, lr} - 80014be: b08a sub sp, #40 @ 0x28 - 80014c0: af00 add r7, sp, #0 - - /* USER CODE BEGIN TIM2_Init 0 */ - - /* USER CODE END TIM2_Init 0 */ - - TIM_MasterConfigTypeDef sMasterConfig = {0}; - 80014c2: f107 0320 add.w r3, r7, #32 +080014b0 : + 80014b0: b580 push {r7, lr} + 80014b2: b08c sub sp, #48 @ 0x30 + 80014b4: af00 add r7, sp, #0 + 80014b6: f107 030c add.w r3, r7, #12 + 80014ba: 2224 movs r2, #36 @ 0x24 + 80014bc: 2100 movs r1, #0 + 80014be: 4618 mov r0, r3 + 80014c0: f009 fdb4 bl 800b02c + 80014c4: 1d3b adds r3, r7, #4 80014c6: 2200 movs r2, #0 80014c8: 601a str r2, [r3, #0] 80014ca: 605a str r2, [r3, #4] - TIM_OC_InitTypeDef sConfigOC = {0}; - 80014cc: 1d3b adds r3, r7, #4 - 80014ce: 2200 movs r2, #0 + 80014cc: 4b20 ldr r3, [pc, #128] @ (8001550 ) + 80014ce: 4a21 ldr r2, [pc, #132] @ (8001554 ) 80014d0: 601a str r2, [r3, #0] - 80014d2: 605a str r2, [r3, #4] - 80014d4: 609a str r2, [r3, #8] - 80014d6: 60da str r2, [r3, #12] - 80014d8: 611a str r2, [r3, #16] - 80014da: 615a str r2, [r3, #20] - 80014dc: 619a str r2, [r3, #24] - - /* USER CODE BEGIN TIM2_Init 1 */ - - /* USER CODE END TIM2_Init 1 */ - htim2.Instance = TIM2; - 80014de: 4b22 ldr r3, [pc, #136] @ (8001568 ) - 80014e0: f04f 4280 mov.w r2, #1073741824 @ 0x40000000 - 80014e4: 601a str r2, [r3, #0] - htim2.Init.Prescaler = 0; - 80014e6: 4b20 ldr r3, [pc, #128] @ (8001568 ) + 80014d2: 4b1f ldr r3, [pc, #124] @ (8001550 ) + 80014d4: 2200 movs r2, #0 + 80014d6: 605a str r2, [r3, #4] + 80014d8: 4b1d ldr r3, [pc, #116] @ (8001550 ) + 80014da: 2200 movs r2, #0 + 80014dc: 609a str r2, [r3, #8] + 80014de: 4b1c ldr r3, [pc, #112] @ (8001550 ) + 80014e0: f64f 72ff movw r2, #65535 @ 0xffff + 80014e4: 60da str r2, [r3, #12] + 80014e6: 4b1a ldr r3, [pc, #104] @ (8001550 ) 80014e8: 2200 movs r2, #0 - 80014ea: 605a str r2, [r3, #4] - htim2.Init.CounterMode = TIM_COUNTERMODE_UP; - 80014ec: 4b1e ldr r3, [pc, #120] @ (8001568 ) + 80014ea: 611a str r2, [r3, #16] + 80014ec: 4b18 ldr r3, [pc, #96] @ (8001550 ) 80014ee: 2200 movs r2, #0 - 80014f0: 609a str r2, [r3, #8] - htim2.Init.Period = 4294967295; - 80014f2: 4b1d ldr r3, [pc, #116] @ (8001568 ) - 80014f4: f04f 32ff mov.w r2, #4294967295 - 80014f8: 60da str r2, [r3, #12] - htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; - 80014fa: 4b1b ldr r3, [pc, #108] @ (8001568 ) - 80014fc: 2200 movs r2, #0 - 80014fe: 611a str r2, [r3, #16] - htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; - 8001500: 4b19 ldr r3, [pc, #100] @ (8001568 ) - 8001502: 2200 movs r2, #0 - 8001504: 619a str r2, [r3, #24] - if (HAL_TIM_OC_Init(&htim2) != HAL_OK) - 8001506: 4818 ldr r0, [pc, #96] @ (8001568 ) - 8001508: f004 f904 bl 8005714 - 800150c: 4603 mov r3, r0 - 800150e: 2b00 cmp r3, #0 - 8001510: d001 beq.n 8001516 - { - Error_Handler(); - 8001512: f7ff fea9 bl 8001268 - } - sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; - 8001516: 2300 movs r3, #0 - 8001518: 623b str r3, [r7, #32] - sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; - 800151a: 2300 movs r3, #0 - 800151c: 627b str r3, [r7, #36] @ 0x24 - if (HAL_TIMEx_MasterConfigSynchronization(&htim2, &sMasterConfig) != HAL_OK) - 800151e: f107 0320 add.w r3, r7, #32 - 8001522: 4619 mov r1, r3 - 8001524: 4810 ldr r0, [pc, #64] @ (8001568 ) - 8001526: f004 ff33 bl 8006390 - 800152a: 4603 mov r3, r0 - 800152c: 2b00 cmp r3, #0 - 800152e: d001 beq.n 8001534 - { - Error_Handler(); - 8001530: f7ff fe9a bl 8001268 - } - sConfigOC.OCMode = TIM_OCMODE_FORCED_ACTIVE; - 8001534: 2350 movs r3, #80 @ 0x50 - 8001536: 607b str r3, [r7, #4] - sConfigOC.Pulse = 0; - 8001538: 2300 movs r3, #0 - 800153a: 60bb str r3, [r7, #8] - sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; - 800153c: 2300 movs r3, #0 - 800153e: 60fb str r3, [r7, #12] - sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; - 8001540: 2300 movs r3, #0 - 8001542: 617b str r3, [r7, #20] - if (HAL_TIM_OC_ConfigChannel(&htim2, &sConfigOC, TIM_CHANNEL_1) != HAL_OK) - 8001544: 1d3b adds r3, r7, #4 - 8001546: 2200 movs r2, #0 - 8001548: 4619 mov r1, r3 - 800154a: 4807 ldr r0, [pc, #28] @ (8001568 ) - 800154c: f004 fb86 bl 8005c5c - 8001550: 4603 mov r3, r0 - 8001552: 2b00 cmp r3, #0 - 8001554: d001 beq.n 800155a - { - Error_Handler(); - 8001556: f7ff fe87 bl 8001268 - } - /* USER CODE BEGIN TIM2_Init 2 */ + 80014f0: 619a str r2, [r3, #24] + 80014f2: 2301 movs r3, #1 + 80014f4: 60fb str r3, [r7, #12] + 80014f6: 2300 movs r3, #0 + 80014f8: 613b str r3, [r7, #16] + 80014fa: 2301 movs r3, #1 + 80014fc: 617b str r3, [r7, #20] + 80014fe: 2300 movs r3, #0 + 8001500: 61bb str r3, [r7, #24] + 8001502: 2300 movs r3, #0 + 8001504: 61fb str r3, [r7, #28] + 8001506: 2300 movs r3, #0 + 8001508: 623b str r3, [r7, #32] + 800150a: 2301 movs r3, #1 + 800150c: 627b str r3, [r7, #36] @ 0x24 + 800150e: 2300 movs r3, #0 + 8001510: 62bb str r3, [r7, #40] @ 0x28 + 8001512: 2300 movs r3, #0 + 8001514: 62fb str r3, [r7, #44] @ 0x2c + 8001516: f107 030c add.w r3, r7, #12 + 800151a: 4619 mov r1, r3 + 800151c: 480c ldr r0, [pc, #48] @ (8001550 ) + 800151e: f004 f8c7 bl 80056b0 + 8001522: 4603 mov r3, r0 + 8001524: 2b00 cmp r3, #0 + 8001526: d001 beq.n 800152c + 8001528: f7ff fe40 bl 80011ac + 800152c: 2300 movs r3, #0 + 800152e: 607b str r3, [r7, #4] + 8001530: 2300 movs r3, #0 + 8001532: 60bb str r3, [r7, #8] + 8001534: 1d3b adds r3, r7, #4 + 8001536: 4619 mov r1, r3 + 8001538: 4805 ldr r0, [pc, #20] @ (8001550 ) + 800153a: f004 fd87 bl 800604c + 800153e: 4603 mov r3, r0 + 8001540: 2b00 cmp r3, #0 + 8001542: d001 beq.n 8001548 + 8001544: f7ff fe32 bl 80011ac + 8001548: bf00 nop + 800154a: 3730 adds r7, #48 @ 0x30 + 800154c: 46bd mov sp, r7 + 800154e: bd80 pop {r7, pc} + 8001550: 20000964 .word 0x20000964 + 8001554: 40000400 .word 0x40000400 - /* USER CODE END TIM2_Init 2 */ - HAL_TIM_MspPostInit(&htim2); - 800155a: 4803 ldr r0, [pc, #12] @ (8001568 ) - 800155c: f000 f8c2 bl 80016e4 +08001558 : + 8001558: b480 push {r7} + 800155a: b085 sub sp, #20 + 800155c: af00 add r7, sp, #0 + 800155e: 6078 str r0, [r7, #4] + 8001560: 687b ldr r3, [r7, #4] + 8001562: 681b ldr r3, [r3, #0] + 8001564: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8001568: d10d bne.n 8001586 + 800156a: 2300 movs r3, #0 + 800156c: 60fb str r3, [r7, #12] + 800156e: 4b09 ldr r3, [pc, #36] @ (8001594 ) + 8001570: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001572: 4a08 ldr r2, [pc, #32] @ (8001594 ) + 8001574: f043 0301 orr.w r3, r3, #1 + 8001578: 6413 str r3, [r2, #64] @ 0x40 + 800157a: 4b06 ldr r3, [pc, #24] @ (8001594 ) + 800157c: 6c1b ldr r3, [r3, #64] @ 0x40 + 800157e: f003 0301 and.w r3, r3, #1 + 8001582: 60fb str r3, [r7, #12] + 8001584: 68fb ldr r3, [r7, #12] + 8001586: bf00 nop + 8001588: 3714 adds r7, #20 + 800158a: 46bd mov sp, r7 + 800158c: f85d 7b04 ldr.w r7, [sp], #4 + 8001590: 4770 bx lr + 8001592: bf00 nop + 8001594: 40023800 .word 0x40023800 -} - 8001560: bf00 nop - 8001562: 3728 adds r7, #40 @ 0x28 - 8001564: 46bd mov sp, r7 - 8001566: bd80 pop {r7, pc} - 8001568: 20000970 .word 0x20000970 - -0800156c : -/* TIM3 init function */ -void MX_TIM3_Init(void) -{ - 800156c: b580 push {r7, lr} - 800156e: b08c sub sp, #48 @ 0x30 - 8001570: af00 add r7, sp, #0 - - /* USER CODE BEGIN TIM3_Init 0 */ - - /* USER CODE END TIM3_Init 0 */ - - TIM_Encoder_InitTypeDef sConfig = {0}; - 8001572: f107 030c add.w r3, r7, #12 - 8001576: 2224 movs r2, #36 @ 0x24 - 8001578: 2100 movs r1, #0 - 800157a: 4618 mov r0, r3 - 800157c: f009 fef8 bl 800b370 - TIM_MasterConfigTypeDef sMasterConfig = {0}; - 8001580: 1d3b adds r3, r7, #4 - 8001582: 2200 movs r2, #0 - 8001584: 601a str r2, [r3, #0] - 8001586: 605a str r2, [r3, #4] - - /* USER CODE BEGIN TIM3_Init 1 */ - - /* USER CODE END TIM3_Init 1 */ - htim3.Instance = TIM3; - 8001588: 4b20 ldr r3, [pc, #128] @ (800160c ) - 800158a: 4a21 ldr r2, [pc, #132] @ (8001610 ) - 800158c: 601a str r2, [r3, #0] - htim3.Init.Prescaler = 0; - 800158e: 4b1f ldr r3, [pc, #124] @ (800160c ) - 8001590: 2200 movs r2, #0 - 8001592: 605a str r2, [r3, #4] - htim3.Init.CounterMode = TIM_COUNTERMODE_UP; - 8001594: 4b1d ldr r3, [pc, #116] @ (800160c ) - 8001596: 2200 movs r2, #0 - 8001598: 609a str r2, [r3, #8] - htim3.Init.Period = 65535; - 800159a: 4b1c ldr r3, [pc, #112] @ (800160c ) - 800159c: f64f 72ff movw r2, #65535 @ 0xffff - 80015a0: 60da str r2, [r3, #12] - htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; - 80015a2: 4b1a ldr r3, [pc, #104] @ (800160c ) +08001598 : + 8001598: b580 push {r7, lr} + 800159a: b08a sub sp, #40 @ 0x28 + 800159c: af00 add r7, sp, #0 + 800159e: 6078 str r0, [r7, #4] + 80015a0: f107 0314 add.w r3, r7, #20 80015a4: 2200 movs r2, #0 - 80015a6: 611a str r2, [r3, #16] - htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; - 80015a8: 4b18 ldr r3, [pc, #96] @ (800160c ) - 80015aa: 2200 movs r2, #0 - 80015ac: 619a str r2, [r3, #24] - sConfig.EncoderMode = TIM_ENCODERMODE_TI1; - 80015ae: 2301 movs r3, #1 - 80015b0: 60fb str r3, [r7, #12] - sConfig.IC1Polarity = TIM_ICPOLARITY_RISING; - 80015b2: 2300 movs r3, #0 - 80015b4: 613b str r3, [r7, #16] - sConfig.IC1Selection = TIM_ICSELECTION_DIRECTTI; - 80015b6: 2301 movs r3, #1 - 80015b8: 617b str r3, [r7, #20] - sConfig.IC1Prescaler = TIM_ICPSC_DIV1; + 80015a6: 601a str r2, [r3, #0] + 80015a8: 605a str r2, [r3, #4] + 80015aa: 609a str r2, [r3, #8] + 80015ac: 60da str r2, [r3, #12] + 80015ae: 611a str r2, [r3, #16] + 80015b0: 687b ldr r3, [r7, #4] + 80015b2: 681b ldr r3, [r3, #0] + 80015b4: 4a19 ldr r2, [pc, #100] @ (800161c ) + 80015b6: 4293 cmp r3, r2 + 80015b8: d12b bne.n 8001612 80015ba: 2300 movs r3, #0 - 80015bc: 61bb str r3, [r7, #24] - sConfig.IC1Filter = 0; - 80015be: 2300 movs r3, #0 - 80015c0: 61fb str r3, [r7, #28] - sConfig.IC2Polarity = TIM_ICPOLARITY_RISING; - 80015c2: 2300 movs r3, #0 - 80015c4: 623b str r3, [r7, #32] - sConfig.IC2Selection = TIM_ICSELECTION_DIRECTTI; - 80015c6: 2301 movs r3, #1 - 80015c8: 627b str r3, [r7, #36] @ 0x24 - sConfig.IC2Prescaler = TIM_ICPSC_DIV1; - 80015ca: 2300 movs r3, #0 - 80015cc: 62bb str r3, [r7, #40] @ 0x28 - sConfig.IC2Filter = 0; - 80015ce: 2300 movs r3, #0 - 80015d0: 62fb str r3, [r7, #44] @ 0x2c - if (HAL_TIM_Encoder_Init(&htim3, &sConfig) != HAL_OK) - 80015d2: f107 030c add.w r3, r7, #12 - 80015d6: 4619 mov r1, r3 - 80015d8: 480c ldr r0, [pc, #48] @ (800160c ) - 80015da: f004 fa0b bl 80059f4 - 80015de: 4603 mov r3, r0 - 80015e0: 2b00 cmp r3, #0 - 80015e2: d001 beq.n 80015e8 - { - Error_Handler(); - 80015e4: f7ff fe40 bl 8001268 - } - sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; - 80015e8: 2300 movs r3, #0 - 80015ea: 607b str r3, [r7, #4] - sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; - 80015ec: 2300 movs r3, #0 - 80015ee: 60bb str r3, [r7, #8] - if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK) - 80015f0: 1d3b adds r3, r7, #4 - 80015f2: 4619 mov r1, r3 - 80015f4: 4805 ldr r0, [pc, #20] @ (800160c ) - 80015f6: f004 fecb bl 8006390 - 80015fa: 4603 mov r3, r0 - 80015fc: 2b00 cmp r3, #0 - 80015fe: d001 beq.n 8001604 - { - Error_Handler(); - 8001600: f7ff fe32 bl 8001268 - } - /* USER CODE BEGIN TIM3_Init 2 */ + 80015bc: 613b str r3, [r7, #16] + 80015be: 4b18 ldr r3, [pc, #96] @ (8001620 ) + 80015c0: 6c1b ldr r3, [r3, #64] @ 0x40 + 80015c2: 4a17 ldr r2, [pc, #92] @ (8001620 ) + 80015c4: f043 0302 orr.w r3, r3, #2 + 80015c8: 6413 str r3, [r2, #64] @ 0x40 + 80015ca: 4b15 ldr r3, [pc, #84] @ (8001620 ) + 80015cc: 6c1b ldr r3, [r3, #64] @ 0x40 + 80015ce: f003 0302 and.w r3, r3, #2 + 80015d2: 613b str r3, [r7, #16] + 80015d4: 693b ldr r3, [r7, #16] + 80015d6: 2300 movs r3, #0 + 80015d8: 60fb str r3, [r7, #12] + 80015da: 4b11 ldr r3, [pc, #68] @ (8001620 ) + 80015dc: 6b1b ldr r3, [r3, #48] @ 0x30 + 80015de: 4a10 ldr r2, [pc, #64] @ (8001620 ) + 80015e0: f043 0301 orr.w r3, r3, #1 + 80015e4: 6313 str r3, [r2, #48] @ 0x30 + 80015e6: 4b0e ldr r3, [pc, #56] @ (8001620 ) + 80015e8: 6b1b ldr r3, [r3, #48] @ 0x30 + 80015ea: f003 0301 and.w r3, r3, #1 + 80015ee: 60fb str r3, [r7, #12] + 80015f0: 68fb ldr r3, [r7, #12] + 80015f2: 23c0 movs r3, #192 @ 0xc0 + 80015f4: 617b str r3, [r7, #20] + 80015f6: 2302 movs r3, #2 + 80015f8: 61bb str r3, [r7, #24] + 80015fa: 2300 movs r3, #0 + 80015fc: 61fb str r3, [r7, #28] + 80015fe: 2300 movs r3, #0 + 8001600: 623b str r3, [r7, #32] + 8001602: 2302 movs r3, #2 + 8001604: 627b str r3, [r7, #36] @ 0x24 + 8001606: f107 0314 add.w r3, r7, #20 + 800160a: 4619 mov r1, r3 + 800160c: 4805 ldr r0, [pc, #20] @ (8001624 ) + 800160e: f001 f981 bl 8002914 + 8001612: bf00 nop + 8001614: 3728 adds r7, #40 @ 0x28 + 8001616: 46bd mov sp, r7 + 8001618: bd80 pop {r7, pc} + 800161a: bf00 nop + 800161c: 40000400 .word 0x40000400 + 8001620: 40023800 .word 0x40023800 + 8001624: 40020000 .word 0x40020000 - /* USER CODE END TIM3_Init 2 */ +08001628 : + 8001628: b580 push {r7, lr} + 800162a: b088 sub sp, #32 + 800162c: af00 add r7, sp, #0 + 800162e: 6078 str r0, [r7, #4] + 8001630: f107 030c add.w r3, r7, #12 + 8001634: 2200 movs r2, #0 + 8001636: 601a str r2, [r3, #0] + 8001638: 605a str r2, [r3, #4] + 800163a: 609a str r2, [r3, #8] + 800163c: 60da str r2, [r3, #12] + 800163e: 611a str r2, [r3, #16] + 8001640: 687b ldr r3, [r7, #4] + 8001642: 681b ldr r3, [r3, #0] + 8001644: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8001648: d11d bne.n 8001686 + 800164a: 2300 movs r3, #0 + 800164c: 60bb str r3, [r7, #8] + 800164e: 4b10 ldr r3, [pc, #64] @ (8001690 ) + 8001650: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001652: 4a0f ldr r2, [pc, #60] @ (8001690 ) + 8001654: f043 0301 orr.w r3, r3, #1 + 8001658: 6313 str r3, [r2, #48] @ 0x30 + 800165a: 4b0d ldr r3, [pc, #52] @ (8001690 ) + 800165c: 6b1b ldr r3, [r3, #48] @ 0x30 + 800165e: f003 0301 and.w r3, r3, #1 + 8001662: 60bb str r3, [r7, #8] + 8001664: 68bb ldr r3, [r7, #8] + 8001666: 2320 movs r3, #32 + 8001668: 60fb str r3, [r7, #12] + 800166a: 2302 movs r3, #2 + 800166c: 613b str r3, [r7, #16] + 800166e: 2300 movs r3, #0 + 8001670: 617b str r3, [r7, #20] + 8001672: 2300 movs r3, #0 + 8001674: 61bb str r3, [r7, #24] + 8001676: 2301 movs r3, #1 + 8001678: 61fb str r3, [r7, #28] + 800167a: f107 030c add.w r3, r7, #12 + 800167e: 4619 mov r1, r3 + 8001680: 4804 ldr r0, [pc, #16] @ (8001694 ) + 8001682: f001 f947 bl 8002914 + 8001686: bf00 nop + 8001688: 3720 adds r7, #32 + 800168a: 46bd mov sp, r7 + 800168c: bd80 pop {r7, pc} + 800168e: bf00 nop + 8001690: 40023800 .word 0x40023800 + 8001694: 40020000 .word 0x40020000 -} - 8001604: bf00 nop - 8001606: 3730 adds r7, #48 @ 0x30 - 8001608: 46bd mov sp, r7 - 800160a: bd80 pop {r7, pc} - 800160c: 200009b8 .word 0x200009b8 - 8001610: 40000400 .word 0x40000400 +08001698 : + 8001698: b580 push {r7, lr} + 800169a: af00 add r7, sp, #0 + 800169c: 4b11 ldr r3, [pc, #68] @ (80016e4 ) + 800169e: 4a12 ldr r2, [pc, #72] @ (80016e8 ) + 80016a0: 601a str r2, [r3, #0] + 80016a2: 4b10 ldr r3, [pc, #64] @ (80016e4 ) + 80016a4: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 80016a8: 605a str r2, [r3, #4] + 80016aa: 4b0e ldr r3, [pc, #56] @ (80016e4 ) + 80016ac: 2200 movs r2, #0 + 80016ae: 609a str r2, [r3, #8] + 80016b0: 4b0c ldr r3, [pc, #48] @ (80016e4 ) + 80016b2: 2200 movs r2, #0 + 80016b4: 60da str r2, [r3, #12] + 80016b6: 4b0b ldr r3, [pc, #44] @ (80016e4 ) + 80016b8: 2200 movs r2, #0 + 80016ba: 611a str r2, [r3, #16] + 80016bc: 4b09 ldr r3, [pc, #36] @ (80016e4 ) + 80016be: 220c movs r2, #12 + 80016c0: 615a str r2, [r3, #20] + 80016c2: 4b08 ldr r3, [pc, #32] @ (80016e4 ) + 80016c4: 2200 movs r2, #0 + 80016c6: 619a str r2, [r3, #24] + 80016c8: 4b06 ldr r3, [pc, #24] @ (80016e4 ) + 80016ca: 2200 movs r2, #0 + 80016cc: 61da str r2, [r3, #28] + 80016ce: 4805 ldr r0, [pc, #20] @ (80016e4 ) + 80016d0: f004 fd38 bl 8006144 + 80016d4: 4603 mov r3, r0 + 80016d6: 2b00 cmp r3, #0 + 80016d8: d001 beq.n 80016de + 80016da: f7ff fd67 bl 80011ac + 80016de: bf00 nop + 80016e0: bd80 pop {r7, pc} + 80016e2: bf00 nop + 80016e4: 200009ac .word 0x200009ac + 80016e8: 40004c00 .word 0x40004c00 -08001614 : +080016ec : + 80016ec: b580 push {r7, lr} + 80016ee: af00 add r7, sp, #0 + 80016f0: 4b11 ldr r3, [pc, #68] @ (8001738 ) + 80016f2: 4a12 ldr r2, [pc, #72] @ (800173c ) + 80016f4: 601a str r2, [r3, #0] + 80016f6: 4b10 ldr r3, [pc, #64] @ (8001738 ) + 80016f8: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 80016fc: 605a str r2, [r3, #4] + 80016fe: 4b0e ldr r3, [pc, #56] @ (8001738 ) + 8001700: 2200 movs r2, #0 + 8001702: 609a str r2, [r3, #8] + 8001704: 4b0c ldr r3, [pc, #48] @ (8001738 ) + 8001706: 2200 movs r2, #0 + 8001708: 60da str r2, [r3, #12] + 800170a: 4b0b ldr r3, [pc, #44] @ (8001738 ) + 800170c: 2200 movs r2, #0 + 800170e: 611a str r2, [r3, #16] + 8001710: 4b09 ldr r3, [pc, #36] @ (8001738 ) + 8001712: 220c movs r2, #12 + 8001714: 615a str r2, [r3, #20] + 8001716: 4b08 ldr r3, [pc, #32] @ (8001738 ) + 8001718: 2200 movs r2, #0 + 800171a: 619a str r2, [r3, #24] + 800171c: 4b06 ldr r3, [pc, #24] @ (8001738 ) + 800171e: 2200 movs r2, #0 + 8001720: 61da str r2, [r3, #28] + 8001722: 4805 ldr r0, [pc, #20] @ (8001738 ) + 8001724: f004 fd0e bl 8006144 + 8001728: 4603 mov r3, r0 + 800172a: 2b00 cmp r3, #0 + 800172c: d001 beq.n 8001732 + 800172e: f7ff fd3d bl 80011ac + 8001732: bf00 nop + 8001734: bd80 pop {r7, pc} + 8001736: bf00 nop + 8001738: 200009f4 .word 0x200009f4 + 800173c: 40005000 .word 0x40005000 -void HAL_TIM_OC_MspInit(TIM_HandleTypeDef* tim_ocHandle) -{ - 8001614: b480 push {r7} - 8001616: b085 sub sp, #20 - 8001618: af00 add r7, sp, #0 - 800161a: 6078 str r0, [r7, #4] +08001740 : + 8001740: b580 push {r7, lr} + 8001742: af00 add r7, sp, #0 + 8001744: 4b11 ldr r3, [pc, #68] @ (800178c ) + 8001746: 4a12 ldr r2, [pc, #72] @ (8001790 ) + 8001748: 601a str r2, [r3, #0] + 800174a: 4b10 ldr r3, [pc, #64] @ (800178c ) + 800174c: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 8001750: 605a str r2, [r3, #4] + 8001752: 4b0e ldr r3, [pc, #56] @ (800178c ) + 8001754: 2200 movs r2, #0 + 8001756: 609a str r2, [r3, #8] + 8001758: 4b0c ldr r3, [pc, #48] @ (800178c ) + 800175a: 2200 movs r2, #0 + 800175c: 60da str r2, [r3, #12] + 800175e: 4b0b ldr r3, [pc, #44] @ (800178c ) + 8001760: 2200 movs r2, #0 + 8001762: 611a str r2, [r3, #16] + 8001764: 4b09 ldr r3, [pc, #36] @ (800178c ) + 8001766: 220c movs r2, #12 + 8001768: 615a str r2, [r3, #20] + 800176a: 4b08 ldr r3, [pc, #32] @ (800178c ) + 800176c: 2200 movs r2, #0 + 800176e: 619a str r2, [r3, #24] + 8001770: 4b06 ldr r3, [pc, #24] @ (800178c ) + 8001772: 2200 movs r2, #0 + 8001774: 61da str r2, [r3, #28] + 8001776: 4805 ldr r0, [pc, #20] @ (800178c ) + 8001778: f004 fce4 bl 8006144 + 800177c: 4603 mov r3, r0 + 800177e: 2b00 cmp r3, #0 + 8001780: d001 beq.n 8001786 + 8001782: f7ff fd13 bl 80011ac + 8001786: bf00 nop + 8001788: bd80 pop {r7, pc} + 800178a: bf00 nop + 800178c: 20000a3c .word 0x20000a3c + 8001790: 40011000 .word 0x40011000 - if(tim_ocHandle->Instance==TIM2) - 800161c: 687b ldr r3, [r7, #4] - 800161e: 681b ldr r3, [r3, #0] - 8001620: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8001624: d10d bne.n 8001642 - { - /* USER CODE BEGIN TIM2_MspInit 0 */ +08001794 : + 8001794: b580 push {r7, lr} + 8001796: af00 add r7, sp, #0 + 8001798: 4b11 ldr r3, [pc, #68] @ (80017e0 ) + 800179a: 4a12 ldr r2, [pc, #72] @ (80017e4 ) + 800179c: 601a str r2, [r3, #0] + 800179e: 4b10 ldr r3, [pc, #64] @ (80017e0 ) + 80017a0: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 80017a4: 605a str r2, [r3, #4] + 80017a6: 4b0e ldr r3, [pc, #56] @ (80017e0 ) + 80017a8: 2200 movs r2, #0 + 80017aa: 609a str r2, [r3, #8] + 80017ac: 4b0c ldr r3, [pc, #48] @ (80017e0 ) + 80017ae: 2200 movs r2, #0 + 80017b0: 60da str r2, [r3, #12] + 80017b2: 4b0b ldr r3, [pc, #44] @ (80017e0 ) + 80017b4: 2200 movs r2, #0 + 80017b6: 611a str r2, [r3, #16] + 80017b8: 4b09 ldr r3, [pc, #36] @ (80017e0 ) + 80017ba: 220c movs r2, #12 + 80017bc: 615a str r2, [r3, #20] + 80017be: 4b08 ldr r3, [pc, #32] @ (80017e0 ) + 80017c0: 2200 movs r2, #0 + 80017c2: 619a str r2, [r3, #24] + 80017c4: 4b06 ldr r3, [pc, #24] @ (80017e0 ) + 80017c6: 2200 movs r2, #0 + 80017c8: 61da str r2, [r3, #28] + 80017ca: 4805 ldr r0, [pc, #20] @ (80017e0 ) + 80017cc: f004 fcba bl 8006144 + 80017d0: 4603 mov r3, r0 + 80017d2: 2b00 cmp r3, #0 + 80017d4: d001 beq.n 80017da + 80017d6: f7ff fce9 bl 80011ac + 80017da: bf00 nop + 80017dc: bd80 pop {r7, pc} + 80017de: bf00 nop + 80017e0: 20000a84 .word 0x20000a84 + 80017e4: 40004400 .word 0x40004400 - /* USER CODE END TIM2_MspInit 0 */ - /* TIM2 clock enable */ - __HAL_RCC_TIM2_CLK_ENABLE(); - 8001626: 2300 movs r3, #0 - 8001628: 60fb str r3, [r7, #12] - 800162a: 4b09 ldr r3, [pc, #36] @ (8001650 ) - 800162c: 6c1b ldr r3, [r3, #64] @ 0x40 - 800162e: 4a08 ldr r2, [pc, #32] @ (8001650 ) - 8001630: f043 0301 orr.w r3, r3, #1 - 8001634: 6413 str r3, [r2, #64] @ 0x40 - 8001636: 4b06 ldr r3, [pc, #24] @ (8001650 ) - 8001638: 6c1b ldr r3, [r3, #64] @ 0x40 - 800163a: f003 0301 and.w r3, r3, #1 - 800163e: 60fb str r3, [r7, #12] - 8001640: 68fb ldr r3, [r7, #12] - /* USER CODE BEGIN TIM2_MspInit 1 */ - - /* USER CODE END TIM2_MspInit 1 */ - } -} - 8001642: bf00 nop - 8001644: 3714 adds r7, #20 - 8001646: 46bd mov sp, r7 - 8001648: f85d 7b04 ldr.w r7, [sp], #4 - 800164c: 4770 bx lr - 800164e: bf00 nop - 8001650: 40023800 .word 0x40023800 - -08001654 : - -void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef* tim_encoderHandle) -{ - 8001654: b580 push {r7, lr} - 8001656: b08a sub sp, #40 @ 0x28 - 8001658: af00 add r7, sp, #0 - 800165a: 6078 str r0, [r7, #4] - - GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800165c: f107 0314 add.w r3, r7, #20 - 8001660: 2200 movs r2, #0 - 8001662: 601a str r2, [r3, #0] - 8001664: 605a str r2, [r3, #4] - 8001666: 609a str r2, [r3, #8] - 8001668: 60da str r2, [r3, #12] - 800166a: 611a str r2, [r3, #16] - if(tim_encoderHandle->Instance==TIM3) - 800166c: 687b ldr r3, [r7, #4] - 800166e: 681b ldr r3, [r3, #0] - 8001670: 4a19 ldr r2, [pc, #100] @ (80016d8 ) - 8001672: 4293 cmp r3, r2 - 8001674: d12b bne.n 80016ce - { - /* USER CODE BEGIN TIM3_MspInit 0 */ - - /* USER CODE END TIM3_MspInit 0 */ - /* TIM3 clock enable */ - __HAL_RCC_TIM3_CLK_ENABLE(); - 8001676: 2300 movs r3, #0 - 8001678: 613b str r3, [r7, #16] - 800167a: 4b18 ldr r3, [pc, #96] @ (80016dc ) - 800167c: 6c1b ldr r3, [r3, #64] @ 0x40 - 800167e: 4a17 ldr r2, [pc, #92] @ (80016dc ) - 8001680: f043 0302 orr.w r3, r3, #2 - 8001684: 6413 str r3, [r2, #64] @ 0x40 - 8001686: 4b15 ldr r3, [pc, #84] @ (80016dc ) - 8001688: 6c1b ldr r3, [r3, #64] @ 0x40 - 800168a: f003 0302 and.w r3, r3, #2 - 800168e: 613b str r3, [r7, #16] - 8001690: 693b ldr r3, [r7, #16] - - __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001692: 2300 movs r3, #0 - 8001694: 60fb str r3, [r7, #12] - 8001696: 4b11 ldr r3, [pc, #68] @ (80016dc ) - 8001698: 6b1b ldr r3, [r3, #48] @ 0x30 - 800169a: 4a10 ldr r2, [pc, #64] @ (80016dc ) - 800169c: f043 0301 orr.w r3, r3, #1 - 80016a0: 6313 str r3, [r2, #48] @ 0x30 - 80016a2: 4b0e ldr r3, [pc, #56] @ (80016dc ) - 80016a4: 6b1b ldr r3, [r3, #48] @ 0x30 - 80016a6: f003 0301 and.w r3, r3, #1 - 80016aa: 60fb str r3, [r7, #12] - 80016ac: 68fb ldr r3, [r7, #12] - /**TIM3 GPIO Configuration - PA6 ------> TIM3_CH1 - PA7 ------> TIM3_CH2 - */ - GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7; - 80016ae: 23c0 movs r3, #192 @ 0xc0 - 80016b0: 617b str r3, [r7, #20] - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80016b2: 2302 movs r3, #2 - 80016b4: 61bb str r3, [r7, #24] - GPIO_InitStruct.Pull = GPIO_NOPULL; - 80016b6: 2300 movs r3, #0 - 80016b8: 61fb str r3, [r7, #28] - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 80016ba: 2300 movs r3, #0 - 80016bc: 623b str r3, [r7, #32] - GPIO_InitStruct.Alternate = GPIO_AF2_TIM3; - 80016be: 2302 movs r3, #2 - 80016c0: 627b str r3, [r7, #36] @ 0x24 - HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 80016c2: f107 0314 add.w r3, r7, #20 - 80016c6: 4619 mov r1, r3 - 80016c8: 4805 ldr r0, [pc, #20] @ (80016e0 ) - 80016ca: f001 f981 bl 80029d0 - - /* USER CODE BEGIN TIM3_MspInit 1 */ - - /* USER CODE END TIM3_MspInit 1 */ - } -} - 80016ce: bf00 nop - 80016d0: 3728 adds r7, #40 @ 0x28 - 80016d2: 46bd mov sp, r7 - 80016d4: bd80 pop {r7, pc} - 80016d6: bf00 nop - 80016d8: 40000400 .word 0x40000400 - 80016dc: 40023800 .word 0x40023800 - 80016e0: 40020000 .word 0x40020000 - -080016e4 : -void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle) -{ - 80016e4: b580 push {r7, lr} - 80016e6: b088 sub sp, #32 - 80016e8: af00 add r7, sp, #0 - 80016ea: 6078 str r0, [r7, #4] - - GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80016ec: f107 030c add.w r3, r7, #12 - 80016f0: 2200 movs r2, #0 - 80016f2: 601a str r2, [r3, #0] - 80016f4: 605a str r2, [r3, #4] - 80016f6: 609a str r2, [r3, #8] - 80016f8: 60da str r2, [r3, #12] - 80016fa: 611a str r2, [r3, #16] - if(timHandle->Instance==TIM2) - 80016fc: 687b ldr r3, [r7, #4] - 80016fe: 681b ldr r3, [r3, #0] - 8001700: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8001704: d11d bne.n 8001742 - { - /* USER CODE BEGIN TIM2_MspPostInit 0 */ - - /* USER CODE END TIM2_MspPostInit 0 */ - - __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001706: 2300 movs r3, #0 - 8001708: 60bb str r3, [r7, #8] - 800170a: 4b10 ldr r3, [pc, #64] @ (800174c ) - 800170c: 6b1b ldr r3, [r3, #48] @ 0x30 - 800170e: 4a0f ldr r2, [pc, #60] @ (800174c ) - 8001710: f043 0301 orr.w r3, r3, #1 - 8001714: 6313 str r3, [r2, #48] @ 0x30 - 8001716: 4b0d ldr r3, [pc, #52] @ (800174c ) - 8001718: 6b1b ldr r3, [r3, #48] @ 0x30 - 800171a: f003 0301 and.w r3, r3, #1 - 800171e: 60bb str r3, [r7, #8] - 8001720: 68bb ldr r3, [r7, #8] - /**TIM2 GPIO Configuration - PA5 ------> TIM2_CH1 - */ - GPIO_InitStruct.Pin = GPIO_PIN_5; - 8001722: 2320 movs r3, #32 - 8001724: 60fb str r3, [r7, #12] - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001726: 2302 movs r3, #2 - 8001728: 613b str r3, [r7, #16] - GPIO_InitStruct.Pull = GPIO_NOPULL; - 800172a: 2300 movs r3, #0 - 800172c: 617b str r3, [r7, #20] - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 800172e: 2300 movs r3, #0 - 8001730: 61bb str r3, [r7, #24] - GPIO_InitStruct.Alternate = GPIO_AF1_TIM2; - 8001732: 2301 movs r3, #1 - 8001734: 61fb str r3, [r7, #28] - HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8001736: f107 030c add.w r3, r7, #12 - 800173a: 4619 mov r1, r3 - 800173c: 4804 ldr r0, [pc, #16] @ (8001750 ) - 800173e: f001 f947 bl 80029d0 - /* USER CODE BEGIN TIM2_MspPostInit 1 */ - - /* USER CODE END TIM2_MspPostInit 1 */ - } - -} - 8001742: bf00 nop - 8001744: 3720 adds r7, #32 - 8001746: 46bd mov sp, r7 - 8001748: bd80 pop {r7, pc} - 800174a: bf00 nop - 800174c: 40023800 .word 0x40023800 - 8001750: 40020000 .word 0x40020000 - -08001754 : -DMA_HandleTypeDef hdma_usart2_rx; -DMA_HandleTypeDef hdma_usart2_tx; - -/* UART4 init function */ -void MX_UART4_Init(void) -{ - 8001754: b580 push {r7, lr} - 8001756: 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; - 8001758: 4b11 ldr r3, [pc, #68] @ (80017a0 ) - 800175a: 4a12 ldr r2, [pc, #72] @ (80017a4 ) - 800175c: 601a str r2, [r3, #0] - huart4.Init.BaudRate = 115200; - 800175e: 4b10 ldr r3, [pc, #64] @ (80017a0 ) - 8001760: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 8001764: 605a str r2, [r3, #4] - huart4.Init.WordLength = UART_WORDLENGTH_8B; - 8001766: 4b0e ldr r3, [pc, #56] @ (80017a0 ) - 8001768: 2200 movs r2, #0 - 800176a: 609a str r2, [r3, #8] - huart4.Init.StopBits = UART_STOPBITS_1; - 800176c: 4b0c ldr r3, [pc, #48] @ (80017a0 ) - 800176e: 2200 movs r2, #0 - 8001770: 60da str r2, [r3, #12] - huart4.Init.Parity = UART_PARITY_NONE; - 8001772: 4b0b ldr r3, [pc, #44] @ (80017a0 ) - 8001774: 2200 movs r2, #0 - 8001776: 611a str r2, [r3, #16] - huart4.Init.Mode = UART_MODE_TX_RX; - 8001778: 4b09 ldr r3, [pc, #36] @ (80017a0 ) - 800177a: 220c movs r2, #12 - 800177c: 615a str r2, [r3, #20] - huart4.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 800177e: 4b08 ldr r3, [pc, #32] @ (80017a0 ) - 8001780: 2200 movs r2, #0 - 8001782: 619a str r2, [r3, #24] - huart4.Init.OverSampling = UART_OVERSAMPLING_16; - 8001784: 4b06 ldr r3, [pc, #24] @ (80017a0 ) - 8001786: 2200 movs r2, #0 - 8001788: 61da str r2, [r3, #28] - if (HAL_UART_Init(&huart4) != HAL_OK) - 800178a: 4805 ldr r0, [pc, #20] @ (80017a0 ) - 800178c: f004 fe7c bl 8006488 - 8001790: 4603 mov r3, r0 - 8001792: 2b00 cmp r3, #0 - 8001794: d001 beq.n 800179a - { - Error_Handler(); - 8001796: f7ff fd67 bl 8001268 - } - /* USER CODE BEGIN UART4_Init 2 */ - - /* USER CODE END UART4_Init 2 */ - -} - 800179a: bf00 nop - 800179c: bd80 pop {r7, pc} - 800179e: bf00 nop - 80017a0: 20000a00 .word 0x20000a00 - 80017a4: 40004c00 .word 0x40004c00 - -080017a8 : -/* UART5 init function */ -void MX_UART5_Init(void) -{ - 80017a8: b580 push {r7, lr} - 80017aa: 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; - 80017ac: 4b11 ldr r3, [pc, #68] @ (80017f4 ) - 80017ae: 4a12 ldr r2, [pc, #72] @ (80017f8 ) - 80017b0: 601a str r2, [r3, #0] - huart5.Init.BaudRate = 115200; - 80017b2: 4b10 ldr r3, [pc, #64] @ (80017f4 ) - 80017b4: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 80017b8: 605a str r2, [r3, #4] - huart5.Init.WordLength = UART_WORDLENGTH_8B; - 80017ba: 4b0e ldr r3, [pc, #56] @ (80017f4 ) - 80017bc: 2200 movs r2, #0 - 80017be: 609a str r2, [r3, #8] - huart5.Init.StopBits = UART_STOPBITS_1; - 80017c0: 4b0c ldr r3, [pc, #48] @ (80017f4 ) - 80017c2: 2200 movs r2, #0 - 80017c4: 60da str r2, [r3, #12] - huart5.Init.Parity = UART_PARITY_NONE; - 80017c6: 4b0b ldr r3, [pc, #44] @ (80017f4 ) - 80017c8: 2200 movs r2, #0 - 80017ca: 611a str r2, [r3, #16] - huart5.Init.Mode = UART_MODE_TX_RX; - 80017cc: 4b09 ldr r3, [pc, #36] @ (80017f4 ) - 80017ce: 220c movs r2, #12 - 80017d0: 615a str r2, [r3, #20] - huart5.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 80017d2: 4b08 ldr r3, [pc, #32] @ (80017f4 ) - 80017d4: 2200 movs r2, #0 - 80017d6: 619a str r2, [r3, #24] - huart5.Init.OverSampling = UART_OVERSAMPLING_16; - 80017d8: 4b06 ldr r3, [pc, #24] @ (80017f4 ) - 80017da: 2200 movs r2, #0 - 80017dc: 61da str r2, [r3, #28] - if (HAL_UART_Init(&huart5) != HAL_OK) - 80017de: 4805 ldr r0, [pc, #20] @ (80017f4 ) - 80017e0: f004 fe52 bl 8006488 - 80017e4: 4603 mov r3, r0 - 80017e6: 2b00 cmp r3, #0 - 80017e8: d001 beq.n 80017ee - { - Error_Handler(); - 80017ea: f7ff fd3d bl 8001268 - } - /* USER CODE BEGIN UART5_Init 2 */ - - /* USER CODE END UART5_Init 2 */ - -} - 80017ee: bf00 nop - 80017f0: bd80 pop {r7, pc} - 80017f2: bf00 nop - 80017f4: 20000a48 .word 0x20000a48 - 80017f8: 40005000 .word 0x40005000 - -080017fc : -/* USART1 init function */ - -void MX_USART1_UART_Init(void) -{ - 80017fc: b580 push {r7, lr} - 80017fe: 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; - 8001800: 4b11 ldr r3, [pc, #68] @ (8001848 ) - 8001802: 4a12 ldr r2, [pc, #72] @ (800184c ) - 8001804: 601a str r2, [r3, #0] - huart1.Init.BaudRate = 115200; - 8001806: 4b10 ldr r3, [pc, #64] @ (8001848 ) - 8001808: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 800180c: 605a str r2, [r3, #4] - huart1.Init.WordLength = UART_WORDLENGTH_8B; - 800180e: 4b0e ldr r3, [pc, #56] @ (8001848 ) - 8001810: 2200 movs r2, #0 - 8001812: 609a str r2, [r3, #8] - huart1.Init.StopBits = UART_STOPBITS_1; - 8001814: 4b0c ldr r3, [pc, #48] @ (8001848 ) - 8001816: 2200 movs r2, #0 - 8001818: 60da str r2, [r3, #12] - huart1.Init.Parity = UART_PARITY_NONE; - 800181a: 4b0b ldr r3, [pc, #44] @ (8001848 ) - 800181c: 2200 movs r2, #0 - 800181e: 611a str r2, [r3, #16] - huart1.Init.Mode = UART_MODE_TX_RX; - 8001820: 4b09 ldr r3, [pc, #36] @ (8001848 ) - 8001822: 220c movs r2, #12 - 8001824: 615a str r2, [r3, #20] - huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 8001826: 4b08 ldr r3, [pc, #32] @ (8001848 ) - 8001828: 2200 movs r2, #0 - 800182a: 619a str r2, [r3, #24] - huart1.Init.OverSampling = UART_OVERSAMPLING_16; - 800182c: 4b06 ldr r3, [pc, #24] @ (8001848 ) - 800182e: 2200 movs r2, #0 - 8001830: 61da str r2, [r3, #28] - if (HAL_UART_Init(&huart1) != HAL_OK) - 8001832: 4805 ldr r0, [pc, #20] @ (8001848 ) - 8001834: f004 fe28 bl 8006488 - 8001838: 4603 mov r3, r0 - 800183a: 2b00 cmp r3, #0 - 800183c: d001 beq.n 8001842 - { - Error_Handler(); - 800183e: f7ff fd13 bl 8001268 - } - /* USER CODE BEGIN USART1_Init 2 */ - - /* USER CODE END USART1_Init 2 */ - -} - 8001842: bf00 nop - 8001844: bd80 pop {r7, pc} - 8001846: bf00 nop - 8001848: 20000a90 .word 0x20000a90 - 800184c: 40011000 .word 0x40011000 - -08001850 : -/* USART2 init function */ - -void MX_USART2_UART_Init(void) -{ - 8001850: b580 push {r7, lr} - 8001852: 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; - 8001854: 4b11 ldr r3, [pc, #68] @ (800189c ) - 8001856: 4a12 ldr r2, [pc, #72] @ (80018a0 ) - 8001858: 601a str r2, [r3, #0] - huart2.Init.BaudRate = 115200; - 800185a: 4b10 ldr r3, [pc, #64] @ (800189c ) - 800185c: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 8001860: 605a str r2, [r3, #4] - huart2.Init.WordLength = UART_WORDLENGTH_8B; - 8001862: 4b0e ldr r3, [pc, #56] @ (800189c ) - 8001864: 2200 movs r2, #0 - 8001866: 609a str r2, [r3, #8] - huart2.Init.StopBits = UART_STOPBITS_1; - 8001868: 4b0c ldr r3, [pc, #48] @ (800189c ) - 800186a: 2200 movs r2, #0 - 800186c: 60da str r2, [r3, #12] - huart2.Init.Parity = UART_PARITY_NONE; - 800186e: 4b0b ldr r3, [pc, #44] @ (800189c ) - 8001870: 2200 movs r2, #0 - 8001872: 611a str r2, [r3, #16] - huart2.Init.Mode = UART_MODE_TX_RX; - 8001874: 4b09 ldr r3, [pc, #36] @ (800189c ) - 8001876: 220c movs r2, #12 - 8001878: 615a str r2, [r3, #20] - huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 800187a: 4b08 ldr r3, [pc, #32] @ (800189c ) - 800187c: 2200 movs r2, #0 - 800187e: 619a str r2, [r3, #24] - huart2.Init.OverSampling = UART_OVERSAMPLING_16; - 8001880: 4b06 ldr r3, [pc, #24] @ (800189c ) - 8001882: 2200 movs r2, #0 - 8001884: 61da str r2, [r3, #28] - if (HAL_UART_Init(&huart2) != HAL_OK) - 8001886: 4805 ldr r0, [pc, #20] @ (800189c ) - 8001888: f004 fdfe bl 8006488 - 800188c: 4603 mov r3, r0 - 800188e: 2b00 cmp r3, #0 - 8001890: d001 beq.n 8001896 - { - Error_Handler(); - 8001892: f7ff fce9 bl 8001268 - } - /* USER CODE BEGIN USART2_Init 2 */ - - /* USER CODE END USART2_Init 2 */ - -} - 8001896: bf00 nop - 8001898: bd80 pop {r7, pc} - 800189a: bf00 nop - 800189c: 20000ad8 .word 0x20000ad8 - 80018a0: 40004400 .word 0x40004400 - -080018a4 : - -void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) -{ - 80018a4: b580 push {r7, lr} - 80018a6: b090 sub sp, #64 @ 0x40 - 80018a8: af00 add r7, sp, #0 - 80018aa: 6078 str r0, [r7, #4] - - GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80018ac: f107 032c add.w r3, r7, #44 @ 0x2c - 80018b0: 2200 movs r2, #0 - 80018b2: 601a str r2, [r3, #0] - 80018b4: 605a str r2, [r3, #4] - 80018b6: 609a str r2, [r3, #8] - 80018b8: 60da str r2, [r3, #12] - 80018ba: 611a str r2, [r3, #16] - if(uartHandle->Instance==UART4) +080017e8 : + 80017e8: b580 push {r7, lr} + 80017ea: b090 sub sp, #64 @ 0x40 + 80017ec: af00 add r7, sp, #0 + 80017ee: 6078 str r0, [r7, #4] + 80017f0: f107 032c add.w r3, r7, #44 @ 0x2c + 80017f4: 2200 movs r2, #0 + 80017f6: 601a str r2, [r3, #0] + 80017f8: 605a str r2, [r3, #4] + 80017fa: 609a str r2, [r3, #8] + 80017fc: 60da str r2, [r3, #12] + 80017fe: 611a str r2, [r3, #16] + 8001800: 687b ldr r3, [r7, #4] + 8001802: 681b ldr r3, [r3, #0] + 8001804: 4a4a ldr r2, [pc, #296] @ (8001930 ) + 8001806: 4293 cmp r3, r2 + 8001808: f040 80a0 bne.w 800194c + 800180c: 2300 movs r3, #0 + 800180e: 62bb str r3, [r7, #40] @ 0x28 + 8001810: 4b48 ldr r3, [pc, #288] @ (8001934 ) + 8001812: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001814: 4a47 ldr r2, [pc, #284] @ (8001934 ) + 8001816: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 800181a: 6413 str r3, [r2, #64] @ 0x40 + 800181c: 4b45 ldr r3, [pc, #276] @ (8001934 ) + 800181e: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001820: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 8001824: 62bb str r3, [r7, #40] @ 0x28 + 8001826: 6abb ldr r3, [r7, #40] @ 0x28 + 8001828: 2300 movs r3, #0 + 800182a: 627b str r3, [r7, #36] @ 0x24 + 800182c: 4b41 ldr r3, [pc, #260] @ (8001934 ) + 800182e: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001830: 4a40 ldr r2, [pc, #256] @ (8001934 ) + 8001832: f043 0301 orr.w r3, r3, #1 + 8001836: 6313 str r3, [r2, #48] @ 0x30 + 8001838: 4b3e ldr r3, [pc, #248] @ (8001934 ) + 800183a: 6b1b ldr r3, [r3, #48] @ 0x30 + 800183c: f003 0301 and.w r3, r3, #1 + 8001840: 627b str r3, [r7, #36] @ 0x24 + 8001842: 6a7b ldr r3, [r7, #36] @ 0x24 + 8001844: 2303 movs r3, #3 + 8001846: 62fb str r3, [r7, #44] @ 0x2c + 8001848: 2302 movs r3, #2 + 800184a: 633b str r3, [r7, #48] @ 0x30 + 800184c: 2300 movs r3, #0 + 800184e: 637b str r3, [r7, #52] @ 0x34 + 8001850: 2303 movs r3, #3 + 8001852: 63bb str r3, [r7, #56] @ 0x38 + 8001854: 2308 movs r3, #8 + 8001856: 63fb str r3, [r7, #60] @ 0x3c + 8001858: f107 032c add.w r3, r7, #44 @ 0x2c + 800185c: 4619 mov r1, r3 + 800185e: 4836 ldr r0, [pc, #216] @ (8001938 ) + 8001860: f001 f858 bl 8002914 + 8001864: 4b35 ldr r3, [pc, #212] @ (800193c ) + 8001866: 4a36 ldr r2, [pc, #216] @ (8001940 ) + 8001868: 601a str r2, [r3, #0] + 800186a: 4b34 ldr r3, [pc, #208] @ (800193c ) + 800186c: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001870: 605a str r2, [r3, #4] + 8001872: 4b32 ldr r3, [pc, #200] @ (800193c ) + 8001874: 2200 movs r2, #0 + 8001876: 609a str r2, [r3, #8] + 8001878: 4b30 ldr r3, [pc, #192] @ (800193c ) + 800187a: 2200 movs r2, #0 + 800187c: 60da str r2, [r3, #12] + 800187e: 4b2f ldr r3, [pc, #188] @ (800193c ) + 8001880: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001884: 611a str r2, [r3, #16] + 8001886: 4b2d ldr r3, [pc, #180] @ (800193c ) + 8001888: 2200 movs r2, #0 + 800188a: 615a str r2, [r3, #20] + 800188c: 4b2b ldr r3, [pc, #172] @ (800193c ) + 800188e: 2200 movs r2, #0 + 8001890: 619a str r2, [r3, #24] + 8001892: 4b2a ldr r3, [pc, #168] @ (800193c ) + 8001894: 2200 movs r2, #0 + 8001896: 61da str r2, [r3, #28] + 8001898: 4b28 ldr r3, [pc, #160] @ (800193c ) + 800189a: 2200 movs r2, #0 + 800189c: 621a str r2, [r3, #32] + 800189e: 4b27 ldr r3, [pc, #156] @ (800193c ) + 80018a0: 2200 movs r2, #0 + 80018a2: 625a str r2, [r3, #36] @ 0x24 + 80018a4: 4825 ldr r0, [pc, #148] @ (800193c ) + 80018a6: f000 fc33 bl 8002110 + 80018aa: 4603 mov r3, r0 + 80018ac: 2b00 cmp r3, #0 + 80018ae: d001 beq.n 80018b4 + 80018b0: f7ff fc7c bl 80011ac + 80018b4: 687b ldr r3, [r7, #4] + 80018b6: 4a21 ldr r2, [pc, #132] @ (800193c ) + 80018b8: 63da str r2, [r3, #60] @ 0x3c + 80018ba: 4a20 ldr r2, [pc, #128] @ (800193c ) 80018bc: 687b ldr r3, [r7, #4] - 80018be: 681b ldr r3, [r3, #0] - 80018c0: 4a4a ldr r2, [pc, #296] @ (80019ec ) - 80018c2: 4293 cmp r3, r2 - 80018c4: f040 80a0 bne.w 8001a08 - { - /* USER CODE BEGIN UART4_MspInit 0 */ - - /* USER CODE END UART4_MspInit 0 */ - /* UART4 clock enable */ - __HAL_RCC_UART4_CLK_ENABLE(); - 80018c8: 2300 movs r3, #0 - 80018ca: 62bb str r3, [r7, #40] @ 0x28 - 80018cc: 4b48 ldr r3, [pc, #288] @ (80019f0 ) - 80018ce: 6c1b ldr r3, [r3, #64] @ 0x40 - 80018d0: 4a47 ldr r2, [pc, #284] @ (80019f0 ) - 80018d2: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 80018d6: 6413 str r3, [r2, #64] @ 0x40 - 80018d8: 4b45 ldr r3, [pc, #276] @ (80019f0 ) - 80018da: 6c1b ldr r3, [r3, #64] @ 0x40 - 80018dc: f403 2300 and.w r3, r3, #524288 @ 0x80000 - 80018e0: 62bb str r3, [r7, #40] @ 0x28 - 80018e2: 6abb ldr r3, [r7, #40] @ 0x28 - - __HAL_RCC_GPIOA_CLK_ENABLE(); - 80018e4: 2300 movs r3, #0 - 80018e6: 627b str r3, [r7, #36] @ 0x24 - 80018e8: 4b41 ldr r3, [pc, #260] @ (80019f0 ) - 80018ea: 6b1b ldr r3, [r3, #48] @ 0x30 - 80018ec: 4a40 ldr r2, [pc, #256] @ (80019f0 ) - 80018ee: f043 0301 orr.w r3, r3, #1 - 80018f2: 6313 str r3, [r2, #48] @ 0x30 - 80018f4: 4b3e ldr r3, [pc, #248] @ (80019f0 ) - 80018f6: 6b1b ldr r3, [r3, #48] @ 0x30 - 80018f8: f003 0301 and.w r3, r3, #1 - 80018fc: 627b str r3, [r7, #36] @ 0x24 - 80018fe: 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; - 8001900: 2303 movs r3, #3 - 8001902: 62fb str r3, [r7, #44] @ 0x2c - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001904: 2302 movs r3, #2 - 8001906: 633b str r3, [r7, #48] @ 0x30 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001908: 2300 movs r3, #0 - 800190a: 637b str r3, [r7, #52] @ 0x34 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 800190c: 2303 movs r3, #3 - 800190e: 63bb str r3, [r7, #56] @ 0x38 - GPIO_InitStruct.Alternate = GPIO_AF8_UART4; - 8001910: 2308 movs r3, #8 - 8001912: 63fb str r3, [r7, #60] @ 0x3c - HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8001914: f107 032c add.w r3, r7, #44 @ 0x2c - 8001918: 4619 mov r1, r3 - 800191a: 4836 ldr r0, [pc, #216] @ (80019f4 ) - 800191c: f001 f858 bl 80029d0 - - /* UART4 DMA Init */ - /* UART4_RX Init */ - hdma_uart4_rx.Instance = DMA1_Stream2; - 8001920: 4b35 ldr r3, [pc, #212] @ (80019f8 ) - 8001922: 4a36 ldr r2, [pc, #216] @ (80019fc ) - 8001924: 601a str r2, [r3, #0] - hdma_uart4_rx.Init.Channel = DMA_CHANNEL_4; - 8001926: 4b34 ldr r3, [pc, #208] @ (80019f8 ) - 8001928: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 800192c: 605a str r2, [r3, #4] - hdma_uart4_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - 800192e: 4b32 ldr r3, [pc, #200] @ (80019f8 ) - 8001930: 2200 movs r2, #0 - 8001932: 609a str r2, [r3, #8] - hdma_uart4_rx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001934: 4b30 ldr r3, [pc, #192] @ (80019f8 ) - 8001936: 2200 movs r2, #0 - 8001938: 60da str r2, [r3, #12] - hdma_uart4_rx.Init.MemInc = DMA_MINC_ENABLE; - 800193a: 4b2f ldr r3, [pc, #188] @ (80019f8 ) - 800193c: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001940: 611a str r2, [r3, #16] - hdma_uart4_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001942: 4b2d ldr r3, [pc, #180] @ (80019f8 ) - 8001944: 2200 movs r2, #0 - 8001946: 615a str r2, [r3, #20] - hdma_uart4_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001948: 4b2b ldr r3, [pc, #172] @ (80019f8 ) - 800194a: 2200 movs r2, #0 - 800194c: 619a str r2, [r3, #24] - hdma_uart4_rx.Init.Mode = DMA_NORMAL; - 800194e: 4b2a ldr r3, [pc, #168] @ (80019f8 ) - 8001950: 2200 movs r2, #0 - 8001952: 61da str r2, [r3, #28] - hdma_uart4_rx.Init.Priority = DMA_PRIORITY_LOW; - 8001954: 4b28 ldr r3, [pc, #160] @ (80019f8 ) - 8001956: 2200 movs r2, #0 - 8001958: 621a str r2, [r3, #32] - hdma_uart4_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 800195a: 4b27 ldr r3, [pc, #156] @ (80019f8 ) - 800195c: 2200 movs r2, #0 - 800195e: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_uart4_rx) != HAL_OK) - 8001960: 4825 ldr r0, [pc, #148] @ (80019f8 ) - 8001962: f000 fc33 bl 80021cc - 8001966: 4603 mov r3, r0 - 8001968: 2b00 cmp r3, #0 - 800196a: d001 beq.n 8001970 - { - Error_Handler(); - 800196c: f7ff fc7c bl 8001268 - } - - __HAL_LINKDMA(uartHandle,hdmarx,hdma_uart4_rx); - 8001970: 687b ldr r3, [r7, #4] - 8001972: 4a21 ldr r2, [pc, #132] @ (80019f8 ) - 8001974: 63da str r2, [r3, #60] @ 0x3c - 8001976: 4a20 ldr r2, [pc, #128] @ (80019f8 ) - 8001978: 687b ldr r3, [r7, #4] - 800197a: 6393 str r3, [r2, #56] @ 0x38 - - /* UART4_TX Init */ - hdma_uart4_tx.Instance = DMA1_Stream4; - 800197c: 4b20 ldr r3, [pc, #128] @ (8001a00 ) - 800197e: 4a21 ldr r2, [pc, #132] @ (8001a04 ) - 8001980: 601a str r2, [r3, #0] - hdma_uart4_tx.Init.Channel = DMA_CHANNEL_4; - 8001982: 4b1f ldr r3, [pc, #124] @ (8001a00 ) - 8001984: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001988: 605a str r2, [r3, #4] - hdma_uart4_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; - 800198a: 4b1d ldr r3, [pc, #116] @ (8001a00 ) - 800198c: 2240 movs r2, #64 @ 0x40 - 800198e: 609a str r2, [r3, #8] - hdma_uart4_tx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001990: 4b1b ldr r3, [pc, #108] @ (8001a00 ) - 8001992: 2200 movs r2, #0 - 8001994: 60da str r2, [r3, #12] - hdma_uart4_tx.Init.MemInc = DMA_MINC_ENABLE; - 8001996: 4b1a ldr r3, [pc, #104] @ (8001a00 ) - 8001998: f44f 6280 mov.w r2, #1024 @ 0x400 - 800199c: 611a str r2, [r3, #16] - hdma_uart4_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 800199e: 4b18 ldr r3, [pc, #96] @ (8001a00 ) - 80019a0: 2200 movs r2, #0 - 80019a2: 615a str r2, [r3, #20] - hdma_uart4_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 80019a4: 4b16 ldr r3, [pc, #88] @ (8001a00 ) - 80019a6: 2200 movs r2, #0 - 80019a8: 619a str r2, [r3, #24] - hdma_uart4_tx.Init.Mode = DMA_NORMAL; - 80019aa: 4b15 ldr r3, [pc, #84] @ (8001a00 ) - 80019ac: 2200 movs r2, #0 - 80019ae: 61da str r2, [r3, #28] - hdma_uart4_tx.Init.Priority = DMA_PRIORITY_LOW; - 80019b0: 4b13 ldr r3, [pc, #76] @ (8001a00 ) - 80019b2: 2200 movs r2, #0 - 80019b4: 621a str r2, [r3, #32] - hdma_uart4_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 80019b6: 4b12 ldr r3, [pc, #72] @ (8001a00 ) - 80019b8: 2200 movs r2, #0 - 80019ba: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_uart4_tx) != HAL_OK) - 80019bc: 4810 ldr r0, [pc, #64] @ (8001a00 ) - 80019be: f000 fc05 bl 80021cc - 80019c2: 4603 mov r3, r0 - 80019c4: 2b00 cmp r3, #0 - 80019c6: d001 beq.n 80019cc - { - Error_Handler(); - 80019c8: f7ff fc4e bl 8001268 - } - - __HAL_LINKDMA(uartHandle,hdmatx,hdma_uart4_tx); - 80019cc: 687b ldr r3, [r7, #4] - 80019ce: 4a0c ldr r2, [pc, #48] @ (8001a00 ) - 80019d0: 639a str r2, [r3, #56] @ 0x38 - 80019d2: 4a0b ldr r2, [pc, #44] @ (8001a00 ) - 80019d4: 687b ldr r3, [r7, #4] - 80019d6: 6393 str r3, [r2, #56] @ 0x38 - - /* UART4 interrupt Init */ - HAL_NVIC_SetPriority(UART4_IRQn, 5, 0); - 80019d8: 2200 movs r2, #0 - 80019da: 2105 movs r1, #5 - 80019dc: 2034 movs r0, #52 @ 0x34 - 80019de: f000 fbbe bl 800215e - HAL_NVIC_EnableIRQ(UART4_IRQn); - 80019e2: 2034 movs r0, #52 @ 0x34 - 80019e4: f000 fbd7 bl 8002196 - HAL_NVIC_EnableIRQ(USART2_IRQn); - /* USER CODE BEGIN USART2_MspInit 1 */ - - /* USER CODE END USART2_MspInit 1 */ - } -} - 80019e8: e202 b.n 8001df0 - 80019ea: bf00 nop - 80019ec: 40004c00 .word 0x40004c00 - 80019f0: 40023800 .word 0x40023800 - 80019f4: 40020000 .word 0x40020000 - 80019f8: 20000b20 .word 0x20000b20 - 80019fc: 40026040 .word 0x40026040 - 8001a00: 20000b80 .word 0x20000b80 - 8001a04: 40026070 .word 0x40026070 - else if(uartHandle->Instance==UART5) - 8001a08: 687b ldr r3, [r7, #4] - 8001a0a: 681b ldr r3, [r3, #0] - 8001a0c: 4a59 ldr r2, [pc, #356] @ (8001b74 ) - 8001a0e: 4293 cmp r3, r2 - 8001a10: f040 80c0 bne.w 8001b94 - __HAL_RCC_UART5_CLK_ENABLE(); - 8001a14: 2300 movs r3, #0 - 8001a16: 623b str r3, [r7, #32] - 8001a18: 4b57 ldr r3, [pc, #348] @ (8001b78 ) - 8001a1a: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001a1c: 4a56 ldr r2, [pc, #344] @ (8001b78 ) - 8001a1e: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 - 8001a22: 6413 str r3, [r2, #64] @ 0x40 - 8001a24: 4b54 ldr r3, [pc, #336] @ (8001b78 ) - 8001a26: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001a28: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 8001a2c: 623b str r3, [r7, #32] - 8001a2e: 6a3b ldr r3, [r7, #32] - __HAL_RCC_GPIOC_CLK_ENABLE(); - 8001a30: 2300 movs r3, #0 - 8001a32: 61fb str r3, [r7, #28] - 8001a34: 4b50 ldr r3, [pc, #320] @ (8001b78 ) - 8001a36: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001a38: 4a4f ldr r2, [pc, #316] @ (8001b78 ) - 8001a3a: f043 0304 orr.w r3, r3, #4 - 8001a3e: 6313 str r3, [r2, #48] @ 0x30 - 8001a40: 4b4d ldr r3, [pc, #308] @ (8001b78 ) - 8001a42: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001a44: f003 0304 and.w r3, r3, #4 - 8001a48: 61fb str r3, [r7, #28] - 8001a4a: 69fb ldr r3, [r7, #28] - __HAL_RCC_GPIOD_CLK_ENABLE(); - 8001a4c: 2300 movs r3, #0 - 8001a4e: 61bb str r3, [r7, #24] - 8001a50: 4b49 ldr r3, [pc, #292] @ (8001b78 ) - 8001a52: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001a54: 4a48 ldr r2, [pc, #288] @ (8001b78 ) - 8001a56: f043 0308 orr.w r3, r3, #8 - 8001a5a: 6313 str r3, [r2, #48] @ 0x30 - 8001a5c: 4b46 ldr r3, [pc, #280] @ (8001b78 ) - 8001a5e: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001a60: f003 0308 and.w r3, r3, #8 - 8001a64: 61bb str r3, [r7, #24] - 8001a66: 69bb ldr r3, [r7, #24] - GPIO_InitStruct.Pin = GPIO_PIN_12; - 8001a68: f44f 5380 mov.w r3, #4096 @ 0x1000 - 8001a6c: 62fb str r3, [r7, #44] @ 0x2c - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001a6e: 2302 movs r3, #2 - 8001a70: 633b str r3, [r7, #48] @ 0x30 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001a72: 2300 movs r3, #0 - 8001a74: 637b str r3, [r7, #52] @ 0x34 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8001a76: 2303 movs r3, #3 - 8001a78: 63bb str r3, [r7, #56] @ 0x38 - GPIO_InitStruct.Alternate = GPIO_AF8_UART5; - 8001a7a: 2308 movs r3, #8 - 8001a7c: 63fb str r3, [r7, #60] @ 0x3c - HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - 8001a7e: f107 032c add.w r3, r7, #44 @ 0x2c - 8001a82: 4619 mov r1, r3 - 8001a84: 483d ldr r0, [pc, #244] @ (8001b7c ) - 8001a86: f000 ffa3 bl 80029d0 - GPIO_InitStruct.Pin = GPIO_PIN_2; - 8001a8a: 2304 movs r3, #4 - 8001a8c: 62fb str r3, [r7, #44] @ 0x2c - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001a8e: 2302 movs r3, #2 - 8001a90: 633b str r3, [r7, #48] @ 0x30 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001a92: 2300 movs r3, #0 - 8001a94: 637b str r3, [r7, #52] @ 0x34 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8001a96: 2303 movs r3, #3 - 8001a98: 63bb str r3, [r7, #56] @ 0x38 - GPIO_InitStruct.Alternate = GPIO_AF8_UART5; - 8001a9a: 2308 movs r3, #8 - 8001a9c: 63fb str r3, [r7, #60] @ 0x3c - HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 8001a9e: f107 032c add.w r3, r7, #44 @ 0x2c - 8001aa2: 4619 mov r1, r3 - 8001aa4: 4836 ldr r0, [pc, #216] @ (8001b80 ) - 8001aa6: f000 ff93 bl 80029d0 - hdma_uart5_rx.Instance = DMA1_Stream0; - 8001aaa: 4b36 ldr r3, [pc, #216] @ (8001b84 ) - 8001aac: 4a36 ldr r2, [pc, #216] @ (8001b88 ) - 8001aae: 601a str r2, [r3, #0] - hdma_uart5_rx.Init.Channel = DMA_CHANNEL_4; - 8001ab0: 4b34 ldr r3, [pc, #208] @ (8001b84 ) - 8001ab2: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001ab6: 605a str r2, [r3, #4] - hdma_uart5_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - 8001ab8: 4b32 ldr r3, [pc, #200] @ (8001b84 ) - 8001aba: 2200 movs r2, #0 - 8001abc: 609a str r2, [r3, #8] - hdma_uart5_rx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001abe: 4b31 ldr r3, [pc, #196] @ (8001b84 ) - 8001ac0: 2200 movs r2, #0 - 8001ac2: 60da str r2, [r3, #12] - hdma_uart5_rx.Init.MemInc = DMA_MINC_ENABLE; - 8001ac4: 4b2f ldr r3, [pc, #188] @ (8001b84 ) - 8001ac6: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001aca: 611a str r2, [r3, #16] - hdma_uart5_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001acc: 4b2d ldr r3, [pc, #180] @ (8001b84 ) - 8001ace: 2200 movs r2, #0 - 8001ad0: 615a str r2, [r3, #20] - hdma_uart5_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001ad2: 4b2c ldr r3, [pc, #176] @ (8001b84 ) - 8001ad4: 2200 movs r2, #0 - 8001ad6: 619a str r2, [r3, #24] - hdma_uart5_rx.Init.Mode = DMA_NORMAL; - 8001ad8: 4b2a ldr r3, [pc, #168] @ (8001b84 ) - 8001ada: 2200 movs r2, #0 - 8001adc: 61da str r2, [r3, #28] - hdma_uart5_rx.Init.Priority = DMA_PRIORITY_LOW; - 8001ade: 4b29 ldr r3, [pc, #164] @ (8001b84 ) - 8001ae0: 2200 movs r2, #0 - 8001ae2: 621a str r2, [r3, #32] - hdma_uart5_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001ae4: 4b27 ldr r3, [pc, #156] @ (8001b84 ) - 8001ae6: 2200 movs r2, #0 - 8001ae8: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_uart5_rx) != HAL_OK) - 8001aea: 4826 ldr r0, [pc, #152] @ (8001b84 ) - 8001aec: f000 fb6e bl 80021cc - 8001af0: 4603 mov r3, r0 - 8001af2: 2b00 cmp r3, #0 - 8001af4: d001 beq.n 8001afa - Error_Handler(); - 8001af6: f7ff fbb7 bl 8001268 - __HAL_LINKDMA(uartHandle,hdmarx,hdma_uart5_rx); - 8001afa: 687b ldr r3, [r7, #4] - 8001afc: 4a21 ldr r2, [pc, #132] @ (8001b84 ) - 8001afe: 63da str r2, [r3, #60] @ 0x3c - 8001b00: 4a20 ldr r2, [pc, #128] @ (8001b84 ) - 8001b02: 687b ldr r3, [r7, #4] - 8001b04: 6393 str r3, [r2, #56] @ 0x38 - hdma_uart5_tx.Instance = DMA1_Stream7; - 8001b06: 4b21 ldr r3, [pc, #132] @ (8001b8c ) - 8001b08: 4a21 ldr r2, [pc, #132] @ (8001b90 ) - 8001b0a: 601a str r2, [r3, #0] - hdma_uart5_tx.Init.Channel = DMA_CHANNEL_4; - 8001b0c: 4b1f ldr r3, [pc, #124] @ (8001b8c ) - 8001b0e: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001b12: 605a str r2, [r3, #4] - hdma_uart5_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; - 8001b14: 4b1d ldr r3, [pc, #116] @ (8001b8c ) - 8001b16: 2240 movs r2, #64 @ 0x40 - 8001b18: 609a str r2, [r3, #8] - hdma_uart5_tx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001b1a: 4b1c ldr r3, [pc, #112] @ (8001b8c ) - 8001b1c: 2200 movs r2, #0 - 8001b1e: 60da str r2, [r3, #12] - hdma_uart5_tx.Init.MemInc = DMA_MINC_ENABLE; - 8001b20: 4b1a ldr r3, [pc, #104] @ (8001b8c ) - 8001b22: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001b26: 611a str r2, [r3, #16] - hdma_uart5_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001b28: 4b18 ldr r3, [pc, #96] @ (8001b8c ) - 8001b2a: 2200 movs r2, #0 - 8001b2c: 615a str r2, [r3, #20] - hdma_uart5_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001b2e: 4b17 ldr r3, [pc, #92] @ (8001b8c ) - 8001b30: 2200 movs r2, #0 - 8001b32: 619a str r2, [r3, #24] - hdma_uart5_tx.Init.Mode = DMA_NORMAL; - 8001b34: 4b15 ldr r3, [pc, #84] @ (8001b8c ) - 8001b36: 2200 movs r2, #0 - 8001b38: 61da str r2, [r3, #28] - hdma_uart5_tx.Init.Priority = DMA_PRIORITY_LOW; - 8001b3a: 4b14 ldr r3, [pc, #80] @ (8001b8c ) - 8001b3c: 2200 movs r2, #0 - 8001b3e: 621a str r2, [r3, #32] - hdma_uart5_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001b40: 4b12 ldr r3, [pc, #72] @ (8001b8c ) - 8001b42: 2200 movs r2, #0 - 8001b44: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_uart5_tx) != HAL_OK) - 8001b46: 4811 ldr r0, [pc, #68] @ (8001b8c ) - 8001b48: f000 fb40 bl 80021cc - 8001b4c: 4603 mov r3, r0 - 8001b4e: 2b00 cmp r3, #0 - 8001b50: d001 beq.n 8001b56 - Error_Handler(); - 8001b52: f7ff fb89 bl 8001268 - __HAL_LINKDMA(uartHandle,hdmatx,hdma_uart5_tx); - 8001b56: 687b ldr r3, [r7, #4] - 8001b58: 4a0c ldr r2, [pc, #48] @ (8001b8c ) - 8001b5a: 639a str r2, [r3, #56] @ 0x38 - 8001b5c: 4a0b ldr r2, [pc, #44] @ (8001b8c ) - 8001b5e: 687b ldr r3, [r7, #4] - 8001b60: 6393 str r3, [r2, #56] @ 0x38 - HAL_NVIC_SetPriority(UART5_IRQn, 5, 0); + 80018be: 6393 str r3, [r2, #56] @ 0x38 + 80018c0: 4b20 ldr r3, [pc, #128] @ (8001944 ) + 80018c2: 4a21 ldr r2, [pc, #132] @ (8001948 ) + 80018c4: 601a str r2, [r3, #0] + 80018c6: 4b1f ldr r3, [pc, #124] @ (8001944 ) + 80018c8: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 80018cc: 605a str r2, [r3, #4] + 80018ce: 4b1d ldr r3, [pc, #116] @ (8001944 ) + 80018d0: 2240 movs r2, #64 @ 0x40 + 80018d2: 609a str r2, [r3, #8] + 80018d4: 4b1b ldr r3, [pc, #108] @ (8001944 ) + 80018d6: 2200 movs r2, #0 + 80018d8: 60da str r2, [r3, #12] + 80018da: 4b1a ldr r3, [pc, #104] @ (8001944 ) + 80018dc: f44f 6280 mov.w r2, #1024 @ 0x400 + 80018e0: 611a str r2, [r3, #16] + 80018e2: 4b18 ldr r3, [pc, #96] @ (8001944 ) + 80018e4: 2200 movs r2, #0 + 80018e6: 615a str r2, [r3, #20] + 80018e8: 4b16 ldr r3, [pc, #88] @ (8001944 ) + 80018ea: 2200 movs r2, #0 + 80018ec: 619a str r2, [r3, #24] + 80018ee: 4b15 ldr r3, [pc, #84] @ (8001944 ) + 80018f0: 2200 movs r2, #0 + 80018f2: 61da str r2, [r3, #28] + 80018f4: 4b13 ldr r3, [pc, #76] @ (8001944 ) + 80018f6: 2200 movs r2, #0 + 80018f8: 621a str r2, [r3, #32] + 80018fa: 4b12 ldr r3, [pc, #72] @ (8001944 ) + 80018fc: 2200 movs r2, #0 + 80018fe: 625a str r2, [r3, #36] @ 0x24 + 8001900: 4810 ldr r0, [pc, #64] @ (8001944 ) + 8001902: f000 fc05 bl 8002110 + 8001906: 4603 mov r3, r0 + 8001908: 2b00 cmp r3, #0 + 800190a: d001 beq.n 8001910 + 800190c: f7ff fc4e bl 80011ac + 8001910: 687b ldr r3, [r7, #4] + 8001912: 4a0c ldr r2, [pc, #48] @ (8001944 ) + 8001914: 639a str r2, [r3, #56] @ 0x38 + 8001916: 4a0b ldr r2, [pc, #44] @ (8001944 ) + 8001918: 687b ldr r3, [r7, #4] + 800191a: 6393 str r3, [r2, #56] @ 0x38 + 800191c: 2200 movs r2, #0 + 800191e: 2105 movs r1, #5 + 8001920: 2034 movs r0, #52 @ 0x34 + 8001922: f000 fbbe bl 80020a2 + 8001926: 2034 movs r0, #52 @ 0x34 + 8001928: f000 fbd7 bl 80020da + 800192c: e202 b.n 8001d34 + 800192e: bf00 nop + 8001930: 40004c00 .word 0x40004c00 + 8001934: 40023800 .word 0x40023800 + 8001938: 40020000 .word 0x40020000 + 800193c: 20000acc .word 0x20000acc + 8001940: 40026040 .word 0x40026040 + 8001944: 20000b2c .word 0x20000b2c + 8001948: 40026070 .word 0x40026070 + 800194c: 687b ldr r3, [r7, #4] + 800194e: 681b ldr r3, [r3, #0] + 8001950: 4a59 ldr r2, [pc, #356] @ (8001ab8 ) + 8001952: 4293 cmp r3, r2 + 8001954: f040 80c0 bne.w 8001ad8 + 8001958: 2300 movs r3, #0 + 800195a: 623b str r3, [r7, #32] + 800195c: 4b57 ldr r3, [pc, #348] @ (8001abc ) + 800195e: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001960: 4a56 ldr r2, [pc, #344] @ (8001abc ) + 8001962: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 + 8001966: 6413 str r3, [r2, #64] @ 0x40 + 8001968: 4b54 ldr r3, [pc, #336] @ (8001abc ) + 800196a: 6c1b ldr r3, [r3, #64] @ 0x40 + 800196c: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 8001970: 623b str r3, [r7, #32] + 8001972: 6a3b ldr r3, [r7, #32] + 8001974: 2300 movs r3, #0 + 8001976: 61fb str r3, [r7, #28] + 8001978: 4b50 ldr r3, [pc, #320] @ (8001abc ) + 800197a: 6b1b ldr r3, [r3, #48] @ 0x30 + 800197c: 4a4f ldr r2, [pc, #316] @ (8001abc ) + 800197e: f043 0304 orr.w r3, r3, #4 + 8001982: 6313 str r3, [r2, #48] @ 0x30 + 8001984: 4b4d ldr r3, [pc, #308] @ (8001abc ) + 8001986: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001988: f003 0304 and.w r3, r3, #4 + 800198c: 61fb str r3, [r7, #28] + 800198e: 69fb ldr r3, [r7, #28] + 8001990: 2300 movs r3, #0 + 8001992: 61bb str r3, [r7, #24] + 8001994: 4b49 ldr r3, [pc, #292] @ (8001abc ) + 8001996: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001998: 4a48 ldr r2, [pc, #288] @ (8001abc ) + 800199a: f043 0308 orr.w r3, r3, #8 + 800199e: 6313 str r3, [r2, #48] @ 0x30 + 80019a0: 4b46 ldr r3, [pc, #280] @ (8001abc ) + 80019a2: 6b1b ldr r3, [r3, #48] @ 0x30 + 80019a4: f003 0308 and.w r3, r3, #8 + 80019a8: 61bb str r3, [r7, #24] + 80019aa: 69bb ldr r3, [r7, #24] + 80019ac: f44f 5380 mov.w r3, #4096 @ 0x1000 + 80019b0: 62fb str r3, [r7, #44] @ 0x2c + 80019b2: 2302 movs r3, #2 + 80019b4: 633b str r3, [r7, #48] @ 0x30 + 80019b6: 2300 movs r3, #0 + 80019b8: 637b str r3, [r7, #52] @ 0x34 + 80019ba: 2303 movs r3, #3 + 80019bc: 63bb str r3, [r7, #56] @ 0x38 + 80019be: 2308 movs r3, #8 + 80019c0: 63fb str r3, [r7, #60] @ 0x3c + 80019c2: f107 032c add.w r3, r7, #44 @ 0x2c + 80019c6: 4619 mov r1, r3 + 80019c8: 483d ldr r0, [pc, #244] @ (8001ac0 ) + 80019ca: f000 ffa3 bl 8002914 + 80019ce: 2304 movs r3, #4 + 80019d0: 62fb str r3, [r7, #44] @ 0x2c + 80019d2: 2302 movs r3, #2 + 80019d4: 633b str r3, [r7, #48] @ 0x30 + 80019d6: 2300 movs r3, #0 + 80019d8: 637b str r3, [r7, #52] @ 0x34 + 80019da: 2303 movs r3, #3 + 80019dc: 63bb str r3, [r7, #56] @ 0x38 + 80019de: 2308 movs r3, #8 + 80019e0: 63fb str r3, [r7, #60] @ 0x3c + 80019e2: f107 032c add.w r3, r7, #44 @ 0x2c + 80019e6: 4619 mov r1, r3 + 80019e8: 4836 ldr r0, [pc, #216] @ (8001ac4 ) + 80019ea: f000 ff93 bl 8002914 + 80019ee: 4b36 ldr r3, [pc, #216] @ (8001ac8 ) + 80019f0: 4a36 ldr r2, [pc, #216] @ (8001acc ) + 80019f2: 601a str r2, [r3, #0] + 80019f4: 4b34 ldr r3, [pc, #208] @ (8001ac8 ) + 80019f6: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 80019fa: 605a str r2, [r3, #4] + 80019fc: 4b32 ldr r3, [pc, #200] @ (8001ac8 ) + 80019fe: 2200 movs r2, #0 + 8001a00: 609a str r2, [r3, #8] + 8001a02: 4b31 ldr r3, [pc, #196] @ (8001ac8 ) + 8001a04: 2200 movs r2, #0 + 8001a06: 60da str r2, [r3, #12] + 8001a08: 4b2f ldr r3, [pc, #188] @ (8001ac8 ) + 8001a0a: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001a0e: 611a str r2, [r3, #16] + 8001a10: 4b2d ldr r3, [pc, #180] @ (8001ac8 ) + 8001a12: 2200 movs r2, #0 + 8001a14: 615a str r2, [r3, #20] + 8001a16: 4b2c ldr r3, [pc, #176] @ (8001ac8 ) + 8001a18: 2200 movs r2, #0 + 8001a1a: 619a str r2, [r3, #24] + 8001a1c: 4b2a ldr r3, [pc, #168] @ (8001ac8 ) + 8001a1e: 2200 movs r2, #0 + 8001a20: 61da str r2, [r3, #28] + 8001a22: 4b29 ldr r3, [pc, #164] @ (8001ac8 ) + 8001a24: 2200 movs r2, #0 + 8001a26: 621a str r2, [r3, #32] + 8001a28: 4b27 ldr r3, [pc, #156] @ (8001ac8 ) + 8001a2a: 2200 movs r2, #0 + 8001a2c: 625a str r2, [r3, #36] @ 0x24 + 8001a2e: 4826 ldr r0, [pc, #152] @ (8001ac8 ) + 8001a30: f000 fb6e bl 8002110 + 8001a34: 4603 mov r3, r0 + 8001a36: 2b00 cmp r3, #0 + 8001a38: d001 beq.n 8001a3e + 8001a3a: f7ff fbb7 bl 80011ac + 8001a3e: 687b ldr r3, [r7, #4] + 8001a40: 4a21 ldr r2, [pc, #132] @ (8001ac8 ) + 8001a42: 63da str r2, [r3, #60] @ 0x3c + 8001a44: 4a20 ldr r2, [pc, #128] @ (8001ac8 ) + 8001a46: 687b ldr r3, [r7, #4] + 8001a48: 6393 str r3, [r2, #56] @ 0x38 + 8001a4a: 4b21 ldr r3, [pc, #132] @ (8001ad0 ) + 8001a4c: 4a21 ldr r2, [pc, #132] @ (8001ad4 ) + 8001a4e: 601a str r2, [r3, #0] + 8001a50: 4b1f ldr r3, [pc, #124] @ (8001ad0 ) + 8001a52: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001a56: 605a str r2, [r3, #4] + 8001a58: 4b1d ldr r3, [pc, #116] @ (8001ad0 ) + 8001a5a: 2240 movs r2, #64 @ 0x40 + 8001a5c: 609a str r2, [r3, #8] + 8001a5e: 4b1c ldr r3, [pc, #112] @ (8001ad0 ) + 8001a60: 2200 movs r2, #0 + 8001a62: 60da str r2, [r3, #12] + 8001a64: 4b1a ldr r3, [pc, #104] @ (8001ad0 ) + 8001a66: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001a6a: 611a str r2, [r3, #16] + 8001a6c: 4b18 ldr r3, [pc, #96] @ (8001ad0 ) + 8001a6e: 2200 movs r2, #0 + 8001a70: 615a str r2, [r3, #20] + 8001a72: 4b17 ldr r3, [pc, #92] @ (8001ad0 ) + 8001a74: 2200 movs r2, #0 + 8001a76: 619a str r2, [r3, #24] + 8001a78: 4b15 ldr r3, [pc, #84] @ (8001ad0 ) + 8001a7a: 2200 movs r2, #0 + 8001a7c: 61da str r2, [r3, #28] + 8001a7e: 4b14 ldr r3, [pc, #80] @ (8001ad0 ) + 8001a80: 2200 movs r2, #0 + 8001a82: 621a str r2, [r3, #32] + 8001a84: 4b12 ldr r3, [pc, #72] @ (8001ad0 ) + 8001a86: 2200 movs r2, #0 + 8001a88: 625a str r2, [r3, #36] @ 0x24 + 8001a8a: 4811 ldr r0, [pc, #68] @ (8001ad0 ) + 8001a8c: f000 fb40 bl 8002110 + 8001a90: 4603 mov r3, r0 + 8001a92: 2b00 cmp r3, #0 + 8001a94: d001 beq.n 8001a9a + 8001a96: f7ff fb89 bl 80011ac + 8001a9a: 687b ldr r3, [r7, #4] + 8001a9c: 4a0c ldr r2, [pc, #48] @ (8001ad0 ) + 8001a9e: 639a str r2, [r3, #56] @ 0x38 + 8001aa0: 4a0b ldr r2, [pc, #44] @ (8001ad0 ) + 8001aa2: 687b ldr r3, [r7, #4] + 8001aa4: 6393 str r3, [r2, #56] @ 0x38 + 8001aa6: 2200 movs r2, #0 + 8001aa8: 2105 movs r1, #5 + 8001aaa: 2035 movs r0, #53 @ 0x35 + 8001aac: f000 faf9 bl 80020a2 + 8001ab0: 2035 movs r0, #53 @ 0x35 + 8001ab2: f000 fb12 bl 80020da + 8001ab6: e13d b.n 8001d34 + 8001ab8: 40005000 .word 0x40005000 + 8001abc: 40023800 .word 0x40023800 + 8001ac0: 40020800 .word 0x40020800 + 8001ac4: 40020c00 .word 0x40020c00 + 8001ac8: 20000b8c .word 0x20000b8c + 8001acc: 40026010 .word 0x40026010 + 8001ad0: 20000bec .word 0x20000bec + 8001ad4: 400260b8 .word 0x400260b8 + 8001ad8: 687b ldr r3, [r7, #4] + 8001ada: 681b ldr r3, [r3, #0] + 8001adc: 4a97 ldr r2, [pc, #604] @ (8001d3c ) + 8001ade: 4293 cmp r3, r2 + 8001ae0: f040 8092 bne.w 8001c08 + 8001ae4: 2300 movs r3, #0 + 8001ae6: 617b str r3, [r7, #20] + 8001ae8: 4b95 ldr r3, [pc, #596] @ (8001d40 ) + 8001aea: 6c5b ldr r3, [r3, #68] @ 0x44 + 8001aec: 4a94 ldr r2, [pc, #592] @ (8001d40 ) + 8001aee: f043 0310 orr.w r3, r3, #16 + 8001af2: 6453 str r3, [r2, #68] @ 0x44 + 8001af4: 4b92 ldr r3, [pc, #584] @ (8001d40 ) + 8001af6: 6c5b ldr r3, [r3, #68] @ 0x44 + 8001af8: f003 0310 and.w r3, r3, #16 + 8001afc: 617b str r3, [r7, #20] + 8001afe: 697b ldr r3, [r7, #20] + 8001b00: 2300 movs r3, #0 + 8001b02: 613b str r3, [r7, #16] + 8001b04: 4b8e ldr r3, [pc, #568] @ (8001d40 ) + 8001b06: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001b08: 4a8d ldr r2, [pc, #564] @ (8001d40 ) + 8001b0a: f043 0301 orr.w r3, r3, #1 + 8001b0e: 6313 str r3, [r2, #48] @ 0x30 + 8001b10: 4b8b ldr r3, [pc, #556] @ (8001d40 ) + 8001b12: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001b14: f003 0301 and.w r3, r3, #1 + 8001b18: 613b str r3, [r7, #16] + 8001b1a: 693b ldr r3, [r7, #16] + 8001b1c: f44f 63c0 mov.w r3, #1536 @ 0x600 + 8001b20: 62fb str r3, [r7, #44] @ 0x2c + 8001b22: 2302 movs r3, #2 + 8001b24: 633b str r3, [r7, #48] @ 0x30 + 8001b26: 2300 movs r3, #0 + 8001b28: 637b str r3, [r7, #52] @ 0x34 + 8001b2a: 2303 movs r3, #3 + 8001b2c: 63bb str r3, [r7, #56] @ 0x38 + 8001b2e: 2307 movs r3, #7 + 8001b30: 63fb str r3, [r7, #60] @ 0x3c + 8001b32: f107 032c add.w r3, r7, #44 @ 0x2c + 8001b36: 4619 mov r1, r3 + 8001b38: 4882 ldr r0, [pc, #520] @ (8001d44 ) + 8001b3a: f000 feeb bl 8002914 + 8001b3e: 4b82 ldr r3, [pc, #520] @ (8001d48 ) + 8001b40: 4a82 ldr r2, [pc, #520] @ (8001d4c ) + 8001b42: 601a str r2, [r3, #0] + 8001b44: 4b80 ldr r3, [pc, #512] @ (8001d48 ) + 8001b46: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001b4a: 605a str r2, [r3, #4] + 8001b4c: 4b7e ldr r3, [pc, #504] @ (8001d48 ) + 8001b4e: 2200 movs r2, #0 + 8001b50: 609a str r2, [r3, #8] + 8001b52: 4b7d ldr r3, [pc, #500] @ (8001d48 ) + 8001b54: 2200 movs r2, #0 + 8001b56: 60da str r2, [r3, #12] + 8001b58: 4b7b ldr r3, [pc, #492] @ (8001d48 ) + 8001b5a: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001b5e: 611a str r2, [r3, #16] + 8001b60: 4b79 ldr r3, [pc, #484] @ (8001d48 ) 8001b62: 2200 movs r2, #0 - 8001b64: 2105 movs r1, #5 - 8001b66: 2035 movs r0, #53 @ 0x35 - 8001b68: f000 faf9 bl 800215e - HAL_NVIC_EnableIRQ(UART5_IRQn); - 8001b6c: 2035 movs r0, #53 @ 0x35 - 8001b6e: f000 fb12 bl 8002196 -} - 8001b72: e13d b.n 8001df0 - 8001b74: 40005000 .word 0x40005000 - 8001b78: 40023800 .word 0x40023800 - 8001b7c: 40020800 .word 0x40020800 - 8001b80: 40020c00 .word 0x40020c00 - 8001b84: 20000be0 .word 0x20000be0 - 8001b88: 40026010 .word 0x40026010 - 8001b8c: 20000c40 .word 0x20000c40 - 8001b90: 400260b8 .word 0x400260b8 - else if(uartHandle->Instance==USART1) - 8001b94: 687b ldr r3, [r7, #4] - 8001b96: 681b ldr r3, [r3, #0] - 8001b98: 4a97 ldr r2, [pc, #604] @ (8001df8 ) - 8001b9a: 4293 cmp r3, r2 - 8001b9c: f040 8092 bne.w 8001cc4 - __HAL_RCC_USART1_CLK_ENABLE(); - 8001ba0: 2300 movs r3, #0 - 8001ba2: 617b str r3, [r7, #20] - 8001ba4: 4b95 ldr r3, [pc, #596] @ (8001dfc ) - 8001ba6: 6c5b ldr r3, [r3, #68] @ 0x44 - 8001ba8: 4a94 ldr r2, [pc, #592] @ (8001dfc ) - 8001baa: f043 0310 orr.w r3, r3, #16 - 8001bae: 6453 str r3, [r2, #68] @ 0x44 - 8001bb0: 4b92 ldr r3, [pc, #584] @ (8001dfc ) - 8001bb2: 6c5b ldr r3, [r3, #68] @ 0x44 - 8001bb4: f003 0310 and.w r3, r3, #16 - 8001bb8: 617b str r3, [r7, #20] - 8001bba: 697b ldr r3, [r7, #20] - __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001bbc: 2300 movs r3, #0 - 8001bbe: 613b str r3, [r7, #16] - 8001bc0: 4b8e ldr r3, [pc, #568] @ (8001dfc ) - 8001bc2: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001bc4: 4a8d ldr r2, [pc, #564] @ (8001dfc ) - 8001bc6: f043 0301 orr.w r3, r3, #1 - 8001bca: 6313 str r3, [r2, #48] @ 0x30 - 8001bcc: 4b8b ldr r3, [pc, #556] @ (8001dfc ) - 8001bce: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001bd0: f003 0301 and.w r3, r3, #1 - 8001bd4: 613b str r3, [r7, #16] - 8001bd6: 693b ldr r3, [r7, #16] - GPIO_InitStruct.Pin = GPIO_PIN_9|GPIO_PIN_10; - 8001bd8: f44f 63c0 mov.w r3, #1536 @ 0x600 - 8001bdc: 62fb str r3, [r7, #44] @ 0x2c - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001bde: 2302 movs r3, #2 - 8001be0: 633b str r3, [r7, #48] @ 0x30 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001be2: 2300 movs r3, #0 - 8001be4: 637b str r3, [r7, #52] @ 0x34 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8001be6: 2303 movs r3, #3 - 8001be8: 63bb str r3, [r7, #56] @ 0x38 - GPIO_InitStruct.Alternate = GPIO_AF7_USART1; - 8001bea: 2307 movs r3, #7 - 8001bec: 63fb str r3, [r7, #60] @ 0x3c - HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8001bee: f107 032c add.w r3, r7, #44 @ 0x2c - 8001bf2: 4619 mov r1, r3 - 8001bf4: 4882 ldr r0, [pc, #520] @ (8001e00 ) - 8001bf6: f000 feeb bl 80029d0 - hdma_usart1_rx.Instance = DMA2_Stream2; - 8001bfa: 4b82 ldr r3, [pc, #520] @ (8001e04 ) - 8001bfc: 4a82 ldr r2, [pc, #520] @ (8001e08 ) - 8001bfe: 601a str r2, [r3, #0] - hdma_usart1_rx.Init.Channel = DMA_CHANNEL_4; - 8001c00: 4b80 ldr r3, [pc, #512] @ (8001e04 ) - 8001c02: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001c06: 605a str r2, [r3, #4] - hdma_usart1_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - 8001c08: 4b7e ldr r3, [pc, #504] @ (8001e04 ) - 8001c0a: 2200 movs r2, #0 - 8001c0c: 609a str r2, [r3, #8] - hdma_usart1_rx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001c0e: 4b7d ldr r3, [pc, #500] @ (8001e04 ) - 8001c10: 2200 movs r2, #0 - 8001c12: 60da str r2, [r3, #12] - hdma_usart1_rx.Init.MemInc = DMA_MINC_ENABLE; - 8001c14: 4b7b ldr r3, [pc, #492] @ (8001e04 ) - 8001c16: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001c1a: 611a str r2, [r3, #16] - hdma_usart1_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001c1c: 4b79 ldr r3, [pc, #484] @ (8001e04 ) - 8001c1e: 2200 movs r2, #0 - 8001c20: 615a str r2, [r3, #20] - hdma_usart1_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001c22: 4b78 ldr r3, [pc, #480] @ (8001e04 ) - 8001c24: 2200 movs r2, #0 - 8001c26: 619a str r2, [r3, #24] - hdma_usart1_rx.Init.Mode = DMA_NORMAL; - 8001c28: 4b76 ldr r3, [pc, #472] @ (8001e04 ) - 8001c2a: 2200 movs r2, #0 - 8001c2c: 61da str r2, [r3, #28] - hdma_usart1_rx.Init.Priority = DMA_PRIORITY_LOW; - 8001c2e: 4b75 ldr r3, [pc, #468] @ (8001e04 ) - 8001c30: 2200 movs r2, #0 - 8001c32: 621a str r2, [r3, #32] - hdma_usart1_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001c34: 4b73 ldr r3, [pc, #460] @ (8001e04 ) - 8001c36: 2200 movs r2, #0 - 8001c38: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_usart1_rx) != HAL_OK) - 8001c3a: 4872 ldr r0, [pc, #456] @ (8001e04 ) - 8001c3c: f000 fac6 bl 80021cc - 8001c40: 4603 mov r3, r0 - 8001c42: 2b00 cmp r3, #0 - 8001c44: d001 beq.n 8001c4a - Error_Handler(); - 8001c46: f7ff fb0f bl 8001268 - __HAL_LINKDMA(uartHandle,hdmarx,hdma_usart1_rx); - 8001c4a: 687b ldr r3, [r7, #4] - 8001c4c: 4a6d ldr r2, [pc, #436] @ (8001e04 ) - 8001c4e: 63da str r2, [r3, #60] @ 0x3c - 8001c50: 4a6c ldr r2, [pc, #432] @ (8001e04 ) - 8001c52: 687b ldr r3, [r7, #4] - 8001c54: 6393 str r3, [r2, #56] @ 0x38 - hdma_usart1_tx.Instance = DMA2_Stream7; - 8001c56: 4b6d ldr r3, [pc, #436] @ (8001e0c ) - 8001c58: 4a6d ldr r2, [pc, #436] @ (8001e10 ) - 8001c5a: 601a str r2, [r3, #0] - hdma_usart1_tx.Init.Channel = DMA_CHANNEL_4; - 8001c5c: 4b6b ldr r3, [pc, #428] @ (8001e0c ) - 8001c5e: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001c62: 605a str r2, [r3, #4] - hdma_usart1_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; - 8001c64: 4b69 ldr r3, [pc, #420] @ (8001e0c ) - 8001c66: 2240 movs r2, #64 @ 0x40 - 8001c68: 609a str r2, [r3, #8] - hdma_usart1_tx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001c6a: 4b68 ldr r3, [pc, #416] @ (8001e0c ) - 8001c6c: 2200 movs r2, #0 - 8001c6e: 60da str r2, [r3, #12] - hdma_usart1_tx.Init.MemInc = DMA_MINC_ENABLE; - 8001c70: 4b66 ldr r3, [pc, #408] @ (8001e0c ) - 8001c72: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001c76: 611a str r2, [r3, #16] - hdma_usart1_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001c78: 4b64 ldr r3, [pc, #400] @ (8001e0c ) - 8001c7a: 2200 movs r2, #0 - 8001c7c: 615a str r2, [r3, #20] - hdma_usart1_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001c7e: 4b63 ldr r3, [pc, #396] @ (8001e0c ) - 8001c80: 2200 movs r2, #0 - 8001c82: 619a str r2, [r3, #24] - hdma_usart1_tx.Init.Mode = DMA_NORMAL; - 8001c84: 4b61 ldr r3, [pc, #388] @ (8001e0c ) - 8001c86: 2200 movs r2, #0 - 8001c88: 61da str r2, [r3, #28] - hdma_usart1_tx.Init.Priority = DMA_PRIORITY_LOW; - 8001c8a: 4b60 ldr r3, [pc, #384] @ (8001e0c ) - 8001c8c: 2200 movs r2, #0 - 8001c8e: 621a str r2, [r3, #32] - hdma_usart1_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001c90: 4b5e ldr r3, [pc, #376] @ (8001e0c ) - 8001c92: 2200 movs r2, #0 - 8001c94: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_usart1_tx) != HAL_OK) - 8001c96: 485d ldr r0, [pc, #372] @ (8001e0c ) - 8001c98: f000 fa98 bl 80021cc - 8001c9c: 4603 mov r3, r0 - 8001c9e: 2b00 cmp r3, #0 - 8001ca0: d001 beq.n 8001ca6 - Error_Handler(); - 8001ca2: f7ff fae1 bl 8001268 - __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart1_tx); - 8001ca6: 687b ldr r3, [r7, #4] - 8001ca8: 4a58 ldr r2, [pc, #352] @ (8001e0c ) - 8001caa: 639a str r2, [r3, #56] @ 0x38 - 8001cac: 4a57 ldr r2, [pc, #348] @ (8001e0c ) - 8001cae: 687b ldr r3, [r7, #4] - 8001cb0: 6393 str r3, [r2, #56] @ 0x38 - HAL_NVIC_SetPriority(USART1_IRQn, 5, 0); - 8001cb2: 2200 movs r2, #0 - 8001cb4: 2105 movs r1, #5 - 8001cb6: 2025 movs r0, #37 @ 0x25 - 8001cb8: f000 fa51 bl 800215e - HAL_NVIC_EnableIRQ(USART1_IRQn); - 8001cbc: 2025 movs r0, #37 @ 0x25 - 8001cbe: f000 fa6a bl 8002196 -} - 8001cc2: e095 b.n 8001df0 - else if(uartHandle->Instance==USART2) + 8001b64: 615a str r2, [r3, #20] + 8001b66: 4b78 ldr r3, [pc, #480] @ (8001d48 ) + 8001b68: 2200 movs r2, #0 + 8001b6a: 619a str r2, [r3, #24] + 8001b6c: 4b76 ldr r3, [pc, #472] @ (8001d48 ) + 8001b6e: 2200 movs r2, #0 + 8001b70: 61da str r2, [r3, #28] + 8001b72: 4b75 ldr r3, [pc, #468] @ (8001d48 ) + 8001b74: 2200 movs r2, #0 + 8001b76: 621a str r2, [r3, #32] + 8001b78: 4b73 ldr r3, [pc, #460] @ (8001d48 ) + 8001b7a: 2200 movs r2, #0 + 8001b7c: 625a str r2, [r3, #36] @ 0x24 + 8001b7e: 4872 ldr r0, [pc, #456] @ (8001d48 ) + 8001b80: f000 fac6 bl 8002110 + 8001b84: 4603 mov r3, r0 + 8001b86: 2b00 cmp r3, #0 + 8001b88: d001 beq.n 8001b8e + 8001b8a: f7ff fb0f bl 80011ac + 8001b8e: 687b ldr r3, [r7, #4] + 8001b90: 4a6d ldr r2, [pc, #436] @ (8001d48 ) + 8001b92: 63da str r2, [r3, #60] @ 0x3c + 8001b94: 4a6c ldr r2, [pc, #432] @ (8001d48 ) + 8001b96: 687b ldr r3, [r7, #4] + 8001b98: 6393 str r3, [r2, #56] @ 0x38 + 8001b9a: 4b6d ldr r3, [pc, #436] @ (8001d50 ) + 8001b9c: 4a6d ldr r2, [pc, #436] @ (8001d54 ) + 8001b9e: 601a str r2, [r3, #0] + 8001ba0: 4b6b ldr r3, [pc, #428] @ (8001d50 ) + 8001ba2: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001ba6: 605a str r2, [r3, #4] + 8001ba8: 4b69 ldr r3, [pc, #420] @ (8001d50 ) + 8001baa: 2240 movs r2, #64 @ 0x40 + 8001bac: 609a str r2, [r3, #8] + 8001bae: 4b68 ldr r3, [pc, #416] @ (8001d50 ) + 8001bb0: 2200 movs r2, #0 + 8001bb2: 60da str r2, [r3, #12] + 8001bb4: 4b66 ldr r3, [pc, #408] @ (8001d50 ) + 8001bb6: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001bba: 611a str r2, [r3, #16] + 8001bbc: 4b64 ldr r3, [pc, #400] @ (8001d50 ) + 8001bbe: 2200 movs r2, #0 + 8001bc0: 615a str r2, [r3, #20] + 8001bc2: 4b63 ldr r3, [pc, #396] @ (8001d50 ) + 8001bc4: 2200 movs r2, #0 + 8001bc6: 619a str r2, [r3, #24] + 8001bc8: 4b61 ldr r3, [pc, #388] @ (8001d50 ) + 8001bca: 2200 movs r2, #0 + 8001bcc: 61da str r2, [r3, #28] + 8001bce: 4b60 ldr r3, [pc, #384] @ (8001d50 ) + 8001bd0: 2200 movs r2, #0 + 8001bd2: 621a str r2, [r3, #32] + 8001bd4: 4b5e ldr r3, [pc, #376] @ (8001d50 ) + 8001bd6: 2200 movs r2, #0 + 8001bd8: 625a str r2, [r3, #36] @ 0x24 + 8001bda: 485d ldr r0, [pc, #372] @ (8001d50 ) + 8001bdc: f000 fa98 bl 8002110 + 8001be0: 4603 mov r3, r0 + 8001be2: 2b00 cmp r3, #0 + 8001be4: d001 beq.n 8001bea + 8001be6: f7ff fae1 bl 80011ac + 8001bea: 687b ldr r3, [r7, #4] + 8001bec: 4a58 ldr r2, [pc, #352] @ (8001d50 ) + 8001bee: 639a str r2, [r3, #56] @ 0x38 + 8001bf0: 4a57 ldr r2, [pc, #348] @ (8001d50 ) + 8001bf2: 687b ldr r3, [r7, #4] + 8001bf4: 6393 str r3, [r2, #56] @ 0x38 + 8001bf6: 2200 movs r2, #0 + 8001bf8: 2105 movs r1, #5 + 8001bfa: 2025 movs r0, #37 @ 0x25 + 8001bfc: f000 fa51 bl 80020a2 + 8001c00: 2025 movs r0, #37 @ 0x25 + 8001c02: f000 fa6a bl 80020da + 8001c06: e095 b.n 8001d34 + 8001c08: 687b ldr r3, [r7, #4] + 8001c0a: 681b ldr r3, [r3, #0] + 8001c0c: 4a52 ldr r2, [pc, #328] @ (8001d58 ) + 8001c0e: 4293 cmp r3, r2 + 8001c10: f040 8090 bne.w 8001d34 + 8001c14: 2300 movs r3, #0 + 8001c16: 60fb str r3, [r7, #12] + 8001c18: 4b49 ldr r3, [pc, #292] @ (8001d40 ) + 8001c1a: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001c1c: 4a48 ldr r2, [pc, #288] @ (8001d40 ) + 8001c1e: f443 3300 orr.w r3, r3, #131072 @ 0x20000 + 8001c22: 6413 str r3, [r2, #64] @ 0x40 + 8001c24: 4b46 ldr r3, [pc, #280] @ (8001d40 ) + 8001c26: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001c28: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8001c2c: 60fb str r3, [r7, #12] + 8001c2e: 68fb ldr r3, [r7, #12] + 8001c30: 2300 movs r3, #0 + 8001c32: 60bb str r3, [r7, #8] + 8001c34: 4b42 ldr r3, [pc, #264] @ (8001d40 ) + 8001c36: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001c38: 4a41 ldr r2, [pc, #260] @ (8001d40 ) + 8001c3a: f043 0301 orr.w r3, r3, #1 + 8001c3e: 6313 str r3, [r2, #48] @ 0x30 + 8001c40: 4b3f ldr r3, [pc, #252] @ (8001d40 ) + 8001c42: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001c44: f003 0301 and.w r3, r3, #1 + 8001c48: 60bb str r3, [r7, #8] + 8001c4a: 68bb ldr r3, [r7, #8] + 8001c4c: 230c movs r3, #12 + 8001c4e: 62fb str r3, [r7, #44] @ 0x2c + 8001c50: 2302 movs r3, #2 + 8001c52: 633b str r3, [r7, #48] @ 0x30 + 8001c54: 2300 movs r3, #0 + 8001c56: 637b str r3, [r7, #52] @ 0x34 + 8001c58: 2303 movs r3, #3 + 8001c5a: 63bb str r3, [r7, #56] @ 0x38 + 8001c5c: 2307 movs r3, #7 + 8001c5e: 63fb str r3, [r7, #60] @ 0x3c + 8001c60: f107 032c add.w r3, r7, #44 @ 0x2c + 8001c64: 4619 mov r1, r3 + 8001c66: 4837 ldr r0, [pc, #220] @ (8001d44 ) + 8001c68: f000 fe54 bl 8002914 + 8001c6c: 4b3b ldr r3, [pc, #236] @ (8001d5c ) + 8001c6e: 4a3c ldr r2, [pc, #240] @ (8001d60 ) + 8001c70: 601a str r2, [r3, #0] + 8001c72: 4b3a ldr r3, [pc, #232] @ (8001d5c ) + 8001c74: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001c78: 605a str r2, [r3, #4] + 8001c7a: 4b38 ldr r3, [pc, #224] @ (8001d5c ) + 8001c7c: 2200 movs r2, #0 + 8001c7e: 609a str r2, [r3, #8] + 8001c80: 4b36 ldr r3, [pc, #216] @ (8001d5c ) + 8001c82: 2200 movs r2, #0 + 8001c84: 60da str r2, [r3, #12] + 8001c86: 4b35 ldr r3, [pc, #212] @ (8001d5c ) + 8001c88: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001c8c: 611a str r2, [r3, #16] + 8001c8e: 4b33 ldr r3, [pc, #204] @ (8001d5c ) + 8001c90: 2200 movs r2, #0 + 8001c92: 615a str r2, [r3, #20] + 8001c94: 4b31 ldr r3, [pc, #196] @ (8001d5c ) + 8001c96: 2200 movs r2, #0 + 8001c98: 619a str r2, [r3, #24] + 8001c9a: 4b30 ldr r3, [pc, #192] @ (8001d5c ) + 8001c9c: 2200 movs r2, #0 + 8001c9e: 61da str r2, [r3, #28] + 8001ca0: 4b2e ldr r3, [pc, #184] @ (8001d5c ) + 8001ca2: 2200 movs r2, #0 + 8001ca4: 621a str r2, [r3, #32] + 8001ca6: 4b2d ldr r3, [pc, #180] @ (8001d5c ) + 8001ca8: 2200 movs r2, #0 + 8001caa: 625a str r2, [r3, #36] @ 0x24 + 8001cac: 482b ldr r0, [pc, #172] @ (8001d5c ) + 8001cae: f000 fa2f bl 8002110 + 8001cb2: 4603 mov r3, r0 + 8001cb4: 2b00 cmp r3, #0 + 8001cb6: d001 beq.n 8001cbc + 8001cb8: f7ff fa78 bl 80011ac + 8001cbc: 687b ldr r3, [r7, #4] + 8001cbe: 4a27 ldr r2, [pc, #156] @ (8001d5c ) + 8001cc0: 63da str r2, [r3, #60] @ 0x3c + 8001cc2: 4a26 ldr r2, [pc, #152] @ (8001d5c ) 8001cc4: 687b ldr r3, [r7, #4] - 8001cc6: 681b ldr r3, [r3, #0] - 8001cc8: 4a52 ldr r2, [pc, #328] @ (8001e14 ) - 8001cca: 4293 cmp r3, r2 - 8001ccc: f040 8090 bne.w 8001df0 - __HAL_RCC_USART2_CLK_ENABLE(); - 8001cd0: 2300 movs r3, #0 - 8001cd2: 60fb str r3, [r7, #12] - 8001cd4: 4b49 ldr r3, [pc, #292] @ (8001dfc ) - 8001cd6: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001cd8: 4a48 ldr r2, [pc, #288] @ (8001dfc ) - 8001cda: f443 3300 orr.w r3, r3, #131072 @ 0x20000 - 8001cde: 6413 str r3, [r2, #64] @ 0x40 - 8001ce0: 4b46 ldr r3, [pc, #280] @ (8001dfc ) - 8001ce2: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001ce4: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8001ce8: 60fb str r3, [r7, #12] - 8001cea: 68fb ldr r3, [r7, #12] - __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001cec: 2300 movs r3, #0 - 8001cee: 60bb str r3, [r7, #8] - 8001cf0: 4b42 ldr r3, [pc, #264] @ (8001dfc ) - 8001cf2: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001cf4: 4a41 ldr r2, [pc, #260] @ (8001dfc ) - 8001cf6: f043 0301 orr.w r3, r3, #1 - 8001cfa: 6313 str r3, [r2, #48] @ 0x30 - 8001cfc: 4b3f ldr r3, [pc, #252] @ (8001dfc ) - 8001cfe: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001d00: f003 0301 and.w r3, r3, #1 - 8001d04: 60bb str r3, [r7, #8] - 8001d06: 68bb ldr r3, [r7, #8] - GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3; - 8001d08: 230c movs r3, #12 - 8001d0a: 62fb str r3, [r7, #44] @ 0x2c - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001d0c: 2302 movs r3, #2 - 8001d0e: 633b str r3, [r7, #48] @ 0x30 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001d10: 2300 movs r3, #0 - 8001d12: 637b str r3, [r7, #52] @ 0x34 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8001d14: 2303 movs r3, #3 - 8001d16: 63bb str r3, [r7, #56] @ 0x38 - GPIO_InitStruct.Alternate = GPIO_AF7_USART2; - 8001d18: 2307 movs r3, #7 - 8001d1a: 63fb str r3, [r7, #60] @ 0x3c - HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8001d1c: f107 032c add.w r3, r7, #44 @ 0x2c - 8001d20: 4619 mov r1, r3 - 8001d22: 4837 ldr r0, [pc, #220] @ (8001e00 ) - 8001d24: f000 fe54 bl 80029d0 - hdma_usart2_rx.Instance = DMA1_Stream5; - 8001d28: 4b3b ldr r3, [pc, #236] @ (8001e18 ) - 8001d2a: 4a3c ldr r2, [pc, #240] @ (8001e1c ) - 8001d2c: 601a str r2, [r3, #0] - hdma_usart2_rx.Init.Channel = DMA_CHANNEL_4; - 8001d2e: 4b3a ldr r3, [pc, #232] @ (8001e18 ) - 8001d30: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001d34: 605a str r2, [r3, #4] - hdma_usart2_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - 8001d36: 4b38 ldr r3, [pc, #224] @ (8001e18 ) - 8001d38: 2200 movs r2, #0 - 8001d3a: 609a str r2, [r3, #8] - hdma_usart2_rx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001d3c: 4b36 ldr r3, [pc, #216] @ (8001e18 ) - 8001d3e: 2200 movs r2, #0 - 8001d40: 60da str r2, [r3, #12] - hdma_usart2_rx.Init.MemInc = DMA_MINC_ENABLE; - 8001d42: 4b35 ldr r3, [pc, #212] @ (8001e18 ) - 8001d44: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001d48: 611a str r2, [r3, #16] - hdma_usart2_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001d4a: 4b33 ldr r3, [pc, #204] @ (8001e18 ) - 8001d4c: 2200 movs r2, #0 - 8001d4e: 615a str r2, [r3, #20] - hdma_usart2_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001d50: 4b31 ldr r3, [pc, #196] @ (8001e18 ) - 8001d52: 2200 movs r2, #0 - 8001d54: 619a str r2, [r3, #24] - hdma_usart2_rx.Init.Mode = DMA_NORMAL; - 8001d56: 4b30 ldr r3, [pc, #192] @ (8001e18 ) - 8001d58: 2200 movs r2, #0 - 8001d5a: 61da str r2, [r3, #28] - hdma_usart2_rx.Init.Priority = DMA_PRIORITY_LOW; - 8001d5c: 4b2e ldr r3, [pc, #184] @ (8001e18 ) - 8001d5e: 2200 movs r2, #0 - 8001d60: 621a str r2, [r3, #32] - hdma_usart2_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001d62: 4b2d ldr r3, [pc, #180] @ (8001e18 ) - 8001d64: 2200 movs r2, #0 - 8001d66: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_usart2_rx) != HAL_OK) - 8001d68: 482b ldr r0, [pc, #172] @ (8001e18 ) - 8001d6a: f000 fa2f bl 80021cc - 8001d6e: 4603 mov r3, r0 - 8001d70: 2b00 cmp r3, #0 - 8001d72: d001 beq.n 8001d78 - Error_Handler(); - 8001d74: f7ff fa78 bl 8001268 - __HAL_LINKDMA(uartHandle,hdmarx,hdma_usart2_rx); - 8001d78: 687b ldr r3, [r7, #4] - 8001d7a: 4a27 ldr r2, [pc, #156] @ (8001e18 ) - 8001d7c: 63da str r2, [r3, #60] @ 0x3c - 8001d7e: 4a26 ldr r2, [pc, #152] @ (8001e18 ) - 8001d80: 687b ldr r3, [r7, #4] - 8001d82: 6393 str r3, [r2, #56] @ 0x38 - hdma_usart2_tx.Instance = DMA1_Stream6; - 8001d84: 4b26 ldr r3, [pc, #152] @ (8001e20 ) - 8001d86: 4a27 ldr r2, [pc, #156] @ (8001e24 ) - 8001d88: 601a str r2, [r3, #0] - hdma_usart2_tx.Init.Channel = DMA_CHANNEL_4; - 8001d8a: 4b25 ldr r3, [pc, #148] @ (8001e20 ) - 8001d8c: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001d90: 605a str r2, [r3, #4] - hdma_usart2_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; - 8001d92: 4b23 ldr r3, [pc, #140] @ (8001e20 ) - 8001d94: 2240 movs r2, #64 @ 0x40 - 8001d96: 609a str r2, [r3, #8] - hdma_usart2_tx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001d98: 4b21 ldr r3, [pc, #132] @ (8001e20 ) - 8001d9a: 2200 movs r2, #0 - 8001d9c: 60da str r2, [r3, #12] - hdma_usart2_tx.Init.MemInc = DMA_MINC_ENABLE; - 8001d9e: 4b20 ldr r3, [pc, #128] @ (8001e20 ) - 8001da0: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001da4: 611a str r2, [r3, #16] - hdma_usart2_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001da6: 4b1e ldr r3, [pc, #120] @ (8001e20 ) - 8001da8: 2200 movs r2, #0 - 8001daa: 615a str r2, [r3, #20] - hdma_usart2_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001dac: 4b1c ldr r3, [pc, #112] @ (8001e20 ) - 8001dae: 2200 movs r2, #0 - 8001db0: 619a str r2, [r3, #24] - hdma_usart2_tx.Init.Mode = DMA_NORMAL; - 8001db2: 4b1b ldr r3, [pc, #108] @ (8001e20 ) - 8001db4: 2200 movs r2, #0 - 8001db6: 61da str r2, [r3, #28] - hdma_usart2_tx.Init.Priority = DMA_PRIORITY_LOW; - 8001db8: 4b19 ldr r3, [pc, #100] @ (8001e20 ) - 8001dba: 2200 movs r2, #0 - 8001dbc: 621a str r2, [r3, #32] - hdma_usart2_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001dbe: 4b18 ldr r3, [pc, #96] @ (8001e20 ) - 8001dc0: 2200 movs r2, #0 - 8001dc2: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_usart2_tx) != HAL_OK) - 8001dc4: 4816 ldr r0, [pc, #88] @ (8001e20 ) - 8001dc6: f000 fa01 bl 80021cc - 8001dca: 4603 mov r3, r0 - 8001dcc: 2b00 cmp r3, #0 - 8001dce: d001 beq.n 8001dd4 - Error_Handler(); - 8001dd0: f7ff fa4a bl 8001268 - __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart2_tx); - 8001dd4: 687b ldr r3, [r7, #4] - 8001dd6: 4a12 ldr r2, [pc, #72] @ (8001e20 ) - 8001dd8: 639a str r2, [r3, #56] @ 0x38 - 8001dda: 4a11 ldr r2, [pc, #68] @ (8001e20 ) - 8001ddc: 687b ldr r3, [r7, #4] - 8001dde: 6393 str r3, [r2, #56] @ 0x38 - HAL_NVIC_SetPriority(USART2_IRQn, 5, 0); - 8001de0: 2200 movs r2, #0 - 8001de2: 2105 movs r1, #5 - 8001de4: 2026 movs r0, #38 @ 0x26 - 8001de6: f000 f9ba bl 800215e - HAL_NVIC_EnableIRQ(USART2_IRQn); - 8001dea: 2026 movs r0, #38 @ 0x26 - 8001dec: f000 f9d3 bl 8002196 -} - 8001df0: bf00 nop - 8001df2: 3740 adds r7, #64 @ 0x40 - 8001df4: 46bd mov sp, r7 - 8001df6: bd80 pop {r7, pc} - 8001df8: 40011000 .word 0x40011000 - 8001dfc: 40023800 .word 0x40023800 - 8001e00: 40020000 .word 0x40020000 - 8001e04: 20000ca0 .word 0x20000ca0 - 8001e08: 40026440 .word 0x40026440 - 8001e0c: 20000d00 .word 0x20000d00 - 8001e10: 400264b8 .word 0x400264b8 - 8001e14: 40004400 .word 0x40004400 - 8001e18: 20000d60 .word 0x20000d60 - 8001e1c: 40026088 .word 0x40026088 - 8001e20: 20000dc0 .word 0x20000dc0 - 8001e24: 400260a0 .word 0x400260a0 + 8001cc6: 6393 str r3, [r2, #56] @ 0x38 + 8001cc8: 4b26 ldr r3, [pc, #152] @ (8001d64 ) + 8001cca: 4a27 ldr r2, [pc, #156] @ (8001d68 ) + 8001ccc: 601a str r2, [r3, #0] + 8001cce: 4b25 ldr r3, [pc, #148] @ (8001d64 ) + 8001cd0: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001cd4: 605a str r2, [r3, #4] + 8001cd6: 4b23 ldr r3, [pc, #140] @ (8001d64 ) + 8001cd8: 2240 movs r2, #64 @ 0x40 + 8001cda: 609a str r2, [r3, #8] + 8001cdc: 4b21 ldr r3, [pc, #132] @ (8001d64 ) + 8001cde: 2200 movs r2, #0 + 8001ce0: 60da str r2, [r3, #12] + 8001ce2: 4b20 ldr r3, [pc, #128] @ (8001d64 ) + 8001ce4: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001ce8: 611a str r2, [r3, #16] + 8001cea: 4b1e ldr r3, [pc, #120] @ (8001d64 ) + 8001cec: 2200 movs r2, #0 + 8001cee: 615a str r2, [r3, #20] + 8001cf0: 4b1c ldr r3, [pc, #112] @ (8001d64 ) + 8001cf2: 2200 movs r2, #0 + 8001cf4: 619a str r2, [r3, #24] + 8001cf6: 4b1b ldr r3, [pc, #108] @ (8001d64 ) + 8001cf8: 2200 movs r2, #0 + 8001cfa: 61da str r2, [r3, #28] + 8001cfc: 4b19 ldr r3, [pc, #100] @ (8001d64 ) + 8001cfe: 2200 movs r2, #0 + 8001d00: 621a str r2, [r3, #32] + 8001d02: 4b18 ldr r3, [pc, #96] @ (8001d64 ) + 8001d04: 2200 movs r2, #0 + 8001d06: 625a str r2, [r3, #36] @ 0x24 + 8001d08: 4816 ldr r0, [pc, #88] @ (8001d64 ) + 8001d0a: f000 fa01 bl 8002110 + 8001d0e: 4603 mov r3, r0 + 8001d10: 2b00 cmp r3, #0 + 8001d12: d001 beq.n 8001d18 + 8001d14: f7ff fa4a bl 80011ac + 8001d18: 687b ldr r3, [r7, #4] + 8001d1a: 4a12 ldr r2, [pc, #72] @ (8001d64 ) + 8001d1c: 639a str r2, [r3, #56] @ 0x38 + 8001d1e: 4a11 ldr r2, [pc, #68] @ (8001d64 ) + 8001d20: 687b ldr r3, [r7, #4] + 8001d22: 6393 str r3, [r2, #56] @ 0x38 + 8001d24: 2200 movs r2, #0 + 8001d26: 2105 movs r1, #5 + 8001d28: 2026 movs r0, #38 @ 0x26 + 8001d2a: f000 f9ba bl 80020a2 + 8001d2e: 2026 movs r0, #38 @ 0x26 + 8001d30: f000 f9d3 bl 80020da + 8001d34: bf00 nop + 8001d36: 3740 adds r7, #64 @ 0x40 + 8001d38: 46bd mov sp, r7 + 8001d3a: bd80 pop {r7, pc} + 8001d3c: 40011000 .word 0x40011000 + 8001d40: 40023800 .word 0x40023800 + 8001d44: 40020000 .word 0x40020000 + 8001d48: 20000c4c .word 0x20000c4c + 8001d4c: 40026440 .word 0x40026440 + 8001d50: 20000cac .word 0x20000cac + 8001d54: 400264b8 .word 0x400264b8 + 8001d58: 40004400 .word 0x40004400 + 8001d5c: 20000d0c .word 0x20000d0c + 8001d60: 40026088 .word 0x40026088 + 8001d64: 20000d6c .word 0x20000d6c + 8001d68: 400260a0 .word 0x400260a0 -08001e28 : +08001d6c : + 8001d6c: f8df d034 ldr.w sp, [pc, #52] @ 8001da4 + 8001d70: f7ff fb34 bl 80013dc + 8001d74: 480c ldr r0, [pc, #48] @ (8001da8 ) + 8001d76: 490d ldr r1, [pc, #52] @ (8001dac ) + 8001d78: 4a0d ldr r2, [pc, #52] @ (8001db0 ) + 8001d7a: 2300 movs r3, #0 + 8001d7c: e002 b.n 8001d84 - .section .text.Reset_Handler - .weak Reset_Handler - .type Reset_Handler, %function -Reset_Handler: - ldr sp, =_estack /* set stack pointer */ - 8001e28: f8df d034 ldr.w sp, [pc, #52] @ 8001e60 - -/* Call the clock system initialization function.*/ - bl SystemInit - 8001e2c: f7ff fb34 bl 8001498 +08001d7e : + 8001d7e: 58d4 ldr r4, [r2, r3] + 8001d80: 50c4 str r4, [r0, r3] + 8001d82: 3304 adds r3, #4 -/* Copy the data segment initializers from flash to SRAM */ - ldr r0, =_sdata - 8001e30: 480c ldr r0, [pc, #48] @ (8001e64 ) - ldr r1, =_edata - 8001e32: 490d ldr r1, [pc, #52] @ (8001e68 ) - ldr r2, =_sidata - 8001e34: 4a0d ldr r2, [pc, #52] @ (8001e6c ) - movs r3, #0 - 8001e36: 2300 movs r3, #0 - b LoopCopyDataInit - 8001e38: e002 b.n 8001e40 +08001d84 : + 8001d84: 18c4 adds r4, r0, r3 + 8001d86: 428c cmp r4, r1 + 8001d88: d3f9 bcc.n 8001d7e + 8001d8a: 4a0a ldr r2, [pc, #40] @ (8001db4 ) + 8001d8c: 4c0a ldr r4, [pc, #40] @ (8001db8 ) + 8001d8e: 2300 movs r3, #0 + 8001d90: e001 b.n 8001d96 -08001e3a : +08001d92 : + 8001d92: 6013 str r3, [r2, #0] + 8001d94: 3204 adds r2, #4 -CopyDataInit: - ldr r4, [r2, r3] - 8001e3a: 58d4 ldr r4, [r2, r3] - str r4, [r0, r3] - 8001e3c: 50c4 str r4, [r0, r3] - adds r3, r3, #4 - 8001e3e: 3304 adds r3, #4 +08001d96 : + 8001d96: 42a2 cmp r2, r4 + 8001d98: d3fb bcc.n 8001d92 + 8001d9a: f009 f94f bl 800b03c <__libc_init_array> + 8001d9e: f7fe fd5d bl 800085c
+ 8001da2: 4770 bx lr + 8001da4: 20020000 .word 0x20020000 + 8001da8: 20000000 .word 0x20000000 + 8001dac: 20000214 .word 0x20000214 + 8001db0: 0800b124 .word 0x0800b124 + 8001db4: 20000214 .word 0x20000214 + 8001db8: 200017a8 .word 0x200017a8 -08001e40 : +08001dbc : + 8001dbc: e7fe b.n 8001dbc + ... -LoopCopyDataInit: - adds r4, r0, r3 - 8001e40: 18c4 adds r4, r0, r3 - cmp r4, r1 - 8001e42: 428c cmp r4, r1 - bcc CopyDataInit - 8001e44: d3f9 bcc.n 8001e3a - -/* Zero fill the bss segment. */ - ldr r2, =_sbss - 8001e46: 4a0a ldr r2, [pc, #40] @ (8001e70 ) - ldr r4, =_ebss - 8001e48: 4c0a ldr r4, [pc, #40] @ (8001e74 ) - movs r3, #0 +08001dc0 : + 8001dc0: b580 push {r7, lr} + 8001dc2: af00 add r7, sp, #0 + 8001dc4: 4b0e ldr r3, [pc, #56] @ (8001e00 ) + 8001dc6: 681b ldr r3, [r3, #0] + 8001dc8: 4a0d ldr r2, [pc, #52] @ (8001e00 ) + 8001dca: f443 7300 orr.w r3, r3, #512 @ 0x200 + 8001dce: 6013 str r3, [r2, #0] + 8001dd0: 4b0b ldr r3, [pc, #44] @ (8001e00 ) + 8001dd2: 681b ldr r3, [r3, #0] + 8001dd4: 4a0a ldr r2, [pc, #40] @ (8001e00 ) + 8001dd6: f443 6380 orr.w r3, r3, #1024 @ 0x400 + 8001dda: 6013 str r3, [r2, #0] + 8001ddc: 4b08 ldr r3, [pc, #32] @ (8001e00 ) + 8001dde: 681b ldr r3, [r3, #0] + 8001de0: 4a07 ldr r2, [pc, #28] @ (8001e00 ) + 8001de2: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8001de6: 6013 str r3, [r2, #0] + 8001de8: 2003 movs r0, #3 + 8001dea: f000 f94f bl 800208c + 8001dee: 200f movs r0, #15 + 8001df0: f000 f808 bl 8001e04 + 8001df4: f7ff fa18 bl 8001228 + 8001df8: 2300 movs r3, #0 + 8001dfa: 4618 mov r0, r3 + 8001dfc: bd80 pop {r7, pc} + 8001dfe: bf00 nop + 8001e00: 40023c00 .word 0x40023c00 + +08001e04 : + 8001e04: b580 push {r7, lr} + 8001e06: b082 sub sp, #8 + 8001e08: af00 add r7, sp, #0 + 8001e0a: 6078 str r0, [r7, #4] + 8001e0c: 4b12 ldr r3, [pc, #72] @ (8001e58 ) + 8001e0e: 681a ldr r2, [r3, #0] + 8001e10: 4b12 ldr r3, [pc, #72] @ (8001e5c ) + 8001e12: 781b ldrb r3, [r3, #0] + 8001e14: 4619 mov r1, r3 + 8001e16: f44f 737a mov.w r3, #1000 @ 0x3e8 + 8001e1a: fbb3 f3f1 udiv r3, r3, r1 + 8001e1e: fbb2 f3f3 udiv r3, r2, r3 + 8001e22: 4618 mov r0, r3 + 8001e24: f000 f967 bl 80020f6 + 8001e28: 4603 mov r3, r0 + 8001e2a: 2b00 cmp r3, #0 + 8001e2c: d001 beq.n 8001e32 + 8001e2e: 2301 movs r3, #1 + 8001e30: e00e b.n 8001e50 + 8001e32: 687b ldr r3, [r7, #4] + 8001e34: 2b0f cmp r3, #15 + 8001e36: d80a bhi.n 8001e4e + 8001e38: 2200 movs r2, #0 + 8001e3a: 6879 ldr r1, [r7, #4] + 8001e3c: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff + 8001e40: f000 f92f bl 80020a2 + 8001e44: 4a06 ldr r2, [pc, #24] @ (8001e60 ) + 8001e46: 687b ldr r3, [r7, #4] + 8001e48: 6013 str r3, [r2, #0] 8001e4a: 2300 movs r3, #0 - b LoopFillZerobss - 8001e4c: e001 b.n 8001e52 + 8001e4c: e000 b.n 8001e50 + 8001e4e: 2301 movs r3, #1 + 8001e50: 4618 mov r0, r3 + 8001e52: 3708 adds r7, #8 + 8001e54: 46bd mov sp, r7 + 8001e56: bd80 pop {r7, pc} + 8001e58: 20000104 .word 0x20000104 + 8001e5c: 2000010c .word 0x2000010c + 8001e60: 20000108 .word 0x20000108 -08001e4e : +08001e64 : + 8001e64: b480 push {r7} + 8001e66: af00 add r7, sp, #0 + 8001e68: 4b06 ldr r3, [pc, #24] @ (8001e84 ) + 8001e6a: 781b ldrb r3, [r3, #0] + 8001e6c: 461a mov r2, r3 + 8001e6e: 4b06 ldr r3, [pc, #24] @ (8001e88 ) + 8001e70: 681b ldr r3, [r3, #0] + 8001e72: 4413 add r3, r2 + 8001e74: 4a04 ldr r2, [pc, #16] @ (8001e88 ) + 8001e76: 6013 str r3, [r2, #0] + 8001e78: bf00 nop + 8001e7a: 46bd mov sp, r7 + 8001e7c: f85d 7b04 ldr.w r7, [sp], #4 + 8001e80: 4770 bx lr + 8001e82: bf00 nop + 8001e84: 2000010c .word 0x2000010c + 8001e88: 20000dcc .word 0x20000dcc -FillZerobss: - str r3, [r2] - 8001e4e: 6013 str r3, [r2, #0] - adds r2, r2, #4 - 8001e50: 3204 adds r2, #4 +08001e8c : + 8001e8c: b480 push {r7} + 8001e8e: af00 add r7, sp, #0 + 8001e90: 4b03 ldr r3, [pc, #12] @ (8001ea0 ) + 8001e92: 681b ldr r3, [r3, #0] + 8001e94: 4618 mov r0, r3 + 8001e96: 46bd mov sp, r7 + 8001e98: f85d 7b04 ldr.w r7, [sp], #4 + 8001e9c: 4770 bx lr + 8001e9e: bf00 nop + 8001ea0: 20000dcc .word 0x20000dcc -08001e52 : +08001ea4 : + 8001ea4: b580 push {r7, lr} + 8001ea6: b084 sub sp, #16 + 8001ea8: af00 add r7, sp, #0 + 8001eaa: 6078 str r0, [r7, #4] + 8001eac: f7ff ffee bl 8001e8c + 8001eb0: 60b8 str r0, [r7, #8] + 8001eb2: 687b ldr r3, [r7, #4] + 8001eb4: 60fb str r3, [r7, #12] + 8001eb6: 68fb ldr r3, [r7, #12] + 8001eb8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff + 8001ebc: d005 beq.n 8001eca + 8001ebe: 4b0a ldr r3, [pc, #40] @ (8001ee8 ) + 8001ec0: 781b ldrb r3, [r3, #0] + 8001ec2: 461a mov r2, r3 + 8001ec4: 68fb ldr r3, [r7, #12] + 8001ec6: 4413 add r3, r2 + 8001ec8: 60fb str r3, [r7, #12] + 8001eca: bf00 nop + 8001ecc: f7ff ffde bl 8001e8c + 8001ed0: 4602 mov r2, r0 + 8001ed2: 68bb ldr r3, [r7, #8] + 8001ed4: 1ad3 subs r3, r2, r3 + 8001ed6: 68fa ldr r2, [r7, #12] + 8001ed8: 429a cmp r2, r3 + 8001eda: d8f7 bhi.n 8001ecc + 8001edc: bf00 nop + 8001ede: bf00 nop + 8001ee0: 3710 adds r7, #16 + 8001ee2: 46bd mov sp, r7 + 8001ee4: bd80 pop {r7, pc} + 8001ee6: bf00 nop + 8001ee8: 2000010c .word 0x2000010c -LoopFillZerobss: - cmp r2, r4 - 8001e52: 42a2 cmp r2, r4 - bcc FillZerobss - 8001e54: d3fb bcc.n 8001e4e - -/* Call static constructors */ - bl __libc_init_array - 8001e56: f009 fa93 bl 800b380 <__libc_init_array> -/* Call the application's entry point.*/ - bl main - 8001e5a: f7fe fd75 bl 8000948
- bx lr - 8001e5e: 4770 bx lr - ldr sp, =_estack /* set stack pointer */ - 8001e60: 20020000 .word 0x20020000 - ldr r0, =_sdata - 8001e64: 20000000 .word 0x20000000 - ldr r1, =_edata - 8001e68: 20000214 .word 0x20000214 - ldr r2, =_sidata - 8001e6c: 0800b468 .word 0x0800b468 - ldr r2, =_sbss - 8001e70: 20000214 .word 0x20000214 - ldr r4, =_ebss - 8001e74: 200017fc .word 0x200017fc +08001eec <__NVIC_SetPriorityGrouping>: + 8001eec: b480 push {r7} + 8001eee: b085 sub sp, #20 + 8001ef0: af00 add r7, sp, #0 + 8001ef2: 6078 str r0, [r7, #4] + 8001ef4: 687b ldr r3, [r7, #4] + 8001ef6: f003 0307 and.w r3, r3, #7 + 8001efa: 60fb str r3, [r7, #12] + 8001efc: 4b0c ldr r3, [pc, #48] @ (8001f30 <__NVIC_SetPriorityGrouping+0x44>) + 8001efe: 68db ldr r3, [r3, #12] + 8001f00: 60bb str r3, [r7, #8] + 8001f02: 68ba ldr r2, [r7, #8] + 8001f04: f64f 03ff movw r3, #63743 @ 0xf8ff + 8001f08: 4013 ands r3, r2 + 8001f0a: 60bb str r3, [r7, #8] + 8001f0c: 68fb ldr r3, [r7, #12] + 8001f0e: 021a lsls r2, r3, #8 + 8001f10: 68bb ldr r3, [r7, #8] + 8001f12: 4313 orrs r3, r2 + 8001f14: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 + 8001f18: f443 3300 orr.w r3, r3, #131072 @ 0x20000 + 8001f1c: 60bb str r3, [r7, #8] + 8001f1e: 4a04 ldr r2, [pc, #16] @ (8001f30 <__NVIC_SetPriorityGrouping+0x44>) + 8001f20: 68bb ldr r3, [r7, #8] + 8001f22: 60d3 str r3, [r2, #12] + 8001f24: bf00 nop + 8001f26: 3714 adds r7, #20 + 8001f28: 46bd mov sp, r7 + 8001f2a: f85d 7b04 ldr.w r7, [sp], #4 + 8001f2e: 4770 bx lr + 8001f30: e000ed00 .word 0xe000ed00 -08001e78 : - * @retval None -*/ - .section .text.Default_Handler,"ax",%progbits -Default_Handler: -Infinite_Loop: - b Infinite_Loop - 8001e78: e7fe b.n 8001e78 - ... +08001f34 <__NVIC_GetPriorityGrouping>: + 8001f34: b480 push {r7} + 8001f36: af00 add r7, sp, #0 + 8001f38: 4b04 ldr r3, [pc, #16] @ (8001f4c <__NVIC_GetPriorityGrouping+0x18>) + 8001f3a: 68db ldr r3, [r3, #12] + 8001f3c: 0a1b lsrs r3, r3, #8 + 8001f3e: f003 0307 and.w r3, r3, #7 + 8001f42: 4618 mov r0, r3 + 8001f44: 46bd mov sp, r7 + 8001f46: f85d 7b04 ldr.w r7, [sp], #4 + 8001f4a: 4770 bx lr + 8001f4c: e000ed00 .word 0xe000ed00 -08001e7c : - * 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) -{ - 8001e7c: b580 push {r7, lr} - 8001e7e: af00 add r7, sp, #0 - /* Configure Flash prefetch, Instruction cache, Data cache */ -#if (INSTRUCTION_CACHE_ENABLE != 0U) - __HAL_FLASH_INSTRUCTION_CACHE_ENABLE(); - 8001e80: 4b0e ldr r3, [pc, #56] @ (8001ebc ) - 8001e82: 681b ldr r3, [r3, #0] - 8001e84: 4a0d ldr r2, [pc, #52] @ (8001ebc ) - 8001e86: f443 7300 orr.w r3, r3, #512 @ 0x200 - 8001e8a: 6013 str r3, [r2, #0] -#endif /* INSTRUCTION_CACHE_ENABLE */ - -#if (DATA_CACHE_ENABLE != 0U) - __HAL_FLASH_DATA_CACHE_ENABLE(); - 8001e8c: 4b0b ldr r3, [pc, #44] @ (8001ebc ) - 8001e8e: 681b ldr r3, [r3, #0] - 8001e90: 4a0a ldr r2, [pc, #40] @ (8001ebc ) - 8001e92: f443 6380 orr.w r3, r3, #1024 @ 0x400 - 8001e96: 6013 str r3, [r2, #0] -#endif /* DATA_CACHE_ENABLE */ - -#if (PREFETCH_ENABLE != 0U) - __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); - 8001e98: 4b08 ldr r3, [pc, #32] @ (8001ebc ) - 8001e9a: 681b ldr r3, [r3, #0] - 8001e9c: 4a07 ldr r2, [pc, #28] @ (8001ebc ) - 8001e9e: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8001ea2: 6013 str r3, [r2, #0] -#endif /* PREFETCH_ENABLE */ - - /* Set Interrupt Group Priority */ - HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - 8001ea4: 2003 movs r0, #3 - 8001ea6: f000 f94f bl 8002148 - - /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ - HAL_InitTick(TICK_INT_PRIORITY); - 8001eaa: 200f movs r0, #15 - 8001eac: f000 f808 bl 8001ec0 - - /* Init the low level hardware */ - HAL_MspInit(); - 8001eb0: f7ff fa18 bl 80012e4 - - /* Return function status */ - return HAL_OK; - 8001eb4: 2300 movs r3, #0 -} - 8001eb6: 4618 mov r0, r3 - 8001eb8: bd80 pop {r7, pc} - 8001eba: bf00 nop - 8001ebc: 40023c00 .word 0x40023c00 - -08001ec0 : - * implementation in user file. - * @param TickPriority Tick interrupt priority. - * @retval HAL status - */ -__weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) -{ - 8001ec0: b580 push {r7, lr} - 8001ec2: b082 sub sp, #8 - 8001ec4: af00 add r7, sp, #0 - 8001ec6: 6078 str r0, [r7, #4] - /* Configure the SysTick to have interrupt in 1ms time basis*/ - if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) - 8001ec8: 4b12 ldr r3, [pc, #72] @ (8001f14 ) - 8001eca: 681a ldr r2, [r3, #0] - 8001ecc: 4b12 ldr r3, [pc, #72] @ (8001f18 ) - 8001ece: 781b ldrb r3, [r3, #0] - 8001ed0: 4619 mov r1, r3 - 8001ed2: f44f 737a mov.w r3, #1000 @ 0x3e8 - 8001ed6: fbb3 f3f1 udiv r3, r3, r1 - 8001eda: fbb2 f3f3 udiv r3, r2, r3 - 8001ede: 4618 mov r0, r3 - 8001ee0: f000 f967 bl 80021b2 - 8001ee4: 4603 mov r3, r0 - 8001ee6: 2b00 cmp r3, #0 - 8001ee8: d001 beq.n 8001eee - { - return HAL_ERROR; - 8001eea: 2301 movs r3, #1 - 8001eec: e00e b.n 8001f0c - } - - /* Configure the SysTick IRQ priority */ - if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 8001eee: 687b ldr r3, [r7, #4] - 8001ef0: 2b0f cmp r3, #15 - 8001ef2: d80a bhi.n 8001f0a - { - HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); - 8001ef4: 2200 movs r2, #0 - 8001ef6: 6879 ldr r1, [r7, #4] - 8001ef8: f04f 30ff mov.w r0, #4294967295 - 8001efc: f000 f92f bl 800215e - uwTickPrio = TickPriority; - 8001f00: 4a06 ldr r2, [pc, #24] @ (8001f1c ) - 8001f02: 687b ldr r3, [r7, #4] - 8001f04: 6013 str r3, [r2, #0] - { - return HAL_ERROR; - } - - /* Return function status */ - return HAL_OK; - 8001f06: 2300 movs r3, #0 - 8001f08: e000 b.n 8001f0c - return HAL_ERROR; - 8001f0a: 2301 movs r3, #1 -} - 8001f0c: 4618 mov r0, r3 - 8001f0e: 3708 adds r7, #8 - 8001f10: 46bd mov sp, r7 - 8001f12: bd80 pop {r7, pc} - 8001f14: 20000104 .word 0x20000104 - 8001f18: 2000010c .word 0x2000010c - 8001f1c: 20000108 .word 0x20000108 - -08001f20 : - * @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) -{ - 8001f20: b480 push {r7} - 8001f22: af00 add r7, sp, #0 - uwTick += uwTickFreq; - 8001f24: 4b06 ldr r3, [pc, #24] @ (8001f40 ) - 8001f26: 781b ldrb r3, [r3, #0] - 8001f28: 461a mov r2, r3 - 8001f2a: 4b06 ldr r3, [pc, #24] @ (8001f44 ) - 8001f2c: 681b ldr r3, [r3, #0] - 8001f2e: 4413 add r3, r2 - 8001f30: 4a04 ldr r2, [pc, #16] @ (8001f44 ) - 8001f32: 6013 str r3, [r2, #0] -} - 8001f34: bf00 nop - 8001f36: 46bd mov sp, r7 - 8001f38: f85d 7b04 ldr.w r7, [sp], #4 - 8001f3c: 4770 bx lr - 8001f3e: bf00 nop - 8001f40: 2000010c .word 0x2000010c - 8001f44: 20000e20 .word 0x20000e20 - -08001f48 : - * @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) -{ - 8001f48: b480 push {r7} - 8001f4a: af00 add r7, sp, #0 - return uwTick; - 8001f4c: 4b03 ldr r3, [pc, #12] @ (8001f5c ) - 8001f4e: 681b ldr r3, [r3, #0] -} - 8001f50: 4618 mov r0, r3 - 8001f52: 46bd mov sp, r7 - 8001f54: f85d 7b04 ldr.w r7, [sp], #4 - 8001f58: 4770 bx lr - 8001f5a: bf00 nop - 8001f5c: 20000e20 .word 0x20000e20 - -08001f60 : - * implementations in user file. - * @param Delay specifies the delay time length, in milliseconds. - * @retval None - */ -__weak void HAL_Delay(uint32_t Delay) -{ - 8001f60: b580 push {r7, lr} - 8001f62: b084 sub sp, #16 - 8001f64: af00 add r7, sp, #0 - 8001f66: 6078 str r0, [r7, #4] - uint32_t tickstart = HAL_GetTick(); - 8001f68: f7ff ffee bl 8001f48 - 8001f6c: 60b8 str r0, [r7, #8] - uint32_t wait = Delay; - 8001f6e: 687b ldr r3, [r7, #4] - 8001f70: 60fb str r3, [r7, #12] - - /* Add a freq to guarantee minimum wait */ - if (wait < HAL_MAX_DELAY) - 8001f72: 68fb ldr r3, [r7, #12] - 8001f74: f1b3 3fff cmp.w r3, #4294967295 - 8001f78: d005 beq.n 8001f86 - { - wait += (uint32_t)(uwTickFreq); - 8001f7a: 4b0a ldr r3, [pc, #40] @ (8001fa4 ) - 8001f7c: 781b ldrb r3, [r3, #0] - 8001f7e: 461a mov r2, r3 - 8001f80: 68fb ldr r3, [r7, #12] - 8001f82: 4413 add r3, r2 - 8001f84: 60fb str r3, [r7, #12] - } - - while((HAL_GetTick() - tickstart) < wait) +08001f50 <__NVIC_EnableIRQ>: + 8001f50: b480 push {r7} + 8001f52: b083 sub sp, #12 + 8001f54: af00 add r7, sp, #0 + 8001f56: 4603 mov r3, r0 + 8001f58: 71fb strb r3, [r7, #7] + 8001f5a: f997 3007 ldrsb.w r3, [r7, #7] + 8001f5e: 2b00 cmp r3, #0 + 8001f60: db0b blt.n 8001f7a <__NVIC_EnableIRQ+0x2a> + 8001f62: 79fb ldrb r3, [r7, #7] + 8001f64: f003 021f and.w r2, r3, #31 + 8001f68: 4907 ldr r1, [pc, #28] @ (8001f88 <__NVIC_EnableIRQ+0x38>) + 8001f6a: f997 3007 ldrsb.w r3, [r7, #7] + 8001f6e: 095b lsrs r3, r3, #5 + 8001f70: 2001 movs r0, #1 + 8001f72: fa00 f202 lsl.w r2, r0, r2 + 8001f76: f841 2023 str.w r2, [r1, r3, lsl #2] + 8001f7a: bf00 nop + 8001f7c: 370c adds r7, #12 + 8001f7e: 46bd mov sp, r7 + 8001f80: f85d 7b04 ldr.w r7, [sp], #4 + 8001f84: 4770 bx lr 8001f86: bf00 nop - 8001f88: f7ff ffde bl 8001f48 - 8001f8c: 4602 mov r2, r0 - 8001f8e: 68bb ldr r3, [r7, #8] - 8001f90: 1ad3 subs r3, r2, r3 - 8001f92: 68fa ldr r2, [r7, #12] - 8001f94: 429a cmp r2, r3 - 8001f96: d8f7 bhi.n 8001f88 - { - } -} - 8001f98: bf00 nop - 8001f9a: bf00 nop - 8001f9c: 3710 adds r7, #16 - 8001f9e: 46bd mov sp, r7 - 8001fa0: bd80 pop {r7, pc} - 8001fa2: bf00 nop - 8001fa4: 2000010c .word 0x2000010c + 8001f88: e000e100 .word 0xe000e100 -08001fa8 <__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) -{ - 8001fa8: b480 push {r7} - 8001faa: b085 sub sp, #20 - 8001fac: af00 add r7, sp, #0 - 8001fae: 6078 str r0, [r7, #4] - uint32_t reg_value; - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 8001fb0: 687b ldr r3, [r7, #4] - 8001fb2: f003 0307 and.w r3, r3, #7 - 8001fb6: 60fb str r3, [r7, #12] +08001f8c <__NVIC_SetPriority>: + 8001f8c: b480 push {r7} + 8001f8e: b083 sub sp, #12 + 8001f90: af00 add r7, sp, #0 + 8001f92: 4603 mov r3, r0 + 8001f94: 6039 str r1, [r7, #0] + 8001f96: 71fb strb r3, [r7, #7] + 8001f98: f997 3007 ldrsb.w r3, [r7, #7] + 8001f9c: 2b00 cmp r3, #0 + 8001f9e: db0a blt.n 8001fb6 <__NVIC_SetPriority+0x2a> + 8001fa0: 683b ldr r3, [r7, #0] + 8001fa2: b2da uxtb r2, r3 + 8001fa4: 490c ldr r1, [pc, #48] @ (8001fd8 <__NVIC_SetPriority+0x4c>) + 8001fa6: f997 3007 ldrsb.w r3, [r7, #7] + 8001faa: 0112 lsls r2, r2, #4 + 8001fac: b2d2 uxtb r2, r2 + 8001fae: 440b add r3, r1 + 8001fb0: f883 2300 strb.w r2, [r3, #768] @ 0x300 + 8001fb4: e00a b.n 8001fcc <__NVIC_SetPriority+0x40> + 8001fb6: 683b ldr r3, [r7, #0] + 8001fb8: b2da uxtb r2, r3 + 8001fba: 4908 ldr r1, [pc, #32] @ (8001fdc <__NVIC_SetPriority+0x50>) + 8001fbc: 79fb ldrb r3, [r7, #7] + 8001fbe: f003 030f and.w r3, r3, #15 + 8001fc2: 3b04 subs r3, #4 + 8001fc4: 0112 lsls r2, r2, #4 + 8001fc6: b2d2 uxtb r2, r2 + 8001fc8: 440b add r3, r1 + 8001fca: 761a strb r2, [r3, #24] + 8001fcc: bf00 nop + 8001fce: 370c adds r7, #12 + 8001fd0: 46bd mov sp, r7 + 8001fd2: f85d 7b04 ldr.w r7, [sp], #4 + 8001fd6: 4770 bx lr + 8001fd8: e000e100 .word 0xe000e100 + 8001fdc: e000ed00 .word 0xe000ed00 - reg_value = SCB->AIRCR; /* read old register configuration */ - 8001fb8: 4b0c ldr r3, [pc, #48] @ (8001fec <__NVIC_SetPriorityGrouping+0x44>) - 8001fba: 68db ldr r3, [r3, #12] - 8001fbc: 60bb str r3, [r7, #8] - reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - 8001fbe: 68ba ldr r2, [r7, #8] - 8001fc0: f64f 03ff movw r3, #63743 @ 0xf8ff - 8001fc4: 4013 ands r3, r2 - 8001fc6: 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 */ - 8001fc8: 68fb ldr r3, [r7, #12] - 8001fca: 021a lsls r2, r3, #8 - ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 8001fcc: 68bb ldr r3, [r7, #8] - 8001fce: 4313 orrs r3, r2 - reg_value = (reg_value | - 8001fd0: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 - 8001fd4: f443 3300 orr.w r3, r3, #131072 @ 0x20000 - 8001fd8: 60bb str r3, [r7, #8] - SCB->AIRCR = reg_value; - 8001fda: 4a04 ldr r2, [pc, #16] @ (8001fec <__NVIC_SetPriorityGrouping+0x44>) - 8001fdc: 68bb ldr r3, [r7, #8] - 8001fde: 60d3 str r3, [r2, #12] -} - 8001fe0: bf00 nop - 8001fe2: 3714 adds r7, #20 - 8001fe4: 46bd mov sp, r7 - 8001fe6: f85d 7b04 ldr.w r7, [sp], #4 - 8001fea: 4770 bx lr - 8001fec: e000ed00 .word 0xe000ed00 +08001fe0 : + 8001fe0: b480 push {r7} + 8001fe2: b089 sub sp, #36 @ 0x24 + 8001fe4: af00 add r7, sp, #0 + 8001fe6: 60f8 str r0, [r7, #12] + 8001fe8: 60b9 str r1, [r7, #8] + 8001fea: 607a str r2, [r7, #4] + 8001fec: 68fb ldr r3, [r7, #12] + 8001fee: f003 0307 and.w r3, r3, #7 + 8001ff2: 61fb str r3, [r7, #28] + 8001ff4: 69fb ldr r3, [r7, #28] + 8001ff6: f1c3 0307 rsb r3, r3, #7 + 8001ffa: 2b04 cmp r3, #4 + 8001ffc: bf28 it cs + 8001ffe: 2304 movcs r3, #4 + 8002000: 61bb str r3, [r7, #24] + 8002002: 69fb ldr r3, [r7, #28] + 8002004: 3304 adds r3, #4 + 8002006: 2b06 cmp r3, #6 + 8002008: d902 bls.n 8002010 + 800200a: 69fb ldr r3, [r7, #28] + 800200c: 3b03 subs r3, #3 + 800200e: e000 b.n 8002012 + 8002010: 2300 movs r3, #0 + 8002012: 617b str r3, [r7, #20] + 8002014: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff + 8002018: 69bb ldr r3, [r7, #24] + 800201a: fa02 f303 lsl.w r3, r2, r3 + 800201e: 43da mvns r2, r3 + 8002020: 68bb ldr r3, [r7, #8] + 8002022: 401a ands r2, r3 + 8002024: 697b ldr r3, [r7, #20] + 8002026: 409a lsls r2, r3 + 8002028: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff + 800202c: 697b ldr r3, [r7, #20] + 800202e: fa01 f303 lsl.w r3, r1, r3 + 8002032: 43d9 mvns r1, r3 + 8002034: 687b ldr r3, [r7, #4] + 8002036: 400b ands r3, r1 + 8002038: 4313 orrs r3, r2 + 800203a: 4618 mov r0, r3 + 800203c: 3724 adds r7, #36 @ 0x24 + 800203e: 46bd mov sp, r7 + 8002040: f85d 7b04 ldr.w r7, [sp], #4 + 8002044: 4770 bx lr + ... -08001ff0 <__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) -{ - 8001ff0: b480 push {r7} - 8001ff2: af00 add r7, sp, #0 - return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); - 8001ff4: 4b04 ldr r3, [pc, #16] @ (8002008 <__NVIC_GetPriorityGrouping+0x18>) - 8001ff6: 68db ldr r3, [r3, #12] - 8001ff8: 0a1b lsrs r3, r3, #8 - 8001ffa: f003 0307 and.w r3, r3, #7 -} - 8001ffe: 4618 mov r0, r3 - 8002000: 46bd mov sp, r7 - 8002002: f85d 7b04 ldr.w r7, [sp], #4 - 8002006: 4770 bx lr - 8002008: e000ed00 .word 0xe000ed00 - -0800200c <__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) -{ - 800200c: b480 push {r7} - 800200e: b083 sub sp, #12 - 8002010: af00 add r7, sp, #0 - 8002012: 4603 mov r3, r0 - 8002014: 71fb strb r3, [r7, #7] - if ((int32_t)(IRQn) >= 0) - 8002016: f997 3007 ldrsb.w r3, [r7, #7] - 800201a: 2b00 cmp r3, #0 - 800201c: db0b blt.n 8002036 <__NVIC_EnableIRQ+0x2a> - { - __COMPILER_BARRIER(); - NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - 800201e: 79fb ldrb r3, [r7, #7] - 8002020: f003 021f and.w r2, r3, #31 - 8002024: 4907 ldr r1, [pc, #28] @ (8002044 <__NVIC_EnableIRQ+0x38>) - 8002026: f997 3007 ldrsb.w r3, [r7, #7] - 800202a: 095b lsrs r3, r3, #5 - 800202c: 2001 movs r0, #1 - 800202e: fa00 f202 lsl.w r2, r0, r2 - 8002032: f841 2023 str.w r2, [r1, r3, lsl #2] - __COMPILER_BARRIER(); - } -} - 8002036: bf00 nop - 8002038: 370c adds r7, #12 - 800203a: 46bd mov sp, r7 - 800203c: f85d 7b04 ldr.w r7, [sp], #4 - 8002040: 4770 bx lr - 8002042: bf00 nop - 8002044: e000e100 .word 0xe000e100 - -08002048 <__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) -{ - 8002048: b480 push {r7} - 800204a: b083 sub sp, #12 +08002048 : + 8002048: b580 push {r7, lr} + 800204a: b082 sub sp, #8 800204c: af00 add r7, sp, #0 - 800204e: 4603 mov r3, r0 - 8002050: 6039 str r1, [r7, #0] - 8002052: 71fb strb r3, [r7, #7] - if ((int32_t)(IRQn) >= 0) - 8002054: f997 3007 ldrsb.w r3, [r7, #7] - 8002058: 2b00 cmp r3, #0 - 800205a: db0a blt.n 8002072 <__NVIC_SetPriority+0x2a> - { - NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 800205c: 683b ldr r3, [r7, #0] - 800205e: b2da uxtb r2, r3 - 8002060: 490c ldr r1, [pc, #48] @ (8002094 <__NVIC_SetPriority+0x4c>) - 8002062: f997 3007 ldrsb.w r3, [r7, #7] - 8002066: 0112 lsls r2, r2, #4 - 8002068: b2d2 uxtb r2, r2 - 800206a: 440b add r3, r1 - 800206c: 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); - } -} - 8002070: e00a b.n 8002088 <__NVIC_SetPriority+0x40> - SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8002072: 683b ldr r3, [r7, #0] - 8002074: b2da uxtb r2, r3 - 8002076: 4908 ldr r1, [pc, #32] @ (8002098 <__NVIC_SetPriority+0x50>) - 8002078: 79fb ldrb r3, [r7, #7] - 800207a: f003 030f and.w r3, r3, #15 - 800207e: 3b04 subs r3, #4 - 8002080: 0112 lsls r2, r2, #4 - 8002082: b2d2 uxtb r2, r2 - 8002084: 440b add r3, r1 - 8002086: 761a strb r2, [r3, #24] -} - 8002088: bf00 nop - 800208a: 370c adds r7, #12 - 800208c: 46bd mov sp, r7 - 800208e: f85d 7b04 ldr.w r7, [sp], #4 - 8002092: 4770 bx lr - 8002094: e000e100 .word 0xe000e100 - 8002098: e000ed00 .word 0xe000ed00 + 800204e: 6078 str r0, [r7, #4] + 8002050: 687b ldr r3, [r7, #4] + 8002052: 3b01 subs r3, #1 + 8002054: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 + 8002058: d301 bcc.n 800205e + 800205a: 2301 movs r3, #1 + 800205c: e00f b.n 800207e + 800205e: 4a0a ldr r2, [pc, #40] @ (8002088 ) + 8002060: 687b ldr r3, [r7, #4] + 8002062: 3b01 subs r3, #1 + 8002064: 6053 str r3, [r2, #4] + 8002066: 210f movs r1, #15 + 8002068: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff + 800206c: f7ff ff8e bl 8001f8c <__NVIC_SetPriority> + 8002070: 4b05 ldr r3, [pc, #20] @ (8002088 ) + 8002072: 2200 movs r2, #0 + 8002074: 609a str r2, [r3, #8] + 8002076: 4b04 ldr r3, [pc, #16] @ (8002088 ) + 8002078: 2207 movs r2, #7 + 800207a: 601a str r2, [r3, #0] + 800207c: 2300 movs r3, #0 + 800207e: 4618 mov r0, r3 + 8002080: 3708 adds r7, #8 + 8002082: 46bd mov sp, r7 + 8002084: bd80 pop {r7, pc} + 8002086: bf00 nop + 8002088: e000e010 .word 0xe000e010 -0800209c : - \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) -{ - 800209c: b480 push {r7} - 800209e: b089 sub sp, #36 @ 0x24 - 80020a0: af00 add r7, sp, #0 - 80020a2: 60f8 str r0, [r7, #12] - 80020a4: 60b9 str r1, [r7, #8] - 80020a6: 607a str r2, [r7, #4] - uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 80020a8: 68fb ldr r3, [r7, #12] - 80020aa: f003 0307 and.w r3, r3, #7 - 80020ae: 61fb str r3, [r7, #28] - uint32_t PreemptPriorityBits; - uint32_t SubPriorityBits; +0800208c : + 800208c: b580 push {r7, lr} + 800208e: b082 sub sp, #8 + 8002090: af00 add r7, sp, #0 + 8002092: 6078 str r0, [r7, #4] + 8002094: 6878 ldr r0, [r7, #4] + 8002096: f7ff ff29 bl 8001eec <__NVIC_SetPriorityGrouping> + 800209a: bf00 nop + 800209c: 3708 adds r7, #8 + 800209e: 46bd mov sp, r7 + 80020a0: bd80 pop {r7, pc} - PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); - 80020b0: 69fb ldr r3, [r7, #28] - 80020b2: f1c3 0307 rsb r3, r3, #7 - 80020b6: 2b04 cmp r3, #4 - 80020b8: bf28 it cs - 80020ba: 2304 movcs r3, #4 - 80020bc: 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)); - 80020be: 69fb ldr r3, [r7, #28] - 80020c0: 3304 adds r3, #4 - 80020c2: 2b06 cmp r3, #6 - 80020c4: d902 bls.n 80020cc - 80020c6: 69fb ldr r3, [r7, #28] - 80020c8: 3b03 subs r3, #3 - 80020ca: e000 b.n 80020ce - 80020cc: 2300 movs r3, #0 - 80020ce: 617b str r3, [r7, #20] +080020a2 : + 80020a2: b580 push {r7, lr} + 80020a4: b086 sub sp, #24 + 80020a6: af00 add r7, sp, #0 + 80020a8: 4603 mov r3, r0 + 80020aa: 60b9 str r1, [r7, #8] + 80020ac: 607a str r2, [r7, #4] + 80020ae: 73fb strb r3, [r7, #15] + 80020b0: 2300 movs r3, #0 + 80020b2: 617b str r3, [r7, #20] + 80020b4: f7ff ff3e bl 8001f34 <__NVIC_GetPriorityGrouping> + 80020b8: 6178 str r0, [r7, #20] + 80020ba: 687a ldr r2, [r7, #4] + 80020bc: 68b9 ldr r1, [r7, #8] + 80020be: 6978 ldr r0, [r7, #20] + 80020c0: f7ff ff8e bl 8001fe0 + 80020c4: 4602 mov r2, r0 + 80020c6: f997 300f ldrsb.w r3, [r7, #15] + 80020ca: 4611 mov r1, r2 + 80020cc: 4618 mov r0, r3 + 80020ce: f7ff ff5d bl 8001f8c <__NVIC_SetPriority> + 80020d2: bf00 nop + 80020d4: 3718 adds r7, #24 + 80020d6: 46bd mov sp, r7 + 80020d8: bd80 pop {r7, pc} - return ( - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 80020d0: f04f 32ff mov.w r2, #4294967295 - 80020d4: 69bb ldr r3, [r7, #24] - 80020d6: fa02 f303 lsl.w r3, r2, r3 - 80020da: 43da mvns r2, r3 - 80020dc: 68bb ldr r3, [r7, #8] - 80020de: 401a ands r2, r3 - 80020e0: 697b ldr r3, [r7, #20] - 80020e2: 409a lsls r2, r3 - ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - 80020e4: f04f 31ff mov.w r1, #4294967295 - 80020e8: 697b ldr r3, [r7, #20] - 80020ea: fa01 f303 lsl.w r3, r1, r3 - 80020ee: 43d9 mvns r1, r3 - 80020f0: 687b ldr r3, [r7, #4] - 80020f2: 400b ands r3, r1 - ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 80020f4: 4313 orrs r3, r2 - ); -} - 80020f6: 4618 mov r0, r3 - 80020f8: 3724 adds r7, #36 @ 0x24 - 80020fa: 46bd mov sp, r7 - 80020fc: f85d 7b04 ldr.w r7, [sp], #4 - 8002100: 4770 bx lr +080020da : + 80020da: b580 push {r7, lr} + 80020dc: b082 sub sp, #8 + 80020de: af00 add r7, sp, #0 + 80020e0: 4603 mov r3, r0 + 80020e2: 71fb strb r3, [r7, #7] + 80020e4: f997 3007 ldrsb.w r3, [r7, #7] + 80020e8: 4618 mov r0, r3 + 80020ea: f7ff ff31 bl 8001f50 <__NVIC_EnableIRQ> + 80020ee: bf00 nop + 80020f0: 3708 adds r7, #8 + 80020f2: 46bd mov sp, r7 + 80020f4: bd80 pop {r7, pc} + +080020f6 : + 80020f6: b580 push {r7, lr} + 80020f8: b082 sub sp, #8 + 80020fa: af00 add r7, sp, #0 + 80020fc: 6078 str r0, [r7, #4] + 80020fe: 6878 ldr r0, [r7, #4] + 8002100: f7ff ffa2 bl 8002048 + 8002104: 4603 mov r3, r0 + 8002106: 4618 mov r0, r3 + 8002108: 3708 adds r7, #8 + 800210a: 46bd mov sp, r7 + 800210c: bd80 pop {r7, pc} ... -08002104 : - \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) -{ - 8002104: b580 push {r7, lr} - 8002106: b082 sub sp, #8 - 8002108: af00 add r7, sp, #0 - 800210a: 6078 str r0, [r7, #4] - if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - 800210c: 687b ldr r3, [r7, #4] - 800210e: 3b01 subs r3, #1 - 8002110: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 - 8002114: d301 bcc.n 800211a - { - return (1UL); /* Reload value impossible */ - 8002116: 2301 movs r3, #1 - 8002118: e00f b.n 800213a - } - - SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - 800211a: 4a0a ldr r2, [pc, #40] @ (8002144 ) - 800211c: 687b ldr r3, [r7, #4] - 800211e: 3b01 subs r3, #1 - 8002120: 6053 str r3, [r2, #4] - NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - 8002122: 210f movs r1, #15 - 8002124: f04f 30ff mov.w r0, #4294967295 - 8002128: f7ff ff8e bl 8002048 <__NVIC_SetPriority> - SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - 800212c: 4b05 ldr r3, [pc, #20] @ (8002144 ) - 800212e: 2200 movs r2, #0 - 8002130: 609a str r2, [r3, #8] - SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - 8002132: 4b04 ldr r3, [pc, #16] @ (8002144 ) - 8002134: 2207 movs r2, #7 - 8002136: 601a str r2, [r3, #0] - SysTick_CTRL_TICKINT_Msk | - SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ - return (0UL); /* Function successful */ - 8002138: 2300 movs r3, #0 -} - 800213a: 4618 mov r0, r3 - 800213c: 3708 adds r7, #8 - 800213e: 46bd mov sp, r7 - 8002140: bd80 pop {r7, pc} - 8002142: bf00 nop - 8002144: e000e010 .word 0xe000e010 - -08002148 : - * @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) -{ - 8002148: b580 push {r7, lr} - 800214a: b082 sub sp, #8 - 800214c: af00 add r7, sp, #0 - 800214e: 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); - 8002150: 6878 ldr r0, [r7, #4] - 8002152: f7ff ff29 bl 8001fa8 <__NVIC_SetPriorityGrouping> -} - 8002156: bf00 nop - 8002158: 3708 adds r7, #8 - 800215a: 46bd mov sp, r7 - 800215c: bd80 pop {r7, pc} - -0800215e : - * 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) -{ - 800215e: b580 push {r7, lr} - 8002160: b086 sub sp, #24 - 8002162: af00 add r7, sp, #0 - 8002164: 4603 mov r3, r0 - 8002166: 60b9 str r1, [r7, #8] - 8002168: 607a str r2, [r7, #4] - 800216a: 73fb strb r3, [r7, #15] - uint32_t prioritygroup = 0x00U; - 800216c: 2300 movs r3, #0 - 800216e: 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(); - 8002170: f7ff ff3e bl 8001ff0 <__NVIC_GetPriorityGrouping> - 8002174: 6178 str r0, [r7, #20] - - NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); - 8002176: 687a ldr r2, [r7, #4] - 8002178: 68b9 ldr r1, [r7, #8] - 800217a: 6978 ldr r0, [r7, #20] - 800217c: f7ff ff8e bl 800209c - 8002180: 4602 mov r2, r0 - 8002182: f997 300f ldrsb.w r3, [r7, #15] - 8002186: 4611 mov r1, r2 - 8002188: 4618 mov r0, r3 - 800218a: f7ff ff5d bl 8002048 <__NVIC_SetPriority> -} - 800218e: bf00 nop - 8002190: 3718 adds r7, #24 - 8002192: 46bd mov sp, r7 - 8002194: bd80 pop {r7, pc} - -08002196 : - * 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) -{ - 8002196: b580 push {r7, lr} - 8002198: b082 sub sp, #8 - 800219a: af00 add r7, sp, #0 - 800219c: 4603 mov r3, r0 - 800219e: 71fb strb r3, [r7, #7] - /* Check the parameters */ - assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); - - /* Enable interrupt */ - NVIC_EnableIRQ(IRQn); - 80021a0: f997 3007 ldrsb.w r3, [r7, #7] - 80021a4: 4618 mov r0, r3 - 80021a6: f7ff ff31 bl 800200c <__NVIC_EnableIRQ> -} - 80021aa: bf00 nop - 80021ac: 3708 adds r7, #8 - 80021ae: 46bd mov sp, r7 - 80021b0: bd80 pop {r7, pc} - -080021b2 : - * @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) -{ - 80021b2: b580 push {r7, lr} - 80021b4: b082 sub sp, #8 - 80021b6: af00 add r7, sp, #0 - 80021b8: 6078 str r0, [r7, #4] - return SysTick_Config(TicksNumb); - 80021ba: 6878 ldr r0, [r7, #4] - 80021bc: f7ff ffa2 bl 8002104 - 80021c0: 4603 mov r3, r0 -} - 80021c2: 4618 mov r0, r3 - 80021c4: 3708 adds r7, #8 - 80021c6: 46bd mov sp, r7 - 80021c8: bd80 pop {r7, pc} - ... - -080021cc : - * @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) -{ - 80021cc: b580 push {r7, lr} - 80021ce: b086 sub sp, #24 - 80021d0: af00 add r7, sp, #0 - 80021d2: 6078 str r0, [r7, #4] - uint32_t tmp = 0U; - 80021d4: 2300 movs r3, #0 +08002110 : + 8002110: b580 push {r7, lr} + 8002112: b086 sub sp, #24 + 8002114: af00 add r7, sp, #0 + 8002116: 6078 str r0, [r7, #4] + 8002118: 2300 movs r3, #0 + 800211a: 617b str r3, [r7, #20] + 800211c: f7ff feb6 bl 8001e8c + 8002120: 6138 str r0, [r7, #16] + 8002122: 687b ldr r3, [r7, #4] + 8002124: 2b00 cmp r3, #0 + 8002126: d101 bne.n 800212c + 8002128: 2301 movs r3, #1 + 800212a: e099 b.n 8002260 + 800212c: 687b ldr r3, [r7, #4] + 800212e: 2202 movs r2, #2 + 8002130: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8002134: 687b ldr r3, [r7, #4] + 8002136: 2200 movs r2, #0 + 8002138: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 800213c: 687b ldr r3, [r7, #4] + 800213e: 681b ldr r3, [r3, #0] + 8002140: 681a ldr r2, [r3, #0] + 8002142: 687b ldr r3, [r7, #4] + 8002144: 681b ldr r3, [r3, #0] + 8002146: f022 0201 bic.w r2, r2, #1 + 800214a: 601a str r2, [r3, #0] + 800214c: e00f b.n 800216e + 800214e: f7ff fe9d bl 8001e8c + 8002152: 4602 mov r2, r0 + 8002154: 693b ldr r3, [r7, #16] + 8002156: 1ad3 subs r3, r2, r3 + 8002158: 2b05 cmp r3, #5 + 800215a: d908 bls.n 800216e + 800215c: 687b ldr r3, [r7, #4] + 800215e: 2220 movs r2, #32 + 8002160: 655a str r2, [r3, #84] @ 0x54 + 8002162: 687b ldr r3, [r7, #4] + 8002164: 2203 movs r2, #3 + 8002166: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 800216a: 2303 movs r3, #3 + 800216c: e078 b.n 8002260 + 800216e: 687b ldr r3, [r7, #4] + 8002170: 681b ldr r3, [r3, #0] + 8002172: 681b ldr r3, [r3, #0] + 8002174: f003 0301 and.w r3, r3, #1 + 8002178: 2b00 cmp r3, #0 + 800217a: d1e8 bne.n 800214e + 800217c: 687b ldr r3, [r7, #4] + 800217e: 681b ldr r3, [r3, #0] + 8002180: 681b ldr r3, [r3, #0] + 8002182: 617b str r3, [r7, #20] + 8002184: 697a ldr r2, [r7, #20] + 8002186: 4b38 ldr r3, [pc, #224] @ (8002268 ) + 8002188: 4013 ands r3, r2 + 800218a: 617b str r3, [r7, #20] + 800218c: 687b ldr r3, [r7, #4] + 800218e: 685a ldr r2, [r3, #4] + 8002190: 687b ldr r3, [r7, #4] + 8002192: 689b ldr r3, [r3, #8] + 8002194: 431a orrs r2, r3 + 8002196: 687b ldr r3, [r7, #4] + 8002198: 68db ldr r3, [r3, #12] + 800219a: 431a orrs r2, r3 + 800219c: 687b ldr r3, [r7, #4] + 800219e: 691b ldr r3, [r3, #16] + 80021a0: 431a orrs r2, r3 + 80021a2: 687b ldr r3, [r7, #4] + 80021a4: 695b ldr r3, [r3, #20] + 80021a6: 431a orrs r2, r3 + 80021a8: 687b ldr r3, [r7, #4] + 80021aa: 699b ldr r3, [r3, #24] + 80021ac: 431a orrs r2, r3 + 80021ae: 687b ldr r3, [r7, #4] + 80021b0: 69db ldr r3, [r3, #28] + 80021b2: 431a orrs r2, r3 + 80021b4: 687b ldr r3, [r7, #4] + 80021b6: 6a1b ldr r3, [r3, #32] + 80021b8: 4313 orrs r3, r2 + 80021ba: 697a ldr r2, [r7, #20] + 80021bc: 4313 orrs r3, r2 + 80021be: 617b str r3, [r7, #20] + 80021c0: 687b ldr r3, [r7, #4] + 80021c2: 6a5b ldr r3, [r3, #36] @ 0x24 + 80021c4: 2b04 cmp r3, #4 + 80021c6: d107 bne.n 80021d8 + 80021c8: 687b ldr r3, [r7, #4] + 80021ca: 6ada ldr r2, [r3, #44] @ 0x2c + 80021cc: 687b ldr r3, [r7, #4] + 80021ce: 6b1b ldr r3, [r3, #48] @ 0x30 + 80021d0: 4313 orrs r3, r2 + 80021d2: 697a ldr r2, [r7, #20] + 80021d4: 4313 orrs r3, r2 80021d6: 617b str r3, [r7, #20] - uint32_t tickstart = HAL_GetTick(); - 80021d8: f7ff feb6 bl 8001f48 - 80021dc: 6138 str r0, [r7, #16] - DMA_Base_Registers *regs; - - /* Check the DMA peripheral state */ - if(hdma == NULL) - 80021de: 687b ldr r3, [r7, #4] - 80021e0: 2b00 cmp r3, #0 - 80021e2: d101 bne.n 80021e8 - { - return HAL_ERROR; - 80021e4: 2301 movs r3, #1 - 80021e6: e099 b.n 800231c - 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; - 80021e8: 687b ldr r3, [r7, #4] - 80021ea: 2202 movs r2, #2 - 80021ec: f883 2035 strb.w r2, [r3, #53] @ 0x35 - - /* Allocate lock resource */ - __HAL_UNLOCK(hdma); + 80021d8: 687b ldr r3, [r7, #4] + 80021da: 681b ldr r3, [r3, #0] + 80021dc: 697a ldr r2, [r7, #20] + 80021de: 601a str r2, [r3, #0] + 80021e0: 687b ldr r3, [r7, #4] + 80021e2: 681b ldr r3, [r3, #0] + 80021e4: 695b ldr r3, [r3, #20] + 80021e6: 617b str r3, [r7, #20] + 80021e8: 697b ldr r3, [r7, #20] + 80021ea: f023 0307 bic.w r3, r3, #7 + 80021ee: 617b str r3, [r7, #20] 80021f0: 687b ldr r3, [r7, #4] - 80021f2: 2200 movs r2, #0 - 80021f4: f883 2034 strb.w r2, [r3, #52] @ 0x34 - - /* Disable the peripheral */ - __HAL_DMA_DISABLE(hdma); - 80021f8: 687b ldr r3, [r7, #4] - 80021fa: 681b ldr r3, [r3, #0] - 80021fc: 681a ldr r2, [r3, #0] - 80021fe: 687b ldr r3, [r7, #4] - 8002200: 681b ldr r3, [r3, #0] - 8002202: f022 0201 bic.w r2, r2, #1 - 8002206: 601a str r2, [r3, #0] - - /* Check if the DMA Stream is effectively disabled */ - while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) - 8002208: e00f b.n 800222a - { - /* Check for the Timeout */ - if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT) - 800220a: f7ff fe9d bl 8001f48 - 800220e: 4602 mov r2, r0 - 8002210: 693b ldr r3, [r7, #16] - 8002212: 1ad3 subs r3, r2, r3 - 8002214: 2b05 cmp r3, #5 - 8002216: d908 bls.n 800222a - { - /* Update error code */ - hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; - 8002218: 687b ldr r3, [r7, #4] - 800221a: 2220 movs r2, #32 - 800221c: 655a str r2, [r3, #84] @ 0x54 - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_TIMEOUT; - 800221e: 687b ldr r3, [r7, #4] - 8002220: 2203 movs r2, #3 - 8002222: f883 2035 strb.w r2, [r3, #53] @ 0x35 - - return HAL_TIMEOUT; - 8002226: 2303 movs r3, #3 - 8002228: e078 b.n 800231c - while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) - 800222a: 687b ldr r3, [r7, #4] - 800222c: 681b ldr r3, [r3, #0] - 800222e: 681b ldr r3, [r3, #0] - 8002230: f003 0301 and.w r3, r3, #1 - 8002234: 2b00 cmp r3, #0 - 8002236: d1e8 bne.n 800220a - } - } - - /* Get the CR register value */ - tmp = hdma->Instance->CR; - 8002238: 687b ldr r3, [r7, #4] - 800223a: 681b ldr r3, [r3, #0] - 800223c: 681b ldr r3, [r3, #0] - 800223e: 617b str r3, [r7, #20] + 80021f2: 6a5b ldr r3, [r3, #36] @ 0x24 + 80021f4: 697a ldr r2, [r7, #20] + 80021f6: 4313 orrs r3, r2 + 80021f8: 617b str r3, [r7, #20] + 80021fa: 687b ldr r3, [r7, #4] + 80021fc: 6a5b ldr r3, [r3, #36] @ 0x24 + 80021fe: 2b04 cmp r3, #4 + 8002200: d117 bne.n 8002232 + 8002202: 687b ldr r3, [r7, #4] + 8002204: 6a9b ldr r3, [r3, #40] @ 0x28 + 8002206: 697a ldr r2, [r7, #20] + 8002208: 4313 orrs r3, r2 + 800220a: 617b str r3, [r7, #20] + 800220c: 687b ldr r3, [r7, #4] + 800220e: 6adb ldr r3, [r3, #44] @ 0x2c + 8002210: 2b00 cmp r3, #0 + 8002212: d00e beq.n 8002232 + 8002214: 6878 ldr r0, [r7, #4] + 8002216: f000 fb01 bl 800281c + 800221a: 4603 mov r3, r0 + 800221c: 2b00 cmp r3, #0 + 800221e: d008 beq.n 8002232 + 8002220: 687b ldr r3, [r7, #4] + 8002222: 2240 movs r2, #64 @ 0x40 + 8002224: 655a str r2, [r3, #84] @ 0x54 + 8002226: 687b ldr r3, [r7, #4] + 8002228: 2201 movs r2, #1 + 800222a: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 800222e: 2301 movs r3, #1 + 8002230: e016 b.n 8002260 + 8002232: 687b ldr r3, [r7, #4] + 8002234: 681b ldr r3, [r3, #0] + 8002236: 697a ldr r2, [r7, #20] + 8002238: 615a str r2, [r3, #20] + 800223a: 6878 ldr r0, [r7, #4] + 800223c: f000 fab8 bl 80027b0 + 8002240: 4603 mov r3, r0 + 8002242: 60fb str r3, [r7, #12] + 8002244: 687b ldr r3, [r7, #4] + 8002246: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002248: 223f movs r2, #63 @ 0x3f + 800224a: 409a lsls r2, r3 + 800224c: 68fb ldr r3, [r7, #12] + 800224e: 609a str r2, [r3, #8] + 8002250: 687b ldr r3, [r7, #4] + 8002252: 2200 movs r2, #0 + 8002254: 655a str r2, [r3, #84] @ 0x54 + 8002256: 687b ldr r3, [r7, #4] + 8002258: 2201 movs r2, #1 + 800225a: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 800225e: 2300 movs r3, #0 + 8002260: 4618 mov r0, r3 + 8002262: 3718 adds r7, #24 + 8002264: 46bd mov sp, r7 + 8002266: bd80 pop {r7, pc} + 8002268: f010803f .word 0xf010803f - /* 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 | \ - 8002240: 697a ldr r2, [r7, #20] - 8002242: 4b38 ldr r3, [pc, #224] @ (8002324 ) - 8002244: 4013 ands r3, r2 - 8002246: 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)); +0800226c : + 800226c: b580 push {r7, lr} + 800226e: b086 sub sp, #24 + 8002270: af00 add r7, sp, #0 + 8002272: 60f8 str r0, [r7, #12] + 8002274: 60b9 str r1, [r7, #8] + 8002276: 607a str r2, [r7, #4] + 8002278: 603b str r3, [r7, #0] + 800227a: 2300 movs r3, #0 + 800227c: 75fb strb r3, [r7, #23] + 800227e: 68fb ldr r3, [r7, #12] + 8002280: 6d9b ldr r3, [r3, #88] @ 0x58 + 8002282: 613b str r3, [r7, #16] + 8002284: 68fb ldr r3, [r7, #12] + 8002286: f893 3034 ldrb.w r3, [r3, #52] @ 0x34 + 800228a: 2b01 cmp r3, #1 + 800228c: d101 bne.n 8002292 + 800228e: 2302 movs r3, #2 + 8002290: e040 b.n 8002314 + 8002292: 68fb ldr r3, [r7, #12] + 8002294: 2201 movs r2, #1 + 8002296: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 800229a: 68fb ldr r3, [r7, #12] + 800229c: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 + 80022a0: b2db uxtb r3, r3 + 80022a2: 2b01 cmp r3, #1 + 80022a4: d12f bne.n 8002306 + 80022a6: 68fb ldr r3, [r7, #12] + 80022a8: 2202 movs r2, #2 + 80022aa: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 80022ae: 68fb ldr r3, [r7, #12] + 80022b0: 2200 movs r2, #0 + 80022b2: 655a str r2, [r3, #84] @ 0x54 + 80022b4: 683b ldr r3, [r7, #0] + 80022b6: 687a ldr r2, [r7, #4] + 80022b8: 68b9 ldr r1, [r7, #8] + 80022ba: 68f8 ldr r0, [r7, #12] + 80022bc: f000 fa4a bl 8002754 + 80022c0: 68fb ldr r3, [r7, #12] + 80022c2: 6ddb ldr r3, [r3, #92] @ 0x5c + 80022c4: 223f movs r2, #63 @ 0x3f + 80022c6: 409a lsls r2, r3 + 80022c8: 693b ldr r3, [r7, #16] + 80022ca: 609a str r2, [r3, #8] + 80022cc: 68fb ldr r3, [r7, #12] + 80022ce: 681b ldr r3, [r3, #0] + 80022d0: 681a ldr r2, [r3, #0] + 80022d2: 68fb ldr r3, [r7, #12] + 80022d4: 681b ldr r3, [r3, #0] + 80022d6: f042 0216 orr.w r2, r2, #22 + 80022da: 601a str r2, [r3, #0] + 80022dc: 68fb ldr r3, [r7, #12] + 80022de: 6c1b ldr r3, [r3, #64] @ 0x40 + 80022e0: 2b00 cmp r3, #0 + 80022e2: d007 beq.n 80022f4 + 80022e4: 68fb ldr r3, [r7, #12] + 80022e6: 681b ldr r3, [r3, #0] + 80022e8: 681a ldr r2, [r3, #0] + 80022ea: 68fb ldr r3, [r7, #12] + 80022ec: 681b ldr r3, [r3, #0] + 80022ee: f042 0208 orr.w r2, r2, #8 + 80022f2: 601a str r2, [r3, #0] + 80022f4: 68fb ldr r3, [r7, #12] + 80022f6: 681b ldr r3, [r3, #0] + 80022f8: 681a ldr r2, [r3, #0] + 80022fa: 68fb ldr r3, [r7, #12] + 80022fc: 681b ldr r3, [r3, #0] + 80022fe: f042 0201 orr.w r2, r2, #1 + 8002302: 601a str r2, [r3, #0] + 8002304: e005 b.n 8002312 + 8002306: 68fb ldr r3, [r7, #12] + 8002308: 2200 movs r2, #0 + 800230a: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 800230e: 2302 movs r3, #2 + 8002310: 75fb strb r3, [r7, #23] + 8002312: 7dfb ldrb r3, [r7, #23] + 8002314: 4618 mov r0, r3 + 8002316: 3718 adds r7, #24 + 8002318: 46bd mov sp, r7 + 800231a: bd80 pop {r7, pc} - /* Prepare the DMA Stream configuration */ - tmp |= hdma->Init.Channel | hdma->Init.Direction | - 8002248: 687b ldr r3, [r7, #4] - 800224a: 685a ldr r2, [r3, #4] - 800224c: 687b ldr r3, [r7, #4] - 800224e: 689b ldr r3, [r3, #8] - 8002250: 431a orrs r2, r3 - hdma->Init.PeriphInc | hdma->Init.MemInc | - 8002252: 687b ldr r3, [r7, #4] - 8002254: 68db ldr r3, [r3, #12] - tmp |= hdma->Init.Channel | hdma->Init.Direction | - 8002256: 431a orrs r2, r3 - hdma->Init.PeriphInc | hdma->Init.MemInc | - 8002258: 687b ldr r3, [r7, #4] - 800225a: 691b ldr r3, [r3, #16] - 800225c: 431a orrs r2, r3 - hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 800225e: 687b ldr r3, [r7, #4] - 8002260: 695b ldr r3, [r3, #20] - hdma->Init.PeriphInc | hdma->Init.MemInc | - 8002262: 431a orrs r2, r3 - hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 8002264: 687b ldr r3, [r7, #4] - 8002266: 699b ldr r3, [r3, #24] - 8002268: 431a orrs r2, r3 - hdma->Init.Mode | hdma->Init.Priority; - 800226a: 687b ldr r3, [r7, #4] - 800226c: 69db ldr r3, [r3, #28] - hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 800226e: 431a orrs r2, r3 - hdma->Init.Mode | hdma->Init.Priority; - 8002270: 687b ldr r3, [r7, #4] - 8002272: 6a1b ldr r3, [r3, #32] - 8002274: 4313 orrs r3, r2 - tmp |= hdma->Init.Channel | hdma->Init.Direction | - 8002276: 697a ldr r2, [r7, #20] - 8002278: 4313 orrs r3, r2 - 800227a: 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) - 800227c: 687b ldr r3, [r7, #4] - 800227e: 6a5b ldr r3, [r3, #36] @ 0x24 - 8002280: 2b04 cmp r3, #4 - 8002282: d107 bne.n 8002294 - { - /* Get memory burst and peripheral burst */ - tmp |= hdma->Init.MemBurst | hdma->Init.PeriphBurst; - 8002284: 687b ldr r3, [r7, #4] - 8002286: 6ada ldr r2, [r3, #44] @ 0x2c - 8002288: 687b ldr r3, [r7, #4] - 800228a: 6b1b ldr r3, [r3, #48] @ 0x30 - 800228c: 4313 orrs r3, r2 - 800228e: 697a ldr r2, [r7, #20] - 8002290: 4313 orrs r3, r2 - 8002292: 617b str r3, [r7, #20] - } - - /* Write to DMA Stream CR register */ - hdma->Instance->CR = tmp; - 8002294: 687b ldr r3, [r7, #4] - 8002296: 681b ldr r3, [r3, #0] - 8002298: 697a ldr r2, [r7, #20] - 800229a: 601a str r2, [r3, #0] - - /* Get the FCR register value */ - tmp = hdma->Instance->FCR; - 800229c: 687b ldr r3, [r7, #4] - 800229e: 681b ldr r3, [r3, #0] - 80022a0: 695b ldr r3, [r3, #20] - 80022a2: 617b str r3, [r7, #20] - - /* Clear Direct mode and FIFO threshold bits */ - tmp &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH); - 80022a4: 697b ldr r3, [r7, #20] - 80022a6: f023 0307 bic.w r3, r3, #7 - 80022aa: 617b str r3, [r7, #20] - - /* Prepare the DMA Stream FIFO configuration */ - tmp |= hdma->Init.FIFOMode; - 80022ac: 687b ldr r3, [r7, #4] - 80022ae: 6a5b ldr r3, [r3, #36] @ 0x24 - 80022b0: 697a ldr r2, [r7, #20] - 80022b2: 4313 orrs r3, r2 - 80022b4: 617b str r3, [r7, #20] - - /* The FIFO threshold is not used when the FIFO mode is disabled */ - if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE) - 80022b6: 687b ldr r3, [r7, #4] - 80022b8: 6a5b ldr r3, [r3, #36] @ 0x24 - 80022ba: 2b04 cmp r3, #4 - 80022bc: d117 bne.n 80022ee - { - /* Get the FIFO threshold */ - tmp |= hdma->Init.FIFOThreshold; - 80022be: 687b ldr r3, [r7, #4] - 80022c0: 6a9b ldr r3, [r3, #40] @ 0x28 - 80022c2: 697a ldr r2, [r7, #20] - 80022c4: 4313 orrs r3, r2 - 80022c6: 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) - 80022c8: 687b ldr r3, [r7, #4] - 80022ca: 6adb ldr r3, [r3, #44] @ 0x2c - 80022cc: 2b00 cmp r3, #0 - 80022ce: d00e beq.n 80022ee - { - if (DMA_CheckFifoParam(hdma) != HAL_OK) - 80022d0: 6878 ldr r0, [r7, #4] - 80022d2: f000 fb01 bl 80028d8 - 80022d6: 4603 mov r3, r0 - 80022d8: 2b00 cmp r3, #0 - 80022da: d008 beq.n 80022ee - { - /* Update error code */ - hdma->ErrorCode = HAL_DMA_ERROR_PARAM; - 80022dc: 687b ldr r3, [r7, #4] - 80022de: 2240 movs r2, #64 @ 0x40 - 80022e0: 655a str r2, [r3, #84] @ 0x54 - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - 80022e2: 687b ldr r3, [r7, #4] - 80022e4: 2201 movs r2, #1 - 80022e6: f883 2035 strb.w r2, [r3, #53] @ 0x35 - - return HAL_ERROR; - 80022ea: 2301 movs r3, #1 - 80022ec: e016 b.n 800231c - } - } - } - - /* Write to DMA Stream FCR */ - hdma->Instance->FCR = tmp; - 80022ee: 687b ldr r3, [r7, #4] - 80022f0: 681b ldr r3, [r3, #0] - 80022f2: 697a ldr r2, [r7, #20] - 80022f4: 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); - 80022f6: 6878 ldr r0, [r7, #4] - 80022f8: f000 fab8 bl 800286c - 80022fc: 4603 mov r3, r0 - 80022fe: 60fb str r3, [r7, #12] - - /* Clear all interrupt flags */ - regs->IFCR = 0x3FU << hdma->StreamIndex; - 8002300: 687b ldr r3, [r7, #4] - 8002302: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002304: 223f movs r2, #63 @ 0x3f - 8002306: 409a lsls r2, r3 - 8002308: 68fb ldr r3, [r7, #12] - 800230a: 609a str r2, [r3, #8] - - /* Initialize the error code */ - hdma->ErrorCode = HAL_DMA_ERROR_NONE; - 800230c: 687b ldr r3, [r7, #4] - 800230e: 2200 movs r2, #0 - 8002310: 655a str r2, [r3, #84] @ 0x54 - - /* Initialize the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - 8002312: 687b ldr r3, [r7, #4] - 8002314: 2201 movs r2, #1 - 8002316: f883 2035 strb.w r2, [r3, #53] @ 0x35 - - return HAL_OK; - 800231a: 2300 movs r3, #0 -} - 800231c: 4618 mov r0, r3 - 800231e: 3718 adds r7, #24 - 8002320: 46bd mov sp, r7 - 8002322: bd80 pop {r7, pc} - 8002324: f010803f .word 0xf010803f - -08002328 : - * @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) -{ - 8002328: b580 push {r7, lr} - 800232a: b086 sub sp, #24 - 800232c: af00 add r7, sp, #0 - 800232e: 60f8 str r0, [r7, #12] - 8002330: 60b9 str r1, [r7, #8] - 8002332: 607a str r2, [r7, #4] - 8002334: 603b str r3, [r7, #0] - HAL_StatusTypeDef status = HAL_OK; - 8002336: 2300 movs r3, #0 - 8002338: 75fb strb r3, [r7, #23] - - /* calculate DMA base and stream number */ - DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress; - 800233a: 68fb ldr r3, [r7, #12] - 800233c: 6d9b ldr r3, [r3, #88] @ 0x58 - 800233e: 613b str r3, [r7, #16] - - /* Check the parameters */ - assert_param(IS_DMA_BUFFER_SIZE(DataLength)); - - /* Process locked */ - __HAL_LOCK(hdma); - 8002340: 68fb ldr r3, [r7, #12] - 8002342: f893 3034 ldrb.w r3, [r3, #52] @ 0x34 - 8002346: 2b01 cmp r3, #1 - 8002348: d101 bne.n 800234e - 800234a: 2302 movs r3, #2 - 800234c: e040 b.n 80023d0 - 800234e: 68fb ldr r3, [r7, #12] - 8002350: 2201 movs r2, #1 - 8002352: f883 2034 strb.w r2, [r3, #52] @ 0x34 - - if(HAL_DMA_STATE_READY == hdma->State) - 8002356: 68fb ldr r3, [r7, #12] - 8002358: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 - 800235c: b2db uxtb r3, r3 - 800235e: 2b01 cmp r3, #1 - 8002360: d12f bne.n 80023c2 - { - /* Change DMA peripheral state */ - hdma->State = HAL_DMA_STATE_BUSY; - 8002362: 68fb ldr r3, [r7, #12] - 8002364: 2202 movs r2, #2 - 8002366: f883 2035 strb.w r2, [r3, #53] @ 0x35 - - /* Initialize the error code */ - hdma->ErrorCode = HAL_DMA_ERROR_NONE; - 800236a: 68fb ldr r3, [r7, #12] - 800236c: 2200 movs r2, #0 - 800236e: 655a str r2, [r3, #84] @ 0x54 - - /* Configure the source, destination address and the data length */ - DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength); - 8002370: 683b ldr r3, [r7, #0] - 8002372: 687a ldr r2, [r7, #4] - 8002374: 68b9 ldr r1, [r7, #8] - 8002376: 68f8 ldr r0, [r7, #12] - 8002378: f000 fa4a bl 8002810 - - /* Clear all interrupt flags at correct offset within the register */ - regs->IFCR = 0x3FU << hdma->StreamIndex; - 800237c: 68fb ldr r3, [r7, #12] - 800237e: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002380: 223f movs r2, #63 @ 0x3f - 8002382: 409a lsls r2, r3 - 8002384: 693b ldr r3, [r7, #16] - 8002386: 609a str r2, [r3, #8] - - /* Enable Common interrupts*/ - hdma->Instance->CR |= DMA_IT_TC | DMA_IT_TE | DMA_IT_DME; - 8002388: 68fb ldr r3, [r7, #12] - 800238a: 681b ldr r3, [r3, #0] - 800238c: 681a ldr r2, [r3, #0] - 800238e: 68fb ldr r3, [r7, #12] +0800231c : + 800231c: b580 push {r7, lr} + 800231e: b084 sub sp, #16 + 8002320: af00 add r7, sp, #0 + 8002322: 6078 str r0, [r7, #4] + 8002324: 687b ldr r3, [r7, #4] + 8002326: 6d9b ldr r3, [r3, #88] @ 0x58 + 8002328: 60fb str r3, [r7, #12] + 800232a: f7ff fdaf bl 8001e8c + 800232e: 60b8 str r0, [r7, #8] + 8002330: 687b ldr r3, [r7, #4] + 8002332: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 + 8002336: b2db uxtb r3, r3 + 8002338: 2b02 cmp r3, #2 + 800233a: d008 beq.n 800234e + 800233c: 687b ldr r3, [r7, #4] + 800233e: 2280 movs r2, #128 @ 0x80 + 8002340: 655a str r2, [r3, #84] @ 0x54 + 8002342: 687b ldr r3, [r7, #4] + 8002344: 2200 movs r2, #0 + 8002346: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 800234a: 2301 movs r3, #1 + 800234c: e052 b.n 80023f4 + 800234e: 687b ldr r3, [r7, #4] + 8002350: 681b ldr r3, [r3, #0] + 8002352: 681a ldr r2, [r3, #0] + 8002354: 687b ldr r3, [r7, #4] + 8002356: 681b ldr r3, [r3, #0] + 8002358: f022 0216 bic.w r2, r2, #22 + 800235c: 601a str r2, [r3, #0] + 800235e: 687b ldr r3, [r7, #4] + 8002360: 681b ldr r3, [r3, #0] + 8002362: 695a ldr r2, [r3, #20] + 8002364: 687b ldr r3, [r7, #4] + 8002366: 681b ldr r3, [r3, #0] + 8002368: f022 0280 bic.w r2, r2, #128 @ 0x80 + 800236c: 615a str r2, [r3, #20] + 800236e: 687b ldr r3, [r7, #4] + 8002370: 6c1b ldr r3, [r3, #64] @ 0x40 + 8002372: 2b00 cmp r3, #0 + 8002374: d103 bne.n 800237e + 8002376: 687b ldr r3, [r7, #4] + 8002378: 6c9b ldr r3, [r3, #72] @ 0x48 + 800237a: 2b00 cmp r3, #0 + 800237c: d007 beq.n 800238e + 800237e: 687b ldr r3, [r7, #4] + 8002380: 681b ldr r3, [r3, #0] + 8002382: 681a ldr r2, [r3, #0] + 8002384: 687b ldr r3, [r7, #4] + 8002386: 681b ldr r3, [r3, #0] + 8002388: f022 0208 bic.w r2, r2, #8 + 800238c: 601a str r2, [r3, #0] + 800238e: 687b ldr r3, [r7, #4] 8002390: 681b ldr r3, [r3, #0] - 8002392: f042 0216 orr.w r2, r2, #22 - 8002396: 601a str r2, [r3, #0] - - if(hdma->XferHalfCpltCallback != NULL) - 8002398: 68fb ldr r3, [r7, #12] - 800239a: 6c1b ldr r3, [r3, #64] @ 0x40 - 800239c: 2b00 cmp r3, #0 - 800239e: d007 beq.n 80023b0 - { - hdma->Instance->CR |= DMA_IT_HT; - 80023a0: 68fb ldr r3, [r7, #12] - 80023a2: 681b ldr r3, [r3, #0] - 80023a4: 681a ldr r2, [r3, #0] - 80023a6: 68fb ldr r3, [r7, #12] - 80023a8: 681b ldr r3, [r3, #0] - 80023aa: f042 0208 orr.w r2, r2, #8 - 80023ae: 601a str r2, [r3, #0] - } - - /* Enable the Peripheral */ - __HAL_DMA_ENABLE(hdma); - 80023b0: 68fb ldr r3, [r7, #12] - 80023b2: 681b ldr r3, [r3, #0] - 80023b4: 681a ldr r2, [r3, #0] - 80023b6: 68fb ldr r3, [r7, #12] - 80023b8: 681b ldr r3, [r3, #0] - 80023ba: f042 0201 orr.w r2, r2, #1 - 80023be: 601a str r2, [r3, #0] - 80023c0: e005 b.n 80023ce - } - else - { - /* Process unlocked */ - __HAL_UNLOCK(hdma); - 80023c2: 68fb ldr r3, [r7, #12] - 80023c4: 2200 movs r2, #0 - 80023c6: f883 2034 strb.w r2, [r3, #52] @ 0x34 - - /* Return error status */ - status = HAL_BUSY; - 80023ca: 2302 movs r3, #2 - 80023cc: 75fb strb r3, [r7, #23] - } - - return status; - 80023ce: 7dfb ldrb r3, [r7, #23] -} - 80023d0: 4618 mov r0, r3 - 80023d2: 3718 adds r7, #24 - 80023d4: 46bd mov sp, r7 - 80023d6: bd80 pop {r7, pc} + 8002392: 681a ldr r2, [r3, #0] + 8002394: 687b ldr r3, [r7, #4] + 8002396: 681b ldr r3, [r3, #0] + 8002398: f022 0201 bic.w r2, r2, #1 + 800239c: 601a str r2, [r3, #0] + 800239e: e013 b.n 80023c8 + 80023a0: f7ff fd74 bl 8001e8c + 80023a4: 4602 mov r2, r0 + 80023a6: 68bb ldr r3, [r7, #8] + 80023a8: 1ad3 subs r3, r2, r3 + 80023aa: 2b05 cmp r3, #5 + 80023ac: d90c bls.n 80023c8 + 80023ae: 687b ldr r3, [r7, #4] + 80023b0: 2220 movs r2, #32 + 80023b2: 655a str r2, [r3, #84] @ 0x54 + 80023b4: 687b ldr r3, [r7, #4] + 80023b6: 2203 movs r2, #3 + 80023b8: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 80023bc: 687b ldr r3, [r7, #4] + 80023be: 2200 movs r2, #0 + 80023c0: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 80023c4: 2303 movs r3, #3 + 80023c6: e015 b.n 80023f4 + 80023c8: 687b ldr r3, [r7, #4] + 80023ca: 681b ldr r3, [r3, #0] + 80023cc: 681b ldr r3, [r3, #0] + 80023ce: f003 0301 and.w r3, r3, #1 + 80023d2: 2b00 cmp r3, #0 + 80023d4: d1e4 bne.n 80023a0 + 80023d6: 687b ldr r3, [r7, #4] + 80023d8: 6ddb ldr r3, [r3, #92] @ 0x5c + 80023da: 223f movs r2, #63 @ 0x3f + 80023dc: 409a lsls r2, r3 + 80023de: 68fb ldr r3, [r7, #12] + 80023e0: 609a str r2, [r3, #8] + 80023e2: 687b ldr r3, [r7, #4] + 80023e4: 2201 movs r2, #1 + 80023e6: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 80023ea: 687b ldr r3, [r7, #4] + 80023ec: 2200 movs r2, #0 + 80023ee: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 80023f2: 2300 movs r3, #0 + 80023f4: 4618 mov r0, r3 + 80023f6: 3710 adds r7, #16 + 80023f8: 46bd mov sp, r7 + 80023fa: bd80 pop {r7, pc} -080023d8 : - * 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) -{ - 80023d8: b580 push {r7, lr} - 80023da: b084 sub sp, #16 - 80023dc: af00 add r7, sp, #0 - 80023de: 6078 str r0, [r7, #4] - /* calculate DMA base and stream number */ - DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress; - 80023e0: 687b ldr r3, [r7, #4] - 80023e2: 6d9b ldr r3, [r3, #88] @ 0x58 - 80023e4: 60fb str r3, [r7, #12] - - uint32_t tickstart = HAL_GetTick(); - 80023e6: f7ff fdaf bl 8001f48 - 80023ea: 60b8 str r0, [r7, #8] - - if(hdma->State != HAL_DMA_STATE_BUSY) - 80023ec: 687b ldr r3, [r7, #4] - 80023ee: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 - 80023f2: b2db uxtb r3, r3 - 80023f4: 2b02 cmp r3, #2 - 80023f6: d008 beq.n 800240a - { - hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 80023f8: 687b ldr r3, [r7, #4] - 80023fa: 2280 movs r2, #128 @ 0x80 - 80023fc: 655a str r2, [r3, #84] @ 0x54 - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - 80023fe: 687b ldr r3, [r7, #4] - 8002400: 2200 movs r2, #0 - 8002402: f883 2034 strb.w r2, [r3, #52] @ 0x34 - - return HAL_ERROR; - 8002406: 2301 movs r3, #1 - 8002408: e052 b.n 80024b0 - } - else - { - /* Disable all the transfer interrupts */ - hdma->Instance->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME); - 800240a: 687b ldr r3, [r7, #4] - 800240c: 681b ldr r3, [r3, #0] - 800240e: 681a ldr r2, [r3, #0] +080023fc : + 80023fc: b480 push {r7} + 80023fe: b083 sub sp, #12 + 8002400: af00 add r7, sp, #0 + 8002402: 6078 str r0, [r7, #4] + 8002404: 687b ldr r3, [r7, #4] + 8002406: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 + 800240a: b2db uxtb r3, r3 + 800240c: 2b02 cmp r3, #2 + 800240e: d004 beq.n 800241a 8002410: 687b ldr r3, [r7, #4] - 8002412: 681b ldr r3, [r3, #0] - 8002414: f022 0216 bic.w r2, r2, #22 - 8002418: 601a str r2, [r3, #0] - hdma->Instance->FCR &= ~(DMA_IT_FE); + 8002412: 2280 movs r2, #128 @ 0x80 + 8002414: 655a str r2, [r3, #84] @ 0x54 + 8002416: 2301 movs r3, #1 + 8002418: e00c b.n 8002434 800241a: 687b ldr r3, [r7, #4] - 800241c: 681b ldr r3, [r3, #0] - 800241e: 695a ldr r2, [r3, #20] - 8002420: 687b ldr r3, [r7, #4] - 8002422: 681b ldr r3, [r3, #0] - 8002424: f022 0280 bic.w r2, r2, #128 @ 0x80 - 8002428: 615a str r2, [r3, #20] - - if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL)) - 800242a: 687b ldr r3, [r7, #4] - 800242c: 6c1b ldr r3, [r3, #64] @ 0x40 - 800242e: 2b00 cmp r3, #0 - 8002430: d103 bne.n 800243a - 8002432: 687b ldr r3, [r7, #4] - 8002434: 6c9b ldr r3, [r3, #72] @ 0x48 - 8002436: 2b00 cmp r3, #0 - 8002438: d007 beq.n 800244a - { - hdma->Instance->CR &= ~(DMA_IT_HT); - 800243a: 687b ldr r3, [r7, #4] - 800243c: 681b ldr r3, [r3, #0] - 800243e: 681a ldr r2, [r3, #0] - 8002440: 687b ldr r3, [r7, #4] - 8002442: 681b ldr r3, [r3, #0] - 8002444: f022 0208 bic.w r2, r2, #8 - 8002448: 601a str r2, [r3, #0] - } - - /* Disable the stream */ - __HAL_DMA_DISABLE(hdma); - 800244a: 687b ldr r3, [r7, #4] - 800244c: 681b ldr r3, [r3, #0] - 800244e: 681a ldr r2, [r3, #0] - 8002450: 687b ldr r3, [r7, #4] - 8002452: 681b ldr r3, [r3, #0] - 8002454: f022 0201 bic.w r2, r2, #1 - 8002458: 601a str r2, [r3, #0] - - /* Check if the DMA Stream is effectively disabled */ - while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) - 800245a: e013 b.n 8002484 - { - /* Check for the Timeout */ - if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT) - 800245c: f7ff fd74 bl 8001f48 - 8002460: 4602 mov r2, r0 - 8002462: 68bb ldr r3, [r7, #8] - 8002464: 1ad3 subs r3, r2, r3 - 8002466: 2b05 cmp r3, #5 - 8002468: d90c bls.n 8002484 - { - /* Update error code */ - hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; - 800246a: 687b ldr r3, [r7, #4] - 800246c: 2220 movs r2, #32 - 800246e: 655a str r2, [r3, #84] @ 0x54 - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_TIMEOUT; - 8002470: 687b ldr r3, [r7, #4] - 8002472: 2203 movs r2, #3 - 8002474: f883 2035 strb.w r2, [r3, #53] @ 0x35 - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - 8002478: 687b ldr r3, [r7, #4] - 800247a: 2200 movs r2, #0 - 800247c: f883 2034 strb.w r2, [r3, #52] @ 0x34 - - return HAL_TIMEOUT; - 8002480: 2303 movs r3, #3 - 8002482: e015 b.n 80024b0 - while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) + 800241c: 2205 movs r2, #5 + 800241e: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8002422: 687b ldr r3, [r7, #4] + 8002424: 681b ldr r3, [r3, #0] + 8002426: 681a ldr r2, [r3, #0] + 8002428: 687b ldr r3, [r7, #4] + 800242a: 681b ldr r3, [r3, #0] + 800242c: f022 0201 bic.w r2, r2, #1 + 8002430: 601a str r2, [r3, #0] + 8002432: 2300 movs r3, #0 + 8002434: 4618 mov r0, r3 + 8002436: 370c adds r7, #12 + 8002438: 46bd mov sp, r7 + 800243a: f85d 7b04 ldr.w r7, [sp], #4 + 800243e: 4770 bx lr + +08002440 : + 8002440: b580 push {r7, lr} + 8002442: b086 sub sp, #24 + 8002444: af00 add r7, sp, #0 + 8002446: 6078 str r0, [r7, #4] + 8002448: 2300 movs r3, #0 + 800244a: 60bb str r3, [r7, #8] + 800244c: 4b8e ldr r3, [pc, #568] @ (8002688 ) + 800244e: 681b ldr r3, [r3, #0] + 8002450: 4a8e ldr r2, [pc, #568] @ (800268c ) + 8002452: fba2 2303 umull r2, r3, r2, r3 + 8002456: 0a9b lsrs r3, r3, #10 + 8002458: 617b str r3, [r7, #20] + 800245a: 687b ldr r3, [r7, #4] + 800245c: 6d9b ldr r3, [r3, #88] @ 0x58 + 800245e: 613b str r3, [r7, #16] + 8002460: 693b ldr r3, [r7, #16] + 8002462: 681b ldr r3, [r3, #0] + 8002464: 60fb str r3, [r7, #12] + 8002466: 687b ldr r3, [r7, #4] + 8002468: 6ddb ldr r3, [r3, #92] @ 0x5c + 800246a: 2208 movs r2, #8 + 800246c: 409a lsls r2, r3 + 800246e: 68fb ldr r3, [r7, #12] + 8002470: 4013 ands r3, r2 + 8002472: 2b00 cmp r3, #0 + 8002474: d01a beq.n 80024ac + 8002476: 687b ldr r3, [r7, #4] + 8002478: 681b ldr r3, [r3, #0] + 800247a: 681b ldr r3, [r3, #0] + 800247c: f003 0304 and.w r3, r3, #4 + 8002480: 2b00 cmp r3, #0 + 8002482: d013 beq.n 80024ac 8002484: 687b ldr r3, [r7, #4] 8002486: 681b ldr r3, [r3, #0] - 8002488: 681b ldr r3, [r3, #0] - 800248a: f003 0301 and.w r3, r3, #1 - 800248e: 2b00 cmp r3, #0 - 8002490: d1e4 bne.n 800245c - } - } - - /* Clear all interrupt flags at correct offset within the register */ - regs->IFCR = 0x3FU << hdma->StreamIndex; - 8002492: 687b ldr r3, [r7, #4] - 8002494: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002496: 223f movs r2, #63 @ 0x3f - 8002498: 409a lsls r2, r3 - 800249a: 68fb ldr r3, [r7, #12] - 800249c: 609a str r2, [r3, #8] - - /* Change the DMA state*/ - hdma->State = HAL_DMA_STATE_READY; - 800249e: 687b ldr r3, [r7, #4] - 80024a0: 2201 movs r2, #1 - 80024a2: f883 2035 strb.w r2, [r3, #53] @ 0x35 - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - 80024a6: 687b ldr r3, [r7, #4] - 80024a8: 2200 movs r2, #0 - 80024aa: f883 2034 strb.w r2, [r3, #52] @ 0x34 - } - return HAL_OK; - 80024ae: 2300 movs r3, #0 -} - 80024b0: 4618 mov r0, r3 - 80024b2: 3710 adds r7, #16 - 80024b4: 46bd mov sp, r7 - 80024b6: bd80 pop {r7, pc} - -080024b8 : - * @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) -{ - 80024b8: b480 push {r7} - 80024ba: b083 sub sp, #12 - 80024bc: af00 add r7, sp, #0 - 80024be: 6078 str r0, [r7, #4] - if(hdma->State != HAL_DMA_STATE_BUSY) - 80024c0: 687b ldr r3, [r7, #4] - 80024c2: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 - 80024c6: b2db uxtb r3, r3 - 80024c8: 2b02 cmp r3, #2 - 80024ca: d004 beq.n 80024d6 - { - hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 80024cc: 687b ldr r3, [r7, #4] - 80024ce: 2280 movs r2, #128 @ 0x80 - 80024d0: 655a str r2, [r3, #84] @ 0x54 - return HAL_ERROR; - 80024d2: 2301 movs r3, #1 - 80024d4: e00c b.n 80024f0 - } - else - { - /* Set Abort State */ - hdma->State = HAL_DMA_STATE_ABORT; + 8002488: 681a ldr r2, [r3, #0] + 800248a: 687b ldr r3, [r7, #4] + 800248c: 681b ldr r3, [r3, #0] + 800248e: f022 0204 bic.w r2, r2, #4 + 8002492: 601a str r2, [r3, #0] + 8002494: 687b ldr r3, [r7, #4] + 8002496: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002498: 2208 movs r2, #8 + 800249a: 409a lsls r2, r3 + 800249c: 693b ldr r3, [r7, #16] + 800249e: 609a str r2, [r3, #8] + 80024a0: 687b ldr r3, [r7, #4] + 80024a2: 6d5b ldr r3, [r3, #84] @ 0x54 + 80024a4: f043 0201 orr.w r2, r3, #1 + 80024a8: 687b ldr r3, [r7, #4] + 80024aa: 655a str r2, [r3, #84] @ 0x54 + 80024ac: 687b ldr r3, [r7, #4] + 80024ae: 6ddb ldr r3, [r3, #92] @ 0x5c + 80024b0: 2201 movs r2, #1 + 80024b2: 409a lsls r2, r3 + 80024b4: 68fb ldr r3, [r7, #12] + 80024b6: 4013 ands r3, r2 + 80024b8: 2b00 cmp r3, #0 + 80024ba: d012 beq.n 80024e2 + 80024bc: 687b ldr r3, [r7, #4] + 80024be: 681b ldr r3, [r3, #0] + 80024c0: 695b ldr r3, [r3, #20] + 80024c2: f003 0380 and.w r3, r3, #128 @ 0x80 + 80024c6: 2b00 cmp r3, #0 + 80024c8: d00b beq.n 80024e2 + 80024ca: 687b ldr r3, [r7, #4] + 80024cc: 6ddb ldr r3, [r3, #92] @ 0x5c + 80024ce: 2201 movs r2, #1 + 80024d0: 409a lsls r2, r3 + 80024d2: 693b ldr r3, [r7, #16] + 80024d4: 609a str r2, [r3, #8] 80024d6: 687b ldr r3, [r7, #4] - 80024d8: 2205 movs r2, #5 - 80024da: f883 2035 strb.w r2, [r3, #53] @ 0x35 - - /* Disable the stream */ - __HAL_DMA_DISABLE(hdma); + 80024d8: 6d5b ldr r3, [r3, #84] @ 0x54 + 80024da: f043 0202 orr.w r2, r3, #2 80024de: 687b ldr r3, [r7, #4] - 80024e0: 681b ldr r3, [r3, #0] - 80024e2: 681a ldr r2, [r3, #0] - 80024e4: 687b ldr r3, [r7, #4] - 80024e6: 681b ldr r3, [r3, #0] - 80024e8: f022 0201 bic.w r2, r2, #1 - 80024ec: 601a str r2, [r3, #0] - } - - return HAL_OK; - 80024ee: 2300 movs r3, #0 -} - 80024f0: 4618 mov r0, r3 - 80024f2: 370c adds r7, #12 - 80024f4: 46bd mov sp, r7 - 80024f6: f85d 7b04 ldr.w r7, [sp], #4 - 80024fa: 4770 bx lr - -080024fc : - * @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) -{ - 80024fc: b580 push {r7, lr} - 80024fe: b086 sub sp, #24 - 8002500: af00 add r7, sp, #0 - 8002502: 6078 str r0, [r7, #4] - uint32_t tmpisr; - __IO uint32_t count = 0U; - 8002504: 2300 movs r3, #0 - 8002506: 60bb str r3, [r7, #8] - uint32_t timeout = SystemCoreClock / 9600U; - 8002508: 4b8e ldr r3, [pc, #568] @ (8002744 ) - 800250a: 681b ldr r3, [r3, #0] - 800250c: 4a8e ldr r2, [pc, #568] @ (8002748 ) - 800250e: fba2 2303 umull r2, r3, r2, r3 - 8002512: 0a9b lsrs r3, r3, #10 - 8002514: 617b str r3, [r7, #20] - - /* calculate DMA base and stream number */ - DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress; - 8002516: 687b ldr r3, [r7, #4] - 8002518: 6d9b ldr r3, [r3, #88] @ 0x58 - 800251a: 613b str r3, [r7, #16] - - tmpisr = regs->ISR; - 800251c: 693b ldr r3, [r7, #16] - 800251e: 681b ldr r3, [r3, #0] - 8002520: 60fb str r3, [r7, #12] - - /* Transfer Error Interrupt management ***************************************/ - if ((tmpisr & (DMA_FLAG_TEIF0_4 << hdma->StreamIndex)) != RESET) - 8002522: 687b ldr r3, [r7, #4] - 8002524: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002526: 2208 movs r2, #8 - 8002528: 409a lsls r2, r3 - 800252a: 68fb ldr r3, [r7, #12] - 800252c: 4013 ands r3, r2 - 800252e: 2b00 cmp r3, #0 - 8002530: d01a beq.n 8002568 - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != RESET) - 8002532: 687b ldr r3, [r7, #4] - 8002534: 681b ldr r3, [r3, #0] - 8002536: 681b ldr r3, [r3, #0] - 8002538: f003 0304 and.w r3, r3, #4 - 800253c: 2b00 cmp r3, #0 - 800253e: d013 beq.n 8002568 - { - /* Disable the transfer error interrupt */ - hdma->Instance->CR &= ~(DMA_IT_TE); - 8002540: 687b ldr r3, [r7, #4] - 8002542: 681b ldr r3, [r3, #0] - 8002544: 681a ldr r2, [r3, #0] - 8002546: 687b ldr r3, [r7, #4] - 8002548: 681b ldr r3, [r3, #0] - 800254a: f022 0204 bic.w r2, r2, #4 - 800254e: 601a str r2, [r3, #0] - - /* Clear the transfer error flag */ - regs->IFCR = DMA_FLAG_TEIF0_4 << hdma->StreamIndex; + 80024e0: 655a str r2, [r3, #84] @ 0x54 + 80024e2: 687b ldr r3, [r7, #4] + 80024e4: 6ddb ldr r3, [r3, #92] @ 0x5c + 80024e6: 2204 movs r2, #4 + 80024e8: 409a lsls r2, r3 + 80024ea: 68fb ldr r3, [r7, #12] + 80024ec: 4013 ands r3, r2 + 80024ee: 2b00 cmp r3, #0 + 80024f0: d012 beq.n 8002518 + 80024f2: 687b ldr r3, [r7, #4] + 80024f4: 681b ldr r3, [r3, #0] + 80024f6: 681b ldr r3, [r3, #0] + 80024f8: f003 0302 and.w r3, r3, #2 + 80024fc: 2b00 cmp r3, #0 + 80024fe: d00b beq.n 8002518 + 8002500: 687b ldr r3, [r7, #4] + 8002502: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002504: 2204 movs r2, #4 + 8002506: 409a lsls r2, r3 + 8002508: 693b ldr r3, [r7, #16] + 800250a: 609a str r2, [r3, #8] + 800250c: 687b ldr r3, [r7, #4] + 800250e: 6d5b ldr r3, [r3, #84] @ 0x54 + 8002510: f043 0204 orr.w r2, r3, #4 + 8002514: 687b ldr r3, [r7, #4] + 8002516: 655a str r2, [r3, #84] @ 0x54 + 8002518: 687b ldr r3, [r7, #4] + 800251a: 6ddb ldr r3, [r3, #92] @ 0x5c + 800251c: 2210 movs r2, #16 + 800251e: 409a lsls r2, r3 + 8002520: 68fb ldr r3, [r7, #12] + 8002522: 4013 ands r3, r2 + 8002524: 2b00 cmp r3, #0 + 8002526: d043 beq.n 80025b0 + 8002528: 687b ldr r3, [r7, #4] + 800252a: 681b ldr r3, [r3, #0] + 800252c: 681b ldr r3, [r3, #0] + 800252e: f003 0308 and.w r3, r3, #8 + 8002532: 2b00 cmp r3, #0 + 8002534: d03c beq.n 80025b0 + 8002536: 687b ldr r3, [r7, #4] + 8002538: 6ddb ldr r3, [r3, #92] @ 0x5c + 800253a: 2210 movs r2, #16 + 800253c: 409a lsls r2, r3 + 800253e: 693b ldr r3, [r7, #16] + 8002540: 609a str r2, [r3, #8] + 8002542: 687b ldr r3, [r7, #4] + 8002544: 681b ldr r3, [r3, #0] + 8002546: 681b ldr r3, [r3, #0] + 8002548: f403 2380 and.w r3, r3, #262144 @ 0x40000 + 800254c: 2b00 cmp r3, #0 + 800254e: d018 beq.n 8002582 8002550: 687b ldr r3, [r7, #4] - 8002552: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002554: 2208 movs r2, #8 - 8002556: 409a lsls r2, r3 - 8002558: 693b ldr r3, [r7, #16] - 800255a: 609a str r2, [r3, #8] - - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_TE; - 800255c: 687b ldr r3, [r7, #4] - 800255e: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002560: f043 0201 orr.w r2, r3, #1 - 8002564: 687b ldr r3, [r7, #4] - 8002566: 655a str r2, [r3, #84] @ 0x54 - } - } - /* FIFO Error Interrupt management ******************************************/ - if ((tmpisr & (DMA_FLAG_FEIF0_4 << hdma->StreamIndex)) != RESET) - 8002568: 687b ldr r3, [r7, #4] - 800256a: 6ddb ldr r3, [r3, #92] @ 0x5c - 800256c: 2201 movs r2, #1 - 800256e: 409a lsls r2, r3 - 8002570: 68fb ldr r3, [r7, #12] - 8002572: 4013 ands r3, r2 + 8002552: 681b ldr r3, [r3, #0] + 8002554: 681b ldr r3, [r3, #0] + 8002556: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 800255a: 2b00 cmp r3, #0 + 800255c: d108 bne.n 8002570 + 800255e: 687b ldr r3, [r7, #4] + 8002560: 6c1b ldr r3, [r3, #64] @ 0x40 + 8002562: 2b00 cmp r3, #0 + 8002564: d024 beq.n 80025b0 + 8002566: 687b ldr r3, [r7, #4] + 8002568: 6c1b ldr r3, [r3, #64] @ 0x40 + 800256a: 6878 ldr r0, [r7, #4] + 800256c: 4798 blx r3 + 800256e: e01f b.n 80025b0 + 8002570: 687b ldr r3, [r7, #4] + 8002572: 6c9b ldr r3, [r3, #72] @ 0x48 8002574: 2b00 cmp r3, #0 - 8002576: d012 beq.n 800259e - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != RESET) + 8002576: d01b beq.n 80025b0 8002578: 687b ldr r3, [r7, #4] - 800257a: 681b ldr r3, [r3, #0] - 800257c: 695b ldr r3, [r3, #20] - 800257e: f003 0380 and.w r3, r3, #128 @ 0x80 - 8002582: 2b00 cmp r3, #0 - 8002584: d00b beq.n 800259e - { - /* Clear the FIFO error flag */ - regs->IFCR = DMA_FLAG_FEIF0_4 << hdma->StreamIndex; - 8002586: 687b ldr r3, [r7, #4] - 8002588: 6ddb ldr r3, [r3, #92] @ 0x5c - 800258a: 2201 movs r2, #1 - 800258c: 409a lsls r2, r3 - 800258e: 693b ldr r3, [r7, #16] - 8002590: 609a str r2, [r3, #8] - - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_FE; - 8002592: 687b ldr r3, [r7, #4] - 8002594: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002596: f043 0202 orr.w r2, r3, #2 - 800259a: 687b ldr r3, [r7, #4] - 800259c: 655a str r2, [r3, #84] @ 0x54 - } - } - /* Direct Mode Error Interrupt management ***********************************/ - if ((tmpisr & (DMA_FLAG_DMEIF0_4 << hdma->StreamIndex)) != RESET) - 800259e: 687b ldr r3, [r7, #4] - 80025a0: 6ddb ldr r3, [r3, #92] @ 0x5c - 80025a2: 2204 movs r2, #4 - 80025a4: 409a lsls r2, r3 - 80025a6: 68fb ldr r3, [r7, #12] - 80025a8: 4013 ands r3, r2 - 80025aa: 2b00 cmp r3, #0 - 80025ac: d012 beq.n 80025d4 - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != RESET) - 80025ae: 687b ldr r3, [r7, #4] - 80025b0: 681b ldr r3, [r3, #0] - 80025b2: 681b ldr r3, [r3, #0] - 80025b4: f003 0302 and.w r3, r3, #2 - 80025b8: 2b00 cmp r3, #0 - 80025ba: d00b beq.n 80025d4 - { - /* Clear the direct mode error flag */ - regs->IFCR = DMA_FLAG_DMEIF0_4 << hdma->StreamIndex; - 80025bc: 687b ldr r3, [r7, #4] - 80025be: 6ddb ldr r3, [r3, #92] @ 0x5c - 80025c0: 2204 movs r2, #4 - 80025c2: 409a lsls r2, r3 - 80025c4: 693b ldr r3, [r7, #16] - 80025c6: 609a str r2, [r3, #8] - - /* Update error code */ - hdma->ErrorCode |= HAL_DMA_ERROR_DME; - 80025c8: 687b ldr r3, [r7, #4] - 80025ca: 6d5b ldr r3, [r3, #84] @ 0x54 - 80025cc: f043 0204 orr.w r2, r3, #4 - 80025d0: 687b ldr r3, [r7, #4] - 80025d2: 655a str r2, [r3, #84] @ 0x54 - } - } - /* Half Transfer Complete Interrupt management ******************************/ - if ((tmpisr & (DMA_FLAG_HTIF0_4 << hdma->StreamIndex)) != RESET) - 80025d4: 687b ldr r3, [r7, #4] - 80025d6: 6ddb ldr r3, [r3, #92] @ 0x5c - 80025d8: 2210 movs r2, #16 - 80025da: 409a lsls r2, r3 - 80025dc: 68fb ldr r3, [r7, #12] - 80025de: 4013 ands r3, r2 - 80025e0: 2b00 cmp r3, #0 - 80025e2: d043 beq.n 800266c - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != RESET) - 80025e4: 687b ldr r3, [r7, #4] - 80025e6: 681b ldr r3, [r3, #0] - 80025e8: 681b ldr r3, [r3, #0] - 80025ea: f003 0308 and.w r3, r3, #8 - 80025ee: 2b00 cmp r3, #0 - 80025f0: d03c beq.n 800266c - { - /* Clear the half transfer complete flag */ - regs->IFCR = DMA_FLAG_HTIF0_4 << hdma->StreamIndex; - 80025f2: 687b ldr r3, [r7, #4] - 80025f4: 6ddb ldr r3, [r3, #92] @ 0x5c - 80025f6: 2210 movs r2, #16 - 80025f8: 409a lsls r2, r3 - 80025fa: 693b ldr r3, [r7, #16] - 80025fc: 609a str r2, [r3, #8] - - /* Multi_Buffering mode enabled */ - if(((hdma->Instance->CR) & (uint32_t)(DMA_SxCR_DBM)) != RESET) - 80025fe: 687b ldr r3, [r7, #4] - 8002600: 681b ldr r3, [r3, #0] + 800257a: 6c9b ldr r3, [r3, #72] @ 0x48 + 800257c: 6878 ldr r0, [r7, #4] + 800257e: 4798 blx r3 + 8002580: e016 b.n 80025b0 + 8002582: 687b ldr r3, [r7, #4] + 8002584: 681b ldr r3, [r3, #0] + 8002586: 681b ldr r3, [r3, #0] + 8002588: f403 7380 and.w r3, r3, #256 @ 0x100 + 800258c: 2b00 cmp r3, #0 + 800258e: d107 bne.n 80025a0 + 8002590: 687b ldr r3, [r7, #4] + 8002592: 681b ldr r3, [r3, #0] + 8002594: 681a ldr r2, [r3, #0] + 8002596: 687b ldr r3, [r7, #4] + 8002598: 681b ldr r3, [r3, #0] + 800259a: f022 0208 bic.w r2, r2, #8 + 800259e: 601a str r2, [r3, #0] + 80025a0: 687b ldr r3, [r7, #4] + 80025a2: 6c1b ldr r3, [r3, #64] @ 0x40 + 80025a4: 2b00 cmp r3, #0 + 80025a6: d003 beq.n 80025b0 + 80025a8: 687b ldr r3, [r7, #4] + 80025aa: 6c1b ldr r3, [r3, #64] @ 0x40 + 80025ac: 6878 ldr r0, [r7, #4] + 80025ae: 4798 blx r3 + 80025b0: 687b ldr r3, [r7, #4] + 80025b2: 6ddb ldr r3, [r3, #92] @ 0x5c + 80025b4: 2220 movs r2, #32 + 80025b6: 409a lsls r2, r3 + 80025b8: 68fb ldr r3, [r7, #12] + 80025ba: 4013 ands r3, r2 + 80025bc: 2b00 cmp r3, #0 + 80025be: f000 808f beq.w 80026e0 + 80025c2: 687b ldr r3, [r7, #4] + 80025c4: 681b ldr r3, [r3, #0] + 80025c6: 681b ldr r3, [r3, #0] + 80025c8: f003 0310 and.w r3, r3, #16 + 80025cc: 2b00 cmp r3, #0 + 80025ce: f000 8087 beq.w 80026e0 + 80025d2: 687b ldr r3, [r7, #4] + 80025d4: 6ddb ldr r3, [r3, #92] @ 0x5c + 80025d6: 2220 movs r2, #32 + 80025d8: 409a lsls r2, r3 + 80025da: 693b ldr r3, [r7, #16] + 80025dc: 609a str r2, [r3, #8] + 80025de: 687b ldr r3, [r7, #4] + 80025e0: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 + 80025e4: b2db uxtb r3, r3 + 80025e6: 2b05 cmp r3, #5 + 80025e8: d136 bne.n 8002658 + 80025ea: 687b ldr r3, [r7, #4] + 80025ec: 681b ldr r3, [r3, #0] + 80025ee: 681a ldr r2, [r3, #0] + 80025f0: 687b ldr r3, [r7, #4] + 80025f2: 681b ldr r3, [r3, #0] + 80025f4: f022 0216 bic.w r2, r2, #22 + 80025f8: 601a str r2, [r3, #0] + 80025fa: 687b ldr r3, [r7, #4] + 80025fc: 681b ldr r3, [r3, #0] + 80025fe: 695a ldr r2, [r3, #20] + 8002600: 687b ldr r3, [r7, #4] 8002602: 681b ldr r3, [r3, #0] - 8002604: f403 2380 and.w r3, r3, #262144 @ 0x40000 - 8002608: 2b00 cmp r3, #0 - 800260a: d018 beq.n 800263e - { - /* Current memory buffer used is Memory 0 */ - if((hdma->Instance->CR & DMA_SxCR_CT) == RESET) - 800260c: 687b ldr r3, [r7, #4] - 800260e: 681b ldr r3, [r3, #0] - 8002610: 681b ldr r3, [r3, #0] - 8002612: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 8002604: f022 0280 bic.w r2, r2, #128 @ 0x80 + 8002608: 615a str r2, [r3, #20] + 800260a: 687b ldr r3, [r7, #4] + 800260c: 6c1b ldr r3, [r3, #64] @ 0x40 + 800260e: 2b00 cmp r3, #0 + 8002610: d103 bne.n 800261a + 8002612: 687b ldr r3, [r7, #4] + 8002614: 6c9b ldr r3, [r3, #72] @ 0x48 8002616: 2b00 cmp r3, #0 - 8002618: d108 bne.n 800262c - { - if(hdma->XferHalfCpltCallback != NULL) + 8002618: d007 beq.n 800262a 800261a: 687b ldr r3, [r7, #4] - 800261c: 6c1b ldr r3, [r3, #64] @ 0x40 - 800261e: 2b00 cmp r3, #0 - 8002620: d024 beq.n 800266c - { - /* Half transfer callback */ - hdma->XferHalfCpltCallback(hdma); - 8002622: 687b ldr r3, [r7, #4] - 8002624: 6c1b ldr r3, [r3, #64] @ 0x40 - 8002626: 6878 ldr r0, [r7, #4] - 8002628: 4798 blx r3 - 800262a: e01f b.n 800266c - } - } - /* Current memory buffer used is Memory 1 */ - else - { - if(hdma->XferM1HalfCpltCallback != NULL) - 800262c: 687b ldr r3, [r7, #4] - 800262e: 6c9b ldr r3, [r3, #72] @ 0x48 - 8002630: 2b00 cmp r3, #0 - 8002632: d01b beq.n 800266c - { - /* Half transfer callback */ - hdma->XferM1HalfCpltCallback(hdma); - 8002634: 687b ldr r3, [r7, #4] - 8002636: 6c9b ldr r3, [r3, #72] @ 0x48 - 8002638: 6878 ldr r0, [r7, #4] - 800263a: 4798 blx r3 - 800263c: e016 b.n 800266c - } - } - else - { - /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */ - if((hdma->Instance->CR & DMA_SxCR_CIRC) == RESET) + 800261c: 681b ldr r3, [r3, #0] + 800261e: 681a ldr r2, [r3, #0] + 8002620: 687b ldr r3, [r7, #4] + 8002622: 681b ldr r3, [r3, #0] + 8002624: f022 0208 bic.w r2, r2, #8 + 8002628: 601a str r2, [r3, #0] + 800262a: 687b ldr r3, [r7, #4] + 800262c: 6ddb ldr r3, [r3, #92] @ 0x5c + 800262e: 223f movs r2, #63 @ 0x3f + 8002630: 409a lsls r2, r3 + 8002632: 693b ldr r3, [r7, #16] + 8002634: 609a str r2, [r3, #8] + 8002636: 687b ldr r3, [r7, #4] + 8002638: 2201 movs r2, #1 + 800263a: f883 2035 strb.w r2, [r3, #53] @ 0x35 800263e: 687b ldr r3, [r7, #4] - 8002640: 681b ldr r3, [r3, #0] - 8002642: 681b ldr r3, [r3, #0] - 8002644: f403 7380 and.w r3, r3, #256 @ 0x100 - 8002648: 2b00 cmp r3, #0 - 800264a: d107 bne.n 800265c - { - /* Disable the half transfer interrupt */ - hdma->Instance->CR &= ~(DMA_IT_HT); - 800264c: 687b ldr r3, [r7, #4] - 800264e: 681b ldr r3, [r3, #0] - 8002650: 681a ldr r2, [r3, #0] - 8002652: 687b ldr r3, [r7, #4] - 8002654: 681b ldr r3, [r3, #0] - 8002656: f022 0208 bic.w r2, r2, #8 - 800265a: 601a str r2, [r3, #0] - } - - if(hdma->XferHalfCpltCallback != NULL) - 800265c: 687b ldr r3, [r7, #4] - 800265e: 6c1b ldr r3, [r3, #64] @ 0x40 - 8002660: 2b00 cmp r3, #0 - 8002662: d003 beq.n 800266c - { - /* Half transfer callback */ - hdma->XferHalfCpltCallback(hdma); - 8002664: 687b ldr r3, [r7, #4] - 8002666: 6c1b ldr r3, [r3, #64] @ 0x40 - 8002668: 6878 ldr r0, [r7, #4] - 800266a: 4798 blx r3 - } - } - } - } - /* Transfer Complete Interrupt management ***********************************/ - if ((tmpisr & (DMA_FLAG_TCIF0_4 << hdma->StreamIndex)) != RESET) - 800266c: 687b ldr r3, [r7, #4] - 800266e: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002670: 2220 movs r2, #32 - 8002672: 409a lsls r2, r3 - 8002674: 68fb ldr r3, [r7, #12] - 8002676: 4013 ands r3, r2 + 8002640: 2200 movs r2, #0 + 8002642: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 8002646: 687b ldr r3, [r7, #4] + 8002648: 6d1b ldr r3, [r3, #80] @ 0x50 + 800264a: 2b00 cmp r3, #0 + 800264c: d07e beq.n 800274c + 800264e: 687b ldr r3, [r7, #4] + 8002650: 6d1b ldr r3, [r3, #80] @ 0x50 + 8002652: 6878 ldr r0, [r7, #4] + 8002654: 4798 blx r3 + 8002656: e079 b.n 800274c + 8002658: 687b ldr r3, [r7, #4] + 800265a: 681b ldr r3, [r3, #0] + 800265c: 681b ldr r3, [r3, #0] + 800265e: f403 2380 and.w r3, r3, #262144 @ 0x40000 + 8002662: 2b00 cmp r3, #0 + 8002664: d01d beq.n 80026a2 + 8002666: 687b ldr r3, [r7, #4] + 8002668: 681b ldr r3, [r3, #0] + 800266a: 681b ldr r3, [r3, #0] + 800266c: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 8002670: 2b00 cmp r3, #0 + 8002672: d10d bne.n 8002690 + 8002674: 687b ldr r3, [r7, #4] + 8002676: 6c5b ldr r3, [r3, #68] @ 0x44 8002678: 2b00 cmp r3, #0 - 800267a: f000 808f beq.w 800279c - { - if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != RESET) - 800267e: 687b ldr r3, [r7, #4] - 8002680: 681b ldr r3, [r3, #0] - 8002682: 681b ldr r3, [r3, #0] - 8002684: f003 0310 and.w r3, r3, #16 - 8002688: 2b00 cmp r3, #0 - 800268a: f000 8087 beq.w 800279c - { - /* Clear the transfer complete flag */ - regs->IFCR = DMA_FLAG_TCIF0_4 << hdma->StreamIndex; - 800268e: 687b ldr r3, [r7, #4] - 8002690: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002692: 2220 movs r2, #32 - 8002694: 409a lsls r2, r3 - 8002696: 693b ldr r3, [r7, #16] - 8002698: 609a str r2, [r3, #8] - - if(HAL_DMA_STATE_ABORT == hdma->State) - 800269a: 687b ldr r3, [r7, #4] - 800269c: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 - 80026a0: b2db uxtb r3, r3 - 80026a2: 2b05 cmp r3, #5 - 80026a4: d136 bne.n 8002714 - { - /* Disable all the transfer interrupts */ - hdma->Instance->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME); - 80026a6: 687b ldr r3, [r7, #4] - 80026a8: 681b ldr r3, [r3, #0] - 80026aa: 681a ldr r2, [r3, #0] - 80026ac: 687b ldr r3, [r7, #4] - 80026ae: 681b ldr r3, [r3, #0] - 80026b0: f022 0216 bic.w r2, r2, #22 - 80026b4: 601a str r2, [r3, #0] - hdma->Instance->FCR &= ~(DMA_IT_FE); + 800267a: d031 beq.n 80026e0 + 800267c: 687b ldr r3, [r7, #4] + 800267e: 6c5b ldr r3, [r3, #68] @ 0x44 + 8002680: 6878 ldr r0, [r7, #4] + 8002682: 4798 blx r3 + 8002684: e02c b.n 80026e0 + 8002686: bf00 nop + 8002688: 20000104 .word 0x20000104 + 800268c: 1b4e81b5 .word 0x1b4e81b5 + 8002690: 687b ldr r3, [r7, #4] + 8002692: 6bdb ldr r3, [r3, #60] @ 0x3c + 8002694: 2b00 cmp r3, #0 + 8002696: d023 beq.n 80026e0 + 8002698: 687b ldr r3, [r7, #4] + 800269a: 6bdb ldr r3, [r3, #60] @ 0x3c + 800269c: 6878 ldr r0, [r7, #4] + 800269e: 4798 blx r3 + 80026a0: e01e b.n 80026e0 + 80026a2: 687b ldr r3, [r7, #4] + 80026a4: 681b ldr r3, [r3, #0] + 80026a6: 681b ldr r3, [r3, #0] + 80026a8: f403 7380 and.w r3, r3, #256 @ 0x100 + 80026ac: 2b00 cmp r3, #0 + 80026ae: d10f bne.n 80026d0 + 80026b0: 687b ldr r3, [r7, #4] + 80026b2: 681b ldr r3, [r3, #0] + 80026b4: 681a ldr r2, [r3, #0] 80026b6: 687b ldr r3, [r7, #4] 80026b8: 681b ldr r3, [r3, #0] - 80026ba: 695a ldr r2, [r3, #20] - 80026bc: 687b ldr r3, [r7, #4] - 80026be: 681b ldr r3, [r3, #0] - 80026c0: f022 0280 bic.w r2, r2, #128 @ 0x80 - 80026c4: 615a str r2, [r3, #20] - - if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL)) - 80026c6: 687b ldr r3, [r7, #4] - 80026c8: 6c1b ldr r3, [r3, #64] @ 0x40 - 80026ca: 2b00 cmp r3, #0 - 80026cc: d103 bne.n 80026d6 - 80026ce: 687b ldr r3, [r7, #4] - 80026d0: 6c9b ldr r3, [r3, #72] @ 0x48 - 80026d2: 2b00 cmp r3, #0 - 80026d4: d007 beq.n 80026e6 - { - hdma->Instance->CR &= ~(DMA_IT_HT); - 80026d6: 687b ldr r3, [r7, #4] - 80026d8: 681b ldr r3, [r3, #0] - 80026da: 681a ldr r2, [r3, #0] - 80026dc: 687b ldr r3, [r7, #4] - 80026de: 681b ldr r3, [r3, #0] - 80026e0: f022 0208 bic.w r2, r2, #8 - 80026e4: 601a str r2, [r3, #0] - } - - /* Clear all interrupt flags at correct offset within the register */ - regs->IFCR = 0x3FU << hdma->StreamIndex; - 80026e6: 687b ldr r3, [r7, #4] - 80026e8: 6ddb ldr r3, [r3, #92] @ 0x5c - 80026ea: 223f movs r2, #63 @ 0x3f - 80026ec: 409a lsls r2, r3 - 80026ee: 693b ldr r3, [r7, #16] - 80026f0: 609a str r2, [r3, #8] - - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - 80026f2: 687b ldr r3, [r7, #4] - 80026f4: 2201 movs r2, #1 - 80026f6: f883 2035 strb.w r2, [r3, #53] @ 0x35 - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - 80026fa: 687b ldr r3, [r7, #4] - 80026fc: 2200 movs r2, #0 - 80026fe: f883 2034 strb.w r2, [r3, #52] @ 0x34 - - if(hdma->XferAbortCallback != NULL) + 80026ba: f022 0210 bic.w r2, r2, #16 + 80026be: 601a str r2, [r3, #0] + 80026c0: 687b ldr r3, [r7, #4] + 80026c2: 2201 movs r2, #1 + 80026c4: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 80026c8: 687b ldr r3, [r7, #4] + 80026ca: 2200 movs r2, #0 + 80026cc: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 80026d0: 687b ldr r3, [r7, #4] + 80026d2: 6bdb ldr r3, [r3, #60] @ 0x3c + 80026d4: 2b00 cmp r3, #0 + 80026d6: d003 beq.n 80026e0 + 80026d8: 687b ldr r3, [r7, #4] + 80026da: 6bdb ldr r3, [r3, #60] @ 0x3c + 80026dc: 6878 ldr r0, [r7, #4] + 80026de: 4798 blx r3 + 80026e0: 687b ldr r3, [r7, #4] + 80026e2: 6d5b ldr r3, [r3, #84] @ 0x54 + 80026e4: 2b00 cmp r3, #0 + 80026e6: d032 beq.n 800274e + 80026e8: 687b ldr r3, [r7, #4] + 80026ea: 6d5b ldr r3, [r3, #84] @ 0x54 + 80026ec: f003 0301 and.w r3, r3, #1 + 80026f0: 2b00 cmp r3, #0 + 80026f2: d022 beq.n 800273a + 80026f4: 687b ldr r3, [r7, #4] + 80026f6: 2205 movs r2, #5 + 80026f8: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 80026fc: 687b ldr r3, [r7, #4] + 80026fe: 681b ldr r3, [r3, #0] + 8002700: 681a ldr r2, [r3, #0] 8002702: 687b ldr r3, [r7, #4] - 8002704: 6d1b ldr r3, [r3, #80] @ 0x50 - 8002706: 2b00 cmp r3, #0 - 8002708: d07e beq.n 8002808 - { - hdma->XferAbortCallback(hdma); - 800270a: 687b ldr r3, [r7, #4] - 800270c: 6d1b ldr r3, [r3, #80] @ 0x50 - 800270e: 6878 ldr r0, [r7, #4] - 8002710: 4798 blx r3 - } - return; - 8002712: e079 b.n 8002808 - } + 8002704: 681b ldr r3, [r3, #0] + 8002706: f022 0201 bic.w r2, r2, #1 + 800270a: 601a str r2, [r3, #0] + 800270c: 68bb ldr r3, [r7, #8] + 800270e: 3301 adds r3, #1 + 8002710: 60bb str r3, [r7, #8] + 8002712: 697a ldr r2, [r7, #20] + 8002714: 429a cmp r2, r3 + 8002716: d307 bcc.n 8002728 + 8002718: 687b ldr r3, [r7, #4] + 800271a: 681b ldr r3, [r3, #0] + 800271c: 681b ldr r3, [r3, #0] + 800271e: f003 0301 and.w r3, r3, #1 + 8002722: 2b00 cmp r3, #0 + 8002724: d1f2 bne.n 800270c + 8002726: e000 b.n 800272a + 8002728: bf00 nop + 800272a: 687b ldr r3, [r7, #4] + 800272c: 2201 movs r2, #1 + 800272e: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8002732: 687b ldr r3, [r7, #4] + 8002734: 2200 movs r2, #0 + 8002736: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 800273a: 687b ldr r3, [r7, #4] + 800273c: 6cdb ldr r3, [r3, #76] @ 0x4c + 800273e: 2b00 cmp r3, #0 + 8002740: d005 beq.n 800274e + 8002742: 687b ldr r3, [r7, #4] + 8002744: 6cdb ldr r3, [r3, #76] @ 0x4c + 8002746: 6878 ldr r0, [r7, #4] + 8002748: 4798 blx r3 + 800274a: e000 b.n 800274e + 800274c: bf00 nop + 800274e: 3718 adds r7, #24 + 8002750: 46bd mov sp, r7 + 8002752: bd80 pop {r7, pc} - if(((hdma->Instance->CR) & (uint32_t)(DMA_SxCR_DBM)) != RESET) - 8002714: 687b ldr r3, [r7, #4] - 8002716: 681b ldr r3, [r3, #0] - 8002718: 681b ldr r3, [r3, #0] - 800271a: f403 2380 and.w r3, r3, #262144 @ 0x40000 - 800271e: 2b00 cmp r3, #0 - 8002720: d01d beq.n 800275e - { - /* Current memory buffer used is Memory 0 */ - if((hdma->Instance->CR & DMA_SxCR_CT) == RESET) - 8002722: 687b ldr r3, [r7, #4] - 8002724: 681b ldr r3, [r3, #0] - 8002726: 681b ldr r3, [r3, #0] - 8002728: f403 2300 and.w r3, r3, #524288 @ 0x80000 - 800272c: 2b00 cmp r3, #0 - 800272e: d10d bne.n 800274c - { - if(hdma->XferM1CpltCallback != NULL) - 8002730: 687b ldr r3, [r7, #4] - 8002732: 6c5b ldr r3, [r3, #68] @ 0x44 - 8002734: 2b00 cmp r3, #0 - 8002736: d031 beq.n 800279c - { - /* Transfer complete Callback for memory1 */ - hdma->XferM1CpltCallback(hdma); - 8002738: 687b ldr r3, [r7, #4] - 800273a: 6c5b ldr r3, [r3, #68] @ 0x44 - 800273c: 6878 ldr r0, [r7, #4] - 800273e: 4798 blx r3 - 8002740: e02c b.n 800279c - 8002742: bf00 nop - 8002744: 20000104 .word 0x20000104 - 8002748: 1b4e81b5 .word 0x1b4e81b5 - } - } - /* Current memory buffer used is Memory 1 */ - else - { - if(hdma->XferCpltCallback != NULL) - 800274c: 687b ldr r3, [r7, #4] - 800274e: 6bdb ldr r3, [r3, #60] @ 0x3c - 8002750: 2b00 cmp r3, #0 - 8002752: d023 beq.n 800279c - { - /* Transfer complete Callback for memory0 */ - hdma->XferCpltCallback(hdma); - 8002754: 687b ldr r3, [r7, #4] - 8002756: 6bdb ldr r3, [r3, #60] @ 0x3c - 8002758: 6878 ldr r0, [r7, #4] - 800275a: 4798 blx r3 - 800275c: e01e b.n 800279c - } - } - /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */ - else - { - if((hdma->Instance->CR & DMA_SxCR_CIRC) == RESET) - 800275e: 687b ldr r3, [r7, #4] - 8002760: 681b ldr r3, [r3, #0] - 8002762: 681b ldr r3, [r3, #0] - 8002764: f403 7380 and.w r3, r3, #256 @ 0x100 - 8002768: 2b00 cmp r3, #0 - 800276a: d10f bne.n 800278c - { - /* Disable the transfer complete interrupt */ - hdma->Instance->CR &= ~(DMA_IT_TC); - 800276c: 687b ldr r3, [r7, #4] - 800276e: 681b ldr r3, [r3, #0] - 8002770: 681a ldr r2, [r3, #0] - 8002772: 687b ldr r3, [r7, #4] +08002754 : + 8002754: b480 push {r7} + 8002756: b085 sub sp, #20 + 8002758: af00 add r7, sp, #0 + 800275a: 60f8 str r0, [r7, #12] + 800275c: 60b9 str r1, [r7, #8] + 800275e: 607a str r2, [r7, #4] + 8002760: 603b str r3, [r7, #0] + 8002762: 68fb ldr r3, [r7, #12] + 8002764: 681b ldr r3, [r3, #0] + 8002766: 681a ldr r2, [r3, #0] + 8002768: 68fb ldr r3, [r7, #12] + 800276a: 681b ldr r3, [r3, #0] + 800276c: f422 2280 bic.w r2, r2, #262144 @ 0x40000 + 8002770: 601a str r2, [r3, #0] + 8002772: 68fb ldr r3, [r7, #12] 8002774: 681b ldr r3, [r3, #0] - 8002776: f022 0210 bic.w r2, r2, #16 - 800277a: 601a str r2, [r3, #0] + 8002776: 683a ldr r2, [r7, #0] + 8002778: 605a str r2, [r3, #4] + 800277a: 68fb ldr r3, [r7, #12] + 800277c: 689b ldr r3, [r3, #8] + 800277e: 2b40 cmp r3, #64 @ 0x40 + 8002780: d108 bne.n 8002794 + 8002782: 68fb ldr r3, [r7, #12] + 8002784: 681b ldr r3, [r3, #0] + 8002786: 687a ldr r2, [r7, #4] + 8002788: 609a str r2, [r3, #8] + 800278a: 68fb ldr r3, [r7, #12] + 800278c: 681b ldr r3, [r3, #0] + 800278e: 68ba ldr r2, [r7, #8] + 8002790: 60da str r2, [r3, #12] + 8002792: e007 b.n 80027a4 + 8002794: 68fb ldr r3, [r7, #12] + 8002796: 681b ldr r3, [r3, #0] + 8002798: 68ba ldr r2, [r7, #8] + 800279a: 609a str r2, [r3, #8] + 800279c: 68fb ldr r3, [r7, #12] + 800279e: 681b ldr r3, [r3, #0] + 80027a0: 687a ldr r2, [r7, #4] + 80027a2: 60da str r2, [r3, #12] + 80027a4: bf00 nop + 80027a6: 3714 adds r7, #20 + 80027a8: 46bd mov sp, r7 + 80027aa: f85d 7b04 ldr.w r7, [sp], #4 + 80027ae: 4770 bx lr - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - 800277c: 687b ldr r3, [r7, #4] - 800277e: 2201 movs r2, #1 - 8002780: f883 2035 strb.w r2, [r3, #53] @ 0x35 - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - 8002784: 687b ldr r3, [r7, #4] - 8002786: 2200 movs r2, #0 - 8002788: f883 2034 strb.w r2, [r3, #52] @ 0x34 - } - - if(hdma->XferCpltCallback != NULL) - 800278c: 687b ldr r3, [r7, #4] - 800278e: 6bdb ldr r3, [r3, #60] @ 0x3c - 8002790: 2b00 cmp r3, #0 - 8002792: d003 beq.n 800279c - { - /* Transfer complete callback */ - hdma->XferCpltCallback(hdma); - 8002794: 687b ldr r3, [r7, #4] - 8002796: 6bdb ldr r3, [r3, #60] @ 0x3c - 8002798: 6878 ldr r0, [r7, #4] - 800279a: 4798 blx r3 - } - } - } - - /* manage error case */ - if(hdma->ErrorCode != HAL_DMA_ERROR_NONE) - 800279c: 687b ldr r3, [r7, #4] - 800279e: 6d5b ldr r3, [r3, #84] @ 0x54 - 80027a0: 2b00 cmp r3, #0 - 80027a2: d032 beq.n 800280a - { - if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != RESET) - 80027a4: 687b ldr r3, [r7, #4] - 80027a6: 6d5b ldr r3, [r3, #84] @ 0x54 - 80027a8: f003 0301 and.w r3, r3, #1 - 80027ac: 2b00 cmp r3, #0 - 80027ae: d022 beq.n 80027f6 - { - hdma->State = HAL_DMA_STATE_ABORT; - 80027b0: 687b ldr r3, [r7, #4] - 80027b2: 2205 movs r2, #5 - 80027b4: f883 2035 strb.w r2, [r3, #53] @ 0x35 - - /* Disable the stream */ - __HAL_DMA_DISABLE(hdma); +080027b0 : + 80027b0: b480 push {r7} + 80027b2: b085 sub sp, #20 + 80027b4: af00 add r7, sp, #0 + 80027b6: 6078 str r0, [r7, #4] 80027b8: 687b ldr r3, [r7, #4] 80027ba: 681b ldr r3, [r3, #0] - 80027bc: 681a ldr r2, [r3, #0] - 80027be: 687b ldr r3, [r7, #4] - 80027c0: 681b ldr r3, [r3, #0] - 80027c2: f022 0201 bic.w r2, r2, #1 - 80027c6: 601a str r2, [r3, #0] - - do - { - if (++count > timeout) - 80027c8: 68bb ldr r3, [r7, #8] - 80027ca: 3301 adds r3, #1 - 80027cc: 60bb str r3, [r7, #8] - 80027ce: 697a ldr r2, [r7, #20] - 80027d0: 429a cmp r2, r3 - 80027d2: d307 bcc.n 80027e4 - { - break; - } - } - while((hdma->Instance->CR & DMA_SxCR_EN) != RESET); + 80027bc: b2db uxtb r3, r3 + 80027be: 3b10 subs r3, #16 + 80027c0: 4a14 ldr r2, [pc, #80] @ (8002814 ) + 80027c2: fba2 2303 umull r2, r3, r2, r3 + 80027c6: 091b lsrs r3, r3, #4 + 80027c8: 60fb str r3, [r7, #12] + 80027ca: 4a13 ldr r2, [pc, #76] @ (8002818 ) + 80027cc: 68fb ldr r3, [r7, #12] + 80027ce: 4413 add r3, r2 + 80027d0: 781b ldrb r3, [r3, #0] + 80027d2: 461a mov r2, r3 80027d4: 687b ldr r3, [r7, #4] - 80027d6: 681b ldr r3, [r3, #0] - 80027d8: 681b ldr r3, [r3, #0] - 80027da: f003 0301 and.w r3, r3, #1 - 80027de: 2b00 cmp r3, #0 - 80027e0: d1f2 bne.n 80027c8 - 80027e2: e000 b.n 80027e6 - break; - 80027e4: bf00 nop + 80027d6: 65da str r2, [r3, #92] @ 0x5c + 80027d8: 68fb ldr r3, [r7, #12] + 80027da: 2b03 cmp r3, #3 + 80027dc: d909 bls.n 80027f2 + 80027de: 687b ldr r3, [r7, #4] + 80027e0: 681b ldr r3, [r3, #0] + 80027e2: f423 737f bic.w r3, r3, #1020 @ 0x3fc + 80027e6: f023 0303 bic.w r3, r3, #3 + 80027ea: 1d1a adds r2, r3, #4 + 80027ec: 687b ldr r3, [r7, #4] + 80027ee: 659a str r2, [r3, #88] @ 0x58 + 80027f0: e007 b.n 8002802 + 80027f2: 687b ldr r3, [r7, #4] + 80027f4: 681b ldr r3, [r3, #0] + 80027f6: f423 737f bic.w r3, r3, #1020 @ 0x3fc + 80027fa: f023 0303 bic.w r3, r3, #3 + 80027fe: 687a ldr r2, [r7, #4] + 8002800: 6593 str r3, [r2, #88] @ 0x58 + 8002802: 687b ldr r3, [r7, #4] + 8002804: 6d9b ldr r3, [r3, #88] @ 0x58 + 8002806: 4618 mov r0, r3 + 8002808: 3714 adds r7, #20 + 800280a: 46bd mov sp, r7 + 800280c: f85d 7b04 ldr.w r7, [sp], #4 + 8002810: 4770 bx lr + 8002812: bf00 nop + 8002814: aaaaaaab .word 0xaaaaaaab + 8002818: 0800b10c .word 0x0800b10c - /* Change the DMA state */ - hdma->State = HAL_DMA_STATE_READY; - 80027e6: 687b ldr r3, [r7, #4] - 80027e8: 2201 movs r2, #1 - 80027ea: f883 2035 strb.w r2, [r3, #53] @ 0x35 - - /* Process Unlocked */ - __HAL_UNLOCK(hdma); - 80027ee: 687b ldr r3, [r7, #4] - 80027f0: 2200 movs r2, #0 - 80027f2: f883 2034 strb.w r2, [r3, #52] @ 0x34 - } - - if(hdma->XferErrorCallback != NULL) - 80027f6: 687b ldr r3, [r7, #4] - 80027f8: 6cdb ldr r3, [r3, #76] @ 0x4c - 80027fa: 2b00 cmp r3, #0 - 80027fc: d005 beq.n 800280a - { - /* Transfer error callback */ - hdma->XferErrorCallback(hdma); - 80027fe: 687b ldr r3, [r7, #4] - 8002800: 6cdb ldr r3, [r3, #76] @ 0x4c - 8002802: 6878 ldr r0, [r7, #4] - 8002804: 4798 blx r3 - 8002806: e000 b.n 800280a - return; - 8002808: bf00 nop - } - } -} - 800280a: 3718 adds r7, #24 - 800280c: 46bd mov sp, r7 - 800280e: bd80 pop {r7, pc} - -08002810 : - * @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) -{ - 8002810: b480 push {r7} - 8002812: b085 sub sp, #20 - 8002814: af00 add r7, sp, #0 - 8002816: 60f8 str r0, [r7, #12] - 8002818: 60b9 str r1, [r7, #8] - 800281a: 607a str r2, [r7, #4] - 800281c: 603b str r3, [r7, #0] - /* Clear DBM bit */ - hdma->Instance->CR &= (uint32_t)(~DMA_SxCR_DBM); - 800281e: 68fb ldr r3, [r7, #12] - 8002820: 681b ldr r3, [r3, #0] - 8002822: 681a ldr r2, [r3, #0] - 8002824: 68fb ldr r3, [r7, #12] - 8002826: 681b ldr r3, [r3, #0] - 8002828: f422 2280 bic.w r2, r2, #262144 @ 0x40000 - 800282c: 601a str r2, [r3, #0] - - /* Configure DMA Stream data length */ - hdma->Instance->NDTR = DataLength; - 800282e: 68fb ldr r3, [r7, #12] - 8002830: 681b ldr r3, [r3, #0] - 8002832: 683a ldr r2, [r7, #0] - 8002834: 605a str r2, [r3, #4] - - /* Memory to Peripheral */ - if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH) - 8002836: 68fb ldr r3, [r7, #12] - 8002838: 689b ldr r3, [r3, #8] - 800283a: 2b40 cmp r3, #64 @ 0x40 - 800283c: d108 bne.n 8002850 - { - /* Configure DMA Stream destination address */ - hdma->Instance->PAR = DstAddress; - 800283e: 68fb ldr r3, [r7, #12] - 8002840: 681b ldr r3, [r3, #0] - 8002842: 687a ldr r2, [r7, #4] - 8002844: 609a str r2, [r3, #8] - - /* Configure DMA Stream source address */ - hdma->Instance->M0AR = SrcAddress; - 8002846: 68fb ldr r3, [r7, #12] - 8002848: 681b ldr r3, [r3, #0] - 800284a: 68ba ldr r2, [r7, #8] - 800284c: 60da str r2, [r3, #12] - hdma->Instance->PAR = SrcAddress; - - /* Configure DMA Stream destination address */ - hdma->Instance->M0AR = DstAddress; - } -} - 800284e: e007 b.n 8002860 - hdma->Instance->PAR = SrcAddress; - 8002850: 68fb ldr r3, [r7, #12] - 8002852: 681b ldr r3, [r3, #0] - 8002854: 68ba ldr r2, [r7, #8] - 8002856: 609a str r2, [r3, #8] - hdma->Instance->M0AR = DstAddress; - 8002858: 68fb ldr r3, [r7, #12] - 800285a: 681b ldr r3, [r3, #0] - 800285c: 687a ldr r2, [r7, #4] - 800285e: 60da str r2, [r3, #12] -} - 8002860: bf00 nop - 8002862: 3714 adds r7, #20 - 8002864: 46bd mov sp, r7 - 8002866: f85d 7b04 ldr.w r7, [sp], #4 - 800286a: 4770 bx lr - -0800286c : - * @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) -{ - 800286c: b480 push {r7} - 800286e: b085 sub sp, #20 - 8002870: af00 add r7, sp, #0 - 8002872: 6078 str r0, [r7, #4] - uint32_t stream_number = (((uint32_t)hdma->Instance & 0xFFU) - 16U) / 24U; - 8002874: 687b ldr r3, [r7, #4] - 8002876: 681b ldr r3, [r3, #0] - 8002878: b2db uxtb r3, r3 - 800287a: 3b10 subs r3, #16 - 800287c: 4a14 ldr r2, [pc, #80] @ (80028d0 ) - 800287e: fba2 2303 umull r2, r3, r2, r3 - 8002882: 091b lsrs r3, r3, #4 - 8002884: 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]; - 8002886: 4a13 ldr r2, [pc, #76] @ (80028d4 ) - 8002888: 68fb ldr r3, [r7, #12] - 800288a: 4413 add r3, r2 - 800288c: 781b ldrb r3, [r3, #0] - 800288e: 461a mov r2, r3 - 8002890: 687b ldr r3, [r7, #4] - 8002892: 65da str r2, [r3, #92] @ 0x5c - - if (stream_number > 3U) - 8002894: 68fb ldr r3, [r7, #12] - 8002896: 2b03 cmp r3, #3 - 8002898: d909 bls.n 80028ae - { - /* return pointer to HISR and HIFCR */ - hdma->StreamBaseAddress = (((uint32_t)hdma->Instance & (uint32_t)(~0x3FFU)) + 4U); - 800289a: 687b ldr r3, [r7, #4] - 800289c: 681b ldr r3, [r3, #0] - 800289e: f423 737f bic.w r3, r3, #1020 @ 0x3fc - 80028a2: f023 0303 bic.w r3, r3, #3 - 80028a6: 1d1a adds r2, r3, #4 - 80028a8: 687b ldr r3, [r7, #4] - 80028aa: 659a str r2, [r3, #88] @ 0x58 - 80028ac: e007 b.n 80028be - } - else - { - /* return pointer to LISR and LIFCR */ - hdma->StreamBaseAddress = ((uint32_t)hdma->Instance & (uint32_t)(~0x3FFU)); - 80028ae: 687b ldr r3, [r7, #4] - 80028b0: 681b ldr r3, [r3, #0] - 80028b2: f423 737f bic.w r3, r3, #1020 @ 0x3fc - 80028b6: f023 0303 bic.w r3, r3, #3 - 80028ba: 687a ldr r2, [r7, #4] - 80028bc: 6593 str r3, [r2, #88] @ 0x58 - } - - return hdma->StreamBaseAddress; - 80028be: 687b ldr r3, [r7, #4] - 80028c0: 6d9b ldr r3, [r3, #88] @ 0x58 -} - 80028c2: 4618 mov r0, r3 - 80028c4: 3714 adds r7, #20 - 80028c6: 46bd mov sp, r7 - 80028c8: f85d 7b04 ldr.w r7, [sp], #4 - 80028cc: 4770 bx lr - 80028ce: bf00 nop - 80028d0: aaaaaaab .word 0xaaaaaaab - 80028d4: 0800b450 .word 0x0800b450 - -080028d8 : - * @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) -{ - 80028d8: b480 push {r7} - 80028da: b085 sub sp, #20 - 80028dc: af00 add r7, sp, #0 - 80028de: 6078 str r0, [r7, #4] - HAL_StatusTypeDef status = HAL_OK; - 80028e0: 2300 movs r3, #0 - 80028e2: 73fb strb r3, [r7, #15] - uint32_t tmp = hdma->Init.FIFOThreshold; - 80028e4: 687b ldr r3, [r7, #4] - 80028e6: 6a9b ldr r3, [r3, #40] @ 0x28 - 80028e8: 60bb str r3, [r7, #8] - - /* Memory Data size equal to Byte */ - if(hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE) - 80028ea: 687b ldr r3, [r7, #4] - 80028ec: 699b ldr r3, [r3, #24] - 80028ee: 2b00 cmp r3, #0 - 80028f0: d11f bne.n 8002932 - { - switch (tmp) - 80028f2: 68bb ldr r3, [r7, #8] - 80028f4: 2b03 cmp r3, #3 - 80028f6: d856 bhi.n 80029a6 - 80028f8: a201 add r2, pc, #4 @ (adr r2, 8002900 ) - 80028fa: f852 f023 ldr.w pc, [r2, r3, lsl #2] +0800281c : + 800281c: b480 push {r7} + 800281e: b085 sub sp, #20 + 8002820: af00 add r7, sp, #0 + 8002822: 6078 str r0, [r7, #4] + 8002824: 2300 movs r3, #0 + 8002826: 73fb strb r3, [r7, #15] + 8002828: 687b ldr r3, [r7, #4] + 800282a: 6a9b ldr r3, [r3, #40] @ 0x28 + 800282c: 60bb str r3, [r7, #8] + 800282e: 687b ldr r3, [r7, #4] + 8002830: 699b ldr r3, [r3, #24] + 8002832: 2b00 cmp r3, #0 + 8002834: d11f bne.n 8002876 + 8002836: 68bb ldr r3, [r7, #8] + 8002838: 2b03 cmp r3, #3 + 800283a: d856 bhi.n 80028ea + 800283c: a201 add r2, pc, #4 @ (adr r2, 8002844 ) + 800283e: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8002842: bf00 nop + 8002844: 08002855 .word 0x08002855 + 8002848: 08002867 .word 0x08002867 + 800284c: 08002855 .word 0x08002855 + 8002850: 080028eb .word 0x080028eb + 8002854: 687b ldr r3, [r7, #4] + 8002856: 6adb ldr r3, [r3, #44] @ 0x2c + 8002858: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 + 800285c: 2b00 cmp r3, #0 + 800285e: d046 beq.n 80028ee + 8002860: 2301 movs r3, #1 + 8002862: 73fb strb r3, [r7, #15] + 8002864: e043 b.n 80028ee + 8002866: 687b ldr r3, [r7, #4] + 8002868: 6adb ldr r3, [r3, #44] @ 0x2c + 800286a: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000 + 800286e: d140 bne.n 80028f2 + 8002870: 2301 movs r3, #1 + 8002872: 73fb strb r3, [r7, #15] + 8002874: e03d b.n 80028f2 + 8002876: 687b ldr r3, [r7, #4] + 8002878: 699b ldr r3, [r3, #24] + 800287a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 + 800287e: d121 bne.n 80028c4 + 8002880: 68bb ldr r3, [r7, #8] + 8002882: 2b03 cmp r3, #3 + 8002884: d837 bhi.n 80028f6 + 8002886: a201 add r2, pc, #4 @ (adr r2, 800288c ) + 8002888: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800288c: 0800289d .word 0x0800289d + 8002890: 080028a3 .word 0x080028a3 + 8002894: 0800289d .word 0x0800289d + 8002898: 080028b5 .word 0x080028b5 + 800289c: 2301 movs r3, #1 + 800289e: 73fb strb r3, [r7, #15] + 80028a0: e030 b.n 8002904 + 80028a2: 687b ldr r3, [r7, #4] + 80028a4: 6adb ldr r3, [r3, #44] @ 0x2c + 80028a6: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 + 80028aa: 2b00 cmp r3, #0 + 80028ac: d025 beq.n 80028fa + 80028ae: 2301 movs r3, #1 + 80028b0: 73fb strb r3, [r7, #15] + 80028b2: e022 b.n 80028fa + 80028b4: 687b ldr r3, [r7, #4] + 80028b6: 6adb ldr r3, [r3, #44] @ 0x2c + 80028b8: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000 + 80028bc: d11f bne.n 80028fe + 80028be: 2301 movs r3, #1 + 80028c0: 73fb strb r3, [r7, #15] + 80028c2: e01c b.n 80028fe + 80028c4: 68bb ldr r3, [r7, #8] + 80028c6: 2b02 cmp r3, #2 + 80028c8: d903 bls.n 80028d2 + 80028ca: 68bb ldr r3, [r7, #8] + 80028cc: 2b03 cmp r3, #3 + 80028ce: d003 beq.n 80028d8 + 80028d0: e018 b.n 8002904 + 80028d2: 2301 movs r3, #1 + 80028d4: 73fb strb r3, [r7, #15] + 80028d6: e015 b.n 8002904 + 80028d8: 687b ldr r3, [r7, #4] + 80028da: 6adb ldr r3, [r3, #44] @ 0x2c + 80028dc: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 + 80028e0: 2b00 cmp r3, #0 + 80028e2: d00e beq.n 8002902 + 80028e4: 2301 movs r3, #1 + 80028e6: 73fb strb r3, [r7, #15] + 80028e8: e00b b.n 8002902 + 80028ea: bf00 nop + 80028ec: e00a b.n 8002904 + 80028ee: bf00 nop + 80028f0: e008 b.n 8002904 + 80028f2: bf00 nop + 80028f4: e006 b.n 8002904 + 80028f6: bf00 nop + 80028f8: e004 b.n 8002904 + 80028fa: bf00 nop + 80028fc: e002 b.n 8002904 80028fe: bf00 nop - 8002900: 08002911 .word 0x08002911 - 8002904: 08002923 .word 0x08002923 - 8002908: 08002911 .word 0x08002911 - 800290c: 080029a7 .word 0x080029a7 - { - case DMA_FIFO_THRESHOLD_1QUARTERFULL: - case DMA_FIFO_THRESHOLD_3QUARTERSFULL: - if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 8002910: 687b ldr r3, [r7, #4] - 8002912: 6adb ldr r3, [r3, #44] @ 0x2c - 8002914: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 - 8002918: 2b00 cmp r3, #0 - 800291a: d046 beq.n 80029aa - { - status = HAL_ERROR; - 800291c: 2301 movs r3, #1 - 800291e: 73fb strb r3, [r7, #15] - } - break; - 8002920: e043 b.n 80029aa - case DMA_FIFO_THRESHOLD_HALFFULL: - if (hdma->Init.MemBurst == DMA_MBURST_INC16) - 8002922: 687b ldr r3, [r7, #4] - 8002924: 6adb ldr r3, [r3, #44] @ 0x2c - 8002926: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000 - 800292a: d140 bne.n 80029ae - { - status = HAL_ERROR; - 800292c: 2301 movs r3, #1 - 800292e: 73fb strb r3, [r7, #15] - } - break; - 8002930: e03d b.n 80029ae - break; - } - } - - /* Memory Data size equal to Half-Word */ - else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD) - 8002932: 687b ldr r3, [r7, #4] - 8002934: 699b ldr r3, [r3, #24] - 8002936: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 - 800293a: d121 bne.n 8002980 - { - switch (tmp) - 800293c: 68bb ldr r3, [r7, #8] - 800293e: 2b03 cmp r3, #3 - 8002940: d837 bhi.n 80029b2 - 8002942: a201 add r2, pc, #4 @ (adr r2, 8002948 ) - 8002944: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8002948: 08002959 .word 0x08002959 - 800294c: 0800295f .word 0x0800295f - 8002950: 08002959 .word 0x08002959 - 8002954: 08002971 .word 0x08002971 - { - case DMA_FIFO_THRESHOLD_1QUARTERFULL: - case DMA_FIFO_THRESHOLD_3QUARTERSFULL: - status = HAL_ERROR; - 8002958: 2301 movs r3, #1 - 800295a: 73fb strb r3, [r7, #15] - break; - 800295c: e030 b.n 80029c0 - case DMA_FIFO_THRESHOLD_HALFFULL: - if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 800295e: 687b ldr r3, [r7, #4] - 8002960: 6adb ldr r3, [r3, #44] @ 0x2c - 8002962: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 - 8002966: 2b00 cmp r3, #0 - 8002968: d025 beq.n 80029b6 - { - status = HAL_ERROR; - 800296a: 2301 movs r3, #1 - 800296c: 73fb strb r3, [r7, #15] - } - break; - 800296e: e022 b.n 80029b6 - case DMA_FIFO_THRESHOLD_FULL: - if (hdma->Init.MemBurst == DMA_MBURST_INC16) - 8002970: 687b ldr r3, [r7, #4] - 8002972: 6adb ldr r3, [r3, #44] @ 0x2c - 8002974: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000 - 8002978: d11f bne.n 80029ba - { - status = HAL_ERROR; - 800297a: 2301 movs r3, #1 - 800297c: 73fb strb r3, [r7, #15] - } - break; - 800297e: e01c b.n 80029ba - } - - /* Memory Data size equal to Word */ - else - { - switch (tmp) - 8002980: 68bb ldr r3, [r7, #8] - 8002982: 2b02 cmp r3, #2 - 8002984: d903 bls.n 800298e - 8002986: 68bb ldr r3, [r7, #8] - 8002988: 2b03 cmp r3, #3 - 800298a: d003 beq.n 8002994 - { - status = HAL_ERROR; - } - break; - default: - break; - 800298c: e018 b.n 80029c0 - status = HAL_ERROR; - 800298e: 2301 movs r3, #1 - 8002990: 73fb strb r3, [r7, #15] - break; - 8002992: e015 b.n 80029c0 - if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 8002994: 687b ldr r3, [r7, #4] - 8002996: 6adb ldr r3, [r3, #44] @ 0x2c - 8002998: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 - 800299c: 2b00 cmp r3, #0 - 800299e: d00e beq.n 80029be - status = HAL_ERROR; - 80029a0: 2301 movs r3, #1 - 80029a2: 73fb strb r3, [r7, #15] - break; - 80029a4: e00b b.n 80029be - break; - 80029a6: bf00 nop - 80029a8: e00a b.n 80029c0 - break; - 80029aa: bf00 nop - 80029ac: e008 b.n 80029c0 - break; - 80029ae: bf00 nop - 80029b0: e006 b.n 80029c0 - break; - 80029b2: bf00 nop - 80029b4: e004 b.n 80029c0 - break; - 80029b6: bf00 nop - 80029b8: e002 b.n 80029c0 - break; - 80029ba: bf00 nop - 80029bc: e000 b.n 80029c0 - break; - 80029be: bf00 nop - } - } - - return status; - 80029c0: 7bfb ldrb r3, [r7, #15] -} - 80029c2: 4618 mov r0, r3 - 80029c4: 3714 adds r7, #20 - 80029c6: 46bd mov sp, r7 - 80029c8: f85d 7b04 ldr.w r7, [sp], #4 - 80029cc: 4770 bx lr - 80029ce: bf00 nop + 8002900: e000 b.n 8002904 + 8002902: bf00 nop + 8002904: 7bfb ldrb r3, [r7, #15] + 8002906: 4618 mov r0, r3 + 8002908: 3714 adds r7, #20 + 800290a: 46bd mov sp, r7 + 800290c: f85d 7b04 ldr.w r7, [sp], #4 + 8002910: 4770 bx lr + 8002912: bf00 nop -080029d0 : - * @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) -{ - 80029d0: b480 push {r7} - 80029d2: b089 sub sp, #36 @ 0x24 - 80029d4: af00 add r7, sp, #0 - 80029d6: 6078 str r0, [r7, #4] - 80029d8: 6039 str r1, [r7, #0] - uint32_t position; - uint32_t ioposition = 0x00U; - 80029da: 2300 movs r3, #0 - 80029dc: 617b str r3, [r7, #20] - uint32_t iocurrent = 0x00U; - 80029de: 2300 movs r3, #0 - 80029e0: 613b str r3, [r7, #16] - uint32_t temp = 0x00U; - 80029e2: 2300 movs r3, #0 - 80029e4: 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++) - 80029e6: 2300 movs r3, #0 - 80029e8: 61fb str r3, [r7, #28] - 80029ea: e165 b.n 8002cb8 - { - /* Get the IO position */ - ioposition = 0x01U << position; - 80029ec: 2201 movs r2, #1 - 80029ee: 69fb ldr r3, [r7, #28] - 80029f0: fa02 f303 lsl.w r3, r2, r3 - 80029f4: 617b str r3, [r7, #20] - /* Get the current IO position */ - iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; - 80029f6: 683b ldr r3, [r7, #0] - 80029f8: 681b ldr r3, [r3, #0] - 80029fa: 697a ldr r2, [r7, #20] - 80029fc: 4013 ands r3, r2 - 80029fe: 613b str r3, [r7, #16] - - if(iocurrent == ioposition) - 8002a00: 693a ldr r2, [r7, #16] - 8002a02: 697b ldr r3, [r7, #20] - 8002a04: 429a cmp r2, r3 - 8002a06: f040 8154 bne.w 8002cb2 - { - /*--------------------- GPIO Mode Configuration ------------------------*/ - /* In case of Output or Alternate function mode selection */ - if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \ - 8002a0a: 683b ldr r3, [r7, #0] - 8002a0c: 685b ldr r3, [r3, #4] - 8002a0e: f003 0303 and.w r3, r3, #3 - 8002a12: 2b01 cmp r3, #1 - 8002a14: d005 beq.n 8002a22 - (GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - 8002a16: 683b ldr r3, [r7, #0] - 8002a18: 685b ldr r3, [r3, #4] - 8002a1a: f003 0303 and.w r3, r3, #3 - if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \ - 8002a1e: 2b02 cmp r3, #2 - 8002a20: d130 bne.n 8002a84 - { - /* Check the Speed parameter */ - assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); - /* Configure the IO Speed */ - temp = GPIOx->OSPEEDR; - 8002a22: 687b ldr r3, [r7, #4] - 8002a24: 689b ldr r3, [r3, #8] - 8002a26: 61bb str r3, [r7, #24] - temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); - 8002a28: 69fb ldr r3, [r7, #28] - 8002a2a: 005b lsls r3, r3, #1 - 8002a2c: 2203 movs r2, #3 - 8002a2e: fa02 f303 lsl.w r3, r2, r3 - 8002a32: 43db mvns r3, r3 - 8002a34: 69ba ldr r2, [r7, #24] - 8002a36: 4013 ands r3, r2 - 8002a38: 61bb str r3, [r7, #24] - temp |= (GPIO_Init->Speed << (position * 2U)); - 8002a3a: 683b ldr r3, [r7, #0] - 8002a3c: 68da ldr r2, [r3, #12] - 8002a3e: 69fb ldr r3, [r7, #28] - 8002a40: 005b lsls r3, r3, #1 - 8002a42: fa02 f303 lsl.w r3, r2, r3 - 8002a46: 69ba ldr r2, [r7, #24] - 8002a48: 4313 orrs r3, r2 - 8002a4a: 61bb str r3, [r7, #24] - GPIOx->OSPEEDR = temp; - 8002a4c: 687b ldr r3, [r7, #4] - 8002a4e: 69ba ldr r2, [r7, #24] - 8002a50: 609a str r2, [r3, #8] - - /* Configure the IO Output Type */ - temp = GPIOx->OTYPER; - 8002a52: 687b ldr r3, [r7, #4] - 8002a54: 685b ldr r3, [r3, #4] - 8002a56: 61bb str r3, [r7, #24] - temp &= ~(GPIO_OTYPER_OT_0 << position) ; - 8002a58: 2201 movs r2, #1 - 8002a5a: 69fb ldr r3, [r7, #28] - 8002a5c: fa02 f303 lsl.w r3, r2, r3 - 8002a60: 43db mvns r3, r3 - 8002a62: 69ba ldr r2, [r7, #24] - 8002a64: 4013 ands r3, r2 - 8002a66: 61bb str r3, [r7, #24] - temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); - 8002a68: 683b ldr r3, [r7, #0] - 8002a6a: 685b ldr r3, [r3, #4] - 8002a6c: 091b lsrs r3, r3, #4 - 8002a6e: f003 0201 and.w r2, r3, #1 - 8002a72: 69fb ldr r3, [r7, #28] - 8002a74: fa02 f303 lsl.w r3, r2, r3 - 8002a78: 69ba ldr r2, [r7, #24] - 8002a7a: 4313 orrs r3, r2 - 8002a7c: 61bb str r3, [r7, #24] - GPIOx->OTYPER = temp; - 8002a7e: 687b ldr r3, [r7, #4] +08002914 : + 8002914: b480 push {r7} + 8002916: b089 sub sp, #36 @ 0x24 + 8002918: af00 add r7, sp, #0 + 800291a: 6078 str r0, [r7, #4] + 800291c: 6039 str r1, [r7, #0] + 800291e: 2300 movs r3, #0 + 8002920: 617b str r3, [r7, #20] + 8002922: 2300 movs r3, #0 + 8002924: 613b str r3, [r7, #16] + 8002926: 2300 movs r3, #0 + 8002928: 61bb str r3, [r7, #24] + 800292a: 2300 movs r3, #0 + 800292c: 61fb str r3, [r7, #28] + 800292e: e165 b.n 8002bfc + 8002930: 2201 movs r2, #1 + 8002932: 69fb ldr r3, [r7, #28] + 8002934: fa02 f303 lsl.w r3, r2, r3 + 8002938: 617b str r3, [r7, #20] + 800293a: 683b ldr r3, [r7, #0] + 800293c: 681b ldr r3, [r3, #0] + 800293e: 697a ldr r2, [r7, #20] + 8002940: 4013 ands r3, r2 + 8002942: 613b str r3, [r7, #16] + 8002944: 693a ldr r2, [r7, #16] + 8002946: 697b ldr r3, [r7, #20] + 8002948: 429a cmp r2, r3 + 800294a: f040 8154 bne.w 8002bf6 + 800294e: 683b ldr r3, [r7, #0] + 8002950: 685b ldr r3, [r3, #4] + 8002952: f003 0303 and.w r3, r3, #3 + 8002956: 2b01 cmp r3, #1 + 8002958: d005 beq.n 8002966 + 800295a: 683b ldr r3, [r7, #0] + 800295c: 685b ldr r3, [r3, #4] + 800295e: f003 0303 and.w r3, r3, #3 + 8002962: 2b02 cmp r3, #2 + 8002964: d130 bne.n 80029c8 + 8002966: 687b ldr r3, [r7, #4] + 8002968: 689b ldr r3, [r3, #8] + 800296a: 61bb str r3, [r7, #24] + 800296c: 69fb ldr r3, [r7, #28] + 800296e: 005b lsls r3, r3, #1 + 8002970: 2203 movs r2, #3 + 8002972: fa02 f303 lsl.w r3, r2, r3 + 8002976: 43db mvns r3, r3 + 8002978: 69ba ldr r2, [r7, #24] + 800297a: 4013 ands r3, r2 + 800297c: 61bb str r3, [r7, #24] + 800297e: 683b ldr r3, [r7, #0] + 8002980: 68da ldr r2, [r3, #12] + 8002982: 69fb ldr r3, [r7, #28] + 8002984: 005b lsls r3, r3, #1 + 8002986: fa02 f303 lsl.w r3, r2, r3 + 800298a: 69ba ldr r2, [r7, #24] + 800298c: 4313 orrs r3, r2 + 800298e: 61bb str r3, [r7, #24] + 8002990: 687b ldr r3, [r7, #4] + 8002992: 69ba ldr r2, [r7, #24] + 8002994: 609a str r2, [r3, #8] + 8002996: 687b ldr r3, [r7, #4] + 8002998: 685b ldr r3, [r3, #4] + 800299a: 61bb str r3, [r7, #24] + 800299c: 2201 movs r2, #1 + 800299e: 69fb ldr r3, [r7, #28] + 80029a0: fa02 f303 lsl.w r3, r2, r3 + 80029a4: 43db mvns r3, r3 + 80029a6: 69ba ldr r2, [r7, #24] + 80029a8: 4013 ands r3, r2 + 80029aa: 61bb str r3, [r7, #24] + 80029ac: 683b ldr r3, [r7, #0] + 80029ae: 685b ldr r3, [r3, #4] + 80029b0: 091b lsrs r3, r3, #4 + 80029b2: f003 0201 and.w r2, r3, #1 + 80029b6: 69fb ldr r3, [r7, #28] + 80029b8: fa02 f303 lsl.w r3, r2, r3 + 80029bc: 69ba ldr r2, [r7, #24] + 80029be: 4313 orrs r3, r2 + 80029c0: 61bb str r3, [r7, #24] + 80029c2: 687b ldr r3, [r7, #4] + 80029c4: 69ba ldr r2, [r7, #24] + 80029c6: 605a str r2, [r3, #4] + 80029c8: 683b ldr r3, [r7, #0] + 80029ca: 685b ldr r3, [r3, #4] + 80029cc: f003 0303 and.w r3, r3, #3 + 80029d0: 2b03 cmp r3, #3 + 80029d2: d017 beq.n 8002a04 + 80029d4: 687b ldr r3, [r7, #4] + 80029d6: 68db ldr r3, [r3, #12] + 80029d8: 61bb str r3, [r7, #24] + 80029da: 69fb ldr r3, [r7, #28] + 80029dc: 005b lsls r3, r3, #1 + 80029de: 2203 movs r2, #3 + 80029e0: fa02 f303 lsl.w r3, r2, r3 + 80029e4: 43db mvns r3, r3 + 80029e6: 69ba ldr r2, [r7, #24] + 80029e8: 4013 ands r3, r2 + 80029ea: 61bb str r3, [r7, #24] + 80029ec: 683b ldr r3, [r7, #0] + 80029ee: 689a ldr r2, [r3, #8] + 80029f0: 69fb ldr r3, [r7, #28] + 80029f2: 005b lsls r3, r3, #1 + 80029f4: fa02 f303 lsl.w r3, r2, r3 + 80029f8: 69ba ldr r2, [r7, #24] + 80029fa: 4313 orrs r3, r2 + 80029fc: 61bb str r3, [r7, #24] + 80029fe: 687b ldr r3, [r7, #4] + 8002a00: 69ba ldr r2, [r7, #24] + 8002a02: 60da str r2, [r3, #12] + 8002a04: 683b ldr r3, [r7, #0] + 8002a06: 685b ldr r3, [r3, #4] + 8002a08: f003 0303 and.w r3, r3, #3 + 8002a0c: 2b02 cmp r3, #2 + 8002a0e: d123 bne.n 8002a58 + 8002a10: 69fb ldr r3, [r7, #28] + 8002a12: 08da lsrs r2, r3, #3 + 8002a14: 687b ldr r3, [r7, #4] + 8002a16: 3208 adds r2, #8 + 8002a18: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8002a1c: 61bb str r3, [r7, #24] + 8002a1e: 69fb ldr r3, [r7, #28] + 8002a20: f003 0307 and.w r3, r3, #7 + 8002a24: 009b lsls r3, r3, #2 + 8002a26: 220f movs r2, #15 + 8002a28: fa02 f303 lsl.w r3, r2, r3 + 8002a2c: 43db mvns r3, r3 + 8002a2e: 69ba ldr r2, [r7, #24] + 8002a30: 4013 ands r3, r2 + 8002a32: 61bb str r3, [r7, #24] + 8002a34: 683b ldr r3, [r7, #0] + 8002a36: 691a ldr r2, [r3, #16] + 8002a38: 69fb ldr r3, [r7, #28] + 8002a3a: f003 0307 and.w r3, r3, #7 + 8002a3e: 009b lsls r3, r3, #2 + 8002a40: fa02 f303 lsl.w r3, r2, r3 + 8002a44: 69ba ldr r2, [r7, #24] + 8002a46: 4313 orrs r3, r2 + 8002a48: 61bb str r3, [r7, #24] + 8002a4a: 69fb ldr r3, [r7, #28] + 8002a4c: 08da lsrs r2, r3, #3 + 8002a4e: 687b ldr r3, [r7, #4] + 8002a50: 3208 adds r2, #8 + 8002a52: 69b9 ldr r1, [r7, #24] + 8002a54: f843 1022 str.w r1, [r3, r2, lsl #2] + 8002a58: 687b ldr r3, [r7, #4] + 8002a5a: 681b ldr r3, [r3, #0] + 8002a5c: 61bb str r3, [r7, #24] + 8002a5e: 69fb ldr r3, [r7, #28] + 8002a60: 005b lsls r3, r3, #1 + 8002a62: 2203 movs r2, #3 + 8002a64: fa02 f303 lsl.w r3, r2, r3 + 8002a68: 43db mvns r3, r3 + 8002a6a: 69ba ldr r2, [r7, #24] + 8002a6c: 4013 ands r3, r2 + 8002a6e: 61bb str r3, [r7, #24] + 8002a70: 683b ldr r3, [r7, #0] + 8002a72: 685b ldr r3, [r3, #4] + 8002a74: f003 0203 and.w r2, r3, #3 + 8002a78: 69fb ldr r3, [r7, #28] + 8002a7a: 005b lsls r3, r3, #1 + 8002a7c: fa02 f303 lsl.w r3, r2, r3 8002a80: 69ba ldr r2, [r7, #24] - 8002a82: 605a str r2, [r3, #4] - } - - if((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG) - 8002a84: 683b ldr r3, [r7, #0] - 8002a86: 685b ldr r3, [r3, #4] - 8002a88: f003 0303 and.w r3, r3, #3 - 8002a8c: 2b03 cmp r3, #3 - 8002a8e: d017 beq.n 8002ac0 - { - /* 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; - 8002a90: 687b ldr r3, [r7, #4] - 8002a92: 68db ldr r3, [r3, #12] - 8002a94: 61bb str r3, [r7, #24] - temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U)); - 8002a96: 69fb ldr r3, [r7, #28] - 8002a98: 005b lsls r3, r3, #1 - 8002a9a: 2203 movs r2, #3 - 8002a9c: fa02 f303 lsl.w r3, r2, r3 - 8002aa0: 43db mvns r3, r3 - 8002aa2: 69ba ldr r2, [r7, #24] - 8002aa4: 4013 ands r3, r2 - 8002aa6: 61bb str r3, [r7, #24] - temp |= ((GPIO_Init->Pull) << (position * 2U)); - 8002aa8: 683b ldr r3, [r7, #0] - 8002aaa: 689a ldr r2, [r3, #8] - 8002aac: 69fb ldr r3, [r7, #28] - 8002aae: 005b lsls r3, r3, #1 - 8002ab0: fa02 f303 lsl.w r3, r2, r3 - 8002ab4: 69ba ldr r2, [r7, #24] - 8002ab6: 4313 orrs r3, r2 - 8002ab8: 61bb str r3, [r7, #24] - GPIOx->PUPDR = temp; - 8002aba: 687b ldr r3, [r7, #4] - 8002abc: 69ba ldr r2, [r7, #24] - 8002abe: 60da str r2, [r3, #12] - } - - /* In case of Alternate function mode selection */ - if((GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - 8002ac0: 683b ldr r3, [r7, #0] - 8002ac2: 685b ldr r3, [r3, #4] - 8002ac4: f003 0303 and.w r3, r3, #3 - 8002ac8: 2b02 cmp r3, #2 - 8002aca: d123 bne.n 8002b14 - { - /* 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]; - 8002acc: 69fb ldr r3, [r7, #28] - 8002ace: 08da lsrs r2, r3, #3 - 8002ad0: 687b ldr r3, [r7, #4] - 8002ad2: 3208 adds r2, #8 - 8002ad4: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8002a82: 4313 orrs r3, r2 + 8002a84: 61bb str r3, [r7, #24] + 8002a86: 687b ldr r3, [r7, #4] + 8002a88: 69ba ldr r2, [r7, #24] + 8002a8a: 601a str r2, [r3, #0] + 8002a8c: 683b ldr r3, [r7, #0] + 8002a8e: 685b ldr r3, [r3, #4] + 8002a90: f403 3340 and.w r3, r3, #196608 @ 0x30000 + 8002a94: 2b00 cmp r3, #0 + 8002a96: f000 80ae beq.w 8002bf6 + 8002a9a: 2300 movs r3, #0 + 8002a9c: 60fb str r3, [r7, #12] + 8002a9e: 4b5d ldr r3, [pc, #372] @ (8002c14 ) + 8002aa0: 6c5b ldr r3, [r3, #68] @ 0x44 + 8002aa2: 4a5c ldr r2, [pc, #368] @ (8002c14 ) + 8002aa4: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 8002aa8: 6453 str r3, [r2, #68] @ 0x44 + 8002aaa: 4b5a ldr r3, [pc, #360] @ (8002c14 ) + 8002aac: 6c5b ldr r3, [r3, #68] @ 0x44 + 8002aae: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 8002ab2: 60fb str r3, [r7, #12] + 8002ab4: 68fb ldr r3, [r7, #12] + 8002ab6: 4a58 ldr r2, [pc, #352] @ (8002c18 ) + 8002ab8: 69fb ldr r3, [r7, #28] + 8002aba: 089b lsrs r3, r3, #2 + 8002abc: 3302 adds r3, #2 + 8002abe: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8002ac2: 61bb str r3, [r7, #24] + 8002ac4: 69fb ldr r3, [r7, #28] + 8002ac6: f003 0303 and.w r3, r3, #3 + 8002aca: 009b lsls r3, r3, #2 + 8002acc: 220f movs r2, #15 + 8002ace: fa02 f303 lsl.w r3, r2, r3 + 8002ad2: 43db mvns r3, r3 + 8002ad4: 69ba ldr r2, [r7, #24] + 8002ad6: 4013 ands r3, r2 8002ad8: 61bb str r3, [r7, #24] - temp &= ~(0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; - 8002ada: 69fb ldr r3, [r7, #28] - 8002adc: f003 0307 and.w r3, r3, #7 - 8002ae0: 009b lsls r3, r3, #2 - 8002ae2: 220f movs r2, #15 - 8002ae4: fa02 f303 lsl.w r3, r2, r3 - 8002ae8: 43db mvns r3, r3 - 8002aea: 69ba ldr r2, [r7, #24] - 8002aec: 4013 ands r3, r2 - 8002aee: 61bb str r3, [r7, #24] - temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4U)); - 8002af0: 683b ldr r3, [r7, #0] - 8002af2: 691a ldr r2, [r3, #16] - 8002af4: 69fb ldr r3, [r7, #28] - 8002af6: f003 0307 and.w r3, r3, #7 - 8002afa: 009b lsls r3, r3, #2 - 8002afc: fa02 f303 lsl.w r3, r2, r3 - 8002b00: 69ba ldr r2, [r7, #24] - 8002b02: 4313 orrs r3, r2 - 8002b04: 61bb str r3, [r7, #24] - GPIOx->AFR[position >> 3U] = temp; - 8002b06: 69fb ldr r3, [r7, #28] - 8002b08: 08da lsrs r2, r3, #3 + 8002ada: 687b ldr r3, [r7, #4] + 8002adc: 4a4f ldr r2, [pc, #316] @ (8002c1c ) + 8002ade: 4293 cmp r3, r2 + 8002ae0: d025 beq.n 8002b2e + 8002ae2: 687b ldr r3, [r7, #4] + 8002ae4: 4a4e ldr r2, [pc, #312] @ (8002c20 ) + 8002ae6: 4293 cmp r3, r2 + 8002ae8: d01f beq.n 8002b2a + 8002aea: 687b ldr r3, [r7, #4] + 8002aec: 4a4d ldr r2, [pc, #308] @ (8002c24 ) + 8002aee: 4293 cmp r3, r2 + 8002af0: d019 beq.n 8002b26 + 8002af2: 687b ldr r3, [r7, #4] + 8002af4: 4a4c ldr r2, [pc, #304] @ (8002c28 ) + 8002af6: 4293 cmp r3, r2 + 8002af8: d013 beq.n 8002b22 + 8002afa: 687b ldr r3, [r7, #4] + 8002afc: 4a4b ldr r2, [pc, #300] @ (8002c2c ) + 8002afe: 4293 cmp r3, r2 + 8002b00: d00d beq.n 8002b1e + 8002b02: 687b ldr r3, [r7, #4] + 8002b04: 4a4a ldr r2, [pc, #296] @ (8002c30 ) + 8002b06: 4293 cmp r3, r2 + 8002b08: d007 beq.n 8002b1a 8002b0a: 687b ldr r3, [r7, #4] - 8002b0c: 3208 adds r2, #8 - 8002b0e: 69b9 ldr r1, [r7, #24] - 8002b10: f843 1022 str.w r1, [r3, r2, lsl #2] - } + 8002b0c: 4a49 ldr r2, [pc, #292] @ (8002c34 ) + 8002b0e: 4293 cmp r3, r2 + 8002b10: d101 bne.n 8002b16 + 8002b12: 2306 movs r3, #6 + 8002b14: e00c b.n 8002b30 + 8002b16: 2307 movs r3, #7 + 8002b18: e00a b.n 8002b30 + 8002b1a: 2305 movs r3, #5 + 8002b1c: e008 b.n 8002b30 + 8002b1e: 2304 movs r3, #4 + 8002b20: e006 b.n 8002b30 + 8002b22: 2303 movs r3, #3 + 8002b24: e004 b.n 8002b30 + 8002b26: 2302 movs r3, #2 + 8002b28: e002 b.n 8002b30 + 8002b2a: 2301 movs r3, #1 + 8002b2c: e000 b.n 8002b30 + 8002b2e: 2300 movs r3, #0 + 8002b30: 69fa ldr r2, [r7, #28] + 8002b32: f002 0203 and.w r2, r2, #3 + 8002b36: 0092 lsls r2, r2, #2 + 8002b38: 4093 lsls r3, r2 + 8002b3a: 69ba ldr r2, [r7, #24] + 8002b3c: 4313 orrs r3, r2 + 8002b3e: 61bb str r3, [r7, #24] + 8002b40: 4935 ldr r1, [pc, #212] @ (8002c18 ) + 8002b42: 69fb ldr r3, [r7, #28] + 8002b44: 089b lsrs r3, r3, #2 + 8002b46: 3302 adds r3, #2 + 8002b48: 69ba ldr r2, [r7, #24] + 8002b4a: f841 2023 str.w r2, [r1, r3, lsl #2] + 8002b4e: 4b3a ldr r3, [pc, #232] @ (8002c38 ) + 8002b50: 689b ldr r3, [r3, #8] + 8002b52: 61bb str r3, [r7, #24] + 8002b54: 693b ldr r3, [r7, #16] + 8002b56: 43db mvns r3, r3 + 8002b58: 69ba ldr r2, [r7, #24] + 8002b5a: 4013 ands r3, r2 + 8002b5c: 61bb str r3, [r7, #24] + 8002b5e: 683b ldr r3, [r7, #0] + 8002b60: 685b ldr r3, [r3, #4] + 8002b62: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 8002b66: 2b00 cmp r3, #0 + 8002b68: d003 beq.n 8002b72 + 8002b6a: 69ba ldr r2, [r7, #24] + 8002b6c: 693b ldr r3, [r7, #16] + 8002b6e: 4313 orrs r3, r2 + 8002b70: 61bb str r3, [r7, #24] + 8002b72: 4a31 ldr r2, [pc, #196] @ (8002c38 ) + 8002b74: 69bb ldr r3, [r7, #24] + 8002b76: 6093 str r3, [r2, #8] + 8002b78: 4b2f ldr r3, [pc, #188] @ (8002c38 ) + 8002b7a: 68db ldr r3, [r3, #12] + 8002b7c: 61bb str r3, [r7, #24] + 8002b7e: 693b ldr r3, [r7, #16] + 8002b80: 43db mvns r3, r3 + 8002b82: 69ba ldr r2, [r7, #24] + 8002b84: 4013 ands r3, r2 + 8002b86: 61bb str r3, [r7, #24] + 8002b88: 683b ldr r3, [r7, #0] + 8002b8a: 685b ldr r3, [r3, #4] + 8002b8c: f403 1300 and.w r3, r3, #2097152 @ 0x200000 + 8002b90: 2b00 cmp r3, #0 + 8002b92: d003 beq.n 8002b9c + 8002b94: 69ba ldr r2, [r7, #24] + 8002b96: 693b ldr r3, [r7, #16] + 8002b98: 4313 orrs r3, r2 + 8002b9a: 61bb str r3, [r7, #24] + 8002b9c: 4a26 ldr r2, [pc, #152] @ (8002c38 ) + 8002b9e: 69bb ldr r3, [r7, #24] + 8002ba0: 60d3 str r3, [r2, #12] + 8002ba2: 4b25 ldr r3, [pc, #148] @ (8002c38 ) + 8002ba4: 685b ldr r3, [r3, #4] + 8002ba6: 61bb str r3, [r7, #24] + 8002ba8: 693b ldr r3, [r7, #16] + 8002baa: 43db mvns r3, r3 + 8002bac: 69ba ldr r2, [r7, #24] + 8002bae: 4013 ands r3, r2 + 8002bb0: 61bb str r3, [r7, #24] + 8002bb2: 683b ldr r3, [r7, #0] + 8002bb4: 685b ldr r3, [r3, #4] + 8002bb6: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8002bba: 2b00 cmp r3, #0 + 8002bbc: d003 beq.n 8002bc6 + 8002bbe: 69ba ldr r2, [r7, #24] + 8002bc0: 693b ldr r3, [r7, #16] + 8002bc2: 4313 orrs r3, r2 + 8002bc4: 61bb str r3, [r7, #24] + 8002bc6: 4a1c ldr r2, [pc, #112] @ (8002c38 ) + 8002bc8: 69bb ldr r3, [r7, #24] + 8002bca: 6053 str r3, [r2, #4] + 8002bcc: 4b1a ldr r3, [pc, #104] @ (8002c38 ) + 8002bce: 681b ldr r3, [r3, #0] + 8002bd0: 61bb str r3, [r7, #24] + 8002bd2: 693b ldr r3, [r7, #16] + 8002bd4: 43db mvns r3, r3 + 8002bd6: 69ba ldr r2, [r7, #24] + 8002bd8: 4013 ands r3, r2 + 8002bda: 61bb str r3, [r7, #24] + 8002bdc: 683b ldr r3, [r7, #0] + 8002bde: 685b ldr r3, [r3, #4] + 8002be0: f403 3380 and.w r3, r3, #65536 @ 0x10000 + 8002be4: 2b00 cmp r3, #0 + 8002be6: d003 beq.n 8002bf0 + 8002be8: 69ba ldr r2, [r7, #24] + 8002bea: 693b ldr r3, [r7, #16] + 8002bec: 4313 orrs r3, r2 + 8002bee: 61bb str r3, [r7, #24] + 8002bf0: 4a11 ldr r2, [pc, #68] @ (8002c38 ) + 8002bf2: 69bb ldr r3, [r7, #24] + 8002bf4: 6013 str r3, [r2, #0] + 8002bf6: 69fb ldr r3, [r7, #28] + 8002bf8: 3301 adds r3, #1 + 8002bfa: 61fb str r3, [r7, #28] + 8002bfc: 69fb ldr r3, [r7, #28] + 8002bfe: 2b0f cmp r3, #15 + 8002c00: f67f ae96 bls.w 8002930 + 8002c04: bf00 nop + 8002c06: bf00 nop + 8002c08: 3724 adds r7, #36 @ 0x24 + 8002c0a: 46bd mov sp, r7 + 8002c0c: f85d 7b04 ldr.w r7, [sp], #4 + 8002c10: 4770 bx lr + 8002c12: bf00 nop + 8002c14: 40023800 .word 0x40023800 + 8002c18: 40013800 .word 0x40013800 + 8002c1c: 40020000 .word 0x40020000 + 8002c20: 40020400 .word 0x40020400 + 8002c24: 40020800 .word 0x40020800 + 8002c28: 40020c00 .word 0x40020c00 + 8002c2c: 40021000 .word 0x40021000 + 8002c30: 40021400 .word 0x40021400 + 8002c34: 40021800 .word 0x40021800 + 8002c38: 40013c00 .word 0x40013c00 - /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ - temp = GPIOx->MODER; - 8002b14: 687b ldr r3, [r7, #4] - 8002b16: 681b ldr r3, [r3, #0] - 8002b18: 61bb str r3, [r7, #24] - temp &= ~(GPIO_MODER_MODER0 << (position * 2U)); - 8002b1a: 69fb ldr r3, [r7, #28] - 8002b1c: 005b lsls r3, r3, #1 - 8002b1e: 2203 movs r2, #3 - 8002b20: fa02 f303 lsl.w r3, r2, r3 - 8002b24: 43db mvns r3, r3 - 8002b26: 69ba ldr r2, [r7, #24] - 8002b28: 4013 ands r3, r2 - 8002b2a: 61bb str r3, [r7, #24] - temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); - 8002b2c: 683b ldr r3, [r7, #0] - 8002b2e: 685b ldr r3, [r3, #4] - 8002b30: f003 0203 and.w r2, r3, #3 - 8002b34: 69fb ldr r3, [r7, #28] - 8002b36: 005b lsls r3, r3, #1 - 8002b38: fa02 f303 lsl.w r3, r2, r3 - 8002b3c: 69ba ldr r2, [r7, #24] - 8002b3e: 4313 orrs r3, r2 - 8002b40: 61bb str r3, [r7, #24] - GPIOx->MODER = temp; - 8002b42: 687b ldr r3, [r7, #4] - 8002b44: 69ba ldr r2, [r7, #24] - 8002b46: 601a str r2, [r3, #0] +08002c3c : + 8002c3c: b480 push {r7} + 8002c3e: b085 sub sp, #20 + 8002c40: af00 add r7, sp, #0 + 8002c42: 6078 str r0, [r7, #4] + 8002c44: 460b mov r3, r1 + 8002c46: 807b strh r3, [r7, #2] + 8002c48: 687b ldr r3, [r7, #4] + 8002c4a: 691a ldr r2, [r3, #16] + 8002c4c: 887b ldrh r3, [r7, #2] + 8002c4e: 4013 ands r3, r2 + 8002c50: 2b00 cmp r3, #0 + 8002c52: d002 beq.n 8002c5a + 8002c54: 2301 movs r3, #1 + 8002c56: 73fb strb r3, [r7, #15] + 8002c58: e001 b.n 8002c5e + 8002c5a: 2300 movs r3, #0 + 8002c5c: 73fb strb r3, [r7, #15] + 8002c5e: 7bfb ldrb r3, [r7, #15] + 8002c60: 4618 mov r0, r3 + 8002c62: 3714 adds r7, #20 + 8002c64: 46bd mov sp, r7 + 8002c66: f85d 7b04 ldr.w r7, [sp], #4 + 8002c6a: 4770 bx lr - /*--------------------- EXTI Mode Configuration ------------------------*/ - /* Configure the External Interrupt or event for the current IO */ - if((GPIO_Init->Mode & EXTI_MODE) != 0x00U) - 8002b48: 683b ldr r3, [r7, #0] - 8002b4a: 685b ldr r3, [r3, #4] - 8002b4c: f403 3340 and.w r3, r3, #196608 @ 0x30000 - 8002b50: 2b00 cmp r3, #0 - 8002b52: f000 80ae beq.w 8002cb2 - { - /* Enable SYSCFG Clock */ - __HAL_RCC_SYSCFG_CLK_ENABLE(); - 8002b56: 2300 movs r3, #0 - 8002b58: 60fb str r3, [r7, #12] - 8002b5a: 4b5d ldr r3, [pc, #372] @ (8002cd0 ) - 8002b5c: 6c5b ldr r3, [r3, #68] @ 0x44 - 8002b5e: 4a5c ldr r2, [pc, #368] @ (8002cd0 ) - 8002b60: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 8002b64: 6453 str r3, [r2, #68] @ 0x44 - 8002b66: 4b5a ldr r3, [pc, #360] @ (8002cd0 ) - 8002b68: 6c5b ldr r3, [r3, #68] @ 0x44 - 8002b6a: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 8002b6e: 60fb str r3, [r7, #12] - 8002b70: 68fb ldr r3, [r7, #12] +08002c6c : + 8002c6c: b480 push {r7} + 8002c6e: b083 sub sp, #12 + 8002c70: af00 add r7, sp, #0 + 8002c72: 6078 str r0, [r7, #4] + 8002c74: 460b mov r3, r1 + 8002c76: 807b strh r3, [r7, #2] + 8002c78: 4613 mov r3, r2 + 8002c7a: 707b strb r3, [r7, #1] + 8002c7c: 787b ldrb r3, [r7, #1] + 8002c7e: 2b00 cmp r3, #0 + 8002c80: d003 beq.n 8002c8a + 8002c82: 887a ldrh r2, [r7, #2] + 8002c84: 687b ldr r3, [r7, #4] + 8002c86: 619a str r2, [r3, #24] + 8002c88: e003 b.n 8002c92 + 8002c8a: 887b ldrh r3, [r7, #2] + 8002c8c: 041a lsls r2, r3, #16 + 8002c8e: 687b ldr r3, [r7, #4] + 8002c90: 619a str r2, [r3, #24] + 8002c92: bf00 nop + 8002c94: 370c adds r7, #12 + 8002c96: 46bd mov sp, r7 + 8002c98: f85d 7b04 ldr.w r7, [sp], #4 + 8002c9c: 4770 bx lr - temp = SYSCFG->EXTICR[position >> 2U]; - 8002b72: 4a58 ldr r2, [pc, #352] @ (8002cd4 ) - 8002b74: 69fb ldr r3, [r7, #28] - 8002b76: 089b lsrs r3, r3, #2 - 8002b78: 3302 adds r3, #2 - 8002b7a: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8002b7e: 61bb str r3, [r7, #24] - temp &= ~(0x0FU << (4U * (position & 0x03U))); - 8002b80: 69fb ldr r3, [r7, #28] - 8002b82: f003 0303 and.w r3, r3, #3 - 8002b86: 009b lsls r3, r3, #2 - 8002b88: 220f movs r2, #15 - 8002b8a: fa02 f303 lsl.w r3, r2, r3 - 8002b8e: 43db mvns r3, r3 - 8002b90: 69ba ldr r2, [r7, #24] - 8002b92: 4013 ands r3, r2 - 8002b94: 61bb str r3, [r7, #24] - temp |= ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U))); - 8002b96: 687b ldr r3, [r7, #4] - 8002b98: 4a4f ldr r2, [pc, #316] @ (8002cd8 ) - 8002b9a: 4293 cmp r3, r2 - 8002b9c: d025 beq.n 8002bea - 8002b9e: 687b ldr r3, [r7, #4] - 8002ba0: 4a4e ldr r2, [pc, #312] @ (8002cdc ) - 8002ba2: 4293 cmp r3, r2 - 8002ba4: d01f beq.n 8002be6 - 8002ba6: 687b ldr r3, [r7, #4] - 8002ba8: 4a4d ldr r2, [pc, #308] @ (8002ce0 ) - 8002baa: 4293 cmp r3, r2 - 8002bac: d019 beq.n 8002be2 - 8002bae: 687b ldr r3, [r7, #4] - 8002bb0: 4a4c ldr r2, [pc, #304] @ (8002ce4 ) - 8002bb2: 4293 cmp r3, r2 - 8002bb4: d013 beq.n 8002bde - 8002bb6: 687b ldr r3, [r7, #4] - 8002bb8: 4a4b ldr r2, [pc, #300] @ (8002ce8 ) - 8002bba: 4293 cmp r3, r2 - 8002bbc: d00d beq.n 8002bda - 8002bbe: 687b ldr r3, [r7, #4] - 8002bc0: 4a4a ldr r2, [pc, #296] @ (8002cec ) - 8002bc2: 4293 cmp r3, r2 - 8002bc4: d007 beq.n 8002bd6 - 8002bc6: 687b ldr r3, [r7, #4] - 8002bc8: 4a49 ldr r2, [pc, #292] @ (8002cf0 ) - 8002bca: 4293 cmp r3, r2 - 8002bcc: d101 bne.n 8002bd2 - 8002bce: 2306 movs r3, #6 - 8002bd0: e00c b.n 8002bec - 8002bd2: 2307 movs r3, #7 - 8002bd4: e00a b.n 8002bec - 8002bd6: 2305 movs r3, #5 - 8002bd8: e008 b.n 8002bec - 8002bda: 2304 movs r3, #4 - 8002bdc: e006 b.n 8002bec - 8002bde: 2303 movs r3, #3 - 8002be0: e004 b.n 8002bec - 8002be2: 2302 movs r3, #2 - 8002be4: e002 b.n 8002bec - 8002be6: 2301 movs r3, #1 - 8002be8: e000 b.n 8002bec - 8002bea: 2300 movs r3, #0 - 8002bec: 69fa ldr r2, [r7, #28] - 8002bee: f002 0203 and.w r2, r2, #3 - 8002bf2: 0092 lsls r2, r2, #2 - 8002bf4: 4093 lsls r3, r2 - 8002bf6: 69ba ldr r2, [r7, #24] - 8002bf8: 4313 orrs r3, r2 - 8002bfa: 61bb str r3, [r7, #24] - SYSCFG->EXTICR[position >> 2U] = temp; - 8002bfc: 4935 ldr r1, [pc, #212] @ (8002cd4 ) - 8002bfe: 69fb ldr r3, [r7, #28] - 8002c00: 089b lsrs r3, r3, #2 - 8002c02: 3302 adds r3, #2 - 8002c04: 69ba ldr r2, [r7, #24] - 8002c06: f841 2023 str.w r2, [r1, r3, lsl #2] - - /* Clear Rising Falling edge configuration */ - temp = EXTI->RTSR; - 8002c0a: 4b3a ldr r3, [pc, #232] @ (8002cf4 ) - 8002c0c: 689b ldr r3, [r3, #8] - 8002c0e: 61bb str r3, [r7, #24] - temp &= ~((uint32_t)iocurrent); - 8002c10: 693b ldr r3, [r7, #16] - 8002c12: 43db mvns r3, r3 - 8002c14: 69ba ldr r2, [r7, #24] - 8002c16: 4013 ands r3, r2 - 8002c18: 61bb str r3, [r7, #24] - if((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U) - 8002c1a: 683b ldr r3, [r7, #0] - 8002c1c: 685b ldr r3, [r3, #4] - 8002c1e: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 8002c22: 2b00 cmp r3, #0 - 8002c24: d003 beq.n 8002c2e - { - temp |= iocurrent; - 8002c26: 69ba ldr r2, [r7, #24] - 8002c28: 693b ldr r3, [r7, #16] - 8002c2a: 4313 orrs r3, r2 - 8002c2c: 61bb str r3, [r7, #24] - } - EXTI->RTSR = temp; - 8002c2e: 4a31 ldr r2, [pc, #196] @ (8002cf4 ) - 8002c30: 69bb ldr r3, [r7, #24] - 8002c32: 6093 str r3, [r2, #8] - - temp = EXTI->FTSR; - 8002c34: 4b2f ldr r3, [pc, #188] @ (8002cf4 ) - 8002c36: 68db ldr r3, [r3, #12] - 8002c38: 61bb str r3, [r7, #24] - temp &= ~((uint32_t)iocurrent); - 8002c3a: 693b ldr r3, [r7, #16] - 8002c3c: 43db mvns r3, r3 - 8002c3e: 69ba ldr r2, [r7, #24] - 8002c40: 4013 ands r3, r2 - 8002c42: 61bb str r3, [r7, #24] - if((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U) - 8002c44: 683b ldr r3, [r7, #0] - 8002c46: 685b ldr r3, [r3, #4] - 8002c48: f403 1300 and.w r3, r3, #2097152 @ 0x200000 - 8002c4c: 2b00 cmp r3, #0 - 8002c4e: d003 beq.n 8002c58 - { - temp |= iocurrent; - 8002c50: 69ba ldr r2, [r7, #24] - 8002c52: 693b ldr r3, [r7, #16] - 8002c54: 4313 orrs r3, r2 - 8002c56: 61bb str r3, [r7, #24] - } - EXTI->FTSR = temp; - 8002c58: 4a26 ldr r2, [pc, #152] @ (8002cf4 ) - 8002c5a: 69bb ldr r3, [r7, #24] - 8002c5c: 60d3 str r3, [r2, #12] - - temp = EXTI->EMR; - 8002c5e: 4b25 ldr r3, [pc, #148] @ (8002cf4 ) - 8002c60: 685b ldr r3, [r3, #4] - 8002c62: 61bb str r3, [r7, #24] - temp &= ~((uint32_t)iocurrent); - 8002c64: 693b ldr r3, [r7, #16] - 8002c66: 43db mvns r3, r3 - 8002c68: 69ba ldr r2, [r7, #24] - 8002c6a: 4013 ands r3, r2 - 8002c6c: 61bb str r3, [r7, #24] - if((GPIO_Init->Mode & EXTI_EVT) != 0x00U) - 8002c6e: 683b ldr r3, [r7, #0] - 8002c70: 685b ldr r3, [r3, #4] - 8002c72: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8002c76: 2b00 cmp r3, #0 - 8002c78: d003 beq.n 8002c82 - { - temp |= iocurrent; - 8002c7a: 69ba ldr r2, [r7, #24] - 8002c7c: 693b ldr r3, [r7, #16] - 8002c7e: 4313 orrs r3, r2 - 8002c80: 61bb str r3, [r7, #24] - } - EXTI->EMR = temp; - 8002c82: 4a1c ldr r2, [pc, #112] @ (8002cf4 ) - 8002c84: 69bb ldr r3, [r7, #24] - 8002c86: 6053 str r3, [r2, #4] - - /* Clear EXTI line configuration */ - temp = EXTI->IMR; - 8002c88: 4b1a ldr r3, [pc, #104] @ (8002cf4 ) - 8002c8a: 681b ldr r3, [r3, #0] - 8002c8c: 61bb str r3, [r7, #24] - temp &= ~((uint32_t)iocurrent); - 8002c8e: 693b ldr r3, [r7, #16] - 8002c90: 43db mvns r3, r3 - 8002c92: 69ba ldr r2, [r7, #24] - 8002c94: 4013 ands r3, r2 - 8002c96: 61bb str r3, [r7, #24] - if((GPIO_Init->Mode & EXTI_IT) != 0x00U) - 8002c98: 683b ldr r3, [r7, #0] - 8002c9a: 685b ldr r3, [r3, #4] - 8002c9c: f403 3380 and.w r3, r3, #65536 @ 0x10000 - 8002ca0: 2b00 cmp r3, #0 - 8002ca2: d003 beq.n 8002cac - { - temp |= iocurrent; - 8002ca4: 69ba ldr r2, [r7, #24] - 8002ca6: 693b ldr r3, [r7, #16] - 8002ca8: 4313 orrs r3, r2 - 8002caa: 61bb str r3, [r7, #24] - } - EXTI->IMR = temp; - 8002cac: 4a11 ldr r2, [pc, #68] @ (8002cf4 ) - 8002cae: 69bb ldr r3, [r7, #24] - 8002cb0: 6013 str r3, [r2, #0] - for(position = 0U; position < GPIO_NUMBER; position++) - 8002cb2: 69fb ldr r3, [r7, #28] - 8002cb4: 3301 adds r3, #1 - 8002cb6: 61fb str r3, [r7, #28] - 8002cb8: 69fb ldr r3, [r7, #28] - 8002cba: 2b0f cmp r3, #15 - 8002cbc: f67f ae96 bls.w 80029ec - } - } - } -} - 8002cc0: bf00 nop - 8002cc2: bf00 nop - 8002cc4: 3724 adds r7, #36 @ 0x24 - 8002cc6: 46bd mov sp, r7 - 8002cc8: f85d 7b04 ldr.w r7, [sp], #4 - 8002ccc: 4770 bx lr - 8002cce: bf00 nop - 8002cd0: 40023800 .word 0x40023800 - 8002cd4: 40013800 .word 0x40013800 - 8002cd8: 40020000 .word 0x40020000 - 8002cdc: 40020400 .word 0x40020400 - 8002ce0: 40020800 .word 0x40020800 - 8002ce4: 40020c00 .word 0x40020c00 - 8002ce8: 40021000 .word 0x40021000 - 8002cec: 40021400 .word 0x40021400 - 8002cf0: 40021800 .word 0x40021800 - 8002cf4: 40013c00 .word 0x40013c00 - -08002cf8 : - * @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) -{ - 8002cf8: b480 push {r7} - 8002cfa: b085 sub sp, #20 - 8002cfc: af00 add r7, sp, #0 - 8002cfe: 6078 str r0, [r7, #4] - 8002d00: 460b mov r3, r1 - 8002d02: 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) - 8002d04: 687b ldr r3, [r7, #4] - 8002d06: 691a ldr r2, [r3, #16] - 8002d08: 887b ldrh r3, [r7, #2] - 8002d0a: 4013 ands r3, r2 - 8002d0c: 2b00 cmp r3, #0 - 8002d0e: d002 beq.n 8002d16 - { - bitstatus = GPIO_PIN_SET; - 8002d10: 2301 movs r3, #1 - 8002d12: 73fb strb r3, [r7, #15] - 8002d14: e001 b.n 8002d1a - } - else - { - bitstatus = GPIO_PIN_RESET; - 8002d16: 2300 movs r3, #0 - 8002d18: 73fb strb r3, [r7, #15] - } - return bitstatus; - 8002d1a: 7bfb ldrb r3, [r7, #15] -} +08002c9e : + 8002c9e: b580 push {r7, lr} + 8002ca0: b086 sub sp, #24 + 8002ca2: af02 add r7, sp, #8 + 8002ca4: 6078 str r0, [r7, #4] + 8002ca6: 687b ldr r3, [r7, #4] + 8002ca8: 2b00 cmp r3, #0 + 8002caa: d101 bne.n 8002cb0 + 8002cac: 2301 movs r3, #1 + 8002cae: e108 b.n 8002ec2 + 8002cb0: 687b ldr r3, [r7, #4] + 8002cb2: 681b ldr r3, [r3, #0] + 8002cb4: 60bb str r3, [r7, #8] + 8002cb6: 687b ldr r3, [r7, #4] + 8002cb8: f893 3495 ldrb.w r3, [r3, #1173] @ 0x495 + 8002cbc: b2db uxtb r3, r3 + 8002cbe: 2b00 cmp r3, #0 + 8002cc0: d106 bne.n 8002cd0 + 8002cc2: 687b ldr r3, [r7, #4] + 8002cc4: 2200 movs r2, #0 + 8002cc6: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8002cca: 6878 ldr r0, [r7, #4] + 8002ccc: f007 fe48 bl 800a960 + 8002cd0: 687b ldr r3, [r7, #4] + 8002cd2: 2203 movs r2, #3 + 8002cd4: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 8002cd8: 68bb ldr r3, [r7, #8] + 8002cda: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 + 8002cde: d102 bne.n 8002ce6 + 8002ce0: 687b ldr r3, [r7, #4] + 8002ce2: 2200 movs r2, #0 + 8002ce4: 719a strb r2, [r3, #6] + 8002ce6: 687b ldr r3, [r7, #4] + 8002ce8: 681b ldr r3, [r3, #0] + 8002cea: 4618 mov r0, r3 + 8002cec: f004 fd3d bl 800776a + 8002cf0: 687b ldr r3, [r7, #4] + 8002cf2: 6818 ldr r0, [r3, #0] + 8002cf4: 687b ldr r3, [r7, #4] + 8002cf6: 7c1a ldrb r2, [r3, #16] + 8002cf8: f88d 2000 strb.w r2, [sp] + 8002cfc: 3304 adds r3, #4 + 8002cfe: cb0e ldmia r3, {r1, r2, r3} + 8002d00: f004 fc1c bl 800753c + 8002d04: 4603 mov r3, r0 + 8002d06: 2b00 cmp r3, #0 + 8002d08: d005 beq.n 8002d16 + 8002d0a: 687b ldr r3, [r7, #4] + 8002d0c: 2202 movs r2, #2 + 8002d0e: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 8002d12: 2301 movs r3, #1 + 8002d14: e0d5 b.n 8002ec2 + 8002d16: 687b ldr r3, [r7, #4] + 8002d18: 681b ldr r3, [r3, #0] + 8002d1a: 2100 movs r1, #0 8002d1c: 4618 mov r0, r3 - 8002d1e: 3714 adds r7, #20 - 8002d20: 46bd mov sp, r7 - 8002d22: f85d 7b04 ldr.w r7, [sp], #4 - 8002d26: 4770 bx lr + 8002d1e: f004 fd35 bl 800778c + 8002d22: 4603 mov r3, r0 + 8002d24: 2b00 cmp r3, #0 + 8002d26: d005 beq.n 8002d34 + 8002d28: 687b ldr r3, [r7, #4] + 8002d2a: 2202 movs r2, #2 + 8002d2c: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 8002d30: 2301 movs r3, #1 + 8002d32: e0c6 b.n 8002ec2 + 8002d34: 2300 movs r3, #0 + 8002d36: 73fb strb r3, [r7, #15] + 8002d38: e04a b.n 8002dd0 + 8002d3a: 7bfa ldrb r2, [r7, #15] + 8002d3c: 6879 ldr r1, [r7, #4] + 8002d3e: 4613 mov r3, r2 + 8002d40: 00db lsls r3, r3, #3 + 8002d42: 4413 add r3, r2 + 8002d44: 009b lsls r3, r3, #2 + 8002d46: 440b add r3, r1 + 8002d48: 3315 adds r3, #21 + 8002d4a: 2201 movs r2, #1 + 8002d4c: 701a strb r2, [r3, #0] + 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: 3314 adds r3, #20 + 8002d5e: 7bfa ldrb r2, [r7, #15] + 8002d60: 701a strb r2, [r3, #0] + 8002d62: 7bfa ldrb r2, [r7, #15] + 8002d64: 7bfb ldrb r3, [r7, #15] + 8002d66: b298 uxth r0, r3 + 8002d68: 6879 ldr r1, [r7, #4] + 8002d6a: 4613 mov r3, r2 + 8002d6c: 00db lsls r3, r3, #3 + 8002d6e: 4413 add r3, r2 + 8002d70: 009b lsls r3, r3, #2 + 8002d72: 440b add r3, r1 + 8002d74: 332e adds r3, #46 @ 0x2e + 8002d76: 4602 mov r2, r0 + 8002d78: 801a strh r2, [r3, #0] + 8002d7a: 7bfa ldrb r2, [r7, #15] + 8002d7c: 6879 ldr r1, [r7, #4] + 8002d7e: 4613 mov r3, r2 + 8002d80: 00db lsls r3, r3, #3 + 8002d82: 4413 add r3, r2 + 8002d84: 009b lsls r3, r3, #2 + 8002d86: 440b add r3, r1 + 8002d88: 3318 adds r3, #24 + 8002d8a: 2200 movs r2, #0 + 8002d8c: 701a strb r2, [r3, #0] + 8002d8e: 7bfa ldrb r2, [r7, #15] + 8002d90: 6879 ldr r1, [r7, #4] + 8002d92: 4613 mov r3, r2 + 8002d94: 00db lsls r3, r3, #3 + 8002d96: 4413 add r3, r2 + 8002d98: 009b lsls r3, r3, #2 + 8002d9a: 440b add r3, r1 + 8002d9c: 331c adds r3, #28 + 8002d9e: 2200 movs r2, #0 + 8002da0: 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: 3320 adds r3, #32 + 8002db2: 2200 movs r2, #0 + 8002db4: 601a str r2, [r3, #0] + 8002db6: 7bfa ldrb r2, [r7, #15] + 8002db8: 6879 ldr r1, [r7, #4] + 8002dba: 4613 mov r3, r2 + 8002dbc: 00db lsls r3, r3, #3 + 8002dbe: 4413 add r3, r2 + 8002dc0: 009b lsls r3, r3, #2 + 8002dc2: 440b add r3, r1 + 8002dc4: 3324 adds r3, #36 @ 0x24 + 8002dc6: 2200 movs r2, #0 + 8002dc8: 601a str r2, [r3, #0] + 8002dca: 7bfb ldrb r3, [r7, #15] + 8002dcc: 3301 adds r3, #1 + 8002dce: 73fb strb r3, [r7, #15] + 8002dd0: 687b ldr r3, [r7, #4] + 8002dd2: 791b ldrb r3, [r3, #4] + 8002dd4: 7bfa ldrb r2, [r7, #15] + 8002dd6: 429a cmp r2, r3 + 8002dd8: d3af bcc.n 8002d3a + 8002dda: 2300 movs r3, #0 + 8002ddc: 73fb strb r3, [r7, #15] + 8002dde: e044 b.n 8002e6a + 8002de0: 7bfa ldrb r2, [r7, #15] + 8002de2: 6879 ldr r1, [r7, #4] + 8002de4: 4613 mov r3, r2 + 8002de6: 00db lsls r3, r3, #3 + 8002de8: 4413 add r3, r2 + 8002dea: 009b lsls r3, r3, #2 + 8002dec: 440b add r3, r1 + 8002dee: f203 2355 addw r3, r3, #597 @ 0x255 + 8002df2: 2200 movs r2, #0 + 8002df4: 701a strb r2, [r3, #0] + 8002df6: 7bfa ldrb r2, [r7, #15] + 8002df8: 6879 ldr r1, [r7, #4] + 8002dfa: 4613 mov r3, r2 + 8002dfc: 00db lsls r3, r3, #3 + 8002dfe: 4413 add r3, r2 + 8002e00: 009b lsls r3, r3, #2 + 8002e02: 440b add r3, r1 + 8002e04: f503 7315 add.w r3, r3, #596 @ 0x254 + 8002e08: 7bfa ldrb r2, [r7, #15] + 8002e0a: 701a strb r2, [r3, #0] + 8002e0c: 7bfa ldrb r2, [r7, #15] + 8002e0e: 6879 ldr r1, [r7, #4] + 8002e10: 4613 mov r3, r2 + 8002e12: 00db lsls r3, r3, #3 + 8002e14: 4413 add r3, r2 + 8002e16: 009b lsls r3, r3, #2 + 8002e18: 440b add r3, r1 + 8002e1a: f503 7316 add.w r3, r3, #600 @ 0x258 + 8002e1e: 2200 movs r2, #0 + 8002e20: 701a strb r2, [r3, #0] + 8002e22: 7bfa ldrb r2, [r7, #15] + 8002e24: 6879 ldr r1, [r7, #4] + 8002e26: 4613 mov r3, r2 + 8002e28: 00db lsls r3, r3, #3 + 8002e2a: 4413 add r3, r2 + 8002e2c: 009b lsls r3, r3, #2 + 8002e2e: 440b add r3, r1 + 8002e30: f503 7317 add.w r3, r3, #604 @ 0x25c + 8002e34: 2200 movs r2, #0 + 8002e36: 601a str r2, [r3, #0] + 8002e38: 7bfa ldrb r2, [r7, #15] + 8002e3a: 6879 ldr r1, [r7, #4] + 8002e3c: 4613 mov r3, r2 + 8002e3e: 00db lsls r3, r3, #3 + 8002e40: 4413 add r3, r2 + 8002e42: 009b lsls r3, r3, #2 + 8002e44: 440b add r3, r1 + 8002e46: f503 7318 add.w r3, r3, #608 @ 0x260 + 8002e4a: 2200 movs r2, #0 + 8002e4c: 601a str r2, [r3, #0] + 8002e4e: 7bfa ldrb r2, [r7, #15] + 8002e50: 6879 ldr r1, [r7, #4] + 8002e52: 4613 mov r3, r2 + 8002e54: 00db lsls r3, r3, #3 + 8002e56: 4413 add r3, r2 + 8002e58: 009b lsls r3, r3, #2 + 8002e5a: 440b add r3, r1 + 8002e5c: f503 7319 add.w r3, r3, #612 @ 0x264 + 8002e60: 2200 movs r2, #0 + 8002e62: 601a str r2, [r3, #0] + 8002e64: 7bfb ldrb r3, [r7, #15] + 8002e66: 3301 adds r3, #1 + 8002e68: 73fb strb r3, [r7, #15] + 8002e6a: 687b ldr r3, [r7, #4] + 8002e6c: 791b ldrb r3, [r3, #4] + 8002e6e: 7bfa ldrb r2, [r7, #15] + 8002e70: 429a cmp r2, r3 + 8002e72: d3b5 bcc.n 8002de0 + 8002e74: 687b ldr r3, [r7, #4] + 8002e76: 6818 ldr r0, [r3, #0] + 8002e78: 687b ldr r3, [r7, #4] + 8002e7a: 7c1a ldrb r2, [r3, #16] + 8002e7c: f88d 2000 strb.w r2, [sp] + 8002e80: 3304 adds r3, #4 + 8002e82: cb0e ldmia r3, {r1, r2, r3} + 8002e84: f004 fcce bl 8007824 + 8002e88: 4603 mov r3, r0 + 8002e8a: 2b00 cmp r3, #0 + 8002e8c: d005 beq.n 8002e9a + 8002e8e: 687b ldr r3, [r7, #4] + 8002e90: 2202 movs r2, #2 + 8002e92: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 8002e96: 2301 movs r3, #1 + 8002e98: e013 b.n 8002ec2 + 8002e9a: 687b ldr r3, [r7, #4] + 8002e9c: 2200 movs r2, #0 + 8002e9e: 745a strb r2, [r3, #17] + 8002ea0: 687b ldr r3, [r7, #4] + 8002ea2: 2201 movs r2, #1 + 8002ea4: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 8002ea8: 687b ldr r3, [r7, #4] + 8002eaa: 7b1b ldrb r3, [r3, #12] + 8002eac: 2b01 cmp r3, #1 + 8002eae: d102 bne.n 8002eb6 + 8002eb0: 6878 ldr r0, [r7, #4] + 8002eb2: f001 f957 bl 8004164 + 8002eb6: 687b ldr r3, [r7, #4] + 8002eb8: 681b ldr r3, [r3, #0] + 8002eba: 4618 mov r0, r3 + 8002ebc: f005 fd0b bl 80088d6 + 8002ec0: 2300 movs r3, #0 + 8002ec2: 4618 mov r0, r3 + 8002ec4: 3710 adds r7, #16 + 8002ec6: 46bd mov sp, r7 + 8002ec8: bd80 pop {r7, pc} -08002d28 : - * @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) -{ - 8002d28: b480 push {r7} - 8002d2a: b083 sub sp, #12 - 8002d2c: af00 add r7, sp, #0 - 8002d2e: 6078 str r0, [r7, #4] - 8002d30: 460b mov r3, r1 - 8002d32: 807b strh r3, [r7, #2] - 8002d34: 4613 mov r3, r2 - 8002d36: 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) - 8002d38: 787b ldrb r3, [r7, #1] - 8002d3a: 2b00 cmp r3, #0 - 8002d3c: d003 beq.n 8002d46 - { - GPIOx->BSRR = GPIO_Pin; - 8002d3e: 887a ldrh r2, [r7, #2] - 8002d40: 687b ldr r3, [r7, #4] - 8002d42: 619a str r2, [r3, #24] - } - else - { - GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U; - } -} - 8002d44: e003 b.n 8002d4e - GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U; - 8002d46: 887b ldrh r3, [r7, #2] - 8002d48: 041a lsls r2, r3, #16 - 8002d4a: 687b ldr r3, [r7, #4] - 8002d4c: 619a str r2, [r3, #24] -} - 8002d4e: bf00 nop - 8002d50: 370c adds r7, #12 - 8002d52: 46bd mov sp, r7 - 8002d54: f85d 7b04 ldr.w r7, [sp], #4 - 8002d58: 4770 bx lr - ... - -08002d5c : - * @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) -{ - 8002d5c: b580 push {r7, lr} - 8002d5e: b084 sub sp, #16 - 8002d60: af00 add r7, sp, #0 - 8002d62: 6078 str r0, [r7, #4] - uint32_t freqrange; - uint32_t pclk1; - - /* Check the I2C handle allocation */ - if (hi2c == NULL) - 8002d64: 687b ldr r3, [r7, #4] - 8002d66: 2b00 cmp r3, #0 - 8002d68: d101 bne.n 8002d6e - { - return HAL_ERROR; - 8002d6a: 2301 movs r3, #1 - 8002d6c: e12b b.n 8002fc6 - 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) - 8002d6e: 687b ldr r3, [r7, #4] - 8002d70: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 8002d74: b2db uxtb r3, r3 - 8002d76: 2b00 cmp r3, #0 - 8002d78: d106 bne.n 8002d88 - { - /* Allocate lock resource and initialize it */ - hi2c->Lock = HAL_UNLOCKED; - 8002d7a: 687b ldr r3, [r7, #4] - 8002d7c: 2200 movs r2, #0 - 8002d7e: 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); - 8002d82: 6878 ldr r0, [r7, #4] - 8002d84: f7fd fd18 bl 80007b8 -#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ - } - - hi2c->State = HAL_I2C_STATE_BUSY; - 8002d88: 687b ldr r3, [r7, #4] - 8002d8a: 2224 movs r2, #36 @ 0x24 - 8002d8c: f883 203d strb.w r2, [r3, #61] @ 0x3d - - /* Disable the selected I2C peripheral */ - __HAL_I2C_DISABLE(hi2c); - 8002d90: 687b ldr r3, [r7, #4] - 8002d92: 681b ldr r3, [r3, #0] - 8002d94: 681a ldr r2, [r3, #0] - 8002d96: 687b ldr r3, [r7, #4] - 8002d98: 681b ldr r3, [r3, #0] - 8002d9a: f022 0201 bic.w r2, r2, #1 - 8002d9e: 601a str r2, [r3, #0] - - /*Reset I2C*/ - hi2c->Instance->CR1 |= I2C_CR1_SWRST; - 8002da0: 687b ldr r3, [r7, #4] - 8002da2: 681b ldr r3, [r3, #0] - 8002da4: 681a ldr r2, [r3, #0] - 8002da6: 687b ldr r3, [r7, #4] - 8002da8: 681b ldr r3, [r3, #0] - 8002daa: f442 4200 orr.w r2, r2, #32768 @ 0x8000 - 8002dae: 601a str r2, [r3, #0] - hi2c->Instance->CR1 &= ~I2C_CR1_SWRST; - 8002db0: 687b ldr r3, [r7, #4] - 8002db2: 681b ldr r3, [r3, #0] - 8002db4: 681a ldr r2, [r3, #0] - 8002db6: 687b ldr r3, [r7, #4] - 8002db8: 681b ldr r3, [r3, #0] - 8002dba: f422 4200 bic.w r2, r2, #32768 @ 0x8000 - 8002dbe: 601a str r2, [r3, #0] - - /* Get PCLK1 frequency */ - pclk1 = HAL_RCC_GetPCLK1Freq(); - 8002dc0: f001 fc88 bl 80046d4 - 8002dc4: 60f8 str r0, [r7, #12] - - /* Check the minimum allowed PCLK1 frequency */ - if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U) - 8002dc6: 687b ldr r3, [r7, #4] - 8002dc8: 685b ldr r3, [r3, #4] - 8002dca: 4a81 ldr r2, [pc, #516] @ (8002fd0 ) - 8002dcc: 4293 cmp r3, r2 - 8002dce: d807 bhi.n 8002de0 - 8002dd0: 68fb ldr r3, [r7, #12] - 8002dd2: 4a80 ldr r2, [pc, #512] @ (8002fd4 ) - 8002dd4: 4293 cmp r3, r2 - 8002dd6: bf94 ite ls - 8002dd8: 2301 movls r3, #1 - 8002dda: 2300 movhi r3, #0 - 8002ddc: b2db uxtb r3, r3 - 8002dde: e006 b.n 8002dee - 8002de0: 68fb ldr r3, [r7, #12] - 8002de2: 4a7d ldr r2, [pc, #500] @ (8002fd8 ) - 8002de4: 4293 cmp r3, r2 - 8002de6: bf94 ite ls - 8002de8: 2301 movls r3, #1 - 8002dea: 2300 movhi r3, #0 - 8002dec: b2db uxtb r3, r3 - 8002dee: 2b00 cmp r3, #0 - 8002df0: d001 beq.n 8002df6 - { - return HAL_ERROR; - 8002df2: 2301 movs r3, #1 - 8002df4: e0e7 b.n 8002fc6 - } - - /* Calculate frequency range */ - freqrange = I2C_FREQRANGE(pclk1); - 8002df6: 68fb ldr r3, [r7, #12] - 8002df8: 4a78 ldr r2, [pc, #480] @ (8002fdc ) - 8002dfa: fba2 2303 umull r2, r3, r2, r3 - 8002dfe: 0c9b lsrs r3, r3, #18 - 8002e00: 60bb str r3, [r7, #8] - - /*---------------------------- I2Cx CR2 Configuration ----------------------*/ - /* Configure I2Cx: Frequency range */ - MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange); - 8002e02: 687b ldr r3, [r7, #4] - 8002e04: 681b ldr r3, [r3, #0] - 8002e06: 685b ldr r3, [r3, #4] - 8002e08: f023 013f bic.w r1, r3, #63 @ 0x3f - 8002e0c: 687b ldr r3, [r7, #4] - 8002e0e: 681b ldr r3, [r3, #0] - 8002e10: 68ba ldr r2, [r7, #8] - 8002e12: 430a orrs r2, r1 - 8002e14: 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)); - 8002e16: 687b ldr r3, [r7, #4] - 8002e18: 681b ldr r3, [r3, #0] - 8002e1a: 6a1b ldr r3, [r3, #32] - 8002e1c: f023 013f bic.w r1, r3, #63 @ 0x3f - 8002e20: 687b ldr r3, [r7, #4] - 8002e22: 685b ldr r3, [r3, #4] - 8002e24: 4a6a ldr r2, [pc, #424] @ (8002fd0 ) - 8002e26: 4293 cmp r3, r2 - 8002e28: d802 bhi.n 8002e30 - 8002e2a: 68bb ldr r3, [r7, #8] - 8002e2c: 3301 adds r3, #1 - 8002e2e: e009 b.n 8002e44 - 8002e30: 68bb ldr r3, [r7, #8] - 8002e32: f44f 7296 mov.w r2, #300 @ 0x12c - 8002e36: fb02 f303 mul.w r3, r2, r3 - 8002e3a: 4a69 ldr r2, [pc, #420] @ (8002fe0 ) - 8002e3c: fba2 2303 umull r2, r3, r2, r3 - 8002e40: 099b lsrs r3, r3, #6 - 8002e42: 3301 adds r3, #1 - 8002e44: 687a ldr r2, [r7, #4] - 8002e46: 6812 ldr r2, [r2, #0] - 8002e48: 430b orrs r3, r1 - 8002e4a: 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)); - 8002e4c: 687b ldr r3, [r7, #4] - 8002e4e: 681b ldr r3, [r3, #0] - 8002e50: 69db ldr r3, [r3, #28] - 8002e52: f423 424f bic.w r2, r3, #52992 @ 0xcf00 - 8002e56: f022 02ff bic.w r2, r2, #255 @ 0xff - 8002e5a: 687b ldr r3, [r7, #4] - 8002e5c: 685b ldr r3, [r3, #4] - 8002e5e: 495c ldr r1, [pc, #368] @ (8002fd0 ) - 8002e60: 428b cmp r3, r1 - 8002e62: d819 bhi.n 8002e98 - 8002e64: 68fb ldr r3, [r7, #12] - 8002e66: 1e59 subs r1, r3, #1 - 8002e68: 687b ldr r3, [r7, #4] - 8002e6a: 685b ldr r3, [r3, #4] - 8002e6c: 005b lsls r3, r3, #1 - 8002e6e: fbb1 f3f3 udiv r3, r1, r3 - 8002e72: 1c59 adds r1, r3, #1 - 8002e74: f640 73fc movw r3, #4092 @ 0xffc - 8002e78: 400b ands r3, r1 - 8002e7a: 2b00 cmp r3, #0 - 8002e7c: d00a beq.n 8002e94 - 8002e7e: 68fb ldr r3, [r7, #12] - 8002e80: 1e59 subs r1, r3, #1 - 8002e82: 687b ldr r3, [r7, #4] - 8002e84: 685b ldr r3, [r3, #4] - 8002e86: 005b lsls r3, r3, #1 - 8002e88: fbb1 f3f3 udiv r3, r1, r3 - 8002e8c: 3301 adds r3, #1 - 8002e8e: f3c3 030b ubfx r3, r3, #0, #12 - 8002e92: e051 b.n 8002f38 - 8002e94: 2304 movs r3, #4 - 8002e96: e04f b.n 8002f38 - 8002e98: 687b ldr r3, [r7, #4] - 8002e9a: 689b ldr r3, [r3, #8] - 8002e9c: 2b00 cmp r3, #0 - 8002e9e: d111 bne.n 8002ec4 - 8002ea0: 68fb ldr r3, [r7, #12] - 8002ea2: 1e58 subs r0, r3, #1 - 8002ea4: 687b ldr r3, [r7, #4] - 8002ea6: 6859 ldr r1, [r3, #4] - 8002ea8: 460b mov r3, r1 - 8002eaa: 005b lsls r3, r3, #1 - 8002eac: 440b add r3, r1 - 8002eae: fbb0 f3f3 udiv r3, r0, r3 - 8002eb2: 3301 adds r3, #1 - 8002eb4: f3c3 030b ubfx r3, r3, #0, #12 - 8002eb8: 2b00 cmp r3, #0 - 8002eba: bf0c ite eq - 8002ebc: 2301 moveq r3, #1 - 8002ebe: 2300 movne r3, #0 - 8002ec0: b2db uxtb r3, r3 - 8002ec2: e012 b.n 8002eea - 8002ec4: 68fb ldr r3, [r7, #12] - 8002ec6: 1e58 subs r0, r3, #1 - 8002ec8: 687b ldr r3, [r7, #4] - 8002eca: 6859 ldr r1, [r3, #4] - 8002ecc: 460b mov r3, r1 - 8002ece: 009b lsls r3, r3, #2 - 8002ed0: 440b add r3, r1 - 8002ed2: 0099 lsls r1, r3, #2 - 8002ed4: 440b add r3, r1 - 8002ed6: fbb0 f3f3 udiv r3, r0, r3 - 8002eda: 3301 adds r3, #1 - 8002edc: f3c3 030b ubfx r3, r3, #0, #12 - 8002ee0: 2b00 cmp r3, #0 - 8002ee2: bf0c ite eq - 8002ee4: 2301 moveq r3, #1 - 8002ee6: 2300 movne r3, #0 - 8002ee8: b2db uxtb r3, r3 - 8002eea: 2b00 cmp r3, #0 - 8002eec: d001 beq.n 8002ef2 - 8002eee: 2301 movs r3, #1 - 8002ef0: e022 b.n 8002f38 - 8002ef2: 687b ldr r3, [r7, #4] - 8002ef4: 689b ldr r3, [r3, #8] +08002eca : + 8002eca: b580 push {r7, lr} + 8002ecc: b084 sub sp, #16 + 8002ece: af00 add r7, sp, #0 + 8002ed0: 6078 str r0, [r7, #4] + 8002ed2: 687b ldr r3, [r7, #4] + 8002ed4: 681b ldr r3, [r3, #0] + 8002ed6: 60fb str r3, [r7, #12] + 8002ed8: 687b ldr r3, [r7, #4] + 8002eda: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8002ede: 2b01 cmp r3, #1 + 8002ee0: d101 bne.n 8002ee6 + 8002ee2: 2302 movs r3, #2 + 8002ee4: e022 b.n 8002f2c + 8002ee6: 687b ldr r3, [r7, #4] + 8002ee8: 2201 movs r2, #1 + 8002eea: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8002eee: 68fb ldr r3, [r7, #12] + 8002ef0: 68db ldr r3, [r3, #12] + 8002ef2: f003 0340 and.w r3, r3, #64 @ 0x40 8002ef6: 2b00 cmp r3, #0 - 8002ef8: d10e bne.n 8002f18 - 8002efa: 68fb ldr r3, [r7, #12] - 8002efc: 1e58 subs r0, r3, #1 - 8002efe: 687b ldr r3, [r7, #4] - 8002f00: 6859 ldr r1, [r3, #4] - 8002f02: 460b mov r3, r1 - 8002f04: 005b lsls r3, r3, #1 - 8002f06: 440b add r3, r1 - 8002f08: fbb0 f3f3 udiv r3, r0, r3 - 8002f0c: 3301 adds r3, #1 - 8002f0e: f3c3 030b ubfx r3, r3, #0, #12 - 8002f12: f443 4300 orr.w r3, r3, #32768 @ 0x8000 - 8002f16: e00f b.n 8002f38 - 8002f18: 68fb ldr r3, [r7, #12] - 8002f1a: 1e58 subs r0, r3, #1 - 8002f1c: 687b ldr r3, [r7, #4] - 8002f1e: 6859 ldr r1, [r3, #4] - 8002f20: 460b mov r3, r1 - 8002f22: 009b lsls r3, r3, #2 - 8002f24: 440b add r3, r1 - 8002f26: 0099 lsls r1, r3, #2 - 8002f28: 440b add r3, r1 - 8002f2a: fbb0 f3f3 udiv r3, r0, r3 - 8002f2e: 3301 adds r3, #1 - 8002f30: f3c3 030b ubfx r3, r3, #0, #12 - 8002f34: f443 4340 orr.w r3, r3, #49152 @ 0xc000 - 8002f38: 6879 ldr r1, [r7, #4] - 8002f3a: 6809 ldr r1, [r1, #0] - 8002f3c: 4313 orrs r3, r2 - 8002f3e: 61cb str r3, [r1, #28] + 8002ef8: d009 beq.n 8002f0e + 8002efa: 687b ldr r3, [r7, #4] + 8002efc: 7b5b ldrb r3, [r3, #13] + 8002efe: 2b01 cmp r3, #1 + 8002f00: d105 bne.n 8002f0e + 8002f02: 68fb ldr r3, [r7, #12] + 8002f04: 6b9b ldr r3, [r3, #56] @ 0x38 + 8002f06: f443 3280 orr.w r2, r3, #65536 @ 0x10000 + 8002f0a: 68fb ldr r3, [r7, #12] + 8002f0c: 639a str r2, [r3, #56] @ 0x38 + 8002f0e: 687b ldr r3, [r7, #4] + 8002f10: 681b ldr r3, [r3, #0] + 8002f12: 4618 mov r0, r3 + 8002f14: f004 fc18 bl 8007748 + 8002f18: 687b ldr r3, [r7, #4] + 8002f1a: 681b ldr r3, [r3, #0] + 8002f1c: 4618 mov r0, r3 + 8002f1e: f005 fcb9 bl 8008894 + 8002f22: 687b ldr r3, [r7, #4] + 8002f24: 2200 movs r2, #0 + 8002f26: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8002f2a: 2300 movs r3, #0 + 8002f2c: 4618 mov r0, r3 + 8002f2e: 3710 adds r7, #16 + 8002f30: 46bd mov sp, r7 + 8002f32: bd80 pop {r7, pc} - /*---------------------------- 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)); - 8002f40: 687b ldr r3, [r7, #4] - 8002f42: 681b ldr r3, [r3, #0] - 8002f44: 681b ldr r3, [r3, #0] - 8002f46: f023 01c0 bic.w r1, r3, #192 @ 0xc0 - 8002f4a: 687b ldr r3, [r7, #4] - 8002f4c: 69da ldr r2, [r3, #28] - 8002f4e: 687b ldr r3, [r7, #4] - 8002f50: 6a1b ldr r3, [r3, #32] - 8002f52: 431a orrs r2, r3 - 8002f54: 687b ldr r3, [r7, #4] - 8002f56: 681b ldr r3, [r3, #0] - 8002f58: 430a orrs r2, r1 - 8002f5a: 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)); - 8002f5c: 687b ldr r3, [r7, #4] - 8002f5e: 681b ldr r3, [r3, #0] - 8002f60: 689b ldr r3, [r3, #8] - 8002f62: f423 4303 bic.w r3, r3, #33536 @ 0x8300 - 8002f66: f023 03ff bic.w r3, r3, #255 @ 0xff - 8002f6a: 687a ldr r2, [r7, #4] - 8002f6c: 6911 ldr r1, [r2, #16] - 8002f6e: 687a ldr r2, [r7, #4] - 8002f70: 68d2 ldr r2, [r2, #12] - 8002f72: 4311 orrs r1, r2 - 8002f74: 687a ldr r2, [r7, #4] - 8002f76: 6812 ldr r2, [r2, #0] - 8002f78: 430b orrs r3, r1 - 8002f7a: 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)); - 8002f7c: 687b ldr r3, [r7, #4] - 8002f7e: 681b ldr r3, [r3, #0] - 8002f80: 68db ldr r3, [r3, #12] - 8002f82: f023 01ff bic.w r1, r3, #255 @ 0xff - 8002f86: 687b ldr r3, [r7, #4] - 8002f88: 695a ldr r2, [r3, #20] - 8002f8a: 687b ldr r3, [r7, #4] - 8002f8c: 699b ldr r3, [r3, #24] - 8002f8e: 431a orrs r2, r3 - 8002f90: 687b ldr r3, [r7, #4] - 8002f92: 681b ldr r3, [r3, #0] - 8002f94: 430a orrs r2, r1 - 8002f96: 60da str r2, [r3, #12] - - /* Enable the selected I2C peripheral */ - __HAL_I2C_ENABLE(hi2c); +08002f34 : + 8002f34: b590 push {r4, r7, lr} + 8002f36: b08d sub sp, #52 @ 0x34 + 8002f38: af00 add r7, sp, #0 + 8002f3a: 6078 str r0, [r7, #4] + 8002f3c: 687b ldr r3, [r7, #4] + 8002f3e: 681b ldr r3, [r3, #0] + 8002f40: 623b str r3, [r7, #32] + 8002f42: 6a3b ldr r3, [r7, #32] + 8002f44: 61fb str r3, [r7, #28] + 8002f46: 687b ldr r3, [r7, #4] + 8002f48: 681b ldr r3, [r3, #0] + 8002f4a: 4618 mov r0, r3 + 8002f4c: f005 fd77 bl 8008a3e + 8002f50: 4603 mov r3, r0 + 8002f52: 2b00 cmp r3, #0 + 8002f54: f040 84b9 bne.w 80038ca + 8002f58: 687b ldr r3, [r7, #4] + 8002f5a: 681b ldr r3, [r3, #0] + 8002f5c: 4618 mov r0, r3 + 8002f5e: f005 fcdb bl 8008918 + 8002f62: 4603 mov r3, r0 + 8002f64: 2b00 cmp r3, #0 + 8002f66: f000 84af beq.w 80038c8 + 8002f6a: 69fb ldr r3, [r7, #28] + 8002f6c: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8002f70: 689b ldr r3, [r3, #8] + 8002f72: 0a1b lsrs r3, r3, #8 + 8002f74: f3c3 020d ubfx r2, r3, #0, #14 + 8002f78: 687b ldr r3, [r7, #4] + 8002f7a: f8c3 24d4 str.w r2, [r3, #1236] @ 0x4d4 + 8002f7e: 687b ldr r3, [r7, #4] + 8002f80: 681b ldr r3, [r3, #0] + 8002f82: 4618 mov r0, r3 + 8002f84: f005 fcc8 bl 8008918 + 8002f88: 4603 mov r3, r0 + 8002f8a: f003 0302 and.w r3, r3, #2 + 8002f8e: 2b02 cmp r3, #2 + 8002f90: d107 bne.n 8002fa2 + 8002f92: 687b ldr r3, [r7, #4] + 8002f94: 681b ldr r3, [r3, #0] + 8002f96: 695a ldr r2, [r3, #20] 8002f98: 687b ldr r3, [r7, #4] 8002f9a: 681b ldr r3, [r3, #0] - 8002f9c: 681a ldr r2, [r3, #0] - 8002f9e: 687b ldr r3, [r7, #4] - 8002fa0: 681b ldr r3, [r3, #0] - 8002fa2: f042 0201 orr.w r2, r2, #1 - 8002fa6: 601a str r2, [r3, #0] - - hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8002fa8: 687b ldr r3, [r7, #4] - 8002faa: 2200 movs r2, #0 - 8002fac: 641a str r2, [r3, #64] @ 0x40 - hi2c->State = HAL_I2C_STATE_READY; - 8002fae: 687b ldr r3, [r7, #4] - 8002fb0: 2220 movs r2, #32 - 8002fb2: f883 203d strb.w r2, [r3, #61] @ 0x3d - hi2c->PreviousState = I2C_STATE_NONE; + 8002f9c: f002 0202 and.w r2, r2, #2 + 8002fa0: 615a str r2, [r3, #20] + 8002fa2: 687b ldr r3, [r7, #4] + 8002fa4: 681b ldr r3, [r3, #0] + 8002fa6: 4618 mov r0, r3 + 8002fa8: f005 fcb6 bl 8008918 + 8002fac: 4603 mov r3, r0 + 8002fae: f003 0310 and.w r3, r3, #16 + 8002fb2: 2b10 cmp r3, #16 + 8002fb4: d161 bne.n 800307a 8002fb6: 687b ldr r3, [r7, #4] - 8002fb8: 2200 movs r2, #0 - 8002fba: 631a str r2, [r3, #48] @ 0x30 - hi2c->Mode = HAL_I2C_MODE_NONE; + 8002fb8: 681b ldr r3, [r3, #0] + 8002fba: 699a ldr r2, [r3, #24] 8002fbc: 687b ldr r3, [r7, #4] - 8002fbe: 2200 movs r2, #0 - 8002fc0: f883 203e strb.w r2, [r3, #62] @ 0x3e - - return HAL_OK; - 8002fc4: 2300 movs r3, #0 -} - 8002fc6: 4618 mov r0, r3 - 8002fc8: 3710 adds r7, #16 - 8002fca: 46bd mov sp, r7 - 8002fcc: bd80 pop {r7, pc} - 8002fce: bf00 nop - 8002fd0: 000186a0 .word 0x000186a0 - 8002fd4: 001e847f .word 0x001e847f - 8002fd8: 003d08ff .word 0x003d08ff - 8002fdc: 431bde83 .word 0x431bde83 - 8002fe0: 10624dd3 .word 0x10624dd3 - -08002fe4 : - * 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) -{ - 8002fe4: b580 push {r7, lr} - 8002fe6: b086 sub sp, #24 - 8002fe8: af02 add r7, sp, #8 - 8002fea: 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) - 8002fec: 687b ldr r3, [r7, #4] - 8002fee: 2b00 cmp r3, #0 - 8002ff0: d101 bne.n 8002ff6 - { - return HAL_ERROR; - 8002ff2: 2301 movs r3, #1 - 8002ff4: e108 b.n 8003208 - - /* Check the parameters */ - assert_param(IS_PCD_ALL_INSTANCE(hpcd->Instance)); - -#if defined (USB_OTG_FS) - USBx = hpcd->Instance; - 8002ff6: 687b ldr r3, [r7, #4] - 8002ff8: 681b ldr r3, [r3, #0] - 8002ffa: 60bb str r3, [r7, #8] -#endif /* defined (USB_OTG_FS) */ - - if (hpcd->State == HAL_PCD_STATE_RESET) - 8002ffc: 687b ldr r3, [r7, #4] - 8002ffe: f893 3495 ldrb.w r3, [r3, #1173] @ 0x495 - 8003002: b2db uxtb r3, r3 - 8003004: 2b00 cmp r3, #0 - 8003006: d106 bne.n 8003016 - { - /* Allocate lock resource and initialize it */ - hpcd->Lock = HAL_UNLOCKED; - 8003008: 687b ldr r3, [r7, #4] - 800300a: 2200 movs r2, #0 - 800300c: 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); - 8003010: 6878 ldr r0, [r7, #4] - 8003012: f007 fe47 bl 800aca4 -#endif /* (USE_HAL_PCD_REGISTER_CALLBACKS) */ - } - - hpcd->State = HAL_PCD_STATE_BUSY; - 8003016: 687b ldr r3, [r7, #4] - 8003018: 2203 movs r2, #3 - 800301a: f883 2495 strb.w r2, [r3, #1173] @ 0x495 - -#if defined (USB_OTG_FS) - /* Disable DMA mode for FS instance */ - if (USBx == USB_OTG_FS) - 800301e: 68bb ldr r3, [r7, #8] - 8003020: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 - 8003024: d102 bne.n 800302c - { - hpcd->Init.dma_enable = 0U; - 8003026: 687b ldr r3, [r7, #4] - 8003028: 2200 movs r2, #0 - 800302a: 719a strb r2, [r3, #6] - } -#endif /* defined (USB_OTG_FS) */ - - /* Disable the Interrupts */ - __HAL_PCD_DISABLE(hpcd); - 800302c: 687b ldr r3, [r7, #4] - 800302e: 681b ldr r3, [r3, #0] - 8003030: 4618 mov r0, r3 - 8003032: f004 fd3c bl 8007aae - - /*Init the Core (common init.) */ - if (USB_CoreInit(hpcd->Instance, hpcd->Init) != HAL_OK) - 8003036: 687b ldr r3, [r7, #4] - 8003038: 6818 ldr r0, [r3, #0] - 800303a: 687b ldr r3, [r7, #4] - 800303c: 7c1a ldrb r2, [r3, #16] - 800303e: f88d 2000 strb.w r2, [sp] - 8003042: 3304 adds r3, #4 - 8003044: cb0e ldmia r3, {r1, r2, r3} - 8003046: f004 fc1b bl 8007880 - 800304a: 4603 mov r3, r0 - 800304c: 2b00 cmp r3, #0 - 800304e: d005 beq.n 800305c - { - hpcd->State = HAL_PCD_STATE_ERROR; - 8003050: 687b ldr r3, [r7, #4] - 8003052: 2202 movs r2, #2 - 8003054: f883 2495 strb.w r2, [r3, #1173] @ 0x495 - return HAL_ERROR; - 8003058: 2301 movs r3, #1 - 800305a: e0d5 b.n 8003208 - } - - /* Force Device Mode */ - if (USB_SetCurrentMode(hpcd->Instance, USB_DEVICE_MODE) != HAL_OK) - 800305c: 687b ldr r3, [r7, #4] - 800305e: 681b ldr r3, [r3, #0] - 8003060: 2100 movs r1, #0 - 8003062: 4618 mov r0, r3 - 8003064: f004 fd34 bl 8007ad0 - 8003068: 4603 mov r3, r0 - 800306a: 2b00 cmp r3, #0 - 800306c: d005 beq.n 800307a - { - hpcd->State = HAL_PCD_STATE_ERROR; - 800306e: 687b ldr r3, [r7, #4] - 8003070: 2202 movs r2, #2 - 8003072: f883 2495 strb.w r2, [r3, #1173] @ 0x495 - return HAL_ERROR; - 8003076: 2301 movs r3, #1 - 8003078: e0c6 b.n 8003208 - } - - /* Init endpoints structures */ - for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 800307a: 2300 movs r3, #0 - 800307c: 73fb strb r3, [r7, #15] - 800307e: e04a b.n 8003116 - { - /* Init ep structure */ - hpcd->IN_ep[i].is_in = 1U; - 8003080: 7bfa ldrb r2, [r7, #15] - 8003082: 6879 ldr r1, [r7, #4] - 8003084: 4613 mov r3, r2 - 8003086: 00db lsls r3, r3, #3 - 8003088: 4413 add r3, r2 - 800308a: 009b lsls r3, r3, #2 - 800308c: 440b add r3, r1 - 800308e: 3315 adds r3, #21 - 8003090: 2201 movs r2, #1 - 8003092: 701a strb r2, [r3, #0] - hpcd->IN_ep[i].num = i; - 8003094: 7bfa ldrb r2, [r7, #15] - 8003096: 6879 ldr r1, [r7, #4] - 8003098: 4613 mov r3, r2 - 800309a: 00db lsls r3, r3, #3 - 800309c: 4413 add r3, r2 - 800309e: 009b lsls r3, r3, #2 - 80030a0: 440b add r3, r1 - 80030a2: 3314 adds r3, #20 - 80030a4: 7bfa ldrb r2, [r7, #15] - 80030a6: 701a strb r2, [r3, #0] - hpcd->IN_ep[i].tx_fifo_num = i; - 80030a8: 7bfa ldrb r2, [r7, #15] - 80030aa: 7bfb ldrb r3, [r7, #15] - 80030ac: b298 uxth r0, r3 - 80030ae: 6879 ldr r1, [r7, #4] - 80030b0: 4613 mov r3, r2 - 80030b2: 00db lsls r3, r3, #3 - 80030b4: 4413 add r3, r2 - 80030b6: 009b lsls r3, r3, #2 - 80030b8: 440b add r3, r1 - 80030ba: 332e adds r3, #46 @ 0x2e - 80030bc: 4602 mov r2, r0 - 80030be: 801a strh r2, [r3, #0] - /* Control until ep is activated */ - hpcd->IN_ep[i].type = EP_TYPE_CTRL; - 80030c0: 7bfa ldrb r2, [r7, #15] - 80030c2: 6879 ldr r1, [r7, #4] - 80030c4: 4613 mov r3, r2 - 80030c6: 00db lsls r3, r3, #3 - 80030c8: 4413 add r3, r2 - 80030ca: 009b lsls r3, r3, #2 - 80030cc: 440b add r3, r1 - 80030ce: 3318 adds r3, #24 - 80030d0: 2200 movs r2, #0 - 80030d2: 701a strb r2, [r3, #0] - hpcd->IN_ep[i].maxpacket = 0U; - 80030d4: 7bfa ldrb r2, [r7, #15] - 80030d6: 6879 ldr r1, [r7, #4] - 80030d8: 4613 mov r3, r2 - 80030da: 00db lsls r3, r3, #3 - 80030dc: 4413 add r3, r2 - 80030de: 009b lsls r3, r3, #2 - 80030e0: 440b add r3, r1 - 80030e2: 331c adds r3, #28 - 80030e4: 2200 movs r2, #0 - 80030e6: 601a str r2, [r3, #0] - hpcd->IN_ep[i].xfer_buff = 0U; - 80030e8: 7bfa ldrb r2, [r7, #15] - 80030ea: 6879 ldr r1, [r7, #4] - 80030ec: 4613 mov r3, r2 - 80030ee: 00db lsls r3, r3, #3 - 80030f0: 4413 add r3, r2 - 80030f2: 009b lsls r3, r3, #2 - 80030f4: 440b add r3, r1 - 80030f6: 3320 adds r3, #32 - 80030f8: 2200 movs r2, #0 - 80030fa: 601a str r2, [r3, #0] - hpcd->IN_ep[i].xfer_len = 0U; - 80030fc: 7bfa ldrb r2, [r7, #15] - 80030fe: 6879 ldr r1, [r7, #4] - 8003100: 4613 mov r3, r2 - 8003102: 00db lsls r3, r3, #3 - 8003104: 4413 add r3, r2 - 8003106: 009b lsls r3, r3, #2 - 8003108: 440b add r3, r1 - 800310a: 3324 adds r3, #36 @ 0x24 - 800310c: 2200 movs r2, #0 - 800310e: 601a str r2, [r3, #0] - for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 8003110: 7bfb ldrb r3, [r7, #15] - 8003112: 3301 adds r3, #1 - 8003114: 73fb strb r3, [r7, #15] - 8003116: 687b ldr r3, [r7, #4] - 8003118: 791b ldrb r3, [r3, #4] - 800311a: 7bfa ldrb r2, [r7, #15] - 800311c: 429a cmp r2, r3 - 800311e: d3af bcc.n 8003080 - } - - for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 8003120: 2300 movs r3, #0 - 8003122: 73fb strb r3, [r7, #15] - 8003124: e044 b.n 80031b0 - { - hpcd->OUT_ep[i].is_in = 0U; - 8003126: 7bfa ldrb r2, [r7, #15] - 8003128: 6879 ldr r1, [r7, #4] - 800312a: 4613 mov r3, r2 - 800312c: 00db lsls r3, r3, #3 - 800312e: 4413 add r3, r2 - 8003130: 009b lsls r3, r3, #2 - 8003132: 440b add r3, r1 - 8003134: f203 2355 addw r3, r3, #597 @ 0x255 - 8003138: 2200 movs r2, #0 - 800313a: 701a strb r2, [r3, #0] - hpcd->OUT_ep[i].num = i; - 800313c: 7bfa ldrb r2, [r7, #15] - 800313e: 6879 ldr r1, [r7, #4] - 8003140: 4613 mov r3, r2 - 8003142: 00db lsls r3, r3, #3 - 8003144: 4413 add r3, r2 - 8003146: 009b lsls r3, r3, #2 - 8003148: 440b add r3, r1 - 800314a: f503 7315 add.w r3, r3, #596 @ 0x254 - 800314e: 7bfa ldrb r2, [r7, #15] - 8003150: 701a strb r2, [r3, #0] - /* Control until ep is activated */ - hpcd->OUT_ep[i].type = EP_TYPE_CTRL; - 8003152: 7bfa ldrb r2, [r7, #15] - 8003154: 6879 ldr r1, [r7, #4] - 8003156: 4613 mov r3, r2 - 8003158: 00db lsls r3, r3, #3 - 800315a: 4413 add r3, r2 - 800315c: 009b lsls r3, r3, #2 - 800315e: 440b add r3, r1 - 8003160: f503 7316 add.w r3, r3, #600 @ 0x258 - 8003164: 2200 movs r2, #0 - 8003166: 701a strb r2, [r3, #0] - hpcd->OUT_ep[i].maxpacket = 0U; - 8003168: 7bfa ldrb r2, [r7, #15] - 800316a: 6879 ldr r1, [r7, #4] - 800316c: 4613 mov r3, r2 - 800316e: 00db lsls r3, r3, #3 - 8003170: 4413 add r3, r2 - 8003172: 009b lsls r3, r3, #2 - 8003174: 440b add r3, r1 - 8003176: f503 7317 add.w r3, r3, #604 @ 0x25c - 800317a: 2200 movs r2, #0 - 800317c: 601a str r2, [r3, #0] - hpcd->OUT_ep[i].xfer_buff = 0U; - 800317e: 7bfa ldrb r2, [r7, #15] - 8003180: 6879 ldr r1, [r7, #4] - 8003182: 4613 mov r3, r2 - 8003184: 00db lsls r3, r3, #3 + 8002fbe: 681b ldr r3, [r3, #0] + 8002fc0: f022 0210 bic.w r2, r2, #16 + 8002fc4: 619a str r2, [r3, #24] + 8002fc6: 6a3b ldr r3, [r7, #32] + 8002fc8: 6a1b ldr r3, [r3, #32] + 8002fca: 61bb str r3, [r7, #24] + 8002fcc: 69bb ldr r3, [r7, #24] + 8002fce: f003 020f and.w r2, r3, #15 + 8002fd2: 4613 mov r3, r2 + 8002fd4: 00db lsls r3, r3, #3 + 8002fd6: 4413 add r3, r2 + 8002fd8: 009b lsls r3, r3, #2 + 8002fda: f503 7314 add.w r3, r3, #592 @ 0x250 + 8002fde: 687a ldr r2, [r7, #4] + 8002fe0: 4413 add r3, r2 + 8002fe2: 3304 adds r3, #4 + 8002fe4: 617b str r3, [r7, #20] + 8002fe6: 69bb ldr r3, [r7, #24] + 8002fe8: f403 13f0 and.w r3, r3, #1966080 @ 0x1e0000 + 8002fec: f5b3 2f80 cmp.w r3, #262144 @ 0x40000 + 8002ff0: d124 bne.n 800303c + 8002ff2: 69ba ldr r2, [r7, #24] + 8002ff4: f647 73f0 movw r3, #32752 @ 0x7ff0 + 8002ff8: 4013 ands r3, r2 + 8002ffa: 2b00 cmp r3, #0 + 8002ffc: d035 beq.n 800306a + 8002ffe: 697b ldr r3, [r7, #20] + 8003000: 68d9 ldr r1, [r3, #12] + 8003002: 69bb ldr r3, [r7, #24] + 8003004: 091b lsrs r3, r3, #4 + 8003006: b29b uxth r3, r3 + 8003008: f3c3 030a ubfx r3, r3, #0, #11 + 800300c: b29b uxth r3, r3 + 800300e: 461a mov r2, r3 + 8003010: 6a38 ldr r0, [r7, #32] + 8003012: f005 faed bl 80085f0 + 8003016: 697b ldr r3, [r7, #20] + 8003018: 68da ldr r2, [r3, #12] + 800301a: 69bb ldr r3, [r7, #24] + 800301c: 091b lsrs r3, r3, #4 + 800301e: f3c3 030a ubfx r3, r3, #0, #11 + 8003022: 441a add r2, r3 + 8003024: 697b ldr r3, [r7, #20] + 8003026: 60da str r2, [r3, #12] + 8003028: 697b ldr r3, [r7, #20] + 800302a: 695a ldr r2, [r3, #20] + 800302c: 69bb ldr r3, [r7, #24] + 800302e: 091b lsrs r3, r3, #4 + 8003030: f3c3 030a ubfx r3, r3, #0, #11 + 8003034: 441a add r2, r3 + 8003036: 697b ldr r3, [r7, #20] + 8003038: 615a str r2, [r3, #20] + 800303a: e016 b.n 800306a + 800303c: 69bb ldr r3, [r7, #24] + 800303e: f403 13f0 and.w r3, r3, #1966080 @ 0x1e0000 + 8003042: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000 + 8003046: d110 bne.n 800306a + 8003048: 687b ldr r3, [r7, #4] + 800304a: f203 439c addw r3, r3, #1180 @ 0x49c + 800304e: 2208 movs r2, #8 + 8003050: 4619 mov r1, r3 + 8003052: 6a38 ldr r0, [r7, #32] + 8003054: f005 facc bl 80085f0 + 8003058: 697b ldr r3, [r7, #20] + 800305a: 695a ldr r2, [r3, #20] + 800305c: 69bb ldr r3, [r7, #24] + 800305e: 091b lsrs r3, r3, #4 + 8003060: f3c3 030a ubfx r3, r3, #0, #11 + 8003064: 441a add r2, r3 + 8003066: 697b ldr r3, [r7, #20] + 8003068: 615a str r2, [r3, #20] + 800306a: 687b ldr r3, [r7, #4] + 800306c: 681b ldr r3, [r3, #0] + 800306e: 699a ldr r2, [r3, #24] + 8003070: 687b ldr r3, [r7, #4] + 8003072: 681b ldr r3, [r3, #0] + 8003074: f042 0210 orr.w r2, r2, #16 + 8003078: 619a str r2, [r3, #24] + 800307a: 687b ldr r3, [r7, #4] + 800307c: 681b ldr r3, [r3, #0] + 800307e: 4618 mov r0, r3 + 8003080: f005 fc4a bl 8008918 + 8003084: 4603 mov r3, r0 + 8003086: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 800308a: f5b3 2f00 cmp.w r3, #524288 @ 0x80000 + 800308e: f040 80a7 bne.w 80031e0 + 8003092: 2300 movs r3, #0 + 8003094: 627b str r3, [r7, #36] @ 0x24 + 8003096: 687b ldr r3, [r7, #4] + 8003098: 681b ldr r3, [r3, #0] + 800309a: 4618 mov r0, r3 + 800309c: f005 fc4f bl 800893e + 80030a0: 62b8 str r0, [r7, #40] @ 0x28 + 80030a2: e099 b.n 80031d8 + 80030a4: 6abb ldr r3, [r7, #40] @ 0x28 + 80030a6: f003 0301 and.w r3, r3, #1 + 80030aa: 2b00 cmp r3, #0 + 80030ac: f000 808e beq.w 80031cc + 80030b0: 687b ldr r3, [r7, #4] + 80030b2: 681b ldr r3, [r3, #0] + 80030b4: 6a7a ldr r2, [r7, #36] @ 0x24 + 80030b6: b2d2 uxtb r2, r2 + 80030b8: 4611 mov r1, r2 + 80030ba: 4618 mov r0, r3 + 80030bc: f005 fc73 bl 80089a6 + 80030c0: 6138 str r0, [r7, #16] + 80030c2: 693b ldr r3, [r7, #16] + 80030c4: f003 0301 and.w r3, r3, #1 + 80030c8: 2b00 cmp r3, #0 + 80030ca: d00c beq.n 80030e6 + 80030cc: 6a7b ldr r3, [r7, #36] @ 0x24 + 80030ce: 015a lsls r2, r3, #5 + 80030d0: 69fb ldr r3, [r7, #28] + 80030d2: 4413 add r3, r2 + 80030d4: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80030d8: 461a mov r2, r3 + 80030da: 2301 movs r3, #1 + 80030dc: 6093 str r3, [r2, #8] + 80030de: 6a79 ldr r1, [r7, #36] @ 0x24 + 80030e0: 6878 ldr r0, [r7, #4] + 80030e2: f000 feb9 bl 8003e58 + 80030e6: 693b ldr r3, [r7, #16] + 80030e8: f003 0308 and.w r3, r3, #8 + 80030ec: 2b00 cmp r3, #0 + 80030ee: d00c beq.n 800310a + 80030f0: 6a7b ldr r3, [r7, #36] @ 0x24 + 80030f2: 015a lsls r2, r3, #5 + 80030f4: 69fb ldr r3, [r7, #28] + 80030f6: 4413 add r3, r2 + 80030f8: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80030fc: 461a mov r2, r3 + 80030fe: 2308 movs r3, #8 + 8003100: 6093 str r3, [r2, #8] + 8003102: 6a79 ldr r1, [r7, #36] @ 0x24 + 8003104: 6878 ldr r0, [r7, #4] + 8003106: f000 ff8f bl 8004028 + 800310a: 693b ldr r3, [r7, #16] + 800310c: f003 0310 and.w r3, r3, #16 + 8003110: 2b00 cmp r3, #0 + 8003112: d008 beq.n 8003126 + 8003114: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003116: 015a lsls r2, r3, #5 + 8003118: 69fb ldr r3, [r7, #28] + 800311a: 4413 add r3, r2 + 800311c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003120: 461a mov r2, r3 + 8003122: 2310 movs r3, #16 + 8003124: 6093 str r3, [r2, #8] + 8003126: 693b ldr r3, [r7, #16] + 8003128: f003 0302 and.w r3, r3, #2 + 800312c: 2b00 cmp r3, #0 + 800312e: d030 beq.n 8003192 + 8003130: 6a3b ldr r3, [r7, #32] + 8003132: 695b ldr r3, [r3, #20] + 8003134: f003 0380 and.w r3, r3, #128 @ 0x80 + 8003138: 2b80 cmp r3, #128 @ 0x80 + 800313a: d109 bne.n 8003150 + 800313c: 69fb ldr r3, [r7, #28] + 800313e: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003142: 685b ldr r3, [r3, #4] + 8003144: 69fa ldr r2, [r7, #28] + 8003146: f502 6200 add.w r2, r2, #2048 @ 0x800 + 800314a: f443 6380 orr.w r3, r3, #1024 @ 0x400 + 800314e: 6053 str r3, [r2, #4] + 8003150: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003152: 4613 mov r3, r2 + 8003154: 00db lsls r3, r3, #3 + 8003156: 4413 add r3, r2 + 8003158: 009b lsls r3, r3, #2 + 800315a: f503 7314 add.w r3, r3, #592 @ 0x250 + 800315e: 687a ldr r2, [r7, #4] + 8003160: 4413 add r3, r2 + 8003162: 3304 adds r3, #4 + 8003164: 617b str r3, [r7, #20] + 8003166: 697b ldr r3, [r7, #20] + 8003168: 78db ldrb r3, [r3, #3] + 800316a: 2b01 cmp r3, #1 + 800316c: d108 bne.n 8003180 + 800316e: 697b ldr r3, [r7, #20] + 8003170: 2200 movs r2, #0 + 8003172: 70da strb r2, [r3, #3] + 8003174: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003176: b2db uxtb r3, r3 + 8003178: 4619 mov r1, r3 + 800317a: 6878 ldr r0, [r7, #4] + 800317c: f007 fd0c bl 800ab98 + 8003180: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003182: 015a lsls r2, r3, #5 + 8003184: 69fb ldr r3, [r7, #28] 8003186: 4413 add r3, r2 - 8003188: 009b lsls r3, r3, #2 - 800318a: 440b add r3, r1 - 800318c: f503 7318 add.w r3, r3, #608 @ 0x260 - 8003190: 2200 movs r2, #0 - 8003192: 601a str r2, [r3, #0] - hpcd->OUT_ep[i].xfer_len = 0U; - 8003194: 7bfa ldrb r2, [r7, #15] - 8003196: 6879 ldr r1, [r7, #4] - 8003198: 4613 mov r3, r2 - 800319a: 00db lsls r3, r3, #3 - 800319c: 4413 add r3, r2 - 800319e: 009b lsls r3, r3, #2 - 80031a0: 440b add r3, r1 - 80031a2: f503 7319 add.w r3, r3, #612 @ 0x264 - 80031a6: 2200 movs r2, #0 - 80031a8: 601a str r2, [r3, #0] - for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 80031aa: 7bfb ldrb r3, [r7, #15] - 80031ac: 3301 adds r3, #1 - 80031ae: 73fb strb r3, [r7, #15] - 80031b0: 687b ldr r3, [r7, #4] - 80031b2: 791b ldrb r3, [r3, #4] - 80031b4: 7bfa ldrb r2, [r7, #15] - 80031b6: 429a cmp r2, r3 - 80031b8: d3b5 bcc.n 8003126 - } - - /* Init Device */ - if (USB_DevInit(hpcd->Instance, hpcd->Init) != HAL_OK) - 80031ba: 687b ldr r3, [r7, #4] - 80031bc: 6818 ldr r0, [r3, #0] - 80031be: 687b ldr r3, [r7, #4] - 80031c0: 7c1a ldrb r2, [r3, #16] - 80031c2: f88d 2000 strb.w r2, [sp] - 80031c6: 3304 adds r3, #4 - 80031c8: cb0e ldmia r3, {r1, r2, r3} - 80031ca: f004 fccd bl 8007b68 - 80031ce: 4603 mov r3, r0 - 80031d0: 2b00 cmp r3, #0 - 80031d2: d005 beq.n 80031e0 - { - hpcd->State = HAL_PCD_STATE_ERROR; - 80031d4: 687b ldr r3, [r7, #4] - 80031d6: 2202 movs r2, #2 - 80031d8: f883 2495 strb.w r2, [r3, #1173] @ 0x495 - return HAL_ERROR; - 80031dc: 2301 movs r3, #1 - 80031de: e013 b.n 8003208 - } - - hpcd->USB_Address = 0U; + 8003188: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800318c: 461a mov r2, r3 + 800318e: 2302 movs r3, #2 + 8003190: 6093 str r3, [r2, #8] + 8003192: 693b ldr r3, [r7, #16] + 8003194: f003 0320 and.w r3, r3, #32 + 8003198: 2b00 cmp r3, #0 + 800319a: d008 beq.n 80031ae + 800319c: 6a7b ldr r3, [r7, #36] @ 0x24 + 800319e: 015a lsls r2, r3, #5 + 80031a0: 69fb ldr r3, [r7, #28] + 80031a2: 4413 add r3, r2 + 80031a4: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80031a8: 461a mov r2, r3 + 80031aa: 2320 movs r3, #32 + 80031ac: 6093 str r3, [r2, #8] + 80031ae: 693b ldr r3, [r7, #16] + 80031b0: f403 5300 and.w r3, r3, #8192 @ 0x2000 + 80031b4: 2b00 cmp r3, #0 + 80031b6: d009 beq.n 80031cc + 80031b8: 6a7b ldr r3, [r7, #36] @ 0x24 + 80031ba: 015a lsls r2, r3, #5 + 80031bc: 69fb ldr r3, [r7, #28] + 80031be: 4413 add r3, r2 + 80031c0: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80031c4: 461a mov r2, r3 + 80031c6: f44f 5300 mov.w r3, #8192 @ 0x2000 + 80031ca: 6093 str r3, [r2, #8] + 80031cc: 6a7b ldr r3, [r7, #36] @ 0x24 + 80031ce: 3301 adds r3, #1 + 80031d0: 627b str r3, [r7, #36] @ 0x24 + 80031d2: 6abb ldr r3, [r7, #40] @ 0x28 + 80031d4: 085b lsrs r3, r3, #1 + 80031d6: 62bb str r3, [r7, #40] @ 0x28 + 80031d8: 6abb ldr r3, [r7, #40] @ 0x28 + 80031da: 2b00 cmp r3, #0 + 80031dc: f47f af62 bne.w 80030a4 80031e0: 687b ldr r3, [r7, #4] - 80031e2: 2200 movs r2, #0 - 80031e4: 745a strb r2, [r3, #17] - hpcd->State = HAL_PCD_STATE_READY; - 80031e6: 687b ldr r3, [r7, #4] - 80031e8: 2201 movs r2, #1 - 80031ea: 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) - 80031ee: 687b ldr r3, [r7, #4] - 80031f0: 7b1b ldrb r3, [r3, #12] - 80031f2: 2b01 cmp r3, #1 - 80031f4: d102 bne.n 80031fc - { - (void)HAL_PCDEx_ActivateLPM(hpcd); - 80031f6: 6878 ldr r0, [r7, #4] - 80031f8: f001 f956 bl 80044a8 - } -#endif /* defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || - defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || - defined(STM32F423xx) */ - (void)USB_DevDisconnect(hpcd->Instance); - 80031fc: 687b ldr r3, [r7, #4] - 80031fe: 681b ldr r3, [r3, #0] - 8003200: 4618 mov r0, r3 - 8003202: f005 fd0a bl 8008c1a - - return HAL_OK; - 8003206: 2300 movs r3, #0 -} - 8003208: 4618 mov r0, r3 - 800320a: 3710 adds r7, #16 - 800320c: 46bd mov sp, r7 - 800320e: bd80 pop {r7, pc} - -08003210 : - * @brief Start the USB device - * @param hpcd PCD handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_PCD_Start(PCD_HandleTypeDef *hpcd) -{ - 8003210: b580 push {r7, lr} - 8003212: b084 sub sp, #16 - 8003214: af00 add r7, sp, #0 - 8003216: 6078 str r0, [r7, #4] - USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 8003218: 687b ldr r3, [r7, #4] - 800321a: 681b ldr r3, [r3, #0] - 800321c: 60fb str r3, [r7, #12] - - __HAL_LOCK(hpcd); - 800321e: 687b ldr r3, [r7, #4] - 8003220: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003224: 2b01 cmp r3, #1 - 8003226: d101 bne.n 800322c - 8003228: 2302 movs r3, #2 - 800322a: e022 b.n 8003272 - 800322c: 687b ldr r3, [r7, #4] - 800322e: 2201 movs r2, #1 - 8003230: f883 2494 strb.w r2, [r3, #1172] @ 0x494 - - if (((USBx->GUSBCFG & USB_OTG_GUSBCFG_PHYSEL) != 0U) && - 8003234: 68fb ldr r3, [r7, #12] - 8003236: 68db ldr r3, [r3, #12] - 8003238: f003 0340 and.w r3, r3, #64 @ 0x40 - 800323c: 2b00 cmp r3, #0 - 800323e: d009 beq.n 8003254 - (hpcd->Init.battery_charging_enable == 1U)) - 8003240: 687b ldr r3, [r7, #4] - 8003242: 7b5b ldrb r3, [r3, #13] - if (((USBx->GUSBCFG & USB_OTG_GUSBCFG_PHYSEL) != 0U) && - 8003244: 2b01 cmp r3, #1 - 8003246: d105 bne.n 8003254 - { - /* Enable USB Transceiver */ - USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN; + 80031e2: 681b ldr r3, [r3, #0] + 80031e4: 4618 mov r0, r3 + 80031e6: f005 fb97 bl 8008918 + 80031ea: 4603 mov r3, r0 + 80031ec: f403 2380 and.w r3, r3, #262144 @ 0x40000 + 80031f0: f5b3 2f80 cmp.w r3, #262144 @ 0x40000 + 80031f4: f040 80db bne.w 80033ae + 80031f8: 687b ldr r3, [r7, #4] + 80031fa: 681b ldr r3, [r3, #0] + 80031fc: 4618 mov r0, r3 + 80031fe: f005 fbb8 bl 8008972 + 8003202: 62b8 str r0, [r7, #40] @ 0x28 + 8003204: 2300 movs r3, #0 + 8003206: 627b str r3, [r7, #36] @ 0x24 + 8003208: e0cd b.n 80033a6 + 800320a: 6abb ldr r3, [r7, #40] @ 0x28 + 800320c: f003 0301 and.w r3, r3, #1 + 8003210: 2b00 cmp r3, #0 + 8003212: f000 80c2 beq.w 800339a + 8003216: 687b ldr r3, [r7, #4] + 8003218: 681b ldr r3, [r3, #0] + 800321a: 6a7a ldr r2, [r7, #36] @ 0x24 + 800321c: b2d2 uxtb r2, r2 + 800321e: 4611 mov r1, r2 + 8003220: 4618 mov r0, r3 + 8003222: f005 fbde bl 80089e2 + 8003226: 6138 str r0, [r7, #16] + 8003228: 693b ldr r3, [r7, #16] + 800322a: f003 0301 and.w r3, r3, #1 + 800322e: 2b00 cmp r3, #0 + 8003230: d057 beq.n 80032e2 + 8003232: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003234: f003 030f and.w r3, r3, #15 + 8003238: 2201 movs r2, #1 + 800323a: fa02 f303 lsl.w r3, r2, r3 + 800323e: 60fb str r3, [r7, #12] + 8003240: 69fb ldr r3, [r7, #28] + 8003242: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003246: 6b5a ldr r2, [r3, #52] @ 0x34 8003248: 68fb ldr r3, [r7, #12] - 800324a: 6b9b ldr r3, [r3, #56] @ 0x38 - 800324c: f443 3280 orr.w r2, r3, #65536 @ 0x10000 - 8003250: 68fb ldr r3, [r7, #12] - 8003252: 639a str r2, [r3, #56] @ 0x38 - } - - __HAL_PCD_ENABLE(hpcd); - 8003254: 687b ldr r3, [r7, #4] - 8003256: 681b ldr r3, [r3, #0] - 8003258: 4618 mov r0, r3 - 800325a: f004 fc17 bl 8007a8c - (void)USB_DevConnect(hpcd->Instance); - 800325e: 687b ldr r3, [r7, #4] - 8003260: 681b ldr r3, [r3, #0] - 8003262: 4618 mov r0, r3 - 8003264: f005 fcb8 bl 8008bd8 - __HAL_UNLOCK(hpcd); + 800324a: 43db mvns r3, r3 + 800324c: 69f9 ldr r1, [r7, #28] + 800324e: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8003252: 4013 ands r3, r2 + 8003254: 634b str r3, [r1, #52] @ 0x34 + 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: 2301 movs r3, #1 + 8003266: 6093 str r3, [r2, #8] 8003268: 687b ldr r3, [r7, #4] - 800326a: 2200 movs r2, #0 - 800326c: f883 2494 strb.w r2, [r3, #1172] @ 0x494 - - return HAL_OK; - 8003270: 2300 movs r3, #0 -} - 8003272: 4618 mov r0, r3 - 8003274: 3710 adds r7, #16 - 8003276: 46bd mov sp, r7 - 8003278: bd80 pop {r7, pc} - -0800327a : - * @brief Handles PCD interrupt request. - * @param hpcd PCD handle - * @retval HAL status - */ -void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd) -{ - 800327a: b590 push {r4, r7, lr} - 800327c: b08d sub sp, #52 @ 0x34 - 800327e: af00 add r7, sp, #0 - 8003280: 6078 str r0, [r7, #4] - USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 8003282: 687b ldr r3, [r7, #4] - 8003284: 681b ldr r3, [r3, #0] - 8003286: 623b str r3, [r7, #32] - uint32_t USBx_BASE = (uint32_t)USBx; - 8003288: 6a3b ldr r3, [r7, #32] - 800328a: 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) - 800328c: 687b ldr r3, [r7, #4] - 800328e: 681b ldr r3, [r3, #0] - 8003290: 4618 mov r0, r3 - 8003292: f005 fd76 bl 8008d82 - 8003296: 4603 mov r3, r0 - 8003298: 2b00 cmp r3, #0 - 800329a: f040 84b9 bne.w 8003c10 - { - /* avoid spurious interrupt */ - if (__HAL_PCD_IS_INVALID_INTERRUPT(hpcd)) - 800329e: 687b ldr r3, [r7, #4] - 80032a0: 681b ldr r3, [r3, #0] - 80032a2: 4618 mov r0, r3 - 80032a4: f005 fcda bl 8008c5c - 80032a8: 4603 mov r3, r0 + 800326a: 799b ldrb r3, [r3, #6] + 800326c: 2b01 cmp r3, #1 + 800326e: d132 bne.n 80032d6 + 8003270: 6879 ldr r1, [r7, #4] + 8003272: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003274: 4613 mov r3, r2 + 8003276: 00db lsls r3, r3, #3 + 8003278: 4413 add r3, r2 + 800327a: 009b lsls r3, r3, #2 + 800327c: 440b add r3, r1 + 800327e: 3320 adds r3, #32 + 8003280: 6819 ldr r1, [r3, #0] + 8003282: 6878 ldr r0, [r7, #4] + 8003284: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003286: 4613 mov r3, r2 + 8003288: 00db lsls r3, r3, #3 + 800328a: 4413 add r3, r2 + 800328c: 009b lsls r3, r3, #2 + 800328e: 4403 add r3, r0 + 8003290: 331c adds r3, #28 + 8003292: 681b ldr r3, [r3, #0] + 8003294: 4419 add r1, r3 + 8003296: 6878 ldr r0, [r7, #4] + 8003298: 6a7a ldr r2, [r7, #36] @ 0x24 + 800329a: 4613 mov r3, r2 + 800329c: 00db lsls r3, r3, #3 + 800329e: 4413 add r3, r2 + 80032a0: 009b lsls r3, r3, #2 + 80032a2: 4403 add r3, r0 + 80032a4: 3320 adds r3, #32 + 80032a6: 6019 str r1, [r3, #0] + 80032a8: 6a7b ldr r3, [r7, #36] @ 0x24 80032aa: 2b00 cmp r3, #0 - 80032ac: f000 84af beq.w 8003c0e - { - return; - } - - /* store current frame number */ - hpcd->FrameNumber = (USBx_DEVICE->DSTS & USB_OTG_DSTS_FNSOF_Msk) >> USB_OTG_DSTS_FNSOF_Pos; - 80032b0: 69fb ldr r3, [r7, #28] - 80032b2: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80032b6: 689b ldr r3, [r3, #8] - 80032b8: 0a1b lsrs r3, r3, #8 - 80032ba: f3c3 020d ubfx r2, r3, #0, #14 - 80032be: 687b ldr r3, [r7, #4] - 80032c0: f8c3 24d4 str.w r2, [r3, #1236] @ 0x4d4 - - if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_MMIS)) + 80032ac: d113 bne.n 80032d6 + 80032ae: 6879 ldr r1, [r7, #4] + 80032b0: 6a7a ldr r2, [r7, #36] @ 0x24 + 80032b2: 4613 mov r3, r2 + 80032b4: 00db lsls r3, r3, #3 + 80032b6: 4413 add r3, r2 + 80032b8: 009b lsls r3, r3, #2 + 80032ba: 440b add r3, r1 + 80032bc: 3324 adds r3, #36 @ 0x24 + 80032be: 681b ldr r3, [r3, #0] + 80032c0: 2b00 cmp r3, #0 + 80032c2: d108 bne.n 80032d6 80032c4: 687b ldr r3, [r7, #4] - 80032c6: 681b ldr r3, [r3, #0] - 80032c8: 4618 mov r0, r3 - 80032ca: f005 fcc7 bl 8008c5c - 80032ce: 4603 mov r3, r0 - 80032d0: f003 0302 and.w r3, r3, #2 - 80032d4: 2b02 cmp r3, #2 - 80032d6: d107 bne.n 80032e8 - { - /* incorrect mode, acknowledge the interrupt */ - __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_MMIS); - 80032d8: 687b ldr r3, [r7, #4] - 80032da: 681b ldr r3, [r3, #0] - 80032dc: 695a ldr r2, [r3, #20] - 80032de: 687b ldr r3, [r7, #4] - 80032e0: 681b ldr r3, [r3, #0] - 80032e2: f002 0202 and.w r2, r2, #2 - 80032e6: 615a str r2, [r3, #20] - } - - /* Handle RxQLevel Interrupt */ - if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_RXFLVL)) - 80032e8: 687b ldr r3, [r7, #4] - 80032ea: 681b ldr r3, [r3, #0] - 80032ec: 4618 mov r0, r3 - 80032ee: f005 fcb5 bl 8008c5c - 80032f2: 4603 mov r3, r0 - 80032f4: f003 0310 and.w r3, r3, #16 - 80032f8: 2b10 cmp r3, #16 - 80032fa: d161 bne.n 80033c0 - { - USB_MASK_INTERRUPT(hpcd->Instance, USB_OTG_GINTSTS_RXFLVL); - 80032fc: 687b ldr r3, [r7, #4] - 80032fe: 681b ldr r3, [r3, #0] - 8003300: 699a ldr r2, [r3, #24] - 8003302: 687b ldr r3, [r7, #4] - 8003304: 681b ldr r3, [r3, #0] - 8003306: f022 0210 bic.w r2, r2, #16 - 800330a: 619a str r2, [r3, #24] - - RegVal = USBx->GRXSTSP; - 800330c: 6a3b ldr r3, [r7, #32] - 800330e: 6a1b ldr r3, [r3, #32] - 8003310: 61bb str r3, [r7, #24] - - ep = &hpcd->OUT_ep[RegVal & USB_OTG_GRXSTSP_EPNUM]; - 8003312: 69bb ldr r3, [r7, #24] - 8003314: f003 020f and.w r2, r3, #15 - 8003318: 4613 mov r3, r2 - 800331a: 00db lsls r3, r3, #3 - 800331c: 4413 add r3, r2 - 800331e: 009b lsls r3, r3, #2 - 8003320: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003324: 687a ldr r2, [r7, #4] - 8003326: 4413 add r3, r2 - 8003328: 3304 adds r3, #4 - 800332a: 617b str r3, [r7, #20] - - if (((RegVal & USB_OTG_GRXSTSP_PKTSTS) >> 17) == STS_DATA_UPDT) - 800332c: 69bb ldr r3, [r7, #24] - 800332e: f403 13f0 and.w r3, r3, #1966080 @ 0x1e0000 - 8003332: f5b3 2f80 cmp.w r3, #262144 @ 0x40000 - 8003336: d124 bne.n 8003382 - { - if ((RegVal & USB_OTG_GRXSTSP_BCNT) != 0U) - 8003338: 69ba ldr r2, [r7, #24] - 800333a: f647 73f0 movw r3, #32752 @ 0x7ff0 - 800333e: 4013 ands r3, r2 - 8003340: 2b00 cmp r3, #0 - 8003342: d035 beq.n 80033b0 - { - (void)USB_ReadPacket(USBx, ep->xfer_buff, - 8003344: 697b ldr r3, [r7, #20] - 8003346: 68d9 ldr r1, [r3, #12] - (uint16_t)((RegVal & USB_OTG_GRXSTSP_BCNT) >> 4)); - 8003348: 69bb ldr r3, [r7, #24] - 800334a: 091b lsrs r3, r3, #4 - 800334c: b29b uxth r3, r3 - (void)USB_ReadPacket(USBx, ep->xfer_buff, - 800334e: f3c3 030a ubfx r3, r3, #0, #11 - 8003352: b29b uxth r3, r3 - 8003354: 461a mov r2, r3 - 8003356: 6a38 ldr r0, [r7, #32] - 8003358: f005 faec bl 8008934 - - ep->xfer_buff += (RegVal & USB_OTG_GRXSTSP_BCNT) >> 4; + 80032c6: 6818 ldr r0, [r3, #0] + 80032c8: 687b ldr r3, [r7, #4] + 80032ca: f203 439c addw r3, r3, #1180 @ 0x49c + 80032ce: 461a mov r2, r3 + 80032d0: 2101 movs r1, #1 + 80032d2: f005 fbe5 bl 8008aa0 + 80032d6: 6a7b ldr r3, [r7, #36] @ 0x24 + 80032d8: b2db uxtb r3, r3 + 80032da: 4619 mov r1, r3 + 80032dc: 6878 ldr r0, [r7, #4] + 80032de: f007 fbd6 bl 800aa8e + 80032e2: 693b ldr r3, [r7, #16] + 80032e4: f003 0308 and.w r3, r3, #8 + 80032e8: 2b00 cmp r3, #0 + 80032ea: d008 beq.n 80032fe + 80032ec: 6a7b ldr r3, [r7, #36] @ 0x24 + 80032ee: 015a lsls r2, r3, #5 + 80032f0: 69fb ldr r3, [r7, #28] + 80032f2: 4413 add r3, r2 + 80032f4: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80032f8: 461a mov r2, r3 + 80032fa: 2308 movs r3, #8 + 80032fc: 6093 str r3, [r2, #8] + 80032fe: 693b ldr r3, [r7, #16] + 8003300: f003 0310 and.w r3, r3, #16 + 8003304: 2b00 cmp r3, #0 + 8003306: d008 beq.n 800331a + 8003308: 6a7b ldr r3, [r7, #36] @ 0x24 + 800330a: 015a lsls r2, r3, #5 + 800330c: 69fb ldr r3, [r7, #28] + 800330e: 4413 add r3, r2 + 8003310: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8003314: 461a mov r2, r3 + 8003316: 2310 movs r3, #16 + 8003318: 6093 str r3, [r2, #8] + 800331a: 693b ldr r3, [r7, #16] + 800331c: f003 0340 and.w r3, r3, #64 @ 0x40 + 8003320: 2b00 cmp r3, #0 + 8003322: d008 beq.n 8003336 + 8003324: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003326: 015a lsls r2, r3, #5 + 8003328: 69fb ldr r3, [r7, #28] + 800332a: 4413 add r3, r2 + 800332c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8003330: 461a mov r2, r3 + 8003332: 2340 movs r3, #64 @ 0x40 + 8003334: 6093 str r3, [r2, #8] + 8003336: 693b ldr r3, [r7, #16] + 8003338: f003 0302 and.w r3, r3, #2 + 800333c: 2b00 cmp r3, #0 + 800333e: d023 beq.n 8003388 + 8003340: 6a79 ldr r1, [r7, #36] @ 0x24 + 8003342: 6a38 ldr r0, [r7, #32] + 8003344: f004 fbcc bl 8007ae0 + 8003348: 6a7a ldr r2, [r7, #36] @ 0x24 + 800334a: 4613 mov r3, r2 + 800334c: 00db lsls r3, r3, #3 + 800334e: 4413 add r3, r2 + 8003350: 009b lsls r3, r3, #2 + 8003352: 3310 adds r3, #16 + 8003354: 687a ldr r2, [r7, #4] + 8003356: 4413 add r3, r2 + 8003358: 3304 adds r3, #4 + 800335a: 617b str r3, [r7, #20] 800335c: 697b ldr r3, [r7, #20] - 800335e: 68da ldr r2, [r3, #12] - 8003360: 69bb ldr r3, [r7, #24] - 8003362: 091b lsrs r3, r3, #4 - 8003364: f3c3 030a ubfx r3, r3, #0, #11 - 8003368: 441a add r2, r3 - 800336a: 697b ldr r3, [r7, #20] - 800336c: 60da str r2, [r3, #12] - ep->xfer_count += (RegVal & USB_OTG_GRXSTSP_BCNT) >> 4; - 800336e: 697b ldr r3, [r7, #20] - 8003370: 695a ldr r2, [r3, #20] - 8003372: 69bb ldr r3, [r7, #24] - 8003374: 091b lsrs r3, r3, #4 - 8003376: f3c3 030a ubfx r3, r3, #0, #11 - 800337a: 441a add r2, r3 - 800337c: 697b ldr r3, [r7, #20] - 800337e: 615a str r2, [r3, #20] - 8003380: e016 b.n 80033b0 - } - } - else if (((RegVal & USB_OTG_GRXSTSP_PKTSTS) >> 17) == STS_SETUP_UPDT) - 8003382: 69bb ldr r3, [r7, #24] - 8003384: f403 13f0 and.w r3, r3, #1966080 @ 0x1e0000 - 8003388: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000 - 800338c: d110 bne.n 80033b0 - { - (void)USB_ReadPacket(USBx, (uint8_t *)hpcd->Setup, 8U); - 800338e: 687b ldr r3, [r7, #4] - 8003390: f203 439c addw r3, r3, #1180 @ 0x49c - 8003394: 2208 movs r2, #8 - 8003396: 4619 mov r1, r3 - 8003398: 6a38 ldr r0, [r7, #32] - 800339a: f005 facb bl 8008934 - ep->xfer_count += (RegVal & USB_OTG_GRXSTSP_BCNT) >> 4; - 800339e: 697b ldr r3, [r7, #20] - 80033a0: 695a ldr r2, [r3, #20] - 80033a2: 69bb ldr r3, [r7, #24] - 80033a4: 091b lsrs r3, r3, #4 - 80033a6: f3c3 030a ubfx r3, r3, #0, #11 - 80033aa: 441a add r2, r3 - 80033ac: 697b ldr r3, [r7, #20] - 80033ae: 615a str r2, [r3, #20] - else - { - /* ... */ - } - - USB_UNMASK_INTERRUPT(hpcd->Instance, USB_OTG_GINTSTS_RXFLVL); - 80033b0: 687b ldr r3, [r7, #4] - 80033b2: 681b ldr r3, [r3, #0] - 80033b4: 699a ldr r2, [r3, #24] - 80033b6: 687b ldr r3, [r7, #4] - 80033b8: 681b ldr r3, [r3, #0] - 80033ba: f042 0210 orr.w r2, r2, #16 - 80033be: 619a str r2, [r3, #24] - } - - if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_OEPINT)) - 80033c0: 687b ldr r3, [r7, #4] - 80033c2: 681b ldr r3, [r3, #0] - 80033c4: 4618 mov r0, r3 - 80033c6: f005 fc49 bl 8008c5c - 80033ca: 4603 mov r3, r0 - 80033cc: f403 2300 and.w r3, r3, #524288 @ 0x80000 - 80033d0: f5b3 2f00 cmp.w r3, #524288 @ 0x80000 - 80033d4: f040 80a7 bne.w 8003526 - { - epnum = 0U; - 80033d8: 2300 movs r3, #0 - 80033da: 627b str r3, [r7, #36] @ 0x24 - - /* Read in the device interrupt bits */ - ep_intr = USB_ReadDevAllOutEpInterrupt(hpcd->Instance); - 80033dc: 687b ldr r3, [r7, #4] - 80033de: 681b ldr r3, [r3, #0] - 80033e0: 4618 mov r0, r3 - 80033e2: f005 fc4e bl 8008c82 - 80033e6: 62b8 str r0, [r7, #40] @ 0x28 - - while (ep_intr != 0U) - 80033e8: e099 b.n 800351e - { - if ((ep_intr & 0x1U) != 0U) - 80033ea: 6abb ldr r3, [r7, #40] @ 0x28 - 80033ec: f003 0301 and.w r3, r3, #1 - 80033f0: 2b00 cmp r3, #0 - 80033f2: f000 808e beq.w 8003512 - { - epint = USB_ReadDevOutEPInterrupt(hpcd->Instance, (uint8_t)epnum); - 80033f6: 687b ldr r3, [r7, #4] - 80033f8: 681b ldr r3, [r3, #0] - 80033fa: 6a7a ldr r2, [r7, #36] @ 0x24 - 80033fc: b2d2 uxtb r2, r2 - 80033fe: 4611 mov r1, r2 - 8003400: 4618 mov r0, r3 - 8003402: f005 fc72 bl 8008cea - 8003406: 6138 str r0, [r7, #16] - - if ((epint & USB_OTG_DOEPINT_XFRC) == USB_OTG_DOEPINT_XFRC) - 8003408: 693b ldr r3, [r7, #16] - 800340a: f003 0301 and.w r3, r3, #1 - 800340e: 2b00 cmp r3, #0 - 8003410: d00c beq.n 800342c - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_XFRC); - 8003412: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003414: 015a lsls r2, r3, #5 - 8003416: 69fb ldr r3, [r7, #28] - 8003418: 4413 add r3, r2 - 800341a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800341e: 461a mov r2, r3 - 8003420: 2301 movs r3, #1 - 8003422: 6093 str r3, [r2, #8] - (void)PCD_EP_OutXfrComplete_int(hpcd, epnum); - 8003424: 6a79 ldr r1, [r7, #36] @ 0x24 - 8003426: 6878 ldr r0, [r7, #4] - 8003428: f000 feb8 bl 800419c - } - - if ((epint & USB_OTG_DOEPINT_STUP) == USB_OTG_DOEPINT_STUP) - 800342c: 693b ldr r3, [r7, #16] - 800342e: f003 0308 and.w r3, r3, #8 - 8003432: 2b00 cmp r3, #0 - 8003434: d00c beq.n 8003450 - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STUP); - 8003436: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003438: 015a lsls r2, r3, #5 - 800343a: 69fb ldr r3, [r7, #28] - 800343c: 4413 add r3, r2 - 800343e: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003442: 461a mov r2, r3 - 8003444: 2308 movs r3, #8 - 8003446: 6093 str r3, [r2, #8] - /* Class B setup phase done for previous decoded setup */ - (void)PCD_EP_OutSetupPacket_int(hpcd, epnum); - 8003448: 6a79 ldr r1, [r7, #36] @ 0x24 - 800344a: 6878 ldr r0, [r7, #4] - 800344c: f000 ff8e bl 800436c - } - - if ((epint & USB_OTG_DOEPINT_OTEPDIS) == USB_OTG_DOEPINT_OTEPDIS) - 8003450: 693b ldr r3, [r7, #16] - 8003452: f003 0310 and.w r3, r3, #16 - 8003456: 2b00 cmp r3, #0 - 8003458: d008 beq.n 800346c - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPDIS); - 800345a: 6a7b ldr r3, [r7, #36] @ 0x24 - 800345c: 015a lsls r2, r3, #5 - 800345e: 69fb ldr r3, [r7, #28] - 8003460: 4413 add r3, r2 - 8003462: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003466: 461a mov r2, r3 - 8003468: 2310 movs r3, #16 - 800346a: 6093 str r3, [r2, #8] - } - - /* Clear OUT Endpoint disable interrupt */ - if ((epint & USB_OTG_DOEPINT_EPDISD) == USB_OTG_DOEPINT_EPDISD) - 800346c: 693b ldr r3, [r7, #16] - 800346e: f003 0302 and.w r3, r3, #2 + 800335e: 78db ldrb r3, [r3, #3] + 8003360: 2b01 cmp r3, #1 + 8003362: d108 bne.n 8003376 + 8003364: 697b ldr r3, [r7, #20] + 8003366: 2200 movs r2, #0 + 8003368: 70da strb r2, [r3, #3] + 800336a: 6a7b ldr r3, [r7, #36] @ 0x24 + 800336c: b2db uxtb r3, r3 + 800336e: 4619 mov r1, r3 + 8003370: 6878 ldr r0, [r7, #4] + 8003372: f007 fc23 bl 800abbc + 8003376: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003378: 015a lsls r2, r3, #5 + 800337a: 69fb ldr r3, [r7, #28] + 800337c: 4413 add r3, r2 + 800337e: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8003382: 461a mov r2, r3 + 8003384: 2302 movs r3, #2 + 8003386: 6093 str r3, [r2, #8] + 8003388: 693b ldr r3, [r7, #16] + 800338a: f003 0380 and.w r3, r3, #128 @ 0x80 + 800338e: 2b00 cmp r3, #0 + 8003390: d003 beq.n 800339a + 8003392: 6a79 ldr r1, [r7, #36] @ 0x24 + 8003394: 6878 ldr r0, [r7, #4] + 8003396: f000 fcd2 bl 8003d3e + 800339a: 6a7b ldr r3, [r7, #36] @ 0x24 + 800339c: 3301 adds r3, #1 + 800339e: 627b str r3, [r7, #36] @ 0x24 + 80033a0: 6abb ldr r3, [r7, #40] @ 0x28 + 80033a2: 085b lsrs r3, r3, #1 + 80033a4: 62bb str r3, [r7, #40] @ 0x28 + 80033a6: 6abb ldr r3, [r7, #40] @ 0x28 + 80033a8: 2b00 cmp r3, #0 + 80033aa: f47f af2e bne.w 800320a + 80033ae: 687b ldr r3, [r7, #4] + 80033b0: 681b ldr r3, [r3, #0] + 80033b2: 4618 mov r0, r3 + 80033b4: f005 fab0 bl 8008918 + 80033b8: 4603 mov r3, r0 + 80033ba: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 80033be: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 80033c2: d122 bne.n 800340a + 80033c4: 69fb ldr r3, [r7, #28] + 80033c6: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80033ca: 685b ldr r3, [r3, #4] + 80033cc: 69fa ldr r2, [r7, #28] + 80033ce: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80033d2: f023 0301 bic.w r3, r3, #1 + 80033d6: 6053 str r3, [r2, #4] + 80033d8: 687b ldr r3, [r7, #4] + 80033da: f893 34cc ldrb.w r3, [r3, #1228] @ 0x4cc + 80033de: 2b01 cmp r3, #1 + 80033e0: d108 bne.n 80033f4 + 80033e2: 687b ldr r3, [r7, #4] + 80033e4: 2200 movs r2, #0 + 80033e6: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc + 80033ea: 2100 movs r1, #0 + 80033ec: 6878 ldr r0, [r7, #4] + 80033ee: f007 fd8b bl 800af08 + 80033f2: e002 b.n 80033fa + 80033f4: 6878 ldr r0, [r7, #4] + 80033f6: f007 fbc1 bl 800ab7c + 80033fa: 687b ldr r3, [r7, #4] + 80033fc: 681b ldr r3, [r3, #0] + 80033fe: 695a ldr r2, [r3, #20] + 8003400: 687b ldr r3, [r7, #4] + 8003402: 681b ldr r3, [r3, #0] + 8003404: f002 4200 and.w r2, r2, #2147483648 @ 0x80000000 + 8003408: 615a str r2, [r3, #20] + 800340a: 687b ldr r3, [r7, #4] + 800340c: 681b ldr r3, [r3, #0] + 800340e: 4618 mov r0, r3 + 8003410: f005 fa82 bl 8008918 + 8003414: 4603 mov r3, r0 + 8003416: f403 6300 and.w r3, r3, #2048 @ 0x800 + 800341a: f5b3 6f00 cmp.w r3, #2048 @ 0x800 + 800341e: d112 bne.n 8003446 + 8003420: 69fb ldr r3, [r7, #28] + 8003422: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003426: 689b ldr r3, [r3, #8] + 8003428: f003 0301 and.w r3, r3, #1 + 800342c: 2b01 cmp r3, #1 + 800342e: d102 bne.n 8003436 + 8003430: 6878 ldr r0, [r7, #4] + 8003432: f007 fb7d bl 800ab30 + 8003436: 687b ldr r3, [r7, #4] + 8003438: 681b ldr r3, [r3, #0] + 800343a: 695a ldr r2, [r3, #20] + 800343c: 687b ldr r3, [r7, #4] + 800343e: 681b ldr r3, [r3, #0] + 8003440: f402 6200 and.w r2, r2, #2048 @ 0x800 + 8003444: 615a str r2, [r3, #20] + 8003446: 687b ldr r3, [r7, #4] + 8003448: 681b ldr r3, [r3, #0] + 800344a: 4618 mov r0, r3 + 800344c: f005 fa64 bl 8008918 + 8003450: 4603 mov r3, r0 + 8003452: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 + 8003456: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 + 800345a: d121 bne.n 80034a0 + 800345c: 687b ldr r3, [r7, #4] + 800345e: 681b ldr r3, [r3, #0] + 8003460: 695a ldr r2, [r3, #20] + 8003462: 687b ldr r3, [r7, #4] + 8003464: 681b ldr r3, [r3, #0] + 8003466: f002 6200 and.w r2, r2, #134217728 @ 0x8000000 + 800346a: 615a str r2, [r3, #20] + 800346c: 687b ldr r3, [r7, #4] + 800346e: f893 34cc ldrb.w r3, [r3, #1228] @ 0x4cc 8003472: 2b00 cmp r3, #0 - 8003474: d030 beq.n 80034d8 - { - if ((USBx->GINTSTS & USB_OTG_GINTSTS_BOUTNAKEFF) == USB_OTG_GINTSTS_BOUTNAKEFF) - 8003476: 6a3b ldr r3, [r7, #32] - 8003478: 695b ldr r3, [r3, #20] - 800347a: f003 0380 and.w r3, r3, #128 @ 0x80 - 800347e: 2b80 cmp r3, #128 @ 0x80 - 8003480: d109 bne.n 8003496 - { - USBx_DEVICE->DCTL |= USB_OTG_DCTL_CGONAK; - 8003482: 69fb ldr r3, [r7, #28] - 8003484: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003488: 685b ldr r3, [r3, #4] - 800348a: 69fa ldr r2, [r7, #28] - 800348c: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003490: f443 6380 orr.w r3, r3, #1024 @ 0x400 - 8003494: 6053 str r3, [r2, #4] - } - - ep = &hpcd->OUT_ep[epnum]; - 8003496: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003498: 4613 mov r3, r2 - 800349a: 00db lsls r3, r3, #3 - 800349c: 4413 add r3, r2 - 800349e: 009b lsls r3, r3, #2 - 80034a0: f503 7314 add.w r3, r3, #592 @ 0x250 - 80034a4: 687a ldr r2, [r7, #4] - 80034a6: 4413 add r3, r2 - 80034a8: 3304 adds r3, #4 - 80034aa: 617b str r3, [r7, #20] - - if (ep->is_iso_incomplete == 1U) - 80034ac: 697b ldr r3, [r7, #20] - 80034ae: 78db ldrb r3, [r3, #3] - 80034b0: 2b01 cmp r3, #1 - 80034b2: d108 bne.n 80034c6 - { - ep->is_iso_incomplete = 0U; - 80034b4: 697b ldr r3, [r7, #20] - 80034b6: 2200 movs r2, #0 - 80034b8: 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); - 80034ba: 6a7b ldr r3, [r7, #36] @ 0x24 - 80034bc: b2db uxtb r3, r3 - 80034be: 4619 mov r1, r3 - 80034c0: 6878 ldr r0, [r7, #4] - 80034c2: f007 fd0b bl 800aedc -#endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ - } - - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_EPDISD); - 80034c6: 6a7b ldr r3, [r7, #36] @ 0x24 - 80034c8: 015a lsls r2, r3, #5 - 80034ca: 69fb ldr r3, [r7, #28] - 80034cc: 4413 add r3, r2 - 80034ce: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80034d2: 461a mov r2, r3 - 80034d4: 2302 movs r3, #2 - 80034d6: 6093 str r3, [r2, #8] - } - - /* Clear Status Phase Received interrupt */ - if ((epint & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) - 80034d8: 693b ldr r3, [r7, #16] - 80034da: f003 0320 and.w r3, r3, #32 - 80034de: 2b00 cmp r3, #0 - 80034e0: d008 beq.n 80034f4 - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); - 80034e2: 6a7b ldr r3, [r7, #36] @ 0x24 - 80034e4: 015a lsls r2, r3, #5 - 80034e6: 69fb ldr r3, [r7, #28] - 80034e8: 4413 add r3, r2 - 80034ea: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80034ee: 461a mov r2, r3 - 80034f0: 2320 movs r3, #32 - 80034f2: 6093 str r3, [r2, #8] - } - - /* Clear OUT NAK interrupt */ - if ((epint & USB_OTG_DOEPINT_NAK) == USB_OTG_DOEPINT_NAK) - 80034f4: 693b ldr r3, [r7, #16] - 80034f6: f403 5300 and.w r3, r3, #8192 @ 0x2000 - 80034fa: 2b00 cmp r3, #0 - 80034fc: d009 beq.n 8003512 - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_NAK); - 80034fe: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003500: 015a lsls r2, r3, #5 - 8003502: 69fb ldr r3, [r7, #28] - 8003504: 4413 add r3, r2 - 8003506: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800350a: 461a mov r2, r3 - 800350c: f44f 5300 mov.w r3, #8192 @ 0x2000 - 8003510: 6093 str r3, [r2, #8] - } - } - epnum++; - 8003512: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003514: 3301 adds r3, #1 - 8003516: 627b str r3, [r7, #36] @ 0x24 - ep_intr >>= 1U; - 8003518: 6abb ldr r3, [r7, #40] @ 0x28 - 800351a: 085b lsrs r3, r3, #1 - 800351c: 62bb str r3, [r7, #40] @ 0x28 - while (ep_intr != 0U) - 800351e: 6abb ldr r3, [r7, #40] @ 0x28 - 8003520: 2b00 cmp r3, #0 - 8003522: f47f af62 bne.w 80033ea - } - } - - if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_IEPINT)) - 8003526: 687b ldr r3, [r7, #4] - 8003528: 681b ldr r3, [r3, #0] - 800352a: 4618 mov r0, r3 - 800352c: f005 fb96 bl 8008c5c - 8003530: 4603 mov r3, r0 - 8003532: f403 2380 and.w r3, r3, #262144 @ 0x40000 - 8003536: f5b3 2f80 cmp.w r3, #262144 @ 0x40000 - 800353a: f040 80db bne.w 80036f4 - { - /* Read in the device interrupt bits */ - ep_intr = USB_ReadDevAllInEpInterrupt(hpcd->Instance); - 800353e: 687b ldr r3, [r7, #4] - 8003540: 681b ldr r3, [r3, #0] - 8003542: 4618 mov r0, r3 - 8003544: f005 fbb7 bl 8008cb6 - 8003548: 62b8 str r0, [r7, #40] @ 0x28 - - epnum = 0U; - 800354a: 2300 movs r3, #0 - 800354c: 627b str r3, [r7, #36] @ 0x24 - - while (ep_intr != 0U) - 800354e: e0cd b.n 80036ec - { - if ((ep_intr & 0x1U) != 0U) /* In ITR */ - 8003550: 6abb ldr r3, [r7, #40] @ 0x28 - 8003552: f003 0301 and.w r3, r3, #1 - 8003556: 2b00 cmp r3, #0 - 8003558: f000 80c2 beq.w 80036e0 - { - epint = USB_ReadDevInEPInterrupt(hpcd->Instance, (uint8_t)epnum); - 800355c: 687b ldr r3, [r7, #4] - 800355e: 681b ldr r3, [r3, #0] - 8003560: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003562: b2d2 uxtb r2, r2 - 8003564: 4611 mov r1, r2 - 8003566: 4618 mov r0, r3 - 8003568: f005 fbdd bl 8008d26 - 800356c: 6138 str r0, [r7, #16] - - if ((epint & USB_OTG_DIEPINT_XFRC) == USB_OTG_DIEPINT_XFRC) - 800356e: 693b ldr r3, [r7, #16] - 8003570: f003 0301 and.w r3, r3, #1 - 8003574: 2b00 cmp r3, #0 - 8003576: d057 beq.n 8003628 - { - fifoemptymsk = (uint32_t)(0x1UL << (epnum & EP_ADDR_MSK)); - 8003578: 6a7b ldr r3, [r7, #36] @ 0x24 - 800357a: f003 030f and.w r3, r3, #15 - 800357e: 2201 movs r2, #1 - 8003580: fa02 f303 lsl.w r3, r2, r3 - 8003584: 60fb str r3, [r7, #12] - USBx_DEVICE->DIEPEMPMSK &= ~fifoemptymsk; - 8003586: 69fb ldr r3, [r7, #28] - 8003588: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800358c: 6b5a ldr r2, [r3, #52] @ 0x34 - 800358e: 68fb ldr r3, [r7, #12] - 8003590: 43db mvns r3, r3 - 8003592: 69f9 ldr r1, [r7, #28] - 8003594: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8003598: 4013 ands r3, r2 - 800359a: 634b str r3, [r1, #52] @ 0x34 - - CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_XFRC); - 800359c: 6a7b ldr r3, [r7, #36] @ 0x24 - 800359e: 015a lsls r2, r3, #5 - 80035a0: 69fb ldr r3, [r7, #28] - 80035a2: 4413 add r3, r2 - 80035a4: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80035a8: 461a mov r2, r3 - 80035aa: 2301 movs r3, #1 - 80035ac: 6093 str r3, [r2, #8] - - if (hpcd->Init.dma_enable == 1U) - 80035ae: 687b ldr r3, [r7, #4] - 80035b0: 799b ldrb r3, [r3, #6] - 80035b2: 2b01 cmp r3, #1 - 80035b4: d132 bne.n 800361c - { - hpcd->IN_ep[epnum].xfer_buff += hpcd->IN_ep[epnum].maxpacket; - 80035b6: 6879 ldr r1, [r7, #4] - 80035b8: 6a7a ldr r2, [r7, #36] @ 0x24 - 80035ba: 4613 mov r3, r2 - 80035bc: 00db lsls r3, r3, #3 - 80035be: 4413 add r3, r2 - 80035c0: 009b lsls r3, r3, #2 - 80035c2: 440b add r3, r1 - 80035c4: 3320 adds r3, #32 - 80035c6: 6819 ldr r1, [r3, #0] - 80035c8: 6878 ldr r0, [r7, #4] - 80035ca: 6a7a ldr r2, [r7, #36] @ 0x24 - 80035cc: 4613 mov r3, r2 - 80035ce: 00db lsls r3, r3, #3 - 80035d0: 4413 add r3, r2 - 80035d2: 009b lsls r3, r3, #2 - 80035d4: 4403 add r3, r0 - 80035d6: 331c adds r3, #28 - 80035d8: 681b ldr r3, [r3, #0] - 80035da: 4419 add r1, r3 - 80035dc: 6878 ldr r0, [r7, #4] - 80035de: 6a7a ldr r2, [r7, #36] @ 0x24 - 80035e0: 4613 mov r3, r2 - 80035e2: 00db lsls r3, r3, #3 - 80035e4: 4413 add r3, r2 - 80035e6: 009b lsls r3, r3, #2 - 80035e8: 4403 add r3, r0 - 80035ea: 3320 adds r3, #32 - 80035ec: 6019 str r1, [r3, #0] - - /* this is ZLP, so prepare EP0 for next setup */ - if ((epnum == 0U) && (hpcd->IN_ep[epnum].xfer_len == 0U)) - 80035ee: 6a7b ldr r3, [r7, #36] @ 0x24 - 80035f0: 2b00 cmp r3, #0 - 80035f2: d113 bne.n 800361c - 80035f4: 6879 ldr r1, [r7, #4] - 80035f6: 6a7a ldr r2, [r7, #36] @ 0x24 - 80035f8: 4613 mov r3, r2 - 80035fa: 00db lsls r3, r3, #3 - 80035fc: 4413 add r3, r2 - 80035fe: 009b lsls r3, r3, #2 - 8003600: 440b add r3, r1 - 8003602: 3324 adds r3, #36 @ 0x24 - 8003604: 681b ldr r3, [r3, #0] - 8003606: 2b00 cmp r3, #0 - 8003608: d108 bne.n 800361c - { - /* prepare to rx more setup packets */ - (void)USB_EP0_OutStart(hpcd->Instance, 1U, (uint8_t *)hpcd->Setup); + 8003474: d111 bne.n 800349a + 8003476: 687b ldr r3, [r7, #4] + 8003478: 2201 movs r2, #1 + 800347a: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc + 800347e: 687b ldr r3, [r7, #4] + 8003480: 681b ldr r3, [r3, #0] + 8003482: 6d5b ldr r3, [r3, #84] @ 0x54 + 8003484: 089b lsrs r3, r3, #2 + 8003486: f003 020f and.w r2, r3, #15 + 800348a: 687b ldr r3, [r7, #4] + 800348c: f8c3 24d0 str.w r2, [r3, #1232] @ 0x4d0 + 8003490: 2101 movs r1, #1 + 8003492: 6878 ldr r0, [r7, #4] + 8003494: f007 fd38 bl 800af08 + 8003498: e002 b.n 80034a0 + 800349a: 6878 ldr r0, [r7, #4] + 800349c: f007 fb48 bl 800ab30 + 80034a0: 687b ldr r3, [r7, #4] + 80034a2: 681b ldr r3, [r3, #0] + 80034a4: 4618 mov r0, r3 + 80034a6: f005 fa37 bl 8008918 + 80034aa: 4603 mov r3, r0 + 80034ac: f403 5380 and.w r3, r3, #4096 @ 0x1000 + 80034b0: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 80034b4: f040 80b7 bne.w 8003626 + 80034b8: 69fb ldr r3, [r7, #28] + 80034ba: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80034be: 685b ldr r3, [r3, #4] + 80034c0: 69fa ldr r2, [r7, #28] + 80034c2: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80034c6: f023 0301 bic.w r3, r3, #1 + 80034ca: 6053 str r3, [r2, #4] + 80034cc: 687b ldr r3, [r7, #4] + 80034ce: 681b ldr r3, [r3, #0] + 80034d0: 2110 movs r1, #16 + 80034d2: 4618 mov r0, r3 + 80034d4: f004 fb04 bl 8007ae0 + 80034d8: 2300 movs r3, #0 + 80034da: 62fb str r3, [r7, #44] @ 0x2c + 80034dc: e046 b.n 800356c + 80034de: 6afb ldr r3, [r7, #44] @ 0x2c + 80034e0: 015a lsls r2, r3, #5 + 80034e2: 69fb ldr r3, [r7, #28] + 80034e4: 4413 add r3, r2 + 80034e6: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80034ea: 461a mov r2, r3 + 80034ec: f64f 337f movw r3, #64383 @ 0xfb7f + 80034f0: 6093 str r3, [r2, #8] + 80034f2: 6afb ldr r3, [r7, #44] @ 0x2c + 80034f4: 015a lsls r2, r3, #5 + 80034f6: 69fb ldr r3, [r7, #28] + 80034f8: 4413 add r3, r2 + 80034fa: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80034fe: 681b ldr r3, [r3, #0] + 8003500: 6afa ldr r2, [r7, #44] @ 0x2c + 8003502: 0151 lsls r1, r2, #5 + 8003504: 69fa ldr r2, [r7, #28] + 8003506: 440a add r2, r1 + 8003508: f502 6210 add.w r2, r2, #2304 @ 0x900 + 800350c: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 + 8003510: 6013 str r3, [r2, #0] + 8003512: 6afb ldr r3, [r7, #44] @ 0x2c + 8003514: 015a lsls r2, r3, #5 + 8003516: 69fb ldr r3, [r7, #28] + 8003518: 4413 add r3, r2 + 800351a: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800351e: 461a mov r2, r3 + 8003520: f64f 337f movw r3, #64383 @ 0xfb7f + 8003524: 6093 str r3, [r2, #8] + 8003526: 6afb ldr r3, [r7, #44] @ 0x2c + 8003528: 015a lsls r2, r3, #5 + 800352a: 69fb ldr r3, [r7, #28] + 800352c: 4413 add r3, r2 + 800352e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003532: 681b ldr r3, [r3, #0] + 8003534: 6afa ldr r2, [r7, #44] @ 0x2c + 8003536: 0151 lsls r1, r2, #5 + 8003538: 69fa ldr r2, [r7, #28] + 800353a: 440a add r2, r1 + 800353c: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8003540: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 + 8003544: 6013 str r3, [r2, #0] + 8003546: 6afb ldr r3, [r7, #44] @ 0x2c + 8003548: 015a lsls r2, r3, #5 + 800354a: 69fb ldr r3, [r7, #28] + 800354c: 4413 add r3, r2 + 800354e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003552: 681b ldr r3, [r3, #0] + 8003554: 6afa ldr r2, [r7, #44] @ 0x2c + 8003556: 0151 lsls r1, r2, #5 + 8003558: 69fa ldr r2, [r7, #28] + 800355a: 440a add r2, r1 + 800355c: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8003560: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 8003564: 6013 str r3, [r2, #0] + 8003566: 6afb ldr r3, [r7, #44] @ 0x2c + 8003568: 3301 adds r3, #1 + 800356a: 62fb str r3, [r7, #44] @ 0x2c + 800356c: 687b ldr r3, [r7, #4] + 800356e: 791b ldrb r3, [r3, #4] + 8003570: 461a mov r2, r3 + 8003572: 6afb ldr r3, [r7, #44] @ 0x2c + 8003574: 4293 cmp r3, r2 + 8003576: d3b2 bcc.n 80034de + 8003578: 69fb ldr r3, [r7, #28] + 800357a: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800357e: 69db ldr r3, [r3, #28] + 8003580: 69fa ldr r2, [r7, #28] + 8003582: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8003586: f043 1301 orr.w r3, r3, #65537 @ 0x10001 + 800358a: 61d3 str r3, [r2, #28] + 800358c: 687b ldr r3, [r7, #4] + 800358e: 7bdb ldrb r3, [r3, #15] + 8003590: 2b00 cmp r3, #0 + 8003592: d016 beq.n 80035c2 + 8003594: 69fb ldr r3, [r7, #28] + 8003596: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800359a: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 800359e: 69fa ldr r2, [r7, #28] + 80035a0: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80035a4: f043 030b orr.w r3, r3, #11 + 80035a8: f8c2 3084 str.w r3, [r2, #132] @ 0x84 + 80035ac: 69fb ldr r3, [r7, #28] + 80035ae: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80035b2: 6c5b ldr r3, [r3, #68] @ 0x44 + 80035b4: 69fa ldr r2, [r7, #28] + 80035b6: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80035ba: f043 030b orr.w r3, r3, #11 + 80035be: 6453 str r3, [r2, #68] @ 0x44 + 80035c0: e015 b.n 80035ee + 80035c2: 69fb ldr r3, [r7, #28] + 80035c4: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80035c8: 695b ldr r3, [r3, #20] + 80035ca: 69fa ldr r2, [r7, #28] + 80035cc: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80035d0: f443 5300 orr.w r3, r3, #8192 @ 0x2000 + 80035d4: f043 032b orr.w r3, r3, #43 @ 0x2b + 80035d8: 6153 str r3, [r2, #20] + 80035da: 69fb ldr r3, [r7, #28] + 80035dc: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80035e0: 691b ldr r3, [r3, #16] + 80035e2: 69fa ldr r2, [r7, #28] + 80035e4: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80035e8: f043 030b orr.w r3, r3, #11 + 80035ec: 6113 str r3, [r2, #16] + 80035ee: 69fb ldr r3, [r7, #28] + 80035f0: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80035f4: 681b ldr r3, [r3, #0] + 80035f6: 69fa ldr r2, [r7, #28] + 80035f8: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80035fc: f423 63fe bic.w r3, r3, #2032 @ 0x7f0 + 8003600: 6013 str r3, [r2, #0] + 8003602: 687b ldr r3, [r7, #4] + 8003604: 6818 ldr r0, [r3, #0] + 8003606: 687b ldr r3, [r7, #4] + 8003608: 7999 ldrb r1, [r3, #6] 800360a: 687b ldr r3, [r7, #4] - 800360c: 6818 ldr r0, [r3, #0] - 800360e: 687b ldr r3, [r7, #4] - 8003610: f203 439c addw r3, r3, #1180 @ 0x49c - 8003614: 461a mov r2, r3 - 8003616: 2101 movs r1, #1 - 8003618: f005 fbe4 bl 8008de4 - } + 800360c: f203 439c addw r3, r3, #1180 @ 0x49c + 8003610: 461a mov r2, r3 + 8003612: f005 fa45 bl 8008aa0 + 8003616: 687b ldr r3, [r7, #4] + 8003618: 681b ldr r3, [r3, #0] + 800361a: 695a ldr r2, [r3, #20] + 800361c: 687b ldr r3, [r7, #4] + 800361e: 681b ldr r3, [r3, #0] + 8003620: f402 5280 and.w r2, r2, #4096 @ 0x1000 + 8003624: 615a str r2, [r3, #20] + 8003626: 687b ldr r3, [r7, #4] + 8003628: 681b ldr r3, [r3, #0] + 800362a: 4618 mov r0, r3 + 800362c: f005 f974 bl 8008918 + 8003630: 4603 mov r3, r0 + 8003632: f403 5300 and.w r3, r3, #8192 @ 0x2000 + 8003636: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 + 800363a: d123 bne.n 8003684 + 800363c: 687b ldr r3, [r7, #4] + 800363e: 681b ldr r3, [r3, #0] + 8003640: 4618 mov r0, r3 + 8003642: f005 fa0a bl 8008a5a + 8003646: 687b ldr r3, [r7, #4] + 8003648: 681b ldr r3, [r3, #0] + 800364a: 4618 mov r0, r3 + 800364c: f004 fac1 bl 8007bd2 + 8003650: 4603 mov r3, r0 + 8003652: 461a mov r2, r3 + 8003654: 687b ldr r3, [r7, #4] + 8003656: 71da strb r2, [r3, #7] + 8003658: 687b ldr r3, [r7, #4] + 800365a: 681c ldr r4, [r3, #0] + 800365c: f000 fe8c bl 8004378 + 8003660: 4601 mov r1, r0 + 8003662: 687b ldr r3, [r7, #4] + 8003664: 79db ldrb r3, [r3, #7] + 8003666: 461a mov r2, r3 + 8003668: 4620 mov r0, r4 + 800366a: f003 ffcb bl 8007604 + 800366e: 6878 ldr r0, [r7, #4] + 8003670: f007 fa35 bl 800aade + 8003674: 687b ldr r3, [r7, #4] + 8003676: 681b ldr r3, [r3, #0] + 8003678: 695a ldr r2, [r3, #20] + 800367a: 687b ldr r3, [r7, #4] + 800367c: 681b ldr r3, [r3, #0] + 800367e: f402 5200 and.w r2, r2, #8192 @ 0x2000 + 8003682: 615a str r2, [r3, #20] + 8003684: 687b ldr r3, [r7, #4] + 8003686: 681b ldr r3, [r3, #0] + 8003688: 4618 mov r0, r3 + 800368a: f005 f945 bl 8008918 + 800368e: 4603 mov r3, r0 + 8003690: f003 0308 and.w r3, r3, #8 + 8003694: 2b08 cmp r3, #8 + 8003696: d10a bne.n 80036ae + 8003698: 6878 ldr r0, [r7, #4] + 800369a: f007 fa12 bl 800aac2 + 800369e: 687b ldr r3, [r7, #4] + 80036a0: 681b ldr r3, [r3, #0] + 80036a2: 695a ldr r2, [r3, #20] + 80036a4: 687b ldr r3, [r7, #4] + 80036a6: 681b ldr r3, [r3, #0] + 80036a8: f002 0208 and.w r2, r2, #8 + 80036ac: 615a str r2, [r3, #20] + 80036ae: 687b ldr r3, [r7, #4] + 80036b0: 681b ldr r3, [r3, #0] + 80036b2: 4618 mov r0, r3 + 80036b4: f005 f930 bl 8008918 + 80036b8: 4603 mov r3, r0 + 80036ba: f003 0380 and.w r3, r3, #128 @ 0x80 + 80036be: 2b80 cmp r3, #128 @ 0x80 + 80036c0: d123 bne.n 800370a + 80036c2: 6a3b ldr r3, [r7, #32] + 80036c4: 699b ldr r3, [r3, #24] + 80036c6: f023 0280 bic.w r2, r3, #128 @ 0x80 + 80036ca: 6a3b ldr r3, [r7, #32] + 80036cc: 619a str r2, [r3, #24] + 80036ce: 2301 movs r3, #1 + 80036d0: 627b str r3, [r7, #36] @ 0x24 + 80036d2: e014 b.n 80036fe + 80036d4: 6879 ldr r1, [r7, #4] + 80036d6: 6a7a ldr r2, [r7, #36] @ 0x24 + 80036d8: 4613 mov r3, r2 + 80036da: 00db lsls r3, r3, #3 + 80036dc: 4413 add r3, r2 + 80036de: 009b lsls r3, r3, #2 + 80036e0: 440b add r3, r1 + 80036e2: f203 2357 addw r3, r3, #599 @ 0x257 + 80036e6: 781b ldrb r3, [r3, #0] + 80036e8: 2b01 cmp r3, #1 + 80036ea: d105 bne.n 80036f8 + 80036ec: 6a7b ldr r3, [r7, #36] @ 0x24 + 80036ee: b2db uxtb r3, r3 + 80036f0: 4619 mov r1, r3 + 80036f2: 6878 ldr r0, [r7, #4] + 80036f4: f000 faf2 bl 8003cdc + 80036f8: 6a7b ldr r3, [r7, #36] @ 0x24 + 80036fa: 3301 adds r3, #1 + 80036fc: 627b str r3, [r7, #36] @ 0x24 + 80036fe: 687b ldr r3, [r7, #4] + 8003700: 791b ldrb r3, [r3, #4] + 8003702: 461a mov r2, r3 + 8003704: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003706: 4293 cmp r3, r2 + 8003708: d3e4 bcc.n 80036d4 + 800370a: 687b ldr r3, [r7, #4] + 800370c: 681b ldr r3, [r3, #0] + 800370e: 4618 mov r0, r3 + 8003710: f005 f902 bl 8008918 + 8003714: 4603 mov r3, r0 + 8003716: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 800371a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 + 800371e: d13c bne.n 800379a + 8003720: 2301 movs r3, #1 + 8003722: 627b str r3, [r7, #36] @ 0x24 + 8003724: e02b b.n 800377e + 8003726: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003728: 015a lsls r2, r3, #5 + 800372a: 69fb ldr r3, [r7, #28] + 800372c: 4413 add r3, r2 + 800372e: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8003732: 681b ldr r3, [r3, #0] + 8003734: 61bb str r3, [r7, #24] + 8003736: 6879 ldr r1, [r7, #4] + 8003738: 6a7a ldr r2, [r7, #36] @ 0x24 + 800373a: 4613 mov r3, r2 + 800373c: 00db lsls r3, r3, #3 + 800373e: 4413 add r3, r2 + 8003740: 009b lsls r3, r3, #2 + 8003742: 440b add r3, r1 + 8003744: 3318 adds r3, #24 + 8003746: 781b ldrb r3, [r3, #0] + 8003748: 2b01 cmp r3, #1 + 800374a: d115 bne.n 8003778 + 800374c: 69bb ldr r3, [r7, #24] + 800374e: 2b00 cmp r3, #0 + 8003750: da12 bge.n 8003778 + 8003752: 6879 ldr r1, [r7, #4] + 8003754: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003756: 4613 mov r3, r2 + 8003758: 00db lsls r3, r3, #3 + 800375a: 4413 add r3, r2 + 800375c: 009b lsls r3, r3, #2 + 800375e: 440b add r3, r1 + 8003760: 3317 adds r3, #23 + 8003762: 2201 movs r2, #1 + 8003764: 701a strb r2, [r3, #0] + 8003766: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003768: b2db uxtb r3, r3 + 800376a: f063 037f orn r3, r3, #127 @ 0x7f + 800376e: b2db uxtb r3, r3 + 8003770: 4619 mov r1, r3 + 8003772: 6878 ldr r0, [r7, #4] + 8003774: f000 fab2 bl 8003cdc + 8003778: 6a7b ldr r3, [r7, #36] @ 0x24 + 800377a: 3301 adds r3, #1 + 800377c: 627b str r3, [r7, #36] @ 0x24 + 800377e: 687b ldr r3, [r7, #4] + 8003780: 791b ldrb r3, [r3, #4] + 8003782: 461a mov r2, r3 + 8003784: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003786: 4293 cmp r3, r2 + 8003788: d3cd bcc.n 8003726 + 800378a: 687b ldr r3, [r7, #4] + 800378c: 681b ldr r3, [r3, #0] + 800378e: 695a ldr r2, [r3, #20] + 8003790: 687b ldr r3, [r7, #4] + 8003792: 681b ldr r3, [r3, #0] + 8003794: f402 1280 and.w r2, r2, #1048576 @ 0x100000 + 8003798: 615a str r2, [r3, #20] + 800379a: 687b ldr r3, [r7, #4] + 800379c: 681b ldr r3, [r3, #0] + 800379e: 4618 mov r0, r3 + 80037a0: f005 f8ba bl 8008918 + 80037a4: 4603 mov r3, r0 + 80037a6: f403 1300 and.w r3, r3, #2097152 @ 0x200000 + 80037aa: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000 + 80037ae: d156 bne.n 800385e + 80037b0: 2301 movs r3, #1 + 80037b2: 627b str r3, [r7, #36] @ 0x24 + 80037b4: e045 b.n 8003842 + 80037b6: 6a7b ldr r3, [r7, #36] @ 0x24 + 80037b8: 015a lsls r2, r3, #5 + 80037ba: 69fb ldr r3, [r7, #28] + 80037bc: 4413 add r3, r2 + 80037be: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80037c2: 681b ldr r3, [r3, #0] + 80037c4: 61bb str r3, [r7, #24] + 80037c6: 6879 ldr r1, [r7, #4] + 80037c8: 6a7a ldr r2, [r7, #36] @ 0x24 + 80037ca: 4613 mov r3, r2 + 80037cc: 00db lsls r3, r3, #3 + 80037ce: 4413 add r3, r2 + 80037d0: 009b lsls r3, r3, #2 + 80037d2: 440b add r3, r1 + 80037d4: f503 7316 add.w r3, r3, #600 @ 0x258 + 80037d8: 781b ldrb r3, [r3, #0] + 80037da: 2b01 cmp r3, #1 + 80037dc: d12e bne.n 800383c + 80037de: 69bb ldr r3, [r7, #24] + 80037e0: 2b00 cmp r3, #0 + 80037e2: da2b bge.n 800383c + 80037e4: 69bb ldr r3, [r7, #24] + 80037e6: 0c1a lsrs r2, r3, #16 + 80037e8: 687b ldr r3, [r7, #4] + 80037ea: f8d3 34d4 ldr.w r3, [r3, #1236] @ 0x4d4 + 80037ee: 4053 eors r3, r2 + 80037f0: f003 0301 and.w r3, r3, #1 + 80037f4: 2b00 cmp r3, #0 + 80037f6: d121 bne.n 800383c + 80037f8: 6879 ldr r1, [r7, #4] + 80037fa: 6a7a ldr r2, [r7, #36] @ 0x24 + 80037fc: 4613 mov r3, r2 + 80037fe: 00db lsls r3, r3, #3 + 8003800: 4413 add r3, r2 + 8003802: 009b lsls r3, r3, #2 + 8003804: 440b add r3, r1 + 8003806: f203 2357 addw r3, r3, #599 @ 0x257 + 800380a: 2201 movs r2, #1 + 800380c: 701a strb r2, [r3, #0] + 800380e: 6a3b ldr r3, [r7, #32] + 8003810: 699b ldr r3, [r3, #24] + 8003812: f043 0280 orr.w r2, r3, #128 @ 0x80 + 8003816: 6a3b ldr r3, [r7, #32] + 8003818: 619a str r2, [r3, #24] + 800381a: 6a3b ldr r3, [r7, #32] + 800381c: 695b ldr r3, [r3, #20] + 800381e: f003 0380 and.w r3, r3, #128 @ 0x80 + 8003822: 2b00 cmp r3, #0 + 8003824: d10a bne.n 800383c + 8003826: 69fb ldr r3, [r7, #28] + 8003828: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800382c: 685b ldr r3, [r3, #4] + 800382e: 69fa ldr r2, [r7, #28] + 8003830: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8003834: f443 7300 orr.w r3, r3, #512 @ 0x200 + 8003838: 6053 str r3, [r2, #4] + 800383a: e008 b.n 800384e + 800383c: 6a7b ldr r3, [r7, #36] @ 0x24 + 800383e: 3301 adds r3, #1 + 8003840: 627b str r3, [r7, #36] @ 0x24 + 8003842: 687b ldr r3, [r7, #4] + 8003844: 791b ldrb r3, [r3, #4] + 8003846: 461a mov r2, r3 + 8003848: 6a7b ldr r3, [r7, #36] @ 0x24 + 800384a: 4293 cmp r3, r2 + 800384c: d3b3 bcc.n 80037b6 + 800384e: 687b ldr r3, [r7, #4] + 8003850: 681b ldr r3, [r3, #0] + 8003852: 695a ldr r2, [r3, #20] + 8003854: 687b ldr r3, [r7, #4] + 8003856: 681b ldr r3, [r3, #0] + 8003858: f402 1200 and.w r2, r2, #2097152 @ 0x200000 + 800385c: 615a str r2, [r3, #20] + 800385e: 687b ldr r3, [r7, #4] + 8003860: 681b ldr r3, [r3, #0] + 8003862: 4618 mov r0, r3 + 8003864: f005 f858 bl 8008918 + 8003868: 4603 mov r3, r0 + 800386a: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000 + 800386e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8003872: d10a bne.n 800388a + 8003874: 6878 ldr r0, [r7, #4] + 8003876: f007 f9b3 bl 800abe0 + 800387a: 687b ldr r3, [r7, #4] + 800387c: 681b ldr r3, [r3, #0] + 800387e: 695a ldr r2, [r3, #20] + 8003880: 687b ldr r3, [r7, #4] + 8003882: 681b ldr r3, [r3, #0] + 8003884: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000 + 8003888: 615a str r2, [r3, #20] + 800388a: 687b ldr r3, [r7, #4] + 800388c: 681b ldr r3, [r3, #0] + 800388e: 4618 mov r0, r3 + 8003890: f005 f842 bl 8008918 + 8003894: 4603 mov r3, r0 + 8003896: f003 0304 and.w r3, r3, #4 + 800389a: 2b04 cmp r3, #4 + 800389c: d115 bne.n 80038ca + 800389e: 687b ldr r3, [r7, #4] + 80038a0: 681b ldr r3, [r3, #0] + 80038a2: 685b ldr r3, [r3, #4] + 80038a4: 61bb str r3, [r7, #24] + 80038a6: 69bb ldr r3, [r7, #24] + 80038a8: f003 0304 and.w r3, r3, #4 + 80038ac: 2b00 cmp r3, #0 + 80038ae: d002 beq.n 80038b6 + 80038b0: 6878 ldr r0, [r7, #4] + 80038b2: f007 f9a3 bl 800abfc + 80038b6: 687b ldr r3, [r7, #4] + 80038b8: 681b ldr r3, [r3, #0] + 80038ba: 6859 ldr r1, [r3, #4] + 80038bc: 687b ldr r3, [r7, #4] + 80038be: 681b ldr r3, [r3, #0] + 80038c0: 69ba ldr r2, [r7, #24] + 80038c2: 430a orrs r2, r1 + 80038c4: 605a str r2, [r3, #4] + 80038c6: e000 b.n 80038ca + 80038c8: bf00 nop + 80038ca: 3734 adds r7, #52 @ 0x34 + 80038cc: 46bd mov sp, r7 + 80038ce: bd90 pop {r4, r7, pc} -#if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) - hpcd->DataInStageCallback(hpcd, (uint8_t)epnum); -#else - HAL_PCD_DataInStageCallback(hpcd, (uint8_t)epnum); - 800361c: 6a7b ldr r3, [r7, #36] @ 0x24 - 800361e: b2db uxtb r3, r3 - 8003620: 4619 mov r1, r3 - 8003622: 6878 ldr r0, [r7, #4] - 8003624: f007 fbd5 bl 800add2 -#endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ - } - if ((epint & USB_OTG_DIEPINT_TOC) == USB_OTG_DIEPINT_TOC) - 8003628: 693b ldr r3, [r7, #16] - 800362a: f003 0308 and.w r3, r3, #8 - 800362e: 2b00 cmp r3, #0 - 8003630: d008 beq.n 8003644 - { - CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_TOC); - 8003632: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003634: 015a lsls r2, r3, #5 - 8003636: 69fb ldr r3, [r7, #28] - 8003638: 4413 add r3, r2 - 800363a: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800363e: 461a mov r2, r3 - 8003640: 2308 movs r3, #8 - 8003642: 6093 str r3, [r2, #8] - } - if ((epint & USB_OTG_DIEPINT_ITTXFE) == USB_OTG_DIEPINT_ITTXFE) - 8003644: 693b ldr r3, [r7, #16] - 8003646: f003 0310 and.w r3, r3, #16 - 800364a: 2b00 cmp r3, #0 - 800364c: d008 beq.n 8003660 - { - CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_ITTXFE); - 800364e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003650: 015a lsls r2, r3, #5 - 8003652: 69fb ldr r3, [r7, #28] - 8003654: 4413 add r3, r2 - 8003656: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800365a: 461a mov r2, r3 - 800365c: 2310 movs r3, #16 - 800365e: 6093 str r3, [r2, #8] - } - if ((epint & USB_OTG_DIEPINT_INEPNE) == USB_OTG_DIEPINT_INEPNE) - 8003660: 693b ldr r3, [r7, #16] - 8003662: f003 0340 and.w r3, r3, #64 @ 0x40 - 8003666: 2b00 cmp r3, #0 - 8003668: d008 beq.n 800367c - { - CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_INEPNE); - 800366a: 6a7b ldr r3, [r7, #36] @ 0x24 - 800366c: 015a lsls r2, r3, #5 - 800366e: 69fb ldr r3, [r7, #28] - 8003670: 4413 add r3, r2 - 8003672: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8003676: 461a mov r2, r3 - 8003678: 2340 movs r3, #64 @ 0x40 - 800367a: 6093 str r3, [r2, #8] - } - if ((epint & USB_OTG_DIEPINT_EPDISD) == USB_OTG_DIEPINT_EPDISD) - 800367c: 693b ldr r3, [r7, #16] - 800367e: f003 0302 and.w r3, r3, #2 - 8003682: 2b00 cmp r3, #0 - 8003684: d023 beq.n 80036ce - { - (void)USB_FlushTxFifo(USBx, epnum); - 8003686: 6a79 ldr r1, [r7, #36] @ 0x24 - 8003688: 6a38 ldr r0, [r7, #32] - 800368a: f004 fbcb bl 8007e24 +080038d0 : + 80038d0: b580 push {r7, lr} + 80038d2: b082 sub sp, #8 + 80038d4: af00 add r7, sp, #0 + 80038d6: 6078 str r0, [r7, #4] + 80038d8: 460b mov r3, r1 + 80038da: 70fb strb r3, [r7, #3] + 80038dc: 687b ldr r3, [r7, #4] + 80038de: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 80038e2: 2b01 cmp r3, #1 + 80038e4: d101 bne.n 80038ea + 80038e6: 2302 movs r3, #2 + 80038e8: e012 b.n 8003910 + 80038ea: 687b ldr r3, [r7, #4] + 80038ec: 2201 movs r2, #1 + 80038ee: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 80038f2: 687b ldr r3, [r7, #4] + 80038f4: 78fa ldrb r2, [r7, #3] + 80038f6: 745a strb r2, [r3, #17] + 80038f8: 687b ldr r3, [r7, #4] + 80038fa: 681b ldr r3, [r3, #0] + 80038fc: 78fa ldrb r2, [r7, #3] + 80038fe: 4611 mov r1, r2 + 8003900: 4618 mov r0, r3 + 8003902: f004 ffa1 bl 8008848 + 8003906: 687b ldr r3, [r7, #4] + 8003908: 2200 movs r2, #0 + 800390a: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 800390e: 2300 movs r3, #0 + 8003910: 4618 mov r0, r3 + 8003912: 3708 adds r7, #8 + 8003914: 46bd mov sp, r7 + 8003916: bd80 pop {r7, pc} - ep = &hpcd->IN_ep[epnum]; - 800368e: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003690: 4613 mov r3, r2 - 8003692: 00db lsls r3, r3, #3 - 8003694: 4413 add r3, r2 - 8003696: 009b lsls r3, r3, #2 - 8003698: 3310 adds r3, #16 - 800369a: 687a ldr r2, [r7, #4] - 800369c: 4413 add r3, r2 - 800369e: 3304 adds r3, #4 - 80036a0: 617b str r3, [r7, #20] +08003918 : + 8003918: b580 push {r7, lr} + 800391a: b084 sub sp, #16 + 800391c: af00 add r7, sp, #0 + 800391e: 6078 str r0, [r7, #4] + 8003920: 4608 mov r0, r1 + 8003922: 4611 mov r1, r2 + 8003924: 461a mov r2, r3 + 8003926: 4603 mov r3, r0 + 8003928: 70fb strb r3, [r7, #3] + 800392a: 460b mov r3, r1 + 800392c: 803b strh r3, [r7, #0] + 800392e: 4613 mov r3, r2 + 8003930: 70bb strb r3, [r7, #2] + 8003932: 2300 movs r3, #0 + 8003934: 72fb strb r3, [r7, #11] + 8003936: f997 3003 ldrsb.w r3, [r7, #3] + 800393a: 2b00 cmp r3, #0 + 800393c: da0f bge.n 800395e + 800393e: 78fb ldrb r3, [r7, #3] + 8003940: f003 020f and.w r2, r3, #15 + 8003944: 4613 mov r3, r2 + 8003946: 00db lsls r3, r3, #3 + 8003948: 4413 add r3, r2 + 800394a: 009b lsls r3, r3, #2 + 800394c: 3310 adds r3, #16 + 800394e: 687a ldr r2, [r7, #4] + 8003950: 4413 add r3, r2 + 8003952: 3304 adds r3, #4 + 8003954: 60fb str r3, [r7, #12] + 8003956: 68fb ldr r3, [r7, #12] + 8003958: 2201 movs r2, #1 + 800395a: 705a strb r2, [r3, #1] + 800395c: e00f b.n 800397e + 800395e: 78fb ldrb r3, [r7, #3] + 8003960: f003 020f and.w r2, r3, #15 + 8003964: 4613 mov r3, r2 + 8003966: 00db lsls r3, r3, #3 + 8003968: 4413 add r3, r2 + 800396a: 009b lsls r3, r3, #2 + 800396c: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003970: 687a ldr r2, [r7, #4] + 8003972: 4413 add r3, r2 + 8003974: 3304 adds r3, #4 + 8003976: 60fb str r3, [r7, #12] + 8003978: 68fb ldr r3, [r7, #12] + 800397a: 2200 movs r2, #0 + 800397c: 705a strb r2, [r3, #1] + 800397e: 78fb ldrb r3, [r7, #3] + 8003980: f003 030f and.w r3, r3, #15 + 8003984: b2da uxtb r2, r3 + 8003986: 68fb ldr r3, [r7, #12] + 8003988: 701a strb r2, [r3, #0] + 800398a: 883b ldrh r3, [r7, #0] + 800398c: f3c3 020a ubfx r2, r3, #0, #11 + 8003990: 68fb ldr r3, [r7, #12] + 8003992: 609a str r2, [r3, #8] + 8003994: 68fb ldr r3, [r7, #12] + 8003996: 78ba ldrb r2, [r7, #2] + 8003998: 711a strb r2, [r3, #4] + 800399a: 68fb ldr r3, [r7, #12] + 800399c: 785b ldrb r3, [r3, #1] + 800399e: 2b00 cmp r3, #0 + 80039a0: d004 beq.n 80039ac + 80039a2: 68fb ldr r3, [r7, #12] + 80039a4: 781b ldrb r3, [r3, #0] + 80039a6: 461a mov r2, r3 + 80039a8: 68fb ldr r3, [r7, #12] + 80039aa: 835a strh r2, [r3, #26] + 80039ac: 78bb ldrb r3, [r7, #2] + 80039ae: 2b02 cmp r3, #2 + 80039b0: d102 bne.n 80039b8 + 80039b2: 68fb ldr r3, [r7, #12] + 80039b4: 2200 movs r2, #0 + 80039b6: 715a strb r2, [r3, #5] + 80039b8: 687b ldr r3, [r7, #4] + 80039ba: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 80039be: 2b01 cmp r3, #1 + 80039c0: d101 bne.n 80039c6 + 80039c2: 2302 movs r3, #2 + 80039c4: e00e b.n 80039e4 + 80039c6: 687b ldr r3, [r7, #4] + 80039c8: 2201 movs r2, #1 + 80039ca: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 80039ce: 687b ldr r3, [r7, #4] + 80039d0: 681b ldr r3, [r3, #0] + 80039d2: 68f9 ldr r1, [r7, #12] + 80039d4: 4618 mov r0, r3 + 80039d6: f004 f921 bl 8007c1c + 80039da: 687b ldr r3, [r7, #4] + 80039dc: 2200 movs r2, #0 + 80039de: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 80039e2: 7afb ldrb r3, [r7, #11] + 80039e4: 4618 mov r0, r3 + 80039e6: 3710 adds r7, #16 + 80039e8: 46bd mov sp, r7 + 80039ea: bd80 pop {r7, pc} - if (ep->is_iso_incomplete == 1U) - 80036a2: 697b ldr r3, [r7, #20] - 80036a4: 78db ldrb r3, [r3, #3] - 80036a6: 2b01 cmp r3, #1 - 80036a8: d108 bne.n 80036bc - { - ep->is_iso_incomplete = 0U; - 80036aa: 697b ldr r3, [r7, #20] - 80036ac: 2200 movs r2, #0 - 80036ae: 70da strb r2, [r3, #3] +080039ec : + 80039ec: b580 push {r7, lr} + 80039ee: b084 sub sp, #16 + 80039f0: af00 add r7, sp, #0 + 80039f2: 6078 str r0, [r7, #4] + 80039f4: 460b mov r3, r1 + 80039f6: 70fb strb r3, [r7, #3] + 80039f8: f997 3003 ldrsb.w r3, [r7, #3] + 80039fc: 2b00 cmp r3, #0 + 80039fe: da0f bge.n 8003a20 + 8003a00: 78fb ldrb r3, [r7, #3] + 8003a02: f003 020f and.w r2, r3, #15 + 8003a06: 4613 mov r3, r2 + 8003a08: 00db lsls r3, r3, #3 + 8003a0a: 4413 add r3, r2 + 8003a0c: 009b lsls r3, r3, #2 + 8003a0e: 3310 adds r3, #16 + 8003a10: 687a ldr r2, [r7, #4] + 8003a12: 4413 add r3, r2 + 8003a14: 3304 adds r3, #4 + 8003a16: 60fb str r3, [r7, #12] + 8003a18: 68fb ldr r3, [r7, #12] + 8003a1a: 2201 movs r2, #1 + 8003a1c: 705a strb r2, [r3, #1] + 8003a1e: e00f b.n 8003a40 + 8003a20: 78fb ldrb r3, [r7, #3] + 8003a22: f003 020f and.w r2, r3, #15 + 8003a26: 4613 mov r3, r2 + 8003a28: 00db lsls r3, r3, #3 + 8003a2a: 4413 add r3, r2 + 8003a2c: 009b lsls r3, r3, #2 + 8003a2e: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003a32: 687a ldr r2, [r7, #4] + 8003a34: 4413 add r3, r2 + 8003a36: 3304 adds r3, #4 + 8003a38: 60fb str r3, [r7, #12] + 8003a3a: 68fb ldr r3, [r7, #12] + 8003a3c: 2200 movs r2, #0 + 8003a3e: 705a strb r2, [r3, #1] + 8003a40: 78fb ldrb r3, [r7, #3] + 8003a42: f003 030f and.w r3, r3, #15 + 8003a46: b2da uxtb r2, r3 + 8003a48: 68fb ldr r3, [r7, #12] + 8003a4a: 701a strb r2, [r3, #0] + 8003a4c: 687b ldr r3, [r7, #4] + 8003a4e: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8003a52: 2b01 cmp r3, #1 + 8003a54: d101 bne.n 8003a5a + 8003a56: 2302 movs r3, #2 + 8003a58: e00e b.n 8003a78 + 8003a5a: 687b ldr r3, [r7, #4] + 8003a5c: 2201 movs r2, #1 + 8003a5e: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003a62: 687b ldr r3, [r7, #4] + 8003a64: 681b ldr r3, [r3, #0] + 8003a66: 68f9 ldr r1, [r7, #12] + 8003a68: 4618 mov r0, r3 + 8003a6a: f004 f95f bl 8007d2c + 8003a6e: 687b ldr r3, [r7, #4] + 8003a70: 2200 movs r2, #0 + 8003a72: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003a76: 2300 movs r3, #0 + 8003a78: 4618 mov r0, r3 + 8003a7a: 3710 adds r7, #16 + 8003a7c: 46bd mov sp, r7 + 8003a7e: bd80 pop {r7, pc} -#if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) - hpcd->ISOINIncompleteCallback(hpcd, (uint8_t)epnum); -#else - HAL_PCD_ISOINIncompleteCallback(hpcd, (uint8_t)epnum); - 80036b0: 6a7b ldr r3, [r7, #36] @ 0x24 - 80036b2: b2db uxtb r3, r3 - 80036b4: 4619 mov r1, r3 - 80036b6: 6878 ldr r0, [r7, #4] - 80036b8: f007 fc22 bl 800af00 -#endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ - } +08003a80 : + 8003a80: b580 push {r7, lr} + 8003a82: b086 sub sp, #24 + 8003a84: af00 add r7, sp, #0 + 8003a86: 60f8 str r0, [r7, #12] + 8003a88: 607a str r2, [r7, #4] + 8003a8a: 603b str r3, [r7, #0] + 8003a8c: 460b mov r3, r1 + 8003a8e: 72fb strb r3, [r7, #11] + 8003a90: 7afb ldrb r3, [r7, #11] + 8003a92: f003 020f and.w r2, r3, #15 + 8003a96: 4613 mov r3, r2 + 8003a98: 00db lsls r3, r3, #3 + 8003a9a: 4413 add r3, r2 + 8003a9c: 009b lsls r3, r3, #2 + 8003a9e: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003aa2: 68fa ldr r2, [r7, #12] + 8003aa4: 4413 add r3, r2 + 8003aa6: 3304 adds r3, #4 + 8003aa8: 617b str r3, [r7, #20] + 8003aaa: 697b ldr r3, [r7, #20] + 8003aac: 687a ldr r2, [r7, #4] + 8003aae: 60da str r2, [r3, #12] + 8003ab0: 697b ldr r3, [r7, #20] + 8003ab2: 683a ldr r2, [r7, #0] + 8003ab4: 611a str r2, [r3, #16] + 8003ab6: 697b ldr r3, [r7, #20] + 8003ab8: 2200 movs r2, #0 + 8003aba: 615a str r2, [r3, #20] + 8003abc: 697b ldr r3, [r7, #20] + 8003abe: 2200 movs r2, #0 + 8003ac0: 705a strb r2, [r3, #1] + 8003ac2: 7afb ldrb r3, [r7, #11] + 8003ac4: f003 030f and.w r3, r3, #15 + 8003ac8: b2da uxtb r2, r3 + 8003aca: 697b ldr r3, [r7, #20] + 8003acc: 701a strb r2, [r3, #0] + 8003ace: 68fb ldr r3, [r7, #12] + 8003ad0: 799b ldrb r3, [r3, #6] + 8003ad2: 2b01 cmp r3, #1 + 8003ad4: d102 bne.n 8003adc + 8003ad6: 687a ldr r2, [r7, #4] + 8003ad8: 697b ldr r3, [r7, #20] + 8003ada: 61da str r2, [r3, #28] + 8003adc: 68fb ldr r3, [r7, #12] + 8003ade: 6818 ldr r0, [r3, #0] + 8003ae0: 68fb ldr r3, [r7, #12] + 8003ae2: 799b ldrb r3, [r3, #6] + 8003ae4: 461a mov r2, r3 + 8003ae6: 6979 ldr r1, [r7, #20] + 8003ae8: f004 f9fc bl 8007ee4 + 8003aec: 2300 movs r3, #0 + 8003aee: 4618 mov r0, r3 + 8003af0: 3718 adds r7, #24 + 8003af2: 46bd mov sp, r7 + 8003af4: bd80 pop {r7, pc} - CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_EPDISD); - 80036bc: 6a7b ldr r3, [r7, #36] @ 0x24 - 80036be: 015a lsls r2, r3, #5 - 80036c0: 69fb ldr r3, [r7, #28] - 80036c2: 4413 add r3, r2 - 80036c4: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80036c8: 461a mov r2, r3 - 80036ca: 2302 movs r3, #2 - 80036cc: 6093 str r3, [r2, #8] - } - if ((epint & USB_OTG_DIEPINT_TXFE) == USB_OTG_DIEPINT_TXFE) - 80036ce: 693b ldr r3, [r7, #16] - 80036d0: f003 0380 and.w r3, r3, #128 @ 0x80 - 80036d4: 2b00 cmp r3, #0 - 80036d6: d003 beq.n 80036e0 - { - (void)PCD_WriteEmptyTxFifo(hpcd, epnum); - 80036d8: 6a79 ldr r1, [r7, #36] @ 0x24 - 80036da: 6878 ldr r0, [r7, #4] - 80036dc: f000 fcd2 bl 8004084 - } - } - epnum++; - 80036e0: 6a7b ldr r3, [r7, #36] @ 0x24 - 80036e2: 3301 adds r3, #1 - 80036e4: 627b str r3, [r7, #36] @ 0x24 - ep_intr >>= 1U; - 80036e6: 6abb ldr r3, [r7, #40] @ 0x28 - 80036e8: 085b lsrs r3, r3, #1 - 80036ea: 62bb str r3, [r7, #40] @ 0x28 - while (ep_intr != 0U) - 80036ec: 6abb ldr r3, [r7, #40] @ 0x28 - 80036ee: 2b00 cmp r3, #0 - 80036f0: f47f af2e bne.w 8003550 - } - } +08003af6 : + 8003af6: b580 push {r7, lr} + 8003af8: b086 sub sp, #24 + 8003afa: af00 add r7, sp, #0 + 8003afc: 60f8 str r0, [r7, #12] + 8003afe: 607a str r2, [r7, #4] + 8003b00: 603b str r3, [r7, #0] + 8003b02: 460b mov r3, r1 + 8003b04: 72fb strb r3, [r7, #11] + 8003b06: 7afb ldrb r3, [r7, #11] + 8003b08: f003 020f and.w r2, r3, #15 + 8003b0c: 4613 mov r3, r2 + 8003b0e: 00db lsls r3, r3, #3 + 8003b10: 4413 add r3, r2 + 8003b12: 009b lsls r3, r3, #2 + 8003b14: 3310 adds r3, #16 + 8003b16: 68fa ldr r2, [r7, #12] + 8003b18: 4413 add r3, r2 + 8003b1a: 3304 adds r3, #4 + 8003b1c: 617b str r3, [r7, #20] + 8003b1e: 697b ldr r3, [r7, #20] + 8003b20: 687a ldr r2, [r7, #4] + 8003b22: 60da str r2, [r3, #12] + 8003b24: 697b ldr r3, [r7, #20] + 8003b26: 683a ldr r2, [r7, #0] + 8003b28: 611a str r2, [r3, #16] + 8003b2a: 697b ldr r3, [r7, #20] + 8003b2c: 2200 movs r2, #0 + 8003b2e: 615a str r2, [r3, #20] + 8003b30: 697b ldr r3, [r7, #20] + 8003b32: 2201 movs r2, #1 + 8003b34: 705a strb r2, [r3, #1] + 8003b36: 7afb ldrb r3, [r7, #11] + 8003b38: f003 030f and.w r3, r3, #15 + 8003b3c: b2da uxtb r2, r3 + 8003b3e: 697b ldr r3, [r7, #20] + 8003b40: 701a strb r2, [r3, #0] + 8003b42: 68fb ldr r3, [r7, #12] + 8003b44: 799b ldrb r3, [r3, #6] + 8003b46: 2b01 cmp r3, #1 + 8003b48: d102 bne.n 8003b50 + 8003b4a: 687a ldr r2, [r7, #4] + 8003b4c: 697b ldr r3, [r7, #20] + 8003b4e: 61da str r2, [r3, #28] + 8003b50: 68fb ldr r3, [r7, #12] + 8003b52: 6818 ldr r0, [r3, #0] + 8003b54: 68fb ldr r3, [r7, #12] + 8003b56: 799b ldrb r3, [r3, #6] + 8003b58: 461a mov r2, r3 + 8003b5a: 6979 ldr r1, [r7, #20] + 8003b5c: f004 f9c2 bl 8007ee4 + 8003b60: 2300 movs r3, #0 + 8003b62: 4618 mov r0, r3 + 8003b64: 3718 adds r7, #24 + 8003b66: 46bd mov sp, r7 + 8003b68: bd80 pop {r7, pc} - /* Handle Resume Interrupt */ - if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_WKUINT)) - 80036f4: 687b ldr r3, [r7, #4] - 80036f6: 681b ldr r3, [r3, #0] - 80036f8: 4618 mov r0, r3 - 80036fa: f005 faaf bl 8008c5c - 80036fe: 4603 mov r3, r0 - 8003700: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8003704: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8003708: d122 bne.n 8003750 - { - /* Clear the Remote Wake-up Signaling */ - USBx_DEVICE->DCTL &= ~USB_OTG_DCTL_RWUSIG; - 800370a: 69fb ldr r3, [r7, #28] - 800370c: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003710: 685b ldr r3, [r3, #4] - 8003712: 69fa ldr r2, [r7, #28] - 8003714: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003718: f023 0301 bic.w r3, r3, #1 - 800371c: 6053 str r3, [r2, #4] +08003b6a : + 8003b6a: b580 push {r7, lr} + 8003b6c: b084 sub sp, #16 + 8003b6e: af00 add r7, sp, #0 + 8003b70: 6078 str r0, [r7, #4] + 8003b72: 460b mov r3, r1 + 8003b74: 70fb strb r3, [r7, #3] + 8003b76: 78fb ldrb r3, [r7, #3] + 8003b78: f003 030f and.w r3, r3, #15 + 8003b7c: 687a ldr r2, [r7, #4] + 8003b7e: 7912 ldrb r2, [r2, #4] + 8003b80: 4293 cmp r3, r2 + 8003b82: d901 bls.n 8003b88 + 8003b84: 2301 movs r3, #1 + 8003b86: e04f b.n 8003c28 + 8003b88: f997 3003 ldrsb.w r3, [r7, #3] + 8003b8c: 2b00 cmp r3, #0 + 8003b8e: da0f bge.n 8003bb0 + 8003b90: 78fb ldrb r3, [r7, #3] + 8003b92: f003 020f and.w r2, r3, #15 + 8003b96: 4613 mov r3, r2 + 8003b98: 00db lsls r3, r3, #3 + 8003b9a: 4413 add r3, r2 + 8003b9c: 009b lsls r3, r3, #2 + 8003b9e: 3310 adds r3, #16 + 8003ba0: 687a ldr r2, [r7, #4] + 8003ba2: 4413 add r3, r2 + 8003ba4: 3304 adds r3, #4 + 8003ba6: 60fb str r3, [r7, #12] + 8003ba8: 68fb ldr r3, [r7, #12] + 8003baa: 2201 movs r2, #1 + 8003bac: 705a strb r2, [r3, #1] + 8003bae: e00d b.n 8003bcc + 8003bb0: 78fa ldrb r2, [r7, #3] + 8003bb2: 4613 mov r3, r2 + 8003bb4: 00db lsls r3, r3, #3 + 8003bb6: 4413 add r3, r2 + 8003bb8: 009b lsls r3, r3, #2 + 8003bba: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003bbe: 687a ldr r2, [r7, #4] + 8003bc0: 4413 add r3, r2 + 8003bc2: 3304 adds r3, #4 + 8003bc4: 60fb str r3, [r7, #12] + 8003bc6: 68fb ldr r3, [r7, #12] + 8003bc8: 2200 movs r2, #0 + 8003bca: 705a strb r2, [r3, #1] + 8003bcc: 68fb ldr r3, [r7, #12] + 8003bce: 2201 movs r2, #1 + 8003bd0: 709a strb r2, [r3, #2] + 8003bd2: 78fb ldrb r3, [r7, #3] + 8003bd4: f003 030f and.w r3, r3, #15 + 8003bd8: b2da uxtb r2, r3 + 8003bda: 68fb ldr r3, [r7, #12] + 8003bdc: 701a strb r2, [r3, #0] + 8003bde: 687b ldr r3, [r7, #4] + 8003be0: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8003be4: 2b01 cmp r3, #1 + 8003be6: d101 bne.n 8003bec + 8003be8: 2302 movs r3, #2 + 8003bea: e01d b.n 8003c28 + 8003bec: 687b ldr r3, [r7, #4] + 8003bee: 2201 movs r2, #1 + 8003bf0: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003bf4: 687b ldr r3, [r7, #4] + 8003bf6: 681b ldr r3, [r3, #0] + 8003bf8: 68f9 ldr r1, [r7, #12] + 8003bfa: 4618 mov r0, r3 + 8003bfc: f004 fd50 bl 80086a0 + 8003c00: 78fb ldrb r3, [r7, #3] + 8003c02: f003 030f and.w r3, r3, #15 + 8003c06: 2b00 cmp r3, #0 + 8003c08: d109 bne.n 8003c1e + 8003c0a: 687b ldr r3, [r7, #4] + 8003c0c: 6818 ldr r0, [r3, #0] + 8003c0e: 687b ldr r3, [r7, #4] + 8003c10: 7999 ldrb r1, [r3, #6] + 8003c12: 687b ldr r3, [r7, #4] + 8003c14: f203 439c addw r3, r3, #1180 @ 0x49c + 8003c18: 461a mov r2, r3 + 8003c1a: f004 ff41 bl 8008aa0 + 8003c1e: 687b ldr r3, [r7, #4] + 8003c20: 2200 movs r2, #0 + 8003c22: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003c26: 2300 movs r3, #0 + 8003c28: 4618 mov r0, r3 + 8003c2a: 3710 adds r7, #16 + 8003c2c: 46bd mov sp, r7 + 8003c2e: bd80 pop {r7, pc} - if (hpcd->LPM_State == LPM_L1) - 800371e: 687b ldr r3, [r7, #4] - 8003720: f893 34cc ldrb.w r3, [r3, #1228] @ 0x4cc - 8003724: 2b01 cmp r3, #1 - 8003726: d108 bne.n 800373a - { - hpcd->LPM_State = LPM_L0; - 8003728: 687b ldr r3, [r7, #4] - 800372a: 2200 movs r2, #0 - 800372c: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc +08003c30 : + 8003c30: b580 push {r7, lr} + 8003c32: b084 sub sp, #16 + 8003c34: af00 add r7, sp, #0 + 8003c36: 6078 str r0, [r7, #4] + 8003c38: 460b mov r3, r1 + 8003c3a: 70fb strb r3, [r7, #3] + 8003c3c: 78fb ldrb r3, [r7, #3] + 8003c3e: f003 030f and.w r3, r3, #15 + 8003c42: 687a ldr r2, [r7, #4] + 8003c44: 7912 ldrb r2, [r2, #4] + 8003c46: 4293 cmp r3, r2 + 8003c48: d901 bls.n 8003c4e + 8003c4a: 2301 movs r3, #1 + 8003c4c: e042 b.n 8003cd4 + 8003c4e: f997 3003 ldrsb.w r3, [r7, #3] + 8003c52: 2b00 cmp r3, #0 + 8003c54: da0f bge.n 8003c76 + 8003c56: 78fb ldrb r3, [r7, #3] + 8003c58: f003 020f and.w r2, r3, #15 + 8003c5c: 4613 mov r3, r2 + 8003c5e: 00db lsls r3, r3, #3 + 8003c60: 4413 add r3, r2 + 8003c62: 009b lsls r3, r3, #2 + 8003c64: 3310 adds r3, #16 + 8003c66: 687a ldr r2, [r7, #4] + 8003c68: 4413 add r3, r2 + 8003c6a: 3304 adds r3, #4 + 8003c6c: 60fb str r3, [r7, #12] + 8003c6e: 68fb ldr r3, [r7, #12] + 8003c70: 2201 movs r2, #1 + 8003c72: 705a strb r2, [r3, #1] + 8003c74: e00f b.n 8003c96 + 8003c76: 78fb ldrb r3, [r7, #3] + 8003c78: f003 020f and.w r2, r3, #15 + 8003c7c: 4613 mov r3, r2 + 8003c7e: 00db lsls r3, r3, #3 + 8003c80: 4413 add r3, r2 + 8003c82: 009b lsls r3, r3, #2 + 8003c84: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003c88: 687a ldr r2, [r7, #4] + 8003c8a: 4413 add r3, r2 + 8003c8c: 3304 adds r3, #4 + 8003c8e: 60fb str r3, [r7, #12] + 8003c90: 68fb ldr r3, [r7, #12] + 8003c92: 2200 movs r2, #0 + 8003c94: 705a strb r2, [r3, #1] + 8003c96: 68fb ldr r3, [r7, #12] + 8003c98: 2200 movs r2, #0 + 8003c9a: 709a strb r2, [r3, #2] + 8003c9c: 78fb ldrb r3, [r7, #3] + 8003c9e: f003 030f and.w r3, r3, #15 + 8003ca2: b2da uxtb r2, r3 + 8003ca4: 68fb ldr r3, [r7, #12] + 8003ca6: 701a strb r2, [r3, #0] + 8003ca8: 687b ldr r3, [r7, #4] + 8003caa: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8003cae: 2b01 cmp r3, #1 + 8003cb0: d101 bne.n 8003cb6 + 8003cb2: 2302 movs r3, #2 + 8003cb4: e00e b.n 8003cd4 + 8003cb6: 687b ldr r3, [r7, #4] + 8003cb8: 2201 movs r2, #1 + 8003cba: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003cbe: 687b ldr r3, [r7, #4] + 8003cc0: 681b ldr r3, [r3, #0] + 8003cc2: 68f9 ldr r1, [r7, #12] + 8003cc4: 4618 mov r0, r3 + 8003cc6: f004 fd59 bl 800877c + 8003cca: 687b ldr r3, [r7, #4] + 8003ccc: 2200 movs r2, #0 + 8003cce: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003cd2: 2300 movs r3, #0 + 8003cd4: 4618 mov r0, r3 + 8003cd6: 3710 adds r7, #16 + 8003cd8: 46bd mov sp, r7 + 8003cda: bd80 pop {r7, pc} -#if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) - hpcd->LPMCallback(hpcd, PCD_LPM_L0_ACTIVE); -#else - HAL_PCDEx_LPM_Callback(hpcd, PCD_LPM_L0_ACTIVE); - 8003730: 2100 movs r1, #0 - 8003732: 6878 ldr r0, [r7, #4] - 8003734: f007 fd8a bl 800b24c - 8003738: e002 b.n 8003740 - else - { -#if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) - hpcd->ResumeCallback(hpcd); -#else - HAL_PCD_ResumeCallback(hpcd); - 800373a: 6878 ldr r0, [r7, #4] - 800373c: f007 fbc0 bl 800aec0 -#endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ - } - - __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_WKUINT); - 8003740: 687b ldr r3, [r7, #4] - 8003742: 681b ldr r3, [r3, #0] - 8003744: 695a ldr r2, [r3, #20] - 8003746: 687b ldr r3, [r7, #4] - 8003748: 681b ldr r3, [r3, #0] - 800374a: f002 4200 and.w r2, r2, #2147483648 @ 0x80000000 - 800374e: 615a str r2, [r3, #20] - } - - /* Handle Suspend Interrupt */ - if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_USBSUSP)) - 8003750: 687b ldr r3, [r7, #4] - 8003752: 681b ldr r3, [r3, #0] - 8003754: 4618 mov r0, r3 - 8003756: f005 fa81 bl 8008c5c - 800375a: 4603 mov r3, r0 - 800375c: f403 6300 and.w r3, r3, #2048 @ 0x800 - 8003760: f5b3 6f00 cmp.w r3, #2048 @ 0x800 - 8003764: d112 bne.n 800378c - { - if ((USBx_DEVICE->DSTS & USB_OTG_DSTS_SUSPSTS) == USB_OTG_DSTS_SUSPSTS) - 8003766: 69fb ldr r3, [r7, #28] - 8003768: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800376c: 689b ldr r3, [r3, #8] - 800376e: f003 0301 and.w r3, r3, #1 - 8003772: 2b01 cmp r3, #1 - 8003774: d102 bne.n 800377c - { -#if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) - hpcd->SuspendCallback(hpcd); -#else - HAL_PCD_SuspendCallback(hpcd); - 8003776: 6878 ldr r0, [r7, #4] - 8003778: f007 fb7c bl 800ae74 -#endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ - } - __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_USBSUSP); - 800377c: 687b ldr r3, [r7, #4] - 800377e: 681b ldr r3, [r3, #0] - 8003780: 695a ldr r2, [r3, #20] - 8003782: 687b ldr r3, [r7, #4] - 8003784: 681b ldr r3, [r3, #0] - 8003786: f402 6200 and.w r2, r2, #2048 @ 0x800 - 800378a: 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)) - 800378c: 687b ldr r3, [r7, #4] - 800378e: 681b ldr r3, [r3, #0] - 8003790: 4618 mov r0, r3 - 8003792: f005 fa63 bl 8008c5c - 8003796: 4603 mov r3, r0 - 8003798: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 - 800379c: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 - 80037a0: d121 bne.n 80037e6 - { - __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_LPMINT); - 80037a2: 687b ldr r3, [r7, #4] - 80037a4: 681b ldr r3, [r3, #0] - 80037a6: 695a ldr r2, [r3, #20] - 80037a8: 687b ldr r3, [r7, #4] - 80037aa: 681b ldr r3, [r3, #0] - 80037ac: f002 6200 and.w r2, r2, #134217728 @ 0x8000000 - 80037b0: 615a str r2, [r3, #20] - - if (hpcd->LPM_State == LPM_L0) - 80037b2: 687b ldr r3, [r7, #4] - 80037b4: f893 34cc ldrb.w r3, [r3, #1228] @ 0x4cc - 80037b8: 2b00 cmp r3, #0 - 80037ba: d111 bne.n 80037e0 - { - hpcd->LPM_State = LPM_L1; - 80037bc: 687b ldr r3, [r7, #4] - 80037be: 2201 movs r2, #1 - 80037c0: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc - hpcd->BESL = (hpcd->Instance->GLPMCFG & USB_OTG_GLPMCFG_BESL) >> 2U; - 80037c4: 687b ldr r3, [r7, #4] - 80037c6: 681b ldr r3, [r3, #0] - 80037c8: 6d5b ldr r3, [r3, #84] @ 0x54 - 80037ca: 089b lsrs r3, r3, #2 - 80037cc: f003 020f and.w r2, r3, #15 - 80037d0: 687b ldr r3, [r7, #4] - 80037d2: 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); - 80037d6: 2101 movs r1, #1 - 80037d8: 6878 ldr r0, [r7, #4] - 80037da: f007 fd37 bl 800b24c - 80037de: e002 b.n 80037e6 - else - { -#if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) - hpcd->SuspendCallback(hpcd); -#else - HAL_PCD_SuspendCallback(hpcd); - 80037e0: 6878 ldr r0, [r7, #4] - 80037e2: f007 fb47 bl 800ae74 - } -#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)) - 80037e6: 687b ldr r3, [r7, #4] - 80037e8: 681b ldr r3, [r3, #0] - 80037ea: 4618 mov r0, r3 - 80037ec: f005 fa36 bl 8008c5c - 80037f0: 4603 mov r3, r0 - 80037f2: f403 5380 and.w r3, r3, #4096 @ 0x1000 - 80037f6: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 80037fa: f040 80b7 bne.w 800396c - { - USBx_DEVICE->DCTL &= ~USB_OTG_DCTL_RWUSIG; - 80037fe: 69fb ldr r3, [r7, #28] - 8003800: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003804: 685b ldr r3, [r3, #4] - 8003806: 69fa ldr r2, [r7, #28] - 8003808: f502 6200 add.w r2, r2, #2048 @ 0x800 - 800380c: f023 0301 bic.w r3, r3, #1 - 8003810: 6053 str r3, [r2, #4] - (void)USB_FlushTxFifo(hpcd->Instance, 0x10U); - 8003812: 687b ldr r3, [r7, #4] - 8003814: 681b ldr r3, [r3, #0] - 8003816: 2110 movs r1, #16 - 8003818: 4618 mov r0, r3 - 800381a: f004 fb03 bl 8007e24 - - for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 800381e: 2300 movs r3, #0 - 8003820: 62fb str r3, [r7, #44] @ 0x2c - 8003822: e046 b.n 80038b2 - { - USBx_INEP(i)->DIEPINT = 0xFB7FU; - 8003824: 6afb ldr r3, [r7, #44] @ 0x2c - 8003826: 015a lsls r2, r3, #5 - 8003828: 69fb ldr r3, [r7, #28] - 800382a: 4413 add r3, r2 - 800382c: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8003830: 461a mov r2, r3 - 8003832: f64f 337f movw r3, #64383 @ 0xfb7f - 8003836: 6093 str r3, [r2, #8] - USBx_INEP(i)->DIEPCTL &= ~USB_OTG_DIEPCTL_STALL; - 8003838: 6afb ldr r3, [r7, #44] @ 0x2c - 800383a: 015a lsls r2, r3, #5 - 800383c: 69fb ldr r3, [r7, #28] - 800383e: 4413 add r3, r2 - 8003840: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8003844: 681b ldr r3, [r3, #0] - 8003846: 6afa ldr r2, [r7, #44] @ 0x2c - 8003848: 0151 lsls r1, r2, #5 - 800384a: 69fa ldr r2, [r7, #28] - 800384c: 440a add r2, r1 - 800384e: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8003852: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 - 8003856: 6013 str r3, [r2, #0] - USBx_OUTEP(i)->DOEPINT = 0xFB7FU; - 8003858: 6afb ldr r3, [r7, #44] @ 0x2c - 800385a: 015a lsls r2, r3, #5 - 800385c: 69fb ldr r3, [r7, #28] - 800385e: 4413 add r3, r2 - 8003860: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003864: 461a mov r2, r3 - 8003866: f64f 337f movw r3, #64383 @ 0xfb7f - 800386a: 6093 str r3, [r2, #8] - USBx_OUTEP(i)->DOEPCTL &= ~USB_OTG_DOEPCTL_STALL; - 800386c: 6afb ldr r3, [r7, #44] @ 0x2c - 800386e: 015a lsls r2, r3, #5 - 8003870: 69fb ldr r3, [r7, #28] - 8003872: 4413 add r3, r2 - 8003874: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003878: 681b ldr r3, [r3, #0] - 800387a: 6afa ldr r2, [r7, #44] @ 0x2c - 800387c: 0151 lsls r1, r2, #5 - 800387e: 69fa ldr r2, [r7, #28] - 8003880: 440a add r2, r1 - 8003882: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8003886: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 - 800388a: 6013 str r3, [r2, #0] - USBx_OUTEP(i)->DOEPCTL |= USB_OTG_DOEPCTL_SNAK; - 800388c: 6afb ldr r3, [r7, #44] @ 0x2c - 800388e: 015a lsls r2, r3, #5 - 8003890: 69fb ldr r3, [r7, #28] - 8003892: 4413 add r3, r2 - 8003894: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003898: 681b ldr r3, [r3, #0] - 800389a: 6afa ldr r2, [r7, #44] @ 0x2c - 800389c: 0151 lsls r1, r2, #5 - 800389e: 69fa ldr r2, [r7, #28] - 80038a0: 440a add r2, r1 - 80038a2: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 80038a6: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 80038aa: 6013 str r3, [r2, #0] - for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 80038ac: 6afb ldr r3, [r7, #44] @ 0x2c - 80038ae: 3301 adds r3, #1 - 80038b0: 62fb str r3, [r7, #44] @ 0x2c - 80038b2: 687b ldr r3, [r7, #4] - 80038b4: 791b ldrb r3, [r3, #4] - 80038b6: 461a mov r2, r3 - 80038b8: 6afb ldr r3, [r7, #44] @ 0x2c - 80038ba: 4293 cmp r3, r2 - 80038bc: d3b2 bcc.n 8003824 - } - USBx_DEVICE->DAINTMSK |= 0x10001U; - 80038be: 69fb ldr r3, [r7, #28] - 80038c0: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80038c4: 69db ldr r3, [r3, #28] - 80038c6: 69fa ldr r2, [r7, #28] - 80038c8: f502 6200 add.w r2, r2, #2048 @ 0x800 - 80038cc: f043 1301 orr.w r3, r3, #65537 @ 0x10001 - 80038d0: 61d3 str r3, [r2, #28] - - if (hpcd->Init.use_dedicated_ep1 != 0U) - 80038d2: 687b ldr r3, [r7, #4] - 80038d4: 7bdb ldrb r3, [r3, #15] - 80038d6: 2b00 cmp r3, #0 - 80038d8: d016 beq.n 8003908 - { - USBx_DEVICE->DOUTEP1MSK |= USB_OTG_DOEPMSK_STUPM | - 80038da: 69fb ldr r3, [r7, #28] - 80038dc: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80038e0: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 80038e4: 69fa ldr r2, [r7, #28] - 80038e6: f502 6200 add.w r2, r2, #2048 @ 0x800 - 80038ea: f043 030b orr.w r3, r3, #11 - 80038ee: f8c2 3084 str.w r3, [r2, #132] @ 0x84 - USB_OTG_DOEPMSK_XFRCM | - USB_OTG_DOEPMSK_EPDM; - - USBx_DEVICE->DINEP1MSK |= USB_OTG_DIEPMSK_TOM | - 80038f2: 69fb ldr r3, [r7, #28] - 80038f4: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80038f8: 6c5b ldr r3, [r3, #68] @ 0x44 - 80038fa: 69fa ldr r2, [r7, #28] - 80038fc: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003900: f043 030b orr.w r3, r3, #11 - 8003904: 6453 str r3, [r2, #68] @ 0x44 - 8003906: e015 b.n 8003934 - USB_OTG_DIEPMSK_XFRCM | - USB_OTG_DIEPMSK_EPDM; - } - else - { - USBx_DEVICE->DOEPMSK |= USB_OTG_DOEPMSK_STUPM | - 8003908: 69fb ldr r3, [r7, #28] - 800390a: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800390e: 695b ldr r3, [r3, #20] - 8003910: 69fa ldr r2, [r7, #28] - 8003912: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003916: f443 5300 orr.w r3, r3, #8192 @ 0x2000 - 800391a: f043 032b orr.w r3, r3, #43 @ 0x2b - 800391e: 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 | - 8003920: 69fb ldr r3, [r7, #28] - 8003922: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003926: 691b ldr r3, [r3, #16] - 8003928: 69fa ldr r2, [r7, #28] - 800392a: f502 6200 add.w r2, r2, #2048 @ 0x800 - 800392e: f043 030b orr.w r3, r3, #11 - 8003932: 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; - 8003934: 69fb ldr r3, [r7, #28] - 8003936: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800393a: 681b ldr r3, [r3, #0] - 800393c: 69fa ldr r2, [r7, #28] - 800393e: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003942: f423 63fe bic.w r3, r3, #2032 @ 0x7f0 - 8003946: 6013 str r3, [r2, #0] - - /* setup EP0 to receive SETUP packets */ - (void)USB_EP0_OutStart(hpcd->Instance, (uint8_t)hpcd->Init.dma_enable, - 8003948: 687b ldr r3, [r7, #4] - 800394a: 6818 ldr r0, [r3, #0] - 800394c: 687b ldr r3, [r7, #4] - 800394e: 7999 ldrb r1, [r3, #6] - (uint8_t *)hpcd->Setup); - 8003950: 687b ldr r3, [r7, #4] - 8003952: f203 439c addw r3, r3, #1180 @ 0x49c - (void)USB_EP0_OutStart(hpcd->Instance, (uint8_t)hpcd->Init.dma_enable, - 8003956: 461a mov r2, r3 - 8003958: f005 fa44 bl 8008de4 - - __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_USBRST); - 800395c: 687b ldr r3, [r7, #4] - 800395e: 681b ldr r3, [r3, #0] - 8003960: 695a ldr r2, [r3, #20] - 8003962: 687b ldr r3, [r7, #4] - 8003964: 681b ldr r3, [r3, #0] - 8003966: f402 5280 and.w r2, r2, #4096 @ 0x1000 - 800396a: 615a str r2, [r3, #20] - } - - /* Handle Enumeration done Interrupt */ - if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_ENUMDNE)) - 800396c: 687b ldr r3, [r7, #4] - 800396e: 681b ldr r3, [r3, #0] - 8003970: 4618 mov r0, r3 - 8003972: f005 f973 bl 8008c5c - 8003976: 4603 mov r3, r0 - 8003978: f403 5300 and.w r3, r3, #8192 @ 0x2000 - 800397c: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 - 8003980: d123 bne.n 80039ca - { - (void)USB_ActivateSetup(hpcd->Instance); - 8003982: 687b ldr r3, [r7, #4] - 8003984: 681b ldr r3, [r3, #0] - 8003986: 4618 mov r0, r3 - 8003988: f005 fa09 bl 8008d9e - hpcd->Init.speed = USB_GetDevSpeed(hpcd->Instance); - 800398c: 687b ldr r3, [r7, #4] - 800398e: 681b ldr r3, [r3, #0] - 8003990: 4618 mov r0, r3 - 8003992: f004 fac0 bl 8007f16 - 8003996: 4603 mov r3, r0 - 8003998: 461a mov r2, r3 - 800399a: 687b ldr r3, [r7, #4] - 800399c: 71da strb r2, [r3, #7] - - /* Set USB Turnaround time */ - (void)USB_SetTurnaroundTime(hpcd->Instance, - 800399e: 687b ldr r3, [r7, #4] - 80039a0: 681c ldr r4, [r3, #0] - 80039a2: f000 fe8b bl 80046bc - 80039a6: 4601 mov r1, r0 - HAL_RCC_GetHCLKFreq(), - (uint8_t)hpcd->Init.speed); - 80039a8: 687b ldr r3, [r7, #4] - 80039aa: 79db ldrb r3, [r3, #7] - (void)USB_SetTurnaroundTime(hpcd->Instance, - 80039ac: 461a mov r2, r3 - 80039ae: 4620 mov r0, r4 - 80039b0: f003 ffca bl 8007948 - -#if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) - hpcd->ResetCallback(hpcd); -#else - HAL_PCD_ResetCallback(hpcd); - 80039b4: 6878 ldr r0, [r7, #4] - 80039b6: f007 fa34 bl 800ae22 -#endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ - - __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_ENUMDNE); - 80039ba: 687b ldr r3, [r7, #4] - 80039bc: 681b ldr r3, [r3, #0] - 80039be: 695a ldr r2, [r3, #20] - 80039c0: 687b ldr r3, [r7, #4] - 80039c2: 681b ldr r3, [r3, #0] - 80039c4: f402 5200 and.w r2, r2, #8192 @ 0x2000 - 80039c8: 615a str r2, [r3, #20] - } - - /* Handle SOF Interrupt */ - if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_SOF)) - 80039ca: 687b ldr r3, [r7, #4] - 80039cc: 681b ldr r3, [r3, #0] - 80039ce: 4618 mov r0, r3 - 80039d0: f005 f944 bl 8008c5c - 80039d4: 4603 mov r3, r0 - 80039d6: f003 0308 and.w r3, r3, #8 - 80039da: 2b08 cmp r3, #8 - 80039dc: d10a bne.n 80039f4 - { -#if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) - hpcd->SOFCallback(hpcd); -#else - HAL_PCD_SOFCallback(hpcd); - 80039de: 6878 ldr r0, [r7, #4] - 80039e0: f007 fa11 bl 800ae06 -#endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ - - __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_SOF); - 80039e4: 687b ldr r3, [r7, #4] - 80039e6: 681b ldr r3, [r3, #0] - 80039e8: 695a ldr r2, [r3, #20] - 80039ea: 687b ldr r3, [r7, #4] - 80039ec: 681b ldr r3, [r3, #0] - 80039ee: f002 0208 and.w r2, r2, #8 - 80039f2: 615a str r2, [r3, #20] - } - - /* Handle Global OUT NAK effective Interrupt */ - if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_BOUTNAKEFF)) - 80039f4: 687b ldr r3, [r7, #4] - 80039f6: 681b ldr r3, [r3, #0] - 80039f8: 4618 mov r0, r3 - 80039fa: f005 f92f bl 8008c5c - 80039fe: 4603 mov r3, r0 - 8003a00: f003 0380 and.w r3, r3, #128 @ 0x80 - 8003a04: 2b80 cmp r3, #128 @ 0x80 - 8003a06: d123 bne.n 8003a50 - { - USBx->GINTMSK &= ~USB_OTG_GINTMSK_GONAKEFFM; - 8003a08: 6a3b ldr r3, [r7, #32] - 8003a0a: 699b ldr r3, [r3, #24] - 8003a0c: f023 0280 bic.w r2, r3, #128 @ 0x80 - 8003a10: 6a3b ldr r3, [r7, #32] - 8003a12: 619a str r2, [r3, #24] - - for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 8003a14: 2301 movs r3, #1 - 8003a16: 627b str r3, [r7, #36] @ 0x24 - 8003a18: e014 b.n 8003a44 - { - if (hpcd->OUT_ep[epnum].is_iso_incomplete == 1U) - 8003a1a: 6879 ldr r1, [r7, #4] - 8003a1c: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003a1e: 4613 mov r3, r2 - 8003a20: 00db lsls r3, r3, #3 - 8003a22: 4413 add r3, r2 - 8003a24: 009b lsls r3, r3, #2 - 8003a26: 440b add r3, r1 - 8003a28: f203 2357 addw r3, r3, #599 @ 0x257 - 8003a2c: 781b ldrb r3, [r3, #0] - 8003a2e: 2b01 cmp r3, #1 - 8003a30: d105 bne.n 8003a3e - { - /* Abort current transaction and disable the EP */ - (void)HAL_PCD_EP_Abort(hpcd, (uint8_t)epnum); - 8003a32: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003a34: b2db uxtb r3, r3 - 8003a36: 4619 mov r1, r3 - 8003a38: 6878 ldr r0, [r7, #4] - 8003a3a: f000 faf2 bl 8004022 - for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 8003a3e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003a40: 3301 adds r3, #1 - 8003a42: 627b str r3, [r7, #36] @ 0x24 - 8003a44: 687b ldr r3, [r7, #4] - 8003a46: 791b ldrb r3, [r3, #4] - 8003a48: 461a mov r2, r3 - 8003a4a: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003a4c: 4293 cmp r3, r2 - 8003a4e: d3e4 bcc.n 8003a1a - } - } - } - - /* Handle Incomplete ISO IN Interrupt */ - if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_IISOIXFR)) - 8003a50: 687b ldr r3, [r7, #4] - 8003a52: 681b ldr r3, [r3, #0] - 8003a54: 4618 mov r0, r3 - 8003a56: f005 f901 bl 8008c5c - 8003a5a: 4603 mov r3, r0 - 8003a5c: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 8003a60: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 - 8003a64: d13c bne.n 8003ae0 - { - for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 8003a66: 2301 movs r3, #1 - 8003a68: 627b str r3, [r7, #36] @ 0x24 - 8003a6a: e02b b.n 8003ac4 - { - RegVal = USBx_INEP(epnum)->DIEPCTL; - 8003a6c: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003a6e: 015a lsls r2, r3, #5 - 8003a70: 69fb ldr r3, [r7, #28] - 8003a72: 4413 add r3, r2 - 8003a74: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8003a78: 681b ldr r3, [r3, #0] - 8003a7a: 61bb str r3, [r7, #24] - - if ((hpcd->IN_ep[epnum].type == EP_TYPE_ISOC) && - 8003a7c: 6879 ldr r1, [r7, #4] - 8003a7e: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003a80: 4613 mov r3, r2 - 8003a82: 00db lsls r3, r3, #3 - 8003a84: 4413 add r3, r2 - 8003a86: 009b lsls r3, r3, #2 - 8003a88: 440b add r3, r1 - 8003a8a: 3318 adds r3, #24 - 8003a8c: 781b ldrb r3, [r3, #0] - 8003a8e: 2b01 cmp r3, #1 - 8003a90: d115 bne.n 8003abe - ((RegVal & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA)) - 8003a92: 69bb ldr r3, [r7, #24] - if ((hpcd->IN_ep[epnum].type == EP_TYPE_ISOC) && - 8003a94: 2b00 cmp r3, #0 - 8003a96: da12 bge.n 8003abe - { - hpcd->IN_ep[epnum].is_iso_incomplete = 1U; - 8003a98: 6879 ldr r1, [r7, #4] - 8003a9a: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003a9c: 4613 mov r3, r2 - 8003a9e: 00db lsls r3, r3, #3 - 8003aa0: 4413 add r3, r2 - 8003aa2: 009b lsls r3, r3, #2 - 8003aa4: 440b add r3, r1 - 8003aa6: 3317 adds r3, #23 - 8003aa8: 2201 movs r2, #1 - 8003aaa: 701a strb r2, [r3, #0] - - /* Abort current transaction and disable the EP */ - (void)HAL_PCD_EP_Abort(hpcd, (uint8_t)(epnum | 0x80U)); - 8003aac: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003aae: b2db uxtb r3, r3 - 8003ab0: f063 037f orn r3, r3, #127 @ 0x7f - 8003ab4: b2db uxtb r3, r3 - 8003ab6: 4619 mov r1, r3 - 8003ab8: 6878 ldr r0, [r7, #4] - 8003aba: f000 fab2 bl 8004022 - for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 8003abe: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003ac0: 3301 adds r3, #1 - 8003ac2: 627b str r3, [r7, #36] @ 0x24 - 8003ac4: 687b ldr r3, [r7, #4] - 8003ac6: 791b ldrb r3, [r3, #4] - 8003ac8: 461a mov r2, r3 - 8003aca: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003acc: 4293 cmp r3, r2 - 8003ace: d3cd bcc.n 8003a6c - } - } - - __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_IISOIXFR); - 8003ad0: 687b ldr r3, [r7, #4] - 8003ad2: 681b ldr r3, [r3, #0] - 8003ad4: 695a ldr r2, [r3, #20] - 8003ad6: 687b ldr r3, [r7, #4] - 8003ad8: 681b ldr r3, [r3, #0] - 8003ada: f402 1280 and.w r2, r2, #1048576 @ 0x100000 - 8003ade: 615a str r2, [r3, #20] - } - - /* Handle Incomplete ISO OUT Interrupt */ - if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_PXFR_INCOMPISOOUT)) - 8003ae0: 687b ldr r3, [r7, #4] - 8003ae2: 681b ldr r3, [r3, #0] - 8003ae4: 4618 mov r0, r3 - 8003ae6: f005 f8b9 bl 8008c5c - 8003aea: 4603 mov r3, r0 - 8003aec: f403 1300 and.w r3, r3, #2097152 @ 0x200000 - 8003af0: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000 - 8003af4: d156 bne.n 8003ba4 - { - for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 8003af6: 2301 movs r3, #1 - 8003af8: 627b str r3, [r7, #36] @ 0x24 - 8003afa: e045 b.n 8003b88 - { - RegVal = USBx_OUTEP(epnum)->DOEPCTL; - 8003afc: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003afe: 015a lsls r2, r3, #5 - 8003b00: 69fb ldr r3, [r7, #28] - 8003b02: 4413 add r3, r2 - 8003b04: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003b08: 681b ldr r3, [r3, #0] - 8003b0a: 61bb str r3, [r7, #24] - - if ((hpcd->OUT_ep[epnum].type == EP_TYPE_ISOC) && - 8003b0c: 6879 ldr r1, [r7, #4] - 8003b0e: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003b10: 4613 mov r3, r2 - 8003b12: 00db lsls r3, r3, #3 - 8003b14: 4413 add r3, r2 - 8003b16: 009b lsls r3, r3, #2 - 8003b18: 440b add r3, r1 - 8003b1a: f503 7316 add.w r3, r3, #600 @ 0x258 - 8003b1e: 781b ldrb r3, [r3, #0] - 8003b20: 2b01 cmp r3, #1 - 8003b22: d12e bne.n 8003b82 - ((RegVal & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) && - 8003b24: 69bb ldr r3, [r7, #24] - if ((hpcd->OUT_ep[epnum].type == EP_TYPE_ISOC) && - 8003b26: 2b00 cmp r3, #0 - 8003b28: da2b bge.n 8003b82 - (((RegVal & (0x1U << 16)) >> 16U) == (hpcd->FrameNumber & 0x1U))) - 8003b2a: 69bb ldr r3, [r7, #24] - 8003b2c: 0c1a lsrs r2, r3, #16 - 8003b2e: 687b ldr r3, [r7, #4] - 8003b30: f8d3 34d4 ldr.w r3, [r3, #1236] @ 0x4d4 - 8003b34: 4053 eors r3, r2 - 8003b36: f003 0301 and.w r3, r3, #1 - ((RegVal & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) && - 8003b3a: 2b00 cmp r3, #0 - 8003b3c: d121 bne.n 8003b82 - { - hpcd->OUT_ep[epnum].is_iso_incomplete = 1U; - 8003b3e: 6879 ldr r1, [r7, #4] - 8003b40: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003b42: 4613 mov r3, r2 - 8003b44: 00db lsls r3, r3, #3 - 8003b46: 4413 add r3, r2 - 8003b48: 009b lsls r3, r3, #2 - 8003b4a: 440b add r3, r1 - 8003b4c: f203 2357 addw r3, r3, #599 @ 0x257 - 8003b50: 2201 movs r2, #1 - 8003b52: 701a strb r2, [r3, #0] - - USBx->GINTMSK |= USB_OTG_GINTMSK_GONAKEFFM; - 8003b54: 6a3b ldr r3, [r7, #32] - 8003b56: 699b ldr r3, [r3, #24] - 8003b58: f043 0280 orr.w r2, r3, #128 @ 0x80 - 8003b5c: 6a3b ldr r3, [r7, #32] - 8003b5e: 619a str r2, [r3, #24] - - if ((USBx->GINTSTS & USB_OTG_GINTSTS_BOUTNAKEFF) == 0U) - 8003b60: 6a3b ldr r3, [r7, #32] - 8003b62: 695b ldr r3, [r3, #20] - 8003b64: f003 0380 and.w r3, r3, #128 @ 0x80 - 8003b68: 2b00 cmp r3, #0 - 8003b6a: d10a bne.n 8003b82 - { - USBx_DEVICE->DCTL |= USB_OTG_DCTL_SGONAK; - 8003b6c: 69fb ldr r3, [r7, #28] - 8003b6e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003b72: 685b ldr r3, [r3, #4] - 8003b74: 69fa ldr r2, [r7, #28] - 8003b76: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003b7a: f443 7300 orr.w r3, r3, #512 @ 0x200 - 8003b7e: 6053 str r3, [r2, #4] - break; - 8003b80: e008 b.n 8003b94 - for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 8003b82: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003b84: 3301 adds r3, #1 - 8003b86: 627b str r3, [r7, #36] @ 0x24 - 8003b88: 687b ldr r3, [r7, #4] - 8003b8a: 791b ldrb r3, [r3, #4] - 8003b8c: 461a mov r2, r3 - 8003b8e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003b90: 4293 cmp r3, r2 - 8003b92: d3b3 bcc.n 8003afc - } - } - } - - __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_PXFR_INCOMPISOOUT); - 8003b94: 687b ldr r3, [r7, #4] - 8003b96: 681b ldr r3, [r3, #0] - 8003b98: 695a ldr r2, [r3, #20] - 8003b9a: 687b ldr r3, [r7, #4] - 8003b9c: 681b ldr r3, [r3, #0] - 8003b9e: f402 1200 and.w r2, r2, #2097152 @ 0x200000 - 8003ba2: 615a str r2, [r3, #20] - } - - /* Handle Connection event Interrupt */ - if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_SRQINT)) - 8003ba4: 687b ldr r3, [r7, #4] - 8003ba6: 681b ldr r3, [r3, #0] - 8003ba8: 4618 mov r0, r3 - 8003baa: f005 f857 bl 8008c5c - 8003bae: 4603 mov r3, r0 - 8003bb0: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000 - 8003bb4: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8003bb8: d10a bne.n 8003bd0 - { -#if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) - hpcd->ConnectCallback(hpcd); -#else - HAL_PCD_ConnectCallback(hpcd); - 8003bba: 6878 ldr r0, [r7, #4] - 8003bbc: f007 f9b2 bl 800af24 -#endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ - - __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_SRQINT); - 8003bc0: 687b ldr r3, [r7, #4] - 8003bc2: 681b ldr r3, [r3, #0] - 8003bc4: 695a ldr r2, [r3, #20] - 8003bc6: 687b ldr r3, [r7, #4] - 8003bc8: 681b ldr r3, [r3, #0] - 8003bca: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000 - 8003bce: 615a str r2, [r3, #20] - } - - /* Handle Disconnection event Interrupt */ - if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_OTGINT)) - 8003bd0: 687b ldr r3, [r7, #4] - 8003bd2: 681b ldr r3, [r3, #0] - 8003bd4: 4618 mov r0, r3 - 8003bd6: f005 f841 bl 8008c5c - 8003bda: 4603 mov r3, r0 - 8003bdc: f003 0304 and.w r3, r3, #4 - 8003be0: 2b04 cmp r3, #4 - 8003be2: d115 bne.n 8003c10 - { - RegVal = hpcd->Instance->GOTGINT; - 8003be4: 687b ldr r3, [r7, #4] - 8003be6: 681b ldr r3, [r3, #0] - 8003be8: 685b ldr r3, [r3, #4] - 8003bea: 61bb str r3, [r7, #24] - - if ((RegVal & USB_OTG_GOTGINT_SEDET) == USB_OTG_GOTGINT_SEDET) - 8003bec: 69bb ldr r3, [r7, #24] - 8003bee: f003 0304 and.w r3, r3, #4 - 8003bf2: 2b00 cmp r3, #0 - 8003bf4: d002 beq.n 8003bfc - { -#if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) - hpcd->DisconnectCallback(hpcd); -#else - HAL_PCD_DisconnectCallback(hpcd); - 8003bf6: 6878 ldr r0, [r7, #4] - 8003bf8: f007 f9a2 bl 800af40 -#endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ - } - hpcd->Instance->GOTGINT |= RegVal; - 8003bfc: 687b ldr r3, [r7, #4] - 8003bfe: 681b ldr r3, [r3, #0] - 8003c00: 6859 ldr r1, [r3, #4] - 8003c02: 687b ldr r3, [r7, #4] - 8003c04: 681b ldr r3, [r3, #0] - 8003c06: 69ba ldr r2, [r7, #24] - 8003c08: 430a orrs r2, r1 - 8003c0a: 605a str r2, [r3, #4] - 8003c0c: e000 b.n 8003c10 - return; - 8003c0e: bf00 nop - } - } -} - 8003c10: 3734 adds r7, #52 @ 0x34 - 8003c12: 46bd mov sp, r7 - 8003c14: bd90 pop {r4, r7, pc} - -08003c16 : - * @param hpcd PCD handle - * @param address new device address - * @retval HAL status - */ -HAL_StatusTypeDef HAL_PCD_SetAddress(PCD_HandleTypeDef *hpcd, uint8_t address) -{ - 8003c16: b580 push {r7, lr} - 8003c18: b082 sub sp, #8 - 8003c1a: af00 add r7, sp, #0 - 8003c1c: 6078 str r0, [r7, #4] - 8003c1e: 460b mov r3, r1 - 8003c20: 70fb strb r3, [r7, #3] - __HAL_LOCK(hpcd); - 8003c22: 687b ldr r3, [r7, #4] - 8003c24: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003c28: 2b01 cmp r3, #1 - 8003c2a: d101 bne.n 8003c30 - 8003c2c: 2302 movs r3, #2 - 8003c2e: e012 b.n 8003c56 - 8003c30: 687b ldr r3, [r7, #4] - 8003c32: 2201 movs r2, #1 - 8003c34: f883 2494 strb.w r2, [r3, #1172] @ 0x494 - hpcd->USB_Address = address; - 8003c38: 687b ldr r3, [r7, #4] - 8003c3a: 78fa ldrb r2, [r7, #3] - 8003c3c: 745a strb r2, [r3, #17] - (void)USB_SetDevAddress(hpcd->Instance, address); - 8003c3e: 687b ldr r3, [r7, #4] - 8003c40: 681b ldr r3, [r3, #0] - 8003c42: 78fa ldrb r2, [r7, #3] - 8003c44: 4611 mov r1, r2 - 8003c46: 4618 mov r0, r3 - 8003c48: f004 ffa0 bl 8008b8c - __HAL_UNLOCK(hpcd); - 8003c4c: 687b ldr r3, [r7, #4] - 8003c4e: 2200 movs r2, #0 - 8003c50: f883 2494 strb.w r2, [r3, #1172] @ 0x494 - - return HAL_OK; - 8003c54: 2300 movs r3, #0 -} - 8003c56: 4618 mov r0, r3 - 8003c58: 3708 adds r7, #8 - 8003c5a: 46bd mov sp, r7 - 8003c5c: bd80 pop {r7, pc} - -08003c5e : - * @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) -{ - 8003c5e: b580 push {r7, lr} - 8003c60: b084 sub sp, #16 - 8003c62: af00 add r7, sp, #0 - 8003c64: 6078 str r0, [r7, #4] - 8003c66: 4608 mov r0, r1 - 8003c68: 4611 mov r1, r2 - 8003c6a: 461a mov r2, r3 - 8003c6c: 4603 mov r3, r0 - 8003c6e: 70fb strb r3, [r7, #3] - 8003c70: 460b mov r3, r1 - 8003c72: 803b strh r3, [r7, #0] - 8003c74: 4613 mov r3, r2 - 8003c76: 70bb strb r3, [r7, #2] - HAL_StatusTypeDef ret = HAL_OK; - 8003c78: 2300 movs r3, #0 - 8003c7a: 72fb strb r3, [r7, #11] - PCD_EPTypeDef *ep; - - if ((ep_addr & 0x80U) == 0x80U) - 8003c7c: f997 3003 ldrsb.w r3, [r7, #3] - 8003c80: 2b00 cmp r3, #0 - 8003c82: da0f bge.n 8003ca4 - { - ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003c84: 78fb ldrb r3, [r7, #3] - 8003c86: f003 020f and.w r2, r3, #15 - 8003c8a: 4613 mov r3, r2 - 8003c8c: 00db lsls r3, r3, #3 - 8003c8e: 4413 add r3, r2 - 8003c90: 009b lsls r3, r3, #2 - 8003c92: 3310 adds r3, #16 - 8003c94: 687a ldr r2, [r7, #4] - 8003c96: 4413 add r3, r2 - 8003c98: 3304 adds r3, #4 - 8003c9a: 60fb str r3, [r7, #12] - ep->is_in = 1U; - 8003c9c: 68fb ldr r3, [r7, #12] - 8003c9e: 2201 movs r2, #1 - 8003ca0: 705a strb r2, [r3, #1] - 8003ca2: e00f b.n 8003cc4 - } - else - { - ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 8003ca4: 78fb ldrb r3, [r7, #3] - 8003ca6: f003 020f and.w r2, r3, #15 - 8003caa: 4613 mov r3, r2 - 8003cac: 00db lsls r3, r3, #3 - 8003cae: 4413 add r3, r2 - 8003cb0: 009b lsls r3, r3, #2 - 8003cb2: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003cb6: 687a ldr r2, [r7, #4] - 8003cb8: 4413 add r3, r2 - 8003cba: 3304 adds r3, #4 - 8003cbc: 60fb str r3, [r7, #12] - ep->is_in = 0U; - 8003cbe: 68fb ldr r3, [r7, #12] - 8003cc0: 2200 movs r2, #0 - 8003cc2: 705a strb r2, [r3, #1] - } - - ep->num = ep_addr & EP_ADDR_MSK; - 8003cc4: 78fb ldrb r3, [r7, #3] - 8003cc6: f003 030f and.w r3, r3, #15 - 8003cca: b2da uxtb r2, r3 - 8003ccc: 68fb ldr r3, [r7, #12] - 8003cce: 701a strb r2, [r3, #0] - ep->maxpacket = (uint32_t)ep_mps & 0x7FFU; - 8003cd0: 883b ldrh r3, [r7, #0] - 8003cd2: f3c3 020a ubfx r2, r3, #0, #11 - 8003cd6: 68fb ldr r3, [r7, #12] - 8003cd8: 609a str r2, [r3, #8] - ep->type = ep_type; - 8003cda: 68fb ldr r3, [r7, #12] - 8003cdc: 78ba ldrb r2, [r7, #2] - 8003cde: 711a strb r2, [r3, #4] - - if (ep->is_in != 0U) - 8003ce0: 68fb ldr r3, [r7, #12] - 8003ce2: 785b ldrb r3, [r3, #1] - 8003ce4: 2b00 cmp r3, #0 - 8003ce6: d004 beq.n 8003cf2 - { - /* Assign a Tx FIFO */ - ep->tx_fifo_num = ep->num; - 8003ce8: 68fb ldr r3, [r7, #12] - 8003cea: 781b ldrb r3, [r3, #0] - 8003cec: 461a mov r2, r3 - 8003cee: 68fb ldr r3, [r7, #12] - 8003cf0: 835a strh r2, [r3, #26] - } - - /* Set initial data PID. */ - if (ep_type == EP_TYPE_BULK) - 8003cf2: 78bb ldrb r3, [r7, #2] - 8003cf4: 2b02 cmp r3, #2 - 8003cf6: d102 bne.n 8003cfe - { - ep->data_pid_start = 0U; - 8003cf8: 68fb ldr r3, [r7, #12] - 8003cfa: 2200 movs r2, #0 - 8003cfc: 715a strb r2, [r3, #5] - } - - __HAL_LOCK(hpcd); - 8003cfe: 687b ldr r3, [r7, #4] - 8003d00: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003d04: 2b01 cmp r3, #1 - 8003d06: d101 bne.n 8003d0c - 8003d08: 2302 movs r3, #2 - 8003d0a: e00e b.n 8003d2a - 8003d0c: 687b ldr r3, [r7, #4] - 8003d0e: 2201 movs r2, #1 - 8003d10: f883 2494 strb.w r2, [r3, #1172] @ 0x494 - (void)USB_ActivateEndpoint(hpcd->Instance, ep); - 8003d14: 687b ldr r3, [r7, #4] - 8003d16: 681b ldr r3, [r3, #0] - 8003d18: 68f9 ldr r1, [r7, #12] - 8003d1a: 4618 mov r0, r3 - 8003d1c: f004 f920 bl 8007f60 - __HAL_UNLOCK(hpcd); - 8003d20: 687b ldr r3, [r7, #4] - 8003d22: 2200 movs r2, #0 - 8003d24: f883 2494 strb.w r2, [r3, #1172] @ 0x494 - - return ret; - 8003d28: 7afb ldrb r3, [r7, #11] -} +08003cdc : + 8003cdc: b580 push {r7, lr} + 8003cde: b084 sub sp, #16 + 8003ce0: af00 add r7, sp, #0 + 8003ce2: 6078 str r0, [r7, #4] + 8003ce4: 460b mov r3, r1 + 8003ce6: 70fb strb r3, [r7, #3] + 8003ce8: f997 3003 ldrsb.w r3, [r7, #3] + 8003cec: 2b00 cmp r3, #0 + 8003cee: da0c bge.n 8003d0a + 8003cf0: 78fb ldrb r3, [r7, #3] + 8003cf2: f003 020f and.w r2, r3, #15 + 8003cf6: 4613 mov r3, r2 + 8003cf8: 00db lsls r3, r3, #3 + 8003cfa: 4413 add r3, r2 + 8003cfc: 009b lsls r3, r3, #2 + 8003cfe: 3310 adds r3, #16 + 8003d00: 687a ldr r2, [r7, #4] + 8003d02: 4413 add r3, r2 + 8003d04: 3304 adds r3, #4 + 8003d06: 60fb str r3, [r7, #12] + 8003d08: e00c b.n 8003d24 + 8003d0a: 78fb ldrb r3, [r7, #3] + 8003d0c: f003 020f and.w r2, r3, #15 + 8003d10: 4613 mov r3, r2 + 8003d12: 00db lsls r3, r3, #3 + 8003d14: 4413 add r3, r2 + 8003d16: 009b lsls r3, r3, #2 + 8003d18: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003d1c: 687a ldr r2, [r7, #4] + 8003d1e: 4413 add r3, r2 + 8003d20: 3304 adds r3, #4 + 8003d22: 60fb str r3, [r7, #12] + 8003d24: 687b ldr r3, [r7, #4] + 8003d26: 681b ldr r3, [r3, #0] + 8003d28: 68f9 ldr r1, [r7, #12] 8003d2a: 4618 mov r0, r3 - 8003d2c: 3710 adds r7, #16 - 8003d2e: 46bd mov sp, r7 - 8003d30: bd80 pop {r7, pc} + 8003d2c: f004 fb78 bl 8008420 + 8003d30: 4603 mov r3, r0 + 8003d32: 72fb strb r3, [r7, #11] + 8003d34: 7afb ldrb r3, [r7, #11] + 8003d36: 4618 mov r0, r3 + 8003d38: 3710 adds r7, #16 + 8003d3a: 46bd mov sp, r7 + 8003d3c: bd80 pop {r7, pc} -08003d32 : - * @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) -{ - 8003d32: b580 push {r7, lr} - 8003d34: b084 sub sp, #16 - 8003d36: af00 add r7, sp, #0 - 8003d38: 6078 str r0, [r7, #4] - 8003d3a: 460b mov r3, r1 - 8003d3c: 70fb strb r3, [r7, #3] - PCD_EPTypeDef *ep; - - if ((ep_addr & 0x80U) == 0x80U) - 8003d3e: f997 3003 ldrsb.w r3, [r7, #3] - 8003d42: 2b00 cmp r3, #0 - 8003d44: da0f bge.n 8003d66 - { - ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003d46: 78fb ldrb r3, [r7, #3] - 8003d48: f003 020f and.w r2, r3, #15 - 8003d4c: 4613 mov r3, r2 - 8003d4e: 00db lsls r3, r3, #3 - 8003d50: 4413 add r3, r2 - 8003d52: 009b lsls r3, r3, #2 - 8003d54: 3310 adds r3, #16 - 8003d56: 687a ldr r2, [r7, #4] +08003d3e : + 8003d3e: b580 push {r7, lr} + 8003d40: b08a sub sp, #40 @ 0x28 + 8003d42: af02 add r7, sp, #8 + 8003d44: 6078 str r0, [r7, #4] + 8003d46: 6039 str r1, [r7, #0] + 8003d48: 687b ldr r3, [r7, #4] + 8003d4a: 681b ldr r3, [r3, #0] + 8003d4c: 617b str r3, [r7, #20] + 8003d4e: 697b ldr r3, [r7, #20] + 8003d50: 613b str r3, [r7, #16] + 8003d52: 683a ldr r2, [r7, #0] + 8003d54: 4613 mov r3, r2 + 8003d56: 00db lsls r3, r3, #3 8003d58: 4413 add r3, r2 - 8003d5a: 3304 adds r3, #4 - 8003d5c: 60fb str r3, [r7, #12] - ep->is_in = 1U; - 8003d5e: 68fb ldr r3, [r7, #12] - 8003d60: 2201 movs r2, #1 - 8003d62: 705a strb r2, [r3, #1] - 8003d64: e00f b.n 8003d86 - } - else - { - ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 8003d66: 78fb ldrb r3, [r7, #3] - 8003d68: f003 020f and.w r2, r3, #15 - 8003d6c: 4613 mov r3, r2 - 8003d6e: 00db lsls r3, r3, #3 - 8003d70: 4413 add r3, r2 - 8003d72: 009b lsls r3, r3, #2 - 8003d74: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003d78: 687a ldr r2, [r7, #4] - 8003d7a: 4413 add r3, r2 - 8003d7c: 3304 adds r3, #4 - 8003d7e: 60fb str r3, [r7, #12] - ep->is_in = 0U; - 8003d80: 68fb ldr r3, [r7, #12] - 8003d82: 2200 movs r2, #0 - 8003d84: 705a strb r2, [r3, #1] - } - ep->num = ep_addr & EP_ADDR_MSK; - 8003d86: 78fb ldrb r3, [r7, #3] - 8003d88: f003 030f and.w r3, r3, #15 - 8003d8c: b2da uxtb r2, r3 - 8003d8e: 68fb ldr r3, [r7, #12] - 8003d90: 701a strb r2, [r3, #0] - - __HAL_LOCK(hpcd); - 8003d92: 687b ldr r3, [r7, #4] - 8003d94: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003d98: 2b01 cmp r3, #1 - 8003d9a: d101 bne.n 8003da0 - 8003d9c: 2302 movs r3, #2 - 8003d9e: e00e b.n 8003dbe - 8003da0: 687b ldr r3, [r7, #4] - 8003da2: 2201 movs r2, #1 - 8003da4: f883 2494 strb.w r2, [r3, #1172] @ 0x494 - (void)USB_DeactivateEndpoint(hpcd->Instance, ep); - 8003da8: 687b ldr r3, [r7, #4] - 8003daa: 681b ldr r3, [r3, #0] - 8003dac: 68f9 ldr r1, [r7, #12] - 8003dae: 4618 mov r0, r3 - 8003db0: f004 f95e bl 8008070 - __HAL_UNLOCK(hpcd); - 8003db4: 687b ldr r3, [r7, #4] - 8003db6: 2200 movs r2, #0 - 8003db8: f883 2494 strb.w r2, [r3, #1172] @ 0x494 - return HAL_OK; - 8003dbc: 2300 movs r3, #0 -} - 8003dbe: 4618 mov r0, r3 - 8003dc0: 3710 adds r7, #16 - 8003dc2: 46bd mov sp, r7 - 8003dc4: bd80 pop {r7, pc} - -08003dc6 : - * @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) -{ - 8003dc6: b580 push {r7, lr} - 8003dc8: b086 sub sp, #24 - 8003dca: af00 add r7, sp, #0 - 8003dcc: 60f8 str r0, [r7, #12] - 8003dce: 607a str r2, [r7, #4] - 8003dd0: 603b str r3, [r7, #0] - 8003dd2: 460b mov r3, r1 - 8003dd4: 72fb strb r3, [r7, #11] - PCD_EPTypeDef *ep; - - ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 8003dd6: 7afb ldrb r3, [r7, #11] - 8003dd8: f003 020f and.w r2, r3, #15 - 8003ddc: 4613 mov r3, r2 - 8003dde: 00db lsls r3, r3, #3 - 8003de0: 4413 add r3, r2 - 8003de2: 009b lsls r3, r3, #2 - 8003de4: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003de8: 68fa ldr r2, [r7, #12] - 8003dea: 4413 add r3, r2 - 8003dec: 3304 adds r3, #4 - 8003dee: 617b str r3, [r7, #20] - - /*setup and start the Xfer */ - ep->xfer_buff = pBuf; - 8003df0: 697b ldr r3, [r7, #20] - 8003df2: 687a ldr r2, [r7, #4] - 8003df4: 60da str r2, [r3, #12] - ep->xfer_len = len; - 8003df6: 697b ldr r3, [r7, #20] - 8003df8: 683a ldr r2, [r7, #0] - 8003dfa: 611a str r2, [r3, #16] - ep->xfer_count = 0U; - 8003dfc: 697b ldr r3, [r7, #20] - 8003dfe: 2200 movs r2, #0 - 8003e00: 615a str r2, [r3, #20] - ep->is_in = 0U; - 8003e02: 697b ldr r3, [r7, #20] - 8003e04: 2200 movs r2, #0 - 8003e06: 705a strb r2, [r3, #1] - ep->num = ep_addr & EP_ADDR_MSK; - 8003e08: 7afb ldrb r3, [r7, #11] - 8003e0a: f003 030f and.w r3, r3, #15 - 8003e0e: b2da uxtb r2, r3 - 8003e10: 697b ldr r3, [r7, #20] - 8003e12: 701a strb r2, [r3, #0] - - if (hpcd->Init.dma_enable == 1U) + 8003d5a: 009b lsls r3, r3, #2 + 8003d5c: 3310 adds r3, #16 + 8003d5e: 687a ldr r2, [r7, #4] + 8003d60: 4413 add r3, r2 + 8003d62: 3304 adds r3, #4 + 8003d64: 60fb str r3, [r7, #12] + 8003d66: 68fb ldr r3, [r7, #12] + 8003d68: 695a ldr r2, [r3, #20] + 8003d6a: 68fb ldr r3, [r7, #12] + 8003d6c: 691b ldr r3, [r3, #16] + 8003d6e: 429a cmp r2, r3 + 8003d70: d901 bls.n 8003d76 + 8003d72: 2301 movs r3, #1 + 8003d74: e06b b.n 8003e4e + 8003d76: 68fb ldr r3, [r7, #12] + 8003d78: 691a ldr r2, [r3, #16] + 8003d7a: 68fb ldr r3, [r7, #12] + 8003d7c: 695b ldr r3, [r3, #20] + 8003d7e: 1ad3 subs r3, r2, r3 + 8003d80: 61fb str r3, [r7, #28] + 8003d82: 68fb ldr r3, [r7, #12] + 8003d84: 689b ldr r3, [r3, #8] + 8003d86: 69fa ldr r2, [r7, #28] + 8003d88: 429a cmp r2, r3 + 8003d8a: d902 bls.n 8003d92 + 8003d8c: 68fb ldr r3, [r7, #12] + 8003d8e: 689b ldr r3, [r3, #8] + 8003d90: 61fb str r3, [r7, #28] + 8003d92: 69fb ldr r3, [r7, #28] + 8003d94: 3303 adds r3, #3 + 8003d96: 089b lsrs r3, r3, #2 + 8003d98: 61bb str r3, [r7, #24] + 8003d9a: e02a b.n 8003df2 + 8003d9c: 68fb ldr r3, [r7, #12] + 8003d9e: 691a ldr r2, [r3, #16] + 8003da0: 68fb ldr r3, [r7, #12] + 8003da2: 695b ldr r3, [r3, #20] + 8003da4: 1ad3 subs r3, r2, r3 + 8003da6: 61fb str r3, [r7, #28] + 8003da8: 68fb ldr r3, [r7, #12] + 8003daa: 689b ldr r3, [r3, #8] + 8003dac: 69fa ldr r2, [r7, #28] + 8003dae: 429a cmp r2, r3 + 8003db0: d902 bls.n 8003db8 + 8003db2: 68fb ldr r3, [r7, #12] + 8003db4: 689b ldr r3, [r3, #8] + 8003db6: 61fb str r3, [r7, #28] + 8003db8: 69fb ldr r3, [r7, #28] + 8003dba: 3303 adds r3, #3 + 8003dbc: 089b lsrs r3, r3, #2 + 8003dbe: 61bb str r3, [r7, #24] + 8003dc0: 68fb ldr r3, [r7, #12] + 8003dc2: 68d9 ldr r1, [r3, #12] + 8003dc4: 683b ldr r3, [r7, #0] + 8003dc6: b2da uxtb r2, r3 + 8003dc8: 69fb ldr r3, [r7, #28] + 8003dca: b298 uxth r0, r3 + 8003dcc: 687b ldr r3, [r7, #4] + 8003dce: 799b ldrb r3, [r3, #6] + 8003dd0: 9300 str r3, [sp, #0] + 8003dd2: 4603 mov r3, r0 + 8003dd4: 6978 ldr r0, [r7, #20] + 8003dd6: f004 fbcd bl 8008574 + 8003dda: 68fb ldr r3, [r7, #12] + 8003ddc: 68da ldr r2, [r3, #12] + 8003dde: 69fb ldr r3, [r7, #28] + 8003de0: 441a add r2, r3 + 8003de2: 68fb ldr r3, [r7, #12] + 8003de4: 60da str r2, [r3, #12] + 8003de6: 68fb ldr r3, [r7, #12] + 8003de8: 695a ldr r2, [r3, #20] + 8003dea: 69fb ldr r3, [r7, #28] + 8003dec: 441a add r2, r3 + 8003dee: 68fb ldr r3, [r7, #12] + 8003df0: 615a str r2, [r3, #20] + 8003df2: 683b ldr r3, [r7, #0] + 8003df4: 015a lsls r2, r3, #5 + 8003df6: 693b ldr r3, [r7, #16] + 8003df8: 4413 add r3, r2 + 8003dfa: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8003dfe: 699b ldr r3, [r3, #24] + 8003e00: b29b uxth r3, r3 + 8003e02: 69ba ldr r2, [r7, #24] + 8003e04: 429a cmp r2, r3 + 8003e06: d809 bhi.n 8003e1c + 8003e08: 68fb ldr r3, [r7, #12] + 8003e0a: 695a ldr r2, [r3, #20] + 8003e0c: 68fb ldr r3, [r7, #12] + 8003e0e: 691b ldr r3, [r3, #16] + 8003e10: 429a cmp r2, r3 + 8003e12: d203 bcs.n 8003e1c 8003e14: 68fb ldr r3, [r7, #12] - 8003e16: 799b ldrb r3, [r3, #6] - 8003e18: 2b01 cmp r3, #1 - 8003e1a: d102 bne.n 8003e22 - { - ep->dma_addr = (uint32_t)pBuf; - 8003e1c: 687a ldr r2, [r7, #4] - 8003e1e: 697b ldr r3, [r7, #20] - 8003e20: 61da str r2, [r3, #28] - } + 8003e16: 691b ldr r3, [r3, #16] + 8003e18: 2b00 cmp r3, #0 + 8003e1a: d1bf bne.n 8003d9c + 8003e1c: 68fb ldr r3, [r7, #12] + 8003e1e: 691a ldr r2, [r3, #16] + 8003e20: 68fb ldr r3, [r7, #12] + 8003e22: 695b ldr r3, [r3, #20] + 8003e24: 429a cmp r2, r3 + 8003e26: d811 bhi.n 8003e4c + 8003e28: 683b ldr r3, [r7, #0] + 8003e2a: f003 030f and.w r3, r3, #15 + 8003e2e: 2201 movs r2, #1 + 8003e30: fa02 f303 lsl.w r3, r2, r3 + 8003e34: 60bb str r3, [r7, #8] + 8003e36: 693b ldr r3, [r7, #16] + 8003e38: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003e3c: 6b5a ldr r2, [r3, #52] @ 0x34 + 8003e3e: 68bb ldr r3, [r7, #8] + 8003e40: 43db mvns r3, r3 + 8003e42: 6939 ldr r1, [r7, #16] + 8003e44: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8003e48: 4013 ands r3, r2 + 8003e4a: 634b str r3, [r1, #52] @ 0x34 + 8003e4c: 2300 movs r3, #0 + 8003e4e: 4618 mov r0, r3 + 8003e50: 3720 adds r7, #32 + 8003e52: 46bd mov sp, r7 + 8003e54: bd80 pop {r7, pc} + ... - (void)USB_EPStartXfer(hpcd->Instance, ep, (uint8_t)hpcd->Init.dma_enable); - 8003e22: 68fb ldr r3, [r7, #12] - 8003e24: 6818 ldr r0, [r3, #0] - 8003e26: 68fb ldr r3, [r7, #12] - 8003e28: 799b ldrb r3, [r3, #6] - 8003e2a: 461a mov r2, r3 - 8003e2c: 6979 ldr r1, [r7, #20] - 8003e2e: f004 f9fb bl 8008228 - - return HAL_OK; - 8003e32: 2300 movs r3, #0 -} - 8003e34: 4618 mov r0, r3 - 8003e36: 3718 adds r7, #24 - 8003e38: 46bd mov sp, r7 - 8003e3a: bd80 pop {r7, pc} - -08003e3c : - * @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) -{ - 8003e3c: b580 push {r7, lr} - 8003e3e: b086 sub sp, #24 - 8003e40: af00 add r7, sp, #0 - 8003e42: 60f8 str r0, [r7, #12] - 8003e44: 607a str r2, [r7, #4] - 8003e46: 603b str r3, [r7, #0] - 8003e48: 460b mov r3, r1 - 8003e4a: 72fb strb r3, [r7, #11] - PCD_EPTypeDef *ep; - - ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003e4c: 7afb ldrb r3, [r7, #11] - 8003e4e: f003 020f and.w r2, r3, #15 - 8003e52: 4613 mov r3, r2 - 8003e54: 00db lsls r3, r3, #3 - 8003e56: 4413 add r3, r2 - 8003e58: 009b lsls r3, r3, #2 - 8003e5a: 3310 adds r3, #16 - 8003e5c: 68fa ldr r2, [r7, #12] - 8003e5e: 4413 add r3, r2 - 8003e60: 3304 adds r3, #4 - 8003e62: 617b str r3, [r7, #20] - - /*setup and start the Xfer */ - ep->xfer_buff = pBuf; - 8003e64: 697b ldr r3, [r7, #20] - 8003e66: 687a ldr r2, [r7, #4] - 8003e68: 60da str r2, [r3, #12] - ep->xfer_len = len; - 8003e6a: 697b ldr r3, [r7, #20] - 8003e6c: 683a ldr r2, [r7, #0] - 8003e6e: 611a str r2, [r3, #16] - ep->xfer_count = 0U; - 8003e70: 697b ldr r3, [r7, #20] - 8003e72: 2200 movs r2, #0 - 8003e74: 615a str r2, [r3, #20] - ep->is_in = 1U; - 8003e76: 697b ldr r3, [r7, #20] - 8003e78: 2201 movs r2, #1 - 8003e7a: 705a strb r2, [r3, #1] - ep->num = ep_addr & EP_ADDR_MSK; - 8003e7c: 7afb ldrb r3, [r7, #11] - 8003e7e: f003 030f and.w r3, r3, #15 - 8003e82: b2da uxtb r2, r3 - 8003e84: 697b ldr r3, [r7, #20] - 8003e86: 701a strb r2, [r3, #0] - - if (hpcd->Init.dma_enable == 1U) - 8003e88: 68fb ldr r3, [r7, #12] - 8003e8a: 799b ldrb r3, [r3, #6] - 8003e8c: 2b01 cmp r3, #1 - 8003e8e: d102 bne.n 8003e96 - { - ep->dma_addr = (uint32_t)pBuf; - 8003e90: 687a ldr r2, [r7, #4] - 8003e92: 697b ldr r3, [r7, #20] - 8003e94: 61da str r2, [r3, #28] - } - - (void)USB_EPStartXfer(hpcd->Instance, ep, (uint8_t)hpcd->Init.dma_enable); - 8003e96: 68fb ldr r3, [r7, #12] - 8003e98: 6818 ldr r0, [r3, #0] - 8003e9a: 68fb ldr r3, [r7, #12] - 8003e9c: 799b ldrb r3, [r3, #6] - 8003e9e: 461a mov r2, r3 - 8003ea0: 6979 ldr r1, [r7, #20] - 8003ea2: f004 f9c1 bl 8008228 - - return HAL_OK; - 8003ea6: 2300 movs r3, #0 -} - 8003ea8: 4618 mov r0, r3 - 8003eaa: 3718 adds r7, #24 - 8003eac: 46bd mov sp, r7 - 8003eae: bd80 pop {r7, pc} - -08003eb0 : - * @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) -{ - 8003eb0: b580 push {r7, lr} - 8003eb2: b084 sub sp, #16 - 8003eb4: af00 add r7, sp, #0 - 8003eb6: 6078 str r0, [r7, #4] - 8003eb8: 460b mov r3, r1 - 8003eba: 70fb strb r3, [r7, #3] - PCD_EPTypeDef *ep; - - if (((uint32_t)ep_addr & EP_ADDR_MSK) > hpcd->Init.dev_endpoints) - 8003ebc: 78fb ldrb r3, [r7, #3] - 8003ebe: f003 030f and.w r3, r3, #15 - 8003ec2: 687a ldr r2, [r7, #4] - 8003ec4: 7912 ldrb r2, [r2, #4] - 8003ec6: 4293 cmp r3, r2 - 8003ec8: d901 bls.n 8003ece - { - return HAL_ERROR; - 8003eca: 2301 movs r3, #1 - 8003ecc: e04f b.n 8003f6e - } - - if ((0x80U & ep_addr) == 0x80U) - 8003ece: f997 3003 ldrsb.w r3, [r7, #3] - 8003ed2: 2b00 cmp r3, #0 - 8003ed4: da0f bge.n 8003ef6 - { - ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003ed6: 78fb ldrb r3, [r7, #3] - 8003ed8: f003 020f and.w r2, r3, #15 - 8003edc: 4613 mov r3, r2 - 8003ede: 00db lsls r3, r3, #3 - 8003ee0: 4413 add r3, r2 - 8003ee2: 009b lsls r3, r3, #2 - 8003ee4: 3310 adds r3, #16 - 8003ee6: 687a ldr r2, [r7, #4] - 8003ee8: 4413 add r3, r2 - 8003eea: 3304 adds r3, #4 - 8003eec: 60fb str r3, [r7, #12] - ep->is_in = 1U; - 8003eee: 68fb ldr r3, [r7, #12] - 8003ef0: 2201 movs r2, #1 - 8003ef2: 705a strb r2, [r3, #1] - 8003ef4: e00d b.n 8003f12 - } - else - { - ep = &hpcd->OUT_ep[ep_addr]; - 8003ef6: 78fa ldrb r2, [r7, #3] - 8003ef8: 4613 mov r3, r2 - 8003efa: 00db lsls r3, r3, #3 - 8003efc: 4413 add r3, r2 - 8003efe: 009b lsls r3, r3, #2 - 8003f00: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003f04: 687a ldr r2, [r7, #4] +08003e58 : + 8003e58: b580 push {r7, lr} + 8003e5a: b088 sub sp, #32 + 8003e5c: af00 add r7, sp, #0 + 8003e5e: 6078 str r0, [r7, #4] + 8003e60: 6039 str r1, [r7, #0] + 8003e62: 687b ldr r3, [r7, #4] + 8003e64: 681b ldr r3, [r3, #0] + 8003e66: 61fb str r3, [r7, #28] + 8003e68: 69fb ldr r3, [r7, #28] + 8003e6a: 61bb str r3, [r7, #24] + 8003e6c: 69fb ldr r3, [r7, #28] + 8003e6e: 333c adds r3, #60 @ 0x3c + 8003e70: 3304 adds r3, #4 + 8003e72: 681b ldr r3, [r3, #0] + 8003e74: 617b str r3, [r7, #20] + 8003e76: 683b ldr r3, [r7, #0] + 8003e78: 015a lsls r2, r3, #5 + 8003e7a: 69bb ldr r3, [r7, #24] + 8003e7c: 4413 add r3, r2 + 8003e7e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003e82: 689b ldr r3, [r3, #8] + 8003e84: 613b str r3, [r7, #16] + 8003e86: 687b ldr r3, [r7, #4] + 8003e88: 799b ldrb r3, [r3, #6] + 8003e8a: 2b01 cmp r3, #1 + 8003e8c: d17b bne.n 8003f86 + 8003e8e: 693b ldr r3, [r7, #16] + 8003e90: f003 0308 and.w r3, r3, #8 + 8003e94: 2b00 cmp r3, #0 + 8003e96: d015 beq.n 8003ec4 + 8003e98: 697b ldr r3, [r7, #20] + 8003e9a: 4a61 ldr r2, [pc, #388] @ (8004020 ) + 8003e9c: 4293 cmp r3, r2 + 8003e9e: f240 80b9 bls.w 8004014 + 8003ea2: 693b ldr r3, [r7, #16] + 8003ea4: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 8003ea8: 2b00 cmp r3, #0 + 8003eaa: f000 80b3 beq.w 8004014 + 8003eae: 683b ldr r3, [r7, #0] + 8003eb0: 015a lsls r2, r3, #5 + 8003eb2: 69bb ldr r3, [r7, #24] + 8003eb4: 4413 add r3, r2 + 8003eb6: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003eba: 461a mov r2, r3 + 8003ebc: f44f 4300 mov.w r3, #32768 @ 0x8000 + 8003ec0: 6093 str r3, [r2, #8] + 8003ec2: e0a7 b.n 8004014 + 8003ec4: 693b ldr r3, [r7, #16] + 8003ec6: f003 0320 and.w r3, r3, #32 + 8003eca: 2b00 cmp r3, #0 + 8003ecc: d009 beq.n 8003ee2 + 8003ece: 683b ldr r3, [r7, #0] + 8003ed0: 015a lsls r2, r3, #5 + 8003ed2: 69bb ldr r3, [r7, #24] + 8003ed4: 4413 add r3, r2 + 8003ed6: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003eda: 461a mov r2, r3 + 8003edc: 2320 movs r3, #32 + 8003ede: 6093 str r3, [r2, #8] + 8003ee0: e098 b.n 8004014 + 8003ee2: 693b ldr r3, [r7, #16] + 8003ee4: f003 0328 and.w r3, r3, #40 @ 0x28 + 8003ee8: 2b00 cmp r3, #0 + 8003eea: f040 8093 bne.w 8004014 + 8003eee: 697b ldr r3, [r7, #20] + 8003ef0: 4a4b ldr r2, [pc, #300] @ (8004020 ) + 8003ef2: 4293 cmp r3, r2 + 8003ef4: d90f bls.n 8003f16 + 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 + 8003f00: 683b ldr r3, [r7, #0] + 8003f02: 015a lsls r2, r3, #5 + 8003f04: 69bb ldr r3, [r7, #24] 8003f06: 4413 add r3, r2 - 8003f08: 3304 adds r3, #4 - 8003f0a: 60fb str r3, [r7, #12] - ep->is_in = 0U; - 8003f0c: 68fb ldr r3, [r7, #12] - 8003f0e: 2200 movs r2, #0 - 8003f10: 705a strb r2, [r3, #1] - } + 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: e07e b.n 8004014 + 8003f16: 683a ldr r2, [r7, #0] + 8003f18: 4613 mov r3, r2 + 8003f1a: 00db lsls r3, r3, #3 + 8003f1c: 4413 add r3, r2 + 8003f1e: 009b lsls r3, r3, #2 + 8003f20: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003f24: 687a ldr r2, [r7, #4] + 8003f26: 4413 add r3, r2 + 8003f28: 3304 adds r3, #4 + 8003f2a: 60fb str r3, [r7, #12] + 8003f2c: 68fb ldr r3, [r7, #12] + 8003f2e: 6a1a ldr r2, [r3, #32] + 8003f30: 683b ldr r3, [r7, #0] + 8003f32: 0159 lsls r1, r3, #5 + 8003f34: 69bb ldr r3, [r7, #24] + 8003f36: 440b add r3, r1 + 8003f38: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003f3c: 691b ldr r3, [r3, #16] + 8003f3e: f3c3 0312 ubfx r3, r3, #0, #19 + 8003f42: 1ad2 subs r2, r2, r3 + 8003f44: 68fb ldr r3, [r7, #12] + 8003f46: 615a str r2, [r3, #20] + 8003f48: 683b ldr r3, [r7, #0] + 8003f4a: 2b00 cmp r3, #0 + 8003f4c: d114 bne.n 8003f78 + 8003f4e: 68fb ldr r3, [r7, #12] + 8003f50: 691b ldr r3, [r3, #16] + 8003f52: 2b00 cmp r3, #0 + 8003f54: d109 bne.n 8003f6a + 8003f56: 687b ldr r3, [r7, #4] + 8003f58: 6818 ldr r0, [r3, #0] + 8003f5a: 687b ldr r3, [r7, #4] + 8003f5c: f203 439c addw r3, r3, #1180 @ 0x49c + 8003f60: 461a mov r2, r3 + 8003f62: 2101 movs r1, #1 + 8003f64: f004 fd9c bl 8008aa0 + 8003f68: e006 b.n 8003f78 + 8003f6a: 68fb ldr r3, [r7, #12] + 8003f6c: 68da ldr r2, [r3, #12] + 8003f6e: 68fb ldr r3, [r7, #12] + 8003f70: 695b ldr r3, [r3, #20] + 8003f72: 441a add r2, r3 + 8003f74: 68fb ldr r3, [r7, #12] + 8003f76: 60da str r2, [r3, #12] + 8003f78: 683b ldr r3, [r7, #0] + 8003f7a: b2db uxtb r3, r3 + 8003f7c: 4619 mov r1, r3 + 8003f7e: 6878 ldr r0, [r7, #4] + 8003f80: f006 fd6a bl 800aa58 + 8003f84: e046 b.n 8004014 + 8003f86: 697b ldr r3, [r7, #20] + 8003f88: 4a26 ldr r2, [pc, #152] @ (8004024 ) + 8003f8a: 4293 cmp r3, r2 + 8003f8c: d124 bne.n 8003fd8 + 8003f8e: 693b ldr r3, [r7, #16] + 8003f90: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 8003f94: 2b00 cmp r3, #0 + 8003f96: d00a beq.n 8003fae + 8003f98: 683b ldr r3, [r7, #0] + 8003f9a: 015a lsls r2, r3, #5 + 8003f9c: 69bb ldr r3, [r7, #24] + 8003f9e: 4413 add r3, r2 + 8003fa0: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003fa4: 461a mov r2, r3 + 8003fa6: f44f 4300 mov.w r3, #32768 @ 0x8000 + 8003faa: 6093 str r3, [r2, #8] + 8003fac: e032 b.n 8004014 + 8003fae: 693b ldr r3, [r7, #16] + 8003fb0: f003 0320 and.w r3, r3, #32 + 8003fb4: 2b00 cmp r3, #0 + 8003fb6: d008 beq.n 8003fca + 8003fb8: 683b ldr r3, [r7, #0] + 8003fba: 015a lsls r2, r3, #5 + 8003fbc: 69bb ldr r3, [r7, #24] + 8003fbe: 4413 add r3, r2 + 8003fc0: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003fc4: 461a mov r2, r3 + 8003fc6: 2320 movs r3, #32 + 8003fc8: 6093 str r3, [r2, #8] + 8003fca: 683b ldr r3, [r7, #0] + 8003fcc: b2db uxtb r3, r3 + 8003fce: 4619 mov r1, r3 + 8003fd0: 6878 ldr r0, [r7, #4] + 8003fd2: f006 fd41 bl 800aa58 + 8003fd6: e01d b.n 8004014 + 8003fd8: 683b ldr r3, [r7, #0] + 8003fda: 2b00 cmp r3, #0 + 8003fdc: d114 bne.n 8004008 + 8003fde: 6879 ldr r1, [r7, #4] + 8003fe0: 683a ldr r2, [r7, #0] + 8003fe2: 4613 mov r3, r2 + 8003fe4: 00db lsls r3, r3, #3 + 8003fe6: 4413 add r3, r2 + 8003fe8: 009b lsls r3, r3, #2 + 8003fea: 440b add r3, r1 + 8003fec: f503 7319 add.w r3, r3, #612 @ 0x264 + 8003ff0: 681b ldr r3, [r3, #0] + 8003ff2: 2b00 cmp r3, #0 + 8003ff4: d108 bne.n 8004008 + 8003ff6: 687b ldr r3, [r7, #4] + 8003ff8: 6818 ldr r0, [r3, #0] + 8003ffa: 687b ldr r3, [r7, #4] + 8003ffc: f203 439c addw r3, r3, #1180 @ 0x49c + 8004000: 461a mov r2, r3 + 8004002: 2100 movs r1, #0 + 8004004: f004 fd4c bl 8008aa0 + 8004008: 683b ldr r3, [r7, #0] + 800400a: b2db uxtb r3, r3 + 800400c: 4619 mov r1, r3 + 800400e: 6878 ldr r0, [r7, #4] + 8004010: f006 fd22 bl 800aa58 + 8004014: 2300 movs r3, #0 + 8004016: 4618 mov r0, r3 + 8004018: 3720 adds r7, #32 + 800401a: 46bd mov sp, r7 + 800401c: bd80 pop {r7, pc} + 800401e: bf00 nop + 8004020: 4f54300a .word 0x4f54300a + 8004024: 4f54310a .word 0x4f54310a - ep->is_stall = 1U; - 8003f12: 68fb ldr r3, [r7, #12] - 8003f14: 2201 movs r2, #1 - 8003f16: 709a strb r2, [r3, #2] - ep->num = ep_addr & EP_ADDR_MSK; - 8003f18: 78fb ldrb r3, [r7, #3] - 8003f1a: f003 030f and.w r3, r3, #15 - 8003f1e: b2da uxtb r2, r3 - 8003f20: 68fb ldr r3, [r7, #12] - 8003f22: 701a strb r2, [r3, #0] +08004028 : + 8004028: b580 push {r7, lr} + 800402a: b086 sub sp, #24 + 800402c: af00 add r7, sp, #0 + 800402e: 6078 str r0, [r7, #4] + 8004030: 6039 str r1, [r7, #0] + 8004032: 687b ldr r3, [r7, #4] + 8004034: 681b ldr r3, [r3, #0] + 8004036: 617b str r3, [r7, #20] + 8004038: 697b ldr r3, [r7, #20] + 800403a: 613b str r3, [r7, #16] + 800403c: 697b ldr r3, [r7, #20] + 800403e: 333c adds r3, #60 @ 0x3c + 8004040: 3304 adds r3, #4 + 8004042: 681b ldr r3, [r3, #0] + 8004044: 60fb str r3, [r7, #12] + 8004046: 683b ldr r3, [r7, #0] + 8004048: 015a lsls r2, r3, #5 + 800404a: 693b ldr r3, [r7, #16] + 800404c: 4413 add r3, r2 + 800404e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8004052: 689b ldr r3, [r3, #8] + 8004054: 60bb str r3, [r7, #8] + 8004056: 68fb ldr r3, [r7, #12] + 8004058: 4a15 ldr r2, [pc, #84] @ (80040b0 ) + 800405a: 4293 cmp r3, r2 + 800405c: d90e bls.n 800407c + 800405e: 68bb ldr r3, [r7, #8] + 8004060: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 8004064: 2b00 cmp r3, #0 + 8004066: d009 beq.n 800407c + 8004068: 683b ldr r3, [r7, #0] + 800406a: 015a lsls r2, r3, #5 + 800406c: 693b ldr r3, [r7, #16] + 800406e: 4413 add r3, r2 + 8004070: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8004074: 461a mov r2, r3 + 8004076: f44f 4300 mov.w r3, #32768 @ 0x8000 + 800407a: 6093 str r3, [r2, #8] + 800407c: 6878 ldr r0, [r7, #4] + 800407e: f006 fcd9 bl 800aa34 + 8004082: 68fb ldr r3, [r7, #12] + 8004084: 4a0a ldr r2, [pc, #40] @ (80040b0 ) + 8004086: 4293 cmp r3, r2 + 8004088: d90c bls.n 80040a4 + 800408a: 687b ldr r3, [r7, #4] + 800408c: 799b ldrb r3, [r3, #6] + 800408e: 2b01 cmp r3, #1 + 8004090: d108 bne.n 80040a4 + 8004092: 687b ldr r3, [r7, #4] + 8004094: 6818 ldr r0, [r3, #0] + 8004096: 687b ldr r3, [r7, #4] + 8004098: f203 439c addw r3, r3, #1180 @ 0x49c + 800409c: 461a mov r2, r3 + 800409e: 2101 movs r1, #1 + 80040a0: f004 fcfe bl 8008aa0 + 80040a4: 2300 movs r3, #0 + 80040a6: 4618 mov r0, r3 + 80040a8: 3718 adds r7, #24 + 80040aa: 46bd mov sp, r7 + 80040ac: bd80 pop {r7, pc} + 80040ae: bf00 nop + 80040b0: 4f54300a .word 0x4f54300a - __HAL_LOCK(hpcd); - 8003f24: 687b ldr r3, [r7, #4] - 8003f26: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003f2a: 2b01 cmp r3, #1 - 8003f2c: d101 bne.n 8003f32 - 8003f2e: 2302 movs r3, #2 - 8003f30: e01d b.n 8003f6e - 8003f32: 687b ldr r3, [r7, #4] - 8003f34: 2201 movs r2, #1 - 8003f36: f883 2494 strb.w r2, [r3, #1172] @ 0x494 +080040b4 : + 80040b4: b480 push {r7} + 80040b6: b085 sub sp, #20 + 80040b8: af00 add r7, sp, #0 + 80040ba: 6078 str r0, [r7, #4] + 80040bc: 460b mov r3, r1 + 80040be: 70fb strb r3, [r7, #3] + 80040c0: 4613 mov r3, r2 + 80040c2: 803b strh r3, [r7, #0] + 80040c4: 687b ldr r3, [r7, #4] + 80040c6: 681b ldr r3, [r3, #0] + 80040c8: 6a5b ldr r3, [r3, #36] @ 0x24 + 80040ca: 60bb str r3, [r7, #8] + 80040cc: 78fb ldrb r3, [r7, #3] + 80040ce: 2b00 cmp r3, #0 + 80040d0: d107 bne.n 80040e2 + 80040d2: 883b ldrh r3, [r7, #0] + 80040d4: 0419 lsls r1, r3, #16 + 80040d6: 687b ldr r3, [r7, #4] + 80040d8: 681b ldr r3, [r3, #0] + 80040da: 68ba ldr r2, [r7, #8] + 80040dc: 430a orrs r2, r1 + 80040de: 629a str r2, [r3, #40] @ 0x28 + 80040e0: e028 b.n 8004134 + 80040e2: 687b ldr r3, [r7, #4] + 80040e4: 681b ldr r3, [r3, #0] + 80040e6: 6a9b ldr r3, [r3, #40] @ 0x28 + 80040e8: 0c1b lsrs r3, r3, #16 + 80040ea: 68ba ldr r2, [r7, #8] + 80040ec: 4413 add r3, r2 + 80040ee: 60bb str r3, [r7, #8] + 80040f0: 2300 movs r3, #0 + 80040f2: 73fb strb r3, [r7, #15] + 80040f4: e00d b.n 8004112 + 80040f6: 687b ldr r3, [r7, #4] + 80040f8: 681a ldr r2, [r3, #0] + 80040fa: 7bfb ldrb r3, [r7, #15] + 80040fc: 3340 adds r3, #64 @ 0x40 + 80040fe: 009b lsls r3, r3, #2 + 8004100: 4413 add r3, r2 + 8004102: 685b ldr r3, [r3, #4] + 8004104: 0c1b lsrs r3, r3, #16 + 8004106: 68ba ldr r2, [r7, #8] + 8004108: 4413 add r3, r2 + 800410a: 60bb str r3, [r7, #8] + 800410c: 7bfb ldrb r3, [r7, #15] + 800410e: 3301 adds r3, #1 + 8004110: 73fb strb r3, [r7, #15] + 8004112: 7bfa ldrb r2, [r7, #15] + 8004114: 78fb ldrb r3, [r7, #3] + 8004116: 3b01 subs r3, #1 + 8004118: 429a cmp r2, r3 + 800411a: d3ec bcc.n 80040f6 + 800411c: 883b ldrh r3, [r7, #0] + 800411e: 0418 lsls r0, r3, #16 + 8004120: 687b ldr r3, [r7, #4] + 8004122: 6819 ldr r1, [r3, #0] + 8004124: 78fb ldrb r3, [r7, #3] + 8004126: 3b01 subs r3, #1 + 8004128: 68ba ldr r2, [r7, #8] + 800412a: 4302 orrs r2, r0 + 800412c: 3340 adds r3, #64 @ 0x40 + 800412e: 009b lsls r3, r3, #2 + 8004130: 440b add r3, r1 + 8004132: 605a str r2, [r3, #4] + 8004134: 2300 movs r3, #0 + 8004136: 4618 mov r0, r3 + 8004138: 3714 adds r7, #20 + 800413a: 46bd mov sp, r7 + 800413c: f85d 7b04 ldr.w r7, [sp], #4 + 8004140: 4770 bx lr - (void)USB_EPSetStall(hpcd->Instance, ep); - 8003f3a: 687b ldr r3, [r7, #4] - 8003f3c: 681b ldr r3, [r3, #0] - 8003f3e: 68f9 ldr r1, [r7, #12] - 8003f40: 4618 mov r0, r3 - 8003f42: f004 fd4f bl 80089e4 +08004142 : + 8004142: b480 push {r7} + 8004144: b083 sub sp, #12 + 8004146: af00 add r7, sp, #0 + 8004148: 6078 str r0, [r7, #4] + 800414a: 460b mov r3, r1 + 800414c: 807b strh r3, [r7, #2] + 800414e: 687b ldr r3, [r7, #4] + 8004150: 681b ldr r3, [r3, #0] + 8004152: 887a ldrh r2, [r7, #2] + 8004154: 625a str r2, [r3, #36] @ 0x24 + 8004156: 2300 movs r3, #0 + 8004158: 4618 mov r0, r3 + 800415a: 370c adds r7, #12 + 800415c: 46bd mov sp, r7 + 800415e: f85d 7b04 ldr.w r7, [sp], #4 + 8004162: 4770 bx lr - if ((ep_addr & EP_ADDR_MSK) == 0U) - 8003f46: 78fb ldrb r3, [r7, #3] - 8003f48: f003 030f and.w r3, r3, #15 - 8003f4c: 2b00 cmp r3, #0 - 8003f4e: d109 bne.n 8003f64 - { - (void)USB_EP0_OutStart(hpcd->Instance, (uint8_t)hpcd->Init.dma_enable, (uint8_t *)hpcd->Setup); - 8003f50: 687b ldr r3, [r7, #4] - 8003f52: 6818 ldr r0, [r3, #0] - 8003f54: 687b ldr r3, [r7, #4] - 8003f56: 7999 ldrb r1, [r3, #6] - 8003f58: 687b ldr r3, [r7, #4] - 8003f5a: f203 439c addw r3, r3, #1180 @ 0x49c - 8003f5e: 461a mov r2, r3 - 8003f60: f004 ff40 bl 8008de4 - } - - __HAL_UNLOCK(hpcd); - 8003f64: 687b ldr r3, [r7, #4] - 8003f66: 2200 movs r2, #0 - 8003f68: f883 2494 strb.w r2, [r3, #1172] @ 0x494 - - return HAL_OK; - 8003f6c: 2300 movs r3, #0 -} - 8003f6e: 4618 mov r0, r3 - 8003f70: 3710 adds r7, #16 - 8003f72: 46bd mov sp, r7 - 8003f74: bd80 pop {r7, pc} - -08003f76 : - * @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) -{ - 8003f76: b580 push {r7, lr} - 8003f78: b084 sub sp, #16 - 8003f7a: af00 add r7, sp, #0 - 8003f7c: 6078 str r0, [r7, #4] - 8003f7e: 460b mov r3, r1 - 8003f80: 70fb strb r3, [r7, #3] - PCD_EPTypeDef *ep; - - if (((uint32_t)ep_addr & 0x0FU) > hpcd->Init.dev_endpoints) - 8003f82: 78fb ldrb r3, [r7, #3] - 8003f84: f003 030f and.w r3, r3, #15 - 8003f88: 687a ldr r2, [r7, #4] - 8003f8a: 7912 ldrb r2, [r2, #4] - 8003f8c: 4293 cmp r3, r2 - 8003f8e: d901 bls.n 8003f94 - { - return HAL_ERROR; - 8003f90: 2301 movs r3, #1 - 8003f92: e042 b.n 800401a - } - - if ((0x80U & ep_addr) == 0x80U) - 8003f94: f997 3003 ldrsb.w r3, [r7, #3] - 8003f98: 2b00 cmp r3, #0 - 8003f9a: da0f bge.n 8003fbc - { - ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003f9c: 78fb ldrb r3, [r7, #3] - 8003f9e: f003 020f and.w r2, r3, #15 - 8003fa2: 4613 mov r3, r2 - 8003fa4: 00db lsls r3, r3, #3 - 8003fa6: 4413 add r3, r2 - 8003fa8: 009b lsls r3, r3, #2 - 8003faa: 3310 adds r3, #16 - 8003fac: 687a ldr r2, [r7, #4] - 8003fae: 4413 add r3, r2 - 8003fb0: 3304 adds r3, #4 - 8003fb2: 60fb str r3, [r7, #12] - ep->is_in = 1U; - 8003fb4: 68fb ldr r3, [r7, #12] - 8003fb6: 2201 movs r2, #1 - 8003fb8: 705a strb r2, [r3, #1] - 8003fba: e00f b.n 8003fdc - } - else - { - ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 8003fbc: 78fb ldrb r3, [r7, #3] - 8003fbe: f003 020f and.w r2, r3, #15 - 8003fc2: 4613 mov r3, r2 - 8003fc4: 00db lsls r3, r3, #3 - 8003fc6: 4413 add r3, r2 - 8003fc8: 009b lsls r3, r3, #2 - 8003fca: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003fce: 687a ldr r2, [r7, #4] - 8003fd0: 4413 add r3, r2 - 8003fd2: 3304 adds r3, #4 - 8003fd4: 60fb str r3, [r7, #12] - ep->is_in = 0U; - 8003fd6: 68fb ldr r3, [r7, #12] - 8003fd8: 2200 movs r2, #0 - 8003fda: 705a strb r2, [r3, #1] - } - - ep->is_stall = 0U; - 8003fdc: 68fb ldr r3, [r7, #12] - 8003fde: 2200 movs r2, #0 - 8003fe0: 709a strb r2, [r3, #2] - ep->num = ep_addr & EP_ADDR_MSK; - 8003fe2: 78fb ldrb r3, [r7, #3] - 8003fe4: f003 030f and.w r3, r3, #15 - 8003fe8: b2da uxtb r2, r3 - 8003fea: 68fb ldr r3, [r7, #12] - 8003fec: 701a strb r2, [r3, #0] - - __HAL_LOCK(hpcd); - 8003fee: 687b ldr r3, [r7, #4] - 8003ff0: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003ff4: 2b01 cmp r3, #1 - 8003ff6: d101 bne.n 8003ffc - 8003ff8: 2302 movs r3, #2 - 8003ffa: e00e b.n 800401a - 8003ffc: 687b ldr r3, [r7, #4] - 8003ffe: 2201 movs r2, #1 - 8004000: f883 2494 strb.w r2, [r3, #1172] @ 0x494 - (void)USB_EPClearStall(hpcd->Instance, ep); - 8004004: 687b ldr r3, [r7, #4] - 8004006: 681b ldr r3, [r3, #0] - 8004008: 68f9 ldr r1, [r7, #12] - 800400a: 4618 mov r0, r3 - 800400c: f004 fd58 bl 8008ac0 - __HAL_UNLOCK(hpcd); - 8004010: 687b ldr r3, [r7, #4] - 8004012: 2200 movs r2, #0 - 8004014: f883 2494 strb.w r2, [r3, #1172] @ 0x494 - - return HAL_OK; - 8004018: 2300 movs r3, #0 -} - 800401a: 4618 mov r0, r3 - 800401c: 3710 adds r7, #16 - 800401e: 46bd mov sp, r7 - 8004020: bd80 pop {r7, pc} - -08004022 : - * @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) -{ - 8004022: b580 push {r7, lr} - 8004024: b084 sub sp, #16 - 8004026: af00 add r7, sp, #0 - 8004028: 6078 str r0, [r7, #4] - 800402a: 460b mov r3, r1 - 800402c: 70fb strb r3, [r7, #3] - HAL_StatusTypeDef ret; - PCD_EPTypeDef *ep; - - if ((0x80U & ep_addr) == 0x80U) - 800402e: f997 3003 ldrsb.w r3, [r7, #3] - 8004032: 2b00 cmp r3, #0 - 8004034: da0c bge.n 8004050 - { - ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8004036: 78fb ldrb r3, [r7, #3] - 8004038: f003 020f and.w r2, r3, #15 - 800403c: 4613 mov r3, r2 - 800403e: 00db lsls r3, r3, #3 - 8004040: 4413 add r3, r2 - 8004042: 009b lsls r3, r3, #2 - 8004044: 3310 adds r3, #16 - 8004046: 687a ldr r2, [r7, #4] - 8004048: 4413 add r3, r2 - 800404a: 3304 adds r3, #4 - 800404c: 60fb str r3, [r7, #12] - 800404e: e00c b.n 800406a - } - else - { - ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 8004050: 78fb ldrb r3, [r7, #3] - 8004052: f003 020f and.w r2, r3, #15 - 8004056: 4613 mov r3, r2 - 8004058: 00db lsls r3, r3, #3 - 800405a: 4413 add r3, r2 - 800405c: 009b lsls r3, r3, #2 - 800405e: f503 7314 add.w r3, r3, #592 @ 0x250 - 8004062: 687a ldr r2, [r7, #4] - 8004064: 4413 add r3, r2 - 8004066: 3304 adds r3, #4 - 8004068: 60fb str r3, [r7, #12] - } - - /* Stop Xfer */ - ret = USB_EPStopXfer(hpcd->Instance, ep); - 800406a: 687b ldr r3, [r7, #4] - 800406c: 681b ldr r3, [r3, #0] - 800406e: 68f9 ldr r1, [r7, #12] - 8004070: 4618 mov r0, r3 - 8004072: f004 fb77 bl 8008764 - 8004076: 4603 mov r3, r0 - 8004078: 72fb strb r3, [r7, #11] - - return ret; - 800407a: 7afb ldrb r3, [r7, #11] -} - 800407c: 4618 mov r0, r3 - 800407e: 3710 adds r7, #16 - 8004080: 46bd mov sp, r7 - 8004082: bd80 pop {r7, pc} - -08004084 : - * @param hpcd PCD handle - * @param epnum endpoint number - * @retval HAL status - */ -static HAL_StatusTypeDef PCD_WriteEmptyTxFifo(PCD_HandleTypeDef *hpcd, uint32_t epnum) -{ - 8004084: b580 push {r7, lr} - 8004086: b08a sub sp, #40 @ 0x28 - 8004088: af02 add r7, sp, #8 - 800408a: 6078 str r0, [r7, #4] - 800408c: 6039 str r1, [r7, #0] - USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 800408e: 687b ldr r3, [r7, #4] - 8004090: 681b ldr r3, [r3, #0] - 8004092: 617b str r3, [r7, #20] - uint32_t USBx_BASE = (uint32_t)USBx; - 8004094: 697b ldr r3, [r7, #20] - 8004096: 613b str r3, [r7, #16] - USB_OTG_EPTypeDef *ep; - uint32_t len; - uint32_t len32b; - uint32_t fifoemptymsk; - - ep = &hpcd->IN_ep[epnum]; - 8004098: 683a ldr r2, [r7, #0] - 800409a: 4613 mov r3, r2 - 800409c: 00db lsls r3, r3, #3 - 800409e: 4413 add r3, r2 - 80040a0: 009b lsls r3, r3, #2 - 80040a2: 3310 adds r3, #16 - 80040a4: 687a ldr r2, [r7, #4] - 80040a6: 4413 add r3, r2 - 80040a8: 3304 adds r3, #4 - 80040aa: 60fb str r3, [r7, #12] - - if (ep->xfer_count > ep->xfer_len) - 80040ac: 68fb ldr r3, [r7, #12] - 80040ae: 695a ldr r2, [r3, #20] - 80040b0: 68fb ldr r3, [r7, #12] - 80040b2: 691b ldr r3, [r3, #16] - 80040b4: 429a cmp r2, r3 - 80040b6: d901 bls.n 80040bc - { - return HAL_ERROR; - 80040b8: 2301 movs r3, #1 - 80040ba: e06b b.n 8004194 - } - - len = ep->xfer_len - ep->xfer_count; - 80040bc: 68fb ldr r3, [r7, #12] - 80040be: 691a ldr r2, [r3, #16] - 80040c0: 68fb ldr r3, [r7, #12] - 80040c2: 695b ldr r3, [r3, #20] - 80040c4: 1ad3 subs r3, r2, r3 - 80040c6: 61fb str r3, [r7, #28] - - if (len > ep->maxpacket) - 80040c8: 68fb ldr r3, [r7, #12] - 80040ca: 689b ldr r3, [r3, #8] - 80040cc: 69fa ldr r2, [r7, #28] - 80040ce: 429a cmp r2, r3 - 80040d0: d902 bls.n 80040d8 - { - len = ep->maxpacket; - 80040d2: 68fb ldr r3, [r7, #12] - 80040d4: 689b ldr r3, [r3, #8] - 80040d6: 61fb str r3, [r7, #28] - } - - len32b = (len + 3U) / 4U; - 80040d8: 69fb ldr r3, [r7, #28] - 80040da: 3303 adds r3, #3 - 80040dc: 089b lsrs r3, r3, #2 - 80040de: 61bb str r3, [r7, #24] - - while (((USBx_INEP(epnum)->DTXFSTS & USB_OTG_DTXFSTS_INEPTFSAV) >= len32b) && - 80040e0: e02a b.n 8004138 - (ep->xfer_count < ep->xfer_len) && (ep->xfer_len != 0U)) - { - /* Write the FIFO */ - len = ep->xfer_len - ep->xfer_count; - 80040e2: 68fb ldr r3, [r7, #12] - 80040e4: 691a ldr r2, [r3, #16] - 80040e6: 68fb ldr r3, [r7, #12] - 80040e8: 695b ldr r3, [r3, #20] - 80040ea: 1ad3 subs r3, r2, r3 - 80040ec: 61fb str r3, [r7, #28] - - if (len > ep->maxpacket) - 80040ee: 68fb ldr r3, [r7, #12] - 80040f0: 689b ldr r3, [r3, #8] - 80040f2: 69fa ldr r2, [r7, #28] - 80040f4: 429a cmp r2, r3 - 80040f6: d902 bls.n 80040fe - { - len = ep->maxpacket; - 80040f8: 68fb ldr r3, [r7, #12] - 80040fa: 689b ldr r3, [r3, #8] - 80040fc: 61fb str r3, [r7, #28] - } - len32b = (len + 3U) / 4U; - 80040fe: 69fb ldr r3, [r7, #28] - 8004100: 3303 adds r3, #3 - 8004102: 089b lsrs r3, r3, #2 - 8004104: 61bb str r3, [r7, #24] - - (void)USB_WritePacket(USBx, ep->xfer_buff, (uint8_t)epnum, (uint16_t)len, - 8004106: 68fb ldr r3, [r7, #12] - 8004108: 68d9 ldr r1, [r3, #12] - 800410a: 683b ldr r3, [r7, #0] - 800410c: b2da uxtb r2, r3 - 800410e: 69fb ldr r3, [r7, #28] - 8004110: b298 uxth r0, r3 - (uint8_t)hpcd->Init.dma_enable); - 8004112: 687b ldr r3, [r7, #4] - 8004114: 799b ldrb r3, [r3, #6] - (void)USB_WritePacket(USBx, ep->xfer_buff, (uint8_t)epnum, (uint16_t)len, - 8004116: 9300 str r3, [sp, #0] - 8004118: 4603 mov r3, r0 - 800411a: 6978 ldr r0, [r7, #20] - 800411c: f004 fbcc bl 80088b8 - - ep->xfer_buff += len; - 8004120: 68fb ldr r3, [r7, #12] - 8004122: 68da ldr r2, [r3, #12] - 8004124: 69fb ldr r3, [r7, #28] - 8004126: 441a add r2, r3 - 8004128: 68fb ldr r3, [r7, #12] - 800412a: 60da str r2, [r3, #12] - ep->xfer_count += len; - 800412c: 68fb ldr r3, [r7, #12] - 800412e: 695a ldr r2, [r3, #20] - 8004130: 69fb ldr r3, [r7, #28] - 8004132: 441a add r2, r3 - 8004134: 68fb ldr r3, [r7, #12] - 8004136: 615a str r2, [r3, #20] - while (((USBx_INEP(epnum)->DTXFSTS & USB_OTG_DTXFSTS_INEPTFSAV) >= len32b) && - 8004138: 683b ldr r3, [r7, #0] - 800413a: 015a lsls r2, r3, #5 - 800413c: 693b ldr r3, [r7, #16] - 800413e: 4413 add r3, r2 - 8004140: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8004144: 699b ldr r3, [r3, #24] - 8004146: b29b uxth r3, r3 - (ep->xfer_count < ep->xfer_len) && (ep->xfer_len != 0U)) - 8004148: 69ba ldr r2, [r7, #24] - 800414a: 429a cmp r2, r3 - 800414c: d809 bhi.n 8004162 - 800414e: 68fb ldr r3, [r7, #12] - 8004150: 695a ldr r2, [r3, #20] - 8004152: 68fb ldr r3, [r7, #12] - 8004154: 691b ldr r3, [r3, #16] - while (((USBx_INEP(epnum)->DTXFSTS & USB_OTG_DTXFSTS_INEPTFSAV) >= len32b) && - 8004156: 429a cmp r2, r3 - 8004158: d203 bcs.n 8004162 - (ep->xfer_count < ep->xfer_len) && (ep->xfer_len != 0U)) - 800415a: 68fb ldr r3, [r7, #12] - 800415c: 691b ldr r3, [r3, #16] - 800415e: 2b00 cmp r3, #0 - 8004160: d1bf bne.n 80040e2 - } - - if (ep->xfer_len <= ep->xfer_count) - 8004162: 68fb ldr r3, [r7, #12] - 8004164: 691a ldr r2, [r3, #16] - 8004166: 68fb ldr r3, [r7, #12] - 8004168: 695b ldr r3, [r3, #20] - 800416a: 429a cmp r2, r3 - 800416c: d811 bhi.n 8004192 - { - fifoemptymsk = (uint32_t)(0x1UL << (epnum & EP_ADDR_MSK)); - 800416e: 683b ldr r3, [r7, #0] - 8004170: f003 030f and.w r3, r3, #15 +08004164 : + 8004164: b480 push {r7} + 8004166: b085 sub sp, #20 + 8004168: af00 add r7, sp, #0 + 800416a: 6078 str r0, [r7, #4] + 800416c: 687b ldr r3, [r7, #4] + 800416e: 681b ldr r3, [r3, #0] + 8004170: 60fb str r3, [r7, #12] + 8004172: 687b ldr r3, [r7, #4] 8004174: 2201 movs r2, #1 - 8004176: fa02 f303 lsl.w r3, r2, r3 - 800417a: 60bb str r3, [r7, #8] - USBx_DEVICE->DIEPEMPMSK &= ~fifoemptymsk; - 800417c: 693b ldr r3, [r7, #16] - 800417e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8004182: 6b5a ldr r2, [r3, #52] @ 0x34 - 8004184: 68bb ldr r3, [r7, #8] - 8004186: 43db mvns r3, r3 - 8004188: 6939 ldr r1, [r7, #16] - 800418a: f501 6100 add.w r1, r1, #2048 @ 0x800 - 800418e: 4013 ands r3, r2 - 8004190: 634b str r3, [r1, #52] @ 0x34 - } + 8004176: f8c3 24d8 str.w r2, [r3, #1240] @ 0x4d8 + 800417a: 687b ldr r3, [r7, #4] + 800417c: 2200 movs r2, #0 + 800417e: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc + 8004182: 68fb ldr r3, [r7, #12] + 8004184: 699b ldr r3, [r3, #24] + 8004186: f043 6200 orr.w r2, r3, #134217728 @ 0x8000000 + 800418a: 68fb ldr r3, [r7, #12] + 800418c: 619a str r2, [r3, #24] + 800418e: 68fb ldr r3, [r7, #12] + 8004190: 6d5b ldr r3, [r3, #84] @ 0x54 + 8004192: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8004196: f043 0303 orr.w r3, r3, #3 + 800419a: 68fa ldr r2, [r7, #12] + 800419c: 6553 str r3, [r2, #84] @ 0x54 + 800419e: 2300 movs r3, #0 + 80041a0: 4618 mov r0, r3 + 80041a2: 3714 adds r7, #20 + 80041a4: 46bd mov sp, r7 + 80041a6: f85d 7b04 ldr.w r7, [sp], #4 + 80041aa: 4770 bx lr - return HAL_OK; - 8004192: 2300 movs r3, #0 -} - 8004194: 4618 mov r0, r3 - 8004196: 3720 adds r7, #32 - 8004198: 46bd mov sp, r7 - 800419a: bd80 pop {r7, pc} - -0800419c : - * @param hpcd PCD handle - * @param epnum endpoint number - * @retval HAL status - */ -static HAL_StatusTypeDef PCD_EP_OutXfrComplete_int(PCD_HandleTypeDef *hpcd, uint32_t epnum) -{ - 800419c: b580 push {r7, lr} - 800419e: b088 sub sp, #32 - 80041a0: af00 add r7, sp, #0 - 80041a2: 6078 str r0, [r7, #4] - 80041a4: 6039 str r1, [r7, #0] - USB_OTG_EPTypeDef *ep; - const USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 80041a6: 687b ldr r3, [r7, #4] - 80041a8: 681b ldr r3, [r3, #0] - 80041aa: 61fb str r3, [r7, #28] - uint32_t USBx_BASE = (uint32_t)USBx; - 80041ac: 69fb ldr r3, [r7, #28] - 80041ae: 61bb str r3, [r7, #24] - uint32_t gSNPSiD = *(__IO const uint32_t *)(&USBx->CID + 0x1U); - 80041b0: 69fb ldr r3, [r7, #28] - 80041b2: 333c adds r3, #60 @ 0x3c - 80041b4: 3304 adds r3, #4 - 80041b6: 681b ldr r3, [r3, #0] - 80041b8: 617b str r3, [r7, #20] - uint32_t DoepintReg = USBx_OUTEP(epnum)->DOEPINT; - 80041ba: 683b ldr r3, [r7, #0] - 80041bc: 015a lsls r2, r3, #5 - 80041be: 69bb ldr r3, [r7, #24] - 80041c0: 4413 add r3, r2 - 80041c2: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80041c6: 689b ldr r3, [r3, #8] - 80041c8: 613b str r3, [r7, #16] - - if (hpcd->Init.dma_enable == 1U) - 80041ca: 687b ldr r3, [r7, #4] - 80041cc: 799b ldrb r3, [r3, #6] - 80041ce: 2b01 cmp r3, #1 - 80041d0: d17b bne.n 80042ca - { - if ((DoepintReg & USB_OTG_DOEPINT_STUP) == USB_OTG_DOEPINT_STUP) /* Class C */ - 80041d2: 693b ldr r3, [r7, #16] - 80041d4: f003 0308 and.w r3, r3, #8 - 80041d8: 2b00 cmp r3, #0 - 80041da: d015 beq.n 8004208 - { - /* StupPktRcvd = 1 this is a setup packet */ - if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 80041dc: 697b ldr r3, [r7, #20] - 80041de: 4a61 ldr r2, [pc, #388] @ (8004364 ) - 80041e0: 4293 cmp r3, r2 - 80041e2: f240 80b9 bls.w 8004358 - ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX)) - 80041e6: 693b ldr r3, [r7, #16] - 80041e8: f403 4300 and.w r3, r3, #32768 @ 0x8000 - if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 80041ec: 2b00 cmp r3, #0 - 80041ee: f000 80b3 beq.w 8004358 - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); - 80041f2: 683b ldr r3, [r7, #0] - 80041f4: 015a lsls r2, r3, #5 - 80041f6: 69bb ldr r3, [r7, #24] - 80041f8: 4413 add r3, r2 - 80041fa: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80041fe: 461a mov r2, r3 - 8004200: f44f 4300 mov.w r3, #32768 @ 0x8000 - 8004204: 6093 str r3, [r2, #8] - 8004206: e0a7 b.n 8004358 - } - } - else if ((DoepintReg & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) /* Class E */ - 8004208: 693b ldr r3, [r7, #16] - 800420a: f003 0320 and.w r3, r3, #32 - 800420e: 2b00 cmp r3, #0 - 8004210: d009 beq.n 8004226 - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); - 8004212: 683b ldr r3, [r7, #0] - 8004214: 015a lsls r2, r3, #5 - 8004216: 69bb ldr r3, [r7, #24] - 8004218: 4413 add r3, r2 - 800421a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800421e: 461a mov r2, r3 - 8004220: 2320 movs r3, #32 +080041ac : + 80041ac: b580 push {r7, lr} + 80041ae: b084 sub sp, #16 + 80041b0: af00 add r7, sp, #0 + 80041b2: 6078 str r0, [r7, #4] + 80041b4: 6039 str r1, [r7, #0] + 80041b6: 687b ldr r3, [r7, #4] + 80041b8: 2b00 cmp r3, #0 + 80041ba: d101 bne.n 80041c0 + 80041bc: 2301 movs r3, #1 + 80041be: e0cc b.n 800435a + 80041c0: 4b68 ldr r3, [pc, #416] @ (8004364 ) + 80041c2: 681b ldr r3, [r3, #0] + 80041c4: f003 030f and.w r3, r3, #15 + 80041c8: 683a ldr r2, [r7, #0] + 80041ca: 429a cmp r2, r3 + 80041cc: d90c bls.n 80041e8 + 80041ce: 4b65 ldr r3, [pc, #404] @ (8004364 ) + 80041d0: 683a ldr r2, [r7, #0] + 80041d2: b2d2 uxtb r2, r2 + 80041d4: 701a strb r2, [r3, #0] + 80041d6: 4b63 ldr r3, [pc, #396] @ (8004364 ) + 80041d8: 681b ldr r3, [r3, #0] + 80041da: f003 030f and.w r3, r3, #15 + 80041de: 683a ldr r2, [r7, #0] + 80041e0: 429a cmp r2, r3 + 80041e2: d001 beq.n 80041e8 + 80041e4: 2301 movs r3, #1 + 80041e6: e0b8 b.n 800435a + 80041e8: 687b ldr r3, [r7, #4] + 80041ea: 681b ldr r3, [r3, #0] + 80041ec: f003 0302 and.w r3, r3, #2 + 80041f0: 2b00 cmp r3, #0 + 80041f2: d020 beq.n 8004236 + 80041f4: 687b ldr r3, [r7, #4] + 80041f6: 681b ldr r3, [r3, #0] + 80041f8: f003 0304 and.w r3, r3, #4 + 80041fc: 2b00 cmp r3, #0 + 80041fe: d005 beq.n 800420c + 8004200: 4b59 ldr r3, [pc, #356] @ (8004368 ) + 8004202: 689b ldr r3, [r3, #8] + 8004204: 4a58 ldr r2, [pc, #352] @ (8004368 ) + 8004206: f443 53e0 orr.w r3, r3, #7168 @ 0x1c00 + 800420a: 6093 str r3, [r2, #8] + 800420c: 687b ldr r3, [r7, #4] + 800420e: 681b ldr r3, [r3, #0] + 8004210: f003 0308 and.w r3, r3, #8 + 8004214: 2b00 cmp r3, #0 + 8004216: d005 beq.n 8004224 + 8004218: 4b53 ldr r3, [pc, #332] @ (8004368 ) + 800421a: 689b ldr r3, [r3, #8] + 800421c: 4a52 ldr r2, [pc, #328] @ (8004368 ) + 800421e: f443 4360 orr.w r3, r3, #57344 @ 0xe000 8004222: 6093 str r3, [r2, #8] - 8004224: e098 b.n 8004358 - } - else if ((DoepintReg & (USB_OTG_DOEPINT_STUP | USB_OTG_DOEPINT_OTEPSPR)) == 0U) - 8004226: 693b ldr r3, [r7, #16] - 8004228: f003 0328 and.w r3, r3, #40 @ 0x28 - 800422c: 2b00 cmp r3, #0 - 800422e: f040 8093 bne.w 8004358 - { - /* StupPktRcvd = 1 this is a setup packet */ - if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 8004232: 697b ldr r3, [r7, #20] - 8004234: 4a4b ldr r2, [pc, #300] @ (8004364 ) - 8004236: 4293 cmp r3, r2 - 8004238: d90f bls.n 800425a - ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX)) - 800423a: 693b ldr r3, [r7, #16] - 800423c: f403 4300 and.w r3, r3, #32768 @ 0x8000 - if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 8004240: 2b00 cmp r3, #0 - 8004242: d00a beq.n 800425a - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); - 8004244: 683b ldr r3, [r7, #0] - 8004246: 015a lsls r2, r3, #5 - 8004248: 69bb ldr r3, [r7, #24] - 800424a: 4413 add r3, r2 - 800424c: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8004250: 461a mov r2, r3 - 8004252: f44f 4300 mov.w r3, #32768 @ 0x8000 - 8004256: 6093 str r3, [r2, #8] - 8004258: e07e b.n 8004358 - } - else - { - ep = &hpcd->OUT_ep[epnum]; - 800425a: 683a ldr r2, [r7, #0] - 800425c: 4613 mov r3, r2 - 800425e: 00db lsls r3, r3, #3 - 8004260: 4413 add r3, r2 - 8004262: 009b lsls r3, r3, #2 - 8004264: f503 7314 add.w r3, r3, #592 @ 0x250 - 8004268: 687a ldr r2, [r7, #4] - 800426a: 4413 add r3, r2 - 800426c: 3304 adds r3, #4 - 800426e: 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); - 8004270: 68fb ldr r3, [r7, #12] - 8004272: 6a1a ldr r2, [r3, #32] - 8004274: 683b ldr r3, [r7, #0] - 8004276: 0159 lsls r1, r3, #5 - 8004278: 69bb ldr r3, [r7, #24] - 800427a: 440b add r3, r1 - 800427c: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8004280: 691b ldr r3, [r3, #16] - 8004282: f3c3 0312 ubfx r3, r3, #0, #19 - 8004286: 1ad2 subs r2, r2, r3 - 8004288: 68fb ldr r3, [r7, #12] - 800428a: 615a str r2, [r3, #20] - - if (epnum == 0U) - 800428c: 683b ldr r3, [r7, #0] - 800428e: 2b00 cmp r3, #0 - 8004290: d114 bne.n 80042bc - { - if (ep->xfer_len == 0U) - 8004292: 68fb ldr r3, [r7, #12] - 8004294: 691b ldr r3, [r3, #16] - 8004296: 2b00 cmp r3, #0 - 8004298: d109 bne.n 80042ae - { - /* this is ZLP, so prepare EP0 for next setup */ - (void)USB_EP0_OutStart(hpcd->Instance, 1U, (uint8_t *)hpcd->Setup); - 800429a: 687b ldr r3, [r7, #4] - 800429c: 6818 ldr r0, [r3, #0] - 800429e: 687b ldr r3, [r7, #4] - 80042a0: f203 439c addw r3, r3, #1180 @ 0x49c - 80042a4: 461a mov r2, r3 - 80042a6: 2101 movs r1, #1 - 80042a8: f004 fd9c bl 8008de4 - 80042ac: e006 b.n 80042bc - } - else - { - ep->xfer_buff += ep->xfer_count; - 80042ae: 68fb ldr r3, [r7, #12] - 80042b0: 68da ldr r2, [r3, #12] - 80042b2: 68fb ldr r3, [r7, #12] - 80042b4: 695b ldr r3, [r3, #20] - 80042b6: 441a add r2, r3 - 80042b8: 68fb ldr r3, [r7, #12] - 80042ba: 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); - 80042bc: 683b ldr r3, [r7, #0] - 80042be: b2db uxtb r3, r3 - 80042c0: 4619 mov r1, r3 - 80042c2: 6878 ldr r0, [r7, #4] - 80042c4: f006 fd6a bl 800ad9c - 80042c8: e046 b.n 8004358 - /* ... */ - } - } - else - { - if (gSNPSiD == USB_OTG_CORE_ID_310A) - 80042ca: 697b ldr r3, [r7, #20] - 80042cc: 4a26 ldr r2, [pc, #152] @ (8004368 ) - 80042ce: 4293 cmp r3, r2 - 80042d0: d124 bne.n 800431c - { - /* StupPktRcvd = 1 this is a setup packet */ - if ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX) - 80042d2: 693b ldr r3, [r7, #16] - 80042d4: f403 4300 and.w r3, r3, #32768 @ 0x8000 - 80042d8: 2b00 cmp r3, #0 - 80042da: d00a beq.n 80042f2 - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); - 80042dc: 683b ldr r3, [r7, #0] - 80042de: 015a lsls r2, r3, #5 - 80042e0: 69bb ldr r3, [r7, #24] - 80042e2: 4413 add r3, r2 - 80042e4: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80042e8: 461a mov r2, r3 - 80042ea: f44f 4300 mov.w r3, #32768 @ 0x8000 - 80042ee: 6093 str r3, [r2, #8] - 80042f0: e032 b.n 8004358 - } - else - { - if ((DoepintReg & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) - 80042f2: 693b ldr r3, [r7, #16] - 80042f4: f003 0320 and.w r3, r3, #32 - 80042f8: 2b00 cmp r3, #0 - 80042fa: d008 beq.n 800430e - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); - 80042fc: 683b ldr r3, [r7, #0] - 80042fe: 015a lsls r2, r3, #5 - 8004300: 69bb ldr r3, [r7, #24] - 8004302: 4413 add r3, r2 - 8004304: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8004308: 461a mov r2, r3 - 800430a: 2320 movs r3, #32 - 800430c: 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); - 800430e: 683b ldr r3, [r7, #0] - 8004310: b2db uxtb r3, r3 - 8004312: 4619 mov r1, r3 - 8004314: 6878 ldr r0, [r7, #4] - 8004316: f006 fd41 bl 800ad9c - 800431a: e01d b.n 8004358 -#endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ - } - } - else - { - if ((epnum == 0U) && (hpcd->OUT_ep[epnum].xfer_len == 0U)) - 800431c: 683b ldr r3, [r7, #0] - 800431e: 2b00 cmp r3, #0 - 8004320: d114 bne.n 800434c - 8004322: 6879 ldr r1, [r7, #4] - 8004324: 683a ldr r2, [r7, #0] - 8004326: 4613 mov r3, r2 - 8004328: 00db lsls r3, r3, #3 - 800432a: 4413 add r3, r2 - 800432c: 009b lsls r3, r3, #2 - 800432e: 440b add r3, r1 - 8004330: f503 7319 add.w r3, r3, #612 @ 0x264 - 8004334: 681b ldr r3, [r3, #0] - 8004336: 2b00 cmp r3, #0 - 8004338: d108 bne.n 800434c - { - /* this is ZLP, so prepare EP0 for next setup */ - (void)USB_EP0_OutStart(hpcd->Instance, 0U, (uint8_t *)hpcd->Setup); - 800433a: 687b ldr r3, [r7, #4] - 800433c: 6818 ldr r0, [r3, #0] - 800433e: 687b ldr r3, [r7, #4] - 8004340: f203 439c addw r3, r3, #1180 @ 0x49c - 8004344: 461a mov r2, r3 - 8004346: 2100 movs r1, #0 - 8004348: f004 fd4c bl 8008de4 - } - -#if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) - hpcd->DataOutStageCallback(hpcd, (uint8_t)epnum); -#else - HAL_PCD_DataOutStageCallback(hpcd, (uint8_t)epnum); - 800434c: 683b ldr r3, [r7, #0] - 800434e: b2db uxtb r3, r3 - 8004350: 4619 mov r1, r3 - 8004352: 6878 ldr r0, [r7, #4] - 8004354: f006 fd22 bl 800ad9c -#endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ - } - } - - return HAL_OK; + 8004224: 4b50 ldr r3, [pc, #320] @ (8004368 ) + 8004226: 689b ldr r3, [r3, #8] + 8004228: f023 02f0 bic.w r2, r3, #240 @ 0xf0 + 800422c: 687b ldr r3, [r7, #4] + 800422e: 689b ldr r3, [r3, #8] + 8004230: 494d ldr r1, [pc, #308] @ (8004368 ) + 8004232: 4313 orrs r3, r2 + 8004234: 608b str r3, [r1, #8] + 8004236: 687b ldr r3, [r7, #4] + 8004238: 681b ldr r3, [r3, #0] + 800423a: f003 0301 and.w r3, r3, #1 + 800423e: 2b00 cmp r3, #0 + 8004240: d044 beq.n 80042cc + 8004242: 687b ldr r3, [r7, #4] + 8004244: 685b ldr r3, [r3, #4] + 8004246: 2b01 cmp r3, #1 + 8004248: d107 bne.n 800425a + 800424a: 4b47 ldr r3, [pc, #284] @ (8004368 ) + 800424c: 681b ldr r3, [r3, #0] + 800424e: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8004252: 2b00 cmp r3, #0 + 8004254: d119 bne.n 800428a + 8004256: 2301 movs r3, #1 + 8004258: e07f b.n 800435a + 800425a: 687b ldr r3, [r7, #4] + 800425c: 685b ldr r3, [r3, #4] + 800425e: 2b02 cmp r3, #2 + 8004260: d003 beq.n 800426a + 8004262: 687b ldr r3, [r7, #4] + 8004264: 685b ldr r3, [r3, #4] + 8004266: 2b03 cmp r3, #3 + 8004268: d107 bne.n 800427a + 800426a: 4b3f ldr r3, [pc, #252] @ (8004368 ) + 800426c: 681b ldr r3, [r3, #0] + 800426e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 8004272: 2b00 cmp r3, #0 + 8004274: d109 bne.n 800428a + 8004276: 2301 movs r3, #1 + 8004278: e06f b.n 800435a + 800427a: 4b3b ldr r3, [pc, #236] @ (8004368 ) + 800427c: 681b ldr r3, [r3, #0] + 800427e: f003 0302 and.w r3, r3, #2 + 8004282: 2b00 cmp r3, #0 + 8004284: d101 bne.n 800428a + 8004286: 2301 movs r3, #1 + 8004288: e067 b.n 800435a + 800428a: 4b37 ldr r3, [pc, #220] @ (8004368 ) + 800428c: 689b ldr r3, [r3, #8] + 800428e: f023 0203 bic.w r2, r3, #3 + 8004292: 687b ldr r3, [r7, #4] + 8004294: 685b ldr r3, [r3, #4] + 8004296: 4934 ldr r1, [pc, #208] @ (8004368 ) + 8004298: 4313 orrs r3, r2 + 800429a: 608b str r3, [r1, #8] + 800429c: f7fd fdf6 bl 8001e8c + 80042a0: 60f8 str r0, [r7, #12] + 80042a2: e00a b.n 80042ba + 80042a4: f7fd fdf2 bl 8001e8c + 80042a8: 4602 mov r2, r0 + 80042aa: 68fb ldr r3, [r7, #12] + 80042ac: 1ad3 subs r3, r2, r3 + 80042ae: f241 3288 movw r2, #5000 @ 0x1388 + 80042b2: 4293 cmp r3, r2 + 80042b4: d901 bls.n 80042ba + 80042b6: 2303 movs r3, #3 + 80042b8: e04f b.n 800435a + 80042ba: 4b2b ldr r3, [pc, #172] @ (8004368 ) + 80042bc: 689b ldr r3, [r3, #8] + 80042be: f003 020c and.w r2, r3, #12 + 80042c2: 687b ldr r3, [r7, #4] + 80042c4: 685b ldr r3, [r3, #4] + 80042c6: 009b lsls r3, r3, #2 + 80042c8: 429a cmp r2, r3 + 80042ca: d1eb bne.n 80042a4 + 80042cc: 4b25 ldr r3, [pc, #148] @ (8004364 ) + 80042ce: 681b ldr r3, [r3, #0] + 80042d0: f003 030f and.w r3, r3, #15 + 80042d4: 683a ldr r2, [r7, #0] + 80042d6: 429a cmp r2, r3 + 80042d8: d20c bcs.n 80042f4 + 80042da: 4b22 ldr r3, [pc, #136] @ (8004364 ) + 80042dc: 683a ldr r2, [r7, #0] + 80042de: b2d2 uxtb r2, r2 + 80042e0: 701a strb r2, [r3, #0] + 80042e2: 4b20 ldr r3, [pc, #128] @ (8004364 ) + 80042e4: 681b ldr r3, [r3, #0] + 80042e6: f003 030f and.w r3, r3, #15 + 80042ea: 683a ldr r2, [r7, #0] + 80042ec: 429a cmp r2, r3 + 80042ee: d001 beq.n 80042f4 + 80042f0: 2301 movs r3, #1 + 80042f2: e032 b.n 800435a + 80042f4: 687b ldr r3, [r7, #4] + 80042f6: 681b ldr r3, [r3, #0] + 80042f8: f003 0304 and.w r3, r3, #4 + 80042fc: 2b00 cmp r3, #0 + 80042fe: d008 beq.n 8004312 + 8004300: 4b19 ldr r3, [pc, #100] @ (8004368 ) + 8004302: 689b ldr r3, [r3, #8] + 8004304: f423 52e0 bic.w r2, r3, #7168 @ 0x1c00 + 8004308: 687b ldr r3, [r7, #4] + 800430a: 68db ldr r3, [r3, #12] + 800430c: 4916 ldr r1, [pc, #88] @ (8004368 ) + 800430e: 4313 orrs r3, r2 + 8004310: 608b str r3, [r1, #8] + 8004312: 687b ldr r3, [r7, #4] + 8004314: 681b ldr r3, [r3, #0] + 8004316: f003 0308 and.w r3, r3, #8 + 800431a: 2b00 cmp r3, #0 + 800431c: d009 beq.n 8004332 + 800431e: 4b12 ldr r3, [pc, #72] @ (8004368 ) + 8004320: 689b ldr r3, [r3, #8] + 8004322: f423 4260 bic.w r2, r3, #57344 @ 0xe000 + 8004326: 687b ldr r3, [r7, #4] + 8004328: 691b ldr r3, [r3, #16] + 800432a: 00db lsls r3, r3, #3 + 800432c: 490e ldr r1, [pc, #56] @ (8004368 ) + 800432e: 4313 orrs r3, r2 + 8004330: 608b str r3, [r1, #8] + 8004332: f000 fb7f bl 8004a34 + 8004336: 4602 mov r2, r0 + 8004338: 4b0b ldr r3, [pc, #44] @ (8004368 ) + 800433a: 689b ldr r3, [r3, #8] + 800433c: 091b lsrs r3, r3, #4 + 800433e: f003 030f and.w r3, r3, #15 + 8004342: 490a ldr r1, [pc, #40] @ (800436c ) + 8004344: 5ccb ldrb r3, [r1, r3] + 8004346: fa22 f303 lsr.w r3, r2, r3 + 800434a: 4a09 ldr r2, [pc, #36] @ (8004370 ) + 800434c: 6013 str r3, [r2, #0] + 800434e: 4b09 ldr r3, [pc, #36] @ (8004374 ) + 8004350: 681b ldr r3, [r3, #0] + 8004352: 4618 mov r0, r3 + 8004354: f7fd fd56 bl 8001e04 8004358: 2300 movs r3, #0 -} 800435a: 4618 mov r0, r3 - 800435c: 3720 adds r7, #32 + 800435c: 3710 adds r7, #16 800435e: 46bd mov sp, r7 8004360: bd80 pop {r7, pc} 8004362: bf00 nop - 8004364: 4f54300a .word 0x4f54300a - 8004368: 4f54310a .word 0x4f54310a + 8004364: 40023c00 .word 0x40023c00 + 8004368: 40023800 .word 0x40023800 + 800436c: 0800b0f4 .word 0x0800b0f4 + 8004370: 20000104 .word 0x20000104 + 8004374: 20000108 .word 0x20000108 -0800436c : - * @param hpcd PCD handle - * @param epnum endpoint number - * @retval HAL status - */ -static HAL_StatusTypeDef PCD_EP_OutSetupPacket_int(PCD_HandleTypeDef *hpcd, uint32_t epnum) -{ - 800436c: b580 push {r7, lr} - 800436e: b086 sub sp, #24 - 8004370: af00 add r7, sp, #0 - 8004372: 6078 str r0, [r7, #4] - 8004374: 6039 str r1, [r7, #0] - const USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 8004376: 687b ldr r3, [r7, #4] - 8004378: 681b ldr r3, [r3, #0] - 800437a: 617b str r3, [r7, #20] - uint32_t USBx_BASE = (uint32_t)USBx; - 800437c: 697b ldr r3, [r7, #20] - 800437e: 613b str r3, [r7, #16] - uint32_t gSNPSiD = *(__IO const uint32_t *)(&USBx->CID + 0x1U); - 8004380: 697b ldr r3, [r7, #20] - 8004382: 333c adds r3, #60 @ 0x3c - 8004384: 3304 adds r3, #4 - 8004386: 681b ldr r3, [r3, #0] - 8004388: 60fb str r3, [r7, #12] - uint32_t DoepintReg = USBx_OUTEP(epnum)->DOEPINT; - 800438a: 683b ldr r3, [r7, #0] - 800438c: 015a lsls r2, r3, #5 - 800438e: 693b ldr r3, [r7, #16] - 8004390: 4413 add r3, r2 - 8004392: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8004396: 689b ldr r3, [r3, #8] - 8004398: 60bb str r3, [r7, #8] +08004378 : + 8004378: b480 push {r7} + 800437a: af00 add r7, sp, #0 + 800437c: 4b03 ldr r3, [pc, #12] @ (800438c ) + 800437e: 681b ldr r3, [r3, #0] + 8004380: 4618 mov r0, r3 + 8004382: 46bd mov sp, r7 + 8004384: f85d 7b04 ldr.w r7, [sp], #4 + 8004388: 4770 bx lr + 800438a: bf00 nop + 800438c: 20000104 .word 0x20000104 - if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 800439a: 68fb ldr r3, [r7, #12] - 800439c: 4a15 ldr r2, [pc, #84] @ (80043f4 ) - 800439e: 4293 cmp r3, r2 - 80043a0: d90e bls.n 80043c0 - ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX)) - 80043a2: 68bb ldr r3, [r7, #8] - 80043a4: f403 4300 and.w r3, r3, #32768 @ 0x8000 - if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 80043a8: 2b00 cmp r3, #0 - 80043aa: d009 beq.n 80043c0 - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); - 80043ac: 683b ldr r3, [r7, #0] - 80043ae: 015a lsls r2, r3, #5 - 80043b0: 693b ldr r3, [r7, #16] - 80043b2: 4413 add r3, r2 - 80043b4: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80043b8: 461a mov r2, r3 - 80043ba: f44f 4300 mov.w r3, #32768 @ 0x8000 - 80043be: 6093 str r3, [r2, #8] +08004390 : + 8004390: b580 push {r7, lr} + 8004392: af00 add r7, sp, #0 + 8004394: f7ff fff0 bl 8004378 + 8004398: 4602 mov r2, r0 + 800439a: 4b05 ldr r3, [pc, #20] @ (80043b0 ) + 800439c: 689b ldr r3, [r3, #8] + 800439e: 0a9b lsrs r3, r3, #10 + 80043a0: f003 0307 and.w r3, r3, #7 + 80043a4: 4903 ldr r1, [pc, #12] @ (80043b4 ) + 80043a6: 5ccb ldrb r3, [r1, r3] + 80043a8: fa22 f303 lsr.w r3, r2, r3 + 80043ac: 4618 mov r0, r3 + 80043ae: bd80 pop {r7, pc} + 80043b0: 40023800 .word 0x40023800 + 80043b4: 0800b104 .word 0x0800b104 - /* 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); - 80043c0: 6878 ldr r0, [r7, #4] - 80043c2: f006 fcd9 bl 800ad78 -#endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ +080043b8 : + 80043b8: b580 push {r7, lr} + 80043ba: af00 add r7, sp, #0 + 80043bc: f7ff ffdc bl 8004378 + 80043c0: 4602 mov r2, r0 + 80043c2: 4b05 ldr r3, [pc, #20] @ (80043d8 ) + 80043c4: 689b ldr r3, [r3, #8] + 80043c6: 0b5b lsrs r3, r3, #13 + 80043c8: f003 0307 and.w r3, r3, #7 + 80043cc: 4903 ldr r1, [pc, #12] @ (80043dc ) + 80043ce: 5ccb ldrb r3, [r1, r3] + 80043d0: fa22 f303 lsr.w r3, r2, r3 + 80043d4: 4618 mov r0, r3 + 80043d6: bd80 pop {r7, pc} + 80043d8: 40023800 .word 0x40023800 + 80043dc: 0800b104 .word 0x0800b104 - if ((gSNPSiD > USB_OTG_CORE_ID_300A) && (hpcd->Init.dma_enable == 1U)) - 80043c6: 68fb ldr r3, [r7, #12] - 80043c8: 4a0a ldr r2, [pc, #40] @ (80043f4 ) - 80043ca: 4293 cmp r3, r2 - 80043cc: d90c bls.n 80043e8 - 80043ce: 687b ldr r3, [r7, #4] - 80043d0: 799b ldrb r3, [r3, #6] - 80043d2: 2b01 cmp r3, #1 - 80043d4: d108 bne.n 80043e8 - { - (void)USB_EP0_OutStart(hpcd->Instance, 1U, (uint8_t *)hpcd->Setup); - 80043d6: 687b ldr r3, [r7, #4] - 80043d8: 6818 ldr r0, [r3, #0] - 80043da: 687b ldr r3, [r7, #4] - 80043dc: f203 439c addw r3, r3, #1180 @ 0x49c - 80043e0: 461a mov r2, r3 - 80043e2: 2101 movs r1, #1 - 80043e4: f004 fcfe bl 8008de4 - } - - return HAL_OK; +080043e0 : + 80043e0: b580 push {r7, lr} + 80043e2: b08c sub sp, #48 @ 0x30 + 80043e4: af00 add r7, sp, #0 + 80043e6: 6078 str r0, [r7, #4] 80043e8: 2300 movs r3, #0 -} - 80043ea: 4618 mov r0, r3 - 80043ec: 3718 adds r7, #24 - 80043ee: 46bd mov sp, r7 - 80043f0: bd80 pop {r7, pc} - 80043f2: bf00 nop - 80043f4: 4f54300a .word 0x4f54300a - -080043f8 : - * @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) -{ - 80043f8: b480 push {r7} - 80043fa: b085 sub sp, #20 - 80043fc: af00 add r7, sp, #0 - 80043fe: 6078 str r0, [r7, #4] - 8004400: 460b mov r3, r1 - 8004402: 70fb strb r3, [r7, #3] - 8004404: 4613 mov r3, r2 - 8004406: 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; - 8004408: 687b ldr r3, [r7, #4] - 800440a: 681b ldr r3, [r3, #0] - 800440c: 6a5b ldr r3, [r3, #36] @ 0x24 - 800440e: 60bb str r3, [r7, #8] - - if (fifo == 0U) - 8004410: 78fb ldrb r3, [r7, #3] - 8004412: 2b00 cmp r3, #0 - 8004414: d107 bne.n 8004426 - { - hpcd->Instance->DIEPTXF0_HNPTXFSIZ = ((uint32_t)size << 16) | Tx_Offset; - 8004416: 883b ldrh r3, [r7, #0] - 8004418: 0419 lsls r1, r3, #16 - 800441a: 687b ldr r3, [r7, #4] - 800441c: 681b ldr r3, [r3, #0] - 800441e: 68ba ldr r2, [r7, #8] - 8004420: 430a orrs r2, r1 - 8004422: 629a str r2, [r3, #40] @ 0x28 - 8004424: e028 b.n 8004478 - } - else - { - Tx_Offset += (hpcd->Instance->DIEPTXF0_HNPTXFSIZ) >> 16; - 8004426: 687b ldr r3, [r7, #4] - 8004428: 681b ldr r3, [r3, #0] - 800442a: 6a9b ldr r3, [r3, #40] @ 0x28 - 800442c: 0c1b lsrs r3, r3, #16 - 800442e: 68ba ldr r2, [r7, #8] - 8004430: 4413 add r3, r2 - 8004432: 60bb str r3, [r7, #8] - for (i = 0U; i < (fifo - 1U); i++) - 8004434: 2300 movs r3, #0 - 8004436: 73fb strb r3, [r7, #15] - 8004438: e00d b.n 8004456 - { - Tx_Offset += (hpcd->Instance->DIEPTXF[i] >> 16); + 80043ea: 627b str r3, [r7, #36] @ 0x24 + 80043ec: 2300 movs r3, #0 + 80043ee: 623b str r3, [r7, #32] + 80043f0: 2300 movs r3, #0 + 80043f2: 61fb str r3, [r7, #28] + 80043f4: 2300 movs r3, #0 + 80043f6: 61bb str r3, [r7, #24] + 80043f8: 2300 movs r3, #0 + 80043fa: 617b str r3, [r7, #20] + 80043fc: 2300 movs r3, #0 + 80043fe: 613b str r3, [r7, #16] + 8004400: 2300 movs r3, #0 + 8004402: 60fb str r3, [r7, #12] + 8004404: 2300 movs r3, #0 + 8004406: 62fb str r3, [r7, #44] @ 0x2c + 8004408: 2300 movs r3, #0 + 800440a: 62bb str r3, [r7, #40] @ 0x28 + 800440c: 687b ldr r3, [r7, #4] + 800440e: 681b ldr r3, [r3, #0] + 8004410: f003 0301 and.w r3, r3, #1 + 8004414: 2b00 cmp r3, #0 + 8004416: d010 beq.n 800443a + 8004418: 4b6f ldr r3, [pc, #444] @ (80045d8 ) + 800441a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 800441e: f023 62c0 bic.w r2, r3, #100663296 @ 0x6000000 + 8004422: 687b ldr r3, [r7, #4] + 8004424: 6b9b ldr r3, [r3, #56] @ 0x38 + 8004426: 496c ldr r1, [pc, #432] @ (80045d8 ) + 8004428: 4313 orrs r3, r2 + 800442a: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 800442e: 687b ldr r3, [r7, #4] + 8004430: 6b9b ldr r3, [r3, #56] @ 0x38 + 8004432: 2b00 cmp r3, #0 + 8004434: d101 bne.n 800443a + 8004436: 2301 movs r3, #1 + 8004438: 62fb str r3, [r7, #44] @ 0x2c 800443a: 687b ldr r3, [r7, #4] - 800443c: 681a ldr r2, [r3, #0] - 800443e: 7bfb ldrb r3, [r7, #15] - 8004440: 3340 adds r3, #64 @ 0x40 - 8004442: 009b lsls r3, r3, #2 - 8004444: 4413 add r3, r2 - 8004446: 685b ldr r3, [r3, #4] - 8004448: 0c1b lsrs r3, r3, #16 - 800444a: 68ba ldr r2, [r7, #8] - 800444c: 4413 add r3, r2 - 800444e: 60bb str r3, [r7, #8] - for (i = 0U; i < (fifo - 1U); i++) - 8004450: 7bfb ldrb r3, [r7, #15] - 8004452: 3301 adds r3, #1 - 8004454: 73fb strb r3, [r7, #15] - 8004456: 7bfa ldrb r2, [r7, #15] - 8004458: 78fb ldrb r3, [r7, #3] - 800445a: 3b01 subs r3, #1 - 800445c: 429a cmp r2, r3 - 800445e: d3ec bcc.n 800443a - } - - /* Multiply Tx_Size by 2 to get higher performance */ - hpcd->Instance->DIEPTXF[fifo - 1U] = ((uint32_t)size << 16) | Tx_Offset; - 8004460: 883b ldrh r3, [r7, #0] - 8004462: 0418 lsls r0, r3, #16 - 8004464: 687b ldr r3, [r7, #4] - 8004466: 6819 ldr r1, [r3, #0] - 8004468: 78fb ldrb r3, [r7, #3] - 800446a: 3b01 subs r3, #1 - 800446c: 68ba ldr r2, [r7, #8] - 800446e: 4302 orrs r2, r0 - 8004470: 3340 adds r3, #64 @ 0x40 - 8004472: 009b lsls r3, r3, #2 - 8004474: 440b add r3, r1 - 8004476: 605a str r2, [r3, #4] - } - - return HAL_OK; - 8004478: 2300 movs r3, #0 -} - 800447a: 4618 mov r0, r3 - 800447c: 3714 adds r7, #20 - 800447e: 46bd mov sp, r7 - 8004480: f85d 7b04 ldr.w r7, [sp], #4 - 8004484: 4770 bx lr - -08004486 : - * @param hpcd PCD handle - * @param size Size of Rx fifo - * @retval HAL status - */ -HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size) -{ - 8004486: b480 push {r7} - 8004488: b083 sub sp, #12 - 800448a: af00 add r7, sp, #0 - 800448c: 6078 str r0, [r7, #4] - 800448e: 460b mov r3, r1 - 8004490: 807b strh r3, [r7, #2] - hpcd->Instance->GRXFSIZ = size; - 8004492: 687b ldr r3, [r7, #4] - 8004494: 681b ldr r3, [r3, #0] - 8004496: 887a ldrh r2, [r7, #2] - 8004498: 625a str r2, [r3, #36] @ 0x24 - - return HAL_OK; - 800449a: 2300 movs r3, #0 -} - 800449c: 4618 mov r0, r3 - 800449e: 370c adds r7, #12 - 80044a0: 46bd mov sp, r7 - 80044a2: f85d 7b04 ldr.w r7, [sp], #4 - 80044a6: 4770 bx lr - -080044a8 : - * @brief Activate LPM feature. - * @param hpcd PCD handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd) -{ - 80044a8: b480 push {r7} - 80044aa: b085 sub sp, #20 - 80044ac: af00 add r7, sp, #0 - 80044ae: 6078 str r0, [r7, #4] - USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 80044b0: 687b ldr r3, [r7, #4] - 80044b2: 681b ldr r3, [r3, #0] - 80044b4: 60fb str r3, [r7, #12] - - hpcd->lpm_active = 1U; - 80044b6: 687b ldr r3, [r7, #4] - 80044b8: 2201 movs r2, #1 - 80044ba: f8c3 24d8 str.w r2, [r3, #1240] @ 0x4d8 - hpcd->LPM_State = LPM_L0; - 80044be: 687b ldr r3, [r7, #4] - 80044c0: 2200 movs r2, #0 - 80044c2: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc - USBx->GINTMSK |= USB_OTG_GINTMSK_LPMINTM; - 80044c6: 68fb ldr r3, [r7, #12] - 80044c8: 699b ldr r3, [r3, #24] - 80044ca: f043 6200 orr.w r2, r3, #134217728 @ 0x8000000 - 80044ce: 68fb ldr r3, [r7, #12] - 80044d0: 619a str r2, [r3, #24] - USBx->GLPMCFG |= (USB_OTG_GLPMCFG_LPMEN | USB_OTG_GLPMCFG_LPMACK | USB_OTG_GLPMCFG_ENBESL); - 80044d2: 68fb ldr r3, [r7, #12] - 80044d4: 6d5b ldr r3, [r3, #84] @ 0x54 - 80044d6: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 80044da: f043 0303 orr.w r3, r3, #3 - 80044de: 68fa ldr r2, [r7, #12] - 80044e0: 6553 str r3, [r2, #84] @ 0x54 - - return HAL_OK; - 80044e2: 2300 movs r3, #0 -} - 80044e4: 4618 mov r0, r3 - 80044e6: 3714 adds r7, #20 - 80044e8: 46bd mov sp, r7 - 80044ea: f85d 7b04 ldr.w r7, [sp], #4 - 80044ee: 4770 bx lr - -080044f0 : - * 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) -{ - 80044f0: b580 push {r7, lr} - 80044f2: b084 sub sp, #16 - 80044f4: af00 add r7, sp, #0 - 80044f6: 6078 str r0, [r7, #4] - 80044f8: 6039 str r1, [r7, #0] - uint32_t tickstart; - - /* Check Null pointer */ - if (RCC_ClkInitStruct == NULL) - 80044fa: 687b ldr r3, [r7, #4] - 80044fc: 2b00 cmp r3, #0 - 80044fe: d101 bne.n 8004504 - { - return HAL_ERROR; - 8004500: 2301 movs r3, #1 - 8004502: e0cc b.n 800469e - /* 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()) - 8004504: 4b68 ldr r3, [pc, #416] @ (80046a8 ) - 8004506: 681b ldr r3, [r3, #0] - 8004508: f003 030f and.w r3, r3, #15 - 800450c: 683a ldr r2, [r7, #0] - 800450e: 429a cmp r2, r3 - 8004510: d90c bls.n 800452c - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - __HAL_FLASH_SET_LATENCY(FLatency); - 8004512: 4b65 ldr r3, [pc, #404] @ (80046a8 ) - 8004514: 683a ldr r2, [r7, #0] - 8004516: b2d2 uxtb r2, r2 - 8004518: 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) - 800451a: 4b63 ldr r3, [pc, #396] @ (80046a8 ) - 800451c: 681b ldr r3, [r3, #0] - 800451e: f003 030f and.w r3, r3, #15 - 8004522: 683a ldr r2, [r7, #0] - 8004524: 429a cmp r2, r3 - 8004526: d001 beq.n 800452c - { - return HAL_ERROR; - 8004528: 2301 movs r3, #1 - 800452a: e0b8 b.n 800469e - } - } - - /*-------------------------- HCLK Configuration --------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 800452c: 687b ldr r3, [r7, #4] - 800452e: 681b ldr r3, [r3, #0] - 8004530: f003 0302 and.w r3, r3, #2 - 8004534: 2b00 cmp r3, #0 - 8004536: d020 beq.n 800457a - { - /* 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) - 8004538: 687b ldr r3, [r7, #4] - 800453a: 681b ldr r3, [r3, #0] - 800453c: f003 0304 and.w r3, r3, #4 - 8004540: 2b00 cmp r3, #0 - 8004542: d005 beq.n 8004550 - { - MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); - 8004544: 4b59 ldr r3, [pc, #356] @ (80046ac ) - 8004546: 689b ldr r3, [r3, #8] - 8004548: 4a58 ldr r2, [pc, #352] @ (80046ac ) - 800454a: f443 53e0 orr.w r3, r3, #7168 @ 0x1c00 - 800454e: 6093 str r3, [r2, #8] - } - - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8004550: 687b ldr r3, [r7, #4] - 8004552: 681b ldr r3, [r3, #0] - 8004554: f003 0308 and.w r3, r3, #8 - 8004558: 2b00 cmp r3, #0 - 800455a: d005 beq.n 8004568 - { - MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); - 800455c: 4b53 ldr r3, [pc, #332] @ (80046ac ) - 800455e: 689b ldr r3, [r3, #8] - 8004560: 4a52 ldr r2, [pc, #328] @ (80046ac ) - 8004562: f443 4360 orr.w r3, r3, #57344 @ 0xe000 - 8004566: 6093 str r3, [r2, #8] - } - - assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); - MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 8004568: 4b50 ldr r3, [pc, #320] @ (80046ac ) - 800456a: 689b ldr r3, [r3, #8] - 800456c: f023 02f0 bic.w r2, r3, #240 @ 0xf0 - 8004570: 687b ldr r3, [r7, #4] - 8004572: 689b ldr r3, [r3, #8] - 8004574: 494d ldr r1, [pc, #308] @ (80046ac ) - 8004576: 4313 orrs r3, r2 - 8004578: 608b str r3, [r1, #8] - } - - /*------------------------- SYSCLK Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 800457a: 687b ldr r3, [r7, #4] - 800457c: 681b ldr r3, [r3, #0] - 800457e: f003 0301 and.w r3, r3, #1 - 8004582: 2b00 cmp r3, #0 - 8004584: d044 beq.n 8004610 - { - assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); - - /* HSE is selected as System Clock Source */ - if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 8004586: 687b ldr r3, [r7, #4] - 8004588: 685b ldr r3, [r3, #4] - 800458a: 2b01 cmp r3, #1 - 800458c: d107 bne.n 800459e - { - /* Check the HSE ready flag */ - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 800458e: 4b47 ldr r3, [pc, #284] @ (80046ac ) - 8004590: 681b ldr r3, [r3, #0] - 8004592: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8004596: 2b00 cmp r3, #0 - 8004598: d119 bne.n 80045ce - { - return HAL_ERROR; - 800459a: 2301 movs r3, #1 - 800459c: e07f b.n 800469e - } - } - /* PLL is selected as System Clock Source */ - else if ((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) || - 800459e: 687b ldr r3, [r7, #4] - 80045a0: 685b ldr r3, [r3, #4] - 80045a2: 2b02 cmp r3, #2 - 80045a4: d003 beq.n 80045ae - (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLRCLK)) - 80045a6: 687b ldr r3, [r7, #4] - 80045a8: 685b ldr r3, [r3, #4] - else if ((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) || - 80045aa: 2b03 cmp r3, #3 - 80045ac: d107 bne.n 80045be - { - /* Check the PLL ready flag */ - if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80045ae: 4b3f ldr r3, [pc, #252] @ (80046ac ) - 80045b0: 681b ldr r3, [r3, #0] - 80045b2: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 80045b6: 2b00 cmp r3, #0 - 80045b8: d109 bne.n 80045ce - { - return HAL_ERROR; - 80045ba: 2301 movs r3, #1 - 80045bc: e06f b.n 800469e - } - /* HSI is selected as System Clock Source */ - else - { - /* Check the HSI ready flag */ - if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 80045be: 4b3b ldr r3, [pc, #236] @ (80046ac ) - 80045c0: 681b ldr r3, [r3, #0] - 80045c2: f003 0302 and.w r3, r3, #2 - 80045c6: 2b00 cmp r3, #0 - 80045c8: d101 bne.n 80045ce - { - return HAL_ERROR; - 80045ca: 2301 movs r3, #1 - 80045cc: e067 b.n 800469e - } - } - - __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 80045ce: 4b37 ldr r3, [pc, #220] @ (80046ac ) - 80045d0: 689b ldr r3, [r3, #8] - 80045d2: f023 0203 bic.w r2, r3, #3 - 80045d6: 687b ldr r3, [r7, #4] - 80045d8: 685b ldr r3, [r3, #4] - 80045da: 4934 ldr r1, [pc, #208] @ (80046ac ) - 80045dc: 4313 orrs r3, r2 - 80045de: 608b str r3, [r1, #8] - - /* Get Start Tick */ - tickstart = HAL_GetTick(); - 80045e0: f7fd fcb2 bl 8001f48 - 80045e4: 60f8 str r0, [r7, #12] - - while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 80045e6: e00a b.n 80045fe - { - if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 80045e8: f7fd fcae bl 8001f48 - 80045ec: 4602 mov r2, r0 - 80045ee: 68fb ldr r3, [r7, #12] - 80045f0: 1ad3 subs r3, r2, r3 - 80045f2: f241 3288 movw r2, #5000 @ 0x1388 - 80045f6: 4293 cmp r3, r2 - 80045f8: d901 bls.n 80045fe - { - return HAL_TIMEOUT; - 80045fa: 2303 movs r3, #3 - 80045fc: e04f b.n 800469e - while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 80045fe: 4b2b ldr r3, [pc, #172] @ (80046ac ) - 8004600: 689b ldr r3, [r3, #8] - 8004602: f003 020c and.w r2, r3, #12 - 8004606: 687b ldr r3, [r7, #4] - 8004608: 685b ldr r3, [r3, #4] - 800460a: 009b lsls r3, r3, #2 - 800460c: 429a cmp r2, r3 - 800460e: d1eb bne.n 80045e8 - } - } - } - - /* Decreasing the number of wait states because of lower CPU frequency */ - if (FLatency < __HAL_FLASH_GET_LATENCY()) - 8004610: 4b25 ldr r3, [pc, #148] @ (80046a8 ) - 8004612: 681b ldr r3, [r3, #0] - 8004614: f003 030f and.w r3, r3, #15 - 8004618: 683a ldr r2, [r7, #0] - 800461a: 429a cmp r2, r3 - 800461c: d20c bcs.n 8004638 - { - /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ - __HAL_FLASH_SET_LATENCY(FLatency); - 800461e: 4b22 ldr r3, [pc, #136] @ (80046a8 ) - 8004620: 683a ldr r2, [r7, #0] - 8004622: b2d2 uxtb r2, r2 - 8004624: 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) - 8004626: 4b20 ldr r3, [pc, #128] @ (80046a8 ) - 8004628: 681b ldr r3, [r3, #0] - 800462a: f003 030f and.w r3, r3, #15 - 800462e: 683a ldr r2, [r7, #0] - 8004630: 429a cmp r2, r3 - 8004632: d001 beq.n 8004638 - { - return HAL_ERROR; - 8004634: 2301 movs r3, #1 - 8004636: e032 b.n 800469e - } - } - - /*-------------------------- PCLK1 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 8004638: 687b ldr r3, [r7, #4] - 800463a: 681b ldr r3, [r3, #0] - 800463c: f003 0304 and.w r3, r3, #4 - 8004640: 2b00 cmp r3, #0 - 8004642: d008 beq.n 8004656 - { - assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); - MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); - 8004644: 4b19 ldr r3, [pc, #100] @ (80046ac ) - 8004646: 689b ldr r3, [r3, #8] - 8004648: f423 52e0 bic.w r2, r3, #7168 @ 0x1c00 - 800464c: 687b ldr r3, [r7, #4] - 800464e: 68db ldr r3, [r3, #12] - 8004650: 4916 ldr r1, [pc, #88] @ (80046ac ) - 8004652: 4313 orrs r3, r2 - 8004654: 608b str r3, [r1, #8] - } - - /*-------------------------- PCLK2 Configuration ---------------------------*/ - if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 8004656: 687b ldr r3, [r7, #4] - 8004658: 681b ldr r3, [r3, #0] - 800465a: f003 0308 and.w r3, r3, #8 - 800465e: 2b00 cmp r3, #0 - 8004660: d009 beq.n 8004676 - { - assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); - MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3U)); - 8004662: 4b12 ldr r3, [pc, #72] @ (80046ac ) - 8004664: 689b ldr r3, [r3, #8] - 8004666: f423 4260 bic.w r2, r3, #57344 @ 0xe000 - 800466a: 687b ldr r3, [r7, #4] - 800466c: 691b ldr r3, [r3, #16] - 800466e: 00db lsls r3, r3, #3 - 8004670: 490e ldr r1, [pc, #56] @ (80046ac ) - 8004672: 4313 orrs r3, r2 - 8004674: 608b str r3, [r1, #8] - } - - /* Update the SystemCoreClock global variable */ - SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]; - 8004676: f000 fb7f bl 8004d78 - 800467a: 4602 mov r2, r0 - 800467c: 4b0b ldr r3, [pc, #44] @ (80046ac ) - 800467e: 689b ldr r3, [r3, #8] - 8004680: 091b lsrs r3, r3, #4 - 8004682: f003 030f and.w r3, r3, #15 - 8004686: 490a ldr r1, [pc, #40] @ (80046b0 ) - 8004688: 5ccb ldrb r3, [r1, r3] - 800468a: fa22 f303 lsr.w r3, r2, r3 - 800468e: 4a09 ldr r2, [pc, #36] @ (80046b4 ) - 8004690: 6013 str r3, [r2, #0] - - /* Configure the source of time base considering new system clocks settings */ - HAL_InitTick(uwTickPrio); - 8004692: 4b09 ldr r3, [pc, #36] @ (80046b8 ) - 8004694: 681b ldr r3, [r3, #0] - 8004696: 4618 mov r0, r3 - 8004698: f7fd fc12 bl 8001ec0 - - return HAL_OK; - 800469c: 2300 movs r3, #0 -} - 800469e: 4618 mov r0, r3 - 80046a0: 3710 adds r7, #16 - 80046a2: 46bd mov sp, r7 - 80046a4: bd80 pop {r7, pc} - 80046a6: bf00 nop - 80046a8: 40023c00 .word 0x40023c00 - 80046ac: 40023800 .word 0x40023800 - 80046b0: 0800b438 .word 0x0800b438 - 80046b4: 20000104 .word 0x20000104 - 80046b8: 20000108 .word 0x20000108 - -080046bc : - * @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) -{ - 80046bc: b480 push {r7} - 80046be: af00 add r7, sp, #0 - return SystemCoreClock; - 80046c0: 4b03 ldr r3, [pc, #12] @ (80046d0 ) - 80046c2: 681b ldr r3, [r3, #0] -} - 80046c4: 4618 mov r0, r3 - 80046c6: 46bd mov sp, r7 - 80046c8: f85d 7b04 ldr.w r7, [sp], #4 - 80046cc: 4770 bx lr - 80046ce: bf00 nop - 80046d0: 20000104 .word 0x20000104 - -080046d4 : - * @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) -{ - 80046d4: b580 push {r7, lr} - 80046d6: 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]); - 80046d8: f7ff fff0 bl 80046bc - 80046dc: 4602 mov r2, r0 - 80046de: 4b05 ldr r3, [pc, #20] @ (80046f4 ) - 80046e0: 689b ldr r3, [r3, #8] - 80046e2: 0a9b lsrs r3, r3, #10 - 80046e4: f003 0307 and.w r3, r3, #7 - 80046e8: 4903 ldr r1, [pc, #12] @ (80046f8 ) - 80046ea: 5ccb ldrb r3, [r1, r3] - 80046ec: fa22 f303 lsr.w r3, r2, r3 -} - 80046f0: 4618 mov r0, r3 - 80046f2: bd80 pop {r7, pc} - 80046f4: 40023800 .word 0x40023800 - 80046f8: 0800b448 .word 0x0800b448 - -080046fc : - * @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) -{ - 80046fc: b580 push {r7, lr} - 80046fe: 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]); - 8004700: f7ff ffdc bl 80046bc - 8004704: 4602 mov r2, r0 - 8004706: 4b05 ldr r3, [pc, #20] @ (800471c ) - 8004708: 689b ldr r3, [r3, #8] - 800470a: 0b5b lsrs r3, r3, #13 - 800470c: f003 0307 and.w r3, r3, #7 - 8004710: 4903 ldr r1, [pc, #12] @ (8004720 ) - 8004712: 5ccb ldrb r3, [r1, r3] - 8004714: fa22 f303 lsr.w r3, r2, r3 -} - 8004718: 4618 mov r0, r3 - 800471a: bd80 pop {r7, pc} - 800471c: 40023800 .word 0x40023800 - 8004720: 0800b448 .word 0x0800b448 - -08004724 : - * the backup registers) and RCC_BDCR register are set to their reset values. - * - * @retval HAL status - */ -HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) -{ - 8004724: b580 push {r7, lr} - 8004726: b08c sub sp, #48 @ 0x30 - 8004728: af00 add r7, sp, #0 - 800472a: 6078 str r0, [r7, #4] - uint32_t tickstart = 0U; - 800472c: 2300 movs r3, #0 - 800472e: 627b str r3, [r7, #36] @ 0x24 - uint32_t tmpreg1 = 0U; - 8004730: 2300 movs r3, #0 - 8004732: 623b str r3, [r7, #32] - uint32_t plli2sp = 0U; - 8004734: 2300 movs r3, #0 - 8004736: 61fb str r3, [r7, #28] - uint32_t plli2sq = 0U; - 8004738: 2300 movs r3, #0 - 800473a: 61bb str r3, [r7, #24] - uint32_t plli2sr = 0U; - 800473c: 2300 movs r3, #0 - 800473e: 617b str r3, [r7, #20] - uint32_t pllsaip = 0U; - 8004740: 2300 movs r3, #0 - 8004742: 613b str r3, [r7, #16] - uint32_t pllsaiq = 0U; - 8004744: 2300 movs r3, #0 - 8004746: 60fb str r3, [r7, #12] - uint32_t plli2sused = 0U; - 8004748: 2300 movs r3, #0 - 800474a: 62fb str r3, [r7, #44] @ 0x2c - uint32_t pllsaiused = 0U; - 800474c: 2300 movs r3, #0 - 800474e: 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)) - 8004750: 687b ldr r3, [r7, #4] - 8004752: 681b ldr r3, [r3, #0] - 8004754: f003 0301 and.w r3, r3, #1 - 8004758: 2b00 cmp r3, #0 - 800475a: d010 beq.n 800477e - { - /* Check the parameters */ - assert_param(IS_RCC_I2SAPB1CLKSOURCE(PeriphClkInit->I2sApb1ClockSelection)); - - /* Configure I2S Clock source */ - __HAL_RCC_I2S_APB1_CONFIG(PeriphClkInit->I2sApb1ClockSelection); - 800475c: 4b6f ldr r3, [pc, #444] @ (800491c ) - 800475e: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 8004762: f023 62c0 bic.w r2, r3, #100663296 @ 0x6000000 - 8004766: 687b ldr r3, [r7, #4] - 8004768: 6b9b ldr r3, [r3, #56] @ 0x38 - 800476a: 496c ldr r1, [pc, #432] @ (800491c ) - 800476c: 4313 orrs r3, r2 - 800476e: 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) - 8004772: 687b ldr r3, [r7, #4] - 8004774: 6b9b ldr r3, [r3, #56] @ 0x38 - 8004776: 2b00 cmp r3, #0 - 8004778: d101 bne.n 800477e - { - plli2sused = 1U; - 800477a: 2301 movs r3, #1 - 800477c: 62fb str r3, [r7, #44] @ 0x2c - } - } - /*--------------------------------------------------------------------------*/ - - /*---------------------------- I2S APB2 configuration ----------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == (RCC_PERIPHCLK_I2S_APB2)) - 800477e: 687b ldr r3, [r7, #4] - 8004780: 681b ldr r3, [r3, #0] - 8004782: f003 0302 and.w r3, r3, #2 - 8004786: 2b00 cmp r3, #0 - 8004788: d010 beq.n 80047ac - { - /* Check the parameters */ - assert_param(IS_RCC_I2SAPB2CLKSOURCE(PeriphClkInit->I2sApb2ClockSelection)); - - /* Configure I2S Clock source */ - __HAL_RCC_I2S_APB2_CONFIG(PeriphClkInit->I2sApb2ClockSelection); - 800478a: 4b64 ldr r3, [pc, #400] @ (800491c ) - 800478c: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 8004790: f023 52c0 bic.w r2, r3, #402653184 @ 0x18000000 - 8004794: 687b ldr r3, [r7, #4] - 8004796: 6bdb ldr r3, [r3, #60] @ 0x3c - 8004798: 4960 ldr r1, [pc, #384] @ (800491c ) - 800479a: 4313 orrs r3, r2 - 800479c: 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) - 80047a0: 687b ldr r3, [r7, #4] - 80047a2: 6bdb ldr r3, [r3, #60] @ 0x3c - 80047a4: 2b00 cmp r3, #0 - 80047a6: d101 bne.n 80047ac - { - plli2sused = 1U; - 80047a8: 2301 movs r3, #1 - 80047aa: 62fb str r3, [r7, #44] @ 0x2c - } - } - /*--------------------------------------------------------------------------*/ - - /*--------------------------- SAI1 configuration ---------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == (RCC_PERIPHCLK_SAI1)) - 80047ac: 687b ldr r3, [r7, #4] - 80047ae: 681b ldr r3, [r3, #0] - 80047b0: f003 0304 and.w r3, r3, #4 - 80047b4: 2b00 cmp r3, #0 - 80047b6: d017 beq.n 80047e8 - { - /* Check the parameters */ - assert_param(IS_RCC_SAI1CLKSOURCE(PeriphClkInit->Sai1ClockSelection)); - - /* Configure SAI1 Clock source */ - __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection); - 80047b8: 4b58 ldr r3, [pc, #352] @ (800491c ) - 80047ba: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 80047be: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 - 80047c2: 687b ldr r3, [r7, #4] - 80047c4: 6b1b ldr r3, [r3, #48] @ 0x30 - 80047c6: 4955 ldr r1, [pc, #340] @ (800491c ) - 80047c8: 4313 orrs r3, r2 - 80047ca: 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) - 80047ce: 687b ldr r3, [r7, #4] - 80047d0: 6b1b ldr r3, [r3, #48] @ 0x30 - 80047d2: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 - 80047d6: d101 bne.n 80047dc - { - plli2sused = 1U; - 80047d8: 2301 movs r3, #1 - 80047da: 62fb str r3, [r7, #44] @ 0x2c - } - /* Enable the PLLSAI when it's used as clock source for SAI */ - if (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI) - 80047dc: 687b ldr r3, [r7, #4] - 80047de: 6b1b ldr r3, [r3, #48] @ 0x30 - 80047e0: 2b00 cmp r3, #0 - 80047e2: d101 bne.n 80047e8 - { - pllsaiused = 1U; - 80047e4: 2301 movs r3, #1 - 80047e6: 62bb str r3, [r7, #40] @ 0x28 - } - } - /*--------------------------------------------------------------------------*/ - - /*-------------------------- SAI2 configuration ----------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == (RCC_PERIPHCLK_SAI2)) - 80047e8: 687b ldr r3, [r7, #4] - 80047ea: 681b ldr r3, [r3, #0] - 80047ec: f003 0308 and.w r3, r3, #8 - 80047f0: 2b00 cmp r3, #0 - 80047f2: d017 beq.n 8004824 - { - /* Check the parameters */ - assert_param(IS_RCC_SAI2CLKSOURCE(PeriphClkInit->Sai2ClockSelection)); - - /* Configure SAI2 Clock source */ - __HAL_RCC_SAI2_CONFIG(PeriphClkInit->Sai2ClockSelection); - 80047f4: 4b49 ldr r3, [pc, #292] @ (800491c ) - 80047f6: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 80047fa: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 - 80047fe: 687b ldr r3, [r7, #4] - 8004800: 6b5b ldr r3, [r3, #52] @ 0x34 - 8004802: 4946 ldr r1, [pc, #280] @ (800491c ) - 8004804: 4313 orrs r3, r2 - 8004806: 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) - 800480a: 687b ldr r3, [r7, #4] - 800480c: 6b5b ldr r3, [r3, #52] @ 0x34 - 800480e: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 8004812: d101 bne.n 8004818 - { - plli2sused = 1U; - 8004814: 2301 movs r3, #1 - 8004816: 62fb str r3, [r7, #44] @ 0x2c - } - /* Enable the PLLSAI when it's used as clock source for SAI */ - if (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI) - 8004818: 687b ldr r3, [r7, #4] - 800481a: 6b5b ldr r3, [r3, #52] @ 0x34 - 800481c: 2b00 cmp r3, #0 - 800481e: d101 bne.n 8004824 - { - pllsaiused = 1U; - 8004820: 2301 movs r3, #1 - 8004822: 62bb str r3, [r7, #40] @ 0x28 - } - } - /*--------------------------------------------------------------------------*/ - - /*----------------------------- RTC configuration --------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) - 8004824: 687b ldr r3, [r7, #4] - 8004826: 681b ldr r3, [r3, #0] - 8004828: f003 0320 and.w r3, r3, #32 - 800482c: 2b00 cmp r3, #0 - 800482e: f000 808a beq.w 8004946 - { - /* Check for RTC Parameters used to output RTCCLK */ - assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); - - /* Enable Power Clock*/ - __HAL_RCC_PWR_CLK_ENABLE(); - 8004832: 2300 movs r3, #0 - 8004834: 60bb str r3, [r7, #8] - 8004836: 4b39 ldr r3, [pc, #228] @ (800491c ) - 8004838: 6c1b ldr r3, [r3, #64] @ 0x40 - 800483a: 4a38 ldr r2, [pc, #224] @ (800491c ) - 800483c: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8004840: 6413 str r3, [r2, #64] @ 0x40 - 8004842: 4b36 ldr r3, [pc, #216] @ (800491c ) - 8004844: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004846: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 800484a: 60bb str r3, [r7, #8] - 800484c: 68bb ldr r3, [r7, #8] - - /* Enable write access to Backup domain */ - PWR->CR |= PWR_CR_DBP; - 800484e: 4b34 ldr r3, [pc, #208] @ (8004920 ) - 8004850: 681b ldr r3, [r3, #0] - 8004852: 4a33 ldr r2, [pc, #204] @ (8004920 ) - 8004854: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8004858: 6013 str r3, [r2, #0] - - /* Get tick */ - tickstart = HAL_GetTick(); - 800485a: f7fd fb75 bl 8001f48 - 800485e: 6278 str r0, [r7, #36] @ 0x24 - - while ((PWR->CR & PWR_CR_DBP) == RESET) - 8004860: e008 b.n 8004874 - { - if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 8004862: f7fd fb71 bl 8001f48 - 8004866: 4602 mov r2, r0 - 8004868: 6a7b ldr r3, [r7, #36] @ 0x24 - 800486a: 1ad3 subs r3, r2, r3 - 800486c: 2b02 cmp r3, #2 - 800486e: d901 bls.n 8004874 - { - return HAL_TIMEOUT; - 8004870: 2303 movs r3, #3 - 8004872: e278 b.n 8004d66 - while ((PWR->CR & PWR_CR_DBP) == RESET) - 8004874: 4b2a ldr r3, [pc, #168] @ (8004920 ) - 8004876: 681b ldr r3, [r3, #0] - 8004878: f403 7380 and.w r3, r3, #256 @ 0x100 - 800487c: 2b00 cmp r3, #0 - 800487e: d0f0 beq.n 8004862 - } - } - /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ - tmpreg1 = (RCC->BDCR & RCC_BDCR_RTCSEL); - 8004880: 4b26 ldr r3, [pc, #152] @ (800491c ) - 8004882: 6f1b ldr r3, [r3, #112] @ 0x70 - 8004884: f403 7340 and.w r3, r3, #768 @ 0x300 - 8004888: 623b str r3, [r7, #32] - if ((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) - 800488a: 6a3b ldr r3, [r7, #32] - 800488c: 2b00 cmp r3, #0 - 800488e: d02f beq.n 80048f0 - 8004890: 687b ldr r3, [r7, #4] - 8004892: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004894: f403 7340 and.w r3, r3, #768 @ 0x300 - 8004898: 6a3a ldr r2, [r7, #32] - 800489a: 429a cmp r2, r3 - 800489c: d028 beq.n 80048f0 - { - /* Store the content of BDCR register before the reset of Backup Domain */ - tmpreg1 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); - 800489e: 4b1f ldr r3, [pc, #124] @ (800491c ) - 80048a0: 6f1b ldr r3, [r3, #112] @ 0x70 - 80048a2: f423 7340 bic.w r3, r3, #768 @ 0x300 - 80048a6: 623b str r3, [r7, #32] - /* RTC Clock selection can be changed only if the Backup Domain is reset */ - __HAL_RCC_BACKUPRESET_FORCE(); - 80048a8: 4b1e ldr r3, [pc, #120] @ (8004924 ) - 80048aa: 2201 movs r2, #1 - 80048ac: 601a str r2, [r3, #0] - __HAL_RCC_BACKUPRESET_RELEASE(); - 80048ae: 4b1d ldr r3, [pc, #116] @ (8004924 ) - 80048b0: 2200 movs r2, #0 - 80048b2: 601a str r2, [r3, #0] - /* Restore the Content of BDCR register */ - RCC->BDCR = tmpreg1; - 80048b4: 4a19 ldr r2, [pc, #100] @ (800491c ) - 80048b6: 6a3b ldr r3, [r7, #32] - 80048b8: 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)) - 80048ba: 4b18 ldr r3, [pc, #96] @ (800491c ) - 80048bc: 6f1b ldr r3, [r3, #112] @ 0x70 - 80048be: f003 0301 and.w r3, r3, #1 - 80048c2: 2b01 cmp r3, #1 - 80048c4: d114 bne.n 80048f0 - { - /* Get tick */ - tickstart = HAL_GetTick(); - 80048c6: f7fd fb3f bl 8001f48 - 80048ca: 6278 str r0, [r7, #36] @ 0x24 - - /* Wait till LSE is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 80048cc: e00a b.n 80048e4 - { - if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 80048ce: f7fd fb3b bl 8001f48 - 80048d2: 4602 mov r2, r0 - 80048d4: 6a7b ldr r3, [r7, #36] @ 0x24 - 80048d6: 1ad3 subs r3, r2, r3 - 80048d8: f241 3288 movw r2, #5000 @ 0x1388 - 80048dc: 4293 cmp r3, r2 - 80048de: d901 bls.n 80048e4 - { - return HAL_TIMEOUT; - 80048e0: 2303 movs r3, #3 - 80048e2: e240 b.n 8004d66 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 80048e4: 4b0d ldr r3, [pc, #52] @ (800491c ) - 80048e6: 6f1b ldr r3, [r3, #112] @ 0x70 - 80048e8: f003 0302 and.w r3, r3, #2 - 80048ec: 2b00 cmp r3, #0 - 80048ee: d0ee beq.n 80048ce - } - } - } - } - __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); - 80048f0: 687b ldr r3, [r7, #4] - 80048f2: 6c1b ldr r3, [r3, #64] @ 0x40 - 80048f4: f403 7340 and.w r3, r3, #768 @ 0x300 - 80048f8: f5b3 7f40 cmp.w r3, #768 @ 0x300 - 80048fc: d114 bne.n 8004928 - 80048fe: 4b07 ldr r3, [pc, #28] @ (800491c ) - 8004900: 689b ldr r3, [r3, #8] - 8004902: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000 - 8004906: 687b ldr r3, [r7, #4] - 8004908: 6c1b ldr r3, [r3, #64] @ 0x40 - 800490a: f023 4370 bic.w r3, r3, #4026531840 @ 0xf0000000 - 800490e: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8004912: 4902 ldr r1, [pc, #8] @ (800491c ) - 8004914: 4313 orrs r3, r2 - 8004916: 608b str r3, [r1, #8] - 8004918: e00c b.n 8004934 - 800491a: bf00 nop - 800491c: 40023800 .word 0x40023800 - 8004920: 40007000 .word 0x40007000 - 8004924: 42470e40 .word 0x42470e40 - 8004928: 4b4a ldr r3, [pc, #296] @ (8004a54 ) - 800492a: 689b ldr r3, [r3, #8] - 800492c: 4a49 ldr r2, [pc, #292] @ (8004a54 ) - 800492e: f423 13f8 bic.w r3, r3, #2031616 @ 0x1f0000 - 8004932: 6093 str r3, [r2, #8] - 8004934: 4b47 ldr r3, [pc, #284] @ (8004a54 ) - 8004936: 6f1a ldr r2, [r3, #112] @ 0x70 - 8004938: 687b ldr r3, [r7, #4] - 800493a: 6c1b ldr r3, [r3, #64] @ 0x40 - 800493c: f3c3 030b ubfx r3, r3, #0, #12 - 8004940: 4944 ldr r1, [pc, #272] @ (8004a54 ) - 8004942: 4313 orrs r3, r2 - 8004944: 670b str r3, [r1, #112] @ 0x70 - } - /*--------------------------------------------------------------------------*/ - - /*---------------------------- TIM configuration ---------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == (RCC_PERIPHCLK_TIM)) + 800443c: 681b ldr r3, [r3, #0] + 800443e: f003 0302 and.w r3, r3, #2 + 8004442: 2b00 cmp r3, #0 + 8004444: d010 beq.n 8004468 + 8004446: 4b64 ldr r3, [pc, #400] @ (80045d8 ) + 8004448: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 800444c: f023 52c0 bic.w r2, r3, #402653184 @ 0x18000000 + 8004450: 687b ldr r3, [r7, #4] + 8004452: 6bdb ldr r3, [r3, #60] @ 0x3c + 8004454: 4960 ldr r1, [pc, #384] @ (80045d8 ) + 8004456: 4313 orrs r3, r2 + 8004458: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 800445c: 687b ldr r3, [r7, #4] + 800445e: 6bdb ldr r3, [r3, #60] @ 0x3c + 8004460: 2b00 cmp r3, #0 + 8004462: d101 bne.n 8004468 + 8004464: 2301 movs r3, #1 + 8004466: 62fb str r3, [r7, #44] @ 0x2c + 8004468: 687b ldr r3, [r7, #4] + 800446a: 681b ldr r3, [r3, #0] + 800446c: f003 0304 and.w r3, r3, #4 + 8004470: 2b00 cmp r3, #0 + 8004472: d017 beq.n 80044a4 + 8004474: 4b58 ldr r3, [pc, #352] @ (80045d8 ) + 8004476: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 800447a: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 + 800447e: 687b ldr r3, [r7, #4] + 8004480: 6b1b ldr r3, [r3, #48] @ 0x30 + 8004482: 4955 ldr r1, [pc, #340] @ (80045d8 ) + 8004484: 4313 orrs r3, r2 + 8004486: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 800448a: 687b ldr r3, [r7, #4] + 800448c: 6b1b ldr r3, [r3, #48] @ 0x30 + 800448e: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 + 8004492: d101 bne.n 8004498 + 8004494: 2301 movs r3, #1 + 8004496: 62fb str r3, [r7, #44] @ 0x2c + 8004498: 687b ldr r3, [r7, #4] + 800449a: 6b1b ldr r3, [r3, #48] @ 0x30 + 800449c: 2b00 cmp r3, #0 + 800449e: d101 bne.n 80044a4 + 80044a0: 2301 movs r3, #1 + 80044a2: 62bb str r3, [r7, #40] @ 0x28 + 80044a4: 687b ldr r3, [r7, #4] + 80044a6: 681b ldr r3, [r3, #0] + 80044a8: f003 0308 and.w r3, r3, #8 + 80044ac: 2b00 cmp r3, #0 + 80044ae: d017 beq.n 80044e0 + 80044b0: 4b49 ldr r3, [pc, #292] @ (80045d8 ) + 80044b2: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 80044b6: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 + 80044ba: 687b ldr r3, [r7, #4] + 80044bc: 6b5b ldr r3, [r3, #52] @ 0x34 + 80044be: 4946 ldr r1, [pc, #280] @ (80045d8 ) + 80044c0: 4313 orrs r3, r2 + 80044c2: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 80044c6: 687b ldr r3, [r7, #4] + 80044c8: 6b5b ldr r3, [r3, #52] @ 0x34 + 80044ca: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 80044ce: d101 bne.n 80044d4 + 80044d0: 2301 movs r3, #1 + 80044d2: 62fb str r3, [r7, #44] @ 0x2c + 80044d4: 687b ldr r3, [r7, #4] + 80044d6: 6b5b ldr r3, [r3, #52] @ 0x34 + 80044d8: 2b00 cmp r3, #0 + 80044da: d101 bne.n 80044e0 + 80044dc: 2301 movs r3, #1 + 80044de: 62bb str r3, [r7, #40] @ 0x28 + 80044e0: 687b ldr r3, [r7, #4] + 80044e2: 681b ldr r3, [r3, #0] + 80044e4: f003 0320 and.w r3, r3, #32 + 80044e8: 2b00 cmp r3, #0 + 80044ea: f000 808a beq.w 8004602 + 80044ee: 2300 movs r3, #0 + 80044f0: 60bb str r3, [r7, #8] + 80044f2: 4b39 ldr r3, [pc, #228] @ (80045d8 ) + 80044f4: 6c1b ldr r3, [r3, #64] @ 0x40 + 80044f6: 4a38 ldr r2, [pc, #224] @ (80045d8 ) + 80044f8: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80044fc: 6413 str r3, [r2, #64] @ 0x40 + 80044fe: 4b36 ldr r3, [pc, #216] @ (80045d8 ) + 8004500: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004502: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8004506: 60bb str r3, [r7, #8] + 8004508: 68bb ldr r3, [r7, #8] + 800450a: 4b34 ldr r3, [pc, #208] @ (80045dc ) + 800450c: 681b ldr r3, [r3, #0] + 800450e: 4a33 ldr r2, [pc, #204] @ (80045dc ) + 8004510: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8004514: 6013 str r3, [r2, #0] + 8004516: f7fd fcb9 bl 8001e8c + 800451a: 6278 str r0, [r7, #36] @ 0x24 + 800451c: e008 b.n 8004530 + 800451e: f7fd fcb5 bl 8001e8c + 8004522: 4602 mov r2, r0 + 8004524: 6a7b ldr r3, [r7, #36] @ 0x24 + 8004526: 1ad3 subs r3, r2, r3 + 8004528: 2b02 cmp r3, #2 + 800452a: d901 bls.n 8004530 + 800452c: 2303 movs r3, #3 + 800452e: e278 b.n 8004a22 + 8004530: 4b2a ldr r3, [pc, #168] @ (80045dc ) + 8004532: 681b ldr r3, [r3, #0] + 8004534: f403 7380 and.w r3, r3, #256 @ 0x100 + 8004538: 2b00 cmp r3, #0 + 800453a: d0f0 beq.n 800451e + 800453c: 4b26 ldr r3, [pc, #152] @ (80045d8 ) + 800453e: 6f1b ldr r3, [r3, #112] @ 0x70 + 8004540: f403 7340 and.w r3, r3, #768 @ 0x300 + 8004544: 623b str r3, [r7, #32] + 8004546: 6a3b ldr r3, [r7, #32] + 8004548: 2b00 cmp r3, #0 + 800454a: d02f beq.n 80045ac + 800454c: 687b ldr r3, [r7, #4] + 800454e: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004550: f403 7340 and.w r3, r3, #768 @ 0x300 + 8004554: 6a3a ldr r2, [r7, #32] + 8004556: 429a cmp r2, r3 + 8004558: d028 beq.n 80045ac + 800455a: 4b1f ldr r3, [pc, #124] @ (80045d8 ) + 800455c: 6f1b ldr r3, [r3, #112] @ 0x70 + 800455e: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8004562: 623b str r3, [r7, #32] + 8004564: 4b1e ldr r3, [pc, #120] @ (80045e0 ) + 8004566: 2201 movs r2, #1 + 8004568: 601a str r2, [r3, #0] + 800456a: 4b1d ldr r3, [pc, #116] @ (80045e0 ) + 800456c: 2200 movs r2, #0 + 800456e: 601a str r2, [r3, #0] + 8004570: 4a19 ldr r2, [pc, #100] @ (80045d8 ) + 8004572: 6a3b ldr r3, [r7, #32] + 8004574: 6713 str r3, [r2, #112] @ 0x70 + 8004576: 4b18 ldr r3, [pc, #96] @ (80045d8 ) + 8004578: 6f1b ldr r3, [r3, #112] @ 0x70 + 800457a: f003 0301 and.w r3, r3, #1 + 800457e: 2b01 cmp r3, #1 + 8004580: d114 bne.n 80045ac + 8004582: f7fd fc83 bl 8001e8c + 8004586: 6278 str r0, [r7, #36] @ 0x24 + 8004588: e00a b.n 80045a0 + 800458a: f7fd fc7f bl 8001e8c + 800458e: 4602 mov r2, r0 + 8004590: 6a7b ldr r3, [r7, #36] @ 0x24 + 8004592: 1ad3 subs r3, r2, r3 + 8004594: f241 3288 movw r2, #5000 @ 0x1388 + 8004598: 4293 cmp r3, r2 + 800459a: d901 bls.n 80045a0 + 800459c: 2303 movs r3, #3 + 800459e: e240 b.n 8004a22 + 80045a0: 4b0d ldr r3, [pc, #52] @ (80045d8 ) + 80045a2: 6f1b ldr r3, [r3, #112] @ 0x70 + 80045a4: f003 0302 and.w r3, r3, #2 + 80045a8: 2b00 cmp r3, #0 + 80045aa: d0ee beq.n 800458a + 80045ac: 687b ldr r3, [r7, #4] + 80045ae: 6c1b ldr r3, [r3, #64] @ 0x40 + 80045b0: f403 7340 and.w r3, r3, #768 @ 0x300 + 80045b4: f5b3 7f40 cmp.w r3, #768 @ 0x300 + 80045b8: d114 bne.n 80045e4 + 80045ba: 4b07 ldr r3, [pc, #28] @ (80045d8 ) + 80045bc: 689b ldr r3, [r3, #8] + 80045be: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000 + 80045c2: 687b ldr r3, [r7, #4] + 80045c4: 6c1b ldr r3, [r3, #64] @ 0x40 + 80045c6: f023 4370 bic.w r3, r3, #4026531840 @ 0xf0000000 + 80045ca: f423 7340 bic.w r3, r3, #768 @ 0x300 + 80045ce: 4902 ldr r1, [pc, #8] @ (80045d8 ) + 80045d0: 4313 orrs r3, r2 + 80045d2: 608b str r3, [r1, #8] + 80045d4: e00c b.n 80045f0 + 80045d6: bf00 nop + 80045d8: 40023800 .word 0x40023800 + 80045dc: 40007000 .word 0x40007000 + 80045e0: 42470e40 .word 0x42470e40 + 80045e4: 4b4a ldr r3, [pc, #296] @ (8004710 ) + 80045e6: 689b ldr r3, [r3, #8] + 80045e8: 4a49 ldr r2, [pc, #292] @ (8004710 ) + 80045ea: f423 13f8 bic.w r3, r3, #2031616 @ 0x1f0000 + 80045ee: 6093 str r3, [r2, #8] + 80045f0: 4b47 ldr r3, [pc, #284] @ (8004710 ) + 80045f2: 6f1a ldr r2, [r3, #112] @ 0x70 + 80045f4: 687b ldr r3, [r7, #4] + 80045f6: 6c1b ldr r3, [r3, #64] @ 0x40 + 80045f8: f3c3 030b ubfx r3, r3, #0, #12 + 80045fc: 4944 ldr r1, [pc, #272] @ (8004710 ) + 80045fe: 4313 orrs r3, r2 + 8004600: 670b str r3, [r1, #112] @ 0x70 + 8004602: 687b ldr r3, [r7, #4] + 8004604: 681b ldr r3, [r3, #0] + 8004606: f003 0310 and.w r3, r3, #16 + 800460a: 2b00 cmp r3, #0 + 800460c: d004 beq.n 8004618 + 800460e: 687b ldr r3, [r7, #4] + 8004610: f893 2058 ldrb.w r2, [r3, #88] @ 0x58 + 8004614: 4b3f ldr r3, [pc, #252] @ (8004714 ) + 8004616: 601a str r2, [r3, #0] + 8004618: 687b ldr r3, [r7, #4] + 800461a: 681b ldr r3, [r3, #0] + 800461c: f003 0380 and.w r3, r3, #128 @ 0x80 + 8004620: 2b00 cmp r3, #0 + 8004622: d00a beq.n 800463a + 8004624: 4b3a ldr r3, [pc, #232] @ (8004710 ) + 8004626: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 800462a: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 + 800462e: 687b ldr r3, [r7, #4] + 8004630: 6cdb ldr r3, [r3, #76] @ 0x4c + 8004632: 4937 ldr r1, [pc, #220] @ (8004710 ) + 8004634: 4313 orrs r3, r2 + 8004636: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 800463a: 687b ldr r3, [r7, #4] + 800463c: 681b ldr r3, [r3, #0] + 800463e: f003 0340 and.w r3, r3, #64 @ 0x40 + 8004642: 2b00 cmp r3, #0 + 8004644: d00a beq.n 800465c + 8004646: 4b32 ldr r3, [pc, #200] @ (8004710 ) + 8004648: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 800464c: f023 6280 bic.w r2, r3, #67108864 @ 0x4000000 + 8004650: 687b ldr r3, [r7, #4] + 8004652: 6c9b ldr r3, [r3, #72] @ 0x48 + 8004654: 492e ldr r1, [pc, #184] @ (8004710 ) + 8004656: 4313 orrs r3, r2 + 8004658: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 800465c: 687b ldr r3, [r7, #4] + 800465e: 681b ldr r3, [r3, #0] + 8004660: f403 7380 and.w r3, r3, #256 @ 0x100 + 8004664: 2b00 cmp r3, #0 + 8004666: d011 beq.n 800468c + 8004668: 4b29 ldr r3, [pc, #164] @ (8004710 ) + 800466a: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 800466e: f023 6200 bic.w r2, r3, #134217728 @ 0x8000000 + 8004672: 687b ldr r3, [r7, #4] + 8004674: 6d5b ldr r3, [r3, #84] @ 0x54 + 8004676: 4926 ldr r1, [pc, #152] @ (8004710 ) + 8004678: 4313 orrs r3, r2 + 800467a: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 800467e: 687b ldr r3, [r7, #4] + 8004680: 6d5b ldr r3, [r3, #84] @ 0x54 + 8004682: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 + 8004686: d101 bne.n 800468c + 8004688: 2301 movs r3, #1 + 800468a: 62bb str r3, [r7, #40] @ 0x28 + 800468c: 687b ldr r3, [r7, #4] + 800468e: 681b ldr r3, [r3, #0] + 8004690: f403 7300 and.w r3, r3, #512 @ 0x200 + 8004694: 2b00 cmp r3, #0 + 8004696: d00a beq.n 80046ae + 8004698: 4b1d ldr r3, [pc, #116] @ (8004710 ) + 800469a: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 800469e: f023 5280 bic.w r2, r3, #268435456 @ 0x10000000 + 80046a2: 687b ldr r3, [r7, #4] + 80046a4: 6c5b ldr r3, [r3, #68] @ 0x44 + 80046a6: 491a ldr r1, [pc, #104] @ (8004710 ) + 80046a8: 4313 orrs r3, r2 + 80046aa: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 80046ae: 687b ldr r3, [r7, #4] + 80046b0: 681b ldr r3, [r3, #0] + 80046b2: f403 6380 and.w r3, r3, #1024 @ 0x400 + 80046b6: 2b00 cmp r3, #0 + 80046b8: d011 beq.n 80046de + 80046ba: 4b15 ldr r3, [pc, #84] @ (8004710 ) + 80046bc: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 80046c0: f023 5200 bic.w r2, r3, #536870912 @ 0x20000000 + 80046c4: 687b ldr r3, [r7, #4] + 80046c6: 6d1b ldr r3, [r3, #80] @ 0x50 + 80046c8: 4911 ldr r1, [pc, #68] @ (8004710 ) + 80046ca: 4313 orrs r3, r2 + 80046cc: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 80046d0: 687b ldr r3, [r7, #4] + 80046d2: 6d1b ldr r3, [r3, #80] @ 0x50 + 80046d4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 80046d8: d101 bne.n 80046de + 80046da: 2301 movs r3, #1 + 80046dc: 62fb str r3, [r7, #44] @ 0x2c + 80046de: 6afb ldr r3, [r7, #44] @ 0x2c + 80046e0: 2b01 cmp r3, #1 + 80046e2: d005 beq.n 80046f0 + 80046e4: 687b ldr r3, [r7, #4] + 80046e6: 681b ldr r3, [r3, #0] + 80046e8: f5b3 6f00 cmp.w r3, #2048 @ 0x800 + 80046ec: f040 80ff bne.w 80048ee + 80046f0: 4b09 ldr r3, [pc, #36] @ (8004718 ) + 80046f2: 2200 movs r2, #0 + 80046f4: 601a str r2, [r3, #0] + 80046f6: f7fd fbc9 bl 8001e8c + 80046fa: 6278 str r0, [r7, #36] @ 0x24 + 80046fc: e00e b.n 800471c + 80046fe: f7fd fbc5 bl 8001e8c + 8004702: 4602 mov r2, r0 + 8004704: 6a7b ldr r3, [r7, #36] @ 0x24 + 8004706: 1ad3 subs r3, r2, r3 + 8004708: 2b02 cmp r3, #2 + 800470a: d907 bls.n 800471c + 800470c: 2303 movs r3, #3 + 800470e: e188 b.n 8004a22 + 8004710: 40023800 .word 0x40023800 + 8004714: 424711e0 .word 0x424711e0 + 8004718: 42470068 .word 0x42470068 + 800471c: 4b7e ldr r3, [pc, #504] @ (8004918 ) + 800471e: 681b ldr r3, [r3, #0] + 8004720: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 + 8004724: 2b00 cmp r3, #0 + 8004726: d1ea bne.n 80046fe + 8004728: 687b ldr r3, [r7, #4] + 800472a: 681b ldr r3, [r3, #0] + 800472c: f003 0301 and.w r3, r3, #1 + 8004730: 2b00 cmp r3, #0 + 8004732: d003 beq.n 800473c + 8004734: 687b ldr r3, [r7, #4] + 8004736: 6b9b ldr r3, [r3, #56] @ 0x38 + 8004738: 2b00 cmp r3, #0 + 800473a: d009 beq.n 8004750 + 800473c: 687b ldr r3, [r7, #4] + 800473e: 681b ldr r3, [r3, #0] + 8004740: f003 0302 and.w r3, r3, #2 + 8004744: 2b00 cmp r3, #0 + 8004746: d028 beq.n 800479a + 8004748: 687b ldr r3, [r7, #4] + 800474a: 6bdb ldr r3, [r3, #60] @ 0x3c + 800474c: 2b00 cmp r3, #0 + 800474e: d124 bne.n 800479a + 8004750: 4b71 ldr r3, [pc, #452] @ (8004918 ) + 8004752: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8004756: 0c1b lsrs r3, r3, #16 + 8004758: f003 0303 and.w r3, r3, #3 + 800475c: 3301 adds r3, #1 + 800475e: 005b lsls r3, r3, #1 + 8004760: 61fb str r3, [r7, #28] + 8004762: 4b6d ldr r3, [pc, #436] @ (8004918 ) + 8004764: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8004768: 0e1b lsrs r3, r3, #24 + 800476a: f003 030f and.w r3, r3, #15 + 800476e: 61bb str r3, [r7, #24] + 8004770: 687b ldr r3, [r7, #4] + 8004772: 685a ldr r2, [r3, #4] + 8004774: 687b ldr r3, [r7, #4] + 8004776: 689b ldr r3, [r3, #8] + 8004778: 019b lsls r3, r3, #6 + 800477a: 431a orrs r2, r3 + 800477c: 69fb ldr r3, [r7, #28] + 800477e: 085b lsrs r3, r3, #1 + 8004780: 3b01 subs r3, #1 + 8004782: 041b lsls r3, r3, #16 + 8004784: 431a orrs r2, r3 + 8004786: 69bb ldr r3, [r7, #24] + 8004788: 061b lsls r3, r3, #24 + 800478a: 431a orrs r2, r3 + 800478c: 687b ldr r3, [r7, #4] + 800478e: 695b ldr r3, [r3, #20] + 8004790: 071b lsls r3, r3, #28 + 8004792: 4961 ldr r1, [pc, #388] @ (8004918 ) + 8004794: 4313 orrs r3, r2 + 8004796: f8c1 3084 str.w r3, [r1, #132] @ 0x84 + 800479a: 687b ldr r3, [r7, #4] + 800479c: 681b ldr r3, [r3, #0] + 800479e: f003 0304 and.w r3, r3, #4 + 80047a2: 2b00 cmp r3, #0 + 80047a4: d004 beq.n 80047b0 + 80047a6: 687b ldr r3, [r7, #4] + 80047a8: 6b1b ldr r3, [r3, #48] @ 0x30 + 80047aa: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 + 80047ae: d00a beq.n 80047c6 + 80047b0: 687b ldr r3, [r7, #4] + 80047b2: 681b ldr r3, [r3, #0] + 80047b4: f003 0308 and.w r3, r3, #8 + 80047b8: 2b00 cmp r3, #0 + 80047ba: d035 beq.n 8004828 + 80047bc: 687b ldr r3, [r7, #4] + 80047be: 6b5b ldr r3, [r3, #52] @ 0x34 + 80047c0: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 80047c4: d130 bne.n 8004828 + 80047c6: 4b54 ldr r3, [pc, #336] @ (8004918 ) + 80047c8: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 80047cc: 0c1b lsrs r3, r3, #16 + 80047ce: f003 0303 and.w r3, r3, #3 + 80047d2: 3301 adds r3, #1 + 80047d4: 005b lsls r3, r3, #1 + 80047d6: 61fb str r3, [r7, #28] + 80047d8: 4b4f ldr r3, [pc, #316] @ (8004918 ) + 80047da: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 80047de: 0f1b lsrs r3, r3, #28 + 80047e0: f003 0307 and.w r3, r3, #7 + 80047e4: 617b str r3, [r7, #20] + 80047e6: 687b ldr r3, [r7, #4] + 80047e8: 685a ldr r2, [r3, #4] + 80047ea: 687b ldr r3, [r7, #4] + 80047ec: 689b ldr r3, [r3, #8] + 80047ee: 019b lsls r3, r3, #6 + 80047f0: 431a orrs r2, r3 + 80047f2: 69fb ldr r3, [r7, #28] + 80047f4: 085b lsrs r3, r3, #1 + 80047f6: 3b01 subs r3, #1 + 80047f8: 041b lsls r3, r3, #16 + 80047fa: 431a orrs r2, r3 + 80047fc: 687b ldr r3, [r7, #4] + 80047fe: 691b ldr r3, [r3, #16] + 8004800: 061b lsls r3, r3, #24 + 8004802: 431a orrs r2, r3 + 8004804: 697b ldr r3, [r7, #20] + 8004806: 071b lsls r3, r3, #28 + 8004808: 4943 ldr r1, [pc, #268] @ (8004918 ) + 800480a: 4313 orrs r3, r2 + 800480c: f8c1 3084 str.w r3, [r1, #132] @ 0x84 + 8004810: 4b41 ldr r3, [pc, #260] @ (8004918 ) + 8004812: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 8004816: f023 021f bic.w r2, r3, #31 + 800481a: 687b ldr r3, [r7, #4] + 800481c: 6a9b ldr r3, [r3, #40] @ 0x28 + 800481e: 3b01 subs r3, #1 + 8004820: 493d ldr r1, [pc, #244] @ (8004918 ) + 8004822: 4313 orrs r3, r2 + 8004824: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 8004828: 687b ldr r3, [r7, #4] + 800482a: 681b ldr r3, [r3, #0] + 800482c: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8004830: 2b00 cmp r3, #0 + 8004832: d029 beq.n 8004888 + 8004834: 687b ldr r3, [r7, #4] + 8004836: 6d1b ldr r3, [r3, #80] @ 0x50 + 8004838: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 800483c: d124 bne.n 8004888 + 800483e: 4b36 ldr r3, [pc, #216] @ (8004918 ) + 8004840: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8004844: 0c1b lsrs r3, r3, #16 + 8004846: f003 0303 and.w r3, r3, #3 + 800484a: 3301 adds r3, #1 + 800484c: 005b lsls r3, r3, #1 + 800484e: 61bb str r3, [r7, #24] + 8004850: 4b31 ldr r3, [pc, #196] @ (8004918 ) + 8004852: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8004856: 0f1b lsrs r3, r3, #28 + 8004858: f003 0307 and.w r3, r3, #7 + 800485c: 617b str r3, [r7, #20] + 800485e: 687b ldr r3, [r7, #4] + 8004860: 685a ldr r2, [r3, #4] + 8004862: 687b ldr r3, [r7, #4] + 8004864: 689b ldr r3, [r3, #8] + 8004866: 019b lsls r3, r3, #6 + 8004868: 431a orrs r2, r3 + 800486a: 687b ldr r3, [r7, #4] + 800486c: 68db ldr r3, [r3, #12] + 800486e: 085b lsrs r3, r3, #1 + 8004870: 3b01 subs r3, #1 + 8004872: 041b lsls r3, r3, #16 + 8004874: 431a orrs r2, r3 + 8004876: 69bb ldr r3, [r7, #24] + 8004878: 061b lsls r3, r3, #24 + 800487a: 431a orrs r2, r3 + 800487c: 697b ldr r3, [r7, #20] + 800487e: 071b lsls r3, r3, #28 + 8004880: 4925 ldr r1, [pc, #148] @ (8004918 ) + 8004882: 4313 orrs r3, r2 + 8004884: f8c1 3084 str.w r3, [r1, #132] @ 0x84 + 8004888: 687b ldr r3, [r7, #4] + 800488a: 681b ldr r3, [r3, #0] + 800488c: f403 6300 and.w r3, r3, #2048 @ 0x800 + 8004890: 2b00 cmp r3, #0 + 8004892: d016 beq.n 80048c2 + 8004894: 687b ldr r3, [r7, #4] + 8004896: 685a ldr r2, [r3, #4] + 8004898: 687b ldr r3, [r7, #4] + 800489a: 689b ldr r3, [r3, #8] + 800489c: 019b lsls r3, r3, #6 + 800489e: 431a orrs r2, r3 + 80048a0: 687b ldr r3, [r7, #4] + 80048a2: 68db ldr r3, [r3, #12] + 80048a4: 085b lsrs r3, r3, #1 + 80048a6: 3b01 subs r3, #1 + 80048a8: 041b lsls r3, r3, #16 + 80048aa: 431a orrs r2, r3 + 80048ac: 687b ldr r3, [r7, #4] + 80048ae: 691b ldr r3, [r3, #16] + 80048b0: 061b lsls r3, r3, #24 + 80048b2: 431a orrs r2, r3 + 80048b4: 687b ldr r3, [r7, #4] + 80048b6: 695b ldr r3, [r3, #20] + 80048b8: 071b lsls r3, r3, #28 + 80048ba: 4917 ldr r1, [pc, #92] @ (8004918 ) + 80048bc: 4313 orrs r3, r2 + 80048be: f8c1 3084 str.w r3, [r1, #132] @ 0x84 + 80048c2: 4b16 ldr r3, [pc, #88] @ (800491c ) + 80048c4: 2201 movs r2, #1 + 80048c6: 601a str r2, [r3, #0] + 80048c8: f7fd fae0 bl 8001e8c + 80048cc: 6278 str r0, [r7, #36] @ 0x24 + 80048ce: e008 b.n 80048e2 + 80048d0: f7fd fadc bl 8001e8c + 80048d4: 4602 mov r2, r0 + 80048d6: 6a7b ldr r3, [r7, #36] @ 0x24 + 80048d8: 1ad3 subs r3, r2, r3 + 80048da: 2b02 cmp r3, #2 + 80048dc: d901 bls.n 80048e2 + 80048de: 2303 movs r3, #3 + 80048e0: e09f b.n 8004a22 + 80048e2: 4b0d ldr r3, [pc, #52] @ (8004918 ) + 80048e4: 681b ldr r3, [r3, #0] + 80048e6: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 + 80048ea: 2b00 cmp r3, #0 + 80048ec: d0f0 beq.n 80048d0 + 80048ee: 6abb ldr r3, [r7, #40] @ 0x28 + 80048f0: 2b01 cmp r3, #1 + 80048f2: f040 8095 bne.w 8004a20 + 80048f6: 4b0a ldr r3, [pc, #40] @ (8004920 ) + 80048f8: 2200 movs r2, #0 + 80048fa: 601a str r2, [r3, #0] + 80048fc: f7fd fac6 bl 8001e8c + 8004900: 6278 str r0, [r7, #36] @ 0x24 + 8004902: e00f b.n 8004924 + 8004904: f7fd fac2 bl 8001e8c + 8004908: 4602 mov r2, r0 + 800490a: 6a7b ldr r3, [r7, #36] @ 0x24 + 800490c: 1ad3 subs r3, r2, r3 + 800490e: 2b02 cmp r3, #2 + 8004910: d908 bls.n 8004924 + 8004912: 2303 movs r3, #3 + 8004914: e085 b.n 8004a22 + 8004916: bf00 nop + 8004918: 40023800 .word 0x40023800 + 800491c: 42470068 .word 0x42470068 + 8004920: 42470070 .word 0x42470070 + 8004924: 4b41 ldr r3, [pc, #260] @ (8004a2c ) + 8004926: 681b ldr r3, [r3, #0] + 8004928: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 + 800492c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 8004930: d0e8 beq.n 8004904 + 8004932: 687b ldr r3, [r7, #4] + 8004934: 681b ldr r3, [r3, #0] + 8004936: f003 0304 and.w r3, r3, #4 + 800493a: 2b00 cmp r3, #0 + 800493c: d003 beq.n 8004946 + 800493e: 687b ldr r3, [r7, #4] + 8004940: 6b1b ldr r3, [r3, #48] @ 0x30 + 8004942: 2b00 cmp r3, #0 + 8004944: d009 beq.n 800495a 8004946: 687b ldr r3, [r7, #4] 8004948: 681b ldr r3, [r3, #0] - 800494a: f003 0310 and.w r3, r3, #16 + 800494a: f003 0308 and.w r3, r3, #8 800494e: 2b00 cmp r3, #0 - 8004950: d004 beq.n 800495c - { - /* Configure Timer Prescaler */ - __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection); + 8004950: d02b beq.n 80049aa 8004952: 687b ldr r3, [r7, #4] - 8004954: f893 2058 ldrb.w r2, [r3, #88] @ 0x58 - 8004958: 4b3f ldr r3, [pc, #252] @ (8004a58 ) - 800495a: 601a str r2, [r3, #0] - } - /*--------------------------------------------------------------------------*/ - - /*---------------------------- FMPI2C1 Configuration -----------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMPI2C1) == RCC_PERIPHCLK_FMPI2C1) - 800495c: 687b ldr r3, [r7, #4] - 800495e: 681b ldr r3, [r3, #0] - 8004960: f003 0380 and.w r3, r3, #128 @ 0x80 - 8004964: 2b00 cmp r3, #0 - 8004966: d00a beq.n 800497e - { - /* Check the parameters */ - assert_param(IS_RCC_FMPI2C1CLKSOURCE(PeriphClkInit->Fmpi2c1ClockSelection)); - - /* Configure the FMPI2C1 clock source */ - __HAL_RCC_FMPI2C1_CONFIG(PeriphClkInit->Fmpi2c1ClockSelection); - 8004968: 4b3a ldr r3, [pc, #232] @ (8004a54 ) - 800496a: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 800496e: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 - 8004972: 687b ldr r3, [r7, #4] - 8004974: 6cdb ldr r3, [r3, #76] @ 0x4c - 8004976: 4937 ldr r1, [pc, #220] @ (8004a54 ) - 8004978: 4313 orrs r3, r2 - 800497a: f8c1 3094 str.w r3, [r1, #148] @ 0x94 - } - /*--------------------------------------------------------------------------*/ - - /*------------------------------ CEC Configuration -------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC) - 800497e: 687b ldr r3, [r7, #4] - 8004980: 681b ldr r3, [r3, #0] - 8004982: f003 0340 and.w r3, r3, #64 @ 0x40 - 8004986: 2b00 cmp r3, #0 - 8004988: d00a beq.n 80049a0 - { - /* Check the parameters */ - assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection)); - - /* Configure the CEC clock source */ - __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection); - 800498a: 4b32 ldr r3, [pc, #200] @ (8004a54 ) - 800498c: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 8004990: f023 6280 bic.w r2, r3, #67108864 @ 0x4000000 - 8004994: 687b ldr r3, [r7, #4] - 8004996: 6c9b ldr r3, [r3, #72] @ 0x48 - 8004998: 492e ldr r1, [pc, #184] @ (8004a54 ) - 800499a: 4313 orrs r3, r2 - 800499c: f8c1 3094 str.w r3, [r1, #148] @ 0x94 - } - /*--------------------------------------------------------------------------*/ - - /*----------------------------- CLK48 Configuration ------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) - 80049a0: 687b ldr r3, [r7, #4] - 80049a2: 681b ldr r3, [r3, #0] - 80049a4: f403 7380 and.w r3, r3, #256 @ 0x100 - 80049a8: 2b00 cmp r3, #0 - 80049aa: d011 beq.n 80049d0 - { - /* Check the parameters */ - assert_param(IS_RCC_CLK48CLKSOURCE(PeriphClkInit->Clk48ClockSelection)); - - /* Configure the CLK48 clock source */ - __HAL_RCC_CLK48_CONFIG(PeriphClkInit->Clk48ClockSelection); - 80049ac: 4b29 ldr r3, [pc, #164] @ (8004a54 ) - 80049ae: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 80049b2: f023 6200 bic.w r2, r3, #134217728 @ 0x8000000 + 8004954: 6b5b ldr r3, [r3, #52] @ 0x34 + 8004956: 2b00 cmp r3, #0 + 8004958: d127 bne.n 80049aa + 800495a: 4b34 ldr r3, [pc, #208] @ (8004a2c ) + 800495c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8004960: 0c1b lsrs r3, r3, #16 + 8004962: f003 0303 and.w r3, r3, #3 + 8004966: 3301 adds r3, #1 + 8004968: 005b lsls r3, r3, #1 + 800496a: 613b str r3, [r7, #16] + 800496c: 687b ldr r3, [r7, #4] + 800496e: 699a ldr r2, [r3, #24] + 8004970: 687b ldr r3, [r7, #4] + 8004972: 69db ldr r3, [r3, #28] + 8004974: 019b lsls r3, r3, #6 + 8004976: 431a orrs r2, r3 + 8004978: 693b ldr r3, [r7, #16] + 800497a: 085b lsrs r3, r3, #1 + 800497c: 3b01 subs r3, #1 + 800497e: 041b lsls r3, r3, #16 + 8004980: 431a orrs r2, r3 + 8004982: 687b ldr r3, [r7, #4] + 8004984: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004986: 061b lsls r3, r3, #24 + 8004988: 4928 ldr r1, [pc, #160] @ (8004a2c ) + 800498a: 4313 orrs r3, r2 + 800498c: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 8004990: 4b26 ldr r3, [pc, #152] @ (8004a2c ) + 8004992: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 8004996: f423 52f8 bic.w r2, r3, #7936 @ 0x1f00 + 800499a: 687b ldr r3, [r7, #4] + 800499c: 6adb ldr r3, [r3, #44] @ 0x2c + 800499e: 3b01 subs r3, #1 + 80049a0: 021b lsls r3, r3, #8 + 80049a2: 4922 ldr r1, [pc, #136] @ (8004a2c ) + 80049a4: 4313 orrs r3, r2 + 80049a6: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 80049aa: 687b ldr r3, [r7, #4] + 80049ac: 681b ldr r3, [r3, #0] + 80049ae: f403 7380 and.w r3, r3, #256 @ 0x100 + 80049b2: 2b00 cmp r3, #0 + 80049b4: d01d beq.n 80049f2 80049b6: 687b ldr r3, [r7, #4] 80049b8: 6d5b ldr r3, [r3, #84] @ 0x54 - 80049ba: 4926 ldr r1, [pc, #152] @ (8004a54 ) - 80049bc: 4313 orrs r3, r2 - 80049be: 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) - 80049c2: 687b ldr r3, [r7, #4] - 80049c4: 6d5b ldr r3, [r3, #84] @ 0x54 - 80049c6: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 - 80049ca: d101 bne.n 80049d0 - { - pllsaiused = 1U; - 80049cc: 2301 movs r3, #1 - 80049ce: 62bb str r3, [r7, #40] @ 0x28 - } - } - /*--------------------------------------------------------------------------*/ - - /*----------------------------- SDIO Configuration -------------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDIO) == RCC_PERIPHCLK_SDIO) - 80049d0: 687b ldr r3, [r7, #4] - 80049d2: 681b ldr r3, [r3, #0] - 80049d4: f403 7300 and.w r3, r3, #512 @ 0x200 - 80049d8: 2b00 cmp r3, #0 - 80049da: d00a beq.n 80049f2 - { - /* Check the parameters */ - assert_param(IS_RCC_SDIOCLKSOURCE(PeriphClkInit->SdioClockSelection)); - - /* Configure the SDIO clock source */ - __HAL_RCC_SDIO_CONFIG(PeriphClkInit->SdioClockSelection); - 80049dc: 4b1d ldr r3, [pc, #116] @ (8004a54 ) - 80049de: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 80049e2: f023 5280 bic.w r2, r3, #268435456 @ 0x10000000 - 80049e6: 687b ldr r3, [r7, #4] - 80049e8: 6c5b ldr r3, [r3, #68] @ 0x44 - 80049ea: 491a ldr r1, [pc, #104] @ (8004a54 ) + 80049ba: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 + 80049be: d118 bne.n 80049f2 + 80049c0: 4b1a ldr r3, [pc, #104] @ (8004a2c ) + 80049c2: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 80049c6: 0e1b lsrs r3, r3, #24 + 80049c8: f003 030f and.w r3, r3, #15 + 80049cc: 60fb str r3, [r7, #12] + 80049ce: 687b ldr r3, [r7, #4] + 80049d0: 699a ldr r2, [r3, #24] + 80049d2: 687b ldr r3, [r7, #4] + 80049d4: 69db ldr r3, [r3, #28] + 80049d6: 019b lsls r3, r3, #6 + 80049d8: 431a orrs r2, r3 + 80049da: 687b ldr r3, [r7, #4] + 80049dc: 6a1b ldr r3, [r3, #32] + 80049de: 085b lsrs r3, r3, #1 + 80049e0: 3b01 subs r3, #1 + 80049e2: 041b lsls r3, r3, #16 + 80049e4: 431a orrs r2, r3 + 80049e6: 68fb ldr r3, [r7, #12] + 80049e8: 061b lsls r3, r3, #24 + 80049ea: 4910 ldr r1, [pc, #64] @ (8004a2c ) 80049ec: 4313 orrs r3, r2 - 80049ee: f8c1 3094 str.w r3, [r1, #148] @ 0x94 - } - /*--------------------------------------------------------------------------*/ + 80049ee: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 80049f2: 4b0f ldr r3, [pc, #60] @ (8004a30 ) + 80049f4: 2201 movs r2, #1 + 80049f6: 601a str r2, [r3, #0] + 80049f8: f7fd fa48 bl 8001e8c + 80049fc: 6278 str r0, [r7, #36] @ 0x24 + 80049fe: e008 b.n 8004a12 + 8004a00: f7fd fa44 bl 8001e8c + 8004a04: 4602 mov r2, r0 + 8004a06: 6a7b ldr r3, [r7, #36] @ 0x24 + 8004a08: 1ad3 subs r3, r2, r3 + 8004a0a: 2b02 cmp r3, #2 + 8004a0c: d901 bls.n 8004a12 + 8004a0e: 2303 movs r3, #3 + 8004a10: e007 b.n 8004a22 + 8004a12: 4b06 ldr r3, [pc, #24] @ (8004a2c ) + 8004a14: 681b ldr r3, [r3, #0] + 8004a16: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 + 8004a1a: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 8004a1e: d1ef bne.n 8004a00 + 8004a20: 2300 movs r3, #0 + 8004a22: 4618 mov r0, r3 + 8004a24: 3730 adds r7, #48 @ 0x30 + 8004a26: 46bd mov sp, r7 + 8004a28: bd80 pop {r7, pc} + 8004a2a: bf00 nop + 8004a2c: 40023800 .word 0x40023800 + 8004a30: 42470070 .word 0x42470070 - /*------------------------------ SPDIFRX Configuration ---------------------*/ - if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX) - 80049f2: 687b ldr r3, [r7, #4] - 80049f4: 681b ldr r3, [r3, #0] - 80049f6: f403 6380 and.w r3, r3, #1024 @ 0x400 - 80049fa: 2b00 cmp r3, #0 - 80049fc: d011 beq.n 8004a22 - { - /* Check the parameters */ - assert_param(IS_RCC_SPDIFRXCLKSOURCE(PeriphClkInit->SpdifClockSelection)); - - /* Configure the SPDIFRX clock source */ - __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifClockSelection); - 80049fe: 4b15 ldr r3, [pc, #84] @ (8004a54 ) - 8004a00: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 8004a04: f023 5200 bic.w r2, r3, #536870912 @ 0x20000000 - 8004a08: 687b ldr r3, [r7, #4] - 8004a0a: 6d1b ldr r3, [r3, #80] @ 0x50 - 8004a0c: 4911 ldr r1, [pc, #68] @ (8004a54 ) - 8004a0e: 4313 orrs r3, r2 - 8004a10: 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) - 8004a14: 687b ldr r3, [r7, #4] - 8004a16: 6d1b ldr r3, [r3, #80] @ 0x50 - 8004a18: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8004a1c: d101 bne.n 8004a22 - { - plli2sused = 1U; - 8004a1e: 2301 movs r3, #1 - 8004a20: 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)) - 8004a22: 6afb ldr r3, [r7, #44] @ 0x2c - 8004a24: 2b01 cmp r3, #1 - 8004a26: d005 beq.n 8004a34 - 8004a28: 687b ldr r3, [r7, #4] - 8004a2a: 681b ldr r3, [r3, #0] - 8004a2c: f5b3 6f00 cmp.w r3, #2048 @ 0x800 - 8004a30: f040 80ff bne.w 8004c32 - { - /* Disable the PLLI2S */ - __HAL_RCC_PLLI2S_DISABLE(); - 8004a34: 4b09 ldr r3, [pc, #36] @ (8004a5c ) - 8004a36: 2200 movs r2, #0 - 8004a38: 601a str r2, [r3, #0] - /* Get tick */ - tickstart = HAL_GetTick(); - 8004a3a: f7fd fa85 bl 8001f48 - 8004a3e: 6278 str r0, [r7, #36] @ 0x24 - /* Wait till PLLI2S is disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) - 8004a40: e00e b.n 8004a60 - { - if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) - 8004a42: f7fd fa81 bl 8001f48 - 8004a46: 4602 mov r2, r0 - 8004a48: 6a7b ldr r3, [r7, #36] @ 0x24 - 8004a4a: 1ad3 subs r3, r2, r3 - 8004a4c: 2b02 cmp r3, #2 - 8004a4e: d907 bls.n 8004a60 - { - /* return in case of Timeout detected */ - return HAL_TIMEOUT; - 8004a50: 2303 movs r3, #3 - 8004a52: e188 b.n 8004d66 - 8004a54: 40023800 .word 0x40023800 - 8004a58: 424711e0 .word 0x424711e0 - 8004a5c: 42470068 .word 0x42470068 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) - 8004a60: 4b7e ldr r3, [pc, #504] @ (8004c5c ) - 8004a62: 681b ldr r3, [r3, #0] - 8004a64: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 - 8004a68: 2b00 cmp r3, #0 - 8004a6a: d1ea bne.n 8004a42 - /* 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) - 8004a6c: 687b ldr r3, [r7, #4] - 8004a6e: 681b ldr r3, [r3, #0] - 8004a70: f003 0301 and.w r3, r3, #1 - 8004a74: 2b00 cmp r3, #0 - 8004a76: d003 beq.n 8004a80 - && (PeriphClkInit->I2sApb1ClockSelection == RCC_I2SAPB1CLKSOURCE_PLLI2S)) || - 8004a78: 687b ldr r3, [r7, #4] - 8004a7a: 6b9b ldr r3, [r3, #56] @ 0x38 - 8004a7c: 2b00 cmp r3, #0 - 8004a7e: d009 beq.n 8004a94 - ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == RCC_PERIPHCLK_I2S_APB2) && (PeriphClkInit->I2sApb2ClockSelection == RCC_I2SAPB2CLKSOURCE_PLLI2S))) - 8004a80: 687b ldr r3, [r7, #4] - 8004a82: 681b ldr r3, [r3, #0] - 8004a84: f003 0302 and.w r3, r3, #2 - && (PeriphClkInit->I2sApb1ClockSelection == RCC_I2SAPB1CLKSOURCE_PLLI2S)) || - 8004a88: 2b00 cmp r3, #0 - 8004a8a: d028 beq.n 8004ade - ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == RCC_PERIPHCLK_I2S_APB2) && (PeriphClkInit->I2sApb2ClockSelection == RCC_I2SAPB2CLKSOURCE_PLLI2S))) - 8004a8c: 687b ldr r3, [r7, #4] - 8004a8e: 6bdb ldr r3, [r3, #60] @ 0x3c - 8004a90: 2b00 cmp r3, #0 - 8004a92: d124 bne.n 8004ade - { - /* 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); - 8004a94: 4b71 ldr r3, [pc, #452] @ (8004c5c ) - 8004a96: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8004a9a: 0c1b lsrs r3, r3, #16 - 8004a9c: f003 0303 and.w r3, r3, #3 - 8004aa0: 3301 adds r3, #1 - 8004aa2: 005b lsls r3, r3, #1 - 8004aa4: 61fb str r3, [r7, #28] - plli2sq = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos); - 8004aa6: 4b6d ldr r3, [pc, #436] @ (8004c5c ) - 8004aa8: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8004aac: 0e1b lsrs r3, r3, #24 - 8004aae: f003 030f and.w r3, r3, #15 - 8004ab2: 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, - 8004ab4: 687b ldr r3, [r7, #4] - 8004ab6: 685a ldr r2, [r3, #4] - 8004ab8: 687b ldr r3, [r7, #4] - 8004aba: 689b ldr r3, [r3, #8] - 8004abc: 019b lsls r3, r3, #6 - 8004abe: 431a orrs r2, r3 - 8004ac0: 69fb ldr r3, [r7, #28] - 8004ac2: 085b lsrs r3, r3, #1 - 8004ac4: 3b01 subs r3, #1 - 8004ac6: 041b lsls r3, r3, #16 - 8004ac8: 431a orrs r2, r3 - 8004aca: 69bb ldr r3, [r7, #24] - 8004acc: 061b lsls r3, r3, #24 - 8004ace: 431a orrs r2, r3 - 8004ad0: 687b ldr r3, [r7, #4] - 8004ad2: 695b ldr r3, [r3, #20] - 8004ad4: 071b lsls r3, r3, #28 - 8004ad6: 4961 ldr r1, [pc, #388] @ (8004c5c ) - 8004ad8: 4313 orrs r3, r2 - 8004ada: 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) - 8004ade: 687b ldr r3, [r7, #4] - 8004ae0: 681b ldr r3, [r3, #0] - 8004ae2: f003 0304 and.w r3, r3, #4 - 8004ae6: 2b00 cmp r3, #0 - 8004ae8: d004 beq.n 8004af4 - && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)) || - 8004aea: 687b ldr r3, [r7, #4] - 8004aec: 6b1b ldr r3, [r3, #48] @ 0x30 - 8004aee: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 - 8004af2: d00a beq.n 8004b0a - ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S))) - 8004af4: 687b ldr r3, [r7, #4] - 8004af6: 681b ldr r3, [r3, #0] - 8004af8: f003 0308 and.w r3, r3, #8 - && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)) || - 8004afc: 2b00 cmp r3, #0 - 8004afe: d035 beq.n 8004b6c - ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S))) - 8004b00: 687b ldr r3, [r7, #4] - 8004b02: 6b5b ldr r3, [r3, #52] @ 0x34 - 8004b04: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 8004b08: d130 bne.n 8004b6c - 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); - 8004b0a: 4b54 ldr r3, [pc, #336] @ (8004c5c ) - 8004b0c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8004b10: 0c1b lsrs r3, r3, #16 - 8004b12: f003 0303 and.w r3, r3, #3 - 8004b16: 3301 adds r3, #1 - 8004b18: 005b lsls r3, r3, #1 - 8004b1a: 61fb str r3, [r7, #28] - plli2sr = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); - 8004b1c: 4b4f ldr r3, [pc, #316] @ (8004c5c ) - 8004b1e: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8004b22: 0f1b lsrs r3, r3, #28 - 8004b24: f003 0307 and.w r3, r3, #7 - 8004b28: 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, - 8004b2a: 687b ldr r3, [r7, #4] - 8004b2c: 685a ldr r2, [r3, #4] - 8004b2e: 687b ldr r3, [r7, #4] - 8004b30: 689b ldr r3, [r3, #8] - 8004b32: 019b lsls r3, r3, #6 - 8004b34: 431a orrs r2, r3 - 8004b36: 69fb ldr r3, [r7, #28] - 8004b38: 085b lsrs r3, r3, #1 - 8004b3a: 3b01 subs r3, #1 - 8004b3c: 041b lsls r3, r3, #16 - 8004b3e: 431a orrs r2, r3 - 8004b40: 687b ldr r3, [r7, #4] - 8004b42: 691b ldr r3, [r3, #16] - 8004b44: 061b lsls r3, r3, #24 - 8004b46: 431a orrs r2, r3 - 8004b48: 697b ldr r3, [r7, #20] - 8004b4a: 071b lsls r3, r3, #28 - 8004b4c: 4943 ldr r1, [pc, #268] @ (8004c5c ) - 8004b4e: 4313 orrs r3, r2 - 8004b50: 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); - 8004b54: 4b41 ldr r3, [pc, #260] @ (8004c5c ) - 8004b56: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 8004b5a: f023 021f bic.w r2, r3, #31 - 8004b5e: 687b ldr r3, [r7, #4] - 8004b60: 6a9b ldr r3, [r3, #40] @ 0x28 - 8004b62: 3b01 subs r3, #1 - 8004b64: 493d ldr r1, [pc, #244] @ (8004c5c ) - 8004b66: 4313 orrs r3, r2 - 8004b68: 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) - 8004b6c: 687b ldr r3, [r7, #4] - 8004b6e: 681b ldr r3, [r3, #0] - 8004b70: f403 6380 and.w r3, r3, #1024 @ 0x400 - 8004b74: 2b00 cmp r3, #0 - 8004b76: d029 beq.n 8004bcc - && (PeriphClkInit->SpdifClockSelection == RCC_SPDIFRXCLKSOURCE_PLLI2SP)) - 8004b78: 687b ldr r3, [r7, #4] - 8004b7a: 6d1b ldr r3, [r3, #80] @ 0x50 - 8004b7c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8004b80: d124 bne.n 8004bcc - { - /* 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); - 8004b82: 4b36 ldr r3, [pc, #216] @ (8004c5c ) - 8004b84: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8004b88: 0c1b lsrs r3, r3, #16 - 8004b8a: f003 0303 and.w r3, r3, #3 - 8004b8e: 3301 adds r3, #1 - 8004b90: 005b lsls r3, r3, #1 - 8004b92: 61bb str r3, [r7, #24] - plli2sr = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); - 8004b94: 4b31 ldr r3, [pc, #196] @ (8004c5c ) - 8004b96: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8004b9a: 0f1b lsrs r3, r3, #28 - 8004b9c: f003 0307 and.w r3, r3, #7 - 8004ba0: 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, - 8004ba2: 687b ldr r3, [r7, #4] - 8004ba4: 685a ldr r2, [r3, #4] - 8004ba6: 687b ldr r3, [r7, #4] - 8004ba8: 689b ldr r3, [r3, #8] - 8004baa: 019b lsls r3, r3, #6 - 8004bac: 431a orrs r2, r3 - 8004bae: 687b ldr r3, [r7, #4] - 8004bb0: 68db ldr r3, [r3, #12] - 8004bb2: 085b lsrs r3, r3, #1 - 8004bb4: 3b01 subs r3, #1 - 8004bb6: 041b lsls r3, r3, #16 - 8004bb8: 431a orrs r2, r3 - 8004bba: 69bb ldr r3, [r7, #24] - 8004bbc: 061b lsls r3, r3, #24 - 8004bbe: 431a orrs r2, r3 - 8004bc0: 697b ldr r3, [r7, #20] - 8004bc2: 071b lsls r3, r3, #28 - 8004bc4: 4925 ldr r1, [pc, #148] @ (8004c5c ) - 8004bc6: 4313 orrs r3, r2 - 8004bc8: 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) - 8004bcc: 687b ldr r3, [r7, #4] - 8004bce: 681b ldr r3, [r3, #0] - 8004bd0: f403 6300 and.w r3, r3, #2048 @ 0x800 - 8004bd4: 2b00 cmp r3, #0 - 8004bd6: d016 beq.n 8004c06 - 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, - 8004bd8: 687b ldr r3, [r7, #4] - 8004bda: 685a ldr r2, [r3, #4] - 8004bdc: 687b ldr r3, [r7, #4] - 8004bde: 689b ldr r3, [r3, #8] - 8004be0: 019b lsls r3, r3, #6 - 8004be2: 431a orrs r2, r3 - 8004be4: 687b ldr r3, [r7, #4] - 8004be6: 68db ldr r3, [r3, #12] - 8004be8: 085b lsrs r3, r3, #1 - 8004bea: 3b01 subs r3, #1 - 8004bec: 041b lsls r3, r3, #16 - 8004bee: 431a orrs r2, r3 - 8004bf0: 687b ldr r3, [r7, #4] - 8004bf2: 691b ldr r3, [r3, #16] - 8004bf4: 061b lsls r3, r3, #24 - 8004bf6: 431a orrs r2, r3 - 8004bf8: 687b ldr r3, [r7, #4] - 8004bfa: 695b ldr r3, [r3, #20] - 8004bfc: 071b lsls r3, r3, #28 - 8004bfe: 4917 ldr r1, [pc, #92] @ (8004c5c ) - 8004c00: 4313 orrs r3, r2 - 8004c02: f8c1 3084 str.w r3, [r1, #132] @ 0x84 - PeriphClkInit->PLLI2S.PLLI2SQ, PeriphClkInit->PLLI2S.PLLI2SR); - } - - /* Enable the PLLI2S */ - __HAL_RCC_PLLI2S_ENABLE(); - 8004c06: 4b16 ldr r3, [pc, #88] @ (8004c60 ) - 8004c08: 2201 movs r2, #1 - 8004c0a: 601a str r2, [r3, #0] - /* Get tick */ - tickstart = HAL_GetTick(); - 8004c0c: f7fd f99c bl 8001f48 - 8004c10: 6278 str r0, [r7, #36] @ 0x24 - /* Wait till PLLI2S is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) - 8004c12: e008 b.n 8004c26 - { - if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) - 8004c14: f7fd f998 bl 8001f48 - 8004c18: 4602 mov r2, r0 - 8004c1a: 6a7b ldr r3, [r7, #36] @ 0x24 - 8004c1c: 1ad3 subs r3, r2, r3 - 8004c1e: 2b02 cmp r3, #2 - 8004c20: d901 bls.n 8004c26 - { - /* return in case of Timeout detected */ - return HAL_TIMEOUT; - 8004c22: 2303 movs r3, #3 - 8004c24: e09f b.n 8004d66 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) - 8004c26: 4b0d ldr r3, [pc, #52] @ (8004c5c ) - 8004c28: 681b ldr r3, [r3, #0] - 8004c2a: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 - 8004c2e: 2b00 cmp r3, #0 - 8004c30: d0f0 beq.n 8004c14 - } - /*--------------------------------------------------------------------------*/ - - /*----------------------------- PLLSAI Configuration -----------------------*/ - /* PLLSAI is configured when a peripheral will use it as source clock : SAI1, SAI2, CLK48 or SDIO */ - if (pllsaiused == 1U) - 8004c32: 6abb ldr r3, [r7, #40] @ 0x28 - 8004c34: 2b01 cmp r3, #1 - 8004c36: f040 8095 bne.w 8004d64 - { - /* Disable PLLSAI Clock */ - __HAL_RCC_PLLSAI_DISABLE(); - 8004c3a: 4b0a ldr r3, [pc, #40] @ (8004c64 ) - 8004c3c: 2200 movs r2, #0 - 8004c3e: 601a str r2, [r3, #0] - /* Get tick */ - tickstart = HAL_GetTick(); - 8004c40: f7fd f982 bl 8001f48 - 8004c44: 6278 str r0, [r7, #36] @ 0x24 - /* Wait till PLLSAI is disabled */ - while (__HAL_RCC_PLLSAI_GET_FLAG() != RESET) - 8004c46: e00f b.n 8004c68 - { - if ((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE) - 8004c48: f7fd f97e bl 8001f48 - 8004c4c: 4602 mov r2, r0 - 8004c4e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8004c50: 1ad3 subs r3, r2, r3 - 8004c52: 2b02 cmp r3, #2 - 8004c54: d908 bls.n 8004c68 - { - /* return in case of Timeout detected */ - return HAL_TIMEOUT; - 8004c56: 2303 movs r3, #3 - 8004c58: e085 b.n 8004d66 - 8004c5a: bf00 nop - 8004c5c: 40023800 .word 0x40023800 - 8004c60: 42470068 .word 0x42470068 - 8004c64: 42470070 .word 0x42470070 - while (__HAL_RCC_PLLSAI_GET_FLAG() != RESET) - 8004c68: 4b41 ldr r3, [pc, #260] @ (8004d70 ) - 8004c6a: 681b ldr r3, [r3, #0] - 8004c6c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 - 8004c70: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8004c74: d0e8 beq.n 8004c48 - /* 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) - 8004c76: 687b ldr r3, [r7, #4] - 8004c78: 681b ldr r3, [r3, #0] - 8004c7a: f003 0304 and.w r3, r3, #4 - 8004c7e: 2b00 cmp r3, #0 - 8004c80: d003 beq.n 8004c8a - && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)) || - 8004c82: 687b ldr r3, [r7, #4] - 8004c84: 6b1b ldr r3, [r3, #48] @ 0x30 - 8004c86: 2b00 cmp r3, #0 - 8004c88: d009 beq.n 8004c9e - ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI))) - 8004c8a: 687b ldr r3, [r7, #4] - 8004c8c: 681b ldr r3, [r3, #0] - 8004c8e: f003 0308 and.w r3, r3, #8 - && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)) || - 8004c92: 2b00 cmp r3, #0 - 8004c94: d02b beq.n 8004cee - ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI))) - 8004c96: 687b ldr r3, [r7, #4] - 8004c98: 6b5b ldr r3, [r3, #52] @ 0x34 - 8004c9a: 2b00 cmp r3, #0 - 8004c9c: d127 bne.n 8004cee - 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); - 8004c9e: 4b34 ldr r3, [pc, #208] @ (8004d70 ) - 8004ca0: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8004ca4: 0c1b lsrs r3, r3, #16 - 8004ca6: f003 0303 and.w r3, r3, #3 - 8004caa: 3301 adds r3, #1 - 8004cac: 005b lsls r3, r3, #1 - 8004cae: 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, - 8004cb0: 687b ldr r3, [r7, #4] - 8004cb2: 699a ldr r2, [r3, #24] - 8004cb4: 687b ldr r3, [r7, #4] - 8004cb6: 69db ldr r3, [r3, #28] - 8004cb8: 019b lsls r3, r3, #6 - 8004cba: 431a orrs r2, r3 - 8004cbc: 693b ldr r3, [r7, #16] - 8004cbe: 085b lsrs r3, r3, #1 - 8004cc0: 3b01 subs r3, #1 - 8004cc2: 041b lsls r3, r3, #16 - 8004cc4: 431a orrs r2, r3 - 8004cc6: 687b ldr r3, [r7, #4] - 8004cc8: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004cca: 061b lsls r3, r3, #24 - 8004ccc: 4928 ldr r1, [pc, #160] @ (8004d70 ) - 8004cce: 4313 orrs r3, r2 - 8004cd0: 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); - 8004cd4: 4b26 ldr r3, [pc, #152] @ (8004d70 ) - 8004cd6: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 8004cda: f423 52f8 bic.w r2, r3, #7936 @ 0x1f00 - 8004cde: 687b ldr r3, [r7, #4] - 8004ce0: 6adb ldr r3, [r3, #44] @ 0x2c - 8004ce2: 3b01 subs r3, #1 - 8004ce4: 021b lsls r3, r3, #8 - 8004ce6: 4922 ldr r1, [pc, #136] @ (8004d70 ) - 8004ce8: 4313 orrs r3, r2 - 8004cea: 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) - 8004cee: 687b ldr r3, [r7, #4] - 8004cf0: 681b ldr r3, [r3, #0] - 8004cf2: f403 7380 and.w r3, r3, #256 @ 0x100 - 8004cf6: 2b00 cmp r3, #0 - 8004cf8: d01d beq.n 8004d36 - && (PeriphClkInit->Clk48ClockSelection == RCC_CLK48CLKSOURCE_PLLSAIP)) - 8004cfa: 687b ldr r3, [r7, #4] - 8004cfc: 6d5b ldr r3, [r3, #84] @ 0x54 - 8004cfe: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 - 8004d02: d118 bne.n 8004d36 - { - /* 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); - 8004d04: 4b1a ldr r3, [pc, #104] @ (8004d70 ) - 8004d06: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8004d0a: 0e1b lsrs r3, r3, #24 - 8004d0c: f003 030f and.w r3, r3, #15 - 8004d10: 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, - 8004d12: 687b ldr r3, [r7, #4] - 8004d14: 699a ldr r2, [r3, #24] - 8004d16: 687b ldr r3, [r7, #4] - 8004d18: 69db ldr r3, [r3, #28] - 8004d1a: 019b lsls r3, r3, #6 - 8004d1c: 431a orrs r2, r3 - 8004d1e: 687b ldr r3, [r7, #4] - 8004d20: 6a1b ldr r3, [r3, #32] - 8004d22: 085b lsrs r3, r3, #1 - 8004d24: 3b01 subs r3, #1 - 8004d26: 041b lsls r3, r3, #16 - 8004d28: 431a orrs r2, r3 - 8004d2a: 68fb ldr r3, [r7, #12] - 8004d2c: 061b lsls r3, r3, #24 - 8004d2e: 4910 ldr r1, [pc, #64] @ (8004d70 ) - 8004d30: 4313 orrs r3, r2 - 8004d32: f8c1 3088 str.w r3, [r1, #136] @ 0x88 - pllsaiq, 0U); - } - - /* Enable PLLSAI Clock */ - __HAL_RCC_PLLSAI_ENABLE(); - 8004d36: 4b0f ldr r3, [pc, #60] @ (8004d74 ) - 8004d38: 2201 movs r2, #1 - 8004d3a: 601a str r2, [r3, #0] - /* Get tick */ - tickstart = HAL_GetTick(); - 8004d3c: f7fd f904 bl 8001f48 - 8004d40: 6278 str r0, [r7, #36] @ 0x24 - /* Wait till PLLSAI is ready */ - while (__HAL_RCC_PLLSAI_GET_FLAG() == RESET) - 8004d42: e008 b.n 8004d56 - { - if ((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE) - 8004d44: f7fd f900 bl 8001f48 - 8004d48: 4602 mov r2, r0 - 8004d4a: 6a7b ldr r3, [r7, #36] @ 0x24 - 8004d4c: 1ad3 subs r3, r2, r3 - 8004d4e: 2b02 cmp r3, #2 - 8004d50: d901 bls.n 8004d56 - { - /* return in case of Timeout detected */ - return HAL_TIMEOUT; - 8004d52: 2303 movs r3, #3 - 8004d54: e007 b.n 8004d66 - while (__HAL_RCC_PLLSAI_GET_FLAG() == RESET) - 8004d56: 4b06 ldr r3, [pc, #24] @ (8004d70 ) - 8004d58: 681b ldr r3, [r3, #0] - 8004d5a: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 - 8004d5e: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8004d62: d1ef bne.n 8004d44 - } - } - } - return HAL_OK; - 8004d64: 2300 movs r3, #0 -} - 8004d66: 4618 mov r0, r3 - 8004d68: 3730 adds r7, #48 @ 0x30 - 8004d6a: 46bd mov sp, r7 - 8004d6c: bd80 pop {r7, pc} - 8004d6e: bf00 nop - 8004d70: 40023800 .word 0x40023800 - 8004d74: 42470070 .word 0x42470070 - -08004d78 : - * - * - * @retval SYSCLK frequency - */ -uint32_t HAL_RCC_GetSysClockFreq(void) -{ - 8004d78: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} - 8004d7c: b0ae sub sp, #184 @ 0xb8 - 8004d7e: af00 add r7, sp, #0 - uint32_t pllm = 0U; - 8004d80: 2300 movs r3, #0 - 8004d82: f8c7 30ac str.w r3, [r7, #172] @ 0xac - uint32_t pllvco = 0U; - 8004d86: 2300 movs r3, #0 - 8004d88: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - uint32_t pllp = 0U; - 8004d8c: 2300 movs r3, #0 - 8004d8e: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 - uint32_t pllr = 0U; - 8004d92: 2300 movs r3, #0 - 8004d94: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 - uint32_t sysclockfreq = 0U; - 8004d98: 2300 movs r3, #0 - 8004d9a: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - - /* Get SYSCLK source -------------------------------------------------------*/ - switch (RCC->CFGR & RCC_CFGR_SWS) - 8004d9e: 4bcb ldr r3, [pc, #812] @ (80050cc ) - 8004da0: 689b ldr r3, [r3, #8] - 8004da2: f003 030c and.w r3, r3, #12 - 8004da6: 2b0c cmp r3, #12 - 8004da8: f200 8206 bhi.w 80051b8 - 8004dac: a201 add r2, pc, #4 @ (adr r2, 8004db4 ) - 8004dae: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8004db2: bf00 nop - 8004db4: 08004de9 .word 0x08004de9 - 8004db8: 080051b9 .word 0x080051b9 - 8004dbc: 080051b9 .word 0x080051b9 - 8004dc0: 080051b9 .word 0x080051b9 - 8004dc4: 08004df1 .word 0x08004df1 - 8004dc8: 080051b9 .word 0x080051b9 - 8004dcc: 080051b9 .word 0x080051b9 - 8004dd0: 080051b9 .word 0x080051b9 - 8004dd4: 08004df9 .word 0x08004df9 - 8004dd8: 080051b9 .word 0x080051b9 - 8004ddc: 080051b9 .word 0x080051b9 - 8004de0: 080051b9 .word 0x080051b9 - 8004de4: 08004fe9 .word 0x08004fe9 - { - case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */ - { - sysclockfreq = HSI_VALUE; - 8004de8: 4bb9 ldr r3, [pc, #740] @ (80050d0 ) - 8004dea: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - break; - 8004dee: e1e7 b.n 80051c0 - } - case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */ - { - sysclockfreq = HSE_VALUE; - 8004df0: 4bb8 ldr r3, [pc, #736] @ (80050d4 ) - 8004df2: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - break; - 8004df6: e1e3 b.n 80051c0 - } - 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; - 8004df8: 4bb4 ldr r3, [pc, #720] @ (80050cc ) - 8004dfa: 685b ldr r3, [r3, #4] - 8004dfc: f003 033f and.w r3, r3, #63 @ 0x3f - 8004e00: f8c7 30ac str.w r3, [r7, #172] @ 0xac - if (__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI) - 8004e04: 4bb1 ldr r3, [pc, #708] @ (80050cc ) - 8004e06: 685b ldr r3, [r3, #4] - 8004e08: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8004e0c: 2b00 cmp r3, #0 - 8004e0e: d071 beq.n 8004ef4 - { - /* 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); - 8004e10: 4bae ldr r3, [pc, #696] @ (80050cc ) - 8004e12: 685b ldr r3, [r3, #4] - 8004e14: 099b lsrs r3, r3, #6 - 8004e16: 2200 movs r2, #0 - 8004e18: f8c7 3098 str.w r3, [r7, #152] @ 0x98 - 8004e1c: f8c7 209c str.w r2, [r7, #156] @ 0x9c - 8004e20: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 - 8004e24: f3c3 0308 ubfx r3, r3, #0, #9 - 8004e28: f8c7 3090 str.w r3, [r7, #144] @ 0x90 - 8004e2c: 2300 movs r3, #0 - 8004e2e: f8c7 3094 str.w r3, [r7, #148] @ 0x94 - 8004e32: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 - 8004e36: 4622 mov r2, r4 - 8004e38: 462b mov r3, r5 - 8004e3a: f04f 0000 mov.w r0, #0 - 8004e3e: f04f 0100 mov.w r1, #0 - 8004e42: 0159 lsls r1, r3, #5 - 8004e44: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8004e48: 0150 lsls r0, r2, #5 +08004a34 : + 8004a34: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} + 8004a38: b0ae sub sp, #184 @ 0xb8 + 8004a3a: af00 add r7, sp, #0 + 8004a3c: 2300 movs r3, #0 + 8004a3e: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8004a42: 2300 movs r3, #0 + 8004a44: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8004a48: 2300 movs r3, #0 + 8004a4a: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 8004a4e: 2300 movs r3, #0 + 8004a50: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 8004a54: 2300 movs r3, #0 + 8004a56: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004a5a: 4bcb ldr r3, [pc, #812] @ (8004d88 ) + 8004a5c: 689b ldr r3, [r3, #8] + 8004a5e: f003 030c and.w r3, r3, #12 + 8004a62: 2b0c cmp r3, #12 + 8004a64: f200 8206 bhi.w 8004e74 + 8004a68: a201 add r2, pc, #4 @ (adr r2, 8004a70 ) + 8004a6a: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8004a6e: bf00 nop + 8004a70: 08004aa5 .word 0x08004aa5 + 8004a74: 08004e75 .word 0x08004e75 + 8004a78: 08004e75 .word 0x08004e75 + 8004a7c: 08004e75 .word 0x08004e75 + 8004a80: 08004aad .word 0x08004aad + 8004a84: 08004e75 .word 0x08004e75 + 8004a88: 08004e75 .word 0x08004e75 + 8004a8c: 08004e75 .word 0x08004e75 + 8004a90: 08004ab5 .word 0x08004ab5 + 8004a94: 08004e75 .word 0x08004e75 + 8004a98: 08004e75 .word 0x08004e75 + 8004a9c: 08004e75 .word 0x08004e75 + 8004aa0: 08004ca5 .word 0x08004ca5 + 8004aa4: 4bb9 ldr r3, [pc, #740] @ (8004d8c ) + 8004aa6: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004aaa: e1e7 b.n 8004e7c + 8004aac: 4bb8 ldr r3, [pc, #736] @ (8004d90 ) + 8004aae: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004ab2: e1e3 b.n 8004e7c + 8004ab4: 4bb4 ldr r3, [pc, #720] @ (8004d88 ) + 8004ab6: 685b ldr r3, [r3, #4] + 8004ab8: f003 033f and.w r3, r3, #63 @ 0x3f + 8004abc: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8004ac0: 4bb1 ldr r3, [pc, #708] @ (8004d88 ) + 8004ac2: 685b ldr r3, [r3, #4] + 8004ac4: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004ac8: 2b00 cmp r3, #0 + 8004aca: d071 beq.n 8004bb0 + 8004acc: 4bae ldr r3, [pc, #696] @ (8004d88 ) + 8004ace: 685b ldr r3, [r3, #4] + 8004ad0: 099b lsrs r3, r3, #6 + 8004ad2: 2200 movs r2, #0 + 8004ad4: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 8004ad8: f8c7 209c str.w r2, [r7, #156] @ 0x9c + 8004adc: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 + 8004ae0: f3c3 0308 ubfx r3, r3, #0, #9 + 8004ae4: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 8004ae8: 2300 movs r3, #0 + 8004aea: f8c7 3094 str.w r3, [r7, #148] @ 0x94 + 8004aee: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 + 8004af2: 4622 mov r2, r4 + 8004af4: 462b mov r3, r5 + 8004af6: f04f 0000 mov.w r0, #0 + 8004afa: f04f 0100 mov.w r1, #0 + 8004afe: 0159 lsls r1, r3, #5 + 8004b00: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8004b04: 0150 lsls r0, r2, #5 + 8004b06: 4602 mov r2, r0 + 8004b08: 460b mov r3, r1 + 8004b0a: 4621 mov r1, r4 + 8004b0c: 1a51 subs r1, r2, r1 + 8004b0e: 6439 str r1, [r7, #64] @ 0x40 + 8004b10: 4629 mov r1, r5 + 8004b12: eb63 0301 sbc.w r3, r3, r1 + 8004b16: 647b str r3, [r7, #68] @ 0x44 + 8004b18: f04f 0200 mov.w r2, #0 + 8004b1c: f04f 0300 mov.w r3, #0 + 8004b20: e9d7 8910 ldrd r8, r9, [r7, #64] @ 0x40 + 8004b24: 4649 mov r1, r9 + 8004b26: 018b lsls r3, r1, #6 + 8004b28: 4641 mov r1, r8 + 8004b2a: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8004b2e: 4641 mov r1, r8 + 8004b30: 018a lsls r2, r1, #6 + 8004b32: 4641 mov r1, r8 + 8004b34: 1a51 subs r1, r2, r1 + 8004b36: 63b9 str r1, [r7, #56] @ 0x38 + 8004b38: 4649 mov r1, r9 + 8004b3a: eb63 0301 sbc.w r3, r3, r1 + 8004b3e: 63fb str r3, [r7, #60] @ 0x3c + 8004b40: f04f 0200 mov.w r2, #0 + 8004b44: f04f 0300 mov.w r3, #0 + 8004b48: e9d7 890e ldrd r8, r9, [r7, #56] @ 0x38 + 8004b4c: 4649 mov r1, r9 + 8004b4e: 00cb lsls r3, r1, #3 + 8004b50: 4641 mov r1, r8 + 8004b52: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8004b56: 4641 mov r1, r8 + 8004b58: 00ca lsls r2, r1, #3 + 8004b5a: 4610 mov r0, r2 + 8004b5c: 4619 mov r1, r3 + 8004b5e: 4603 mov r3, r0 + 8004b60: 4622 mov r2, r4 + 8004b62: 189b adds r3, r3, r2 + 8004b64: 633b str r3, [r7, #48] @ 0x30 + 8004b66: 462b mov r3, r5 + 8004b68: 460a mov r2, r1 + 8004b6a: eb42 0303 adc.w r3, r2, r3 + 8004b6e: 637b str r3, [r7, #52] @ 0x34 + 8004b70: f04f 0200 mov.w r2, #0 + 8004b74: f04f 0300 mov.w r3, #0 + 8004b78: e9d7 450c ldrd r4, r5, [r7, #48] @ 0x30 + 8004b7c: 4629 mov r1, r5 + 8004b7e: 024b lsls r3, r1, #9 + 8004b80: 4621 mov r1, r4 + 8004b82: ea43 53d1 orr.w r3, r3, r1, lsr #23 + 8004b86: 4621 mov r1, r4 + 8004b88: 024a lsls r2, r1, #9 + 8004b8a: 4610 mov r0, r2 + 8004b8c: 4619 mov r1, r3 + 8004b8e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8004b92: 2200 movs r2, #0 + 8004b94: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 8004b98: f8c7 208c str.w r2, [r7, #140] @ 0x8c + 8004b9c: e9d7 2322 ldrd r2, r3, [r7, #136] @ 0x88 + 8004ba0: f7fb fb30 bl 8000204 <__aeabi_uldivmod> + 8004ba4: 4602 mov r2, r0 + 8004ba6: 460b mov r3, r1 + 8004ba8: 4613 mov r3, r2 + 8004baa: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8004bae: e067 b.n 8004c80 + 8004bb0: 4b75 ldr r3, [pc, #468] @ (8004d88 ) + 8004bb2: 685b ldr r3, [r3, #4] + 8004bb4: 099b lsrs r3, r3, #6 + 8004bb6: 2200 movs r2, #0 + 8004bb8: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 8004bbc: f8c7 2084 str.w r2, [r7, #132] @ 0x84 + 8004bc0: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 + 8004bc4: f3c3 0308 ubfx r3, r3, #0, #9 + 8004bc8: 67bb str r3, [r7, #120] @ 0x78 + 8004bca: 2300 movs r3, #0 + 8004bcc: 67fb str r3, [r7, #124] @ 0x7c + 8004bce: e9d7 451e ldrd r4, r5, [r7, #120] @ 0x78 + 8004bd2: 4622 mov r2, r4 + 8004bd4: 462b mov r3, r5 + 8004bd6: f04f 0000 mov.w r0, #0 + 8004bda: f04f 0100 mov.w r1, #0 + 8004bde: 0159 lsls r1, r3, #5 + 8004be0: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8004be4: 0150 lsls r0, r2, #5 + 8004be6: 4602 mov r2, r0 + 8004be8: 460b mov r3, r1 + 8004bea: 4621 mov r1, r4 + 8004bec: 1a51 subs r1, r2, r1 + 8004bee: 62b9 str r1, [r7, #40] @ 0x28 + 8004bf0: 4629 mov r1, r5 + 8004bf2: eb63 0301 sbc.w r3, r3, r1 + 8004bf6: 62fb str r3, [r7, #44] @ 0x2c + 8004bf8: f04f 0200 mov.w r2, #0 + 8004bfc: f04f 0300 mov.w r3, #0 + 8004c00: e9d7 890a ldrd r8, r9, [r7, #40] @ 0x28 + 8004c04: 4649 mov r1, r9 + 8004c06: 018b lsls r3, r1, #6 + 8004c08: 4641 mov r1, r8 + 8004c0a: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8004c0e: 4641 mov r1, r8 + 8004c10: 018a lsls r2, r1, #6 + 8004c12: 4641 mov r1, r8 + 8004c14: ebb2 0a01 subs.w sl, r2, r1 + 8004c18: 4649 mov r1, r9 + 8004c1a: eb63 0b01 sbc.w fp, r3, r1 + 8004c1e: f04f 0200 mov.w r2, #0 + 8004c22: f04f 0300 mov.w r3, #0 + 8004c26: ea4f 03cb mov.w r3, fp, lsl #3 + 8004c2a: ea43 735a orr.w r3, r3, sl, lsr #29 + 8004c2e: ea4f 02ca mov.w r2, sl, lsl #3 + 8004c32: 4692 mov sl, r2 + 8004c34: 469b mov fp, r3 + 8004c36: 4623 mov r3, r4 + 8004c38: eb1a 0303 adds.w r3, sl, r3 + 8004c3c: 623b str r3, [r7, #32] + 8004c3e: 462b mov r3, r5 + 8004c40: eb4b 0303 adc.w r3, fp, r3 + 8004c44: 627b str r3, [r7, #36] @ 0x24 + 8004c46: f04f 0200 mov.w r2, #0 + 8004c4a: f04f 0300 mov.w r3, #0 + 8004c4e: e9d7 4508 ldrd r4, r5, [r7, #32] + 8004c52: 4629 mov r1, r5 + 8004c54: 028b lsls r3, r1, #10 + 8004c56: 4621 mov r1, r4 + 8004c58: ea43 5391 orr.w r3, r3, r1, lsr #22 + 8004c5c: 4621 mov r1, r4 + 8004c5e: 028a lsls r2, r1, #10 + 8004c60: 4610 mov r0, r2 + 8004c62: 4619 mov r1, r3 + 8004c64: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8004c68: 2200 movs r2, #0 + 8004c6a: 673b str r3, [r7, #112] @ 0x70 + 8004c6c: 677a str r2, [r7, #116] @ 0x74 + 8004c6e: e9d7 231c ldrd r2, r3, [r7, #112] @ 0x70 + 8004c72: f7fb fac7 bl 8000204 <__aeabi_uldivmod> + 8004c76: 4602 mov r2, r0 + 8004c78: 460b mov r3, r1 + 8004c7a: 4613 mov r3, r2 + 8004c7c: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8004c80: 4b41 ldr r3, [pc, #260] @ (8004d88 ) + 8004c82: 685b ldr r3, [r3, #4] + 8004c84: 0c1b lsrs r3, r3, #16 + 8004c86: f003 0303 and.w r3, r3, #3 + 8004c8a: 3301 adds r3, #1 + 8004c8c: 005b lsls r3, r3, #1 + 8004c8e: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 8004c92: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 + 8004c96: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 + 8004c9a: fbb2 f3f3 udiv r3, r2, r3 + 8004c9e: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004ca2: e0eb b.n 8004e7c + 8004ca4: 4b38 ldr r3, [pc, #224] @ (8004d88 ) + 8004ca6: 685b ldr r3, [r3, #4] + 8004ca8: f003 033f and.w r3, r3, #63 @ 0x3f + 8004cac: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8004cb0: 4b35 ldr r3, [pc, #212] @ (8004d88 ) + 8004cb2: 685b ldr r3, [r3, #4] + 8004cb4: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004cb8: 2b00 cmp r3, #0 + 8004cba: d06b beq.n 8004d94 + 8004cbc: 4b32 ldr r3, [pc, #200] @ (8004d88 ) + 8004cbe: 685b ldr r3, [r3, #4] + 8004cc0: 099b lsrs r3, r3, #6 + 8004cc2: 2200 movs r2, #0 + 8004cc4: 66bb str r3, [r7, #104] @ 0x68 + 8004cc6: 66fa str r2, [r7, #108] @ 0x6c + 8004cc8: 6ebb ldr r3, [r7, #104] @ 0x68 + 8004cca: f3c3 0308 ubfx r3, r3, #0, #9 + 8004cce: 663b str r3, [r7, #96] @ 0x60 + 8004cd0: 2300 movs r3, #0 + 8004cd2: 667b str r3, [r7, #100] @ 0x64 + 8004cd4: e9d7 4518 ldrd r4, r5, [r7, #96] @ 0x60 + 8004cd8: 4622 mov r2, r4 + 8004cda: 462b mov r3, r5 + 8004cdc: f04f 0000 mov.w r0, #0 + 8004ce0: f04f 0100 mov.w r1, #0 + 8004ce4: 0159 lsls r1, r3, #5 + 8004ce6: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8004cea: 0150 lsls r0, r2, #5 + 8004cec: 4602 mov r2, r0 + 8004cee: 460b mov r3, r1 + 8004cf0: 4621 mov r1, r4 + 8004cf2: 1a51 subs r1, r2, r1 + 8004cf4: 61b9 str r1, [r7, #24] + 8004cf6: 4629 mov r1, r5 + 8004cf8: eb63 0301 sbc.w r3, r3, r1 + 8004cfc: 61fb str r3, [r7, #28] + 8004cfe: f04f 0200 mov.w r2, #0 + 8004d02: f04f 0300 mov.w r3, #0 + 8004d06: e9d7 ab06 ldrd sl, fp, [r7, #24] + 8004d0a: 4659 mov r1, fp + 8004d0c: 018b lsls r3, r1, #6 + 8004d0e: 4651 mov r1, sl + 8004d10: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8004d14: 4651 mov r1, sl + 8004d16: 018a lsls r2, r1, #6 + 8004d18: 4651 mov r1, sl + 8004d1a: ebb2 0801 subs.w r8, r2, r1 + 8004d1e: 4659 mov r1, fp + 8004d20: eb63 0901 sbc.w r9, r3, r1 + 8004d24: f04f 0200 mov.w r2, #0 + 8004d28: f04f 0300 mov.w r3, #0 + 8004d2c: ea4f 03c9 mov.w r3, r9, lsl #3 + 8004d30: ea43 7358 orr.w r3, r3, r8, lsr #29 + 8004d34: ea4f 02c8 mov.w r2, r8, lsl #3 + 8004d38: 4690 mov r8, r2 + 8004d3a: 4699 mov r9, r3 + 8004d3c: 4623 mov r3, r4 + 8004d3e: eb18 0303 adds.w r3, r8, r3 + 8004d42: 613b str r3, [r7, #16] + 8004d44: 462b mov r3, r5 + 8004d46: eb49 0303 adc.w r3, r9, r3 + 8004d4a: 617b str r3, [r7, #20] + 8004d4c: f04f 0200 mov.w r2, #0 + 8004d50: f04f 0300 mov.w r3, #0 + 8004d54: e9d7 4504 ldrd r4, r5, [r7, #16] + 8004d58: 4629 mov r1, r5 + 8004d5a: 024b lsls r3, r1, #9 + 8004d5c: 4621 mov r1, r4 + 8004d5e: ea43 53d1 orr.w r3, r3, r1, lsr #23 + 8004d62: 4621 mov r1, r4 + 8004d64: 024a lsls r2, r1, #9 + 8004d66: 4610 mov r0, r2 + 8004d68: 4619 mov r1, r3 + 8004d6a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8004d6e: 2200 movs r2, #0 + 8004d70: 65bb str r3, [r7, #88] @ 0x58 + 8004d72: 65fa str r2, [r7, #92] @ 0x5c + 8004d74: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 + 8004d78: f7fb fa44 bl 8000204 <__aeabi_uldivmod> + 8004d7c: 4602 mov r2, r0 + 8004d7e: 460b mov r3, r1 + 8004d80: 4613 mov r3, r2 + 8004d82: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8004d86: e065 b.n 8004e54 + 8004d88: 40023800 .word 0x40023800 + 8004d8c: 00f42400 .word 0x00f42400 + 8004d90: 007a1200 .word 0x007a1200 + 8004d94: 4b3d ldr r3, [pc, #244] @ (8004e8c ) + 8004d96: 685b ldr r3, [r3, #4] + 8004d98: 099b lsrs r3, r3, #6 + 8004d9a: 2200 movs r2, #0 + 8004d9c: 4618 mov r0, r3 + 8004d9e: 4611 mov r1, r2 + 8004da0: f3c0 0308 ubfx r3, r0, #0, #9 + 8004da4: 653b str r3, [r7, #80] @ 0x50 + 8004da6: 2300 movs r3, #0 + 8004da8: 657b str r3, [r7, #84] @ 0x54 + 8004daa: e9d7 8914 ldrd r8, r9, [r7, #80] @ 0x50 + 8004dae: 4642 mov r2, r8 + 8004db0: 464b mov r3, r9 + 8004db2: f04f 0000 mov.w r0, #0 + 8004db6: f04f 0100 mov.w r1, #0 + 8004dba: 0159 lsls r1, r3, #5 + 8004dbc: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8004dc0: 0150 lsls r0, r2, #5 + 8004dc2: 4602 mov r2, r0 + 8004dc4: 460b mov r3, r1 + 8004dc6: 4641 mov r1, r8 + 8004dc8: 1a51 subs r1, r2, r1 + 8004dca: 60b9 str r1, [r7, #8] + 8004dcc: 4649 mov r1, r9 + 8004dce: eb63 0301 sbc.w r3, r3, r1 + 8004dd2: 60fb str r3, [r7, #12] + 8004dd4: f04f 0200 mov.w r2, #0 + 8004dd8: f04f 0300 mov.w r3, #0 + 8004ddc: e9d7 ab02 ldrd sl, fp, [r7, #8] + 8004de0: 4659 mov r1, fp + 8004de2: 018b lsls r3, r1, #6 + 8004de4: 4651 mov r1, sl + 8004de6: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8004dea: 4651 mov r1, sl + 8004dec: 018a lsls r2, r1, #6 + 8004dee: 4651 mov r1, sl + 8004df0: 1a54 subs r4, r2, r1 + 8004df2: 4659 mov r1, fp + 8004df4: eb63 0501 sbc.w r5, r3, r1 + 8004df8: f04f 0200 mov.w r2, #0 + 8004dfc: f04f 0300 mov.w r3, #0 + 8004e00: 00eb lsls r3, r5, #3 + 8004e02: ea43 7354 orr.w r3, r3, r4, lsr #29 + 8004e06: 00e2 lsls r2, r4, #3 + 8004e08: 4614 mov r4, r2 + 8004e0a: 461d mov r5, r3 + 8004e0c: 4643 mov r3, r8 + 8004e0e: 18e3 adds r3, r4, r3 + 8004e10: 603b str r3, [r7, #0] + 8004e12: 464b mov r3, r9 + 8004e14: eb45 0303 adc.w r3, r5, r3 + 8004e18: 607b str r3, [r7, #4] + 8004e1a: f04f 0200 mov.w r2, #0 + 8004e1e: f04f 0300 mov.w r3, #0 + 8004e22: e9d7 4500 ldrd r4, r5, [r7] + 8004e26: 4629 mov r1, r5 + 8004e28: 028b lsls r3, r1, #10 + 8004e2a: 4621 mov r1, r4 + 8004e2c: ea43 5391 orr.w r3, r3, r1, lsr #22 + 8004e30: 4621 mov r1, r4 + 8004e32: 028a lsls r2, r1, #10 + 8004e34: 4610 mov r0, r2 + 8004e36: 4619 mov r1, r3 + 8004e38: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8004e3c: 2200 movs r2, #0 + 8004e3e: 64bb str r3, [r7, #72] @ 0x48 + 8004e40: 64fa str r2, [r7, #76] @ 0x4c + 8004e42: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 + 8004e46: f7fb f9dd bl 8000204 <__aeabi_uldivmod> 8004e4a: 4602 mov r2, r0 8004e4c: 460b mov r3, r1 - 8004e4e: 4621 mov r1, r4 - 8004e50: 1a51 subs r1, r2, r1 - 8004e52: 6439 str r1, [r7, #64] @ 0x40 - 8004e54: 4629 mov r1, r5 - 8004e56: eb63 0301 sbc.w r3, r3, r1 - 8004e5a: 647b str r3, [r7, #68] @ 0x44 - 8004e5c: f04f 0200 mov.w r2, #0 - 8004e60: f04f 0300 mov.w r3, #0 - 8004e64: e9d7 8910 ldrd r8, r9, [r7, #64] @ 0x40 - 8004e68: 4649 mov r1, r9 - 8004e6a: 018b lsls r3, r1, #6 - 8004e6c: 4641 mov r1, r8 - 8004e6e: ea43 6391 orr.w r3, r3, r1, lsr #26 - 8004e72: 4641 mov r1, r8 - 8004e74: 018a lsls r2, r1, #6 - 8004e76: 4641 mov r1, r8 - 8004e78: 1a51 subs r1, r2, r1 - 8004e7a: 63b9 str r1, [r7, #56] @ 0x38 - 8004e7c: 4649 mov r1, r9 - 8004e7e: eb63 0301 sbc.w r3, r3, r1 - 8004e82: 63fb str r3, [r7, #60] @ 0x3c - 8004e84: f04f 0200 mov.w r2, #0 - 8004e88: f04f 0300 mov.w r3, #0 - 8004e8c: e9d7 890e ldrd r8, r9, [r7, #56] @ 0x38 - 8004e90: 4649 mov r1, r9 - 8004e92: 00cb lsls r3, r1, #3 - 8004e94: 4641 mov r1, r8 - 8004e96: ea43 7351 orr.w r3, r3, r1, lsr #29 - 8004e9a: 4641 mov r1, r8 - 8004e9c: 00ca lsls r2, r1, #3 - 8004e9e: 4610 mov r0, r2 - 8004ea0: 4619 mov r1, r3 - 8004ea2: 4603 mov r3, r0 - 8004ea4: 4622 mov r2, r4 - 8004ea6: 189b adds r3, r3, r2 - 8004ea8: 633b str r3, [r7, #48] @ 0x30 - 8004eaa: 462b mov r3, r5 - 8004eac: 460a mov r2, r1 - 8004eae: eb42 0303 adc.w r3, r2, r3 - 8004eb2: 637b str r3, [r7, #52] @ 0x34 - 8004eb4: f04f 0200 mov.w r2, #0 - 8004eb8: f04f 0300 mov.w r3, #0 - 8004ebc: e9d7 450c ldrd r4, r5, [r7, #48] @ 0x30 - 8004ec0: 4629 mov r1, r5 - 8004ec2: 024b lsls r3, r1, #9 - 8004ec4: 4621 mov r1, r4 - 8004ec6: ea43 53d1 orr.w r3, r3, r1, lsr #23 - 8004eca: 4621 mov r1, r4 - 8004ecc: 024a lsls r2, r1, #9 - 8004ece: 4610 mov r0, r2 - 8004ed0: 4619 mov r1, r3 - 8004ed2: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8004ed6: 2200 movs r2, #0 - 8004ed8: f8c7 3088 str.w r3, [r7, #136] @ 0x88 - 8004edc: f8c7 208c str.w r2, [r7, #140] @ 0x8c - 8004ee0: e9d7 2322 ldrd r2, r3, [r7, #136] @ 0x88 - 8004ee4: f7fb f98e bl 8000204 <__aeabi_uldivmod> - 8004ee8: 4602 mov r2, r0 - 8004eea: 460b mov r3, r1 - 8004eec: 4613 mov r3, r2 - 8004eee: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 8004ef2: e067 b.n 8004fc4 - } - 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); - 8004ef4: 4b75 ldr r3, [pc, #468] @ (80050cc ) - 8004ef6: 685b ldr r3, [r3, #4] - 8004ef8: 099b lsrs r3, r3, #6 - 8004efa: 2200 movs r2, #0 - 8004efc: f8c7 3080 str.w r3, [r7, #128] @ 0x80 - 8004f00: f8c7 2084 str.w r2, [r7, #132] @ 0x84 - 8004f04: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 - 8004f08: f3c3 0308 ubfx r3, r3, #0, #9 - 8004f0c: 67bb str r3, [r7, #120] @ 0x78 - 8004f0e: 2300 movs r3, #0 - 8004f10: 67fb str r3, [r7, #124] @ 0x7c - 8004f12: e9d7 451e ldrd r4, r5, [r7, #120] @ 0x78 - 8004f16: 4622 mov r2, r4 - 8004f18: 462b mov r3, r5 - 8004f1a: f04f 0000 mov.w r0, #0 - 8004f1e: f04f 0100 mov.w r1, #0 - 8004f22: 0159 lsls r1, r3, #5 - 8004f24: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8004f28: 0150 lsls r0, r2, #5 - 8004f2a: 4602 mov r2, r0 - 8004f2c: 460b mov r3, r1 - 8004f2e: 4621 mov r1, r4 - 8004f30: 1a51 subs r1, r2, r1 - 8004f32: 62b9 str r1, [r7, #40] @ 0x28 - 8004f34: 4629 mov r1, r5 - 8004f36: eb63 0301 sbc.w r3, r3, r1 - 8004f3a: 62fb str r3, [r7, #44] @ 0x2c - 8004f3c: f04f 0200 mov.w r2, #0 - 8004f40: f04f 0300 mov.w r3, #0 - 8004f44: e9d7 890a ldrd r8, r9, [r7, #40] @ 0x28 - 8004f48: 4649 mov r1, r9 - 8004f4a: 018b lsls r3, r1, #6 - 8004f4c: 4641 mov r1, r8 - 8004f4e: ea43 6391 orr.w r3, r3, r1, lsr #26 - 8004f52: 4641 mov r1, r8 - 8004f54: 018a lsls r2, r1, #6 - 8004f56: 4641 mov r1, r8 - 8004f58: ebb2 0a01 subs.w sl, r2, r1 - 8004f5c: 4649 mov r1, r9 - 8004f5e: eb63 0b01 sbc.w fp, r3, r1 - 8004f62: f04f 0200 mov.w r2, #0 - 8004f66: f04f 0300 mov.w r3, #0 - 8004f6a: ea4f 03cb mov.w r3, fp, lsl #3 - 8004f6e: ea43 735a orr.w r3, r3, sl, lsr #29 - 8004f72: ea4f 02ca mov.w r2, sl, lsl #3 - 8004f76: 4692 mov sl, r2 - 8004f78: 469b mov fp, r3 - 8004f7a: 4623 mov r3, r4 - 8004f7c: eb1a 0303 adds.w r3, sl, r3 - 8004f80: 623b str r3, [r7, #32] - 8004f82: 462b mov r3, r5 - 8004f84: eb4b 0303 adc.w r3, fp, r3 - 8004f88: 627b str r3, [r7, #36] @ 0x24 - 8004f8a: f04f 0200 mov.w r2, #0 - 8004f8e: f04f 0300 mov.w r3, #0 - 8004f92: e9d7 4508 ldrd r4, r5, [r7, #32] - 8004f96: 4629 mov r1, r5 - 8004f98: 028b lsls r3, r1, #10 - 8004f9a: 4621 mov r1, r4 - 8004f9c: ea43 5391 orr.w r3, r3, r1, lsr #22 - 8004fa0: 4621 mov r1, r4 - 8004fa2: 028a lsls r2, r1, #10 - 8004fa4: 4610 mov r0, r2 - 8004fa6: 4619 mov r1, r3 - 8004fa8: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8004fac: 2200 movs r2, #0 - 8004fae: 673b str r3, [r7, #112] @ 0x70 - 8004fb0: 677a str r2, [r7, #116] @ 0x74 - 8004fb2: e9d7 231c ldrd r2, r3, [r7, #112] @ 0x70 - 8004fb6: f7fb f925 bl 8000204 <__aeabi_uldivmod> - 8004fba: 4602 mov r2, r0 - 8004fbc: 460b mov r3, r1 - 8004fbe: 4613 mov r3, r2 - 8004fc0: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - } - pllp = ((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) + 1U) * 2U); - 8004fc4: 4b41 ldr r3, [pc, #260] @ (80050cc ) - 8004fc6: 685b ldr r3, [r3, #4] - 8004fc8: 0c1b lsrs r3, r3, #16 - 8004fca: f003 0303 and.w r3, r3, #3 - 8004fce: 3301 adds r3, #1 - 8004fd0: 005b lsls r3, r3, #1 - 8004fd2: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 8004e4e: 4613 mov r3, r2 + 8004e50: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8004e54: 4b0d ldr r3, [pc, #52] @ (8004e8c ) + 8004e56: 685b ldr r3, [r3, #4] + 8004e58: 0f1b lsrs r3, r3, #28 + 8004e5a: f003 0307 and.w r3, r3, #7 + 8004e5e: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 8004e62: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 + 8004e66: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4 + 8004e6a: fbb2 f3f3 udiv r3, r2, r3 + 8004e6e: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004e72: e003 b.n 8004e7c + 8004e74: 4b06 ldr r3, [pc, #24] @ (8004e90 ) + 8004e76: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004e7a: bf00 nop + 8004e7c: f8d7 30b0 ldr.w r3, [r7, #176] @ 0xb0 + 8004e80: 4618 mov r0, r3 + 8004e82: 37b8 adds r7, #184 @ 0xb8 + 8004e84: 46bd mov sp, r7 + 8004e86: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} + 8004e8a: bf00 nop + 8004e8c: 40023800 .word 0x40023800 + 8004e90: 00f42400 .word 0x00f42400 - sysclockfreq = pllvco / pllp; - 8004fd6: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 - 8004fda: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 - 8004fde: fbb2 f3f3 udiv r3, r2, r3 - 8004fe2: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - break; - 8004fe6: e0eb b.n 80051c0 - } - 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; - 8004fe8: 4b38 ldr r3, [pc, #224] @ (80050cc ) - 8004fea: 685b ldr r3, [r3, #4] - 8004fec: f003 033f and.w r3, r3, #63 @ 0x3f - 8004ff0: f8c7 30ac str.w r3, [r7, #172] @ 0xac - if (__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI) - 8004ff4: 4b35 ldr r3, [pc, #212] @ (80050cc ) - 8004ff6: 685b ldr r3, [r3, #4] - 8004ff8: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8004ffc: 2b00 cmp r3, #0 - 8004ffe: d06b beq.n 80050d8 - { - /* 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); - 8005000: 4b32 ldr r3, [pc, #200] @ (80050cc ) - 8005002: 685b ldr r3, [r3, #4] - 8005004: 099b lsrs r3, r3, #6 - 8005006: 2200 movs r2, #0 - 8005008: 66bb str r3, [r7, #104] @ 0x68 - 800500a: 66fa str r2, [r7, #108] @ 0x6c - 800500c: 6ebb ldr r3, [r7, #104] @ 0x68 - 800500e: f3c3 0308 ubfx r3, r3, #0, #9 - 8005012: 663b str r3, [r7, #96] @ 0x60 - 8005014: 2300 movs r3, #0 - 8005016: 667b str r3, [r7, #100] @ 0x64 - 8005018: e9d7 4518 ldrd r4, r5, [r7, #96] @ 0x60 - 800501c: 4622 mov r2, r4 - 800501e: 462b mov r3, r5 - 8005020: f04f 0000 mov.w r0, #0 - 8005024: f04f 0100 mov.w r1, #0 - 8005028: 0159 lsls r1, r3, #5 - 800502a: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 800502e: 0150 lsls r0, r2, #5 - 8005030: 4602 mov r2, r0 - 8005032: 460b mov r3, r1 - 8005034: 4621 mov r1, r4 - 8005036: 1a51 subs r1, r2, r1 - 8005038: 61b9 str r1, [r7, #24] - 800503a: 4629 mov r1, r5 - 800503c: eb63 0301 sbc.w r3, r3, r1 - 8005040: 61fb str r3, [r7, #28] - 8005042: f04f 0200 mov.w r2, #0 - 8005046: f04f 0300 mov.w r3, #0 - 800504a: e9d7 ab06 ldrd sl, fp, [r7, #24] - 800504e: 4659 mov r1, fp - 8005050: 018b lsls r3, r1, #6 - 8005052: 4651 mov r1, sl - 8005054: ea43 6391 orr.w r3, r3, r1, lsr #26 - 8005058: 4651 mov r1, sl - 800505a: 018a lsls r2, r1, #6 - 800505c: 4651 mov r1, sl - 800505e: ebb2 0801 subs.w r8, r2, r1 - 8005062: 4659 mov r1, fp - 8005064: eb63 0901 sbc.w r9, r3, r1 - 8005068: f04f 0200 mov.w r2, #0 - 800506c: f04f 0300 mov.w r3, #0 - 8005070: ea4f 03c9 mov.w r3, r9, lsl #3 - 8005074: ea43 7358 orr.w r3, r3, r8, lsr #29 - 8005078: ea4f 02c8 mov.w r2, r8, lsl #3 - 800507c: 4690 mov r8, r2 - 800507e: 4699 mov r9, r3 - 8005080: 4623 mov r3, r4 - 8005082: eb18 0303 adds.w r3, r8, r3 - 8005086: 613b str r3, [r7, #16] - 8005088: 462b mov r3, r5 - 800508a: eb49 0303 adc.w r3, r9, r3 - 800508e: 617b str r3, [r7, #20] - 8005090: f04f 0200 mov.w r2, #0 - 8005094: f04f 0300 mov.w r3, #0 - 8005098: e9d7 4504 ldrd r4, r5, [r7, #16] - 800509c: 4629 mov r1, r5 - 800509e: 024b lsls r3, r1, #9 - 80050a0: 4621 mov r1, r4 - 80050a2: ea43 53d1 orr.w r3, r3, r1, lsr #23 - 80050a6: 4621 mov r1, r4 - 80050a8: 024a lsls r2, r1, #9 - 80050aa: 4610 mov r0, r2 - 80050ac: 4619 mov r1, r3 - 80050ae: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 80050b2: 2200 movs r2, #0 - 80050b4: 65bb str r3, [r7, #88] @ 0x58 - 80050b6: 65fa str r2, [r7, #92] @ 0x5c - 80050b8: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 - 80050bc: f7fb f8a2 bl 8000204 <__aeabi_uldivmod> - 80050c0: 4602 mov r2, r0 - 80050c2: 460b mov r3, r1 - 80050c4: 4613 mov r3, r2 - 80050c6: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 80050ca: e065 b.n 8005198 - 80050cc: 40023800 .word 0x40023800 - 80050d0: 00f42400 .word 0x00f42400 - 80050d4: 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); - 80050d8: 4b3d ldr r3, [pc, #244] @ (80051d0 ) - 80050da: 685b ldr r3, [r3, #4] - 80050dc: 099b lsrs r3, r3, #6 - 80050de: 2200 movs r2, #0 - 80050e0: 4618 mov r0, r3 - 80050e2: 4611 mov r1, r2 - 80050e4: f3c0 0308 ubfx r3, r0, #0, #9 - 80050e8: 653b str r3, [r7, #80] @ 0x50 - 80050ea: 2300 movs r3, #0 - 80050ec: 657b str r3, [r7, #84] @ 0x54 - 80050ee: e9d7 8914 ldrd r8, r9, [r7, #80] @ 0x50 - 80050f2: 4642 mov r2, r8 - 80050f4: 464b mov r3, r9 - 80050f6: f04f 0000 mov.w r0, #0 - 80050fa: f04f 0100 mov.w r1, #0 - 80050fe: 0159 lsls r1, r3, #5 - 8005100: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8005104: 0150 lsls r0, r2, #5 - 8005106: 4602 mov r2, r0 - 8005108: 460b mov r3, r1 - 800510a: 4641 mov r1, r8 - 800510c: 1a51 subs r1, r2, r1 - 800510e: 60b9 str r1, [r7, #8] - 8005110: 4649 mov r1, r9 - 8005112: eb63 0301 sbc.w r3, r3, r1 - 8005116: 60fb str r3, [r7, #12] - 8005118: f04f 0200 mov.w r2, #0 - 800511c: f04f 0300 mov.w r3, #0 - 8005120: e9d7 ab02 ldrd sl, fp, [r7, #8] - 8005124: 4659 mov r1, fp - 8005126: 018b lsls r3, r1, #6 - 8005128: 4651 mov r1, sl - 800512a: ea43 6391 orr.w r3, r3, r1, lsr #26 - 800512e: 4651 mov r1, sl - 8005130: 018a lsls r2, r1, #6 - 8005132: 4651 mov r1, sl - 8005134: 1a54 subs r4, r2, r1 - 8005136: 4659 mov r1, fp - 8005138: eb63 0501 sbc.w r5, r3, r1 - 800513c: f04f 0200 mov.w r2, #0 - 8005140: f04f 0300 mov.w r3, #0 - 8005144: 00eb lsls r3, r5, #3 - 8005146: ea43 7354 orr.w r3, r3, r4, lsr #29 - 800514a: 00e2 lsls r2, r4, #3 - 800514c: 4614 mov r4, r2 - 800514e: 461d mov r5, r3 - 8005150: 4643 mov r3, r8 - 8005152: 18e3 adds r3, r4, r3 - 8005154: 603b str r3, [r7, #0] - 8005156: 464b mov r3, r9 - 8005158: eb45 0303 adc.w r3, r5, r3 - 800515c: 607b str r3, [r7, #4] - 800515e: f04f 0200 mov.w r2, #0 - 8005162: f04f 0300 mov.w r3, #0 - 8005166: e9d7 4500 ldrd r4, r5, [r7] - 800516a: 4629 mov r1, r5 - 800516c: 028b lsls r3, r1, #10 - 800516e: 4621 mov r1, r4 - 8005170: ea43 5391 orr.w r3, r3, r1, lsr #22 - 8005174: 4621 mov r1, r4 - 8005176: 028a lsls r2, r1, #10 - 8005178: 4610 mov r0, r2 - 800517a: 4619 mov r1, r3 - 800517c: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8005180: 2200 movs r2, #0 - 8005182: 64bb str r3, [r7, #72] @ 0x48 - 8005184: 64fa str r2, [r7, #76] @ 0x4c - 8005186: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 - 800518a: f7fb f83b bl 8000204 <__aeabi_uldivmod> - 800518e: 4602 mov r2, r0 - 8005190: 460b mov r3, r1 - 8005192: 4613 mov r3, r2 - 8005194: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - } - pllr = ((RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> RCC_PLLCFGR_PLLR_Pos); - 8005198: 4b0d ldr r3, [pc, #52] @ (80051d0 ) - 800519a: 685b ldr r3, [r3, #4] - 800519c: 0f1b lsrs r3, r3, #28 - 800519e: f003 0307 and.w r3, r3, #7 - 80051a2: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 - - sysclockfreq = pllvco / pllr; - 80051a6: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 - 80051aa: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4 - 80051ae: fbb2 f3f3 udiv r3, r2, r3 - 80051b2: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - break; - 80051b6: e003 b.n 80051c0 - } - default: - { - sysclockfreq = HSI_VALUE; - 80051b8: 4b06 ldr r3, [pc, #24] @ (80051d4 ) - 80051ba: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - break; - 80051be: bf00 nop - } - } - return sysclockfreq; - 80051c0: f8d7 30b0 ldr.w r3, [r7, #176] @ 0xb0 -} - 80051c4: 4618 mov r0, r3 - 80051c6: 37b8 adds r7, #184 @ 0xb8 - 80051c8: 46bd mov sp, r7 - 80051ca: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} - 80051ce: bf00 nop - 80051d0: 40023800 .word 0x40023800 - 80051d4: 00f42400 .word 0x00f42400 - -080051d8 : - * @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) -{ - 80051d8: b580 push {r7, lr} - 80051da: b086 sub sp, #24 - 80051dc: af00 add r7, sp, #0 - 80051de: 6078 str r0, [r7, #4] - uint32_t tickstart; - uint32_t pll_config; - - /* Check Null pointer */ - if (RCC_OscInitStruct == NULL) - 80051e0: 687b ldr r3, [r7, #4] - 80051e2: 2b00 cmp r3, #0 - 80051e4: d101 bne.n 80051ea - { - return HAL_ERROR; - 80051e6: 2301 movs r3, #1 - 80051e8: e28d b.n 8005706 - } - - /* Check the parameters */ - assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); - /*------------------------------- HSE Configuration ------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 80051ea: 687b ldr r3, [r7, #4] - 80051ec: 681b ldr r3, [r3, #0] - 80051ee: f003 0301 and.w r3, r3, #1 - 80051f2: 2b00 cmp r3, #0 - 80051f4: f000 8083 beq.w 80052fe - { - /* 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) - 80051f8: 4b94 ldr r3, [pc, #592] @ (800544c ) - 80051fa: 689b ldr r3, [r3, #8] - 80051fc: f003 030c and.w r3, r3, #12 - 8005200: 2b04 cmp r3, #4 - 8005202: d019 beq.n 8005238 - || \ - ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)) || \ - 8005204: 4b91 ldr r3, [pc, #580] @ (800544c ) - 8005206: 689b ldr r3, [r3, #8] - 8005208: f003 030c and.w r3, r3, #12 - || \ - 800520c: 2b08 cmp r3, #8 - 800520e: d106 bne.n 800521e - ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)) || \ - 8005210: 4b8e ldr r3, [pc, #568] @ (800544c ) - 8005212: 685b ldr r3, [r3, #4] - 8005214: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8005218: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 800521c: d00c beq.n 8005238 - ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) - 800521e: 4b8b ldr r3, [pc, #556] @ (800544c ) - 8005220: 689b ldr r3, [r3, #8] - 8005222: 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)) || \ - 8005226: 2b0c cmp r3, #12 - 8005228: d112 bne.n 8005250 - ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) - 800522a: 4b88 ldr r3, [pc, #544] @ (800544c ) - 800522c: 685b ldr r3, [r3, #4] - 800522e: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8005232: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 8005236: d10b bne.n 8005250 - 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)) - 8005238: 4b84 ldr r3, [pc, #528] @ (800544c ) - 800523a: 681b ldr r3, [r3, #0] - 800523c: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8005240: 2b00 cmp r3, #0 - 8005242: d05b beq.n 80052fc - 8005244: 687b ldr r3, [r7, #4] - 8005246: 685b ldr r3, [r3, #4] - 8005248: 2b00 cmp r3, #0 - 800524a: d157 bne.n 80052fc - { - return HAL_ERROR; - 800524c: 2301 movs r3, #1 - 800524e: e25a b.n 8005706 - } - } - else - { - /* Set the new HSE configuration ---------------------------------------*/ - __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 8005250: 687b ldr r3, [r7, #4] - 8005252: 685b ldr r3, [r3, #4] - 8005254: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 - 8005258: d106 bne.n 8005268 - 800525a: 4b7c ldr r3, [pc, #496] @ (800544c ) - 800525c: 681b ldr r3, [r3, #0] - 800525e: 4a7b ldr r2, [pc, #492] @ (800544c ) - 8005260: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8005264: 6013 str r3, [r2, #0] - 8005266: e01d b.n 80052a4 - 8005268: 687b ldr r3, [r7, #4] - 800526a: 685b ldr r3, [r3, #4] - 800526c: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 - 8005270: d10c bne.n 800528c - 8005272: 4b76 ldr r3, [pc, #472] @ (800544c ) - 8005274: 681b ldr r3, [r3, #0] - 8005276: 4a75 ldr r2, [pc, #468] @ (800544c ) - 8005278: f443 2380 orr.w r3, r3, #262144 @ 0x40000 - 800527c: 6013 str r3, [r2, #0] - 800527e: 4b73 ldr r3, [pc, #460] @ (800544c ) - 8005280: 681b ldr r3, [r3, #0] - 8005282: 4a72 ldr r2, [pc, #456] @ (800544c ) - 8005284: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8005288: 6013 str r3, [r2, #0] - 800528a: e00b b.n 80052a4 - 800528c: 4b6f ldr r3, [pc, #444] @ (800544c ) - 800528e: 681b ldr r3, [r3, #0] - 8005290: 4a6e ldr r2, [pc, #440] @ (800544c ) - 8005292: f423 3380 bic.w r3, r3, #65536 @ 0x10000 - 8005296: 6013 str r3, [r2, #0] - 8005298: 4b6c ldr r3, [pc, #432] @ (800544c ) - 800529a: 681b ldr r3, [r3, #0] - 800529c: 4a6b ldr r2, [pc, #428] @ (800544c ) - 800529e: f423 2380 bic.w r3, r3, #262144 @ 0x40000 - 80052a2: 6013 str r3, [r2, #0] - - /* Check the HSE State */ - if ((RCC_OscInitStruct->HSEState) != RCC_HSE_OFF) - 80052a4: 687b ldr r3, [r7, #4] - 80052a6: 685b ldr r3, [r3, #4] - 80052a8: 2b00 cmp r3, #0 - 80052aa: d013 beq.n 80052d4 - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 80052ac: f7fc fe4c bl 8001f48 - 80052b0: 6138 str r0, [r7, #16] - - /* Wait till HSE is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 80052b2: e008 b.n 80052c6 - { - if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 80052b4: f7fc fe48 bl 8001f48 - 80052b8: 4602 mov r2, r0 - 80052ba: 693b ldr r3, [r7, #16] - 80052bc: 1ad3 subs r3, r2, r3 - 80052be: 2b64 cmp r3, #100 @ 0x64 - 80052c0: d901 bls.n 80052c6 - { - return HAL_TIMEOUT; - 80052c2: 2303 movs r3, #3 - 80052c4: e21f b.n 8005706 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 80052c6: 4b61 ldr r3, [pc, #388] @ (800544c ) - 80052c8: 681b ldr r3, [r3, #0] - 80052ca: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 80052ce: 2b00 cmp r3, #0 - 80052d0: d0f0 beq.n 80052b4 - 80052d2: e014 b.n 80052fe - } - } - else - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 80052d4: f7fc fe38 bl 8001f48 - 80052d8: 6138 str r0, [r7, #16] - - /* Wait till HSE is bypassed or disabled */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 80052da: e008 b.n 80052ee - { - if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 80052dc: f7fc fe34 bl 8001f48 - 80052e0: 4602 mov r2, r0 - 80052e2: 693b ldr r3, [r7, #16] - 80052e4: 1ad3 subs r3, r2, r3 - 80052e6: 2b64 cmp r3, #100 @ 0x64 - 80052e8: d901 bls.n 80052ee - { - return HAL_TIMEOUT; - 80052ea: 2303 movs r3, #3 - 80052ec: e20b b.n 8005706 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 80052ee: 4b57 ldr r3, [pc, #348] @ (800544c ) - 80052f0: 681b ldr r3, [r3, #0] - 80052f2: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 80052f6: 2b00 cmp r3, #0 - 80052f8: d1f0 bne.n 80052dc - 80052fa: e000 b.n 80052fe - if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 80052fc: bf00 nop - } - } - } - } - /*----------------------------- HSI Configuration --------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 80052fe: 687b ldr r3, [r7, #4] - 8005300: 681b ldr r3, [r3, #0] - 8005302: f003 0302 and.w r3, r3, #2 - 8005306: 2b00 cmp r3, #0 - 8005308: d06f beq.n 80053ea - 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) - 800530a: 4b50 ldr r3, [pc, #320] @ (800544c ) - 800530c: 689b ldr r3, [r3, #8] - 800530e: f003 030c and.w r3, r3, #12 - 8005312: 2b00 cmp r3, #0 - 8005314: d017 beq.n 8005346 - || \ - ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)) || \ - 8005316: 4b4d ldr r3, [pc, #308] @ (800544c ) - 8005318: 689b ldr r3, [r3, #8] - 800531a: f003 030c and.w r3, r3, #12 - || \ - 800531e: 2b08 cmp r3, #8 - 8005320: d105 bne.n 800532e - ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)) || \ - 8005322: 4b4a ldr r3, [pc, #296] @ (800544c ) - 8005324: 685b ldr r3, [r3, #4] - 8005326: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 800532a: 2b00 cmp r3, #0 - 800532c: d00b beq.n 8005346 - ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) - 800532e: 4b47 ldr r3, [pc, #284] @ (800544c ) - 8005330: 689b ldr r3, [r3, #8] - 8005332: 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)) || \ - 8005336: 2b0c cmp r3, #12 - 8005338: d11c bne.n 8005374 - ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) - 800533a: 4b44 ldr r3, [pc, #272] @ (800544c ) - 800533c: 685b ldr r3, [r3, #4] - 800533e: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8005342: 2b00 cmp r3, #0 - 8005344: d116 bne.n 8005374 - || \ - ((__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)) - 8005346: 4b41 ldr r3, [pc, #260] @ (800544c ) - 8005348: 681b ldr r3, [r3, #0] - 800534a: f003 0302 and.w r3, r3, #2 - 800534e: 2b00 cmp r3, #0 - 8005350: d005 beq.n 800535e +08004e94 : + 8004e94: b580 push {r7, lr} + 8004e96: b086 sub sp, #24 + 8004e98: af00 add r7, sp, #0 + 8004e9a: 6078 str r0, [r7, #4] + 8004e9c: 687b ldr r3, [r7, #4] + 8004e9e: 2b00 cmp r3, #0 + 8004ea0: d101 bne.n 8004ea6 + 8004ea2: 2301 movs r3, #1 + 8004ea4: e28d b.n 80053c2 + 8004ea6: 687b ldr r3, [r7, #4] + 8004ea8: 681b ldr r3, [r3, #0] + 8004eaa: f003 0301 and.w r3, r3, #1 + 8004eae: 2b00 cmp r3, #0 + 8004eb0: f000 8083 beq.w 8004fba + 8004eb4: 4b94 ldr r3, [pc, #592] @ (8005108 ) + 8004eb6: 689b ldr r3, [r3, #8] + 8004eb8: f003 030c and.w r3, r3, #12 + 8004ebc: 2b04 cmp r3, #4 + 8004ebe: d019 beq.n 8004ef4 + 8004ec0: 4b91 ldr r3, [pc, #580] @ (8005108 ) + 8004ec2: 689b ldr r3, [r3, #8] + 8004ec4: f003 030c and.w r3, r3, #12 + 8004ec8: 2b08 cmp r3, #8 + 8004eca: d106 bne.n 8004eda + 8004ecc: 4b8e ldr r3, [pc, #568] @ (8005108 ) + 8004ece: 685b ldr r3, [r3, #4] + 8004ed0: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004ed4: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 8004ed8: d00c beq.n 8004ef4 + 8004eda: 4b8b ldr r3, [pc, #556] @ (8005108 ) + 8004edc: 689b ldr r3, [r3, #8] + 8004ede: f003 030c and.w r3, r3, #12 + 8004ee2: 2b0c cmp r3, #12 + 8004ee4: d112 bne.n 8004f0c + 8004ee6: 4b88 ldr r3, [pc, #544] @ (8005108 ) + 8004ee8: 685b ldr r3, [r3, #4] + 8004eea: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004eee: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 8004ef2: d10b bne.n 8004f0c + 8004ef4: 4b84 ldr r3, [pc, #528] @ (8005108 ) + 8004ef6: 681b ldr r3, [r3, #0] + 8004ef8: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8004efc: 2b00 cmp r3, #0 + 8004efe: d05b beq.n 8004fb8 + 8004f00: 687b ldr r3, [r7, #4] + 8004f02: 685b ldr r3, [r3, #4] + 8004f04: 2b00 cmp r3, #0 + 8004f06: d157 bne.n 8004fb8 + 8004f08: 2301 movs r3, #1 + 8004f0a: e25a b.n 80053c2 + 8004f0c: 687b ldr r3, [r7, #4] + 8004f0e: 685b ldr r3, [r3, #4] + 8004f10: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 + 8004f14: d106 bne.n 8004f24 + 8004f16: 4b7c ldr r3, [pc, #496] @ (8005108 ) + 8004f18: 681b ldr r3, [r3, #0] + 8004f1a: 4a7b ldr r2, [pc, #492] @ (8005108 ) + 8004f1c: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 8004f20: 6013 str r3, [r2, #0] + 8004f22: e01d b.n 8004f60 + 8004f24: 687b ldr r3, [r7, #4] + 8004f26: 685b ldr r3, [r3, #4] + 8004f28: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 + 8004f2c: d10c bne.n 8004f48 + 8004f2e: 4b76 ldr r3, [pc, #472] @ (8005108 ) + 8004f30: 681b ldr r3, [r3, #0] + 8004f32: 4a75 ldr r2, [pc, #468] @ (8005108 ) + 8004f34: f443 2380 orr.w r3, r3, #262144 @ 0x40000 + 8004f38: 6013 str r3, [r2, #0] + 8004f3a: 4b73 ldr r3, [pc, #460] @ (8005108 ) + 8004f3c: 681b ldr r3, [r3, #0] + 8004f3e: 4a72 ldr r2, [pc, #456] @ (8005108 ) + 8004f40: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 8004f44: 6013 str r3, [r2, #0] + 8004f46: e00b b.n 8004f60 + 8004f48: 4b6f ldr r3, [pc, #444] @ (8005108 ) + 8004f4a: 681b ldr r3, [r3, #0] + 8004f4c: 4a6e ldr r2, [pc, #440] @ (8005108 ) + 8004f4e: f423 3380 bic.w r3, r3, #65536 @ 0x10000 + 8004f52: 6013 str r3, [r2, #0] + 8004f54: 4b6c ldr r3, [pc, #432] @ (8005108 ) + 8004f56: 681b ldr r3, [r3, #0] + 8004f58: 4a6b ldr r2, [pc, #428] @ (8005108 ) + 8004f5a: f423 2380 bic.w r3, r3, #262144 @ 0x40000 + 8004f5e: 6013 str r3, [r2, #0] + 8004f60: 687b ldr r3, [r7, #4] + 8004f62: 685b ldr r3, [r3, #4] + 8004f64: 2b00 cmp r3, #0 + 8004f66: d013 beq.n 8004f90 + 8004f68: f7fc ff90 bl 8001e8c + 8004f6c: 6138 str r0, [r7, #16] + 8004f6e: e008 b.n 8004f82 + 8004f70: f7fc ff8c bl 8001e8c + 8004f74: 4602 mov r2, r0 + 8004f76: 693b ldr r3, [r7, #16] + 8004f78: 1ad3 subs r3, r2, r3 + 8004f7a: 2b64 cmp r3, #100 @ 0x64 + 8004f7c: d901 bls.n 8004f82 + 8004f7e: 2303 movs r3, #3 + 8004f80: e21f b.n 80053c2 + 8004f82: 4b61 ldr r3, [pc, #388] @ (8005108 ) + 8004f84: 681b ldr r3, [r3, #0] + 8004f86: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8004f8a: 2b00 cmp r3, #0 + 8004f8c: d0f0 beq.n 8004f70 + 8004f8e: e014 b.n 8004fba + 8004f90: f7fc ff7c bl 8001e8c + 8004f94: 6138 str r0, [r7, #16] + 8004f96: e008 b.n 8004faa + 8004f98: f7fc ff78 bl 8001e8c + 8004f9c: 4602 mov r2, r0 + 8004f9e: 693b ldr r3, [r7, #16] + 8004fa0: 1ad3 subs r3, r2, r3 + 8004fa2: 2b64 cmp r3, #100 @ 0x64 + 8004fa4: d901 bls.n 8004faa + 8004fa6: 2303 movs r3, #3 + 8004fa8: e20b b.n 80053c2 + 8004faa: 4b57 ldr r3, [pc, #348] @ (8005108 ) + 8004fac: 681b ldr r3, [r3, #0] + 8004fae: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8004fb2: 2b00 cmp r3, #0 + 8004fb4: d1f0 bne.n 8004f98 + 8004fb6: e000 b.n 8004fba + 8004fb8: bf00 nop + 8004fba: 687b ldr r3, [r7, #4] + 8004fbc: 681b ldr r3, [r3, #0] + 8004fbe: f003 0302 and.w r3, r3, #2 + 8004fc2: 2b00 cmp r3, #0 + 8004fc4: d06f beq.n 80050a6 + 8004fc6: 4b50 ldr r3, [pc, #320] @ (8005108 ) + 8004fc8: 689b ldr r3, [r3, #8] + 8004fca: f003 030c and.w r3, r3, #12 + 8004fce: 2b00 cmp r3, #0 + 8004fd0: d017 beq.n 8005002 + 8004fd2: 4b4d ldr r3, [pc, #308] @ (8005108 ) + 8004fd4: 689b ldr r3, [r3, #8] + 8004fd6: f003 030c and.w r3, r3, #12 + 8004fda: 2b08 cmp r3, #8 + 8004fdc: d105 bne.n 8004fea + 8004fde: 4b4a ldr r3, [pc, #296] @ (8005108 ) + 8004fe0: 685b ldr r3, [r3, #4] + 8004fe2: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004fe6: 2b00 cmp r3, #0 + 8004fe8: d00b beq.n 8005002 + 8004fea: 4b47 ldr r3, [pc, #284] @ (8005108 ) + 8004fec: 689b ldr r3, [r3, #8] + 8004fee: f003 030c and.w r3, r3, #12 + 8004ff2: 2b0c cmp r3, #12 + 8004ff4: d11c bne.n 8005030 + 8004ff6: 4b44 ldr r3, [pc, #272] @ (8005108 ) + 8004ff8: 685b ldr r3, [r3, #4] + 8004ffa: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004ffe: 2b00 cmp r3, #0 + 8005000: d116 bne.n 8005030 + 8005002: 4b41 ldr r3, [pc, #260] @ (8005108 ) + 8005004: 681b ldr r3, [r3, #0] + 8005006: f003 0302 and.w r3, r3, #2 + 800500a: 2b00 cmp r3, #0 + 800500c: d005 beq.n 800501a + 800500e: 687b ldr r3, [r7, #4] + 8005010: 68db ldr r3, [r3, #12] + 8005012: 2b01 cmp r3, #1 + 8005014: d001 beq.n 800501a + 8005016: 2301 movs r3, #1 + 8005018: e1d3 b.n 80053c2 + 800501a: 4b3b ldr r3, [pc, #236] @ (8005108 ) + 800501c: 681b ldr r3, [r3, #0] + 800501e: f023 02f8 bic.w r2, r3, #248 @ 0xf8 + 8005022: 687b ldr r3, [r7, #4] + 8005024: 691b ldr r3, [r3, #16] + 8005026: 00db lsls r3, r3, #3 + 8005028: 4937 ldr r1, [pc, #220] @ (8005108 ) + 800502a: 4313 orrs r3, r2 + 800502c: 600b str r3, [r1, #0] + 800502e: e03a b.n 80050a6 + 8005030: 687b ldr r3, [r7, #4] + 8005032: 68db ldr r3, [r3, #12] + 8005034: 2b00 cmp r3, #0 + 8005036: d020 beq.n 800507a + 8005038: 4b34 ldr r3, [pc, #208] @ (800510c ) + 800503a: 2201 movs r2, #1 + 800503c: 601a str r2, [r3, #0] + 800503e: f7fc ff25 bl 8001e8c + 8005042: 6138 str r0, [r7, #16] + 8005044: e008 b.n 8005058 + 8005046: f7fc ff21 bl 8001e8c + 800504a: 4602 mov r2, r0 + 800504c: 693b ldr r3, [r7, #16] + 800504e: 1ad3 subs r3, r2, r3 + 8005050: 2b02 cmp r3, #2 + 8005052: d901 bls.n 8005058 + 8005054: 2303 movs r3, #3 + 8005056: e1b4 b.n 80053c2 + 8005058: 4b2b ldr r3, [pc, #172] @ (8005108 ) + 800505a: 681b ldr r3, [r3, #0] + 800505c: f003 0302 and.w r3, r3, #2 + 8005060: 2b00 cmp r3, #0 + 8005062: d0f0 beq.n 8005046 + 8005064: 4b28 ldr r3, [pc, #160] @ (8005108 ) + 8005066: 681b ldr r3, [r3, #0] + 8005068: f023 02f8 bic.w r2, r3, #248 @ 0xf8 + 800506c: 687b ldr r3, [r7, #4] + 800506e: 691b ldr r3, [r3, #16] + 8005070: 00db lsls r3, r3, #3 + 8005072: 4925 ldr r1, [pc, #148] @ (8005108 ) + 8005074: 4313 orrs r3, r2 + 8005076: 600b str r3, [r1, #0] + 8005078: e015 b.n 80050a6 + 800507a: 4b24 ldr r3, [pc, #144] @ (800510c ) + 800507c: 2200 movs r2, #0 + 800507e: 601a str r2, [r3, #0] + 8005080: f7fc ff04 bl 8001e8c + 8005084: 6138 str r0, [r7, #16] + 8005086: e008 b.n 800509a + 8005088: f7fc ff00 bl 8001e8c + 800508c: 4602 mov r2, r0 + 800508e: 693b ldr r3, [r7, #16] + 8005090: 1ad3 subs r3, r2, r3 + 8005092: 2b02 cmp r3, #2 + 8005094: d901 bls.n 800509a + 8005096: 2303 movs r3, #3 + 8005098: e193 b.n 80053c2 + 800509a: 4b1b ldr r3, [pc, #108] @ (8005108 ) + 800509c: 681b ldr r3, [r3, #0] + 800509e: f003 0302 and.w r3, r3, #2 + 80050a2: 2b00 cmp r3, #0 + 80050a4: d1f0 bne.n 8005088 + 80050a6: 687b ldr r3, [r7, #4] + 80050a8: 681b ldr r3, [r3, #0] + 80050aa: f003 0308 and.w r3, r3, #8 + 80050ae: 2b00 cmp r3, #0 + 80050b0: d036 beq.n 8005120 + 80050b2: 687b ldr r3, [r7, #4] + 80050b4: 695b ldr r3, [r3, #20] + 80050b6: 2b00 cmp r3, #0 + 80050b8: d016 beq.n 80050e8 + 80050ba: 4b15 ldr r3, [pc, #84] @ (8005110 ) + 80050bc: 2201 movs r2, #1 + 80050be: 601a str r2, [r3, #0] + 80050c0: f7fc fee4 bl 8001e8c + 80050c4: 6138 str r0, [r7, #16] + 80050c6: e008 b.n 80050da + 80050c8: f7fc fee0 bl 8001e8c + 80050cc: 4602 mov r2, r0 + 80050ce: 693b ldr r3, [r7, #16] + 80050d0: 1ad3 subs r3, r2, r3 + 80050d2: 2b02 cmp r3, #2 + 80050d4: d901 bls.n 80050da + 80050d6: 2303 movs r3, #3 + 80050d8: e173 b.n 80053c2 + 80050da: 4b0b ldr r3, [pc, #44] @ (8005108 ) + 80050dc: 6f5b ldr r3, [r3, #116] @ 0x74 + 80050de: f003 0302 and.w r3, r3, #2 + 80050e2: 2b00 cmp r3, #0 + 80050e4: d0f0 beq.n 80050c8 + 80050e6: e01b b.n 8005120 + 80050e8: 4b09 ldr r3, [pc, #36] @ (8005110 ) + 80050ea: 2200 movs r2, #0 + 80050ec: 601a str r2, [r3, #0] + 80050ee: f7fc fecd bl 8001e8c + 80050f2: 6138 str r0, [r7, #16] + 80050f4: e00e b.n 8005114 + 80050f6: f7fc fec9 bl 8001e8c + 80050fa: 4602 mov r2, r0 + 80050fc: 693b ldr r3, [r7, #16] + 80050fe: 1ad3 subs r3, r2, r3 + 8005100: 2b02 cmp r3, #2 + 8005102: d907 bls.n 8005114 + 8005104: 2303 movs r3, #3 + 8005106: e15c b.n 80053c2 + 8005108: 40023800 .word 0x40023800 + 800510c: 42470000 .word 0x42470000 + 8005110: 42470e80 .word 0x42470e80 + 8005114: 4b8a ldr r3, [pc, #552] @ (8005340 ) + 8005116: 6f5b ldr r3, [r3, #116] @ 0x74 + 8005118: f003 0302 and.w r3, r3, #2 + 800511c: 2b00 cmp r3, #0 + 800511e: d1ea bne.n 80050f6 + 8005120: 687b ldr r3, [r7, #4] + 8005122: 681b ldr r3, [r3, #0] + 8005124: f003 0304 and.w r3, r3, #4 + 8005128: 2b00 cmp r3, #0 + 800512a: f000 8097 beq.w 800525c + 800512e: 2300 movs r3, #0 + 8005130: 75fb strb r3, [r7, #23] + 8005132: 4b83 ldr r3, [pc, #524] @ (8005340 ) + 8005134: 6c1b ldr r3, [r3, #64] @ 0x40 + 8005136: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 800513a: 2b00 cmp r3, #0 + 800513c: d10f bne.n 800515e + 800513e: 2300 movs r3, #0 + 8005140: 60bb str r3, [r7, #8] + 8005142: 4b7f ldr r3, [pc, #508] @ (8005340 ) + 8005144: 6c1b ldr r3, [r3, #64] @ 0x40 + 8005146: 4a7e ldr r2, [pc, #504] @ (8005340 ) + 8005148: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 800514c: 6413 str r3, [r2, #64] @ 0x40 + 800514e: 4b7c ldr r3, [pc, #496] @ (8005340 ) + 8005150: 6c1b ldr r3, [r3, #64] @ 0x40 + 8005152: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8005156: 60bb str r3, [r7, #8] + 8005158: 68bb ldr r3, [r7, #8] + 800515a: 2301 movs r3, #1 + 800515c: 75fb strb r3, [r7, #23] + 800515e: 4b79 ldr r3, [pc, #484] @ (8005344 ) + 8005160: 681b ldr r3, [r3, #0] + 8005162: f403 7380 and.w r3, r3, #256 @ 0x100 + 8005166: 2b00 cmp r3, #0 + 8005168: d118 bne.n 800519c + 800516a: 4b76 ldr r3, [pc, #472] @ (8005344 ) + 800516c: 681b ldr r3, [r3, #0] + 800516e: 4a75 ldr r2, [pc, #468] @ (8005344 ) + 8005170: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8005174: 6013 str r3, [r2, #0] + 8005176: f7fc fe89 bl 8001e8c + 800517a: 6138 str r0, [r7, #16] + 800517c: e008 b.n 8005190 + 800517e: f7fc fe85 bl 8001e8c + 8005182: 4602 mov r2, r0 + 8005184: 693b ldr r3, [r7, #16] + 8005186: 1ad3 subs r3, r2, r3 + 8005188: 2b02 cmp r3, #2 + 800518a: d901 bls.n 8005190 + 800518c: 2303 movs r3, #3 + 800518e: e118 b.n 80053c2 + 8005190: 4b6c ldr r3, [pc, #432] @ (8005344 ) + 8005192: 681b ldr r3, [r3, #0] + 8005194: f403 7380 and.w r3, r3, #256 @ 0x100 + 8005198: 2b00 cmp r3, #0 + 800519a: d0f0 beq.n 800517e + 800519c: 687b ldr r3, [r7, #4] + 800519e: 689b ldr r3, [r3, #8] + 80051a0: 2b01 cmp r3, #1 + 80051a2: d106 bne.n 80051b2 + 80051a4: 4b66 ldr r3, [pc, #408] @ (8005340 ) + 80051a6: 6f1b ldr r3, [r3, #112] @ 0x70 + 80051a8: 4a65 ldr r2, [pc, #404] @ (8005340 ) + 80051aa: f043 0301 orr.w r3, r3, #1 + 80051ae: 6713 str r3, [r2, #112] @ 0x70 + 80051b0: e01c b.n 80051ec + 80051b2: 687b ldr r3, [r7, #4] + 80051b4: 689b ldr r3, [r3, #8] + 80051b6: 2b05 cmp r3, #5 + 80051b8: d10c bne.n 80051d4 + 80051ba: 4b61 ldr r3, [pc, #388] @ (8005340 ) + 80051bc: 6f1b ldr r3, [r3, #112] @ 0x70 + 80051be: 4a60 ldr r2, [pc, #384] @ (8005340 ) + 80051c0: f043 0304 orr.w r3, r3, #4 + 80051c4: 6713 str r3, [r2, #112] @ 0x70 + 80051c6: 4b5e ldr r3, [pc, #376] @ (8005340 ) + 80051c8: 6f1b ldr r3, [r3, #112] @ 0x70 + 80051ca: 4a5d ldr r2, [pc, #372] @ (8005340 ) + 80051cc: f043 0301 orr.w r3, r3, #1 + 80051d0: 6713 str r3, [r2, #112] @ 0x70 + 80051d2: e00b b.n 80051ec + 80051d4: 4b5a ldr r3, [pc, #360] @ (8005340 ) + 80051d6: 6f1b ldr r3, [r3, #112] @ 0x70 + 80051d8: 4a59 ldr r2, [pc, #356] @ (8005340 ) + 80051da: f023 0301 bic.w r3, r3, #1 + 80051de: 6713 str r3, [r2, #112] @ 0x70 + 80051e0: 4b57 ldr r3, [pc, #348] @ (8005340 ) + 80051e2: 6f1b ldr r3, [r3, #112] @ 0x70 + 80051e4: 4a56 ldr r2, [pc, #344] @ (8005340 ) + 80051e6: f023 0304 bic.w r3, r3, #4 + 80051ea: 6713 str r3, [r2, #112] @ 0x70 + 80051ec: 687b ldr r3, [r7, #4] + 80051ee: 689b ldr r3, [r3, #8] + 80051f0: 2b00 cmp r3, #0 + 80051f2: d015 beq.n 8005220 + 80051f4: f7fc fe4a bl 8001e8c + 80051f8: 6138 str r0, [r7, #16] + 80051fa: e00a b.n 8005212 + 80051fc: f7fc fe46 bl 8001e8c + 8005200: 4602 mov r2, r0 + 8005202: 693b ldr r3, [r7, #16] + 8005204: 1ad3 subs r3, r2, r3 + 8005206: f241 3288 movw r2, #5000 @ 0x1388 + 800520a: 4293 cmp r3, r2 + 800520c: d901 bls.n 8005212 + 800520e: 2303 movs r3, #3 + 8005210: e0d7 b.n 80053c2 + 8005212: 4b4b ldr r3, [pc, #300] @ (8005340 ) + 8005214: 6f1b ldr r3, [r3, #112] @ 0x70 + 8005216: f003 0302 and.w r3, r3, #2 + 800521a: 2b00 cmp r3, #0 + 800521c: d0ee beq.n 80051fc + 800521e: e014 b.n 800524a + 8005220: f7fc fe34 bl 8001e8c + 8005224: 6138 str r0, [r7, #16] + 8005226: e00a b.n 800523e + 8005228: f7fc fe30 bl 8001e8c + 800522c: 4602 mov r2, r0 + 800522e: 693b ldr r3, [r7, #16] + 8005230: 1ad3 subs r3, r2, r3 + 8005232: f241 3288 movw r2, #5000 @ 0x1388 + 8005236: 4293 cmp r3, r2 + 8005238: d901 bls.n 800523e + 800523a: 2303 movs r3, #3 + 800523c: e0c1 b.n 80053c2 + 800523e: 4b40 ldr r3, [pc, #256] @ (8005340 ) + 8005240: 6f1b ldr r3, [r3, #112] @ 0x70 + 8005242: f003 0302 and.w r3, r3, #2 + 8005246: 2b00 cmp r3, #0 + 8005248: d1ee bne.n 8005228 + 800524a: 7dfb ldrb r3, [r7, #23] + 800524c: 2b01 cmp r3, #1 + 800524e: d105 bne.n 800525c + 8005250: 4b3b ldr r3, [pc, #236] @ (8005340 ) + 8005252: 6c1b ldr r3, [r3, #64] @ 0x40 + 8005254: 4a3a ldr r2, [pc, #232] @ (8005340 ) + 8005256: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 800525a: 6413 str r3, [r2, #64] @ 0x40 + 800525c: 687b ldr r3, [r7, #4] + 800525e: 699b ldr r3, [r3, #24] + 8005260: 2b00 cmp r3, #0 + 8005262: f000 80ad beq.w 80053c0 + 8005266: 4b36 ldr r3, [pc, #216] @ (8005340 ) + 8005268: 689b ldr r3, [r3, #8] + 800526a: f003 030c and.w r3, r3, #12 + 800526e: 2b08 cmp r3, #8 + 8005270: d060 beq.n 8005334 + 8005272: 687b ldr r3, [r7, #4] + 8005274: 699b ldr r3, [r3, #24] + 8005276: 2b02 cmp r3, #2 + 8005278: d145 bne.n 8005306 + 800527a: 4b33 ldr r3, [pc, #204] @ (8005348 ) + 800527c: 2200 movs r2, #0 + 800527e: 601a str r2, [r3, #0] + 8005280: f7fc fe04 bl 8001e8c + 8005284: 6138 str r0, [r7, #16] + 8005286: e008 b.n 800529a + 8005288: f7fc fe00 bl 8001e8c + 800528c: 4602 mov r2, r0 + 800528e: 693b ldr r3, [r7, #16] + 8005290: 1ad3 subs r3, r2, r3 + 8005292: 2b02 cmp r3, #2 + 8005294: d901 bls.n 800529a + 8005296: 2303 movs r3, #3 + 8005298: e093 b.n 80053c2 + 800529a: 4b29 ldr r3, [pc, #164] @ (8005340 ) + 800529c: 681b ldr r3, [r3, #0] + 800529e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 80052a2: 2b00 cmp r3, #0 + 80052a4: d1f0 bne.n 8005288 + 80052a6: 687b ldr r3, [r7, #4] + 80052a8: 69da ldr r2, [r3, #28] + 80052aa: 687b ldr r3, [r7, #4] + 80052ac: 6a1b ldr r3, [r3, #32] + 80052ae: 431a orrs r2, r3 + 80052b0: 687b ldr r3, [r7, #4] + 80052b2: 6a5b ldr r3, [r3, #36] @ 0x24 + 80052b4: 019b lsls r3, r3, #6 + 80052b6: 431a orrs r2, r3 + 80052b8: 687b ldr r3, [r7, #4] + 80052ba: 6a9b ldr r3, [r3, #40] @ 0x28 + 80052bc: 085b lsrs r3, r3, #1 + 80052be: 3b01 subs r3, #1 + 80052c0: 041b lsls r3, r3, #16 + 80052c2: 431a orrs r2, r3 + 80052c4: 687b ldr r3, [r7, #4] + 80052c6: 6adb ldr r3, [r3, #44] @ 0x2c + 80052c8: 061b lsls r3, r3, #24 + 80052ca: 431a orrs r2, r3 + 80052cc: 687b ldr r3, [r7, #4] + 80052ce: 6b1b ldr r3, [r3, #48] @ 0x30 + 80052d0: 071b lsls r3, r3, #28 + 80052d2: 491b ldr r1, [pc, #108] @ (8005340 ) + 80052d4: 4313 orrs r3, r2 + 80052d6: 604b str r3, [r1, #4] + 80052d8: 4b1b ldr r3, [pc, #108] @ (8005348 ) + 80052da: 2201 movs r2, #1 + 80052dc: 601a str r2, [r3, #0] + 80052de: f7fc fdd5 bl 8001e8c + 80052e2: 6138 str r0, [r7, #16] + 80052e4: e008 b.n 80052f8 + 80052e6: f7fc fdd1 bl 8001e8c + 80052ea: 4602 mov r2, r0 + 80052ec: 693b ldr r3, [r7, #16] + 80052ee: 1ad3 subs r3, r2, r3 + 80052f0: 2b02 cmp r3, #2 + 80052f2: d901 bls.n 80052f8 + 80052f4: 2303 movs r3, #3 + 80052f6: e064 b.n 80053c2 + 80052f8: 4b11 ldr r3, [pc, #68] @ (8005340 ) + 80052fa: 681b ldr r3, [r3, #0] + 80052fc: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 8005300: 2b00 cmp r3, #0 + 8005302: d0f0 beq.n 80052e6 + 8005304: e05c b.n 80053c0 + 8005306: 4b10 ldr r3, [pc, #64] @ (8005348 ) + 8005308: 2200 movs r2, #0 + 800530a: 601a str r2, [r3, #0] + 800530c: f7fc fdbe bl 8001e8c + 8005310: 6138 str r0, [r7, #16] + 8005312: e008 b.n 8005326 + 8005314: f7fc fdba bl 8001e8c + 8005318: 4602 mov r2, r0 + 800531a: 693b ldr r3, [r7, #16] + 800531c: 1ad3 subs r3, r2, r3 + 800531e: 2b02 cmp r3, #2 + 8005320: d901 bls.n 8005326 + 8005322: 2303 movs r3, #3 + 8005324: e04d b.n 80053c2 + 8005326: 4b06 ldr r3, [pc, #24] @ (8005340 ) + 8005328: 681b ldr r3, [r3, #0] + 800532a: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 800532e: 2b00 cmp r3, #0 + 8005330: d1f0 bne.n 8005314 + 8005332: e045 b.n 80053c0 + 8005334: 687b ldr r3, [r7, #4] + 8005336: 699b ldr r3, [r3, #24] + 8005338: 2b01 cmp r3, #1 + 800533a: d107 bne.n 800534c + 800533c: 2301 movs r3, #1 + 800533e: e040 b.n 80053c2 + 8005340: 40023800 .word 0x40023800 + 8005344: 40007000 .word 0x40007000 + 8005348: 42470060 .word 0x42470060 + 800534c: 4b1f ldr r3, [pc, #124] @ (80053cc ) + 800534e: 685b ldr r3, [r3, #4] + 8005350: 60fb str r3, [r7, #12] 8005352: 687b ldr r3, [r7, #4] - 8005354: 68db ldr r3, [r3, #12] + 8005354: 699b ldr r3, [r3, #24] 8005356: 2b01 cmp r3, #1 - 8005358: d001 beq.n 800535e - { - return HAL_ERROR; - 800535a: 2301 movs r3, #1 - 800535c: e1d3 b.n 8005706 - } - /* Otherwise, just the calibration is allowed */ - else - { - /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ - __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 800535e: 4b3b ldr r3, [pc, #236] @ (800544c ) - 8005360: 681b ldr r3, [r3, #0] - 8005362: f023 02f8 bic.w r2, r3, #248 @ 0xf8 - 8005366: 687b ldr r3, [r7, #4] - 8005368: 691b ldr r3, [r3, #16] - 800536a: 00db lsls r3, r3, #3 - 800536c: 4937 ldr r1, [pc, #220] @ (800544c ) - 800536e: 4313 orrs r3, r2 - 8005370: 600b str r3, [r1, #0] - if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 8005372: e03a b.n 80053ea - } - } - else - { - /* Check the HSI State */ - if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF) - 8005374: 687b ldr r3, [r7, #4] - 8005376: 68db ldr r3, [r3, #12] - 8005378: 2b00 cmp r3, #0 - 800537a: d020 beq.n 80053be - { - /* Enable the Internal High Speed oscillator (HSI). */ - __HAL_RCC_HSI_ENABLE(); - 800537c: 4b34 ldr r3, [pc, #208] @ (8005450 ) - 800537e: 2201 movs r2, #1 - 8005380: 601a str r2, [r3, #0] + 8005358: d030 beq.n 80053bc + 800535a: 68fb ldr r3, [r7, #12] + 800535c: f403 0280 and.w r2, r3, #4194304 @ 0x400000 + 8005360: 687b ldr r3, [r7, #4] + 8005362: 69db ldr r3, [r3, #28] + 8005364: 429a cmp r2, r3 + 8005366: d129 bne.n 80053bc + 8005368: 68fb ldr r3, [r7, #12] + 800536a: f003 023f and.w r2, r3, #63 @ 0x3f + 800536e: 687b ldr r3, [r7, #4] + 8005370: 6a1b ldr r3, [r3, #32] + 8005372: 429a cmp r2, r3 + 8005374: d122 bne.n 80053bc + 8005376: 68fa ldr r2, [r7, #12] + 8005378: f647 73c0 movw r3, #32704 @ 0x7fc0 + 800537c: 4013 ands r3, r2 + 800537e: 687a ldr r2, [r7, #4] + 8005380: 6a52 ldr r2, [r2, #36] @ 0x24 + 8005382: 0192 lsls r2, r2, #6 + 8005384: 4293 cmp r3, r2 + 8005386: d119 bne.n 80053bc + 8005388: 68fb ldr r3, [r7, #12] + 800538a: f403 3240 and.w r2, r3, #196608 @ 0x30000 + 800538e: 687b ldr r3, [r7, #4] + 8005390: 6a9b ldr r3, [r3, #40] @ 0x28 + 8005392: 085b lsrs r3, r3, #1 + 8005394: 3b01 subs r3, #1 + 8005396: 041b lsls r3, r3, #16 + 8005398: 429a cmp r2, r3 + 800539a: d10f bne.n 80053bc + 800539c: 68fb ldr r3, [r7, #12] + 800539e: f003 6270 and.w r2, r3, #251658240 @ 0xf000000 + 80053a2: 687b ldr r3, [r7, #4] + 80053a4: 6adb ldr r3, [r3, #44] @ 0x2c + 80053a6: 061b lsls r3, r3, #24 + 80053a8: 429a cmp r2, r3 + 80053aa: d107 bne.n 80053bc + 80053ac: 68fb ldr r3, [r7, #12] + 80053ae: f003 42e0 and.w r2, r3, #1879048192 @ 0x70000000 + 80053b2: 687b ldr r3, [r7, #4] + 80053b4: 6b1b ldr r3, [r3, #48] @ 0x30 + 80053b6: 071b lsls r3, r3, #28 + 80053b8: 429a cmp r2, r3 + 80053ba: d001 beq.n 80053c0 + 80053bc: 2301 movs r3, #1 + 80053be: e000 b.n 80053c2 + 80053c0: 2300 movs r3, #0 + 80053c2: 4618 mov r0, r3 + 80053c4: 3718 adds r7, #24 + 80053c6: 46bd mov sp, r7 + 80053c8: bd80 pop {r7, pc} + 80053ca: bf00 nop + 80053cc: 40023800 .word 0x40023800 - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8005382: f7fc fde1 bl 8001f48 - 8005386: 6138 str r0, [r7, #16] +080053d0 : + 80053d0: b580 push {r7, lr} + 80053d2: b082 sub sp, #8 + 80053d4: af00 add r7, sp, #0 + 80053d6: 6078 str r0, [r7, #4] + 80053d8: 687b ldr r3, [r7, #4] + 80053da: 2b00 cmp r3, #0 + 80053dc: d101 bne.n 80053e2 + 80053de: 2301 movs r3, #1 + 80053e0: e041 b.n 8005466 + 80053e2: 687b ldr r3, [r7, #4] + 80053e4: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 80053e8: b2db uxtb r3, r3 + 80053ea: 2b00 cmp r3, #0 + 80053ec: d106 bne.n 80053fc + 80053ee: 687b ldr r3, [r7, #4] + 80053f0: 2200 movs r2, #0 + 80053f2: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80053f6: 6878 ldr r0, [r7, #4] + 80053f8: f7fc f8ae bl 8001558 + 80053fc: 687b ldr r3, [r7, #4] + 80053fe: 2202 movs r2, #2 + 8005400: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8005404: 687b ldr r3, [r7, #4] + 8005406: 681a ldr r2, [r3, #0] + 8005408: 687b ldr r3, [r7, #4] + 800540a: 3304 adds r3, #4 + 800540c: 4619 mov r1, r3 + 800540e: 4610 mov r0, r2 + 8005410: f000 fba0 bl 8005b54 + 8005414: 687b ldr r3, [r7, #4] + 8005416: 2201 movs r2, #1 + 8005418: f883 2046 strb.w r2, [r3, #70] @ 0x46 + 800541c: 687b ldr r3, [r7, #4] + 800541e: 2201 movs r2, #1 + 8005420: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8005424: 687b ldr r3, [r7, #4] + 8005426: 2201 movs r2, #1 + 8005428: f883 203f strb.w r2, [r3, #63] @ 0x3f + 800542c: 687b ldr r3, [r7, #4] + 800542e: 2201 movs r2, #1 + 8005430: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 8005434: 687b ldr r3, [r7, #4] + 8005436: 2201 movs r2, #1 + 8005438: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 800543c: 687b ldr r3, [r7, #4] + 800543e: 2201 movs r2, #1 + 8005440: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8005444: 687b ldr r3, [r7, #4] + 8005446: 2201 movs r2, #1 + 8005448: f883 2043 strb.w r2, [r3, #67] @ 0x43 + 800544c: 687b ldr r3, [r7, #4] + 800544e: 2201 movs r2, #1 + 8005450: f883 2044 strb.w r2, [r3, #68] @ 0x44 + 8005454: 687b ldr r3, [r7, #4] + 8005456: 2201 movs r2, #1 + 8005458: f883 2045 strb.w r2, [r3, #69] @ 0x45 + 800545c: 687b ldr r3, [r7, #4] + 800545e: 2201 movs r2, #1 + 8005460: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8005464: 2300 movs r3, #0 + 8005466: 4618 mov r0, r3 + 8005468: 3708 adds r7, #8 + 800546a: 46bd mov sp, r7 + 800546c: bd80 pop {r7, pc} - /* Wait till HSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8005388: e008 b.n 800539c - { - if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 800538a: f7fc fddd bl 8001f48 - 800538e: 4602 mov r2, r0 - 8005390: 693b ldr r3, [r7, #16] - 8005392: 1ad3 subs r3, r2, r3 - 8005394: 2b02 cmp r3, #2 - 8005396: d901 bls.n 800539c - { - return HAL_TIMEOUT; - 8005398: 2303 movs r3, #3 - 800539a: e1b4 b.n 8005706 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 800539c: 4b2b ldr r3, [pc, #172] @ (800544c ) - 800539e: 681b ldr r3, [r3, #0] - 80053a0: f003 0302 and.w r3, r3, #2 - 80053a4: 2b00 cmp r3, #0 - 80053a6: d0f0 beq.n 800538a - } - } +0800546e : + 800546e: b580 push {r7, lr} + 8005470: b082 sub sp, #8 + 8005472: af00 add r7, sp, #0 + 8005474: 6078 str r0, [r7, #4] + 8005476: 687b ldr r3, [r7, #4] + 8005478: 2b00 cmp r3, #0 + 800547a: d101 bne.n 8005480 + 800547c: 2301 movs r3, #1 + 800547e: e041 b.n 8005504 + 8005480: 687b ldr r3, [r7, #4] + 8005482: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 8005486: b2db uxtb r3, r3 + 8005488: 2b00 cmp r3, #0 + 800548a: d106 bne.n 800549a + 800548c: 687b ldr r3, [r7, #4] + 800548e: 2200 movs r2, #0 + 8005490: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005494: 6878 ldr r0, [r7, #4] + 8005496: f000 f839 bl 800550c + 800549a: 687b ldr r3, [r7, #4] + 800549c: 2202 movs r2, #2 + 800549e: f883 203d strb.w r2, [r3, #61] @ 0x3d + 80054a2: 687b ldr r3, [r7, #4] + 80054a4: 681a ldr r2, [r3, #0] + 80054a6: 687b ldr r3, [r7, #4] + 80054a8: 3304 adds r3, #4 + 80054aa: 4619 mov r1, r3 + 80054ac: 4610 mov r0, r2 + 80054ae: f000 fb51 bl 8005b54 + 80054b2: 687b ldr r3, [r7, #4] + 80054b4: 2201 movs r2, #1 + 80054b6: f883 2046 strb.w r2, [r3, #70] @ 0x46 + 80054ba: 687b ldr r3, [r7, #4] + 80054bc: 2201 movs r2, #1 + 80054be: f883 203e strb.w r2, [r3, #62] @ 0x3e + 80054c2: 687b ldr r3, [r7, #4] + 80054c4: 2201 movs r2, #1 + 80054c6: f883 203f strb.w r2, [r3, #63] @ 0x3f + 80054ca: 687b ldr r3, [r7, #4] + 80054cc: 2201 movs r2, #1 + 80054ce: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 80054d2: 687b ldr r3, [r7, #4] + 80054d4: 2201 movs r2, #1 + 80054d6: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 80054da: 687b ldr r3, [r7, #4] + 80054dc: 2201 movs r2, #1 + 80054de: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80054e2: 687b ldr r3, [r7, #4] + 80054e4: 2201 movs r2, #1 + 80054e6: f883 2043 strb.w r2, [r3, #67] @ 0x43 + 80054ea: 687b ldr r3, [r7, #4] + 80054ec: 2201 movs r2, #1 + 80054ee: f883 2044 strb.w r2, [r3, #68] @ 0x44 + 80054f2: 687b ldr r3, [r7, #4] + 80054f4: 2201 movs r2, #1 + 80054f6: f883 2045 strb.w r2, [r3, #69] @ 0x45 + 80054fa: 687b ldr r3, [r7, #4] + 80054fc: 2201 movs r2, #1 + 80054fe: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8005502: 2300 movs r3, #0 + 8005504: 4618 mov r0, r3 + 8005506: 3708 adds r7, #8 + 8005508: 46bd mov sp, r7 + 800550a: bd80 pop {r7, pc} - /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ - __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 80053a8: 4b28 ldr r3, [pc, #160] @ (800544c ) - 80053aa: 681b ldr r3, [r3, #0] - 80053ac: f023 02f8 bic.w r2, r3, #248 @ 0xf8 - 80053b0: 687b ldr r3, [r7, #4] - 80053b2: 691b ldr r3, [r3, #16] - 80053b4: 00db lsls r3, r3, #3 - 80053b6: 4925 ldr r1, [pc, #148] @ (800544c ) - 80053b8: 4313 orrs r3, r2 - 80053ba: 600b str r3, [r1, #0] - 80053bc: e015 b.n 80053ea - } - else - { - /* Disable the Internal High Speed oscillator (HSI). */ - __HAL_RCC_HSI_DISABLE(); - 80053be: 4b24 ldr r3, [pc, #144] @ (8005450 ) - 80053c0: 2200 movs r2, #0 - 80053c2: 601a str r2, [r3, #0] +0800550c : + 800550c: b480 push {r7} + 800550e: b083 sub sp, #12 + 8005510: af00 add r7, sp, #0 + 8005512: 6078 str r0, [r7, #4] + 8005514: bf00 nop + 8005516: 370c adds r7, #12 + 8005518: 46bd mov sp, r7 + 800551a: f85d 7b04 ldr.w r7, [sp], #4 + 800551e: 4770 bx lr - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 80053c4: f7fc fdc0 bl 8001f48 - 80053c8: 6138 str r0, [r7, #16] - - /* Wait till HSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 80053ca: e008 b.n 80053de - { - if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 80053cc: f7fc fdbc bl 8001f48 - 80053d0: 4602 mov r2, r0 - 80053d2: 693b ldr r3, [r7, #16] - 80053d4: 1ad3 subs r3, r2, r3 - 80053d6: 2b02 cmp r3, #2 - 80053d8: d901 bls.n 80053de - { - return HAL_TIMEOUT; - 80053da: 2303 movs r3, #3 - 80053dc: e193 b.n 8005706 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 80053de: 4b1b ldr r3, [pc, #108] @ (800544c ) - 80053e0: 681b ldr r3, [r3, #0] - 80053e2: f003 0302 and.w r3, r3, #2 - 80053e6: 2b00 cmp r3, #0 - 80053e8: d1f0 bne.n 80053cc - } - } - } - } - /*------------------------------ LSI Configuration -------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 80053ea: 687b ldr r3, [r7, #4] - 80053ec: 681b ldr r3, [r3, #0] - 80053ee: f003 0308 and.w r3, r3, #8 - 80053f2: 2b00 cmp r3, #0 - 80053f4: d036 beq.n 8005464 - { - /* Check the parameters */ - assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); - - /* Check the LSI State */ - if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF) - 80053f6: 687b ldr r3, [r7, #4] - 80053f8: 695b ldr r3, [r3, #20] - 80053fa: 2b00 cmp r3, #0 - 80053fc: d016 beq.n 800542c - { - /* Enable the Internal Low Speed oscillator (LSI). */ - __HAL_RCC_LSI_ENABLE(); - 80053fe: 4b15 ldr r3, [pc, #84] @ (8005454 ) - 8005400: 2201 movs r2, #1 - 8005402: 601a str r2, [r3, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8005404: f7fc fda0 bl 8001f48 - 8005408: 6138 str r0, [r7, #16] - - /* Wait till LSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 800540a: e008 b.n 800541e - { - if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 800540c: f7fc fd9c bl 8001f48 - 8005410: 4602 mov r2, r0 - 8005412: 693b ldr r3, [r7, #16] - 8005414: 1ad3 subs r3, r2, r3 - 8005416: 2b02 cmp r3, #2 - 8005418: d901 bls.n 800541e - { - return HAL_TIMEOUT; - 800541a: 2303 movs r3, #3 - 800541c: e173 b.n 8005706 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 800541e: 4b0b ldr r3, [pc, #44] @ (800544c ) - 8005420: 6f5b ldr r3, [r3, #116] @ 0x74 - 8005422: f003 0302 and.w r3, r3, #2 - 8005426: 2b00 cmp r3, #0 - 8005428: d0f0 beq.n 800540c - 800542a: e01b b.n 8005464 - } - } - else - { - /* Disable the Internal Low Speed oscillator (LSI). */ - __HAL_RCC_LSI_DISABLE(); - 800542c: 4b09 ldr r3, [pc, #36] @ (8005454 ) - 800542e: 2200 movs r2, #0 - 8005430: 601a str r2, [r3, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8005432: f7fc fd89 bl 8001f48 - 8005436: 6138 str r0, [r7, #16] - - /* Wait till LSI is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8005438: e00e b.n 8005458 - { - if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 800543a: f7fc fd85 bl 8001f48 - 800543e: 4602 mov r2, r0 - 8005440: 693b ldr r3, [r7, #16] - 8005442: 1ad3 subs r3, r2, r3 - 8005444: 2b02 cmp r3, #2 - 8005446: d907 bls.n 8005458 - { - return HAL_TIMEOUT; - 8005448: 2303 movs r3, #3 - 800544a: e15c b.n 8005706 - 800544c: 40023800 .word 0x40023800 - 8005450: 42470000 .word 0x42470000 - 8005454: 42470e80 .word 0x42470e80 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 8005458: 4b8a ldr r3, [pc, #552] @ (8005684 ) - 800545a: 6f5b ldr r3, [r3, #116] @ 0x74 - 800545c: f003 0302 and.w r3, r3, #2 - 8005460: 2b00 cmp r3, #0 - 8005462: d1ea bne.n 800543a - } - } - } - } - /*------------------------------ LSE Configuration -------------------------*/ - if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 8005464: 687b ldr r3, [r7, #4] - 8005466: 681b ldr r3, [r3, #0] - 8005468: f003 0304 and.w r3, r3, #4 - 800546c: 2b00 cmp r3, #0 - 800546e: f000 8097 beq.w 80055a0 - { - FlagStatus pwrclkchanged = RESET; - 8005472: 2300 movs r3, #0 - 8005474: 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()) - 8005476: 4b83 ldr r3, [pc, #524] @ (8005684 ) - 8005478: 6c1b ldr r3, [r3, #64] @ 0x40 - 800547a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 800547e: 2b00 cmp r3, #0 - 8005480: d10f bne.n 80054a2 - { - __HAL_RCC_PWR_CLK_ENABLE(); - 8005482: 2300 movs r3, #0 - 8005484: 60bb str r3, [r7, #8] - 8005486: 4b7f ldr r3, [pc, #508] @ (8005684 ) - 8005488: 6c1b ldr r3, [r3, #64] @ 0x40 - 800548a: 4a7e ldr r2, [pc, #504] @ (8005684 ) - 800548c: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8005490: 6413 str r3, [r2, #64] @ 0x40 - 8005492: 4b7c ldr r3, [pc, #496] @ (8005684 ) - 8005494: 6c1b ldr r3, [r3, #64] @ 0x40 - 8005496: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 800549a: 60bb str r3, [r7, #8] - 800549c: 68bb ldr r3, [r7, #8] - pwrclkchanged = SET; - 800549e: 2301 movs r3, #1 - 80054a0: 75fb strb r3, [r7, #23] - } - - if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80054a2: 4b79 ldr r3, [pc, #484] @ (8005688 ) - 80054a4: 681b ldr r3, [r3, #0] - 80054a6: f403 7380 and.w r3, r3, #256 @ 0x100 - 80054aa: 2b00 cmp r3, #0 - 80054ac: d118 bne.n 80054e0 - { - /* Enable write access to Backup domain */ - SET_BIT(PWR->CR, PWR_CR_DBP); - 80054ae: 4b76 ldr r3, [pc, #472] @ (8005688 ) - 80054b0: 681b ldr r3, [r3, #0] - 80054b2: 4a75 ldr r2, [pc, #468] @ (8005688 ) - 80054b4: f443 7380 orr.w r3, r3, #256 @ 0x100 - 80054b8: 6013 str r3, [r2, #0] - - /* Wait for Backup domain Write protection disable */ - tickstart = HAL_GetTick(); - 80054ba: f7fc fd45 bl 8001f48 - 80054be: 6138 str r0, [r7, #16] - - while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80054c0: e008 b.n 80054d4 - { - if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 80054c2: f7fc fd41 bl 8001f48 - 80054c6: 4602 mov r2, r0 - 80054c8: 693b ldr r3, [r7, #16] - 80054ca: 1ad3 subs r3, r2, r3 - 80054cc: 2b02 cmp r3, #2 - 80054ce: d901 bls.n 80054d4 - { - return HAL_TIMEOUT; - 80054d0: 2303 movs r3, #3 - 80054d2: e118 b.n 8005706 - while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 80054d4: 4b6c ldr r3, [pc, #432] @ (8005688 ) - 80054d6: 681b ldr r3, [r3, #0] - 80054d8: f403 7380 and.w r3, r3, #256 @ 0x100 - 80054dc: 2b00 cmp r3, #0 - 80054de: d0f0 beq.n 80054c2 - } - } - } - - /* Set the new LSE configuration -----------------------------------------*/ - __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 80054e0: 687b ldr r3, [r7, #4] - 80054e2: 689b ldr r3, [r3, #8] - 80054e4: 2b01 cmp r3, #1 - 80054e6: d106 bne.n 80054f6 - 80054e8: 4b66 ldr r3, [pc, #408] @ (8005684 ) - 80054ea: 6f1b ldr r3, [r3, #112] @ 0x70 - 80054ec: 4a65 ldr r2, [pc, #404] @ (8005684 ) - 80054ee: f043 0301 orr.w r3, r3, #1 - 80054f2: 6713 str r3, [r2, #112] @ 0x70 - 80054f4: e01c b.n 8005530 - 80054f6: 687b ldr r3, [r7, #4] - 80054f8: 689b ldr r3, [r3, #8] - 80054fa: 2b05 cmp r3, #5 - 80054fc: d10c bne.n 8005518 - 80054fe: 4b61 ldr r3, [pc, #388] @ (8005684 ) - 8005500: 6f1b ldr r3, [r3, #112] @ 0x70 - 8005502: 4a60 ldr r2, [pc, #384] @ (8005684 ) - 8005504: f043 0304 orr.w r3, r3, #4 - 8005508: 6713 str r3, [r2, #112] @ 0x70 - 800550a: 4b5e ldr r3, [pc, #376] @ (8005684 ) - 800550c: 6f1b ldr r3, [r3, #112] @ 0x70 - 800550e: 4a5d ldr r2, [pc, #372] @ (8005684 ) - 8005510: f043 0301 orr.w r3, r3, #1 - 8005514: 6713 str r3, [r2, #112] @ 0x70 - 8005516: e00b b.n 8005530 - 8005518: 4b5a ldr r3, [pc, #360] @ (8005684 ) - 800551a: 6f1b ldr r3, [r3, #112] @ 0x70 - 800551c: 4a59 ldr r2, [pc, #356] @ (8005684 ) - 800551e: f023 0301 bic.w r3, r3, #1 - 8005522: 6713 str r3, [r2, #112] @ 0x70 - 8005524: 4b57 ldr r3, [pc, #348] @ (8005684 ) - 8005526: 6f1b ldr r3, [r3, #112] @ 0x70 - 8005528: 4a56 ldr r2, [pc, #344] @ (8005684 ) - 800552a: f023 0304 bic.w r3, r3, #4 - 800552e: 6713 str r3, [r2, #112] @ 0x70 - /* Check the LSE State */ - if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF) +08005520 : + 8005520: b580 push {r7, lr} + 8005522: b084 sub sp, #16 + 8005524: af00 add r7, sp, #0 + 8005526: 6078 str r0, [r7, #4] + 8005528: 6039 str r1, [r7, #0] + 800552a: 683b ldr r3, [r7, #0] + 800552c: 2b00 cmp r3, #0 + 800552e: d109 bne.n 8005544 8005530: 687b ldr r3, [r7, #4] - 8005532: 689b ldr r3, [r3, #8] - 8005534: 2b00 cmp r3, #0 - 8005536: d015 beq.n 8005564 - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8005538: f7fc fd06 bl 8001f48 - 800553c: 6138 str r0, [r7, #16] - - /* Wait till LSE is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 800553e: e00a b.n 8005556 - { - if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 8005540: f7fc fd02 bl 8001f48 - 8005544: 4602 mov r2, r0 - 8005546: 693b ldr r3, [r7, #16] - 8005548: 1ad3 subs r3, r2, r3 - 800554a: f241 3288 movw r2, #5000 @ 0x1388 - 800554e: 4293 cmp r3, r2 - 8005550: d901 bls.n 8005556 - { - return HAL_TIMEOUT; - 8005552: 2303 movs r3, #3 - 8005554: e0d7 b.n 8005706 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8005556: 4b4b ldr r3, [pc, #300] @ (8005684 ) - 8005558: 6f1b ldr r3, [r3, #112] @ 0x70 - 800555a: f003 0302 and.w r3, r3, #2 - 800555e: 2b00 cmp r3, #0 - 8005560: d0ee beq.n 8005540 - 8005562: e014 b.n 800558e - } - } - else - { - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8005564: f7fc fcf0 bl 8001f48 - 8005568: 6138 str r0, [r7, #16] - - /* Wait till LSE is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 800556a: e00a b.n 8005582 - { - if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 800556c: f7fc fcec bl 8001f48 - 8005570: 4602 mov r2, r0 - 8005572: 693b ldr r3, [r7, #16] - 8005574: 1ad3 subs r3, r2, r3 - 8005576: f241 3288 movw r2, #5000 @ 0x1388 - 800557a: 4293 cmp r3, r2 - 800557c: d901 bls.n 8005582 - { - return HAL_TIMEOUT; - 800557e: 2303 movs r3, #3 - 8005580: e0c1 b.n 8005706 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 8005582: 4b40 ldr r3, [pc, #256] @ (8005684 ) - 8005584: 6f1b ldr r3, [r3, #112] @ 0x70 - 8005586: f003 0302 and.w r3, r3, #2 + 8005532: f893 303e ldrb.w r3, [r3, #62] @ 0x3e + 8005536: b2db uxtb r3, r3 + 8005538: 2b01 cmp r3, #1 + 800553a: bf14 ite ne + 800553c: 2301 movne r3, #1 + 800553e: 2300 moveq r3, #0 + 8005540: b2db uxtb r3, r3 + 8005542: e022 b.n 800558a + 8005544: 683b ldr r3, [r7, #0] + 8005546: 2b04 cmp r3, #4 + 8005548: d109 bne.n 800555e + 800554a: 687b ldr r3, [r7, #4] + 800554c: f893 303f ldrb.w r3, [r3, #63] @ 0x3f + 8005550: b2db uxtb r3, r3 + 8005552: 2b01 cmp r3, #1 + 8005554: bf14 ite ne + 8005556: 2301 movne r3, #1 + 8005558: 2300 moveq r3, #0 + 800555a: b2db uxtb r3, r3 + 800555c: e015 b.n 800558a + 800555e: 683b ldr r3, [r7, #0] + 8005560: 2b08 cmp r3, #8 + 8005562: d109 bne.n 8005578 + 8005564: 687b ldr r3, [r7, #4] + 8005566: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 + 800556a: b2db uxtb r3, r3 + 800556c: 2b01 cmp r3, #1 + 800556e: bf14 ite ne + 8005570: 2301 movne r3, #1 + 8005572: 2300 moveq r3, #0 + 8005574: b2db uxtb r3, r3 + 8005576: e008 b.n 800558a + 8005578: 687b ldr r3, [r7, #4] + 800557a: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 800557e: b2db uxtb r3, r3 + 8005580: 2b01 cmp r3, #1 + 8005582: bf14 ite ne + 8005584: 2301 movne r3, #1 + 8005586: 2300 moveq r3, #0 + 8005588: b2db uxtb r3, r3 800558a: 2b00 cmp r3, #0 - 800558c: d1ee bne.n 800556c - } - } - } - - /* Restore clock configuration if changed */ - if (pwrclkchanged == SET) - 800558e: 7dfb ldrb r3, [r7, #23] - 8005590: 2b01 cmp r3, #1 - 8005592: d105 bne.n 80055a0 - { - __HAL_RCC_PWR_CLK_DISABLE(); - 8005594: 4b3b ldr r3, [pc, #236] @ (8005684 ) - 8005596: 6c1b ldr r3, [r3, #64] @ 0x40 - 8005598: 4a3a ldr r2, [pc, #232] @ (8005684 ) - 800559a: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 800559e: 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) - 80055a0: 687b ldr r3, [r7, #4] - 80055a2: 699b ldr r3, [r3, #24] - 80055a4: 2b00 cmp r3, #0 - 80055a6: f000 80ad beq.w 8005704 - { - /* Check if the PLL is used as system clock or not */ - if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL) - 80055aa: 4b36 ldr r3, [pc, #216] @ (8005684 ) - 80055ac: 689b ldr r3, [r3, #8] - 80055ae: f003 030c and.w r3, r3, #12 - 80055b2: 2b08 cmp r3, #8 - 80055b4: d060 beq.n 8005678 - { - if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 80055b6: 687b ldr r3, [r7, #4] - 80055b8: 699b ldr r3, [r3, #24] - 80055ba: 2b02 cmp r3, #2 - 80055bc: d145 bne.n 800564a - 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(); - 80055be: 4b33 ldr r3, [pc, #204] @ (800568c ) - 80055c0: 2200 movs r2, #0 - 80055c2: 601a str r2, [r3, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 80055c4: f7fc fcc0 bl 8001f48 - 80055c8: 6138 str r0, [r7, #16] - - /* Wait till PLL is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 80055ca: e008 b.n 80055de - { - if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 80055cc: f7fc fcbc bl 8001f48 - 80055d0: 4602 mov r2, r0 - 80055d2: 693b ldr r3, [r7, #16] - 80055d4: 1ad3 subs r3, r2, r3 - 80055d6: 2b02 cmp r3, #2 - 80055d8: d901 bls.n 80055de - { - return HAL_TIMEOUT; - 80055da: 2303 movs r3, #3 - 80055dc: e093 b.n 8005706 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 80055de: 4b29 ldr r3, [pc, #164] @ (8005684 ) - 80055e0: 681b ldr r3, [r3, #0] - 80055e2: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 80055e6: 2b00 cmp r3, #0 - 80055e8: d1f0 bne.n 80055cc - } - } - - /* Configure the main PLL clock source, multiplication and division factors. */ - WRITE_REG(RCC->PLLCFGR, (RCC_OscInitStruct->PLL.PLLSource | \ - 80055ea: 687b ldr r3, [r7, #4] - 80055ec: 69da ldr r2, [r3, #28] - 80055ee: 687b ldr r3, [r7, #4] - 80055f0: 6a1b ldr r3, [r3, #32] - 80055f2: 431a orrs r2, r3 - 80055f4: 687b ldr r3, [r7, #4] - 80055f6: 6a5b ldr r3, [r3, #36] @ 0x24 - 80055f8: 019b lsls r3, r3, #6 - 80055fa: 431a orrs r2, r3 + 800558c: d001 beq.n 8005592 + 800558e: 2301 movs r3, #1 + 8005590: e07c b.n 800568c + 8005592: 683b ldr r3, [r7, #0] + 8005594: 2b00 cmp r3, #0 + 8005596: d104 bne.n 80055a2 + 8005598: 687b ldr r3, [r7, #4] + 800559a: 2202 movs r2, #2 + 800559c: f883 203e strb.w r2, [r3, #62] @ 0x3e + 80055a0: e013 b.n 80055ca + 80055a2: 683b ldr r3, [r7, #0] + 80055a4: 2b04 cmp r3, #4 + 80055a6: d104 bne.n 80055b2 + 80055a8: 687b ldr r3, [r7, #4] + 80055aa: 2202 movs r2, #2 + 80055ac: f883 203f strb.w r2, [r3, #63] @ 0x3f + 80055b0: e00b b.n 80055ca + 80055b2: 683b ldr r3, [r7, #0] + 80055b4: 2b08 cmp r3, #8 + 80055b6: d104 bne.n 80055c2 + 80055b8: 687b ldr r3, [r7, #4] + 80055ba: 2202 movs r2, #2 + 80055bc: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 80055c0: e003 b.n 80055ca + 80055c2: 687b ldr r3, [r7, #4] + 80055c4: 2202 movs r2, #2 + 80055c6: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 80055ca: 687b ldr r3, [r7, #4] + 80055cc: 681b ldr r3, [r3, #0] + 80055ce: 2201 movs r2, #1 + 80055d0: 6839 ldr r1, [r7, #0] + 80055d2: 4618 mov r0, r3 + 80055d4: f000 fd14 bl 8006000 + 80055d8: 687b ldr r3, [r7, #4] + 80055da: 681b ldr r3, [r3, #0] + 80055dc: 4a2d ldr r2, [pc, #180] @ (8005694 ) + 80055de: 4293 cmp r3, r2 + 80055e0: d004 beq.n 80055ec + 80055e2: 687b ldr r3, [r7, #4] + 80055e4: 681b ldr r3, [r3, #0] + 80055e6: 4a2c ldr r2, [pc, #176] @ (8005698 ) + 80055e8: 4293 cmp r3, r2 + 80055ea: d101 bne.n 80055f0 + 80055ec: 2301 movs r3, #1 + 80055ee: e000 b.n 80055f2 + 80055f0: 2300 movs r3, #0 + 80055f2: 2b00 cmp r3, #0 + 80055f4: d007 beq.n 8005606 + 80055f6: 687b ldr r3, [r7, #4] + 80055f8: 681b ldr r3, [r3, #0] + 80055fa: 6c5a ldr r2, [r3, #68] @ 0x44 80055fc: 687b ldr r3, [r7, #4] - 80055fe: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005600: 085b lsrs r3, r3, #1 - 8005602: 3b01 subs r3, #1 - 8005604: 041b lsls r3, r3, #16 - 8005606: 431a orrs r2, r3 - 8005608: 687b ldr r3, [r7, #4] - 800560a: 6adb ldr r3, [r3, #44] @ 0x2c - 800560c: 061b lsls r3, r3, #24 - 800560e: 431a orrs r2, r3 + 80055fe: 681b ldr r3, [r3, #0] + 8005600: f442 4200 orr.w r2, r2, #32768 @ 0x8000 + 8005604: 645a str r2, [r3, #68] @ 0x44 + 8005606: 687b ldr r3, [r7, #4] + 8005608: 681b ldr r3, [r3, #0] + 800560a: 4a22 ldr r2, [pc, #136] @ (8005694 ) + 800560c: 4293 cmp r3, r2 + 800560e: d022 beq.n 8005656 8005610: 687b ldr r3, [r7, #4] - 8005612: 6b1b ldr r3, [r3, #48] @ 0x30 - 8005614: 071b lsls r3, r3, #28 - 8005616: 491b ldr r1, [pc, #108] @ (8005684 ) - 8005618: 4313 orrs r3, r2 - 800561a: 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(); - 800561c: 4b1b ldr r3, [pc, #108] @ (800568c ) - 800561e: 2201 movs r2, #1 - 8005620: 601a str r2, [r3, #0] + 8005612: 681b ldr r3, [r3, #0] + 8005614: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8005618: d01d beq.n 8005656 + 800561a: 687b ldr r3, [r7, #4] + 800561c: 681b ldr r3, [r3, #0] + 800561e: 4a1f ldr r2, [pc, #124] @ (800569c ) + 8005620: 4293 cmp r3, r2 + 8005622: d018 beq.n 8005656 + 8005624: 687b ldr r3, [r7, #4] + 8005626: 681b ldr r3, [r3, #0] + 8005628: 4a1d ldr r2, [pc, #116] @ (80056a0 ) + 800562a: 4293 cmp r3, r2 + 800562c: d013 beq.n 8005656 + 800562e: 687b ldr r3, [r7, #4] + 8005630: 681b ldr r3, [r3, #0] + 8005632: 4a1c ldr r2, [pc, #112] @ (80056a4 ) + 8005634: 4293 cmp r3, r2 + 8005636: d00e beq.n 8005656 + 8005638: 687b ldr r3, [r7, #4] + 800563a: 681b ldr r3, [r3, #0] + 800563c: 4a16 ldr r2, [pc, #88] @ (8005698 ) + 800563e: 4293 cmp r3, r2 + 8005640: d009 beq.n 8005656 + 8005642: 687b ldr r3, [r7, #4] + 8005644: 681b ldr r3, [r3, #0] + 8005646: 4a18 ldr r2, [pc, #96] @ (80056a8 ) + 8005648: 4293 cmp r3, r2 + 800564a: d004 beq.n 8005656 + 800564c: 687b ldr r3, [r7, #4] + 800564e: 681b ldr r3, [r3, #0] + 8005650: 4a16 ldr r2, [pc, #88] @ (80056ac ) + 8005652: 4293 cmp r3, r2 + 8005654: d111 bne.n 800567a + 8005656: 687b ldr r3, [r7, #4] + 8005658: 681b ldr r3, [r3, #0] + 800565a: 689b ldr r3, [r3, #8] + 800565c: f003 0307 and.w r3, r3, #7 + 8005660: 60fb str r3, [r7, #12] + 8005662: 68fb ldr r3, [r7, #12] + 8005664: 2b06 cmp r3, #6 + 8005666: d010 beq.n 800568a + 8005668: 687b ldr r3, [r7, #4] + 800566a: 681b ldr r3, [r3, #0] + 800566c: 681a ldr r2, [r3, #0] + 800566e: 687b ldr r3, [r7, #4] + 8005670: 681b ldr r3, [r3, #0] + 8005672: f042 0201 orr.w r2, r2, #1 + 8005676: 601a str r2, [r3, #0] + 8005678: e007 b.n 800568a + 800567a: 687b ldr r3, [r7, #4] + 800567c: 681b ldr r3, [r3, #0] + 800567e: 681a ldr r2, [r3, #0] + 8005680: 687b ldr r3, [r7, #4] + 8005682: 681b ldr r3, [r3, #0] + 8005684: f042 0201 orr.w r2, r2, #1 + 8005688: 601a str r2, [r3, #0] + 800568a: 2300 movs r3, #0 + 800568c: 4618 mov r0, r3 + 800568e: 3710 adds r7, #16 + 8005690: 46bd mov sp, r7 + 8005692: bd80 pop {r7, pc} + 8005694: 40010000 .word 0x40010000 + 8005698: 40010400 .word 0x40010400 + 800569c: 40000400 .word 0x40000400 + 80056a0: 40000800 .word 0x40000800 + 80056a4: 40000c00 .word 0x40000c00 + 80056a8: 40014000 .word 0x40014000 + 80056ac: 40001800 .word 0x40001800 - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8005622: f7fc fc91 bl 8001f48 - 8005626: 6138 str r0, [r7, #16] - - /* Wait till PLL is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 8005628: e008 b.n 800563c - { - if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 800562a: f7fc fc8d bl 8001f48 - 800562e: 4602 mov r2, r0 - 8005630: 693b ldr r3, [r7, #16] - 8005632: 1ad3 subs r3, r2, r3 - 8005634: 2b02 cmp r3, #2 - 8005636: d901 bls.n 800563c - { - return HAL_TIMEOUT; - 8005638: 2303 movs r3, #3 - 800563a: e064 b.n 8005706 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 800563c: 4b11 ldr r3, [pc, #68] @ (8005684 ) - 800563e: 681b ldr r3, [r3, #0] - 8005640: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8005644: 2b00 cmp r3, #0 - 8005646: d0f0 beq.n 800562a - 8005648: e05c b.n 8005704 - } - } - else - { - /* Disable the main PLL. */ - __HAL_RCC_PLL_DISABLE(); - 800564a: 4b10 ldr r3, [pc, #64] @ (800568c ) - 800564c: 2200 movs r2, #0 - 800564e: 601a str r2, [r3, #0] - - /* Get Start Tick*/ - tickstart = HAL_GetTick(); - 8005650: f7fc fc7a bl 8001f48 - 8005654: 6138 str r0, [r7, #16] - - /* Wait till PLL is ready */ - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8005656: e008 b.n 800566a - { - if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 8005658: f7fc fc76 bl 8001f48 - 800565c: 4602 mov r2, r0 - 800565e: 693b ldr r3, [r7, #16] - 8005660: 1ad3 subs r3, r2, r3 - 8005662: 2b02 cmp r3, #2 - 8005664: d901 bls.n 800566a - { - return HAL_TIMEOUT; - 8005666: 2303 movs r3, #3 - 8005668: e04d b.n 8005706 - while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800566a: 4b06 ldr r3, [pc, #24] @ (8005684 ) - 800566c: 681b ldr r3, [r3, #0] - 800566e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8005672: 2b00 cmp r3, #0 - 8005674: d1f0 bne.n 8005658 - 8005676: e045 b.n 8005704 - } - } - else - { - /* Check if there is a request to disable the PLL used as System clock source */ - if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 8005678: 687b ldr r3, [r7, #4] - 800567a: 699b ldr r3, [r3, #24] - 800567c: 2b01 cmp r3, #1 - 800567e: d107 bne.n 8005690 - { - return HAL_ERROR; - 8005680: 2301 movs r3, #1 - 8005682: e040 b.n 8005706 - 8005684: 40023800 .word 0x40023800 - 8005688: 40007000 .word 0x40007000 - 800568c: 42470060 .word 0x42470060 - } - else - { - /* Do not return HAL_ERROR if request repeats the current configuration */ - pll_config = RCC->PLLCFGR; - 8005690: 4b1f ldr r3, [pc, #124] @ (8005710 ) - 8005692: 685b ldr r3, [r3, #4] - 8005694: 60fb str r3, [r7, #12] -#if defined (RCC_PLLCFGR_PLLR) - if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 8005696: 687b ldr r3, [r7, #4] - 8005698: 699b ldr r3, [r3, #24] - 800569a: 2b01 cmp r3, #1 - 800569c: d030 beq.n 8005700 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 800569e: 68fb ldr r3, [r7, #12] - 80056a0: f403 0280 and.w r2, r3, #4194304 @ 0x400000 - 80056a4: 687b ldr r3, [r7, #4] - 80056a6: 69db ldr r3, [r3, #28] - if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 80056a8: 429a cmp r2, r3 - 80056aa: d129 bne.n 8005700 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || - 80056ac: 68fb ldr r3, [r7, #12] - 80056ae: f003 023f and.w r2, r3, #63 @ 0x3f - 80056b2: 687b ldr r3, [r7, #4] - 80056b4: 6a1b ldr r3, [r3, #32] - (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 80056b6: 429a cmp r2, r3 - 80056b8: d122 bne.n 8005700 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || - 80056ba: 68fa ldr r2, [r7, #12] - 80056bc: f647 73c0 movw r3, #32704 @ 0x7fc0 - 80056c0: 4013 ands r3, r2 - 80056c2: 687a ldr r2, [r7, #4] - 80056c4: 6a52 ldr r2, [r2, #36] @ 0x24 - 80056c6: 0192 lsls r2, r2, #6 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || - 80056c8: 4293 cmp r3, r2 - 80056ca: d119 bne.n 8005700 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || - 80056cc: 68fb ldr r3, [r7, #12] - 80056ce: f403 3240 and.w r2, r3, #196608 @ 0x30000 - 80056d2: 687b ldr r3, [r7, #4] - 80056d4: 6a9b ldr r3, [r3, #40] @ 0x28 - 80056d6: 085b lsrs r3, r3, #1 - 80056d8: 3b01 subs r3, #1 - 80056da: 041b lsls r3, r3, #16 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || - 80056dc: 429a cmp r2, r3 - 80056de: d10f bne.n 8005700 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || - 80056e0: 68fb ldr r3, [r7, #12] - 80056e2: f003 6270 and.w r2, r3, #251658240 @ 0xf000000 +080056b0 : + 80056b0: b580 push {r7, lr} + 80056b2: b086 sub sp, #24 + 80056b4: af00 add r7, sp, #0 + 80056b6: 6078 str r0, [r7, #4] + 80056b8: 6039 str r1, [r7, #0] + 80056ba: 687b ldr r3, [r7, #4] + 80056bc: 2b00 cmp r3, #0 + 80056be: d101 bne.n 80056c4 + 80056c0: 2301 movs r3, #1 + 80056c2: e097 b.n 80057f4 + 80056c4: 687b ldr r3, [r7, #4] + 80056c6: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 80056ca: b2db uxtb r3, r3 + 80056cc: 2b00 cmp r3, #0 + 80056ce: d106 bne.n 80056de + 80056d0: 687b ldr r3, [r7, #4] + 80056d2: 2200 movs r2, #0 + 80056d4: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80056d8: 6878 ldr r0, [r7, #4] + 80056da: f7fb ff5d bl 8001598 + 80056de: 687b ldr r3, [r7, #4] + 80056e0: 2202 movs r2, #2 + 80056e2: f883 203d strb.w r2, [r3, #61] @ 0x3d 80056e6: 687b ldr r3, [r7, #4] - 80056e8: 6adb ldr r3, [r3, #44] @ 0x2c - 80056ea: 061b lsls r3, r3, #24 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || - 80056ec: 429a cmp r2, r3 - 80056ee: d107 bne.n 8005700 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLR) != (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos))) - 80056f0: 68fb ldr r3, [r7, #12] - 80056f2: f003 42e0 and.w r2, r3, #1879048192 @ 0x70000000 - 80056f6: 687b ldr r3, [r7, #4] - 80056f8: 6b1b ldr r3, [r3, #48] @ 0x30 - 80056fa: 071b lsls r3, r3, #28 - (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || - 80056fc: 429a cmp r2, r3 - 80056fe: d001 beq.n 8005704 - (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; - 8005700: 2301 movs r3, #1 - 8005702: e000 b.n 8005706 - } - } - } - } - return HAL_OK; - 8005704: 2300 movs r3, #0 -} - 8005706: 4618 mov r0, r3 - 8005708: 3718 adds r7, #24 - 800570a: 46bd mov sp, r7 - 800570c: bd80 pop {r7, pc} - 800570e: bf00 nop - 8005710: 40023800 .word 0x40023800 - -08005714 : - * 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) -{ - 8005714: b580 push {r7, lr} - 8005716: b082 sub sp, #8 - 8005718: af00 add r7, sp, #0 - 800571a: 6078 str r0, [r7, #4] - /* Check the TIM handle allocation */ - if (htim == NULL) - 800571c: 687b ldr r3, [r7, #4] - 800571e: 2b00 cmp r3, #0 - 8005720: d101 bne.n 8005726 - { - return HAL_ERROR; - 8005722: 2301 movs r3, #1 - 8005724: e041 b.n 80057aa - 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) - 8005726: 687b ldr r3, [r7, #4] - 8005728: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 800572c: b2db uxtb r3, r3 - 800572e: 2b00 cmp r3, #0 - 8005730: d106 bne.n 8005740 - { - /* Allocate lock resource and initialize it */ - htim->Lock = HAL_UNLOCKED; - 8005732: 687b ldr r3, [r7, #4] - 8005734: 2200 movs r2, #0 - 8005736: 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); - 800573a: 6878 ldr r0, [r7, #4] - 800573c: f7fb ff6a bl 8001614 -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - 8005740: 687b ldr r3, [r7, #4] - 8005742: 2202 movs r2, #2 - 8005744: f883 203d strb.w r2, [r3, #61] @ 0x3d - - /* Init the base time for the Output Compare */ - TIM_Base_SetConfig(htim->Instance, &htim->Init); - 8005748: 687b ldr r3, [r7, #4] - 800574a: 681a ldr r2, [r3, #0] - 800574c: 687b ldr r3, [r7, #4] - 800574e: 3304 adds r3, #4 - 8005750: 4619 mov r1, r3 - 8005752: 4610 mov r0, r2 - 8005754: f000 fba0 bl 8005e98 - - /* Initialize the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - 8005758: 687b ldr r3, [r7, #4] - 800575a: 2201 movs r2, #1 - 800575c: f883 2046 strb.w r2, [r3, #70] @ 0x46 - - /* Initialize the TIM channels state */ - TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 8005760: 687b ldr r3, [r7, #4] - 8005762: 2201 movs r2, #1 - 8005764: f883 203e strb.w r2, [r3, #62] @ 0x3e - 8005768: 687b ldr r3, [r7, #4] - 800576a: 2201 movs r2, #1 - 800576c: f883 203f strb.w r2, [r3, #63] @ 0x3f - 8005770: 687b ldr r3, [r7, #4] - 8005772: 2201 movs r2, #1 - 8005774: f883 2040 strb.w r2, [r3, #64] @ 0x40 - 8005778: 687b ldr r3, [r7, #4] - 800577a: 2201 movs r2, #1 - 800577c: f883 2041 strb.w r2, [r3, #65] @ 0x41 - TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 8005780: 687b ldr r3, [r7, #4] - 8005782: 2201 movs r2, #1 - 8005784: f883 2042 strb.w r2, [r3, #66] @ 0x42 - 8005788: 687b ldr r3, [r7, #4] - 800578a: 2201 movs r2, #1 - 800578c: f883 2043 strb.w r2, [r3, #67] @ 0x43 - 8005790: 687b ldr r3, [r7, #4] - 8005792: 2201 movs r2, #1 - 8005794: f883 2044 strb.w r2, [r3, #68] @ 0x44 - 8005798: 687b ldr r3, [r7, #4] - 800579a: 2201 movs r2, #1 - 800579c: f883 2045 strb.w r2, [r3, #69] @ 0x45 - - /* Initialize the TIM state*/ - htim->State = HAL_TIM_STATE_READY; - 80057a0: 687b ldr r3, [r7, #4] - 80057a2: 2201 movs r2, #1 - 80057a4: f883 203d strb.w r2, [r3, #61] @ 0x3d - - return HAL_OK; - 80057a8: 2300 movs r3, #0 -} - 80057aa: 4618 mov r0, r3 - 80057ac: 3708 adds r7, #8 - 80057ae: 46bd mov sp, r7 - 80057b0: bd80 pop {r7, pc} - -080057b2 : - * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init() - * @param htim TIM PWM handle - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim) -{ - 80057b2: b580 push {r7, lr} - 80057b4: b082 sub sp, #8 - 80057b6: af00 add r7, sp, #0 - 80057b8: 6078 str r0, [r7, #4] - /* Check the TIM handle allocation */ - if (htim == NULL) + 80056e8: 681b ldr r3, [r3, #0] + 80056ea: 689b ldr r3, [r3, #8] + 80056ec: 687a ldr r2, [r7, #4] + 80056ee: 6812 ldr r2, [r2, #0] + 80056f0: f423 4380 bic.w r3, r3, #16384 @ 0x4000 + 80056f4: f023 0307 bic.w r3, r3, #7 + 80056f8: 6093 str r3, [r2, #8] + 80056fa: 687b ldr r3, [r7, #4] + 80056fc: 681a ldr r2, [r3, #0] + 80056fe: 687b ldr r3, [r7, #4] + 8005700: 3304 adds r3, #4 + 8005702: 4619 mov r1, r3 + 8005704: 4610 mov r0, r2 + 8005706: f000 fa25 bl 8005b54 + 800570a: 687b ldr r3, [r7, #4] + 800570c: 681b ldr r3, [r3, #0] + 800570e: 689b ldr r3, [r3, #8] + 8005710: 617b str r3, [r7, #20] + 8005712: 687b ldr r3, [r7, #4] + 8005714: 681b ldr r3, [r3, #0] + 8005716: 699b ldr r3, [r3, #24] + 8005718: 613b str r3, [r7, #16] + 800571a: 687b ldr r3, [r7, #4] + 800571c: 681b ldr r3, [r3, #0] + 800571e: 6a1b ldr r3, [r3, #32] + 8005720: 60fb str r3, [r7, #12] + 8005722: 683b ldr r3, [r7, #0] + 8005724: 681b ldr r3, [r3, #0] + 8005726: 697a ldr r2, [r7, #20] + 8005728: 4313 orrs r3, r2 + 800572a: 617b str r3, [r7, #20] + 800572c: 693b ldr r3, [r7, #16] + 800572e: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8005732: f023 0303 bic.w r3, r3, #3 + 8005736: 613b str r3, [r7, #16] + 8005738: 683b ldr r3, [r7, #0] + 800573a: 689a ldr r2, [r3, #8] + 800573c: 683b ldr r3, [r7, #0] + 800573e: 699b ldr r3, [r3, #24] + 8005740: 021b lsls r3, r3, #8 + 8005742: 4313 orrs r3, r2 + 8005744: 693a ldr r2, [r7, #16] + 8005746: 4313 orrs r3, r2 + 8005748: 613b str r3, [r7, #16] + 800574a: 693b ldr r3, [r7, #16] + 800574c: f423 6340 bic.w r3, r3, #3072 @ 0xc00 + 8005750: f023 030c bic.w r3, r3, #12 + 8005754: 613b str r3, [r7, #16] + 8005756: 693b ldr r3, [r7, #16] + 8005758: f423 4370 bic.w r3, r3, #61440 @ 0xf000 + 800575c: f023 03f0 bic.w r3, r3, #240 @ 0xf0 + 8005760: 613b str r3, [r7, #16] + 8005762: 683b ldr r3, [r7, #0] + 8005764: 68da ldr r2, [r3, #12] + 8005766: 683b ldr r3, [r7, #0] + 8005768: 69db ldr r3, [r3, #28] + 800576a: 021b lsls r3, r3, #8 + 800576c: 4313 orrs r3, r2 + 800576e: 693a ldr r2, [r7, #16] + 8005770: 4313 orrs r3, r2 + 8005772: 613b str r3, [r7, #16] + 8005774: 683b ldr r3, [r7, #0] + 8005776: 691b ldr r3, [r3, #16] + 8005778: 011a lsls r2, r3, #4 + 800577a: 683b ldr r3, [r7, #0] + 800577c: 6a1b ldr r3, [r3, #32] + 800577e: 031b lsls r3, r3, #12 + 8005780: 4313 orrs r3, r2 + 8005782: 693a ldr r2, [r7, #16] + 8005784: 4313 orrs r3, r2 + 8005786: 613b str r3, [r7, #16] + 8005788: 68fb ldr r3, [r7, #12] + 800578a: f023 0322 bic.w r3, r3, #34 @ 0x22 + 800578e: 60fb str r3, [r7, #12] + 8005790: 68fb ldr r3, [r7, #12] + 8005792: f023 0388 bic.w r3, r3, #136 @ 0x88 + 8005796: 60fb str r3, [r7, #12] + 8005798: 683b ldr r3, [r7, #0] + 800579a: 685a ldr r2, [r3, #4] + 800579c: 683b ldr r3, [r7, #0] + 800579e: 695b ldr r3, [r3, #20] + 80057a0: 011b lsls r3, r3, #4 + 80057a2: 4313 orrs r3, r2 + 80057a4: 68fa ldr r2, [r7, #12] + 80057a6: 4313 orrs r3, r2 + 80057a8: 60fb str r3, [r7, #12] + 80057aa: 687b ldr r3, [r7, #4] + 80057ac: 681b ldr r3, [r3, #0] + 80057ae: 697a ldr r2, [r7, #20] + 80057b0: 609a str r2, [r3, #8] + 80057b2: 687b ldr r3, [r7, #4] + 80057b4: 681b ldr r3, [r3, #0] + 80057b6: 693a ldr r2, [r7, #16] + 80057b8: 619a str r2, [r3, #24] 80057ba: 687b ldr r3, [r7, #4] - 80057bc: 2b00 cmp r3, #0 - 80057be: d101 bne.n 80057c4 - { - return HAL_ERROR; - 80057c0: 2301 movs r3, #1 - 80057c2: e041 b.n 8005848 - 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) - 80057c4: 687b ldr r3, [r7, #4] - 80057c6: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 80057ca: b2db uxtb r3, r3 - 80057cc: 2b00 cmp r3, #0 - 80057ce: d106 bne.n 80057de - { - /* Allocate lock resource and initialize it */ - htim->Lock = HAL_UNLOCKED; - 80057d0: 687b ldr r3, [r7, #4] - 80057d2: 2200 movs r2, #0 - 80057d4: f883 203c strb.w r2, [r3, #60] @ 0x3c - } - /* Init the low level hardware : GPIO, CLOCK, NVIC */ - htim->PWM_MspInitCallback(htim); -#else - /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ - HAL_TIM_PWM_MspInit(htim); - 80057d8: 6878 ldr r0, [r7, #4] - 80057da: f000 f839 bl 8005850 -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - 80057de: 687b ldr r3, [r7, #4] - 80057e0: 2202 movs r2, #2 - 80057e2: f883 203d strb.w r2, [r3, #61] @ 0x3d - - /* Init the base time for the PWM */ - TIM_Base_SetConfig(htim->Instance, &htim->Init); - 80057e6: 687b ldr r3, [r7, #4] - 80057e8: 681a ldr r2, [r3, #0] + 80057bc: 681b ldr r3, [r3, #0] + 80057be: 68fa ldr r2, [r7, #12] + 80057c0: 621a str r2, [r3, #32] + 80057c2: 687b ldr r3, [r7, #4] + 80057c4: 2201 movs r2, #1 + 80057c6: f883 2046 strb.w r2, [r3, #70] @ 0x46 + 80057ca: 687b ldr r3, [r7, #4] + 80057cc: 2201 movs r2, #1 + 80057ce: f883 203e strb.w r2, [r3, #62] @ 0x3e + 80057d2: 687b ldr r3, [r7, #4] + 80057d4: 2201 movs r2, #1 + 80057d6: f883 203f strb.w r2, [r3, #63] @ 0x3f + 80057da: 687b ldr r3, [r7, #4] + 80057dc: 2201 movs r2, #1 + 80057de: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80057e2: 687b ldr r3, [r7, #4] + 80057e4: 2201 movs r2, #1 + 80057e6: f883 2043 strb.w r2, [r3, #67] @ 0x43 80057ea: 687b ldr r3, [r7, #4] - 80057ec: 3304 adds r3, #4 - 80057ee: 4619 mov r1, r3 - 80057f0: 4610 mov r0, r2 - 80057f2: f000 fb51 bl 8005e98 + 80057ec: 2201 movs r2, #1 + 80057ee: f883 203d strb.w r2, [r3, #61] @ 0x3d + 80057f2: 2300 movs r3, #0 + 80057f4: 4618 mov r0, r3 + 80057f6: 3718 adds r7, #24 + 80057f8: 46bd mov sp, r7 + 80057fa: bd80 pop {r7, pc} - /* Initialize the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - 80057f6: 687b ldr r3, [r7, #4] - 80057f8: 2201 movs r2, #1 - 80057fa: f883 2046 strb.w r2, [r3, #70] @ 0x46 - - /* Initialize the TIM channels state */ - TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 80057fe: 687b ldr r3, [r7, #4] - 8005800: 2201 movs r2, #1 - 8005802: f883 203e strb.w r2, [r3, #62] @ 0x3e +080057fc : + 80057fc: b580 push {r7, lr} + 80057fe: b084 sub sp, #16 + 8005800: af00 add r7, sp, #0 + 8005802: 6078 str r0, [r7, #4] + 8005804: 6039 str r1, [r7, #0] 8005806: 687b ldr r3, [r7, #4] - 8005808: 2201 movs r2, #1 - 800580a: f883 203f strb.w r2, [r3, #63] @ 0x3f + 8005808: f893 303e ldrb.w r3, [r3, #62] @ 0x3e + 800580c: 73fb strb r3, [r7, #15] 800580e: 687b ldr r3, [r7, #4] - 8005810: 2201 movs r2, #1 - 8005812: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 8005810: f893 303f ldrb.w r3, [r3, #63] @ 0x3f + 8005814: 73bb strb r3, [r7, #14] 8005816: 687b ldr r3, [r7, #4] - 8005818: 2201 movs r2, #1 - 800581a: f883 2041 strb.w r2, [r3, #65] @ 0x41 - TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); + 8005818: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 + 800581c: 737b strb r3, [r7, #13] 800581e: 687b ldr r3, [r7, #4] - 8005820: 2201 movs r2, #1 - 8005822: f883 2042 strb.w r2, [r3, #66] @ 0x42 - 8005826: 687b ldr r3, [r7, #4] - 8005828: 2201 movs r2, #1 - 800582a: f883 2043 strb.w r2, [r3, #67] @ 0x43 - 800582e: 687b ldr r3, [r7, #4] - 8005830: 2201 movs r2, #1 - 8005832: f883 2044 strb.w r2, [r3, #68] @ 0x44 - 8005836: 687b ldr r3, [r7, #4] - 8005838: 2201 movs r2, #1 - 800583a: f883 2045 strb.w r2, [r3, #69] @ 0x45 + 8005820: f893 3043 ldrb.w r3, [r3, #67] @ 0x43 + 8005824: 733b strb r3, [r7, #12] + 8005826: 683b ldr r3, [r7, #0] + 8005828: 2b00 cmp r3, #0 + 800582a: d110 bne.n 800584e + 800582c: 7bfb ldrb r3, [r7, #15] + 800582e: 2b01 cmp r3, #1 + 8005830: d102 bne.n 8005838 + 8005832: 7b7b ldrb r3, [r7, #13] + 8005834: 2b01 cmp r3, #1 + 8005836: d001 beq.n 800583c + 8005838: 2301 movs r3, #1 + 800583a: e069 b.n 8005910 + 800583c: 687b ldr r3, [r7, #4] + 800583e: 2202 movs r2, #2 + 8005840: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8005844: 687b ldr r3, [r7, #4] + 8005846: 2202 movs r2, #2 + 8005848: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 800584c: e031 b.n 80058b2 + 800584e: 683b ldr r3, [r7, #0] + 8005850: 2b04 cmp r3, #4 + 8005852: d110 bne.n 8005876 + 8005854: 7bbb ldrb r3, [r7, #14] + 8005856: 2b01 cmp r3, #1 + 8005858: d102 bne.n 8005860 + 800585a: 7b3b ldrb r3, [r7, #12] + 800585c: 2b01 cmp r3, #1 + 800585e: d001 beq.n 8005864 + 8005860: 2301 movs r3, #1 + 8005862: e055 b.n 8005910 + 8005864: 687b ldr r3, [r7, #4] + 8005866: 2202 movs r2, #2 + 8005868: f883 203f strb.w r2, [r3, #63] @ 0x3f + 800586c: 687b ldr r3, [r7, #4] + 800586e: 2202 movs r2, #2 + 8005870: f883 2043 strb.w r2, [r3, #67] @ 0x43 + 8005874: e01d b.n 80058b2 + 8005876: 7bfb ldrb r3, [r7, #15] + 8005878: 2b01 cmp r3, #1 + 800587a: d108 bne.n 800588e + 800587c: 7bbb ldrb r3, [r7, #14] + 800587e: 2b01 cmp r3, #1 + 8005880: d105 bne.n 800588e + 8005882: 7b7b ldrb r3, [r7, #13] + 8005884: 2b01 cmp r3, #1 + 8005886: d102 bne.n 800588e + 8005888: 7b3b ldrb r3, [r7, #12] + 800588a: 2b01 cmp r3, #1 + 800588c: d001 beq.n 8005892 + 800588e: 2301 movs r3, #1 + 8005890: e03e b.n 8005910 + 8005892: 687b ldr r3, [r7, #4] + 8005894: 2202 movs r2, #2 + 8005896: f883 203e strb.w r2, [r3, #62] @ 0x3e + 800589a: 687b ldr r3, [r7, #4] + 800589c: 2202 movs r2, #2 + 800589e: f883 203f strb.w r2, [r3, #63] @ 0x3f + 80058a2: 687b ldr r3, [r7, #4] + 80058a4: 2202 movs r2, #2 + 80058a6: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80058aa: 687b ldr r3, [r7, #4] + 80058ac: 2202 movs r2, #2 + 80058ae: f883 2043 strb.w r2, [r3, #67] @ 0x43 + 80058b2: 683b ldr r3, [r7, #0] + 80058b4: 2b00 cmp r3, #0 + 80058b6: d003 beq.n 80058c0 + 80058b8: 683b ldr r3, [r7, #0] + 80058ba: 2b04 cmp r3, #4 + 80058bc: d008 beq.n 80058d0 + 80058be: e00f b.n 80058e0 + 80058c0: 687b ldr r3, [r7, #4] + 80058c2: 681b ldr r3, [r3, #0] + 80058c4: 2201 movs r2, #1 + 80058c6: 2100 movs r1, #0 + 80058c8: 4618 mov r0, r3 + 80058ca: f000 fb99 bl 8006000 + 80058ce: e016 b.n 80058fe + 80058d0: 687b ldr r3, [r7, #4] + 80058d2: 681b ldr r3, [r3, #0] + 80058d4: 2201 movs r2, #1 + 80058d6: 2104 movs r1, #4 + 80058d8: 4618 mov r0, r3 + 80058da: f000 fb91 bl 8006000 + 80058de: e00e b.n 80058fe + 80058e0: 687b ldr r3, [r7, #4] + 80058e2: 681b ldr r3, [r3, #0] + 80058e4: 2201 movs r2, #1 + 80058e6: 2100 movs r1, #0 + 80058e8: 4618 mov r0, r3 + 80058ea: f000 fb89 bl 8006000 + 80058ee: 687b ldr r3, [r7, #4] + 80058f0: 681b ldr r3, [r3, #0] + 80058f2: 2201 movs r2, #1 + 80058f4: 2104 movs r1, #4 + 80058f6: 4618 mov r0, r3 + 80058f8: f000 fb82 bl 8006000 + 80058fc: bf00 nop + 80058fe: 687b ldr r3, [r7, #4] + 8005900: 681b ldr r3, [r3, #0] + 8005902: 681a ldr r2, [r3, #0] + 8005904: 687b ldr r3, [r7, #4] + 8005906: 681b ldr r3, [r3, #0] + 8005908: f042 0201 orr.w r2, r2, #1 + 800590c: 601a str r2, [r3, #0] + 800590e: 2300 movs r3, #0 + 8005910: 4618 mov r0, r3 + 8005912: 3710 adds r7, #16 + 8005914: 46bd mov sp, r7 + 8005916: bd80 pop {r7, pc} - /* Initialize the TIM state*/ - htim->State = HAL_TIM_STATE_READY; - 800583e: 687b ldr r3, [r7, #4] - 8005840: 2201 movs r2, #1 - 8005842: f883 203d strb.w r2, [r3, #61] @ 0x3d +08005918 : + 8005918: b580 push {r7, lr} + 800591a: b086 sub sp, #24 + 800591c: af00 add r7, sp, #0 + 800591e: 60f8 str r0, [r7, #12] + 8005920: 60b9 str r1, [r7, #8] + 8005922: 607a str r2, [r7, #4] + 8005924: 2300 movs r3, #0 + 8005926: 75fb strb r3, [r7, #23] + 8005928: 68fb ldr r3, [r7, #12] + 800592a: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 800592e: 2b01 cmp r3, #1 + 8005930: d101 bne.n 8005936 + 8005932: 2302 movs r3, #2 + 8005934: e048 b.n 80059c8 + 8005936: 68fb ldr r3, [r7, #12] + 8005938: 2201 movs r2, #1 + 800593a: f883 203c strb.w r2, [r3, #60] @ 0x3c + 800593e: 687b ldr r3, [r7, #4] + 8005940: 2b0c cmp r3, #12 + 8005942: d839 bhi.n 80059b8 + 8005944: a201 add r2, pc, #4 @ (adr r2, 800594c ) + 8005946: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800594a: bf00 nop + 800594c: 08005981 .word 0x08005981 + 8005950: 080059b9 .word 0x080059b9 + 8005954: 080059b9 .word 0x080059b9 + 8005958: 080059b9 .word 0x080059b9 + 800595c: 0800598f .word 0x0800598f + 8005960: 080059b9 .word 0x080059b9 + 8005964: 080059b9 .word 0x080059b9 + 8005968: 080059b9 .word 0x080059b9 + 800596c: 0800599d .word 0x0800599d + 8005970: 080059b9 .word 0x080059b9 + 8005974: 080059b9 .word 0x080059b9 + 8005978: 080059b9 .word 0x080059b9 + 800597c: 080059ab .word 0x080059ab + 8005980: 68fb ldr r3, [r7, #12] + 8005982: 681b ldr r3, [r3, #0] + 8005984: 68b9 ldr r1, [r7, #8] + 8005986: 4618 mov r0, r3 + 8005988: f000 f98a bl 8005ca0 + 800598c: e017 b.n 80059be + 800598e: 68fb ldr r3, [r7, #12] + 8005990: 681b ldr r3, [r3, #0] + 8005992: 68b9 ldr r1, [r7, #8] + 8005994: 4618 mov r0, r3 + 8005996: f000 f9f3 bl 8005d80 + 800599a: e010 b.n 80059be + 800599c: 68fb ldr r3, [r7, #12] + 800599e: 681b ldr r3, [r3, #0] + 80059a0: 68b9 ldr r1, [r7, #8] + 80059a2: 4618 mov r0, r3 + 80059a4: f000 fa62 bl 8005e6c + 80059a8: e009 b.n 80059be + 80059aa: 68fb ldr r3, [r7, #12] + 80059ac: 681b ldr r3, [r3, #0] + 80059ae: 68b9 ldr r1, [r7, #8] + 80059b0: 4618 mov r0, r3 + 80059b2: f000 facf bl 8005f54 + 80059b6: e002 b.n 80059be + 80059b8: 2301 movs r3, #1 + 80059ba: 75fb strb r3, [r7, #23] + 80059bc: bf00 nop + 80059be: 68fb ldr r3, [r7, #12] + 80059c0: 2200 movs r2, #0 + 80059c2: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80059c6: 7dfb ldrb r3, [r7, #23] + 80059c8: 4618 mov r0, r3 + 80059ca: 3718 adds r7, #24 + 80059cc: 46bd mov sp, r7 + 80059ce: bd80 pop {r7, pc} - return HAL_OK; - 8005846: 2300 movs r3, #0 -} - 8005848: 4618 mov r0, r3 - 800584a: 3708 adds r7, #8 - 800584c: 46bd mov sp, r7 - 800584e: bd80 pop {r7, pc} - -08005850 : - * @brief Initializes the TIM PWM MSP. - * @param htim TIM PWM handle - * @retval None - */ -__weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim) -{ - 8005850: b480 push {r7} - 8005852: b083 sub sp, #12 - 8005854: af00 add r7, sp, #0 - 8005856: 6078 str r0, [r7, #4] - UNUSED(htim); - - /* NOTE : This function should not be modified, when the callback is needed, - the HAL_TIM_PWM_MspInit could be implemented in the user file - */ -} - 8005858: bf00 nop - 800585a: 370c adds r7, #12 - 800585c: 46bd mov sp, r7 - 800585e: f85d 7b04 ldr.w r7, [sp], #4 - 8005862: 4770 bx lr - -08005864 : - * @arg TIM_CHANNEL_3: TIM Channel 3 selected - * @arg TIM_CHANNEL_4: TIM Channel 4 selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - 8005864: b580 push {r7, lr} - 8005866: b084 sub sp, #16 - 8005868: af00 add r7, sp, #0 - 800586a: 6078 str r0, [r7, #4] - 800586c: 6039 str r1, [r7, #0] - - /* Check the parameters */ - assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); - - /* Check the TIM channel state */ - if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) - 800586e: 683b ldr r3, [r7, #0] - 8005870: 2b00 cmp r3, #0 - 8005872: d109 bne.n 8005888 - 8005874: 687b ldr r3, [r7, #4] - 8005876: f893 303e ldrb.w r3, [r3, #62] @ 0x3e - 800587a: b2db uxtb r3, r3 - 800587c: 2b01 cmp r3, #1 - 800587e: bf14 ite ne - 8005880: 2301 movne r3, #1 - 8005882: 2300 moveq r3, #0 - 8005884: b2db uxtb r3, r3 - 8005886: e022 b.n 80058ce - 8005888: 683b ldr r3, [r7, #0] - 800588a: 2b04 cmp r3, #4 - 800588c: d109 bne.n 80058a2 - 800588e: 687b ldr r3, [r7, #4] - 8005890: f893 303f ldrb.w r3, [r3, #63] @ 0x3f - 8005894: b2db uxtb r3, r3 - 8005896: 2b01 cmp r3, #1 - 8005898: bf14 ite ne - 800589a: 2301 movne r3, #1 - 800589c: 2300 moveq r3, #0 - 800589e: b2db uxtb r3, r3 - 80058a0: e015 b.n 80058ce - 80058a2: 683b ldr r3, [r7, #0] - 80058a4: 2b08 cmp r3, #8 - 80058a6: d109 bne.n 80058bc - 80058a8: 687b ldr r3, [r7, #4] - 80058aa: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 - 80058ae: b2db uxtb r3, r3 - 80058b0: 2b01 cmp r3, #1 - 80058b2: bf14 ite ne - 80058b4: 2301 movne r3, #1 - 80058b6: 2300 moveq r3, #0 - 80058b8: b2db uxtb r3, r3 - 80058ba: e008 b.n 80058ce - 80058bc: 687b ldr r3, [r7, #4] - 80058be: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 80058c2: b2db uxtb r3, r3 - 80058c4: 2b01 cmp r3, #1 - 80058c6: bf14 ite ne - 80058c8: 2301 movne r3, #1 - 80058ca: 2300 moveq r3, #0 - 80058cc: b2db uxtb r3, r3 - 80058ce: 2b00 cmp r3, #0 - 80058d0: d001 beq.n 80058d6 - { - return HAL_ERROR; - 80058d2: 2301 movs r3, #1 - 80058d4: e07c b.n 80059d0 - } - - /* Set the TIM channel state */ - TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - 80058d6: 683b ldr r3, [r7, #0] - 80058d8: 2b00 cmp r3, #0 - 80058da: d104 bne.n 80058e6 - 80058dc: 687b ldr r3, [r7, #4] - 80058de: 2202 movs r2, #2 - 80058e0: f883 203e strb.w r2, [r3, #62] @ 0x3e - 80058e4: e013 b.n 800590e - 80058e6: 683b ldr r3, [r7, #0] - 80058e8: 2b04 cmp r3, #4 - 80058ea: d104 bne.n 80058f6 - 80058ec: 687b ldr r3, [r7, #4] - 80058ee: 2202 movs r2, #2 - 80058f0: f883 203f strb.w r2, [r3, #63] @ 0x3f - 80058f4: e00b b.n 800590e - 80058f6: 683b ldr r3, [r7, #0] - 80058f8: 2b08 cmp r3, #8 - 80058fa: d104 bne.n 8005906 - 80058fc: 687b ldr r3, [r7, #4] - 80058fe: 2202 movs r2, #2 - 8005900: f883 2040 strb.w r2, [r3, #64] @ 0x40 - 8005904: e003 b.n 800590e - 8005906: 687b ldr r3, [r7, #4] - 8005908: 2202 movs r2, #2 - 800590a: f883 2041 strb.w r2, [r3, #65] @ 0x41 - - /* Enable the Capture compare channel */ - TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - 800590e: 687b ldr r3, [r7, #4] - 8005910: 681b ldr r3, [r3, #0] - 8005912: 2201 movs r2, #1 - 8005914: 6839 ldr r1, [r7, #0] - 8005916: 4618 mov r0, r3 - 8005918: f000 fd14 bl 8006344 - - if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - 800591c: 687b ldr r3, [r7, #4] - 800591e: 681b ldr r3, [r3, #0] - 8005920: 4a2d ldr r2, [pc, #180] @ (80059d8 ) - 8005922: 4293 cmp r3, r2 - 8005924: d004 beq.n 8005930 - 8005926: 687b ldr r3, [r7, #4] - 8005928: 681b ldr r3, [r3, #0] - 800592a: 4a2c ldr r2, [pc, #176] @ (80059dc ) - 800592c: 4293 cmp r3, r2 - 800592e: d101 bne.n 8005934 - 8005930: 2301 movs r3, #1 - 8005932: e000 b.n 8005936 - 8005934: 2300 movs r3, #0 - 8005936: 2b00 cmp r3, #0 - 8005938: d007 beq.n 800594a - { - /* Enable the main output */ - __HAL_TIM_MOE_ENABLE(htim); - 800593a: 687b ldr r3, [r7, #4] - 800593c: 681b ldr r3, [r3, #0] - 800593e: 6c5a ldr r2, [r3, #68] @ 0x44 - 8005940: 687b ldr r3, [r7, #4] - 8005942: 681b ldr r3, [r3, #0] - 8005944: f442 4200 orr.w r2, r2, #32768 @ 0x8000 - 8005948: 645a str r2, [r3, #68] @ 0x44 - } - - /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - 800594a: 687b ldr r3, [r7, #4] - 800594c: 681b ldr r3, [r3, #0] - 800594e: 4a22 ldr r2, [pc, #136] @ (80059d8 ) - 8005950: 4293 cmp r3, r2 - 8005952: d022 beq.n 800599a - 8005954: 687b ldr r3, [r7, #4] - 8005956: 681b ldr r3, [r3, #0] - 8005958: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 800595c: d01d beq.n 800599a - 800595e: 687b ldr r3, [r7, #4] - 8005960: 681b ldr r3, [r3, #0] - 8005962: 4a1f ldr r2, [pc, #124] @ (80059e0 ) - 8005964: 4293 cmp r3, r2 - 8005966: d018 beq.n 800599a - 8005968: 687b ldr r3, [r7, #4] - 800596a: 681b ldr r3, [r3, #0] - 800596c: 4a1d ldr r2, [pc, #116] @ (80059e4 ) - 800596e: 4293 cmp r3, r2 - 8005970: d013 beq.n 800599a - 8005972: 687b ldr r3, [r7, #4] - 8005974: 681b ldr r3, [r3, #0] - 8005976: 4a1c ldr r2, [pc, #112] @ (80059e8 ) - 8005978: 4293 cmp r3, r2 - 800597a: d00e beq.n 800599a - 800597c: 687b ldr r3, [r7, #4] - 800597e: 681b ldr r3, [r3, #0] - 8005980: 4a16 ldr r2, [pc, #88] @ (80059dc ) - 8005982: 4293 cmp r3, r2 - 8005984: d009 beq.n 800599a - 8005986: 687b ldr r3, [r7, #4] - 8005988: 681b ldr r3, [r3, #0] - 800598a: 4a18 ldr r2, [pc, #96] @ (80059ec ) - 800598c: 4293 cmp r3, r2 - 800598e: d004 beq.n 800599a - 8005990: 687b ldr r3, [r7, #4] - 8005992: 681b ldr r3, [r3, #0] - 8005994: 4a16 ldr r2, [pc, #88] @ (80059f0 ) - 8005996: 4293 cmp r3, r2 - 8005998: d111 bne.n 80059be - { - tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - 800599a: 687b ldr r3, [r7, #4] - 800599c: 681b ldr r3, [r3, #0] - 800599e: 689b ldr r3, [r3, #8] - 80059a0: f003 0307 and.w r3, r3, #7 - 80059a4: 60fb str r3, [r7, #12] - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - 80059a6: 68fb ldr r3, [r7, #12] - 80059a8: 2b06 cmp r3, #6 - 80059aa: d010 beq.n 80059ce - { - __HAL_TIM_ENABLE(htim); - 80059ac: 687b ldr r3, [r7, #4] - 80059ae: 681b ldr r3, [r3, #0] - 80059b0: 681a ldr r2, [r3, #0] - 80059b2: 687b ldr r3, [r7, #4] - 80059b4: 681b ldr r3, [r3, #0] - 80059b6: f042 0201 orr.w r2, r2, #1 - 80059ba: 601a str r2, [r3, #0] - if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - 80059bc: e007 b.n 80059ce - } - } - else - { - __HAL_TIM_ENABLE(htim); - 80059be: 687b ldr r3, [r7, #4] - 80059c0: 681b ldr r3, [r3, #0] - 80059c2: 681a ldr r2, [r3, #0] - 80059c4: 687b ldr r3, [r7, #4] - 80059c6: 681b ldr r3, [r3, #0] - 80059c8: f042 0201 orr.w r2, r2, #1 - 80059cc: 601a str r2, [r3, #0] - } - - /* Return function status */ - return HAL_OK; - 80059ce: 2300 movs r3, #0 -} - 80059d0: 4618 mov r0, r3 - 80059d2: 3710 adds r7, #16 - 80059d4: 46bd mov sp, r7 - 80059d6: bd80 pop {r7, pc} - 80059d8: 40010000 .word 0x40010000 - 80059dc: 40010400 .word 0x40010400 - 80059e0: 40000400 .word 0x40000400 - 80059e4: 40000800 .word 0x40000800 - 80059e8: 40000c00 .word 0x40000c00 - 80059ec: 40014000 .word 0x40014000 - 80059f0: 40001800 .word 0x40001800 - -080059f4 : - * @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) -{ - 80059f4: b580 push {r7, lr} - 80059f6: b086 sub sp, #24 - 80059f8: af00 add r7, sp, #0 - 80059fa: 6078 str r0, [r7, #4] - 80059fc: 6039 str r1, [r7, #0] - uint32_t tmpsmcr; - uint32_t tmpccmr1; - uint32_t tmpccer; - - /* Check the TIM handle allocation */ - if (htim == NULL) - 80059fe: 687b ldr r3, [r7, #4] - 8005a00: 2b00 cmp r3, #0 - 8005a02: d101 bne.n 8005a08 - { - return HAL_ERROR; - 8005a04: 2301 movs r3, #1 - 8005a06: e097 b.n 8005b38 - 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) - 8005a08: 687b ldr r3, [r7, #4] - 8005a0a: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 8005a0e: b2db uxtb r3, r3 - 8005a10: 2b00 cmp r3, #0 - 8005a12: d106 bne.n 8005a22 - { - /* Allocate lock resource and initialize it */ - htim->Lock = HAL_UNLOCKED; - 8005a14: 687b ldr r3, [r7, #4] - 8005a16: 2200 movs r2, #0 - 8005a18: 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); - 8005a1c: 6878 ldr r0, [r7, #4] - 8005a1e: f7fb fe19 bl 8001654 -#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ - } - - /* Set the TIM state */ - htim->State = HAL_TIM_STATE_BUSY; - 8005a22: 687b ldr r3, [r7, #4] - 8005a24: 2202 movs r2, #2 - 8005a26: f883 203d strb.w r2, [r3, #61] @ 0x3d - - /* Reset the SMS and ECE bits */ - htim->Instance->SMCR &= ~(TIM_SMCR_SMS | TIM_SMCR_ECE); - 8005a2a: 687b ldr r3, [r7, #4] - 8005a2c: 681b ldr r3, [r3, #0] - 8005a2e: 689b ldr r3, [r3, #8] - 8005a30: 687a ldr r2, [r7, #4] - 8005a32: 6812 ldr r2, [r2, #0] - 8005a34: f423 4380 bic.w r3, r3, #16384 @ 0x4000 - 8005a38: f023 0307 bic.w r3, r3, #7 - 8005a3c: 6093 str r3, [r2, #8] - - /* Configure the Time base in the Encoder Mode */ - TIM_Base_SetConfig(htim->Instance, &htim->Init); - 8005a3e: 687b ldr r3, [r7, #4] - 8005a40: 681a ldr r2, [r3, #0] - 8005a42: 687b ldr r3, [r7, #4] - 8005a44: 3304 adds r3, #4 - 8005a46: 4619 mov r1, r3 - 8005a48: 4610 mov r0, r2 - 8005a4a: f000 fa25 bl 8005e98 - - /* Get the TIMx SMCR register value */ - tmpsmcr = htim->Instance->SMCR; - 8005a4e: 687b ldr r3, [r7, #4] - 8005a50: 681b ldr r3, [r3, #0] - 8005a52: 689b ldr r3, [r3, #8] - 8005a54: 617b str r3, [r7, #20] - - /* Get the TIMx CCMR1 register value */ - tmpccmr1 = htim->Instance->CCMR1; - 8005a56: 687b ldr r3, [r7, #4] - 8005a58: 681b ldr r3, [r3, #0] - 8005a5a: 699b ldr r3, [r3, #24] - 8005a5c: 613b str r3, [r7, #16] - - /* Get the TIMx CCER register value */ - tmpccer = htim->Instance->CCER; - 8005a5e: 687b ldr r3, [r7, #4] - 8005a60: 681b ldr r3, [r3, #0] - 8005a62: 6a1b ldr r3, [r3, #32] - 8005a64: 60fb str r3, [r7, #12] - - /* Set the encoder Mode */ - tmpsmcr |= sConfig->EncoderMode; - 8005a66: 683b ldr r3, [r7, #0] - 8005a68: 681b ldr r3, [r3, #0] - 8005a6a: 697a ldr r2, [r7, #20] - 8005a6c: 4313 orrs r3, r2 - 8005a6e: 617b str r3, [r7, #20] - - /* Select the Capture Compare 1 and the Capture Compare 2 as input */ - tmpccmr1 &= ~(TIM_CCMR1_CC1S | TIM_CCMR1_CC2S); - 8005a70: 693b ldr r3, [r7, #16] - 8005a72: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8005a76: f023 0303 bic.w r3, r3, #3 - 8005a7a: 613b str r3, [r7, #16] - tmpccmr1 |= (sConfig->IC1Selection | (sConfig->IC2Selection << 8U)); - 8005a7c: 683b ldr r3, [r7, #0] - 8005a7e: 689a ldr r2, [r3, #8] - 8005a80: 683b ldr r3, [r7, #0] - 8005a82: 699b ldr r3, [r3, #24] - 8005a84: 021b lsls r3, r3, #8 - 8005a86: 4313 orrs r3, r2 - 8005a88: 693a ldr r2, [r7, #16] - 8005a8a: 4313 orrs r3, r2 - 8005a8c: 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); - 8005a8e: 693b ldr r3, [r7, #16] - 8005a90: f423 6340 bic.w r3, r3, #3072 @ 0xc00 - 8005a94: f023 030c bic.w r3, r3, #12 - 8005a98: 613b str r3, [r7, #16] - tmpccmr1 &= ~(TIM_CCMR1_IC1F | TIM_CCMR1_IC2F); - 8005a9a: 693b ldr r3, [r7, #16] - 8005a9c: f423 4370 bic.w r3, r3, #61440 @ 0xf000 - 8005aa0: f023 03f0 bic.w r3, r3, #240 @ 0xf0 - 8005aa4: 613b str r3, [r7, #16] - tmpccmr1 |= sConfig->IC1Prescaler | (sConfig->IC2Prescaler << 8U); - 8005aa6: 683b ldr r3, [r7, #0] - 8005aa8: 68da ldr r2, [r3, #12] - 8005aaa: 683b ldr r3, [r7, #0] - 8005aac: 69db ldr r3, [r3, #28] - 8005aae: 021b lsls r3, r3, #8 - 8005ab0: 4313 orrs r3, r2 - 8005ab2: 693a ldr r2, [r7, #16] - 8005ab4: 4313 orrs r3, r2 - 8005ab6: 613b str r3, [r7, #16] - tmpccmr1 |= (sConfig->IC1Filter << 4U) | (sConfig->IC2Filter << 12U); - 8005ab8: 683b ldr r3, [r7, #0] - 8005aba: 691b ldr r3, [r3, #16] - 8005abc: 011a lsls r2, r3, #4 - 8005abe: 683b ldr r3, [r7, #0] - 8005ac0: 6a1b ldr r3, [r3, #32] - 8005ac2: 031b lsls r3, r3, #12 - 8005ac4: 4313 orrs r3, r2 - 8005ac6: 693a ldr r2, [r7, #16] - 8005ac8: 4313 orrs r3, r2 - 8005aca: 613b str r3, [r7, #16] - - /* Set the TI1 and the TI2 Polarities */ - tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC2P); +080059d0 : + 80059d0: b580 push {r7, lr} + 80059d2: b086 sub sp, #24 + 80059d4: af00 add r7, sp, #0 + 80059d6: 60f8 str r0, [r7, #12] + 80059d8: 60b9 str r1, [r7, #8] + 80059da: 607a str r2, [r7, #4] + 80059dc: 2300 movs r3, #0 + 80059de: 75fb strb r3, [r7, #23] + 80059e0: 68fb ldr r3, [r7, #12] + 80059e2: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 80059e6: 2b01 cmp r3, #1 + 80059e8: d101 bne.n 80059ee + 80059ea: 2302 movs r3, #2 + 80059ec: e0ae b.n 8005b4c + 80059ee: 68fb ldr r3, [r7, #12] + 80059f0: 2201 movs r2, #1 + 80059f2: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80059f6: 687b ldr r3, [r7, #4] + 80059f8: 2b0c cmp r3, #12 + 80059fa: f200 809f bhi.w 8005b3c + 80059fe: a201 add r2, pc, #4 @ (adr r2, 8005a04 ) + 8005a00: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8005a04: 08005a39 .word 0x08005a39 + 8005a08: 08005b3d .word 0x08005b3d + 8005a0c: 08005b3d .word 0x08005b3d + 8005a10: 08005b3d .word 0x08005b3d + 8005a14: 08005a79 .word 0x08005a79 + 8005a18: 08005b3d .word 0x08005b3d + 8005a1c: 08005b3d .word 0x08005b3d + 8005a20: 08005b3d .word 0x08005b3d + 8005a24: 08005abb .word 0x08005abb + 8005a28: 08005b3d .word 0x08005b3d + 8005a2c: 08005b3d .word 0x08005b3d + 8005a30: 08005b3d .word 0x08005b3d + 8005a34: 08005afb .word 0x08005afb + 8005a38: 68fb ldr r3, [r7, #12] + 8005a3a: 681b ldr r3, [r3, #0] + 8005a3c: 68b9 ldr r1, [r7, #8] + 8005a3e: 4618 mov r0, r3 + 8005a40: f000 f92e bl 8005ca0 + 8005a44: 68fb ldr r3, [r7, #12] + 8005a46: 681b ldr r3, [r3, #0] + 8005a48: 699a ldr r2, [r3, #24] + 8005a4a: 68fb ldr r3, [r7, #12] + 8005a4c: 681b ldr r3, [r3, #0] + 8005a4e: f042 0208 orr.w r2, r2, #8 + 8005a52: 619a str r2, [r3, #24] + 8005a54: 68fb ldr r3, [r7, #12] + 8005a56: 681b ldr r3, [r3, #0] + 8005a58: 699a ldr r2, [r3, #24] + 8005a5a: 68fb ldr r3, [r7, #12] + 8005a5c: 681b ldr r3, [r3, #0] + 8005a5e: f022 0204 bic.w r2, r2, #4 + 8005a62: 619a str r2, [r3, #24] + 8005a64: 68fb ldr r3, [r7, #12] + 8005a66: 681b ldr r3, [r3, #0] + 8005a68: 6999 ldr r1, [r3, #24] + 8005a6a: 68bb ldr r3, [r7, #8] + 8005a6c: 691a ldr r2, [r3, #16] + 8005a6e: 68fb ldr r3, [r7, #12] + 8005a70: 681b ldr r3, [r3, #0] + 8005a72: 430a orrs r2, r1 + 8005a74: 619a str r2, [r3, #24] + 8005a76: e064 b.n 8005b42 + 8005a78: 68fb ldr r3, [r7, #12] + 8005a7a: 681b ldr r3, [r3, #0] + 8005a7c: 68b9 ldr r1, [r7, #8] + 8005a7e: 4618 mov r0, r3 + 8005a80: f000 f97e bl 8005d80 + 8005a84: 68fb ldr r3, [r7, #12] + 8005a86: 681b ldr r3, [r3, #0] + 8005a88: 699a ldr r2, [r3, #24] + 8005a8a: 68fb ldr r3, [r7, #12] + 8005a8c: 681b ldr r3, [r3, #0] + 8005a8e: f442 6200 orr.w r2, r2, #2048 @ 0x800 + 8005a92: 619a str r2, [r3, #24] + 8005a94: 68fb ldr r3, [r7, #12] + 8005a96: 681b ldr r3, [r3, #0] + 8005a98: 699a ldr r2, [r3, #24] + 8005a9a: 68fb ldr r3, [r7, #12] + 8005a9c: 681b ldr r3, [r3, #0] + 8005a9e: f422 6280 bic.w r2, r2, #1024 @ 0x400 + 8005aa2: 619a str r2, [r3, #24] + 8005aa4: 68fb ldr r3, [r7, #12] + 8005aa6: 681b ldr r3, [r3, #0] + 8005aa8: 6999 ldr r1, [r3, #24] + 8005aaa: 68bb ldr r3, [r7, #8] + 8005aac: 691b ldr r3, [r3, #16] + 8005aae: 021a lsls r2, r3, #8 + 8005ab0: 68fb ldr r3, [r7, #12] + 8005ab2: 681b ldr r3, [r3, #0] + 8005ab4: 430a orrs r2, r1 + 8005ab6: 619a str r2, [r3, #24] + 8005ab8: e043 b.n 8005b42 + 8005aba: 68fb ldr r3, [r7, #12] + 8005abc: 681b ldr r3, [r3, #0] + 8005abe: 68b9 ldr r1, [r7, #8] + 8005ac0: 4618 mov r0, r3 + 8005ac2: f000 f9d3 bl 8005e6c + 8005ac6: 68fb ldr r3, [r7, #12] + 8005ac8: 681b ldr r3, [r3, #0] + 8005aca: 69da ldr r2, [r3, #28] 8005acc: 68fb ldr r3, [r7, #12] - 8005ace: f023 0322 bic.w r3, r3, #34 @ 0x22 - 8005ad2: 60fb str r3, [r7, #12] - tmpccer &= ~(TIM_CCER_CC1NP | TIM_CCER_CC2NP); - 8005ad4: 68fb ldr r3, [r7, #12] - 8005ad6: f023 0388 bic.w r3, r3, #136 @ 0x88 - 8005ada: 60fb str r3, [r7, #12] - tmpccer |= sConfig->IC1Polarity | (sConfig->IC2Polarity << 4U); - 8005adc: 683b ldr r3, [r7, #0] - 8005ade: 685a ldr r2, [r3, #4] - 8005ae0: 683b ldr r3, [r7, #0] - 8005ae2: 695b ldr r3, [r3, #20] - 8005ae4: 011b lsls r3, r3, #4 - 8005ae6: 4313 orrs r3, r2 - 8005ae8: 68fa ldr r2, [r7, #12] - 8005aea: 4313 orrs r3, r2 - 8005aec: 60fb str r3, [r7, #12] + 8005ace: 681b ldr r3, [r3, #0] + 8005ad0: f042 0208 orr.w r2, r2, #8 + 8005ad4: 61da str r2, [r3, #28] + 8005ad6: 68fb ldr r3, [r7, #12] + 8005ad8: 681b ldr r3, [r3, #0] + 8005ada: 69da ldr r2, [r3, #28] + 8005adc: 68fb ldr r3, [r7, #12] + 8005ade: 681b ldr r3, [r3, #0] + 8005ae0: f022 0204 bic.w r2, r2, #4 + 8005ae4: 61da str r2, [r3, #28] + 8005ae6: 68fb ldr r3, [r7, #12] + 8005ae8: 681b ldr r3, [r3, #0] + 8005aea: 69d9 ldr r1, [r3, #28] + 8005aec: 68bb ldr r3, [r7, #8] + 8005aee: 691a ldr r2, [r3, #16] + 8005af0: 68fb ldr r3, [r7, #12] + 8005af2: 681b ldr r3, [r3, #0] + 8005af4: 430a orrs r2, r1 + 8005af6: 61da str r2, [r3, #28] + 8005af8: e023 b.n 8005b42 + 8005afa: 68fb ldr r3, [r7, #12] + 8005afc: 681b ldr r3, [r3, #0] + 8005afe: 68b9 ldr r1, [r7, #8] + 8005b00: 4618 mov r0, r3 + 8005b02: f000 fa27 bl 8005f54 + 8005b06: 68fb ldr r3, [r7, #12] + 8005b08: 681b ldr r3, [r3, #0] + 8005b0a: 69da ldr r2, [r3, #28] + 8005b0c: 68fb ldr r3, [r7, #12] + 8005b0e: 681b ldr r3, [r3, #0] + 8005b10: f442 6200 orr.w r2, r2, #2048 @ 0x800 + 8005b14: 61da str r2, [r3, #28] + 8005b16: 68fb ldr r3, [r7, #12] + 8005b18: 681b ldr r3, [r3, #0] + 8005b1a: 69da ldr r2, [r3, #28] + 8005b1c: 68fb ldr r3, [r7, #12] + 8005b1e: 681b ldr r3, [r3, #0] + 8005b20: f422 6280 bic.w r2, r2, #1024 @ 0x400 + 8005b24: 61da str r2, [r3, #28] + 8005b26: 68fb ldr r3, [r7, #12] + 8005b28: 681b ldr r3, [r3, #0] + 8005b2a: 69d9 ldr r1, [r3, #28] + 8005b2c: 68bb ldr r3, [r7, #8] + 8005b2e: 691b ldr r3, [r3, #16] + 8005b30: 021a lsls r2, r3, #8 + 8005b32: 68fb ldr r3, [r7, #12] + 8005b34: 681b ldr r3, [r3, #0] + 8005b36: 430a orrs r2, r1 + 8005b38: 61da str r2, [r3, #28] + 8005b3a: e002 b.n 8005b42 + 8005b3c: 2301 movs r3, #1 + 8005b3e: 75fb strb r3, [r7, #23] + 8005b40: bf00 nop + 8005b42: 68fb ldr r3, [r7, #12] + 8005b44: 2200 movs r2, #0 + 8005b46: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005b4a: 7dfb ldrb r3, [r7, #23] + 8005b4c: 4618 mov r0, r3 + 8005b4e: 3718 adds r7, #24 + 8005b50: 46bd mov sp, r7 + 8005b52: bd80 pop {r7, pc} - /* Write to TIMx SMCR */ - htim->Instance->SMCR = tmpsmcr; - 8005aee: 687b ldr r3, [r7, #4] - 8005af0: 681b ldr r3, [r3, #0] - 8005af2: 697a ldr r2, [r7, #20] - 8005af4: 609a str r2, [r3, #8] - - /* Write to TIMx CCMR1 */ - htim->Instance->CCMR1 = tmpccmr1; - 8005af6: 687b ldr r3, [r7, #4] - 8005af8: 681b ldr r3, [r3, #0] - 8005afa: 693a ldr r2, [r7, #16] - 8005afc: 619a str r2, [r3, #24] - - /* Write to TIMx CCER */ - htim->Instance->CCER = tmpccer; - 8005afe: 687b ldr r3, [r7, #4] - 8005b00: 681b ldr r3, [r3, #0] - 8005b02: 68fa ldr r2, [r7, #12] - 8005b04: 621a str r2, [r3, #32] - - /* Initialize the DMA burst operation state */ - htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - 8005b06: 687b ldr r3, [r7, #4] - 8005b08: 2201 movs r2, #1 - 8005b0a: 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); - 8005b0e: 687b ldr r3, [r7, #4] - 8005b10: 2201 movs r2, #1 - 8005b12: f883 203e strb.w r2, [r3, #62] @ 0x3e - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - 8005b16: 687b ldr r3, [r7, #4] - 8005b18: 2201 movs r2, #1 - 8005b1a: f883 203f strb.w r2, [r3, #63] @ 0x3f - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - 8005b1e: 687b ldr r3, [r7, #4] - 8005b20: 2201 movs r2, #1 - 8005b22: f883 2042 strb.w r2, [r3, #66] @ 0x42 - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - 8005b26: 687b ldr r3, [r7, #4] - 8005b28: 2201 movs r2, #1 - 8005b2a: f883 2043 strb.w r2, [r3, #67] @ 0x43 - - /* Initialize the TIM state*/ - htim->State = HAL_TIM_STATE_READY; - 8005b2e: 687b ldr r3, [r7, #4] - 8005b30: 2201 movs r2, #1 - 8005b32: f883 203d strb.w r2, [r3, #61] @ 0x3d - - return HAL_OK; - 8005b36: 2300 movs r3, #0 -} - 8005b38: 4618 mov r0, r3 - 8005b3a: 3718 adds r7, #24 - 8005b3c: 46bd mov sp, r7 - 8005b3e: bd80 pop {r7, pc} - -08005b40 : - * @arg TIM_CHANNEL_2: TIM Channel 2 selected - * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_Encoder_Start(TIM_HandleTypeDef *htim, uint32_t Channel) -{ - 8005b40: b580 push {r7, lr} - 8005b42: b084 sub sp, #16 - 8005b44: af00 add r7, sp, #0 - 8005b46: 6078 str r0, [r7, #4] - 8005b48: 6039 str r1, [r7, #0] - HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); - 8005b4a: 687b ldr r3, [r7, #4] - 8005b4c: f893 303e ldrb.w r3, [r3, #62] @ 0x3e - 8005b50: 73fb strb r3, [r7, #15] - HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); - 8005b52: 687b ldr r3, [r7, #4] - 8005b54: f893 303f ldrb.w r3, [r3, #63] @ 0x3f - 8005b58: 73bb strb r3, [r7, #14] - HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); - 8005b5a: 687b ldr r3, [r7, #4] - 8005b5c: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 - 8005b60: 737b strb r3, [r7, #13] - HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); - 8005b62: 687b ldr r3, [r7, #4] - 8005b64: f893 3043 ldrb.w r3, [r3, #67] @ 0x43 - 8005b68: 733b strb r3, [r7, #12] - - /* Check the parameters */ - assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); - - /* Set the TIM channel(s) state */ - if (Channel == TIM_CHANNEL_1) - 8005b6a: 683b ldr r3, [r7, #0] - 8005b6c: 2b00 cmp r3, #0 - 8005b6e: d110 bne.n 8005b92 - { - if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - 8005b70: 7bfb ldrb r3, [r7, #15] - 8005b72: 2b01 cmp r3, #1 - 8005b74: d102 bne.n 8005b7c - || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY)) - 8005b76: 7b7b ldrb r3, [r7, #13] - 8005b78: 2b01 cmp r3, #1 - 8005b7a: d001 beq.n 8005b80 - { - return HAL_ERROR; - 8005b7c: 2301 movs r3, #1 - 8005b7e: e069 b.n 8005c54 - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - 8005b80: 687b ldr r3, [r7, #4] - 8005b82: 2202 movs r2, #2 - 8005b84: f883 203e strb.w r2, [r3, #62] @ 0x3e - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - 8005b88: 687b ldr r3, [r7, #4] - 8005b8a: 2202 movs r2, #2 - 8005b8c: f883 2042 strb.w r2, [r3, #66] @ 0x42 - 8005b90: e031 b.n 8005bf6 - } - } - else if (Channel == TIM_CHANNEL_2) - 8005b92: 683b ldr r3, [r7, #0] - 8005b94: 2b04 cmp r3, #4 - 8005b96: d110 bne.n 8005bba - { - if ((channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - 8005b98: 7bbb ldrb r3, [r7, #14] - 8005b9a: 2b01 cmp r3, #1 - 8005b9c: d102 bne.n 8005ba4 - || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - 8005b9e: 7b3b ldrb r3, [r7, #12] - 8005ba0: 2b01 cmp r3, #1 - 8005ba2: d001 beq.n 8005ba8 - { - return HAL_ERROR; - 8005ba4: 2301 movs r3, #1 - 8005ba6: e055 b.n 8005c54 - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - 8005ba8: 687b ldr r3, [r7, #4] - 8005baa: 2202 movs r2, #2 - 8005bac: f883 203f strb.w r2, [r3, #63] @ 0x3f - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - 8005bb0: 687b ldr r3, [r7, #4] - 8005bb2: 2202 movs r2, #2 - 8005bb4: f883 2043 strb.w r2, [r3, #67] @ 0x43 - 8005bb8: e01d b.n 8005bf6 - } - } - else - { - if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - 8005bba: 7bfb ldrb r3, [r7, #15] - 8005bbc: 2b01 cmp r3, #1 - 8005bbe: d108 bne.n 8005bd2 - || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - 8005bc0: 7bbb ldrb r3, [r7, #14] - 8005bc2: 2b01 cmp r3, #1 - 8005bc4: d105 bne.n 8005bd2 - || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - 8005bc6: 7b7b ldrb r3, [r7, #13] - 8005bc8: 2b01 cmp r3, #1 - 8005bca: d102 bne.n 8005bd2 - || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - 8005bcc: 7b3b ldrb r3, [r7, #12] - 8005bce: 2b01 cmp r3, #1 - 8005bd0: d001 beq.n 8005bd6 - { - return HAL_ERROR; - 8005bd2: 2301 movs r3, #1 - 8005bd4: e03e b.n 8005c54 - } - else - { - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); +08005b54 : + 8005b54: b480 push {r7} + 8005b56: b085 sub sp, #20 + 8005b58: af00 add r7, sp, #0 + 8005b5a: 6078 str r0, [r7, #4] + 8005b5c: 6039 str r1, [r7, #0] + 8005b5e: 687b ldr r3, [r7, #4] + 8005b60: 681b ldr r3, [r3, #0] + 8005b62: 60fb str r3, [r7, #12] + 8005b64: 687b ldr r3, [r7, #4] + 8005b66: 4a43 ldr r2, [pc, #268] @ (8005c74 ) + 8005b68: 4293 cmp r3, r2 + 8005b6a: d013 beq.n 8005b94 + 8005b6c: 687b ldr r3, [r7, #4] + 8005b6e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8005b72: d00f beq.n 8005b94 + 8005b74: 687b ldr r3, [r7, #4] + 8005b76: 4a40 ldr r2, [pc, #256] @ (8005c78 ) + 8005b78: 4293 cmp r3, r2 + 8005b7a: d00b beq.n 8005b94 + 8005b7c: 687b ldr r3, [r7, #4] + 8005b7e: 4a3f ldr r2, [pc, #252] @ (8005c7c ) + 8005b80: 4293 cmp r3, r2 + 8005b82: d007 beq.n 8005b94 + 8005b84: 687b ldr r3, [r7, #4] + 8005b86: 4a3e ldr r2, [pc, #248] @ (8005c80 ) + 8005b88: 4293 cmp r3, r2 + 8005b8a: d003 beq.n 8005b94 + 8005b8c: 687b ldr r3, [r7, #4] + 8005b8e: 4a3d ldr r2, [pc, #244] @ (8005c84 ) + 8005b90: 4293 cmp r3, r2 + 8005b92: d108 bne.n 8005ba6 + 8005b94: 68fb ldr r3, [r7, #12] + 8005b96: f023 0370 bic.w r3, r3, #112 @ 0x70 + 8005b9a: 60fb str r3, [r7, #12] + 8005b9c: 683b ldr r3, [r7, #0] + 8005b9e: 685b ldr r3, [r3, #4] + 8005ba0: 68fa ldr r2, [r7, #12] + 8005ba2: 4313 orrs r3, r2 + 8005ba4: 60fb str r3, [r7, #12] + 8005ba6: 687b ldr r3, [r7, #4] + 8005ba8: 4a32 ldr r2, [pc, #200] @ (8005c74 ) + 8005baa: 4293 cmp r3, r2 + 8005bac: d02b beq.n 8005c06 + 8005bae: 687b ldr r3, [r7, #4] + 8005bb0: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8005bb4: d027 beq.n 8005c06 + 8005bb6: 687b ldr r3, [r7, #4] + 8005bb8: 4a2f ldr r2, [pc, #188] @ (8005c78 ) + 8005bba: 4293 cmp r3, r2 + 8005bbc: d023 beq.n 8005c06 + 8005bbe: 687b ldr r3, [r7, #4] + 8005bc0: 4a2e ldr r2, [pc, #184] @ (8005c7c ) + 8005bc2: 4293 cmp r3, r2 + 8005bc4: d01f beq.n 8005c06 + 8005bc6: 687b ldr r3, [r7, #4] + 8005bc8: 4a2d ldr r2, [pc, #180] @ (8005c80 ) + 8005bca: 4293 cmp r3, r2 + 8005bcc: d01b beq.n 8005c06 + 8005bce: 687b ldr r3, [r7, #4] + 8005bd0: 4a2c ldr r2, [pc, #176] @ (8005c84 ) + 8005bd2: 4293 cmp r3, r2 + 8005bd4: d017 beq.n 8005c06 8005bd6: 687b ldr r3, [r7, #4] - 8005bd8: 2202 movs r2, #2 - 8005bda: f883 203e strb.w r2, [r3, #62] @ 0x3e - TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); + 8005bd8: 4a2b ldr r2, [pc, #172] @ (8005c88 ) + 8005bda: 4293 cmp r3, r2 + 8005bdc: d013 beq.n 8005c06 8005bde: 687b ldr r3, [r7, #4] - 8005be0: 2202 movs r2, #2 - 8005be2: f883 203f strb.w r2, [r3, #63] @ 0x3f - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); + 8005be0: 4a2a ldr r2, [pc, #168] @ (8005c8c ) + 8005be2: 4293 cmp r3, r2 + 8005be4: d00f beq.n 8005c06 8005be6: 687b ldr r3, [r7, #4] - 8005be8: 2202 movs r2, #2 - 8005bea: f883 2042 strb.w r2, [r3, #66] @ 0x42 - TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); + 8005be8: 4a29 ldr r2, [pc, #164] @ (8005c90 ) + 8005bea: 4293 cmp r3, r2 + 8005bec: d00b beq.n 8005c06 8005bee: 687b ldr r3, [r7, #4] - 8005bf0: 2202 movs r2, #2 - 8005bf2: f883 2043 strb.w r2, [r3, #67] @ 0x43 - } - } - - /* Enable the encoder interface channels */ - switch (Channel) - 8005bf6: 683b ldr r3, [r7, #0] - 8005bf8: 2b00 cmp r3, #0 - 8005bfa: d003 beq.n 8005c04 - 8005bfc: 683b ldr r3, [r7, #0] - 8005bfe: 2b04 cmp r3, #4 - 8005c00: d008 beq.n 8005c14 - 8005c02: e00f b.n 8005c24 - { - case TIM_CHANNEL_1: - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - 8005c04: 687b ldr r3, [r7, #4] - 8005c06: 681b ldr r3, [r3, #0] - 8005c08: 2201 movs r2, #1 - 8005c0a: 2100 movs r1, #0 - 8005c0c: 4618 mov r0, r3 - 8005c0e: f000 fb99 bl 8006344 - break; - 8005c12: e016 b.n 8005c42 - } - - case TIM_CHANNEL_2: - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - 8005c14: 687b ldr r3, [r7, #4] - 8005c16: 681b ldr r3, [r3, #0] - 8005c18: 2201 movs r2, #1 - 8005c1a: 2104 movs r1, #4 - 8005c1c: 4618 mov r0, r3 - 8005c1e: f000 fb91 bl 8006344 - break; - 8005c22: e00e b.n 8005c42 - } - - default : - { - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - 8005c24: 687b ldr r3, [r7, #4] - 8005c26: 681b ldr r3, [r3, #0] - 8005c28: 2201 movs r2, #1 - 8005c2a: 2100 movs r1, #0 - 8005c2c: 4618 mov r0, r3 - 8005c2e: f000 fb89 bl 8006344 - TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); + 8005bf0: 4a28 ldr r2, [pc, #160] @ (8005c94 ) + 8005bf2: 4293 cmp r3, r2 + 8005bf4: d007 beq.n 8005c06 + 8005bf6: 687b ldr r3, [r7, #4] + 8005bf8: 4a27 ldr r2, [pc, #156] @ (8005c98 ) + 8005bfa: 4293 cmp r3, r2 + 8005bfc: d003 beq.n 8005c06 + 8005bfe: 687b ldr r3, [r7, #4] + 8005c00: 4a26 ldr r2, [pc, #152] @ (8005c9c ) + 8005c02: 4293 cmp r3, r2 + 8005c04: d108 bne.n 8005c18 + 8005c06: 68fb ldr r3, [r7, #12] + 8005c08: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8005c0c: 60fb str r3, [r7, #12] + 8005c0e: 683b ldr r3, [r7, #0] + 8005c10: 68db ldr r3, [r3, #12] + 8005c12: 68fa ldr r2, [r7, #12] + 8005c14: 4313 orrs r3, r2 + 8005c16: 60fb str r3, [r7, #12] + 8005c18: 68fb ldr r3, [r7, #12] + 8005c1a: f023 0280 bic.w r2, r3, #128 @ 0x80 + 8005c1e: 683b ldr r3, [r7, #0] + 8005c20: 695b ldr r3, [r3, #20] + 8005c22: 4313 orrs r3, r2 + 8005c24: 60fb str r3, [r7, #12] + 8005c26: 683b ldr r3, [r7, #0] + 8005c28: 689a ldr r2, [r3, #8] + 8005c2a: 687b ldr r3, [r7, #4] + 8005c2c: 62da str r2, [r3, #44] @ 0x2c + 8005c2e: 683b ldr r3, [r7, #0] + 8005c30: 681a ldr r2, [r3, #0] 8005c32: 687b ldr r3, [r7, #4] - 8005c34: 681b ldr r3, [r3, #0] - 8005c36: 2201 movs r2, #1 - 8005c38: 2104 movs r1, #4 - 8005c3a: 4618 mov r0, r3 - 8005c3c: f000 fb82 bl 8006344 - break; - 8005c40: bf00 nop - } - } - /* Enable the Peripheral */ - __HAL_TIM_ENABLE(htim); - 8005c42: 687b ldr r3, [r7, #4] - 8005c44: 681b ldr r3, [r3, #0] - 8005c46: 681a ldr r2, [r3, #0] - 8005c48: 687b ldr r3, [r7, #4] - 8005c4a: 681b ldr r3, [r3, #0] - 8005c4c: f042 0201 orr.w r2, r2, #1 - 8005c50: 601a str r2, [r3, #0] + 8005c34: 629a str r2, [r3, #40] @ 0x28 + 8005c36: 687b ldr r3, [r7, #4] + 8005c38: 4a0e ldr r2, [pc, #56] @ (8005c74 ) + 8005c3a: 4293 cmp r3, r2 + 8005c3c: d003 beq.n 8005c46 + 8005c3e: 687b ldr r3, [r7, #4] + 8005c40: 4a10 ldr r2, [pc, #64] @ (8005c84 ) + 8005c42: 4293 cmp r3, r2 + 8005c44: d103 bne.n 8005c4e + 8005c46: 683b ldr r3, [r7, #0] + 8005c48: 691a ldr r2, [r3, #16] + 8005c4a: 687b ldr r3, [r7, #4] + 8005c4c: 631a str r2, [r3, #48] @ 0x30 + 8005c4e: 687b ldr r3, [r7, #4] + 8005c50: 681b ldr r3, [r3, #0] + 8005c52: f043 0204 orr.w r2, r3, #4 + 8005c56: 687b ldr r3, [r7, #4] + 8005c58: 601a str r2, [r3, #0] + 8005c5a: 687b ldr r3, [r7, #4] + 8005c5c: 2201 movs r2, #1 + 8005c5e: 615a str r2, [r3, #20] + 8005c60: 687b ldr r3, [r7, #4] + 8005c62: 68fa ldr r2, [r7, #12] + 8005c64: 601a str r2, [r3, #0] + 8005c66: bf00 nop + 8005c68: 3714 adds r7, #20 + 8005c6a: 46bd mov sp, r7 + 8005c6c: f85d 7b04 ldr.w r7, [sp], #4 + 8005c70: 4770 bx lr + 8005c72: bf00 nop + 8005c74: 40010000 .word 0x40010000 + 8005c78: 40000400 .word 0x40000400 + 8005c7c: 40000800 .word 0x40000800 + 8005c80: 40000c00 .word 0x40000c00 + 8005c84: 40010400 .word 0x40010400 + 8005c88: 40014000 .word 0x40014000 + 8005c8c: 40014400 .word 0x40014400 + 8005c90: 40014800 .word 0x40014800 + 8005c94: 40001800 .word 0x40001800 + 8005c98: 40001c00 .word 0x40001c00 + 8005c9c: 40002000 .word 0x40002000 - /* Return function status */ - return HAL_OK; - 8005c52: 2300 movs r3, #0 -} - 8005c54: 4618 mov r0, r3 - 8005c56: 3710 adds r7, #16 - 8005c58: 46bd mov sp, r7 - 8005c5a: bd80 pop {r7, pc} +08005ca0 : + 8005ca0: b480 push {r7} + 8005ca2: b087 sub sp, #28 + 8005ca4: af00 add r7, sp, #0 + 8005ca6: 6078 str r0, [r7, #4] + 8005ca8: 6039 str r1, [r7, #0] + 8005caa: 687b ldr r3, [r7, #4] + 8005cac: 6a1b ldr r3, [r3, #32] + 8005cae: 617b str r3, [r7, #20] + 8005cb0: 687b ldr r3, [r7, #4] + 8005cb2: 6a1b ldr r3, [r3, #32] + 8005cb4: f023 0201 bic.w r2, r3, #1 + 8005cb8: 687b ldr r3, [r7, #4] + 8005cba: 621a str r2, [r3, #32] + 8005cbc: 687b ldr r3, [r7, #4] + 8005cbe: 685b ldr r3, [r3, #4] + 8005cc0: 613b str r3, [r7, #16] + 8005cc2: 687b ldr r3, [r7, #4] + 8005cc4: 699b ldr r3, [r3, #24] + 8005cc6: 60fb str r3, [r7, #12] + 8005cc8: 68fb ldr r3, [r7, #12] + 8005cca: f023 0370 bic.w r3, r3, #112 @ 0x70 + 8005cce: 60fb str r3, [r7, #12] + 8005cd0: 68fb ldr r3, [r7, #12] + 8005cd2: f023 0303 bic.w r3, r3, #3 + 8005cd6: 60fb str r3, [r7, #12] + 8005cd8: 683b ldr r3, [r7, #0] + 8005cda: 681b ldr r3, [r3, #0] + 8005cdc: 68fa ldr r2, [r7, #12] + 8005cde: 4313 orrs r3, r2 + 8005ce0: 60fb str r3, [r7, #12] + 8005ce2: 697b ldr r3, [r7, #20] + 8005ce4: f023 0302 bic.w r3, r3, #2 + 8005ce8: 617b str r3, [r7, #20] + 8005cea: 683b ldr r3, [r7, #0] + 8005cec: 689b ldr r3, [r3, #8] + 8005cee: 697a ldr r2, [r7, #20] + 8005cf0: 4313 orrs r3, r2 + 8005cf2: 617b str r3, [r7, #20] + 8005cf4: 687b ldr r3, [r7, #4] + 8005cf6: 4a20 ldr r2, [pc, #128] @ (8005d78 ) + 8005cf8: 4293 cmp r3, r2 + 8005cfa: d003 beq.n 8005d04 + 8005cfc: 687b ldr r3, [r7, #4] + 8005cfe: 4a1f ldr r2, [pc, #124] @ (8005d7c ) + 8005d00: 4293 cmp r3, r2 + 8005d02: d10c bne.n 8005d1e + 8005d04: 697b ldr r3, [r7, #20] + 8005d06: f023 0308 bic.w r3, r3, #8 + 8005d0a: 617b str r3, [r7, #20] + 8005d0c: 683b ldr r3, [r7, #0] + 8005d0e: 68db ldr r3, [r3, #12] + 8005d10: 697a ldr r2, [r7, #20] + 8005d12: 4313 orrs r3, r2 + 8005d14: 617b str r3, [r7, #20] + 8005d16: 697b ldr r3, [r7, #20] + 8005d18: f023 0304 bic.w r3, r3, #4 + 8005d1c: 617b str r3, [r7, #20] + 8005d1e: 687b ldr r3, [r7, #4] + 8005d20: 4a15 ldr r2, [pc, #84] @ (8005d78 ) + 8005d22: 4293 cmp r3, r2 + 8005d24: d003 beq.n 8005d2e + 8005d26: 687b ldr r3, [r7, #4] + 8005d28: 4a14 ldr r2, [pc, #80] @ (8005d7c ) + 8005d2a: 4293 cmp r3, r2 + 8005d2c: d111 bne.n 8005d52 + 8005d2e: 693b ldr r3, [r7, #16] + 8005d30: f423 7380 bic.w r3, r3, #256 @ 0x100 + 8005d34: 613b str r3, [r7, #16] + 8005d36: 693b ldr r3, [r7, #16] + 8005d38: f423 7300 bic.w r3, r3, #512 @ 0x200 + 8005d3c: 613b str r3, [r7, #16] + 8005d3e: 683b ldr r3, [r7, #0] + 8005d40: 695b ldr r3, [r3, #20] + 8005d42: 693a ldr r2, [r7, #16] + 8005d44: 4313 orrs r3, r2 + 8005d46: 613b str r3, [r7, #16] + 8005d48: 683b ldr r3, [r7, #0] + 8005d4a: 699b ldr r3, [r3, #24] + 8005d4c: 693a ldr r2, [r7, #16] + 8005d4e: 4313 orrs r3, r2 + 8005d50: 613b str r3, [r7, #16] + 8005d52: 687b ldr r3, [r7, #4] + 8005d54: 693a ldr r2, [r7, #16] + 8005d56: 605a str r2, [r3, #4] + 8005d58: 687b ldr r3, [r7, #4] + 8005d5a: 68fa ldr r2, [r7, #12] + 8005d5c: 619a str r2, [r3, #24] + 8005d5e: 683b ldr r3, [r7, #0] + 8005d60: 685a ldr r2, [r3, #4] + 8005d62: 687b ldr r3, [r7, #4] + 8005d64: 635a str r2, [r3, #52] @ 0x34 + 8005d66: 687b ldr r3, [r7, #4] + 8005d68: 697a ldr r2, [r7, #20] + 8005d6a: 621a str r2, [r3, #32] + 8005d6c: bf00 nop + 8005d6e: 371c adds r7, #28 + 8005d70: 46bd mov sp, r7 + 8005d72: f85d 7b04 ldr.w r7, [sp], #4 + 8005d76: 4770 bx lr + 8005d78: 40010000 .word 0x40010000 + 8005d7c: 40010400 .word 0x40010400 -08005c5c : - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_OC_ConfigChannel(TIM_HandleTypeDef *htim, - const TIM_OC_InitTypeDef *sConfig, - uint32_t Channel) -{ - 8005c5c: b580 push {r7, lr} - 8005c5e: b086 sub sp, #24 - 8005c60: af00 add r7, sp, #0 - 8005c62: 60f8 str r0, [r7, #12] - 8005c64: 60b9 str r1, [r7, #8] - 8005c66: 607a str r2, [r7, #4] - HAL_StatusTypeDef status = HAL_OK; - 8005c68: 2300 movs r3, #0 - 8005c6a: 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); - 8005c6c: 68fb ldr r3, [r7, #12] - 8005c6e: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 8005c72: 2b01 cmp r3, #1 - 8005c74: d101 bne.n 8005c7a - 8005c76: 2302 movs r3, #2 - 8005c78: e048 b.n 8005d0c - 8005c7a: 68fb ldr r3, [r7, #12] - 8005c7c: 2201 movs r2, #1 - 8005c7e: f883 203c strb.w r2, [r3, #60] @ 0x3c - - switch (Channel) - 8005c82: 687b ldr r3, [r7, #4] - 8005c84: 2b0c cmp r3, #12 - 8005c86: d839 bhi.n 8005cfc - 8005c88: a201 add r2, pc, #4 @ (adr r2, 8005c90 ) - 8005c8a: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8005c8e: bf00 nop - 8005c90: 08005cc5 .word 0x08005cc5 - 8005c94: 08005cfd .word 0x08005cfd - 8005c98: 08005cfd .word 0x08005cfd - 8005c9c: 08005cfd .word 0x08005cfd - 8005ca0: 08005cd3 .word 0x08005cd3 - 8005ca4: 08005cfd .word 0x08005cfd - 8005ca8: 08005cfd .word 0x08005cfd - 8005cac: 08005cfd .word 0x08005cfd - 8005cb0: 08005ce1 .word 0x08005ce1 - 8005cb4: 08005cfd .word 0x08005cfd - 8005cb8: 08005cfd .word 0x08005cfd - 8005cbc: 08005cfd .word 0x08005cfd - 8005cc0: 08005cef .word 0x08005cef - { - /* 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); - 8005cc4: 68fb ldr r3, [r7, #12] - 8005cc6: 681b ldr r3, [r3, #0] - 8005cc8: 68b9 ldr r1, [r7, #8] - 8005cca: 4618 mov r0, r3 - 8005ccc: f000 f98a bl 8005fe4 - break; - 8005cd0: e017 b.n 8005d02 - { - /* 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); - 8005cd2: 68fb ldr r3, [r7, #12] - 8005cd4: 681b ldr r3, [r3, #0] - 8005cd6: 68b9 ldr r1, [r7, #8] - 8005cd8: 4618 mov r0, r3 - 8005cda: f000 f9f3 bl 80060c4 - break; - 8005cde: e010 b.n 8005d02 - { - /* 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); - 8005ce0: 68fb ldr r3, [r7, #12] - 8005ce2: 681b ldr r3, [r3, #0] - 8005ce4: 68b9 ldr r1, [r7, #8] - 8005ce6: 4618 mov r0, r3 - 8005ce8: f000 fa62 bl 80061b0 - break; - 8005cec: e009 b.n 8005d02 - { - /* 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); - 8005cee: 68fb ldr r3, [r7, #12] - 8005cf0: 681b ldr r3, [r3, #0] - 8005cf2: 68b9 ldr r1, [r7, #8] - 8005cf4: 4618 mov r0, r3 - 8005cf6: f000 facf bl 8006298 - break; - 8005cfa: e002 b.n 8005d02 - } - - default: - status = HAL_ERROR; - 8005cfc: 2301 movs r3, #1 - 8005cfe: 75fb strb r3, [r7, #23] - break; - 8005d00: bf00 nop - } - - __HAL_UNLOCK(htim); - 8005d02: 68fb ldr r3, [r7, #12] - 8005d04: 2200 movs r2, #0 - 8005d06: f883 203c strb.w r2, [r3, #60] @ 0x3c - - return status; - 8005d0a: 7dfb ldrb r3, [r7, #23] -} - 8005d0c: 4618 mov r0, r3 - 8005d0e: 3718 adds r7, #24 - 8005d10: 46bd mov sp, r7 - 8005d12: bd80 pop {r7, pc} - -08005d14 : - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, - const TIM_OC_InitTypeDef *sConfig, - uint32_t Channel) -{ - 8005d14: b580 push {r7, lr} - 8005d16: b086 sub sp, #24 - 8005d18: af00 add r7, sp, #0 - 8005d1a: 60f8 str r0, [r7, #12] - 8005d1c: 60b9 str r1, [r7, #8] - 8005d1e: 607a str r2, [r7, #4] - HAL_StatusTypeDef status = HAL_OK; - 8005d20: 2300 movs r3, #0 - 8005d22: 75fb strb r3, [r7, #23] - assert_param(IS_TIM_PWM_MODE(sConfig->OCMode)); - assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity)); - assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode)); - - /* Process Locked */ - __HAL_LOCK(htim); - 8005d24: 68fb ldr r3, [r7, #12] - 8005d26: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 8005d2a: 2b01 cmp r3, #1 - 8005d2c: d101 bne.n 8005d32 - 8005d2e: 2302 movs r3, #2 - 8005d30: e0ae b.n 8005e90 - 8005d32: 68fb ldr r3, [r7, #12] - 8005d34: 2201 movs r2, #1 - 8005d36: f883 203c strb.w r2, [r3, #60] @ 0x3c - - switch (Channel) - 8005d3a: 687b ldr r3, [r7, #4] - 8005d3c: 2b0c cmp r3, #12 - 8005d3e: f200 809f bhi.w 8005e80 - 8005d42: a201 add r2, pc, #4 @ (adr r2, 8005d48 ) - 8005d44: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8005d48: 08005d7d .word 0x08005d7d - 8005d4c: 08005e81 .word 0x08005e81 - 8005d50: 08005e81 .word 0x08005e81 - 8005d54: 08005e81 .word 0x08005e81 - 8005d58: 08005dbd .word 0x08005dbd - 8005d5c: 08005e81 .word 0x08005e81 - 8005d60: 08005e81 .word 0x08005e81 - 8005d64: 08005e81 .word 0x08005e81 - 8005d68: 08005dff .word 0x08005dff - 8005d6c: 08005e81 .word 0x08005e81 - 8005d70: 08005e81 .word 0x08005e81 - 8005d74: 08005e81 .word 0x08005e81 - 8005d78: 08005e3f .word 0x08005e3f - { - /* Check the parameters */ - assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); - - /* Configure the Channel 1 in PWM mode */ - TIM_OC1_SetConfig(htim->Instance, sConfig); - 8005d7c: 68fb ldr r3, [r7, #12] - 8005d7e: 681b ldr r3, [r3, #0] - 8005d80: 68b9 ldr r1, [r7, #8] - 8005d82: 4618 mov r0, r3 - 8005d84: f000 f92e bl 8005fe4 - - /* Set the Preload enable bit for channel1 */ - htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE; - 8005d88: 68fb ldr r3, [r7, #12] - 8005d8a: 681b ldr r3, [r3, #0] - 8005d8c: 699a ldr r2, [r3, #24] - 8005d8e: 68fb ldr r3, [r7, #12] - 8005d90: 681b ldr r3, [r3, #0] - 8005d92: f042 0208 orr.w r2, r2, #8 - 8005d96: 619a str r2, [r3, #24] - - /* Configure the Output Fast mode */ - htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE; - 8005d98: 68fb ldr r3, [r7, #12] - 8005d9a: 681b ldr r3, [r3, #0] - 8005d9c: 699a ldr r2, [r3, #24] - 8005d9e: 68fb ldr r3, [r7, #12] - 8005da0: 681b ldr r3, [r3, #0] - 8005da2: f022 0204 bic.w r2, r2, #4 - 8005da6: 619a str r2, [r3, #24] - htim->Instance->CCMR1 |= sConfig->OCFastMode; +08005d80 : + 8005d80: b480 push {r7} + 8005d82: b087 sub sp, #28 + 8005d84: af00 add r7, sp, #0 + 8005d86: 6078 str r0, [r7, #4] + 8005d88: 6039 str r1, [r7, #0] + 8005d8a: 687b ldr r3, [r7, #4] + 8005d8c: 6a1b ldr r3, [r3, #32] + 8005d8e: 617b str r3, [r7, #20] + 8005d90: 687b ldr r3, [r7, #4] + 8005d92: 6a1b ldr r3, [r3, #32] + 8005d94: f023 0210 bic.w r2, r3, #16 + 8005d98: 687b ldr r3, [r7, #4] + 8005d9a: 621a str r2, [r3, #32] + 8005d9c: 687b ldr r3, [r7, #4] + 8005d9e: 685b ldr r3, [r3, #4] + 8005da0: 613b str r3, [r7, #16] + 8005da2: 687b ldr r3, [r7, #4] + 8005da4: 699b ldr r3, [r3, #24] + 8005da6: 60fb str r3, [r7, #12] 8005da8: 68fb ldr r3, [r7, #12] - 8005daa: 681b ldr r3, [r3, #0] - 8005dac: 6999 ldr r1, [r3, #24] - 8005dae: 68bb ldr r3, [r7, #8] - 8005db0: 691a ldr r2, [r3, #16] - 8005db2: 68fb ldr r3, [r7, #12] - 8005db4: 681b ldr r3, [r3, #0] - 8005db6: 430a orrs r2, r1 - 8005db8: 619a str r2, [r3, #24] - break; - 8005dba: e064 b.n 8005e86 - { - /* Check the parameters */ - assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); + 8005daa: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 + 8005dae: 60fb str r3, [r7, #12] + 8005db0: 68fb ldr r3, [r7, #12] + 8005db2: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8005db6: 60fb str r3, [r7, #12] + 8005db8: 683b ldr r3, [r7, #0] + 8005dba: 681b ldr r3, [r3, #0] + 8005dbc: 021b lsls r3, r3, #8 + 8005dbe: 68fa ldr r2, [r7, #12] + 8005dc0: 4313 orrs r3, r2 + 8005dc2: 60fb str r3, [r7, #12] + 8005dc4: 697b ldr r3, [r7, #20] + 8005dc6: f023 0320 bic.w r3, r3, #32 + 8005dca: 617b str r3, [r7, #20] + 8005dcc: 683b ldr r3, [r7, #0] + 8005dce: 689b ldr r3, [r3, #8] + 8005dd0: 011b lsls r3, r3, #4 + 8005dd2: 697a ldr r2, [r7, #20] + 8005dd4: 4313 orrs r3, r2 + 8005dd6: 617b str r3, [r7, #20] + 8005dd8: 687b ldr r3, [r7, #4] + 8005dda: 4a22 ldr r2, [pc, #136] @ (8005e64 ) + 8005ddc: 4293 cmp r3, r2 + 8005dde: d003 beq.n 8005de8 + 8005de0: 687b ldr r3, [r7, #4] + 8005de2: 4a21 ldr r2, [pc, #132] @ (8005e68 ) + 8005de4: 4293 cmp r3, r2 + 8005de6: d10d bne.n 8005e04 + 8005de8: 697b ldr r3, [r7, #20] + 8005dea: f023 0380 bic.w r3, r3, #128 @ 0x80 + 8005dee: 617b str r3, [r7, #20] + 8005df0: 683b ldr r3, [r7, #0] + 8005df2: 68db ldr r3, [r3, #12] + 8005df4: 011b lsls r3, r3, #4 + 8005df6: 697a ldr r2, [r7, #20] + 8005df8: 4313 orrs r3, r2 + 8005dfa: 617b str r3, [r7, #20] + 8005dfc: 697b ldr r3, [r7, #20] + 8005dfe: f023 0340 bic.w r3, r3, #64 @ 0x40 + 8005e02: 617b str r3, [r7, #20] + 8005e04: 687b ldr r3, [r7, #4] + 8005e06: 4a17 ldr r2, [pc, #92] @ (8005e64 ) + 8005e08: 4293 cmp r3, r2 + 8005e0a: d003 beq.n 8005e14 + 8005e0c: 687b ldr r3, [r7, #4] + 8005e0e: 4a16 ldr r2, [pc, #88] @ (8005e68 ) + 8005e10: 4293 cmp r3, r2 + 8005e12: d113 bne.n 8005e3c + 8005e14: 693b ldr r3, [r7, #16] + 8005e16: f423 6380 bic.w r3, r3, #1024 @ 0x400 + 8005e1a: 613b str r3, [r7, #16] + 8005e1c: 693b ldr r3, [r7, #16] + 8005e1e: f423 6300 bic.w r3, r3, #2048 @ 0x800 + 8005e22: 613b str r3, [r7, #16] + 8005e24: 683b ldr r3, [r7, #0] + 8005e26: 695b ldr r3, [r3, #20] + 8005e28: 009b lsls r3, r3, #2 + 8005e2a: 693a ldr r2, [r7, #16] + 8005e2c: 4313 orrs r3, r2 + 8005e2e: 613b str r3, [r7, #16] + 8005e30: 683b ldr r3, [r7, #0] + 8005e32: 699b ldr r3, [r3, #24] + 8005e34: 009b lsls r3, r3, #2 + 8005e36: 693a ldr r2, [r7, #16] + 8005e38: 4313 orrs r3, r2 + 8005e3a: 613b str r3, [r7, #16] + 8005e3c: 687b ldr r3, [r7, #4] + 8005e3e: 693a ldr r2, [r7, #16] + 8005e40: 605a str r2, [r3, #4] + 8005e42: 687b ldr r3, [r7, #4] + 8005e44: 68fa ldr r2, [r7, #12] + 8005e46: 619a str r2, [r3, #24] + 8005e48: 683b ldr r3, [r7, #0] + 8005e4a: 685a ldr r2, [r3, #4] + 8005e4c: 687b ldr r3, [r7, #4] + 8005e4e: 639a str r2, [r3, #56] @ 0x38 + 8005e50: 687b ldr r3, [r7, #4] + 8005e52: 697a ldr r2, [r7, #20] + 8005e54: 621a str r2, [r3, #32] + 8005e56: bf00 nop + 8005e58: 371c adds r7, #28 + 8005e5a: 46bd mov sp, r7 + 8005e5c: f85d 7b04 ldr.w r7, [sp], #4 + 8005e60: 4770 bx lr + 8005e62: bf00 nop + 8005e64: 40010000 .word 0x40010000 + 8005e68: 40010400 .word 0x40010400 - /* Configure the Channel 2 in PWM mode */ - TIM_OC2_SetConfig(htim->Instance, sConfig); - 8005dbc: 68fb ldr r3, [r7, #12] - 8005dbe: 681b ldr r3, [r3, #0] - 8005dc0: 68b9 ldr r1, [r7, #8] - 8005dc2: 4618 mov r0, r3 - 8005dc4: f000 f97e bl 80060c4 - - /* Set the Preload enable bit for channel2 */ - htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE; - 8005dc8: 68fb ldr r3, [r7, #12] - 8005dca: 681b ldr r3, [r3, #0] - 8005dcc: 699a ldr r2, [r3, #24] - 8005dce: 68fb ldr r3, [r7, #12] - 8005dd0: 681b ldr r3, [r3, #0] - 8005dd2: f442 6200 orr.w r2, r2, #2048 @ 0x800 - 8005dd6: 619a str r2, [r3, #24] - - /* Configure the Output Fast mode */ - htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE; - 8005dd8: 68fb ldr r3, [r7, #12] - 8005dda: 681b ldr r3, [r3, #0] - 8005ddc: 699a ldr r2, [r3, #24] - 8005dde: 68fb ldr r3, [r7, #12] - 8005de0: 681b ldr r3, [r3, #0] - 8005de2: f422 6280 bic.w r2, r2, #1024 @ 0x400 - 8005de6: 619a str r2, [r3, #24] - htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U; - 8005de8: 68fb ldr r3, [r7, #12] - 8005dea: 681b ldr r3, [r3, #0] - 8005dec: 6999 ldr r1, [r3, #24] - 8005dee: 68bb ldr r3, [r7, #8] - 8005df0: 691b ldr r3, [r3, #16] - 8005df2: 021a lsls r2, r3, #8 - 8005df4: 68fb ldr r3, [r7, #12] - 8005df6: 681b ldr r3, [r3, #0] - 8005df8: 430a orrs r2, r1 - 8005dfa: 619a str r2, [r3, #24] - break; - 8005dfc: e043 b.n 8005e86 - { - /* Check the parameters */ - assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); - - /* Configure the Channel 3 in PWM mode */ - TIM_OC3_SetConfig(htim->Instance, sConfig); - 8005dfe: 68fb ldr r3, [r7, #12] - 8005e00: 681b ldr r3, [r3, #0] - 8005e02: 68b9 ldr r1, [r7, #8] - 8005e04: 4618 mov r0, r3 - 8005e06: f000 f9d3 bl 80061b0 - - /* Set the Preload enable bit for channel3 */ - htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE; - 8005e0a: 68fb ldr r3, [r7, #12] - 8005e0c: 681b ldr r3, [r3, #0] - 8005e0e: 69da ldr r2, [r3, #28] - 8005e10: 68fb ldr r3, [r7, #12] - 8005e12: 681b ldr r3, [r3, #0] - 8005e14: f042 0208 orr.w r2, r2, #8 - 8005e18: 61da str r2, [r3, #28] - - /* Configure the Output Fast mode */ - htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE; - 8005e1a: 68fb ldr r3, [r7, #12] - 8005e1c: 681b ldr r3, [r3, #0] - 8005e1e: 69da ldr r2, [r3, #28] - 8005e20: 68fb ldr r3, [r7, #12] - 8005e22: 681b ldr r3, [r3, #0] - 8005e24: f022 0204 bic.w r2, r2, #4 - 8005e28: 61da str r2, [r3, #28] - htim->Instance->CCMR2 |= sConfig->OCFastMode; - 8005e2a: 68fb ldr r3, [r7, #12] - 8005e2c: 681b ldr r3, [r3, #0] - 8005e2e: 69d9 ldr r1, [r3, #28] - 8005e30: 68bb ldr r3, [r7, #8] - 8005e32: 691a ldr r2, [r3, #16] - 8005e34: 68fb ldr r3, [r7, #12] - 8005e36: 681b ldr r3, [r3, #0] - 8005e38: 430a orrs r2, r1 - 8005e3a: 61da str r2, [r3, #28] - break; - 8005e3c: e023 b.n 8005e86 - { - /* Check the parameters */ - assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); - - /* Configure the Channel 4 in PWM mode */ - TIM_OC4_SetConfig(htim->Instance, sConfig); - 8005e3e: 68fb ldr r3, [r7, #12] - 8005e40: 681b ldr r3, [r3, #0] - 8005e42: 68b9 ldr r1, [r7, #8] - 8005e44: 4618 mov r0, r3 - 8005e46: f000 fa27 bl 8006298 - - /* Set the Preload enable bit for channel4 */ - htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE; - 8005e4a: 68fb ldr r3, [r7, #12] - 8005e4c: 681b ldr r3, [r3, #0] - 8005e4e: 69da ldr r2, [r3, #28] - 8005e50: 68fb ldr r3, [r7, #12] - 8005e52: 681b ldr r3, [r3, #0] - 8005e54: f442 6200 orr.w r2, r2, #2048 @ 0x800 - 8005e58: 61da str r2, [r3, #28] - - /* Configure the Output Fast mode */ - htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE; - 8005e5a: 68fb ldr r3, [r7, #12] - 8005e5c: 681b ldr r3, [r3, #0] - 8005e5e: 69da ldr r2, [r3, #28] - 8005e60: 68fb ldr r3, [r7, #12] - 8005e62: 681b ldr r3, [r3, #0] - 8005e64: f422 6280 bic.w r2, r2, #1024 @ 0x400 - 8005e68: 61da str r2, [r3, #28] - htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U; - 8005e6a: 68fb ldr r3, [r7, #12] - 8005e6c: 681b ldr r3, [r3, #0] - 8005e6e: 69d9 ldr r1, [r3, #28] - 8005e70: 68bb ldr r3, [r7, #8] - 8005e72: 691b ldr r3, [r3, #16] - 8005e74: 021a lsls r2, r3, #8 - 8005e76: 68fb ldr r3, [r7, #12] - 8005e78: 681b ldr r3, [r3, #0] - 8005e7a: 430a orrs r2, r1 - 8005e7c: 61da str r2, [r3, #28] - break; - 8005e7e: e002 b.n 8005e86 - } - - default: - status = HAL_ERROR; - 8005e80: 2301 movs r3, #1 - 8005e82: 75fb strb r3, [r7, #23] - break; - 8005e84: bf00 nop - } - - __HAL_UNLOCK(htim); - 8005e86: 68fb ldr r3, [r7, #12] - 8005e88: 2200 movs r2, #0 - 8005e8a: f883 203c strb.w r2, [r3, #60] @ 0x3c - - return status; - 8005e8e: 7dfb ldrb r3, [r7, #23] -} - 8005e90: 4618 mov r0, r3 - 8005e92: 3718 adds r7, #24 - 8005e94: 46bd mov sp, r7 - 8005e96: bd80 pop {r7, pc} - -08005e98 : - * @param TIMx TIM peripheral - * @param Structure TIM Base configuration structure - * @retval None - */ -void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure) -{ - 8005e98: b480 push {r7} - 8005e9a: b085 sub sp, #20 - 8005e9c: af00 add r7, sp, #0 - 8005e9e: 6078 str r0, [r7, #4] - 8005ea0: 6039 str r1, [r7, #0] - uint32_t tmpcr1; - tmpcr1 = TIMx->CR1; - 8005ea2: 687b ldr r3, [r7, #4] - 8005ea4: 681b ldr r3, [r3, #0] - 8005ea6: 60fb str r3, [r7, #12] - - /* Set TIM Time Base Unit parameters ---------------------------------------*/ - if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) - 8005ea8: 687b ldr r3, [r7, #4] - 8005eaa: 4a43 ldr r2, [pc, #268] @ (8005fb8 ) - 8005eac: 4293 cmp r3, r2 - 8005eae: d013 beq.n 8005ed8 - 8005eb0: 687b ldr r3, [r7, #4] - 8005eb2: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8005eb6: d00f beq.n 8005ed8 - 8005eb8: 687b ldr r3, [r7, #4] - 8005eba: 4a40 ldr r2, [pc, #256] @ (8005fbc ) - 8005ebc: 4293 cmp r3, r2 - 8005ebe: d00b beq.n 8005ed8 - 8005ec0: 687b ldr r3, [r7, #4] - 8005ec2: 4a3f ldr r2, [pc, #252] @ (8005fc0 ) - 8005ec4: 4293 cmp r3, r2 - 8005ec6: d007 beq.n 8005ed8 - 8005ec8: 687b ldr r3, [r7, #4] - 8005eca: 4a3e ldr r2, [pc, #248] @ (8005fc4 ) - 8005ecc: 4293 cmp r3, r2 - 8005ece: d003 beq.n 8005ed8 - 8005ed0: 687b ldr r3, [r7, #4] - 8005ed2: 4a3d ldr r2, [pc, #244] @ (8005fc8 ) - 8005ed4: 4293 cmp r3, r2 - 8005ed6: d108 bne.n 8005eea - { - /* Select the Counter Mode */ - tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); - 8005ed8: 68fb ldr r3, [r7, #12] - 8005eda: f023 0370 bic.w r3, r3, #112 @ 0x70 - 8005ede: 60fb str r3, [r7, #12] - tmpcr1 |= Structure->CounterMode; - 8005ee0: 683b ldr r3, [r7, #0] - 8005ee2: 685b ldr r3, [r3, #4] - 8005ee4: 68fa ldr r2, [r7, #12] - 8005ee6: 4313 orrs r3, r2 - 8005ee8: 60fb str r3, [r7, #12] - } - - if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) - 8005eea: 687b ldr r3, [r7, #4] - 8005eec: 4a32 ldr r2, [pc, #200] @ (8005fb8 ) - 8005eee: 4293 cmp r3, r2 - 8005ef0: d02b beq.n 8005f4a - 8005ef2: 687b ldr r3, [r7, #4] - 8005ef4: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8005ef8: d027 beq.n 8005f4a - 8005efa: 687b ldr r3, [r7, #4] - 8005efc: 4a2f ldr r2, [pc, #188] @ (8005fbc ) - 8005efe: 4293 cmp r3, r2 - 8005f00: d023 beq.n 8005f4a - 8005f02: 687b ldr r3, [r7, #4] - 8005f04: 4a2e ldr r2, [pc, #184] @ (8005fc0 ) - 8005f06: 4293 cmp r3, r2 - 8005f08: d01f beq.n 8005f4a - 8005f0a: 687b ldr r3, [r7, #4] - 8005f0c: 4a2d ldr r2, [pc, #180] @ (8005fc4 ) - 8005f0e: 4293 cmp r3, r2 - 8005f10: d01b beq.n 8005f4a - 8005f12: 687b ldr r3, [r7, #4] - 8005f14: 4a2c ldr r2, [pc, #176] @ (8005fc8 ) - 8005f16: 4293 cmp r3, r2 - 8005f18: d017 beq.n 8005f4a - 8005f1a: 687b ldr r3, [r7, #4] - 8005f1c: 4a2b ldr r2, [pc, #172] @ (8005fcc ) - 8005f1e: 4293 cmp r3, r2 - 8005f20: d013 beq.n 8005f4a - 8005f22: 687b ldr r3, [r7, #4] - 8005f24: 4a2a ldr r2, [pc, #168] @ (8005fd0 ) - 8005f26: 4293 cmp r3, r2 - 8005f28: d00f beq.n 8005f4a - 8005f2a: 687b ldr r3, [r7, #4] - 8005f2c: 4a29 ldr r2, [pc, #164] @ (8005fd4 ) - 8005f2e: 4293 cmp r3, r2 - 8005f30: d00b beq.n 8005f4a - 8005f32: 687b ldr r3, [r7, #4] - 8005f34: 4a28 ldr r2, [pc, #160] @ (8005fd8 ) - 8005f36: 4293 cmp r3, r2 - 8005f38: d007 beq.n 8005f4a +08005e6c : + 8005e6c: b480 push {r7} + 8005e6e: b087 sub sp, #28 + 8005e70: af00 add r7, sp, #0 + 8005e72: 6078 str r0, [r7, #4] + 8005e74: 6039 str r1, [r7, #0] + 8005e76: 687b ldr r3, [r7, #4] + 8005e78: 6a1b ldr r3, [r3, #32] + 8005e7a: 617b str r3, [r7, #20] + 8005e7c: 687b ldr r3, [r7, #4] + 8005e7e: 6a1b ldr r3, [r3, #32] + 8005e80: f423 7280 bic.w r2, r3, #256 @ 0x100 + 8005e84: 687b ldr r3, [r7, #4] + 8005e86: 621a str r2, [r3, #32] + 8005e88: 687b ldr r3, [r7, #4] + 8005e8a: 685b ldr r3, [r3, #4] + 8005e8c: 613b str r3, [r7, #16] + 8005e8e: 687b ldr r3, [r7, #4] + 8005e90: 69db ldr r3, [r3, #28] + 8005e92: 60fb str r3, [r7, #12] + 8005e94: 68fb ldr r3, [r7, #12] + 8005e96: f023 0370 bic.w r3, r3, #112 @ 0x70 + 8005e9a: 60fb str r3, [r7, #12] + 8005e9c: 68fb ldr r3, [r7, #12] + 8005e9e: f023 0303 bic.w r3, r3, #3 + 8005ea2: 60fb str r3, [r7, #12] + 8005ea4: 683b ldr r3, [r7, #0] + 8005ea6: 681b ldr r3, [r3, #0] + 8005ea8: 68fa ldr r2, [r7, #12] + 8005eaa: 4313 orrs r3, r2 + 8005eac: 60fb str r3, [r7, #12] + 8005eae: 697b ldr r3, [r7, #20] + 8005eb0: f423 7300 bic.w r3, r3, #512 @ 0x200 + 8005eb4: 617b str r3, [r7, #20] + 8005eb6: 683b ldr r3, [r7, #0] + 8005eb8: 689b ldr r3, [r3, #8] + 8005eba: 021b lsls r3, r3, #8 + 8005ebc: 697a ldr r2, [r7, #20] + 8005ebe: 4313 orrs r3, r2 + 8005ec0: 617b str r3, [r7, #20] + 8005ec2: 687b ldr r3, [r7, #4] + 8005ec4: 4a21 ldr r2, [pc, #132] @ (8005f4c ) + 8005ec6: 4293 cmp r3, r2 + 8005ec8: d003 beq.n 8005ed2 + 8005eca: 687b ldr r3, [r7, #4] + 8005ecc: 4a20 ldr r2, [pc, #128] @ (8005f50 ) + 8005ece: 4293 cmp r3, r2 + 8005ed0: d10d bne.n 8005eee + 8005ed2: 697b ldr r3, [r7, #20] + 8005ed4: f423 6300 bic.w r3, r3, #2048 @ 0x800 + 8005ed8: 617b str r3, [r7, #20] + 8005eda: 683b ldr r3, [r7, #0] + 8005edc: 68db ldr r3, [r3, #12] + 8005ede: 021b lsls r3, r3, #8 + 8005ee0: 697a ldr r2, [r7, #20] + 8005ee2: 4313 orrs r3, r2 + 8005ee4: 617b str r3, [r7, #20] + 8005ee6: 697b ldr r3, [r7, #20] + 8005ee8: f423 6380 bic.w r3, r3, #1024 @ 0x400 + 8005eec: 617b str r3, [r7, #20] + 8005eee: 687b ldr r3, [r7, #4] + 8005ef0: 4a16 ldr r2, [pc, #88] @ (8005f4c ) + 8005ef2: 4293 cmp r3, r2 + 8005ef4: d003 beq.n 8005efe + 8005ef6: 687b ldr r3, [r7, #4] + 8005ef8: 4a15 ldr r2, [pc, #84] @ (8005f50 ) + 8005efa: 4293 cmp r3, r2 + 8005efc: d113 bne.n 8005f26 + 8005efe: 693b ldr r3, [r7, #16] + 8005f00: f423 5380 bic.w r3, r3, #4096 @ 0x1000 + 8005f04: 613b str r3, [r7, #16] + 8005f06: 693b ldr r3, [r7, #16] + 8005f08: f423 5300 bic.w r3, r3, #8192 @ 0x2000 + 8005f0c: 613b str r3, [r7, #16] + 8005f0e: 683b ldr r3, [r7, #0] + 8005f10: 695b ldr r3, [r3, #20] + 8005f12: 011b lsls r3, r3, #4 + 8005f14: 693a ldr r2, [r7, #16] + 8005f16: 4313 orrs r3, r2 + 8005f18: 613b str r3, [r7, #16] + 8005f1a: 683b ldr r3, [r7, #0] + 8005f1c: 699b ldr r3, [r3, #24] + 8005f1e: 011b lsls r3, r3, #4 + 8005f20: 693a ldr r2, [r7, #16] + 8005f22: 4313 orrs r3, r2 + 8005f24: 613b str r3, [r7, #16] + 8005f26: 687b ldr r3, [r7, #4] + 8005f28: 693a ldr r2, [r7, #16] + 8005f2a: 605a str r2, [r3, #4] + 8005f2c: 687b ldr r3, [r7, #4] + 8005f2e: 68fa ldr r2, [r7, #12] + 8005f30: 61da str r2, [r3, #28] + 8005f32: 683b ldr r3, [r7, #0] + 8005f34: 685a ldr r2, [r3, #4] + 8005f36: 687b ldr r3, [r7, #4] + 8005f38: 63da str r2, [r3, #60] @ 0x3c 8005f3a: 687b ldr r3, [r7, #4] - 8005f3c: 4a27 ldr r2, [pc, #156] @ (8005fdc ) - 8005f3e: 4293 cmp r3, r2 - 8005f40: d003 beq.n 8005f4a - 8005f42: 687b ldr r3, [r7, #4] - 8005f44: 4a26 ldr r2, [pc, #152] @ (8005fe0 ) - 8005f46: 4293 cmp r3, r2 - 8005f48: d108 bne.n 8005f5c - { - /* Set the clock division */ - tmpcr1 &= ~TIM_CR1_CKD; - 8005f4a: 68fb ldr r3, [r7, #12] - 8005f4c: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8005f50: 60fb str r3, [r7, #12] - tmpcr1 |= (uint32_t)Structure->ClockDivision; - 8005f52: 683b ldr r3, [r7, #0] - 8005f54: 68db ldr r3, [r3, #12] - 8005f56: 68fa ldr r2, [r7, #12] - 8005f58: 4313 orrs r3, r2 - 8005f5a: 60fb str r3, [r7, #12] - } + 8005f3c: 697a ldr r2, [r7, #20] + 8005f3e: 621a str r2, [r3, #32] + 8005f40: bf00 nop + 8005f42: 371c adds r7, #28 + 8005f44: 46bd mov sp, r7 + 8005f46: f85d 7b04 ldr.w r7, [sp], #4 + 8005f4a: 4770 bx lr + 8005f4c: 40010000 .word 0x40010000 + 8005f50: 40010400 .word 0x40010400 - /* Set the auto-reload preload */ - MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); - 8005f5c: 68fb ldr r3, [r7, #12] - 8005f5e: f023 0280 bic.w r2, r3, #128 @ 0x80 - 8005f62: 683b ldr r3, [r7, #0] - 8005f64: 695b ldr r3, [r3, #20] - 8005f66: 4313 orrs r3, r2 - 8005f68: 60fb str r3, [r7, #12] - - /* Set the Autoreload value */ - TIMx->ARR = (uint32_t)Structure->Period ; - 8005f6a: 683b ldr r3, [r7, #0] - 8005f6c: 689a ldr r2, [r3, #8] - 8005f6e: 687b ldr r3, [r7, #4] - 8005f70: 62da str r2, [r3, #44] @ 0x2c - - /* Set the Prescaler value */ - TIMx->PSC = Structure->Prescaler; - 8005f72: 683b ldr r3, [r7, #0] - 8005f74: 681a ldr r2, [r3, #0] +08005f54 : + 8005f54: b480 push {r7} + 8005f56: b087 sub sp, #28 + 8005f58: af00 add r7, sp, #0 + 8005f5a: 6078 str r0, [r7, #4] + 8005f5c: 6039 str r1, [r7, #0] + 8005f5e: 687b ldr r3, [r7, #4] + 8005f60: 6a1b ldr r3, [r3, #32] + 8005f62: 613b str r3, [r7, #16] + 8005f64: 687b ldr r3, [r7, #4] + 8005f66: 6a1b ldr r3, [r3, #32] + 8005f68: f423 5280 bic.w r2, r3, #4096 @ 0x1000 + 8005f6c: 687b ldr r3, [r7, #4] + 8005f6e: 621a str r2, [r3, #32] + 8005f70: 687b ldr r3, [r7, #4] + 8005f72: 685b ldr r3, [r3, #4] + 8005f74: 617b str r3, [r7, #20] 8005f76: 687b ldr r3, [r7, #4] - 8005f78: 629a str r2, [r3, #40] @ 0x28 - - if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) - 8005f7a: 687b ldr r3, [r7, #4] - 8005f7c: 4a0e ldr r2, [pc, #56] @ (8005fb8 ) - 8005f7e: 4293 cmp r3, r2 - 8005f80: d003 beq.n 8005f8a - 8005f82: 687b ldr r3, [r7, #4] - 8005f84: 4a10 ldr r2, [pc, #64] @ (8005fc8 ) - 8005f86: 4293 cmp r3, r2 - 8005f88: d103 bne.n 8005f92 - { - /* Set the Repetition Counter value */ - TIMx->RCR = Structure->RepetitionCounter; - 8005f8a: 683b ldr r3, [r7, #0] - 8005f8c: 691a ldr r2, [r3, #16] - 8005f8e: 687b ldr r3, [r7, #4] - 8005f90: 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); - 8005f92: 687b ldr r3, [r7, #4] - 8005f94: 681b ldr r3, [r3, #0] - 8005f96: f043 0204 orr.w r2, r3, #4 - 8005f9a: 687b ldr r3, [r7, #4] - 8005f9c: 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; - 8005f9e: 687b ldr r3, [r7, #4] - 8005fa0: 2201 movs r2, #1 - 8005fa2: 615a str r2, [r3, #20] - - TIMx->CR1 = tmpcr1; - 8005fa4: 687b ldr r3, [r7, #4] - 8005fa6: 68fa ldr r2, [r7, #12] - 8005fa8: 601a str r2, [r3, #0] -} - 8005faa: bf00 nop - 8005fac: 3714 adds r7, #20 - 8005fae: 46bd mov sp, r7 - 8005fb0: f85d 7b04 ldr.w r7, [sp], #4 - 8005fb4: 4770 bx lr - 8005fb6: bf00 nop - 8005fb8: 40010000 .word 0x40010000 - 8005fbc: 40000400 .word 0x40000400 - 8005fc0: 40000800 .word 0x40000800 - 8005fc4: 40000c00 .word 0x40000c00 - 8005fc8: 40010400 .word 0x40010400 - 8005fcc: 40014000 .word 0x40014000 - 8005fd0: 40014400 .word 0x40014400 - 8005fd4: 40014800 .word 0x40014800 - 8005fd8: 40001800 .word 0x40001800 - 8005fdc: 40001c00 .word 0x40001c00 - 8005fe0: 40002000 .word 0x40002000 - -08005fe4 : - * @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) -{ - 8005fe4: b480 push {r7} - 8005fe6: b087 sub sp, #28 - 8005fe8: af00 add r7, sp, #0 - 8005fea: 6078 str r0, [r7, #4] - 8005fec: 6039 str r1, [r7, #0] - uint32_t tmpccmrx; - uint32_t tmpccer; - uint32_t tmpcr2; - - /* Get the TIMx CCER register value */ - tmpccer = TIMx->CCER; - 8005fee: 687b ldr r3, [r7, #4] - 8005ff0: 6a1b ldr r3, [r3, #32] - 8005ff2: 617b str r3, [r7, #20] - - /* Disable the Channel 1: Reset the CC1E Bit */ - TIMx->CCER &= ~TIM_CCER_CC1E; - 8005ff4: 687b ldr r3, [r7, #4] - 8005ff6: 6a1b ldr r3, [r3, #32] - 8005ff8: f023 0201 bic.w r2, r3, #1 - 8005ffc: 687b ldr r3, [r7, #4] - 8005ffe: 621a str r2, [r3, #32] - - /* Get the TIMx CR2 register value */ - tmpcr2 = TIMx->CR2; - 8006000: 687b ldr r3, [r7, #4] - 8006002: 685b ldr r3, [r3, #4] - 8006004: 613b str r3, [r7, #16] - - /* Get the TIMx CCMR1 register value */ - tmpccmrx = TIMx->CCMR1; - 8006006: 687b ldr r3, [r7, #4] - 8006008: 699b ldr r3, [r3, #24] - 800600a: 60fb str r3, [r7, #12] - - /* Reset the Output Compare Mode Bits */ - tmpccmrx &= ~TIM_CCMR1_OC1M; - 800600c: 68fb ldr r3, [r7, #12] - 800600e: f023 0370 bic.w r3, r3, #112 @ 0x70 - 8006012: 60fb str r3, [r7, #12] - tmpccmrx &= ~TIM_CCMR1_CC1S; - 8006014: 68fb ldr r3, [r7, #12] - 8006016: f023 0303 bic.w r3, r3, #3 - 800601a: 60fb str r3, [r7, #12] - /* Select the Output Compare Mode */ - tmpccmrx |= OC_Config->OCMode; - 800601c: 683b ldr r3, [r7, #0] - 800601e: 681b ldr r3, [r3, #0] - 8006020: 68fa ldr r2, [r7, #12] - 8006022: 4313 orrs r3, r2 - 8006024: 60fb str r3, [r7, #12] - - /* Reset the Output Polarity level */ - tmpccer &= ~TIM_CCER_CC1P; - 8006026: 697b ldr r3, [r7, #20] - 8006028: f023 0302 bic.w r3, r3, #2 - 800602c: 617b str r3, [r7, #20] - /* Set the Output Compare Polarity */ - tmpccer |= OC_Config->OCPolarity; - 800602e: 683b ldr r3, [r7, #0] - 8006030: 689b ldr r3, [r3, #8] - 8006032: 697a ldr r2, [r7, #20] - 8006034: 4313 orrs r3, r2 - 8006036: 617b str r3, [r7, #20] - - if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1)) - 8006038: 687b ldr r3, [r7, #4] - 800603a: 4a20 ldr r2, [pc, #128] @ (80060bc ) - 800603c: 4293 cmp r3, r2 - 800603e: d003 beq.n 8006048 - 8006040: 687b ldr r3, [r7, #4] - 8006042: 4a1f ldr r2, [pc, #124] @ (80060c0 ) - 8006044: 4293 cmp r3, r2 - 8006046: d10c bne.n 8006062 - { - /* Check parameters */ - assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); - - /* Reset the Output N Polarity level */ - tmpccer &= ~TIM_CCER_CC1NP; - 8006048: 697b ldr r3, [r7, #20] - 800604a: f023 0308 bic.w r3, r3, #8 - 800604e: 617b str r3, [r7, #20] - /* Set the Output N Polarity */ - tmpccer |= OC_Config->OCNPolarity; - 8006050: 683b ldr r3, [r7, #0] - 8006052: 68db ldr r3, [r3, #12] - 8006054: 697a ldr r2, [r7, #20] - 8006056: 4313 orrs r3, r2 - 8006058: 617b str r3, [r7, #20] - /* Reset the Output N State */ - tmpccer &= ~TIM_CCER_CC1NE; - 800605a: 697b ldr r3, [r7, #20] - 800605c: f023 0304 bic.w r3, r3, #4 - 8006060: 617b str r3, [r7, #20] - } - - if (IS_TIM_BREAK_INSTANCE(TIMx)) - 8006062: 687b ldr r3, [r7, #4] - 8006064: 4a15 ldr r2, [pc, #84] @ (80060bc ) - 8006066: 4293 cmp r3, r2 - 8006068: d003 beq.n 8006072 - 800606a: 687b ldr r3, [r7, #4] - 800606c: 4a14 ldr r2, [pc, #80] @ (80060c0 ) - 800606e: 4293 cmp r3, r2 - 8006070: d111 bne.n 8006096 - /* 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; - 8006072: 693b ldr r3, [r7, #16] - 8006074: f423 7380 bic.w r3, r3, #256 @ 0x100 - 8006078: 613b str r3, [r7, #16] - tmpcr2 &= ~TIM_CR2_OIS1N; - 800607a: 693b ldr r3, [r7, #16] - 800607c: f423 7300 bic.w r3, r3, #512 @ 0x200 - 8006080: 613b str r3, [r7, #16] - /* Set the Output Idle state */ - tmpcr2 |= OC_Config->OCIdleState; - 8006082: 683b ldr r3, [r7, #0] - 8006084: 695b ldr r3, [r3, #20] - 8006086: 693a ldr r2, [r7, #16] - 8006088: 4313 orrs r3, r2 - 800608a: 613b str r3, [r7, #16] - /* Set the Output N Idle state */ - tmpcr2 |= OC_Config->OCNIdleState; - 800608c: 683b ldr r3, [r7, #0] - 800608e: 699b ldr r3, [r3, #24] - 8006090: 693a ldr r2, [r7, #16] - 8006092: 4313 orrs r3, r2 - 8006094: 613b str r3, [r7, #16] - } - - /* Write to TIMx CR2 */ - TIMx->CR2 = tmpcr2; - 8006096: 687b ldr r3, [r7, #4] - 8006098: 693a ldr r2, [r7, #16] - 800609a: 605a str r2, [r3, #4] - - /* Write to TIMx CCMR1 */ - TIMx->CCMR1 = tmpccmrx; - 800609c: 687b ldr r3, [r7, #4] - 800609e: 68fa ldr r2, [r7, #12] - 80060a0: 619a str r2, [r3, #24] - - /* Set the Capture Compare Register value */ - TIMx->CCR1 = OC_Config->Pulse; - 80060a2: 683b ldr r3, [r7, #0] - 80060a4: 685a ldr r2, [r3, #4] - 80060a6: 687b ldr r3, [r7, #4] - 80060a8: 635a str r2, [r3, #52] @ 0x34 - - /* Write to TIMx CCER */ - TIMx->CCER = tmpccer; - 80060aa: 687b ldr r3, [r7, #4] - 80060ac: 697a ldr r2, [r7, #20] - 80060ae: 621a str r2, [r3, #32] -} - 80060b0: bf00 nop - 80060b2: 371c adds r7, #28 - 80060b4: 46bd mov sp, r7 - 80060b6: f85d 7b04 ldr.w r7, [sp], #4 - 80060ba: 4770 bx lr - 80060bc: 40010000 .word 0x40010000 - 80060c0: 40010400 .word 0x40010400 - -080060c4 : - * @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) -{ - 80060c4: b480 push {r7} - 80060c6: b087 sub sp, #28 - 80060c8: af00 add r7, sp, #0 - 80060ca: 6078 str r0, [r7, #4] - 80060cc: 6039 str r1, [r7, #0] - uint32_t tmpccmrx; - uint32_t tmpccer; - uint32_t tmpcr2; - - /* Get the TIMx CCER register value */ - tmpccer = TIMx->CCER; - 80060ce: 687b ldr r3, [r7, #4] - 80060d0: 6a1b ldr r3, [r3, #32] - 80060d2: 617b str r3, [r7, #20] - - /* Disable the Channel 2: Reset the CC2E Bit */ - TIMx->CCER &= ~TIM_CCER_CC2E; - 80060d4: 687b ldr r3, [r7, #4] - 80060d6: 6a1b ldr r3, [r3, #32] - 80060d8: f023 0210 bic.w r2, r3, #16 - 80060dc: 687b ldr r3, [r7, #4] - 80060de: 621a str r2, [r3, #32] - - /* Get the TIMx CR2 register value */ - tmpcr2 = TIMx->CR2; - 80060e0: 687b ldr r3, [r7, #4] - 80060e2: 685b ldr r3, [r3, #4] - 80060e4: 613b str r3, [r7, #16] - - /* Get the TIMx CCMR1 register value */ - tmpccmrx = TIMx->CCMR1; - 80060e6: 687b ldr r3, [r7, #4] - 80060e8: 699b ldr r3, [r3, #24] - 80060ea: 60fb str r3, [r7, #12] - - /* Reset the Output Compare mode and Capture/Compare selection Bits */ - tmpccmrx &= ~TIM_CCMR1_OC2M; - 80060ec: 68fb ldr r3, [r7, #12] - 80060ee: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 - 80060f2: 60fb str r3, [r7, #12] - tmpccmrx &= ~TIM_CCMR1_CC2S; - 80060f4: 68fb ldr r3, [r7, #12] - 80060f6: f423 7340 bic.w r3, r3, #768 @ 0x300 - 80060fa: 60fb str r3, [r7, #12] - - /* Select the Output Compare Mode */ - tmpccmrx |= (OC_Config->OCMode << 8U); - 80060fc: 683b ldr r3, [r7, #0] - 80060fe: 681b ldr r3, [r3, #0] - 8006100: 021b lsls r3, r3, #8 - 8006102: 68fa ldr r2, [r7, #12] - 8006104: 4313 orrs r3, r2 - 8006106: 60fb str r3, [r7, #12] - - /* Reset the Output Polarity level */ - tmpccer &= ~TIM_CCER_CC2P; - 8006108: 697b ldr r3, [r7, #20] - 800610a: f023 0320 bic.w r3, r3, #32 - 800610e: 617b str r3, [r7, #20] - /* Set the Output Compare Polarity */ - tmpccer |= (OC_Config->OCPolarity << 4U); - 8006110: 683b ldr r3, [r7, #0] - 8006112: 689b ldr r3, [r3, #8] - 8006114: 011b lsls r3, r3, #4 - 8006116: 697a ldr r2, [r7, #20] - 8006118: 4313 orrs r3, r2 - 800611a: 617b str r3, [r7, #20] - - if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2)) - 800611c: 687b ldr r3, [r7, #4] - 800611e: 4a22 ldr r2, [pc, #136] @ (80061a8 ) - 8006120: 4293 cmp r3, r2 - 8006122: d003 beq.n 800612c - 8006124: 687b ldr r3, [r7, #4] - 8006126: 4a21 ldr r2, [pc, #132] @ (80061ac ) - 8006128: 4293 cmp r3, r2 - 800612a: d10d bne.n 8006148 - { - assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); - - /* Reset the Output N Polarity level */ - tmpccer &= ~TIM_CCER_CC2NP; - 800612c: 697b ldr r3, [r7, #20] - 800612e: f023 0380 bic.w r3, r3, #128 @ 0x80 - 8006132: 617b str r3, [r7, #20] - /* Set the Output N Polarity */ - tmpccer |= (OC_Config->OCNPolarity << 4U); - 8006134: 683b ldr r3, [r7, #0] - 8006136: 68db ldr r3, [r3, #12] - 8006138: 011b lsls r3, r3, #4 - 800613a: 697a ldr r2, [r7, #20] - 800613c: 4313 orrs r3, r2 - 800613e: 617b str r3, [r7, #20] - /* Reset the Output N State */ - tmpccer &= ~TIM_CCER_CC2NE; - 8006140: 697b ldr r3, [r7, #20] - 8006142: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8006146: 617b str r3, [r7, #20] - } - - if (IS_TIM_BREAK_INSTANCE(TIMx)) - 8006148: 687b ldr r3, [r7, #4] - 800614a: 4a17 ldr r2, [pc, #92] @ (80061a8 ) - 800614c: 4293 cmp r3, r2 - 800614e: d003 beq.n 8006158 - 8006150: 687b ldr r3, [r7, #4] - 8006152: 4a16 ldr r2, [pc, #88] @ (80061ac ) - 8006154: 4293 cmp r3, r2 - 8006156: d113 bne.n 8006180 - /* 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; - 8006158: 693b ldr r3, [r7, #16] - 800615a: f423 6380 bic.w r3, r3, #1024 @ 0x400 - 800615e: 613b str r3, [r7, #16] - tmpcr2 &= ~TIM_CR2_OIS2N; - 8006160: 693b ldr r3, [r7, #16] - 8006162: f423 6300 bic.w r3, r3, #2048 @ 0x800 - 8006166: 613b str r3, [r7, #16] - /* Set the Output Idle state */ - tmpcr2 |= (OC_Config->OCIdleState << 2U); - 8006168: 683b ldr r3, [r7, #0] - 800616a: 695b ldr r3, [r3, #20] - 800616c: 009b lsls r3, r3, #2 - 800616e: 693a ldr r2, [r7, #16] - 8006170: 4313 orrs r3, r2 - 8006172: 613b str r3, [r7, #16] - /* Set the Output N Idle state */ - tmpcr2 |= (OC_Config->OCNIdleState << 2U); - 8006174: 683b ldr r3, [r7, #0] - 8006176: 699b ldr r3, [r3, #24] - 8006178: 009b lsls r3, r3, #2 - 800617a: 693a ldr r2, [r7, #16] - 800617c: 4313 orrs r3, r2 - 800617e: 613b str r3, [r7, #16] - } - - /* Write to TIMx CR2 */ - TIMx->CR2 = tmpcr2; - 8006180: 687b ldr r3, [r7, #4] - 8006182: 693a ldr r2, [r7, #16] - 8006184: 605a str r2, [r3, #4] - - /* Write to TIMx CCMR1 */ - TIMx->CCMR1 = tmpccmrx; - 8006186: 687b ldr r3, [r7, #4] - 8006188: 68fa ldr r2, [r7, #12] - 800618a: 619a str r2, [r3, #24] - - /* Set the Capture Compare Register value */ - TIMx->CCR2 = OC_Config->Pulse; - 800618c: 683b ldr r3, [r7, #0] - 800618e: 685a ldr r2, [r3, #4] - 8006190: 687b ldr r3, [r7, #4] - 8006192: 639a str r2, [r3, #56] @ 0x38 - - /* Write to TIMx CCER */ - TIMx->CCER = tmpccer; - 8006194: 687b ldr r3, [r7, #4] - 8006196: 697a ldr r2, [r7, #20] - 8006198: 621a str r2, [r3, #32] -} - 800619a: bf00 nop - 800619c: 371c adds r7, #28 - 800619e: 46bd mov sp, r7 - 80061a0: f85d 7b04 ldr.w r7, [sp], #4 - 80061a4: 4770 bx lr - 80061a6: bf00 nop - 80061a8: 40010000 .word 0x40010000 - 80061ac: 40010400 .word 0x40010400 - -080061b0 : - * @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) -{ - 80061b0: b480 push {r7} - 80061b2: b087 sub sp, #28 - 80061b4: af00 add r7, sp, #0 - 80061b6: 6078 str r0, [r7, #4] - 80061b8: 6039 str r1, [r7, #0] - uint32_t tmpccmrx; - uint32_t tmpccer; - uint32_t tmpcr2; - - /* Get the TIMx CCER register value */ - tmpccer = TIMx->CCER; - 80061ba: 687b ldr r3, [r7, #4] - 80061bc: 6a1b ldr r3, [r3, #32] - 80061be: 617b str r3, [r7, #20] - - /* Disable the Channel 3: Reset the CC2E Bit */ - TIMx->CCER &= ~TIM_CCER_CC3E; - 80061c0: 687b ldr r3, [r7, #4] - 80061c2: 6a1b ldr r3, [r3, #32] - 80061c4: f423 7280 bic.w r2, r3, #256 @ 0x100 - 80061c8: 687b ldr r3, [r7, #4] - 80061ca: 621a str r2, [r3, #32] - - /* Get the TIMx CR2 register value */ - tmpcr2 = TIMx->CR2; - 80061cc: 687b ldr r3, [r7, #4] - 80061ce: 685b ldr r3, [r3, #4] - 80061d0: 613b str r3, [r7, #16] - - /* Get the TIMx CCMR2 register value */ - tmpccmrx = TIMx->CCMR2; - 80061d2: 687b ldr r3, [r7, #4] - 80061d4: 69db ldr r3, [r3, #28] - 80061d6: 60fb str r3, [r7, #12] - - /* Reset the Output Compare mode and Capture/Compare selection Bits */ - tmpccmrx &= ~TIM_CCMR2_OC3M; - 80061d8: 68fb ldr r3, [r7, #12] - 80061da: f023 0370 bic.w r3, r3, #112 @ 0x70 - 80061de: 60fb str r3, [r7, #12] - tmpccmrx &= ~TIM_CCMR2_CC3S; - 80061e0: 68fb ldr r3, [r7, #12] - 80061e2: f023 0303 bic.w r3, r3, #3 - 80061e6: 60fb str r3, [r7, #12] - /* Select the Output Compare Mode */ - tmpccmrx |= OC_Config->OCMode; - 80061e8: 683b ldr r3, [r7, #0] - 80061ea: 681b ldr r3, [r3, #0] - 80061ec: 68fa ldr r2, [r7, #12] - 80061ee: 4313 orrs r3, r2 - 80061f0: 60fb str r3, [r7, #12] - - /* Reset the Output Polarity level */ - tmpccer &= ~TIM_CCER_CC3P; - 80061f2: 697b ldr r3, [r7, #20] - 80061f4: f423 7300 bic.w r3, r3, #512 @ 0x200 - 80061f8: 617b str r3, [r7, #20] - /* Set the Output Compare Polarity */ - tmpccer |= (OC_Config->OCPolarity << 8U); - 80061fa: 683b ldr r3, [r7, #0] - 80061fc: 689b ldr r3, [r3, #8] - 80061fe: 021b lsls r3, r3, #8 - 8006200: 697a ldr r2, [r7, #20] - 8006202: 4313 orrs r3, r2 - 8006204: 617b str r3, [r7, #20] - - if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3)) - 8006206: 687b ldr r3, [r7, #4] - 8006208: 4a21 ldr r2, [pc, #132] @ (8006290 ) - 800620a: 4293 cmp r3, r2 - 800620c: d003 beq.n 8006216 - 800620e: 687b ldr r3, [r7, #4] - 8006210: 4a20 ldr r2, [pc, #128] @ (8006294 ) - 8006212: 4293 cmp r3, r2 - 8006214: d10d bne.n 8006232 - { - assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); - - /* Reset the Output N Polarity level */ - tmpccer &= ~TIM_CCER_CC3NP; - 8006216: 697b ldr r3, [r7, #20] - 8006218: f423 6300 bic.w r3, r3, #2048 @ 0x800 - 800621c: 617b str r3, [r7, #20] - /* Set the Output N Polarity */ - tmpccer |= (OC_Config->OCNPolarity << 8U); - 800621e: 683b ldr r3, [r7, #0] - 8006220: 68db ldr r3, [r3, #12] - 8006222: 021b lsls r3, r3, #8 - 8006224: 697a ldr r2, [r7, #20] - 8006226: 4313 orrs r3, r2 - 8006228: 617b str r3, [r7, #20] - /* Reset the Output N State */ - tmpccer &= ~TIM_CCER_CC3NE; - 800622a: 697b ldr r3, [r7, #20] - 800622c: f423 6380 bic.w r3, r3, #1024 @ 0x400 - 8006230: 617b str r3, [r7, #20] - } - - if (IS_TIM_BREAK_INSTANCE(TIMx)) - 8006232: 687b ldr r3, [r7, #4] - 8006234: 4a16 ldr r2, [pc, #88] @ (8006290 ) - 8006236: 4293 cmp r3, r2 - 8006238: d003 beq.n 8006242 - 800623a: 687b ldr r3, [r7, #4] - 800623c: 4a15 ldr r2, [pc, #84] @ (8006294 ) - 800623e: 4293 cmp r3, r2 - 8006240: d113 bne.n 800626a - /* 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; - 8006242: 693b ldr r3, [r7, #16] - 8006244: f423 5380 bic.w r3, r3, #4096 @ 0x1000 - 8006248: 613b str r3, [r7, #16] - tmpcr2 &= ~TIM_CR2_OIS3N; - 800624a: 693b ldr r3, [r7, #16] - 800624c: f423 5300 bic.w r3, r3, #8192 @ 0x2000 - 8006250: 613b str r3, [r7, #16] - /* Set the Output Idle state */ - tmpcr2 |= (OC_Config->OCIdleState << 4U); - 8006252: 683b ldr r3, [r7, #0] - 8006254: 695b ldr r3, [r3, #20] - 8006256: 011b lsls r3, r3, #4 - 8006258: 693a ldr r2, [r7, #16] - 800625a: 4313 orrs r3, r2 - 800625c: 613b str r3, [r7, #16] - /* Set the Output N Idle state */ - tmpcr2 |= (OC_Config->OCNIdleState << 4U); - 800625e: 683b ldr r3, [r7, #0] - 8006260: 699b ldr r3, [r3, #24] - 8006262: 011b lsls r3, r3, #4 - 8006264: 693a ldr r2, [r7, #16] - 8006266: 4313 orrs r3, r2 - 8006268: 613b str r3, [r7, #16] - } - - /* Write to TIMx CR2 */ - TIMx->CR2 = tmpcr2; - 800626a: 687b ldr r3, [r7, #4] - 800626c: 693a ldr r2, [r7, #16] - 800626e: 605a str r2, [r3, #4] - - /* Write to TIMx CCMR2 */ - TIMx->CCMR2 = tmpccmrx; - 8006270: 687b ldr r3, [r7, #4] - 8006272: 68fa ldr r2, [r7, #12] - 8006274: 61da str r2, [r3, #28] - - /* Set the Capture Compare Register value */ - TIMx->CCR3 = OC_Config->Pulse; - 8006276: 683b ldr r3, [r7, #0] - 8006278: 685a ldr r2, [r3, #4] - 800627a: 687b ldr r3, [r7, #4] - 800627c: 63da str r2, [r3, #60] @ 0x3c - - /* Write to TIMx CCER */ - TIMx->CCER = tmpccer; - 800627e: 687b ldr r3, [r7, #4] - 8006280: 697a ldr r2, [r7, #20] - 8006282: 621a str r2, [r3, #32] -} - 8006284: bf00 nop - 8006286: 371c adds r7, #28 - 8006288: 46bd mov sp, r7 - 800628a: f85d 7b04 ldr.w r7, [sp], #4 - 800628e: 4770 bx lr - 8006290: 40010000 .word 0x40010000 - 8006294: 40010400 .word 0x40010400 - -08006298 : - * @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) -{ - 8006298: b480 push {r7} - 800629a: b087 sub sp, #28 - 800629c: af00 add r7, sp, #0 - 800629e: 6078 str r0, [r7, #4] - 80062a0: 6039 str r1, [r7, #0] - uint32_t tmpccmrx; - uint32_t tmpccer; - uint32_t tmpcr2; - - /* Get the TIMx CCER register value */ - tmpccer = TIMx->CCER; - 80062a2: 687b ldr r3, [r7, #4] - 80062a4: 6a1b ldr r3, [r3, #32] - 80062a6: 613b str r3, [r7, #16] - - /* Disable the Channel 4: Reset the CC4E Bit */ - TIMx->CCER &= ~TIM_CCER_CC4E; - 80062a8: 687b ldr r3, [r7, #4] - 80062aa: 6a1b ldr r3, [r3, #32] - 80062ac: f423 5280 bic.w r2, r3, #4096 @ 0x1000 - 80062b0: 687b ldr r3, [r7, #4] - 80062b2: 621a str r2, [r3, #32] - - /* Get the TIMx CR2 register value */ - tmpcr2 = TIMx->CR2; - 80062b4: 687b ldr r3, [r7, #4] - 80062b6: 685b ldr r3, [r3, #4] - 80062b8: 617b str r3, [r7, #20] - - /* Get the TIMx CCMR2 register value */ - tmpccmrx = TIMx->CCMR2; - 80062ba: 687b ldr r3, [r7, #4] - 80062bc: 69db ldr r3, [r3, #28] - 80062be: 60fb str r3, [r7, #12] - - /* Reset the Output Compare mode and Capture/Compare selection Bits */ - tmpccmrx &= ~TIM_CCMR2_OC4M; - 80062c0: 68fb ldr r3, [r7, #12] - 80062c2: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 - 80062c6: 60fb str r3, [r7, #12] - tmpccmrx &= ~TIM_CCMR2_CC4S; - 80062c8: 68fb ldr r3, [r7, #12] - 80062ca: f423 7340 bic.w r3, r3, #768 @ 0x300 - 80062ce: 60fb str r3, [r7, #12] - - /* Select the Output Compare Mode */ - tmpccmrx |= (OC_Config->OCMode << 8U); - 80062d0: 683b ldr r3, [r7, #0] - 80062d2: 681b ldr r3, [r3, #0] - 80062d4: 021b lsls r3, r3, #8 - 80062d6: 68fa ldr r2, [r7, #12] - 80062d8: 4313 orrs r3, r2 - 80062da: 60fb str r3, [r7, #12] - - /* Reset the Output Polarity level */ - tmpccer &= ~TIM_CCER_CC4P; - 80062dc: 693b ldr r3, [r7, #16] - 80062de: f423 5300 bic.w r3, r3, #8192 @ 0x2000 - 80062e2: 613b str r3, [r7, #16] - /* Set the Output Compare Polarity */ - tmpccer |= (OC_Config->OCPolarity << 12U); - 80062e4: 683b ldr r3, [r7, #0] - 80062e6: 689b ldr r3, [r3, #8] - 80062e8: 031b lsls r3, r3, #12 - 80062ea: 693a ldr r2, [r7, #16] - 80062ec: 4313 orrs r3, r2 - 80062ee: 613b str r3, [r7, #16] - - if (IS_TIM_BREAK_INSTANCE(TIMx)) - 80062f0: 687b ldr r3, [r7, #4] - 80062f2: 4a12 ldr r2, [pc, #72] @ (800633c ) - 80062f4: 4293 cmp r3, r2 - 80062f6: d003 beq.n 8006300 - 80062f8: 687b ldr r3, [r7, #4] - 80062fa: 4a11 ldr r2, [pc, #68] @ (8006340 ) - 80062fc: 4293 cmp r3, r2 - 80062fe: d109 bne.n 8006314 - { - /* Check parameters */ - assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); - - /* Reset the Output Compare IDLE State */ - tmpcr2 &= ~TIM_CR2_OIS4; - 8006300: 697b ldr r3, [r7, #20] - 8006302: f423 4380 bic.w r3, r3, #16384 @ 0x4000 - 8006306: 617b str r3, [r7, #20] - - /* Set the Output Idle state */ - tmpcr2 |= (OC_Config->OCIdleState << 6U); - 8006308: 683b ldr r3, [r7, #0] - 800630a: 695b ldr r3, [r3, #20] - 800630c: 019b lsls r3, r3, #6 - 800630e: 697a ldr r2, [r7, #20] - 8006310: 4313 orrs r3, r2 - 8006312: 617b str r3, [r7, #20] - } - - /* Write to TIMx CR2 */ - TIMx->CR2 = tmpcr2; - 8006314: 687b ldr r3, [r7, #4] - 8006316: 697a ldr r2, [r7, #20] - 8006318: 605a str r2, [r3, #4] - - /* Write to TIMx CCMR2 */ - TIMx->CCMR2 = tmpccmrx; - 800631a: 687b ldr r3, [r7, #4] - 800631c: 68fa ldr r2, [r7, #12] - 800631e: 61da str r2, [r3, #28] - - /* Set the Capture Compare Register value */ - TIMx->CCR4 = OC_Config->Pulse; - 8006320: 683b ldr r3, [r7, #0] - 8006322: 685a ldr r2, [r3, #4] - 8006324: 687b ldr r3, [r7, #4] - 8006326: 641a str r2, [r3, #64] @ 0x40 - - /* Write to TIMx CCER */ - TIMx->CCER = tmpccer; - 8006328: 687b ldr r3, [r7, #4] - 800632a: 693a ldr r2, [r7, #16] - 800632c: 621a str r2, [r3, #32] -} - 800632e: bf00 nop - 8006330: 371c adds r7, #28 - 8006332: 46bd mov sp, r7 - 8006334: f85d 7b04 ldr.w r7, [sp], #4 - 8006338: 4770 bx lr - 800633a: bf00 nop - 800633c: 40010000 .word 0x40010000 - 8006340: 40010400 .word 0x40010400 - -08006344 : - * @param ChannelState specifies the TIM Channel CCxE bit new state. - * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE. - * @retval None - */ -void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState) -{ - 8006344: b480 push {r7} - 8006346: b087 sub sp, #28 - 8006348: af00 add r7, sp, #0 - 800634a: 60f8 str r0, [r7, #12] - 800634c: 60b9 str r1, [r7, #8] - 800634e: 607a str r2, [r7, #4] - - /* Check the parameters */ - assert_param(IS_TIM_CC1_INSTANCE(TIMx)); - assert_param(IS_TIM_CHANNELS(Channel)); - - tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */ - 8006350: 68bb ldr r3, [r7, #8] - 8006352: f003 031f and.w r3, r3, #31 - 8006356: 2201 movs r2, #1 - 8006358: fa02 f303 lsl.w r3, r2, r3 - 800635c: 617b str r3, [r7, #20] - - /* Reset the CCxE Bit */ - TIMx->CCER &= ~tmp; - 800635e: 68fb ldr r3, [r7, #12] - 8006360: 6a1a ldr r2, [r3, #32] - 8006362: 697b ldr r3, [r7, #20] - 8006364: 43db mvns r3, r3 - 8006366: 401a ands r2, r3 - 8006368: 68fb ldr r3, [r7, #12] - 800636a: 621a str r2, [r3, #32] - - /* Set or reset the CCxE Bit */ - TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */ - 800636c: 68fb ldr r3, [r7, #12] - 800636e: 6a1a ldr r2, [r3, #32] - 8006370: 68bb ldr r3, [r7, #8] - 8006372: f003 031f and.w r3, r3, #31 - 8006376: 6879 ldr r1, [r7, #4] - 8006378: fa01 f303 lsl.w r3, r1, r3 - 800637c: 431a orrs r2, r3 - 800637e: 68fb ldr r3, [r7, #12] - 8006380: 621a str r2, [r3, #32] -} - 8006382: bf00 nop - 8006384: 371c adds r7, #28 - 8006386: 46bd mov sp, r7 - 8006388: f85d 7b04 ldr.w r7, [sp], #4 - 800638c: 4770 bx lr + 8005f78: 69db ldr r3, [r3, #28] + 8005f7a: 60fb str r3, [r7, #12] + 8005f7c: 68fb ldr r3, [r7, #12] + 8005f7e: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 + 8005f82: 60fb str r3, [r7, #12] + 8005f84: 68fb ldr r3, [r7, #12] + 8005f86: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8005f8a: 60fb str r3, [r7, #12] + 8005f8c: 683b ldr r3, [r7, #0] + 8005f8e: 681b ldr r3, [r3, #0] + 8005f90: 021b lsls r3, r3, #8 + 8005f92: 68fa ldr r2, [r7, #12] + 8005f94: 4313 orrs r3, r2 + 8005f96: 60fb str r3, [r7, #12] + 8005f98: 693b ldr r3, [r7, #16] + 8005f9a: f423 5300 bic.w r3, r3, #8192 @ 0x2000 + 8005f9e: 613b str r3, [r7, #16] + 8005fa0: 683b ldr r3, [r7, #0] + 8005fa2: 689b ldr r3, [r3, #8] + 8005fa4: 031b lsls r3, r3, #12 + 8005fa6: 693a ldr r2, [r7, #16] + 8005fa8: 4313 orrs r3, r2 + 8005faa: 613b str r3, [r7, #16] + 8005fac: 687b ldr r3, [r7, #4] + 8005fae: 4a12 ldr r2, [pc, #72] @ (8005ff8 ) + 8005fb0: 4293 cmp r3, r2 + 8005fb2: d003 beq.n 8005fbc + 8005fb4: 687b ldr r3, [r7, #4] + 8005fb6: 4a11 ldr r2, [pc, #68] @ (8005ffc ) + 8005fb8: 4293 cmp r3, r2 + 8005fba: d109 bne.n 8005fd0 + 8005fbc: 697b ldr r3, [r7, #20] + 8005fbe: f423 4380 bic.w r3, r3, #16384 @ 0x4000 + 8005fc2: 617b str r3, [r7, #20] + 8005fc4: 683b ldr r3, [r7, #0] + 8005fc6: 695b ldr r3, [r3, #20] + 8005fc8: 019b lsls r3, r3, #6 + 8005fca: 697a ldr r2, [r7, #20] + 8005fcc: 4313 orrs r3, r2 + 8005fce: 617b str r3, [r7, #20] + 8005fd0: 687b ldr r3, [r7, #4] + 8005fd2: 697a ldr r2, [r7, #20] + 8005fd4: 605a str r2, [r3, #4] + 8005fd6: 687b ldr r3, [r7, #4] + 8005fd8: 68fa ldr r2, [r7, #12] + 8005fda: 61da str r2, [r3, #28] + 8005fdc: 683b ldr r3, [r7, #0] + 8005fde: 685a ldr r2, [r3, #4] + 8005fe0: 687b ldr r3, [r7, #4] + 8005fe2: 641a str r2, [r3, #64] @ 0x40 + 8005fe4: 687b ldr r3, [r7, #4] + 8005fe6: 693a ldr r2, [r7, #16] + 8005fe8: 621a str r2, [r3, #32] + 8005fea: bf00 nop + 8005fec: 371c adds r7, #28 + 8005fee: 46bd mov sp, r7 + 8005ff0: f85d 7b04 ldr.w r7, [sp], #4 + 8005ff4: 4770 bx lr + 8005ff6: bf00 nop + 8005ff8: 40010000 .word 0x40010000 + 8005ffc: 40010400 .word 0x40010400 + +08006000 : + 8006000: b480 push {r7} + 8006002: b087 sub sp, #28 + 8006004: af00 add r7, sp, #0 + 8006006: 60f8 str r0, [r7, #12] + 8006008: 60b9 str r1, [r7, #8] + 800600a: 607a str r2, [r7, #4] + 800600c: 68bb ldr r3, [r7, #8] + 800600e: f003 031f and.w r3, r3, #31 + 8006012: 2201 movs r2, #1 + 8006014: fa02 f303 lsl.w r3, r2, r3 + 8006018: 617b str r3, [r7, #20] + 800601a: 68fb ldr r3, [r7, #12] + 800601c: 6a1a ldr r2, [r3, #32] + 800601e: 697b ldr r3, [r7, #20] + 8006020: 43db mvns r3, r3 + 8006022: 401a ands r2, r3 + 8006024: 68fb ldr r3, [r7, #12] + 8006026: 621a str r2, [r3, #32] + 8006028: 68fb ldr r3, [r7, #12] + 800602a: 6a1a ldr r2, [r3, #32] + 800602c: 68bb ldr r3, [r7, #8] + 800602e: f003 031f and.w r3, r3, #31 + 8006032: 6879 ldr r1, [r7, #4] + 8006034: fa01 f303 lsl.w r3, r1, r3 + 8006038: 431a orrs r2, r3 + 800603a: 68fb ldr r3, [r7, #12] + 800603c: 621a str r2, [r3, #32] + 800603e: bf00 nop + 8006040: 371c adds r7, #28 + 8006042: 46bd mov sp, r7 + 8006044: f85d 7b04 ldr.w r7, [sp], #4 + 8006048: 4770 bx lr ... -08006390 : - * mode. - * @retval HAL status - */ -HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, - const TIM_MasterConfigTypeDef *sMasterConfig) -{ - 8006390: b480 push {r7} - 8006392: b085 sub sp, #20 - 8006394: af00 add r7, sp, #0 - 8006396: 6078 str r0, [r7, #4] - 8006398: 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)); +0800604c : + 800604c: b480 push {r7} + 800604e: b085 sub sp, #20 + 8006050: af00 add r7, sp, #0 + 8006052: 6078 str r0, [r7, #4] + 8006054: 6039 str r1, [r7, #0] + 8006056: 687b ldr r3, [r7, #4] + 8006058: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 800605c: 2b01 cmp r3, #1 + 800605e: d101 bne.n 8006064 + 8006060: 2302 movs r3, #2 + 8006062: e05a b.n 800611a + 8006064: 687b ldr r3, [r7, #4] + 8006066: 2201 movs r2, #1 + 8006068: f883 203c strb.w r2, [r3, #60] @ 0x3c + 800606c: 687b ldr r3, [r7, #4] + 800606e: 2202 movs r2, #2 + 8006070: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8006074: 687b ldr r3, [r7, #4] + 8006076: 681b ldr r3, [r3, #0] + 8006078: 685b ldr r3, [r3, #4] + 800607a: 60fb str r3, [r7, #12] + 800607c: 687b ldr r3, [r7, #4] + 800607e: 681b ldr r3, [r3, #0] + 8006080: 689b ldr r3, [r3, #8] + 8006082: 60bb str r3, [r7, #8] + 8006084: 68fb ldr r3, [r7, #12] + 8006086: f023 0370 bic.w r3, r3, #112 @ 0x70 + 800608a: 60fb str r3, [r7, #12] + 800608c: 683b ldr r3, [r7, #0] + 800608e: 681b ldr r3, [r3, #0] + 8006090: 68fa ldr r2, [r7, #12] + 8006092: 4313 orrs r3, r2 + 8006094: 60fb str r3, [r7, #12] + 8006096: 687b ldr r3, [r7, #4] + 8006098: 681b ldr r3, [r3, #0] + 800609a: 68fa ldr r2, [r7, #12] + 800609c: 605a str r2, [r3, #4] + 800609e: 687b ldr r3, [r7, #4] + 80060a0: 681b ldr r3, [r3, #0] + 80060a2: 4a21 ldr r2, [pc, #132] @ (8006128 ) + 80060a4: 4293 cmp r3, r2 + 80060a6: d022 beq.n 80060ee + 80060a8: 687b ldr r3, [r7, #4] + 80060aa: 681b ldr r3, [r3, #0] + 80060ac: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 80060b0: d01d beq.n 80060ee + 80060b2: 687b ldr r3, [r7, #4] + 80060b4: 681b ldr r3, [r3, #0] + 80060b6: 4a1d ldr r2, [pc, #116] @ (800612c ) + 80060b8: 4293 cmp r3, r2 + 80060ba: d018 beq.n 80060ee + 80060bc: 687b ldr r3, [r7, #4] + 80060be: 681b ldr r3, [r3, #0] + 80060c0: 4a1b ldr r2, [pc, #108] @ (8006130 ) + 80060c2: 4293 cmp r3, r2 + 80060c4: d013 beq.n 80060ee + 80060c6: 687b ldr r3, [r7, #4] + 80060c8: 681b ldr r3, [r3, #0] + 80060ca: 4a1a ldr r2, [pc, #104] @ (8006134 ) + 80060cc: 4293 cmp r3, r2 + 80060ce: d00e beq.n 80060ee + 80060d0: 687b ldr r3, [r7, #4] + 80060d2: 681b ldr r3, [r3, #0] + 80060d4: 4a18 ldr r2, [pc, #96] @ (8006138 ) + 80060d6: 4293 cmp r3, r2 + 80060d8: d009 beq.n 80060ee + 80060da: 687b ldr r3, [r7, #4] + 80060dc: 681b ldr r3, [r3, #0] + 80060de: 4a17 ldr r2, [pc, #92] @ (800613c ) + 80060e0: 4293 cmp r3, r2 + 80060e2: d004 beq.n 80060ee + 80060e4: 687b ldr r3, [r7, #4] + 80060e6: 681b ldr r3, [r3, #0] + 80060e8: 4a15 ldr r2, [pc, #84] @ (8006140 ) + 80060ea: 4293 cmp r3, r2 + 80060ec: d10c bne.n 8006108 + 80060ee: 68bb ldr r3, [r7, #8] + 80060f0: f023 0380 bic.w r3, r3, #128 @ 0x80 + 80060f4: 60bb str r3, [r7, #8] + 80060f6: 683b ldr r3, [r7, #0] + 80060f8: 685b ldr r3, [r3, #4] + 80060fa: 68ba ldr r2, [r7, #8] + 80060fc: 4313 orrs r3, r2 + 80060fe: 60bb str r3, [r7, #8] + 8006100: 687b ldr r3, [r7, #4] + 8006102: 681b ldr r3, [r3, #0] + 8006104: 68ba ldr r2, [r7, #8] + 8006106: 609a str r2, [r3, #8] + 8006108: 687b ldr r3, [r7, #4] + 800610a: 2201 movs r2, #1 + 800610c: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8006110: 687b ldr r3, [r7, #4] + 8006112: 2200 movs r2, #0 + 8006114: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8006118: 2300 movs r3, #0 + 800611a: 4618 mov r0, r3 + 800611c: 3714 adds r7, #20 + 800611e: 46bd mov sp, r7 + 8006120: f85d 7b04 ldr.w r7, [sp], #4 + 8006124: 4770 bx lr + 8006126: bf00 nop + 8006128: 40010000 .word 0x40010000 + 800612c: 40000400 .word 0x40000400 + 8006130: 40000800 .word 0x40000800 + 8006134: 40000c00 .word 0x40000c00 + 8006138: 40010400 .word 0x40010400 + 800613c: 40014000 .word 0x40014000 + 8006140: 40001800 .word 0x40001800 - /* Check input state */ - __HAL_LOCK(htim); - 800639a: 687b ldr r3, [r7, #4] - 800639c: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 80063a0: 2b01 cmp r3, #1 - 80063a2: d101 bne.n 80063a8 - 80063a4: 2302 movs r3, #2 - 80063a6: e05a b.n 800645e - 80063a8: 687b ldr r3, [r7, #4] - 80063aa: 2201 movs r2, #1 - 80063ac: f883 203c strb.w r2, [r3, #60] @ 0x3c +08006144 : + 8006144: b580 push {r7, lr} + 8006146: b082 sub sp, #8 + 8006148: af00 add r7, sp, #0 + 800614a: 6078 str r0, [r7, #4] + 800614c: 687b ldr r3, [r7, #4] + 800614e: 2b00 cmp r3, #0 + 8006150: d101 bne.n 8006156 + 8006152: 2301 movs r3, #1 + 8006154: e042 b.n 80061dc + 8006156: 687b ldr r3, [r7, #4] + 8006158: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 800615c: b2db uxtb r3, r3 + 800615e: 2b00 cmp r3, #0 + 8006160: d106 bne.n 8006170 + 8006162: 687b ldr r3, [r7, #4] + 8006164: 2200 movs r2, #0 + 8006166: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 800616a: 6878 ldr r0, [r7, #4] + 800616c: f7fb fb3c bl 80017e8 + 8006170: 687b ldr r3, [r7, #4] + 8006172: 2224 movs r2, #36 @ 0x24 + 8006174: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8006178: 687b ldr r3, [r7, #4] + 800617a: 681b ldr r3, [r3, #0] + 800617c: 68da ldr r2, [r3, #12] + 800617e: 687b ldr r3, [r7, #4] + 8006180: 681b ldr r3, [r3, #0] + 8006182: f422 5200 bic.w r2, r2, #8192 @ 0x2000 + 8006186: 60da str r2, [r3, #12] + 8006188: 6878 ldr r0, [r7, #4] + 800618a: f000 ff63 bl 8007054 + 800618e: 687b ldr r3, [r7, #4] + 8006190: 681b ldr r3, [r3, #0] + 8006192: 691a ldr r2, [r3, #16] + 8006194: 687b ldr r3, [r7, #4] + 8006196: 681b ldr r3, [r3, #0] + 8006198: f422 4290 bic.w r2, r2, #18432 @ 0x4800 + 800619c: 611a str r2, [r3, #16] + 800619e: 687b ldr r3, [r7, #4] + 80061a0: 681b ldr r3, [r3, #0] + 80061a2: 695a ldr r2, [r3, #20] + 80061a4: 687b ldr r3, [r7, #4] + 80061a6: 681b ldr r3, [r3, #0] + 80061a8: f022 022a bic.w r2, r2, #42 @ 0x2a + 80061ac: 615a str r2, [r3, #20] + 80061ae: 687b ldr r3, [r7, #4] + 80061b0: 681b ldr r3, [r3, #0] + 80061b2: 68da ldr r2, [r3, #12] + 80061b4: 687b ldr r3, [r7, #4] + 80061b6: 681b ldr r3, [r3, #0] + 80061b8: f442 5200 orr.w r2, r2, #8192 @ 0x2000 + 80061bc: 60da str r2, [r3, #12] + 80061be: 687b ldr r3, [r7, #4] + 80061c0: 2200 movs r2, #0 + 80061c2: 645a str r2, [r3, #68] @ 0x44 + 80061c4: 687b ldr r3, [r7, #4] + 80061c6: 2220 movs r2, #32 + 80061c8: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 80061cc: 687b ldr r3, [r7, #4] + 80061ce: 2220 movs r2, #32 + 80061d0: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80061d4: 687b ldr r3, [r7, #4] + 80061d6: 2200 movs r2, #0 + 80061d8: 635a str r2, [r3, #52] @ 0x34 + 80061da: 2300 movs r3, #0 + 80061dc: 4618 mov r0, r3 + 80061de: 3708 adds r7, #8 + 80061e0: 46bd mov sp, r7 + 80061e2: bd80 pop {r7, pc} - /* Change the handler state */ - htim->State = HAL_TIM_STATE_BUSY; - 80063b0: 687b ldr r3, [r7, #4] - 80063b2: 2202 movs r2, #2 - 80063b4: f883 203d strb.w r2, [r3, #61] @ 0x3d +080061e4 : + 80061e4: b580 push {r7, lr} + 80061e6: b08c sub sp, #48 @ 0x30 + 80061e8: af00 add r7, sp, #0 + 80061ea: 60f8 str r0, [r7, #12] + 80061ec: 60b9 str r1, [r7, #8] + 80061ee: 4613 mov r3, r2 + 80061f0: 80fb strh r3, [r7, #6] + 80061f2: 68fb ldr r3, [r7, #12] + 80061f4: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 80061f8: b2db uxtb r3, r3 + 80061fa: 2b20 cmp r3, #32 + 80061fc: d162 bne.n 80062c4 + 80061fe: 68bb ldr r3, [r7, #8] + 8006200: 2b00 cmp r3, #0 + 8006202: d002 beq.n 800620a + 8006204: 88fb ldrh r3, [r7, #6] + 8006206: 2b00 cmp r3, #0 + 8006208: d101 bne.n 800620e + 800620a: 2301 movs r3, #1 + 800620c: e05b b.n 80062c6 + 800620e: 68ba ldr r2, [r7, #8] + 8006210: 68fb ldr r3, [r7, #12] + 8006212: 621a str r2, [r3, #32] + 8006214: 68fb ldr r3, [r7, #12] + 8006216: 88fa ldrh r2, [r7, #6] + 8006218: 849a strh r2, [r3, #36] @ 0x24 + 800621a: 68fb ldr r3, [r7, #12] + 800621c: 88fa ldrh r2, [r7, #6] + 800621e: 84da strh r2, [r3, #38] @ 0x26 + 8006220: 68fb ldr r3, [r7, #12] + 8006222: 2200 movs r2, #0 + 8006224: 645a str r2, [r3, #68] @ 0x44 + 8006226: 68fb ldr r3, [r7, #12] + 8006228: 2221 movs r2, #33 @ 0x21 + 800622a: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 800622e: 68fb ldr r3, [r7, #12] + 8006230: 6b9b ldr r3, [r3, #56] @ 0x38 + 8006232: 4a27 ldr r2, [pc, #156] @ (80062d0 ) + 8006234: 63da str r2, [r3, #60] @ 0x3c + 8006236: 68fb ldr r3, [r7, #12] + 8006238: 6b9b ldr r3, [r3, #56] @ 0x38 + 800623a: 4a26 ldr r2, [pc, #152] @ (80062d4 ) + 800623c: 641a str r2, [r3, #64] @ 0x40 + 800623e: 68fb ldr r3, [r7, #12] + 8006240: 6b9b ldr r3, [r3, #56] @ 0x38 + 8006242: 4a25 ldr r2, [pc, #148] @ (80062d8 ) + 8006244: 64da str r2, [r3, #76] @ 0x4c + 8006246: 68fb ldr r3, [r7, #12] + 8006248: 6b9b ldr r3, [r3, #56] @ 0x38 + 800624a: 2200 movs r2, #0 + 800624c: 651a str r2, [r3, #80] @ 0x50 + 800624e: f107 0308 add.w r3, r7, #8 + 8006252: 62fb str r3, [r7, #44] @ 0x2c + 8006254: 68fb ldr r3, [r7, #12] + 8006256: 6b98 ldr r0, [r3, #56] @ 0x38 + 8006258: 6afb ldr r3, [r7, #44] @ 0x2c + 800625a: 6819 ldr r1, [r3, #0] + 800625c: 68fb ldr r3, [r7, #12] + 800625e: 681b ldr r3, [r3, #0] + 8006260: 3304 adds r3, #4 + 8006262: 461a mov r2, r3 + 8006264: 88fb ldrh r3, [r7, #6] + 8006266: f7fc f801 bl 800226c + 800626a: 4603 mov r3, r0 + 800626c: 2b00 cmp r3, #0 + 800626e: d008 beq.n 8006282 + 8006270: 68fb ldr r3, [r7, #12] + 8006272: 2210 movs r2, #16 + 8006274: 645a str r2, [r3, #68] @ 0x44 + 8006276: 68fb ldr r3, [r7, #12] + 8006278: 2220 movs r2, #32 + 800627a: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 800627e: 2301 movs r3, #1 + 8006280: e021 b.n 80062c6 + 8006282: 68fb ldr r3, [r7, #12] + 8006284: 681b ldr r3, [r3, #0] + 8006286: f06f 0240 mvn.w r2, #64 @ 0x40 + 800628a: 601a str r2, [r3, #0] + 800628c: 68fb ldr r3, [r7, #12] + 800628e: 681b ldr r3, [r3, #0] + 8006290: 3314 adds r3, #20 + 8006292: 61bb str r3, [r7, #24] + 8006294: 69bb ldr r3, [r7, #24] + 8006296: e853 3f00 ldrex r3, [r3] + 800629a: 617b str r3, [r7, #20] + 800629c: 697b ldr r3, [r7, #20] + 800629e: f043 0380 orr.w r3, r3, #128 @ 0x80 + 80062a2: 62bb str r3, [r7, #40] @ 0x28 + 80062a4: 68fb ldr r3, [r7, #12] + 80062a6: 681b ldr r3, [r3, #0] + 80062a8: 3314 adds r3, #20 + 80062aa: 6aba ldr r2, [r7, #40] @ 0x28 + 80062ac: 627a str r2, [r7, #36] @ 0x24 + 80062ae: 623b str r3, [r7, #32] + 80062b0: 6a39 ldr r1, [r7, #32] + 80062b2: 6a7a ldr r2, [r7, #36] @ 0x24 + 80062b4: e841 2300 strex r3, r2, [r1] + 80062b8: 61fb str r3, [r7, #28] + 80062ba: 69fb ldr r3, [r7, #28] + 80062bc: 2b00 cmp r3, #0 + 80062be: d1e5 bne.n 800628c + 80062c0: 2300 movs r3, #0 + 80062c2: e000 b.n 80062c6 + 80062c4: 2302 movs r3, #2 + 80062c6: 4618 mov r0, r3 + 80062c8: 3730 adds r7, #48 @ 0x30 + 80062ca: 46bd mov sp, r7 + 80062cc: bd80 pop {r7, pc} + 80062ce: bf00 nop + 80062d0: 080068d1 .word 0x080068d1 + 80062d4: 0800696b .word 0x0800696b + 80062d8: 08006aef .word 0x08006aef - /* Get the TIMx CR2 register value */ - tmpcr2 = htim->Instance->CR2; - 80063b8: 687b ldr r3, [r7, #4] - 80063ba: 681b ldr r3, [r3, #0] - 80063bc: 685b ldr r3, [r3, #4] - 80063be: 60fb str r3, [r7, #12] +080062dc : + 80062dc: b580 push {r7, lr} + 80062de: b084 sub sp, #16 + 80062e0: af00 add r7, sp, #0 + 80062e2: 60f8 str r0, [r7, #12] + 80062e4: 60b9 str r1, [r7, #8] + 80062e6: 4613 mov r3, r2 + 80062e8: 80fb strh r3, [r7, #6] + 80062ea: 68fb ldr r3, [r7, #12] + 80062ec: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 + 80062f0: b2db uxtb r3, r3 + 80062f2: 2b20 cmp r3, #32 + 80062f4: d112 bne.n 800631c + 80062f6: 68bb ldr r3, [r7, #8] + 80062f8: 2b00 cmp r3, #0 + 80062fa: d002 beq.n 8006302 + 80062fc: 88fb ldrh r3, [r7, #6] + 80062fe: 2b00 cmp r3, #0 + 8006300: d101 bne.n 8006306 + 8006302: 2301 movs r3, #1 + 8006304: e00b b.n 800631e + 8006306: 68fb ldr r3, [r7, #12] + 8006308: 2200 movs r2, #0 + 800630a: 631a str r2, [r3, #48] @ 0x30 + 800630c: 88fb ldrh r3, [r7, #6] + 800630e: 461a mov r2, r3 + 8006310: 68b9 ldr r1, [r7, #8] + 8006312: 68f8 ldr r0, [r7, #12] + 8006314: f000 fc36 bl 8006b84 + 8006318: 4603 mov r3, r0 + 800631a: e000 b.n 800631e + 800631c: 2302 movs r3, #2 + 800631e: 4618 mov r0, r3 + 8006320: 3710 adds r7, #16 + 8006322: 46bd mov sp, r7 + 8006324: bd80 pop {r7, pc} + ... - /* Get the TIMx SMCR register value */ - tmpsmcr = htim->Instance->SMCR; - 80063c0: 687b ldr r3, [r7, #4] - 80063c2: 681b ldr r3, [r3, #0] - 80063c4: 689b ldr r3, [r3, #8] - 80063c6: 60bb str r3, [r7, #8] - - /* Reset the MMS Bits */ - tmpcr2 &= ~TIM_CR2_MMS; - 80063c8: 68fb ldr r3, [r7, #12] - 80063ca: f023 0370 bic.w r3, r3, #112 @ 0x70 - 80063ce: 60fb str r3, [r7, #12] - /* Select the TRGO source */ - tmpcr2 |= sMasterConfig->MasterOutputTrigger; - 80063d0: 683b ldr r3, [r7, #0] - 80063d2: 681b ldr r3, [r3, #0] - 80063d4: 68fa ldr r2, [r7, #12] - 80063d6: 4313 orrs r3, r2 - 80063d8: 60fb str r3, [r7, #12] - - /* Update TIMx CR2 */ - htim->Instance->CR2 = tmpcr2; - 80063da: 687b ldr r3, [r7, #4] - 80063dc: 681b ldr r3, [r3, #0] - 80063de: 68fa ldr r2, [r7, #12] - 80063e0: 605a str r2, [r3, #4] - - if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - 80063e2: 687b ldr r3, [r7, #4] - 80063e4: 681b ldr r3, [r3, #0] - 80063e6: 4a21 ldr r2, [pc, #132] @ (800646c ) - 80063e8: 4293 cmp r3, r2 - 80063ea: d022 beq.n 8006432 - 80063ec: 687b ldr r3, [r7, #4] - 80063ee: 681b ldr r3, [r3, #0] - 80063f0: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 80063f4: d01d beq.n 8006432 +08006328 : + 8006328: b580 push {r7, lr} + 800632a: b0ba sub sp, #232 @ 0xe8 + 800632c: af00 add r7, sp, #0 + 800632e: 6078 str r0, [r7, #4] + 8006330: 687b ldr r3, [r7, #4] + 8006332: 681b ldr r3, [r3, #0] + 8006334: 681b ldr r3, [r3, #0] + 8006336: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 + 800633a: 687b ldr r3, [r7, #4] + 800633c: 681b ldr r3, [r3, #0] + 800633e: 68db ldr r3, [r3, #12] + 8006340: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 + 8006344: 687b ldr r3, [r7, #4] + 8006346: 681b ldr r3, [r3, #0] + 8006348: 695b ldr r3, [r3, #20] + 800634a: f8c7 30dc str.w r3, [r7, #220] @ 0xdc + 800634e: 2300 movs r3, #0 + 8006350: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 + 8006354: 2300 movs r3, #0 + 8006356: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 + 800635a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 800635e: f003 030f and.w r3, r3, #15 + 8006362: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 + 8006366: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 + 800636a: 2b00 cmp r3, #0 + 800636c: d10f bne.n 800638e + 800636e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006372: f003 0320 and.w r3, r3, #32 + 8006376: 2b00 cmp r3, #0 + 8006378: d009 beq.n 800638e + 800637a: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 800637e: f003 0320 and.w r3, r3, #32 + 8006382: 2b00 cmp r3, #0 + 8006384: d003 beq.n 800638e + 8006386: 6878 ldr r0, [r7, #4] + 8006388: f000 fda6 bl 8006ed8 + 800638c: e273 b.n 8006876 + 800638e: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 + 8006392: 2b00 cmp r3, #0 + 8006394: f000 80de beq.w 8006554 + 8006398: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 800639c: f003 0301 and.w r3, r3, #1 + 80063a0: 2b00 cmp r3, #0 + 80063a2: d106 bne.n 80063b2 + 80063a4: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 80063a8: f403 7390 and.w r3, r3, #288 @ 0x120 + 80063ac: 2b00 cmp r3, #0 + 80063ae: f000 80d1 beq.w 8006554 + 80063b2: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 80063b6: f003 0301 and.w r3, r3, #1 + 80063ba: 2b00 cmp r3, #0 + 80063bc: d00b beq.n 80063d6 + 80063be: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 80063c2: f403 7380 and.w r3, r3, #256 @ 0x100 + 80063c6: 2b00 cmp r3, #0 + 80063c8: d005 beq.n 80063d6 + 80063ca: 687b ldr r3, [r7, #4] + 80063cc: 6c5b ldr r3, [r3, #68] @ 0x44 + 80063ce: f043 0201 orr.w r2, r3, #1 + 80063d2: 687b ldr r3, [r7, #4] + 80063d4: 645a str r2, [r3, #68] @ 0x44 + 80063d6: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 80063da: f003 0304 and.w r3, r3, #4 + 80063de: 2b00 cmp r3, #0 + 80063e0: d00b beq.n 80063fa + 80063e2: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 80063e6: f003 0301 and.w r3, r3, #1 + 80063ea: 2b00 cmp r3, #0 + 80063ec: d005 beq.n 80063fa + 80063ee: 687b ldr r3, [r7, #4] + 80063f0: 6c5b ldr r3, [r3, #68] @ 0x44 + 80063f2: f043 0202 orr.w r2, r3, #2 80063f6: 687b ldr r3, [r7, #4] - 80063f8: 681b ldr r3, [r3, #0] - 80063fa: 4a1d ldr r2, [pc, #116] @ (8006470 ) - 80063fc: 4293 cmp r3, r2 - 80063fe: d018 beq.n 8006432 - 8006400: 687b ldr r3, [r7, #4] - 8006402: 681b ldr r3, [r3, #0] - 8006404: 4a1b ldr r2, [pc, #108] @ (8006474 ) - 8006406: 4293 cmp r3, r2 - 8006408: d013 beq.n 8006432 - 800640a: 687b ldr r3, [r7, #4] - 800640c: 681b ldr r3, [r3, #0] - 800640e: 4a1a ldr r2, [pc, #104] @ (8006478 ) - 8006410: 4293 cmp r3, r2 - 8006412: d00e beq.n 8006432 - 8006414: 687b ldr r3, [r7, #4] - 8006416: 681b ldr r3, [r3, #0] - 8006418: 4a18 ldr r2, [pc, #96] @ (800647c ) - 800641a: 4293 cmp r3, r2 - 800641c: d009 beq.n 8006432 - 800641e: 687b ldr r3, [r7, #4] - 8006420: 681b ldr r3, [r3, #0] - 8006422: 4a17 ldr r2, [pc, #92] @ (8006480 ) - 8006424: 4293 cmp r3, r2 - 8006426: d004 beq.n 8006432 - 8006428: 687b ldr r3, [r7, #4] - 800642a: 681b ldr r3, [r3, #0] - 800642c: 4a15 ldr r2, [pc, #84] @ (8006484 ) - 800642e: 4293 cmp r3, r2 - 8006430: d10c bne.n 800644c - { - /* Reset the MSM Bit */ - tmpsmcr &= ~TIM_SMCR_MSM; - 8006432: 68bb ldr r3, [r7, #8] - 8006434: f023 0380 bic.w r3, r3, #128 @ 0x80 - 8006438: 60bb str r3, [r7, #8] - /* Set master mode */ - tmpsmcr |= sMasterConfig->MasterSlaveMode; - 800643a: 683b ldr r3, [r7, #0] - 800643c: 685b ldr r3, [r3, #4] - 800643e: 68ba ldr r2, [r7, #8] - 8006440: 4313 orrs r3, r2 - 8006442: 60bb str r3, [r7, #8] - - /* Update TIMx SMCR */ - htim->Instance->SMCR = tmpsmcr; - 8006444: 687b ldr r3, [r7, #4] - 8006446: 681b ldr r3, [r3, #0] - 8006448: 68ba ldr r2, [r7, #8] - 800644a: 609a str r2, [r3, #8] - } - - /* Change the htim state */ - htim->State = HAL_TIM_STATE_READY; - 800644c: 687b ldr r3, [r7, #4] - 800644e: 2201 movs r2, #1 - 8006450: f883 203d strb.w r2, [r3, #61] @ 0x3d - - __HAL_UNLOCK(htim); - 8006454: 687b ldr r3, [r7, #4] - 8006456: 2200 movs r2, #0 - 8006458: f883 203c strb.w r2, [r3, #60] @ 0x3c - - return HAL_OK; - 800645c: 2300 movs r3, #0 -} - 800645e: 4618 mov r0, r3 - 8006460: 3714 adds r7, #20 - 8006462: 46bd mov sp, r7 - 8006464: f85d 7b04 ldr.w r7, [sp], #4 - 8006468: 4770 bx lr - 800646a: bf00 nop - 800646c: 40010000 .word 0x40010000 - 8006470: 40000400 .word 0x40000400 - 8006474: 40000800 .word 0x40000800 - 8006478: 40000c00 .word 0x40000c00 - 800647c: 40010400 .word 0x40010400 - 8006480: 40014000 .word 0x40014000 - 8006484: 40001800 .word 0x40001800 - -08006488 : - * @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) -{ - 8006488: b580 push {r7, lr} - 800648a: b082 sub sp, #8 - 800648c: af00 add r7, sp, #0 - 800648e: 6078 str r0, [r7, #4] - /* Check the UART handle allocation */ - if (huart == NULL) - 8006490: 687b ldr r3, [r7, #4] - 8006492: 2b00 cmp r3, #0 - 8006494: d101 bne.n 800649a - { - return HAL_ERROR; - 8006496: 2301 movs r3, #1 - 8006498: e042 b.n 8006520 - 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) - 800649a: 687b ldr r3, [r7, #4] - 800649c: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 80064a0: b2db uxtb r3, r3 - 80064a2: 2b00 cmp r3, #0 - 80064a4: d106 bne.n 80064b4 - { - /* Allocate lock resource and initialize it */ - huart->Lock = HAL_UNLOCKED; - 80064a6: 687b ldr r3, [r7, #4] - 80064a8: 2200 movs r2, #0 - 80064aa: 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); - 80064ae: 6878 ldr r0, [r7, #4] - 80064b0: f7fb f9f8 bl 80018a4 -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - - huart->gState = HAL_UART_STATE_BUSY; - 80064b4: 687b ldr r3, [r7, #4] - 80064b6: 2224 movs r2, #36 @ 0x24 - 80064b8: f883 2041 strb.w r2, [r3, #65] @ 0x41 - - /* Disable the peripheral */ - __HAL_UART_DISABLE(huart); - 80064bc: 687b ldr r3, [r7, #4] - 80064be: 681b ldr r3, [r3, #0] - 80064c0: 68da ldr r2, [r3, #12] - 80064c2: 687b ldr r3, [r7, #4] - 80064c4: 681b ldr r3, [r3, #0] - 80064c6: f422 5200 bic.w r2, r2, #8192 @ 0x2000 - 80064ca: 60da str r2, [r3, #12] - - /* Set the UART Communication parameters */ - UART_SetConfig(huart); - 80064cc: 6878 ldr r0, [r7, #4] - 80064ce: f000 ff63 bl 8007398 - - /* 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)); - 80064d2: 687b ldr r3, [r7, #4] - 80064d4: 681b ldr r3, [r3, #0] - 80064d6: 691a ldr r2, [r3, #16] + 80063f8: 645a str r2, [r3, #68] @ 0x44 + 80063fa: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 80063fe: f003 0302 and.w r3, r3, #2 + 8006402: 2b00 cmp r3, #0 + 8006404: d00b beq.n 800641e + 8006406: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 800640a: f003 0301 and.w r3, r3, #1 + 800640e: 2b00 cmp r3, #0 + 8006410: d005 beq.n 800641e + 8006412: 687b ldr r3, [r7, #4] + 8006414: 6c5b ldr r3, [r3, #68] @ 0x44 + 8006416: f043 0204 orr.w r2, r3, #4 + 800641a: 687b ldr r3, [r7, #4] + 800641c: 645a str r2, [r3, #68] @ 0x44 + 800641e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006422: f003 0308 and.w r3, r3, #8 + 8006426: 2b00 cmp r3, #0 + 8006428: d011 beq.n 800644e + 800642a: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 800642e: f003 0320 and.w r3, r3, #32 + 8006432: 2b00 cmp r3, #0 + 8006434: d105 bne.n 8006442 + 8006436: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 800643a: f003 0301 and.w r3, r3, #1 + 800643e: 2b00 cmp r3, #0 + 8006440: d005 beq.n 800644e + 8006442: 687b ldr r3, [r7, #4] + 8006444: 6c5b ldr r3, [r3, #68] @ 0x44 + 8006446: f043 0208 orr.w r2, r3, #8 + 800644a: 687b ldr r3, [r7, #4] + 800644c: 645a str r2, [r3, #68] @ 0x44 + 800644e: 687b ldr r3, [r7, #4] + 8006450: 6c5b ldr r3, [r3, #68] @ 0x44 + 8006452: 2b00 cmp r3, #0 + 8006454: f000 820a beq.w 800686c + 8006458: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 800645c: f003 0320 and.w r3, r3, #32 + 8006460: 2b00 cmp r3, #0 + 8006462: d008 beq.n 8006476 + 8006464: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8006468: f003 0320 and.w r3, r3, #32 + 800646c: 2b00 cmp r3, #0 + 800646e: d002 beq.n 8006476 + 8006470: 6878 ldr r0, [r7, #4] + 8006472: f000 fd31 bl 8006ed8 + 8006476: 687b ldr r3, [r7, #4] + 8006478: 681b ldr r3, [r3, #0] + 800647a: 695b ldr r3, [r3, #20] + 800647c: f003 0340 and.w r3, r3, #64 @ 0x40 + 8006480: 2b40 cmp r3, #64 @ 0x40 + 8006482: bf0c ite eq + 8006484: 2301 moveq r3, #1 + 8006486: 2300 movne r3, #0 + 8006488: b2db uxtb r3, r3 + 800648a: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 + 800648e: 687b ldr r3, [r7, #4] + 8006490: 6c5b ldr r3, [r3, #68] @ 0x44 + 8006492: f003 0308 and.w r3, r3, #8 + 8006496: 2b00 cmp r3, #0 + 8006498: d103 bne.n 80064a2 + 800649a: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4 + 800649e: 2b00 cmp r3, #0 + 80064a0: d04f beq.n 8006542 + 80064a2: 6878 ldr r0, [r7, #4] + 80064a4: f000 fc3c bl 8006d20 + 80064a8: 687b ldr r3, [r7, #4] + 80064aa: 681b ldr r3, [r3, #0] + 80064ac: 695b ldr r3, [r3, #20] + 80064ae: f003 0340 and.w r3, r3, #64 @ 0x40 + 80064b2: 2b40 cmp r3, #64 @ 0x40 + 80064b4: d141 bne.n 800653a + 80064b6: 687b ldr r3, [r7, #4] + 80064b8: 681b ldr r3, [r3, #0] + 80064ba: 3314 adds r3, #20 + 80064bc: f8c7 309c str.w r3, [r7, #156] @ 0x9c + 80064c0: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c + 80064c4: e853 3f00 ldrex r3, [r3] + 80064c8: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 80064cc: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 + 80064d0: f023 0340 bic.w r3, r3, #64 @ 0x40 + 80064d4: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 80064d8: 687b ldr r3, [r7, #4] 80064da: 681b ldr r3, [r3, #0] - 80064dc: f422 4290 bic.w r2, r2, #18432 @ 0x4800 - 80064e0: 611a str r2, [r3, #16] - CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); - 80064e2: 687b ldr r3, [r7, #4] - 80064e4: 681b ldr r3, [r3, #0] - 80064e6: 695a ldr r2, [r3, #20] - 80064e8: 687b ldr r3, [r7, #4] - 80064ea: 681b ldr r3, [r3, #0] - 80064ec: f022 022a bic.w r2, r2, #42 @ 0x2a - 80064f0: 615a str r2, [r3, #20] - - /* Enable the peripheral */ - __HAL_UART_ENABLE(huart); - 80064f2: 687b ldr r3, [r7, #4] - 80064f4: 681b ldr r3, [r3, #0] - 80064f6: 68da ldr r2, [r3, #12] - 80064f8: 687b ldr r3, [r7, #4] - 80064fa: 681b ldr r3, [r3, #0] - 80064fc: f442 5200 orr.w r2, r2, #8192 @ 0x2000 - 8006500: 60da str r2, [r3, #12] - - /* Initialize the UART state */ - huart->ErrorCode = HAL_UART_ERROR_NONE; + 80064dc: 3314 adds r3, #20 + 80064de: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0 + 80064e2: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8 + 80064e6: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 80064ea: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4 + 80064ee: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8 + 80064f2: e841 2300 strex r3, r2, [r1] + 80064f6: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 + 80064fa: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 + 80064fe: 2b00 cmp r3, #0 + 8006500: d1d9 bne.n 80064b6 8006502: 687b ldr r3, [r7, #4] - 8006504: 2200 movs r2, #0 - 8006506: 645a str r2, [r3, #68] @ 0x44 - huart->gState = HAL_UART_STATE_READY; - 8006508: 687b ldr r3, [r7, #4] - 800650a: 2220 movs r2, #32 - 800650c: f883 2041 strb.w r2, [r3, #65] @ 0x41 - huart->RxState = HAL_UART_STATE_READY; - 8006510: 687b ldr r3, [r7, #4] - 8006512: 2220 movs r2, #32 - 8006514: f883 2042 strb.w r2, [r3, #66] @ 0x42 - huart->RxEventType = HAL_UART_RXEVENT_TC; - 8006518: 687b ldr r3, [r7, #4] - 800651a: 2200 movs r2, #0 - 800651c: 635a str r2, [r3, #52] @ 0x34 - - return HAL_OK; - 800651e: 2300 movs r3, #0 -} - 8006520: 4618 mov r0, r3 - 8006522: 3708 adds r7, #8 - 8006524: 46bd mov sp, r7 - 8006526: bd80 pop {r7, pc} - -08006528 : - * @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) -{ - 8006528: b580 push {r7, lr} - 800652a: b08c sub sp, #48 @ 0x30 - 800652c: af00 add r7, sp, #0 - 800652e: 60f8 str r0, [r7, #12] - 8006530: 60b9 str r1, [r7, #8] - 8006532: 4613 mov r3, r2 - 8006534: 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) - 8006536: 68fb ldr r3, [r7, #12] - 8006538: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 800653c: b2db uxtb r3, r3 - 800653e: 2b20 cmp r3, #32 - 8006540: d162 bne.n 8006608 - { - if ((pData == NULL) || (Size == 0U)) - 8006542: 68bb ldr r3, [r7, #8] - 8006544: 2b00 cmp r3, #0 - 8006546: d002 beq.n 800654e - 8006548: 88fb ldrh r3, [r7, #6] - 800654a: 2b00 cmp r3, #0 - 800654c: d101 bne.n 8006552 - { - return HAL_ERROR; - 800654e: 2301 movs r3, #1 - 8006550: e05b b.n 800660a - } - - huart->pTxBuffPtr = pData; - 8006552: 68ba ldr r2, [r7, #8] - 8006554: 68fb ldr r3, [r7, #12] - 8006556: 621a str r2, [r3, #32] - huart->TxXferSize = Size; - 8006558: 68fb ldr r3, [r7, #12] - 800655a: 88fa ldrh r2, [r7, #6] - 800655c: 849a strh r2, [r3, #36] @ 0x24 - huart->TxXferCount = Size; - 800655e: 68fb ldr r3, [r7, #12] - 8006560: 88fa ldrh r2, [r7, #6] - 8006562: 84da strh r2, [r3, #38] @ 0x26 - - huart->ErrorCode = HAL_UART_ERROR_NONE; - 8006564: 68fb ldr r3, [r7, #12] - 8006566: 2200 movs r2, #0 - 8006568: 645a str r2, [r3, #68] @ 0x44 - huart->gState = HAL_UART_STATE_BUSY_TX; - 800656a: 68fb ldr r3, [r7, #12] - 800656c: 2221 movs r2, #33 @ 0x21 - 800656e: f883 2041 strb.w r2, [r3, #65] @ 0x41 - - /* Set the UART DMA transfer complete callback */ - huart->hdmatx->XferCpltCallback = UART_DMATransmitCplt; - 8006572: 68fb ldr r3, [r7, #12] - 8006574: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006576: 4a27 ldr r2, [pc, #156] @ (8006614 ) - 8006578: 63da str r2, [r3, #60] @ 0x3c - - /* Set the UART DMA Half transfer complete callback */ - huart->hdmatx->XferHalfCpltCallback = UART_DMATxHalfCplt; - 800657a: 68fb ldr r3, [r7, #12] - 800657c: 6b9b ldr r3, [r3, #56] @ 0x38 - 800657e: 4a26 ldr r2, [pc, #152] @ (8006618 ) - 8006580: 641a str r2, [r3, #64] @ 0x40 - - /* Set the DMA error callback */ - huart->hdmatx->XferErrorCallback = UART_DMAError; - 8006582: 68fb ldr r3, [r7, #12] - 8006584: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006586: 4a25 ldr r2, [pc, #148] @ (800661c ) - 8006588: 64da str r2, [r3, #76] @ 0x4c - - /* Set the DMA abort callback */ - huart->hdmatx->XferAbortCallback = NULL; - 800658a: 68fb ldr r3, [r7, #12] - 800658c: 6b9b ldr r3, [r3, #56] @ 0x38 - 800658e: 2200 movs r2, #0 - 8006590: 651a str r2, [r3, #80] @ 0x50 - - /* Enable the UART transmit DMA stream */ - tmp = (const uint32_t *)&pData; - 8006592: f107 0308 add.w r3, r7, #8 - 8006596: 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) - 8006598: 68fb ldr r3, [r7, #12] - 800659a: 6b98 ldr r0, [r3, #56] @ 0x38 - 800659c: 6afb ldr r3, [r7, #44] @ 0x2c - 800659e: 6819 ldr r1, [r3, #0] - 80065a0: 68fb ldr r3, [r7, #12] - 80065a2: 681b ldr r3, [r3, #0] - 80065a4: 3304 adds r3, #4 - 80065a6: 461a mov r2, r3 - 80065a8: 88fb ldrh r3, [r7, #6] - 80065aa: f7fb febd bl 8002328 - 80065ae: 4603 mov r3, r0 + 8006504: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006506: 2b00 cmp r3, #0 + 8006508: d013 beq.n 8006532 + 800650a: 687b ldr r3, [r7, #4] + 800650c: 6bdb ldr r3, [r3, #60] @ 0x3c + 800650e: 4a8a ldr r2, [pc, #552] @ (8006738 ) + 8006510: 651a str r2, [r3, #80] @ 0x50 + 8006512: 687b ldr r3, [r7, #4] + 8006514: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006516: 4618 mov r0, r3 + 8006518: f7fb ff70 bl 80023fc + 800651c: 4603 mov r3, r0 + 800651e: 2b00 cmp r3, #0 + 8006520: d016 beq.n 8006550 + 8006522: 687b ldr r3, [r7, #4] + 8006524: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006526: 6d1b ldr r3, [r3, #80] @ 0x50 + 8006528: 687a ldr r2, [r7, #4] + 800652a: 6bd2 ldr r2, [r2, #60] @ 0x3c + 800652c: 4610 mov r0, r2 + 800652e: 4798 blx r3 + 8006530: e00e b.n 8006550 + 8006532: 6878 ldr r0, [r7, #4] + 8006534: f7fa fbda bl 8000cec + 8006538: e00a b.n 8006550 + 800653a: 6878 ldr r0, [r7, #4] + 800653c: f7fa fbd6 bl 8000cec + 8006540: e006 b.n 8006550 + 8006542: 6878 ldr r0, [r7, #4] + 8006544: f7fa fbd2 bl 8000cec + 8006548: 687b ldr r3, [r7, #4] + 800654a: 2200 movs r2, #0 + 800654c: 645a str r2, [r3, #68] @ 0x44 + 800654e: e18d b.n 800686c + 8006550: bf00 nop + 8006552: e18b b.n 800686c + 8006554: 687b ldr r3, [r7, #4] + 8006556: 6b1b ldr r3, [r3, #48] @ 0x30 + 8006558: 2b01 cmp r3, #1 + 800655a: f040 8167 bne.w 800682c + 800655e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006562: f003 0310 and.w r3, r3, #16 + 8006566: 2b00 cmp r3, #0 + 8006568: f000 8160 beq.w 800682c + 800656c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8006570: f003 0310 and.w r3, r3, #16 + 8006574: 2b00 cmp r3, #0 + 8006576: f000 8159 beq.w 800682c + 800657a: 2300 movs r3, #0 + 800657c: 60bb str r3, [r7, #8] + 800657e: 687b ldr r3, [r7, #4] + 8006580: 681b ldr r3, [r3, #0] + 8006582: 681b ldr r3, [r3, #0] + 8006584: 60bb str r3, [r7, #8] + 8006586: 687b ldr r3, [r7, #4] + 8006588: 681b ldr r3, [r3, #0] + 800658a: 685b ldr r3, [r3, #4] + 800658c: 60bb str r3, [r7, #8] + 800658e: 68bb ldr r3, [r7, #8] + 8006590: 687b ldr r3, [r7, #4] + 8006592: 681b ldr r3, [r3, #0] + 8006594: 695b ldr r3, [r3, #20] + 8006596: f003 0340 and.w r3, r3, #64 @ 0x40 + 800659a: 2b40 cmp r3, #64 @ 0x40 + 800659c: f040 80ce bne.w 800673c + 80065a0: 687b ldr r3, [r7, #4] + 80065a2: 6bdb ldr r3, [r3, #60] @ 0x3c + 80065a4: 681b ldr r3, [r3, #0] + 80065a6: 685b ldr r3, [r3, #4] + 80065a8: f8a7 30be strh.w r3, [r7, #190] @ 0xbe + 80065ac: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe 80065b0: 2b00 cmp r3, #0 - 80065b2: d008 beq.n 80065c6 - { - /* Set error code to DMA */ - huart->ErrorCode = HAL_UART_ERROR_DMA; - 80065b4: 68fb ldr r3, [r7, #12] - 80065b6: 2210 movs r2, #16 - 80065b8: 645a str r2, [r3, #68] @ 0x44 - - /* Restore huart->gState to ready */ - huart->gState = HAL_UART_STATE_READY; - 80065ba: 68fb ldr r3, [r7, #12] - 80065bc: 2220 movs r2, #32 - 80065be: f883 2041 strb.w r2, [r3, #65] @ 0x41 - - return HAL_ERROR; - 80065c2: 2301 movs r3, #1 - 80065c4: e021 b.n 800660a - } - /* Clear the TC flag in the SR register by writing 0 to it */ - __HAL_UART_CLEAR_FLAG(huart, UART_FLAG_TC); - 80065c6: 68fb ldr r3, [r7, #12] - 80065c8: 681b ldr r3, [r3, #0] - 80065ca: f06f 0240 mvn.w r2, #64 @ 0x40 - 80065ce: 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); - 80065d0: 68fb ldr r3, [r7, #12] - 80065d2: 681b ldr r3, [r3, #0] - 80065d4: 3314 adds r3, #20 - 80065d6: 61bb str r3, [r7, #24] - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80065d8: 69bb ldr r3, [r7, #24] - 80065da: e853 3f00 ldrex r3, [r3] - 80065de: 617b str r3, [r7, #20] - return(result); - 80065e0: 697b ldr r3, [r7, #20] - 80065e2: f043 0380 orr.w r3, r3, #128 @ 0x80 - 80065e6: 62bb str r3, [r7, #40] @ 0x28 - 80065e8: 68fb ldr r3, [r7, #12] - 80065ea: 681b ldr r3, [r3, #0] - 80065ec: 3314 adds r3, #20 - 80065ee: 6aba ldr r2, [r7, #40] @ 0x28 - 80065f0: 627a str r2, [r7, #36] @ 0x24 - 80065f2: 623b str r3, [r7, #32] - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80065f4: 6a39 ldr r1, [r7, #32] - 80065f6: 6a7a ldr r2, [r7, #36] @ 0x24 - 80065f8: e841 2300 strex r3, r2, [r1] - 80065fc: 61fb str r3, [r7, #28] - return(result); - 80065fe: 69fb ldr r3, [r7, #28] - 8006600: 2b00 cmp r3, #0 - 8006602: d1e5 bne.n 80065d0 - - return HAL_OK; - 8006604: 2300 movs r3, #0 - 8006606: e000 b.n 800660a - } - else - { - return HAL_BUSY; - 8006608: 2302 movs r3, #2 - } -} - 800660a: 4618 mov r0, r3 - 800660c: 3730 adds r7, #48 @ 0x30 - 800660e: 46bd mov sp, r7 - 8006610: bd80 pop {r7, pc} - 8006612: bf00 nop - 8006614: 08006c15 .word 0x08006c15 - 8006618: 08006caf .word 0x08006caf - 800661c: 08006e33 .word 0x08006e33 - -08006620 : - * @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) -{ - 8006620: b580 push {r7, lr} - 8006622: b084 sub sp, #16 - 8006624: af00 add r7, sp, #0 - 8006626: 60f8 str r0, [r7, #12] - 8006628: 60b9 str r1, [r7, #8] - 800662a: 4613 mov r3, r2 - 800662c: 80fb strh r3, [r7, #6] - /* Check that a Rx process is not already ongoing */ - if (huart->RxState == HAL_UART_STATE_READY) - 800662e: 68fb ldr r3, [r7, #12] - 8006630: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 - 8006634: b2db uxtb r3, r3 - 8006636: 2b20 cmp r3, #32 - 8006638: d112 bne.n 8006660 - { - if ((pData == NULL) || (Size == 0U)) - 800663a: 68bb ldr r3, [r7, #8] - 800663c: 2b00 cmp r3, #0 - 800663e: d002 beq.n 8006646 - 8006640: 88fb ldrh r3, [r7, #6] - 8006642: 2b00 cmp r3, #0 - 8006644: d101 bne.n 800664a - { - return HAL_ERROR; - 8006646: 2301 movs r3, #1 - 8006648: e00b b.n 8006662 - } - - /* Set Reception type to Standard reception */ - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 800664a: 68fb ldr r3, [r7, #12] - 800664c: 2200 movs r2, #0 - 800664e: 631a str r2, [r3, #48] @ 0x30 - - return (UART_Start_Receive_DMA(huart, pData, Size)); - 8006650: 88fb ldrh r3, [r7, #6] - 8006652: 461a mov r2, r3 - 8006654: 68b9 ldr r1, [r7, #8] - 8006656: 68f8 ldr r0, [r7, #12] - 8006658: f000 fc36 bl 8006ec8 - 800665c: 4603 mov r3, r0 - 800665e: e000 b.n 8006662 - } - else - { - return HAL_BUSY; - 8006660: 2302 movs r3, #2 - } -} - 8006662: 4618 mov r0, r3 - 8006664: 3710 adds r7, #16 - 8006666: 46bd mov sp, r7 - 8006668: bd80 pop {r7, pc} - ... - -0800666c : - * @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) -{ - 800666c: b580 push {r7, lr} - 800666e: b0ba sub sp, #232 @ 0xe8 - 8006670: af00 add r7, sp, #0 - 8006672: 6078 str r0, [r7, #4] - uint32_t isrflags = READ_REG(huart->Instance->SR); - 8006674: 687b ldr r3, [r7, #4] - 8006676: 681b ldr r3, [r3, #0] - 8006678: 681b ldr r3, [r3, #0] - 800667a: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 - uint32_t cr1its = READ_REG(huart->Instance->CR1); - 800667e: 687b ldr r3, [r7, #4] - 8006680: 681b ldr r3, [r3, #0] - 8006682: 68db ldr r3, [r3, #12] - 8006684: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 - uint32_t cr3its = READ_REG(huart->Instance->CR3); - 8006688: 687b ldr r3, [r7, #4] - 800668a: 681b ldr r3, [r3, #0] - 800668c: 695b ldr r3, [r3, #20] - 800668e: f8c7 30dc str.w r3, [r7, #220] @ 0xdc - uint32_t errorflags = 0x00U; - 8006692: 2300 movs r3, #0 - 8006694: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 - uint32_t dmarequest = 0x00U; - 8006698: 2300 movs r3, #0 - 800669a: 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)); - 800669e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 80066a2: f003 030f and.w r3, r3, #15 - 80066a6: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 - if (errorflags == RESET) - 80066aa: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 - 80066ae: 2b00 cmp r3, #0 - 80066b0: d10f bne.n 80066d2 - { - /* UART in mode Receiver -------------------------------------------------*/ - if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) - 80066b2: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 80066b6: f003 0320 and.w r3, r3, #32 - 80066ba: 2b00 cmp r3, #0 - 80066bc: d009 beq.n 80066d2 - 80066be: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 80066c2: f003 0320 and.w r3, r3, #32 - 80066c6: 2b00 cmp r3, #0 - 80066c8: d003 beq.n 80066d2 - { - UART_Receive_IT(huart); - 80066ca: 6878 ldr r0, [r7, #4] - 80066cc: f000 fda6 bl 800721c - return; - 80066d0: e273 b.n 8006bba - } - } - - /* If some errors occur */ - if ((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) - 80066d2: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 - 80066d6: 2b00 cmp r3, #0 - 80066d8: f000 80de beq.w 8006898 - 80066dc: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 80066e0: f003 0301 and.w r3, r3, #1 - 80066e4: 2b00 cmp r3, #0 - 80066e6: d106 bne.n 80066f6 - || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET))) - 80066e8: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 80066ec: f403 7390 and.w r3, r3, #288 @ 0x120 - 80066f0: 2b00 cmp r3, #0 - 80066f2: f000 80d1 beq.w 8006898 - { - /* UART parity error interrupt occurred ----------------------------------*/ - if (((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET)) - 80066f6: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 80066fa: f003 0301 and.w r3, r3, #1 - 80066fe: 2b00 cmp r3, #0 - 8006700: d00b beq.n 800671a - 8006702: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006706: f403 7380 and.w r3, r3, #256 @ 0x100 - 800670a: 2b00 cmp r3, #0 - 800670c: d005 beq.n 800671a - { - huart->ErrorCode |= HAL_UART_ERROR_PE; - 800670e: 687b ldr r3, [r7, #4] - 8006710: 6c5b ldr r3, [r3, #68] @ 0x44 - 8006712: f043 0201 orr.w r2, r3, #1 + 80065b2: f000 80a9 beq.w 8006708 + 80065b6: 687b ldr r3, [r7, #4] + 80065b8: 8d9b ldrh r3, [r3, #44] @ 0x2c + 80065ba: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 80065be: 429a cmp r2, r3 + 80065c0: f080 80a2 bcs.w 8006708 + 80065c4: 687b ldr r3, [r7, #4] + 80065c6: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 80065ca: 85da strh r2, [r3, #46] @ 0x2e + 80065cc: 687b ldr r3, [r7, #4] + 80065ce: 6bdb ldr r3, [r3, #60] @ 0x3c + 80065d0: 69db ldr r3, [r3, #28] + 80065d2: f5b3 7f80 cmp.w r3, #256 @ 0x100 + 80065d6: f000 8088 beq.w 80066ea + 80065da: 687b ldr r3, [r7, #4] + 80065dc: 681b ldr r3, [r3, #0] + 80065de: 330c adds r3, #12 + 80065e0: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 80065e4: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 + 80065e8: e853 3f00 ldrex r3, [r3] + 80065ec: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + 80065f0: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 80065f4: f423 7380 bic.w r3, r3, #256 @ 0x100 + 80065f8: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 + 80065fc: 687b ldr r3, [r7, #4] + 80065fe: 681b ldr r3, [r3, #0] + 8006600: 330c adds r3, #12 + 8006602: f8d7 20b8 ldr.w r2, [r7, #184] @ 0xb8 + 8006606: f8c7 2094 str.w r2, [r7, #148] @ 0x94 + 800660a: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 800660e: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90 + 8006612: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 + 8006616: e841 2300 strex r3, r2, [r1] + 800661a: f8c7 308c str.w r3, [r7, #140] @ 0x8c + 800661e: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c + 8006622: 2b00 cmp r3, #0 + 8006624: d1d9 bne.n 80065da + 8006626: 687b ldr r3, [r7, #4] + 8006628: 681b ldr r3, [r3, #0] + 800662a: 3314 adds r3, #20 + 800662c: 677b str r3, [r7, #116] @ 0x74 + 800662e: 6f7b ldr r3, [r7, #116] @ 0x74 + 8006630: e853 3f00 ldrex r3, [r3] + 8006634: 673b str r3, [r7, #112] @ 0x70 + 8006636: 6f3b ldr r3, [r7, #112] @ 0x70 + 8006638: f023 0301 bic.w r3, r3, #1 + 800663c: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8006640: 687b ldr r3, [r7, #4] + 8006642: 681b ldr r3, [r3, #0] + 8006644: 3314 adds r3, #20 + 8006646: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 + 800664a: f8c7 2080 str.w r2, [r7, #128] @ 0x80 + 800664e: 67fb str r3, [r7, #124] @ 0x7c + 8006650: 6ff9 ldr r1, [r7, #124] @ 0x7c + 8006652: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 + 8006656: e841 2300 strex r3, r2, [r1] + 800665a: 67bb str r3, [r7, #120] @ 0x78 + 800665c: 6fbb ldr r3, [r7, #120] @ 0x78 + 800665e: 2b00 cmp r3, #0 + 8006660: d1e1 bne.n 8006626 + 8006662: 687b ldr r3, [r7, #4] + 8006664: 681b ldr r3, [r3, #0] + 8006666: 3314 adds r3, #20 + 8006668: 663b str r3, [r7, #96] @ 0x60 + 800666a: 6e3b ldr r3, [r7, #96] @ 0x60 + 800666c: e853 3f00 ldrex r3, [r3] + 8006670: 65fb str r3, [r7, #92] @ 0x5c + 8006672: 6dfb ldr r3, [r7, #92] @ 0x5c + 8006674: f023 0340 bic.w r3, r3, #64 @ 0x40 + 8006678: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 800667c: 687b ldr r3, [r7, #4] + 800667e: 681b ldr r3, [r3, #0] + 8006680: 3314 adds r3, #20 + 8006682: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0 + 8006686: 66fa str r2, [r7, #108] @ 0x6c + 8006688: 66bb str r3, [r7, #104] @ 0x68 + 800668a: 6eb9 ldr r1, [r7, #104] @ 0x68 + 800668c: 6efa ldr r2, [r7, #108] @ 0x6c + 800668e: e841 2300 strex r3, r2, [r1] + 8006692: 667b str r3, [r7, #100] @ 0x64 + 8006694: 6e7b ldr r3, [r7, #100] @ 0x64 + 8006696: 2b00 cmp r3, #0 + 8006698: d1e3 bne.n 8006662 + 800669a: 687b ldr r3, [r7, #4] + 800669c: 2220 movs r2, #32 + 800669e: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80066a2: 687b ldr r3, [r7, #4] + 80066a4: 2200 movs r2, #0 + 80066a6: 631a str r2, [r3, #48] @ 0x30 + 80066a8: 687b ldr r3, [r7, #4] + 80066aa: 681b ldr r3, [r3, #0] + 80066ac: 330c adds r3, #12 + 80066ae: 64fb str r3, [r7, #76] @ 0x4c + 80066b0: 6cfb ldr r3, [r7, #76] @ 0x4c + 80066b2: e853 3f00 ldrex r3, [r3] + 80066b6: 64bb str r3, [r7, #72] @ 0x48 + 80066b8: 6cbb ldr r3, [r7, #72] @ 0x48 + 80066ba: f023 0310 bic.w r3, r3, #16 + 80066be: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 80066c2: 687b ldr r3, [r7, #4] + 80066c4: 681b ldr r3, [r3, #0] + 80066c6: 330c adds r3, #12 + 80066c8: f8d7 20ac ldr.w r2, [r7, #172] @ 0xac + 80066cc: 65ba str r2, [r7, #88] @ 0x58 + 80066ce: 657b str r3, [r7, #84] @ 0x54 + 80066d0: 6d79 ldr r1, [r7, #84] @ 0x54 + 80066d2: 6dba ldr r2, [r7, #88] @ 0x58 + 80066d4: e841 2300 strex r3, r2, [r1] + 80066d8: 653b str r3, [r7, #80] @ 0x50 + 80066da: 6d3b ldr r3, [r7, #80] @ 0x50 + 80066dc: 2b00 cmp r3, #0 + 80066de: d1e3 bne.n 80066a8 + 80066e0: 687b ldr r3, [r7, #4] + 80066e2: 6bdb ldr r3, [r3, #60] @ 0x3c + 80066e4: 4618 mov r0, r3 + 80066e6: f7fb fe19 bl 800231c + 80066ea: 687b ldr r3, [r7, #4] + 80066ec: 2202 movs r2, #2 + 80066ee: 635a str r2, [r3, #52] @ 0x34 + 80066f0: 687b ldr r3, [r7, #4] + 80066f2: 8d9a ldrh r2, [r3, #44] @ 0x2c + 80066f4: 687b ldr r3, [r7, #4] + 80066f6: 8ddb ldrh r3, [r3, #46] @ 0x2e + 80066f8: b29b uxth r3, r3 + 80066fa: 1ad3 subs r3, r2, r3 + 80066fc: b29b uxth r3, r3 + 80066fe: 4619 mov r1, r3 + 8006700: 6878 ldr r0, [r7, #4] + 8006702: f000 f8d9 bl 80068b8 + 8006706: e0b3 b.n 8006870 + 8006708: 687b ldr r3, [r7, #4] + 800670a: 8d9b ldrh r3, [r3, #44] @ 0x2c + 800670c: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 8006710: 429a cmp r2, r3 + 8006712: f040 80ad bne.w 8006870 8006716: 687b ldr r3, [r7, #4] - 8006718: 645a str r2, [r3, #68] @ 0x44 - } - - /* UART noise error interrupt occurred -----------------------------------*/ - if (((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) - 800671a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 800671e: f003 0304 and.w r3, r3, #4 - 8006722: 2b00 cmp r3, #0 - 8006724: d00b beq.n 800673e - 8006726: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 800672a: f003 0301 and.w r3, r3, #1 - 800672e: 2b00 cmp r3, #0 - 8006730: d005 beq.n 800673e - { - huart->ErrorCode |= HAL_UART_ERROR_NE; - 8006732: 687b ldr r3, [r7, #4] - 8006734: 6c5b ldr r3, [r3, #68] @ 0x44 - 8006736: f043 0202 orr.w r2, r3, #2 - 800673a: 687b ldr r3, [r7, #4] - 800673c: 645a str r2, [r3, #68] @ 0x44 - } - - /* UART frame error interrupt occurred -----------------------------------*/ - if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) - 800673e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006742: f003 0302 and.w r3, r3, #2 - 8006746: 2b00 cmp r3, #0 - 8006748: d00b beq.n 8006762 - 800674a: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 800674e: f003 0301 and.w r3, r3, #1 + 8006718: 6bdb ldr r3, [r3, #60] @ 0x3c + 800671a: 69db ldr r3, [r3, #28] + 800671c: f5b3 7f80 cmp.w r3, #256 @ 0x100 + 8006720: f040 80a6 bne.w 8006870 + 8006724: 687b ldr r3, [r7, #4] + 8006726: 2202 movs r2, #2 + 8006728: 635a str r2, [r3, #52] @ 0x34 + 800672a: 687b ldr r3, [r7, #4] + 800672c: 8d9b ldrh r3, [r3, #44] @ 0x2c + 800672e: 4619 mov r1, r3 + 8006730: 6878 ldr r0, [r7, #4] + 8006732: f000 f8c1 bl 80068b8 + 8006736: e09b b.n 8006870 + 8006738: 08006de7 .word 0x08006de7 + 800673c: 687b ldr r3, [r7, #4] + 800673e: 8d9a ldrh r2, [r3, #44] @ 0x2c + 8006740: 687b ldr r3, [r7, #4] + 8006742: 8ddb ldrh r3, [r3, #46] @ 0x2e + 8006744: b29b uxth r3, r3 + 8006746: 1ad3 subs r3, r2, r3 + 8006748: f8a7 30ce strh.w r3, [r7, #206] @ 0xce + 800674c: 687b ldr r3, [r7, #4] + 800674e: 8ddb ldrh r3, [r3, #46] @ 0x2e + 8006750: b29b uxth r3, r3 8006752: 2b00 cmp r3, #0 - 8006754: d005 beq.n 8006762 - { - huart->ErrorCode |= HAL_UART_ERROR_FE; - 8006756: 687b ldr r3, [r7, #4] - 8006758: 6c5b ldr r3, [r3, #68] @ 0x44 - 800675a: f043 0204 orr.w r2, r3, #4 - 800675e: 687b ldr r3, [r7, #4] - 8006760: 645a str r2, [r3, #68] @ 0x44 - } - - /* UART Over-Run interrupt occurred --------------------------------------*/ - if (((isrflags & USART_SR_ORE) != RESET) && (((cr1its & USART_CR1_RXNEIE) != RESET) - 8006762: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006766: f003 0308 and.w r3, r3, #8 - 800676a: 2b00 cmp r3, #0 - 800676c: d011 beq.n 8006792 - 800676e: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006772: f003 0320 and.w r3, r3, #32 - 8006776: 2b00 cmp r3, #0 - 8006778: d105 bne.n 8006786 - || ((cr3its & USART_CR3_EIE) != RESET))) - 800677a: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 800677e: f003 0301 and.w r3, r3, #1 - 8006782: 2b00 cmp r3, #0 - 8006784: d005 beq.n 8006792 - { - huart->ErrorCode |= HAL_UART_ERROR_ORE; - 8006786: 687b ldr r3, [r7, #4] - 8006788: 6c5b ldr r3, [r3, #68] @ 0x44 - 800678a: f043 0208 orr.w r2, r3, #8 - 800678e: 687b ldr r3, [r7, #4] - 8006790: 645a str r2, [r3, #68] @ 0x44 - } - - /* Call UART Error Call back function if need be --------------------------*/ - if (huart->ErrorCode != HAL_UART_ERROR_NONE) - 8006792: 687b ldr r3, [r7, #4] - 8006794: 6c5b ldr r3, [r3, #68] @ 0x44 + 8006754: f000 808e beq.w 8006874 + 8006758: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce + 800675c: 2b00 cmp r3, #0 + 800675e: f000 8089 beq.w 8006874 + 8006762: 687b ldr r3, [r7, #4] + 8006764: 681b ldr r3, [r3, #0] + 8006766: 330c adds r3, #12 + 8006768: 63bb str r3, [r7, #56] @ 0x38 + 800676a: 6bbb ldr r3, [r7, #56] @ 0x38 + 800676c: e853 3f00 ldrex r3, [r3] + 8006770: 637b str r3, [r7, #52] @ 0x34 + 8006772: 6b7b ldr r3, [r7, #52] @ 0x34 + 8006774: f423 7390 bic.w r3, r3, #288 @ 0x120 + 8006778: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 + 800677c: 687b ldr r3, [r7, #4] + 800677e: 681b ldr r3, [r3, #0] + 8006780: 330c adds r3, #12 + 8006782: f8d7 20c8 ldr.w r2, [r7, #200] @ 0xc8 + 8006786: 647a str r2, [r7, #68] @ 0x44 + 8006788: 643b str r3, [r7, #64] @ 0x40 + 800678a: 6c39 ldr r1, [r7, #64] @ 0x40 + 800678c: 6c7a ldr r2, [r7, #68] @ 0x44 + 800678e: e841 2300 strex r3, r2, [r1] + 8006792: 63fb str r3, [r7, #60] @ 0x3c + 8006794: 6bfb ldr r3, [r7, #60] @ 0x3c 8006796: 2b00 cmp r3, #0 - 8006798: f000 820a beq.w 8006bb0 - { - /* UART in mode Receiver -----------------------------------------------*/ - if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) - 800679c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 80067a0: f003 0320 and.w r3, r3, #32 - 80067a4: 2b00 cmp r3, #0 - 80067a6: d008 beq.n 80067ba - 80067a8: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 80067ac: f003 0320 and.w r3, r3, #32 - 80067b0: 2b00 cmp r3, #0 - 80067b2: d002 beq.n 80067ba - { - UART_Receive_IT(huart); - 80067b4: 6878 ldr r0, [r7, #4] - 80067b6: f000 fd31 bl 800721c - } - - /* 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); - 80067ba: 687b ldr r3, [r7, #4] - 80067bc: 681b ldr r3, [r3, #0] - 80067be: 695b ldr r3, [r3, #20] - 80067c0: f003 0340 and.w r3, r3, #64 @ 0x40 - 80067c4: 2b40 cmp r3, #64 @ 0x40 - 80067c6: bf0c ite eq - 80067c8: 2301 moveq r3, #1 - 80067ca: 2300 movne r3, #0 - 80067cc: b2db uxtb r3, r3 - 80067ce: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 - if (((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest) + 8006798: d1e3 bne.n 8006762 + 800679a: 687b ldr r3, [r7, #4] + 800679c: 681b ldr r3, [r3, #0] + 800679e: 3314 adds r3, #20 + 80067a0: 627b str r3, [r7, #36] @ 0x24 + 80067a2: 6a7b ldr r3, [r7, #36] @ 0x24 + 80067a4: e853 3f00 ldrex r3, [r3] + 80067a8: 623b str r3, [r7, #32] + 80067aa: 6a3b ldr r3, [r7, #32] + 80067ac: f023 0301 bic.w r3, r3, #1 + 80067b0: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4 + 80067b4: 687b ldr r3, [r7, #4] + 80067b6: 681b ldr r3, [r3, #0] + 80067b8: 3314 adds r3, #20 + 80067ba: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4 + 80067be: 633a str r2, [r7, #48] @ 0x30 + 80067c0: 62fb str r3, [r7, #44] @ 0x2c + 80067c2: 6af9 ldr r1, [r7, #44] @ 0x2c + 80067c4: 6b3a ldr r2, [r7, #48] @ 0x30 + 80067c6: e841 2300 strex r3, r2, [r1] + 80067ca: 62bb str r3, [r7, #40] @ 0x28 + 80067cc: 6abb ldr r3, [r7, #40] @ 0x28 + 80067ce: 2b00 cmp r3, #0 + 80067d0: d1e3 bne.n 800679a 80067d2: 687b ldr r3, [r7, #4] - 80067d4: 6c5b ldr r3, [r3, #68] @ 0x44 - 80067d6: f003 0308 and.w r3, r3, #8 - 80067da: 2b00 cmp r3, #0 - 80067dc: d103 bne.n 80067e6 - 80067de: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4 - 80067e2: 2b00 cmp r3, #0 - 80067e4: d04f beq.n 8006886 - { - /* 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); - 80067e6: 6878 ldr r0, [r7, #4] - 80067e8: f000 fc3c bl 8007064 - - /* Disable the UART DMA Rx request if enabled */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 80067ec: 687b ldr r3, [r7, #4] - 80067ee: 681b ldr r3, [r3, #0] - 80067f0: 695b ldr r3, [r3, #20] - 80067f2: f003 0340 and.w r3, r3, #64 @ 0x40 - 80067f6: 2b40 cmp r3, #64 @ 0x40 - 80067f8: d141 bne.n 800687e - { - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); + 80067d4: 2220 movs r2, #32 + 80067d6: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80067da: 687b ldr r3, [r7, #4] + 80067dc: 2200 movs r2, #0 + 80067de: 631a str r2, [r3, #48] @ 0x30 + 80067e0: 687b ldr r3, [r7, #4] + 80067e2: 681b ldr r3, [r3, #0] + 80067e4: 330c adds r3, #12 + 80067e6: 613b str r3, [r7, #16] + 80067e8: 693b ldr r3, [r7, #16] + 80067ea: e853 3f00 ldrex r3, [r3] + 80067ee: 60fb str r3, [r7, #12] + 80067f0: 68fb ldr r3, [r7, #12] + 80067f2: f023 0310 bic.w r3, r3, #16 + 80067f6: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 80067fa: 687b ldr r3, [r7, #4] 80067fc: 681b ldr r3, [r3, #0] - 80067fe: 3314 adds r3, #20 - 8006800: f8c7 309c str.w r3, [r7, #156] @ 0x9c - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006804: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c - 8006808: e853 3f00 ldrex r3, [r3] - 800680c: f8c7 3098 str.w r3, [r7, #152] @ 0x98 - return(result); - 8006810: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 - 8006814: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8006818: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 - 800681c: 687b ldr r3, [r7, #4] - 800681e: 681b ldr r3, [r3, #0] - 8006820: 3314 adds r3, #20 - 8006822: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0 - 8006826: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8 - 800682a: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800682e: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4 - 8006832: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8 - 8006836: e841 2300 strex r3, r2, [r1] - 800683a: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 - return(result); - 800683e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 - 8006842: 2b00 cmp r3, #0 - 8006844: d1d9 bne.n 80067fa + 80067fe: 330c adds r3, #12 + 8006800: f8d7 20c0 ldr.w r2, [r7, #192] @ 0xc0 + 8006804: 61fa str r2, [r7, #28] + 8006806: 61bb str r3, [r7, #24] + 8006808: 69b9 ldr r1, [r7, #24] + 800680a: 69fa ldr r2, [r7, #28] + 800680c: e841 2300 strex r3, r2, [r1] + 8006810: 617b str r3, [r7, #20] + 8006812: 697b ldr r3, [r7, #20] + 8006814: 2b00 cmp r3, #0 + 8006816: d1e3 bne.n 80067e0 + 8006818: 687b ldr r3, [r7, #4] + 800681a: 2202 movs r2, #2 + 800681c: 635a str r2, [r3, #52] @ 0x34 + 800681e: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce + 8006822: 4619 mov r1, r3 + 8006824: 6878 ldr r0, [r7, #4] + 8006826: f000 f847 bl 80068b8 + 800682a: e023 b.n 8006874 + 800682c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006830: f003 0380 and.w r3, r3, #128 @ 0x80 + 8006834: 2b00 cmp r3, #0 + 8006836: d009 beq.n 800684c + 8006838: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 800683c: f003 0380 and.w r3, r3, #128 @ 0x80 + 8006840: 2b00 cmp r3, #0 + 8006842: d003 beq.n 800684c + 8006844: 6878 ldr r0, [r7, #4] + 8006846: f000 fadf bl 8006e08 + 800684a: e014 b.n 8006876 + 800684c: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006850: f003 0340 and.w r3, r3, #64 @ 0x40 + 8006854: 2b00 cmp r3, #0 + 8006856: d00e beq.n 8006876 + 8006858: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 800685c: f003 0340 and.w r3, r3, #64 @ 0x40 + 8006860: 2b00 cmp r3, #0 + 8006862: d008 beq.n 8006876 + 8006864: 6878 ldr r0, [r7, #4] + 8006866: f000 fb1f bl 8006ea8 + 800686a: e004 b.n 8006876 + 800686c: bf00 nop + 800686e: e002 b.n 8006876 + 8006870: bf00 nop + 8006872: e000 b.n 8006876 + 8006874: bf00 nop + 8006876: 37e8 adds r7, #232 @ 0xe8 + 8006878: 46bd mov sp, r7 + 800687a: bd80 pop {r7, pc} - /* Abort the UART DMA Rx stream */ - if (huart->hdmarx != NULL) - 8006846: 687b ldr r3, [r7, #4] - 8006848: 6bdb ldr r3, [r3, #60] @ 0x3c - 800684a: 2b00 cmp r3, #0 - 800684c: d013 beq.n 8006876 - { - /* Set the UART DMA Abort callback : - will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */ - huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError; - 800684e: 687b ldr r3, [r7, #4] - 8006850: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006852: 4a8a ldr r2, [pc, #552] @ (8006a7c ) - 8006854: 651a str r2, [r3, #80] @ 0x50 - if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) - 8006856: 687b ldr r3, [r7, #4] - 8006858: 6bdb ldr r3, [r3, #60] @ 0x3c - 800685a: 4618 mov r0, r3 - 800685c: f7fb fe2c bl 80024b8 - 8006860: 4603 mov r3, r0 - 8006862: 2b00 cmp r3, #0 - 8006864: d016 beq.n 8006894 - { - /* Call Directly XferAbortCallback function in case of error */ - huart->hdmarx->XferAbortCallback(huart->hdmarx); - 8006866: 687b ldr r3, [r7, #4] - 8006868: 6bdb ldr r3, [r3, #60] @ 0x3c - 800686a: 6d1b ldr r3, [r3, #80] @ 0x50 - 800686c: 687a ldr r2, [r7, #4] - 800686e: 6bd2 ldr r2, [r2, #60] @ 0x3c - 8006870: 4610 mov r0, r2 - 8006872: 4798 blx r3 - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8006874: e00e b.n 8006894 -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered error callback*/ - huart->ErrorCallback(huart); -#else - /*Call legacy weak error callback*/ - HAL_UART_ErrorCallback(huart); - 8006876: 6878 ldr r0, [r7, #4] - 8006878: f7fa fab0 bl 8000ddc - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 800687c: e00a b.n 8006894 -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered error callback*/ - huart->ErrorCallback(huart); -#else - /*Call legacy weak error callback*/ - HAL_UART_ErrorCallback(huart); - 800687e: 6878 ldr r0, [r7, #4] - 8006880: f7fa faac bl 8000ddc - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8006884: e006 b.n 8006894 -#if (USE_HAL_UART_REGISTER_CALLBACKS == 1) - /*Call registered error callback*/ - huart->ErrorCallback(huart); -#else - /*Call legacy weak error callback*/ - HAL_UART_ErrorCallback(huart); - 8006886: 6878 ldr r0, [r7, #4] - 8006888: f7fa faa8 bl 8000ddc -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ +0800687c : + 800687c: b480 push {r7} + 800687e: b083 sub sp, #12 + 8006880: af00 add r7, sp, #0 + 8006882: 6078 str r0, [r7, #4] + 8006884: bf00 nop + 8006886: 370c adds r7, #12 + 8006888: 46bd mov sp, r7 + 800688a: f85d 7b04 ldr.w r7, [sp], #4 + 800688e: 4770 bx lr - huart->ErrorCode = HAL_UART_ERROR_NONE; - 800688c: 687b ldr r3, [r7, #4] - 800688e: 2200 movs r2, #0 - 8006890: 645a str r2, [r3, #68] @ 0x44 - } - } - return; - 8006892: e18d b.n 8006bb0 - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8006894: bf00 nop - return; - 8006896: e18b b.n 8006bb0 - } /* End if some error occurs */ +08006890 : + 8006890: b480 push {r7} + 8006892: b083 sub sp, #12 + 8006894: af00 add r7, sp, #0 + 8006896: 6078 str r0, [r7, #4] + 8006898: bf00 nop + 800689a: 370c adds r7, #12 + 800689c: 46bd mov sp, r7 + 800689e: f85d 7b04 ldr.w r7, [sp], #4 + 80068a2: 4770 bx lr - /* Check current reception Mode : - If Reception till IDLE event has been selected : */ - if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8006898: 687b ldr r3, [r7, #4] - 800689a: 6b1b ldr r3, [r3, #48] @ 0x30 - 800689c: 2b01 cmp r3, #1 - 800689e: f040 8167 bne.w 8006b70 - && ((isrflags & USART_SR_IDLE) != 0U) - 80068a2: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 80068a6: f003 0310 and.w r3, r3, #16 - 80068aa: 2b00 cmp r3, #0 - 80068ac: f000 8160 beq.w 8006b70 - && ((cr1its & USART_CR1_IDLEIE) != 0U)) - 80068b0: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 80068b4: f003 0310 and.w r3, r3, #16 - 80068b8: 2b00 cmp r3, #0 - 80068ba: f000 8159 beq.w 8006b70 - { - __HAL_UART_CLEAR_IDLEFLAG(huart); - 80068be: 2300 movs r3, #0 - 80068c0: 60bb str r3, [r7, #8] - 80068c2: 687b ldr r3, [r7, #4] - 80068c4: 681b ldr r3, [r3, #0] - 80068c6: 681b ldr r3, [r3, #0] - 80068c8: 60bb str r3, [r7, #8] - 80068ca: 687b ldr r3, [r7, #4] - 80068cc: 681b ldr r3, [r3, #0] - 80068ce: 685b ldr r3, [r3, #4] - 80068d0: 60bb str r3, [r7, #8] - 80068d2: 68bb ldr r3, [r7, #8] +080068a4 : + 80068a4: b480 push {r7} + 80068a6: b083 sub sp, #12 + 80068a8: af00 add r7, sp, #0 + 80068aa: 6078 str r0, [r7, #4] + 80068ac: bf00 nop + 80068ae: 370c adds r7, #12 + 80068b0: 46bd mov sp, r7 + 80068b2: f85d 7b04 ldr.w r7, [sp], #4 + 80068b6: 4770 bx lr - /* Check if DMA mode is enabled in UART */ - if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 80068d4: 687b ldr r3, [r7, #4] - 80068d6: 681b ldr r3, [r3, #0] - 80068d8: 695b ldr r3, [r3, #20] - 80068da: f003 0340 and.w r3, r3, #64 @ 0x40 - 80068de: 2b40 cmp r3, #64 @ 0x40 - 80068e0: f040 80ce bne.w 8006a80 - { - /* 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); - 80068e4: 687b ldr r3, [r7, #4] - 80068e6: 6bdb ldr r3, [r3, #60] @ 0x3c - 80068e8: 681b ldr r3, [r3, #0] - 80068ea: 685b ldr r3, [r3, #4] - 80068ec: f8a7 30be strh.w r3, [r7, #190] @ 0xbe - if ((nb_remaining_rx_data > 0U) - 80068f0: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe - 80068f4: 2b00 cmp r3, #0 - 80068f6: f000 80a9 beq.w 8006a4c - && (nb_remaining_rx_data < huart->RxXferSize)) - 80068fa: 687b ldr r3, [r7, #4] - 80068fc: 8d9b ldrh r3, [r3, #44] @ 0x2c - 80068fe: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 8006902: 429a cmp r2, r3 - 8006904: f080 80a2 bcs.w 8006a4c - { - /* Reception is not complete */ - huart->RxXferCount = nb_remaining_rx_data; - 8006908: 687b ldr r3, [r7, #4] - 800690a: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 800690e: 85da strh r2, [r3, #46] @ 0x2e +080068b8 : + 80068b8: b480 push {r7} + 80068ba: b083 sub sp, #12 + 80068bc: af00 add r7, sp, #0 + 80068be: 6078 str r0, [r7, #4] + 80068c0: 460b mov r3, r1 + 80068c2: 807b strh r3, [r7, #2] + 80068c4: bf00 nop + 80068c6: 370c adds r7, #12 + 80068c8: 46bd mov sp, r7 + 80068ca: f85d 7b04 ldr.w r7, [sp], #4 + 80068ce: 4770 bx lr - /* In Normal mode, end DMA xfer and HAL UART Rx process*/ - if (huart->hdmarx->Init.Mode != DMA_CIRCULAR) - 8006910: 687b ldr r3, [r7, #4] - 8006912: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006914: 69db ldr r3, [r3, #28] - 8006916: f5b3 7f80 cmp.w r3, #256 @ 0x100 - 800691a: f000 8088 beq.w 8006a2e - { - /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - 800691e: 687b ldr r3, [r7, #4] - 8006920: 681b ldr r3, [r3, #0] - 8006922: 330c adds r3, #12 - 8006924: f8c7 3088 str.w r3, [r7, #136] @ 0x88 - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006928: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 - 800692c: e853 3f00 ldrex r3, [r3] - 8006930: f8c7 3084 str.w r3, [r7, #132] @ 0x84 - return(result); - 8006934: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 - 8006938: f423 7380 bic.w r3, r3, #256 @ 0x100 - 800693c: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 - 8006940: 687b ldr r3, [r7, #4] - 8006942: 681b ldr r3, [r3, #0] - 8006944: 330c adds r3, #12 - 8006946: f8d7 20b8 ldr.w r2, [r7, #184] @ 0xb8 - 800694a: f8c7 2094 str.w r2, [r7, #148] @ 0x94 - 800694e: f8c7 3090 str.w r3, [r7, #144] @ 0x90 - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006952: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90 - 8006956: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 - 800695a: e841 2300 strex r3, r2, [r1] - 800695e: f8c7 308c str.w r3, [r7, #140] @ 0x8c - return(result); - 8006962: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c - 8006966: 2b00 cmp r3, #0 - 8006968: d1d9 bne.n 800691e - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 800696a: 687b ldr r3, [r7, #4] - 800696c: 681b ldr r3, [r3, #0] - 800696e: 3314 adds r3, #20 - 8006970: 677b str r3, [r7, #116] @ 0x74 - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006972: 6f7b ldr r3, [r7, #116] @ 0x74 - 8006974: e853 3f00 ldrex r3, [r3] - 8006978: 673b str r3, [r7, #112] @ 0x70 - return(result); - 800697a: 6f3b ldr r3, [r7, #112] @ 0x70 - 800697c: f023 0301 bic.w r3, r3, #1 - 8006980: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 8006984: 687b ldr r3, [r7, #4] - 8006986: 681b ldr r3, [r3, #0] - 8006988: 3314 adds r3, #20 - 800698a: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 - 800698e: f8c7 2080 str.w r2, [r7, #128] @ 0x80 - 8006992: 67fb str r3, [r7, #124] @ 0x7c - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006994: 6ff9 ldr r1, [r7, #124] @ 0x7c - 8006996: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 - 800699a: e841 2300 strex r3, r2, [r1] - 800699e: 67bb str r3, [r7, #120] @ 0x78 - return(result); - 80069a0: 6fbb ldr r3, [r7, #120] @ 0x78 - 80069a2: 2b00 cmp r3, #0 - 80069a4: d1e1 bne.n 800696a +080068d0 : + 80068d0: b580 push {r7, lr} + 80068d2: b090 sub sp, #64 @ 0x40 + 80068d4: af00 add r7, sp, #0 + 80068d6: 6078 str r0, [r7, #4] + 80068d8: 687b ldr r3, [r7, #4] + 80068da: 6b9b ldr r3, [r3, #56] @ 0x38 + 80068dc: 63fb str r3, [r7, #60] @ 0x3c + 80068de: 687b ldr r3, [r7, #4] + 80068e0: 681b ldr r3, [r3, #0] + 80068e2: 681b ldr r3, [r3, #0] + 80068e4: f403 7380 and.w r3, r3, #256 @ 0x100 + 80068e8: 2b00 cmp r3, #0 + 80068ea: d137 bne.n 800695c + 80068ec: 6bfb ldr r3, [r7, #60] @ 0x3c + 80068ee: 2200 movs r2, #0 + 80068f0: 84da strh r2, [r3, #38] @ 0x26 + 80068f2: 6bfb ldr r3, [r7, #60] @ 0x3c + 80068f4: 681b ldr r3, [r3, #0] + 80068f6: 3314 adds r3, #20 + 80068f8: 627b str r3, [r7, #36] @ 0x24 + 80068fa: 6a7b ldr r3, [r7, #36] @ 0x24 + 80068fc: e853 3f00 ldrex r3, [r3] + 8006900: 623b str r3, [r7, #32] + 8006902: 6a3b ldr r3, [r7, #32] + 8006904: f023 0380 bic.w r3, r3, #128 @ 0x80 + 8006908: 63bb str r3, [r7, #56] @ 0x38 + 800690a: 6bfb ldr r3, [r7, #60] @ 0x3c + 800690c: 681b ldr r3, [r3, #0] + 800690e: 3314 adds r3, #20 + 8006910: 6bba ldr r2, [r7, #56] @ 0x38 + 8006912: 633a str r2, [r7, #48] @ 0x30 + 8006914: 62fb str r3, [r7, #44] @ 0x2c + 8006916: 6af9 ldr r1, [r7, #44] @ 0x2c + 8006918: 6b3a ldr r2, [r7, #48] @ 0x30 + 800691a: e841 2300 strex r3, r2, [r1] + 800691e: 62bb str r3, [r7, #40] @ 0x28 + 8006920: 6abb ldr r3, [r7, #40] @ 0x28 + 8006922: 2b00 cmp r3, #0 + 8006924: d1e5 bne.n 80068f2 + 8006926: 6bfb ldr r3, [r7, #60] @ 0x3c + 8006928: 681b ldr r3, [r3, #0] + 800692a: 330c adds r3, #12 + 800692c: 613b str r3, [r7, #16] + 800692e: 693b ldr r3, [r7, #16] + 8006930: e853 3f00 ldrex r3, [r3] + 8006934: 60fb str r3, [r7, #12] + 8006936: 68fb ldr r3, [r7, #12] + 8006938: f043 0340 orr.w r3, r3, #64 @ 0x40 + 800693c: 637b str r3, [r7, #52] @ 0x34 + 800693e: 6bfb ldr r3, [r7, #60] @ 0x3c + 8006940: 681b ldr r3, [r3, #0] + 8006942: 330c adds r3, #12 + 8006944: 6b7a ldr r2, [r7, #52] @ 0x34 + 8006946: 61fa str r2, [r7, #28] + 8006948: 61bb str r3, [r7, #24] + 800694a: 69b9 ldr r1, [r7, #24] + 800694c: 69fa ldr r2, [r7, #28] + 800694e: e841 2300 strex r3, r2, [r1] + 8006952: 617b str r3, [r7, #20] + 8006954: 697b ldr r3, [r7, #20] + 8006956: 2b00 cmp r3, #0 + 8006958: d1e5 bne.n 8006926 + 800695a: e002 b.n 8006962 + 800695c: 6bf8 ldr r0, [r7, #60] @ 0x3c + 800695e: f7ff ff8d bl 800687c + 8006962: bf00 nop + 8006964: 3740 adds r7, #64 @ 0x40 + 8006966: 46bd mov sp, r7 + 8006968: bd80 pop {r7, pc} - /* 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); - 80069a6: 687b ldr r3, [r7, #4] - 80069a8: 681b ldr r3, [r3, #0] - 80069aa: 3314 adds r3, #20 - 80069ac: 663b str r3, [r7, #96] @ 0x60 - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80069ae: 6e3b ldr r3, [r7, #96] @ 0x60 - 80069b0: e853 3f00 ldrex r3, [r3] - 80069b4: 65fb str r3, [r7, #92] @ 0x5c - return(result); - 80069b6: 6dfb ldr r3, [r7, #92] @ 0x5c - 80069b8: f023 0340 bic.w r3, r3, #64 @ 0x40 - 80069bc: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - 80069c0: 687b ldr r3, [r7, #4] +0800696a : + 800696a: b580 push {r7, lr} + 800696c: b084 sub sp, #16 + 800696e: af00 add r7, sp, #0 + 8006970: 6078 str r0, [r7, #4] + 8006972: 687b ldr r3, [r7, #4] + 8006974: 6b9b ldr r3, [r3, #56] @ 0x38 + 8006976: 60fb str r3, [r7, #12] + 8006978: 68f8 ldr r0, [r7, #12] + 800697a: f7ff ff89 bl 8006890 + 800697e: bf00 nop + 8006980: 3710 adds r7, #16 + 8006982: 46bd mov sp, r7 + 8006984: bd80 pop {r7, pc} + +08006986 : + 8006986: b580 push {r7, lr} + 8006988: b09c sub sp, #112 @ 0x70 + 800698a: af00 add r7, sp, #0 + 800698c: 6078 str r0, [r7, #4] + 800698e: 687b ldr r3, [r7, #4] + 8006990: 6b9b ldr r3, [r3, #56] @ 0x38 + 8006992: 66fb str r3, [r7, #108] @ 0x6c + 8006994: 687b ldr r3, [r7, #4] + 8006996: 681b ldr r3, [r3, #0] + 8006998: 681b ldr r3, [r3, #0] + 800699a: f403 7380 and.w r3, r3, #256 @ 0x100 + 800699e: 2b00 cmp r3, #0 + 80069a0: d172 bne.n 8006a88 + 80069a2: 6efb ldr r3, [r7, #108] @ 0x6c + 80069a4: 2200 movs r2, #0 + 80069a6: 85da strh r2, [r3, #46] @ 0x2e + 80069a8: 6efb ldr r3, [r7, #108] @ 0x6c + 80069aa: 681b ldr r3, [r3, #0] + 80069ac: 330c adds r3, #12 + 80069ae: 64fb str r3, [r7, #76] @ 0x4c + 80069b0: 6cfb ldr r3, [r7, #76] @ 0x4c + 80069b2: e853 3f00 ldrex r3, [r3] + 80069b6: 64bb str r3, [r7, #72] @ 0x48 + 80069b8: 6cbb ldr r3, [r7, #72] @ 0x48 + 80069ba: f423 7380 bic.w r3, r3, #256 @ 0x100 + 80069be: 66bb str r3, [r7, #104] @ 0x68 + 80069c0: 6efb ldr r3, [r7, #108] @ 0x6c 80069c2: 681b ldr r3, [r3, #0] - 80069c4: 3314 adds r3, #20 - 80069c6: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0 - 80069ca: 66fa str r2, [r7, #108] @ 0x6c - 80069cc: 66bb str r3, [r7, #104] @ 0x68 - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80069ce: 6eb9 ldr r1, [r7, #104] @ 0x68 - 80069d0: 6efa ldr r2, [r7, #108] @ 0x6c - 80069d2: e841 2300 strex r3, r2, [r1] - 80069d6: 667b str r3, [r7, #100] @ 0x64 - return(result); - 80069d8: 6e7b ldr r3, [r7, #100] @ 0x64 - 80069da: 2b00 cmp r3, #0 - 80069dc: d1e3 bne.n 80069a6 + 80069c4: 330c adds r3, #12 + 80069c6: 6eba ldr r2, [r7, #104] @ 0x68 + 80069c8: 65ba str r2, [r7, #88] @ 0x58 + 80069ca: 657b str r3, [r7, #84] @ 0x54 + 80069cc: 6d79 ldr r1, [r7, #84] @ 0x54 + 80069ce: 6dba ldr r2, [r7, #88] @ 0x58 + 80069d0: e841 2300 strex r3, r2, [r1] + 80069d4: 653b str r3, [r7, #80] @ 0x50 + 80069d6: 6d3b ldr r3, [r7, #80] @ 0x50 + 80069d8: 2b00 cmp r3, #0 + 80069da: d1e5 bne.n 80069a8 + 80069dc: 6efb ldr r3, [r7, #108] @ 0x6c + 80069de: 681b ldr r3, [r3, #0] + 80069e0: 3314 adds r3, #20 + 80069e2: 63bb str r3, [r7, #56] @ 0x38 + 80069e4: 6bbb ldr r3, [r7, #56] @ 0x38 + 80069e6: e853 3f00 ldrex r3, [r3] + 80069ea: 637b str r3, [r7, #52] @ 0x34 + 80069ec: 6b7b ldr r3, [r7, #52] @ 0x34 + 80069ee: f023 0301 bic.w r3, r3, #1 + 80069f2: 667b str r3, [r7, #100] @ 0x64 + 80069f4: 6efb ldr r3, [r7, #108] @ 0x6c + 80069f6: 681b ldr r3, [r3, #0] + 80069f8: 3314 adds r3, #20 + 80069fa: 6e7a ldr r2, [r7, #100] @ 0x64 + 80069fc: 647a str r2, [r7, #68] @ 0x44 + 80069fe: 643b str r3, [r7, #64] @ 0x40 + 8006a00: 6c39 ldr r1, [r7, #64] @ 0x40 + 8006a02: 6c7a ldr r2, [r7, #68] @ 0x44 + 8006a04: e841 2300 strex r3, r2, [r1] + 8006a08: 63fb str r3, [r7, #60] @ 0x3c + 8006a0a: 6bfb ldr r3, [r7, #60] @ 0x3c + 8006a0c: 2b00 cmp r3, #0 + 8006a0e: d1e5 bne.n 80069dc + 8006a10: 6efb ldr r3, [r7, #108] @ 0x6c + 8006a12: 681b ldr r3, [r3, #0] + 8006a14: 3314 adds r3, #20 + 8006a16: 627b str r3, [r7, #36] @ 0x24 + 8006a18: 6a7b ldr r3, [r7, #36] @ 0x24 + 8006a1a: e853 3f00 ldrex r3, [r3] + 8006a1e: 623b str r3, [r7, #32] + 8006a20: 6a3b ldr r3, [r7, #32] + 8006a22: f023 0340 bic.w r3, r3, #64 @ 0x40 + 8006a26: 663b str r3, [r7, #96] @ 0x60 + 8006a28: 6efb ldr r3, [r7, #108] @ 0x6c + 8006a2a: 681b ldr r3, [r3, #0] + 8006a2c: 3314 adds r3, #20 + 8006a2e: 6e3a ldr r2, [r7, #96] @ 0x60 + 8006a30: 633a str r2, [r7, #48] @ 0x30 + 8006a32: 62fb str r3, [r7, #44] @ 0x2c + 8006a34: 6af9 ldr r1, [r7, #44] @ 0x2c + 8006a36: 6b3a ldr r2, [r7, #48] @ 0x30 + 8006a38: e841 2300 strex r3, r2, [r1] + 8006a3c: 62bb str r3, [r7, #40] @ 0x28 + 8006a3e: 6abb ldr r3, [r7, #40] @ 0x28 + 8006a40: 2b00 cmp r3, #0 + 8006a42: d1e5 bne.n 8006a10 + 8006a44: 6efb ldr r3, [r7, #108] @ 0x6c + 8006a46: 2220 movs r2, #32 + 8006a48: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8006a4c: 6efb ldr r3, [r7, #108] @ 0x6c + 8006a4e: 6b1b ldr r3, [r3, #48] @ 0x30 + 8006a50: 2b01 cmp r3, #1 + 8006a52: d119 bne.n 8006a88 + 8006a54: 6efb ldr r3, [r7, #108] @ 0x6c + 8006a56: 681b ldr r3, [r3, #0] + 8006a58: 330c adds r3, #12 + 8006a5a: 613b str r3, [r7, #16] + 8006a5c: 693b ldr r3, [r7, #16] + 8006a5e: e853 3f00 ldrex r3, [r3] + 8006a62: 60fb str r3, [r7, #12] + 8006a64: 68fb ldr r3, [r7, #12] + 8006a66: f023 0310 bic.w r3, r3, #16 + 8006a6a: 65fb str r3, [r7, #92] @ 0x5c + 8006a6c: 6efb ldr r3, [r7, #108] @ 0x6c + 8006a6e: 681b ldr r3, [r3, #0] + 8006a70: 330c adds r3, #12 + 8006a72: 6dfa ldr r2, [r7, #92] @ 0x5c + 8006a74: 61fa str r2, [r7, #28] + 8006a76: 61bb str r3, [r7, #24] + 8006a78: 69b9 ldr r1, [r7, #24] + 8006a7a: 69fa ldr r2, [r7, #28] + 8006a7c: e841 2300 strex r3, r2, [r1] + 8006a80: 617b str r3, [r7, #20] + 8006a82: 697b ldr r3, [r7, #20] + 8006a84: 2b00 cmp r3, #0 + 8006a86: d1e5 bne.n 8006a54 + 8006a88: 6efb ldr r3, [r7, #108] @ 0x6c + 8006a8a: 2200 movs r2, #0 + 8006a8c: 635a str r2, [r3, #52] @ 0x34 + 8006a8e: 6efb ldr r3, [r7, #108] @ 0x6c + 8006a90: 6b1b ldr r3, [r3, #48] @ 0x30 + 8006a92: 2b01 cmp r3, #1 + 8006a94: d106 bne.n 8006aa4 + 8006a96: 6efb ldr r3, [r7, #108] @ 0x6c + 8006a98: 8d9b ldrh r3, [r3, #44] @ 0x2c + 8006a9a: 4619 mov r1, r3 + 8006a9c: 6ef8 ldr r0, [r7, #108] @ 0x6c + 8006a9e: f7ff ff0b bl 80068b8 + 8006aa2: e002 b.n 8006aaa + 8006aa4: 6ef8 ldr r0, [r7, #108] @ 0x6c + 8006aa6: f7fa f8c5 bl 8000c34 + 8006aaa: bf00 nop + 8006aac: 3770 adds r7, #112 @ 0x70 + 8006aae: 46bd mov sp, r7 + 8006ab0: bd80 pop {r7, pc} - /* At end of Rx process, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - 80069de: 687b ldr r3, [r7, #4] - 80069e0: 2220 movs r2, #32 - 80069e2: f883 2042 strb.w r2, [r3, #66] @ 0x42 - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 80069e6: 687b ldr r3, [r7, #4] - 80069e8: 2200 movs r2, #0 - 80069ea: 631a str r2, [r3, #48] @ 0x30 +08006ab2 : + 8006ab2: b580 push {r7, lr} + 8006ab4: b084 sub sp, #16 + 8006ab6: af00 add r7, sp, #0 + 8006ab8: 6078 str r0, [r7, #4] + 8006aba: 687b ldr r3, [r7, #4] + 8006abc: 6b9b ldr r3, [r3, #56] @ 0x38 + 8006abe: 60fb str r3, [r7, #12] + 8006ac0: 68fb ldr r3, [r7, #12] + 8006ac2: 2201 movs r2, #1 + 8006ac4: 635a str r2, [r3, #52] @ 0x34 + 8006ac6: 68fb ldr r3, [r7, #12] + 8006ac8: 6b1b ldr r3, [r3, #48] @ 0x30 + 8006aca: 2b01 cmp r3, #1 + 8006acc: d108 bne.n 8006ae0 + 8006ace: 68fb ldr r3, [r7, #12] + 8006ad0: 8d9b ldrh r3, [r3, #44] @ 0x2c + 8006ad2: 085b lsrs r3, r3, #1 + 8006ad4: b29b uxth r3, r3 + 8006ad6: 4619 mov r1, r3 + 8006ad8: 68f8 ldr r0, [r7, #12] + 8006ada: f7ff feed bl 80068b8 + 8006ade: e002 b.n 8006ae6 + 8006ae0: 68f8 ldr r0, [r7, #12] + 8006ae2: f7ff fedf bl 80068a4 + 8006ae6: bf00 nop + 8006ae8: 3710 adds r7, #16 + 8006aea: 46bd mov sp, r7 + 8006aec: bd80 pop {r7, pc} - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 80069ec: 687b ldr r3, [r7, #4] - 80069ee: 681b ldr r3, [r3, #0] - 80069f0: 330c adds r3, #12 - 80069f2: 64fb str r3, [r7, #76] @ 0x4c - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80069f4: 6cfb ldr r3, [r7, #76] @ 0x4c - 80069f6: e853 3f00 ldrex r3, [r3] - 80069fa: 64bb str r3, [r7, #72] @ 0x48 - return(result); - 80069fc: 6cbb ldr r3, [r7, #72] @ 0x48 - 80069fe: f023 0310 bic.w r3, r3, #16 - 8006a02: f8c7 30ac str.w r3, [r7, #172] @ 0xac - 8006a06: 687b ldr r3, [r7, #4] - 8006a08: 681b ldr r3, [r3, #0] - 8006a0a: 330c adds r3, #12 - 8006a0c: f8d7 20ac ldr.w r2, [r7, #172] @ 0xac - 8006a10: 65ba str r2, [r7, #88] @ 0x58 - 8006a12: 657b str r3, [r7, #84] @ 0x54 - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006a14: 6d79 ldr r1, [r7, #84] @ 0x54 - 8006a16: 6dba ldr r2, [r7, #88] @ 0x58 - 8006a18: e841 2300 strex r3, r2, [r1] - 8006a1c: 653b str r3, [r7, #80] @ 0x50 - return(result); - 8006a1e: 6d3b ldr r3, [r7, #80] @ 0x50 - 8006a20: 2b00 cmp r3, #0 - 8006a22: d1e3 bne.n 80069ec - - /* Last bytes received, so no need as the abort is immediate */ - (void)HAL_DMA_Abort(huart->hdmarx); - 8006a24: 687b ldr r3, [r7, #4] - 8006a26: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006a28: 4618 mov r0, r3 - 8006a2a: f7fb fcd5 bl 80023d8 - } - - /* 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; - 8006a2e: 687b ldr r3, [r7, #4] - 8006a30: 2202 movs r2, #2 - 8006a32: 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)); - 8006a34: 687b ldr r3, [r7, #4] - 8006a36: 8d9a ldrh r2, [r3, #44] @ 0x2c - 8006a38: 687b ldr r3, [r7, #4] - 8006a3a: 8ddb ldrh r3, [r3, #46] @ 0x2e - 8006a3c: b29b uxth r3, r3 - 8006a3e: 1ad3 subs r3, r2, r3 - 8006a40: b29b uxth r3, r3 - 8006a42: 4619 mov r1, r3 - 8006a44: 6878 ldr r0, [r7, #4] - 8006a46: f000 f8d9 bl 8006bfc - HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); -#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ - } - } - } - return; - 8006a4a: e0b3 b.n 8006bb4 - if (nb_remaining_rx_data == huart->RxXferSize) - 8006a4c: 687b ldr r3, [r7, #4] - 8006a4e: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8006a50: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 8006a54: 429a cmp r2, r3 - 8006a56: f040 80ad bne.w 8006bb4 - if (huart->hdmarx->Init.Mode == DMA_CIRCULAR) - 8006a5a: 687b ldr r3, [r7, #4] - 8006a5c: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006a5e: 69db ldr r3, [r3, #28] - 8006a60: f5b3 7f80 cmp.w r3, #256 @ 0x100 - 8006a64: f040 80a6 bne.w 8006bb4 - huart->RxEventType = HAL_UART_RXEVENT_IDLE; - 8006a68: 687b ldr r3, [r7, #4] - 8006a6a: 2202 movs r2, #2 - 8006a6c: 635a str r2, [r3, #52] @ 0x34 - HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); - 8006a6e: 687b ldr r3, [r7, #4] - 8006a70: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8006a72: 4619 mov r1, r3 - 8006a74: 6878 ldr r0, [r7, #4] - 8006a76: f000 f8c1 bl 8006bfc - return; - 8006a7a: e09b b.n 8006bb4 - 8006a7c: 0800712b .word 0x0800712b - 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; - 8006a80: 687b ldr r3, [r7, #4] - 8006a82: 8d9a ldrh r2, [r3, #44] @ 0x2c - 8006a84: 687b ldr r3, [r7, #4] - 8006a86: 8ddb ldrh r3, [r3, #46] @ 0x2e - 8006a88: b29b uxth r3, r3 - 8006a8a: 1ad3 subs r3, r2, r3 - 8006a8c: f8a7 30ce strh.w r3, [r7, #206] @ 0xce - if ((huart->RxXferCount > 0U) - 8006a90: 687b ldr r3, [r7, #4] - 8006a92: 8ddb ldrh r3, [r3, #46] @ 0x2e - 8006a94: b29b uxth r3, r3 - 8006a96: 2b00 cmp r3, #0 - 8006a98: f000 808e beq.w 8006bb8 - && (nb_rx_data > 0U)) - 8006a9c: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce - 8006aa0: 2b00 cmp r3, #0 - 8006aa2: f000 8089 beq.w 8006bb8 - { - /* Disable the UART Parity Error Interrupt and RXNE interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); - 8006aa6: 687b ldr r3, [r7, #4] - 8006aa8: 681b ldr r3, [r3, #0] - 8006aaa: 330c adds r3, #12 - 8006aac: 63bb str r3, [r7, #56] @ 0x38 - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006aae: 6bbb ldr r3, [r7, #56] @ 0x38 - 8006ab0: e853 3f00 ldrex r3, [r3] - 8006ab4: 637b str r3, [r7, #52] @ 0x34 - return(result); - 8006ab6: 6b7b ldr r3, [r7, #52] @ 0x34 - 8006ab8: f423 7390 bic.w r3, r3, #288 @ 0x120 - 8006abc: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 - 8006ac0: 687b ldr r3, [r7, #4] - 8006ac2: 681b ldr r3, [r3, #0] - 8006ac4: 330c adds r3, #12 - 8006ac6: f8d7 20c8 ldr.w r2, [r7, #200] @ 0xc8 - 8006aca: 647a str r2, [r7, #68] @ 0x44 - 8006acc: 643b str r3, [r7, #64] @ 0x40 - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006ace: 6c39 ldr r1, [r7, #64] @ 0x40 - 8006ad0: 6c7a ldr r2, [r7, #68] @ 0x44 - 8006ad2: e841 2300 strex r3, r2, [r1] - 8006ad6: 63fb str r3, [r7, #60] @ 0x3c - return(result); - 8006ad8: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006ada: 2b00 cmp r3, #0 - 8006adc: d1e3 bne.n 8006aa6 - - /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8006ade: 687b ldr r3, [r7, #4] - 8006ae0: 681b ldr r3, [r3, #0] - 8006ae2: 3314 adds r3, #20 - 8006ae4: 627b str r3, [r7, #36] @ 0x24 - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006ae6: 6a7b ldr r3, [r7, #36] @ 0x24 - 8006ae8: e853 3f00 ldrex r3, [r3] - 8006aec: 623b str r3, [r7, #32] - return(result); - 8006aee: 6a3b ldr r3, [r7, #32] - 8006af0: f023 0301 bic.w r3, r3, #1 - 8006af4: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4 - 8006af8: 687b ldr r3, [r7, #4] - 8006afa: 681b ldr r3, [r3, #0] - 8006afc: 3314 adds r3, #20 - 8006afe: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4 - 8006b02: 633a str r2, [r7, #48] @ 0x30 - 8006b04: 62fb str r3, [r7, #44] @ 0x2c - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006b06: 6af9 ldr r1, [r7, #44] @ 0x2c - 8006b08: 6b3a ldr r2, [r7, #48] @ 0x30 - 8006b0a: e841 2300 strex r3, r2, [r1] - 8006b0e: 62bb str r3, [r7, #40] @ 0x28 - return(result); - 8006b10: 6abb ldr r3, [r7, #40] @ 0x28 - 8006b12: 2b00 cmp r3, #0 - 8006b14: d1e3 bne.n 8006ade - - /* Rx process is completed, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - 8006b16: 687b ldr r3, [r7, #4] - 8006b18: 2220 movs r2, #32 - 8006b1a: f883 2042 strb.w r2, [r3, #66] @ 0x42 - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8006b1e: 687b ldr r3, [r7, #4] - 8006b20: 2200 movs r2, #0 - 8006b22: 631a str r2, [r3, #48] @ 0x30 - - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8006b24: 687b ldr r3, [r7, #4] - 8006b26: 681b ldr r3, [r3, #0] - 8006b28: 330c adds r3, #12 - 8006b2a: 613b str r3, [r7, #16] - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006b2c: 693b ldr r3, [r7, #16] - 8006b2e: e853 3f00 ldrex r3, [r3] - 8006b32: 60fb str r3, [r7, #12] - return(result); - 8006b34: 68fb ldr r3, [r7, #12] - 8006b36: f023 0310 bic.w r3, r3, #16 - 8006b3a: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 - 8006b3e: 687b ldr r3, [r7, #4] - 8006b40: 681b ldr r3, [r3, #0] - 8006b42: 330c adds r3, #12 - 8006b44: f8d7 20c0 ldr.w r2, [r7, #192] @ 0xc0 - 8006b48: 61fa str r2, [r7, #28] - 8006b4a: 61bb str r3, [r7, #24] - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006b4c: 69b9 ldr r1, [r7, #24] - 8006b4e: 69fa ldr r2, [r7, #28] - 8006b50: e841 2300 strex r3, r2, [r1] - 8006b54: 617b str r3, [r7, #20] - return(result); - 8006b56: 697b ldr r3, [r7, #20] +08006aee : + 8006aee: b580 push {r7, lr} + 8006af0: b084 sub sp, #16 + 8006af2: af00 add r7, sp, #0 + 8006af4: 6078 str r0, [r7, #4] + 8006af6: 2300 movs r3, #0 + 8006af8: 60fb str r3, [r7, #12] + 8006afa: 687b ldr r3, [r7, #4] + 8006afc: 6b9b ldr r3, [r3, #56] @ 0x38 + 8006afe: 60bb str r3, [r7, #8] + 8006b00: 68bb ldr r3, [r7, #8] + 8006b02: 681b ldr r3, [r3, #0] + 8006b04: 695b ldr r3, [r3, #20] + 8006b06: f003 0380 and.w r3, r3, #128 @ 0x80 + 8006b0a: 2b80 cmp r3, #128 @ 0x80 + 8006b0c: bf0c ite eq + 8006b0e: 2301 moveq r3, #1 + 8006b10: 2300 movne r3, #0 + 8006b12: b2db uxtb r3, r3 + 8006b14: 60fb str r3, [r7, #12] + 8006b16: 68bb ldr r3, [r7, #8] + 8006b18: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 8006b1c: b2db uxtb r3, r3 + 8006b1e: 2b21 cmp r3, #33 @ 0x21 + 8006b20: d108 bne.n 8006b34 + 8006b22: 68fb ldr r3, [r7, #12] + 8006b24: 2b00 cmp r3, #0 + 8006b26: d005 beq.n 8006b34 + 8006b28: 68bb ldr r3, [r7, #8] + 8006b2a: 2200 movs r2, #0 + 8006b2c: 84da strh r2, [r3, #38] @ 0x26 + 8006b2e: 68b8 ldr r0, [r7, #8] + 8006b30: f000 f8ce bl 8006cd0 + 8006b34: 68bb ldr r3, [r7, #8] + 8006b36: 681b ldr r3, [r3, #0] + 8006b38: 695b ldr r3, [r3, #20] + 8006b3a: f003 0340 and.w r3, r3, #64 @ 0x40 + 8006b3e: 2b40 cmp r3, #64 @ 0x40 + 8006b40: bf0c ite eq + 8006b42: 2301 moveq r3, #1 + 8006b44: 2300 movne r3, #0 + 8006b46: b2db uxtb r3, r3 + 8006b48: 60fb str r3, [r7, #12] + 8006b4a: 68bb ldr r3, [r7, #8] + 8006b4c: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 + 8006b50: b2db uxtb r3, r3 + 8006b52: 2b22 cmp r3, #34 @ 0x22 + 8006b54: d108 bne.n 8006b68 + 8006b56: 68fb ldr r3, [r7, #12] 8006b58: 2b00 cmp r3, #0 - 8006b5a: d1e3 bne.n 8006b24 - - /* 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; - 8006b5c: 687b ldr r3, [r7, #4] - 8006b5e: 2202 movs r2, #2 - 8006b60: 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); - 8006b62: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce - 8006b66: 4619 mov r1, r3 - 8006b68: 6878 ldr r0, [r7, #4] - 8006b6a: f000 f847 bl 8006bfc -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - return; - 8006b6e: e023 b.n 8006bb8 - } - } - - /* UART in mode Transmitter ------------------------------------------------*/ - if (((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET)) - 8006b70: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006b74: f003 0380 and.w r3, r3, #128 @ 0x80 - 8006b78: 2b00 cmp r3, #0 - 8006b7a: d009 beq.n 8006b90 - 8006b7c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006b80: f003 0380 and.w r3, r3, #128 @ 0x80 - 8006b84: 2b00 cmp r3, #0 - 8006b86: d003 beq.n 8006b90 - { - UART_Transmit_IT(huart); - 8006b88: 6878 ldr r0, [r7, #4] - 8006b8a: f000 fadf bl 800714c - return; - 8006b8e: e014 b.n 8006bba - } - - /* UART in mode Transmitter end --------------------------------------------*/ - if (((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET)) - 8006b90: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006b94: f003 0340 and.w r3, r3, #64 @ 0x40 - 8006b98: 2b00 cmp r3, #0 - 8006b9a: d00e beq.n 8006bba - 8006b9c: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006ba0: f003 0340 and.w r3, r3, #64 @ 0x40 - 8006ba4: 2b00 cmp r3, #0 - 8006ba6: d008 beq.n 8006bba - { - UART_EndTransmit_IT(huart); - 8006ba8: 6878 ldr r0, [r7, #4] - 8006baa: f000 fb1f bl 80071ec - return; - 8006bae: e004 b.n 8006bba - return; - 8006bb0: bf00 nop - 8006bb2: e002 b.n 8006bba - return; - 8006bb4: bf00 nop - 8006bb6: e000 b.n 8006bba - return; - 8006bb8: bf00 nop - } -} - 8006bba: 37e8 adds r7, #232 @ 0xe8 - 8006bbc: 46bd mov sp, r7 - 8006bbe: bd80 pop {r7, pc} - -08006bc0 : - * @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) -{ - 8006bc0: b480 push {r7} - 8006bc2: b083 sub sp, #12 - 8006bc4: af00 add r7, sp, #0 - 8006bc6: 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 - */ -} - 8006bc8: bf00 nop - 8006bca: 370c adds r7, #12 - 8006bcc: 46bd mov sp, r7 - 8006bce: f85d 7b04 ldr.w r7, [sp], #4 - 8006bd2: 4770 bx lr - -08006bd4 : - * @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) -{ - 8006bd4: b480 push {r7} - 8006bd6: b083 sub sp, #12 - 8006bd8: af00 add r7, sp, #0 - 8006bda: 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 - */ -} - 8006bdc: bf00 nop - 8006bde: 370c adds r7, #12 - 8006be0: 46bd mov sp, r7 - 8006be2: f85d 7b04 ldr.w r7, [sp], #4 - 8006be6: 4770 bx lr - -08006be8 : - * @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) -{ - 8006be8: b480 push {r7} - 8006bea: b083 sub sp, #12 - 8006bec: af00 add r7, sp, #0 - 8006bee: 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 - */ -} - 8006bf0: bf00 nop - 8006bf2: 370c adds r7, #12 - 8006bf4: 46bd mov sp, r7 - 8006bf6: f85d 7b04 ldr.w r7, [sp], #4 - 8006bfa: 4770 bx lr - -08006bfc : - * @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) -{ - 8006bfc: b480 push {r7} - 8006bfe: b083 sub sp, #12 - 8006c00: af00 add r7, sp, #0 - 8006c02: 6078 str r0, [r7, #4] - 8006c04: 460b mov r3, r1 - 8006c06: 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. - */ -} - 8006c08: bf00 nop - 8006c0a: 370c adds r7, #12 - 8006c0c: 46bd mov sp, r7 - 8006c0e: f85d 7b04 ldr.w r7, [sp], #4 - 8006c12: 4770 bx lr - -08006c14 : - * @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) -{ - 8006c14: b580 push {r7, lr} - 8006c16: b090 sub sp, #64 @ 0x40 - 8006c18: af00 add r7, sp, #0 - 8006c1a: 6078 str r0, [r7, #4] - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 8006c1c: 687b ldr r3, [r7, #4] - 8006c1e: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006c20: 63fb str r3, [r7, #60] @ 0x3c - /* DMA Normal mode*/ - if ((hdma->Instance->CR & DMA_SxCR_CIRC) == 0U) - 8006c22: 687b ldr r3, [r7, #4] - 8006c24: 681b ldr r3, [r3, #0] - 8006c26: 681b ldr r3, [r3, #0] - 8006c28: f403 7380 and.w r3, r3, #256 @ 0x100 - 8006c2c: 2b00 cmp r3, #0 - 8006c2e: d137 bne.n 8006ca0 - { - huart->TxXferCount = 0x00U; - 8006c30: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006c32: 2200 movs r2, #0 - 8006c34: 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); - 8006c36: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006c38: 681b ldr r3, [r3, #0] - 8006c3a: 3314 adds r3, #20 - 8006c3c: 627b str r3, [r7, #36] @ 0x24 - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006c3e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8006c40: e853 3f00 ldrex r3, [r3] - 8006c44: 623b str r3, [r7, #32] - return(result); - 8006c46: 6a3b ldr r3, [r7, #32] - 8006c48: f023 0380 bic.w r3, r3, #128 @ 0x80 - 8006c4c: 63bb str r3, [r7, #56] @ 0x38 - 8006c4e: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006c50: 681b ldr r3, [r3, #0] - 8006c52: 3314 adds r3, #20 - 8006c54: 6bba ldr r2, [r7, #56] @ 0x38 - 8006c56: 633a str r2, [r7, #48] @ 0x30 - 8006c58: 62fb str r3, [r7, #44] @ 0x2c - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006c5a: 6af9 ldr r1, [r7, #44] @ 0x2c - 8006c5c: 6b3a ldr r2, [r7, #48] @ 0x30 - 8006c5e: e841 2300 strex r3, r2, [r1] - 8006c62: 62bb str r3, [r7, #40] @ 0x28 - return(result); - 8006c64: 6abb ldr r3, [r7, #40] @ 0x28 - 8006c66: 2b00 cmp r3, #0 - 8006c68: d1e5 bne.n 8006c36 - - /* Enable the UART Transmit Complete Interrupt */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE); - 8006c6a: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006c6c: 681b ldr r3, [r3, #0] - 8006c6e: 330c adds r3, #12 - 8006c70: 613b str r3, [r7, #16] - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006c72: 693b ldr r3, [r7, #16] - 8006c74: e853 3f00 ldrex r3, [r3] - 8006c78: 60fb str r3, [r7, #12] - return(result); - 8006c7a: 68fb ldr r3, [r7, #12] - 8006c7c: f043 0340 orr.w r3, r3, #64 @ 0x40 - 8006c80: 637b str r3, [r7, #52] @ 0x34 - 8006c82: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006c84: 681b ldr r3, [r3, #0] - 8006c86: 330c adds r3, #12 - 8006c88: 6b7a ldr r2, [r7, #52] @ 0x34 - 8006c8a: 61fa str r2, [r7, #28] - 8006c8c: 61bb str r3, [r7, #24] - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006c8e: 69b9 ldr r1, [r7, #24] - 8006c90: 69fa ldr r2, [r7, #28] - 8006c92: e841 2300 strex r3, r2, [r1] - 8006c96: 617b str r3, [r7, #20] - return(result); - 8006c98: 697b ldr r3, [r7, #20] - 8006c9a: 2b00 cmp r3, #0 - 8006c9c: d1e5 bne.n 8006c6a -#else - /*Call legacy weak Tx complete callback*/ - HAL_UART_TxCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } -} - 8006c9e: e002 b.n 8006ca6 - HAL_UART_TxCpltCallback(huart); - 8006ca0: 6bf8 ldr r0, [r7, #60] @ 0x3c - 8006ca2: f7ff ff8d bl 8006bc0 -} - 8006ca6: bf00 nop - 8006ca8: 3740 adds r7, #64 @ 0x40 - 8006caa: 46bd mov sp, r7 - 8006cac: bd80 pop {r7, pc} - -08006cae : - * @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) -{ - 8006cae: b580 push {r7, lr} - 8006cb0: b084 sub sp, #16 - 8006cb2: af00 add r7, sp, #0 - 8006cb4: 6078 str r0, [r7, #4] - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 8006cb6: 687b ldr r3, [r7, #4] - 8006cb8: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006cba: 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); - 8006cbc: 68f8 ldr r0, [r7, #12] - 8006cbe: f7ff ff89 bl 8006bd4 -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ -} - 8006cc2: bf00 nop - 8006cc4: 3710 adds r7, #16 - 8006cc6: 46bd mov sp, r7 - 8006cc8: bd80 pop {r7, pc} - -08006cca : - * @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) -{ - 8006cca: b580 push {r7, lr} - 8006ccc: b09c sub sp, #112 @ 0x70 - 8006cce: af00 add r7, sp, #0 - 8006cd0: 6078 str r0, [r7, #4] - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 8006cd2: 687b ldr r3, [r7, #4] - 8006cd4: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006cd6: 66fb str r3, [r7, #108] @ 0x6c - - /* DMA Normal mode*/ - if ((hdma->Instance->CR & DMA_SxCR_CIRC) == 0U) - 8006cd8: 687b ldr r3, [r7, #4] - 8006cda: 681b ldr r3, [r3, #0] - 8006cdc: 681b ldr r3, [r3, #0] - 8006cde: f403 7380 and.w r3, r3, #256 @ 0x100 - 8006ce2: 2b00 cmp r3, #0 - 8006ce4: d172 bne.n 8006dcc - { - huart->RxXferCount = 0U; - 8006ce6: 6efb ldr r3, [r7, #108] @ 0x6c - 8006ce8: 2200 movs r2, #0 - 8006cea: 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); - 8006cec: 6efb ldr r3, [r7, #108] @ 0x6c - 8006cee: 681b ldr r3, [r3, #0] - 8006cf0: 330c adds r3, #12 - 8006cf2: 64fb str r3, [r7, #76] @ 0x4c - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006cf4: 6cfb ldr r3, [r7, #76] @ 0x4c - 8006cf6: e853 3f00 ldrex r3, [r3] - 8006cfa: 64bb str r3, [r7, #72] @ 0x48 - return(result); - 8006cfc: 6cbb ldr r3, [r7, #72] @ 0x48 - 8006cfe: f423 7380 bic.w r3, r3, #256 @ 0x100 - 8006d02: 66bb str r3, [r7, #104] @ 0x68 - 8006d04: 6efb ldr r3, [r7, #108] @ 0x6c - 8006d06: 681b ldr r3, [r3, #0] - 8006d08: 330c adds r3, #12 - 8006d0a: 6eba ldr r2, [r7, #104] @ 0x68 - 8006d0c: 65ba str r2, [r7, #88] @ 0x58 - 8006d0e: 657b str r3, [r7, #84] @ 0x54 - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006d10: 6d79 ldr r1, [r7, #84] @ 0x54 - 8006d12: 6dba ldr r2, [r7, #88] @ 0x58 - 8006d14: e841 2300 strex r3, r2, [r1] - 8006d18: 653b str r3, [r7, #80] @ 0x50 - return(result); - 8006d1a: 6d3b ldr r3, [r7, #80] @ 0x50 - 8006d1c: 2b00 cmp r3, #0 - 8006d1e: d1e5 bne.n 8006cec - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8006d20: 6efb ldr r3, [r7, #108] @ 0x6c - 8006d22: 681b ldr r3, [r3, #0] - 8006d24: 3314 adds r3, #20 - 8006d26: 63bb str r3, [r7, #56] @ 0x38 - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006d28: 6bbb ldr r3, [r7, #56] @ 0x38 - 8006d2a: e853 3f00 ldrex r3, [r3] - 8006d2e: 637b str r3, [r7, #52] @ 0x34 - return(result); - 8006d30: 6b7b ldr r3, [r7, #52] @ 0x34 - 8006d32: f023 0301 bic.w r3, r3, #1 - 8006d36: 667b str r3, [r7, #100] @ 0x64 - 8006d38: 6efb ldr r3, [r7, #108] @ 0x6c - 8006d3a: 681b ldr r3, [r3, #0] - 8006d3c: 3314 adds r3, #20 - 8006d3e: 6e7a ldr r2, [r7, #100] @ 0x64 - 8006d40: 647a str r2, [r7, #68] @ 0x44 - 8006d42: 643b str r3, [r7, #64] @ 0x40 - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006d44: 6c39 ldr r1, [r7, #64] @ 0x40 - 8006d46: 6c7a ldr r2, [r7, #68] @ 0x44 - 8006d48: e841 2300 strex r3, r2, [r1] - 8006d4c: 63fb str r3, [r7, #60] @ 0x3c - return(result); - 8006d4e: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006d50: 2b00 cmp r3, #0 - 8006d52: d1e5 bne.n 8006d20 - - /* 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); - 8006d54: 6efb ldr r3, [r7, #108] @ 0x6c - 8006d56: 681b ldr r3, [r3, #0] - 8006d58: 3314 adds r3, #20 - 8006d5a: 627b str r3, [r7, #36] @ 0x24 - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006d5c: 6a7b ldr r3, [r7, #36] @ 0x24 - 8006d5e: e853 3f00 ldrex r3, [r3] - 8006d62: 623b str r3, [r7, #32] - return(result); - 8006d64: 6a3b ldr r3, [r7, #32] - 8006d66: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8006d6a: 663b str r3, [r7, #96] @ 0x60 - 8006d6c: 6efb ldr r3, [r7, #108] @ 0x6c - 8006d6e: 681b ldr r3, [r3, #0] - 8006d70: 3314 adds r3, #20 - 8006d72: 6e3a ldr r2, [r7, #96] @ 0x60 - 8006d74: 633a str r2, [r7, #48] @ 0x30 - 8006d76: 62fb str r3, [r7, #44] @ 0x2c - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006d78: 6af9 ldr r1, [r7, #44] @ 0x2c - 8006d7a: 6b3a ldr r2, [r7, #48] @ 0x30 - 8006d7c: e841 2300 strex r3, r2, [r1] - 8006d80: 62bb str r3, [r7, #40] @ 0x28 - return(result); - 8006d82: 6abb ldr r3, [r7, #40] @ 0x28 - 8006d84: 2b00 cmp r3, #0 - 8006d86: d1e5 bne.n 8006d54 - - /* At end of Rx process, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - 8006d88: 6efb ldr r3, [r7, #108] @ 0x6c - 8006d8a: 2220 movs r2, #32 - 8006d8c: 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) - 8006d90: 6efb ldr r3, [r7, #108] @ 0x6c - 8006d92: 6b1b ldr r3, [r3, #48] @ 0x30 - 8006d94: 2b01 cmp r3, #1 - 8006d96: d119 bne.n 8006dcc - { - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8006d98: 6efb ldr r3, [r7, #108] @ 0x6c - 8006d9a: 681b ldr r3, [r3, #0] - 8006d9c: 330c adds r3, #12 - 8006d9e: 613b str r3, [r7, #16] - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006da0: 693b ldr r3, [r7, #16] - 8006da2: e853 3f00 ldrex r3, [r3] - 8006da6: 60fb str r3, [r7, #12] - return(result); - 8006da8: 68fb ldr r3, [r7, #12] - 8006daa: f023 0310 bic.w r3, r3, #16 - 8006dae: 65fb str r3, [r7, #92] @ 0x5c - 8006db0: 6efb ldr r3, [r7, #108] @ 0x6c - 8006db2: 681b ldr r3, [r3, #0] - 8006db4: 330c adds r3, #12 - 8006db6: 6dfa ldr r2, [r7, #92] @ 0x5c - 8006db8: 61fa str r2, [r7, #28] - 8006dba: 61bb str r3, [r7, #24] - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006dbc: 69b9 ldr r1, [r7, #24] - 8006dbe: 69fa ldr r2, [r7, #28] - 8006dc0: e841 2300 strex r3, r2, [r1] - 8006dc4: 617b str r3, [r7, #20] - return(result); - 8006dc6: 697b ldr r3, [r7, #20] - 8006dc8: 2b00 cmp r3, #0 - 8006dca: d1e5 bne.n 8006d98 - } - } - - /* 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; - 8006dcc: 6efb ldr r3, [r7, #108] @ 0x6c - 8006dce: 2200 movs r2, #0 - 8006dd0: 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) - 8006dd2: 6efb ldr r3, [r7, #108] @ 0x6c - 8006dd4: 6b1b ldr r3, [r3, #48] @ 0x30 - 8006dd6: 2b01 cmp r3, #1 - 8006dd8: d106 bne.n 8006de8 -#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); - 8006dda: 6efb ldr r3, [r7, #108] @ 0x6c - 8006ddc: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8006dde: 4619 mov r1, r3 - 8006de0: 6ef8 ldr r0, [r7, #108] @ 0x6c - 8006de2: f7ff ff0b bl 8006bfc -#else - /*Call legacy weak Rx complete callback*/ - HAL_UART_RxCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } -} - 8006de6: e002 b.n 8006dee - HAL_UART_RxCpltCallback(huart); - 8006de8: 6ef8 ldr r0, [r7, #108] @ 0x6c - 8006dea: f7f9 ff9b bl 8000d24 -} - 8006dee: bf00 nop - 8006df0: 3770 adds r7, #112 @ 0x70 - 8006df2: 46bd mov sp, r7 - 8006df4: bd80 pop {r7, pc} - -08006df6 : - * @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) -{ - 8006df6: b580 push {r7, lr} - 8006df8: b084 sub sp, #16 - 8006dfa: af00 add r7, sp, #0 - 8006dfc: 6078 str r0, [r7, #4] - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 8006dfe: 687b ldr r3, [r7, #4] - 8006e00: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006e02: 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; - 8006e04: 68fb ldr r3, [r7, #12] - 8006e06: 2201 movs r2, #1 - 8006e08: 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) - 8006e0a: 68fb ldr r3, [r7, #12] - 8006e0c: 6b1b ldr r3, [r3, #48] @ 0x30 - 8006e0e: 2b01 cmp r3, #1 - 8006e10: d108 bne.n 8006e24 -#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); - 8006e12: 68fb ldr r3, [r7, #12] - 8006e14: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8006e16: 085b lsrs r3, r3, #1 - 8006e18: b29b uxth r3, r3 - 8006e1a: 4619 mov r1, r3 - 8006e1c: 68f8 ldr r0, [r7, #12] - 8006e1e: f7ff feed bl 8006bfc -#else - /*Call legacy weak Rx Half complete callback*/ - HAL_UART_RxHalfCpltCallback(huart); -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } -} - 8006e22: e002 b.n 8006e2a - HAL_UART_RxHalfCpltCallback(huart); - 8006e24: 68f8 ldr r0, [r7, #12] - 8006e26: f7ff fedf bl 8006be8 -} - 8006e2a: bf00 nop - 8006e2c: 3710 adds r7, #16 - 8006e2e: 46bd mov sp, r7 - 8006e30: bd80 pop {r7, pc} - -08006e32 : - * @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) -{ - 8006e32: b580 push {r7, lr} - 8006e34: b084 sub sp, #16 - 8006e36: af00 add r7, sp, #0 - 8006e38: 6078 str r0, [r7, #4] - uint32_t dmarequest = 0x00U; - 8006e3a: 2300 movs r3, #0 - 8006e3c: 60fb str r3, [r7, #12] - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 8006e3e: 687b ldr r3, [r7, #4] - 8006e40: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006e42: 60bb str r3, [r7, #8] - - /* Stop UART DMA Tx request if ongoing */ - dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT); - 8006e44: 68bb ldr r3, [r7, #8] - 8006e46: 681b ldr r3, [r3, #0] - 8006e48: 695b ldr r3, [r3, #20] - 8006e4a: f003 0380 and.w r3, r3, #128 @ 0x80 - 8006e4e: 2b80 cmp r3, #128 @ 0x80 - 8006e50: bf0c ite eq - 8006e52: 2301 moveq r3, #1 - 8006e54: 2300 movne r3, #0 - 8006e56: b2db uxtb r3, r3 - 8006e58: 60fb str r3, [r7, #12] - if ((huart->gState == HAL_UART_STATE_BUSY_TX) && dmarequest) - 8006e5a: 68bb ldr r3, [r7, #8] - 8006e5c: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 8006e60: b2db uxtb r3, r3 - 8006e62: 2b21 cmp r3, #33 @ 0x21 - 8006e64: d108 bne.n 8006e78 - 8006e66: 68fb ldr r3, [r7, #12] - 8006e68: 2b00 cmp r3, #0 - 8006e6a: d005 beq.n 8006e78 - { - huart->TxXferCount = 0x00U; - 8006e6c: 68bb ldr r3, [r7, #8] - 8006e6e: 2200 movs r2, #0 - 8006e70: 84da strh r2, [r3, #38] @ 0x26 - UART_EndTxTransfer(huart); - 8006e72: 68b8 ldr r0, [r7, #8] - 8006e74: f000 f8ce bl 8007014 - } - - /* Stop UART DMA Rx request if ongoing */ - dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR); - 8006e78: 68bb ldr r3, [r7, #8] - 8006e7a: 681b ldr r3, [r3, #0] - 8006e7c: 695b ldr r3, [r3, #20] - 8006e7e: f003 0340 and.w r3, r3, #64 @ 0x40 - 8006e82: 2b40 cmp r3, #64 @ 0x40 - 8006e84: bf0c ite eq - 8006e86: 2301 moveq r3, #1 - 8006e88: 2300 movne r3, #0 - 8006e8a: b2db uxtb r3, r3 - 8006e8c: 60fb str r3, [r7, #12] - if ((huart->RxState == HAL_UART_STATE_BUSY_RX) && dmarequest) - 8006e8e: 68bb ldr r3, [r7, #8] - 8006e90: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 - 8006e94: b2db uxtb r3, r3 - 8006e96: 2b22 cmp r3, #34 @ 0x22 - 8006e98: d108 bne.n 8006eac - 8006e9a: 68fb ldr r3, [r7, #12] - 8006e9c: 2b00 cmp r3, #0 - 8006e9e: d005 beq.n 8006eac - { - huart->RxXferCount = 0x00U; - 8006ea0: 68bb ldr r3, [r7, #8] - 8006ea2: 2200 movs r2, #0 - 8006ea4: 85da strh r2, [r3, #46] @ 0x2e - UART_EndRxTransfer(huart); - 8006ea6: 68b8 ldr r0, [r7, #8] - 8006ea8: f000 f8dc bl 8007064 - } - - huart->ErrorCode |= HAL_UART_ERROR_DMA; - 8006eac: 68bb ldr r3, [r7, #8] - 8006eae: 6c5b ldr r3, [r3, #68] @ 0x44 - 8006eb0: f043 0210 orr.w r2, r3, #16 - 8006eb4: 68bb ldr r3, [r7, #8] - 8006eb6: 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); - 8006eb8: 68b8 ldr r0, [r7, #8] - 8006eba: f7f9 ff8f bl 8000ddc -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ -} - 8006ebe: bf00 nop - 8006ec0: 3710 adds r7, #16 - 8006ec2: 46bd mov sp, r7 - 8006ec4: bd80 pop {r7, pc} + 8006b5a: d005 beq.n 8006b68 + 8006b5c: 68bb ldr r3, [r7, #8] + 8006b5e: 2200 movs r2, #0 + 8006b60: 85da strh r2, [r3, #46] @ 0x2e + 8006b62: 68b8 ldr r0, [r7, #8] + 8006b64: f000 f8dc bl 8006d20 + 8006b68: 68bb ldr r3, [r7, #8] + 8006b6a: 6c5b ldr r3, [r3, #68] @ 0x44 + 8006b6c: f043 0210 orr.w r2, r3, #16 + 8006b70: 68bb ldr r3, [r7, #8] + 8006b72: 645a str r2, [r3, #68] @ 0x44 + 8006b74: 68b8 ldr r0, [r7, #8] + 8006b76: f7fa f8b9 bl 8000cec + 8006b7a: bf00 nop + 8006b7c: 3710 adds r7, #16 + 8006b7e: 46bd mov sp, r7 + 8006b80: bd80 pop {r7, pc} ... -08006ec8 : - * @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) -{ - 8006ec8: b580 push {r7, lr} - 8006eca: b098 sub sp, #96 @ 0x60 - 8006ecc: af00 add r7, sp, #0 - 8006ece: 60f8 str r0, [r7, #12] - 8006ed0: 60b9 str r1, [r7, #8] - 8006ed2: 4613 mov r3, r2 - 8006ed4: 80fb strh r3, [r7, #6] - uint32_t *tmp; +08006b84 : + 8006b84: b580 push {r7, lr} + 8006b86: b098 sub sp, #96 @ 0x60 + 8006b88: af00 add r7, sp, #0 + 8006b8a: 60f8 str r0, [r7, #12] + 8006b8c: 60b9 str r1, [r7, #8] + 8006b8e: 4613 mov r3, r2 + 8006b90: 80fb strh r3, [r7, #6] + 8006b92: 68ba ldr r2, [r7, #8] + 8006b94: 68fb ldr r3, [r7, #12] + 8006b96: 629a str r2, [r3, #40] @ 0x28 + 8006b98: 68fb ldr r3, [r7, #12] + 8006b9a: 88fa ldrh r2, [r7, #6] + 8006b9c: 859a strh r2, [r3, #44] @ 0x2c + 8006b9e: 68fb ldr r3, [r7, #12] + 8006ba0: 2200 movs r2, #0 + 8006ba2: 645a str r2, [r3, #68] @ 0x44 + 8006ba4: 68fb ldr r3, [r7, #12] + 8006ba6: 2222 movs r2, #34 @ 0x22 + 8006ba8: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8006bac: 68fb ldr r3, [r7, #12] + 8006bae: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006bb0: 4a44 ldr r2, [pc, #272] @ (8006cc4 ) + 8006bb2: 63da str r2, [r3, #60] @ 0x3c + 8006bb4: 68fb ldr r3, [r7, #12] + 8006bb6: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006bb8: 4a43 ldr r2, [pc, #268] @ (8006cc8 ) + 8006bba: 641a str r2, [r3, #64] @ 0x40 + 8006bbc: 68fb ldr r3, [r7, #12] + 8006bbe: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006bc0: 4a42 ldr r2, [pc, #264] @ (8006ccc ) + 8006bc2: 64da str r2, [r3, #76] @ 0x4c + 8006bc4: 68fb ldr r3, [r7, #12] + 8006bc6: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006bc8: 2200 movs r2, #0 + 8006bca: 651a str r2, [r3, #80] @ 0x50 + 8006bcc: f107 0308 add.w r3, r7, #8 + 8006bd0: 65fb str r3, [r7, #92] @ 0x5c + 8006bd2: 68fb ldr r3, [r7, #12] + 8006bd4: 6bd8 ldr r0, [r3, #60] @ 0x3c + 8006bd6: 68fb ldr r3, [r7, #12] + 8006bd8: 681b ldr r3, [r3, #0] + 8006bda: 3304 adds r3, #4 + 8006bdc: 4619 mov r1, r3 + 8006bde: 6dfb ldr r3, [r7, #92] @ 0x5c + 8006be0: 681a ldr r2, [r3, #0] + 8006be2: 88fb ldrh r3, [r7, #6] + 8006be4: f7fb fb42 bl 800226c + 8006be8: 4603 mov r3, r0 + 8006bea: 2b00 cmp r3, #0 + 8006bec: d008 beq.n 8006c00 + 8006bee: 68fb ldr r3, [r7, #12] + 8006bf0: 2210 movs r2, #16 + 8006bf2: 645a str r2, [r3, #68] @ 0x44 + 8006bf4: 68fb ldr r3, [r7, #12] + 8006bf6: 2220 movs r2, #32 + 8006bf8: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8006bfc: 2301 movs r3, #1 + 8006bfe: e05d b.n 8006cbc + 8006c00: 2300 movs r3, #0 + 8006c02: 613b str r3, [r7, #16] + 8006c04: 68fb ldr r3, [r7, #12] + 8006c06: 681b ldr r3, [r3, #0] + 8006c08: 681b ldr r3, [r3, #0] + 8006c0a: 613b str r3, [r7, #16] + 8006c0c: 68fb ldr r3, [r7, #12] + 8006c0e: 681b ldr r3, [r3, #0] + 8006c10: 685b ldr r3, [r3, #4] + 8006c12: 613b str r3, [r7, #16] + 8006c14: 693b ldr r3, [r7, #16] + 8006c16: 68fb ldr r3, [r7, #12] + 8006c18: 691b ldr r3, [r3, #16] + 8006c1a: 2b00 cmp r3, #0 + 8006c1c: d019 beq.n 8006c52 + 8006c1e: 68fb ldr r3, [r7, #12] + 8006c20: 681b ldr r3, [r3, #0] + 8006c22: 330c adds r3, #12 + 8006c24: 643b str r3, [r7, #64] @ 0x40 + 8006c26: 6c3b ldr r3, [r7, #64] @ 0x40 + 8006c28: e853 3f00 ldrex r3, [r3] + 8006c2c: 63fb str r3, [r7, #60] @ 0x3c + 8006c2e: 6bfb ldr r3, [r7, #60] @ 0x3c + 8006c30: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8006c34: 65bb str r3, [r7, #88] @ 0x58 + 8006c36: 68fb ldr r3, [r7, #12] + 8006c38: 681b ldr r3, [r3, #0] + 8006c3a: 330c adds r3, #12 + 8006c3c: 6dba ldr r2, [r7, #88] @ 0x58 + 8006c3e: 64fa str r2, [r7, #76] @ 0x4c + 8006c40: 64bb str r3, [r7, #72] @ 0x48 + 8006c42: 6cb9 ldr r1, [r7, #72] @ 0x48 + 8006c44: 6cfa ldr r2, [r7, #76] @ 0x4c + 8006c46: e841 2300 strex r3, r2, [r1] + 8006c4a: 647b str r3, [r7, #68] @ 0x44 + 8006c4c: 6c7b ldr r3, [r7, #68] @ 0x44 + 8006c4e: 2b00 cmp r3, #0 + 8006c50: d1e5 bne.n 8006c1e + 8006c52: 68fb ldr r3, [r7, #12] + 8006c54: 681b ldr r3, [r3, #0] + 8006c56: 3314 adds r3, #20 + 8006c58: 62fb str r3, [r7, #44] @ 0x2c + 8006c5a: 6afb ldr r3, [r7, #44] @ 0x2c + 8006c5c: e853 3f00 ldrex r3, [r3] + 8006c60: 62bb str r3, [r7, #40] @ 0x28 + 8006c62: 6abb ldr r3, [r7, #40] @ 0x28 + 8006c64: f043 0301 orr.w r3, r3, #1 + 8006c68: 657b str r3, [r7, #84] @ 0x54 + 8006c6a: 68fb ldr r3, [r7, #12] + 8006c6c: 681b ldr r3, [r3, #0] + 8006c6e: 3314 adds r3, #20 + 8006c70: 6d7a ldr r2, [r7, #84] @ 0x54 + 8006c72: 63ba str r2, [r7, #56] @ 0x38 + 8006c74: 637b str r3, [r7, #52] @ 0x34 + 8006c76: 6b79 ldr r1, [r7, #52] @ 0x34 + 8006c78: 6bba ldr r2, [r7, #56] @ 0x38 + 8006c7a: e841 2300 strex r3, r2, [r1] + 8006c7e: 633b str r3, [r7, #48] @ 0x30 + 8006c80: 6b3b ldr r3, [r7, #48] @ 0x30 + 8006c82: 2b00 cmp r3, #0 + 8006c84: d1e5 bne.n 8006c52 + 8006c86: 68fb ldr r3, [r7, #12] + 8006c88: 681b ldr r3, [r3, #0] + 8006c8a: 3314 adds r3, #20 + 8006c8c: 61bb str r3, [r7, #24] + 8006c8e: 69bb ldr r3, [r7, #24] + 8006c90: e853 3f00 ldrex r3, [r3] + 8006c94: 617b str r3, [r7, #20] + 8006c96: 697b ldr r3, [r7, #20] + 8006c98: f043 0340 orr.w r3, r3, #64 @ 0x40 + 8006c9c: 653b str r3, [r7, #80] @ 0x50 + 8006c9e: 68fb ldr r3, [r7, #12] + 8006ca0: 681b ldr r3, [r3, #0] + 8006ca2: 3314 adds r3, #20 + 8006ca4: 6d3a ldr r2, [r7, #80] @ 0x50 + 8006ca6: 627a str r2, [r7, #36] @ 0x24 + 8006ca8: 623b str r3, [r7, #32] + 8006caa: 6a39 ldr r1, [r7, #32] + 8006cac: 6a7a ldr r2, [r7, #36] @ 0x24 + 8006cae: e841 2300 strex r3, r2, [r1] + 8006cb2: 61fb str r3, [r7, #28] + 8006cb4: 69fb ldr r3, [r7, #28] + 8006cb6: 2b00 cmp r3, #0 + 8006cb8: d1e5 bne.n 8006c86 + 8006cba: 2300 movs r3, #0 + 8006cbc: 4618 mov r0, r3 + 8006cbe: 3760 adds r7, #96 @ 0x60 + 8006cc0: 46bd mov sp, r7 + 8006cc2: bd80 pop {r7, pc} + 8006cc4: 08006987 .word 0x08006987 + 8006cc8: 08006ab3 .word 0x08006ab3 + 8006ccc: 08006aef .word 0x08006aef - huart->pRxBuffPtr = pData; - 8006ed6: 68ba ldr r2, [r7, #8] - 8006ed8: 68fb ldr r3, [r7, #12] - 8006eda: 629a str r2, [r3, #40] @ 0x28 - huart->RxXferSize = Size; - 8006edc: 68fb ldr r3, [r7, #12] - 8006ede: 88fa ldrh r2, [r7, #6] - 8006ee0: 859a strh r2, [r3, #44] @ 0x2c +08006cd0 : + 8006cd0: b480 push {r7} + 8006cd2: b089 sub sp, #36 @ 0x24 + 8006cd4: af00 add r7, sp, #0 + 8006cd6: 6078 str r0, [r7, #4] + 8006cd8: 687b ldr r3, [r7, #4] + 8006cda: 681b ldr r3, [r3, #0] + 8006cdc: 330c adds r3, #12 + 8006cde: 60fb str r3, [r7, #12] + 8006ce0: 68fb ldr r3, [r7, #12] + 8006ce2: e853 3f00 ldrex r3, [r3] + 8006ce6: 60bb str r3, [r7, #8] + 8006ce8: 68bb ldr r3, [r7, #8] + 8006cea: f023 03c0 bic.w r3, r3, #192 @ 0xc0 + 8006cee: 61fb str r3, [r7, #28] + 8006cf0: 687b ldr r3, [r7, #4] + 8006cf2: 681b ldr r3, [r3, #0] + 8006cf4: 330c adds r3, #12 + 8006cf6: 69fa ldr r2, [r7, #28] + 8006cf8: 61ba str r2, [r7, #24] + 8006cfa: 617b str r3, [r7, #20] + 8006cfc: 6979 ldr r1, [r7, #20] + 8006cfe: 69ba ldr r2, [r7, #24] + 8006d00: e841 2300 strex r3, r2, [r1] + 8006d04: 613b str r3, [r7, #16] + 8006d06: 693b ldr r3, [r7, #16] + 8006d08: 2b00 cmp r3, #0 + 8006d0a: d1e5 bne.n 8006cd8 + 8006d0c: 687b ldr r3, [r7, #4] + 8006d0e: 2220 movs r2, #32 + 8006d10: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8006d14: bf00 nop + 8006d16: 3724 adds r7, #36 @ 0x24 + 8006d18: 46bd mov sp, r7 + 8006d1a: f85d 7b04 ldr.w r7, [sp], #4 + 8006d1e: 4770 bx lr - huart->ErrorCode = HAL_UART_ERROR_NONE; - 8006ee2: 68fb ldr r3, [r7, #12] - 8006ee4: 2200 movs r2, #0 - 8006ee6: 645a str r2, [r3, #68] @ 0x44 - huart->RxState = HAL_UART_STATE_BUSY_RX; - 8006ee8: 68fb ldr r3, [r7, #12] - 8006eea: 2222 movs r2, #34 @ 0x22 - 8006eec: f883 2042 strb.w r2, [r3, #66] @ 0x42 +08006d20 : + 8006d20: b480 push {r7} + 8006d22: b095 sub sp, #84 @ 0x54 + 8006d24: af00 add r7, sp, #0 + 8006d26: 6078 str r0, [r7, #4] + 8006d28: 687b ldr r3, [r7, #4] + 8006d2a: 681b ldr r3, [r3, #0] + 8006d2c: 330c adds r3, #12 + 8006d2e: 637b str r3, [r7, #52] @ 0x34 + 8006d30: 6b7b ldr r3, [r7, #52] @ 0x34 + 8006d32: e853 3f00 ldrex r3, [r3] + 8006d36: 633b str r3, [r7, #48] @ 0x30 + 8006d38: 6b3b ldr r3, [r7, #48] @ 0x30 + 8006d3a: f423 7390 bic.w r3, r3, #288 @ 0x120 + 8006d3e: 64fb str r3, [r7, #76] @ 0x4c + 8006d40: 687b ldr r3, [r7, #4] + 8006d42: 681b ldr r3, [r3, #0] + 8006d44: 330c adds r3, #12 + 8006d46: 6cfa ldr r2, [r7, #76] @ 0x4c + 8006d48: 643a str r2, [r7, #64] @ 0x40 + 8006d4a: 63fb str r3, [r7, #60] @ 0x3c + 8006d4c: 6bf9 ldr r1, [r7, #60] @ 0x3c + 8006d4e: 6c3a ldr r2, [r7, #64] @ 0x40 + 8006d50: e841 2300 strex r3, r2, [r1] + 8006d54: 63bb str r3, [r7, #56] @ 0x38 + 8006d56: 6bbb ldr r3, [r7, #56] @ 0x38 + 8006d58: 2b00 cmp r3, #0 + 8006d5a: d1e5 bne.n 8006d28 + 8006d5c: 687b ldr r3, [r7, #4] + 8006d5e: 681b ldr r3, [r3, #0] + 8006d60: 3314 adds r3, #20 + 8006d62: 623b str r3, [r7, #32] + 8006d64: 6a3b ldr r3, [r7, #32] + 8006d66: e853 3f00 ldrex r3, [r3] + 8006d6a: 61fb str r3, [r7, #28] + 8006d6c: 69fb ldr r3, [r7, #28] + 8006d6e: f023 0301 bic.w r3, r3, #1 + 8006d72: 64bb str r3, [r7, #72] @ 0x48 + 8006d74: 687b ldr r3, [r7, #4] + 8006d76: 681b ldr r3, [r3, #0] + 8006d78: 3314 adds r3, #20 + 8006d7a: 6cba ldr r2, [r7, #72] @ 0x48 + 8006d7c: 62fa str r2, [r7, #44] @ 0x2c + 8006d7e: 62bb str r3, [r7, #40] @ 0x28 + 8006d80: 6ab9 ldr r1, [r7, #40] @ 0x28 + 8006d82: 6afa ldr r2, [r7, #44] @ 0x2c + 8006d84: e841 2300 strex r3, r2, [r1] + 8006d88: 627b str r3, [r7, #36] @ 0x24 + 8006d8a: 6a7b ldr r3, [r7, #36] @ 0x24 + 8006d8c: 2b00 cmp r3, #0 + 8006d8e: d1e5 bne.n 8006d5c + 8006d90: 687b ldr r3, [r7, #4] + 8006d92: 6b1b ldr r3, [r3, #48] @ 0x30 + 8006d94: 2b01 cmp r3, #1 + 8006d96: d119 bne.n 8006dcc + 8006d98: 687b ldr r3, [r7, #4] + 8006d9a: 681b ldr r3, [r3, #0] + 8006d9c: 330c adds r3, #12 + 8006d9e: 60fb str r3, [r7, #12] + 8006da0: 68fb ldr r3, [r7, #12] + 8006da2: e853 3f00 ldrex r3, [r3] + 8006da6: 60bb str r3, [r7, #8] + 8006da8: 68bb ldr r3, [r7, #8] + 8006daa: f023 0310 bic.w r3, r3, #16 + 8006dae: 647b str r3, [r7, #68] @ 0x44 + 8006db0: 687b ldr r3, [r7, #4] + 8006db2: 681b ldr r3, [r3, #0] + 8006db4: 330c adds r3, #12 + 8006db6: 6c7a ldr r2, [r7, #68] @ 0x44 + 8006db8: 61ba str r2, [r7, #24] + 8006dba: 617b str r3, [r7, #20] + 8006dbc: 6979 ldr r1, [r7, #20] + 8006dbe: 69ba ldr r2, [r7, #24] + 8006dc0: e841 2300 strex r3, r2, [r1] + 8006dc4: 613b str r3, [r7, #16] + 8006dc6: 693b ldr r3, [r7, #16] + 8006dc8: 2b00 cmp r3, #0 + 8006dca: d1e5 bne.n 8006d98 + 8006dcc: 687b ldr r3, [r7, #4] + 8006dce: 2220 movs r2, #32 + 8006dd0: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8006dd4: 687b ldr r3, [r7, #4] + 8006dd6: 2200 movs r2, #0 + 8006dd8: 631a str r2, [r3, #48] @ 0x30 + 8006dda: bf00 nop + 8006ddc: 3754 adds r7, #84 @ 0x54 + 8006dde: 46bd mov sp, r7 + 8006de0: f85d 7b04 ldr.w r7, [sp], #4 + 8006de4: 4770 bx lr - /* Set the UART DMA transfer complete callback */ - huart->hdmarx->XferCpltCallback = UART_DMAReceiveCplt; - 8006ef0: 68fb ldr r3, [r7, #12] - 8006ef2: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006ef4: 4a44 ldr r2, [pc, #272] @ (8007008 ) - 8006ef6: 63da str r2, [r3, #60] @ 0x3c +08006de6 : + 8006de6: b580 push {r7, lr} + 8006de8: b084 sub sp, #16 + 8006dea: af00 add r7, sp, #0 + 8006dec: 6078 str r0, [r7, #4] + 8006dee: 687b ldr r3, [r7, #4] + 8006df0: 6b9b ldr r3, [r3, #56] @ 0x38 + 8006df2: 60fb str r3, [r7, #12] + 8006df4: 68fb ldr r3, [r7, #12] + 8006df6: 2200 movs r2, #0 + 8006df8: 85da strh r2, [r3, #46] @ 0x2e + 8006dfa: 68f8 ldr r0, [r7, #12] + 8006dfc: f7f9 ff76 bl 8000cec + 8006e00: bf00 nop + 8006e02: 3710 adds r7, #16 + 8006e04: 46bd mov sp, r7 + 8006e06: bd80 pop {r7, pc} - /* Set the UART DMA Half transfer complete callback */ - huart->hdmarx->XferHalfCpltCallback = UART_DMARxHalfCplt; - 8006ef8: 68fb ldr r3, [r7, #12] - 8006efa: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006efc: 4a43 ldr r2, [pc, #268] @ (800700c ) - 8006efe: 641a str r2, [r3, #64] @ 0x40 +08006e08 : + 8006e08: b480 push {r7} + 8006e0a: b085 sub sp, #20 + 8006e0c: af00 add r7, sp, #0 + 8006e0e: 6078 str r0, [r7, #4] + 8006e10: 687b ldr r3, [r7, #4] + 8006e12: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 8006e16: b2db uxtb r3, r3 + 8006e18: 2b21 cmp r3, #33 @ 0x21 + 8006e1a: d13e bne.n 8006e9a + 8006e1c: 687b ldr r3, [r7, #4] + 8006e1e: 689b ldr r3, [r3, #8] + 8006e20: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 8006e24: d114 bne.n 8006e50 + 8006e26: 687b ldr r3, [r7, #4] + 8006e28: 691b ldr r3, [r3, #16] + 8006e2a: 2b00 cmp r3, #0 + 8006e2c: d110 bne.n 8006e50 + 8006e2e: 687b ldr r3, [r7, #4] + 8006e30: 6a1b ldr r3, [r3, #32] + 8006e32: 60fb str r3, [r7, #12] + 8006e34: 68fb ldr r3, [r7, #12] + 8006e36: 881b ldrh r3, [r3, #0] + 8006e38: 461a mov r2, r3 + 8006e3a: 687b ldr r3, [r7, #4] + 8006e3c: 681b ldr r3, [r3, #0] + 8006e3e: f3c2 0208 ubfx r2, r2, #0, #9 + 8006e42: 605a str r2, [r3, #4] + 8006e44: 687b ldr r3, [r7, #4] + 8006e46: 6a1b ldr r3, [r3, #32] + 8006e48: 1c9a adds r2, r3, #2 + 8006e4a: 687b ldr r3, [r7, #4] + 8006e4c: 621a str r2, [r3, #32] + 8006e4e: e008 b.n 8006e62 + 8006e50: 687b ldr r3, [r7, #4] + 8006e52: 6a1b ldr r3, [r3, #32] + 8006e54: 1c59 adds r1, r3, #1 + 8006e56: 687a ldr r2, [r7, #4] + 8006e58: 6211 str r1, [r2, #32] + 8006e5a: 781a ldrb r2, [r3, #0] + 8006e5c: 687b ldr r3, [r7, #4] + 8006e5e: 681b ldr r3, [r3, #0] + 8006e60: 605a str r2, [r3, #4] + 8006e62: 687b ldr r3, [r7, #4] + 8006e64: 8cdb ldrh r3, [r3, #38] @ 0x26 + 8006e66: b29b uxth r3, r3 + 8006e68: 3b01 subs r3, #1 + 8006e6a: b29b uxth r3, r3 + 8006e6c: 687a ldr r2, [r7, #4] + 8006e6e: 4619 mov r1, r3 + 8006e70: 84d1 strh r1, [r2, #38] @ 0x26 + 8006e72: 2b00 cmp r3, #0 + 8006e74: d10f bne.n 8006e96 + 8006e76: 687b ldr r3, [r7, #4] + 8006e78: 681b ldr r3, [r3, #0] + 8006e7a: 68da ldr r2, [r3, #12] + 8006e7c: 687b ldr r3, [r7, #4] + 8006e7e: 681b ldr r3, [r3, #0] + 8006e80: f022 0280 bic.w r2, r2, #128 @ 0x80 + 8006e84: 60da str r2, [r3, #12] + 8006e86: 687b ldr r3, [r7, #4] + 8006e88: 681b ldr r3, [r3, #0] + 8006e8a: 68da ldr r2, [r3, #12] + 8006e8c: 687b ldr r3, [r7, #4] + 8006e8e: 681b ldr r3, [r3, #0] + 8006e90: f042 0240 orr.w r2, r2, #64 @ 0x40 + 8006e94: 60da str r2, [r3, #12] + 8006e96: 2300 movs r3, #0 + 8006e98: e000 b.n 8006e9c + 8006e9a: 2302 movs r3, #2 + 8006e9c: 4618 mov r0, r3 + 8006e9e: 3714 adds r7, #20 + 8006ea0: 46bd mov sp, r7 + 8006ea2: f85d 7b04 ldr.w r7, [sp], #4 + 8006ea6: 4770 bx lr - /* Set the DMA error callback */ - huart->hdmarx->XferErrorCallback = UART_DMAError; - 8006f00: 68fb ldr r3, [r7, #12] - 8006f02: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006f04: 4a42 ldr r2, [pc, #264] @ (8007010 ) - 8006f06: 64da str r2, [r3, #76] @ 0x4c +08006ea8 : + 8006ea8: b580 push {r7, lr} + 8006eaa: b082 sub sp, #8 + 8006eac: af00 add r7, sp, #0 + 8006eae: 6078 str r0, [r7, #4] + 8006eb0: 687b ldr r3, [r7, #4] + 8006eb2: 681b ldr r3, [r3, #0] + 8006eb4: 68da ldr r2, [r3, #12] + 8006eb6: 687b ldr r3, [r7, #4] + 8006eb8: 681b ldr r3, [r3, #0] + 8006eba: f022 0240 bic.w r2, r2, #64 @ 0x40 + 8006ebe: 60da str r2, [r3, #12] + 8006ec0: 687b ldr r3, [r7, #4] + 8006ec2: 2220 movs r2, #32 + 8006ec4: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8006ec8: 6878 ldr r0, [r7, #4] + 8006eca: f7ff fcd7 bl 800687c + 8006ece: 2300 movs r3, #0 + 8006ed0: 4618 mov r0, r3 + 8006ed2: 3708 adds r7, #8 + 8006ed4: 46bd mov sp, r7 + 8006ed6: bd80 pop {r7, pc} - /* Set the DMA abort callback */ - huart->hdmarx->XferAbortCallback = NULL; - 8006f08: 68fb ldr r3, [r7, #12] - 8006f0a: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006f0c: 2200 movs r2, #0 - 8006f0e: 651a str r2, [r3, #80] @ 0x50 - - /* Enable the DMA stream */ - tmp = (uint32_t *)&pData; - 8006f10: f107 0308 add.w r3, r7, #8 - 8006f14: 65fb str r3, [r7, #92] @ 0x5c - if (HAL_DMA_Start_IT(huart->hdmarx, (uint32_t)&huart->Instance->DR, *(uint32_t *)tmp, Size) != HAL_OK) - 8006f16: 68fb ldr r3, [r7, #12] - 8006f18: 6bd8 ldr r0, [r3, #60] @ 0x3c - 8006f1a: 68fb ldr r3, [r7, #12] - 8006f1c: 681b ldr r3, [r3, #0] - 8006f1e: 3304 adds r3, #4 - 8006f20: 4619 mov r1, r3 - 8006f22: 6dfb ldr r3, [r7, #92] @ 0x5c - 8006f24: 681a ldr r2, [r3, #0] - 8006f26: 88fb ldrh r3, [r7, #6] - 8006f28: f7fb f9fe bl 8002328 - 8006f2c: 4603 mov r3, r0 - 8006f2e: 2b00 cmp r3, #0 - 8006f30: d008 beq.n 8006f44 - { - /* Set error code to DMA */ - huart->ErrorCode = HAL_UART_ERROR_DMA; - 8006f32: 68fb ldr r3, [r7, #12] - 8006f34: 2210 movs r2, #16 - 8006f36: 645a str r2, [r3, #68] @ 0x44 - - /* Restore huart->RxState to ready */ - huart->RxState = HAL_UART_STATE_READY; - 8006f38: 68fb ldr r3, [r7, #12] - 8006f3a: 2220 movs r2, #32 - 8006f3c: f883 2042 strb.w r2, [r3, #66] @ 0x42 - - return HAL_ERROR; - 8006f40: 2301 movs r3, #1 - 8006f42: e05d b.n 8007000 - } - /* Clear the Overrun flag just before enabling the DMA Rx request: can be mandatory for the second transfer */ - __HAL_UART_CLEAR_OREFLAG(huart); - 8006f44: 2300 movs r3, #0 - 8006f46: 613b str r3, [r7, #16] - 8006f48: 68fb ldr r3, [r7, #12] - 8006f4a: 681b ldr r3, [r3, #0] - 8006f4c: 681b ldr r3, [r3, #0] - 8006f4e: 613b str r3, [r7, #16] - 8006f50: 68fb ldr r3, [r7, #12] - 8006f52: 681b ldr r3, [r3, #0] - 8006f54: 685b ldr r3, [r3, #4] - 8006f56: 613b str r3, [r7, #16] - 8006f58: 693b ldr r3, [r7, #16] - - if (huart->Init.Parity != UART_PARITY_NONE) - 8006f5a: 68fb ldr r3, [r7, #12] - 8006f5c: 691b ldr r3, [r3, #16] - 8006f5e: 2b00 cmp r3, #0 - 8006f60: d019 beq.n 8006f96 - { - /* Enable the UART Parity Error Interrupt */ - ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); - 8006f62: 68fb ldr r3, [r7, #12] - 8006f64: 681b ldr r3, [r3, #0] - 8006f66: 330c adds r3, #12 - 8006f68: 643b str r3, [r7, #64] @ 0x40 - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006f6a: 6c3b ldr r3, [r7, #64] @ 0x40 - 8006f6c: e853 3f00 ldrex r3, [r3] - 8006f70: 63fb str r3, [r7, #60] @ 0x3c - return(result); - 8006f72: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006f74: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8006f78: 65bb str r3, [r7, #88] @ 0x58 - 8006f7a: 68fb ldr r3, [r7, #12] - 8006f7c: 681b ldr r3, [r3, #0] - 8006f7e: 330c adds r3, #12 - 8006f80: 6dba ldr r2, [r7, #88] @ 0x58 - 8006f82: 64fa str r2, [r7, #76] @ 0x4c - 8006f84: 64bb str r3, [r7, #72] @ 0x48 - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006f86: 6cb9 ldr r1, [r7, #72] @ 0x48 - 8006f88: 6cfa ldr r2, [r7, #76] @ 0x4c - 8006f8a: e841 2300 strex r3, r2, [r1] - 8006f8e: 647b str r3, [r7, #68] @ 0x44 - return(result); - 8006f90: 6c7b ldr r3, [r7, #68] @ 0x44 - 8006f92: 2b00 cmp r3, #0 - 8006f94: d1e5 bne.n 8006f62 - } - - /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */ - ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8006f96: 68fb ldr r3, [r7, #12] - 8006f98: 681b ldr r3, [r3, #0] - 8006f9a: 3314 adds r3, #20 - 8006f9c: 62fb str r3, [r7, #44] @ 0x2c - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006f9e: 6afb ldr r3, [r7, #44] @ 0x2c - 8006fa0: e853 3f00 ldrex r3, [r3] - 8006fa4: 62bb str r3, [r7, #40] @ 0x28 - return(result); - 8006fa6: 6abb ldr r3, [r7, #40] @ 0x28 - 8006fa8: f043 0301 orr.w r3, r3, #1 - 8006fac: 657b str r3, [r7, #84] @ 0x54 - 8006fae: 68fb ldr r3, [r7, #12] - 8006fb0: 681b ldr r3, [r3, #0] - 8006fb2: 3314 adds r3, #20 - 8006fb4: 6d7a ldr r2, [r7, #84] @ 0x54 - 8006fb6: 63ba str r2, [r7, #56] @ 0x38 - 8006fb8: 637b str r3, [r7, #52] @ 0x34 - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006fba: 6b79 ldr r1, [r7, #52] @ 0x34 - 8006fbc: 6bba ldr r2, [r7, #56] @ 0x38 - 8006fbe: e841 2300 strex r3, r2, [r1] - 8006fc2: 633b str r3, [r7, #48] @ 0x30 - return(result); - 8006fc4: 6b3b ldr r3, [r7, #48] @ 0x30 - 8006fc6: 2b00 cmp r3, #0 - 8006fc8: d1e5 bne.n 8006f96 - - /* 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); - 8006fca: 68fb ldr r3, [r7, #12] - 8006fcc: 681b ldr r3, [r3, #0] - 8006fce: 3314 adds r3, #20 - 8006fd0: 61bb str r3, [r7, #24] - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006fd2: 69bb ldr r3, [r7, #24] - 8006fd4: e853 3f00 ldrex r3, [r3] - 8006fd8: 617b str r3, [r7, #20] - return(result); - 8006fda: 697b ldr r3, [r7, #20] - 8006fdc: f043 0340 orr.w r3, r3, #64 @ 0x40 - 8006fe0: 653b str r3, [r7, #80] @ 0x50 - 8006fe2: 68fb ldr r3, [r7, #12] - 8006fe4: 681b ldr r3, [r3, #0] - 8006fe6: 3314 adds r3, #20 - 8006fe8: 6d3a ldr r2, [r7, #80] @ 0x50 - 8006fea: 627a str r2, [r7, #36] @ 0x24 - 8006fec: 623b str r3, [r7, #32] - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006fee: 6a39 ldr r1, [r7, #32] - 8006ff0: 6a7a ldr r2, [r7, #36] @ 0x24 - 8006ff2: e841 2300 strex r3, r2, [r1] - 8006ff6: 61fb str r3, [r7, #28] - return(result); - 8006ff8: 69fb ldr r3, [r7, #28] - 8006ffa: 2b00 cmp r3, #0 - 8006ffc: d1e5 bne.n 8006fca - - return HAL_OK; - 8006ffe: 2300 movs r3, #0 -} - 8007000: 4618 mov r0, r3 - 8007002: 3760 adds r7, #96 @ 0x60 - 8007004: 46bd mov sp, r7 - 8007006: bd80 pop {r7, pc} - 8007008: 08006ccb .word 0x08006ccb - 800700c: 08006df7 .word 0x08006df7 - 8007010: 08006e33 .word 0x08006e33 - -08007014 : - * @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) -{ - 8007014: b480 push {r7} - 8007016: b089 sub sp, #36 @ 0x24 - 8007018: af00 add r7, sp, #0 - 800701a: 6078 str r0, [r7, #4] - /* Disable TXEIE and TCIE interrupts */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE)); +08006ed8 : + 8006ed8: b580 push {r7, lr} + 8006eda: b08c sub sp, #48 @ 0x30 + 8006edc: af00 add r7, sp, #0 + 8006ede: 6078 str r0, [r7, #4] + 8006ee0: 2300 movs r3, #0 + 8006ee2: 62fb str r3, [r7, #44] @ 0x2c + 8006ee4: 2300 movs r3, #0 + 8006ee6: 62bb str r3, [r7, #40] @ 0x28 + 8006ee8: 687b ldr r3, [r7, #4] + 8006eea: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 + 8006eee: b2db uxtb r3, r3 + 8006ef0: 2b22 cmp r3, #34 @ 0x22 + 8006ef2: f040 80aa bne.w 800704a + 8006ef6: 687b ldr r3, [r7, #4] + 8006ef8: 689b ldr r3, [r3, #8] + 8006efa: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 8006efe: d115 bne.n 8006f2c + 8006f00: 687b ldr r3, [r7, #4] + 8006f02: 691b ldr r3, [r3, #16] + 8006f04: 2b00 cmp r3, #0 + 8006f06: d111 bne.n 8006f2c + 8006f08: 687b ldr r3, [r7, #4] + 8006f0a: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006f0c: 62bb str r3, [r7, #40] @ 0x28 + 8006f0e: 687b ldr r3, [r7, #4] + 8006f10: 681b ldr r3, [r3, #0] + 8006f12: 685b ldr r3, [r3, #4] + 8006f14: b29b uxth r3, r3 + 8006f16: f3c3 0308 ubfx r3, r3, #0, #9 + 8006f1a: b29a uxth r2, r3 + 8006f1c: 6abb ldr r3, [r7, #40] @ 0x28 + 8006f1e: 801a strh r2, [r3, #0] + 8006f20: 687b ldr r3, [r7, #4] + 8006f22: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006f24: 1c9a adds r2, r3, #2 + 8006f26: 687b ldr r3, [r7, #4] + 8006f28: 629a str r2, [r3, #40] @ 0x28 + 8006f2a: e024 b.n 8006f76 + 8006f2c: 687b ldr r3, [r7, #4] + 8006f2e: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006f30: 62fb str r3, [r7, #44] @ 0x2c + 8006f32: 687b ldr r3, [r7, #4] + 8006f34: 689b ldr r3, [r3, #8] + 8006f36: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 8006f3a: d007 beq.n 8006f4c + 8006f3c: 687b ldr r3, [r7, #4] + 8006f3e: 689b ldr r3, [r3, #8] + 8006f40: 2b00 cmp r3, #0 + 8006f42: d10a bne.n 8006f5a + 8006f44: 687b ldr r3, [r7, #4] + 8006f46: 691b ldr r3, [r3, #16] + 8006f48: 2b00 cmp r3, #0 + 8006f4a: d106 bne.n 8006f5a + 8006f4c: 687b ldr r3, [r7, #4] + 8006f4e: 681b ldr r3, [r3, #0] + 8006f50: 685b ldr r3, [r3, #4] + 8006f52: b2da uxtb r2, r3 + 8006f54: 6afb ldr r3, [r7, #44] @ 0x2c + 8006f56: 701a strb r2, [r3, #0] + 8006f58: e008 b.n 8006f6c + 8006f5a: 687b ldr r3, [r7, #4] + 8006f5c: 681b ldr r3, [r3, #0] + 8006f5e: 685b ldr r3, [r3, #4] + 8006f60: b2db uxtb r3, r3 + 8006f62: f003 037f and.w r3, r3, #127 @ 0x7f + 8006f66: b2da uxtb r2, r3 + 8006f68: 6afb ldr r3, [r7, #44] @ 0x2c + 8006f6a: 701a strb r2, [r3, #0] + 8006f6c: 687b ldr r3, [r7, #4] + 8006f6e: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006f70: 1c5a adds r2, r3, #1 + 8006f72: 687b ldr r3, [r7, #4] + 8006f74: 629a str r2, [r3, #40] @ 0x28 + 8006f76: 687b ldr r3, [r7, #4] + 8006f78: 8ddb ldrh r3, [r3, #46] @ 0x2e + 8006f7a: b29b uxth r3, r3 + 8006f7c: 3b01 subs r3, #1 + 8006f7e: b29b uxth r3, r3 + 8006f80: 687a ldr r2, [r7, #4] + 8006f82: 4619 mov r1, r3 + 8006f84: 85d1 strh r1, [r2, #46] @ 0x2e + 8006f86: 2b00 cmp r3, #0 + 8006f88: d15d bne.n 8007046 + 8006f8a: 687b ldr r3, [r7, #4] + 8006f8c: 681b ldr r3, [r3, #0] + 8006f8e: 68da ldr r2, [r3, #12] + 8006f90: 687b ldr r3, [r7, #4] + 8006f92: 681b ldr r3, [r3, #0] + 8006f94: f022 0220 bic.w r2, r2, #32 + 8006f98: 60da str r2, [r3, #12] + 8006f9a: 687b ldr r3, [r7, #4] + 8006f9c: 681b ldr r3, [r3, #0] + 8006f9e: 68da ldr r2, [r3, #12] + 8006fa0: 687b ldr r3, [r7, #4] + 8006fa2: 681b ldr r3, [r3, #0] + 8006fa4: f422 7280 bic.w r2, r2, #256 @ 0x100 + 8006fa8: 60da str r2, [r3, #12] + 8006faa: 687b ldr r3, [r7, #4] + 8006fac: 681b ldr r3, [r3, #0] + 8006fae: 695a ldr r2, [r3, #20] + 8006fb0: 687b ldr r3, [r7, #4] + 8006fb2: 681b ldr r3, [r3, #0] + 8006fb4: f022 0201 bic.w r2, r2, #1 + 8006fb8: 615a str r2, [r3, #20] + 8006fba: 687b ldr r3, [r7, #4] + 8006fbc: 2220 movs r2, #32 + 8006fbe: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8006fc2: 687b ldr r3, [r7, #4] + 8006fc4: 2200 movs r2, #0 + 8006fc6: 635a str r2, [r3, #52] @ 0x34 + 8006fc8: 687b ldr r3, [r7, #4] + 8006fca: 6b1b ldr r3, [r3, #48] @ 0x30 + 8006fcc: 2b01 cmp r3, #1 + 8006fce: d135 bne.n 800703c + 8006fd0: 687b ldr r3, [r7, #4] + 8006fd2: 2200 movs r2, #0 + 8006fd4: 631a str r2, [r3, #48] @ 0x30 + 8006fd6: 687b ldr r3, [r7, #4] + 8006fd8: 681b ldr r3, [r3, #0] + 8006fda: 330c adds r3, #12 + 8006fdc: 617b str r3, [r7, #20] + 8006fde: 697b ldr r3, [r7, #20] + 8006fe0: e853 3f00 ldrex r3, [r3] + 8006fe4: 613b str r3, [r7, #16] + 8006fe6: 693b ldr r3, [r7, #16] + 8006fe8: f023 0310 bic.w r3, r3, #16 + 8006fec: 627b str r3, [r7, #36] @ 0x24 + 8006fee: 687b ldr r3, [r7, #4] + 8006ff0: 681b ldr r3, [r3, #0] + 8006ff2: 330c adds r3, #12 + 8006ff4: 6a7a ldr r2, [r7, #36] @ 0x24 + 8006ff6: 623a str r2, [r7, #32] + 8006ff8: 61fb str r3, [r7, #28] + 8006ffa: 69f9 ldr r1, [r7, #28] + 8006ffc: 6a3a ldr r2, [r7, #32] + 8006ffe: e841 2300 strex r3, r2, [r1] + 8007002: 61bb str r3, [r7, #24] + 8007004: 69bb ldr r3, [r7, #24] + 8007006: 2b00 cmp r3, #0 + 8007008: d1e5 bne.n 8006fd6 + 800700a: 687b ldr r3, [r7, #4] + 800700c: 681b ldr r3, [r3, #0] + 800700e: 681b ldr r3, [r3, #0] + 8007010: f003 0310 and.w r3, r3, #16 + 8007014: 2b10 cmp r3, #16 + 8007016: d10a bne.n 800702e + 8007018: 2300 movs r3, #0 + 800701a: 60fb str r3, [r7, #12] 800701c: 687b ldr r3, [r7, #4] 800701e: 681b ldr r3, [r3, #0] - 8007020: 330c adds r3, #12 + 8007020: 681b ldr r3, [r3, #0] 8007022: 60fb str r3, [r7, #12] - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8007024: 68fb ldr r3, [r7, #12] - 8007026: e853 3f00 ldrex r3, [r3] - 800702a: 60bb str r3, [r7, #8] - return(result); - 800702c: 68bb ldr r3, [r7, #8] - 800702e: f023 03c0 bic.w r3, r3, #192 @ 0xc0 - 8007032: 61fb str r3, [r7, #28] - 8007034: 687b ldr r3, [r7, #4] - 8007036: 681b ldr r3, [r3, #0] - 8007038: 330c adds r3, #12 - 800703a: 69fa ldr r2, [r7, #28] - 800703c: 61ba str r2, [r7, #24] - 800703e: 617b str r3, [r7, #20] - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8007040: 6979 ldr r1, [r7, #20] - 8007042: 69ba ldr r2, [r7, #24] - 8007044: e841 2300 strex r3, r2, [r1] - 8007048: 613b str r3, [r7, #16] - return(result); - 800704a: 693b ldr r3, [r7, #16] - 800704c: 2b00 cmp r3, #0 - 800704e: d1e5 bne.n 800701c + 8007024: 687b ldr r3, [r7, #4] + 8007026: 681b ldr r3, [r3, #0] + 8007028: 685b ldr r3, [r3, #4] + 800702a: 60fb str r3, [r7, #12] + 800702c: 68fb ldr r3, [r7, #12] + 800702e: 687b ldr r3, [r7, #4] + 8007030: 8d9b ldrh r3, [r3, #44] @ 0x2c + 8007032: 4619 mov r1, r3 + 8007034: 6878 ldr r0, [r7, #4] + 8007036: f7ff fc3f bl 80068b8 + 800703a: e002 b.n 8007042 + 800703c: 6878 ldr r0, [r7, #4] + 800703e: f7f9 fdf9 bl 8000c34 + 8007042: 2300 movs r3, #0 + 8007044: e002 b.n 800704c + 8007046: 2300 movs r3, #0 + 8007048: e000 b.n 800704c + 800704a: 2302 movs r3, #2 + 800704c: 4618 mov r0, r3 + 800704e: 3730 adds r7, #48 @ 0x30 + 8007050: 46bd mov sp, r7 + 8007052: bd80 pop {r7, pc} - /* At end of Tx process, restore huart->gState to Ready */ - huart->gState = HAL_UART_STATE_READY; - 8007050: 687b ldr r3, [r7, #4] - 8007052: 2220 movs r2, #32 - 8007054: f883 2041 strb.w r2, [r3, #65] @ 0x41 -} - 8007058: bf00 nop - 800705a: 3724 adds r7, #36 @ 0x24 - 800705c: 46bd mov sp, r7 - 800705e: f85d 7b04 ldr.w r7, [sp], #4 - 8007062: 4770 bx lr - -08007064 : - * @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) -{ - 8007064: b480 push {r7} - 8007066: b095 sub sp, #84 @ 0x54 - 8007068: af00 add r7, sp, #0 - 800706a: 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)); - 800706c: 687b ldr r3, [r7, #4] - 800706e: 681b ldr r3, [r3, #0] - 8007070: 330c adds r3, #12 - 8007072: 637b str r3, [r7, #52] @ 0x34 - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8007074: 6b7b ldr r3, [r7, #52] @ 0x34 - 8007076: e853 3f00 ldrex r3, [r3] - 800707a: 633b str r3, [r7, #48] @ 0x30 - return(result); - 800707c: 6b3b ldr r3, [r7, #48] @ 0x30 - 800707e: f423 7390 bic.w r3, r3, #288 @ 0x120 - 8007082: 64fb str r3, [r7, #76] @ 0x4c - 8007084: 687b ldr r3, [r7, #4] - 8007086: 681b ldr r3, [r3, #0] - 8007088: 330c adds r3, #12 - 800708a: 6cfa ldr r2, [r7, #76] @ 0x4c - 800708c: 643a str r2, [r7, #64] @ 0x40 - 800708e: 63fb str r3, [r7, #60] @ 0x3c - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8007090: 6bf9 ldr r1, [r7, #60] @ 0x3c - 8007092: 6c3a ldr r2, [r7, #64] @ 0x40 - 8007094: e841 2300 strex r3, r2, [r1] - 8007098: 63bb str r3, [r7, #56] @ 0x38 - return(result); - 800709a: 6bbb ldr r3, [r7, #56] @ 0x38 - 800709c: 2b00 cmp r3, #0 - 800709e: d1e5 bne.n 800706c - ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 80070a0: 687b ldr r3, [r7, #4] - 80070a2: 681b ldr r3, [r3, #0] - 80070a4: 3314 adds r3, #20 - 80070a6: 623b str r3, [r7, #32] - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80070a8: 6a3b ldr r3, [r7, #32] - 80070aa: e853 3f00 ldrex r3, [r3] - 80070ae: 61fb str r3, [r7, #28] - return(result); - 80070b0: 69fb ldr r3, [r7, #28] - 80070b2: f023 0301 bic.w r3, r3, #1 - 80070b6: 64bb str r3, [r7, #72] @ 0x48 - 80070b8: 687b ldr r3, [r7, #4] - 80070ba: 681b ldr r3, [r3, #0] - 80070bc: 3314 adds r3, #20 - 80070be: 6cba ldr r2, [r7, #72] @ 0x48 - 80070c0: 62fa str r2, [r7, #44] @ 0x2c - 80070c2: 62bb str r3, [r7, #40] @ 0x28 - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80070c4: 6ab9 ldr r1, [r7, #40] @ 0x28 - 80070c6: 6afa ldr r2, [r7, #44] @ 0x2c - 80070c8: e841 2300 strex r3, r2, [r1] - 80070cc: 627b str r3, [r7, #36] @ 0x24 - return(result); - 80070ce: 6a7b ldr r3, [r7, #36] @ 0x24 - 80070d0: 2b00 cmp r3, #0 - 80070d2: d1e5 bne.n 80070a0 - - /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */ - if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 80070d4: 687b ldr r3, [r7, #4] - 80070d6: 6b1b ldr r3, [r3, #48] @ 0x30 - 80070d8: 2b01 cmp r3, #1 - 80070da: d119 bne.n 8007110 - { - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 80070dc: 687b ldr r3, [r7, #4] - 80070de: 681b ldr r3, [r3, #0] - 80070e0: 330c adds r3, #12 - 80070e2: 60fb str r3, [r7, #12] - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80070e4: 68fb ldr r3, [r7, #12] - 80070e6: e853 3f00 ldrex r3, [r3] - 80070ea: 60bb str r3, [r7, #8] - return(result); - 80070ec: 68bb ldr r3, [r7, #8] - 80070ee: f023 0310 bic.w r3, r3, #16 - 80070f2: 647b str r3, [r7, #68] @ 0x44 - 80070f4: 687b ldr r3, [r7, #4] - 80070f6: 681b ldr r3, [r3, #0] - 80070f8: 330c adds r3, #12 - 80070fa: 6c7a ldr r2, [r7, #68] @ 0x44 - 80070fc: 61ba str r2, [r7, #24] - 80070fe: 617b str r3, [r7, #20] - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8007100: 6979 ldr r1, [r7, #20] - 8007102: 69ba ldr r2, [r7, #24] - 8007104: e841 2300 strex r3, r2, [r1] - 8007108: 613b str r3, [r7, #16] - return(result); - 800710a: 693b ldr r3, [r7, #16] - 800710c: 2b00 cmp r3, #0 - 800710e: d1e5 bne.n 80070dc - } - - /* At end of Rx process, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - 8007110: 687b ldr r3, [r7, #4] - 8007112: 2220 movs r2, #32 - 8007114: f883 2042 strb.w r2, [r3, #66] @ 0x42 - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8007118: 687b ldr r3, [r7, #4] - 800711a: 2200 movs r2, #0 - 800711c: 631a str r2, [r3, #48] @ 0x30 -} - 800711e: bf00 nop - 8007120: 3754 adds r7, #84 @ 0x54 - 8007122: 46bd mov sp, r7 - 8007124: f85d 7b04 ldr.w r7, [sp], #4 - 8007128: 4770 bx lr - -0800712a : - * @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) -{ - 800712a: b580 push {r7, lr} - 800712c: b084 sub sp, #16 - 800712e: af00 add r7, sp, #0 - 8007130: 6078 str r0, [r7, #4] - UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 8007132: 687b ldr r3, [r7, #4] - 8007134: 6b9b ldr r3, [r3, #56] @ 0x38 - 8007136: 60fb str r3, [r7, #12] - huart->RxXferCount = 0x00U; - 8007138: 68fb ldr r3, [r7, #12] - 800713a: 2200 movs r2, #0 - 800713c: 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); - 800713e: 68f8 ldr r0, [r7, #12] - 8007140: f7f9 fe4c bl 8000ddc -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ -} - 8007144: bf00 nop - 8007146: 3710 adds r7, #16 - 8007148: 46bd mov sp, r7 - 800714a: bd80 pop {r7, pc} - -0800714c : - * @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) -{ - 800714c: b480 push {r7} - 800714e: b085 sub sp, #20 - 8007150: af00 add r7, sp, #0 - 8007152: 6078 str r0, [r7, #4] - const uint16_t *tmp; - - /* Check that a Tx process is ongoing */ - if (huart->gState == HAL_UART_STATE_BUSY_TX) - 8007154: 687b ldr r3, [r7, #4] - 8007156: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 800715a: b2db uxtb r3, r3 - 800715c: 2b21 cmp r3, #33 @ 0x21 - 800715e: d13e bne.n 80071de - { - if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 8007160: 687b ldr r3, [r7, #4] - 8007162: 689b ldr r3, [r3, #8] - 8007164: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8007168: d114 bne.n 8007194 - 800716a: 687b ldr r3, [r7, #4] - 800716c: 691b ldr r3, [r3, #16] - 800716e: 2b00 cmp r3, #0 - 8007170: d110 bne.n 8007194 - { - tmp = (const uint16_t *) huart->pTxBuffPtr; - 8007172: 687b ldr r3, [r7, #4] - 8007174: 6a1b ldr r3, [r3, #32] - 8007176: 60fb str r3, [r7, #12] - huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF); - 8007178: 68fb ldr r3, [r7, #12] - 800717a: 881b ldrh r3, [r3, #0] - 800717c: 461a mov r2, r3 - 800717e: 687b ldr r3, [r7, #4] - 8007180: 681b ldr r3, [r3, #0] - 8007182: f3c2 0208 ubfx r2, r2, #0, #9 - 8007186: 605a str r2, [r3, #4] - huart->pTxBuffPtr += 2U; - 8007188: 687b ldr r3, [r7, #4] - 800718a: 6a1b ldr r3, [r3, #32] - 800718c: 1c9a adds r2, r3, #2 - 800718e: 687b ldr r3, [r7, #4] - 8007190: 621a str r2, [r3, #32] - 8007192: e008 b.n 80071a6 - } - else - { - huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF); - 8007194: 687b ldr r3, [r7, #4] - 8007196: 6a1b ldr r3, [r3, #32] - 8007198: 1c59 adds r1, r3, #1 - 800719a: 687a ldr r2, [r7, #4] - 800719c: 6211 str r1, [r2, #32] - 800719e: 781a ldrb r2, [r3, #0] - 80071a0: 687b ldr r3, [r7, #4] - 80071a2: 681b ldr r3, [r3, #0] - 80071a4: 605a str r2, [r3, #4] - } - - if (--huart->TxXferCount == 0U) - 80071a6: 687b ldr r3, [r7, #4] - 80071a8: 8cdb ldrh r3, [r3, #38] @ 0x26 - 80071aa: b29b uxth r3, r3 - 80071ac: 3b01 subs r3, #1 - 80071ae: b29b uxth r3, r3 - 80071b0: 687a ldr r2, [r7, #4] - 80071b2: 4619 mov r1, r3 - 80071b4: 84d1 strh r1, [r2, #38] @ 0x26 - 80071b6: 2b00 cmp r3, #0 - 80071b8: d10f bne.n 80071da - { - /* Disable the UART Transmit Data Register Empty Interrupt */ - __HAL_UART_DISABLE_IT(huart, UART_IT_TXE); - 80071ba: 687b ldr r3, [r7, #4] - 80071bc: 681b ldr r3, [r3, #0] - 80071be: 68da ldr r2, [r3, #12] - 80071c0: 687b ldr r3, [r7, #4] - 80071c2: 681b ldr r3, [r3, #0] - 80071c4: f022 0280 bic.w r2, r2, #128 @ 0x80 - 80071c8: 60da str r2, [r3, #12] - - /* Enable the UART Transmit Complete Interrupt */ - __HAL_UART_ENABLE_IT(huart, UART_IT_TC); - 80071ca: 687b ldr r3, [r7, #4] - 80071cc: 681b ldr r3, [r3, #0] - 80071ce: 68da ldr r2, [r3, #12] - 80071d0: 687b ldr r3, [r7, #4] - 80071d2: 681b ldr r3, [r3, #0] - 80071d4: f042 0240 orr.w r2, r2, #64 @ 0x40 - 80071d8: 60da str r2, [r3, #12] - } - return HAL_OK; - 80071da: 2300 movs r3, #0 - 80071dc: e000 b.n 80071e0 - } - else - { - return HAL_BUSY; - 80071de: 2302 movs r3, #2 - } -} - 80071e0: 4618 mov r0, r3 - 80071e2: 3714 adds r7, #20 - 80071e4: 46bd mov sp, r7 - 80071e6: f85d 7b04 ldr.w r7, [sp], #4 - 80071ea: 4770 bx lr - -080071ec : - * @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) -{ - 80071ec: b580 push {r7, lr} - 80071ee: b082 sub sp, #8 - 80071f0: af00 add r7, sp, #0 - 80071f2: 6078 str r0, [r7, #4] - /* Disable the UART Transmit Complete Interrupt */ - __HAL_UART_DISABLE_IT(huart, UART_IT_TC); - 80071f4: 687b ldr r3, [r7, #4] - 80071f6: 681b ldr r3, [r3, #0] - 80071f8: 68da ldr r2, [r3, #12] - 80071fa: 687b ldr r3, [r7, #4] - 80071fc: 681b ldr r3, [r3, #0] - 80071fe: f022 0240 bic.w r2, r2, #64 @ 0x40 - 8007202: 60da str r2, [r3, #12] - - /* Tx process is ended, restore huart->gState to Ready */ - huart->gState = HAL_UART_STATE_READY; - 8007204: 687b ldr r3, [r7, #4] - 8007206: 2220 movs r2, #32 - 8007208: 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); - 800720c: 6878 ldr r0, [r7, #4] - 800720e: f7ff fcd7 bl 8006bc0 -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - - return HAL_OK; - 8007212: 2300 movs r3, #0 -} - 8007214: 4618 mov r0, r3 - 8007216: 3708 adds r7, #8 - 8007218: 46bd mov sp, r7 - 800721a: bd80 pop {r7, pc} - -0800721c : - * @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) -{ - 800721c: b580 push {r7, lr} - 800721e: b08c sub sp, #48 @ 0x30 - 8007220: af00 add r7, sp, #0 - 8007222: 6078 str r0, [r7, #4] - uint8_t *pdata8bits = NULL; - 8007224: 2300 movs r3, #0 - 8007226: 62fb str r3, [r7, #44] @ 0x2c - uint16_t *pdata16bits = NULL; - 8007228: 2300 movs r3, #0 - 800722a: 62bb str r3, [r7, #40] @ 0x28 - - /* Check that a Rx process is ongoing */ - if (huart->RxState == HAL_UART_STATE_BUSY_RX) - 800722c: 687b ldr r3, [r7, #4] - 800722e: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 - 8007232: b2db uxtb r3, r3 - 8007234: 2b22 cmp r3, #34 @ 0x22 - 8007236: f040 80aa bne.w 800738e - { - if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 800723a: 687b ldr r3, [r7, #4] - 800723c: 689b ldr r3, [r3, #8] - 800723e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8007242: d115 bne.n 8007270 - 8007244: 687b ldr r3, [r7, #4] - 8007246: 691b ldr r3, [r3, #16] - 8007248: 2b00 cmp r3, #0 - 800724a: d111 bne.n 8007270 - { - /* Unused pdata8bits */ - UNUSED(pdata8bits); - pdata16bits = (uint16_t *) huart->pRxBuffPtr; - 800724c: 687b ldr r3, [r7, #4] - 800724e: 6a9b ldr r3, [r3, #40] @ 0x28 - 8007250: 62bb str r3, [r7, #40] @ 0x28 - *pdata16bits = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF); - 8007252: 687b ldr r3, [r7, #4] - 8007254: 681b ldr r3, [r3, #0] - 8007256: 685b ldr r3, [r3, #4] - 8007258: b29b uxth r3, r3 - 800725a: f3c3 0308 ubfx r3, r3, #0, #9 - 800725e: b29a uxth r2, r3 - 8007260: 6abb ldr r3, [r7, #40] @ 0x28 - 8007262: 801a strh r2, [r3, #0] - huart->pRxBuffPtr += 2U; - 8007264: 687b ldr r3, [r7, #4] - 8007266: 6a9b ldr r3, [r3, #40] @ 0x28 - 8007268: 1c9a adds r2, r3, #2 - 800726a: 687b ldr r3, [r7, #4] - 800726c: 629a str r2, [r3, #40] @ 0x28 - 800726e: e024 b.n 80072ba - } - else - { - pdata8bits = (uint8_t *) huart->pRxBuffPtr; - 8007270: 687b ldr r3, [r7, #4] - 8007272: 6a9b ldr r3, [r3, #40] @ 0x28 - 8007274: 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))) - 8007276: 687b ldr r3, [r7, #4] - 8007278: 689b ldr r3, [r3, #8] - 800727a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 800727e: d007 beq.n 8007290 - 8007280: 687b ldr r3, [r7, #4] - 8007282: 689b ldr r3, [r3, #8] - 8007284: 2b00 cmp r3, #0 - 8007286: d10a bne.n 800729e - 8007288: 687b ldr r3, [r7, #4] - 800728a: 691b ldr r3, [r3, #16] - 800728c: 2b00 cmp r3, #0 - 800728e: d106 bne.n 800729e - { - *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF); - 8007290: 687b ldr r3, [r7, #4] - 8007292: 681b ldr r3, [r3, #0] - 8007294: 685b ldr r3, [r3, #4] - 8007296: b2da uxtb r2, r3 - 8007298: 6afb ldr r3, [r7, #44] @ 0x2c - 800729a: 701a strb r2, [r3, #0] - 800729c: e008 b.n 80072b0 - } - else - { - *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F); - 800729e: 687b ldr r3, [r7, #4] - 80072a0: 681b ldr r3, [r3, #0] - 80072a2: 685b ldr r3, [r3, #4] - 80072a4: b2db uxtb r3, r3 - 80072a6: f003 037f and.w r3, r3, #127 @ 0x7f - 80072aa: b2da uxtb r2, r3 - 80072ac: 6afb ldr r3, [r7, #44] @ 0x2c - 80072ae: 701a strb r2, [r3, #0] - } - huart->pRxBuffPtr += 1U; - 80072b0: 687b ldr r3, [r7, #4] - 80072b2: 6a9b ldr r3, [r3, #40] @ 0x28 - 80072b4: 1c5a adds r2, r3, #1 - 80072b6: 687b ldr r3, [r7, #4] - 80072b8: 629a str r2, [r3, #40] @ 0x28 - } - - if (--huart->RxXferCount == 0U) - 80072ba: 687b ldr r3, [r7, #4] - 80072bc: 8ddb ldrh r3, [r3, #46] @ 0x2e - 80072be: b29b uxth r3, r3 - 80072c0: 3b01 subs r3, #1 - 80072c2: b29b uxth r3, r3 - 80072c4: 687a ldr r2, [r7, #4] - 80072c6: 4619 mov r1, r3 - 80072c8: 85d1 strh r1, [r2, #46] @ 0x2e - 80072ca: 2b00 cmp r3, #0 - 80072cc: d15d bne.n 800738a - { - /* Disable the UART Data Register not empty Interrupt */ - __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE); - 80072ce: 687b ldr r3, [r7, #4] - 80072d0: 681b ldr r3, [r3, #0] - 80072d2: 68da ldr r2, [r3, #12] - 80072d4: 687b ldr r3, [r7, #4] - 80072d6: 681b ldr r3, [r3, #0] - 80072d8: f022 0220 bic.w r2, r2, #32 - 80072dc: 60da str r2, [r3, #12] - - /* Disable the UART Parity Error Interrupt */ - __HAL_UART_DISABLE_IT(huart, UART_IT_PE); - 80072de: 687b ldr r3, [r7, #4] - 80072e0: 681b ldr r3, [r3, #0] - 80072e2: 68da ldr r2, [r3, #12] - 80072e4: 687b ldr r3, [r7, #4] - 80072e6: 681b ldr r3, [r3, #0] - 80072e8: f422 7280 bic.w r2, r2, #256 @ 0x100 - 80072ec: 60da str r2, [r3, #12] - - /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ - __HAL_UART_DISABLE_IT(huart, UART_IT_ERR); - 80072ee: 687b ldr r3, [r7, #4] - 80072f0: 681b ldr r3, [r3, #0] - 80072f2: 695a ldr r2, [r3, #20] - 80072f4: 687b ldr r3, [r7, #4] - 80072f6: 681b ldr r3, [r3, #0] - 80072f8: f022 0201 bic.w r2, r2, #1 - 80072fc: 615a str r2, [r3, #20] - - /* Rx process is completed, restore huart->RxState to Ready */ - huart->RxState = HAL_UART_STATE_READY; - 80072fe: 687b ldr r3, [r7, #4] - 8007300: 2220 movs r2, #32 - 8007302: f883 2042 strb.w r2, [r3, #66] @ 0x42 - - /* Initialize type of RxEvent to Transfer Complete */ - huart->RxEventType = HAL_UART_RXEVENT_TC; - 8007306: 687b ldr r3, [r7, #4] - 8007308: 2200 movs r2, #0 - 800730a: 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) - 800730c: 687b ldr r3, [r7, #4] - 800730e: 6b1b ldr r3, [r3, #48] @ 0x30 - 8007310: 2b01 cmp r3, #1 - 8007312: d135 bne.n 8007380 - { - /* Set reception type to Standard */ - huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8007314: 687b ldr r3, [r7, #4] - 8007316: 2200 movs r2, #0 - 8007318: 631a str r2, [r3, #48] @ 0x30 - - /* Disable IDLE interrupt */ - ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 800731a: 687b ldr r3, [r7, #4] - 800731c: 681b ldr r3, [r3, #0] - 800731e: 330c adds r3, #12 - 8007320: 617b str r3, [r7, #20] - __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8007322: 697b ldr r3, [r7, #20] - 8007324: e853 3f00 ldrex r3, [r3] - 8007328: 613b str r3, [r7, #16] - return(result); - 800732a: 693b ldr r3, [r7, #16] - 800732c: f023 0310 bic.w r3, r3, #16 - 8007330: 627b str r3, [r7, #36] @ 0x24 - 8007332: 687b ldr r3, [r7, #4] - 8007334: 681b ldr r3, [r3, #0] - 8007336: 330c adds r3, #12 - 8007338: 6a7a ldr r2, [r7, #36] @ 0x24 - 800733a: 623a str r2, [r7, #32] - 800733c: 61fb str r3, [r7, #28] - __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800733e: 69f9 ldr r1, [r7, #28] - 8007340: 6a3a ldr r2, [r7, #32] - 8007342: e841 2300 strex r3, r2, [r1] - 8007346: 61bb str r3, [r7, #24] - return(result); - 8007348: 69bb ldr r3, [r7, #24] - 800734a: 2b00 cmp r3, #0 - 800734c: d1e5 bne.n 800731a - - /* Check if IDLE flag is set */ - if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE)) - 800734e: 687b ldr r3, [r7, #4] - 8007350: 681b ldr r3, [r3, #0] - 8007352: 681b ldr r3, [r3, #0] - 8007354: f003 0310 and.w r3, r3, #16 - 8007358: 2b10 cmp r3, #16 - 800735a: d10a bne.n 8007372 - { - /* Clear IDLE flag in ISR */ - __HAL_UART_CLEAR_IDLEFLAG(huart); - 800735c: 2300 movs r3, #0 - 800735e: 60fb str r3, [r7, #12] - 8007360: 687b ldr r3, [r7, #4] - 8007362: 681b ldr r3, [r3, #0] - 8007364: 681b ldr r3, [r3, #0] - 8007366: 60fb str r3, [r7, #12] - 8007368: 687b ldr r3, [r7, #4] - 800736a: 681b ldr r3, [r3, #0] - 800736c: 685b ldr r3, [r3, #4] - 800736e: 60fb str r3, [r7, #12] - 8007370: 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); - 8007372: 687b ldr r3, [r7, #4] - 8007374: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8007376: 4619 mov r1, r3 - 8007378: 6878 ldr r0, [r7, #4] - 800737a: f7ff fc3f bl 8006bfc - 800737e: e002 b.n 8007386 -#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); - 8007380: 6878 ldr r0, [r7, #4] - 8007382: f7f9 fccf bl 8000d24 -#endif /* USE_HAL_UART_REGISTER_CALLBACKS */ - } - - return HAL_OK; - 8007386: 2300 movs r3, #0 - 8007388: e002 b.n 8007390 - } - return HAL_OK; - 800738a: 2300 movs r3, #0 - 800738c: e000 b.n 8007390 - } - else - { - return HAL_BUSY; - 800738e: 2302 movs r3, #2 - } -} - 8007390: 4618 mov r0, r3 - 8007392: 3730 adds r7, #48 @ 0x30 - 8007394: 46bd mov sp, r7 - 8007396: bd80 pop {r7, pc} - -08007398 : - * @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) -{ - 8007398: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} - 800739c: b0c0 sub sp, #256 @ 0x100 - 800739e: af00 add r7, sp, #0 - 80073a0: 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); - 80073a4: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80073a8: 681b ldr r3, [r3, #0] - 80073aa: 691b ldr r3, [r3, #16] - 80073ac: f423 5040 bic.w r0, r3, #12288 @ 0x3000 - 80073b0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80073b4: 68d9 ldr r1, [r3, #12] - 80073b6: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80073ba: 681a ldr r2, [r3, #0] - 80073bc: ea40 0301 orr.w r3, r0, r1 - 80073c0: 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; - 80073c2: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80073c6: 689a ldr r2, [r3, #8] - 80073c8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80073cc: 691b ldr r3, [r3, #16] - 80073ce: 431a orrs r2, r3 - 80073d0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80073d4: 695b ldr r3, [r3, #20] - 80073d6: 431a orrs r2, r3 - 80073d8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80073dc: 69db ldr r3, [r3, #28] - 80073de: 4313 orrs r3, r2 - 80073e0: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8 - MODIFY_REG(huart->Instance->CR1, - 80073e4: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80073e8: 681b ldr r3, [r3, #0] - 80073ea: 68db ldr r3, [r3, #12] - 80073ec: f423 4116 bic.w r1, r3, #38400 @ 0x9600 - 80073f0: f021 010c bic.w r1, r1, #12 - 80073f4: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80073f8: 681a ldr r2, [r3, #0] - 80073fa: f8d7 30f8 ldr.w r3, [r7, #248] @ 0xf8 - 80073fe: 430b orrs r3, r1 - 8007400: 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); - 8007402: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007406: 681b ldr r3, [r3, #0] - 8007408: 695b ldr r3, [r3, #20] - 800740a: f423 7040 bic.w r0, r3, #768 @ 0x300 - 800740e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007412: 6999 ldr r1, [r3, #24] - 8007414: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007418: 681a ldr r2, [r3, #0] - 800741a: ea40 0301 orr.w r3, r0, r1 - 800741e: 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)) +08007054 : + 8007054: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} + 8007058: b0c0 sub sp, #256 @ 0x100 + 800705a: af00 add r7, sp, #0 + 800705c: f8c7 00f4 str.w r0, [r7, #244] @ 0xf4 + 8007060: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007064: 681b ldr r3, [r3, #0] + 8007066: 691b ldr r3, [r3, #16] + 8007068: f423 5040 bic.w r0, r3, #12288 @ 0x3000 + 800706c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007070: 68d9 ldr r1, [r3, #12] + 8007072: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007076: 681a ldr r2, [r3, #0] + 8007078: ea40 0301 orr.w r3, r0, r1 + 800707c: 6113 str r3, [r2, #16] + 800707e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007082: 689a ldr r2, [r3, #8] + 8007084: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007088: 691b ldr r3, [r3, #16] + 800708a: 431a orrs r2, r3 + 800708c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007090: 695b ldr r3, [r3, #20] + 8007092: 431a orrs r2, r3 + 8007094: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007098: 69db ldr r3, [r3, #28] + 800709a: 4313 orrs r3, r2 + 800709c: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8 + 80070a0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80070a4: 681b ldr r3, [r3, #0] + 80070a6: 68db ldr r3, [r3, #12] + 80070a8: f423 4116 bic.w r1, r3, #38400 @ 0x9600 + 80070ac: f021 010c bic.w r1, r1, #12 + 80070b0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80070b4: 681a ldr r2, [r3, #0] + 80070b6: f8d7 30f8 ldr.w r3, [r7, #248] @ 0xf8 + 80070ba: 430b orrs r3, r1 + 80070bc: 60d3 str r3, [r2, #12] + 80070be: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80070c2: 681b ldr r3, [r3, #0] + 80070c4: 695b ldr r3, [r3, #20] + 80070c6: f423 7040 bic.w r0, r3, #768 @ 0x300 + 80070ca: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80070ce: 6999 ldr r1, [r3, #24] + 80070d0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80070d4: 681a ldr r2, [r3, #0] + 80070d6: ea40 0301 orr.w r3, r0, r1 + 80070da: 6153 str r3, [r2, #20] + 80070dc: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80070e0: 681a ldr r2, [r3, #0] + 80070e2: 4b8f ldr r3, [pc, #572] @ (8007320 ) + 80070e4: 429a cmp r2, r3 + 80070e6: d005 beq.n 80070f4 + 80070e8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80070ec: 681a ldr r2, [r3, #0] + 80070ee: 4b8d ldr r3, [pc, #564] @ (8007324 ) + 80070f0: 429a cmp r2, r3 + 80070f2: d104 bne.n 80070fe + 80070f4: f7fd f960 bl 80043b8 + 80070f8: f8c7 00fc str.w r0, [r7, #252] @ 0xfc + 80070fc: e003 b.n 8007106 + 80070fe: f7fd f947 bl 8004390 + 8007102: f8c7 00fc str.w r0, [r7, #252] @ 0xfc + 8007106: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 800710a: 69db ldr r3, [r3, #28] + 800710c: f5b3 4f00 cmp.w r3, #32768 @ 0x8000 + 8007110: f040 810c bne.w 800732c + 8007114: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8007118: 2200 movs r2, #0 + 800711a: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8 + 800711e: f8c7 20ec str.w r2, [r7, #236] @ 0xec + 8007122: e9d7 453a ldrd r4, r5, [r7, #232] @ 0xe8 + 8007126: 4622 mov r2, r4 + 8007128: 462b mov r3, r5 + 800712a: 1891 adds r1, r2, r2 + 800712c: 65b9 str r1, [r7, #88] @ 0x58 + 800712e: 415b adcs r3, r3 + 8007130: 65fb str r3, [r7, #92] @ 0x5c + 8007132: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 + 8007136: 4621 mov r1, r4 + 8007138: eb12 0801 adds.w r8, r2, r1 + 800713c: 4629 mov r1, r5 + 800713e: eb43 0901 adc.w r9, r3, r1 + 8007142: f04f 0200 mov.w r2, #0 + 8007146: f04f 0300 mov.w r3, #0 + 800714a: ea4f 03c9 mov.w r3, r9, lsl #3 + 800714e: ea43 7358 orr.w r3, r3, r8, lsr #29 + 8007152: ea4f 02c8 mov.w r2, r8, lsl #3 + 8007156: 4690 mov r8, r2 + 8007158: 4699 mov r9, r3 + 800715a: 4623 mov r3, r4 + 800715c: eb18 0303 adds.w r3, r8, r3 + 8007160: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 + 8007164: 462b mov r3, r5 + 8007166: eb49 0303 adc.w r3, r9, r3 + 800716a: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 + 800716e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007172: 685b ldr r3, [r3, #4] + 8007174: 2200 movs r2, #0 + 8007176: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 + 800717a: f8c7 20dc str.w r2, [r7, #220] @ 0xdc + 800717e: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8 + 8007182: 460b mov r3, r1 + 8007184: 18db adds r3, r3, r3 + 8007186: 653b str r3, [r7, #80] @ 0x50 + 8007188: 4613 mov r3, r2 + 800718a: eb42 0303 adc.w r3, r2, r3 + 800718e: 657b str r3, [r7, #84] @ 0x54 + 8007190: e9d7 2314 ldrd r2, r3, [r7, #80] @ 0x50 + 8007194: e9d7 0138 ldrd r0, r1, [r7, #224] @ 0xe0 + 8007198: f7f9 f834 bl 8000204 <__aeabi_uldivmod> + 800719c: 4602 mov r2, r0 + 800719e: 460b mov r3, r1 + 80071a0: 4b61 ldr r3, [pc, #388] @ (8007328 ) + 80071a2: fba3 2302 umull r2, r3, r3, r2 + 80071a6: 095b lsrs r3, r3, #5 + 80071a8: 011c lsls r4, r3, #4 + 80071aa: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 80071ae: 2200 movs r2, #0 + 80071b0: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 + 80071b4: f8c7 20d4 str.w r2, [r7, #212] @ 0xd4 + 80071b8: e9d7 8934 ldrd r8, r9, [r7, #208] @ 0xd0 + 80071bc: 4642 mov r2, r8 + 80071be: 464b mov r3, r9 + 80071c0: 1891 adds r1, r2, r2 + 80071c2: 64b9 str r1, [r7, #72] @ 0x48 + 80071c4: 415b adcs r3, r3 + 80071c6: 64fb str r3, [r7, #76] @ 0x4c + 80071c8: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 + 80071cc: 4641 mov r1, r8 + 80071ce: eb12 0a01 adds.w sl, r2, r1 + 80071d2: 4649 mov r1, r9 + 80071d4: eb43 0b01 adc.w fp, r3, r1 + 80071d8: f04f 0200 mov.w r2, #0 + 80071dc: f04f 0300 mov.w r3, #0 + 80071e0: ea4f 03cb mov.w r3, fp, lsl #3 + 80071e4: ea43 735a orr.w r3, r3, sl, lsr #29 + 80071e8: ea4f 02ca mov.w r2, sl, lsl #3 + 80071ec: 4692 mov sl, r2 + 80071ee: 469b mov fp, r3 + 80071f0: 4643 mov r3, r8 + 80071f2: eb1a 0303 adds.w r3, sl, r3 + 80071f6: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 + 80071fa: 464b mov r3, r9 + 80071fc: eb4b 0303 adc.w r3, fp, r3 + 8007200: f8c7 30cc str.w r3, [r7, #204] @ 0xcc + 8007204: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007208: 685b ldr r3, [r3, #4] + 800720a: 2200 movs r2, #0 + 800720c: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 + 8007210: f8c7 20c4 str.w r2, [r7, #196] @ 0xc4 + 8007214: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0 + 8007218: 460b mov r3, r1 + 800721a: 18db adds r3, r3, r3 + 800721c: 643b str r3, [r7, #64] @ 0x40 + 800721e: 4613 mov r3, r2 + 8007220: eb42 0303 adc.w r3, r2, r3 + 8007224: 647b str r3, [r7, #68] @ 0x44 + 8007226: e9d7 2310 ldrd r2, r3, [r7, #64] @ 0x40 + 800722a: e9d7 0132 ldrd r0, r1, [r7, #200] @ 0xc8 + 800722e: f7f8 ffe9 bl 8000204 <__aeabi_uldivmod> + 8007232: 4602 mov r2, r0 + 8007234: 460b mov r3, r1 + 8007236: 4611 mov r1, r2 + 8007238: 4b3b ldr r3, [pc, #236] @ (8007328 ) + 800723a: fba3 2301 umull r2, r3, r3, r1 + 800723e: 095b lsrs r3, r3, #5 + 8007240: 2264 movs r2, #100 @ 0x64 + 8007242: fb02 f303 mul.w r3, r2, r3 + 8007246: 1acb subs r3, r1, r3 + 8007248: 00db lsls r3, r3, #3 + 800724a: f103 0232 add.w r2, r3, #50 @ 0x32 + 800724e: 4b36 ldr r3, [pc, #216] @ (8007328 ) + 8007250: fba3 2302 umull r2, r3, r3, r2 + 8007254: 095b lsrs r3, r3, #5 + 8007256: 005b lsls r3, r3, #1 + 8007258: f403 73f8 and.w r3, r3, #496 @ 0x1f0 + 800725c: 441c add r4, r3 + 800725e: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8007262: 2200 movs r2, #0 + 8007264: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 + 8007268: f8c7 20bc str.w r2, [r7, #188] @ 0xbc + 800726c: e9d7 892e ldrd r8, r9, [r7, #184] @ 0xb8 + 8007270: 4642 mov r2, r8 + 8007272: 464b mov r3, r9 + 8007274: 1891 adds r1, r2, r2 + 8007276: 63b9 str r1, [r7, #56] @ 0x38 + 8007278: 415b adcs r3, r3 + 800727a: 63fb str r3, [r7, #60] @ 0x3c + 800727c: e9d7 230e ldrd r2, r3, [r7, #56] @ 0x38 + 8007280: 4641 mov r1, r8 + 8007282: 1851 adds r1, r2, r1 + 8007284: 6339 str r1, [r7, #48] @ 0x30 + 8007286: 4649 mov r1, r9 + 8007288: 414b adcs r3, r1 + 800728a: 637b str r3, [r7, #52] @ 0x34 + 800728c: f04f 0200 mov.w r2, #0 + 8007290: f04f 0300 mov.w r3, #0 + 8007294: e9d7 ab0c ldrd sl, fp, [r7, #48] @ 0x30 + 8007298: 4659 mov r1, fp + 800729a: 00cb lsls r3, r1, #3 + 800729c: 4651 mov r1, sl + 800729e: ea43 7351 orr.w r3, r3, r1, lsr #29 + 80072a2: 4651 mov r1, sl + 80072a4: 00ca lsls r2, r1, #3 + 80072a6: 4610 mov r0, r2 + 80072a8: 4619 mov r1, r3 + 80072aa: 4603 mov r3, r0 + 80072ac: 4642 mov r2, r8 + 80072ae: 189b adds r3, r3, r2 + 80072b0: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 80072b4: 464b mov r3, r9 + 80072b6: 460a mov r2, r1 + 80072b8: eb42 0303 adc.w r3, r2, r3 + 80072bc: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 80072c0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80072c4: 685b ldr r3, [r3, #4] + 80072c6: 2200 movs r2, #0 + 80072c8: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 80072cc: f8c7 20ac str.w r2, [r7, #172] @ 0xac + 80072d0: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8 + 80072d4: 460b mov r3, r1 + 80072d6: 18db adds r3, r3, r3 + 80072d8: 62bb str r3, [r7, #40] @ 0x28 + 80072da: 4613 mov r3, r2 + 80072dc: eb42 0303 adc.w r3, r2, r3 + 80072e0: 62fb str r3, [r7, #44] @ 0x2c + 80072e2: e9d7 230a ldrd r2, r3, [r7, #40] @ 0x28 + 80072e6: e9d7 012c ldrd r0, r1, [r7, #176] @ 0xb0 + 80072ea: f7f8 ff8b bl 8000204 <__aeabi_uldivmod> + 80072ee: 4602 mov r2, r0 + 80072f0: 460b mov r3, r1 + 80072f2: 4b0d ldr r3, [pc, #52] @ (8007328 ) + 80072f4: fba3 1302 umull r1, r3, r3, r2 + 80072f8: 095b lsrs r3, r3, #5 + 80072fa: 2164 movs r1, #100 @ 0x64 + 80072fc: fb01 f303 mul.w r3, r1, r3 + 8007300: 1ad3 subs r3, r2, r3 + 8007302: 00db lsls r3, r3, #3 + 8007304: 3332 adds r3, #50 @ 0x32 + 8007306: 4a08 ldr r2, [pc, #32] @ (8007328 ) + 8007308: fba2 2303 umull r2, r3, r2, r3 + 800730c: 095b lsrs r3, r3, #5 + 800730e: f003 0207 and.w r2, r3, #7 + 8007312: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007316: 681b ldr r3, [r3, #0] + 8007318: 4422 add r2, r4 + 800731a: 609a str r2, [r3, #8] + 800731c: e106 b.n 800752c + 800731e: bf00 nop + 8007320: 40011000 .word 0x40011000 + 8007324: 40011400 .word 0x40011400 + 8007328: 51eb851f .word 0x51eb851f + 800732c: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8007330: 2200 movs r2, #0 + 8007332: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 + 8007336: f8c7 20a4 str.w r2, [r7, #164] @ 0xa4 + 800733a: e9d7 8928 ldrd r8, r9, [r7, #160] @ 0xa0 + 800733e: 4642 mov r2, r8 + 8007340: 464b mov r3, r9 + 8007342: 1891 adds r1, r2, r2 + 8007344: 6239 str r1, [r7, #32] + 8007346: 415b adcs r3, r3 + 8007348: 627b str r3, [r7, #36] @ 0x24 + 800734a: e9d7 2308 ldrd r2, r3, [r7, #32] + 800734e: 4641 mov r1, r8 + 8007350: 1854 adds r4, r2, r1 + 8007352: 4649 mov r1, r9 + 8007354: eb43 0501 adc.w r5, r3, r1 + 8007358: f04f 0200 mov.w r2, #0 + 800735c: f04f 0300 mov.w r3, #0 + 8007360: 00eb lsls r3, r5, #3 + 8007362: ea43 7354 orr.w r3, r3, r4, lsr #29 + 8007366: 00e2 lsls r2, r4, #3 + 8007368: 4614 mov r4, r2 + 800736a: 461d mov r5, r3 + 800736c: 4643 mov r3, r8 + 800736e: 18e3 adds r3, r4, r3 + 8007370: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 8007374: 464b mov r3, r9 + 8007376: eb45 0303 adc.w r3, r5, r3 + 800737a: f8c7 309c str.w r3, [r7, #156] @ 0x9c + 800737e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007382: 685b ldr r3, [r3, #4] + 8007384: 2200 movs r2, #0 + 8007386: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 800738a: f8c7 2094 str.w r2, [r7, #148] @ 0x94 + 800738e: f04f 0200 mov.w r2, #0 + 8007392: f04f 0300 mov.w r3, #0 + 8007396: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 + 800739a: 4629 mov r1, r5 + 800739c: 008b lsls r3, r1, #2 + 800739e: 4621 mov r1, r4 + 80073a0: ea43 7391 orr.w r3, r3, r1, lsr #30 + 80073a4: 4621 mov r1, r4 + 80073a6: 008a lsls r2, r1, #2 + 80073a8: e9d7 0126 ldrd r0, r1, [r7, #152] @ 0x98 + 80073ac: f7f8 ff2a bl 8000204 <__aeabi_uldivmod> + 80073b0: 4602 mov r2, r0 + 80073b2: 460b mov r3, r1 + 80073b4: 4b60 ldr r3, [pc, #384] @ (8007538 ) + 80073b6: fba3 2302 umull r2, r3, r3, r2 + 80073ba: 095b lsrs r3, r3, #5 + 80073bc: 011c lsls r4, r3, #4 + 80073be: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 80073c2: 2200 movs r2, #0 + 80073c4: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 80073c8: f8c7 208c str.w r2, [r7, #140] @ 0x8c + 80073cc: e9d7 8922 ldrd r8, r9, [r7, #136] @ 0x88 + 80073d0: 4642 mov r2, r8 + 80073d2: 464b mov r3, r9 + 80073d4: 1891 adds r1, r2, r2 + 80073d6: 61b9 str r1, [r7, #24] + 80073d8: 415b adcs r3, r3 + 80073da: 61fb str r3, [r7, #28] + 80073dc: e9d7 2306 ldrd r2, r3, [r7, #24] + 80073e0: 4641 mov r1, r8 + 80073e2: 1851 adds r1, r2, r1 + 80073e4: 6139 str r1, [r7, #16] + 80073e6: 4649 mov r1, r9 + 80073e8: 414b adcs r3, r1 + 80073ea: 617b str r3, [r7, #20] + 80073ec: f04f 0200 mov.w r2, #0 + 80073f0: f04f 0300 mov.w r3, #0 + 80073f4: e9d7 ab04 ldrd sl, fp, [r7, #16] + 80073f8: 4659 mov r1, fp + 80073fa: 00cb lsls r3, r1, #3 + 80073fc: 4651 mov r1, sl + 80073fe: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8007402: 4651 mov r1, sl + 8007404: 00ca lsls r2, r1, #3 + 8007406: 4610 mov r0, r2 + 8007408: 4619 mov r1, r3 + 800740a: 4603 mov r3, r0 + 800740c: 4642 mov r2, r8 + 800740e: 189b adds r3, r3, r2 + 8007410: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 8007414: 464b mov r3, r9 + 8007416: 460a mov r2, r1 + 8007418: eb42 0303 adc.w r3, r2, r3 + 800741c: f8c7 3084 str.w r3, [r7, #132] @ 0x84 8007420: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007424: 681a ldr r2, [r3, #0] - 8007426: 4b8f ldr r3, [pc, #572] @ (8007664 ) - 8007428: 429a cmp r2, r3 - 800742a: d005 beq.n 8007438 - 800742c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007430: 681a ldr r2, [r3, #0] - 8007432: 4b8d ldr r3, [pc, #564] @ (8007668 ) - 8007434: 429a cmp r2, r3 - 8007436: d104 bne.n 8007442 - { - pclk = HAL_RCC_GetPCLK2Freq(); - 8007438: f7fd f960 bl 80046fc - 800743c: f8c7 00fc str.w r0, [r7, #252] @ 0xfc - 8007440: e003 b.n 800744a - pclk = HAL_RCC_GetPCLK2Freq(); - } -#endif /* USART6 */ - else - { - pclk = HAL_RCC_GetPCLK1Freq(); - 8007442: f7fd f947 bl 80046d4 - 8007446: f8c7 00fc str.w r0, [r7, #252] @ 0xfc - } - /*-------------------------- USART BRR Configuration ---------------------*/ - if (huart->Init.OverSampling == UART_OVERSAMPLING_8) - 800744a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 800744e: 69db ldr r3, [r3, #28] - 8007450: f5b3 4f00 cmp.w r3, #32768 @ 0x8000 - 8007454: f040 810c bne.w 8007670 - { - huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate); - 8007458: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 800745c: 2200 movs r2, #0 - 800745e: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8 - 8007462: f8c7 20ec str.w r2, [r7, #236] @ 0xec - 8007466: e9d7 453a ldrd r4, r5, [r7, #232] @ 0xe8 - 800746a: 4622 mov r2, r4 - 800746c: 462b mov r3, r5 - 800746e: 1891 adds r1, r2, r2 - 8007470: 65b9 str r1, [r7, #88] @ 0x58 - 8007472: 415b adcs r3, r3 - 8007474: 65fb str r3, [r7, #92] @ 0x5c - 8007476: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 - 800747a: 4621 mov r1, r4 - 800747c: eb12 0801 adds.w r8, r2, r1 - 8007480: 4629 mov r1, r5 - 8007482: eb43 0901 adc.w r9, r3, r1 - 8007486: f04f 0200 mov.w r2, #0 - 800748a: f04f 0300 mov.w r3, #0 - 800748e: ea4f 03c9 mov.w r3, r9, lsl #3 - 8007492: ea43 7358 orr.w r3, r3, r8, lsr #29 - 8007496: ea4f 02c8 mov.w r2, r8, lsl #3 - 800749a: 4690 mov r8, r2 - 800749c: 4699 mov r9, r3 - 800749e: 4623 mov r3, r4 - 80074a0: eb18 0303 adds.w r3, r8, r3 - 80074a4: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 - 80074a8: 462b mov r3, r5 - 80074aa: eb49 0303 adc.w r3, r9, r3 - 80074ae: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 - 80074b2: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80074b6: 685b ldr r3, [r3, #4] - 80074b8: 2200 movs r2, #0 - 80074ba: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 - 80074be: f8c7 20dc str.w r2, [r7, #220] @ 0xdc - 80074c2: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8 - 80074c6: 460b mov r3, r1 - 80074c8: 18db adds r3, r3, r3 - 80074ca: 653b str r3, [r7, #80] @ 0x50 - 80074cc: 4613 mov r3, r2 - 80074ce: eb42 0303 adc.w r3, r2, r3 - 80074d2: 657b str r3, [r7, #84] @ 0x54 - 80074d4: e9d7 2314 ldrd r2, r3, [r7, #80] @ 0x50 - 80074d8: e9d7 0138 ldrd r0, r1, [r7, #224] @ 0xe0 - 80074dc: f7f8 fe92 bl 8000204 <__aeabi_uldivmod> - 80074e0: 4602 mov r2, r0 - 80074e2: 460b mov r3, r1 - 80074e4: 4b61 ldr r3, [pc, #388] @ (800766c ) - 80074e6: fba3 2302 umull r2, r3, r3, r2 - 80074ea: 095b lsrs r3, r3, #5 - 80074ec: 011c lsls r4, r3, #4 - 80074ee: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 80074f2: 2200 movs r2, #0 - 80074f4: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 - 80074f8: f8c7 20d4 str.w r2, [r7, #212] @ 0xd4 - 80074fc: e9d7 8934 ldrd r8, r9, [r7, #208] @ 0xd0 - 8007500: 4642 mov r2, r8 - 8007502: 464b mov r3, r9 - 8007504: 1891 adds r1, r2, r2 - 8007506: 64b9 str r1, [r7, #72] @ 0x48 - 8007508: 415b adcs r3, r3 - 800750a: 64fb str r3, [r7, #76] @ 0x4c - 800750c: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 - 8007510: 4641 mov r1, r8 - 8007512: eb12 0a01 adds.w sl, r2, r1 - 8007516: 4649 mov r1, r9 - 8007518: eb43 0b01 adc.w fp, r3, r1 - 800751c: f04f 0200 mov.w r2, #0 - 8007520: f04f 0300 mov.w r3, #0 - 8007524: ea4f 03cb mov.w r3, fp, lsl #3 - 8007528: ea43 735a orr.w r3, r3, sl, lsr #29 - 800752c: ea4f 02ca mov.w r2, sl, lsl #3 - 8007530: 4692 mov sl, r2 - 8007532: 469b mov fp, r3 - 8007534: 4643 mov r3, r8 - 8007536: eb1a 0303 adds.w r3, sl, r3 - 800753a: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 - 800753e: 464b mov r3, r9 - 8007540: eb4b 0303 adc.w r3, fp, r3 - 8007544: f8c7 30cc str.w r3, [r7, #204] @ 0xcc - 8007548: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 800754c: 685b ldr r3, [r3, #4] - 800754e: 2200 movs r2, #0 - 8007550: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 - 8007554: f8c7 20c4 str.w r2, [r7, #196] @ 0xc4 - 8007558: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0 - 800755c: 460b mov r3, r1 - 800755e: 18db adds r3, r3, r3 - 8007560: 643b str r3, [r7, #64] @ 0x40 - 8007562: 4613 mov r3, r2 - 8007564: eb42 0303 adc.w r3, r2, r3 - 8007568: 647b str r3, [r7, #68] @ 0x44 - 800756a: e9d7 2310 ldrd r2, r3, [r7, #64] @ 0x40 - 800756e: e9d7 0132 ldrd r0, r1, [r7, #200] @ 0xc8 - 8007572: f7f8 fe47 bl 8000204 <__aeabi_uldivmod> - 8007576: 4602 mov r2, r0 - 8007578: 460b mov r3, r1 - 800757a: 4611 mov r1, r2 - 800757c: 4b3b ldr r3, [pc, #236] @ (800766c ) - 800757e: fba3 2301 umull r2, r3, r3, r1 - 8007582: 095b lsrs r3, r3, #5 - 8007584: 2264 movs r2, #100 @ 0x64 - 8007586: fb02 f303 mul.w r3, r2, r3 - 800758a: 1acb subs r3, r1, r3 - 800758c: 00db lsls r3, r3, #3 - 800758e: f103 0232 add.w r2, r3, #50 @ 0x32 - 8007592: 4b36 ldr r3, [pc, #216] @ (800766c ) - 8007594: fba3 2302 umull r2, r3, r3, r2 - 8007598: 095b lsrs r3, r3, #5 - 800759a: 005b lsls r3, r3, #1 - 800759c: f403 73f8 and.w r3, r3, #496 @ 0x1f0 - 80075a0: 441c add r4, r3 - 80075a2: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 80075a6: 2200 movs r2, #0 - 80075a8: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 - 80075ac: f8c7 20bc str.w r2, [r7, #188] @ 0xbc - 80075b0: e9d7 892e ldrd r8, r9, [r7, #184] @ 0xb8 - 80075b4: 4642 mov r2, r8 - 80075b6: 464b mov r3, r9 - 80075b8: 1891 adds r1, r2, r2 - 80075ba: 63b9 str r1, [r7, #56] @ 0x38 - 80075bc: 415b adcs r3, r3 - 80075be: 63fb str r3, [r7, #60] @ 0x3c - 80075c0: e9d7 230e ldrd r2, r3, [r7, #56] @ 0x38 - 80075c4: 4641 mov r1, r8 - 80075c6: 1851 adds r1, r2, r1 - 80075c8: 6339 str r1, [r7, #48] @ 0x30 - 80075ca: 4649 mov r1, r9 - 80075cc: 414b adcs r3, r1 - 80075ce: 637b str r3, [r7, #52] @ 0x34 - 80075d0: f04f 0200 mov.w r2, #0 - 80075d4: f04f 0300 mov.w r3, #0 - 80075d8: e9d7 ab0c ldrd sl, fp, [r7, #48] @ 0x30 - 80075dc: 4659 mov r1, fp - 80075de: 00cb lsls r3, r1, #3 - 80075e0: 4651 mov r1, sl - 80075e2: ea43 7351 orr.w r3, r3, r1, lsr #29 - 80075e6: 4651 mov r1, sl - 80075e8: 00ca lsls r2, r1, #3 - 80075ea: 4610 mov r0, r2 - 80075ec: 4619 mov r1, r3 - 80075ee: 4603 mov r3, r0 - 80075f0: 4642 mov r2, r8 - 80075f2: 189b adds r3, r3, r2 - 80075f4: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - 80075f8: 464b mov r3, r9 - 80075fa: 460a mov r2, r1 - 80075fc: eb42 0303 adc.w r3, r2, r3 - 8007600: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 8007604: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007608: 685b ldr r3, [r3, #4] - 800760a: 2200 movs r2, #0 - 800760c: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 - 8007610: f8c7 20ac str.w r2, [r7, #172] @ 0xac - 8007614: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8 - 8007618: 460b mov r3, r1 - 800761a: 18db adds r3, r3, r3 - 800761c: 62bb str r3, [r7, #40] @ 0x28 - 800761e: 4613 mov r3, r2 - 8007620: eb42 0303 adc.w r3, r2, r3 - 8007624: 62fb str r3, [r7, #44] @ 0x2c - 8007626: e9d7 230a ldrd r2, r3, [r7, #40] @ 0x28 - 800762a: e9d7 012c ldrd r0, r1, [r7, #176] @ 0xb0 - 800762e: f7f8 fde9 bl 8000204 <__aeabi_uldivmod> - 8007632: 4602 mov r2, r0 - 8007634: 460b mov r3, r1 - 8007636: 4b0d ldr r3, [pc, #52] @ (800766c ) - 8007638: fba3 1302 umull r1, r3, r3, r2 - 800763c: 095b lsrs r3, r3, #5 - 800763e: 2164 movs r1, #100 @ 0x64 - 8007640: fb01 f303 mul.w r3, r1, r3 - 8007644: 1ad3 subs r3, r2, r3 - 8007646: 00db lsls r3, r3, #3 - 8007648: 3332 adds r3, #50 @ 0x32 - 800764a: 4a08 ldr r2, [pc, #32] @ (800766c ) - 800764c: fba2 2303 umull r2, r3, r2, r3 - 8007650: 095b lsrs r3, r3, #5 - 8007652: f003 0207 and.w r2, r3, #7 - 8007656: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 800765a: 681b ldr r3, [r3, #0] - 800765c: 4422 add r2, r4 - 800765e: 609a str r2, [r3, #8] - } - else - { - huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); - } -} - 8007660: e106 b.n 8007870 - 8007662: bf00 nop - 8007664: 40011000 .word 0x40011000 - 8007668: 40011400 .word 0x40011400 - 800766c: 51eb851f .word 0x51eb851f - huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); - 8007670: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 8007674: 2200 movs r2, #0 - 8007676: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 - 800767a: f8c7 20a4 str.w r2, [r7, #164] @ 0xa4 - 800767e: e9d7 8928 ldrd r8, r9, [r7, #160] @ 0xa0 - 8007682: 4642 mov r2, r8 - 8007684: 464b mov r3, r9 - 8007686: 1891 adds r1, r2, r2 - 8007688: 6239 str r1, [r7, #32] - 800768a: 415b adcs r3, r3 - 800768c: 627b str r3, [r7, #36] @ 0x24 - 800768e: e9d7 2308 ldrd r2, r3, [r7, #32] - 8007692: 4641 mov r1, r8 - 8007694: 1854 adds r4, r2, r1 - 8007696: 4649 mov r1, r9 - 8007698: eb43 0501 adc.w r5, r3, r1 - 800769c: f04f 0200 mov.w r2, #0 - 80076a0: f04f 0300 mov.w r3, #0 - 80076a4: 00eb lsls r3, r5, #3 - 80076a6: ea43 7354 orr.w r3, r3, r4, lsr #29 - 80076aa: 00e2 lsls r2, r4, #3 - 80076ac: 4614 mov r4, r2 - 80076ae: 461d mov r5, r3 - 80076b0: 4643 mov r3, r8 - 80076b2: 18e3 adds r3, r4, r3 - 80076b4: f8c7 3098 str.w r3, [r7, #152] @ 0x98 - 80076b8: 464b mov r3, r9 - 80076ba: eb45 0303 adc.w r3, r5, r3 - 80076be: f8c7 309c str.w r3, [r7, #156] @ 0x9c - 80076c2: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80076c6: 685b ldr r3, [r3, #4] - 80076c8: 2200 movs r2, #0 - 80076ca: f8c7 3090 str.w r3, [r7, #144] @ 0x90 - 80076ce: f8c7 2094 str.w r2, [r7, #148] @ 0x94 - 80076d2: f04f 0200 mov.w r2, #0 - 80076d6: f04f 0300 mov.w r3, #0 - 80076da: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 - 80076de: 4629 mov r1, r5 - 80076e0: 008b lsls r3, r1, #2 - 80076e2: 4621 mov r1, r4 - 80076e4: ea43 7391 orr.w r3, r3, r1, lsr #30 - 80076e8: 4621 mov r1, r4 - 80076ea: 008a lsls r2, r1, #2 - 80076ec: e9d7 0126 ldrd r0, r1, [r7, #152] @ 0x98 - 80076f0: f7f8 fd88 bl 8000204 <__aeabi_uldivmod> - 80076f4: 4602 mov r2, r0 - 80076f6: 460b mov r3, r1 - 80076f8: 4b60 ldr r3, [pc, #384] @ (800787c ) - 80076fa: fba3 2302 umull r2, r3, r3, r2 - 80076fe: 095b lsrs r3, r3, #5 - 8007700: 011c lsls r4, r3, #4 - 8007702: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 8007706: 2200 movs r2, #0 - 8007708: f8c7 3088 str.w r3, [r7, #136] @ 0x88 - 800770c: f8c7 208c str.w r2, [r7, #140] @ 0x8c - 8007710: e9d7 8922 ldrd r8, r9, [r7, #136] @ 0x88 - 8007714: 4642 mov r2, r8 - 8007716: 464b mov r3, r9 - 8007718: 1891 adds r1, r2, r2 - 800771a: 61b9 str r1, [r7, #24] - 800771c: 415b adcs r3, r3 - 800771e: 61fb str r3, [r7, #28] - 8007720: e9d7 2306 ldrd r2, r3, [r7, #24] - 8007724: 4641 mov r1, r8 - 8007726: 1851 adds r1, r2, r1 - 8007728: 6139 str r1, [r7, #16] - 800772a: 4649 mov r1, r9 - 800772c: 414b adcs r3, r1 - 800772e: 617b str r3, [r7, #20] - 8007730: f04f 0200 mov.w r2, #0 - 8007734: f04f 0300 mov.w r3, #0 - 8007738: e9d7 ab04 ldrd sl, fp, [r7, #16] - 800773c: 4659 mov r1, fp - 800773e: 00cb lsls r3, r1, #3 - 8007740: 4651 mov r1, sl - 8007742: ea43 7351 orr.w r3, r3, r1, lsr #29 - 8007746: 4651 mov r1, sl - 8007748: 00ca lsls r2, r1, #3 - 800774a: 4610 mov r0, r2 - 800774c: 4619 mov r1, r3 - 800774e: 4603 mov r3, r0 - 8007750: 4642 mov r2, r8 - 8007752: 189b adds r3, r3, r2 - 8007754: f8c7 3080 str.w r3, [r7, #128] @ 0x80 - 8007758: 464b mov r3, r9 - 800775a: 460a mov r2, r1 - 800775c: eb42 0303 adc.w r3, r2, r3 - 8007760: f8c7 3084 str.w r3, [r7, #132] @ 0x84 - 8007764: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007768: 685b ldr r3, [r3, #4] - 800776a: 2200 movs r2, #0 - 800776c: 67bb str r3, [r7, #120] @ 0x78 - 800776e: 67fa str r2, [r7, #124] @ 0x7c - 8007770: f04f 0200 mov.w r2, #0 - 8007774: f04f 0300 mov.w r3, #0 - 8007778: e9d7 891e ldrd r8, r9, [r7, #120] @ 0x78 - 800777c: 4649 mov r1, r9 - 800777e: 008b lsls r3, r1, #2 - 8007780: 4641 mov r1, r8 - 8007782: ea43 7391 orr.w r3, r3, r1, lsr #30 - 8007786: 4641 mov r1, r8 - 8007788: 008a lsls r2, r1, #2 - 800778a: e9d7 0120 ldrd r0, r1, [r7, #128] @ 0x80 - 800778e: f7f8 fd39 bl 8000204 <__aeabi_uldivmod> - 8007792: 4602 mov r2, r0 + 8007424: 685b ldr r3, [r3, #4] + 8007426: 2200 movs r2, #0 + 8007428: 67bb str r3, [r7, #120] @ 0x78 + 800742a: 67fa str r2, [r7, #124] @ 0x7c + 800742c: f04f 0200 mov.w r2, #0 + 8007430: f04f 0300 mov.w r3, #0 + 8007434: e9d7 891e ldrd r8, r9, [r7, #120] @ 0x78 + 8007438: 4649 mov r1, r9 + 800743a: 008b lsls r3, r1, #2 + 800743c: 4641 mov r1, r8 + 800743e: ea43 7391 orr.w r3, r3, r1, lsr #30 + 8007442: 4641 mov r1, r8 + 8007444: 008a lsls r2, r1, #2 + 8007446: e9d7 0120 ldrd r0, r1, [r7, #128] @ 0x80 + 800744a: f7f8 fedb bl 8000204 <__aeabi_uldivmod> + 800744e: 4602 mov r2, r0 + 8007450: 460b mov r3, r1 + 8007452: 4611 mov r1, r2 + 8007454: 4b38 ldr r3, [pc, #224] @ (8007538 ) + 8007456: fba3 2301 umull r2, r3, r3, r1 + 800745a: 095b lsrs r3, r3, #5 + 800745c: 2264 movs r2, #100 @ 0x64 + 800745e: fb02 f303 mul.w r3, r2, r3 + 8007462: 1acb subs r3, r1, r3 + 8007464: 011b lsls r3, r3, #4 + 8007466: 3332 adds r3, #50 @ 0x32 + 8007468: 4a33 ldr r2, [pc, #204] @ (8007538 ) + 800746a: fba2 2303 umull r2, r3, r2, r3 + 800746e: 095b lsrs r3, r3, #5 + 8007470: f003 03f0 and.w r3, r3, #240 @ 0xf0 + 8007474: 441c add r4, r3 + 8007476: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 800747a: 2200 movs r2, #0 + 800747c: 673b str r3, [r7, #112] @ 0x70 + 800747e: 677a str r2, [r7, #116] @ 0x74 + 8007480: e9d7 891c ldrd r8, r9, [r7, #112] @ 0x70 + 8007484: 4642 mov r2, r8 + 8007486: 464b mov r3, r9 + 8007488: 1891 adds r1, r2, r2 + 800748a: 60b9 str r1, [r7, #8] + 800748c: 415b adcs r3, r3 + 800748e: 60fb str r3, [r7, #12] + 8007490: e9d7 2302 ldrd r2, r3, [r7, #8] + 8007494: 4641 mov r1, r8 + 8007496: 1851 adds r1, r2, r1 + 8007498: 6039 str r1, [r7, #0] + 800749a: 4649 mov r1, r9 + 800749c: 414b adcs r3, r1 + 800749e: 607b str r3, [r7, #4] + 80074a0: f04f 0200 mov.w r2, #0 + 80074a4: f04f 0300 mov.w r3, #0 + 80074a8: e9d7 ab00 ldrd sl, fp, [r7] + 80074ac: 4659 mov r1, fp + 80074ae: 00cb lsls r3, r1, #3 + 80074b0: 4651 mov r1, sl + 80074b2: ea43 7351 orr.w r3, r3, r1, lsr #29 + 80074b6: 4651 mov r1, sl + 80074b8: 00ca lsls r2, r1, #3 + 80074ba: 4610 mov r0, r2 + 80074bc: 4619 mov r1, r3 + 80074be: 4603 mov r3, r0 + 80074c0: 4642 mov r2, r8 + 80074c2: 189b adds r3, r3, r2 + 80074c4: 66bb str r3, [r7, #104] @ 0x68 + 80074c6: 464b mov r3, r9 + 80074c8: 460a mov r2, r1 + 80074ca: eb42 0303 adc.w r3, r2, r3 + 80074ce: 66fb str r3, [r7, #108] @ 0x6c + 80074d0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80074d4: 685b ldr r3, [r3, #4] + 80074d6: 2200 movs r2, #0 + 80074d8: 663b str r3, [r7, #96] @ 0x60 + 80074da: 667a str r2, [r7, #100] @ 0x64 + 80074dc: f04f 0200 mov.w r2, #0 + 80074e0: f04f 0300 mov.w r3, #0 + 80074e4: e9d7 8918 ldrd r8, r9, [r7, #96] @ 0x60 + 80074e8: 4649 mov r1, r9 + 80074ea: 008b lsls r3, r1, #2 + 80074ec: 4641 mov r1, r8 + 80074ee: ea43 7391 orr.w r3, r3, r1, lsr #30 + 80074f2: 4641 mov r1, r8 + 80074f4: 008a lsls r2, r1, #2 + 80074f6: e9d7 011a ldrd r0, r1, [r7, #104] @ 0x68 + 80074fa: f7f8 fe83 bl 8000204 <__aeabi_uldivmod> + 80074fe: 4602 mov r2, r0 + 8007500: 460b mov r3, r1 + 8007502: 4b0d ldr r3, [pc, #52] @ (8007538 ) + 8007504: fba3 1302 umull r1, r3, r3, r2 + 8007508: 095b lsrs r3, r3, #5 + 800750a: 2164 movs r1, #100 @ 0x64 + 800750c: fb01 f303 mul.w r3, r1, r3 + 8007510: 1ad3 subs r3, r2, r3 + 8007512: 011b lsls r3, r3, #4 + 8007514: 3332 adds r3, #50 @ 0x32 + 8007516: 4a08 ldr r2, [pc, #32] @ (8007538 ) + 8007518: fba2 2303 umull r2, r3, r2, r3 + 800751c: 095b lsrs r3, r3, #5 + 800751e: f003 020f and.w r2, r3, #15 + 8007522: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007526: 681b ldr r3, [r3, #0] + 8007528: 4422 add r2, r4 + 800752a: 609a str r2, [r3, #8] + 800752c: bf00 nop + 800752e: f507 7780 add.w r7, r7, #256 @ 0x100 + 8007532: 46bd mov sp, r7 + 8007534: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} + 8007538: 51eb851f .word 0x51eb851f + +0800753c : + 800753c: b084 sub sp, #16 + 800753e: b580 push {r7, lr} + 8007540: b084 sub sp, #16 + 8007542: af00 add r7, sp, #0 + 8007544: 6078 str r0, [r7, #4] + 8007546: f107 001c add.w r0, r7, #28 + 800754a: e880 000e stmia.w r0, {r1, r2, r3} + 800754e: f897 3021 ldrb.w r3, [r7, #33] @ 0x21 + 8007552: 2b01 cmp r3, #1 + 8007554: d123 bne.n 800759e + 8007556: 687b ldr r3, [r7, #4] + 8007558: 6b9b ldr r3, [r3, #56] @ 0x38 + 800755a: f423 3280 bic.w r2, r3, #65536 @ 0x10000 + 800755e: 687b ldr r3, [r7, #4] + 8007560: 639a str r2, [r3, #56] @ 0x38 + 8007562: 687b ldr r3, [r7, #4] + 8007564: 68db ldr r3, [r3, #12] + 8007566: f423 0384 bic.w r3, r3, #4325376 @ 0x420000 + 800756a: f023 0340 bic.w r3, r3, #64 @ 0x40 + 800756e: 687a ldr r2, [r7, #4] + 8007570: 60d3 str r3, [r2, #12] + 8007572: 687b ldr r3, [r7, #4] + 8007574: 68db ldr r3, [r3, #12] + 8007576: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 + 800757a: 687b ldr r3, [r7, #4] + 800757c: 60da str r2, [r3, #12] + 800757e: f897 3028 ldrb.w r3, [r7, #40] @ 0x28 + 8007582: 2b01 cmp r3, #1 + 8007584: d105 bne.n 8007592 + 8007586: 687b ldr r3, [r7, #4] + 8007588: 68db ldr r3, [r3, #12] + 800758a: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 + 800758e: 687b ldr r3, [r7, #4] + 8007590: 60da str r2, [r3, #12] + 8007592: 6878 ldr r0, [r7, #4] + 8007594: f001 fae2 bl 8008b5c + 8007598: 4603 mov r3, r0 + 800759a: 73fb strb r3, [r7, #15] + 800759c: e01b b.n 80075d6 + 800759e: 687b ldr r3, [r7, #4] + 80075a0: 68db ldr r3, [r3, #12] + 80075a2: f043 0240 orr.w r2, r3, #64 @ 0x40 + 80075a6: 687b ldr r3, [r7, #4] + 80075a8: 60da str r2, [r3, #12] + 80075aa: 6878 ldr r0, [r7, #4] + 80075ac: f001 fad6 bl 8008b5c + 80075b0: 4603 mov r3, r0 + 80075b2: 73fb strb r3, [r7, #15] + 80075b4: f897 3025 ldrb.w r3, [r7, #37] @ 0x25 + 80075b8: 2b00 cmp r3, #0 + 80075ba: d106 bne.n 80075ca + 80075bc: 687b ldr r3, [r7, #4] + 80075be: 6b9b ldr r3, [r3, #56] @ 0x38 + 80075c0: f443 3280 orr.w r2, r3, #65536 @ 0x10000 + 80075c4: 687b ldr r3, [r7, #4] + 80075c6: 639a str r2, [r3, #56] @ 0x38 + 80075c8: e005 b.n 80075d6 + 80075ca: 687b ldr r3, [r7, #4] + 80075cc: 6b9b ldr r3, [r3, #56] @ 0x38 + 80075ce: f423 3280 bic.w r2, r3, #65536 @ 0x10000 + 80075d2: 687b ldr r3, [r7, #4] + 80075d4: 639a str r2, [r3, #56] @ 0x38 + 80075d6: 7fbb ldrb r3, [r7, #30] + 80075d8: 2b01 cmp r3, #1 + 80075da: d10b bne.n 80075f4 + 80075dc: 687b ldr r3, [r7, #4] + 80075de: 689b ldr r3, [r3, #8] + 80075e0: f043 0206 orr.w r2, r3, #6 + 80075e4: 687b ldr r3, [r7, #4] + 80075e6: 609a str r2, [r3, #8] + 80075e8: 687b ldr r3, [r7, #4] + 80075ea: 689b ldr r3, [r3, #8] + 80075ec: f043 0220 orr.w r2, r3, #32 + 80075f0: 687b ldr r3, [r7, #4] + 80075f2: 609a str r2, [r3, #8] + 80075f4: 7bfb ldrb r3, [r7, #15] + 80075f6: 4618 mov r0, r3 + 80075f8: 3710 adds r7, #16 + 80075fa: 46bd mov sp, r7 + 80075fc: e8bd 4080 ldmia.w sp!, {r7, lr} + 8007600: b004 add sp, #16 + 8007602: 4770 bx lr + +08007604 : + 8007604: b480 push {r7} + 8007606: b087 sub sp, #28 + 8007608: af00 add r7, sp, #0 + 800760a: 60f8 str r0, [r7, #12] + 800760c: 60b9 str r1, [r7, #8] + 800760e: 4613 mov r3, r2 + 8007610: 71fb strb r3, [r7, #7] + 8007612: 79fb ldrb r3, [r7, #7] + 8007614: 2b02 cmp r3, #2 + 8007616: d165 bne.n 80076e4 + 8007618: 68bb ldr r3, [r7, #8] + 800761a: 4a41 ldr r2, [pc, #260] @ (8007720 ) + 800761c: 4293 cmp r3, r2 + 800761e: d906 bls.n 800762e + 8007620: 68bb ldr r3, [r7, #8] + 8007622: 4a40 ldr r2, [pc, #256] @ (8007724 ) + 8007624: 4293 cmp r3, r2 + 8007626: d202 bcs.n 800762e + 8007628: 230f movs r3, #15 + 800762a: 617b str r3, [r7, #20] + 800762c: e062 b.n 80076f4 + 800762e: 68bb ldr r3, [r7, #8] + 8007630: 4a3c ldr r2, [pc, #240] @ (8007724 ) + 8007632: 4293 cmp r3, r2 + 8007634: d306 bcc.n 8007644 + 8007636: 68bb ldr r3, [r7, #8] + 8007638: 4a3b ldr r2, [pc, #236] @ (8007728 ) + 800763a: 4293 cmp r3, r2 + 800763c: d202 bcs.n 8007644 + 800763e: 230e movs r3, #14 + 8007640: 617b str r3, [r7, #20] + 8007642: e057 b.n 80076f4 + 8007644: 68bb ldr r3, [r7, #8] + 8007646: 4a38 ldr r2, [pc, #224] @ (8007728 ) + 8007648: 4293 cmp r3, r2 + 800764a: d306 bcc.n 800765a + 800764c: 68bb ldr r3, [r7, #8] + 800764e: 4a37 ldr r2, [pc, #220] @ (800772c ) + 8007650: 4293 cmp r3, r2 + 8007652: d202 bcs.n 800765a + 8007654: 230d movs r3, #13 + 8007656: 617b str r3, [r7, #20] + 8007658: e04c b.n 80076f4 + 800765a: 68bb ldr r3, [r7, #8] + 800765c: 4a33 ldr r2, [pc, #204] @ (800772c ) + 800765e: 4293 cmp r3, r2 + 8007660: d306 bcc.n 8007670 + 8007662: 68bb ldr r3, [r7, #8] + 8007664: 4a32 ldr r2, [pc, #200] @ (8007730 ) + 8007666: 4293 cmp r3, r2 + 8007668: d802 bhi.n 8007670 + 800766a: 230c movs r3, #12 + 800766c: 617b str r3, [r7, #20] + 800766e: e041 b.n 80076f4 + 8007670: 68bb ldr r3, [r7, #8] + 8007672: 4a2f ldr r2, [pc, #188] @ (8007730 ) + 8007674: 4293 cmp r3, r2 + 8007676: d906 bls.n 8007686 + 8007678: 68bb ldr r3, [r7, #8] + 800767a: 4a2e ldr r2, [pc, #184] @ (8007734 ) + 800767c: 4293 cmp r3, r2 + 800767e: d802 bhi.n 8007686 + 8007680: 230b movs r3, #11 + 8007682: 617b str r3, [r7, #20] + 8007684: e036 b.n 80076f4 + 8007686: 68bb ldr r3, [r7, #8] + 8007688: 4a2a ldr r2, [pc, #168] @ (8007734 ) + 800768a: 4293 cmp r3, r2 + 800768c: d906 bls.n 800769c + 800768e: 68bb ldr r3, [r7, #8] + 8007690: 4a29 ldr r2, [pc, #164] @ (8007738 ) + 8007692: 4293 cmp r3, r2 + 8007694: d802 bhi.n 800769c + 8007696: 230a movs r3, #10 + 8007698: 617b str r3, [r7, #20] + 800769a: e02b b.n 80076f4 + 800769c: 68bb ldr r3, [r7, #8] + 800769e: 4a26 ldr r2, [pc, #152] @ (8007738 ) + 80076a0: 4293 cmp r3, r2 + 80076a2: d906 bls.n 80076b2 + 80076a4: 68bb ldr r3, [r7, #8] + 80076a6: 4a25 ldr r2, [pc, #148] @ (800773c ) + 80076a8: 4293 cmp r3, r2 + 80076aa: d202 bcs.n 80076b2 + 80076ac: 2309 movs r3, #9 + 80076ae: 617b str r3, [r7, #20] + 80076b0: e020 b.n 80076f4 + 80076b2: 68bb ldr r3, [r7, #8] + 80076b4: 4a21 ldr r2, [pc, #132] @ (800773c ) + 80076b6: 4293 cmp r3, r2 + 80076b8: d306 bcc.n 80076c8 + 80076ba: 68bb ldr r3, [r7, #8] + 80076bc: 4a20 ldr r2, [pc, #128] @ (8007740 ) + 80076be: 4293 cmp r3, r2 + 80076c0: d802 bhi.n 80076c8 + 80076c2: 2308 movs r3, #8 + 80076c4: 617b str r3, [r7, #20] + 80076c6: e015 b.n 80076f4 + 80076c8: 68bb ldr r3, [r7, #8] + 80076ca: 4a1d ldr r2, [pc, #116] @ (8007740 ) + 80076cc: 4293 cmp r3, r2 + 80076ce: d906 bls.n 80076de + 80076d0: 68bb ldr r3, [r7, #8] + 80076d2: 4a1c ldr r2, [pc, #112] @ (8007744 ) + 80076d4: 4293 cmp r3, r2 + 80076d6: d202 bcs.n 80076de + 80076d8: 2307 movs r3, #7 + 80076da: 617b str r3, [r7, #20] + 80076dc: e00a b.n 80076f4 + 80076de: 2306 movs r3, #6 + 80076e0: 617b str r3, [r7, #20] + 80076e2: e007 b.n 80076f4 + 80076e4: 79fb ldrb r3, [r7, #7] + 80076e6: 2b00 cmp r3, #0 + 80076e8: d102 bne.n 80076f0 + 80076ea: 2309 movs r3, #9 + 80076ec: 617b str r3, [r7, #20] + 80076ee: e001 b.n 80076f4 + 80076f0: 2309 movs r3, #9 + 80076f2: 617b str r3, [r7, #20] + 80076f4: 68fb ldr r3, [r7, #12] + 80076f6: 68db ldr r3, [r3, #12] + 80076f8: f423 5270 bic.w r2, r3, #15360 @ 0x3c00 + 80076fc: 68fb ldr r3, [r7, #12] + 80076fe: 60da str r2, [r3, #12] + 8007700: 68fb ldr r3, [r7, #12] + 8007702: 68da ldr r2, [r3, #12] + 8007704: 697b ldr r3, [r7, #20] + 8007706: 029b lsls r3, r3, #10 + 8007708: f403 5370 and.w r3, r3, #15360 @ 0x3c00 + 800770c: 431a orrs r2, r3 + 800770e: 68fb ldr r3, [r7, #12] + 8007710: 60da str r2, [r3, #12] + 8007712: 2300 movs r3, #0 + 8007714: 4618 mov r0, r3 + 8007716: 371c adds r7, #28 + 8007718: 46bd mov sp, r7 + 800771a: f85d 7b04 ldr.w r7, [sp], #4 + 800771e: 4770 bx lr + 8007720: 00d8acbf .word 0x00d8acbf + 8007724: 00e4e1c0 .word 0x00e4e1c0 + 8007728: 00f42400 .word 0x00f42400 + 800772c: 01067380 .word 0x01067380 + 8007730: 011a499f .word 0x011a499f + 8007734: 01312cff .word 0x01312cff + 8007738: 014ca43f .word 0x014ca43f + 800773c: 016e3600 .word 0x016e3600 + 8007740: 01a6ab1f .word 0x01a6ab1f + 8007744: 01e84800 .word 0x01e84800 + +08007748 : + 8007748: b480 push {r7} + 800774a: b083 sub sp, #12 + 800774c: af00 add r7, sp, #0 + 800774e: 6078 str r0, [r7, #4] + 8007750: 687b ldr r3, [r7, #4] + 8007752: 689b ldr r3, [r3, #8] + 8007754: f043 0201 orr.w r2, r3, #1 + 8007758: 687b ldr r3, [r7, #4] + 800775a: 609a str r2, [r3, #8] + 800775c: 2300 movs r3, #0 + 800775e: 4618 mov r0, r3 + 8007760: 370c adds r7, #12 + 8007762: 46bd mov sp, r7 + 8007764: f85d 7b04 ldr.w r7, [sp], #4 + 8007768: 4770 bx lr + +0800776a : + 800776a: b480 push {r7} + 800776c: b083 sub sp, #12 + 800776e: af00 add r7, sp, #0 + 8007770: 6078 str r0, [r7, #4] + 8007772: 687b ldr r3, [r7, #4] + 8007774: 689b ldr r3, [r3, #8] + 8007776: f023 0201 bic.w r2, r3, #1 + 800777a: 687b ldr r3, [r7, #4] + 800777c: 609a str r2, [r3, #8] + 800777e: 2300 movs r3, #0 + 8007780: 4618 mov r0, r3 + 8007782: 370c adds r7, #12 + 8007784: 46bd mov sp, r7 + 8007786: f85d 7b04 ldr.w r7, [sp], #4 + 800778a: 4770 bx lr + +0800778c : + 800778c: b580 push {r7, lr} + 800778e: b084 sub sp, #16 + 8007790: af00 add r7, sp, #0 + 8007792: 6078 str r0, [r7, #4] 8007794: 460b mov r3, r1 - 8007796: 4611 mov r1, r2 - 8007798: 4b38 ldr r3, [pc, #224] @ (800787c ) - 800779a: fba3 2301 umull r2, r3, r3, r1 - 800779e: 095b lsrs r3, r3, #5 - 80077a0: 2264 movs r2, #100 @ 0x64 - 80077a2: fb02 f303 mul.w r3, r2, r3 - 80077a6: 1acb subs r3, r1, r3 - 80077a8: 011b lsls r3, r3, #4 - 80077aa: 3332 adds r3, #50 @ 0x32 - 80077ac: 4a33 ldr r2, [pc, #204] @ (800787c ) - 80077ae: fba2 2303 umull r2, r3, r2, r3 - 80077b2: 095b lsrs r3, r3, #5 - 80077b4: f003 03f0 and.w r3, r3, #240 @ 0xf0 - 80077b8: 441c add r4, r3 - 80077ba: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 80077be: 2200 movs r2, #0 - 80077c0: 673b str r3, [r7, #112] @ 0x70 - 80077c2: 677a str r2, [r7, #116] @ 0x74 - 80077c4: e9d7 891c ldrd r8, r9, [r7, #112] @ 0x70 - 80077c8: 4642 mov r2, r8 - 80077ca: 464b mov r3, r9 - 80077cc: 1891 adds r1, r2, r2 - 80077ce: 60b9 str r1, [r7, #8] - 80077d0: 415b adcs r3, r3 - 80077d2: 60fb str r3, [r7, #12] - 80077d4: e9d7 2302 ldrd r2, r3, [r7, #8] - 80077d8: 4641 mov r1, r8 - 80077da: 1851 adds r1, r2, r1 - 80077dc: 6039 str r1, [r7, #0] - 80077de: 4649 mov r1, r9 - 80077e0: 414b adcs r3, r1 - 80077e2: 607b str r3, [r7, #4] - 80077e4: f04f 0200 mov.w r2, #0 - 80077e8: f04f 0300 mov.w r3, #0 - 80077ec: e9d7 ab00 ldrd sl, fp, [r7] - 80077f0: 4659 mov r1, fp - 80077f2: 00cb lsls r3, r1, #3 - 80077f4: 4651 mov r1, sl - 80077f6: ea43 7351 orr.w r3, r3, r1, lsr #29 - 80077fa: 4651 mov r1, sl - 80077fc: 00ca lsls r2, r1, #3 - 80077fe: 4610 mov r0, r2 - 8007800: 4619 mov r1, r3 - 8007802: 4603 mov r3, r0 - 8007804: 4642 mov r2, r8 - 8007806: 189b adds r3, r3, r2 - 8007808: 66bb str r3, [r7, #104] @ 0x68 - 800780a: 464b mov r3, r9 - 800780c: 460a mov r2, r1 - 800780e: eb42 0303 adc.w r3, r2, r3 - 8007812: 66fb str r3, [r7, #108] @ 0x6c - 8007814: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007818: 685b ldr r3, [r3, #4] - 800781a: 2200 movs r2, #0 - 800781c: 663b str r3, [r7, #96] @ 0x60 - 800781e: 667a str r2, [r7, #100] @ 0x64 - 8007820: f04f 0200 mov.w r2, #0 - 8007824: f04f 0300 mov.w r3, #0 - 8007828: e9d7 8918 ldrd r8, r9, [r7, #96] @ 0x60 - 800782c: 4649 mov r1, r9 - 800782e: 008b lsls r3, r1, #2 - 8007830: 4641 mov r1, r8 - 8007832: ea43 7391 orr.w r3, r3, r1, lsr #30 - 8007836: 4641 mov r1, r8 - 8007838: 008a lsls r2, r1, #2 - 800783a: e9d7 011a ldrd r0, r1, [r7, #104] @ 0x68 - 800783e: f7f8 fce1 bl 8000204 <__aeabi_uldivmod> - 8007842: 4602 mov r2, r0 - 8007844: 460b mov r3, r1 - 8007846: 4b0d ldr r3, [pc, #52] @ (800787c ) - 8007848: fba3 1302 umull r1, r3, r3, r2 - 800784c: 095b lsrs r3, r3, #5 - 800784e: 2164 movs r1, #100 @ 0x64 - 8007850: fb01 f303 mul.w r3, r1, r3 - 8007854: 1ad3 subs r3, r2, r3 - 8007856: 011b lsls r3, r3, #4 - 8007858: 3332 adds r3, #50 @ 0x32 - 800785a: 4a08 ldr r2, [pc, #32] @ (800787c ) - 800785c: fba2 2303 umull r2, r3, r2, r3 - 8007860: 095b lsrs r3, r3, #5 - 8007862: f003 020f and.w r2, r3, #15 - 8007866: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 800786a: 681b ldr r3, [r3, #0] - 800786c: 4422 add r2, r4 - 800786e: 609a str r2, [r3, #8] -} - 8007870: bf00 nop - 8007872: f507 7780 add.w r7, r7, #256 @ 0x100 - 8007876: 46bd mov sp, r7 - 8007878: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} - 800787c: 51eb851f .word 0x51eb851f + 8007796: 70fb strb r3, [r7, #3] + 8007798: 2300 movs r3, #0 + 800779a: 60fb str r3, [r7, #12] + 800779c: 687b ldr r3, [r7, #4] + 800779e: 68db ldr r3, [r3, #12] + 80077a0: f023 42c0 bic.w r2, r3, #1610612736 @ 0x60000000 + 80077a4: 687b ldr r3, [r7, #4] + 80077a6: 60da str r2, [r3, #12] + 80077a8: 78fb ldrb r3, [r7, #3] + 80077aa: 2b01 cmp r3, #1 + 80077ac: d115 bne.n 80077da + 80077ae: 687b ldr r3, [r7, #4] + 80077b0: 68db ldr r3, [r3, #12] + 80077b2: f043 5200 orr.w r2, r3, #536870912 @ 0x20000000 + 80077b6: 687b ldr r3, [r7, #4] + 80077b8: 60da str r2, [r3, #12] + 80077ba: 200a movs r0, #10 + 80077bc: f7fa fb72 bl 8001ea4 + 80077c0: 68fb ldr r3, [r7, #12] + 80077c2: 330a adds r3, #10 + 80077c4: 60fb str r3, [r7, #12] + 80077c6: 6878 ldr r0, [r7, #4] + 80077c8: f001 f939 bl 8008a3e + 80077cc: 4603 mov r3, r0 + 80077ce: 2b01 cmp r3, #1 + 80077d0: d01e beq.n 8007810 + 80077d2: 68fb ldr r3, [r7, #12] + 80077d4: 2bc7 cmp r3, #199 @ 0xc7 + 80077d6: d9f0 bls.n 80077ba + 80077d8: e01a b.n 8007810 + 80077da: 78fb ldrb r3, [r7, #3] + 80077dc: 2b00 cmp r3, #0 + 80077de: d115 bne.n 800780c + 80077e0: 687b ldr r3, [r7, #4] + 80077e2: 68db ldr r3, [r3, #12] + 80077e4: f043 4280 orr.w r2, r3, #1073741824 @ 0x40000000 + 80077e8: 687b ldr r3, [r7, #4] + 80077ea: 60da str r2, [r3, #12] + 80077ec: 200a movs r0, #10 + 80077ee: f7fa fb59 bl 8001ea4 + 80077f2: 68fb ldr r3, [r7, #12] + 80077f4: 330a adds r3, #10 + 80077f6: 60fb str r3, [r7, #12] + 80077f8: 6878 ldr r0, [r7, #4] + 80077fa: f001 f920 bl 8008a3e + 80077fe: 4603 mov r3, r0 + 8007800: 2b00 cmp r3, #0 + 8007802: d005 beq.n 8007810 + 8007804: 68fb ldr r3, [r7, #12] + 8007806: 2bc7 cmp r3, #199 @ 0xc7 + 8007808: d9f0 bls.n 80077ec + 800780a: e001 b.n 8007810 + 800780c: 2301 movs r3, #1 + 800780e: e005 b.n 800781c + 8007810: 68fb ldr r3, [r7, #12] + 8007812: 2bc8 cmp r3, #200 @ 0xc8 + 8007814: d101 bne.n 800781a + 8007816: 2301 movs r3, #1 + 8007818: e000 b.n 800781c + 800781a: 2300 movs r3, #0 + 800781c: 4618 mov r0, r3 + 800781e: 3710 adds r7, #16 + 8007820: 46bd mov sp, r7 + 8007822: bd80 pop {r7, pc} -08007880 : - * @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) -{ - 8007880: b084 sub sp, #16 - 8007882: b580 push {r7, lr} - 8007884: b084 sub sp, #16 - 8007886: af00 add r7, sp, #0 - 8007888: 6078 str r0, [r7, #4] - 800788a: f107 001c add.w r0, r7, #28 - 800788e: e880 000e stmia.w r0, {r1, r2, r3} - HAL_StatusTypeDef ret; - if (cfg.phy_itface == USB_OTG_ULPI_PHY) - 8007892: f897 3021 ldrb.w r3, [r7, #33] @ 0x21 - 8007896: 2b01 cmp r3, #1 - 8007898: d123 bne.n 80078e2 - { - USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); +08007824 : + 8007824: b084 sub sp, #16 + 8007826: b580 push {r7, lr} + 8007828: b086 sub sp, #24 + 800782a: af00 add r7, sp, #0 + 800782c: 6078 str r0, [r7, #4] + 800782e: f107 0024 add.w r0, r7, #36 @ 0x24 + 8007832: e880 000e stmia.w r0, {r1, r2, r3} + 8007836: 2300 movs r3, #0 + 8007838: 75fb strb r3, [r7, #23] + 800783a: 687b ldr r3, [r7, #4] + 800783c: 60fb str r3, [r7, #12] + 800783e: 2300 movs r3, #0 + 8007840: 613b str r3, [r7, #16] + 8007842: e009 b.n 8007858 + 8007844: 687a ldr r2, [r7, #4] + 8007846: 693b ldr r3, [r7, #16] + 8007848: 3340 adds r3, #64 @ 0x40 + 800784a: 009b lsls r3, r3, #2 + 800784c: 4413 add r3, r2 + 800784e: 2200 movs r2, #0 + 8007850: 605a str r2, [r3, #4] + 8007852: 693b ldr r3, [r7, #16] + 8007854: 3301 adds r3, #1 + 8007856: 613b str r3, [r7, #16] + 8007858: 693b ldr r3, [r7, #16] + 800785a: 2b0e cmp r3, #14 + 800785c: d9f2 bls.n 8007844 + 800785e: f897 302e ldrb.w r3, [r7, #46] @ 0x2e + 8007862: 2b00 cmp r3, #0 + 8007864: d11c bne.n 80078a0 + 8007866: 68fb ldr r3, [r7, #12] + 8007868: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800786c: 685b ldr r3, [r3, #4] + 800786e: 68fa ldr r2, [r7, #12] + 8007870: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8007874: f043 0302 orr.w r3, r3, #2 + 8007878: 6053 str r3, [r2, #4] + 800787a: 687b ldr r3, [r7, #4] + 800787c: 6b9b ldr r3, [r3, #56] @ 0x38 + 800787e: f423 1200 bic.w r2, r3, #2097152 @ 0x200000 + 8007882: 687b ldr r3, [r7, #4] + 8007884: 639a str r2, [r3, #56] @ 0x38 + 8007886: 687b ldr r3, [r7, #4] + 8007888: 681b ldr r3, [r3, #0] + 800788a: f043 0240 orr.w r2, r3, #64 @ 0x40 + 800788e: 687b ldr r3, [r7, #4] + 8007890: 601a str r2, [r3, #0] + 8007892: 687b ldr r3, [r7, #4] + 8007894: 681b ldr r3, [r3, #0] + 8007896: f043 0280 orr.w r2, r3, #128 @ 0x80 800789a: 687b ldr r3, [r7, #4] - 800789c: 6b9b ldr r3, [r3, #56] @ 0x38 - 800789e: f423 3280 bic.w r2, r3, #65536 @ 0x10000 - 80078a2: 687b ldr r3, [r7, #4] - 80078a4: 639a str r2, [r3, #56] @ 0x38 - - /* Init The ULPI Interface */ - USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_TSDPS | USB_OTG_GUSBCFG_ULPIFSLS | USB_OTG_GUSBCFG_PHYSEL); - 80078a6: 687b ldr r3, [r7, #4] - 80078a8: 68db ldr r3, [r3, #12] - 80078aa: f423 0384 bic.w r3, r3, #4325376 @ 0x420000 - 80078ae: f023 0340 bic.w r3, r3, #64 @ 0x40 - 80078b2: 687a ldr r2, [r7, #4] - 80078b4: 60d3 str r3, [r2, #12] - - /* Select vbus source */ - USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_ULPIEVBUSD | USB_OTG_GUSBCFG_ULPIEVBUSI); - 80078b6: 687b ldr r3, [r7, #4] - 80078b8: 68db ldr r3, [r3, #12] - 80078ba: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 - 80078be: 687b ldr r3, [r7, #4] - 80078c0: 60da str r2, [r3, #12] - if (cfg.use_external_vbus == 1U) - 80078c2: f897 3028 ldrb.w r3, [r7, #40] @ 0x28 - 80078c6: 2b01 cmp r3, #1 - 80078c8: d105 bne.n 80078d6 - { - USBx->GUSBCFG |= USB_OTG_GUSBCFG_ULPIEVBUSD; - 80078ca: 687b ldr r3, [r7, #4] - 80078cc: 68db ldr r3, [r3, #12] - 80078ce: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 - 80078d2: 687b ldr r3, [r7, #4] - 80078d4: 60da str r2, [r3, #12] - } - - /* Reset after a PHY select */ - ret = USB_CoreReset(USBx); - 80078d6: 6878 ldr r0, [r7, #4] - 80078d8: f001 fae2 bl 8008ea0 - 80078dc: 4603 mov r3, r0 - 80078de: 73fb strb r3, [r7, #15] - 80078e0: e01b b.n 800791a - } - else /* FS interface (embedded Phy) */ - { - /* Select FS Embedded PHY */ - USBx->GUSBCFG |= USB_OTG_GUSBCFG_PHYSEL; - 80078e2: 687b ldr r3, [r7, #4] - 80078e4: 68db ldr r3, [r3, #12] - 80078e6: f043 0240 orr.w r2, r3, #64 @ 0x40 - 80078ea: 687b ldr r3, [r7, #4] - 80078ec: 60da str r2, [r3, #12] - - /* Reset after a PHY select */ - ret = USB_CoreReset(USBx); - 80078ee: 6878 ldr r0, [r7, #4] - 80078f0: f001 fad6 bl 8008ea0 - 80078f4: 4603 mov r3, r0 - 80078f6: 73fb strb r3, [r7, #15] - - if (cfg.battery_charging_enable == 0U) - 80078f8: f897 3025 ldrb.w r3, [r7, #37] @ 0x25 - 80078fc: 2b00 cmp r3, #0 - 80078fe: d106 bne.n 800790e - { - /* Activate the USB Transceiver */ - USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN; - 8007900: 687b ldr r3, [r7, #4] - 8007902: 6b9b ldr r3, [r3, #56] @ 0x38 - 8007904: f443 3280 orr.w r2, r3, #65536 @ 0x10000 - 8007908: 687b ldr r3, [r7, #4] - 800790a: 639a str r2, [r3, #56] @ 0x38 - 800790c: e005 b.n 800791a - } - else - { - /* Deactivate the USB Transceiver */ - USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); - 800790e: 687b ldr r3, [r7, #4] - 8007910: 6b9b ldr r3, [r3, #56] @ 0x38 - 8007912: f423 3280 bic.w r2, r3, #65536 @ 0x10000 - 8007916: 687b ldr r3, [r7, #4] - 8007918: 639a str r2, [r3, #56] @ 0x38 - } - } - - if (cfg.dma_enable == 1U) - 800791a: 7fbb ldrb r3, [r7, #30] - 800791c: 2b01 cmp r3, #1 - 800791e: d10b bne.n 8007938 - { - USBx->GAHBCFG |= USB_OTG_GAHBCFG_HBSTLEN_2; - 8007920: 687b ldr r3, [r7, #4] - 8007922: 689b ldr r3, [r3, #8] - 8007924: f043 0206 orr.w r2, r3, #6 - 8007928: 687b ldr r3, [r7, #4] - 800792a: 609a str r2, [r3, #8] - USBx->GAHBCFG |= USB_OTG_GAHBCFG_DMAEN; - 800792c: 687b ldr r3, [r7, #4] - 800792e: 689b ldr r3, [r3, #8] - 8007930: f043 0220 orr.w r2, r3, #32 - 8007934: 687b ldr r3, [r7, #4] - 8007936: 609a str r2, [r3, #8] - } - - return ret; - 8007938: 7bfb ldrb r3, [r7, #15] -} - 800793a: 4618 mov r0, r3 - 800793c: 3710 adds r7, #16 - 800793e: 46bd mov sp, r7 - 8007940: e8bd 4080 ldmia.w sp!, {r7, lr} - 8007944: b004 add sp, #16 - 8007946: 4770 bx lr - -08007948 : - * @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) -{ - 8007948: b480 push {r7} - 800794a: b087 sub sp, #28 - 800794c: af00 add r7, sp, #0 - 800794e: 60f8 str r0, [r7, #12] - 8007950: 60b9 str r1, [r7, #8] - 8007952: 4613 mov r3, r2 - 8007954: 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) - 8007956: 79fb ldrb r3, [r7, #7] - 8007958: 2b02 cmp r3, #2 - 800795a: d165 bne.n 8007a28 - { - if ((hclk >= 14200000U) && (hclk < 15000000U)) - 800795c: 68bb ldr r3, [r7, #8] - 800795e: 4a41 ldr r2, [pc, #260] @ (8007a64 ) - 8007960: 4293 cmp r3, r2 - 8007962: d906 bls.n 8007972 - 8007964: 68bb ldr r3, [r7, #8] - 8007966: 4a40 ldr r2, [pc, #256] @ (8007a68 ) - 8007968: 4293 cmp r3, r2 - 800796a: d202 bcs.n 8007972 - { - /* hclk Clock Range between 14.2-15 MHz */ - UsbTrd = 0xFU; - 800796c: 230f movs r3, #15 - 800796e: 617b str r3, [r7, #20] - 8007970: e062 b.n 8007a38 - } - else if ((hclk >= 15000000U) && (hclk < 16000000U)) - 8007972: 68bb ldr r3, [r7, #8] - 8007974: 4a3c ldr r2, [pc, #240] @ (8007a68 ) - 8007976: 4293 cmp r3, r2 - 8007978: d306 bcc.n 8007988 - 800797a: 68bb ldr r3, [r7, #8] - 800797c: 4a3b ldr r2, [pc, #236] @ (8007a6c ) - 800797e: 4293 cmp r3, r2 - 8007980: d202 bcs.n 8007988 - { - /* hclk Clock Range between 15-16 MHz */ - UsbTrd = 0xEU; - 8007982: 230e movs r3, #14 - 8007984: 617b str r3, [r7, #20] - 8007986: e057 b.n 8007a38 - } - else if ((hclk >= 16000000U) && (hclk < 17200000U)) - 8007988: 68bb ldr r3, [r7, #8] - 800798a: 4a38 ldr r2, [pc, #224] @ (8007a6c ) - 800798c: 4293 cmp r3, r2 - 800798e: d306 bcc.n 800799e - 8007990: 68bb ldr r3, [r7, #8] - 8007992: 4a37 ldr r2, [pc, #220] @ (8007a70 ) - 8007994: 4293 cmp r3, r2 - 8007996: d202 bcs.n 800799e - { - /* hclk Clock Range between 16-17.2 MHz */ - UsbTrd = 0xDU; - 8007998: 230d movs r3, #13 - 800799a: 617b str r3, [r7, #20] - 800799c: e04c b.n 8007a38 - } - else if ((hclk >= 17200000U) && (hclk < 18500000U)) - 800799e: 68bb ldr r3, [r7, #8] - 80079a0: 4a33 ldr r2, [pc, #204] @ (8007a70 ) - 80079a2: 4293 cmp r3, r2 - 80079a4: d306 bcc.n 80079b4 - 80079a6: 68bb ldr r3, [r7, #8] - 80079a8: 4a32 ldr r2, [pc, #200] @ (8007a74 ) - 80079aa: 4293 cmp r3, r2 - 80079ac: d802 bhi.n 80079b4 - { - /* hclk Clock Range between 17.2-18.5 MHz */ - UsbTrd = 0xCU; - 80079ae: 230c movs r3, #12 - 80079b0: 617b str r3, [r7, #20] - 80079b2: e041 b.n 8007a38 - } - else if ((hclk >= 18500000U) && (hclk < 20000000U)) - 80079b4: 68bb ldr r3, [r7, #8] - 80079b6: 4a2f ldr r2, [pc, #188] @ (8007a74 ) - 80079b8: 4293 cmp r3, r2 - 80079ba: d906 bls.n 80079ca - 80079bc: 68bb ldr r3, [r7, #8] - 80079be: 4a2e ldr r2, [pc, #184] @ (8007a78 ) + 800789c: 601a str r2, [r3, #0] + 800789e: e005 b.n 80078ac + 80078a0: 687b ldr r3, [r7, #4] + 80078a2: 6b9b ldr r3, [r3, #56] @ 0x38 + 80078a4: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 + 80078a8: 687b ldr r3, [r7, #4] + 80078aa: 639a str r2, [r3, #56] @ 0x38 + 80078ac: 68fb ldr r3, [r7, #12] + 80078ae: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 80078b2: 461a mov r2, r3 + 80078b4: 2300 movs r3, #0 + 80078b6: 6013 str r3, [r2, #0] + 80078b8: f897 3029 ldrb.w r3, [r7, #41] @ 0x29 + 80078bc: 2b01 cmp r3, #1 + 80078be: d10d bne.n 80078dc + 80078c0: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 + 80078c4: 2b00 cmp r3, #0 + 80078c6: d104 bne.n 80078d2 + 80078c8: 2100 movs r1, #0 + 80078ca: 6878 ldr r0, [r7, #4] + 80078cc: f000 f968 bl 8007ba0 + 80078d0: e008 b.n 80078e4 + 80078d2: 2101 movs r1, #1 + 80078d4: 6878 ldr r0, [r7, #4] + 80078d6: f000 f963 bl 8007ba0 + 80078da: e003 b.n 80078e4 + 80078dc: 2103 movs r1, #3 + 80078de: 6878 ldr r0, [r7, #4] + 80078e0: f000 f95e bl 8007ba0 + 80078e4: 2110 movs r1, #16 + 80078e6: 6878 ldr r0, [r7, #4] + 80078e8: f000 f8fa bl 8007ae0 + 80078ec: 4603 mov r3, r0 + 80078ee: 2b00 cmp r3, #0 + 80078f0: d001 beq.n 80078f6 + 80078f2: 2301 movs r3, #1 + 80078f4: 75fb strb r3, [r7, #23] + 80078f6: 6878 ldr r0, [r7, #4] + 80078f8: f000 f924 bl 8007b44 + 80078fc: 4603 mov r3, r0 + 80078fe: 2b00 cmp r3, #0 + 8007900: d001 beq.n 8007906 + 8007902: 2301 movs r3, #1 + 8007904: 75fb strb r3, [r7, #23] + 8007906: 68fb ldr r3, [r7, #12] + 8007908: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800790c: 461a mov r2, r3 + 800790e: 2300 movs r3, #0 + 8007910: 6113 str r3, [r2, #16] + 8007912: 68fb ldr r3, [r7, #12] + 8007914: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007918: 461a mov r2, r3 + 800791a: 2300 movs r3, #0 + 800791c: 6153 str r3, [r2, #20] + 800791e: 68fb ldr r3, [r7, #12] + 8007920: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007924: 461a mov r2, r3 + 8007926: 2300 movs r3, #0 + 8007928: 61d3 str r3, [r2, #28] + 800792a: 2300 movs r3, #0 + 800792c: 613b str r3, [r7, #16] + 800792e: e043 b.n 80079b8 + 8007930: 693b ldr r3, [r7, #16] + 8007932: 015a lsls r2, r3, #5 + 8007934: 68fb ldr r3, [r7, #12] + 8007936: 4413 add r3, r2 + 8007938: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800793c: 681b ldr r3, [r3, #0] + 800793e: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8007942: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8007946: d118 bne.n 800797a + 8007948: 693b ldr r3, [r7, #16] + 800794a: 2b00 cmp r3, #0 + 800794c: d10a bne.n 8007964 + 800794e: 693b ldr r3, [r7, #16] + 8007950: 015a lsls r2, r3, #5 + 8007952: 68fb ldr r3, [r7, #12] + 8007954: 4413 add r3, r2 + 8007956: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800795a: 461a mov r2, r3 + 800795c: f04f 6300 mov.w r3, #134217728 @ 0x8000000 + 8007960: 6013 str r3, [r2, #0] + 8007962: e013 b.n 800798c + 8007964: 693b ldr r3, [r7, #16] + 8007966: 015a lsls r2, r3, #5 + 8007968: 68fb ldr r3, [r7, #12] + 800796a: 4413 add r3, r2 + 800796c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007970: 461a mov r2, r3 + 8007972: f04f 4390 mov.w r3, #1207959552 @ 0x48000000 + 8007976: 6013 str r3, [r2, #0] + 8007978: e008 b.n 800798c + 800797a: 693b ldr r3, [r7, #16] + 800797c: 015a lsls r2, r3, #5 + 800797e: 68fb ldr r3, [r7, #12] + 8007980: 4413 add r3, r2 + 8007982: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007986: 461a mov r2, r3 + 8007988: 2300 movs r3, #0 + 800798a: 6013 str r3, [r2, #0] + 800798c: 693b ldr r3, [r7, #16] + 800798e: 015a lsls r2, r3, #5 + 8007990: 68fb ldr r3, [r7, #12] + 8007992: 4413 add r3, r2 + 8007994: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007998: 461a mov r2, r3 + 800799a: 2300 movs r3, #0 + 800799c: 6113 str r3, [r2, #16] + 800799e: 693b ldr r3, [r7, #16] + 80079a0: 015a lsls r2, r3, #5 + 80079a2: 68fb ldr r3, [r7, #12] + 80079a4: 4413 add r3, r2 + 80079a6: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80079aa: 461a mov r2, r3 + 80079ac: f64f 337f movw r3, #64383 @ 0xfb7f + 80079b0: 6093 str r3, [r2, #8] + 80079b2: 693b ldr r3, [r7, #16] + 80079b4: 3301 adds r3, #1 + 80079b6: 613b str r3, [r7, #16] + 80079b8: f897 3024 ldrb.w r3, [r7, #36] @ 0x24 + 80079bc: 461a mov r2, r3 + 80079be: 693b ldr r3, [r7, #16] 80079c0: 4293 cmp r3, r2 - 80079c2: d802 bhi.n 80079ca - { - /* hclk Clock Range between 18.5-20 MHz */ - UsbTrd = 0xBU; - 80079c4: 230b movs r3, #11 - 80079c6: 617b str r3, [r7, #20] - 80079c8: e036 b.n 8007a38 - } - else if ((hclk >= 20000000U) && (hclk < 21800000U)) - 80079ca: 68bb ldr r3, [r7, #8] - 80079cc: 4a2a ldr r2, [pc, #168] @ (8007a78 ) - 80079ce: 4293 cmp r3, r2 - 80079d0: d906 bls.n 80079e0 - 80079d2: 68bb ldr r3, [r7, #8] - 80079d4: 4a29 ldr r2, [pc, #164] @ (8007a7c ) - 80079d6: 4293 cmp r3, r2 - 80079d8: d802 bhi.n 80079e0 - { - /* hclk Clock Range between 20-21.8 MHz */ - UsbTrd = 0xAU; - 80079da: 230a movs r3, #10 - 80079dc: 617b str r3, [r7, #20] - 80079de: e02b b.n 8007a38 - } - else if ((hclk >= 21800000U) && (hclk < 24000000U)) - 80079e0: 68bb ldr r3, [r7, #8] - 80079e2: 4a26 ldr r2, [pc, #152] @ (8007a7c ) - 80079e4: 4293 cmp r3, r2 - 80079e6: d906 bls.n 80079f6 - 80079e8: 68bb ldr r3, [r7, #8] - 80079ea: 4a25 ldr r2, [pc, #148] @ (8007a80 ) - 80079ec: 4293 cmp r3, r2 - 80079ee: d202 bcs.n 80079f6 - { - /* hclk Clock Range between 21.8-24 MHz */ - UsbTrd = 0x9U; - 80079f0: 2309 movs r3, #9 - 80079f2: 617b str r3, [r7, #20] - 80079f4: e020 b.n 8007a38 - } - else if ((hclk >= 24000000U) && (hclk < 27700000U)) - 80079f6: 68bb ldr r3, [r7, #8] - 80079f8: 4a21 ldr r2, [pc, #132] @ (8007a80 ) - 80079fa: 4293 cmp r3, r2 - 80079fc: d306 bcc.n 8007a0c - 80079fe: 68bb ldr r3, [r7, #8] - 8007a00: 4a20 ldr r2, [pc, #128] @ (8007a84 ) - 8007a02: 4293 cmp r3, r2 - 8007a04: d802 bhi.n 8007a0c - { - /* hclk Clock Range between 24-27.7 MHz */ - UsbTrd = 0x8U; - 8007a06: 2308 movs r3, #8 - 8007a08: 617b str r3, [r7, #20] - 8007a0a: e015 b.n 8007a38 - } - else if ((hclk >= 27700000U) && (hclk < 32000000U)) - 8007a0c: 68bb ldr r3, [r7, #8] - 8007a0e: 4a1d ldr r2, [pc, #116] @ (8007a84 ) - 8007a10: 4293 cmp r3, r2 - 8007a12: d906 bls.n 8007a22 - 8007a14: 68bb ldr r3, [r7, #8] - 8007a16: 4a1c ldr r2, [pc, #112] @ (8007a88 ) - 8007a18: 4293 cmp r3, r2 - 8007a1a: d202 bcs.n 8007a22 - { - /* hclk Clock Range between 27.7-32 MHz */ - UsbTrd = 0x7U; - 8007a1c: 2307 movs r3, #7 - 8007a1e: 617b str r3, [r7, #20] - 8007a20: e00a b.n 8007a38 - } - else /* if(hclk >= 32000000) */ - { - /* hclk Clock Range between 32-200 MHz */ - UsbTrd = 0x6U; - 8007a22: 2306 movs r3, #6 - 8007a24: 617b str r3, [r7, #20] - 8007a26: e007 b.n 8007a38 - } - } - else if (speed == USBD_HS_SPEED) - 8007a28: 79fb ldrb r3, [r7, #7] - 8007a2a: 2b00 cmp r3, #0 - 8007a2c: d102 bne.n 8007a34 - { - UsbTrd = USBD_HS_TRDT_VALUE; - 8007a2e: 2309 movs r3, #9 - 8007a30: 617b str r3, [r7, #20] - 8007a32: e001 b.n 8007a38 - } - else - { - UsbTrd = USBD_DEFAULT_TRDT_VALUE; - 8007a34: 2309 movs r3, #9 - 8007a36: 617b str r3, [r7, #20] - } - - USBx->GUSBCFG &= ~USB_OTG_GUSBCFG_TRDT; - 8007a38: 68fb ldr r3, [r7, #12] - 8007a3a: 68db ldr r3, [r3, #12] - 8007a3c: f423 5270 bic.w r2, r3, #15360 @ 0x3c00 - 8007a40: 68fb ldr r3, [r7, #12] - 8007a42: 60da str r2, [r3, #12] - USBx->GUSBCFG |= (uint32_t)((UsbTrd << 10) & USB_OTG_GUSBCFG_TRDT); - 8007a44: 68fb ldr r3, [r7, #12] - 8007a46: 68da ldr r2, [r3, #12] - 8007a48: 697b ldr r3, [r7, #20] - 8007a4a: 029b lsls r3, r3, #10 - 8007a4c: f403 5370 and.w r3, r3, #15360 @ 0x3c00 - 8007a50: 431a orrs r2, r3 - 8007a52: 68fb ldr r3, [r7, #12] - 8007a54: 60da str r2, [r3, #12] - - return HAL_OK; - 8007a56: 2300 movs r3, #0 -} - 8007a58: 4618 mov r0, r3 - 8007a5a: 371c adds r7, #28 - 8007a5c: 46bd mov sp, r7 - 8007a5e: f85d 7b04 ldr.w r7, [sp], #4 - 8007a62: 4770 bx lr - 8007a64: 00d8acbf .word 0x00d8acbf - 8007a68: 00e4e1c0 .word 0x00e4e1c0 - 8007a6c: 00f42400 .word 0x00f42400 - 8007a70: 01067380 .word 0x01067380 - 8007a74: 011a499f .word 0x011a499f - 8007a78: 01312cff .word 0x01312cff - 8007a7c: 014ca43f .word 0x014ca43f - 8007a80: 016e3600 .word 0x016e3600 - 8007a84: 01a6ab1f .word 0x01a6ab1f - 8007a88: 01e84800 .word 0x01e84800 - -08007a8c : - * 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) -{ - 8007a8c: b480 push {r7} - 8007a8e: b083 sub sp, #12 - 8007a90: af00 add r7, sp, #0 - 8007a92: 6078 str r0, [r7, #4] - USBx->GAHBCFG |= USB_OTG_GAHBCFG_GINT; + 80079c2: d3b5 bcc.n 8007930 + 80079c4: 2300 movs r3, #0 + 80079c6: 613b str r3, [r7, #16] + 80079c8: e043 b.n 8007a52 + 80079ca: 693b ldr r3, [r7, #16] + 80079cc: 015a lsls r2, r3, #5 + 80079ce: 68fb ldr r3, [r7, #12] + 80079d0: 4413 add r3, r2 + 80079d2: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80079d6: 681b ldr r3, [r3, #0] + 80079d8: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 80079dc: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 80079e0: d118 bne.n 8007a14 + 80079e2: 693b ldr r3, [r7, #16] + 80079e4: 2b00 cmp r3, #0 + 80079e6: d10a bne.n 80079fe + 80079e8: 693b ldr r3, [r7, #16] + 80079ea: 015a lsls r2, r3, #5 + 80079ec: 68fb ldr r3, [r7, #12] + 80079ee: 4413 add r3, r2 + 80079f0: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80079f4: 461a mov r2, r3 + 80079f6: f04f 6300 mov.w r3, #134217728 @ 0x8000000 + 80079fa: 6013 str r3, [r2, #0] + 80079fc: e013 b.n 8007a26 + 80079fe: 693b ldr r3, [r7, #16] + 8007a00: 015a lsls r2, r3, #5 + 8007a02: 68fb ldr r3, [r7, #12] + 8007a04: 4413 add r3, r2 + 8007a06: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007a0a: 461a mov r2, r3 + 8007a0c: f04f 4390 mov.w r3, #1207959552 @ 0x48000000 + 8007a10: 6013 str r3, [r2, #0] + 8007a12: e008 b.n 8007a26 + 8007a14: 693b ldr r3, [r7, #16] + 8007a16: 015a lsls r2, r3, #5 + 8007a18: 68fb ldr r3, [r7, #12] + 8007a1a: 4413 add r3, r2 + 8007a1c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007a20: 461a mov r2, r3 + 8007a22: 2300 movs r3, #0 + 8007a24: 6013 str r3, [r2, #0] + 8007a26: 693b ldr r3, [r7, #16] + 8007a28: 015a lsls r2, r3, #5 + 8007a2a: 68fb ldr r3, [r7, #12] + 8007a2c: 4413 add r3, r2 + 8007a2e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007a32: 461a mov r2, r3 + 8007a34: 2300 movs r3, #0 + 8007a36: 6113 str r3, [r2, #16] + 8007a38: 693b ldr r3, [r7, #16] + 8007a3a: 015a lsls r2, r3, #5 + 8007a3c: 68fb ldr r3, [r7, #12] + 8007a3e: 4413 add r3, r2 + 8007a40: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007a44: 461a mov r2, r3 + 8007a46: f64f 337f movw r3, #64383 @ 0xfb7f + 8007a4a: 6093 str r3, [r2, #8] + 8007a4c: 693b ldr r3, [r7, #16] + 8007a4e: 3301 adds r3, #1 + 8007a50: 613b str r3, [r7, #16] + 8007a52: f897 3024 ldrb.w r3, [r7, #36] @ 0x24 + 8007a56: 461a mov r2, r3 + 8007a58: 693b ldr r3, [r7, #16] + 8007a5a: 4293 cmp r3, r2 + 8007a5c: d3b5 bcc.n 80079ca + 8007a5e: 68fb ldr r3, [r7, #12] + 8007a60: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007a64: 691b ldr r3, [r3, #16] + 8007a66: 68fa ldr r2, [r7, #12] + 8007a68: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8007a6c: f423 7380 bic.w r3, r3, #256 @ 0x100 + 8007a70: 6113 str r3, [r2, #16] + 8007a72: 687b ldr r3, [r7, #4] + 8007a74: 2200 movs r2, #0 + 8007a76: 619a str r2, [r3, #24] + 8007a78: 687b ldr r3, [r7, #4] + 8007a7a: f06f 4280 mvn.w r2, #1073741824 @ 0x40000000 + 8007a7e: 615a str r2, [r3, #20] + 8007a80: f897 3026 ldrb.w r3, [r7, #38] @ 0x26 + 8007a84: 2b00 cmp r3, #0 + 8007a86: d105 bne.n 8007a94 + 8007a88: 687b ldr r3, [r7, #4] + 8007a8a: 699b ldr r3, [r3, #24] + 8007a8c: f043 0210 orr.w r2, r3, #16 + 8007a90: 687b ldr r3, [r7, #4] + 8007a92: 619a str r2, [r3, #24] 8007a94: 687b ldr r3, [r7, #4] - 8007a96: 689b ldr r3, [r3, #8] - 8007a98: f043 0201 orr.w r2, r3, #1 - 8007a9c: 687b ldr r3, [r7, #4] - 8007a9e: 609a str r2, [r3, #8] - return HAL_OK; - 8007aa0: 2300 movs r3, #0 -} - 8007aa2: 4618 mov r0, r3 - 8007aa4: 370c adds r7, #12 - 8007aa6: 46bd mov sp, r7 - 8007aa8: f85d 7b04 ldr.w r7, [sp], #4 - 8007aac: 4770 bx lr + 8007a96: 699a ldr r2, [r3, #24] + 8007a98: 4b10 ldr r3, [pc, #64] @ (8007adc ) + 8007a9a: 4313 orrs r3, r2 + 8007a9c: 687a ldr r2, [r7, #4] + 8007a9e: 6193 str r3, [r2, #24] + 8007aa0: f897 302a ldrb.w r3, [r7, #42] @ 0x2a + 8007aa4: 2b00 cmp r3, #0 + 8007aa6: d005 beq.n 8007ab4 + 8007aa8: 687b ldr r3, [r7, #4] + 8007aaa: 699b ldr r3, [r3, #24] + 8007aac: f043 0208 orr.w r2, r3, #8 + 8007ab0: 687b ldr r3, [r7, #4] + 8007ab2: 619a str r2, [r3, #24] + 8007ab4: f897 302e ldrb.w r3, [r7, #46] @ 0x2e + 8007ab8: 2b01 cmp r3, #1 + 8007aba: d107 bne.n 8007acc + 8007abc: 687b ldr r3, [r7, #4] + 8007abe: 699b ldr r3, [r3, #24] + 8007ac0: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 8007ac4: f043 0304 orr.w r3, r3, #4 + 8007ac8: 687a ldr r2, [r7, #4] + 8007aca: 6193 str r3, [r2, #24] + 8007acc: 7dfb ldrb r3, [r7, #23] + 8007ace: 4618 mov r0, r3 + 8007ad0: 3718 adds r7, #24 + 8007ad2: 46bd mov sp, r7 + 8007ad4: e8bd 4080 ldmia.w sp!, {r7, lr} + 8007ad8: b004 add sp, #16 + 8007ada: 4770 bx lr + 8007adc: 803c3800 .word 0x803c3800 -08007aae : - * 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) -{ - 8007aae: b480 push {r7} - 8007ab0: b083 sub sp, #12 - 8007ab2: af00 add r7, sp, #0 - 8007ab4: 6078 str r0, [r7, #4] - USBx->GAHBCFG &= ~USB_OTG_GAHBCFG_GINT; - 8007ab6: 687b ldr r3, [r7, #4] - 8007ab8: 689b ldr r3, [r3, #8] - 8007aba: f023 0201 bic.w r2, r3, #1 - 8007abe: 687b ldr r3, [r7, #4] - 8007ac0: 609a str r2, [r3, #8] - return HAL_OK; - 8007ac2: 2300 movs r3, #0 -} - 8007ac4: 4618 mov r0, r3 - 8007ac6: 370c adds r7, #12 - 8007ac8: 46bd mov sp, r7 - 8007aca: f85d 7b04 ldr.w r7, [sp], #4 - 8007ace: 4770 bx lr +08007ae0 : + 8007ae0: b480 push {r7} + 8007ae2: b085 sub sp, #20 + 8007ae4: af00 add r7, sp, #0 + 8007ae6: 6078 str r0, [r7, #4] + 8007ae8: 6039 str r1, [r7, #0] + 8007aea: 2300 movs r3, #0 + 8007aec: 60fb str r3, [r7, #12] + 8007aee: 68fb ldr r3, [r7, #12] + 8007af0: 3301 adds r3, #1 + 8007af2: 60fb str r3, [r7, #12] + 8007af4: 68fb ldr r3, [r7, #12] + 8007af6: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 8007afa: d901 bls.n 8007b00 + 8007afc: 2303 movs r3, #3 + 8007afe: e01b b.n 8007b38 + 8007b00: 687b ldr r3, [r7, #4] + 8007b02: 691b ldr r3, [r3, #16] + 8007b04: 2b00 cmp r3, #0 + 8007b06: daf2 bge.n 8007aee + 8007b08: 2300 movs r3, #0 + 8007b0a: 60fb str r3, [r7, #12] + 8007b0c: 683b ldr r3, [r7, #0] + 8007b0e: 019b lsls r3, r3, #6 + 8007b10: f043 0220 orr.w r2, r3, #32 + 8007b14: 687b ldr r3, [r7, #4] + 8007b16: 611a str r2, [r3, #16] + 8007b18: 68fb ldr r3, [r7, #12] + 8007b1a: 3301 adds r3, #1 + 8007b1c: 60fb str r3, [r7, #12] + 8007b1e: 68fb ldr r3, [r7, #12] + 8007b20: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 8007b24: d901 bls.n 8007b2a + 8007b26: 2303 movs r3, #3 + 8007b28: e006 b.n 8007b38 + 8007b2a: 687b ldr r3, [r7, #4] + 8007b2c: 691b ldr r3, [r3, #16] + 8007b2e: f003 0320 and.w r3, r3, #32 + 8007b32: 2b20 cmp r3, #32 + 8007b34: d0f0 beq.n 8007b18 + 8007b36: 2300 movs r3, #0 + 8007b38: 4618 mov r0, r3 + 8007b3a: 3714 adds r7, #20 + 8007b3c: 46bd mov sp, r7 + 8007b3e: f85d 7b04 ldr.w r7, [sp], #4 + 8007b42: 4770 bx lr -08007ad0 : - * @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) -{ - 8007ad0: b580 push {r7, lr} - 8007ad2: b084 sub sp, #16 - 8007ad4: af00 add r7, sp, #0 - 8007ad6: 6078 str r0, [r7, #4] - 8007ad8: 460b mov r3, r1 - 8007ada: 70fb strb r3, [r7, #3] - uint32_t ms = 0U; - 8007adc: 2300 movs r3, #0 - 8007ade: 60fb str r3, [r7, #12] +08007b44 : + 8007b44: b480 push {r7} + 8007b46: b085 sub sp, #20 + 8007b48: af00 add r7, sp, #0 + 8007b4a: 6078 str r0, [r7, #4] + 8007b4c: 2300 movs r3, #0 + 8007b4e: 60fb str r3, [r7, #12] + 8007b50: 68fb ldr r3, [r7, #12] + 8007b52: 3301 adds r3, #1 + 8007b54: 60fb str r3, [r7, #12] + 8007b56: 68fb ldr r3, [r7, #12] + 8007b58: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 8007b5c: d901 bls.n 8007b62 + 8007b5e: 2303 movs r3, #3 + 8007b60: e018 b.n 8007b94 + 8007b62: 687b ldr r3, [r7, #4] + 8007b64: 691b ldr r3, [r3, #16] + 8007b66: 2b00 cmp r3, #0 + 8007b68: daf2 bge.n 8007b50 + 8007b6a: 2300 movs r3, #0 + 8007b6c: 60fb str r3, [r7, #12] + 8007b6e: 687b ldr r3, [r7, #4] + 8007b70: 2210 movs r2, #16 + 8007b72: 611a str r2, [r3, #16] + 8007b74: 68fb ldr r3, [r7, #12] + 8007b76: 3301 adds r3, #1 + 8007b78: 60fb str r3, [r7, #12] + 8007b7a: 68fb ldr r3, [r7, #12] + 8007b7c: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 8007b80: d901 bls.n 8007b86 + 8007b82: 2303 movs r3, #3 + 8007b84: e006 b.n 8007b94 + 8007b86: 687b ldr r3, [r7, #4] + 8007b88: 691b ldr r3, [r3, #16] + 8007b8a: f003 0310 and.w r3, r3, #16 + 8007b8e: 2b10 cmp r3, #16 + 8007b90: d0f0 beq.n 8007b74 + 8007b92: 2300 movs r3, #0 + 8007b94: 4618 mov r0, r3 + 8007b96: 3714 adds r7, #20 + 8007b98: 46bd mov sp, r7 + 8007b9a: f85d 7b04 ldr.w r7, [sp], #4 + 8007b9e: 4770 bx lr - USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_FHMOD | USB_OTG_GUSBCFG_FDMOD); - 8007ae0: 687b ldr r3, [r7, #4] - 8007ae2: 68db ldr r3, [r3, #12] - 8007ae4: f023 42c0 bic.w r2, r3, #1610612736 @ 0x60000000 - 8007ae8: 687b ldr r3, [r7, #4] - 8007aea: 60da str r2, [r3, #12] +08007ba0 : + 8007ba0: b480 push {r7} + 8007ba2: b085 sub sp, #20 + 8007ba4: af00 add r7, sp, #0 + 8007ba6: 6078 str r0, [r7, #4] + 8007ba8: 460b mov r3, r1 + 8007baa: 70fb strb r3, [r7, #3] + 8007bac: 687b ldr r3, [r7, #4] + 8007bae: 60fb str r3, [r7, #12] + 8007bb0: 68fb ldr r3, [r7, #12] + 8007bb2: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007bb6: 681a ldr r2, [r3, #0] + 8007bb8: 78fb ldrb r3, [r7, #3] + 8007bba: 68f9 ldr r1, [r7, #12] + 8007bbc: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8007bc0: 4313 orrs r3, r2 + 8007bc2: 600b str r3, [r1, #0] + 8007bc4: 2300 movs r3, #0 + 8007bc6: 4618 mov r0, r3 + 8007bc8: 3714 adds r7, #20 + 8007bca: 46bd mov sp, r7 + 8007bcc: f85d 7b04 ldr.w r7, [sp], #4 + 8007bd0: 4770 bx lr - if (mode == USB_HOST_MODE) - 8007aec: 78fb ldrb r3, [r7, #3] - 8007aee: 2b01 cmp r3, #1 - 8007af0: d115 bne.n 8007b1e - { - USBx->GUSBCFG |= USB_OTG_GUSBCFG_FHMOD; - 8007af2: 687b ldr r3, [r7, #4] - 8007af4: 68db ldr r3, [r3, #12] - 8007af6: f043 5200 orr.w r2, r3, #536870912 @ 0x20000000 - 8007afa: 687b ldr r3, [r7, #4] - 8007afc: 60da str r2, [r3, #12] +08007bd2 : + 8007bd2: b480 push {r7} + 8007bd4: b087 sub sp, #28 + 8007bd6: af00 add r7, sp, #0 + 8007bd8: 6078 str r0, [r7, #4] + 8007bda: 687b ldr r3, [r7, #4] + 8007bdc: 613b str r3, [r7, #16] + 8007bde: 693b ldr r3, [r7, #16] + 8007be0: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007be4: 689b ldr r3, [r3, #8] + 8007be6: f003 0306 and.w r3, r3, #6 + 8007bea: 60fb str r3, [r7, #12] + 8007bec: 68fb ldr r3, [r7, #12] + 8007bee: 2b00 cmp r3, #0 + 8007bf0: d102 bne.n 8007bf8 + 8007bf2: 2300 movs r3, #0 + 8007bf4: 75fb strb r3, [r7, #23] + 8007bf6: e00a b.n 8007c0e + 8007bf8: 68fb ldr r3, [r7, #12] + 8007bfa: 2b02 cmp r3, #2 + 8007bfc: d002 beq.n 8007c04 + 8007bfe: 68fb ldr r3, [r7, #12] + 8007c00: 2b06 cmp r3, #6 + 8007c02: d102 bne.n 8007c0a + 8007c04: 2302 movs r3, #2 + 8007c06: 75fb strb r3, [r7, #23] + 8007c08: e001 b.n 8007c0e + 8007c0a: 230f movs r3, #15 + 8007c0c: 75fb strb r3, [r7, #23] + 8007c0e: 7dfb ldrb r3, [r7, #23] + 8007c10: 4618 mov r0, r3 + 8007c12: 371c adds r7, #28 + 8007c14: 46bd mov sp, r7 + 8007c16: f85d 7b04 ldr.w r7, [sp], #4 + 8007c1a: 4770 bx lr - do - { - HAL_Delay(10U); - 8007afe: 200a movs r0, #10 - 8007b00: f7fa fa2e bl 8001f60 - ms += 10U; - 8007b04: 68fb ldr r3, [r7, #12] - 8007b06: 330a adds r3, #10 - 8007b08: 60fb str r3, [r7, #12] - } while ((USB_GetMode(USBx) != (uint32_t)USB_HOST_MODE) && (ms < HAL_USB_CURRENT_MODE_MAX_DELAY_MS)); - 8007b0a: 6878 ldr r0, [r7, #4] - 8007b0c: f001 f939 bl 8008d82 - 8007b10: 4603 mov r3, r0 - 8007b12: 2b01 cmp r3, #1 - 8007b14: d01e beq.n 8007b54 - 8007b16: 68fb ldr r3, [r7, #12] - 8007b18: 2bc7 cmp r3, #199 @ 0xc7 - 8007b1a: d9f0 bls.n 8007afe - 8007b1c: e01a b.n 8007b54 - } - else if (mode == USB_DEVICE_MODE) - 8007b1e: 78fb ldrb r3, [r7, #3] - 8007b20: 2b00 cmp r3, #0 - 8007b22: d115 bne.n 8007b50 - { - USBx->GUSBCFG |= USB_OTG_GUSBCFG_FDMOD; - 8007b24: 687b ldr r3, [r7, #4] - 8007b26: 68db ldr r3, [r3, #12] - 8007b28: f043 4280 orr.w r2, r3, #1073741824 @ 0x40000000 - 8007b2c: 687b ldr r3, [r7, #4] - 8007b2e: 60da str r2, [r3, #12] - - do - { - HAL_Delay(10U); - 8007b30: 200a movs r0, #10 - 8007b32: f7fa fa15 bl 8001f60 - ms += 10U; - 8007b36: 68fb ldr r3, [r7, #12] - 8007b38: 330a adds r3, #10 - 8007b3a: 60fb str r3, [r7, #12] - } while ((USB_GetMode(USBx) != (uint32_t)USB_DEVICE_MODE) && (ms < HAL_USB_CURRENT_MODE_MAX_DELAY_MS)); - 8007b3c: 6878 ldr r0, [r7, #4] - 8007b3e: f001 f920 bl 8008d82 - 8007b42: 4603 mov r3, r0 - 8007b44: 2b00 cmp r3, #0 - 8007b46: d005 beq.n 8007b54 - 8007b48: 68fb ldr r3, [r7, #12] - 8007b4a: 2bc7 cmp r3, #199 @ 0xc7 - 8007b4c: d9f0 bls.n 8007b30 - 8007b4e: e001 b.n 8007b54 - } - else - { - return HAL_ERROR; - 8007b50: 2301 movs r3, #1 - 8007b52: e005 b.n 8007b60 - } - - if (ms == HAL_USB_CURRENT_MODE_MAX_DELAY_MS) - 8007b54: 68fb ldr r3, [r7, #12] - 8007b56: 2bc8 cmp r3, #200 @ 0xc8 - 8007b58: d101 bne.n 8007b5e - { - return HAL_ERROR; - 8007b5a: 2301 movs r3, #1 - 8007b5c: e000 b.n 8007b60 - } - - return HAL_OK; - 8007b5e: 2300 movs r3, #0 -} - 8007b60: 4618 mov r0, r3 - 8007b62: 3710 adds r7, #16 - 8007b64: 46bd mov sp, r7 - 8007b66: bd80 pop {r7, pc} - -08007b68 : - * @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) -{ - 8007b68: b084 sub sp, #16 - 8007b6a: b580 push {r7, lr} - 8007b6c: b086 sub sp, #24 - 8007b6e: af00 add r7, sp, #0 - 8007b70: 6078 str r0, [r7, #4] - 8007b72: f107 0024 add.w r0, r7, #36 @ 0x24 - 8007b76: e880 000e stmia.w r0, {r1, r2, r3} - HAL_StatusTypeDef ret = HAL_OK; - 8007b7a: 2300 movs r3, #0 - 8007b7c: 75fb strb r3, [r7, #23] - uint32_t USBx_BASE = (uint32_t)USBx; - 8007b7e: 687b ldr r3, [r7, #4] - 8007b80: 60fb str r3, [r7, #12] - uint32_t i; - - for (i = 0U; i < 15U; i++) - 8007b82: 2300 movs r3, #0 - 8007b84: 613b str r3, [r7, #16] - 8007b86: e009 b.n 8007b9c - { - USBx->DIEPTXF[i] = 0U; - 8007b88: 687a ldr r2, [r7, #4] - 8007b8a: 693b ldr r3, [r7, #16] - 8007b8c: 3340 adds r3, #64 @ 0x40 - 8007b8e: 009b lsls r3, r3, #2 - 8007b90: 4413 add r3, r2 - 8007b92: 2200 movs r2, #0 - 8007b94: 605a str r2, [r3, #4] - for (i = 0U; i < 15U; i++) - 8007b96: 693b ldr r3, [r7, #16] - 8007b98: 3301 adds r3, #1 - 8007b9a: 613b str r3, [r7, #16] - 8007b9c: 693b ldr r3, [r7, #16] - 8007b9e: 2b0e cmp r3, #14 - 8007ba0: d9f2 bls.n 8007b88 - -#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) - 8007ba2: f897 302e ldrb.w r3, [r7, #46] @ 0x2e - 8007ba6: 2b00 cmp r3, #0 - 8007ba8: d11c bne.n 8007be4 - { - USBx_DEVICE->DCTL |= USB_OTG_DCTL_SDIS; - 8007baa: 68fb ldr r3, [r7, #12] - 8007bac: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007bb0: 685b ldr r3, [r3, #4] - 8007bb2: 68fa ldr r2, [r7, #12] - 8007bb4: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8007bb8: f043 0302 orr.w r3, r3, #2 - 8007bbc: 6053 str r3, [r2, #4] - - /* Deactivate VBUS Sensing B */ - USBx->GCCFG &= ~USB_OTG_GCCFG_VBDEN; - 8007bbe: 687b ldr r3, [r7, #4] - 8007bc0: 6b9b ldr r3, [r3, #56] @ 0x38 - 8007bc2: f423 1200 bic.w r2, r3, #2097152 @ 0x200000 - 8007bc6: 687b ldr r3, [r7, #4] - 8007bc8: 639a str r2, [r3, #56] @ 0x38 - - /* B-peripheral session valid override enable */ - USBx->GOTGCTL |= USB_OTG_GOTGCTL_BVALOEN; - 8007bca: 687b ldr r3, [r7, #4] - 8007bcc: 681b ldr r3, [r3, #0] - 8007bce: f043 0240 orr.w r2, r3, #64 @ 0x40 - 8007bd2: 687b ldr r3, [r7, #4] - 8007bd4: 601a str r2, [r3, #0] - USBx->GOTGCTL |= USB_OTG_GOTGCTL_BVALOVAL; - 8007bd6: 687b ldr r3, [r7, #4] - 8007bd8: 681b ldr r3, [r3, #0] - 8007bda: f043 0280 orr.w r2, r3, #128 @ 0x80 - 8007bde: 687b ldr r3, [r7, #4] - 8007be0: 601a str r2, [r3, #0] - 8007be2: e005 b.n 8007bf0 - } - else - { - /* Enable HW VBUS sensing */ - USBx->GCCFG |= USB_OTG_GCCFG_VBDEN; - 8007be4: 687b ldr r3, [r7, #4] - 8007be6: 6b9b ldr r3, [r3, #56] @ 0x38 - 8007be8: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 - 8007bec: 687b ldr r3, [r7, #4] - 8007bee: 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; - 8007bf0: 68fb ldr r3, [r7, #12] - 8007bf2: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 8007bf6: 461a mov r2, r3 - 8007bf8: 2300 movs r3, #0 - 8007bfa: 6013 str r3, [r2, #0] - - if (cfg.phy_itface == USB_OTG_ULPI_PHY) - 8007bfc: f897 3029 ldrb.w r3, [r7, #41] @ 0x29 - 8007c00: 2b01 cmp r3, #1 - 8007c02: d10d bne.n 8007c20 - { - if (cfg.speed == USBD_HS_SPEED) - 8007c04: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 - 8007c08: 2b00 cmp r3, #0 - 8007c0a: d104 bne.n 8007c16 - { - /* Set Core speed to High speed mode */ - (void)USB_SetDevSpeed(USBx, USB_OTG_SPEED_HIGH); - 8007c0c: 2100 movs r1, #0 - 8007c0e: 6878 ldr r0, [r7, #4] - 8007c10: f000 f968 bl 8007ee4 - 8007c14: e008 b.n 8007c28 - } - else - { - /* Set Core speed to Full speed mode */ - (void)USB_SetDevSpeed(USBx, USB_OTG_SPEED_HIGH_IN_FULL); - 8007c16: 2101 movs r1, #1 - 8007c18: 6878 ldr r0, [r7, #4] - 8007c1a: f000 f963 bl 8007ee4 - 8007c1e: e003 b.n 8007c28 - } - } - else - { - /* Set Core speed to Full speed mode */ - (void)USB_SetDevSpeed(USBx, USB_OTG_SPEED_FULL); - 8007c20: 2103 movs r1, #3 - 8007c22: 6878 ldr r0, [r7, #4] - 8007c24: f000 f95e bl 8007ee4 - } - - /* Flush the FIFOs */ - if (USB_FlushTxFifo(USBx, 0x10U) != HAL_OK) /* all Tx FIFOs */ - 8007c28: 2110 movs r1, #16 - 8007c2a: 6878 ldr r0, [r7, #4] - 8007c2c: f000 f8fa bl 8007e24 - 8007c30: 4603 mov r3, r0 - 8007c32: 2b00 cmp r3, #0 - 8007c34: d001 beq.n 8007c3a - { - ret = HAL_ERROR; - 8007c36: 2301 movs r3, #1 - 8007c38: 75fb strb r3, [r7, #23] - } - - if (USB_FlushRxFifo(USBx) != HAL_OK) - 8007c3a: 6878 ldr r0, [r7, #4] - 8007c3c: f000 f924 bl 8007e88 - 8007c40: 4603 mov r3, r0 - 8007c42: 2b00 cmp r3, #0 - 8007c44: d001 beq.n 8007c4a - { - ret = HAL_ERROR; - 8007c46: 2301 movs r3, #1 - 8007c48: 75fb strb r3, [r7, #23] - } - - /* Clear all pending Device Interrupts */ - USBx_DEVICE->DIEPMSK = 0U; - 8007c4a: 68fb ldr r3, [r7, #12] - 8007c4c: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007c50: 461a mov r2, r3 - 8007c52: 2300 movs r3, #0 - 8007c54: 6113 str r3, [r2, #16] - USBx_DEVICE->DOEPMSK = 0U; - 8007c56: 68fb ldr r3, [r7, #12] - 8007c58: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007c5c: 461a mov r2, r3 - 8007c5e: 2300 movs r3, #0 - 8007c60: 6153 str r3, [r2, #20] - USBx_DEVICE->DAINTMSK = 0U; - 8007c62: 68fb ldr r3, [r7, #12] - 8007c64: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007c68: 461a mov r2, r3 - 8007c6a: 2300 movs r3, #0 - 8007c6c: 61d3 str r3, [r2, #28] - - for (i = 0U; i < cfg.dev_endpoints; i++) - 8007c6e: 2300 movs r3, #0 - 8007c70: 613b str r3, [r7, #16] - 8007c72: e043 b.n 8007cfc - { - if ((USBx_INEP(i)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) - 8007c74: 693b ldr r3, [r7, #16] - 8007c76: 015a lsls r2, r3, #5 - 8007c78: 68fb ldr r3, [r7, #12] - 8007c7a: 4413 add r3, r2 - 8007c7c: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007c80: 681b ldr r3, [r3, #0] - 8007c82: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8007c86: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8007c8a: d118 bne.n 8007cbe - { - if (i == 0U) - 8007c8c: 693b ldr r3, [r7, #16] - 8007c8e: 2b00 cmp r3, #0 - 8007c90: d10a bne.n 8007ca8 - { - USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_SNAK; - 8007c92: 693b ldr r3, [r7, #16] - 8007c94: 015a lsls r2, r3, #5 - 8007c96: 68fb ldr r3, [r7, #12] - 8007c98: 4413 add r3, r2 - 8007c9a: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007c9e: 461a mov r2, r3 - 8007ca0: f04f 6300 mov.w r3, #134217728 @ 0x8000000 - 8007ca4: 6013 str r3, [r2, #0] - 8007ca6: e013 b.n 8007cd0 - } - else - { - USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_EPDIS | USB_OTG_DIEPCTL_SNAK; - 8007ca8: 693b ldr r3, [r7, #16] - 8007caa: 015a lsls r2, r3, #5 - 8007cac: 68fb ldr r3, [r7, #12] - 8007cae: 4413 add r3, r2 - 8007cb0: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007cb4: 461a mov r2, r3 - 8007cb6: f04f 4390 mov.w r3, #1207959552 @ 0x48000000 - 8007cba: 6013 str r3, [r2, #0] - 8007cbc: e008 b.n 8007cd0 - } - } - else - { - USBx_INEP(i)->DIEPCTL = 0U; - 8007cbe: 693b ldr r3, [r7, #16] - 8007cc0: 015a lsls r2, r3, #5 - 8007cc2: 68fb ldr r3, [r7, #12] - 8007cc4: 4413 add r3, r2 - 8007cc6: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007cca: 461a mov r2, r3 - 8007ccc: 2300 movs r3, #0 - 8007cce: 6013 str r3, [r2, #0] - } - - USBx_INEP(i)->DIEPTSIZ = 0U; - 8007cd0: 693b ldr r3, [r7, #16] +08007c1c : + 8007c1c: b480 push {r7} + 8007c1e: b085 sub sp, #20 + 8007c20: af00 add r7, sp, #0 + 8007c22: 6078 str r0, [r7, #4] + 8007c24: 6039 str r1, [r7, #0] + 8007c26: 687b ldr r3, [r7, #4] + 8007c28: 60fb str r3, [r7, #12] + 8007c2a: 683b ldr r3, [r7, #0] + 8007c2c: 781b ldrb r3, [r3, #0] + 8007c2e: 60bb str r3, [r7, #8] + 8007c30: 683b ldr r3, [r7, #0] + 8007c32: 785b ldrb r3, [r3, #1] + 8007c34: 2b01 cmp r3, #1 + 8007c36: d13a bne.n 8007cae + 8007c38: 68fb ldr r3, [r7, #12] + 8007c3a: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007c3e: 69da ldr r2, [r3, #28] + 8007c40: 683b ldr r3, [r7, #0] + 8007c42: 781b ldrb r3, [r3, #0] + 8007c44: f003 030f and.w r3, r3, #15 + 8007c48: 2101 movs r1, #1 + 8007c4a: fa01 f303 lsl.w r3, r1, r3 + 8007c4e: b29b uxth r3, r3 + 8007c50: 68f9 ldr r1, [r7, #12] + 8007c52: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8007c56: 4313 orrs r3, r2 + 8007c58: 61cb str r3, [r1, #28] + 8007c5a: 68bb ldr r3, [r7, #8] + 8007c5c: 015a lsls r2, r3, #5 + 8007c5e: 68fb ldr r3, [r7, #12] + 8007c60: 4413 add r3, r2 + 8007c62: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007c66: 681b ldr r3, [r3, #0] + 8007c68: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 8007c6c: 2b00 cmp r3, #0 + 8007c6e: d155 bne.n 8007d1c + 8007c70: 68bb ldr r3, [r7, #8] + 8007c72: 015a lsls r2, r3, #5 + 8007c74: 68fb ldr r3, [r7, #12] + 8007c76: 4413 add r3, r2 + 8007c78: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007c7c: 681a ldr r2, [r3, #0] + 8007c7e: 683b ldr r3, [r7, #0] + 8007c80: 689b ldr r3, [r3, #8] + 8007c82: f3c3 010a ubfx r1, r3, #0, #11 + 8007c86: 683b ldr r3, [r7, #0] + 8007c88: 791b ldrb r3, [r3, #4] + 8007c8a: 049b lsls r3, r3, #18 + 8007c8c: 4319 orrs r1, r3 + 8007c8e: 68bb ldr r3, [r7, #8] + 8007c90: 059b lsls r3, r3, #22 + 8007c92: 430b orrs r3, r1 + 8007c94: 4313 orrs r3, r2 + 8007c96: 68ba ldr r2, [r7, #8] + 8007c98: 0151 lsls r1, r2, #5 + 8007c9a: 68fa ldr r2, [r7, #12] + 8007c9c: 440a add r2, r1 + 8007c9e: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007ca2: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8007ca6: f443 4300 orr.w r3, r3, #32768 @ 0x8000 + 8007caa: 6013 str r3, [r2, #0] + 8007cac: e036 b.n 8007d1c + 8007cae: 68fb ldr r3, [r7, #12] + 8007cb0: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007cb4: 69da ldr r2, [r3, #28] + 8007cb6: 683b ldr r3, [r7, #0] + 8007cb8: 781b ldrb r3, [r3, #0] + 8007cba: f003 030f and.w r3, r3, #15 + 8007cbe: 2101 movs r1, #1 + 8007cc0: fa01 f303 lsl.w r3, r1, r3 + 8007cc4: 041b lsls r3, r3, #16 + 8007cc6: 68f9 ldr r1, [r7, #12] + 8007cc8: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8007ccc: 4313 orrs r3, r2 + 8007cce: 61cb str r3, [r1, #28] + 8007cd0: 68bb ldr r3, [r7, #8] 8007cd2: 015a lsls r2, r3, #5 8007cd4: 68fb ldr r3, [r7, #12] 8007cd6: 4413 add r3, r2 - 8007cd8: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007cdc: 461a mov r2, r3 - 8007cde: 2300 movs r3, #0 - 8007ce0: 6113 str r3, [r2, #16] - USBx_INEP(i)->DIEPINT = 0xFB7FU; - 8007ce2: 693b ldr r3, [r7, #16] - 8007ce4: 015a lsls r2, r3, #5 - 8007ce6: 68fb ldr r3, [r7, #12] - 8007ce8: 4413 add r3, r2 - 8007cea: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007cee: 461a mov r2, r3 - 8007cf0: f64f 337f movw r3, #64383 @ 0xfb7f - 8007cf4: 6093 str r3, [r2, #8] - for (i = 0U; i < cfg.dev_endpoints; i++) - 8007cf6: 693b ldr r3, [r7, #16] - 8007cf8: 3301 adds r3, #1 - 8007cfa: 613b str r3, [r7, #16] - 8007cfc: f897 3024 ldrb.w r3, [r7, #36] @ 0x24 - 8007d00: 461a mov r2, r3 - 8007d02: 693b ldr r3, [r7, #16] - 8007d04: 4293 cmp r3, r2 - 8007d06: d3b5 bcc.n 8007c74 - } - - for (i = 0U; i < cfg.dev_endpoints; i++) - 8007d08: 2300 movs r3, #0 - 8007d0a: 613b str r3, [r7, #16] - 8007d0c: e043 b.n 8007d96 - { - if ((USBx_OUTEP(i)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) - 8007d0e: 693b ldr r3, [r7, #16] - 8007d10: 015a lsls r2, r3, #5 - 8007d12: 68fb ldr r3, [r7, #12] - 8007d14: 4413 add r3, r2 - 8007d16: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007d1a: 681b ldr r3, [r3, #0] - 8007d1c: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8007d20: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8007d24: d118 bne.n 8007d58 - { - if (i == 0U) - 8007d26: 693b ldr r3, [r7, #16] - 8007d28: 2b00 cmp r3, #0 - 8007d2a: d10a bne.n 8007d42 - { - USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_SNAK; - 8007d2c: 693b ldr r3, [r7, #16] - 8007d2e: 015a lsls r2, r3, #5 - 8007d30: 68fb ldr r3, [r7, #12] - 8007d32: 4413 add r3, r2 - 8007d34: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007d38: 461a mov r2, r3 - 8007d3a: f04f 6300 mov.w r3, #134217728 @ 0x8000000 - 8007d3e: 6013 str r3, [r2, #0] - 8007d40: e013 b.n 8007d6a - } - else - { - USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_EPDIS | USB_OTG_DOEPCTL_SNAK; - 8007d42: 693b ldr r3, [r7, #16] - 8007d44: 015a lsls r2, r3, #5 - 8007d46: 68fb ldr r3, [r7, #12] - 8007d48: 4413 add r3, r2 - 8007d4a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007d4e: 461a mov r2, r3 - 8007d50: f04f 4390 mov.w r3, #1207959552 @ 0x48000000 - 8007d54: 6013 str r3, [r2, #0] - 8007d56: e008 b.n 8007d6a - } - } - else - { - USBx_OUTEP(i)->DOEPCTL = 0U; - 8007d58: 693b ldr r3, [r7, #16] - 8007d5a: 015a lsls r2, r3, #5 - 8007d5c: 68fb ldr r3, [r7, #12] - 8007d5e: 4413 add r3, r2 - 8007d60: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007d64: 461a mov r2, r3 - 8007d66: 2300 movs r3, #0 - 8007d68: 6013 str r3, [r2, #0] - } - - USBx_OUTEP(i)->DOEPTSIZ = 0U; - 8007d6a: 693b ldr r3, [r7, #16] - 8007d6c: 015a lsls r2, r3, #5 - 8007d6e: 68fb ldr r3, [r7, #12] - 8007d70: 4413 add r3, r2 - 8007d72: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007d76: 461a mov r2, r3 - 8007d78: 2300 movs r3, #0 - 8007d7a: 6113 str r3, [r2, #16] - USBx_OUTEP(i)->DOEPINT = 0xFB7FU; - 8007d7c: 693b ldr r3, [r7, #16] - 8007d7e: 015a lsls r2, r3, #5 - 8007d80: 68fb ldr r3, [r7, #12] - 8007d82: 4413 add r3, r2 - 8007d84: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8007d88: 461a mov r2, r3 - 8007d8a: f64f 337f movw r3, #64383 @ 0xfb7f - 8007d8e: 6093 str r3, [r2, #8] - for (i = 0U; i < cfg.dev_endpoints; i++) - 8007d90: 693b ldr r3, [r7, #16] - 8007d92: 3301 adds r3, #1 - 8007d94: 613b str r3, [r7, #16] - 8007d96: f897 3024 ldrb.w r3, [r7, #36] @ 0x24 - 8007d9a: 461a mov r2, r3 - 8007d9c: 693b ldr r3, [r7, #16] - 8007d9e: 4293 cmp r3, r2 - 8007da0: d3b5 bcc.n 8007d0e - } - - USBx_DEVICE->DIEPMSK &= ~(USB_OTG_DIEPMSK_TXFURM); - 8007da2: 68fb ldr r3, [r7, #12] - 8007da4: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007da8: 691b ldr r3, [r3, #16] - 8007daa: 68fa ldr r2, [r7, #12] - 8007dac: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8007db0: f423 7380 bic.w r3, r3, #256 @ 0x100 - 8007db4: 6113 str r3, [r2, #16] - - /* Disable all interrupts. */ - USBx->GINTMSK = 0U; - 8007db6: 687b ldr r3, [r7, #4] - 8007db8: 2200 movs r2, #0 - 8007dba: 619a str r2, [r3, #24] - - /* Clear any pending interrupts */ - USBx->GINTSTS = 0xBFFFFFFFU; - 8007dbc: 687b ldr r3, [r7, #4] - 8007dbe: f06f 4280 mvn.w r2, #1073741824 @ 0x40000000 - 8007dc2: 615a str r2, [r3, #20] - - /* Enable the common interrupts */ - if (cfg.dma_enable == 0U) - 8007dc4: f897 3026 ldrb.w r3, [r7, #38] @ 0x26 - 8007dc8: 2b00 cmp r3, #0 - 8007dca: d105 bne.n 8007dd8 - { - USBx->GINTMSK |= USB_OTG_GINTMSK_RXFLVLM; - 8007dcc: 687b ldr r3, [r7, #4] - 8007dce: 699b ldr r3, [r3, #24] - 8007dd0: f043 0210 orr.w r2, r3, #16 - 8007dd4: 687b ldr r3, [r7, #4] - 8007dd6: 619a str r2, [r3, #24] - } - - /* Enable interrupts matching to the Device mode ONLY */ - USBx->GINTMSK |= USB_OTG_GINTMSK_USBSUSPM | USB_OTG_GINTMSK_USBRST | - 8007dd8: 687b ldr r3, [r7, #4] - 8007dda: 699a ldr r2, [r3, #24] - 8007ddc: 4b10 ldr r3, [pc, #64] @ (8007e20 ) - 8007dde: 4313 orrs r3, r2 - 8007de0: 687a ldr r2, [r7, #4] - 8007de2: 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) - 8007de4: f897 302a ldrb.w r3, [r7, #42] @ 0x2a - 8007de8: 2b00 cmp r3, #0 - 8007dea: d005 beq.n 8007df8 - { - USBx->GINTMSK |= USB_OTG_GINTMSK_SOFM; - 8007dec: 687b ldr r3, [r7, #4] - 8007dee: 699b ldr r3, [r3, #24] - 8007df0: f043 0208 orr.w r2, r3, #8 - 8007df4: 687b ldr r3, [r7, #4] - 8007df6: 619a str r2, [r3, #24] - } - - if (cfg.vbus_sensing_enable == 1U) - 8007df8: f897 302e ldrb.w r3, [r7, #46] @ 0x2e - 8007dfc: 2b01 cmp r3, #1 - 8007dfe: d107 bne.n 8007e10 - { - USBx->GINTMSK |= (USB_OTG_GINTMSK_SRQIM | USB_OTG_GINTMSK_OTGINT); - 8007e00: 687b ldr r3, [r7, #4] - 8007e02: 699b ldr r3, [r3, #24] - 8007e04: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 8007e08: f043 0304 orr.w r3, r3, #4 - 8007e0c: 687a ldr r2, [r7, #4] - 8007e0e: 6193 str r3, [r2, #24] - } - - return ret; - 8007e10: 7dfb ldrb r3, [r7, #23] -} - 8007e12: 4618 mov r0, r3 - 8007e14: 3718 adds r7, #24 - 8007e16: 46bd mov sp, r7 - 8007e18: e8bd 4080 ldmia.w sp!, {r7, lr} - 8007e1c: b004 add sp, #16 - 8007e1e: 4770 bx lr - 8007e20: 803c3800 .word 0x803c3800 - -08007e24 : - * 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) -{ - 8007e24: b480 push {r7} - 8007e26: b085 sub sp, #20 - 8007e28: af00 add r7, sp, #0 - 8007e2a: 6078 str r0, [r7, #4] - 8007e2c: 6039 str r1, [r7, #0] - __IO uint32_t count = 0U; - 8007e2e: 2300 movs r3, #0 - 8007e30: 60fb str r3, [r7, #12] - - /* Wait for AHB master IDLE state. */ - do - { - count++; - 8007e32: 68fb ldr r3, [r7, #12] - 8007e34: 3301 adds r3, #1 - 8007e36: 60fb str r3, [r7, #12] - - if (count > HAL_USB_TIMEOUT) - 8007e38: 68fb ldr r3, [r7, #12] - 8007e3a: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 8007e3e: d901 bls.n 8007e44 - { - return HAL_TIMEOUT; - 8007e40: 2303 movs r3, #3 - 8007e42: e01b b.n 8007e7c - } - } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_AHBIDL) == 0U); - 8007e44: 687b ldr r3, [r7, #4] - 8007e46: 691b ldr r3, [r3, #16] - 8007e48: 2b00 cmp r3, #0 - 8007e4a: daf2 bge.n 8007e32 - - /* Flush TX Fifo */ - count = 0U; - 8007e4c: 2300 movs r3, #0 - 8007e4e: 60fb str r3, [r7, #12] - USBx->GRSTCTL = (USB_OTG_GRSTCTL_TXFFLSH | (num << 6)); - 8007e50: 683b ldr r3, [r7, #0] - 8007e52: 019b lsls r3, r3, #6 - 8007e54: f043 0220 orr.w r2, r3, #32 - 8007e58: 687b ldr r3, [r7, #4] - 8007e5a: 611a str r2, [r3, #16] - - do - { - count++; - 8007e5c: 68fb ldr r3, [r7, #12] - 8007e5e: 3301 adds r3, #1 - 8007e60: 60fb str r3, [r7, #12] - - if (count > HAL_USB_TIMEOUT) - 8007e62: 68fb ldr r3, [r7, #12] - 8007e64: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 8007e68: d901 bls.n 8007e6e - { - return HAL_TIMEOUT; - 8007e6a: 2303 movs r3, #3 - 8007e6c: e006 b.n 8007e7c - } - } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_TXFFLSH) == USB_OTG_GRSTCTL_TXFFLSH); - 8007e6e: 687b ldr r3, [r7, #4] - 8007e70: 691b ldr r3, [r3, #16] - 8007e72: f003 0320 and.w r3, r3, #32 - 8007e76: 2b20 cmp r3, #32 - 8007e78: d0f0 beq.n 8007e5c - - return HAL_OK; - 8007e7a: 2300 movs r3, #0 -} - 8007e7c: 4618 mov r0, r3 - 8007e7e: 3714 adds r7, #20 - 8007e80: 46bd mov sp, r7 - 8007e82: f85d 7b04 ldr.w r7, [sp], #4 - 8007e86: 4770 bx lr - -08007e88 : - * @brief USB_FlushRxFifo Flush Rx FIFO - * @param USBx Selected device - * @retval HAL status - */ -HAL_StatusTypeDef USB_FlushRxFifo(USB_OTG_GlobalTypeDef *USBx) -{ - 8007e88: b480 push {r7} - 8007e8a: b085 sub sp, #20 - 8007e8c: af00 add r7, sp, #0 - 8007e8e: 6078 str r0, [r7, #4] - __IO uint32_t count = 0U; - 8007e90: 2300 movs r3, #0 - 8007e92: 60fb str r3, [r7, #12] - - /* Wait for AHB master IDLE state. */ - do - { - count++; - 8007e94: 68fb ldr r3, [r7, #12] - 8007e96: 3301 adds r3, #1 - 8007e98: 60fb str r3, [r7, #12] - - if (count > HAL_USB_TIMEOUT) - 8007e9a: 68fb ldr r3, [r7, #12] - 8007e9c: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 8007ea0: d901 bls.n 8007ea6 - { - return HAL_TIMEOUT; - 8007ea2: 2303 movs r3, #3 - 8007ea4: e018 b.n 8007ed8 - } - } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_AHBIDL) == 0U); - 8007ea6: 687b ldr r3, [r7, #4] - 8007ea8: 691b ldr r3, [r3, #16] - 8007eaa: 2b00 cmp r3, #0 - 8007eac: daf2 bge.n 8007e94 - - /* Flush RX Fifo */ - count = 0U; - 8007eae: 2300 movs r3, #0 - 8007eb0: 60fb str r3, [r7, #12] - USBx->GRSTCTL = USB_OTG_GRSTCTL_RXFFLSH; - 8007eb2: 687b ldr r3, [r7, #4] - 8007eb4: 2210 movs r2, #16 - 8007eb6: 611a str r2, [r3, #16] - - do - { - count++; - 8007eb8: 68fb ldr r3, [r7, #12] - 8007eba: 3301 adds r3, #1 - 8007ebc: 60fb str r3, [r7, #12] - - if (count > HAL_USB_TIMEOUT) - 8007ebe: 68fb ldr r3, [r7, #12] - 8007ec0: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 8007ec4: d901 bls.n 8007eca - { - return HAL_TIMEOUT; - 8007ec6: 2303 movs r3, #3 - 8007ec8: e006 b.n 8007ed8 - } - } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_RXFFLSH) == USB_OTG_GRSTCTL_RXFFLSH); - 8007eca: 687b ldr r3, [r7, #4] - 8007ecc: 691b ldr r3, [r3, #16] - 8007ece: f003 0310 and.w r3, r3, #16 - 8007ed2: 2b10 cmp r3, #16 - 8007ed4: d0f0 beq.n 8007eb8 - - return HAL_OK; - 8007ed6: 2300 movs r3, #0 -} - 8007ed8: 4618 mov r0, r3 - 8007eda: 3714 adds r7, #20 - 8007edc: 46bd mov sp, r7 - 8007ede: f85d 7b04 ldr.w r7, [sp], #4 - 8007ee2: 4770 bx lr - -08007ee4 : - * @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) -{ - 8007ee4: b480 push {r7} - 8007ee6: b085 sub sp, #20 - 8007ee8: af00 add r7, sp, #0 - 8007eea: 6078 str r0, [r7, #4] - 8007eec: 460b mov r3, r1 - 8007eee: 70fb strb r3, [r7, #3] - uint32_t USBx_BASE = (uint32_t)USBx; - 8007ef0: 687b ldr r3, [r7, #4] - 8007ef2: 60fb str r3, [r7, #12] - - USBx_DEVICE->DCFG |= speed; - 8007ef4: 68fb ldr r3, [r7, #12] - 8007ef6: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007efa: 681a ldr r2, [r3, #0] - 8007efc: 78fb ldrb r3, [r7, #3] - 8007efe: 68f9 ldr r1, [r7, #12] - 8007f00: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8007f04: 4313 orrs r3, r2 - 8007f06: 600b str r3, [r1, #0] - return HAL_OK; - 8007f08: 2300 movs r3, #0 -} - 8007f0a: 4618 mov r0, r3 - 8007f0c: 3714 adds r7, #20 - 8007f0e: 46bd mov sp, r7 - 8007f10: f85d 7b04 ldr.w r7, [sp], #4 - 8007f14: 4770 bx lr - -08007f16 : - * 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) -{ - 8007f16: b480 push {r7} - 8007f18: b087 sub sp, #28 - 8007f1a: af00 add r7, sp, #0 - 8007f1c: 6078 str r0, [r7, #4] - uint32_t USBx_BASE = (uint32_t)USBx; - 8007f1e: 687b ldr r3, [r7, #4] - 8007f20: 613b str r3, [r7, #16] - uint8_t speed; - uint32_t DevEnumSpeed = USBx_DEVICE->DSTS & USB_OTG_DSTS_ENUMSPD; - 8007f22: 693b ldr r3, [r7, #16] - 8007f24: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007f28: 689b ldr r3, [r3, #8] - 8007f2a: f003 0306 and.w r3, r3, #6 - 8007f2e: 60fb str r3, [r7, #12] - - if (DevEnumSpeed == DSTS_ENUMSPD_HS_PHY_30MHZ_OR_60MHZ) - 8007f30: 68fb ldr r3, [r7, #12] - 8007f32: 2b00 cmp r3, #0 - 8007f34: d102 bne.n 8007f3c - { - speed = USBD_HS_SPEED; - 8007f36: 2300 movs r3, #0 - 8007f38: 75fb strb r3, [r7, #23] - 8007f3a: e00a b.n 8007f52 - } - else if ((DevEnumSpeed == DSTS_ENUMSPD_FS_PHY_30MHZ_OR_60MHZ) || - 8007f3c: 68fb ldr r3, [r7, #12] - 8007f3e: 2b02 cmp r3, #2 - 8007f40: d002 beq.n 8007f48 - 8007f42: 68fb ldr r3, [r7, #12] - 8007f44: 2b06 cmp r3, #6 - 8007f46: d102 bne.n 8007f4e - (DevEnumSpeed == DSTS_ENUMSPD_FS_PHY_48MHZ)) - { - speed = USBD_FS_SPEED; - 8007f48: 2302 movs r3, #2 - 8007f4a: 75fb strb r3, [r7, #23] - 8007f4c: e001 b.n 8007f52 - } - else - { - speed = 0xFU; - 8007f4e: 230f movs r3, #15 - 8007f50: 75fb strb r3, [r7, #23] - } - - return speed; - 8007f52: 7dfb ldrb r3, [r7, #23] -} - 8007f54: 4618 mov r0, r3 - 8007f56: 371c adds r7, #28 - 8007f58: 46bd mov sp, r7 - 8007f5a: f85d 7b04 ldr.w r7, [sp], #4 - 8007f5e: 4770 bx lr - -08007f60 : - * @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) -{ - 8007f60: b480 push {r7} - 8007f62: b085 sub sp, #20 - 8007f64: af00 add r7, sp, #0 - 8007f66: 6078 str r0, [r7, #4] - 8007f68: 6039 str r1, [r7, #0] - uint32_t USBx_BASE = (uint32_t)USBx; - 8007f6a: 687b ldr r3, [r7, #4] - 8007f6c: 60fb str r3, [r7, #12] - uint32_t epnum = (uint32_t)ep->num; - 8007f6e: 683b ldr r3, [r7, #0] - 8007f70: 781b ldrb r3, [r3, #0] - 8007f72: 60bb str r3, [r7, #8] - - if (ep->is_in == 1U) - 8007f74: 683b ldr r3, [r7, #0] - 8007f76: 785b ldrb r3, [r3, #1] - 8007f78: 2b01 cmp r3, #1 - 8007f7a: d13a bne.n 8007ff2 - { - USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK)); - 8007f7c: 68fb ldr r3, [r7, #12] - 8007f7e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007f82: 69da ldr r2, [r3, #28] - 8007f84: 683b ldr r3, [r7, #0] - 8007f86: 781b ldrb r3, [r3, #0] - 8007f88: f003 030f and.w r3, r3, #15 - 8007f8c: 2101 movs r1, #1 - 8007f8e: fa01 f303 lsl.w r3, r1, r3 - 8007f92: b29b uxth r3, r3 - 8007f94: 68f9 ldr r1, [r7, #12] - 8007f96: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8007f9a: 4313 orrs r3, r2 - 8007f9c: 61cb str r3, [r1, #28] - - if ((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_USBAEP) == 0U) - 8007f9e: 68bb ldr r3, [r7, #8] - 8007fa0: 015a lsls r2, r3, #5 - 8007fa2: 68fb ldr r3, [r7, #12] - 8007fa4: 4413 add r3, r2 - 8007fa6: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007faa: 681b ldr r3, [r3, #0] - 8007fac: f403 4300 and.w r3, r3, #32768 @ 0x8000 - 8007fb0: 2b00 cmp r3, #0 - 8007fb2: d155 bne.n 8008060 - { - USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) | - 8007fb4: 68bb ldr r3, [r7, #8] - 8007fb6: 015a lsls r2, r3, #5 - 8007fb8: 68fb ldr r3, [r7, #12] - 8007fba: 4413 add r3, r2 - 8007fbc: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8007fc0: 681a ldr r2, [r3, #0] - 8007fc2: 683b ldr r3, [r7, #0] - 8007fc4: 689b ldr r3, [r3, #8] - 8007fc6: f3c3 010a ubfx r1, r3, #0, #11 - ((uint32_t)ep->type << 18) | (epnum << 22) | - 8007fca: 683b ldr r3, [r7, #0] - 8007fcc: 791b ldrb r3, [r3, #4] - 8007fce: 049b lsls r3, r3, #18 - USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) | - 8007fd0: 4319 orrs r1, r3 - ((uint32_t)ep->type << 18) | (epnum << 22) | - 8007fd2: 68bb ldr r3, [r7, #8] - 8007fd4: 059b lsls r3, r3, #22 - 8007fd6: 430b orrs r3, r1 - USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) | - 8007fd8: 4313 orrs r3, r2 - 8007fda: 68ba ldr r2, [r7, #8] - 8007fdc: 0151 lsls r1, r2, #5 - 8007fde: 68fa ldr r2, [r7, #12] - 8007fe0: 440a add r2, r1 - 8007fe2: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8007fe6: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8007fea: f443 4300 orr.w r3, r3, #32768 @ 0x8000 - 8007fee: 6013 str r3, [r2, #0] - 8007ff0: e036 b.n 8008060 - USB_OTG_DIEPCTL_USBAEP; - } - } - else - { - USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16); - 8007ff2: 68fb ldr r3, [r7, #12] - 8007ff4: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007ff8: 69da ldr r2, [r3, #28] - 8007ffa: 683b ldr r3, [r7, #0] - 8007ffc: 781b ldrb r3, [r3, #0] - 8007ffe: f003 030f and.w r3, r3, #15 - 8008002: 2101 movs r1, #1 - 8008004: fa01 f303 lsl.w r3, r1, r3 - 8008008: 041b lsls r3, r3, #16 - 800800a: 68f9 ldr r1, [r7, #12] - 800800c: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8008010: 4313 orrs r3, r2 - 8008012: 61cb str r3, [r1, #28] - - if (((USBx_OUTEP(epnum)->DOEPCTL) & USB_OTG_DOEPCTL_USBAEP) == 0U) - 8008014: 68bb ldr r3, [r7, #8] - 8008016: 015a lsls r2, r3, #5 - 8008018: 68fb ldr r3, [r7, #12] - 800801a: 4413 add r3, r2 - 800801c: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008020: 681b ldr r3, [r3, #0] - 8008022: f403 4300 and.w r3, r3, #32768 @ 0x8000 - 8008026: 2b00 cmp r3, #0 - 8008028: d11a bne.n 8008060 - { - USBx_OUTEP(epnum)->DOEPCTL |= (ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ) | - 800802a: 68bb ldr r3, [r7, #8] - 800802c: 015a lsls r2, r3, #5 - 800802e: 68fb ldr r3, [r7, #12] - 8008030: 4413 add r3, r2 - 8008032: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008036: 681a ldr r2, [r3, #0] - 8008038: 683b ldr r3, [r7, #0] - 800803a: 689b ldr r3, [r3, #8] - 800803c: f3c3 010a ubfx r1, r3, #0, #11 - ((uint32_t)ep->type << 18) | - 8008040: 683b ldr r3, [r7, #0] - 8008042: 791b ldrb r3, [r3, #4] - 8008044: 049b lsls r3, r3, #18 - USBx_OUTEP(epnum)->DOEPCTL |= (ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ) | - 8008046: 430b orrs r3, r1 - 8008048: 4313 orrs r3, r2 - 800804a: 68ba ldr r2, [r7, #8] - 800804c: 0151 lsls r1, r2, #5 - 800804e: 68fa ldr r2, [r7, #12] - 8008050: 440a add r2, r1 - 8008052: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008056: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 800805a: f443 4300 orr.w r3, r3, #32768 @ 0x8000 - 800805e: 6013 str r3, [r2, #0] - USB_OTG_DIEPCTL_SD0PID_SEVNFRM | - USB_OTG_DOEPCTL_USBAEP; - } - } - return HAL_OK; - 8008060: 2300 movs r3, #0 -} - 8008062: 4618 mov r0, r3 - 8008064: 3714 adds r7, #20 - 8008066: 46bd mov sp, r7 - 8008068: f85d 7b04 ldr.w r7, [sp], #4 - 800806c: 4770 bx lr + 8007cd8: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007cdc: 681b ldr r3, [r3, #0] + 8007cde: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 8007ce2: 2b00 cmp r3, #0 + 8007ce4: d11a bne.n 8007d1c + 8007ce6: 68bb ldr r3, [r7, #8] + 8007ce8: 015a lsls r2, r3, #5 + 8007cea: 68fb ldr r3, [r7, #12] + 8007cec: 4413 add r3, r2 + 8007cee: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007cf2: 681a ldr r2, [r3, #0] + 8007cf4: 683b ldr r3, [r7, #0] + 8007cf6: 689b ldr r3, [r3, #8] + 8007cf8: f3c3 010a ubfx r1, r3, #0, #11 + 8007cfc: 683b ldr r3, [r7, #0] + 8007cfe: 791b ldrb r3, [r3, #4] + 8007d00: 049b lsls r3, r3, #18 + 8007d02: 430b orrs r3, r1 + 8007d04: 4313 orrs r3, r2 + 8007d06: 68ba ldr r2, [r7, #8] + 8007d08: 0151 lsls r1, r2, #5 + 8007d0a: 68fa ldr r2, [r7, #12] + 8007d0c: 440a add r2, r1 + 8007d0e: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8007d12: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8007d16: f443 4300 orr.w r3, r3, #32768 @ 0x8000 + 8007d1a: 6013 str r3, [r2, #0] + 8007d1c: 2300 movs r3, #0 + 8007d1e: 4618 mov r0, r3 + 8007d20: 3714 adds r7, #20 + 8007d22: 46bd mov sp, r7 + 8007d24: f85d 7b04 ldr.w r7, [sp], #4 + 8007d28: 4770 bx lr ... -08008070 : - * @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) -{ - 8008070: b480 push {r7} - 8008072: b085 sub sp, #20 - 8008074: af00 add r7, sp, #0 - 8008076: 6078 str r0, [r7, #4] - 8008078: 6039 str r1, [r7, #0] - uint32_t USBx_BASE = (uint32_t)USBx; - 800807a: 687b ldr r3, [r7, #4] - 800807c: 60fb str r3, [r7, #12] - uint32_t epnum = (uint32_t)ep->num; - 800807e: 683b ldr r3, [r7, #0] - 8008080: 781b ldrb r3, [r3, #0] - 8008082: 60bb str r3, [r7, #8] +08007d2c : + 8007d2c: b480 push {r7} + 8007d2e: b085 sub sp, #20 + 8007d30: af00 add r7, sp, #0 + 8007d32: 6078 str r0, [r7, #4] + 8007d34: 6039 str r1, [r7, #0] + 8007d36: 687b ldr r3, [r7, #4] + 8007d38: 60fb str r3, [r7, #12] + 8007d3a: 683b ldr r3, [r7, #0] + 8007d3c: 781b ldrb r3, [r3, #0] + 8007d3e: 60bb str r3, [r7, #8] + 8007d40: 683b ldr r3, [r7, #0] + 8007d42: 785b ldrb r3, [r3, #1] + 8007d44: 2b01 cmp r3, #1 + 8007d46: d161 bne.n 8007e0c + 8007d48: 68bb ldr r3, [r7, #8] + 8007d4a: 015a lsls r2, r3, #5 + 8007d4c: 68fb ldr r3, [r7, #12] + 8007d4e: 4413 add r3, r2 + 8007d50: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007d54: 681b ldr r3, [r3, #0] + 8007d56: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8007d5a: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8007d5e: d11f bne.n 8007da0 + 8007d60: 68bb ldr r3, [r7, #8] + 8007d62: 015a lsls r2, r3, #5 + 8007d64: 68fb ldr r3, [r7, #12] + 8007d66: 4413 add r3, r2 + 8007d68: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007d6c: 681b ldr r3, [r3, #0] + 8007d6e: 68ba ldr r2, [r7, #8] + 8007d70: 0151 lsls r1, r2, #5 + 8007d72: 68fa ldr r2, [r7, #12] + 8007d74: 440a add r2, r1 + 8007d76: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007d7a: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 8007d7e: 6013 str r3, [r2, #0] + 8007d80: 68bb ldr r3, [r7, #8] + 8007d82: 015a lsls r2, r3, #5 + 8007d84: 68fb ldr r3, [r7, #12] + 8007d86: 4413 add r3, r2 + 8007d88: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007d8c: 681b ldr r3, [r3, #0] + 8007d8e: 68ba ldr r2, [r7, #8] + 8007d90: 0151 lsls r1, r2, #5 + 8007d92: 68fa ldr r2, [r7, #12] + 8007d94: 440a add r2, r1 + 8007d96: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007d9a: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 8007d9e: 6013 str r3, [r2, #0] + 8007da0: 68fb ldr r3, [r7, #12] + 8007da2: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007da6: 6bda ldr r2, [r3, #60] @ 0x3c + 8007da8: 683b ldr r3, [r7, #0] + 8007daa: 781b ldrb r3, [r3, #0] + 8007dac: f003 030f and.w r3, r3, #15 + 8007db0: 2101 movs r1, #1 + 8007db2: fa01 f303 lsl.w r3, r1, r3 + 8007db6: b29b uxth r3, r3 + 8007db8: 43db mvns r3, r3 + 8007dba: 68f9 ldr r1, [r7, #12] + 8007dbc: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8007dc0: 4013 ands r3, r2 + 8007dc2: 63cb str r3, [r1, #60] @ 0x3c + 8007dc4: 68fb ldr r3, [r7, #12] + 8007dc6: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007dca: 69da ldr r2, [r3, #28] + 8007dcc: 683b ldr r3, [r7, #0] + 8007dce: 781b ldrb r3, [r3, #0] + 8007dd0: f003 030f and.w r3, r3, #15 + 8007dd4: 2101 movs r1, #1 + 8007dd6: fa01 f303 lsl.w r3, r1, r3 + 8007dda: b29b uxth r3, r3 + 8007ddc: 43db mvns r3, r3 + 8007dde: 68f9 ldr r1, [r7, #12] + 8007de0: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8007de4: 4013 ands r3, r2 + 8007de6: 61cb str r3, [r1, #28] + 8007de8: 68bb ldr r3, [r7, #8] + 8007dea: 015a lsls r2, r3, #5 + 8007dec: 68fb ldr r3, [r7, #12] + 8007dee: 4413 add r3, r2 + 8007df0: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007df4: 681a ldr r2, [r3, #0] + 8007df6: 68bb ldr r3, [r7, #8] + 8007df8: 0159 lsls r1, r3, #5 + 8007dfa: 68fb ldr r3, [r7, #12] + 8007dfc: 440b add r3, r1 + 8007dfe: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007e02: 4619 mov r1, r3 + 8007e04: 4b35 ldr r3, [pc, #212] @ (8007edc ) + 8007e06: 4013 ands r3, r2 + 8007e08: 600b str r3, [r1, #0] + 8007e0a: e060 b.n 8007ece + 8007e0c: 68bb ldr r3, [r7, #8] + 8007e0e: 015a lsls r2, r3, #5 + 8007e10: 68fb ldr r3, [r7, #12] + 8007e12: 4413 add r3, r2 + 8007e14: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007e18: 681b ldr r3, [r3, #0] + 8007e1a: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8007e1e: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8007e22: d11f bne.n 8007e64 + 8007e24: 68bb ldr r3, [r7, #8] + 8007e26: 015a lsls r2, r3, #5 + 8007e28: 68fb ldr r3, [r7, #12] + 8007e2a: 4413 add r3, r2 + 8007e2c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007e30: 681b ldr r3, [r3, #0] + 8007e32: 68ba ldr r2, [r7, #8] + 8007e34: 0151 lsls r1, r2, #5 + 8007e36: 68fa ldr r2, [r7, #12] + 8007e38: 440a add r2, r1 + 8007e3a: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8007e3e: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 8007e42: 6013 str r3, [r2, #0] + 8007e44: 68bb ldr r3, [r7, #8] + 8007e46: 015a lsls r2, r3, #5 + 8007e48: 68fb ldr r3, [r7, #12] + 8007e4a: 4413 add r3, r2 + 8007e4c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007e50: 681b ldr r3, [r3, #0] + 8007e52: 68ba ldr r2, [r7, #8] + 8007e54: 0151 lsls r1, r2, #5 + 8007e56: 68fa ldr r2, [r7, #12] + 8007e58: 440a add r2, r1 + 8007e5a: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8007e5e: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 8007e62: 6013 str r3, [r2, #0] + 8007e64: 68fb ldr r3, [r7, #12] + 8007e66: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007e6a: 6bda ldr r2, [r3, #60] @ 0x3c + 8007e6c: 683b ldr r3, [r7, #0] + 8007e6e: 781b ldrb r3, [r3, #0] + 8007e70: f003 030f and.w r3, r3, #15 + 8007e74: 2101 movs r1, #1 + 8007e76: fa01 f303 lsl.w r3, r1, r3 + 8007e7a: 041b lsls r3, r3, #16 + 8007e7c: 43db mvns r3, r3 + 8007e7e: 68f9 ldr r1, [r7, #12] + 8007e80: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8007e84: 4013 ands r3, r2 + 8007e86: 63cb str r3, [r1, #60] @ 0x3c + 8007e88: 68fb ldr r3, [r7, #12] + 8007e8a: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8007e8e: 69da ldr r2, [r3, #28] + 8007e90: 683b ldr r3, [r7, #0] + 8007e92: 781b ldrb r3, [r3, #0] + 8007e94: f003 030f and.w r3, r3, #15 + 8007e98: 2101 movs r1, #1 + 8007e9a: fa01 f303 lsl.w r3, r1, r3 + 8007e9e: 041b lsls r3, r3, #16 + 8007ea0: 43db mvns r3, r3 + 8007ea2: 68f9 ldr r1, [r7, #12] + 8007ea4: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8007ea8: 4013 ands r3, r2 + 8007eaa: 61cb str r3, [r1, #28] + 8007eac: 68bb ldr r3, [r7, #8] + 8007eae: 015a lsls r2, r3, #5 + 8007eb0: 68fb ldr r3, [r7, #12] + 8007eb2: 4413 add r3, r2 + 8007eb4: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007eb8: 681a ldr r2, [r3, #0] + 8007eba: 68bb ldr r3, [r7, #8] + 8007ebc: 0159 lsls r1, r3, #5 + 8007ebe: 68fb ldr r3, [r7, #12] + 8007ec0: 440b add r3, r1 + 8007ec2: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8007ec6: 4619 mov r1, r3 + 8007ec8: 4b05 ldr r3, [pc, #20] @ (8007ee0 ) + 8007eca: 4013 ands r3, r2 + 8007ecc: 600b str r3, [r1, #0] + 8007ece: 2300 movs r3, #0 + 8007ed0: 4618 mov r0, r3 + 8007ed2: 3714 adds r7, #20 + 8007ed4: 46bd mov sp, r7 + 8007ed6: f85d 7b04 ldr.w r7, [sp], #4 + 8007eda: 4770 bx lr + 8007edc: ec337800 .word 0xec337800 + 8007ee0: eff37800 .word 0xeff37800 - /* Read DEPCTLn register */ - if (ep->is_in == 1U) - 8008084: 683b ldr r3, [r7, #0] - 8008086: 785b ldrb r3, [r3, #1] - 8008088: 2b01 cmp r3, #1 - 800808a: d161 bne.n 8008150 - { - if ((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) +08007ee4 : + 8007ee4: b580 push {r7, lr} + 8007ee6: b08a sub sp, #40 @ 0x28 + 8007ee8: af02 add r7, sp, #8 + 8007eea: 60f8 str r0, [r7, #12] + 8007eec: 60b9 str r1, [r7, #8] + 8007eee: 4613 mov r3, r2 + 8007ef0: 71fb strb r3, [r7, #7] + 8007ef2: 68fb ldr r3, [r7, #12] + 8007ef4: 61fb str r3, [r7, #28] + 8007ef6: 68bb ldr r3, [r7, #8] + 8007ef8: 781b ldrb r3, [r3, #0] + 8007efa: 61bb str r3, [r7, #24] + 8007efc: 68bb ldr r3, [r7, #8] + 8007efe: 785b ldrb r3, [r3, #1] + 8007f00: 2b01 cmp r3, #1 + 8007f02: f040 817f bne.w 8008204 + 8007f06: 68bb ldr r3, [r7, #8] + 8007f08: 691b ldr r3, [r3, #16] + 8007f0a: 2b00 cmp r3, #0 + 8007f0c: d132 bne.n 8007f74 + 8007f0e: 69bb ldr r3, [r7, #24] + 8007f10: 015a lsls r2, r3, #5 + 8007f12: 69fb ldr r3, [r7, #28] + 8007f14: 4413 add r3, r2 + 8007f16: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007f1a: 691b ldr r3, [r3, #16] + 8007f1c: 69ba ldr r2, [r7, #24] + 8007f1e: 0151 lsls r1, r2, #5 + 8007f20: 69fa ldr r2, [r7, #28] + 8007f22: 440a add r2, r1 + 8007f24: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007f28: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 + 8007f2c: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 + 8007f30: 6113 str r3, [r2, #16] + 8007f32: 69bb ldr r3, [r7, #24] + 8007f34: 015a lsls r2, r3, #5 + 8007f36: 69fb ldr r3, [r7, #28] + 8007f38: 4413 add r3, r2 + 8007f3a: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007f3e: 691b ldr r3, [r3, #16] + 8007f40: 69ba ldr r2, [r7, #24] + 8007f42: 0151 lsls r1, r2, #5 + 8007f44: 69fa ldr r2, [r7, #28] + 8007f46: 440a add r2, r1 + 8007f48: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007f4c: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 8007f50: 6113 str r3, [r2, #16] + 8007f52: 69bb ldr r3, [r7, #24] + 8007f54: 015a lsls r2, r3, #5 + 8007f56: 69fb ldr r3, [r7, #28] + 8007f58: 4413 add r3, r2 + 8007f5a: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007f5e: 691b ldr r3, [r3, #16] + 8007f60: 69ba ldr r2, [r7, #24] + 8007f62: 0151 lsls r1, r2, #5 + 8007f64: 69fa ldr r2, [r7, #28] + 8007f66: 440a add r2, r1 + 8007f68: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007f6c: 0cdb lsrs r3, r3, #19 + 8007f6e: 04db lsls r3, r3, #19 + 8007f70: 6113 str r3, [r2, #16] + 8007f72: e097 b.n 80080a4 + 8007f74: 69bb ldr r3, [r7, #24] + 8007f76: 015a lsls r2, r3, #5 + 8007f78: 69fb ldr r3, [r7, #28] + 8007f7a: 4413 add r3, r2 + 8007f7c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007f80: 691b ldr r3, [r3, #16] + 8007f82: 69ba ldr r2, [r7, #24] + 8007f84: 0151 lsls r1, r2, #5 + 8007f86: 69fa ldr r2, [r7, #28] + 8007f88: 440a add r2, r1 + 8007f8a: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007f8e: 0cdb lsrs r3, r3, #19 + 8007f90: 04db lsls r3, r3, #19 + 8007f92: 6113 str r3, [r2, #16] + 8007f94: 69bb ldr r3, [r7, #24] + 8007f96: 015a lsls r2, r3, #5 + 8007f98: 69fb ldr r3, [r7, #28] + 8007f9a: 4413 add r3, r2 + 8007f9c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007fa0: 691b ldr r3, [r3, #16] + 8007fa2: 69ba ldr r2, [r7, #24] + 8007fa4: 0151 lsls r1, r2, #5 + 8007fa6: 69fa ldr r2, [r7, #28] + 8007fa8: 440a add r2, r1 + 8007faa: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007fae: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 + 8007fb2: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 + 8007fb6: 6113 str r3, [r2, #16] + 8007fb8: 69bb ldr r3, [r7, #24] + 8007fba: 2b00 cmp r3, #0 + 8007fbc: d11a bne.n 8007ff4 + 8007fbe: 68bb ldr r3, [r7, #8] + 8007fc0: 691a ldr r2, [r3, #16] + 8007fc2: 68bb ldr r3, [r7, #8] + 8007fc4: 689b ldr r3, [r3, #8] + 8007fc6: 429a cmp r2, r3 + 8007fc8: d903 bls.n 8007fd2 + 8007fca: 68bb ldr r3, [r7, #8] + 8007fcc: 689a ldr r2, [r3, #8] + 8007fce: 68bb ldr r3, [r7, #8] + 8007fd0: 611a str r2, [r3, #16] + 8007fd2: 69bb ldr r3, [r7, #24] + 8007fd4: 015a lsls r2, r3, #5 + 8007fd6: 69fb ldr r3, [r7, #28] + 8007fd8: 4413 add r3, r2 + 8007fda: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8007fde: 691b ldr r3, [r3, #16] + 8007fe0: 69ba ldr r2, [r7, #24] + 8007fe2: 0151 lsls r1, r2, #5 + 8007fe4: 69fa ldr r2, [r7, #28] + 8007fe6: 440a add r2, r1 + 8007fe8: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8007fec: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 8007ff0: 6113 str r3, [r2, #16] + 8007ff2: e044 b.n 800807e + 8007ff4: 68bb ldr r3, [r7, #8] + 8007ff6: 691a ldr r2, [r3, #16] + 8007ff8: 68bb ldr r3, [r7, #8] + 8007ffa: 689b ldr r3, [r3, #8] + 8007ffc: 4413 add r3, r2 + 8007ffe: 1e5a subs r2, r3, #1 + 8008000: 68bb ldr r3, [r7, #8] + 8008002: 689b ldr r3, [r3, #8] + 8008004: fbb2 f3f3 udiv r3, r2, r3 + 8008008: 82fb strh r3, [r7, #22] + 800800a: 69bb ldr r3, [r7, #24] + 800800c: 015a lsls r2, r3, #5 + 800800e: 69fb ldr r3, [r7, #28] + 8008010: 4413 add r3, r2 + 8008012: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008016: 691a ldr r2, [r3, #16] + 8008018: 8afb ldrh r3, [r7, #22] + 800801a: 04d9 lsls r1, r3, #19 + 800801c: 4ba4 ldr r3, [pc, #656] @ (80082b0 ) + 800801e: 400b ands r3, r1 + 8008020: 69b9 ldr r1, [r7, #24] + 8008022: 0148 lsls r0, r1, #5 + 8008024: 69f9 ldr r1, [r7, #28] + 8008026: 4401 add r1, r0 + 8008028: f501 6110 add.w r1, r1, #2304 @ 0x900 + 800802c: 4313 orrs r3, r2 + 800802e: 610b str r3, [r1, #16] + 8008030: 68bb ldr r3, [r7, #8] + 8008032: 791b ldrb r3, [r3, #4] + 8008034: 2b01 cmp r3, #1 + 8008036: d122 bne.n 800807e + 8008038: 69bb ldr r3, [r7, #24] + 800803a: 015a lsls r2, r3, #5 + 800803c: 69fb ldr r3, [r7, #28] + 800803e: 4413 add r3, r2 + 8008040: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008044: 691b ldr r3, [r3, #16] + 8008046: 69ba ldr r2, [r7, #24] + 8008048: 0151 lsls r1, r2, #5 + 800804a: 69fa ldr r2, [r7, #28] + 800804c: 440a add r2, r1 + 800804e: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008052: f023 43c0 bic.w r3, r3, #1610612736 @ 0x60000000 + 8008056: 6113 str r3, [r2, #16] + 8008058: 69bb ldr r3, [r7, #24] + 800805a: 015a lsls r2, r3, #5 + 800805c: 69fb ldr r3, [r7, #28] + 800805e: 4413 add r3, r2 + 8008060: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008064: 691a ldr r2, [r3, #16] + 8008066: 8afb ldrh r3, [r7, #22] + 8008068: 075b lsls r3, r3, #29 + 800806a: f003 43c0 and.w r3, r3, #1610612736 @ 0x60000000 + 800806e: 69b9 ldr r1, [r7, #24] + 8008070: 0148 lsls r0, r1, #5 + 8008072: 69f9 ldr r1, [r7, #28] + 8008074: 4401 add r1, r0 + 8008076: f501 6110 add.w r1, r1, #2304 @ 0x900 + 800807a: 4313 orrs r3, r2 + 800807c: 610b str r3, [r1, #16] + 800807e: 69bb ldr r3, [r7, #24] + 8008080: 015a lsls r2, r3, #5 + 8008082: 69fb ldr r3, [r7, #28] + 8008084: 4413 add r3, r2 + 8008086: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800808a: 691a ldr r2, [r3, #16] 800808c: 68bb ldr r3, [r7, #8] - 800808e: 015a lsls r2, r3, #5 - 8008090: 68fb ldr r3, [r7, #12] - 8008092: 4413 add r3, r2 - 8008094: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008098: 681b ldr r3, [r3, #0] - 800809a: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 800809e: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 80080a2: d11f bne.n 80080e4 - { - USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SNAK; - 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: 68ba ldr r2, [r7, #8] - 80080b4: 0151 lsls r1, r2, #5 - 80080b6: 68fa ldr r2, [r7, #12] - 80080b8: 440a add r2, r1 - 80080ba: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80080be: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 80080c2: 6013 str r3, [r2, #0] - USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_EPDIS; - 80080c4: 68bb ldr r3, [r7, #8] - 80080c6: 015a lsls r2, r3, #5 - 80080c8: 68fb ldr r3, [r7, #12] - 80080ca: 4413 add r3, r2 - 80080cc: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80080d0: 681b ldr r3, [r3, #0] - 80080d2: 68ba ldr r2, [r7, #8] - 80080d4: 0151 lsls r1, r2, #5 - 80080d6: 68fa ldr r2, [r7, #12] - 80080d8: 440a add r2, r1 - 80080da: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80080de: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 80080e2: 6013 str r3, [r2, #0] - } - - USBx_DEVICE->DEACHMSK &= ~(USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK))); - 80080e4: 68fb ldr r3, [r7, #12] - 80080e6: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80080ea: 6bda ldr r2, [r3, #60] @ 0x3c - 80080ec: 683b ldr r3, [r7, #0] - 80080ee: 781b ldrb r3, [r3, #0] - 80080f0: f003 030f and.w r3, r3, #15 - 80080f4: 2101 movs r1, #1 - 80080f6: fa01 f303 lsl.w r3, r1, r3 - 80080fa: b29b uxth r3, r3 - 80080fc: 43db mvns r3, r3 - 80080fe: 68f9 ldr r1, [r7, #12] - 8008100: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8008104: 4013 ands r3, r2 - 8008106: 63cb str r3, [r1, #60] @ 0x3c - USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK))); - 8008108: 68fb ldr r3, [r7, #12] - 800810a: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800810e: 69da ldr r2, [r3, #28] - 8008110: 683b ldr r3, [r7, #0] - 8008112: 781b ldrb r3, [r3, #0] - 8008114: f003 030f and.w r3, r3, #15 - 8008118: 2101 movs r1, #1 - 800811a: fa01 f303 lsl.w r3, r1, r3 - 800811e: b29b uxth r3, r3 - 8008120: 43db mvns r3, r3 - 8008122: 68f9 ldr r1, [r7, #12] - 8008124: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8008128: 4013 ands r3, r2 - 800812a: 61cb str r3, [r1, #28] - USBx_INEP(epnum)->DIEPCTL &= ~(USB_OTG_DIEPCTL_USBAEP | - 800812c: 68bb ldr r3, [r7, #8] - 800812e: 015a lsls r2, r3, #5 - 8008130: 68fb ldr r3, [r7, #12] - 8008132: 4413 add r3, r2 - 8008134: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008138: 681a ldr r2, [r3, #0] - 800813a: 68bb ldr r3, [r7, #8] - 800813c: 0159 lsls r1, r3, #5 - 800813e: 68fb ldr r3, [r7, #12] - 8008140: 440b add r3, r1 - 8008142: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008146: 4619 mov r1, r3 - 8008148: 4b35 ldr r3, [pc, #212] @ (8008220 ) - 800814a: 4013 ands r3, r2 - 800814c: 600b str r3, [r1, #0] - 800814e: e060 b.n 8008212 - USB_OTG_DIEPCTL_SD0PID_SEVNFRM | - USB_OTG_DIEPCTL_EPTYP); - } - else - { - if ((USBx_OUTEP(epnum)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) - 8008150: 68bb ldr r3, [r7, #8] - 8008152: 015a lsls r2, r3, #5 - 8008154: 68fb ldr r3, [r7, #12] - 8008156: 4413 add r3, r2 - 8008158: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800815c: 681b ldr r3, [r3, #0] - 800815e: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8008162: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8008166: d11f bne.n 80081a8 - { - USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SNAK; - 8008168: 68bb ldr r3, [r7, #8] - 800816a: 015a lsls r2, r3, #5 - 800816c: 68fb ldr r3, [r7, #12] - 800816e: 4413 add r3, r2 - 8008170: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008174: 681b ldr r3, [r3, #0] - 8008176: 68ba ldr r2, [r7, #8] - 8008178: 0151 lsls r1, r2, #5 - 800817a: 68fa ldr r2, [r7, #12] - 800817c: 440a add r2, r1 - 800817e: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008182: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 8008186: 6013 str r3, [r2, #0] - USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_EPDIS; - 8008188: 68bb ldr r3, [r7, #8] - 800818a: 015a lsls r2, r3, #5 - 800818c: 68fb ldr r3, [r7, #12] - 800818e: 4413 add r3, r2 - 8008190: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008194: 681b ldr r3, [r3, #0] - 8008196: 68ba ldr r2, [r7, #8] - 8008198: 0151 lsls r1, r2, #5 - 800819a: 68fa ldr r2, [r7, #12] - 800819c: 440a add r2, r1 - 800819e: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 80081a2: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 80081a6: 6013 str r3, [r2, #0] - } - - USBx_DEVICE->DEACHMSK &= ~(USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16)); - 80081a8: 68fb ldr r3, [r7, #12] - 80081aa: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80081ae: 6bda ldr r2, [r3, #60] @ 0x3c - 80081b0: 683b ldr r3, [r7, #0] - 80081b2: 781b ldrb r3, [r3, #0] - 80081b4: f003 030f and.w r3, r3, #15 - 80081b8: 2101 movs r1, #1 - 80081ba: fa01 f303 lsl.w r3, r1, r3 - 80081be: 041b lsls r3, r3, #16 - 80081c0: 43db mvns r3, r3 - 80081c2: 68f9 ldr r1, [r7, #12] - 80081c4: f501 6100 add.w r1, r1, #2048 @ 0x800 - 80081c8: 4013 ands r3, r2 - 80081ca: 63cb str r3, [r1, #60] @ 0x3c - USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16)); - 80081cc: 68fb ldr r3, [r7, #12] - 80081ce: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80081d2: 69da ldr r2, [r3, #28] - 80081d4: 683b ldr r3, [r7, #0] - 80081d6: 781b ldrb r3, [r3, #0] - 80081d8: f003 030f and.w r3, r3, #15 - 80081dc: 2101 movs r1, #1 - 80081de: fa01 f303 lsl.w r3, r1, r3 - 80081e2: 041b lsls r3, r3, #16 - 80081e4: 43db mvns r3, r3 - 80081e6: 68f9 ldr r1, [r7, #12] - 80081e8: f501 6100 add.w r1, r1, #2048 @ 0x800 - 80081ec: 4013 ands r3, r2 - 80081ee: 61cb str r3, [r1, #28] - USBx_OUTEP(epnum)->DOEPCTL &= ~(USB_OTG_DOEPCTL_USBAEP | + 800808e: 691b ldr r3, [r3, #16] + 8008090: f3c3 0312 ubfx r3, r3, #0, #19 + 8008094: 69b9 ldr r1, [r7, #24] + 8008096: 0148 lsls r0, r1, #5 + 8008098: 69f9 ldr r1, [r7, #28] + 800809a: 4401 add r1, r0 + 800809c: f501 6110 add.w r1, r1, #2304 @ 0x900 + 80080a0: 4313 orrs r3, r2 + 80080a2: 610b str r3, [r1, #16] + 80080a4: 79fb ldrb r3, [r7, #7] + 80080a6: 2b01 cmp r3, #1 + 80080a8: d14b bne.n 8008142 + 80080aa: 68bb ldr r3, [r7, #8] + 80080ac: 69db ldr r3, [r3, #28] + 80080ae: 2b00 cmp r3, #0 + 80080b0: d009 beq.n 80080c6 + 80080b2: 69bb ldr r3, [r7, #24] + 80080b4: 015a lsls r2, r3, #5 + 80080b6: 69fb ldr r3, [r7, #28] + 80080b8: 4413 add r3, r2 + 80080ba: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80080be: 461a mov r2, r3 + 80080c0: 68bb ldr r3, [r7, #8] + 80080c2: 69db ldr r3, [r3, #28] + 80080c4: 6153 str r3, [r2, #20] + 80080c6: 68bb ldr r3, [r7, #8] + 80080c8: 791b ldrb r3, [r3, #4] + 80080ca: 2b01 cmp r3, #1 + 80080cc: d128 bne.n 8008120 + 80080ce: 69fb ldr r3, [r7, #28] + 80080d0: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80080d4: 689b ldr r3, [r3, #8] + 80080d6: f403 7380 and.w r3, r3, #256 @ 0x100 + 80080da: 2b00 cmp r3, #0 + 80080dc: d110 bne.n 8008100 + 80080de: 69bb ldr r3, [r7, #24] + 80080e0: 015a lsls r2, r3, #5 + 80080e2: 69fb ldr r3, [r7, #28] + 80080e4: 4413 add r3, r2 + 80080e6: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80080ea: 681b ldr r3, [r3, #0] + 80080ec: 69ba ldr r2, [r7, #24] + 80080ee: 0151 lsls r1, r2, #5 + 80080f0: 69fa ldr r2, [r7, #28] + 80080f2: 440a add r2, r1 + 80080f4: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80080f8: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 + 80080fc: 6013 str r3, [r2, #0] + 80080fe: e00f b.n 8008120 + 8008100: 69bb ldr r3, [r7, #24] + 8008102: 015a lsls r2, r3, #5 + 8008104: 69fb ldr r3, [r7, #28] + 8008106: 4413 add r3, r2 + 8008108: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800810c: 681b ldr r3, [r3, #0] + 800810e: 69ba ldr r2, [r7, #24] + 8008110: 0151 lsls r1, r2, #5 + 8008112: 69fa ldr r2, [r7, #28] + 8008114: 440a add r2, r1 + 8008116: f502 6210 add.w r2, r2, #2304 @ 0x900 + 800811a: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 800811e: 6013 str r3, [r2, #0] + 8008120: 69bb ldr r3, [r7, #24] + 8008122: 015a lsls r2, r3, #5 + 8008124: 69fb ldr r3, [r7, #28] + 8008126: 4413 add r3, r2 + 8008128: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800812c: 681b ldr r3, [r3, #0] + 800812e: 69ba ldr r2, [r7, #24] + 8008130: 0151 lsls r1, r2, #5 + 8008132: 69fa ldr r2, [r7, #28] + 8008134: 440a add r2, r1 + 8008136: f502 6210 add.w r2, r2, #2304 @ 0x900 + 800813a: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 + 800813e: 6013 str r3, [r2, #0] + 8008140: e166 b.n 8008410 + 8008142: 69bb ldr r3, [r7, #24] + 8008144: 015a lsls r2, r3, #5 + 8008146: 69fb ldr r3, [r7, #28] + 8008148: 4413 add r3, r2 + 800814a: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800814e: 681b ldr r3, [r3, #0] + 8008150: 69ba ldr r2, [r7, #24] + 8008152: 0151 lsls r1, r2, #5 + 8008154: 69fa ldr r2, [r7, #28] + 8008156: 440a add r2, r1 + 8008158: f502 6210 add.w r2, r2, #2304 @ 0x900 + 800815c: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 + 8008160: 6013 str r3, [r2, #0] + 8008162: 68bb ldr r3, [r7, #8] + 8008164: 791b ldrb r3, [r3, #4] + 8008166: 2b01 cmp r3, #1 + 8008168: d015 beq.n 8008196 + 800816a: 68bb ldr r3, [r7, #8] + 800816c: 691b ldr r3, [r3, #16] + 800816e: 2b00 cmp r3, #0 + 8008170: f000 814e beq.w 8008410 + 8008174: 69fb ldr r3, [r7, #28] + 8008176: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800817a: 6b5a ldr r2, [r3, #52] @ 0x34 + 800817c: 68bb ldr r3, [r7, #8] + 800817e: 781b ldrb r3, [r3, #0] + 8008180: f003 030f and.w r3, r3, #15 + 8008184: 2101 movs r1, #1 + 8008186: fa01 f303 lsl.w r3, r1, r3 + 800818a: 69f9 ldr r1, [r7, #28] + 800818c: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8008190: 4313 orrs r3, r2 + 8008192: 634b str r3, [r1, #52] @ 0x34 + 8008194: e13c b.n 8008410 + 8008196: 69fb ldr r3, [r7, #28] + 8008198: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800819c: 689b ldr r3, [r3, #8] + 800819e: f403 7380 and.w r3, r3, #256 @ 0x100 + 80081a2: 2b00 cmp r3, #0 + 80081a4: d110 bne.n 80081c8 + 80081a6: 69bb ldr r3, [r7, #24] + 80081a8: 015a lsls r2, r3, #5 + 80081aa: 69fb ldr r3, [r7, #28] + 80081ac: 4413 add r3, r2 + 80081ae: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80081b2: 681b ldr r3, [r3, #0] + 80081b4: 69ba ldr r2, [r7, #24] + 80081b6: 0151 lsls r1, r2, #5 + 80081b8: 69fa ldr r2, [r7, #28] + 80081ba: 440a add r2, r1 + 80081bc: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80081c0: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 + 80081c4: 6013 str r3, [r2, #0] + 80081c6: e00f b.n 80081e8 + 80081c8: 69bb ldr r3, [r7, #24] + 80081ca: 015a lsls r2, r3, #5 + 80081cc: 69fb ldr r3, [r7, #28] + 80081ce: 4413 add r3, r2 + 80081d0: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80081d4: 681b ldr r3, [r3, #0] + 80081d6: 69ba ldr r2, [r7, #24] + 80081d8: 0151 lsls r1, r2, #5 + 80081da: 69fa ldr r2, [r7, #28] + 80081dc: 440a add r2, r1 + 80081de: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80081e2: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80081e6: 6013 str r3, [r2, #0] + 80081e8: 68bb ldr r3, [r7, #8] + 80081ea: 68d9 ldr r1, [r3, #12] + 80081ec: 68bb ldr r3, [r7, #8] + 80081ee: 781a ldrb r2, [r3, #0] 80081f0: 68bb ldr r3, [r7, #8] - 80081f2: 015a lsls r2, r3, #5 - 80081f4: 68fb ldr r3, [r7, #12] - 80081f6: 4413 add r3, r2 - 80081f8: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80081fc: 681a ldr r2, [r3, #0] - 80081fe: 68bb ldr r3, [r7, #8] - 8008200: 0159 lsls r1, r3, #5 - 8008202: 68fb ldr r3, [r7, #12] - 8008204: 440b add r3, r1 - 8008206: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800820a: 4619 mov r1, r3 - 800820c: 4b05 ldr r3, [pc, #20] @ (8008224 ) - 800820e: 4013 ands r3, r2 - 8008210: 600b str r3, [r1, #0] - USB_OTG_DOEPCTL_MPSIZ | - USB_OTG_DOEPCTL_SD0PID_SEVNFRM | - USB_OTG_DOEPCTL_EPTYP); - } - - return HAL_OK; - 8008212: 2300 movs r3, #0 -} - 8008214: 4618 mov r0, r3 - 8008216: 3714 adds r7, #20 - 8008218: 46bd mov sp, r7 - 800821a: f85d 7b04 ldr.w r7, [sp], #4 - 800821e: 4770 bx lr - 8008220: ec337800 .word 0xec337800 - 8008224: eff37800 .word 0xeff37800 - -08008228 : - * 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) -{ - 8008228: b580 push {r7, lr} - 800822a: b08a sub sp, #40 @ 0x28 - 800822c: af02 add r7, sp, #8 - 800822e: 60f8 str r0, [r7, #12] - 8008230: 60b9 str r1, [r7, #8] - 8008232: 4613 mov r3, r2 - 8008234: 71fb strb r3, [r7, #7] - uint32_t USBx_BASE = (uint32_t)USBx; - 8008236: 68fb ldr r3, [r7, #12] - 8008238: 61fb str r3, [r7, #28] - uint32_t epnum = (uint32_t)ep->num; - 800823a: 68bb ldr r3, [r7, #8] - 800823c: 781b ldrb r3, [r3, #0] - 800823e: 61bb str r3, [r7, #24] - uint16_t pktcnt; - - /* IN endpoint */ - if (ep->is_in == 1U) - 8008240: 68bb ldr r3, [r7, #8] - 8008242: 785b ldrb r3, [r3, #1] - 8008244: 2b01 cmp r3, #1 - 8008246: f040 817f bne.w 8008548 - { - /* Zero Length Packet? */ - if (ep->xfer_len == 0U) - 800824a: 68bb ldr r3, [r7, #8] - 800824c: 691b ldr r3, [r3, #16] - 800824e: 2b00 cmp r3, #0 - 8008250: d132 bne.n 80082b8 - { - USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT); - 8008252: 69bb ldr r3, [r7, #24] - 8008254: 015a lsls r2, r3, #5 - 8008256: 69fb ldr r3, [r7, #28] - 8008258: 4413 add r3, r2 - 800825a: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800825e: 691b ldr r3, [r3, #16] - 8008260: 69ba ldr r2, [r7, #24] - 8008262: 0151 lsls r1, r2, #5 - 8008264: 69fa ldr r2, [r7, #28] - 8008266: 440a add r2, r1 - 8008268: f502 6210 add.w r2, r2, #2304 @ 0x900 - 800826c: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 - 8008270: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 - 8008274: 6113 str r3, [r2, #16] - USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (1U << 19)); - 8008276: 69bb ldr r3, [r7, #24] - 8008278: 015a lsls r2, r3, #5 - 800827a: 69fb ldr r3, [r7, #28] - 800827c: 4413 add r3, r2 - 800827e: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008282: 691b ldr r3, [r3, #16] - 8008284: 69ba ldr r2, [r7, #24] - 8008286: 0151 lsls r1, r2, #5 - 8008288: 69fa ldr r2, [r7, #28] - 800828a: 440a add r2, r1 - 800828c: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008290: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 8008294: 6113 str r3, [r2, #16] - USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_XFRSIZ); - 8008296: 69bb ldr r3, [r7, #24] - 8008298: 015a lsls r2, r3, #5 - 800829a: 69fb ldr r3, [r7, #28] - 800829c: 4413 add r3, r2 - 800829e: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80082a2: 691b ldr r3, [r3, #16] - 80082a4: 69ba ldr r2, [r7, #24] - 80082a6: 0151 lsls r1, r2, #5 - 80082a8: 69fa ldr r2, [r7, #28] - 80082aa: 440a add r2, r1 - 80082ac: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80082b0: 0cdb lsrs r3, r3, #19 - 80082b2: 04db lsls r3, r3, #19 - 80082b4: 6113 str r3, [r2, #16] - 80082b6: e097 b.n 80083e8 - /* 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); - 80082b8: 69bb ldr r3, [r7, #24] - 80082ba: 015a lsls r2, r3, #5 - 80082bc: 69fb ldr r3, [r7, #28] - 80082be: 4413 add r3, r2 - 80082c0: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80082c4: 691b ldr r3, [r3, #16] - 80082c6: 69ba ldr r2, [r7, #24] - 80082c8: 0151 lsls r1, r2, #5 - 80082ca: 69fa ldr r2, [r7, #28] - 80082cc: 440a add r2, r1 - 80082ce: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80082d2: 0cdb lsrs r3, r3, #19 - 80082d4: 04db lsls r3, r3, #19 - 80082d6: 6113 str r3, [r2, #16] - USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT); - 80082d8: 69bb ldr r3, [r7, #24] - 80082da: 015a lsls r2, r3, #5 - 80082dc: 69fb ldr r3, [r7, #28] - 80082de: 4413 add r3, r2 - 80082e0: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80082e4: 691b ldr r3, [r3, #16] - 80082e6: 69ba ldr r2, [r7, #24] - 80082e8: 0151 lsls r1, r2, #5 - 80082ea: 69fa ldr r2, [r7, #28] - 80082ec: 440a add r2, r1 - 80082ee: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80082f2: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 - 80082f6: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 - 80082fa: 6113 str r3, [r2, #16] - - if (epnum == 0U) - 80082fc: 69bb ldr r3, [r7, #24] - 80082fe: 2b00 cmp r3, #0 - 8008300: d11a bne.n 8008338 - { - if (ep->xfer_len > ep->maxpacket) - 8008302: 68bb ldr r3, [r7, #8] - 8008304: 691a ldr r2, [r3, #16] - 8008306: 68bb ldr r3, [r7, #8] - 8008308: 689b ldr r3, [r3, #8] - 800830a: 429a cmp r2, r3 - 800830c: d903 bls.n 8008316 - { - ep->xfer_len = ep->maxpacket; - 800830e: 68bb ldr r3, [r7, #8] - 8008310: 689a ldr r2, [r3, #8] - 8008312: 68bb ldr r3, [r7, #8] - 8008314: 611a str r2, [r3, #16] - } - - USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (1U << 19)); - 8008316: 69bb ldr r3, [r7, #24] - 8008318: 015a lsls r2, r3, #5 - 800831a: 69fb ldr r3, [r7, #28] - 800831c: 4413 add r3, r2 - 800831e: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008322: 691b ldr r3, [r3, #16] - 8008324: 69ba ldr r2, [r7, #24] - 8008326: 0151 lsls r1, r2, #5 - 8008328: 69fa ldr r2, [r7, #28] - 800832a: 440a add r2, r1 - 800832c: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008330: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 8008334: 6113 str r3, [r2, #16] - 8008336: e044 b.n 80083c2 - } - else - { - pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket); - 8008338: 68bb ldr r3, [r7, #8] - 800833a: 691a ldr r2, [r3, #16] - 800833c: 68bb ldr r3, [r7, #8] - 800833e: 689b ldr r3, [r3, #8] - 8008340: 4413 add r3, r2 - 8008342: 1e5a subs r2, r3, #1 - 8008344: 68bb ldr r3, [r7, #8] - 8008346: 689b ldr r3, [r3, #8] - 8008348: fbb2 f3f3 udiv r3, r2, r3 - 800834c: 82fb strh r3, [r7, #22] - USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & ((uint32_t)pktcnt << 19)); + 80081f2: 691b ldr r3, [r3, #16] + 80081f4: b298 uxth r0, r3 + 80081f6: 79fb ldrb r3, [r7, #7] + 80081f8: 9300 str r3, [sp, #0] + 80081fa: 4603 mov r3, r0 + 80081fc: 68f8 ldr r0, [r7, #12] + 80081fe: f000 f9b9 bl 8008574 + 8008202: e105 b.n 8008410 + 8008204: 69bb ldr r3, [r7, #24] + 8008206: 015a lsls r2, r3, #5 + 8008208: 69fb ldr r3, [r7, #28] + 800820a: 4413 add r3, r2 + 800820c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008210: 691b ldr r3, [r3, #16] + 8008212: 69ba ldr r2, [r7, #24] + 8008214: 0151 lsls r1, r2, #5 + 8008216: 69fa ldr r2, [r7, #28] + 8008218: 440a add r2, r1 + 800821a: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 800821e: 0cdb lsrs r3, r3, #19 + 8008220: 04db lsls r3, r3, #19 + 8008222: 6113 str r3, [r2, #16] + 8008224: 69bb ldr r3, [r7, #24] + 8008226: 015a lsls r2, r3, #5 + 8008228: 69fb ldr r3, [r7, #28] + 800822a: 4413 add r3, r2 + 800822c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008230: 691b ldr r3, [r3, #16] + 8008232: 69ba ldr r2, [r7, #24] + 8008234: 0151 lsls r1, r2, #5 + 8008236: 69fa ldr r2, [r7, #28] + 8008238: 440a add r2, r1 + 800823a: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 800823e: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 + 8008242: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 + 8008246: 6113 str r3, [r2, #16] + 8008248: 69bb ldr r3, [r7, #24] + 800824a: 2b00 cmp r3, #0 + 800824c: d132 bne.n 80082b4 + 800824e: 68bb ldr r3, [r7, #8] + 8008250: 691b ldr r3, [r3, #16] + 8008252: 2b00 cmp r3, #0 + 8008254: d003 beq.n 800825e + 8008256: 68bb ldr r3, [r7, #8] + 8008258: 689a ldr r2, [r3, #8] + 800825a: 68bb ldr r3, [r7, #8] + 800825c: 611a str r2, [r3, #16] + 800825e: 68bb ldr r3, [r7, #8] + 8008260: 689a ldr r2, [r3, #8] + 8008262: 68bb ldr r3, [r7, #8] + 8008264: 621a str r2, [r3, #32] + 8008266: 69bb ldr r3, [r7, #24] + 8008268: 015a lsls r2, r3, #5 + 800826a: 69fb ldr r3, [r7, #28] + 800826c: 4413 add r3, r2 + 800826e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008272: 691a ldr r2, [r3, #16] + 8008274: 68bb ldr r3, [r7, #8] + 8008276: 6a1b ldr r3, [r3, #32] + 8008278: f3c3 0312 ubfx r3, r3, #0, #19 + 800827c: 69b9 ldr r1, [r7, #24] + 800827e: 0148 lsls r0, r1, #5 + 8008280: 69f9 ldr r1, [r7, #28] + 8008282: 4401 add r1, r0 + 8008284: f501 6130 add.w r1, r1, #2816 @ 0xb00 + 8008288: 4313 orrs r3, r2 + 800828a: 610b str r3, [r1, #16] + 800828c: 69bb ldr r3, [r7, #24] + 800828e: 015a lsls r2, r3, #5 + 8008290: 69fb ldr r3, [r7, #28] + 8008292: 4413 add r3, r2 + 8008294: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008298: 691b ldr r3, [r3, #16] + 800829a: 69ba ldr r2, [r7, #24] + 800829c: 0151 lsls r1, r2, #5 + 800829e: 69fa ldr r2, [r7, #28] + 80082a0: 440a add r2, r1 + 80082a2: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80082a6: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 80082aa: 6113 str r3, [r2, #16] + 80082ac: e062 b.n 8008374 + 80082ae: bf00 nop + 80082b0: 1ff80000 .word 0x1ff80000 + 80082b4: 68bb ldr r3, [r7, #8] + 80082b6: 691b ldr r3, [r3, #16] + 80082b8: 2b00 cmp r3, #0 + 80082ba: d123 bne.n 8008304 + 80082bc: 69bb ldr r3, [r7, #24] + 80082be: 015a lsls r2, r3, #5 + 80082c0: 69fb ldr r3, [r7, #28] + 80082c2: 4413 add r3, r2 + 80082c4: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80082c8: 691a ldr r2, [r3, #16] + 80082ca: 68bb ldr r3, [r7, #8] + 80082cc: 689b ldr r3, [r3, #8] + 80082ce: f3c3 0312 ubfx r3, r3, #0, #19 + 80082d2: 69b9 ldr r1, [r7, #24] + 80082d4: 0148 lsls r0, r1, #5 + 80082d6: 69f9 ldr r1, [r7, #28] + 80082d8: 4401 add r1, r0 + 80082da: f501 6130 add.w r1, r1, #2816 @ 0xb00 + 80082de: 4313 orrs r3, r2 + 80082e0: 610b str r3, [r1, #16] + 80082e2: 69bb ldr r3, [r7, #24] + 80082e4: 015a lsls r2, r3, #5 + 80082e6: 69fb ldr r3, [r7, #28] + 80082e8: 4413 add r3, r2 + 80082ea: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80082ee: 691b ldr r3, [r3, #16] + 80082f0: 69ba ldr r2, [r7, #24] + 80082f2: 0151 lsls r1, r2, #5 + 80082f4: 69fa ldr r2, [r7, #28] + 80082f6: 440a add r2, r1 + 80082f8: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80082fc: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 8008300: 6113 str r3, [r2, #16] + 8008302: e037 b.n 8008374 + 8008304: 68bb ldr r3, [r7, #8] + 8008306: 691a ldr r2, [r3, #16] + 8008308: 68bb ldr r3, [r7, #8] + 800830a: 689b ldr r3, [r3, #8] + 800830c: 4413 add r3, r2 + 800830e: 1e5a subs r2, r3, #1 + 8008310: 68bb ldr r3, [r7, #8] + 8008312: 689b ldr r3, [r3, #8] + 8008314: fbb2 f3f3 udiv r3, r2, r3 + 8008318: 82fb strh r3, [r7, #22] + 800831a: 68bb ldr r3, [r7, #8] + 800831c: 689b ldr r3, [r3, #8] + 800831e: 8afa ldrh r2, [r7, #22] + 8008320: fb03 f202 mul.w r2, r3, r2 + 8008324: 68bb ldr r3, [r7, #8] + 8008326: 621a str r2, [r3, #32] + 8008328: 69bb ldr r3, [r7, #24] + 800832a: 015a lsls r2, r3, #5 + 800832c: 69fb ldr r3, [r7, #28] + 800832e: 4413 add r3, r2 + 8008330: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008334: 691a ldr r2, [r3, #16] + 8008336: 8afb ldrh r3, [r7, #22] + 8008338: 04d9 lsls r1, r3, #19 + 800833a: 4b38 ldr r3, [pc, #224] @ (800841c ) + 800833c: 400b ands r3, r1 + 800833e: 69b9 ldr r1, [r7, #24] + 8008340: 0148 lsls r0, r1, #5 + 8008342: 69f9 ldr r1, [r7, #28] + 8008344: 4401 add r1, r0 + 8008346: f501 6130 add.w r1, r1, #2816 @ 0xb00 + 800834a: 4313 orrs r3, r2 + 800834c: 610b str r3, [r1, #16] 800834e: 69bb ldr r3, [r7, #24] 8008350: 015a lsls r2, r3, #5 8008352: 69fb ldr r3, [r7, #28] 8008354: 4413 add r3, r2 - 8008356: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008356: f503 6330 add.w r3, r3, #2816 @ 0xb00 800835a: 691a ldr r2, [r3, #16] - 800835c: 8afb ldrh r3, [r7, #22] - 800835e: 04d9 lsls r1, r3, #19 - 8008360: 4ba4 ldr r3, [pc, #656] @ (80085f4 ) - 8008362: 400b ands r3, r1 + 800835c: 68bb ldr r3, [r7, #8] + 800835e: 6a1b ldr r3, [r3, #32] + 8008360: f3c3 0312 ubfx r3, r3, #0, #19 8008364: 69b9 ldr r1, [r7, #24] 8008366: 0148 lsls r0, r1, #5 8008368: 69f9 ldr r1, [r7, #28] 800836a: 4401 add r1, r0 - 800836c: f501 6110 add.w r1, r1, #2304 @ 0x900 + 800836c: f501 6130 add.w r1, r1, #2816 @ 0xb00 8008370: 4313 orrs r3, r2 8008372: 610b str r3, [r1, #16] + 8008374: 79fb ldrb r3, [r7, #7] + 8008376: 2b01 cmp r3, #1 + 8008378: d10d bne.n 8008396 + 800837a: 68bb ldr r3, [r7, #8] + 800837c: 68db ldr r3, [r3, #12] + 800837e: 2b00 cmp r3, #0 + 8008380: d009 beq.n 8008396 + 8008382: 68bb ldr r3, [r7, #8] + 8008384: 68d9 ldr r1, [r3, #12] + 8008386: 69bb ldr r3, [r7, #24] + 8008388: 015a lsls r2, r3, #5 + 800838a: 69fb ldr r3, [r7, #28] + 800838c: 4413 add r3, r2 + 800838e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008392: 460a mov r2, r1 + 8008394: 615a str r2, [r3, #20] + 8008396: 68bb ldr r3, [r7, #8] + 8008398: 791b ldrb r3, [r3, #4] + 800839a: 2b01 cmp r3, #1 + 800839c: d128 bne.n 80083f0 + 800839e: 69fb ldr r3, [r7, #28] + 80083a0: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80083a4: 689b ldr r3, [r3, #8] + 80083a6: f403 7380 and.w r3, r3, #256 @ 0x100 + 80083aa: 2b00 cmp r3, #0 + 80083ac: d110 bne.n 80083d0 + 80083ae: 69bb ldr r3, [r7, #24] + 80083b0: 015a lsls r2, r3, #5 + 80083b2: 69fb ldr r3, [r7, #28] + 80083b4: 4413 add r3, r2 + 80083b6: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80083ba: 681b ldr r3, [r3, #0] + 80083bc: 69ba ldr r2, [r7, #24] + 80083be: 0151 lsls r1, r2, #5 + 80083c0: 69fa ldr r2, [r7, #28] + 80083c2: 440a add r2, r1 + 80083c4: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80083c8: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 + 80083cc: 6013 str r3, [r2, #0] + 80083ce: e00f b.n 80083f0 + 80083d0: 69bb ldr r3, [r7, #24] + 80083d2: 015a lsls r2, r3, #5 + 80083d4: 69fb ldr r3, [r7, #28] + 80083d6: 4413 add r3, r2 + 80083d8: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80083dc: 681b ldr r3, [r3, #0] + 80083de: 69ba ldr r2, [r7, #24] + 80083e0: 0151 lsls r1, r2, #5 + 80083e2: 69fa ldr r2, [r7, #28] + 80083e4: 440a add r2, r1 + 80083e6: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80083ea: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80083ee: 6013 str r3, [r2, #0] + 80083f0: 69bb ldr r3, [r7, #24] + 80083f2: 015a lsls r2, r3, #5 + 80083f4: 69fb ldr r3, [r7, #28] + 80083f6: 4413 add r3, r2 + 80083f8: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80083fc: 681b ldr r3, [r3, #0] + 80083fe: 69ba ldr r2, [r7, #24] + 8008400: 0151 lsls r1, r2, #5 + 8008402: 69fa ldr r2, [r7, #28] + 8008404: 440a add r2, r1 + 8008406: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 800840a: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 + 800840e: 6013 str r3, [r2, #0] + 8008410: 2300 movs r3, #0 + 8008412: 4618 mov r0, r3 + 8008414: 3720 adds r7, #32 + 8008416: 46bd mov sp, r7 + 8008418: bd80 pop {r7, pc} + 800841a: bf00 nop + 800841c: 1ff80000 .word 0x1ff80000 - if (ep->type == EP_TYPE_ISOC) - 8008374: 68bb ldr r3, [r7, #8] - 8008376: 791b ldrb r3, [r3, #4] - 8008378: 2b01 cmp r3, #1 - 800837a: d122 bne.n 80083c2 - { - USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_MULCNT); - 800837c: 69bb ldr r3, [r7, #24] - 800837e: 015a lsls r2, r3, #5 - 8008380: 69fb ldr r3, [r7, #28] - 8008382: 4413 add r3, r2 - 8008384: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008388: 691b ldr r3, [r3, #16] - 800838a: 69ba ldr r2, [r7, #24] - 800838c: 0151 lsls r1, r2, #5 - 800838e: 69fa ldr r2, [r7, #28] - 8008390: 440a add r2, r1 - 8008392: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008396: f023 43c0 bic.w r3, r3, #1610612736 @ 0x60000000 - 800839a: 6113 str r3, [r2, #16] - USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_MULCNT & ((uint32_t)pktcnt << 29)); - 800839c: 69bb ldr r3, [r7, #24] - 800839e: 015a lsls r2, r3, #5 - 80083a0: 69fb ldr r3, [r7, #28] - 80083a2: 4413 add r3, r2 - 80083a4: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80083a8: 691a ldr r2, [r3, #16] - 80083aa: 8afb ldrh r3, [r7, #22] - 80083ac: 075b lsls r3, r3, #29 - 80083ae: f003 43c0 and.w r3, r3, #1610612736 @ 0x60000000 - 80083b2: 69b9 ldr r1, [r7, #24] - 80083b4: 0148 lsls r0, r1, #5 - 80083b6: 69f9 ldr r1, [r7, #28] - 80083b8: 4401 add r1, r0 - 80083ba: f501 6110 add.w r1, r1, #2304 @ 0x900 - 80083be: 4313 orrs r3, r2 - 80083c0: 610b str r3, [r1, #16] - } - } +08008420 : + 8008420: b480 push {r7} + 8008422: b087 sub sp, #28 + 8008424: af00 add r7, sp, #0 + 8008426: 6078 str r0, [r7, #4] + 8008428: 6039 str r1, [r7, #0] + 800842a: 2300 movs r3, #0 + 800842c: 60fb str r3, [r7, #12] + 800842e: 2300 movs r3, #0 + 8008430: 75fb strb r3, [r7, #23] + 8008432: 687b ldr r3, [r7, #4] + 8008434: 613b str r3, [r7, #16] + 8008436: 683b ldr r3, [r7, #0] + 8008438: 785b ldrb r3, [r3, #1] + 800843a: 2b01 cmp r3, #1 + 800843c: d14a bne.n 80084d4 + 800843e: 683b ldr r3, [r7, #0] + 8008440: 781b ldrb r3, [r3, #0] + 8008442: 015a lsls r2, r3, #5 + 8008444: 693b ldr r3, [r7, #16] + 8008446: 4413 add r3, r2 + 8008448: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800844c: 681b ldr r3, [r3, #0] + 800844e: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8008452: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8008456: f040 8086 bne.w 8008566 + 800845a: 683b ldr r3, [r7, #0] + 800845c: 781b ldrb r3, [r3, #0] + 800845e: 015a lsls r2, r3, #5 + 8008460: 693b ldr r3, [r7, #16] + 8008462: 4413 add r3, r2 + 8008464: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008468: 681b ldr r3, [r3, #0] + 800846a: 683a ldr r2, [r7, #0] + 800846c: 7812 ldrb r2, [r2, #0] + 800846e: 0151 lsls r1, r2, #5 + 8008470: 693a ldr r2, [r7, #16] + 8008472: 440a add r2, r1 + 8008474: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008478: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 800847c: 6013 str r3, [r2, #0] + 800847e: 683b ldr r3, [r7, #0] + 8008480: 781b ldrb r3, [r3, #0] + 8008482: 015a lsls r2, r3, #5 + 8008484: 693b ldr r3, [r7, #16] + 8008486: 4413 add r3, r2 + 8008488: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800848c: 681b ldr r3, [r3, #0] + 800848e: 683a ldr r2, [r7, #0] + 8008490: 7812 ldrb r2, [r2, #0] + 8008492: 0151 lsls r1, r2, #5 + 8008494: 693a ldr r2, [r7, #16] + 8008496: 440a add r2, r1 + 8008498: f502 6210 add.w r2, r2, #2304 @ 0x900 + 800849c: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 80084a0: 6013 str r3, [r2, #0] + 80084a2: 68fb ldr r3, [r7, #12] + 80084a4: 3301 adds r3, #1 + 80084a6: 60fb str r3, [r7, #12] + 80084a8: 68fb ldr r3, [r7, #12] + 80084aa: f242 7210 movw r2, #10000 @ 0x2710 + 80084ae: 4293 cmp r3, r2 + 80084b0: d902 bls.n 80084b8 + 80084b2: 2301 movs r3, #1 + 80084b4: 75fb strb r3, [r7, #23] + 80084b6: e056 b.n 8008566 + 80084b8: 683b ldr r3, [r7, #0] + 80084ba: 781b ldrb r3, [r3, #0] + 80084bc: 015a lsls r2, r3, #5 + 80084be: 693b ldr r3, [r7, #16] + 80084c0: 4413 add r3, r2 + 80084c2: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80084c6: 681b ldr r3, [r3, #0] + 80084c8: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 80084cc: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 80084d0: d0e7 beq.n 80084a2 + 80084d2: e048 b.n 8008566 + 80084d4: 683b ldr r3, [r7, #0] + 80084d6: 781b ldrb r3, [r3, #0] + 80084d8: 015a lsls r2, r3, #5 + 80084da: 693b ldr r3, [r7, #16] + 80084dc: 4413 add r3, r2 + 80084de: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80084e2: 681b ldr r3, [r3, #0] + 80084e4: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 80084e8: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 80084ec: d13b bne.n 8008566 + 80084ee: 683b ldr r3, [r7, #0] + 80084f0: 781b ldrb r3, [r3, #0] + 80084f2: 015a lsls r2, r3, #5 + 80084f4: 693b ldr r3, [r7, #16] + 80084f6: 4413 add r3, r2 + 80084f8: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80084fc: 681b ldr r3, [r3, #0] + 80084fe: 683a ldr r2, [r7, #0] + 8008500: 7812 ldrb r2, [r2, #0] + 8008502: 0151 lsls r1, r2, #5 + 8008504: 693a ldr r2, [r7, #16] + 8008506: 440a add r2, r1 + 8008508: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 800850c: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 8008510: 6013 str r3, [r2, #0] + 8008512: 683b ldr r3, [r7, #0] + 8008514: 781b ldrb r3, [r3, #0] + 8008516: 015a lsls r2, r3, #5 + 8008518: 693b ldr r3, [r7, #16] + 800851a: 4413 add r3, r2 + 800851c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008520: 681b ldr r3, [r3, #0] + 8008522: 683a ldr r2, [r7, #0] + 8008524: 7812 ldrb r2, [r2, #0] + 8008526: 0151 lsls r1, r2, #5 + 8008528: 693a ldr r2, [r7, #16] + 800852a: 440a add r2, r1 + 800852c: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008530: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 8008534: 6013 str r3, [r2, #0] + 8008536: 68fb ldr r3, [r7, #12] + 8008538: 3301 adds r3, #1 + 800853a: 60fb str r3, [r7, #12] + 800853c: 68fb ldr r3, [r7, #12] + 800853e: f242 7210 movw r2, #10000 @ 0x2710 + 8008542: 4293 cmp r3, r2 + 8008544: d902 bls.n 800854c + 8008546: 2301 movs r3, #1 + 8008548: 75fb strb r3, [r7, #23] + 800854a: e00c b.n 8008566 + 800854c: 683b ldr r3, [r7, #0] + 800854e: 781b ldrb r3, [r3, #0] + 8008550: 015a lsls r2, r3, #5 + 8008552: 693b ldr r3, [r7, #16] + 8008554: 4413 add r3, r2 + 8008556: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800855a: 681b ldr r3, [r3, #0] + 800855c: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8008560: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8008564: d0e7 beq.n 8008536 + 8008566: 7dfb ldrb r3, [r7, #23] + 8008568: 4618 mov r0, r3 + 800856a: 371c adds r7, #28 + 800856c: 46bd mov sp, r7 + 800856e: f85d 7b04 ldr.w r7, [sp], #4 + 8008572: 4770 bx lr - USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len); - 80083c2: 69bb ldr r3, [r7, #24] - 80083c4: 015a lsls r2, r3, #5 - 80083c6: 69fb ldr r3, [r7, #28] - 80083c8: 4413 add r3, r2 - 80083ca: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80083ce: 691a ldr r2, [r3, #16] - 80083d0: 68bb ldr r3, [r7, #8] - 80083d2: 691b ldr r3, [r3, #16] - 80083d4: f3c3 0312 ubfx r3, r3, #0, #19 - 80083d8: 69b9 ldr r1, [r7, #24] - 80083da: 0148 lsls r0, r1, #5 - 80083dc: 69f9 ldr r1, [r7, #28] - 80083de: 4401 add r1, r0 - 80083e0: f501 6110 add.w r1, r1, #2304 @ 0x900 - 80083e4: 4313 orrs r3, r2 - 80083e6: 610b str r3, [r1, #16] - } - - if (dma == 1U) - 80083e8: 79fb ldrb r3, [r7, #7] - 80083ea: 2b01 cmp r3, #1 - 80083ec: d14b bne.n 8008486 - { - if ((uint32_t)ep->dma_addr != 0U) - 80083ee: 68bb ldr r3, [r7, #8] - 80083f0: 69db ldr r3, [r3, #28] - 80083f2: 2b00 cmp r3, #0 - 80083f4: d009 beq.n 800840a - { - USBx_INEP(epnum)->DIEPDMA = (uint32_t)(ep->dma_addr); - 80083f6: 69bb ldr r3, [r7, #24] - 80083f8: 015a lsls r2, r3, #5 - 80083fa: 69fb ldr r3, [r7, #28] - 80083fc: 4413 add r3, r2 - 80083fe: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008402: 461a mov r2, r3 - 8008404: 68bb ldr r3, [r7, #8] - 8008406: 69db ldr r3, [r3, #28] - 8008408: 6153 str r3, [r2, #20] - } - - if (ep->type == EP_TYPE_ISOC) - 800840a: 68bb ldr r3, [r7, #8] - 800840c: 791b ldrb r3, [r3, #4] - 800840e: 2b01 cmp r3, #1 - 8008410: d128 bne.n 8008464 - { - if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U) - 8008412: 69fb ldr r3, [r7, #28] - 8008414: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008418: 689b ldr r3, [r3, #8] - 800841a: f403 7380 and.w r3, r3, #256 @ 0x100 - 800841e: 2b00 cmp r3, #0 - 8008420: d110 bne.n 8008444 - { - USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SODDFRM; - 8008422: 69bb ldr r3, [r7, #24] - 8008424: 015a lsls r2, r3, #5 - 8008426: 69fb ldr r3, [r7, #28] - 8008428: 4413 add r3, r2 - 800842a: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800842e: 681b ldr r3, [r3, #0] - 8008430: 69ba ldr r2, [r7, #24] - 8008432: 0151 lsls r1, r2, #5 - 8008434: 69fa ldr r2, [r7, #28] - 8008436: 440a add r2, r1 - 8008438: f502 6210 add.w r2, r2, #2304 @ 0x900 - 800843c: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 - 8008440: 6013 str r3, [r2, #0] - 8008442: e00f b.n 8008464 - } - else - { - USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM; - 8008444: 69bb ldr r3, [r7, #24] - 8008446: 015a lsls r2, r3, #5 - 8008448: 69fb ldr r3, [r7, #28] - 800844a: 4413 add r3, r2 - 800844c: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008450: 681b ldr r3, [r3, #0] - 8008452: 69ba ldr r2, [r7, #24] - 8008454: 0151 lsls r1, r2, #5 - 8008456: 69fa ldr r2, [r7, #28] - 8008458: 440a add r2, r1 - 800845a: f502 6210 add.w r2, r2, #2304 @ 0x900 - 800845e: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8008462: 6013 str r3, [r2, #0] - } - } - - /* EP enable, IN data in FIFO */ - USBx_INEP(epnum)->DIEPCTL |= (USB_OTG_DIEPCTL_CNAK | USB_OTG_DIEPCTL_EPENA); - 8008464: 69bb ldr r3, [r7, #24] - 8008466: 015a lsls r2, r3, #5 - 8008468: 69fb ldr r3, [r7, #28] - 800846a: 4413 add r3, r2 - 800846c: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008470: 681b ldr r3, [r3, #0] - 8008472: 69ba ldr r2, [r7, #24] - 8008474: 0151 lsls r1, r2, #5 - 8008476: 69fa ldr r2, [r7, #28] - 8008478: 440a add r2, r1 - 800847a: f502 6210 add.w r2, r2, #2304 @ 0x900 - 800847e: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 - 8008482: 6013 str r3, [r2, #0] - 8008484: e166 b.n 8008754 - } - else - { - /* EP enable, IN data in FIFO */ - USBx_INEP(epnum)->DIEPCTL |= (USB_OTG_DIEPCTL_CNAK | USB_OTG_DIEPCTL_EPENA); - 8008486: 69bb ldr r3, [r7, #24] - 8008488: 015a lsls r2, r3, #5 - 800848a: 69fb ldr r3, [r7, #28] - 800848c: 4413 add r3, r2 - 800848e: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008492: 681b ldr r3, [r3, #0] - 8008494: 69ba ldr r2, [r7, #24] - 8008496: 0151 lsls r1, r2, #5 - 8008498: 69fa ldr r2, [r7, #28] - 800849a: 440a add r2, r1 - 800849c: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80084a0: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 - 80084a4: 6013 str r3, [r2, #0] - - if (ep->type != EP_TYPE_ISOC) - 80084a6: 68bb ldr r3, [r7, #8] - 80084a8: 791b ldrb r3, [r3, #4] - 80084aa: 2b01 cmp r3, #1 - 80084ac: d015 beq.n 80084da - { - /* Enable the Tx FIFO Empty Interrupt for this EP */ - if (ep->xfer_len > 0U) - 80084ae: 68bb ldr r3, [r7, #8] - 80084b0: 691b ldr r3, [r3, #16] - 80084b2: 2b00 cmp r3, #0 - 80084b4: f000 814e beq.w 8008754 - { - USBx_DEVICE->DIEPEMPMSK |= 1UL << (ep->num & EP_ADDR_MSK); - 80084b8: 69fb ldr r3, [r7, #28] - 80084ba: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80084be: 6b5a ldr r2, [r3, #52] @ 0x34 - 80084c0: 68bb ldr r3, [r7, #8] - 80084c2: 781b ldrb r3, [r3, #0] - 80084c4: f003 030f and.w r3, r3, #15 - 80084c8: 2101 movs r1, #1 - 80084ca: fa01 f303 lsl.w r3, r1, r3 - 80084ce: 69f9 ldr r1, [r7, #28] - 80084d0: f501 6100 add.w r1, r1, #2048 @ 0x800 - 80084d4: 4313 orrs r3, r2 - 80084d6: 634b str r3, [r1, #52] @ 0x34 - 80084d8: e13c b.n 8008754 - } - } - else - { - if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U) - 80084da: 69fb ldr r3, [r7, #28] - 80084dc: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80084e0: 689b ldr r3, [r3, #8] - 80084e2: f403 7380 and.w r3, r3, #256 @ 0x100 - 80084e6: 2b00 cmp r3, #0 - 80084e8: d110 bne.n 800850c - { - USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SODDFRM; - 80084ea: 69bb ldr r3, [r7, #24] - 80084ec: 015a lsls r2, r3, #5 - 80084ee: 69fb ldr r3, [r7, #28] - 80084f0: 4413 add r3, r2 - 80084f2: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80084f6: 681b ldr r3, [r3, #0] - 80084f8: 69ba ldr r2, [r7, #24] - 80084fa: 0151 lsls r1, r2, #5 - 80084fc: 69fa ldr r2, [r7, #28] - 80084fe: 440a add r2, r1 - 8008500: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008504: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 - 8008508: 6013 str r3, [r2, #0] - 800850a: e00f b.n 800852c - } - else - { - USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM; - 800850c: 69bb ldr r3, [r7, #24] - 800850e: 015a lsls r2, r3, #5 - 8008510: 69fb ldr r3, [r7, #28] - 8008512: 4413 add r3, r2 - 8008514: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008518: 681b ldr r3, [r3, #0] - 800851a: 69ba ldr r2, [r7, #24] - 800851c: 0151 lsls r1, r2, #5 - 800851e: 69fa ldr r2, [r7, #28] - 8008520: 440a add r2, r1 - 8008522: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008526: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 800852a: 6013 str r3, [r2, #0] - } - - (void)USB_WritePacket(USBx, ep->xfer_buff, ep->num, (uint16_t)ep->xfer_len, dma); - 800852c: 68bb ldr r3, [r7, #8] - 800852e: 68d9 ldr r1, [r3, #12] - 8008530: 68bb ldr r3, [r7, #8] - 8008532: 781a ldrb r2, [r3, #0] - 8008534: 68bb ldr r3, [r7, #8] - 8008536: 691b ldr r3, [r3, #16] - 8008538: b298 uxth r0, r3 - 800853a: 79fb ldrb r3, [r7, #7] - 800853c: 9300 str r3, [sp, #0] - 800853e: 4603 mov r3, r0 - 8008540: 68f8 ldr r0, [r7, #12] - 8008542: f000 f9b9 bl 80088b8 - 8008546: e105 b.n 8008754 - { - /* Program the transfer size and packet count as follows: - * pktcnt = N - * xfersize = N * maxpacket - */ - USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_XFRSIZ); - 8008548: 69bb ldr r3, [r7, #24] - 800854a: 015a lsls r2, r3, #5 - 800854c: 69fb ldr r3, [r7, #28] - 800854e: 4413 add r3, r2 - 8008550: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008554: 691b ldr r3, [r3, #16] - 8008556: 69ba ldr r2, [r7, #24] - 8008558: 0151 lsls r1, r2, #5 - 800855a: 69fa ldr r2, [r7, #28] - 800855c: 440a add r2, r1 - 800855e: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008562: 0cdb lsrs r3, r3, #19 - 8008564: 04db lsls r3, r3, #19 - 8008566: 6113 str r3, [r2, #16] - USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_PKTCNT); - 8008568: 69bb ldr r3, [r7, #24] - 800856a: 015a lsls r2, r3, #5 - 800856c: 69fb ldr r3, [r7, #28] - 800856e: 4413 add r3, r2 - 8008570: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008574: 691b ldr r3, [r3, #16] - 8008576: 69ba ldr r2, [r7, #24] - 8008578: 0151 lsls r1, r2, #5 - 800857a: 69fa ldr r2, [r7, #28] - 800857c: 440a add r2, r1 - 800857e: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008582: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 - 8008586: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 - 800858a: 6113 str r3, [r2, #16] - - if (epnum == 0U) - 800858c: 69bb ldr r3, [r7, #24] - 800858e: 2b00 cmp r3, #0 - 8008590: d132 bne.n 80085f8 - { - if (ep->xfer_len > 0U) - 8008592: 68bb ldr r3, [r7, #8] - 8008594: 691b ldr r3, [r3, #16] +08008574 : + 8008574: b480 push {r7} + 8008576: b089 sub sp, #36 @ 0x24 + 8008578: af00 add r7, sp, #0 + 800857a: 60f8 str r0, [r7, #12] + 800857c: 60b9 str r1, [r7, #8] + 800857e: 4611 mov r1, r2 + 8008580: 461a mov r2, r3 + 8008582: 460b mov r3, r1 + 8008584: 71fb strb r3, [r7, #7] + 8008586: 4613 mov r3, r2 + 8008588: 80bb strh r3, [r7, #4] + 800858a: 68fb ldr r3, [r7, #12] + 800858c: 617b str r3, [r7, #20] + 800858e: 68bb ldr r3, [r7, #8] + 8008590: 61fb str r3, [r7, #28] + 8008592: f897 3028 ldrb.w r3, [r7, #40] @ 0x28 8008596: 2b00 cmp r3, #0 - 8008598: d003 beq.n 80085a2 - { - ep->xfer_len = ep->maxpacket; - 800859a: 68bb ldr r3, [r7, #8] - 800859c: 689a ldr r2, [r3, #8] - 800859e: 68bb ldr r3, [r7, #8] - 80085a0: 611a str r2, [r3, #16] - } + 8008598: d123 bne.n 80085e2 + 800859a: 88bb ldrh r3, [r7, #4] + 800859c: 3303 adds r3, #3 + 800859e: 089b lsrs r3, r3, #2 + 80085a0: 613b str r3, [r7, #16] + 80085a2: 2300 movs r3, #0 + 80085a4: 61bb str r3, [r7, #24] + 80085a6: e018 b.n 80085da + 80085a8: 79fb ldrb r3, [r7, #7] + 80085aa: 031a lsls r2, r3, #12 + 80085ac: 697b ldr r3, [r7, #20] + 80085ae: 4413 add r3, r2 + 80085b0: f503 5380 add.w r3, r3, #4096 @ 0x1000 + 80085b4: 461a mov r2, r3 + 80085b6: 69fb ldr r3, [r7, #28] + 80085b8: 681b ldr r3, [r3, #0] + 80085ba: 6013 str r3, [r2, #0] + 80085bc: 69fb ldr r3, [r7, #28] + 80085be: 3301 adds r3, #1 + 80085c0: 61fb str r3, [r7, #28] + 80085c2: 69fb ldr r3, [r7, #28] + 80085c4: 3301 adds r3, #1 + 80085c6: 61fb str r3, [r7, #28] + 80085c8: 69fb ldr r3, [r7, #28] + 80085ca: 3301 adds r3, #1 + 80085cc: 61fb str r3, [r7, #28] + 80085ce: 69fb ldr r3, [r7, #28] + 80085d0: 3301 adds r3, #1 + 80085d2: 61fb str r3, [r7, #28] + 80085d4: 69bb ldr r3, [r7, #24] + 80085d6: 3301 adds r3, #1 + 80085d8: 61bb str r3, [r7, #24] + 80085da: 69ba ldr r2, [r7, #24] + 80085dc: 693b ldr r3, [r7, #16] + 80085de: 429a cmp r2, r3 + 80085e0: d3e2 bcc.n 80085a8 + 80085e2: 2300 movs r3, #0 + 80085e4: 4618 mov r0, r3 + 80085e6: 3724 adds r7, #36 @ 0x24 + 80085e8: 46bd mov sp, r7 + 80085ea: f85d 7b04 ldr.w r7, [sp], #4 + 80085ee: 4770 bx lr - /* Store transfer size, for EP0 this is equal to endpoint max packet size */ - ep->xfer_size = ep->maxpacket; - 80085a2: 68bb ldr r3, [r7, #8] - 80085a4: 689a ldr r2, [r3, #8] - 80085a6: 68bb ldr r3, [r7, #8] - 80085a8: 621a str r2, [r3, #32] +080085f0 : + 80085f0: b480 push {r7} + 80085f2: b08b sub sp, #44 @ 0x2c + 80085f4: af00 add r7, sp, #0 + 80085f6: 60f8 str r0, [r7, #12] + 80085f8: 60b9 str r1, [r7, #8] + 80085fa: 4613 mov r3, r2 + 80085fc: 80fb strh r3, [r7, #6] + 80085fe: 68fb ldr r3, [r7, #12] + 8008600: 61bb str r3, [r7, #24] + 8008602: 68bb ldr r3, [r7, #8] + 8008604: 627b str r3, [r7, #36] @ 0x24 + 8008606: 88fb ldrh r3, [r7, #6] + 8008608: 089b lsrs r3, r3, #2 + 800860a: b29b uxth r3, r3 + 800860c: 617b str r3, [r7, #20] + 800860e: 88fb ldrh r3, [r7, #6] + 8008610: f003 0303 and.w r3, r3, #3 + 8008614: 83fb strh r3, [r7, #30] + 8008616: 2300 movs r3, #0 + 8008618: 623b str r3, [r7, #32] + 800861a: e014 b.n 8008646 + 800861c: 69bb ldr r3, [r7, #24] + 800861e: f503 5380 add.w r3, r3, #4096 @ 0x1000 + 8008622: 681a ldr r2, [r3, #0] + 8008624: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008626: 601a str r2, [r3, #0] + 8008628: 6a7b ldr r3, [r7, #36] @ 0x24 + 800862a: 3301 adds r3, #1 + 800862c: 627b str r3, [r7, #36] @ 0x24 + 800862e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008630: 3301 adds r3, #1 + 8008632: 627b str r3, [r7, #36] @ 0x24 + 8008634: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008636: 3301 adds r3, #1 + 8008638: 627b str r3, [r7, #36] @ 0x24 + 800863a: 6a7b ldr r3, [r7, #36] @ 0x24 + 800863c: 3301 adds r3, #1 + 800863e: 627b str r3, [r7, #36] @ 0x24 + 8008640: 6a3b ldr r3, [r7, #32] + 8008642: 3301 adds r3, #1 + 8008644: 623b str r3, [r7, #32] + 8008646: 6a3a ldr r2, [r7, #32] + 8008648: 697b ldr r3, [r7, #20] + 800864a: 429a cmp r2, r3 + 800864c: d3e6 bcc.n 800861c + 800864e: 8bfb ldrh r3, [r7, #30] + 8008650: 2b00 cmp r3, #0 + 8008652: d01e beq.n 8008692 + 8008654: 2300 movs r3, #0 + 8008656: 623b str r3, [r7, #32] + 8008658: 69bb ldr r3, [r7, #24] + 800865a: f503 5380 add.w r3, r3, #4096 @ 0x1000 + 800865e: 461a mov r2, r3 + 8008660: f107 0310 add.w r3, r7, #16 + 8008664: 6812 ldr r2, [r2, #0] + 8008666: 601a str r2, [r3, #0] + 8008668: 693a ldr r2, [r7, #16] + 800866a: 6a3b ldr r3, [r7, #32] + 800866c: b2db uxtb r3, r3 + 800866e: 00db lsls r3, r3, #3 + 8008670: fa22 f303 lsr.w r3, r2, r3 + 8008674: b2da uxtb r2, r3 + 8008676: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008678: 701a strb r2, [r3, #0] + 800867a: 6a3b ldr r3, [r7, #32] + 800867c: 3301 adds r3, #1 + 800867e: 623b str r3, [r7, #32] + 8008680: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008682: 3301 adds r3, #1 + 8008684: 627b str r3, [r7, #36] @ 0x24 + 8008686: 8bfb ldrh r3, [r7, #30] + 8008688: 3b01 subs r3, #1 + 800868a: 83fb strh r3, [r7, #30] + 800868c: 8bfb ldrh r3, [r7, #30] + 800868e: 2b00 cmp r3, #0 + 8008690: d1ea bne.n 8008668 + 8008692: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008694: 4618 mov r0, r3 + 8008696: 372c adds r7, #44 @ 0x2c + 8008698: 46bd mov sp, r7 + 800869a: f85d 7b04 ldr.w r7, [sp], #4 + 800869e: 4770 bx lr - USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & ep->xfer_size); - 80085aa: 69bb ldr r3, [r7, #24] - 80085ac: 015a lsls r2, r3, #5 - 80085ae: 69fb ldr r3, [r7, #28] - 80085b0: 4413 add r3, r2 - 80085b2: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80085b6: 691a ldr r2, [r3, #16] - 80085b8: 68bb ldr r3, [r7, #8] - 80085ba: 6a1b ldr r3, [r3, #32] - 80085bc: f3c3 0312 ubfx r3, r3, #0, #19 - 80085c0: 69b9 ldr r1, [r7, #24] - 80085c2: 0148 lsls r0, r1, #5 - 80085c4: 69f9 ldr r1, [r7, #28] - 80085c6: 4401 add r1, r0 - 80085c8: f501 6130 add.w r1, r1, #2816 @ 0xb00 - 80085cc: 4313 orrs r3, r2 - 80085ce: 610b str r3, [r1, #16] - USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); - 80085d0: 69bb ldr r3, [r7, #24] - 80085d2: 015a lsls r2, r3, #5 - 80085d4: 69fb ldr r3, [r7, #28] - 80085d6: 4413 add r3, r2 - 80085d8: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80085dc: 691b ldr r3, [r3, #16] - 80085de: 69ba ldr r2, [r7, #24] - 80085e0: 0151 lsls r1, r2, #5 - 80085e2: 69fa ldr r2, [r7, #28] - 80085e4: 440a add r2, r1 - 80085e6: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 80085ea: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 80085ee: 6113 str r3, [r2, #16] - 80085f0: e062 b.n 80086b8 - 80085f2: bf00 nop - 80085f4: 1ff80000 .word 0x1ff80000 - } - else - { - if (ep->xfer_len == 0U) - 80085f8: 68bb ldr r3, [r7, #8] - 80085fa: 691b ldr r3, [r3, #16] - 80085fc: 2b00 cmp r3, #0 - 80085fe: d123 bne.n 8008648 - { - USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & ep->maxpacket); - 8008600: 69bb ldr r3, [r7, #24] - 8008602: 015a lsls r2, r3, #5 - 8008604: 69fb ldr r3, [r7, #28] - 8008606: 4413 add r3, r2 - 8008608: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800860c: 691a ldr r2, [r3, #16] - 800860e: 68bb ldr r3, [r7, #8] - 8008610: 689b ldr r3, [r3, #8] - 8008612: f3c3 0312 ubfx r3, r3, #0, #19 - 8008616: 69b9 ldr r1, [r7, #24] - 8008618: 0148 lsls r0, r1, #5 - 800861a: 69f9 ldr r1, [r7, #28] - 800861c: 4401 add r1, r0 - 800861e: f501 6130 add.w r1, r1, #2816 @ 0xb00 - 8008622: 4313 orrs r3, r2 - 8008624: 610b str r3, [r1, #16] - USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); - 8008626: 69bb ldr r3, [r7, #24] - 8008628: 015a lsls r2, r3, #5 - 800862a: 69fb ldr r3, [r7, #28] - 800862c: 4413 add r3, r2 - 800862e: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008632: 691b ldr r3, [r3, #16] - 8008634: 69ba ldr r2, [r7, #24] - 8008636: 0151 lsls r1, r2, #5 - 8008638: 69fa ldr r2, [r7, #28] - 800863a: 440a add r2, r1 - 800863c: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008640: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 8008644: 6113 str r3, [r2, #16] - 8008646: e037 b.n 80086b8 - } - else - { - pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket); - 8008648: 68bb ldr r3, [r7, #8] - 800864a: 691a ldr r2, [r3, #16] - 800864c: 68bb ldr r3, [r7, #8] - 800864e: 689b ldr r3, [r3, #8] - 8008650: 4413 add r3, r2 - 8008652: 1e5a subs r2, r3, #1 - 8008654: 68bb ldr r3, [r7, #8] - 8008656: 689b ldr r3, [r3, #8] - 8008658: fbb2 f3f3 udiv r3, r2, r3 - 800865c: 82fb strh r3, [r7, #22] - ep->xfer_size = ep->maxpacket * pktcnt; - 800865e: 68bb ldr r3, [r7, #8] - 8008660: 689b ldr r3, [r3, #8] - 8008662: 8afa ldrh r2, [r7, #22] - 8008664: fb03 f202 mul.w r2, r3, r2 - 8008668: 68bb ldr r3, [r7, #8] - 800866a: 621a str r2, [r3, #32] - - USBx_OUTEP(epnum)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_PKTCNT & ((uint32_t)pktcnt << 19); - 800866c: 69bb ldr r3, [r7, #24] - 800866e: 015a lsls r2, r3, #5 - 8008670: 69fb ldr r3, [r7, #28] - 8008672: 4413 add r3, r2 - 8008674: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008678: 691a ldr r2, [r3, #16] - 800867a: 8afb ldrh r3, [r7, #22] - 800867c: 04d9 lsls r1, r3, #19 - 800867e: 4b38 ldr r3, [pc, #224] @ (8008760 ) - 8008680: 400b ands r3, r1 - 8008682: 69b9 ldr r1, [r7, #24] - 8008684: 0148 lsls r0, r1, #5 - 8008686: 69f9 ldr r1, [r7, #28] - 8008688: 4401 add r1, r0 - 800868a: f501 6130 add.w r1, r1, #2816 @ 0xb00 - 800868e: 4313 orrs r3, r2 - 8008690: 610b str r3, [r1, #16] - USBx_OUTEP(epnum)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_XFRSIZ & ep->xfer_size; - 8008692: 69bb ldr r3, [r7, #24] - 8008694: 015a lsls r2, r3, #5 - 8008696: 69fb ldr r3, [r7, #28] - 8008698: 4413 add r3, r2 - 800869a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800869e: 691a ldr r2, [r3, #16] - 80086a0: 68bb ldr r3, [r7, #8] - 80086a2: 6a1b ldr r3, [r3, #32] - 80086a4: f3c3 0312 ubfx r3, r3, #0, #19 - 80086a8: 69b9 ldr r1, [r7, #24] - 80086aa: 0148 lsls r0, r1, #5 - 80086ac: 69f9 ldr r1, [r7, #28] - 80086ae: 4401 add r1, r0 - 80086b0: f501 6130 add.w r1, r1, #2816 @ 0xb00 - 80086b4: 4313 orrs r3, r2 - 80086b6: 610b str r3, [r1, #16] - } - } - - if (dma == 1U) - 80086b8: 79fb ldrb r3, [r7, #7] - 80086ba: 2b01 cmp r3, #1 - 80086bc: d10d bne.n 80086da - { - if ((uint32_t)ep->xfer_buff != 0U) - 80086be: 68bb ldr r3, [r7, #8] - 80086c0: 68db ldr r3, [r3, #12] - 80086c2: 2b00 cmp r3, #0 - 80086c4: d009 beq.n 80086da - { - USBx_OUTEP(epnum)->DOEPDMA = (uint32_t)(ep->xfer_buff); - 80086c6: 68bb ldr r3, [r7, #8] - 80086c8: 68d9 ldr r1, [r3, #12] - 80086ca: 69bb ldr r3, [r7, #24] - 80086cc: 015a lsls r2, r3, #5 - 80086ce: 69fb ldr r3, [r7, #28] - 80086d0: 4413 add r3, r2 - 80086d2: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80086d6: 460a mov r2, r1 - 80086d8: 615a str r2, [r3, #20] - } - } - - if (ep->type == EP_TYPE_ISOC) - 80086da: 68bb ldr r3, [r7, #8] - 80086dc: 791b ldrb r3, [r3, #4] - 80086de: 2b01 cmp r3, #1 - 80086e0: d128 bne.n 8008734 - { - if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U) - 80086e2: 69fb ldr r3, [r7, #28] - 80086e4: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80086e8: 689b ldr r3, [r3, #8] - 80086ea: f403 7380 and.w r3, r3, #256 @ 0x100 - 80086ee: 2b00 cmp r3, #0 - 80086f0: d110 bne.n 8008714 - { - USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SODDFRM; - 80086f2: 69bb ldr r3, [r7, #24] - 80086f4: 015a lsls r2, r3, #5 - 80086f6: 69fb ldr r3, [r7, #28] - 80086f8: 4413 add r3, r2 - 80086fa: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80086fe: 681b ldr r3, [r3, #0] - 8008700: 69ba ldr r2, [r7, #24] - 8008702: 0151 lsls r1, r2, #5 - 8008704: 69fa ldr r2, [r7, #28] - 8008706: 440a add r2, r1 - 8008708: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 800870c: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 - 8008710: 6013 str r3, [r2, #0] - 8008712: e00f b.n 8008734 - } - else - { - USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SD0PID_SEVNFRM; - 8008714: 69bb ldr r3, [r7, #24] - 8008716: 015a lsls r2, r3, #5 - 8008718: 69fb ldr r3, [r7, #28] - 800871a: 4413 add r3, r2 - 800871c: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008720: 681b ldr r3, [r3, #0] - 8008722: 69ba ldr r2, [r7, #24] - 8008724: 0151 lsls r1, r2, #5 - 8008726: 69fa ldr r2, [r7, #28] - 8008728: 440a add r2, r1 - 800872a: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 800872e: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8008732: 6013 str r3, [r2, #0] - } - } - /* EP enable */ - USBx_OUTEP(epnum)->DOEPCTL |= (USB_OTG_DOEPCTL_CNAK | USB_OTG_DOEPCTL_EPENA); - 8008734: 69bb ldr r3, [r7, #24] - 8008736: 015a lsls r2, r3, #5 - 8008738: 69fb ldr r3, [r7, #28] - 800873a: 4413 add r3, r2 - 800873c: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008740: 681b ldr r3, [r3, #0] - 8008742: 69ba ldr r2, [r7, #24] - 8008744: 0151 lsls r1, r2, #5 - 8008746: 69fa ldr r2, [r7, #28] - 8008748: 440a add r2, r1 - 800874a: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 800874e: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 - 8008752: 6013 str r3, [r2, #0] - } - - return HAL_OK; - 8008754: 2300 movs r3, #0 -} - 8008756: 4618 mov r0, r3 - 8008758: 3720 adds r7, #32 - 800875a: 46bd mov sp, r7 - 800875c: bd80 pop {r7, pc} - 800875e: bf00 nop - 8008760: 1ff80000 .word 0x1ff80000 - -08008764 : - * @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) -{ - 8008764: b480 push {r7} - 8008766: b087 sub sp, #28 - 8008768: af00 add r7, sp, #0 - 800876a: 6078 str r0, [r7, #4] - 800876c: 6039 str r1, [r7, #0] - __IO uint32_t count = 0U; +080086a0 : + 80086a0: b480 push {r7} + 80086a2: b085 sub sp, #20 + 80086a4: af00 add r7, sp, #0 + 80086a6: 6078 str r0, [r7, #4] + 80086a8: 6039 str r1, [r7, #0] + 80086aa: 687b ldr r3, [r7, #4] + 80086ac: 60fb str r3, [r7, #12] + 80086ae: 683b ldr r3, [r7, #0] + 80086b0: 781b ldrb r3, [r3, #0] + 80086b2: 60bb str r3, [r7, #8] + 80086b4: 683b ldr r3, [r7, #0] + 80086b6: 785b ldrb r3, [r3, #1] + 80086b8: 2b01 cmp r3, #1 + 80086ba: d12c bne.n 8008716 + 80086bc: 68bb ldr r3, [r7, #8] + 80086be: 015a lsls r2, r3, #5 + 80086c0: 68fb ldr r3, [r7, #12] + 80086c2: 4413 add r3, r2 + 80086c4: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80086c8: 681b ldr r3, [r3, #0] + 80086ca: 2b00 cmp r3, #0 + 80086cc: db12 blt.n 80086f4 + 80086ce: 68bb ldr r3, [r7, #8] + 80086d0: 2b00 cmp r3, #0 + 80086d2: d00f beq.n 80086f4 + 80086d4: 68bb ldr r3, [r7, #8] + 80086d6: 015a lsls r2, r3, #5 + 80086d8: 68fb ldr r3, [r7, #12] + 80086da: 4413 add r3, r2 + 80086dc: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80086e0: 681b ldr r3, [r3, #0] + 80086e2: 68ba ldr r2, [r7, #8] + 80086e4: 0151 lsls r1, r2, #5 + 80086e6: 68fa ldr r2, [r7, #12] + 80086e8: 440a add r2, r1 + 80086ea: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80086ee: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000 + 80086f2: 6013 str r3, [r2, #0] + 80086f4: 68bb ldr r3, [r7, #8] + 80086f6: 015a lsls r2, r3, #5 + 80086f8: 68fb ldr r3, [r7, #12] + 80086fa: 4413 add r3, r2 + 80086fc: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008700: 681b ldr r3, [r3, #0] + 8008702: 68ba ldr r2, [r7, #8] + 8008704: 0151 lsls r1, r2, #5 + 8008706: 68fa ldr r2, [r7, #12] + 8008708: 440a add r2, r1 + 800870a: f502 6210 add.w r2, r2, #2304 @ 0x900 + 800870e: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 + 8008712: 6013 str r3, [r2, #0] + 8008714: e02b b.n 800876e + 8008716: 68bb ldr r3, [r7, #8] + 8008718: 015a lsls r2, r3, #5 + 800871a: 68fb ldr r3, [r7, #12] + 800871c: 4413 add r3, r2 + 800871e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008722: 681b ldr r3, [r3, #0] + 8008724: 2b00 cmp r3, #0 + 8008726: db12 blt.n 800874e + 8008728: 68bb ldr r3, [r7, #8] + 800872a: 2b00 cmp r3, #0 + 800872c: d00f beq.n 800874e + 800872e: 68bb ldr r3, [r7, #8] + 8008730: 015a lsls r2, r3, #5 + 8008732: 68fb ldr r3, [r7, #12] + 8008734: 4413 add r3, r2 + 8008736: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800873a: 681b ldr r3, [r3, #0] + 800873c: 68ba ldr r2, [r7, #8] + 800873e: 0151 lsls r1, r2, #5 + 8008740: 68fa ldr r2, [r7, #12] + 8008742: 440a add r2, r1 + 8008744: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008748: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000 + 800874c: 6013 str r3, [r2, #0] + 800874e: 68bb ldr r3, [r7, #8] + 8008750: 015a lsls r2, r3, #5 + 8008752: 68fb ldr r3, [r7, #12] + 8008754: 4413 add r3, r2 + 8008756: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800875a: 681b ldr r3, [r3, #0] + 800875c: 68ba ldr r2, [r7, #8] + 800875e: 0151 lsls r1, r2, #5 + 8008760: 68fa ldr r2, [r7, #12] + 8008762: 440a add r2, r1 + 8008764: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008768: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 + 800876c: 6013 str r3, [r2, #0] 800876e: 2300 movs r3, #0 - 8008770: 60fb str r3, [r7, #12] - HAL_StatusTypeDef ret = HAL_OK; - 8008772: 2300 movs r3, #0 - 8008774: 75fb strb r3, [r7, #23] - uint32_t USBx_BASE = (uint32_t)USBx; - 8008776: 687b ldr r3, [r7, #4] - 8008778: 613b str r3, [r7, #16] + 8008770: 4618 mov r0, r3 + 8008772: 3714 adds r7, #20 + 8008774: 46bd mov sp, r7 + 8008776: f85d 7b04 ldr.w r7, [sp], #4 + 800877a: 4770 bx lr - /* IN endpoint */ - if (ep->is_in == 1U) - 800877a: 683b ldr r3, [r7, #0] - 800877c: 785b ldrb r3, [r3, #1] - 800877e: 2b01 cmp r3, #1 - 8008780: d14a bne.n 8008818 - { - /* EP enable, IN data in FIFO */ - if (((USBx_INEP(ep->num)->DIEPCTL) & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) - 8008782: 683b ldr r3, [r7, #0] - 8008784: 781b ldrb r3, [r3, #0] - 8008786: 015a lsls r2, r3, #5 - 8008788: 693b ldr r3, [r7, #16] - 800878a: 4413 add r3, r2 - 800878c: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008790: 681b ldr r3, [r3, #0] - 8008792: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8008796: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 800879a: f040 8086 bne.w 80088aa - { - USBx_INEP(ep->num)->DIEPCTL |= (USB_OTG_DIEPCTL_SNAK); - 800879e: 683b ldr r3, [r7, #0] - 80087a0: 781b ldrb r3, [r3, #0] - 80087a2: 015a lsls r2, r3, #5 - 80087a4: 693b ldr r3, [r7, #16] - 80087a6: 4413 add r3, r2 - 80087a8: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80087ac: 681b ldr r3, [r3, #0] - 80087ae: 683a ldr r2, [r7, #0] - 80087b0: 7812 ldrb r2, [r2, #0] - 80087b2: 0151 lsls r1, r2, #5 - 80087b4: 693a ldr r2, [r7, #16] - 80087b6: 440a add r2, r1 - 80087b8: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80087bc: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 80087c0: 6013 str r3, [r2, #0] - USBx_INEP(ep->num)->DIEPCTL |= (USB_OTG_DIEPCTL_EPDIS); - 80087c2: 683b ldr r3, [r7, #0] - 80087c4: 781b ldrb r3, [r3, #0] - 80087c6: 015a lsls r2, r3, #5 - 80087c8: 693b ldr r3, [r7, #16] - 80087ca: 4413 add r3, r2 - 80087cc: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80087d0: 681b ldr r3, [r3, #0] - 80087d2: 683a ldr r2, [r7, #0] - 80087d4: 7812 ldrb r2, [r2, #0] - 80087d6: 0151 lsls r1, r2, #5 - 80087d8: 693a ldr r2, [r7, #16] - 80087da: 440a add r2, r1 - 80087dc: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80087e0: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 80087e4: 6013 str r3, [r2, #0] - - do - { - count++; - 80087e6: 68fb ldr r3, [r7, #12] - 80087e8: 3301 adds r3, #1 - 80087ea: 60fb str r3, [r7, #12] - - if (count > 10000U) - 80087ec: 68fb ldr r3, [r7, #12] - 80087ee: f242 7210 movw r2, #10000 @ 0x2710 - 80087f2: 4293 cmp r3, r2 - 80087f4: d902 bls.n 80087fc - { - ret = HAL_ERROR; - 80087f6: 2301 movs r3, #1 - 80087f8: 75fb strb r3, [r7, #23] - break; - 80087fa: e056 b.n 80088aa - } - } while (((USBx_INEP(ep->num)->DIEPCTL) & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA); - 80087fc: 683b ldr r3, [r7, #0] - 80087fe: 781b ldrb r3, [r3, #0] - 8008800: 015a lsls r2, r3, #5 - 8008802: 693b ldr r3, [r7, #16] - 8008804: 4413 add r3, r2 - 8008806: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800880a: 681b ldr r3, [r3, #0] - 800880c: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8008810: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8008814: d0e7 beq.n 80087e6 - 8008816: e048 b.n 80088aa - } - } - else /* OUT endpoint */ - { - if (((USBx_OUTEP(ep->num)->DOEPCTL) & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) - 8008818: 683b ldr r3, [r7, #0] - 800881a: 781b ldrb r3, [r3, #0] +0800877c : + 800877c: b480 push {r7} + 800877e: b085 sub sp, #20 + 8008780: af00 add r7, sp, #0 + 8008782: 6078 str r0, [r7, #4] + 8008784: 6039 str r1, [r7, #0] + 8008786: 687b ldr r3, [r7, #4] + 8008788: 60fb str r3, [r7, #12] + 800878a: 683b ldr r3, [r7, #0] + 800878c: 781b ldrb r3, [r3, #0] + 800878e: 60bb str r3, [r7, #8] + 8008790: 683b ldr r3, [r7, #0] + 8008792: 785b ldrb r3, [r3, #1] + 8008794: 2b01 cmp r3, #1 + 8008796: d128 bne.n 80087ea + 8008798: 68bb ldr r3, [r7, #8] + 800879a: 015a lsls r2, r3, #5 + 800879c: 68fb ldr r3, [r7, #12] + 800879e: 4413 add r3, r2 + 80087a0: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80087a4: 681b ldr r3, [r3, #0] + 80087a6: 68ba ldr r2, [r7, #8] + 80087a8: 0151 lsls r1, r2, #5 + 80087aa: 68fa ldr r2, [r7, #12] + 80087ac: 440a add r2, r1 + 80087ae: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80087b2: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 + 80087b6: 6013 str r3, [r2, #0] + 80087b8: 683b ldr r3, [r7, #0] + 80087ba: 791b ldrb r3, [r3, #4] + 80087bc: 2b03 cmp r3, #3 + 80087be: d003 beq.n 80087c8 + 80087c0: 683b ldr r3, [r7, #0] + 80087c2: 791b ldrb r3, [r3, #4] + 80087c4: 2b02 cmp r3, #2 + 80087c6: d138 bne.n 800883a + 80087c8: 68bb ldr r3, [r7, #8] + 80087ca: 015a lsls r2, r3, #5 + 80087cc: 68fb ldr r3, [r7, #12] + 80087ce: 4413 add r3, r2 + 80087d0: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80087d4: 681b ldr r3, [r3, #0] + 80087d6: 68ba ldr r2, [r7, #8] + 80087d8: 0151 lsls r1, r2, #5 + 80087da: 68fa ldr r2, [r7, #12] + 80087dc: 440a add r2, r1 + 80087de: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80087e2: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80087e6: 6013 str r3, [r2, #0] + 80087e8: e027 b.n 800883a + 80087ea: 68bb ldr r3, [r7, #8] + 80087ec: 015a lsls r2, r3, #5 + 80087ee: 68fb ldr r3, [r7, #12] + 80087f0: 4413 add r3, r2 + 80087f2: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80087f6: 681b ldr r3, [r3, #0] + 80087f8: 68ba ldr r2, [r7, #8] + 80087fa: 0151 lsls r1, r2, #5 + 80087fc: 68fa ldr r2, [r7, #12] + 80087fe: 440a add r2, r1 + 8008800: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008804: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 + 8008808: 6013 str r3, [r2, #0] + 800880a: 683b ldr r3, [r7, #0] + 800880c: 791b ldrb r3, [r3, #4] + 800880e: 2b03 cmp r3, #3 + 8008810: d003 beq.n 800881a + 8008812: 683b ldr r3, [r7, #0] + 8008814: 791b ldrb r3, [r3, #4] + 8008816: 2b02 cmp r3, #2 + 8008818: d10f bne.n 800883a + 800881a: 68bb ldr r3, [r7, #8] 800881c: 015a lsls r2, r3, #5 - 800881e: 693b ldr r3, [r7, #16] + 800881e: 68fb ldr r3, [r7, #12] 8008820: 4413 add r3, r2 8008822: f503 6330 add.w r3, r3, #2816 @ 0xb00 8008826: 681b ldr r3, [r3, #0] - 8008828: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 800882c: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8008830: d13b bne.n 80088aa - { - USBx_OUTEP(ep->num)->DOEPCTL |= (USB_OTG_DOEPCTL_SNAK); - 8008832: 683b ldr r3, [r7, #0] - 8008834: 781b ldrb r3, [r3, #0] - 8008836: 015a lsls r2, r3, #5 - 8008838: 693b ldr r3, [r7, #16] - 800883a: 4413 add r3, r2 - 800883c: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008840: 681b ldr r3, [r3, #0] - 8008842: 683a ldr r2, [r7, #0] - 8008844: 7812 ldrb r2, [r2, #0] - 8008846: 0151 lsls r1, r2, #5 - 8008848: 693a ldr r2, [r7, #16] - 800884a: 440a add r2, r1 - 800884c: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008850: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 8008854: 6013 str r3, [r2, #0] - USBx_OUTEP(ep->num)->DOEPCTL |= (USB_OTG_DOEPCTL_EPDIS); - 8008856: 683b ldr r3, [r7, #0] - 8008858: 781b ldrb r3, [r3, #0] - 800885a: 015a lsls r2, r3, #5 - 800885c: 693b ldr r3, [r7, #16] - 800885e: 4413 add r3, r2 - 8008860: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008864: 681b ldr r3, [r3, #0] - 8008866: 683a ldr r2, [r7, #0] - 8008868: 7812 ldrb r2, [r2, #0] - 800886a: 0151 lsls r1, r2, #5 - 800886c: 693a ldr r2, [r7, #16] - 800886e: 440a add r2, r1 - 8008870: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008874: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 8008878: 6013 str r3, [r2, #0] + 8008828: 68ba ldr r2, [r7, #8] + 800882a: 0151 lsls r1, r2, #5 + 800882c: 68fa ldr r2, [r7, #12] + 800882e: 440a add r2, r1 + 8008830: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008834: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8008838: 6013 str r3, [r2, #0] + 800883a: 2300 movs r3, #0 + 800883c: 4618 mov r0, r3 + 800883e: 3714 adds r7, #20 + 8008840: 46bd mov sp, r7 + 8008842: f85d 7b04 ldr.w r7, [sp], #4 + 8008846: 4770 bx lr - do - { - count++; - 800887a: 68fb ldr r3, [r7, #12] - 800887c: 3301 adds r3, #1 - 800887e: 60fb str r3, [r7, #12] +08008848 : + 8008848: b480 push {r7} + 800884a: b085 sub sp, #20 + 800884c: af00 add r7, sp, #0 + 800884e: 6078 str r0, [r7, #4] + 8008850: 460b mov r3, r1 + 8008852: 70fb strb r3, [r7, #3] + 8008854: 687b ldr r3, [r7, #4] + 8008856: 60fb str r3, [r7, #12] + 8008858: 68fb ldr r3, [r7, #12] + 800885a: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800885e: 681b ldr r3, [r3, #0] + 8008860: 68fa ldr r2, [r7, #12] + 8008862: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8008866: f423 63fe bic.w r3, r3, #2032 @ 0x7f0 + 800886a: 6013 str r3, [r2, #0] + 800886c: 68fb ldr r3, [r7, #12] + 800886e: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008872: 681a ldr r2, [r3, #0] + 8008874: 78fb ldrb r3, [r7, #3] + 8008876: 011b lsls r3, r3, #4 + 8008878: f403 63fe and.w r3, r3, #2032 @ 0x7f0 + 800887c: 68f9 ldr r1, [r7, #12] + 800887e: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8008882: 4313 orrs r3, r2 + 8008884: 600b str r3, [r1, #0] + 8008886: 2300 movs r3, #0 + 8008888: 4618 mov r0, r3 + 800888a: 3714 adds r7, #20 + 800888c: 46bd mov sp, r7 + 800888e: f85d 7b04 ldr.w r7, [sp], #4 + 8008892: 4770 bx lr - if (count > 10000U) - 8008880: 68fb ldr r3, [r7, #12] - 8008882: f242 7210 movw r2, #10000 @ 0x2710 - 8008886: 4293 cmp r3, r2 - 8008888: d902 bls.n 8008890 - { - ret = HAL_ERROR; - 800888a: 2301 movs r3, #1 - 800888c: 75fb strb r3, [r7, #23] - break; - 800888e: e00c b.n 80088aa - } - } while (((USBx_OUTEP(ep->num)->DOEPCTL) & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA); - 8008890: 683b ldr r3, [r7, #0] - 8008892: 781b ldrb r3, [r3, #0] - 8008894: 015a lsls r2, r3, #5 - 8008896: 693b ldr r3, [r7, #16] - 8008898: 4413 add r3, r2 - 800889a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800889e: 681b ldr r3, [r3, #0] - 80088a0: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 80088a4: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 80088a8: d0e7 beq.n 800887a - } - } +08008894 : + 8008894: b480 push {r7} + 8008896: b085 sub sp, #20 + 8008898: af00 add r7, sp, #0 + 800889a: 6078 str r0, [r7, #4] + 800889c: 687b ldr r3, [r7, #4] + 800889e: 60fb str r3, [r7, #12] + 80088a0: 68fb ldr r3, [r7, #12] + 80088a2: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 80088a6: 681b ldr r3, [r3, #0] + 80088a8: 68fa ldr r2, [r7, #12] + 80088aa: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 80088ae: f023 0303 bic.w r3, r3, #3 + 80088b2: 6013 str r3, [r2, #0] + 80088b4: 68fb ldr r3, [r7, #12] + 80088b6: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80088ba: 685b ldr r3, [r3, #4] + 80088bc: 68fa ldr r2, [r7, #12] + 80088be: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80088c2: f023 0302 bic.w r3, r3, #2 + 80088c6: 6053 str r3, [r2, #4] + 80088c8: 2300 movs r3, #0 + 80088ca: 4618 mov r0, r3 + 80088cc: 3714 adds r7, #20 + 80088ce: 46bd mov sp, r7 + 80088d0: f85d 7b04 ldr.w r7, [sp], #4 + 80088d4: 4770 bx lr - return ret; - 80088aa: 7dfb ldrb r3, [r7, #23] -} - 80088ac: 4618 mov r0, r3 - 80088ae: 371c adds r7, #28 - 80088b0: 46bd mov sp, r7 - 80088b2: f85d 7b04 ldr.w r7, [sp], #4 - 80088b6: 4770 bx lr +080088d6 : + 80088d6: b480 push {r7} + 80088d8: b085 sub sp, #20 + 80088da: af00 add r7, sp, #0 + 80088dc: 6078 str r0, [r7, #4] + 80088de: 687b ldr r3, [r7, #4] + 80088e0: 60fb str r3, [r7, #12] + 80088e2: 68fb ldr r3, [r7, #12] + 80088e4: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 80088e8: 681b ldr r3, [r3, #0] + 80088ea: 68fa ldr r2, [r7, #12] + 80088ec: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 80088f0: f023 0303 bic.w r3, r3, #3 + 80088f4: 6013 str r3, [r2, #0] + 80088f6: 68fb ldr r3, [r7, #12] + 80088f8: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80088fc: 685b ldr r3, [r3, #4] + 80088fe: 68fa ldr r2, [r7, #12] + 8008900: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8008904: f043 0302 orr.w r3, r3, #2 + 8008908: 6053 str r3, [r2, #4] + 800890a: 2300 movs r3, #0 + 800890c: 4618 mov r0, r3 + 800890e: 3714 adds r7, #20 + 8008910: 46bd mov sp, r7 + 8008912: f85d 7b04 ldr.w r7, [sp], #4 + 8008916: 4770 bx lr -080088b8 : - * 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) -{ - 80088b8: b480 push {r7} - 80088ba: b089 sub sp, #36 @ 0x24 - 80088bc: af00 add r7, sp, #0 - 80088be: 60f8 str r0, [r7, #12] - 80088c0: 60b9 str r1, [r7, #8] - 80088c2: 4611 mov r1, r2 - 80088c4: 461a mov r2, r3 - 80088c6: 460b mov r3, r1 - 80088c8: 71fb strb r3, [r7, #7] - 80088ca: 4613 mov r3, r2 - 80088cc: 80bb strh r3, [r7, #4] - uint32_t USBx_BASE = (uint32_t)USBx; - 80088ce: 68fb ldr r3, [r7, #12] - 80088d0: 617b str r3, [r7, #20] - uint8_t *pSrc = src; - 80088d2: 68bb ldr r3, [r7, #8] - 80088d4: 61fb str r3, [r7, #28] - uint32_t count32b; - uint32_t i; +08008918 : + 8008918: b480 push {r7} + 800891a: b085 sub sp, #20 + 800891c: af00 add r7, sp, #0 + 800891e: 6078 str r0, [r7, #4] + 8008920: 687b ldr r3, [r7, #4] + 8008922: 695b ldr r3, [r3, #20] + 8008924: 60fb str r3, [r7, #12] + 8008926: 687b ldr r3, [r7, #4] + 8008928: 699b ldr r3, [r3, #24] + 800892a: 68fa ldr r2, [r7, #12] + 800892c: 4013 ands r3, r2 + 800892e: 60fb str r3, [r7, #12] + 8008930: 68fb ldr r3, [r7, #12] + 8008932: 4618 mov r0, r3 + 8008934: 3714 adds r7, #20 + 8008936: 46bd mov sp, r7 + 8008938: f85d 7b04 ldr.w r7, [sp], #4 + 800893c: 4770 bx lr - if (dma == 0U) - 80088d6: f897 3028 ldrb.w r3, [r7, #40] @ 0x28 - 80088da: 2b00 cmp r3, #0 - 80088dc: d123 bne.n 8008926 - { - count32b = ((uint32_t)len + 3U) / 4U; - 80088de: 88bb ldrh r3, [r7, #4] - 80088e0: 3303 adds r3, #3 - 80088e2: 089b lsrs r3, r3, #2 - 80088e4: 613b str r3, [r7, #16] - for (i = 0U; i < count32b; i++) - 80088e6: 2300 movs r3, #0 - 80088e8: 61bb str r3, [r7, #24] - 80088ea: e018 b.n 800891e - { - USBx_DFIFO((uint32_t)ch_ep_num) = __UNALIGNED_UINT32_READ(pSrc); - 80088ec: 79fb ldrb r3, [r7, #7] - 80088ee: 031a lsls r2, r3, #12 - 80088f0: 697b ldr r3, [r7, #20] - 80088f2: 4413 add r3, r2 - 80088f4: f503 5380 add.w r3, r3, #4096 @ 0x1000 - 80088f8: 461a mov r2, r3 - 80088fa: 69fb ldr r3, [r7, #28] - 80088fc: 681b ldr r3, [r3, #0] - 80088fe: 6013 str r3, [r2, #0] - pSrc++; - 8008900: 69fb ldr r3, [r7, #28] - 8008902: 3301 adds r3, #1 - 8008904: 61fb str r3, [r7, #28] - pSrc++; - 8008906: 69fb ldr r3, [r7, #28] - 8008908: 3301 adds r3, #1 - 800890a: 61fb str r3, [r7, #28] - pSrc++; - 800890c: 69fb ldr r3, [r7, #28] - 800890e: 3301 adds r3, #1 - 8008910: 61fb str r3, [r7, #28] - pSrc++; - 8008912: 69fb ldr r3, [r7, #28] - 8008914: 3301 adds r3, #1 - 8008916: 61fb str r3, [r7, #28] - for (i = 0U; i < count32b; i++) - 8008918: 69bb ldr r3, [r7, #24] - 800891a: 3301 adds r3, #1 - 800891c: 61bb str r3, [r7, #24] - 800891e: 69ba ldr r2, [r7, #24] - 8008920: 693b ldr r3, [r7, #16] - 8008922: 429a cmp r2, r3 - 8008924: d3e2 bcc.n 80088ec - } - } +0800893e : + 800893e: b480 push {r7} + 8008940: b085 sub sp, #20 + 8008942: af00 add r7, sp, #0 + 8008944: 6078 str r0, [r7, #4] + 8008946: 687b ldr r3, [r7, #4] + 8008948: 60fb str r3, [r7, #12] + 800894a: 68fb ldr r3, [r7, #12] + 800894c: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008950: 699b ldr r3, [r3, #24] + 8008952: 60bb str r3, [r7, #8] + 8008954: 68fb ldr r3, [r7, #12] + 8008956: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800895a: 69db ldr r3, [r3, #28] + 800895c: 68ba ldr r2, [r7, #8] + 800895e: 4013 ands r3, r2 + 8008960: 60bb str r3, [r7, #8] + 8008962: 68bb ldr r3, [r7, #8] + 8008964: 0c1b lsrs r3, r3, #16 + 8008966: 4618 mov r0, r3 + 8008968: 3714 adds r7, #20 + 800896a: 46bd mov sp, r7 + 800896c: f85d 7b04 ldr.w r7, [sp], #4 + 8008970: 4770 bx lr - return HAL_OK; - 8008926: 2300 movs r3, #0 -} - 8008928: 4618 mov r0, r3 - 800892a: 3724 adds r7, #36 @ 0x24 - 800892c: 46bd mov sp, r7 - 800892e: f85d 7b04 ldr.w r7, [sp], #4 - 8008932: 4770 bx lr +08008972 : + 8008972: b480 push {r7} + 8008974: b085 sub sp, #20 + 8008976: af00 add r7, sp, #0 + 8008978: 6078 str r0, [r7, #4] + 800897a: 687b ldr r3, [r7, #4] + 800897c: 60fb str r3, [r7, #12] + 800897e: 68fb ldr r3, [r7, #12] + 8008980: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008984: 699b ldr r3, [r3, #24] + 8008986: 60bb str r3, [r7, #8] + 8008988: 68fb ldr r3, [r7, #12] + 800898a: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800898e: 69db ldr r3, [r3, #28] + 8008990: 68ba ldr r2, [r7, #8] + 8008992: 4013 ands r3, r2 + 8008994: 60bb str r3, [r7, #8] + 8008996: 68bb ldr r3, [r7, #8] + 8008998: b29b uxth r3, r3 + 800899a: 4618 mov r0, r3 + 800899c: 3714 adds r7, #20 + 800899e: 46bd mov sp, r7 + 80089a0: f85d 7b04 ldr.w r7, [sp], #4 + 80089a4: 4770 bx lr -08008934 : - * @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) -{ - 8008934: b480 push {r7} - 8008936: b08b sub sp, #44 @ 0x2c - 8008938: af00 add r7, sp, #0 - 800893a: 60f8 str r0, [r7, #12] - 800893c: 60b9 str r1, [r7, #8] - 800893e: 4613 mov r3, r2 - 8008940: 80fb strh r3, [r7, #6] - uint32_t USBx_BASE = (uint32_t)USBx; - 8008942: 68fb ldr r3, [r7, #12] - 8008944: 61bb str r3, [r7, #24] - uint8_t *pDest = dest; - 8008946: 68bb ldr r3, [r7, #8] - 8008948: 627b str r3, [r7, #36] @ 0x24 - uint32_t pData; - uint32_t i; - uint32_t count32b = (uint32_t)len >> 2U; - 800894a: 88fb ldrh r3, [r7, #6] - 800894c: 089b lsrs r3, r3, #2 - 800894e: b29b uxth r3, r3 - 8008950: 617b str r3, [r7, #20] - uint16_t remaining_bytes = len % 4U; - 8008952: 88fb ldrh r3, [r7, #6] - 8008954: f003 0303 and.w r3, r3, #3 - 8008958: 83fb strh r3, [r7, #30] +080089a6 : + 80089a6: b480 push {r7} + 80089a8: b085 sub sp, #20 + 80089aa: af00 add r7, sp, #0 + 80089ac: 6078 str r0, [r7, #4] + 80089ae: 460b mov r3, r1 + 80089b0: 70fb strb r3, [r7, #3] + 80089b2: 687b ldr r3, [r7, #4] + 80089b4: 60fb str r3, [r7, #12] + 80089b6: 78fb ldrb r3, [r7, #3] + 80089b8: 015a lsls r2, r3, #5 + 80089ba: 68fb ldr r3, [r7, #12] + 80089bc: 4413 add r3, r2 + 80089be: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80089c2: 689b ldr r3, [r3, #8] + 80089c4: 60bb str r3, [r7, #8] + 80089c6: 68fb ldr r3, [r7, #12] + 80089c8: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80089cc: 695b ldr r3, [r3, #20] + 80089ce: 68ba ldr r2, [r7, #8] + 80089d0: 4013 ands r3, r2 + 80089d2: 60bb str r3, [r7, #8] + 80089d4: 68bb ldr r3, [r7, #8] + 80089d6: 4618 mov r0, r3 + 80089d8: 3714 adds r7, #20 + 80089da: 46bd mov sp, r7 + 80089dc: f85d 7b04 ldr.w r7, [sp], #4 + 80089e0: 4770 bx lr - for (i = 0U; i < count32b; i++) - 800895a: 2300 movs r3, #0 - 800895c: 623b str r3, [r7, #32] - 800895e: e014 b.n 800898a - { - __UNALIGNED_UINT32_WRITE(pDest, USBx_DFIFO(0U)); - 8008960: 69bb ldr r3, [r7, #24] - 8008962: f503 5380 add.w r3, r3, #4096 @ 0x1000 - 8008966: 681a ldr r2, [r3, #0] - 8008968: 6a7b ldr r3, [r7, #36] @ 0x24 - 800896a: 601a str r2, [r3, #0] - pDest++; - 800896c: 6a7b ldr r3, [r7, #36] @ 0x24 - 800896e: 3301 adds r3, #1 - 8008970: 627b str r3, [r7, #36] @ 0x24 - pDest++; - 8008972: 6a7b ldr r3, [r7, #36] @ 0x24 - 8008974: 3301 adds r3, #1 - 8008976: 627b str r3, [r7, #36] @ 0x24 - pDest++; - 8008978: 6a7b ldr r3, [r7, #36] @ 0x24 - 800897a: 3301 adds r3, #1 - 800897c: 627b str r3, [r7, #36] @ 0x24 - pDest++; - 800897e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8008980: 3301 adds r3, #1 - 8008982: 627b str r3, [r7, #36] @ 0x24 - for (i = 0U; i < count32b; i++) - 8008984: 6a3b ldr r3, [r7, #32] - 8008986: 3301 adds r3, #1 - 8008988: 623b str r3, [r7, #32] - 800898a: 6a3a ldr r2, [r7, #32] - 800898c: 697b ldr r3, [r7, #20] - 800898e: 429a cmp r2, r3 - 8008990: d3e6 bcc.n 8008960 - } - - /* When Number of data is not word aligned, read the remaining byte */ - if (remaining_bytes != 0U) - 8008992: 8bfb ldrh r3, [r7, #30] - 8008994: 2b00 cmp r3, #0 - 8008996: d01e beq.n 80089d6 - { - i = 0U; - 8008998: 2300 movs r3, #0 - 800899a: 623b str r3, [r7, #32] - __UNALIGNED_UINT32_WRITE(&pData, USBx_DFIFO(0U)); - 800899c: 69bb ldr r3, [r7, #24] - 800899e: f503 5380 add.w r3, r3, #4096 @ 0x1000 - 80089a2: 461a mov r2, r3 - 80089a4: f107 0310 add.w r3, r7, #16 - 80089a8: 6812 ldr r2, [r2, #0] - 80089aa: 601a str r2, [r3, #0] - - do - { - *(uint8_t *)pDest = (uint8_t)(pData >> (8U * (uint8_t)(i))); - 80089ac: 693a ldr r2, [r7, #16] - 80089ae: 6a3b ldr r3, [r7, #32] - 80089b0: b2db uxtb r3, r3 - 80089b2: 00db lsls r3, r3, #3 - 80089b4: fa22 f303 lsr.w r3, r2, r3 - 80089b8: b2da uxtb r2, r3 - 80089ba: 6a7b ldr r3, [r7, #36] @ 0x24 - 80089bc: 701a strb r2, [r3, #0] - i++; - 80089be: 6a3b ldr r3, [r7, #32] - 80089c0: 3301 adds r3, #1 - 80089c2: 623b str r3, [r7, #32] - pDest++; - 80089c4: 6a7b ldr r3, [r7, #36] @ 0x24 - 80089c6: 3301 adds r3, #1 - 80089c8: 627b str r3, [r7, #36] @ 0x24 - remaining_bytes--; - 80089ca: 8bfb ldrh r3, [r7, #30] - 80089cc: 3b01 subs r3, #1 - 80089ce: 83fb strh r3, [r7, #30] - } while (remaining_bytes != 0U); - 80089d0: 8bfb ldrh r3, [r7, #30] - 80089d2: 2b00 cmp r3, #0 - 80089d4: d1ea bne.n 80089ac - } - - return ((void *)pDest); - 80089d6: 6a7b ldr r3, [r7, #36] @ 0x24 -} - 80089d8: 4618 mov r0, r3 - 80089da: 372c adds r7, #44 @ 0x2c - 80089dc: 46bd mov sp, r7 - 80089de: f85d 7b04 ldr.w r7, [sp], #4 - 80089e2: 4770 bx lr - -080089e4 : - * @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) -{ - 80089e4: b480 push {r7} - 80089e6: b085 sub sp, #20 - 80089e8: af00 add r7, sp, #0 - 80089ea: 6078 str r0, [r7, #4] - 80089ec: 6039 str r1, [r7, #0] - uint32_t USBx_BASE = (uint32_t)USBx; +080089e2 : + 80089e2: b480 push {r7} + 80089e4: b087 sub sp, #28 + 80089e6: af00 add r7, sp, #0 + 80089e8: 6078 str r0, [r7, #4] + 80089ea: 460b mov r3, r1 + 80089ec: 70fb strb r3, [r7, #3] 80089ee: 687b ldr r3, [r7, #4] - 80089f0: 60fb str r3, [r7, #12] - uint32_t epnum = (uint32_t)ep->num; - 80089f2: 683b ldr r3, [r7, #0] - 80089f4: 781b ldrb r3, [r3, #0] - 80089f6: 60bb str r3, [r7, #8] + 80089f0: 617b str r3, [r7, #20] + 80089f2: 697b ldr r3, [r7, #20] + 80089f4: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80089f8: 691b ldr r3, [r3, #16] + 80089fa: 613b str r3, [r7, #16] + 80089fc: 697b ldr r3, [r7, #20] + 80089fe: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008a02: 6b5b ldr r3, [r3, #52] @ 0x34 + 8008a04: 60fb str r3, [r7, #12] + 8008a06: 78fb ldrb r3, [r7, #3] + 8008a08: f003 030f and.w r3, r3, #15 + 8008a0c: 68fa ldr r2, [r7, #12] + 8008a0e: fa22 f303 lsr.w r3, r2, r3 + 8008a12: 01db lsls r3, r3, #7 + 8008a14: b2db uxtb r3, r3 + 8008a16: 693a ldr r2, [r7, #16] + 8008a18: 4313 orrs r3, r2 + 8008a1a: 613b str r3, [r7, #16] + 8008a1c: 78fb ldrb r3, [r7, #3] + 8008a1e: 015a lsls r2, r3, #5 + 8008a20: 697b ldr r3, [r7, #20] + 8008a22: 4413 add r3, r2 + 8008a24: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008a28: 689b ldr r3, [r3, #8] + 8008a2a: 693a ldr r2, [r7, #16] + 8008a2c: 4013 ands r3, r2 + 8008a2e: 60bb str r3, [r7, #8] + 8008a30: 68bb ldr r3, [r7, #8] + 8008a32: 4618 mov r0, r3 + 8008a34: 371c adds r7, #28 + 8008a36: 46bd mov sp, r7 + 8008a38: f85d 7b04 ldr.w r7, [sp], #4 + 8008a3c: 4770 bx lr - if (ep->is_in == 1U) - 80089f8: 683b ldr r3, [r7, #0] - 80089fa: 785b ldrb r3, [r3, #1] - 80089fc: 2b01 cmp r3, #1 - 80089fe: d12c bne.n 8008a5a - { - if (((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == 0U) && (epnum != 0U)) - 8008a00: 68bb ldr r3, [r7, #8] - 8008a02: 015a lsls r2, r3, #5 - 8008a04: 68fb ldr r3, [r7, #12] - 8008a06: 4413 add r3, r2 - 8008a08: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008a0c: 681b ldr r3, [r3, #0] - 8008a0e: 2b00 cmp r3, #0 - 8008a10: db12 blt.n 8008a38 - 8008a12: 68bb ldr r3, [r7, #8] - 8008a14: 2b00 cmp r3, #0 - 8008a16: d00f beq.n 8008a38 - { - USBx_INEP(epnum)->DIEPCTL &= ~(USB_OTG_DIEPCTL_EPDIS); - 8008a18: 68bb ldr r3, [r7, #8] - 8008a1a: 015a lsls r2, r3, #5 - 8008a1c: 68fb ldr r3, [r7, #12] - 8008a1e: 4413 add r3, r2 - 8008a20: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008a24: 681b ldr r3, [r3, #0] - 8008a26: 68ba ldr r2, [r7, #8] - 8008a28: 0151 lsls r1, r2, #5 - 8008a2a: 68fa ldr r2, [r7, #12] - 8008a2c: 440a add r2, r1 - 8008a2e: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008a32: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000 - 8008a36: 6013 str r3, [r2, #0] - } - USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_STALL; - 8008a38: 68bb ldr r3, [r7, #8] - 8008a3a: 015a lsls r2, r3, #5 - 8008a3c: 68fb ldr r3, [r7, #12] - 8008a3e: 4413 add r3, r2 - 8008a40: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008a44: 681b ldr r3, [r3, #0] - 8008a46: 68ba ldr r2, [r7, #8] - 8008a48: 0151 lsls r1, r2, #5 - 8008a4a: 68fa ldr r2, [r7, #12] - 8008a4c: 440a add r2, r1 - 8008a4e: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008a52: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 - 8008a56: 6013 str r3, [r2, #0] - 8008a58: e02b b.n 8008ab2 - } - else - { - if (((USBx_OUTEP(epnum)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == 0U) && (epnum != 0U)) - 8008a5a: 68bb ldr r3, [r7, #8] - 8008a5c: 015a lsls r2, r3, #5 - 8008a5e: 68fb ldr r3, [r7, #12] - 8008a60: 4413 add r3, r2 - 8008a62: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008a66: 681b ldr r3, [r3, #0] - 8008a68: 2b00 cmp r3, #0 - 8008a6a: db12 blt.n 8008a92 - 8008a6c: 68bb ldr r3, [r7, #8] - 8008a6e: 2b00 cmp r3, #0 - 8008a70: d00f beq.n 8008a92 - { - USBx_OUTEP(epnum)->DOEPCTL &= ~(USB_OTG_DOEPCTL_EPDIS); - 8008a72: 68bb ldr r3, [r7, #8] - 8008a74: 015a lsls r2, r3, #5 - 8008a76: 68fb ldr r3, [r7, #12] - 8008a78: 4413 add r3, r2 - 8008a7a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008a7e: 681b ldr r3, [r3, #0] - 8008a80: 68ba ldr r2, [r7, #8] - 8008a82: 0151 lsls r1, r2, #5 - 8008a84: 68fa ldr r2, [r7, #12] - 8008a86: 440a add r2, r1 - 8008a88: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008a8c: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000 - 8008a90: 6013 str r3, [r2, #0] - } - USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_STALL; - 8008a92: 68bb ldr r3, [r7, #8] - 8008a94: 015a lsls r2, r3, #5 - 8008a96: 68fb ldr r3, [r7, #12] - 8008a98: 4413 add r3, r2 - 8008a9a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008a9e: 681b ldr r3, [r3, #0] - 8008aa0: 68ba ldr r2, [r7, #8] - 8008aa2: 0151 lsls r1, r2, #5 - 8008aa4: 68fa ldr r2, [r7, #12] - 8008aa6: 440a add r2, r1 - 8008aa8: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008aac: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 - 8008ab0: 6013 str r3, [r2, #0] - } +08008a3e : + 8008a3e: b480 push {r7} + 8008a40: b083 sub sp, #12 + 8008a42: af00 add r7, sp, #0 + 8008a44: 6078 str r0, [r7, #4] + 8008a46: 687b ldr r3, [r7, #4] + 8008a48: 695b ldr r3, [r3, #20] + 8008a4a: f003 0301 and.w r3, r3, #1 + 8008a4e: 4618 mov r0, r3 + 8008a50: 370c adds r7, #12 + 8008a52: 46bd mov sp, r7 + 8008a54: f85d 7b04 ldr.w r7, [sp], #4 + 8008a58: 4770 bx lr - return HAL_OK; - 8008ab2: 2300 movs r3, #0 -} - 8008ab4: 4618 mov r0, r3 - 8008ab6: 3714 adds r7, #20 - 8008ab8: 46bd mov sp, r7 - 8008aba: f85d 7b04 ldr.w r7, [sp], #4 - 8008abe: 4770 bx lr +08008a5a : + 8008a5a: b480 push {r7} + 8008a5c: b085 sub sp, #20 + 8008a5e: af00 add r7, sp, #0 + 8008a60: 6078 str r0, [r7, #4] + 8008a62: 687b ldr r3, [r7, #4] + 8008a64: 60fb str r3, [r7, #12] + 8008a66: 68fb ldr r3, [r7, #12] + 8008a68: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008a6c: 681b ldr r3, [r3, #0] + 8008a6e: 68fa ldr r2, [r7, #12] + 8008a70: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008a74: f423 63ff bic.w r3, r3, #2040 @ 0x7f8 + 8008a78: f023 0307 bic.w r3, r3, #7 + 8008a7c: 6013 str r3, [r2, #0] + 8008a7e: 68fb ldr r3, [r7, #12] + 8008a80: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008a84: 685b ldr r3, [r3, #4] + 8008a86: 68fa ldr r2, [r7, #12] + 8008a88: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8008a8c: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8008a90: 6053 str r3, [r2, #4] + 8008a92: 2300 movs r3, #0 + 8008a94: 4618 mov r0, r3 + 8008a96: 3714 adds r7, #20 + 8008a98: 46bd mov sp, r7 + 8008a9a: f85d 7b04 ldr.w r7, [sp], #4 + 8008a9e: 4770 bx lr -08008ac0 : - * @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) -{ - 8008ac0: b480 push {r7} - 8008ac2: b085 sub sp, #20 - 8008ac4: af00 add r7, sp, #0 - 8008ac6: 6078 str r0, [r7, #4] - 8008ac8: 6039 str r1, [r7, #0] - uint32_t USBx_BASE = (uint32_t)USBx; - 8008aca: 687b ldr r3, [r7, #4] - 8008acc: 60fb str r3, [r7, #12] - uint32_t epnum = (uint32_t)ep->num; - 8008ace: 683b ldr r3, [r7, #0] - 8008ad0: 781b ldrb r3, [r3, #0] - 8008ad2: 60bb str r3, [r7, #8] - - if (ep->is_in == 1U) - 8008ad4: 683b ldr r3, [r7, #0] - 8008ad6: 785b ldrb r3, [r3, #1] - 8008ad8: 2b01 cmp r3, #1 - 8008ada: d128 bne.n 8008b2e - { - USBx_INEP(epnum)->DIEPCTL &= ~USB_OTG_DIEPCTL_STALL; - 8008adc: 68bb ldr r3, [r7, #8] - 8008ade: 015a lsls r2, r3, #5 - 8008ae0: 68fb ldr r3, [r7, #12] - 8008ae2: 4413 add r3, r2 - 8008ae4: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008ae8: 681b ldr r3, [r3, #0] - 8008aea: 68ba ldr r2, [r7, #8] - 8008aec: 0151 lsls r1, r2, #5 - 8008aee: 68fa ldr r2, [r7, #12] - 8008af0: 440a add r2, r1 - 8008af2: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008af6: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 - 8008afa: 6013 str r3, [r2, #0] - if ((ep->type == EP_TYPE_INTR) || (ep->type == EP_TYPE_BULK)) - 8008afc: 683b ldr r3, [r7, #0] - 8008afe: 791b ldrb r3, [r3, #4] - 8008b00: 2b03 cmp r3, #3 - 8008b02: d003 beq.n 8008b0c - 8008b04: 683b ldr r3, [r7, #0] - 8008b06: 791b ldrb r3, [r3, #4] - 8008b08: 2b02 cmp r3, #2 - 8008b0a: d138 bne.n 8008b7e - { - USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM; /* DATA0 */ - 8008b0c: 68bb ldr r3, [r7, #8] - 8008b0e: 015a lsls r2, r3, #5 - 8008b10: 68fb ldr r3, [r7, #12] - 8008b12: 4413 add r3, r2 - 8008b14: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008b18: 681b ldr r3, [r3, #0] - 8008b1a: 68ba ldr r2, [r7, #8] - 8008b1c: 0151 lsls r1, r2, #5 - 8008b1e: 68fa ldr r2, [r7, #12] - 8008b20: 440a add r2, r1 - 8008b22: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008b26: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8008b2a: 6013 str r3, [r2, #0] - 8008b2c: e027 b.n 8008b7e - } - } - else - { - USBx_OUTEP(epnum)->DOEPCTL &= ~USB_OTG_DOEPCTL_STALL; - 8008b2e: 68bb ldr r3, [r7, #8] - 8008b30: 015a lsls r2, r3, #5 - 8008b32: 68fb ldr r3, [r7, #12] - 8008b34: 4413 add r3, r2 +08008aa0 : + 8008aa0: b480 push {r7} + 8008aa2: b087 sub sp, #28 + 8008aa4: af00 add r7, sp, #0 + 8008aa6: 60f8 str r0, [r7, #12] + 8008aa8: 460b mov r3, r1 + 8008aaa: 607a str r2, [r7, #4] + 8008aac: 72fb strb r3, [r7, #11] + 8008aae: 68fb ldr r3, [r7, #12] + 8008ab0: 617b str r3, [r7, #20] + 8008ab2: 68fb ldr r3, [r7, #12] + 8008ab4: 333c adds r3, #60 @ 0x3c + 8008ab6: 3304 adds r3, #4 + 8008ab8: 681b ldr r3, [r3, #0] + 8008aba: 613b str r3, [r7, #16] + 8008abc: 693b ldr r3, [r7, #16] + 8008abe: 4a26 ldr r2, [pc, #152] @ (8008b58 ) + 8008ac0: 4293 cmp r3, r2 + 8008ac2: d90a bls.n 8008ada + 8008ac4: 697b ldr r3, [r7, #20] + 8008ac6: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008aca: 681b ldr r3, [r3, #0] + 8008acc: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8008ad0: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8008ad4: d101 bne.n 8008ada + 8008ad6: 2300 movs r3, #0 + 8008ad8: e037 b.n 8008b4a + 8008ada: 697b ldr r3, [r7, #20] + 8008adc: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008ae0: 461a mov r2, r3 + 8008ae2: 2300 movs r3, #0 + 8008ae4: 6113 str r3, [r2, #16] + 8008ae6: 697b ldr r3, [r7, #20] + 8008ae8: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008aec: 691b ldr r3, [r3, #16] + 8008aee: 697a ldr r2, [r7, #20] + 8008af0: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008af4: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 8008af8: 6113 str r3, [r2, #16] + 8008afa: 697b ldr r3, [r7, #20] + 8008afc: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008b00: 691b ldr r3, [r3, #16] + 8008b02: 697a ldr r2, [r7, #20] + 8008b04: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008b08: f043 0318 orr.w r3, r3, #24 + 8008b0c: 6113 str r3, [r2, #16] + 8008b0e: 697b ldr r3, [r7, #20] + 8008b10: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008b14: 691b ldr r3, [r3, #16] + 8008b16: 697a ldr r2, [r7, #20] + 8008b18: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008b1c: f043 43c0 orr.w r3, r3, #1610612736 @ 0x60000000 + 8008b20: 6113 str r3, [r2, #16] + 8008b22: 7afb ldrb r3, [r7, #11] + 8008b24: 2b01 cmp r3, #1 + 8008b26: d10f bne.n 8008b48 + 8008b28: 697b ldr r3, [r7, #20] + 8008b2a: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008b2e: 461a mov r2, r3 + 8008b30: 687b ldr r3, [r7, #4] + 8008b32: 6153 str r3, [r2, #20] + 8008b34: 697b ldr r3, [r7, #20] 8008b36: f503 6330 add.w r3, r3, #2816 @ 0xb00 8008b3a: 681b ldr r3, [r3, #0] - 8008b3c: 68ba ldr r2, [r7, #8] - 8008b3e: 0151 lsls r1, r2, #5 - 8008b40: 68fa ldr r2, [r7, #12] - 8008b42: 440a add r2, r1 - 8008b44: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008b48: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 - 8008b4c: 6013 str r3, [r2, #0] - if ((ep->type == EP_TYPE_INTR) || (ep->type == EP_TYPE_BULK)) - 8008b4e: 683b ldr r3, [r7, #0] - 8008b50: 791b ldrb r3, [r3, #4] - 8008b52: 2b03 cmp r3, #3 - 8008b54: d003 beq.n 8008b5e - 8008b56: 683b ldr r3, [r7, #0] - 8008b58: 791b ldrb r3, [r3, #4] - 8008b5a: 2b02 cmp r3, #2 - 8008b5c: d10f bne.n 8008b7e - { - USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SD0PID_SEVNFRM; /* DATA0 */ - 8008b5e: 68bb ldr r3, [r7, #8] - 8008b60: 015a lsls r2, r3, #5 - 8008b62: 68fb ldr r3, [r7, #12] - 8008b64: 4413 add r3, r2 - 8008b66: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008b6a: 681b ldr r3, [r3, #0] - 8008b6c: 68ba ldr r2, [r7, #8] - 8008b6e: 0151 lsls r1, r2, #5 - 8008b70: 68fa ldr r2, [r7, #12] - 8008b72: 440a add r2, r1 - 8008b74: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008b78: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8008b7c: 6013 str r3, [r2, #0] - } - } - return HAL_OK; - 8008b7e: 2300 movs r3, #0 -} - 8008b80: 4618 mov r0, r3 - 8008b82: 3714 adds r7, #20 - 8008b84: 46bd mov sp, r7 - 8008b86: f85d 7b04 ldr.w r7, [sp], #4 - 8008b8a: 4770 bx lr + 8008b3c: 697a ldr r2, [r7, #20] + 8008b3e: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008b42: f043 2380 orr.w r3, r3, #2147516416 @ 0x80008000 + 8008b46: 6013 str r3, [r2, #0] + 8008b48: 2300 movs r3, #0 + 8008b4a: 4618 mov r0, r3 + 8008b4c: 371c adds r7, #28 + 8008b4e: 46bd mov sp, r7 + 8008b50: f85d 7b04 ldr.w r7, [sp], #4 + 8008b54: 4770 bx lr + 8008b56: bf00 nop + 8008b58: 4f54300a .word 0x4f54300a -08008b8c : - * @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) -{ - 8008b8c: b480 push {r7} - 8008b8e: b085 sub sp, #20 - 8008b90: af00 add r7, sp, #0 - 8008b92: 6078 str r0, [r7, #4] - 8008b94: 460b mov r3, r1 - 8008b96: 70fb strb r3, [r7, #3] - uint32_t USBx_BASE = (uint32_t)USBx; - 8008b98: 687b ldr r3, [r7, #4] - 8008b9a: 60fb str r3, [r7, #12] +08008b5c : + 8008b5c: b480 push {r7} + 8008b5e: b085 sub sp, #20 + 8008b60: af00 add r7, sp, #0 + 8008b62: 6078 str r0, [r7, #4] + 8008b64: 2300 movs r3, #0 + 8008b66: 60fb str r3, [r7, #12] + 8008b68: 68fb ldr r3, [r7, #12] + 8008b6a: 3301 adds r3, #1 + 8008b6c: 60fb str r3, [r7, #12] + 8008b6e: 68fb ldr r3, [r7, #12] + 8008b70: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 8008b74: d901 bls.n 8008b7a + 8008b76: 2303 movs r3, #3 + 8008b78: e022 b.n 8008bc0 + 8008b7a: 687b ldr r3, [r7, #4] + 8008b7c: 691b ldr r3, [r3, #16] + 8008b7e: 2b00 cmp r3, #0 + 8008b80: daf2 bge.n 8008b68 + 8008b82: 230a movs r3, #10 + 8008b84: 60fb str r3, [r7, #12] + 8008b86: e002 b.n 8008b8e + 8008b88: 68fb ldr r3, [r7, #12] + 8008b8a: 3b01 subs r3, #1 + 8008b8c: 60fb str r3, [r7, #12] + 8008b8e: 68fb ldr r3, [r7, #12] + 8008b90: 2b00 cmp r3, #0 + 8008b92: d1f9 bne.n 8008b88 + 8008b94: 687b ldr r3, [r7, #4] + 8008b96: 691b ldr r3, [r3, #16] + 8008b98: f043 0201 orr.w r2, r3, #1 + 8008b9c: 687b ldr r3, [r7, #4] + 8008b9e: 611a str r2, [r3, #16] + 8008ba0: 68fb ldr r3, [r7, #12] + 8008ba2: 3301 adds r3, #1 + 8008ba4: 60fb str r3, [r7, #12] + 8008ba6: 68fb ldr r3, [r7, #12] + 8008ba8: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 8008bac: d901 bls.n 8008bb2 + 8008bae: 2303 movs r3, #3 + 8008bb0: e006 b.n 8008bc0 + 8008bb2: 687b ldr r3, [r7, #4] + 8008bb4: 691b ldr r3, [r3, #16] + 8008bb6: f003 0301 and.w r3, r3, #1 + 8008bba: 2b01 cmp r3, #1 + 8008bbc: d0f0 beq.n 8008ba0 + 8008bbe: 2300 movs r3, #0 + 8008bc0: 4618 mov r0, r3 + 8008bc2: 3714 adds r7, #20 + 8008bc4: 46bd mov sp, r7 + 8008bc6: f85d 7b04 ldr.w r7, [sp], #4 + 8008bca: 4770 bx lr - USBx_DEVICE->DCFG &= ~(USB_OTG_DCFG_DAD); - 8008b9c: 68fb ldr r3, [r7, #12] - 8008b9e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008ba2: 681b ldr r3, [r3, #0] - 8008ba4: 68fa ldr r2, [r7, #12] - 8008ba6: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8008baa: f423 63fe bic.w r3, r3, #2032 @ 0x7f0 - 8008bae: 6013 str r3, [r2, #0] - USBx_DEVICE->DCFG |= ((uint32_t)address << 4) & USB_OTG_DCFG_DAD; - 8008bb0: 68fb ldr r3, [r7, #12] - 8008bb2: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008bb6: 681a ldr r2, [r3, #0] - 8008bb8: 78fb ldrb r3, [r7, #3] - 8008bba: 011b lsls r3, r3, #4 - 8008bbc: f403 63fe and.w r3, r3, #2032 @ 0x7f0 - 8008bc0: 68f9 ldr r1, [r7, #12] - 8008bc2: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8008bc6: 4313 orrs r3, r2 - 8008bc8: 600b str r3, [r1, #0] +08008bcc : + 8008bcc: b580 push {r7, lr} + 8008bce: b084 sub sp, #16 + 8008bd0: af00 add r7, sp, #0 + 8008bd2: 6078 str r0, [r7, #4] + 8008bd4: 460b mov r3, r1 + 8008bd6: 70fb strb r3, [r7, #3] + 8008bd8: 2010 movs r0, #16 + 8008bda: f002 f9e3 bl 800afa4 + 8008bde: 60f8 str r0, [r7, #12] + 8008be0: 68fb ldr r3, [r7, #12] + 8008be2: 2b00 cmp r3, #0 + 8008be4: d109 bne.n 8008bfa + 8008be6: 687b ldr r3, [r7, #4] + 8008be8: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008bec: 687b ldr r3, [r7, #4] + 8008bee: 32b0 adds r2, #176 @ 0xb0 + 8008bf0: 2100 movs r1, #0 + 8008bf2: f843 1022 str.w r1, [r3, r2, lsl #2] + 8008bf6: 2302 movs r3, #2 + 8008bf8: e048 b.n 8008c8c + 8008bfa: 687b ldr r3, [r7, #4] + 8008bfc: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008c00: 687b ldr r3, [r7, #4] + 8008c02: 32b0 adds r2, #176 @ 0xb0 + 8008c04: 68f9 ldr r1, [r7, #12] + 8008c06: f843 1022 str.w r1, [r3, r2, lsl #2] + 8008c0a: 687b ldr r3, [r7, #4] + 8008c0c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008c10: 687b ldr r3, [r7, #4] + 8008c12: 32b0 adds r2, #176 @ 0xb0 + 8008c14: f853 2022 ldr.w r2, [r3, r2, lsl #2] + 8008c18: 687b ldr r3, [r7, #4] + 8008c1a: f8c3 22bc str.w r2, [r3, #700] @ 0x2bc + 8008c1e: 687b ldr r3, [r7, #4] + 8008c20: 7c1b ldrb r3, [r3, #16] + 8008c22: 2b00 cmp r3, #0 + 8008c24: d10d bne.n 8008c42 + 8008c26: 4b1b ldr r3, [pc, #108] @ (8008c94 ) + 8008c28: 781b ldrb r3, [r3, #0] + 8008c2a: f003 020f and.w r2, r3, #15 + 8008c2e: 6879 ldr r1, [r7, #4] + 8008c30: 4613 mov r3, r2 + 8008c32: 009b lsls r3, r3, #2 + 8008c34: 4413 add r3, r2 + 8008c36: 009b lsls r3, r3, #2 + 8008c38: 440b add r3, r1 + 8008c3a: 331c adds r3, #28 + 8008c3c: 2207 movs r2, #7 + 8008c3e: 601a str r2, [r3, #0] + 8008c40: e00c b.n 8008c5c + 8008c42: 4b14 ldr r3, [pc, #80] @ (8008c94 ) + 8008c44: 781b ldrb r3, [r3, #0] + 8008c46: f003 020f and.w r2, r3, #15 + 8008c4a: 6879 ldr r1, [r7, #4] + 8008c4c: 4613 mov r3, r2 + 8008c4e: 009b lsls r3, r3, #2 + 8008c50: 4413 add r3, r2 + 8008c52: 009b lsls r3, r3, #2 + 8008c54: 440b add r3, r1 + 8008c56: 331c adds r3, #28 + 8008c58: 220a movs r2, #10 + 8008c5a: 601a str r2, [r3, #0] + 8008c5c: 4b0d ldr r3, [pc, #52] @ (8008c94 ) + 8008c5e: 7819 ldrb r1, [r3, #0] + 8008c60: 230e movs r3, #14 + 8008c62: 2203 movs r2, #3 + 8008c64: 6878 ldr r0, [r7, #4] + 8008c66: f002 f83e bl 800ace6 + 8008c6a: 4b0a ldr r3, [pc, #40] @ (8008c94 ) + 8008c6c: 781b ldrb r3, [r3, #0] + 8008c6e: f003 020f and.w r2, r3, #15 + 8008c72: 6879 ldr r1, [r7, #4] + 8008c74: 4613 mov r3, r2 + 8008c76: 009b lsls r3, r3, #2 + 8008c78: 4413 add r3, r2 + 8008c7a: 009b lsls r3, r3, #2 + 8008c7c: 440b add r3, r1 + 8008c7e: 3323 adds r3, #35 @ 0x23 + 8008c80: 2201 movs r2, #1 + 8008c82: 701a strb r2, [r3, #0] + 8008c84: 68fb ldr r3, [r7, #12] + 8008c86: 2200 movs r2, #0 + 8008c88: 731a strb r2, [r3, #12] + 8008c8a: 2300 movs r3, #0 + 8008c8c: 4618 mov r0, r3 + 8008c8e: 3710 adds r7, #16 + 8008c90: 46bd mov sp, r7 + 8008c92: bd80 pop {r7, pc} + 8008c94: 200001b1 .word 0x200001b1 - return HAL_OK; - 8008bca: 2300 movs r3, #0 -} - 8008bcc: 4618 mov r0, r3 - 8008bce: 3714 adds r7, #20 - 8008bd0: 46bd mov sp, r7 - 8008bd2: f85d 7b04 ldr.w r7, [sp], #4 - 8008bd6: 4770 bx lr - -08008bd8 : - * @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) -{ - 8008bd8: b480 push {r7} - 8008bda: b085 sub sp, #20 - 8008bdc: af00 add r7, sp, #0 - 8008bde: 6078 str r0, [r7, #4] - uint32_t USBx_BASE = (uint32_t)USBx; - 8008be0: 687b ldr r3, [r7, #4] - 8008be2: 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); - 8008be4: 68fb ldr r3, [r7, #12] - 8008be6: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 8008bea: 681b ldr r3, [r3, #0] - 8008bec: 68fa ldr r2, [r7, #12] - 8008bee: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 8008bf2: f023 0303 bic.w r3, r3, #3 - 8008bf6: 6013 str r3, [r2, #0] - - USBx_DEVICE->DCTL &= ~USB_OTG_DCTL_SDIS; - 8008bf8: 68fb ldr r3, [r7, #12] - 8008bfa: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008bfe: 685b ldr r3, [r3, #4] - 8008c00: 68fa ldr r2, [r7, #12] - 8008c02: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8008c06: f023 0302 bic.w r3, r3, #2 - 8008c0a: 6053 str r3, [r2, #4] - - return HAL_OK; - 8008c0c: 2300 movs r3, #0 -} - 8008c0e: 4618 mov r0, r3 - 8008c10: 3714 adds r7, #20 - 8008c12: 46bd mov sp, r7 - 8008c14: f85d 7b04 ldr.w r7, [sp], #4 - 8008c18: 4770 bx lr - -08008c1a : - * @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) -{ - 8008c1a: b480 push {r7} - 8008c1c: b085 sub sp, #20 - 8008c1e: af00 add r7, sp, #0 - 8008c20: 6078 str r0, [r7, #4] - uint32_t USBx_BASE = (uint32_t)USBx; - 8008c22: 687b ldr r3, [r7, #4] - 8008c24: 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); - 8008c26: 68fb ldr r3, [r7, #12] - 8008c28: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 8008c2c: 681b ldr r3, [r3, #0] - 8008c2e: 68fa ldr r2, [r7, #12] - 8008c30: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 8008c34: f023 0303 bic.w r3, r3, #3 - 8008c38: 6013 str r3, [r2, #0] - - USBx_DEVICE->DCTL |= USB_OTG_DCTL_SDIS; - 8008c3a: 68fb ldr r3, [r7, #12] - 8008c3c: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008c40: 685b ldr r3, [r3, #4] - 8008c42: 68fa ldr r2, [r7, #12] - 8008c44: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8008c48: f043 0302 orr.w r3, r3, #2 - 8008c4c: 6053 str r3, [r2, #4] - - return HAL_OK; - 8008c4e: 2300 movs r3, #0 -} - 8008c50: 4618 mov r0, r3 - 8008c52: 3714 adds r7, #20 - 8008c54: 46bd mov sp, r7 - 8008c56: f85d 7b04 ldr.w r7, [sp], #4 - 8008c5a: 4770 bx lr - -08008c5c : - * @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) -{ - 8008c5c: b480 push {r7} - 8008c5e: b085 sub sp, #20 - 8008c60: af00 add r7, sp, #0 - 8008c62: 6078 str r0, [r7, #4] - uint32_t tmpreg; - - tmpreg = USBx->GINTSTS; - 8008c64: 687b ldr r3, [r7, #4] - 8008c66: 695b ldr r3, [r3, #20] - 8008c68: 60fb str r3, [r7, #12] - tmpreg &= USBx->GINTMSK; - 8008c6a: 687b ldr r3, [r7, #4] - 8008c6c: 699b ldr r3, [r3, #24] - 8008c6e: 68fa ldr r2, [r7, #12] - 8008c70: 4013 ands r3, r2 - 8008c72: 60fb str r3, [r7, #12] - - return tmpreg; - 8008c74: 68fb ldr r3, [r7, #12] -} - 8008c76: 4618 mov r0, r3 - 8008c78: 3714 adds r7, #20 - 8008c7a: 46bd mov sp, r7 - 8008c7c: f85d 7b04 ldr.w r7, [sp], #4 - 8008c80: 4770 bx lr - -08008c82 : - * @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) -{ - 8008c82: b480 push {r7} - 8008c84: b085 sub sp, #20 - 8008c86: af00 add r7, sp, #0 - 8008c88: 6078 str r0, [r7, #4] - uint32_t USBx_BASE = (uint32_t)USBx; - 8008c8a: 687b ldr r3, [r7, #4] - 8008c8c: 60fb str r3, [r7, #12] - uint32_t tmpreg; - - tmpreg = USBx_DEVICE->DAINT; - 8008c8e: 68fb ldr r3, [r7, #12] - 8008c90: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008c94: 699b ldr r3, [r3, #24] - 8008c96: 60bb str r3, [r7, #8] - tmpreg &= USBx_DEVICE->DAINTMSK; - 8008c98: 68fb ldr r3, [r7, #12] - 8008c9a: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008c9e: 69db ldr r3, [r3, #28] - 8008ca0: 68ba ldr r2, [r7, #8] - 8008ca2: 4013 ands r3, r2 - 8008ca4: 60bb str r3, [r7, #8] - - return ((tmpreg & 0xffff0000U) >> 16); - 8008ca6: 68bb ldr r3, [r7, #8] - 8008ca8: 0c1b lsrs r3, r3, #16 -} - 8008caa: 4618 mov r0, r3 - 8008cac: 3714 adds r7, #20 - 8008cae: 46bd mov sp, r7 - 8008cb0: f85d 7b04 ldr.w r7, [sp], #4 - 8008cb4: 4770 bx lr - -08008cb6 : - * @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) -{ - 8008cb6: b480 push {r7} - 8008cb8: b085 sub sp, #20 - 8008cba: af00 add r7, sp, #0 - 8008cbc: 6078 str r0, [r7, #4] - uint32_t USBx_BASE = (uint32_t)USBx; - 8008cbe: 687b ldr r3, [r7, #4] - 8008cc0: 60fb str r3, [r7, #12] - uint32_t tmpreg; - - tmpreg = USBx_DEVICE->DAINT; - 8008cc2: 68fb ldr r3, [r7, #12] - 8008cc4: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008cc8: 699b ldr r3, [r3, #24] - 8008cca: 60bb str r3, [r7, #8] - tmpreg &= USBx_DEVICE->DAINTMSK; - 8008ccc: 68fb ldr r3, [r7, #12] - 8008cce: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008cd2: 69db ldr r3, [r3, #28] - 8008cd4: 68ba ldr r2, [r7, #8] - 8008cd6: 4013 ands r3, r2 - 8008cd8: 60bb str r3, [r7, #8] - - return ((tmpreg & 0xFFFFU)); - 8008cda: 68bb ldr r3, [r7, #8] - 8008cdc: b29b uxth r3, r3 -} - 8008cde: 4618 mov r0, r3 - 8008ce0: 3714 adds r7, #20 - 8008ce2: 46bd mov sp, r7 - 8008ce4: f85d 7b04 ldr.w r7, [sp], #4 - 8008ce8: 4770 bx lr - -08008cea : - * @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) -{ - 8008cea: b480 push {r7} - 8008cec: b085 sub sp, #20 - 8008cee: af00 add r7, sp, #0 - 8008cf0: 6078 str r0, [r7, #4] - 8008cf2: 460b mov r3, r1 - 8008cf4: 70fb strb r3, [r7, #3] - uint32_t USBx_BASE = (uint32_t)USBx; +08008c98 : + 8008c98: b580 push {r7, lr} + 8008c9a: b082 sub sp, #8 + 8008c9c: af00 add r7, sp, #0 + 8008c9e: 6078 str r0, [r7, #4] + 8008ca0: 460b mov r3, r1 + 8008ca2: 70fb strb r3, [r7, #3] + 8008ca4: 4b1f ldr r3, [pc, #124] @ (8008d24 ) + 8008ca6: 781b ldrb r3, [r3, #0] + 8008ca8: 4619 mov r1, r3 + 8008caa: 6878 ldr r0, [r7, #4] + 8008cac: f002 f841 bl 800ad32 + 8008cb0: 4b1c ldr r3, [pc, #112] @ (8008d24 ) + 8008cb2: 781b ldrb r3, [r3, #0] + 8008cb4: f003 020f and.w r2, r3, #15 + 8008cb8: 6879 ldr r1, [r7, #4] + 8008cba: 4613 mov r3, r2 + 8008cbc: 009b lsls r3, r3, #2 + 8008cbe: 4413 add r3, r2 + 8008cc0: 009b lsls r3, r3, #2 + 8008cc2: 440b add r3, r1 + 8008cc4: 3323 adds r3, #35 @ 0x23 + 8008cc6: 2200 movs r2, #0 + 8008cc8: 701a strb r2, [r3, #0] + 8008cca: 4b16 ldr r3, [pc, #88] @ (8008d24 ) + 8008ccc: 781b ldrb r3, [r3, #0] + 8008cce: f003 020f and.w r2, r3, #15 + 8008cd2: 6879 ldr r1, [r7, #4] + 8008cd4: 4613 mov r3, r2 + 8008cd6: 009b lsls r3, r3, #2 + 8008cd8: 4413 add r3, r2 + 8008cda: 009b lsls r3, r3, #2 + 8008cdc: 440b add r3, r1 + 8008cde: 331c adds r3, #28 + 8008ce0: 2200 movs r2, #0 + 8008ce2: 601a str r2, [r3, #0] + 8008ce4: 687b ldr r3, [r7, #4] + 8008ce6: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008cea: 687b ldr r3, [r7, #4] + 8008cec: 32b0 adds r2, #176 @ 0xb0 + 8008cee: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008cf2: 2b00 cmp r3, #0 + 8008cf4: d011 beq.n 8008d1a 8008cf6: 687b ldr r3, [r7, #4] - 8008cf8: 60fb str r3, [r7, #12] - uint32_t tmpreg; + 8008cf8: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008cfc: 687b ldr r3, [r7, #4] + 8008cfe: 32b0 adds r2, #176 @ 0xb0 + 8008d00: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008d04: 4618 mov r0, r3 + 8008d06: f002 f95b bl 800afc0 + 8008d0a: 687b ldr r3, [r7, #4] + 8008d0c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008d10: 687b ldr r3, [r7, #4] + 8008d12: 32b0 adds r2, #176 @ 0xb0 + 8008d14: 2100 movs r1, #0 + 8008d16: f843 1022 str.w r1, [r3, r2, lsl #2] + 8008d1a: 2300 movs r3, #0 + 8008d1c: 4618 mov r0, r3 + 8008d1e: 3708 adds r7, #8 + 8008d20: 46bd mov sp, r7 + 8008d22: bd80 pop {r7, pc} + 8008d24: 200001b1 .word 0x200001b1 - tmpreg = USBx_OUTEP((uint32_t)epnum)->DOEPINT; - 8008cfa: 78fb ldrb r3, [r7, #3] - 8008cfc: 015a lsls r2, r3, #5 - 8008cfe: 68fb ldr r3, [r7, #12] - 8008d00: 4413 add r3, r2 - 8008d02: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008d06: 689b ldr r3, [r3, #8] - 8008d08: 60bb str r3, [r7, #8] - tmpreg &= USBx_DEVICE->DOEPMSK; - 8008d0a: 68fb ldr r3, [r7, #12] - 8008d0c: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008d10: 695b ldr r3, [r3, #20] - 8008d12: 68ba ldr r2, [r7, #8] - 8008d14: 4013 ands r3, r2 - 8008d16: 60bb str r3, [r7, #8] - - return tmpreg; - 8008d18: 68bb ldr r3, [r7, #8] -} - 8008d1a: 4618 mov r0, r3 - 8008d1c: 3714 adds r7, #20 - 8008d1e: 46bd mov sp, r7 - 8008d20: f85d 7b04 ldr.w r7, [sp], #4 - 8008d24: 4770 bx lr - -08008d26 : - * @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) -{ - 8008d26: b480 push {r7} - 8008d28: b087 sub sp, #28 - 8008d2a: af00 add r7, sp, #0 - 8008d2c: 6078 str r0, [r7, #4] - 8008d2e: 460b mov r3, r1 - 8008d30: 70fb strb r3, [r7, #3] - uint32_t USBx_BASE = (uint32_t)USBx; +08008d28 : + 8008d28: b580 push {r7, lr} + 8008d2a: b086 sub sp, #24 + 8008d2c: af00 add r7, sp, #0 + 8008d2e: 6078 str r0, [r7, #4] + 8008d30: 6039 str r1, [r7, #0] 8008d32: 687b ldr r3, [r7, #4] - 8008d34: 617b str r3, [r7, #20] - uint32_t tmpreg; - uint32_t msk; - uint32_t emp; + 8008d34: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008d38: 687b ldr r3, [r7, #4] + 8008d3a: 32b0 adds r2, #176 @ 0xb0 + 8008d3c: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008d40: 60fb str r3, [r7, #12] + 8008d42: 2300 movs r3, #0 + 8008d44: 75fb strb r3, [r7, #23] + 8008d46: 2300 movs r3, #0 + 8008d48: 817b strh r3, [r7, #10] + 8008d4a: 68fb ldr r3, [r7, #12] + 8008d4c: 2b00 cmp r3, #0 + 8008d4e: d101 bne.n 8008d54 + 8008d50: 2303 movs r3, #3 + 8008d52: e0e8 b.n 8008f26 + 8008d54: 683b ldr r3, [r7, #0] + 8008d56: 781b ldrb r3, [r3, #0] + 8008d58: f003 0360 and.w r3, r3, #96 @ 0x60 + 8008d5c: 2b00 cmp r3, #0 + 8008d5e: d046 beq.n 8008dee + 8008d60: 2b20 cmp r3, #32 + 8008d62: f040 80d8 bne.w 8008f16 + 8008d66: 683b ldr r3, [r7, #0] + 8008d68: 785b ldrb r3, [r3, #1] + 8008d6a: 3b02 subs r3, #2 + 8008d6c: 2b09 cmp r3, #9 + 8008d6e: d836 bhi.n 8008dde + 8008d70: a201 add r2, pc, #4 @ (adr r2, 8008d78 ) + 8008d72: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8008d76: bf00 nop + 8008d78: 08008dcf .word 0x08008dcf + 8008d7c: 08008daf .word 0x08008daf + 8008d80: 08008ddf .word 0x08008ddf + 8008d84: 08008ddf .word 0x08008ddf + 8008d88: 08008ddf .word 0x08008ddf + 8008d8c: 08008ddf .word 0x08008ddf + 8008d90: 08008ddf .word 0x08008ddf + 8008d94: 08008ddf .word 0x08008ddf + 8008d98: 08008dbd .word 0x08008dbd + 8008d9c: 08008da1 .word 0x08008da1 + 8008da0: 683b ldr r3, [r7, #0] + 8008da2: 885b ldrh r3, [r3, #2] + 8008da4: b2db uxtb r3, r3 + 8008da6: 461a mov r2, r3 + 8008da8: 68fb ldr r3, [r7, #12] + 8008daa: 601a str r2, [r3, #0] + 8008dac: e01e b.n 8008dec + 8008dae: 68fb ldr r3, [r7, #12] + 8008db0: 2201 movs r2, #1 + 8008db2: 4619 mov r1, r3 + 8008db4: 6878 ldr r0, [r7, #4] + 8008db6: f001 fc25 bl 800a604 + 8008dba: e017 b.n 8008dec + 8008dbc: 683b ldr r3, [r7, #0] + 8008dbe: 885b ldrh r3, [r3, #2] + 8008dc0: 0a1b lsrs r3, r3, #8 + 8008dc2: b29b uxth r3, r3 + 8008dc4: b2db uxtb r3, r3 + 8008dc6: 461a mov r2, r3 + 8008dc8: 68fb ldr r3, [r7, #12] + 8008dca: 605a str r2, [r3, #4] + 8008dcc: e00e b.n 8008dec + 8008dce: 68fb ldr r3, [r7, #12] + 8008dd0: 3304 adds r3, #4 + 8008dd2: 2201 movs r2, #1 + 8008dd4: 4619 mov r1, r3 + 8008dd6: 6878 ldr r0, [r7, #4] + 8008dd8: f001 fc14 bl 800a604 + 8008ddc: e006 b.n 8008dec + 8008dde: 6839 ldr r1, [r7, #0] + 8008de0: 6878 ldr r0, [r7, #4] + 8008de2: f001 fb92 bl 800a50a + 8008de6: 2303 movs r3, #3 + 8008de8: 75fb strb r3, [r7, #23] + 8008dea: bf00 nop + 8008dec: e09a b.n 8008f24 + 8008dee: 683b ldr r3, [r7, #0] + 8008df0: 785b ldrb r3, [r3, #1] + 8008df2: 2b0b cmp r3, #11 + 8008df4: f200 8086 bhi.w 8008f04 + 8008df8: a201 add r2, pc, #4 @ (adr r2, 8008e00 ) + 8008dfa: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8008dfe: bf00 nop + 8008e00: 08008e31 .word 0x08008e31 + 8008e04: 08008f13 .word 0x08008f13 + 8008e08: 08008f05 .word 0x08008f05 + 8008e0c: 08008f05 .word 0x08008f05 + 8008e10: 08008f05 .word 0x08008f05 + 8008e14: 08008f05 .word 0x08008f05 + 8008e18: 08008e5b .word 0x08008e5b + 8008e1c: 08008f05 .word 0x08008f05 + 8008e20: 08008f05 .word 0x08008f05 + 8008e24: 08008f05 .word 0x08008f05 + 8008e28: 08008eb3 .word 0x08008eb3 + 8008e2c: 08008edd .word 0x08008edd + 8008e30: 687b ldr r3, [r7, #4] + 8008e32: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8008e36: b2db uxtb r3, r3 + 8008e38: 2b03 cmp r3, #3 + 8008e3a: d107 bne.n 8008e4c + 8008e3c: f107 030a add.w r3, r7, #10 + 8008e40: 2202 movs r2, #2 + 8008e42: 4619 mov r1, r3 + 8008e44: 6878 ldr r0, [r7, #4] + 8008e46: f001 fbdd bl 800a604 + 8008e4a: e063 b.n 8008f14 + 8008e4c: 6839 ldr r1, [r7, #0] + 8008e4e: 6878 ldr r0, [r7, #4] + 8008e50: f001 fb5b bl 800a50a + 8008e54: 2303 movs r3, #3 + 8008e56: 75fb strb r3, [r7, #23] + 8008e58: e05c b.n 8008f14 + 8008e5a: 683b ldr r3, [r7, #0] + 8008e5c: 885b ldrh r3, [r3, #2] + 8008e5e: 0a1b lsrs r3, r3, #8 + 8008e60: b29b uxth r3, r3 + 8008e62: 2b22 cmp r3, #34 @ 0x22 + 8008e64: d108 bne.n 8008e78 + 8008e66: 683b ldr r3, [r7, #0] + 8008e68: 88db ldrh r3, [r3, #6] + 8008e6a: 2b2d cmp r3, #45 @ 0x2d + 8008e6c: bf28 it cs + 8008e6e: 232d movcs r3, #45 @ 0x2d + 8008e70: 82bb strh r3, [r7, #20] + 8008e72: 4b2f ldr r3, [pc, #188] @ (8008f30 ) + 8008e74: 613b str r3, [r7, #16] + 8008e76: e015 b.n 8008ea4 + 8008e78: 683b ldr r3, [r7, #0] + 8008e7a: 885b ldrh r3, [r3, #2] + 8008e7c: 0a1b lsrs r3, r3, #8 + 8008e7e: b29b uxth r3, r3 + 8008e80: 2b21 cmp r3, #33 @ 0x21 + 8008e82: d108 bne.n 8008e96 + 8008e84: 4b2b ldr r3, [pc, #172] @ (8008f34 ) + 8008e86: 613b str r3, [r7, #16] + 8008e88: 683b ldr r3, [r7, #0] + 8008e8a: 88db ldrh r3, [r3, #6] + 8008e8c: 2b09 cmp r3, #9 + 8008e8e: bf28 it cs + 8008e90: 2309 movcs r3, #9 + 8008e92: 82bb strh r3, [r7, #20] + 8008e94: e006 b.n 8008ea4 + 8008e96: 6839 ldr r1, [r7, #0] + 8008e98: 6878 ldr r0, [r7, #4] + 8008e9a: f001 fb36 bl 800a50a + 8008e9e: 2303 movs r3, #3 + 8008ea0: 75fb strb r3, [r7, #23] + 8008ea2: e037 b.n 8008f14 + 8008ea4: 8abb ldrh r3, [r7, #20] + 8008ea6: 461a mov r2, r3 + 8008ea8: 6939 ldr r1, [r7, #16] + 8008eaa: 6878 ldr r0, [r7, #4] + 8008eac: f001 fbaa bl 800a604 + 8008eb0: e030 b.n 8008f14 + 8008eb2: 687b ldr r3, [r7, #4] + 8008eb4: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8008eb8: b2db uxtb r3, r3 + 8008eba: 2b03 cmp r3, #3 + 8008ebc: d107 bne.n 8008ece + 8008ebe: 68fb ldr r3, [r7, #12] + 8008ec0: 3308 adds r3, #8 + 8008ec2: 2201 movs r2, #1 + 8008ec4: 4619 mov r1, r3 + 8008ec6: 6878 ldr r0, [r7, #4] + 8008ec8: f001 fb9c bl 800a604 + 8008ecc: e022 b.n 8008f14 + 8008ece: 6839 ldr r1, [r7, #0] + 8008ed0: 6878 ldr r0, [r7, #4] + 8008ed2: f001 fb1a bl 800a50a + 8008ed6: 2303 movs r3, #3 + 8008ed8: 75fb strb r3, [r7, #23] + 8008eda: e01b b.n 8008f14 + 8008edc: 687b ldr r3, [r7, #4] + 8008ede: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8008ee2: b2db uxtb r3, r3 + 8008ee4: 2b03 cmp r3, #3 + 8008ee6: d106 bne.n 8008ef6 + 8008ee8: 683b ldr r3, [r7, #0] + 8008eea: 885b ldrh r3, [r3, #2] + 8008eec: b2db uxtb r3, r3 + 8008eee: 461a mov r2, r3 + 8008ef0: 68fb ldr r3, [r7, #12] + 8008ef2: 609a str r2, [r3, #8] + 8008ef4: e00e b.n 8008f14 + 8008ef6: 6839 ldr r1, [r7, #0] + 8008ef8: 6878 ldr r0, [r7, #4] + 8008efa: f001 fb06 bl 800a50a + 8008efe: 2303 movs r3, #3 + 8008f00: 75fb strb r3, [r7, #23] + 8008f02: e007 b.n 8008f14 + 8008f04: 6839 ldr r1, [r7, #0] + 8008f06: 6878 ldr r0, [r7, #4] + 8008f08: f001 faff bl 800a50a + 8008f0c: 2303 movs r3, #3 + 8008f0e: 75fb strb r3, [r7, #23] + 8008f10: e000 b.n 8008f14 + 8008f12: bf00 nop + 8008f14: e006 b.n 8008f24 + 8008f16: 6839 ldr r1, [r7, #0] + 8008f18: 6878 ldr r0, [r7, #4] + 8008f1a: f001 faf6 bl 800a50a + 8008f1e: 2303 movs r3, #3 + 8008f20: 75fb strb r3, [r7, #23] + 8008f22: bf00 nop + 8008f24: 7dfb ldrb r3, [r7, #23] + 8008f26: 4618 mov r0, r3 + 8008f28: 3718 adds r7, #24 + 8008f2a: 46bd mov sp, r7 + 8008f2c: bd80 pop {r7, pc} + 8008f2e: bf00 nop + 8008f30: 20000184 .word 0x20000184 + 8008f34: 2000016c .word 0x2000016c - msk = USBx_DEVICE->DIEPMSK; - 8008d36: 697b ldr r3, [r7, #20] - 8008d38: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008d3c: 691b ldr r3, [r3, #16] - 8008d3e: 613b str r3, [r7, #16] - emp = USBx_DEVICE->DIEPEMPMSK; - 8008d40: 697b ldr r3, [r7, #20] - 8008d42: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008d46: 6b5b ldr r3, [r3, #52] @ 0x34 - 8008d48: 60fb str r3, [r7, #12] - msk |= ((emp >> (epnum & EP_ADDR_MSK)) & 0x1U) << 7; - 8008d4a: 78fb ldrb r3, [r7, #3] - 8008d4c: f003 030f and.w r3, r3, #15 - 8008d50: 68fa ldr r2, [r7, #12] - 8008d52: fa22 f303 lsr.w r3, r2, r3 - 8008d56: 01db lsls r3, r3, #7 - 8008d58: b2db uxtb r3, r3 - 8008d5a: 693a ldr r2, [r7, #16] - 8008d5c: 4313 orrs r3, r2 - 8008d5e: 613b str r3, [r7, #16] - tmpreg = USBx_INEP((uint32_t)epnum)->DIEPINT & msk; - 8008d60: 78fb ldrb r3, [r7, #3] - 8008d62: 015a lsls r2, r3, #5 - 8008d64: 697b ldr r3, [r7, #20] - 8008d66: 4413 add r3, r2 - 8008d68: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008d6c: 689b ldr r3, [r3, #8] - 8008d6e: 693a ldr r2, [r7, #16] - 8008d70: 4013 ands r3, r2 - 8008d72: 60bb str r3, [r7, #8] +08008f38 : + 8008f38: b580 push {r7, lr} + 8008f3a: b086 sub sp, #24 + 8008f3c: af00 add r7, sp, #0 + 8008f3e: 60f8 str r0, [r7, #12] + 8008f40: 60b9 str r1, [r7, #8] + 8008f42: 4613 mov r3, r2 + 8008f44: 80fb strh r3, [r7, #6] + 8008f46: 68fb ldr r3, [r7, #12] + 8008f48: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8008f4c: 68fb ldr r3, [r7, #12] + 8008f4e: 32b0 adds r2, #176 @ 0xb0 + 8008f50: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8008f54: 617b str r3, [r7, #20] + 8008f56: 697b ldr r3, [r7, #20] + 8008f58: 2b00 cmp r3, #0 + 8008f5a: d101 bne.n 8008f60 + 8008f5c: 2303 movs r3, #3 + 8008f5e: e014 b.n 8008f8a + 8008f60: 68fb ldr r3, [r7, #12] + 8008f62: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8008f66: b2db uxtb r3, r3 + 8008f68: 2b03 cmp r3, #3 + 8008f6a: d10d bne.n 8008f88 + 8008f6c: 697b ldr r3, [r7, #20] + 8008f6e: 7b1b ldrb r3, [r3, #12] + 8008f70: 2b00 cmp r3, #0 + 8008f72: d109 bne.n 8008f88 + 8008f74: 697b ldr r3, [r7, #20] + 8008f76: 2201 movs r2, #1 + 8008f78: 731a strb r2, [r3, #12] + 8008f7a: 4b06 ldr r3, [pc, #24] @ (8008f94 ) + 8008f7c: 7819 ldrb r1, [r3, #0] + 8008f7e: 88fb ldrh r3, [r7, #6] + 8008f80: 68ba ldr r2, [r7, #8] + 8008f82: 68f8 ldr r0, [r7, #12] + 8008f84: f001 ff7d bl 800ae82 + 8008f88: 2300 movs r3, #0 + 8008f8a: 4618 mov r0, r3 + 8008f8c: 3718 adds r7, #24 + 8008f8e: 46bd mov sp, r7 + 8008f90: bd80 pop {r7, pc} + 8008f92: bf00 nop + 8008f94: 200001b1 .word 0x200001b1 - return tmpreg; - 8008d74: 68bb ldr r3, [r7, #8] -} - 8008d76: 4618 mov r0, r3 - 8008d78: 371c adds r7, #28 - 8008d7a: 46bd mov sp, r7 - 8008d7c: f85d 7b04 ldr.w r7, [sp], #4 - 8008d80: 4770 bx lr +08008f98 : + 8008f98: b580 push {r7, lr} + 8008f9a: b084 sub sp, #16 + 8008f9c: af00 add r7, sp, #0 + 8008f9e: 6078 str r0, [r7, #4] + 8008fa0: 2181 movs r1, #129 @ 0x81 + 8008fa2: 4809 ldr r0, [pc, #36] @ (8008fc8 ) + 8008fa4: f000 fc4e bl 8009844 + 8008fa8: 60f8 str r0, [r7, #12] + 8008faa: 68fb ldr r3, [r7, #12] + 8008fac: 2b00 cmp r3, #0 + 8008fae: d002 beq.n 8008fb6 + 8008fb0: 68fb ldr r3, [r7, #12] + 8008fb2: 220a movs r2, #10 + 8008fb4: 719a strb r2, [r3, #6] + 8008fb6: 687b ldr r3, [r7, #4] + 8008fb8: 2222 movs r2, #34 @ 0x22 + 8008fba: 801a strh r2, [r3, #0] + 8008fbc: 4b02 ldr r3, [pc, #8] @ (8008fc8 ) + 8008fbe: 4618 mov r0, r3 + 8008fc0: 3710 adds r7, #16 + 8008fc2: 46bd mov sp, r7 + 8008fc4: bd80 pop {r7, pc} + 8008fc6: bf00 nop + 8008fc8: 20000148 .word 0x20000148 -08008d82 : - * This parameter can be one of these values: - * 1 : Host - * 0 : Device - */ -uint32_t USB_GetMode(const USB_OTG_GlobalTypeDef *USBx) -{ - 8008d82: b480 push {r7} - 8008d84: b083 sub sp, #12 - 8008d86: af00 add r7, sp, #0 - 8008d88: 6078 str r0, [r7, #4] - return ((USBx->GINTSTS) & 0x1U); - 8008d8a: 687b ldr r3, [r7, #4] - 8008d8c: 695b ldr r3, [r3, #20] - 8008d8e: f003 0301 and.w r3, r3, #1 -} - 8008d92: 4618 mov r0, r3 - 8008d94: 370c adds r7, #12 - 8008d96: 46bd mov sp, r7 - 8008d98: f85d 7b04 ldr.w r7, [sp], #4 - 8008d9c: 4770 bx lr +08008fcc : + 8008fcc: b580 push {r7, lr} + 8008fce: b084 sub sp, #16 + 8008fd0: af00 add r7, sp, #0 + 8008fd2: 6078 str r0, [r7, #4] + 8008fd4: 2181 movs r1, #129 @ 0x81 + 8008fd6: 4809 ldr r0, [pc, #36] @ (8008ffc ) + 8008fd8: f000 fc34 bl 8009844 + 8008fdc: 60f8 str r0, [r7, #12] + 8008fde: 68fb ldr r3, [r7, #12] + 8008fe0: 2b00 cmp r3, #0 + 8008fe2: d002 beq.n 8008fea + 8008fe4: 68fb ldr r3, [r7, #12] + 8008fe6: 2207 movs r2, #7 + 8008fe8: 719a strb r2, [r3, #6] + 8008fea: 687b ldr r3, [r7, #4] + 8008fec: 2222 movs r2, #34 @ 0x22 + 8008fee: 801a strh r2, [r3, #0] + 8008ff0: 4b02 ldr r3, [pc, #8] @ (8008ffc ) + 8008ff2: 4618 mov r0, r3 + 8008ff4: 3710 adds r7, #16 + 8008ff6: 46bd mov sp, r7 + 8008ff8: bd80 pop {r7, pc} + 8008ffa: bf00 nop + 8008ffc: 20000148 .word 0x20000148 -08008d9e : - * @brief Activate EP0 for Setup transactions - * @param USBx Selected device - * @retval HAL status - */ -HAL_StatusTypeDef USB_ActivateSetup(const USB_OTG_GlobalTypeDef *USBx) -{ - 8008d9e: b480 push {r7} - 8008da0: b085 sub sp, #20 - 8008da2: af00 add r7, sp, #0 - 8008da4: 6078 str r0, [r7, #4] - uint32_t USBx_BASE = (uint32_t)USBx; - 8008da6: 687b ldr r3, [r7, #4] - 8008da8: 60fb str r3, [r7, #12] +08009000 : + 8009000: b580 push {r7, lr} + 8009002: b084 sub sp, #16 + 8009004: af00 add r7, sp, #0 + 8009006: 6078 str r0, [r7, #4] + 8009008: 2181 movs r1, #129 @ 0x81 + 800900a: 4809 ldr r0, [pc, #36] @ (8009030 ) + 800900c: f000 fc1a bl 8009844 + 8009010: 60f8 str r0, [r7, #12] + 8009012: 68fb ldr r3, [r7, #12] + 8009014: 2b00 cmp r3, #0 + 8009016: d002 beq.n 800901e + 8009018: 68fb ldr r3, [r7, #12] + 800901a: 220a movs r2, #10 + 800901c: 719a strb r2, [r3, #6] + 800901e: 687b ldr r3, [r7, #4] + 8009020: 2222 movs r2, #34 @ 0x22 + 8009022: 801a strh r2, [r3, #0] + 8009024: 4b02 ldr r3, [pc, #8] @ (8009030 ) + 8009026: 4618 mov r0, r3 + 8009028: 3710 adds r7, #16 + 800902a: 46bd mov sp, r7 + 800902c: bd80 pop {r7, pc} + 800902e: bf00 nop + 8009030: 20000148 .word 0x20000148 - /* Set the MPS of the IN EP0 to 64 bytes */ - USBx_INEP(0U)->DIEPCTL &= ~USB_OTG_DIEPCTL_MPSIZ; - 8008daa: 68fb ldr r3, [r7, #12] - 8008dac: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008db0: 681b ldr r3, [r3, #0] - 8008db2: 68fa ldr r2, [r7, #12] - 8008db4: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008db8: f423 63ff bic.w r3, r3, #2040 @ 0x7f8 - 8008dbc: f023 0307 bic.w r3, r3, #7 - 8008dc0: 6013 str r3, [r2, #0] - - USBx_DEVICE->DCTL |= USB_OTG_DCTL_CGINAK; - 8008dc2: 68fb ldr r3, [r7, #12] - 8008dc4: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008dc8: 685b ldr r3, [r3, #4] - 8008dca: 68fa ldr r2, [r7, #12] - 8008dcc: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8008dd0: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8008dd4: 6053 str r3, [r2, #4] - - return HAL_OK; - 8008dd6: 2300 movs r3, #0 -} - 8008dd8: 4618 mov r0, r3 - 8008dda: 3714 adds r7, #20 - 8008ddc: 46bd mov sp, r7 - 8008dde: f85d 7b04 ldr.w r7, [sp], #4 - 8008de2: 4770 bx lr - -08008de4 : - * 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) -{ - 8008de4: b480 push {r7} - 8008de6: b087 sub sp, #28 - 8008de8: af00 add r7, sp, #0 - 8008dea: 60f8 str r0, [r7, #12] - 8008dec: 460b mov r3, r1 - 8008dee: 607a str r2, [r7, #4] - 8008df0: 72fb strb r3, [r7, #11] - uint32_t USBx_BASE = (uint32_t)USBx; - 8008df2: 68fb ldr r3, [r7, #12] - 8008df4: 617b str r3, [r7, #20] - uint32_t gSNPSiD = *(__IO const uint32_t *)(&USBx->CID + 0x1U); - 8008df6: 68fb ldr r3, [r7, #12] - 8008df8: 333c adds r3, #60 @ 0x3c - 8008dfa: 3304 adds r3, #4 - 8008dfc: 681b ldr r3, [r3, #0] - 8008dfe: 613b str r3, [r7, #16] - - if (gSNPSiD > USB_OTG_CORE_ID_300A) - 8008e00: 693b ldr r3, [r7, #16] - 8008e02: 4a26 ldr r2, [pc, #152] @ (8008e9c ) - 8008e04: 4293 cmp r3, r2 - 8008e06: d90a bls.n 8008e1e - { - if ((USBx_OUTEP(0U)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) - 8008e08: 697b ldr r3, [r7, #20] - 8008e0a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008e0e: 681b ldr r3, [r3, #0] - 8008e10: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8008e14: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8008e18: d101 bne.n 8008e1e - { - return HAL_OK; - 8008e1a: 2300 movs r3, #0 - 8008e1c: e037 b.n 8008e8e - } - } - - USBx_OUTEP(0U)->DOEPTSIZ = 0U; - 8008e1e: 697b ldr r3, [r7, #20] - 8008e20: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008e24: 461a mov r2, r3 - 8008e26: 2300 movs r3, #0 - 8008e28: 6113 str r3, [r2, #16] - USBx_OUTEP(0U)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); - 8008e2a: 697b ldr r3, [r7, #20] - 8008e2c: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008e30: 691b ldr r3, [r3, #16] - 8008e32: 697a ldr r2, [r7, #20] - 8008e34: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008e38: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 8008e3c: 6113 str r3, [r2, #16] - USBx_OUTEP(0U)->DOEPTSIZ |= (3U * 8U); - 8008e3e: 697b ldr r3, [r7, #20] - 8008e40: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008e44: 691b ldr r3, [r3, #16] - 8008e46: 697a ldr r2, [r7, #20] - 8008e48: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008e4c: f043 0318 orr.w r3, r3, #24 - 8008e50: 6113 str r3, [r2, #16] - USBx_OUTEP(0U)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_STUPCNT; - 8008e52: 697b ldr r3, [r7, #20] - 8008e54: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008e58: 691b ldr r3, [r3, #16] - 8008e5a: 697a ldr r2, [r7, #20] - 8008e5c: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008e60: f043 43c0 orr.w r3, r3, #1610612736 @ 0x60000000 - 8008e64: 6113 str r3, [r2, #16] - - if (dma == 1U) - 8008e66: 7afb ldrb r3, [r7, #11] - 8008e68: 2b01 cmp r3, #1 - 8008e6a: d10f bne.n 8008e8c - { - USBx_OUTEP(0U)->DOEPDMA = (uint32_t)psetup; - 8008e6c: 697b ldr r3, [r7, #20] - 8008e6e: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008e72: 461a mov r2, r3 - 8008e74: 687b ldr r3, [r7, #4] - 8008e76: 6153 str r3, [r2, #20] - /* EP enable */ - USBx_OUTEP(0U)->DOEPCTL |= USB_OTG_DOEPCTL_EPENA | USB_OTG_DOEPCTL_USBAEP; - 8008e78: 697b ldr r3, [r7, #20] - 8008e7a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008e7e: 681b ldr r3, [r3, #0] - 8008e80: 697a ldr r2, [r7, #20] - 8008e82: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008e86: f043 2380 orr.w r3, r3, #2147516416 @ 0x80008000 - 8008e8a: 6013 str r3, [r2, #0] - } - - return HAL_OK; - 8008e8c: 2300 movs r3, #0 -} - 8008e8e: 4618 mov r0, r3 - 8008e90: 371c adds r7, #28 - 8008e92: 46bd mov sp, r7 - 8008e94: f85d 7b04 ldr.w r7, [sp], #4 - 8008e98: 4770 bx lr - 8008e9a: bf00 nop - 8008e9c: 4f54300a .word 0x4f54300a - -08008ea0 : - * @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) -{ - 8008ea0: b480 push {r7} - 8008ea2: b085 sub sp, #20 - 8008ea4: af00 add r7, sp, #0 - 8008ea6: 6078 str r0, [r7, #4] - __IO uint32_t count = 0U; - 8008ea8: 2300 movs r3, #0 - 8008eaa: 60fb str r3, [r7, #12] - - /* Wait for AHB master IDLE state. */ - do - { - count++; - 8008eac: 68fb ldr r3, [r7, #12] - 8008eae: 3301 adds r3, #1 - 8008eb0: 60fb str r3, [r7, #12] - - if (count > HAL_USB_TIMEOUT) - 8008eb2: 68fb ldr r3, [r7, #12] - 8008eb4: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 8008eb8: d901 bls.n 8008ebe - { - return HAL_TIMEOUT; - 8008eba: 2303 movs r3, #3 - 8008ebc: e022 b.n 8008f04 - } - } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_AHBIDL) == 0U); - 8008ebe: 687b ldr r3, [r7, #4] - 8008ec0: 691b ldr r3, [r3, #16] - 8008ec2: 2b00 cmp r3, #0 - 8008ec4: daf2 bge.n 8008eac - - count = 10U; - 8008ec6: 230a movs r3, #10 - 8008ec8: 60fb str r3, [r7, #12] - - /* few cycles before setting core reset */ - while (count > 0U) - 8008eca: e002 b.n 8008ed2 - { - count--; - 8008ecc: 68fb ldr r3, [r7, #12] - 8008ece: 3b01 subs r3, #1 - 8008ed0: 60fb str r3, [r7, #12] - while (count > 0U) - 8008ed2: 68fb ldr r3, [r7, #12] - 8008ed4: 2b00 cmp r3, #0 - 8008ed6: d1f9 bne.n 8008ecc - } - - /* Core Soft Reset */ - USBx->GRSTCTL |= USB_OTG_GRSTCTL_CSRST; - 8008ed8: 687b ldr r3, [r7, #4] - 8008eda: 691b ldr r3, [r3, #16] - 8008edc: f043 0201 orr.w r2, r3, #1 - 8008ee0: 687b ldr r3, [r7, #4] - 8008ee2: 611a str r2, [r3, #16] - - do - { - count++; - 8008ee4: 68fb ldr r3, [r7, #12] - 8008ee6: 3301 adds r3, #1 - 8008ee8: 60fb str r3, [r7, #12] - - if (count > HAL_USB_TIMEOUT) - 8008eea: 68fb ldr r3, [r7, #12] - 8008eec: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 8008ef0: d901 bls.n 8008ef6 - { - return HAL_TIMEOUT; - 8008ef2: 2303 movs r3, #3 - 8008ef4: e006 b.n 8008f04 - } - } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_CSRST) == USB_OTG_GRSTCTL_CSRST); - 8008ef6: 687b ldr r3, [r7, #4] - 8008ef8: 691b ldr r3, [r3, #16] - 8008efa: f003 0301 and.w r3, r3, #1 - 8008efe: 2b01 cmp r3, #1 - 8008f00: d0f0 beq.n 8008ee4 - - return HAL_OK; - 8008f02: 2300 movs r3, #0 -} - 8008f04: 4618 mov r0, r3 - 8008f06: 3714 adds r7, #20 - 8008f08: 46bd mov sp, r7 - 8008f0a: f85d 7b04 ldr.w r7, [sp], #4 - 8008f0e: 4770 bx lr - -08008f10 : - * @param pdev: device instance - * @param cfgidx: Configuration index - * @retval status - */ -static uint8_t USBD_HID_Init(USBD_HandleTypeDef *pdev, uint8_t cfgidx) -{ - 8008f10: b580 push {r7, lr} - 8008f12: b084 sub sp, #16 - 8008f14: af00 add r7, sp, #0 - 8008f16: 6078 str r0, [r7, #4] - 8008f18: 460b mov r3, r1 - 8008f1a: 70fb strb r3, [r7, #3] - UNUSED(cfgidx); - - USBD_HID_HandleTypeDef *hhid; - - hhid = (USBD_HID_HandleTypeDef *)USBD_malloc(sizeof(USBD_HID_HandleTypeDef)); - 8008f1c: 2010 movs r0, #16 - 8008f1e: f002 f9e3 bl 800b2e8 - 8008f22: 60f8 str r0, [r7, #12] - - if (hhid == NULL) - 8008f24: 68fb ldr r3, [r7, #12] - 8008f26: 2b00 cmp r3, #0 - 8008f28: d109 bne.n 8008f3e - { - pdev->pClassDataCmsit[pdev->classId] = NULL; - 8008f2a: 687b ldr r3, [r7, #4] - 8008f2c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8008f30: 687b ldr r3, [r7, #4] - 8008f32: 32b0 adds r2, #176 @ 0xb0 - 8008f34: 2100 movs r1, #0 - 8008f36: f843 1022 str.w r1, [r3, r2, lsl #2] - return (uint8_t)USBD_EMEM; - 8008f3a: 2302 movs r3, #2 - 8008f3c: e048 b.n 8008fd0 - } - - pdev->pClassDataCmsit[pdev->classId] = (void *)hhid; - 8008f3e: 687b ldr r3, [r7, #4] - 8008f40: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8008f44: 687b ldr r3, [r7, #4] - 8008f46: 32b0 adds r2, #176 @ 0xb0 - 8008f48: 68f9 ldr r1, [r7, #12] - 8008f4a: f843 1022 str.w r1, [r3, r2, lsl #2] - pdev->pClassData = pdev->pClassDataCmsit[pdev->classId]; - 8008f4e: 687b ldr r3, [r7, #4] - 8008f50: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8008f54: 687b ldr r3, [r7, #4] - 8008f56: 32b0 adds r2, #176 @ 0xb0 - 8008f58: f853 2022 ldr.w r2, [r3, r2, lsl #2] - 8008f5c: 687b ldr r3, [r7, #4] - 8008f5e: 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) - 8008f62: 687b ldr r3, [r7, #4] - 8008f64: 7c1b ldrb r3, [r3, #16] - 8008f66: 2b00 cmp r3, #0 - 8008f68: d10d bne.n 8008f86 - { - pdev->ep_in[HIDInEpAdd & 0xFU].bInterval = HID_HS_BINTERVAL; - 8008f6a: 4b1b ldr r3, [pc, #108] @ (8008fd8 ) - 8008f6c: 781b ldrb r3, [r3, #0] - 8008f6e: f003 020f and.w r2, r3, #15 - 8008f72: 6879 ldr r1, [r7, #4] - 8008f74: 4613 mov r3, r2 - 8008f76: 009b lsls r3, r3, #2 - 8008f78: 4413 add r3, r2 - 8008f7a: 009b lsls r3, r3, #2 - 8008f7c: 440b add r3, r1 - 8008f7e: 331c adds r3, #28 - 8008f80: 2207 movs r2, #7 - 8008f82: 601a str r2, [r3, #0] - 8008f84: e00c b.n 8008fa0 - } - else /* LOW and FULL-speed endpoints */ - { - pdev->ep_in[HIDInEpAdd & 0xFU].bInterval = HID_FS_BINTERVAL; - 8008f86: 4b14 ldr r3, [pc, #80] @ (8008fd8 ) - 8008f88: 781b ldrb r3, [r3, #0] - 8008f8a: f003 020f and.w r2, r3, #15 - 8008f8e: 6879 ldr r1, [r7, #4] - 8008f90: 4613 mov r3, r2 - 8008f92: 009b lsls r3, r3, #2 - 8008f94: 4413 add r3, r2 - 8008f96: 009b lsls r3, r3, #2 - 8008f98: 440b add r3, r1 - 8008f9a: 331c adds r3, #28 - 8008f9c: 220a movs r2, #10 - 8008f9e: 601a str r2, [r3, #0] - } - - /* Open EP IN */ - (void)USBD_LL_OpenEP(pdev, HIDInEpAdd, USBD_EP_TYPE_INTR, HID_EPIN_SIZE); - 8008fa0: 4b0d ldr r3, [pc, #52] @ (8008fd8 ) - 8008fa2: 7819 ldrb r1, [r3, #0] - 8008fa4: 230e movs r3, #14 - 8008fa6: 2203 movs r2, #3 - 8008fa8: 6878 ldr r0, [r7, #4] - 8008faa: f002 f83e bl 800b02a - pdev->ep_in[HIDInEpAdd & 0xFU].is_used = 1U; - 8008fae: 4b0a ldr r3, [pc, #40] @ (8008fd8 ) - 8008fb0: 781b ldrb r3, [r3, #0] - 8008fb2: f003 020f and.w r2, r3, #15 - 8008fb6: 6879 ldr r1, [r7, #4] - 8008fb8: 4613 mov r3, r2 - 8008fba: 009b lsls r3, r3, #2 - 8008fbc: 4413 add r3, r2 - 8008fbe: 009b lsls r3, r3, #2 - 8008fc0: 440b add r3, r1 - 8008fc2: 3323 adds r3, #35 @ 0x23 - 8008fc4: 2201 movs r2, #1 - 8008fc6: 701a strb r2, [r3, #0] - - hhid->state = USBD_HID_IDLE; - 8008fc8: 68fb ldr r3, [r7, #12] - 8008fca: 2200 movs r2, #0 - 8008fcc: 731a strb r2, [r3, #12] - - return (uint8_t)USBD_OK; - 8008fce: 2300 movs r3, #0 -} - 8008fd0: 4618 mov r0, r3 - 8008fd2: 3710 adds r7, #16 - 8008fd4: 46bd mov sp, r7 - 8008fd6: bd80 pop {r7, pc} - 8008fd8: 200001b1 .word 0x200001b1 - -08008fdc : - * @param pdev: device instance - * @param cfgidx: Configuration index - * @retval status - */ -static uint8_t USBD_HID_DeInit(USBD_HandleTypeDef *pdev, uint8_t cfgidx) -{ - 8008fdc: b580 push {r7, lr} - 8008fde: b082 sub sp, #8 - 8008fe0: af00 add r7, sp, #0 - 8008fe2: 6078 str r0, [r7, #4] - 8008fe4: 460b mov r3, r1 - 8008fe6: 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); - 8008fe8: 4b1f ldr r3, [pc, #124] @ (8009068 ) - 8008fea: 781b ldrb r3, [r3, #0] - 8008fec: 4619 mov r1, r3 - 8008fee: 6878 ldr r0, [r7, #4] - 8008ff0: f002 f841 bl 800b076 - pdev->ep_in[HIDInEpAdd & 0xFU].is_used = 0U; - 8008ff4: 4b1c ldr r3, [pc, #112] @ (8009068 ) - 8008ff6: 781b ldrb r3, [r3, #0] - 8008ff8: f003 020f and.w r2, r3, #15 - 8008ffc: 6879 ldr r1, [r7, #4] - 8008ffe: 4613 mov r3, r2 - 8009000: 009b lsls r3, r3, #2 - 8009002: 4413 add r3, r2 - 8009004: 009b lsls r3, r3, #2 - 8009006: 440b add r3, r1 - 8009008: 3323 adds r3, #35 @ 0x23 - 800900a: 2200 movs r2, #0 - 800900c: 701a strb r2, [r3, #0] - pdev->ep_in[HIDInEpAdd & 0xFU].bInterval = 0U; - 800900e: 4b16 ldr r3, [pc, #88] @ (8009068 ) - 8009010: 781b ldrb r3, [r3, #0] - 8009012: f003 020f and.w r2, r3, #15 - 8009016: 6879 ldr r1, [r7, #4] - 8009018: 4613 mov r3, r2 - 800901a: 009b lsls r3, r3, #2 - 800901c: 4413 add r3, r2 - 800901e: 009b lsls r3, r3, #2 - 8009020: 440b add r3, r1 - 8009022: 331c adds r3, #28 - 8009024: 2200 movs r2, #0 - 8009026: 601a str r2, [r3, #0] - - /* Free allocated memory */ - if (pdev->pClassDataCmsit[pdev->classId] != NULL) - 8009028: 687b ldr r3, [r7, #4] - 800902a: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 800902e: 687b ldr r3, [r7, #4] - 8009030: 32b0 adds r2, #176 @ 0xb0 - 8009032: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009036: 2b00 cmp r3, #0 - 8009038: d011 beq.n 800905e - { - (void)USBD_free(pdev->pClassDataCmsit[pdev->classId]); - 800903a: 687b ldr r3, [r7, #4] - 800903c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 +08009034 : + 8009034: b480 push {r7} + 8009036: b083 sub sp, #12 + 8009038: af00 add r7, sp, #0 + 800903a: 6078 str r0, [r7, #4] + 800903c: 460b mov r3, r1 + 800903e: 70fb strb r3, [r7, #3] 8009040: 687b ldr r3, [r7, #4] - 8009042: 32b0 adds r2, #176 @ 0xb0 - 8009044: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009048: 4618 mov r0, r3 - 800904a: f002 f95b bl 800b304 - pdev->pClassDataCmsit[pdev->classId] = NULL; - 800904e: 687b ldr r3, [r7, #4] - 8009050: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009054: 687b ldr r3, [r7, #4] - 8009056: 32b0 adds r2, #176 @ 0xb0 - 8009058: 2100 movs r1, #0 - 800905a: f843 1022 str.w r1, [r3, r2, lsl #2] - } + 8009042: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009046: 687b ldr r3, [r7, #4] + 8009048: 32b0 adds r2, #176 @ 0xb0 + 800904a: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800904e: 2200 movs r2, #0 + 8009050: 731a strb r2, [r3, #12] + 8009052: 2300 movs r3, #0 + 8009054: 4618 mov r0, r3 + 8009056: 370c adds r7, #12 + 8009058: 46bd mov sp, r7 + 800905a: f85d 7b04 ldr.w r7, [sp], #4 + 800905e: 4770 bx lr - return (uint8_t)USBD_OK; - 800905e: 2300 movs r3, #0 -} - 8009060: 4618 mov r0, r3 - 8009062: 3708 adds r7, #8 - 8009064: 46bd mov sp, r7 - 8009066: bd80 pop {r7, pc} - 8009068: 200001b1 .word 0x200001b1 +08009060 : + 8009060: b480 push {r7} + 8009062: b083 sub sp, #12 + 8009064: af00 add r7, sp, #0 + 8009066: 6078 str r0, [r7, #4] + 8009068: 687b ldr r3, [r7, #4] + 800906a: 220a movs r2, #10 + 800906c: 801a strh r2, [r3, #0] + 800906e: 4b03 ldr r3, [pc, #12] @ (800907c ) + 8009070: 4618 mov r0, r3 + 8009072: 370c adds r7, #12 + 8009074: 46bd mov sp, r7 + 8009076: f85d 7b04 ldr.w r7, [sp], #4 + 800907a: 4770 bx lr + 800907c: 20000178 .word 0x20000178 -0800906c : - * @param pdev: instance - * @param req: usb requests - * @retval status - */ -static uint8_t USBD_HID_Setup(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) -{ - 800906c: b580 push {r7, lr} - 800906e: b086 sub sp, #24 - 8009070: af00 add r7, sp, #0 - 8009072: 6078 str r0, [r7, #4] - 8009074: 6039 str r1, [r7, #0] - USBD_HID_HandleTypeDef *hhid = (USBD_HID_HandleTypeDef *)pdev->pClassDataCmsit[pdev->classId]; - 8009076: 687b ldr r3, [r7, #4] - 8009078: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 800907c: 687b ldr r3, [r7, #4] - 800907e: 32b0 adds r2, #176 @ 0xb0 - 8009080: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009084: 60fb str r3, [r7, #12] - USBD_StatusTypeDef ret = USBD_OK; - 8009086: 2300 movs r3, #0 - 8009088: 75fb strb r3, [r7, #23] - uint16_t len; - uint8_t *pbuf; - uint16_t status_info = 0U; - 800908a: 2300 movs r3, #0 - 800908c: 817b strh r3, [r7, #10] - - if (hhid == NULL) +08009080 : + 8009080: b580 push {r7, lr} + 8009082: b086 sub sp, #24 + 8009084: af00 add r7, sp, #0 + 8009086: 60f8 str r0, [r7, #12] + 8009088: 60b9 str r1, [r7, #8] + 800908a: 4613 mov r3, r2 + 800908c: 71fb strb r3, [r7, #7] 800908e: 68fb ldr r3, [r7, #12] 8009090: 2b00 cmp r3, #0 - 8009092: d101 bne.n 8009098 - { - return (uint8_t)USBD_FAIL; + 8009092: d101 bne.n 8009098 8009094: 2303 movs r3, #3 - 8009096: e0e8 b.n 800926a - } + 8009096: e01f b.n 80090d8 + 8009098: 68fb ldr r3, [r7, #12] + 800909a: 2200 movs r2, #0 + 800909c: f8c3 22b8 str.w r2, [r3, #696] @ 0x2b8 + 80090a0: 68fb ldr r3, [r7, #12] + 80090a2: 2200 movs r2, #0 + 80090a4: f8c3 22c4 str.w r2, [r3, #708] @ 0x2c4 + 80090a8: 68fb ldr r3, [r7, #12] + 80090aa: 2200 movs r2, #0 + 80090ac: f8c3 22d0 str.w r2, [r3, #720] @ 0x2d0 + 80090b0: 68bb ldr r3, [r7, #8] + 80090b2: 2b00 cmp r3, #0 + 80090b4: d003 beq.n 80090be + 80090b6: 68fb ldr r3, [r7, #12] + 80090b8: 68ba ldr r2, [r7, #8] + 80090ba: f8c3 22b4 str.w r2, [r3, #692] @ 0x2b4 + 80090be: 68fb ldr r3, [r7, #12] + 80090c0: 2201 movs r2, #1 + 80090c2: f883 229c strb.w r2, [r3, #668] @ 0x29c + 80090c6: 68fb ldr r3, [r7, #12] + 80090c8: 79fa ldrb r2, [r7, #7] + 80090ca: 701a strb r2, [r3, #0] + 80090cc: 68f8 ldr r0, [r7, #12] + 80090ce: f001 fda3 bl 800ac18 + 80090d2: 4603 mov r3, r0 + 80090d4: 75fb strb r3, [r7, #23] + 80090d6: 7dfb ldrb r3, [r7, #23] + 80090d8: 4618 mov r0, r3 + 80090da: 3718 adds r7, #24 + 80090dc: 46bd mov sp, r7 + 80090de: bd80 pop {r7, pc} - switch (req->bmRequest & USB_REQ_TYPE_MASK) - 8009098: 683b ldr r3, [r7, #0] - 800909a: 781b ldrb r3, [r3, #0] - 800909c: f003 0360 and.w r3, r3, #96 @ 0x60 - 80090a0: 2b00 cmp r3, #0 - 80090a2: d046 beq.n 8009132 - 80090a4: 2b20 cmp r3, #32 - 80090a6: f040 80d8 bne.w 800925a - { - case USB_REQ_TYPE_CLASS : - switch (req->bRequest) - 80090aa: 683b ldr r3, [r7, #0] - 80090ac: 785b ldrb r3, [r3, #1] - 80090ae: 3b02 subs r3, #2 - 80090b0: 2b09 cmp r3, #9 - 80090b2: d836 bhi.n 8009122 - 80090b4: a201 add r2, pc, #4 @ (adr r2, 80090bc ) - 80090b6: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 80090ba: bf00 nop - 80090bc: 08009113 .word 0x08009113 - 80090c0: 080090f3 .word 0x080090f3 - 80090c4: 08009123 .word 0x08009123 - 80090c8: 08009123 .word 0x08009123 - 80090cc: 08009123 .word 0x08009123 - 80090d0: 08009123 .word 0x08009123 - 80090d4: 08009123 .word 0x08009123 - 80090d8: 08009123 .word 0x08009123 - 80090dc: 08009101 .word 0x08009101 - 80090e0: 080090e5 .word 0x080090e5 - { - case USBD_HID_REQ_SET_PROTOCOL: - hhid->Protocol = (uint8_t)(req->wValue); - 80090e4: 683b ldr r3, [r7, #0] - 80090e6: 885b ldrh r3, [r3, #2] - 80090e8: b2db uxtb r3, r3 - 80090ea: 461a mov r2, r3 - 80090ec: 68fb ldr r3, [r7, #12] - 80090ee: 601a str r2, [r3, #0] - break; - 80090f0: e01e b.n 8009130 +080090e0 : + 80090e0: b580 push {r7, lr} + 80090e2: b084 sub sp, #16 + 80090e4: af00 add r7, sp, #0 + 80090e6: 6078 str r0, [r7, #4] + 80090e8: 6039 str r1, [r7, #0] + 80090ea: 2300 movs r3, #0 + 80090ec: 81fb strh r3, [r7, #14] + 80090ee: 683b ldr r3, [r7, #0] + 80090f0: 2b00 cmp r3, #0 + 80090f2: d101 bne.n 80090f8 + 80090f4: 2303 movs r3, #3 + 80090f6: e025 b.n 8009144 + 80090f8: 687b ldr r3, [r7, #4] + 80090fa: 683a ldr r2, [r7, #0] + 80090fc: f8c3 22b8 str.w r2, [r3, #696] @ 0x2b8 + 8009100: 687b ldr r3, [r7, #4] + 8009102: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009106: 687b ldr r3, [r7, #4] + 8009108: 32ae adds r2, #174 @ 0xae + 800910a: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800910e: 6adb ldr r3, [r3, #44] @ 0x2c + 8009110: 2b00 cmp r3, #0 + 8009112: d00f beq.n 8009134 + 8009114: 687b ldr r3, [r7, #4] + 8009116: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 800911a: 687b ldr r3, [r7, #4] + 800911c: 32ae adds r2, #174 @ 0xae + 800911e: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009122: 6adb ldr r3, [r3, #44] @ 0x2c + 8009124: f107 020e add.w r2, r7, #14 + 8009128: 4610 mov r0, r2 + 800912a: 4798 blx r3 + 800912c: 4602 mov r2, r0 + 800912e: 687b ldr r3, [r7, #4] + 8009130: f8c3 22d0 str.w r2, [r3, #720] @ 0x2d0 + 8009134: 687b ldr r3, [r7, #4] + 8009136: f8d3 32d8 ldr.w r3, [r3, #728] @ 0x2d8 + 800913a: 1c5a adds r2, r3, #1 + 800913c: 687b ldr r3, [r7, #4] + 800913e: f8c3 22d8 str.w r2, [r3, #728] @ 0x2d8 + 8009142: 2300 movs r3, #0 + 8009144: 4618 mov r0, r3 + 8009146: 3710 adds r7, #16 + 8009148: 46bd mov sp, r7 + 800914a: bd80 pop {r7, pc} - case USBD_HID_REQ_GET_PROTOCOL: - (void)USBD_CtlSendData(pdev, (uint8_t *)&hhid->Protocol, 1U); - 80090f2: 68fb ldr r3, [r7, #12] - 80090f4: 2201 movs r2, #1 - 80090f6: 4619 mov r1, r3 - 80090f8: 6878 ldr r0, [r7, #4] - 80090fa: f001 fc25 bl 800a948 - break; - 80090fe: e017 b.n 8009130 +0800914c : + 800914c: b580 push {r7, lr} + 800914e: b082 sub sp, #8 + 8009150: af00 add r7, sp, #0 + 8009152: 6078 str r0, [r7, #4] + 8009154: 6878 ldr r0, [r7, #4] + 8009156: f001 fdab bl 800acb0 + 800915a: 4603 mov r3, r0 + 800915c: 4618 mov r0, r3 + 800915e: 3708 adds r7, #8 + 8009160: 46bd mov sp, r7 + 8009162: bd80 pop {r7, pc} - case USBD_HID_REQ_SET_IDLE: - hhid->IdleState = (uint8_t)(req->wValue >> 8); - 8009100: 683b ldr r3, [r7, #0] - 8009102: 885b ldrh r3, [r3, #2] - 8009104: 0a1b lsrs r3, r3, #8 - 8009106: b29b uxth r3, r3 - 8009108: b2db uxtb r3, r3 - 800910a: 461a mov r2, r3 - 800910c: 68fb ldr r3, [r7, #12] - 800910e: 605a str r2, [r3, #4] - break; - 8009110: e00e b.n 8009130 +08009164 : + 8009164: b480 push {r7} + 8009166: b083 sub sp, #12 + 8009168: af00 add r7, sp, #0 + 800916a: 6078 str r0, [r7, #4] + 800916c: 2300 movs r3, #0 + 800916e: 4618 mov r0, r3 + 8009170: 370c adds r7, #12 + 8009172: 46bd mov sp, r7 + 8009174: f85d 7b04 ldr.w r7, [sp], #4 + 8009178: 4770 bx lr - case USBD_HID_REQ_GET_IDLE: - (void)USBD_CtlSendData(pdev, (uint8_t *)&hhid->IdleState, 1U); - 8009112: 68fb ldr r3, [r7, #12] - 8009114: 3304 adds r3, #4 - 8009116: 2201 movs r2, #1 - 8009118: 4619 mov r1, r3 - 800911a: 6878 ldr r0, [r7, #4] - 800911c: f001 fc14 bl 800a948 - break; - 8009120: e006 b.n 8009130 +0800917a : + 800917a: b580 push {r7, lr} + 800917c: b084 sub sp, #16 + 800917e: af00 add r7, sp, #0 + 8009180: 6078 str r0, [r7, #4] + 8009182: 460b mov r3, r1 + 8009184: 70fb strb r3, [r7, #3] + 8009186: 2300 movs r3, #0 + 8009188: 73fb strb r3, [r7, #15] + 800918a: 687b ldr r3, [r7, #4] + 800918c: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009190: 2b00 cmp r3, #0 + 8009192: d009 beq.n 80091a8 + 8009194: 687b ldr r3, [r7, #4] + 8009196: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 800919a: 681b ldr r3, [r3, #0] + 800919c: 78fa ldrb r2, [r7, #3] + 800919e: 4611 mov r1, r2 + 80091a0: 6878 ldr r0, [r7, #4] + 80091a2: 4798 blx r3 + 80091a4: 4603 mov r3, r0 + 80091a6: 73fb strb r3, [r7, #15] + 80091a8: 7bfb ldrb r3, [r7, #15] + 80091aa: 4618 mov r0, r3 + 80091ac: 3710 adds r7, #16 + 80091ae: 46bd mov sp, r7 + 80091b0: bd80 pop {r7, pc} - default: - USBD_CtlError(pdev, req); - 8009122: 6839 ldr r1, [r7, #0] - 8009124: 6878 ldr r0, [r7, #4] - 8009126: f001 fb92 bl 800a84e - ret = USBD_FAIL; - 800912a: 2303 movs r3, #3 - 800912c: 75fb strb r3, [r7, #23] - break; - 800912e: bf00 nop - } - break; - 8009130: e09a b.n 8009268 - case USB_REQ_TYPE_STANDARD: - switch (req->bRequest) - 8009132: 683b ldr r3, [r7, #0] - 8009134: 785b ldrb r3, [r3, #1] - 8009136: 2b0b cmp r3, #11 - 8009138: f200 8086 bhi.w 8009248 - 800913c: a201 add r2, pc, #4 @ (adr r2, 8009144 ) - 800913e: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8009142: bf00 nop - 8009144: 08009175 .word 0x08009175 - 8009148: 08009257 .word 0x08009257 - 800914c: 08009249 .word 0x08009249 - 8009150: 08009249 .word 0x08009249 - 8009154: 08009249 .word 0x08009249 - 8009158: 08009249 .word 0x08009249 - 800915c: 0800919f .word 0x0800919f - 8009160: 08009249 .word 0x08009249 - 8009164: 08009249 .word 0x08009249 - 8009168: 08009249 .word 0x08009249 - 800916c: 080091f7 .word 0x080091f7 - 8009170: 08009221 .word 0x08009221 - { - case USB_REQ_GET_STATUS: - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009174: 687b ldr r3, [r7, #4] - 8009176: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800917a: b2db uxtb r3, r3 - 800917c: 2b03 cmp r3, #3 - 800917e: d107 bne.n 8009190 - { - (void)USBD_CtlSendData(pdev, (uint8_t *)&status_info, 2U); - 8009180: f107 030a add.w r3, r7, #10 - 8009184: 2202 movs r2, #2 - 8009186: 4619 mov r1, r3 - 8009188: 6878 ldr r0, [r7, #4] - 800918a: f001 fbdd bl 800a948 - else - { - USBD_CtlError(pdev, req); - ret = USBD_FAIL; - } - break; - 800918e: e063 b.n 8009258 - USBD_CtlError(pdev, req); - 8009190: 6839 ldr r1, [r7, #0] - 8009192: 6878 ldr r0, [r7, #4] - 8009194: f001 fb5b bl 800a84e - ret = USBD_FAIL; - 8009198: 2303 movs r3, #3 - 800919a: 75fb strb r3, [r7, #23] - break; - 800919c: e05c b.n 8009258 +080091b2 : + 80091b2: b580 push {r7, lr} + 80091b4: b084 sub sp, #16 + 80091b6: af00 add r7, sp, #0 + 80091b8: 6078 str r0, [r7, #4] + 80091ba: 460b mov r3, r1 + 80091bc: 70fb strb r3, [r7, #3] + 80091be: 2300 movs r3, #0 + 80091c0: 73fb strb r3, [r7, #15] + 80091c2: 687b ldr r3, [r7, #4] + 80091c4: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 80091c8: 685b ldr r3, [r3, #4] + 80091ca: 78fa ldrb r2, [r7, #3] + 80091cc: 4611 mov r1, r2 + 80091ce: 6878 ldr r0, [r7, #4] + 80091d0: 4798 blx r3 + 80091d2: 4603 mov r3, r0 + 80091d4: 2b00 cmp r3, #0 + 80091d6: d001 beq.n 80091dc + 80091d8: 2303 movs r3, #3 + 80091da: 73fb strb r3, [r7, #15] + 80091dc: 7bfb ldrb r3, [r7, #15] + 80091de: 4618 mov r0, r3 + 80091e0: 3710 adds r7, #16 + 80091e2: 46bd mov sp, r7 + 80091e4: bd80 pop {r7, pc} - case USB_REQ_GET_DESCRIPTOR: - if ((req->wValue >> 8) == HID_REPORT_DESC) - 800919e: 683b ldr r3, [r7, #0] - 80091a0: 885b ldrh r3, [r3, #2] - 80091a2: 0a1b lsrs r3, r3, #8 - 80091a4: b29b uxth r3, r3 - 80091a6: 2b22 cmp r3, #34 @ 0x22 - 80091a8: d108 bne.n 80091bc - { - len = MIN(HID_MOUSE_REPORT_DESC_SIZE, req->wLength); - 80091aa: 683b ldr r3, [r7, #0] - 80091ac: 88db ldrh r3, [r3, #6] - 80091ae: 2b2d cmp r3, #45 @ 0x2d - 80091b0: bf28 it cs - 80091b2: 232d movcs r3, #45 @ 0x2d - 80091b4: 82bb strh r3, [r7, #20] - pbuf = HID_MOUSE_ReportDesc; - 80091b6: 4b2f ldr r3, [pc, #188] @ (8009274 ) - 80091b8: 613b str r3, [r7, #16] - 80091ba: e015 b.n 80091e8 - } - else if ((req->wValue >> 8) == HID_DESCRIPTOR_TYPE) - 80091bc: 683b ldr r3, [r7, #0] - 80091be: 885b ldrh r3, [r3, #2] - 80091c0: 0a1b lsrs r3, r3, #8 - 80091c2: b29b uxth r3, r3 - 80091c4: 2b21 cmp r3, #33 @ 0x21 - 80091c6: d108 bne.n 80091da - { - pbuf = USBD_HID_Desc; - 80091c8: 4b2b ldr r3, [pc, #172] @ (8009278 ) - 80091ca: 613b str r3, [r7, #16] - len = MIN(USB_HID_DESC_SIZ, req->wLength); - 80091cc: 683b ldr r3, [r7, #0] - 80091ce: 88db ldrh r3, [r3, #6] - 80091d0: 2b09 cmp r3, #9 - 80091d2: bf28 it cs - 80091d4: 2309 movcs r3, #9 - 80091d6: 82bb strh r3, [r7, #20] - 80091d8: e006 b.n 80091e8 - } - else - { - USBD_CtlError(pdev, req); - 80091da: 6839 ldr r1, [r7, #0] - 80091dc: 6878 ldr r0, [r7, #4] - 80091de: f001 fb36 bl 800a84e - ret = USBD_FAIL; - 80091e2: 2303 movs r3, #3 - 80091e4: 75fb strb r3, [r7, #23] - break; - 80091e6: e037 b.n 8009258 - } - (void)USBD_CtlSendData(pdev, pbuf, len); - 80091e8: 8abb ldrh r3, [r7, #20] - 80091ea: 461a mov r2, r3 - 80091ec: 6939 ldr r1, [r7, #16] - 80091ee: 6878 ldr r0, [r7, #4] - 80091f0: f001 fbaa bl 800a948 - break; - 80091f4: e030 b.n 8009258 +080091e6 : + 80091e6: b580 push {r7, lr} + 80091e8: b084 sub sp, #16 + 80091ea: af00 add r7, sp, #0 + 80091ec: 6078 str r0, [r7, #4] + 80091ee: 6039 str r1, [r7, #0] + 80091f0: 687b ldr r3, [r7, #4] + 80091f2: f203 23aa addw r3, r3, #682 @ 0x2aa + 80091f6: 6839 ldr r1, [r7, #0] + 80091f8: 4618 mov r0, r3 + 80091fa: f001 f94c bl 800a496 + 80091fe: 687b ldr r3, [r7, #4] + 8009200: 2201 movs r2, #1 + 8009202: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 8009206: 687b ldr r3, [r7, #4] + 8009208: f8b3 32b0 ldrh.w r3, [r3, #688] @ 0x2b0 + 800920c: 461a mov r2, r3 + 800920e: 687b ldr r3, [r7, #4] + 8009210: f8c3 2298 str.w r2, [r3, #664] @ 0x298 + 8009214: 687b ldr r3, [r7, #4] + 8009216: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa + 800921a: f003 031f and.w r3, r3, #31 + 800921e: 2b02 cmp r3, #2 + 8009220: d01a beq.n 8009258 + 8009222: 2b02 cmp r3, #2 + 8009224: d822 bhi.n 800926c + 8009226: 2b00 cmp r3, #0 + 8009228: d002 beq.n 8009230 + 800922a: 2b01 cmp r3, #1 + 800922c: d00a beq.n 8009244 + 800922e: e01d b.n 800926c + 8009230: 687b ldr r3, [r7, #4] + 8009232: f203 23aa addw r3, r3, #682 @ 0x2aa + 8009236: 4619 mov r1, r3 + 8009238: 6878 ldr r0, [r7, #4] + 800923a: f000 fb77 bl 800992c + 800923e: 4603 mov r3, r0 + 8009240: 73fb strb r3, [r7, #15] + 8009242: e020 b.n 8009286 + 8009244: 687b ldr r3, [r7, #4] + 8009246: f203 23aa addw r3, r3, #682 @ 0x2aa + 800924a: 4619 mov r1, r3 + 800924c: 6878 ldr r0, [r7, #4] + 800924e: f000 fbdf bl 8009a10 + 8009252: 4603 mov r3, r0 + 8009254: 73fb strb r3, [r7, #15] + 8009256: e016 b.n 8009286 + 8009258: 687b ldr r3, [r7, #4] + 800925a: f203 23aa addw r3, r3, #682 @ 0x2aa + 800925e: 4619 mov r1, r3 + 8009260: 6878 ldr r0, [r7, #4] + 8009262: f000 fc41 bl 8009ae8 + 8009266: 4603 mov r3, r0 + 8009268: 73fb strb r3, [r7, #15] + 800926a: e00c b.n 8009286 + 800926c: 687b ldr r3, [r7, #4] + 800926e: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa + 8009272: f023 037f bic.w r3, r3, #127 @ 0x7f + 8009276: b2db uxtb r3, r3 + 8009278: 4619 mov r1, r3 + 800927a: 6878 ldr r0, [r7, #4] + 800927c: f001 fd78 bl 800ad70 + 8009280: 4603 mov r3, r0 + 8009282: 73fb strb r3, [r7, #15] + 8009284: bf00 nop + 8009286: 7bfb ldrb r3, [r7, #15] + 8009288: 4618 mov r0, r3 + 800928a: 3710 adds r7, #16 + 800928c: 46bd mov sp, r7 + 800928e: bd80 pop {r7, pc} - case USB_REQ_GET_INTERFACE : - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 80091f6: 687b ldr r3, [r7, #4] - 80091f8: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80091fc: b2db uxtb r3, r3 - 80091fe: 2b03 cmp r3, #3 - 8009200: d107 bne.n 8009212 - { - (void)USBD_CtlSendData(pdev, (uint8_t *)&hhid->AltSetting, 1U); - 8009202: 68fb ldr r3, [r7, #12] - 8009204: 3308 adds r3, #8 - 8009206: 2201 movs r2, #1 - 8009208: 4619 mov r1, r3 - 800920a: 6878 ldr r0, [r7, #4] - 800920c: f001 fb9c bl 800a948 - else - { - USBD_CtlError(pdev, req); - ret = USBD_FAIL; - } - break; - 8009210: e022 b.n 8009258 - USBD_CtlError(pdev, req); - 8009212: 6839 ldr r1, [r7, #0] - 8009214: 6878 ldr r0, [r7, #4] - 8009216: f001 fb1a bl 800a84e - ret = USBD_FAIL; - 800921a: 2303 movs r3, #3 - 800921c: 75fb strb r3, [r7, #23] - break; - 800921e: e01b b.n 8009258 - - case USB_REQ_SET_INTERFACE: - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009220: 687b ldr r3, [r7, #4] - 8009222: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009226: b2db uxtb r3, r3 - 8009228: 2b03 cmp r3, #3 - 800922a: d106 bne.n 800923a - { - hhid->AltSetting = (uint8_t)(req->wValue); - 800922c: 683b ldr r3, [r7, #0] - 800922e: 885b ldrh r3, [r3, #2] - 8009230: b2db uxtb r3, r3 - 8009232: 461a mov r2, r3 - 8009234: 68fb ldr r3, [r7, #12] - 8009236: 609a str r2, [r3, #8] - else - { - USBD_CtlError(pdev, req); - ret = USBD_FAIL; - } - break; - 8009238: e00e b.n 8009258 - USBD_CtlError(pdev, req); - 800923a: 6839 ldr r1, [r7, #0] - 800923c: 6878 ldr r0, [r7, #4] - 800923e: f001 fb06 bl 800a84e - ret = USBD_FAIL; - 8009242: 2303 movs r3, #3 - 8009244: 75fb strb r3, [r7, #23] - break; - 8009246: e007 b.n 8009258 - - case USB_REQ_CLEAR_FEATURE: - break; - - default: - USBD_CtlError(pdev, req); - 8009248: 6839 ldr r1, [r7, #0] - 800924a: 6878 ldr r0, [r7, #4] - 800924c: f001 faff bl 800a84e - ret = USBD_FAIL; - 8009250: 2303 movs r3, #3 - 8009252: 75fb strb r3, [r7, #23] - break; - 8009254: e000 b.n 8009258 - break; - 8009256: bf00 nop - } - break; - 8009258: e006 b.n 8009268 - - default: - USBD_CtlError(pdev, req); - 800925a: 6839 ldr r1, [r7, #0] - 800925c: 6878 ldr r0, [r7, #4] - 800925e: f001 faf6 bl 800a84e - ret = USBD_FAIL; - 8009262: 2303 movs r3, #3 - 8009264: 75fb strb r3, [r7, #23] - break; - 8009266: bf00 nop - } - - return (uint8_t)ret; - 8009268: 7dfb ldrb r3, [r7, #23] -} - 800926a: 4618 mov r0, r3 - 800926c: 3718 adds r7, #24 - 800926e: 46bd mov sp, r7 - 8009270: bd80 pop {r7, pc} - 8009272: bf00 nop - 8009274: 20000184 .word 0x20000184 - 8009278: 2000016c .word 0x2000016c - -0800927c : -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) -{ - 800927c: b580 push {r7, lr} - 800927e: b086 sub sp, #24 - 8009280: af00 add r7, sp, #0 - 8009282: 60f8 str r0, [r7, #12] - 8009284: 60b9 str r1, [r7, #8] - 8009286: 4613 mov r3, r2 - 8009288: 80fb strh r3, [r7, #6] - USBD_HID_HandleTypeDef *hhid = (USBD_HID_HandleTypeDef *)pdev->pClassDataCmsit[pdev->classId]; - 800928a: 68fb ldr r3, [r7, #12] - 800928c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009290: 68fb ldr r3, [r7, #12] - 8009292: 32b0 adds r2, #176 @ 0xb0 - 8009294: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009298: 617b str r3, [r7, #20] -#endif /* USE_USBD_COMPOSITE */ - - if (hhid == NULL) - 800929a: 697b ldr r3, [r7, #20] - 800929c: 2b00 cmp r3, #0 - 800929e: d101 bne.n 80092a4 - { - return (uint8_t)USBD_FAIL; - 80092a0: 2303 movs r3, #3 - 80092a2: e014 b.n 80092ce -#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) - 80092a4: 68fb ldr r3, [r7, #12] - 80092a6: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80092aa: b2db uxtb r3, r3 - 80092ac: 2b03 cmp r3, #3 - 80092ae: d10d bne.n 80092cc - { - if (hhid->state == USBD_HID_IDLE) - 80092b0: 697b ldr r3, [r7, #20] - 80092b2: 7b1b ldrb r3, [r3, #12] - 80092b4: 2b00 cmp r3, #0 - 80092b6: d109 bne.n 80092cc - { - hhid->state = USBD_HID_BUSY; - 80092b8: 697b ldr r3, [r7, #20] - 80092ba: 2201 movs r2, #1 - 80092bc: 731a strb r2, [r3, #12] - (void)USBD_LL_Transmit(pdev, HIDInEpAdd, report, len); - 80092be: 4b06 ldr r3, [pc, #24] @ (80092d8 ) - 80092c0: 7819 ldrb r1, [r3, #0] - 80092c2: 88fb ldrh r3, [r7, #6] - 80092c4: 68ba ldr r2, [r7, #8] - 80092c6: 68f8 ldr r0, [r7, #12] - 80092c8: f001 ff7d bl 800b1c6 - } - } - - return (uint8_t)USBD_OK; - 80092cc: 2300 movs r3, #0 -} - 80092ce: 4618 mov r0, r3 - 80092d0: 3718 adds r7, #24 - 80092d2: 46bd mov sp, r7 - 80092d4: bd80 pop {r7, pc} - 80092d6: bf00 nop - 80092d8: 200001b1 .word 0x200001b1 - -080092dc : - * @param speed : current device speed - * @param length : pointer data length - * @retval pointer to descriptor buffer - */ -static uint8_t *USBD_HID_GetFSCfgDesc(uint16_t *length) -{ - 80092dc: b580 push {r7, lr} - 80092de: b084 sub sp, #16 - 80092e0: af00 add r7, sp, #0 - 80092e2: 6078 str r0, [r7, #4] - USBD_EpDescTypeDef *pEpDesc = USBD_GetEpDesc(USBD_HID_CfgDesc, HID_EPIN_ADDR); - 80092e4: 2181 movs r1, #129 @ 0x81 - 80092e6: 4809 ldr r0, [pc, #36] @ (800930c ) - 80092e8: f000 fc4e bl 8009b88 - 80092ec: 60f8 str r0, [r7, #12] - - if (pEpDesc != NULL) - 80092ee: 68fb ldr r3, [r7, #12] - 80092f0: 2b00 cmp r3, #0 - 80092f2: d002 beq.n 80092fa - { - pEpDesc->bInterval = HID_FS_BINTERVAL; - 80092f4: 68fb ldr r3, [r7, #12] - 80092f6: 220a movs r2, #10 - 80092f8: 719a strb r2, [r3, #6] - } - - *length = (uint16_t)sizeof(USBD_HID_CfgDesc); - 80092fa: 687b ldr r3, [r7, #4] - 80092fc: 2222 movs r2, #34 @ 0x22 - 80092fe: 801a strh r2, [r3, #0] - return USBD_HID_CfgDesc; - 8009300: 4b02 ldr r3, [pc, #8] @ (800930c ) -} - 8009302: 4618 mov r0, r3 - 8009304: 3710 adds r7, #16 - 8009306: 46bd mov sp, r7 - 8009308: bd80 pop {r7, pc} - 800930a: bf00 nop - 800930c: 20000148 .word 0x20000148 - -08009310 : - * @param speed : current device speed - * @param length : pointer data length - * @retval pointer to descriptor buffer - */ -static uint8_t *USBD_HID_GetHSCfgDesc(uint16_t *length) -{ - 8009310: b580 push {r7, lr} - 8009312: b084 sub sp, #16 - 8009314: af00 add r7, sp, #0 - 8009316: 6078 str r0, [r7, #4] - USBD_EpDescTypeDef *pEpDesc = USBD_GetEpDesc(USBD_HID_CfgDesc, HID_EPIN_ADDR); - 8009318: 2181 movs r1, #129 @ 0x81 - 800931a: 4809 ldr r0, [pc, #36] @ (8009340 ) - 800931c: f000 fc34 bl 8009b88 - 8009320: 60f8 str r0, [r7, #12] - - if (pEpDesc != NULL) - 8009322: 68fb ldr r3, [r7, #12] - 8009324: 2b00 cmp r3, #0 - 8009326: d002 beq.n 800932e - { - pEpDesc->bInterval = HID_HS_BINTERVAL; - 8009328: 68fb ldr r3, [r7, #12] - 800932a: 2207 movs r2, #7 - 800932c: 719a strb r2, [r3, #6] - } - - *length = (uint16_t)sizeof(USBD_HID_CfgDesc); - 800932e: 687b ldr r3, [r7, #4] - 8009330: 2222 movs r2, #34 @ 0x22 - 8009332: 801a strh r2, [r3, #0] - return USBD_HID_CfgDesc; - 8009334: 4b02 ldr r3, [pc, #8] @ (8009340 ) -} - 8009336: 4618 mov r0, r3 - 8009338: 3710 adds r7, #16 - 800933a: 46bd mov sp, r7 - 800933c: bd80 pop {r7, pc} - 800933e: bf00 nop - 8009340: 20000148 .word 0x20000148 - -08009344 : - * @param speed : current device speed - * @param length : pointer data length - * @retval pointer to descriptor buffer - */ -static uint8_t *USBD_HID_GetOtherSpeedCfgDesc(uint16_t *length) -{ - 8009344: b580 push {r7, lr} - 8009346: b084 sub sp, #16 - 8009348: af00 add r7, sp, #0 - 800934a: 6078 str r0, [r7, #4] - USBD_EpDescTypeDef *pEpDesc = USBD_GetEpDesc(USBD_HID_CfgDesc, HID_EPIN_ADDR); - 800934c: 2181 movs r1, #129 @ 0x81 - 800934e: 4809 ldr r0, [pc, #36] @ (8009374 ) - 8009350: f000 fc1a bl 8009b88 - 8009354: 60f8 str r0, [r7, #12] - - if (pEpDesc != NULL) - 8009356: 68fb ldr r3, [r7, #12] +08009290 : + 8009290: b580 push {r7, lr} + 8009292: b086 sub sp, #24 + 8009294: af00 add r7, sp, #0 + 8009296: 60f8 str r0, [r7, #12] + 8009298: 460b mov r3, r1 + 800929a: 607a str r2, [r7, #4] + 800929c: 72fb strb r3, [r7, #11] + 800929e: 2300 movs r3, #0 + 80092a0: 75fb strb r3, [r7, #23] + 80092a2: 7afb ldrb r3, [r7, #11] + 80092a4: 2b00 cmp r3, #0 + 80092a6: d177 bne.n 8009398 + 80092a8: 68fb ldr r3, [r7, #12] + 80092aa: f503 73aa add.w r3, r3, #340 @ 0x154 + 80092ae: 613b str r3, [r7, #16] + 80092b0: 68fb ldr r3, [r7, #12] + 80092b2: f8d3 3294 ldr.w r3, [r3, #660] @ 0x294 + 80092b6: 2b03 cmp r3, #3 + 80092b8: f040 80a1 bne.w 80093fe + 80092bc: 693b ldr r3, [r7, #16] + 80092be: 685b ldr r3, [r3, #4] + 80092c0: 693a ldr r2, [r7, #16] + 80092c2: 8992 ldrh r2, [r2, #12] + 80092c4: 4293 cmp r3, r2 + 80092c6: d91c bls.n 8009302 + 80092c8: 693b ldr r3, [r7, #16] + 80092ca: 685b ldr r3, [r3, #4] + 80092cc: 693a ldr r2, [r7, #16] + 80092ce: 8992 ldrh r2, [r2, #12] + 80092d0: 1a9a subs r2, r3, r2 + 80092d2: 693b ldr r3, [r7, #16] + 80092d4: 605a str r2, [r3, #4] + 80092d6: 693b ldr r3, [r7, #16] + 80092d8: 691b ldr r3, [r3, #16] + 80092da: 693a ldr r2, [r7, #16] + 80092dc: 8992 ldrh r2, [r2, #12] + 80092de: 441a add r2, r3 + 80092e0: 693b ldr r3, [r7, #16] + 80092e2: 611a str r2, [r3, #16] + 80092e4: 693b ldr r3, [r7, #16] + 80092e6: 6919 ldr r1, [r3, #16] + 80092e8: 693b ldr r3, [r7, #16] + 80092ea: 899b ldrh r3, [r3, #12] + 80092ec: 461a mov r2, r3 + 80092ee: 693b ldr r3, [r7, #16] + 80092f0: 685b ldr r3, [r3, #4] + 80092f2: 4293 cmp r3, r2 + 80092f4: bf38 it cc + 80092f6: 4613 movcc r3, r2 + 80092f8: 461a mov r2, r3 + 80092fa: 68f8 ldr r0, [r7, #12] + 80092fc: f001 f9b1 bl 800a662 + 8009300: e07d b.n 80093fe + 8009302: 68fb ldr r3, [r7, #12] + 8009304: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa + 8009308: f003 031f and.w r3, r3, #31 + 800930c: 2b02 cmp r3, #2 + 800930e: d014 beq.n 800933a + 8009310: 2b02 cmp r3, #2 + 8009312: d81d bhi.n 8009350 + 8009314: 2b00 cmp r3, #0 + 8009316: d002 beq.n 800931e + 8009318: 2b01 cmp r3, #1 + 800931a: d003 beq.n 8009324 + 800931c: e018 b.n 8009350 + 800931e: 2300 movs r3, #0 + 8009320: 75bb strb r3, [r7, #22] + 8009322: e018 b.n 8009356 + 8009324: 68fb ldr r3, [r7, #12] + 8009326: f8b3 32ae ldrh.w r3, [r3, #686] @ 0x2ae + 800932a: b2db uxtb r3, r3 + 800932c: 4619 mov r1, r3 + 800932e: 68f8 ldr r0, [r7, #12] + 8009330: f000 fa6e bl 8009810 + 8009334: 4603 mov r3, r0 + 8009336: 75bb strb r3, [r7, #22] + 8009338: e00d b.n 8009356 + 800933a: 68fb ldr r3, [r7, #12] + 800933c: f8b3 32ae ldrh.w r3, [r3, #686] @ 0x2ae + 8009340: b2db uxtb r3, r3 + 8009342: 4619 mov r1, r3 + 8009344: 68f8 ldr r0, [r7, #12] + 8009346: f000 fa70 bl 800982a + 800934a: 4603 mov r3, r0 + 800934c: 75bb strb r3, [r7, #22] + 800934e: e002 b.n 8009356 + 8009350: 2300 movs r3, #0 + 8009352: 75bb strb r3, [r7, #22] + 8009354: bf00 nop + 8009356: 7dbb ldrb r3, [r7, #22] 8009358: 2b00 cmp r3, #0 - 800935a: d002 beq.n 8009362 - { - pEpDesc->bInterval = HID_FS_BINTERVAL; + 800935a: d119 bne.n 8009390 800935c: 68fb ldr r3, [r7, #12] - 800935e: 220a movs r2, #10 - 8009360: 719a strb r2, [r3, #6] - } - - *length = (uint16_t)sizeof(USBD_HID_CfgDesc); - 8009362: 687b ldr r3, [r7, #4] - 8009364: 2222 movs r2, #34 @ 0x22 - 8009366: 801a strh r2, [r3, #0] - return USBD_HID_CfgDesc; - 8009368: 4b02 ldr r3, [pc, #8] @ (8009374 ) -} - 800936a: 4618 mov r0, r3 - 800936c: 3710 adds r7, #16 - 800936e: 46bd mov sp, r7 - 8009370: bd80 pop {r7, pc} - 8009372: bf00 nop - 8009374: 20000148 .word 0x20000148 - -08009378 : - * @param pdev: device instance - * @param epnum: endpoint index - * @retval status - */ -static uint8_t USBD_HID_DataIn(USBD_HandleTypeDef *pdev, uint8_t epnum) -{ - 8009378: b480 push {r7} - 800937a: b083 sub sp, #12 - 800937c: af00 add r7, sp, #0 - 800937e: 6078 str r0, [r7, #4] - 8009380: 460b mov r3, r1 - 8009382: 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; - 8009384: 687b ldr r3, [r7, #4] - 8009386: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 800938a: 687b ldr r3, [r7, #4] - 800938c: 32b0 adds r2, #176 @ 0xb0 - 800938e: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009392: 2200 movs r2, #0 - 8009394: 731a strb r2, [r3, #12] - - return (uint8_t)USBD_OK; - 8009396: 2300 movs r3, #0 -} - 8009398: 4618 mov r0, r3 - 800939a: 370c adds r7, #12 - 800939c: 46bd mov sp, r7 - 800939e: f85d 7b04 ldr.w r7, [sp], #4 - 80093a2: 4770 bx lr - -080093a4 : - * return Device Qualifier descriptor - * @param length : pointer data length - * @retval pointer to descriptor buffer - */ -static uint8_t *USBD_HID_GetDeviceQualifierDesc(uint16_t *length) -{ - 80093a4: b480 push {r7} - 80093a6: b083 sub sp, #12 - 80093a8: af00 add r7, sp, #0 - 80093aa: 6078 str r0, [r7, #4] - *length = (uint16_t)sizeof(USBD_HID_DeviceQualifierDesc); - 80093ac: 687b ldr r3, [r7, #4] - 80093ae: 220a movs r2, #10 - 80093b0: 801a strh r2, [r3, #0] - - return USBD_HID_DeviceQualifierDesc; - 80093b2: 4b03 ldr r3, [pc, #12] @ (80093c0 ) -} - 80093b4: 4618 mov r0, r3 - 80093b6: 370c adds r7, #12 - 80093b8: 46bd mov sp, r7 - 80093ba: f85d 7b04 ldr.w r7, [sp], #4 - 80093be: 4770 bx lr - 80093c0: 20000178 .word 0x20000178 - -080093c4 : - * @param id: Low level core index - * @retval status: USBD Status - */ -USBD_StatusTypeDef USBD_Init(USBD_HandleTypeDef *pdev, - USBD_DescriptorsTypeDef *pdesc, uint8_t id) -{ - 80093c4: b580 push {r7, lr} - 80093c6: b086 sub sp, #24 - 80093c8: af00 add r7, sp, #0 - 80093ca: 60f8 str r0, [r7, #12] - 80093cc: 60b9 str r1, [r7, #8] - 80093ce: 4613 mov r3, r2 - 80093d0: 71fb strb r3, [r7, #7] - USBD_StatusTypeDef ret; - - /* Check whether the USB Host handle is valid */ - if (pdev == NULL) - 80093d2: 68fb ldr r3, [r7, #12] - 80093d4: 2b00 cmp r3, #0 - 80093d6: d101 bne.n 80093dc - { -#if (USBD_DEBUG_LEVEL > 1U) - USBD_ErrLog("Invalid Device handle"); -#endif /* (USBD_DEBUG_LEVEL > 1U) */ - return USBD_FAIL; - 80093d8: 2303 movs r3, #3 - 80093da: e01f b.n 800941c - pdev->NumClasses = 0; - pdev->classId = 0; - } -#else - /* Unlink previous class*/ - pdev->pClass[0] = NULL; - 80093dc: 68fb ldr r3, [r7, #12] - 80093de: 2200 movs r2, #0 - 80093e0: f8c3 22b8 str.w r2, [r3, #696] @ 0x2b8 - pdev->pUserData[0] = NULL; - 80093e4: 68fb ldr r3, [r7, #12] - 80093e6: 2200 movs r2, #0 - 80093e8: f8c3 22c4 str.w r2, [r3, #708] @ 0x2c4 -#endif /* USE_USBD_COMPOSITE */ - - pdev->pConfDesc = NULL; - 80093ec: 68fb ldr r3, [r7, #12] - 80093ee: 2200 movs r2, #0 - 80093f0: f8c3 22d0 str.w r2, [r3, #720] @ 0x2d0 - - /* Assign USBD Descriptors */ - if (pdesc != NULL) - 80093f4: 68bb ldr r3, [r7, #8] + 800935e: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009362: b2db uxtb r3, r3 + 8009364: 2b03 cmp r3, #3 + 8009366: d113 bne.n 8009390 + 8009368: 7dba ldrb r2, [r7, #22] + 800936a: 68fb ldr r3, [r7, #12] + 800936c: 32ae adds r2, #174 @ 0xae + 800936e: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009372: 691b ldr r3, [r3, #16] + 8009374: 2b00 cmp r3, #0 + 8009376: d00b beq.n 8009390 + 8009378: 7dba ldrb r2, [r7, #22] + 800937a: 68fb ldr r3, [r7, #12] + 800937c: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8009380: 7dba ldrb r2, [r7, #22] + 8009382: 68fb ldr r3, [r7, #12] + 8009384: 32ae adds r2, #174 @ 0xae + 8009386: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800938a: 691b ldr r3, [r3, #16] + 800938c: 68f8 ldr r0, [r7, #12] + 800938e: 4798 blx r3 + 8009390: 68f8 ldr r0, [r7, #12] + 8009392: f001 f977 bl 800a684 + 8009396: e032 b.n 80093fe + 8009398: 7afb ldrb r3, [r7, #11] + 800939a: f003 037f and.w r3, r3, #127 @ 0x7f + 800939e: b2db uxtb r3, r3 + 80093a0: 4619 mov r1, r3 + 80093a2: 68f8 ldr r0, [r7, #12] + 80093a4: f000 fa41 bl 800982a + 80093a8: 4603 mov r3, r0 + 80093aa: 75bb strb r3, [r7, #22] + 80093ac: 7dbb ldrb r3, [r7, #22] + 80093ae: 2bff cmp r3, #255 @ 0xff + 80093b0: d025 beq.n 80093fe + 80093b2: 7dbb ldrb r3, [r7, #22] + 80093b4: 2b00 cmp r3, #0 + 80093b6: d122 bne.n 80093fe + 80093b8: 68fb ldr r3, [r7, #12] + 80093ba: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 80093be: b2db uxtb r3, r3 + 80093c0: 2b03 cmp r3, #3 + 80093c2: d117 bne.n 80093f4 + 80093c4: 7dba ldrb r2, [r7, #22] + 80093c6: 68fb ldr r3, [r7, #12] + 80093c8: 32ae adds r2, #174 @ 0xae + 80093ca: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80093ce: 699b ldr r3, [r3, #24] + 80093d0: 2b00 cmp r3, #0 + 80093d2: d00f beq.n 80093f4 + 80093d4: 7dba ldrb r2, [r7, #22] + 80093d6: 68fb ldr r3, [r7, #12] + 80093d8: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 80093dc: 7dba ldrb r2, [r7, #22] + 80093de: 68fb ldr r3, [r7, #12] + 80093e0: 32ae adds r2, #174 @ 0xae + 80093e2: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80093e6: 699b ldr r3, [r3, #24] + 80093e8: 7afa ldrb r2, [r7, #11] + 80093ea: 4611 mov r1, r2 + 80093ec: 68f8 ldr r0, [r7, #12] + 80093ee: 4798 blx r3 + 80093f0: 4603 mov r3, r0 + 80093f2: 75fb strb r3, [r7, #23] + 80093f4: 7dfb ldrb r3, [r7, #23] 80093f6: 2b00 cmp r3, #0 - 80093f8: d003 beq.n 8009402 - { - pdev->pDesc = pdesc; - 80093fa: 68fb ldr r3, [r7, #12] - 80093fc: 68ba ldr r2, [r7, #8] - 80093fe: f8c3 22b4 str.w r2, [r3, #692] @ 0x2b4 - } + 80093f8: d001 beq.n 80093fe + 80093fa: 7dfb ldrb r3, [r7, #23] + 80093fc: e000 b.n 8009400 + 80093fe: 2300 movs r3, #0 + 8009400: 4618 mov r0, r3 + 8009402: 3718 adds r7, #24 + 8009404: 46bd mov sp, r7 + 8009406: bd80 pop {r7, pc} - /* Set Device initial State */ - pdev->dev_state = USBD_STATE_DEFAULT; - 8009402: 68fb ldr r3, [r7, #12] - 8009404: 2201 movs r2, #1 - 8009406: f883 229c strb.w r2, [r3, #668] @ 0x29c - pdev->id = id; - 800940a: 68fb ldr r3, [r7, #12] - 800940c: 79fa ldrb r2, [r7, #7] - 800940e: 701a strb r2, [r3, #0] +08009408 : + 8009408: b580 push {r7, lr} + 800940a: b086 sub sp, #24 + 800940c: af00 add r7, sp, #0 + 800940e: 60f8 str r0, [r7, #12] + 8009410: 460b mov r3, r1 + 8009412: 607a str r2, [r7, #4] + 8009414: 72fb strb r3, [r7, #11] + 8009416: 7afb ldrb r3, [r7, #11] + 8009418: 2b00 cmp r3, #0 + 800941a: d178 bne.n 800950e + 800941c: 68fb ldr r3, [r7, #12] + 800941e: 3314 adds r3, #20 + 8009420: 613b str r3, [r7, #16] + 8009422: 68fb ldr r3, [r7, #12] + 8009424: f8d3 3294 ldr.w r3, [r3, #660] @ 0x294 + 8009428: 2b02 cmp r3, #2 + 800942a: d163 bne.n 80094f4 + 800942c: 693b ldr r3, [r7, #16] + 800942e: 685b ldr r3, [r3, #4] + 8009430: 693a ldr r2, [r7, #16] + 8009432: 8992 ldrh r2, [r2, #12] + 8009434: 4293 cmp r3, r2 + 8009436: d91c bls.n 8009472 + 8009438: 693b ldr r3, [r7, #16] + 800943a: 685b ldr r3, [r3, #4] + 800943c: 693a ldr r2, [r7, #16] + 800943e: 8992 ldrh r2, [r2, #12] + 8009440: 1a9a subs r2, r3, r2 + 8009442: 693b ldr r3, [r7, #16] + 8009444: 605a str r2, [r3, #4] + 8009446: 693b ldr r3, [r7, #16] + 8009448: 691b ldr r3, [r3, #16] + 800944a: 693a ldr r2, [r7, #16] + 800944c: 8992 ldrh r2, [r2, #12] + 800944e: 441a add r2, r3 + 8009450: 693b ldr r3, [r7, #16] + 8009452: 611a str r2, [r3, #16] + 8009454: 693b ldr r3, [r7, #16] + 8009456: 6919 ldr r1, [r3, #16] + 8009458: 693b ldr r3, [r7, #16] + 800945a: 685b ldr r3, [r3, #4] + 800945c: 461a mov r2, r3 + 800945e: 68f8 ldr r0, [r7, #12] + 8009460: f001 f8ee bl 800a640 + 8009464: 2300 movs r3, #0 + 8009466: 2200 movs r2, #0 + 8009468: 2100 movs r1, #0 + 800946a: 68f8 ldr r0, [r7, #12] + 800946c: f001 fd2a bl 800aec4 + 8009470: e040 b.n 80094f4 + 8009472: 693b ldr r3, [r7, #16] + 8009474: 899b ldrh r3, [r3, #12] + 8009476: 461a mov r2, r3 + 8009478: 693b ldr r3, [r7, #16] + 800947a: 685b ldr r3, [r3, #4] + 800947c: 429a cmp r2, r3 + 800947e: d11c bne.n 80094ba + 8009480: 693b ldr r3, [r7, #16] + 8009482: 681b ldr r3, [r3, #0] + 8009484: 693a ldr r2, [r7, #16] + 8009486: 8992 ldrh r2, [r2, #12] + 8009488: 4293 cmp r3, r2 + 800948a: d316 bcc.n 80094ba + 800948c: 693b ldr r3, [r7, #16] + 800948e: 681a ldr r2, [r3, #0] + 8009490: 68fb ldr r3, [r7, #12] + 8009492: f8d3 3298 ldr.w r3, [r3, #664] @ 0x298 + 8009496: 429a cmp r2, r3 + 8009498: d20f bcs.n 80094ba + 800949a: 2200 movs r2, #0 + 800949c: 2100 movs r1, #0 + 800949e: 68f8 ldr r0, [r7, #12] + 80094a0: f001 f8ce bl 800a640 + 80094a4: 68fb ldr r3, [r7, #12] + 80094a6: 2200 movs r2, #0 + 80094a8: f8c3 2298 str.w r2, [r3, #664] @ 0x298 + 80094ac: 2300 movs r3, #0 + 80094ae: 2200 movs r2, #0 + 80094b0: 2100 movs r1, #0 + 80094b2: 68f8 ldr r0, [r7, #12] + 80094b4: f001 fd06 bl 800aec4 + 80094b8: e01c b.n 80094f4 + 80094ba: 68fb ldr r3, [r7, #12] + 80094bc: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 80094c0: b2db uxtb r3, r3 + 80094c2: 2b03 cmp r3, #3 + 80094c4: d10f bne.n 80094e6 + 80094c6: 68fb ldr r3, [r7, #12] + 80094c8: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 80094cc: 68db ldr r3, [r3, #12] + 80094ce: 2b00 cmp r3, #0 + 80094d0: d009 beq.n 80094e6 + 80094d2: 68fb ldr r3, [r7, #12] + 80094d4: 2200 movs r2, #0 + 80094d6: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 80094da: 68fb ldr r3, [r7, #12] + 80094dc: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 80094e0: 68db ldr r3, [r3, #12] + 80094e2: 68f8 ldr r0, [r7, #12] + 80094e4: 4798 blx r3 + 80094e6: 2180 movs r1, #128 @ 0x80 + 80094e8: 68f8 ldr r0, [r7, #12] + 80094ea: f001 fc41 bl 800ad70 + 80094ee: 68f8 ldr r0, [r7, #12] + 80094f0: f001 f8db bl 800a6aa + 80094f4: 68fb ldr r3, [r7, #12] + 80094f6: f893 32a0 ldrb.w r3, [r3, #672] @ 0x2a0 + 80094fa: 2b00 cmp r3, #0 + 80094fc: d03a beq.n 8009574 + 80094fe: 68f8 ldr r0, [r7, #12] + 8009500: f7ff fe30 bl 8009164 + 8009504: 68fb ldr r3, [r7, #12] + 8009506: 2200 movs r2, #0 + 8009508: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 + 800950c: e032 b.n 8009574 + 800950e: 7afb ldrb r3, [r7, #11] + 8009510: f063 037f orn r3, r3, #127 @ 0x7f + 8009514: b2db uxtb r3, r3 + 8009516: 4619 mov r1, r3 + 8009518: 68f8 ldr r0, [r7, #12] + 800951a: f000 f986 bl 800982a + 800951e: 4603 mov r3, r0 + 8009520: 75fb strb r3, [r7, #23] + 8009522: 7dfb ldrb r3, [r7, #23] + 8009524: 2bff cmp r3, #255 @ 0xff + 8009526: d025 beq.n 8009574 + 8009528: 7dfb ldrb r3, [r7, #23] + 800952a: 2b00 cmp r3, #0 + 800952c: d122 bne.n 8009574 + 800952e: 68fb ldr r3, [r7, #12] + 8009530: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009534: b2db uxtb r3, r3 + 8009536: 2b03 cmp r3, #3 + 8009538: d11c bne.n 8009574 + 800953a: 7dfa ldrb r2, [r7, #23] + 800953c: 68fb ldr r3, [r7, #12] + 800953e: 32ae adds r2, #174 @ 0xae + 8009540: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009544: 695b ldr r3, [r3, #20] + 8009546: 2b00 cmp r3, #0 + 8009548: d014 beq.n 8009574 + 800954a: 7dfa ldrb r2, [r7, #23] + 800954c: 68fb ldr r3, [r7, #12] + 800954e: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8009552: 7dfa ldrb r2, [r7, #23] + 8009554: 68fb ldr r3, [r7, #12] + 8009556: 32ae adds r2, #174 @ 0xae + 8009558: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800955c: 695b ldr r3, [r3, #20] + 800955e: 7afa ldrb r2, [r7, #11] + 8009560: 4611 mov r1, r2 + 8009562: 68f8 ldr r0, [r7, #12] + 8009564: 4798 blx r3 + 8009566: 4603 mov r3, r0 + 8009568: 75bb strb r3, [r7, #22] + 800956a: 7dbb ldrb r3, [r7, #22] + 800956c: 2b00 cmp r3, #0 + 800956e: d001 beq.n 8009574 + 8009570: 7dbb ldrb r3, [r7, #22] + 8009572: e000 b.n 8009576 + 8009574: 2300 movs r3, #0 + 8009576: 4618 mov r0, r3 + 8009578: 3718 adds r7, #24 + 800957a: 46bd mov sp, r7 + 800957c: bd80 pop {r7, pc} - /* Initialize low level driver */ - ret = USBD_LL_Init(pdev); - 8009410: 68f8 ldr r0, [r7, #12] - 8009412: f001 fda3 bl 800af5c - 8009416: 4603 mov r3, r0 - 8009418: 75fb strb r3, [r7, #23] - - return ret; - 800941a: 7dfb ldrb r3, [r7, #23] -} - 800941c: 4618 mov r0, r3 - 800941e: 3718 adds r7, #24 - 8009420: 46bd mov sp, r7 - 8009422: bd80 pop {r7, pc} - -08009424 : - * @param pdev: Device Handle - * @param pclass: Class handle - * @retval USBD Status - */ -USBD_StatusTypeDef USBD_RegisterClass(USBD_HandleTypeDef *pdev, USBD_ClassTypeDef *pclass) -{ - 8009424: b580 push {r7, lr} - 8009426: b084 sub sp, #16 - 8009428: af00 add r7, sp, #0 - 800942a: 6078 str r0, [r7, #4] - 800942c: 6039 str r1, [r7, #0] - uint16_t len = 0U; - 800942e: 2300 movs r3, #0 - 8009430: 81fb strh r3, [r7, #14] - - if (pclass == NULL) - 8009432: 683b ldr r3, [r7, #0] - 8009434: 2b00 cmp r3, #0 - 8009436: d101 bne.n 800943c - { -#if (USBD_DEBUG_LEVEL > 1U) - USBD_ErrLog("Invalid Class handle"); -#endif /* (USBD_DEBUG_LEVEL > 1U) */ - return USBD_FAIL; - 8009438: 2303 movs r3, #3 - 800943a: e025 b.n 8009488 - } - - /* link the class to the USB Device handle */ - pdev->pClass[0] = pclass; - 800943c: 687b ldr r3, [r7, #4] - 800943e: 683a ldr r2, [r7, #0] - 8009440: 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) - 8009444: 687b ldr r3, [r7, #4] - 8009446: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 800944a: 687b ldr r3, [r7, #4] - 800944c: 32ae adds r2, #174 @ 0xae - 800944e: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009452: 6adb ldr r3, [r3, #44] @ 0x2c - 8009454: 2b00 cmp r3, #0 - 8009456: d00f beq.n 8009478 - { - pdev->pConfDesc = (void *)pdev->pClass[pdev->classId]->GetFSConfigDescriptor(&len); - 8009458: 687b ldr r3, [r7, #4] - 800945a: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 800945e: 687b ldr r3, [r7, #4] - 8009460: 32ae adds r2, #174 @ 0xae - 8009462: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009466: 6adb ldr r3, [r3, #44] @ 0x2c - 8009468: f107 020e add.w r2, r7, #14 - 800946c: 4610 mov r0, r2 - 800946e: 4798 blx r3 - 8009470: 4602 mov r2, r0 - 8009472: 687b ldr r3, [r7, #4] - 8009474: f8c3 22d0 str.w r2, [r3, #720] @ 0x2d0 - } -#endif /* USE_USB_FS */ - - /* Increment the NumClasses */ - pdev->NumClasses++; - 8009478: 687b ldr r3, [r7, #4] - 800947a: f8d3 32d8 ldr.w r3, [r3, #728] @ 0x2d8 - 800947e: 1c5a adds r2, r3, #1 - 8009480: 687b ldr r3, [r7, #4] - 8009482: f8c3 22d8 str.w r2, [r3, #728] @ 0x2d8 - - return USBD_OK; - 8009486: 2300 movs r3, #0 -} - 8009488: 4618 mov r0, r3 - 800948a: 3710 adds r7, #16 - 800948c: 46bd mov sp, r7 - 800948e: bd80 pop {r7, pc} - -08009490 : - * Start the USB Device Core. - * @param pdev: Device Handle - * @retval USBD Status - */ -USBD_StatusTypeDef USBD_Start(USBD_HandleTypeDef *pdev) -{ - 8009490: b580 push {r7, lr} - 8009492: b082 sub sp, #8 - 8009494: af00 add r7, sp, #0 - 8009496: 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); - 8009498: 6878 ldr r0, [r7, #4] - 800949a: f001 fdab bl 800aff4 - 800949e: 4603 mov r3, r0 -} - 80094a0: 4618 mov r0, r3 - 80094a2: 3708 adds r7, #8 - 80094a4: 46bd mov sp, r7 - 80094a6: bd80 pop {r7, pc} - -080094a8 : - * Launch test mode process - * @param pdev: device instance - * @retval status - */ -USBD_StatusTypeDef USBD_RunTestMode(USBD_HandleTypeDef *pdev) -{ - 80094a8: b480 push {r7} - 80094aa: b083 sub sp, #12 - 80094ac: af00 add r7, sp, #0 - 80094ae: 6078 str r0, [r7, #4] - return ret; -#else - /* Prevent unused argument compilation warning */ - UNUSED(pdev); - - return USBD_OK; - 80094b0: 2300 movs r3, #0 -#endif /* USBD_HS_TESTMODE_ENABLE */ -} - 80094b2: 4618 mov r0, r3 - 80094b4: 370c adds r7, #12 - 80094b6: 46bd mov sp, r7 - 80094b8: f85d 7b04 ldr.w r7, [sp], #4 - 80094bc: 4770 bx lr - -080094be : - * @param cfgidx: configuration index - * @retval status - */ - -USBD_StatusTypeDef USBD_SetClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx) -{ - 80094be: b580 push {r7, lr} - 80094c0: b084 sub sp, #16 - 80094c2: af00 add r7, sp, #0 - 80094c4: 6078 str r0, [r7, #4] - 80094c6: 460b mov r3, r1 - 80094c8: 70fb strb r3, [r7, #3] - USBD_StatusTypeDef ret = USBD_OK; - 80094ca: 2300 movs r3, #0 - 80094cc: 73fb strb r3, [r7, #15] - } - } - } - } -#else - if (pdev->pClass[0] != NULL) - 80094ce: 687b ldr r3, [r7, #4] - 80094d0: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 80094d4: 2b00 cmp r3, #0 - 80094d6: d009 beq.n 80094ec - { - /* Set configuration and Start the Class */ - ret = (USBD_StatusTypeDef)pdev->pClass[0]->Init(pdev, cfgidx); - 80094d8: 687b ldr r3, [r7, #4] - 80094da: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 80094de: 681b ldr r3, [r3, #0] - 80094e0: 78fa ldrb r2, [r7, #3] - 80094e2: 4611 mov r1, r2 - 80094e4: 6878 ldr r0, [r7, #4] - 80094e6: 4798 blx r3 - 80094e8: 4603 mov r3, r0 - 80094ea: 73fb strb r3, [r7, #15] - } -#endif /* USE_USBD_COMPOSITE */ - - return ret; - 80094ec: 7bfb ldrb r3, [r7, #15] -} - 80094ee: 4618 mov r0, r3 - 80094f0: 3710 adds r7, #16 - 80094f2: 46bd mov sp, r7 - 80094f4: bd80 pop {r7, pc} - -080094f6 : - * @param pdev: device instance - * @param cfgidx: configuration index - * @retval status - */ -USBD_StatusTypeDef USBD_ClrClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx) -{ - 80094f6: b580 push {r7, lr} - 80094f8: b084 sub sp, #16 - 80094fa: af00 add r7, sp, #0 - 80094fc: 6078 str r0, [r7, #4] - 80094fe: 460b mov r3, r1 - 8009500: 70fb strb r3, [r7, #3] - USBD_StatusTypeDef ret = USBD_OK; - 8009502: 2300 movs r3, #0 - 8009504: 73fb strb r3, [r7, #15] - } - } - } -#else - /* Clear configuration and De-initialize the Class process */ - if (pdev->pClass[0]->DeInit(pdev, cfgidx) != 0U) - 8009506: 687b ldr r3, [r7, #4] - 8009508: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 800950c: 685b ldr r3, [r3, #4] - 800950e: 78fa ldrb r2, [r7, #3] - 8009510: 4611 mov r1, r2 - 8009512: 6878 ldr r0, [r7, #4] - 8009514: 4798 blx r3 - 8009516: 4603 mov r3, r0 - 8009518: 2b00 cmp r3, #0 - 800951a: d001 beq.n 8009520 - { - ret = USBD_FAIL; - 800951c: 2303 movs r3, #3 - 800951e: 73fb strb r3, [r7, #15] - } -#endif /* USE_USBD_COMPOSITE */ - - return ret; - 8009520: 7bfb ldrb r3, [r7, #15] -} - 8009522: 4618 mov r0, r3 - 8009524: 3710 adds r7, #16 - 8009526: 46bd mov sp, r7 - 8009528: bd80 pop {r7, pc} - -0800952a : - * @param pdev: device instance - * @param psetup: setup packet buffer pointer - * @retval status - */ -USBD_StatusTypeDef USBD_LL_SetupStage(USBD_HandleTypeDef *pdev, uint8_t *psetup) -{ - 800952a: b580 push {r7, lr} - 800952c: b084 sub sp, #16 - 800952e: af00 add r7, sp, #0 - 8009530: 6078 str r0, [r7, #4] - 8009532: 6039 str r1, [r7, #0] - USBD_StatusTypeDef ret; - - USBD_ParseSetupRequest(&pdev->request, psetup); - 8009534: 687b ldr r3, [r7, #4] - 8009536: f203 23aa addw r3, r3, #682 @ 0x2aa - 800953a: 6839 ldr r1, [r7, #0] - 800953c: 4618 mov r0, r3 - 800953e: f001 f94c bl 800a7da - - pdev->ep0_state = USBD_EP0_SETUP; - 8009542: 687b ldr r3, [r7, #4] - 8009544: 2201 movs r2, #1 - 8009546: f8c3 2294 str.w r2, [r3, #660] @ 0x294 - - pdev->ep0_data_len = pdev->request.wLength; - 800954a: 687b ldr r3, [r7, #4] - 800954c: f8b3 32b0 ldrh.w r3, [r3, #688] @ 0x2b0 - 8009550: 461a mov r2, r3 - 8009552: 687b ldr r3, [r7, #4] - 8009554: f8c3 2298 str.w r2, [r3, #664] @ 0x298 - - switch (pdev->request.bmRequest & 0x1FU) - 8009558: 687b ldr r3, [r7, #4] - 800955a: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa - 800955e: f003 031f and.w r3, r3, #31 - 8009562: 2b02 cmp r3, #2 - 8009564: d01a beq.n 800959c - 8009566: 2b02 cmp r3, #2 - 8009568: d822 bhi.n 80095b0 - 800956a: 2b00 cmp r3, #0 - 800956c: d002 beq.n 8009574 - 800956e: 2b01 cmp r3, #1 - 8009570: d00a beq.n 8009588 - 8009572: e01d b.n 80095b0 - { - case USB_REQ_RECIPIENT_DEVICE: - ret = USBD_StdDevReq(pdev, &pdev->request); - 8009574: 687b ldr r3, [r7, #4] - 8009576: f203 23aa addw r3, r3, #682 @ 0x2aa - 800957a: 4619 mov r1, r3 - 800957c: 6878 ldr r0, [r7, #4] - 800957e: f000 fb77 bl 8009c70 - 8009582: 4603 mov r3, r0 - 8009584: 73fb strb r3, [r7, #15] - break; - 8009586: e020 b.n 80095ca - - case USB_REQ_RECIPIENT_INTERFACE: - ret = USBD_StdItfReq(pdev, &pdev->request); - 8009588: 687b ldr r3, [r7, #4] - 800958a: f203 23aa addw r3, r3, #682 @ 0x2aa - 800958e: 4619 mov r1, r3 - 8009590: 6878 ldr r0, [r7, #4] - 8009592: f000 fbdf bl 8009d54 - 8009596: 4603 mov r3, r0 - 8009598: 73fb strb r3, [r7, #15] - break; - 800959a: e016 b.n 80095ca - - case USB_REQ_RECIPIENT_ENDPOINT: - ret = USBD_StdEPReq(pdev, &pdev->request); - 800959c: 687b ldr r3, [r7, #4] - 800959e: f203 23aa addw r3, r3, #682 @ 0x2aa - 80095a2: 4619 mov r1, r3 - 80095a4: 6878 ldr r0, [r7, #4] - 80095a6: f000 fc41 bl 8009e2c - 80095aa: 4603 mov r3, r0 - 80095ac: 73fb strb r3, [r7, #15] - break; - 80095ae: e00c b.n 80095ca - - default: - ret = USBD_LL_StallEP(pdev, (pdev->request.bmRequest & 0x80U)); +0800957e : + 800957e: b580 push {r7, lr} + 8009580: b084 sub sp, #16 + 8009582: af00 add r7, sp, #0 + 8009584: 6078 str r0, [r7, #4] + 8009586: 2300 movs r3, #0 + 8009588: 73fb strb r3, [r7, #15] + 800958a: 687b ldr r3, [r7, #4] + 800958c: 2201 movs r2, #1 + 800958e: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8009592: 687b ldr r3, [r7, #4] + 8009594: 2200 movs r2, #0 + 8009596: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 800959a: 687b ldr r3, [r7, #4] + 800959c: 2200 movs r2, #0 + 800959e: 605a str r2, [r3, #4] + 80095a0: 687b ldr r3, [r7, #4] + 80095a2: 2200 movs r2, #0 + 80095a4: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 + 80095a8: 687b ldr r3, [r7, #4] + 80095aa: 2200 movs r2, #0 + 80095ac: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 80095b0: 687b ldr r3, [r7, #4] - 80095b2: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa - 80095b6: f023 037f bic.w r3, r3, #127 @ 0x7f - 80095ba: b2db uxtb r3, r3 - 80095bc: 4619 mov r1, r3 - 80095be: 6878 ldr r0, [r7, #4] - 80095c0: f001 fd78 bl 800b0b4 - 80095c4: 4603 mov r3, r0 - 80095c6: 73fb strb r3, [r7, #15] - break; - 80095c8: bf00 nop - } + 80095b2: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 80095b6: 2b00 cmp r3, #0 + 80095b8: d014 beq.n 80095e4 + 80095ba: 687b ldr r3, [r7, #4] + 80095bc: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 80095c0: 685b ldr r3, [r3, #4] + 80095c2: 2b00 cmp r3, #0 + 80095c4: d00e beq.n 80095e4 + 80095c6: 687b ldr r3, [r7, #4] + 80095c8: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 80095cc: 685b ldr r3, [r3, #4] + 80095ce: 687a ldr r2, [r7, #4] + 80095d0: 6852 ldr r2, [r2, #4] + 80095d2: b2d2 uxtb r2, r2 + 80095d4: 4611 mov r1, r2 + 80095d6: 6878 ldr r0, [r7, #4] + 80095d8: 4798 blx r3 + 80095da: 4603 mov r3, r0 + 80095dc: 2b00 cmp r3, #0 + 80095de: d001 beq.n 80095e4 + 80095e0: 2303 movs r3, #3 + 80095e2: 73fb strb r3, [r7, #15] + 80095e4: 2340 movs r3, #64 @ 0x40 + 80095e6: 2200 movs r2, #0 + 80095e8: 2100 movs r1, #0 + 80095ea: 6878 ldr r0, [r7, #4] + 80095ec: f001 fb7b bl 800ace6 + 80095f0: 687b ldr r3, [r7, #4] + 80095f2: 2201 movs r2, #1 + 80095f4: f883 2163 strb.w r2, [r3, #355] @ 0x163 + 80095f8: 687b ldr r3, [r7, #4] + 80095fa: 2240 movs r2, #64 @ 0x40 + 80095fc: f8a3 2160 strh.w r2, [r3, #352] @ 0x160 + 8009600: 2340 movs r3, #64 @ 0x40 + 8009602: 2200 movs r2, #0 + 8009604: 2180 movs r1, #128 @ 0x80 + 8009606: 6878 ldr r0, [r7, #4] + 8009608: f001 fb6d bl 800ace6 + 800960c: 687b ldr r3, [r7, #4] + 800960e: 2201 movs r2, #1 + 8009610: f883 2023 strb.w r2, [r3, #35] @ 0x23 + 8009614: 687b ldr r3, [r7, #4] + 8009616: 2240 movs r2, #64 @ 0x40 + 8009618: 841a strh r2, [r3, #32] + 800961a: 7bfb ldrb r3, [r7, #15] + 800961c: 4618 mov r0, r3 + 800961e: 3710 adds r7, #16 + 8009620: 46bd mov sp, r7 + 8009622: bd80 pop {r7, pc} - return ret; - 80095ca: 7bfb ldrb r3, [r7, #15] -} - 80095cc: 4618 mov r0, r3 - 80095ce: 3710 adds r7, #16 - 80095d0: 46bd mov sp, r7 - 80095d2: bd80 pop {r7, pc} +08009624 : + 8009624: b480 push {r7} + 8009626: b083 sub sp, #12 + 8009628: af00 add r7, sp, #0 + 800962a: 6078 str r0, [r7, #4] + 800962c: 460b mov r3, r1 + 800962e: 70fb strb r3, [r7, #3] + 8009630: 687b ldr r3, [r7, #4] + 8009632: 78fa ldrb r2, [r7, #3] + 8009634: 741a strb r2, [r3, #16] + 8009636: 2300 movs r3, #0 + 8009638: 4618 mov r0, r3 + 800963a: 370c adds r7, #12 + 800963c: 46bd mov sp, r7 + 800963e: f85d 7b04 ldr.w r7, [sp], #4 + 8009642: 4770 bx lr -080095d4 : - * @param pdata: data pointer - * @retval status - */ -USBD_StatusTypeDef USBD_LL_DataOutStage(USBD_HandleTypeDef *pdev, - uint8_t epnum, uint8_t *pdata) -{ - 80095d4: b580 push {r7, lr} - 80095d6: b086 sub sp, #24 - 80095d8: af00 add r7, sp, #0 - 80095da: 60f8 str r0, [r7, #12] - 80095dc: 460b mov r3, r1 - 80095de: 607a str r2, [r7, #4] - 80095e0: 72fb strb r3, [r7, #11] - USBD_EndpointTypeDef *pep; - USBD_StatusTypeDef ret = USBD_OK; - 80095e2: 2300 movs r3, #0 - 80095e4: 75fb strb r3, [r7, #23] - uint8_t idx; +08009644 : + 8009644: b480 push {r7} + 8009646: b083 sub sp, #12 + 8009648: af00 add r7, sp, #0 + 800964a: 6078 str r0, [r7, #4] + 800964c: 687b ldr r3, [r7, #4] + 800964e: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009652: b2db uxtb r3, r3 + 8009654: 2b04 cmp r3, #4 + 8009656: d006 beq.n 8009666 + 8009658: 687b ldr r3, [r7, #4] + 800965a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800965e: b2da uxtb r2, r3 + 8009660: 687b ldr r3, [r7, #4] + 8009662: f883 229d strb.w r2, [r3, #669] @ 0x29d + 8009666: 687b ldr r3, [r7, #4] + 8009668: 2204 movs r2, #4 + 800966a: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800966e: 2300 movs r3, #0 + 8009670: 4618 mov r0, r3 + 8009672: 370c adds r7, #12 + 8009674: 46bd mov sp, r7 + 8009676: f85d 7b04 ldr.w r7, [sp], #4 + 800967a: 4770 bx lr - UNUSED(pdata); +0800967c : + 800967c: b480 push {r7} + 800967e: b083 sub sp, #12 + 8009680: af00 add r7, sp, #0 + 8009682: 6078 str r0, [r7, #4] + 8009684: 687b ldr r3, [r7, #4] + 8009686: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800968a: b2db uxtb r3, r3 + 800968c: 2b04 cmp r3, #4 + 800968e: d106 bne.n 800969e + 8009690: 687b ldr r3, [r7, #4] + 8009692: f893 329d ldrb.w r3, [r3, #669] @ 0x29d + 8009696: b2da uxtb r2, r3 + 8009698: 687b ldr r3, [r7, #4] + 800969a: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800969e: 2300 movs r3, #0 + 80096a0: 4618 mov r0, r3 + 80096a2: 370c adds r7, #12 + 80096a4: 46bd mov sp, r7 + 80096a6: f85d 7b04 ldr.w r7, [sp], #4 + 80096aa: 4770 bx lr - if (epnum == 0U) - 80095e6: 7afb ldrb r3, [r7, #11] - 80095e8: 2b00 cmp r3, #0 - 80095ea: d177 bne.n 80096dc - { - pep = &pdev->ep_out[0]; - 80095ec: 68fb ldr r3, [r7, #12] - 80095ee: f503 73aa add.w r3, r3, #340 @ 0x154 - 80095f2: 613b str r3, [r7, #16] +080096ac : + 80096ac: b580 push {r7, lr} + 80096ae: b082 sub sp, #8 + 80096b0: af00 add r7, sp, #0 + 80096b2: 6078 str r0, [r7, #4] + 80096b4: 687b ldr r3, [r7, #4] + 80096b6: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 80096ba: b2db uxtb r3, r3 + 80096bc: 2b03 cmp r3, #3 + 80096be: d110 bne.n 80096e2 + 80096c0: 687b ldr r3, [r7, #4] + 80096c2: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 80096c6: 2b00 cmp r3, #0 + 80096c8: d00b beq.n 80096e2 + 80096ca: 687b ldr r3, [r7, #4] + 80096cc: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 80096d0: 69db ldr r3, [r3, #28] + 80096d2: 2b00 cmp r3, #0 + 80096d4: d005 beq.n 80096e2 + 80096d6: 687b ldr r3, [r7, #4] + 80096d8: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 80096dc: 69db ldr r3, [r3, #28] + 80096de: 6878 ldr r0, [r7, #4] + 80096e0: 4798 blx r3 + 80096e2: 2300 movs r3, #0 + 80096e4: 4618 mov r0, r3 + 80096e6: 3708 adds r7, #8 + 80096e8: 46bd mov sp, r7 + 80096ea: bd80 pop {r7, pc} - if (pdev->ep0_state == USBD_EP0_DATA_OUT) - 80095f4: 68fb ldr r3, [r7, #12] - 80095f6: f8d3 3294 ldr.w r3, [r3, #660] @ 0x294 - 80095fa: 2b03 cmp r3, #3 - 80095fc: f040 80a1 bne.w 8009742 - { - if (pep->rem_length > pep->maxpacket) - 8009600: 693b ldr r3, [r7, #16] - 8009602: 685b ldr r3, [r3, #4] - 8009604: 693a ldr r2, [r7, #16] - 8009606: 8992 ldrh r2, [r2, #12] - 8009608: 4293 cmp r3, r2 - 800960a: d91c bls.n 8009646 - { - pep->rem_length -= pep->maxpacket; - 800960c: 693b ldr r3, [r7, #16] - 800960e: 685b ldr r3, [r3, #4] - 8009610: 693a ldr r2, [r7, #16] - 8009612: 8992 ldrh r2, [r2, #12] - 8009614: 1a9a subs r2, r3, r2 - 8009616: 693b ldr r3, [r7, #16] - 8009618: 605a str r2, [r3, #4] - pep->pbuffer += pep->maxpacket; - 800961a: 693b ldr r3, [r7, #16] - 800961c: 691b ldr r3, [r3, #16] - 800961e: 693a ldr r2, [r7, #16] - 8009620: 8992 ldrh r2, [r2, #12] - 8009622: 441a add r2, r3 - 8009624: 693b ldr r3, [r7, #16] - 8009626: 611a str r2, [r3, #16] +080096ec : + 80096ec: b580 push {r7, lr} + 80096ee: b082 sub sp, #8 + 80096f0: af00 add r7, sp, #0 + 80096f2: 6078 str r0, [r7, #4] + 80096f4: 460b mov r3, r1 + 80096f6: 70fb strb r3, [r7, #3] + 80096f8: 687b ldr r3, [r7, #4] + 80096fa: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 80096fe: 687b ldr r3, [r7, #4] + 8009700: 32ae adds r2, #174 @ 0xae + 8009702: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009706: 2b00 cmp r3, #0 + 8009708: d101 bne.n 800970e + 800970a: 2303 movs r3, #3 + 800970c: e01c b.n 8009748 + 800970e: 687b ldr r3, [r7, #4] + 8009710: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009714: b2db uxtb r3, r3 + 8009716: 2b03 cmp r3, #3 + 8009718: d115 bne.n 8009746 + 800971a: 687b ldr r3, [r7, #4] + 800971c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009720: 687b ldr r3, [r7, #4] + 8009722: 32ae adds r2, #174 @ 0xae + 8009724: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009728: 6a1b ldr r3, [r3, #32] + 800972a: 2b00 cmp r3, #0 + 800972c: d00b beq.n 8009746 + 800972e: 687b ldr r3, [r7, #4] + 8009730: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009734: 687b ldr r3, [r7, #4] + 8009736: 32ae adds r2, #174 @ 0xae + 8009738: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800973c: 6a1b ldr r3, [r3, #32] + 800973e: 78fa ldrb r2, [r7, #3] + 8009740: 4611 mov r1, r2 + 8009742: 6878 ldr r0, [r7, #4] + 8009744: 4798 blx r3 + 8009746: 2300 movs r3, #0 + 8009748: 4618 mov r0, r3 + 800974a: 3708 adds r7, #8 + 800974c: 46bd mov sp, r7 + 800974e: bd80 pop {r7, pc} - (void)USBD_CtlContinueRx(pdev, pep->pbuffer, MAX(pep->rem_length, pep->maxpacket)); - 8009628: 693b ldr r3, [r7, #16] - 800962a: 6919 ldr r1, [r3, #16] - 800962c: 693b ldr r3, [r7, #16] - 800962e: 899b ldrh r3, [r3, #12] - 8009630: 461a mov r2, r3 - 8009632: 693b ldr r3, [r7, #16] - 8009634: 685b ldr r3, [r3, #4] - 8009636: 4293 cmp r3, r2 - 8009638: bf38 it cc - 800963a: 4613 movcc r3, r2 - 800963c: 461a mov r2, r3 - 800963e: 68f8 ldr r0, [r7, #12] - 8009640: f001 f9b1 bl 800a9a6 - 8009644: e07d b.n 8009742 - } - else - { - /* Find the class ID relative to the current request */ - switch (pdev->request.bmRequest & 0x1FU) - 8009646: 68fb ldr r3, [r7, #12] - 8009648: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa - 800964c: f003 031f and.w r3, r3, #31 - 8009650: 2b02 cmp r3, #2 - 8009652: d014 beq.n 800967e - 8009654: 2b02 cmp r3, #2 - 8009656: d81d bhi.n 8009694 - 8009658: 2b00 cmp r3, #0 - 800965a: d002 beq.n 8009662 - 800965c: 2b01 cmp r3, #1 - 800965e: d003 beq.n 8009668 - 8009660: e018 b.n 8009694 - { - case USB_REQ_RECIPIENT_DEVICE: - /* Device requests must be managed by the first instantiated class - (or duplicated by all classes for simplicity) */ - idx = 0U; - 8009662: 2300 movs r3, #0 - 8009664: 75bb strb r3, [r7, #22] - break; - 8009666: e018 b.n 800969a +08009750 : + 8009750: b580 push {r7, lr} + 8009752: b082 sub sp, #8 + 8009754: af00 add r7, sp, #0 + 8009756: 6078 str r0, [r7, #4] + 8009758: 460b mov r3, r1 + 800975a: 70fb strb r3, [r7, #3] + 800975c: 687b ldr r3, [r7, #4] + 800975e: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009762: 687b ldr r3, [r7, #4] + 8009764: 32ae adds r2, #174 @ 0xae + 8009766: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800976a: 2b00 cmp r3, #0 + 800976c: d101 bne.n 8009772 + 800976e: 2303 movs r3, #3 + 8009770: e01c b.n 80097ac + 8009772: 687b ldr r3, [r7, #4] + 8009774: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009778: b2db uxtb r3, r3 + 800977a: 2b03 cmp r3, #3 + 800977c: d115 bne.n 80097aa + 800977e: 687b ldr r3, [r7, #4] + 8009780: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009784: 687b ldr r3, [r7, #4] + 8009786: 32ae adds r2, #174 @ 0xae + 8009788: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800978c: 6a5b ldr r3, [r3, #36] @ 0x24 + 800978e: 2b00 cmp r3, #0 + 8009790: d00b beq.n 80097aa + 8009792: 687b ldr r3, [r7, #4] + 8009794: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009798: 687b ldr r3, [r7, #4] + 800979a: 32ae adds r2, #174 @ 0xae + 800979c: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80097a0: 6a5b ldr r3, [r3, #36] @ 0x24 + 80097a2: 78fa ldrb r2, [r7, #3] + 80097a4: 4611 mov r1, r2 + 80097a6: 6878 ldr r0, [r7, #4] + 80097a8: 4798 blx r3 + 80097aa: 2300 movs r3, #0 + 80097ac: 4618 mov r0, r3 + 80097ae: 3708 adds r7, #8 + 80097b0: 46bd mov sp, r7 + 80097b2: bd80 pop {r7, pc} - case USB_REQ_RECIPIENT_INTERFACE: - idx = USBD_CoreFindIF(pdev, LOBYTE(pdev->request.wIndex)); - 8009668: 68fb ldr r3, [r7, #12] - 800966a: f8b3 32ae ldrh.w r3, [r3, #686] @ 0x2ae - 800966e: b2db uxtb r3, r3 - 8009670: 4619 mov r1, r3 - 8009672: 68f8 ldr r0, [r7, #12] - 8009674: f000 fa6e bl 8009b54 - 8009678: 4603 mov r3, r0 - 800967a: 75bb strb r3, [r7, #22] - break; - 800967c: e00d b.n 800969a +080097b4 : + 80097b4: b480 push {r7} + 80097b6: b083 sub sp, #12 + 80097b8: af00 add r7, sp, #0 + 80097ba: 6078 str r0, [r7, #4] + 80097bc: 2300 movs r3, #0 + 80097be: 4618 mov r0, r3 + 80097c0: 370c adds r7, #12 + 80097c2: 46bd mov sp, r7 + 80097c4: f85d 7b04 ldr.w r7, [sp], #4 + 80097c8: 4770 bx lr - case USB_REQ_RECIPIENT_ENDPOINT: - idx = USBD_CoreFindEP(pdev, LOBYTE(pdev->request.wIndex)); - 800967e: 68fb ldr r3, [r7, #12] - 8009680: f8b3 32ae ldrh.w r3, [r3, #686] @ 0x2ae - 8009684: b2db uxtb r3, r3 - 8009686: 4619 mov r1, r3 - 8009688: 68f8 ldr r0, [r7, #12] - 800968a: f000 fa70 bl 8009b6e - 800968e: 4603 mov r3, r0 - 8009690: 75bb strb r3, [r7, #22] - break; - 8009692: e002 b.n 800969a +080097ca : + 80097ca: b580 push {r7, lr} + 80097cc: b084 sub sp, #16 + 80097ce: af00 add r7, sp, #0 + 80097d0: 6078 str r0, [r7, #4] + 80097d2: 2300 movs r3, #0 + 80097d4: 73fb strb r3, [r7, #15] + 80097d6: 687b ldr r3, [r7, #4] + 80097d8: 2201 movs r2, #1 + 80097da: f883 229c strb.w r2, [r3, #668] @ 0x29c + 80097de: 687b ldr r3, [r7, #4] + 80097e0: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 80097e4: 2b00 cmp r3, #0 + 80097e6: d00e beq.n 8009806 + 80097e8: 687b ldr r3, [r7, #4] + 80097ea: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 80097ee: 685b ldr r3, [r3, #4] + 80097f0: 687a ldr r2, [r7, #4] + 80097f2: 6852 ldr r2, [r2, #4] + 80097f4: b2d2 uxtb r2, r2 + 80097f6: 4611 mov r1, r2 + 80097f8: 6878 ldr r0, [r7, #4] + 80097fa: 4798 blx r3 + 80097fc: 4603 mov r3, r0 + 80097fe: 2b00 cmp r3, #0 + 8009800: d001 beq.n 8009806 + 8009802: 2303 movs r3, #3 + 8009804: 73fb strb r3, [r7, #15] + 8009806: 7bfb ldrb r3, [r7, #15] + 8009808: 4618 mov r0, r3 + 800980a: 3710 adds r7, #16 + 800980c: 46bd mov sp, r7 + 800980e: bd80 pop {r7, pc} - default: - /* Back to the first class in case of doubt */ - idx = 0U; - 8009694: 2300 movs r3, #0 - 8009696: 75bb strb r3, [r7, #22] - break; - 8009698: bf00 nop - } +08009810 : + 8009810: b480 push {r7} + 8009812: b083 sub sp, #12 + 8009814: af00 add r7, sp, #0 + 8009816: 6078 str r0, [r7, #4] + 8009818: 460b mov r3, r1 + 800981a: 70fb strb r3, [r7, #3] + 800981c: 2300 movs r3, #0 + 800981e: 4618 mov r0, r3 + 8009820: 370c adds r7, #12 + 8009822: 46bd mov sp, r7 + 8009824: f85d 7b04 ldr.w r7, [sp], #4 + 8009828: 4770 bx lr - if (idx < USBD_MAX_SUPPORTED_CLASS) - 800969a: 7dbb ldrb r3, [r7, #22] - 800969c: 2b00 cmp r3, #0 - 800969e: d119 bne.n 80096d4 - { - /* Setup the class ID and route the request to the relative class function */ - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 80096a0: 68fb ldr r3, [r7, #12] - 80096a2: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80096a6: b2db uxtb r3, r3 - 80096a8: 2b03 cmp r3, #3 - 80096aa: d113 bne.n 80096d4 - { - if (pdev->pClass[idx]->EP0_RxReady != NULL) - 80096ac: 7dba ldrb r2, [r7, #22] - 80096ae: 68fb ldr r3, [r7, #12] - 80096b0: 32ae adds r2, #174 @ 0xae - 80096b2: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80096b6: 691b ldr r3, [r3, #16] - 80096b8: 2b00 cmp r3, #0 - 80096ba: d00b beq.n 80096d4 - { - pdev->classId = idx; - 80096bc: 7dba ldrb r2, [r7, #22] - 80096be: 68fb ldr r3, [r7, #12] - 80096c0: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 - pdev->pClass[idx]->EP0_RxReady(pdev); - 80096c4: 7dba ldrb r2, [r7, #22] - 80096c6: 68fb ldr r3, [r7, #12] - 80096c8: 32ae adds r2, #174 @ 0xae - 80096ca: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80096ce: 691b ldr r3, [r3, #16] - 80096d0: 68f8 ldr r0, [r7, #12] - 80096d2: 4798 blx r3 - } - } - } +0800982a : + 800982a: b480 push {r7} + 800982c: b083 sub sp, #12 + 800982e: af00 add r7, sp, #0 + 8009830: 6078 str r0, [r7, #4] + 8009832: 460b mov r3, r1 + 8009834: 70fb strb r3, [r7, #3] + 8009836: 2300 movs r3, #0 + 8009838: 4618 mov r0, r3 + 800983a: 370c adds r7, #12 + 800983c: 46bd mov sp, r7 + 800983e: f85d 7b04 ldr.w r7, [sp], #4 + 8009842: 4770 bx lr - (void)USBD_CtlSendStatus(pdev); - 80096d4: 68f8 ldr r0, [r7, #12] - 80096d6: f001 f977 bl 800a9c8 - 80096da: e032 b.n 8009742 - } - } - else - { - /* Get the class index relative to this interface */ - idx = USBD_CoreFindEP(pdev, (epnum & 0x7FU)); - 80096dc: 7afb ldrb r3, [r7, #11] - 80096de: f003 037f and.w r3, r3, #127 @ 0x7f - 80096e2: b2db uxtb r3, r3 - 80096e4: 4619 mov r1, r3 - 80096e6: 68f8 ldr r0, [r7, #12] - 80096e8: f000 fa41 bl 8009b6e - 80096ec: 4603 mov r3, r0 - 80096ee: 75bb strb r3, [r7, #22] +08009844 : + 8009844: b580 push {r7, lr} + 8009846: b086 sub sp, #24 + 8009848: af00 add r7, sp, #0 + 800984a: 6078 str r0, [r7, #4] + 800984c: 460b mov r3, r1 + 800984e: 70fb strb r3, [r7, #3] + 8009850: 687b ldr r3, [r7, #4] + 8009852: 617b str r3, [r7, #20] + 8009854: 687b ldr r3, [r7, #4] + 8009856: 60fb str r3, [r7, #12] + 8009858: 2300 movs r3, #0 + 800985a: 613b str r3, [r7, #16] + 800985c: 68fb ldr r3, [r7, #12] + 800985e: 885b ldrh r3, [r3, #2] + 8009860: b29b uxth r3, r3 + 8009862: 68fa ldr r2, [r7, #12] + 8009864: 7812 ldrb r2, [r2, #0] + 8009866: 4293 cmp r3, r2 + 8009868: d91f bls.n 80098aa + 800986a: 68fb ldr r3, [r7, #12] + 800986c: 781b ldrb r3, [r3, #0] + 800986e: 817b strh r3, [r7, #10] + 8009870: e013 b.n 800989a + 8009872: f107 030a add.w r3, r7, #10 + 8009876: 4619 mov r1, r3 + 8009878: 6978 ldr r0, [r7, #20] + 800987a: f000 f81b bl 80098b4 + 800987e: 6178 str r0, [r7, #20] + 8009880: 697b ldr r3, [r7, #20] + 8009882: 785b ldrb r3, [r3, #1] + 8009884: 2b05 cmp r3, #5 + 8009886: d108 bne.n 800989a + 8009888: 697b ldr r3, [r7, #20] + 800988a: 613b str r3, [r7, #16] + 800988c: 693b ldr r3, [r7, #16] + 800988e: 789b ldrb r3, [r3, #2] + 8009890: 78fa ldrb r2, [r7, #3] + 8009892: 429a cmp r2, r3 + 8009894: d008 beq.n 80098a8 + 8009896: 2300 movs r3, #0 + 8009898: 613b str r3, [r7, #16] + 800989a: 68fb ldr r3, [r7, #12] + 800989c: 885b ldrh r3, [r3, #2] + 800989e: b29a uxth r2, r3 + 80098a0: 897b ldrh r3, [r7, #10] + 80098a2: 429a cmp r2, r3 + 80098a4: d8e5 bhi.n 8009872 + 80098a6: e000 b.n 80098aa + 80098a8: bf00 nop + 80098aa: 693b ldr r3, [r7, #16] + 80098ac: 4618 mov r0, r3 + 80098ae: 3718 adds r7, #24 + 80098b0: 46bd mov sp, r7 + 80098b2: bd80 pop {r7, pc} - if (((uint16_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 80096f0: 7dbb ldrb r3, [r7, #22] - 80096f2: 2bff cmp r3, #255 @ 0xff - 80096f4: d025 beq.n 8009742 - 80096f6: 7dbb ldrb r3, [r7, #22] - 80096f8: 2b00 cmp r3, #0 - 80096fa: d122 bne.n 8009742 - { - /* Call the class data out function to manage the request */ - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 80096fc: 68fb ldr r3, [r7, #12] - 80096fe: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009702: b2db uxtb r3, r3 - 8009704: 2b03 cmp r3, #3 - 8009706: d117 bne.n 8009738 - { - if (pdev->pClass[idx]->DataOut != NULL) - 8009708: 7dba ldrb r2, [r7, #22] - 800970a: 68fb ldr r3, [r7, #12] - 800970c: 32ae adds r2, #174 @ 0xae - 800970e: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009712: 699b ldr r3, [r3, #24] - 8009714: 2b00 cmp r3, #0 - 8009716: d00f beq.n 8009738 - { - pdev->classId = idx; - 8009718: 7dba ldrb r2, [r7, #22] - 800971a: 68fb ldr r3, [r7, #12] - 800971c: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 - ret = (USBD_StatusTypeDef)pdev->pClass[idx]->DataOut(pdev, epnum); - 8009720: 7dba ldrb r2, [r7, #22] - 8009722: 68fb ldr r3, [r7, #12] - 8009724: 32ae adds r2, #174 @ 0xae - 8009726: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800972a: 699b ldr r3, [r3, #24] - 800972c: 7afa ldrb r2, [r7, #11] - 800972e: 4611 mov r1, r2 - 8009730: 68f8 ldr r0, [r7, #12] - 8009732: 4798 blx r3 - 8009734: 4603 mov r3, r0 - 8009736: 75fb strb r3, [r7, #23] - } - } - if (ret != USBD_OK) - 8009738: 7dfb ldrb r3, [r7, #23] - 800973a: 2b00 cmp r3, #0 - 800973c: d001 beq.n 8009742 - { - return ret; - 800973e: 7dfb ldrb r3, [r7, #23] - 8009740: e000 b.n 8009744 - } - } - } +080098b4 : + 80098b4: b480 push {r7} + 80098b6: b085 sub sp, #20 + 80098b8: af00 add r7, sp, #0 + 80098ba: 6078 str r0, [r7, #4] + 80098bc: 6039 str r1, [r7, #0] + 80098be: 687b ldr r3, [r7, #4] + 80098c0: 60fb str r3, [r7, #12] + 80098c2: 683b ldr r3, [r7, #0] + 80098c4: 881b ldrh r3, [r3, #0] + 80098c6: 68fa ldr r2, [r7, #12] + 80098c8: 7812 ldrb r2, [r2, #0] + 80098ca: 4413 add r3, r2 + 80098cc: b29a uxth r2, r3 + 80098ce: 683b ldr r3, [r7, #0] + 80098d0: 801a strh r2, [r3, #0] + 80098d2: 68fb ldr r3, [r7, #12] + 80098d4: 781b ldrb r3, [r3, #0] + 80098d6: 461a mov r2, r3 + 80098d8: 687b ldr r3, [r7, #4] + 80098da: 4413 add r3, r2 + 80098dc: 60fb str r3, [r7, #12] + 80098de: 68fb ldr r3, [r7, #12] + 80098e0: 4618 mov r0, r3 + 80098e2: 3714 adds r7, #20 + 80098e4: 46bd mov sp, r7 + 80098e6: f85d 7b04 ldr.w r7, [sp], #4 + 80098ea: 4770 bx lr - return USBD_OK; - 8009742: 2300 movs r3, #0 -} - 8009744: 4618 mov r0, r3 - 8009746: 3718 adds r7, #24 - 8009748: 46bd mov sp, r7 - 800974a: bd80 pop {r7, pc} - -0800974c : - * @param pdata: data pointer - * @retval status - */ -USBD_StatusTypeDef USBD_LL_DataInStage(USBD_HandleTypeDef *pdev, - uint8_t epnum, uint8_t *pdata) -{ - 800974c: b580 push {r7, lr} - 800974e: b086 sub sp, #24 - 8009750: af00 add r7, sp, #0 - 8009752: 60f8 str r0, [r7, #12] - 8009754: 460b mov r3, r1 - 8009756: 607a str r2, [r7, #4] - 8009758: 72fb strb r3, [r7, #11] - USBD_StatusTypeDef ret; - uint8_t idx; - - UNUSED(pdata); - - if (epnum == 0U) - 800975a: 7afb ldrb r3, [r7, #11] - 800975c: 2b00 cmp r3, #0 - 800975e: d178 bne.n 8009852 - { - pep = &pdev->ep_in[0]; - 8009760: 68fb ldr r3, [r7, #12] - 8009762: 3314 adds r3, #20 - 8009764: 613b str r3, [r7, #16] - - if (pdev->ep0_state == USBD_EP0_DATA_IN) - 8009766: 68fb ldr r3, [r7, #12] - 8009768: f8d3 3294 ldr.w r3, [r3, #660] @ 0x294 - 800976c: 2b02 cmp r3, #2 - 800976e: d163 bne.n 8009838 - { - if (pep->rem_length > pep->maxpacket) - 8009770: 693b ldr r3, [r7, #16] - 8009772: 685b ldr r3, [r3, #4] - 8009774: 693a ldr r2, [r7, #16] - 8009776: 8992 ldrh r2, [r2, #12] - 8009778: 4293 cmp r3, r2 - 800977a: d91c bls.n 80097b6 - { - pep->rem_length -= pep->maxpacket; - 800977c: 693b ldr r3, [r7, #16] - 800977e: 685b ldr r3, [r3, #4] - 8009780: 693a ldr r2, [r7, #16] - 8009782: 8992 ldrh r2, [r2, #12] - 8009784: 1a9a subs r2, r3, r2 - 8009786: 693b ldr r3, [r7, #16] - 8009788: 605a str r2, [r3, #4] - pep->pbuffer += pep->maxpacket; - 800978a: 693b ldr r3, [r7, #16] - 800978c: 691b ldr r3, [r3, #16] - 800978e: 693a ldr r2, [r7, #16] - 8009790: 8992 ldrh r2, [r2, #12] - 8009792: 441a add r2, r3 - 8009794: 693b ldr r3, [r7, #16] - 8009796: 611a str r2, [r3, #16] - - (void)USBD_CtlContinueSendData(pdev, pep->pbuffer, pep->rem_length); - 8009798: 693b ldr r3, [r7, #16] - 800979a: 6919 ldr r1, [r3, #16] - 800979c: 693b ldr r3, [r7, #16] - 800979e: 685b ldr r3, [r3, #4] - 80097a0: 461a mov r2, r3 - 80097a2: 68f8 ldr r0, [r7, #12] - 80097a4: f001 f8ee bl 800a984 - - /* Prepare endpoint for premature end of transfer */ - (void)USBD_LL_PrepareReceive(pdev, 0U, NULL, 0U); - 80097a8: 2300 movs r3, #0 - 80097aa: 2200 movs r2, #0 - 80097ac: 2100 movs r1, #0 - 80097ae: 68f8 ldr r0, [r7, #12] - 80097b0: f001 fd2a bl 800b208 - 80097b4: e040 b.n 8009838 - } - else - { - /* last packet is MPS multiple, so send ZLP packet */ - if ((pep->maxpacket == pep->rem_length) && - 80097b6: 693b ldr r3, [r7, #16] - 80097b8: 899b ldrh r3, [r3, #12] - 80097ba: 461a mov r2, r3 - 80097bc: 693b ldr r3, [r7, #16] - 80097be: 685b ldr r3, [r3, #4] - 80097c0: 429a cmp r2, r3 - 80097c2: d11c bne.n 80097fe - (pep->total_length >= pep->maxpacket) && - 80097c4: 693b ldr r3, [r7, #16] - 80097c6: 681b ldr r3, [r3, #0] - 80097c8: 693a ldr r2, [r7, #16] - 80097ca: 8992 ldrh r2, [r2, #12] - if ((pep->maxpacket == pep->rem_length) && - 80097cc: 4293 cmp r3, r2 - 80097ce: d316 bcc.n 80097fe - (pep->total_length < pdev->ep0_data_len)) - 80097d0: 693b ldr r3, [r7, #16] - 80097d2: 681a ldr r2, [r3, #0] - 80097d4: 68fb ldr r3, [r7, #12] - 80097d6: f8d3 3298 ldr.w r3, [r3, #664] @ 0x298 - (pep->total_length >= pep->maxpacket) && - 80097da: 429a cmp r2, r3 - 80097dc: d20f bcs.n 80097fe - { - (void)USBD_CtlContinueSendData(pdev, NULL, 0U); - 80097de: 2200 movs r2, #0 - 80097e0: 2100 movs r1, #0 - 80097e2: 68f8 ldr r0, [r7, #12] - 80097e4: f001 f8ce bl 800a984 - pdev->ep0_data_len = 0U; - 80097e8: 68fb ldr r3, [r7, #12] - 80097ea: 2200 movs r2, #0 - 80097ec: f8c3 2298 str.w r2, [r3, #664] @ 0x298 - - /* Prepare endpoint for premature end of transfer */ - (void)USBD_LL_PrepareReceive(pdev, 0U, NULL, 0U); - 80097f0: 2300 movs r3, #0 - 80097f2: 2200 movs r2, #0 - 80097f4: 2100 movs r1, #0 - 80097f6: 68f8 ldr r0, [r7, #12] - 80097f8: f001 fd06 bl 800b208 - 80097fc: e01c b.n 8009838 - } - else - { - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 80097fe: 68fb ldr r3, [r7, #12] - 8009800: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009804: b2db uxtb r3, r3 - 8009806: 2b03 cmp r3, #3 - 8009808: d10f bne.n 800982a - { - if (pdev->pClass[0]->EP0_TxSent != NULL) - 800980a: 68fb ldr r3, [r7, #12] - 800980c: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009810: 68db ldr r3, [r3, #12] - 8009812: 2b00 cmp r3, #0 - 8009814: d009 beq.n 800982a - { - pdev->classId = 0U; - 8009816: 68fb ldr r3, [r7, #12] - 8009818: 2200 movs r2, #0 - 800981a: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 - pdev->pClass[0]->EP0_TxSent(pdev); - 800981e: 68fb ldr r3, [r7, #12] - 8009820: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009824: 68db ldr r3, [r3, #12] - 8009826: 68f8 ldr r0, [r7, #12] - 8009828: 4798 blx r3 - } - } - (void)USBD_LL_StallEP(pdev, 0x80U); - 800982a: 2180 movs r1, #128 @ 0x80 - 800982c: 68f8 ldr r0, [r7, #12] - 800982e: f001 fc41 bl 800b0b4 - (void)USBD_CtlReceiveStatus(pdev); - 8009832: 68f8 ldr r0, [r7, #12] - 8009834: f001 f8db bl 800a9ee - } - } - } - - if (pdev->dev_test_mode != 0U) - 8009838: 68fb ldr r3, [r7, #12] - 800983a: f893 32a0 ldrb.w r3, [r3, #672] @ 0x2a0 - 800983e: 2b00 cmp r3, #0 - 8009840: d03a beq.n 80098b8 - { - (void)USBD_RunTestMode(pdev); - 8009842: 68f8 ldr r0, [r7, #12] - 8009844: f7ff fe30 bl 80094a8 - pdev->dev_test_mode = 0U; - 8009848: 68fb ldr r3, [r7, #12] - 800984a: 2200 movs r2, #0 - 800984c: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 - 8009850: e032 b.n 80098b8 - } - } - else - { - /* Get the class index relative to this interface */ - idx = USBD_CoreFindEP(pdev, ((uint8_t)epnum | 0x80U)); - 8009852: 7afb ldrb r3, [r7, #11] - 8009854: f063 037f orn r3, r3, #127 @ 0x7f - 8009858: b2db uxtb r3, r3 - 800985a: 4619 mov r1, r3 - 800985c: 68f8 ldr r0, [r7, #12] - 800985e: f000 f986 bl 8009b6e - 8009862: 4603 mov r3, r0 - 8009864: 75fb strb r3, [r7, #23] - - if (((uint16_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 8009866: 7dfb ldrb r3, [r7, #23] - 8009868: 2bff cmp r3, #255 @ 0xff - 800986a: d025 beq.n 80098b8 - 800986c: 7dfb ldrb r3, [r7, #23] - 800986e: 2b00 cmp r3, #0 - 8009870: d122 bne.n 80098b8 - { - /* Call the class data out function to manage the request */ - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009872: 68fb ldr r3, [r7, #12] - 8009874: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009878: b2db uxtb r3, r3 - 800987a: 2b03 cmp r3, #3 - 800987c: d11c bne.n 80098b8 - { - if (pdev->pClass[idx]->DataIn != NULL) - 800987e: 7dfa ldrb r2, [r7, #23] - 8009880: 68fb ldr r3, [r7, #12] - 8009882: 32ae adds r2, #174 @ 0xae - 8009884: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009888: 695b ldr r3, [r3, #20] - 800988a: 2b00 cmp r3, #0 - 800988c: d014 beq.n 80098b8 - { - pdev->classId = idx; - 800988e: 7dfa ldrb r2, [r7, #23] - 8009890: 68fb ldr r3, [r7, #12] - 8009892: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 - ret = (USBD_StatusTypeDef)pdev->pClass[idx]->DataIn(pdev, epnum); - 8009896: 7dfa ldrb r2, [r7, #23] - 8009898: 68fb ldr r3, [r7, #12] - 800989a: 32ae adds r2, #174 @ 0xae - 800989c: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80098a0: 695b ldr r3, [r3, #20] - 80098a2: 7afa ldrb r2, [r7, #11] - 80098a4: 4611 mov r1, r2 - 80098a6: 68f8 ldr r0, [r7, #12] - 80098a8: 4798 blx r3 - 80098aa: 4603 mov r3, r0 - 80098ac: 75bb strb r3, [r7, #22] - - if (ret != USBD_OK) - 80098ae: 7dbb ldrb r3, [r7, #22] - 80098b0: 2b00 cmp r3, #0 - 80098b2: d001 beq.n 80098b8 - { - return ret; - 80098b4: 7dbb ldrb r3, [r7, #22] - 80098b6: e000 b.n 80098ba - } - } - } - } - - return USBD_OK; - 80098b8: 2300 movs r3, #0 -} - 80098ba: 4618 mov r0, r3 - 80098bc: 3718 adds r7, #24 - 80098be: 46bd mov sp, r7 - 80098c0: bd80 pop {r7, pc} - -080098c2 : - * Handle Reset event - * @param pdev: device instance - * @retval status - */ -USBD_StatusTypeDef USBD_LL_Reset(USBD_HandleTypeDef *pdev) -{ - 80098c2: b580 push {r7, lr} - 80098c4: b084 sub sp, #16 - 80098c6: af00 add r7, sp, #0 - 80098c8: 6078 str r0, [r7, #4] - USBD_StatusTypeDef ret = USBD_OK; - 80098ca: 2300 movs r3, #0 - 80098cc: 73fb strb r3, [r7, #15] - - /* Upon Reset call user call back */ - pdev->dev_state = USBD_STATE_DEFAULT; - 80098ce: 687b ldr r3, [r7, #4] - 80098d0: 2201 movs r2, #1 - 80098d2: f883 229c strb.w r2, [r3, #668] @ 0x29c - pdev->ep0_state = USBD_EP0_IDLE; - 80098d6: 687b ldr r3, [r7, #4] - 80098d8: 2200 movs r2, #0 - 80098da: f8c3 2294 str.w r2, [r3, #660] @ 0x294 - pdev->dev_config = 0U; - 80098de: 687b ldr r3, [r7, #4] - 80098e0: 2200 movs r2, #0 - 80098e2: 605a str r2, [r3, #4] - pdev->dev_remote_wakeup = 0U; - 80098e4: 687b ldr r3, [r7, #4] - 80098e6: 2200 movs r2, #0 - 80098e8: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 - pdev->dev_test_mode = 0U; - 80098ec: 687b ldr r3, [r7, #4] - 80098ee: 2200 movs r2, #0 - 80098f0: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 - } - } - } -#else - - if (pdev->pClass[0] != NULL) +080098ec : + 80098ec: b480 push {r7} + 80098ee: b087 sub sp, #28 + 80098f0: af00 add r7, sp, #0 + 80098f2: 6078 str r0, [r7, #4] 80098f4: 687b ldr r3, [r7, #4] - 80098f6: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 80098fa: 2b00 cmp r3, #0 - 80098fc: d014 beq.n 8009928 - { - if (pdev->pClass[0]->DeInit != NULL) - 80098fe: 687b ldr r3, [r7, #4] - 8009900: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009904: 685b ldr r3, [r3, #4] - 8009906: 2b00 cmp r3, #0 - 8009908: d00e beq.n 8009928 - { - if (pdev->pClass[0]->DeInit(pdev, (uint8_t)pdev->dev_config) != USBD_OK) - 800990a: 687b ldr r3, [r7, #4] - 800990c: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009910: 685b ldr r3, [r3, #4] - 8009912: 687a ldr r2, [r7, #4] - 8009914: 6852 ldr r2, [r2, #4] - 8009916: b2d2 uxtb r2, r2 - 8009918: 4611 mov r1, r2 - 800991a: 6878 ldr r0, [r7, #4] - 800991c: 4798 blx r3 - 800991e: 4603 mov r3, r0 - 8009920: 2b00 cmp r3, #0 - 8009922: d001 beq.n 8009928 - { - ret = USBD_FAIL; - 8009924: 2303 movs r3, #3 - 8009926: 73fb strb r3, [r7, #15] - } - } -#endif /* USE_USBD_COMPOSITE */ + 80098f6: 617b str r3, [r7, #20] + 80098f8: 697b ldr r3, [r7, #20] + 80098fa: 781b ldrb r3, [r3, #0] + 80098fc: 827b strh r3, [r7, #18] + 80098fe: 697b ldr r3, [r7, #20] + 8009900: 3301 adds r3, #1 + 8009902: 617b str r3, [r7, #20] + 8009904: 697b ldr r3, [r7, #20] + 8009906: 781b ldrb r3, [r3, #0] + 8009908: 823b strh r3, [r7, #16] + 800990a: f9b7 3010 ldrsh.w r3, [r7, #16] + 800990e: 021b lsls r3, r3, #8 + 8009910: b21a sxth r2, r3 + 8009912: f9b7 3012 ldrsh.w r3, [r7, #18] + 8009916: 4313 orrs r3, r2 + 8009918: b21b sxth r3, r3 + 800991a: 81fb strh r3, [r7, #14] + 800991c: 89fb ldrh r3, [r7, #14] + 800991e: 4618 mov r0, r3 + 8009920: 371c adds r7, #28 + 8009922: 46bd mov sp, r7 + 8009924: f85d 7b04 ldr.w r7, [sp], #4 + 8009928: 4770 bx lr + ... - /* Open EP0 OUT */ - (void)USBD_LL_OpenEP(pdev, 0x00U, USBD_EP_TYPE_CTRL, USB_MAX_EP0_SIZE); - 8009928: 2340 movs r3, #64 @ 0x40 - 800992a: 2200 movs r2, #0 - 800992c: 2100 movs r1, #0 - 800992e: 6878 ldr r0, [r7, #4] - 8009930: f001 fb7b bl 800b02a - pdev->ep_out[0x00U & 0xFU].is_used = 1U; - 8009934: 687b ldr r3, [r7, #4] - 8009936: 2201 movs r2, #1 - 8009938: f883 2163 strb.w r2, [r3, #355] @ 0x163 - - pdev->ep_out[0].maxpacket = USB_MAX_EP0_SIZE; - 800993c: 687b ldr r3, [r7, #4] - 800993e: 2240 movs r2, #64 @ 0x40 - 8009940: 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); - 8009944: 2340 movs r3, #64 @ 0x40 - 8009946: 2200 movs r2, #0 - 8009948: 2180 movs r1, #128 @ 0x80 - 800994a: 6878 ldr r0, [r7, #4] - 800994c: f001 fb6d bl 800b02a - pdev->ep_in[0x80U & 0xFU].is_used = 1U; - 8009950: 687b ldr r3, [r7, #4] - 8009952: 2201 movs r2, #1 - 8009954: f883 2023 strb.w r2, [r3, #35] @ 0x23 - - pdev->ep_in[0].maxpacket = USB_MAX_EP0_SIZE; +0800992c : + 800992c: b580 push {r7, lr} + 800992e: b084 sub sp, #16 + 8009930: af00 add r7, sp, #0 + 8009932: 6078 str r0, [r7, #4] + 8009934: 6039 str r1, [r7, #0] + 8009936: 2300 movs r3, #0 + 8009938: 73fb strb r3, [r7, #15] + 800993a: 683b ldr r3, [r7, #0] + 800993c: 781b ldrb r3, [r3, #0] + 800993e: f003 0360 and.w r3, r3, #96 @ 0x60 + 8009942: 2b40 cmp r3, #64 @ 0x40 + 8009944: d005 beq.n 8009952 + 8009946: 2b40 cmp r3, #64 @ 0x40 + 8009948: d857 bhi.n 80099fa + 800994a: 2b00 cmp r3, #0 + 800994c: d00f beq.n 800996e + 800994e: 2b20 cmp r3, #32 + 8009950: d153 bne.n 80099fa + 8009952: 687b ldr r3, [r7, #4] + 8009954: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 8009958: 687b ldr r3, [r7, #4] - 800995a: 2240 movs r2, #64 @ 0x40 - 800995c: 841a strh r2, [r3, #32] + 800995a: 32ae adds r2, #174 @ 0xae + 800995c: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009960: 689b ldr r3, [r3, #8] + 8009962: 6839 ldr r1, [r7, #0] + 8009964: 6878 ldr r0, [r7, #4] + 8009966: 4798 blx r3 + 8009968: 4603 mov r3, r0 + 800996a: 73fb strb r3, [r7, #15] + 800996c: e04a b.n 8009a04 + 800996e: 683b ldr r3, [r7, #0] + 8009970: 785b ldrb r3, [r3, #1] + 8009972: 2b09 cmp r3, #9 + 8009974: d83b bhi.n 80099ee + 8009976: a201 add r2, pc, #4 @ (adr r2, 800997c ) + 8009978: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800997c: 080099d1 .word 0x080099d1 + 8009980: 080099e5 .word 0x080099e5 + 8009984: 080099ef .word 0x080099ef + 8009988: 080099db .word 0x080099db + 800998c: 080099ef .word 0x080099ef + 8009990: 080099af .word 0x080099af + 8009994: 080099a5 .word 0x080099a5 + 8009998: 080099ef .word 0x080099ef + 800999c: 080099c7 .word 0x080099c7 + 80099a0: 080099b9 .word 0x080099b9 + 80099a4: 6839 ldr r1, [r7, #0] + 80099a6: 6878 ldr r0, [r7, #4] + 80099a8: f000 fa3e bl 8009e28 + 80099ac: e024 b.n 80099f8 + 80099ae: 6839 ldr r1, [r7, #0] + 80099b0: 6878 ldr r0, [r7, #4] + 80099b2: f000 fbcd bl 800a150 + 80099b6: e01f b.n 80099f8 + 80099b8: 6839 ldr r1, [r7, #0] + 80099ba: 6878 ldr r0, [r7, #4] + 80099bc: f000 fc0c bl 800a1d8 + 80099c0: 4603 mov r3, r0 + 80099c2: 73fb strb r3, [r7, #15] + 80099c4: e018 b.n 80099f8 + 80099c6: 6839 ldr r1, [r7, #0] + 80099c8: 6878 ldr r0, [r7, #4] + 80099ca: f000 fcaf bl 800a32c + 80099ce: e013 b.n 80099f8 + 80099d0: 6839 ldr r1, [r7, #0] + 80099d2: 6878 ldr r0, [r7, #4] + 80099d4: f000 fce0 bl 800a398 + 80099d8: e00e b.n 80099f8 + 80099da: 6839 ldr r1, [r7, #0] + 80099dc: 6878 ldr r0, [r7, #4] + 80099de: f000 fd0f bl 800a400 + 80099e2: e009 b.n 80099f8 + 80099e4: 6839 ldr r1, [r7, #0] + 80099e6: 6878 ldr r0, [r7, #4] + 80099e8: f000 fd33 bl 800a452 + 80099ec: e004 b.n 80099f8 + 80099ee: 6839 ldr r1, [r7, #0] + 80099f0: 6878 ldr r0, [r7, #4] + 80099f2: f000 fd8a bl 800a50a + 80099f6: bf00 nop + 80099f8: e004 b.n 8009a04 + 80099fa: 6839 ldr r1, [r7, #0] + 80099fc: 6878 ldr r0, [r7, #4] + 80099fe: f000 fd84 bl 800a50a + 8009a02: bf00 nop + 8009a04: 7bfb ldrb r3, [r7, #15] + 8009a06: 4618 mov r0, r3 + 8009a08: 3710 adds r7, #16 + 8009a0a: 46bd mov sp, r7 + 8009a0c: bd80 pop {r7, pc} + 8009a0e: bf00 nop - return ret; - 800995e: 7bfb ldrb r3, [r7, #15] -} - 8009960: 4618 mov r0, r3 - 8009962: 3710 adds r7, #16 - 8009964: 46bd mov sp, r7 - 8009966: bd80 pop {r7, pc} +08009a10 : + 8009a10: b580 push {r7, lr} + 8009a12: b084 sub sp, #16 + 8009a14: af00 add r7, sp, #0 + 8009a16: 6078 str r0, [r7, #4] + 8009a18: 6039 str r1, [r7, #0] + 8009a1a: 2300 movs r3, #0 + 8009a1c: 73fb strb r3, [r7, #15] + 8009a1e: 683b ldr r3, [r7, #0] + 8009a20: 781b ldrb r3, [r3, #0] + 8009a22: f003 0360 and.w r3, r3, #96 @ 0x60 + 8009a26: 2b40 cmp r3, #64 @ 0x40 + 8009a28: d005 beq.n 8009a36 + 8009a2a: 2b40 cmp r3, #64 @ 0x40 + 8009a2c: d852 bhi.n 8009ad4 + 8009a2e: 2b00 cmp r3, #0 + 8009a30: d001 beq.n 8009a36 + 8009a32: 2b20 cmp r3, #32 + 8009a34: d14e bne.n 8009ad4 + 8009a36: 687b ldr r3, [r7, #4] + 8009a38: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009a3c: b2db uxtb r3, r3 + 8009a3e: 3b01 subs r3, #1 + 8009a40: 2b02 cmp r3, #2 + 8009a42: d840 bhi.n 8009ac6 + 8009a44: 683b ldr r3, [r7, #0] + 8009a46: 889b ldrh r3, [r3, #4] + 8009a48: b2db uxtb r3, r3 + 8009a4a: 2b01 cmp r3, #1 + 8009a4c: d836 bhi.n 8009abc + 8009a4e: 683b ldr r3, [r7, #0] + 8009a50: 889b ldrh r3, [r3, #4] + 8009a52: b2db uxtb r3, r3 + 8009a54: 4619 mov r1, r3 + 8009a56: 6878 ldr r0, [r7, #4] + 8009a58: f7ff feda bl 8009810 + 8009a5c: 4603 mov r3, r0 + 8009a5e: 73bb strb r3, [r7, #14] + 8009a60: 7bbb ldrb r3, [r7, #14] + 8009a62: 2bff cmp r3, #255 @ 0xff + 8009a64: d01d beq.n 8009aa2 + 8009a66: 7bbb ldrb r3, [r7, #14] + 8009a68: 2b00 cmp r3, #0 + 8009a6a: d11a bne.n 8009aa2 + 8009a6c: 7bba ldrb r2, [r7, #14] + 8009a6e: 687b ldr r3, [r7, #4] + 8009a70: 32ae adds r2, #174 @ 0xae + 8009a72: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009a76: 689b ldr r3, [r3, #8] + 8009a78: 2b00 cmp r3, #0 + 8009a7a: d00f beq.n 8009a9c + 8009a7c: 7bba ldrb r2, [r7, #14] + 8009a7e: 687b ldr r3, [r7, #4] + 8009a80: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8009a84: 7bba ldrb r2, [r7, #14] + 8009a86: 687b ldr r3, [r7, #4] + 8009a88: 32ae adds r2, #174 @ 0xae + 8009a8a: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009a8e: 689b ldr r3, [r3, #8] + 8009a90: 6839 ldr r1, [r7, #0] + 8009a92: 6878 ldr r0, [r7, #4] + 8009a94: 4798 blx r3 + 8009a96: 4603 mov r3, r0 + 8009a98: 73fb strb r3, [r7, #15] + 8009a9a: e004 b.n 8009aa6 + 8009a9c: 2303 movs r3, #3 + 8009a9e: 73fb strb r3, [r7, #15] + 8009aa0: e001 b.n 8009aa6 + 8009aa2: 2303 movs r3, #3 + 8009aa4: 73fb strb r3, [r7, #15] + 8009aa6: 683b ldr r3, [r7, #0] + 8009aa8: 88db ldrh r3, [r3, #6] + 8009aaa: 2b00 cmp r3, #0 + 8009aac: d110 bne.n 8009ad0 + 8009aae: 7bfb ldrb r3, [r7, #15] + 8009ab0: 2b00 cmp r3, #0 + 8009ab2: d10d bne.n 8009ad0 + 8009ab4: 6878 ldr r0, [r7, #4] + 8009ab6: f000 fde5 bl 800a684 + 8009aba: e009 b.n 8009ad0 + 8009abc: 6839 ldr r1, [r7, #0] + 8009abe: 6878 ldr r0, [r7, #4] + 8009ac0: f000 fd23 bl 800a50a + 8009ac4: e004 b.n 8009ad0 + 8009ac6: 6839 ldr r1, [r7, #0] + 8009ac8: 6878 ldr r0, [r7, #4] + 8009aca: f000 fd1e bl 800a50a + 8009ace: e000 b.n 8009ad2 + 8009ad0: bf00 nop + 8009ad2: e004 b.n 8009ade + 8009ad4: 6839 ldr r1, [r7, #0] + 8009ad6: 6878 ldr r0, [r7, #4] + 8009ad8: f000 fd17 bl 800a50a + 8009adc: bf00 nop + 8009ade: 7bfb ldrb r3, [r7, #15] + 8009ae0: 4618 mov r0, r3 + 8009ae2: 3710 adds r7, #16 + 8009ae4: 46bd mov sp, r7 + 8009ae6: bd80 pop {r7, pc} -08009968 : - * @param pdev: device instance - * @retval status - */ -USBD_StatusTypeDef USBD_LL_SetSpeed(USBD_HandleTypeDef *pdev, - USBD_SpeedTypeDef speed) -{ - 8009968: b480 push {r7} - 800996a: b083 sub sp, #12 - 800996c: af00 add r7, sp, #0 - 800996e: 6078 str r0, [r7, #4] - 8009970: 460b mov r3, r1 - 8009972: 70fb strb r3, [r7, #3] - pdev->dev_speed = speed; - 8009974: 687b ldr r3, [r7, #4] - 8009976: 78fa ldrb r2, [r7, #3] - 8009978: 741a strb r2, [r3, #16] - - return USBD_OK; - 800997a: 2300 movs r3, #0 -} - 800997c: 4618 mov r0, r3 - 800997e: 370c adds r7, #12 - 8009980: 46bd mov sp, r7 - 8009982: f85d 7b04 ldr.w r7, [sp], #4 - 8009986: 4770 bx lr - -08009988 : - * Handle Suspend event - * @param pdev: device instance - * @retval status - */ -USBD_StatusTypeDef USBD_LL_Suspend(USBD_HandleTypeDef *pdev) -{ - 8009988: b480 push {r7} - 800998a: b083 sub sp, #12 - 800998c: af00 add r7, sp, #0 - 800998e: 6078 str r0, [r7, #4] - if (pdev->dev_state != USBD_STATE_SUSPENDED) - 8009990: 687b ldr r3, [r7, #4] - 8009992: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009996: b2db uxtb r3, r3 - 8009998: 2b04 cmp r3, #4 - 800999a: d006 beq.n 80099aa - { - pdev->dev_old_state = pdev->dev_state; - 800999c: 687b ldr r3, [r7, #4] - 800999e: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80099a2: b2da uxtb r2, r3 - 80099a4: 687b ldr r3, [r7, #4] - 80099a6: f883 229d strb.w r2, [r3, #669] @ 0x29d - } - - pdev->dev_state = USBD_STATE_SUSPENDED; - 80099aa: 687b ldr r3, [r7, #4] - 80099ac: 2204 movs r2, #4 - 80099ae: f883 229c strb.w r2, [r3, #668] @ 0x29c - - return USBD_OK; - 80099b2: 2300 movs r3, #0 -} - 80099b4: 4618 mov r0, r3 - 80099b6: 370c adds r7, #12 - 80099b8: 46bd mov sp, r7 - 80099ba: f85d 7b04 ldr.w r7, [sp], #4 - 80099be: 4770 bx lr - -080099c0 : - * Handle Resume event - * @param pdev: device instance - * @retval status - */ -USBD_StatusTypeDef USBD_LL_Resume(USBD_HandleTypeDef *pdev) -{ - 80099c0: b480 push {r7} - 80099c2: b083 sub sp, #12 - 80099c4: af00 add r7, sp, #0 - 80099c6: 6078 str r0, [r7, #4] - if (pdev->dev_state == USBD_STATE_SUSPENDED) - 80099c8: 687b ldr r3, [r7, #4] - 80099ca: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80099ce: b2db uxtb r3, r3 - 80099d0: 2b04 cmp r3, #4 - 80099d2: d106 bne.n 80099e2 - { - pdev->dev_state = pdev->dev_old_state; - 80099d4: 687b ldr r3, [r7, #4] - 80099d6: f893 329d ldrb.w r3, [r3, #669] @ 0x29d - 80099da: b2da uxtb r2, r3 - 80099dc: 687b ldr r3, [r7, #4] - 80099de: f883 229c strb.w r2, [r3, #668] @ 0x29c - } - - return USBD_OK; - 80099e2: 2300 movs r3, #0 -} - 80099e4: 4618 mov r0, r3 - 80099e6: 370c adds r7, #12 - 80099e8: 46bd mov sp, r7 - 80099ea: f85d 7b04 ldr.w r7, [sp], #4 - 80099ee: 4770 bx lr - -080099f0 : - * Handle SOF event - * @param pdev: device instance - * @retval status - */ -USBD_StatusTypeDef USBD_LL_SOF(USBD_HandleTypeDef *pdev) -{ - 80099f0: b580 push {r7, lr} - 80099f2: b082 sub sp, #8 - 80099f4: af00 add r7, sp, #0 - 80099f6: 6078 str r0, [r7, #4] - /* The SOF event can be distributed for all classes that support it */ - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 80099f8: 687b ldr r3, [r7, #4] - 80099fa: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80099fe: b2db uxtb r3, r3 - 8009a00: 2b03 cmp r3, #3 - 8009a02: d110 bne.n 8009a26 - } - } - } - } -#else - if (pdev->pClass[0] != NULL) - 8009a04: 687b ldr r3, [r7, #4] - 8009a06: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009a0a: 2b00 cmp r3, #0 - 8009a0c: d00b beq.n 8009a26 - { - if (pdev->pClass[0]->SOF != NULL) - 8009a0e: 687b ldr r3, [r7, #4] - 8009a10: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009a14: 69db ldr r3, [r3, #28] - 8009a16: 2b00 cmp r3, #0 - 8009a18: d005 beq.n 8009a26 - { - (void)pdev->pClass[0]->SOF(pdev); - 8009a1a: 687b ldr r3, [r7, #4] - 8009a1c: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009a20: 69db ldr r3, [r3, #28] - 8009a22: 6878 ldr r0, [r7, #4] - 8009a24: 4798 blx r3 - } - } -#endif /* USE_USBD_COMPOSITE */ - } - - return USBD_OK; - 8009a26: 2300 movs r3, #0 -} - 8009a28: 4618 mov r0, r3 - 8009a2a: 3708 adds r7, #8 - 8009a2c: 46bd mov sp, r7 - 8009a2e: bd80 pop {r7, pc} - -08009a30 : - * @param epnum: Endpoint number - * @retval status - */ -USBD_StatusTypeDef USBD_LL_IsoINIncomplete(USBD_HandleTypeDef *pdev, - uint8_t epnum) -{ - 8009a30: b580 push {r7, lr} - 8009a32: b082 sub sp, #8 - 8009a34: af00 add r7, sp, #0 - 8009a36: 6078 str r0, [r7, #4] - 8009a38: 460b mov r3, r1 - 8009a3a: 70fb strb r3, [r7, #3] - if (pdev->pClass[pdev->classId] == NULL) - 8009a3c: 687b ldr r3, [r7, #4] - 8009a3e: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009a42: 687b ldr r3, [r7, #4] - 8009a44: 32ae adds r2, #174 @ 0xae - 8009a46: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009a4a: 2b00 cmp r3, #0 - 8009a4c: d101 bne.n 8009a52 - { - return USBD_FAIL; - 8009a4e: 2303 movs r3, #3 - 8009a50: e01c b.n 8009a8c - } - - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009a52: 687b ldr r3, [r7, #4] - 8009a54: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009a58: b2db uxtb r3, r3 - 8009a5a: 2b03 cmp r3, #3 - 8009a5c: d115 bne.n 8009a8a - { - if (pdev->pClass[pdev->classId]->IsoINIncomplete != NULL) - 8009a5e: 687b ldr r3, [r7, #4] - 8009a60: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009a64: 687b ldr r3, [r7, #4] - 8009a66: 32ae adds r2, #174 @ 0xae - 8009a68: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009a6c: 6a1b ldr r3, [r3, #32] - 8009a6e: 2b00 cmp r3, #0 - 8009a70: d00b beq.n 8009a8a - { - (void)pdev->pClass[pdev->classId]->IsoINIncomplete(pdev, epnum); - 8009a72: 687b ldr r3, [r7, #4] - 8009a74: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009a78: 687b ldr r3, [r7, #4] - 8009a7a: 32ae adds r2, #174 @ 0xae - 8009a7c: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009a80: 6a1b ldr r3, [r3, #32] - 8009a82: 78fa ldrb r2, [r7, #3] - 8009a84: 4611 mov r1, r2 - 8009a86: 6878 ldr r0, [r7, #4] - 8009a88: 4798 blx r3 - } - } - - return USBD_OK; - 8009a8a: 2300 movs r3, #0 -} - 8009a8c: 4618 mov r0, r3 - 8009a8e: 3708 adds r7, #8 - 8009a90: 46bd mov sp, r7 - 8009a92: bd80 pop {r7, pc} - -08009a94 : - * @param epnum: Endpoint number - * @retval status - */ -USBD_StatusTypeDef USBD_LL_IsoOUTIncomplete(USBD_HandleTypeDef *pdev, - uint8_t epnum) -{ - 8009a94: b580 push {r7, lr} - 8009a96: b082 sub sp, #8 - 8009a98: af00 add r7, sp, #0 - 8009a9a: 6078 str r0, [r7, #4] - 8009a9c: 460b mov r3, r1 - 8009a9e: 70fb strb r3, [r7, #3] - if (pdev->pClass[pdev->classId] == NULL) - 8009aa0: 687b ldr r3, [r7, #4] - 8009aa2: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009aa6: 687b ldr r3, [r7, #4] - 8009aa8: 32ae adds r2, #174 @ 0xae - 8009aaa: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009aae: 2b00 cmp r3, #0 - 8009ab0: d101 bne.n 8009ab6 - { - return USBD_FAIL; - 8009ab2: 2303 movs r3, #3 - 8009ab4: e01c b.n 8009af0 - } - - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009ab6: 687b ldr r3, [r7, #4] - 8009ab8: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009abc: b2db uxtb r3, r3 - 8009abe: 2b03 cmp r3, #3 - 8009ac0: d115 bne.n 8009aee - { - if (pdev->pClass[pdev->classId]->IsoOUTIncomplete != NULL) - 8009ac2: 687b ldr r3, [r7, #4] - 8009ac4: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009ac8: 687b ldr r3, [r7, #4] - 8009aca: 32ae adds r2, #174 @ 0xae - 8009acc: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009ad0: 6a5b ldr r3, [r3, #36] @ 0x24 - 8009ad2: 2b00 cmp r3, #0 - 8009ad4: d00b beq.n 8009aee - { - (void)pdev->pClass[pdev->classId]->IsoOUTIncomplete(pdev, epnum); - 8009ad6: 687b ldr r3, [r7, #4] - 8009ad8: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009adc: 687b ldr r3, [r7, #4] - 8009ade: 32ae adds r2, #174 @ 0xae - 8009ae0: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009ae4: 6a5b ldr r3, [r3, #36] @ 0x24 - 8009ae6: 78fa ldrb r2, [r7, #3] - 8009ae8: 4611 mov r1, r2 - 8009aea: 6878 ldr r0, [r7, #4] - 8009aec: 4798 blx r3 - } - } - - return USBD_OK; - 8009aee: 2300 movs r3, #0 -} - 8009af0: 4618 mov r0, r3 - 8009af2: 3708 adds r7, #8 - 8009af4: 46bd mov sp, r7 - 8009af6: bd80 pop {r7, pc} - -08009af8 : - * Handle device connection event - * @param pdev: device instance - * @retval status - */ -USBD_StatusTypeDef USBD_LL_DevConnected(USBD_HandleTypeDef *pdev) -{ - 8009af8: b480 push {r7} - 8009afa: b083 sub sp, #12 - 8009afc: af00 add r7, sp, #0 - 8009afe: 6078 str r0, [r7, #4] - /* Prevent unused argument compilation warning */ - UNUSED(pdev); - - return USBD_OK; - 8009b00: 2300 movs r3, #0 -} - 8009b02: 4618 mov r0, r3 - 8009b04: 370c adds r7, #12 - 8009b06: 46bd mov sp, r7 - 8009b08: f85d 7b04 ldr.w r7, [sp], #4 - 8009b0c: 4770 bx lr - -08009b0e : - * Handle device disconnection event - * @param pdev: device instance - * @retval status - */ -USBD_StatusTypeDef USBD_LL_DevDisconnected(USBD_HandleTypeDef *pdev) -{ - 8009b0e: b580 push {r7, lr} - 8009b10: b084 sub sp, #16 - 8009b12: af00 add r7, sp, #0 - 8009b14: 6078 str r0, [r7, #4] - USBD_StatusTypeDef ret = USBD_OK; - 8009b16: 2300 movs r3, #0 - 8009b18: 73fb strb r3, [r7, #15] - - /* Free Class Resources */ - pdev->dev_state = USBD_STATE_DEFAULT; - 8009b1a: 687b ldr r3, [r7, #4] - 8009b1c: 2201 movs r2, #1 - 8009b1e: f883 229c strb.w r2, [r3, #668] @ 0x29c - } - } - } - } -#else - if (pdev->pClass[0] != NULL) - 8009b22: 687b ldr r3, [r7, #4] - 8009b24: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009b28: 2b00 cmp r3, #0 - 8009b2a: d00e beq.n 8009b4a - { - if (pdev->pClass[0]->DeInit(pdev, (uint8_t)pdev->dev_config) != 0U) - 8009b2c: 687b ldr r3, [r7, #4] - 8009b2e: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009b32: 685b ldr r3, [r3, #4] - 8009b34: 687a ldr r2, [r7, #4] - 8009b36: 6852 ldr r2, [r2, #4] - 8009b38: b2d2 uxtb r2, r2 - 8009b3a: 4611 mov r1, r2 - 8009b3c: 6878 ldr r0, [r7, #4] - 8009b3e: 4798 blx r3 - 8009b40: 4603 mov r3, r0 - 8009b42: 2b00 cmp r3, #0 - 8009b44: d001 beq.n 8009b4a - { - ret = USBD_FAIL; - 8009b46: 2303 movs r3, #3 - 8009b48: 73fb strb r3, [r7, #15] - } - } -#endif /* USE_USBD_COMPOSITE */ - - return ret; - 8009b4a: 7bfb ldrb r3, [r7, #15] -} - 8009b4c: 4618 mov r0, r3 - 8009b4e: 3710 adds r7, #16 - 8009b50: 46bd mov sp, r7 - 8009b52: bd80 pop {r7, pc} - -08009b54 : - * @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) -{ - 8009b54: b480 push {r7} - 8009b56: b083 sub sp, #12 - 8009b58: af00 add r7, sp, #0 - 8009b5a: 6078 str r0, [r7, #4] - 8009b5c: 460b mov r3, r1 - 8009b5e: 70fb strb r3, [r7, #3] - return 0xFFU; -#else - UNUSED(pdev); - UNUSED(index); - - return 0x00U; - 8009b60: 2300 movs r3, #0 -#endif /* USE_USBD_COMPOSITE */ -} - 8009b62: 4618 mov r0, r3 - 8009b64: 370c adds r7, #12 - 8009b66: 46bd mov sp, r7 - 8009b68: f85d 7b04 ldr.w r7, [sp], #4 - 8009b6c: 4770 bx lr - -08009b6e : - * @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) -{ - 8009b6e: b480 push {r7} - 8009b70: b083 sub sp, #12 - 8009b72: af00 add r7, sp, #0 - 8009b74: 6078 str r0, [r7, #4] - 8009b76: 460b mov r3, r1 - 8009b78: 70fb strb r3, [r7, #3] - return 0xFFU; -#else - UNUSED(pdev); - UNUSED(index); - - return 0x00U; - 8009b7a: 2300 movs r3, #0 -#endif /* USE_USBD_COMPOSITE */ -} - 8009b7c: 4618 mov r0, r3 - 8009b7e: 370c adds r7, #12 - 8009b80: 46bd mov sp, r7 - 8009b82: f85d 7b04 ldr.w r7, [sp], #4 - 8009b86: 4770 bx lr - -08009b88 : - * @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) -{ - 8009b88: b580 push {r7, lr} - 8009b8a: b086 sub sp, #24 - 8009b8c: af00 add r7, sp, #0 - 8009b8e: 6078 str r0, [r7, #4] - 8009b90: 460b mov r3, r1 - 8009b92: 70fb strb r3, [r7, #3] - USBD_DescHeaderTypeDef *pdesc = (USBD_DescHeaderTypeDef *)(void *)pConfDesc; - 8009b94: 687b ldr r3, [r7, #4] - 8009b96: 617b str r3, [r7, #20] - USBD_ConfigDescTypeDef *desc = (USBD_ConfigDescTypeDef *)(void *)pConfDesc; - 8009b98: 687b ldr r3, [r7, #4] - 8009b9a: 60fb str r3, [r7, #12] - USBD_EpDescTypeDef *pEpDesc = NULL; - 8009b9c: 2300 movs r3, #0 - 8009b9e: 613b str r3, [r7, #16] - uint16_t ptr; - - if (desc->wTotalLength > desc->bLength) - 8009ba0: 68fb ldr r3, [r7, #12] - 8009ba2: 885b ldrh r3, [r3, #2] - 8009ba4: b29b uxth r3, r3 - 8009ba6: 68fa ldr r2, [r7, #12] - 8009ba8: 7812 ldrb r2, [r2, #0] - 8009baa: 4293 cmp r3, r2 - 8009bac: d91f bls.n 8009bee - { - ptr = desc->bLength; - 8009bae: 68fb ldr r3, [r7, #12] - 8009bb0: 781b ldrb r3, [r3, #0] - 8009bb2: 817b strh r3, [r7, #10] - - while (ptr < desc->wTotalLength) - 8009bb4: e013 b.n 8009bde - { - pdesc = USBD_GetNextDesc((uint8_t *)pdesc, &ptr); - 8009bb6: f107 030a add.w r3, r7, #10 - 8009bba: 4619 mov r1, r3 - 8009bbc: 6978 ldr r0, [r7, #20] - 8009bbe: f000 f81b bl 8009bf8 - 8009bc2: 6178 str r0, [r7, #20] - - if (pdesc->bDescriptorType == USB_DESC_TYPE_ENDPOINT) - 8009bc4: 697b ldr r3, [r7, #20] - 8009bc6: 785b ldrb r3, [r3, #1] - 8009bc8: 2b05 cmp r3, #5 - 8009bca: d108 bne.n 8009bde - { - pEpDesc = (USBD_EpDescTypeDef *)(void *)pdesc; - 8009bcc: 697b ldr r3, [r7, #20] - 8009bce: 613b str r3, [r7, #16] - - if (pEpDesc->bEndpointAddress == EpAddr) - 8009bd0: 693b ldr r3, [r7, #16] - 8009bd2: 789b ldrb r3, [r3, #2] - 8009bd4: 78fa ldrb r2, [r7, #3] - 8009bd6: 429a cmp r2, r3 - 8009bd8: d008 beq.n 8009bec - { - break; - } - else - { - pEpDesc = NULL; - 8009bda: 2300 movs r3, #0 - 8009bdc: 613b str r3, [r7, #16] - while (ptr < desc->wTotalLength) - 8009bde: 68fb ldr r3, [r7, #12] - 8009be0: 885b ldrh r3, [r3, #2] - 8009be2: b29a uxth r2, r3 - 8009be4: 897b ldrh r3, [r7, #10] - 8009be6: 429a cmp r2, r3 - 8009be8: d8e5 bhi.n 8009bb6 - 8009bea: e000 b.n 8009bee - break; - 8009bec: bf00 nop - } - } - } - } - - return (void *)pEpDesc; - 8009bee: 693b ldr r3, [r7, #16] -} - 8009bf0: 4618 mov r0, r3 - 8009bf2: 3718 adds r7, #24 - 8009bf4: 46bd mov sp, r7 - 8009bf6: bd80 pop {r7, pc} - -08009bf8 : - * @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) -{ - 8009bf8: b480 push {r7} - 8009bfa: b085 sub sp, #20 - 8009bfc: af00 add r7, sp, #0 - 8009bfe: 6078 str r0, [r7, #4] - 8009c00: 6039 str r1, [r7, #0] - USBD_DescHeaderTypeDef *pnext = (USBD_DescHeaderTypeDef *)(void *)pbuf; - 8009c02: 687b ldr r3, [r7, #4] - 8009c04: 60fb str r3, [r7, #12] - - *ptr += pnext->bLength; - 8009c06: 683b ldr r3, [r7, #0] - 8009c08: 881b ldrh r3, [r3, #0] - 8009c0a: 68fa ldr r2, [r7, #12] - 8009c0c: 7812 ldrb r2, [r2, #0] - 8009c0e: 4413 add r3, r2 - 8009c10: b29a uxth r2, r3 - 8009c12: 683b ldr r3, [r7, #0] - 8009c14: 801a strh r2, [r3, #0] - pnext = (USBD_DescHeaderTypeDef *)(void *)(pbuf + pnext->bLength); - 8009c16: 68fb ldr r3, [r7, #12] - 8009c18: 781b ldrb r3, [r3, #0] - 8009c1a: 461a mov r2, r3 - 8009c1c: 687b ldr r3, [r7, #4] - 8009c1e: 4413 add r3, r2 - 8009c20: 60fb str r3, [r7, #12] - - return (pnext); - 8009c22: 68fb ldr r3, [r7, #12] -} - 8009c24: 4618 mov r0, r3 - 8009c26: 3714 adds r7, #20 - 8009c28: 46bd mov sp, r7 - 8009c2a: f85d 7b04 ldr.w r7, [sp], #4 - 8009c2e: 4770 bx lr - -08009c30 : - -/** @defgroup USBD_DEF_Exported_Macros - * @{ - */ -__STATIC_INLINE uint16_t SWAPBYTE(uint8_t *addr) -{ - 8009c30: b480 push {r7} - 8009c32: b087 sub sp, #28 - 8009c34: af00 add r7, sp, #0 - 8009c36: 6078 str r0, [r7, #4] - uint16_t _SwapVal; - uint16_t _Byte1; - uint16_t _Byte2; - uint8_t *_pbuff = addr; - 8009c38: 687b ldr r3, [r7, #4] - 8009c3a: 617b str r3, [r7, #20] - - _Byte1 = *(uint8_t *)_pbuff; - 8009c3c: 697b ldr r3, [r7, #20] - 8009c3e: 781b ldrb r3, [r3, #0] - 8009c40: 827b strh r3, [r7, #18] - _pbuff++; - 8009c42: 697b ldr r3, [r7, #20] - 8009c44: 3301 adds r3, #1 - 8009c46: 617b str r3, [r7, #20] - _Byte2 = *(uint8_t *)_pbuff; - 8009c48: 697b ldr r3, [r7, #20] - 8009c4a: 781b ldrb r3, [r3, #0] - 8009c4c: 823b strh r3, [r7, #16] - - _SwapVal = (_Byte2 << 8) | _Byte1; - 8009c4e: f9b7 3010 ldrsh.w r3, [r7, #16] - 8009c52: 021b lsls r3, r3, #8 - 8009c54: b21a sxth r2, r3 - 8009c56: f9b7 3012 ldrsh.w r3, [r7, #18] - 8009c5a: 4313 orrs r3, r2 - 8009c5c: b21b sxth r3, r3 - 8009c5e: 81fb strh r3, [r7, #14] - - return _SwapVal; - 8009c60: 89fb ldrh r3, [r7, #14] -} - 8009c62: 4618 mov r0, r3 - 8009c64: 371c adds r7, #28 - 8009c66: 46bd mov sp, r7 - 8009c68: f85d 7b04 ldr.w r7, [sp], #4 - 8009c6c: 4770 bx lr +08009ae8 : + 8009ae8: b580 push {r7, lr} + 8009aea: b084 sub sp, #16 + 8009aec: af00 add r7, sp, #0 + 8009aee: 6078 str r0, [r7, #4] + 8009af0: 6039 str r1, [r7, #0] + 8009af2: 2300 movs r3, #0 + 8009af4: 73fb strb r3, [r7, #15] + 8009af6: 683b ldr r3, [r7, #0] + 8009af8: 889b ldrh r3, [r3, #4] + 8009afa: 73bb strb r3, [r7, #14] + 8009afc: 683b ldr r3, [r7, #0] + 8009afe: 781b ldrb r3, [r3, #0] + 8009b00: f003 0360 and.w r3, r3, #96 @ 0x60 + 8009b04: 2b40 cmp r3, #64 @ 0x40 + 8009b06: d007 beq.n 8009b18 + 8009b08: 2b40 cmp r3, #64 @ 0x40 + 8009b0a: f200 8181 bhi.w 8009e10 + 8009b0e: 2b00 cmp r3, #0 + 8009b10: d02a beq.n 8009b68 + 8009b12: 2b20 cmp r3, #32 + 8009b14: f040 817c bne.w 8009e10 + 8009b18: 7bbb ldrb r3, [r7, #14] + 8009b1a: 4619 mov r1, r3 + 8009b1c: 6878 ldr r0, [r7, #4] + 8009b1e: f7ff fe84 bl 800982a + 8009b22: 4603 mov r3, r0 + 8009b24: 737b strb r3, [r7, #13] + 8009b26: 7b7b ldrb r3, [r7, #13] + 8009b28: 2bff cmp r3, #255 @ 0xff + 8009b2a: f000 8176 beq.w 8009e1a + 8009b2e: 7b7b ldrb r3, [r7, #13] + 8009b30: 2b00 cmp r3, #0 + 8009b32: f040 8172 bne.w 8009e1a + 8009b36: 7b7a ldrb r2, [r7, #13] + 8009b38: 687b ldr r3, [r7, #4] + 8009b3a: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8009b3e: 7b7a ldrb r2, [r7, #13] + 8009b40: 687b ldr r3, [r7, #4] + 8009b42: 32ae adds r2, #174 @ 0xae + 8009b44: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009b48: 689b ldr r3, [r3, #8] + 8009b4a: 2b00 cmp r3, #0 + 8009b4c: f000 8165 beq.w 8009e1a + 8009b50: 7b7a ldrb r2, [r7, #13] + 8009b52: 687b ldr r3, [r7, #4] + 8009b54: 32ae adds r2, #174 @ 0xae + 8009b56: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009b5a: 689b ldr r3, [r3, #8] + 8009b5c: 6839 ldr r1, [r7, #0] + 8009b5e: 6878 ldr r0, [r7, #4] + 8009b60: 4798 blx r3 + 8009b62: 4603 mov r3, r0 + 8009b64: 73fb strb r3, [r7, #15] + 8009b66: e158 b.n 8009e1a + 8009b68: 683b ldr r3, [r7, #0] + 8009b6a: 785b ldrb r3, [r3, #1] + 8009b6c: 2b03 cmp r3, #3 + 8009b6e: d008 beq.n 8009b82 + 8009b70: 2b03 cmp r3, #3 + 8009b72: f300 8147 bgt.w 8009e04 + 8009b76: 2b00 cmp r3, #0 + 8009b78: f000 809b beq.w 8009cb2 + 8009b7c: 2b01 cmp r3, #1 + 8009b7e: d03c beq.n 8009bfa + 8009b80: e140 b.n 8009e04 + 8009b82: 687b ldr r3, [r7, #4] + 8009b84: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009b88: b2db uxtb r3, r3 + 8009b8a: 2b02 cmp r3, #2 + 8009b8c: d002 beq.n 8009b94 + 8009b8e: 2b03 cmp r3, #3 + 8009b90: d016 beq.n 8009bc0 + 8009b92: e02c b.n 8009bee + 8009b94: 7bbb ldrb r3, [r7, #14] + 8009b96: 2b00 cmp r3, #0 + 8009b98: d00d beq.n 8009bb6 + 8009b9a: 7bbb ldrb r3, [r7, #14] + 8009b9c: 2b80 cmp r3, #128 @ 0x80 + 8009b9e: d00a beq.n 8009bb6 + 8009ba0: 7bbb ldrb r3, [r7, #14] + 8009ba2: 4619 mov r1, r3 + 8009ba4: 6878 ldr r0, [r7, #4] + 8009ba6: f001 f8e3 bl 800ad70 + 8009baa: 2180 movs r1, #128 @ 0x80 + 8009bac: 6878 ldr r0, [r7, #4] + 8009bae: f001 f8df bl 800ad70 + 8009bb2: bf00 nop + 8009bb4: e020 b.n 8009bf8 + 8009bb6: 6839 ldr r1, [r7, #0] + 8009bb8: 6878 ldr r0, [r7, #4] + 8009bba: f000 fca6 bl 800a50a + 8009bbe: e01b b.n 8009bf8 + 8009bc0: 683b ldr r3, [r7, #0] + 8009bc2: 885b ldrh r3, [r3, #2] + 8009bc4: 2b00 cmp r3, #0 + 8009bc6: d10e bne.n 8009be6 + 8009bc8: 7bbb ldrb r3, [r7, #14] + 8009bca: 2b00 cmp r3, #0 + 8009bcc: d00b beq.n 8009be6 + 8009bce: 7bbb ldrb r3, [r7, #14] + 8009bd0: 2b80 cmp r3, #128 @ 0x80 + 8009bd2: d008 beq.n 8009be6 + 8009bd4: 683b ldr r3, [r7, #0] + 8009bd6: 88db ldrh r3, [r3, #6] + 8009bd8: 2b00 cmp r3, #0 + 8009bda: d104 bne.n 8009be6 + 8009bdc: 7bbb ldrb r3, [r7, #14] + 8009bde: 4619 mov r1, r3 + 8009be0: 6878 ldr r0, [r7, #4] + 8009be2: f001 f8c5 bl 800ad70 + 8009be6: 6878 ldr r0, [r7, #4] + 8009be8: f000 fd4c bl 800a684 + 8009bec: e004 b.n 8009bf8 + 8009bee: 6839 ldr r1, [r7, #0] + 8009bf0: 6878 ldr r0, [r7, #4] + 8009bf2: f000 fc8a bl 800a50a + 8009bf6: bf00 nop + 8009bf8: e109 b.n 8009e0e + 8009bfa: 687b ldr r3, [r7, #4] + 8009bfc: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009c00: b2db uxtb r3, r3 + 8009c02: 2b02 cmp r3, #2 + 8009c04: d002 beq.n 8009c0c + 8009c06: 2b03 cmp r3, #3 + 8009c08: d016 beq.n 8009c38 + 8009c0a: e04b b.n 8009ca4 + 8009c0c: 7bbb ldrb r3, [r7, #14] + 8009c0e: 2b00 cmp r3, #0 + 8009c10: d00d beq.n 8009c2e + 8009c12: 7bbb ldrb r3, [r7, #14] + 8009c14: 2b80 cmp r3, #128 @ 0x80 + 8009c16: d00a beq.n 8009c2e + 8009c18: 7bbb ldrb r3, [r7, #14] + 8009c1a: 4619 mov r1, r3 + 8009c1c: 6878 ldr r0, [r7, #4] + 8009c1e: f001 f8a7 bl 800ad70 + 8009c22: 2180 movs r1, #128 @ 0x80 + 8009c24: 6878 ldr r0, [r7, #4] + 8009c26: f001 f8a3 bl 800ad70 + 8009c2a: bf00 nop + 8009c2c: e040 b.n 8009cb0 + 8009c2e: 6839 ldr r1, [r7, #0] + 8009c30: 6878 ldr r0, [r7, #4] + 8009c32: f000 fc6a bl 800a50a + 8009c36: e03b b.n 8009cb0 + 8009c38: 683b ldr r3, [r7, #0] + 8009c3a: 885b ldrh r3, [r3, #2] + 8009c3c: 2b00 cmp r3, #0 + 8009c3e: d136 bne.n 8009cae + 8009c40: 7bbb ldrb r3, [r7, #14] + 8009c42: f003 037f and.w r3, r3, #127 @ 0x7f + 8009c46: 2b00 cmp r3, #0 + 8009c48: d004 beq.n 8009c54 + 8009c4a: 7bbb ldrb r3, [r7, #14] + 8009c4c: 4619 mov r1, r3 + 8009c4e: 6878 ldr r0, [r7, #4] + 8009c50: f001 f8ad bl 800adae + 8009c54: 6878 ldr r0, [r7, #4] + 8009c56: f000 fd15 bl 800a684 + 8009c5a: 7bbb ldrb r3, [r7, #14] + 8009c5c: 4619 mov r1, r3 + 8009c5e: 6878 ldr r0, [r7, #4] + 8009c60: f7ff fde3 bl 800982a + 8009c64: 4603 mov r3, r0 + 8009c66: 737b strb r3, [r7, #13] + 8009c68: 7b7b ldrb r3, [r7, #13] + 8009c6a: 2bff cmp r3, #255 @ 0xff + 8009c6c: d01f beq.n 8009cae + 8009c6e: 7b7b ldrb r3, [r7, #13] + 8009c70: 2b00 cmp r3, #0 + 8009c72: d11c bne.n 8009cae + 8009c74: 7b7a ldrb r2, [r7, #13] + 8009c76: 687b ldr r3, [r7, #4] + 8009c78: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8009c7c: 7b7a ldrb r2, [r7, #13] + 8009c7e: 687b ldr r3, [r7, #4] + 8009c80: 32ae adds r2, #174 @ 0xae + 8009c82: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009c86: 689b ldr r3, [r3, #8] + 8009c88: 2b00 cmp r3, #0 + 8009c8a: d010 beq.n 8009cae + 8009c8c: 7b7a ldrb r2, [r7, #13] + 8009c8e: 687b ldr r3, [r7, #4] + 8009c90: 32ae adds r2, #174 @ 0xae + 8009c92: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009c96: 689b ldr r3, [r3, #8] + 8009c98: 6839 ldr r1, [r7, #0] + 8009c9a: 6878 ldr r0, [r7, #4] + 8009c9c: 4798 blx r3 + 8009c9e: 4603 mov r3, r0 + 8009ca0: 73fb strb r3, [r7, #15] + 8009ca2: e004 b.n 8009cae + 8009ca4: 6839 ldr r1, [r7, #0] + 8009ca6: 6878 ldr r0, [r7, #4] + 8009ca8: f000 fc2f bl 800a50a + 8009cac: e000 b.n 8009cb0 + 8009cae: bf00 nop + 8009cb0: e0ad b.n 8009e0e + 8009cb2: 687b ldr r3, [r7, #4] + 8009cb4: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009cb8: b2db uxtb r3, r3 + 8009cba: 2b02 cmp r3, #2 + 8009cbc: d002 beq.n 8009cc4 + 8009cbe: 2b03 cmp r3, #3 + 8009cc0: d033 beq.n 8009d2a + 8009cc2: e099 b.n 8009df8 + 8009cc4: 7bbb ldrb r3, [r7, #14] + 8009cc6: 2b00 cmp r3, #0 + 8009cc8: d007 beq.n 8009cda + 8009cca: 7bbb ldrb r3, [r7, #14] + 8009ccc: 2b80 cmp r3, #128 @ 0x80 + 8009cce: d004 beq.n 8009cda + 8009cd0: 6839 ldr r1, [r7, #0] + 8009cd2: 6878 ldr r0, [r7, #4] + 8009cd4: f000 fc19 bl 800a50a + 8009cd8: e093 b.n 8009e02 + 8009cda: f997 300e ldrsb.w r3, [r7, #14] + 8009cde: 2b00 cmp r3, #0 + 8009ce0: da0b bge.n 8009cfa + 8009ce2: 7bbb ldrb r3, [r7, #14] + 8009ce4: f003 027f and.w r2, r3, #127 @ 0x7f + 8009ce8: 4613 mov r3, r2 + 8009cea: 009b lsls r3, r3, #2 + 8009cec: 4413 add r3, r2 + 8009cee: 009b lsls r3, r3, #2 + 8009cf0: 3310 adds r3, #16 + 8009cf2: 687a ldr r2, [r7, #4] + 8009cf4: 4413 add r3, r2 + 8009cf6: 3304 adds r3, #4 + 8009cf8: e00b b.n 8009d12 + 8009cfa: 7bbb ldrb r3, [r7, #14] + 8009cfc: f003 027f and.w r2, r3, #127 @ 0x7f + 8009d00: 4613 mov r3, r2 + 8009d02: 009b lsls r3, r3, #2 + 8009d04: 4413 add r3, r2 + 8009d06: 009b lsls r3, r3, #2 + 8009d08: f503 73a8 add.w r3, r3, #336 @ 0x150 + 8009d0c: 687a ldr r2, [r7, #4] + 8009d0e: 4413 add r3, r2 + 8009d10: 3304 adds r3, #4 + 8009d12: 60bb str r3, [r7, #8] + 8009d14: 68bb ldr r3, [r7, #8] + 8009d16: 2200 movs r2, #0 + 8009d18: 739a strb r2, [r3, #14] + 8009d1a: 68bb ldr r3, [r7, #8] + 8009d1c: 330e adds r3, #14 + 8009d1e: 2202 movs r2, #2 + 8009d20: 4619 mov r1, r3 + 8009d22: 6878 ldr r0, [r7, #4] + 8009d24: f000 fc6e bl 800a604 + 8009d28: e06b b.n 8009e02 + 8009d2a: f997 300e ldrsb.w r3, [r7, #14] + 8009d2e: 2b00 cmp r3, #0 + 8009d30: da11 bge.n 8009d56 + 8009d32: 7bbb ldrb r3, [r7, #14] + 8009d34: f003 020f and.w r2, r3, #15 + 8009d38: 6879 ldr r1, [r7, #4] + 8009d3a: 4613 mov r3, r2 + 8009d3c: 009b lsls r3, r3, #2 + 8009d3e: 4413 add r3, r2 + 8009d40: 009b lsls r3, r3, #2 + 8009d42: 440b add r3, r1 + 8009d44: 3323 adds r3, #35 @ 0x23 + 8009d46: 781b ldrb r3, [r3, #0] + 8009d48: 2b00 cmp r3, #0 + 8009d4a: d117 bne.n 8009d7c + 8009d4c: 6839 ldr r1, [r7, #0] + 8009d4e: 6878 ldr r0, [r7, #4] + 8009d50: f000 fbdb bl 800a50a + 8009d54: e055 b.n 8009e02 + 8009d56: 7bbb ldrb r3, [r7, #14] + 8009d58: f003 020f and.w r2, r3, #15 + 8009d5c: 6879 ldr r1, [r7, #4] + 8009d5e: 4613 mov r3, r2 + 8009d60: 009b lsls r3, r3, #2 + 8009d62: 4413 add r3, r2 + 8009d64: 009b lsls r3, r3, #2 + 8009d66: 440b add r3, r1 + 8009d68: f203 1363 addw r3, r3, #355 @ 0x163 + 8009d6c: 781b ldrb r3, [r3, #0] + 8009d6e: 2b00 cmp r3, #0 + 8009d70: d104 bne.n 8009d7c + 8009d72: 6839 ldr r1, [r7, #0] + 8009d74: 6878 ldr r0, [r7, #4] + 8009d76: f000 fbc8 bl 800a50a + 8009d7a: e042 b.n 8009e02 + 8009d7c: f997 300e ldrsb.w r3, [r7, #14] + 8009d80: 2b00 cmp r3, #0 + 8009d82: da0b bge.n 8009d9c + 8009d84: 7bbb ldrb r3, [r7, #14] + 8009d86: f003 027f and.w r2, r3, #127 @ 0x7f + 8009d8a: 4613 mov r3, r2 + 8009d8c: 009b lsls r3, r3, #2 + 8009d8e: 4413 add r3, r2 + 8009d90: 009b lsls r3, r3, #2 + 8009d92: 3310 adds r3, #16 + 8009d94: 687a ldr r2, [r7, #4] + 8009d96: 4413 add r3, r2 + 8009d98: 3304 adds r3, #4 + 8009d9a: e00b b.n 8009db4 + 8009d9c: 7bbb ldrb r3, [r7, #14] + 8009d9e: f003 027f and.w r2, r3, #127 @ 0x7f + 8009da2: 4613 mov r3, r2 + 8009da4: 009b lsls r3, r3, #2 + 8009da6: 4413 add r3, r2 + 8009da8: 009b lsls r3, r3, #2 + 8009daa: f503 73a8 add.w r3, r3, #336 @ 0x150 + 8009dae: 687a ldr r2, [r7, #4] + 8009db0: 4413 add r3, r2 + 8009db2: 3304 adds r3, #4 + 8009db4: 60bb str r3, [r7, #8] + 8009db6: 7bbb ldrb r3, [r7, #14] + 8009db8: 2b00 cmp r3, #0 + 8009dba: d002 beq.n 8009dc2 + 8009dbc: 7bbb ldrb r3, [r7, #14] + 8009dbe: 2b80 cmp r3, #128 @ 0x80 + 8009dc0: d103 bne.n 8009dca + 8009dc2: 68bb ldr r3, [r7, #8] + 8009dc4: 2200 movs r2, #0 + 8009dc6: 739a strb r2, [r3, #14] + 8009dc8: e00e b.n 8009de8 + 8009dca: 7bbb ldrb r3, [r7, #14] + 8009dcc: 4619 mov r1, r3 + 8009dce: 6878 ldr r0, [r7, #4] + 8009dd0: f001 f80c bl 800adec + 8009dd4: 4603 mov r3, r0 + 8009dd6: 2b00 cmp r3, #0 + 8009dd8: d003 beq.n 8009de2 + 8009dda: 68bb ldr r3, [r7, #8] + 8009ddc: 2201 movs r2, #1 + 8009dde: 739a strb r2, [r3, #14] + 8009de0: e002 b.n 8009de8 + 8009de2: 68bb ldr r3, [r7, #8] + 8009de4: 2200 movs r2, #0 + 8009de6: 739a strb r2, [r3, #14] + 8009de8: 68bb ldr r3, [r7, #8] + 8009dea: 330e adds r3, #14 + 8009dec: 2202 movs r2, #2 + 8009dee: 4619 mov r1, r3 + 8009df0: 6878 ldr r0, [r7, #4] + 8009df2: f000 fc07 bl 800a604 + 8009df6: e004 b.n 8009e02 + 8009df8: 6839 ldr r1, [r7, #0] + 8009dfa: 6878 ldr r0, [r7, #4] + 8009dfc: f000 fb85 bl 800a50a + 8009e00: bf00 nop + 8009e02: e004 b.n 8009e0e + 8009e04: 6839 ldr r1, [r7, #0] + 8009e06: 6878 ldr r0, [r7, #4] + 8009e08: f000 fb7f bl 800a50a + 8009e0c: bf00 nop + 8009e0e: e005 b.n 8009e1c + 8009e10: 6839 ldr r1, [r7, #0] + 8009e12: 6878 ldr r0, [r7, #4] + 8009e14: f000 fb79 bl 800a50a + 8009e18: e000 b.n 8009e1c + 8009e1a: bf00 nop + 8009e1c: 7bfb ldrb r3, [r7, #15] + 8009e1e: 4618 mov r0, r3 + 8009e20: 3710 adds r7, #16 + 8009e22: 46bd mov sp, r7 + 8009e24: bd80 pop {r7, pc} ... -08009c70 : - * @param pdev: device instance - * @param req: usb request - * @retval status - */ -USBD_StatusTypeDef USBD_StdDevReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) -{ - 8009c70: b580 push {r7, lr} - 8009c72: b084 sub sp, #16 - 8009c74: af00 add r7, sp, #0 - 8009c76: 6078 str r0, [r7, #4] - 8009c78: 6039 str r1, [r7, #0] - USBD_StatusTypeDef ret = USBD_OK; - 8009c7a: 2300 movs r3, #0 - 8009c7c: 73fb strb r3, [r7, #15] - - switch (req->bmRequest & USB_REQ_TYPE_MASK) - 8009c7e: 683b ldr r3, [r7, #0] - 8009c80: 781b ldrb r3, [r3, #0] - 8009c82: f003 0360 and.w r3, r3, #96 @ 0x60 - 8009c86: 2b40 cmp r3, #64 @ 0x40 - 8009c88: d005 beq.n 8009c96 - 8009c8a: 2b40 cmp r3, #64 @ 0x40 - 8009c8c: d857 bhi.n 8009d3e - 8009c8e: 2b00 cmp r3, #0 - 8009c90: d00f beq.n 8009cb2 - 8009c92: 2b20 cmp r3, #32 - 8009c94: d153 bne.n 8009d3e - { - case USB_REQ_TYPE_CLASS: - case USB_REQ_TYPE_VENDOR: - ret = (USBD_StatusTypeDef)pdev->pClass[pdev->classId]->Setup(pdev, req); - 8009c96: 687b ldr r3, [r7, #4] - 8009c98: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009c9c: 687b ldr r3, [r7, #4] - 8009c9e: 32ae adds r2, #174 @ 0xae - 8009ca0: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009ca4: 689b ldr r3, [r3, #8] - 8009ca6: 6839 ldr r1, [r7, #0] - 8009ca8: 6878 ldr r0, [r7, #4] - 8009caa: 4798 blx r3 - 8009cac: 4603 mov r3, r0 - 8009cae: 73fb strb r3, [r7, #15] - break; - 8009cb0: e04a b.n 8009d48 - - case USB_REQ_TYPE_STANDARD: - switch (req->bRequest) - 8009cb2: 683b ldr r3, [r7, #0] - 8009cb4: 785b ldrb r3, [r3, #1] - 8009cb6: 2b09 cmp r3, #9 - 8009cb8: d83b bhi.n 8009d32 - 8009cba: a201 add r2, pc, #4 @ (adr r2, 8009cc0 ) - 8009cbc: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8009cc0: 08009d15 .word 0x08009d15 - 8009cc4: 08009d29 .word 0x08009d29 - 8009cc8: 08009d33 .word 0x08009d33 - 8009ccc: 08009d1f .word 0x08009d1f - 8009cd0: 08009d33 .word 0x08009d33 - 8009cd4: 08009cf3 .word 0x08009cf3 - 8009cd8: 08009ce9 .word 0x08009ce9 - 8009cdc: 08009d33 .word 0x08009d33 - 8009ce0: 08009d0b .word 0x08009d0b - 8009ce4: 08009cfd .word 0x08009cfd - { - case USB_REQ_GET_DESCRIPTOR: - USBD_GetDescriptor(pdev, req); - 8009ce8: 6839 ldr r1, [r7, #0] - 8009cea: 6878 ldr r0, [r7, #4] - 8009cec: f000 fa3e bl 800a16c - break; - 8009cf0: e024 b.n 8009d3c - - case USB_REQ_SET_ADDRESS: - USBD_SetAddress(pdev, req); - 8009cf2: 6839 ldr r1, [r7, #0] - 8009cf4: 6878 ldr r0, [r7, #4] - 8009cf6: f000 fbcd bl 800a494 - break; - 8009cfa: e01f b.n 8009d3c - - case USB_REQ_SET_CONFIGURATION: - ret = USBD_SetConfig(pdev, req); - 8009cfc: 6839 ldr r1, [r7, #0] - 8009cfe: 6878 ldr r0, [r7, #4] - 8009d00: f000 fc0c bl 800a51c - 8009d04: 4603 mov r3, r0 - 8009d06: 73fb strb r3, [r7, #15] - break; - 8009d08: e018 b.n 8009d3c - - case USB_REQ_GET_CONFIGURATION: - USBD_GetConfig(pdev, req); - 8009d0a: 6839 ldr r1, [r7, #0] - 8009d0c: 6878 ldr r0, [r7, #4] - 8009d0e: f000 fcaf bl 800a670 - break; - 8009d12: e013 b.n 8009d3c - - case USB_REQ_GET_STATUS: - USBD_GetStatus(pdev, req); - 8009d14: 6839 ldr r1, [r7, #0] - 8009d16: 6878 ldr r0, [r7, #4] - 8009d18: f000 fce0 bl 800a6dc - break; - 8009d1c: e00e b.n 8009d3c - - case USB_REQ_SET_FEATURE: - USBD_SetFeature(pdev, req); - 8009d1e: 6839 ldr r1, [r7, #0] - 8009d20: 6878 ldr r0, [r7, #4] - 8009d22: f000 fd0f bl 800a744 - break; - 8009d26: e009 b.n 8009d3c - - case USB_REQ_CLEAR_FEATURE: - USBD_ClrFeature(pdev, req); - 8009d28: 6839 ldr r1, [r7, #0] - 8009d2a: 6878 ldr r0, [r7, #4] - 8009d2c: f000 fd33 bl 800a796 - break; - 8009d30: e004 b.n 8009d3c - - default: - USBD_CtlError(pdev, req); - 8009d32: 6839 ldr r1, [r7, #0] - 8009d34: 6878 ldr r0, [r7, #4] - 8009d36: f000 fd8a bl 800a84e - break; - 8009d3a: bf00 nop - } - break; - 8009d3c: e004 b.n 8009d48 - - default: - USBD_CtlError(pdev, req); - 8009d3e: 6839 ldr r1, [r7, #0] - 8009d40: 6878 ldr r0, [r7, #4] - 8009d42: f000 fd84 bl 800a84e - break; - 8009d46: bf00 nop - } - - return ret; - 8009d48: 7bfb ldrb r3, [r7, #15] -} - 8009d4a: 4618 mov r0, r3 - 8009d4c: 3710 adds r7, #16 - 8009d4e: 46bd mov sp, r7 - 8009d50: bd80 pop {r7, pc} - 8009d52: bf00 nop - -08009d54 : - * @param pdev: device instance - * @param req: usb request - * @retval status - */ -USBD_StatusTypeDef USBD_StdItfReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) -{ - 8009d54: b580 push {r7, lr} - 8009d56: b084 sub sp, #16 - 8009d58: af00 add r7, sp, #0 - 8009d5a: 6078 str r0, [r7, #4] - 8009d5c: 6039 str r1, [r7, #0] - USBD_StatusTypeDef ret = USBD_OK; - 8009d5e: 2300 movs r3, #0 - 8009d60: 73fb strb r3, [r7, #15] - uint8_t idx; - - switch (req->bmRequest & USB_REQ_TYPE_MASK) - 8009d62: 683b ldr r3, [r7, #0] - 8009d64: 781b ldrb r3, [r3, #0] - 8009d66: f003 0360 and.w r3, r3, #96 @ 0x60 - 8009d6a: 2b40 cmp r3, #64 @ 0x40 - 8009d6c: d005 beq.n 8009d7a - 8009d6e: 2b40 cmp r3, #64 @ 0x40 - 8009d70: d852 bhi.n 8009e18 - 8009d72: 2b00 cmp r3, #0 - 8009d74: d001 beq.n 8009d7a - 8009d76: 2b20 cmp r3, #32 - 8009d78: d14e bne.n 8009e18 - { - case USB_REQ_TYPE_CLASS: - case USB_REQ_TYPE_VENDOR: - case USB_REQ_TYPE_STANDARD: - switch (pdev->dev_state) - 8009d7a: 687b ldr r3, [r7, #4] - 8009d7c: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009d80: b2db uxtb r3, r3 - 8009d82: 3b01 subs r3, #1 - 8009d84: 2b02 cmp r3, #2 - 8009d86: d840 bhi.n 8009e0a - { - case USBD_STATE_DEFAULT: - case USBD_STATE_ADDRESSED: - case USBD_STATE_CONFIGURED: - - if (LOBYTE(req->wIndex) <= USBD_MAX_NUM_INTERFACES) - 8009d88: 683b ldr r3, [r7, #0] - 8009d8a: 889b ldrh r3, [r3, #4] - 8009d8c: b2db uxtb r3, r3 - 8009d8e: 2b01 cmp r3, #1 - 8009d90: d836 bhi.n 8009e00 - { - /* Get the class index relative to this interface */ - idx = USBD_CoreFindIF(pdev, LOBYTE(req->wIndex)); - 8009d92: 683b ldr r3, [r7, #0] - 8009d94: 889b ldrh r3, [r3, #4] - 8009d96: b2db uxtb r3, r3 - 8009d98: 4619 mov r1, r3 - 8009d9a: 6878 ldr r0, [r7, #4] - 8009d9c: f7ff feda bl 8009b54 - 8009da0: 4603 mov r3, r0 - 8009da2: 73bb strb r3, [r7, #14] - if (((uint8_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 8009da4: 7bbb ldrb r3, [r7, #14] - 8009da6: 2bff cmp r3, #255 @ 0xff - 8009da8: d01d beq.n 8009de6 - 8009daa: 7bbb ldrb r3, [r7, #14] - 8009dac: 2b00 cmp r3, #0 - 8009dae: d11a bne.n 8009de6 - { - /* Call the class data out function to manage the request */ - if (pdev->pClass[idx]->Setup != NULL) - 8009db0: 7bba ldrb r2, [r7, #14] - 8009db2: 687b ldr r3, [r7, #4] - 8009db4: 32ae adds r2, #174 @ 0xae - 8009db6: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009dba: 689b ldr r3, [r3, #8] - 8009dbc: 2b00 cmp r3, #0 - 8009dbe: d00f beq.n 8009de0 - { - pdev->classId = idx; - 8009dc0: 7bba ldrb r2, [r7, #14] - 8009dc2: 687b ldr r3, [r7, #4] - 8009dc4: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 - ret = (USBD_StatusTypeDef)(pdev->pClass[idx]->Setup(pdev, req)); - 8009dc8: 7bba ldrb r2, [r7, #14] - 8009dca: 687b ldr r3, [r7, #4] - 8009dcc: 32ae adds r2, #174 @ 0xae - 8009dce: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009dd2: 689b ldr r3, [r3, #8] - 8009dd4: 6839 ldr r1, [r7, #0] - 8009dd6: 6878 ldr r0, [r7, #4] - 8009dd8: 4798 blx r3 - 8009dda: 4603 mov r3, r0 - 8009ddc: 73fb strb r3, [r7, #15] - if (pdev->pClass[idx]->Setup != NULL) - 8009dde: e004 b.n 8009dea - } - else - { - /* should never reach this condition */ - ret = USBD_FAIL; - 8009de0: 2303 movs r3, #3 - 8009de2: 73fb strb r3, [r7, #15] - if (pdev->pClass[idx]->Setup != NULL) - 8009de4: e001 b.n 8009dea - } - } - else - { - /* No relative interface found */ - ret = USBD_FAIL; - 8009de6: 2303 movs r3, #3 - 8009de8: 73fb strb r3, [r7, #15] - } - - if ((req->wLength == 0U) && (ret == USBD_OK)) - 8009dea: 683b ldr r3, [r7, #0] - 8009dec: 88db ldrh r3, [r3, #6] - 8009dee: 2b00 cmp r3, #0 - 8009df0: d110 bne.n 8009e14 - 8009df2: 7bfb ldrb r3, [r7, #15] - 8009df4: 2b00 cmp r3, #0 - 8009df6: d10d bne.n 8009e14 - { - (void)USBD_CtlSendStatus(pdev); - 8009df8: 6878 ldr r0, [r7, #4] - 8009dfa: f000 fde5 bl 800a9c8 - } - else - { - USBD_CtlError(pdev, req); - } - break; - 8009dfe: e009 b.n 8009e14 - USBD_CtlError(pdev, req); - 8009e00: 6839 ldr r1, [r7, #0] - 8009e02: 6878 ldr r0, [r7, #4] - 8009e04: f000 fd23 bl 800a84e - break; - 8009e08: e004 b.n 8009e14 - - default: - USBD_CtlError(pdev, req); - 8009e0a: 6839 ldr r1, [r7, #0] - 8009e0c: 6878 ldr r0, [r7, #4] - 8009e0e: f000 fd1e bl 800a84e - break; - 8009e12: e000 b.n 8009e16 - break; - 8009e14: bf00 nop - } - break; - 8009e16: e004 b.n 8009e22 - - default: - USBD_CtlError(pdev, req); - 8009e18: 6839 ldr r1, [r7, #0] - 8009e1a: 6878 ldr r0, [r7, #4] - 8009e1c: f000 fd17 bl 800a84e - break; - 8009e20: bf00 nop - } - - return ret; - 8009e22: 7bfb ldrb r3, [r7, #15] -} - 8009e24: 4618 mov r0, r3 - 8009e26: 3710 adds r7, #16 - 8009e28: 46bd mov sp, r7 - 8009e2a: bd80 pop {r7, pc} - -08009e2c : - * @param pdev: device instance - * @param req: usb request - * @retval status - */ -USBD_StatusTypeDef USBD_StdEPReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) -{ - 8009e2c: b580 push {r7, lr} - 8009e2e: b084 sub sp, #16 - 8009e30: af00 add r7, sp, #0 - 8009e32: 6078 str r0, [r7, #4] - 8009e34: 6039 str r1, [r7, #0] - USBD_EndpointTypeDef *pep; - uint8_t ep_addr; - uint8_t idx; - USBD_StatusTypeDef ret = USBD_OK; +08009e28 : + 8009e28: b580 push {r7, lr} + 8009e2a: b084 sub sp, #16 + 8009e2c: af00 add r7, sp, #0 + 8009e2e: 6078 str r0, [r7, #4] + 8009e30: 6039 str r1, [r7, #0] + 8009e32: 2300 movs r3, #0 + 8009e34: 813b strh r3, [r7, #8] 8009e36: 2300 movs r3, #0 - 8009e38: 73fb strb r3, [r7, #15] - - ep_addr = LOBYTE(req->wIndex); - 8009e3a: 683b ldr r3, [r7, #0] - 8009e3c: 889b ldrh r3, [r3, #4] - 8009e3e: 73bb strb r3, [r7, #14] - - switch (req->bmRequest & USB_REQ_TYPE_MASK) - 8009e40: 683b ldr r3, [r7, #0] - 8009e42: 781b ldrb r3, [r3, #0] - 8009e44: f003 0360 and.w r3, r3, #96 @ 0x60 - 8009e48: 2b40 cmp r3, #64 @ 0x40 - 8009e4a: d007 beq.n 8009e5c - 8009e4c: 2b40 cmp r3, #64 @ 0x40 - 8009e4e: f200 8181 bhi.w 800a154 - 8009e52: 2b00 cmp r3, #0 - 8009e54: d02a beq.n 8009eac - 8009e56: 2b20 cmp r3, #32 - 8009e58: f040 817c bne.w 800a154 - { - case USB_REQ_TYPE_CLASS: - case USB_REQ_TYPE_VENDOR: - /* Get the class index relative to this endpoint */ - idx = USBD_CoreFindEP(pdev, ep_addr); - 8009e5c: 7bbb ldrb r3, [r7, #14] - 8009e5e: 4619 mov r1, r3 - 8009e60: 6878 ldr r0, [r7, #4] - 8009e62: f7ff fe84 bl 8009b6e - 8009e66: 4603 mov r3, r0 - 8009e68: 737b strb r3, [r7, #13] - if (((uint8_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 8009e6a: 7b7b ldrb r3, [r7, #13] - 8009e6c: 2bff cmp r3, #255 @ 0xff - 8009e6e: f000 8176 beq.w 800a15e - 8009e72: 7b7b ldrb r3, [r7, #13] - 8009e74: 2b00 cmp r3, #0 - 8009e76: f040 8172 bne.w 800a15e - { - pdev->classId = idx; - 8009e7a: 7b7a ldrb r2, [r7, #13] - 8009e7c: 687b ldr r3, [r7, #4] - 8009e7e: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 - /* Call the class data out function to manage the request */ - if (pdev->pClass[idx]->Setup != NULL) - 8009e82: 7b7a ldrb r2, [r7, #13] - 8009e84: 687b ldr r3, [r7, #4] - 8009e86: 32ae adds r2, #174 @ 0xae - 8009e88: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009e8c: 689b ldr r3, [r3, #8] - 8009e8e: 2b00 cmp r3, #0 - 8009e90: f000 8165 beq.w 800a15e - { - ret = (USBD_StatusTypeDef)pdev->pClass[idx]->Setup(pdev, req); - 8009e94: 7b7a ldrb r2, [r7, #13] - 8009e96: 687b ldr r3, [r7, #4] - 8009e98: 32ae adds r2, #174 @ 0xae - 8009e9a: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009e9e: 689b ldr r3, [r3, #8] - 8009ea0: 6839 ldr r1, [r7, #0] - 8009ea2: 6878 ldr r0, [r7, #4] - 8009ea4: 4798 blx r3 - 8009ea6: 4603 mov r3, r0 - 8009ea8: 73fb strb r3, [r7, #15] - } - } - break; - 8009eaa: e158 b.n 800a15e - - case USB_REQ_TYPE_STANDARD: - switch (req->bRequest) - 8009eac: 683b ldr r3, [r7, #0] - 8009eae: 785b ldrb r3, [r3, #1] - 8009eb0: 2b03 cmp r3, #3 - 8009eb2: d008 beq.n 8009ec6 - 8009eb4: 2b03 cmp r3, #3 - 8009eb6: f300 8147 bgt.w 800a148 - 8009eba: 2b00 cmp r3, #0 - 8009ebc: f000 809b beq.w 8009ff6 - 8009ec0: 2b01 cmp r3, #1 - 8009ec2: d03c beq.n 8009f3e - 8009ec4: e140 b.n 800a148 - { - case USB_REQ_SET_FEATURE: - switch (pdev->dev_state) - 8009ec6: 687b ldr r3, [r7, #4] - 8009ec8: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009ecc: b2db uxtb r3, r3 - 8009ece: 2b02 cmp r3, #2 - 8009ed0: d002 beq.n 8009ed8 - 8009ed2: 2b03 cmp r3, #3 - 8009ed4: d016 beq.n 8009f04 - 8009ed6: e02c b.n 8009f32 - { - case USBD_STATE_ADDRESSED: - if ((ep_addr != 0x00U) && (ep_addr != 0x80U)) - 8009ed8: 7bbb ldrb r3, [r7, #14] - 8009eda: 2b00 cmp r3, #0 - 8009edc: d00d beq.n 8009efa - 8009ede: 7bbb ldrb r3, [r7, #14] - 8009ee0: 2b80 cmp r3, #128 @ 0x80 - 8009ee2: d00a beq.n 8009efa - { - (void)USBD_LL_StallEP(pdev, ep_addr); - 8009ee4: 7bbb ldrb r3, [r7, #14] - 8009ee6: 4619 mov r1, r3 - 8009ee8: 6878 ldr r0, [r7, #4] - 8009eea: f001 f8e3 bl 800b0b4 - (void)USBD_LL_StallEP(pdev, 0x80U); - 8009eee: 2180 movs r1, #128 @ 0x80 - 8009ef0: 6878 ldr r0, [r7, #4] - 8009ef2: f001 f8df bl 800b0b4 - 8009ef6: bf00 nop - } - else - { - USBD_CtlError(pdev, req); - } - break; - 8009ef8: e020 b.n 8009f3c - USBD_CtlError(pdev, req); - 8009efa: 6839 ldr r1, [r7, #0] - 8009efc: 6878 ldr r0, [r7, #4] - 8009efe: f000 fca6 bl 800a84e - break; - 8009f02: e01b b.n 8009f3c - - case USBD_STATE_CONFIGURED: - if (req->wValue == USB_FEATURE_EP_HALT) - 8009f04: 683b ldr r3, [r7, #0] - 8009f06: 885b ldrh r3, [r3, #2] - 8009f08: 2b00 cmp r3, #0 - 8009f0a: d10e bne.n 8009f2a - { - if ((ep_addr != 0x00U) && (ep_addr != 0x80U) && (req->wLength == 0x00U)) - 8009f0c: 7bbb ldrb r3, [r7, #14] - 8009f0e: 2b00 cmp r3, #0 - 8009f10: d00b beq.n 8009f2a - 8009f12: 7bbb ldrb r3, [r7, #14] - 8009f14: 2b80 cmp r3, #128 @ 0x80 - 8009f16: d008 beq.n 8009f2a - 8009f18: 683b ldr r3, [r7, #0] - 8009f1a: 88db ldrh r3, [r3, #6] - 8009f1c: 2b00 cmp r3, #0 - 8009f1e: d104 bne.n 8009f2a - { - (void)USBD_LL_StallEP(pdev, ep_addr); - 8009f20: 7bbb ldrb r3, [r7, #14] - 8009f22: 4619 mov r1, r3 - 8009f24: 6878 ldr r0, [r7, #4] - 8009f26: f001 f8c5 bl 800b0b4 - } - } - (void)USBD_CtlSendStatus(pdev); - 8009f2a: 6878 ldr r0, [r7, #4] - 8009f2c: f000 fd4c bl 800a9c8 - - break; - 8009f30: e004 b.n 8009f3c - - default: - USBD_CtlError(pdev, req); - 8009f32: 6839 ldr r1, [r7, #0] - 8009f34: 6878 ldr r0, [r7, #4] - 8009f36: f000 fc8a bl 800a84e - break; - 8009f3a: bf00 nop - } - break; - 8009f3c: e109 b.n 800a152 - - case USB_REQ_CLEAR_FEATURE: - - switch (pdev->dev_state) - 8009f3e: 687b ldr r3, [r7, #4] - 8009f40: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009f44: b2db uxtb r3, r3 - 8009f46: 2b02 cmp r3, #2 - 8009f48: d002 beq.n 8009f50 - 8009f4a: 2b03 cmp r3, #3 - 8009f4c: d016 beq.n 8009f7c - 8009f4e: e04b b.n 8009fe8 - { - case USBD_STATE_ADDRESSED: - if ((ep_addr != 0x00U) && (ep_addr != 0x80U)) - 8009f50: 7bbb ldrb r3, [r7, #14] - 8009f52: 2b00 cmp r3, #0 - 8009f54: d00d beq.n 8009f72 - 8009f56: 7bbb ldrb r3, [r7, #14] - 8009f58: 2b80 cmp r3, #128 @ 0x80 - 8009f5a: d00a beq.n 8009f72 - { - (void)USBD_LL_StallEP(pdev, ep_addr); - 8009f5c: 7bbb ldrb r3, [r7, #14] - 8009f5e: 4619 mov r1, r3 - 8009f60: 6878 ldr r0, [r7, #4] - 8009f62: f001 f8a7 bl 800b0b4 - (void)USBD_LL_StallEP(pdev, 0x80U); - 8009f66: 2180 movs r1, #128 @ 0x80 - 8009f68: 6878 ldr r0, [r7, #4] - 8009f6a: f001 f8a3 bl 800b0b4 - 8009f6e: bf00 nop - } - else - { - USBD_CtlError(pdev, req); - } - break; - 8009f70: e040 b.n 8009ff4 - USBD_CtlError(pdev, req); - 8009f72: 6839 ldr r1, [r7, #0] - 8009f74: 6878 ldr r0, [r7, #4] - 8009f76: f000 fc6a bl 800a84e - break; - 8009f7a: e03b b.n 8009ff4 - - case USBD_STATE_CONFIGURED: - if (req->wValue == USB_FEATURE_EP_HALT) - 8009f7c: 683b ldr r3, [r7, #0] - 8009f7e: 885b ldrh r3, [r3, #2] - 8009f80: 2b00 cmp r3, #0 - 8009f82: d136 bne.n 8009ff2 - { - if ((ep_addr & 0x7FU) != 0x00U) - 8009f84: 7bbb ldrb r3, [r7, #14] - 8009f86: f003 037f and.w r3, r3, #127 @ 0x7f - 8009f8a: 2b00 cmp r3, #0 - 8009f8c: d004 beq.n 8009f98 - { - (void)USBD_LL_ClearStallEP(pdev, ep_addr); - 8009f8e: 7bbb ldrb r3, [r7, #14] - 8009f90: 4619 mov r1, r3 - 8009f92: 6878 ldr r0, [r7, #4] - 8009f94: f001 f8ad bl 800b0f2 - } - (void)USBD_CtlSendStatus(pdev); - 8009f98: 6878 ldr r0, [r7, #4] - 8009f9a: f000 fd15 bl 800a9c8 - - /* Get the class index relative to this interface */ - idx = USBD_CoreFindEP(pdev, ep_addr); - 8009f9e: 7bbb ldrb r3, [r7, #14] - 8009fa0: 4619 mov r1, r3 + 8009e38: 60fb str r3, [r7, #12] + 8009e3a: 2300 movs r3, #0 + 8009e3c: 72fb strb r3, [r7, #11] + 8009e3e: 683b ldr r3, [r7, #0] + 8009e40: 885b ldrh r3, [r3, #2] + 8009e42: 0a1b lsrs r3, r3, #8 + 8009e44: b29b uxth r3, r3 + 8009e46: 3b01 subs r3, #1 + 8009e48: 2b0e cmp r3, #14 + 8009e4a: f200 8152 bhi.w 800a0f2 + 8009e4e: a201 add r2, pc, #4 @ (adr r2, 8009e54 ) + 8009e50: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8009e54: 08009ec5 .word 0x08009ec5 + 8009e58: 08009edd .word 0x08009edd + 8009e5c: 08009f1d .word 0x08009f1d + 8009e60: 0800a0f3 .word 0x0800a0f3 + 8009e64: 0800a0f3 .word 0x0800a0f3 + 8009e68: 0800a093 .word 0x0800a093 + 8009e6c: 0800a0bf .word 0x0800a0bf + 8009e70: 0800a0f3 .word 0x0800a0f3 + 8009e74: 0800a0f3 .word 0x0800a0f3 + 8009e78: 0800a0f3 .word 0x0800a0f3 + 8009e7c: 0800a0f3 .word 0x0800a0f3 + 8009e80: 0800a0f3 .word 0x0800a0f3 + 8009e84: 0800a0f3 .word 0x0800a0f3 + 8009e88: 0800a0f3 .word 0x0800a0f3 + 8009e8c: 08009e91 .word 0x08009e91 + 8009e90: 687b ldr r3, [r7, #4] + 8009e92: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009e96: 69db ldr r3, [r3, #28] + 8009e98: 2b00 cmp r3, #0 + 8009e9a: d00b beq.n 8009eb4 + 8009e9c: 687b ldr r3, [r7, #4] + 8009e9e: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009ea2: 69db ldr r3, [r3, #28] + 8009ea4: 687a ldr r2, [r7, #4] + 8009ea6: 7c12 ldrb r2, [r2, #16] + 8009ea8: f107 0108 add.w r1, r7, #8 + 8009eac: 4610 mov r0, r2 + 8009eae: 4798 blx r3 + 8009eb0: 60f8 str r0, [r7, #12] + 8009eb2: e126 b.n 800a102 + 8009eb4: 6839 ldr r1, [r7, #0] + 8009eb6: 6878 ldr r0, [r7, #4] + 8009eb8: f000 fb27 bl 800a50a + 8009ebc: 7afb ldrb r3, [r7, #11] + 8009ebe: 3301 adds r3, #1 + 8009ec0: 72fb strb r3, [r7, #11] + 8009ec2: e11e b.n 800a102 + 8009ec4: 687b ldr r3, [r7, #4] + 8009ec6: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009eca: 681b ldr r3, [r3, #0] + 8009ecc: 687a ldr r2, [r7, #4] + 8009ece: 7c12 ldrb r2, [r2, #16] + 8009ed0: f107 0108 add.w r1, r7, #8 + 8009ed4: 4610 mov r0, r2 + 8009ed6: 4798 blx r3 + 8009ed8: 60f8 str r0, [r7, #12] + 8009eda: e112 b.n 800a102 + 8009edc: 687b ldr r3, [r7, #4] + 8009ede: 7c1b ldrb r3, [r3, #16] + 8009ee0: 2b00 cmp r3, #0 + 8009ee2: d10d bne.n 8009f00 + 8009ee4: 687b ldr r3, [r7, #4] + 8009ee6: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009eea: 6a9b ldr r3, [r3, #40] @ 0x28 + 8009eec: f107 0208 add.w r2, r7, #8 + 8009ef0: 4610 mov r0, r2 + 8009ef2: 4798 blx r3 + 8009ef4: 60f8 str r0, [r7, #12] + 8009ef6: 68fb ldr r3, [r7, #12] + 8009ef8: 3301 adds r3, #1 + 8009efa: 2202 movs r2, #2 + 8009efc: 701a strb r2, [r3, #0] + 8009efe: e100 b.n 800a102 + 8009f00: 687b ldr r3, [r7, #4] + 8009f02: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009f06: 6adb ldr r3, [r3, #44] @ 0x2c + 8009f08: f107 0208 add.w r2, r7, #8 + 8009f0c: 4610 mov r0, r2 + 8009f0e: 4798 blx r3 + 8009f10: 60f8 str r0, [r7, #12] + 8009f12: 68fb ldr r3, [r7, #12] + 8009f14: 3301 adds r3, #1 + 8009f16: 2202 movs r2, #2 + 8009f18: 701a strb r2, [r3, #0] + 8009f1a: e0f2 b.n 800a102 + 8009f1c: 683b ldr r3, [r7, #0] + 8009f1e: 885b ldrh r3, [r3, #2] + 8009f20: b2db uxtb r3, r3 + 8009f22: 2b05 cmp r3, #5 + 8009f24: f200 80ac bhi.w 800a080 + 8009f28: a201 add r2, pc, #4 @ (adr r2, 8009f30 ) + 8009f2a: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8009f2e: bf00 nop + 8009f30: 08009f49 .word 0x08009f49 + 8009f34: 08009f7d .word 0x08009f7d + 8009f38: 08009fb1 .word 0x08009fb1 + 8009f3c: 08009fe5 .word 0x08009fe5 + 8009f40: 0800a019 .word 0x0800a019 + 8009f44: 0800a04d .word 0x0800a04d + 8009f48: 687b ldr r3, [r7, #4] + 8009f4a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009f4e: 685b ldr r3, [r3, #4] + 8009f50: 2b00 cmp r3, #0 + 8009f52: d00b beq.n 8009f6c + 8009f54: 687b ldr r3, [r7, #4] + 8009f56: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009f5a: 685b ldr r3, [r3, #4] + 8009f5c: 687a ldr r2, [r7, #4] + 8009f5e: 7c12 ldrb r2, [r2, #16] + 8009f60: f107 0108 add.w r1, r7, #8 + 8009f64: 4610 mov r0, r2 + 8009f66: 4798 blx r3 + 8009f68: 60f8 str r0, [r7, #12] + 8009f6a: e091 b.n 800a090 + 8009f6c: 6839 ldr r1, [r7, #0] + 8009f6e: 6878 ldr r0, [r7, #4] + 8009f70: f000 facb bl 800a50a + 8009f74: 7afb ldrb r3, [r7, #11] + 8009f76: 3301 adds r3, #1 + 8009f78: 72fb strb r3, [r7, #11] + 8009f7a: e089 b.n 800a090 + 8009f7c: 687b ldr r3, [r7, #4] + 8009f7e: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009f82: 689b ldr r3, [r3, #8] + 8009f84: 2b00 cmp r3, #0 + 8009f86: d00b beq.n 8009fa0 + 8009f88: 687b ldr r3, [r7, #4] + 8009f8a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009f8e: 689b ldr r3, [r3, #8] + 8009f90: 687a ldr r2, [r7, #4] + 8009f92: 7c12 ldrb r2, [r2, #16] + 8009f94: f107 0108 add.w r1, r7, #8 + 8009f98: 4610 mov r0, r2 + 8009f9a: 4798 blx r3 + 8009f9c: 60f8 str r0, [r7, #12] + 8009f9e: e077 b.n 800a090 + 8009fa0: 6839 ldr r1, [r7, #0] 8009fa2: 6878 ldr r0, [r7, #4] - 8009fa4: f7ff fde3 bl 8009b6e - 8009fa8: 4603 mov r3, r0 - 8009faa: 737b strb r3, [r7, #13] - if (((uint8_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 8009fac: 7b7b ldrb r3, [r7, #13] - 8009fae: 2bff cmp r3, #255 @ 0xff - 8009fb0: d01f beq.n 8009ff2 - 8009fb2: 7b7b ldrb r3, [r7, #13] - 8009fb4: 2b00 cmp r3, #0 - 8009fb6: d11c bne.n 8009ff2 - { - pdev->classId = idx; - 8009fb8: 7b7a ldrb r2, [r7, #13] - 8009fba: 687b ldr r3, [r7, #4] - 8009fbc: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 - /* Call the class data out function to manage the request */ - if (pdev->pClass[idx]->Setup != NULL) - 8009fc0: 7b7a ldrb r2, [r7, #13] - 8009fc2: 687b ldr r3, [r7, #4] - 8009fc4: 32ae adds r2, #174 @ 0xae - 8009fc6: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009fca: 689b ldr r3, [r3, #8] - 8009fcc: 2b00 cmp r3, #0 - 8009fce: d010 beq.n 8009ff2 - { - ret = (USBD_StatusTypeDef)(pdev->pClass[idx]->Setup(pdev, req)); - 8009fd0: 7b7a ldrb r2, [r7, #13] - 8009fd2: 687b ldr r3, [r7, #4] - 8009fd4: 32ae adds r2, #174 @ 0xae - 8009fd6: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009fda: 689b ldr r3, [r3, #8] - 8009fdc: 6839 ldr r1, [r7, #0] - 8009fde: 6878 ldr r0, [r7, #4] - 8009fe0: 4798 blx r3 - 8009fe2: 4603 mov r3, r0 - 8009fe4: 73fb strb r3, [r7, #15] - } - } - } - break; - 8009fe6: e004 b.n 8009ff2 - - default: - USBD_CtlError(pdev, req); - 8009fe8: 6839 ldr r1, [r7, #0] - 8009fea: 6878 ldr r0, [r7, #4] - 8009fec: f000 fc2f bl 800a84e - break; - 8009ff0: e000 b.n 8009ff4 - break; - 8009ff2: bf00 nop - } - break; - 8009ff4: e0ad b.n 800a152 - - case USB_REQ_GET_STATUS: - switch (pdev->dev_state) - 8009ff6: 687b ldr r3, [r7, #4] - 8009ff8: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009ffc: b2db uxtb r3, r3 - 8009ffe: 2b02 cmp r3, #2 - 800a000: d002 beq.n 800a008 - 800a002: 2b03 cmp r3, #3 - 800a004: d033 beq.n 800a06e - 800a006: e099 b.n 800a13c - { - case USBD_STATE_ADDRESSED: - if ((ep_addr != 0x00U) && (ep_addr != 0x80U)) - 800a008: 7bbb ldrb r3, [r7, #14] - 800a00a: 2b00 cmp r3, #0 - 800a00c: d007 beq.n 800a01e - 800a00e: 7bbb ldrb r3, [r7, #14] - 800a010: 2b80 cmp r3, #128 @ 0x80 - 800a012: d004 beq.n 800a01e - { - USBD_CtlError(pdev, req); - 800a014: 6839 ldr r1, [r7, #0] - 800a016: 6878 ldr r0, [r7, #4] - 800a018: f000 fc19 bl 800a84e - break; - 800a01c: e093 b.n 800a146 - } - pep = ((ep_addr & 0x80U) == 0x80U) ? &pdev->ep_in[ep_addr & 0x7FU] : \ - 800a01e: f997 300e ldrsb.w r3, [r7, #14] - 800a022: 2b00 cmp r3, #0 - 800a024: da0b bge.n 800a03e - 800a026: 7bbb ldrb r3, [r7, #14] - 800a028: f003 027f and.w r2, r3, #127 @ 0x7f - 800a02c: 4613 mov r3, r2 - 800a02e: 009b lsls r3, r3, #2 - 800a030: 4413 add r3, r2 - 800a032: 009b lsls r3, r3, #2 - 800a034: 3310 adds r3, #16 - 800a036: 687a ldr r2, [r7, #4] - 800a038: 4413 add r3, r2 - 800a03a: 3304 adds r3, #4 - 800a03c: e00b b.n 800a056 - &pdev->ep_out[ep_addr & 0x7FU]; - 800a03e: 7bbb ldrb r3, [r7, #14] - 800a040: f003 027f and.w r2, r3, #127 @ 0x7f - pep = ((ep_addr & 0x80U) == 0x80U) ? &pdev->ep_in[ep_addr & 0x7FU] : \ - 800a044: 4613 mov r3, r2 - 800a046: 009b lsls r3, r3, #2 - 800a048: 4413 add r3, r2 - 800a04a: 009b lsls r3, r3, #2 - 800a04c: f503 73a8 add.w r3, r3, #336 @ 0x150 - 800a050: 687a ldr r2, [r7, #4] - 800a052: 4413 add r3, r2 - 800a054: 3304 adds r3, #4 - 800a056: 60bb str r3, [r7, #8] - - pep->status = 0x0000U; - 800a058: 68bb ldr r3, [r7, #8] - 800a05a: 2200 movs r2, #0 - 800a05c: 739a strb r2, [r3, #14] - - (void)USBD_CtlSendData(pdev, (uint8_t *)&pep->status, 2U); - 800a05e: 68bb ldr r3, [r7, #8] - 800a060: 330e adds r3, #14 - 800a062: 2202 movs r2, #2 - 800a064: 4619 mov r1, r3 - 800a066: 6878 ldr r0, [r7, #4] - 800a068: f000 fc6e bl 800a948 - break; - 800a06c: e06b b.n 800a146 - - case USBD_STATE_CONFIGURED: - if ((ep_addr & 0x80U) == 0x80U) - 800a06e: f997 300e ldrsb.w r3, [r7, #14] - 800a072: 2b00 cmp r3, #0 - 800a074: da11 bge.n 800a09a - { - if (pdev->ep_in[ep_addr & 0xFU].is_used == 0U) - 800a076: 7bbb ldrb r3, [r7, #14] - 800a078: f003 020f and.w r2, r3, #15 - 800a07c: 6879 ldr r1, [r7, #4] - 800a07e: 4613 mov r3, r2 - 800a080: 009b lsls r3, r3, #2 - 800a082: 4413 add r3, r2 - 800a084: 009b lsls r3, r3, #2 - 800a086: 440b add r3, r1 - 800a088: 3323 adds r3, #35 @ 0x23 - 800a08a: 781b ldrb r3, [r3, #0] - 800a08c: 2b00 cmp r3, #0 - 800a08e: d117 bne.n 800a0c0 - { - USBD_CtlError(pdev, req); - 800a090: 6839 ldr r1, [r7, #0] - 800a092: 6878 ldr r0, [r7, #4] - 800a094: f000 fbdb bl 800a84e - break; - 800a098: e055 b.n 800a146 - } - } - else - { - if (pdev->ep_out[ep_addr & 0xFU].is_used == 0U) - 800a09a: 7bbb ldrb r3, [r7, #14] - 800a09c: f003 020f and.w r2, r3, #15 - 800a0a0: 6879 ldr r1, [r7, #4] - 800a0a2: 4613 mov r3, r2 - 800a0a4: 009b lsls r3, r3, #2 - 800a0a6: 4413 add r3, r2 - 800a0a8: 009b lsls r3, r3, #2 - 800a0aa: 440b add r3, r1 - 800a0ac: f203 1363 addw r3, r3, #355 @ 0x163 - 800a0b0: 781b ldrb r3, [r3, #0] - 800a0b2: 2b00 cmp r3, #0 - 800a0b4: d104 bne.n 800a0c0 - { - USBD_CtlError(pdev, req); - 800a0b6: 6839 ldr r1, [r7, #0] - 800a0b8: 6878 ldr r0, [r7, #4] - 800a0ba: f000 fbc8 bl 800a84e - break; - 800a0be: e042 b.n 800a146 - } - } - - pep = ((ep_addr & 0x80U) == 0x80U) ? &pdev->ep_in[ep_addr & 0x7FU] : \ - 800a0c0: f997 300e ldrsb.w r3, [r7, #14] - 800a0c4: 2b00 cmp r3, #0 - 800a0c6: da0b bge.n 800a0e0 - 800a0c8: 7bbb ldrb r3, [r7, #14] - 800a0ca: f003 027f and.w r2, r3, #127 @ 0x7f - 800a0ce: 4613 mov r3, r2 - 800a0d0: 009b lsls r3, r3, #2 - 800a0d2: 4413 add r3, r2 - 800a0d4: 009b lsls r3, r3, #2 - 800a0d6: 3310 adds r3, #16 - 800a0d8: 687a ldr r2, [r7, #4] - 800a0da: 4413 add r3, r2 - 800a0dc: 3304 adds r3, #4 - 800a0de: e00b b.n 800a0f8 - &pdev->ep_out[ep_addr & 0x7FU]; - 800a0e0: 7bbb ldrb r3, [r7, #14] - 800a0e2: f003 027f and.w r2, r3, #127 @ 0x7f - pep = ((ep_addr & 0x80U) == 0x80U) ? &pdev->ep_in[ep_addr & 0x7FU] : \ - 800a0e6: 4613 mov r3, r2 - 800a0e8: 009b lsls r3, r3, #2 - 800a0ea: 4413 add r3, r2 - 800a0ec: 009b lsls r3, r3, #2 - 800a0ee: f503 73a8 add.w r3, r3, #336 @ 0x150 - 800a0f2: 687a ldr r2, [r7, #4] - 800a0f4: 4413 add r3, r2 - 800a0f6: 3304 adds r3, #4 - 800a0f8: 60bb str r3, [r7, #8] - - if ((ep_addr == 0x00U) || (ep_addr == 0x80U)) - 800a0fa: 7bbb ldrb r3, [r7, #14] - 800a0fc: 2b00 cmp r3, #0 - 800a0fe: d002 beq.n 800a106 - 800a100: 7bbb ldrb r3, [r7, #14] - 800a102: 2b80 cmp r3, #128 @ 0x80 - 800a104: d103 bne.n 800a10e - { - pep->status = 0x0000U; - 800a106: 68bb ldr r3, [r7, #8] - 800a108: 2200 movs r2, #0 - 800a10a: 739a strb r2, [r3, #14] - 800a10c: e00e b.n 800a12c - } - else if (USBD_LL_IsStallEP(pdev, ep_addr) != 0U) - 800a10e: 7bbb ldrb r3, [r7, #14] - 800a110: 4619 mov r1, r3 - 800a112: 6878 ldr r0, [r7, #4] - 800a114: f001 f80c bl 800b130 - 800a118: 4603 mov r3, r0 - 800a11a: 2b00 cmp r3, #0 - 800a11c: d003 beq.n 800a126 - { - pep->status = 0x0001U; - 800a11e: 68bb ldr r3, [r7, #8] - 800a120: 2201 movs r2, #1 - 800a122: 739a strb r2, [r3, #14] - 800a124: e002 b.n 800a12c - } - else - { - pep->status = 0x0000U; - 800a126: 68bb ldr r3, [r7, #8] - 800a128: 2200 movs r2, #0 - 800a12a: 739a strb r2, [r3, #14] - } - - (void)USBD_CtlSendData(pdev, (uint8_t *)&pep->status, 2U); - 800a12c: 68bb ldr r3, [r7, #8] - 800a12e: 330e adds r3, #14 - 800a130: 2202 movs r2, #2 - 800a132: 4619 mov r1, r3 - 800a134: 6878 ldr r0, [r7, #4] - 800a136: f000 fc07 bl 800a948 - break; - 800a13a: e004 b.n 800a146 - - default: - USBD_CtlError(pdev, req); - 800a13c: 6839 ldr r1, [r7, #0] + 8009fa4: f000 fab1 bl 800a50a + 8009fa8: 7afb ldrb r3, [r7, #11] + 8009faa: 3301 adds r3, #1 + 8009fac: 72fb strb r3, [r7, #11] + 8009fae: e06f b.n 800a090 + 8009fb0: 687b ldr r3, [r7, #4] + 8009fb2: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009fb6: 68db ldr r3, [r3, #12] + 8009fb8: 2b00 cmp r3, #0 + 8009fba: d00b beq.n 8009fd4 + 8009fbc: 687b ldr r3, [r7, #4] + 8009fbe: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009fc2: 68db ldr r3, [r3, #12] + 8009fc4: 687a ldr r2, [r7, #4] + 8009fc6: 7c12 ldrb r2, [r2, #16] + 8009fc8: f107 0108 add.w r1, r7, #8 + 8009fcc: 4610 mov r0, r2 + 8009fce: 4798 blx r3 + 8009fd0: 60f8 str r0, [r7, #12] + 8009fd2: e05d b.n 800a090 + 8009fd4: 6839 ldr r1, [r7, #0] + 8009fd6: 6878 ldr r0, [r7, #4] + 8009fd8: f000 fa97 bl 800a50a + 8009fdc: 7afb ldrb r3, [r7, #11] + 8009fde: 3301 adds r3, #1 + 8009fe0: 72fb strb r3, [r7, #11] + 8009fe2: e055 b.n 800a090 + 8009fe4: 687b ldr r3, [r7, #4] + 8009fe6: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009fea: 691b ldr r3, [r3, #16] + 8009fec: 2b00 cmp r3, #0 + 8009fee: d00b beq.n 800a008 + 8009ff0: 687b ldr r3, [r7, #4] + 8009ff2: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 8009ff6: 691b ldr r3, [r3, #16] + 8009ff8: 687a ldr r2, [r7, #4] + 8009ffa: 7c12 ldrb r2, [r2, #16] + 8009ffc: f107 0108 add.w r1, r7, #8 + 800a000: 4610 mov r0, r2 + 800a002: 4798 blx r3 + 800a004: 60f8 str r0, [r7, #12] + 800a006: e043 b.n 800a090 + 800a008: 6839 ldr r1, [r7, #0] + 800a00a: 6878 ldr r0, [r7, #4] + 800a00c: f000 fa7d bl 800a50a + 800a010: 7afb ldrb r3, [r7, #11] + 800a012: 3301 adds r3, #1 + 800a014: 72fb strb r3, [r7, #11] + 800a016: e03b b.n 800a090 + 800a018: 687b ldr r3, [r7, #4] + 800a01a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a01e: 695b ldr r3, [r3, #20] + 800a020: 2b00 cmp r3, #0 + 800a022: d00b beq.n 800a03c + 800a024: 687b ldr r3, [r7, #4] + 800a026: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a02a: 695b ldr r3, [r3, #20] + 800a02c: 687a ldr r2, [r7, #4] + 800a02e: 7c12 ldrb r2, [r2, #16] + 800a030: f107 0108 add.w r1, r7, #8 + 800a034: 4610 mov r0, r2 + 800a036: 4798 blx r3 + 800a038: 60f8 str r0, [r7, #12] + 800a03a: e029 b.n 800a090 + 800a03c: 6839 ldr r1, [r7, #0] + 800a03e: 6878 ldr r0, [r7, #4] + 800a040: f000 fa63 bl 800a50a + 800a044: 7afb ldrb r3, [r7, #11] + 800a046: 3301 adds r3, #1 + 800a048: 72fb strb r3, [r7, #11] + 800a04a: e021 b.n 800a090 + 800a04c: 687b ldr r3, [r7, #4] + 800a04e: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a052: 699b ldr r3, [r3, #24] + 800a054: 2b00 cmp r3, #0 + 800a056: d00b beq.n 800a070 + 800a058: 687b ldr r3, [r7, #4] + 800a05a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a05e: 699b ldr r3, [r3, #24] + 800a060: 687a ldr r2, [r7, #4] + 800a062: 7c12 ldrb r2, [r2, #16] + 800a064: f107 0108 add.w r1, r7, #8 + 800a068: 4610 mov r0, r2 + 800a06a: 4798 blx r3 + 800a06c: 60f8 str r0, [r7, #12] + 800a06e: e00f b.n 800a090 + 800a070: 6839 ldr r1, [r7, #0] + 800a072: 6878 ldr r0, [r7, #4] + 800a074: f000 fa49 bl 800a50a + 800a078: 7afb ldrb r3, [r7, #11] + 800a07a: 3301 adds r3, #1 + 800a07c: 72fb strb r3, [r7, #11] + 800a07e: e007 b.n 800a090 + 800a080: 6839 ldr r1, [r7, #0] + 800a082: 6878 ldr r0, [r7, #4] + 800a084: f000 fa41 bl 800a50a + 800a088: 7afb ldrb r3, [r7, #11] + 800a08a: 3301 adds r3, #1 + 800a08c: 72fb strb r3, [r7, #11] + 800a08e: bf00 nop + 800a090: e037 b.n 800a102 + 800a092: 687b ldr r3, [r7, #4] + 800a094: 7c1b ldrb r3, [r3, #16] + 800a096: 2b00 cmp r3, #0 + 800a098: d109 bne.n 800a0ae + 800a09a: 687b ldr r3, [r7, #4] + 800a09c: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 800a0a0: 6b5b ldr r3, [r3, #52] @ 0x34 + 800a0a2: f107 0208 add.w r2, r7, #8 + 800a0a6: 4610 mov r0, r2 + 800a0a8: 4798 blx r3 + 800a0aa: 60f8 str r0, [r7, #12] + 800a0ac: e029 b.n 800a102 + 800a0ae: 6839 ldr r1, [r7, #0] + 800a0b0: 6878 ldr r0, [r7, #4] + 800a0b2: f000 fa2a bl 800a50a + 800a0b6: 7afb ldrb r3, [r7, #11] + 800a0b8: 3301 adds r3, #1 + 800a0ba: 72fb strb r3, [r7, #11] + 800a0bc: e021 b.n 800a102 + 800a0be: 687b ldr r3, [r7, #4] + 800a0c0: 7c1b ldrb r3, [r3, #16] + 800a0c2: 2b00 cmp r3, #0 + 800a0c4: d10d bne.n 800a0e2 + 800a0c6: 687b ldr r3, [r7, #4] + 800a0c8: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 800a0cc: 6b1b ldr r3, [r3, #48] @ 0x30 + 800a0ce: f107 0208 add.w r2, r7, #8 + 800a0d2: 4610 mov r0, r2 + 800a0d4: 4798 blx r3 + 800a0d6: 60f8 str r0, [r7, #12] + 800a0d8: 68fb ldr r3, [r7, #12] + 800a0da: 3301 adds r3, #1 + 800a0dc: 2207 movs r2, #7 + 800a0de: 701a strb r2, [r3, #0] + 800a0e0: e00f b.n 800a102 + 800a0e2: 6839 ldr r1, [r7, #0] + 800a0e4: 6878 ldr r0, [r7, #4] + 800a0e6: f000 fa10 bl 800a50a + 800a0ea: 7afb ldrb r3, [r7, #11] + 800a0ec: 3301 adds r3, #1 + 800a0ee: 72fb strb r3, [r7, #11] + 800a0f0: e007 b.n 800a102 + 800a0f2: 6839 ldr r1, [r7, #0] + 800a0f4: 6878 ldr r0, [r7, #4] + 800a0f6: f000 fa08 bl 800a50a + 800a0fa: 7afb ldrb r3, [r7, #11] + 800a0fc: 3301 adds r3, #1 + 800a0fe: 72fb strb r3, [r7, #11] + 800a100: bf00 nop + 800a102: 7afb ldrb r3, [r7, #11] + 800a104: 2b00 cmp r3, #0 + 800a106: d11e bne.n 800a146 + 800a108: 683b ldr r3, [r7, #0] + 800a10a: 88db ldrh r3, [r3, #6] + 800a10c: 2b00 cmp r3, #0 + 800a10e: d016 beq.n 800a13e + 800a110: 893b ldrh r3, [r7, #8] + 800a112: 2b00 cmp r3, #0 + 800a114: d00e beq.n 800a134 + 800a116: 683b ldr r3, [r7, #0] + 800a118: 88da ldrh r2, [r3, #6] + 800a11a: 893b ldrh r3, [r7, #8] + 800a11c: 4293 cmp r3, r2 + 800a11e: bf28 it cs + 800a120: 4613 movcs r3, r2 + 800a122: b29b uxth r3, r3 + 800a124: 813b strh r3, [r7, #8] + 800a126: 893b ldrh r3, [r7, #8] + 800a128: 461a mov r2, r3 + 800a12a: 68f9 ldr r1, [r7, #12] + 800a12c: 6878 ldr r0, [r7, #4] + 800a12e: f000 fa69 bl 800a604 + 800a132: e009 b.n 800a148 + 800a134: 6839 ldr r1, [r7, #0] + 800a136: 6878 ldr r0, [r7, #4] + 800a138: f000 f9e7 bl 800a50a + 800a13c: e004 b.n 800a148 800a13e: 6878 ldr r0, [r7, #4] - 800a140: f000 fb85 bl 800a84e - break; - 800a144: bf00 nop - } - break; - 800a146: e004 b.n 800a152 + 800a140: f000 faa0 bl 800a684 + 800a144: e000 b.n 800a148 + 800a146: bf00 nop + 800a148: 3710 adds r7, #16 + 800a14a: 46bd mov sp, r7 + 800a14c: bd80 pop {r7, pc} + 800a14e: bf00 nop - default: - USBD_CtlError(pdev, req); - 800a148: 6839 ldr r1, [r7, #0] - 800a14a: 6878 ldr r0, [r7, #4] - 800a14c: f000 fb7f bl 800a84e - break; - 800a150: bf00 nop - } - break; - 800a152: e005 b.n 800a160 +0800a150 : + 800a150: b580 push {r7, lr} + 800a152: b084 sub sp, #16 + 800a154: af00 add r7, sp, #0 + 800a156: 6078 str r0, [r7, #4] + 800a158: 6039 str r1, [r7, #0] + 800a15a: 683b ldr r3, [r7, #0] + 800a15c: 889b ldrh r3, [r3, #4] + 800a15e: 2b00 cmp r3, #0 + 800a160: d131 bne.n 800a1c6 + 800a162: 683b ldr r3, [r7, #0] + 800a164: 88db ldrh r3, [r3, #6] + 800a166: 2b00 cmp r3, #0 + 800a168: d12d bne.n 800a1c6 + 800a16a: 683b ldr r3, [r7, #0] + 800a16c: 885b ldrh r3, [r3, #2] + 800a16e: 2b7f cmp r3, #127 @ 0x7f + 800a170: d829 bhi.n 800a1c6 + 800a172: 683b ldr r3, [r7, #0] + 800a174: 885b ldrh r3, [r3, #2] + 800a176: b2db uxtb r3, r3 + 800a178: f003 037f and.w r3, r3, #127 @ 0x7f + 800a17c: 73fb strb r3, [r7, #15] + 800a17e: 687b ldr r3, [r7, #4] + 800a180: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800a184: b2db uxtb r3, r3 + 800a186: 2b03 cmp r3, #3 + 800a188: d104 bne.n 800a194 + 800a18a: 6839 ldr r1, [r7, #0] + 800a18c: 6878 ldr r0, [r7, #4] + 800a18e: f000 f9bc bl 800a50a + 800a192: e01d b.n 800a1d0 + 800a194: 687b ldr r3, [r7, #4] + 800a196: 7bfa ldrb r2, [r7, #15] + 800a198: f883 229e strb.w r2, [r3, #670] @ 0x29e + 800a19c: 7bfb ldrb r3, [r7, #15] + 800a19e: 4619 mov r1, r3 + 800a1a0: 6878 ldr r0, [r7, #4] + 800a1a2: f000 fe4f bl 800ae44 + 800a1a6: 6878 ldr r0, [r7, #4] + 800a1a8: f000 fa6c bl 800a684 + 800a1ac: 7bfb ldrb r3, [r7, #15] + 800a1ae: 2b00 cmp r3, #0 + 800a1b0: d004 beq.n 800a1bc + 800a1b2: 687b ldr r3, [r7, #4] + 800a1b4: 2202 movs r2, #2 + 800a1b6: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800a1ba: e009 b.n 800a1d0 + 800a1bc: 687b ldr r3, [r7, #4] + 800a1be: 2201 movs r2, #1 + 800a1c0: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800a1c4: e004 b.n 800a1d0 + 800a1c6: 6839 ldr r1, [r7, #0] + 800a1c8: 6878 ldr r0, [r7, #4] + 800a1ca: f000 f99e bl 800a50a + 800a1ce: bf00 nop + 800a1d0: bf00 nop + 800a1d2: 3710 adds r7, #16 + 800a1d4: 46bd mov sp, r7 + 800a1d6: bd80 pop {r7, pc} - default: - USBD_CtlError(pdev, req); - 800a154: 6839 ldr r1, [r7, #0] - 800a156: 6878 ldr r0, [r7, #4] - 800a158: f000 fb79 bl 800a84e - break; - 800a15c: e000 b.n 800a160 - break; - 800a15e: bf00 nop - } - - return ret; - 800a160: 7bfb ldrb r3, [r7, #15] -} - 800a162: 4618 mov r0, r3 - 800a164: 3710 adds r7, #16 - 800a166: 46bd mov sp, r7 - 800a168: bd80 pop {r7, pc} - ... - -0800a16c : - * @param pdev: device instance - * @param req: usb request - * @retval None - */ -static void USBD_GetDescriptor(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) -{ - 800a16c: b580 push {r7, lr} - 800a16e: b084 sub sp, #16 - 800a170: af00 add r7, sp, #0 - 800a172: 6078 str r0, [r7, #4] - 800a174: 6039 str r1, [r7, #0] - uint16_t len = 0U; - 800a176: 2300 movs r3, #0 - 800a178: 813b strh r3, [r7, #8] - uint8_t *pbuf = NULL; - 800a17a: 2300 movs r3, #0 - 800a17c: 60fb str r3, [r7, #12] - uint8_t err = 0U; - 800a17e: 2300 movs r3, #0 - 800a180: 72fb strb r3, [r7, #11] - - switch (req->wValue >> 8) - 800a182: 683b ldr r3, [r7, #0] - 800a184: 885b ldrh r3, [r3, #2] - 800a186: 0a1b lsrs r3, r3, #8 - 800a188: b29b uxth r3, r3 - 800a18a: 3b01 subs r3, #1 - 800a18c: 2b0e cmp r3, #14 - 800a18e: f200 8152 bhi.w 800a436 - 800a192: a201 add r2, pc, #4 @ (adr r2, 800a198 ) - 800a194: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800a198: 0800a209 .word 0x0800a209 - 800a19c: 0800a221 .word 0x0800a221 - 800a1a0: 0800a261 .word 0x0800a261 - 800a1a4: 0800a437 .word 0x0800a437 - 800a1a8: 0800a437 .word 0x0800a437 - 800a1ac: 0800a3d7 .word 0x0800a3d7 - 800a1b0: 0800a403 .word 0x0800a403 - 800a1b4: 0800a437 .word 0x0800a437 - 800a1b8: 0800a437 .word 0x0800a437 - 800a1bc: 0800a437 .word 0x0800a437 - 800a1c0: 0800a437 .word 0x0800a437 - 800a1c4: 0800a437 .word 0x0800a437 - 800a1c8: 0800a437 .word 0x0800a437 - 800a1cc: 0800a437 .word 0x0800a437 - 800a1d0: 0800a1d5 .word 0x0800a1d5 - { -#if ((USBD_LPM_ENABLED == 1U) || (USBD_CLASS_BOS_ENABLED == 1U)) - case USB_DESC_TYPE_BOS: - if (pdev->pDesc->GetBOSDescriptor != NULL) - 800a1d4: 687b ldr r3, [r7, #4] - 800a1d6: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a1da: 69db ldr r3, [r3, #28] - 800a1dc: 2b00 cmp r3, #0 - 800a1de: d00b beq.n 800a1f8 - { - pbuf = pdev->pDesc->GetBOSDescriptor(pdev->dev_speed, &len); - 800a1e0: 687b ldr r3, [r7, #4] - 800a1e2: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a1e6: 69db ldr r3, [r3, #28] - 800a1e8: 687a ldr r2, [r7, #4] - 800a1ea: 7c12 ldrb r2, [r2, #16] - 800a1ec: f107 0108 add.w r1, r7, #8 - 800a1f0: 4610 mov r0, r2 - 800a1f2: 4798 blx r3 - 800a1f4: 60f8 str r0, [r7, #12] - else - { - USBD_CtlError(pdev, req); - err++; - } - break; - 800a1f6: e126 b.n 800a446 - USBD_CtlError(pdev, req); +0800a1d8 : + 800a1d8: b580 push {r7, lr} + 800a1da: b084 sub sp, #16 + 800a1dc: af00 add r7, sp, #0 + 800a1de: 6078 str r0, [r7, #4] + 800a1e0: 6039 str r1, [r7, #0] + 800a1e2: 2300 movs r3, #0 + 800a1e4: 73fb strb r3, [r7, #15] + 800a1e6: 683b ldr r3, [r7, #0] + 800a1e8: 885b ldrh r3, [r3, #2] + 800a1ea: b2da uxtb r2, r3 + 800a1ec: 4b4e ldr r3, [pc, #312] @ (800a328 ) + 800a1ee: 701a strb r2, [r3, #0] + 800a1f0: 4b4d ldr r3, [pc, #308] @ (800a328 ) + 800a1f2: 781b ldrb r3, [r3, #0] + 800a1f4: 2b01 cmp r3, #1 + 800a1f6: d905 bls.n 800a204 800a1f8: 6839 ldr r1, [r7, #0] 800a1fa: 6878 ldr r0, [r7, #4] - 800a1fc: f000 fb27 bl 800a84e - err++; - 800a200: 7afb ldrb r3, [r7, #11] - 800a202: 3301 adds r3, #1 - 800a204: 72fb strb r3, [r7, #11] - break; - 800a206: e11e b.n 800a446 -#endif /* (USBD_LPM_ENABLED == 1U) || (USBD_CLASS_BOS_ENABLED == 1U) */ - case USB_DESC_TYPE_DEVICE: - pbuf = pdev->pDesc->GetDeviceDescriptor(pdev->dev_speed, &len); - 800a208: 687b ldr r3, [r7, #4] - 800a20a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a20e: 681b ldr r3, [r3, #0] - 800a210: 687a ldr r2, [r7, #4] - 800a212: 7c12 ldrb r2, [r2, #16] - 800a214: f107 0108 add.w r1, r7, #8 - 800a218: 4610 mov r0, r2 - 800a21a: 4798 blx r3 - 800a21c: 60f8 str r0, [r7, #12] - break; - 800a21e: e112 b.n 800a446 - - case USB_DESC_TYPE_CONFIGURATION: - if (pdev->dev_speed == USBD_SPEED_HIGH) - 800a220: 687b ldr r3, [r7, #4] - 800a222: 7c1b ldrb r3, [r3, #16] - 800a224: 2b00 cmp r3, #0 - 800a226: d10d bne.n 800a244 - pbuf = (uint8_t *)USBD_CMPSIT.GetHSConfigDescriptor(&len); - } - else -#endif /* USE_USBD_COMPOSITE */ - { - pbuf = (uint8_t *)pdev->pClass[0]->GetHSConfigDescriptor(&len); - 800a228: 687b ldr r3, [r7, #4] - 800a22a: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 800a22e: 6a9b ldr r3, [r3, #40] @ 0x28 - 800a230: f107 0208 add.w r2, r7, #8 - 800a234: 4610 mov r0, r2 - 800a236: 4798 blx r3 - 800a238: 60f8 str r0, [r7, #12] - } - pbuf[1] = USB_DESC_TYPE_CONFIGURATION; - 800a23a: 68fb ldr r3, [r7, #12] - 800a23c: 3301 adds r3, #1 - 800a23e: 2202 movs r2, #2 - 800a240: 701a strb r2, [r3, #0] - { - pbuf = (uint8_t *)pdev->pClass[0]->GetFSConfigDescriptor(&len); - } - pbuf[1] = USB_DESC_TYPE_CONFIGURATION; - } - break; - 800a242: e100 b.n 800a446 - pbuf = (uint8_t *)pdev->pClass[0]->GetFSConfigDescriptor(&len); - 800a244: 687b ldr r3, [r7, #4] - 800a246: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 800a24a: 6adb ldr r3, [r3, #44] @ 0x2c - 800a24c: f107 0208 add.w r2, r7, #8 - 800a250: 4610 mov r0, r2 - 800a252: 4798 blx r3 - 800a254: 60f8 str r0, [r7, #12] - pbuf[1] = USB_DESC_TYPE_CONFIGURATION; - 800a256: 68fb ldr r3, [r7, #12] - 800a258: 3301 adds r3, #1 - 800a25a: 2202 movs r2, #2 - 800a25c: 701a strb r2, [r3, #0] - break; - 800a25e: e0f2 b.n 800a446 - - case USB_DESC_TYPE_STRING: - switch ((uint8_t)(req->wValue)) - 800a260: 683b ldr r3, [r7, #0] - 800a262: 885b ldrh r3, [r3, #2] - 800a264: b2db uxtb r3, r3 - 800a266: 2b05 cmp r3, #5 - 800a268: f200 80ac bhi.w 800a3c4 - 800a26c: a201 add r2, pc, #4 @ (adr r2, 800a274 ) - 800a26e: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800a272: bf00 nop - 800a274: 0800a28d .word 0x0800a28d - 800a278: 0800a2c1 .word 0x0800a2c1 - 800a27c: 0800a2f5 .word 0x0800a2f5 - 800a280: 0800a329 .word 0x0800a329 - 800a284: 0800a35d .word 0x0800a35d - 800a288: 0800a391 .word 0x0800a391 - { - case USBD_IDX_LANGID_STR: - if (pdev->pDesc->GetLangIDStrDescriptor != NULL) - 800a28c: 687b ldr r3, [r7, #4] - 800a28e: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a292: 685b ldr r3, [r3, #4] - 800a294: 2b00 cmp r3, #0 - 800a296: d00b beq.n 800a2b0 - { - pbuf = pdev->pDesc->GetLangIDStrDescriptor(pdev->dev_speed, &len); - 800a298: 687b ldr r3, [r7, #4] - 800a29a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a1fc: f000 f985 bl 800a50a + 800a200: 2303 movs r3, #3 + 800a202: e08c b.n 800a31e + 800a204: 687b ldr r3, [r7, #4] + 800a206: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800a20a: b2db uxtb r3, r3 + 800a20c: 2b02 cmp r3, #2 + 800a20e: d002 beq.n 800a216 + 800a210: 2b03 cmp r3, #3 + 800a212: d029 beq.n 800a268 + 800a214: e075 b.n 800a302 + 800a216: 4b44 ldr r3, [pc, #272] @ (800a328 ) + 800a218: 781b ldrb r3, [r3, #0] + 800a21a: 2b00 cmp r3, #0 + 800a21c: d020 beq.n 800a260 + 800a21e: 4b42 ldr r3, [pc, #264] @ (800a328 ) + 800a220: 781b ldrb r3, [r3, #0] + 800a222: 461a mov r2, r3 + 800a224: 687b ldr r3, [r7, #4] + 800a226: 605a str r2, [r3, #4] + 800a228: 4b3f ldr r3, [pc, #252] @ (800a328 ) + 800a22a: 781b ldrb r3, [r3, #0] + 800a22c: 4619 mov r1, r3 + 800a22e: 6878 ldr r0, [r7, #4] + 800a230: f7fe ffa3 bl 800917a + 800a234: 4603 mov r3, r0 + 800a236: 73fb strb r3, [r7, #15] + 800a238: 7bfb ldrb r3, [r7, #15] + 800a23a: 2b00 cmp r3, #0 + 800a23c: d008 beq.n 800a250 + 800a23e: 6839 ldr r1, [r7, #0] + 800a240: 6878 ldr r0, [r7, #4] + 800a242: f000 f962 bl 800a50a + 800a246: 687b ldr r3, [r7, #4] + 800a248: 2202 movs r2, #2 + 800a24a: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800a24e: e065 b.n 800a31c + 800a250: 6878 ldr r0, [r7, #4] + 800a252: f000 fa17 bl 800a684 + 800a256: 687b ldr r3, [r7, #4] + 800a258: 2203 movs r2, #3 + 800a25a: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800a25e: e05d b.n 800a31c + 800a260: 6878 ldr r0, [r7, #4] + 800a262: f000 fa0f bl 800a684 + 800a266: e059 b.n 800a31c + 800a268: 4b2f ldr r3, [pc, #188] @ (800a328 ) + 800a26a: 781b ldrb r3, [r3, #0] + 800a26c: 2b00 cmp r3, #0 + 800a26e: d112 bne.n 800a296 + 800a270: 687b ldr r3, [r7, #4] + 800a272: 2202 movs r2, #2 + 800a274: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800a278: 4b2b ldr r3, [pc, #172] @ (800a328 ) + 800a27a: 781b ldrb r3, [r3, #0] + 800a27c: 461a mov r2, r3 + 800a27e: 687b ldr r3, [r7, #4] + 800a280: 605a str r2, [r3, #4] + 800a282: 4b29 ldr r3, [pc, #164] @ (800a328 ) + 800a284: 781b ldrb r3, [r3, #0] + 800a286: 4619 mov r1, r3 + 800a288: 6878 ldr r0, [r7, #4] + 800a28a: f7fe ff92 bl 80091b2 + 800a28e: 6878 ldr r0, [r7, #4] + 800a290: f000 f9f8 bl 800a684 + 800a294: e042 b.n 800a31c + 800a296: 4b24 ldr r3, [pc, #144] @ (800a328 ) + 800a298: 781b ldrb r3, [r3, #0] + 800a29a: 461a mov r2, r3 + 800a29c: 687b ldr r3, [r7, #4] 800a29e: 685b ldr r3, [r3, #4] - 800a2a0: 687a ldr r2, [r7, #4] - 800a2a2: 7c12 ldrb r2, [r2, #16] - 800a2a4: f107 0108 add.w r1, r7, #8 - 800a2a8: 4610 mov r0, r2 - 800a2aa: 4798 blx r3 - 800a2ac: 60f8 str r0, [r7, #12] - else - { - USBD_CtlError(pdev, req); - err++; - } - break; - 800a2ae: e091 b.n 800a3d4 - USBD_CtlError(pdev, req); - 800a2b0: 6839 ldr r1, [r7, #0] - 800a2b2: 6878 ldr r0, [r7, #4] - 800a2b4: f000 facb bl 800a84e - err++; - 800a2b8: 7afb ldrb r3, [r7, #11] - 800a2ba: 3301 adds r3, #1 - 800a2bc: 72fb strb r3, [r7, #11] - break; - 800a2be: e089 b.n 800a3d4 + 800a2a0: 429a cmp r2, r3 + 800a2a2: d02a beq.n 800a2fa + 800a2a4: 687b ldr r3, [r7, #4] + 800a2a6: 685b ldr r3, [r3, #4] + 800a2a8: b2db uxtb r3, r3 + 800a2aa: 4619 mov r1, r3 + 800a2ac: 6878 ldr r0, [r7, #4] + 800a2ae: f7fe ff80 bl 80091b2 + 800a2b2: 4b1d ldr r3, [pc, #116] @ (800a328 ) + 800a2b4: 781b ldrb r3, [r3, #0] + 800a2b6: 461a mov r2, r3 + 800a2b8: 687b ldr r3, [r7, #4] + 800a2ba: 605a str r2, [r3, #4] + 800a2bc: 4b1a ldr r3, [pc, #104] @ (800a328 ) + 800a2be: 781b ldrb r3, [r3, #0] + 800a2c0: 4619 mov r1, r3 + 800a2c2: 6878 ldr r0, [r7, #4] + 800a2c4: f7fe ff59 bl 800917a + 800a2c8: 4603 mov r3, r0 + 800a2ca: 73fb strb r3, [r7, #15] + 800a2cc: 7bfb ldrb r3, [r7, #15] + 800a2ce: 2b00 cmp r3, #0 + 800a2d0: d00f beq.n 800a2f2 + 800a2d2: 6839 ldr r1, [r7, #0] + 800a2d4: 6878 ldr r0, [r7, #4] + 800a2d6: f000 f918 bl 800a50a + 800a2da: 687b ldr r3, [r7, #4] + 800a2dc: 685b ldr r3, [r3, #4] + 800a2de: b2db uxtb r3, r3 + 800a2e0: 4619 mov r1, r3 + 800a2e2: 6878 ldr r0, [r7, #4] + 800a2e4: f7fe ff65 bl 80091b2 + 800a2e8: 687b ldr r3, [r7, #4] + 800a2ea: 2202 movs r2, #2 + 800a2ec: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800a2f0: e014 b.n 800a31c + 800a2f2: 6878 ldr r0, [r7, #4] + 800a2f4: f000 f9c6 bl 800a684 + 800a2f8: e010 b.n 800a31c + 800a2fa: 6878 ldr r0, [r7, #4] + 800a2fc: f000 f9c2 bl 800a684 + 800a300: e00c b.n 800a31c + 800a302: 6839 ldr r1, [r7, #0] + 800a304: 6878 ldr r0, [r7, #4] + 800a306: f000 f900 bl 800a50a + 800a30a: 4b07 ldr r3, [pc, #28] @ (800a328 ) + 800a30c: 781b ldrb r3, [r3, #0] + 800a30e: 4619 mov r1, r3 + 800a310: 6878 ldr r0, [r7, #4] + 800a312: f7fe ff4e bl 80091b2 + 800a316: 2303 movs r3, #3 + 800a318: 73fb strb r3, [r7, #15] + 800a31a: bf00 nop + 800a31c: 7bfb ldrb r3, [r7, #15] + 800a31e: 4618 mov r0, r3 + 800a320: 3710 adds r7, #16 + 800a322: 46bd mov sp, r7 + 800a324: bd80 pop {r7, pc} + 800a326: bf00 nop + 800a328: 20000dd0 .word 0x20000dd0 - case USBD_IDX_MFC_STR: - if (pdev->pDesc->GetManufacturerStrDescriptor != NULL) - 800a2c0: 687b ldr r3, [r7, #4] - 800a2c2: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a2c6: 689b ldr r3, [r3, #8] - 800a2c8: 2b00 cmp r3, #0 - 800a2ca: d00b beq.n 800a2e4 - { - pbuf = pdev->pDesc->GetManufacturerStrDescriptor(pdev->dev_speed, &len); - 800a2cc: 687b ldr r3, [r7, #4] - 800a2ce: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a2d2: 689b ldr r3, [r3, #8] - 800a2d4: 687a ldr r2, [r7, #4] - 800a2d6: 7c12 ldrb r2, [r2, #16] - 800a2d8: f107 0108 add.w r1, r7, #8 - 800a2dc: 4610 mov r0, r2 - 800a2de: 4798 blx r3 - 800a2e0: 60f8 str r0, [r7, #12] - else - { - USBD_CtlError(pdev, req); - err++; - } - break; - 800a2e2: e077 b.n 800a3d4 - USBD_CtlError(pdev, req); - 800a2e4: 6839 ldr r1, [r7, #0] - 800a2e6: 6878 ldr r0, [r7, #4] - 800a2e8: f000 fab1 bl 800a84e - err++; - 800a2ec: 7afb ldrb r3, [r7, #11] - 800a2ee: 3301 adds r3, #1 - 800a2f0: 72fb strb r3, [r7, #11] - break; - 800a2f2: e06f b.n 800a3d4 +0800a32c : + 800a32c: b580 push {r7, lr} + 800a32e: b082 sub sp, #8 + 800a330: af00 add r7, sp, #0 + 800a332: 6078 str r0, [r7, #4] + 800a334: 6039 str r1, [r7, #0] + 800a336: 683b ldr r3, [r7, #0] + 800a338: 88db ldrh r3, [r3, #6] + 800a33a: 2b01 cmp r3, #1 + 800a33c: d004 beq.n 800a348 + 800a33e: 6839 ldr r1, [r7, #0] + 800a340: 6878 ldr r0, [r7, #4] + 800a342: f000 f8e2 bl 800a50a + 800a346: e023 b.n 800a390 + 800a348: 687b ldr r3, [r7, #4] + 800a34a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800a34e: b2db uxtb r3, r3 + 800a350: 2b02 cmp r3, #2 + 800a352: dc02 bgt.n 800a35a + 800a354: 2b00 cmp r3, #0 + 800a356: dc03 bgt.n 800a360 + 800a358: e015 b.n 800a386 + 800a35a: 2b03 cmp r3, #3 + 800a35c: d00b beq.n 800a376 + 800a35e: e012 b.n 800a386 + 800a360: 687b ldr r3, [r7, #4] + 800a362: 2200 movs r2, #0 + 800a364: 609a str r2, [r3, #8] + 800a366: 687b ldr r3, [r7, #4] + 800a368: 3308 adds r3, #8 + 800a36a: 2201 movs r2, #1 + 800a36c: 4619 mov r1, r3 + 800a36e: 6878 ldr r0, [r7, #4] + 800a370: f000 f948 bl 800a604 + 800a374: e00c b.n 800a390 + 800a376: 687b ldr r3, [r7, #4] + 800a378: 3304 adds r3, #4 + 800a37a: 2201 movs r2, #1 + 800a37c: 4619 mov r1, r3 + 800a37e: 6878 ldr r0, [r7, #4] + 800a380: f000 f940 bl 800a604 + 800a384: e004 b.n 800a390 + 800a386: 6839 ldr r1, [r7, #0] + 800a388: 6878 ldr r0, [r7, #4] + 800a38a: f000 f8be bl 800a50a + 800a38e: bf00 nop + 800a390: bf00 nop + 800a392: 3708 adds r7, #8 + 800a394: 46bd mov sp, r7 + 800a396: bd80 pop {r7, pc} - case USBD_IDX_PRODUCT_STR: - if (pdev->pDesc->GetProductStrDescriptor != NULL) - 800a2f4: 687b ldr r3, [r7, #4] - 800a2f6: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a2fa: 68db ldr r3, [r3, #12] - 800a2fc: 2b00 cmp r3, #0 - 800a2fe: d00b beq.n 800a318 - { - pbuf = pdev->pDesc->GetProductStrDescriptor(pdev->dev_speed, &len); - 800a300: 687b ldr r3, [r7, #4] - 800a302: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a306: 68db ldr r3, [r3, #12] - 800a308: 687a ldr r2, [r7, #4] - 800a30a: 7c12 ldrb r2, [r2, #16] - 800a30c: f107 0108 add.w r1, r7, #8 - 800a310: 4610 mov r0, r2 - 800a312: 4798 blx r3 - 800a314: 60f8 str r0, [r7, #12] - else - { - USBD_CtlError(pdev, req); - err++; - } - break; - 800a316: e05d b.n 800a3d4 - USBD_CtlError(pdev, req); - 800a318: 6839 ldr r1, [r7, #0] - 800a31a: 6878 ldr r0, [r7, #4] - 800a31c: f000 fa97 bl 800a84e - err++; - 800a320: 7afb ldrb r3, [r7, #11] - 800a322: 3301 adds r3, #1 - 800a324: 72fb strb r3, [r7, #11] - break; - 800a326: e055 b.n 800a3d4 - - case USBD_IDX_SERIAL_STR: - if (pdev->pDesc->GetSerialStrDescriptor != NULL) - 800a328: 687b ldr r3, [r7, #4] - 800a32a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a32e: 691b ldr r3, [r3, #16] - 800a330: 2b00 cmp r3, #0 - 800a332: d00b beq.n 800a34c - { - pbuf = pdev->pDesc->GetSerialStrDescriptor(pdev->dev_speed, &len); - 800a334: 687b ldr r3, [r7, #4] - 800a336: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a33a: 691b ldr r3, [r3, #16] - 800a33c: 687a ldr r2, [r7, #4] - 800a33e: 7c12 ldrb r2, [r2, #16] - 800a340: f107 0108 add.w r1, r7, #8 - 800a344: 4610 mov r0, r2 - 800a346: 4798 blx r3 - 800a348: 60f8 str r0, [r7, #12] - else - { - USBD_CtlError(pdev, req); - err++; - } - break; - 800a34a: e043 b.n 800a3d4 - USBD_CtlError(pdev, req); - 800a34c: 6839 ldr r1, [r7, #0] - 800a34e: 6878 ldr r0, [r7, #4] - 800a350: f000 fa7d bl 800a84e - err++; - 800a354: 7afb ldrb r3, [r7, #11] - 800a356: 3301 adds r3, #1 - 800a358: 72fb strb r3, [r7, #11] - break; - 800a35a: e03b b.n 800a3d4 - - case USBD_IDX_CONFIG_STR: - if (pdev->pDesc->GetConfigurationStrDescriptor != NULL) - 800a35c: 687b ldr r3, [r7, #4] - 800a35e: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a362: 695b ldr r3, [r3, #20] - 800a364: 2b00 cmp r3, #0 - 800a366: d00b beq.n 800a380 - { - pbuf = pdev->pDesc->GetConfigurationStrDescriptor(pdev->dev_speed, &len); - 800a368: 687b ldr r3, [r7, #4] - 800a36a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a36e: 695b ldr r3, [r3, #20] - 800a370: 687a ldr r2, [r7, #4] - 800a372: 7c12 ldrb r2, [r2, #16] - 800a374: f107 0108 add.w r1, r7, #8 - 800a378: 4610 mov r0, r2 - 800a37a: 4798 blx r3 - 800a37c: 60f8 str r0, [r7, #12] - else - { - USBD_CtlError(pdev, req); - err++; - } - break; - 800a37e: e029 b.n 800a3d4 - USBD_CtlError(pdev, req); - 800a380: 6839 ldr r1, [r7, #0] - 800a382: 6878 ldr r0, [r7, #4] - 800a384: f000 fa63 bl 800a84e - err++; - 800a388: 7afb ldrb r3, [r7, #11] - 800a38a: 3301 adds r3, #1 - 800a38c: 72fb strb r3, [r7, #11] - break; - 800a38e: e021 b.n 800a3d4 - - case USBD_IDX_INTERFACE_STR: - if (pdev->pDesc->GetInterfaceStrDescriptor != NULL) - 800a390: 687b ldr r3, [r7, #4] - 800a392: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a396: 699b ldr r3, [r3, #24] - 800a398: 2b00 cmp r3, #0 - 800a39a: d00b beq.n 800a3b4 - { - pbuf = pdev->pDesc->GetInterfaceStrDescriptor(pdev->dev_speed, &len); - 800a39c: 687b ldr r3, [r7, #4] - 800a39e: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a3a2: 699b ldr r3, [r3, #24] - 800a3a4: 687a ldr r2, [r7, #4] - 800a3a6: 7c12 ldrb r2, [r2, #16] - 800a3a8: f107 0108 add.w r1, r7, #8 - 800a3ac: 4610 mov r0, r2 - 800a3ae: 4798 blx r3 - 800a3b0: 60f8 str r0, [r7, #12] - else - { - USBD_CtlError(pdev, req); - err++; - } - break; - 800a3b2: e00f b.n 800a3d4 - USBD_CtlError(pdev, req); - 800a3b4: 6839 ldr r1, [r7, #0] - 800a3b6: 6878 ldr r0, [r7, #4] - 800a3b8: f000 fa49 bl 800a84e - err++; - 800a3bc: 7afb ldrb r3, [r7, #11] - 800a3be: 3301 adds r3, #1 - 800a3c0: 72fb strb r3, [r7, #11] - break; - 800a3c2: e007 b.n 800a3d4 - err++; - } -#endif /* USBD_SUPPORT_USER_STRING_DESC */ - -#if ((USBD_CLASS_USER_STRING_DESC == 0U) && (USBD_SUPPORT_USER_STRING_DESC == 0U)) - USBD_CtlError(pdev, req); - 800a3c4: 6839 ldr r1, [r7, #0] - 800a3c6: 6878 ldr r0, [r7, #4] - 800a3c8: f000 fa41 bl 800a84e - err++; - 800a3cc: 7afb ldrb r3, [r7, #11] - 800a3ce: 3301 adds r3, #1 - 800a3d0: 72fb strb r3, [r7, #11] -#endif /* (USBD_CLASS_USER_STRING_DESC == 0U) && (USBD_SUPPORT_USER_STRING_DESC == 0U) */ - break; - 800a3d2: bf00 nop - } - break; - 800a3d4: e037 b.n 800a446 - - case USB_DESC_TYPE_DEVICE_QUALIFIER: - if (pdev->dev_speed == USBD_SPEED_HIGH) - 800a3d6: 687b ldr r3, [r7, #4] - 800a3d8: 7c1b ldrb r3, [r3, #16] - 800a3da: 2b00 cmp r3, #0 - 800a3dc: d109 bne.n 800a3f2 - pbuf = (uint8_t *)USBD_CMPSIT.GetDeviceQualifierDescriptor(&len); - } - else -#endif /* USE_USBD_COMPOSITE */ - { - pbuf = (uint8_t *)pdev->pClass[0]->GetDeviceQualifierDescriptor(&len); +0800a398 : + 800a398: b580 push {r7, lr} + 800a39a: b082 sub sp, #8 + 800a39c: af00 add r7, sp, #0 + 800a39e: 6078 str r0, [r7, #4] + 800a3a0: 6039 str r1, [r7, #0] + 800a3a2: 687b ldr r3, [r7, #4] + 800a3a4: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800a3a8: b2db uxtb r3, r3 + 800a3aa: 3b01 subs r3, #1 + 800a3ac: 2b02 cmp r3, #2 + 800a3ae: d81e bhi.n 800a3ee + 800a3b0: 683b ldr r3, [r7, #0] + 800a3b2: 88db ldrh r3, [r3, #6] + 800a3b4: 2b02 cmp r3, #2 + 800a3b6: d004 beq.n 800a3c2 + 800a3b8: 6839 ldr r1, [r7, #0] + 800a3ba: 6878 ldr r0, [r7, #4] + 800a3bc: f000 f8a5 bl 800a50a + 800a3c0: e01a b.n 800a3f8 + 800a3c2: 687b ldr r3, [r7, #4] + 800a3c4: 2201 movs r2, #1 + 800a3c6: 60da str r2, [r3, #12] + 800a3c8: 687b ldr r3, [r7, #4] + 800a3ca: f8d3 32a4 ldr.w r3, [r3, #676] @ 0x2a4 + 800a3ce: 2b00 cmp r3, #0 + 800a3d0: d005 beq.n 800a3de + 800a3d2: 687b ldr r3, [r7, #4] + 800a3d4: 68db ldr r3, [r3, #12] + 800a3d6: f043 0202 orr.w r2, r3, #2 + 800a3da: 687b ldr r3, [r7, #4] + 800a3dc: 60da str r2, [r3, #12] 800a3de: 687b ldr r3, [r7, #4] - 800a3e0: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 800a3e4: 6b5b ldr r3, [r3, #52] @ 0x34 - 800a3e6: f107 0208 add.w r2, r7, #8 - 800a3ea: 4610 mov r0, r2 - 800a3ec: 4798 blx r3 - 800a3ee: 60f8 str r0, [r7, #12] - else - { - USBD_CtlError(pdev, req); - err++; - } - break; - 800a3f0: e029 b.n 800a446 - USBD_CtlError(pdev, req); - 800a3f2: 6839 ldr r1, [r7, #0] - 800a3f4: 6878 ldr r0, [r7, #4] - 800a3f6: f000 fa2a bl 800a84e - err++; - 800a3fa: 7afb ldrb r3, [r7, #11] - 800a3fc: 3301 adds r3, #1 - 800a3fe: 72fb strb r3, [r7, #11] - break; - 800a400: e021 b.n 800a446 + 800a3e0: 330c adds r3, #12 + 800a3e2: 2202 movs r2, #2 + 800a3e4: 4619 mov r1, r3 + 800a3e6: 6878 ldr r0, [r7, #4] + 800a3e8: f000 f90c bl 800a604 + 800a3ec: e004 b.n 800a3f8 + 800a3ee: 6839 ldr r1, [r7, #0] + 800a3f0: 6878 ldr r0, [r7, #4] + 800a3f2: f000 f88a bl 800a50a + 800a3f6: bf00 nop + 800a3f8: bf00 nop + 800a3fa: 3708 adds r7, #8 + 800a3fc: 46bd mov sp, r7 + 800a3fe: bd80 pop {r7, pc} - case USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION: - if (pdev->dev_speed == USBD_SPEED_HIGH) - 800a402: 687b ldr r3, [r7, #4] - 800a404: 7c1b ldrb r3, [r3, #16] - 800a406: 2b00 cmp r3, #0 - 800a408: d10d bne.n 800a426 - pbuf = (uint8_t *)USBD_CMPSIT.GetOtherSpeedConfigDescriptor(&len); - } - else -#endif /* USE_USBD_COMPOSITE */ - { - pbuf = (uint8_t *)pdev->pClass[0]->GetOtherSpeedConfigDescriptor(&len); - 800a40a: 687b ldr r3, [r7, #4] - 800a40c: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 800a410: 6b1b ldr r3, [r3, #48] @ 0x30 - 800a412: f107 0208 add.w r2, r7, #8 - 800a416: 4610 mov r0, r2 - 800a418: 4798 blx r3 - 800a41a: 60f8 str r0, [r7, #12] - } - pbuf[1] = USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION; - 800a41c: 68fb ldr r3, [r7, #12] - 800a41e: 3301 adds r3, #1 - 800a420: 2207 movs r2, #7 - 800a422: 701a strb r2, [r3, #0] - else - { - USBD_CtlError(pdev, req); - err++; - } - break; - 800a424: e00f b.n 800a446 - USBD_CtlError(pdev, req); - 800a426: 6839 ldr r1, [r7, #0] - 800a428: 6878 ldr r0, [r7, #4] - 800a42a: f000 fa10 bl 800a84e - err++; - 800a42e: 7afb ldrb r3, [r7, #11] - 800a430: 3301 adds r3, #1 - 800a432: 72fb strb r3, [r7, #11] - break; - 800a434: e007 b.n 800a446 +0800a400 : + 800a400: b580 push {r7, lr} + 800a402: b082 sub sp, #8 + 800a404: af00 add r7, sp, #0 + 800a406: 6078 str r0, [r7, #4] + 800a408: 6039 str r1, [r7, #0] + 800a40a: 683b ldr r3, [r7, #0] + 800a40c: 885b ldrh r3, [r3, #2] + 800a40e: 2b01 cmp r3, #1 + 800a410: d107 bne.n 800a422 + 800a412: 687b ldr r3, [r7, #4] + 800a414: 2201 movs r2, #1 + 800a416: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 + 800a41a: 6878 ldr r0, [r7, #4] + 800a41c: f000 f932 bl 800a684 + 800a420: e013 b.n 800a44a + 800a422: 683b ldr r3, [r7, #0] + 800a424: 885b ldrh r3, [r3, #2] + 800a426: 2b02 cmp r3, #2 + 800a428: d10b bne.n 800a442 + 800a42a: 683b ldr r3, [r7, #0] + 800a42c: 889b ldrh r3, [r3, #4] + 800a42e: 0a1b lsrs r3, r3, #8 + 800a430: b29b uxth r3, r3 + 800a432: b2da uxtb r2, r3 + 800a434: 687b ldr r3, [r7, #4] + 800a436: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 + 800a43a: 6878 ldr r0, [r7, #4] + 800a43c: f000 f922 bl 800a684 + 800a440: e003 b.n 800a44a + 800a442: 6839 ldr r1, [r7, #0] + 800a444: 6878 ldr r0, [r7, #4] + 800a446: f000 f860 bl 800a50a + 800a44a: bf00 nop + 800a44c: 3708 adds r7, #8 + 800a44e: 46bd mov sp, r7 + 800a450: bd80 pop {r7, pc} - default: - USBD_CtlError(pdev, req); - 800a436: 6839 ldr r1, [r7, #0] - 800a438: 6878 ldr r0, [r7, #4] - 800a43a: f000 fa08 bl 800a84e - err++; - 800a43e: 7afb ldrb r3, [r7, #11] - 800a440: 3301 adds r3, #1 - 800a442: 72fb strb r3, [r7, #11] - break; - 800a444: bf00 nop - } - - if (err != 0U) - 800a446: 7afb ldrb r3, [r7, #11] - 800a448: 2b00 cmp r3, #0 - 800a44a: d11e bne.n 800a48a - { - return; - } - - if (req->wLength != 0U) - 800a44c: 683b ldr r3, [r7, #0] - 800a44e: 88db ldrh r3, [r3, #6] - 800a450: 2b00 cmp r3, #0 - 800a452: d016 beq.n 800a482 - { - if (len != 0U) - 800a454: 893b ldrh r3, [r7, #8] - 800a456: 2b00 cmp r3, #0 - 800a458: d00e beq.n 800a478 - { - len = MIN(len, req->wLength); - 800a45a: 683b ldr r3, [r7, #0] - 800a45c: 88da ldrh r2, [r3, #6] - 800a45e: 893b ldrh r3, [r7, #8] - 800a460: 4293 cmp r3, r2 - 800a462: bf28 it cs - 800a464: 4613 movcs r3, r2 - 800a466: b29b uxth r3, r3 - 800a468: 813b strh r3, [r7, #8] - (void)USBD_CtlSendData(pdev, pbuf, len); - 800a46a: 893b ldrh r3, [r7, #8] - 800a46c: 461a mov r2, r3 - 800a46e: 68f9 ldr r1, [r7, #12] - 800a470: 6878 ldr r0, [r7, #4] - 800a472: f000 fa69 bl 800a948 - 800a476: e009 b.n 800a48c - } - else - { - USBD_CtlError(pdev, req); - 800a478: 6839 ldr r1, [r7, #0] +0800a452 : + 800a452: b580 push {r7, lr} + 800a454: b082 sub sp, #8 + 800a456: af00 add r7, sp, #0 + 800a458: 6078 str r0, [r7, #4] + 800a45a: 6039 str r1, [r7, #0] + 800a45c: 687b ldr r3, [r7, #4] + 800a45e: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800a462: b2db uxtb r3, r3 + 800a464: 3b01 subs r3, #1 + 800a466: 2b02 cmp r3, #2 + 800a468: d80b bhi.n 800a482 + 800a46a: 683b ldr r3, [r7, #0] + 800a46c: 885b ldrh r3, [r3, #2] + 800a46e: 2b01 cmp r3, #1 + 800a470: d10c bne.n 800a48c + 800a472: 687b ldr r3, [r7, #4] + 800a474: 2200 movs r2, #0 + 800a476: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 800a47a: 6878 ldr r0, [r7, #4] - 800a47c: f000 f9e7 bl 800a84e - 800a480: e004 b.n 800a48c - } - } - else - { - (void)USBD_CtlSendStatus(pdev); - 800a482: 6878 ldr r0, [r7, #4] - 800a484: f000 faa0 bl 800a9c8 - 800a488: e000 b.n 800a48c - return; - 800a48a: bf00 nop - } -} - 800a48c: 3710 adds r7, #16 - 800a48e: 46bd mov sp, r7 - 800a490: bd80 pop {r7, pc} - 800a492: bf00 nop + 800a47c: f000 f902 bl 800a684 + 800a480: e004 b.n 800a48c + 800a482: 6839 ldr r1, [r7, #0] + 800a484: 6878 ldr r0, [r7, #4] + 800a486: f000 f840 bl 800a50a + 800a48a: e000 b.n 800a48e + 800a48c: bf00 nop + 800a48e: bf00 nop + 800a490: 3708 adds r7, #8 + 800a492: 46bd mov sp, r7 + 800a494: bd80 pop {r7, pc} -0800a494 : - * @param pdev: device instance - * @param req: usb request - * @retval None - */ -static void USBD_SetAddress(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) -{ - 800a494: b580 push {r7, lr} - 800a496: b084 sub sp, #16 - 800a498: af00 add r7, sp, #0 - 800a49a: 6078 str r0, [r7, #4] - 800a49c: 6039 str r1, [r7, #0] - uint8_t dev_addr; +0800a496 : + 800a496: b580 push {r7, lr} + 800a498: b084 sub sp, #16 + 800a49a: af00 add r7, sp, #0 + 800a49c: 6078 str r0, [r7, #4] + 800a49e: 6039 str r1, [r7, #0] + 800a4a0: 683b ldr r3, [r7, #0] + 800a4a2: 60fb str r3, [r7, #12] + 800a4a4: 68fb ldr r3, [r7, #12] + 800a4a6: 781a ldrb r2, [r3, #0] + 800a4a8: 687b ldr r3, [r7, #4] + 800a4aa: 701a strb r2, [r3, #0] + 800a4ac: 68fb ldr r3, [r7, #12] + 800a4ae: 3301 adds r3, #1 + 800a4b0: 60fb str r3, [r7, #12] + 800a4b2: 68fb ldr r3, [r7, #12] + 800a4b4: 781a ldrb r2, [r3, #0] + 800a4b6: 687b ldr r3, [r7, #4] + 800a4b8: 705a strb r2, [r3, #1] + 800a4ba: 68fb ldr r3, [r7, #12] + 800a4bc: 3301 adds r3, #1 + 800a4be: 60fb str r3, [r7, #12] + 800a4c0: 68f8 ldr r0, [r7, #12] + 800a4c2: f7ff fa13 bl 80098ec + 800a4c6: 4603 mov r3, r0 + 800a4c8: 461a mov r2, r3 + 800a4ca: 687b ldr r3, [r7, #4] + 800a4cc: 805a strh r2, [r3, #2] + 800a4ce: 68fb ldr r3, [r7, #12] + 800a4d0: 3301 adds r3, #1 + 800a4d2: 60fb str r3, [r7, #12] + 800a4d4: 68fb ldr r3, [r7, #12] + 800a4d6: 3301 adds r3, #1 + 800a4d8: 60fb str r3, [r7, #12] + 800a4da: 68f8 ldr r0, [r7, #12] + 800a4dc: f7ff fa06 bl 80098ec + 800a4e0: 4603 mov r3, r0 + 800a4e2: 461a mov r2, r3 + 800a4e4: 687b ldr r3, [r7, #4] + 800a4e6: 809a strh r2, [r3, #4] + 800a4e8: 68fb ldr r3, [r7, #12] + 800a4ea: 3301 adds r3, #1 + 800a4ec: 60fb str r3, [r7, #12] + 800a4ee: 68fb ldr r3, [r7, #12] + 800a4f0: 3301 adds r3, #1 + 800a4f2: 60fb str r3, [r7, #12] + 800a4f4: 68f8 ldr r0, [r7, #12] + 800a4f6: f7ff f9f9 bl 80098ec + 800a4fa: 4603 mov r3, r0 + 800a4fc: 461a mov r2, r3 + 800a4fe: 687b ldr r3, [r7, #4] + 800a500: 80da strh r2, [r3, #6] + 800a502: bf00 nop + 800a504: 3710 adds r7, #16 + 800a506: 46bd mov sp, r7 + 800a508: bd80 pop {r7, pc} - if ((req->wIndex == 0U) && (req->wLength == 0U) && (req->wValue < 128U)) - 800a49e: 683b ldr r3, [r7, #0] - 800a4a0: 889b ldrh r3, [r3, #4] - 800a4a2: 2b00 cmp r3, #0 - 800a4a4: d131 bne.n 800a50a - 800a4a6: 683b ldr r3, [r7, #0] - 800a4a8: 88db ldrh r3, [r3, #6] - 800a4aa: 2b00 cmp r3, #0 - 800a4ac: d12d bne.n 800a50a - 800a4ae: 683b ldr r3, [r7, #0] - 800a4b0: 885b ldrh r3, [r3, #2] - 800a4b2: 2b7f cmp r3, #127 @ 0x7f - 800a4b4: d829 bhi.n 800a50a - { - dev_addr = (uint8_t)(req->wValue) & 0x7FU; - 800a4b6: 683b ldr r3, [r7, #0] - 800a4b8: 885b ldrh r3, [r3, #2] - 800a4ba: b2db uxtb r3, r3 - 800a4bc: f003 037f and.w r3, r3, #127 @ 0x7f - 800a4c0: 73fb strb r3, [r7, #15] +0800a50a : + 800a50a: b580 push {r7, lr} + 800a50c: b082 sub sp, #8 + 800a50e: af00 add r7, sp, #0 + 800a510: 6078 str r0, [r7, #4] + 800a512: 6039 str r1, [r7, #0] + 800a514: 2180 movs r1, #128 @ 0x80 + 800a516: 6878 ldr r0, [r7, #4] + 800a518: f000 fc2a bl 800ad70 + 800a51c: 2100 movs r1, #0 + 800a51e: 6878 ldr r0, [r7, #4] + 800a520: f000 fc26 bl 800ad70 + 800a524: bf00 nop + 800a526: 3708 adds r7, #8 + 800a528: 46bd mov sp, r7 + 800a52a: bd80 pop {r7, pc} - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 800a4c2: 687b ldr r3, [r7, #4] - 800a4c4: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800a4c8: b2db uxtb r3, r3 - 800a4ca: 2b03 cmp r3, #3 - 800a4cc: d104 bne.n 800a4d8 - { - USBD_CtlError(pdev, req); - 800a4ce: 6839 ldr r1, [r7, #0] - 800a4d0: 6878 ldr r0, [r7, #4] - 800a4d2: f000 f9bc bl 800a84e - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 800a4d6: e01d b.n 800a514 - } - else - { - pdev->dev_address = dev_addr; - 800a4d8: 687b ldr r3, [r7, #4] - 800a4da: 7bfa ldrb r2, [r7, #15] - 800a4dc: f883 229e strb.w r2, [r3, #670] @ 0x29e - (void)USBD_LL_SetUSBAddress(pdev, dev_addr); - 800a4e0: 7bfb ldrb r3, [r7, #15] - 800a4e2: 4619 mov r1, r3 - 800a4e4: 6878 ldr r0, [r7, #4] - 800a4e6: f000 fe4f bl 800b188 - (void)USBD_CtlSendStatus(pdev); - 800a4ea: 6878 ldr r0, [r7, #4] - 800a4ec: f000 fa6c bl 800a9c8 +0800a52c : + 800a52c: b580 push {r7, lr} + 800a52e: b086 sub sp, #24 + 800a530: af00 add r7, sp, #0 + 800a532: 60f8 str r0, [r7, #12] + 800a534: 60b9 str r1, [r7, #8] + 800a536: 607a str r2, [r7, #4] + 800a538: 2300 movs r3, #0 + 800a53a: 75fb strb r3, [r7, #23] + 800a53c: 68fb ldr r3, [r7, #12] + 800a53e: 2b00 cmp r3, #0 + 800a540: d042 beq.n 800a5c8 + 800a542: 68fb ldr r3, [r7, #12] + 800a544: 613b str r3, [r7, #16] + 800a546: 6938 ldr r0, [r7, #16] + 800a548: f000 f842 bl 800a5d0 + 800a54c: 4603 mov r3, r0 + 800a54e: 3301 adds r3, #1 + 800a550: 005b lsls r3, r3, #1 + 800a552: f5b3 7f00 cmp.w r3, #512 @ 0x200 + 800a556: d808 bhi.n 800a56a + 800a558: 6938 ldr r0, [r7, #16] + 800a55a: f000 f839 bl 800a5d0 + 800a55e: 4603 mov r3, r0 + 800a560: 3301 adds r3, #1 + 800a562: b29b uxth r3, r3 + 800a564: 005b lsls r3, r3, #1 + 800a566: b29a uxth r2, r3 + 800a568: e001 b.n 800a56e + 800a56a: f44f 7200 mov.w r2, #512 @ 0x200 + 800a56e: 687b ldr r3, [r7, #4] + 800a570: 801a strh r2, [r3, #0] + 800a572: 7dfb ldrb r3, [r7, #23] + 800a574: 68ba ldr r2, [r7, #8] + 800a576: 4413 add r3, r2 + 800a578: 687a ldr r2, [r7, #4] + 800a57a: 7812 ldrb r2, [r2, #0] + 800a57c: 701a strb r2, [r3, #0] + 800a57e: 7dfb ldrb r3, [r7, #23] + 800a580: 3301 adds r3, #1 + 800a582: 75fb strb r3, [r7, #23] + 800a584: 7dfb ldrb r3, [r7, #23] + 800a586: 68ba ldr r2, [r7, #8] + 800a588: 4413 add r3, r2 + 800a58a: 2203 movs r2, #3 + 800a58c: 701a strb r2, [r3, #0] + 800a58e: 7dfb ldrb r3, [r7, #23] + 800a590: 3301 adds r3, #1 + 800a592: 75fb strb r3, [r7, #23] + 800a594: e013 b.n 800a5be + 800a596: 7dfb ldrb r3, [r7, #23] + 800a598: 68ba ldr r2, [r7, #8] + 800a59a: 4413 add r3, r2 + 800a59c: 693a ldr r2, [r7, #16] + 800a59e: 7812 ldrb r2, [r2, #0] + 800a5a0: 701a strb r2, [r3, #0] + 800a5a2: 693b ldr r3, [r7, #16] + 800a5a4: 3301 adds r3, #1 + 800a5a6: 613b str r3, [r7, #16] + 800a5a8: 7dfb ldrb r3, [r7, #23] + 800a5aa: 3301 adds r3, #1 + 800a5ac: 75fb strb r3, [r7, #23] + 800a5ae: 7dfb ldrb r3, [r7, #23] + 800a5b0: 68ba ldr r2, [r7, #8] + 800a5b2: 4413 add r3, r2 + 800a5b4: 2200 movs r2, #0 + 800a5b6: 701a strb r2, [r3, #0] + 800a5b8: 7dfb ldrb r3, [r7, #23] + 800a5ba: 3301 adds r3, #1 + 800a5bc: 75fb strb r3, [r7, #23] + 800a5be: 693b ldr r3, [r7, #16] + 800a5c0: 781b ldrb r3, [r3, #0] + 800a5c2: 2b00 cmp r3, #0 + 800a5c4: d1e7 bne.n 800a596 + 800a5c6: e000 b.n 800a5ca + 800a5c8: bf00 nop + 800a5ca: 3718 adds r7, #24 + 800a5cc: 46bd mov sp, r7 + 800a5ce: bd80 pop {r7, pc} - if (dev_addr != 0U) - 800a4f0: 7bfb ldrb r3, [r7, #15] - 800a4f2: 2b00 cmp r3, #0 - 800a4f4: d004 beq.n 800a500 - { - pdev->dev_state = USBD_STATE_ADDRESSED; - 800a4f6: 687b ldr r3, [r7, #4] - 800a4f8: 2202 movs r2, #2 - 800a4fa: f883 229c strb.w r2, [r3, #668] @ 0x29c - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 800a4fe: e009 b.n 800a514 - } - else - { - pdev->dev_state = USBD_STATE_DEFAULT; - 800a500: 687b ldr r3, [r7, #4] - 800a502: 2201 movs r2, #1 - 800a504: f883 229c strb.w r2, [r3, #668] @ 0x29c - if (pdev->dev_state == USBD_STATE_CONFIGURED) - 800a508: e004 b.n 800a514 - } - } - } - else - { - USBD_CtlError(pdev, req); - 800a50a: 6839 ldr r1, [r7, #0] - 800a50c: 6878 ldr r0, [r7, #4] - 800a50e: f000 f99e bl 800a84e - } -} - 800a512: bf00 nop - 800a514: bf00 nop - 800a516: 3710 adds r7, #16 - 800a518: 46bd mov sp, r7 - 800a51a: bd80 pop {r7, pc} +0800a5d0 : + 800a5d0: b480 push {r7} + 800a5d2: b085 sub sp, #20 + 800a5d4: af00 add r7, sp, #0 + 800a5d6: 6078 str r0, [r7, #4] + 800a5d8: 2300 movs r3, #0 + 800a5da: 73fb strb r3, [r7, #15] + 800a5dc: 687b ldr r3, [r7, #4] + 800a5de: 60bb str r3, [r7, #8] + 800a5e0: e005 b.n 800a5ee + 800a5e2: 7bfb ldrb r3, [r7, #15] + 800a5e4: 3301 adds r3, #1 + 800a5e6: 73fb strb r3, [r7, #15] + 800a5e8: 68bb ldr r3, [r7, #8] + 800a5ea: 3301 adds r3, #1 + 800a5ec: 60bb str r3, [r7, #8] + 800a5ee: 68bb ldr r3, [r7, #8] + 800a5f0: 781b ldrb r3, [r3, #0] + 800a5f2: 2b00 cmp r3, #0 + 800a5f4: d1f5 bne.n 800a5e2 + 800a5f6: 7bfb ldrb r3, [r7, #15] + 800a5f8: 4618 mov r0, r3 + 800a5fa: 3714 adds r7, #20 + 800a5fc: 46bd mov sp, r7 + 800a5fe: f85d 7b04 ldr.w r7, [sp], #4 + 800a602: 4770 bx lr -0800a51c : - * @param pdev: device instance - * @param req: usb request - * @retval status - */ -static USBD_StatusTypeDef USBD_SetConfig(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) -{ - 800a51c: b580 push {r7, lr} - 800a51e: b084 sub sp, #16 - 800a520: af00 add r7, sp, #0 - 800a522: 6078 str r0, [r7, #4] - 800a524: 6039 str r1, [r7, #0] - USBD_StatusTypeDef ret = USBD_OK; - 800a526: 2300 movs r3, #0 - 800a528: 73fb strb r3, [r7, #15] - static uint8_t cfgidx; +0800a604 : + 800a604: b580 push {r7, lr} + 800a606: b084 sub sp, #16 + 800a608: af00 add r7, sp, #0 + 800a60a: 60f8 str r0, [r7, #12] + 800a60c: 60b9 str r1, [r7, #8] + 800a60e: 607a str r2, [r7, #4] + 800a610: 68fb ldr r3, [r7, #12] + 800a612: 2202 movs r2, #2 + 800a614: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 800a618: 68fb ldr r3, [r7, #12] + 800a61a: 687a ldr r2, [r7, #4] + 800a61c: 615a str r2, [r3, #20] + 800a61e: 68fb ldr r3, [r7, #12] + 800a620: 68ba ldr r2, [r7, #8] + 800a622: 625a str r2, [r3, #36] @ 0x24 + 800a624: 68fb ldr r3, [r7, #12] + 800a626: 687a ldr r2, [r7, #4] + 800a628: 619a str r2, [r3, #24] + 800a62a: 687b ldr r3, [r7, #4] + 800a62c: 68ba ldr r2, [r7, #8] + 800a62e: 2100 movs r1, #0 + 800a630: 68f8 ldr r0, [r7, #12] + 800a632: f000 fc26 bl 800ae82 + 800a636: 2300 movs r3, #0 + 800a638: 4618 mov r0, r3 + 800a63a: 3710 adds r7, #16 + 800a63c: 46bd mov sp, r7 + 800a63e: bd80 pop {r7, pc} - cfgidx = (uint8_t)(req->wValue); - 800a52a: 683b ldr r3, [r7, #0] - 800a52c: 885b ldrh r3, [r3, #2] - 800a52e: b2da uxtb r2, r3 - 800a530: 4b4e ldr r3, [pc, #312] @ (800a66c ) - 800a532: 701a strb r2, [r3, #0] +0800a640 : + 800a640: b580 push {r7, lr} + 800a642: b084 sub sp, #16 + 800a644: af00 add r7, sp, #0 + 800a646: 60f8 str r0, [r7, #12] + 800a648: 60b9 str r1, [r7, #8] + 800a64a: 607a str r2, [r7, #4] + 800a64c: 687b ldr r3, [r7, #4] + 800a64e: 68ba ldr r2, [r7, #8] + 800a650: 2100 movs r1, #0 + 800a652: 68f8 ldr r0, [r7, #12] + 800a654: f000 fc15 bl 800ae82 + 800a658: 2300 movs r3, #0 + 800a65a: 4618 mov r0, r3 + 800a65c: 3710 adds r7, #16 + 800a65e: 46bd mov sp, r7 + 800a660: bd80 pop {r7, pc} - if (cfgidx > USBD_MAX_NUM_CONFIGURATION) - 800a534: 4b4d ldr r3, [pc, #308] @ (800a66c ) - 800a536: 781b ldrb r3, [r3, #0] - 800a538: 2b01 cmp r3, #1 - 800a53a: d905 bls.n 800a548 - { - USBD_CtlError(pdev, req); - 800a53c: 6839 ldr r1, [r7, #0] - 800a53e: 6878 ldr r0, [r7, #4] - 800a540: f000 f985 bl 800a84e - return USBD_FAIL; - 800a544: 2303 movs r3, #3 - 800a546: e08c b.n 800a662 - } +0800a662 : + 800a662: b580 push {r7, lr} + 800a664: b084 sub sp, #16 + 800a666: af00 add r7, sp, #0 + 800a668: 60f8 str r0, [r7, #12] + 800a66a: 60b9 str r1, [r7, #8] + 800a66c: 607a str r2, [r7, #4] + 800a66e: 687b ldr r3, [r7, #4] + 800a670: 68ba ldr r2, [r7, #8] + 800a672: 2100 movs r1, #0 + 800a674: 68f8 ldr r0, [r7, #12] + 800a676: f000 fc25 bl 800aec4 + 800a67a: 2300 movs r3, #0 + 800a67c: 4618 mov r0, r3 + 800a67e: 3710 adds r7, #16 + 800a680: 46bd mov sp, r7 + 800a682: bd80 pop {r7, pc} - switch (pdev->dev_state) - 800a548: 687b ldr r3, [r7, #4] - 800a54a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800a54e: b2db uxtb r3, r3 - 800a550: 2b02 cmp r3, #2 - 800a552: d002 beq.n 800a55a - 800a554: 2b03 cmp r3, #3 - 800a556: d029 beq.n 800a5ac - 800a558: e075 b.n 800a646 - { - case USBD_STATE_ADDRESSED: - if (cfgidx != 0U) - 800a55a: 4b44 ldr r3, [pc, #272] @ (800a66c ) - 800a55c: 781b ldrb r3, [r3, #0] - 800a55e: 2b00 cmp r3, #0 - 800a560: d020 beq.n 800a5a4 - { - pdev->dev_config = cfgidx; - 800a562: 4b42 ldr r3, [pc, #264] @ (800a66c ) - 800a564: 781b ldrb r3, [r3, #0] - 800a566: 461a mov r2, r3 - 800a568: 687b ldr r3, [r7, #4] - 800a56a: 605a str r2, [r3, #4] - - ret = USBD_SetClassConfig(pdev, cfgidx); - 800a56c: 4b3f ldr r3, [pc, #252] @ (800a66c ) - 800a56e: 781b ldrb r3, [r3, #0] - 800a570: 4619 mov r1, r3 - 800a572: 6878 ldr r0, [r7, #4] - 800a574: f7fe ffa3 bl 80094be - 800a578: 4603 mov r3, r0 - 800a57a: 73fb strb r3, [r7, #15] - - if (ret != USBD_OK) - 800a57c: 7bfb ldrb r3, [r7, #15] - 800a57e: 2b00 cmp r3, #0 - 800a580: d008 beq.n 800a594 - { - USBD_CtlError(pdev, req); - 800a582: 6839 ldr r1, [r7, #0] - 800a584: 6878 ldr r0, [r7, #4] - 800a586: f000 f962 bl 800a84e - pdev->dev_state = USBD_STATE_ADDRESSED; - 800a58a: 687b ldr r3, [r7, #4] - 800a58c: 2202 movs r2, #2 - 800a58e: f883 229c strb.w r2, [r3, #668] @ 0x29c - } - else - { - (void)USBD_CtlSendStatus(pdev); - } - break; - 800a592: e065 b.n 800a660 - (void)USBD_CtlSendStatus(pdev); - 800a594: 6878 ldr r0, [r7, #4] - 800a596: f000 fa17 bl 800a9c8 - pdev->dev_state = USBD_STATE_CONFIGURED; - 800a59a: 687b ldr r3, [r7, #4] - 800a59c: 2203 movs r2, #3 - 800a59e: f883 229c strb.w r2, [r3, #668] @ 0x29c - break; - 800a5a2: e05d b.n 800a660 - (void)USBD_CtlSendStatus(pdev); - 800a5a4: 6878 ldr r0, [r7, #4] - 800a5a6: f000 fa0f bl 800a9c8 - break; - 800a5aa: e059 b.n 800a660 - - case USBD_STATE_CONFIGURED: - if (cfgidx == 0U) - 800a5ac: 4b2f ldr r3, [pc, #188] @ (800a66c ) - 800a5ae: 781b ldrb r3, [r3, #0] - 800a5b0: 2b00 cmp r3, #0 - 800a5b2: d112 bne.n 800a5da - { - pdev->dev_state = USBD_STATE_ADDRESSED; - 800a5b4: 687b ldr r3, [r7, #4] - 800a5b6: 2202 movs r2, #2 - 800a5b8: f883 229c strb.w r2, [r3, #668] @ 0x29c - pdev->dev_config = cfgidx; - 800a5bc: 4b2b ldr r3, [pc, #172] @ (800a66c ) - 800a5be: 781b ldrb r3, [r3, #0] - 800a5c0: 461a mov r2, r3 - 800a5c2: 687b ldr r3, [r7, #4] - 800a5c4: 605a str r2, [r3, #4] - (void)USBD_ClrClassConfig(pdev, cfgidx); - 800a5c6: 4b29 ldr r3, [pc, #164] @ (800a66c ) - 800a5c8: 781b ldrb r3, [r3, #0] - 800a5ca: 4619 mov r1, r3 - 800a5cc: 6878 ldr r0, [r7, #4] - 800a5ce: f7fe ff92 bl 80094f6 - (void)USBD_CtlSendStatus(pdev); - 800a5d2: 6878 ldr r0, [r7, #4] - 800a5d4: f000 f9f8 bl 800a9c8 - } - else - { - (void)USBD_CtlSendStatus(pdev); - } - break; - 800a5d8: e042 b.n 800a660 - else if (cfgidx != pdev->dev_config) - 800a5da: 4b24 ldr r3, [pc, #144] @ (800a66c ) - 800a5dc: 781b ldrb r3, [r3, #0] - 800a5de: 461a mov r2, r3 - 800a5e0: 687b ldr r3, [r7, #4] - 800a5e2: 685b ldr r3, [r3, #4] - 800a5e4: 429a cmp r2, r3 - 800a5e6: d02a beq.n 800a63e - (void)USBD_ClrClassConfig(pdev, (uint8_t)pdev->dev_config); - 800a5e8: 687b ldr r3, [r7, #4] - 800a5ea: 685b ldr r3, [r3, #4] - 800a5ec: b2db uxtb r3, r3 - 800a5ee: 4619 mov r1, r3 - 800a5f0: 6878 ldr r0, [r7, #4] - 800a5f2: f7fe ff80 bl 80094f6 - pdev->dev_config = cfgidx; - 800a5f6: 4b1d ldr r3, [pc, #116] @ (800a66c ) - 800a5f8: 781b ldrb r3, [r3, #0] - 800a5fa: 461a mov r2, r3 - 800a5fc: 687b ldr r3, [r7, #4] - 800a5fe: 605a str r2, [r3, #4] - ret = USBD_SetClassConfig(pdev, cfgidx); - 800a600: 4b1a ldr r3, [pc, #104] @ (800a66c ) - 800a602: 781b ldrb r3, [r3, #0] - 800a604: 4619 mov r1, r3 - 800a606: 6878 ldr r0, [r7, #4] - 800a608: f7fe ff59 bl 80094be - 800a60c: 4603 mov r3, r0 - 800a60e: 73fb strb r3, [r7, #15] - if (ret != USBD_OK) - 800a610: 7bfb ldrb r3, [r7, #15] - 800a612: 2b00 cmp r3, #0 - 800a614: d00f beq.n 800a636 - USBD_CtlError(pdev, req); - 800a616: 6839 ldr r1, [r7, #0] - 800a618: 6878 ldr r0, [r7, #4] - 800a61a: f000 f918 bl 800a84e - (void)USBD_ClrClassConfig(pdev, (uint8_t)pdev->dev_config); - 800a61e: 687b ldr r3, [r7, #4] - 800a620: 685b ldr r3, [r3, #4] - 800a622: b2db uxtb r3, r3 - 800a624: 4619 mov r1, r3 - 800a626: 6878 ldr r0, [r7, #4] - 800a628: f7fe ff65 bl 80094f6 - pdev->dev_state = USBD_STATE_ADDRESSED; - 800a62c: 687b ldr r3, [r7, #4] - 800a62e: 2202 movs r2, #2 - 800a630: f883 229c strb.w r2, [r3, #668] @ 0x29c - break; - 800a634: e014 b.n 800a660 - (void)USBD_CtlSendStatus(pdev); - 800a636: 6878 ldr r0, [r7, #4] - 800a638: f000 f9c6 bl 800a9c8 - break; - 800a63c: e010 b.n 800a660 - (void)USBD_CtlSendStatus(pdev); - 800a63e: 6878 ldr r0, [r7, #4] - 800a640: f000 f9c2 bl 800a9c8 - break; - 800a644: e00c b.n 800a660 - - default: - USBD_CtlError(pdev, req); - 800a646: 6839 ldr r1, [r7, #0] - 800a648: 6878 ldr r0, [r7, #4] - 800a64a: f000 f900 bl 800a84e - (void)USBD_ClrClassConfig(pdev, cfgidx); - 800a64e: 4b07 ldr r3, [pc, #28] @ (800a66c ) - 800a650: 781b ldrb r3, [r3, #0] - 800a652: 4619 mov r1, r3 - 800a654: 6878 ldr r0, [r7, #4] - 800a656: f7fe ff4e bl 80094f6 - ret = USBD_FAIL; - 800a65a: 2303 movs r3, #3 - 800a65c: 73fb strb r3, [r7, #15] - break; - 800a65e: bf00 nop - } - - return ret; - 800a660: 7bfb ldrb r3, [r7, #15] -} - 800a662: 4618 mov r0, r3 - 800a664: 3710 adds r7, #16 - 800a666: 46bd mov sp, r7 - 800a668: bd80 pop {r7, pc} - 800a66a: bf00 nop - 800a66c: 20000e24 .word 0x20000e24 - -0800a670 : - * @param pdev: device instance - * @param req: usb request - * @retval None - */ -static void USBD_GetConfig(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) -{ - 800a670: b580 push {r7, lr} - 800a672: b082 sub sp, #8 - 800a674: af00 add r7, sp, #0 - 800a676: 6078 str r0, [r7, #4] - 800a678: 6039 str r1, [r7, #0] - if (req->wLength != 1U) - 800a67a: 683b ldr r3, [r7, #0] - 800a67c: 88db ldrh r3, [r3, #6] - 800a67e: 2b01 cmp r3, #1 - 800a680: d004 beq.n 800a68c - { - USBD_CtlError(pdev, req); - 800a682: 6839 ldr r1, [r7, #0] - 800a684: 6878 ldr r0, [r7, #4] - 800a686: f000 f8e2 bl 800a84e - default: - USBD_CtlError(pdev, req); - break; - } - } -} - 800a68a: e023 b.n 800a6d4 - switch (pdev->dev_state) +0800a684 : + 800a684: b580 push {r7, lr} + 800a686: b082 sub sp, #8 + 800a688: af00 add r7, sp, #0 + 800a68a: 6078 str r0, [r7, #4] 800a68c: 687b ldr r3, [r7, #4] - 800a68e: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800a692: b2db uxtb r3, r3 - 800a694: 2b02 cmp r3, #2 - 800a696: dc02 bgt.n 800a69e - 800a698: 2b00 cmp r3, #0 - 800a69a: dc03 bgt.n 800a6a4 - 800a69c: e015 b.n 800a6ca - 800a69e: 2b03 cmp r3, #3 - 800a6a0: d00b beq.n 800a6ba - 800a6a2: e012 b.n 800a6ca - pdev->dev_default_config = 0U; - 800a6a4: 687b ldr r3, [r7, #4] - 800a6a6: 2200 movs r2, #0 - 800a6a8: 609a str r2, [r3, #8] - (void)USBD_CtlSendData(pdev, (uint8_t *)&pdev->dev_default_config, 1U); - 800a6aa: 687b ldr r3, [r7, #4] - 800a6ac: 3308 adds r3, #8 - 800a6ae: 2201 movs r2, #1 - 800a6b0: 4619 mov r1, r3 - 800a6b2: 6878 ldr r0, [r7, #4] - 800a6b4: f000 f948 bl 800a948 - break; - 800a6b8: e00c b.n 800a6d4 - (void)USBD_CtlSendData(pdev, (uint8_t *)&pdev->dev_config, 1U); - 800a6ba: 687b ldr r3, [r7, #4] - 800a6bc: 3304 adds r3, #4 - 800a6be: 2201 movs r2, #1 - 800a6c0: 4619 mov r1, r3 - 800a6c2: 6878 ldr r0, [r7, #4] - 800a6c4: f000 f940 bl 800a948 - break; - 800a6c8: e004 b.n 800a6d4 - USBD_CtlError(pdev, req); - 800a6ca: 6839 ldr r1, [r7, #0] - 800a6cc: 6878 ldr r0, [r7, #4] - 800a6ce: f000 f8be bl 800a84e - break; - 800a6d2: bf00 nop -} - 800a6d4: bf00 nop - 800a6d6: 3708 adds r7, #8 - 800a6d8: 46bd mov sp, r7 - 800a6da: bd80 pop {r7, pc} + 800a68e: 2204 movs r2, #4 + 800a690: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 800a694: 2300 movs r3, #0 + 800a696: 2200 movs r2, #0 + 800a698: 2100 movs r1, #0 + 800a69a: 6878 ldr r0, [r7, #4] + 800a69c: f000 fbf1 bl 800ae82 + 800a6a0: 2300 movs r3, #0 + 800a6a2: 4618 mov r0, r3 + 800a6a4: 3708 adds r7, #8 + 800a6a6: 46bd mov sp, r7 + 800a6a8: bd80 pop {r7, pc} -0800a6dc : - * @param pdev: device instance - * @param req: usb request - * @retval None - */ -static void USBD_GetStatus(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) -{ - 800a6dc: b580 push {r7, lr} - 800a6de: b082 sub sp, #8 - 800a6e0: af00 add r7, sp, #0 - 800a6e2: 6078 str r0, [r7, #4] - 800a6e4: 6039 str r1, [r7, #0] - switch (pdev->dev_state) - 800a6e6: 687b ldr r3, [r7, #4] - 800a6e8: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800a6ec: b2db uxtb r3, r3 - 800a6ee: 3b01 subs r3, #1 - 800a6f0: 2b02 cmp r3, #2 - 800a6f2: d81e bhi.n 800a732 - { - case USBD_STATE_DEFAULT: - case USBD_STATE_ADDRESSED: - case USBD_STATE_CONFIGURED: - if (req->wLength != 0x2U) - 800a6f4: 683b ldr r3, [r7, #0] - 800a6f6: 88db ldrh r3, [r3, #6] - 800a6f8: 2b02 cmp r3, #2 - 800a6fa: d004 beq.n 800a706 - { - USBD_CtlError(pdev, req); - 800a6fc: 6839 ldr r1, [r7, #0] - 800a6fe: 6878 ldr r0, [r7, #4] - 800a700: f000 f8a5 bl 800a84e - break; - 800a704: e01a b.n 800a73c - } +0800a6aa : + 800a6aa: b580 push {r7, lr} + 800a6ac: b082 sub sp, #8 + 800a6ae: af00 add r7, sp, #0 + 800a6b0: 6078 str r0, [r7, #4] + 800a6b2: 687b ldr r3, [r7, #4] + 800a6b4: 2205 movs r2, #5 + 800a6b6: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 800a6ba: 2300 movs r3, #0 + 800a6bc: 2200 movs r2, #0 + 800a6be: 2100 movs r1, #0 + 800a6c0: 6878 ldr r0, [r7, #4] + 800a6c2: f000 fbff bl 800aec4 + 800a6c6: 2300 movs r3, #0 + 800a6c8: 4618 mov r0, r3 + 800a6ca: 3708 adds r7, #8 + 800a6cc: 46bd mov sp, r7 + 800a6ce: bd80 pop {r7, pc} -#if (USBD_SELF_POWERED == 1U) - pdev->dev_config_status = USB_CONFIG_SELF_POWERED; - 800a706: 687b ldr r3, [r7, #4] - 800a708: 2201 movs r2, #1 - 800a70a: 60da str r2, [r3, #12] -#else - pdev->dev_config_status = 0U; -#endif /* USBD_SELF_POWERED */ +0800a6d0 : + 800a6d0: b580 push {r7, lr} + 800a6d2: af00 add r7, sp, #0 + 800a6d4: 2200 movs r2, #0 + 800a6d6: 490e ldr r1, [pc, #56] @ (800a710 ) + 800a6d8: 480e ldr r0, [pc, #56] @ (800a714 ) + 800a6da: f7fe fcd1 bl 8009080 + 800a6de: 4603 mov r3, r0 + 800a6e0: 2b00 cmp r3, #0 + 800a6e2: d001 beq.n 800a6e8 + 800a6e4: f7f6 fd62 bl 80011ac + 800a6e8: 490b ldr r1, [pc, #44] @ (800a718 ) + 800a6ea: 480a ldr r0, [pc, #40] @ (800a714 ) + 800a6ec: f7fe fcf8 bl 80090e0 + 800a6f0: 4603 mov r3, r0 + 800a6f2: 2b00 cmp r3, #0 + 800a6f4: d001 beq.n 800a6fa + 800a6f6: f7f6 fd59 bl 80011ac + 800a6fa: 4806 ldr r0, [pc, #24] @ (800a714 ) + 800a6fc: f7fe fd26 bl 800914c + 800a700: 4603 mov r3, r0 + 800a702: 2b00 cmp r3, #0 + 800a704: d001 beq.n 800a70a + 800a706: f7f6 fd51 bl 80011ac + 800a70a: bf00 nop + 800a70c: bd80 pop {r7, pc} + 800a70e: bf00 nop + 800a710: 200001b4 .word 0x200001b4 + 800a714: 20000dd4 .word 0x20000dd4 + 800a718: 20000110 .word 0x20000110 - if (pdev->dev_remote_wakeup != 0U) - 800a70c: 687b ldr r3, [r7, #4] - 800a70e: f8d3 32a4 ldr.w r3, [r3, #676] @ 0x2a4 - 800a712: 2b00 cmp r3, #0 - 800a714: d005 beq.n 800a722 - { - pdev->dev_config_status |= USB_CONFIG_REMOTE_WAKEUP; - 800a716: 687b ldr r3, [r7, #4] - 800a718: 68db ldr r3, [r3, #12] - 800a71a: f043 0202 orr.w r2, r3, #2 - 800a71e: 687b ldr r3, [r7, #4] - 800a720: 60da str r2, [r3, #12] - } +0800a71c : + 800a71c: b480 push {r7} + 800a71e: b083 sub sp, #12 + 800a720: af00 add r7, sp, #0 + 800a722: 4603 mov r3, r0 + 800a724: 6039 str r1, [r7, #0] + 800a726: 71fb strb r3, [r7, #7] + 800a728: 683b ldr r3, [r7, #0] + 800a72a: 2212 movs r2, #18 + 800a72c: 801a strh r2, [r3, #0] + 800a72e: 4b03 ldr r3, [pc, #12] @ (800a73c ) + 800a730: 4618 mov r0, r3 + 800a732: 370c adds r7, #12 + 800a734: 46bd mov sp, r7 + 800a736: f85d 7b04 ldr.w r7, [sp], #4 + 800a73a: 4770 bx lr + 800a73c: 200001d4 .word 0x200001d4 - (void)USBD_CtlSendData(pdev, (uint8_t *)&pdev->dev_config_status, 2U); - 800a722: 687b ldr r3, [r7, #4] - 800a724: 330c adds r3, #12 - 800a726: 2202 movs r2, #2 - 800a728: 4619 mov r1, r3 - 800a72a: 6878 ldr r0, [r7, #4] - 800a72c: f000 f90c bl 800a948 - break; - 800a730: e004 b.n 800a73c +0800a740 : + 800a740: b480 push {r7} + 800a742: b083 sub sp, #12 + 800a744: af00 add r7, sp, #0 + 800a746: 4603 mov r3, r0 + 800a748: 6039 str r1, [r7, #0] + 800a74a: 71fb strb r3, [r7, #7] + 800a74c: 683b ldr r3, [r7, #0] + 800a74e: 2204 movs r2, #4 + 800a750: 801a strh r2, [r3, #0] + 800a752: 4b03 ldr r3, [pc, #12] @ (800a760 ) + 800a754: 4618 mov r0, r3 + 800a756: 370c adds r7, #12 + 800a758: 46bd mov sp, r7 + 800a75a: f85d 7b04 ldr.w r7, [sp], #4 + 800a75e: 4770 bx lr + 800a760: 200001f4 .word 0x200001f4 - default: - USBD_CtlError(pdev, req); - 800a732: 6839 ldr r1, [r7, #0] - 800a734: 6878 ldr r0, [r7, #4] - 800a736: f000 f88a bl 800a84e - break; - 800a73a: bf00 nop - } -} - 800a73c: bf00 nop - 800a73e: 3708 adds r7, #8 - 800a740: 46bd mov sp, r7 - 800a742: bd80 pop {r7, pc} - -0800a744 : - * @param pdev: device instance - * @param req: usb request - * @retval None - */ -static void USBD_SetFeature(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) -{ - 800a744: b580 push {r7, lr} - 800a746: b082 sub sp, #8 - 800a748: af00 add r7, sp, #0 - 800a74a: 6078 str r0, [r7, #4] - 800a74c: 6039 str r1, [r7, #0] - if (req->wValue == USB_FEATURE_REMOTE_WAKEUP) - 800a74e: 683b ldr r3, [r7, #0] - 800a750: 885b ldrh r3, [r3, #2] - 800a752: 2b01 cmp r3, #1 - 800a754: d107 bne.n 800a766 - { - pdev->dev_remote_wakeup = 1U; - 800a756: 687b ldr r3, [r7, #4] - 800a758: 2201 movs r2, #1 - 800a75a: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 - (void)USBD_CtlSendStatus(pdev); - 800a75e: 6878 ldr r0, [r7, #4] - 800a760: f000 f932 bl 800a9c8 - } - else - { - USBD_CtlError(pdev, req); - } -} - 800a764: e013 b.n 800a78e - else if (req->wValue == USB_FEATURE_TEST_MODE) - 800a766: 683b ldr r3, [r7, #0] - 800a768: 885b ldrh r3, [r3, #2] - 800a76a: 2b02 cmp r3, #2 - 800a76c: d10b bne.n 800a786 - pdev->dev_test_mode = (uint8_t)(req->wIndex >> 8); - 800a76e: 683b ldr r3, [r7, #0] - 800a770: 889b ldrh r3, [r3, #4] - 800a772: 0a1b lsrs r3, r3, #8 - 800a774: b29b uxth r3, r3 - 800a776: b2da uxtb r2, r3 - 800a778: 687b ldr r3, [r7, #4] - 800a77a: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 - (void)USBD_CtlSendStatus(pdev); - 800a77e: 6878 ldr r0, [r7, #4] - 800a780: f000 f922 bl 800a9c8 -} - 800a784: e003 b.n 800a78e - USBD_CtlError(pdev, req); - 800a786: 6839 ldr r1, [r7, #0] - 800a788: 6878 ldr r0, [r7, #4] - 800a78a: f000 f860 bl 800a84e -} - 800a78e: bf00 nop +0800a764 : + 800a764: b580 push {r7, lr} + 800a766: b082 sub sp, #8 + 800a768: af00 add r7, sp, #0 + 800a76a: 4603 mov r3, r0 + 800a76c: 6039 str r1, [r7, #0] + 800a76e: 71fb strb r3, [r7, #7] + 800a770: 79fb ldrb r3, [r7, #7] + 800a772: 2b00 cmp r3, #0 + 800a774: d105 bne.n 800a782 + 800a776: 683a ldr r2, [r7, #0] + 800a778: 4907 ldr r1, [pc, #28] @ (800a798 ) + 800a77a: 4808 ldr r0, [pc, #32] @ (800a79c ) + 800a77c: f7ff fed6 bl 800a52c + 800a780: e004 b.n 800a78c + 800a782: 683a ldr r2, [r7, #0] + 800a784: 4904 ldr r1, [pc, #16] @ (800a798 ) + 800a786: 4805 ldr r0, [pc, #20] @ (800a79c ) + 800a788: f7ff fed0 bl 800a52c + 800a78c: 4b02 ldr r3, [pc, #8] @ (800a798 ) + 800a78e: 4618 mov r0, r3 800a790: 3708 adds r7, #8 800a792: 46bd mov sp, r7 800a794: bd80 pop {r7, pc} + 800a796: bf00 nop + 800a798: 200010b0 .word 0x200010b0 + 800a79c: 0800b0b8 .word 0x0800b0b8 -0800a796 : - * @param pdev: device instance - * @param req: usb request - * @retval None - */ -static void USBD_ClrFeature(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) -{ - 800a796: b580 push {r7, lr} - 800a798: b082 sub sp, #8 - 800a79a: af00 add r7, sp, #0 - 800a79c: 6078 str r0, [r7, #4] - 800a79e: 6039 str r1, [r7, #0] - switch (pdev->dev_state) - 800a7a0: 687b ldr r3, [r7, #4] - 800a7a2: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800a7a6: b2db uxtb r3, r3 - 800a7a8: 3b01 subs r3, #1 - 800a7aa: 2b02 cmp r3, #2 - 800a7ac: d80b bhi.n 800a7c6 - { - case USBD_STATE_DEFAULT: - case USBD_STATE_ADDRESSED: - case USBD_STATE_CONFIGURED: - if (req->wValue == USB_FEATURE_REMOTE_WAKEUP) - 800a7ae: 683b ldr r3, [r7, #0] - 800a7b0: 885b ldrh r3, [r3, #2] - 800a7b2: 2b01 cmp r3, #1 - 800a7b4: d10c bne.n 800a7d0 - { - pdev->dev_remote_wakeup = 0U; - 800a7b6: 687b ldr r3, [r7, #4] - 800a7b8: 2200 movs r2, #0 - 800a7ba: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 - (void)USBD_CtlSendStatus(pdev); - 800a7be: 6878 ldr r0, [r7, #4] - 800a7c0: f000 f902 bl 800a9c8 - } - break; - 800a7c4: e004 b.n 800a7d0 +0800a7a0 : + 800a7a0: b580 push {r7, lr} + 800a7a2: b082 sub sp, #8 + 800a7a4: af00 add r7, sp, #0 + 800a7a6: 4603 mov r3, r0 + 800a7a8: 6039 str r1, [r7, #0] + 800a7aa: 71fb strb r3, [r7, #7] + 800a7ac: 683a ldr r2, [r7, #0] + 800a7ae: 4904 ldr r1, [pc, #16] @ (800a7c0 ) + 800a7b0: 4804 ldr r0, [pc, #16] @ (800a7c4 ) + 800a7b2: f7ff febb bl 800a52c + 800a7b6: 4b02 ldr r3, [pc, #8] @ (800a7c0 ) + 800a7b8: 4618 mov r0, r3 + 800a7ba: 3708 adds r7, #8 + 800a7bc: 46bd mov sp, r7 + 800a7be: bd80 pop {r7, pc} + 800a7c0: 200010b0 .word 0x200010b0 + 800a7c4: 0800b0cc .word 0x0800b0cc - default: - USBD_CtlError(pdev, req); - 800a7c6: 6839 ldr r1, [r7, #0] - 800a7c8: 6878 ldr r0, [r7, #4] - 800a7ca: f000 f840 bl 800a84e - break; - 800a7ce: e000 b.n 800a7d2 - break; - 800a7d0: bf00 nop - } -} - 800a7d2: bf00 nop - 800a7d4: 3708 adds r7, #8 - 800a7d6: 46bd mov sp, r7 - 800a7d8: bd80 pop {r7, pc} +0800a7c8 : + 800a7c8: b580 push {r7, lr} + 800a7ca: b082 sub sp, #8 + 800a7cc: af00 add r7, sp, #0 + 800a7ce: 4603 mov r3, r0 + 800a7d0: 6039 str r1, [r7, #0] + 800a7d2: 71fb strb r3, [r7, #7] + 800a7d4: 683b ldr r3, [r7, #0] + 800a7d6: 221a movs r2, #26 + 800a7d8: 801a strh r2, [r3, #0] + 800a7da: f000 f855 bl 800a888 + 800a7de: 4b02 ldr r3, [pc, #8] @ (800a7e8 ) + 800a7e0: 4618 mov r0, r3 + 800a7e2: 3708 adds r7, #8 + 800a7e4: 46bd mov sp, r7 + 800a7e6: bd80 pop {r7, pc} + 800a7e8: 200001f8 .word 0x200001f8 -0800a7da : - * @param req: usb request - * @param pdata: setup data pointer - * @retval None - */ -void USBD_ParseSetupRequest(USBD_SetupReqTypedef *req, uint8_t *pdata) -{ - 800a7da: b580 push {r7, lr} - 800a7dc: b084 sub sp, #16 - 800a7de: af00 add r7, sp, #0 - 800a7e0: 6078 str r0, [r7, #4] - 800a7e2: 6039 str r1, [r7, #0] - uint8_t *pbuff = pdata; - 800a7e4: 683b ldr r3, [r7, #0] - 800a7e6: 60fb str r3, [r7, #12] +0800a7ec : + 800a7ec: b580 push {r7, lr} + 800a7ee: b082 sub sp, #8 + 800a7f0: af00 add r7, sp, #0 + 800a7f2: 4603 mov r3, r0 + 800a7f4: 6039 str r1, [r7, #0] + 800a7f6: 71fb strb r3, [r7, #7] + 800a7f8: 79fb ldrb r3, [r7, #7] + 800a7fa: 2b00 cmp r3, #0 + 800a7fc: d105 bne.n 800a80a + 800a7fe: 683a ldr r2, [r7, #0] + 800a800: 4907 ldr r1, [pc, #28] @ (800a820 ) + 800a802: 4808 ldr r0, [pc, #32] @ (800a824 ) + 800a804: f7ff fe92 bl 800a52c + 800a808: e004 b.n 800a814 + 800a80a: 683a ldr r2, [r7, #0] + 800a80c: 4904 ldr r1, [pc, #16] @ (800a820 ) + 800a80e: 4805 ldr r0, [pc, #20] @ (800a824 ) + 800a810: f7ff fe8c bl 800a52c + 800a814: 4b02 ldr r3, [pc, #8] @ (800a820 ) + 800a816: 4618 mov r0, r3 + 800a818: 3708 adds r7, #8 + 800a81a: 46bd mov sp, r7 + 800a81c: bd80 pop {r7, pc} + 800a81e: bf00 nop + 800a820: 200010b0 .word 0x200010b0 + 800a824: 0800b0d8 .word 0x0800b0d8 - req->bmRequest = *(uint8_t *)(pbuff); - 800a7e8: 68fb ldr r3, [r7, #12] - 800a7ea: 781a ldrb r2, [r3, #0] - 800a7ec: 687b ldr r3, [r7, #4] - 800a7ee: 701a strb r2, [r3, #0] +0800a828 : + 800a828: b580 push {r7, lr} + 800a82a: b082 sub sp, #8 + 800a82c: af00 add r7, sp, #0 + 800a82e: 4603 mov r3, r0 + 800a830: 6039 str r1, [r7, #0] + 800a832: 71fb strb r3, [r7, #7] + 800a834: 79fb ldrb r3, [r7, #7] + 800a836: 2b00 cmp r3, #0 + 800a838: d105 bne.n 800a846 + 800a83a: 683a ldr r2, [r7, #0] + 800a83c: 4907 ldr r1, [pc, #28] @ (800a85c ) + 800a83e: 4808 ldr r0, [pc, #32] @ (800a860 ) + 800a840: f7ff fe74 bl 800a52c + 800a844: e004 b.n 800a850 + 800a846: 683a ldr r2, [r7, #0] + 800a848: 4904 ldr r1, [pc, #16] @ (800a85c ) + 800a84a: 4805 ldr r0, [pc, #20] @ (800a860 ) + 800a84c: f7ff fe6e bl 800a52c + 800a850: 4b02 ldr r3, [pc, #8] @ (800a85c ) + 800a852: 4618 mov r0, r3 + 800a854: 3708 adds r7, #8 + 800a856: 46bd mov sp, r7 + 800a858: bd80 pop {r7, pc} + 800a85a: bf00 nop + 800a85c: 200010b0 .word 0x200010b0 + 800a860: 0800b0e4 .word 0x0800b0e4 - pbuff++; - 800a7f0: 68fb ldr r3, [r7, #12] - 800a7f2: 3301 adds r3, #1 - 800a7f4: 60fb str r3, [r7, #12] - req->bRequest = *(uint8_t *)(pbuff); - 800a7f6: 68fb ldr r3, [r7, #12] - 800a7f8: 781a ldrb r2, [r3, #0] - 800a7fa: 687b ldr r3, [r7, #4] - 800a7fc: 705a strb r2, [r3, #1] +0800a864 : + 800a864: b480 push {r7} + 800a866: b083 sub sp, #12 + 800a868: af00 add r7, sp, #0 + 800a86a: 4603 mov r3, r0 + 800a86c: 6039 str r1, [r7, #0] + 800a86e: 71fb strb r3, [r7, #7] + 800a870: 683b ldr r3, [r7, #0] + 800a872: 220c movs r2, #12 + 800a874: 801a strh r2, [r3, #0] + 800a876: 4b03 ldr r3, [pc, #12] @ (800a884 ) + 800a878: 4618 mov r0, r3 + 800a87a: 370c adds r7, #12 + 800a87c: 46bd mov sp, r7 + 800a87e: f85d 7b04 ldr.w r7, [sp], #4 + 800a882: 4770 bx lr + 800a884: 200001e8 .word 0x200001e8 - pbuff++; - 800a7fe: 68fb ldr r3, [r7, #12] - 800a800: 3301 adds r3, #1 - 800a802: 60fb str r3, [r7, #12] - req->wValue = SWAPBYTE(pbuff); - 800a804: 68f8 ldr r0, [r7, #12] - 800a806: f7ff fa13 bl 8009c30 - 800a80a: 4603 mov r3, r0 - 800a80c: 461a mov r2, r3 - 800a80e: 687b ldr r3, [r7, #4] - 800a810: 805a strh r2, [r3, #2] +0800a888 : + 800a888: b580 push {r7, lr} + 800a88a: b084 sub sp, #16 + 800a88c: af00 add r7, sp, #0 + 800a88e: 4b0f ldr r3, [pc, #60] @ (800a8cc ) + 800a890: 681b ldr r3, [r3, #0] + 800a892: 60fb str r3, [r7, #12] + 800a894: 4b0e ldr r3, [pc, #56] @ (800a8d0 ) + 800a896: 681b ldr r3, [r3, #0] + 800a898: 60bb str r3, [r7, #8] + 800a89a: 4b0e ldr r3, [pc, #56] @ (800a8d4 ) + 800a89c: 681b ldr r3, [r3, #0] + 800a89e: 607b str r3, [r7, #4] + 800a8a0: 68fa ldr r2, [r7, #12] + 800a8a2: 687b ldr r3, [r7, #4] + 800a8a4: 4413 add r3, r2 + 800a8a6: 60fb str r3, [r7, #12] + 800a8a8: 68fb ldr r3, [r7, #12] + 800a8aa: 2b00 cmp r3, #0 + 800a8ac: d009 beq.n 800a8c2 + 800a8ae: 2208 movs r2, #8 + 800a8b0: 4909 ldr r1, [pc, #36] @ (800a8d8 ) + 800a8b2: 68f8 ldr r0, [r7, #12] + 800a8b4: f000 f814 bl 800a8e0 + 800a8b8: 2204 movs r2, #4 + 800a8ba: 4908 ldr r1, [pc, #32] @ (800a8dc ) + 800a8bc: 68b8 ldr r0, [r7, #8] + 800a8be: f000 f80f bl 800a8e0 + 800a8c2: bf00 nop + 800a8c4: 3710 adds r7, #16 + 800a8c6: 46bd mov sp, r7 + 800a8c8: bd80 pop {r7, pc} + 800a8ca: bf00 nop + 800a8cc: 1fff7a10 .word 0x1fff7a10 + 800a8d0: 1fff7a14 .word 0x1fff7a14 + 800a8d4: 1fff7a18 .word 0x1fff7a18 + 800a8d8: 200001fa .word 0x200001fa + 800a8dc: 2000020a .word 0x2000020a - pbuff++; - 800a812: 68fb ldr r3, [r7, #12] - 800a814: 3301 adds r3, #1 - 800a816: 60fb str r3, [r7, #12] - pbuff++; - 800a818: 68fb ldr r3, [r7, #12] - 800a81a: 3301 adds r3, #1 - 800a81c: 60fb str r3, [r7, #12] - req->wIndex = SWAPBYTE(pbuff); - 800a81e: 68f8 ldr r0, [r7, #12] - 800a820: f7ff fa06 bl 8009c30 - 800a824: 4603 mov r3, r0 - 800a826: 461a mov r2, r3 - 800a828: 687b ldr r3, [r7, #4] - 800a82a: 809a strh r2, [r3, #4] - - pbuff++; - 800a82c: 68fb ldr r3, [r7, #12] - 800a82e: 3301 adds r3, #1 - 800a830: 60fb str r3, [r7, #12] - pbuff++; - 800a832: 68fb ldr r3, [r7, #12] - 800a834: 3301 adds r3, #1 - 800a836: 60fb str r3, [r7, #12] - req->wLength = SWAPBYTE(pbuff); - 800a838: 68f8 ldr r0, [r7, #12] - 800a83a: f7ff f9f9 bl 8009c30 - 800a83e: 4603 mov r3, r0 - 800a840: 461a mov r2, r3 - 800a842: 687b ldr r3, [r7, #4] - 800a844: 80da strh r2, [r3, #6] -} - 800a846: bf00 nop - 800a848: 3710 adds r7, #16 - 800a84a: 46bd mov sp, r7 - 800a84c: bd80 pop {r7, pc} - -0800a84e : - * @param pdev: device instance - * @param req: usb request - * @retval None - */ -void USBD_CtlError(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) -{ - 800a84e: b580 push {r7, lr} - 800a850: b082 sub sp, #8 - 800a852: af00 add r7, sp, #0 - 800a854: 6078 str r0, [r7, #4] - 800a856: 6039 str r1, [r7, #0] - UNUSED(req); - - (void)USBD_LL_StallEP(pdev, 0x80U); - 800a858: 2180 movs r1, #128 @ 0x80 - 800a85a: 6878 ldr r0, [r7, #4] - 800a85c: f000 fc2a bl 800b0b4 - (void)USBD_LL_StallEP(pdev, 0U); - 800a860: 2100 movs r1, #0 - 800a862: 6878 ldr r0, [r7, #4] - 800a864: f000 fc26 bl 800b0b4 -} - 800a868: bf00 nop - 800a86a: 3708 adds r7, #8 - 800a86c: 46bd mov sp, r7 - 800a86e: bd80 pop {r7, pc} - -0800a870 : - * @param unicode : Formatted string buffer (unicode) - * @param len : descriptor length - * @retval None - */ -void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len) -{ - 800a870: b580 push {r7, lr} - 800a872: b086 sub sp, #24 - 800a874: af00 add r7, sp, #0 - 800a876: 60f8 str r0, [r7, #12] - 800a878: 60b9 str r1, [r7, #8] - 800a87a: 607a str r2, [r7, #4] - uint8_t idx = 0U; - 800a87c: 2300 movs r3, #0 - 800a87e: 75fb strb r3, [r7, #23] - uint8_t *pdesc; - - if (desc == NULL) - 800a880: 68fb ldr r3, [r7, #12] - 800a882: 2b00 cmp r3, #0 - 800a884: d042 beq.n 800a90c - { - return; - } - - pdesc = desc; - 800a886: 68fb ldr r3, [r7, #12] - 800a888: 613b str r3, [r7, #16] - *len = MIN(USBD_MAX_STR_DESC_SIZ, ((uint16_t)USBD_GetLen(pdesc) * 2U) + 2U); - 800a88a: 6938 ldr r0, [r7, #16] - 800a88c: f000 f842 bl 800a914 - 800a890: 4603 mov r3, r0 - 800a892: 3301 adds r3, #1 - 800a894: 005b lsls r3, r3, #1 - 800a896: f5b3 7f00 cmp.w r3, #512 @ 0x200 - 800a89a: d808 bhi.n 800a8ae - 800a89c: 6938 ldr r0, [r7, #16] - 800a89e: f000 f839 bl 800a914 - 800a8a2: 4603 mov r3, r0 - 800a8a4: 3301 adds r3, #1 - 800a8a6: b29b uxth r3, r3 - 800a8a8: 005b lsls r3, r3, #1 - 800a8aa: b29a uxth r2, r3 - 800a8ac: e001 b.n 800a8b2 - 800a8ae: f44f 7200 mov.w r2, #512 @ 0x200 - 800a8b2: 687b ldr r3, [r7, #4] - 800a8b4: 801a strh r2, [r3, #0] - - unicode[idx] = *(uint8_t *)len; - 800a8b6: 7dfb ldrb r3, [r7, #23] - 800a8b8: 68ba ldr r2, [r7, #8] - 800a8ba: 4413 add r3, r2 - 800a8bc: 687a ldr r2, [r7, #4] - 800a8be: 7812 ldrb r2, [r2, #0] - 800a8c0: 701a strb r2, [r3, #0] - idx++; - 800a8c2: 7dfb ldrb r3, [r7, #23] - 800a8c4: 3301 adds r3, #1 - 800a8c6: 75fb strb r3, [r7, #23] - unicode[idx] = USB_DESC_TYPE_STRING; - 800a8c8: 7dfb ldrb r3, [r7, #23] - 800a8ca: 68ba ldr r2, [r7, #8] - 800a8cc: 4413 add r3, r2 - 800a8ce: 2203 movs r2, #3 - 800a8d0: 701a strb r2, [r3, #0] - idx++; - 800a8d2: 7dfb ldrb r3, [r7, #23] - 800a8d4: 3301 adds r3, #1 - 800a8d6: 75fb strb r3, [r7, #23] - - while (*pdesc != (uint8_t)'\0') - 800a8d8: e013 b.n 800a902 - { - unicode[idx] = *pdesc; - 800a8da: 7dfb ldrb r3, [r7, #23] - 800a8dc: 68ba ldr r2, [r7, #8] - 800a8de: 4413 add r3, r2 - 800a8e0: 693a ldr r2, [r7, #16] - 800a8e2: 7812 ldrb r2, [r2, #0] - 800a8e4: 701a strb r2, [r3, #0] - pdesc++; - 800a8e6: 693b ldr r3, [r7, #16] - 800a8e8: 3301 adds r3, #1 - 800a8ea: 613b str r3, [r7, #16] - idx++; - 800a8ec: 7dfb ldrb r3, [r7, #23] - 800a8ee: 3301 adds r3, #1 +0800a8e0 : + 800a8e0: b480 push {r7} + 800a8e2: b087 sub sp, #28 + 800a8e4: af00 add r7, sp, #0 + 800a8e6: 60f8 str r0, [r7, #12] + 800a8e8: 60b9 str r1, [r7, #8] + 800a8ea: 4613 mov r3, r2 + 800a8ec: 71fb strb r3, [r7, #7] + 800a8ee: 2300 movs r3, #0 800a8f0: 75fb strb r3, [r7, #23] + 800a8f2: 2300 movs r3, #0 + 800a8f4: 75fb strb r3, [r7, #23] + 800a8f6: e027 b.n 800a948 + 800a8f8: 68fb ldr r3, [r7, #12] + 800a8fa: 0f1b lsrs r3, r3, #28 + 800a8fc: 2b09 cmp r3, #9 + 800a8fe: d80b bhi.n 800a918 + 800a900: 68fb ldr r3, [r7, #12] + 800a902: 0f1b lsrs r3, r3, #28 + 800a904: b2da uxtb r2, r3 + 800a906: 7dfb ldrb r3, [r7, #23] + 800a908: 005b lsls r3, r3, #1 + 800a90a: 4619 mov r1, r3 + 800a90c: 68bb ldr r3, [r7, #8] + 800a90e: 440b add r3, r1 + 800a910: 3230 adds r2, #48 @ 0x30 + 800a912: b2d2 uxtb r2, r2 + 800a914: 701a strb r2, [r3, #0] + 800a916: e00a b.n 800a92e + 800a918: 68fb ldr r3, [r7, #12] + 800a91a: 0f1b lsrs r3, r3, #28 + 800a91c: b2da uxtb r2, r3 + 800a91e: 7dfb ldrb r3, [r7, #23] + 800a920: 005b lsls r3, r3, #1 + 800a922: 4619 mov r1, r3 + 800a924: 68bb ldr r3, [r7, #8] + 800a926: 440b add r3, r1 + 800a928: 3237 adds r2, #55 @ 0x37 + 800a92a: b2d2 uxtb r2, r2 + 800a92c: 701a strb r2, [r3, #0] + 800a92e: 68fb ldr r3, [r7, #12] + 800a930: 011b lsls r3, r3, #4 + 800a932: 60fb str r3, [r7, #12] + 800a934: 7dfb ldrb r3, [r7, #23] + 800a936: 005b lsls r3, r3, #1 + 800a938: 3301 adds r3, #1 + 800a93a: 68ba ldr r2, [r7, #8] + 800a93c: 4413 add r3, r2 + 800a93e: 2200 movs r2, #0 + 800a940: 701a strb r2, [r3, #0] + 800a942: 7dfb ldrb r3, [r7, #23] + 800a944: 3301 adds r3, #1 + 800a946: 75fb strb r3, [r7, #23] + 800a948: 7dfa ldrb r2, [r7, #23] + 800a94a: 79fb ldrb r3, [r7, #7] + 800a94c: 429a cmp r2, r3 + 800a94e: d3d3 bcc.n 800a8f8 + 800a950: bf00 nop + 800a952: bf00 nop + 800a954: 371c adds r7, #28 + 800a956: 46bd mov sp, r7 + 800a958: f85d 7b04 ldr.w r7, [sp], #4 + 800a95c: 4770 bx lr + ... - unicode[idx] = 0U; - 800a8f2: 7dfb ldrb r3, [r7, #23] - 800a8f4: 68ba ldr r2, [r7, #8] - 800a8f6: 4413 add r3, r2 - 800a8f8: 2200 movs r2, #0 - 800a8fa: 701a strb r2, [r3, #0] - idx++; - 800a8fc: 7dfb ldrb r3, [r7, #23] - 800a8fe: 3301 adds r3, #1 - 800a900: 75fb strb r3, [r7, #23] - while (*pdesc != (uint8_t)'\0') - 800a902: 693b ldr r3, [r7, #16] - 800a904: 781b ldrb r3, [r3, #0] - 800a906: 2b00 cmp r3, #0 - 800a908: d1e7 bne.n 800a8da - 800a90a: e000 b.n 800a90e - return; - 800a90c: bf00 nop - } -} - 800a90e: 3718 adds r7, #24 - 800a910: 46bd mov sp, r7 - 800a912: bd80 pop {r7, pc} - -0800a914 : - * return the string length - * @param buf : pointer to the ascii string buffer - * @retval string length - */ -static uint8_t USBD_GetLen(uint8_t *buf) -{ - 800a914: b480 push {r7} - 800a916: b085 sub sp, #20 - 800a918: af00 add r7, sp, #0 - 800a91a: 6078 str r0, [r7, #4] - uint8_t len = 0U; - 800a91c: 2300 movs r3, #0 - 800a91e: 73fb strb r3, [r7, #15] - uint8_t *pbuff = buf; - 800a920: 687b ldr r3, [r7, #4] - 800a922: 60bb str r3, [r7, #8] - - while (*pbuff != (uint8_t)'\0') - 800a924: e005 b.n 800a932 - { - len++; - 800a926: 7bfb ldrb r3, [r7, #15] - 800a928: 3301 adds r3, #1 - 800a92a: 73fb strb r3, [r7, #15] - pbuff++; - 800a92c: 68bb ldr r3, [r7, #8] - 800a92e: 3301 adds r3, #1 - 800a930: 60bb str r3, [r7, #8] - while (*pbuff != (uint8_t)'\0') - 800a932: 68bb ldr r3, [r7, #8] - 800a934: 781b ldrb r3, [r3, #0] - 800a936: 2b00 cmp r3, #0 - 800a938: d1f5 bne.n 800a926 - } - - return len; - 800a93a: 7bfb ldrb r3, [r7, #15] -} - 800a93c: 4618 mov r0, r3 - 800a93e: 3714 adds r7, #20 - 800a940: 46bd mov sp, r7 - 800a942: f85d 7b04 ldr.w r7, [sp], #4 - 800a946: 4770 bx lr - -0800a948 : - * @param len: length of data to be sent - * @retval status - */ -USBD_StatusTypeDef USBD_CtlSendData(USBD_HandleTypeDef *pdev, - uint8_t *pbuf, uint32_t len) -{ - 800a948: b580 push {r7, lr} - 800a94a: b084 sub sp, #16 - 800a94c: af00 add r7, sp, #0 - 800a94e: 60f8 str r0, [r7, #12] - 800a950: 60b9 str r1, [r7, #8] - 800a952: 607a str r2, [r7, #4] - /* Set EP0 State */ - pdev->ep0_state = USBD_EP0_DATA_IN; - 800a954: 68fb ldr r3, [r7, #12] - 800a956: 2202 movs r2, #2 - 800a958: f8c3 2294 str.w r2, [r3, #660] @ 0x294 - pdev->ep_in[0].total_length = len; - 800a95c: 68fb ldr r3, [r7, #12] - 800a95e: 687a ldr r2, [r7, #4] - 800a960: 615a str r2, [r3, #20] - pdev->ep_in[0].pbuffer = pbuf; - 800a962: 68fb ldr r3, [r7, #12] - 800a964: 68ba ldr r2, [r7, #8] - 800a966: 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; - 800a968: 68fb ldr r3, [r7, #12] - 800a96a: 687a ldr r2, [r7, #4] - 800a96c: 619a str r2, [r3, #24] -#endif /* USBD_AVOID_PACKET_SPLIT_MPS */ - - /* Start the transfer */ - (void)USBD_LL_Transmit(pdev, 0x00U, pbuf, len); - 800a96e: 687b ldr r3, [r7, #4] - 800a970: 68ba ldr r2, [r7, #8] - 800a972: 2100 movs r1, #0 - 800a974: 68f8 ldr r0, [r7, #12] - 800a976: f000 fc26 bl 800b1c6 - - return USBD_OK; - 800a97a: 2300 movs r3, #0 -} - 800a97c: 4618 mov r0, r3 - 800a97e: 3710 adds r7, #16 - 800a980: 46bd mov sp, r7 - 800a982: bd80 pop {r7, pc} - -0800a984 : - * @param len: length of data to be sent - * @retval status - */ -USBD_StatusTypeDef USBD_CtlContinueSendData(USBD_HandleTypeDef *pdev, - uint8_t *pbuf, uint32_t len) -{ - 800a984: b580 push {r7, lr} - 800a986: b084 sub sp, #16 - 800a988: af00 add r7, sp, #0 - 800a98a: 60f8 str r0, [r7, #12] - 800a98c: 60b9 str r1, [r7, #8] - 800a98e: 607a str r2, [r7, #4] - /* Start the next transfer */ - (void)USBD_LL_Transmit(pdev, 0x00U, pbuf, len); - 800a990: 687b ldr r3, [r7, #4] - 800a992: 68ba ldr r2, [r7, #8] - 800a994: 2100 movs r1, #0 - 800a996: 68f8 ldr r0, [r7, #12] - 800a998: f000 fc15 bl 800b1c6 - - return USBD_OK; - 800a99c: 2300 movs r3, #0 -} +0800a960 : + 800a960: b580 push {r7, lr} + 800a962: b0a0 sub sp, #128 @ 0x80 + 800a964: af00 add r7, sp, #0 + 800a966: 6078 str r0, [r7, #4] + 800a968: f107 036c add.w r3, r7, #108 @ 0x6c + 800a96c: 2200 movs r2, #0 + 800a96e: 601a str r2, [r3, #0] + 800a970: 605a str r2, [r3, #4] + 800a972: 609a str r2, [r3, #8] + 800a974: 60da str r2, [r3, #12] + 800a976: 611a str r2, [r3, #16] + 800a978: f107 0310 add.w r3, r7, #16 + 800a97c: 225c movs r2, #92 @ 0x5c + 800a97e: 2100 movs r1, #0 + 800a980: 4618 mov r0, r3 + 800a982: f000 fb53 bl 800b02c + 800a986: 687b ldr r3, [r7, #4] + 800a988: 681b ldr r3, [r3, #0] + 800a98a: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 + 800a98e: d149 bne.n 800aa24 + 800a990: f44f 7380 mov.w r3, #256 @ 0x100 + 800a994: 613b str r3, [r7, #16] + 800a996: 2300 movs r3, #0 + 800a998: 667b str r3, [r7, #100] @ 0x64 + 800a99a: f107 0310 add.w r3, r7, #16 800a99e: 4618 mov r0, r3 - 800a9a0: 3710 adds r7, #16 - 800a9a2: 46bd mov sp, r7 - 800a9a4: bd80 pop {r7, pc} + 800a9a0: f7f9 fd1e bl 80043e0 + 800a9a4: 4603 mov r3, r0 + 800a9a6: 2b00 cmp r3, #0 + 800a9a8: d001 beq.n 800a9ae + 800a9aa: f7f6 fbff bl 80011ac + 800a9ae: 2300 movs r3, #0 + 800a9b0: 60fb str r3, [r7, #12] + 800a9b2: 4b1e ldr r3, [pc, #120] @ (800aa2c ) + 800a9b4: 6b1b ldr r3, [r3, #48] @ 0x30 + 800a9b6: 4a1d ldr r2, [pc, #116] @ (800aa2c ) + 800a9b8: f043 0301 orr.w r3, r3, #1 + 800a9bc: 6313 str r3, [r2, #48] @ 0x30 + 800a9be: 4b1b ldr r3, [pc, #108] @ (800aa2c ) + 800a9c0: 6b1b ldr r3, [r3, #48] @ 0x30 + 800a9c2: f003 0301 and.w r3, r3, #1 + 800a9c6: 60fb str r3, [r7, #12] + 800a9c8: 68fb ldr r3, [r7, #12] + 800a9ca: f44f 53c0 mov.w r3, #6144 @ 0x1800 + 800a9ce: 66fb str r3, [r7, #108] @ 0x6c + 800a9d0: 2302 movs r3, #2 + 800a9d2: 673b str r3, [r7, #112] @ 0x70 + 800a9d4: 2300 movs r3, #0 + 800a9d6: 677b str r3, [r7, #116] @ 0x74 + 800a9d8: 2303 movs r3, #3 + 800a9da: 67bb str r3, [r7, #120] @ 0x78 + 800a9dc: 230a movs r3, #10 + 800a9de: 67fb str r3, [r7, #124] @ 0x7c + 800a9e0: f107 036c add.w r3, r7, #108 @ 0x6c + 800a9e4: 4619 mov r1, r3 + 800a9e6: 4812 ldr r0, [pc, #72] @ (800aa30 ) + 800a9e8: f7f7 ff94 bl 8002914 + 800a9ec: 4b0f ldr r3, [pc, #60] @ (800aa2c ) + 800a9ee: 6b5b ldr r3, [r3, #52] @ 0x34 + 800a9f0: 4a0e ldr r2, [pc, #56] @ (800aa2c ) + 800a9f2: f043 0380 orr.w r3, r3, #128 @ 0x80 + 800a9f6: 6353 str r3, [r2, #52] @ 0x34 + 800a9f8: 2300 movs r3, #0 + 800a9fa: 60bb str r3, [r7, #8] + 800a9fc: 4b0b ldr r3, [pc, #44] @ (800aa2c ) + 800a9fe: 6c5b ldr r3, [r3, #68] @ 0x44 + 800aa00: 4a0a ldr r2, [pc, #40] @ (800aa2c ) + 800aa02: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 800aa06: 6453 str r3, [r2, #68] @ 0x44 + 800aa08: 4b08 ldr r3, [pc, #32] @ (800aa2c ) + 800aa0a: 6c5b ldr r3, [r3, #68] @ 0x44 + 800aa0c: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 800aa10: 60bb str r3, [r7, #8] + 800aa12: 68bb ldr r3, [r7, #8] + 800aa14: 2200 movs r2, #0 + 800aa16: 2100 movs r1, #0 + 800aa18: 2043 movs r0, #67 @ 0x43 + 800aa1a: f7f7 fb42 bl 80020a2 + 800aa1e: 2043 movs r0, #67 @ 0x43 + 800aa20: f7f7 fb5b bl 80020da + 800aa24: bf00 nop + 800aa26: 3780 adds r7, #128 @ 0x80 + 800aa28: 46bd mov sp, r7 + 800aa2a: bd80 pop {r7, pc} + 800aa2c: 40023800 .word 0x40023800 + 800aa30: 40020000 .word 0x40020000 -0800a9a6 : - * @param len: length of data to be received - * @retval status - */ -USBD_StatusTypeDef USBD_CtlContinueRx(USBD_HandleTypeDef *pdev, - uint8_t *pbuf, uint32_t len) -{ - 800a9a6: b580 push {r7, lr} - 800a9a8: b084 sub sp, #16 - 800a9aa: af00 add r7, sp, #0 - 800a9ac: 60f8 str r0, [r7, #12] - 800a9ae: 60b9 str r1, [r7, #8] - 800a9b0: 607a str r2, [r7, #4] - (void)USBD_LL_PrepareReceive(pdev, 0U, pbuf, len); - 800a9b2: 687b ldr r3, [r7, #4] - 800a9b4: 68ba ldr r2, [r7, #8] - 800a9b6: 2100 movs r1, #0 - 800a9b8: 68f8 ldr r0, [r7, #12] - 800a9ba: f000 fc25 bl 800b208 +0800aa34 : + 800aa34: b580 push {r7, lr} + 800aa36: b082 sub sp, #8 + 800aa38: af00 add r7, sp, #0 + 800aa3a: 6078 str r0, [r7, #4] + 800aa3c: 687b ldr r3, [r7, #4] + 800aa3e: f8d3 24e0 ldr.w r2, [r3, #1248] @ 0x4e0 + 800aa42: 687b ldr r3, [r7, #4] + 800aa44: f203 439c addw r3, r3, #1180 @ 0x49c + 800aa48: 4619 mov r1, r3 + 800aa4a: 4610 mov r0, r2 + 800aa4c: f7fe fbcb bl 80091e6 + 800aa50: bf00 nop + 800aa52: 3708 adds r7, #8 + 800aa54: 46bd mov sp, r7 + 800aa56: bd80 pop {r7, pc} - return USBD_OK; - 800a9be: 2300 movs r3, #0 -} - 800a9c0: 4618 mov r0, r3 - 800a9c2: 3710 adds r7, #16 - 800a9c4: 46bd mov sp, r7 - 800a9c6: bd80 pop {r7, pc} +0800aa58 : + 800aa58: b580 push {r7, lr} + 800aa5a: b082 sub sp, #8 + 800aa5c: af00 add r7, sp, #0 + 800aa5e: 6078 str r0, [r7, #4] + 800aa60: 460b mov r3, r1 + 800aa62: 70fb strb r3, [r7, #3] + 800aa64: 687b ldr r3, [r7, #4] + 800aa66: f8d3 04e0 ldr.w r0, [r3, #1248] @ 0x4e0 + 800aa6a: 78fa ldrb r2, [r7, #3] + 800aa6c: 6879 ldr r1, [r7, #4] + 800aa6e: 4613 mov r3, r2 + 800aa70: 00db lsls r3, r3, #3 + 800aa72: 4413 add r3, r2 + 800aa74: 009b lsls r3, r3, #2 + 800aa76: 440b add r3, r1 + 800aa78: f503 7318 add.w r3, r3, #608 @ 0x260 + 800aa7c: 681a ldr r2, [r3, #0] + 800aa7e: 78fb ldrb r3, [r7, #3] + 800aa80: 4619 mov r1, r3 + 800aa82: f7fe fc05 bl 8009290 + 800aa86: bf00 nop + 800aa88: 3708 adds r7, #8 + 800aa8a: 46bd mov sp, r7 + 800aa8c: bd80 pop {r7, pc} -0800a9c8 : - * send zero lzngth packet on the ctl pipe - * @param pdev: device instance - * @retval status - */ -USBD_StatusTypeDef USBD_CtlSendStatus(USBD_HandleTypeDef *pdev) -{ - 800a9c8: b580 push {r7, lr} - 800a9ca: b082 sub sp, #8 - 800a9cc: af00 add r7, sp, #0 - 800a9ce: 6078 str r0, [r7, #4] - /* Set EP0 State */ - pdev->ep0_state = USBD_EP0_STATUS_IN; - 800a9d0: 687b ldr r3, [r7, #4] - 800a9d2: 2204 movs r2, #4 - 800a9d4: f8c3 2294 str.w r2, [r3, #660] @ 0x294 +0800aa8e : + 800aa8e: b580 push {r7, lr} + 800aa90: b082 sub sp, #8 + 800aa92: af00 add r7, sp, #0 + 800aa94: 6078 str r0, [r7, #4] + 800aa96: 460b mov r3, r1 + 800aa98: 70fb strb r3, [r7, #3] + 800aa9a: 687b ldr r3, [r7, #4] + 800aa9c: f8d3 04e0 ldr.w r0, [r3, #1248] @ 0x4e0 + 800aaa0: 78fa ldrb r2, [r7, #3] + 800aaa2: 6879 ldr r1, [r7, #4] + 800aaa4: 4613 mov r3, r2 + 800aaa6: 00db lsls r3, r3, #3 + 800aaa8: 4413 add r3, r2 + 800aaaa: 009b lsls r3, r3, #2 + 800aaac: 440b add r3, r1 + 800aaae: 3320 adds r3, #32 + 800aab0: 681a ldr r2, [r3, #0] + 800aab2: 78fb ldrb r3, [r7, #3] + 800aab4: 4619 mov r1, r3 + 800aab6: f7fe fca7 bl 8009408 + 800aaba: bf00 nop + 800aabc: 3708 adds r7, #8 + 800aabe: 46bd mov sp, r7 + 800aac0: bd80 pop {r7, pc} - /* Start the transfer */ - (void)USBD_LL_Transmit(pdev, 0x00U, NULL, 0U); - 800a9d8: 2300 movs r3, #0 - 800a9da: 2200 movs r2, #0 - 800a9dc: 2100 movs r1, #0 - 800a9de: 6878 ldr r0, [r7, #4] - 800a9e0: f000 fbf1 bl 800b1c6 +0800aac2 : + 800aac2: b580 push {r7, lr} + 800aac4: b082 sub sp, #8 + 800aac6: af00 add r7, sp, #0 + 800aac8: 6078 str r0, [r7, #4] + 800aaca: 687b ldr r3, [r7, #4] + 800aacc: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800aad0: 4618 mov r0, r3 + 800aad2: f7fe fdeb bl 80096ac + 800aad6: bf00 nop + 800aad8: 3708 adds r7, #8 + 800aada: 46bd mov sp, r7 + 800aadc: bd80 pop {r7, pc} - return USBD_OK; - 800a9e4: 2300 movs r3, #0 -} - 800a9e6: 4618 mov r0, r3 - 800a9e8: 3708 adds r7, #8 - 800a9ea: 46bd mov sp, r7 - 800a9ec: bd80 pop {r7, pc} +0800aade : + 800aade: b580 push {r7, lr} + 800aae0: b084 sub sp, #16 + 800aae2: af00 add r7, sp, #0 + 800aae4: 6078 str r0, [r7, #4] + 800aae6: 2301 movs r3, #1 + 800aae8: 73fb strb r3, [r7, #15] + 800aaea: 687b ldr r3, [r7, #4] + 800aaec: 79db ldrb r3, [r3, #7] + 800aaee: 2b00 cmp r3, #0 + 800aaf0: d102 bne.n 800aaf8 + 800aaf2: 2300 movs r3, #0 + 800aaf4: 73fb strb r3, [r7, #15] + 800aaf6: e008 b.n 800ab0a + 800aaf8: 687b ldr r3, [r7, #4] + 800aafa: 79db ldrb r3, [r3, #7] + 800aafc: 2b02 cmp r3, #2 + 800aafe: d102 bne.n 800ab06 + 800ab00: 2301 movs r3, #1 + 800ab02: 73fb strb r3, [r7, #15] + 800ab04: e001 b.n 800ab0a + 800ab06: f7f6 fb51 bl 80011ac + 800ab0a: 687b ldr r3, [r7, #4] + 800ab0c: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800ab10: 7bfa ldrb r2, [r7, #15] + 800ab12: 4611 mov r1, r2 + 800ab14: 4618 mov r0, r3 + 800ab16: f7fe fd85 bl 8009624 + 800ab1a: 687b ldr r3, [r7, #4] + 800ab1c: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800ab20: 4618 mov r0, r3 + 800ab22: f7fe fd2c bl 800957e + 800ab26: bf00 nop + 800ab28: 3710 adds r7, #16 + 800ab2a: 46bd mov sp, r7 + 800ab2c: bd80 pop {r7, pc} + ... -0800a9ee : - * receive zero lzngth packet on the ctl pipe - * @param pdev: device instance - * @retval status - */ -USBD_StatusTypeDef USBD_CtlReceiveStatus(USBD_HandleTypeDef *pdev) -{ - 800a9ee: b580 push {r7, lr} - 800a9f0: b082 sub sp, #8 - 800a9f2: af00 add r7, sp, #0 - 800a9f4: 6078 str r0, [r7, #4] - /* Set EP0 State */ - pdev->ep0_state = USBD_EP0_STATUS_OUT; - 800a9f6: 687b ldr r3, [r7, #4] - 800a9f8: 2205 movs r2, #5 - 800a9fa: f8c3 2294 str.w r2, [r3, #660] @ 0x294 - - /* Start the transfer */ - (void)USBD_LL_PrepareReceive(pdev, 0U, NULL, 0U); - 800a9fe: 2300 movs r3, #0 - 800aa00: 2200 movs r2, #0 - 800aa02: 2100 movs r1, #0 - 800aa04: 6878 ldr r0, [r7, #4] - 800aa06: f000 fbff bl 800b208 - - return USBD_OK; - 800aa0a: 2300 movs r3, #0 -} - 800aa0c: 4618 mov r0, r3 - 800aa0e: 3708 adds r7, #8 - 800aa10: 46bd mov sp, r7 - 800aa12: bd80 pop {r7, pc} - -0800aa14 : -/** - * Init USB device Library, add supported class and start the library - * @retval None - */ -void MX_USB_DEVICE_Init(void) -{ - 800aa14: b580 push {r7, lr} - 800aa16: 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) - 800aa18: 2200 movs r2, #0 - 800aa1a: 490e ldr r1, [pc, #56] @ (800aa54 ) - 800aa1c: 480e ldr r0, [pc, #56] @ (800aa58 ) - 800aa1e: f7fe fcd1 bl 80093c4 - 800aa22: 4603 mov r3, r0 - 800aa24: 2b00 cmp r3, #0 - 800aa26: d001 beq.n 800aa2c - { - Error_Handler(); - 800aa28: f7f6 fc1e bl 8001268 - } - if (USBD_RegisterClass(&hUsbDeviceFS, &USBD_HID) != USBD_OK) - 800aa2c: 490b ldr r1, [pc, #44] @ (800aa5c ) - 800aa2e: 480a ldr r0, [pc, #40] @ (800aa58 ) - 800aa30: f7fe fcf8 bl 8009424 - 800aa34: 4603 mov r3, r0 - 800aa36: 2b00 cmp r3, #0 - 800aa38: d001 beq.n 800aa3e - { - Error_Handler(); - 800aa3a: f7f6 fc15 bl 8001268 - } - if (USBD_Start(&hUsbDeviceFS) != USBD_OK) - 800aa3e: 4806 ldr r0, [pc, #24] @ (800aa58 ) - 800aa40: f7fe fd26 bl 8009490 - 800aa44: 4603 mov r3, r0 - 800aa46: 2b00 cmp r3, #0 - 800aa48: d001 beq.n 800aa4e - { - Error_Handler(); - 800aa4a: f7f6 fc0d bl 8001268 - } - - /* USER CODE BEGIN USB_DEVICE_Init_PostTreatment */ - - /* USER CODE END USB_DEVICE_Init_PostTreatment */ -} - 800aa4e: bf00 nop - 800aa50: bd80 pop {r7, pc} - 800aa52: bf00 nop - 800aa54: 200001b4 .word 0x200001b4 - 800aa58: 20000e28 .word 0x20000e28 - 800aa5c: 20000110 .word 0x20000110 - -0800aa60 : - * @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) -{ - 800aa60: b480 push {r7} - 800aa62: b083 sub sp, #12 - 800aa64: af00 add r7, sp, #0 - 800aa66: 4603 mov r3, r0 - 800aa68: 6039 str r1, [r7, #0] - 800aa6a: 71fb strb r3, [r7, #7] - UNUSED(speed); - *length = sizeof(USBD_FS_DeviceDesc); - 800aa6c: 683b ldr r3, [r7, #0] - 800aa6e: 2212 movs r2, #18 - 800aa70: 801a strh r2, [r3, #0] - return USBD_FS_DeviceDesc; - 800aa72: 4b03 ldr r3, [pc, #12] @ (800aa80 ) -} - 800aa74: 4618 mov r0, r3 - 800aa76: 370c adds r7, #12 - 800aa78: 46bd mov sp, r7 - 800aa7a: f85d 7b04 ldr.w r7, [sp], #4 - 800aa7e: 4770 bx lr - 800aa80: 200001d4 .word 0x200001d4 - -0800aa84 : - * @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) -{ - 800aa84: b480 push {r7} - 800aa86: b083 sub sp, #12 - 800aa88: af00 add r7, sp, #0 - 800aa8a: 4603 mov r3, r0 - 800aa8c: 6039 str r1, [r7, #0] - 800aa8e: 71fb strb r3, [r7, #7] - UNUSED(speed); - *length = sizeof(USBD_LangIDDesc); - 800aa90: 683b ldr r3, [r7, #0] - 800aa92: 2204 movs r2, #4 - 800aa94: 801a strh r2, [r3, #0] - return USBD_LangIDDesc; - 800aa96: 4b03 ldr r3, [pc, #12] @ (800aaa4 ) -} - 800aa98: 4618 mov r0, r3 - 800aa9a: 370c adds r7, #12 - 800aa9c: 46bd mov sp, r7 - 800aa9e: f85d 7b04 ldr.w r7, [sp], #4 - 800aaa2: 4770 bx lr - 800aaa4: 200001f4 .word 0x200001f4 - -0800aaa8 : - * @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) -{ - 800aaa8: b580 push {r7, lr} - 800aaaa: b082 sub sp, #8 - 800aaac: af00 add r7, sp, #0 - 800aaae: 4603 mov r3, r0 - 800aab0: 6039 str r1, [r7, #0] - 800aab2: 71fb strb r3, [r7, #7] - if(speed == 0) - 800aab4: 79fb ldrb r3, [r7, #7] - 800aab6: 2b00 cmp r3, #0 - 800aab8: d105 bne.n 800aac6 - { - USBD_GetString((uint8_t *)USBD_PRODUCT_STRING_FS, USBD_StrDesc, length); - 800aaba: 683a ldr r2, [r7, #0] - 800aabc: 4907 ldr r1, [pc, #28] @ (800aadc ) - 800aabe: 4808 ldr r0, [pc, #32] @ (800aae0 ) - 800aac0: f7ff fed6 bl 800a870 - 800aac4: e004 b.n 800aad0 - } - else - { - USBD_GetString((uint8_t *)USBD_PRODUCT_STRING_FS, USBD_StrDesc, length); - 800aac6: 683a ldr r2, [r7, #0] - 800aac8: 4904 ldr r1, [pc, #16] @ (800aadc ) - 800aaca: 4805 ldr r0, [pc, #20] @ (800aae0 ) - 800aacc: f7ff fed0 bl 800a870 - } - return USBD_StrDesc; - 800aad0: 4b02 ldr r3, [pc, #8] @ (800aadc ) -} - 800aad2: 4618 mov r0, r3 - 800aad4: 3708 adds r7, #8 - 800aad6: 46bd mov sp, r7 - 800aad8: bd80 pop {r7, pc} - 800aada: bf00 nop - 800aadc: 20001104 .word 0x20001104 - 800aae0: 0800b3fc .word 0x0800b3fc - -0800aae4 : - * @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) -{ - 800aae4: b580 push {r7, lr} - 800aae6: b082 sub sp, #8 - 800aae8: af00 add r7, sp, #0 - 800aaea: 4603 mov r3, r0 - 800aaec: 6039 str r1, [r7, #0] - 800aaee: 71fb strb r3, [r7, #7] - UNUSED(speed); - USBD_GetString((uint8_t *)USBD_MANUFACTURER_STRING, USBD_StrDesc, length); - 800aaf0: 683a ldr r2, [r7, #0] - 800aaf2: 4904 ldr r1, [pc, #16] @ (800ab04 ) - 800aaf4: 4804 ldr r0, [pc, #16] @ (800ab08 ) - 800aaf6: f7ff febb bl 800a870 - return USBD_StrDesc; - 800aafa: 4b02 ldr r3, [pc, #8] @ (800ab04 ) -} - 800aafc: 4618 mov r0, r3 - 800aafe: 3708 adds r7, #8 - 800ab00: 46bd mov sp, r7 - 800ab02: bd80 pop {r7, pc} - 800ab04: 20001104 .word 0x20001104 - 800ab08: 0800b410 .word 0x0800b410 - -0800ab0c : - * @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) -{ - 800ab0c: b580 push {r7, lr} - 800ab0e: b082 sub sp, #8 - 800ab10: af00 add r7, sp, #0 - 800ab12: 4603 mov r3, r0 - 800ab14: 6039 str r1, [r7, #0] - 800ab16: 71fb strb r3, [r7, #7] - UNUSED(speed); - *length = USB_SIZ_STRING_SERIAL; - 800ab18: 683b ldr r3, [r7, #0] - 800ab1a: 221a movs r2, #26 - 800ab1c: 801a strh r2, [r3, #0] - - /* Update the serial number string descriptor with the data from the unique - * ID */ - Get_SerialNum(); - 800ab1e: f000 f855 bl 800abcc - /* USER CODE BEGIN USBD_FS_SerialStrDescriptor */ - - /* USER CODE END USBD_FS_SerialStrDescriptor */ - return (uint8_t *) USBD_StringSerial; - 800ab22: 4b02 ldr r3, [pc, #8] @ (800ab2c ) -} - 800ab24: 4618 mov r0, r3 - 800ab26: 3708 adds r7, #8 - 800ab28: 46bd mov sp, r7 - 800ab2a: bd80 pop {r7, pc} - 800ab2c: 200001f8 .word 0x200001f8 - -0800ab30 : - * @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) -{ +0800ab30 : 800ab30: b580 push {r7, lr} 800ab32: b082 sub sp, #8 800ab34: af00 add r7, sp, #0 - 800ab36: 4603 mov r3, r0 - 800ab38: 6039 str r1, [r7, #0] - 800ab3a: 71fb strb r3, [r7, #7] - if(speed == USBD_SPEED_HIGH) - 800ab3c: 79fb ldrb r3, [r7, #7] - 800ab3e: 2b00 cmp r3, #0 - 800ab40: d105 bne.n 800ab4e - { - USBD_GetString((uint8_t *)USBD_CONFIGURATION_STRING_FS, USBD_StrDesc, length); - 800ab42: 683a ldr r2, [r7, #0] - 800ab44: 4907 ldr r1, [pc, #28] @ (800ab64 ) - 800ab46: 4808 ldr r0, [pc, #32] @ (800ab68 ) - 800ab48: f7ff fe92 bl 800a870 - 800ab4c: e004 b.n 800ab58 - } - else - { - USBD_GetString((uint8_t *)USBD_CONFIGURATION_STRING_FS, USBD_StrDesc, length); - 800ab4e: 683a ldr r2, [r7, #0] - 800ab50: 4904 ldr r1, [pc, #16] @ (800ab64 ) - 800ab52: 4805 ldr r0, [pc, #20] @ (800ab68 ) - 800ab54: f7ff fe8c bl 800a870 - } - return USBD_StrDesc; - 800ab58: 4b02 ldr r3, [pc, #8] @ (800ab64 ) -} - 800ab5a: 4618 mov r0, r3 - 800ab5c: 3708 adds r7, #8 - 800ab5e: 46bd mov sp, r7 - 800ab60: bd80 pop {r7, pc} - 800ab62: bf00 nop - 800ab64: 20001104 .word 0x20001104 - 800ab68: 0800b41c .word 0x0800b41c + 800ab36: 6078 str r0, [r7, #4] + 800ab38: 687b ldr r3, [r7, #4] + 800ab3a: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800ab3e: 4618 mov r0, r3 + 800ab40: f7fe fd80 bl 8009644 + 800ab44: 687b ldr r3, [r7, #4] + 800ab46: 681b ldr r3, [r3, #0] + 800ab48: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 800ab4c: 681b ldr r3, [r3, #0] + 800ab4e: 687a ldr r2, [r7, #4] + 800ab50: 6812 ldr r2, [r2, #0] + 800ab52: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 800ab56: f043 0301 orr.w r3, r3, #1 + 800ab5a: 6013 str r3, [r2, #0] + 800ab5c: 687b ldr r3, [r7, #4] + 800ab5e: 7adb ldrb r3, [r3, #11] + 800ab60: 2b00 cmp r3, #0 + 800ab62: d005 beq.n 800ab70 + 800ab64: 4b04 ldr r3, [pc, #16] @ (800ab78 ) + 800ab66: 691b ldr r3, [r3, #16] + 800ab68: 4a03 ldr r2, [pc, #12] @ (800ab78 ) + 800ab6a: f043 0306 orr.w r3, r3, #6 + 800ab6e: 6113 str r3, [r2, #16] + 800ab70: bf00 nop + 800ab72: 3708 adds r7, #8 + 800ab74: 46bd mov sp, r7 + 800ab76: bd80 pop {r7, pc} + 800ab78: e000ed00 .word 0xe000ed00 -0800ab6c : - * @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) -{ - 800ab6c: b580 push {r7, lr} - 800ab6e: b082 sub sp, #8 - 800ab70: af00 add r7, sp, #0 - 800ab72: 4603 mov r3, r0 - 800ab74: 6039 str r1, [r7, #0] - 800ab76: 71fb strb r3, [r7, #7] - if(speed == 0) - 800ab78: 79fb ldrb r3, [r7, #7] - 800ab7a: 2b00 cmp r3, #0 - 800ab7c: d105 bne.n 800ab8a - { - USBD_GetString((uint8_t *)USBD_INTERFACE_STRING_FS, USBD_StrDesc, length); - 800ab7e: 683a ldr r2, [r7, #0] - 800ab80: 4907 ldr r1, [pc, #28] @ (800aba0 ) - 800ab82: 4808 ldr r0, [pc, #32] @ (800aba4 ) - 800ab84: f7ff fe74 bl 800a870 - 800ab88: e004 b.n 800ab94 - } - else - { - USBD_GetString((uint8_t *)USBD_INTERFACE_STRING_FS, USBD_StrDesc, length); - 800ab8a: 683a ldr r2, [r7, #0] - 800ab8c: 4904 ldr r1, [pc, #16] @ (800aba0 ) - 800ab8e: 4805 ldr r0, [pc, #20] @ (800aba4 ) - 800ab90: f7ff fe6e bl 800a870 - } - return USBD_StrDesc; - 800ab94: 4b02 ldr r3, [pc, #8] @ (800aba0 ) -} - 800ab96: 4618 mov r0, r3 - 800ab98: 3708 adds r7, #8 - 800ab9a: 46bd mov sp, r7 - 800ab9c: bd80 pop {r7, pc} - 800ab9e: bf00 nop - 800aba0: 20001104 .word 0x20001104 - 800aba4: 0800b428 .word 0x0800b428 +0800ab7c : + 800ab7c: b580 push {r7, lr} + 800ab7e: b082 sub sp, #8 + 800ab80: af00 add r7, sp, #0 + 800ab82: 6078 str r0, [r7, #4] + 800ab84: 687b ldr r3, [r7, #4] + 800ab86: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800ab8a: 4618 mov r0, r3 + 800ab8c: f7fe fd76 bl 800967c + 800ab90: bf00 nop + 800ab92: 3708 adds r7, #8 + 800ab94: 46bd mov sp, r7 + 800ab96: bd80 pop {r7, pc} -0800aba8 : - * @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) -{ - 800aba8: b480 push {r7} - 800abaa: b083 sub sp, #12 - 800abac: af00 add r7, sp, #0 - 800abae: 4603 mov r3, r0 - 800abb0: 6039 str r1, [r7, #0] - 800abb2: 71fb strb r3, [r7, #7] - UNUSED(speed); - *length = sizeof(USBD_FS_BOSDesc); - 800abb4: 683b ldr r3, [r7, #0] - 800abb6: 220c movs r2, #12 - 800abb8: 801a strh r2, [r3, #0] - return (uint8_t*)USBD_FS_BOSDesc; - 800abba: 4b03 ldr r3, [pc, #12] @ (800abc8 ) -} - 800abbc: 4618 mov r0, r3 - 800abbe: 370c adds r7, #12 - 800abc0: 46bd mov sp, r7 - 800abc2: f85d 7b04 ldr.w r7, [sp], #4 - 800abc6: 4770 bx lr - 800abc8: 200001e8 .word 0x200001e8 +0800ab98 : + 800ab98: b580 push {r7, lr} + 800ab9a: b082 sub sp, #8 + 800ab9c: af00 add r7, sp, #0 + 800ab9e: 6078 str r0, [r7, #4] + 800aba0: 460b mov r3, r1 + 800aba2: 70fb strb r3, [r7, #3] + 800aba4: 687b ldr r3, [r7, #4] + 800aba6: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800abaa: 78fa ldrb r2, [r7, #3] + 800abac: 4611 mov r1, r2 + 800abae: 4618 mov r0, r3 + 800abb0: f7fe fdce bl 8009750 + 800abb4: bf00 nop + 800abb6: 3708 adds r7, #8 + 800abb8: 46bd mov sp, r7 + 800abba: bd80 pop {r7, pc} -0800abcc : - * @brief Create the serial number string descriptor - * @param None - * @retval None - */ -static void Get_SerialNum(void) -{ - 800abcc: b580 push {r7, lr} - 800abce: b084 sub sp, #16 - 800abd0: af00 add r7, sp, #0 - uint32_t deviceserial0; - uint32_t deviceserial1; - uint32_t deviceserial2; +0800abbc : + 800abbc: b580 push {r7, lr} + 800abbe: b082 sub sp, #8 + 800abc0: af00 add r7, sp, #0 + 800abc2: 6078 str r0, [r7, #4] + 800abc4: 460b mov r3, r1 + 800abc6: 70fb strb r3, [r7, #3] + 800abc8: 687b ldr r3, [r7, #4] + 800abca: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800abce: 78fa ldrb r2, [r7, #3] + 800abd0: 4611 mov r1, r2 + 800abd2: 4618 mov r0, r3 + 800abd4: f7fe fd8a bl 80096ec + 800abd8: bf00 nop + 800abda: 3708 adds r7, #8 + 800abdc: 46bd mov sp, r7 + 800abde: bd80 pop {r7, pc} - deviceserial0 = *(uint32_t *) DEVICE_ID1; - 800abd2: 4b0f ldr r3, [pc, #60] @ (800ac10 ) - 800abd4: 681b ldr r3, [r3, #0] - 800abd6: 60fb str r3, [r7, #12] - deviceserial1 = *(uint32_t *) DEVICE_ID2; - 800abd8: 4b0e ldr r3, [pc, #56] @ (800ac14 ) - 800abda: 681b ldr r3, [r3, #0] - 800abdc: 60bb str r3, [r7, #8] - deviceserial2 = *(uint32_t *) DEVICE_ID3; - 800abde: 4b0e ldr r3, [pc, #56] @ (800ac18 ) - 800abe0: 681b ldr r3, [r3, #0] - 800abe2: 607b str r3, [r7, #4] +0800abe0 : + 800abe0: b580 push {r7, lr} + 800abe2: b082 sub sp, #8 + 800abe4: af00 add r7, sp, #0 + 800abe6: 6078 str r0, [r7, #4] + 800abe8: 687b ldr r3, [r7, #4] + 800abea: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800abee: 4618 mov r0, r3 + 800abf0: f7fe fde0 bl 80097b4 + 800abf4: bf00 nop + 800abf6: 3708 adds r7, #8 + 800abf8: 46bd mov sp, r7 + 800abfa: bd80 pop {r7, pc} - deviceserial0 += deviceserial2; - 800abe4: 68fa ldr r2, [r7, #12] - 800abe6: 687b ldr r3, [r7, #4] - 800abe8: 4413 add r3, r2 - 800abea: 60fb str r3, [r7, #12] +0800abfc : + 800abfc: b580 push {r7, lr} + 800abfe: b082 sub sp, #8 + 800ac00: af00 add r7, sp, #0 + 800ac02: 6078 str r0, [r7, #4] + 800ac04: 687b ldr r3, [r7, #4] + 800ac06: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800ac0a: 4618 mov r0, r3 + 800ac0c: f7fe fddd bl 80097ca + 800ac10: bf00 nop + 800ac12: 3708 adds r7, #8 + 800ac14: 46bd mov sp, r7 + 800ac16: bd80 pop {r7, pc} - if (deviceserial0 != 0) - 800abec: 68fb ldr r3, [r7, #12] - 800abee: 2b00 cmp r3, #0 - 800abf0: d009 beq.n 800ac06 - { - IntToUnicode(deviceserial0, &USBD_StringSerial[2], 8); - 800abf2: 2208 movs r2, #8 - 800abf4: 4909 ldr r1, [pc, #36] @ (800ac1c ) - 800abf6: 68f8 ldr r0, [r7, #12] - 800abf8: f000 f814 bl 800ac24 - IntToUnicode(deviceserial1, &USBD_StringSerial[18], 4); - 800abfc: 2204 movs r2, #4 - 800abfe: 4908 ldr r1, [pc, #32] @ (800ac20 ) - 800ac00: 68b8 ldr r0, [r7, #8] - 800ac02: f000 f80f bl 800ac24 - } -} - 800ac06: bf00 nop - 800ac08: 3710 adds r7, #16 - 800ac0a: 46bd mov sp, r7 - 800ac0c: bd80 pop {r7, pc} - 800ac0e: bf00 nop - 800ac10: 1fff7a10 .word 0x1fff7a10 - 800ac14: 1fff7a14 .word 0x1fff7a14 - 800ac18: 1fff7a18 .word 0x1fff7a18 - 800ac1c: 200001fa .word 0x200001fa - 800ac20: 2000020a .word 0x2000020a +0800ac18 : + 800ac18: b580 push {r7, lr} + 800ac1a: b082 sub sp, #8 + 800ac1c: af00 add r7, sp, #0 + 800ac1e: 6078 str r0, [r7, #4] + 800ac20: 687b ldr r3, [r7, #4] + 800ac22: 781b ldrb r3, [r3, #0] + 800ac24: 2b00 cmp r3, #0 + 800ac26: d13c bne.n 800aca2 + 800ac28: 4a20 ldr r2, [pc, #128] @ (800acac ) + 800ac2a: 687b ldr r3, [r7, #4] + 800ac2c: f8c2 34e0 str.w r3, [r2, #1248] @ 0x4e0 + 800ac30: 687b ldr r3, [r7, #4] + 800ac32: 4a1e ldr r2, [pc, #120] @ (800acac ) + 800ac34: f8c3 22c8 str.w r2, [r3, #712] @ 0x2c8 + 800ac38: 4b1c ldr r3, [pc, #112] @ (800acac ) + 800ac3a: f04f 42a0 mov.w r2, #1342177280 @ 0x50000000 + 800ac3e: 601a str r2, [r3, #0] + 800ac40: 4b1a ldr r3, [pc, #104] @ (800acac ) + 800ac42: 2206 movs r2, #6 + 800ac44: 711a strb r2, [r3, #4] + 800ac46: 4b19 ldr r3, [pc, #100] @ (800acac ) + 800ac48: 2202 movs r2, #2 + 800ac4a: 71da strb r2, [r3, #7] + 800ac4c: 4b17 ldr r3, [pc, #92] @ (800acac ) + 800ac4e: 2200 movs r2, #0 + 800ac50: 719a strb r2, [r3, #6] + 800ac52: 4b16 ldr r3, [pc, #88] @ (800acac ) + 800ac54: 2202 movs r2, #2 + 800ac56: 725a strb r2, [r3, #9] + 800ac58: 4b14 ldr r3, [pc, #80] @ (800acac ) + 800ac5a: 2200 movs r2, #0 + 800ac5c: 729a strb r2, [r3, #10] + 800ac5e: 4b13 ldr r3, [pc, #76] @ (800acac ) + 800ac60: 2200 movs r2, #0 + 800ac62: 72da strb r2, [r3, #11] + 800ac64: 4b11 ldr r3, [pc, #68] @ (800acac ) + 800ac66: 2200 movs r2, #0 + 800ac68: 731a strb r2, [r3, #12] + 800ac6a: 4b10 ldr r3, [pc, #64] @ (800acac ) + 800ac6c: 2200 movs r2, #0 + 800ac6e: 739a strb r2, [r3, #14] + 800ac70: 4b0e ldr r3, [pc, #56] @ (800acac ) + 800ac72: 2200 movs r2, #0 + 800ac74: 73da strb r2, [r3, #15] + 800ac76: 480d ldr r0, [pc, #52] @ (800acac ) + 800ac78: f7f8 f811 bl 8002c9e + 800ac7c: 4603 mov r3, r0 + 800ac7e: 2b00 cmp r3, #0 + 800ac80: d001 beq.n 800ac86 + 800ac82: f7f6 fa93 bl 80011ac + 800ac86: 2180 movs r1, #128 @ 0x80 + 800ac88: 4808 ldr r0, [pc, #32] @ (800acac ) + 800ac8a: f7f9 fa5a bl 8004142 + 800ac8e: 2240 movs r2, #64 @ 0x40 + 800ac90: 2100 movs r1, #0 + 800ac92: 4806 ldr r0, [pc, #24] @ (800acac ) + 800ac94: f7f9 fa0e bl 80040b4 + 800ac98: 2280 movs r2, #128 @ 0x80 + 800ac9a: 2101 movs r1, #1 + 800ac9c: 4803 ldr r0, [pc, #12] @ (800acac ) + 800ac9e: f7f9 fa09 bl 80040b4 + 800aca2: 2300 movs r3, #0 + 800aca4: 4618 mov r0, r3 + 800aca6: 3708 adds r7, #8 + 800aca8: 46bd mov sp, r7 + 800acaa: bd80 pop {r7, pc} + 800acac: 200012b0 .word 0x200012b0 -0800ac24 : - * @param pbuf: pointer to the buffer - * @param len: buffer length - * @retval None - */ -static void IntToUnicode(uint32_t value, uint8_t * pbuf, uint8_t len) -{ - 800ac24: b480 push {r7} - 800ac26: b087 sub sp, #28 - 800ac28: af00 add r7, sp, #0 - 800ac2a: 60f8 str r0, [r7, #12] - 800ac2c: 60b9 str r1, [r7, #8] - 800ac2e: 4613 mov r3, r2 - 800ac30: 71fb strb r3, [r7, #7] - uint8_t idx = 0; - 800ac32: 2300 movs r3, #0 - 800ac34: 75fb strb r3, [r7, #23] +0800acb0 : + 800acb0: b580 push {r7, lr} + 800acb2: b084 sub sp, #16 + 800acb4: af00 add r7, sp, #0 + 800acb6: 6078 str r0, [r7, #4] + 800acb8: 2300 movs r3, #0 + 800acba: 73fb strb r3, [r7, #15] + 800acbc: 2300 movs r3, #0 + 800acbe: 73bb strb r3, [r7, #14] + 800acc0: 687b ldr r3, [r7, #4] + 800acc2: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800acc6: 4618 mov r0, r3 + 800acc8: f7f8 f8ff bl 8002eca + 800accc: 4603 mov r3, r0 + 800acce: 73fb strb r3, [r7, #15] + 800acd0: 7bfb ldrb r3, [r7, #15] + 800acd2: 4618 mov r0, r3 + 800acd4: f000 f97e bl 800afd4 + 800acd8: 4603 mov r3, r0 + 800acda: 73bb strb r3, [r7, #14] + 800acdc: 7bbb ldrb r3, [r7, #14] + 800acde: 4618 mov r0, r3 + 800ace0: 3710 adds r7, #16 + 800ace2: 46bd mov sp, r7 + 800ace4: bd80 pop {r7, pc} - for (idx = 0; idx < len; idx++) - 800ac36: 2300 movs r3, #0 - 800ac38: 75fb strb r3, [r7, #23] - 800ac3a: e027 b.n 800ac8c - { - if (((value >> 28)) < 0xA) - 800ac3c: 68fb ldr r3, [r7, #12] - 800ac3e: 0f1b lsrs r3, r3, #28 - 800ac40: 2b09 cmp r3, #9 - 800ac42: d80b bhi.n 800ac5c - { - pbuf[2 * idx] = (value >> 28) + '0'; - 800ac44: 68fb ldr r3, [r7, #12] - 800ac46: 0f1b lsrs r3, r3, #28 - 800ac48: b2da uxtb r2, r3 - 800ac4a: 7dfb ldrb r3, [r7, #23] - 800ac4c: 005b lsls r3, r3, #1 - 800ac4e: 4619 mov r1, r3 - 800ac50: 68bb ldr r3, [r7, #8] - 800ac52: 440b add r3, r1 - 800ac54: 3230 adds r2, #48 @ 0x30 - 800ac56: b2d2 uxtb r2, r2 - 800ac58: 701a strb r2, [r3, #0] - 800ac5a: e00a b.n 800ac72 - } - else - { - pbuf[2 * idx] = (value >> 28) + 'A' - 10; - 800ac5c: 68fb ldr r3, [r7, #12] - 800ac5e: 0f1b lsrs r3, r3, #28 - 800ac60: b2da uxtb r2, r3 - 800ac62: 7dfb ldrb r3, [r7, #23] - 800ac64: 005b lsls r3, r3, #1 - 800ac66: 4619 mov r1, r3 - 800ac68: 68bb ldr r3, [r7, #8] - 800ac6a: 440b add r3, r1 - 800ac6c: 3237 adds r2, #55 @ 0x37 - 800ac6e: b2d2 uxtb r2, r2 - 800ac70: 701a strb r2, [r3, #0] - } +0800ace6 : + 800ace6: b580 push {r7, lr} + 800ace8: b084 sub sp, #16 + 800acea: af00 add r7, sp, #0 + 800acec: 6078 str r0, [r7, #4] + 800acee: 4608 mov r0, r1 + 800acf0: 4611 mov r1, r2 + 800acf2: 461a mov r2, r3 + 800acf4: 4603 mov r3, r0 + 800acf6: 70fb strb r3, [r7, #3] + 800acf8: 460b mov r3, r1 + 800acfa: 70bb strb r3, [r7, #2] + 800acfc: 4613 mov r3, r2 + 800acfe: 803b strh r3, [r7, #0] + 800ad00: 2300 movs r3, #0 + 800ad02: 73fb strb r3, [r7, #15] + 800ad04: 2300 movs r3, #0 + 800ad06: 73bb strb r3, [r7, #14] + 800ad08: 687b ldr r3, [r7, #4] + 800ad0a: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 + 800ad0e: 78bb ldrb r3, [r7, #2] + 800ad10: 883a ldrh r2, [r7, #0] + 800ad12: 78f9 ldrb r1, [r7, #3] + 800ad14: f7f8 fe00 bl 8003918 + 800ad18: 4603 mov r3, r0 + 800ad1a: 73fb strb r3, [r7, #15] + 800ad1c: 7bfb ldrb r3, [r7, #15] + 800ad1e: 4618 mov r0, r3 + 800ad20: f000 f958 bl 800afd4 + 800ad24: 4603 mov r3, r0 + 800ad26: 73bb strb r3, [r7, #14] + 800ad28: 7bbb ldrb r3, [r7, #14] + 800ad2a: 4618 mov r0, r3 + 800ad2c: 3710 adds r7, #16 + 800ad2e: 46bd mov sp, r7 + 800ad30: bd80 pop {r7, pc} - value = value << 4; - 800ac72: 68fb ldr r3, [r7, #12] - 800ac74: 011b lsls r3, r3, #4 - 800ac76: 60fb str r3, [r7, #12] - - pbuf[2 * idx + 1] = 0; - 800ac78: 7dfb ldrb r3, [r7, #23] - 800ac7a: 005b lsls r3, r3, #1 - 800ac7c: 3301 adds r3, #1 - 800ac7e: 68ba ldr r2, [r7, #8] - 800ac80: 4413 add r3, r2 - 800ac82: 2200 movs r2, #0 - 800ac84: 701a strb r2, [r3, #0] - for (idx = 0; idx < len; idx++) - 800ac86: 7dfb ldrb r3, [r7, #23] - 800ac88: 3301 adds r3, #1 - 800ac8a: 75fb strb r3, [r7, #23] - 800ac8c: 7dfa ldrb r2, [r7, #23] - 800ac8e: 79fb ldrb r3, [r7, #7] - 800ac90: 429a cmp r2, r3 - 800ac92: d3d3 bcc.n 800ac3c - } -} - 800ac94: bf00 nop - 800ac96: bf00 nop - 800ac98: 371c adds r7, #28 - 800ac9a: 46bd mov sp, r7 - 800ac9c: f85d 7b04 ldr.w r7, [sp], #4 - 800aca0: 4770 bx lr - ... - -0800aca4 : - LL Driver Callbacks (PCD -> USB Device Library) -*******************************************************************************/ -/* MSP Init */ - -void HAL_PCD_MspInit(PCD_HandleTypeDef* pcdHandle) -{ - 800aca4: b580 push {r7, lr} - 800aca6: b0a0 sub sp, #128 @ 0x80 - 800aca8: af00 add r7, sp, #0 - 800acaa: 6078 str r0, [r7, #4] - GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800acac: f107 036c add.w r3, r7, #108 @ 0x6c - 800acb0: 2200 movs r2, #0 - 800acb2: 601a str r2, [r3, #0] - 800acb4: 605a str r2, [r3, #4] - 800acb6: 609a str r2, [r3, #8] - 800acb8: 60da str r2, [r3, #12] - 800acba: 611a str r2, [r3, #16] - RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; - 800acbc: f107 0310 add.w r3, r7, #16 - 800acc0: 225c movs r2, #92 @ 0x5c - 800acc2: 2100 movs r1, #0 - 800acc4: 4618 mov r0, r3 - 800acc6: f000 fb53 bl 800b370 - if(pcdHandle->Instance==USB_OTG_FS) - 800acca: 687b ldr r3, [r7, #4] - 800accc: 681b ldr r3, [r3, #0] - 800acce: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 - 800acd2: d149 bne.n 800ad68 - - /* USER CODE END USB_OTG_FS_MspInit 0 */ - - /** Initializes the peripherals clock - */ - PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_CLK48; - 800acd4: f44f 7380 mov.w r3, #256 @ 0x100 - 800acd8: 613b str r3, [r7, #16] - PeriphClkInitStruct.Clk48ClockSelection = RCC_CLK48CLKSOURCE_PLLQ; - 800acda: 2300 movs r3, #0 - 800acdc: 667b str r3, [r7, #100] @ 0x64 - if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - 800acde: f107 0310 add.w r3, r7, #16 - 800ace2: 4618 mov r0, r3 - 800ace4: f7f9 fd1e bl 8004724 - 800ace8: 4603 mov r3, r0 - 800acea: 2b00 cmp r3, #0 - 800acec: d001 beq.n 800acf2 - { - Error_Handler(); - 800acee: f7f6 fabb bl 8001268 - } - - __HAL_RCC_GPIOA_CLK_ENABLE(); - 800acf2: 2300 movs r3, #0 - 800acf4: 60fb str r3, [r7, #12] - 800acf6: 4b1e ldr r3, [pc, #120] @ (800ad70 ) - 800acf8: 6b1b ldr r3, [r3, #48] @ 0x30 - 800acfa: 4a1d ldr r2, [pc, #116] @ (800ad70 ) - 800acfc: f043 0301 orr.w r3, r3, #1 - 800ad00: 6313 str r3, [r2, #48] @ 0x30 - 800ad02: 4b1b ldr r3, [pc, #108] @ (800ad70 ) - 800ad04: 6b1b ldr r3, [r3, #48] @ 0x30 - 800ad06: f003 0301 and.w r3, r3, #1 - 800ad0a: 60fb str r3, [r7, #12] - 800ad0c: 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; - 800ad0e: f44f 53c0 mov.w r3, #6144 @ 0x1800 - 800ad12: 66fb str r3, [r7, #108] @ 0x6c - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800ad14: 2302 movs r3, #2 - 800ad16: 673b str r3, [r7, #112] @ 0x70 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 800ad18: 2300 movs r3, #0 - 800ad1a: 677b str r3, [r7, #116] @ 0x74 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 800ad1c: 2303 movs r3, #3 - 800ad1e: 67bb str r3, [r7, #120] @ 0x78 - GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS; - 800ad20: 230a movs r3, #10 - 800ad22: 67fb str r3, [r7, #124] @ 0x7c - HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 800ad24: f107 036c add.w r3, r7, #108 @ 0x6c - 800ad28: 4619 mov r1, r3 - 800ad2a: 4812 ldr r0, [pc, #72] @ (800ad74 ) - 800ad2c: f7f7 fe50 bl 80029d0 - - /* Peripheral clock enable */ - __HAL_RCC_USB_OTG_FS_CLK_ENABLE(); - 800ad30: 4b0f ldr r3, [pc, #60] @ (800ad70 ) - 800ad32: 6b5b ldr r3, [r3, #52] @ 0x34 - 800ad34: 4a0e ldr r2, [pc, #56] @ (800ad70 ) - 800ad36: f043 0380 orr.w r3, r3, #128 @ 0x80 - 800ad3a: 6353 str r3, [r2, #52] @ 0x34 - 800ad3c: 2300 movs r3, #0 - 800ad3e: 60bb str r3, [r7, #8] - 800ad40: 4b0b ldr r3, [pc, #44] @ (800ad70 ) - 800ad42: 6c5b ldr r3, [r3, #68] @ 0x44 - 800ad44: 4a0a ldr r2, [pc, #40] @ (800ad70 ) - 800ad46: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 800ad4a: 6453 str r3, [r2, #68] @ 0x44 - 800ad4c: 4b08 ldr r3, [pc, #32] @ (800ad70 ) - 800ad4e: 6c5b ldr r3, [r3, #68] @ 0x44 - 800ad50: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 800ad54: 60bb str r3, [r7, #8] - 800ad56: 68bb ldr r3, [r7, #8] - - /* Peripheral interrupt init */ - HAL_NVIC_SetPriority(OTG_FS_IRQn, 0, 0); - 800ad58: 2200 movs r2, #0 - 800ad5a: 2100 movs r1, #0 - 800ad5c: 2043 movs r0, #67 @ 0x43 - 800ad5e: f7f7 f9fe bl 800215e - HAL_NVIC_EnableIRQ(OTG_FS_IRQn); - 800ad62: 2043 movs r0, #67 @ 0x43 - 800ad64: f7f7 fa17 bl 8002196 - /* USER CODE BEGIN USB_OTG_FS_MspInit 1 */ - - /* USER CODE END USB_OTG_FS_MspInit 1 */ - } -} - 800ad68: bf00 nop - 800ad6a: 3780 adds r7, #128 @ 0x80 +0800ad32 : + 800ad32: b580 push {r7, lr} + 800ad34: b084 sub sp, #16 + 800ad36: af00 add r7, sp, #0 + 800ad38: 6078 str r0, [r7, #4] + 800ad3a: 460b mov r3, r1 + 800ad3c: 70fb strb r3, [r7, #3] + 800ad3e: 2300 movs r3, #0 + 800ad40: 73fb strb r3, [r7, #15] + 800ad42: 2300 movs r3, #0 + 800ad44: 73bb strb r3, [r7, #14] + 800ad46: 687b ldr r3, [r7, #4] + 800ad48: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800ad4c: 78fa ldrb r2, [r7, #3] + 800ad4e: 4611 mov r1, r2 + 800ad50: 4618 mov r0, r3 + 800ad52: f7f8 fe4b bl 80039ec + 800ad56: 4603 mov r3, r0 + 800ad58: 73fb strb r3, [r7, #15] + 800ad5a: 7bfb ldrb r3, [r7, #15] + 800ad5c: 4618 mov r0, r3 + 800ad5e: f000 f939 bl 800afd4 + 800ad62: 4603 mov r3, r0 + 800ad64: 73bb strb r3, [r7, #14] + 800ad66: 7bbb ldrb r3, [r7, #14] + 800ad68: 4618 mov r0, r3 + 800ad6a: 3710 adds r7, #16 800ad6c: 46bd mov sp, r7 800ad6e: bd80 pop {r7, pc} - 800ad70: 40023800 .word 0x40023800 - 800ad74: 40020000 .word 0x40020000 -0800ad78 : -#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 */ -{ - 800ad78: b580 push {r7, lr} - 800ad7a: b082 sub sp, #8 - 800ad7c: af00 add r7, sp, #0 - 800ad7e: 6078 str r0, [r7, #4] - USBD_LL_SetupStage((USBD_HandleTypeDef*)hpcd->pData, (uint8_t *)hpcd->Setup); - 800ad80: 687b ldr r3, [r7, #4] - 800ad82: f8d3 24e0 ldr.w r2, [r3, #1248] @ 0x4e0 - 800ad86: 687b ldr r3, [r7, #4] - 800ad88: f203 439c addw r3, r3, #1180 @ 0x49c - 800ad8c: 4619 mov r1, r3 - 800ad8e: 4610 mov r0, r2 - 800ad90: f7fe fbcb bl 800952a -} - 800ad94: bf00 nop - 800ad96: 3708 adds r7, #8 - 800ad98: 46bd mov sp, r7 - 800ad9a: bd80 pop {r7, pc} +0800ad70 : + 800ad70: b580 push {r7, lr} + 800ad72: b084 sub sp, #16 + 800ad74: af00 add r7, sp, #0 + 800ad76: 6078 str r0, [r7, #4] + 800ad78: 460b mov r3, r1 + 800ad7a: 70fb strb r3, [r7, #3] + 800ad7c: 2300 movs r3, #0 + 800ad7e: 73fb strb r3, [r7, #15] + 800ad80: 2300 movs r3, #0 + 800ad82: 73bb strb r3, [r7, #14] + 800ad84: 687b ldr r3, [r7, #4] + 800ad86: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800ad8a: 78fa ldrb r2, [r7, #3] + 800ad8c: 4611 mov r1, r2 + 800ad8e: 4618 mov r0, r3 + 800ad90: f7f8 feeb bl 8003b6a + 800ad94: 4603 mov r3, r0 + 800ad96: 73fb strb r3, [r7, #15] + 800ad98: 7bfb ldrb r3, [r7, #15] + 800ad9a: 4618 mov r0, r3 + 800ad9c: f000 f91a bl 800afd4 + 800ada0: 4603 mov r3, r0 + 800ada2: 73bb strb r3, [r7, #14] + 800ada4: 7bbb ldrb r3, [r7, #14] + 800ada6: 4618 mov r0, r3 + 800ada8: 3710 adds r7, #16 + 800adaa: 46bd mov sp, r7 + 800adac: bd80 pop {r7, pc} -0800ad9c : -#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 */ -{ - 800ad9c: b580 push {r7, lr} - 800ad9e: b082 sub sp, #8 - 800ada0: af00 add r7, sp, #0 - 800ada2: 6078 str r0, [r7, #4] - 800ada4: 460b mov r3, r1 - 800ada6: 70fb strb r3, [r7, #3] - USBD_LL_DataOutStage((USBD_HandleTypeDef*)hpcd->pData, epnum, hpcd->OUT_ep[epnum].xfer_buff); - 800ada8: 687b ldr r3, [r7, #4] - 800adaa: f8d3 04e0 ldr.w r0, [r3, #1248] @ 0x4e0 - 800adae: 78fa ldrb r2, [r7, #3] - 800adb0: 6879 ldr r1, [r7, #4] - 800adb2: 4613 mov r3, r2 - 800adb4: 00db lsls r3, r3, #3 - 800adb6: 4413 add r3, r2 - 800adb8: 009b lsls r3, r3, #2 - 800adba: 440b add r3, r1 - 800adbc: f503 7318 add.w r3, r3, #608 @ 0x260 - 800adc0: 681a ldr r2, [r3, #0] - 800adc2: 78fb ldrb r3, [r7, #3] - 800adc4: 4619 mov r1, r3 - 800adc6: f7fe fc05 bl 80095d4 -} - 800adca: bf00 nop - 800adcc: 3708 adds r7, #8 - 800adce: 46bd mov sp, r7 - 800add0: bd80 pop {r7, pc} +0800adae : + 800adae: b580 push {r7, lr} + 800adb0: b084 sub sp, #16 + 800adb2: af00 add r7, sp, #0 + 800adb4: 6078 str r0, [r7, #4] + 800adb6: 460b mov r3, r1 + 800adb8: 70fb strb r3, [r7, #3] + 800adba: 2300 movs r3, #0 + 800adbc: 73fb strb r3, [r7, #15] + 800adbe: 2300 movs r3, #0 + 800adc0: 73bb strb r3, [r7, #14] + 800adc2: 687b ldr r3, [r7, #4] + 800adc4: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800adc8: 78fa ldrb r2, [r7, #3] + 800adca: 4611 mov r1, r2 + 800adcc: 4618 mov r0, r3 + 800adce: f7f8 ff2f bl 8003c30 + 800add2: 4603 mov r3, r0 + 800add4: 73fb strb r3, [r7, #15] + 800add6: 7bfb ldrb r3, [r7, #15] + 800add8: 4618 mov r0, r3 + 800adda: f000 f8fb bl 800afd4 + 800adde: 4603 mov r3, r0 + 800ade0: 73bb strb r3, [r7, #14] + 800ade2: 7bbb ldrb r3, [r7, #14] + 800ade4: 4618 mov r0, r3 + 800ade6: 3710 adds r7, #16 + 800ade8: 46bd mov sp, r7 + 800adea: bd80 pop {r7, pc} -0800add2 : -#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 */ -{ - 800add2: b580 push {r7, lr} - 800add4: b082 sub sp, #8 - 800add6: af00 add r7, sp, #0 - 800add8: 6078 str r0, [r7, #4] - 800adda: 460b mov r3, r1 - 800addc: 70fb strb r3, [r7, #3] - USBD_LL_DataInStage((USBD_HandleTypeDef*)hpcd->pData, epnum, hpcd->IN_ep[epnum].xfer_buff); - 800adde: 687b ldr r3, [r7, #4] - 800ade0: f8d3 04e0 ldr.w r0, [r3, #1248] @ 0x4e0 - 800ade4: 78fa ldrb r2, [r7, #3] - 800ade6: 6879 ldr r1, [r7, #4] - 800ade8: 4613 mov r3, r2 - 800adea: 00db lsls r3, r3, #3 - 800adec: 4413 add r3, r2 - 800adee: 009b lsls r3, r3, #2 - 800adf0: 440b add r3, r1 - 800adf2: 3320 adds r3, #32 - 800adf4: 681a ldr r2, [r3, #0] - 800adf6: 78fb ldrb r3, [r7, #3] - 800adf8: 4619 mov r1, r3 - 800adfa: f7fe fca7 bl 800974c -} - 800adfe: bf00 nop - 800ae00: 3708 adds r7, #8 - 800ae02: 46bd mov sp, r7 - 800ae04: bd80 pop {r7, pc} +0800adec : + 800adec: b480 push {r7} + 800adee: b085 sub sp, #20 + 800adf0: af00 add r7, sp, #0 + 800adf2: 6078 str r0, [r7, #4] + 800adf4: 460b mov r3, r1 + 800adf6: 70fb strb r3, [r7, #3] + 800adf8: 687b ldr r3, [r7, #4] + 800adfa: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800adfe: 60fb str r3, [r7, #12] + 800ae00: f997 3003 ldrsb.w r3, [r7, #3] + 800ae04: 2b00 cmp r3, #0 + 800ae06: da0b bge.n 800ae20 + 800ae08: 78fb ldrb r3, [r7, #3] + 800ae0a: f003 027f and.w r2, r3, #127 @ 0x7f + 800ae0e: 68f9 ldr r1, [r7, #12] + 800ae10: 4613 mov r3, r2 + 800ae12: 00db lsls r3, r3, #3 + 800ae14: 4413 add r3, r2 + 800ae16: 009b lsls r3, r3, #2 + 800ae18: 440b add r3, r1 + 800ae1a: 3316 adds r3, #22 + 800ae1c: 781b ldrb r3, [r3, #0] + 800ae1e: e00b b.n 800ae38 + 800ae20: 78fb ldrb r3, [r7, #3] + 800ae22: f003 027f and.w r2, r3, #127 @ 0x7f + 800ae26: 68f9 ldr r1, [r7, #12] + 800ae28: 4613 mov r3, r2 + 800ae2a: 00db lsls r3, r3, #3 + 800ae2c: 4413 add r3, r2 + 800ae2e: 009b lsls r3, r3, #2 + 800ae30: 440b add r3, r1 + 800ae32: f203 2356 addw r3, r3, #598 @ 0x256 + 800ae36: 781b ldrb r3, [r3, #0] + 800ae38: 4618 mov r0, r3 + 800ae3a: 3714 adds r7, #20 + 800ae3c: 46bd mov sp, r7 + 800ae3e: f85d 7b04 ldr.w r7, [sp], #4 + 800ae42: 4770 bx lr -0800ae06 : -#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 */ -{ - 800ae06: b580 push {r7, lr} - 800ae08: b082 sub sp, #8 - 800ae0a: af00 add r7, sp, #0 - 800ae0c: 6078 str r0, [r7, #4] - USBD_LL_SOF((USBD_HandleTypeDef*)hpcd->pData); - 800ae0e: 687b ldr r3, [r7, #4] - 800ae10: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800ae14: 4618 mov r0, r3 - 800ae16: f7fe fdeb bl 80099f0 -} - 800ae1a: bf00 nop - 800ae1c: 3708 adds r7, #8 - 800ae1e: 46bd mov sp, r7 - 800ae20: bd80 pop {r7, pc} +0800ae44 : + 800ae44: b580 push {r7, lr} + 800ae46: b084 sub sp, #16 + 800ae48: af00 add r7, sp, #0 + 800ae4a: 6078 str r0, [r7, #4] + 800ae4c: 460b mov r3, r1 + 800ae4e: 70fb strb r3, [r7, #3] + 800ae50: 2300 movs r3, #0 + 800ae52: 73fb strb r3, [r7, #15] + 800ae54: 2300 movs r3, #0 + 800ae56: 73bb strb r3, [r7, #14] + 800ae58: 687b ldr r3, [r7, #4] + 800ae5a: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800ae5e: 78fa ldrb r2, [r7, #3] + 800ae60: 4611 mov r1, r2 + 800ae62: 4618 mov r0, r3 + 800ae64: f7f8 fd34 bl 80038d0 + 800ae68: 4603 mov r3, r0 + 800ae6a: 73fb strb r3, [r7, #15] + 800ae6c: 7bfb ldrb r3, [r7, #15] + 800ae6e: 4618 mov r0, r3 + 800ae70: f000 f8b0 bl 800afd4 + 800ae74: 4603 mov r3, r0 + 800ae76: 73bb strb r3, [r7, #14] + 800ae78: 7bbb ldrb r3, [r7, #14] + 800ae7a: 4618 mov r0, r3 + 800ae7c: 3710 adds r7, #16 + 800ae7e: 46bd mov sp, r7 + 800ae80: bd80 pop {r7, pc} -0800ae22 : -#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 */ -{ - 800ae22: b580 push {r7, lr} - 800ae24: b084 sub sp, #16 - 800ae26: af00 add r7, sp, #0 - 800ae28: 6078 str r0, [r7, #4] - USBD_SpeedTypeDef speed = USBD_SPEED_FULL; - 800ae2a: 2301 movs r3, #1 - 800ae2c: 73fb strb r3, [r7, #15] +0800ae82 : + 800ae82: b580 push {r7, lr} + 800ae84: b086 sub sp, #24 + 800ae86: af00 add r7, sp, #0 + 800ae88: 60f8 str r0, [r7, #12] + 800ae8a: 607a str r2, [r7, #4] + 800ae8c: 603b str r3, [r7, #0] + 800ae8e: 460b mov r3, r1 + 800ae90: 72fb strb r3, [r7, #11] + 800ae92: 2300 movs r3, #0 + 800ae94: 75fb strb r3, [r7, #23] + 800ae96: 2300 movs r3, #0 + 800ae98: 75bb strb r3, [r7, #22] + 800ae9a: 68fb ldr r3, [r7, #12] + 800ae9c: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 + 800aea0: 7af9 ldrb r1, [r7, #11] + 800aea2: 683b ldr r3, [r7, #0] + 800aea4: 687a ldr r2, [r7, #4] + 800aea6: f7f8 fe26 bl 8003af6 + 800aeaa: 4603 mov r3, r0 + 800aeac: 75fb strb r3, [r7, #23] + 800aeae: 7dfb ldrb r3, [r7, #23] + 800aeb0: 4618 mov r0, r3 + 800aeb2: f000 f88f bl 800afd4 + 800aeb6: 4603 mov r3, r0 + 800aeb8: 75bb strb r3, [r7, #22] + 800aeba: 7dbb ldrb r3, [r7, #22] + 800aebc: 4618 mov r0, r3 + 800aebe: 3718 adds r7, #24 + 800aec0: 46bd mov sp, r7 + 800aec2: bd80 pop {r7, pc} - if ( hpcd->Init.speed == PCD_SPEED_HIGH) - 800ae2e: 687b ldr r3, [r7, #4] - 800ae30: 79db ldrb r3, [r3, #7] - 800ae32: 2b00 cmp r3, #0 - 800ae34: d102 bne.n 800ae3c - { - speed = USBD_SPEED_HIGH; - 800ae36: 2300 movs r3, #0 - 800ae38: 73fb strb r3, [r7, #15] - 800ae3a: e008 b.n 800ae4e - } - else if ( hpcd->Init.speed == PCD_SPEED_FULL) - 800ae3c: 687b ldr r3, [r7, #4] - 800ae3e: 79db ldrb r3, [r3, #7] - 800ae40: 2b02 cmp r3, #2 - 800ae42: d102 bne.n 800ae4a - { - speed = USBD_SPEED_FULL; - 800ae44: 2301 movs r3, #1 - 800ae46: 73fb strb r3, [r7, #15] - 800ae48: e001 b.n 800ae4e - } - else - { - Error_Handler(); - 800ae4a: f7f6 fa0d bl 8001268 - } - /* Set Speed. */ - USBD_LL_SetSpeed((USBD_HandleTypeDef*)hpcd->pData, speed); - 800ae4e: 687b ldr r3, [r7, #4] - 800ae50: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800ae54: 7bfa ldrb r2, [r7, #15] - 800ae56: 4611 mov r1, r2 - 800ae58: 4618 mov r0, r3 - 800ae5a: f7fe fd85 bl 8009968 - - /* Reset Device. */ - USBD_LL_Reset((USBD_HandleTypeDef*)hpcd->pData); - 800ae5e: 687b ldr r3, [r7, #4] - 800ae60: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800ae64: 4618 mov r0, r3 - 800ae66: f7fe fd2c bl 80098c2 -} - 800ae6a: bf00 nop - 800ae6c: 3710 adds r7, #16 - 800ae6e: 46bd mov sp, r7 - 800ae70: bd80 pop {r7, pc} - ... - -0800ae74 : -#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 */ -{ - 800ae74: b580 push {r7, lr} - 800ae76: b082 sub sp, #8 - 800ae78: af00 add r7, sp, #0 - 800ae7a: 6078 str r0, [r7, #4] - /* Inform USB library that core enters in suspend Mode. */ - USBD_LL_Suspend((USBD_HandleTypeDef*)hpcd->pData); - 800ae7c: 687b ldr r3, [r7, #4] - 800ae7e: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800ae82: 4618 mov r0, r3 - 800ae84: f7fe fd80 bl 8009988 - __HAL_PCD_GATE_PHYCLOCK(hpcd); - 800ae88: 687b ldr r3, [r7, #4] - 800ae8a: 681b ldr r3, [r3, #0] - 800ae8c: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 800ae90: 681b ldr r3, [r3, #0] - 800ae92: 687a ldr r2, [r7, #4] - 800ae94: 6812 ldr r2, [r2, #0] - 800ae96: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 800ae9a: f043 0301 orr.w r3, r3, #1 - 800ae9e: 6013 str r3, [r2, #0] - /* Enter in STOP mode. */ - /* USER CODE BEGIN 2 */ - if (hpcd->Init.low_power_enable) - 800aea0: 687b ldr r3, [r7, #4] - 800aea2: 7adb ldrb r3, [r3, #11] - 800aea4: 2b00 cmp r3, #0 - 800aea6: d005 beq.n 800aeb4 - { - /* Set SLEEPDEEP bit and SleepOnExit of Cortex System Control Register. */ - SCB->SCR |= (uint32_t)((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); - 800aea8: 4b04 ldr r3, [pc, #16] @ (800aebc ) - 800aeaa: 691b ldr r3, [r3, #16] - 800aeac: 4a03 ldr r2, [pc, #12] @ (800aebc ) - 800aeae: f043 0306 orr.w r3, r3, #6 - 800aeb2: 6113 str r3, [r2, #16] - } - /* USER CODE END 2 */ -} - 800aeb4: bf00 nop - 800aeb6: 3708 adds r7, #8 - 800aeb8: 46bd mov sp, r7 - 800aeba: bd80 pop {r7, pc} - 800aebc: e000ed00 .word 0xe000ed00 - -0800aec0 : -#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 */ -{ - 800aec0: b580 push {r7, lr} - 800aec2: b082 sub sp, #8 - 800aec4: af00 add r7, sp, #0 - 800aec6: 6078 str r0, [r7, #4] - /* USER CODE BEGIN 3 */ - - /* USER CODE END 3 */ - USBD_LL_Resume((USBD_HandleTypeDef*)hpcd->pData); - 800aec8: 687b ldr r3, [r7, #4] - 800aeca: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800aece: 4618 mov r0, r3 - 800aed0: f7fe fd76 bl 80099c0 -} - 800aed4: bf00 nop - 800aed6: 3708 adds r7, #8 - 800aed8: 46bd mov sp, r7 - 800aeda: bd80 pop {r7, pc} - -0800aedc : -#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 */ -{ - 800aedc: b580 push {r7, lr} - 800aede: b082 sub sp, #8 - 800aee0: af00 add r7, sp, #0 - 800aee2: 6078 str r0, [r7, #4] - 800aee4: 460b mov r3, r1 - 800aee6: 70fb strb r3, [r7, #3] - USBD_LL_IsoOUTIncomplete((USBD_HandleTypeDef*)hpcd->pData, epnum); - 800aee8: 687b ldr r3, [r7, #4] - 800aeea: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800aeee: 78fa ldrb r2, [r7, #3] - 800aef0: 4611 mov r1, r2 +0800aec4 : + 800aec4: b580 push {r7, lr} + 800aec6: b086 sub sp, #24 + 800aec8: af00 add r7, sp, #0 + 800aeca: 60f8 str r0, [r7, #12] + 800aecc: 607a str r2, [r7, #4] + 800aece: 603b str r3, [r7, #0] + 800aed0: 460b mov r3, r1 + 800aed2: 72fb strb r3, [r7, #11] + 800aed4: 2300 movs r3, #0 + 800aed6: 75fb strb r3, [r7, #23] + 800aed8: 2300 movs r3, #0 + 800aeda: 75bb strb r3, [r7, #22] + 800aedc: 68fb ldr r3, [r7, #12] + 800aede: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 + 800aee2: 7af9 ldrb r1, [r7, #11] + 800aee4: 683b ldr r3, [r7, #0] + 800aee6: 687a ldr r2, [r7, #4] + 800aee8: f7f8 fdca bl 8003a80 + 800aeec: 4603 mov r3, r0 + 800aeee: 75fb strb r3, [r7, #23] + 800aef0: 7dfb ldrb r3, [r7, #23] 800aef2: 4618 mov r0, r3 - 800aef4: f7fe fdce bl 8009a94 -} - 800aef8: bf00 nop - 800aefa: 3708 adds r7, #8 - 800aefc: 46bd mov sp, r7 - 800aefe: bd80 pop {r7, pc} - -0800af00 : -#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 */ -{ - 800af00: b580 push {r7, lr} - 800af02: b082 sub sp, #8 - 800af04: af00 add r7, sp, #0 - 800af06: 6078 str r0, [r7, #4] - 800af08: 460b mov r3, r1 - 800af0a: 70fb strb r3, [r7, #3] - USBD_LL_IsoINIncomplete((USBD_HandleTypeDef*)hpcd->pData, epnum); - 800af0c: 687b ldr r3, [r7, #4] - 800af0e: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800af12: 78fa ldrb r2, [r7, #3] - 800af14: 4611 mov r1, r2 - 800af16: 4618 mov r0, r3 - 800af18: f7fe fd8a bl 8009a30 -} - 800af1c: bf00 nop - 800af1e: 3708 adds r7, #8 - 800af20: 46bd mov sp, r7 - 800af22: bd80 pop {r7, pc} - -0800af24 : -#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 */ -{ - 800af24: b580 push {r7, lr} - 800af26: b082 sub sp, #8 - 800af28: af00 add r7, sp, #0 - 800af2a: 6078 str r0, [r7, #4] - USBD_LL_DevConnected((USBD_HandleTypeDef*)hpcd->pData); - 800af2c: 687b ldr r3, [r7, #4] - 800af2e: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800af32: 4618 mov r0, r3 - 800af34: f7fe fde0 bl 8009af8 -} - 800af38: bf00 nop - 800af3a: 3708 adds r7, #8 - 800af3c: 46bd mov sp, r7 - 800af3e: bd80 pop {r7, pc} - -0800af40 : -#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 */ -{ - 800af40: b580 push {r7, lr} - 800af42: b082 sub sp, #8 - 800af44: af00 add r7, sp, #0 - 800af46: 6078 str r0, [r7, #4] - USBD_LL_DevDisconnected((USBD_HandleTypeDef*)hpcd->pData); - 800af48: 687b ldr r3, [r7, #4] - 800af4a: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800af4e: 4618 mov r0, r3 - 800af50: f7fe fddd bl 8009b0e -} - 800af54: bf00 nop - 800af56: 3708 adds r7, #8 - 800af58: 46bd mov sp, r7 - 800af5a: bd80 pop {r7, pc} - -0800af5c : - * @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) -{ - 800af5c: b580 push {r7, lr} - 800af5e: b082 sub sp, #8 - 800af60: af00 add r7, sp, #0 - 800af62: 6078 str r0, [r7, #4] - /* Init USB Ip. */ - if (pdev->id == DEVICE_FS) { - 800af64: 687b ldr r3, [r7, #4] - 800af66: 781b ldrb r3, [r3, #0] - 800af68: 2b00 cmp r3, #0 - 800af6a: d13c bne.n 800afe6 - /* Link the driver to the stack. */ - hpcd_USB_OTG_FS.pData = pdev; - 800af6c: 4a20 ldr r2, [pc, #128] @ (800aff0 ) - 800af6e: 687b ldr r3, [r7, #4] - 800af70: f8c2 34e0 str.w r3, [r2, #1248] @ 0x4e0 - pdev->pData = &hpcd_USB_OTG_FS; - 800af74: 687b ldr r3, [r7, #4] - 800af76: 4a1e ldr r2, [pc, #120] @ (800aff0 ) - 800af78: f8c3 22c8 str.w r2, [r3, #712] @ 0x2c8 - - hpcd_USB_OTG_FS.Instance = USB_OTG_FS; - 800af7c: 4b1c ldr r3, [pc, #112] @ (800aff0 ) - 800af7e: f04f 42a0 mov.w r2, #1342177280 @ 0x50000000 - 800af82: 601a str r2, [r3, #0] - hpcd_USB_OTG_FS.Init.dev_endpoints = 6; - 800af84: 4b1a ldr r3, [pc, #104] @ (800aff0 ) - 800af86: 2206 movs r2, #6 - 800af88: 711a strb r2, [r3, #4] - hpcd_USB_OTG_FS.Init.speed = PCD_SPEED_FULL; - 800af8a: 4b19 ldr r3, [pc, #100] @ (800aff0 ) - 800af8c: 2202 movs r2, #2 - 800af8e: 71da strb r2, [r3, #7] - hpcd_USB_OTG_FS.Init.dma_enable = DISABLE; - 800af90: 4b17 ldr r3, [pc, #92] @ (800aff0 ) - 800af92: 2200 movs r2, #0 - 800af94: 719a strb r2, [r3, #6] - hpcd_USB_OTG_FS.Init.phy_itface = PCD_PHY_EMBEDDED; - 800af96: 4b16 ldr r3, [pc, #88] @ (800aff0 ) - 800af98: 2202 movs r2, #2 - 800af9a: 725a strb r2, [r3, #9] - hpcd_USB_OTG_FS.Init.Sof_enable = DISABLE; - 800af9c: 4b14 ldr r3, [pc, #80] @ (800aff0 ) - 800af9e: 2200 movs r2, #0 - 800afa0: 729a strb r2, [r3, #10] - hpcd_USB_OTG_FS.Init.low_power_enable = DISABLE; - 800afa2: 4b13 ldr r3, [pc, #76] @ (800aff0 ) - 800afa4: 2200 movs r2, #0 - 800afa6: 72da strb r2, [r3, #11] - hpcd_USB_OTG_FS.Init.lpm_enable = DISABLE; - 800afa8: 4b11 ldr r3, [pc, #68] @ (800aff0 ) - 800afaa: 2200 movs r2, #0 - 800afac: 731a strb r2, [r3, #12] - hpcd_USB_OTG_FS.Init.vbus_sensing_enable = DISABLE; - 800afae: 4b10 ldr r3, [pc, #64] @ (800aff0 ) - 800afb0: 2200 movs r2, #0 - 800afb2: 739a strb r2, [r3, #14] - hpcd_USB_OTG_FS.Init.use_dedicated_ep1 = DISABLE; - 800afb4: 4b0e ldr r3, [pc, #56] @ (800aff0 ) - 800afb6: 2200 movs r2, #0 - 800afb8: 73da strb r2, [r3, #15] - if (HAL_PCD_Init(&hpcd_USB_OTG_FS) != HAL_OK) - 800afba: 480d ldr r0, [pc, #52] @ (800aff0 ) - 800afbc: f7f8 f812 bl 8002fe4 - 800afc0: 4603 mov r3, r0 - 800afc2: 2b00 cmp r3, #0 - 800afc4: d001 beq.n 800afca - { - Error_Handler( ); - 800afc6: f7f6 f94f bl 8001268 - 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); - 800afca: 2180 movs r1, #128 @ 0x80 - 800afcc: 4808 ldr r0, [pc, #32] @ (800aff0 ) - 800afce: f7f9 fa5a bl 8004486 - HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 0, 0x40); - 800afd2: 2240 movs r2, #64 @ 0x40 - 800afd4: 2100 movs r1, #0 - 800afd6: 4806 ldr r0, [pc, #24] @ (800aff0 ) - 800afd8: f7f9 fa0e bl 80043f8 - HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 1, 0x80); - 800afdc: 2280 movs r2, #128 @ 0x80 - 800afde: 2101 movs r1, #1 - 800afe0: 4803 ldr r0, [pc, #12] @ (800aff0 ) - 800afe2: f7f9 fa09 bl 80043f8 - } - return USBD_OK; - 800afe6: 2300 movs r3, #0 -} - 800afe8: 4618 mov r0, r3 - 800afea: 3708 adds r7, #8 - 800afec: 46bd mov sp, r7 - 800afee: bd80 pop {r7, pc} - 800aff0: 20001304 .word 0x20001304 - -0800aff4 : - * @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) -{ - 800aff4: b580 push {r7, lr} - 800aff6: b084 sub sp, #16 - 800aff8: af00 add r7, sp, #0 - 800affa: 6078 str r0, [r7, #4] - HAL_StatusTypeDef hal_status = HAL_OK; - 800affc: 2300 movs r3, #0 - 800affe: 73fb strb r3, [r7, #15] - USBD_StatusTypeDef usb_status = USBD_OK; - 800b000: 2300 movs r3, #0 - 800b002: 73bb strb r3, [r7, #14] - - hal_status = HAL_PCD_Start(pdev->pData); - 800b004: 687b ldr r3, [r7, #4] - 800b006: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800b00a: 4618 mov r0, r3 - 800b00c: f7f8 f900 bl 8003210 - 800b010: 4603 mov r3, r0 - 800b012: 73fb strb r3, [r7, #15] - - usb_status = USBD_Get_USB_Status(hal_status); - 800b014: 7bfb ldrb r3, [r7, #15] - 800b016: 4618 mov r0, r3 - 800b018: f000 f97e bl 800b318 - 800b01c: 4603 mov r3, r0 - 800b01e: 73bb strb r3, [r7, #14] - - return usb_status; - 800b020: 7bbb ldrb r3, [r7, #14] -} - 800b022: 4618 mov r0, r3 - 800b024: 3710 adds r7, #16 - 800b026: 46bd mov sp, r7 - 800b028: bd80 pop {r7, pc} - -0800b02a : - * @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) -{ - 800b02a: b580 push {r7, lr} - 800b02c: b084 sub sp, #16 - 800b02e: af00 add r7, sp, #0 - 800b030: 6078 str r0, [r7, #4] - 800b032: 4608 mov r0, r1 - 800b034: 4611 mov r1, r2 - 800b036: 461a mov r2, r3 - 800b038: 4603 mov r3, r0 - 800b03a: 70fb strb r3, [r7, #3] - 800b03c: 460b mov r3, r1 - 800b03e: 70bb strb r3, [r7, #2] - 800b040: 4613 mov r3, r2 - 800b042: 803b strh r3, [r7, #0] - HAL_StatusTypeDef hal_status = HAL_OK; - 800b044: 2300 movs r3, #0 - 800b046: 73fb strb r3, [r7, #15] - USBD_StatusTypeDef usb_status = USBD_OK; - 800b048: 2300 movs r3, #0 - 800b04a: 73bb strb r3, [r7, #14] - - hal_status = HAL_PCD_EP_Open(pdev->pData, ep_addr, ep_mps, ep_type); - 800b04c: 687b ldr r3, [r7, #4] - 800b04e: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 - 800b052: 78bb ldrb r3, [r7, #2] - 800b054: 883a ldrh r2, [r7, #0] - 800b056: 78f9 ldrb r1, [r7, #3] - 800b058: f7f8 fe01 bl 8003c5e - 800b05c: 4603 mov r3, r0 - 800b05e: 73fb strb r3, [r7, #15] - - usb_status = USBD_Get_USB_Status(hal_status); - 800b060: 7bfb ldrb r3, [r7, #15] - 800b062: 4618 mov r0, r3 - 800b064: f000 f958 bl 800b318 - 800b068: 4603 mov r3, r0 - 800b06a: 73bb strb r3, [r7, #14] - - return usb_status; - 800b06c: 7bbb ldrb r3, [r7, #14] -} - 800b06e: 4618 mov r0, r3 - 800b070: 3710 adds r7, #16 - 800b072: 46bd mov sp, r7 - 800b074: bd80 pop {r7, pc} - -0800b076 : - * @param pdev: Device handle - * @param ep_addr: Endpoint number - * @retval USBD status - */ -USBD_StatusTypeDef USBD_LL_CloseEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) -{ - 800b076: b580 push {r7, lr} - 800b078: b084 sub sp, #16 - 800b07a: af00 add r7, sp, #0 - 800b07c: 6078 str r0, [r7, #4] - 800b07e: 460b mov r3, r1 - 800b080: 70fb strb r3, [r7, #3] - HAL_StatusTypeDef hal_status = HAL_OK; - 800b082: 2300 movs r3, #0 - 800b084: 73fb strb r3, [r7, #15] - USBD_StatusTypeDef usb_status = USBD_OK; - 800b086: 2300 movs r3, #0 - 800b088: 73bb strb r3, [r7, #14] - - hal_status = HAL_PCD_EP_Close(pdev->pData, ep_addr); - 800b08a: 687b ldr r3, [r7, #4] - 800b08c: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800b090: 78fa ldrb r2, [r7, #3] - 800b092: 4611 mov r1, r2 - 800b094: 4618 mov r0, r3 - 800b096: f7f8 fe4c bl 8003d32 - 800b09a: 4603 mov r3, r0 - 800b09c: 73fb strb r3, [r7, #15] - - usb_status = USBD_Get_USB_Status(hal_status); - 800b09e: 7bfb ldrb r3, [r7, #15] - 800b0a0: 4618 mov r0, r3 - 800b0a2: f000 f939 bl 800b318 - 800b0a6: 4603 mov r3, r0 - 800b0a8: 73bb strb r3, [r7, #14] - - return usb_status; - 800b0aa: 7bbb ldrb r3, [r7, #14] -} - 800b0ac: 4618 mov r0, r3 - 800b0ae: 3710 adds r7, #16 - 800b0b0: 46bd mov sp, r7 - 800b0b2: bd80 pop {r7, pc} - -0800b0b4 : - * @param pdev: Device handle - * @param ep_addr: Endpoint number - * @retval USBD status - */ -USBD_StatusTypeDef USBD_LL_StallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) -{ - 800b0b4: b580 push {r7, lr} - 800b0b6: b084 sub sp, #16 - 800b0b8: af00 add r7, sp, #0 - 800b0ba: 6078 str r0, [r7, #4] - 800b0bc: 460b mov r3, r1 - 800b0be: 70fb strb r3, [r7, #3] - HAL_StatusTypeDef hal_status = HAL_OK; - 800b0c0: 2300 movs r3, #0 - 800b0c2: 73fb strb r3, [r7, #15] - USBD_StatusTypeDef usb_status = USBD_OK; - 800b0c4: 2300 movs r3, #0 - 800b0c6: 73bb strb r3, [r7, #14] - - hal_status = HAL_PCD_EP_SetStall(pdev->pData, ep_addr); - 800b0c8: 687b ldr r3, [r7, #4] - 800b0ca: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800b0ce: 78fa ldrb r2, [r7, #3] - 800b0d0: 4611 mov r1, r2 - 800b0d2: 4618 mov r0, r3 - 800b0d4: f7f8 feec bl 8003eb0 - 800b0d8: 4603 mov r3, r0 - 800b0da: 73fb strb r3, [r7, #15] - - usb_status = USBD_Get_USB_Status(hal_status); - 800b0dc: 7bfb ldrb r3, [r7, #15] - 800b0de: 4618 mov r0, r3 - 800b0e0: f000 f91a bl 800b318 - 800b0e4: 4603 mov r3, r0 - 800b0e6: 73bb strb r3, [r7, #14] - - return usb_status; - 800b0e8: 7bbb ldrb r3, [r7, #14] -} - 800b0ea: 4618 mov r0, r3 - 800b0ec: 3710 adds r7, #16 - 800b0ee: 46bd mov sp, r7 - 800b0f0: bd80 pop {r7, pc} - -0800b0f2 : - * @param pdev: Device handle - * @param ep_addr: Endpoint number - * @retval USBD status - */ -USBD_StatusTypeDef USBD_LL_ClearStallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) -{ - 800b0f2: b580 push {r7, lr} - 800b0f4: b084 sub sp, #16 - 800b0f6: af00 add r7, sp, #0 - 800b0f8: 6078 str r0, [r7, #4] - 800b0fa: 460b mov r3, r1 - 800b0fc: 70fb strb r3, [r7, #3] - HAL_StatusTypeDef hal_status = HAL_OK; - 800b0fe: 2300 movs r3, #0 - 800b100: 73fb strb r3, [r7, #15] - USBD_StatusTypeDef usb_status = USBD_OK; - 800b102: 2300 movs r3, #0 - 800b104: 73bb strb r3, [r7, #14] - - hal_status = HAL_PCD_EP_ClrStall(pdev->pData, ep_addr); - 800b106: 687b ldr r3, [r7, #4] - 800b108: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800b10c: 78fa ldrb r2, [r7, #3] - 800b10e: 4611 mov r1, r2 - 800b110: 4618 mov r0, r3 - 800b112: f7f8 ff30 bl 8003f76 - 800b116: 4603 mov r3, r0 - 800b118: 73fb strb r3, [r7, #15] - - usb_status = USBD_Get_USB_Status(hal_status); - 800b11a: 7bfb ldrb r3, [r7, #15] - 800b11c: 4618 mov r0, r3 - 800b11e: f000 f8fb bl 800b318 - 800b122: 4603 mov r3, r0 - 800b124: 73bb strb r3, [r7, #14] - - return usb_status; - 800b126: 7bbb ldrb r3, [r7, #14] -} - 800b128: 4618 mov r0, r3 - 800b12a: 3710 adds r7, #16 - 800b12c: 46bd mov sp, r7 - 800b12e: bd80 pop {r7, pc} - -0800b130 : - * @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) -{ - 800b130: b480 push {r7} - 800b132: b085 sub sp, #20 - 800b134: af00 add r7, sp, #0 - 800b136: 6078 str r0, [r7, #4] - 800b138: 460b mov r3, r1 - 800b13a: 70fb strb r3, [r7, #3] - PCD_HandleTypeDef *hpcd = (PCD_HandleTypeDef*) pdev->pData; - 800b13c: 687b ldr r3, [r7, #4] - 800b13e: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800b142: 60fb str r3, [r7, #12] - - if((ep_addr & 0x80) == 0x80) - 800b144: f997 3003 ldrsb.w r3, [r7, #3] - 800b148: 2b00 cmp r3, #0 - 800b14a: da0b bge.n 800b164 - { - return hpcd->IN_ep[ep_addr & 0x7F].is_stall; - 800b14c: 78fb ldrb r3, [r7, #3] - 800b14e: f003 027f and.w r2, r3, #127 @ 0x7f - 800b152: 68f9 ldr r1, [r7, #12] - 800b154: 4613 mov r3, r2 - 800b156: 00db lsls r3, r3, #3 - 800b158: 4413 add r3, r2 - 800b15a: 009b lsls r3, r3, #2 - 800b15c: 440b add r3, r1 - 800b15e: 3316 adds r3, #22 - 800b160: 781b ldrb r3, [r3, #0] - 800b162: e00b b.n 800b17c - } - else - { - return hpcd->OUT_ep[ep_addr & 0x7F].is_stall; - 800b164: 78fb ldrb r3, [r7, #3] - 800b166: f003 027f and.w r2, r3, #127 @ 0x7f - 800b16a: 68f9 ldr r1, [r7, #12] - 800b16c: 4613 mov r3, r2 - 800b16e: 00db lsls r3, r3, #3 - 800b170: 4413 add r3, r2 - 800b172: 009b lsls r3, r3, #2 - 800b174: 440b add r3, r1 - 800b176: f203 2356 addw r3, r3, #598 @ 0x256 - 800b17a: 781b ldrb r3, [r3, #0] - } -} - 800b17c: 4618 mov r0, r3 - 800b17e: 3714 adds r7, #20 - 800b180: 46bd mov sp, r7 - 800b182: f85d 7b04 ldr.w r7, [sp], #4 - 800b186: 4770 bx lr - -0800b188 : - * @param pdev: Device handle - * @param dev_addr: Device address - * @retval USBD status - */ -USBD_StatusTypeDef USBD_LL_SetUSBAddress(USBD_HandleTypeDef *pdev, uint8_t dev_addr) -{ - 800b188: b580 push {r7, lr} - 800b18a: b084 sub sp, #16 - 800b18c: af00 add r7, sp, #0 - 800b18e: 6078 str r0, [r7, #4] - 800b190: 460b mov r3, r1 - 800b192: 70fb strb r3, [r7, #3] - HAL_StatusTypeDef hal_status = HAL_OK; - 800b194: 2300 movs r3, #0 - 800b196: 73fb strb r3, [r7, #15] - USBD_StatusTypeDef usb_status = USBD_OK; - 800b198: 2300 movs r3, #0 - 800b19a: 73bb strb r3, [r7, #14] - - hal_status = HAL_PCD_SetAddress(pdev->pData, dev_addr); - 800b19c: 687b ldr r3, [r7, #4] - 800b19e: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800b1a2: 78fa ldrb r2, [r7, #3] - 800b1a4: 4611 mov r1, r2 - 800b1a6: 4618 mov r0, r3 - 800b1a8: f7f8 fd35 bl 8003c16 - 800b1ac: 4603 mov r3, r0 - 800b1ae: 73fb strb r3, [r7, #15] - - usb_status = USBD_Get_USB_Status(hal_status); - 800b1b0: 7bfb ldrb r3, [r7, #15] - 800b1b2: 4618 mov r0, r3 - 800b1b4: f000 f8b0 bl 800b318 - 800b1b8: 4603 mov r3, r0 - 800b1ba: 73bb strb r3, [r7, #14] - - return usb_status; - 800b1bc: 7bbb ldrb r3, [r7, #14] -} - 800b1be: 4618 mov r0, r3 - 800b1c0: 3710 adds r7, #16 - 800b1c2: 46bd mov sp, r7 - 800b1c4: bd80 pop {r7, pc} - -0800b1c6 : - * @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) -{ - 800b1c6: b580 push {r7, lr} - 800b1c8: b086 sub sp, #24 - 800b1ca: af00 add r7, sp, #0 - 800b1cc: 60f8 str r0, [r7, #12] - 800b1ce: 607a str r2, [r7, #4] - 800b1d0: 603b str r3, [r7, #0] - 800b1d2: 460b mov r3, r1 - 800b1d4: 72fb strb r3, [r7, #11] - HAL_StatusTypeDef hal_status = HAL_OK; - 800b1d6: 2300 movs r3, #0 - 800b1d8: 75fb strb r3, [r7, #23] - USBD_StatusTypeDef usb_status = USBD_OK; - 800b1da: 2300 movs r3, #0 - 800b1dc: 75bb strb r3, [r7, #22] - - hal_status = HAL_PCD_EP_Transmit(pdev->pData, ep_addr, pbuf, size); - 800b1de: 68fb ldr r3, [r7, #12] - 800b1e0: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 - 800b1e4: 7af9 ldrb r1, [r7, #11] - 800b1e6: 683b ldr r3, [r7, #0] - 800b1e8: 687a ldr r2, [r7, #4] - 800b1ea: f7f8 fe27 bl 8003e3c - 800b1ee: 4603 mov r3, r0 - 800b1f0: 75fb strb r3, [r7, #23] - - usb_status = USBD_Get_USB_Status(hal_status); - 800b1f2: 7dfb ldrb r3, [r7, #23] - 800b1f4: 4618 mov r0, r3 - 800b1f6: f000 f88f bl 800b318 - 800b1fa: 4603 mov r3, r0 - 800b1fc: 75bb strb r3, [r7, #22] - - return usb_status; - 800b1fe: 7dbb ldrb r3, [r7, #22] -} - 800b200: 4618 mov r0, r3 - 800b202: 3718 adds r7, #24 - 800b204: 46bd mov sp, r7 - 800b206: bd80 pop {r7, pc} - -0800b208 : - * @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) -{ - 800b208: b580 push {r7, lr} - 800b20a: b086 sub sp, #24 - 800b20c: af00 add r7, sp, #0 - 800b20e: 60f8 str r0, [r7, #12] - 800b210: 607a str r2, [r7, #4] - 800b212: 603b str r3, [r7, #0] - 800b214: 460b mov r3, r1 - 800b216: 72fb strb r3, [r7, #11] - HAL_StatusTypeDef hal_status = HAL_OK; - 800b218: 2300 movs r3, #0 - 800b21a: 75fb strb r3, [r7, #23] - USBD_StatusTypeDef usb_status = USBD_OK; - 800b21c: 2300 movs r3, #0 - 800b21e: 75bb strb r3, [r7, #22] - - hal_status = HAL_PCD_EP_Receive(pdev->pData, ep_addr, pbuf, size); - 800b220: 68fb ldr r3, [r7, #12] - 800b222: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 - 800b226: 7af9 ldrb r1, [r7, #11] - 800b228: 683b ldr r3, [r7, #0] - 800b22a: 687a ldr r2, [r7, #4] - 800b22c: f7f8 fdcb bl 8003dc6 - 800b230: 4603 mov r3, r0 - 800b232: 75fb strb r3, [r7, #23] - - usb_status = USBD_Get_USB_Status(hal_status); - 800b234: 7dfb ldrb r3, [r7, #23] - 800b236: 4618 mov r0, r3 - 800b238: f000 f86e bl 800b318 - 800b23c: 4603 mov r3, r0 - 800b23e: 75bb strb r3, [r7, #22] - - return usb_status; - 800b240: 7dbb ldrb r3, [r7, #22] -} - 800b242: 4618 mov r0, r3 - 800b244: 3718 adds r7, #24 - 800b246: 46bd mov sp, r7 - 800b248: bd80 pop {r7, pc} + 800aef4: f000 f86e bl 800afd4 + 800aef8: 4603 mov r3, r0 + 800aefa: 75bb strb r3, [r7, #22] + 800aefc: 7dbb ldrb r3, [r7, #22] + 800aefe: 4618 mov r0, r3 + 800af00: 3718 adds r7, #24 + 800af02: 46bd mov sp, r7 + 800af04: bd80 pop {r7, pc} ... -0800b24c : - * @param hpcd: PCD handle - * @param msg: LPM message - * @retval None - */ -void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg) -{ - 800b24c: b580 push {r7, lr} - 800b24e: b082 sub sp, #8 - 800b250: af00 add r7, sp, #0 - 800b252: 6078 str r0, [r7, #4] - 800b254: 460b mov r3, r1 - 800b256: 70fb strb r3, [r7, #3] - switch (msg) - 800b258: 78fb ldrb r3, [r7, #3] - 800b25a: 2b00 cmp r3, #0 - 800b25c: d002 beq.n 800b264 - 800b25e: 2b01 cmp r3, #1 - 800b260: d01f beq.n 800b2a2 - /* 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; - } -} - 800b262: e03b b.n 800b2dc - if (hpcd->Init.low_power_enable) - 800b264: 687b ldr r3, [r7, #4] - 800b266: 7adb ldrb r3, [r3, #11] - 800b268: 2b00 cmp r3, #0 - 800b26a: d007 beq.n 800b27c - SystemClock_Config(); - 800b26c: f7f5 fcee bl 8000c4c - SCB->SCR &= (uint32_t)~((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); - 800b270: 4b1c ldr r3, [pc, #112] @ (800b2e4 ) - 800b272: 691b ldr r3, [r3, #16] - 800b274: 4a1b ldr r2, [pc, #108] @ (800b2e4 ) - 800b276: f023 0306 bic.w r3, r3, #6 - 800b27a: 6113 str r3, [r2, #16] - __HAL_PCD_UNGATE_PHYCLOCK(hpcd); - 800b27c: 687b ldr r3, [r7, #4] - 800b27e: 681b ldr r3, [r3, #0] - 800b280: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 800b284: 681b ldr r3, [r3, #0] - 800b286: 687a ldr r2, [r7, #4] - 800b288: 6812 ldr r2, [r2, #0] - 800b28a: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 800b28e: f023 0301 bic.w r3, r3, #1 - 800b292: 6013 str r3, [r2, #0] - USBD_LL_Resume(hpcd->pData); - 800b294: 687b ldr r3, [r7, #4] - 800b296: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800b29a: 4618 mov r0, r3 - 800b29c: f7fe fb90 bl 80099c0 - break; - 800b2a0: e01c b.n 800b2dc - __HAL_PCD_GATE_PHYCLOCK(hpcd); - 800b2a2: 687b ldr r3, [r7, #4] - 800b2a4: 681b ldr r3, [r3, #0] - 800b2a6: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 800b2aa: 681b ldr r3, [r3, #0] - 800b2ac: 687a ldr r2, [r7, #4] - 800b2ae: 6812 ldr r2, [r2, #0] - 800b2b0: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 800b2b4: f043 0301 orr.w r3, r3, #1 - 800b2b8: 6013 str r3, [r2, #0] - USBD_LL_Suspend(hpcd->pData); - 800b2ba: 687b ldr r3, [r7, #4] - 800b2bc: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800b2c0: 4618 mov r0, r3 - 800b2c2: f7fe fb61 bl 8009988 - if (hpcd->Init.low_power_enable) - 800b2c6: 687b ldr r3, [r7, #4] - 800b2c8: 7adb ldrb r3, [r3, #11] - 800b2ca: 2b00 cmp r3, #0 - 800b2cc: d005 beq.n 800b2da - SCB->SCR |= (uint32_t)((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); - 800b2ce: 4b05 ldr r3, [pc, #20] @ (800b2e4 ) - 800b2d0: 691b ldr r3, [r3, #16] - 800b2d2: 4a04 ldr r2, [pc, #16] @ (800b2e4 ) - 800b2d4: f043 0306 orr.w r3, r3, #6 - 800b2d8: 6113 str r3, [r2, #16] - break; - 800b2da: bf00 nop -} - 800b2dc: bf00 nop - 800b2de: 3708 adds r7, #8 - 800b2e0: 46bd mov sp, r7 - 800b2e2: bd80 pop {r7, pc} - 800b2e4: e000ed00 .word 0xe000ed00 +0800af08 : + 800af08: b580 push {r7, lr} + 800af0a: b082 sub sp, #8 + 800af0c: af00 add r7, sp, #0 + 800af0e: 6078 str r0, [r7, #4] + 800af10: 460b mov r3, r1 + 800af12: 70fb strb r3, [r7, #3] + 800af14: 78fb ldrb r3, [r7, #3] + 800af16: 2b00 cmp r3, #0 + 800af18: d002 beq.n 800af20 + 800af1a: 2b01 cmp r3, #1 + 800af1c: d01f beq.n 800af5e + 800af1e: e03b b.n 800af98 + 800af20: 687b ldr r3, [r7, #4] + 800af22: 7adb ldrb r3, [r3, #11] + 800af24: 2b00 cmp r3, #0 + 800af26: d007 beq.n 800af38 + 800af28: f7f5 fe18 bl 8000b5c + 800af2c: 4b1c ldr r3, [pc, #112] @ (800afa0 ) + 800af2e: 691b ldr r3, [r3, #16] + 800af30: 4a1b ldr r2, [pc, #108] @ (800afa0 ) + 800af32: f023 0306 bic.w r3, r3, #6 + 800af36: 6113 str r3, [r2, #16] + 800af38: 687b ldr r3, [r7, #4] + 800af3a: 681b ldr r3, [r3, #0] + 800af3c: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 800af40: 681b ldr r3, [r3, #0] + 800af42: 687a ldr r2, [r7, #4] + 800af44: 6812 ldr r2, [r2, #0] + 800af46: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 800af4a: f023 0301 bic.w r3, r3, #1 + 800af4e: 6013 str r3, [r2, #0] + 800af50: 687b ldr r3, [r7, #4] + 800af52: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800af56: 4618 mov r0, r3 + 800af58: f7fe fb90 bl 800967c + 800af5c: e01c b.n 800af98 + 800af5e: 687b ldr r3, [r7, #4] + 800af60: 681b ldr r3, [r3, #0] + 800af62: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 800af66: 681b ldr r3, [r3, #0] + 800af68: 687a ldr r2, [r7, #4] + 800af6a: 6812 ldr r2, [r2, #0] + 800af6c: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 800af70: f043 0301 orr.w r3, r3, #1 + 800af74: 6013 str r3, [r2, #0] + 800af76: 687b ldr r3, [r7, #4] + 800af78: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800af7c: 4618 mov r0, r3 + 800af7e: f7fe fb61 bl 8009644 + 800af82: 687b ldr r3, [r7, #4] + 800af84: 7adb ldrb r3, [r3, #11] + 800af86: 2b00 cmp r3, #0 + 800af88: d005 beq.n 800af96 + 800af8a: 4b05 ldr r3, [pc, #20] @ (800afa0 ) + 800af8c: 691b ldr r3, [r3, #16] + 800af8e: 4a04 ldr r2, [pc, #16] @ (800afa0 ) + 800af90: f043 0306 orr.w r3, r3, #6 + 800af94: 6113 str r3, [r2, #16] + 800af96: bf00 nop + 800af98: bf00 nop + 800af9a: 3708 adds r7, #8 + 800af9c: 46bd mov sp, r7 + 800af9e: bd80 pop {r7, pc} + 800afa0: e000ed00 .word 0xe000ed00 -0800b2e8 : - * @brief Static single allocation. - * @param size: Size of allocated memory - * @retval None - */ -void *USBD_static_malloc(uint32_t size) -{ - 800b2e8: b480 push {r7} - 800b2ea: b083 sub sp, #12 - 800b2ec: af00 add r7, sp, #0 - 800b2ee: 6078 str r0, [r7, #4] - static uint32_t mem[(sizeof(USBD_HID_HandleTypeDef)/4)+1];/* On 32-bit boundary */ - return mem; - 800b2f0: 4b03 ldr r3, [pc, #12] @ (800b300 ) -} - 800b2f2: 4618 mov r0, r3 - 800b2f4: 370c adds r7, #12 - 800b2f6: 46bd mov sp, r7 - 800b2f8: f85d 7b04 ldr.w r7, [sp], #4 - 800b2fc: 4770 bx lr - 800b2fe: bf00 nop - 800b300: 200017e8 .word 0x200017e8 +0800afa4 : + 800afa4: b480 push {r7} + 800afa6: b083 sub sp, #12 + 800afa8: af00 add r7, sp, #0 + 800afaa: 6078 str r0, [r7, #4] + 800afac: 4b03 ldr r3, [pc, #12] @ (800afbc ) + 800afae: 4618 mov r0, r3 + 800afb0: 370c adds r7, #12 + 800afb2: 46bd mov sp, r7 + 800afb4: f85d 7b04 ldr.w r7, [sp], #4 + 800afb8: 4770 bx lr + 800afba: bf00 nop + 800afbc: 20001794 .word 0x20001794 -0800b304 : - * @brief Dummy memory free - * @param p: Pointer to allocated memory address - * @retval None - */ -void USBD_static_free(void *p) -{ - 800b304: b480 push {r7} - 800b306: b083 sub sp, #12 - 800b308: af00 add r7, sp, #0 - 800b30a: 6078 str r0, [r7, #4] +0800afc0 : + 800afc0: b480 push {r7} + 800afc2: b083 sub sp, #12 + 800afc4: af00 add r7, sp, #0 + 800afc6: 6078 str r0, [r7, #4] + 800afc8: bf00 nop + 800afca: 370c adds r7, #12 + 800afcc: 46bd mov sp, r7 + 800afce: f85d 7b04 ldr.w r7, [sp], #4 + 800afd2: 4770 bx lr -} - 800b30c: bf00 nop - 800b30e: 370c adds r7, #12 - 800b310: 46bd mov sp, r7 - 800b312: f85d 7b04 ldr.w r7, [sp], #4 - 800b316: 4770 bx lr +0800afd4 : + 800afd4: b480 push {r7} + 800afd6: b085 sub sp, #20 + 800afd8: af00 add r7, sp, #0 + 800afda: 4603 mov r3, r0 + 800afdc: 71fb strb r3, [r7, #7] + 800afde: 2300 movs r3, #0 + 800afe0: 73fb strb r3, [r7, #15] + 800afe2: 79fb ldrb r3, [r7, #7] + 800afe4: 2b03 cmp r3, #3 + 800afe6: d817 bhi.n 800b018 + 800afe8: a201 add r2, pc, #4 @ (adr r2, 800aff0 ) + 800afea: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800afee: bf00 nop + 800aff0: 0800b001 .word 0x0800b001 + 800aff4: 0800b007 .word 0x0800b007 + 800aff8: 0800b00d .word 0x0800b00d + 800affc: 0800b013 .word 0x0800b013 + 800b000: 2300 movs r3, #0 + 800b002: 73fb strb r3, [r7, #15] + 800b004: e00b b.n 800b01e + 800b006: 2303 movs r3, #3 + 800b008: 73fb strb r3, [r7, #15] + 800b00a: e008 b.n 800b01e + 800b00c: 2301 movs r3, #1 + 800b00e: 73fb strb r3, [r7, #15] + 800b010: e005 b.n 800b01e + 800b012: 2303 movs r3, #3 + 800b014: 73fb strb r3, [r7, #15] + 800b016: e002 b.n 800b01e + 800b018: 2303 movs r3, #3 + 800b01a: 73fb strb r3, [r7, #15] + 800b01c: bf00 nop + 800b01e: 7bfb ldrb r3, [r7, #15] + 800b020: 4618 mov r0, r3 + 800b022: 3714 adds r7, #20 + 800b024: 46bd mov sp, r7 + 800b026: f85d 7b04 ldr.w r7, [sp], #4 + 800b02a: 4770 bx lr -0800b318 : - * @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) -{ - 800b318: b480 push {r7} - 800b31a: b085 sub sp, #20 - 800b31c: af00 add r7, sp, #0 - 800b31e: 4603 mov r3, r0 - 800b320: 71fb strb r3, [r7, #7] - USBD_StatusTypeDef usb_status = USBD_OK; - 800b322: 2300 movs r3, #0 - 800b324: 73fb strb r3, [r7, #15] +0800b02c : + 800b02c: 4402 add r2, r0 + 800b02e: 4603 mov r3, r0 + 800b030: 4293 cmp r3, r2 + 800b032: d100 bne.n 800b036 + 800b034: 4770 bx lr + 800b036: f803 1b01 strb.w r1, [r3], #1 + 800b03a: e7f9 b.n 800b030 - switch (hal_status) - 800b326: 79fb ldrb r3, [r7, #7] - 800b328: 2b03 cmp r3, #3 - 800b32a: d817 bhi.n 800b35c - 800b32c: a201 add r2, pc, #4 @ (adr r2, 800b334 ) - 800b32e: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800b332: bf00 nop - 800b334: 0800b345 .word 0x0800b345 - 800b338: 0800b34b .word 0x0800b34b - 800b33c: 0800b351 .word 0x0800b351 - 800b340: 0800b357 .word 0x0800b357 - { - case HAL_OK : - usb_status = USBD_OK; - 800b344: 2300 movs r3, #0 - 800b346: 73fb strb r3, [r7, #15] - break; - 800b348: e00b b.n 800b362 - case HAL_ERROR : - usb_status = USBD_FAIL; - 800b34a: 2303 movs r3, #3 - 800b34c: 73fb strb r3, [r7, #15] - break; - 800b34e: e008 b.n 800b362 - case HAL_BUSY : - usb_status = USBD_BUSY; - 800b350: 2301 movs r3, #1 - 800b352: 73fb strb r3, [r7, #15] - break; - 800b354: e005 b.n 800b362 - case HAL_TIMEOUT : - usb_status = USBD_FAIL; - 800b356: 2303 movs r3, #3 - 800b358: 73fb strb r3, [r7, #15] - break; - 800b35a: e002 b.n 800b362 - default : - usb_status = USBD_FAIL; - 800b35c: 2303 movs r3, #3 - 800b35e: 73fb strb r3, [r7, #15] - break; - 800b360: bf00 nop - } - return usb_status; - 800b362: 7bfb ldrb r3, [r7, #15] -} - 800b364: 4618 mov r0, r3 - 800b366: 3714 adds r7, #20 - 800b368: 46bd mov sp, r7 - 800b36a: f85d 7b04 ldr.w r7, [sp], #4 - 800b36e: 4770 bx lr +0800b03c <__libc_init_array>: + 800b03c: b570 push {r4, r5, r6, lr} + 800b03e: 4d0d ldr r5, [pc, #52] @ (800b074 <__libc_init_array+0x38>) + 800b040: 4c0d ldr r4, [pc, #52] @ (800b078 <__libc_init_array+0x3c>) + 800b042: 1b64 subs r4, r4, r5 + 800b044: 10a4 asrs r4, r4, #2 + 800b046: 2600 movs r6, #0 + 800b048: 42a6 cmp r6, r4 + 800b04a: d109 bne.n 800b060 <__libc_init_array+0x24> + 800b04c: 4d0b ldr r5, [pc, #44] @ (800b07c <__libc_init_array+0x40>) + 800b04e: 4c0c ldr r4, [pc, #48] @ (800b080 <__libc_init_array+0x44>) + 800b050: f000 f826 bl 800b0a0 <_init> + 800b054: 1b64 subs r4, r4, r5 + 800b056: 10a4 asrs r4, r4, #2 + 800b058: 2600 movs r6, #0 + 800b05a: 42a6 cmp r6, r4 + 800b05c: d105 bne.n 800b06a <__libc_init_array+0x2e> + 800b05e: bd70 pop {r4, r5, r6, pc} + 800b060: f855 3b04 ldr.w r3, [r5], #4 + 800b064: 4798 blx r3 + 800b066: 3601 adds r6, #1 + 800b068: e7ee b.n 800b048 <__libc_init_array+0xc> + 800b06a: f855 3b04 ldr.w r3, [r5], #4 + 800b06e: 4798 blx r3 + 800b070: 3601 adds r6, #1 + 800b072: e7f2 b.n 800b05a <__libc_init_array+0x1e> + 800b074: 0800b11c .word 0x0800b11c + 800b078: 0800b11c .word 0x0800b11c + 800b07c: 0800b11c .word 0x0800b11c + 800b080: 0800b120 .word 0x0800b120 -0800b370 : - 800b370: 4402 add r2, r0 - 800b372: 4603 mov r3, r0 - 800b374: 4293 cmp r3, r2 - 800b376: d100 bne.n 800b37a - 800b378: 4770 bx lr - 800b37a: f803 1b01 strb.w r1, [r3], #1 - 800b37e: e7f9 b.n 800b374 +0800b084 : + 800b084: 440a add r2, r1 + 800b086: 4291 cmp r1, r2 + 800b088: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff + 800b08c: d100 bne.n 800b090 + 800b08e: 4770 bx lr + 800b090: b510 push {r4, lr} + 800b092: f811 4b01 ldrb.w r4, [r1], #1 + 800b096: f803 4f01 strb.w r4, [r3, #1]! + 800b09a: 4291 cmp r1, r2 + 800b09c: d1f9 bne.n 800b092 + 800b09e: bd10 pop {r4, pc} -0800b380 <__libc_init_array>: - 800b380: b570 push {r4, r5, r6, lr} - 800b382: 4d0d ldr r5, [pc, #52] @ (800b3b8 <__libc_init_array+0x38>) - 800b384: 4c0d ldr r4, [pc, #52] @ (800b3bc <__libc_init_array+0x3c>) - 800b386: 1b64 subs r4, r4, r5 - 800b388: 10a4 asrs r4, r4, #2 - 800b38a: 2600 movs r6, #0 - 800b38c: 42a6 cmp r6, r4 - 800b38e: d109 bne.n 800b3a4 <__libc_init_array+0x24> - 800b390: 4d0b ldr r5, [pc, #44] @ (800b3c0 <__libc_init_array+0x40>) - 800b392: 4c0c ldr r4, [pc, #48] @ (800b3c4 <__libc_init_array+0x44>) - 800b394: f000 f826 bl 800b3e4 <_init> - 800b398: 1b64 subs r4, r4, r5 - 800b39a: 10a4 asrs r4, r4, #2 - 800b39c: 2600 movs r6, #0 - 800b39e: 42a6 cmp r6, r4 - 800b3a0: d105 bne.n 800b3ae <__libc_init_array+0x2e> - 800b3a2: bd70 pop {r4, r5, r6, pc} - 800b3a4: f855 3b04 ldr.w r3, [r5], #4 - 800b3a8: 4798 blx r3 - 800b3aa: 3601 adds r6, #1 - 800b3ac: e7ee b.n 800b38c <__libc_init_array+0xc> - 800b3ae: f855 3b04 ldr.w r3, [r5], #4 - 800b3b2: 4798 blx r3 - 800b3b4: 3601 adds r6, #1 - 800b3b6: e7f2 b.n 800b39e <__libc_init_array+0x1e> - 800b3b8: 0800b460 .word 0x0800b460 - 800b3bc: 0800b460 .word 0x0800b460 - 800b3c0: 0800b460 .word 0x0800b460 - 800b3c4: 0800b464 .word 0x0800b464 +0800b0a0 <_init>: + 800b0a0: b5f8 push {r3, r4, r5, r6, r7, lr} + 800b0a2: bf00 nop + 800b0a4: bcf8 pop {r3, r4, r5, r6, r7} + 800b0a6: bc08 pop {r3} + 800b0a8: 469e mov lr, r3 + 800b0aa: 4770 bx lr -0800b3c8 : - 800b3c8: 440a add r2, r1 - 800b3ca: 4291 cmp r1, r2 - 800b3cc: f100 33ff add.w r3, r0, #4294967295 - 800b3d0: d100 bne.n 800b3d4 - 800b3d2: 4770 bx lr - 800b3d4: b510 push {r4, lr} - 800b3d6: f811 4b01 ldrb.w r4, [r1], #1 - 800b3da: f803 4f01 strb.w r4, [r3, #1]! - 800b3de: 4291 cmp r1, r2 - 800b3e0: d1f9 bne.n 800b3d6 - 800b3e2: bd10 pop {r4, pc} - -0800b3e4 <_init>: - 800b3e4: b5f8 push {r3, r4, r5, r6, r7, lr} - 800b3e6: bf00 nop - 800b3e8: bcf8 pop {r3, r4, r5, r6, r7} - 800b3ea: bc08 pop {r3} - 800b3ec: 469e mov lr, r3 - 800b3ee: 4770 bx lr - -0800b3f0 <_fini>: - 800b3f0: b5f8 push {r3, r4, r5, r6, r7, lr} - 800b3f2: bf00 nop - 800b3f4: bcf8 pop {r3, r4, r5, r6, r7} - 800b3f6: bc08 pop {r3} - 800b3f8: 469e mov lr, r3 - 800b3fa: 4770 bx lr +0800b0ac <_fini>: + 800b0ac: b5f8 push {r3, r4, r5, r6, r7, lr} + 800b0ae: bf00 nop + 800b0b0: bcf8 pop {r3, r4, r5, r6, r7} + 800b0b2: bc08 pop {r3} + 800b0b4: 469e mov lr, r3 + 800b0b6: 4770 bx lr diff --git a/firmware/67percent/Debug/67.map b/firmware/67percent/Debug/67.map index d761d332..ad592fc1 100644 --- a/firmware/67percent/Debug/67.map +++ b/firmware/67percent/Debug/67.map @@ -1,66 +1,66 @@ Archive member included to satisfy reference by file (symbol) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-exit.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o (exit) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-exit.o) (__stdio_exit_handler) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fwalk.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) (_fwalk_sglue) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) (__sread) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o (memset) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-closer.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) (_close_r) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-reent.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-closer.o) (errno) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-impure.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-reent.o) (_impure_ptr) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lseekr.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) (_lseek_r) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-readr.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) (_read_r) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-writer.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) (_write_r) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-errno.o) +/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-exit.o) + /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/crt0.o (exit) +/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-findfp.o) + /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-exit.o) (__stdio_exit_handler) +/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-fwalk.o) + /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-findfp.o) (_fwalk_sglue) +/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-stdio.o) + /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-findfp.o) (__sread) +/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) + /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/crt0.o (memset) +/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-closer.o) + /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-stdio.o) (_close_r) +/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-reent.o) + /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-closer.o) (errno) +/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-impure.o) + /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-reent.o) (_impure_ptr) +/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-lseekr.o) + /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-stdio.o) (_lseek_r) +/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-readr.o) + /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-stdio.o) (_read_r) +/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-writer.o) + /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-stdio.o) (_write_r) +/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-errno.o) ./Core/Src/syscalls.o (__errno) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o (__libc_init_array) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) (__retarget_lock_init_recursive) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memcpy-stub.o) +/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) + /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/crt0.o (__libc_init_array) +/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-lock.o) + /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-findfp.o) (__retarget_lock_init_recursive) +/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-memcpy-stub.o) ./Core/Src/main.o (memcpy) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-freer.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-reent.o) (_free_r) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mallocr.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) (_malloc_r) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mlock.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-freer.o) (__malloc_lock) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fflush.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) (_fflush_r) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-sbrkr.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mallocr.o) (_sbrk_r) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) +/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-freer.o) + /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-reent.o) (_free_r) +/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-mallocr.o) + /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-findfp.o) (_malloc_r) +/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-mlock.o) + /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-freer.o) (__malloc_lock) +/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-fflush.o) + /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-findfp.o) (_fflush_r) +/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-sbrkr.o) + /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-mallocr.o) (_sbrk_r) +/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(_aeabi_uldivmod.o) ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o (__aeabi_uldivmod) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) (__udivmoddi4) -C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_dvmd_tls.o) - C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) (__aeabi_ldiv0) +/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) + /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(_aeabi_uldivmod.o) (__udivmoddi4) +/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(_dvmd_tls.o) + /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(_aeabi_uldivmod.o) (__aeabi_ldiv0) Discarded input sections - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o - .data 0x00000000 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o - .rodata 0x00000000 0x24 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o - .text 0x00000000 0x7c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o - .ARM.extab 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o - .ARM.exidx 0x00000000 0x10 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o + .text 0x00000000 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/crti.o + .data 0x00000000 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/crti.o + .bss 0x00000000 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/crti.o + .data 0x00000000 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 + .rodata 0x00000000 0x24 /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 + .text 0x00000000 0x7c /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/crt0.o + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o + .ARM.extab 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o + .ARM.exidx 0x00000000 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/crt0.o .ARM.attributes - 0x00000000 0x20 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o + 0x00000000 0x20 /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/crt0.o .group 0x00000000 0xc ./Core/Src/dma.o .group 0x00000000 0xc ./Core/Src/dma.o .group 0x00000000 0xc ./Core/Src/dma.o @@ -294,8 +294,20 @@ Discarded input sections .text 0x00000000 0x0 ./Core/Src/i2c.o .data 0x00000000 0x0 ./Core/Src/i2c.o .bss 0x00000000 0x0 ./Core/Src/i2c.o + .bss.hi2c1 0x00000000 0x54 ./Core/Src/i2c.o + .text.MX_I2C1_Init + 0x00000000 0x5c ./Core/Src/i2c.o + .text.HAL_I2C_MspInit + 0x00000000 0x90 ./Core/Src/i2c.o .text.HAL_I2C_MspDeInit 0x00000000 0x44 ./Core/Src/i2c.o + .debug_info 0x00000000 0x9a4 ./Core/Src/i2c.o + .debug_abbrev 0x00000000 0x1f1 ./Core/Src/i2c.o + .debug_aranges + 0x00000000 0x30 ./Core/Src/i2c.o + .debug_rnglists + 0x00000000 0x20 ./Core/Src/i2c.o + .debug_macro 0x00000000 0x224 ./Core/Src/i2c.o .debug_macro 0x00000000 0xad8 ./Core/Src/i2c.o .debug_macro 0x00000000 0x2a7 ./Core/Src/i2c.o .debug_macro 0x00000000 0x2e ./Core/Src/i2c.o @@ -341,6 +353,12 @@ Discarded input sections .debug_macro 0x00000000 0xba ./Core/Src/i2c.o .debug_macro 0x00000000 0x126 ./Core/Src/i2c.o .debug_macro 0x00000000 0x304 ./Core/Src/i2c.o + .debug_line 0x00000000 0x82c ./Core/Src/i2c.o + .debug_str 0x00000000 0xcd24a ./Core/Src/i2c.o + .comment 0x00000000 0x44 ./Core/Src/i2c.o + .debug_frame 0x00000000 0x74 ./Core/Src/i2c.o + .ARM.attributes + 0x00000000 0x34 ./Core/Src/i2c.o .group 0x00000000 0xc ./Core/Src/main.o .group 0x00000000 0xc ./Core/Src/main.o .group 0x00000000 0xc ./Core/Src/main.o @@ -2397,6 +2415,8 @@ Discarded input sections .text 0x00000000 0x0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o .data 0x00000000 0x0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o .bss 0x00000000 0x0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .text.HAL_I2C_Init + 0x00000000 0x288 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o .text.HAL_I2C_DeInit 0x00000000 0x5e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o .text.HAL_I2C_MspInit @@ -2559,6 +2579,13 @@ Discarded input sections 0x00000000 0x5e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o .text.I2C_ConvertOtherXferOptions 0x00000000 0x36 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .debug_info 0x00000000 0x2421 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .debug_abbrev 0x00000000 0x2ad ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .debug_aranges + 0x00000000 0x2a8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .debug_rnglists + 0x00000000 0x23c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .debug_macro 0x00000000 0x259 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o .debug_macro 0x00000000 0xad8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o .debug_macro 0x00000000 0x2a7 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o .debug_macro 0x00000000 0x2e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o @@ -2603,6 +2630,12 @@ Discarded input sections .debug_macro 0x00000000 0x293 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o .debug_macro 0x00000000 0xba ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o .debug_macro 0x00000000 0x126 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .debug_line 0x00000000 0x3b5d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .debug_str 0x00000000 0xcd631 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .comment 0x00000000 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .debug_frame 0x00000000 0xc84 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .ARM.attributes + 0x00000000 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o .group 0x00000000 0xc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.o .group 0x00000000 0xc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.o .group 0x00000000 0xc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.o @@ -5253,239 +5286,239 @@ Discarded input sections .debug_macro 0x00000000 0x6b ./USB_DEVICE/Target/usbd_conf.o .debug_macro 0x00000000 0x20f ./USB_DEVICE/Target/usbd_conf.o .debug_macro 0x00000000 0x5f ./USB_DEVICE/Target/usbd_conf.o - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-exit.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-exit.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-exit.o) - .text.exit 0x00000000 0x24 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-exit.o) - .debug_frame 0x00000000 0x28 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-exit.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-exit.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-exit.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-exit.o) + .text.exit 0x00000000 0x24 /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-exit.o) + .debug_frame 0x00000000 0x28 /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-exit.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-exit.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) - .text.std 0x00000000 0x6c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) + 0x00000000 0x34 /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-exit.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-findfp.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-findfp.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-findfp.o) + .text.std 0x00000000 0x6c /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-findfp.o) .text.stdio_exit_handler - 0x00000000 0x18 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) + 0x00000000 0x18 /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-findfp.o) .text.cleanup_stdio - 0x00000000 0x40 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) + 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-findfp.o) .text.__fp_lock - 0x00000000 0x18 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) + 0x00000000 0x18 /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-findfp.o) .text.__fp_unlock - 0x00000000 0x18 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) + 0x00000000 0x18 /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-findfp.o) .text.global_stdio_init.part.0 - 0x00000000 0x3c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) + 0x00000000 0x3c /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-findfp.o) .text.__sfp_lock_acquire - 0x00000000 0xc C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) + 0x00000000 0xc /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-findfp.o) .text.__sfp_lock_release - 0x00000000 0xc C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) - .text.__sfp 0x00000000 0xa4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) - .text.__sinit 0x00000000 0x30 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) + 0x00000000 0xc /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-findfp.o) + .text.__sfp 0x00000000 0xa4 /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-findfp.o) + .text.__sinit 0x00000000 0x30 /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-findfp.o) .text.__fp_lock_all - 0x00000000 0x1c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) + 0x00000000 0x1c /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-findfp.o) .text.__fp_unlock_all - 0x00000000 0x1c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) - .data.__sglue 0x00000000 0xc C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) - .bss.__sf 0x00000000 0x138 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) + 0x00000000 0x1c /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-findfp.o) + .data.__sglue 0x00000000 0xc /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-findfp.o) + .bss.__sf 0x00000000 0x138 /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-findfp.o) .bss.__stdio_exit_handler - 0x00000000 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) - .debug_frame 0x00000000 0x144 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) + 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-findfp.o) + .debug_frame 0x00000000 0x144 /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-findfp.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-findfp.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fwalk.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fwalk.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fwalk.o) + 0x00000000 0x34 /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-findfp.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-fwalk.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-fwalk.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-fwalk.o) .text._fwalk_sglue - 0x00000000 0x3c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fwalk.o) - .debug_frame 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fwalk.o) + 0x00000000 0x3c /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-fwalk.o) + .debug_frame 0x00000000 0x34 /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-fwalk.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fwalk.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) - .text.__sread 0x00000000 0x22 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) + 0x00000000 0x34 /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-fwalk.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-stdio.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-stdio.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-stdio.o) + .text.__sread 0x00000000 0x22 /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-stdio.o) .text.__seofread - 0x00000000 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) + 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-stdio.o) .text.__swrite - 0x00000000 0x38 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) - .text.__sseek 0x00000000 0x24 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) + 0x00000000 0x38 /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-stdio.o) + .text.__sseek 0x00000000 0x24 /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-stdio.o) .text.__sclose - 0x00000000 0x8 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) - .debug_frame 0x00000000 0x88 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) + 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-stdio.o) + .debug_frame 0x00000000 0x88 /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-stdio.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-stdio.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-closer.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-closer.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-closer.o) + 0x00000000 0x34 /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-stdio.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-memset.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-memset.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-memset.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-closer.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-closer.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-closer.o) .text._close_r - 0x00000000 0x20 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-closer.o) - .debug_frame 0x00000000 0x2c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-closer.o) + 0x00000000 0x20 /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-closer.o) + .debug_frame 0x00000000 0x2c /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-closer.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-closer.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-reent.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-reent.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-reent.o) + 0x00000000 0x34 /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-closer.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-reent.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-reent.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-reent.o) .text._reclaim_reent - 0x00000000 0xbc C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-reent.o) - .bss.errno 0x00000000 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-reent.o) - .debug_frame 0x00000000 0x38 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-reent.o) + 0x00000000 0xbc /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-reent.o) + .bss.errno 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-reent.o) + .debug_frame 0x00000000 0x38 /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-reent.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-reent.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-impure.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-impure.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-impure.o) + 0x00000000 0x34 /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-reent.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-impure.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-impure.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-impure.o) .data._impure_ptr - 0x00000000 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-impure.o) + 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-impure.o) .data._impure_data - 0x00000000 0x4c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-impure.o) + 0x00000000 0x4c /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-impure.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-impure.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lseekr.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lseekr.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lseekr.o) + 0x00000000 0x34 /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-impure.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-lseekr.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-lseekr.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-lseekr.o) .text._lseek_r - 0x00000000 0x24 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lseekr.o) - .debug_frame 0x00000000 0x2c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lseekr.o) + 0x00000000 0x24 /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-lseekr.o) + .debug_frame 0x00000000 0x2c /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-lseekr.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lseekr.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-readr.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-readr.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-readr.o) - .text._read_r 0x00000000 0x24 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-readr.o) - .debug_frame 0x00000000 0x2c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-readr.o) + 0x00000000 0x34 /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-lseekr.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-readr.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-readr.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-readr.o) + .text._read_r 0x00000000 0x24 /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-readr.o) + .debug_frame 0x00000000 0x2c /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-readr.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-readr.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-writer.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-writer.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-writer.o) + 0x00000000 0x34 /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-readr.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-writer.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-writer.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-writer.o) .text._write_r - 0x00000000 0x24 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-writer.o) - .debug_frame 0x00000000 0x2c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-writer.o) + 0x00000000 0x24 /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-writer.o) + .debug_frame 0x00000000 0x2c /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-writer.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-writer.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-errno.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-errno.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-errno.o) - .text.__errno 0x00000000 0xc C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-errno.o) - .debug_frame 0x00000000 0x20 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-errno.o) + 0x00000000 0x34 /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-writer.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-errno.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-errno.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-errno.o) + .text.__errno 0x00000000 0xc /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-errno.o) + .debug_frame 0x00000000 0x20 /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-errno.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-errno.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x34 /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-errno.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-init.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-init.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-init.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-lock.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-lock.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-lock.o) .text.__retarget_lock_init - 0x00000000 0x2 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x2 /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-lock.o) .text.__retarget_lock_init_recursive - 0x00000000 0x2 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x2 /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-lock.o) .text.__retarget_lock_close - 0x00000000 0x2 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x2 /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-lock.o) .text.__retarget_lock_close_recursive - 0x00000000 0x2 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x2 /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-lock.o) .text.__retarget_lock_acquire - 0x00000000 0x2 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x2 /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-lock.o) .text.__retarget_lock_acquire_recursive - 0x00000000 0x2 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x2 /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-lock.o) .text.__retarget_lock_try_acquire - 0x00000000 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-lock.o) .text.__retarget_lock_try_acquire_recursive - 0x00000000 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-lock.o) .text.__retarget_lock_release - 0x00000000 0x2 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x2 /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-lock.o) .text.__retarget_lock_release_recursive - 0x00000000 0x2 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x2 /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-lock.o) .bss.__lock___arc4random_mutex - 0x00000000 0x1 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x1 /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-lock.o) .bss.__lock___dd_hash_mutex - 0x00000000 0x1 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x1 /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-lock.o) .bss.__lock___tz_mutex - 0x00000000 0x1 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x1 /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-lock.o) .bss.__lock___env_recursive_mutex - 0x00000000 0x1 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x1 /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-lock.o) .bss.__lock___malloc_recursive_mutex - 0x00000000 0x1 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x1 /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-lock.o) .bss.__lock___at_quick_exit_mutex - 0x00000000 0x1 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x1 /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-lock.o) .bss.__lock___atexit_recursive_mutex - 0x00000000 0x1 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x1 /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-lock.o) .bss.__lock___sfp_recursive_mutex - 0x00000000 0x1 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) - .debug_frame 0x00000000 0xb0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) + 0x00000000 0x1 /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-lock.o) + .debug_frame 0x00000000 0xb0 /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-lock.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-lock.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memcpy-stub.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memcpy-stub.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memcpy-stub.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-freer.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-freer.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-freer.o) - .text._free_r 0x00000000 0x94 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-freer.o) - .debug_frame 0x00000000 0x38 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-freer.o) + 0x00000000 0x34 /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-lock.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-memcpy-stub.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-memcpy-stub.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-memcpy-stub.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-freer.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-freer.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-freer.o) + .text._free_r 0x00000000 0x94 /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-freer.o) + .debug_frame 0x00000000 0x38 /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-freer.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-freer.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mallocr.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mallocr.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mallocr.o) + 0x00000000 0x34 /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-freer.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-mallocr.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-mallocr.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-mallocr.o) .text.sbrk_aligned - 0x00000000 0x44 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mallocr.o) + 0x00000000 0x44 /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-mallocr.o) .text._malloc_r - 0x00000000 0x100 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mallocr.o) + 0x00000000 0x100 /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-mallocr.o) .bss.__malloc_sbrk_start - 0x00000000 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mallocr.o) + 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-mallocr.o) .bss.__malloc_free_list - 0x00000000 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mallocr.o) - .debug_frame 0x00000000 0x50 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mallocr.o) + 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-mallocr.o) + .debug_frame 0x00000000 0x50 /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-mallocr.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mallocr.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mlock.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mlock.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mlock.o) + 0x00000000 0x34 /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-mallocr.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-mlock.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-mlock.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-mlock.o) .text.__malloc_lock - 0x00000000 0xc C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mlock.o) + 0x00000000 0xc /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-mlock.o) .text.__malloc_unlock - 0x00000000 0xc C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mlock.o) - .debug_frame 0x00000000 0x30 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mlock.o) + 0x00000000 0xc /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-mlock.o) + .debug_frame 0x00000000 0x30 /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-mlock.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-mlock.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fflush.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fflush.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fflush.o) + 0x00000000 0x34 /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-mlock.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-fflush.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-fflush.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-fflush.o) .text.__sflush_r - 0x00000000 0x108 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fflush.o) + 0x00000000 0x108 /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-fflush.o) .text._fflush_r - 0x00000000 0x50 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fflush.o) - .text.fflush 0x00000000 0x28 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fflush.o) - .debug_frame 0x00000000 0x5c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fflush.o) + 0x00000000 0x50 /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-fflush.o) + .text.fflush 0x00000000 0x28 /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-fflush.o) + .debug_frame 0x00000000 0x5c /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-fflush.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-fflush.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-sbrkr.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-sbrkr.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-sbrkr.o) - .text._sbrk_r 0x00000000 0x20 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-sbrkr.o) - .debug_frame 0x00000000 0x2c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-sbrkr.o) + 0x00000000 0x34 /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-fflush.o) + .text 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-sbrkr.o) + .data 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-sbrkr.o) + .bss 0x00000000 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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.a(libc_a-sbrkr.o) + .text._sbrk_r 0x00000000 0x20 /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-sbrkr.o) + .debug_frame 0x00000000 0x2c /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-sbrkr.o) .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-sbrkr.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) - .ARM.extab 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_dvmd_tls.o) - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_dvmd_tls.o) - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtend.o - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtend.o - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtend.o - .rodata 0x00000000 0x24 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtend.o - .eh_frame 0x00000000 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtend.o + 0x00000000 0x34 /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-sbrkr.o) + .data 0x00000000 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/libgcc.a(_aeabi_uldivmod.o) + .bss 0x00000000 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/libgcc.a(_aeabi_uldivmod.o) + .data 0x00000000 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/libgcc.a(_udivmoddi4.o) + .bss 0x00000000 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/libgcc.a(_udivmoddi4.o) + .ARM.extab 0x00000000 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/libgcc.a(_udivmoddi4.o) + .data 0x00000000 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/libgcc.a(_dvmd_tls.o) + .bss 0x00000000 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/libgcc.a(_dvmd_tls.o) + .text 0x00000000 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/crtend.o + .data 0x00000000 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/crtend.o + .bss 0x00000000 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/crtend.o + .rodata 0x00000000 0x24 /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/crtend.o + .eh_frame 0x00000000 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/crtend.o .ARM.attributes - 0x00000000 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtend.o - .text 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o - .data 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o - .bss 0x00000000 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o + 0x00000000 0x34 /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/crtend.o + .text 0x00000000 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/crtn.o + .data 0x00000000 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/crtn.o + .bss 0x00000000 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/crtn.o Memory Configuration @@ -5496,9 +5529,9 @@ FLASH 0x08000000 0x00080000 xr Linker script and memory map -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/crt0.o +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/crti.o +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/crtbegin.o +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/crt0.o LOAD ./Core/Src/dma.o LOAD ./Core/Src/gpio.o LOAD ./Core/Src/hid_queue.o @@ -5542,25 +5575,25 @@ LOAD ./USB_DEVICE/App/usb_device.o LOAD ./USB_DEVICE/App/usbd_desc.o LOAD ./USB_DEVICE/Target/usbd_conf.o START GROUP -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc_nano.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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libm.a END GROUP START GROUP -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.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 +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/libc_nano.a END GROUP START GROUP -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libnosys.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 +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/libc_nano.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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libnosys.a END GROUP START GROUP -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libnosys.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 +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/libc_nano.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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libnosys.a END GROUP -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtend.o -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o +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/crtend.o +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/crtn.o 0x20020000 _estack = (ORIGIN (RAM) + LENGTH (RAM)) 0x00000200 _Min_Heap_Size = 0x200 0x00000400 _Min_Stack_Size = 0x400 @@ -5572,17 +5605,17 @@ LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext 0x08000000 g_pfnVectors 0x080001c4 . = ALIGN (0x4) -.text 0x080001c4 0xb238 +.text 0x080001c4 0xaef4 0x080001c4 . = ALIGN (0x4) *(.text) - .text 0x080001c4 0x40 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o - .text 0x08000204 0x30 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) + .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 + .text 0x08000204 0x30 /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(_aeabi_uldivmod.o) 0x08000204 __aeabi_uldivmod - .text 0x08000234 0x2f8 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) + .text 0x08000234 0x2f8 /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) 0x08000234 __udivmoddi4 - .text 0x0800052c 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_dvmd_tls.o) - 0x0800052c __aeabi_idiv0 + .text 0x0800052c 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/libgcc.a(_dvmd_tls.o) 0x0800052c __aeabi_ldiv0 + 0x0800052c __aeabi_idiv0 *(.text*) .text.MX_DMA_Init 0x08000530 0xcc ./Core/Src/dma.o @@ -5590,914 +5623,905 @@ LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext .text.MX_GPIO_Init 0x080005fc 0x160 ./Core/Src/gpio.o 0x080005fc MX_GPIO_Init - .text.MX_I2C1_Init - 0x0800075c 0x5c ./Core/Src/i2c.o - 0x0800075c MX_I2C1_Init - .text.HAL_I2C_MspInit - 0x080007b8 0x90 ./Core/Src/i2c.o - 0x080007b8 HAL_I2C_MspInit - .text.pq_init 0x08000848 0x2c ./Core/Src/main.o - 0x08000848 pq_init - .text.pq_push 0x08000874 0x68 ./Core/Src/main.o - 0x08000874 pq_push - .text.pq_pop 0x080008dc 0x6c ./Core/Src/main.o - 0x080008dc pq_pop - .text.main 0x08000948 0x1fc ./Core/Src/main.o - 0x08000948 main + .text.pq_init 0x0800075c 0x2c ./Core/Src/main.o + 0x0800075c pq_init + .text.pq_push 0x08000788 0x68 ./Core/Src/main.o + 0x08000788 pq_push + .text.pq_pop 0x080007f0 0x6c ./Core/Src/main.o + 0x080007f0 pq_pop + .text.main 0x0800085c 0x1f8 ./Core/Src/main.o + 0x0800085c main .text.mergeChild - 0x08000b44 0x108 ./Core/Src/main.o - 0x08000b44 mergeChild + 0x08000a54 0x108 ./Core/Src/main.o + 0x08000a54 mergeChild .text.SystemClock_Config - 0x08000c4c 0xd8 ./Core/Src/main.o - 0x08000c4c SystemClock_Config + 0x08000b5c 0xd8 ./Core/Src/main.o + 0x08000b5c SystemClock_Config .text.HAL_UART_RxCpltCallback - 0x08000d24 0xb8 ./Core/Src/main.o - 0x08000d24 HAL_UART_RxCpltCallback + 0x08000c34 0xb8 ./Core/Src/main.o + 0x08000c34 HAL_UART_RxCpltCallback .text.HAL_UART_ErrorCallback - 0x08000ddc 0x98 ./Core/Src/main.o - 0x08000ddc HAL_UART_ErrorCallback + 0x08000cec 0x98 ./Core/Src/main.o + 0x08000cec HAL_UART_ErrorCallback .text.findBestParent - 0x08000e74 0x84 ./Core/Src/main.o - 0x08000e74 findBestParent + 0x08000d84 0x84 ./Core/Src/main.o + 0x08000d84 findBestParent .text.handleUARTMessages - 0x08000ef8 0x144 ./Core/Src/main.o - 0x08000ef8 handleUARTMessages + 0x08000e08 0x144 ./Core/Src/main.o + 0x08000e08 handleUARTMessages .text.addUSBReport - 0x0800103c 0x68 ./Core/Src/main.o - 0x0800103c addUSBReport + 0x08000f4c 0x94 ./Core/Src/main.o + 0x08000f4c addUSBReport .text.matrixScan - 0x080010a4 0xf0 ./Core/Src/main.o - 0x080010a4 matrixScan + 0x08000fe0 0xf0 ./Core/Src/main.o + 0x08000fe0 matrixScan .text.encoderProcess - 0x08001194 0xbc ./Core/Src/main.o - 0x08001194 encoderProcess + 0x080010d0 0xbc ./Core/Src/main.o + 0x080010d0 encoderProcess .text.resetReport - 0x08001250 0x18 ./Core/Src/main.o - 0x08001250 resetReport + 0x0800118c 0x20 ./Core/Src/main.o + 0x0800118c resetReport .text.Error_Handler - 0x08001268 0xc ./Core/Src/main.o - 0x08001268 Error_Handler + 0x080011ac 0xc ./Core/Src/main.o + 0x080011ac Error_Handler .text.MX_PWM_Init - 0x08001274 0x5c ./Core/Src/pwm.o - 0x08001274 MX_PWM_Init + 0x080011b8 0x5c ./Core/Src/pwm.o + 0x080011b8 MX_PWM_Init .text.PWM_Start - 0x080012d0 0x14 ./Core/Src/pwm.o - 0x080012d0 PWM_Start + 0x08001214 0x14 ./Core/Src/pwm.o + 0x08001214 PWM_Start .text.HAL_MspInit - 0x080012e4 0x50 ./Core/Src/stm32f4xx_hal_msp.o - 0x080012e4 HAL_MspInit + 0x08001228 0x50 ./Core/Src/stm32f4xx_hal_msp.o + 0x08001228 HAL_MspInit .text.NMI_Handler - 0x08001334 0x8 ./Core/Src/stm32f4xx_it.o - 0x08001334 NMI_Handler + 0x08001278 0x8 ./Core/Src/stm32f4xx_it.o + 0x08001278 NMI_Handler .text.HardFault_Handler - 0x0800133c 0x8 ./Core/Src/stm32f4xx_it.o - 0x0800133c HardFault_Handler + 0x08001280 0x8 ./Core/Src/stm32f4xx_it.o + 0x08001280 HardFault_Handler .text.MemManage_Handler - 0x08001344 0x8 ./Core/Src/stm32f4xx_it.o - 0x08001344 MemManage_Handler + 0x08001288 0x8 ./Core/Src/stm32f4xx_it.o + 0x08001288 MemManage_Handler .text.BusFault_Handler - 0x0800134c 0x8 ./Core/Src/stm32f4xx_it.o - 0x0800134c BusFault_Handler + 0x08001290 0x8 ./Core/Src/stm32f4xx_it.o + 0x08001290 BusFault_Handler .text.UsageFault_Handler - 0x08001354 0x8 ./Core/Src/stm32f4xx_it.o - 0x08001354 UsageFault_Handler + 0x08001298 0x8 ./Core/Src/stm32f4xx_it.o + 0x08001298 UsageFault_Handler .text.SVC_Handler - 0x0800135c 0xe ./Core/Src/stm32f4xx_it.o - 0x0800135c SVC_Handler + 0x080012a0 0xe ./Core/Src/stm32f4xx_it.o + 0x080012a0 SVC_Handler .text.DebugMon_Handler - 0x0800136a 0xe ./Core/Src/stm32f4xx_it.o - 0x0800136a DebugMon_Handler + 0x080012ae 0xe ./Core/Src/stm32f4xx_it.o + 0x080012ae DebugMon_Handler .text.PendSV_Handler - 0x08001378 0xe ./Core/Src/stm32f4xx_it.o - 0x08001378 PendSV_Handler + 0x080012bc 0xe ./Core/Src/stm32f4xx_it.o + 0x080012bc PendSV_Handler .text.SysTick_Handler - 0x08001386 0xc ./Core/Src/stm32f4xx_it.o - 0x08001386 SysTick_Handler - *fill* 0x08001392 0x2 + 0x080012ca 0xc ./Core/Src/stm32f4xx_it.o + 0x080012ca SysTick_Handler + *fill* 0x080012d6 0x2 .text.DMA1_Stream0_IRQHandler - 0x08001394 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001394 DMA1_Stream0_IRQHandler + 0x080012d8 0x14 ./Core/Src/stm32f4xx_it.o + 0x080012d8 DMA1_Stream0_IRQHandler .text.DMA1_Stream2_IRQHandler - 0x080013a8 0x14 ./Core/Src/stm32f4xx_it.o - 0x080013a8 DMA1_Stream2_IRQHandler + 0x080012ec 0x14 ./Core/Src/stm32f4xx_it.o + 0x080012ec DMA1_Stream2_IRQHandler .text.DMA1_Stream4_IRQHandler - 0x080013bc 0x14 ./Core/Src/stm32f4xx_it.o - 0x080013bc DMA1_Stream4_IRQHandler + 0x08001300 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001300 DMA1_Stream4_IRQHandler .text.DMA1_Stream5_IRQHandler - 0x080013d0 0x14 ./Core/Src/stm32f4xx_it.o - 0x080013d0 DMA1_Stream5_IRQHandler + 0x08001314 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001314 DMA1_Stream5_IRQHandler .text.DMA1_Stream6_IRQHandler - 0x080013e4 0x14 ./Core/Src/stm32f4xx_it.o - 0x080013e4 DMA1_Stream6_IRQHandler + 0x08001328 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001328 DMA1_Stream6_IRQHandler .text.USART1_IRQHandler - 0x080013f8 0x14 ./Core/Src/stm32f4xx_it.o - 0x080013f8 USART1_IRQHandler + 0x0800133c 0x14 ./Core/Src/stm32f4xx_it.o + 0x0800133c USART1_IRQHandler .text.USART2_IRQHandler - 0x0800140c 0x14 ./Core/Src/stm32f4xx_it.o - 0x0800140c USART2_IRQHandler + 0x08001350 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001350 USART2_IRQHandler .text.DMA1_Stream7_IRQHandler - 0x08001420 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001420 DMA1_Stream7_IRQHandler + 0x08001364 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001364 DMA1_Stream7_IRQHandler .text.UART4_IRQHandler - 0x08001434 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001434 UART4_IRQHandler + 0x08001378 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001378 UART4_IRQHandler .text.UART5_IRQHandler - 0x08001448 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001448 UART5_IRQHandler + 0x0800138c 0x14 ./Core/Src/stm32f4xx_it.o + 0x0800138c UART5_IRQHandler .text.DMA2_Stream2_IRQHandler - 0x0800145c 0x14 ./Core/Src/stm32f4xx_it.o - 0x0800145c DMA2_Stream2_IRQHandler + 0x080013a0 0x14 ./Core/Src/stm32f4xx_it.o + 0x080013a0 DMA2_Stream2_IRQHandler .text.OTG_FS_IRQHandler - 0x08001470 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001470 OTG_FS_IRQHandler + 0x080013b4 0x14 ./Core/Src/stm32f4xx_it.o + 0x080013b4 OTG_FS_IRQHandler .text.DMA2_Stream7_IRQHandler - 0x08001484 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001484 DMA2_Stream7_IRQHandler + 0x080013c8 0x14 ./Core/Src/stm32f4xx_it.o + 0x080013c8 DMA2_Stream7_IRQHandler .text.SystemInit - 0x08001498 0x24 ./Core/Src/system_stm32f4xx.o - 0x08001498 SystemInit + 0x080013dc 0x24 ./Core/Src/system_stm32f4xx.o + 0x080013dc SystemInit .text.MX_TIM2_Init - 0x080014bc 0xb0 ./Core/Src/tim.o - 0x080014bc MX_TIM2_Init + 0x08001400 0xb0 ./Core/Src/tim.o + 0x08001400 MX_TIM2_Init .text.MX_TIM3_Init - 0x0800156c 0xa8 ./Core/Src/tim.o - 0x0800156c MX_TIM3_Init + 0x080014b0 0xa8 ./Core/Src/tim.o + 0x080014b0 MX_TIM3_Init .text.HAL_TIM_OC_MspInit - 0x08001614 0x40 ./Core/Src/tim.o - 0x08001614 HAL_TIM_OC_MspInit + 0x08001558 0x40 ./Core/Src/tim.o + 0x08001558 HAL_TIM_OC_MspInit .text.HAL_TIM_Encoder_MspInit - 0x08001654 0x90 ./Core/Src/tim.o - 0x08001654 HAL_TIM_Encoder_MspInit + 0x08001598 0x90 ./Core/Src/tim.o + 0x08001598 HAL_TIM_Encoder_MspInit .text.HAL_TIM_MspPostInit - 0x080016e4 0x70 ./Core/Src/tim.o - 0x080016e4 HAL_TIM_MspPostInit + 0x08001628 0x70 ./Core/Src/tim.o + 0x08001628 HAL_TIM_MspPostInit .text.MX_UART4_Init - 0x08001754 0x54 ./Core/Src/usart.o - 0x08001754 MX_UART4_Init + 0x08001698 0x54 ./Core/Src/usart.o + 0x08001698 MX_UART4_Init .text.MX_UART5_Init - 0x080017a8 0x54 ./Core/Src/usart.o - 0x080017a8 MX_UART5_Init + 0x080016ec 0x54 ./Core/Src/usart.o + 0x080016ec MX_UART5_Init .text.MX_USART1_UART_Init - 0x080017fc 0x54 ./Core/Src/usart.o - 0x080017fc MX_USART1_UART_Init + 0x08001740 0x54 ./Core/Src/usart.o + 0x08001740 MX_USART1_UART_Init .text.MX_USART2_UART_Init - 0x08001850 0x54 ./Core/Src/usart.o - 0x08001850 MX_USART2_UART_Init + 0x08001794 0x54 ./Core/Src/usart.o + 0x08001794 MX_USART2_UART_Init .text.HAL_UART_MspInit - 0x080018a4 0x584 ./Core/Src/usart.o - 0x080018a4 HAL_UART_MspInit + 0x080017e8 0x584 ./Core/Src/usart.o + 0x080017e8 HAL_UART_MspInit .text.Reset_Handler - 0x08001e28 0x50 ./Core/Startup/startup_stm32f446retx.o - 0x08001e28 Reset_Handler + 0x08001d6c 0x50 ./Core/Startup/startup_stm32f446retx.o + 0x08001d6c Reset_Handler .text.Default_Handler - 0x08001e78 0x2 ./Core/Startup/startup_stm32f446retx.o - 0x08001e78 RTC_Alarm_IRQHandler - 0x08001e78 EXTI2_IRQHandler - 0x08001e78 TIM8_CC_IRQHandler - 0x08001e78 FMPI2C1_EV_IRQHandler - 0x08001e78 SPI4_IRQHandler - 0x08001e78 TIM1_CC_IRQHandler - 0x08001e78 DMA2_Stream5_IRQHandler - 0x08001e78 PVD_IRQHandler - 0x08001e78 SDIO_IRQHandler - 0x08001e78 TAMP_STAMP_IRQHandler - 0x08001e78 CAN2_RX1_IRQHandler - 0x08001e78 EXTI3_IRQHandler - 0x08001e78 TIM8_TRG_COM_TIM14_IRQHandler - 0x08001e78 TIM1_UP_TIM10_IRQHandler - 0x08001e78 TIM8_UP_TIM13_IRQHandler - 0x08001e78 I2C3_ER_IRQHandler - 0x08001e78 EXTI0_IRQHandler - 0x08001e78 I2C2_EV_IRQHandler - 0x08001e78 CAN1_RX0_IRQHandler - 0x08001e78 FPU_IRQHandler - 0x08001e78 OTG_HS_WKUP_IRQHandler - 0x08001e78 CAN2_SCE_IRQHandler - 0x08001e78 SPI1_IRQHandler - 0x08001e78 TIM6_DAC_IRQHandler - 0x08001e78 TIM1_BRK_TIM9_IRQHandler - 0x08001e78 DCMI_IRQHandler - 0x08001e78 CAN2_RX0_IRQHandler - 0x08001e78 DMA2_Stream3_IRQHandler - 0x08001e78 SAI2_IRQHandler - 0x08001e78 USART6_IRQHandler - 0x08001e78 USART3_IRQHandler - 0x08001e78 CAN1_RX1_IRQHandler - 0x08001e78 DMA2_Stream0_IRQHandler - 0x08001e78 TIM4_IRQHandler - 0x08001e78 QUADSPI_IRQHandler - 0x08001e78 I2C1_EV_IRQHandler - 0x08001e78 DMA1_Stream1_IRQHandler - 0x08001e78 TIM3_IRQHandler - 0x08001e78 RCC_IRQHandler - 0x08001e78 TIM8_BRK_TIM12_IRQHandler - 0x08001e78 Default_Handler - 0x08001e78 CEC_IRQHandler - 0x08001e78 EXTI15_10_IRQHandler - 0x08001e78 ADC_IRQHandler - 0x08001e78 TIM7_IRQHandler - 0x08001e78 CAN2_TX_IRQHandler - 0x08001e78 TIM5_IRQHandler - 0x08001e78 I2C3_EV_IRQHandler - 0x08001e78 EXTI9_5_IRQHandler - 0x08001e78 RTC_WKUP_IRQHandler - 0x08001e78 SPDIF_RX_IRQHandler - 0x08001e78 SPI2_IRQHandler - 0x08001e78 OTG_HS_EP1_IN_IRQHandler - 0x08001e78 CAN1_TX_IRQHandler - 0x08001e78 FMPI2C1_ER_IRQHandler - 0x08001e78 EXTI4_IRQHandler - 0x08001e78 OTG_HS_EP1_OUT_IRQHandler - 0x08001e78 WWDG_IRQHandler - 0x08001e78 TIM2_IRQHandler - 0x08001e78 OTG_FS_WKUP_IRQHandler - 0x08001e78 TIM1_TRG_COM_TIM11_IRQHandler - 0x08001e78 OTG_HS_IRQHandler - 0x08001e78 EXTI1_IRQHandler - 0x08001e78 I2C2_ER_IRQHandler - 0x08001e78 DMA2_Stream1_IRQHandler - 0x08001e78 CAN1_SCE_IRQHandler - 0x08001e78 FLASH_IRQHandler - 0x08001e78 DMA2_Stream4_IRQHandler - 0x08001e78 SPI3_IRQHandler - 0x08001e78 I2C1_ER_IRQHandler - 0x08001e78 FMC_IRQHandler - 0x08001e78 DMA2_Stream6_IRQHandler - 0x08001e78 SAI1_IRQHandler - 0x08001e78 DMA1_Stream3_IRQHandler - *fill* 0x08001e7a 0x2 + 0x08001dbc 0x2 ./Core/Startup/startup_stm32f446retx.o + 0x08001dbc RTC_Alarm_IRQHandler + 0x08001dbc EXTI2_IRQHandler + 0x08001dbc TIM8_CC_IRQHandler + 0x08001dbc FMPI2C1_EV_IRQHandler + 0x08001dbc SPI4_IRQHandler + 0x08001dbc TIM1_CC_IRQHandler + 0x08001dbc DMA2_Stream5_IRQHandler + 0x08001dbc PVD_IRQHandler + 0x08001dbc SDIO_IRQHandler + 0x08001dbc TAMP_STAMP_IRQHandler + 0x08001dbc CAN2_RX1_IRQHandler + 0x08001dbc EXTI3_IRQHandler + 0x08001dbc TIM8_TRG_COM_TIM14_IRQHandler + 0x08001dbc TIM1_UP_TIM10_IRQHandler + 0x08001dbc TIM8_UP_TIM13_IRQHandler + 0x08001dbc I2C3_ER_IRQHandler + 0x08001dbc EXTI0_IRQHandler + 0x08001dbc I2C2_EV_IRQHandler + 0x08001dbc CAN1_RX0_IRQHandler + 0x08001dbc FPU_IRQHandler + 0x08001dbc OTG_HS_WKUP_IRQHandler + 0x08001dbc CAN2_SCE_IRQHandler + 0x08001dbc SPI1_IRQHandler + 0x08001dbc TIM6_DAC_IRQHandler + 0x08001dbc TIM1_BRK_TIM9_IRQHandler + 0x08001dbc DCMI_IRQHandler + 0x08001dbc CAN2_RX0_IRQHandler + 0x08001dbc DMA2_Stream3_IRQHandler + 0x08001dbc SAI2_IRQHandler + 0x08001dbc USART6_IRQHandler + 0x08001dbc USART3_IRQHandler + 0x08001dbc CAN1_RX1_IRQHandler + 0x08001dbc DMA2_Stream0_IRQHandler + 0x08001dbc TIM4_IRQHandler + 0x08001dbc QUADSPI_IRQHandler + 0x08001dbc I2C1_EV_IRQHandler + 0x08001dbc DMA1_Stream1_IRQHandler + 0x08001dbc TIM3_IRQHandler + 0x08001dbc RCC_IRQHandler + 0x08001dbc TIM8_BRK_TIM12_IRQHandler + 0x08001dbc Default_Handler + 0x08001dbc CEC_IRQHandler + 0x08001dbc EXTI15_10_IRQHandler + 0x08001dbc ADC_IRQHandler + 0x08001dbc TIM7_IRQHandler + 0x08001dbc CAN2_TX_IRQHandler + 0x08001dbc TIM5_IRQHandler + 0x08001dbc I2C3_EV_IRQHandler + 0x08001dbc EXTI9_5_IRQHandler + 0x08001dbc RTC_WKUP_IRQHandler + 0x08001dbc SPDIF_RX_IRQHandler + 0x08001dbc SPI2_IRQHandler + 0x08001dbc OTG_HS_EP1_IN_IRQHandler + 0x08001dbc CAN1_TX_IRQHandler + 0x08001dbc FMPI2C1_ER_IRQHandler + 0x08001dbc EXTI4_IRQHandler + 0x08001dbc OTG_HS_EP1_OUT_IRQHandler + 0x08001dbc WWDG_IRQHandler + 0x08001dbc TIM2_IRQHandler + 0x08001dbc OTG_FS_WKUP_IRQHandler + 0x08001dbc TIM1_TRG_COM_TIM11_IRQHandler + 0x08001dbc OTG_HS_IRQHandler + 0x08001dbc EXTI1_IRQHandler + 0x08001dbc I2C2_ER_IRQHandler + 0x08001dbc DMA2_Stream1_IRQHandler + 0x08001dbc CAN1_SCE_IRQHandler + 0x08001dbc FLASH_IRQHandler + 0x08001dbc DMA2_Stream4_IRQHandler + 0x08001dbc SPI3_IRQHandler + 0x08001dbc I2C1_ER_IRQHandler + 0x08001dbc FMC_IRQHandler + 0x08001dbc DMA2_Stream6_IRQHandler + 0x08001dbc SAI1_IRQHandler + 0x08001dbc DMA1_Stream3_IRQHandler + *fill* 0x08001dbe 0x2 .text.HAL_Init - 0x08001e7c 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001e7c HAL_Init + 0x08001dc0 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001dc0 HAL_Init .text.HAL_InitTick - 0x08001ec0 0x60 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001ec0 HAL_InitTick + 0x08001e04 0x60 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001e04 HAL_InitTick .text.HAL_IncTick - 0x08001f20 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001f20 HAL_IncTick + 0x08001e64 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001e64 HAL_IncTick .text.HAL_GetTick - 0x08001f48 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001f48 HAL_GetTick + 0x08001e8c 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001e8c HAL_GetTick .text.HAL_Delay - 0x08001f60 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001f60 HAL_Delay + 0x08001ea4 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001ea4 HAL_Delay .text.__NVIC_SetPriorityGrouping - 0x08001fa8 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001eec 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.__NVIC_GetPriorityGrouping - 0x08001ff0 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001f34 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.__NVIC_EnableIRQ - 0x0800200c 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001f50 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.__NVIC_SetPriority - 0x08002048 0x54 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001f8c 0x54 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.NVIC_EncodePriority - 0x0800209c 0x66 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - *fill* 0x08002102 0x2 + 0x08001fe0 0x66 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + *fill* 0x08002046 0x2 .text.SysTick_Config - 0x08002104 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08002048 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.HAL_NVIC_SetPriorityGrouping - 0x08002148 0x16 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x08002148 HAL_NVIC_SetPriorityGrouping + 0x0800208c 0x16 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x0800208c HAL_NVIC_SetPriorityGrouping .text.HAL_NVIC_SetPriority - 0x0800215e 0x38 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x0800215e HAL_NVIC_SetPriority + 0x080020a2 0x38 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x080020a2 HAL_NVIC_SetPriority .text.HAL_NVIC_EnableIRQ - 0x08002196 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x08002196 HAL_NVIC_EnableIRQ + 0x080020da 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x080020da HAL_NVIC_EnableIRQ .text.HAL_SYSTICK_Config - 0x080021b2 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x080021b2 HAL_SYSTICK_Config - *fill* 0x080021ca 0x2 + 0x080020f6 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x080020f6 HAL_SYSTICK_Config + *fill* 0x0800210e 0x2 .text.HAL_DMA_Init - 0x080021cc 0x15c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x080021cc HAL_DMA_Init + 0x08002110 0x15c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x08002110 HAL_DMA_Init .text.HAL_DMA_Start_IT - 0x08002328 0xb0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x08002328 HAL_DMA_Start_IT + 0x0800226c 0xb0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x0800226c HAL_DMA_Start_IT .text.HAL_DMA_Abort - 0x080023d8 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x080023d8 HAL_DMA_Abort + 0x0800231c 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x0800231c HAL_DMA_Abort .text.HAL_DMA_Abort_IT - 0x080024b8 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x080024b8 HAL_DMA_Abort_IT + 0x080023fc 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x080023fc HAL_DMA_Abort_IT .text.HAL_DMA_IRQHandler - 0x080024fc 0x314 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x080024fc HAL_DMA_IRQHandler + 0x08002440 0x314 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x08002440 HAL_DMA_IRQHandler .text.DMA_SetConfig - 0x08002810 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x08002754 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o .text.DMA_CalcBaseAndBitshift - 0x0800286c 0x6c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x080027b0 0x6c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o .text.DMA_CheckFifoParam - 0x080028d8 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x0800281c 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o .text.HAL_GPIO_Init - 0x080029d0 0x328 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - 0x080029d0 HAL_GPIO_Init + 0x08002914 0x328 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x08002914 HAL_GPIO_Init .text.HAL_GPIO_ReadPin - 0x08002cf8 0x30 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - 0x08002cf8 HAL_GPIO_ReadPin + 0x08002c3c 0x30 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x08002c3c HAL_GPIO_ReadPin .text.HAL_GPIO_WritePin - 0x08002d28 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - 0x08002d28 HAL_GPIO_WritePin - *fill* 0x08002d5a 0x2 - .text.HAL_I2C_Init - 0x08002d5c 0x288 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o - 0x08002d5c HAL_I2C_Init + 0x08002c6c 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x08002c6c HAL_GPIO_WritePin .text.HAL_PCD_Init - 0x08002fe4 0x22c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08002fe4 HAL_PCD_Init + 0x08002c9e 0x22c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08002c9e HAL_PCD_Init .text.HAL_PCD_Start - 0x08003210 0x6a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003210 HAL_PCD_Start + 0x08002eca 0x6a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08002eca HAL_PCD_Start .text.HAL_PCD_IRQHandler - 0x0800327a 0x99c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x0800327a HAL_PCD_IRQHandler + 0x08002f34 0x99c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08002f34 HAL_PCD_IRQHandler .text.HAL_PCD_SetAddress - 0x08003c16 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003c16 HAL_PCD_SetAddress + 0x080038d0 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x080038d0 HAL_PCD_SetAddress .text.HAL_PCD_EP_Open - 0x08003c5e 0xd4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003c5e HAL_PCD_EP_Open + 0x08003918 0xd4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003918 HAL_PCD_EP_Open .text.HAL_PCD_EP_Close - 0x08003d32 0x94 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003d32 HAL_PCD_EP_Close + 0x080039ec 0x94 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x080039ec HAL_PCD_EP_Close .text.HAL_PCD_EP_Receive - 0x08003dc6 0x76 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003dc6 HAL_PCD_EP_Receive + 0x08003a80 0x76 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003a80 HAL_PCD_EP_Receive .text.HAL_PCD_EP_Transmit - 0x08003e3c 0x74 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003e3c HAL_PCD_EP_Transmit + 0x08003af6 0x74 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003af6 HAL_PCD_EP_Transmit .text.HAL_PCD_EP_SetStall - 0x08003eb0 0xc6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003eb0 HAL_PCD_EP_SetStall + 0x08003b6a 0xc6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003b6a HAL_PCD_EP_SetStall .text.HAL_PCD_EP_ClrStall - 0x08003f76 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003f76 HAL_PCD_EP_ClrStall + 0x08003c30 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003c30 HAL_PCD_EP_ClrStall .text.HAL_PCD_EP_Abort - 0x08004022 0x62 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08004022 HAL_PCD_EP_Abort + 0x08003cdc 0x62 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003cdc HAL_PCD_EP_Abort .text.PCD_WriteEmptyTxFifo - 0x08004084 0x118 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003d3e 0x118 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + *fill* 0x08003e56 0x2 .text.PCD_EP_OutXfrComplete_int - 0x0800419c 0x1d0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003e58 0x1d0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o .text.PCD_EP_OutSetupPacket_int - 0x0800436c 0x8c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08004028 0x8c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o .text.HAL_PCDEx_SetTxFiFo - 0x080043f8 0x8e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - 0x080043f8 HAL_PCDEx_SetTxFiFo + 0x080040b4 0x8e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + 0x080040b4 HAL_PCDEx_SetTxFiFo .text.HAL_PCDEx_SetRxFiFo - 0x08004486 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - 0x08004486 HAL_PCDEx_SetRxFiFo + 0x08004142 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + 0x08004142 HAL_PCDEx_SetRxFiFo .text.HAL_PCDEx_ActivateLPM - 0x080044a8 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - 0x080044a8 HAL_PCDEx_ActivateLPM + 0x08004164 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + 0x08004164 HAL_PCDEx_ActivateLPM .text.HAL_RCC_ClockConfig - 0x080044f0 0x1cc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x080044f0 HAL_RCC_ClockConfig + 0x080041ac 0x1cc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x080041ac HAL_RCC_ClockConfig .text.HAL_RCC_GetHCLKFreq - 0x080046bc 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x080046bc HAL_RCC_GetHCLKFreq + 0x08004378 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x08004378 HAL_RCC_GetHCLKFreq .text.HAL_RCC_GetPCLK1Freq - 0x080046d4 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x080046d4 HAL_RCC_GetPCLK1Freq + 0x08004390 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x08004390 HAL_RCC_GetPCLK1Freq .text.HAL_RCC_GetPCLK2Freq - 0x080046fc 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x080046fc HAL_RCC_GetPCLK2Freq + 0x080043b8 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x080043b8 HAL_RCC_GetPCLK2Freq .text.HAL_RCCEx_PeriphCLKConfig - 0x08004724 0x654 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - 0x08004724 HAL_RCCEx_PeriphCLKConfig + 0x080043e0 0x654 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x080043e0 HAL_RCCEx_PeriphCLKConfig .text.HAL_RCC_GetSysClockFreq - 0x08004d78 0x460 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - 0x08004d78 HAL_RCC_GetSysClockFreq + 0x08004a34 0x460 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x08004a34 HAL_RCC_GetSysClockFreq .text.HAL_RCC_OscConfig - 0x080051d8 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - 0x080051d8 HAL_RCC_OscConfig + 0x08004e94 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x08004e94 HAL_RCC_OscConfig .text.HAL_TIM_OC_Init - 0x08005714 0x9e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005714 HAL_TIM_OC_Init + 0x080053d0 0x9e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080053d0 HAL_TIM_OC_Init .text.HAL_TIM_PWM_Init - 0x080057b2 0x9e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x080057b2 HAL_TIM_PWM_Init + 0x0800546e 0x9e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x0800546e HAL_TIM_PWM_Init .text.HAL_TIM_PWM_MspInit - 0x08005850 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005850 HAL_TIM_PWM_MspInit + 0x0800550c 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x0800550c HAL_TIM_PWM_MspInit .text.HAL_TIM_PWM_Start - 0x08005864 0x190 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005864 HAL_TIM_PWM_Start + 0x08005520 0x190 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005520 HAL_TIM_PWM_Start .text.HAL_TIM_Encoder_Init - 0x080059f4 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x080059f4 HAL_TIM_Encoder_Init + 0x080056b0 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080056b0 HAL_TIM_Encoder_Init .text.HAL_TIM_Encoder_Start - 0x08005b40 0x11c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005b40 HAL_TIM_Encoder_Start + 0x080057fc 0x11c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080057fc HAL_TIM_Encoder_Start .text.HAL_TIM_OC_ConfigChannel - 0x08005c5c 0xb8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005c5c HAL_TIM_OC_ConfigChannel + 0x08005918 0xb8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005918 HAL_TIM_OC_ConfigChannel .text.HAL_TIM_PWM_ConfigChannel - 0x08005d14 0x184 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005d14 HAL_TIM_PWM_ConfigChannel + 0x080059d0 0x184 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080059d0 HAL_TIM_PWM_ConfigChannel .text.TIM_Base_SetConfig - 0x08005e98 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005e98 TIM_Base_SetConfig + 0x08005b54 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005b54 TIM_Base_SetConfig .text.TIM_OC1_SetConfig - 0x08005fe4 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005ca0 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_OC2_SetConfig - 0x080060c4 0xec ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x080060c4 TIM_OC2_SetConfig + 0x08005d80 0xec ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005d80 TIM_OC2_SetConfig .text.TIM_OC3_SetConfig - 0x080061b0 0xe8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005e6c 0xe8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_OC4_SetConfig - 0x08006298 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005f54 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_CCxChannelCmd - 0x08006344 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08006344 TIM_CCxChannelCmd - *fill* 0x0800638e 0x2 + 0x08006000 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08006000 TIM_CCxChannelCmd + *fill* 0x0800604a 0x2 .text.HAL_TIMEx_MasterConfigSynchronization - 0x08006390 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - 0x08006390 HAL_TIMEx_MasterConfigSynchronization + 0x0800604c 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + 0x0800604c HAL_TIMEx_MasterConfigSynchronization .text.HAL_UART_Init - 0x08006488 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006488 HAL_UART_Init + 0x08006144 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006144 HAL_UART_Init .text.HAL_UART_Transmit_DMA - 0x08006528 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006528 HAL_UART_Transmit_DMA + 0x080061e4 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080061e4 HAL_UART_Transmit_DMA .text.HAL_UART_Receive_DMA - 0x08006620 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006620 HAL_UART_Receive_DMA - *fill* 0x0800666a 0x2 + 0x080062dc 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080062dc HAL_UART_Receive_DMA + *fill* 0x08006326 0x2 .text.HAL_UART_IRQHandler - 0x0800666c 0x554 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x0800666c HAL_UART_IRQHandler + 0x08006328 0x554 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006328 HAL_UART_IRQHandler .text.HAL_UART_TxCpltCallback - 0x08006bc0 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006bc0 HAL_UART_TxCpltCallback + 0x0800687c 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x0800687c HAL_UART_TxCpltCallback .text.HAL_UART_TxHalfCpltCallback - 0x08006bd4 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006bd4 HAL_UART_TxHalfCpltCallback + 0x08006890 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006890 HAL_UART_TxHalfCpltCallback .text.HAL_UART_RxHalfCpltCallback - 0x08006be8 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006be8 HAL_UART_RxHalfCpltCallback + 0x080068a4 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080068a4 HAL_UART_RxHalfCpltCallback .text.HAL_UARTEx_RxEventCallback - 0x08006bfc 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006bfc HAL_UARTEx_RxEventCallback + 0x080068b8 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080068b8 HAL_UARTEx_RxEventCallback .text.UART_DMATransmitCplt - 0x08006c14 0x9a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080068d0 0x9a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMATxHalfCplt - 0x08006cae 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x0800696a 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMAReceiveCplt - 0x08006cca 0x12c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006986 0x12c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMARxHalfCplt - 0x08006df6 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006ab2 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMAError - 0x08006e32 0x94 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - *fill* 0x08006ec6 0x2 + 0x08006aee 0x94 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + *fill* 0x08006b82 0x2 .text.UART_Start_Receive_DMA - 0x08006ec8 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006ec8 UART_Start_Receive_DMA + 0x08006b84 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006b84 UART_Start_Receive_DMA .text.UART_EndTxTransfer - 0x08007014 0x50 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006cd0 0x50 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_EndRxTransfer - 0x08007064 0xc6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006d20 0xc6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMAAbortOnError - 0x0800712a 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006de6 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_Transmit_IT - 0x0800714c 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006e08 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_EndTransmit_IT - 0x080071ec 0x30 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006ea8 0x30 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_Receive_IT - 0x0800721c 0x17c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006ed8 0x17c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_SetConfig - 0x08007398 0x4e8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08007054 0x4e8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.USB_CoreInit - 0x08007880 0xc8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007880 USB_CoreInit + 0x0800753c 0xc8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x0800753c USB_CoreInit .text.USB_SetTurnaroundTime - 0x08007948 0x144 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007948 USB_SetTurnaroundTime + 0x08007604 0x144 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007604 USB_SetTurnaroundTime .text.USB_EnableGlobalInt - 0x08007a8c 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007a8c USB_EnableGlobalInt + 0x08007748 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007748 USB_EnableGlobalInt .text.USB_DisableGlobalInt - 0x08007aae 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007aae USB_DisableGlobalInt + 0x0800776a 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x0800776a USB_DisableGlobalInt .text.USB_SetCurrentMode - 0x08007ad0 0x98 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007ad0 USB_SetCurrentMode + 0x0800778c 0x98 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x0800778c USB_SetCurrentMode .text.USB_DevInit - 0x08007b68 0x2bc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007b68 USB_DevInit + 0x08007824 0x2bc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007824 USB_DevInit .text.USB_FlushTxFifo - 0x08007e24 0x64 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007e24 USB_FlushTxFifo + 0x08007ae0 0x64 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007ae0 USB_FlushTxFifo .text.USB_FlushRxFifo - 0x08007e88 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007e88 USB_FlushRxFifo + 0x08007b44 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007b44 USB_FlushRxFifo .text.USB_SetDevSpeed - 0x08007ee4 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007ee4 USB_SetDevSpeed + 0x08007ba0 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007ba0 USB_SetDevSpeed .text.USB_GetDevSpeed - 0x08007f16 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007f16 USB_GetDevSpeed + 0x08007bd2 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007bd2 USB_GetDevSpeed .text.USB_ActivateEndpoint - 0x08007f60 0x10e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007f60 USB_ActivateEndpoint - *fill* 0x0800806e 0x2 + 0x08007c1c 0x10e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007c1c USB_ActivateEndpoint + *fill* 0x08007d2a 0x2 .text.USB_DeactivateEndpoint - 0x08008070 0x1b8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008070 USB_DeactivateEndpoint + 0x08007d2c 0x1b8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007d2c USB_DeactivateEndpoint .text.USB_EPStartXfer - 0x08008228 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008228 USB_EPStartXfer + 0x08007ee4 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007ee4 USB_EPStartXfer .text.USB_EPStopXfer - 0x08008764 0x154 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008764 USB_EPStopXfer + 0x08008420 0x154 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008420 USB_EPStopXfer .text.USB_WritePacket - 0x080088b8 0x7c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x080088b8 USB_WritePacket + 0x08008574 0x7c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008574 USB_WritePacket .text.USB_ReadPacket - 0x08008934 0xb0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008934 USB_ReadPacket + 0x080085f0 0xb0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080085f0 USB_ReadPacket .text.USB_EPSetStall - 0x080089e4 0xdc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x080089e4 USB_EPSetStall + 0x080086a0 0xdc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080086a0 USB_EPSetStall .text.USB_EPClearStall - 0x08008ac0 0xcc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008ac0 USB_EPClearStall + 0x0800877c 0xcc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x0800877c USB_EPClearStall .text.USB_SetDevAddress - 0x08008b8c 0x4c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008b8c USB_SetDevAddress + 0x08008848 0x4c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008848 USB_SetDevAddress .text.USB_DevConnect - 0x08008bd8 0x42 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008bd8 USB_DevConnect + 0x08008894 0x42 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008894 USB_DevConnect .text.USB_DevDisconnect - 0x08008c1a 0x42 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008c1a USB_DevDisconnect + 0x080088d6 0x42 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080088d6 USB_DevDisconnect .text.USB_ReadInterrupts - 0x08008c5c 0x26 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008c5c USB_ReadInterrupts + 0x08008918 0x26 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008918 USB_ReadInterrupts .text.USB_ReadDevAllOutEpInterrupt - 0x08008c82 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008c82 USB_ReadDevAllOutEpInterrupt + 0x0800893e 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x0800893e USB_ReadDevAllOutEpInterrupt .text.USB_ReadDevAllInEpInterrupt - 0x08008cb6 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008cb6 USB_ReadDevAllInEpInterrupt + 0x08008972 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008972 USB_ReadDevAllInEpInterrupt .text.USB_ReadDevOutEPInterrupt - 0x08008cea 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008cea USB_ReadDevOutEPInterrupt + 0x080089a6 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080089a6 USB_ReadDevOutEPInterrupt .text.USB_ReadDevInEPInterrupt - 0x08008d26 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008d26 USB_ReadDevInEPInterrupt + 0x080089e2 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080089e2 USB_ReadDevInEPInterrupt .text.USB_GetMode - 0x08008d82 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008d82 USB_GetMode + 0x08008a3e 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008a3e USB_GetMode .text.USB_ActivateSetup - 0x08008d9e 0x46 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008d9e USB_ActivateSetup + 0x08008a5a 0x46 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008a5a USB_ActivateSetup .text.USB_EP0_OutStart - 0x08008de4 0xbc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008de4 USB_EP0_OutStart + 0x08008aa0 0xbc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008aa0 USB_EP0_OutStart .text.USB_CoreReset - 0x08008ea0 0x70 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008b5c 0x70 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o .text.USBD_HID_Init - 0x08008f10 0xcc ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08008bcc 0xcc ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_DeInit - 0x08008fdc 0x90 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08008c98 0x90 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_Setup - 0x0800906c 0x210 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08008d28 0x210 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_SendReport - 0x0800927c 0x60 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - 0x0800927c USBD_HID_SendReport + 0x08008f38 0x60 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08008f38 USBD_HID_SendReport .text.USBD_HID_GetFSCfgDesc - 0x080092dc 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08008f98 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_GetHSCfgDesc - 0x08009310 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08008fcc 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_GetOtherSpeedCfgDesc - 0x08009344 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08009000 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_DataIn - 0x08009378 0x2c ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08009034 0x2c ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_GetDeviceQualifierDesc - 0x080093a4 0x20 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08009060 0x20 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_Init - 0x080093c4 0x60 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x080093c4 USBD_Init + 0x08009080 0x60 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009080 USBD_Init .text.USBD_RegisterClass - 0x08009424 0x6c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009424 USBD_RegisterClass + 0x080090e0 0x6c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080090e0 USBD_RegisterClass .text.USBD_Start - 0x08009490 0x18 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009490 USBD_Start + 0x0800914c 0x18 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x0800914c USBD_Start .text.USBD_RunTestMode - 0x080094a8 0x16 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x080094a8 USBD_RunTestMode + 0x08009164 0x16 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009164 USBD_RunTestMode .text.USBD_SetClassConfig - 0x080094be 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x080094be USBD_SetClassConfig + 0x0800917a 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x0800917a USBD_SetClassConfig .text.USBD_ClrClassConfig - 0x080094f6 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x080094f6 USBD_ClrClassConfig + 0x080091b2 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080091b2 USBD_ClrClassConfig .text.USBD_LL_SetupStage - 0x0800952a 0xaa ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x0800952a USBD_LL_SetupStage + 0x080091e6 0xaa ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080091e6 USBD_LL_SetupStage .text.USBD_LL_DataOutStage - 0x080095d4 0x178 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x080095d4 USBD_LL_DataOutStage + 0x08009290 0x178 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009290 USBD_LL_DataOutStage .text.USBD_LL_DataInStage - 0x0800974c 0x176 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x0800974c USBD_LL_DataInStage + 0x08009408 0x176 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009408 USBD_LL_DataInStage .text.USBD_LL_Reset - 0x080098c2 0xa6 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x080098c2 USBD_LL_Reset + 0x0800957e 0xa6 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x0800957e USBD_LL_Reset .text.USBD_LL_SetSpeed - 0x08009968 0x20 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009968 USBD_LL_SetSpeed + 0x08009624 0x20 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009624 USBD_LL_SetSpeed .text.USBD_LL_Suspend - 0x08009988 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009988 USBD_LL_Suspend + 0x08009644 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009644 USBD_LL_Suspend .text.USBD_LL_Resume - 0x080099c0 0x30 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x080099c0 USBD_LL_Resume + 0x0800967c 0x30 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x0800967c USBD_LL_Resume .text.USBD_LL_SOF - 0x080099f0 0x40 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x080099f0 USBD_LL_SOF + 0x080096ac 0x40 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080096ac USBD_LL_SOF .text.USBD_LL_IsoINIncomplete - 0x08009a30 0x64 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009a30 USBD_LL_IsoINIncomplete + 0x080096ec 0x64 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080096ec USBD_LL_IsoINIncomplete .text.USBD_LL_IsoOUTIncomplete - 0x08009a94 0x64 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009a94 USBD_LL_IsoOUTIncomplete + 0x08009750 0x64 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009750 USBD_LL_IsoOUTIncomplete .text.USBD_LL_DevConnected - 0x08009af8 0x16 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009af8 USBD_LL_DevConnected + 0x080097b4 0x16 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080097b4 USBD_LL_DevConnected .text.USBD_LL_DevDisconnected - 0x08009b0e 0x46 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009b0e USBD_LL_DevDisconnected + 0x080097ca 0x46 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080097ca USBD_LL_DevDisconnected .text.USBD_CoreFindIF - 0x08009b54 0x1a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009b54 USBD_CoreFindIF + 0x08009810 0x1a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009810 USBD_CoreFindIF .text.USBD_CoreFindEP - 0x08009b6e 0x1a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009b6e USBD_CoreFindEP + 0x0800982a 0x1a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x0800982a USBD_CoreFindEP .text.USBD_GetEpDesc - 0x08009b88 0x70 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009b88 USBD_GetEpDesc + 0x08009844 0x70 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009844 USBD_GetEpDesc .text.USBD_GetNextDesc - 0x08009bf8 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009bf8 USBD_GetNextDesc + 0x080098b4 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080098b4 USBD_GetNextDesc .text.SWAPBYTE - 0x08009c30 0x3e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - *fill* 0x08009c6e 0x2 + 0x080098ec 0x3e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + *fill* 0x0800992a 0x2 .text.USBD_StdDevReq - 0x08009c70 0xe4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x08009c70 USBD_StdDevReq + 0x0800992c 0xe4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800992c USBD_StdDevReq .text.USBD_StdItfReq - 0x08009d54 0xd8 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x08009d54 USBD_StdItfReq + 0x08009a10 0xd8 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009a10 USBD_StdItfReq .text.USBD_StdEPReq - 0x08009e2c 0x33e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x08009e2c USBD_StdEPReq - *fill* 0x0800a16a 0x2 + 0x08009ae8 0x33e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009ae8 USBD_StdEPReq + *fill* 0x08009e26 0x2 .text.USBD_GetDescriptor - 0x0800a16c 0x328 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x08009e28 0x328 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_SetAddress - 0x0800a494 0x88 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a150 0x88 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_SetConfig - 0x0800a51c 0x154 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a1d8 0x154 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_GetConfig - 0x0800a670 0x6c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a32c 0x6c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_GetStatus - 0x0800a6dc 0x68 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a398 0x68 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_SetFeature - 0x0800a744 0x52 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a400 0x52 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_ClrFeature - 0x0800a796 0x44 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a452 0x44 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_ParseSetupRequest - 0x0800a7da 0x74 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x0800a7da USBD_ParseSetupRequest + 0x0800a496 0x74 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a496 USBD_ParseSetupRequest .text.USBD_CtlError - 0x0800a84e 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x0800a84e USBD_CtlError + 0x0800a50a 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a50a USBD_CtlError .text.USBD_GetString - 0x0800a870 0xa4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x0800a870 USBD_GetString + 0x0800a52c 0xa4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a52c USBD_GetString .text.USBD_GetLen - 0x0800a914 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a5d0 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_CtlSendData - 0x0800a948 0x3c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800a948 USBD_CtlSendData + 0x0800a604 0x3c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800a604 USBD_CtlSendData .text.USBD_CtlContinueSendData - 0x0800a984 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800a984 USBD_CtlContinueSendData + 0x0800a640 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800a640 USBD_CtlContinueSendData .text.USBD_CtlContinueRx - 0x0800a9a6 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800a9a6 USBD_CtlContinueRx + 0x0800a662 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800a662 USBD_CtlContinueRx .text.USBD_CtlSendStatus - 0x0800a9c8 0x26 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800a9c8 USBD_CtlSendStatus + 0x0800a684 0x26 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800a684 USBD_CtlSendStatus .text.USBD_CtlReceiveStatus - 0x0800a9ee 0x26 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800a9ee USBD_CtlReceiveStatus + 0x0800a6aa 0x26 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800a6aa USBD_CtlReceiveStatus .text.MX_USB_DEVICE_Init - 0x0800aa14 0x4c ./USB_DEVICE/App/usb_device.o - 0x0800aa14 MX_USB_DEVICE_Init + 0x0800a6d0 0x4c ./USB_DEVICE/App/usb_device.o + 0x0800a6d0 MX_USB_DEVICE_Init .text.USBD_FS_DeviceDescriptor - 0x0800aa60 0x24 ./USB_DEVICE/App/usbd_desc.o - 0x0800aa60 USBD_FS_DeviceDescriptor + 0x0800a71c 0x24 ./USB_DEVICE/App/usbd_desc.o + 0x0800a71c USBD_FS_DeviceDescriptor .text.USBD_FS_LangIDStrDescriptor - 0x0800aa84 0x24 ./USB_DEVICE/App/usbd_desc.o - 0x0800aa84 USBD_FS_LangIDStrDescriptor + 0x0800a740 0x24 ./USB_DEVICE/App/usbd_desc.o + 0x0800a740 USBD_FS_LangIDStrDescriptor .text.USBD_FS_ProductStrDescriptor - 0x0800aaa8 0x3c ./USB_DEVICE/App/usbd_desc.o - 0x0800aaa8 USBD_FS_ProductStrDescriptor + 0x0800a764 0x3c ./USB_DEVICE/App/usbd_desc.o + 0x0800a764 USBD_FS_ProductStrDescriptor .text.USBD_FS_ManufacturerStrDescriptor - 0x0800aae4 0x28 ./USB_DEVICE/App/usbd_desc.o - 0x0800aae4 USBD_FS_ManufacturerStrDescriptor + 0x0800a7a0 0x28 ./USB_DEVICE/App/usbd_desc.o + 0x0800a7a0 USBD_FS_ManufacturerStrDescriptor .text.USBD_FS_SerialStrDescriptor - 0x0800ab0c 0x24 ./USB_DEVICE/App/usbd_desc.o - 0x0800ab0c USBD_FS_SerialStrDescriptor + 0x0800a7c8 0x24 ./USB_DEVICE/App/usbd_desc.o + 0x0800a7c8 USBD_FS_SerialStrDescriptor .text.USBD_FS_ConfigStrDescriptor - 0x0800ab30 0x3c ./USB_DEVICE/App/usbd_desc.o - 0x0800ab30 USBD_FS_ConfigStrDescriptor + 0x0800a7ec 0x3c ./USB_DEVICE/App/usbd_desc.o + 0x0800a7ec USBD_FS_ConfigStrDescriptor .text.USBD_FS_InterfaceStrDescriptor - 0x0800ab6c 0x3c ./USB_DEVICE/App/usbd_desc.o - 0x0800ab6c USBD_FS_InterfaceStrDescriptor + 0x0800a828 0x3c ./USB_DEVICE/App/usbd_desc.o + 0x0800a828 USBD_FS_InterfaceStrDescriptor .text.USBD_FS_USR_BOSDescriptor - 0x0800aba8 0x24 ./USB_DEVICE/App/usbd_desc.o - 0x0800aba8 USBD_FS_USR_BOSDescriptor + 0x0800a864 0x24 ./USB_DEVICE/App/usbd_desc.o + 0x0800a864 USBD_FS_USR_BOSDescriptor .text.Get_SerialNum - 0x0800abcc 0x58 ./USB_DEVICE/App/usbd_desc.o + 0x0800a888 0x58 ./USB_DEVICE/App/usbd_desc.o .text.IntToUnicode - 0x0800ac24 0x7e ./USB_DEVICE/App/usbd_desc.o - *fill* 0x0800aca2 0x2 + 0x0800a8e0 0x7e ./USB_DEVICE/App/usbd_desc.o + *fill* 0x0800a95e 0x2 .text.HAL_PCD_MspInit - 0x0800aca4 0xd4 ./USB_DEVICE/Target/usbd_conf.o - 0x0800aca4 HAL_PCD_MspInit + 0x0800a960 0xd4 ./USB_DEVICE/Target/usbd_conf.o + 0x0800a960 HAL_PCD_MspInit .text.HAL_PCD_SetupStageCallback - 0x0800ad78 0x24 ./USB_DEVICE/Target/usbd_conf.o - 0x0800ad78 HAL_PCD_SetupStageCallback + 0x0800aa34 0x24 ./USB_DEVICE/Target/usbd_conf.o + 0x0800aa34 HAL_PCD_SetupStageCallback .text.HAL_PCD_DataOutStageCallback - 0x0800ad9c 0x36 ./USB_DEVICE/Target/usbd_conf.o - 0x0800ad9c HAL_PCD_DataOutStageCallback + 0x0800aa58 0x36 ./USB_DEVICE/Target/usbd_conf.o + 0x0800aa58 HAL_PCD_DataOutStageCallback .text.HAL_PCD_DataInStageCallback - 0x0800add2 0x34 ./USB_DEVICE/Target/usbd_conf.o - 0x0800add2 HAL_PCD_DataInStageCallback + 0x0800aa8e 0x34 ./USB_DEVICE/Target/usbd_conf.o + 0x0800aa8e HAL_PCD_DataInStageCallback .text.HAL_PCD_SOFCallback - 0x0800ae06 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800ae06 HAL_PCD_SOFCallback + 0x0800aac2 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800aac2 HAL_PCD_SOFCallback .text.HAL_PCD_ResetCallback - 0x0800ae22 0x50 ./USB_DEVICE/Target/usbd_conf.o - 0x0800ae22 HAL_PCD_ResetCallback - *fill* 0x0800ae72 0x2 + 0x0800aade 0x50 ./USB_DEVICE/Target/usbd_conf.o + 0x0800aade HAL_PCD_ResetCallback + *fill* 0x0800ab2e 0x2 .text.HAL_PCD_SuspendCallback - 0x0800ae74 0x4c ./USB_DEVICE/Target/usbd_conf.o - 0x0800ae74 HAL_PCD_SuspendCallback + 0x0800ab30 0x4c ./USB_DEVICE/Target/usbd_conf.o + 0x0800ab30 HAL_PCD_SuspendCallback .text.HAL_PCD_ResumeCallback - 0x0800aec0 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800aec0 HAL_PCD_ResumeCallback + 0x0800ab7c 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800ab7c HAL_PCD_ResumeCallback .text.HAL_PCD_ISOOUTIncompleteCallback - 0x0800aedc 0x24 ./USB_DEVICE/Target/usbd_conf.o - 0x0800aedc HAL_PCD_ISOOUTIncompleteCallback + 0x0800ab98 0x24 ./USB_DEVICE/Target/usbd_conf.o + 0x0800ab98 HAL_PCD_ISOOUTIncompleteCallback .text.HAL_PCD_ISOINIncompleteCallback - 0x0800af00 0x24 ./USB_DEVICE/Target/usbd_conf.o - 0x0800af00 HAL_PCD_ISOINIncompleteCallback + 0x0800abbc 0x24 ./USB_DEVICE/Target/usbd_conf.o + 0x0800abbc HAL_PCD_ISOINIncompleteCallback .text.HAL_PCD_ConnectCallback - 0x0800af24 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800af24 HAL_PCD_ConnectCallback + 0x0800abe0 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800abe0 HAL_PCD_ConnectCallback .text.HAL_PCD_DisconnectCallback - 0x0800af40 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800af40 HAL_PCD_DisconnectCallback + 0x0800abfc 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800abfc HAL_PCD_DisconnectCallback .text.USBD_LL_Init - 0x0800af5c 0x98 ./USB_DEVICE/Target/usbd_conf.o - 0x0800af5c USBD_LL_Init + 0x0800ac18 0x98 ./USB_DEVICE/Target/usbd_conf.o + 0x0800ac18 USBD_LL_Init .text.USBD_LL_Start - 0x0800aff4 0x36 ./USB_DEVICE/Target/usbd_conf.o - 0x0800aff4 USBD_LL_Start + 0x0800acb0 0x36 ./USB_DEVICE/Target/usbd_conf.o + 0x0800acb0 USBD_LL_Start .text.USBD_LL_OpenEP - 0x0800b02a 0x4c ./USB_DEVICE/Target/usbd_conf.o - 0x0800b02a USBD_LL_OpenEP + 0x0800ace6 0x4c ./USB_DEVICE/Target/usbd_conf.o + 0x0800ace6 USBD_LL_OpenEP .text.USBD_LL_CloseEP - 0x0800b076 0x3e ./USB_DEVICE/Target/usbd_conf.o - 0x0800b076 USBD_LL_CloseEP + 0x0800ad32 0x3e ./USB_DEVICE/Target/usbd_conf.o + 0x0800ad32 USBD_LL_CloseEP .text.USBD_LL_StallEP - 0x0800b0b4 0x3e ./USB_DEVICE/Target/usbd_conf.o - 0x0800b0b4 USBD_LL_StallEP + 0x0800ad70 0x3e ./USB_DEVICE/Target/usbd_conf.o + 0x0800ad70 USBD_LL_StallEP .text.USBD_LL_ClearStallEP - 0x0800b0f2 0x3e ./USB_DEVICE/Target/usbd_conf.o - 0x0800b0f2 USBD_LL_ClearStallEP + 0x0800adae 0x3e ./USB_DEVICE/Target/usbd_conf.o + 0x0800adae USBD_LL_ClearStallEP .text.USBD_LL_IsStallEP - 0x0800b130 0x58 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b130 USBD_LL_IsStallEP + 0x0800adec 0x58 ./USB_DEVICE/Target/usbd_conf.o + 0x0800adec USBD_LL_IsStallEP .text.USBD_LL_SetUSBAddress - 0x0800b188 0x3e ./USB_DEVICE/Target/usbd_conf.o - 0x0800b188 USBD_LL_SetUSBAddress + 0x0800ae44 0x3e ./USB_DEVICE/Target/usbd_conf.o + 0x0800ae44 USBD_LL_SetUSBAddress .text.USBD_LL_Transmit - 0x0800b1c6 0x42 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b1c6 USBD_LL_Transmit + 0x0800ae82 0x42 ./USB_DEVICE/Target/usbd_conf.o + 0x0800ae82 USBD_LL_Transmit .text.USBD_LL_PrepareReceive - 0x0800b208 0x42 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b208 USBD_LL_PrepareReceive - *fill* 0x0800b24a 0x2 + 0x0800aec4 0x42 ./USB_DEVICE/Target/usbd_conf.o + 0x0800aec4 USBD_LL_PrepareReceive + *fill* 0x0800af06 0x2 .text.HAL_PCDEx_LPM_Callback - 0x0800b24c 0x9c ./USB_DEVICE/Target/usbd_conf.o - 0x0800b24c HAL_PCDEx_LPM_Callback + 0x0800af08 0x9c ./USB_DEVICE/Target/usbd_conf.o + 0x0800af08 HAL_PCDEx_LPM_Callback .text.USBD_static_malloc - 0x0800b2e8 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800b2e8 USBD_static_malloc + 0x0800afa4 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800afa4 USBD_static_malloc .text.USBD_static_free - 0x0800b304 0x14 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b304 USBD_static_free + 0x0800afc0 0x14 ./USB_DEVICE/Target/usbd_conf.o + 0x0800afc0 USBD_static_free .text.USBD_Get_USB_Status - 0x0800b318 0x58 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b318 USBD_Get_USB_Status - .text.memset 0x0800b370 0x10 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) - 0x0800b370 memset + 0x0800afd4 0x58 ./USB_DEVICE/Target/usbd_conf.o + 0x0800afd4 USBD_Get_USB_Status + .text.memset 0x0800b02c 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) + 0x0800b02c memset .text.__libc_init_array - 0x0800b380 0x48 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) - 0x0800b380 __libc_init_array - .text.memcpy 0x0800b3c8 0x1c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memcpy-stub.o) - 0x0800b3c8 memcpy + 0x0800b03c 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) + 0x0800b03c __libc_init_array + .text.memcpy 0x0800b084 0x1c /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-memcpy-stub.o) + 0x0800b084 memcpy *(.glue_7) - .glue_7 0x0800b3e4 0x0 linker stubs + .glue_7 0x0800b0a0 0x0 linker stubs *(.glue_7t) - .glue_7t 0x0800b3e4 0x0 linker stubs + .glue_7t 0x0800b0a0 0x0 linker stubs *(.eh_frame) - .eh_frame 0x0800b3e4 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o + .eh_frame 0x0800b0a0 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 0x0800b3e4 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o - 0x0800b3e4 _init - .init 0x0800b3e8 0x8 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o + .init 0x0800b0a0 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 + 0x0800b0a0 _init + .init 0x0800b0a4 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 0x0800b3f0 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o - 0x0800b3f0 _fini - .fini 0x0800b3f4 0x8 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o - 0x0800b3fc . = ALIGN (0x4) - 0x0800b3fc _etext = . + .fini 0x0800b0ac 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 + 0x0800b0ac _fini + .fini 0x0800b0b0 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 + 0x0800b0b8 . = ALIGN (0x4) + 0x0800b0b8 _etext = . -.vfp11_veneer 0x0800b3fc 0x0 - .vfp11_veneer 0x0800b3fc 0x0 linker stubs +.vfp11_veneer 0x0800b0b8 0x0 + .vfp11_veneer 0x0800b0b8 0x0 linker stubs -.v4_bx 0x0800b3fc 0x0 - .v4_bx 0x0800b3fc 0x0 linker stubs +.v4_bx 0x0800b0b8 0x0 + .v4_bx 0x0800b0b8 0x0 linker stubs -.iplt 0x0800b3fc 0x0 - .iplt 0x0800b3fc 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o +.iplt 0x0800b0b8 0x0 + .iplt 0x0800b0b8 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 0x0800b3fc 0x5c - 0x0800b3fc . = ALIGN (0x4) +.rodata 0x0800b0b8 0x5c + 0x0800b0b8 . = ALIGN (0x4) *(.rodata) - .rodata 0x0800b3fc 0x3a ./USB_DEVICE/App/usbd_desc.o + .rodata 0x0800b0b8 0x3a ./USB_DEVICE/App/usbd_desc.o *(.rodata*) - *fill* 0x0800b436 0x2 + *fill* 0x0800b0f2 0x2 .rodata.AHBPrescTable - 0x0800b438 0x10 ./Core/Src/system_stm32f4xx.o - 0x0800b438 AHBPrescTable + 0x0800b0f4 0x10 ./Core/Src/system_stm32f4xx.o + 0x0800b0f4 AHBPrescTable .rodata.APBPrescTable - 0x0800b448 0x8 ./Core/Src/system_stm32f4xx.o - 0x0800b448 APBPrescTable + 0x0800b104 0x8 ./Core/Src/system_stm32f4xx.o + 0x0800b104 APBPrescTable .rodata.flagBitshiftOffset.0 - 0x0800b450 0x8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x0800b458 . = ALIGN (0x4) + 0x0800b10c 0x8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x0800b114 . = ALIGN (0x4) -.ARM.extab 0x0800b458 0x0 - 0x0800b458 . = ALIGN (0x4) +.ARM.extab 0x0800b114 0x0 + 0x0800b114 . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x0800b458 . = ALIGN (0x4) + 0x0800b114 . = ALIGN (0x4) -.ARM 0x0800b458 0x8 - 0x0800b458 . = ALIGN (0x4) - 0x0800b458 __exidx_start = . +.ARM 0x0800b114 0x8 + 0x0800b114 . = ALIGN (0x4) + 0x0800b114 __exidx_start = . *(.ARM.exidx*) - .ARM.exidx 0x0800b458 0x8 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) - 0x0800b460 __exidx_end = . - 0x0800b460 . = ALIGN (0x4) + .ARM.exidx 0x0800b114 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) + 0x0800b11c __exidx_end = . + 0x0800b11c . = ALIGN (0x4) -.preinit_array 0x0800b460 0x0 - 0x0800b460 . = ALIGN (0x4) - 0x0800b460 PROVIDE (__preinit_array_start = .) +.preinit_array 0x0800b11c 0x0 + 0x0800b11c . = ALIGN (0x4) + 0x0800b11c PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x0800b460 PROVIDE (__preinit_array_end = .) - 0x0800b460 . = ALIGN (0x4) + 0x0800b11c PROVIDE (__preinit_array_end = .) + 0x0800b11c . = ALIGN (0x4) -.init_array 0x0800b460 0x4 - 0x0800b460 . = ALIGN (0x4) - 0x0800b460 PROVIDE (__init_array_start = .) +.init_array 0x0800b11c 0x4 + 0x0800b11c . = ALIGN (0x4) + 0x0800b11c PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x0800b460 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o - 0x0800b464 PROVIDE (__init_array_end = .) - 0x0800b464 . = ALIGN (0x4) + .init_array 0x0800b11c 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 + 0x0800b120 PROVIDE (__init_array_end = .) + 0x0800b120 . = ALIGN (0x4) -.fini_array 0x0800b464 0x4 - 0x0800b464 . = ALIGN (0x4) +.fini_array 0x0800b120 0x4 + 0x0800b120 . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x0800b464 0x4 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o + .fini_array 0x0800b120 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 = .) - 0x0800b468 . = ALIGN (0x4) - 0x0800b468 _sidata = LOADADDR (.data) + 0x0800b124 . = ALIGN (0x4) + 0x0800b124 _sidata = LOADADDR (.data) -.rel.dyn 0x0800b468 0x0 - .rel.iplt 0x0800b468 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o +.rel.dyn 0x0800b124 0x0 + .rel.iplt 0x0800b124 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 0x214 load address 0x0800b468 +.data 0x20000000 0x214 load address 0x0800b124 0x20000000 . = ALIGN (0x4) 0x20000000 _sdata = . *(.data) @@ -6565,126 +6589,123 @@ LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext *fill* 0x20000212 0x2 0x20000214 _edata = . -.igot.plt 0x20000214 0x0 load address 0x0800b67c - .igot.plt 0x20000214 0x0 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o +.igot.plt 0x20000214 0x0 load address 0x0800b338 + .igot.plt 0x20000214 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 0x20000214 . = ALIGN (0x4) -.bss 0x20000214 0x15e8 load address 0x0800b67c +.bss 0x20000214 0x1594 load address 0x0800b338 0x20000214 _sbss = . 0x20000214 __bss_start__ = _sbss *(.bss) - .bss 0x20000214 0x1c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o + .bss 0x20000214 0x1c /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 *(.bss*) - .bss.hi2c1 0x20000230 0x54 ./Core/Src/i2c.o - 0x20000230 hi2c1 - .bss.REPORT 0x20000284 0xe ./Core/Src/main.o - 0x20000284 REPORT - *fill* 0x20000292 0x2 - .bss.RX5Msg 0x20000294 0x10 ./Core/Src/main.o - 0x20000294 RX5Msg - .bss.RX1Msg 0x200002a4 0x10 ./Core/Src/main.o - 0x200002a4 RX1Msg - .bss.RX2Msg 0x200002b4 0x10 ./Core/Src/main.o - 0x200002b4 RX2Msg - .bss.RX4Msg 0x200002c4 0x10 ./Core/Src/main.o - 0x200002c4 RX4Msg - .bss.DEPTH 0x200002d4 0x2 ./Core/Src/main.o - 0x200002d4 DEPTH - *fill* 0x200002d6 0x2 - .bss.PARENT 0x200002d8 0x4 ./Core/Src/main.o - 0x200002d8 PARENT + .bss.REPORT 0x20000230 0xe ./Core/Src/main.o + 0x20000230 REPORT + *fill* 0x2000023e 0x2 + .bss.RX5Msg 0x20000240 0x10 ./Core/Src/main.o + 0x20000240 RX5Msg + .bss.RX1Msg 0x20000250 0x10 ./Core/Src/main.o + 0x20000250 RX1Msg + .bss.RX2Msg 0x20000260 0x10 ./Core/Src/main.o + 0x20000260 RX2Msg + .bss.RX4Msg 0x20000270 0x10 ./Core/Src/main.o + 0x20000270 RX4Msg + .bss.DEPTH 0x20000280 0x2 ./Core/Src/main.o + 0x20000280 DEPTH + *fill* 0x20000282 0x2 + .bss.PARENT 0x20000284 0x4 ./Core/Src/main.o + 0x20000284 PARENT .bss.KEYSTATE_CHANGED_FLAG - 0x200002dc 0x1 ./Core/Src/main.o - 0x200002dc KEYSTATE_CHANGED_FLAG - *fill* 0x200002dd 0x3 - .bss.KEYSTATE 0x200002e0 0x4b ./Core/Src/main.o - 0x200002e0 KEYSTATE - .bss.MODE 0x2000032b 0x1 ./Core/Src/main.o - 0x2000032b MODE + 0x20000288 0x1 ./Core/Src/main.o + 0x20000288 KEYSTATE_CHANGED_FLAG + *fill* 0x20000289 0x3 + .bss.KEYSTATE 0x2000028c 0x4b ./Core/Src/main.o + 0x2000028c KEYSTATE + .bss.MODE 0x200002d7 0x1 ./Core/Src/main.o + 0x200002d7 MODE .bss.LAST_ENCODER_COUNT - 0x2000032c 0x4 ./Core/Src/main.o - 0x2000032c LAST_ENCODER_COUNT + 0x200002d8 0x4 ./Core/Src/main.o + 0x200002d8 LAST_ENCODER_COUNT .bss.UART_KEYSTATE - 0x20000330 0x30 ./Core/Src/main.o - 0x20000330 UART_KEYSTATE - .bss.huart1q 0x20000360 0x183 ./Core/Src/main.o - 0x20000360 huart1q - *fill* 0x200004e3 0x1 - .bss.huart2q 0x200004e4 0x183 ./Core/Src/main.o - 0x200004e4 huart2q - *fill* 0x20000667 0x1 - .bss.huart4q 0x20000668 0x183 ./Core/Src/main.o - 0x20000668 huart4q - *fill* 0x200007eb 0x1 - .bss.huart5q 0x200007ec 0x183 ./Core/Src/main.o - 0x200007ec huart5q - *fill* 0x2000096f 0x1 - .bss.htim2 0x20000970 0x48 ./Core/Src/tim.o - 0x20000970 htim2 - .bss.htim3 0x200009b8 0x48 ./Core/Src/tim.o - 0x200009b8 htim3 - .bss.huart4 0x20000a00 0x48 ./Core/Src/usart.o - 0x20000a00 huart4 - .bss.huart5 0x20000a48 0x48 ./Core/Src/usart.o - 0x20000a48 huart5 - .bss.huart1 0x20000a90 0x48 ./Core/Src/usart.o - 0x20000a90 huart1 - .bss.huart2 0x20000ad8 0x48 ./Core/Src/usart.o - 0x20000ad8 huart2 + 0x200002dc 0x30 ./Core/Src/main.o + 0x200002dc UART_KEYSTATE + .bss.huart1q 0x2000030c 0x183 ./Core/Src/main.o + 0x2000030c huart1q + *fill* 0x2000048f 0x1 + .bss.huart2q 0x20000490 0x183 ./Core/Src/main.o + 0x20000490 huart2q + *fill* 0x20000613 0x1 + .bss.huart4q 0x20000614 0x183 ./Core/Src/main.o + 0x20000614 huart4q + *fill* 0x20000797 0x1 + .bss.huart5q 0x20000798 0x183 ./Core/Src/main.o + 0x20000798 huart5q + *fill* 0x2000091b 0x1 + .bss.htim2 0x2000091c 0x48 ./Core/Src/tim.o + 0x2000091c htim2 + .bss.htim3 0x20000964 0x48 ./Core/Src/tim.o + 0x20000964 htim3 + .bss.huart4 0x200009ac 0x48 ./Core/Src/usart.o + 0x200009ac huart4 + .bss.huart5 0x200009f4 0x48 ./Core/Src/usart.o + 0x200009f4 huart5 + .bss.huart1 0x20000a3c 0x48 ./Core/Src/usart.o + 0x20000a3c huart1 + .bss.huart2 0x20000a84 0x48 ./Core/Src/usart.o + 0x20000a84 huart2 .bss.hdma_uart4_rx - 0x20000b20 0x60 ./Core/Src/usart.o - 0x20000b20 hdma_uart4_rx + 0x20000acc 0x60 ./Core/Src/usart.o + 0x20000acc hdma_uart4_rx .bss.hdma_uart4_tx - 0x20000b80 0x60 ./Core/Src/usart.o - 0x20000b80 hdma_uart4_tx + 0x20000b2c 0x60 ./Core/Src/usart.o + 0x20000b2c hdma_uart4_tx .bss.hdma_uart5_rx - 0x20000be0 0x60 ./Core/Src/usart.o - 0x20000be0 hdma_uart5_rx + 0x20000b8c 0x60 ./Core/Src/usart.o + 0x20000b8c hdma_uart5_rx .bss.hdma_uart5_tx - 0x20000c40 0x60 ./Core/Src/usart.o - 0x20000c40 hdma_uart5_tx + 0x20000bec 0x60 ./Core/Src/usart.o + 0x20000bec hdma_uart5_tx .bss.hdma_usart1_rx - 0x20000ca0 0x60 ./Core/Src/usart.o - 0x20000ca0 hdma_usart1_rx + 0x20000c4c 0x60 ./Core/Src/usart.o + 0x20000c4c hdma_usart1_rx .bss.hdma_usart1_tx - 0x20000d00 0x60 ./Core/Src/usart.o - 0x20000d00 hdma_usart1_tx + 0x20000cac 0x60 ./Core/Src/usart.o + 0x20000cac hdma_usart1_tx .bss.hdma_usart2_rx - 0x20000d60 0x60 ./Core/Src/usart.o - 0x20000d60 hdma_usart2_rx + 0x20000d0c 0x60 ./Core/Src/usart.o + 0x20000d0c hdma_usart2_rx .bss.hdma_usart2_tx - 0x20000dc0 0x60 ./Core/Src/usart.o - 0x20000dc0 hdma_usart2_tx - .bss.uwTick 0x20000e20 0x4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x20000e20 uwTick - .bss.cfgidx.0 0x20000e24 0x1 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - *fill* 0x20000e25 0x3 + 0x20000d6c 0x60 ./Core/Src/usart.o + 0x20000d6c hdma_usart2_tx + .bss.uwTick 0x20000dcc 0x4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x20000dcc uwTick + .bss.cfgidx.0 0x20000dd0 0x1 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + *fill* 0x20000dd1 0x3 .bss.hUsbDeviceFS - 0x20000e28 0x2dc ./USB_DEVICE/App/usb_device.o - 0x20000e28 hUsbDeviceFS + 0x20000dd4 0x2dc ./USB_DEVICE/App/usb_device.o + 0x20000dd4 hUsbDeviceFS .bss.USBD_StrDesc - 0x20001104 0x200 ./USB_DEVICE/App/usbd_desc.o - 0x20001104 USBD_StrDesc + 0x200010b0 0x200 ./USB_DEVICE/App/usbd_desc.o + 0x200010b0 USBD_StrDesc .bss.hpcd_USB_OTG_FS - 0x20001304 0x4e4 ./USB_DEVICE/Target/usbd_conf.o - 0x20001304 hpcd_USB_OTG_FS - .bss.mem.0 0x200017e8 0x14 ./USB_DEVICE/Target/usbd_conf.o + 0x200012b0 0x4e4 ./USB_DEVICE/Target/usbd_conf.o + 0x200012b0 hpcd_USB_OTG_FS + .bss.mem.0 0x20001794 0x14 ./USB_DEVICE/Target/usbd_conf.o *(COMMON) - 0x200017fc . = ALIGN (0x4) - 0x200017fc _ebss = . - 0x200017fc __bss_end__ = _ebss + 0x200017a8 . = ALIGN (0x4) + 0x200017a8 _ebss = . + 0x200017a8 __bss_end__ = _ebss ._user_heap_stack - 0x200017fc 0x604 load address 0x0800b67c - 0x20001800 . = ALIGN (0x8) - *fill* 0x200017fc 0x4 + 0x200017a8 0x600 load address 0x0800b338 + 0x200017a8 . = ALIGN (0x8) [!provide] PROVIDE (end = .) - 0x20001800 PROVIDE (_end = .) - 0x20001a00 . = (. + _Min_Heap_Size) - *fill* 0x20001800 0x200 - 0x20001e00 . = (. + _Min_Stack_Size) - *fill* 0x20001a00 0x400 - 0x20001e00 . = ALIGN (0x8) + 0x200017a8 PROVIDE (_end = .) + 0x200019a8 . = (. + _Min_Heap_Size) + *fill* 0x200017a8 0x200 + 0x20001da8 . = (. + _Min_Stack_Size) + *fill* 0x200019a8 0x400 + 0x20001da8 . = ALIGN (0x8) /DISCARD/ libc.a(*) @@ -6695,287 +6716,271 @@ LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext 0x00000000 0x30 *(.ARM.attributes) .ARM.attributes - 0x00000000 0x22 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crti.o + 0x00000000 0x22 /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 .ARM.attributes - 0x00000022 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtbegin.o + 0x00000022 0x34 /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 .ARM.attributes 0x00000056 0x34 ./Core/Src/dma.o .ARM.attributes 0x0000008a 0x34 ./Core/Src/gpio.o .ARM.attributes - 0x000000be 0x34 ./Core/Src/i2c.o + 0x000000be 0x34 ./Core/Src/main.o .ARM.attributes - 0x000000f2 0x34 ./Core/Src/main.o + 0x000000f2 0x34 ./Core/Src/pwm.o .ARM.attributes - 0x00000126 0x34 ./Core/Src/pwm.o + 0x00000126 0x34 ./Core/Src/stm32f4xx_hal_msp.o .ARM.attributes - 0x0000015a 0x34 ./Core/Src/stm32f4xx_hal_msp.o + 0x0000015a 0x34 ./Core/Src/stm32f4xx_it.o .ARM.attributes - 0x0000018e 0x34 ./Core/Src/stm32f4xx_it.o + 0x0000018e 0x34 ./Core/Src/system_stm32f4xx.o .ARM.attributes - 0x000001c2 0x34 ./Core/Src/system_stm32f4xx.o + 0x000001c2 0x34 ./Core/Src/tim.o .ARM.attributes - 0x000001f6 0x34 ./Core/Src/tim.o + 0x000001f6 0x34 ./Core/Src/usart.o .ARM.attributes - 0x0000022a 0x34 ./Core/Src/usart.o + 0x0000022a 0x21 ./Core/Startup/startup_stm32f446retx.o .ARM.attributes - 0x0000025e 0x21 ./Core/Startup/startup_stm32f446retx.o + 0x0000024b 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o .ARM.attributes - 0x0000027f 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x0000027f 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .ARM.attributes - 0x000002b3 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x000002b3 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o .ARM.attributes - 0x000002e7 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x000002e7 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o .ARM.attributes - 0x0000031b 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x0000031b 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o .ARM.attributes - 0x0000034f 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + 0x0000034f 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o .ARM.attributes - 0x00000383 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x00000383 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o .ARM.attributes - 0x000003b7 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + 0x000003b7 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o .ARM.attributes - 0x000003eb 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x000003eb 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .ARM.attributes - 0x0000041f 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x0000041f 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o .ARM.attributes - 0x00000453 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x00000453 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .ARM.attributes - 0x00000487 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + 0x00000487 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o .ARM.attributes - 0x000004bb 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x000004bb 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .ARM.attributes - 0x000004ef 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x000004ef 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o .ARM.attributes - 0x00000523 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x00000523 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .ARM.attributes - 0x00000557 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x00000557 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o .ARM.attributes - 0x0000058b 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0000058b 0x34 ./USB_DEVICE/App/usb_device.o .ARM.attributes - 0x000005bf 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x000005bf 0x34 ./USB_DEVICE/App/usbd_desc.o .ARM.attributes - 0x000005f3 0x34 ./USB_DEVICE/App/usb_device.o + 0x000005f3 0x34 ./USB_DEVICE/Target/usbd_conf.o .ARM.attributes - 0x00000627 0x34 ./USB_DEVICE/App/usbd_desc.o + 0x00000627 0x34 /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) .ARM.attributes - 0x0000065b 0x34 ./USB_DEVICE/Target/usbd_conf.o + 0x0000065b 0x34 /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) .ARM.attributes - 0x0000068f 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) + 0x0000068f 0x34 /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-memcpy-stub.o) .ARM.attributes - 0x000006c3 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) + 0x000006c3 0x22 /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(_aeabi_uldivmod.o) .ARM.attributes - 0x000006f7 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memcpy-stub.o) + 0x000006e5 0x34 /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) .ARM.attributes - 0x0000072b 0x22 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) + 0x00000719 0x22 /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(_dvmd_tls.o) .ARM.attributes - 0x0000074d 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) - .ARM.attributes - 0x00000781 0x22 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_dvmd_tls.o) - .ARM.attributes - 0x000007a3 0x22 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard/crtn.o + 0x0000073b 0x22 /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 OUTPUT(67.elf elf32-littlearm) LOAD linker stubs -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc.a -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libm.a -LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.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/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc.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/../../../../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 0x1be15 +.debug_info 0x00000000 0x19062 .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 0x1b60 ./Core/Src/main.o - .debug_info 0x00002e6d 0x80d ./Core/Src/pwm.o - .debug_info 0x0000367a 0x299 ./Core/Src/stm32f4xx_hal_msp.o - .debug_info 0x00003913 0xc7c ./Core/Src/stm32f4xx_it.o - .debug_info 0x0000458f 0x54a ./Core/Src/system_stm32f4xx.o - .debug_info 0x00004ad9 0xd18 ./Core/Src/tim.o - .debug_info 0x000057f1 0xdbf ./Core/Src/usart.o - .debug_info 0x000065b0 0x30 ./Core/Startup/startup_stm32f446retx.o - .debug_info 0x000065e0 0x99a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_info 0x00006f7a 0xdaa ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_info 0x00007d24 0x8e7 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_info 0x0000860b 0x70b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_info 0x00008d16 0x2421 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o - .debug_info 0x0000b137 0x15e3 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - .debug_info 0x0000c71a 0x7b4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - .debug_info 0x0000cece 0x8ff ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_info 0x0000d7cd 0x960 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_info 0x0000e12d 0x299d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_info 0x00010aca 0x14db ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_info 0x00011fa5 0x2f4f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - .debug_info 0x00014ef4 0x19f1 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - .debug_info 0x000168e5 0xa9e ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - .debug_info 0x00017383 0xe1f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - .debug_info 0x000181a2 0xaf8 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - .debug_info 0x00018c9a 0x76f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - .debug_info 0x00019409 0x609 ./USB_DEVICE/App/usb_device.o - .debug_info 0x00019a12 0x4ba ./USB_DEVICE/App/usbd_desc.o - .debug_info 0x00019ecc 0x1f49 ./USB_DEVICE/Target/usbd_conf.o + .debug_info 0x00000969 0x1b72 ./Core/Src/main.o + .debug_info 0x000024db 0x80d ./Core/Src/pwm.o + .debug_info 0x00002ce8 0x299 ./Core/Src/stm32f4xx_hal_msp.o + .debug_info 0x00002f81 0xc7c ./Core/Src/stm32f4xx_it.o + .debug_info 0x00003bfd 0x54a ./Core/Src/system_stm32f4xx.o + .debug_info 0x00004147 0xd18 ./Core/Src/tim.o + .debug_info 0x00004e5f 0xdbf ./Core/Src/usart.o + .debug_info 0x00005c1e 0x30 ./Core/Startup/startup_stm32f446retx.o + .debug_info 0x00005c4e 0x99a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_info 0x000065e8 0xdaa ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_info 0x00007392 0x8e7 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_info 0x00007c79 0x70b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_info 0x00008384 0x15e3 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + .debug_info 0x00009967 0x7b4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + .debug_info 0x0000a11b 0x8ff ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_info 0x0000aa1a 0x960 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_info 0x0000b37a 0x299d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_info 0x0000dd17 0x14db ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_info 0x0000f1f2 0x2f4f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_info 0x00012141 0x19f1 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + .debug_info 0x00013b32 0xa9e ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + .debug_info 0x000145d0 0xe1f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + .debug_info 0x000153ef 0xaf8 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + .debug_info 0x00015ee7 0x76f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + .debug_info 0x00016656 0x609 ./USB_DEVICE/App/usb_device.o + .debug_info 0x00016c5f 0x4ba ./USB_DEVICE/App/usbd_desc.o + .debug_info 0x00017119 0x1f49 ./USB_DEVICE/Target/usbd_conf.o -.debug_abbrev 0x00000000 0x4285 +.debug_abbrev 0x00000000 0x3de7 .debug_abbrev 0x00000000 0x11b ./Core/Src/dma.o .debug_abbrev 0x0000011b 0x152 ./Core/Src/gpio.o - .debug_abbrev 0x0000026d 0x1f1 ./Core/Src/i2c.o - .debug_abbrev 0x0000045e 0x368 ./Core/Src/main.o - .debug_abbrev 0x000007c6 0x1f5 ./Core/Src/pwm.o - .debug_abbrev 0x000009bb 0xd8 ./Core/Src/stm32f4xx_hal_msp.o - .debug_abbrev 0x00000a93 0x1f6 ./Core/Src/stm32f4xx_it.o - .debug_abbrev 0x00000c89 0x11a ./Core/Src/system_stm32f4xx.o - .debug_abbrev 0x00000da3 0x22c ./Core/Src/tim.o - .debug_abbrev 0x00000fcf 0x270 ./Core/Src/usart.o - .debug_abbrev 0x0000123f 0x24 ./Core/Startup/startup_stm32f446retx.o - .debug_abbrev 0x00001263 0x214 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_abbrev 0x00001477 0x31d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_abbrev 0x00001794 0x264 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_abbrev 0x000019f8 0x1d4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_abbrev 0x00001bcc 0x2ad ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o - .debug_abbrev 0x00001e79 0x2d0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - .debug_abbrev 0x00002149 0x1dd ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - .debug_abbrev 0x00002326 0x2b7 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_abbrev 0x000025dd 0x211 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_abbrev 0x000027ee 0x278 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_abbrev 0x00002a66 0x283 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_abbrev 0x00002ce9 0x30e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - .debug_abbrev 0x00002ff7 0x2b3 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - .debug_abbrev 0x000032aa 0x2a2 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - .debug_abbrev 0x0000354c 0x27c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - .debug_abbrev 0x000037c8 0x26f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - .debug_abbrev 0x00003a37 0x19a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - .debug_abbrev 0x00003bd1 0x190 ./USB_DEVICE/App/usb_device.o - .debug_abbrev 0x00003d61 0x1e3 ./USB_DEVICE/App/usbd_desc.o - .debug_abbrev 0x00003f44 0x341 ./USB_DEVICE/Target/usbd_conf.o + .debug_abbrev 0x0000026d 0x368 ./Core/Src/main.o + .debug_abbrev 0x000005d5 0x1f5 ./Core/Src/pwm.o + .debug_abbrev 0x000007ca 0xd8 ./Core/Src/stm32f4xx_hal_msp.o + .debug_abbrev 0x000008a2 0x1f6 ./Core/Src/stm32f4xx_it.o + .debug_abbrev 0x00000a98 0x11a ./Core/Src/system_stm32f4xx.o + .debug_abbrev 0x00000bb2 0x22c ./Core/Src/tim.o + .debug_abbrev 0x00000dde 0x270 ./Core/Src/usart.o + .debug_abbrev 0x0000104e 0x24 ./Core/Startup/startup_stm32f446retx.o + .debug_abbrev 0x00001072 0x214 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_abbrev 0x00001286 0x31d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_abbrev 0x000015a3 0x264 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_abbrev 0x00001807 0x1d4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_abbrev 0x000019db 0x2d0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + .debug_abbrev 0x00001cab 0x1dd ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + .debug_abbrev 0x00001e88 0x2b7 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_abbrev 0x0000213f 0x211 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_abbrev 0x00002350 0x278 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_abbrev 0x000025c8 0x283 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_abbrev 0x0000284b 0x30e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_abbrev 0x00002b59 0x2b3 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + .debug_abbrev 0x00002e0c 0x2a2 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + .debug_abbrev 0x000030ae 0x27c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + .debug_abbrev 0x0000332a 0x26f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + .debug_abbrev 0x00003599 0x19a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + .debug_abbrev 0x00003733 0x190 ./USB_DEVICE/App/usb_device.o + .debug_abbrev 0x000038c3 0x1e3 ./USB_DEVICE/App/usbd_desc.o + .debug_abbrev 0x00003aa6 0x341 ./USB_DEVICE/Target/usbd_conf.o -.debug_aranges 0x00000000 0x17f0 +.debug_aranges 0x00000000 0x1518 .debug_aranges 0x00000000 0x20 ./Core/Src/dma.o .debug_aranges 0x00000020 0x20 ./Core/Src/gpio.o .debug_aranges - 0x00000040 0x30 ./Core/Src/i2c.o + 0x00000040 0x90 ./Core/Src/main.o .debug_aranges - 0x00000070 0x90 ./Core/Src/main.o + 0x000000d0 0x40 ./Core/Src/pwm.o .debug_aranges - 0x00000100 0x40 ./Core/Src/pwm.o + 0x00000110 0x20 ./Core/Src/stm32f4xx_hal_msp.o .debug_aranges - 0x00000140 0x20 ./Core/Src/stm32f4xx_hal_msp.o + 0x00000130 0xc8 ./Core/Src/stm32f4xx_it.o .debug_aranges - 0x00000160 0xc8 ./Core/Src/stm32f4xx_it.o + 0x000001f8 0x28 ./Core/Src/system_stm32f4xx.o .debug_aranges - 0x00000228 0x28 ./Core/Src/system_stm32f4xx.o + 0x00000220 0x50 ./Core/Src/tim.o .debug_aranges - 0x00000250 0x50 ./Core/Src/tim.o + 0x00000270 0x48 ./Core/Src/usart.o .debug_aranges - 0x000002a0 0x48 ./Core/Src/usart.o + 0x000002b8 0x28 ./Core/Startup/startup_stm32f446retx.o .debug_aranges - 0x000002e8 0x28 ./Core/Startup/startup_stm32f446retx.o + 0x000002e0 0xf0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o .debug_aranges - 0x00000310 0xf0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x000003d0 0x130 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .debug_aranges - 0x00000400 0x130 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x00000500 0x90 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o .debug_aranges - 0x00000530 0x90 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x00000590 0x58 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o .debug_aranges - 0x000005c0 0x58 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x000005e8 0x148 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o .debug_aranges - 0x00000618 0x2a8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + 0x00000730 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o .debug_aranges - 0x000008c0 0x148 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x00000778 0x88 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o .debug_aranges - 0x00000a08 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + 0x00000800 0x78 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o .debug_aranges - 0x00000a50 0x88 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x00000878 0x3d0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .debug_aranges - 0x00000ad8 0x78 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x00000c48 0x168 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o .debug_aranges - 0x00000b50 0x3d0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x00000db0 0x208 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .debug_aranges - 0x00000f20 0x168 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + 0x00000fb8 0x1a0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o .debug_aranges - 0x00001088 0x208 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x00001158 0x68 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .debug_aranges - 0x00001290 0x1a0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x000011c0 0xd8 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o .debug_aranges - 0x00001430 0x68 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x00001298 0x90 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .debug_aranges - 0x00001498 0xd8 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x00001328 0x50 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o .debug_aranges - 0x00001570 0x90 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x00001378 0x20 ./USB_DEVICE/App/usb_device.o .debug_aranges - 0x00001600 0x50 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x00001398 0x68 ./USB_DEVICE/App/usbd_desc.o .debug_aranges - 0x00001650 0x20 ./USB_DEVICE/App/usb_device.o - .debug_aranges - 0x00001670 0x68 ./USB_DEVICE/App/usbd_desc.o - .debug_aranges - 0x000016d8 0x118 ./USB_DEVICE/Target/usbd_conf.o + 0x00001400 0x118 ./USB_DEVICE/Target/usbd_conf.o .debug_rnglists - 0x00000000 0x1291 + 0x00000000 0x1036 .debug_rnglists 0x00000000 0x14 ./Core/Src/dma.o .debug_rnglists 0x00000014 0x14 ./Core/Src/gpio.o .debug_rnglists - 0x00000028 0x20 ./Core/Src/i2c.o + 0x00000028 0x71 ./Core/Src/main.o .debug_rnglists - 0x00000048 0x70 ./Core/Src/main.o + 0x00000099 0x2b ./Core/Src/pwm.o .debug_rnglists - 0x000000b8 0x2b ./Core/Src/pwm.o + 0x000000c4 0x13 ./Core/Src/stm32f4xx_hal_msp.o .debug_rnglists - 0x000000e3 0x13 ./Core/Src/stm32f4xx_hal_msp.o + 0x000000d7 0x91 ./Core/Src/stm32f4xx_it.o .debug_rnglists - 0x000000f6 0x91 ./Core/Src/stm32f4xx_it.o + 0x00000168 0x1a ./Core/Src/system_stm32f4xx.o .debug_rnglists - 0x00000187 0x1a ./Core/Src/system_stm32f4xx.o + 0x00000182 0x3a ./Core/Src/tim.o .debug_rnglists - 0x000001a1 0x3a ./Core/Src/tim.o + 0x000001bc 0x33 ./Core/Src/usart.o .debug_rnglists - 0x000001db 0x33 ./Core/Src/usart.o + 0x000001ef 0x19 ./Core/Startup/startup_stm32f446retx.o .debug_rnglists - 0x0000020e 0x19 ./Core/Startup/startup_stm32f446retx.o + 0x00000208 0xaf ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o .debug_rnglists - 0x00000227 0xaf ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x000002b7 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .debug_rnglists - 0x000002d6 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x00000397 0x70 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o .debug_rnglists - 0x000003b6 0x70 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x00000407 0x3f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o .debug_rnglists - 0x00000426 0x3f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x00000446 0xfa ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o .debug_rnglists - 0x00000465 0x23c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + 0x00000540 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o .debug_rnglists - 0x000006a1 0xfa ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x00000572 0x66 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o .debug_rnglists - 0x0000079b 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + 0x000005d8 0x5e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o .debug_rnglists - 0x000007cd 0x66 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x00000636 0x31a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .debug_rnglists - 0x00000833 0x5e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x00000950 0x125 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o .debug_rnglists - 0x00000891 0x31a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x00000a75 0x1bc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .debug_rnglists - 0x00000bab 0x125 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + 0x00000c31 0x147 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o .debug_rnglists - 0x00000cd0 0x1bc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x00000d78 0x4c ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .debug_rnglists - 0x00000e8c 0x147 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x00000dc4 0xa1 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o .debug_rnglists - 0x00000fd3 0x4c ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x00000e65 0x6e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .debug_rnglists - 0x0000101f 0xa1 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x00000ed3 0x37 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o .debug_rnglists - 0x000010c0 0x6e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x00000f0a 0x13 ./USB_DEVICE/App/usb_device.o .debug_rnglists - 0x0000112e 0x37 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x00000f1d 0x49 ./USB_DEVICE/App/usbd_desc.o .debug_rnglists - 0x00001165 0x13 ./USB_DEVICE/App/usb_device.o - .debug_rnglists - 0x00001178 0x49 ./USB_DEVICE/App/usbd_desc.o - .debug_rnglists - 0x000011c1 0xd0 ./USB_DEVICE/Target/usbd_conf.o + 0x00000f66 0xd0 ./USB_DEVICE/Target/usbd_conf.o -.debug_macro 0x00000000 0x262b3 +.debug_macro 0x00000000 0x25e36 .debug_macro 0x00000000 0x224 ./Core/Src/dma.o .debug_macro 0x00000224 0xad8 ./Core/Src/dma.o .debug_macro 0x00000cfc 0x2a7 ./Core/Src/dma.o @@ -7023,141 +7028,134 @@ LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext .debug_macro 0x0001ffe2 0x126 ./Core/Src/dma.o .debug_macro 0x00020108 0x304 ./Core/Src/dma.o .debug_macro 0x0002040c 0x224 ./Core/Src/gpio.o - .debug_macro 0x00020630 0x224 ./Core/Src/i2c.o - .debug_macro 0x00020854 0x444 ./Core/Src/main.o - .debug_macro 0x00020c98 0x61 ./Core/Src/main.o - .debug_macro 0x00020cf9 0x2a ./Core/Src/main.o - .debug_macro 0x00020d23 0x43 ./Core/Src/main.o - .debug_macro 0x00020d66 0x34 ./Core/Src/main.o - .debug_macro 0x00020d9a 0x16 ./Core/Src/main.o - .debug_macro 0x00020db0 0x3c ./Core/Src/main.o - .debug_macro 0x00020dec 0x370 ./Core/Src/main.o - .debug_macro 0x0002115c 0x10 ./Core/Src/main.o - .debug_macro 0x0002116c 0x16 ./Core/Src/main.o - .debug_macro 0x00021182 0x4a ./Core/Src/main.o - .debug_macro 0x000211cc 0x34 ./Core/Src/main.o - .debug_macro 0x00021200 0x10 ./Core/Src/main.o - .debug_macro 0x00021210 0x58 ./Core/Src/main.o - .debug_macro 0x00021268 0x8e ./Core/Src/main.o - .debug_macro 0x000212f6 0x1c ./Core/Src/main.o - .debug_macro 0x00021312 0x185 ./Core/Src/main.o - .debug_macro 0x00021497 0x16 ./Core/Src/main.o - .debug_macro 0x000214ad 0x16 ./Core/Src/main.o - .debug_macro 0x000214c3 0x146 ./Core/Src/main.o - .debug_macro 0x00021609 0x16 ./Core/Src/main.o - .debug_macro 0x0002161f 0x16 ./Core/Src/main.o - .debug_macro 0x00021635 0x29 ./Core/Src/main.o - .debug_macro 0x0002165e 0x16 ./Core/Src/main.o - .debug_macro 0x00021674 0x20 ./Core/Src/main.o - .debug_macro 0x00021694 0x6b ./Core/Src/main.o - .debug_macro 0x000216ff 0x20f ./Core/Src/main.o - .debug_macro 0x0002190e 0x5f ./Core/Src/main.o - .debug_macro 0x0002196d 0x22e ./Core/Src/pwm.o - .debug_macro 0x00021b9b 0x21a ./Core/Src/stm32f4xx_hal_msp.o - .debug_macro 0x00021db5 0x224 ./Core/Src/stm32f4xx_it.o - .debug_macro 0x00021fd9 0x20b ./Core/Src/system_stm32f4xx.o - .debug_macro 0x000221e4 0x224 ./Core/Src/tim.o - .debug_macro 0x00022408 0x224 ./Core/Src/usart.o - .debug_macro 0x0002262c 0x26b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_macro 0x00022897 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_macro 0x00022aa2 0x211 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_macro 0x00022cb3 0x211 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_macro 0x00022ec4 0x259 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o - .debug_macro 0x0002311d 0x217 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - .debug_macro 0x00023334 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - .debug_macro 0x0002353f 0x22f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_macro 0x0002376e 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_macro 0x00023979 0x20c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_macro 0x00023b85 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_macro 0x00023d90 0x20c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - .debug_macro 0x00023f9c 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - .debug_macro 0x000241a7 0x3a9 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - .debug_macro 0x00024550 0x9e ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - .debug_macro 0x000245ee 0x112 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - .debug_macro 0x00024700 0x56 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - .debug_macro 0x00024756 0x390 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - .debug_macro 0x00024ae6 0x215 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - .debug_macro 0x00024cfb 0x39a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - .debug_macro 0x00025095 0x396 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - .debug_macro 0x0002542b 0x3c0 ./USB_DEVICE/App/usb_device.o - .debug_macro 0x000257eb 0x30a ./USB_DEVICE/App/usb_device.o - .debug_macro 0x00025af5 0x22 ./USB_DEVICE/App/usb_device.o - .debug_macro 0x00025b17 0x3d3 ./USB_DEVICE/App/usbd_desc.o - .debug_macro 0x00025eea 0x1c ./USB_DEVICE/App/usbd_desc.o - .debug_macro 0x00025f06 0x3ad ./USB_DEVICE/Target/usbd_conf.o + .debug_macro 0x00020630 0x444 ./Core/Src/main.o + .debug_macro 0x00020a74 0x61 ./Core/Src/main.o + .debug_macro 0x00020ad5 0x2a ./Core/Src/main.o + .debug_macro 0x00020aff 0x43 ./Core/Src/main.o + .debug_macro 0x00020b42 0x34 ./Core/Src/main.o + .debug_macro 0x00020b76 0x16 ./Core/Src/main.o + .debug_macro 0x00020b8c 0x3c ./Core/Src/main.o + .debug_macro 0x00020bc8 0x370 ./Core/Src/main.o + .debug_macro 0x00020f38 0x10 ./Core/Src/main.o + .debug_macro 0x00020f48 0x16 ./Core/Src/main.o + .debug_macro 0x00020f5e 0x4a ./Core/Src/main.o + .debug_macro 0x00020fa8 0x34 ./Core/Src/main.o + .debug_macro 0x00020fdc 0x10 ./Core/Src/main.o + .debug_macro 0x00020fec 0x58 ./Core/Src/main.o + .debug_macro 0x00021044 0x8e ./Core/Src/main.o + .debug_macro 0x000210d2 0x1c ./Core/Src/main.o + .debug_macro 0x000210ee 0x185 ./Core/Src/main.o + .debug_macro 0x00021273 0x16 ./Core/Src/main.o + .debug_macro 0x00021289 0x16 ./Core/Src/main.o + .debug_macro 0x0002129f 0x146 ./Core/Src/main.o + .debug_macro 0x000213e5 0x16 ./Core/Src/main.o + .debug_macro 0x000213fb 0x16 ./Core/Src/main.o + .debug_macro 0x00021411 0x29 ./Core/Src/main.o + .debug_macro 0x0002143a 0x16 ./Core/Src/main.o + .debug_macro 0x00021450 0x20 ./Core/Src/main.o + .debug_macro 0x00021470 0x6b ./Core/Src/main.o + .debug_macro 0x000214db 0x20f ./Core/Src/main.o + .debug_macro 0x000216ea 0x5f ./Core/Src/main.o + .debug_macro 0x00021749 0x22e ./Core/Src/pwm.o + .debug_macro 0x00021977 0x21a ./Core/Src/stm32f4xx_hal_msp.o + .debug_macro 0x00021b91 0x224 ./Core/Src/stm32f4xx_it.o + .debug_macro 0x00021db5 0x20b ./Core/Src/system_stm32f4xx.o + .debug_macro 0x00021fc0 0x224 ./Core/Src/tim.o + .debug_macro 0x000221e4 0x224 ./Core/Src/usart.o + .debug_macro 0x00022408 0x26b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_macro 0x00022673 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_macro 0x0002287e 0x211 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_macro 0x00022a8f 0x211 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_macro 0x00022ca0 0x217 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + .debug_macro 0x00022eb7 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + .debug_macro 0x000230c2 0x22f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_macro 0x000232f1 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_macro 0x000234fc 0x20c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_macro 0x00023708 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_macro 0x00023913 0x20c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_macro 0x00023b1f 0x20b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + .debug_macro 0x00023d2a 0x3a9 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + .debug_macro 0x000240d3 0x9e ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + .debug_macro 0x00024171 0x112 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + .debug_macro 0x00024283 0x56 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + .debug_macro 0x000242d9 0x390 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + .debug_macro 0x00024669 0x215 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + .debug_macro 0x0002487e 0x39a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + .debug_macro 0x00024c18 0x396 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + .debug_macro 0x00024fae 0x3c0 ./USB_DEVICE/App/usb_device.o + .debug_macro 0x0002536e 0x30a ./USB_DEVICE/App/usb_device.o + .debug_macro 0x00025678 0x22 ./USB_DEVICE/App/usb_device.o + .debug_macro 0x0002569a 0x3d3 ./USB_DEVICE/App/usbd_desc.o + .debug_macro 0x00025a6d 0x1c ./USB_DEVICE/App/usbd_desc.o + .debug_macro 0x00025a89 0x3ad ./USB_DEVICE/Target/usbd_conf.o -.debug_line 0x00000000 0x203fa +.debug_line 0x00000000 0x1bf3a .debug_line 0x00000000 0x7c9 ./Core/Src/dma.o - .debug_line 0x000007c9 0x7fe ./Core/Src/gpio.o - .debug_line 0x00000fc7 0x82c ./Core/Src/i2c.o - .debug_line 0x000017f3 0xf8b ./Core/Src/main.o - .debug_line 0x0000277e 0x85f ./Core/Src/pwm.o - .debug_line 0x00002fdd 0x7be ./Core/Src/stm32f4xx_hal_msp.o - .debug_line 0x0000379b 0x9a5 ./Core/Src/stm32f4xx_it.o - .debug_line 0x00004140 0x834 ./Core/Src/system_stm32f4xx.o - .debug_line 0x00004974 0x91b ./Core/Src/tim.o - .debug_line 0x0000528f 0xaf5 ./Core/Src/usart.o - .debug_line 0x00005d84 0x7a ./Core/Startup/startup_stm32f446retx.o - .debug_line 0x00005dfe 0xab0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_line 0x000068ae 0xd80 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_line 0x0000762e 0x101c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_line 0x0000864a 0xbf4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_line 0x0000923e 0x3b5d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o - .debug_line 0x0000cd9b 0x152b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - .debug_line 0x0000e2c6 0x8d0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - .debug_line 0x0000eb96 0xecb ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_line 0x0000fa61 0x157c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_line 0x00010fdd 0x3825 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_line 0x00014802 0x1a10 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_line 0x00016212 0x25f8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - .debug_line 0x0001880a 0x1dd2 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - .debug_line 0x0001a5dc 0xceb ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - .debug_line 0x0001b2c7 0xfd5 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - .debug_line 0x0001c29c 0x11b4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - .debug_line 0x0001d450 0xadc ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - .debug_line 0x0001df2c 0xa83 ./USB_DEVICE/App/usb_device.o - .debug_line 0x0001e9af 0xb66 ./USB_DEVICE/App/usbd_desc.o - .debug_line 0x0001f515 0xee5 ./USB_DEVICE/Target/usbd_conf.o + .debug_line 0x000007c9 0x75b ./Core/Src/gpio.o + .debug_line 0x00000f24 0xef7 ./Core/Src/main.o + .debug_line 0x00001e1b 0x85f ./Core/Src/pwm.o + .debug_line 0x0000267a 0x7be ./Core/Src/stm32f4xx_hal_msp.o + .debug_line 0x00002e38 0x9a5 ./Core/Src/stm32f4xx_it.o + .debug_line 0x000037dd 0x834 ./Core/Src/system_stm32f4xx.o + .debug_line 0x00004011 0x91b ./Core/Src/tim.o + .debug_line 0x0000492c 0xaf5 ./Core/Src/usart.o + .debug_line 0x00005421 0x7a ./Core/Startup/startup_stm32f446retx.o + .debug_line 0x0000549b 0xab0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_line 0x00005f4b 0xd80 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_line 0x00006ccb 0x101c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_line 0x00007ce7 0xbf4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_line 0x000088db 0x152b ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + .debug_line 0x00009e06 0x8d0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + .debug_line 0x0000a6d6 0xecb ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_line 0x0000b5a1 0x157c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_line 0x0000cb1d 0x3825 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_line 0x00010342 0x1a10 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_line 0x00011d52 0x25f8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_line 0x0001434a 0x1dd2 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + .debug_line 0x0001611c 0xceb ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + .debug_line 0x00016e07 0xfd5 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + .debug_line 0x00017ddc 0x11b4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + .debug_line 0x00018f90 0xadc ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + .debug_line 0x00019a6c 0xa83 ./USB_DEVICE/App/usb_device.o + .debug_line 0x0001a4ef 0xb66 ./USB_DEVICE/App/usbd_desc.o + .debug_line 0x0001b055 0xee5 ./USB_DEVICE/Target/usbd_conf.o -.debug_str 0x00000000 0xd8080 - .debug_str 0x00000000 0xd8080 ./Core/Src/dma.o +.debug_str 0x00000000 0xd7344 + .debug_str 0x00000000 0xd7344 ./Core/Src/dma.o 0xcd1a9 (size before relaxing) - .debug_str 0x000d8080 0xccd16 ./Core/Src/gpio.o - .debug_str 0x000d8080 0xcd24a ./Core/Src/i2c.o - .debug_str 0x000d8080 0xd23cb ./Core/Src/main.o - .debug_str 0x000d8080 0xcd19f ./Core/Src/pwm.o - .debug_str 0x000d8080 0xccc4b ./Core/Src/stm32f4xx_hal_msp.o - .debug_str 0x000d8080 0xcd5d1 ./Core/Src/stm32f4xx_it.o - .debug_str 0x000d8080 0xcc633 ./Core/Src/system_stm32f4xx.o - .debug_str 0x000d8080 0xcd4ab ./Core/Src/tim.o - .debug_str 0x000d8080 0xcd81d ./Core/Src/usart.o - .debug_str 0x000d8080 0x92 ./Core/Startup/startup_stm32f446retx.o - .debug_str 0x000d8080 0xcd1f8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_str 0x000d8080 0xccf4f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_str 0x000d8080 0xcca28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_str 0x000d8080 0xcc7ae ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_str 0x000d8080 0xcd631 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o - .debug_str 0x000d8080 0xcd144 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - .debug_str 0x000d8080 0xcca46 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - .debug_str 0x000d8080 0xcca6c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_str 0x000d8080 0xcca9f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_str 0x000d8080 0xcd998 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_str 0x000d8080 0xcd1a4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_str 0x000d8080 0xcd023 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - .debug_str 0x000d8080 0xcd000 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - .debug_str 0x000d8080 0xd1769 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - .debug_str 0x000d8080 0xd16d2 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - .debug_str 0x000d8080 0xd14fd ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - .debug_str 0x000d8080 0xd13d2 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - .debug_str 0x000d8080 0xd1567 ./USB_DEVICE/App/usb_device.o - .debug_str 0x000d8080 0xd12e6 ./USB_DEVICE/App/usbd_desc.o - .debug_str 0x000d8080 0xd2733 ./USB_DEVICE/Target/usbd_conf.o + .debug_str 0x000d7344 0xccd01 ./Core/Src/gpio.o + .debug_str 0x000d7344 0xd23b1 ./Core/Src/main.o + .debug_str 0x000d7344 0xcd19f ./Core/Src/pwm.o + .debug_str 0x000d7344 0xccc4b ./Core/Src/stm32f4xx_hal_msp.o + .debug_str 0x000d7344 0xcd5d1 ./Core/Src/stm32f4xx_it.o + .debug_str 0x000d7344 0xcc633 ./Core/Src/system_stm32f4xx.o + .debug_str 0x000d7344 0xcd4ab ./Core/Src/tim.o + .debug_str 0x000d7344 0xcd81d ./Core/Src/usart.o + .debug_str 0x000d7344 0x92 ./Core/Startup/startup_stm32f446retx.o + .debug_str 0x000d7344 0xcd1f8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_str 0x000d7344 0xccf4f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_str 0x000d7344 0xcca28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_str 0x000d7344 0xcc7ae ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_str 0x000d7344 0xcd144 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + .debug_str 0x000d7344 0xcca46 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + .debug_str 0x000d7344 0xcca6c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_str 0x000d7344 0xcca9f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_str 0x000d7344 0xcd998 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_str 0x000d7344 0xcd1a4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_str 0x000d7344 0xcd023 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_str 0x000d7344 0xcd000 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + .debug_str 0x000d7344 0xd1769 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + .debug_str 0x000d7344 0xd16d2 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + .debug_str 0x000d7344 0xd14fd ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + .debug_str 0x000d7344 0xd13d2 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + .debug_str 0x000d7344 0xd1567 ./USB_DEVICE/App/usb_device.o + .debug_str 0x000d7344 0xd12e6 ./USB_DEVICE/App/usbd_desc.o + .debug_str 0x000d7344 0xd2733 ./USB_DEVICE/Target/usbd_conf.o .comment 0x00000000 0x43 .comment 0x00000000 0x43 ./Core/Src/dma.o 0x44 (size before relaxing) .comment 0x00000043 0x44 ./Core/Src/gpio.o - .comment 0x00000043 0x44 ./Core/Src/i2c.o .comment 0x00000043 0x44 ./Core/Src/main.o .comment 0x00000043 0x44 ./Core/Src/pwm.o .comment 0x00000043 0x44 ./Core/Src/stm32f4xx_hal_msp.o @@ -7169,7 +7167,6 @@ LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext .comment 0x00000043 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .comment 0x00000043 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o .comment 0x00000043 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .comment 0x00000043 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o .comment 0x00000043 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o .comment 0x00000043 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o .comment 0x00000043 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o @@ -7186,42 +7183,40 @@ LOAD C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.ext .comment 0x00000043 0x44 ./USB_DEVICE/App/usbd_desc.o .comment 0x00000043 0x44 ./USB_DEVICE/Target/usbd_conf.o -.debug_frame 0x00000000 0x645c +.debug_frame 0x00000000 0x5764 .debug_frame 0x00000000 0x34 ./Core/Src/dma.o .debug_frame 0x00000034 0x34 ./Core/Src/gpio.o - .debug_frame 0x00000068 0x74 ./Core/Src/i2c.o - .debug_frame 0x000000dc 0x224 ./Core/Src/main.o - .debug_frame 0x00000300 0xb8 ./Core/Src/pwm.o - .debug_frame 0x000003b8 0x38 ./Core/Src/stm32f4xx_hal_msp.o - .debug_frame 0x000003f0 0x270 ./Core/Src/stm32f4xx_it.o - .debug_frame 0x00000660 0x58 ./Core/Src/system_stm32f4xx.o - .debug_frame 0x000006b8 0x114 ./Core/Src/tim.o - .debug_frame 0x000007cc 0xcc ./Core/Src/usart.o - .debug_frame 0x00000898 0x374 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_frame 0x00000c0c 0x508 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_frame 0x00001114 0x250 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_frame 0x00001364 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_frame 0x000014b0 0xc84 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o - .debug_frame 0x00002134 0x5b8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - .debug_frame 0x000026ec 0x100 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - .debug_frame 0x000027ec 0x1f4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_frame 0x000029e0 0x1e8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_frame 0x00002bc8 0x11c0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_frame 0x00003d88 0x638 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_frame 0x000043c0 0x954 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - .debug_frame 0x00004d14 0x7c0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - .debug_frame 0x000054d4 0x184 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - .debug_frame 0x00005658 0x390 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - .debug_frame 0x000059e8 0x23c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - .debug_frame 0x00005c24 0x10c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - .debug_frame 0x00005d30 0x2c ./USB_DEVICE/App/usb_device.o - .debug_frame 0x00005d5c 0x188 ./USB_DEVICE/App/usbd_desc.o - .debug_frame 0x00005ee4 0x4a4 ./USB_DEVICE/Target/usbd_conf.o - .debug_frame 0x00006388 0x20 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) - .debug_frame 0x000063a8 0x2c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/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) - .debug_frame 0x000063d4 0x28 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard\libc_nano.a(libc_a-memcpy-stub.o) - .debug_frame 0x000063fc 0x2c C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_aeabi_uldivmod.o) - .debug_frame 0x00006428 0x34 C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/thumb/v7e-m+fp/hard\libgcc.a(_udivmoddi4.o) + .debug_frame 0x00000068 0x224 ./Core/Src/main.o + .debug_frame 0x0000028c 0xb8 ./Core/Src/pwm.o + .debug_frame 0x00000344 0x38 ./Core/Src/stm32f4xx_hal_msp.o + .debug_frame 0x0000037c 0x270 ./Core/Src/stm32f4xx_it.o + .debug_frame 0x000005ec 0x58 ./Core/Src/system_stm32f4xx.o + .debug_frame 0x00000644 0x114 ./Core/Src/tim.o + .debug_frame 0x00000758 0xcc ./Core/Src/usart.o + .debug_frame 0x00000824 0x374 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_frame 0x00000b98 0x508 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_frame 0x000010a0 0x250 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_frame 0x000012f0 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_frame 0x0000143c 0x5b8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + .debug_frame 0x000019f4 0x100 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + .debug_frame 0x00001af4 0x1f4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_frame 0x00001ce8 0x1e8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_frame 0x00001ed0 0x11c0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_frame 0x00003090 0x638 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_frame 0x000036c8 0x954 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_frame 0x0000401c 0x7c0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + .debug_frame 0x000047dc 0x184 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + .debug_frame 0x00004960 0x390 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + .debug_frame 0x00004cf0 0x23c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + .debug_frame 0x00004f2c 0x10c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + .debug_frame 0x00005038 0x2c ./USB_DEVICE/App/usb_device.o + .debug_frame 0x00005064 0x188 ./USB_DEVICE/App/usbd_desc.o + .debug_frame 0x000051ec 0x4a4 ./USB_DEVICE/Target/usbd_conf.o + .debug_frame 0x00005690 0x20 /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) + .debug_frame 0x000056b0 0x2c /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) + .debug_frame 0x000056dc 0x28 /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-memcpy-stub.o) + .debug_frame 0x00005704 0x2c /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(_aeabi_uldivmod.o) + .debug_frame 0x00005730 0x34 /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) .debug_line_str 0x00000000 0x76 diff --git a/firmware/67percent/Debug/Core/Src/gpio.o b/firmware/67percent/Debug/Core/Src/gpio.o index a1b32b9e..370d8492 100644 Binary files a/firmware/67percent/Debug/Core/Src/gpio.o and b/firmware/67percent/Debug/Core/Src/gpio.o differ diff --git a/firmware/67percent/Debug/Core/Src/main.cyclo b/firmware/67percent/Debug/Core/Src/main.cyclo index 99974502..e0a2a89b 100644 --- a/firmware/67percent/Debug/Core/Src/main.cyclo +++ b/firmware/67percent/Debug/Core/Src/main.cyclo @@ -1,15 +1,15 @@ ../Core/Src/main.c:70:6:pq_init 1 ../Core/Src/main.c:77:6:pq_push 2 ../Core/Src/main.c:87:6:pq_pop 2 -../Core/Src/main.c:211:5:main 7 -../Core/Src/main.c:335:6:mergeChild 7 -../Core/Src/main.c:364:6:SystemClock_Config 3 -../Core/Src/main.c:408:6:HAL_UART_RxCpltCallback 5 -../Core/Src/main.c:427:6:HAL_UART_ErrorCallback 5 -../Core/Src/main.c:445:6:findBestParent 4 -../Core/Src/main.c:466:6:handleUARTMessages 14 -../Core/Src/main.c:525:6:addUSBReport 3 -../Core/Src/main.c:533:6:matrixScan 5 -../Core/Src/main.c:555:6:encoderProcess 9 -../Core/Src/main.c:579:6:resetReport 1 -../Core/Src/main.c:589:6:Error_Handler 1 +../Core/Src/main.c:218:5:main 7 +../Core/Src/main.c:341:6:mergeChild 7 +../Core/Src/main.c:370:6:SystemClock_Config 3 +../Core/Src/main.c:414:6:HAL_UART_RxCpltCallback 5 +../Core/Src/main.c:433:6:HAL_UART_ErrorCallback 5 +../Core/Src/main.c:451:6:findBestParent 4 +../Core/Src/main.c:472:6:handleUARTMessages 14 +../Core/Src/main.c:531:6:addUSBReport 5 +../Core/Src/main.c:547:6:matrixScan 5 +../Core/Src/main.c:569:6:encoderProcess 9 +../Core/Src/main.c:593:6:resetReport 1 +../Core/Src/main.c:604:6:Error_Handler 1 diff --git a/firmware/67percent/Debug/Core/Src/main.o b/firmware/67percent/Debug/Core/Src/main.o index 4fe0dad9..2a9654c2 100644 Binary files a/firmware/67percent/Debug/Core/Src/main.o and b/firmware/67percent/Debug/Core/Src/main.o differ diff --git a/firmware/67percent/Debug/Core/Src/main.su b/firmware/67percent/Debug/Core/Src/main.su index 813ffcc5..bb720fb6 100644 --- a/firmware/67percent/Debug/Core/Src/main.su +++ b/firmware/67percent/Debug/Core/Src/main.su @@ -1,15 +1,15 @@ ../Core/Src/main.c:70:6:pq_init 16 static ../Core/Src/main.c:77:6:pq_push 24 static ../Core/Src/main.c:87:6:pq_pop 16 static -../Core/Src/main.c:211:5:main 40 static -../Core/Src/main.c:335:6:mergeChild 40 static -../Core/Src/main.c:364:6:SystemClock_Config 88 static -../Core/Src/main.c:408:6:HAL_UART_RxCpltCallback 16 static -../Core/Src/main.c:427:6:HAL_UART_ErrorCallback 16 static -../Core/Src/main.c:445:6:findBestParent 24 static -../Core/Src/main.c:466:6:handleUARTMessages 56 static -../Core/Src/main.c:525:6:addUSBReport 24 static -../Core/Src/main.c:533:6:matrixScan 16 static -../Core/Src/main.c:555:6:encoderProcess 32 static -../Core/Src/main.c:579:6:resetReport 8 static -../Core/Src/main.c:589:6:Error_Handler 4 static,ignoring_inline_asm +../Core/Src/main.c:218:5:main 40 static +../Core/Src/main.c:341:6:mergeChild 40 static +../Core/Src/main.c:370:6:SystemClock_Config 88 static +../Core/Src/main.c:414:6:HAL_UART_RxCpltCallback 16 static +../Core/Src/main.c:433:6:HAL_UART_ErrorCallback 16 static +../Core/Src/main.c:451:6:findBestParent 24 static +../Core/Src/main.c:472:6:handleUARTMessages 56 static +../Core/Src/main.c:531:6:addUSBReport 24 static +../Core/Src/main.c:547:6:matrixScan 16 static +../Core/Src/main.c:569:6:encoderProcess 32 static +../Core/Src/main.c:593:6:resetReport 8 static +../Core/Src/main.c:604:6:Error_Handler 4 static,ignoring_inline_asm diff --git a/firmware/67percent/Debug/makefile b/firmware/67percent/Debug/makefile index b6840d6e..2f9a3311 100644 --- a/firmware/67percent/Debug/makefile +++ b/firmware/67percent/Debug/makefile @@ -64,8 +64,8 @@ all: main-build main-build: 67.elf secondary-outputs # Tool invocations -67.elf 67.map: $(OBJS) $(USER_OBJS) C:\Users\Adron\OneDrive\Documents\GitHub\modular-kbd\firmware\67percent\STM32F446RETX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS) - arm-none-eabi-gcc -o "67.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m4 -T"C:\Users\Adron\OneDrive\Documents\GitHub\modular-kbd\firmware\67percent\STM32F446RETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="67.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group +67.elf 67.map: $(OBJS) $(USER_OBJS) /home/ukim/Projects/modular-kbd/firmware/67percent/STM32F446RETX_FLASH.ld makefile objects.list $(OPTIONAL_TOOL_DEPS) + arm-none-eabi-gcc -o "67.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m4 -T"/home/ukim/Projects/modular-kbd/firmware/67percent/STM32F446RETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="67.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group @echo 'Finished building target: $@' @echo ' ' diff --git a/firmware/numpad/Core/Src/main.c b/firmware/numpad/Core/Src/main.c index aa84e2fe..6ffd2226 100644 --- a/firmware/numpad/Core/Src/main.c +++ b/firmware/numpad/Core/Src/main.c @@ -279,7 +279,7 @@ int main(void) resetReport(); matrixScan(); mergeChild(); - //encoderProcess(); + encoderProcess(); if(KEYSTATE_CHANGED_FLAG == 1){ UARTMessage UARTREPORT; UARTREPORT.DEPTH = DEPTH; @@ -318,7 +318,7 @@ int main(void) resetReport(); matrixScan();//Something related to this making the key stick. Likely due to race conditions mergeChild(); - //encoderProcess(); + encoderProcess(); USBD_HID_SendReport(&hUsbDeviceFS, (uint8_t*)&REPORT, sizeof(REPORT)); break; @@ -326,7 +326,7 @@ int main(void) break; } RGBProcess(); - HAL_Delay(20); + HAL_Delay(1); /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ @@ -598,14 +598,14 @@ void encoderProcess(void){ if(steps > 10) steps = 10; // cap bursts for(int i = 0; i < steps; i++){ // CW -> KEYCODES[0][0] - addUSBReport(KEYCODES[0][0]); + addUSBReport(KEY_RIGHT_ARROW); } }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]); + addUSBReport(KEY_LEFT_ARROW); } } LAST_ENCODER_COUNT = cnt; diff --git a/firmware/numpad/Debug/Core/Src/main.o b/firmware/numpad/Debug/Core/Src/main.o index b12ae533..5cabc5da 100644 Binary files a/firmware/numpad/Debug/Core/Src/main.o and b/firmware/numpad/Debug/Core/Src/main.o differ diff --git a/firmware/numpad/Debug/numpad.elf b/firmware/numpad/Debug/numpad.elf index 985f7720..f7f9ae46 100755 Binary files a/firmware/numpad/Debug/numpad.elf and b/firmware/numpad/Debug/numpad.elf differ diff --git a/firmware/numpad/Debug/numpad.list b/firmware/numpad/Debug/numpad.list index ba142909..1e5f2ef3 100644 --- a/firmware/numpad/Debug/numpad.list +++ b/firmware/numpad/Debug/numpad.list @@ -5,25 +5,25 @@ 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 0000b5d0 080001c4 080001c4 000011c4 2**2 + 1 .text 0000b688 080001c4 080001c4 000011c4 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE - 2 .rodata 0000005c 0800b794 0800b794 0000c794 2**2 + 2 .rodata 0000005c 0800b84c 0800b84c 0000c84c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 3 .ARM.extab 00000000 0800b7f0 0800b7f0 0000d1a0 2**0 + 3 .ARM.extab 00000000 0800b8a8 0800b8a8 0000d1a0 2**0 CONTENTS, READONLY - 4 .ARM 00000008 0800b7f0 0800b7f0 0000c7f0 2**2 + 4 .ARM 00000008 0800b8a8 0800b8a8 0000c8a8 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 5 .preinit_array 00000000 0800b7f8 0800b7f8 0000d1a0 2**0 + 5 .preinit_array 00000000 0800b8b0 0800b8b0 0000d1a0 2**0 CONTENTS, ALLOC, LOAD, DATA - 6 .init_array 00000004 0800b7f8 0800b7f8 0000c7f8 2**2 + 6 .init_array 00000004 0800b8b0 0800b8b0 0000c8b0 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 7 .fini_array 00000004 0800b7fc 0800b7fc 0000c7fc 2**2 + 7 .fini_array 00000004 0800b8b4 0800b8b4 0000c8b4 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA - 8 .data 000001a0 20000000 0800b800 0000d000 2**2 + 8 .data 000001a0 20000000 0800b8b8 0000d000 2**2 CONTENTS, ALLOC, LOAD, DATA - 9 .bss 0000173c 200001a0 0800b9a0 0000d1a0 2**2 + 9 .bss 0000173c 200001a0 0800ba58 0000d1a0 2**2 ALLOC - 10 ._user_heap_stack 00000604 200018dc 0800b9a0 0000d8dc 2**0 + 10 ._user_heap_stack 00000604 200018dc 0800ba58 0000d8dc 2**0 ALLOC 11 .ARM.attributes 00000030 00000000 00000000 0000d1a0 2**0 CONTENTS, READONLY @@ -37,11 +37,11 @@ Idx Name Size VMA LMA File off Algn CONTENTS, READONLY, DEBUGGING, OCTETS 16 .debug_macro 0002609f 00000000 00000000 0002f457 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 17 .debug_line 0001e97c 00000000 00000000 000554f6 2**0 + 17 .debug_line 0001e97e 00000000 00000000 000554f6 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 18 .debug_str 000d80c4 00000000 00000000 00073e72 2**0 + 18 .debug_str 000d80c4 00000000 00000000 00073e74 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS - 19 .comment 00000043 00000000 00000000 0014bf36 2**0 + 19 .comment 00000043 00000000 00000000 0014bf38 2**0 CONTENTS, READONLY 20 .debug_frame 00006430 00000000 00000000 0014bf7c 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS @@ -64,7 +64,7 @@ Disassembly of section .text: 80001da: bd10 pop {r4, pc} 80001dc: 200001a0 .word 0x200001a0 80001e0: 00000000 .word 0x00000000 - 80001e4: 0800b77c .word 0x0800b77c + 80001e4: 0800b834 .word 0x0800b834 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: 0800b77c .word 0x0800b77c + 8000200: 0800b834 .word 0x0800b834 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 fdb1 bl 80020da + 8000574: f001 fe0d bl 8002192 HAL_NVIC_EnableIRQ(DMA1_Stream0_IRQn); 8000578: 200b movs r0, #11 - 800057a: f001 fdca bl 8002112 + 800057a: f001 fe26 bl 80021ca /* 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 fda9 bl 80020da + 8000584: f001 fe05 bl 8002192 HAL_NVIC_EnableIRQ(DMA1_Stream2_IRQn); 8000588: 200d movs r0, #13 - 800058a: f001 fdc2 bl 8002112 + 800058a: f001 fe1e bl 80021ca /* 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 fda1 bl 80020da + 8000594: f001 fdfd bl 8002192 HAL_NVIC_EnableIRQ(DMA1_Stream4_IRQn); 8000598: 200f movs r0, #15 - 800059a: f001 fdba bl 8002112 + 800059a: f001 fe16 bl 80021ca /* 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 fd99 bl 80020da + 80005a4: f001 fdf5 bl 8002192 HAL_NVIC_EnableIRQ(DMA1_Stream5_IRQn); 80005a8: 2010 movs r0, #16 - 80005aa: f001 fdb2 bl 8002112 + 80005aa: f001 fe0e bl 80021ca /* 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 fd91 bl 80020da + 80005b4: f001 fded bl 8002192 HAL_NVIC_EnableIRQ(DMA1_Stream6_IRQn); 80005b8: 2011 movs r0, #17 - 80005ba: f001 fdaa bl 8002112 + 80005ba: f001 fe06 bl 80021ca /* 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 fd89 bl 80020da + 80005c4: f001 fde5 bl 8002192 HAL_NVIC_EnableIRQ(DMA1_Stream7_IRQn); 80005c8: 202f movs r0, #47 @ 0x2f - 80005ca: f001 fda2 bl 8002112 + 80005ca: f001 fdfe bl 80021ca /* 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 fd81 bl 80020da + 80005d4: f001 fddd bl 8002192 HAL_NVIC_EnableIRQ(DMA2_Stream2_IRQn); 80005d8: 203a movs r0, #58 @ 0x3a - 80005da: f001 fd9a bl 8002112 + 80005da: f001 fdf6 bl 80021ca /* 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 fd79 bl 80020da + 80005e4: f001 fdd5 bl 8002192 HAL_NVIC_EnableIRQ(DMA2_Stream7_IRQn); 80005e8: 2046 movs r0, #70 @ 0x46 - 80005ea: f001 fd92 bl 8002112 + 80005ea: f001 fdee bl 80021ca } 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 fafd bl 8002ca4 + 80006a6: f002 fb59 bl 8002d5c /*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 faf7 bl 8002ca4 + 80006b2: f002 fb53 bl 8002d5c /*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: f002 f93f bl 800294c + 80006ca: f002 f99b bl 8002a04 /*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: f002 f932 bl 800294c + 80006e4: f002 f98e bl 8002a04 /*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: f002 f923 bl 800294c + 8000702: f002 f97f bl 8002a04 /*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: f002 f914 bl 800294c + 8000720: f002 f970 bl 8002a04 } 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 faad bl 8002cd8 + 800077a: f002 fb09 bl 8002d90 800077e: 4603 mov r3, r0 8000780: 2b00 cmp r3, #0 8000782: d001 beq.n 8000788 { Error_Handler(); - 8000784: f000 fd86 bl 8001294 + 8000784: f000 fde2 bl 800134c } /* 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: f002 f8ab bl 800294c + 80007f2: f002 f907 bl 8002a04 /* I2C1 clock enable */ __HAL_RCC_I2C1_CLK_ENABLE(); @@ -910,7 +910,7 @@ bool pq_push(PacketQueue *q, const uint8_t packet[PACKET_SIZE]){ 80008a0: 220c movs r2, #12 80008a2: 6839 ldr r1, [r7, #0] 80008a4: 4618 mov r0, r3 - 80008a6: f00a ff5b bl 800b760 + 80008a6: f00a ffb7 bl 800b818 q->tail = nextTail; 80008aa: 687b ldr r3, [r7, #4] 80008ac: 7bfa ldrb r2, [r7, #15] @@ -958,7 +958,7 @@ bool pq_pop(PacketQueue *q, uint8_t out_packet[PACKET_SIZE]){ 80008f4: 220c movs r2, #12 80008f6: 4619 mov r1, r3 80008f8: 6838 ldr r0, [r7, #0] - 80008fa: f00a ff31 bl 800b760 + 80008fa: f00a ff8d bl 800b818 q->head = (q->head + 1) % QUEUE_CAPACITY; 80008fe: 687b ldr r3, [r7, #4] 8000900: f893 3180 ldrb.w r3, [r3, #384] @ 0x180 @@ -996,14 +996,14 @@ int main(void) /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); - 800092e: f001 fa63 bl 8001df8 + 800092e: f001 fabf bl 8001eb0 /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); - 8000932: f000 f9ff bl 8000d34 + 8000932: f000 fa03 bl 8000d3c /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ @@ -1014,75 +1014,75 @@ int main(void) MX_DMA_Init(); 800093a: f7ff fdf9 bl 8000530 MX_TIM2_Init(); - 800093e: f000 fd9b bl 8001478 + 800093e: f000 fdf7 bl 8001530 MX_TIM3_Init(); - 8000942: f000 fdf1 bl 8001528 + 8000942: f000 fe4d bl 80015e0 MX_UART4_Init(); - 8000946: f000 fec3 bl 80016d0 + 8000946: f000 ff1f bl 8001788 MX_UART5_Init(); - 800094a: f000 feeb bl 8001724 + 800094a: f000 ff47 bl 80017dc MX_USART1_UART_Init(); - 800094e: f000 ff13 bl 8001778 + 800094e: f000 ff6f bl 8001830 MX_USART2_UART_Init(); - 8000952: f000 ff3b bl 80017cc + 8000952: f000 ff97 bl 8001884 MX_I2C1_Init(); 8000956: f7ff fef1 bl 800073c MX_USB_DEVICE_Init(); - 800095a: f00a fa27 bl 800adac + 800095a: f00a fa83 bl 800ae64 /* USER CODE BEGIN 2 */ //Enable UART RX DMA for all ports HAL_UART_Receive_DMA(&huart1, (uint8_t*)&RX1Msg, sizeof(UARTMessage)); 800095e: 2210 movs r2, #16 - 8000960: 4954 ldr r1, [pc, #336] @ (8000ab4 ) - 8000962: 4855 ldr r0, [pc, #340] @ (8000ab8 ) - 8000964: f006 f828 bl 80069b8 + 8000960: 4956 ldr r1, [pc, #344] @ (8000abc ) + 8000962: 4857 ldr r0, [pc, #348] @ (8000ac0 ) + 8000964: f006 f884 bl 8006a70 HAL_UART_Receive_DMA(&huart2, (uint8_t*)&RX2Msg, sizeof(UARTMessage)); 8000968: 2210 movs r2, #16 - 800096a: 4954 ldr r1, [pc, #336] @ (8000abc ) - 800096c: 4854 ldr r0, [pc, #336] @ (8000ac0 ) - 800096e: f006 f823 bl 80069b8 + 800096a: 4956 ldr r1, [pc, #344] @ (8000ac4 ) + 800096c: 4856 ldr r0, [pc, #344] @ (8000ac8 ) + 800096e: f006 f87f bl 8006a70 HAL_UART_Receive_DMA(&huart4, (uint8_t*)&RX4Msg, sizeof(UARTMessage)); 8000972: 2210 movs r2, #16 - 8000974: 4953 ldr r1, [pc, #332] @ (8000ac4 ) - 8000976: 4854 ldr r0, [pc, #336] @ (8000ac8 ) - 8000978: f006 f81e bl 80069b8 + 8000974: 4955 ldr r1, [pc, #340] @ (8000acc ) + 8000976: 4856 ldr r0, [pc, #344] @ (8000ad0 ) + 8000978: f006 f87a bl 8006a70 HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); 800097c: 2210 movs r2, #16 - 800097e: 4953 ldr r1, [pc, #332] @ (8000acc ) - 8000980: 4853 ldr r0, [pc, #332] @ (8000ad0 ) - 8000982: f006 f819 bl 80069b8 + 800097e: 4955 ldr r1, [pc, #340] @ (8000ad4 ) + 8000980: 4855 ldr r0, [pc, #340] @ (8000ad8 ) + 8000982: f006 f875 bl 8006a70 // Start TIM3 encoder (PA6/PA7) so we can read encoder delta HAL_TIM_Encoder_Start(&htim3, TIM_CHANNEL_ALL); 8000986: 213c movs r1, #60 @ 0x3c - 8000988: 4852 ldr r0, [pc, #328] @ (8000ad4 ) - 800098a: f005 fa1b bl 8005dc4 + 8000988: 4854 ldr r0, [pc, #336] @ (8000adc ) + 800098a: f005 fa77 bl 8005e7c LAST_ENCODER_COUNT = __HAL_TIM_GET_COUNTER(&htim3); - 800098e: 4b51 ldr r3, [pc, #324] @ (8000ad4 ) + 800098e: 4b53 ldr r3, [pc, #332] @ (8000adc ) 8000990: 681b ldr r3, [r3, #0] 8000992: 6a5b ldr r3, [r3, #36] @ 0x24 8000994: 461a mov r2, r3 - 8000996: 4b50 ldr r3, [pc, #320] @ (8000ad8 ) + 8000996: 4b52 ldr r3, [pc, #328] @ (8000ae0 ) 8000998: 601a str r2, [r3, #0] //Prealloc Kestate matrix memset(KEYSTATE, 0, sizeof(KEYSTATE)); 800099a: 221e movs r2, #30 800099c: 2100 movs r1, #0 - 800099e: 484f ldr r0, [pc, #316] @ (8000adc ) - 80009a0: f00a feb2 bl 800b708 + 800099e: 4851 ldr r0, [pc, #324] @ (8000ae4 ) + 80009a0: f00a ff0e bl 800b7c0 pq_init(&huart1q); - 80009a4: 484e ldr r0, [pc, #312] @ (8000ae0 ) + 80009a4: 4850 ldr r0, [pc, #320] @ (8000ae8 ) 80009a6: f7ff ff3f bl 8000828 pq_init(&huart2q); - 80009aa: 484e ldr r0, [pc, #312] @ (8000ae4 ) + 80009aa: 4850 ldr r0, [pc, #320] @ (8000aec ) 80009ac: f7ff ff3c bl 8000828 pq_init(&huart4q); - 80009b0: 484d ldr r0, [pc, #308] @ (8000ae8 ) + 80009b0: 484f ldr r0, [pc, #316] @ (8000af0 ) 80009b2: f7ff ff39 bl 8000828 pq_init(&huart5q); - 80009b6: 484d ldr r0, [pc, #308] @ (8000aec ) + 80009b6: 484f ldr r0, [pc, #316] @ (8000af4 ) 80009b8: f7ff ff36 bl 8000828 /* Infinite loop */ @@ -1090,29516 +1090,29626 @@ int main(void) while (1) { switch (MODE){ - 80009bc: 4b4c ldr r3, [pc, #304] @ (8000af0 ) + 80009bc: 4b4e ldr r3, [pc, #312] @ (8000af8 ) 80009be: 781b ldrb r3, [r3, #0] 80009c0: b2db uxtb r3, r3 80009c2: 2b02 cmp r3, #2 80009c4: d006 beq.n 80009d4 80009c6: 2b02 cmp r3, #2 - 80009c8: dc6a bgt.n 8000aa0 + 80009c8: dc6e bgt.n 8000aa8 80009ca: 2b00 cmp r3, #0 - 80009cc: d025 beq.n 8000a1a + 80009cc: d027 beq.n 8000a1e 80009ce: 2b01 cmp r3, #1 - 80009d0: d05a beq.n 8000a88 - //encoderProcess(); + 80009d0: d05c beq.n 8000a8c + encoderProcess(); USBD_HID_SendReport(&hUsbDeviceFS, (uint8_t*)&REPORT, sizeof(REPORT)); break; default: break; - 80009d2: e065 b.n 8000aa0 + 80009d2: e069 b.n 8000aa8 KEYSTATE_CHANGED_FLAG = 1; - 80009d4: 4b47 ldr r3, [pc, #284] @ (8000af4 ) + 80009d4: 4b49 ldr r3, [pc, #292] @ (8000afc ) 80009d6: 2201 movs r2, #1 80009d8: 701a strb r2, [r3, #0] resetReport(); - 80009da: f000 fc4f bl 800127c + 80009da: f000 fcab bl 8001334 matrixScan(); - 80009de: f000 fbd5 bl 800118c + 80009de: f000 fbd9 bl 8001194 mergeChild(); - 80009e2: f000 f923 bl 8000c2c + 80009e2: f000 f927 bl 8000c34 + encoderProcess(); + 80009e6: f000 fc4d bl 8001284 if(KEYSTATE_CHANGED_FLAG == 1){ - 80009e6: 4b43 ldr r3, [pc, #268] @ (8000af4 ) - 80009e8: 781b ldrb r3, [r3, #0] - 80009ea: 2b01 cmp r3, #1 - 80009ec: d15a bne.n 8000aa4 + 80009ea: 4b44 ldr r3, [pc, #272] @ (8000afc ) + 80009ec: 781b ldrb r3, [r3, #0] + 80009ee: 2b01 cmp r3, #1 + 80009f0: d15c bne.n 8000aac UARTREPORT.DEPTH = DEPTH; - 80009ee: 4b42 ldr r3, [pc, #264] @ (8000af8 ) - 80009f0: 881b ldrh r3, [r3, #0] - 80009f2: 823b strh r3, [r7, #16] + 80009f2: 4b43 ldr r3, [pc, #268] @ (8000b00 ) + 80009f4: 881b ldrh r3, [r3, #0] + 80009f6: 823b strh r3, [r7, #16] UARTREPORT.TYPE = 0xEE; - 80009f4: 23ee movs r3, #238 @ 0xee - 80009f6: 827b strh r3, [r7, #18] + 80009f8: 23ee movs r3, #238 @ 0xee + 80009fa: 827b strh r3, [r7, #18] memcpy(UARTREPORT.KEYPRESS, REPORT.KEYPRESS, sizeof(UARTREPORT.KEYPRESS)); - 80009f8: 4a40 ldr r2, [pc, #256] @ (8000afc ) - 80009fa: f107 0314 add.w r3, r7, #20 - 80009fe: 3202 adds r2, #2 - 8000a00: 6810 ldr r0, [r2, #0] - 8000a02: 6851 ldr r1, [r2, #4] - 8000a04: 6892 ldr r2, [r2, #8] - 8000a06: c307 stmia r3!, {r0, r1, r2} + 80009fc: 4a41 ldr r2, [pc, #260] @ (8000b04 ) + 80009fe: f107 0314 add.w r3, r7, #20 + 8000a02: 3202 adds r2, #2 + 8000a04: 6810 ldr r0, [r2, #0] + 8000a06: 6851 ldr r1, [r2, #4] + 8000a08: 6892 ldr r2, [r2, #8] + 8000a0a: c307 stmia r3!, {r0, r1, r2} HAL_UART_Transmit_DMA(PARENT, (uint8_t*)&UARTREPORT, sizeof(UARTREPORT)); - 8000a08: 4b3d ldr r3, [pc, #244] @ (8000b00 ) - 8000a0a: 681b ldr r3, [r3, #0] - 8000a0c: f107 0110 add.w r1, r7, #16 - 8000a10: 2210 movs r2, #16 - 8000a12: 4618 mov r0, r3 - 8000a14: f005 ff54 bl 80068c0 + 8000a0c: 4b3e ldr r3, [pc, #248] @ (8000b08 ) + 8000a0e: 681b ldr r3, [r3, #0] + 8000a10: f107 0110 add.w r1, r7, #16 + 8000a14: 2210 movs r2, #16 + 8000a16: 4618 mov r0, r3 + 8000a18: f005 ffae bl 8006978 break; - 8000a18: e044 b.n 8000aa4 + 8000a1c: e046 b.n 8000aac if(hUsbDeviceFS.dev_state == USBD_STATE_CONFIGURED){ - 8000a1a: 4b3a ldr r3, [pc, #232] @ (8000b04 ) - 8000a1c: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8000a20: b2db uxtb r3, r3 - 8000a22: 2b03 cmp r3, #3 - 8000a24: d106 bne.n 8000a34 + 8000a1e: 4b3b ldr r3, [pc, #236] @ (8000b0c ) + 8000a20: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8000a24: b2db uxtb r3, r3 + 8000a26: 2b03 cmp r3, #3 + 8000a28: d106 bne.n 8000a38 MODE = MODE_MAINBOARD; - 8000a26: 4b32 ldr r3, [pc, #200] @ (8000af0 ) - 8000a28: 2201 movs r2, #1 - 8000a2a: 701a strb r2, [r3, #0] + 8000a2a: 4b33 ldr r3, [pc, #204] @ (8000af8 ) + 8000a2c: 2201 movs r2, #1 + 8000a2e: 701a strb r2, [r3, #0] DEPTH = 0; - 8000a2c: 4b32 ldr r3, [pc, #200] @ (8000af8 ) - 8000a2e: 2200 movs r2, #0 - 8000a30: 801a strh r2, [r3, #0] + 8000a30: 4b33 ldr r3, [pc, #204] @ (8000b00 ) + 8000a32: 2200 movs r2, #0 + 8000a34: 801a strh r2, [r3, #0] break; - 8000a32: e038 b.n 8000aa6 + 8000a36: e03a b.n 8000aae REQ.DEPTH = 0; - 8000a34: 2300 movs r3, #0 - 8000a36: 803b strh r3, [r7, #0] + 8000a38: 2300 movs r3, #0 + 8000a3a: 803b strh r3, [r7, #0] REQ.TYPE = 0xFF; //Message code for request is 0xFF - 8000a38: 23ff movs r3, #255 @ 0xff - 8000a3a: 807b strh r3, [r7, #2] + 8000a3c: 23ff movs r3, #255 @ 0xff + 8000a3e: 807b strh r3, [r7, #2] memset(REQ.KEYPRESS, 0, sizeof(REQ.KEYPRESS)); - 8000a3c: 463b mov r3, r7 - 8000a3e: 3304 adds r3, #4 - 8000a40: 220c movs r2, #12 - 8000a42: 2100 movs r1, #0 - 8000a44: 4618 mov r0, r3 - 8000a46: f00a fe5f bl 800b708 + 8000a40: 463b mov r3, r7 + 8000a42: 3304 adds r3, #4 + 8000a44: 220c movs r2, #12 + 8000a46: 2100 movs r1, #0 + 8000a48: 4618 mov r0, r3 + 8000a4a: f00a feb9 bl 800b7c0 HAL_UART_Transmit_DMA(&huart1, (uint8_t*)&REQ, sizeof(REQ)); - 8000a4a: 463b mov r3, r7 - 8000a4c: 2210 movs r2, #16 - 8000a4e: 4619 mov r1, r3 - 8000a50: 4819 ldr r0, [pc, #100] @ (8000ab8 ) - 8000a52: f005 ff35 bl 80068c0 + 8000a4e: 463b mov r3, r7 + 8000a50: 2210 movs r2, #16 + 8000a52: 4619 mov r1, r3 + 8000a54: 481a ldr r0, [pc, #104] @ (8000ac0 ) + 8000a56: f005 ff8f bl 8006978 HAL_UART_Transmit_DMA(&huart2, (uint8_t*)&REQ, sizeof(REQ)); - 8000a56: 463b mov r3, r7 - 8000a58: 2210 movs r2, #16 - 8000a5a: 4619 mov r1, r3 - 8000a5c: 4818 ldr r0, [pc, #96] @ (8000ac0 ) - 8000a5e: f005 ff2f bl 80068c0 + 8000a5a: 463b mov r3, r7 + 8000a5c: 2210 movs r2, #16 + 8000a5e: 4619 mov r1, r3 + 8000a60: 4819 ldr r0, [pc, #100] @ (8000ac8 ) + 8000a62: f005 ff89 bl 8006978 HAL_UART_Transmit_DMA(&huart4, (uint8_t*)&REQ, sizeof(REQ)); - 8000a62: 463b mov r3, r7 - 8000a64: 2210 movs r2, #16 - 8000a66: 4619 mov r1, r3 - 8000a68: 4817 ldr r0, [pc, #92] @ (8000ac8 ) - 8000a6a: f005 ff29 bl 80068c0 + 8000a66: 463b mov r3, r7 + 8000a68: 2210 movs r2, #16 + 8000a6a: 4619 mov r1, r3 + 8000a6c: 4818 ldr r0, [pc, #96] @ (8000ad0 ) + 8000a6e: f005 ff83 bl 8006978 HAL_UART_Transmit_DMA(&huart5, (uint8_t*)&REQ, sizeof(REQ)); - 8000a6e: 463b mov r3, r7 - 8000a70: 2210 movs r2, #16 - 8000a72: 4619 mov r1, r3 - 8000a74: 4816 ldr r0, [pc, #88] @ (8000ad0 ) - 8000a76: f005 ff23 bl 80068c0 + 8000a72: 463b mov r3, r7 + 8000a74: 2210 movs r2, #16 + 8000a76: 4619 mov r1, r3 + 8000a78: 4817 ldr r0, [pc, #92] @ (8000ad8 ) + 8000a7a: f005 ff7d bl 8006978 HAL_Delay(500); - 8000a7a: f44f 70fa mov.w r0, #500 @ 0x1f4 - 8000a7e: f001 fa2d bl 8001edc + 8000a7e: f44f 70fa mov.w r0, #500 @ 0x1f4 + 8000a82: f001 fa87 bl 8001f94 findBestParent(); //So true... - 8000a82: f000 fa6b bl 8000f5c + 8000a86: f000 fa6d bl 8000f64 break; - 8000a86: e00e b.n 8000aa6 + 8000a8a: e010 b.n 8000aae resetReport(); - 8000a88: f000 fbf8 bl 800127c + 8000a8c: f000 fc52 bl 8001334 matrixScan();//Something related to this making the key stick. Likely due to race conditions - 8000a8c: f000 fb7e bl 800118c + 8000a90: f000 fb80 bl 8001194 mergeChild(); - 8000a90: f000 f8cc bl 8000c2c + 8000a94: f000 f8ce bl 8000c34 + encoderProcess(); + 8000a98: f000 fbf4 bl 8001284 USBD_HID_SendReport(&hUsbDeviceFS, (uint8_t*)&REPORT, sizeof(REPORT)); - 8000a94: 220e movs r2, #14 - 8000a96: 4919 ldr r1, [pc, #100] @ (8000afc ) - 8000a98: 481a ldr r0, [pc, #104] @ (8000b04 ) - 8000a9a: f008 fdbb bl 8009614 + 8000a9c: 220e movs r2, #14 + 8000a9e: 4919 ldr r1, [pc, #100] @ (8000b04 ) + 8000aa0: 481a ldr r0, [pc, #104] @ (8000b0c ) + 8000aa2: f008 fe13 bl 80096cc break; - 8000a9e: e002 b.n 8000aa6 + 8000aa6: e002 b.n 8000aae break; - 8000aa0: bf00 nop - 8000aa2: e000 b.n 8000aa6 + 8000aa8: bf00 nop + 8000aaa: e000 b.n 8000aae break; - 8000aa4: bf00 nop + 8000aac: bf00 nop } RGBProcess(); - 8000aa6: f000 f82f bl 8000b08 - HAL_Delay(20); - 8000aaa: 2014 movs r0, #20 - 8000aac: f001 fa16 bl 8001edc + 8000aae: f000 f82f bl 8000b10 + HAL_Delay(1); + 8000ab2: 2001 movs r0, #1 + 8000ab4: f001 fa6e bl 8001f94 switch (MODE){ - 8000ab0: e784 b.n 80009bc - 8000ab2: bf00 nop - 8000ab4: 200003b0 .word 0x200003b0 - 8000ab8: 20000b70 .word 0x20000b70 - 8000abc: 200003c0 .word 0x200003c0 - 8000ac0: 20000bb8 .word 0x20000bb8 - 8000ac4: 200003d0 .word 0x200003d0 - 8000ac8: 20000ae0 .word 0x20000ae0 - 8000acc: 200003a0 .word 0x200003a0 - 8000ad0: 20000b28 .word 0x20000b28 - 8000ad4: 20000a98 .word 0x20000a98 - 8000ad8: 2000040c .word 0x2000040c - 8000adc: 200003ec .word 0x200003ec - 8000ae0: 20000440 .word 0x20000440 - 8000ae4: 200005c4 .word 0x200005c4 - 8000ae8: 20000748 .word 0x20000748 - 8000aec: 200008cc .word 0x200008cc - 8000af0: 2000040a .word 0x2000040a - 8000af4: 200003e8 .word 0x200003e8 - 8000af8: 200003e0 .word 0x200003e0 - 8000afc: 20000390 .word 0x20000390 - 8000b00: 200003e4 .word 0x200003e4 - 8000b04: 20000f08 .word 0x20000f08 + 8000ab8: e780 b.n 80009bc + 8000aba: bf00 nop + 8000abc: 200003b0 .word 0x200003b0 + 8000ac0: 20000b70 .word 0x20000b70 + 8000ac4: 200003c0 .word 0x200003c0 + 8000ac8: 20000bb8 .word 0x20000bb8 + 8000acc: 200003d0 .word 0x200003d0 + 8000ad0: 20000ae0 .word 0x20000ae0 + 8000ad4: 200003a0 .word 0x200003a0 + 8000ad8: 20000b28 .word 0x20000b28 + 8000adc: 20000a98 .word 0x20000a98 + 8000ae0: 2000040c .word 0x2000040c + 8000ae4: 200003ec .word 0x200003ec + 8000ae8: 20000440 .word 0x20000440 + 8000aec: 200005c4 .word 0x200005c4 + 8000af0: 20000748 .word 0x20000748 + 8000af4: 200008cc .word 0x200008cc + 8000af8: 2000040a .word 0x2000040a + 8000afc: 200003e8 .word 0x200003e8 + 8000b00: 200003e0 .word 0x200003e0 + 8000b04: 20000390 .word 0x20000390 + 8000b08: 200003e4 .word 0x200003e4 + 8000b0c: 20000f08 .word 0x20000f08 -08000b08 : +08000b10 : /* USER CODE BEGIN 3 */ } /* USER CODE END 3 */ } void RGBProcess(){ - 8000b08: b580 push {r7, lr} - 8000b0a: b082 sub sp, #8 - 8000b0c: af00 add r7, sp, #0 + 8000b10: b580 push {r7, lr} + 8000b12: b082 sub sp, #8 + 8000b14: af00 add r7, sp, #0 uint8_t red = 255; - 8000b0e: 23ff movs r3, #255 @ 0xff - 8000b10: 71fb strb r3, [r7, #7] + 8000b16: 23ff movs r3, #255 @ 0xff + 8000b18: 71fb strb r3, [r7, #7] uint8_t blue = 256/2; - 8000b12: 2380 movs r3, #128 @ 0x80 - 8000b14: 71bb strb r3, [r7, #6] + 8000b1a: 2380 movs r3, #128 @ 0x80 + 8000b1c: 71bb strb r3, [r7, #6] uint8_t green = 0; - 8000b16: 2300 movs r3, #0 - 8000b18: 717b strb r3, [r7, #5] + 8000b1e: 2300 movs r3, #0 + 8000b20: 717b strb r3, [r7, #5] for(int i = 0; i < LED_COUNT; i++){ - 8000b1a: 2300 movs r3, #0 - 8000b1c: 603b str r3, [r7, #0] - 8000b1e: e011 b.n 8000b44 + 8000b22: 2300 movs r3, #0 + 8000b24: 603b str r3, [r7, #0] + 8000b26: e011 b.n 8000b4c setRGBcolor(i, red, blue, green); - 8000b20: 797b ldrb r3, [r7, #5] - 8000b22: 79ba ldrb r2, [r7, #6] - 8000b24: 79f9 ldrb r1, [r7, #7] - 8000b26: 6838 ldr r0, [r7, #0] - 8000b28: f000 f816 bl 8000b58 + 8000b28: 797b ldrb r3, [r7, #5] + 8000b2a: 79ba ldrb r2, [r7, #6] + 8000b2c: 79f9 ldrb r1, [r7, #7] + 8000b2e: 6838 ldr r0, [r7, #0] + 8000b30: f000 f816 bl 8000b60 red += 10; - 8000b2c: 79fb ldrb r3, [r7, #7] - 8000b2e: 330a adds r3, #10 - 8000b30: 71fb strb r3, [r7, #7] + 8000b34: 79fb ldrb r3, [r7, #7] + 8000b36: 330a adds r3, #10 + 8000b38: 71fb strb r3, [r7, #7] blue+= 10; - 8000b32: 79bb ldrb r3, [r7, #6] - 8000b34: 330a adds r3, #10 - 8000b36: 71bb strb r3, [r7, #6] + 8000b3a: 79bb ldrb r3, [r7, #6] + 8000b3c: 330a adds r3, #10 + 8000b3e: 71bb strb r3, [r7, #6] green += 10; - 8000b38: 797b ldrb r3, [r7, #5] - 8000b3a: 330a adds r3, #10 - 8000b3c: 717b strb r3, [r7, #5] + 8000b40: 797b ldrb r3, [r7, #5] + 8000b42: 330a adds r3, #10 + 8000b44: 717b strb r3, [r7, #5] for(int i = 0; i < LED_COUNT; i++){ - 8000b3e: 683b ldr r3, [r7, #0] - 8000b40: 3301 adds r3, #1 - 8000b42: 603b str r3, [r7, #0] - 8000b44: 683b ldr r3, [r7, #0] - 8000b46: 2b07 cmp r3, #7 - 8000b48: ddea ble.n 8000b20 + 8000b46: 683b ldr r3, [r7, #0] + 8000b48: 3301 adds r3, #1 + 8000b4a: 603b str r3, [r7, #0] + 8000b4c: 683b ldr r3, [r7, #0] + 8000b4e: 2b07 cmp r3, #7 + 8000b50: ddea ble.n 8000b28 } sendRGBcolor(); - 8000b4a: f000 f861 bl 8000c10 + 8000b52: f000 f861 bl 8000c18 } - 8000b4e: bf00 nop - 8000b50: 3708 adds r7, #8 - 8000b52: 46bd mov sp, r7 - 8000b54: bd80 pop {r7, pc} + 8000b56: bf00 nop + 8000b58: 3708 adds r7, #8 + 8000b5a: 46bd mov sp, r7 + 8000b5c: bd80 pop {r7, pc} ... -08000b58 : +08000b60 : //Sets each bit in the buffer that is going to get sent thru PWM DMA void setRGBcolor(int index, uint8_t r, uint8_t g, uint8_t b) { - 8000b58: b480 push {r7} - 8000b5a: b087 sub sp, #28 - 8000b5c: af00 add r7, sp, #0 - 8000b5e: 6078 str r0, [r7, #4] - 8000b60: 4608 mov r0, r1 - 8000b62: 4611 mov r1, r2 - 8000b64: 461a mov r2, r3 - 8000b66: 4603 mov r3, r0 - 8000b68: 70fb strb r3, [r7, #3] - 8000b6a: 460b mov r3, r1 - 8000b6c: 70bb strb r3, [r7, #2] - 8000b6e: 4613 mov r3, r2 - 8000b70: 707b strb r3, [r7, #1] + 8000b60: b480 push {r7} + 8000b62: b087 sub sp, #28 + 8000b64: af00 add r7, sp, #0 + 8000b66: 6078 str r0, [r7, #4] + 8000b68: 4608 mov r0, r1 + 8000b6a: 4611 mov r1, r2 + 8000b6c: 461a mov r2, r3 + 8000b6e: 4603 mov r3, r0 + 8000b70: 70fb strb r3, [r7, #3] + 8000b72: 460b mov r3, r1 + 8000b74: 70bb strb r3, [r7, #2] + 8000b76: 4613 mov r3, r2 + 8000b78: 707b strb r3, [r7, #1] uint8_t colors[3] = {g, r, b}; - 8000b72: 78bb ldrb r3, [r7, #2] - 8000b74: 733b strb r3, [r7, #12] - 8000b76: 78fb ldrb r3, [r7, #3] - 8000b78: 737b strb r3, [r7, #13] - 8000b7a: 787b ldrb r3, [r7, #1] - 8000b7c: 73bb strb r3, [r7, #14] + 8000b7a: 78bb ldrb r3, [r7, #2] + 8000b7c: 733b strb r3, [r7, #12] + 8000b7e: 78fb ldrb r3, [r7, #3] + 8000b80: 737b strb r3, [r7, #13] + 8000b82: 787b ldrb r3, [r7, #1] + 8000b84: 73bb strb r3, [r7, #14] for (int c = 0; c < 3; c++) { - 8000b7e: 2300 movs r3, #0 - 8000b80: 617b str r3, [r7, #20] - 8000b82: e039 b.n 8000bf8 + 8000b86: 2300 movs r3, #0 + 8000b88: 617b str r3, [r7, #20] + 8000b8a: e039 b.n 8000c00 for (int bit = 0; bit < 8; bit++) { - 8000b84: 2300 movs r3, #0 - 8000b86: 613b str r3, [r7, #16] - 8000b88: e030 b.n 8000bec + 8000b8c: 2300 movs r3, #0 + 8000b8e: 613b str r3, [r7, #16] + 8000b90: e030 b.n 8000bf4 if (colors[c] & (1 << (7 - bit))) { - 8000b8a: f107 020c add.w r2, r7, #12 - 8000b8e: 697b ldr r3, [r7, #20] - 8000b90: 4413 add r3, r2 - 8000b92: 781b ldrb r3, [r3, #0] - 8000b94: 461a mov r2, r3 - 8000b96: 693b ldr r3, [r7, #16] - 8000b98: f1c3 0307 rsb r3, r3, #7 - 8000b9c: fa42 f303 asr.w r3, r2, r3 - 8000ba0: f003 0301 and.w r3, r3, #1 - 8000ba4: 2b00 cmp r3, #0 - 8000ba6: d00f beq.n 8000bc8 + 8000b92: f107 020c add.w r2, r7, #12 + 8000b96: 697b ldr r3, [r7, #20] + 8000b98: 4413 add r3, r2 + 8000b9a: 781b ldrb r3, [r3, #0] + 8000b9c: 461a mov r2, r3 + 8000b9e: 693b ldr r3, [r7, #16] + 8000ba0: f1c3 0307 rsb r3, r3, #7 + 8000ba4: fa42 f303 asr.w r3, r2, r3 + 8000ba8: f003 0301 and.w r3, r3, #1 + 8000bac: 2b00 cmp r3, #0 + 8000bae: d00f beq.n 8000bd0 led_buffer[index * 24 + (c * 8 + bit)] = T1H; - 8000ba8: 687a ldr r2, [r7, #4] - 8000baa: 4613 mov r3, r2 - 8000bac: 005b lsls r3, r3, #1 - 8000bae: 4413 add r3, r2 - 8000bb0: 00db lsls r3, r3, #3 - 8000bb2: 4619 mov r1, r3 - 8000bb4: 697b ldr r3, [r7, #20] - 8000bb6: 00da lsls r2, r3, #3 - 8000bb8: 693b ldr r3, [r7, #16] - 8000bba: 4413 add r3, r2 - 8000bbc: 440b add r3, r1 - 8000bbe: 4a13 ldr r2, [pc, #76] @ (8000c0c ) - 8000bc0: 2104 movs r1, #4 - 8000bc2: f822 1013 strh.w r1, [r2, r3, lsl #1] - 8000bc6: e00e b.n 8000be6 + 8000bb0: 687a ldr r2, [r7, #4] + 8000bb2: 4613 mov r3, r2 + 8000bb4: 005b lsls r3, r3, #1 + 8000bb6: 4413 add r3, r2 + 8000bb8: 00db lsls r3, r3, #3 + 8000bba: 4619 mov r1, r3 + 8000bbc: 697b ldr r3, [r7, #20] + 8000bbe: 00da lsls r2, r3, #3 + 8000bc0: 693b ldr r3, [r7, #16] + 8000bc2: 4413 add r3, r2 + 8000bc4: 440b add r3, r1 + 8000bc6: 4a13 ldr r2, [pc, #76] @ (8000c14 ) + 8000bc8: 2104 movs r1, #4 + 8000bca: f822 1013 strh.w r1, [r2, r3, lsl #1] + 8000bce: e00e b.n 8000bee } else { led_buffer[index * 24 + (c * 8 + bit)] = T0H; - 8000bc8: 687a ldr r2, [r7, #4] - 8000bca: 4613 mov r3, r2 - 8000bcc: 005b lsls r3, r3, #1 - 8000bce: 4413 add r3, r2 - 8000bd0: 00db lsls r3, r3, #3 - 8000bd2: 4619 mov r1, r3 - 8000bd4: 697b ldr r3, [r7, #20] - 8000bd6: 00da lsls r2, r3, #3 - 8000bd8: 693b ldr r3, [r7, #16] - 8000bda: 4413 add r3, r2 - 8000bdc: 440b add r3, r1 - 8000bde: 4a0b ldr r2, [pc, #44] @ (8000c0c ) - 8000be0: 2103 movs r1, #3 - 8000be2: f822 1013 strh.w r1, [r2, r3, lsl #1] + 8000bd0: 687a ldr r2, [r7, #4] + 8000bd2: 4613 mov r3, r2 + 8000bd4: 005b lsls r3, r3, #1 + 8000bd6: 4413 add r3, r2 + 8000bd8: 00db lsls r3, r3, #3 + 8000bda: 4619 mov r1, r3 + 8000bdc: 697b ldr r3, [r7, #20] + 8000bde: 00da lsls r2, r3, #3 + 8000be0: 693b ldr r3, [r7, #16] + 8000be2: 4413 add r3, r2 + 8000be4: 440b add r3, r1 + 8000be6: 4a0b ldr r2, [pc, #44] @ (8000c14 ) + 8000be8: 2103 movs r1, #3 + 8000bea: f822 1013 strh.w r1, [r2, r3, lsl #1] for (int bit = 0; bit < 8; bit++) { - 8000be6: 693b ldr r3, [r7, #16] - 8000be8: 3301 adds r3, #1 - 8000bea: 613b str r3, [r7, #16] - 8000bec: 693b ldr r3, [r7, #16] - 8000bee: 2b07 cmp r3, #7 - 8000bf0: ddcb ble.n 8000b8a + 8000bee: 693b ldr r3, [r7, #16] + 8000bf0: 3301 adds r3, #1 + 8000bf2: 613b str r3, [r7, #16] + 8000bf4: 693b ldr r3, [r7, #16] + 8000bf6: 2b07 cmp r3, #7 + 8000bf8: ddcb ble.n 8000b92 for (int c = 0; c < 3; c++) { - 8000bf2: 697b ldr r3, [r7, #20] - 8000bf4: 3301 adds r3, #1 - 8000bf6: 617b str r3, [r7, #20] - 8000bf8: 697b ldr r3, [r7, #20] - 8000bfa: 2b02 cmp r3, #2 - 8000bfc: ddc2 ble.n 8000b84 + 8000bfa: 697b ldr r3, [r7, #20] + 8000bfc: 3301 adds r3, #1 + 8000bfe: 617b str r3, [r7, #20] + 8000c00: 697b ldr r3, [r7, #20] + 8000c02: 2b02 cmp r3, #2 + 8000c04: ddc2 ble.n 8000b8c } } } } - 8000bfe: bf00 nop - 8000c00: bf00 nop - 8000c02: 371c adds r7, #28 - 8000c04: 46bd mov sp, r7 - 8000c06: f85d 7b04 ldr.w r7, [sp], #4 - 8000c0a: 4770 bx lr - 8000c0c: 20000210 .word 0x20000210 + 8000c06: bf00 nop + 8000c08: bf00 nop + 8000c0a: 371c adds r7, #28 + 8000c0c: 46bd mov sp, r7 + 8000c0e: f85d 7b04 ldr.w r7, [sp], #4 + 8000c12: 4770 bx lr + 8000c14: 20000210 .word 0x20000210 -08000c10 : +08000c18 : //Sends whats on the buffer thru DMA void sendRGBcolor(){ - 8000c10: b580 push {r7, lr} - 8000c12: af00 add r7, sp, #0 + 8000c18: b580 push {r7, lr} + 8000c1a: af00 add r7, sp, #0 HAL_TIM_PWM_Start_DMA(&htim2, TIM_CHANNEL_1,(uint32_t*)led_buffer,LED_BUFFER_SIZE); - 8000c14: 23c0 movs r3, #192 @ 0xc0 - 8000c16: 4a03 ldr r2, [pc, #12] @ (8000c24 ) - 8000c18: 2100 movs r1, #0 - 8000c1a: 4803 ldr r0, [pc, #12] @ (8000c28 ) - 8000c1c: f004 fd92 bl 8005744 + 8000c1c: 23c0 movs r3, #192 @ 0xc0 + 8000c1e: 4a03 ldr r2, [pc, #12] @ (8000c2c ) + 8000c20: 2100 movs r1, #0 + 8000c22: 4803 ldr r0, [pc, #12] @ (8000c30 ) + 8000c24: f004 fdea bl 80057fc } - 8000c20: bf00 nop - 8000c22: bd80 pop {r7, pc} - 8000c24: 20000210 .word 0x20000210 - 8000c28: 20000a50 .word 0x20000a50 + 8000c28: bf00 nop + 8000c2a: bd80 pop {r7, pc} + 8000c2c: 20000210 .word 0x20000210 + 8000c30: 20000a50 .word 0x20000a50 -08000c2c : +08000c34 : void mergeChild(){ - 8000c2c: b590 push {r4, r7, lr} - 8000c2e: b087 sub sp, #28 - 8000c30: af00 add r7, sp, #0 + 8000c34: b590 push {r4, r7, lr} + 8000c36: b087 sub sp, #28 + 8000c38: af00 add r7, sp, #0 uint8_t packet[12]; if (pq_pop(&huart1q, packet)) { - 8000c32: 1d3b adds r3, r7, #4 - 8000c34: 4619 mov r1, r3 - 8000c36: 4838 ldr r0, [pc, #224] @ (8000d18 ) - 8000c38: f7ff fe40 bl 80008bc - 8000c3c: 4603 mov r3, r0 - 8000c3e: 2b00 cmp r3, #0 - 8000c40: d008 beq.n 8000c54 + 8000c3a: 1d3b adds r3, r7, #4 + 8000c3c: 4619 mov r1, r3 + 8000c3e: 4838 ldr r0, [pc, #224] @ (8000d20 ) + 8000c40: f7ff fe3c bl 80008bc + 8000c44: 4603 mov r3, r0 + 8000c46: 2b00 cmp r3, #0 + 8000c48: d008 beq.n 8000c5c memcpy(UART_KEYSTATE[1], packet, 12); - 8000c42: 4b36 ldr r3, [pc, #216] @ (8000d1c ) - 8000c44: 330c adds r3, #12 - 8000c46: 1d3a adds r2, r7, #4 - 8000c48: ca07 ldmia r2, {r0, r1, r2} - 8000c4a: e883 0007 stmia.w r3, {r0, r1, r2} + 8000c4a: 4b36 ldr r3, [pc, #216] @ (8000d24 ) + 8000c4c: 330c adds r3, #12 + 8000c4e: 1d3a adds r2, r7, #4 + 8000c50: ca07 ldmia r2, {r0, r1, r2} + 8000c52: e883 0007 stmia.w r3, {r0, r1, r2} KEYSTATE_CHANGED_FLAG = 1; - 8000c4e: 4b34 ldr r3, [pc, #208] @ (8000d20 ) - 8000c50: 2201 movs r2, #1 - 8000c52: 701a strb r2, [r3, #0] + 8000c56: 4b34 ldr r3, [pc, #208] @ (8000d28 ) + 8000c58: 2201 movs r2, #1 + 8000c5a: 701a strb r2, [r3, #0] } if (pq_pop(&huart2q, packet)) { - 8000c54: 1d3b adds r3, r7, #4 - 8000c56: 4619 mov r1, r3 - 8000c58: 4832 ldr r0, [pc, #200] @ (8000d24 ) - 8000c5a: f7ff fe2f bl 80008bc - 8000c5e: 4603 mov r3, r0 - 8000c60: 2b00 cmp r3, #0 - 8000c62: d008 beq.n 8000c76 + 8000c5c: 1d3b adds r3, r7, #4 + 8000c5e: 4619 mov r1, r3 + 8000c60: 4832 ldr r0, [pc, #200] @ (8000d2c ) + 8000c62: f7ff fe2b bl 80008bc + 8000c66: 4603 mov r3, r0 + 8000c68: 2b00 cmp r3, #0 + 8000c6a: d008 beq.n 8000c7e memcpy(UART_KEYSTATE[2], packet, 12); - 8000c64: 4b2d ldr r3, [pc, #180] @ (8000d1c ) - 8000c66: 3318 adds r3, #24 - 8000c68: 1d3a adds r2, r7, #4 - 8000c6a: ca07 ldmia r2, {r0, r1, r2} - 8000c6c: e883 0007 stmia.w r3, {r0, r1, r2} + 8000c6c: 4b2d ldr r3, [pc, #180] @ (8000d24 ) + 8000c6e: 3318 adds r3, #24 + 8000c70: 1d3a adds r2, r7, #4 + 8000c72: ca07 ldmia r2, {r0, r1, r2} + 8000c74: e883 0007 stmia.w r3, {r0, r1, r2} KEYSTATE_CHANGED_FLAG = 1; - 8000c70: 4b2b ldr r3, [pc, #172] @ (8000d20 ) - 8000c72: 2201 movs r2, #1 - 8000c74: 701a strb r2, [r3, #0] + 8000c78: 4b2b ldr r3, [pc, #172] @ (8000d28 ) + 8000c7a: 2201 movs r2, #1 + 8000c7c: 701a strb r2, [r3, #0] } if (pq_pop(&huart4q, packet)) { - 8000c76: 1d3b adds r3, r7, #4 - 8000c78: 4619 mov r1, r3 - 8000c7a: 482b ldr r0, [pc, #172] @ (8000d28 ) - 8000c7c: f7ff fe1e bl 80008bc - 8000c80: 4603 mov r3, r0 - 8000c82: 2b00 cmp r3, #0 - 8000c84: d008 beq.n 8000c98 + 8000c7e: 1d3b adds r3, r7, #4 + 8000c80: 4619 mov r1, r3 + 8000c82: 482b ldr r0, [pc, #172] @ (8000d30 ) + 8000c84: f7ff fe1a bl 80008bc + 8000c88: 4603 mov r3, r0 + 8000c8a: 2b00 cmp r3, #0 + 8000c8c: d008 beq.n 8000ca0 memcpy(UART_KEYSTATE[3], packet, 12); - 8000c86: 4b25 ldr r3, [pc, #148] @ (8000d1c ) - 8000c88: 3324 adds r3, #36 @ 0x24 - 8000c8a: 1d3a adds r2, r7, #4 - 8000c8c: ca07 ldmia r2, {r0, r1, r2} - 8000c8e: e883 0007 stmia.w r3, {r0, r1, r2} + 8000c8e: 4b25 ldr r3, [pc, #148] @ (8000d24 ) + 8000c90: 3324 adds r3, #36 @ 0x24 + 8000c92: 1d3a adds r2, r7, #4 + 8000c94: ca07 ldmia r2, {r0, r1, r2} + 8000c96: e883 0007 stmia.w r3, {r0, r1, r2} KEYSTATE_CHANGED_FLAG = 1; - 8000c92: 4b23 ldr r3, [pc, #140] @ (8000d20 ) - 8000c94: 2201 movs r2, #1 - 8000c96: 701a strb r2, [r3, #0] + 8000c9a: 4b23 ldr r3, [pc, #140] @ (8000d28 ) + 8000c9c: 2201 movs r2, #1 + 8000c9e: 701a strb r2, [r3, #0] } if (pq_pop(&huart5q, packet)) { - 8000c98: 1d3b adds r3, r7, #4 - 8000c9a: 4619 mov r1, r3 - 8000c9c: 4823 ldr r0, [pc, #140] @ (8000d2c ) - 8000c9e: f7ff fe0d bl 80008bc - 8000ca2: 4603 mov r3, r0 - 8000ca4: 2b00 cmp r3, #0 - 8000ca6: d009 beq.n 8000cbc + 8000ca0: 1d3b adds r3, r7, #4 + 8000ca2: 4619 mov r1, r3 + 8000ca4: 4823 ldr r0, [pc, #140] @ (8000d34 ) + 8000ca6: f7ff fe09 bl 80008bc + 8000caa: 4603 mov r3, r0 + 8000cac: 2b00 cmp r3, #0 + 8000cae: d009 beq.n 8000cc4 memcpy(UART_KEYSTATE[0], packet, 12); - 8000ca8: 4b1c ldr r3, [pc, #112] @ (8000d1c ) - 8000caa: 461c mov r4, r3 - 8000cac: 1d3b adds r3, r7, #4 - 8000cae: e893 0007 ldmia.w r3, {r0, r1, r2} - 8000cb2: e884 0007 stmia.w r4, {r0, r1, r2} + 8000cb0: 4b1c ldr r3, [pc, #112] @ (8000d24 ) + 8000cb2: 461c mov r4, r3 + 8000cb4: 1d3b adds r3, r7, #4 + 8000cb6: e893 0007 ldmia.w r3, {r0, r1, r2} + 8000cba: e884 0007 stmia.w r4, {r0, r1, r2} KEYSTATE_CHANGED_FLAG = 1; - 8000cb6: 4b1a ldr r3, [pc, #104] @ (8000d20 ) - 8000cb8: 2201 movs r2, #1 - 8000cba: 701a strb r2, [r3, #0] + 8000cbe: 4b1a ldr r3, [pc, #104] @ (8000d28 ) + 8000cc0: 2201 movs r2, #1 + 8000cc2: 701a strb r2, [r3, #0] } for(int i = 0; i < 4; i++){ - 8000cbc: 2300 movs r3, #0 - 8000cbe: 617b str r3, [r7, #20] - 8000cc0: e022 b.n 8000d08 + 8000cc4: 2300 movs r3, #0 + 8000cc6: 617b str r3, [r7, #20] + 8000cc8: e022 b.n 8000d10 for(int j = 0; j < 12; j++){ - 8000cc2: 2300 movs r3, #0 - 8000cc4: 613b str r3, [r7, #16] - 8000cc6: e019 b.n 8000cfc + 8000cca: 2300 movs r3, #0 + 8000ccc: 613b str r3, [r7, #16] + 8000cce: e019 b.n 8000d04 REPORT.KEYPRESS[j] |= UART_KEYSTATE[i][j]; - 8000cc8: 4a19 ldr r2, [pc, #100] @ (8000d30 ) - 8000cca: 693b ldr r3, [r7, #16] - 8000ccc: 4413 add r3, r2 - 8000cce: 3302 adds r3, #2 - 8000cd0: 7819 ldrb r1, [r3, #0] - 8000cd2: 4812 ldr r0, [pc, #72] @ (8000d1c ) - 8000cd4: 697a ldr r2, [r7, #20] - 8000cd6: 4613 mov r3, r2 - 8000cd8: 005b lsls r3, r3, #1 - 8000cda: 4413 add r3, r2 - 8000cdc: 009b lsls r3, r3, #2 - 8000cde: 18c2 adds r2, r0, r3 - 8000ce0: 693b ldr r3, [r7, #16] + 8000cd0: 4a19 ldr r2, [pc, #100] @ (8000d38 ) + 8000cd2: 693b ldr r3, [r7, #16] + 8000cd4: 4413 add r3, r2 + 8000cd6: 3302 adds r3, #2 + 8000cd8: 7819 ldrb r1, [r3, #0] + 8000cda: 4812 ldr r0, [pc, #72] @ (8000d24 ) + 8000cdc: 697a ldr r2, [r7, #20] + 8000cde: 4613 mov r3, r2 + 8000ce0: 005b lsls r3, r3, #1 8000ce2: 4413 add r3, r2 - 8000ce4: 781b ldrb r3, [r3, #0] - 8000ce6: 430b orrs r3, r1 - 8000ce8: b2d9 uxtb r1, r3 - 8000cea: 4a11 ldr r2, [pc, #68] @ (8000d30 ) - 8000cec: 693b ldr r3, [r7, #16] - 8000cee: 4413 add r3, r2 - 8000cf0: 3302 adds r3, #2 - 8000cf2: 460a mov r2, r1 - 8000cf4: 701a strb r2, [r3, #0] + 8000ce4: 009b lsls r3, r3, #2 + 8000ce6: 18c2 adds r2, r0, r3 + 8000ce8: 693b ldr r3, [r7, #16] + 8000cea: 4413 add r3, r2 + 8000cec: 781b ldrb r3, [r3, #0] + 8000cee: 430b orrs r3, r1 + 8000cf0: b2d9 uxtb r1, r3 + 8000cf2: 4a11 ldr r2, [pc, #68] @ (8000d38 ) + 8000cf4: 693b ldr r3, [r7, #16] + 8000cf6: 4413 add r3, r2 + 8000cf8: 3302 adds r3, #2 + 8000cfa: 460a mov r2, r1 + 8000cfc: 701a strb r2, [r3, #0] for(int j = 0; j < 12; j++){ - 8000cf6: 693b ldr r3, [r7, #16] - 8000cf8: 3301 adds r3, #1 - 8000cfa: 613b str r3, [r7, #16] - 8000cfc: 693b ldr r3, [r7, #16] - 8000cfe: 2b0b cmp r3, #11 - 8000d00: dde2 ble.n 8000cc8 + 8000cfe: 693b ldr r3, [r7, #16] + 8000d00: 3301 adds r3, #1 + 8000d02: 613b str r3, [r7, #16] + 8000d04: 693b ldr r3, [r7, #16] + 8000d06: 2b0b cmp r3, #11 + 8000d08: dde2 ble.n 8000cd0 for(int i = 0; i < 4; i++){ - 8000d02: 697b ldr r3, [r7, #20] - 8000d04: 3301 adds r3, #1 - 8000d06: 617b str r3, [r7, #20] - 8000d08: 697b ldr r3, [r7, #20] - 8000d0a: 2b03 cmp r3, #3 - 8000d0c: ddd9 ble.n 8000cc2 + 8000d0a: 697b ldr r3, [r7, #20] + 8000d0c: 3301 adds r3, #1 + 8000d0e: 617b str r3, [r7, #20] + 8000d10: 697b ldr r3, [r7, #20] + 8000d12: 2b03 cmp r3, #3 + 8000d14: ddd9 ble.n 8000cca } } } - 8000d0e: bf00 nop - 8000d10: bf00 nop - 8000d12: 371c adds r7, #28 - 8000d14: 46bd mov sp, r7 - 8000d16: bd90 pop {r4, r7, pc} - 8000d18: 20000440 .word 0x20000440 - 8000d1c: 20000410 .word 0x20000410 - 8000d20: 200003e8 .word 0x200003e8 - 8000d24: 200005c4 .word 0x200005c4 - 8000d28: 20000748 .word 0x20000748 - 8000d2c: 200008cc .word 0x200008cc - 8000d30: 20000390 .word 0x20000390 + 8000d16: bf00 nop + 8000d18: bf00 nop + 8000d1a: 371c adds r7, #28 + 8000d1c: 46bd mov sp, r7 + 8000d1e: bd90 pop {r4, r7, pc} + 8000d20: 20000440 .word 0x20000440 + 8000d24: 20000410 .word 0x20000410 + 8000d28: 200003e8 .word 0x200003e8 + 8000d2c: 200005c4 .word 0x200005c4 + 8000d30: 20000748 .word 0x20000748 + 8000d34: 200008cc .word 0x200008cc + 8000d38: 20000390 .word 0x20000390 -08000d34 : +08000d3c : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { - 8000d34: b580 push {r7, lr} - 8000d36: b094 sub sp, #80 @ 0x50 - 8000d38: af00 add r7, sp, #0 + 8000d3c: b580 push {r7, lr} + 8000d3e: b094 sub sp, #80 @ 0x50 + 8000d40: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; - 8000d3a: f107 031c add.w r3, r7, #28 - 8000d3e: 2234 movs r2, #52 @ 0x34 - 8000d40: 2100 movs r1, #0 - 8000d42: 4618 mov r0, r3 - 8000d44: f00a fce0 bl 800b708 + 8000d42: f107 031c add.w r3, r7, #28 + 8000d46: 2234 movs r2, #52 @ 0x34 + 8000d48: 2100 movs r1, #0 + 8000d4a: 4618 mov r0, r3 + 8000d4c: f00a fd38 bl 800b7c0 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; - 8000d48: f107 0308 add.w r3, r7, #8 - 8000d4c: 2200 movs r2, #0 - 8000d4e: 601a str r2, [r3, #0] - 8000d50: 605a str r2, [r3, #4] - 8000d52: 609a str r2, [r3, #8] - 8000d54: 60da str r2, [r3, #12] - 8000d56: 611a str r2, [r3, #16] + 8000d50: f107 0308 add.w r3, r7, #8 + 8000d54: 2200 movs r2, #0 + 8000d56: 601a str r2, [r3, #0] + 8000d58: 605a str r2, [r3, #4] + 8000d5a: 609a str r2, [r3, #8] + 8000d5c: 60da str r2, [r3, #12] + 8000d5e: 611a str r2, [r3, #16] /** Configure the main internal regulator out put voltage */ __HAL_RCC_PWR_CLK_ENABLE(); - 8000d58: 2300 movs r3, #0 - 8000d5a: 607b str r3, [r7, #4] - 8000d5c: 4b29 ldr r3, [pc, #164] @ (8000e04 ) - 8000d5e: 6c1b ldr r3, [r3, #64] @ 0x40 - 8000d60: 4a28 ldr r2, [pc, #160] @ (8000e04 ) - 8000d62: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8000d66: 6413 str r3, [r2, #64] @ 0x40 - 8000d68: 4b26 ldr r3, [pc, #152] @ (8000e04 ) - 8000d6a: 6c1b ldr r3, [r3, #64] @ 0x40 - 8000d6c: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8000d70: 607b str r3, [r7, #4] - 8000d72: 687b ldr r3, [r7, #4] + 8000d60: 2300 movs r3, #0 + 8000d62: 607b str r3, [r7, #4] + 8000d64: 4b29 ldr r3, [pc, #164] @ (8000e0c ) + 8000d66: 6c1b ldr r3, [r3, #64] @ 0x40 + 8000d68: 4a28 ldr r2, [pc, #160] @ (8000e0c ) + 8000d6a: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8000d6e: 6413 str r3, [r2, #64] @ 0x40 + 8000d70: 4b26 ldr r3, [pc, #152] @ (8000e0c ) + 8000d72: 6c1b ldr r3, [r3, #64] @ 0x40 + 8000d74: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8000d78: 607b str r3, [r7, #4] + 8000d7a: 687b ldr r3, [r7, #4] __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3); - 8000d74: 2300 movs r3, #0 - 8000d76: 603b str r3, [r7, #0] - 8000d78: 4b23 ldr r3, [pc, #140] @ (8000e08 ) - 8000d7a: 681b ldr r3, [r3, #0] - 8000d7c: f423 4340 bic.w r3, r3, #49152 @ 0xc000 - 8000d80: 4a21 ldr r2, [pc, #132] @ (8000e08 ) - 8000d82: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 8000d86: 6013 str r3, [r2, #0] - 8000d88: 4b1f ldr r3, [pc, #124] @ (8000e08 ) - 8000d8a: 681b ldr r3, [r3, #0] - 8000d8c: f403 4340 and.w r3, r3, #49152 @ 0xc000 - 8000d90: 603b str r3, [r7, #0] - 8000d92: 683b ldr r3, [r7, #0] + 8000d7c: 2300 movs r3, #0 + 8000d7e: 603b str r3, [r7, #0] + 8000d80: 4b23 ldr r3, [pc, #140] @ (8000e10 ) + 8000d82: 681b ldr r3, [r3, #0] + 8000d84: f423 4340 bic.w r3, r3, #49152 @ 0xc000 + 8000d88: 4a21 ldr r2, [pc, #132] @ (8000e10 ) + 8000d8a: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 8000d8e: 6013 str r3, [r2, #0] + 8000d90: 4b1f ldr r3, [pc, #124] @ (8000e10 ) + 8000d92: 681b ldr r3, [r3, #0] + 8000d94: f403 4340 and.w r3, r3, #49152 @ 0xc000 + 8000d98: 603b str r3, [r7, #0] + 8000d9a: 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; - 8000d94: 2301 movs r3, #1 - 8000d96: 61fb str r3, [r7, #28] + 8000d9c: 2301 movs r3, #1 + 8000d9e: 61fb str r3, [r7, #28] RCC_OscInitStruct.HSEState = RCC_HSE_ON; - 8000d98: f44f 3380 mov.w r3, #65536 @ 0x10000 - 8000d9c: 623b str r3, [r7, #32] + 8000da0: f44f 3380 mov.w r3, #65536 @ 0x10000 + 8000da4: 623b str r3, [r7, #32] RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; - 8000d9e: 2302 movs r3, #2 - 8000da0: 637b str r3, [r7, #52] @ 0x34 + 8000da6: 2302 movs r3, #2 + 8000da8: 637b str r3, [r7, #52] @ 0x34 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; - 8000da2: f44f 0380 mov.w r3, #4194304 @ 0x400000 - 8000da6: 63bb str r3, [r7, #56] @ 0x38 + 8000daa: f44f 0380 mov.w r3, #4194304 @ 0x400000 + 8000dae: 63bb str r3, [r7, #56] @ 0x38 RCC_OscInitStruct.PLL.PLLM = 4; - 8000da8: 2304 movs r3, #4 - 8000daa: 63fb str r3, [r7, #60] @ 0x3c + 8000db0: 2304 movs r3, #4 + 8000db2: 63fb str r3, [r7, #60] @ 0x3c RCC_OscInitStruct.PLL.PLLN = 96; - 8000dac: 2360 movs r3, #96 @ 0x60 - 8000dae: 643b str r3, [r7, #64] @ 0x40 + 8000db4: 2360 movs r3, #96 @ 0x60 + 8000db6: 643b str r3, [r7, #64] @ 0x40 RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; - 8000db0: 2302 movs r3, #2 - 8000db2: 647b str r3, [r7, #68] @ 0x44 - RCC_OscInitStruct.PLL.PLLQ = 4; - 8000db4: 2304 movs r3, #4 - 8000db6: 64bb str r3, [r7, #72] @ 0x48 - RCC_OscInitStruct.PLL.PLLR = 2; 8000db8: 2302 movs r3, #2 - 8000dba: 64fb str r3, [r7, #76] @ 0x4c + 8000dba: 647b str r3, [r7, #68] @ 0x44 + RCC_OscInitStruct.PLL.PLLQ = 4; + 8000dbc: 2304 movs r3, #4 + 8000dbe: 64bb str r3, [r7, #72] @ 0x48 + RCC_OscInitStruct.PLL.PLLR = 2; + 8000dc0: 2302 movs r3, #2 + 8000dc2: 64fb str r3, [r7, #76] @ 0x4c if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) - 8000dbc: f107 031c add.w r3, r7, #28 - 8000dc0: 4618 mov r0, r3 - 8000dc2: f004 f9c7 bl 8005154 - 8000dc6: 4603 mov r3, r0 - 8000dc8: 2b00 cmp r3, #0 - 8000dca: d001 beq.n 8000dd0 + 8000dc4: f107 031c add.w r3, r7, #28 + 8000dc8: 4618 mov r0, r3 + 8000dca: f004 fa1f bl 800520c + 8000dce: 4603 mov r3, r0 + 8000dd0: 2b00 cmp r3, #0 + 8000dd2: d001 beq.n 8000dd8 { Error_Handler(); - 8000dcc: f000 fa62 bl 8001294 + 8000dd4: f000 faba bl 800134c } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK - 8000dd0: 230f movs r3, #15 - 8000dd2: 60bb str r3, [r7, #8] + 8000dd8: 230f movs r3, #15 + 8000dda: 60bb str r3, [r7, #8] |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; - 8000dd4: 2302 movs r3, #2 - 8000dd6: 60fb str r3, [r7, #12] + 8000ddc: 2302 movs r3, #2 + 8000dde: 60fb str r3, [r7, #12] RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV2; - 8000dd8: 2380 movs r3, #128 @ 0x80 - 8000dda: 613b str r3, [r7, #16] + 8000de0: 2380 movs r3, #128 @ 0x80 + 8000de2: 613b str r3, [r7, #16] RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; - 8000ddc: f44f 5380 mov.w r3, #4096 @ 0x1000 - 8000de0: 617b str r3, [r7, #20] + 8000de4: f44f 5380 mov.w r3, #4096 @ 0x1000 + 8000de8: 617b str r3, [r7, #20] RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; - 8000de2: 2300 movs r3, #0 - 8000de4: 61bb str r3, [r7, #24] + 8000dea: 2300 movs r3, #0 + 8000dec: 61bb str r3, [r7, #24] if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_1) != HAL_OK) - 8000de6: f107 0308 add.w r3, r7, #8 - 8000dea: 2101 movs r1, #1 - 8000dec: 4618 mov r0, r3 - 8000dee: f003 fb3d bl 800446c - 8000df2: 4603 mov r3, r0 - 8000df4: 2b00 cmp r3, #0 - 8000df6: d001 beq.n 8000dfc + 8000dee: f107 0308 add.w r3, r7, #8 + 8000df2: 2101 movs r1, #1 + 8000df4: 4618 mov r0, r3 + 8000df6: f003 fb95 bl 8004524 + 8000dfa: 4603 mov r3, r0 + 8000dfc: 2b00 cmp r3, #0 + 8000dfe: d001 beq.n 8000e04 { Error_Handler(); - 8000df8: f000 fa4c bl 8001294 + 8000e00: f000 faa4 bl 800134c } } - 8000dfc: bf00 nop - 8000dfe: 3750 adds r7, #80 @ 0x50 - 8000e00: 46bd mov sp, r7 - 8000e02: bd80 pop {r7, pc} - 8000e04: 40023800 .word 0x40023800 - 8000e08: 40007000 .word 0x40007000 + 8000e04: bf00 nop + 8000e06: 3750 adds r7, #80 @ 0x50 + 8000e08: 46bd mov sp, r7 + 8000e0a: bd80 pop {r7, pc} + 8000e0c: 40023800 .word 0x40023800 + 8000e10: 40007000 .word 0x40007000 -08000e0c : +08000e14 : /* USER CODE BEGIN 4 */ // UART Message Requests Goes Here void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { - 8000e0c: b580 push {r7, lr} - 8000e0e: b082 sub sp, #8 - 8000e10: af00 add r7, sp, #0 - 8000e12: 6078 str r0, [r7, #4] + 8000e14: b580 push {r7, lr} + 8000e16: b082 sub sp, #8 + 8000e18: af00 add r7, sp, #0 + 8000e1a: 6078 str r0, [r7, #4] if (huart->Instance == USART1) { - 8000e14: 687b ldr r3, [r7, #4] - 8000e16: 681b ldr r3, [r3, #0] - 8000e18: 4a1e ldr r2, [pc, #120] @ (8000e94 ) - 8000e1a: 4293 cmp r3, r2 - 8000e1c: d109 bne.n 8000e32 + 8000e1c: 687b ldr r3, [r7, #4] + 8000e1e: 681b ldr r3, [r3, #0] + 8000e20: 4a1e ldr r2, [pc, #120] @ (8000e9c ) + 8000e22: 4293 cmp r3, r2 + 8000e24: d109 bne.n 8000e3a handleUARTMessages((uint8_t*)&RX1Msg, &huart1); - 8000e1e: 491e ldr r1, [pc, #120] @ (8000e98 ) - 8000e20: 481e ldr r0, [pc, #120] @ (8000e9c ) - 8000e22: f000 f8dd bl 8000fe0 + 8000e26: 491e ldr r1, [pc, #120] @ (8000ea0 ) + 8000e28: 481e ldr r0, [pc, #120] @ (8000ea4 ) + 8000e2a: f000 f8dd bl 8000fe8 HAL_UART_Receive_DMA(&huart1, (uint8_t*)&RX1Msg, sizeof(UARTMessage)); - 8000e26: 2210 movs r2, #16 - 8000e28: 491c ldr r1, [pc, #112] @ (8000e9c ) - 8000e2a: 481b ldr r0, [pc, #108] @ (8000e98 ) - 8000e2c: f005 fdc4 bl 80069b8 + 8000e2e: 2210 movs r2, #16 + 8000e30: 491c ldr r1, [pc, #112] @ (8000ea4 ) + 8000e32: 481b ldr r0, [pc, #108] @ (8000ea0 ) + 8000e34: f005 fe1c bl 8006a70 } else if (huart->Instance == UART5) { handleUARTMessages((uint8_t*)&RX5Msg, &huart5); HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); } } - 8000e30: e02b b.n 8000e8a + 8000e38: e02b b.n 8000e92 else if (huart->Instance == USART2) { - 8000e32: 687b ldr r3, [r7, #4] - 8000e34: 681b ldr r3, [r3, #0] - 8000e36: 4a1a ldr r2, [pc, #104] @ (8000ea0 ) - 8000e38: 4293 cmp r3, r2 - 8000e3a: d109 bne.n 8000e50 + 8000e3a: 687b ldr r3, [r7, #4] + 8000e3c: 681b ldr r3, [r3, #0] + 8000e3e: 4a1a ldr r2, [pc, #104] @ (8000ea8 ) + 8000e40: 4293 cmp r3, r2 + 8000e42: d109 bne.n 8000e58 handleUARTMessages((uint8_t*)&RX2Msg, &huart2); - 8000e3c: 4919 ldr r1, [pc, #100] @ (8000ea4 ) - 8000e3e: 481a ldr r0, [pc, #104] @ (8000ea8 ) - 8000e40: f000 f8ce bl 8000fe0 + 8000e44: 4919 ldr r1, [pc, #100] @ (8000eac ) + 8000e46: 481a ldr r0, [pc, #104] @ (8000eb0 ) + 8000e48: f000 f8ce bl 8000fe8 HAL_UART_Receive_DMA(&huart2, (uint8_t*)&RX2Msg, sizeof(UARTMessage)); - 8000e44: 2210 movs r2, #16 - 8000e46: 4918 ldr r1, [pc, #96] @ (8000ea8 ) - 8000e48: 4816 ldr r0, [pc, #88] @ (8000ea4 ) - 8000e4a: f005 fdb5 bl 80069b8 + 8000e4c: 2210 movs r2, #16 + 8000e4e: 4918 ldr r1, [pc, #96] @ (8000eb0 ) + 8000e50: 4816 ldr r0, [pc, #88] @ (8000eac ) + 8000e52: f005 fe0d bl 8006a70 } - 8000e4e: e01c b.n 8000e8a + 8000e56: e01c b.n 8000e92 else if (huart->Instance == UART4) { - 8000e50: 687b ldr r3, [r7, #4] - 8000e52: 681b ldr r3, [r3, #0] - 8000e54: 4a15 ldr r2, [pc, #84] @ (8000eac ) - 8000e56: 4293 cmp r3, r2 - 8000e58: d109 bne.n 8000e6e + 8000e58: 687b ldr r3, [r7, #4] + 8000e5a: 681b ldr r3, [r3, #0] + 8000e5c: 4a15 ldr r2, [pc, #84] @ (8000eb4 ) + 8000e5e: 4293 cmp r3, r2 + 8000e60: d109 bne.n 8000e76 handleUARTMessages((uint8_t*)&RX4Msg, &huart4); - 8000e5a: 4915 ldr r1, [pc, #84] @ (8000eb0 ) - 8000e5c: 4815 ldr r0, [pc, #84] @ (8000eb4 ) - 8000e5e: f000 f8bf bl 8000fe0 + 8000e62: 4915 ldr r1, [pc, #84] @ (8000eb8 ) + 8000e64: 4815 ldr r0, [pc, #84] @ (8000ebc ) + 8000e66: f000 f8bf bl 8000fe8 HAL_UART_Receive_DMA(&huart4, (uint8_t*)&RX4Msg, sizeof(UARTMessage)); - 8000e62: 2210 movs r2, #16 - 8000e64: 4913 ldr r1, [pc, #76] @ (8000eb4 ) - 8000e66: 4812 ldr r0, [pc, #72] @ (8000eb0 ) - 8000e68: f005 fda6 bl 80069b8 + 8000e6a: 2210 movs r2, #16 + 8000e6c: 4913 ldr r1, [pc, #76] @ (8000ebc ) + 8000e6e: 4812 ldr r0, [pc, #72] @ (8000eb8 ) + 8000e70: f005 fdfe bl 8006a70 } - 8000e6c: e00d b.n 8000e8a + 8000e74: e00d b.n 8000e92 else if (huart->Instance == UART5) { - 8000e6e: 687b ldr r3, [r7, #4] - 8000e70: 681b ldr r3, [r3, #0] - 8000e72: 4a11 ldr r2, [pc, #68] @ (8000eb8 ) - 8000e74: 4293 cmp r3, r2 - 8000e76: d108 bne.n 8000e8a + 8000e76: 687b ldr r3, [r7, #4] + 8000e78: 681b ldr r3, [r3, #0] + 8000e7a: 4a11 ldr r2, [pc, #68] @ (8000ec0 ) + 8000e7c: 4293 cmp r3, r2 + 8000e7e: d108 bne.n 8000e92 handleUARTMessages((uint8_t*)&RX5Msg, &huart5); - 8000e78: 4910 ldr r1, [pc, #64] @ (8000ebc ) - 8000e7a: 4811 ldr r0, [pc, #68] @ (8000ec0 ) - 8000e7c: f000 f8b0 bl 8000fe0 + 8000e80: 4910 ldr r1, [pc, #64] @ (8000ec4 ) + 8000e82: 4811 ldr r0, [pc, #68] @ (8000ec8 ) + 8000e84: f000 f8b0 bl 8000fe8 HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); - 8000e80: 2210 movs r2, #16 - 8000e82: 490f ldr r1, [pc, #60] @ (8000ec0 ) - 8000e84: 480d ldr r0, [pc, #52] @ (8000ebc ) - 8000e86: f005 fd97 bl 80069b8 + 8000e88: 2210 movs r2, #16 + 8000e8a: 490f ldr r1, [pc, #60] @ (8000ec8 ) + 8000e8c: 480d ldr r0, [pc, #52] @ (8000ec4 ) + 8000e8e: f005 fdef bl 8006a70 } - 8000e8a: bf00 nop - 8000e8c: 3708 adds r7, #8 - 8000e8e: 46bd mov sp, r7 - 8000e90: bd80 pop {r7, pc} 8000e92: bf00 nop - 8000e94: 40011000 .word 0x40011000 - 8000e98: 20000b70 .word 0x20000b70 - 8000e9c: 200003b0 .word 0x200003b0 - 8000ea0: 40004400 .word 0x40004400 - 8000ea4: 20000bb8 .word 0x20000bb8 - 8000ea8: 200003c0 .word 0x200003c0 - 8000eac: 40004c00 .word 0x40004c00 - 8000eb0: 20000ae0 .word 0x20000ae0 - 8000eb4: 200003d0 .word 0x200003d0 - 8000eb8: 40005000 .word 0x40005000 - 8000ebc: 20000b28 .word 0x20000b28 - 8000ec0: 200003a0 .word 0x200003a0 + 8000e94: 3708 adds r7, #8 + 8000e96: 46bd mov sp, r7 + 8000e98: bd80 pop {r7, pc} + 8000e9a: bf00 nop + 8000e9c: 40011000 .word 0x40011000 + 8000ea0: 20000b70 .word 0x20000b70 + 8000ea4: 200003b0 .word 0x200003b0 + 8000ea8: 40004400 .word 0x40004400 + 8000eac: 20000bb8 .word 0x20000bb8 + 8000eb0: 200003c0 .word 0x200003c0 + 8000eb4: 40004c00 .word 0x40004c00 + 8000eb8: 20000ae0 .word 0x20000ae0 + 8000ebc: 200003d0 .word 0x200003d0 + 8000ec0: 40005000 .word 0x40005000 + 8000ec4: 20000b28 .word 0x20000b28 + 8000ec8: 200003a0 .word 0x200003a0 -08000ec4 : +08000ecc : void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) { - 8000ec4: b580 push {r7, lr} - 8000ec6: b082 sub sp, #8 - 8000ec8: af00 add r7, sp, #0 - 8000eca: 6078 str r0, [r7, #4] + 8000ecc: b580 push {r7, lr} + 8000ece: b082 sub sp, #8 + 8000ed0: af00 add r7, sp, #0 + 8000ed2: 6078 str r0, [r7, #4] // Restart DMA on error if (huart->Instance == USART1) { - 8000ecc: 687b ldr r3, [r7, #4] - 8000ece: 681b ldr r3, [r3, #0] - 8000ed0: 4a16 ldr r2, [pc, #88] @ (8000f2c ) - 8000ed2: 4293 cmp r3, r2 - 8000ed4: d105 bne.n 8000ee2 + 8000ed4: 687b ldr r3, [r7, #4] + 8000ed6: 681b ldr r3, [r3, #0] + 8000ed8: 4a16 ldr r2, [pc, #88] @ (8000f34 ) + 8000eda: 4293 cmp r3, r2 + 8000edc: d105 bne.n 8000eea HAL_UART_Receive_DMA(&huart1, (uint8_t*)&RX1Msg, sizeof(UARTMessage)); - 8000ed6: 2210 movs r2, #16 - 8000ed8: 4915 ldr r1, [pc, #84] @ (8000f30 ) - 8000eda: 4816 ldr r0, [pc, #88] @ (8000f34 ) - 8000edc: f005 fd6c bl 80069b8 + 8000ede: 2210 movs r2, #16 + 8000ee0: 4915 ldr r1, [pc, #84] @ (8000f38 ) + 8000ee2: 4816 ldr r0, [pc, #88] @ (8000f3c ) + 8000ee4: f005 fdc4 bl 8006a70 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)); } } - 8000ee0: e01f b.n 8000f22 + 8000ee8: e01f b.n 8000f2a else if (huart->Instance == USART2) { - 8000ee2: 687b ldr r3, [r7, #4] - 8000ee4: 681b ldr r3, [r3, #0] - 8000ee6: 4a14 ldr r2, [pc, #80] @ (8000f38 ) - 8000ee8: 4293 cmp r3, r2 - 8000eea: d105 bne.n 8000ef8 + 8000eea: 687b ldr r3, [r7, #4] + 8000eec: 681b ldr r3, [r3, #0] + 8000eee: 4a14 ldr r2, [pc, #80] @ (8000f40 ) + 8000ef0: 4293 cmp r3, r2 + 8000ef2: d105 bne.n 8000f00 HAL_UART_Receive_DMA(&huart2, (uint8_t*)&RX2Msg, sizeof(UARTMessage)); - 8000eec: 2210 movs r2, #16 - 8000eee: 4913 ldr r1, [pc, #76] @ (8000f3c ) - 8000ef0: 4813 ldr r0, [pc, #76] @ (8000f40 ) - 8000ef2: f005 fd61 bl 80069b8 + 8000ef4: 2210 movs r2, #16 + 8000ef6: 4913 ldr r1, [pc, #76] @ (8000f44 ) + 8000ef8: 4813 ldr r0, [pc, #76] @ (8000f48 ) + 8000efa: f005 fdb9 bl 8006a70 } - 8000ef6: e014 b.n 8000f22 + 8000efe: e014 b.n 8000f2a else if (huart->Instance == UART4) { - 8000ef8: 687b ldr r3, [r7, #4] - 8000efa: 681b ldr r3, [r3, #0] - 8000efc: 4a11 ldr r2, [pc, #68] @ (8000f44 ) - 8000efe: 4293 cmp r3, r2 - 8000f00: d105 bne.n 8000f0e + 8000f00: 687b ldr r3, [r7, #4] + 8000f02: 681b ldr r3, [r3, #0] + 8000f04: 4a11 ldr r2, [pc, #68] @ (8000f4c ) + 8000f06: 4293 cmp r3, r2 + 8000f08: d105 bne.n 8000f16 HAL_UART_Receive_DMA(&huart4, (uint8_t*)&RX4Msg, sizeof(UARTMessage)); - 8000f02: 2210 movs r2, #16 - 8000f04: 4910 ldr r1, [pc, #64] @ (8000f48 ) - 8000f06: 4811 ldr r0, [pc, #68] @ (8000f4c ) - 8000f08: f005 fd56 bl 80069b8 + 8000f0a: 2210 movs r2, #16 + 8000f0c: 4910 ldr r1, [pc, #64] @ (8000f50 ) + 8000f0e: 4811 ldr r0, [pc, #68] @ (8000f54 ) + 8000f10: f005 fdae bl 8006a70 } - 8000f0c: e009 b.n 8000f22 + 8000f14: e009 b.n 8000f2a else if (huart->Instance == UART5) { - 8000f0e: 687b ldr r3, [r7, #4] - 8000f10: 681b ldr r3, [r3, #0] - 8000f12: 4a0f ldr r2, [pc, #60] @ (8000f50 ) - 8000f14: 4293 cmp r3, r2 - 8000f16: d104 bne.n 8000f22 + 8000f16: 687b ldr r3, [r7, #4] + 8000f18: 681b ldr r3, [r3, #0] + 8000f1a: 4a0f ldr r2, [pc, #60] @ (8000f58 ) + 8000f1c: 4293 cmp r3, r2 + 8000f1e: d104 bne.n 8000f2a HAL_UART_Receive_DMA(&huart5, (uint8_t*)&RX5Msg, sizeof(UARTMessage)); - 8000f18: 2210 movs r2, #16 - 8000f1a: 490e ldr r1, [pc, #56] @ (8000f54 ) - 8000f1c: 480e ldr r0, [pc, #56] @ (8000f58 ) - 8000f1e: f005 fd4b bl 80069b8 + 8000f20: 2210 movs r2, #16 + 8000f22: 490e ldr r1, [pc, #56] @ (8000f5c ) + 8000f24: 480e ldr r0, [pc, #56] @ (8000f60 ) + 8000f26: f005 fda3 bl 8006a70 } - 8000f22: bf00 nop - 8000f24: 3708 adds r7, #8 - 8000f26: 46bd mov sp, r7 - 8000f28: bd80 pop {r7, pc} 8000f2a: bf00 nop - 8000f2c: 40011000 .word 0x40011000 - 8000f30: 200003b0 .word 0x200003b0 - 8000f34: 20000b70 .word 0x20000b70 - 8000f38: 40004400 .word 0x40004400 - 8000f3c: 200003c0 .word 0x200003c0 - 8000f40: 20000bb8 .word 0x20000bb8 - 8000f44: 40004c00 .word 0x40004c00 - 8000f48: 200003d0 .word 0x200003d0 - 8000f4c: 20000ae0 .word 0x20000ae0 - 8000f50: 40005000 .word 0x40005000 - 8000f54: 200003a0 .word 0x200003a0 - 8000f58: 20000b28 .word 0x20000b28 + 8000f2c: 3708 adds r7, #8 + 8000f2e: 46bd mov sp, r7 + 8000f30: bd80 pop {r7, pc} + 8000f32: bf00 nop + 8000f34: 40011000 .word 0x40011000 + 8000f38: 200003b0 .word 0x200003b0 + 8000f3c: 20000b70 .word 0x20000b70 + 8000f40: 40004400 .word 0x40004400 + 8000f44: 200003c0 .word 0x200003c0 + 8000f48: 20000bb8 .word 0x20000bb8 + 8000f4c: 40004c00 .word 0x40004c00 + 8000f50: 200003d0 .word 0x200003d0 + 8000f54: 20000ae0 .word 0x20000ae0 + 8000f58: 40005000 .word 0x40005000 + 8000f5c: 200003a0 .word 0x200003a0 + 8000f60: 20000b28 .word 0x20000b28 -08000f5c : +08000f64 : void findBestParent(){ - 8000f5c: b580 push {r7, lr} - 8000f5e: b084 sub sp, #16 - 8000f60: af00 add r7, sp, #0 + 8000f64: b580 push {r7, lr} + 8000f66: b084 sub sp, #16 + 8000f68: af00 add r7, sp, #0 //Find least depth parent uint16_t least_val = 0xFF; - 8000f62: 23ff movs r3, #255 @ 0xff - 8000f64: 81fb strh r3, [r7, #14] + 8000f6a: 23ff movs r3, #255 @ 0xff + 8000f6c: 81fb strh r3, [r7, #14] UART_HandleTypeDef* least_port = NULL; - 8000f66: 2300 movs r3, #0 - 8000f68: 60bb str r3, [r7, #8] + 8000f6e: 2300 movs r3, #0 + 8000f70: 60bb str r3, [r7, #8] for(uint8_t i = 0; i < 4; i++){ - 8000f6a: 2300 movs r3, #0 - 8000f6c: 71fb strb r3, [r7, #7] - 8000f6e: e013 b.n 8000f98 + 8000f72: 2300 movs r3, #0 + 8000f74: 71fb strb r3, [r7, #7] + 8000f76: e013 b.n 8000fa0 if(PORT_DEPTH[i]) - 8000f74: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 8000f78: 89fa ldrh r2, [r7, #14] - 8000f7a: 429a cmp r2, r3 - 8000f7c: d909 bls.n 8000f92 + 8000f78: 79fb ldrb r3, [r7, #7] + 8000f7a: 4a16 ldr r2, [pc, #88] @ (8000fd4 ) + 8000f7c: f832 3013 ldrh.w r3, [r2, r3, lsl #1] + 8000f80: 89fa ldrh r2, [r7, #14] + 8000f82: 429a cmp r2, r3 + 8000f84: d909 bls.n 8000f9a least_port = PORTS[i]; - 8000f7e: 79fb ldrb r3, [r7, #7] - 8000f80: 4a13 ldr r2, [pc, #76] @ (8000fd0 ) - 8000f82: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8000f86: 60bb str r3, [r7, #8] + 8000f86: 79fb ldrb r3, [r7, #7] + 8000f88: 4a13 ldr r2, [pc, #76] @ (8000fd8 ) + 8000f8a: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8000f8e: 60bb str r3, [r7, #8] least_val = PORT_DEPTH[i]; - 8000f88: 79fb ldrb r3, [r7, #7] - 8000f8a: 4a10 ldr r2, [pc, #64] @ (8000fcc ) - 8000f8c: f832 3013 ldrh.w r3, [r2, r3, lsl #1] - 8000f90: 81fb strh r3, [r7, #14] + 8000f90: 79fb ldrb r3, [r7, #7] + 8000f92: 4a10 ldr r2, [pc, #64] @ (8000fd4 ) + 8000f94: f832 3013 ldrh.w r3, [r2, r3, lsl #1] + 8000f98: 81fb strh r3, [r7, #14] for(uint8_t i = 0; i < 4; i++){ - 8000f92: 79fb ldrb r3, [r7, #7] - 8000f94: 3301 adds r3, #1 - 8000f96: 71fb strb r3, [r7, #7] - 8000f98: 79fb ldrb r3, [r7, #7] - 8000f9a: 2b03 cmp r3, #3 - 8000f9c: d9e8 bls.n 8000f70 + 8000f9a: 79fb ldrb r3, [r7, #7] + 8000f9c: 3301 adds r3, #1 + 8000f9e: 71fb strb r3, [r7, #7] + 8000fa0: 79fb ldrb r3, [r7, #7] + 8000fa2: 2b03 cmp r3, #3 + 8000fa4: d9e8 bls.n 8000f78 } } //Assign if valid if(least_val < 0xFF){ - 8000f9e: 89fb ldrh r3, [r7, #14] - 8000fa0: 2bfe cmp r3, #254 @ 0xfe - 8000fa2: d80e bhi.n 8000fc2 + 8000fa6: 89fb ldrh r3, [r7, #14] + 8000fa8: 2bfe cmp r3, #254 @ 0xfe + 8000faa: d80e bhi.n 8000fca PARENT = least_port; - 8000fa4: 4a0b ldr r2, [pc, #44] @ (8000fd4 ) - 8000fa6: 68bb ldr r3, [r7, #8] - 8000fa8: 6013 str r3, [r2, #0] + 8000fac: 4a0b ldr r2, [pc, #44] @ (8000fdc ) + 8000fae: 68bb ldr r3, [r7, #8] + 8000fb0: 6013 str r3, [r2, #0] DEPTH = least_val + 1; - 8000faa: 89fb ldrh r3, [r7, #14] - 8000fac: 3301 adds r3, #1 - 8000fae: b29a uxth r2, r3 - 8000fb0: 4b09 ldr r3, [pc, #36] @ (8000fd8 ) - 8000fb2: 801a strh r2, [r3, #0] + 8000fb2: 89fb ldrh r3, [r7, #14] + 8000fb4: 3301 adds r3, #1 + 8000fb6: b29a uxth r2, r3 + 8000fb8: 4b09 ldr r3, [pc, #36] @ (8000fe0 ) + 8000fba: 801a strh r2, [r3, #0] MODE = MODE_ACTIVE; - 8000fb4: 4b09 ldr r3, [pc, #36] @ (8000fdc ) - 8000fb6: 2202 movs r2, #2 - 8000fb8: 701a strb r2, [r3, #0] + 8000fbc: 4b09 ldr r3, [pc, #36] @ (8000fe4 ) + 8000fbe: 2202 movs r2, #2 + 8000fc0: 701a strb r2, [r3, #0] HAL_Delay(500); - 8000fba: f44f 70fa mov.w r0, #500 @ 0x1f4 - 8000fbe: f000 ff8d bl 8001edc + 8000fc2: f44f 70fa mov.w r0, #500 @ 0x1f4 + 8000fc6: f000 ffe5 bl 8001f94 } } - 8000fc2: bf00 nop - 8000fc4: 3710 adds r7, #16 - 8000fc6: 46bd mov sp, r7 - 8000fc8: bd80 pop {r7, pc} 8000fca: bf00 nop - 8000fcc: 20000078 .word 0x20000078 - 8000fd0: 20000080 .word 0x20000080 - 8000fd4: 200003e4 .word 0x200003e4 - 8000fd8: 200003e0 .word 0x200003e0 - 8000fdc: 2000040a .word 0x2000040a + 8000fcc: 3710 adds r7, #16 + 8000fce: 46bd mov sp, r7 + 8000fd0: bd80 pop {r7, pc} + 8000fd2: bf00 nop + 8000fd4: 20000078 .word 0x20000078 + 8000fd8: 20000080 .word 0x20000080 + 8000fdc: 200003e4 .word 0x200003e4 + 8000fe0: 200003e0 .word 0x200003e0 + 8000fe4: 2000040a .word 0x2000040a -08000fe0 : +08000fe8 : // Called when UART RX interrupt completes void handleUARTMessages(uint8_t *data, UART_HandleTypeDef *sender) { - 8000fe0: b590 push {r4, r7, lr} - 8000fe2: b08b sub sp, #44 @ 0x2c - 8000fe4: af00 add r7, sp, #0 - 8000fe6: 6078 str r0, [r7, #4] - 8000fe8: 6039 str r1, [r7, #0] + 8000fe8: b590 push {r4, r7, lr} + 8000fea: b08b sub sp, #44 @ 0x2c + 8000fec: af00 add r7, sp, #0 + 8000fee: 6078 str r0, [r7, #4] + 8000ff0: 6039 str r1, [r7, #0] UARTMessage msg; UARTMessage reply; // Parse incoming message into struct memcpy(&msg, data, sizeof(UARTMessage)); - 8000fea: 687b ldr r3, [r7, #4] - 8000fec: f107 0418 add.w r4, r7, #24 - 8000ff0: 6818 ldr r0, [r3, #0] - 8000ff2: 6859 ldr r1, [r3, #4] - 8000ff4: 689a ldr r2, [r3, #8] - 8000ff6: 68db ldr r3, [r3, #12] - 8000ff8: c40f stmia r4!, {r0, r1, r2, r3} + 8000ff2: 687b ldr r3, [r7, #4] + 8000ff4: f107 0418 add.w r4, r7, #24 + 8000ff8: 6818 ldr r0, [r3, #0] + 8000ffa: 6859 ldr r1, [r3, #4] + 8000ffc: 689a ldr r2, [r3, #8] + 8000ffe: 68db ldr r3, [r3, #12] + 8001000: c40f stmia r4!, {r0, r1, r2, r3} switch(msg.TYPE) { - 8000ffa: 8b7b ldrh r3, [r7, #26] - 8000ffc: 2bff cmp r3, #255 @ 0xff - 8000ffe: d026 beq.n 800104e - 8001000: 2bff cmp r3, #255 @ 0xff - 8001002: dc6e bgt.n 80010e2 - 8001004: 2baa cmp r3, #170 @ 0xaa - 8001006: d002 beq.n 800100e - 8001008: 2bee cmp r3, #238 @ 0xee - 800100a: d03a beq.n 8001082 + 8001002: 8b7b ldrh r3, [r7, #26] + 8001004: 2bff cmp r3, #255 @ 0xff + 8001006: d026 beq.n 8001056 + 8001008: 2bff cmp r3, #255 @ 0xff + 800100a: dc6e bgt.n 80010ea + 800100c: 2baa cmp r3, #170 @ 0xaa + 800100e: d002 beq.n 8001016 + 8001010: 2bee cmp r3, #238 @ 0xee + 8001012: d03a beq.n 800108a } break; default: break; - 800100c: e069 b.n 80010e2 + 8001014: e069 b.n 80010ea if(sender == &huart5) { - 800100e: 683b ldr r3, [r7, #0] - 8001010: 4a39 ldr r2, [pc, #228] @ (80010f8 ) - 8001012: 4293 cmp r3, r2 - 8001014: d103 bne.n 800101e + 8001016: 683b ldr r3, [r7, #0] + 8001018: 4a39 ldr r2, [pc, #228] @ (8001100 ) + 800101a: 4293 cmp r3, r2 + 800101c: d103 bne.n 8001026 PORT_DEPTH[0] = msg.DEPTH; - 8001016: 8b3a ldrh r2, [r7, #24] - 8001018: 4b38 ldr r3, [pc, #224] @ (80010fc ) - 800101a: 801a strh r2, [r3, #0] + 800101e: 8b3a ldrh r2, [r7, #24] + 8001020: 4b38 ldr r3, [pc, #224] @ (8001104 ) + 8001022: 801a strh r2, [r3, #0] break; - 800101c: e063 b.n 80010e6 + 8001024: e063 b.n 80010ee } else if(sender == &huart1) { - 800101e: 683b ldr r3, [r7, #0] - 8001020: 4a37 ldr r2, [pc, #220] @ (8001100 ) - 8001022: 4293 cmp r3, r2 - 8001024: d103 bne.n 800102e + 8001026: 683b ldr r3, [r7, #0] + 8001028: 4a37 ldr r2, [pc, #220] @ (8001108 ) + 800102a: 4293 cmp r3, r2 + 800102c: d103 bne.n 8001036 PORT_DEPTH[1] = msg.DEPTH; - 8001026: 8b3a ldrh r2, [r7, #24] - 8001028: 4b34 ldr r3, [pc, #208] @ (80010fc ) - 800102a: 805a strh r2, [r3, #2] + 800102e: 8b3a ldrh r2, [r7, #24] + 8001030: 4b34 ldr r3, [pc, #208] @ (8001104 ) + 8001032: 805a strh r2, [r3, #2] break; - 800102c: e05b b.n 80010e6 + 8001034: e05b b.n 80010ee } else if(sender == &huart2) { - 800102e: 683b ldr r3, [r7, #0] - 8001030: 4a34 ldr r2, [pc, #208] @ (8001104 ) - 8001032: 4293 cmp r3, r2 - 8001034: d103 bne.n 800103e + 8001036: 683b ldr r3, [r7, #0] + 8001038: 4a34 ldr r2, [pc, #208] @ (800110c ) + 800103a: 4293 cmp r3, r2 + 800103c: d103 bne.n 8001046 PORT_DEPTH[2] = msg.DEPTH; - 8001036: 8b3a ldrh r2, [r7, #24] - 8001038: 4b30 ldr r3, [pc, #192] @ (80010fc ) - 800103a: 809a strh r2, [r3, #4] + 800103e: 8b3a ldrh r2, [r7, #24] + 8001040: 4b30 ldr r3, [pc, #192] @ (8001104 ) + 8001042: 809a strh r2, [r3, #4] break; - 800103c: e053 b.n 80010e6 + 8001044: e053 b.n 80010ee } else if(sender == &huart4) { - 800103e: 683b ldr r3, [r7, #0] - 8001040: 4a31 ldr r2, [pc, #196] @ (8001108 ) - 8001042: 4293 cmp r3, r2 - 8001044: d14f bne.n 80010e6 + 8001046: 683b ldr r3, [r7, #0] + 8001048: 4a31 ldr r2, [pc, #196] @ (8001110 ) + 800104a: 4293 cmp r3, r2 + 800104c: d14f bne.n 80010ee PORT_DEPTH[3] = msg.DEPTH; - 8001046: 8b3a ldrh r2, [r7, #24] - 8001048: 4b2c ldr r3, [pc, #176] @ (80010fc ) - 800104a: 80da strh r2, [r3, #6] + 800104e: 8b3a ldrh r2, [r7, #24] + 8001050: 4b2c ldr r3, [pc, #176] @ (8001104 ) + 8001052: 80da strh r2, [r3, #6] break; - 800104c: e04b b.n 80010e6 + 8001054: e04b b.n 80010ee if(MODE!=MODE_INACTIVE){ - 800104e: 4b2f ldr r3, [pc, #188] @ (800110c ) - 8001050: 781b ldrb r3, [r3, #0] - 8001052: b2db uxtb r3, r3 - 8001054: 2b00 cmp r3, #0 - 8001056: d048 beq.n 80010ea + 8001056: 4b2f ldr r3, [pc, #188] @ (8001114 ) + 8001058: 781b ldrb r3, [r3, #0] + 800105a: b2db uxtb r3, r3 + 800105c: 2b00 cmp r3, #0 + 800105e: d048 beq.n 80010f2 reply.TYPE = 0xAA; - 8001058: 23aa movs r3, #170 @ 0xaa - 800105a: 817b strh r3, [r7, #10] + 8001060: 23aa movs r3, #170 @ 0xaa + 8001062: 817b strh r3, [r7, #10] reply.DEPTH = DEPTH; // use your local DEPTH - 800105c: 4b2c ldr r3, [pc, #176] @ (8001110 ) - 800105e: 881b ldrh r3, [r3, #0] - 8001060: 813b strh r3, [r7, #8] + 8001064: 4b2c ldr r3, [pc, #176] @ (8001118 ) + 8001066: 881b ldrh r3, [r3, #0] + 8001068: 813b strh r3, [r7, #8] memset(reply.KEYPRESS, 0, sizeof(reply.KEYPRESS)); - 8001062: f107 0308 add.w r3, r7, #8 - 8001066: 3304 adds r3, #4 - 8001068: 220c movs r2, #12 - 800106a: 2100 movs r1, #0 - 800106c: 4618 mov r0, r3 - 800106e: f00a fb4b bl 800b708 + 800106a: f107 0308 add.w r3, r7, #8 + 800106e: 3304 adds r3, #4 + 8001070: 220c movs r2, #12 + 8001072: 2100 movs r1, #0 + 8001074: 4618 mov r0, r3 + 8001076: f00a fba3 bl 800b7c0 HAL_UART_Transmit_DMA(sender, (uint8_t*)&reply, sizeof(reply)); - 8001072: f107 0308 add.w r3, r7, #8 - 8001076: 2210 movs r2, #16 - 8001078: 4619 mov r1, r3 - 800107a: 6838 ldr r0, [r7, #0] - 800107c: f005 fc20 bl 80068c0 + 800107a: f107 0308 add.w r3, r7, #8 + 800107e: 2210 movs r2, #16 + 8001080: 4619 mov r1, r3 + 8001082: 6838 ldr r0, [r7, #0] + 8001084: f005 fc78 bl 8006978 break; - 8001080: e033 b.n 80010ea + 8001088: e033 b.n 80010f2 if(sender == &huart5) { - 8001082: 683b ldr r3, [r7, #0] - 8001084: 4a1c ldr r2, [pc, #112] @ (80010f8 ) - 8001086: 4293 cmp r3, r2 - 8001088: d107 bne.n 800109a + 800108a: 683b ldr r3, [r7, #0] + 800108c: 4a1c ldr r2, [pc, #112] @ (8001100 ) + 800108e: 4293 cmp r3, r2 + 8001090: d107 bne.n 80010a2 pq_push(&huart5q, msg.KEYPRESS); - 800108a: f107 0318 add.w r3, r7, #24 - 800108e: 3304 adds r3, #4 - 8001090: 4619 mov r1, r3 - 8001092: 4820 ldr r0, [pc, #128] @ (8001114 ) - 8001094: f7ff fbde bl 8000854 + 8001092: f107 0318 add.w r3, r7, #24 + 8001096: 3304 adds r3, #4 + 8001098: 4619 mov r1, r3 + 800109a: 4820 ldr r0, [pc, #128] @ (800111c ) + 800109c: f7ff fbda bl 8000854 break; - 8001098: e029 b.n 80010ee + 80010a0: e029 b.n 80010f6 } else if(sender == &huart1) { - 800109a: 683b ldr r3, [r7, #0] - 800109c: 4a18 ldr r2, [pc, #96] @ (8001100 ) - 800109e: 4293 cmp r3, r2 - 80010a0: d107 bne.n 80010b2 + 80010a2: 683b ldr r3, [r7, #0] + 80010a4: 4a18 ldr r2, [pc, #96] @ (8001108 ) + 80010a6: 4293 cmp r3, r2 + 80010a8: d107 bne.n 80010ba pq_push(&huart1q, msg.KEYPRESS); - 80010a2: f107 0318 add.w r3, r7, #24 - 80010a6: 3304 adds r3, #4 - 80010a8: 4619 mov r1, r3 - 80010aa: 481b ldr r0, [pc, #108] @ (8001118 ) - 80010ac: f7ff fbd2 bl 8000854 + 80010aa: f107 0318 add.w r3, r7, #24 + 80010ae: 3304 adds r3, #4 + 80010b0: 4619 mov r1, r3 + 80010b2: 481b ldr r0, [pc, #108] @ (8001120 ) + 80010b4: f7ff fbce bl 8000854 break; - 80010b0: e01d b.n 80010ee + 80010b8: e01d b.n 80010f6 } else if(sender == &huart2) { - 80010b2: 683b ldr r3, [r7, #0] - 80010b4: 4a13 ldr r2, [pc, #76] @ (8001104 ) - 80010b6: 4293 cmp r3, r2 - 80010b8: d107 bne.n 80010ca + 80010ba: 683b ldr r3, [r7, #0] + 80010bc: 4a13 ldr r2, [pc, #76] @ (800110c ) + 80010be: 4293 cmp r3, r2 + 80010c0: d107 bne.n 80010d2 pq_push(&huart2q, msg.KEYPRESS); - 80010ba: f107 0318 add.w r3, r7, #24 - 80010be: 3304 adds r3, #4 - 80010c0: 4619 mov r1, r3 - 80010c2: 4816 ldr r0, [pc, #88] @ (800111c ) - 80010c4: f7ff fbc6 bl 8000854 + 80010c2: f107 0318 add.w r3, r7, #24 + 80010c6: 3304 adds r3, #4 + 80010c8: 4619 mov r1, r3 + 80010ca: 4816 ldr r0, [pc, #88] @ (8001124 ) + 80010cc: f7ff fbc2 bl 8000854 break; - 80010c8: e011 b.n 80010ee + 80010d0: e011 b.n 80010f6 } else if(sender == &huart4) { - 80010ca: 683b ldr r3, [r7, #0] - 80010cc: 4a0e ldr r2, [pc, #56] @ (8001108 ) - 80010ce: 4293 cmp r3, r2 - 80010d0: d10d bne.n 80010ee + 80010d2: 683b ldr r3, [r7, #0] + 80010d4: 4a0e ldr r2, [pc, #56] @ (8001110 ) + 80010d6: 4293 cmp r3, r2 + 80010d8: d10d bne.n 80010f6 pq_push(&huart4q, msg.KEYPRESS); - 80010d2: f107 0318 add.w r3, r7, #24 - 80010d6: 3304 adds r3, #4 - 80010d8: 4619 mov r1, r3 - 80010da: 4811 ldr r0, [pc, #68] @ (8001120 ) - 80010dc: f7ff fbba bl 8000854 + 80010da: f107 0318 add.w r3, r7, #24 + 80010de: 3304 adds r3, #4 + 80010e0: 4619 mov r1, r3 + 80010e2: 4811 ldr r0, [pc, #68] @ (8001128 ) + 80010e4: f7ff fbb6 bl 8000854 break; - 80010e0: e005 b.n 80010ee + 80010e8: e005 b.n 80010f6 break; - 80010e2: bf00 nop - 80010e4: e004 b.n 80010f0 - break; - 80010e6: bf00 nop - 80010e8: e002 b.n 80010f0 - break; 80010ea: bf00 nop - 80010ec: e000 b.n 80010f0 - break; + 80010ec: e004 b.n 80010f8 + break; 80010ee: bf00 nop + 80010f0: e002 b.n 80010f8 + break; + 80010f2: bf00 nop + 80010f4: e000 b.n 80010f8 + break; + 80010f6: bf00 nop } } - 80010f0: bf00 nop - 80010f2: 372c adds r7, #44 @ 0x2c - 80010f4: 46bd mov sp, r7 - 80010f6: bd90 pop {r4, r7, pc} - 80010f8: 20000b28 .word 0x20000b28 - 80010fc: 20000078 .word 0x20000078 - 8001100: 20000b70 .word 0x20000b70 - 8001104: 20000bb8 .word 0x20000bb8 - 8001108: 20000ae0 .word 0x20000ae0 - 800110c: 2000040a .word 0x2000040a - 8001110: 200003e0 .word 0x200003e0 - 8001114: 200008cc .word 0x200008cc - 8001118: 20000440 .word 0x20000440 - 800111c: 200005c4 .word 0x200005c4 - 8001120: 20000748 .word 0x20000748 + 80010f8: bf00 nop + 80010fa: 372c adds r7, #44 @ 0x2c + 80010fc: 46bd mov sp, r7 + 80010fe: bd90 pop {r4, r7, pc} + 8001100: 20000b28 .word 0x20000b28 + 8001104: 20000078 .word 0x20000078 + 8001108: 20000b70 .word 0x20000b70 + 800110c: 20000bb8 .word 0x20000bb8 + 8001110: 20000ae0 .word 0x20000ae0 + 8001114: 2000040a .word 0x2000040a + 8001118: 200003e0 .word 0x200003e0 + 800111c: 200008cc .word 0x200008cc + 8001120: 20000440 .word 0x20000440 + 8001124: 200005c4 .word 0x200005c4 + 8001128: 20000748 .word 0x20000748 -08001124 : +0800112c : void addUSBReport(uint8_t usageID){ - 8001124: b480 push {r7} - 8001126: b085 sub sp, #20 - 8001128: af00 add r7, sp, #0 - 800112a: 4603 mov r3, r0 - 800112c: 71fb strb r3, [r7, #7] + 800112c: b480 push {r7} + 800112e: b085 sub sp, #20 + 8001130: af00 add r7, sp, #0 + 8001132: 4603 mov r3, r0 + 8001134: 71fb strb r3, [r7, #7] if(usageID < 0x04 || usageID > 0x73) return; //Usage ID is out of bounds - 800112e: 79fb ldrb r3, [r7, #7] - 8001130: 2b03 cmp r3, #3 - 8001132: d922 bls.n 800117a - 8001134: 79fb ldrb r3, [r7, #7] - 8001136: 2b73 cmp r3, #115 @ 0x73 - 8001138: d81f bhi.n 800117a + 8001136: 79fb ldrb r3, [r7, #7] + 8001138: 2b03 cmp r3, #3 + 800113a: d922 bls.n 8001182 + 800113c: 79fb ldrb r3, [r7, #7] + 800113e: 2b73 cmp r3, #115 @ 0x73 + 8001140: d81f bhi.n 8001182 uint16_t bit_index = usageID - 0x04; //Offset, UsageID starts with 0x04. Gives us the actual value of the bit - 800113a: 79fb ldrb r3, [r7, #7] - 800113c: b29b uxth r3, r3 - 800113e: 3b04 subs r3, #4 - 8001140: 81fb strh r3, [r7, #14] + 8001142: 79fb ldrb r3, [r7, #7] + 8001144: b29b uxth r3, r3 + 8001146: 3b04 subs r3, #4 + 8001148: 81fb strh r3, [r7, #14] uint8_t byte_index = bit_index/8; //Calculates which byte in the REPORT array - 8001142: 89fb ldrh r3, [r7, #14] - 8001144: 08db lsrs r3, r3, #3 - 8001146: b29b uxth r3, r3 - 8001148: 737b strb r3, [r7, #13] - uint8_t bit_offset = bit_index%8; //Calculates which bits in the REPORT[byte_index] should be set/unset 800114a: 89fb ldrh r3, [r7, #14] - 800114c: b2db uxtb r3, r3 - 800114e: f003 0307 and.w r3, r3, #7 - 8001152: 733b strb r3, [r7, #12] + 800114c: 08db lsrs r3, r3, #3 + 800114e: b29b uxth r3, r3 + 8001150: 737b strb r3, [r7, #13] + uint8_t bit_offset = bit_index%8; //Calculates which bits in the REPORT[byte_index] should be set/unset + 8001152: 89fb ldrh r3, [r7, #14] + 8001154: b2db uxtb r3, r3 + 8001156: f003 0307 and.w r3, r3, #7 + 800115a: 733b strb r3, [r7, #12] REPORT.KEYPRESS[byte_index] |= (1 << bit_offset); - 8001154: 7b7b ldrb r3, [r7, #13] - 8001156: 4a0c ldr r2, [pc, #48] @ (8001188 ) - 8001158: 4413 add r3, r2 - 800115a: 789b ldrb r3, [r3, #2] - 800115c: b25a sxtb r2, r3 - 800115e: 7b3b ldrb r3, [r7, #12] - 8001160: 2101 movs r1, #1 - 8001162: fa01 f303 lsl.w r3, r1, r3 - 8001166: b25b sxtb r3, r3 - 8001168: 4313 orrs r3, r2 - 800116a: b25a sxtb r2, r3 - 800116c: 7b7b ldrb r3, [r7, #13] - 800116e: b2d1 uxtb r1, r2 - 8001170: 4a05 ldr r2, [pc, #20] @ (8001188 ) - 8001172: 4413 add r3, r2 - 8001174: 460a mov r2, r1 - 8001176: 709a strb r2, [r3, #2] - 8001178: e000 b.n 800117c + 800115c: 7b7b ldrb r3, [r7, #13] + 800115e: 4a0c ldr r2, [pc, #48] @ (8001190 ) + 8001160: 4413 add r3, r2 + 8001162: 789b ldrb r3, [r3, #2] + 8001164: b25a sxtb r2, r3 + 8001166: 7b3b ldrb r3, [r7, #12] + 8001168: 2101 movs r1, #1 + 800116a: fa01 f303 lsl.w r3, r1, r3 + 800116e: b25b sxtb r3, r3 + 8001170: 4313 orrs r3, r2 + 8001172: b25a sxtb r2, r3 + 8001174: 7b7b ldrb r3, [r7, #13] + 8001176: b2d1 uxtb r1, r2 + 8001178: 4a05 ldr r2, [pc, #20] @ (8001190 ) + 800117a: 4413 add r3, r2 + 800117c: 460a mov r2, r1 + 800117e: 709a strb r2, [r3, #2] + 8001180: e000 b.n 8001184 if(usageID < 0x04 || usageID > 0x73) return; //Usage ID is out of bounds - 800117a: bf00 nop + 8001182: bf00 nop } - 800117c: 3714 adds r7, #20 - 800117e: 46bd mov sp, r7 - 8001180: f85d 7b04 ldr.w r7, [sp], #4 - 8001184: 4770 bx lr - 8001186: bf00 nop - 8001188: 20000390 .word 0x20000390 + 8001184: 3714 adds r7, #20 + 8001186: 46bd mov sp, r7 + 8001188: f85d 7b04 ldr.w r7, [sp], #4 + 800118c: 4770 bx lr + 800118e: bf00 nop + 8001190: 20000390 .word 0x20000390 -0800118c : +08001194 : void matrixScan(void){ - 800118c: b580 push {r7, lr} - 800118e: b082 sub sp, #8 - 8001190: af00 add r7, sp, #0 + 8001194: b580 push {r7, lr} + 8001196: b082 sub sp, #8 + 8001198: af00 add r7, sp, #0 for (uint8_t col = 0; col < COL; col++){ - 8001192: 2300 movs r3, #0 - 8001194: 71fb strb r3, [r7, #7] - 8001196: e05f b.n 8001258 + 800119a: 2300 movs r3, #0 + 800119c: 71fb strb r3, [r7, #7] + 800119e: e05f b.n 8001260 HAL_GPIO_WritePin(COLUMN_PINS[col].GPIOx, COLUMN_PINS[col].PIN, GPIO_PIN_SET); - 8001198: 79fb ldrb r3, [r7, #7] - 800119a: 4a33 ldr r2, [pc, #204] @ (8001268 ) - 800119c: f852 0033 ldr.w r0, [r2, r3, lsl #3] 80011a0: 79fb ldrb r3, [r7, #7] - 80011a2: 4a31 ldr r2, [pc, #196] @ (8001268 ) - 80011a4: 00db lsls r3, r3, #3 - 80011a6: 4413 add r3, r2 - 80011a8: 889b ldrh r3, [r3, #4] - 80011aa: 2201 movs r2, #1 - 80011ac: 4619 mov r1, r3 - 80011ae: f001 fd79 bl 8002ca4 + 80011a2: 4a33 ldr r2, [pc, #204] @ (8001270 ) + 80011a4: f852 0033 ldr.w r0, [r2, r3, lsl #3] + 80011a8: 79fb ldrb r3, [r7, #7] + 80011aa: 4a31 ldr r2, [pc, #196] @ (8001270 ) + 80011ac: 00db lsls r3, r3, #3 + 80011ae: 4413 add r3, r2 + 80011b0: 889b ldrh r3, [r3, #4] + 80011b2: 2201 movs r2, #1 + 80011b4: 4619 mov r1, r3 + 80011b6: f001 fdd1 bl 8002d5c HAL_Delay(1); - 80011b2: 2001 movs r0, #1 - 80011b4: f000 fe92 bl 8001edc + 80011ba: 2001 movs r0, #1 + 80011bc: f000 feea bl 8001f94 for(uint8_t row = 0; row < ROW; row++){ - 80011b8: 2300 movs r3, #0 - 80011ba: 71bb strb r3, [r7, #6] - 80011bc: e039 b.n 8001232 + 80011c0: 2300 movs r3, #0 + 80011c2: 71bb strb r3, [r7, #6] + 80011c4: e039 b.n 800123a uint8_t new_key = HAL_GPIO_ReadPin(ROW_PINS[row].GPIOx, ROW_PINS[row].PIN); - 80011be: 79bb ldrb r3, [r7, #6] - 80011c0: 4a2a ldr r2, [pc, #168] @ (800126c ) - 80011c2: f852 2033 ldr.w r2, [r2, r3, lsl #3] 80011c6: 79bb ldrb r3, [r7, #6] - 80011c8: 4928 ldr r1, [pc, #160] @ (800126c ) - 80011ca: 00db lsls r3, r3, #3 - 80011cc: 440b add r3, r1 - 80011ce: 889b ldrh r3, [r3, #4] - 80011d0: 4619 mov r1, r3 - 80011d2: 4610 mov r0, r2 - 80011d4: f001 fd4e bl 8002c74 - 80011d8: 4603 mov r3, r0 - 80011da: 717b strb r3, [r7, #5] + 80011c8: 4a2a ldr r2, [pc, #168] @ (8001274 ) + 80011ca: f852 2033 ldr.w r2, [r2, r3, lsl #3] + 80011ce: 79bb ldrb r3, [r7, #6] + 80011d0: 4928 ldr r1, [pc, #160] @ (8001274 ) + 80011d2: 00db lsls r3, r3, #3 + 80011d4: 440b add r3, r1 + 80011d6: 889b ldrh r3, [r3, #4] + 80011d8: 4619 mov r1, r3 + 80011da: 4610 mov r0, r2 + 80011dc: f001 fda6 bl 8002d2c + 80011e0: 4603 mov r3, r0 + 80011e2: 717b strb r3, [r7, #5] if(new_key != KEYSTATE[row][col]){ - 80011dc: 79ba ldrb r2, [r7, #6] - 80011de: 79f9 ldrb r1, [r7, #7] - 80011e0: 4823 ldr r0, [pc, #140] @ (8001270 ) - 80011e2: 4613 mov r3, r2 - 80011e4: 009b lsls r3, r3, #2 - 80011e6: 4413 add r3, r2 - 80011e8: 4403 add r3, r0 - 80011ea: 440b add r3, r1 - 80011ec: 781b ldrb r3, [r3, #0] - 80011ee: 797a ldrb r2, [r7, #5] - 80011f0: 429a cmp r2, r3 - 80011f2: d00c beq.n 800120e + 80011e4: 79ba ldrb r2, [r7, #6] + 80011e6: 79f9 ldrb r1, [r7, #7] + 80011e8: 4823 ldr r0, [pc, #140] @ (8001278 ) + 80011ea: 4613 mov r3, r2 + 80011ec: 009b lsls r3, r3, #2 + 80011ee: 4413 add r3, r2 + 80011f0: 4403 add r3, r0 + 80011f2: 440b add r3, r1 + 80011f4: 781b ldrb r3, [r3, #0] + 80011f6: 797a ldrb r2, [r7, #5] + 80011f8: 429a cmp r2, r3 + 80011fa: d00c beq.n 8001216 KEYSTATE_CHANGED_FLAG = 1; - 80011f4: 4b1f ldr r3, [pc, #124] @ (8001274 ) - 80011f6: 2201 movs r2, #1 - 80011f8: 701a strb r2, [r3, #0] + 80011fc: 4b1f ldr r3, [pc, #124] @ (800127c ) + 80011fe: 2201 movs r2, #1 + 8001200: 701a strb r2, [r3, #0] KEYSTATE[row][col] = new_key; - 80011fa: 79ba ldrb r2, [r7, #6] - 80011fc: 79f9 ldrb r1, [r7, #7] - 80011fe: 481c ldr r0, [pc, #112] @ (8001270 ) - 8001200: 4613 mov r3, r2 - 8001202: 009b lsls r3, r3, #2 - 8001204: 4413 add r3, r2 - 8001206: 4403 add r3, r0 - 8001208: 440b add r3, r1 - 800120a: 797a ldrb r2, [r7, #5] - 800120c: 701a strb r2, [r3, #0] + 8001202: 79ba ldrb r2, [r7, #6] + 8001204: 79f9 ldrb r1, [r7, #7] + 8001206: 481c ldr r0, [pc, #112] @ (8001278 ) + 8001208: 4613 mov r3, r2 + 800120a: 009b lsls r3, r3, #2 + 800120c: 4413 add r3, r2 + 800120e: 4403 add r3, r0 + 8001210: 440b add r3, r1 + 8001212: 797a ldrb r2, [r7, #5] + 8001214: 701a strb r2, [r3, #0] } if(new_key){ - 800120e: 797b ldrb r3, [r7, #5] - 8001210: 2b00 cmp r3, #0 - 8001212: d00b beq.n 800122c + 8001216: 797b ldrb r3, [r7, #5] + 8001218: 2b00 cmp r3, #0 + 800121a: d00b beq.n 8001234 addUSBReport(KEYCODES[row][col]); - 8001214: 79ba ldrb r2, [r7, #6] - 8001216: 79f9 ldrb r1, [r7, #7] - 8001218: 4817 ldr r0, [pc, #92] @ (8001278 ) - 800121a: 4613 mov r3, r2 - 800121c: 009b lsls r3, r3, #2 - 800121e: 4413 add r3, r2 - 8001220: 4403 add r3, r0 - 8001222: 440b add r3, r1 - 8001224: 781b ldrb r3, [r3, #0] - 8001226: 4618 mov r0, r3 - 8001228: f7ff ff7c bl 8001124 + 800121c: 79ba ldrb r2, [r7, #6] + 800121e: 79f9 ldrb r1, [r7, #7] + 8001220: 4817 ldr r0, [pc, #92] @ (8001280 ) + 8001222: 4613 mov r3, r2 + 8001224: 009b lsls r3, r3, #2 + 8001226: 4413 add r3, r2 + 8001228: 4403 add r3, r0 + 800122a: 440b add r3, r1 + 800122c: 781b ldrb r3, [r3, #0] + 800122e: 4618 mov r0, r3 + 8001230: f7ff ff7c bl 800112c for(uint8_t row = 0; row < ROW; row++){ - 800122c: 79bb ldrb r3, [r7, #6] - 800122e: 3301 adds r3, #1 - 8001230: 71bb strb r3, [r7, #6] - 8001232: 79bb ldrb r3, [r7, #6] - 8001234: 2b05 cmp r3, #5 - 8001236: d9c2 bls.n 80011be + 8001234: 79bb ldrb r3, [r7, #6] + 8001236: 3301 adds r3, #1 + 8001238: 71bb strb r3, [r7, #6] + 800123a: 79bb ldrb r3, [r7, #6] + 800123c: 2b05 cmp r3, #5 + 800123e: d9c2 bls.n 80011c6 } } HAL_GPIO_WritePin(COLUMN_PINS[col].GPIOx, COLUMN_PINS[col].PIN, GPIO_PIN_RESET); - 8001238: 79fb ldrb r3, [r7, #7] - 800123a: 4a0b ldr r2, [pc, #44] @ (8001268 ) - 800123c: f852 0033 ldr.w r0, [r2, r3, lsl #3] 8001240: 79fb ldrb r3, [r7, #7] - 8001242: 4a09 ldr r2, [pc, #36] @ (8001268 ) - 8001244: 00db lsls r3, r3, #3 - 8001246: 4413 add r3, r2 - 8001248: 889b ldrh r3, [r3, #4] - 800124a: 2200 movs r2, #0 - 800124c: 4619 mov r1, r3 - 800124e: f001 fd29 bl 8002ca4 + 8001242: 4a0b ldr r2, [pc, #44] @ (8001270 ) + 8001244: f852 0033 ldr.w r0, [r2, r3, lsl #3] + 8001248: 79fb ldrb r3, [r7, #7] + 800124a: 4a09 ldr r2, [pc, #36] @ (8001270 ) + 800124c: 00db lsls r3, r3, #3 + 800124e: 4413 add r3, r2 + 8001250: 889b ldrh r3, [r3, #4] + 8001252: 2200 movs r2, #0 + 8001254: 4619 mov r1, r3 + 8001256: f001 fd81 bl 8002d5c for (uint8_t col = 0; col < COL; col++){ - 8001252: 79fb ldrb r3, [r7, #7] - 8001254: 3301 adds r3, #1 - 8001256: 71fb strb r3, [r7, #7] - 8001258: 79fb ldrb r3, [r7, #7] - 800125a: 2b04 cmp r3, #4 - 800125c: d99c bls.n 8001198 + 800125a: 79fb ldrb r3, [r7, #7] + 800125c: 3301 adds r3, #1 + 800125e: 71fb strb r3, [r7, #7] + 8001260: 79fb ldrb r3, [r7, #7] + 8001262: 2b04 cmp r3, #4 + 8001264: d99c bls.n 80011a0 } } - 800125e: bf00 nop - 8001260: bf00 nop - 8001262: 3708 adds r7, #8 - 8001264: 46bd mov sp, r7 - 8001266: bd80 pop {r7, pc} - 8001268: 20000030 .word 0x20000030 - 800126c: 20000000 .word 0x20000000 - 8001270: 200003ec .word 0x200003ec - 8001274: 200003e8 .word 0x200003e8 - 8001278: 20000058 .word 0x20000058 + 8001266: bf00 nop + 8001268: bf00 nop + 800126a: 3708 adds r7, #8 + 800126c: 46bd mov sp, r7 + 800126e: bd80 pop {r7, pc} + 8001270: 20000030 .word 0x20000030 + 8001274: 20000000 .word 0x20000000 + 8001278: 200003ec .word 0x200003ec + 800127c: 200003e8 .word 0x200003e8 + 8001280: 20000058 .word 0x20000058 -0800127c : +08001284 : + + +// Read TIM3 encoder counter, calculate delta and add corresponding keycodes +void encoderProcess(void){ + 8001284: b580 push {r7, lr} + 8001286: b086 sub sp, #24 + 8001288: af00 add r7, sp, #0 + int32_t cnt = (int32_t)__HAL_TIM_GET_COUNTER(&htim3); + 800128a: 4b28 ldr r3, [pc, #160] @ (800132c ) + 800128c: 681b ldr r3, [r3, #0] + 800128e: 6a5b ldr r3, [r3, #36] @ 0x24 + 8001290: 603b str r3, [r7, #0] + int32_t diff = cnt - LAST_ENCODER_COUNT; + 8001292: 4b27 ldr r3, [pc, #156] @ (8001330 ) + 8001294: 681b ldr r3, [r3, #0] + 8001296: 683a ldr r2, [r7, #0] + 8001298: 1ad3 subs r3, r2, r3 + 800129a: 617b str r3, [r7, #20] + // TIM3 configured as 16-bit counter (period 65535). Fix wrap-around. + if(diff > 32767) diff -= 65536; + 800129c: 697b ldr r3, [r7, #20] + 800129e: f5b3 4f00 cmp.w r3, #32768 @ 0x8000 + 80012a2: db03 blt.n 80012ac + 80012a4: 697b ldr r3, [r7, #20] + 80012a6: f5a3 3380 sub.w r3, r3, #65536 @ 0x10000 + 80012aa: 617b str r3, [r7, #20] + if(diff < -32768) diff += 65536; + 80012ac: 697b ldr r3, [r7, #20] + 80012ae: f513 4f00 cmn.w r3, #32768 @ 0x8000 + 80012b2: da03 bge.n 80012bc + 80012b4: 697b ldr r3, [r7, #20] + 80012b6: f503 3380 add.w r3, r3, #65536 @ 0x10000 + 80012ba: 617b str r3, [r7, #20] + if(diff > 0){ + 80012bc: 697b ldr r3, [r7, #20] + 80012be: 2b00 cmp r3, #0 + 80012c0: dd14 ble.n 80012ec + int steps = diff; + 80012c2: 697b ldr r3, [r7, #20] + 80012c4: 613b str r3, [r7, #16] + if(steps > 10) steps = 10; // cap bursts + 80012c6: 693b ldr r3, [r7, #16] + 80012c8: 2b0a cmp r3, #10 + 80012ca: dd01 ble.n 80012d0 + 80012cc: 230a movs r3, #10 + 80012ce: 613b str r3, [r7, #16] + for(int i = 0; i < steps; i++){ + 80012d0: 2300 movs r3, #0 + 80012d2: 60fb str r3, [r7, #12] + 80012d4: e005 b.n 80012e2 + // CW -> KEYCODES[0][0] + addUSBReport(KEY_RIGHT_ARROW); + 80012d6: 204f movs r0, #79 @ 0x4f + 80012d8: f7ff ff28 bl 800112c + for(int i = 0; i < steps; i++){ + 80012dc: 68fb ldr r3, [r7, #12] + 80012de: 3301 adds r3, #1 + 80012e0: 60fb str r3, [r7, #12] + 80012e2: 68fa ldr r2, [r7, #12] + 80012e4: 693b ldr r3, [r7, #16] + 80012e6: 429a cmp r2, r3 + 80012e8: dbf5 blt.n 80012d6 + 80012ea: e017 b.n 800131c + } + }else if(diff < 0){ + 80012ec: 697b ldr r3, [r7, #20] + 80012ee: 2b00 cmp r3, #0 + 80012f0: da14 bge.n 800131c + int steps = -diff; + 80012f2: 697b ldr r3, [r7, #20] + 80012f4: 425b negs r3, r3 + 80012f6: 60bb str r3, [r7, #8] + if(steps > 10) steps = 10; + 80012f8: 68bb ldr r3, [r7, #8] + 80012fa: 2b0a cmp r3, #10 + 80012fc: dd01 ble.n 8001302 + 80012fe: 230a movs r3, #10 + 8001300: 60bb str r3, [r7, #8] + for(int i = 0; i < steps; i++){ + 8001302: 2300 movs r3, #0 + 8001304: 607b str r3, [r7, #4] + 8001306: e005 b.n 8001314 + // CCW -> KEYCODES[0][1] + addUSBReport(KEY_LEFT_ARROW); + 8001308: 2050 movs r0, #80 @ 0x50 + 800130a: f7ff ff0f bl 800112c + for(int i = 0; i < steps; i++){ + 800130e: 687b ldr r3, [r7, #4] + 8001310: 3301 adds r3, #1 + 8001312: 607b str r3, [r7, #4] + 8001314: 687a ldr r2, [r7, #4] + 8001316: 68bb ldr r3, [r7, #8] + 8001318: 429a cmp r2, r3 + 800131a: dbf5 blt.n 8001308 } } LAST_ENCODER_COUNT = cnt; + 800131c: 4a04 ldr r2, [pc, #16] @ (8001330 ) + 800131e: 683b ldr r3, [r7, #0] + 8001320: 6013 str r3, [r2, #0] } + 8001322: bf00 nop + 8001324: 3718 adds r7, #24 + 8001326: 46bd mov sp, r7 + 8001328: bd80 pop {r7, pc} + 800132a: bf00 nop + 800132c: 20000a98 .word 0x20000a98 + 8001330: 2000040c .word 0x2000040c + +08001334 : void resetReport(void){ - 800127c: b580 push {r7, lr} - 800127e: af00 add r7, sp, #0 + 8001334: b580 push {r7, lr} + 8001336: af00 add r7, sp, #0 memset(REPORT.KEYPRESS, 0, sizeof(REPORT.KEYPRESS)); - 8001280: 220c movs r2, #12 - 8001282: 2100 movs r1, #0 - 8001284: 4802 ldr r0, [pc, #8] @ (8001290 ) - 8001286: f00a fa3f bl 800b708 + 8001338: 220c movs r2, #12 + 800133a: 2100 movs r1, #0 + 800133c: 4802 ldr r0, [pc, #8] @ (8001348 ) + 800133e: f00a fa3f bl 800b7c0 } - 800128a: bf00 nop - 800128c: bd80 pop {r7, pc} - 800128e: bf00 nop - 8001290: 20000392 .word 0x20000392 + 8001342: bf00 nop + 8001344: bd80 pop {r7, pc} + 8001346: bf00 nop + 8001348: 20000392 .word 0x20000392 -08001294 : +0800134c : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { - 8001294: b480 push {r7} - 8001296: af00 add r7, sp, #0 + 800134c: b480 push {r7} + 800134e: 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"); - 8001298: b672 cpsid i + 8001350: b672 cpsid i } - 800129a: bf00 nop + 8001352: 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) - 800129c: bf00 nop - 800129e: e7fd b.n 800129c + 8001354: bf00 nop + 8001356: e7fd b.n 8001354 -080012a0 : +08001358 : /* USER CODE END 0 */ /** * Initializes the Global MSP. */ void HAL_MspInit(void) { - 80012a0: b480 push {r7} - 80012a2: b083 sub sp, #12 - 80012a4: af00 add r7, sp, #0 + 8001358: b480 push {r7} + 800135a: b083 sub sp, #12 + 800135c: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 80012a6: 2300 movs r3, #0 - 80012a8: 607b str r3, [r7, #4] - 80012aa: 4b10 ldr r3, [pc, #64] @ (80012ec ) - 80012ac: 6c5b ldr r3, [r3, #68] @ 0x44 - 80012ae: 4a0f ldr r2, [pc, #60] @ (80012ec ) - 80012b0: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 80012b4: 6453 str r3, [r2, #68] @ 0x44 - 80012b6: 4b0d ldr r3, [pc, #52] @ (80012ec ) - 80012b8: 6c5b ldr r3, [r3, #68] @ 0x44 - 80012ba: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 80012be: 607b str r3, [r7, #4] - 80012c0: 687b ldr r3, [r7, #4] + 800135e: 2300 movs r3, #0 + 8001360: 607b str r3, [r7, #4] + 8001362: 4b10 ldr r3, [pc, #64] @ (80013a4 ) + 8001364: 6c5b ldr r3, [r3, #68] @ 0x44 + 8001366: 4a0f ldr r2, [pc, #60] @ (80013a4 ) + 8001368: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 800136c: 6453 str r3, [r2, #68] @ 0x44 + 800136e: 4b0d ldr r3, [pc, #52] @ (80013a4 ) + 8001370: 6c5b ldr r3, [r3, #68] @ 0x44 + 8001372: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 8001376: 607b str r3, [r7, #4] + 8001378: 687b ldr r3, [r7, #4] __HAL_RCC_PWR_CLK_ENABLE(); - 80012c2: 2300 movs r3, #0 - 80012c4: 603b str r3, [r7, #0] - 80012c6: 4b09 ldr r3, [pc, #36] @ (80012ec ) - 80012c8: 6c1b ldr r3, [r3, #64] @ 0x40 - 80012ca: 4a08 ldr r2, [pc, #32] @ (80012ec ) - 80012cc: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 80012d0: 6413 str r3, [r2, #64] @ 0x40 - 80012d2: 4b06 ldr r3, [pc, #24] @ (80012ec ) - 80012d4: 6c1b ldr r3, [r3, #64] @ 0x40 - 80012d6: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 80012da: 603b str r3, [r7, #0] - 80012dc: 683b ldr r3, [r7, #0] + 800137a: 2300 movs r3, #0 + 800137c: 603b str r3, [r7, #0] + 800137e: 4b09 ldr r3, [pc, #36] @ (80013a4 ) + 8001380: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001382: 4a08 ldr r2, [pc, #32] @ (80013a4 ) + 8001384: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8001388: 6413 str r3, [r2, #64] @ 0x40 + 800138a: 4b06 ldr r3, [pc, #24] @ (80013a4 ) + 800138c: 6c1b ldr r3, [r3, #64] @ 0x40 + 800138e: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 8001392: 603b str r3, [r7, #0] + 8001394: 683b ldr r3, [r7, #0] /* System interrupt init*/ /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } - 80012de: bf00 nop - 80012e0: 370c adds r7, #12 - 80012e2: 46bd mov sp, r7 - 80012e4: f85d 7b04 ldr.w r7, [sp], #4 - 80012e8: 4770 bx lr - 80012ea: bf00 nop - 80012ec: 40023800 .word 0x40023800 + 8001396: bf00 nop + 8001398: 370c adds r7, #12 + 800139a: 46bd mov sp, r7 + 800139c: f85d 7b04 ldr.w r7, [sp], #4 + 80013a0: 4770 bx lr + 80013a2: bf00 nop + 80013a4: 40023800 .word 0x40023800 -080012f0 : +080013a8 : /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { - 80012f0: b480 push {r7} - 80012f2: af00 add r7, sp, #0 + 80013a8: b480 push {r7} + 80013aa: 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) - 80012f4: bf00 nop - 80012f6: e7fd b.n 80012f4 + 80013ac: bf00 nop + 80013ae: e7fd b.n 80013ac -080012f8 : +080013b0 : /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { - 80012f8: b480 push {r7} - 80012fa: af00 add r7, sp, #0 + 80013b0: b480 push {r7} + 80013b2: af00 add r7, sp, #0 /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) - 80012fc: bf00 nop - 80012fe: e7fd b.n 80012fc + 80013b4: bf00 nop + 80013b6: e7fd b.n 80013b4 -08001300 : +080013b8 : /** * @brief This function handles Memory management fault. */ void MemManage_Handler(void) { - 8001300: b480 push {r7} - 8001302: af00 add r7, sp, #0 + 80013b8: b480 push {r7} + 80013ba: af00 add r7, sp, #0 /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) - 8001304: bf00 nop - 8001306: e7fd b.n 8001304 + 80013bc: bf00 nop + 80013be: e7fd b.n 80013bc -08001308 : +080013c0 : /** * @brief This function handles Pre-fetch fault, memory access fault. */ void BusFault_Handler(void) { - 8001308: b480 push {r7} - 800130a: af00 add r7, sp, #0 + 80013c0: b480 push {r7} + 80013c2: af00 add r7, sp, #0 /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) - 800130c: bf00 nop - 800130e: e7fd b.n 800130c + 80013c4: bf00 nop + 80013c6: e7fd b.n 80013c4 -08001310 : +080013c8 : /** * @brief This function handles Undefined instruction or illegal state. */ void UsageFault_Handler(void) { - 8001310: b480 push {r7} - 8001312: af00 add r7, sp, #0 + 80013c8: b480 push {r7} + 80013ca: af00 add r7, sp, #0 /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) - 8001314: bf00 nop - 8001316: e7fd b.n 8001314 + 80013cc: bf00 nop + 80013ce: e7fd b.n 80013cc -08001318 : +080013d0 : /** * @brief This function handles System service call via SWI instruction. */ void SVC_Handler(void) { - 8001318: b480 push {r7} - 800131a: af00 add r7, sp, #0 + 80013d0: b480 push {r7} + 80013d2: af00 add r7, sp, #0 /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } - 800131c: bf00 nop - 800131e: 46bd mov sp, r7 - 8001320: f85d 7b04 ldr.w r7, [sp], #4 - 8001324: 4770 bx lr + 80013d4: bf00 nop + 80013d6: 46bd mov sp, r7 + 80013d8: f85d 7b04 ldr.w r7, [sp], #4 + 80013dc: 4770 bx lr -08001326 : +080013de : /** * @brief This function handles Debug monitor. */ void DebugMon_Handler(void) { - 8001326: b480 push {r7} - 8001328: af00 add r7, sp, #0 + 80013de: b480 push {r7} + 80013e0: af00 add r7, sp, #0 /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } - 800132a: bf00 nop - 800132c: 46bd mov sp, r7 - 800132e: f85d 7b04 ldr.w r7, [sp], #4 - 8001332: 4770 bx lr + 80013e2: bf00 nop + 80013e4: 46bd mov sp, r7 + 80013e6: f85d 7b04 ldr.w r7, [sp], #4 + 80013ea: 4770 bx lr -08001334 : +080013ec : /** * @brief This function handles Pendable request for system service. */ void PendSV_Handler(void) { - 8001334: b480 push {r7} - 8001336: af00 add r7, sp, #0 + 80013ec: b480 push {r7} + 80013ee: af00 add r7, sp, #0 /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } - 8001338: bf00 nop - 800133a: 46bd mov sp, r7 - 800133c: f85d 7b04 ldr.w r7, [sp], #4 - 8001340: 4770 bx lr + 80013f0: bf00 nop + 80013f2: 46bd mov sp, r7 + 80013f4: f85d 7b04 ldr.w r7, [sp], #4 + 80013f8: 4770 bx lr -08001342 : +080013fa : /** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { - 8001342: b580 push {r7, lr} - 8001344: af00 add r7, sp, #0 + 80013fa: b580 push {r7, lr} + 80013fc: af00 add r7, sp, #0 /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); - 8001346: f000 fda9 bl 8001e9c + 80013fe: f000 fda9 bl 8001f54 /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } - 800134a: bf00 nop - 800134c: bd80 pop {r7, pc} + 8001402: bf00 nop + 8001404: bd80 pop {r7, pc} ... -08001350 : +08001408 : /** * @brief This function handles DMA1 stream0 global interrupt. */ void DMA1_Stream0_IRQHandler(void) { - 8001350: b580 push {r7, lr} - 8001352: af00 add r7, sp, #0 + 8001408: b580 push {r7, lr} + 800140a: 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); - 8001354: 4802 ldr r0, [pc, #8] @ (8001360 ) - 8001356: f001 f88f bl 8002478 + 800140c: 4802 ldr r0, [pc, #8] @ (8001418 ) + 800140e: f001 f88f bl 8002530 /* USER CODE BEGIN DMA1_Stream0_IRQn 1 */ /* USER CODE END DMA1_Stream0_IRQn 1 */ } - 800135a: bf00 nop - 800135c: bd80 pop {r7, pc} - 800135e: bf00 nop - 8001360: 20000cc0 .word 0x20000cc0 + 8001412: bf00 nop + 8001414: bd80 pop {r7, pc} + 8001416: bf00 nop + 8001418: 20000cc0 .word 0x20000cc0 -08001364 : +0800141c : /** * @brief This function handles DMA1 stream2 global interrupt. */ void DMA1_Stream2_IRQHandler(void) { - 8001364: b580 push {r7, lr} - 8001366: af00 add r7, sp, #0 + 800141c: b580 push {r7, lr} + 800141e: 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); - 8001368: 4802 ldr r0, [pc, #8] @ (8001374 ) - 800136a: f001 f885 bl 8002478 + 8001420: 4802 ldr r0, [pc, #8] @ (800142c ) + 8001422: f001 f885 bl 8002530 /* USER CODE BEGIN DMA1_Stream2_IRQn 1 */ /* USER CODE END DMA1_Stream2_IRQn 1 */ } - 800136e: bf00 nop - 8001370: bd80 pop {r7, pc} - 8001372: bf00 nop - 8001374: 20000c00 .word 0x20000c00 + 8001426: bf00 nop + 8001428: bd80 pop {r7, pc} + 800142a: bf00 nop + 800142c: 20000c00 .word 0x20000c00 -08001378 : +08001430 : /** * @brief This function handles DMA1 stream4 global interrupt. */ void DMA1_Stream4_IRQHandler(void) { - 8001378: b580 push {r7, lr} - 800137a: af00 add r7, sp, #0 + 8001430: b580 push {r7, lr} + 8001432: 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); - 800137c: 4802 ldr r0, [pc, #8] @ (8001388 ) - 800137e: f001 f87b bl 8002478 + 8001434: 4802 ldr r0, [pc, #8] @ (8001440 ) + 8001436: f001 f87b bl 8002530 /* USER CODE BEGIN DMA1_Stream4_IRQn 1 */ /* USER CODE END DMA1_Stream4_IRQn 1 */ } - 8001382: bf00 nop - 8001384: bd80 pop {r7, pc} - 8001386: bf00 nop - 8001388: 20000c60 .word 0x20000c60 + 800143a: bf00 nop + 800143c: bd80 pop {r7, pc} + 800143e: bf00 nop + 8001440: 20000c60 .word 0x20000c60 -0800138c : +08001444 : /** * @brief This function handles DMA1 stream5 global interrupt. */ void DMA1_Stream5_IRQHandler(void) { - 800138c: b580 push {r7, lr} - 800138e: af00 add r7, sp, #0 + 8001444: b580 push {r7, lr} + 8001446: 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); - 8001390: 4802 ldr r0, [pc, #8] @ (800139c ) - 8001392: f001 f871 bl 8002478 + 8001448: 4802 ldr r0, [pc, #8] @ (8001454 ) + 800144a: f001 f871 bl 8002530 /* USER CODE BEGIN DMA1_Stream5_IRQn 1 */ /* USER CODE END DMA1_Stream5_IRQn 1 */ } - 8001396: bf00 nop - 8001398: bd80 pop {r7, pc} - 800139a: bf00 nop - 800139c: 20000e40 .word 0x20000e40 + 800144e: bf00 nop + 8001450: bd80 pop {r7, pc} + 8001452: bf00 nop + 8001454: 20000e40 .word 0x20000e40 -080013a0 : +08001458 : /** * @brief This function handles DMA1 stream6 global interrupt. */ void DMA1_Stream6_IRQHandler(void) { - 80013a0: b580 push {r7, lr} - 80013a2: af00 add r7, sp, #0 + 8001458: b580 push {r7, lr} + 800145a: 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); - 80013a4: 4802 ldr r0, [pc, #8] @ (80013b0 ) - 80013a6: f001 f867 bl 8002478 + 800145c: 4802 ldr r0, [pc, #8] @ (8001468 ) + 800145e: f001 f867 bl 8002530 /* USER CODE BEGIN DMA1_Stream6_IRQn 1 */ /* USER CODE END DMA1_Stream6_IRQn 1 */ } - 80013aa: bf00 nop - 80013ac: bd80 pop {r7, pc} - 80013ae: bf00 nop - 80013b0: 20000ea0 .word 0x20000ea0 + 8001462: bf00 nop + 8001464: bd80 pop {r7, pc} + 8001466: bf00 nop + 8001468: 20000ea0 .word 0x20000ea0 -080013b4 : +0800146c : /** * @brief This function handles USART1 global interrupt. */ void USART1_IRQHandler(void) { - 80013b4: b580 push {r7, lr} - 80013b6: af00 add r7, sp, #0 + 800146c: b580 push {r7, lr} + 800146e: af00 add r7, sp, #0 /* USER CODE BEGIN USART1_IRQn 0 */ /* USER CODE END USART1_IRQn 0 */ HAL_UART_IRQHandler(&huart1); - 80013b8: 4802 ldr r0, [pc, #8] @ (80013c4 ) - 80013ba: f005 fb23 bl 8006a04 + 8001470: 4802 ldr r0, [pc, #8] @ (800147c ) + 8001472: f005 fb23 bl 8006abc /* USER CODE BEGIN USART1_IRQn 1 */ /* USER CODE END USART1_IRQn 1 */ } - 80013be: bf00 nop - 80013c0: bd80 pop {r7, pc} - 80013c2: bf00 nop - 80013c4: 20000b70 .word 0x20000b70 + 8001476: bf00 nop + 8001478: bd80 pop {r7, pc} + 800147a: bf00 nop + 800147c: 20000b70 .word 0x20000b70 -080013c8 : +08001480 : /** * @brief This function handles USART2 global interrupt. */ void USART2_IRQHandler(void) { - 80013c8: b580 push {r7, lr} - 80013ca: af00 add r7, sp, #0 + 8001480: b580 push {r7, lr} + 8001482: af00 add r7, sp, #0 /* USER CODE BEGIN USART2_IRQn 0 */ /* USER CODE END USART2_IRQn 0 */ HAL_UART_IRQHandler(&huart2); - 80013cc: 4802 ldr r0, [pc, #8] @ (80013d8 ) - 80013ce: f005 fb19 bl 8006a04 + 8001484: 4802 ldr r0, [pc, #8] @ (8001490 ) + 8001486: f005 fb19 bl 8006abc /* USER CODE BEGIN USART2_IRQn 1 */ /* USER CODE END USART2_IRQn 1 */ } - 80013d2: bf00 nop - 80013d4: bd80 pop {r7, pc} - 80013d6: bf00 nop - 80013d8: 20000bb8 .word 0x20000bb8 + 800148a: bf00 nop + 800148c: bd80 pop {r7, pc} + 800148e: bf00 nop + 8001490: 20000bb8 .word 0x20000bb8 -080013dc : +08001494 : /** * @brief This function handles DMA1 stream7 global interrupt. */ void DMA1_Stream7_IRQHandler(void) { - 80013dc: b580 push {r7, lr} - 80013de: af00 add r7, sp, #0 + 8001494: b580 push {r7, lr} + 8001496: 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); - 80013e0: 4802 ldr r0, [pc, #8] @ (80013ec ) - 80013e2: f001 f849 bl 8002478 + 8001498: 4802 ldr r0, [pc, #8] @ (80014a4 ) + 800149a: f001 f849 bl 8002530 /* USER CODE BEGIN DMA1_Stream7_IRQn 1 */ /* USER CODE END DMA1_Stream7_IRQn 1 */ } - 80013e6: bf00 nop - 80013e8: bd80 pop {r7, pc} - 80013ea: bf00 nop - 80013ec: 20000d20 .word 0x20000d20 + 800149e: bf00 nop + 80014a0: bd80 pop {r7, pc} + 80014a2: bf00 nop + 80014a4: 20000d20 .word 0x20000d20 -080013f0 : +080014a8 : /** * @brief This function handles UART4 global interrupt. */ void UART4_IRQHandler(void) { - 80013f0: b580 push {r7, lr} - 80013f2: af00 add r7, sp, #0 + 80014a8: b580 push {r7, lr} + 80014aa: af00 add r7, sp, #0 /* USER CODE BEGIN UART4_IRQn 0 */ /* USER CODE END UART4_IRQn 0 */ HAL_UART_IRQHandler(&huart4); - 80013f4: 4802 ldr r0, [pc, #8] @ (8001400 ) - 80013f6: f005 fb05 bl 8006a04 + 80014ac: 4802 ldr r0, [pc, #8] @ (80014b8 ) + 80014ae: f005 fb05 bl 8006abc /* USER CODE BEGIN UART4_IRQn 1 */ /* USER CODE END UART4_IRQn 1 */ } - 80013fa: bf00 nop - 80013fc: bd80 pop {r7, pc} - 80013fe: bf00 nop - 8001400: 20000ae0 .word 0x20000ae0 + 80014b2: bf00 nop + 80014b4: bd80 pop {r7, pc} + 80014b6: bf00 nop + 80014b8: 20000ae0 .word 0x20000ae0 -08001404 : +080014bc : /** * @brief This function handles UART5 global interrupt. */ void UART5_IRQHandler(void) { - 8001404: b580 push {r7, lr} - 8001406: af00 add r7, sp, #0 + 80014bc: b580 push {r7, lr} + 80014be: af00 add r7, sp, #0 /* USER CODE BEGIN UART5_IRQn 0 */ /* USER CODE END UART5_IRQn 0 */ HAL_UART_IRQHandler(&huart5); - 8001408: 4802 ldr r0, [pc, #8] @ (8001414 ) - 800140a: f005 fafb bl 8006a04 + 80014c0: 4802 ldr r0, [pc, #8] @ (80014cc ) + 80014c2: f005 fafb bl 8006abc /* USER CODE BEGIN UART5_IRQn 1 */ /* USER CODE END UART5_IRQn 1 */ } - 800140e: bf00 nop - 8001410: bd80 pop {r7, pc} - 8001412: bf00 nop - 8001414: 20000b28 .word 0x20000b28 + 80014c6: bf00 nop + 80014c8: bd80 pop {r7, pc} + 80014ca: bf00 nop + 80014cc: 20000b28 .word 0x20000b28 -08001418 : +080014d0 : /** * @brief This function handles DMA2 stream2 global interrupt. */ void DMA2_Stream2_IRQHandler(void) { - 8001418: b580 push {r7, lr} - 800141a: af00 add r7, sp, #0 + 80014d0: b580 push {r7, lr} + 80014d2: 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); - 800141c: 4802 ldr r0, [pc, #8] @ (8001428 ) - 800141e: f001 f82b bl 8002478 + 80014d4: 4802 ldr r0, [pc, #8] @ (80014e0 ) + 80014d6: f001 f82b bl 8002530 /* USER CODE BEGIN DMA2_Stream2_IRQn 1 */ /* USER CODE END DMA2_Stream2_IRQn 1 */ } - 8001422: bf00 nop - 8001424: bd80 pop {r7, pc} - 8001426: bf00 nop - 8001428: 20000d80 .word 0x20000d80 + 80014da: bf00 nop + 80014dc: bd80 pop {r7, pc} + 80014de: bf00 nop + 80014e0: 20000d80 .word 0x20000d80 -0800142c : +080014e4 : /** * @brief This function handles USB On The Go FS global interrupt. */ void OTG_FS_IRQHandler(void) { - 800142c: b580 push {r7, lr} - 800142e: af00 add r7, sp, #0 + 80014e4: b580 push {r7, lr} + 80014e6: 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); - 8001430: 4802 ldr r0, [pc, #8] @ (800143c ) - 8001432: f001 fee0 bl 80031f6 + 80014e8: 4802 ldr r0, [pc, #8] @ (80014f4 ) + 80014ea: f001 fee0 bl 80032ae /* USER CODE BEGIN OTG_FS_IRQn 1 */ /* USER CODE END OTG_FS_IRQn 1 */ } - 8001436: bf00 nop - 8001438: bd80 pop {r7, pc} - 800143a: bf00 nop - 800143c: 200013e4 .word 0x200013e4 + 80014ee: bf00 nop + 80014f0: bd80 pop {r7, pc} + 80014f2: bf00 nop + 80014f4: 200013e4 .word 0x200013e4 -08001440 : +080014f8 : /** * @brief This function handles DMA2 stream7 global interrupt. */ void DMA2_Stream7_IRQHandler(void) { - 8001440: b580 push {r7, lr} - 8001442: af00 add r7, sp, #0 + 80014f8: b580 push {r7, lr} + 80014fa: 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); - 8001444: 4802 ldr r0, [pc, #8] @ (8001450 ) - 8001446: f001 f817 bl 8002478 + 80014fc: 4802 ldr r0, [pc, #8] @ (8001508 ) + 80014fe: f001 f817 bl 8002530 /* USER CODE BEGIN DMA2_Stream7_IRQn 1 */ /* USER CODE END DMA2_Stream7_IRQn 1 */ } - 800144a: bf00 nop - 800144c: bd80 pop {r7, pc} - 800144e: bf00 nop - 8001450: 20000de0 .word 0x20000de0 + 8001502: bf00 nop + 8001504: bd80 pop {r7, pc} + 8001506: bf00 nop + 8001508: 20000de0 .word 0x20000de0 -08001454 : +0800150c : * configuration. * @param None * @retval None */ void SystemInit(void) { - 8001454: b480 push {r7} - 8001456: af00 add r7, sp, #0 + 800150c: b480 push {r7} + 800150e: 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 */ - 8001458: 4b06 ldr r3, [pc, #24] @ (8001474 ) - 800145a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 800145e: 4a05 ldr r2, [pc, #20] @ (8001474 ) - 8001460: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000 - 8001464: f8c2 3088 str.w r3, [r2, #136] @ 0x88 + 8001510: 4b06 ldr r3, [pc, #24] @ (800152c ) + 8001512: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8001516: 4a05 ldr r2, [pc, #20] @ (800152c ) + 8001518: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000 + 800151c: 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 */ } - 8001468: bf00 nop - 800146a: 46bd mov sp, r7 - 800146c: f85d 7b04 ldr.w r7, [sp], #4 - 8001470: 4770 bx lr - 8001472: bf00 nop - 8001474: e000ed00 .word 0xe000ed00 + 8001520: bf00 nop + 8001522: 46bd mov sp, r7 + 8001524: f85d 7b04 ldr.w r7, [sp], #4 + 8001528: 4770 bx lr + 800152a: bf00 nop + 800152c: e000ed00 .word 0xe000ed00 -08001478 : +08001530 : TIM_HandleTypeDef htim2; TIM_HandleTypeDef htim3; void MX_TIM2_Init(void) { - 8001478: b580 push {r7, lr} - 800147a: b088 sub sp, #32 - 800147c: af00 add r7, sp, #0 + 8001530: b580 push {r7, lr} + 8001532: b088 sub sp, #32 + 8001534: af00 add r7, sp, #0 TIM_OC_InitTypeDef sConfigOC = {0}; - 800147e: 1d3b adds r3, r7, #4 - 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] - 800148c: 615a str r2, [r3, #20] - 800148e: 619a str r2, [r3, #24] + 8001536: 1d3b adds r3, r7, #4 + 8001538: 2200 movs r2, #0 + 800153a: 601a str r2, [r3, #0] + 800153c: 605a str r2, [r3, #4] + 800153e: 609a str r2, [r3, #8] + 8001540: 60da str r2, [r3, #12] + 8001542: 611a str r2, [r3, #16] + 8001544: 615a str r2, [r3, #20] + 8001546: 619a str r2, [r3, #24] htim2.Instance = TIM2; - 8001490: 4b1a ldr r3, [pc, #104] @ (80014fc ) - 8001492: f04f 4280 mov.w r2, #1073741824 @ 0x40000000 - 8001496: 601a str r2, [r3, #0] + 8001548: 4b1a ldr r3, [pc, #104] @ (80015b4 ) + 800154a: f04f 4280 mov.w r2, #1073741824 @ 0x40000000 + 800154e: 601a str r2, [r3, #0] htim2.Init.Prescaler = 0; - 8001498: 4b18 ldr r3, [pc, #96] @ (80014fc ) - 800149a: 2200 movs r2, #0 - 800149c: 605a str r2, [r3, #4] + 8001550: 4b18 ldr r3, [pc, #96] @ (80015b4 ) + 8001552: 2200 movs r2, #0 + 8001554: 605a str r2, [r3, #4] htim2.Init.CounterMode = TIM_COUNTERMODE_UP; - 800149e: 4b17 ldr r3, [pc, #92] @ (80014fc ) - 80014a0: 2200 movs r2, #0 - 80014a2: 609a str r2, [r3, #8] + 8001556: 4b17 ldr r3, [pc, #92] @ (80015b4 ) + 8001558: 2200 movs r2, #0 + 800155a: 609a str r2, [r3, #8] htim2.Init.Period = 9; - 80014a4: 4b15 ldr r3, [pc, #84] @ (80014fc ) - 80014a6: 2209 movs r2, #9 - 80014a8: 60da str r2, [r3, #12] + 800155c: 4b15 ldr r3, [pc, #84] @ (80015b4 ) + 800155e: 2209 movs r2, #9 + 8001560: 60da str r2, [r3, #12] htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; - 80014aa: 4b14 ldr r3, [pc, #80] @ (80014fc ) - 80014ac: 2200 movs r2, #0 - 80014ae: 611a str r2, [r3, #16] + 8001562: 4b14 ldr r3, [pc, #80] @ (80015b4 ) + 8001564: 2200 movs r2, #0 + 8001566: 611a str r2, [r3, #16] htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; - 80014b0: 4b12 ldr r3, [pc, #72] @ (80014fc ) - 80014b2: 2200 movs r2, #0 - 80014b4: 619a str r2, [r3, #24] + 8001568: 4b12 ldr r3, [pc, #72] @ (80015b4 ) + 800156a: 2200 movs r2, #0 + 800156c: 619a str r2, [r3, #24] if (HAL_TIM_PWM_Init(&htim2) != HAL_OK) Error_Handler(); - 80014b6: 4811 ldr r0, [pc, #68] @ (80014fc ) - 80014b8: f004 f8ea bl 8005690 - 80014bc: 4603 mov r3, r0 - 80014be: 2b00 cmp r3, #0 - 80014c0: d001 beq.n 80014c6 - 80014c2: f7ff fee7 bl 8001294 + 800156e: 4811 ldr r0, [pc, #68] @ (80015b4 ) + 8001570: f004 f8ea bl 8005748 + 8001574: 4603 mov r3, r0 + 8001576: 2b00 cmp r3, #0 + 8001578: d001 beq.n 800157e + 800157a: f7ff fee7 bl 800134c sConfigOC.OCMode = TIM_OCMODE_PWM1; - 80014c6: 2360 movs r3, #96 @ 0x60 - 80014c8: 607b str r3, [r7, #4] + 800157e: 2360 movs r3, #96 @ 0x60 + 8001580: 607b str r3, [r7, #4] sConfigOC.Pulse = 0; - 80014ca: 2300 movs r3, #0 - 80014cc: 60bb str r3, [r7, #8] + 8001582: 2300 movs r3, #0 + 8001584: 60bb str r3, [r7, #8] sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; - 80014ce: 2300 movs r3, #0 - 80014d0: 60fb str r3, [r7, #12] + 8001586: 2300 movs r3, #0 + 8001588: 60fb str r3, [r7, #12] sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; - 80014d2: 2300 movs r3, #0 - 80014d4: 617b str r3, [r7, #20] + 800158a: 2300 movs r3, #0 + 800158c: 617b str r3, [r7, #20] if (HAL_TIM_PWM_ConfigChannel(&htim2, &sConfigOC, TIM_CHANNEL_1) != HAL_OK) Error_Handler(); - 80014d6: 1d3b adds r3, r7, #4 - 80014d8: 2200 movs r2, #0 - 80014da: 4619 mov r1, r3 - 80014dc: 4807 ldr r0, [pc, #28] @ (80014fc ) - 80014de: f004 fcff bl 8005ee0 - 80014e2: 4603 mov r3, r0 - 80014e4: 2b00 cmp r3, #0 - 80014e6: d001 beq.n 80014ec - 80014e8: f7ff fed4 bl 8001294 + 800158e: 1d3b adds r3, r7, #4 + 8001590: 2200 movs r2, #0 + 8001592: 4619 mov r1, r3 + 8001594: 4807 ldr r0, [pc, #28] @ (80015b4 ) + 8001596: f004 fcff bl 8005f98 + 800159a: 4603 mov r3, r0 + 800159c: 2b00 cmp r3, #0 + 800159e: d001 beq.n 80015a4 + 80015a0: f7ff fed4 bl 800134c HAL_TIM_MspPostInit(&htim2); - 80014ec: 4803 ldr r0, [pc, #12] @ (80014fc ) - 80014ee: f000 f8b7 bl 8001660 + 80015a4: 4803 ldr r0, [pc, #12] @ (80015b4 ) + 80015a6: f000 f8b7 bl 8001718 } - 80014f2: bf00 nop - 80014f4: 3720 adds r7, #32 - 80014f6: 46bd mov sp, r7 - 80014f8: bd80 pop {r7, pc} - 80014fa: bf00 nop - 80014fc: 20000a50 .word 0x20000a50 + 80015aa: bf00 nop + 80015ac: 3720 adds r7, #32 + 80015ae: 46bd mov sp, r7 + 80015b0: bd80 pop {r7, pc} + 80015b2: bf00 nop + 80015b4: 20000a50 .word 0x20000a50 -08001500 : +080015b8 : void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) { - 8001500: b580 push {r7, lr} - 8001502: b082 sub sp, #8 - 8001504: af00 add r7, sp, #0 - 8001506: 6078 str r0, [r7, #4] + 80015b8: b580 push {r7, lr} + 80015ba: b082 sub sp, #8 + 80015bc: af00 add r7, sp, #0 + 80015be: 6078 str r0, [r7, #4] if (htim->Instance == TIM2) { - 8001508: 687b ldr r3, [r7, #4] - 800150a: 681b ldr r3, [r3, #0] - 800150c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8001510: d103 bne.n 800151a + 80015c0: 687b ldr r3, [r7, #4] + 80015c2: 681b ldr r3, [r3, #0] + 80015c4: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 80015c8: d103 bne.n 80015d2 HAL_TIM_PWM_Stop_DMA(&htim2, TIM_CHANNEL_1); - 8001512: 2100 movs r1, #0 - 8001514: 4803 ldr r0, [pc, #12] @ (8001524 ) - 8001516: f004 fadd bl 8005ad4 + 80015ca: 2100 movs r1, #0 + 80015cc: 4803 ldr r0, [pc, #12] @ (80015dc ) + 80015ce: f004 fadd bl 8005b8c } } - 800151a: bf00 nop - 800151c: 3708 adds r7, #8 - 800151e: 46bd mov sp, r7 - 8001520: bd80 pop {r7, pc} - 8001522: bf00 nop - 8001524: 20000a50 .word 0x20000a50 + 80015d2: bf00 nop + 80015d4: 3708 adds r7, #8 + 80015d6: 46bd mov sp, r7 + 80015d8: bd80 pop {r7, pc} + 80015da: bf00 nop + 80015dc: 20000a50 .word 0x20000a50 -08001528 : +080015e0 : /* TIM3 init function */ void MX_TIM3_Init(void) { - 8001528: b580 push {r7, lr} - 800152a: b08c sub sp, #48 @ 0x30 - 800152c: af00 add r7, sp, #0 + 80015e0: b580 push {r7, lr} + 80015e2: b08c sub sp, #48 @ 0x30 + 80015e4: af00 add r7, sp, #0 /* USER CODE BEGIN TIM3_Init 0 */ /* USER CODE END TIM3_Init 0 */ TIM_Encoder_InitTypeDef sConfig = {0}; - 800152e: f107 030c add.w r3, r7, #12 - 8001532: 2224 movs r2, #36 @ 0x24 - 8001534: 2100 movs r1, #0 - 8001536: 4618 mov r0, r3 - 8001538: f00a f8e6 bl 800b708 + 80015e6: f107 030c add.w r3, r7, #12 + 80015ea: 2224 movs r2, #36 @ 0x24 + 80015ec: 2100 movs r1, #0 + 80015ee: 4618 mov r0, r3 + 80015f0: f00a f8e6 bl 800b7c0 TIM_MasterConfigTypeDef sMasterConfig = {0}; - 800153c: 1d3b adds r3, r7, #4 - 800153e: 2200 movs r2, #0 - 8001540: 601a str r2, [r3, #0] - 8001542: 605a str r2, [r3, #4] + 80015f4: 1d3b adds r3, r7, #4 + 80015f6: 2200 movs r2, #0 + 80015f8: 601a str r2, [r3, #0] + 80015fa: 605a str r2, [r3, #4] /* USER CODE BEGIN TIM3_Init 1 */ /* USER CODE END TIM3_Init 1 */ htim3.Instance = TIM3; - 8001544: 4b20 ldr r3, [pc, #128] @ (80015c8 ) - 8001546: 4a21 ldr r2, [pc, #132] @ (80015cc ) - 8001548: 601a str r2, [r3, #0] + 80015fc: 4b20 ldr r3, [pc, #128] @ (8001680 ) + 80015fe: 4a21 ldr r2, [pc, #132] @ (8001684 ) + 8001600: 601a str r2, [r3, #0] htim3.Init.Prescaler = 0; - 800154a: 4b1f ldr r3, [pc, #124] @ (80015c8 ) - 800154c: 2200 movs r2, #0 - 800154e: 605a str r2, [r3, #4] + 8001602: 4b1f ldr r3, [pc, #124] @ (8001680 ) + 8001604: 2200 movs r2, #0 + 8001606: 605a str r2, [r3, #4] htim3.Init.CounterMode = TIM_COUNTERMODE_UP; - 8001550: 4b1d ldr r3, [pc, #116] @ (80015c8 ) - 8001552: 2200 movs r2, #0 - 8001554: 609a str r2, [r3, #8] + 8001608: 4b1d ldr r3, [pc, #116] @ (8001680 ) + 800160a: 2200 movs r2, #0 + 800160c: 609a str r2, [r3, #8] htim3.Init.Period = 65535; - 8001556: 4b1c ldr r3, [pc, #112] @ (80015c8 ) - 8001558: f64f 72ff movw r2, #65535 @ 0xffff - 800155c: 60da str r2, [r3, #12] + 800160e: 4b1c ldr r3, [pc, #112] @ (8001680 ) + 8001610: f64f 72ff movw r2, #65535 @ 0xffff + 8001614: 60da str r2, [r3, #12] htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; - 800155e: 4b1a ldr r3, [pc, #104] @ (80015c8 ) - 8001560: 2200 movs r2, #0 - 8001562: 611a str r2, [r3, #16] + 8001616: 4b1a ldr r3, [pc, #104] @ (8001680 ) + 8001618: 2200 movs r2, #0 + 800161a: 611a str r2, [r3, #16] htim3.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; - 8001564: 4b18 ldr r3, [pc, #96] @ (80015c8 ) - 8001566: 2200 movs r2, #0 - 8001568: 619a str r2, [r3, #24] + 800161c: 4b18 ldr r3, [pc, #96] @ (8001680 ) + 800161e: 2200 movs r2, #0 + 8001620: 619a str r2, [r3, #24] sConfig.EncoderMode = TIM_ENCODERMODE_TI1; - 800156a: 2301 movs r3, #1 - 800156c: 60fb str r3, [r7, #12] + 8001622: 2301 movs r3, #1 + 8001624: 60fb str r3, [r7, #12] sConfig.IC1Polarity = TIM_ICPOLARITY_RISING; - 800156e: 2300 movs r3, #0 - 8001570: 613b str r3, [r7, #16] + 8001626: 2300 movs r3, #0 + 8001628: 613b str r3, [r7, #16] sConfig.IC1Selection = TIM_ICSELECTION_DIRECTTI; - 8001572: 2301 movs r3, #1 - 8001574: 617b str r3, [r7, #20] + 800162a: 2301 movs r3, #1 + 800162c: 617b str r3, [r7, #20] sConfig.IC1Prescaler = TIM_ICPSC_DIV1; - 8001576: 2300 movs r3, #0 - 8001578: 61bb str r3, [r7, #24] + 800162e: 2300 movs r3, #0 + 8001630: 61bb str r3, [r7, #24] sConfig.IC1Filter = 0; - 800157a: 2300 movs r3, #0 - 800157c: 61fb str r3, [r7, #28] + 8001632: 2300 movs r3, #0 + 8001634: 61fb str r3, [r7, #28] sConfig.IC2Polarity = TIM_ICPOLARITY_RISING; - 800157e: 2300 movs r3, #0 - 8001580: 623b str r3, [r7, #32] + 8001636: 2300 movs r3, #0 + 8001638: 623b str r3, [r7, #32] sConfig.IC2Selection = TIM_ICSELECTION_DIRECTTI; - 8001582: 2301 movs r3, #1 - 8001584: 627b str r3, [r7, #36] @ 0x24 + 800163a: 2301 movs r3, #1 + 800163c: 627b str r3, [r7, #36] @ 0x24 sConfig.IC2Prescaler = TIM_ICPSC_DIV1; - 8001586: 2300 movs r3, #0 - 8001588: 62bb str r3, [r7, #40] @ 0x28 + 800163e: 2300 movs r3, #0 + 8001640: 62bb str r3, [r7, #40] @ 0x28 sConfig.IC2Filter = 0; - 800158a: 2300 movs r3, #0 - 800158c: 62fb str r3, [r7, #44] @ 0x2c + 8001642: 2300 movs r3, #0 + 8001644: 62fb str r3, [r7, #44] @ 0x2c if (HAL_TIM_Encoder_Init(&htim3, &sConfig) != HAL_OK) - 800158e: f107 030c add.w r3, r7, #12 - 8001592: 4619 mov r1, r3 - 8001594: 480c ldr r0, [pc, #48] @ (80015c8 ) - 8001596: f004 fb6f bl 8005c78 - 800159a: 4603 mov r3, r0 - 800159c: 2b00 cmp r3, #0 - 800159e: d001 beq.n 80015a4 + 8001646: f107 030c add.w r3, r7, #12 + 800164a: 4619 mov r1, r3 + 800164c: 480c ldr r0, [pc, #48] @ (8001680 ) + 800164e: f004 fb6f bl 8005d30 + 8001652: 4603 mov r3, r0 + 8001654: 2b00 cmp r3, #0 + 8001656: d001 beq.n 800165c { Error_Handler(); - 80015a0: f7ff fe78 bl 8001294 + 8001658: f7ff fe78 bl 800134c } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; - 80015a4: 2300 movs r3, #0 - 80015a6: 607b str r3, [r7, #4] + 800165c: 2300 movs r3, #0 + 800165e: 607b str r3, [r7, #4] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; - 80015a8: 2300 movs r3, #0 - 80015aa: 60bb str r3, [r7, #8] + 8001660: 2300 movs r3, #0 + 8001662: 60bb str r3, [r7, #8] if (HAL_TIMEx_MasterConfigSynchronization(&htim3, &sMasterConfig) != HAL_OK) - 80015ac: 1d3b adds r3, r7, #4 - 80015ae: 4619 mov r1, r3 - 80015b0: 4805 ldr r0, [pc, #20] @ (80015c8 ) - 80015b2: f005 f8b9 bl 8006728 - 80015b6: 4603 mov r3, r0 - 80015b8: 2b00 cmp r3, #0 - 80015ba: d001 beq.n 80015c0 + 8001664: 1d3b adds r3, r7, #4 + 8001666: 4619 mov r1, r3 + 8001668: 4805 ldr r0, [pc, #20] @ (8001680 ) + 800166a: f005 f8b9 bl 80067e0 + 800166e: 4603 mov r3, r0 + 8001670: 2b00 cmp r3, #0 + 8001672: d001 beq.n 8001678 { Error_Handler(); - 80015bc: f7ff fe6a bl 8001294 + 8001674: f7ff fe6a bl 800134c } /* USER CODE BEGIN TIM3_Init 2 */ /* USER CODE END TIM3_Init 2 */ } - 80015c0: bf00 nop - 80015c2: 3730 adds r7, #48 @ 0x30 - 80015c4: 46bd mov sp, r7 - 80015c6: bd80 pop {r7, pc} - 80015c8: 20000a98 .word 0x20000a98 - 80015cc: 40000400 .word 0x40000400 + 8001678: bf00 nop + 800167a: 3730 adds r7, #48 @ 0x30 + 800167c: 46bd mov sp, r7 + 800167e: bd80 pop {r7, pc} + 8001680: 20000a98 .word 0x20000a98 + 8001684: 40000400 .word 0x40000400 -080015d0 : +08001688 : /* USER CODE END TIM2_MspInit 1 */ } } void HAL_TIM_Encoder_MspInit(TIM_HandleTypeDef* tim_encoderHandle) { - 80015d0: b580 push {r7, lr} - 80015d2: b08a sub sp, #40 @ 0x28 - 80015d4: af00 add r7, sp, #0 - 80015d6: 6078 str r0, [r7, #4] + 8001688: b580 push {r7, lr} + 800168a: b08a sub sp, #40 @ 0x28 + 800168c: af00 add r7, sp, #0 + 800168e: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 80015d8: f107 0314 add.w r3, r7, #20 - 80015dc: 2200 movs r2, #0 - 80015de: 601a str r2, [r3, #0] - 80015e0: 605a str r2, [r3, #4] - 80015e2: 609a str r2, [r3, #8] - 80015e4: 60da str r2, [r3, #12] - 80015e6: 611a str r2, [r3, #16] + 8001690: f107 0314 add.w r3, r7, #20 + 8001694: 2200 movs r2, #0 + 8001696: 601a str r2, [r3, #0] + 8001698: 605a str r2, [r3, #4] + 800169a: 609a str r2, [r3, #8] + 800169c: 60da str r2, [r3, #12] + 800169e: 611a str r2, [r3, #16] if(tim_encoderHandle->Instance==TIM3) - 80015e8: 687b ldr r3, [r7, #4] - 80015ea: 681b ldr r3, [r3, #0] - 80015ec: 4a19 ldr r2, [pc, #100] @ (8001654 ) - 80015ee: 4293 cmp r3, r2 - 80015f0: d12b bne.n 800164a + 80016a0: 687b ldr r3, [r7, #4] + 80016a2: 681b ldr r3, [r3, #0] + 80016a4: 4a19 ldr r2, [pc, #100] @ (800170c ) + 80016a6: 4293 cmp r3, r2 + 80016a8: d12b bne.n 8001702 { /* USER CODE BEGIN TIM3_MspInit 0 */ /* USER CODE END TIM3_MspInit 0 */ /* TIM3 clock enable */ __HAL_RCC_TIM3_CLK_ENABLE(); - 80015f2: 2300 movs r3, #0 - 80015f4: 613b str r3, [r7, #16] - 80015f6: 4b18 ldr r3, [pc, #96] @ (8001658 ) - 80015f8: 6c1b ldr r3, [r3, #64] @ 0x40 - 80015fa: 4a17 ldr r2, [pc, #92] @ (8001658 ) - 80015fc: f043 0302 orr.w r3, r3, #2 - 8001600: 6413 str r3, [r2, #64] @ 0x40 - 8001602: 4b15 ldr r3, [pc, #84] @ (8001658 ) - 8001604: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001606: f003 0302 and.w r3, r3, #2 - 800160a: 613b str r3, [r7, #16] - 800160c: 693b ldr r3, [r7, #16] + 80016aa: 2300 movs r3, #0 + 80016ac: 613b str r3, [r7, #16] + 80016ae: 4b18 ldr r3, [pc, #96] @ (8001710 ) + 80016b0: 6c1b ldr r3, [r3, #64] @ 0x40 + 80016b2: 4a17 ldr r2, [pc, #92] @ (8001710 ) + 80016b4: f043 0302 orr.w r3, r3, #2 + 80016b8: 6413 str r3, [r2, #64] @ 0x40 + 80016ba: 4b15 ldr r3, [pc, #84] @ (8001710 ) + 80016bc: 6c1b ldr r3, [r3, #64] @ 0x40 + 80016be: f003 0302 and.w r3, r3, #2 + 80016c2: 613b str r3, [r7, #16] + 80016c4: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOA_CLK_ENABLE(); - 800160e: 2300 movs r3, #0 - 8001610: 60fb str r3, [r7, #12] - 8001612: 4b11 ldr r3, [pc, #68] @ (8001658 ) - 8001614: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001616: 4a10 ldr r2, [pc, #64] @ (8001658 ) - 8001618: f043 0301 orr.w r3, r3, #1 - 800161c: 6313 str r3, [r2, #48] @ 0x30 - 800161e: 4b0e ldr r3, [pc, #56] @ (8001658 ) - 8001620: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001622: f003 0301 and.w r3, r3, #1 - 8001626: 60fb str r3, [r7, #12] - 8001628: 68fb ldr r3, [r7, #12] + 80016c6: 2300 movs r3, #0 + 80016c8: 60fb str r3, [r7, #12] + 80016ca: 4b11 ldr r3, [pc, #68] @ (8001710 ) + 80016cc: 6b1b ldr r3, [r3, #48] @ 0x30 + 80016ce: 4a10 ldr r2, [pc, #64] @ (8001710 ) + 80016d0: f043 0301 orr.w r3, r3, #1 + 80016d4: 6313 str r3, [r2, #48] @ 0x30 + 80016d6: 4b0e ldr r3, [pc, #56] @ (8001710 ) + 80016d8: 6b1b ldr r3, [r3, #48] @ 0x30 + 80016da: f003 0301 and.w r3, r3, #1 + 80016de: 60fb str r3, [r7, #12] + 80016e0: 68fb ldr r3, [r7, #12] /**TIM3 GPIO Configuration PA6 ------> TIM3_CH1 PA7 ------> TIM3_CH2 */ GPIO_InitStruct.Pin = GPIO_PIN_6|GPIO_PIN_7; - 800162a: 23c0 movs r3, #192 @ 0xc0 - 800162c: 617b str r3, [r7, #20] + 80016e2: 23c0 movs r3, #192 @ 0xc0 + 80016e4: 617b str r3, [r7, #20] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800162e: 2302 movs r3, #2 - 8001630: 61bb str r3, [r7, #24] + 80016e6: 2302 movs r3, #2 + 80016e8: 61bb str r3, [r7, #24] GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001632: 2300 movs r3, #0 - 8001634: 61fb str r3, [r7, #28] + 80016ea: 2300 movs r3, #0 + 80016ec: 61fb str r3, [r7, #28] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 8001636: 2300 movs r3, #0 - 8001638: 623b str r3, [r7, #32] + 80016ee: 2300 movs r3, #0 + 80016f0: 623b str r3, [r7, #32] GPIO_InitStruct.Alternate = GPIO_AF2_TIM3; - 800163a: 2302 movs r3, #2 - 800163c: 627b str r3, [r7, #36] @ 0x24 + 80016f2: 2302 movs r3, #2 + 80016f4: 627b str r3, [r7, #36] @ 0x24 HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 800163e: f107 0314 add.w r3, r7, #20 - 8001642: 4619 mov r1, r3 - 8001644: 4805 ldr r0, [pc, #20] @ (800165c ) - 8001646: f001 f981 bl 800294c + 80016f6: f107 0314 add.w r3, r7, #20 + 80016fa: 4619 mov r1, r3 + 80016fc: 4805 ldr r0, [pc, #20] @ (8001714 ) + 80016fe: f001 f981 bl 8002a04 /* USER CODE BEGIN TIM3_MspInit 1 */ /* USER CODE END TIM3_MspInit 1 */ } } - 800164a: bf00 nop - 800164c: 3728 adds r7, #40 @ 0x28 - 800164e: 46bd mov sp, r7 - 8001650: bd80 pop {r7, pc} - 8001652: bf00 nop - 8001654: 40000400 .word 0x40000400 - 8001658: 40023800 .word 0x40023800 - 800165c: 40020000 .word 0x40020000 + 8001702: bf00 nop + 8001704: 3728 adds r7, #40 @ 0x28 + 8001706: 46bd mov sp, r7 + 8001708: bd80 pop {r7, pc} + 800170a: bf00 nop + 800170c: 40000400 .word 0x40000400 + 8001710: 40023800 .word 0x40023800 + 8001714: 40020000 .word 0x40020000 -08001660 : +08001718 : void HAL_TIM_MspPostInit(TIM_HandleTypeDef* timHandle) { - 8001660: b580 push {r7, lr} - 8001662: b088 sub sp, #32 - 8001664: af00 add r7, sp, #0 - 8001666: 6078 str r0, [r7, #4] + 8001718: b580 push {r7, lr} + 800171a: b088 sub sp, #32 + 800171c: af00 add r7, sp, #0 + 800171e: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8001668: f107 030c add.w r3, r7, #12 - 800166c: 2200 movs r2, #0 - 800166e: 601a str r2, [r3, #0] - 8001670: 605a str r2, [r3, #4] - 8001672: 609a str r2, [r3, #8] - 8001674: 60da str r2, [r3, #12] - 8001676: 611a str r2, [r3, #16] + 8001720: f107 030c add.w r3, r7, #12 + 8001724: 2200 movs r2, #0 + 8001726: 601a str r2, [r3, #0] + 8001728: 605a str r2, [r3, #4] + 800172a: 609a str r2, [r3, #8] + 800172c: 60da str r2, [r3, #12] + 800172e: 611a str r2, [r3, #16] if(timHandle->Instance==TIM2) - 8001678: 687b ldr r3, [r7, #4] - 800167a: 681b ldr r3, [r3, #0] - 800167c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8001680: d11d bne.n 80016be + 8001730: 687b ldr r3, [r7, #4] + 8001732: 681b ldr r3, [r3, #0] + 8001734: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8001738: d11d bne.n 8001776 { /* USER CODE BEGIN TIM2_MspPostInit 0 */ /* USER CODE END TIM2_MspPostInit 0 */ __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001682: 2300 movs r3, #0 - 8001684: 60bb str r3, [r7, #8] - 8001686: 4b10 ldr r3, [pc, #64] @ (80016c8 ) - 8001688: 6b1b ldr r3, [r3, #48] @ 0x30 - 800168a: 4a0f ldr r2, [pc, #60] @ (80016c8 ) - 800168c: f043 0301 orr.w r3, r3, #1 - 8001690: 6313 str r3, [r2, #48] @ 0x30 - 8001692: 4b0d ldr r3, [pc, #52] @ (80016c8 ) - 8001694: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001696: f003 0301 and.w r3, r3, #1 - 800169a: 60bb str r3, [r7, #8] - 800169c: 68bb ldr r3, [r7, #8] + 800173a: 2300 movs r3, #0 + 800173c: 60bb str r3, [r7, #8] + 800173e: 4b10 ldr r3, [pc, #64] @ (8001780 ) + 8001740: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001742: 4a0f ldr r2, [pc, #60] @ (8001780 ) + 8001744: f043 0301 orr.w r3, r3, #1 + 8001748: 6313 str r3, [r2, #48] @ 0x30 + 800174a: 4b0d ldr r3, [pc, #52] @ (8001780 ) + 800174c: 6b1b ldr r3, [r3, #48] @ 0x30 + 800174e: f003 0301 and.w r3, r3, #1 + 8001752: 60bb str r3, [r7, #8] + 8001754: 68bb ldr r3, [r7, #8] /**TIM2 GPIO Configuration PA5 ------> TIM2_CH1 */ GPIO_InitStruct.Pin = GPIO_PIN_5; - 800169e: 2320 movs r3, #32 - 80016a0: 60fb str r3, [r7, #12] + 8001756: 2320 movs r3, #32 + 8001758: 60fb str r3, [r7, #12] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80016a2: 2302 movs r3, #2 - 80016a4: 613b str r3, [r7, #16] + 800175a: 2302 movs r3, #2 + 800175c: 613b str r3, [r7, #16] GPIO_InitStruct.Pull = GPIO_NOPULL; - 80016a6: 2300 movs r3, #0 - 80016a8: 617b str r3, [r7, #20] + 800175e: 2300 movs r3, #0 + 8001760: 617b str r3, [r7, #20] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; - 80016aa: 2300 movs r3, #0 - 80016ac: 61bb str r3, [r7, #24] + 8001762: 2300 movs r3, #0 + 8001764: 61bb str r3, [r7, #24] GPIO_InitStruct.Alternate = GPIO_AF1_TIM2; - 80016ae: 2301 movs r3, #1 - 80016b0: 61fb str r3, [r7, #28] + 8001766: 2301 movs r3, #1 + 8001768: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 80016b2: f107 030c add.w r3, r7, #12 - 80016b6: 4619 mov r1, r3 - 80016b8: 4804 ldr r0, [pc, #16] @ (80016cc ) - 80016ba: f001 f947 bl 800294c + 800176a: f107 030c add.w r3, r7, #12 + 800176e: 4619 mov r1, r3 + 8001770: 4804 ldr r0, [pc, #16] @ (8001784 ) + 8001772: f001 f947 bl 8002a04 /* USER CODE BEGIN TIM2_MspPostInit 1 */ /* USER CODE END TIM2_MspPostInit 1 */ } } - 80016be: bf00 nop - 80016c0: 3720 adds r7, #32 - 80016c2: 46bd mov sp, r7 - 80016c4: bd80 pop {r7, pc} - 80016c6: bf00 nop - 80016c8: 40023800 .word 0x40023800 - 80016cc: 40020000 .word 0x40020000 + 8001776: bf00 nop + 8001778: 3720 adds r7, #32 + 800177a: 46bd mov sp, r7 + 800177c: bd80 pop {r7, pc} + 800177e: bf00 nop + 8001780: 40023800 .word 0x40023800 + 8001784: 40020000 .word 0x40020000 -080016d0 : +08001788 : DMA_HandleTypeDef hdma_usart2_rx; DMA_HandleTypeDef hdma_usart2_tx; /* UART4 init function */ void MX_UART4_Init(void) { - 80016d0: b580 push {r7, lr} - 80016d2: af00 add r7, sp, #0 + 8001788: b580 push {r7, lr} + 800178a: 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; - 80016d4: 4b11 ldr r3, [pc, #68] @ (800171c ) - 80016d6: 4a12 ldr r2, [pc, #72] @ (8001720 ) - 80016d8: 601a str r2, [r3, #0] + 800178c: 4b11 ldr r3, [pc, #68] @ (80017d4 ) + 800178e: 4a12 ldr r2, [pc, #72] @ (80017d8 ) + 8001790: 601a str r2, [r3, #0] huart4.Init.BaudRate = 115200; - 80016da: 4b10 ldr r3, [pc, #64] @ (800171c ) - 80016dc: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 80016e0: 605a str r2, [r3, #4] + 8001792: 4b10 ldr r3, [pc, #64] @ (80017d4 ) + 8001794: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 8001798: 605a str r2, [r3, #4] huart4.Init.WordLength = UART_WORDLENGTH_8B; - 80016e2: 4b0e ldr r3, [pc, #56] @ (800171c ) - 80016e4: 2200 movs r2, #0 - 80016e6: 609a str r2, [r3, #8] + 800179a: 4b0e ldr r3, [pc, #56] @ (80017d4 ) + 800179c: 2200 movs r2, #0 + 800179e: 609a str r2, [r3, #8] huart4.Init.StopBits = UART_STOPBITS_1; - 80016e8: 4b0c ldr r3, [pc, #48] @ (800171c ) - 80016ea: 2200 movs r2, #0 - 80016ec: 60da str r2, [r3, #12] + 80017a0: 4b0c ldr r3, [pc, #48] @ (80017d4 ) + 80017a2: 2200 movs r2, #0 + 80017a4: 60da str r2, [r3, #12] huart4.Init.Parity = UART_PARITY_NONE; - 80016ee: 4b0b ldr r3, [pc, #44] @ (800171c ) - 80016f0: 2200 movs r2, #0 - 80016f2: 611a str r2, [r3, #16] + 80017a6: 4b0b ldr r3, [pc, #44] @ (80017d4 ) + 80017a8: 2200 movs r2, #0 + 80017aa: 611a str r2, [r3, #16] huart4.Init.Mode = UART_MODE_TX_RX; - 80016f4: 4b09 ldr r3, [pc, #36] @ (800171c ) - 80016f6: 220c movs r2, #12 - 80016f8: 615a str r2, [r3, #20] + 80017ac: 4b09 ldr r3, [pc, #36] @ (80017d4 ) + 80017ae: 220c movs r2, #12 + 80017b0: 615a str r2, [r3, #20] huart4.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 80016fa: 4b08 ldr r3, [pc, #32] @ (800171c ) - 80016fc: 2200 movs r2, #0 - 80016fe: 619a str r2, [r3, #24] + 80017b2: 4b08 ldr r3, [pc, #32] @ (80017d4 ) + 80017b4: 2200 movs r2, #0 + 80017b6: 619a str r2, [r3, #24] huart4.Init.OverSampling = UART_OVERSAMPLING_16; - 8001700: 4b06 ldr r3, [pc, #24] @ (800171c ) - 8001702: 2200 movs r2, #0 - 8001704: 61da str r2, [r3, #28] + 80017b8: 4b06 ldr r3, [pc, #24] @ (80017d4 ) + 80017ba: 2200 movs r2, #0 + 80017bc: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart4) != HAL_OK) - 8001706: 4805 ldr r0, [pc, #20] @ (800171c ) - 8001708: f005 f88a bl 8006820 - 800170c: 4603 mov r3, r0 - 800170e: 2b00 cmp r3, #0 - 8001710: d001 beq.n 8001716 + 80017be: 4805 ldr r0, [pc, #20] @ (80017d4 ) + 80017c0: f005 f88a bl 80068d8 + 80017c4: 4603 mov r3, r0 + 80017c6: 2b00 cmp r3, #0 + 80017c8: d001 beq.n 80017ce { Error_Handler(); - 8001712: f7ff fdbf bl 8001294 + 80017ca: f7ff fdbf bl 800134c } /* USER CODE BEGIN UART4_Init 2 */ /* USER CODE END UART4_Init 2 */ } - 8001716: bf00 nop - 8001718: bd80 pop {r7, pc} - 800171a: bf00 nop - 800171c: 20000ae0 .word 0x20000ae0 - 8001720: 40004c00 .word 0x40004c00 + 80017ce: bf00 nop + 80017d0: bd80 pop {r7, pc} + 80017d2: bf00 nop + 80017d4: 20000ae0 .word 0x20000ae0 + 80017d8: 40004c00 .word 0x40004c00 -08001724 : +080017dc : /* UART5 init function */ void MX_UART5_Init(void) { - 8001724: b580 push {r7, lr} - 8001726: af00 add r7, sp, #0 + 80017dc: b580 push {r7, lr} + 80017de: 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; - 8001728: 4b11 ldr r3, [pc, #68] @ (8001770 ) - 800172a: 4a12 ldr r2, [pc, #72] @ (8001774 ) - 800172c: 601a str r2, [r3, #0] + 80017e0: 4b11 ldr r3, [pc, #68] @ (8001828 ) + 80017e2: 4a12 ldr r2, [pc, #72] @ (800182c ) + 80017e4: 601a str r2, [r3, #0] huart5.Init.BaudRate = 115200; - 800172e: 4b10 ldr r3, [pc, #64] @ (8001770 ) - 8001730: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 8001734: 605a str r2, [r3, #4] + 80017e6: 4b10 ldr r3, [pc, #64] @ (8001828 ) + 80017e8: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 80017ec: 605a str r2, [r3, #4] huart5.Init.WordLength = UART_WORDLENGTH_8B; - 8001736: 4b0e ldr r3, [pc, #56] @ (8001770 ) - 8001738: 2200 movs r2, #0 - 800173a: 609a str r2, [r3, #8] + 80017ee: 4b0e ldr r3, [pc, #56] @ (8001828 ) + 80017f0: 2200 movs r2, #0 + 80017f2: 609a str r2, [r3, #8] huart5.Init.StopBits = UART_STOPBITS_1; - 800173c: 4b0c ldr r3, [pc, #48] @ (8001770 ) - 800173e: 2200 movs r2, #0 - 8001740: 60da str r2, [r3, #12] + 80017f4: 4b0c ldr r3, [pc, #48] @ (8001828 ) + 80017f6: 2200 movs r2, #0 + 80017f8: 60da str r2, [r3, #12] huart5.Init.Parity = UART_PARITY_NONE; - 8001742: 4b0b ldr r3, [pc, #44] @ (8001770 ) - 8001744: 2200 movs r2, #0 - 8001746: 611a str r2, [r3, #16] + 80017fa: 4b0b ldr r3, [pc, #44] @ (8001828 ) + 80017fc: 2200 movs r2, #0 + 80017fe: 611a str r2, [r3, #16] huart5.Init.Mode = UART_MODE_TX_RX; - 8001748: 4b09 ldr r3, [pc, #36] @ (8001770 ) - 800174a: 220c movs r2, #12 - 800174c: 615a str r2, [r3, #20] + 8001800: 4b09 ldr r3, [pc, #36] @ (8001828 ) + 8001802: 220c movs r2, #12 + 8001804: 615a str r2, [r3, #20] huart5.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 800174e: 4b08 ldr r3, [pc, #32] @ (8001770 ) - 8001750: 2200 movs r2, #0 - 8001752: 619a str r2, [r3, #24] + 8001806: 4b08 ldr r3, [pc, #32] @ (8001828 ) + 8001808: 2200 movs r2, #0 + 800180a: 619a str r2, [r3, #24] huart5.Init.OverSampling = UART_OVERSAMPLING_16; - 8001754: 4b06 ldr r3, [pc, #24] @ (8001770 ) - 8001756: 2200 movs r2, #0 - 8001758: 61da str r2, [r3, #28] + 800180c: 4b06 ldr r3, [pc, #24] @ (8001828 ) + 800180e: 2200 movs r2, #0 + 8001810: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart5) != HAL_OK) - 800175a: 4805 ldr r0, [pc, #20] @ (8001770 ) - 800175c: f005 f860 bl 8006820 - 8001760: 4603 mov r3, r0 - 8001762: 2b00 cmp r3, #0 - 8001764: d001 beq.n 800176a + 8001812: 4805 ldr r0, [pc, #20] @ (8001828 ) + 8001814: f005 f860 bl 80068d8 + 8001818: 4603 mov r3, r0 + 800181a: 2b00 cmp r3, #0 + 800181c: d001 beq.n 8001822 { Error_Handler(); - 8001766: f7ff fd95 bl 8001294 + 800181e: f7ff fd95 bl 800134c } /* USER CODE BEGIN UART5_Init 2 */ /* USER CODE END UART5_Init 2 */ } - 800176a: bf00 nop - 800176c: bd80 pop {r7, pc} - 800176e: bf00 nop - 8001770: 20000b28 .word 0x20000b28 - 8001774: 40005000 .word 0x40005000 + 8001822: bf00 nop + 8001824: bd80 pop {r7, pc} + 8001826: bf00 nop + 8001828: 20000b28 .word 0x20000b28 + 800182c: 40005000 .word 0x40005000 -08001778 : +08001830 : /* USART1 init function */ void MX_USART1_UART_Init(void) { - 8001778: b580 push {r7, lr} - 800177a: af00 add r7, sp, #0 + 8001830: b580 push {r7, lr} + 8001832: 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; - 800177c: 4b11 ldr r3, [pc, #68] @ (80017c4 ) - 800177e: 4a12 ldr r2, [pc, #72] @ (80017c8 ) - 8001780: 601a str r2, [r3, #0] + 8001834: 4b11 ldr r3, [pc, #68] @ (800187c ) + 8001836: 4a12 ldr r2, [pc, #72] @ (8001880 ) + 8001838: 601a str r2, [r3, #0] huart1.Init.BaudRate = 115200; - 8001782: 4b10 ldr r3, [pc, #64] @ (80017c4 ) - 8001784: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 8001788: 605a str r2, [r3, #4] + 800183a: 4b10 ldr r3, [pc, #64] @ (800187c ) + 800183c: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 8001840: 605a str r2, [r3, #4] huart1.Init.WordLength = UART_WORDLENGTH_8B; - 800178a: 4b0e ldr r3, [pc, #56] @ (80017c4 ) - 800178c: 2200 movs r2, #0 - 800178e: 609a str r2, [r3, #8] + 8001842: 4b0e ldr r3, [pc, #56] @ (800187c ) + 8001844: 2200 movs r2, #0 + 8001846: 609a str r2, [r3, #8] huart1.Init.StopBits = UART_STOPBITS_1; - 8001790: 4b0c ldr r3, [pc, #48] @ (80017c4 ) - 8001792: 2200 movs r2, #0 - 8001794: 60da str r2, [r3, #12] + 8001848: 4b0c ldr r3, [pc, #48] @ (800187c ) + 800184a: 2200 movs r2, #0 + 800184c: 60da str r2, [r3, #12] huart1.Init.Parity = UART_PARITY_NONE; - 8001796: 4b0b ldr r3, [pc, #44] @ (80017c4 ) - 8001798: 2200 movs r2, #0 - 800179a: 611a str r2, [r3, #16] + 800184e: 4b0b ldr r3, [pc, #44] @ (800187c ) + 8001850: 2200 movs r2, #0 + 8001852: 611a str r2, [r3, #16] huart1.Init.Mode = UART_MODE_TX_RX; - 800179c: 4b09 ldr r3, [pc, #36] @ (80017c4 ) - 800179e: 220c movs r2, #12 - 80017a0: 615a str r2, [r3, #20] + 8001854: 4b09 ldr r3, [pc, #36] @ (800187c ) + 8001856: 220c movs r2, #12 + 8001858: 615a str r2, [r3, #20] huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 80017a2: 4b08 ldr r3, [pc, #32] @ (80017c4 ) - 80017a4: 2200 movs r2, #0 - 80017a6: 619a str r2, [r3, #24] + 800185a: 4b08 ldr r3, [pc, #32] @ (800187c ) + 800185c: 2200 movs r2, #0 + 800185e: 619a str r2, [r3, #24] huart1.Init.OverSampling = UART_OVERSAMPLING_16; - 80017a8: 4b06 ldr r3, [pc, #24] @ (80017c4 ) - 80017aa: 2200 movs r2, #0 - 80017ac: 61da str r2, [r3, #28] + 8001860: 4b06 ldr r3, [pc, #24] @ (800187c ) + 8001862: 2200 movs r2, #0 + 8001864: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart1) != HAL_OK) - 80017ae: 4805 ldr r0, [pc, #20] @ (80017c4 ) - 80017b0: f005 f836 bl 8006820 - 80017b4: 4603 mov r3, r0 - 80017b6: 2b00 cmp r3, #0 - 80017b8: d001 beq.n 80017be + 8001866: 4805 ldr r0, [pc, #20] @ (800187c ) + 8001868: f005 f836 bl 80068d8 + 800186c: 4603 mov r3, r0 + 800186e: 2b00 cmp r3, #0 + 8001870: d001 beq.n 8001876 { Error_Handler(); - 80017ba: f7ff fd6b bl 8001294 + 8001872: f7ff fd6b bl 800134c } /* USER CODE BEGIN USART1_Init 2 */ /* USER CODE END USART1_Init 2 */ } - 80017be: bf00 nop - 80017c0: bd80 pop {r7, pc} - 80017c2: bf00 nop - 80017c4: 20000b70 .word 0x20000b70 - 80017c8: 40011000 .word 0x40011000 + 8001876: bf00 nop + 8001878: bd80 pop {r7, pc} + 800187a: bf00 nop + 800187c: 20000b70 .word 0x20000b70 + 8001880: 40011000 .word 0x40011000 -080017cc : +08001884 : /* USART2 init function */ void MX_USART2_UART_Init(void) { - 80017cc: b580 push {r7, lr} - 80017ce: af00 add r7, sp, #0 + 8001884: b580 push {r7, lr} + 8001886: 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; - 80017d0: 4b11 ldr r3, [pc, #68] @ (8001818 ) - 80017d2: 4a12 ldr r2, [pc, #72] @ (800181c ) - 80017d4: 601a str r2, [r3, #0] + 8001888: 4b11 ldr r3, [pc, #68] @ (80018d0 ) + 800188a: 4a12 ldr r2, [pc, #72] @ (80018d4 ) + 800188c: 601a str r2, [r3, #0] huart2.Init.BaudRate = 115200; - 80017d6: 4b10 ldr r3, [pc, #64] @ (8001818 ) - 80017d8: f44f 32e1 mov.w r2, #115200 @ 0x1c200 - 80017dc: 605a str r2, [r3, #4] + 800188e: 4b10 ldr r3, [pc, #64] @ (80018d0 ) + 8001890: f44f 32e1 mov.w r2, #115200 @ 0x1c200 + 8001894: 605a str r2, [r3, #4] huart2.Init.WordLength = UART_WORDLENGTH_8B; - 80017de: 4b0e ldr r3, [pc, #56] @ (8001818 ) - 80017e0: 2200 movs r2, #0 - 80017e2: 609a str r2, [r3, #8] + 8001896: 4b0e ldr r3, [pc, #56] @ (80018d0 ) + 8001898: 2200 movs r2, #0 + 800189a: 609a str r2, [r3, #8] huart2.Init.StopBits = UART_STOPBITS_1; - 80017e4: 4b0c ldr r3, [pc, #48] @ (8001818 ) - 80017e6: 2200 movs r2, #0 - 80017e8: 60da str r2, [r3, #12] + 800189c: 4b0c ldr r3, [pc, #48] @ (80018d0 ) + 800189e: 2200 movs r2, #0 + 80018a0: 60da str r2, [r3, #12] huart2.Init.Parity = UART_PARITY_NONE; - 80017ea: 4b0b ldr r3, [pc, #44] @ (8001818 ) - 80017ec: 2200 movs r2, #0 - 80017ee: 611a str r2, [r3, #16] + 80018a2: 4b0b ldr r3, [pc, #44] @ (80018d0 ) + 80018a4: 2200 movs r2, #0 + 80018a6: 611a str r2, [r3, #16] huart2.Init.Mode = UART_MODE_TX_RX; - 80017f0: 4b09 ldr r3, [pc, #36] @ (8001818 ) - 80017f2: 220c movs r2, #12 - 80017f4: 615a str r2, [r3, #20] + 80018a8: 4b09 ldr r3, [pc, #36] @ (80018d0 ) + 80018aa: 220c movs r2, #12 + 80018ac: 615a str r2, [r3, #20] huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; - 80017f6: 4b08 ldr r3, [pc, #32] @ (8001818 ) - 80017f8: 2200 movs r2, #0 - 80017fa: 619a str r2, [r3, #24] + 80018ae: 4b08 ldr r3, [pc, #32] @ (80018d0 ) + 80018b0: 2200 movs r2, #0 + 80018b2: 619a str r2, [r3, #24] huart2.Init.OverSampling = UART_OVERSAMPLING_16; - 80017fc: 4b06 ldr r3, [pc, #24] @ (8001818 ) - 80017fe: 2200 movs r2, #0 - 8001800: 61da str r2, [r3, #28] + 80018b4: 4b06 ldr r3, [pc, #24] @ (80018d0 ) + 80018b6: 2200 movs r2, #0 + 80018b8: 61da str r2, [r3, #28] if (HAL_UART_Init(&huart2) != HAL_OK) - 8001802: 4805 ldr r0, [pc, #20] @ (8001818 ) - 8001804: f005 f80c bl 8006820 - 8001808: 4603 mov r3, r0 - 800180a: 2b00 cmp r3, #0 - 800180c: d001 beq.n 8001812 + 80018ba: 4805 ldr r0, [pc, #20] @ (80018d0 ) + 80018bc: f005 f80c bl 80068d8 + 80018c0: 4603 mov r3, r0 + 80018c2: 2b00 cmp r3, #0 + 80018c4: d001 beq.n 80018ca { Error_Handler(); - 800180e: f7ff fd41 bl 8001294 + 80018c6: f7ff fd41 bl 800134c } /* USER CODE BEGIN USART2_Init 2 */ /* USER CODE END USART2_Init 2 */ } - 8001812: bf00 nop - 8001814: bd80 pop {r7, pc} - 8001816: bf00 nop - 8001818: 20000bb8 .word 0x20000bb8 - 800181c: 40004400 .word 0x40004400 + 80018ca: bf00 nop + 80018cc: bd80 pop {r7, pc} + 80018ce: bf00 nop + 80018d0: 20000bb8 .word 0x20000bb8 + 80018d4: 40004400 .word 0x40004400 -08001820 : +080018d8 : void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) { - 8001820: b580 push {r7, lr} - 8001822: b090 sub sp, #64 @ 0x40 - 8001824: af00 add r7, sp, #0 - 8001826: 6078 str r0, [r7, #4] + 80018d8: b580 push {r7, lr} + 80018da: b090 sub sp, #64 @ 0x40 + 80018dc: af00 add r7, sp, #0 + 80018de: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 8001828: f107 032c add.w r3, r7, #44 @ 0x2c - 800182c: 2200 movs r2, #0 - 800182e: 601a str r2, [r3, #0] - 8001830: 605a str r2, [r3, #4] - 8001832: 609a str r2, [r3, #8] - 8001834: 60da str r2, [r3, #12] - 8001836: 611a str r2, [r3, #16] + 80018e0: f107 032c add.w r3, r7, #44 @ 0x2c + 80018e4: 2200 movs r2, #0 + 80018e6: 601a str r2, [r3, #0] + 80018e8: 605a str r2, [r3, #4] + 80018ea: 609a str r2, [r3, #8] + 80018ec: 60da str r2, [r3, #12] + 80018ee: 611a str r2, [r3, #16] if(uartHandle->Instance==UART4) - 8001838: 687b ldr r3, [r7, #4] - 800183a: 681b ldr r3, [r3, #0] - 800183c: 4a4a ldr r2, [pc, #296] @ (8001968 ) - 800183e: 4293 cmp r3, r2 - 8001840: f040 80a0 bne.w 8001984 + 80018f0: 687b ldr r3, [r7, #4] + 80018f2: 681b ldr r3, [r3, #0] + 80018f4: 4a4a ldr r2, [pc, #296] @ (8001a20 ) + 80018f6: 4293 cmp r3, r2 + 80018f8: f040 80a0 bne.w 8001a3c { /* USER CODE BEGIN UART4_MspInit 0 */ /* USER CODE END UART4_MspInit 0 */ /* UART4 clock enable */ __HAL_RCC_UART4_CLK_ENABLE(); - 8001844: 2300 movs r3, #0 - 8001846: 62bb str r3, [r7, #40] @ 0x28 - 8001848: 4b48 ldr r3, [pc, #288] @ (800196c ) - 800184a: 6c1b ldr r3, [r3, #64] @ 0x40 - 800184c: 4a47 ldr r2, [pc, #284] @ (800196c ) - 800184e: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 8001852: 6413 str r3, [r2, #64] @ 0x40 - 8001854: 4b45 ldr r3, [pc, #276] @ (800196c ) - 8001856: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001858: f403 2300 and.w r3, r3, #524288 @ 0x80000 - 800185c: 62bb str r3, [r7, #40] @ 0x28 - 800185e: 6abb ldr r3, [r7, #40] @ 0x28 + 80018fc: 2300 movs r3, #0 + 80018fe: 62bb str r3, [r7, #40] @ 0x28 + 8001900: 4b48 ldr r3, [pc, #288] @ (8001a24 ) + 8001902: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001904: 4a47 ldr r2, [pc, #284] @ (8001a24 ) + 8001906: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 800190a: 6413 str r3, [r2, #64] @ 0x40 + 800190c: 4b45 ldr r3, [pc, #276] @ (8001a24 ) + 800190e: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001910: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 8001914: 62bb str r3, [r7, #40] @ 0x28 + 8001916: 6abb ldr r3, [r7, #40] @ 0x28 __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001860: 2300 movs r3, #0 - 8001862: 627b str r3, [r7, #36] @ 0x24 - 8001864: 4b41 ldr r3, [pc, #260] @ (800196c ) - 8001866: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001868: 4a40 ldr r2, [pc, #256] @ (800196c ) - 800186a: f043 0301 orr.w r3, r3, #1 - 800186e: 6313 str r3, [r2, #48] @ 0x30 - 8001870: 4b3e ldr r3, [pc, #248] @ (800196c ) - 8001872: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001874: f003 0301 and.w r3, r3, #1 - 8001878: 627b str r3, [r7, #36] @ 0x24 - 800187a: 6a7b ldr r3, [r7, #36] @ 0x24 + 8001918: 2300 movs r3, #0 + 800191a: 627b str r3, [r7, #36] @ 0x24 + 800191c: 4b41 ldr r3, [pc, #260] @ (8001a24 ) + 800191e: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001920: 4a40 ldr r2, [pc, #256] @ (8001a24 ) + 8001922: f043 0301 orr.w r3, r3, #1 + 8001926: 6313 str r3, [r2, #48] @ 0x30 + 8001928: 4b3e ldr r3, [pc, #248] @ (8001a24 ) + 800192a: 6b1b ldr r3, [r3, #48] @ 0x30 + 800192c: f003 0301 and.w r3, r3, #1 + 8001930: 627b str r3, [r7, #36] @ 0x24 + 8001932: 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; - 800187c: 2303 movs r3, #3 - 800187e: 62fb str r3, [r7, #44] @ 0x2c + 8001934: 2303 movs r3, #3 + 8001936: 62fb str r3, [r7, #44] @ 0x2c GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001880: 2302 movs r3, #2 - 8001882: 633b str r3, [r7, #48] @ 0x30 + 8001938: 2302 movs r3, #2 + 800193a: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001884: 2300 movs r3, #0 - 8001886: 637b str r3, [r7, #52] @ 0x34 + 800193c: 2300 movs r3, #0 + 800193e: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8001888: 2303 movs r3, #3 - 800188a: 63bb str r3, [r7, #56] @ 0x38 + 8001940: 2303 movs r3, #3 + 8001942: 63bb str r3, [r7, #56] @ 0x38 GPIO_InitStruct.Alternate = GPIO_AF8_UART4; - 800188c: 2308 movs r3, #8 - 800188e: 63fb str r3, [r7, #60] @ 0x3c + 8001944: 2308 movs r3, #8 + 8001946: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8001890: f107 032c add.w r3, r7, #44 @ 0x2c - 8001894: 4619 mov r1, r3 - 8001896: 4836 ldr r0, [pc, #216] @ (8001970 ) - 8001898: f001 f858 bl 800294c + 8001948: f107 032c add.w r3, r7, #44 @ 0x2c + 800194c: 4619 mov r1, r3 + 800194e: 4836 ldr r0, [pc, #216] @ (8001a28 ) + 8001950: f001 f858 bl 8002a04 /* UART4 DMA Init */ /* UART4_RX Init */ hdma_uart4_rx.Instance = DMA1_Stream2; - 800189c: 4b35 ldr r3, [pc, #212] @ (8001974 ) - 800189e: 4a36 ldr r2, [pc, #216] @ (8001978 ) - 80018a0: 601a str r2, [r3, #0] + 8001954: 4b35 ldr r3, [pc, #212] @ (8001a2c ) + 8001956: 4a36 ldr r2, [pc, #216] @ (8001a30 ) + 8001958: 601a str r2, [r3, #0] hdma_uart4_rx.Init.Channel = DMA_CHANNEL_4; - 80018a2: 4b34 ldr r3, [pc, #208] @ (8001974 ) - 80018a4: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 80018a8: 605a str r2, [r3, #4] + 800195a: 4b34 ldr r3, [pc, #208] @ (8001a2c ) + 800195c: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001960: 605a str r2, [r3, #4] hdma_uart4_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - 80018aa: 4b32 ldr r3, [pc, #200] @ (8001974 ) - 80018ac: 2200 movs r2, #0 - 80018ae: 609a str r2, [r3, #8] + 8001962: 4b32 ldr r3, [pc, #200] @ (8001a2c ) + 8001964: 2200 movs r2, #0 + 8001966: 609a str r2, [r3, #8] hdma_uart4_rx.Init.PeriphInc = DMA_PINC_DISABLE; - 80018b0: 4b30 ldr r3, [pc, #192] @ (8001974 ) - 80018b2: 2200 movs r2, #0 - 80018b4: 60da str r2, [r3, #12] + 8001968: 4b30 ldr r3, [pc, #192] @ (8001a2c ) + 800196a: 2200 movs r2, #0 + 800196c: 60da str r2, [r3, #12] hdma_uart4_rx.Init.MemInc = DMA_MINC_ENABLE; - 80018b6: 4b2f ldr r3, [pc, #188] @ (8001974 ) - 80018b8: f44f 6280 mov.w r2, #1024 @ 0x400 - 80018bc: 611a str r2, [r3, #16] + 800196e: 4b2f ldr r3, [pc, #188] @ (8001a2c ) + 8001970: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001974: 611a str r2, [r3, #16] hdma_uart4_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 80018be: 4b2d ldr r3, [pc, #180] @ (8001974 ) - 80018c0: 2200 movs r2, #0 - 80018c2: 615a str r2, [r3, #20] + 8001976: 4b2d ldr r3, [pc, #180] @ (8001a2c ) + 8001978: 2200 movs r2, #0 + 800197a: 615a str r2, [r3, #20] hdma_uart4_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 80018c4: 4b2b ldr r3, [pc, #172] @ (8001974 ) - 80018c6: 2200 movs r2, #0 - 80018c8: 619a str r2, [r3, #24] + 800197c: 4b2b ldr r3, [pc, #172] @ (8001a2c ) + 800197e: 2200 movs r2, #0 + 8001980: 619a str r2, [r3, #24] hdma_uart4_rx.Init.Mode = DMA_NORMAL; - 80018ca: 4b2a ldr r3, [pc, #168] @ (8001974 ) - 80018cc: 2200 movs r2, #0 - 80018ce: 61da str r2, [r3, #28] + 8001982: 4b2a ldr r3, [pc, #168] @ (8001a2c ) + 8001984: 2200 movs r2, #0 + 8001986: 61da str r2, [r3, #28] hdma_uart4_rx.Init.Priority = DMA_PRIORITY_LOW; - 80018d0: 4b28 ldr r3, [pc, #160] @ (8001974 ) - 80018d2: 2200 movs r2, #0 - 80018d4: 621a str r2, [r3, #32] + 8001988: 4b28 ldr r3, [pc, #160] @ (8001a2c ) + 800198a: 2200 movs r2, #0 + 800198c: 621a str r2, [r3, #32] hdma_uart4_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 80018d6: 4b27 ldr r3, [pc, #156] @ (8001974 ) - 80018d8: 2200 movs r2, #0 - 80018da: 625a str r2, [r3, #36] @ 0x24 + 800198e: 4b27 ldr r3, [pc, #156] @ (8001a2c ) + 8001990: 2200 movs r2, #0 + 8001992: 625a str r2, [r3, #36] @ 0x24 if (HAL_DMA_Init(&hdma_uart4_rx) != HAL_OK) - 80018dc: 4825 ldr r0, [pc, #148] @ (8001974 ) - 80018de: f000 fc33 bl 8002148 - 80018e2: 4603 mov r3, r0 - 80018e4: 2b00 cmp r3, #0 - 80018e6: d001 beq.n 80018ec + 8001994: 4825 ldr r0, [pc, #148] @ (8001a2c ) + 8001996: f000 fc33 bl 8002200 + 800199a: 4603 mov r3, r0 + 800199c: 2b00 cmp r3, #0 + 800199e: d001 beq.n 80019a4 { Error_Handler(); - 80018e8: f7ff fcd4 bl 8001294 + 80019a0: f7ff fcd4 bl 800134c } __HAL_LINKDMA(uartHandle,hdmarx,hdma_uart4_rx); - 80018ec: 687b ldr r3, [r7, #4] - 80018ee: 4a21 ldr r2, [pc, #132] @ (8001974 ) - 80018f0: 63da str r2, [r3, #60] @ 0x3c - 80018f2: 4a20 ldr r2, [pc, #128] @ (8001974 ) - 80018f4: 687b ldr r3, [r7, #4] - 80018f6: 6393 str r3, [r2, #56] @ 0x38 + 80019a4: 687b ldr r3, [r7, #4] + 80019a6: 4a21 ldr r2, [pc, #132] @ (8001a2c ) + 80019a8: 63da str r2, [r3, #60] @ 0x3c + 80019aa: 4a20 ldr r2, [pc, #128] @ (8001a2c ) + 80019ac: 687b ldr r3, [r7, #4] + 80019ae: 6393 str r3, [r2, #56] @ 0x38 /* UART4_TX Init */ hdma_uart4_tx.Instance = DMA1_Stream4; - 80018f8: 4b20 ldr r3, [pc, #128] @ (800197c ) - 80018fa: 4a21 ldr r2, [pc, #132] @ (8001980 ) - 80018fc: 601a str r2, [r3, #0] + 80019b0: 4b20 ldr r3, [pc, #128] @ (8001a34 ) + 80019b2: 4a21 ldr r2, [pc, #132] @ (8001a38 ) + 80019b4: 601a str r2, [r3, #0] hdma_uart4_tx.Init.Channel = DMA_CHANNEL_4; - 80018fe: 4b1f ldr r3, [pc, #124] @ (800197c ) - 8001900: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001904: 605a str r2, [r3, #4] + 80019b6: 4b1f ldr r3, [pc, #124] @ (8001a34 ) + 80019b8: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 80019bc: 605a str r2, [r3, #4] hdma_uart4_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; - 8001906: 4b1d ldr r3, [pc, #116] @ (800197c ) - 8001908: 2240 movs r2, #64 @ 0x40 - 800190a: 609a str r2, [r3, #8] + 80019be: 4b1d ldr r3, [pc, #116] @ (8001a34 ) + 80019c0: 2240 movs r2, #64 @ 0x40 + 80019c2: 609a str r2, [r3, #8] hdma_uart4_tx.Init.PeriphInc = DMA_PINC_DISABLE; - 800190c: 4b1b ldr r3, [pc, #108] @ (800197c ) - 800190e: 2200 movs r2, #0 - 8001910: 60da str r2, [r3, #12] + 80019c4: 4b1b ldr r3, [pc, #108] @ (8001a34 ) + 80019c6: 2200 movs r2, #0 + 80019c8: 60da str r2, [r3, #12] hdma_uart4_tx.Init.MemInc = DMA_MINC_ENABLE; - 8001912: 4b1a ldr r3, [pc, #104] @ (800197c ) - 8001914: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001918: 611a str r2, [r3, #16] + 80019ca: 4b1a ldr r3, [pc, #104] @ (8001a34 ) + 80019cc: f44f 6280 mov.w r2, #1024 @ 0x400 + 80019d0: 611a str r2, [r3, #16] hdma_uart4_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 800191a: 4b18 ldr r3, [pc, #96] @ (800197c ) - 800191c: 2200 movs r2, #0 - 800191e: 615a str r2, [r3, #20] + 80019d2: 4b18 ldr r3, [pc, #96] @ (8001a34 ) + 80019d4: 2200 movs r2, #0 + 80019d6: 615a str r2, [r3, #20] hdma_uart4_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001920: 4b16 ldr r3, [pc, #88] @ (800197c ) - 8001922: 2200 movs r2, #0 - 8001924: 619a str r2, [r3, #24] + 80019d8: 4b16 ldr r3, [pc, #88] @ (8001a34 ) + 80019da: 2200 movs r2, #0 + 80019dc: 619a str r2, [r3, #24] hdma_uart4_tx.Init.Mode = DMA_NORMAL; - 8001926: 4b15 ldr r3, [pc, #84] @ (800197c ) - 8001928: 2200 movs r2, #0 - 800192a: 61da str r2, [r3, #28] + 80019de: 4b15 ldr r3, [pc, #84] @ (8001a34 ) + 80019e0: 2200 movs r2, #0 + 80019e2: 61da str r2, [r3, #28] hdma_uart4_tx.Init.Priority = DMA_PRIORITY_LOW; - 800192c: 4b13 ldr r3, [pc, #76] @ (800197c ) - 800192e: 2200 movs r2, #0 - 8001930: 621a str r2, [r3, #32] + 80019e4: 4b13 ldr r3, [pc, #76] @ (8001a34 ) + 80019e6: 2200 movs r2, #0 + 80019e8: 621a str r2, [r3, #32] hdma_uart4_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001932: 4b12 ldr r3, [pc, #72] @ (800197c ) - 8001934: 2200 movs r2, #0 - 8001936: 625a str r2, [r3, #36] @ 0x24 + 80019ea: 4b12 ldr r3, [pc, #72] @ (8001a34 ) + 80019ec: 2200 movs r2, #0 + 80019ee: 625a str r2, [r3, #36] @ 0x24 if (HAL_DMA_Init(&hdma_uart4_tx) != HAL_OK) - 8001938: 4810 ldr r0, [pc, #64] @ (800197c ) - 800193a: f000 fc05 bl 8002148 - 800193e: 4603 mov r3, r0 - 8001940: 2b00 cmp r3, #0 - 8001942: d001 beq.n 8001948 + 80019f0: 4810 ldr r0, [pc, #64] @ (8001a34 ) + 80019f2: f000 fc05 bl 8002200 + 80019f6: 4603 mov r3, r0 + 80019f8: 2b00 cmp r3, #0 + 80019fa: d001 beq.n 8001a00 { Error_Handler(); - 8001944: f7ff fca6 bl 8001294 + 80019fc: f7ff fca6 bl 800134c } __HAL_LINKDMA(uartHandle,hdmatx,hdma_uart4_tx); - 8001948: 687b ldr r3, [r7, #4] - 800194a: 4a0c ldr r2, [pc, #48] @ (800197c ) - 800194c: 639a str r2, [r3, #56] @ 0x38 - 800194e: 4a0b ldr r2, [pc, #44] @ (800197c ) - 8001950: 687b ldr r3, [r7, #4] - 8001952: 6393 str r3, [r2, #56] @ 0x38 + 8001a00: 687b ldr r3, [r7, #4] + 8001a02: 4a0c ldr r2, [pc, #48] @ (8001a34 ) + 8001a04: 639a str r2, [r3, #56] @ 0x38 + 8001a06: 4a0b ldr r2, [pc, #44] @ (8001a34 ) + 8001a08: 687b ldr r3, [r7, #4] + 8001a0a: 6393 str r3, [r2, #56] @ 0x38 /* UART4 interrupt Init */ HAL_NVIC_SetPriority(UART4_IRQn, 5, 0); - 8001954: 2200 movs r2, #0 - 8001956: 2105 movs r1, #5 - 8001958: 2034 movs r0, #52 @ 0x34 - 800195a: f000 fbbe bl 80020da + 8001a0c: 2200 movs r2, #0 + 8001a0e: 2105 movs r1, #5 + 8001a10: 2034 movs r0, #52 @ 0x34 + 8001a12: f000 fbbe bl 8002192 HAL_NVIC_EnableIRQ(UART4_IRQn); - 800195e: 2034 movs r0, #52 @ 0x34 - 8001960: f000 fbd7 bl 8002112 + 8001a16: 2034 movs r0, #52 @ 0x34 + 8001a18: f000 fbd7 bl 80021ca HAL_NVIC_EnableIRQ(USART2_IRQn); /* USER CODE BEGIN USART2_MspInit 1 */ /* USER CODE END USART2_MspInit 1 */ } } - 8001964: e202 b.n 8001d6c - 8001966: bf00 nop - 8001968: 40004c00 .word 0x40004c00 - 800196c: 40023800 .word 0x40023800 - 8001970: 40020000 .word 0x40020000 - 8001974: 20000c00 .word 0x20000c00 - 8001978: 40026040 .word 0x40026040 - 800197c: 20000c60 .word 0x20000c60 - 8001980: 40026070 .word 0x40026070 + 8001a1c: e202 b.n 8001e24 + 8001a1e: bf00 nop + 8001a20: 40004c00 .word 0x40004c00 + 8001a24: 40023800 .word 0x40023800 + 8001a28: 40020000 .word 0x40020000 + 8001a2c: 20000c00 .word 0x20000c00 + 8001a30: 40026040 .word 0x40026040 + 8001a34: 20000c60 .word 0x20000c60 + 8001a38: 40026070 .word 0x40026070 else if(uartHandle->Instance==UART5) - 8001984: 687b ldr r3, [r7, #4] - 8001986: 681b ldr r3, [r3, #0] - 8001988: 4a59 ldr r2, [pc, #356] @ (8001af0 ) - 800198a: 4293 cmp r3, r2 - 800198c: f040 80c0 bne.w 8001b10 + 8001a3c: 687b ldr r3, [r7, #4] + 8001a3e: 681b ldr r3, [r3, #0] + 8001a40: 4a59 ldr r2, [pc, #356] @ (8001ba8 ) + 8001a42: 4293 cmp r3, r2 + 8001a44: f040 80c0 bne.w 8001bc8 __HAL_RCC_UART5_CLK_ENABLE(); - 8001990: 2300 movs r3, #0 - 8001992: 623b str r3, [r7, #32] - 8001994: 4b57 ldr r3, [pc, #348] @ (8001af4 ) - 8001996: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001998: 4a56 ldr r2, [pc, #344] @ (8001af4 ) - 800199a: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 - 800199e: 6413 str r3, [r2, #64] @ 0x40 - 80019a0: 4b54 ldr r3, [pc, #336] @ (8001af4 ) - 80019a2: 6c1b ldr r3, [r3, #64] @ 0x40 - 80019a4: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 80019a8: 623b str r3, [r7, #32] - 80019aa: 6a3b ldr r3, [r7, #32] + 8001a48: 2300 movs r3, #0 + 8001a4a: 623b str r3, [r7, #32] + 8001a4c: 4b57 ldr r3, [pc, #348] @ (8001bac ) + 8001a4e: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001a50: 4a56 ldr r2, [pc, #344] @ (8001bac ) + 8001a52: f443 1380 orr.w r3, r3, #1048576 @ 0x100000 + 8001a56: 6413 str r3, [r2, #64] @ 0x40 + 8001a58: 4b54 ldr r3, [pc, #336] @ (8001bac ) + 8001a5a: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001a5c: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 8001a60: 623b str r3, [r7, #32] + 8001a62: 6a3b ldr r3, [r7, #32] __HAL_RCC_GPIOC_CLK_ENABLE(); - 80019ac: 2300 movs r3, #0 - 80019ae: 61fb str r3, [r7, #28] - 80019b0: 4b50 ldr r3, [pc, #320] @ (8001af4 ) - 80019b2: 6b1b ldr r3, [r3, #48] @ 0x30 - 80019b4: 4a4f ldr r2, [pc, #316] @ (8001af4 ) - 80019b6: f043 0304 orr.w r3, r3, #4 - 80019ba: 6313 str r3, [r2, #48] @ 0x30 - 80019bc: 4b4d ldr r3, [pc, #308] @ (8001af4 ) - 80019be: 6b1b ldr r3, [r3, #48] @ 0x30 - 80019c0: f003 0304 and.w r3, r3, #4 - 80019c4: 61fb str r3, [r7, #28] - 80019c6: 69fb ldr r3, [r7, #28] + 8001a64: 2300 movs r3, #0 + 8001a66: 61fb str r3, [r7, #28] + 8001a68: 4b50 ldr r3, [pc, #320] @ (8001bac ) + 8001a6a: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001a6c: 4a4f ldr r2, [pc, #316] @ (8001bac ) + 8001a6e: f043 0304 orr.w r3, r3, #4 + 8001a72: 6313 str r3, [r2, #48] @ 0x30 + 8001a74: 4b4d ldr r3, [pc, #308] @ (8001bac ) + 8001a76: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001a78: f003 0304 and.w r3, r3, #4 + 8001a7c: 61fb str r3, [r7, #28] + 8001a7e: 69fb ldr r3, [r7, #28] __HAL_RCC_GPIOD_CLK_ENABLE(); - 80019c8: 2300 movs r3, #0 - 80019ca: 61bb str r3, [r7, #24] - 80019cc: 4b49 ldr r3, [pc, #292] @ (8001af4 ) - 80019ce: 6b1b ldr r3, [r3, #48] @ 0x30 - 80019d0: 4a48 ldr r2, [pc, #288] @ (8001af4 ) - 80019d2: f043 0308 orr.w r3, r3, #8 - 80019d6: 6313 str r3, [r2, #48] @ 0x30 - 80019d8: 4b46 ldr r3, [pc, #280] @ (8001af4 ) - 80019da: 6b1b ldr r3, [r3, #48] @ 0x30 - 80019dc: f003 0308 and.w r3, r3, #8 - 80019e0: 61bb str r3, [r7, #24] - 80019e2: 69bb ldr r3, [r7, #24] + 8001a80: 2300 movs r3, #0 + 8001a82: 61bb str r3, [r7, #24] + 8001a84: 4b49 ldr r3, [pc, #292] @ (8001bac ) + 8001a86: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001a88: 4a48 ldr r2, [pc, #288] @ (8001bac ) + 8001a8a: f043 0308 orr.w r3, r3, #8 + 8001a8e: 6313 str r3, [r2, #48] @ 0x30 + 8001a90: 4b46 ldr r3, [pc, #280] @ (8001bac ) + 8001a92: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001a94: f003 0308 and.w r3, r3, #8 + 8001a98: 61bb str r3, [r7, #24] + 8001a9a: 69bb ldr r3, [r7, #24] GPIO_InitStruct.Pin = GPIO_PIN_12; - 80019e4: f44f 5380 mov.w r3, #4096 @ 0x1000 - 80019e8: 62fb str r3, [r7, #44] @ 0x2c + 8001a9c: f44f 5380 mov.w r3, #4096 @ 0x1000 + 8001aa0: 62fb str r3, [r7, #44] @ 0x2c GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 80019ea: 2302 movs r3, #2 - 80019ec: 633b str r3, [r7, #48] @ 0x30 + 8001aa2: 2302 movs r3, #2 + 8001aa4: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Pull = GPIO_NOPULL; - 80019ee: 2300 movs r3, #0 - 80019f0: 637b str r3, [r7, #52] @ 0x34 + 8001aa6: 2300 movs r3, #0 + 8001aa8: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 80019f2: 2303 movs r3, #3 - 80019f4: 63bb str r3, [r7, #56] @ 0x38 + 8001aaa: 2303 movs r3, #3 + 8001aac: 63bb str r3, [r7, #56] @ 0x38 GPIO_InitStruct.Alternate = GPIO_AF8_UART5; - 80019f6: 2308 movs r3, #8 - 80019f8: 63fb str r3, [r7, #60] @ 0x3c + 8001aae: 2308 movs r3, #8 + 8001ab0: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOC, &GPIO_InitStruct); - 80019fa: f107 032c add.w r3, r7, #44 @ 0x2c - 80019fe: 4619 mov r1, r3 - 8001a00: 483d ldr r0, [pc, #244] @ (8001af8 ) - 8001a02: f000 ffa3 bl 800294c + 8001ab2: f107 032c add.w r3, r7, #44 @ 0x2c + 8001ab6: 4619 mov r1, r3 + 8001ab8: 483d ldr r0, [pc, #244] @ (8001bb0 ) + 8001aba: f000 ffa3 bl 8002a04 GPIO_InitStruct.Pin = GPIO_PIN_2; - 8001a06: 2304 movs r3, #4 - 8001a08: 62fb str r3, [r7, #44] @ 0x2c + 8001abe: 2304 movs r3, #4 + 8001ac0: 62fb str r3, [r7, #44] @ 0x2c GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001a0a: 2302 movs r3, #2 - 8001a0c: 633b str r3, [r7, #48] @ 0x30 + 8001ac2: 2302 movs r3, #2 + 8001ac4: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001a0e: 2300 movs r3, #0 - 8001a10: 637b str r3, [r7, #52] @ 0x34 + 8001ac6: 2300 movs r3, #0 + 8001ac8: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8001a12: 2303 movs r3, #3 - 8001a14: 63bb str r3, [r7, #56] @ 0x38 + 8001aca: 2303 movs r3, #3 + 8001acc: 63bb str r3, [r7, #56] @ 0x38 GPIO_InitStruct.Alternate = GPIO_AF8_UART5; - 8001a16: 2308 movs r3, #8 - 8001a18: 63fb str r3, [r7, #60] @ 0x3c + 8001ace: 2308 movs r3, #8 + 8001ad0: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); - 8001a1a: f107 032c add.w r3, r7, #44 @ 0x2c - 8001a1e: 4619 mov r1, r3 - 8001a20: 4836 ldr r0, [pc, #216] @ (8001afc ) - 8001a22: f000 ff93 bl 800294c + 8001ad2: f107 032c add.w r3, r7, #44 @ 0x2c + 8001ad6: 4619 mov r1, r3 + 8001ad8: 4836 ldr r0, [pc, #216] @ (8001bb4 ) + 8001ada: f000 ff93 bl 8002a04 hdma_uart5_rx.Instance = DMA1_Stream0; - 8001a26: 4b36 ldr r3, [pc, #216] @ (8001b00 ) - 8001a28: 4a36 ldr r2, [pc, #216] @ (8001b04 ) - 8001a2a: 601a str r2, [r3, #0] + 8001ade: 4b36 ldr r3, [pc, #216] @ (8001bb8 ) + 8001ae0: 4a36 ldr r2, [pc, #216] @ (8001bbc ) + 8001ae2: 601a str r2, [r3, #0] hdma_uart5_rx.Init.Channel = DMA_CHANNEL_4; - 8001a2c: 4b34 ldr r3, [pc, #208] @ (8001b00 ) - 8001a2e: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001a32: 605a str r2, [r3, #4] + 8001ae4: 4b34 ldr r3, [pc, #208] @ (8001bb8 ) + 8001ae6: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001aea: 605a str r2, [r3, #4] hdma_uart5_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - 8001a34: 4b32 ldr r3, [pc, #200] @ (8001b00 ) - 8001a36: 2200 movs r2, #0 - 8001a38: 609a str r2, [r3, #8] + 8001aec: 4b32 ldr r3, [pc, #200] @ (8001bb8 ) + 8001aee: 2200 movs r2, #0 + 8001af0: 609a str r2, [r3, #8] hdma_uart5_rx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001a3a: 4b31 ldr r3, [pc, #196] @ (8001b00 ) - 8001a3c: 2200 movs r2, #0 - 8001a3e: 60da str r2, [r3, #12] + 8001af2: 4b31 ldr r3, [pc, #196] @ (8001bb8 ) + 8001af4: 2200 movs r2, #0 + 8001af6: 60da str r2, [r3, #12] hdma_uart5_rx.Init.MemInc = DMA_MINC_ENABLE; - 8001a40: 4b2f ldr r3, [pc, #188] @ (8001b00 ) - 8001a42: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001a46: 611a str r2, [r3, #16] + 8001af8: 4b2f ldr r3, [pc, #188] @ (8001bb8 ) + 8001afa: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001afe: 611a str r2, [r3, #16] hdma_uart5_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001a48: 4b2d ldr r3, [pc, #180] @ (8001b00 ) - 8001a4a: 2200 movs r2, #0 - 8001a4c: 615a str r2, [r3, #20] + 8001b00: 4b2d ldr r3, [pc, #180] @ (8001bb8 ) + 8001b02: 2200 movs r2, #0 + 8001b04: 615a str r2, [r3, #20] hdma_uart5_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001a4e: 4b2c ldr r3, [pc, #176] @ (8001b00 ) - 8001a50: 2200 movs r2, #0 - 8001a52: 619a str r2, [r3, #24] + 8001b06: 4b2c ldr r3, [pc, #176] @ (8001bb8 ) + 8001b08: 2200 movs r2, #0 + 8001b0a: 619a str r2, [r3, #24] hdma_uart5_rx.Init.Mode = DMA_NORMAL; - 8001a54: 4b2a ldr r3, [pc, #168] @ (8001b00 ) - 8001a56: 2200 movs r2, #0 - 8001a58: 61da str r2, [r3, #28] + 8001b0c: 4b2a ldr r3, [pc, #168] @ (8001bb8 ) + 8001b0e: 2200 movs r2, #0 + 8001b10: 61da str r2, [r3, #28] hdma_uart5_rx.Init.Priority = DMA_PRIORITY_LOW; - 8001a5a: 4b29 ldr r3, [pc, #164] @ (8001b00 ) - 8001a5c: 2200 movs r2, #0 - 8001a5e: 621a str r2, [r3, #32] + 8001b12: 4b29 ldr r3, [pc, #164] @ (8001bb8 ) + 8001b14: 2200 movs r2, #0 + 8001b16: 621a str r2, [r3, #32] hdma_uart5_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001a60: 4b27 ldr r3, [pc, #156] @ (8001b00 ) - 8001a62: 2200 movs r2, #0 - 8001a64: 625a str r2, [r3, #36] @ 0x24 + 8001b18: 4b27 ldr r3, [pc, #156] @ (8001bb8 ) + 8001b1a: 2200 movs r2, #0 + 8001b1c: 625a str r2, [r3, #36] @ 0x24 if (HAL_DMA_Init(&hdma_uart5_rx) != HAL_OK) - 8001a66: 4826 ldr r0, [pc, #152] @ (8001b00 ) - 8001a68: f000 fb6e bl 8002148 - 8001a6c: 4603 mov r3, r0 - 8001a6e: 2b00 cmp r3, #0 - 8001a70: d001 beq.n 8001a76 + 8001b1e: 4826 ldr r0, [pc, #152] @ (8001bb8 ) + 8001b20: f000 fb6e bl 8002200 + 8001b24: 4603 mov r3, r0 + 8001b26: 2b00 cmp r3, #0 + 8001b28: d001 beq.n 8001b2e Error_Handler(); - 8001a72: f7ff fc0f bl 8001294 + 8001b2a: f7ff fc0f bl 800134c __HAL_LINKDMA(uartHandle,hdmarx,hdma_uart5_rx); - 8001a76: 687b ldr r3, [r7, #4] - 8001a78: 4a21 ldr r2, [pc, #132] @ (8001b00 ) - 8001a7a: 63da str r2, [r3, #60] @ 0x3c - 8001a7c: 4a20 ldr r2, [pc, #128] @ (8001b00 ) - 8001a7e: 687b ldr r3, [r7, #4] - 8001a80: 6393 str r3, [r2, #56] @ 0x38 + 8001b2e: 687b ldr r3, [r7, #4] + 8001b30: 4a21 ldr r2, [pc, #132] @ (8001bb8 ) + 8001b32: 63da str r2, [r3, #60] @ 0x3c + 8001b34: 4a20 ldr r2, [pc, #128] @ (8001bb8 ) + 8001b36: 687b ldr r3, [r7, #4] + 8001b38: 6393 str r3, [r2, #56] @ 0x38 hdma_uart5_tx.Instance = DMA1_Stream7; - 8001a82: 4b21 ldr r3, [pc, #132] @ (8001b08 ) - 8001a84: 4a21 ldr r2, [pc, #132] @ (8001b0c ) - 8001a86: 601a str r2, [r3, #0] + 8001b3a: 4b21 ldr r3, [pc, #132] @ (8001bc0 ) + 8001b3c: 4a21 ldr r2, [pc, #132] @ (8001bc4 ) + 8001b3e: 601a str r2, [r3, #0] hdma_uart5_tx.Init.Channel = DMA_CHANNEL_4; - 8001a88: 4b1f ldr r3, [pc, #124] @ (8001b08 ) - 8001a8a: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001a8e: 605a str r2, [r3, #4] + 8001b40: 4b1f ldr r3, [pc, #124] @ (8001bc0 ) + 8001b42: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001b46: 605a str r2, [r3, #4] hdma_uart5_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; - 8001a90: 4b1d ldr r3, [pc, #116] @ (8001b08 ) - 8001a92: 2240 movs r2, #64 @ 0x40 - 8001a94: 609a str r2, [r3, #8] + 8001b48: 4b1d ldr r3, [pc, #116] @ (8001bc0 ) + 8001b4a: 2240 movs r2, #64 @ 0x40 + 8001b4c: 609a str r2, [r3, #8] hdma_uart5_tx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001a96: 4b1c ldr r3, [pc, #112] @ (8001b08 ) - 8001a98: 2200 movs r2, #0 - 8001a9a: 60da str r2, [r3, #12] + 8001b4e: 4b1c ldr r3, [pc, #112] @ (8001bc0 ) + 8001b50: 2200 movs r2, #0 + 8001b52: 60da str r2, [r3, #12] hdma_uart5_tx.Init.MemInc = DMA_MINC_ENABLE; - 8001a9c: 4b1a ldr r3, [pc, #104] @ (8001b08 ) - 8001a9e: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001aa2: 611a str r2, [r3, #16] + 8001b54: 4b1a ldr r3, [pc, #104] @ (8001bc0 ) + 8001b56: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001b5a: 611a str r2, [r3, #16] hdma_uart5_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001aa4: 4b18 ldr r3, [pc, #96] @ (8001b08 ) - 8001aa6: 2200 movs r2, #0 - 8001aa8: 615a str r2, [r3, #20] + 8001b5c: 4b18 ldr r3, [pc, #96] @ (8001bc0 ) + 8001b5e: 2200 movs r2, #0 + 8001b60: 615a str r2, [r3, #20] hdma_uart5_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001aaa: 4b17 ldr r3, [pc, #92] @ (8001b08 ) - 8001aac: 2200 movs r2, #0 - 8001aae: 619a str r2, [r3, #24] + 8001b62: 4b17 ldr r3, [pc, #92] @ (8001bc0 ) + 8001b64: 2200 movs r2, #0 + 8001b66: 619a str r2, [r3, #24] hdma_uart5_tx.Init.Mode = DMA_NORMAL; - 8001ab0: 4b15 ldr r3, [pc, #84] @ (8001b08 ) - 8001ab2: 2200 movs r2, #0 - 8001ab4: 61da str r2, [r3, #28] + 8001b68: 4b15 ldr r3, [pc, #84] @ (8001bc0 ) + 8001b6a: 2200 movs r2, #0 + 8001b6c: 61da str r2, [r3, #28] hdma_uart5_tx.Init.Priority = DMA_PRIORITY_LOW; - 8001ab6: 4b14 ldr r3, [pc, #80] @ (8001b08 ) - 8001ab8: 2200 movs r2, #0 - 8001aba: 621a str r2, [r3, #32] + 8001b6e: 4b14 ldr r3, [pc, #80] @ (8001bc0 ) + 8001b70: 2200 movs r2, #0 + 8001b72: 621a str r2, [r3, #32] hdma_uart5_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001abc: 4b12 ldr r3, [pc, #72] @ (8001b08 ) - 8001abe: 2200 movs r2, #0 - 8001ac0: 625a str r2, [r3, #36] @ 0x24 + 8001b74: 4b12 ldr r3, [pc, #72] @ (8001bc0 ) + 8001b76: 2200 movs r2, #0 + 8001b78: 625a str r2, [r3, #36] @ 0x24 if (HAL_DMA_Init(&hdma_uart5_tx) != HAL_OK) - 8001ac2: 4811 ldr r0, [pc, #68] @ (8001b08 ) - 8001ac4: f000 fb40 bl 8002148 - 8001ac8: 4603 mov r3, r0 - 8001aca: 2b00 cmp r3, #0 - 8001acc: d001 beq.n 8001ad2 + 8001b7a: 4811 ldr r0, [pc, #68] @ (8001bc0 ) + 8001b7c: f000 fb40 bl 8002200 + 8001b80: 4603 mov r3, r0 + 8001b82: 2b00 cmp r3, #0 + 8001b84: d001 beq.n 8001b8a Error_Handler(); - 8001ace: f7ff fbe1 bl 8001294 + 8001b86: f7ff fbe1 bl 800134c __HAL_LINKDMA(uartHandle,hdmatx,hdma_uart5_tx); - 8001ad2: 687b ldr r3, [r7, #4] - 8001ad4: 4a0c ldr r2, [pc, #48] @ (8001b08 ) - 8001ad6: 639a str r2, [r3, #56] @ 0x38 - 8001ad8: 4a0b ldr r2, [pc, #44] @ (8001b08 ) - 8001ada: 687b ldr r3, [r7, #4] - 8001adc: 6393 str r3, [r2, #56] @ 0x38 + 8001b8a: 687b ldr r3, [r7, #4] + 8001b8c: 4a0c ldr r2, [pc, #48] @ (8001bc0 ) + 8001b8e: 639a str r2, [r3, #56] @ 0x38 + 8001b90: 4a0b ldr r2, [pc, #44] @ (8001bc0 ) + 8001b92: 687b ldr r3, [r7, #4] + 8001b94: 6393 str r3, [r2, #56] @ 0x38 HAL_NVIC_SetPriority(UART5_IRQn, 5, 0); - 8001ade: 2200 movs r2, #0 - 8001ae0: 2105 movs r1, #5 - 8001ae2: 2035 movs r0, #53 @ 0x35 - 8001ae4: f000 faf9 bl 80020da + 8001b96: 2200 movs r2, #0 + 8001b98: 2105 movs r1, #5 + 8001b9a: 2035 movs r0, #53 @ 0x35 + 8001b9c: f000 faf9 bl 8002192 HAL_NVIC_EnableIRQ(UART5_IRQn); - 8001ae8: 2035 movs r0, #53 @ 0x35 - 8001aea: f000 fb12 bl 8002112 + 8001ba0: 2035 movs r0, #53 @ 0x35 + 8001ba2: f000 fb12 bl 80021ca } - 8001aee: e13d b.n 8001d6c - 8001af0: 40005000 .word 0x40005000 - 8001af4: 40023800 .word 0x40023800 - 8001af8: 40020800 .word 0x40020800 - 8001afc: 40020c00 .word 0x40020c00 - 8001b00: 20000cc0 .word 0x20000cc0 - 8001b04: 40026010 .word 0x40026010 - 8001b08: 20000d20 .word 0x20000d20 - 8001b0c: 400260b8 .word 0x400260b8 + 8001ba6: e13d b.n 8001e24 + 8001ba8: 40005000 .word 0x40005000 + 8001bac: 40023800 .word 0x40023800 + 8001bb0: 40020800 .word 0x40020800 + 8001bb4: 40020c00 .word 0x40020c00 + 8001bb8: 20000cc0 .word 0x20000cc0 + 8001bbc: 40026010 .word 0x40026010 + 8001bc0: 20000d20 .word 0x20000d20 + 8001bc4: 400260b8 .word 0x400260b8 else if(uartHandle->Instance==USART1) - 8001b10: 687b ldr r3, [r7, #4] - 8001b12: 681b ldr r3, [r3, #0] - 8001b14: 4a97 ldr r2, [pc, #604] @ (8001d74 ) - 8001b16: 4293 cmp r3, r2 - 8001b18: f040 8092 bne.w 8001c40 + 8001bc8: 687b ldr r3, [r7, #4] + 8001bca: 681b ldr r3, [r3, #0] + 8001bcc: 4a97 ldr r2, [pc, #604] @ (8001e2c ) + 8001bce: 4293 cmp r3, r2 + 8001bd0: f040 8092 bne.w 8001cf8 __HAL_RCC_USART1_CLK_ENABLE(); - 8001b1c: 2300 movs r3, #0 - 8001b1e: 617b str r3, [r7, #20] - 8001b20: 4b95 ldr r3, [pc, #596] @ (8001d78 ) - 8001b22: 6c5b ldr r3, [r3, #68] @ 0x44 - 8001b24: 4a94 ldr r2, [pc, #592] @ (8001d78 ) - 8001b26: f043 0310 orr.w r3, r3, #16 - 8001b2a: 6453 str r3, [r2, #68] @ 0x44 - 8001b2c: 4b92 ldr r3, [pc, #584] @ (8001d78 ) - 8001b2e: 6c5b ldr r3, [r3, #68] @ 0x44 - 8001b30: f003 0310 and.w r3, r3, #16 - 8001b34: 617b str r3, [r7, #20] - 8001b36: 697b ldr r3, [r7, #20] + 8001bd4: 2300 movs r3, #0 + 8001bd6: 617b str r3, [r7, #20] + 8001bd8: 4b95 ldr r3, [pc, #596] @ (8001e30 ) + 8001bda: 6c5b ldr r3, [r3, #68] @ 0x44 + 8001bdc: 4a94 ldr r2, [pc, #592] @ (8001e30 ) + 8001bde: f043 0310 orr.w r3, r3, #16 + 8001be2: 6453 str r3, [r2, #68] @ 0x44 + 8001be4: 4b92 ldr r3, [pc, #584] @ (8001e30 ) + 8001be6: 6c5b ldr r3, [r3, #68] @ 0x44 + 8001be8: f003 0310 and.w r3, r3, #16 + 8001bec: 617b str r3, [r7, #20] + 8001bee: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001b38: 2300 movs r3, #0 - 8001b3a: 613b str r3, [r7, #16] - 8001b3c: 4b8e ldr r3, [pc, #568] @ (8001d78 ) - 8001b3e: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001b40: 4a8d ldr r2, [pc, #564] @ (8001d78 ) - 8001b42: f043 0301 orr.w r3, r3, #1 - 8001b46: 6313 str r3, [r2, #48] @ 0x30 - 8001b48: 4b8b ldr r3, [pc, #556] @ (8001d78 ) - 8001b4a: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001b4c: f003 0301 and.w r3, r3, #1 - 8001b50: 613b str r3, [r7, #16] - 8001b52: 693b ldr r3, [r7, #16] + 8001bf0: 2300 movs r3, #0 + 8001bf2: 613b str r3, [r7, #16] + 8001bf4: 4b8e ldr r3, [pc, #568] @ (8001e30 ) + 8001bf6: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001bf8: 4a8d ldr r2, [pc, #564] @ (8001e30 ) + 8001bfa: f043 0301 orr.w r3, r3, #1 + 8001bfe: 6313 str r3, [r2, #48] @ 0x30 + 8001c00: 4b8b ldr r3, [pc, #556] @ (8001e30 ) + 8001c02: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001c04: f003 0301 and.w r3, r3, #1 + 8001c08: 613b str r3, [r7, #16] + 8001c0a: 693b ldr r3, [r7, #16] GPIO_InitStruct.Pin = GPIO_PIN_9|GPIO_PIN_10; - 8001b54: f44f 63c0 mov.w r3, #1536 @ 0x600 - 8001b58: 62fb str r3, [r7, #44] @ 0x2c + 8001c0c: f44f 63c0 mov.w r3, #1536 @ 0x600 + 8001c10: 62fb str r3, [r7, #44] @ 0x2c GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001b5a: 2302 movs r3, #2 - 8001b5c: 633b str r3, [r7, #48] @ 0x30 + 8001c12: 2302 movs r3, #2 + 8001c14: 633b str r3, [r7, #48] @ 0x30 GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001b5e: 2300 movs r3, #0 - 8001b60: 637b str r3, [r7, #52] @ 0x34 + 8001c16: 2300 movs r3, #0 + 8001c18: 637b str r3, [r7, #52] @ 0x34 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8001b62: 2303 movs r3, #3 - 8001b64: 63bb str r3, [r7, #56] @ 0x38 + 8001c1a: 2303 movs r3, #3 + 8001c1c: 63bb str r3, [r7, #56] @ 0x38 GPIO_InitStruct.Alternate = GPIO_AF7_USART1; - 8001b66: 2307 movs r3, #7 - 8001b68: 63fb str r3, [r7, #60] @ 0x3c + 8001c1e: 2307 movs r3, #7 + 8001c20: 63fb str r3, [r7, #60] @ 0x3c HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8001b6a: f107 032c add.w r3, r7, #44 @ 0x2c - 8001b6e: 4619 mov r1, r3 - 8001b70: 4882 ldr r0, [pc, #520] @ (8001d7c ) - 8001b72: f000 feeb bl 800294c + 8001c22: f107 032c add.w r3, r7, #44 @ 0x2c + 8001c26: 4619 mov r1, r3 + 8001c28: 4882 ldr r0, [pc, #520] @ (8001e34 ) + 8001c2a: f000 feeb bl 8002a04 hdma_usart1_rx.Instance = DMA2_Stream2; - 8001b76: 4b82 ldr r3, [pc, #520] @ (8001d80 ) - 8001b78: 4a82 ldr r2, [pc, #520] @ (8001d84 ) - 8001b7a: 601a str r2, [r3, #0] + 8001c2e: 4b82 ldr r3, [pc, #520] @ (8001e38 ) + 8001c30: 4a82 ldr r2, [pc, #520] @ (8001e3c ) + 8001c32: 601a str r2, [r3, #0] hdma_usart1_rx.Init.Channel = DMA_CHANNEL_4; - 8001b7c: 4b80 ldr r3, [pc, #512] @ (8001d80 ) - 8001b7e: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001b82: 605a str r2, [r3, #4] + 8001c34: 4b80 ldr r3, [pc, #512] @ (8001e38 ) + 8001c36: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001c3a: 605a str r2, [r3, #4] hdma_usart1_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - 8001b84: 4b7e ldr r3, [pc, #504] @ (8001d80 ) - 8001b86: 2200 movs r2, #0 - 8001b88: 609a str r2, [r3, #8] + 8001c3c: 4b7e ldr r3, [pc, #504] @ (8001e38 ) + 8001c3e: 2200 movs r2, #0 + 8001c40: 609a str r2, [r3, #8] hdma_usart1_rx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001b8a: 4b7d ldr r3, [pc, #500] @ (8001d80 ) - 8001b8c: 2200 movs r2, #0 - 8001b8e: 60da str r2, [r3, #12] + 8001c42: 4b7d ldr r3, [pc, #500] @ (8001e38 ) + 8001c44: 2200 movs r2, #0 + 8001c46: 60da str r2, [r3, #12] hdma_usart1_rx.Init.MemInc = DMA_MINC_ENABLE; - 8001b90: 4b7b ldr r3, [pc, #492] @ (8001d80 ) - 8001b92: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001b96: 611a str r2, [r3, #16] + 8001c48: 4b7b ldr r3, [pc, #492] @ (8001e38 ) + 8001c4a: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001c4e: 611a str r2, [r3, #16] hdma_usart1_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001b98: 4b79 ldr r3, [pc, #484] @ (8001d80 ) - 8001b9a: 2200 movs r2, #0 - 8001b9c: 615a str r2, [r3, #20] + 8001c50: 4b79 ldr r3, [pc, #484] @ (8001e38 ) + 8001c52: 2200 movs r2, #0 + 8001c54: 615a str r2, [r3, #20] hdma_usart1_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001b9e: 4b78 ldr r3, [pc, #480] @ (8001d80 ) - 8001ba0: 2200 movs r2, #0 - 8001ba2: 619a str r2, [r3, #24] + 8001c56: 4b78 ldr r3, [pc, #480] @ (8001e38 ) + 8001c58: 2200 movs r2, #0 + 8001c5a: 619a str r2, [r3, #24] hdma_usart1_rx.Init.Mode = DMA_NORMAL; - 8001ba4: 4b76 ldr r3, [pc, #472] @ (8001d80 ) - 8001ba6: 2200 movs r2, #0 - 8001ba8: 61da str r2, [r3, #28] + 8001c5c: 4b76 ldr r3, [pc, #472] @ (8001e38 ) + 8001c5e: 2200 movs r2, #0 + 8001c60: 61da str r2, [r3, #28] hdma_usart1_rx.Init.Priority = DMA_PRIORITY_LOW; - 8001baa: 4b75 ldr r3, [pc, #468] @ (8001d80 ) - 8001bac: 2200 movs r2, #0 - 8001bae: 621a str r2, [r3, #32] + 8001c62: 4b75 ldr r3, [pc, #468] @ (8001e38 ) + 8001c64: 2200 movs r2, #0 + 8001c66: 621a str r2, [r3, #32] hdma_usart1_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001bb0: 4b73 ldr r3, [pc, #460] @ (8001d80 ) - 8001bb2: 2200 movs r2, #0 - 8001bb4: 625a str r2, [r3, #36] @ 0x24 + 8001c68: 4b73 ldr r3, [pc, #460] @ (8001e38 ) + 8001c6a: 2200 movs r2, #0 + 8001c6c: 625a str r2, [r3, #36] @ 0x24 if (HAL_DMA_Init(&hdma_usart1_rx) != HAL_OK) - 8001bb6: 4872 ldr r0, [pc, #456] @ (8001d80 ) - 8001bb8: f000 fac6 bl 8002148 - 8001bbc: 4603 mov r3, r0 - 8001bbe: 2b00 cmp r3, #0 - 8001bc0: d001 beq.n 8001bc6 + 8001c6e: 4872 ldr r0, [pc, #456] @ (8001e38 ) + 8001c70: f000 fac6 bl 8002200 + 8001c74: 4603 mov r3, r0 + 8001c76: 2b00 cmp r3, #0 + 8001c78: d001 beq.n 8001c7e Error_Handler(); - 8001bc2: f7ff fb67 bl 8001294 + 8001c7a: f7ff fb67 bl 800134c __HAL_LINKDMA(uartHandle,hdmarx,hdma_usart1_rx); - 8001bc6: 687b ldr r3, [r7, #4] - 8001bc8: 4a6d ldr r2, [pc, #436] @ (8001d80 ) - 8001bca: 63da str r2, [r3, #60] @ 0x3c - 8001bcc: 4a6c ldr r2, [pc, #432] @ (8001d80 ) - 8001bce: 687b ldr r3, [r7, #4] - 8001bd0: 6393 str r3, [r2, #56] @ 0x38 + 8001c7e: 687b ldr r3, [r7, #4] + 8001c80: 4a6d ldr r2, [pc, #436] @ (8001e38 ) + 8001c82: 63da str r2, [r3, #60] @ 0x3c + 8001c84: 4a6c ldr r2, [pc, #432] @ (8001e38 ) + 8001c86: 687b ldr r3, [r7, #4] + 8001c88: 6393 str r3, [r2, #56] @ 0x38 hdma_usart1_tx.Instance = DMA2_Stream7; - 8001bd2: 4b6d ldr r3, [pc, #436] @ (8001d88 ) - 8001bd4: 4a6d ldr r2, [pc, #436] @ (8001d8c ) - 8001bd6: 601a str r2, [r3, #0] + 8001c8a: 4b6d ldr r3, [pc, #436] @ (8001e40 ) + 8001c8c: 4a6d ldr r2, [pc, #436] @ (8001e44 ) + 8001c8e: 601a str r2, [r3, #0] hdma_usart1_tx.Init.Channel = DMA_CHANNEL_4; - 8001bd8: 4b6b ldr r3, [pc, #428] @ (8001d88 ) - 8001bda: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001bde: 605a str r2, [r3, #4] + 8001c90: 4b6b ldr r3, [pc, #428] @ (8001e40 ) + 8001c92: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001c96: 605a str r2, [r3, #4] hdma_usart1_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; - 8001be0: 4b69 ldr r3, [pc, #420] @ (8001d88 ) - 8001be2: 2240 movs r2, #64 @ 0x40 - 8001be4: 609a str r2, [r3, #8] + 8001c98: 4b69 ldr r3, [pc, #420] @ (8001e40 ) + 8001c9a: 2240 movs r2, #64 @ 0x40 + 8001c9c: 609a str r2, [r3, #8] hdma_usart1_tx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001be6: 4b68 ldr r3, [pc, #416] @ (8001d88 ) - 8001be8: 2200 movs r2, #0 - 8001bea: 60da str r2, [r3, #12] + 8001c9e: 4b68 ldr r3, [pc, #416] @ (8001e40 ) + 8001ca0: 2200 movs r2, #0 + 8001ca2: 60da str r2, [r3, #12] hdma_usart1_tx.Init.MemInc = DMA_MINC_ENABLE; - 8001bec: 4b66 ldr r3, [pc, #408] @ (8001d88 ) - 8001bee: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001bf2: 611a str r2, [r3, #16] + 8001ca4: 4b66 ldr r3, [pc, #408] @ (8001e40 ) + 8001ca6: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001caa: 611a str r2, [r3, #16] hdma_usart1_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001bf4: 4b64 ldr r3, [pc, #400] @ (8001d88 ) - 8001bf6: 2200 movs r2, #0 - 8001bf8: 615a str r2, [r3, #20] + 8001cac: 4b64 ldr r3, [pc, #400] @ (8001e40 ) + 8001cae: 2200 movs r2, #0 + 8001cb0: 615a str r2, [r3, #20] hdma_usart1_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001bfa: 4b63 ldr r3, [pc, #396] @ (8001d88 ) - 8001bfc: 2200 movs r2, #0 - 8001bfe: 619a str r2, [r3, #24] - hdma_usart1_tx.Init.Mode = DMA_NORMAL; - 8001c00: 4b61 ldr r3, [pc, #388] @ (8001d88 ) - 8001c02: 2200 movs r2, #0 - 8001c04: 61da str r2, [r3, #28] - hdma_usart1_tx.Init.Priority = DMA_PRIORITY_LOW; - 8001c06: 4b60 ldr r3, [pc, #384] @ (8001d88 ) - 8001c08: 2200 movs r2, #0 - 8001c0a: 621a str r2, [r3, #32] - hdma_usart1_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001c0c: 4b5e ldr r3, [pc, #376] @ (8001d88 ) - 8001c0e: 2200 movs r2, #0 - 8001c10: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_usart1_tx) != HAL_OK) - 8001c12: 485d ldr r0, [pc, #372] @ (8001d88 ) - 8001c14: f000 fa98 bl 8002148 - 8001c18: 4603 mov r3, r0 - 8001c1a: 2b00 cmp r3, #0 - 8001c1c: d001 beq.n 8001c22 - Error_Handler(); - 8001c1e: f7ff fb39 bl 8001294 - __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart1_tx); - 8001c22: 687b ldr r3, [r7, #4] - 8001c24: 4a58 ldr r2, [pc, #352] @ (8001d88 ) - 8001c26: 639a str r2, [r3, #56] @ 0x38 - 8001c28: 4a57 ldr r2, [pc, #348] @ (8001d88 ) - 8001c2a: 687b ldr r3, [r7, #4] - 8001c2c: 6393 str r3, [r2, #56] @ 0x38 - HAL_NVIC_SetPriority(USART1_IRQn, 5, 0); - 8001c2e: 2200 movs r2, #0 - 8001c30: 2105 movs r1, #5 - 8001c32: 2025 movs r0, #37 @ 0x25 - 8001c34: f000 fa51 bl 80020da - HAL_NVIC_EnableIRQ(USART1_IRQn); - 8001c38: 2025 movs r0, #37 @ 0x25 - 8001c3a: f000 fa6a bl 8002112 -} - 8001c3e: e095 b.n 8001d6c - else if(uartHandle->Instance==USART2) - 8001c40: 687b ldr r3, [r7, #4] - 8001c42: 681b ldr r3, [r3, #0] - 8001c44: 4a52 ldr r2, [pc, #328] @ (8001d90 ) - 8001c46: 4293 cmp r3, r2 - 8001c48: f040 8090 bne.w 8001d6c - __HAL_RCC_USART2_CLK_ENABLE(); - 8001c4c: 2300 movs r3, #0 - 8001c4e: 60fb str r3, [r7, #12] - 8001c50: 4b49 ldr r3, [pc, #292] @ (8001d78 ) - 8001c52: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001c54: 4a48 ldr r2, [pc, #288] @ (8001d78 ) - 8001c56: f443 3300 orr.w r3, r3, #131072 @ 0x20000 - 8001c5a: 6413 str r3, [r2, #64] @ 0x40 - 8001c5c: 4b46 ldr r3, [pc, #280] @ (8001d78 ) - 8001c5e: 6c1b ldr r3, [r3, #64] @ 0x40 - 8001c60: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8001c64: 60fb str r3, [r7, #12] - 8001c66: 68fb ldr r3, [r7, #12] - __HAL_RCC_GPIOA_CLK_ENABLE(); - 8001c68: 2300 movs r3, #0 - 8001c6a: 60bb str r3, [r7, #8] - 8001c6c: 4b42 ldr r3, [pc, #264] @ (8001d78 ) - 8001c6e: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001c70: 4a41 ldr r2, [pc, #260] @ (8001d78 ) - 8001c72: f043 0301 orr.w r3, r3, #1 - 8001c76: 6313 str r3, [r2, #48] @ 0x30 - 8001c78: 4b3f ldr r3, [pc, #252] @ (8001d78 ) - 8001c7a: 6b1b ldr r3, [r3, #48] @ 0x30 - 8001c7c: f003 0301 and.w r3, r3, #1 - 8001c80: 60bb str r3, [r7, #8] - 8001c82: 68bb ldr r3, [r7, #8] - GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3; - 8001c84: 230c movs r3, #12 - 8001c86: 62fb str r3, [r7, #44] @ 0x2c - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 8001c88: 2302 movs r3, #2 - 8001c8a: 633b str r3, [r7, #48] @ 0x30 - GPIO_InitStruct.Pull = GPIO_NOPULL; - 8001c8c: 2300 movs r3, #0 - 8001c8e: 637b str r3, [r7, #52] @ 0x34 - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 8001c90: 2303 movs r3, #3 - 8001c92: 63bb str r3, [r7, #56] @ 0x38 - GPIO_InitStruct.Alternate = GPIO_AF7_USART2; - 8001c94: 2307 movs r3, #7 - 8001c96: 63fb str r3, [r7, #60] @ 0x3c - HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 8001c98: f107 032c add.w r3, r7, #44 @ 0x2c - 8001c9c: 4619 mov r1, r3 - 8001c9e: 4837 ldr r0, [pc, #220] @ (8001d7c ) - 8001ca0: f000 fe54 bl 800294c - hdma_usart2_rx.Instance = DMA1_Stream5; - 8001ca4: 4b3b ldr r3, [pc, #236] @ (8001d94 ) - 8001ca6: 4a3c ldr r2, [pc, #240] @ (8001d98 ) - 8001ca8: 601a str r2, [r3, #0] - hdma_usart2_rx.Init.Channel = DMA_CHANNEL_4; - 8001caa: 4b3a ldr r3, [pc, #232] @ (8001d94 ) - 8001cac: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001cb0: 605a str r2, [r3, #4] - hdma_usart2_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - 8001cb2: 4b38 ldr r3, [pc, #224] @ (8001d94 ) + 8001cb2: 4b63 ldr r3, [pc, #396] @ (8001e40 ) 8001cb4: 2200 movs r2, #0 - 8001cb6: 609a str r2, [r3, #8] - hdma_usart2_rx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001cb8: 4b36 ldr r3, [pc, #216] @ (8001d94 ) + 8001cb6: 619a str r2, [r3, #24] + hdma_usart1_tx.Init.Mode = DMA_NORMAL; + 8001cb8: 4b61 ldr r3, [pc, #388] @ (8001e40 ) 8001cba: 2200 movs r2, #0 - 8001cbc: 60da str r2, [r3, #12] - hdma_usart2_rx.Init.MemInc = DMA_MINC_ENABLE; - 8001cbe: 4b35 ldr r3, [pc, #212] @ (8001d94 ) - 8001cc0: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001cc4: 611a str r2, [r3, #16] - hdma_usart2_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001cc6: 4b33 ldr r3, [pc, #204] @ (8001d94 ) - 8001cc8: 2200 movs r2, #0 - 8001cca: 615a str r2, [r3, #20] - hdma_usart2_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001ccc: 4b31 ldr r3, [pc, #196] @ (8001d94 ) - 8001cce: 2200 movs r2, #0 - 8001cd0: 619a str r2, [r3, #24] - hdma_usart2_rx.Init.Mode = DMA_NORMAL; - 8001cd2: 4b30 ldr r3, [pc, #192] @ (8001d94 ) - 8001cd4: 2200 movs r2, #0 - 8001cd6: 61da str r2, [r3, #28] - hdma_usart2_rx.Init.Priority = DMA_PRIORITY_LOW; - 8001cd8: 4b2e ldr r3, [pc, #184] @ (8001d94 ) - 8001cda: 2200 movs r2, #0 - 8001cdc: 621a str r2, [r3, #32] - hdma_usart2_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001cde: 4b2d ldr r3, [pc, #180] @ (8001d94 ) - 8001ce0: 2200 movs r2, #0 - 8001ce2: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_usart2_rx) != HAL_OK) - 8001ce4: 482b ldr r0, [pc, #172] @ (8001d94 ) - 8001ce6: f000 fa2f bl 8002148 - 8001cea: 4603 mov r3, r0 - 8001cec: 2b00 cmp r3, #0 - 8001cee: d001 beq.n 8001cf4 + 8001cbc: 61da str r2, [r3, #28] + hdma_usart1_tx.Init.Priority = DMA_PRIORITY_LOW; + 8001cbe: 4b60 ldr r3, [pc, #384] @ (8001e40 ) + 8001cc0: 2200 movs r2, #0 + 8001cc2: 621a str r2, [r3, #32] + hdma_usart1_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; + 8001cc4: 4b5e ldr r3, [pc, #376] @ (8001e40 ) + 8001cc6: 2200 movs r2, #0 + 8001cc8: 625a str r2, [r3, #36] @ 0x24 + if (HAL_DMA_Init(&hdma_usart1_tx) != HAL_OK) + 8001cca: 485d ldr r0, [pc, #372] @ (8001e40 ) + 8001ccc: f000 fa98 bl 8002200 + 8001cd0: 4603 mov r3, r0 + 8001cd2: 2b00 cmp r3, #0 + 8001cd4: d001 beq.n 8001cda Error_Handler(); - 8001cf0: f7ff fad0 bl 8001294 - __HAL_LINKDMA(uartHandle,hdmarx,hdma_usart2_rx); - 8001cf4: 687b ldr r3, [r7, #4] - 8001cf6: 4a27 ldr r2, [pc, #156] @ (8001d94 ) - 8001cf8: 63da str r2, [r3, #60] @ 0x3c - 8001cfa: 4a26 ldr r2, [pc, #152] @ (8001d94 ) - 8001cfc: 687b ldr r3, [r7, #4] - 8001cfe: 6393 str r3, [r2, #56] @ 0x38 - hdma_usart2_tx.Instance = DMA1_Stream6; - 8001d00: 4b26 ldr r3, [pc, #152] @ (8001d9c ) - 8001d02: 4a27 ldr r2, [pc, #156] @ (8001da0 ) - 8001d04: 601a str r2, [r3, #0] - hdma_usart2_tx.Init.Channel = DMA_CHANNEL_4; - 8001d06: 4b25 ldr r3, [pc, #148] @ (8001d9c ) - 8001d08: f04f 6200 mov.w r2, #134217728 @ 0x8000000 - 8001d0c: 605a str r2, [r3, #4] - hdma_usart2_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; - 8001d0e: 4b23 ldr r3, [pc, #140] @ (8001d9c ) - 8001d10: 2240 movs r2, #64 @ 0x40 - 8001d12: 609a str r2, [r3, #8] - hdma_usart2_tx.Init.PeriphInc = DMA_PINC_DISABLE; - 8001d14: 4b21 ldr r3, [pc, #132] @ (8001d9c ) - 8001d16: 2200 movs r2, #0 - 8001d18: 60da str r2, [r3, #12] - hdma_usart2_tx.Init.MemInc = DMA_MINC_ENABLE; - 8001d1a: 4b20 ldr r3, [pc, #128] @ (8001d9c ) - 8001d1c: f44f 6280 mov.w r2, #1024 @ 0x400 - 8001d20: 611a str r2, [r3, #16] - hdma_usart2_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - 8001d22: 4b1e ldr r3, [pc, #120] @ (8001d9c ) - 8001d24: 2200 movs r2, #0 - 8001d26: 615a str r2, [r3, #20] - hdma_usart2_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - 8001d28: 4b1c ldr r3, [pc, #112] @ (8001d9c ) - 8001d2a: 2200 movs r2, #0 - 8001d2c: 619a str r2, [r3, #24] - hdma_usart2_tx.Init.Mode = DMA_NORMAL; - 8001d2e: 4b1b ldr r3, [pc, #108] @ (8001d9c ) - 8001d30: 2200 movs r2, #0 - 8001d32: 61da str r2, [r3, #28] - hdma_usart2_tx.Init.Priority = DMA_PRIORITY_LOW; - 8001d34: 4b19 ldr r3, [pc, #100] @ (8001d9c ) - 8001d36: 2200 movs r2, #0 - 8001d38: 621a str r2, [r3, #32] - hdma_usart2_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; - 8001d3a: 4b18 ldr r3, [pc, #96] @ (8001d9c ) - 8001d3c: 2200 movs r2, #0 - 8001d3e: 625a str r2, [r3, #36] @ 0x24 - if (HAL_DMA_Init(&hdma_usart2_tx) != HAL_OK) - 8001d40: 4816 ldr r0, [pc, #88] @ (8001d9c ) - 8001d42: f000 fa01 bl 8002148 - 8001d46: 4603 mov r3, r0 - 8001d48: 2b00 cmp r3, #0 - 8001d4a: d001 beq.n 8001d50 - Error_Handler(); - 8001d4c: f7ff faa2 bl 8001294 - __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart2_tx); - 8001d50: 687b ldr r3, [r7, #4] - 8001d52: 4a12 ldr r2, [pc, #72] @ (8001d9c ) - 8001d54: 639a str r2, [r3, #56] @ 0x38 - 8001d56: 4a11 ldr r2, [pc, #68] @ (8001d9c ) - 8001d58: 687b ldr r3, [r7, #4] - 8001d5a: 6393 str r3, [r2, #56] @ 0x38 - HAL_NVIC_SetPriority(USART2_IRQn, 5, 0); - 8001d5c: 2200 movs r2, #0 - 8001d5e: 2105 movs r1, #5 - 8001d60: 2026 movs r0, #38 @ 0x26 - 8001d62: f000 f9ba bl 80020da - HAL_NVIC_EnableIRQ(USART2_IRQn); - 8001d66: 2026 movs r0, #38 @ 0x26 - 8001d68: f000 f9d3 bl 8002112 + 8001cd6: f7ff fb39 bl 800134c + __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart1_tx); + 8001cda: 687b ldr r3, [r7, #4] + 8001cdc: 4a58 ldr r2, [pc, #352] @ (8001e40 ) + 8001cde: 639a str r2, [r3, #56] @ 0x38 + 8001ce0: 4a57 ldr r2, [pc, #348] @ (8001e40 ) + 8001ce2: 687b ldr r3, [r7, #4] + 8001ce4: 6393 str r3, [r2, #56] @ 0x38 + HAL_NVIC_SetPriority(USART1_IRQn, 5, 0); + 8001ce6: 2200 movs r2, #0 + 8001ce8: 2105 movs r1, #5 + 8001cea: 2025 movs r0, #37 @ 0x25 + 8001cec: f000 fa51 bl 8002192 + HAL_NVIC_EnableIRQ(USART1_IRQn); + 8001cf0: 2025 movs r0, #37 @ 0x25 + 8001cf2: f000 fa6a bl 80021ca } - 8001d6c: bf00 nop - 8001d6e: 3740 adds r7, #64 @ 0x40 - 8001d70: 46bd mov sp, r7 - 8001d72: bd80 pop {r7, pc} - 8001d74: 40011000 .word 0x40011000 - 8001d78: 40023800 .word 0x40023800 - 8001d7c: 40020000 .word 0x40020000 - 8001d80: 20000d80 .word 0x20000d80 - 8001d84: 40026440 .word 0x40026440 - 8001d88: 20000de0 .word 0x20000de0 - 8001d8c: 400264b8 .word 0x400264b8 - 8001d90: 40004400 .word 0x40004400 - 8001d94: 20000e40 .word 0x20000e40 - 8001d98: 40026088 .word 0x40026088 - 8001d9c: 20000ea0 .word 0x20000ea0 - 8001da0: 400260a0 .word 0x400260a0 + 8001cf6: e095 b.n 8001e24 + else if(uartHandle->Instance==USART2) + 8001cf8: 687b ldr r3, [r7, #4] + 8001cfa: 681b ldr r3, [r3, #0] + 8001cfc: 4a52 ldr r2, [pc, #328] @ (8001e48 ) + 8001cfe: 4293 cmp r3, r2 + 8001d00: f040 8090 bne.w 8001e24 + __HAL_RCC_USART2_CLK_ENABLE(); + 8001d04: 2300 movs r3, #0 + 8001d06: 60fb str r3, [r7, #12] + 8001d08: 4b49 ldr r3, [pc, #292] @ (8001e30 ) + 8001d0a: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001d0c: 4a48 ldr r2, [pc, #288] @ (8001e30 ) + 8001d0e: f443 3300 orr.w r3, r3, #131072 @ 0x20000 + 8001d12: 6413 str r3, [r2, #64] @ 0x40 + 8001d14: 4b46 ldr r3, [pc, #280] @ (8001e30 ) + 8001d16: 6c1b ldr r3, [r3, #64] @ 0x40 + 8001d18: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8001d1c: 60fb str r3, [r7, #12] + 8001d1e: 68fb ldr r3, [r7, #12] + __HAL_RCC_GPIOA_CLK_ENABLE(); + 8001d20: 2300 movs r3, #0 + 8001d22: 60bb str r3, [r7, #8] + 8001d24: 4b42 ldr r3, [pc, #264] @ (8001e30 ) + 8001d26: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001d28: 4a41 ldr r2, [pc, #260] @ (8001e30 ) + 8001d2a: f043 0301 orr.w r3, r3, #1 + 8001d2e: 6313 str r3, [r2, #48] @ 0x30 + 8001d30: 4b3f ldr r3, [pc, #252] @ (8001e30 ) + 8001d32: 6b1b ldr r3, [r3, #48] @ 0x30 + 8001d34: f003 0301 and.w r3, r3, #1 + 8001d38: 60bb str r3, [r7, #8] + 8001d3a: 68bb ldr r3, [r7, #8] + GPIO_InitStruct.Pin = GPIO_PIN_2|GPIO_PIN_3; + 8001d3c: 230c movs r3, #12 + 8001d3e: 62fb str r3, [r7, #44] @ 0x2c + GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; + 8001d40: 2302 movs r3, #2 + 8001d42: 633b str r3, [r7, #48] @ 0x30 + GPIO_InitStruct.Pull = GPIO_NOPULL; + 8001d44: 2300 movs r3, #0 + 8001d46: 637b str r3, [r7, #52] @ 0x34 + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; + 8001d48: 2303 movs r3, #3 + 8001d4a: 63bb str r3, [r7, #56] @ 0x38 + GPIO_InitStruct.Alternate = GPIO_AF7_USART2; + 8001d4c: 2307 movs r3, #7 + 8001d4e: 63fb str r3, [r7, #60] @ 0x3c + HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); + 8001d50: f107 032c add.w r3, r7, #44 @ 0x2c + 8001d54: 4619 mov r1, r3 + 8001d56: 4837 ldr r0, [pc, #220] @ (8001e34 ) + 8001d58: f000 fe54 bl 8002a04 + hdma_usart2_rx.Instance = DMA1_Stream5; + 8001d5c: 4b3b ldr r3, [pc, #236] @ (8001e4c ) + 8001d5e: 4a3c ldr r2, [pc, #240] @ (8001e50 ) + 8001d60: 601a str r2, [r3, #0] + hdma_usart2_rx.Init.Channel = DMA_CHANNEL_4; + 8001d62: 4b3a ldr r3, [pc, #232] @ (8001e4c ) + 8001d64: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001d68: 605a str r2, [r3, #4] + hdma_usart2_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; + 8001d6a: 4b38 ldr r3, [pc, #224] @ (8001e4c ) + 8001d6c: 2200 movs r2, #0 + 8001d6e: 609a str r2, [r3, #8] + hdma_usart2_rx.Init.PeriphInc = DMA_PINC_DISABLE; + 8001d70: 4b36 ldr r3, [pc, #216] @ (8001e4c ) + 8001d72: 2200 movs r2, #0 + 8001d74: 60da str r2, [r3, #12] + hdma_usart2_rx.Init.MemInc = DMA_MINC_ENABLE; + 8001d76: 4b35 ldr r3, [pc, #212] @ (8001e4c ) + 8001d78: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001d7c: 611a str r2, [r3, #16] + hdma_usart2_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; + 8001d7e: 4b33 ldr r3, [pc, #204] @ (8001e4c ) + 8001d80: 2200 movs r2, #0 + 8001d82: 615a str r2, [r3, #20] + hdma_usart2_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; + 8001d84: 4b31 ldr r3, [pc, #196] @ (8001e4c ) + 8001d86: 2200 movs r2, #0 + 8001d88: 619a str r2, [r3, #24] + hdma_usart2_rx.Init.Mode = DMA_NORMAL; + 8001d8a: 4b30 ldr r3, [pc, #192] @ (8001e4c ) + 8001d8c: 2200 movs r2, #0 + 8001d8e: 61da str r2, [r3, #28] + hdma_usart2_rx.Init.Priority = DMA_PRIORITY_LOW; + 8001d90: 4b2e ldr r3, [pc, #184] @ (8001e4c ) + 8001d92: 2200 movs r2, #0 + 8001d94: 621a str r2, [r3, #32] + hdma_usart2_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; + 8001d96: 4b2d ldr r3, [pc, #180] @ (8001e4c ) + 8001d98: 2200 movs r2, #0 + 8001d9a: 625a str r2, [r3, #36] @ 0x24 + if (HAL_DMA_Init(&hdma_usart2_rx) != HAL_OK) + 8001d9c: 482b ldr r0, [pc, #172] @ (8001e4c ) + 8001d9e: f000 fa2f bl 8002200 + 8001da2: 4603 mov r3, r0 + 8001da4: 2b00 cmp r3, #0 + 8001da6: d001 beq.n 8001dac + Error_Handler(); + 8001da8: f7ff fad0 bl 800134c + __HAL_LINKDMA(uartHandle,hdmarx,hdma_usart2_rx); + 8001dac: 687b ldr r3, [r7, #4] + 8001dae: 4a27 ldr r2, [pc, #156] @ (8001e4c ) + 8001db0: 63da str r2, [r3, #60] @ 0x3c + 8001db2: 4a26 ldr r2, [pc, #152] @ (8001e4c ) + 8001db4: 687b ldr r3, [r7, #4] + 8001db6: 6393 str r3, [r2, #56] @ 0x38 + hdma_usart2_tx.Instance = DMA1_Stream6; + 8001db8: 4b26 ldr r3, [pc, #152] @ (8001e54 ) + 8001dba: 4a27 ldr r2, [pc, #156] @ (8001e58 ) + 8001dbc: 601a str r2, [r3, #0] + hdma_usart2_tx.Init.Channel = DMA_CHANNEL_4; + 8001dbe: 4b25 ldr r3, [pc, #148] @ (8001e54 ) + 8001dc0: f04f 6200 mov.w r2, #134217728 @ 0x8000000 + 8001dc4: 605a str r2, [r3, #4] + hdma_usart2_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; + 8001dc6: 4b23 ldr r3, [pc, #140] @ (8001e54 ) + 8001dc8: 2240 movs r2, #64 @ 0x40 + 8001dca: 609a str r2, [r3, #8] + hdma_usart2_tx.Init.PeriphInc = DMA_PINC_DISABLE; + 8001dcc: 4b21 ldr r3, [pc, #132] @ (8001e54 ) + 8001dce: 2200 movs r2, #0 + 8001dd0: 60da str r2, [r3, #12] + hdma_usart2_tx.Init.MemInc = DMA_MINC_ENABLE; + 8001dd2: 4b20 ldr r3, [pc, #128] @ (8001e54 ) + 8001dd4: f44f 6280 mov.w r2, #1024 @ 0x400 + 8001dd8: 611a str r2, [r3, #16] + hdma_usart2_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; + 8001dda: 4b1e ldr r3, [pc, #120] @ (8001e54 ) + 8001ddc: 2200 movs r2, #0 + 8001dde: 615a str r2, [r3, #20] + hdma_usart2_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; + 8001de0: 4b1c ldr r3, [pc, #112] @ (8001e54 ) + 8001de2: 2200 movs r2, #0 + 8001de4: 619a str r2, [r3, #24] + hdma_usart2_tx.Init.Mode = DMA_NORMAL; + 8001de6: 4b1b ldr r3, [pc, #108] @ (8001e54 ) + 8001de8: 2200 movs r2, #0 + 8001dea: 61da str r2, [r3, #28] + hdma_usart2_tx.Init.Priority = DMA_PRIORITY_LOW; + 8001dec: 4b19 ldr r3, [pc, #100] @ (8001e54 ) + 8001dee: 2200 movs r2, #0 + 8001df0: 621a str r2, [r3, #32] + hdma_usart2_tx.Init.FIFOMode = DMA_FIFOMODE_DISABLE; + 8001df2: 4b18 ldr r3, [pc, #96] @ (8001e54 ) + 8001df4: 2200 movs r2, #0 + 8001df6: 625a str r2, [r3, #36] @ 0x24 + if (HAL_DMA_Init(&hdma_usart2_tx) != HAL_OK) + 8001df8: 4816 ldr r0, [pc, #88] @ (8001e54 ) + 8001dfa: f000 fa01 bl 8002200 + 8001dfe: 4603 mov r3, r0 + 8001e00: 2b00 cmp r3, #0 + 8001e02: d001 beq.n 8001e08 + Error_Handler(); + 8001e04: f7ff faa2 bl 800134c + __HAL_LINKDMA(uartHandle,hdmatx,hdma_usart2_tx); + 8001e08: 687b ldr r3, [r7, #4] + 8001e0a: 4a12 ldr r2, [pc, #72] @ (8001e54 ) + 8001e0c: 639a str r2, [r3, #56] @ 0x38 + 8001e0e: 4a11 ldr r2, [pc, #68] @ (8001e54 ) + 8001e10: 687b ldr r3, [r7, #4] + 8001e12: 6393 str r3, [r2, #56] @ 0x38 + HAL_NVIC_SetPriority(USART2_IRQn, 5, 0); + 8001e14: 2200 movs r2, #0 + 8001e16: 2105 movs r1, #5 + 8001e18: 2026 movs r0, #38 @ 0x26 + 8001e1a: f000 f9ba bl 8002192 + HAL_NVIC_EnableIRQ(USART2_IRQn); + 8001e1e: 2026 movs r0, #38 @ 0x26 + 8001e20: f000 f9d3 bl 80021ca +} + 8001e24: bf00 nop + 8001e26: 3740 adds r7, #64 @ 0x40 + 8001e28: 46bd mov sp, r7 + 8001e2a: bd80 pop {r7, pc} + 8001e2c: 40011000 .word 0x40011000 + 8001e30: 40023800 .word 0x40023800 + 8001e34: 40020000 .word 0x40020000 + 8001e38: 20000d80 .word 0x20000d80 + 8001e3c: 40026440 .word 0x40026440 + 8001e40: 20000de0 .word 0x20000de0 + 8001e44: 400264b8 .word 0x400264b8 + 8001e48: 40004400 .word 0x40004400 + 8001e4c: 20000e40 .word 0x20000e40 + 8001e50: 40026088 .word 0x40026088 + 8001e54: 20000ea0 .word 0x20000ea0 + 8001e58: 400260a0 .word 0x400260a0 -08001da4 : +08001e5c : .section .text.Reset_Handler .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: ldr sp, =_estack /* set stack pointer */ - 8001da4: f8df d034 ldr.w sp, [pc, #52] @ 8001ddc + 8001e5c: f8df d034 ldr.w sp, [pc, #52] @ 8001e94 /* Call the clock system initialization function.*/ bl SystemInit - 8001da8: f7ff fb54 bl 8001454 + 8001e60: f7ff fb54 bl 800150c /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata - 8001dac: 480c ldr r0, [pc, #48] @ (8001de0 ) + 8001e64: 480c ldr r0, [pc, #48] @ (8001e98 ) ldr r1, =_edata - 8001dae: 490d ldr r1, [pc, #52] @ (8001de4 ) + 8001e66: 490d ldr r1, [pc, #52] @ (8001e9c ) ldr r2, =_sidata - 8001db0: 4a0d ldr r2, [pc, #52] @ (8001de8 ) + 8001e68: 4a0d ldr r2, [pc, #52] @ (8001ea0 ) movs r3, #0 - 8001db2: 2300 movs r3, #0 + 8001e6a: 2300 movs r3, #0 b LoopCopyDataInit - 8001db4: e002 b.n 8001dbc + 8001e6c: e002 b.n 8001e74 -08001db6 : +08001e6e : CopyDataInit: ldr r4, [r2, r3] - 8001db6: 58d4 ldr r4, [r2, r3] + 8001e6e: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] - 8001db8: 50c4 str r4, [r0, r3] + 8001e70: 50c4 str r4, [r0, r3] adds r3, r3, #4 - 8001dba: 3304 adds r3, #4 + 8001e72: 3304 adds r3, #4 -08001dbc : +08001e74 : LoopCopyDataInit: adds r4, r0, r3 - 8001dbc: 18c4 adds r4, r0, r3 + 8001e74: 18c4 adds r4, r0, r3 cmp r4, r1 - 8001dbe: 428c cmp r4, r1 + 8001e76: 428c cmp r4, r1 bcc CopyDataInit - 8001dc0: d3f9 bcc.n 8001db6 + 8001e78: d3f9 bcc.n 8001e6e /* Zero fill the bss segment. */ ldr r2, =_sbss - 8001dc2: 4a0a ldr r2, [pc, #40] @ (8001dec ) + 8001e7a: 4a0a ldr r2, [pc, #40] @ (8001ea4 ) ldr r4, =_ebss - 8001dc4: 4c0a ldr r4, [pc, #40] @ (8001df0 ) + 8001e7c: 4c0a ldr r4, [pc, #40] @ (8001ea8 ) movs r3, #0 - 8001dc6: 2300 movs r3, #0 + 8001e7e: 2300 movs r3, #0 b LoopFillZerobss - 8001dc8: e001 b.n 8001dce + 8001e80: e001 b.n 8001e86 -08001dca : +08001e82 : FillZerobss: str r3, [r2] - 8001dca: 6013 str r3, [r2, #0] + 8001e82: 6013 str r3, [r2, #0] adds r2, r2, #4 - 8001dcc: 3204 adds r2, #4 + 8001e84: 3204 adds r2, #4 -08001dce : +08001e86 : LoopFillZerobss: cmp r2, r4 - 8001dce: 42a2 cmp r2, r4 + 8001e86: 42a2 cmp r2, r4 bcc FillZerobss - 8001dd0: d3fb bcc.n 8001dca + 8001e88: d3fb bcc.n 8001e82 /* Call static constructors */ bl __libc_init_array - 8001dd2: f009 fca1 bl 800b718 <__libc_init_array> + 8001e8a: f009 fca1 bl 800b7d0 <__libc_init_array> /* Call the application's entry point.*/ bl main - 8001dd6: f7fe fda7 bl 8000928
+ 8001e8e: f7fe fd4b bl 8000928
bx lr - 8001dda: 4770 bx lr + 8001e92: 4770 bx lr ldr sp, =_estack /* set stack pointer */ - 8001ddc: 20020000 .word 0x20020000 + 8001e94: 20020000 .word 0x20020000 ldr r0, =_sdata - 8001de0: 20000000 .word 0x20000000 + 8001e98: 20000000 .word 0x20000000 ldr r1, =_edata - 8001de4: 200001a0 .word 0x200001a0 + 8001e9c: 200001a0 .word 0x200001a0 ldr r2, =_sidata - 8001de8: 0800b800 .word 0x0800b800 + 8001ea0: 0800b8b8 .word 0x0800b8b8 ldr r2, =_sbss - 8001dec: 200001a0 .word 0x200001a0 + 8001ea4: 200001a0 .word 0x200001a0 ldr r4, =_ebss - 8001df0: 200018dc .word 0x200018dc + 8001ea8: 200018dc .word 0x200018dc -08001df4 : +08001eac : * @retval None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop - 8001df4: e7fe b.n 8001df4 + 8001eac: e7fe b.n 8001eac ... -08001df8 : +08001eb0 : * 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) { - 8001df8: b580 push {r7, lr} - 8001dfa: af00 add r7, sp, #0 + 8001eb0: b580 push {r7, lr} + 8001eb2: af00 add r7, sp, #0 /* Configure Flash prefetch, Instruction cache, Data cache */ #if (INSTRUCTION_CACHE_ENABLE != 0U) __HAL_FLASH_INSTRUCTION_CACHE_ENABLE(); - 8001dfc: 4b0e ldr r3, [pc, #56] @ (8001e38 ) - 8001dfe: 681b ldr r3, [r3, #0] - 8001e00: 4a0d ldr r2, [pc, #52] @ (8001e38 ) - 8001e02: f443 7300 orr.w r3, r3, #512 @ 0x200 - 8001e06: 6013 str r3, [r2, #0] + 8001eb4: 4b0e ldr r3, [pc, #56] @ (8001ef0 ) + 8001eb6: 681b ldr r3, [r3, #0] + 8001eb8: 4a0d ldr r2, [pc, #52] @ (8001ef0 ) + 8001eba: f443 7300 orr.w r3, r3, #512 @ 0x200 + 8001ebe: 6013 str r3, [r2, #0] #endif /* INSTRUCTION_CACHE_ENABLE */ #if (DATA_CACHE_ENABLE != 0U) __HAL_FLASH_DATA_CACHE_ENABLE(); - 8001e08: 4b0b ldr r3, [pc, #44] @ (8001e38 ) - 8001e0a: 681b ldr r3, [r3, #0] - 8001e0c: 4a0a ldr r2, [pc, #40] @ (8001e38 ) - 8001e0e: f443 6380 orr.w r3, r3, #1024 @ 0x400 - 8001e12: 6013 str r3, [r2, #0] + 8001ec0: 4b0b ldr r3, [pc, #44] @ (8001ef0 ) + 8001ec2: 681b ldr r3, [r3, #0] + 8001ec4: 4a0a ldr r2, [pc, #40] @ (8001ef0 ) + 8001ec6: f443 6380 orr.w r3, r3, #1024 @ 0x400 + 8001eca: 6013 str r3, [r2, #0] #endif /* DATA_CACHE_ENABLE */ #if (PREFETCH_ENABLE != 0U) __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); - 8001e14: 4b08 ldr r3, [pc, #32] @ (8001e38 ) - 8001e16: 681b ldr r3, [r3, #0] - 8001e18: 4a07 ldr r2, [pc, #28] @ (8001e38 ) - 8001e1a: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8001e1e: 6013 str r3, [r2, #0] + 8001ecc: 4b08 ldr r3, [pc, #32] @ (8001ef0 ) + 8001ece: 681b ldr r3, [r3, #0] + 8001ed0: 4a07 ldr r2, [pc, #28] @ (8001ef0 ) + 8001ed2: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8001ed6: 6013 str r3, [r2, #0] #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); - 8001e20: 2003 movs r0, #3 - 8001e22: f000 f94f bl 80020c4 + 8001ed8: 2003 movs r0, #3 + 8001eda: f000 f94f bl 800217c /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); - 8001e26: 200f movs r0, #15 - 8001e28: f000 f808 bl 8001e3c + 8001ede: 200f movs r0, #15 + 8001ee0: f000 f808 bl 8001ef4 /* Init the low level hardware */ HAL_MspInit(); - 8001e2c: f7ff fa38 bl 80012a0 + 8001ee4: f7ff fa38 bl 8001358 /* Return function status */ return HAL_OK; - 8001e30: 2300 movs r3, #0 + 8001ee8: 2300 movs r3, #0 } - 8001e32: 4618 mov r0, r3 - 8001e34: bd80 pop {r7, pc} - 8001e36: bf00 nop - 8001e38: 40023c00 .word 0x40023c00 + 8001eea: 4618 mov r0, r3 + 8001eec: bd80 pop {r7, pc} + 8001eee: bf00 nop + 8001ef0: 40023c00 .word 0x40023c00 -08001e3c : +08001ef4 : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { - 8001e3c: b580 push {r7, lr} - 8001e3e: b082 sub sp, #8 - 8001e40: af00 add r7, sp, #0 - 8001e42: 6078 str r0, [r7, #4] + 8001ef4: b580 push {r7, lr} + 8001ef6: b082 sub sp, #8 + 8001ef8: af00 add r7, sp, #0 + 8001efa: 6078 str r0, [r7, #4] /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) - 8001e44: 4b12 ldr r3, [pc, #72] @ (8001e90 ) - 8001e46: 681a ldr r2, [r3, #0] - 8001e48: 4b12 ldr r3, [pc, #72] @ (8001e94 ) - 8001e4a: 781b ldrb r3, [r3, #0] - 8001e4c: 4619 mov r1, r3 - 8001e4e: f44f 737a mov.w r3, #1000 @ 0x3e8 - 8001e52: fbb3 f3f1 udiv r3, r3, r1 - 8001e56: fbb2 f3f3 udiv r3, r2, r3 - 8001e5a: 4618 mov r0, r3 - 8001e5c: f000 f967 bl 800212e - 8001e60: 4603 mov r3, r0 - 8001e62: 2b00 cmp r3, #0 - 8001e64: d001 beq.n 8001e6a + 8001efc: 4b12 ldr r3, [pc, #72] @ (8001f48 ) + 8001efe: 681a ldr r2, [r3, #0] + 8001f00: 4b12 ldr r3, [pc, #72] @ (8001f4c ) + 8001f02: 781b ldrb r3, [r3, #0] + 8001f04: 4619 mov r1, r3 + 8001f06: f44f 737a mov.w r3, #1000 @ 0x3e8 + 8001f0a: fbb3 f3f1 udiv r3, r3, r1 + 8001f0e: fbb2 f3f3 udiv r3, r2, r3 + 8001f12: 4618 mov r0, r3 + 8001f14: f000 f967 bl 80021e6 + 8001f18: 4603 mov r3, r0 + 8001f1a: 2b00 cmp r3, #0 + 8001f1c: d001 beq.n 8001f22 { return HAL_ERROR; - 8001e66: 2301 movs r3, #1 - 8001e68: e00e b.n 8001e88 + 8001f1e: 2301 movs r3, #1 + 8001f20: e00e b.n 8001f40 } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) - 8001e6a: 687b ldr r3, [r7, #4] - 8001e6c: 2b0f cmp r3, #15 - 8001e6e: d80a bhi.n 8001e86 + 8001f22: 687b ldr r3, [r7, #4] + 8001f24: 2b0f cmp r3, #15 + 8001f26: d80a bhi.n 8001f3e { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); - 8001e70: 2200 movs r2, #0 - 8001e72: 6879 ldr r1, [r7, #4] - 8001e74: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff - 8001e78: f000 f92f bl 80020da + 8001f28: 2200 movs r2, #0 + 8001f2a: 6879 ldr r1, [r7, #4] + 8001f2c: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff + 8001f30: f000 f92f bl 8002192 uwTickPrio = TickPriority; - 8001e7c: 4a06 ldr r2, [pc, #24] @ (8001e98 ) - 8001e7e: 687b ldr r3, [r7, #4] - 8001e80: 6013 str r3, [r2, #0] + 8001f34: 4a06 ldr r2, [pc, #24] @ (8001f50 ) + 8001f36: 687b ldr r3, [r7, #4] + 8001f38: 6013 str r3, [r2, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; - 8001e82: 2300 movs r3, #0 - 8001e84: e000 b.n 8001e88 + 8001f3a: 2300 movs r3, #0 + 8001f3c: e000 b.n 8001f40 return HAL_ERROR; - 8001e86: 2301 movs r3, #1 + 8001f3e: 2301 movs r3, #1 } - 8001e88: 4618 mov r0, r3 - 8001e8a: 3708 adds r7, #8 - 8001e8c: 46bd mov sp, r7 - 8001e8e: bd80 pop {r7, pc} - 8001e90: 20000090 .word 0x20000090 - 8001e94: 20000098 .word 0x20000098 - 8001e98: 20000094 .word 0x20000094 + 8001f40: 4618 mov r0, r3 + 8001f42: 3708 adds r7, #8 + 8001f44: 46bd mov sp, r7 + 8001f46: bd80 pop {r7, pc} + 8001f48: 20000090 .word 0x20000090 + 8001f4c: 20000098 .word 0x20000098 + 8001f50: 20000094 .word 0x20000094 -08001e9c : +08001f54 : * @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) { - 8001e9c: b480 push {r7} - 8001e9e: af00 add r7, sp, #0 + 8001f54: b480 push {r7} + 8001f56: af00 add r7, sp, #0 uwTick += uwTickFreq; - 8001ea0: 4b06 ldr r3, [pc, #24] @ (8001ebc ) - 8001ea2: 781b ldrb r3, [r3, #0] - 8001ea4: 461a mov r2, r3 - 8001ea6: 4b06 ldr r3, [pc, #24] @ (8001ec0 ) - 8001ea8: 681b ldr r3, [r3, #0] - 8001eaa: 4413 add r3, r2 - 8001eac: 4a04 ldr r2, [pc, #16] @ (8001ec0 ) - 8001eae: 6013 str r3, [r2, #0] + 8001f58: 4b06 ldr r3, [pc, #24] @ (8001f74 ) + 8001f5a: 781b ldrb r3, [r3, #0] + 8001f5c: 461a mov r2, r3 + 8001f5e: 4b06 ldr r3, [pc, #24] @ (8001f78 ) + 8001f60: 681b ldr r3, [r3, #0] + 8001f62: 4413 add r3, r2 + 8001f64: 4a04 ldr r2, [pc, #16] @ (8001f78 ) + 8001f66: 6013 str r3, [r2, #0] } - 8001eb0: bf00 nop - 8001eb2: 46bd mov sp, r7 - 8001eb4: f85d 7b04 ldr.w r7, [sp], #4 - 8001eb8: 4770 bx lr - 8001eba: bf00 nop - 8001ebc: 20000098 .word 0x20000098 - 8001ec0: 20000f00 .word 0x20000f00 + 8001f68: bf00 nop + 8001f6a: 46bd mov sp, r7 + 8001f6c: f85d 7b04 ldr.w r7, [sp], #4 + 8001f70: 4770 bx lr + 8001f72: bf00 nop + 8001f74: 20000098 .word 0x20000098 + 8001f78: 20000f00 .word 0x20000f00 -08001ec4 : +08001f7c : * @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) { - 8001ec4: b480 push {r7} - 8001ec6: af00 add r7, sp, #0 + 8001f7c: b480 push {r7} + 8001f7e: af00 add r7, sp, #0 return uwTick; - 8001ec8: 4b03 ldr r3, [pc, #12] @ (8001ed8 ) - 8001eca: 681b ldr r3, [r3, #0] + 8001f80: 4b03 ldr r3, [pc, #12] @ (8001f90 ) + 8001f82: 681b ldr r3, [r3, #0] } - 8001ecc: 4618 mov r0, r3 - 8001ece: 46bd mov sp, r7 - 8001ed0: f85d 7b04 ldr.w r7, [sp], #4 - 8001ed4: 4770 bx lr - 8001ed6: bf00 nop - 8001ed8: 20000f00 .word 0x20000f00 + 8001f84: 4618 mov r0, r3 + 8001f86: 46bd mov sp, r7 + 8001f88: f85d 7b04 ldr.w r7, [sp], #4 + 8001f8c: 4770 bx lr + 8001f8e: bf00 nop + 8001f90: 20000f00 .word 0x20000f00 -08001edc : +08001f94 : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { - 8001edc: b580 push {r7, lr} - 8001ede: b084 sub sp, #16 - 8001ee0: af00 add r7, sp, #0 - 8001ee2: 6078 str r0, [r7, #4] + 8001f94: b580 push {r7, lr} + 8001f96: b084 sub sp, #16 + 8001f98: af00 add r7, sp, #0 + 8001f9a: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); - 8001ee4: f7ff ffee bl 8001ec4 - 8001ee8: 60b8 str r0, [r7, #8] + 8001f9c: f7ff ffee bl 8001f7c + 8001fa0: 60b8 str r0, [r7, #8] uint32_t wait = Delay; - 8001eea: 687b ldr r3, [r7, #4] - 8001eec: 60fb str r3, [r7, #12] + 8001fa2: 687b ldr r3, [r7, #4] + 8001fa4: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) - 8001eee: 68fb ldr r3, [r7, #12] - 8001ef0: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff - 8001ef4: d005 beq.n 8001f02 + 8001fa6: 68fb ldr r3, [r7, #12] + 8001fa8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff + 8001fac: d005 beq.n 8001fba { wait += (uint32_t)(uwTickFreq); - 8001ef6: 4b0a ldr r3, [pc, #40] @ (8001f20 ) - 8001ef8: 781b ldrb r3, [r3, #0] - 8001efa: 461a mov r2, r3 - 8001efc: 68fb ldr r3, [r7, #12] - 8001efe: 4413 add r3, r2 - 8001f00: 60fb str r3, [r7, #12] + 8001fae: 4b0a ldr r3, [pc, #40] @ (8001fd8 ) + 8001fb0: 781b ldrb r3, [r3, #0] + 8001fb2: 461a mov r2, r3 + 8001fb4: 68fb ldr r3, [r7, #12] + 8001fb6: 4413 add r3, r2 + 8001fb8: 60fb str r3, [r7, #12] } while((HAL_GetTick() - tickstart) < wait) - 8001f02: bf00 nop - 8001f04: f7ff ffde bl 8001ec4 - 8001f08: 4602 mov r2, r0 - 8001f0a: 68bb ldr r3, [r7, #8] - 8001f0c: 1ad3 subs r3, r2, r3 - 8001f0e: 68fa ldr r2, [r7, #12] - 8001f10: 429a cmp r2, r3 - 8001f12: d8f7 bhi.n 8001f04 + 8001fba: bf00 nop + 8001fbc: f7ff ffde bl 8001f7c + 8001fc0: 4602 mov r2, r0 + 8001fc2: 68bb ldr r3, [r7, #8] + 8001fc4: 1ad3 subs r3, r2, r3 + 8001fc6: 68fa ldr r2, [r7, #12] + 8001fc8: 429a cmp r2, r3 + 8001fca: d8f7 bhi.n 8001fbc { } } - 8001f14: bf00 nop - 8001f16: bf00 nop - 8001f18: 3710 adds r7, #16 - 8001f1a: 46bd mov sp, r7 - 8001f1c: bd80 pop {r7, pc} - 8001f1e: bf00 nop - 8001f20: 20000098 .word 0x20000098 + 8001fcc: bf00 nop + 8001fce: bf00 nop + 8001fd0: 3710 adds r7, #16 + 8001fd2: 46bd mov sp, r7 + 8001fd4: bd80 pop {r7, pc} + 8001fd6: bf00 nop + 8001fd8: 20000098 .word 0x20000098 -08001f24 <__NVIC_SetPriorityGrouping>: +08001fdc <__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) { - 8001f24: b480 push {r7} - 8001f26: b085 sub sp, #20 - 8001f28: af00 add r7, sp, #0 - 8001f2a: 6078 str r0, [r7, #4] + 8001fdc: b480 push {r7} + 8001fde: b085 sub sp, #20 + 8001fe0: af00 add r7, sp, #0 + 8001fe2: 6078 str r0, [r7, #4] uint32_t reg_value; uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 8001f2c: 687b ldr r3, [r7, #4] - 8001f2e: f003 0307 and.w r3, r3, #7 - 8001f32: 60fb str r3, [r7, #12] + 8001fe4: 687b ldr r3, [r7, #4] + 8001fe6: f003 0307 and.w r3, r3, #7 + 8001fea: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ - 8001f34: 4b0c ldr r3, [pc, #48] @ (8001f68 <__NVIC_SetPriorityGrouping+0x44>) - 8001f36: 68db ldr r3, [r3, #12] - 8001f38: 60bb str r3, [r7, #8] + 8001fec: 4b0c ldr r3, [pc, #48] @ (8002020 <__NVIC_SetPriorityGrouping+0x44>) + 8001fee: 68db ldr r3, [r3, #12] + 8001ff0: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ - 8001f3a: 68ba ldr r2, [r7, #8] - 8001f3c: f64f 03ff movw r3, #63743 @ 0xf8ff - 8001f40: 4013 ands r3, r2 - 8001f42: 60bb str r3, [r7, #8] + 8001ff2: 68ba ldr r2, [r7, #8] + 8001ff4: f64f 03ff movw r3, #63743 @ 0xf8ff + 8001ff8: 4013 ands r3, r2 + 8001ffa: 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 */ - 8001f44: 68fb ldr r3, [r7, #12] - 8001f46: 021a lsls r2, r3, #8 + 8001ffc: 68fb ldr r3, [r7, #12] + 8001ffe: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | - 8001f48: 68bb ldr r3, [r7, #8] - 8001f4a: 4313 orrs r3, r2 + 8002000: 68bb ldr r3, [r7, #8] + 8002002: 4313 orrs r3, r2 reg_value = (reg_value | - 8001f4c: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 - 8001f50: f443 3300 orr.w r3, r3, #131072 @ 0x20000 - 8001f54: 60bb str r3, [r7, #8] + 8002004: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000 + 8002008: f443 3300 orr.w r3, r3, #131072 @ 0x20000 + 800200c: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; - 8001f56: 4a04 ldr r2, [pc, #16] @ (8001f68 <__NVIC_SetPriorityGrouping+0x44>) - 8001f58: 68bb ldr r3, [r7, #8] - 8001f5a: 60d3 str r3, [r2, #12] + 800200e: 4a04 ldr r2, [pc, #16] @ (8002020 <__NVIC_SetPriorityGrouping+0x44>) + 8002010: 68bb ldr r3, [r7, #8] + 8002012: 60d3 str r3, [r2, #12] } - 8001f5c: bf00 nop - 8001f5e: 3714 adds r7, #20 - 8001f60: 46bd mov sp, r7 - 8001f62: f85d 7b04 ldr.w r7, [sp], #4 - 8001f66: 4770 bx lr - 8001f68: e000ed00 .word 0xe000ed00 + 8002014: bf00 nop + 8002016: 3714 adds r7, #20 + 8002018: 46bd mov sp, r7 + 800201a: f85d 7b04 ldr.w r7, [sp], #4 + 800201e: 4770 bx lr + 8002020: e000ed00 .word 0xe000ed00 -08001f6c <__NVIC_GetPriorityGrouping>: +08002024 <__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) { - 8001f6c: b480 push {r7} - 8001f6e: af00 add r7, sp, #0 + 8002024: b480 push {r7} + 8002026: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); - 8001f70: 4b04 ldr r3, [pc, #16] @ (8001f84 <__NVIC_GetPriorityGrouping+0x18>) - 8001f72: 68db ldr r3, [r3, #12] - 8001f74: 0a1b lsrs r3, r3, #8 - 8001f76: f003 0307 and.w r3, r3, #7 + 8002028: 4b04 ldr r3, [pc, #16] @ (800203c <__NVIC_GetPriorityGrouping+0x18>) + 800202a: 68db ldr r3, [r3, #12] + 800202c: 0a1b lsrs r3, r3, #8 + 800202e: f003 0307 and.w r3, r3, #7 } - 8001f7a: 4618 mov r0, r3 - 8001f7c: 46bd mov sp, r7 - 8001f7e: f85d 7b04 ldr.w r7, [sp], #4 - 8001f82: 4770 bx lr - 8001f84: e000ed00 .word 0xe000ed00 + 8002032: 4618 mov r0, r3 + 8002034: 46bd mov sp, r7 + 8002036: f85d 7b04 ldr.w r7, [sp], #4 + 800203a: 4770 bx lr + 800203c: e000ed00 .word 0xe000ed00 -08001f88 <__NVIC_EnableIRQ>: +08002040 <__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) { - 8001f88: b480 push {r7} - 8001f8a: b083 sub sp, #12 - 8001f8c: af00 add r7, sp, #0 - 8001f8e: 4603 mov r3, r0 - 8001f90: 71fb strb r3, [r7, #7] + 8002040: b480 push {r7} + 8002042: b083 sub sp, #12 + 8002044: af00 add r7, sp, #0 + 8002046: 4603 mov r3, r0 + 8002048: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8001f92: f997 3007 ldrsb.w r3, [r7, #7] - 8001f96: 2b00 cmp r3, #0 - 8001f98: db0b blt.n 8001fb2 <__NVIC_EnableIRQ+0x2a> + 800204a: f997 3007 ldrsb.w r3, [r7, #7] + 800204e: 2b00 cmp r3, #0 + 8002050: db0b blt.n 800206a <__NVIC_EnableIRQ+0x2a> { __COMPILER_BARRIER(); NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); - 8001f9a: 79fb ldrb r3, [r7, #7] - 8001f9c: f003 021f and.w r2, r3, #31 - 8001fa0: 4907 ldr r1, [pc, #28] @ (8001fc0 <__NVIC_EnableIRQ+0x38>) - 8001fa2: f997 3007 ldrsb.w r3, [r7, #7] - 8001fa6: 095b lsrs r3, r3, #5 - 8001fa8: 2001 movs r0, #1 - 8001faa: fa00 f202 lsl.w r2, r0, r2 - 8001fae: f841 2023 str.w r2, [r1, r3, lsl #2] + 8002052: 79fb ldrb r3, [r7, #7] + 8002054: f003 021f and.w r2, r3, #31 + 8002058: 4907 ldr r1, [pc, #28] @ (8002078 <__NVIC_EnableIRQ+0x38>) + 800205a: f997 3007 ldrsb.w r3, [r7, #7] + 800205e: 095b lsrs r3, r3, #5 + 8002060: 2001 movs r0, #1 + 8002062: fa00 f202 lsl.w r2, r0, r2 + 8002066: f841 2023 str.w r2, [r1, r3, lsl #2] __COMPILER_BARRIER(); } } - 8001fb2: bf00 nop - 8001fb4: 370c adds r7, #12 - 8001fb6: 46bd mov sp, r7 - 8001fb8: f85d 7b04 ldr.w r7, [sp], #4 - 8001fbc: 4770 bx lr - 8001fbe: bf00 nop - 8001fc0: e000e100 .word 0xe000e100 + 800206a: bf00 nop + 800206c: 370c adds r7, #12 + 800206e: 46bd mov sp, r7 + 8002070: f85d 7b04 ldr.w r7, [sp], #4 + 8002074: 4770 bx lr + 8002076: bf00 nop + 8002078: e000e100 .word 0xe000e100 -08001fc4 <__NVIC_SetPriority>: +0800207c <__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) { - 8001fc4: b480 push {r7} - 8001fc6: b083 sub sp, #12 - 8001fc8: af00 add r7, sp, #0 - 8001fca: 4603 mov r3, r0 - 8001fcc: 6039 str r1, [r7, #0] - 8001fce: 71fb strb r3, [r7, #7] + 800207c: b480 push {r7} + 800207e: b083 sub sp, #12 + 8002080: af00 add r7, sp, #0 + 8002082: 4603 mov r3, r0 + 8002084: 6039 str r1, [r7, #0] + 8002086: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) - 8001fd0: f997 3007 ldrsb.w r3, [r7, #7] - 8001fd4: 2b00 cmp r3, #0 - 8001fd6: db0a blt.n 8001fee <__NVIC_SetPriority+0x2a> + 8002088: f997 3007 ldrsb.w r3, [r7, #7] + 800208c: 2b00 cmp r3, #0 + 800208e: db0a blt.n 80020a6 <__NVIC_SetPriority+0x2a> { NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8001fd8: 683b ldr r3, [r7, #0] - 8001fda: b2da uxtb r2, r3 - 8001fdc: 490c ldr r1, [pc, #48] @ (8002010 <__NVIC_SetPriority+0x4c>) - 8001fde: f997 3007 ldrsb.w r3, [r7, #7] - 8001fe2: 0112 lsls r2, r2, #4 - 8001fe4: b2d2 uxtb r2, r2 - 8001fe6: 440b add r3, r1 - 8001fe8: f883 2300 strb.w r2, [r3, #768] @ 0x300 + 8002090: 683b ldr r3, [r7, #0] + 8002092: b2da uxtb r2, r3 + 8002094: 490c ldr r1, [pc, #48] @ (80020c8 <__NVIC_SetPriority+0x4c>) + 8002096: f997 3007 ldrsb.w r3, [r7, #7] + 800209a: 0112 lsls r2, r2, #4 + 800209c: b2d2 uxtb r2, r2 + 800209e: 440b add r3, r1 + 80020a0: 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); } } - 8001fec: e00a b.n 8002004 <__NVIC_SetPriority+0x40> + 80020a4: e00a b.n 80020bc <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); - 8001fee: 683b ldr r3, [r7, #0] - 8001ff0: b2da uxtb r2, r3 - 8001ff2: 4908 ldr r1, [pc, #32] @ (8002014 <__NVIC_SetPriority+0x50>) - 8001ff4: 79fb ldrb r3, [r7, #7] - 8001ff6: f003 030f and.w r3, r3, #15 - 8001ffa: 3b04 subs r3, #4 - 8001ffc: 0112 lsls r2, r2, #4 - 8001ffe: b2d2 uxtb r2, r2 - 8002000: 440b add r3, r1 - 8002002: 761a strb r2, [r3, #24] + 80020a6: 683b ldr r3, [r7, #0] + 80020a8: b2da uxtb r2, r3 + 80020aa: 4908 ldr r1, [pc, #32] @ (80020cc <__NVIC_SetPriority+0x50>) + 80020ac: 79fb ldrb r3, [r7, #7] + 80020ae: f003 030f and.w r3, r3, #15 + 80020b2: 3b04 subs r3, #4 + 80020b4: 0112 lsls r2, r2, #4 + 80020b6: b2d2 uxtb r2, r2 + 80020b8: 440b add r3, r1 + 80020ba: 761a strb r2, [r3, #24] } - 8002004: bf00 nop - 8002006: 370c adds r7, #12 - 8002008: 46bd mov sp, r7 - 800200a: f85d 7b04 ldr.w r7, [sp], #4 - 800200e: 4770 bx lr - 8002010: e000e100 .word 0xe000e100 - 8002014: e000ed00 .word 0xe000ed00 + 80020bc: bf00 nop + 80020be: 370c adds r7, #12 + 80020c0: 46bd mov sp, r7 + 80020c2: f85d 7b04 ldr.w r7, [sp], #4 + 80020c6: 4770 bx lr + 80020c8: e000e100 .word 0xe000e100 + 80020cc: e000ed00 .word 0xe000ed00 -08002018 : +080020d0 : \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) { - 8002018: b480 push {r7} - 800201a: b089 sub sp, #36 @ 0x24 - 800201c: af00 add r7, sp, #0 - 800201e: 60f8 str r0, [r7, #12] - 8002020: 60b9 str r1, [r7, #8] - 8002022: 607a str r2, [r7, #4] + 80020d0: b480 push {r7} + 80020d2: b089 sub sp, #36 @ 0x24 + 80020d4: af00 add r7, sp, #0 + 80020d6: 60f8 str r0, [r7, #12] + 80020d8: 60b9 str r1, [r7, #8] + 80020da: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ - 8002024: 68fb ldr r3, [r7, #12] - 8002026: f003 0307 and.w r3, r3, #7 - 800202a: 61fb str r3, [r7, #28] + 80020dc: 68fb ldr r3, [r7, #12] + 80020de: f003 0307 and.w r3, r3, #7 + 80020e2: 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); - 800202c: 69fb ldr r3, [r7, #28] - 800202e: f1c3 0307 rsb r3, r3, #7 - 8002032: 2b04 cmp r3, #4 - 8002034: bf28 it cs - 8002036: 2304 movcs r3, #4 - 8002038: 61bb str r3, [r7, #24] + 80020e4: 69fb ldr r3, [r7, #28] + 80020e6: f1c3 0307 rsb r3, r3, #7 + 80020ea: 2b04 cmp r3, #4 + 80020ec: bf28 it cs + 80020ee: 2304 movcs r3, #4 + 80020f0: 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)); - 800203a: 69fb ldr r3, [r7, #28] - 800203c: 3304 adds r3, #4 - 800203e: 2b06 cmp r3, #6 - 8002040: d902 bls.n 8002048 - 8002042: 69fb ldr r3, [r7, #28] - 8002044: 3b03 subs r3, #3 - 8002046: e000 b.n 800204a - 8002048: 2300 movs r3, #0 - 800204a: 617b str r3, [r7, #20] + 80020f2: 69fb ldr r3, [r7, #28] + 80020f4: 3304 adds r3, #4 + 80020f6: 2b06 cmp r3, #6 + 80020f8: d902 bls.n 8002100 + 80020fa: 69fb ldr r3, [r7, #28] + 80020fc: 3b03 subs r3, #3 + 80020fe: e000 b.n 8002102 + 8002100: 2300 movs r3, #0 + 8002102: 617b str r3, [r7, #20] return ( ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 800204c: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff - 8002050: 69bb ldr r3, [r7, #24] - 8002052: fa02 f303 lsl.w r3, r2, r3 - 8002056: 43da mvns r2, r3 - 8002058: 68bb ldr r3, [r7, #8] - 800205a: 401a ands r2, r3 - 800205c: 697b ldr r3, [r7, #20] - 800205e: 409a lsls r2, r3 + 8002104: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff + 8002108: 69bb ldr r3, [r7, #24] + 800210a: fa02 f303 lsl.w r3, r2, r3 + 800210e: 43da mvns r2, r3 + 8002110: 68bb ldr r3, [r7, #8] + 8002112: 401a ands r2, r3 + 8002114: 697b ldr r3, [r7, #20] + 8002116: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) - 8002060: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff - 8002064: 697b ldr r3, [r7, #20] - 8002066: fa01 f303 lsl.w r3, r1, r3 - 800206a: 43d9 mvns r1, r3 - 800206c: 687b ldr r3, [r7, #4] - 800206e: 400b ands r3, r1 + 8002118: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff + 800211c: 697b ldr r3, [r7, #20] + 800211e: fa01 f303 lsl.w r3, r1, r3 + 8002122: 43d9 mvns r1, r3 + 8002124: 687b ldr r3, [r7, #4] + 8002126: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | - 8002070: 4313 orrs r3, r2 + 8002128: 4313 orrs r3, r2 ); } - 8002072: 4618 mov r0, r3 - 8002074: 3724 adds r7, #36 @ 0x24 - 8002076: 46bd mov sp, r7 - 8002078: f85d 7b04 ldr.w r7, [sp], #4 - 800207c: 4770 bx lr + 800212a: 4618 mov r0, r3 + 800212c: 3724 adds r7, #36 @ 0x24 + 800212e: 46bd mov sp, r7 + 8002130: f85d 7b04 ldr.w r7, [sp], #4 + 8002134: 4770 bx lr ... -08002080 : +08002138 : \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) { - 8002080: b580 push {r7, lr} - 8002082: b082 sub sp, #8 - 8002084: af00 add r7, sp, #0 - 8002086: 6078 str r0, [r7, #4] + 8002138: b580 push {r7, lr} + 800213a: b082 sub sp, #8 + 800213c: af00 add r7, sp, #0 + 800213e: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) - 8002088: 687b ldr r3, [r7, #4] - 800208a: 3b01 subs r3, #1 - 800208c: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 - 8002090: d301 bcc.n 8002096 + 8002140: 687b ldr r3, [r7, #4] + 8002142: 3b01 subs r3, #1 + 8002144: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000 + 8002148: d301 bcc.n 800214e { return (1UL); /* Reload value impossible */ - 8002092: 2301 movs r3, #1 - 8002094: e00f b.n 80020b6 + 800214a: 2301 movs r3, #1 + 800214c: e00f b.n 800216e } SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ - 8002096: 4a0a ldr r2, [pc, #40] @ (80020c0 ) - 8002098: 687b ldr r3, [r7, #4] - 800209a: 3b01 subs r3, #1 - 800209c: 6053 str r3, [r2, #4] + 800214e: 4a0a ldr r2, [pc, #40] @ (8002178 ) + 8002150: 687b ldr r3, [r7, #4] + 8002152: 3b01 subs r3, #1 + 8002154: 6053 str r3, [r2, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ - 800209e: 210f movs r1, #15 - 80020a0: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff - 80020a4: f7ff ff8e bl 8001fc4 <__NVIC_SetPriority> + 8002156: 210f movs r1, #15 + 8002158: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff + 800215c: f7ff ff8e bl 800207c <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ - 80020a8: 4b05 ldr r3, [pc, #20] @ (80020c0 ) - 80020aa: 2200 movs r2, #0 - 80020ac: 609a str r2, [r3, #8] + 8002160: 4b05 ldr r3, [pc, #20] @ (8002178 ) + 8002162: 2200 movs r2, #0 + 8002164: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | - 80020ae: 4b04 ldr r3, [pc, #16] @ (80020c0 ) - 80020b0: 2207 movs r2, #7 - 80020b2: 601a str r2, [r3, #0] + 8002166: 4b04 ldr r3, [pc, #16] @ (8002178 ) + 8002168: 2207 movs r2, #7 + 800216a: 601a str r2, [r3, #0] SysTick_CTRL_TICKINT_Msk | SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ return (0UL); /* Function successful */ - 80020b4: 2300 movs r3, #0 + 800216c: 2300 movs r3, #0 } - 80020b6: 4618 mov r0, r3 - 80020b8: 3708 adds r7, #8 - 80020ba: 46bd mov sp, r7 - 80020bc: bd80 pop {r7, pc} - 80020be: bf00 nop - 80020c0: e000e010 .word 0xe000e010 + 800216e: 4618 mov r0, r3 + 8002170: 3708 adds r7, #8 + 8002172: 46bd mov sp, r7 + 8002174: bd80 pop {r7, pc} + 8002176: bf00 nop + 8002178: e000e010 .word 0xe000e010 -080020c4 : +0800217c : * @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) { - 80020c4: b580 push {r7, lr} - 80020c6: b082 sub sp, #8 - 80020c8: af00 add r7, sp, #0 - 80020ca: 6078 str r0, [r7, #4] + 800217c: b580 push {r7, lr} + 800217e: b082 sub sp, #8 + 8002180: af00 add r7, sp, #0 + 8002182: 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); - 80020cc: 6878 ldr r0, [r7, #4] - 80020ce: f7ff ff29 bl 8001f24 <__NVIC_SetPriorityGrouping> + 8002184: 6878 ldr r0, [r7, #4] + 8002186: f7ff ff29 bl 8001fdc <__NVIC_SetPriorityGrouping> } - 80020d2: bf00 nop - 80020d4: 3708 adds r7, #8 - 80020d6: 46bd mov sp, r7 - 80020d8: bd80 pop {r7, pc} + 800218a: bf00 nop + 800218c: 3708 adds r7, #8 + 800218e: 46bd mov sp, r7 + 8002190: bd80 pop {r7, pc} -080020da : +08002192 : * 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) { - 80020da: b580 push {r7, lr} - 80020dc: b086 sub sp, #24 - 80020de: af00 add r7, sp, #0 - 80020e0: 4603 mov r3, r0 - 80020e2: 60b9 str r1, [r7, #8] - 80020e4: 607a str r2, [r7, #4] - 80020e6: 73fb strb r3, [r7, #15] + 8002192: b580 push {r7, lr} + 8002194: b086 sub sp, #24 + 8002196: af00 add r7, sp, #0 + 8002198: 4603 mov r3, r0 + 800219a: 60b9 str r1, [r7, #8] + 800219c: 607a str r2, [r7, #4] + 800219e: 73fb strb r3, [r7, #15] uint32_t prioritygroup = 0x00U; - 80020e8: 2300 movs r3, #0 - 80020ea: 617b str r3, [r7, #20] + 80021a0: 2300 movs r3, #0 + 80021a2: 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(); - 80020ec: f7ff ff3e bl 8001f6c <__NVIC_GetPriorityGrouping> - 80020f0: 6178 str r0, [r7, #20] + 80021a4: f7ff ff3e bl 8002024 <__NVIC_GetPriorityGrouping> + 80021a8: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); - 80020f2: 687a ldr r2, [r7, #4] - 80020f4: 68b9 ldr r1, [r7, #8] - 80020f6: 6978 ldr r0, [r7, #20] - 80020f8: f7ff ff8e bl 8002018 - 80020fc: 4602 mov r2, r0 - 80020fe: f997 300f ldrsb.w r3, [r7, #15] - 8002102: 4611 mov r1, r2 - 8002104: 4618 mov r0, r3 - 8002106: f7ff ff5d bl 8001fc4 <__NVIC_SetPriority> + 80021aa: 687a ldr r2, [r7, #4] + 80021ac: 68b9 ldr r1, [r7, #8] + 80021ae: 6978 ldr r0, [r7, #20] + 80021b0: f7ff ff8e bl 80020d0 + 80021b4: 4602 mov r2, r0 + 80021b6: f997 300f ldrsb.w r3, [r7, #15] + 80021ba: 4611 mov r1, r2 + 80021bc: 4618 mov r0, r3 + 80021be: f7ff ff5d bl 800207c <__NVIC_SetPriority> } - 800210a: bf00 nop - 800210c: 3718 adds r7, #24 - 800210e: 46bd mov sp, r7 - 8002110: bd80 pop {r7, pc} + 80021c2: bf00 nop + 80021c4: 3718 adds r7, #24 + 80021c6: 46bd mov sp, r7 + 80021c8: bd80 pop {r7, pc} -08002112 : +080021ca : * 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) { - 8002112: b580 push {r7, lr} - 8002114: b082 sub sp, #8 - 8002116: af00 add r7, sp, #0 - 8002118: 4603 mov r3, r0 - 800211a: 71fb strb r3, [r7, #7] + 80021ca: b580 push {r7, lr} + 80021cc: b082 sub sp, #8 + 80021ce: af00 add r7, sp, #0 + 80021d0: 4603 mov r3, r0 + 80021d2: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Enable interrupt */ NVIC_EnableIRQ(IRQn); - 800211c: f997 3007 ldrsb.w r3, [r7, #7] - 8002120: 4618 mov r0, r3 - 8002122: f7ff ff31 bl 8001f88 <__NVIC_EnableIRQ> + 80021d4: f997 3007 ldrsb.w r3, [r7, #7] + 80021d8: 4618 mov r0, r3 + 80021da: f7ff ff31 bl 8002040 <__NVIC_EnableIRQ> } - 8002126: bf00 nop - 8002128: 3708 adds r7, #8 - 800212a: 46bd mov sp, r7 - 800212c: bd80 pop {r7, pc} + 80021de: bf00 nop + 80021e0: 3708 adds r7, #8 + 80021e2: 46bd mov sp, r7 + 80021e4: bd80 pop {r7, pc} -0800212e : +080021e6 : * @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) { - 800212e: b580 push {r7, lr} - 8002130: b082 sub sp, #8 - 8002132: af00 add r7, sp, #0 - 8002134: 6078 str r0, [r7, #4] + 80021e6: b580 push {r7, lr} + 80021e8: b082 sub sp, #8 + 80021ea: af00 add r7, sp, #0 + 80021ec: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); - 8002136: 6878 ldr r0, [r7, #4] - 8002138: f7ff ffa2 bl 8002080 - 800213c: 4603 mov r3, r0 + 80021ee: 6878 ldr r0, [r7, #4] + 80021f0: f7ff ffa2 bl 8002138 + 80021f4: 4603 mov r3, r0 } - 800213e: 4618 mov r0, r3 - 8002140: 3708 adds r7, #8 - 8002142: 46bd mov sp, r7 - 8002144: bd80 pop {r7, pc} + 80021f6: 4618 mov r0, r3 + 80021f8: 3708 adds r7, #8 + 80021fa: 46bd mov sp, r7 + 80021fc: bd80 pop {r7, pc} ... -08002148 : +08002200 : * @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) { - 8002148: b580 push {r7, lr} - 800214a: b086 sub sp, #24 - 800214c: af00 add r7, sp, #0 - 800214e: 6078 str r0, [r7, #4] + 8002200: b580 push {r7, lr} + 8002202: b086 sub sp, #24 + 8002204: af00 add r7, sp, #0 + 8002206: 6078 str r0, [r7, #4] uint32_t tmp = 0U; - 8002150: 2300 movs r3, #0 - 8002152: 617b str r3, [r7, #20] + 8002208: 2300 movs r3, #0 + 800220a: 617b str r3, [r7, #20] uint32_t tickstart = HAL_GetTick(); - 8002154: f7ff feb6 bl 8001ec4 - 8002158: 6138 str r0, [r7, #16] + 800220c: f7ff feb6 bl 8001f7c + 8002210: 6138 str r0, [r7, #16] DMA_Base_Registers *regs; /* Check the DMA peripheral state */ if(hdma == NULL) - 800215a: 687b ldr r3, [r7, #4] - 800215c: 2b00 cmp r3, #0 - 800215e: d101 bne.n 8002164 + 8002212: 687b ldr r3, [r7, #4] + 8002214: 2b00 cmp r3, #0 + 8002216: d101 bne.n 800221c { return HAL_ERROR; - 8002160: 2301 movs r3, #1 - 8002162: e099 b.n 8002298 + 8002218: 2301 movs r3, #1 + 800221a: e099 b.n 8002350 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; - 8002164: 687b ldr r3, [r7, #4] - 8002166: 2202 movs r2, #2 - 8002168: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 800221c: 687b ldr r3, [r7, #4] + 800221e: 2202 movs r2, #2 + 8002220: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Allocate lock resource */ __HAL_UNLOCK(hdma); - 800216c: 687b ldr r3, [r7, #4] - 800216e: 2200 movs r2, #0 - 8002170: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 8002224: 687b ldr r3, [r7, #4] + 8002226: 2200 movs r2, #0 + 8002228: f883 2034 strb.w r2, [r3, #52] @ 0x34 /* Disable the peripheral */ __HAL_DMA_DISABLE(hdma); - 8002174: 687b ldr r3, [r7, #4] - 8002176: 681b ldr r3, [r3, #0] - 8002178: 681a ldr r2, [r3, #0] - 800217a: 687b ldr r3, [r7, #4] - 800217c: 681b ldr r3, [r3, #0] - 800217e: f022 0201 bic.w r2, r2, #1 - 8002182: 601a str r2, [r3, #0] + 800222c: 687b ldr r3, [r7, #4] + 800222e: 681b ldr r3, [r3, #0] + 8002230: 681a ldr r2, [r3, #0] + 8002232: 687b ldr r3, [r7, #4] + 8002234: 681b ldr r3, [r3, #0] + 8002236: f022 0201 bic.w r2, r2, #1 + 800223a: 601a str r2, [r3, #0] /* Check if the DMA Stream is effectively disabled */ while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) - 8002184: e00f b.n 80021a6 + 800223c: e00f b.n 800225e { /* Check for the Timeout */ if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT) - 8002186: f7ff fe9d bl 8001ec4 - 800218a: 4602 mov r2, r0 - 800218c: 693b ldr r3, [r7, #16] - 800218e: 1ad3 subs r3, r2, r3 - 8002190: 2b05 cmp r3, #5 - 8002192: d908 bls.n 80021a6 + 800223e: f7ff fe9d bl 8001f7c + 8002242: 4602 mov r2, r0 + 8002244: 693b ldr r3, [r7, #16] + 8002246: 1ad3 subs r3, r2, r3 + 8002248: 2b05 cmp r3, #5 + 800224a: d908 bls.n 800225e { /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; - 8002194: 687b ldr r3, [r7, #4] - 8002196: 2220 movs r2, #32 - 8002198: 655a str r2, [r3, #84] @ 0x54 + 800224c: 687b ldr r3, [r7, #4] + 800224e: 2220 movs r2, #32 + 8002250: 655a str r2, [r3, #84] @ 0x54 /* Change the DMA state */ hdma->State = HAL_DMA_STATE_TIMEOUT; - 800219a: 687b ldr r3, [r7, #4] - 800219c: 2203 movs r2, #3 - 800219e: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8002252: 687b ldr r3, [r7, #4] + 8002254: 2203 movs r2, #3 + 8002256: f883 2035 strb.w r2, [r3, #53] @ 0x35 return HAL_TIMEOUT; - 80021a2: 2303 movs r3, #3 - 80021a4: e078 b.n 8002298 + 800225a: 2303 movs r3, #3 + 800225c: e078 b.n 8002350 while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) - 80021a6: 687b ldr r3, [r7, #4] - 80021a8: 681b ldr r3, [r3, #0] - 80021aa: 681b ldr r3, [r3, #0] - 80021ac: f003 0301 and.w r3, r3, #1 - 80021b0: 2b00 cmp r3, #0 - 80021b2: d1e8 bne.n 8002186 + 800225e: 687b ldr r3, [r7, #4] + 8002260: 681b ldr r3, [r3, #0] + 8002262: 681b ldr r3, [r3, #0] + 8002264: f003 0301 and.w r3, r3, #1 + 8002268: 2b00 cmp r3, #0 + 800226a: d1e8 bne.n 800223e } } /* Get the CR register value */ tmp = hdma->Instance->CR; - 80021b4: 687b ldr r3, [r7, #4] - 80021b6: 681b ldr r3, [r3, #0] - 80021b8: 681b ldr r3, [r3, #0] - 80021ba: 617b str r3, [r7, #20] + 800226c: 687b ldr r3, [r7, #4] + 800226e: 681b ldr r3, [r3, #0] + 8002270: 681b ldr r3, [r3, #0] + 8002272: 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 | \ - 80021bc: 697a ldr r2, [r7, #20] - 80021be: 4b38 ldr r3, [pc, #224] @ (80022a0 ) - 80021c0: 4013 ands r3, r2 - 80021c2: 617b str r3, [r7, #20] + 8002274: 697a ldr r2, [r7, #20] + 8002276: 4b38 ldr r3, [pc, #224] @ (8002358 ) + 8002278: 4013 ands r3, r2 + 800227a: 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 | - 80021c4: 687b ldr r3, [r7, #4] - 80021c6: 685a ldr r2, [r3, #4] - 80021c8: 687b ldr r3, [r7, #4] - 80021ca: 689b ldr r3, [r3, #8] - 80021cc: 431a orrs r2, r3 + 800227c: 687b ldr r3, [r7, #4] + 800227e: 685a ldr r2, [r3, #4] + 8002280: 687b ldr r3, [r7, #4] + 8002282: 689b ldr r3, [r3, #8] + 8002284: 431a orrs r2, r3 hdma->Init.PeriphInc | hdma->Init.MemInc | - 80021ce: 687b ldr r3, [r7, #4] - 80021d0: 68db ldr r3, [r3, #12] + 8002286: 687b ldr r3, [r7, #4] + 8002288: 68db ldr r3, [r3, #12] tmp |= hdma->Init.Channel | hdma->Init.Direction | - 80021d2: 431a orrs r2, r3 + 800228a: 431a orrs r2, r3 hdma->Init.PeriphInc | hdma->Init.MemInc | - 80021d4: 687b ldr r3, [r7, #4] - 80021d6: 691b ldr r3, [r3, #16] - 80021d8: 431a orrs r2, r3 + 800228c: 687b ldr r3, [r7, #4] + 800228e: 691b ldr r3, [r3, #16] + 8002290: 431a orrs r2, r3 hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 80021da: 687b ldr r3, [r7, #4] - 80021dc: 695b ldr r3, [r3, #20] + 8002292: 687b ldr r3, [r7, #4] + 8002294: 695b ldr r3, [r3, #20] hdma->Init.PeriphInc | hdma->Init.MemInc | - 80021de: 431a orrs r2, r3 + 8002296: 431a orrs r2, r3 hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 80021e0: 687b ldr r3, [r7, #4] - 80021e2: 699b ldr r3, [r3, #24] - 80021e4: 431a orrs r2, r3 + 8002298: 687b ldr r3, [r7, #4] + 800229a: 699b ldr r3, [r3, #24] + 800229c: 431a orrs r2, r3 hdma->Init.Mode | hdma->Init.Priority; - 80021e6: 687b ldr r3, [r7, #4] - 80021e8: 69db ldr r3, [r3, #28] + 800229e: 687b ldr r3, [r7, #4] + 80022a0: 69db ldr r3, [r3, #28] hdma->Init.PeriphDataAlignment | hdma->Init.MemDataAlignment | - 80021ea: 431a orrs r2, r3 + 80022a2: 431a orrs r2, r3 hdma->Init.Mode | hdma->Init.Priority; - 80021ec: 687b ldr r3, [r7, #4] - 80021ee: 6a1b ldr r3, [r3, #32] - 80021f0: 4313 orrs r3, r2 + 80022a4: 687b ldr r3, [r7, #4] + 80022a6: 6a1b ldr r3, [r3, #32] + 80022a8: 4313 orrs r3, r2 tmp |= hdma->Init.Channel | hdma->Init.Direction | - 80021f2: 697a ldr r2, [r7, #20] - 80021f4: 4313 orrs r3, r2 - 80021f6: 617b str r3, [r7, #20] + 80022aa: 697a ldr r2, [r7, #20] + 80022ac: 4313 orrs r3, r2 + 80022ae: 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) - 80021f8: 687b ldr r3, [r7, #4] - 80021fa: 6a5b ldr r3, [r3, #36] @ 0x24 - 80021fc: 2b04 cmp r3, #4 - 80021fe: d107 bne.n 8002210 + 80022b0: 687b ldr r3, [r7, #4] + 80022b2: 6a5b ldr r3, [r3, #36] @ 0x24 + 80022b4: 2b04 cmp r3, #4 + 80022b6: d107 bne.n 80022c8 { /* Get memory burst and peripheral burst */ tmp |= hdma->Init.MemBurst | hdma->Init.PeriphBurst; - 8002200: 687b ldr r3, [r7, #4] - 8002202: 6ada ldr r2, [r3, #44] @ 0x2c - 8002204: 687b ldr r3, [r7, #4] - 8002206: 6b1b ldr r3, [r3, #48] @ 0x30 - 8002208: 4313 orrs r3, r2 - 800220a: 697a ldr r2, [r7, #20] - 800220c: 4313 orrs r3, r2 - 800220e: 617b str r3, [r7, #20] + 80022b8: 687b ldr r3, [r7, #4] + 80022ba: 6ada ldr r2, [r3, #44] @ 0x2c + 80022bc: 687b ldr r3, [r7, #4] + 80022be: 6b1b ldr r3, [r3, #48] @ 0x30 + 80022c0: 4313 orrs r3, r2 + 80022c2: 697a ldr r2, [r7, #20] + 80022c4: 4313 orrs r3, r2 + 80022c6: 617b str r3, [r7, #20] } /* Write to DMA Stream CR register */ hdma->Instance->CR = tmp; - 8002210: 687b ldr r3, [r7, #4] - 8002212: 681b ldr r3, [r3, #0] - 8002214: 697a ldr r2, [r7, #20] - 8002216: 601a str r2, [r3, #0] + 80022c8: 687b ldr r3, [r7, #4] + 80022ca: 681b ldr r3, [r3, #0] + 80022cc: 697a ldr r2, [r7, #20] + 80022ce: 601a str r2, [r3, #0] /* Get the FCR register value */ tmp = hdma->Instance->FCR; - 8002218: 687b ldr r3, [r7, #4] - 800221a: 681b ldr r3, [r3, #0] - 800221c: 695b ldr r3, [r3, #20] - 800221e: 617b str r3, [r7, #20] + 80022d0: 687b ldr r3, [r7, #4] + 80022d2: 681b ldr r3, [r3, #0] + 80022d4: 695b ldr r3, [r3, #20] + 80022d6: 617b str r3, [r7, #20] /* Clear Direct mode and FIFO threshold bits */ tmp &= (uint32_t)~(DMA_SxFCR_DMDIS | DMA_SxFCR_FTH); - 8002220: 697b ldr r3, [r7, #20] - 8002222: f023 0307 bic.w r3, r3, #7 - 8002226: 617b str r3, [r7, #20] + 80022d8: 697b ldr r3, [r7, #20] + 80022da: f023 0307 bic.w r3, r3, #7 + 80022de: 617b str r3, [r7, #20] /* Prepare the DMA Stream FIFO configuration */ tmp |= hdma->Init.FIFOMode; - 8002228: 687b ldr r3, [r7, #4] - 800222a: 6a5b ldr r3, [r3, #36] @ 0x24 - 800222c: 697a ldr r2, [r7, #20] - 800222e: 4313 orrs r3, r2 - 8002230: 617b str r3, [r7, #20] + 80022e0: 687b ldr r3, [r7, #4] + 80022e2: 6a5b ldr r3, [r3, #36] @ 0x24 + 80022e4: 697a ldr r2, [r7, #20] + 80022e6: 4313 orrs r3, r2 + 80022e8: 617b str r3, [r7, #20] /* The FIFO threshold is not used when the FIFO mode is disabled */ if(hdma->Init.FIFOMode == DMA_FIFOMODE_ENABLE) - 8002232: 687b ldr r3, [r7, #4] - 8002234: 6a5b ldr r3, [r3, #36] @ 0x24 - 8002236: 2b04 cmp r3, #4 - 8002238: d117 bne.n 800226a + 80022ea: 687b ldr r3, [r7, #4] + 80022ec: 6a5b ldr r3, [r3, #36] @ 0x24 + 80022ee: 2b04 cmp r3, #4 + 80022f0: d117 bne.n 8002322 { /* Get the FIFO threshold */ tmp |= hdma->Init.FIFOThreshold; - 800223a: 687b ldr r3, [r7, #4] - 800223c: 6a9b ldr r3, [r3, #40] @ 0x28 - 800223e: 697a ldr r2, [r7, #20] - 8002240: 4313 orrs r3, r2 - 8002242: 617b str r3, [r7, #20] + 80022f2: 687b ldr r3, [r7, #4] + 80022f4: 6a9b ldr r3, [r3, #40] @ 0x28 + 80022f6: 697a ldr r2, [r7, #20] + 80022f8: 4313 orrs r3, r2 + 80022fa: 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) - 8002244: 687b ldr r3, [r7, #4] - 8002246: 6adb ldr r3, [r3, #44] @ 0x2c - 8002248: 2b00 cmp r3, #0 - 800224a: d00e beq.n 800226a + 80022fc: 687b ldr r3, [r7, #4] + 80022fe: 6adb ldr r3, [r3, #44] @ 0x2c + 8002300: 2b00 cmp r3, #0 + 8002302: d00e beq.n 8002322 { if (DMA_CheckFifoParam(hdma) != HAL_OK) - 800224c: 6878 ldr r0, [r7, #4] - 800224e: f000 fb01 bl 8002854 - 8002252: 4603 mov r3, r0 - 8002254: 2b00 cmp r3, #0 - 8002256: d008 beq.n 800226a + 8002304: 6878 ldr r0, [r7, #4] + 8002306: f000 fb01 bl 800290c + 800230a: 4603 mov r3, r0 + 800230c: 2b00 cmp r3, #0 + 800230e: d008 beq.n 8002322 { /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_PARAM; - 8002258: 687b ldr r3, [r7, #4] - 800225a: 2240 movs r2, #64 @ 0x40 - 800225c: 655a str r2, [r3, #84] @ 0x54 + 8002310: 687b ldr r3, [r7, #4] + 8002312: 2240 movs r2, #64 @ 0x40 + 8002314: 655a str r2, [r3, #84] @ 0x54 /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 800225e: 687b ldr r3, [r7, #4] - 8002260: 2201 movs r2, #1 - 8002262: 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 return HAL_ERROR; - 8002266: 2301 movs r3, #1 - 8002268: e016 b.n 8002298 + 800231e: 2301 movs r3, #1 + 8002320: e016 b.n 8002350 } } } /* Write to DMA Stream FCR */ hdma->Instance->FCR = tmp; - 800226a: 687b ldr r3, [r7, #4] - 800226c: 681b ldr r3, [r3, #0] - 800226e: 697a ldr r2, [r7, #20] - 8002270: 615a str r2, [r3, #20] + 8002322: 687b ldr r3, [r7, #4] + 8002324: 681b ldr r3, [r3, #0] + 8002326: 697a ldr r2, [r7, #20] + 8002328: 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); - 8002272: 6878 ldr r0, [r7, #4] - 8002274: f000 fab8 bl 80027e8 - 8002278: 4603 mov r3, r0 - 800227a: 60fb str r3, [r7, #12] + 800232a: 6878 ldr r0, [r7, #4] + 800232c: f000 fab8 bl 80028a0 + 8002330: 4603 mov r3, r0 + 8002332: 60fb str r3, [r7, #12] /* Clear all interrupt flags */ regs->IFCR = 0x3FU << hdma->StreamIndex; - 800227c: 687b ldr r3, [r7, #4] - 800227e: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002280: 223f movs r2, #63 @ 0x3f - 8002282: 409a lsls r2, r3 - 8002284: 68fb ldr r3, [r7, #12] - 8002286: 609a str r2, [r3, #8] + 8002334: 687b ldr r3, [r7, #4] + 8002336: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002338: 223f movs r2, #63 @ 0x3f + 800233a: 409a lsls r2, r3 + 800233c: 68fb ldr r3, [r7, #12] + 800233e: 609a str r2, [r3, #8] /* Initialize the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; - 8002288: 687b ldr r3, [r7, #4] - 800228a: 2200 movs r2, #0 - 800228c: 655a str r2, [r3, #84] @ 0x54 + 8002340: 687b ldr r3, [r7, #4] + 8002342: 2200 movs r2, #0 + 8002344: 655a str r2, [r3, #84] @ 0x54 /* Initialize the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 800228e: 687b ldr r3, [r7, #4] - 8002290: 2201 movs r2, #1 - 8002292: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8002346: 687b ldr r3, [r7, #4] + 8002348: 2201 movs r2, #1 + 800234a: f883 2035 strb.w r2, [r3, #53] @ 0x35 return HAL_OK; - 8002296: 2300 movs r3, #0 + 800234e: 2300 movs r3, #0 } - 8002298: 4618 mov r0, r3 - 800229a: 3718 adds r7, #24 - 800229c: 46bd mov sp, r7 - 800229e: bd80 pop {r7, pc} - 80022a0: f010803f .word 0xf010803f + 8002350: 4618 mov r0, r3 + 8002352: 3718 adds r7, #24 + 8002354: 46bd mov sp, r7 + 8002356: bd80 pop {r7, pc} + 8002358: f010803f .word 0xf010803f -080022a4 : +0800235c : * @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) { - 80022a4: b580 push {r7, lr} - 80022a6: b086 sub sp, #24 - 80022a8: af00 add r7, sp, #0 - 80022aa: 60f8 str r0, [r7, #12] - 80022ac: 60b9 str r1, [r7, #8] - 80022ae: 607a str r2, [r7, #4] - 80022b0: 603b str r3, [r7, #0] + 800235c: b580 push {r7, lr} + 800235e: b086 sub sp, #24 + 8002360: af00 add r7, sp, #0 + 8002362: 60f8 str r0, [r7, #12] + 8002364: 60b9 str r1, [r7, #8] + 8002366: 607a str r2, [r7, #4] + 8002368: 603b str r3, [r7, #0] HAL_StatusTypeDef status = HAL_OK; - 80022b2: 2300 movs r3, #0 - 80022b4: 75fb strb r3, [r7, #23] + 800236a: 2300 movs r3, #0 + 800236c: 75fb strb r3, [r7, #23] /* calculate DMA base and stream number */ DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress; - 80022b6: 68fb ldr r3, [r7, #12] - 80022b8: 6d9b ldr r3, [r3, #88] @ 0x58 - 80022ba: 613b str r3, [r7, #16] + 800236e: 68fb ldr r3, [r7, #12] + 8002370: 6d9b ldr r3, [r3, #88] @ 0x58 + 8002372: 613b str r3, [r7, #16] /* Check the parameters */ assert_param(IS_DMA_BUFFER_SIZE(DataLength)); /* Process locked */ __HAL_LOCK(hdma); - 80022bc: 68fb ldr r3, [r7, #12] - 80022be: f893 3034 ldrb.w r3, [r3, #52] @ 0x34 - 80022c2: 2b01 cmp r3, #1 - 80022c4: d101 bne.n 80022ca - 80022c6: 2302 movs r3, #2 - 80022c8: e040 b.n 800234c - 80022ca: 68fb ldr r3, [r7, #12] - 80022cc: 2201 movs r2, #1 - 80022ce: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 8002374: 68fb ldr r3, [r7, #12] + 8002376: f893 3034 ldrb.w r3, [r3, #52] @ 0x34 + 800237a: 2b01 cmp r3, #1 + 800237c: d101 bne.n 8002382 + 800237e: 2302 movs r3, #2 + 8002380: e040 b.n 8002404 + 8002382: 68fb ldr r3, [r7, #12] + 8002384: 2201 movs r2, #1 + 8002386: f883 2034 strb.w r2, [r3, #52] @ 0x34 if(HAL_DMA_STATE_READY == hdma->State) - 80022d2: 68fb ldr r3, [r7, #12] - 80022d4: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 - 80022d8: b2db uxtb r3, r3 - 80022da: 2b01 cmp r3, #1 - 80022dc: d12f bne.n 800233e + 800238a: 68fb ldr r3, [r7, #12] + 800238c: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 + 8002390: b2db uxtb r3, r3 + 8002392: 2b01 cmp r3, #1 + 8002394: d12f bne.n 80023f6 { /* Change DMA peripheral state */ hdma->State = HAL_DMA_STATE_BUSY; - 80022de: 68fb ldr r3, [r7, #12] - 80022e0: 2202 movs r2, #2 - 80022e2: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8002396: 68fb ldr r3, [r7, #12] + 8002398: 2202 movs r2, #2 + 800239a: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Initialize the error code */ hdma->ErrorCode = HAL_DMA_ERROR_NONE; - 80022e6: 68fb ldr r3, [r7, #12] - 80022e8: 2200 movs r2, #0 - 80022ea: 655a str r2, [r3, #84] @ 0x54 + 800239e: 68fb ldr r3, [r7, #12] + 80023a0: 2200 movs r2, #0 + 80023a2: 655a str r2, [r3, #84] @ 0x54 /* Configure the source, destination address and the data length */ DMA_SetConfig(hdma, SrcAddress, DstAddress, DataLength); - 80022ec: 683b ldr r3, [r7, #0] - 80022ee: 687a ldr r2, [r7, #4] - 80022f0: 68b9 ldr r1, [r7, #8] - 80022f2: 68f8 ldr r0, [r7, #12] - 80022f4: f000 fa4a bl 800278c + 80023a4: 683b ldr r3, [r7, #0] + 80023a6: 687a ldr r2, [r7, #4] + 80023a8: 68b9 ldr r1, [r7, #8] + 80023aa: 68f8 ldr r0, [r7, #12] + 80023ac: f000 fa4a bl 8002844 /* Clear all interrupt flags at correct offset within the register */ regs->IFCR = 0x3FU << hdma->StreamIndex; - 80022f8: 68fb ldr r3, [r7, #12] - 80022fa: 6ddb ldr r3, [r3, #92] @ 0x5c - 80022fc: 223f movs r2, #63 @ 0x3f - 80022fe: 409a lsls r2, r3 - 8002300: 693b ldr r3, [r7, #16] - 8002302: 609a str r2, [r3, #8] + 80023b0: 68fb ldr r3, [r7, #12] + 80023b2: 6ddb ldr r3, [r3, #92] @ 0x5c + 80023b4: 223f movs r2, #63 @ 0x3f + 80023b6: 409a lsls r2, r3 + 80023b8: 693b ldr r3, [r7, #16] + 80023ba: 609a str r2, [r3, #8] /* Enable Common interrupts*/ hdma->Instance->CR |= DMA_IT_TC | DMA_IT_TE | DMA_IT_DME; - 8002304: 68fb ldr r3, [r7, #12] - 8002306: 681b ldr r3, [r3, #0] - 8002308: 681a ldr r2, [r3, #0] - 800230a: 68fb ldr r3, [r7, #12] - 800230c: 681b ldr r3, [r3, #0] - 800230e: f042 0216 orr.w r2, r2, #22 - 8002312: 601a str r2, [r3, #0] + 80023bc: 68fb ldr r3, [r7, #12] + 80023be: 681b ldr r3, [r3, #0] + 80023c0: 681a ldr r2, [r3, #0] + 80023c2: 68fb ldr r3, [r7, #12] + 80023c4: 681b ldr r3, [r3, #0] + 80023c6: f042 0216 orr.w r2, r2, #22 + 80023ca: 601a str r2, [r3, #0] if(hdma->XferHalfCpltCallback != NULL) - 8002314: 68fb ldr r3, [r7, #12] - 8002316: 6c1b ldr r3, [r3, #64] @ 0x40 - 8002318: 2b00 cmp r3, #0 - 800231a: d007 beq.n 800232c + 80023cc: 68fb ldr r3, [r7, #12] + 80023ce: 6c1b ldr r3, [r3, #64] @ 0x40 + 80023d0: 2b00 cmp r3, #0 + 80023d2: d007 beq.n 80023e4 { hdma->Instance->CR |= DMA_IT_HT; - 800231c: 68fb ldr r3, [r7, #12] - 800231e: 681b ldr r3, [r3, #0] - 8002320: 681a ldr r2, [r3, #0] - 8002322: 68fb ldr r3, [r7, #12] - 8002324: 681b ldr r3, [r3, #0] - 8002326: f042 0208 orr.w r2, r2, #8 - 800232a: 601a str r2, [r3, #0] + 80023d4: 68fb ldr r3, [r7, #12] + 80023d6: 681b ldr r3, [r3, #0] + 80023d8: 681a ldr r2, [r3, #0] + 80023da: 68fb ldr r3, [r7, #12] + 80023dc: 681b ldr r3, [r3, #0] + 80023de: f042 0208 orr.w r2, r2, #8 + 80023e2: 601a str r2, [r3, #0] } /* Enable the Peripheral */ __HAL_DMA_ENABLE(hdma); - 800232c: 68fb ldr r3, [r7, #12] - 800232e: 681b ldr r3, [r3, #0] - 8002330: 681a ldr r2, [r3, #0] - 8002332: 68fb ldr r3, [r7, #12] - 8002334: 681b ldr r3, [r3, #0] - 8002336: f042 0201 orr.w r2, r2, #1 - 800233a: 601a str r2, [r3, #0] - 800233c: e005 b.n 800234a + 80023e4: 68fb ldr r3, [r7, #12] + 80023e6: 681b ldr r3, [r3, #0] + 80023e8: 681a ldr r2, [r3, #0] + 80023ea: 68fb ldr r3, [r7, #12] + 80023ec: 681b ldr r3, [r3, #0] + 80023ee: f042 0201 orr.w r2, r2, #1 + 80023f2: 601a str r2, [r3, #0] + 80023f4: e005 b.n 8002402 } else { /* Process unlocked */ __HAL_UNLOCK(hdma); - 800233e: 68fb ldr r3, [r7, #12] - 8002340: 2200 movs r2, #0 - 8002342: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 80023f6: 68fb ldr r3, [r7, #12] + 80023f8: 2200 movs r2, #0 + 80023fa: f883 2034 strb.w r2, [r3, #52] @ 0x34 /* Return error status */ status = HAL_BUSY; - 8002346: 2302 movs r3, #2 - 8002348: 75fb strb r3, [r7, #23] + 80023fe: 2302 movs r3, #2 + 8002400: 75fb strb r3, [r7, #23] } return status; - 800234a: 7dfb ldrb r3, [r7, #23] + 8002402: 7dfb ldrb r3, [r7, #23] } - 800234c: 4618 mov r0, r3 - 800234e: 3718 adds r7, #24 - 8002350: 46bd mov sp, r7 - 8002352: bd80 pop {r7, pc} + 8002404: 4618 mov r0, r3 + 8002406: 3718 adds r7, #24 + 8002408: 46bd mov sp, r7 + 800240a: bd80 pop {r7, pc} -08002354 : +0800240c : * 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) { - 8002354: b580 push {r7, lr} - 8002356: b084 sub sp, #16 - 8002358: af00 add r7, sp, #0 - 800235a: 6078 str r0, [r7, #4] + 800240c: b580 push {r7, lr} + 800240e: b084 sub sp, #16 + 8002410: af00 add r7, sp, #0 + 8002412: 6078 str r0, [r7, #4] /* calculate DMA base and stream number */ DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress; - 800235c: 687b ldr r3, [r7, #4] - 800235e: 6d9b ldr r3, [r3, #88] @ 0x58 - 8002360: 60fb str r3, [r7, #12] + 8002414: 687b ldr r3, [r7, #4] + 8002416: 6d9b ldr r3, [r3, #88] @ 0x58 + 8002418: 60fb str r3, [r7, #12] uint32_t tickstart = HAL_GetTick(); - 8002362: f7ff fdaf bl 8001ec4 - 8002366: 60b8 str r0, [r7, #8] + 800241a: f7ff fdaf bl 8001f7c + 800241e: 60b8 str r0, [r7, #8] if(hdma->State != HAL_DMA_STATE_BUSY) - 8002368: 687b ldr r3, [r7, #4] - 800236a: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 - 800236e: b2db uxtb r3, r3 - 8002370: 2b02 cmp r3, #2 - 8002372: d008 beq.n 8002386 + 8002420: 687b ldr r3, [r7, #4] + 8002422: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 + 8002426: b2db uxtb r3, r3 + 8002428: 2b02 cmp r3, #2 + 800242a: d008 beq.n 800243e { hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 8002374: 687b ldr r3, [r7, #4] - 8002376: 2280 movs r2, #128 @ 0x80 - 8002378: 655a str r2, [r3, #84] @ 0x54 + 800242c: 687b ldr r3, [r7, #4] + 800242e: 2280 movs r2, #128 @ 0x80 + 8002430: 655a str r2, [r3, #84] @ 0x54 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 800237a: 687b ldr r3, [r7, #4] - 800237c: 2200 movs r2, #0 - 800237e: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 8002432: 687b ldr r3, [r7, #4] + 8002434: 2200 movs r2, #0 + 8002436: f883 2034 strb.w r2, [r3, #52] @ 0x34 return HAL_ERROR; - 8002382: 2301 movs r3, #1 - 8002384: e052 b.n 800242c + 800243a: 2301 movs r3, #1 + 800243c: e052 b.n 80024e4 } else { /* Disable all the transfer interrupts */ hdma->Instance->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME); - 8002386: 687b ldr r3, [r7, #4] - 8002388: 681b ldr r3, [r3, #0] - 800238a: 681a ldr r2, [r3, #0] - 800238c: 687b ldr r3, [r7, #4] - 800238e: 681b ldr r3, [r3, #0] - 8002390: f022 0216 bic.w r2, r2, #22 - 8002394: 601a str r2, [r3, #0] + 800243e: 687b ldr r3, [r7, #4] + 8002440: 681b ldr r3, [r3, #0] + 8002442: 681a ldr r2, [r3, #0] + 8002444: 687b ldr r3, [r7, #4] + 8002446: 681b ldr r3, [r3, #0] + 8002448: f022 0216 bic.w r2, r2, #22 + 800244c: 601a str r2, [r3, #0] hdma->Instance->FCR &= ~(DMA_IT_FE); - 8002396: 687b ldr r3, [r7, #4] - 8002398: 681b ldr r3, [r3, #0] - 800239a: 695a ldr r2, [r3, #20] - 800239c: 687b ldr r3, [r7, #4] - 800239e: 681b ldr r3, [r3, #0] - 80023a0: f022 0280 bic.w r2, r2, #128 @ 0x80 - 80023a4: 615a str r2, [r3, #20] + 800244e: 687b ldr r3, [r7, #4] + 8002450: 681b ldr r3, [r3, #0] + 8002452: 695a ldr r2, [r3, #20] + 8002454: 687b ldr r3, [r7, #4] + 8002456: 681b ldr r3, [r3, #0] + 8002458: f022 0280 bic.w r2, r2, #128 @ 0x80 + 800245c: 615a str r2, [r3, #20] if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL)) - 80023a6: 687b ldr r3, [r7, #4] - 80023a8: 6c1b ldr r3, [r3, #64] @ 0x40 - 80023aa: 2b00 cmp r3, #0 - 80023ac: d103 bne.n 80023b6 - 80023ae: 687b ldr r3, [r7, #4] - 80023b0: 6c9b ldr r3, [r3, #72] @ 0x48 - 80023b2: 2b00 cmp r3, #0 - 80023b4: d007 beq.n 80023c6 + 800245e: 687b ldr r3, [r7, #4] + 8002460: 6c1b ldr r3, [r3, #64] @ 0x40 + 8002462: 2b00 cmp r3, #0 + 8002464: d103 bne.n 800246e + 8002466: 687b ldr r3, [r7, #4] + 8002468: 6c9b ldr r3, [r3, #72] @ 0x48 + 800246a: 2b00 cmp r3, #0 + 800246c: d007 beq.n 800247e { hdma->Instance->CR &= ~(DMA_IT_HT); - 80023b6: 687b ldr r3, [r7, #4] - 80023b8: 681b ldr r3, [r3, #0] - 80023ba: 681a ldr r2, [r3, #0] - 80023bc: 687b ldr r3, [r7, #4] - 80023be: 681b ldr r3, [r3, #0] - 80023c0: f022 0208 bic.w r2, r2, #8 - 80023c4: 601a str r2, [r3, #0] + 800246e: 687b ldr r3, [r7, #4] + 8002470: 681b ldr r3, [r3, #0] + 8002472: 681a ldr r2, [r3, #0] + 8002474: 687b ldr r3, [r7, #4] + 8002476: 681b ldr r3, [r3, #0] + 8002478: f022 0208 bic.w r2, r2, #8 + 800247c: 601a str r2, [r3, #0] } /* Disable the stream */ __HAL_DMA_DISABLE(hdma); - 80023c6: 687b ldr r3, [r7, #4] - 80023c8: 681b ldr r3, [r3, #0] - 80023ca: 681a ldr r2, [r3, #0] - 80023cc: 687b ldr r3, [r7, #4] - 80023ce: 681b ldr r3, [r3, #0] - 80023d0: f022 0201 bic.w r2, r2, #1 - 80023d4: 601a str r2, [r3, #0] + 800247e: 687b ldr r3, [r7, #4] + 8002480: 681b ldr r3, [r3, #0] + 8002482: 681a ldr r2, [r3, #0] + 8002484: 687b ldr r3, [r7, #4] + 8002486: 681b ldr r3, [r3, #0] + 8002488: f022 0201 bic.w r2, r2, #1 + 800248c: 601a str r2, [r3, #0] /* Check if the DMA Stream is effectively disabled */ while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) - 80023d6: e013 b.n 8002400 + 800248e: e013 b.n 80024b8 { /* Check for the Timeout */ if((HAL_GetTick() - tickstart ) > HAL_TIMEOUT_DMA_ABORT) - 80023d8: f7ff fd74 bl 8001ec4 - 80023dc: 4602 mov r2, r0 - 80023de: 68bb ldr r3, [r7, #8] - 80023e0: 1ad3 subs r3, r2, r3 - 80023e2: 2b05 cmp r3, #5 - 80023e4: d90c bls.n 8002400 + 8002490: f7ff fd74 bl 8001f7c + 8002494: 4602 mov r2, r0 + 8002496: 68bb ldr r3, [r7, #8] + 8002498: 1ad3 subs r3, r2, r3 + 800249a: 2b05 cmp r3, #5 + 800249c: d90c bls.n 80024b8 { /* Update error code */ hdma->ErrorCode = HAL_DMA_ERROR_TIMEOUT; - 80023e6: 687b ldr r3, [r7, #4] - 80023e8: 2220 movs r2, #32 - 80023ea: 655a str r2, [r3, #84] @ 0x54 + 800249e: 687b ldr r3, [r7, #4] + 80024a0: 2220 movs r2, #32 + 80024a2: 655a str r2, [r3, #84] @ 0x54 /* Change the DMA state */ hdma->State = HAL_DMA_STATE_TIMEOUT; - 80023ec: 687b ldr r3, [r7, #4] - 80023ee: 2203 movs r2, #3 - 80023f0: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 80024a4: 687b ldr r3, [r7, #4] + 80024a6: 2203 movs r2, #3 + 80024a8: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 80023f4: 687b ldr r3, [r7, #4] - 80023f6: 2200 movs r2, #0 - 80023f8: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 80024ac: 687b ldr r3, [r7, #4] + 80024ae: 2200 movs r2, #0 + 80024b0: f883 2034 strb.w r2, [r3, #52] @ 0x34 return HAL_TIMEOUT; - 80023fc: 2303 movs r3, #3 - 80023fe: e015 b.n 800242c + 80024b4: 2303 movs r3, #3 + 80024b6: e015 b.n 80024e4 while((hdma->Instance->CR & DMA_SxCR_EN) != RESET) - 8002400: 687b ldr r3, [r7, #4] - 8002402: 681b ldr r3, [r3, #0] - 8002404: 681b ldr r3, [r3, #0] - 8002406: f003 0301 and.w r3, r3, #1 - 800240a: 2b00 cmp r3, #0 - 800240c: d1e4 bne.n 80023d8 + 80024b8: 687b ldr r3, [r7, #4] + 80024ba: 681b ldr r3, [r3, #0] + 80024bc: 681b ldr r3, [r3, #0] + 80024be: f003 0301 and.w r3, r3, #1 + 80024c2: 2b00 cmp r3, #0 + 80024c4: d1e4 bne.n 8002490 } } /* Clear all interrupt flags at correct offset within the register */ regs->IFCR = 0x3FU << hdma->StreamIndex; - 800240e: 687b ldr r3, [r7, #4] - 8002410: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002412: 223f movs r2, #63 @ 0x3f - 8002414: 409a lsls r2, r3 - 8002416: 68fb ldr r3, [r7, #12] - 8002418: 609a str r2, [r3, #8] + 80024c6: 687b ldr r3, [r7, #4] + 80024c8: 6ddb ldr r3, [r3, #92] @ 0x5c + 80024ca: 223f movs r2, #63 @ 0x3f + 80024cc: 409a lsls r2, r3 + 80024ce: 68fb ldr r3, [r7, #12] + 80024d0: 609a str r2, [r3, #8] /* Change the DMA state*/ hdma->State = HAL_DMA_STATE_READY; - 800241a: 687b ldr r3, [r7, #4] - 800241c: 2201 movs r2, #1 - 800241e: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 80024d2: 687b ldr r3, [r7, #4] + 80024d4: 2201 movs r2, #1 + 80024d6: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 8002422: 687b ldr r3, [r7, #4] - 8002424: 2200 movs r2, #0 - 8002426: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 80024da: 687b ldr r3, [r7, #4] + 80024dc: 2200 movs r2, #0 + 80024de: f883 2034 strb.w r2, [r3, #52] @ 0x34 } return HAL_OK; - 800242a: 2300 movs r3, #0 + 80024e2: 2300 movs r3, #0 } - 800242c: 4618 mov r0, r3 - 800242e: 3710 adds r7, #16 - 8002430: 46bd mov sp, r7 - 8002432: bd80 pop {r7, pc} + 80024e4: 4618 mov r0, r3 + 80024e6: 3710 adds r7, #16 + 80024e8: 46bd mov sp, r7 + 80024ea: bd80 pop {r7, pc} -08002434 : +080024ec : * @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) { - 8002434: b480 push {r7} - 8002436: b083 sub sp, #12 - 8002438: af00 add r7, sp, #0 - 800243a: 6078 str r0, [r7, #4] + 80024ec: b480 push {r7} + 80024ee: b083 sub sp, #12 + 80024f0: af00 add r7, sp, #0 + 80024f2: 6078 str r0, [r7, #4] if(hdma->State != HAL_DMA_STATE_BUSY) - 800243c: 687b ldr r3, [r7, #4] - 800243e: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 - 8002442: b2db uxtb r3, r3 - 8002444: 2b02 cmp r3, #2 - 8002446: d004 beq.n 8002452 + 80024f4: 687b ldr r3, [r7, #4] + 80024f6: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 + 80024fa: b2db uxtb r3, r3 + 80024fc: 2b02 cmp r3, #2 + 80024fe: d004 beq.n 800250a { hdma->ErrorCode = HAL_DMA_ERROR_NO_XFER; - 8002448: 687b ldr r3, [r7, #4] - 800244a: 2280 movs r2, #128 @ 0x80 - 800244c: 655a str r2, [r3, #84] @ 0x54 + 8002500: 687b ldr r3, [r7, #4] + 8002502: 2280 movs r2, #128 @ 0x80 + 8002504: 655a str r2, [r3, #84] @ 0x54 return HAL_ERROR; - 800244e: 2301 movs r3, #1 - 8002450: e00c b.n 800246c + 8002506: 2301 movs r3, #1 + 8002508: e00c b.n 8002524 } else { /* Set Abort State */ hdma->State = HAL_DMA_STATE_ABORT; - 8002452: 687b ldr r3, [r7, #4] - 8002454: 2205 movs r2, #5 - 8002456: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 800250a: 687b ldr r3, [r7, #4] + 800250c: 2205 movs r2, #5 + 800250e: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Disable the stream */ __HAL_DMA_DISABLE(hdma); - 800245a: 687b ldr r3, [r7, #4] - 800245c: 681b ldr r3, [r3, #0] - 800245e: 681a ldr r2, [r3, #0] - 8002460: 687b ldr r3, [r7, #4] - 8002462: 681b ldr r3, [r3, #0] - 8002464: f022 0201 bic.w r2, r2, #1 - 8002468: 601a str r2, [r3, #0] + 8002512: 687b ldr r3, [r7, #4] + 8002514: 681b ldr r3, [r3, #0] + 8002516: 681a ldr r2, [r3, #0] + 8002518: 687b ldr r3, [r7, #4] + 800251a: 681b ldr r3, [r3, #0] + 800251c: f022 0201 bic.w r2, r2, #1 + 8002520: 601a str r2, [r3, #0] } return HAL_OK; - 800246a: 2300 movs r3, #0 + 8002522: 2300 movs r3, #0 } - 800246c: 4618 mov r0, r3 - 800246e: 370c adds r7, #12 - 8002470: 46bd mov sp, r7 - 8002472: f85d 7b04 ldr.w r7, [sp], #4 - 8002476: 4770 bx lr + 8002524: 4618 mov r0, r3 + 8002526: 370c adds r7, #12 + 8002528: 46bd mov sp, r7 + 800252a: f85d 7b04 ldr.w r7, [sp], #4 + 800252e: 4770 bx lr -08002478 : +08002530 : * @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) { - 8002478: b580 push {r7, lr} - 800247a: b086 sub sp, #24 - 800247c: af00 add r7, sp, #0 - 800247e: 6078 str r0, [r7, #4] + 8002530: b580 push {r7, lr} + 8002532: b086 sub sp, #24 + 8002534: af00 add r7, sp, #0 + 8002536: 6078 str r0, [r7, #4] uint32_t tmpisr; __IO uint32_t count = 0U; - 8002480: 2300 movs r3, #0 - 8002482: 60bb str r3, [r7, #8] + 8002538: 2300 movs r3, #0 + 800253a: 60bb str r3, [r7, #8] uint32_t timeout = SystemCoreClock / 9600U; - 8002484: 4b8e ldr r3, [pc, #568] @ (80026c0 ) - 8002486: 681b ldr r3, [r3, #0] - 8002488: 4a8e ldr r2, [pc, #568] @ (80026c4 ) - 800248a: fba2 2303 umull r2, r3, r2, r3 - 800248e: 0a9b lsrs r3, r3, #10 - 8002490: 617b str r3, [r7, #20] + 800253c: 4b8e ldr r3, [pc, #568] @ (8002778 ) + 800253e: 681b ldr r3, [r3, #0] + 8002540: 4a8e ldr r2, [pc, #568] @ (800277c ) + 8002542: fba2 2303 umull r2, r3, r2, r3 + 8002546: 0a9b lsrs r3, r3, #10 + 8002548: 617b str r3, [r7, #20] /* calculate DMA base and stream number */ DMA_Base_Registers *regs = (DMA_Base_Registers *)hdma->StreamBaseAddress; - 8002492: 687b ldr r3, [r7, #4] - 8002494: 6d9b ldr r3, [r3, #88] @ 0x58 - 8002496: 613b str r3, [r7, #16] + 800254a: 687b ldr r3, [r7, #4] + 800254c: 6d9b ldr r3, [r3, #88] @ 0x58 + 800254e: 613b str r3, [r7, #16] tmpisr = regs->ISR; - 8002498: 693b ldr r3, [r7, #16] - 800249a: 681b ldr r3, [r3, #0] - 800249c: 60fb str r3, [r7, #12] + 8002550: 693b ldr r3, [r7, #16] + 8002552: 681b ldr r3, [r3, #0] + 8002554: 60fb str r3, [r7, #12] /* Transfer Error Interrupt management ***************************************/ if ((tmpisr & (DMA_FLAG_TEIF0_4 << hdma->StreamIndex)) != RESET) - 800249e: 687b ldr r3, [r7, #4] - 80024a0: 6ddb ldr r3, [r3, #92] @ 0x5c - 80024a2: 2208 movs r2, #8 - 80024a4: 409a lsls r2, r3 - 80024a6: 68fb ldr r3, [r7, #12] - 80024a8: 4013 ands r3, r2 - 80024aa: 2b00 cmp r3, #0 - 80024ac: d01a beq.n 80024e4 + 8002556: 687b ldr r3, [r7, #4] + 8002558: 6ddb ldr r3, [r3, #92] @ 0x5c + 800255a: 2208 movs r2, #8 + 800255c: 409a lsls r2, r3 + 800255e: 68fb ldr r3, [r7, #12] + 8002560: 4013 ands r3, r2 + 8002562: 2b00 cmp r3, #0 + 8002564: d01a beq.n 800259c { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TE) != RESET) - 80024ae: 687b ldr r3, [r7, #4] - 80024b0: 681b ldr r3, [r3, #0] - 80024b2: 681b ldr r3, [r3, #0] - 80024b4: f003 0304 and.w r3, r3, #4 - 80024b8: 2b00 cmp r3, #0 - 80024ba: d013 beq.n 80024e4 + 8002566: 687b ldr r3, [r7, #4] + 8002568: 681b ldr r3, [r3, #0] + 800256a: 681b ldr r3, [r3, #0] + 800256c: f003 0304 and.w r3, r3, #4 + 8002570: 2b00 cmp r3, #0 + 8002572: d013 beq.n 800259c { /* Disable the transfer error interrupt */ hdma->Instance->CR &= ~(DMA_IT_TE); - 80024bc: 687b ldr r3, [r7, #4] - 80024be: 681b ldr r3, [r3, #0] - 80024c0: 681a ldr r2, [r3, #0] - 80024c2: 687b ldr r3, [r7, #4] - 80024c4: 681b ldr r3, [r3, #0] - 80024c6: f022 0204 bic.w r2, r2, #4 - 80024ca: 601a str r2, [r3, #0] + 8002574: 687b ldr r3, [r7, #4] + 8002576: 681b ldr r3, [r3, #0] + 8002578: 681a ldr r2, [r3, #0] + 800257a: 687b ldr r3, [r7, #4] + 800257c: 681b ldr r3, [r3, #0] + 800257e: f022 0204 bic.w r2, r2, #4 + 8002582: 601a str r2, [r3, #0] /* Clear the transfer error flag */ regs->IFCR = DMA_FLAG_TEIF0_4 << hdma->StreamIndex; - 80024cc: 687b ldr r3, [r7, #4] - 80024ce: 6ddb ldr r3, [r3, #92] @ 0x5c - 80024d0: 2208 movs r2, #8 - 80024d2: 409a lsls r2, r3 - 80024d4: 693b ldr r3, [r7, #16] - 80024d6: 609a str r2, [r3, #8] + 8002584: 687b ldr r3, [r7, #4] + 8002586: 6ddb ldr r3, [r3, #92] @ 0x5c + 8002588: 2208 movs r2, #8 + 800258a: 409a lsls r2, r3 + 800258c: 693b ldr r3, [r7, #16] + 800258e: 609a str r2, [r3, #8] /* Update error code */ hdma->ErrorCode |= HAL_DMA_ERROR_TE; - 80024d8: 687b ldr r3, [r7, #4] - 80024da: 6d5b ldr r3, [r3, #84] @ 0x54 - 80024dc: f043 0201 orr.w r2, r3, #1 - 80024e0: 687b ldr r3, [r7, #4] - 80024e2: 655a str r2, [r3, #84] @ 0x54 + 8002590: 687b ldr r3, [r7, #4] + 8002592: 6d5b ldr r3, [r3, #84] @ 0x54 + 8002594: f043 0201 orr.w r2, r3, #1 + 8002598: 687b ldr r3, [r7, #4] + 800259a: 655a str r2, [r3, #84] @ 0x54 } } /* FIFO Error Interrupt management ******************************************/ if ((tmpisr & (DMA_FLAG_FEIF0_4 << hdma->StreamIndex)) != RESET) - 80024e4: 687b ldr r3, [r7, #4] - 80024e6: 6ddb ldr r3, [r3, #92] @ 0x5c - 80024e8: 2201 movs r2, #1 - 80024ea: 409a lsls r2, r3 - 80024ec: 68fb ldr r3, [r7, #12] - 80024ee: 4013 ands r3, r2 - 80024f0: 2b00 cmp r3, #0 - 80024f2: d012 beq.n 800251a + 800259c: 687b ldr r3, [r7, #4] + 800259e: 6ddb ldr r3, [r3, #92] @ 0x5c + 80025a0: 2201 movs r2, #1 + 80025a2: 409a lsls r2, r3 + 80025a4: 68fb ldr r3, [r7, #12] + 80025a6: 4013 ands r3, r2 + 80025a8: 2b00 cmp r3, #0 + 80025aa: d012 beq.n 80025d2 { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_FE) != RESET) - 80024f4: 687b ldr r3, [r7, #4] - 80024f6: 681b ldr r3, [r3, #0] - 80024f8: 695b ldr r3, [r3, #20] - 80024fa: f003 0380 and.w r3, r3, #128 @ 0x80 - 80024fe: 2b00 cmp r3, #0 - 8002500: d00b beq.n 800251a + 80025ac: 687b ldr r3, [r7, #4] + 80025ae: 681b ldr r3, [r3, #0] + 80025b0: 695b ldr r3, [r3, #20] + 80025b2: f003 0380 and.w r3, r3, #128 @ 0x80 + 80025b6: 2b00 cmp r3, #0 + 80025b8: d00b beq.n 80025d2 { /* Clear the FIFO error flag */ regs->IFCR = DMA_FLAG_FEIF0_4 << hdma->StreamIndex; - 8002502: 687b ldr r3, [r7, #4] - 8002504: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002506: 2201 movs r2, #1 - 8002508: 409a lsls r2, r3 - 800250a: 693b ldr r3, [r7, #16] - 800250c: 609a str r2, [r3, #8] + 80025ba: 687b ldr r3, [r7, #4] + 80025bc: 6ddb ldr r3, [r3, #92] @ 0x5c + 80025be: 2201 movs r2, #1 + 80025c0: 409a lsls r2, r3 + 80025c2: 693b ldr r3, [r7, #16] + 80025c4: 609a str r2, [r3, #8] /* Update error code */ hdma->ErrorCode |= HAL_DMA_ERROR_FE; - 800250e: 687b ldr r3, [r7, #4] - 8002510: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002512: f043 0202 orr.w r2, r3, #2 - 8002516: 687b ldr r3, [r7, #4] - 8002518: 655a str r2, [r3, #84] @ 0x54 + 80025c6: 687b ldr r3, [r7, #4] + 80025c8: 6d5b ldr r3, [r3, #84] @ 0x54 + 80025ca: f043 0202 orr.w r2, r3, #2 + 80025ce: 687b ldr r3, [r7, #4] + 80025d0: 655a str r2, [r3, #84] @ 0x54 } } /* Direct Mode Error Interrupt management ***********************************/ if ((tmpisr & (DMA_FLAG_DMEIF0_4 << hdma->StreamIndex)) != RESET) - 800251a: 687b ldr r3, [r7, #4] - 800251c: 6ddb ldr r3, [r3, #92] @ 0x5c - 800251e: 2204 movs r2, #4 - 8002520: 409a lsls r2, r3 - 8002522: 68fb ldr r3, [r7, #12] - 8002524: 4013 ands r3, r2 - 8002526: 2b00 cmp r3, #0 - 8002528: d012 beq.n 8002550 + 80025d2: 687b ldr r3, [r7, #4] + 80025d4: 6ddb ldr r3, [r3, #92] @ 0x5c + 80025d6: 2204 movs r2, #4 + 80025d8: 409a lsls r2, r3 + 80025da: 68fb ldr r3, [r7, #12] + 80025dc: 4013 ands r3, r2 + 80025de: 2b00 cmp r3, #0 + 80025e0: d012 beq.n 8002608 { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_DME) != RESET) - 800252a: 687b ldr r3, [r7, #4] - 800252c: 681b ldr r3, [r3, #0] - 800252e: 681b ldr r3, [r3, #0] - 8002530: f003 0302 and.w r3, r3, #2 - 8002534: 2b00 cmp r3, #0 - 8002536: d00b beq.n 8002550 + 80025e2: 687b ldr r3, [r7, #4] + 80025e4: 681b ldr r3, [r3, #0] + 80025e6: 681b ldr r3, [r3, #0] + 80025e8: f003 0302 and.w r3, r3, #2 + 80025ec: 2b00 cmp r3, #0 + 80025ee: d00b beq.n 8002608 { /* Clear the direct mode error flag */ regs->IFCR = DMA_FLAG_DMEIF0_4 << hdma->StreamIndex; - 8002538: 687b ldr r3, [r7, #4] - 800253a: 6ddb ldr r3, [r3, #92] @ 0x5c - 800253c: 2204 movs r2, #4 - 800253e: 409a lsls r2, r3 - 8002540: 693b ldr r3, [r7, #16] - 8002542: 609a str r2, [r3, #8] + 80025f0: 687b ldr r3, [r7, #4] + 80025f2: 6ddb ldr r3, [r3, #92] @ 0x5c + 80025f4: 2204 movs r2, #4 + 80025f6: 409a lsls r2, r3 + 80025f8: 693b ldr r3, [r7, #16] + 80025fa: 609a str r2, [r3, #8] /* Update error code */ hdma->ErrorCode |= HAL_DMA_ERROR_DME; - 8002544: 687b ldr r3, [r7, #4] - 8002546: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002548: f043 0204 orr.w r2, r3, #4 - 800254c: 687b ldr r3, [r7, #4] - 800254e: 655a str r2, [r3, #84] @ 0x54 + 80025fc: 687b ldr r3, [r7, #4] + 80025fe: 6d5b ldr r3, [r3, #84] @ 0x54 + 8002600: f043 0204 orr.w r2, r3, #4 + 8002604: 687b ldr r3, [r7, #4] + 8002606: 655a str r2, [r3, #84] @ 0x54 } } /* Half Transfer Complete Interrupt management ******************************/ if ((tmpisr & (DMA_FLAG_HTIF0_4 << hdma->StreamIndex)) != RESET) - 8002550: 687b ldr r3, [r7, #4] - 8002552: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002554: 2210 movs r2, #16 - 8002556: 409a lsls r2, r3 - 8002558: 68fb ldr r3, [r7, #12] - 800255a: 4013 ands r3, r2 - 800255c: 2b00 cmp r3, #0 - 800255e: d043 beq.n 80025e8 + 8002608: 687b ldr r3, [r7, #4] + 800260a: 6ddb ldr r3, [r3, #92] @ 0x5c + 800260c: 2210 movs r2, #16 + 800260e: 409a lsls r2, r3 + 8002610: 68fb ldr r3, [r7, #12] + 8002612: 4013 ands r3, r2 + 8002614: 2b00 cmp r3, #0 + 8002616: d043 beq.n 80026a0 { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_HT) != RESET) - 8002560: 687b ldr r3, [r7, #4] - 8002562: 681b ldr r3, [r3, #0] - 8002564: 681b ldr r3, [r3, #0] - 8002566: f003 0308 and.w r3, r3, #8 - 800256a: 2b00 cmp r3, #0 - 800256c: d03c beq.n 80025e8 + 8002618: 687b ldr r3, [r7, #4] + 800261a: 681b ldr r3, [r3, #0] + 800261c: 681b ldr r3, [r3, #0] + 800261e: f003 0308 and.w r3, r3, #8 + 8002622: 2b00 cmp r3, #0 + 8002624: d03c beq.n 80026a0 { /* Clear the half transfer complete flag */ regs->IFCR = DMA_FLAG_HTIF0_4 << hdma->StreamIndex; - 800256e: 687b ldr r3, [r7, #4] - 8002570: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002572: 2210 movs r2, #16 - 8002574: 409a lsls r2, r3 - 8002576: 693b ldr r3, [r7, #16] - 8002578: 609a str r2, [r3, #8] + 8002626: 687b ldr r3, [r7, #4] + 8002628: 6ddb ldr r3, [r3, #92] @ 0x5c + 800262a: 2210 movs r2, #16 + 800262c: 409a lsls r2, r3 + 800262e: 693b ldr r3, [r7, #16] + 8002630: 609a str r2, [r3, #8] /* Multi_Buffering mode enabled */ if(((hdma->Instance->CR) & (uint32_t)(DMA_SxCR_DBM)) != RESET) - 800257a: 687b ldr r3, [r7, #4] - 800257c: 681b ldr r3, [r3, #0] - 800257e: 681b ldr r3, [r3, #0] - 8002580: f403 2380 and.w r3, r3, #262144 @ 0x40000 - 8002584: 2b00 cmp r3, #0 - 8002586: d018 beq.n 80025ba + 8002632: 687b ldr r3, [r7, #4] + 8002634: 681b ldr r3, [r3, #0] + 8002636: 681b ldr r3, [r3, #0] + 8002638: f403 2380 and.w r3, r3, #262144 @ 0x40000 + 800263c: 2b00 cmp r3, #0 + 800263e: d018 beq.n 8002672 { /* Current memory buffer used is Memory 0 */ if((hdma->Instance->CR & DMA_SxCR_CT) == RESET) - 8002588: 687b ldr r3, [r7, #4] - 800258a: 681b ldr r3, [r3, #0] - 800258c: 681b ldr r3, [r3, #0] - 800258e: f403 2300 and.w r3, r3, #524288 @ 0x80000 - 8002592: 2b00 cmp r3, #0 - 8002594: d108 bne.n 80025a8 + 8002640: 687b ldr r3, [r7, #4] + 8002642: 681b ldr r3, [r3, #0] + 8002644: 681b ldr r3, [r3, #0] + 8002646: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 800264a: 2b00 cmp r3, #0 + 800264c: d108 bne.n 8002660 { if(hdma->XferHalfCpltCallback != NULL) - 8002596: 687b ldr r3, [r7, #4] - 8002598: 6c1b ldr r3, [r3, #64] @ 0x40 - 800259a: 2b00 cmp r3, #0 - 800259c: d024 beq.n 80025e8 + 800264e: 687b ldr r3, [r7, #4] + 8002650: 6c1b ldr r3, [r3, #64] @ 0x40 + 8002652: 2b00 cmp r3, #0 + 8002654: d024 beq.n 80026a0 { /* Half transfer callback */ hdma->XferHalfCpltCallback(hdma); - 800259e: 687b ldr r3, [r7, #4] - 80025a0: 6c1b ldr r3, [r3, #64] @ 0x40 - 80025a2: 6878 ldr r0, [r7, #4] - 80025a4: 4798 blx r3 - 80025a6: e01f b.n 80025e8 + 8002656: 687b ldr r3, [r7, #4] + 8002658: 6c1b ldr r3, [r3, #64] @ 0x40 + 800265a: 6878 ldr r0, [r7, #4] + 800265c: 4798 blx r3 + 800265e: e01f b.n 80026a0 } } /* Current memory buffer used is Memory 1 */ else { if(hdma->XferM1HalfCpltCallback != NULL) - 80025a8: 687b ldr r3, [r7, #4] - 80025aa: 6c9b ldr r3, [r3, #72] @ 0x48 - 80025ac: 2b00 cmp r3, #0 - 80025ae: d01b beq.n 80025e8 + 8002660: 687b ldr r3, [r7, #4] + 8002662: 6c9b ldr r3, [r3, #72] @ 0x48 + 8002664: 2b00 cmp r3, #0 + 8002666: d01b beq.n 80026a0 { /* Half transfer callback */ hdma->XferM1HalfCpltCallback(hdma); - 80025b0: 687b ldr r3, [r7, #4] - 80025b2: 6c9b ldr r3, [r3, #72] @ 0x48 - 80025b4: 6878 ldr r0, [r7, #4] - 80025b6: 4798 blx r3 - 80025b8: e016 b.n 80025e8 + 8002668: 687b ldr r3, [r7, #4] + 800266a: 6c9b ldr r3, [r3, #72] @ 0x48 + 800266c: 6878 ldr r0, [r7, #4] + 800266e: 4798 blx r3 + 8002670: e016 b.n 80026a0 } } else { /* Disable the half transfer interrupt if the DMA mode is not CIRCULAR */ if((hdma->Instance->CR & DMA_SxCR_CIRC) == RESET) - 80025ba: 687b ldr r3, [r7, #4] - 80025bc: 681b ldr r3, [r3, #0] - 80025be: 681b ldr r3, [r3, #0] - 80025c0: f403 7380 and.w r3, r3, #256 @ 0x100 - 80025c4: 2b00 cmp r3, #0 - 80025c6: d107 bne.n 80025d8 + 8002672: 687b ldr r3, [r7, #4] + 8002674: 681b ldr r3, [r3, #0] + 8002676: 681b ldr r3, [r3, #0] + 8002678: f403 7380 and.w r3, r3, #256 @ 0x100 + 800267c: 2b00 cmp r3, #0 + 800267e: d107 bne.n 8002690 { /* Disable the half transfer interrupt */ hdma->Instance->CR &= ~(DMA_IT_HT); - 80025c8: 687b ldr r3, [r7, #4] - 80025ca: 681b ldr r3, [r3, #0] - 80025cc: 681a ldr r2, [r3, #0] - 80025ce: 687b ldr r3, [r7, #4] - 80025d0: 681b ldr r3, [r3, #0] - 80025d2: f022 0208 bic.w r2, r2, #8 - 80025d6: 601a str r2, [r3, #0] + 8002680: 687b ldr r3, [r7, #4] + 8002682: 681b ldr r3, [r3, #0] + 8002684: 681a ldr r2, [r3, #0] + 8002686: 687b ldr r3, [r7, #4] + 8002688: 681b ldr r3, [r3, #0] + 800268a: f022 0208 bic.w r2, r2, #8 + 800268e: 601a str r2, [r3, #0] } if(hdma->XferHalfCpltCallback != NULL) - 80025d8: 687b ldr r3, [r7, #4] - 80025da: 6c1b ldr r3, [r3, #64] @ 0x40 - 80025dc: 2b00 cmp r3, #0 - 80025de: d003 beq.n 80025e8 + 8002690: 687b ldr r3, [r7, #4] + 8002692: 6c1b ldr r3, [r3, #64] @ 0x40 + 8002694: 2b00 cmp r3, #0 + 8002696: d003 beq.n 80026a0 { /* Half transfer callback */ hdma->XferHalfCpltCallback(hdma); - 80025e0: 687b ldr r3, [r7, #4] - 80025e2: 6c1b ldr r3, [r3, #64] @ 0x40 - 80025e4: 6878 ldr r0, [r7, #4] - 80025e6: 4798 blx r3 + 8002698: 687b ldr r3, [r7, #4] + 800269a: 6c1b ldr r3, [r3, #64] @ 0x40 + 800269c: 6878 ldr r0, [r7, #4] + 800269e: 4798 blx r3 } } } } /* Transfer Complete Interrupt management ***********************************/ if ((tmpisr & (DMA_FLAG_TCIF0_4 << hdma->StreamIndex)) != RESET) - 80025e8: 687b ldr r3, [r7, #4] - 80025ea: 6ddb ldr r3, [r3, #92] @ 0x5c - 80025ec: 2220 movs r2, #32 - 80025ee: 409a lsls r2, r3 - 80025f0: 68fb ldr r3, [r7, #12] - 80025f2: 4013 ands r3, r2 - 80025f4: 2b00 cmp r3, #0 - 80025f6: f000 808f beq.w 8002718 + 80026a0: 687b ldr r3, [r7, #4] + 80026a2: 6ddb ldr r3, [r3, #92] @ 0x5c + 80026a4: 2220 movs r2, #32 + 80026a6: 409a lsls r2, r3 + 80026a8: 68fb ldr r3, [r7, #12] + 80026aa: 4013 ands r3, r2 + 80026ac: 2b00 cmp r3, #0 + 80026ae: f000 808f beq.w 80027d0 { if(__HAL_DMA_GET_IT_SOURCE(hdma, DMA_IT_TC) != RESET) - 80025fa: 687b ldr r3, [r7, #4] - 80025fc: 681b ldr r3, [r3, #0] - 80025fe: 681b ldr r3, [r3, #0] - 8002600: f003 0310 and.w r3, r3, #16 - 8002604: 2b00 cmp r3, #0 - 8002606: f000 8087 beq.w 8002718 + 80026b2: 687b ldr r3, [r7, #4] + 80026b4: 681b ldr r3, [r3, #0] + 80026b6: 681b ldr r3, [r3, #0] + 80026b8: f003 0310 and.w r3, r3, #16 + 80026bc: 2b00 cmp r3, #0 + 80026be: f000 8087 beq.w 80027d0 { /* Clear the transfer complete flag */ regs->IFCR = DMA_FLAG_TCIF0_4 << hdma->StreamIndex; - 800260a: 687b ldr r3, [r7, #4] - 800260c: 6ddb ldr r3, [r3, #92] @ 0x5c - 800260e: 2220 movs r2, #32 - 8002610: 409a lsls r2, r3 - 8002612: 693b ldr r3, [r7, #16] - 8002614: 609a str r2, [r3, #8] + 80026c2: 687b ldr r3, [r7, #4] + 80026c4: 6ddb ldr r3, [r3, #92] @ 0x5c + 80026c6: 2220 movs r2, #32 + 80026c8: 409a lsls r2, r3 + 80026ca: 693b ldr r3, [r7, #16] + 80026cc: 609a str r2, [r3, #8] if(HAL_DMA_STATE_ABORT == hdma->State) - 8002616: 687b ldr r3, [r7, #4] - 8002618: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 - 800261c: b2db uxtb r3, r3 - 800261e: 2b05 cmp r3, #5 - 8002620: d136 bne.n 8002690 + 80026ce: 687b ldr r3, [r7, #4] + 80026d0: f893 3035 ldrb.w r3, [r3, #53] @ 0x35 + 80026d4: b2db uxtb r3, r3 + 80026d6: 2b05 cmp r3, #5 + 80026d8: d136 bne.n 8002748 { /* Disable all the transfer interrupts */ hdma->Instance->CR &= ~(DMA_IT_TC | DMA_IT_TE | DMA_IT_DME); - 8002622: 687b ldr r3, [r7, #4] - 8002624: 681b ldr r3, [r3, #0] - 8002626: 681a ldr r2, [r3, #0] - 8002628: 687b ldr r3, [r7, #4] - 800262a: 681b ldr r3, [r3, #0] - 800262c: f022 0216 bic.w r2, r2, #22 - 8002630: 601a str r2, [r3, #0] + 80026da: 687b ldr r3, [r7, #4] + 80026dc: 681b ldr r3, [r3, #0] + 80026de: 681a ldr r2, [r3, #0] + 80026e0: 687b ldr r3, [r7, #4] + 80026e2: 681b ldr r3, [r3, #0] + 80026e4: f022 0216 bic.w r2, r2, #22 + 80026e8: 601a str r2, [r3, #0] hdma->Instance->FCR &= ~(DMA_IT_FE); - 8002632: 687b ldr r3, [r7, #4] - 8002634: 681b ldr r3, [r3, #0] - 8002636: 695a ldr r2, [r3, #20] - 8002638: 687b ldr r3, [r7, #4] - 800263a: 681b ldr r3, [r3, #0] - 800263c: f022 0280 bic.w r2, r2, #128 @ 0x80 - 8002640: 615a str r2, [r3, #20] + 80026ea: 687b ldr r3, [r7, #4] + 80026ec: 681b ldr r3, [r3, #0] + 80026ee: 695a ldr r2, [r3, #20] + 80026f0: 687b ldr r3, [r7, #4] + 80026f2: 681b ldr r3, [r3, #0] + 80026f4: f022 0280 bic.w r2, r2, #128 @ 0x80 + 80026f8: 615a str r2, [r3, #20] if((hdma->XferHalfCpltCallback != NULL) || (hdma->XferM1HalfCpltCallback != NULL)) - 8002642: 687b ldr r3, [r7, #4] - 8002644: 6c1b ldr r3, [r3, #64] @ 0x40 - 8002646: 2b00 cmp r3, #0 - 8002648: d103 bne.n 8002652 - 800264a: 687b ldr r3, [r7, #4] - 800264c: 6c9b ldr r3, [r3, #72] @ 0x48 - 800264e: 2b00 cmp r3, #0 - 8002650: d007 beq.n 8002662 + 80026fa: 687b ldr r3, [r7, #4] + 80026fc: 6c1b ldr r3, [r3, #64] @ 0x40 + 80026fe: 2b00 cmp r3, #0 + 8002700: d103 bne.n 800270a + 8002702: 687b ldr r3, [r7, #4] + 8002704: 6c9b ldr r3, [r3, #72] @ 0x48 + 8002706: 2b00 cmp r3, #0 + 8002708: d007 beq.n 800271a { hdma->Instance->CR &= ~(DMA_IT_HT); - 8002652: 687b ldr r3, [r7, #4] - 8002654: 681b ldr r3, [r3, #0] - 8002656: 681a ldr r2, [r3, #0] - 8002658: 687b ldr r3, [r7, #4] - 800265a: 681b ldr r3, [r3, #0] - 800265c: f022 0208 bic.w r2, r2, #8 - 8002660: 601a str r2, [r3, #0] + 800270a: 687b ldr r3, [r7, #4] + 800270c: 681b ldr r3, [r3, #0] + 800270e: 681a ldr r2, [r3, #0] + 8002710: 687b ldr r3, [r7, #4] + 8002712: 681b ldr r3, [r3, #0] + 8002714: f022 0208 bic.w r2, r2, #8 + 8002718: 601a str r2, [r3, #0] } /* Clear all interrupt flags at correct offset within the register */ regs->IFCR = 0x3FU << hdma->StreamIndex; - 8002662: 687b ldr r3, [r7, #4] - 8002664: 6ddb ldr r3, [r3, #92] @ 0x5c - 8002666: 223f movs r2, #63 @ 0x3f - 8002668: 409a lsls r2, r3 - 800266a: 693b ldr r3, [r7, #16] - 800266c: 609a str r2, [r3, #8] + 800271a: 687b ldr r3, [r7, #4] + 800271c: 6ddb ldr r3, [r3, #92] @ 0x5c + 800271e: 223f movs r2, #63 @ 0x3f + 8002720: 409a lsls r2, r3 + 8002722: 693b ldr r3, [r7, #16] + 8002724: 609a str r2, [r3, #8] /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 800266e: 687b ldr r3, [r7, #4] - 8002670: 2201 movs r2, #1 - 8002672: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 8002726: 687b ldr r3, [r7, #4] + 8002728: 2201 movs r2, #1 + 800272a: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 8002676: 687b ldr r3, [r7, #4] - 8002678: 2200 movs r2, #0 - 800267a: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 800272e: 687b ldr r3, [r7, #4] + 8002730: 2200 movs r2, #0 + 8002732: f883 2034 strb.w r2, [r3, #52] @ 0x34 if(hdma->XferAbortCallback != NULL) - 800267e: 687b ldr r3, [r7, #4] - 8002680: 6d1b ldr r3, [r3, #80] @ 0x50 - 8002682: 2b00 cmp r3, #0 - 8002684: d07e beq.n 8002784 + 8002736: 687b ldr r3, [r7, #4] + 8002738: 6d1b ldr r3, [r3, #80] @ 0x50 + 800273a: 2b00 cmp r3, #0 + 800273c: d07e beq.n 800283c { hdma->XferAbortCallback(hdma); - 8002686: 687b ldr r3, [r7, #4] - 8002688: 6d1b ldr r3, [r3, #80] @ 0x50 - 800268a: 6878 ldr r0, [r7, #4] - 800268c: 4798 blx r3 + 800273e: 687b ldr r3, [r7, #4] + 8002740: 6d1b ldr r3, [r3, #80] @ 0x50 + 8002742: 6878 ldr r0, [r7, #4] + 8002744: 4798 blx r3 } return; - 800268e: e079 b.n 8002784 + 8002746: e079 b.n 800283c } if(((hdma->Instance->CR) & (uint32_t)(DMA_SxCR_DBM)) != RESET) - 8002690: 687b ldr r3, [r7, #4] - 8002692: 681b ldr r3, [r3, #0] - 8002694: 681b ldr r3, [r3, #0] - 8002696: f403 2380 and.w r3, r3, #262144 @ 0x40000 - 800269a: 2b00 cmp r3, #0 - 800269c: d01d beq.n 80026da + 8002748: 687b ldr r3, [r7, #4] + 800274a: 681b ldr r3, [r3, #0] + 800274c: 681b ldr r3, [r3, #0] + 800274e: f403 2380 and.w r3, r3, #262144 @ 0x40000 + 8002752: 2b00 cmp r3, #0 + 8002754: d01d beq.n 8002792 { /* Current memory buffer used is Memory 0 */ if((hdma->Instance->CR & DMA_SxCR_CT) == RESET) - 800269e: 687b ldr r3, [r7, #4] - 80026a0: 681b ldr r3, [r3, #0] - 80026a2: 681b ldr r3, [r3, #0] - 80026a4: f403 2300 and.w r3, r3, #524288 @ 0x80000 - 80026a8: 2b00 cmp r3, #0 - 80026aa: d10d bne.n 80026c8 + 8002756: 687b ldr r3, [r7, #4] + 8002758: 681b ldr r3, [r3, #0] + 800275a: 681b ldr r3, [r3, #0] + 800275c: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 8002760: 2b00 cmp r3, #0 + 8002762: d10d bne.n 8002780 { if(hdma->XferM1CpltCallback != NULL) - 80026ac: 687b ldr r3, [r7, #4] - 80026ae: 6c5b ldr r3, [r3, #68] @ 0x44 - 80026b0: 2b00 cmp r3, #0 - 80026b2: d031 beq.n 8002718 + 8002764: 687b ldr r3, [r7, #4] + 8002766: 6c5b ldr r3, [r3, #68] @ 0x44 + 8002768: 2b00 cmp r3, #0 + 800276a: d031 beq.n 80027d0 { /* Transfer complete Callback for memory1 */ hdma->XferM1CpltCallback(hdma); - 80026b4: 687b ldr r3, [r7, #4] - 80026b6: 6c5b ldr r3, [r3, #68] @ 0x44 - 80026b8: 6878 ldr r0, [r7, #4] - 80026ba: 4798 blx r3 - 80026bc: e02c b.n 8002718 - 80026be: bf00 nop - 80026c0: 20000090 .word 0x20000090 - 80026c4: 1b4e81b5 .word 0x1b4e81b5 + 800276c: 687b ldr r3, [r7, #4] + 800276e: 6c5b ldr r3, [r3, #68] @ 0x44 + 8002770: 6878 ldr r0, [r7, #4] + 8002772: 4798 blx r3 + 8002774: e02c b.n 80027d0 + 8002776: bf00 nop + 8002778: 20000090 .word 0x20000090 + 800277c: 1b4e81b5 .word 0x1b4e81b5 } } /* Current memory buffer used is Memory 1 */ else { if(hdma->XferCpltCallback != NULL) - 80026c8: 687b ldr r3, [r7, #4] - 80026ca: 6bdb ldr r3, [r3, #60] @ 0x3c - 80026cc: 2b00 cmp r3, #0 - 80026ce: d023 beq.n 8002718 + 8002780: 687b ldr r3, [r7, #4] + 8002782: 6bdb ldr r3, [r3, #60] @ 0x3c + 8002784: 2b00 cmp r3, #0 + 8002786: d023 beq.n 80027d0 { /* Transfer complete Callback for memory0 */ hdma->XferCpltCallback(hdma); - 80026d0: 687b ldr r3, [r7, #4] - 80026d2: 6bdb ldr r3, [r3, #60] @ 0x3c - 80026d4: 6878 ldr r0, [r7, #4] - 80026d6: 4798 blx r3 - 80026d8: e01e b.n 8002718 + 8002788: 687b ldr r3, [r7, #4] + 800278a: 6bdb ldr r3, [r3, #60] @ 0x3c + 800278c: 6878 ldr r0, [r7, #4] + 800278e: 4798 blx r3 + 8002790: e01e b.n 80027d0 } } /* Disable the transfer complete interrupt if the DMA mode is not CIRCULAR */ else { if((hdma->Instance->CR & DMA_SxCR_CIRC) == RESET) - 80026da: 687b ldr r3, [r7, #4] - 80026dc: 681b ldr r3, [r3, #0] - 80026de: 681b ldr r3, [r3, #0] - 80026e0: f403 7380 and.w r3, r3, #256 @ 0x100 - 80026e4: 2b00 cmp r3, #0 - 80026e6: d10f bne.n 8002708 + 8002792: 687b ldr r3, [r7, #4] + 8002794: 681b ldr r3, [r3, #0] + 8002796: 681b ldr r3, [r3, #0] + 8002798: f403 7380 and.w r3, r3, #256 @ 0x100 + 800279c: 2b00 cmp r3, #0 + 800279e: d10f bne.n 80027c0 { /* Disable the transfer complete interrupt */ hdma->Instance->CR &= ~(DMA_IT_TC); - 80026e8: 687b ldr r3, [r7, #4] - 80026ea: 681b ldr r3, [r3, #0] - 80026ec: 681a ldr r2, [r3, #0] - 80026ee: 687b ldr r3, [r7, #4] - 80026f0: 681b ldr r3, [r3, #0] - 80026f2: f022 0210 bic.w r2, r2, #16 - 80026f6: 601a str r2, [r3, #0] + 80027a0: 687b ldr r3, [r7, #4] + 80027a2: 681b ldr r3, [r3, #0] + 80027a4: 681a ldr r2, [r3, #0] + 80027a6: 687b ldr r3, [r7, #4] + 80027a8: 681b ldr r3, [r3, #0] + 80027aa: f022 0210 bic.w r2, r2, #16 + 80027ae: 601a str r2, [r3, #0] /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 80026f8: 687b ldr r3, [r7, #4] - 80026fa: 2201 movs r2, #1 - 80026fc: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 80027b0: 687b ldr r3, [r7, #4] + 80027b2: 2201 movs r2, #1 + 80027b4: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 8002700: 687b ldr r3, [r7, #4] - 8002702: 2200 movs r2, #0 - 8002704: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 80027b8: 687b ldr r3, [r7, #4] + 80027ba: 2200 movs r2, #0 + 80027bc: f883 2034 strb.w r2, [r3, #52] @ 0x34 } if(hdma->XferCpltCallback != NULL) - 8002708: 687b ldr r3, [r7, #4] - 800270a: 6bdb ldr r3, [r3, #60] @ 0x3c - 800270c: 2b00 cmp r3, #0 - 800270e: d003 beq.n 8002718 + 80027c0: 687b ldr r3, [r7, #4] + 80027c2: 6bdb ldr r3, [r3, #60] @ 0x3c + 80027c4: 2b00 cmp r3, #0 + 80027c6: d003 beq.n 80027d0 { /* Transfer complete callback */ hdma->XferCpltCallback(hdma); - 8002710: 687b ldr r3, [r7, #4] - 8002712: 6bdb ldr r3, [r3, #60] @ 0x3c - 8002714: 6878 ldr r0, [r7, #4] - 8002716: 4798 blx r3 + 80027c8: 687b ldr r3, [r7, #4] + 80027ca: 6bdb ldr r3, [r3, #60] @ 0x3c + 80027cc: 6878 ldr r0, [r7, #4] + 80027ce: 4798 blx r3 } } } /* manage error case */ if(hdma->ErrorCode != HAL_DMA_ERROR_NONE) - 8002718: 687b ldr r3, [r7, #4] - 800271a: 6d5b ldr r3, [r3, #84] @ 0x54 - 800271c: 2b00 cmp r3, #0 - 800271e: d032 beq.n 8002786 + 80027d0: 687b ldr r3, [r7, #4] + 80027d2: 6d5b ldr r3, [r3, #84] @ 0x54 + 80027d4: 2b00 cmp r3, #0 + 80027d6: d032 beq.n 800283e { if((hdma->ErrorCode & HAL_DMA_ERROR_TE) != RESET) - 8002720: 687b ldr r3, [r7, #4] - 8002722: 6d5b ldr r3, [r3, #84] @ 0x54 - 8002724: f003 0301 and.w r3, r3, #1 - 8002728: 2b00 cmp r3, #0 - 800272a: d022 beq.n 8002772 + 80027d8: 687b ldr r3, [r7, #4] + 80027da: 6d5b ldr r3, [r3, #84] @ 0x54 + 80027dc: f003 0301 and.w r3, r3, #1 + 80027e0: 2b00 cmp r3, #0 + 80027e2: d022 beq.n 800282a { hdma->State = HAL_DMA_STATE_ABORT; - 800272c: 687b ldr r3, [r7, #4] - 800272e: 2205 movs r2, #5 - 8002730: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 80027e4: 687b ldr r3, [r7, #4] + 80027e6: 2205 movs r2, #5 + 80027e8: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Disable the stream */ __HAL_DMA_DISABLE(hdma); - 8002734: 687b ldr r3, [r7, #4] - 8002736: 681b ldr r3, [r3, #0] - 8002738: 681a ldr r2, [r3, #0] - 800273a: 687b ldr r3, [r7, #4] - 800273c: 681b ldr r3, [r3, #0] - 800273e: f022 0201 bic.w r2, r2, #1 - 8002742: 601a str r2, [r3, #0] + 80027ec: 687b ldr r3, [r7, #4] + 80027ee: 681b ldr r3, [r3, #0] + 80027f0: 681a ldr r2, [r3, #0] + 80027f2: 687b ldr r3, [r7, #4] + 80027f4: 681b ldr r3, [r3, #0] + 80027f6: f022 0201 bic.w r2, r2, #1 + 80027fa: 601a str r2, [r3, #0] do { if (++count > timeout) - 8002744: 68bb ldr r3, [r7, #8] - 8002746: 3301 adds r3, #1 - 8002748: 60bb str r3, [r7, #8] - 800274a: 697a ldr r2, [r7, #20] - 800274c: 429a cmp r2, r3 - 800274e: d307 bcc.n 8002760 + 80027fc: 68bb ldr r3, [r7, #8] + 80027fe: 3301 adds r3, #1 + 8002800: 60bb str r3, [r7, #8] + 8002802: 697a ldr r2, [r7, #20] + 8002804: 429a cmp r2, r3 + 8002806: d307 bcc.n 8002818 { break; } } while((hdma->Instance->CR & DMA_SxCR_EN) != RESET); - 8002750: 687b ldr r3, [r7, #4] - 8002752: 681b ldr r3, [r3, #0] - 8002754: 681b ldr r3, [r3, #0] - 8002756: f003 0301 and.w r3, r3, #1 - 800275a: 2b00 cmp r3, #0 - 800275c: d1f2 bne.n 8002744 - 800275e: e000 b.n 8002762 + 8002808: 687b ldr r3, [r7, #4] + 800280a: 681b ldr r3, [r3, #0] + 800280c: 681b ldr r3, [r3, #0] + 800280e: f003 0301 and.w r3, r3, #1 + 8002812: 2b00 cmp r3, #0 + 8002814: d1f2 bne.n 80027fc + 8002816: e000 b.n 800281a break; - 8002760: bf00 nop + 8002818: bf00 nop /* Change the DMA state */ hdma->State = HAL_DMA_STATE_READY; - 8002762: 687b ldr r3, [r7, #4] - 8002764: 2201 movs r2, #1 - 8002766: f883 2035 strb.w r2, [r3, #53] @ 0x35 + 800281a: 687b ldr r3, [r7, #4] + 800281c: 2201 movs r2, #1 + 800281e: f883 2035 strb.w r2, [r3, #53] @ 0x35 /* Process Unlocked */ __HAL_UNLOCK(hdma); - 800276a: 687b ldr r3, [r7, #4] - 800276c: 2200 movs r2, #0 - 800276e: f883 2034 strb.w r2, [r3, #52] @ 0x34 + 8002822: 687b ldr r3, [r7, #4] + 8002824: 2200 movs r2, #0 + 8002826: f883 2034 strb.w r2, [r3, #52] @ 0x34 } if(hdma->XferErrorCallback != NULL) - 8002772: 687b ldr r3, [r7, #4] - 8002774: 6cdb ldr r3, [r3, #76] @ 0x4c - 8002776: 2b00 cmp r3, #0 - 8002778: d005 beq.n 8002786 + 800282a: 687b ldr r3, [r7, #4] + 800282c: 6cdb ldr r3, [r3, #76] @ 0x4c + 800282e: 2b00 cmp r3, #0 + 8002830: d005 beq.n 800283e { /* Transfer error callback */ hdma->XferErrorCallback(hdma); - 800277a: 687b ldr r3, [r7, #4] - 800277c: 6cdb ldr r3, [r3, #76] @ 0x4c - 800277e: 6878 ldr r0, [r7, #4] - 8002780: 4798 blx r3 - 8002782: e000 b.n 8002786 + 8002832: 687b ldr r3, [r7, #4] + 8002834: 6cdb ldr r3, [r3, #76] @ 0x4c + 8002836: 6878 ldr r0, [r7, #4] + 8002838: 4798 blx r3 + 800283a: e000 b.n 800283e return; - 8002784: bf00 nop + 800283c: bf00 nop } } } - 8002786: 3718 adds r7, #24 - 8002788: 46bd mov sp, r7 - 800278a: bd80 pop {r7, pc} + 800283e: 3718 adds r7, #24 + 8002840: 46bd mov sp, r7 + 8002842: bd80 pop {r7, pc} -0800278c : +08002844 : * @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) { - 800278c: b480 push {r7} - 800278e: b085 sub sp, #20 - 8002790: af00 add r7, sp, #0 - 8002792: 60f8 str r0, [r7, #12] - 8002794: 60b9 str r1, [r7, #8] - 8002796: 607a str r2, [r7, #4] - 8002798: 603b str r3, [r7, #0] + 8002844: b480 push {r7} + 8002846: b085 sub sp, #20 + 8002848: af00 add r7, sp, #0 + 800284a: 60f8 str r0, [r7, #12] + 800284c: 60b9 str r1, [r7, #8] + 800284e: 607a str r2, [r7, #4] + 8002850: 603b str r3, [r7, #0] /* Clear DBM bit */ hdma->Instance->CR &= (uint32_t)(~DMA_SxCR_DBM); - 800279a: 68fb ldr r3, [r7, #12] - 800279c: 681b ldr r3, [r3, #0] - 800279e: 681a ldr r2, [r3, #0] - 80027a0: 68fb ldr r3, [r7, #12] - 80027a2: 681b ldr r3, [r3, #0] - 80027a4: f422 2280 bic.w r2, r2, #262144 @ 0x40000 - 80027a8: 601a str r2, [r3, #0] + 8002852: 68fb ldr r3, [r7, #12] + 8002854: 681b ldr r3, [r3, #0] + 8002856: 681a ldr r2, [r3, #0] + 8002858: 68fb ldr r3, [r7, #12] + 800285a: 681b ldr r3, [r3, #0] + 800285c: f422 2280 bic.w r2, r2, #262144 @ 0x40000 + 8002860: 601a str r2, [r3, #0] /* Configure DMA Stream data length */ hdma->Instance->NDTR = DataLength; - 80027aa: 68fb ldr r3, [r7, #12] - 80027ac: 681b ldr r3, [r3, #0] - 80027ae: 683a ldr r2, [r7, #0] - 80027b0: 605a str r2, [r3, #4] + 8002862: 68fb ldr r3, [r7, #12] + 8002864: 681b ldr r3, [r3, #0] + 8002866: 683a ldr r2, [r7, #0] + 8002868: 605a str r2, [r3, #4] /* Memory to Peripheral */ if((hdma->Init.Direction) == DMA_MEMORY_TO_PERIPH) - 80027b2: 68fb ldr r3, [r7, #12] - 80027b4: 689b ldr r3, [r3, #8] - 80027b6: 2b40 cmp r3, #64 @ 0x40 - 80027b8: d108 bne.n 80027cc + 800286a: 68fb ldr r3, [r7, #12] + 800286c: 689b ldr r3, [r3, #8] + 800286e: 2b40 cmp r3, #64 @ 0x40 + 8002870: d108 bne.n 8002884 { /* Configure DMA Stream destination address */ hdma->Instance->PAR = DstAddress; - 80027ba: 68fb ldr r3, [r7, #12] - 80027bc: 681b ldr r3, [r3, #0] - 80027be: 687a ldr r2, [r7, #4] - 80027c0: 609a str r2, [r3, #8] + 8002872: 68fb ldr r3, [r7, #12] + 8002874: 681b ldr r3, [r3, #0] + 8002876: 687a ldr r2, [r7, #4] + 8002878: 609a str r2, [r3, #8] /* Configure DMA Stream source address */ hdma->Instance->M0AR = SrcAddress; - 80027c2: 68fb ldr r3, [r7, #12] - 80027c4: 681b ldr r3, [r3, #0] - 80027c6: 68ba ldr r2, [r7, #8] - 80027c8: 60da str r2, [r3, #12] + 800287a: 68fb ldr r3, [r7, #12] + 800287c: 681b ldr r3, [r3, #0] + 800287e: 68ba ldr r2, [r7, #8] + 8002880: 60da str r2, [r3, #12] hdma->Instance->PAR = SrcAddress; /* Configure DMA Stream destination address */ hdma->Instance->M0AR = DstAddress; } } - 80027ca: e007 b.n 80027dc + 8002882: e007 b.n 8002894 hdma->Instance->PAR = SrcAddress; - 80027cc: 68fb ldr r3, [r7, #12] - 80027ce: 681b ldr r3, [r3, #0] - 80027d0: 68ba ldr r2, [r7, #8] - 80027d2: 609a str r2, [r3, #8] + 8002884: 68fb ldr r3, [r7, #12] + 8002886: 681b ldr r3, [r3, #0] + 8002888: 68ba ldr r2, [r7, #8] + 800288a: 609a str r2, [r3, #8] hdma->Instance->M0AR = DstAddress; - 80027d4: 68fb ldr r3, [r7, #12] - 80027d6: 681b ldr r3, [r3, #0] - 80027d8: 687a ldr r2, [r7, #4] - 80027da: 60da str r2, [r3, #12] + 800288c: 68fb ldr r3, [r7, #12] + 800288e: 681b ldr r3, [r3, #0] + 8002890: 687a ldr r2, [r7, #4] + 8002892: 60da str r2, [r3, #12] } - 80027dc: bf00 nop - 80027de: 3714 adds r7, #20 - 80027e0: 46bd mov sp, r7 - 80027e2: f85d 7b04 ldr.w r7, [sp], #4 - 80027e6: 4770 bx lr + 8002894: bf00 nop + 8002896: 3714 adds r7, #20 + 8002898: 46bd mov sp, r7 + 800289a: f85d 7b04 ldr.w r7, [sp], #4 + 800289e: 4770 bx lr -080027e8 : +080028a0 : * @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) { - 80027e8: b480 push {r7} - 80027ea: b085 sub sp, #20 - 80027ec: af00 add r7, sp, #0 - 80027ee: 6078 str r0, [r7, #4] + 80028a0: b480 push {r7} + 80028a2: b085 sub sp, #20 + 80028a4: af00 add r7, sp, #0 + 80028a6: 6078 str r0, [r7, #4] uint32_t stream_number = (((uint32_t)hdma->Instance & 0xFFU) - 16U) / 24U; - 80027f0: 687b ldr r3, [r7, #4] - 80027f2: 681b ldr r3, [r3, #0] - 80027f4: b2db uxtb r3, r3 - 80027f6: 3b10 subs r3, #16 - 80027f8: 4a14 ldr r2, [pc, #80] @ (800284c ) - 80027fa: fba2 2303 umull r2, r3, r2, r3 - 80027fe: 091b lsrs r3, r3, #4 - 8002800: 60fb str r3, [r7, #12] + 80028a8: 687b ldr r3, [r7, #4] + 80028aa: 681b ldr r3, [r3, #0] + 80028ac: b2db uxtb r3, r3 + 80028ae: 3b10 subs r3, #16 + 80028b0: 4a14 ldr r2, [pc, #80] @ (8002904 ) + 80028b2: fba2 2303 umull r2, r3, r2, r3 + 80028b6: 091b lsrs r3, r3, #4 + 80028b8: 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]; - 8002802: 4a13 ldr r2, [pc, #76] @ (8002850 ) - 8002804: 68fb ldr r3, [r7, #12] - 8002806: 4413 add r3, r2 - 8002808: 781b ldrb r3, [r3, #0] - 800280a: 461a mov r2, r3 - 800280c: 687b ldr r3, [r7, #4] - 800280e: 65da str r2, [r3, #92] @ 0x5c + 80028ba: 4a13 ldr r2, [pc, #76] @ (8002908 ) + 80028bc: 68fb ldr r3, [r7, #12] + 80028be: 4413 add r3, r2 + 80028c0: 781b ldrb r3, [r3, #0] + 80028c2: 461a mov r2, r3 + 80028c4: 687b ldr r3, [r7, #4] + 80028c6: 65da str r2, [r3, #92] @ 0x5c if (stream_number > 3U) - 8002810: 68fb ldr r3, [r7, #12] - 8002812: 2b03 cmp r3, #3 - 8002814: d909 bls.n 800282a + 80028c8: 68fb ldr r3, [r7, #12] + 80028ca: 2b03 cmp r3, #3 + 80028cc: d909 bls.n 80028e2 { /* return pointer to HISR and HIFCR */ hdma->StreamBaseAddress = (((uint32_t)hdma->Instance & (uint32_t)(~0x3FFU)) + 4U); - 8002816: 687b ldr r3, [r7, #4] - 8002818: 681b ldr r3, [r3, #0] - 800281a: f423 737f bic.w r3, r3, #1020 @ 0x3fc - 800281e: f023 0303 bic.w r3, r3, #3 - 8002822: 1d1a adds r2, r3, #4 - 8002824: 687b ldr r3, [r7, #4] - 8002826: 659a str r2, [r3, #88] @ 0x58 - 8002828: e007 b.n 800283a + 80028ce: 687b ldr r3, [r7, #4] + 80028d0: 681b ldr r3, [r3, #0] + 80028d2: f423 737f bic.w r3, r3, #1020 @ 0x3fc + 80028d6: f023 0303 bic.w r3, r3, #3 + 80028da: 1d1a adds r2, r3, #4 + 80028dc: 687b ldr r3, [r7, #4] + 80028de: 659a str r2, [r3, #88] @ 0x58 + 80028e0: e007 b.n 80028f2 } else { /* return pointer to LISR and LIFCR */ hdma->StreamBaseAddress = ((uint32_t)hdma->Instance & (uint32_t)(~0x3FFU)); - 800282a: 687b ldr r3, [r7, #4] - 800282c: 681b ldr r3, [r3, #0] - 800282e: f423 737f bic.w r3, r3, #1020 @ 0x3fc - 8002832: f023 0303 bic.w r3, r3, #3 - 8002836: 687a ldr r2, [r7, #4] - 8002838: 6593 str r3, [r2, #88] @ 0x58 + 80028e2: 687b ldr r3, [r7, #4] + 80028e4: 681b ldr r3, [r3, #0] + 80028e6: f423 737f bic.w r3, r3, #1020 @ 0x3fc + 80028ea: f023 0303 bic.w r3, r3, #3 + 80028ee: 687a ldr r2, [r7, #4] + 80028f0: 6593 str r3, [r2, #88] @ 0x58 } return hdma->StreamBaseAddress; - 800283a: 687b ldr r3, [r7, #4] - 800283c: 6d9b ldr r3, [r3, #88] @ 0x58 + 80028f2: 687b ldr r3, [r7, #4] + 80028f4: 6d9b ldr r3, [r3, #88] @ 0x58 } - 800283e: 4618 mov r0, r3 - 8002840: 3714 adds r7, #20 - 8002842: 46bd mov sp, r7 - 8002844: f85d 7b04 ldr.w r7, [sp], #4 - 8002848: 4770 bx lr - 800284a: bf00 nop - 800284c: aaaaaaab .word 0xaaaaaaab - 8002850: 0800b7e8 .word 0x0800b7e8 + 80028f6: 4618 mov r0, r3 + 80028f8: 3714 adds r7, #20 + 80028fa: 46bd mov sp, r7 + 80028fc: f85d 7b04 ldr.w r7, [sp], #4 + 8002900: 4770 bx lr + 8002902: bf00 nop + 8002904: aaaaaaab .word 0xaaaaaaab + 8002908: 0800b8a0 .word 0x0800b8a0 -08002854 : +0800290c : * @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) { - 8002854: b480 push {r7} - 8002856: b085 sub sp, #20 - 8002858: af00 add r7, sp, #0 - 800285a: 6078 str r0, [r7, #4] + 800290c: b480 push {r7} + 800290e: b085 sub sp, #20 + 8002910: af00 add r7, sp, #0 + 8002912: 6078 str r0, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 800285c: 2300 movs r3, #0 - 800285e: 73fb strb r3, [r7, #15] + 8002914: 2300 movs r3, #0 + 8002916: 73fb strb r3, [r7, #15] uint32_t tmp = hdma->Init.FIFOThreshold; - 8002860: 687b ldr r3, [r7, #4] - 8002862: 6a9b ldr r3, [r3, #40] @ 0x28 - 8002864: 60bb str r3, [r7, #8] + 8002918: 687b ldr r3, [r7, #4] + 800291a: 6a9b ldr r3, [r3, #40] @ 0x28 + 800291c: 60bb str r3, [r7, #8] /* Memory Data size equal to Byte */ if(hdma->Init.MemDataAlignment == DMA_MDATAALIGN_BYTE) - 8002866: 687b ldr r3, [r7, #4] - 8002868: 699b ldr r3, [r3, #24] - 800286a: 2b00 cmp r3, #0 - 800286c: d11f bne.n 80028ae + 800291e: 687b ldr r3, [r7, #4] + 8002920: 699b ldr r3, [r3, #24] + 8002922: 2b00 cmp r3, #0 + 8002924: d11f bne.n 8002966 { switch (tmp) - 800286e: 68bb ldr r3, [r7, #8] - 8002870: 2b03 cmp r3, #3 - 8002872: d856 bhi.n 8002922 - 8002874: a201 add r2, pc, #4 @ (adr r2, 800287c ) - 8002876: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800287a: bf00 nop - 800287c: 0800288d .word 0x0800288d - 8002880: 0800289f .word 0x0800289f - 8002884: 0800288d .word 0x0800288d - 8002888: 08002923 .word 0x08002923 + 8002926: 68bb ldr r3, [r7, #8] + 8002928: 2b03 cmp r3, #3 + 800292a: d856 bhi.n 80029da + 800292c: a201 add r2, pc, #4 @ (adr r2, 8002934 ) + 800292e: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8002932: bf00 nop + 8002934: 08002945 .word 0x08002945 + 8002938: 08002957 .word 0x08002957 + 800293c: 08002945 .word 0x08002945 + 8002940: 080029db .word 0x080029db { case DMA_FIFO_THRESHOLD_1QUARTERFULL: case DMA_FIFO_THRESHOLD_3QUARTERSFULL: if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 800288c: 687b ldr r3, [r7, #4] - 800288e: 6adb ldr r3, [r3, #44] @ 0x2c - 8002890: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 - 8002894: 2b00 cmp r3, #0 - 8002896: d046 beq.n 8002926 + 8002944: 687b ldr r3, [r7, #4] + 8002946: 6adb ldr r3, [r3, #44] @ 0x2c + 8002948: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 + 800294c: 2b00 cmp r3, #0 + 800294e: d046 beq.n 80029de { status = HAL_ERROR; - 8002898: 2301 movs r3, #1 - 800289a: 73fb strb r3, [r7, #15] + 8002950: 2301 movs r3, #1 + 8002952: 73fb strb r3, [r7, #15] } break; - 800289c: e043 b.n 8002926 + 8002954: e043 b.n 80029de case DMA_FIFO_THRESHOLD_HALFFULL: if (hdma->Init.MemBurst == DMA_MBURST_INC16) - 800289e: 687b ldr r3, [r7, #4] - 80028a0: 6adb ldr r3, [r3, #44] @ 0x2c - 80028a2: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000 - 80028a6: d140 bne.n 800292a + 8002956: 687b ldr r3, [r7, #4] + 8002958: 6adb ldr r3, [r3, #44] @ 0x2c + 800295a: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000 + 800295e: d140 bne.n 80029e2 { status = HAL_ERROR; - 80028a8: 2301 movs r3, #1 - 80028aa: 73fb strb r3, [r7, #15] + 8002960: 2301 movs r3, #1 + 8002962: 73fb strb r3, [r7, #15] } break; - 80028ac: e03d b.n 800292a + 8002964: e03d b.n 80029e2 break; } } /* Memory Data size equal to Half-Word */ else if (hdma->Init.MemDataAlignment == DMA_MDATAALIGN_HALFWORD) - 80028ae: 687b ldr r3, [r7, #4] - 80028b0: 699b ldr r3, [r3, #24] - 80028b2: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 - 80028b6: d121 bne.n 80028fc + 8002966: 687b ldr r3, [r7, #4] + 8002968: 699b ldr r3, [r3, #24] + 800296a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 + 800296e: d121 bne.n 80029b4 { switch (tmp) - 80028b8: 68bb ldr r3, [r7, #8] - 80028ba: 2b03 cmp r3, #3 - 80028bc: d837 bhi.n 800292e - 80028be: a201 add r2, pc, #4 @ (adr r2, 80028c4 ) - 80028c0: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 80028c4: 080028d5 .word 0x080028d5 - 80028c8: 080028db .word 0x080028db - 80028cc: 080028d5 .word 0x080028d5 - 80028d0: 080028ed .word 0x080028ed + 8002970: 68bb ldr r3, [r7, #8] + 8002972: 2b03 cmp r3, #3 + 8002974: d837 bhi.n 80029e6 + 8002976: a201 add r2, pc, #4 @ (adr r2, 800297c ) + 8002978: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800297c: 0800298d .word 0x0800298d + 8002980: 08002993 .word 0x08002993 + 8002984: 0800298d .word 0x0800298d + 8002988: 080029a5 .word 0x080029a5 { case DMA_FIFO_THRESHOLD_1QUARTERFULL: case DMA_FIFO_THRESHOLD_3QUARTERSFULL: status = HAL_ERROR; - 80028d4: 2301 movs r3, #1 - 80028d6: 73fb strb r3, [r7, #15] + 800298c: 2301 movs r3, #1 + 800298e: 73fb strb r3, [r7, #15] break; - 80028d8: e030 b.n 800293c + 8002990: e030 b.n 80029f4 case DMA_FIFO_THRESHOLD_HALFFULL: if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 80028da: 687b ldr r3, [r7, #4] - 80028dc: 6adb ldr r3, [r3, #44] @ 0x2c - 80028de: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 - 80028e2: 2b00 cmp r3, #0 - 80028e4: d025 beq.n 8002932 + 8002992: 687b ldr r3, [r7, #4] + 8002994: 6adb ldr r3, [r3, #44] @ 0x2c + 8002996: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 + 800299a: 2b00 cmp r3, #0 + 800299c: d025 beq.n 80029ea { status = HAL_ERROR; - 80028e6: 2301 movs r3, #1 - 80028e8: 73fb strb r3, [r7, #15] + 800299e: 2301 movs r3, #1 + 80029a0: 73fb strb r3, [r7, #15] } break; - 80028ea: e022 b.n 8002932 + 80029a2: e022 b.n 80029ea case DMA_FIFO_THRESHOLD_FULL: if (hdma->Init.MemBurst == DMA_MBURST_INC16) - 80028ec: 687b ldr r3, [r7, #4] - 80028ee: 6adb ldr r3, [r3, #44] @ 0x2c - 80028f0: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000 - 80028f4: d11f bne.n 8002936 + 80029a4: 687b ldr r3, [r7, #4] + 80029a6: 6adb ldr r3, [r3, #44] @ 0x2c + 80029a8: f1b3 7fc0 cmp.w r3, #25165824 @ 0x1800000 + 80029ac: d11f bne.n 80029ee { status = HAL_ERROR; - 80028f6: 2301 movs r3, #1 - 80028f8: 73fb strb r3, [r7, #15] + 80029ae: 2301 movs r3, #1 + 80029b0: 73fb strb r3, [r7, #15] } break; - 80028fa: e01c b.n 8002936 + 80029b2: e01c b.n 80029ee } /* Memory Data size equal to Word */ else { switch (tmp) - 80028fc: 68bb ldr r3, [r7, #8] - 80028fe: 2b02 cmp r3, #2 - 8002900: d903 bls.n 800290a - 8002902: 68bb ldr r3, [r7, #8] - 8002904: 2b03 cmp r3, #3 - 8002906: d003 beq.n 8002910 + 80029b4: 68bb ldr r3, [r7, #8] + 80029b6: 2b02 cmp r3, #2 + 80029b8: d903 bls.n 80029c2 + 80029ba: 68bb ldr r3, [r7, #8] + 80029bc: 2b03 cmp r3, #3 + 80029be: d003 beq.n 80029c8 { status = HAL_ERROR; } break; default: break; - 8002908: e018 b.n 800293c + 80029c0: e018 b.n 80029f4 status = HAL_ERROR; - 800290a: 2301 movs r3, #1 - 800290c: 73fb strb r3, [r7, #15] + 80029c2: 2301 movs r3, #1 + 80029c4: 73fb strb r3, [r7, #15] break; - 800290e: e015 b.n 800293c + 80029c6: e015 b.n 80029f4 if ((hdma->Init.MemBurst & DMA_SxCR_MBURST_1) == DMA_SxCR_MBURST_1) - 8002910: 687b ldr r3, [r7, #4] - 8002912: 6adb ldr r3, [r3, #44] @ 0x2c - 8002914: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 - 8002918: 2b00 cmp r3, #0 - 800291a: d00e beq.n 800293a + 80029c8: 687b ldr r3, [r7, #4] + 80029ca: 6adb ldr r3, [r3, #44] @ 0x2c + 80029cc: f003 7380 and.w r3, r3, #16777216 @ 0x1000000 + 80029d0: 2b00 cmp r3, #0 + 80029d2: d00e beq.n 80029f2 status = HAL_ERROR; - 800291c: 2301 movs r3, #1 - 800291e: 73fb strb r3, [r7, #15] + 80029d4: 2301 movs r3, #1 + 80029d6: 73fb strb r3, [r7, #15] break; - 8002920: e00b b.n 800293a + 80029d8: e00b b.n 80029f2 break; - 8002922: bf00 nop - 8002924: e00a b.n 800293c + 80029da: bf00 nop + 80029dc: e00a b.n 80029f4 break; - 8002926: bf00 nop - 8002928: e008 b.n 800293c + 80029de: bf00 nop + 80029e0: e008 b.n 80029f4 break; - 800292a: bf00 nop - 800292c: e006 b.n 800293c + 80029e2: bf00 nop + 80029e4: e006 b.n 80029f4 break; - 800292e: bf00 nop - 8002930: e004 b.n 800293c + 80029e6: bf00 nop + 80029e8: e004 b.n 80029f4 break; - 8002932: bf00 nop - 8002934: e002 b.n 800293c + 80029ea: bf00 nop + 80029ec: e002 b.n 80029f4 break; - 8002936: bf00 nop - 8002938: e000 b.n 800293c + 80029ee: bf00 nop + 80029f0: e000 b.n 80029f4 break; - 800293a: bf00 nop + 80029f2: bf00 nop } } return status; - 800293c: 7bfb ldrb r3, [r7, #15] + 80029f4: 7bfb ldrb r3, [r7, #15] } - 800293e: 4618 mov r0, r3 - 8002940: 3714 adds r7, #20 - 8002942: 46bd mov sp, r7 - 8002944: f85d 7b04 ldr.w r7, [sp], #4 - 8002948: 4770 bx lr - 800294a: bf00 nop + 80029f6: 4618 mov r0, r3 + 80029f8: 3714 adds r7, #20 + 80029fa: 46bd mov sp, r7 + 80029fc: f85d 7b04 ldr.w r7, [sp], #4 + 8002a00: 4770 bx lr + 8002a02: bf00 nop -0800294c : +08002a04 : * @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) { - 800294c: b480 push {r7} - 800294e: b089 sub sp, #36 @ 0x24 - 8002950: af00 add r7, sp, #0 - 8002952: 6078 str r0, [r7, #4] - 8002954: 6039 str r1, [r7, #0] + 8002a04: b480 push {r7} + 8002a06: b089 sub sp, #36 @ 0x24 + 8002a08: af00 add r7, sp, #0 + 8002a0a: 6078 str r0, [r7, #4] + 8002a0c: 6039 str r1, [r7, #0] uint32_t position; uint32_t ioposition = 0x00U; - 8002956: 2300 movs r3, #0 - 8002958: 617b str r3, [r7, #20] + 8002a0e: 2300 movs r3, #0 + 8002a10: 617b str r3, [r7, #20] uint32_t iocurrent = 0x00U; - 800295a: 2300 movs r3, #0 - 800295c: 613b str r3, [r7, #16] + 8002a12: 2300 movs r3, #0 + 8002a14: 613b str r3, [r7, #16] uint32_t temp = 0x00U; - 800295e: 2300 movs r3, #0 - 8002960: 61bb str r3, [r7, #24] + 8002a16: 2300 movs r3, #0 + 8002a18: 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++) - 8002962: 2300 movs r3, #0 - 8002964: 61fb str r3, [r7, #28] - 8002966: e165 b.n 8002c34 + 8002a1a: 2300 movs r3, #0 + 8002a1c: 61fb str r3, [r7, #28] + 8002a1e: e165 b.n 8002cec { /* Get the IO position */ ioposition = 0x01U << position; - 8002968: 2201 movs r2, #1 - 800296a: 69fb ldr r3, [r7, #28] - 800296c: fa02 f303 lsl.w r3, r2, r3 - 8002970: 617b str r3, [r7, #20] + 8002a20: 2201 movs r2, #1 + 8002a22: 69fb ldr r3, [r7, #28] + 8002a24: fa02 f303 lsl.w r3, r2, r3 + 8002a28: 617b str r3, [r7, #20] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; - 8002972: 683b ldr r3, [r7, #0] - 8002974: 681b ldr r3, [r3, #0] - 8002976: 697a ldr r2, [r7, #20] - 8002978: 4013 ands r3, r2 - 800297a: 613b str r3, [r7, #16] + 8002a2a: 683b ldr r3, [r7, #0] + 8002a2c: 681b ldr r3, [r3, #0] + 8002a2e: 697a ldr r2, [r7, #20] + 8002a30: 4013 ands r3, r2 + 8002a32: 613b str r3, [r7, #16] if(iocurrent == ioposition) - 800297c: 693a ldr r2, [r7, #16] - 800297e: 697b ldr r3, [r7, #20] - 8002980: 429a cmp r2, r3 - 8002982: f040 8154 bne.w 8002c2e + 8002a34: 693a ldr r2, [r7, #16] + 8002a36: 697b ldr r3, [r7, #20] + 8002a38: 429a cmp r2, r3 + 8002a3a: f040 8154 bne.w 8002ce6 { /*--------------------- GPIO Mode Configuration ------------------------*/ /* In case of Output or Alternate function mode selection */ if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \ - 8002986: 683b ldr r3, [r7, #0] - 8002988: 685b ldr r3, [r3, #4] - 800298a: f003 0303 and.w r3, r3, #3 - 800298e: 2b01 cmp r3, #1 - 8002990: d005 beq.n 800299e + 8002a3e: 683b ldr r3, [r7, #0] + 8002a40: 685b ldr r3, [r3, #4] + 8002a42: f003 0303 and.w r3, r3, #3 + 8002a46: 2b01 cmp r3, #1 + 8002a48: d005 beq.n 8002a56 (GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - 8002992: 683b ldr r3, [r7, #0] - 8002994: 685b ldr r3, [r3, #4] - 8002996: f003 0303 and.w r3, r3, #3 + 8002a4a: 683b ldr r3, [r7, #0] + 8002a4c: 685b ldr r3, [r3, #4] + 8002a4e: f003 0303 and.w r3, r3, #3 if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \ - 800299a: 2b02 cmp r3, #2 - 800299c: d130 bne.n 8002a00 + 8002a52: 2b02 cmp r3, #2 + 8002a54: d130 bne.n 8002ab8 { /* Check the Speed parameter */ assert_param(IS_GPIO_SPEED(GPIO_Init->Speed)); /* Configure the IO Speed */ temp = GPIOx->OSPEEDR; - 800299e: 687b ldr r3, [r7, #4] - 80029a0: 689b ldr r3, [r3, #8] - 80029a2: 61bb str r3, [r7, #24] + 8002a56: 687b ldr r3, [r7, #4] + 8002a58: 689b ldr r3, [r3, #8] + 8002a5a: 61bb str r3, [r7, #24] temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U)); - 80029a4: 69fb ldr r3, [r7, #28] - 80029a6: 005b lsls r3, r3, #1 - 80029a8: 2203 movs r2, #3 - 80029aa: fa02 f303 lsl.w r3, r2, r3 - 80029ae: 43db mvns r3, r3 - 80029b0: 69ba ldr r2, [r7, #24] - 80029b2: 4013 ands r3, r2 - 80029b4: 61bb str r3, [r7, #24] + 8002a5c: 69fb ldr r3, [r7, #28] + 8002a5e: 005b lsls r3, r3, #1 + 8002a60: 2203 movs r2, #3 + 8002a62: fa02 f303 lsl.w r3, r2, r3 + 8002a66: 43db mvns r3, r3 + 8002a68: 69ba ldr r2, [r7, #24] + 8002a6a: 4013 ands r3, r2 + 8002a6c: 61bb str r3, [r7, #24] temp |= (GPIO_Init->Speed << (position * 2U)); - 80029b6: 683b ldr r3, [r7, #0] - 80029b8: 68da ldr r2, [r3, #12] - 80029ba: 69fb ldr r3, [r7, #28] - 80029bc: 005b lsls r3, r3, #1 - 80029be: fa02 f303 lsl.w r3, r2, r3 - 80029c2: 69ba ldr r2, [r7, #24] - 80029c4: 4313 orrs r3, r2 - 80029c6: 61bb str r3, [r7, #24] + 8002a6e: 683b ldr r3, [r7, #0] + 8002a70: 68da ldr r2, [r3, #12] + 8002a72: 69fb ldr r3, [r7, #28] + 8002a74: 005b lsls r3, r3, #1 + 8002a76: fa02 f303 lsl.w r3, r2, r3 + 8002a7a: 69ba ldr r2, [r7, #24] + 8002a7c: 4313 orrs r3, r2 + 8002a7e: 61bb str r3, [r7, #24] GPIOx->OSPEEDR = temp; - 80029c8: 687b ldr r3, [r7, #4] - 80029ca: 69ba ldr r2, [r7, #24] - 80029cc: 609a str r2, [r3, #8] + 8002a80: 687b ldr r3, [r7, #4] + 8002a82: 69ba ldr r2, [r7, #24] + 8002a84: 609a str r2, [r3, #8] /* Configure the IO Output Type */ temp = GPIOx->OTYPER; - 80029ce: 687b ldr r3, [r7, #4] - 80029d0: 685b ldr r3, [r3, #4] - 80029d2: 61bb str r3, [r7, #24] + 8002a86: 687b ldr r3, [r7, #4] + 8002a88: 685b ldr r3, [r3, #4] + 8002a8a: 61bb str r3, [r7, #24] temp &= ~(GPIO_OTYPER_OT_0 << position) ; - 80029d4: 2201 movs r2, #1 - 80029d6: 69fb ldr r3, [r7, #28] - 80029d8: fa02 f303 lsl.w r3, r2, r3 - 80029dc: 43db mvns r3, r3 - 80029de: 69ba ldr r2, [r7, #24] - 80029e0: 4013 ands r3, r2 - 80029e2: 61bb str r3, [r7, #24] + 8002a8c: 2201 movs r2, #1 + 8002a8e: 69fb ldr r3, [r7, #28] + 8002a90: fa02 f303 lsl.w r3, r2, r3 + 8002a94: 43db mvns r3, r3 + 8002a96: 69ba ldr r2, [r7, #24] + 8002a98: 4013 ands r3, r2 + 8002a9a: 61bb str r3, [r7, #24] temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position); - 80029e4: 683b ldr r3, [r7, #0] - 80029e6: 685b ldr r3, [r3, #4] - 80029e8: 091b lsrs r3, r3, #4 - 80029ea: f003 0201 and.w r2, r3, #1 - 80029ee: 69fb ldr r3, [r7, #28] - 80029f0: fa02 f303 lsl.w r3, r2, r3 - 80029f4: 69ba ldr r2, [r7, #24] - 80029f6: 4313 orrs r3, r2 - 80029f8: 61bb str r3, [r7, #24] + 8002a9c: 683b ldr r3, [r7, #0] + 8002a9e: 685b ldr r3, [r3, #4] + 8002aa0: 091b lsrs r3, r3, #4 + 8002aa2: f003 0201 and.w r2, r3, #1 + 8002aa6: 69fb ldr r3, [r7, #28] + 8002aa8: fa02 f303 lsl.w r3, r2, r3 + 8002aac: 69ba ldr r2, [r7, #24] + 8002aae: 4313 orrs r3, r2 + 8002ab0: 61bb str r3, [r7, #24] GPIOx->OTYPER = temp; - 80029fa: 687b ldr r3, [r7, #4] - 80029fc: 69ba ldr r2, [r7, #24] - 80029fe: 605a str r2, [r3, #4] + 8002ab2: 687b ldr r3, [r7, #4] + 8002ab4: 69ba ldr r2, [r7, #24] + 8002ab6: 605a str r2, [r3, #4] } if((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG) - 8002a00: 683b ldr r3, [r7, #0] - 8002a02: 685b ldr r3, [r3, #4] - 8002a04: f003 0303 and.w r3, r3, #3 - 8002a08: 2b03 cmp r3, #3 - 8002a0a: d017 beq.n 8002a3c + 8002ab8: 683b ldr r3, [r7, #0] + 8002aba: 685b ldr r3, [r3, #4] + 8002abc: f003 0303 and.w r3, r3, #3 + 8002ac0: 2b03 cmp r3, #3 + 8002ac2: d017 beq.n 8002af4 { /* 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; - 8002a0c: 687b ldr r3, [r7, #4] - 8002a0e: 68db ldr r3, [r3, #12] - 8002a10: 61bb str r3, [r7, #24] + 8002ac4: 687b ldr r3, [r7, #4] + 8002ac6: 68db ldr r3, [r3, #12] + 8002ac8: 61bb str r3, [r7, #24] temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U)); - 8002a12: 69fb ldr r3, [r7, #28] - 8002a14: 005b lsls r3, r3, #1 - 8002a16: 2203 movs r2, #3 - 8002a18: fa02 f303 lsl.w r3, r2, r3 - 8002a1c: 43db mvns r3, r3 - 8002a1e: 69ba ldr r2, [r7, #24] - 8002a20: 4013 ands r3, r2 - 8002a22: 61bb str r3, [r7, #24] + 8002aca: 69fb ldr r3, [r7, #28] + 8002acc: 005b lsls r3, r3, #1 + 8002ace: 2203 movs r2, #3 + 8002ad0: fa02 f303 lsl.w r3, r2, r3 + 8002ad4: 43db mvns r3, r3 + 8002ad6: 69ba ldr r2, [r7, #24] + 8002ad8: 4013 ands r3, r2 + 8002ada: 61bb str r3, [r7, #24] temp |= ((GPIO_Init->Pull) << (position * 2U)); - 8002a24: 683b ldr r3, [r7, #0] - 8002a26: 689a ldr r2, [r3, #8] - 8002a28: 69fb ldr r3, [r7, #28] - 8002a2a: 005b lsls r3, r3, #1 - 8002a2c: fa02 f303 lsl.w r3, r2, r3 - 8002a30: 69ba ldr r2, [r7, #24] - 8002a32: 4313 orrs r3, r2 - 8002a34: 61bb str r3, [r7, #24] + 8002adc: 683b ldr r3, [r7, #0] + 8002ade: 689a ldr r2, [r3, #8] + 8002ae0: 69fb ldr r3, [r7, #28] + 8002ae2: 005b lsls r3, r3, #1 + 8002ae4: fa02 f303 lsl.w r3, r2, r3 + 8002ae8: 69ba ldr r2, [r7, #24] + 8002aea: 4313 orrs r3, r2 + 8002aec: 61bb str r3, [r7, #24] GPIOx->PUPDR = temp; - 8002a36: 687b ldr r3, [r7, #4] - 8002a38: 69ba ldr r2, [r7, #24] - 8002a3a: 60da str r2, [r3, #12] + 8002aee: 687b ldr r3, [r7, #4] + 8002af0: 69ba ldr r2, [r7, #24] + 8002af2: 60da str r2, [r3, #12] } /* In case of Alternate function mode selection */ if((GPIO_Init->Mode & GPIO_MODE) == MODE_AF) - 8002a3c: 683b ldr r3, [r7, #0] - 8002a3e: 685b ldr r3, [r3, #4] - 8002a40: f003 0303 and.w r3, r3, #3 - 8002a44: 2b02 cmp r3, #2 - 8002a46: d123 bne.n 8002a90 + 8002af4: 683b ldr r3, [r7, #0] + 8002af6: 685b ldr r3, [r3, #4] + 8002af8: f003 0303 and.w r3, r3, #3 + 8002afc: 2b02 cmp r3, #2 + 8002afe: d123 bne.n 8002b48 { /* 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]; - 8002a48: 69fb ldr r3, [r7, #28] - 8002a4a: 08da lsrs r2, r3, #3 - 8002a4c: 687b ldr r3, [r7, #4] - 8002a4e: 3208 adds r2, #8 - 8002a50: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8002a54: 61bb str r3, [r7, #24] + 8002b00: 69fb ldr r3, [r7, #28] + 8002b02: 08da lsrs r2, r3, #3 + 8002b04: 687b ldr r3, [r7, #4] + 8002b06: 3208 adds r2, #8 + 8002b08: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8002b0c: 61bb str r3, [r7, #24] temp &= ~(0xFU << ((uint32_t)(position & 0x07U) * 4U)) ; - 8002a56: 69fb ldr r3, [r7, #28] - 8002a58: f003 0307 and.w r3, r3, #7 - 8002a5c: 009b lsls r3, r3, #2 - 8002a5e: 220f movs r2, #15 - 8002a60: fa02 f303 lsl.w r3, r2, r3 - 8002a64: 43db mvns r3, r3 - 8002a66: 69ba ldr r2, [r7, #24] - 8002a68: 4013 ands r3, r2 - 8002a6a: 61bb str r3, [r7, #24] + 8002b0e: 69fb ldr r3, [r7, #28] + 8002b10: f003 0307 and.w r3, r3, #7 + 8002b14: 009b lsls r3, r3, #2 + 8002b16: 220f movs r2, #15 + 8002b18: fa02 f303 lsl.w r3, r2, r3 + 8002b1c: 43db mvns r3, r3 + 8002b1e: 69ba ldr r2, [r7, #24] + 8002b20: 4013 ands r3, r2 + 8002b22: 61bb str r3, [r7, #24] temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4U)); - 8002a6c: 683b ldr r3, [r7, #0] - 8002a6e: 691a ldr r2, [r3, #16] - 8002a70: 69fb ldr r3, [r7, #28] - 8002a72: f003 0307 and.w r3, r3, #7 - 8002a76: 009b lsls r3, r3, #2 - 8002a78: fa02 f303 lsl.w r3, r2, r3 - 8002a7c: 69ba ldr r2, [r7, #24] - 8002a7e: 4313 orrs r3, r2 - 8002a80: 61bb str r3, [r7, #24] + 8002b24: 683b ldr r3, [r7, #0] + 8002b26: 691a ldr r2, [r3, #16] + 8002b28: 69fb ldr r3, [r7, #28] + 8002b2a: f003 0307 and.w r3, r3, #7 + 8002b2e: 009b lsls r3, r3, #2 + 8002b30: fa02 f303 lsl.w r3, r2, r3 + 8002b34: 69ba ldr r2, [r7, #24] + 8002b36: 4313 orrs r3, r2 + 8002b38: 61bb str r3, [r7, #24] GPIOx->AFR[position >> 3U] = temp; - 8002a82: 69fb ldr r3, [r7, #28] - 8002a84: 08da lsrs r2, r3, #3 - 8002a86: 687b ldr r3, [r7, #4] - 8002a88: 3208 adds r2, #8 - 8002a8a: 69b9 ldr r1, [r7, #24] - 8002a8c: f843 1022 str.w r1, [r3, r2, lsl #2] + 8002b3a: 69fb ldr r3, [r7, #28] + 8002b3c: 08da lsrs r2, r3, #3 + 8002b3e: 687b ldr r3, [r7, #4] + 8002b40: 3208 adds r2, #8 + 8002b42: 69b9 ldr r1, [r7, #24] + 8002b44: f843 1022 str.w r1, [r3, r2, lsl #2] } /* Configure IO Direction mode (Input, Output, Alternate or Analog) */ temp = GPIOx->MODER; - 8002a90: 687b ldr r3, [r7, #4] - 8002a92: 681b ldr r3, [r3, #0] - 8002a94: 61bb str r3, [r7, #24] + 8002b48: 687b ldr r3, [r7, #4] + 8002b4a: 681b ldr r3, [r3, #0] + 8002b4c: 61bb str r3, [r7, #24] temp &= ~(GPIO_MODER_MODER0 << (position * 2U)); - 8002a96: 69fb ldr r3, [r7, #28] - 8002a98: 005b lsls r3, r3, #1 - 8002a9a: 2203 movs r2, #3 - 8002a9c: fa02 f303 lsl.w r3, r2, r3 - 8002aa0: 43db mvns r3, r3 - 8002aa2: 69ba ldr r2, [r7, #24] - 8002aa4: 4013 ands r3, r2 - 8002aa6: 61bb str r3, [r7, #24] + 8002b4e: 69fb ldr r3, [r7, #28] + 8002b50: 005b lsls r3, r3, #1 + 8002b52: 2203 movs r2, #3 + 8002b54: fa02 f303 lsl.w r3, r2, r3 + 8002b58: 43db mvns r3, r3 + 8002b5a: 69ba ldr r2, [r7, #24] + 8002b5c: 4013 ands r3, r2 + 8002b5e: 61bb str r3, [r7, #24] temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U)); - 8002aa8: 683b ldr r3, [r7, #0] - 8002aaa: 685b ldr r3, [r3, #4] - 8002aac: f003 0203 and.w r2, r3, #3 - 8002ab0: 69fb ldr r3, [r7, #28] - 8002ab2: 005b lsls r3, r3, #1 - 8002ab4: fa02 f303 lsl.w r3, r2, r3 - 8002ab8: 69ba ldr r2, [r7, #24] - 8002aba: 4313 orrs r3, r2 - 8002abc: 61bb str r3, [r7, #24] + 8002b60: 683b ldr r3, [r7, #0] + 8002b62: 685b ldr r3, [r3, #4] + 8002b64: f003 0203 and.w r2, r3, #3 + 8002b68: 69fb ldr r3, [r7, #28] + 8002b6a: 005b lsls r3, r3, #1 + 8002b6c: fa02 f303 lsl.w r3, r2, r3 + 8002b70: 69ba ldr r2, [r7, #24] + 8002b72: 4313 orrs r3, r2 + 8002b74: 61bb str r3, [r7, #24] GPIOx->MODER = temp; - 8002abe: 687b ldr r3, [r7, #4] - 8002ac0: 69ba ldr r2, [r7, #24] - 8002ac2: 601a str r2, [r3, #0] + 8002b76: 687b ldr r3, [r7, #4] + 8002b78: 69ba ldr r2, [r7, #24] + 8002b7a: 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) - 8002ac4: 683b ldr r3, [r7, #0] - 8002ac6: 685b ldr r3, [r3, #4] - 8002ac8: f403 3340 and.w r3, r3, #196608 @ 0x30000 - 8002acc: 2b00 cmp r3, #0 - 8002ace: f000 80ae beq.w 8002c2e + 8002b7c: 683b ldr r3, [r7, #0] + 8002b7e: 685b ldr r3, [r3, #4] + 8002b80: f403 3340 and.w r3, r3, #196608 @ 0x30000 + 8002b84: 2b00 cmp r3, #0 + 8002b86: f000 80ae beq.w 8002ce6 { /* Enable SYSCFG Clock */ __HAL_RCC_SYSCFG_CLK_ENABLE(); - 8002ad2: 2300 movs r3, #0 - 8002ad4: 60fb str r3, [r7, #12] - 8002ad6: 4b5d ldr r3, [pc, #372] @ (8002c4c ) - 8002ad8: 6c5b ldr r3, [r3, #68] @ 0x44 - 8002ada: 4a5c ldr r2, [pc, #368] @ (8002c4c ) - 8002adc: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 8002ae0: 6453 str r3, [r2, #68] @ 0x44 - 8002ae2: 4b5a ldr r3, [pc, #360] @ (8002c4c ) - 8002ae4: 6c5b ldr r3, [r3, #68] @ 0x44 - 8002ae6: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 8002aea: 60fb str r3, [r7, #12] - 8002aec: 68fb ldr r3, [r7, #12] + 8002b8a: 2300 movs r3, #0 + 8002b8c: 60fb str r3, [r7, #12] + 8002b8e: 4b5d ldr r3, [pc, #372] @ (8002d04 ) + 8002b90: 6c5b ldr r3, [r3, #68] @ 0x44 + 8002b92: 4a5c ldr r2, [pc, #368] @ (8002d04 ) + 8002b94: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 8002b98: 6453 str r3, [r2, #68] @ 0x44 + 8002b9a: 4b5a ldr r3, [pc, #360] @ (8002d04 ) + 8002b9c: 6c5b ldr r3, [r3, #68] @ 0x44 + 8002b9e: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 8002ba2: 60fb str r3, [r7, #12] + 8002ba4: 68fb ldr r3, [r7, #12] temp = SYSCFG->EXTICR[position >> 2U]; - 8002aee: 4a58 ldr r2, [pc, #352] @ (8002c50 ) - 8002af0: 69fb ldr r3, [r7, #28] - 8002af2: 089b lsrs r3, r3, #2 - 8002af4: 3302 adds r3, #2 - 8002af6: f852 3023 ldr.w r3, [r2, r3, lsl #2] - 8002afa: 61bb str r3, [r7, #24] + 8002ba6: 4a58 ldr r2, [pc, #352] @ (8002d08 ) + 8002ba8: 69fb ldr r3, [r7, #28] + 8002baa: 089b lsrs r3, r3, #2 + 8002bac: 3302 adds r3, #2 + 8002bae: f852 3023 ldr.w r3, [r2, r3, lsl #2] + 8002bb2: 61bb str r3, [r7, #24] temp &= ~(0x0FU << (4U * (position & 0x03U))); - 8002afc: 69fb ldr r3, [r7, #28] - 8002afe: f003 0303 and.w r3, r3, #3 - 8002b02: 009b lsls r3, r3, #2 - 8002b04: 220f movs r2, #15 - 8002b06: fa02 f303 lsl.w r3, r2, r3 - 8002b0a: 43db mvns r3, r3 - 8002b0c: 69ba ldr r2, [r7, #24] - 8002b0e: 4013 ands r3, r2 - 8002b10: 61bb str r3, [r7, #24] + 8002bb4: 69fb ldr r3, [r7, #28] + 8002bb6: f003 0303 and.w r3, r3, #3 + 8002bba: 009b lsls r3, r3, #2 + 8002bbc: 220f movs r2, #15 + 8002bbe: fa02 f303 lsl.w r3, r2, r3 + 8002bc2: 43db mvns r3, r3 + 8002bc4: 69ba ldr r2, [r7, #24] + 8002bc6: 4013 ands r3, r2 + 8002bc8: 61bb str r3, [r7, #24] temp |= ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U))); - 8002b12: 687b ldr r3, [r7, #4] - 8002b14: 4a4f ldr r2, [pc, #316] @ (8002c54 ) - 8002b16: 4293 cmp r3, r2 - 8002b18: d025 beq.n 8002b66 - 8002b1a: 687b ldr r3, [r7, #4] - 8002b1c: 4a4e ldr r2, [pc, #312] @ (8002c58 ) - 8002b1e: 4293 cmp r3, r2 - 8002b20: d01f beq.n 8002b62 - 8002b22: 687b ldr r3, [r7, #4] - 8002b24: 4a4d ldr r2, [pc, #308] @ (8002c5c ) - 8002b26: 4293 cmp r3, r2 - 8002b28: d019 beq.n 8002b5e - 8002b2a: 687b ldr r3, [r7, #4] - 8002b2c: 4a4c ldr r2, [pc, #304] @ (8002c60 ) - 8002b2e: 4293 cmp r3, r2 - 8002b30: d013 beq.n 8002b5a - 8002b32: 687b ldr r3, [r7, #4] - 8002b34: 4a4b ldr r2, [pc, #300] @ (8002c64 ) - 8002b36: 4293 cmp r3, r2 - 8002b38: d00d beq.n 8002b56 - 8002b3a: 687b ldr r3, [r7, #4] - 8002b3c: 4a4a ldr r2, [pc, #296] @ (8002c68 ) - 8002b3e: 4293 cmp r3, r2 - 8002b40: d007 beq.n 8002b52 - 8002b42: 687b ldr r3, [r7, #4] - 8002b44: 4a49 ldr r2, [pc, #292] @ (8002c6c ) - 8002b46: 4293 cmp r3, r2 - 8002b48: d101 bne.n 8002b4e - 8002b4a: 2306 movs r3, #6 - 8002b4c: e00c b.n 8002b68 - 8002b4e: 2307 movs r3, #7 - 8002b50: e00a b.n 8002b68 - 8002b52: 2305 movs r3, #5 - 8002b54: e008 b.n 8002b68 - 8002b56: 2304 movs r3, #4 - 8002b58: e006 b.n 8002b68 - 8002b5a: 2303 movs r3, #3 - 8002b5c: e004 b.n 8002b68 - 8002b5e: 2302 movs r3, #2 - 8002b60: e002 b.n 8002b68 - 8002b62: 2301 movs r3, #1 - 8002b64: e000 b.n 8002b68 - 8002b66: 2300 movs r3, #0 - 8002b68: 69fa ldr r2, [r7, #28] - 8002b6a: f002 0203 and.w r2, r2, #3 - 8002b6e: 0092 lsls r2, r2, #2 - 8002b70: 4093 lsls r3, r2 - 8002b72: 69ba ldr r2, [r7, #24] - 8002b74: 4313 orrs r3, r2 - 8002b76: 61bb str r3, [r7, #24] + 8002bca: 687b ldr r3, [r7, #4] + 8002bcc: 4a4f ldr r2, [pc, #316] @ (8002d0c ) + 8002bce: 4293 cmp r3, r2 + 8002bd0: d025 beq.n 8002c1e + 8002bd2: 687b ldr r3, [r7, #4] + 8002bd4: 4a4e ldr r2, [pc, #312] @ (8002d10 ) + 8002bd6: 4293 cmp r3, r2 + 8002bd8: d01f beq.n 8002c1a + 8002bda: 687b ldr r3, [r7, #4] + 8002bdc: 4a4d ldr r2, [pc, #308] @ (8002d14 ) + 8002bde: 4293 cmp r3, r2 + 8002be0: d019 beq.n 8002c16 + 8002be2: 687b ldr r3, [r7, #4] + 8002be4: 4a4c ldr r2, [pc, #304] @ (8002d18 ) + 8002be6: 4293 cmp r3, r2 + 8002be8: d013 beq.n 8002c12 + 8002bea: 687b ldr r3, [r7, #4] + 8002bec: 4a4b ldr r2, [pc, #300] @ (8002d1c ) + 8002bee: 4293 cmp r3, r2 + 8002bf0: d00d beq.n 8002c0e + 8002bf2: 687b ldr r3, [r7, #4] + 8002bf4: 4a4a ldr r2, [pc, #296] @ (8002d20 ) + 8002bf6: 4293 cmp r3, r2 + 8002bf8: d007 beq.n 8002c0a + 8002bfa: 687b ldr r3, [r7, #4] + 8002bfc: 4a49 ldr r2, [pc, #292] @ (8002d24 ) + 8002bfe: 4293 cmp r3, r2 + 8002c00: d101 bne.n 8002c06 + 8002c02: 2306 movs r3, #6 + 8002c04: e00c b.n 8002c20 + 8002c06: 2307 movs r3, #7 + 8002c08: e00a b.n 8002c20 + 8002c0a: 2305 movs r3, #5 + 8002c0c: e008 b.n 8002c20 + 8002c0e: 2304 movs r3, #4 + 8002c10: e006 b.n 8002c20 + 8002c12: 2303 movs r3, #3 + 8002c14: e004 b.n 8002c20 + 8002c16: 2302 movs r3, #2 + 8002c18: e002 b.n 8002c20 + 8002c1a: 2301 movs r3, #1 + 8002c1c: e000 b.n 8002c20 + 8002c1e: 2300 movs r3, #0 + 8002c20: 69fa ldr r2, [r7, #28] + 8002c22: f002 0203 and.w r2, r2, #3 + 8002c26: 0092 lsls r2, r2, #2 + 8002c28: 4093 lsls r3, r2 + 8002c2a: 69ba ldr r2, [r7, #24] + 8002c2c: 4313 orrs r3, r2 + 8002c2e: 61bb str r3, [r7, #24] SYSCFG->EXTICR[position >> 2U] = temp; - 8002b78: 4935 ldr r1, [pc, #212] @ (8002c50 ) - 8002b7a: 69fb ldr r3, [r7, #28] - 8002b7c: 089b lsrs r3, r3, #2 - 8002b7e: 3302 adds r3, #2 - 8002b80: 69ba ldr r2, [r7, #24] - 8002b82: f841 2023 str.w r2, [r1, r3, lsl #2] + 8002c30: 4935 ldr r1, [pc, #212] @ (8002d08 ) + 8002c32: 69fb ldr r3, [r7, #28] + 8002c34: 089b lsrs r3, r3, #2 + 8002c36: 3302 adds r3, #2 + 8002c38: 69ba ldr r2, [r7, #24] + 8002c3a: f841 2023 str.w r2, [r1, r3, lsl #2] /* Clear Rising Falling edge configuration */ temp = EXTI->RTSR; - 8002b86: 4b3a ldr r3, [pc, #232] @ (8002c70 ) - 8002b88: 689b ldr r3, [r3, #8] - 8002b8a: 61bb str r3, [r7, #24] + 8002c3e: 4b3a ldr r3, [pc, #232] @ (8002d28 ) + 8002c40: 689b ldr r3, [r3, #8] + 8002c42: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 8002b8c: 693b ldr r3, [r7, #16] - 8002b8e: 43db mvns r3, r3 - 8002b90: 69ba ldr r2, [r7, #24] - 8002b92: 4013 ands r3, r2 - 8002b94: 61bb str r3, [r7, #24] + 8002c44: 693b ldr r3, [r7, #16] + 8002c46: 43db mvns r3, r3 + 8002c48: 69ba ldr r2, [r7, #24] + 8002c4a: 4013 ands r3, r2 + 8002c4c: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U) - 8002b96: 683b ldr r3, [r7, #0] - 8002b98: 685b ldr r3, [r3, #4] - 8002b9a: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 8002b9e: 2b00 cmp r3, #0 - 8002ba0: d003 beq.n 8002baa + 8002c4e: 683b ldr r3, [r7, #0] + 8002c50: 685b ldr r3, [r3, #4] + 8002c52: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 8002c56: 2b00 cmp r3, #0 + 8002c58: d003 beq.n 8002c62 { temp |= iocurrent; - 8002ba2: 69ba ldr r2, [r7, #24] - 8002ba4: 693b ldr r3, [r7, #16] - 8002ba6: 4313 orrs r3, r2 - 8002ba8: 61bb str r3, [r7, #24] + 8002c5a: 69ba ldr r2, [r7, #24] + 8002c5c: 693b ldr r3, [r7, #16] + 8002c5e: 4313 orrs r3, r2 + 8002c60: 61bb str r3, [r7, #24] } EXTI->RTSR = temp; - 8002baa: 4a31 ldr r2, [pc, #196] @ (8002c70 ) - 8002bac: 69bb ldr r3, [r7, #24] - 8002bae: 6093 str r3, [r2, #8] + 8002c62: 4a31 ldr r2, [pc, #196] @ (8002d28 ) + 8002c64: 69bb ldr r3, [r7, #24] + 8002c66: 6093 str r3, [r2, #8] temp = EXTI->FTSR; - 8002bb0: 4b2f ldr r3, [pc, #188] @ (8002c70 ) - 8002bb2: 68db ldr r3, [r3, #12] - 8002bb4: 61bb str r3, [r7, #24] + 8002c68: 4b2f ldr r3, [pc, #188] @ (8002d28 ) + 8002c6a: 68db ldr r3, [r3, #12] + 8002c6c: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 8002bb6: 693b ldr r3, [r7, #16] - 8002bb8: 43db mvns r3, r3 - 8002bba: 69ba ldr r2, [r7, #24] - 8002bbc: 4013 ands r3, r2 - 8002bbe: 61bb str r3, [r7, #24] + 8002c6e: 693b ldr r3, [r7, #16] + 8002c70: 43db mvns r3, r3 + 8002c72: 69ba ldr r2, [r7, #24] + 8002c74: 4013 ands r3, r2 + 8002c76: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U) - 8002bc0: 683b ldr r3, [r7, #0] - 8002bc2: 685b ldr r3, [r3, #4] - 8002bc4: f403 1300 and.w r3, r3, #2097152 @ 0x200000 - 8002bc8: 2b00 cmp r3, #0 - 8002bca: d003 beq.n 8002bd4 + 8002c78: 683b ldr r3, [r7, #0] + 8002c7a: 685b ldr r3, [r3, #4] + 8002c7c: f403 1300 and.w r3, r3, #2097152 @ 0x200000 + 8002c80: 2b00 cmp r3, #0 + 8002c82: d003 beq.n 8002c8c { temp |= iocurrent; - 8002bcc: 69ba ldr r2, [r7, #24] - 8002bce: 693b ldr r3, [r7, #16] - 8002bd0: 4313 orrs r3, r2 - 8002bd2: 61bb str r3, [r7, #24] + 8002c84: 69ba ldr r2, [r7, #24] + 8002c86: 693b ldr r3, [r7, #16] + 8002c88: 4313 orrs r3, r2 + 8002c8a: 61bb str r3, [r7, #24] } EXTI->FTSR = temp; - 8002bd4: 4a26 ldr r2, [pc, #152] @ (8002c70 ) - 8002bd6: 69bb ldr r3, [r7, #24] - 8002bd8: 60d3 str r3, [r2, #12] + 8002c8c: 4a26 ldr r2, [pc, #152] @ (8002d28 ) + 8002c8e: 69bb ldr r3, [r7, #24] + 8002c90: 60d3 str r3, [r2, #12] temp = EXTI->EMR; - 8002bda: 4b25 ldr r3, [pc, #148] @ (8002c70 ) - 8002bdc: 685b ldr r3, [r3, #4] - 8002bde: 61bb str r3, [r7, #24] + 8002c92: 4b25 ldr r3, [pc, #148] @ (8002d28 ) + 8002c94: 685b ldr r3, [r3, #4] + 8002c96: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 8002be0: 693b ldr r3, [r7, #16] - 8002be2: 43db mvns r3, r3 - 8002be4: 69ba ldr r2, [r7, #24] - 8002be6: 4013 ands r3, r2 - 8002be8: 61bb str r3, [r7, #24] + 8002c98: 693b ldr r3, [r7, #16] + 8002c9a: 43db mvns r3, r3 + 8002c9c: 69ba ldr r2, [r7, #24] + 8002c9e: 4013 ands r3, r2 + 8002ca0: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & EXTI_EVT) != 0x00U) - 8002bea: 683b ldr r3, [r7, #0] - 8002bec: 685b ldr r3, [r3, #4] - 8002bee: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8002bf2: 2b00 cmp r3, #0 - 8002bf4: d003 beq.n 8002bfe + 8002ca2: 683b ldr r3, [r7, #0] + 8002ca4: 685b ldr r3, [r3, #4] + 8002ca6: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8002caa: 2b00 cmp r3, #0 + 8002cac: d003 beq.n 8002cb6 { temp |= iocurrent; - 8002bf6: 69ba ldr r2, [r7, #24] - 8002bf8: 693b ldr r3, [r7, #16] - 8002bfa: 4313 orrs r3, r2 - 8002bfc: 61bb str r3, [r7, #24] + 8002cae: 69ba ldr r2, [r7, #24] + 8002cb0: 693b ldr r3, [r7, #16] + 8002cb2: 4313 orrs r3, r2 + 8002cb4: 61bb str r3, [r7, #24] } EXTI->EMR = temp; - 8002bfe: 4a1c ldr r2, [pc, #112] @ (8002c70 ) - 8002c00: 69bb ldr r3, [r7, #24] - 8002c02: 6053 str r3, [r2, #4] + 8002cb6: 4a1c ldr r2, [pc, #112] @ (8002d28 ) + 8002cb8: 69bb ldr r3, [r7, #24] + 8002cba: 6053 str r3, [r2, #4] /* Clear EXTI line configuration */ temp = EXTI->IMR; - 8002c04: 4b1a ldr r3, [pc, #104] @ (8002c70 ) - 8002c06: 681b ldr r3, [r3, #0] - 8002c08: 61bb str r3, [r7, #24] + 8002cbc: 4b1a ldr r3, [pc, #104] @ (8002d28 ) + 8002cbe: 681b ldr r3, [r3, #0] + 8002cc0: 61bb str r3, [r7, #24] temp &= ~((uint32_t)iocurrent); - 8002c0a: 693b ldr r3, [r7, #16] - 8002c0c: 43db mvns r3, r3 - 8002c0e: 69ba ldr r2, [r7, #24] - 8002c10: 4013 ands r3, r2 - 8002c12: 61bb str r3, [r7, #24] + 8002cc2: 693b ldr r3, [r7, #16] + 8002cc4: 43db mvns r3, r3 + 8002cc6: 69ba ldr r2, [r7, #24] + 8002cc8: 4013 ands r3, r2 + 8002cca: 61bb str r3, [r7, #24] if((GPIO_Init->Mode & EXTI_IT) != 0x00U) - 8002c14: 683b ldr r3, [r7, #0] - 8002c16: 685b ldr r3, [r3, #4] - 8002c18: f403 3380 and.w r3, r3, #65536 @ 0x10000 - 8002c1c: 2b00 cmp r3, #0 - 8002c1e: d003 beq.n 8002c28 + 8002ccc: 683b ldr r3, [r7, #0] + 8002cce: 685b ldr r3, [r3, #4] + 8002cd0: f403 3380 and.w r3, r3, #65536 @ 0x10000 + 8002cd4: 2b00 cmp r3, #0 + 8002cd6: d003 beq.n 8002ce0 { temp |= iocurrent; - 8002c20: 69ba ldr r2, [r7, #24] - 8002c22: 693b ldr r3, [r7, #16] - 8002c24: 4313 orrs r3, r2 - 8002c26: 61bb str r3, [r7, #24] + 8002cd8: 69ba ldr r2, [r7, #24] + 8002cda: 693b ldr r3, [r7, #16] + 8002cdc: 4313 orrs r3, r2 + 8002cde: 61bb str r3, [r7, #24] } EXTI->IMR = temp; - 8002c28: 4a11 ldr r2, [pc, #68] @ (8002c70 ) - 8002c2a: 69bb ldr r3, [r7, #24] - 8002c2c: 6013 str r3, [r2, #0] + 8002ce0: 4a11 ldr r2, [pc, #68] @ (8002d28 ) + 8002ce2: 69bb ldr r3, [r7, #24] + 8002ce4: 6013 str r3, [r2, #0] for(position = 0U; position < GPIO_NUMBER; position++) - 8002c2e: 69fb ldr r3, [r7, #28] - 8002c30: 3301 adds r3, #1 - 8002c32: 61fb str r3, [r7, #28] - 8002c34: 69fb ldr r3, [r7, #28] - 8002c36: 2b0f cmp r3, #15 - 8002c38: f67f ae96 bls.w 8002968 + 8002ce6: 69fb ldr r3, [r7, #28] + 8002ce8: 3301 adds r3, #1 + 8002cea: 61fb str r3, [r7, #28] + 8002cec: 69fb ldr r3, [r7, #28] + 8002cee: 2b0f cmp r3, #15 + 8002cf0: f67f ae96 bls.w 8002a20 } } } } - 8002c3c: bf00 nop - 8002c3e: bf00 nop - 8002c40: 3724 adds r7, #36 @ 0x24 - 8002c42: 46bd mov sp, r7 - 8002c44: f85d 7b04 ldr.w r7, [sp], #4 - 8002c48: 4770 bx lr - 8002c4a: bf00 nop - 8002c4c: 40023800 .word 0x40023800 - 8002c50: 40013800 .word 0x40013800 - 8002c54: 40020000 .word 0x40020000 - 8002c58: 40020400 .word 0x40020400 - 8002c5c: 40020800 .word 0x40020800 - 8002c60: 40020c00 .word 0x40020c00 - 8002c64: 40021000 .word 0x40021000 - 8002c68: 40021400 .word 0x40021400 - 8002c6c: 40021800 .word 0x40021800 - 8002c70: 40013c00 .word 0x40013c00 + 8002cf4: bf00 nop + 8002cf6: bf00 nop + 8002cf8: 3724 adds r7, #36 @ 0x24 + 8002cfa: 46bd mov sp, r7 + 8002cfc: f85d 7b04 ldr.w r7, [sp], #4 + 8002d00: 4770 bx lr + 8002d02: bf00 nop + 8002d04: 40023800 .word 0x40023800 + 8002d08: 40013800 .word 0x40013800 + 8002d0c: 40020000 .word 0x40020000 + 8002d10: 40020400 .word 0x40020400 + 8002d14: 40020800 .word 0x40020800 + 8002d18: 40020c00 .word 0x40020c00 + 8002d1c: 40021000 .word 0x40021000 + 8002d20: 40021400 .word 0x40021400 + 8002d24: 40021800 .word 0x40021800 + 8002d28: 40013c00 .word 0x40013c00 -08002c74 : +08002d2c : * @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) { - 8002c74: b480 push {r7} - 8002c76: b085 sub sp, #20 - 8002c78: af00 add r7, sp, #0 - 8002c7a: 6078 str r0, [r7, #4] - 8002c7c: 460b mov r3, r1 - 8002c7e: 807b strh r3, [r7, #2] + 8002d2c: b480 push {r7} + 8002d2e: b085 sub sp, #20 + 8002d30: af00 add r7, sp, #0 + 8002d32: 6078 str r0, [r7, #4] + 8002d34: 460b mov r3, r1 + 8002d36: 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) - 8002c80: 687b ldr r3, [r7, #4] - 8002c82: 691a ldr r2, [r3, #16] - 8002c84: 887b ldrh r3, [r7, #2] - 8002c86: 4013 ands r3, r2 - 8002c88: 2b00 cmp r3, #0 - 8002c8a: d002 beq.n 8002c92 + 8002d38: 687b ldr r3, [r7, #4] + 8002d3a: 691a ldr r2, [r3, #16] + 8002d3c: 887b ldrh r3, [r7, #2] + 8002d3e: 4013 ands r3, r2 + 8002d40: 2b00 cmp r3, #0 + 8002d42: d002 beq.n 8002d4a { bitstatus = GPIO_PIN_SET; - 8002c8c: 2301 movs r3, #1 - 8002c8e: 73fb strb r3, [r7, #15] - 8002c90: e001 b.n 8002c96 + 8002d44: 2301 movs r3, #1 + 8002d46: 73fb strb r3, [r7, #15] + 8002d48: e001 b.n 8002d4e } else { bitstatus = GPIO_PIN_RESET; - 8002c92: 2300 movs r3, #0 - 8002c94: 73fb strb r3, [r7, #15] + 8002d4a: 2300 movs r3, #0 + 8002d4c: 73fb strb r3, [r7, #15] } return bitstatus; - 8002c96: 7bfb ldrb r3, [r7, #15] + 8002d4e: 7bfb ldrb r3, [r7, #15] } - 8002c98: 4618 mov r0, r3 - 8002c9a: 3714 adds r7, #20 - 8002c9c: 46bd mov sp, r7 - 8002c9e: f85d 7b04 ldr.w r7, [sp], #4 - 8002ca2: 4770 bx lr + 8002d50: 4618 mov r0, r3 + 8002d52: 3714 adds r7, #20 + 8002d54: 46bd mov sp, r7 + 8002d56: f85d 7b04 ldr.w r7, [sp], #4 + 8002d5a: 4770 bx lr -08002ca4 : +08002d5c : * @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) { - 8002ca4: b480 push {r7} - 8002ca6: b083 sub sp, #12 - 8002ca8: af00 add r7, sp, #0 - 8002caa: 6078 str r0, [r7, #4] - 8002cac: 460b mov r3, r1 - 8002cae: 807b strh r3, [r7, #2] - 8002cb0: 4613 mov r3, r2 - 8002cb2: 707b strb r3, [r7, #1] + 8002d5c: b480 push {r7} + 8002d5e: b083 sub sp, #12 + 8002d60: af00 add r7, sp, #0 + 8002d62: 6078 str r0, [r7, #4] + 8002d64: 460b mov r3, r1 + 8002d66: 807b strh r3, [r7, #2] + 8002d68: 4613 mov r3, r2 + 8002d6a: 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) - 8002cb4: 787b ldrb r3, [r7, #1] - 8002cb6: 2b00 cmp r3, #0 - 8002cb8: d003 beq.n 8002cc2 + 8002d6c: 787b ldrb r3, [r7, #1] + 8002d6e: 2b00 cmp r3, #0 + 8002d70: d003 beq.n 8002d7a { GPIOx->BSRR = GPIO_Pin; - 8002cba: 887a ldrh r2, [r7, #2] - 8002cbc: 687b ldr r3, [r7, #4] - 8002cbe: 619a str r2, [r3, #24] + 8002d72: 887a ldrh r2, [r7, #2] + 8002d74: 687b ldr r3, [r7, #4] + 8002d76: 619a str r2, [r3, #24] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U; } } - 8002cc0: e003 b.n 8002cca + 8002d78: e003 b.n 8002d82 GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U; - 8002cc2: 887b ldrh r3, [r7, #2] - 8002cc4: 041a lsls r2, r3, #16 - 8002cc6: 687b ldr r3, [r7, #4] - 8002cc8: 619a str r2, [r3, #24] + 8002d7a: 887b ldrh r3, [r7, #2] + 8002d7c: 041a lsls r2, r3, #16 + 8002d7e: 687b ldr r3, [r7, #4] + 8002d80: 619a str r2, [r3, #24] } - 8002cca: bf00 nop - 8002ccc: 370c adds r7, #12 - 8002cce: 46bd mov sp, r7 - 8002cd0: f85d 7b04 ldr.w r7, [sp], #4 - 8002cd4: 4770 bx lr + 8002d82: bf00 nop + 8002d84: 370c adds r7, #12 + 8002d86: 46bd mov sp, r7 + 8002d88: f85d 7b04 ldr.w r7, [sp], #4 + 8002d8c: 4770 bx lr ... -08002cd8 : +08002d90 : * @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) { - 8002cd8: b580 push {r7, lr} - 8002cda: b084 sub sp, #16 - 8002cdc: af00 add r7, sp, #0 - 8002cde: 6078 str r0, [r7, #4] + 8002d90: b580 push {r7, lr} + 8002d92: b084 sub sp, #16 + 8002d94: af00 add r7, sp, #0 + 8002d96: 6078 str r0, [r7, #4] uint32_t freqrange; uint32_t pclk1; /* Check the I2C handle allocation */ if (hi2c == NULL) - 8002ce0: 687b ldr r3, [r7, #4] - 8002ce2: 2b00 cmp r3, #0 - 8002ce4: d101 bne.n 8002cea + 8002d98: 687b ldr r3, [r7, #4] + 8002d9a: 2b00 cmp r3, #0 + 8002d9c: d101 bne.n 8002da2 { return HAL_ERROR; - 8002ce6: 2301 movs r3, #1 - 8002ce8: e12b b.n 8002f42 + 8002d9e: 2301 movs r3, #1 + 8002da0: e12b b.n 8002ffa 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) - 8002cea: 687b ldr r3, [r7, #4] - 8002cec: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 8002cf0: b2db uxtb r3, r3 - 8002cf2: 2b00 cmp r3, #0 - 8002cf4: d106 bne.n 8002d04 + 8002da2: 687b ldr r3, [r7, #4] + 8002da4: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 8002da8: b2db uxtb r3, r3 + 8002daa: 2b00 cmp r3, #0 + 8002dac: d106 bne.n 8002dbc { /* Allocate lock resource and initialize it */ hi2c->Lock = HAL_UNLOCKED; - 8002cf6: 687b ldr r3, [r7, #4] - 8002cf8: 2200 movs r2, #0 - 8002cfa: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8002dae: 687b ldr r3, [r7, #4] + 8002db0: 2200 movs r2, #0 + 8002db2: 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); - 8002cfe: 6878 ldr r0, [r7, #4] - 8002d00: f7fd fd4a bl 8000798 + 8002db6: 6878 ldr r0, [r7, #4] + 8002db8: f7fd fcee bl 8000798 #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } hi2c->State = HAL_I2C_STATE_BUSY; - 8002d04: 687b ldr r3, [r7, #4] - 8002d06: 2224 movs r2, #36 @ 0x24 - 8002d08: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8002dbc: 687b ldr r3, [r7, #4] + 8002dbe: 2224 movs r2, #36 @ 0x24 + 8002dc0: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); - 8002d0c: 687b ldr r3, [r7, #4] - 8002d0e: 681b ldr r3, [r3, #0] - 8002d10: 681a ldr r2, [r3, #0] - 8002d12: 687b ldr r3, [r7, #4] - 8002d14: 681b ldr r3, [r3, #0] - 8002d16: f022 0201 bic.w r2, r2, #1 - 8002d1a: 601a str r2, [r3, #0] + 8002dc4: 687b ldr r3, [r7, #4] + 8002dc6: 681b ldr r3, [r3, #0] + 8002dc8: 681a ldr r2, [r3, #0] + 8002dca: 687b ldr r3, [r7, #4] + 8002dcc: 681b ldr r3, [r3, #0] + 8002dce: f022 0201 bic.w r2, r2, #1 + 8002dd2: 601a str r2, [r3, #0] /*Reset I2C*/ hi2c->Instance->CR1 |= I2C_CR1_SWRST; - 8002d1c: 687b ldr r3, [r7, #4] - 8002d1e: 681b ldr r3, [r3, #0] - 8002d20: 681a ldr r2, [r3, #0] - 8002d22: 687b ldr r3, [r7, #4] - 8002d24: 681b ldr r3, [r3, #0] - 8002d26: f442 4200 orr.w r2, r2, #32768 @ 0x8000 - 8002d2a: 601a str r2, [r3, #0] + 8002dd4: 687b ldr r3, [r7, #4] + 8002dd6: 681b ldr r3, [r3, #0] + 8002dd8: 681a ldr r2, [r3, #0] + 8002dda: 687b ldr r3, [r7, #4] + 8002ddc: 681b ldr r3, [r3, #0] + 8002dde: f442 4200 orr.w r2, r2, #32768 @ 0x8000 + 8002de2: 601a str r2, [r3, #0] hi2c->Instance->CR1 &= ~I2C_CR1_SWRST; - 8002d2c: 687b ldr r3, [r7, #4] - 8002d2e: 681b ldr r3, [r3, #0] - 8002d30: 681a ldr r2, [r3, #0] - 8002d32: 687b ldr r3, [r7, #4] - 8002d34: 681b ldr r3, [r3, #0] - 8002d36: f422 4200 bic.w r2, r2, #32768 @ 0x8000 - 8002d3a: 601a str r2, [r3, #0] + 8002de4: 687b ldr r3, [r7, #4] + 8002de6: 681b ldr r3, [r3, #0] + 8002de8: 681a ldr r2, [r3, #0] + 8002dea: 687b ldr r3, [r7, #4] + 8002dec: 681b ldr r3, [r3, #0] + 8002dee: f422 4200 bic.w r2, r2, #32768 @ 0x8000 + 8002df2: 601a str r2, [r3, #0] /* Get PCLK1 frequency */ pclk1 = HAL_RCC_GetPCLK1Freq(); - 8002d3c: f001 fc88 bl 8004650 - 8002d40: 60f8 str r0, [r7, #12] + 8002df4: f001 fc88 bl 8004708 + 8002df8: 60f8 str r0, [r7, #12] /* Check the minimum allowed PCLK1 frequency */ if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U) - 8002d42: 687b ldr r3, [r7, #4] - 8002d44: 685b ldr r3, [r3, #4] - 8002d46: 4a81 ldr r2, [pc, #516] @ (8002f4c ) - 8002d48: 4293 cmp r3, r2 - 8002d4a: d807 bhi.n 8002d5c - 8002d4c: 68fb ldr r3, [r7, #12] - 8002d4e: 4a80 ldr r2, [pc, #512] @ (8002f50 ) - 8002d50: 4293 cmp r3, r2 - 8002d52: bf94 ite ls - 8002d54: 2301 movls r3, #1 - 8002d56: 2300 movhi r3, #0 - 8002d58: b2db uxtb r3, r3 - 8002d5a: e006 b.n 8002d6a - 8002d5c: 68fb ldr r3, [r7, #12] - 8002d5e: 4a7d ldr r2, [pc, #500] @ (8002f54 ) - 8002d60: 4293 cmp r3, r2 - 8002d62: bf94 ite ls - 8002d64: 2301 movls r3, #1 - 8002d66: 2300 movhi r3, #0 - 8002d68: b2db uxtb r3, r3 - 8002d6a: 2b00 cmp r3, #0 - 8002d6c: d001 beq.n 8002d72 + 8002dfa: 687b ldr r3, [r7, #4] + 8002dfc: 685b ldr r3, [r3, #4] + 8002dfe: 4a81 ldr r2, [pc, #516] @ (8003004 ) + 8002e00: 4293 cmp r3, r2 + 8002e02: d807 bhi.n 8002e14 + 8002e04: 68fb ldr r3, [r7, #12] + 8002e06: 4a80 ldr r2, [pc, #512] @ (8003008 ) + 8002e08: 4293 cmp r3, r2 + 8002e0a: bf94 ite ls + 8002e0c: 2301 movls r3, #1 + 8002e0e: 2300 movhi r3, #0 + 8002e10: b2db uxtb r3, r3 + 8002e12: e006 b.n 8002e22 + 8002e14: 68fb ldr r3, [r7, #12] + 8002e16: 4a7d ldr r2, [pc, #500] @ (800300c ) + 8002e18: 4293 cmp r3, r2 + 8002e1a: bf94 ite ls + 8002e1c: 2301 movls r3, #1 + 8002e1e: 2300 movhi r3, #0 + 8002e20: b2db uxtb r3, r3 + 8002e22: 2b00 cmp r3, #0 + 8002e24: d001 beq.n 8002e2a { return HAL_ERROR; - 8002d6e: 2301 movs r3, #1 - 8002d70: e0e7 b.n 8002f42 + 8002e26: 2301 movs r3, #1 + 8002e28: e0e7 b.n 8002ffa } /* Calculate frequency range */ freqrange = I2C_FREQRANGE(pclk1); - 8002d72: 68fb ldr r3, [r7, #12] - 8002d74: 4a78 ldr r2, [pc, #480] @ (8002f58 ) - 8002d76: fba2 2303 umull r2, r3, r2, r3 - 8002d7a: 0c9b lsrs r3, r3, #18 - 8002d7c: 60bb str r3, [r7, #8] + 8002e2a: 68fb ldr r3, [r7, #12] + 8002e2c: 4a78 ldr r2, [pc, #480] @ (8003010 ) + 8002e2e: fba2 2303 umull r2, r3, r2, r3 + 8002e32: 0c9b lsrs r3, r3, #18 + 8002e34: 60bb str r3, [r7, #8] /*---------------------------- I2Cx CR2 Configuration ----------------------*/ /* Configure I2Cx: Frequency range */ MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange); - 8002d7e: 687b ldr r3, [r7, #4] - 8002d80: 681b ldr r3, [r3, #0] - 8002d82: 685b ldr r3, [r3, #4] - 8002d84: f023 013f bic.w r1, r3, #63 @ 0x3f - 8002d88: 687b ldr r3, [r7, #4] - 8002d8a: 681b ldr r3, [r3, #0] - 8002d8c: 68ba ldr r2, [r7, #8] - 8002d8e: 430a orrs r2, r1 - 8002d90: 605a str r2, [r3, #4] + 8002e36: 687b ldr r3, [r7, #4] + 8002e38: 681b ldr r3, [r3, #0] + 8002e3a: 685b ldr r3, [r3, #4] + 8002e3c: f023 013f bic.w r1, r3, #63 @ 0x3f + 8002e40: 687b ldr r3, [r7, #4] + 8002e42: 681b ldr r3, [r3, #0] + 8002e44: 68ba ldr r2, [r7, #8] + 8002e46: 430a orrs r2, r1 + 8002e48: 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)); - 8002d92: 687b ldr r3, [r7, #4] - 8002d94: 681b ldr r3, [r3, #0] - 8002d96: 6a1b ldr r3, [r3, #32] - 8002d98: f023 013f bic.w r1, r3, #63 @ 0x3f - 8002d9c: 687b ldr r3, [r7, #4] - 8002d9e: 685b ldr r3, [r3, #4] - 8002da0: 4a6a ldr r2, [pc, #424] @ (8002f4c ) - 8002da2: 4293 cmp r3, r2 - 8002da4: d802 bhi.n 8002dac - 8002da6: 68bb ldr r3, [r7, #8] - 8002da8: 3301 adds r3, #1 - 8002daa: e009 b.n 8002dc0 - 8002dac: 68bb ldr r3, [r7, #8] - 8002dae: f44f 7296 mov.w r2, #300 @ 0x12c - 8002db2: fb02 f303 mul.w r3, r2, r3 - 8002db6: 4a69 ldr r2, [pc, #420] @ (8002f5c ) - 8002db8: fba2 2303 umull r2, r3, r2, r3 - 8002dbc: 099b lsrs r3, r3, #6 - 8002dbe: 3301 adds r3, #1 - 8002dc0: 687a ldr r2, [r7, #4] - 8002dc2: 6812 ldr r2, [r2, #0] - 8002dc4: 430b orrs r3, r1 - 8002dc6: 6213 str r3, [r2, #32] + 8002e4a: 687b ldr r3, [r7, #4] + 8002e4c: 681b ldr r3, [r3, #0] + 8002e4e: 6a1b ldr r3, [r3, #32] + 8002e50: f023 013f bic.w r1, r3, #63 @ 0x3f + 8002e54: 687b ldr r3, [r7, #4] + 8002e56: 685b ldr r3, [r3, #4] + 8002e58: 4a6a ldr r2, [pc, #424] @ (8003004 ) + 8002e5a: 4293 cmp r3, r2 + 8002e5c: d802 bhi.n 8002e64 + 8002e5e: 68bb ldr r3, [r7, #8] + 8002e60: 3301 adds r3, #1 + 8002e62: e009 b.n 8002e78 + 8002e64: 68bb ldr r3, [r7, #8] + 8002e66: f44f 7296 mov.w r2, #300 @ 0x12c + 8002e6a: fb02 f303 mul.w r3, r2, r3 + 8002e6e: 4a69 ldr r2, [pc, #420] @ (8003014 ) + 8002e70: fba2 2303 umull r2, r3, r2, r3 + 8002e74: 099b lsrs r3, r3, #6 + 8002e76: 3301 adds r3, #1 + 8002e78: 687a ldr r2, [r7, #4] + 8002e7a: 6812 ldr r2, [r2, #0] + 8002e7c: 430b orrs r3, r1 + 8002e7e: 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)); - 8002dc8: 687b ldr r3, [r7, #4] - 8002dca: 681b ldr r3, [r3, #0] - 8002dcc: 69db ldr r3, [r3, #28] - 8002dce: f423 424f bic.w r2, r3, #52992 @ 0xcf00 - 8002dd2: f022 02ff bic.w r2, r2, #255 @ 0xff - 8002dd6: 687b ldr r3, [r7, #4] - 8002dd8: 685b ldr r3, [r3, #4] - 8002dda: 495c ldr r1, [pc, #368] @ (8002f4c ) - 8002ddc: 428b cmp r3, r1 - 8002dde: d819 bhi.n 8002e14 - 8002de0: 68fb ldr r3, [r7, #12] - 8002de2: 1e59 subs r1, r3, #1 - 8002de4: 687b ldr r3, [r7, #4] - 8002de6: 685b ldr r3, [r3, #4] - 8002de8: 005b lsls r3, r3, #1 - 8002dea: fbb1 f3f3 udiv r3, r1, r3 - 8002dee: 1c59 adds r1, r3, #1 - 8002df0: f640 73fc movw r3, #4092 @ 0xffc - 8002df4: 400b ands r3, r1 - 8002df6: 2b00 cmp r3, #0 - 8002df8: d00a beq.n 8002e10 - 8002dfa: 68fb ldr r3, [r7, #12] - 8002dfc: 1e59 subs r1, r3, #1 - 8002dfe: 687b ldr r3, [r7, #4] - 8002e00: 685b ldr r3, [r3, #4] - 8002e02: 005b lsls r3, r3, #1 - 8002e04: fbb1 f3f3 udiv r3, r1, r3 - 8002e08: 3301 adds r3, #1 - 8002e0a: f3c3 030b ubfx r3, r3, #0, #12 - 8002e0e: e051 b.n 8002eb4 - 8002e10: 2304 movs r3, #4 - 8002e12: e04f b.n 8002eb4 - 8002e14: 687b ldr r3, [r7, #4] - 8002e16: 689b ldr r3, [r3, #8] - 8002e18: 2b00 cmp r3, #0 - 8002e1a: d111 bne.n 8002e40 - 8002e1c: 68fb ldr r3, [r7, #12] - 8002e1e: 1e58 subs r0, r3, #1 - 8002e20: 687b ldr r3, [r7, #4] - 8002e22: 6859 ldr r1, [r3, #4] - 8002e24: 460b mov r3, r1 - 8002e26: 005b lsls r3, r3, #1 - 8002e28: 440b add r3, r1 - 8002e2a: fbb0 f3f3 udiv r3, r0, r3 - 8002e2e: 3301 adds r3, #1 - 8002e30: f3c3 030b ubfx r3, r3, #0, #12 - 8002e34: 2b00 cmp r3, #0 - 8002e36: bf0c ite eq - 8002e38: 2301 moveq r3, #1 - 8002e3a: 2300 movne r3, #0 - 8002e3c: b2db uxtb r3, r3 - 8002e3e: e012 b.n 8002e66 - 8002e40: 68fb ldr r3, [r7, #12] - 8002e42: 1e58 subs r0, r3, #1 - 8002e44: 687b ldr r3, [r7, #4] - 8002e46: 6859 ldr r1, [r3, #4] - 8002e48: 460b mov r3, r1 - 8002e4a: 009b lsls r3, r3, #2 - 8002e4c: 440b add r3, r1 - 8002e4e: 0099 lsls r1, r3, #2 - 8002e50: 440b add r3, r1 - 8002e52: fbb0 f3f3 udiv r3, r0, r3 - 8002e56: 3301 adds r3, #1 - 8002e58: f3c3 030b ubfx r3, r3, #0, #12 - 8002e5c: 2b00 cmp r3, #0 - 8002e5e: bf0c ite eq - 8002e60: 2301 moveq r3, #1 - 8002e62: 2300 movne r3, #0 - 8002e64: b2db uxtb r3, r3 - 8002e66: 2b00 cmp r3, #0 - 8002e68: d001 beq.n 8002e6e - 8002e6a: 2301 movs r3, #1 - 8002e6c: e022 b.n 8002eb4 - 8002e6e: 687b ldr r3, [r7, #4] - 8002e70: 689b ldr r3, [r3, #8] - 8002e72: 2b00 cmp r3, #0 - 8002e74: d10e bne.n 8002e94 - 8002e76: 68fb ldr r3, [r7, #12] - 8002e78: 1e58 subs r0, r3, #1 - 8002e7a: 687b ldr r3, [r7, #4] - 8002e7c: 6859 ldr r1, [r3, #4] - 8002e7e: 460b mov r3, r1 - 8002e80: 005b lsls r3, r3, #1 - 8002e82: 440b add r3, r1 - 8002e84: fbb0 f3f3 udiv r3, r0, r3 - 8002e88: 3301 adds r3, #1 - 8002e8a: f3c3 030b ubfx r3, r3, #0, #12 - 8002e8e: f443 4300 orr.w r3, r3, #32768 @ 0x8000 - 8002e92: e00f b.n 8002eb4 - 8002e94: 68fb ldr r3, [r7, #12] - 8002e96: 1e58 subs r0, r3, #1 - 8002e98: 687b ldr r3, [r7, #4] - 8002e9a: 6859 ldr r1, [r3, #4] - 8002e9c: 460b mov r3, r1 - 8002e9e: 009b lsls r3, r3, #2 - 8002ea0: 440b add r3, r1 - 8002ea2: 0099 lsls r1, r3, #2 - 8002ea4: 440b add r3, r1 - 8002ea6: fbb0 f3f3 udiv r3, r0, r3 - 8002eaa: 3301 adds r3, #1 - 8002eac: f3c3 030b ubfx r3, r3, #0, #12 - 8002eb0: f443 4340 orr.w r3, r3, #49152 @ 0xc000 - 8002eb4: 6879 ldr r1, [r7, #4] - 8002eb6: 6809 ldr r1, [r1, #0] - 8002eb8: 4313 orrs r3, r2 - 8002eba: 61cb str r3, [r1, #28] + 8002e80: 687b ldr r3, [r7, #4] + 8002e82: 681b ldr r3, [r3, #0] + 8002e84: 69db ldr r3, [r3, #28] + 8002e86: f423 424f bic.w r2, r3, #52992 @ 0xcf00 + 8002e8a: f022 02ff bic.w r2, r2, #255 @ 0xff + 8002e8e: 687b ldr r3, [r7, #4] + 8002e90: 685b ldr r3, [r3, #4] + 8002e92: 495c ldr r1, [pc, #368] @ (8003004 ) + 8002e94: 428b cmp r3, r1 + 8002e96: d819 bhi.n 8002ecc + 8002e98: 68fb ldr r3, [r7, #12] + 8002e9a: 1e59 subs r1, r3, #1 + 8002e9c: 687b ldr r3, [r7, #4] + 8002e9e: 685b ldr r3, [r3, #4] + 8002ea0: 005b lsls r3, r3, #1 + 8002ea2: fbb1 f3f3 udiv r3, r1, r3 + 8002ea6: 1c59 adds r1, r3, #1 + 8002ea8: f640 73fc movw r3, #4092 @ 0xffc + 8002eac: 400b ands r3, r1 + 8002eae: 2b00 cmp r3, #0 + 8002eb0: d00a beq.n 8002ec8 + 8002eb2: 68fb ldr r3, [r7, #12] + 8002eb4: 1e59 subs r1, r3, #1 + 8002eb6: 687b ldr r3, [r7, #4] + 8002eb8: 685b ldr r3, [r3, #4] + 8002eba: 005b lsls r3, r3, #1 + 8002ebc: fbb1 f3f3 udiv r3, r1, r3 + 8002ec0: 3301 adds r3, #1 + 8002ec2: f3c3 030b ubfx r3, r3, #0, #12 + 8002ec6: e051 b.n 8002f6c + 8002ec8: 2304 movs r3, #4 + 8002eca: e04f b.n 8002f6c + 8002ecc: 687b ldr r3, [r7, #4] + 8002ece: 689b ldr r3, [r3, #8] + 8002ed0: 2b00 cmp r3, #0 + 8002ed2: d111 bne.n 8002ef8 + 8002ed4: 68fb ldr r3, [r7, #12] + 8002ed6: 1e58 subs r0, r3, #1 + 8002ed8: 687b ldr r3, [r7, #4] + 8002eda: 6859 ldr r1, [r3, #4] + 8002edc: 460b mov r3, r1 + 8002ede: 005b lsls r3, r3, #1 + 8002ee0: 440b add r3, r1 + 8002ee2: fbb0 f3f3 udiv r3, r0, r3 + 8002ee6: 3301 adds r3, #1 + 8002ee8: f3c3 030b ubfx r3, r3, #0, #12 + 8002eec: 2b00 cmp r3, #0 + 8002eee: bf0c ite eq + 8002ef0: 2301 moveq r3, #1 + 8002ef2: 2300 movne r3, #0 + 8002ef4: b2db uxtb r3, r3 + 8002ef6: e012 b.n 8002f1e + 8002ef8: 68fb ldr r3, [r7, #12] + 8002efa: 1e58 subs r0, r3, #1 + 8002efc: 687b ldr r3, [r7, #4] + 8002efe: 6859 ldr r1, [r3, #4] + 8002f00: 460b mov r3, r1 + 8002f02: 009b lsls r3, r3, #2 + 8002f04: 440b add r3, r1 + 8002f06: 0099 lsls r1, r3, #2 + 8002f08: 440b add r3, r1 + 8002f0a: fbb0 f3f3 udiv r3, r0, r3 + 8002f0e: 3301 adds r3, #1 + 8002f10: f3c3 030b ubfx r3, r3, #0, #12 + 8002f14: 2b00 cmp r3, #0 + 8002f16: bf0c ite eq + 8002f18: 2301 moveq r3, #1 + 8002f1a: 2300 movne r3, #0 + 8002f1c: b2db uxtb r3, r3 + 8002f1e: 2b00 cmp r3, #0 + 8002f20: d001 beq.n 8002f26 + 8002f22: 2301 movs r3, #1 + 8002f24: e022 b.n 8002f6c + 8002f26: 687b ldr r3, [r7, #4] + 8002f28: 689b ldr r3, [r3, #8] + 8002f2a: 2b00 cmp r3, #0 + 8002f2c: d10e bne.n 8002f4c + 8002f2e: 68fb ldr r3, [r7, #12] + 8002f30: 1e58 subs r0, r3, #1 + 8002f32: 687b ldr r3, [r7, #4] + 8002f34: 6859 ldr r1, [r3, #4] + 8002f36: 460b mov r3, r1 + 8002f38: 005b lsls r3, r3, #1 + 8002f3a: 440b add r3, r1 + 8002f3c: fbb0 f3f3 udiv r3, r0, r3 + 8002f40: 3301 adds r3, #1 + 8002f42: f3c3 030b ubfx r3, r3, #0, #12 + 8002f46: f443 4300 orr.w r3, r3, #32768 @ 0x8000 + 8002f4a: e00f b.n 8002f6c + 8002f4c: 68fb ldr r3, [r7, #12] + 8002f4e: 1e58 subs r0, r3, #1 + 8002f50: 687b ldr r3, [r7, #4] + 8002f52: 6859 ldr r1, [r3, #4] + 8002f54: 460b mov r3, r1 + 8002f56: 009b lsls r3, r3, #2 + 8002f58: 440b add r3, r1 + 8002f5a: 0099 lsls r1, r3, #2 + 8002f5c: 440b add r3, r1 + 8002f5e: fbb0 f3f3 udiv r3, r0, r3 + 8002f62: 3301 adds r3, #1 + 8002f64: f3c3 030b ubfx r3, r3, #0, #12 + 8002f68: f443 4340 orr.w r3, r3, #49152 @ 0xc000 + 8002f6c: 6879 ldr r1, [r7, #4] + 8002f6e: 6809 ldr r1, [r1, #0] + 8002f70: 4313 orrs r3, r2 + 8002f72: 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)); - 8002ebc: 687b ldr r3, [r7, #4] - 8002ebe: 681b ldr r3, [r3, #0] - 8002ec0: 681b ldr r3, [r3, #0] - 8002ec2: f023 01c0 bic.w r1, r3, #192 @ 0xc0 - 8002ec6: 687b ldr r3, [r7, #4] - 8002ec8: 69da ldr r2, [r3, #28] - 8002eca: 687b ldr r3, [r7, #4] - 8002ecc: 6a1b ldr r3, [r3, #32] - 8002ece: 431a orrs r2, r3 - 8002ed0: 687b ldr r3, [r7, #4] - 8002ed2: 681b ldr r3, [r3, #0] - 8002ed4: 430a orrs r2, r1 - 8002ed6: 601a str r2, [r3, #0] + 8002f74: 687b ldr r3, [r7, #4] + 8002f76: 681b ldr r3, [r3, #0] + 8002f78: 681b ldr r3, [r3, #0] + 8002f7a: f023 01c0 bic.w r1, r3, #192 @ 0xc0 + 8002f7e: 687b ldr r3, [r7, #4] + 8002f80: 69da ldr r2, [r3, #28] + 8002f82: 687b ldr r3, [r7, #4] + 8002f84: 6a1b ldr r3, [r3, #32] + 8002f86: 431a orrs r2, r3 + 8002f88: 687b ldr r3, [r7, #4] + 8002f8a: 681b ldr r3, [r3, #0] + 8002f8c: 430a orrs r2, r1 + 8002f8e: 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)); - 8002ed8: 687b ldr r3, [r7, #4] - 8002eda: 681b ldr r3, [r3, #0] - 8002edc: 689b ldr r3, [r3, #8] - 8002ede: f423 4303 bic.w r3, r3, #33536 @ 0x8300 - 8002ee2: f023 03ff bic.w r3, r3, #255 @ 0xff - 8002ee6: 687a ldr r2, [r7, #4] - 8002ee8: 6911 ldr r1, [r2, #16] - 8002eea: 687a ldr r2, [r7, #4] - 8002eec: 68d2 ldr r2, [r2, #12] - 8002eee: 4311 orrs r1, r2 - 8002ef0: 687a ldr r2, [r7, #4] - 8002ef2: 6812 ldr r2, [r2, #0] - 8002ef4: 430b orrs r3, r1 - 8002ef6: 6093 str r3, [r2, #8] + 8002f90: 687b ldr r3, [r7, #4] + 8002f92: 681b ldr r3, [r3, #0] + 8002f94: 689b ldr r3, [r3, #8] + 8002f96: f423 4303 bic.w r3, r3, #33536 @ 0x8300 + 8002f9a: f023 03ff bic.w r3, r3, #255 @ 0xff + 8002f9e: 687a ldr r2, [r7, #4] + 8002fa0: 6911 ldr r1, [r2, #16] + 8002fa2: 687a ldr r2, [r7, #4] + 8002fa4: 68d2 ldr r2, [r2, #12] + 8002fa6: 4311 orrs r1, r2 + 8002fa8: 687a ldr r2, [r7, #4] + 8002faa: 6812 ldr r2, [r2, #0] + 8002fac: 430b orrs r3, r1 + 8002fae: 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)); - 8002ef8: 687b ldr r3, [r7, #4] - 8002efa: 681b ldr r3, [r3, #0] - 8002efc: 68db ldr r3, [r3, #12] - 8002efe: f023 01ff bic.w r1, r3, #255 @ 0xff - 8002f02: 687b ldr r3, [r7, #4] - 8002f04: 695a ldr r2, [r3, #20] - 8002f06: 687b ldr r3, [r7, #4] - 8002f08: 699b ldr r3, [r3, #24] - 8002f0a: 431a orrs r2, r3 - 8002f0c: 687b ldr r3, [r7, #4] - 8002f0e: 681b ldr r3, [r3, #0] - 8002f10: 430a orrs r2, r1 - 8002f12: 60da str r2, [r3, #12] + 8002fb0: 687b ldr r3, [r7, #4] + 8002fb2: 681b ldr r3, [r3, #0] + 8002fb4: 68db ldr r3, [r3, #12] + 8002fb6: f023 01ff bic.w r1, r3, #255 @ 0xff + 8002fba: 687b ldr r3, [r7, #4] + 8002fbc: 695a ldr r2, [r3, #20] + 8002fbe: 687b ldr r3, [r7, #4] + 8002fc0: 699b ldr r3, [r3, #24] + 8002fc2: 431a orrs r2, r3 + 8002fc4: 687b ldr r3, [r7, #4] + 8002fc6: 681b ldr r3, [r3, #0] + 8002fc8: 430a orrs r2, r1 + 8002fca: 60da str r2, [r3, #12] /* Enable the selected I2C peripheral */ __HAL_I2C_ENABLE(hi2c); - 8002f14: 687b ldr r3, [r7, #4] - 8002f16: 681b ldr r3, [r3, #0] - 8002f18: 681a ldr r2, [r3, #0] - 8002f1a: 687b ldr r3, [r7, #4] - 8002f1c: 681b ldr r3, [r3, #0] - 8002f1e: f042 0201 orr.w r2, r2, #1 - 8002f22: 601a str r2, [r3, #0] + 8002fcc: 687b ldr r3, [r7, #4] + 8002fce: 681b ldr r3, [r3, #0] + 8002fd0: 681a ldr r2, [r3, #0] + 8002fd2: 687b ldr r3, [r7, #4] + 8002fd4: 681b ldr r3, [r3, #0] + 8002fd6: f042 0201 orr.w r2, r2, #1 + 8002fda: 601a str r2, [r3, #0] hi2c->ErrorCode = HAL_I2C_ERROR_NONE; - 8002f24: 687b ldr r3, [r7, #4] - 8002f26: 2200 movs r2, #0 - 8002f28: 641a str r2, [r3, #64] @ 0x40 + 8002fdc: 687b ldr r3, [r7, #4] + 8002fde: 2200 movs r2, #0 + 8002fe0: 641a str r2, [r3, #64] @ 0x40 hi2c->State = HAL_I2C_STATE_READY; - 8002f2a: 687b ldr r3, [r7, #4] - 8002f2c: 2220 movs r2, #32 - 8002f2e: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8002fe2: 687b ldr r3, [r7, #4] + 8002fe4: 2220 movs r2, #32 + 8002fe6: f883 203d strb.w r2, [r3, #61] @ 0x3d hi2c->PreviousState = I2C_STATE_NONE; - 8002f32: 687b ldr r3, [r7, #4] - 8002f34: 2200 movs r2, #0 - 8002f36: 631a str r2, [r3, #48] @ 0x30 + 8002fea: 687b ldr r3, [r7, #4] + 8002fec: 2200 movs r2, #0 + 8002fee: 631a str r2, [r3, #48] @ 0x30 hi2c->Mode = HAL_I2C_MODE_NONE; - 8002f38: 687b ldr r3, [r7, #4] - 8002f3a: 2200 movs r2, #0 - 8002f3c: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8002ff0: 687b ldr r3, [r7, #4] + 8002ff2: 2200 movs r2, #0 + 8002ff4: f883 203e strb.w r2, [r3, #62] @ 0x3e return HAL_OK; - 8002f40: 2300 movs r3, #0 + 8002ff8: 2300 movs r3, #0 } - 8002f42: 4618 mov r0, r3 - 8002f44: 3710 adds r7, #16 - 8002f46: 46bd mov sp, r7 - 8002f48: bd80 pop {r7, pc} - 8002f4a: bf00 nop - 8002f4c: 000186a0 .word 0x000186a0 - 8002f50: 001e847f .word 0x001e847f - 8002f54: 003d08ff .word 0x003d08ff - 8002f58: 431bde83 .word 0x431bde83 - 8002f5c: 10624dd3 .word 0x10624dd3 + 8002ffa: 4618 mov r0, r3 + 8002ffc: 3710 adds r7, #16 + 8002ffe: 46bd mov sp, r7 + 8003000: bd80 pop {r7, pc} + 8003002: bf00 nop + 8003004: 000186a0 .word 0x000186a0 + 8003008: 001e847f .word 0x001e847f + 800300c: 003d08ff .word 0x003d08ff + 8003010: 431bde83 .word 0x431bde83 + 8003014: 10624dd3 .word 0x10624dd3 -08002f60 : +08003018 : * 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) { - 8002f60: b580 push {r7, lr} - 8002f62: b086 sub sp, #24 - 8002f64: af02 add r7, sp, #8 - 8002f66: 6078 str r0, [r7, #4] + 8003018: b580 push {r7, lr} + 800301a: b086 sub sp, #24 + 800301c: af02 add r7, sp, #8 + 800301e: 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) - 8002f68: 687b ldr r3, [r7, #4] - 8002f6a: 2b00 cmp r3, #0 - 8002f6c: d101 bne.n 8002f72 + 8003020: 687b ldr r3, [r7, #4] + 8003022: 2b00 cmp r3, #0 + 8003024: d101 bne.n 800302a { return HAL_ERROR; - 8002f6e: 2301 movs r3, #1 - 8002f70: e108 b.n 8003184 + 8003026: 2301 movs r3, #1 + 8003028: e108 b.n 800323c /* Check the parameters */ assert_param(IS_PCD_ALL_INSTANCE(hpcd->Instance)); #if defined (USB_OTG_FS) USBx = hpcd->Instance; - 8002f72: 687b ldr r3, [r7, #4] - 8002f74: 681b ldr r3, [r3, #0] - 8002f76: 60bb str r3, [r7, #8] + 800302a: 687b ldr r3, [r7, #4] + 800302c: 681b ldr r3, [r3, #0] + 800302e: 60bb str r3, [r7, #8] #endif /* defined (USB_OTG_FS) */ if (hpcd->State == HAL_PCD_STATE_RESET) - 8002f78: 687b ldr r3, [r7, #4] - 8002f7a: f893 3495 ldrb.w r3, [r3, #1173] @ 0x495 - 8002f7e: b2db uxtb r3, r3 - 8002f80: 2b00 cmp r3, #0 - 8002f82: d106 bne.n 8002f92 + 8003030: 687b ldr r3, [r7, #4] + 8003032: f893 3495 ldrb.w r3, [r3, #1173] @ 0x495 + 8003036: b2db uxtb r3, r3 + 8003038: 2b00 cmp r3, #0 + 800303a: d106 bne.n 800304a { /* Allocate lock resource and initialize it */ hpcd->Lock = HAL_UNLOCKED; - 8002f84: 687b ldr r3, [r7, #4] - 8002f86: 2200 movs r2, #0 - 8002f88: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 800303c: 687b ldr r3, [r7, #4] + 800303e: 2200 movs r2, #0 + 8003040: 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); - 8002f8c: 6878 ldr r0, [r7, #4] - 8002f8e: f008 f855 bl 800b03c + 8003044: 6878 ldr r0, [r7, #4] + 8003046: f008 f855 bl 800b0f4 #endif /* (USE_HAL_PCD_REGISTER_CALLBACKS) */ } hpcd->State = HAL_PCD_STATE_BUSY; - 8002f92: 687b ldr r3, [r7, #4] - 8002f94: 2203 movs r2, #3 - 8002f96: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 800304a: 687b ldr r3, [r7, #4] + 800304c: 2203 movs r2, #3 + 800304e: f883 2495 strb.w r2, [r3, #1173] @ 0x495 #if defined (USB_OTG_FS) /* Disable DMA mode for FS instance */ if (USBx == USB_OTG_FS) - 8002f9a: 68bb ldr r3, [r7, #8] - 8002f9c: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 - 8002fa0: d102 bne.n 8002fa8 + 8003052: 68bb ldr r3, [r7, #8] + 8003054: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 + 8003058: d102 bne.n 8003060 { hpcd->Init.dma_enable = 0U; - 8002fa2: 687b ldr r3, [r7, #4] - 8002fa4: 2200 movs r2, #0 - 8002fa6: 719a strb r2, [r3, #6] + 800305a: 687b ldr r3, [r7, #4] + 800305c: 2200 movs r2, #0 + 800305e: 719a strb r2, [r3, #6] } #endif /* defined (USB_OTG_FS) */ /* Disable the Interrupts */ __HAL_PCD_DISABLE(hpcd); - 8002fa8: 687b ldr r3, [r7, #4] - 8002faa: 681b ldr r3, [r3, #0] - 8002fac: 4618 mov r0, r3 - 8002fae: f004 ff4a bl 8007e46 + 8003060: 687b ldr r3, [r7, #4] + 8003062: 681b ldr r3, [r3, #0] + 8003064: 4618 mov r0, r3 + 8003066: f004 ff4a bl 8007efe /*Init the Core (common init.) */ if (USB_CoreInit(hpcd->Instance, hpcd->Init) != HAL_OK) - 8002fb2: 687b ldr r3, [r7, #4] - 8002fb4: 6818 ldr r0, [r3, #0] - 8002fb6: 687b ldr r3, [r7, #4] - 8002fb8: 7c1a ldrb r2, [r3, #16] - 8002fba: f88d 2000 strb.w r2, [sp] - 8002fbe: 3304 adds r3, #4 - 8002fc0: cb0e ldmia r3, {r1, r2, r3} - 8002fc2: f004 fe29 bl 8007c18 - 8002fc6: 4603 mov r3, r0 - 8002fc8: 2b00 cmp r3, #0 - 8002fca: d005 beq.n 8002fd8 + 800306a: 687b ldr r3, [r7, #4] + 800306c: 6818 ldr r0, [r3, #0] + 800306e: 687b ldr r3, [r7, #4] + 8003070: 7c1a ldrb r2, [r3, #16] + 8003072: f88d 2000 strb.w r2, [sp] + 8003076: 3304 adds r3, #4 + 8003078: cb0e ldmia r3, {r1, r2, r3} + 800307a: f004 fe29 bl 8007cd0 + 800307e: 4603 mov r3, r0 + 8003080: 2b00 cmp r3, #0 + 8003082: d005 beq.n 8003090 { hpcd->State = HAL_PCD_STATE_ERROR; - 8002fcc: 687b ldr r3, [r7, #4] - 8002fce: 2202 movs r2, #2 - 8002fd0: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 8003084: 687b ldr r3, [r7, #4] + 8003086: 2202 movs r2, #2 + 8003088: f883 2495 strb.w r2, [r3, #1173] @ 0x495 return HAL_ERROR; - 8002fd4: 2301 movs r3, #1 - 8002fd6: e0d5 b.n 8003184 + 800308c: 2301 movs r3, #1 + 800308e: e0d5 b.n 800323c } /* Force Device Mode */ if (USB_SetCurrentMode(hpcd->Instance, USB_DEVICE_MODE) != HAL_OK) - 8002fd8: 687b ldr r3, [r7, #4] - 8002fda: 681b ldr r3, [r3, #0] - 8002fdc: 2100 movs r1, #0 - 8002fde: 4618 mov r0, r3 - 8002fe0: f004 ff42 bl 8007e68 - 8002fe4: 4603 mov r3, r0 - 8002fe6: 2b00 cmp r3, #0 - 8002fe8: d005 beq.n 8002ff6 + 8003090: 687b ldr r3, [r7, #4] + 8003092: 681b ldr r3, [r3, #0] + 8003094: 2100 movs r1, #0 + 8003096: 4618 mov r0, r3 + 8003098: f004 ff42 bl 8007f20 + 800309c: 4603 mov r3, r0 + 800309e: 2b00 cmp r3, #0 + 80030a0: d005 beq.n 80030ae { hpcd->State = HAL_PCD_STATE_ERROR; - 8002fea: 687b ldr r3, [r7, #4] - 8002fec: 2202 movs r2, #2 - 8002fee: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 80030a2: 687b ldr r3, [r7, #4] + 80030a4: 2202 movs r2, #2 + 80030a6: f883 2495 strb.w r2, [r3, #1173] @ 0x495 return HAL_ERROR; - 8002ff2: 2301 movs r3, #1 - 8002ff4: e0c6 b.n 8003184 + 80030aa: 2301 movs r3, #1 + 80030ac: e0c6 b.n 800323c } /* Init endpoints structures */ for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 8002ff6: 2300 movs r3, #0 - 8002ff8: 73fb strb r3, [r7, #15] - 8002ffa: e04a b.n 8003092 + 80030ae: 2300 movs r3, #0 + 80030b0: 73fb strb r3, [r7, #15] + 80030b2: e04a b.n 800314a { /* Init ep structure */ hpcd->IN_ep[i].is_in = 1U; - 8002ffc: 7bfa ldrb r2, [r7, #15] - 8002ffe: 6879 ldr r1, [r7, #4] - 8003000: 4613 mov r3, r2 - 8003002: 00db lsls r3, r3, #3 - 8003004: 4413 add r3, r2 - 8003006: 009b lsls r3, r3, #2 - 8003008: 440b add r3, r1 - 800300a: 3315 adds r3, #21 - 800300c: 2201 movs r2, #1 - 800300e: 701a strb r2, [r3, #0] + 80030b4: 7bfa ldrb r2, [r7, #15] + 80030b6: 6879 ldr r1, [r7, #4] + 80030b8: 4613 mov r3, r2 + 80030ba: 00db lsls r3, r3, #3 + 80030bc: 4413 add r3, r2 + 80030be: 009b lsls r3, r3, #2 + 80030c0: 440b add r3, r1 + 80030c2: 3315 adds r3, #21 + 80030c4: 2201 movs r2, #1 + 80030c6: 701a strb r2, [r3, #0] hpcd->IN_ep[i].num = i; - 8003010: 7bfa ldrb r2, [r7, #15] - 8003012: 6879 ldr r1, [r7, #4] - 8003014: 4613 mov r3, r2 - 8003016: 00db lsls r3, r3, #3 - 8003018: 4413 add r3, r2 - 800301a: 009b lsls r3, r3, #2 - 800301c: 440b add r3, r1 - 800301e: 3314 adds r3, #20 - 8003020: 7bfa ldrb r2, [r7, #15] - 8003022: 701a strb r2, [r3, #0] + 80030c8: 7bfa ldrb r2, [r7, #15] + 80030ca: 6879 ldr r1, [r7, #4] + 80030cc: 4613 mov r3, r2 + 80030ce: 00db lsls r3, r3, #3 + 80030d0: 4413 add r3, r2 + 80030d2: 009b lsls r3, r3, #2 + 80030d4: 440b add r3, r1 + 80030d6: 3314 adds r3, #20 + 80030d8: 7bfa ldrb r2, [r7, #15] + 80030da: 701a strb r2, [r3, #0] hpcd->IN_ep[i].tx_fifo_num = i; - 8003024: 7bfa ldrb r2, [r7, #15] - 8003026: 7bfb ldrb r3, [r7, #15] - 8003028: b298 uxth r0, r3 - 800302a: 6879 ldr r1, [r7, #4] - 800302c: 4613 mov r3, r2 - 800302e: 00db lsls r3, r3, #3 - 8003030: 4413 add r3, r2 - 8003032: 009b lsls r3, r3, #2 - 8003034: 440b add r3, r1 - 8003036: 332e adds r3, #46 @ 0x2e - 8003038: 4602 mov r2, r0 - 800303a: 801a strh r2, [r3, #0] + 80030dc: 7bfa ldrb r2, [r7, #15] + 80030de: 7bfb ldrb r3, [r7, #15] + 80030e0: b298 uxth r0, r3 + 80030e2: 6879 ldr r1, [r7, #4] + 80030e4: 4613 mov r3, r2 + 80030e6: 00db lsls r3, r3, #3 + 80030e8: 4413 add r3, r2 + 80030ea: 009b lsls r3, r3, #2 + 80030ec: 440b add r3, r1 + 80030ee: 332e adds r3, #46 @ 0x2e + 80030f0: 4602 mov r2, r0 + 80030f2: 801a strh r2, [r3, #0] /* Control until ep is activated */ hpcd->IN_ep[i].type = EP_TYPE_CTRL; - 800303c: 7bfa ldrb r2, [r7, #15] - 800303e: 6879 ldr r1, [r7, #4] - 8003040: 4613 mov r3, r2 - 8003042: 00db lsls r3, r3, #3 - 8003044: 4413 add r3, r2 - 8003046: 009b lsls r3, r3, #2 - 8003048: 440b add r3, r1 - 800304a: 3318 adds r3, #24 - 800304c: 2200 movs r2, #0 - 800304e: 701a strb r2, [r3, #0] + 80030f4: 7bfa ldrb r2, [r7, #15] + 80030f6: 6879 ldr r1, [r7, #4] + 80030f8: 4613 mov r3, r2 + 80030fa: 00db lsls r3, r3, #3 + 80030fc: 4413 add r3, r2 + 80030fe: 009b lsls r3, r3, #2 + 8003100: 440b add r3, r1 + 8003102: 3318 adds r3, #24 + 8003104: 2200 movs r2, #0 + 8003106: 701a strb r2, [r3, #0] hpcd->IN_ep[i].maxpacket = 0U; - 8003050: 7bfa ldrb r2, [r7, #15] - 8003052: 6879 ldr r1, [r7, #4] - 8003054: 4613 mov r3, r2 - 8003056: 00db lsls r3, r3, #3 - 8003058: 4413 add r3, r2 - 800305a: 009b lsls r3, r3, #2 - 800305c: 440b add r3, r1 - 800305e: 331c adds r3, #28 - 8003060: 2200 movs r2, #0 - 8003062: 601a str r2, [r3, #0] + 8003108: 7bfa ldrb r2, [r7, #15] + 800310a: 6879 ldr r1, [r7, #4] + 800310c: 4613 mov r3, r2 + 800310e: 00db lsls r3, r3, #3 + 8003110: 4413 add r3, r2 + 8003112: 009b lsls r3, r3, #2 + 8003114: 440b add r3, r1 + 8003116: 331c adds r3, #28 + 8003118: 2200 movs r2, #0 + 800311a: 601a str r2, [r3, #0] hpcd->IN_ep[i].xfer_buff = 0U; - 8003064: 7bfa ldrb r2, [r7, #15] - 8003066: 6879 ldr r1, [r7, #4] - 8003068: 4613 mov r3, r2 - 800306a: 00db lsls r3, r3, #3 - 800306c: 4413 add r3, r2 - 800306e: 009b lsls r3, r3, #2 - 8003070: 440b add r3, r1 - 8003072: 3320 adds r3, #32 - 8003074: 2200 movs r2, #0 - 8003076: 601a str r2, [r3, #0] + 800311c: 7bfa ldrb r2, [r7, #15] + 800311e: 6879 ldr r1, [r7, #4] + 8003120: 4613 mov r3, r2 + 8003122: 00db lsls r3, r3, #3 + 8003124: 4413 add r3, r2 + 8003126: 009b lsls r3, r3, #2 + 8003128: 440b add r3, r1 + 800312a: 3320 adds r3, #32 + 800312c: 2200 movs r2, #0 + 800312e: 601a str r2, [r3, #0] hpcd->IN_ep[i].xfer_len = 0U; - 8003078: 7bfa ldrb r2, [r7, #15] - 800307a: 6879 ldr r1, [r7, #4] - 800307c: 4613 mov r3, r2 - 800307e: 00db lsls r3, r3, #3 - 8003080: 4413 add r3, r2 - 8003082: 009b lsls r3, r3, #2 - 8003084: 440b add r3, r1 - 8003086: 3324 adds r3, #36 @ 0x24 - 8003088: 2200 movs r2, #0 - 800308a: 601a str r2, [r3, #0] + 8003130: 7bfa ldrb r2, [r7, #15] + 8003132: 6879 ldr r1, [r7, #4] + 8003134: 4613 mov r3, r2 + 8003136: 00db lsls r3, r3, #3 + 8003138: 4413 add r3, r2 + 800313a: 009b lsls r3, r3, #2 + 800313c: 440b add r3, r1 + 800313e: 3324 adds r3, #36 @ 0x24 + 8003140: 2200 movs r2, #0 + 8003142: 601a str r2, [r3, #0] for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 800308c: 7bfb ldrb r3, [r7, #15] - 800308e: 3301 adds r3, #1 - 8003090: 73fb strb r3, [r7, #15] - 8003092: 687b ldr r3, [r7, #4] - 8003094: 791b ldrb r3, [r3, #4] - 8003096: 7bfa ldrb r2, [r7, #15] - 8003098: 429a cmp r2, r3 - 800309a: d3af bcc.n 8002ffc + 8003144: 7bfb ldrb r3, [r7, #15] + 8003146: 3301 adds r3, #1 + 8003148: 73fb strb r3, [r7, #15] + 800314a: 687b ldr r3, [r7, #4] + 800314c: 791b ldrb r3, [r3, #4] + 800314e: 7bfa ldrb r2, [r7, #15] + 8003150: 429a cmp r2, r3 + 8003152: d3af bcc.n 80030b4 } for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 800309c: 2300 movs r3, #0 - 800309e: 73fb strb r3, [r7, #15] - 80030a0: e044 b.n 800312c + 8003154: 2300 movs r3, #0 + 8003156: 73fb strb r3, [r7, #15] + 8003158: e044 b.n 80031e4 { hpcd->OUT_ep[i].is_in = 0U; - 80030a2: 7bfa ldrb r2, [r7, #15] - 80030a4: 6879 ldr r1, [r7, #4] - 80030a6: 4613 mov r3, r2 - 80030a8: 00db lsls r3, r3, #3 - 80030aa: 4413 add r3, r2 - 80030ac: 009b lsls r3, r3, #2 - 80030ae: 440b add r3, r1 - 80030b0: f203 2355 addw r3, r3, #597 @ 0x255 - 80030b4: 2200 movs r2, #0 - 80030b6: 701a strb r2, [r3, #0] + 800315a: 7bfa ldrb r2, [r7, #15] + 800315c: 6879 ldr r1, [r7, #4] + 800315e: 4613 mov r3, r2 + 8003160: 00db lsls r3, r3, #3 + 8003162: 4413 add r3, r2 + 8003164: 009b lsls r3, r3, #2 + 8003166: 440b add r3, r1 + 8003168: f203 2355 addw r3, r3, #597 @ 0x255 + 800316c: 2200 movs r2, #0 + 800316e: 701a strb r2, [r3, #0] hpcd->OUT_ep[i].num = i; - 80030b8: 7bfa ldrb r2, [r7, #15] - 80030ba: 6879 ldr r1, [r7, #4] - 80030bc: 4613 mov r3, r2 - 80030be: 00db lsls r3, r3, #3 - 80030c0: 4413 add r3, r2 - 80030c2: 009b lsls r3, r3, #2 - 80030c4: 440b add r3, r1 - 80030c6: f503 7315 add.w r3, r3, #596 @ 0x254 - 80030ca: 7bfa ldrb r2, [r7, #15] - 80030cc: 701a strb r2, [r3, #0] + 8003170: 7bfa ldrb r2, [r7, #15] + 8003172: 6879 ldr r1, [r7, #4] + 8003174: 4613 mov r3, r2 + 8003176: 00db lsls r3, r3, #3 + 8003178: 4413 add r3, r2 + 800317a: 009b lsls r3, r3, #2 + 800317c: 440b add r3, r1 + 800317e: f503 7315 add.w r3, r3, #596 @ 0x254 + 8003182: 7bfa ldrb r2, [r7, #15] + 8003184: 701a strb r2, [r3, #0] /* Control until ep is activated */ hpcd->OUT_ep[i].type = EP_TYPE_CTRL; - 80030ce: 7bfa ldrb r2, [r7, #15] - 80030d0: 6879 ldr r1, [r7, #4] - 80030d2: 4613 mov r3, r2 - 80030d4: 00db lsls r3, r3, #3 - 80030d6: 4413 add r3, r2 - 80030d8: 009b lsls r3, r3, #2 - 80030da: 440b add r3, r1 - 80030dc: f503 7316 add.w r3, r3, #600 @ 0x258 - 80030e0: 2200 movs r2, #0 - 80030e2: 701a strb r2, [r3, #0] + 8003186: 7bfa ldrb r2, [r7, #15] + 8003188: 6879 ldr r1, [r7, #4] + 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: f503 7316 add.w r3, r3, #600 @ 0x258 + 8003198: 2200 movs r2, #0 + 800319a: 701a strb r2, [r3, #0] hpcd->OUT_ep[i].maxpacket = 0U; - 80030e4: 7bfa ldrb r2, [r7, #15] - 80030e6: 6879 ldr r1, [r7, #4] - 80030e8: 4613 mov r3, r2 - 80030ea: 00db lsls r3, r3, #3 - 80030ec: 4413 add r3, r2 - 80030ee: 009b lsls r3, r3, #2 - 80030f0: 440b add r3, r1 - 80030f2: f503 7317 add.w r3, r3, #604 @ 0x25c - 80030f6: 2200 movs r2, #0 - 80030f8: 601a str r2, [r3, #0] + 800319c: 7bfa ldrb r2, [r7, #15] + 800319e: 6879 ldr r1, [r7, #4] + 80031a0: 4613 mov r3, r2 + 80031a2: 00db lsls r3, r3, #3 + 80031a4: 4413 add r3, r2 + 80031a6: 009b lsls r3, r3, #2 + 80031a8: 440b add r3, r1 + 80031aa: f503 7317 add.w r3, r3, #604 @ 0x25c + 80031ae: 2200 movs r2, #0 + 80031b0: 601a str r2, [r3, #0] hpcd->OUT_ep[i].xfer_buff = 0U; - 80030fa: 7bfa ldrb r2, [r7, #15] - 80030fc: 6879 ldr r1, [r7, #4] - 80030fe: 4613 mov r3, r2 - 8003100: 00db lsls r3, r3, #3 - 8003102: 4413 add r3, r2 - 8003104: 009b lsls r3, r3, #2 - 8003106: 440b add r3, r1 - 8003108: f503 7318 add.w r3, r3, #608 @ 0x260 - 800310c: 2200 movs r2, #0 - 800310e: 601a str r2, [r3, #0] + 80031b2: 7bfa ldrb r2, [r7, #15] + 80031b4: 6879 ldr r1, [r7, #4] + 80031b6: 4613 mov r3, r2 + 80031b8: 00db lsls r3, r3, #3 + 80031ba: 4413 add r3, r2 + 80031bc: 009b lsls r3, r3, #2 + 80031be: 440b add r3, r1 + 80031c0: f503 7318 add.w r3, r3, #608 @ 0x260 + 80031c4: 2200 movs r2, #0 + 80031c6: 601a str r2, [r3, #0] hpcd->OUT_ep[i].xfer_len = 0U; - 8003110: 7bfa ldrb r2, [r7, #15] - 8003112: 6879 ldr r1, [r7, #4] - 8003114: 4613 mov r3, r2 - 8003116: 00db lsls r3, r3, #3 - 8003118: 4413 add r3, r2 - 800311a: 009b lsls r3, r3, #2 - 800311c: 440b add r3, r1 - 800311e: f503 7319 add.w r3, r3, #612 @ 0x264 - 8003122: 2200 movs r2, #0 - 8003124: 601a str r2, [r3, #0] + 80031c8: 7bfa ldrb r2, [r7, #15] + 80031ca: 6879 ldr r1, [r7, #4] + 80031cc: 4613 mov r3, r2 + 80031ce: 00db lsls r3, r3, #3 + 80031d0: 4413 add r3, r2 + 80031d2: 009b lsls r3, r3, #2 + 80031d4: 440b add r3, r1 + 80031d6: f503 7319 add.w r3, r3, #612 @ 0x264 + 80031da: 2200 movs r2, #0 + 80031dc: 601a str r2, [r3, #0] for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 8003126: 7bfb ldrb r3, [r7, #15] - 8003128: 3301 adds r3, #1 - 800312a: 73fb strb r3, [r7, #15] - 800312c: 687b ldr r3, [r7, #4] - 800312e: 791b ldrb r3, [r3, #4] - 8003130: 7bfa ldrb r2, [r7, #15] - 8003132: 429a cmp r2, r3 - 8003134: d3b5 bcc.n 80030a2 + 80031de: 7bfb ldrb r3, [r7, #15] + 80031e0: 3301 adds r3, #1 + 80031e2: 73fb strb r3, [r7, #15] + 80031e4: 687b ldr r3, [r7, #4] + 80031e6: 791b ldrb r3, [r3, #4] + 80031e8: 7bfa ldrb r2, [r7, #15] + 80031ea: 429a cmp r2, r3 + 80031ec: d3b5 bcc.n 800315a } /* Init Device */ if (USB_DevInit(hpcd->Instance, hpcd->Init) != HAL_OK) - 8003136: 687b ldr r3, [r7, #4] - 8003138: 6818 ldr r0, [r3, #0] - 800313a: 687b ldr r3, [r7, #4] - 800313c: 7c1a ldrb r2, [r3, #16] - 800313e: f88d 2000 strb.w r2, [sp] - 8003142: 3304 adds r3, #4 - 8003144: cb0e ldmia r3, {r1, r2, r3} - 8003146: f004 fedb bl 8007f00 - 800314a: 4603 mov r3, r0 - 800314c: 2b00 cmp r3, #0 - 800314e: d005 beq.n 800315c + 80031ee: 687b ldr r3, [r7, #4] + 80031f0: 6818 ldr r0, [r3, #0] + 80031f2: 687b ldr r3, [r7, #4] + 80031f4: 7c1a ldrb r2, [r3, #16] + 80031f6: f88d 2000 strb.w r2, [sp] + 80031fa: 3304 adds r3, #4 + 80031fc: cb0e ldmia r3, {r1, r2, r3} + 80031fe: f004 fedb bl 8007fb8 + 8003202: 4603 mov r3, r0 + 8003204: 2b00 cmp r3, #0 + 8003206: d005 beq.n 8003214 { hpcd->State = HAL_PCD_STATE_ERROR; - 8003150: 687b ldr r3, [r7, #4] - 8003152: 2202 movs r2, #2 - 8003154: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 8003208: 687b ldr r3, [r7, #4] + 800320a: 2202 movs r2, #2 + 800320c: f883 2495 strb.w r2, [r3, #1173] @ 0x495 return HAL_ERROR; - 8003158: 2301 movs r3, #1 - 800315a: e013 b.n 8003184 + 8003210: 2301 movs r3, #1 + 8003212: e013 b.n 800323c } hpcd->USB_Address = 0U; - 800315c: 687b ldr r3, [r7, #4] - 800315e: 2200 movs r2, #0 - 8003160: 745a strb r2, [r3, #17] + 8003214: 687b ldr r3, [r7, #4] + 8003216: 2200 movs r2, #0 + 8003218: 745a strb r2, [r3, #17] hpcd->State = HAL_PCD_STATE_READY; - 8003162: 687b ldr r3, [r7, #4] - 8003164: 2201 movs r2, #1 - 8003166: f883 2495 strb.w r2, [r3, #1173] @ 0x495 + 800321a: 687b ldr r3, [r7, #4] + 800321c: 2201 movs r2, #1 + 800321e: 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) - 800316a: 687b ldr r3, [r7, #4] - 800316c: 7b1b ldrb r3, [r3, #12] - 800316e: 2b01 cmp r3, #1 - 8003170: d102 bne.n 8003178 + 8003222: 687b ldr r3, [r7, #4] + 8003224: 7b1b ldrb r3, [r3, #12] + 8003226: 2b01 cmp r3, #1 + 8003228: d102 bne.n 8003230 { (void)HAL_PCDEx_ActivateLPM(hpcd); - 8003172: 6878 ldr r0, [r7, #4] - 8003174: f001 f956 bl 8004424 + 800322a: 6878 ldr r0, [r7, #4] + 800322c: f001 f956 bl 80044dc } #endif /* defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx) */ (void)USB_DevDisconnect(hpcd->Instance); - 8003178: 687b ldr r3, [r7, #4] - 800317a: 681b ldr r3, [r3, #0] - 800317c: 4618 mov r0, r3 - 800317e: f005 ff18 bl 8008fb2 + 8003230: 687b ldr r3, [r7, #4] + 8003232: 681b ldr r3, [r3, #0] + 8003234: 4618 mov r0, r3 + 8003236: f005 ff18 bl 800906a return HAL_OK; - 8003182: 2300 movs r3, #0 + 800323a: 2300 movs r3, #0 } - 8003184: 4618 mov r0, r3 - 8003186: 3710 adds r7, #16 - 8003188: 46bd mov sp, r7 - 800318a: bd80 pop {r7, pc} + 800323c: 4618 mov r0, r3 + 800323e: 3710 adds r7, #16 + 8003240: 46bd mov sp, r7 + 8003242: bd80 pop {r7, pc} -0800318c : +08003244 : * @brief Start the USB device * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_Start(PCD_HandleTypeDef *hpcd) { - 800318c: b580 push {r7, lr} - 800318e: b084 sub sp, #16 - 8003190: af00 add r7, sp, #0 - 8003192: 6078 str r0, [r7, #4] + 8003244: b580 push {r7, lr} + 8003246: b084 sub sp, #16 + 8003248: af00 add r7, sp, #0 + 800324a: 6078 str r0, [r7, #4] USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 8003194: 687b ldr r3, [r7, #4] - 8003196: 681b ldr r3, [r3, #0] - 8003198: 60fb str r3, [r7, #12] + 800324c: 687b ldr r3, [r7, #4] + 800324e: 681b ldr r3, [r3, #0] + 8003250: 60fb str r3, [r7, #12] __HAL_LOCK(hpcd); - 800319a: 687b ldr r3, [r7, #4] - 800319c: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 80031a0: 2b01 cmp r3, #1 - 80031a2: d101 bne.n 80031a8 - 80031a4: 2302 movs r3, #2 - 80031a6: e022 b.n 80031ee - 80031a8: 687b ldr r3, [r7, #4] - 80031aa: 2201 movs r2, #1 - 80031ac: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003252: 687b ldr r3, [r7, #4] + 8003254: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8003258: 2b01 cmp r3, #1 + 800325a: d101 bne.n 8003260 + 800325c: 2302 movs r3, #2 + 800325e: e022 b.n 80032a6 + 8003260: 687b ldr r3, [r7, #4] + 8003262: 2201 movs r2, #1 + 8003264: f883 2494 strb.w r2, [r3, #1172] @ 0x494 if (((USBx->GUSBCFG & USB_OTG_GUSBCFG_PHYSEL) != 0U) && - 80031b0: 68fb ldr r3, [r7, #12] - 80031b2: 68db ldr r3, [r3, #12] - 80031b4: f003 0340 and.w r3, r3, #64 @ 0x40 - 80031b8: 2b00 cmp r3, #0 - 80031ba: d009 beq.n 80031d0 + 8003268: 68fb ldr r3, [r7, #12] + 800326a: 68db ldr r3, [r3, #12] + 800326c: f003 0340 and.w r3, r3, #64 @ 0x40 + 8003270: 2b00 cmp r3, #0 + 8003272: d009 beq.n 8003288 (hpcd->Init.battery_charging_enable == 1U)) - 80031bc: 687b ldr r3, [r7, #4] - 80031be: 7b5b ldrb r3, [r3, #13] + 8003274: 687b ldr r3, [r7, #4] + 8003276: 7b5b ldrb r3, [r3, #13] if (((USBx->GUSBCFG & USB_OTG_GUSBCFG_PHYSEL) != 0U) && - 80031c0: 2b01 cmp r3, #1 - 80031c2: d105 bne.n 80031d0 + 8003278: 2b01 cmp r3, #1 + 800327a: d105 bne.n 8003288 { /* Enable USB Transceiver */ USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN; - 80031c4: 68fb ldr r3, [r7, #12] - 80031c6: 6b9b ldr r3, [r3, #56] @ 0x38 - 80031c8: f443 3280 orr.w r2, r3, #65536 @ 0x10000 - 80031cc: 68fb ldr r3, [r7, #12] - 80031ce: 639a str r2, [r3, #56] @ 0x38 + 800327c: 68fb ldr r3, [r7, #12] + 800327e: 6b9b ldr r3, [r3, #56] @ 0x38 + 8003280: f443 3280 orr.w r2, r3, #65536 @ 0x10000 + 8003284: 68fb ldr r3, [r7, #12] + 8003286: 639a str r2, [r3, #56] @ 0x38 } __HAL_PCD_ENABLE(hpcd); - 80031d0: 687b ldr r3, [r7, #4] - 80031d2: 681b ldr r3, [r3, #0] - 80031d4: 4618 mov r0, r3 - 80031d6: f004 fe25 bl 8007e24 + 8003288: 687b ldr r3, [r7, #4] + 800328a: 681b ldr r3, [r3, #0] + 800328c: 4618 mov r0, r3 + 800328e: f004 fe25 bl 8007edc (void)USB_DevConnect(hpcd->Instance); - 80031da: 687b ldr r3, [r7, #4] - 80031dc: 681b ldr r3, [r3, #0] - 80031de: 4618 mov r0, r3 - 80031e0: f005 fec6 bl 8008f70 + 8003292: 687b ldr r3, [r7, #4] + 8003294: 681b ldr r3, [r3, #0] + 8003296: 4618 mov r0, r3 + 8003298: f005 fec6 bl 8009028 __HAL_UNLOCK(hpcd); - 80031e4: 687b ldr r3, [r7, #4] - 80031e6: 2200 movs r2, #0 - 80031e8: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 800329c: 687b ldr r3, [r7, #4] + 800329e: 2200 movs r2, #0 + 80032a0: f883 2494 strb.w r2, [r3, #1172] @ 0x494 return HAL_OK; - 80031ec: 2300 movs r3, #0 + 80032a4: 2300 movs r3, #0 } - 80031ee: 4618 mov r0, r3 - 80031f0: 3710 adds r7, #16 - 80031f2: 46bd mov sp, r7 - 80031f4: bd80 pop {r7, pc} + 80032a6: 4618 mov r0, r3 + 80032a8: 3710 adds r7, #16 + 80032aa: 46bd mov sp, r7 + 80032ac: bd80 pop {r7, pc} -080031f6 : +080032ae : * @brief Handles PCD interrupt request. * @param hpcd PCD handle * @retval HAL status */ void HAL_PCD_IRQHandler(PCD_HandleTypeDef *hpcd) { - 80031f6: b590 push {r4, r7, lr} - 80031f8: b08d sub sp, #52 @ 0x34 - 80031fa: af00 add r7, sp, #0 - 80031fc: 6078 str r0, [r7, #4] + 80032ae: b590 push {r4, r7, lr} + 80032b0: b08d sub sp, #52 @ 0x34 + 80032b2: af00 add r7, sp, #0 + 80032b4: 6078 str r0, [r7, #4] USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 80031fe: 687b ldr r3, [r7, #4] - 8003200: 681b ldr r3, [r3, #0] - 8003202: 623b str r3, [r7, #32] + 80032b6: 687b ldr r3, [r7, #4] + 80032b8: 681b ldr r3, [r3, #0] + 80032ba: 623b str r3, [r7, #32] uint32_t USBx_BASE = (uint32_t)USBx; - 8003204: 6a3b ldr r3, [r7, #32] - 8003206: 61fb str r3, [r7, #28] + 80032bc: 6a3b ldr r3, [r7, #32] + 80032be: 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) - 8003208: 687b ldr r3, [r7, #4] - 800320a: 681b ldr r3, [r3, #0] - 800320c: 4618 mov r0, r3 - 800320e: f005 ff84 bl 800911a - 8003212: 4603 mov r3, r0 - 8003214: 2b00 cmp r3, #0 - 8003216: f040 84b9 bne.w 8003b8c + 80032c0: 687b ldr r3, [r7, #4] + 80032c2: 681b ldr r3, [r3, #0] + 80032c4: 4618 mov r0, r3 + 80032c6: f005 ff84 bl 80091d2 + 80032ca: 4603 mov r3, r0 + 80032cc: 2b00 cmp r3, #0 + 80032ce: f040 84b9 bne.w 8003c44 { /* avoid spurious interrupt */ if (__HAL_PCD_IS_INVALID_INTERRUPT(hpcd)) - 800321a: 687b ldr r3, [r7, #4] - 800321c: 681b ldr r3, [r3, #0] - 800321e: 4618 mov r0, r3 - 8003220: f005 fee8 bl 8008ff4 - 8003224: 4603 mov r3, r0 - 8003226: 2b00 cmp r3, #0 - 8003228: f000 84af beq.w 8003b8a + 80032d2: 687b ldr r3, [r7, #4] + 80032d4: 681b ldr r3, [r3, #0] + 80032d6: 4618 mov r0, r3 + 80032d8: f005 fee8 bl 80090ac + 80032dc: 4603 mov r3, r0 + 80032de: 2b00 cmp r3, #0 + 80032e0: f000 84af beq.w 8003c42 { return; } /* store current frame number */ hpcd->FrameNumber = (USBx_DEVICE->DSTS & USB_OTG_DSTS_FNSOF_Msk) >> USB_OTG_DSTS_FNSOF_Pos; - 800322c: 69fb ldr r3, [r7, #28] - 800322e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003232: 689b ldr r3, [r3, #8] - 8003234: 0a1b lsrs r3, r3, #8 - 8003236: f3c3 020d ubfx r2, r3, #0, #14 - 800323a: 687b ldr r3, [r7, #4] - 800323c: f8c3 24d4 str.w r2, [r3, #1236] @ 0x4d4 + 80032e4: 69fb ldr r3, [r7, #28] + 80032e6: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80032ea: 689b ldr r3, [r3, #8] + 80032ec: 0a1b lsrs r3, r3, #8 + 80032ee: f3c3 020d ubfx r2, r3, #0, #14 + 80032f2: 687b ldr r3, [r7, #4] + 80032f4: f8c3 24d4 str.w r2, [r3, #1236] @ 0x4d4 if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_MMIS)) - 8003240: 687b ldr r3, [r7, #4] - 8003242: 681b ldr r3, [r3, #0] - 8003244: 4618 mov r0, r3 - 8003246: f005 fed5 bl 8008ff4 - 800324a: 4603 mov r3, r0 - 800324c: f003 0302 and.w r3, r3, #2 - 8003250: 2b02 cmp r3, #2 - 8003252: d107 bne.n 8003264 + 80032f8: 687b ldr r3, [r7, #4] + 80032fa: 681b ldr r3, [r3, #0] + 80032fc: 4618 mov r0, r3 + 80032fe: f005 fed5 bl 80090ac + 8003302: 4603 mov r3, r0 + 8003304: f003 0302 and.w r3, r3, #2 + 8003308: 2b02 cmp r3, #2 + 800330a: d107 bne.n 800331c { /* incorrect mode, acknowledge the interrupt */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_MMIS); - 8003254: 687b ldr r3, [r7, #4] - 8003256: 681b ldr r3, [r3, #0] - 8003258: 695a ldr r2, [r3, #20] - 800325a: 687b ldr r3, [r7, #4] - 800325c: 681b ldr r3, [r3, #0] - 800325e: f002 0202 and.w r2, r2, #2 - 8003262: 615a str r2, [r3, #20] + 800330c: 687b ldr r3, [r7, #4] + 800330e: 681b ldr r3, [r3, #0] + 8003310: 695a ldr r2, [r3, #20] + 8003312: 687b ldr r3, [r7, #4] + 8003314: 681b ldr r3, [r3, #0] + 8003316: f002 0202 and.w r2, r2, #2 + 800331a: 615a str r2, [r3, #20] } /* Handle RxQLevel Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_RXFLVL)) - 8003264: 687b ldr r3, [r7, #4] - 8003266: 681b ldr r3, [r3, #0] - 8003268: 4618 mov r0, r3 - 800326a: f005 fec3 bl 8008ff4 - 800326e: 4603 mov r3, r0 - 8003270: f003 0310 and.w r3, r3, #16 - 8003274: 2b10 cmp r3, #16 - 8003276: d161 bne.n 800333c + 800331c: 687b ldr r3, [r7, #4] + 800331e: 681b ldr r3, [r3, #0] + 8003320: 4618 mov r0, r3 + 8003322: f005 fec3 bl 80090ac + 8003326: 4603 mov r3, r0 + 8003328: f003 0310 and.w r3, r3, #16 + 800332c: 2b10 cmp r3, #16 + 800332e: d161 bne.n 80033f4 { USB_MASK_INTERRUPT(hpcd->Instance, USB_OTG_GINTSTS_RXFLVL); - 8003278: 687b ldr r3, [r7, #4] - 800327a: 681b ldr r3, [r3, #0] - 800327c: 699a ldr r2, [r3, #24] - 800327e: 687b ldr r3, [r7, #4] - 8003280: 681b ldr r3, [r3, #0] - 8003282: f022 0210 bic.w r2, r2, #16 - 8003286: 619a str r2, [r3, #24] + 8003330: 687b ldr r3, [r7, #4] + 8003332: 681b ldr r3, [r3, #0] + 8003334: 699a ldr r2, [r3, #24] + 8003336: 687b ldr r3, [r7, #4] + 8003338: 681b ldr r3, [r3, #0] + 800333a: f022 0210 bic.w r2, r2, #16 + 800333e: 619a str r2, [r3, #24] RegVal = USBx->GRXSTSP; - 8003288: 6a3b ldr r3, [r7, #32] - 800328a: 6a1b ldr r3, [r3, #32] - 800328c: 61bb str r3, [r7, #24] + 8003340: 6a3b ldr r3, [r7, #32] + 8003342: 6a1b ldr r3, [r3, #32] + 8003344: 61bb str r3, [r7, #24] ep = &hpcd->OUT_ep[RegVal & USB_OTG_GRXSTSP_EPNUM]; - 800328e: 69bb ldr r3, [r7, #24] - 8003290: f003 020f and.w r2, r3, #15 - 8003294: 4613 mov r3, r2 - 8003296: 00db lsls r3, r3, #3 - 8003298: 4413 add r3, r2 - 800329a: 009b lsls r3, r3, #2 - 800329c: f503 7314 add.w r3, r3, #592 @ 0x250 - 80032a0: 687a ldr r2, [r7, #4] - 80032a2: 4413 add r3, r2 - 80032a4: 3304 adds r3, #4 - 80032a6: 617b str r3, [r7, #20] + 8003346: 69bb ldr r3, [r7, #24] + 8003348: f003 020f and.w r2, r3, #15 + 800334c: 4613 mov r3, r2 + 800334e: 00db lsls r3, r3, #3 + 8003350: 4413 add r3, r2 + 8003352: 009b lsls r3, r3, #2 + 8003354: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003358: 687a ldr r2, [r7, #4] + 800335a: 4413 add r3, r2 + 800335c: 3304 adds r3, #4 + 800335e: 617b str r3, [r7, #20] if (((RegVal & USB_OTG_GRXSTSP_PKTSTS) >> 17) == STS_DATA_UPDT) - 80032a8: 69bb ldr r3, [r7, #24] - 80032aa: f403 13f0 and.w r3, r3, #1966080 @ 0x1e0000 - 80032ae: f5b3 2f80 cmp.w r3, #262144 @ 0x40000 - 80032b2: d124 bne.n 80032fe + 8003360: 69bb ldr r3, [r7, #24] + 8003362: f403 13f0 and.w r3, r3, #1966080 @ 0x1e0000 + 8003366: f5b3 2f80 cmp.w r3, #262144 @ 0x40000 + 800336a: d124 bne.n 80033b6 { if ((RegVal & USB_OTG_GRXSTSP_BCNT) != 0U) - 80032b4: 69ba ldr r2, [r7, #24] - 80032b6: f647 73f0 movw r3, #32752 @ 0x7ff0 - 80032ba: 4013 ands r3, r2 - 80032bc: 2b00 cmp r3, #0 - 80032be: d035 beq.n 800332c + 800336c: 69ba ldr r2, [r7, #24] + 800336e: f647 73f0 movw r3, #32752 @ 0x7ff0 + 8003372: 4013 ands r3, r2 + 8003374: 2b00 cmp r3, #0 + 8003376: d035 beq.n 80033e4 { (void)USB_ReadPacket(USBx, ep->xfer_buff, - 80032c0: 697b ldr r3, [r7, #20] - 80032c2: 68d9 ldr r1, [r3, #12] + 8003378: 697b ldr r3, [r7, #20] + 800337a: 68d9 ldr r1, [r3, #12] (uint16_t)((RegVal & USB_OTG_GRXSTSP_BCNT) >> 4)); - 80032c4: 69bb ldr r3, [r7, #24] - 80032c6: 091b lsrs r3, r3, #4 - 80032c8: b29b uxth r3, r3 + 800337c: 69bb ldr r3, [r7, #24] + 800337e: 091b lsrs r3, r3, #4 + 8003380: b29b uxth r3, r3 (void)USB_ReadPacket(USBx, ep->xfer_buff, - 80032ca: f3c3 030a ubfx r3, r3, #0, #11 - 80032ce: b29b uxth r3, r3 - 80032d0: 461a mov r2, r3 - 80032d2: 6a38 ldr r0, [r7, #32] - 80032d4: f005 fcfa bl 8008ccc + 8003382: f3c3 030a ubfx r3, r3, #0, #11 + 8003386: b29b uxth r3, r3 + 8003388: 461a mov r2, r3 + 800338a: 6a38 ldr r0, [r7, #32] + 800338c: f005 fcfa bl 8008d84 ep->xfer_buff += (RegVal & USB_OTG_GRXSTSP_BCNT) >> 4; - 80032d8: 697b ldr r3, [r7, #20] - 80032da: 68da ldr r2, [r3, #12] - 80032dc: 69bb ldr r3, [r7, #24] - 80032de: 091b lsrs r3, r3, #4 - 80032e0: f3c3 030a ubfx r3, r3, #0, #11 - 80032e4: 441a add r2, r3 - 80032e6: 697b ldr r3, [r7, #20] - 80032e8: 60da str r2, [r3, #12] + 8003390: 697b ldr r3, [r7, #20] + 8003392: 68da ldr r2, [r3, #12] + 8003394: 69bb ldr r3, [r7, #24] + 8003396: 091b lsrs r3, r3, #4 + 8003398: f3c3 030a ubfx r3, r3, #0, #11 + 800339c: 441a add r2, r3 + 800339e: 697b ldr r3, [r7, #20] + 80033a0: 60da str r2, [r3, #12] ep->xfer_count += (RegVal & USB_OTG_GRXSTSP_BCNT) >> 4; - 80032ea: 697b ldr r3, [r7, #20] - 80032ec: 695a ldr r2, [r3, #20] - 80032ee: 69bb ldr r3, [r7, #24] - 80032f0: 091b lsrs r3, r3, #4 - 80032f2: f3c3 030a ubfx r3, r3, #0, #11 - 80032f6: 441a add r2, r3 - 80032f8: 697b ldr r3, [r7, #20] - 80032fa: 615a str r2, [r3, #20] - 80032fc: e016 b.n 800332c + 80033a2: 697b ldr r3, [r7, #20] + 80033a4: 695a ldr r2, [r3, #20] + 80033a6: 69bb ldr r3, [r7, #24] + 80033a8: 091b lsrs r3, r3, #4 + 80033aa: f3c3 030a ubfx r3, r3, #0, #11 + 80033ae: 441a add r2, r3 + 80033b0: 697b ldr r3, [r7, #20] + 80033b2: 615a str r2, [r3, #20] + 80033b4: e016 b.n 80033e4 } } else if (((RegVal & USB_OTG_GRXSTSP_PKTSTS) >> 17) == STS_SETUP_UPDT) - 80032fe: 69bb ldr r3, [r7, #24] - 8003300: f403 13f0 and.w r3, r3, #1966080 @ 0x1e0000 - 8003304: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000 - 8003308: d110 bne.n 800332c + 80033b6: 69bb ldr r3, [r7, #24] + 80033b8: f403 13f0 and.w r3, r3, #1966080 @ 0x1e0000 + 80033bc: f5b3 2f40 cmp.w r3, #786432 @ 0xc0000 + 80033c0: d110 bne.n 80033e4 { (void)USB_ReadPacket(USBx, (uint8_t *)hpcd->Setup, 8U); - 800330a: 687b ldr r3, [r7, #4] - 800330c: f203 439c addw r3, r3, #1180 @ 0x49c - 8003310: 2208 movs r2, #8 - 8003312: 4619 mov r1, r3 - 8003314: 6a38 ldr r0, [r7, #32] - 8003316: f005 fcd9 bl 8008ccc + 80033c2: 687b ldr r3, [r7, #4] + 80033c4: f203 439c addw r3, r3, #1180 @ 0x49c + 80033c8: 2208 movs r2, #8 + 80033ca: 4619 mov r1, r3 + 80033cc: 6a38 ldr r0, [r7, #32] + 80033ce: f005 fcd9 bl 8008d84 ep->xfer_count += (RegVal & USB_OTG_GRXSTSP_BCNT) >> 4; - 800331a: 697b ldr r3, [r7, #20] - 800331c: 695a ldr r2, [r3, #20] - 800331e: 69bb ldr r3, [r7, #24] - 8003320: 091b lsrs r3, r3, #4 - 8003322: f3c3 030a ubfx r3, r3, #0, #11 - 8003326: 441a add r2, r3 - 8003328: 697b ldr r3, [r7, #20] - 800332a: 615a str r2, [r3, #20] + 80033d2: 697b ldr r3, [r7, #20] + 80033d4: 695a ldr r2, [r3, #20] + 80033d6: 69bb ldr r3, [r7, #24] + 80033d8: 091b lsrs r3, r3, #4 + 80033da: f3c3 030a ubfx r3, r3, #0, #11 + 80033de: 441a add r2, r3 + 80033e0: 697b ldr r3, [r7, #20] + 80033e2: 615a str r2, [r3, #20] else { /* ... */ } USB_UNMASK_INTERRUPT(hpcd->Instance, USB_OTG_GINTSTS_RXFLVL); - 800332c: 687b ldr r3, [r7, #4] - 800332e: 681b ldr r3, [r3, #0] - 8003330: 699a ldr r2, [r3, #24] - 8003332: 687b ldr r3, [r7, #4] - 8003334: 681b ldr r3, [r3, #0] - 8003336: f042 0210 orr.w r2, r2, #16 - 800333a: 619a str r2, [r3, #24] + 80033e4: 687b ldr r3, [r7, #4] + 80033e6: 681b ldr r3, [r3, #0] + 80033e8: 699a ldr r2, [r3, #24] + 80033ea: 687b ldr r3, [r7, #4] + 80033ec: 681b ldr r3, [r3, #0] + 80033ee: f042 0210 orr.w r2, r2, #16 + 80033f2: 619a str r2, [r3, #24] } if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_OEPINT)) - 800333c: 687b ldr r3, [r7, #4] - 800333e: 681b ldr r3, [r3, #0] - 8003340: 4618 mov r0, r3 - 8003342: f005 fe57 bl 8008ff4 - 8003346: 4603 mov r3, r0 - 8003348: f403 2300 and.w r3, r3, #524288 @ 0x80000 - 800334c: f5b3 2f00 cmp.w r3, #524288 @ 0x80000 - 8003350: f040 80a7 bne.w 80034a2 + 80033f4: 687b ldr r3, [r7, #4] + 80033f6: 681b ldr r3, [r3, #0] + 80033f8: 4618 mov r0, r3 + 80033fa: f005 fe57 bl 80090ac + 80033fe: 4603 mov r3, r0 + 8003400: f403 2300 and.w r3, r3, #524288 @ 0x80000 + 8003404: f5b3 2f00 cmp.w r3, #524288 @ 0x80000 + 8003408: f040 80a7 bne.w 800355a { epnum = 0U; - 8003354: 2300 movs r3, #0 - 8003356: 627b str r3, [r7, #36] @ 0x24 + 800340c: 2300 movs r3, #0 + 800340e: 627b str r3, [r7, #36] @ 0x24 /* Read in the device interrupt bits */ ep_intr = USB_ReadDevAllOutEpInterrupt(hpcd->Instance); - 8003358: 687b ldr r3, [r7, #4] - 800335a: 681b ldr r3, [r3, #0] - 800335c: 4618 mov r0, r3 - 800335e: f005 fe5c bl 800901a - 8003362: 62b8 str r0, [r7, #40] @ 0x28 + 8003410: 687b ldr r3, [r7, #4] + 8003412: 681b ldr r3, [r3, #0] + 8003414: 4618 mov r0, r3 + 8003416: f005 fe5c bl 80090d2 + 800341a: 62b8 str r0, [r7, #40] @ 0x28 while (ep_intr != 0U) - 8003364: e099 b.n 800349a + 800341c: e099 b.n 8003552 { if ((ep_intr & 0x1U) != 0U) - 8003366: 6abb ldr r3, [r7, #40] @ 0x28 - 8003368: f003 0301 and.w r3, r3, #1 - 800336c: 2b00 cmp r3, #0 - 800336e: f000 808e beq.w 800348e + 800341e: 6abb ldr r3, [r7, #40] @ 0x28 + 8003420: f003 0301 and.w r3, r3, #1 + 8003424: 2b00 cmp r3, #0 + 8003426: f000 808e beq.w 8003546 { epint = USB_ReadDevOutEPInterrupt(hpcd->Instance, (uint8_t)epnum); - 8003372: 687b ldr r3, [r7, #4] - 8003374: 681b ldr r3, [r3, #0] - 8003376: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003378: b2d2 uxtb r2, r2 - 800337a: 4611 mov r1, r2 - 800337c: 4618 mov r0, r3 - 800337e: f005 fe80 bl 8009082 - 8003382: 6138 str r0, [r7, #16] + 800342a: 687b ldr r3, [r7, #4] + 800342c: 681b ldr r3, [r3, #0] + 800342e: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003430: b2d2 uxtb r2, r2 + 8003432: 4611 mov r1, r2 + 8003434: 4618 mov r0, r3 + 8003436: f005 fe80 bl 800913a + 800343a: 6138 str r0, [r7, #16] if ((epint & USB_OTG_DOEPINT_XFRC) == USB_OTG_DOEPINT_XFRC) - 8003384: 693b ldr r3, [r7, #16] - 8003386: f003 0301 and.w r3, r3, #1 - 800338a: 2b00 cmp r3, #0 - 800338c: d00c beq.n 80033a8 + 800343c: 693b ldr r3, [r7, #16] + 800343e: f003 0301 and.w r3, r3, #1 + 8003442: 2b00 cmp r3, #0 + 8003444: d00c beq.n 8003460 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_XFRC); - 800338e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003390: 015a lsls r2, r3, #5 - 8003392: 69fb ldr r3, [r7, #28] - 8003394: 4413 add r3, r2 - 8003396: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800339a: 461a mov r2, r3 - 800339c: 2301 movs r3, #1 - 800339e: 6093 str r3, [r2, #8] + 8003446: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003448: 015a lsls r2, r3, #5 + 800344a: 69fb ldr r3, [r7, #28] + 800344c: 4413 add r3, r2 + 800344e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003452: 461a mov r2, r3 + 8003454: 2301 movs r3, #1 + 8003456: 6093 str r3, [r2, #8] (void)PCD_EP_OutXfrComplete_int(hpcd, epnum); - 80033a0: 6a79 ldr r1, [r7, #36] @ 0x24 - 80033a2: 6878 ldr r0, [r7, #4] - 80033a4: f000 feb8 bl 8004118 + 8003458: 6a79 ldr r1, [r7, #36] @ 0x24 + 800345a: 6878 ldr r0, [r7, #4] + 800345c: f000 feb8 bl 80041d0 } if ((epint & USB_OTG_DOEPINT_STUP) == USB_OTG_DOEPINT_STUP) - 80033a8: 693b ldr r3, [r7, #16] - 80033aa: f003 0308 and.w r3, r3, #8 - 80033ae: 2b00 cmp r3, #0 - 80033b0: d00c beq.n 80033cc + 8003460: 693b ldr r3, [r7, #16] + 8003462: f003 0308 and.w r3, r3, #8 + 8003466: 2b00 cmp r3, #0 + 8003468: d00c beq.n 8003484 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STUP); - 80033b2: 6a7b ldr r3, [r7, #36] @ 0x24 - 80033b4: 015a lsls r2, r3, #5 - 80033b6: 69fb ldr r3, [r7, #28] - 80033b8: 4413 add r3, r2 - 80033ba: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80033be: 461a mov r2, r3 - 80033c0: 2308 movs r3, #8 - 80033c2: 6093 str r3, [r2, #8] + 800346a: 6a7b ldr r3, [r7, #36] @ 0x24 + 800346c: 015a lsls r2, r3, #5 + 800346e: 69fb ldr r3, [r7, #28] + 8003470: 4413 add r3, r2 + 8003472: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003476: 461a mov r2, r3 + 8003478: 2308 movs r3, #8 + 800347a: 6093 str r3, [r2, #8] /* Class B setup phase done for previous decoded setup */ (void)PCD_EP_OutSetupPacket_int(hpcd, epnum); - 80033c4: 6a79 ldr r1, [r7, #36] @ 0x24 - 80033c6: 6878 ldr r0, [r7, #4] - 80033c8: f000 ff8e bl 80042e8 + 800347c: 6a79 ldr r1, [r7, #36] @ 0x24 + 800347e: 6878 ldr r0, [r7, #4] + 8003480: f000 ff8e bl 80043a0 } if ((epint & USB_OTG_DOEPINT_OTEPDIS) == USB_OTG_DOEPINT_OTEPDIS) - 80033cc: 693b ldr r3, [r7, #16] - 80033ce: f003 0310 and.w r3, r3, #16 - 80033d2: 2b00 cmp r3, #0 - 80033d4: d008 beq.n 80033e8 + 8003484: 693b ldr r3, [r7, #16] + 8003486: f003 0310 and.w r3, r3, #16 + 800348a: 2b00 cmp r3, #0 + 800348c: d008 beq.n 80034a0 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPDIS); - 80033d6: 6a7b ldr r3, [r7, #36] @ 0x24 - 80033d8: 015a lsls r2, r3, #5 - 80033da: 69fb ldr r3, [r7, #28] - 80033dc: 4413 add r3, r2 - 80033de: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80033e2: 461a mov r2, r3 - 80033e4: 2310 movs r3, #16 - 80033e6: 6093 str r3, [r2, #8] + 800348e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003490: 015a lsls r2, r3, #5 + 8003492: 69fb ldr r3, [r7, #28] + 8003494: 4413 add r3, r2 + 8003496: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800349a: 461a mov r2, r3 + 800349c: 2310 movs r3, #16 + 800349e: 6093 str r3, [r2, #8] } /* Clear OUT Endpoint disable interrupt */ if ((epint & USB_OTG_DOEPINT_EPDISD) == USB_OTG_DOEPINT_EPDISD) - 80033e8: 693b ldr r3, [r7, #16] - 80033ea: f003 0302 and.w r3, r3, #2 - 80033ee: 2b00 cmp r3, #0 - 80033f0: d030 beq.n 8003454 + 80034a0: 693b ldr r3, [r7, #16] + 80034a2: f003 0302 and.w r3, r3, #2 + 80034a6: 2b00 cmp r3, #0 + 80034a8: d030 beq.n 800350c { if ((USBx->GINTSTS & USB_OTG_GINTSTS_BOUTNAKEFF) == USB_OTG_GINTSTS_BOUTNAKEFF) - 80033f2: 6a3b ldr r3, [r7, #32] - 80033f4: 695b ldr r3, [r3, #20] - 80033f6: f003 0380 and.w r3, r3, #128 @ 0x80 - 80033fa: 2b80 cmp r3, #128 @ 0x80 - 80033fc: d109 bne.n 8003412 + 80034aa: 6a3b ldr r3, [r7, #32] + 80034ac: 695b ldr r3, [r3, #20] + 80034ae: f003 0380 and.w r3, r3, #128 @ 0x80 + 80034b2: 2b80 cmp r3, #128 @ 0x80 + 80034b4: d109 bne.n 80034ca { USBx_DEVICE->DCTL |= USB_OTG_DCTL_CGONAK; - 80033fe: 69fb ldr r3, [r7, #28] - 8003400: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003404: 685b ldr r3, [r3, #4] - 8003406: 69fa ldr r2, [r7, #28] - 8003408: f502 6200 add.w r2, r2, #2048 @ 0x800 - 800340c: f443 6380 orr.w r3, r3, #1024 @ 0x400 - 8003410: 6053 str r3, [r2, #4] + 80034b6: 69fb ldr r3, [r7, #28] + 80034b8: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80034bc: 685b ldr r3, [r3, #4] + 80034be: 69fa ldr r2, [r7, #28] + 80034c0: f502 6200 add.w r2, r2, #2048 @ 0x800 + 80034c4: f443 6380 orr.w r3, r3, #1024 @ 0x400 + 80034c8: 6053 str r3, [r2, #4] } ep = &hpcd->OUT_ep[epnum]; - 8003412: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003414: 4613 mov r3, r2 - 8003416: 00db lsls r3, r3, #3 - 8003418: 4413 add r3, r2 - 800341a: 009b lsls r3, r3, #2 - 800341c: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003420: 687a ldr r2, [r7, #4] - 8003422: 4413 add r3, r2 - 8003424: 3304 adds r3, #4 - 8003426: 617b str r3, [r7, #20] + 80034ca: 6a7a ldr r2, [r7, #36] @ 0x24 + 80034cc: 4613 mov r3, r2 + 80034ce: 00db lsls r3, r3, #3 + 80034d0: 4413 add r3, r2 + 80034d2: 009b lsls r3, r3, #2 + 80034d4: f503 7314 add.w r3, r3, #592 @ 0x250 + 80034d8: 687a ldr r2, [r7, #4] + 80034da: 4413 add r3, r2 + 80034dc: 3304 adds r3, #4 + 80034de: 617b str r3, [r7, #20] if (ep->is_iso_incomplete == 1U) - 8003428: 697b ldr r3, [r7, #20] - 800342a: 78db ldrb r3, [r3, #3] - 800342c: 2b01 cmp r3, #1 - 800342e: d108 bne.n 8003442 + 80034e0: 697b ldr r3, [r7, #20] + 80034e2: 78db ldrb r3, [r3, #3] + 80034e4: 2b01 cmp r3, #1 + 80034e6: d108 bne.n 80034fa { ep->is_iso_incomplete = 0U; - 8003430: 697b ldr r3, [r7, #20] - 8003432: 2200 movs r2, #0 - 8003434: 70da strb r2, [r3, #3] + 80034e8: 697b ldr r3, [r7, #20] + 80034ea: 2200 movs r2, #0 + 80034ec: 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); - 8003436: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003438: b2db uxtb r3, r3 - 800343a: 4619 mov r1, r3 - 800343c: 6878 ldr r0, [r7, #4] - 800343e: f007 ff19 bl 800b274 + 80034ee: 6a7b ldr r3, [r7, #36] @ 0x24 + 80034f0: b2db uxtb r3, r3 + 80034f2: 4619 mov r1, r3 + 80034f4: 6878 ldr r0, [r7, #4] + 80034f6: f007 ff19 bl 800b32c #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_EPDISD); - 8003442: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003444: 015a lsls r2, r3, #5 - 8003446: 69fb ldr r3, [r7, #28] - 8003448: 4413 add r3, r2 - 800344a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800344e: 461a mov r2, r3 - 8003450: 2302 movs r3, #2 - 8003452: 6093 str r3, [r2, #8] + 80034fa: 6a7b ldr r3, [r7, #36] @ 0x24 + 80034fc: 015a lsls r2, r3, #5 + 80034fe: 69fb ldr r3, [r7, #28] + 8003500: 4413 add r3, r2 + 8003502: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003506: 461a mov r2, r3 + 8003508: 2302 movs r3, #2 + 800350a: 6093 str r3, [r2, #8] } /* Clear Status Phase Received interrupt */ if ((epint & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) - 8003454: 693b ldr r3, [r7, #16] - 8003456: f003 0320 and.w r3, r3, #32 - 800345a: 2b00 cmp r3, #0 - 800345c: d008 beq.n 8003470 + 800350c: 693b ldr r3, [r7, #16] + 800350e: f003 0320 and.w r3, r3, #32 + 8003512: 2b00 cmp r3, #0 + 8003514: d008 beq.n 8003528 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); - 800345e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003460: 015a lsls r2, r3, #5 - 8003462: 69fb ldr r3, [r7, #28] - 8003464: 4413 add r3, r2 - 8003466: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800346a: 461a mov r2, r3 - 800346c: 2320 movs r3, #32 - 800346e: 6093 str r3, [r2, #8] + 8003516: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003518: 015a lsls r2, r3, #5 + 800351a: 69fb ldr r3, [r7, #28] + 800351c: 4413 add r3, r2 + 800351e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003522: 461a mov r2, r3 + 8003524: 2320 movs r3, #32 + 8003526: 6093 str r3, [r2, #8] } /* Clear OUT NAK interrupt */ if ((epint & USB_OTG_DOEPINT_NAK) == USB_OTG_DOEPINT_NAK) - 8003470: 693b ldr r3, [r7, #16] - 8003472: f403 5300 and.w r3, r3, #8192 @ 0x2000 - 8003476: 2b00 cmp r3, #0 - 8003478: d009 beq.n 800348e + 8003528: 693b ldr r3, [r7, #16] + 800352a: f403 5300 and.w r3, r3, #8192 @ 0x2000 + 800352e: 2b00 cmp r3, #0 + 8003530: d009 beq.n 8003546 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_NAK); - 800347a: 6a7b ldr r3, [r7, #36] @ 0x24 - 800347c: 015a lsls r2, r3, #5 - 800347e: 69fb ldr r3, [r7, #28] - 8003480: 4413 add r3, r2 - 8003482: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003486: 461a mov r2, r3 - 8003488: f44f 5300 mov.w r3, #8192 @ 0x2000 - 800348c: 6093 str r3, [r2, #8] + 8003532: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003534: 015a lsls r2, r3, #5 + 8003536: 69fb ldr r3, [r7, #28] + 8003538: 4413 add r3, r2 + 800353a: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800353e: 461a mov r2, r3 + 8003540: f44f 5300 mov.w r3, #8192 @ 0x2000 + 8003544: 6093 str r3, [r2, #8] } } epnum++; - 800348e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003490: 3301 adds r3, #1 - 8003492: 627b str r3, [r7, #36] @ 0x24 + 8003546: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003548: 3301 adds r3, #1 + 800354a: 627b str r3, [r7, #36] @ 0x24 ep_intr >>= 1U; - 8003494: 6abb ldr r3, [r7, #40] @ 0x28 - 8003496: 085b lsrs r3, r3, #1 - 8003498: 62bb str r3, [r7, #40] @ 0x28 + 800354c: 6abb ldr r3, [r7, #40] @ 0x28 + 800354e: 085b lsrs r3, r3, #1 + 8003550: 62bb str r3, [r7, #40] @ 0x28 while (ep_intr != 0U) - 800349a: 6abb ldr r3, [r7, #40] @ 0x28 - 800349c: 2b00 cmp r3, #0 - 800349e: f47f af62 bne.w 8003366 + 8003552: 6abb ldr r3, [r7, #40] @ 0x28 + 8003554: 2b00 cmp r3, #0 + 8003556: f47f af62 bne.w 800341e } } if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_IEPINT)) - 80034a2: 687b ldr r3, [r7, #4] - 80034a4: 681b ldr r3, [r3, #0] - 80034a6: 4618 mov r0, r3 - 80034a8: f005 fda4 bl 8008ff4 - 80034ac: 4603 mov r3, r0 - 80034ae: f403 2380 and.w r3, r3, #262144 @ 0x40000 - 80034b2: f5b3 2f80 cmp.w r3, #262144 @ 0x40000 - 80034b6: f040 80db bne.w 8003670 + 800355a: 687b ldr r3, [r7, #4] + 800355c: 681b ldr r3, [r3, #0] + 800355e: 4618 mov r0, r3 + 8003560: f005 fda4 bl 80090ac + 8003564: 4603 mov r3, r0 + 8003566: f403 2380 and.w r3, r3, #262144 @ 0x40000 + 800356a: f5b3 2f80 cmp.w r3, #262144 @ 0x40000 + 800356e: f040 80db bne.w 8003728 { /* Read in the device interrupt bits */ ep_intr = USB_ReadDevAllInEpInterrupt(hpcd->Instance); - 80034ba: 687b ldr r3, [r7, #4] - 80034bc: 681b ldr r3, [r3, #0] - 80034be: 4618 mov r0, r3 - 80034c0: f005 fdc5 bl 800904e - 80034c4: 62b8 str r0, [r7, #40] @ 0x28 + 8003572: 687b ldr r3, [r7, #4] + 8003574: 681b ldr r3, [r3, #0] + 8003576: 4618 mov r0, r3 + 8003578: f005 fdc5 bl 8009106 + 800357c: 62b8 str r0, [r7, #40] @ 0x28 epnum = 0U; - 80034c6: 2300 movs r3, #0 - 80034c8: 627b str r3, [r7, #36] @ 0x24 + 800357e: 2300 movs r3, #0 + 8003580: 627b str r3, [r7, #36] @ 0x24 while (ep_intr != 0U) - 80034ca: e0cd b.n 8003668 + 8003582: e0cd b.n 8003720 { if ((ep_intr & 0x1U) != 0U) /* In ITR */ - 80034cc: 6abb ldr r3, [r7, #40] @ 0x28 - 80034ce: f003 0301 and.w r3, r3, #1 - 80034d2: 2b00 cmp r3, #0 - 80034d4: f000 80c2 beq.w 800365c + 8003584: 6abb ldr r3, [r7, #40] @ 0x28 + 8003586: f003 0301 and.w r3, r3, #1 + 800358a: 2b00 cmp r3, #0 + 800358c: f000 80c2 beq.w 8003714 { epint = USB_ReadDevInEPInterrupt(hpcd->Instance, (uint8_t)epnum); - 80034d8: 687b ldr r3, [r7, #4] - 80034da: 681b ldr r3, [r3, #0] - 80034dc: 6a7a ldr r2, [r7, #36] @ 0x24 - 80034de: b2d2 uxtb r2, r2 - 80034e0: 4611 mov r1, r2 - 80034e2: 4618 mov r0, r3 - 80034e4: f005 fdeb bl 80090be - 80034e8: 6138 str r0, [r7, #16] + 8003590: 687b ldr r3, [r7, #4] + 8003592: 681b ldr r3, [r3, #0] + 8003594: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003596: b2d2 uxtb r2, r2 + 8003598: 4611 mov r1, r2 + 800359a: 4618 mov r0, r3 + 800359c: f005 fdeb bl 8009176 + 80035a0: 6138 str r0, [r7, #16] if ((epint & USB_OTG_DIEPINT_XFRC) == USB_OTG_DIEPINT_XFRC) - 80034ea: 693b ldr r3, [r7, #16] - 80034ec: f003 0301 and.w r3, r3, #1 - 80034f0: 2b00 cmp r3, #0 - 80034f2: d057 beq.n 80035a4 + 80035a2: 693b ldr r3, [r7, #16] + 80035a4: f003 0301 and.w r3, r3, #1 + 80035a8: 2b00 cmp r3, #0 + 80035aa: d057 beq.n 800365c { fifoemptymsk = (uint32_t)(0x1UL << (epnum & EP_ADDR_MSK)); - 80034f4: 6a7b ldr r3, [r7, #36] @ 0x24 - 80034f6: f003 030f and.w r3, r3, #15 - 80034fa: 2201 movs r2, #1 - 80034fc: fa02 f303 lsl.w r3, r2, r3 - 8003500: 60fb str r3, [r7, #12] + 80035ac: 6a7b ldr r3, [r7, #36] @ 0x24 + 80035ae: f003 030f and.w r3, r3, #15 + 80035b2: 2201 movs r2, #1 + 80035b4: fa02 f303 lsl.w r3, r2, r3 + 80035b8: 60fb str r3, [r7, #12] USBx_DEVICE->DIEPEMPMSK &= ~fifoemptymsk; - 8003502: 69fb ldr r3, [r7, #28] - 8003504: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003508: 6b5a ldr r2, [r3, #52] @ 0x34 - 800350a: 68fb ldr r3, [r7, #12] - 800350c: 43db mvns r3, r3 - 800350e: 69f9 ldr r1, [r7, #28] - 8003510: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8003514: 4013 ands r3, r2 - 8003516: 634b str r3, [r1, #52] @ 0x34 + 80035ba: 69fb ldr r3, [r7, #28] + 80035bc: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80035c0: 6b5a ldr r2, [r3, #52] @ 0x34 + 80035c2: 68fb ldr r3, [r7, #12] + 80035c4: 43db mvns r3, r3 + 80035c6: 69f9 ldr r1, [r7, #28] + 80035c8: f501 6100 add.w r1, r1, #2048 @ 0x800 + 80035cc: 4013 ands r3, r2 + 80035ce: 634b str r3, [r1, #52] @ 0x34 CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_XFRC); - 8003518: 6a7b ldr r3, [r7, #36] @ 0x24 - 800351a: 015a lsls r2, r3, #5 - 800351c: 69fb ldr r3, [r7, #28] - 800351e: 4413 add r3, r2 - 8003520: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8003524: 461a mov r2, r3 - 8003526: 2301 movs r3, #1 - 8003528: 6093 str r3, [r2, #8] + 80035d0: 6a7b ldr r3, [r7, #36] @ 0x24 + 80035d2: 015a lsls r2, r3, #5 + 80035d4: 69fb ldr r3, [r7, #28] + 80035d6: 4413 add r3, r2 + 80035d8: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80035dc: 461a mov r2, r3 + 80035de: 2301 movs r3, #1 + 80035e0: 6093 str r3, [r2, #8] if (hpcd->Init.dma_enable == 1U) - 800352a: 687b ldr r3, [r7, #4] - 800352c: 799b ldrb r3, [r3, #6] - 800352e: 2b01 cmp r3, #1 - 8003530: d132 bne.n 8003598 + 80035e2: 687b ldr r3, [r7, #4] + 80035e4: 799b ldrb r3, [r3, #6] + 80035e6: 2b01 cmp r3, #1 + 80035e8: d132 bne.n 8003650 { hpcd->IN_ep[epnum].xfer_buff += hpcd->IN_ep[epnum].maxpacket; - 8003532: 6879 ldr r1, [r7, #4] - 8003534: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003536: 4613 mov r3, r2 - 8003538: 00db lsls r3, r3, #3 - 800353a: 4413 add r3, r2 - 800353c: 009b lsls r3, r3, #2 - 800353e: 440b add r3, r1 - 8003540: 3320 adds r3, #32 - 8003542: 6819 ldr r1, [r3, #0] - 8003544: 6878 ldr r0, [r7, #4] - 8003546: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003548: 4613 mov r3, r2 - 800354a: 00db lsls r3, r3, #3 - 800354c: 4413 add r3, r2 - 800354e: 009b lsls r3, r3, #2 - 8003550: 4403 add r3, r0 - 8003552: 331c adds r3, #28 - 8003554: 681b ldr r3, [r3, #0] - 8003556: 4419 add r1, r3 - 8003558: 6878 ldr r0, [r7, #4] - 800355a: 6a7a ldr r2, [r7, #36] @ 0x24 - 800355c: 4613 mov r3, r2 - 800355e: 00db lsls r3, r3, #3 - 8003560: 4413 add r3, r2 - 8003562: 009b lsls r3, r3, #2 - 8003564: 4403 add r3, r0 - 8003566: 3320 adds r3, #32 - 8003568: 6019 str r1, [r3, #0] + 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: 3320 adds r3, #32 + 80035fa: 6819 ldr r1, [r3, #0] + 80035fc: 6878 ldr r0, [r7, #4] + 80035fe: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003600: 4613 mov r3, r2 + 8003602: 00db lsls r3, r3, #3 + 8003604: 4413 add r3, r2 + 8003606: 009b lsls r3, r3, #2 + 8003608: 4403 add r3, r0 + 800360a: 331c adds r3, #28 + 800360c: 681b ldr r3, [r3, #0] + 800360e: 4419 add r1, r3 + 8003610: 6878 ldr r0, [r7, #4] + 8003612: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003614: 4613 mov r3, r2 + 8003616: 00db lsls r3, r3, #3 + 8003618: 4413 add r3, r2 + 800361a: 009b lsls r3, r3, #2 + 800361c: 4403 add r3, r0 + 800361e: 3320 adds r3, #32 + 8003620: 6019 str r1, [r3, #0] /* this is ZLP, so prepare EP0 for next setup */ if ((epnum == 0U) && (hpcd->IN_ep[epnum].xfer_len == 0U)) - 800356a: 6a7b ldr r3, [r7, #36] @ 0x24 - 800356c: 2b00 cmp r3, #0 - 800356e: d113 bne.n 8003598 - 8003570: 6879 ldr r1, [r7, #4] - 8003572: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003574: 4613 mov r3, r2 - 8003576: 00db lsls r3, r3, #3 - 8003578: 4413 add r3, r2 - 800357a: 009b lsls r3, r3, #2 - 800357c: 440b add r3, r1 - 800357e: 3324 adds r3, #36 @ 0x24 - 8003580: 681b ldr r3, [r3, #0] - 8003582: 2b00 cmp r3, #0 - 8003584: d108 bne.n 8003598 + 8003622: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003624: 2b00 cmp r3, #0 + 8003626: d113 bne.n 8003650 + 8003628: 6879 ldr r1, [r7, #4] + 800362a: 6a7a ldr r2, [r7, #36] @ 0x24 + 800362c: 4613 mov r3, r2 + 800362e: 00db lsls r3, r3, #3 + 8003630: 4413 add r3, r2 + 8003632: 009b lsls r3, r3, #2 + 8003634: 440b add r3, r1 + 8003636: 3324 adds r3, #36 @ 0x24 + 8003638: 681b ldr r3, [r3, #0] + 800363a: 2b00 cmp r3, #0 + 800363c: d108 bne.n 8003650 { /* prepare to rx more setup packets */ (void)USB_EP0_OutStart(hpcd->Instance, 1U, (uint8_t *)hpcd->Setup); - 8003586: 687b ldr r3, [r7, #4] - 8003588: 6818 ldr r0, [r3, #0] - 800358a: 687b ldr r3, [r7, #4] - 800358c: f203 439c addw r3, r3, #1180 @ 0x49c - 8003590: 461a mov r2, r3 - 8003592: 2101 movs r1, #1 - 8003594: f005 fdf2 bl 800917c + 800363e: 687b ldr r3, [r7, #4] + 8003640: 6818 ldr r0, [r3, #0] + 8003642: 687b ldr r3, [r7, #4] + 8003644: f203 439c addw r3, r3, #1180 @ 0x49c + 8003648: 461a mov r2, r3 + 800364a: 2101 movs r1, #1 + 800364c: f005 fdf2 bl 8009234 } #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->DataInStageCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_DataInStageCallback(hpcd, (uint8_t)epnum); - 8003598: 6a7b ldr r3, [r7, #36] @ 0x24 - 800359a: b2db uxtb r3, r3 - 800359c: 4619 mov r1, r3 - 800359e: 6878 ldr r0, [r7, #4] - 80035a0: f007 fde3 bl 800b16a + 8003650: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003652: b2db uxtb r3, r3 + 8003654: 4619 mov r1, r3 + 8003656: 6878 ldr r0, [r7, #4] + 8003658: f007 fde3 bl 800b222 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } if ((epint & USB_OTG_DIEPINT_TOC) == USB_OTG_DIEPINT_TOC) - 80035a4: 693b ldr r3, [r7, #16] - 80035a6: f003 0308 and.w r3, r3, #8 - 80035aa: 2b00 cmp r3, #0 - 80035ac: d008 beq.n 80035c0 + 800365c: 693b ldr r3, [r7, #16] + 800365e: f003 0308 and.w r3, r3, #8 + 8003662: 2b00 cmp r3, #0 + 8003664: d008 beq.n 8003678 { CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_TOC); - 80035ae: 6a7b ldr r3, [r7, #36] @ 0x24 - 80035b0: 015a lsls r2, r3, #5 - 80035b2: 69fb ldr r3, [r7, #28] - 80035b4: 4413 add r3, r2 - 80035b6: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80035ba: 461a mov r2, r3 - 80035bc: 2308 movs r3, #8 - 80035be: 6093 str r3, [r2, #8] + 8003666: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003668: 015a lsls r2, r3, #5 + 800366a: 69fb ldr r3, [r7, #28] + 800366c: 4413 add r3, r2 + 800366e: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8003672: 461a mov r2, r3 + 8003674: 2308 movs r3, #8 + 8003676: 6093 str r3, [r2, #8] } if ((epint & USB_OTG_DIEPINT_ITTXFE) == USB_OTG_DIEPINT_ITTXFE) - 80035c0: 693b ldr r3, [r7, #16] - 80035c2: f003 0310 and.w r3, r3, #16 - 80035c6: 2b00 cmp r3, #0 - 80035c8: d008 beq.n 80035dc + 8003678: 693b ldr r3, [r7, #16] + 800367a: f003 0310 and.w r3, r3, #16 + 800367e: 2b00 cmp r3, #0 + 8003680: d008 beq.n 8003694 { CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_ITTXFE); - 80035ca: 6a7b ldr r3, [r7, #36] @ 0x24 - 80035cc: 015a lsls r2, r3, #5 - 80035ce: 69fb ldr r3, [r7, #28] - 80035d0: 4413 add r3, r2 - 80035d2: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80035d6: 461a mov r2, r3 - 80035d8: 2310 movs r3, #16 - 80035da: 6093 str r3, [r2, #8] + 8003682: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003684: 015a lsls r2, r3, #5 + 8003686: 69fb ldr r3, [r7, #28] + 8003688: 4413 add r3, r2 + 800368a: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800368e: 461a mov r2, r3 + 8003690: 2310 movs r3, #16 + 8003692: 6093 str r3, [r2, #8] } if ((epint & USB_OTG_DIEPINT_INEPNE) == USB_OTG_DIEPINT_INEPNE) - 80035dc: 693b ldr r3, [r7, #16] - 80035de: f003 0340 and.w r3, r3, #64 @ 0x40 - 80035e2: 2b00 cmp r3, #0 - 80035e4: d008 beq.n 80035f8 + 8003694: 693b ldr r3, [r7, #16] + 8003696: f003 0340 and.w r3, r3, #64 @ 0x40 + 800369a: 2b00 cmp r3, #0 + 800369c: d008 beq.n 80036b0 { CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_INEPNE); - 80035e6: 6a7b ldr r3, [r7, #36] @ 0x24 - 80035e8: 015a lsls r2, r3, #5 - 80035ea: 69fb ldr r3, [r7, #28] - 80035ec: 4413 add r3, r2 - 80035ee: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80035f2: 461a mov r2, r3 - 80035f4: 2340 movs r3, #64 @ 0x40 - 80035f6: 6093 str r3, [r2, #8] + 800369e: 6a7b ldr r3, [r7, #36] @ 0x24 + 80036a0: 015a lsls r2, r3, #5 + 80036a2: 69fb ldr r3, [r7, #28] + 80036a4: 4413 add r3, r2 + 80036a6: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80036aa: 461a mov r2, r3 + 80036ac: 2340 movs r3, #64 @ 0x40 + 80036ae: 6093 str r3, [r2, #8] } if ((epint & USB_OTG_DIEPINT_EPDISD) == USB_OTG_DIEPINT_EPDISD) - 80035f8: 693b ldr r3, [r7, #16] - 80035fa: f003 0302 and.w r3, r3, #2 - 80035fe: 2b00 cmp r3, #0 - 8003600: d023 beq.n 800364a + 80036b0: 693b ldr r3, [r7, #16] + 80036b2: f003 0302 and.w r3, r3, #2 + 80036b6: 2b00 cmp r3, #0 + 80036b8: d023 beq.n 8003702 { (void)USB_FlushTxFifo(USBx, epnum); - 8003602: 6a79 ldr r1, [r7, #36] @ 0x24 - 8003604: 6a38 ldr r0, [r7, #32] - 8003606: f004 fdd9 bl 80081bc + 80036ba: 6a79 ldr r1, [r7, #36] @ 0x24 + 80036bc: 6a38 ldr r0, [r7, #32] + 80036be: f004 fdd9 bl 8008274 ep = &hpcd->IN_ep[epnum]; - 800360a: 6a7a ldr r2, [r7, #36] @ 0x24 - 800360c: 4613 mov r3, r2 - 800360e: 00db lsls r3, r3, #3 - 8003610: 4413 add r3, r2 - 8003612: 009b lsls r3, r3, #2 - 8003614: 3310 adds r3, #16 - 8003616: 687a ldr r2, [r7, #4] - 8003618: 4413 add r3, r2 - 800361a: 3304 adds r3, #4 - 800361c: 617b str r3, [r7, #20] + 80036c2: 6a7a ldr r2, [r7, #36] @ 0x24 + 80036c4: 4613 mov r3, r2 + 80036c6: 00db lsls r3, r3, #3 + 80036c8: 4413 add r3, r2 + 80036ca: 009b lsls r3, r3, #2 + 80036cc: 3310 adds r3, #16 + 80036ce: 687a ldr r2, [r7, #4] + 80036d0: 4413 add r3, r2 + 80036d2: 3304 adds r3, #4 + 80036d4: 617b str r3, [r7, #20] if (ep->is_iso_incomplete == 1U) - 800361e: 697b ldr r3, [r7, #20] - 8003620: 78db ldrb r3, [r3, #3] - 8003622: 2b01 cmp r3, #1 - 8003624: d108 bne.n 8003638 + 80036d6: 697b ldr r3, [r7, #20] + 80036d8: 78db ldrb r3, [r3, #3] + 80036da: 2b01 cmp r3, #1 + 80036dc: d108 bne.n 80036f0 { ep->is_iso_incomplete = 0U; - 8003626: 697b ldr r3, [r7, #20] - 8003628: 2200 movs r2, #0 - 800362a: 70da strb r2, [r3, #3] + 80036de: 697b ldr r3, [r7, #20] + 80036e0: 2200 movs r2, #0 + 80036e2: 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); - 800362c: 6a7b ldr r3, [r7, #36] @ 0x24 - 800362e: b2db uxtb r3, r3 - 8003630: 4619 mov r1, r3 - 8003632: 6878 ldr r0, [r7, #4] - 8003634: f007 fe30 bl 800b298 + 80036e4: 6a7b ldr r3, [r7, #36] @ 0x24 + 80036e6: b2db uxtb r3, r3 + 80036e8: 4619 mov r1, r3 + 80036ea: 6878 ldr r0, [r7, #4] + 80036ec: f007 fe30 bl 800b350 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } CLEAR_IN_EP_INTR(epnum, USB_OTG_DIEPINT_EPDISD); - 8003638: 6a7b ldr r3, [r7, #36] @ 0x24 - 800363a: 015a lsls r2, r3, #5 - 800363c: 69fb ldr r3, [r7, #28] - 800363e: 4413 add r3, r2 - 8003640: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8003644: 461a mov r2, r3 - 8003646: 2302 movs r3, #2 - 8003648: 6093 str r3, [r2, #8] + 80036f0: 6a7b ldr r3, [r7, #36] @ 0x24 + 80036f2: 015a lsls r2, r3, #5 + 80036f4: 69fb ldr r3, [r7, #28] + 80036f6: 4413 add r3, r2 + 80036f8: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80036fc: 461a mov r2, r3 + 80036fe: 2302 movs r3, #2 + 8003700: 6093 str r3, [r2, #8] } if ((epint & USB_OTG_DIEPINT_TXFE) == USB_OTG_DIEPINT_TXFE) - 800364a: 693b ldr r3, [r7, #16] - 800364c: f003 0380 and.w r3, r3, #128 @ 0x80 - 8003650: 2b00 cmp r3, #0 - 8003652: d003 beq.n 800365c + 8003702: 693b ldr r3, [r7, #16] + 8003704: f003 0380 and.w r3, r3, #128 @ 0x80 + 8003708: 2b00 cmp r3, #0 + 800370a: d003 beq.n 8003714 { (void)PCD_WriteEmptyTxFifo(hpcd, epnum); - 8003654: 6a79 ldr r1, [r7, #36] @ 0x24 - 8003656: 6878 ldr r0, [r7, #4] - 8003658: f000 fcd2 bl 8004000 + 800370c: 6a79 ldr r1, [r7, #36] @ 0x24 + 800370e: 6878 ldr r0, [r7, #4] + 8003710: f000 fcd2 bl 80040b8 } } epnum++; - 800365c: 6a7b ldr r3, [r7, #36] @ 0x24 - 800365e: 3301 adds r3, #1 - 8003660: 627b str r3, [r7, #36] @ 0x24 + 8003714: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003716: 3301 adds r3, #1 + 8003718: 627b str r3, [r7, #36] @ 0x24 ep_intr >>= 1U; - 8003662: 6abb ldr r3, [r7, #40] @ 0x28 - 8003664: 085b lsrs r3, r3, #1 - 8003666: 62bb str r3, [r7, #40] @ 0x28 + 800371a: 6abb ldr r3, [r7, #40] @ 0x28 + 800371c: 085b lsrs r3, r3, #1 + 800371e: 62bb str r3, [r7, #40] @ 0x28 while (ep_intr != 0U) - 8003668: 6abb ldr r3, [r7, #40] @ 0x28 - 800366a: 2b00 cmp r3, #0 - 800366c: f47f af2e bne.w 80034cc + 8003720: 6abb ldr r3, [r7, #40] @ 0x28 + 8003722: 2b00 cmp r3, #0 + 8003724: f47f af2e bne.w 8003584 } } /* Handle Resume Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_WKUINT)) - 8003670: 687b ldr r3, [r7, #4] - 8003672: 681b ldr r3, [r3, #0] - 8003674: 4618 mov r0, r3 - 8003676: f005 fcbd bl 8008ff4 - 800367a: 4603 mov r3, r0 - 800367c: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8003680: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8003684: d122 bne.n 80036cc + 8003728: 687b ldr r3, [r7, #4] + 800372a: 681b ldr r3, [r3, #0] + 800372c: 4618 mov r0, r3 + 800372e: f005 fcbd bl 80090ac + 8003732: 4603 mov r3, r0 + 8003734: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8003738: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 800373c: d122 bne.n 8003784 { /* Clear the Remote Wake-up Signaling */ USBx_DEVICE->DCTL &= ~USB_OTG_DCTL_RWUSIG; - 8003686: 69fb ldr r3, [r7, #28] - 8003688: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800368c: 685b ldr r3, [r3, #4] - 800368e: 69fa ldr r2, [r7, #28] - 8003690: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003694: f023 0301 bic.w r3, r3, #1 - 8003698: 6053 str r3, [r2, #4] + 800373e: 69fb ldr r3, [r7, #28] + 8003740: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003744: 685b ldr r3, [r3, #4] + 8003746: 69fa ldr r2, [r7, #28] + 8003748: f502 6200 add.w r2, r2, #2048 @ 0x800 + 800374c: f023 0301 bic.w r3, r3, #1 + 8003750: 6053 str r3, [r2, #4] if (hpcd->LPM_State == LPM_L1) - 800369a: 687b ldr r3, [r7, #4] - 800369c: f893 34cc ldrb.w r3, [r3, #1228] @ 0x4cc - 80036a0: 2b01 cmp r3, #1 - 80036a2: d108 bne.n 80036b6 + 8003752: 687b ldr r3, [r7, #4] + 8003754: f893 34cc ldrb.w r3, [r3, #1228] @ 0x4cc + 8003758: 2b01 cmp r3, #1 + 800375a: d108 bne.n 800376e { hpcd->LPM_State = LPM_L0; - 80036a4: 687b ldr r3, [r7, #4] - 80036a6: 2200 movs r2, #0 - 80036a8: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc + 800375c: 687b ldr r3, [r7, #4] + 800375e: 2200 movs r2, #0 + 8003760: 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); - 80036ac: 2100 movs r1, #0 - 80036ae: 6878 ldr r0, [r7, #4] - 80036b0: f007 ff98 bl 800b5e4 - 80036b4: e002 b.n 80036bc + 8003764: 2100 movs r1, #0 + 8003766: 6878 ldr r0, [r7, #4] + 8003768: f007 ff98 bl 800b69c + 800376c: e002 b.n 8003774 else { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->ResumeCallback(hpcd); #else HAL_PCD_ResumeCallback(hpcd); - 80036b6: 6878 ldr r0, [r7, #4] - 80036b8: f007 fdce bl 800b258 + 800376e: 6878 ldr r0, [r7, #4] + 8003770: f007 fdce bl 800b310 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_WKUINT); - 80036bc: 687b ldr r3, [r7, #4] - 80036be: 681b ldr r3, [r3, #0] - 80036c0: 695a ldr r2, [r3, #20] - 80036c2: 687b ldr r3, [r7, #4] - 80036c4: 681b ldr r3, [r3, #0] - 80036c6: f002 4200 and.w r2, r2, #2147483648 @ 0x80000000 - 80036ca: 615a str r2, [r3, #20] + 8003774: 687b ldr r3, [r7, #4] + 8003776: 681b ldr r3, [r3, #0] + 8003778: 695a ldr r2, [r3, #20] + 800377a: 687b ldr r3, [r7, #4] + 800377c: 681b ldr r3, [r3, #0] + 800377e: f002 4200 and.w r2, r2, #2147483648 @ 0x80000000 + 8003782: 615a str r2, [r3, #20] } /* Handle Suspend Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_USBSUSP)) - 80036cc: 687b ldr r3, [r7, #4] - 80036ce: 681b ldr r3, [r3, #0] - 80036d0: 4618 mov r0, r3 - 80036d2: f005 fc8f bl 8008ff4 - 80036d6: 4603 mov r3, r0 - 80036d8: f403 6300 and.w r3, r3, #2048 @ 0x800 - 80036dc: f5b3 6f00 cmp.w r3, #2048 @ 0x800 - 80036e0: d112 bne.n 8003708 + 8003784: 687b ldr r3, [r7, #4] + 8003786: 681b ldr r3, [r3, #0] + 8003788: 4618 mov r0, r3 + 800378a: f005 fc8f bl 80090ac + 800378e: 4603 mov r3, r0 + 8003790: f403 6300 and.w r3, r3, #2048 @ 0x800 + 8003794: f5b3 6f00 cmp.w r3, #2048 @ 0x800 + 8003798: d112 bne.n 80037c0 { if ((USBx_DEVICE->DSTS & USB_OTG_DSTS_SUSPSTS) == USB_OTG_DSTS_SUSPSTS) - 80036e2: 69fb ldr r3, [r7, #28] - 80036e4: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80036e8: 689b ldr r3, [r3, #8] - 80036ea: f003 0301 and.w r3, r3, #1 - 80036ee: 2b01 cmp r3, #1 - 80036f0: d102 bne.n 80036f8 + 800379a: 69fb ldr r3, [r7, #28] + 800379c: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80037a0: 689b ldr r3, [r3, #8] + 80037a2: f003 0301 and.w r3, r3, #1 + 80037a6: 2b01 cmp r3, #1 + 80037a8: d102 bne.n 80037b0 { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->SuspendCallback(hpcd); #else HAL_PCD_SuspendCallback(hpcd); - 80036f2: 6878 ldr r0, [r7, #4] - 80036f4: f007 fd8a bl 800b20c + 80037aa: 6878 ldr r0, [r7, #4] + 80037ac: f007 fd8a bl 800b2c4 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_USBSUSP); - 80036f8: 687b ldr r3, [r7, #4] - 80036fa: 681b ldr r3, [r3, #0] - 80036fc: 695a ldr r2, [r3, #20] - 80036fe: 687b ldr r3, [r7, #4] - 8003700: 681b ldr r3, [r3, #0] - 8003702: f402 6200 and.w r2, r2, #2048 @ 0x800 - 8003706: 615a str r2, [r3, #20] + 80037b0: 687b ldr r3, [r7, #4] + 80037b2: 681b ldr r3, [r3, #0] + 80037b4: 695a ldr r2, [r3, #20] + 80037b6: 687b ldr r3, [r7, #4] + 80037b8: 681b ldr r3, [r3, #0] + 80037ba: f402 6200 and.w r2, r2, #2048 @ 0x800 + 80037be: 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)) - 8003708: 687b ldr r3, [r7, #4] - 800370a: 681b ldr r3, [r3, #0] - 800370c: 4618 mov r0, r3 - 800370e: f005 fc71 bl 8008ff4 - 8003712: 4603 mov r3, r0 - 8003714: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 - 8003718: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 - 800371c: d121 bne.n 8003762 + 80037c0: 687b ldr r3, [r7, #4] + 80037c2: 681b ldr r3, [r3, #0] + 80037c4: 4618 mov r0, r3 + 80037c6: f005 fc71 bl 80090ac + 80037ca: 4603 mov r3, r0 + 80037cc: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 + 80037d0: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 + 80037d4: d121 bne.n 800381a { __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_LPMINT); - 800371e: 687b ldr r3, [r7, #4] - 8003720: 681b ldr r3, [r3, #0] - 8003722: 695a ldr r2, [r3, #20] - 8003724: 687b ldr r3, [r7, #4] - 8003726: 681b ldr r3, [r3, #0] - 8003728: f002 6200 and.w r2, r2, #134217728 @ 0x8000000 - 800372c: 615a str r2, [r3, #20] + 80037d6: 687b ldr r3, [r7, #4] + 80037d8: 681b ldr r3, [r3, #0] + 80037da: 695a ldr r2, [r3, #20] + 80037dc: 687b ldr r3, [r7, #4] + 80037de: 681b ldr r3, [r3, #0] + 80037e0: f002 6200 and.w r2, r2, #134217728 @ 0x8000000 + 80037e4: 615a str r2, [r3, #20] if (hpcd->LPM_State == LPM_L0) - 800372e: 687b ldr r3, [r7, #4] - 8003730: f893 34cc ldrb.w r3, [r3, #1228] @ 0x4cc - 8003734: 2b00 cmp r3, #0 - 8003736: d111 bne.n 800375c + 80037e6: 687b ldr r3, [r7, #4] + 80037e8: f893 34cc ldrb.w r3, [r3, #1228] @ 0x4cc + 80037ec: 2b00 cmp r3, #0 + 80037ee: d111 bne.n 8003814 { hpcd->LPM_State = LPM_L1; - 8003738: 687b ldr r3, [r7, #4] - 800373a: 2201 movs r2, #1 - 800373c: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc + 80037f0: 687b ldr r3, [r7, #4] + 80037f2: 2201 movs r2, #1 + 80037f4: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc hpcd->BESL = (hpcd->Instance->GLPMCFG & USB_OTG_GLPMCFG_BESL) >> 2U; - 8003740: 687b ldr r3, [r7, #4] - 8003742: 681b ldr r3, [r3, #0] - 8003744: 6d5b ldr r3, [r3, #84] @ 0x54 - 8003746: 089b lsrs r3, r3, #2 - 8003748: f003 020f and.w r2, r3, #15 - 800374c: 687b ldr r3, [r7, #4] - 800374e: f8c3 24d0 str.w r2, [r3, #1232] @ 0x4d0 + 80037f8: 687b ldr r3, [r7, #4] + 80037fa: 681b ldr r3, [r3, #0] + 80037fc: 6d5b ldr r3, [r3, #84] @ 0x54 + 80037fe: 089b lsrs r3, r3, #2 + 8003800: f003 020f and.w r2, r3, #15 + 8003804: 687b ldr r3, [r7, #4] + 8003806: 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); - 8003752: 2101 movs r1, #1 - 8003754: 6878 ldr r0, [r7, #4] - 8003756: f007 ff45 bl 800b5e4 - 800375a: e002 b.n 8003762 + 800380a: 2101 movs r1, #1 + 800380c: 6878 ldr r0, [r7, #4] + 800380e: f007 ff45 bl 800b69c + 8003812: e002 b.n 800381a else { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->SuspendCallback(hpcd); #else HAL_PCD_SuspendCallback(hpcd); - 800375c: 6878 ldr r0, [r7, #4] - 800375e: f007 fd55 bl 800b20c + 8003814: 6878 ldr r0, [r7, #4] + 8003816: f007 fd55 bl 800b2c4 } #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)) - 8003762: 687b ldr r3, [r7, #4] - 8003764: 681b ldr r3, [r3, #0] - 8003766: 4618 mov r0, r3 - 8003768: f005 fc44 bl 8008ff4 - 800376c: 4603 mov r3, r0 - 800376e: f403 5380 and.w r3, r3, #4096 @ 0x1000 - 8003772: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8003776: f040 80b7 bne.w 80038e8 + 800381a: 687b ldr r3, [r7, #4] + 800381c: 681b ldr r3, [r3, #0] + 800381e: 4618 mov r0, r3 + 8003820: f005 fc44 bl 80090ac + 8003824: 4603 mov r3, r0 + 8003826: f403 5380 and.w r3, r3, #4096 @ 0x1000 + 800382a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 800382e: f040 80b7 bne.w 80039a0 { USBx_DEVICE->DCTL &= ~USB_OTG_DCTL_RWUSIG; - 800377a: 69fb ldr r3, [r7, #28] - 800377c: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003780: 685b ldr r3, [r3, #4] - 8003782: 69fa ldr r2, [r7, #28] - 8003784: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003788: f023 0301 bic.w r3, r3, #1 - 800378c: 6053 str r3, [r2, #4] + 8003832: 69fb ldr r3, [r7, #28] + 8003834: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003838: 685b ldr r3, [r3, #4] + 800383a: 69fa ldr r2, [r7, #28] + 800383c: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8003840: f023 0301 bic.w r3, r3, #1 + 8003844: 6053 str r3, [r2, #4] (void)USB_FlushTxFifo(hpcd->Instance, 0x10U); - 800378e: 687b ldr r3, [r7, #4] - 8003790: 681b ldr r3, [r3, #0] - 8003792: 2110 movs r1, #16 - 8003794: 4618 mov r0, r3 - 8003796: f004 fd11 bl 80081bc + 8003846: 687b ldr r3, [r7, #4] + 8003848: 681b ldr r3, [r3, #0] + 800384a: 2110 movs r1, #16 + 800384c: 4618 mov r0, r3 + 800384e: f004 fd11 bl 8008274 for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 800379a: 2300 movs r3, #0 - 800379c: 62fb str r3, [r7, #44] @ 0x2c - 800379e: e046 b.n 800382e + 8003852: 2300 movs r3, #0 + 8003854: 62fb str r3, [r7, #44] @ 0x2c + 8003856: e046 b.n 80038e6 { USBx_INEP(i)->DIEPINT = 0xFB7FU; - 80037a0: 6afb ldr r3, [r7, #44] @ 0x2c - 80037a2: 015a lsls r2, r3, #5 - 80037a4: 69fb ldr r3, [r7, #28] - 80037a6: 4413 add r3, r2 - 80037a8: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80037ac: 461a mov r2, r3 - 80037ae: f64f 337f movw r3, #64383 @ 0xfb7f - 80037b2: 6093 str r3, [r2, #8] + 8003858: 6afb ldr r3, [r7, #44] @ 0x2c + 800385a: 015a lsls r2, r3, #5 + 800385c: 69fb ldr r3, [r7, #28] + 800385e: 4413 add r3, r2 + 8003860: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8003864: 461a mov r2, r3 + 8003866: f64f 337f movw r3, #64383 @ 0xfb7f + 800386a: 6093 str r3, [r2, #8] USBx_INEP(i)->DIEPCTL &= ~USB_OTG_DIEPCTL_STALL; - 80037b4: 6afb ldr r3, [r7, #44] @ 0x2c - 80037b6: 015a lsls r2, r3, #5 - 80037b8: 69fb ldr r3, [r7, #28] - 80037ba: 4413 add r3, r2 - 80037bc: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80037c0: 681b ldr r3, [r3, #0] - 80037c2: 6afa ldr r2, [r7, #44] @ 0x2c - 80037c4: 0151 lsls r1, r2, #5 - 80037c6: 69fa ldr r2, [r7, #28] - 80037c8: 440a add r2, r1 - 80037ca: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80037ce: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 - 80037d2: 6013 str r3, [r2, #0] + 800386c: 6afb ldr r3, [r7, #44] @ 0x2c + 800386e: 015a lsls r2, r3, #5 + 8003870: 69fb ldr r3, [r7, #28] + 8003872: 4413 add r3, r2 + 8003874: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8003878: 681b ldr r3, [r3, #0] + 800387a: 6afa ldr r2, [r7, #44] @ 0x2c + 800387c: 0151 lsls r1, r2, #5 + 800387e: 69fa ldr r2, [r7, #28] + 8003880: 440a add r2, r1 + 8003882: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8003886: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 + 800388a: 6013 str r3, [r2, #0] USBx_OUTEP(i)->DOEPINT = 0xFB7FU; - 80037d4: 6afb ldr r3, [r7, #44] @ 0x2c - 80037d6: 015a lsls r2, r3, #5 - 80037d8: 69fb ldr r3, [r7, #28] - 80037da: 4413 add r3, r2 - 80037dc: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80037e0: 461a mov r2, r3 - 80037e2: f64f 337f movw r3, #64383 @ 0xfb7f - 80037e6: 6093 str r3, [r2, #8] + 800388c: 6afb ldr r3, [r7, #44] @ 0x2c + 800388e: 015a lsls r2, r3, #5 + 8003890: 69fb ldr r3, [r7, #28] + 8003892: 4413 add r3, r2 + 8003894: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003898: 461a mov r2, r3 + 800389a: f64f 337f movw r3, #64383 @ 0xfb7f + 800389e: 6093 str r3, [r2, #8] USBx_OUTEP(i)->DOEPCTL &= ~USB_OTG_DOEPCTL_STALL; - 80037e8: 6afb ldr r3, [r7, #44] @ 0x2c - 80037ea: 015a lsls r2, r3, #5 - 80037ec: 69fb ldr r3, [r7, #28] - 80037ee: 4413 add r3, r2 - 80037f0: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80037f4: 681b ldr r3, [r3, #0] - 80037f6: 6afa ldr r2, [r7, #44] @ 0x2c - 80037f8: 0151 lsls r1, r2, #5 - 80037fa: 69fa ldr r2, [r7, #28] - 80037fc: 440a add r2, r1 - 80037fe: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8003802: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 - 8003806: 6013 str r3, [r2, #0] + 80038a0: 6afb ldr r3, [r7, #44] @ 0x2c + 80038a2: 015a lsls r2, r3, #5 + 80038a4: 69fb ldr r3, [r7, #28] + 80038a6: 4413 add r3, r2 + 80038a8: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80038ac: 681b ldr r3, [r3, #0] + 80038ae: 6afa ldr r2, [r7, #44] @ 0x2c + 80038b0: 0151 lsls r1, r2, #5 + 80038b2: 69fa ldr r2, [r7, #28] + 80038b4: 440a add r2, r1 + 80038b6: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80038ba: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 + 80038be: 6013 str r3, [r2, #0] USBx_OUTEP(i)->DOEPCTL |= USB_OTG_DOEPCTL_SNAK; - 8003808: 6afb ldr r3, [r7, #44] @ 0x2c - 800380a: 015a lsls r2, r3, #5 - 800380c: 69fb ldr r3, [r7, #28] - 800380e: 4413 add r3, r2 - 8003810: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003814: 681b ldr r3, [r3, #0] - 8003816: 6afa ldr r2, [r7, #44] @ 0x2c - 8003818: 0151 lsls r1, r2, #5 - 800381a: 69fa ldr r2, [r7, #28] - 800381c: 440a add r2, r1 - 800381e: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8003822: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 8003826: 6013 str r3, [r2, #0] + 80038c0: 6afb ldr r3, [r7, #44] @ 0x2c + 80038c2: 015a lsls r2, r3, #5 + 80038c4: 69fb ldr r3, [r7, #28] + 80038c6: 4413 add r3, r2 + 80038c8: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80038cc: 681b ldr r3, [r3, #0] + 80038ce: 6afa ldr r2, [r7, #44] @ 0x2c + 80038d0: 0151 lsls r1, r2, #5 + 80038d2: 69fa ldr r2, [r7, #28] + 80038d4: 440a add r2, r1 + 80038d6: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80038da: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 80038de: 6013 str r3, [r2, #0] for (i = 0U; i < hpcd->Init.dev_endpoints; i++) - 8003828: 6afb ldr r3, [r7, #44] @ 0x2c - 800382a: 3301 adds r3, #1 - 800382c: 62fb str r3, [r7, #44] @ 0x2c - 800382e: 687b ldr r3, [r7, #4] - 8003830: 791b ldrb r3, [r3, #4] - 8003832: 461a mov r2, r3 - 8003834: 6afb ldr r3, [r7, #44] @ 0x2c - 8003836: 4293 cmp r3, r2 - 8003838: d3b2 bcc.n 80037a0 + 80038e0: 6afb ldr r3, [r7, #44] @ 0x2c + 80038e2: 3301 adds r3, #1 + 80038e4: 62fb str r3, [r7, #44] @ 0x2c + 80038e6: 687b ldr r3, [r7, #4] + 80038e8: 791b ldrb r3, [r3, #4] + 80038ea: 461a mov r2, r3 + 80038ec: 6afb ldr r3, [r7, #44] @ 0x2c + 80038ee: 4293 cmp r3, r2 + 80038f0: d3b2 bcc.n 8003858 } USBx_DEVICE->DAINTMSK |= 0x10001U; - 800383a: 69fb ldr r3, [r7, #28] - 800383c: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003840: 69db ldr r3, [r3, #28] - 8003842: 69fa ldr r2, [r7, #28] - 8003844: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003848: f043 1301 orr.w r3, r3, #65537 @ 0x10001 - 800384c: 61d3 str r3, [r2, #28] + 80038f2: 69fb ldr r3, [r7, #28] + 80038f4: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80038f8: 69db ldr r3, [r3, #28] + 80038fa: 69fa ldr r2, [r7, #28] + 80038fc: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8003900: f043 1301 orr.w r3, r3, #65537 @ 0x10001 + 8003904: 61d3 str r3, [r2, #28] if (hpcd->Init.use_dedicated_ep1 != 0U) - 800384e: 687b ldr r3, [r7, #4] - 8003850: 7bdb ldrb r3, [r3, #15] - 8003852: 2b00 cmp r3, #0 - 8003854: d016 beq.n 8003884 + 8003906: 687b ldr r3, [r7, #4] + 8003908: 7bdb ldrb r3, [r3, #15] + 800390a: 2b00 cmp r3, #0 + 800390c: d016 beq.n 800393c { USBx_DEVICE->DOUTEP1MSK |= USB_OTG_DOEPMSK_STUPM | - 8003856: 69fb ldr r3, [r7, #28] - 8003858: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800385c: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8003860: 69fa ldr r2, [r7, #28] - 8003862: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003866: f043 030b orr.w r3, r3, #11 - 800386a: f8c2 3084 str.w r3, [r2, #132] @ 0x84 + 800390e: 69fb ldr r3, [r7, #28] + 8003910: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003914: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8003918: 69fa ldr r2, [r7, #28] + 800391a: f502 6200 add.w r2, r2, #2048 @ 0x800 + 800391e: f043 030b orr.w r3, r3, #11 + 8003922: f8c2 3084 str.w r3, [r2, #132] @ 0x84 USB_OTG_DOEPMSK_XFRCM | USB_OTG_DOEPMSK_EPDM; USBx_DEVICE->DINEP1MSK |= USB_OTG_DIEPMSK_TOM | - 800386e: 69fb ldr r3, [r7, #28] - 8003870: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003874: 6c5b ldr r3, [r3, #68] @ 0x44 - 8003876: 69fa ldr r2, [r7, #28] - 8003878: f502 6200 add.w r2, r2, #2048 @ 0x800 - 800387c: f043 030b orr.w r3, r3, #11 - 8003880: 6453 str r3, [r2, #68] @ 0x44 - 8003882: e015 b.n 80038b0 + 8003926: 69fb ldr r3, [r7, #28] + 8003928: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800392c: 6c5b ldr r3, [r3, #68] @ 0x44 + 800392e: 69fa ldr r2, [r7, #28] + 8003930: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8003934: f043 030b orr.w r3, r3, #11 + 8003938: 6453 str r3, [r2, #68] @ 0x44 + 800393a: e015 b.n 8003968 USB_OTG_DIEPMSK_XFRCM | USB_OTG_DIEPMSK_EPDM; } else { USBx_DEVICE->DOEPMSK |= USB_OTG_DOEPMSK_STUPM | - 8003884: 69fb ldr r3, [r7, #28] - 8003886: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800388a: 695b ldr r3, [r3, #20] - 800388c: 69fa ldr r2, [r7, #28] - 800388e: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003892: f443 5300 orr.w r3, r3, #8192 @ 0x2000 - 8003896: f043 032b orr.w r3, r3, #43 @ 0x2b - 800389a: 6153 str r3, [r2, #20] + 800393c: 69fb ldr r3, [r7, #28] + 800393e: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003942: 695b ldr r3, [r3, #20] + 8003944: 69fa ldr r2, [r7, #28] + 8003946: f502 6200 add.w r2, r2, #2048 @ 0x800 + 800394a: f443 5300 orr.w r3, r3, #8192 @ 0x2000 + 800394e: f043 032b orr.w r3, r3, #43 @ 0x2b + 8003952: 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 | - 800389c: 69fb ldr r3, [r7, #28] - 800389e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80038a2: 691b ldr r3, [r3, #16] - 80038a4: 69fa ldr r2, [r7, #28] - 80038a6: f502 6200 add.w r2, r2, #2048 @ 0x800 - 80038aa: f043 030b orr.w r3, r3, #11 - 80038ae: 6113 str r3, [r2, #16] + 8003954: 69fb ldr r3, [r7, #28] + 8003956: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800395a: 691b ldr r3, [r3, #16] + 800395c: 69fa ldr r2, [r7, #28] + 800395e: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8003962: f043 030b orr.w r3, r3, #11 + 8003966: 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; - 80038b0: 69fb ldr r3, [r7, #28] - 80038b2: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80038b6: 681b ldr r3, [r3, #0] - 80038b8: 69fa ldr r2, [r7, #28] - 80038ba: f502 6200 add.w r2, r2, #2048 @ 0x800 - 80038be: f423 63fe bic.w r3, r3, #2032 @ 0x7f0 - 80038c2: 6013 str r3, [r2, #0] + 8003968: 69fb ldr r3, [r7, #28] + 800396a: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800396e: 681b ldr r3, [r3, #0] + 8003970: 69fa ldr r2, [r7, #28] + 8003972: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8003976: f423 63fe bic.w r3, r3, #2032 @ 0x7f0 + 800397a: 6013 str r3, [r2, #0] /* setup EP0 to receive SETUP packets */ (void)USB_EP0_OutStart(hpcd->Instance, (uint8_t)hpcd->Init.dma_enable, - 80038c4: 687b ldr r3, [r7, #4] - 80038c6: 6818 ldr r0, [r3, #0] - 80038c8: 687b ldr r3, [r7, #4] - 80038ca: 7999 ldrb r1, [r3, #6] + 800397c: 687b ldr r3, [r7, #4] + 800397e: 6818 ldr r0, [r3, #0] + 8003980: 687b ldr r3, [r7, #4] + 8003982: 7999 ldrb r1, [r3, #6] (uint8_t *)hpcd->Setup); - 80038cc: 687b ldr r3, [r7, #4] - 80038ce: f203 439c addw r3, r3, #1180 @ 0x49c + 8003984: 687b ldr r3, [r7, #4] + 8003986: f203 439c addw r3, r3, #1180 @ 0x49c (void)USB_EP0_OutStart(hpcd->Instance, (uint8_t)hpcd->Init.dma_enable, - 80038d2: 461a mov r2, r3 - 80038d4: f005 fc52 bl 800917c + 800398a: 461a mov r2, r3 + 800398c: f005 fc52 bl 8009234 __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_USBRST); - 80038d8: 687b ldr r3, [r7, #4] - 80038da: 681b ldr r3, [r3, #0] - 80038dc: 695a ldr r2, [r3, #20] - 80038de: 687b ldr r3, [r7, #4] - 80038e0: 681b ldr r3, [r3, #0] - 80038e2: f402 5280 and.w r2, r2, #4096 @ 0x1000 - 80038e6: 615a str r2, [r3, #20] + 8003990: 687b ldr r3, [r7, #4] + 8003992: 681b ldr r3, [r3, #0] + 8003994: 695a ldr r2, [r3, #20] + 8003996: 687b ldr r3, [r7, #4] + 8003998: 681b ldr r3, [r3, #0] + 800399a: f402 5280 and.w r2, r2, #4096 @ 0x1000 + 800399e: 615a str r2, [r3, #20] } /* Handle Enumeration done Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_ENUMDNE)) - 80038e8: 687b ldr r3, [r7, #4] - 80038ea: 681b ldr r3, [r3, #0] - 80038ec: 4618 mov r0, r3 - 80038ee: f005 fb81 bl 8008ff4 - 80038f2: 4603 mov r3, r0 - 80038f4: f403 5300 and.w r3, r3, #8192 @ 0x2000 - 80038f8: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 - 80038fc: d123 bne.n 8003946 + 80039a0: 687b ldr r3, [r7, #4] + 80039a2: 681b ldr r3, [r3, #0] + 80039a4: 4618 mov r0, r3 + 80039a6: f005 fb81 bl 80090ac + 80039aa: 4603 mov r3, r0 + 80039ac: f403 5300 and.w r3, r3, #8192 @ 0x2000 + 80039b0: f5b3 5f00 cmp.w r3, #8192 @ 0x2000 + 80039b4: d123 bne.n 80039fe { (void)USB_ActivateSetup(hpcd->Instance); - 80038fe: 687b ldr r3, [r7, #4] - 8003900: 681b ldr r3, [r3, #0] - 8003902: 4618 mov r0, r3 - 8003904: f005 fc17 bl 8009136 + 80039b6: 687b ldr r3, [r7, #4] + 80039b8: 681b ldr r3, [r3, #0] + 80039ba: 4618 mov r0, r3 + 80039bc: f005 fc17 bl 80091ee hpcd->Init.speed = USB_GetDevSpeed(hpcd->Instance); - 8003908: 687b ldr r3, [r7, #4] - 800390a: 681b ldr r3, [r3, #0] - 800390c: 4618 mov r0, r3 - 800390e: f004 fcce bl 80082ae - 8003912: 4603 mov r3, r0 - 8003914: 461a mov r2, r3 - 8003916: 687b ldr r3, [r7, #4] - 8003918: 71da strb r2, [r3, #7] + 80039c0: 687b ldr r3, [r7, #4] + 80039c2: 681b ldr r3, [r3, #0] + 80039c4: 4618 mov r0, r3 + 80039c6: f004 fcce bl 8008366 + 80039ca: 4603 mov r3, r0 + 80039cc: 461a mov r2, r3 + 80039ce: 687b ldr r3, [r7, #4] + 80039d0: 71da strb r2, [r3, #7] /* Set USB Turnaround time */ (void)USB_SetTurnaroundTime(hpcd->Instance, - 800391a: 687b ldr r3, [r7, #4] - 800391c: 681c ldr r4, [r3, #0] - 800391e: f000 fe8b bl 8004638 - 8003922: 4601 mov r1, r0 + 80039d2: 687b ldr r3, [r7, #4] + 80039d4: 681c ldr r4, [r3, #0] + 80039d6: f000 fe8b bl 80046f0 + 80039da: 4601 mov r1, r0 HAL_RCC_GetHCLKFreq(), (uint8_t)hpcd->Init.speed); - 8003924: 687b ldr r3, [r7, #4] - 8003926: 79db ldrb r3, [r3, #7] + 80039dc: 687b ldr r3, [r7, #4] + 80039de: 79db ldrb r3, [r3, #7] (void)USB_SetTurnaroundTime(hpcd->Instance, - 8003928: 461a mov r2, r3 - 800392a: 4620 mov r0, r4 - 800392c: f004 f9d8 bl 8007ce0 + 80039e0: 461a mov r2, r3 + 80039e2: 4620 mov r0, r4 + 80039e4: f004 f9d8 bl 8007d98 #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->ResetCallback(hpcd); #else HAL_PCD_ResetCallback(hpcd); - 8003930: 6878 ldr r0, [r7, #4] - 8003932: f007 fc42 bl 800b1ba + 80039e8: 6878 ldr r0, [r7, #4] + 80039ea: f007 fc42 bl 800b272 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_ENUMDNE); - 8003936: 687b ldr r3, [r7, #4] - 8003938: 681b ldr r3, [r3, #0] - 800393a: 695a ldr r2, [r3, #20] - 800393c: 687b ldr r3, [r7, #4] - 800393e: 681b ldr r3, [r3, #0] - 8003940: f402 5200 and.w r2, r2, #8192 @ 0x2000 - 8003944: 615a str r2, [r3, #20] + 80039ee: 687b ldr r3, [r7, #4] + 80039f0: 681b ldr r3, [r3, #0] + 80039f2: 695a ldr r2, [r3, #20] + 80039f4: 687b ldr r3, [r7, #4] + 80039f6: 681b ldr r3, [r3, #0] + 80039f8: f402 5200 and.w r2, r2, #8192 @ 0x2000 + 80039fc: 615a str r2, [r3, #20] } /* Handle SOF Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_SOF)) - 8003946: 687b ldr r3, [r7, #4] - 8003948: 681b ldr r3, [r3, #0] - 800394a: 4618 mov r0, r3 - 800394c: f005 fb52 bl 8008ff4 - 8003950: 4603 mov r3, r0 - 8003952: f003 0308 and.w r3, r3, #8 - 8003956: 2b08 cmp r3, #8 - 8003958: d10a bne.n 8003970 + 80039fe: 687b ldr r3, [r7, #4] + 8003a00: 681b ldr r3, [r3, #0] + 8003a02: 4618 mov r0, r3 + 8003a04: f005 fb52 bl 80090ac + 8003a08: 4603 mov r3, r0 + 8003a0a: f003 0308 and.w r3, r3, #8 + 8003a0e: 2b08 cmp r3, #8 + 8003a10: d10a bne.n 8003a28 { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->SOFCallback(hpcd); #else HAL_PCD_SOFCallback(hpcd); - 800395a: 6878 ldr r0, [r7, #4] - 800395c: f007 fc1f bl 800b19e + 8003a12: 6878 ldr r0, [r7, #4] + 8003a14: f007 fc1f bl 800b256 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_SOF); - 8003960: 687b ldr r3, [r7, #4] - 8003962: 681b ldr r3, [r3, #0] - 8003964: 695a ldr r2, [r3, #20] - 8003966: 687b ldr r3, [r7, #4] - 8003968: 681b ldr r3, [r3, #0] - 800396a: f002 0208 and.w r2, r2, #8 - 800396e: 615a str r2, [r3, #20] + 8003a18: 687b ldr r3, [r7, #4] + 8003a1a: 681b ldr r3, [r3, #0] + 8003a1c: 695a ldr r2, [r3, #20] + 8003a1e: 687b ldr r3, [r7, #4] + 8003a20: 681b ldr r3, [r3, #0] + 8003a22: f002 0208 and.w r2, r2, #8 + 8003a26: 615a str r2, [r3, #20] } /* Handle Global OUT NAK effective Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_BOUTNAKEFF)) - 8003970: 687b ldr r3, [r7, #4] - 8003972: 681b ldr r3, [r3, #0] - 8003974: 4618 mov r0, r3 - 8003976: f005 fb3d bl 8008ff4 - 800397a: 4603 mov r3, r0 - 800397c: f003 0380 and.w r3, r3, #128 @ 0x80 - 8003980: 2b80 cmp r3, #128 @ 0x80 - 8003982: d123 bne.n 80039cc + 8003a28: 687b ldr r3, [r7, #4] + 8003a2a: 681b ldr r3, [r3, #0] + 8003a2c: 4618 mov r0, r3 + 8003a2e: f005 fb3d bl 80090ac + 8003a32: 4603 mov r3, r0 + 8003a34: f003 0380 and.w r3, r3, #128 @ 0x80 + 8003a38: 2b80 cmp r3, #128 @ 0x80 + 8003a3a: d123 bne.n 8003a84 { USBx->GINTMSK &= ~USB_OTG_GINTMSK_GONAKEFFM; - 8003984: 6a3b ldr r3, [r7, #32] - 8003986: 699b ldr r3, [r3, #24] - 8003988: f023 0280 bic.w r2, r3, #128 @ 0x80 - 800398c: 6a3b ldr r3, [r7, #32] - 800398e: 619a str r2, [r3, #24] + 8003a3c: 6a3b ldr r3, [r7, #32] + 8003a3e: 699b ldr r3, [r3, #24] + 8003a40: f023 0280 bic.w r2, r3, #128 @ 0x80 + 8003a44: 6a3b ldr r3, [r7, #32] + 8003a46: 619a str r2, [r3, #24] for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 8003990: 2301 movs r3, #1 - 8003992: 627b str r3, [r7, #36] @ 0x24 - 8003994: e014 b.n 80039c0 + 8003a48: 2301 movs r3, #1 + 8003a4a: 627b str r3, [r7, #36] @ 0x24 + 8003a4c: e014 b.n 8003a78 { if (hpcd->OUT_ep[epnum].is_iso_incomplete == 1U) - 8003996: 6879 ldr r1, [r7, #4] - 8003998: 6a7a ldr r2, [r7, #36] @ 0x24 - 800399a: 4613 mov r3, r2 - 800399c: 00db lsls r3, r3, #3 - 800399e: 4413 add r3, r2 - 80039a0: 009b lsls r3, r3, #2 - 80039a2: 440b add r3, r1 - 80039a4: f203 2357 addw r3, r3, #599 @ 0x257 - 80039a8: 781b ldrb r3, [r3, #0] - 80039aa: 2b01 cmp r3, #1 - 80039ac: d105 bne.n 80039ba + 8003a4e: 6879 ldr r1, [r7, #4] + 8003a50: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003a52: 4613 mov r3, r2 + 8003a54: 00db lsls r3, r3, #3 + 8003a56: 4413 add r3, r2 + 8003a58: 009b lsls r3, r3, #2 + 8003a5a: 440b add r3, r1 + 8003a5c: f203 2357 addw r3, r3, #599 @ 0x257 + 8003a60: 781b ldrb r3, [r3, #0] + 8003a62: 2b01 cmp r3, #1 + 8003a64: d105 bne.n 8003a72 { /* Abort current transaction and disable the EP */ (void)HAL_PCD_EP_Abort(hpcd, (uint8_t)epnum); - 80039ae: 6a7b ldr r3, [r7, #36] @ 0x24 - 80039b0: b2db uxtb r3, r3 - 80039b2: 4619 mov r1, r3 - 80039b4: 6878 ldr r0, [r7, #4] - 80039b6: f000 faf2 bl 8003f9e + 8003a66: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003a68: b2db uxtb r3, r3 + 8003a6a: 4619 mov r1, r3 + 8003a6c: 6878 ldr r0, [r7, #4] + 8003a6e: f000 faf2 bl 8004056 for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 80039ba: 6a7b ldr r3, [r7, #36] @ 0x24 - 80039bc: 3301 adds r3, #1 - 80039be: 627b str r3, [r7, #36] @ 0x24 - 80039c0: 687b ldr r3, [r7, #4] - 80039c2: 791b ldrb r3, [r3, #4] - 80039c4: 461a mov r2, r3 - 80039c6: 6a7b ldr r3, [r7, #36] @ 0x24 - 80039c8: 4293 cmp r3, r2 - 80039ca: d3e4 bcc.n 8003996 + 8003a72: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003a74: 3301 adds r3, #1 + 8003a76: 627b str r3, [r7, #36] @ 0x24 + 8003a78: 687b ldr r3, [r7, #4] + 8003a7a: 791b ldrb r3, [r3, #4] + 8003a7c: 461a mov r2, r3 + 8003a7e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003a80: 4293 cmp r3, r2 + 8003a82: d3e4 bcc.n 8003a4e } } } /* Handle Incomplete ISO IN Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_IISOIXFR)) - 80039cc: 687b ldr r3, [r7, #4] - 80039ce: 681b ldr r3, [r3, #0] - 80039d0: 4618 mov r0, r3 - 80039d2: f005 fb0f bl 8008ff4 - 80039d6: 4603 mov r3, r0 - 80039d8: f403 1380 and.w r3, r3, #1048576 @ 0x100000 - 80039dc: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 - 80039e0: d13c bne.n 8003a5c + 8003a84: 687b ldr r3, [r7, #4] + 8003a86: 681b ldr r3, [r3, #0] + 8003a88: 4618 mov r0, r3 + 8003a8a: f005 fb0f bl 80090ac + 8003a8e: 4603 mov r3, r0 + 8003a90: f403 1380 and.w r3, r3, #1048576 @ 0x100000 + 8003a94: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 + 8003a98: d13c bne.n 8003b14 { for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 80039e2: 2301 movs r3, #1 - 80039e4: 627b str r3, [r7, #36] @ 0x24 - 80039e6: e02b b.n 8003a40 + 8003a9a: 2301 movs r3, #1 + 8003a9c: 627b str r3, [r7, #36] @ 0x24 + 8003a9e: e02b b.n 8003af8 { RegVal = USBx_INEP(epnum)->DIEPCTL; - 80039e8: 6a7b ldr r3, [r7, #36] @ 0x24 - 80039ea: 015a lsls r2, r3, #5 - 80039ec: 69fb ldr r3, [r7, #28] - 80039ee: 4413 add r3, r2 - 80039f0: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80039f4: 681b ldr r3, [r3, #0] - 80039f6: 61bb str r3, [r7, #24] + 8003aa0: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003aa2: 015a lsls r2, r3, #5 + 8003aa4: 69fb ldr r3, [r7, #28] + 8003aa6: 4413 add r3, r2 + 8003aa8: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8003aac: 681b ldr r3, [r3, #0] + 8003aae: 61bb str r3, [r7, #24] if ((hpcd->IN_ep[epnum].type == EP_TYPE_ISOC) && - 80039f8: 6879 ldr r1, [r7, #4] - 80039fa: 6a7a ldr r2, [r7, #36] @ 0x24 - 80039fc: 4613 mov r3, r2 - 80039fe: 00db lsls r3, r3, #3 - 8003a00: 4413 add r3, r2 - 8003a02: 009b lsls r3, r3, #2 - 8003a04: 440b add r3, r1 - 8003a06: 3318 adds r3, #24 - 8003a08: 781b ldrb r3, [r3, #0] - 8003a0a: 2b01 cmp r3, #1 - 8003a0c: d115 bne.n 8003a3a + 8003ab0: 6879 ldr r1, [r7, #4] + 8003ab2: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003ab4: 4613 mov r3, r2 + 8003ab6: 00db lsls r3, r3, #3 + 8003ab8: 4413 add r3, r2 + 8003aba: 009b lsls r3, r3, #2 + 8003abc: 440b add r3, r1 + 8003abe: 3318 adds r3, #24 + 8003ac0: 781b ldrb r3, [r3, #0] + 8003ac2: 2b01 cmp r3, #1 + 8003ac4: d115 bne.n 8003af2 ((RegVal & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA)) - 8003a0e: 69bb ldr r3, [r7, #24] + 8003ac6: 69bb ldr r3, [r7, #24] if ((hpcd->IN_ep[epnum].type == EP_TYPE_ISOC) && - 8003a10: 2b00 cmp r3, #0 - 8003a12: da12 bge.n 8003a3a + 8003ac8: 2b00 cmp r3, #0 + 8003aca: da12 bge.n 8003af2 { hpcd->IN_ep[epnum].is_iso_incomplete = 1U; - 8003a14: 6879 ldr r1, [r7, #4] - 8003a16: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003a18: 4613 mov r3, r2 - 8003a1a: 00db lsls r3, r3, #3 - 8003a1c: 4413 add r3, r2 - 8003a1e: 009b lsls r3, r3, #2 - 8003a20: 440b add r3, r1 - 8003a22: 3317 adds r3, #23 - 8003a24: 2201 movs r2, #1 - 8003a26: 701a strb r2, [r3, #0] + 8003acc: 6879 ldr r1, [r7, #4] + 8003ace: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003ad0: 4613 mov r3, r2 + 8003ad2: 00db lsls r3, r3, #3 + 8003ad4: 4413 add r3, r2 + 8003ad6: 009b lsls r3, r3, #2 + 8003ad8: 440b add r3, r1 + 8003ada: 3317 adds r3, #23 + 8003adc: 2201 movs r2, #1 + 8003ade: 701a strb r2, [r3, #0] /* Abort current transaction and disable the EP */ (void)HAL_PCD_EP_Abort(hpcd, (uint8_t)(epnum | 0x80U)); - 8003a28: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003a2a: b2db uxtb r3, r3 - 8003a2c: f063 037f orn r3, r3, #127 @ 0x7f - 8003a30: b2db uxtb r3, r3 - 8003a32: 4619 mov r1, r3 - 8003a34: 6878 ldr r0, [r7, #4] - 8003a36: f000 fab2 bl 8003f9e + 8003ae0: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003ae2: b2db uxtb r3, r3 + 8003ae4: f063 037f orn r3, r3, #127 @ 0x7f + 8003ae8: b2db uxtb r3, r3 + 8003aea: 4619 mov r1, r3 + 8003aec: 6878 ldr r0, [r7, #4] + 8003aee: f000 fab2 bl 8004056 for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 8003a3a: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003a3c: 3301 adds r3, #1 - 8003a3e: 627b str r3, [r7, #36] @ 0x24 - 8003a40: 687b ldr r3, [r7, #4] - 8003a42: 791b ldrb r3, [r3, #4] - 8003a44: 461a mov r2, r3 - 8003a46: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003a48: 4293 cmp r3, r2 - 8003a4a: d3cd bcc.n 80039e8 + 8003af2: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003af4: 3301 adds r3, #1 + 8003af6: 627b str r3, [r7, #36] @ 0x24 + 8003af8: 687b ldr r3, [r7, #4] + 8003afa: 791b ldrb r3, [r3, #4] + 8003afc: 461a mov r2, r3 + 8003afe: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003b00: 4293 cmp r3, r2 + 8003b02: d3cd bcc.n 8003aa0 } } __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_IISOIXFR); - 8003a4c: 687b ldr r3, [r7, #4] - 8003a4e: 681b ldr r3, [r3, #0] - 8003a50: 695a ldr r2, [r3, #20] - 8003a52: 687b ldr r3, [r7, #4] - 8003a54: 681b ldr r3, [r3, #0] - 8003a56: f402 1280 and.w r2, r2, #1048576 @ 0x100000 - 8003a5a: 615a str r2, [r3, #20] + 8003b04: 687b ldr r3, [r7, #4] + 8003b06: 681b ldr r3, [r3, #0] + 8003b08: 695a ldr r2, [r3, #20] + 8003b0a: 687b ldr r3, [r7, #4] + 8003b0c: 681b ldr r3, [r3, #0] + 8003b0e: f402 1280 and.w r2, r2, #1048576 @ 0x100000 + 8003b12: 615a str r2, [r3, #20] } /* Handle Incomplete ISO OUT Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_PXFR_INCOMPISOOUT)) - 8003a5c: 687b ldr r3, [r7, #4] - 8003a5e: 681b ldr r3, [r3, #0] - 8003a60: 4618 mov r0, r3 - 8003a62: f005 fac7 bl 8008ff4 - 8003a66: 4603 mov r3, r0 - 8003a68: f403 1300 and.w r3, r3, #2097152 @ 0x200000 - 8003a6c: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000 - 8003a70: d156 bne.n 8003b20 + 8003b14: 687b ldr r3, [r7, #4] + 8003b16: 681b ldr r3, [r3, #0] + 8003b18: 4618 mov r0, r3 + 8003b1a: f005 fac7 bl 80090ac + 8003b1e: 4603 mov r3, r0 + 8003b20: f403 1300 and.w r3, r3, #2097152 @ 0x200000 + 8003b24: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000 + 8003b28: d156 bne.n 8003bd8 { for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 8003a72: 2301 movs r3, #1 - 8003a74: 627b str r3, [r7, #36] @ 0x24 - 8003a76: e045 b.n 8003b04 + 8003b2a: 2301 movs r3, #1 + 8003b2c: 627b str r3, [r7, #36] @ 0x24 + 8003b2e: e045 b.n 8003bbc { RegVal = USBx_OUTEP(epnum)->DOEPCTL; - 8003a78: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003a7a: 015a lsls r2, r3, #5 - 8003a7c: 69fb ldr r3, [r7, #28] - 8003a7e: 4413 add r3, r2 - 8003a80: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8003a84: 681b ldr r3, [r3, #0] - 8003a86: 61bb str r3, [r7, #24] + 8003b30: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003b32: 015a lsls r2, r3, #5 + 8003b34: 69fb ldr r3, [r7, #28] + 8003b36: 4413 add r3, r2 + 8003b38: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8003b3c: 681b ldr r3, [r3, #0] + 8003b3e: 61bb str r3, [r7, #24] if ((hpcd->OUT_ep[epnum].type == EP_TYPE_ISOC) && - 8003a88: 6879 ldr r1, [r7, #4] - 8003a8a: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003a8c: 4613 mov r3, r2 - 8003a8e: 00db lsls r3, r3, #3 - 8003a90: 4413 add r3, r2 - 8003a92: 009b lsls r3, r3, #2 - 8003a94: 440b add r3, r1 - 8003a96: f503 7316 add.w r3, r3, #600 @ 0x258 - 8003a9a: 781b ldrb r3, [r3, #0] - 8003a9c: 2b01 cmp r3, #1 - 8003a9e: d12e bne.n 8003afe + 8003b40: 6879 ldr r1, [r7, #4] + 8003b42: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003b44: 4613 mov r3, r2 + 8003b46: 00db lsls r3, r3, #3 + 8003b48: 4413 add r3, r2 + 8003b4a: 009b lsls r3, r3, #2 + 8003b4c: 440b add r3, r1 + 8003b4e: f503 7316 add.w r3, r3, #600 @ 0x258 + 8003b52: 781b ldrb r3, [r3, #0] + 8003b54: 2b01 cmp r3, #1 + 8003b56: d12e bne.n 8003bb6 ((RegVal & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) && - 8003aa0: 69bb ldr r3, [r7, #24] + 8003b58: 69bb ldr r3, [r7, #24] if ((hpcd->OUT_ep[epnum].type == EP_TYPE_ISOC) && - 8003aa2: 2b00 cmp r3, #0 - 8003aa4: da2b bge.n 8003afe + 8003b5a: 2b00 cmp r3, #0 + 8003b5c: da2b bge.n 8003bb6 (((RegVal & (0x1U << 16)) >> 16U) == (hpcd->FrameNumber & 0x1U))) - 8003aa6: 69bb ldr r3, [r7, #24] - 8003aa8: 0c1a lsrs r2, r3, #16 - 8003aaa: 687b ldr r3, [r7, #4] - 8003aac: f8d3 34d4 ldr.w r3, [r3, #1236] @ 0x4d4 - 8003ab0: 4053 eors r3, r2 - 8003ab2: f003 0301 and.w r3, r3, #1 + 8003b5e: 69bb ldr r3, [r7, #24] + 8003b60: 0c1a lsrs r2, r3, #16 + 8003b62: 687b ldr r3, [r7, #4] + 8003b64: f8d3 34d4 ldr.w r3, [r3, #1236] @ 0x4d4 + 8003b68: 4053 eors r3, r2 + 8003b6a: f003 0301 and.w r3, r3, #1 ((RegVal & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) && - 8003ab6: 2b00 cmp r3, #0 - 8003ab8: d121 bne.n 8003afe + 8003b6e: 2b00 cmp r3, #0 + 8003b70: d121 bne.n 8003bb6 { hpcd->OUT_ep[epnum].is_iso_incomplete = 1U; - 8003aba: 6879 ldr r1, [r7, #4] - 8003abc: 6a7a ldr r2, [r7, #36] @ 0x24 - 8003abe: 4613 mov r3, r2 - 8003ac0: 00db lsls r3, r3, #3 - 8003ac2: 4413 add r3, r2 - 8003ac4: 009b lsls r3, r3, #2 - 8003ac6: 440b add r3, r1 - 8003ac8: f203 2357 addw r3, r3, #599 @ 0x257 - 8003acc: 2201 movs r2, #1 - 8003ace: 701a strb r2, [r3, #0] + 8003b72: 6879 ldr r1, [r7, #4] + 8003b74: 6a7a ldr r2, [r7, #36] @ 0x24 + 8003b76: 4613 mov r3, r2 + 8003b78: 00db lsls r3, r3, #3 + 8003b7a: 4413 add r3, r2 + 8003b7c: 009b lsls r3, r3, #2 + 8003b7e: 440b add r3, r1 + 8003b80: f203 2357 addw r3, r3, #599 @ 0x257 + 8003b84: 2201 movs r2, #1 + 8003b86: 701a strb r2, [r3, #0] USBx->GINTMSK |= USB_OTG_GINTMSK_GONAKEFFM; - 8003ad0: 6a3b ldr r3, [r7, #32] - 8003ad2: 699b ldr r3, [r3, #24] - 8003ad4: f043 0280 orr.w r2, r3, #128 @ 0x80 - 8003ad8: 6a3b ldr r3, [r7, #32] - 8003ada: 619a str r2, [r3, #24] + 8003b88: 6a3b ldr r3, [r7, #32] + 8003b8a: 699b ldr r3, [r3, #24] + 8003b8c: f043 0280 orr.w r2, r3, #128 @ 0x80 + 8003b90: 6a3b ldr r3, [r7, #32] + 8003b92: 619a str r2, [r3, #24] if ((USBx->GINTSTS & USB_OTG_GINTSTS_BOUTNAKEFF) == 0U) - 8003adc: 6a3b ldr r3, [r7, #32] - 8003ade: 695b ldr r3, [r3, #20] - 8003ae0: f003 0380 and.w r3, r3, #128 @ 0x80 - 8003ae4: 2b00 cmp r3, #0 - 8003ae6: d10a bne.n 8003afe + 8003b94: 6a3b ldr r3, [r7, #32] + 8003b96: 695b ldr r3, [r3, #20] + 8003b98: f003 0380 and.w r3, r3, #128 @ 0x80 + 8003b9c: 2b00 cmp r3, #0 + 8003b9e: d10a bne.n 8003bb6 { USBx_DEVICE->DCTL |= USB_OTG_DCTL_SGONAK; - 8003ae8: 69fb ldr r3, [r7, #28] - 8003aea: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8003aee: 685b ldr r3, [r3, #4] - 8003af0: 69fa ldr r2, [r7, #28] - 8003af2: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8003af6: f443 7300 orr.w r3, r3, #512 @ 0x200 - 8003afa: 6053 str r3, [r2, #4] + 8003ba0: 69fb ldr r3, [r7, #28] + 8003ba2: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8003ba6: 685b ldr r3, [r3, #4] + 8003ba8: 69fa ldr r2, [r7, #28] + 8003baa: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8003bae: f443 7300 orr.w r3, r3, #512 @ 0x200 + 8003bb2: 6053 str r3, [r2, #4] break; - 8003afc: e008 b.n 8003b10 + 8003bb4: e008 b.n 8003bc8 for (epnum = 1U; epnum < hpcd->Init.dev_endpoints; epnum++) - 8003afe: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003b00: 3301 adds r3, #1 - 8003b02: 627b str r3, [r7, #36] @ 0x24 - 8003b04: 687b ldr r3, [r7, #4] - 8003b06: 791b ldrb r3, [r3, #4] - 8003b08: 461a mov r2, r3 - 8003b0a: 6a7b ldr r3, [r7, #36] @ 0x24 - 8003b0c: 4293 cmp r3, r2 - 8003b0e: d3b3 bcc.n 8003a78 + 8003bb6: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003bb8: 3301 adds r3, #1 + 8003bba: 627b str r3, [r7, #36] @ 0x24 + 8003bbc: 687b ldr r3, [r7, #4] + 8003bbe: 791b ldrb r3, [r3, #4] + 8003bc0: 461a mov r2, r3 + 8003bc2: 6a7b ldr r3, [r7, #36] @ 0x24 + 8003bc4: 4293 cmp r3, r2 + 8003bc6: d3b3 bcc.n 8003b30 } } } __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_PXFR_INCOMPISOOUT); - 8003b10: 687b ldr r3, [r7, #4] - 8003b12: 681b ldr r3, [r3, #0] - 8003b14: 695a ldr r2, [r3, #20] - 8003b16: 687b ldr r3, [r7, #4] - 8003b18: 681b ldr r3, [r3, #0] - 8003b1a: f402 1200 and.w r2, r2, #2097152 @ 0x200000 - 8003b1e: 615a str r2, [r3, #20] + 8003bc8: 687b ldr r3, [r7, #4] + 8003bca: 681b ldr r3, [r3, #0] + 8003bcc: 695a ldr r2, [r3, #20] + 8003bce: 687b ldr r3, [r7, #4] + 8003bd0: 681b ldr r3, [r3, #0] + 8003bd2: f402 1200 and.w r2, r2, #2097152 @ 0x200000 + 8003bd6: 615a str r2, [r3, #20] } /* Handle Connection event Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_SRQINT)) - 8003b20: 687b ldr r3, [r7, #4] - 8003b22: 681b ldr r3, [r3, #0] - 8003b24: 4618 mov r0, r3 - 8003b26: f005 fa65 bl 8008ff4 - 8003b2a: 4603 mov r3, r0 - 8003b2c: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000 - 8003b30: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8003b34: d10a bne.n 8003b4c + 8003bd8: 687b ldr r3, [r7, #4] + 8003bda: 681b ldr r3, [r3, #0] + 8003bdc: 4618 mov r0, r3 + 8003bde: f005 fa65 bl 80090ac + 8003be2: 4603 mov r3, r0 + 8003be4: f003 4380 and.w r3, r3, #1073741824 @ 0x40000000 + 8003be8: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8003bec: d10a bne.n 8003c04 { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->ConnectCallback(hpcd); #else HAL_PCD_ConnectCallback(hpcd); - 8003b36: 6878 ldr r0, [r7, #4] - 8003b38: f007 fbc0 bl 800b2bc + 8003bee: 6878 ldr r0, [r7, #4] + 8003bf0: f007 fbc0 bl 800b374 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ __HAL_PCD_CLEAR_FLAG(hpcd, USB_OTG_GINTSTS_SRQINT); - 8003b3c: 687b ldr r3, [r7, #4] - 8003b3e: 681b ldr r3, [r3, #0] - 8003b40: 695a ldr r2, [r3, #20] - 8003b42: 687b ldr r3, [r7, #4] - 8003b44: 681b ldr r3, [r3, #0] - 8003b46: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000 - 8003b4a: 615a str r2, [r3, #20] + 8003bf4: 687b ldr r3, [r7, #4] + 8003bf6: 681b ldr r3, [r3, #0] + 8003bf8: 695a ldr r2, [r3, #20] + 8003bfa: 687b ldr r3, [r7, #4] + 8003bfc: 681b ldr r3, [r3, #0] + 8003bfe: f002 4280 and.w r2, r2, #1073741824 @ 0x40000000 + 8003c02: 615a str r2, [r3, #20] } /* Handle Disconnection event Interrupt */ if (__HAL_PCD_GET_FLAG(hpcd, USB_OTG_GINTSTS_OTGINT)) - 8003b4c: 687b ldr r3, [r7, #4] - 8003b4e: 681b ldr r3, [r3, #0] - 8003b50: 4618 mov r0, r3 - 8003b52: f005 fa4f bl 8008ff4 - 8003b56: 4603 mov r3, r0 - 8003b58: f003 0304 and.w r3, r3, #4 - 8003b5c: 2b04 cmp r3, #4 - 8003b5e: d115 bne.n 8003b8c + 8003c04: 687b ldr r3, [r7, #4] + 8003c06: 681b ldr r3, [r3, #0] + 8003c08: 4618 mov r0, r3 + 8003c0a: f005 fa4f bl 80090ac + 8003c0e: 4603 mov r3, r0 + 8003c10: f003 0304 and.w r3, r3, #4 + 8003c14: 2b04 cmp r3, #4 + 8003c16: d115 bne.n 8003c44 { RegVal = hpcd->Instance->GOTGINT; - 8003b60: 687b ldr r3, [r7, #4] - 8003b62: 681b ldr r3, [r3, #0] - 8003b64: 685b ldr r3, [r3, #4] - 8003b66: 61bb str r3, [r7, #24] + 8003c18: 687b ldr r3, [r7, #4] + 8003c1a: 681b ldr r3, [r3, #0] + 8003c1c: 685b ldr r3, [r3, #4] + 8003c1e: 61bb str r3, [r7, #24] if ((RegVal & USB_OTG_GOTGINT_SEDET) == USB_OTG_GOTGINT_SEDET) - 8003b68: 69bb ldr r3, [r7, #24] - 8003b6a: f003 0304 and.w r3, r3, #4 - 8003b6e: 2b00 cmp r3, #0 - 8003b70: d002 beq.n 8003b78 + 8003c20: 69bb ldr r3, [r7, #24] + 8003c22: f003 0304 and.w r3, r3, #4 + 8003c26: 2b00 cmp r3, #0 + 8003c28: d002 beq.n 8003c30 { #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->DisconnectCallback(hpcd); #else HAL_PCD_DisconnectCallback(hpcd); - 8003b72: 6878 ldr r0, [r7, #4] - 8003b74: f007 fbb0 bl 800b2d8 + 8003c2a: 6878 ldr r0, [r7, #4] + 8003c2c: f007 fbb0 bl 800b390 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } hpcd->Instance->GOTGINT |= RegVal; - 8003b78: 687b ldr r3, [r7, #4] - 8003b7a: 681b ldr r3, [r3, #0] - 8003b7c: 6859 ldr r1, [r3, #4] - 8003b7e: 687b ldr r3, [r7, #4] - 8003b80: 681b ldr r3, [r3, #0] - 8003b82: 69ba ldr r2, [r7, #24] - 8003b84: 430a orrs r2, r1 - 8003b86: 605a str r2, [r3, #4] - 8003b88: e000 b.n 8003b8c + 8003c30: 687b ldr r3, [r7, #4] + 8003c32: 681b ldr r3, [r3, #0] + 8003c34: 6859 ldr r1, [r3, #4] + 8003c36: 687b ldr r3, [r7, #4] + 8003c38: 681b ldr r3, [r3, #0] + 8003c3a: 69ba ldr r2, [r7, #24] + 8003c3c: 430a orrs r2, r1 + 8003c3e: 605a str r2, [r3, #4] + 8003c40: e000 b.n 8003c44 return; - 8003b8a: bf00 nop + 8003c42: bf00 nop } } } - 8003b8c: 3734 adds r7, #52 @ 0x34 - 8003b8e: 46bd mov sp, r7 - 8003b90: bd90 pop {r4, r7, pc} + 8003c44: 3734 adds r7, #52 @ 0x34 + 8003c46: 46bd mov sp, r7 + 8003c48: bd90 pop {r4, r7, pc} -08003b92 : +08003c4a : * @param hpcd PCD handle * @param address new device address * @retval HAL status */ HAL_StatusTypeDef HAL_PCD_SetAddress(PCD_HandleTypeDef *hpcd, uint8_t address) { - 8003b92: b580 push {r7, lr} - 8003b94: b082 sub sp, #8 - 8003b96: af00 add r7, sp, #0 - 8003b98: 6078 str r0, [r7, #4] - 8003b9a: 460b mov r3, r1 - 8003b9c: 70fb strb r3, [r7, #3] + 8003c4a: b580 push {r7, lr} + 8003c4c: b082 sub sp, #8 + 8003c4e: af00 add r7, sp, #0 + 8003c50: 6078 str r0, [r7, #4] + 8003c52: 460b mov r3, r1 + 8003c54: 70fb strb r3, [r7, #3] __HAL_LOCK(hpcd); - 8003b9e: 687b ldr r3, [r7, #4] - 8003ba0: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003ba4: 2b01 cmp r3, #1 - 8003ba6: d101 bne.n 8003bac - 8003ba8: 2302 movs r3, #2 - 8003baa: e012 b.n 8003bd2 - 8003bac: 687b ldr r3, [r7, #4] - 8003bae: 2201 movs r2, #1 - 8003bb0: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003c56: 687b ldr r3, [r7, #4] + 8003c58: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8003c5c: 2b01 cmp r3, #1 + 8003c5e: d101 bne.n 8003c64 + 8003c60: 2302 movs r3, #2 + 8003c62: e012 b.n 8003c8a + 8003c64: 687b ldr r3, [r7, #4] + 8003c66: 2201 movs r2, #1 + 8003c68: f883 2494 strb.w r2, [r3, #1172] @ 0x494 hpcd->USB_Address = address; - 8003bb4: 687b ldr r3, [r7, #4] - 8003bb6: 78fa ldrb r2, [r7, #3] - 8003bb8: 745a strb r2, [r3, #17] + 8003c6c: 687b ldr r3, [r7, #4] + 8003c6e: 78fa ldrb r2, [r7, #3] + 8003c70: 745a strb r2, [r3, #17] (void)USB_SetDevAddress(hpcd->Instance, address); - 8003bba: 687b ldr r3, [r7, #4] - 8003bbc: 681b ldr r3, [r3, #0] - 8003bbe: 78fa ldrb r2, [r7, #3] - 8003bc0: 4611 mov r1, r2 - 8003bc2: 4618 mov r0, r3 - 8003bc4: f005 f9ae bl 8008f24 + 8003c72: 687b ldr r3, [r7, #4] + 8003c74: 681b ldr r3, [r3, #0] + 8003c76: 78fa ldrb r2, [r7, #3] + 8003c78: 4611 mov r1, r2 + 8003c7a: 4618 mov r0, r3 + 8003c7c: f005 f9ae bl 8008fdc __HAL_UNLOCK(hpcd); - 8003bc8: 687b ldr r3, [r7, #4] - 8003bca: 2200 movs r2, #0 - 8003bcc: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003c80: 687b ldr r3, [r7, #4] + 8003c82: 2200 movs r2, #0 + 8003c84: f883 2494 strb.w r2, [r3, #1172] @ 0x494 return HAL_OK; - 8003bd0: 2300 movs r3, #0 + 8003c88: 2300 movs r3, #0 } - 8003bd2: 4618 mov r0, r3 - 8003bd4: 3708 adds r7, #8 - 8003bd6: 46bd mov sp, r7 - 8003bd8: bd80 pop {r7, pc} + 8003c8a: 4618 mov r0, r3 + 8003c8c: 3708 adds r7, #8 + 8003c8e: 46bd mov sp, r7 + 8003c90: bd80 pop {r7, pc} -08003bda : +08003c92 : * @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) { - 8003bda: b580 push {r7, lr} - 8003bdc: b084 sub sp, #16 - 8003bde: af00 add r7, sp, #0 - 8003be0: 6078 str r0, [r7, #4] - 8003be2: 4608 mov r0, r1 - 8003be4: 4611 mov r1, r2 - 8003be6: 461a mov r2, r3 - 8003be8: 4603 mov r3, r0 - 8003bea: 70fb strb r3, [r7, #3] - 8003bec: 460b mov r3, r1 - 8003bee: 803b strh r3, [r7, #0] - 8003bf0: 4613 mov r3, r2 - 8003bf2: 70bb strb r3, [r7, #2] + 8003c92: b580 push {r7, lr} + 8003c94: b084 sub sp, #16 + 8003c96: af00 add r7, sp, #0 + 8003c98: 6078 str r0, [r7, #4] + 8003c9a: 4608 mov r0, r1 + 8003c9c: 4611 mov r1, r2 + 8003c9e: 461a mov r2, r3 + 8003ca0: 4603 mov r3, r0 + 8003ca2: 70fb strb r3, [r7, #3] + 8003ca4: 460b mov r3, r1 + 8003ca6: 803b strh r3, [r7, #0] + 8003ca8: 4613 mov r3, r2 + 8003caa: 70bb strb r3, [r7, #2] HAL_StatusTypeDef ret = HAL_OK; - 8003bf4: 2300 movs r3, #0 - 8003bf6: 72fb strb r3, [r7, #11] + 8003cac: 2300 movs r3, #0 + 8003cae: 72fb strb r3, [r7, #11] PCD_EPTypeDef *ep; if ((ep_addr & 0x80U) == 0x80U) - 8003bf8: f997 3003 ldrsb.w r3, [r7, #3] - 8003bfc: 2b00 cmp r3, #0 - 8003bfe: da0f bge.n 8003c20 + 8003cb0: f997 3003 ldrsb.w r3, [r7, #3] + 8003cb4: 2b00 cmp r3, #0 + 8003cb6: da0f bge.n 8003cd8 { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003c00: 78fb ldrb r3, [r7, #3] - 8003c02: f003 020f and.w r2, r3, #15 - 8003c06: 4613 mov r3, r2 - 8003c08: 00db lsls r3, r3, #3 - 8003c0a: 4413 add r3, r2 - 8003c0c: 009b lsls r3, r3, #2 - 8003c0e: 3310 adds r3, #16 - 8003c10: 687a ldr r2, [r7, #4] - 8003c12: 4413 add r3, r2 - 8003c14: 3304 adds r3, #4 - 8003c16: 60fb str r3, [r7, #12] + 8003cb8: 78fb ldrb r3, [r7, #3] + 8003cba: f003 020f and.w r2, r3, #15 + 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] ep->is_in = 1U; - 8003c18: 68fb ldr r3, [r7, #12] - 8003c1a: 2201 movs r2, #1 - 8003c1c: 705a strb r2, [r3, #1] - 8003c1e: e00f b.n 8003c40 + 8003cd0: 68fb ldr r3, [r7, #12] + 8003cd2: 2201 movs r2, #1 + 8003cd4: 705a strb r2, [r3, #1] + 8003cd6: e00f b.n 8003cf8 } 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] + 8003cd8: 78fb ldrb r3, [r7, #3] + 8003cda: f003 020f and.w r2, r3, #15 + 8003cde: 4613 mov r3, r2 + 8003ce0: 00db lsls r3, r3, #3 + 8003ce2: 4413 add r3, r2 + 8003ce4: 009b lsls r3, r3, #2 + 8003ce6: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003cea: 687a ldr r2, [r7, #4] + 8003cec: 4413 add r3, r2 + 8003cee: 3304 adds r3, #4 + 8003cf0: 60fb str r3, [r7, #12] ep->is_in = 0U; - 8003c3a: 68fb ldr r3, [r7, #12] - 8003c3c: 2200 movs r2, #0 - 8003c3e: 705a strb r2, [r3, #1] + 8003cf2: 68fb ldr r3, [r7, #12] + 8003cf4: 2200 movs r2, #0 + 8003cf6: 705a strb r2, [r3, #1] } ep->num = ep_addr & EP_ADDR_MSK; - 8003c40: 78fb ldrb r3, [r7, #3] - 8003c42: f003 030f and.w r3, r3, #15 - 8003c46: b2da uxtb r2, r3 - 8003c48: 68fb ldr r3, [r7, #12] - 8003c4a: 701a strb r2, [r3, #0] + 8003cf8: 78fb ldrb r3, [r7, #3] + 8003cfa: f003 030f and.w r3, r3, #15 + 8003cfe: b2da uxtb r2, r3 + 8003d00: 68fb ldr r3, [r7, #12] + 8003d02: 701a strb r2, [r3, #0] ep->maxpacket = (uint32_t)ep_mps & 0x7FFU; - 8003c4c: 883b ldrh r3, [r7, #0] - 8003c4e: f3c3 020a ubfx r2, r3, #0, #11 - 8003c52: 68fb ldr r3, [r7, #12] - 8003c54: 609a str r2, [r3, #8] + 8003d04: 883b ldrh r3, [r7, #0] + 8003d06: f3c3 020a ubfx r2, r3, #0, #11 + 8003d0a: 68fb ldr r3, [r7, #12] + 8003d0c: 609a str r2, [r3, #8] ep->type = ep_type; - 8003c56: 68fb ldr r3, [r7, #12] - 8003c58: 78ba ldrb r2, [r7, #2] - 8003c5a: 711a strb r2, [r3, #4] + 8003d0e: 68fb ldr r3, [r7, #12] + 8003d10: 78ba ldrb r2, [r7, #2] + 8003d12: 711a strb r2, [r3, #4] if (ep->is_in != 0U) - 8003c5c: 68fb ldr r3, [r7, #12] - 8003c5e: 785b ldrb r3, [r3, #1] - 8003c60: 2b00 cmp r3, #0 - 8003c62: d004 beq.n 8003c6e + 8003d14: 68fb ldr r3, [r7, #12] + 8003d16: 785b ldrb r3, [r3, #1] + 8003d18: 2b00 cmp r3, #0 + 8003d1a: d004 beq.n 8003d26 { /* Assign a Tx FIFO */ ep->tx_fifo_num = ep->num; - 8003c64: 68fb ldr r3, [r7, #12] - 8003c66: 781b ldrb r3, [r3, #0] - 8003c68: 461a mov r2, r3 - 8003c6a: 68fb ldr r3, [r7, #12] - 8003c6c: 835a strh r2, [r3, #26] + 8003d1c: 68fb ldr r3, [r7, #12] + 8003d1e: 781b ldrb r3, [r3, #0] + 8003d20: 461a mov r2, r3 + 8003d22: 68fb ldr r3, [r7, #12] + 8003d24: 835a strh r2, [r3, #26] } /* Set initial data PID. */ if (ep_type == EP_TYPE_BULK) - 8003c6e: 78bb ldrb r3, [r7, #2] - 8003c70: 2b02 cmp r3, #2 - 8003c72: d102 bne.n 8003c7a + 8003d26: 78bb ldrb r3, [r7, #2] + 8003d28: 2b02 cmp r3, #2 + 8003d2a: d102 bne.n 8003d32 { ep->data_pid_start = 0U; - 8003c74: 68fb ldr r3, [r7, #12] - 8003c76: 2200 movs r2, #0 - 8003c78: 715a strb r2, [r3, #5] + 8003d2c: 68fb ldr r3, [r7, #12] + 8003d2e: 2200 movs r2, #0 + 8003d30: 715a strb r2, [r3, #5] } __HAL_LOCK(hpcd); - 8003c7a: 687b ldr r3, [r7, #4] - 8003c7c: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003c80: 2b01 cmp r3, #1 - 8003c82: d101 bne.n 8003c88 - 8003c84: 2302 movs r3, #2 - 8003c86: e00e b.n 8003ca6 - 8003c88: 687b ldr r3, [r7, #4] - 8003c8a: 2201 movs r2, #1 - 8003c8c: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003d32: 687b ldr r3, [r7, #4] + 8003d34: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8003d38: 2b01 cmp r3, #1 + 8003d3a: d101 bne.n 8003d40 + 8003d3c: 2302 movs r3, #2 + 8003d3e: e00e b.n 8003d5e + 8003d40: 687b ldr r3, [r7, #4] + 8003d42: 2201 movs r2, #1 + 8003d44: f883 2494 strb.w r2, [r3, #1172] @ 0x494 (void)USB_ActivateEndpoint(hpcd->Instance, ep); - 8003c90: 687b ldr r3, [r7, #4] - 8003c92: 681b ldr r3, [r3, #0] - 8003c94: 68f9 ldr r1, [r7, #12] - 8003c96: 4618 mov r0, r3 - 8003c98: f004 fb2e bl 80082f8 + 8003d48: 687b ldr r3, [r7, #4] + 8003d4a: 681b ldr r3, [r3, #0] + 8003d4c: 68f9 ldr r1, [r7, #12] + 8003d4e: 4618 mov r0, r3 + 8003d50: f004 fb2e bl 80083b0 __HAL_UNLOCK(hpcd); - 8003c9c: 687b ldr r3, [r7, #4] - 8003c9e: 2200 movs r2, #0 - 8003ca0: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003d54: 687b ldr r3, [r7, #4] + 8003d56: 2200 movs r2, #0 + 8003d58: f883 2494 strb.w r2, [r3, #1172] @ 0x494 return ret; - 8003ca4: 7afb ldrb r3, [r7, #11] + 8003d5c: 7afb ldrb r3, [r7, #11] } - 8003ca6: 4618 mov r0, r3 - 8003ca8: 3710 adds r7, #16 - 8003caa: 46bd mov sp, r7 - 8003cac: bd80 pop {r7, pc} + 8003d5e: 4618 mov r0, r3 + 8003d60: 3710 adds r7, #16 + 8003d62: 46bd mov sp, r7 + 8003d64: bd80 pop {r7, pc} -08003cae : +08003d66 : * @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) { - 8003cae: b580 push {r7, lr} - 8003cb0: b084 sub sp, #16 - 8003cb2: af00 add r7, sp, #0 - 8003cb4: 6078 str r0, [r7, #4] - 8003cb6: 460b mov r3, r1 - 8003cb8: 70fb strb r3, [r7, #3] + 8003d66: b580 push {r7, lr} + 8003d68: b084 sub sp, #16 + 8003d6a: af00 add r7, sp, #0 + 8003d6c: 6078 str r0, [r7, #4] + 8003d6e: 460b mov r3, r1 + 8003d70: 70fb strb r3, [r7, #3] PCD_EPTypeDef *ep; if ((ep_addr & 0x80U) == 0x80U) - 8003cba: f997 3003 ldrsb.w r3, [r7, #3] - 8003cbe: 2b00 cmp r3, #0 - 8003cc0: da0f bge.n 8003ce2 + 8003d72: f997 3003 ldrsb.w r3, [r7, #3] + 8003d76: 2b00 cmp r3, #0 + 8003d78: da0f bge.n 8003d9a { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003cc2: 78fb ldrb r3, [r7, #3] - 8003cc4: f003 020f and.w r2, r3, #15 - 8003cc8: 4613 mov r3, r2 - 8003cca: 00db lsls r3, r3, #3 - 8003ccc: 4413 add r3, r2 - 8003cce: 009b lsls r3, r3, #2 - 8003cd0: 3310 adds r3, #16 - 8003cd2: 687a ldr r2, [r7, #4] - 8003cd4: 4413 add r3, r2 - 8003cd6: 3304 adds r3, #4 - 8003cd8: 60fb str r3, [r7, #12] + 8003d7a: 78fb ldrb r3, [r7, #3] + 8003d7c: f003 020f and.w r2, r3, #15 + 8003d80: 4613 mov r3, r2 + 8003d82: 00db lsls r3, r3, #3 + 8003d84: 4413 add r3, r2 + 8003d86: 009b lsls r3, r3, #2 + 8003d88: 3310 adds r3, #16 + 8003d8a: 687a ldr r2, [r7, #4] + 8003d8c: 4413 add r3, r2 + 8003d8e: 3304 adds r3, #4 + 8003d90: 60fb str r3, [r7, #12] ep->is_in = 1U; - 8003cda: 68fb ldr r3, [r7, #12] - 8003cdc: 2201 movs r2, #1 - 8003cde: 705a strb r2, [r3, #1] - 8003ce0: e00f b.n 8003d02 + 8003d92: 68fb ldr r3, [r7, #12] + 8003d94: 2201 movs r2, #1 + 8003d96: 705a strb r2, [r3, #1] + 8003d98: e00f b.n 8003dba } else { ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 8003ce2: 78fb ldrb r3, [r7, #3] - 8003ce4: f003 020f and.w r2, r3, #15 - 8003ce8: 4613 mov r3, r2 - 8003cea: 00db lsls r3, r3, #3 - 8003cec: 4413 add r3, r2 - 8003cee: 009b lsls r3, r3, #2 - 8003cf0: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003cf4: 687a ldr r2, [r7, #4] - 8003cf6: 4413 add r3, r2 - 8003cf8: 3304 adds r3, #4 - 8003cfa: 60fb str r3, [r7, #12] + 8003d9a: 78fb ldrb r3, [r7, #3] + 8003d9c: f003 020f and.w r2, r3, #15 + 8003da0: 4613 mov r3, r2 + 8003da2: 00db lsls r3, r3, #3 + 8003da4: 4413 add r3, r2 + 8003da6: 009b lsls r3, r3, #2 + 8003da8: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003dac: 687a ldr r2, [r7, #4] + 8003dae: 4413 add r3, r2 + 8003db0: 3304 adds r3, #4 + 8003db2: 60fb str r3, [r7, #12] ep->is_in = 0U; - 8003cfc: 68fb ldr r3, [r7, #12] - 8003cfe: 2200 movs r2, #0 - 8003d00: 705a strb r2, [r3, #1] + 8003db4: 68fb ldr r3, [r7, #12] + 8003db6: 2200 movs r2, #0 + 8003db8: 705a strb r2, [r3, #1] } ep->num = ep_addr & EP_ADDR_MSK; - 8003d02: 78fb ldrb r3, [r7, #3] - 8003d04: f003 030f and.w r3, r3, #15 - 8003d08: b2da uxtb r2, r3 - 8003d0a: 68fb ldr r3, [r7, #12] - 8003d0c: 701a strb r2, [r3, #0] + 8003dba: 78fb ldrb r3, [r7, #3] + 8003dbc: f003 030f and.w r3, r3, #15 + 8003dc0: b2da uxtb r2, r3 + 8003dc2: 68fb ldr r3, [r7, #12] + 8003dc4: 701a strb r2, [r3, #0] __HAL_LOCK(hpcd); - 8003d0e: 687b ldr r3, [r7, #4] - 8003d10: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003d14: 2b01 cmp r3, #1 - 8003d16: d101 bne.n 8003d1c - 8003d18: 2302 movs r3, #2 - 8003d1a: e00e b.n 8003d3a - 8003d1c: 687b ldr r3, [r7, #4] - 8003d1e: 2201 movs r2, #1 - 8003d20: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003dc6: 687b ldr r3, [r7, #4] + 8003dc8: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8003dcc: 2b01 cmp r3, #1 + 8003dce: d101 bne.n 8003dd4 + 8003dd0: 2302 movs r3, #2 + 8003dd2: e00e b.n 8003df2 + 8003dd4: 687b ldr r3, [r7, #4] + 8003dd6: 2201 movs r2, #1 + 8003dd8: f883 2494 strb.w r2, [r3, #1172] @ 0x494 (void)USB_DeactivateEndpoint(hpcd->Instance, ep); - 8003d24: 687b ldr r3, [r7, #4] - 8003d26: 681b ldr r3, [r3, #0] - 8003d28: 68f9 ldr r1, [r7, #12] - 8003d2a: 4618 mov r0, r3 - 8003d2c: f004 fb6c bl 8008408 + 8003ddc: 687b ldr r3, [r7, #4] + 8003dde: 681b ldr r3, [r3, #0] + 8003de0: 68f9 ldr r1, [r7, #12] + 8003de2: 4618 mov r0, r3 + 8003de4: f004 fb6c bl 80084c0 __HAL_UNLOCK(hpcd); - 8003d30: 687b ldr r3, [r7, #4] - 8003d32: 2200 movs r2, #0 - 8003d34: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003de8: 687b ldr r3, [r7, #4] + 8003dea: 2200 movs r2, #0 + 8003dec: f883 2494 strb.w r2, [r3, #1172] @ 0x494 return HAL_OK; - 8003d38: 2300 movs r3, #0 + 8003df0: 2300 movs r3, #0 } - 8003d3a: 4618 mov r0, r3 - 8003d3c: 3710 adds r7, #16 - 8003d3e: 46bd mov sp, r7 - 8003d40: bd80 pop {r7, pc} + 8003df2: 4618 mov r0, r3 + 8003df4: 3710 adds r7, #16 + 8003df6: 46bd mov sp, r7 + 8003df8: bd80 pop {r7, pc} -08003d42 : +08003dfa : * @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) { - 8003d42: b580 push {r7, lr} - 8003d44: b086 sub sp, #24 - 8003d46: af00 add r7, sp, #0 - 8003d48: 60f8 str r0, [r7, #12] - 8003d4a: 607a str r2, [r7, #4] - 8003d4c: 603b str r3, [r7, #0] - 8003d4e: 460b mov r3, r1 - 8003d50: 72fb strb r3, [r7, #11] + 8003dfa: b580 push {r7, lr} + 8003dfc: b086 sub sp, #24 + 8003dfe: af00 add r7, sp, #0 + 8003e00: 60f8 str r0, [r7, #12] + 8003e02: 607a str r2, [r7, #4] + 8003e04: 603b str r3, [r7, #0] + 8003e06: 460b mov r3, r1 + 8003e08: 72fb strb r3, [r7, #11] PCD_EPTypeDef *ep; ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 8003d52: 7afb ldrb r3, [r7, #11] - 8003d54: f003 020f and.w r2, r3, #15 - 8003d58: 4613 mov r3, r2 - 8003d5a: 00db lsls r3, r3, #3 - 8003d5c: 4413 add r3, r2 - 8003d5e: 009b lsls r3, r3, #2 - 8003d60: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003d64: 68fa ldr r2, [r7, #12] - 8003d66: 4413 add r3, r2 - 8003d68: 3304 adds r3, #4 - 8003d6a: 617b str r3, [r7, #20] + 8003e0a: 7afb ldrb r3, [r7, #11] + 8003e0c: f003 020f and.w r2, r3, #15 + 8003e10: 4613 mov r3, r2 + 8003e12: 00db lsls r3, r3, #3 + 8003e14: 4413 add r3, r2 + 8003e16: 009b lsls r3, r3, #2 + 8003e18: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003e1c: 68fa ldr r2, [r7, #12] + 8003e1e: 4413 add r3, r2 + 8003e20: 3304 adds r3, #4 + 8003e22: 617b str r3, [r7, #20] /*setup and start the Xfer */ ep->xfer_buff = pBuf; - 8003d6c: 697b ldr r3, [r7, #20] - 8003d6e: 687a ldr r2, [r7, #4] - 8003d70: 60da str r2, [r3, #12] + 8003e24: 697b ldr r3, [r7, #20] + 8003e26: 687a ldr r2, [r7, #4] + 8003e28: 60da str r2, [r3, #12] ep->xfer_len = len; - 8003d72: 697b ldr r3, [r7, #20] - 8003d74: 683a ldr r2, [r7, #0] - 8003d76: 611a str r2, [r3, #16] + 8003e2a: 697b ldr r3, [r7, #20] + 8003e2c: 683a ldr r2, [r7, #0] + 8003e2e: 611a str r2, [r3, #16] ep->xfer_count = 0U; - 8003d78: 697b ldr r3, [r7, #20] - 8003d7a: 2200 movs r2, #0 - 8003d7c: 615a str r2, [r3, #20] + 8003e30: 697b ldr r3, [r7, #20] + 8003e32: 2200 movs r2, #0 + 8003e34: 615a str r2, [r3, #20] ep->is_in = 0U; - 8003d7e: 697b ldr r3, [r7, #20] - 8003d80: 2200 movs r2, #0 - 8003d82: 705a strb r2, [r3, #1] + 8003e36: 697b ldr r3, [r7, #20] + 8003e38: 2200 movs r2, #0 + 8003e3a: 705a strb r2, [r3, #1] ep->num = ep_addr & EP_ADDR_MSK; - 8003d84: 7afb ldrb r3, [r7, #11] - 8003d86: f003 030f and.w r3, r3, #15 - 8003d8a: b2da uxtb r2, r3 - 8003d8c: 697b ldr r3, [r7, #20] - 8003d8e: 701a strb r2, [r3, #0] + 8003e3c: 7afb ldrb r3, [r7, #11] + 8003e3e: f003 030f and.w r3, r3, #15 + 8003e42: b2da uxtb r2, r3 + 8003e44: 697b ldr r3, [r7, #20] + 8003e46: 701a strb r2, [r3, #0] if (hpcd->Init.dma_enable == 1U) - 8003d90: 68fb ldr r3, [r7, #12] - 8003d92: 799b ldrb r3, [r3, #6] - 8003d94: 2b01 cmp r3, #1 - 8003d96: d102 bne.n 8003d9e + 8003e48: 68fb ldr r3, [r7, #12] + 8003e4a: 799b ldrb r3, [r3, #6] + 8003e4c: 2b01 cmp r3, #1 + 8003e4e: d102 bne.n 8003e56 { ep->dma_addr = (uint32_t)pBuf; - 8003d98: 687a ldr r2, [r7, #4] - 8003d9a: 697b ldr r3, [r7, #20] - 8003d9c: 61da str r2, [r3, #28] + 8003e50: 687a ldr r2, [r7, #4] + 8003e52: 697b ldr r3, [r7, #20] + 8003e54: 61da str r2, [r3, #28] } (void)USB_EPStartXfer(hpcd->Instance, ep, (uint8_t)hpcd->Init.dma_enable); - 8003d9e: 68fb ldr r3, [r7, #12] - 8003da0: 6818 ldr r0, [r3, #0] - 8003da2: 68fb ldr r3, [r7, #12] - 8003da4: 799b ldrb r3, [r3, #6] - 8003da6: 461a mov r2, r3 - 8003da8: 6979 ldr r1, [r7, #20] - 8003daa: f004 fc09 bl 80085c0 + 8003e56: 68fb ldr r3, [r7, #12] + 8003e58: 6818 ldr r0, [r3, #0] + 8003e5a: 68fb ldr r3, [r7, #12] + 8003e5c: 799b ldrb r3, [r3, #6] + 8003e5e: 461a mov r2, r3 + 8003e60: 6979 ldr r1, [r7, #20] + 8003e62: f004 fc09 bl 8008678 return HAL_OK; - 8003dae: 2300 movs r3, #0 + 8003e66: 2300 movs r3, #0 } - 8003db0: 4618 mov r0, r3 - 8003db2: 3718 adds r7, #24 - 8003db4: 46bd mov sp, r7 - 8003db6: bd80 pop {r7, pc} + 8003e68: 4618 mov r0, r3 + 8003e6a: 3718 adds r7, #24 + 8003e6c: 46bd mov sp, r7 + 8003e6e: bd80 pop {r7, pc} -08003db8 : +08003e70 : * @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) { - 8003db8: b580 push {r7, lr} - 8003dba: b086 sub sp, #24 - 8003dbc: af00 add r7, sp, #0 - 8003dbe: 60f8 str r0, [r7, #12] - 8003dc0: 607a str r2, [r7, #4] - 8003dc2: 603b str r3, [r7, #0] - 8003dc4: 460b mov r3, r1 - 8003dc6: 72fb strb r3, [r7, #11] + 8003e70: b580 push {r7, lr} + 8003e72: b086 sub sp, #24 + 8003e74: af00 add r7, sp, #0 + 8003e76: 60f8 str r0, [r7, #12] + 8003e78: 607a str r2, [r7, #4] + 8003e7a: 603b str r3, [r7, #0] + 8003e7c: 460b mov r3, r1 + 8003e7e: 72fb strb r3, [r7, #11] PCD_EPTypeDef *ep; ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003dc8: 7afb ldrb r3, [r7, #11] - 8003dca: f003 020f and.w r2, r3, #15 - 8003dce: 4613 mov r3, r2 - 8003dd0: 00db lsls r3, r3, #3 - 8003dd2: 4413 add r3, r2 - 8003dd4: 009b lsls r3, r3, #2 - 8003dd6: 3310 adds r3, #16 - 8003dd8: 68fa ldr r2, [r7, #12] - 8003dda: 4413 add r3, r2 - 8003ddc: 3304 adds r3, #4 - 8003dde: 617b str r3, [r7, #20] + 8003e80: 7afb ldrb r3, [r7, #11] + 8003e82: f003 020f and.w r2, r3, #15 + 8003e86: 4613 mov r3, r2 + 8003e88: 00db lsls r3, r3, #3 + 8003e8a: 4413 add r3, r2 + 8003e8c: 009b lsls r3, r3, #2 + 8003e8e: 3310 adds r3, #16 + 8003e90: 68fa ldr r2, [r7, #12] + 8003e92: 4413 add r3, r2 + 8003e94: 3304 adds r3, #4 + 8003e96: 617b str r3, [r7, #20] /*setup and start the Xfer */ ep->xfer_buff = pBuf; - 8003de0: 697b ldr r3, [r7, #20] - 8003de2: 687a ldr r2, [r7, #4] - 8003de4: 60da str r2, [r3, #12] + 8003e98: 697b ldr r3, [r7, #20] + 8003e9a: 687a ldr r2, [r7, #4] + 8003e9c: 60da str r2, [r3, #12] ep->xfer_len = len; - 8003de6: 697b ldr r3, [r7, #20] - 8003de8: 683a ldr r2, [r7, #0] - 8003dea: 611a str r2, [r3, #16] + 8003e9e: 697b ldr r3, [r7, #20] + 8003ea0: 683a ldr r2, [r7, #0] + 8003ea2: 611a str r2, [r3, #16] ep->xfer_count = 0U; - 8003dec: 697b ldr r3, [r7, #20] - 8003dee: 2200 movs r2, #0 - 8003df0: 615a str r2, [r3, #20] + 8003ea4: 697b ldr r3, [r7, #20] + 8003ea6: 2200 movs r2, #0 + 8003ea8: 615a str r2, [r3, #20] ep->is_in = 1U; - 8003df2: 697b ldr r3, [r7, #20] - 8003df4: 2201 movs r2, #1 - 8003df6: 705a strb r2, [r3, #1] + 8003eaa: 697b ldr r3, [r7, #20] + 8003eac: 2201 movs r2, #1 + 8003eae: 705a strb r2, [r3, #1] ep->num = ep_addr & EP_ADDR_MSK; - 8003df8: 7afb ldrb r3, [r7, #11] - 8003dfa: f003 030f and.w r3, r3, #15 - 8003dfe: b2da uxtb r2, r3 - 8003e00: 697b ldr r3, [r7, #20] - 8003e02: 701a strb r2, [r3, #0] + 8003eb0: 7afb ldrb r3, [r7, #11] + 8003eb2: f003 030f and.w r3, r3, #15 + 8003eb6: b2da uxtb r2, r3 + 8003eb8: 697b ldr r3, [r7, #20] + 8003eba: 701a strb r2, [r3, #0] if (hpcd->Init.dma_enable == 1U) - 8003e04: 68fb ldr r3, [r7, #12] - 8003e06: 799b ldrb r3, [r3, #6] - 8003e08: 2b01 cmp r3, #1 - 8003e0a: d102 bne.n 8003e12 + 8003ebc: 68fb ldr r3, [r7, #12] + 8003ebe: 799b ldrb r3, [r3, #6] + 8003ec0: 2b01 cmp r3, #1 + 8003ec2: d102 bne.n 8003eca { ep->dma_addr = (uint32_t)pBuf; - 8003e0c: 687a ldr r2, [r7, #4] - 8003e0e: 697b ldr r3, [r7, #20] - 8003e10: 61da str r2, [r3, #28] + 8003ec4: 687a ldr r2, [r7, #4] + 8003ec6: 697b ldr r3, [r7, #20] + 8003ec8: 61da str r2, [r3, #28] } (void)USB_EPStartXfer(hpcd->Instance, ep, (uint8_t)hpcd->Init.dma_enable); - 8003e12: 68fb ldr r3, [r7, #12] - 8003e14: 6818 ldr r0, [r3, #0] - 8003e16: 68fb ldr r3, [r7, #12] - 8003e18: 799b ldrb r3, [r3, #6] - 8003e1a: 461a mov r2, r3 - 8003e1c: 6979 ldr r1, [r7, #20] - 8003e1e: f004 fbcf bl 80085c0 + 8003eca: 68fb ldr r3, [r7, #12] + 8003ecc: 6818 ldr r0, [r3, #0] + 8003ece: 68fb ldr r3, [r7, #12] + 8003ed0: 799b ldrb r3, [r3, #6] + 8003ed2: 461a mov r2, r3 + 8003ed4: 6979 ldr r1, [r7, #20] + 8003ed6: f004 fbcf bl 8008678 return HAL_OK; - 8003e22: 2300 movs r3, #0 + 8003eda: 2300 movs r3, #0 } - 8003e24: 4618 mov r0, r3 - 8003e26: 3718 adds r7, #24 - 8003e28: 46bd mov sp, r7 - 8003e2a: bd80 pop {r7, pc} + 8003edc: 4618 mov r0, r3 + 8003ede: 3718 adds r7, #24 + 8003ee0: 46bd mov sp, r7 + 8003ee2: bd80 pop {r7, pc} -08003e2c : +08003ee4 : * @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) { - 8003e2c: b580 push {r7, lr} - 8003e2e: b084 sub sp, #16 - 8003e30: af00 add r7, sp, #0 - 8003e32: 6078 str r0, [r7, #4] - 8003e34: 460b mov r3, r1 - 8003e36: 70fb strb r3, [r7, #3] + 8003ee4: b580 push {r7, lr} + 8003ee6: b084 sub sp, #16 + 8003ee8: af00 add r7, sp, #0 + 8003eea: 6078 str r0, [r7, #4] + 8003eec: 460b mov r3, r1 + 8003eee: 70fb strb r3, [r7, #3] PCD_EPTypeDef *ep; if (((uint32_t)ep_addr & EP_ADDR_MSK) > hpcd->Init.dev_endpoints) - 8003e38: 78fb ldrb r3, [r7, #3] - 8003e3a: f003 030f and.w r3, r3, #15 - 8003e3e: 687a ldr r2, [r7, #4] - 8003e40: 7912 ldrb r2, [r2, #4] - 8003e42: 4293 cmp r3, r2 - 8003e44: d901 bls.n 8003e4a + 8003ef0: 78fb ldrb r3, [r7, #3] + 8003ef2: f003 030f and.w r3, r3, #15 + 8003ef6: 687a ldr r2, [r7, #4] + 8003ef8: 7912 ldrb r2, [r2, #4] + 8003efa: 4293 cmp r3, r2 + 8003efc: d901 bls.n 8003f02 { return HAL_ERROR; - 8003e46: 2301 movs r3, #1 - 8003e48: e04f b.n 8003eea + 8003efe: 2301 movs r3, #1 + 8003f00: e04f b.n 8003fa2 } if ((0x80U & ep_addr) == 0x80U) - 8003e4a: f997 3003 ldrsb.w r3, [r7, #3] - 8003e4e: 2b00 cmp r3, #0 - 8003e50: da0f bge.n 8003e72 + 8003f02: f997 3003 ldrsb.w r3, [r7, #3] + 8003f06: 2b00 cmp r3, #0 + 8003f08: da0f bge.n 8003f2a { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003e52: 78fb ldrb r3, [r7, #3] - 8003e54: f003 020f and.w r2, r3, #15 - 8003e58: 4613 mov r3, r2 - 8003e5a: 00db lsls r3, r3, #3 - 8003e5c: 4413 add r3, r2 - 8003e5e: 009b lsls r3, r3, #2 - 8003e60: 3310 adds r3, #16 - 8003e62: 687a ldr r2, [r7, #4] - 8003e64: 4413 add r3, r2 - 8003e66: 3304 adds r3, #4 - 8003e68: 60fb str r3, [r7, #12] + 8003f0a: 78fb ldrb r3, [r7, #3] + 8003f0c: f003 020f and.w r2, r3, #15 + 8003f10: 4613 mov r3, r2 + 8003f12: 00db lsls r3, r3, #3 + 8003f14: 4413 add r3, r2 + 8003f16: 009b lsls r3, r3, #2 + 8003f18: 3310 adds r3, #16 + 8003f1a: 687a ldr r2, [r7, #4] + 8003f1c: 4413 add r3, r2 + 8003f1e: 3304 adds r3, #4 + 8003f20: 60fb str r3, [r7, #12] ep->is_in = 1U; - 8003e6a: 68fb ldr r3, [r7, #12] - 8003e6c: 2201 movs r2, #1 - 8003e6e: 705a strb r2, [r3, #1] - 8003e70: e00d b.n 8003e8e + 8003f22: 68fb ldr r3, [r7, #12] + 8003f24: 2201 movs r2, #1 + 8003f26: 705a strb r2, [r3, #1] + 8003f28: e00d b.n 8003f46 } else { ep = &hpcd->OUT_ep[ep_addr]; - 8003e72: 78fa ldrb r2, [r7, #3] - 8003e74: 4613 mov r3, r2 - 8003e76: 00db lsls r3, r3, #3 - 8003e78: 4413 add r3, r2 - 8003e7a: 009b lsls r3, r3, #2 - 8003e7c: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003e80: 687a ldr r2, [r7, #4] - 8003e82: 4413 add r3, r2 - 8003e84: 3304 adds r3, #4 - 8003e86: 60fb str r3, [r7, #12] + 8003f2a: 78fa ldrb r2, [r7, #3] + 8003f2c: 4613 mov r3, r2 + 8003f2e: 00db lsls r3, r3, #3 + 8003f30: 4413 add r3, r2 + 8003f32: 009b lsls r3, r3, #2 + 8003f34: f503 7314 add.w r3, r3, #592 @ 0x250 + 8003f38: 687a ldr r2, [r7, #4] + 8003f3a: 4413 add r3, r2 + 8003f3c: 3304 adds r3, #4 + 8003f3e: 60fb str r3, [r7, #12] ep->is_in = 0U; - 8003e88: 68fb ldr r3, [r7, #12] - 8003e8a: 2200 movs r2, #0 - 8003e8c: 705a strb r2, [r3, #1] + 8003f40: 68fb ldr r3, [r7, #12] + 8003f42: 2200 movs r2, #0 + 8003f44: 705a strb r2, [r3, #1] } ep->is_stall = 1U; - 8003e8e: 68fb ldr r3, [r7, #12] - 8003e90: 2201 movs r2, #1 - 8003e92: 709a strb r2, [r3, #2] + 8003f46: 68fb ldr r3, [r7, #12] + 8003f48: 2201 movs r2, #1 + 8003f4a: 709a strb r2, [r3, #2] ep->num = ep_addr & EP_ADDR_MSK; - 8003e94: 78fb ldrb r3, [r7, #3] - 8003e96: f003 030f and.w r3, r3, #15 - 8003e9a: b2da uxtb r2, r3 - 8003e9c: 68fb ldr r3, [r7, #12] - 8003e9e: 701a strb r2, [r3, #0] + 8003f4c: 78fb ldrb r3, [r7, #3] + 8003f4e: f003 030f and.w r3, r3, #15 + 8003f52: b2da uxtb r2, r3 + 8003f54: 68fb ldr r3, [r7, #12] + 8003f56: 701a strb r2, [r3, #0] __HAL_LOCK(hpcd); - 8003ea0: 687b ldr r3, [r7, #4] - 8003ea2: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003ea6: 2b01 cmp r3, #1 - 8003ea8: d101 bne.n 8003eae - 8003eaa: 2302 movs r3, #2 - 8003eac: e01d b.n 8003eea - 8003eae: 687b ldr r3, [r7, #4] - 8003eb0: 2201 movs r2, #1 - 8003eb2: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003f58: 687b ldr r3, [r7, #4] + 8003f5a: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8003f5e: 2b01 cmp r3, #1 + 8003f60: d101 bne.n 8003f66 + 8003f62: 2302 movs r3, #2 + 8003f64: e01d b.n 8003fa2 + 8003f66: 687b ldr r3, [r7, #4] + 8003f68: 2201 movs r2, #1 + 8003f6a: f883 2494 strb.w r2, [r3, #1172] @ 0x494 (void)USB_EPSetStall(hpcd->Instance, ep); - 8003eb6: 687b ldr r3, [r7, #4] - 8003eb8: 681b ldr r3, [r3, #0] - 8003eba: 68f9 ldr r1, [r7, #12] - 8003ebc: 4618 mov r0, r3 - 8003ebe: f004 ff5d bl 8008d7c + 8003f6e: 687b ldr r3, [r7, #4] + 8003f70: 681b ldr r3, [r3, #0] + 8003f72: 68f9 ldr r1, [r7, #12] + 8003f74: 4618 mov r0, r3 + 8003f76: f004 ff5d bl 8008e34 if ((ep_addr & EP_ADDR_MSK) == 0U) - 8003ec2: 78fb ldrb r3, [r7, #3] - 8003ec4: f003 030f and.w r3, r3, #15 - 8003ec8: 2b00 cmp r3, #0 - 8003eca: d109 bne.n 8003ee0 + 8003f7a: 78fb ldrb r3, [r7, #3] + 8003f7c: f003 030f and.w r3, r3, #15 + 8003f80: 2b00 cmp r3, #0 + 8003f82: d109 bne.n 8003f98 { (void)USB_EP0_OutStart(hpcd->Instance, (uint8_t)hpcd->Init.dma_enable, (uint8_t *)hpcd->Setup); - 8003ecc: 687b ldr r3, [r7, #4] - 8003ece: 6818 ldr r0, [r3, #0] - 8003ed0: 687b ldr r3, [r7, #4] - 8003ed2: 7999 ldrb r1, [r3, #6] - 8003ed4: 687b ldr r3, [r7, #4] - 8003ed6: f203 439c addw r3, r3, #1180 @ 0x49c - 8003eda: 461a mov r2, r3 - 8003edc: f005 f94e bl 800917c + 8003f84: 687b ldr r3, [r7, #4] + 8003f86: 6818 ldr r0, [r3, #0] + 8003f88: 687b ldr r3, [r7, #4] + 8003f8a: 7999 ldrb r1, [r3, #6] + 8003f8c: 687b ldr r3, [r7, #4] + 8003f8e: f203 439c addw r3, r3, #1180 @ 0x49c + 8003f92: 461a mov r2, r3 + 8003f94: f005 f94e bl 8009234 } __HAL_UNLOCK(hpcd); - 8003ee0: 687b ldr r3, [r7, #4] - 8003ee2: 2200 movs r2, #0 - 8003ee4: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8003f98: 687b ldr r3, [r7, #4] + 8003f9a: 2200 movs r2, #0 + 8003f9c: f883 2494 strb.w r2, [r3, #1172] @ 0x494 return HAL_OK; - 8003ee8: 2300 movs r3, #0 + 8003fa0: 2300 movs r3, #0 } - 8003eea: 4618 mov r0, r3 - 8003eec: 3710 adds r7, #16 - 8003eee: 46bd mov sp, r7 - 8003ef0: bd80 pop {r7, pc} + 8003fa2: 4618 mov r0, r3 + 8003fa4: 3710 adds r7, #16 + 8003fa6: 46bd mov sp, r7 + 8003fa8: bd80 pop {r7, pc} -08003ef2 : +08003faa : * @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) { - 8003ef2: b580 push {r7, lr} - 8003ef4: b084 sub sp, #16 - 8003ef6: af00 add r7, sp, #0 - 8003ef8: 6078 str r0, [r7, #4] - 8003efa: 460b mov r3, r1 - 8003efc: 70fb strb r3, [r7, #3] + 8003faa: b580 push {r7, lr} + 8003fac: b084 sub sp, #16 + 8003fae: af00 add r7, sp, #0 + 8003fb0: 6078 str r0, [r7, #4] + 8003fb2: 460b mov r3, r1 + 8003fb4: 70fb strb r3, [r7, #3] PCD_EPTypeDef *ep; if (((uint32_t)ep_addr & 0x0FU) > hpcd->Init.dev_endpoints) - 8003efe: 78fb ldrb r3, [r7, #3] - 8003f00: f003 030f and.w r3, r3, #15 - 8003f04: 687a ldr r2, [r7, #4] - 8003f06: 7912 ldrb r2, [r2, #4] - 8003f08: 4293 cmp r3, r2 - 8003f0a: d901 bls.n 8003f10 + 8003fb6: 78fb ldrb r3, [r7, #3] + 8003fb8: f003 030f and.w r3, r3, #15 + 8003fbc: 687a ldr r2, [r7, #4] + 8003fbe: 7912 ldrb r2, [r2, #4] + 8003fc0: 4293 cmp r3, r2 + 8003fc2: d901 bls.n 8003fc8 { return HAL_ERROR; - 8003f0c: 2301 movs r3, #1 - 8003f0e: e042 b.n 8003f96 + 8003fc4: 2301 movs r3, #1 + 8003fc6: e042 b.n 800404e } if ((0x80U & ep_addr) == 0x80U) - 8003f10: f997 3003 ldrsb.w r3, [r7, #3] - 8003f14: 2b00 cmp r3, #0 - 8003f16: da0f bge.n 8003f38 + 8003fc8: f997 3003 ldrsb.w r3, [r7, #3] + 8003fcc: 2b00 cmp r3, #0 + 8003fce: da0f bge.n 8003ff0 { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003f18: 78fb ldrb r3, [r7, #3] - 8003f1a: f003 020f and.w r2, r3, #15 - 8003f1e: 4613 mov r3, r2 - 8003f20: 00db lsls r3, r3, #3 - 8003f22: 4413 add r3, r2 - 8003f24: 009b lsls r3, r3, #2 - 8003f26: 3310 adds r3, #16 - 8003f28: 687a ldr r2, [r7, #4] - 8003f2a: 4413 add r3, r2 - 8003f2c: 3304 adds r3, #4 - 8003f2e: 60fb str r3, [r7, #12] + 8003fd0: 78fb ldrb r3, [r7, #3] + 8003fd2: f003 020f and.w r2, r3, #15 + 8003fd6: 4613 mov r3, r2 + 8003fd8: 00db lsls r3, r3, #3 + 8003fda: 4413 add r3, r2 + 8003fdc: 009b lsls r3, r3, #2 + 8003fde: 3310 adds r3, #16 + 8003fe0: 687a ldr r2, [r7, #4] + 8003fe2: 4413 add r3, r2 + 8003fe4: 3304 adds r3, #4 + 8003fe6: 60fb str r3, [r7, #12] ep->is_in = 1U; - 8003f30: 68fb ldr r3, [r7, #12] - 8003f32: 2201 movs r2, #1 - 8003f34: 705a strb r2, [r3, #1] - 8003f36: e00f b.n 8003f58 + 8003fe8: 68fb ldr r3, [r7, #12] + 8003fea: 2201 movs r2, #1 + 8003fec: 705a strb r2, [r3, #1] + 8003fee: e00f b.n 8004010 } else { ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 8003f38: 78fb ldrb r3, [r7, #3] - 8003f3a: f003 020f and.w r2, r3, #15 - 8003f3e: 4613 mov r3, r2 - 8003f40: 00db lsls r3, r3, #3 - 8003f42: 4413 add r3, r2 - 8003f44: 009b lsls r3, r3, #2 - 8003f46: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003f4a: 687a ldr r2, [r7, #4] - 8003f4c: 4413 add r3, r2 - 8003f4e: 3304 adds r3, #4 - 8003f50: 60fb str r3, [r7, #12] + 8003ff0: 78fb ldrb r3, [r7, #3] + 8003ff2: f003 020f and.w r2, r3, #15 + 8003ff6: 4613 mov r3, r2 + 8003ff8: 00db lsls r3, r3, #3 + 8003ffa: 4413 add r3, r2 + 8003ffc: 009b lsls r3, r3, #2 + 8003ffe: f503 7314 add.w r3, r3, #592 @ 0x250 + 8004002: 687a ldr r2, [r7, #4] + 8004004: 4413 add r3, r2 + 8004006: 3304 adds r3, #4 + 8004008: 60fb str r3, [r7, #12] ep->is_in = 0U; - 8003f52: 68fb ldr r3, [r7, #12] - 8003f54: 2200 movs r2, #0 - 8003f56: 705a strb r2, [r3, #1] + 800400a: 68fb ldr r3, [r7, #12] + 800400c: 2200 movs r2, #0 + 800400e: 705a strb r2, [r3, #1] } ep->is_stall = 0U; - 8003f58: 68fb ldr r3, [r7, #12] - 8003f5a: 2200 movs r2, #0 - 8003f5c: 709a strb r2, [r3, #2] + 8004010: 68fb ldr r3, [r7, #12] + 8004012: 2200 movs r2, #0 + 8004014: 709a strb r2, [r3, #2] ep->num = ep_addr & EP_ADDR_MSK; - 8003f5e: 78fb ldrb r3, [r7, #3] - 8003f60: f003 030f and.w r3, r3, #15 - 8003f64: b2da uxtb r2, r3 - 8003f66: 68fb ldr r3, [r7, #12] - 8003f68: 701a strb r2, [r3, #0] + 8004016: 78fb ldrb r3, [r7, #3] + 8004018: f003 030f and.w r3, r3, #15 + 800401c: b2da uxtb r2, r3 + 800401e: 68fb ldr r3, [r7, #12] + 8004020: 701a strb r2, [r3, #0] __HAL_LOCK(hpcd); - 8003f6a: 687b ldr r3, [r7, #4] - 8003f6c: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 - 8003f70: 2b01 cmp r3, #1 - 8003f72: d101 bne.n 8003f78 - 8003f74: 2302 movs r3, #2 - 8003f76: e00e b.n 8003f96 - 8003f78: 687b ldr r3, [r7, #4] - 8003f7a: 2201 movs r2, #1 - 8003f7c: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8004022: 687b ldr r3, [r7, #4] + 8004024: f893 3494 ldrb.w r3, [r3, #1172] @ 0x494 + 8004028: 2b01 cmp r3, #1 + 800402a: d101 bne.n 8004030 + 800402c: 2302 movs r3, #2 + 800402e: e00e b.n 800404e + 8004030: 687b ldr r3, [r7, #4] + 8004032: 2201 movs r2, #1 + 8004034: f883 2494 strb.w r2, [r3, #1172] @ 0x494 (void)USB_EPClearStall(hpcd->Instance, ep); - 8003f80: 687b ldr r3, [r7, #4] - 8003f82: 681b ldr r3, [r3, #0] - 8003f84: 68f9 ldr r1, [r7, #12] - 8003f86: 4618 mov r0, r3 - 8003f88: f004 ff66 bl 8008e58 + 8004038: 687b ldr r3, [r7, #4] + 800403a: 681b ldr r3, [r3, #0] + 800403c: 68f9 ldr r1, [r7, #12] + 800403e: 4618 mov r0, r3 + 8004040: f004 ff66 bl 8008f10 __HAL_UNLOCK(hpcd); - 8003f8c: 687b ldr r3, [r7, #4] - 8003f8e: 2200 movs r2, #0 - 8003f90: f883 2494 strb.w r2, [r3, #1172] @ 0x494 + 8004044: 687b ldr r3, [r7, #4] + 8004046: 2200 movs r2, #0 + 8004048: f883 2494 strb.w r2, [r3, #1172] @ 0x494 return HAL_OK; - 8003f94: 2300 movs r3, #0 + 800404c: 2300 movs r3, #0 } - 8003f96: 4618 mov r0, r3 - 8003f98: 3710 adds r7, #16 - 8003f9a: 46bd mov sp, r7 - 8003f9c: bd80 pop {r7, pc} + 800404e: 4618 mov r0, r3 + 8004050: 3710 adds r7, #16 + 8004052: 46bd mov sp, r7 + 8004054: bd80 pop {r7, pc} -08003f9e : +08004056 : * @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) { - 8003f9e: b580 push {r7, lr} - 8003fa0: b084 sub sp, #16 - 8003fa2: af00 add r7, sp, #0 - 8003fa4: 6078 str r0, [r7, #4] - 8003fa6: 460b mov r3, r1 - 8003fa8: 70fb strb r3, [r7, #3] + 8004056: b580 push {r7, lr} + 8004058: b084 sub sp, #16 + 800405a: af00 add r7, sp, #0 + 800405c: 6078 str r0, [r7, #4] + 800405e: 460b mov r3, r1 + 8004060: 70fb strb r3, [r7, #3] HAL_StatusTypeDef ret; PCD_EPTypeDef *ep; if ((0x80U & ep_addr) == 0x80U) - 8003faa: f997 3003 ldrsb.w r3, [r7, #3] - 8003fae: 2b00 cmp r3, #0 - 8003fb0: da0c bge.n 8003fcc + 8004062: f997 3003 ldrsb.w r3, [r7, #3] + 8004066: 2b00 cmp r3, #0 + 8004068: da0c bge.n 8004084 { ep = &hpcd->IN_ep[ep_addr & EP_ADDR_MSK]; - 8003fb2: 78fb ldrb r3, [r7, #3] - 8003fb4: f003 020f and.w r2, r3, #15 - 8003fb8: 4613 mov r3, r2 - 8003fba: 00db lsls r3, r3, #3 - 8003fbc: 4413 add r3, r2 - 8003fbe: 009b lsls r3, r3, #2 - 8003fc0: 3310 adds r3, #16 - 8003fc2: 687a ldr r2, [r7, #4] - 8003fc4: 4413 add r3, r2 - 8003fc6: 3304 adds r3, #4 - 8003fc8: 60fb str r3, [r7, #12] - 8003fca: e00c b.n 8003fe6 + 800406a: 78fb ldrb r3, [r7, #3] + 800406c: f003 020f and.w r2, r3, #15 + 8004070: 4613 mov r3, r2 + 8004072: 00db lsls r3, r3, #3 + 8004074: 4413 add r3, r2 + 8004076: 009b lsls r3, r3, #2 + 8004078: 3310 adds r3, #16 + 800407a: 687a ldr r2, [r7, #4] + 800407c: 4413 add r3, r2 + 800407e: 3304 adds r3, #4 + 8004080: 60fb str r3, [r7, #12] + 8004082: e00c b.n 800409e } else { ep = &hpcd->OUT_ep[ep_addr & EP_ADDR_MSK]; - 8003fcc: 78fb ldrb r3, [r7, #3] - 8003fce: f003 020f and.w r2, r3, #15 - 8003fd2: 4613 mov r3, r2 - 8003fd4: 00db lsls r3, r3, #3 - 8003fd6: 4413 add r3, r2 - 8003fd8: 009b lsls r3, r3, #2 - 8003fda: f503 7314 add.w r3, r3, #592 @ 0x250 - 8003fde: 687a ldr r2, [r7, #4] - 8003fe0: 4413 add r3, r2 - 8003fe2: 3304 adds r3, #4 - 8003fe4: 60fb str r3, [r7, #12] + 8004084: 78fb ldrb r3, [r7, #3] + 8004086: f003 020f and.w r2, r3, #15 + 800408a: 4613 mov r3, r2 + 800408c: 00db lsls r3, r3, #3 + 800408e: 4413 add r3, r2 + 8004090: 009b lsls r3, r3, #2 + 8004092: f503 7314 add.w r3, r3, #592 @ 0x250 + 8004096: 687a ldr r2, [r7, #4] + 8004098: 4413 add r3, r2 + 800409a: 3304 adds r3, #4 + 800409c: 60fb str r3, [r7, #12] } /* Stop Xfer */ ret = USB_EPStopXfer(hpcd->Instance, ep); - 8003fe6: 687b ldr r3, [r7, #4] - 8003fe8: 681b ldr r3, [r3, #0] - 8003fea: 68f9 ldr r1, [r7, #12] - 8003fec: 4618 mov r0, r3 - 8003fee: f004 fd85 bl 8008afc - 8003ff2: 4603 mov r3, r0 - 8003ff4: 72fb strb r3, [r7, #11] + 800409e: 687b ldr r3, [r7, #4] + 80040a0: 681b ldr r3, [r3, #0] + 80040a2: 68f9 ldr r1, [r7, #12] + 80040a4: 4618 mov r0, r3 + 80040a6: f004 fd85 bl 8008bb4 + 80040aa: 4603 mov r3, r0 + 80040ac: 72fb strb r3, [r7, #11] return ret; - 8003ff6: 7afb ldrb r3, [r7, #11] + 80040ae: 7afb ldrb r3, [r7, #11] } - 8003ff8: 4618 mov r0, r3 - 8003ffa: 3710 adds r7, #16 - 8003ffc: 46bd mov sp, r7 - 8003ffe: bd80 pop {r7, pc} + 80040b0: 4618 mov r0, r3 + 80040b2: 3710 adds r7, #16 + 80040b4: 46bd mov sp, r7 + 80040b6: bd80 pop {r7, pc} -08004000 : +080040b8 : * @param hpcd PCD handle * @param epnum endpoint number * @retval HAL status */ static HAL_StatusTypeDef PCD_WriteEmptyTxFifo(PCD_HandleTypeDef *hpcd, uint32_t epnum) { - 8004000: b580 push {r7, lr} - 8004002: b08a sub sp, #40 @ 0x28 - 8004004: af02 add r7, sp, #8 - 8004006: 6078 str r0, [r7, #4] - 8004008: 6039 str r1, [r7, #0] + 80040b8: b580 push {r7, lr} + 80040ba: b08a sub sp, #40 @ 0x28 + 80040bc: af02 add r7, sp, #8 + 80040be: 6078 str r0, [r7, #4] + 80040c0: 6039 str r1, [r7, #0] USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 800400a: 687b ldr r3, [r7, #4] - 800400c: 681b ldr r3, [r3, #0] - 800400e: 617b str r3, [r7, #20] + 80040c2: 687b ldr r3, [r7, #4] + 80040c4: 681b ldr r3, [r3, #0] + 80040c6: 617b str r3, [r7, #20] uint32_t USBx_BASE = (uint32_t)USBx; - 8004010: 697b ldr r3, [r7, #20] - 8004012: 613b str r3, [r7, #16] + 80040c8: 697b ldr r3, [r7, #20] + 80040ca: 613b str r3, [r7, #16] USB_OTG_EPTypeDef *ep; uint32_t len; uint32_t len32b; uint32_t fifoemptymsk; ep = &hpcd->IN_ep[epnum]; - 8004014: 683a ldr r2, [r7, #0] - 8004016: 4613 mov r3, r2 - 8004018: 00db lsls r3, r3, #3 - 800401a: 4413 add r3, r2 - 800401c: 009b lsls r3, r3, #2 - 800401e: 3310 adds r3, #16 - 8004020: 687a ldr r2, [r7, #4] - 8004022: 4413 add r3, r2 - 8004024: 3304 adds r3, #4 - 8004026: 60fb str r3, [r7, #12] + 80040cc: 683a ldr r2, [r7, #0] + 80040ce: 4613 mov r3, r2 + 80040d0: 00db lsls r3, r3, #3 + 80040d2: 4413 add r3, r2 + 80040d4: 009b lsls r3, r3, #2 + 80040d6: 3310 adds r3, #16 + 80040d8: 687a ldr r2, [r7, #4] + 80040da: 4413 add r3, r2 + 80040dc: 3304 adds r3, #4 + 80040de: 60fb str r3, [r7, #12] if (ep->xfer_count > ep->xfer_len) - 8004028: 68fb ldr r3, [r7, #12] - 800402a: 695a ldr r2, [r3, #20] - 800402c: 68fb ldr r3, [r7, #12] - 800402e: 691b ldr r3, [r3, #16] - 8004030: 429a cmp r2, r3 - 8004032: d901 bls.n 8004038 + 80040e0: 68fb ldr r3, [r7, #12] + 80040e2: 695a ldr r2, [r3, #20] + 80040e4: 68fb ldr r3, [r7, #12] + 80040e6: 691b ldr r3, [r3, #16] + 80040e8: 429a cmp r2, r3 + 80040ea: d901 bls.n 80040f0 { return HAL_ERROR; - 8004034: 2301 movs r3, #1 - 8004036: e06b b.n 8004110 + 80040ec: 2301 movs r3, #1 + 80040ee: e06b b.n 80041c8 } len = ep->xfer_len - ep->xfer_count; - 8004038: 68fb ldr r3, [r7, #12] - 800403a: 691a ldr r2, [r3, #16] - 800403c: 68fb ldr r3, [r7, #12] - 800403e: 695b ldr r3, [r3, #20] - 8004040: 1ad3 subs r3, r2, r3 - 8004042: 61fb str r3, [r7, #28] + 80040f0: 68fb ldr r3, [r7, #12] + 80040f2: 691a ldr r2, [r3, #16] + 80040f4: 68fb ldr r3, [r7, #12] + 80040f6: 695b ldr r3, [r3, #20] + 80040f8: 1ad3 subs r3, r2, r3 + 80040fa: 61fb str r3, [r7, #28] if (len > ep->maxpacket) - 8004044: 68fb ldr r3, [r7, #12] - 8004046: 689b ldr r3, [r3, #8] - 8004048: 69fa ldr r2, [r7, #28] - 800404a: 429a cmp r2, r3 - 800404c: d902 bls.n 8004054 + 80040fc: 68fb ldr r3, [r7, #12] + 80040fe: 689b ldr r3, [r3, #8] + 8004100: 69fa ldr r2, [r7, #28] + 8004102: 429a cmp r2, r3 + 8004104: d902 bls.n 800410c { len = ep->maxpacket; - 800404e: 68fb ldr r3, [r7, #12] - 8004050: 689b ldr r3, [r3, #8] - 8004052: 61fb str r3, [r7, #28] + 8004106: 68fb ldr r3, [r7, #12] + 8004108: 689b ldr r3, [r3, #8] + 800410a: 61fb str r3, [r7, #28] } len32b = (len + 3U) / 4U; - 8004054: 69fb ldr r3, [r7, #28] - 8004056: 3303 adds r3, #3 - 8004058: 089b lsrs r3, r3, #2 - 800405a: 61bb str r3, [r7, #24] + 800410c: 69fb ldr r3, [r7, #28] + 800410e: 3303 adds r3, #3 + 8004110: 089b lsrs r3, r3, #2 + 8004112: 61bb str r3, [r7, #24] while (((USBx_INEP(epnum)->DTXFSTS & USB_OTG_DTXFSTS_INEPTFSAV) >= len32b) && - 800405c: e02a b.n 80040b4 + 8004114: e02a b.n 800416c (ep->xfer_count < ep->xfer_len) && (ep->xfer_len != 0U)) { /* Write the FIFO */ len = ep->xfer_len - ep->xfer_count; - 800405e: 68fb ldr r3, [r7, #12] - 8004060: 691a ldr r2, [r3, #16] - 8004062: 68fb ldr r3, [r7, #12] - 8004064: 695b ldr r3, [r3, #20] - 8004066: 1ad3 subs r3, r2, r3 - 8004068: 61fb str r3, [r7, #28] + 8004116: 68fb ldr r3, [r7, #12] + 8004118: 691a ldr r2, [r3, #16] + 800411a: 68fb ldr r3, [r7, #12] + 800411c: 695b ldr r3, [r3, #20] + 800411e: 1ad3 subs r3, r2, r3 + 8004120: 61fb str r3, [r7, #28] if (len > ep->maxpacket) - 800406a: 68fb ldr r3, [r7, #12] - 800406c: 689b ldr r3, [r3, #8] - 800406e: 69fa ldr r2, [r7, #28] - 8004070: 429a cmp r2, r3 - 8004072: d902 bls.n 800407a + 8004122: 68fb ldr r3, [r7, #12] + 8004124: 689b ldr r3, [r3, #8] + 8004126: 69fa ldr r2, [r7, #28] + 8004128: 429a cmp r2, r3 + 800412a: d902 bls.n 8004132 { len = ep->maxpacket; - 8004074: 68fb ldr r3, [r7, #12] - 8004076: 689b ldr r3, [r3, #8] - 8004078: 61fb str r3, [r7, #28] + 800412c: 68fb ldr r3, [r7, #12] + 800412e: 689b ldr r3, [r3, #8] + 8004130: 61fb str r3, [r7, #28] } len32b = (len + 3U) / 4U; - 800407a: 69fb ldr r3, [r7, #28] - 800407c: 3303 adds r3, #3 - 800407e: 089b lsrs r3, r3, #2 - 8004080: 61bb str r3, [r7, #24] + 8004132: 69fb ldr r3, [r7, #28] + 8004134: 3303 adds r3, #3 + 8004136: 089b lsrs r3, r3, #2 + 8004138: 61bb str r3, [r7, #24] (void)USB_WritePacket(USBx, ep->xfer_buff, (uint8_t)epnum, (uint16_t)len, - 8004082: 68fb ldr r3, [r7, #12] - 8004084: 68d9 ldr r1, [r3, #12] - 8004086: 683b ldr r3, [r7, #0] - 8004088: b2da uxtb r2, r3 - 800408a: 69fb ldr r3, [r7, #28] - 800408c: b298 uxth r0, r3 + 800413a: 68fb ldr r3, [r7, #12] + 800413c: 68d9 ldr r1, [r3, #12] + 800413e: 683b ldr r3, [r7, #0] + 8004140: b2da uxtb r2, r3 + 8004142: 69fb ldr r3, [r7, #28] + 8004144: b298 uxth r0, r3 (uint8_t)hpcd->Init.dma_enable); - 800408e: 687b ldr r3, [r7, #4] - 8004090: 799b ldrb r3, [r3, #6] + 8004146: 687b ldr r3, [r7, #4] + 8004148: 799b ldrb r3, [r3, #6] (void)USB_WritePacket(USBx, ep->xfer_buff, (uint8_t)epnum, (uint16_t)len, - 8004092: 9300 str r3, [sp, #0] - 8004094: 4603 mov r3, r0 - 8004096: 6978 ldr r0, [r7, #20] - 8004098: f004 fdda bl 8008c50 + 800414a: 9300 str r3, [sp, #0] + 800414c: 4603 mov r3, r0 + 800414e: 6978 ldr r0, [r7, #20] + 8004150: f004 fdda bl 8008d08 ep->xfer_buff += len; - 800409c: 68fb ldr r3, [r7, #12] - 800409e: 68da ldr r2, [r3, #12] - 80040a0: 69fb ldr r3, [r7, #28] - 80040a2: 441a add r2, r3 - 80040a4: 68fb ldr r3, [r7, #12] - 80040a6: 60da str r2, [r3, #12] + 8004154: 68fb ldr r3, [r7, #12] + 8004156: 68da ldr r2, [r3, #12] + 8004158: 69fb ldr r3, [r7, #28] + 800415a: 441a add r2, r3 + 800415c: 68fb ldr r3, [r7, #12] + 800415e: 60da str r2, [r3, #12] ep->xfer_count += len; - 80040a8: 68fb ldr r3, [r7, #12] - 80040aa: 695a ldr r2, [r3, #20] - 80040ac: 69fb ldr r3, [r7, #28] - 80040ae: 441a add r2, r3 - 80040b0: 68fb ldr r3, [r7, #12] - 80040b2: 615a str r2, [r3, #20] + 8004160: 68fb ldr r3, [r7, #12] + 8004162: 695a ldr r2, [r3, #20] + 8004164: 69fb ldr r3, [r7, #28] + 8004166: 441a add r2, r3 + 8004168: 68fb ldr r3, [r7, #12] + 800416a: 615a str r2, [r3, #20] while (((USBx_INEP(epnum)->DTXFSTS & USB_OTG_DTXFSTS_INEPTFSAV) >= len32b) && - 80040b4: 683b ldr r3, [r7, #0] - 80040b6: 015a lsls r2, r3, #5 - 80040b8: 693b ldr r3, [r7, #16] - 80040ba: 4413 add r3, r2 - 80040bc: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80040c0: 699b ldr r3, [r3, #24] - 80040c2: b29b uxth r3, r3 + 800416c: 683b ldr r3, [r7, #0] + 800416e: 015a lsls r2, r3, #5 + 8004170: 693b ldr r3, [r7, #16] + 8004172: 4413 add r3, r2 + 8004174: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8004178: 699b ldr r3, [r3, #24] + 800417a: b29b uxth r3, r3 (ep->xfer_count < ep->xfer_len) && (ep->xfer_len != 0U)) - 80040c4: 69ba ldr r2, [r7, #24] - 80040c6: 429a cmp r2, r3 - 80040c8: d809 bhi.n 80040de - 80040ca: 68fb ldr r3, [r7, #12] - 80040cc: 695a ldr r2, [r3, #20] - 80040ce: 68fb ldr r3, [r7, #12] - 80040d0: 691b ldr r3, [r3, #16] + 800417c: 69ba ldr r2, [r7, #24] + 800417e: 429a cmp r2, r3 + 8004180: d809 bhi.n 8004196 + 8004182: 68fb ldr r3, [r7, #12] + 8004184: 695a ldr r2, [r3, #20] + 8004186: 68fb ldr r3, [r7, #12] + 8004188: 691b ldr r3, [r3, #16] while (((USBx_INEP(epnum)->DTXFSTS & USB_OTG_DTXFSTS_INEPTFSAV) >= len32b) && - 80040d2: 429a cmp r2, r3 - 80040d4: d203 bcs.n 80040de + 800418a: 429a cmp r2, r3 + 800418c: d203 bcs.n 8004196 (ep->xfer_count < ep->xfer_len) && (ep->xfer_len != 0U)) - 80040d6: 68fb ldr r3, [r7, #12] - 80040d8: 691b ldr r3, [r3, #16] - 80040da: 2b00 cmp r3, #0 - 80040dc: d1bf bne.n 800405e + 800418e: 68fb ldr r3, [r7, #12] + 8004190: 691b ldr r3, [r3, #16] + 8004192: 2b00 cmp r3, #0 + 8004194: d1bf bne.n 8004116 } if (ep->xfer_len <= ep->xfer_count) - 80040de: 68fb ldr r3, [r7, #12] - 80040e0: 691a ldr r2, [r3, #16] - 80040e2: 68fb ldr r3, [r7, #12] - 80040e4: 695b ldr r3, [r3, #20] - 80040e6: 429a cmp r2, r3 - 80040e8: d811 bhi.n 800410e + 8004196: 68fb ldr r3, [r7, #12] + 8004198: 691a ldr r2, [r3, #16] + 800419a: 68fb ldr r3, [r7, #12] + 800419c: 695b ldr r3, [r3, #20] + 800419e: 429a cmp r2, r3 + 80041a0: d811 bhi.n 80041c6 { fifoemptymsk = (uint32_t)(0x1UL << (epnum & EP_ADDR_MSK)); - 80040ea: 683b ldr r3, [r7, #0] - 80040ec: f003 030f and.w r3, r3, #15 - 80040f0: 2201 movs r2, #1 - 80040f2: fa02 f303 lsl.w r3, r2, r3 - 80040f6: 60bb str r3, [r7, #8] + 80041a2: 683b ldr r3, [r7, #0] + 80041a4: f003 030f and.w r3, r3, #15 + 80041a8: 2201 movs r2, #1 + 80041aa: fa02 f303 lsl.w r3, r2, r3 + 80041ae: 60bb str r3, [r7, #8] USBx_DEVICE->DIEPEMPMSK &= ~fifoemptymsk; - 80040f8: 693b ldr r3, [r7, #16] - 80040fa: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80040fe: 6b5a ldr r2, [r3, #52] @ 0x34 - 8004100: 68bb ldr r3, [r7, #8] - 8004102: 43db mvns r3, r3 - 8004104: 6939 ldr r1, [r7, #16] - 8004106: f501 6100 add.w r1, r1, #2048 @ 0x800 - 800410a: 4013 ands r3, r2 - 800410c: 634b str r3, [r1, #52] @ 0x34 + 80041b0: 693b ldr r3, [r7, #16] + 80041b2: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80041b6: 6b5a ldr r2, [r3, #52] @ 0x34 + 80041b8: 68bb ldr r3, [r7, #8] + 80041ba: 43db mvns r3, r3 + 80041bc: 6939 ldr r1, [r7, #16] + 80041be: f501 6100 add.w r1, r1, #2048 @ 0x800 + 80041c2: 4013 ands r3, r2 + 80041c4: 634b str r3, [r1, #52] @ 0x34 } return HAL_OK; - 800410e: 2300 movs r3, #0 + 80041c6: 2300 movs r3, #0 } - 8004110: 4618 mov r0, r3 - 8004112: 3720 adds r7, #32 - 8004114: 46bd mov sp, r7 - 8004116: bd80 pop {r7, pc} + 80041c8: 4618 mov r0, r3 + 80041ca: 3720 adds r7, #32 + 80041cc: 46bd mov sp, r7 + 80041ce: bd80 pop {r7, pc} -08004118 : +080041d0 : * @param hpcd PCD handle * @param epnum endpoint number * @retval HAL status */ static HAL_StatusTypeDef PCD_EP_OutXfrComplete_int(PCD_HandleTypeDef *hpcd, uint32_t epnum) { - 8004118: b580 push {r7, lr} - 800411a: b088 sub sp, #32 - 800411c: af00 add r7, sp, #0 - 800411e: 6078 str r0, [r7, #4] - 8004120: 6039 str r1, [r7, #0] + 80041d0: b580 push {r7, lr} + 80041d2: b088 sub sp, #32 + 80041d4: af00 add r7, sp, #0 + 80041d6: 6078 str r0, [r7, #4] + 80041d8: 6039 str r1, [r7, #0] USB_OTG_EPTypeDef *ep; const USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 8004122: 687b ldr r3, [r7, #4] - 8004124: 681b ldr r3, [r3, #0] - 8004126: 61fb str r3, [r7, #28] + 80041da: 687b ldr r3, [r7, #4] + 80041dc: 681b ldr r3, [r3, #0] + 80041de: 61fb str r3, [r7, #28] uint32_t USBx_BASE = (uint32_t)USBx; - 8004128: 69fb ldr r3, [r7, #28] - 800412a: 61bb str r3, [r7, #24] + 80041e0: 69fb ldr r3, [r7, #28] + 80041e2: 61bb str r3, [r7, #24] uint32_t gSNPSiD = *(__IO const uint32_t *)(&USBx->CID + 0x1U); - 800412c: 69fb ldr r3, [r7, #28] - 800412e: 333c adds r3, #60 @ 0x3c - 8004130: 3304 adds r3, #4 - 8004132: 681b ldr r3, [r3, #0] - 8004134: 617b str r3, [r7, #20] + 80041e4: 69fb ldr r3, [r7, #28] + 80041e6: 333c adds r3, #60 @ 0x3c + 80041e8: 3304 adds r3, #4 + 80041ea: 681b ldr r3, [r3, #0] + 80041ec: 617b str r3, [r7, #20] uint32_t DoepintReg = USBx_OUTEP(epnum)->DOEPINT; - 8004136: 683b ldr r3, [r7, #0] - 8004138: 015a lsls r2, r3, #5 - 800413a: 69bb ldr r3, [r7, #24] - 800413c: 4413 add r3, r2 - 800413e: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8004142: 689b ldr r3, [r3, #8] - 8004144: 613b str r3, [r7, #16] + 80041ee: 683b ldr r3, [r7, #0] + 80041f0: 015a lsls r2, r3, #5 + 80041f2: 69bb ldr r3, [r7, #24] + 80041f4: 4413 add r3, r2 + 80041f6: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80041fa: 689b ldr r3, [r3, #8] + 80041fc: 613b str r3, [r7, #16] if (hpcd->Init.dma_enable == 1U) - 8004146: 687b ldr r3, [r7, #4] - 8004148: 799b ldrb r3, [r3, #6] - 800414a: 2b01 cmp r3, #1 - 800414c: d17b bne.n 8004246 + 80041fe: 687b ldr r3, [r7, #4] + 8004200: 799b ldrb r3, [r3, #6] + 8004202: 2b01 cmp r3, #1 + 8004204: d17b bne.n 80042fe { if ((DoepintReg & USB_OTG_DOEPINT_STUP) == USB_OTG_DOEPINT_STUP) /* Class C */ - 800414e: 693b ldr r3, [r7, #16] - 8004150: f003 0308 and.w r3, r3, #8 - 8004154: 2b00 cmp r3, #0 - 8004156: d015 beq.n 8004184 + 8004206: 693b ldr r3, [r7, #16] + 8004208: f003 0308 and.w r3, r3, #8 + 800420c: 2b00 cmp r3, #0 + 800420e: d015 beq.n 800423c { /* StupPktRcvd = 1 this is a setup packet */ if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 8004158: 697b ldr r3, [r7, #20] - 800415a: 4a61 ldr r2, [pc, #388] @ (80042e0 ) - 800415c: 4293 cmp r3, r2 - 800415e: f240 80b9 bls.w 80042d4 + 8004210: 697b ldr r3, [r7, #20] + 8004212: 4a61 ldr r2, [pc, #388] @ (8004398 ) + 8004214: 4293 cmp r3, r2 + 8004216: f240 80b9 bls.w 800438c ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX)) - 8004162: 693b ldr r3, [r7, #16] - 8004164: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 800421a: 693b ldr r3, [r7, #16] + 800421c: f403 4300 and.w r3, r3, #32768 @ 0x8000 if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 8004168: 2b00 cmp r3, #0 - 800416a: f000 80b3 beq.w 80042d4 + 8004220: 2b00 cmp r3, #0 + 8004222: f000 80b3 beq.w 800438c { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); - 800416e: 683b ldr r3, [r7, #0] - 8004170: 015a lsls r2, r3, #5 - 8004172: 69bb ldr r3, [r7, #24] - 8004174: 4413 add r3, r2 - 8004176: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800417a: 461a mov r2, r3 - 800417c: f44f 4300 mov.w r3, #32768 @ 0x8000 - 8004180: 6093 str r3, [r2, #8] - 8004182: e0a7 b.n 80042d4 + 8004226: 683b ldr r3, [r7, #0] + 8004228: 015a lsls r2, r3, #5 + 800422a: 69bb ldr r3, [r7, #24] + 800422c: 4413 add r3, r2 + 800422e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8004232: 461a mov r2, r3 + 8004234: f44f 4300 mov.w r3, #32768 @ 0x8000 + 8004238: 6093 str r3, [r2, #8] + 800423a: e0a7 b.n 800438c } } else if ((DoepintReg & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) /* Class E */ - 8004184: 693b ldr r3, [r7, #16] - 8004186: f003 0320 and.w r3, r3, #32 - 800418a: 2b00 cmp r3, #0 - 800418c: d009 beq.n 80041a2 + 800423c: 693b ldr r3, [r7, #16] + 800423e: f003 0320 and.w r3, r3, #32 + 8004242: 2b00 cmp r3, #0 + 8004244: d009 beq.n 800425a { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); - 800418e: 683b ldr r3, [r7, #0] - 8004190: 015a lsls r2, r3, #5 - 8004192: 69bb ldr r3, [r7, #24] - 8004194: 4413 add r3, r2 - 8004196: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800419a: 461a mov r2, r3 - 800419c: 2320 movs r3, #32 - 800419e: 6093 str r3, [r2, #8] - 80041a0: e098 b.n 80042d4 + 8004246: 683b ldr r3, [r7, #0] + 8004248: 015a lsls r2, r3, #5 + 800424a: 69bb ldr r3, [r7, #24] + 800424c: 4413 add r3, r2 + 800424e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8004252: 461a mov r2, r3 + 8004254: 2320 movs r3, #32 + 8004256: 6093 str r3, [r2, #8] + 8004258: e098 b.n 800438c } else if ((DoepintReg & (USB_OTG_DOEPINT_STUP | USB_OTG_DOEPINT_OTEPSPR)) == 0U) - 80041a2: 693b ldr r3, [r7, #16] - 80041a4: f003 0328 and.w r3, r3, #40 @ 0x28 - 80041a8: 2b00 cmp r3, #0 - 80041aa: f040 8093 bne.w 80042d4 + 800425a: 693b ldr r3, [r7, #16] + 800425c: f003 0328 and.w r3, r3, #40 @ 0x28 + 8004260: 2b00 cmp r3, #0 + 8004262: f040 8093 bne.w 800438c { /* StupPktRcvd = 1 this is a setup packet */ if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 80041ae: 697b ldr r3, [r7, #20] - 80041b0: 4a4b ldr r2, [pc, #300] @ (80042e0 ) - 80041b2: 4293 cmp r3, r2 - 80041b4: d90f bls.n 80041d6 + 8004266: 697b ldr r3, [r7, #20] + 8004268: 4a4b ldr r2, [pc, #300] @ (8004398 ) + 800426a: 4293 cmp r3, r2 + 800426c: d90f bls.n 800428e ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX)) - 80041b6: 693b ldr r3, [r7, #16] - 80041b8: f403 4300 and.w r3, r3, #32768 @ 0x8000 - if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 80041bc: 2b00 cmp r3, #0 - 80041be: d00a beq.n 80041d6 - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); - 80041c0: 683b ldr r3, [r7, #0] - 80041c2: 015a lsls r2, r3, #5 - 80041c4: 69bb ldr r3, [r7, #24] - 80041c6: 4413 add r3, r2 - 80041c8: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80041cc: 461a mov r2, r3 - 80041ce: f44f 4300 mov.w r3, #32768 @ 0x8000 - 80041d2: 6093 str r3, [r2, #8] - 80041d4: e07e b.n 80042d4 - } - else - { - ep = &hpcd->OUT_ep[epnum]; - 80041d6: 683a ldr r2, [r7, #0] - 80041d8: 4613 mov r3, r2 - 80041da: 00db lsls r3, r3, #3 - 80041dc: 4413 add r3, r2 - 80041de: 009b lsls r3, r3, #2 - 80041e0: f503 7314 add.w r3, r3, #592 @ 0x250 - 80041e4: 687a ldr r2, [r7, #4] - 80041e6: 4413 add r3, r2 - 80041e8: 3304 adds r3, #4 - 80041ea: 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); - 80041ec: 68fb ldr r3, [r7, #12] - 80041ee: 6a1a ldr r2, [r3, #32] - 80041f0: 683b ldr r3, [r7, #0] - 80041f2: 0159 lsls r1, r3, #5 - 80041f4: 69bb ldr r3, [r7, #24] - 80041f6: 440b add r3, r1 - 80041f8: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80041fc: 691b ldr r3, [r3, #16] - 80041fe: f3c3 0312 ubfx r3, r3, #0, #19 - 8004202: 1ad2 subs r2, r2, r3 - 8004204: 68fb ldr r3, [r7, #12] - 8004206: 615a str r2, [r3, #20] - - if (epnum == 0U) - 8004208: 683b ldr r3, [r7, #0] - 800420a: 2b00 cmp r3, #0 - 800420c: d114 bne.n 8004238 - { - if (ep->xfer_len == 0U) - 800420e: 68fb ldr r3, [r7, #12] - 8004210: 691b ldr r3, [r3, #16] - 8004212: 2b00 cmp r3, #0 - 8004214: d109 bne.n 800422a - { - /* this is ZLP, so prepare EP0 for next setup */ - (void)USB_EP0_OutStart(hpcd->Instance, 1U, (uint8_t *)hpcd->Setup); - 8004216: 687b ldr r3, [r7, #4] - 8004218: 6818 ldr r0, [r3, #0] - 800421a: 687b ldr r3, [r7, #4] - 800421c: f203 439c addw r3, r3, #1180 @ 0x49c - 8004220: 461a mov r2, r3 - 8004222: 2101 movs r1, #1 - 8004224: f004 ffaa bl 800917c - 8004228: e006 b.n 8004238 - } - else - { - ep->xfer_buff += ep->xfer_count; - 800422a: 68fb ldr r3, [r7, #12] - 800422c: 68da ldr r2, [r3, #12] - 800422e: 68fb ldr r3, [r7, #12] - 8004230: 695b ldr r3, [r3, #20] - 8004232: 441a add r2, r3 - 8004234: 68fb ldr r3, [r7, #12] - 8004236: 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); - 8004238: 683b ldr r3, [r7, #0] - 800423a: b2db uxtb r3, r3 - 800423c: 4619 mov r1, r3 - 800423e: 6878 ldr r0, [r7, #4] - 8004240: f006 ff78 bl 800b134 - 8004244: e046 b.n 80042d4 - /* ... */ - } - } - else - { - if (gSNPSiD == USB_OTG_CORE_ID_310A) - 8004246: 697b ldr r3, [r7, #20] - 8004248: 4a26 ldr r2, [pc, #152] @ (80042e4 ) - 800424a: 4293 cmp r3, r2 - 800424c: d124 bne.n 8004298 - { - /* StupPktRcvd = 1 this is a setup packet */ - if ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX) - 800424e: 693b ldr r3, [r7, #16] - 8004250: f403 4300 and.w r3, r3, #32768 @ 0x8000 - 8004254: 2b00 cmp r3, #0 - 8004256: d00a beq.n 800426e - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); - 8004258: 683b ldr r3, [r7, #0] - 800425a: 015a lsls r2, r3, #5 - 800425c: 69bb ldr r3, [r7, #24] - 800425e: 4413 add r3, r2 - 8004260: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8004264: 461a mov r2, r3 - 8004266: f44f 4300 mov.w r3, #32768 @ 0x8000 - 800426a: 6093 str r3, [r2, #8] - 800426c: e032 b.n 80042d4 - } - else - { - if ((DoepintReg & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) 800426e: 693b ldr r3, [r7, #16] - 8004270: f003 0320 and.w r3, r3, #32 + 8004270: f403 4300 and.w r3, r3, #32768 @ 0x8000 + if ((gSNPSiD > USB_OTG_CORE_ID_300A) && 8004274: 2b00 cmp r3, #0 - 8004276: d008 beq.n 800428a - { - CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); + 8004276: d00a beq.n 800428e + { + CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); 8004278: 683b ldr r3, [r7, #0] 800427a: 015a lsls r2, r3, #5 800427c: 69bb ldr r3, [r7, #24] 800427e: 4413 add r3, r2 8004280: f503 6330 add.w r3, r3, #2816 @ 0xb00 8004284: 461a mov r2, r3 - 8004286: 2320 movs r3, #32 - 8004288: 6093 str r3, [r2, #8] + 8004286: f44f 4300 mov.w r3, #32768 @ 0x8000 + 800428a: 6093 str r3, [r2, #8] + 800428c: e07e b.n 800438c + } + else + { + ep = &hpcd->OUT_ep[epnum]; + 800428e: 683a ldr r2, [r7, #0] + 8004290: 4613 mov r3, r2 + 8004292: 00db lsls r3, r3, #3 + 8004294: 4413 add r3, r2 + 8004296: 009b lsls r3, r3, #2 + 8004298: f503 7314 add.w r3, r3, #592 @ 0x250 + 800429c: 687a ldr r2, [r7, #4] + 800429e: 4413 add r3, r2 + 80042a0: 3304 adds r3, #4 + 80042a2: 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); + 80042a4: 68fb ldr r3, [r7, #12] + 80042a6: 6a1a ldr r2, [r3, #32] + 80042a8: 683b ldr r3, [r7, #0] + 80042aa: 0159 lsls r1, r3, #5 + 80042ac: 69bb ldr r3, [r7, #24] + 80042ae: 440b add r3, r1 + 80042b0: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80042b4: 691b ldr r3, [r3, #16] + 80042b6: f3c3 0312 ubfx r3, r3, #0, #19 + 80042ba: 1ad2 subs r2, r2, r3 + 80042bc: 68fb ldr r3, [r7, #12] + 80042be: 615a str r2, [r3, #20] + + if (epnum == 0U) + 80042c0: 683b ldr r3, [r7, #0] + 80042c2: 2b00 cmp r3, #0 + 80042c4: d114 bne.n 80042f0 + { + if (ep->xfer_len == 0U) + 80042c6: 68fb ldr r3, [r7, #12] + 80042c8: 691b ldr r3, [r3, #16] + 80042ca: 2b00 cmp r3, #0 + 80042cc: d109 bne.n 80042e2 + { + /* this is ZLP, so prepare EP0 for next setup */ + (void)USB_EP0_OutStart(hpcd->Instance, 1U, (uint8_t *)hpcd->Setup); + 80042ce: 687b ldr r3, [r7, #4] + 80042d0: 6818 ldr r0, [r3, #0] + 80042d2: 687b ldr r3, [r7, #4] + 80042d4: f203 439c addw r3, r3, #1180 @ 0x49c + 80042d8: 461a mov r2, r3 + 80042da: 2101 movs r1, #1 + 80042dc: f004 ffaa bl 8009234 + 80042e0: e006 b.n 80042f0 + } + else + { + ep->xfer_buff += ep->xfer_count; + 80042e2: 68fb ldr r3, [r7, #12] + 80042e4: 68da ldr r2, [r3, #12] + 80042e6: 68fb ldr r3, [r7, #12] + 80042e8: 695b ldr r3, [r3, #20] + 80042ea: 441a add r2, r3 + 80042ec: 68fb ldr r3, [r7, #12] + 80042ee: 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); - 800428a: 683b ldr r3, [r7, #0] - 800428c: b2db uxtb r3, r3 - 800428e: 4619 mov r1, r3 - 8004290: 6878 ldr r0, [r7, #4] - 8004292: f006 ff4f bl 800b134 - 8004296: e01d b.n 80042d4 + 80042f0: 683b ldr r3, [r7, #0] + 80042f2: b2db uxtb r3, r3 + 80042f4: 4619 mov r1, r3 + 80042f6: 6878 ldr r0, [r7, #4] + 80042f8: f006 ff78 bl 800b1ec + 80042fc: e046 b.n 800438c + /* ... */ + } + } + else + { + if (gSNPSiD == USB_OTG_CORE_ID_310A) + 80042fe: 697b ldr r3, [r7, #20] + 8004300: 4a26 ldr r2, [pc, #152] @ (800439c ) + 8004302: 4293 cmp r3, r2 + 8004304: d124 bne.n 8004350 + { + /* StupPktRcvd = 1 this is a setup packet */ + if ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX) + 8004306: 693b ldr r3, [r7, #16] + 8004308: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 800430c: 2b00 cmp r3, #0 + 800430e: d00a beq.n 8004326 + { + CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); + 8004310: 683b ldr r3, [r7, #0] + 8004312: 015a lsls r2, r3, #5 + 8004314: 69bb ldr r3, [r7, #24] + 8004316: 4413 add r3, r2 + 8004318: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800431c: 461a mov r2, r3 + 800431e: f44f 4300 mov.w r3, #32768 @ 0x8000 + 8004322: 6093 str r3, [r2, #8] + 8004324: e032 b.n 800438c + } + else + { + if ((DoepintReg & USB_OTG_DOEPINT_OTEPSPR) == USB_OTG_DOEPINT_OTEPSPR) + 8004326: 693b ldr r3, [r7, #16] + 8004328: f003 0320 and.w r3, r3, #32 + 800432c: 2b00 cmp r3, #0 + 800432e: d008 beq.n 8004342 + { + CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_OTEPSPR); + 8004330: 683b ldr r3, [r7, #0] + 8004332: 015a lsls r2, r3, #5 + 8004334: 69bb ldr r3, [r7, #24] + 8004336: 4413 add r3, r2 + 8004338: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800433c: 461a mov r2, r3 + 800433e: 2320 movs r3, #32 + 8004340: 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); + 8004342: 683b ldr r3, [r7, #0] + 8004344: b2db uxtb r3, r3 + 8004346: 4619 mov r1, r3 + 8004348: 6878 ldr r0, [r7, #4] + 800434a: f006 ff4f bl 800b1ec + 800434e: e01d b.n 800438c #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } } else { if ((epnum == 0U) && (hpcd->OUT_ep[epnum].xfer_len == 0U)) - 8004298: 683b ldr r3, [r7, #0] - 800429a: 2b00 cmp r3, #0 - 800429c: d114 bne.n 80042c8 - 800429e: 6879 ldr r1, [r7, #4] - 80042a0: 683a ldr r2, [r7, #0] - 80042a2: 4613 mov r3, r2 - 80042a4: 00db lsls r3, r3, #3 - 80042a6: 4413 add r3, r2 - 80042a8: 009b lsls r3, r3, #2 - 80042aa: 440b add r3, r1 - 80042ac: f503 7319 add.w r3, r3, #612 @ 0x264 - 80042b0: 681b ldr r3, [r3, #0] - 80042b2: 2b00 cmp r3, #0 - 80042b4: d108 bne.n 80042c8 + 8004350: 683b ldr r3, [r7, #0] + 8004352: 2b00 cmp r3, #0 + 8004354: d114 bne.n 8004380 + 8004356: 6879 ldr r1, [r7, #4] + 8004358: 683a ldr r2, [r7, #0] + 800435a: 4613 mov r3, r2 + 800435c: 00db lsls r3, r3, #3 + 800435e: 4413 add r3, r2 + 8004360: 009b lsls r3, r3, #2 + 8004362: 440b add r3, r1 + 8004364: f503 7319 add.w r3, r3, #612 @ 0x264 + 8004368: 681b ldr r3, [r3, #0] + 800436a: 2b00 cmp r3, #0 + 800436c: d108 bne.n 8004380 { /* this is ZLP, so prepare EP0 for next setup */ (void)USB_EP0_OutStart(hpcd->Instance, 0U, (uint8_t *)hpcd->Setup); - 80042b6: 687b ldr r3, [r7, #4] - 80042b8: 6818 ldr r0, [r3, #0] - 80042ba: 687b ldr r3, [r7, #4] - 80042bc: f203 439c addw r3, r3, #1180 @ 0x49c - 80042c0: 461a mov r2, r3 - 80042c2: 2100 movs r1, #0 - 80042c4: f004 ff5a bl 800917c + 800436e: 687b ldr r3, [r7, #4] + 8004370: 6818 ldr r0, [r3, #0] + 8004372: 687b ldr r3, [r7, #4] + 8004374: f203 439c addw r3, r3, #1180 @ 0x49c + 8004378: 461a mov r2, r3 + 800437a: 2100 movs r1, #0 + 800437c: f004 ff5a bl 8009234 } #if (USE_HAL_PCD_REGISTER_CALLBACKS == 1U) hpcd->DataOutStageCallback(hpcd, (uint8_t)epnum); #else HAL_PCD_DataOutStageCallback(hpcd, (uint8_t)epnum); - 80042c8: 683b ldr r3, [r7, #0] - 80042ca: b2db uxtb r3, r3 - 80042cc: 4619 mov r1, r3 - 80042ce: 6878 ldr r0, [r7, #4] - 80042d0: f006 ff30 bl 800b134 + 8004380: 683b ldr r3, [r7, #0] + 8004382: b2db uxtb r3, r3 + 8004384: 4619 mov r1, r3 + 8004386: 6878 ldr r0, [r7, #4] + 8004388: f006 ff30 bl 800b1ec #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ } } return HAL_OK; - 80042d4: 2300 movs r3, #0 + 800438c: 2300 movs r3, #0 } - 80042d6: 4618 mov r0, r3 - 80042d8: 3720 adds r7, #32 - 80042da: 46bd mov sp, r7 - 80042dc: bd80 pop {r7, pc} - 80042de: bf00 nop - 80042e0: 4f54300a .word 0x4f54300a - 80042e4: 4f54310a .word 0x4f54310a + 800438e: 4618 mov r0, r3 + 8004390: 3720 adds r7, #32 + 8004392: 46bd mov sp, r7 + 8004394: bd80 pop {r7, pc} + 8004396: bf00 nop + 8004398: 4f54300a .word 0x4f54300a + 800439c: 4f54310a .word 0x4f54310a -080042e8 : +080043a0 : * @param hpcd PCD handle * @param epnum endpoint number * @retval HAL status */ static HAL_StatusTypeDef PCD_EP_OutSetupPacket_int(PCD_HandleTypeDef *hpcd, uint32_t epnum) { - 80042e8: b580 push {r7, lr} - 80042ea: b086 sub sp, #24 - 80042ec: af00 add r7, sp, #0 - 80042ee: 6078 str r0, [r7, #4] - 80042f0: 6039 str r1, [r7, #0] + 80043a0: b580 push {r7, lr} + 80043a2: b086 sub sp, #24 + 80043a4: af00 add r7, sp, #0 + 80043a6: 6078 str r0, [r7, #4] + 80043a8: 6039 str r1, [r7, #0] const USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 80042f2: 687b ldr r3, [r7, #4] - 80042f4: 681b ldr r3, [r3, #0] - 80042f6: 617b str r3, [r7, #20] + 80043aa: 687b ldr r3, [r7, #4] + 80043ac: 681b ldr r3, [r3, #0] + 80043ae: 617b str r3, [r7, #20] uint32_t USBx_BASE = (uint32_t)USBx; - 80042f8: 697b ldr r3, [r7, #20] - 80042fa: 613b str r3, [r7, #16] + 80043b0: 697b ldr r3, [r7, #20] + 80043b2: 613b str r3, [r7, #16] uint32_t gSNPSiD = *(__IO const uint32_t *)(&USBx->CID + 0x1U); - 80042fc: 697b ldr r3, [r7, #20] - 80042fe: 333c adds r3, #60 @ 0x3c - 8004300: 3304 adds r3, #4 - 8004302: 681b ldr r3, [r3, #0] - 8004304: 60fb str r3, [r7, #12] + 80043b4: 697b ldr r3, [r7, #20] + 80043b6: 333c adds r3, #60 @ 0x3c + 80043b8: 3304 adds r3, #4 + 80043ba: 681b ldr r3, [r3, #0] + 80043bc: 60fb str r3, [r7, #12] uint32_t DoepintReg = USBx_OUTEP(epnum)->DOEPINT; - 8004306: 683b ldr r3, [r7, #0] - 8004308: 015a lsls r2, r3, #5 - 800430a: 693b ldr r3, [r7, #16] - 800430c: 4413 add r3, r2 - 800430e: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8004312: 689b ldr r3, [r3, #8] - 8004314: 60bb str r3, [r7, #8] + 80043be: 683b ldr r3, [r7, #0] + 80043c0: 015a lsls r2, r3, #5 + 80043c2: 693b ldr r3, [r7, #16] + 80043c4: 4413 add r3, r2 + 80043c6: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80043ca: 689b ldr r3, [r3, #8] + 80043cc: 60bb str r3, [r7, #8] if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 8004316: 68fb ldr r3, [r7, #12] - 8004318: 4a15 ldr r2, [pc, #84] @ (8004370 ) - 800431a: 4293 cmp r3, r2 - 800431c: d90e bls.n 800433c + 80043ce: 68fb ldr r3, [r7, #12] + 80043d0: 4a15 ldr r2, [pc, #84] @ (8004428 ) + 80043d2: 4293 cmp r3, r2 + 80043d4: d90e bls.n 80043f4 ((DoepintReg & USB_OTG_DOEPINT_STPKTRX) == USB_OTG_DOEPINT_STPKTRX)) - 800431e: 68bb ldr r3, [r7, #8] - 8004320: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 80043d6: 68bb ldr r3, [r7, #8] + 80043d8: f403 4300 and.w r3, r3, #32768 @ 0x8000 if ((gSNPSiD > USB_OTG_CORE_ID_300A) && - 8004324: 2b00 cmp r3, #0 - 8004326: d009 beq.n 800433c + 80043dc: 2b00 cmp r3, #0 + 80043de: d009 beq.n 80043f4 { CLEAR_OUT_EP_INTR(epnum, USB_OTG_DOEPINT_STPKTRX); - 8004328: 683b ldr r3, [r7, #0] - 800432a: 015a lsls r2, r3, #5 - 800432c: 693b ldr r3, [r7, #16] - 800432e: 4413 add r3, r2 - 8004330: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8004334: 461a mov r2, r3 - 8004336: f44f 4300 mov.w r3, #32768 @ 0x8000 - 800433a: 6093 str r3, [r2, #8] + 80043e0: 683b ldr r3, [r7, #0] + 80043e2: 015a lsls r2, r3, #5 + 80043e4: 693b ldr r3, [r7, #16] + 80043e6: 4413 add r3, r2 + 80043e8: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80043ec: 461a mov r2, r3 + 80043ee: f44f 4300 mov.w r3, #32768 @ 0x8000 + 80043f2: 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); - 800433c: 6878 ldr r0, [r7, #4] - 800433e: f006 fee7 bl 800b110 + 80043f4: 6878 ldr r0, [r7, #4] + 80043f6: f006 fee7 bl 800b1c8 #endif /* USE_HAL_PCD_REGISTER_CALLBACKS */ if ((gSNPSiD > USB_OTG_CORE_ID_300A) && (hpcd->Init.dma_enable == 1U)) - 8004342: 68fb ldr r3, [r7, #12] - 8004344: 4a0a ldr r2, [pc, #40] @ (8004370 ) - 8004346: 4293 cmp r3, r2 - 8004348: d90c bls.n 8004364 - 800434a: 687b ldr r3, [r7, #4] - 800434c: 799b ldrb r3, [r3, #6] - 800434e: 2b01 cmp r3, #1 - 8004350: d108 bne.n 8004364 + 80043fa: 68fb ldr r3, [r7, #12] + 80043fc: 4a0a ldr r2, [pc, #40] @ (8004428 ) + 80043fe: 4293 cmp r3, r2 + 8004400: d90c bls.n 800441c + 8004402: 687b ldr r3, [r7, #4] + 8004404: 799b ldrb r3, [r3, #6] + 8004406: 2b01 cmp r3, #1 + 8004408: d108 bne.n 800441c { (void)USB_EP0_OutStart(hpcd->Instance, 1U, (uint8_t *)hpcd->Setup); - 8004352: 687b ldr r3, [r7, #4] - 8004354: 6818 ldr r0, [r3, #0] - 8004356: 687b ldr r3, [r7, #4] - 8004358: f203 439c addw r3, r3, #1180 @ 0x49c - 800435c: 461a mov r2, r3 - 800435e: 2101 movs r1, #1 - 8004360: f004 ff0c bl 800917c + 800440a: 687b ldr r3, [r7, #4] + 800440c: 6818 ldr r0, [r3, #0] + 800440e: 687b ldr r3, [r7, #4] + 8004410: f203 439c addw r3, r3, #1180 @ 0x49c + 8004414: 461a mov r2, r3 + 8004416: 2101 movs r1, #1 + 8004418: f004 ff0c bl 8009234 } return HAL_OK; - 8004364: 2300 movs r3, #0 + 800441c: 2300 movs r3, #0 } - 8004366: 4618 mov r0, r3 - 8004368: 3718 adds r7, #24 - 800436a: 46bd mov sp, r7 - 800436c: bd80 pop {r7, pc} - 800436e: bf00 nop - 8004370: 4f54300a .word 0x4f54300a + 800441e: 4618 mov r0, r3 + 8004420: 3718 adds r7, #24 + 8004422: 46bd mov sp, r7 + 8004424: bd80 pop {r7, pc} + 8004426: bf00 nop + 8004428: 4f54300a .word 0x4f54300a -08004374 : +0800442c : * @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) { - 8004374: b480 push {r7} - 8004376: b085 sub sp, #20 - 8004378: af00 add r7, sp, #0 - 800437a: 6078 str r0, [r7, #4] - 800437c: 460b mov r3, r1 - 800437e: 70fb strb r3, [r7, #3] - 8004380: 4613 mov r3, r2 - 8004382: 803b strh r3, [r7, #0] + 800442c: b480 push {r7} + 800442e: b085 sub sp, #20 + 8004430: af00 add r7, sp, #0 + 8004432: 6078 str r0, [r7, #4] + 8004434: 460b mov r3, r1 + 8004436: 70fb strb r3, [r7, #3] + 8004438: 4613 mov r3, r2 + 800443a: 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; - 8004384: 687b ldr r3, [r7, #4] - 8004386: 681b ldr r3, [r3, #0] - 8004388: 6a5b ldr r3, [r3, #36] @ 0x24 - 800438a: 60bb str r3, [r7, #8] + 800443c: 687b ldr r3, [r7, #4] + 800443e: 681b ldr r3, [r3, #0] + 8004440: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004442: 60bb str r3, [r7, #8] if (fifo == 0U) - 800438c: 78fb ldrb r3, [r7, #3] - 800438e: 2b00 cmp r3, #0 - 8004390: d107 bne.n 80043a2 + 8004444: 78fb ldrb r3, [r7, #3] + 8004446: 2b00 cmp r3, #0 + 8004448: d107 bne.n 800445a { hpcd->Instance->DIEPTXF0_HNPTXFSIZ = ((uint32_t)size << 16) | Tx_Offset; - 8004392: 883b ldrh r3, [r7, #0] - 8004394: 0419 lsls r1, r3, #16 - 8004396: 687b ldr r3, [r7, #4] - 8004398: 681b ldr r3, [r3, #0] - 800439a: 68ba ldr r2, [r7, #8] - 800439c: 430a orrs r2, r1 - 800439e: 629a str r2, [r3, #40] @ 0x28 - 80043a0: e028 b.n 80043f4 + 800444a: 883b ldrh r3, [r7, #0] + 800444c: 0419 lsls r1, r3, #16 + 800444e: 687b ldr r3, [r7, #4] + 8004450: 681b ldr r3, [r3, #0] + 8004452: 68ba ldr r2, [r7, #8] + 8004454: 430a orrs r2, r1 + 8004456: 629a str r2, [r3, #40] @ 0x28 + 8004458: e028 b.n 80044ac } else { Tx_Offset += (hpcd->Instance->DIEPTXF0_HNPTXFSIZ) >> 16; - 80043a2: 687b ldr r3, [r7, #4] - 80043a4: 681b ldr r3, [r3, #0] - 80043a6: 6a9b ldr r3, [r3, #40] @ 0x28 - 80043a8: 0c1b lsrs r3, r3, #16 - 80043aa: 68ba ldr r2, [r7, #8] - 80043ac: 4413 add r3, r2 - 80043ae: 60bb str r3, [r7, #8] + 800445a: 687b ldr r3, [r7, #4] + 800445c: 681b ldr r3, [r3, #0] + 800445e: 6a9b ldr r3, [r3, #40] @ 0x28 + 8004460: 0c1b lsrs r3, r3, #16 + 8004462: 68ba ldr r2, [r7, #8] + 8004464: 4413 add r3, r2 + 8004466: 60bb str r3, [r7, #8] for (i = 0U; i < (fifo - 1U); i++) - 80043b0: 2300 movs r3, #0 - 80043b2: 73fb strb r3, [r7, #15] - 80043b4: e00d b.n 80043d2 + 8004468: 2300 movs r3, #0 + 800446a: 73fb strb r3, [r7, #15] + 800446c: e00d b.n 800448a { Tx_Offset += (hpcd->Instance->DIEPTXF[i] >> 16); - 80043b6: 687b ldr r3, [r7, #4] - 80043b8: 681a ldr r2, [r3, #0] - 80043ba: 7bfb ldrb r3, [r7, #15] - 80043bc: 3340 adds r3, #64 @ 0x40 - 80043be: 009b lsls r3, r3, #2 - 80043c0: 4413 add r3, r2 - 80043c2: 685b ldr r3, [r3, #4] - 80043c4: 0c1b lsrs r3, r3, #16 - 80043c6: 68ba ldr r2, [r7, #8] - 80043c8: 4413 add r3, r2 - 80043ca: 60bb str r3, [r7, #8] + 800446e: 687b ldr r3, [r7, #4] + 8004470: 681a ldr r2, [r3, #0] + 8004472: 7bfb ldrb r3, [r7, #15] + 8004474: 3340 adds r3, #64 @ 0x40 + 8004476: 009b lsls r3, r3, #2 + 8004478: 4413 add r3, r2 + 800447a: 685b ldr r3, [r3, #4] + 800447c: 0c1b lsrs r3, r3, #16 + 800447e: 68ba ldr r2, [r7, #8] + 8004480: 4413 add r3, r2 + 8004482: 60bb str r3, [r7, #8] for (i = 0U; i < (fifo - 1U); i++) - 80043cc: 7bfb ldrb r3, [r7, #15] - 80043ce: 3301 adds r3, #1 - 80043d0: 73fb strb r3, [r7, #15] - 80043d2: 7bfa ldrb r2, [r7, #15] - 80043d4: 78fb ldrb r3, [r7, #3] - 80043d6: 3b01 subs r3, #1 - 80043d8: 429a cmp r2, r3 - 80043da: d3ec bcc.n 80043b6 + 8004484: 7bfb ldrb r3, [r7, #15] + 8004486: 3301 adds r3, #1 + 8004488: 73fb strb r3, [r7, #15] + 800448a: 7bfa ldrb r2, [r7, #15] + 800448c: 78fb ldrb r3, [r7, #3] + 800448e: 3b01 subs r3, #1 + 8004490: 429a cmp r2, r3 + 8004492: d3ec bcc.n 800446e } /* Multiply Tx_Size by 2 to get higher performance */ hpcd->Instance->DIEPTXF[fifo - 1U] = ((uint32_t)size << 16) | Tx_Offset; - 80043dc: 883b ldrh r3, [r7, #0] - 80043de: 0418 lsls r0, r3, #16 - 80043e0: 687b ldr r3, [r7, #4] - 80043e2: 6819 ldr r1, [r3, #0] - 80043e4: 78fb ldrb r3, [r7, #3] - 80043e6: 3b01 subs r3, #1 - 80043e8: 68ba ldr r2, [r7, #8] - 80043ea: 4302 orrs r2, r0 - 80043ec: 3340 adds r3, #64 @ 0x40 - 80043ee: 009b lsls r3, r3, #2 - 80043f0: 440b add r3, r1 - 80043f2: 605a str r2, [r3, #4] + 8004494: 883b ldrh r3, [r7, #0] + 8004496: 0418 lsls r0, r3, #16 + 8004498: 687b ldr r3, [r7, #4] + 800449a: 6819 ldr r1, [r3, #0] + 800449c: 78fb ldrb r3, [r7, #3] + 800449e: 3b01 subs r3, #1 + 80044a0: 68ba ldr r2, [r7, #8] + 80044a2: 4302 orrs r2, r0 + 80044a4: 3340 adds r3, #64 @ 0x40 + 80044a6: 009b lsls r3, r3, #2 + 80044a8: 440b add r3, r1 + 80044aa: 605a str r2, [r3, #4] } return HAL_OK; - 80043f4: 2300 movs r3, #0 + 80044ac: 2300 movs r3, #0 } - 80043f6: 4618 mov r0, r3 - 80043f8: 3714 adds r7, #20 - 80043fa: 46bd mov sp, r7 - 80043fc: f85d 7b04 ldr.w r7, [sp], #4 - 8004400: 4770 bx lr + 80044ae: 4618 mov r0, r3 + 80044b0: 3714 adds r7, #20 + 80044b2: 46bd mov sp, r7 + 80044b4: f85d 7b04 ldr.w r7, [sp], #4 + 80044b8: 4770 bx lr -08004402 : +080044ba : * @param hpcd PCD handle * @param size Size of Rx fifo * @retval HAL status */ HAL_StatusTypeDef HAL_PCDEx_SetRxFiFo(PCD_HandleTypeDef *hpcd, uint16_t size) { - 8004402: b480 push {r7} - 8004404: b083 sub sp, #12 - 8004406: af00 add r7, sp, #0 - 8004408: 6078 str r0, [r7, #4] - 800440a: 460b mov r3, r1 - 800440c: 807b strh r3, [r7, #2] + 80044ba: b480 push {r7} + 80044bc: b083 sub sp, #12 + 80044be: af00 add r7, sp, #0 + 80044c0: 6078 str r0, [r7, #4] + 80044c2: 460b mov r3, r1 + 80044c4: 807b strh r3, [r7, #2] hpcd->Instance->GRXFSIZ = size; - 800440e: 687b ldr r3, [r7, #4] - 8004410: 681b ldr r3, [r3, #0] - 8004412: 887a ldrh r2, [r7, #2] - 8004414: 625a str r2, [r3, #36] @ 0x24 + 80044c6: 687b ldr r3, [r7, #4] + 80044c8: 681b ldr r3, [r3, #0] + 80044ca: 887a ldrh r2, [r7, #2] + 80044cc: 625a str r2, [r3, #36] @ 0x24 return HAL_OK; - 8004416: 2300 movs r3, #0 + 80044ce: 2300 movs r3, #0 } - 8004418: 4618 mov r0, r3 - 800441a: 370c adds r7, #12 - 800441c: 46bd mov sp, r7 - 800441e: f85d 7b04 ldr.w r7, [sp], #4 - 8004422: 4770 bx lr + 80044d0: 4618 mov r0, r3 + 80044d2: 370c adds r7, #12 + 80044d4: 46bd mov sp, r7 + 80044d6: f85d 7b04 ldr.w r7, [sp], #4 + 80044da: 4770 bx lr -08004424 : +080044dc : * @brief Activate LPM feature. * @param hpcd PCD handle * @retval HAL status */ HAL_StatusTypeDef HAL_PCDEx_ActivateLPM(PCD_HandleTypeDef *hpcd) { - 8004424: b480 push {r7} - 8004426: b085 sub sp, #20 - 8004428: af00 add r7, sp, #0 - 800442a: 6078 str r0, [r7, #4] + 80044dc: b480 push {r7} + 80044de: b085 sub sp, #20 + 80044e0: af00 add r7, sp, #0 + 80044e2: 6078 str r0, [r7, #4] USB_OTG_GlobalTypeDef *USBx = hpcd->Instance; - 800442c: 687b ldr r3, [r7, #4] - 800442e: 681b ldr r3, [r3, #0] - 8004430: 60fb str r3, [r7, #12] + 80044e4: 687b ldr r3, [r7, #4] + 80044e6: 681b ldr r3, [r3, #0] + 80044e8: 60fb str r3, [r7, #12] hpcd->lpm_active = 1U; - 8004432: 687b ldr r3, [r7, #4] - 8004434: 2201 movs r2, #1 - 8004436: f8c3 24d8 str.w r2, [r3, #1240] @ 0x4d8 + 80044ea: 687b ldr r3, [r7, #4] + 80044ec: 2201 movs r2, #1 + 80044ee: f8c3 24d8 str.w r2, [r3, #1240] @ 0x4d8 hpcd->LPM_State = LPM_L0; - 800443a: 687b ldr r3, [r7, #4] - 800443c: 2200 movs r2, #0 - 800443e: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc + 80044f2: 687b ldr r3, [r7, #4] + 80044f4: 2200 movs r2, #0 + 80044f6: f883 24cc strb.w r2, [r3, #1228] @ 0x4cc USBx->GINTMSK |= USB_OTG_GINTMSK_LPMINTM; - 8004442: 68fb ldr r3, [r7, #12] - 8004444: 699b ldr r3, [r3, #24] - 8004446: f043 6200 orr.w r2, r3, #134217728 @ 0x8000000 - 800444a: 68fb ldr r3, [r7, #12] - 800444c: 619a str r2, [r3, #24] + 80044fa: 68fb ldr r3, [r7, #12] + 80044fc: 699b ldr r3, [r3, #24] + 80044fe: f043 6200 orr.w r2, r3, #134217728 @ 0x8000000 + 8004502: 68fb ldr r3, [r7, #12] + 8004504: 619a str r2, [r3, #24] USBx->GLPMCFG |= (USB_OTG_GLPMCFG_LPMEN | USB_OTG_GLPMCFG_LPMACK | USB_OTG_GLPMCFG_ENBESL); - 800444e: 68fb ldr r3, [r7, #12] - 8004450: 6d5b ldr r3, [r3, #84] @ 0x54 - 8004452: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8004456: f043 0303 orr.w r3, r3, #3 - 800445a: 68fa ldr r2, [r7, #12] - 800445c: 6553 str r3, [r2, #84] @ 0x54 + 8004506: 68fb ldr r3, [r7, #12] + 8004508: 6d5b ldr r3, [r3, #84] @ 0x54 + 800450a: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 800450e: f043 0303 orr.w r3, r3, #3 + 8004512: 68fa ldr r2, [r7, #12] + 8004514: 6553 str r3, [r2, #84] @ 0x54 return HAL_OK; - 800445e: 2300 movs r3, #0 + 8004516: 2300 movs r3, #0 } - 8004460: 4618 mov r0, r3 - 8004462: 3714 adds r7, #20 - 8004464: 46bd mov sp, r7 - 8004466: f85d 7b04 ldr.w r7, [sp], #4 - 800446a: 4770 bx lr + 8004518: 4618 mov r0, r3 + 800451a: 3714 adds r7, #20 + 800451c: 46bd mov sp, r7 + 800451e: f85d 7b04 ldr.w r7, [sp], #4 + 8004522: 4770 bx lr -0800446c : +08004524 : * 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) { - 800446c: b580 push {r7, lr} - 800446e: b084 sub sp, #16 - 8004470: af00 add r7, sp, #0 - 8004472: 6078 str r0, [r7, #4] - 8004474: 6039 str r1, [r7, #0] + 8004524: b580 push {r7, lr} + 8004526: b084 sub sp, #16 + 8004528: af00 add r7, sp, #0 + 800452a: 6078 str r0, [r7, #4] + 800452c: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if (RCC_ClkInitStruct == NULL) - 8004476: 687b ldr r3, [r7, #4] - 8004478: 2b00 cmp r3, #0 - 800447a: d101 bne.n 8004480 + 800452e: 687b ldr r3, [r7, #4] + 8004530: 2b00 cmp r3, #0 + 8004532: d101 bne.n 8004538 { return HAL_ERROR; - 800447c: 2301 movs r3, #1 - 800447e: e0cc b.n 800461a + 8004534: 2301 movs r3, #1 + 8004536: e0cc b.n 80046d2 /* 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()) - 8004480: 4b68 ldr r3, [pc, #416] @ (8004624 ) - 8004482: 681b ldr r3, [r3, #0] - 8004484: f003 030f and.w r3, r3, #15 - 8004488: 683a ldr r2, [r7, #0] - 800448a: 429a cmp r2, r3 - 800448c: d90c bls.n 80044a8 + 8004538: 4b68 ldr r3, [pc, #416] @ (80046dc ) + 800453a: 681b ldr r3, [r3, #0] + 800453c: f003 030f and.w r3, r3, #15 + 8004540: 683a ldr r2, [r7, #0] + 8004542: 429a cmp r2, r3 + 8004544: d90c bls.n 8004560 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 800448e: 4b65 ldr r3, [pc, #404] @ (8004624 ) - 8004490: 683a ldr r2, [r7, #0] - 8004492: b2d2 uxtb r2, r2 - 8004494: 701a strb r2, [r3, #0] + 8004546: 4b65 ldr r3, [pc, #404] @ (80046dc ) + 8004548: 683a ldr r2, [r7, #0] + 800454a: b2d2 uxtb r2, r2 + 800454c: 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) - 8004496: 4b63 ldr r3, [pc, #396] @ (8004624 ) - 8004498: 681b ldr r3, [r3, #0] - 800449a: f003 030f and.w r3, r3, #15 - 800449e: 683a ldr r2, [r7, #0] - 80044a0: 429a cmp r2, r3 - 80044a2: d001 beq.n 80044a8 + 800454e: 4b63 ldr r3, [pc, #396] @ (80046dc ) + 8004550: 681b ldr r3, [r3, #0] + 8004552: f003 030f and.w r3, r3, #15 + 8004556: 683a ldr r2, [r7, #0] + 8004558: 429a cmp r2, r3 + 800455a: d001 beq.n 8004560 { return HAL_ERROR; - 80044a4: 2301 movs r3, #1 - 80044a6: e0b8 b.n 800461a + 800455c: 2301 movs r3, #1 + 800455e: e0b8 b.n 80046d2 } } /*-------------------------- HCLK Configuration --------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) - 80044a8: 687b ldr r3, [r7, #4] - 80044aa: 681b ldr r3, [r3, #0] - 80044ac: f003 0302 and.w r3, r3, #2 - 80044b0: 2b00 cmp r3, #0 - 80044b2: d020 beq.n 80044f6 + 8004560: 687b ldr r3, [r7, #4] + 8004562: 681b ldr r3, [r3, #0] + 8004564: f003 0302 and.w r3, r3, #2 + 8004568: 2b00 cmp r3, #0 + 800456a: d020 beq.n 80045ae { /* 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) - 80044b4: 687b ldr r3, [r7, #4] - 80044b6: 681b ldr r3, [r3, #0] - 80044b8: f003 0304 and.w r3, r3, #4 - 80044bc: 2b00 cmp r3, #0 - 80044be: d005 beq.n 80044cc + 800456c: 687b ldr r3, [r7, #4] + 800456e: 681b ldr r3, [r3, #0] + 8004570: f003 0304 and.w r3, r3, #4 + 8004574: 2b00 cmp r3, #0 + 8004576: d005 beq.n 8004584 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); - 80044c0: 4b59 ldr r3, [pc, #356] @ (8004628 ) - 80044c2: 689b ldr r3, [r3, #8] - 80044c4: 4a58 ldr r2, [pc, #352] @ (8004628 ) - 80044c6: f443 53e0 orr.w r3, r3, #7168 @ 0x1c00 - 80044ca: 6093 str r3, [r2, #8] + 8004578: 4b59 ldr r3, [pc, #356] @ (80046e0 ) + 800457a: 689b ldr r3, [r3, #8] + 800457c: 4a58 ldr r2, [pc, #352] @ (80046e0 ) + 800457e: f443 53e0 orr.w r3, r3, #7168 @ 0x1c00 + 8004582: 6093 str r3, [r2, #8] } if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 80044cc: 687b ldr r3, [r7, #4] - 80044ce: 681b ldr r3, [r3, #0] - 80044d0: f003 0308 and.w r3, r3, #8 - 80044d4: 2b00 cmp r3, #0 - 80044d6: d005 beq.n 80044e4 + 8004584: 687b ldr r3, [r7, #4] + 8004586: 681b ldr r3, [r3, #0] + 8004588: f003 0308 and.w r3, r3, #8 + 800458c: 2b00 cmp r3, #0 + 800458e: d005 beq.n 800459c { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); - 80044d8: 4b53 ldr r3, [pc, #332] @ (8004628 ) - 80044da: 689b ldr r3, [r3, #8] - 80044dc: 4a52 ldr r2, [pc, #328] @ (8004628 ) - 80044de: f443 4360 orr.w r3, r3, #57344 @ 0xe000 - 80044e2: 6093 str r3, [r2, #8] + 8004590: 4b53 ldr r3, [pc, #332] @ (80046e0 ) + 8004592: 689b ldr r3, [r3, #8] + 8004594: 4a52 ldr r2, [pc, #328] @ (80046e0 ) + 8004596: f443 4360 orr.w r3, r3, #57344 @ 0xe000 + 800459a: 6093 str r3, [r2, #8] } assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); - 80044e4: 4b50 ldr r3, [pc, #320] @ (8004628 ) - 80044e6: 689b ldr r3, [r3, #8] - 80044e8: f023 02f0 bic.w r2, r3, #240 @ 0xf0 - 80044ec: 687b ldr r3, [r7, #4] - 80044ee: 689b ldr r3, [r3, #8] - 80044f0: 494d ldr r1, [pc, #308] @ (8004628 ) - 80044f2: 4313 orrs r3, r2 - 80044f4: 608b str r3, [r1, #8] + 800459c: 4b50 ldr r3, [pc, #320] @ (80046e0 ) + 800459e: 689b ldr r3, [r3, #8] + 80045a0: f023 02f0 bic.w r2, r3, #240 @ 0xf0 + 80045a4: 687b ldr r3, [r7, #4] + 80045a6: 689b ldr r3, [r3, #8] + 80045a8: 494d ldr r1, [pc, #308] @ (80046e0 ) + 80045aa: 4313 orrs r3, r2 + 80045ac: 608b str r3, [r1, #8] } /*------------------------- SYSCLK Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) - 80044f6: 687b ldr r3, [r7, #4] - 80044f8: 681b ldr r3, [r3, #0] - 80044fa: f003 0301 and.w r3, r3, #1 - 80044fe: 2b00 cmp r3, #0 - 8004500: d044 beq.n 800458c + 80045ae: 687b ldr r3, [r7, #4] + 80045b0: 681b ldr r3, [r3, #0] + 80045b2: f003 0301 and.w r3, r3, #1 + 80045b6: 2b00 cmp r3, #0 + 80045b8: d044 beq.n 8004644 { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) - 8004502: 687b ldr r3, [r7, #4] - 8004504: 685b ldr r3, [r3, #4] - 8004506: 2b01 cmp r3, #1 - 8004508: d107 bne.n 800451a + 80045ba: 687b ldr r3, [r7, #4] + 80045bc: 685b ldr r3, [r3, #4] + 80045be: 2b01 cmp r3, #1 + 80045c0: d107 bne.n 80045d2 { /* Check the HSE ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 800450a: 4b47 ldr r3, [pc, #284] @ (8004628 ) - 800450c: 681b ldr r3, [r3, #0] - 800450e: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8004512: 2b00 cmp r3, #0 - 8004514: d119 bne.n 800454a + 80045c2: 4b47 ldr r3, [pc, #284] @ (80046e0 ) + 80045c4: 681b ldr r3, [r3, #0] + 80045c6: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 80045ca: 2b00 cmp r3, #0 + 80045cc: d119 bne.n 8004602 { return HAL_ERROR; - 8004516: 2301 movs r3, #1 - 8004518: e07f b.n 800461a + 80045ce: 2301 movs r3, #1 + 80045d0: e07f b.n 80046d2 } } /* PLL is selected as System Clock Source */ else if ((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) || - 800451a: 687b ldr r3, [r7, #4] - 800451c: 685b ldr r3, [r3, #4] - 800451e: 2b02 cmp r3, #2 - 8004520: d003 beq.n 800452a + 80045d2: 687b ldr r3, [r7, #4] + 80045d4: 685b ldr r3, [r3, #4] + 80045d6: 2b02 cmp r3, #2 + 80045d8: d003 beq.n 80045e2 (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLRCLK)) - 8004522: 687b ldr r3, [r7, #4] - 8004524: 685b ldr r3, [r3, #4] + 80045da: 687b ldr r3, [r7, #4] + 80045dc: 685b ldr r3, [r3, #4] else if ((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) || - 8004526: 2b03 cmp r3, #3 - 8004528: d107 bne.n 800453a + 80045de: 2b03 cmp r3, #3 + 80045e0: d107 bne.n 80045f2 { /* Check the PLL ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 800452a: 4b3f ldr r3, [pc, #252] @ (8004628 ) - 800452c: 681b ldr r3, [r3, #0] - 800452e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8004532: 2b00 cmp r3, #0 - 8004534: d109 bne.n 800454a + 80045e2: 4b3f ldr r3, [pc, #252] @ (80046e0 ) + 80045e4: 681b ldr r3, [r3, #0] + 80045e6: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 80045ea: 2b00 cmp r3, #0 + 80045ec: d109 bne.n 8004602 { return HAL_ERROR; - 8004536: 2301 movs r3, #1 - 8004538: e06f b.n 800461a + 80045ee: 2301 movs r3, #1 + 80045f0: e06f b.n 80046d2 } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 800453a: 4b3b ldr r3, [pc, #236] @ (8004628 ) - 800453c: 681b ldr r3, [r3, #0] - 800453e: f003 0302 and.w r3, r3, #2 - 8004542: 2b00 cmp r3, #0 - 8004544: d101 bne.n 800454a + 80045f2: 4b3b ldr r3, [pc, #236] @ (80046e0 ) + 80045f4: 681b ldr r3, [r3, #0] + 80045f6: f003 0302 and.w r3, r3, #2 + 80045fa: 2b00 cmp r3, #0 + 80045fc: d101 bne.n 8004602 { return HAL_ERROR; - 8004546: 2301 movs r3, #1 - 8004548: e067 b.n 800461a + 80045fe: 2301 movs r3, #1 + 8004600: e067 b.n 80046d2 } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); - 800454a: 4b37 ldr r3, [pc, #220] @ (8004628 ) - 800454c: 689b ldr r3, [r3, #8] - 800454e: f023 0203 bic.w r2, r3, #3 - 8004552: 687b ldr r3, [r7, #4] - 8004554: 685b ldr r3, [r3, #4] - 8004556: 4934 ldr r1, [pc, #208] @ (8004628 ) - 8004558: 4313 orrs r3, r2 - 800455a: 608b str r3, [r1, #8] + 8004602: 4b37 ldr r3, [pc, #220] @ (80046e0 ) + 8004604: 689b ldr r3, [r3, #8] + 8004606: f023 0203 bic.w r2, r3, #3 + 800460a: 687b ldr r3, [r7, #4] + 800460c: 685b ldr r3, [r3, #4] + 800460e: 4934 ldr r1, [pc, #208] @ (80046e0 ) + 8004610: 4313 orrs r3, r2 + 8004612: 608b str r3, [r1, #8] /* Get Start Tick */ tickstart = HAL_GetTick(); - 800455c: f7fd fcb2 bl 8001ec4 - 8004560: 60f8 str r0, [r7, #12] + 8004614: f7fd fcb2 bl 8001f7c + 8004618: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 8004562: e00a b.n 800457a + 800461a: e00a b.n 8004632 { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) - 8004564: f7fd fcae bl 8001ec4 - 8004568: 4602 mov r2, r0 - 800456a: 68fb ldr r3, [r7, #12] - 800456c: 1ad3 subs r3, r2, r3 - 800456e: f241 3288 movw r2, #5000 @ 0x1388 - 8004572: 4293 cmp r3, r2 - 8004574: d901 bls.n 800457a + 800461c: f7fd fcae bl 8001f7c + 8004620: 4602 mov r2, r0 + 8004622: 68fb ldr r3, [r7, #12] + 8004624: 1ad3 subs r3, r2, r3 + 8004626: f241 3288 movw r2, #5000 @ 0x1388 + 800462a: 4293 cmp r3, r2 + 800462c: d901 bls.n 8004632 { return HAL_TIMEOUT; - 8004576: 2303 movs r3, #3 - 8004578: e04f b.n 800461a + 800462e: 2303 movs r3, #3 + 8004630: e04f b.n 80046d2 while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) - 800457a: 4b2b ldr r3, [pc, #172] @ (8004628 ) - 800457c: 689b ldr r3, [r3, #8] - 800457e: f003 020c and.w r2, r3, #12 - 8004582: 687b ldr r3, [r7, #4] - 8004584: 685b ldr r3, [r3, #4] - 8004586: 009b lsls r3, r3, #2 - 8004588: 429a cmp r2, r3 - 800458a: d1eb bne.n 8004564 + 8004632: 4b2b ldr r3, [pc, #172] @ (80046e0 ) + 8004634: 689b ldr r3, [r3, #8] + 8004636: f003 020c and.w r2, r3, #12 + 800463a: 687b ldr r3, [r7, #4] + 800463c: 685b ldr r3, [r3, #4] + 800463e: 009b lsls r3, r3, #2 + 8004640: 429a cmp r2, r3 + 8004642: d1eb bne.n 800461c } } } /* Decreasing the number of wait states because of lower CPU frequency */ if (FLatency < __HAL_FLASH_GET_LATENCY()) - 800458c: 4b25 ldr r3, [pc, #148] @ (8004624 ) - 800458e: 681b ldr r3, [r3, #0] - 8004590: f003 030f and.w r3, r3, #15 - 8004594: 683a ldr r2, [r7, #0] - 8004596: 429a cmp r2, r3 - 8004598: d20c bcs.n 80045b4 + 8004644: 4b25 ldr r3, [pc, #148] @ (80046dc ) + 8004646: 681b ldr r3, [r3, #0] + 8004648: f003 030f and.w r3, r3, #15 + 800464c: 683a ldr r2, [r7, #0] + 800464e: 429a cmp r2, r3 + 8004650: d20c bcs.n 800466c { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); - 800459a: 4b22 ldr r3, [pc, #136] @ (8004624 ) - 800459c: 683a ldr r2, [r7, #0] - 800459e: b2d2 uxtb r2, r2 - 80045a0: 701a strb r2, [r3, #0] + 8004652: 4b22 ldr r3, [pc, #136] @ (80046dc ) + 8004654: 683a ldr r2, [r7, #0] + 8004656: b2d2 uxtb r2, r2 + 8004658: 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) - 80045a2: 4b20 ldr r3, [pc, #128] @ (8004624 ) - 80045a4: 681b ldr r3, [r3, #0] - 80045a6: f003 030f and.w r3, r3, #15 - 80045aa: 683a ldr r2, [r7, #0] - 80045ac: 429a cmp r2, r3 - 80045ae: d001 beq.n 80045b4 + 800465a: 4b20 ldr r3, [pc, #128] @ (80046dc ) + 800465c: 681b ldr r3, [r3, #0] + 800465e: f003 030f and.w r3, r3, #15 + 8004662: 683a ldr r2, [r7, #0] + 8004664: 429a cmp r2, r3 + 8004666: d001 beq.n 800466c { return HAL_ERROR; - 80045b0: 2301 movs r3, #1 - 80045b2: e032 b.n 800461a + 8004668: 2301 movs r3, #1 + 800466a: e032 b.n 80046d2 } } /*-------------------------- PCLK1 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) - 80045b4: 687b ldr r3, [r7, #4] - 80045b6: 681b ldr r3, [r3, #0] - 80045b8: f003 0304 and.w r3, r3, #4 - 80045bc: 2b00 cmp r3, #0 - 80045be: d008 beq.n 80045d2 + 800466c: 687b ldr r3, [r7, #4] + 800466e: 681b ldr r3, [r3, #0] + 8004670: f003 0304 and.w r3, r3, #4 + 8004674: 2b00 cmp r3, #0 + 8004676: d008 beq.n 800468a { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); - 80045c0: 4b19 ldr r3, [pc, #100] @ (8004628 ) - 80045c2: 689b ldr r3, [r3, #8] - 80045c4: f423 52e0 bic.w r2, r3, #7168 @ 0x1c00 - 80045c8: 687b ldr r3, [r7, #4] - 80045ca: 68db ldr r3, [r3, #12] - 80045cc: 4916 ldr r1, [pc, #88] @ (8004628 ) - 80045ce: 4313 orrs r3, r2 - 80045d0: 608b str r3, [r1, #8] + 8004678: 4b19 ldr r3, [pc, #100] @ (80046e0 ) + 800467a: 689b ldr r3, [r3, #8] + 800467c: f423 52e0 bic.w r2, r3, #7168 @ 0x1c00 + 8004680: 687b ldr r3, [r7, #4] + 8004682: 68db ldr r3, [r3, #12] + 8004684: 4916 ldr r1, [pc, #88] @ (80046e0 ) + 8004686: 4313 orrs r3, r2 + 8004688: 608b str r3, [r1, #8] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) - 80045d2: 687b ldr r3, [r7, #4] - 80045d4: 681b ldr r3, [r3, #0] - 80045d6: f003 0308 and.w r3, r3, #8 - 80045da: 2b00 cmp r3, #0 - 80045dc: d009 beq.n 80045f2 + 800468a: 687b ldr r3, [r7, #4] + 800468c: 681b ldr r3, [r3, #0] + 800468e: f003 0308 and.w r3, r3, #8 + 8004692: 2b00 cmp r3, #0 + 8004694: d009 beq.n 80046aa { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3U)); - 80045de: 4b12 ldr r3, [pc, #72] @ (8004628 ) - 80045e0: 689b ldr r3, [r3, #8] - 80045e2: f423 4260 bic.w r2, r3, #57344 @ 0xe000 - 80045e6: 687b ldr r3, [r7, #4] - 80045e8: 691b ldr r3, [r3, #16] - 80045ea: 00db lsls r3, r3, #3 - 80045ec: 490e ldr r1, [pc, #56] @ (8004628 ) - 80045ee: 4313 orrs r3, r2 - 80045f0: 608b str r3, [r1, #8] + 8004696: 4b12 ldr r3, [pc, #72] @ (80046e0 ) + 8004698: 689b ldr r3, [r3, #8] + 800469a: f423 4260 bic.w r2, r3, #57344 @ 0xe000 + 800469e: 687b ldr r3, [r7, #4] + 80046a0: 691b ldr r3, [r3, #16] + 80046a2: 00db lsls r3, r3, #3 + 80046a4: 490e ldr r1, [pc, #56] @ (80046e0 ) + 80046a6: 4313 orrs r3, r2 + 80046a8: 608b str r3, [r1, #8] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]; - 80045f2: f000 fb7f bl 8004cf4 - 80045f6: 4602 mov r2, r0 - 80045f8: 4b0b ldr r3, [pc, #44] @ (8004628 ) - 80045fa: 689b ldr r3, [r3, #8] - 80045fc: 091b lsrs r3, r3, #4 - 80045fe: f003 030f and.w r3, r3, #15 - 8004602: 490a ldr r1, [pc, #40] @ (800462c ) - 8004604: 5ccb ldrb r3, [r1, r3] - 8004606: fa22 f303 lsr.w r3, r2, r3 - 800460a: 4a09 ldr r2, [pc, #36] @ (8004630 ) - 800460c: 6013 str r3, [r2, #0] + 80046aa: f000 fb7f bl 8004dac + 80046ae: 4602 mov r2, r0 + 80046b0: 4b0b ldr r3, [pc, #44] @ (80046e0 ) + 80046b2: 689b ldr r3, [r3, #8] + 80046b4: 091b lsrs r3, r3, #4 + 80046b6: f003 030f and.w r3, r3, #15 + 80046ba: 490a ldr r1, [pc, #40] @ (80046e4 ) + 80046bc: 5ccb ldrb r3, [r1, r3] + 80046be: fa22 f303 lsr.w r3, r2, r3 + 80046c2: 4a09 ldr r2, [pc, #36] @ (80046e8 ) + 80046c4: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings */ HAL_InitTick(uwTickPrio); - 800460e: 4b09 ldr r3, [pc, #36] @ (8004634 ) - 8004610: 681b ldr r3, [r3, #0] - 8004612: 4618 mov r0, r3 - 8004614: f7fd fc12 bl 8001e3c + 80046c6: 4b09 ldr r3, [pc, #36] @ (80046ec ) + 80046c8: 681b ldr r3, [r3, #0] + 80046ca: 4618 mov r0, r3 + 80046cc: f7fd fc12 bl 8001ef4 return HAL_OK; - 8004618: 2300 movs r3, #0 + 80046d0: 2300 movs r3, #0 } - 800461a: 4618 mov r0, r3 - 800461c: 3710 adds r7, #16 - 800461e: 46bd mov sp, r7 - 8004620: bd80 pop {r7, pc} - 8004622: bf00 nop - 8004624: 40023c00 .word 0x40023c00 - 8004628: 40023800 .word 0x40023800 - 800462c: 0800b7d0 .word 0x0800b7d0 - 8004630: 20000090 .word 0x20000090 - 8004634: 20000094 .word 0x20000094 + 80046d2: 4618 mov r0, r3 + 80046d4: 3710 adds r7, #16 + 80046d6: 46bd mov sp, r7 + 80046d8: bd80 pop {r7, pc} + 80046da: bf00 nop + 80046dc: 40023c00 .word 0x40023c00 + 80046e0: 40023800 .word 0x40023800 + 80046e4: 0800b888 .word 0x0800b888 + 80046e8: 20000090 .word 0x20000090 + 80046ec: 20000094 .word 0x20000094 -08004638 : +080046f0 : * @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) { - 8004638: b480 push {r7} - 800463a: af00 add r7, sp, #0 + 80046f0: b480 push {r7} + 80046f2: af00 add r7, sp, #0 return SystemCoreClock; - 800463c: 4b03 ldr r3, [pc, #12] @ (800464c ) - 800463e: 681b ldr r3, [r3, #0] + 80046f4: 4b03 ldr r3, [pc, #12] @ (8004704 ) + 80046f6: 681b ldr r3, [r3, #0] } - 8004640: 4618 mov r0, r3 - 8004642: 46bd mov sp, r7 - 8004644: f85d 7b04 ldr.w r7, [sp], #4 - 8004648: 4770 bx lr - 800464a: bf00 nop - 800464c: 20000090 .word 0x20000090 + 80046f8: 4618 mov r0, r3 + 80046fa: 46bd mov sp, r7 + 80046fc: f85d 7b04 ldr.w r7, [sp], #4 + 8004700: 4770 bx lr + 8004702: bf00 nop + 8004704: 20000090 .word 0x20000090 -08004650 : +08004708 : * @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) { - 8004650: b580 push {r7, lr} - 8004652: af00 add r7, sp, #0 + 8004708: b580 push {r7, lr} + 800470a: 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]); - 8004654: f7ff fff0 bl 8004638 - 8004658: 4602 mov r2, r0 - 800465a: 4b05 ldr r3, [pc, #20] @ (8004670 ) - 800465c: 689b ldr r3, [r3, #8] - 800465e: 0a9b lsrs r3, r3, #10 - 8004660: f003 0307 and.w r3, r3, #7 - 8004664: 4903 ldr r1, [pc, #12] @ (8004674 ) - 8004666: 5ccb ldrb r3, [r1, r3] - 8004668: fa22 f303 lsr.w r3, r2, r3 + 800470c: f7ff fff0 bl 80046f0 + 8004710: 4602 mov r2, r0 + 8004712: 4b05 ldr r3, [pc, #20] @ (8004728 ) + 8004714: 689b ldr r3, [r3, #8] + 8004716: 0a9b lsrs r3, r3, #10 + 8004718: f003 0307 and.w r3, r3, #7 + 800471c: 4903 ldr r1, [pc, #12] @ (800472c ) + 800471e: 5ccb ldrb r3, [r1, r3] + 8004720: fa22 f303 lsr.w r3, r2, r3 } - 800466c: 4618 mov r0, r3 - 800466e: bd80 pop {r7, pc} - 8004670: 40023800 .word 0x40023800 - 8004674: 0800b7e0 .word 0x0800b7e0 + 8004724: 4618 mov r0, r3 + 8004726: bd80 pop {r7, pc} + 8004728: 40023800 .word 0x40023800 + 800472c: 0800b898 .word 0x0800b898 -08004678 : +08004730 : * @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) { - 8004678: b580 push {r7, lr} - 800467a: af00 add r7, sp, #0 + 8004730: b580 push {r7, lr} + 8004732: 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]); - 800467c: f7ff ffdc bl 8004638 - 8004680: 4602 mov r2, r0 - 8004682: 4b05 ldr r3, [pc, #20] @ (8004698 ) - 8004684: 689b ldr r3, [r3, #8] - 8004686: 0b5b lsrs r3, r3, #13 - 8004688: f003 0307 and.w r3, r3, #7 - 800468c: 4903 ldr r1, [pc, #12] @ (800469c ) - 800468e: 5ccb ldrb r3, [r1, r3] - 8004690: fa22 f303 lsr.w r3, r2, r3 + 8004734: f7ff ffdc bl 80046f0 + 8004738: 4602 mov r2, r0 + 800473a: 4b05 ldr r3, [pc, #20] @ (8004750 ) + 800473c: 689b ldr r3, [r3, #8] + 800473e: 0b5b lsrs r3, r3, #13 + 8004740: f003 0307 and.w r3, r3, #7 + 8004744: 4903 ldr r1, [pc, #12] @ (8004754 ) + 8004746: 5ccb ldrb r3, [r1, r3] + 8004748: fa22 f303 lsr.w r3, r2, r3 } - 8004694: 4618 mov r0, r3 - 8004696: bd80 pop {r7, pc} - 8004698: 40023800 .word 0x40023800 - 800469c: 0800b7e0 .word 0x0800b7e0 + 800474c: 4618 mov r0, r3 + 800474e: bd80 pop {r7, pc} + 8004750: 40023800 .word 0x40023800 + 8004754: 0800b898 .word 0x0800b898 -080046a0 : +08004758 : * the backup registers) and RCC_BDCR register are set to their reset values. * * @retval HAL status */ HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit) { - 80046a0: b580 push {r7, lr} - 80046a2: b08c sub sp, #48 @ 0x30 - 80046a4: af00 add r7, sp, #0 - 80046a6: 6078 str r0, [r7, #4] + 8004758: b580 push {r7, lr} + 800475a: b08c sub sp, #48 @ 0x30 + 800475c: af00 add r7, sp, #0 + 800475e: 6078 str r0, [r7, #4] uint32_t tickstart = 0U; - 80046a8: 2300 movs r3, #0 - 80046aa: 627b str r3, [r7, #36] @ 0x24 + 8004760: 2300 movs r3, #0 + 8004762: 627b str r3, [r7, #36] @ 0x24 uint32_t tmpreg1 = 0U; - 80046ac: 2300 movs r3, #0 - 80046ae: 623b str r3, [r7, #32] + 8004764: 2300 movs r3, #0 + 8004766: 623b str r3, [r7, #32] uint32_t plli2sp = 0U; - 80046b0: 2300 movs r3, #0 - 80046b2: 61fb str r3, [r7, #28] + 8004768: 2300 movs r3, #0 + 800476a: 61fb str r3, [r7, #28] uint32_t plli2sq = 0U; - 80046b4: 2300 movs r3, #0 - 80046b6: 61bb str r3, [r7, #24] + 800476c: 2300 movs r3, #0 + 800476e: 61bb str r3, [r7, #24] uint32_t plli2sr = 0U; - 80046b8: 2300 movs r3, #0 - 80046ba: 617b str r3, [r7, #20] + 8004770: 2300 movs r3, #0 + 8004772: 617b str r3, [r7, #20] uint32_t pllsaip = 0U; - 80046bc: 2300 movs r3, #0 - 80046be: 613b str r3, [r7, #16] + 8004774: 2300 movs r3, #0 + 8004776: 613b str r3, [r7, #16] uint32_t pllsaiq = 0U; - 80046c0: 2300 movs r3, #0 - 80046c2: 60fb str r3, [r7, #12] + 8004778: 2300 movs r3, #0 + 800477a: 60fb str r3, [r7, #12] uint32_t plli2sused = 0U; - 80046c4: 2300 movs r3, #0 - 80046c6: 62fb str r3, [r7, #44] @ 0x2c + 800477c: 2300 movs r3, #0 + 800477e: 62fb str r3, [r7, #44] @ 0x2c uint32_t pllsaiused = 0U; - 80046c8: 2300 movs r3, #0 - 80046ca: 62bb str r3, [r7, #40] @ 0x28 + 8004780: 2300 movs r3, #0 + 8004782: 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)) - 80046cc: 687b ldr r3, [r7, #4] - 80046ce: 681b ldr r3, [r3, #0] - 80046d0: f003 0301 and.w r3, r3, #1 - 80046d4: 2b00 cmp r3, #0 - 80046d6: d010 beq.n 80046fa + 8004784: 687b ldr r3, [r7, #4] + 8004786: 681b ldr r3, [r3, #0] + 8004788: f003 0301 and.w r3, r3, #1 + 800478c: 2b00 cmp r3, #0 + 800478e: d010 beq.n 80047b2 { /* Check the parameters */ assert_param(IS_RCC_I2SAPB1CLKSOURCE(PeriphClkInit->I2sApb1ClockSelection)); /* Configure I2S Clock source */ __HAL_RCC_I2S_APB1_CONFIG(PeriphClkInit->I2sApb1ClockSelection); - 80046d8: 4b6f ldr r3, [pc, #444] @ (8004898 ) - 80046da: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 80046de: f023 62c0 bic.w r2, r3, #100663296 @ 0x6000000 - 80046e2: 687b ldr r3, [r7, #4] - 80046e4: 6b9b ldr r3, [r3, #56] @ 0x38 - 80046e6: 496c ldr r1, [pc, #432] @ (8004898 ) - 80046e8: 4313 orrs r3, r2 - 80046ea: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 8004790: 4b6f ldr r3, [pc, #444] @ (8004950 ) + 8004792: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 8004796: f023 62c0 bic.w r2, r3, #100663296 @ 0x6000000 + 800479a: 687b ldr r3, [r7, #4] + 800479c: 6b9b ldr r3, [r3, #56] @ 0x38 + 800479e: 496c ldr r1, [pc, #432] @ (8004950 ) + 80047a0: 4313 orrs r3, r2 + 80047a2: 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) - 80046ee: 687b ldr r3, [r7, #4] - 80046f0: 6b9b ldr r3, [r3, #56] @ 0x38 - 80046f2: 2b00 cmp r3, #0 - 80046f4: d101 bne.n 80046fa + 80047a6: 687b ldr r3, [r7, #4] + 80047a8: 6b9b ldr r3, [r3, #56] @ 0x38 + 80047aa: 2b00 cmp r3, #0 + 80047ac: d101 bne.n 80047b2 { plli2sused = 1U; - 80046f6: 2301 movs r3, #1 - 80046f8: 62fb str r3, [r7, #44] @ 0x2c + 80047ae: 2301 movs r3, #1 + 80047b0: 62fb str r3, [r7, #44] @ 0x2c } } /*--------------------------------------------------------------------------*/ /*---------------------------- I2S APB2 configuration ----------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == (RCC_PERIPHCLK_I2S_APB2)) - 80046fa: 687b ldr r3, [r7, #4] - 80046fc: 681b ldr r3, [r3, #0] - 80046fe: f003 0302 and.w r3, r3, #2 - 8004702: 2b00 cmp r3, #0 - 8004704: d010 beq.n 8004728 + 80047b2: 687b ldr r3, [r7, #4] + 80047b4: 681b ldr r3, [r3, #0] + 80047b6: f003 0302 and.w r3, r3, #2 + 80047ba: 2b00 cmp r3, #0 + 80047bc: d010 beq.n 80047e0 { /* Check the parameters */ assert_param(IS_RCC_I2SAPB2CLKSOURCE(PeriphClkInit->I2sApb2ClockSelection)); /* Configure I2S Clock source */ __HAL_RCC_I2S_APB2_CONFIG(PeriphClkInit->I2sApb2ClockSelection); - 8004706: 4b64 ldr r3, [pc, #400] @ (8004898 ) - 8004708: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 800470c: f023 52c0 bic.w r2, r3, #402653184 @ 0x18000000 - 8004710: 687b ldr r3, [r7, #4] - 8004712: 6bdb ldr r3, [r3, #60] @ 0x3c - 8004714: 4960 ldr r1, [pc, #384] @ (8004898 ) - 8004716: 4313 orrs r3, r2 - 8004718: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 80047be: 4b64 ldr r3, [pc, #400] @ (8004950 ) + 80047c0: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 80047c4: f023 52c0 bic.w r2, r3, #402653184 @ 0x18000000 + 80047c8: 687b ldr r3, [r7, #4] + 80047ca: 6bdb ldr r3, [r3, #60] @ 0x3c + 80047cc: 4960 ldr r1, [pc, #384] @ (8004950 ) + 80047ce: 4313 orrs r3, r2 + 80047d0: 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) - 800471c: 687b ldr r3, [r7, #4] - 800471e: 6bdb ldr r3, [r3, #60] @ 0x3c - 8004720: 2b00 cmp r3, #0 - 8004722: d101 bne.n 8004728 + 80047d4: 687b ldr r3, [r7, #4] + 80047d6: 6bdb ldr r3, [r3, #60] @ 0x3c + 80047d8: 2b00 cmp r3, #0 + 80047da: d101 bne.n 80047e0 { plli2sused = 1U; - 8004724: 2301 movs r3, #1 - 8004726: 62fb str r3, [r7, #44] @ 0x2c + 80047dc: 2301 movs r3, #1 + 80047de: 62fb str r3, [r7, #44] @ 0x2c } } /*--------------------------------------------------------------------------*/ /*--------------------------- SAI1 configuration ---------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == (RCC_PERIPHCLK_SAI1)) - 8004728: 687b ldr r3, [r7, #4] - 800472a: 681b ldr r3, [r3, #0] - 800472c: f003 0304 and.w r3, r3, #4 - 8004730: 2b00 cmp r3, #0 - 8004732: d017 beq.n 8004764 + 80047e0: 687b ldr r3, [r7, #4] + 80047e2: 681b ldr r3, [r3, #0] + 80047e4: f003 0304 and.w r3, r3, #4 + 80047e8: 2b00 cmp r3, #0 + 80047ea: d017 beq.n 800481c { /* Check the parameters */ assert_param(IS_RCC_SAI1CLKSOURCE(PeriphClkInit->Sai1ClockSelection)); /* Configure SAI1 Clock source */ __HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection); - 8004734: 4b58 ldr r3, [pc, #352] @ (8004898 ) - 8004736: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 800473a: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 - 800473e: 687b ldr r3, [r7, #4] - 8004740: 6b1b ldr r3, [r3, #48] @ 0x30 - 8004742: 4955 ldr r1, [pc, #340] @ (8004898 ) - 8004744: 4313 orrs r3, r2 - 8004746: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 80047ec: 4b58 ldr r3, [pc, #352] @ (8004950 ) + 80047ee: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 80047f2: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 + 80047f6: 687b ldr r3, [r7, #4] + 80047f8: 6b1b ldr r3, [r3, #48] @ 0x30 + 80047fa: 4955 ldr r1, [pc, #340] @ (8004950 ) + 80047fc: 4313 orrs r3, r2 + 80047fe: 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) - 800474a: 687b ldr r3, [r7, #4] - 800474c: 6b1b ldr r3, [r3, #48] @ 0x30 - 800474e: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 - 8004752: d101 bne.n 8004758 + 8004802: 687b ldr r3, [r7, #4] + 8004804: 6b1b ldr r3, [r3, #48] @ 0x30 + 8004806: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 + 800480a: d101 bne.n 8004810 { plli2sused = 1U; - 8004754: 2301 movs r3, #1 - 8004756: 62fb str r3, [r7, #44] @ 0x2c + 800480c: 2301 movs r3, #1 + 800480e: 62fb str r3, [r7, #44] @ 0x2c } /* Enable the PLLSAI when it's used as clock source for SAI */ if (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI) - 8004758: 687b ldr r3, [r7, #4] - 800475a: 6b1b ldr r3, [r3, #48] @ 0x30 - 800475c: 2b00 cmp r3, #0 - 800475e: d101 bne.n 8004764 + 8004810: 687b ldr r3, [r7, #4] + 8004812: 6b1b ldr r3, [r3, #48] @ 0x30 + 8004814: 2b00 cmp r3, #0 + 8004816: d101 bne.n 800481c { pllsaiused = 1U; - 8004760: 2301 movs r3, #1 - 8004762: 62bb str r3, [r7, #40] @ 0x28 + 8004818: 2301 movs r3, #1 + 800481a: 62bb str r3, [r7, #40] @ 0x28 } } /*--------------------------------------------------------------------------*/ /*-------------------------- SAI2 configuration ----------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == (RCC_PERIPHCLK_SAI2)) - 8004764: 687b ldr r3, [r7, #4] - 8004766: 681b ldr r3, [r3, #0] - 8004768: f003 0308 and.w r3, r3, #8 - 800476c: 2b00 cmp r3, #0 - 800476e: d017 beq.n 80047a0 + 800481c: 687b ldr r3, [r7, #4] + 800481e: 681b ldr r3, [r3, #0] + 8004820: f003 0308 and.w r3, r3, #8 + 8004824: 2b00 cmp r3, #0 + 8004826: d017 beq.n 8004858 { /* Check the parameters */ assert_param(IS_RCC_SAI2CLKSOURCE(PeriphClkInit->Sai2ClockSelection)); /* Configure SAI2 Clock source */ __HAL_RCC_SAI2_CONFIG(PeriphClkInit->Sai2ClockSelection); - 8004770: 4b49 ldr r3, [pc, #292] @ (8004898 ) - 8004772: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 8004776: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 - 800477a: 687b ldr r3, [r7, #4] - 800477c: 6b5b ldr r3, [r3, #52] @ 0x34 - 800477e: 4946 ldr r1, [pc, #280] @ (8004898 ) - 8004780: 4313 orrs r3, r2 - 8004782: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 8004828: 4b49 ldr r3, [pc, #292] @ (8004950 ) + 800482a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 800482e: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 + 8004832: 687b ldr r3, [r7, #4] + 8004834: 6b5b ldr r3, [r3, #52] @ 0x34 + 8004836: 4946 ldr r1, [pc, #280] @ (8004950 ) + 8004838: 4313 orrs r3, r2 + 800483a: 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) - 8004786: 687b ldr r3, [r7, #4] - 8004788: 6b5b ldr r3, [r3, #52] @ 0x34 - 800478a: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 800478e: d101 bne.n 8004794 + 800483e: 687b ldr r3, [r7, #4] + 8004840: 6b5b ldr r3, [r3, #52] @ 0x34 + 8004842: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 8004846: d101 bne.n 800484c { plli2sused = 1U; - 8004790: 2301 movs r3, #1 - 8004792: 62fb str r3, [r7, #44] @ 0x2c + 8004848: 2301 movs r3, #1 + 800484a: 62fb str r3, [r7, #44] @ 0x2c } /* Enable the PLLSAI when it's used as clock source for SAI */ if (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI) - 8004794: 687b ldr r3, [r7, #4] - 8004796: 6b5b ldr r3, [r3, #52] @ 0x34 - 8004798: 2b00 cmp r3, #0 - 800479a: d101 bne.n 80047a0 + 800484c: 687b ldr r3, [r7, #4] + 800484e: 6b5b ldr r3, [r3, #52] @ 0x34 + 8004850: 2b00 cmp r3, #0 + 8004852: d101 bne.n 8004858 { pllsaiused = 1U; - 800479c: 2301 movs r3, #1 - 800479e: 62bb str r3, [r7, #40] @ 0x28 + 8004854: 2301 movs r3, #1 + 8004856: 62bb str r3, [r7, #40] @ 0x28 } } /*--------------------------------------------------------------------------*/ /*----------------------------- RTC configuration --------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC)) - 80047a0: 687b ldr r3, [r7, #4] - 80047a2: 681b ldr r3, [r3, #0] - 80047a4: f003 0320 and.w r3, r3, #32 - 80047a8: 2b00 cmp r3, #0 - 80047aa: f000 808a beq.w 80048c2 + 8004858: 687b ldr r3, [r7, #4] + 800485a: 681b ldr r3, [r3, #0] + 800485c: f003 0320 and.w r3, r3, #32 + 8004860: 2b00 cmp r3, #0 + 8004862: f000 808a beq.w 800497a { /* Check for RTC Parameters used to output RTCCLK */ assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection)); /* Enable Power Clock*/ __HAL_RCC_PWR_CLK_ENABLE(); - 80047ae: 2300 movs r3, #0 - 80047b0: 60bb str r3, [r7, #8] - 80047b2: 4b39 ldr r3, [pc, #228] @ (8004898 ) - 80047b4: 6c1b ldr r3, [r3, #64] @ 0x40 - 80047b6: 4a38 ldr r2, [pc, #224] @ (8004898 ) - 80047b8: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 80047bc: 6413 str r3, [r2, #64] @ 0x40 - 80047be: 4b36 ldr r3, [pc, #216] @ (8004898 ) - 80047c0: 6c1b ldr r3, [r3, #64] @ 0x40 - 80047c2: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 80047c6: 60bb str r3, [r7, #8] - 80047c8: 68bb ldr r3, [r7, #8] + 8004866: 2300 movs r3, #0 + 8004868: 60bb str r3, [r7, #8] + 800486a: 4b39 ldr r3, [pc, #228] @ (8004950 ) + 800486c: 6c1b ldr r3, [r3, #64] @ 0x40 + 800486e: 4a38 ldr r2, [pc, #224] @ (8004950 ) + 8004870: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8004874: 6413 str r3, [r2, #64] @ 0x40 + 8004876: 4b36 ldr r3, [pc, #216] @ (8004950 ) + 8004878: 6c1b ldr r3, [r3, #64] @ 0x40 + 800487a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 800487e: 60bb str r3, [r7, #8] + 8004880: 68bb ldr r3, [r7, #8] /* Enable write access to Backup domain */ PWR->CR |= PWR_CR_DBP; - 80047ca: 4b34 ldr r3, [pc, #208] @ (800489c ) - 80047cc: 681b ldr r3, [r3, #0] - 80047ce: 4a33 ldr r2, [pc, #204] @ (800489c ) - 80047d0: f443 7380 orr.w r3, r3, #256 @ 0x100 - 80047d4: 6013 str r3, [r2, #0] + 8004882: 4b34 ldr r3, [pc, #208] @ (8004954 ) + 8004884: 681b ldr r3, [r3, #0] + 8004886: 4a33 ldr r2, [pc, #204] @ (8004954 ) + 8004888: f443 7380 orr.w r3, r3, #256 @ 0x100 + 800488c: 6013 str r3, [r2, #0] /* Get tick */ tickstart = HAL_GetTick(); - 80047d6: f7fd fb75 bl 8001ec4 - 80047da: 6278 str r0, [r7, #36] @ 0x24 + 800488e: f7fd fb75 bl 8001f7c + 8004892: 6278 str r0, [r7, #36] @ 0x24 while ((PWR->CR & PWR_CR_DBP) == RESET) - 80047dc: e008 b.n 80047f0 + 8004894: e008 b.n 80048a8 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 80047de: f7fd fb71 bl 8001ec4 - 80047e2: 4602 mov r2, r0 - 80047e4: 6a7b ldr r3, [r7, #36] @ 0x24 - 80047e6: 1ad3 subs r3, r2, r3 - 80047e8: 2b02 cmp r3, #2 - 80047ea: d901 bls.n 80047f0 + 8004896: f7fd fb71 bl 8001f7c + 800489a: 4602 mov r2, r0 + 800489c: 6a7b ldr r3, [r7, #36] @ 0x24 + 800489e: 1ad3 subs r3, r2, r3 + 80048a0: 2b02 cmp r3, #2 + 80048a2: d901 bls.n 80048a8 { return HAL_TIMEOUT; - 80047ec: 2303 movs r3, #3 - 80047ee: e278 b.n 8004ce2 + 80048a4: 2303 movs r3, #3 + 80048a6: e278 b.n 8004d9a while ((PWR->CR & PWR_CR_DBP) == RESET) - 80047f0: 4b2a ldr r3, [pc, #168] @ (800489c ) - 80047f2: 681b ldr r3, [r3, #0] - 80047f4: f403 7380 and.w r3, r3, #256 @ 0x100 - 80047f8: 2b00 cmp r3, #0 - 80047fa: d0f0 beq.n 80047de + 80048a8: 4b2a ldr r3, [pc, #168] @ (8004954 ) + 80048aa: 681b ldr r3, [r3, #0] + 80048ac: f403 7380 and.w r3, r3, #256 @ 0x100 + 80048b0: 2b00 cmp r3, #0 + 80048b2: d0f0 beq.n 8004896 } } /* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */ tmpreg1 = (RCC->BDCR & RCC_BDCR_RTCSEL); - 80047fc: 4b26 ldr r3, [pc, #152] @ (8004898 ) - 80047fe: 6f1b ldr r3, [r3, #112] @ 0x70 - 8004800: f403 7340 and.w r3, r3, #768 @ 0x300 - 8004804: 623b str r3, [r7, #32] + 80048b4: 4b26 ldr r3, [pc, #152] @ (8004950 ) + 80048b6: 6f1b ldr r3, [r3, #112] @ 0x70 + 80048b8: f403 7340 and.w r3, r3, #768 @ 0x300 + 80048bc: 623b str r3, [r7, #32] if ((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL))) - 8004806: 6a3b ldr r3, [r7, #32] - 8004808: 2b00 cmp r3, #0 - 800480a: d02f beq.n 800486c - 800480c: 687b ldr r3, [r7, #4] - 800480e: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004810: f403 7340 and.w r3, r3, #768 @ 0x300 - 8004814: 6a3a ldr r2, [r7, #32] - 8004816: 429a cmp r2, r3 - 8004818: d028 beq.n 800486c + 80048be: 6a3b ldr r3, [r7, #32] + 80048c0: 2b00 cmp r3, #0 + 80048c2: d02f beq.n 8004924 + 80048c4: 687b ldr r3, [r7, #4] + 80048c6: 6c1b ldr r3, [r3, #64] @ 0x40 + 80048c8: f403 7340 and.w r3, r3, #768 @ 0x300 + 80048cc: 6a3a ldr r2, [r7, #32] + 80048ce: 429a cmp r2, r3 + 80048d0: d028 beq.n 8004924 { /* Store the content of BDCR register before the reset of Backup Domain */ tmpreg1 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL)); - 800481a: 4b1f ldr r3, [pc, #124] @ (8004898 ) - 800481c: 6f1b ldr r3, [r3, #112] @ 0x70 - 800481e: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8004822: 623b str r3, [r7, #32] + 80048d2: 4b1f ldr r3, [pc, #124] @ (8004950 ) + 80048d4: 6f1b ldr r3, [r3, #112] @ 0x70 + 80048d6: f423 7340 bic.w r3, r3, #768 @ 0x300 + 80048da: 623b str r3, [r7, #32] /* RTC Clock selection can be changed only if the Backup Domain is reset */ __HAL_RCC_BACKUPRESET_FORCE(); - 8004824: 4b1e ldr r3, [pc, #120] @ (80048a0 ) - 8004826: 2201 movs r2, #1 - 8004828: 601a str r2, [r3, #0] + 80048dc: 4b1e ldr r3, [pc, #120] @ (8004958 ) + 80048de: 2201 movs r2, #1 + 80048e0: 601a str r2, [r3, #0] __HAL_RCC_BACKUPRESET_RELEASE(); - 800482a: 4b1d ldr r3, [pc, #116] @ (80048a0 ) - 800482c: 2200 movs r2, #0 - 800482e: 601a str r2, [r3, #0] + 80048e2: 4b1d ldr r3, [pc, #116] @ (8004958 ) + 80048e4: 2200 movs r2, #0 + 80048e6: 601a str r2, [r3, #0] /* Restore the Content of BDCR register */ RCC->BDCR = tmpreg1; - 8004830: 4a19 ldr r2, [pc, #100] @ (8004898 ) - 8004832: 6a3b ldr r3, [r7, #32] - 8004834: 6713 str r3, [r2, #112] @ 0x70 + 80048e8: 4a19 ldr r2, [pc, #100] @ (8004950 ) + 80048ea: 6a3b ldr r3, [r7, #32] + 80048ec: 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)) - 8004836: 4b18 ldr r3, [pc, #96] @ (8004898 ) - 8004838: 6f1b ldr r3, [r3, #112] @ 0x70 - 800483a: f003 0301 and.w r3, r3, #1 - 800483e: 2b01 cmp r3, #1 - 8004840: d114 bne.n 800486c + 80048ee: 4b18 ldr r3, [pc, #96] @ (8004950 ) + 80048f0: 6f1b ldr r3, [r3, #112] @ 0x70 + 80048f2: f003 0301 and.w r3, r3, #1 + 80048f6: 2b01 cmp r3, #1 + 80048f8: d114 bne.n 8004924 { /* Get tick */ tickstart = HAL_GetTick(); - 8004842: f7fd fb3f bl 8001ec4 - 8004846: 6278 str r0, [r7, #36] @ 0x24 + 80048fa: f7fd fb3f bl 8001f7c + 80048fe: 6278 str r0, [r7, #36] @ 0x24 /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8004848: e00a b.n 8004860 + 8004900: e00a b.n 8004918 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 800484a: f7fd fb3b bl 8001ec4 - 800484e: 4602 mov r2, r0 - 8004850: 6a7b ldr r3, [r7, #36] @ 0x24 - 8004852: 1ad3 subs r3, r2, r3 - 8004854: f241 3288 movw r2, #5000 @ 0x1388 - 8004858: 4293 cmp r3, r2 - 800485a: d901 bls.n 8004860 + 8004902: f7fd fb3b bl 8001f7c + 8004906: 4602 mov r2, r0 + 8004908: 6a7b ldr r3, [r7, #36] @ 0x24 + 800490a: 1ad3 subs r3, r2, r3 + 800490c: f241 3288 movw r2, #5000 @ 0x1388 + 8004910: 4293 cmp r3, r2 + 8004912: d901 bls.n 8004918 { return HAL_TIMEOUT; - 800485c: 2303 movs r3, #3 - 800485e: e240 b.n 8004ce2 + 8004914: 2303 movs r3, #3 + 8004916: e240 b.n 8004d9a while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 8004860: 4b0d ldr r3, [pc, #52] @ (8004898 ) - 8004862: 6f1b ldr r3, [r3, #112] @ 0x70 - 8004864: f003 0302 and.w r3, r3, #2 - 8004868: 2b00 cmp r3, #0 - 800486a: d0ee beq.n 800484a + 8004918: 4b0d ldr r3, [pc, #52] @ (8004950 ) + 800491a: 6f1b ldr r3, [r3, #112] @ 0x70 + 800491c: f003 0302 and.w r3, r3, #2 + 8004920: 2b00 cmp r3, #0 + 8004922: d0ee beq.n 8004902 } } } } __HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection); - 800486c: 687b ldr r3, [r7, #4] - 800486e: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004870: f403 7340 and.w r3, r3, #768 @ 0x300 - 8004874: f5b3 7f40 cmp.w r3, #768 @ 0x300 - 8004878: d114 bne.n 80048a4 - 800487a: 4b07 ldr r3, [pc, #28] @ (8004898 ) - 800487c: 689b ldr r3, [r3, #8] - 800487e: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000 - 8004882: 687b ldr r3, [r7, #4] - 8004884: 6c1b ldr r3, [r3, #64] @ 0x40 - 8004886: f023 4370 bic.w r3, r3, #4026531840 @ 0xf0000000 - 800488a: f423 7340 bic.w r3, r3, #768 @ 0x300 - 800488e: 4902 ldr r1, [pc, #8] @ (8004898 ) - 8004890: 4313 orrs r3, r2 - 8004892: 608b str r3, [r1, #8] - 8004894: e00c b.n 80048b0 - 8004896: bf00 nop - 8004898: 40023800 .word 0x40023800 - 800489c: 40007000 .word 0x40007000 - 80048a0: 42470e40 .word 0x42470e40 - 80048a4: 4b4a ldr r3, [pc, #296] @ (80049d0 ) - 80048a6: 689b ldr r3, [r3, #8] - 80048a8: 4a49 ldr r2, [pc, #292] @ (80049d0 ) - 80048aa: f423 13f8 bic.w r3, r3, #2031616 @ 0x1f0000 - 80048ae: 6093 str r3, [r2, #8] - 80048b0: 4b47 ldr r3, [pc, #284] @ (80049d0 ) - 80048b2: 6f1a ldr r2, [r3, #112] @ 0x70 - 80048b4: 687b ldr r3, [r7, #4] - 80048b6: 6c1b ldr r3, [r3, #64] @ 0x40 - 80048b8: f3c3 030b ubfx r3, r3, #0, #12 - 80048bc: 4944 ldr r1, [pc, #272] @ (80049d0 ) - 80048be: 4313 orrs r3, r2 - 80048c0: 670b str r3, [r1, #112] @ 0x70 + 8004924: 687b ldr r3, [r7, #4] + 8004926: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004928: f403 7340 and.w r3, r3, #768 @ 0x300 + 800492c: f5b3 7f40 cmp.w r3, #768 @ 0x300 + 8004930: d114 bne.n 800495c + 8004932: 4b07 ldr r3, [pc, #28] @ (8004950 ) + 8004934: 689b ldr r3, [r3, #8] + 8004936: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000 + 800493a: 687b ldr r3, [r7, #4] + 800493c: 6c1b ldr r3, [r3, #64] @ 0x40 + 800493e: f023 4370 bic.w r3, r3, #4026531840 @ 0xf0000000 + 8004942: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8004946: 4902 ldr r1, [pc, #8] @ (8004950 ) + 8004948: 4313 orrs r3, r2 + 800494a: 608b str r3, [r1, #8] + 800494c: e00c b.n 8004968 + 800494e: bf00 nop + 8004950: 40023800 .word 0x40023800 + 8004954: 40007000 .word 0x40007000 + 8004958: 42470e40 .word 0x42470e40 + 800495c: 4b4a ldr r3, [pc, #296] @ (8004a88 ) + 800495e: 689b ldr r3, [r3, #8] + 8004960: 4a49 ldr r2, [pc, #292] @ (8004a88 ) + 8004962: f423 13f8 bic.w r3, r3, #2031616 @ 0x1f0000 + 8004966: 6093 str r3, [r2, #8] + 8004968: 4b47 ldr r3, [pc, #284] @ (8004a88 ) + 800496a: 6f1a ldr r2, [r3, #112] @ 0x70 + 800496c: 687b ldr r3, [r7, #4] + 800496e: 6c1b ldr r3, [r3, #64] @ 0x40 + 8004970: f3c3 030b ubfx r3, r3, #0, #12 + 8004974: 4944 ldr r1, [pc, #272] @ (8004a88 ) + 8004976: 4313 orrs r3, r2 + 8004978: 670b str r3, [r1, #112] @ 0x70 } /*--------------------------------------------------------------------------*/ /*---------------------------- TIM configuration ---------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == (RCC_PERIPHCLK_TIM)) - 80048c2: 687b ldr r3, [r7, #4] - 80048c4: 681b ldr r3, [r3, #0] - 80048c6: f003 0310 and.w r3, r3, #16 - 80048ca: 2b00 cmp r3, #0 - 80048cc: d004 beq.n 80048d8 + 800497a: 687b ldr r3, [r7, #4] + 800497c: 681b ldr r3, [r3, #0] + 800497e: f003 0310 and.w r3, r3, #16 + 8004982: 2b00 cmp r3, #0 + 8004984: d004 beq.n 8004990 { /* Configure Timer Prescaler */ __HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection); - 80048ce: 687b ldr r3, [r7, #4] - 80048d0: f893 2058 ldrb.w r2, [r3, #88] @ 0x58 - 80048d4: 4b3f ldr r3, [pc, #252] @ (80049d4 ) - 80048d6: 601a str r2, [r3, #0] + 8004986: 687b ldr r3, [r7, #4] + 8004988: f893 2058 ldrb.w r2, [r3, #88] @ 0x58 + 800498c: 4b3f ldr r3, [pc, #252] @ (8004a8c ) + 800498e: 601a str r2, [r3, #0] } /*--------------------------------------------------------------------------*/ /*---------------------------- FMPI2C1 Configuration -----------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_FMPI2C1) == RCC_PERIPHCLK_FMPI2C1) - 80048d8: 687b ldr r3, [r7, #4] - 80048da: 681b ldr r3, [r3, #0] - 80048dc: f003 0380 and.w r3, r3, #128 @ 0x80 - 80048e0: 2b00 cmp r3, #0 - 80048e2: d00a beq.n 80048fa + 8004990: 687b ldr r3, [r7, #4] + 8004992: 681b ldr r3, [r3, #0] + 8004994: f003 0380 and.w r3, r3, #128 @ 0x80 + 8004998: 2b00 cmp r3, #0 + 800499a: d00a beq.n 80049b2 { /* Check the parameters */ assert_param(IS_RCC_FMPI2C1CLKSOURCE(PeriphClkInit->Fmpi2c1ClockSelection)); /* Configure the FMPI2C1 clock source */ __HAL_RCC_FMPI2C1_CONFIG(PeriphClkInit->Fmpi2c1ClockSelection); - 80048e4: 4b3a ldr r3, [pc, #232] @ (80049d0 ) - 80048e6: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 80048ea: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 - 80048ee: 687b ldr r3, [r7, #4] - 80048f0: 6cdb ldr r3, [r3, #76] @ 0x4c - 80048f2: 4937 ldr r1, [pc, #220] @ (80049d0 ) - 80048f4: 4313 orrs r3, r2 - 80048f6: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 800499c: 4b3a ldr r3, [pc, #232] @ (8004a88 ) + 800499e: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 80049a2: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000 + 80049a6: 687b ldr r3, [r7, #4] + 80049a8: 6cdb ldr r3, [r3, #76] @ 0x4c + 80049aa: 4937 ldr r1, [pc, #220] @ (8004a88 ) + 80049ac: 4313 orrs r3, r2 + 80049ae: f8c1 3094 str.w r3, [r1, #148] @ 0x94 } /*--------------------------------------------------------------------------*/ /*------------------------------ CEC Configuration -------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CEC) == RCC_PERIPHCLK_CEC) - 80048fa: 687b ldr r3, [r7, #4] - 80048fc: 681b ldr r3, [r3, #0] - 80048fe: f003 0340 and.w r3, r3, #64 @ 0x40 - 8004902: 2b00 cmp r3, #0 - 8004904: d00a beq.n 800491c + 80049b2: 687b ldr r3, [r7, #4] + 80049b4: 681b ldr r3, [r3, #0] + 80049b6: f003 0340 and.w r3, r3, #64 @ 0x40 + 80049ba: 2b00 cmp r3, #0 + 80049bc: d00a beq.n 80049d4 { /* Check the parameters */ assert_param(IS_RCC_CECCLKSOURCE(PeriphClkInit->CecClockSelection)); /* Configure the CEC clock source */ __HAL_RCC_CEC_CONFIG(PeriphClkInit->CecClockSelection); - 8004906: 4b32 ldr r3, [pc, #200] @ (80049d0 ) - 8004908: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 800490c: f023 6280 bic.w r2, r3, #67108864 @ 0x4000000 - 8004910: 687b ldr r3, [r7, #4] - 8004912: 6c9b ldr r3, [r3, #72] @ 0x48 - 8004914: 492e ldr r1, [pc, #184] @ (80049d0 ) - 8004916: 4313 orrs r3, r2 - 8004918: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 80049be: 4b32 ldr r3, [pc, #200] @ (8004a88 ) + 80049c0: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 80049c4: f023 6280 bic.w r2, r3, #67108864 @ 0x4000000 + 80049c8: 687b ldr r3, [r7, #4] + 80049ca: 6c9b ldr r3, [r3, #72] @ 0x48 + 80049cc: 492e ldr r1, [pc, #184] @ (8004a88 ) + 80049ce: 4313 orrs r3, r2 + 80049d0: f8c1 3094 str.w r3, [r1, #148] @ 0x94 } /*--------------------------------------------------------------------------*/ /*----------------------------- CLK48 Configuration ------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) - 800491c: 687b ldr r3, [r7, #4] - 800491e: 681b ldr r3, [r3, #0] - 8004920: f403 7380 and.w r3, r3, #256 @ 0x100 - 8004924: 2b00 cmp r3, #0 - 8004926: d011 beq.n 800494c + 80049d4: 687b ldr r3, [r7, #4] + 80049d6: 681b ldr r3, [r3, #0] + 80049d8: f403 7380 and.w r3, r3, #256 @ 0x100 + 80049dc: 2b00 cmp r3, #0 + 80049de: d011 beq.n 8004a04 { /* Check the parameters */ assert_param(IS_RCC_CLK48CLKSOURCE(PeriphClkInit->Clk48ClockSelection)); /* Configure the CLK48 clock source */ __HAL_RCC_CLK48_CONFIG(PeriphClkInit->Clk48ClockSelection); - 8004928: 4b29 ldr r3, [pc, #164] @ (80049d0 ) - 800492a: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 800492e: f023 6200 bic.w r2, r3, #134217728 @ 0x8000000 - 8004932: 687b ldr r3, [r7, #4] - 8004934: 6d5b ldr r3, [r3, #84] @ 0x54 - 8004936: 4926 ldr r1, [pc, #152] @ (80049d0 ) - 8004938: 4313 orrs r3, r2 - 800493a: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 80049e0: 4b29 ldr r3, [pc, #164] @ (8004a88 ) + 80049e2: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 80049e6: f023 6200 bic.w r2, r3, #134217728 @ 0x8000000 + 80049ea: 687b ldr r3, [r7, #4] + 80049ec: 6d5b ldr r3, [r3, #84] @ 0x54 + 80049ee: 4926 ldr r1, [pc, #152] @ (8004a88 ) + 80049f0: 4313 orrs r3, r2 + 80049f2: 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) - 800493e: 687b ldr r3, [r7, #4] - 8004940: 6d5b ldr r3, [r3, #84] @ 0x54 - 8004942: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 - 8004946: d101 bne.n 800494c + 80049f6: 687b ldr r3, [r7, #4] + 80049f8: 6d5b ldr r3, [r3, #84] @ 0x54 + 80049fa: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 + 80049fe: d101 bne.n 8004a04 { pllsaiused = 1U; - 8004948: 2301 movs r3, #1 - 800494a: 62bb str r3, [r7, #40] @ 0x28 + 8004a00: 2301 movs r3, #1 + 8004a02: 62bb str r3, [r7, #40] @ 0x28 } } /*--------------------------------------------------------------------------*/ /*----------------------------- SDIO Configuration -------------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDIO) == RCC_PERIPHCLK_SDIO) - 800494c: 687b ldr r3, [r7, #4] - 800494e: 681b ldr r3, [r3, #0] - 8004950: f403 7300 and.w r3, r3, #512 @ 0x200 - 8004954: 2b00 cmp r3, #0 - 8004956: d00a beq.n 800496e + 8004a04: 687b ldr r3, [r7, #4] + 8004a06: 681b ldr r3, [r3, #0] + 8004a08: f403 7300 and.w r3, r3, #512 @ 0x200 + 8004a0c: 2b00 cmp r3, #0 + 8004a0e: d00a beq.n 8004a26 { /* Check the parameters */ assert_param(IS_RCC_SDIOCLKSOURCE(PeriphClkInit->SdioClockSelection)); /* Configure the SDIO clock source */ __HAL_RCC_SDIO_CONFIG(PeriphClkInit->SdioClockSelection); - 8004958: 4b1d ldr r3, [pc, #116] @ (80049d0 ) - 800495a: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 800495e: f023 5280 bic.w r2, r3, #268435456 @ 0x10000000 - 8004962: 687b ldr r3, [r7, #4] - 8004964: 6c5b ldr r3, [r3, #68] @ 0x44 - 8004966: 491a ldr r1, [pc, #104] @ (80049d0 ) - 8004968: 4313 orrs r3, r2 - 800496a: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 8004a10: 4b1d ldr r3, [pc, #116] @ (8004a88 ) + 8004a12: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 8004a16: f023 5280 bic.w r2, r3, #268435456 @ 0x10000000 + 8004a1a: 687b ldr r3, [r7, #4] + 8004a1c: 6c5b ldr r3, [r3, #68] @ 0x44 + 8004a1e: 491a ldr r1, [pc, #104] @ (8004a88 ) + 8004a20: 4313 orrs r3, r2 + 8004a22: f8c1 3094 str.w r3, [r1, #148] @ 0x94 } /*--------------------------------------------------------------------------*/ /*------------------------------ SPDIFRX Configuration ---------------------*/ if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SPDIFRX) == RCC_PERIPHCLK_SPDIFRX) - 800496e: 687b ldr r3, [r7, #4] - 8004970: 681b ldr r3, [r3, #0] - 8004972: f403 6380 and.w r3, r3, #1024 @ 0x400 - 8004976: 2b00 cmp r3, #0 - 8004978: d011 beq.n 800499e + 8004a26: 687b ldr r3, [r7, #4] + 8004a28: 681b ldr r3, [r3, #0] + 8004a2a: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8004a2e: 2b00 cmp r3, #0 + 8004a30: d011 beq.n 8004a56 { /* Check the parameters */ assert_param(IS_RCC_SPDIFRXCLKSOURCE(PeriphClkInit->SpdifClockSelection)); /* Configure the SPDIFRX clock source */ __HAL_RCC_SPDIFRX_CONFIG(PeriphClkInit->SpdifClockSelection); - 800497a: 4b15 ldr r3, [pc, #84] @ (80049d0 ) - 800497c: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 - 8004980: f023 5200 bic.w r2, r3, #536870912 @ 0x20000000 - 8004984: 687b ldr r3, [r7, #4] - 8004986: 6d1b ldr r3, [r3, #80] @ 0x50 - 8004988: 4911 ldr r1, [pc, #68] @ (80049d0 ) - 800498a: 4313 orrs r3, r2 - 800498c: f8c1 3094 str.w r3, [r1, #148] @ 0x94 + 8004a32: 4b15 ldr r3, [pc, #84] @ (8004a88 ) + 8004a34: f8d3 3094 ldr.w r3, [r3, #148] @ 0x94 + 8004a38: f023 5200 bic.w r2, r3, #536870912 @ 0x20000000 + 8004a3c: 687b ldr r3, [r7, #4] + 8004a3e: 6d1b ldr r3, [r3, #80] @ 0x50 + 8004a40: 4911 ldr r1, [pc, #68] @ (8004a88 ) + 8004a42: 4313 orrs r3, r2 + 8004a44: 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) - 8004990: 687b ldr r3, [r7, #4] - 8004992: 6d1b ldr r3, [r3, #80] @ 0x50 - 8004994: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8004998: d101 bne.n 800499e + 8004a48: 687b ldr r3, [r7, #4] + 8004a4a: 6d1b ldr r3, [r3, #80] @ 0x50 + 8004a4c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 8004a50: d101 bne.n 8004a56 { plli2sused = 1U; - 800499a: 2301 movs r3, #1 - 800499c: 62fb str r3, [r7, #44] @ 0x2c + 8004a52: 2301 movs r3, #1 + 8004a54: 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)) - 800499e: 6afb ldr r3, [r7, #44] @ 0x2c - 80049a0: 2b01 cmp r3, #1 - 80049a2: d005 beq.n 80049b0 - 80049a4: 687b ldr r3, [r7, #4] - 80049a6: 681b ldr r3, [r3, #0] - 80049a8: f5b3 6f00 cmp.w r3, #2048 @ 0x800 - 80049ac: f040 80ff bne.w 8004bae + 8004a56: 6afb ldr r3, [r7, #44] @ 0x2c + 8004a58: 2b01 cmp r3, #1 + 8004a5a: d005 beq.n 8004a68 + 8004a5c: 687b ldr r3, [r7, #4] + 8004a5e: 681b ldr r3, [r3, #0] + 8004a60: f5b3 6f00 cmp.w r3, #2048 @ 0x800 + 8004a64: f040 80ff bne.w 8004c66 { /* Disable the PLLI2S */ __HAL_RCC_PLLI2S_DISABLE(); - 80049b0: 4b09 ldr r3, [pc, #36] @ (80049d8 ) - 80049b2: 2200 movs r2, #0 - 80049b4: 601a str r2, [r3, #0] + 8004a68: 4b09 ldr r3, [pc, #36] @ (8004a90 ) + 8004a6a: 2200 movs r2, #0 + 8004a6c: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 80049b6: f7fd fa85 bl 8001ec4 - 80049ba: 6278 str r0, [r7, #36] @ 0x24 + 8004a6e: f7fd fa85 bl 8001f7c + 8004a72: 6278 str r0, [r7, #36] @ 0x24 /* Wait till PLLI2S is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) - 80049bc: e00e b.n 80049dc + 8004a74: e00e b.n 8004a94 { if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) - 80049be: f7fd fa81 bl 8001ec4 - 80049c2: 4602 mov r2, r0 - 80049c4: 6a7b ldr r3, [r7, #36] @ 0x24 - 80049c6: 1ad3 subs r3, r2, r3 - 80049c8: 2b02 cmp r3, #2 - 80049ca: d907 bls.n 80049dc + 8004a76: f7fd fa81 bl 8001f7c + 8004a7a: 4602 mov r2, r0 + 8004a7c: 6a7b ldr r3, [r7, #36] @ 0x24 + 8004a7e: 1ad3 subs r3, r2, r3 + 8004a80: 2b02 cmp r3, #2 + 8004a82: d907 bls.n 8004a94 { /* return in case of Timeout detected */ return HAL_TIMEOUT; - 80049cc: 2303 movs r3, #3 - 80049ce: e188 b.n 8004ce2 - 80049d0: 40023800 .word 0x40023800 - 80049d4: 424711e0 .word 0x424711e0 - 80049d8: 42470068 .word 0x42470068 + 8004a84: 2303 movs r3, #3 + 8004a86: e188 b.n 8004d9a + 8004a88: 40023800 .word 0x40023800 + 8004a8c: 424711e0 .word 0x424711e0 + 8004a90: 42470068 .word 0x42470068 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET) - 80049dc: 4b7e ldr r3, [pc, #504] @ (8004bd8 ) - 80049de: 681b ldr r3, [r3, #0] - 80049e0: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 - 80049e4: 2b00 cmp r3, #0 - 80049e6: d1ea bne.n 80049be + 8004a94: 4b7e ldr r3, [pc, #504] @ (8004c90 ) + 8004a96: 681b ldr r3, [r3, #0] + 8004a98: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 + 8004a9c: 2b00 cmp r3, #0 + 8004a9e: d1ea bne.n 8004a76 /* 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) - 80049e8: 687b ldr r3, [r7, #4] - 80049ea: 681b ldr r3, [r3, #0] - 80049ec: f003 0301 and.w r3, r3, #1 - 80049f0: 2b00 cmp r3, #0 - 80049f2: d003 beq.n 80049fc + 8004aa0: 687b ldr r3, [r7, #4] + 8004aa2: 681b ldr r3, [r3, #0] + 8004aa4: f003 0301 and.w r3, r3, #1 + 8004aa8: 2b00 cmp r3, #0 + 8004aaa: d003 beq.n 8004ab4 && (PeriphClkInit->I2sApb1ClockSelection == RCC_I2SAPB1CLKSOURCE_PLLI2S)) || - 80049f4: 687b ldr r3, [r7, #4] - 80049f6: 6b9b ldr r3, [r3, #56] @ 0x38 - 80049f8: 2b00 cmp r3, #0 - 80049fa: d009 beq.n 8004a10 + 8004aac: 687b ldr r3, [r7, #4] + 8004aae: 6b9b ldr r3, [r3, #56] @ 0x38 + 8004ab0: 2b00 cmp r3, #0 + 8004ab2: d009 beq.n 8004ac8 ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == RCC_PERIPHCLK_I2S_APB2) && (PeriphClkInit->I2sApb2ClockSelection == RCC_I2SAPB2CLKSOURCE_PLLI2S))) - 80049fc: 687b ldr r3, [r7, #4] - 80049fe: 681b ldr r3, [r3, #0] - 8004a00: f003 0302 and.w r3, r3, #2 + 8004ab4: 687b ldr r3, [r7, #4] + 8004ab6: 681b ldr r3, [r3, #0] + 8004ab8: f003 0302 and.w r3, r3, #2 && (PeriphClkInit->I2sApb1ClockSelection == RCC_I2SAPB1CLKSOURCE_PLLI2S)) || - 8004a04: 2b00 cmp r3, #0 - 8004a06: d028 beq.n 8004a5a + 8004abc: 2b00 cmp r3, #0 + 8004abe: d028 beq.n 8004b12 ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S_APB2) == RCC_PERIPHCLK_I2S_APB2) && (PeriphClkInit->I2sApb2ClockSelection == RCC_I2SAPB2CLKSOURCE_PLLI2S))) - 8004a08: 687b ldr r3, [r7, #4] - 8004a0a: 6bdb ldr r3, [r3, #60] @ 0x3c - 8004a0c: 2b00 cmp r3, #0 - 8004a0e: d124 bne.n 8004a5a + 8004ac0: 687b ldr r3, [r7, #4] + 8004ac2: 6bdb ldr r3, [r3, #60] @ 0x3c + 8004ac4: 2b00 cmp r3, #0 + 8004ac6: d124 bne.n 8004b12 { /* 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); - 8004a10: 4b71 ldr r3, [pc, #452] @ (8004bd8 ) - 8004a12: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8004a16: 0c1b lsrs r3, r3, #16 - 8004a18: f003 0303 and.w r3, r3, #3 - 8004a1c: 3301 adds r3, #1 - 8004a1e: 005b lsls r3, r3, #1 - 8004a20: 61fb str r3, [r7, #28] + 8004ac8: 4b71 ldr r3, [pc, #452] @ (8004c90 ) + 8004aca: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8004ace: 0c1b lsrs r3, r3, #16 + 8004ad0: f003 0303 and.w r3, r3, #3 + 8004ad4: 3301 adds r3, #1 + 8004ad6: 005b lsls r3, r3, #1 + 8004ad8: 61fb str r3, [r7, #28] plli2sq = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos); - 8004a22: 4b6d ldr r3, [pc, #436] @ (8004bd8 ) - 8004a24: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8004a28: 0e1b lsrs r3, r3, #24 - 8004a2a: f003 030f and.w r3, r3, #15 - 8004a2e: 61bb str r3, [r7, #24] + 8004ada: 4b6d ldr r3, [pc, #436] @ (8004c90 ) + 8004adc: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8004ae0: 0e1b lsrs r3, r3, #24 + 8004ae2: f003 030f and.w r3, r3, #15 + 8004ae6: 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, - 8004a30: 687b ldr r3, [r7, #4] - 8004a32: 685a ldr r2, [r3, #4] - 8004a34: 687b ldr r3, [r7, #4] - 8004a36: 689b ldr r3, [r3, #8] - 8004a38: 019b lsls r3, r3, #6 - 8004a3a: 431a orrs r2, r3 - 8004a3c: 69fb ldr r3, [r7, #28] - 8004a3e: 085b lsrs r3, r3, #1 - 8004a40: 3b01 subs r3, #1 - 8004a42: 041b lsls r3, r3, #16 - 8004a44: 431a orrs r2, r3 - 8004a46: 69bb ldr r3, [r7, #24] - 8004a48: 061b lsls r3, r3, #24 - 8004a4a: 431a orrs r2, r3 - 8004a4c: 687b ldr r3, [r7, #4] - 8004a4e: 695b ldr r3, [r3, #20] - 8004a50: 071b lsls r3, r3, #28 - 8004a52: 4961 ldr r1, [pc, #388] @ (8004bd8 ) - 8004a54: 4313 orrs r3, r2 - 8004a56: f8c1 3084 str.w r3, [r1, #132] @ 0x84 + 8004ae8: 687b ldr r3, [r7, #4] + 8004aea: 685a ldr r2, [r3, #4] + 8004aec: 687b ldr r3, [r7, #4] + 8004aee: 689b ldr r3, [r3, #8] + 8004af0: 019b lsls r3, r3, #6 + 8004af2: 431a orrs r2, r3 + 8004af4: 69fb ldr r3, [r7, #28] + 8004af6: 085b lsrs r3, r3, #1 + 8004af8: 3b01 subs r3, #1 + 8004afa: 041b lsls r3, r3, #16 + 8004afc: 431a orrs r2, r3 + 8004afe: 69bb ldr r3, [r7, #24] + 8004b00: 061b lsls r3, r3, #24 + 8004b02: 431a orrs r2, r3 + 8004b04: 687b ldr r3, [r7, #4] + 8004b06: 695b ldr r3, [r3, #20] + 8004b08: 071b lsls r3, r3, #28 + 8004b0a: 4961 ldr r1, [pc, #388] @ (8004c90 ) + 8004b0c: 4313 orrs r3, r2 + 8004b0e: 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) - 8004a5a: 687b ldr r3, [r7, #4] - 8004a5c: 681b ldr r3, [r3, #0] - 8004a5e: f003 0304 and.w r3, r3, #4 - 8004a62: 2b00 cmp r3, #0 - 8004a64: d004 beq.n 8004a70 + 8004b12: 687b ldr r3, [r7, #4] + 8004b14: 681b ldr r3, [r3, #0] + 8004b16: f003 0304 and.w r3, r3, #4 + 8004b1a: 2b00 cmp r3, #0 + 8004b1c: d004 beq.n 8004b28 && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)) || - 8004a66: 687b ldr r3, [r7, #4] - 8004a68: 6b1b ldr r3, [r3, #48] @ 0x30 - 8004a6a: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 - 8004a6e: d00a beq.n 8004a86 + 8004b1e: 687b ldr r3, [r7, #4] + 8004b20: 6b1b ldr r3, [r3, #48] @ 0x30 + 8004b22: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000 + 8004b26: d00a beq.n 8004b3e ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S))) - 8004a70: 687b ldr r3, [r7, #4] - 8004a72: 681b ldr r3, [r3, #0] - 8004a74: f003 0308 and.w r3, r3, #8 + 8004b28: 687b ldr r3, [r7, #4] + 8004b2a: 681b ldr r3, [r3, #0] + 8004b2c: f003 0308 and.w r3, r3, #8 && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)) || - 8004a78: 2b00 cmp r3, #0 - 8004a7a: d035 beq.n 8004ae8 + 8004b30: 2b00 cmp r3, #0 + 8004b32: d035 beq.n 8004ba0 ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S))) - 8004a7c: 687b ldr r3, [r7, #4] - 8004a7e: 6b5b ldr r3, [r3, #52] @ 0x34 - 8004a80: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 8004a84: d130 bne.n 8004ae8 + 8004b34: 687b ldr r3, [r7, #4] + 8004b36: 6b5b ldr r3, [r3, #52] @ 0x34 + 8004b38: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 8004b3c: d130 bne.n 8004ba0 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); - 8004a86: 4b54 ldr r3, [pc, #336] @ (8004bd8 ) - 8004a88: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8004a8c: 0c1b lsrs r3, r3, #16 - 8004a8e: f003 0303 and.w r3, r3, #3 - 8004a92: 3301 adds r3, #1 - 8004a94: 005b lsls r3, r3, #1 - 8004a96: 61fb str r3, [r7, #28] + 8004b3e: 4b54 ldr r3, [pc, #336] @ (8004c90 ) + 8004b40: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8004b44: 0c1b lsrs r3, r3, #16 + 8004b46: f003 0303 and.w r3, r3, #3 + 8004b4a: 3301 adds r3, #1 + 8004b4c: 005b lsls r3, r3, #1 + 8004b4e: 61fb str r3, [r7, #28] plli2sr = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); - 8004a98: 4b4f ldr r3, [pc, #316] @ (8004bd8 ) - 8004a9a: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8004a9e: 0f1b lsrs r3, r3, #28 - 8004aa0: f003 0307 and.w r3, r3, #7 - 8004aa4: 617b str r3, [r7, #20] + 8004b50: 4b4f ldr r3, [pc, #316] @ (8004c90 ) + 8004b52: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8004b56: 0f1b lsrs r3, r3, #28 + 8004b58: f003 0307 and.w r3, r3, #7 + 8004b5c: 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, - 8004aa6: 687b ldr r3, [r7, #4] - 8004aa8: 685a ldr r2, [r3, #4] - 8004aaa: 687b ldr r3, [r7, #4] - 8004aac: 689b ldr r3, [r3, #8] - 8004aae: 019b lsls r3, r3, #6 - 8004ab0: 431a orrs r2, r3 - 8004ab2: 69fb ldr r3, [r7, #28] - 8004ab4: 085b lsrs r3, r3, #1 - 8004ab6: 3b01 subs r3, #1 - 8004ab8: 041b lsls r3, r3, #16 - 8004aba: 431a orrs r2, r3 - 8004abc: 687b ldr r3, [r7, #4] - 8004abe: 691b ldr r3, [r3, #16] - 8004ac0: 061b lsls r3, r3, #24 - 8004ac2: 431a orrs r2, r3 - 8004ac4: 697b ldr r3, [r7, #20] - 8004ac6: 071b lsls r3, r3, #28 - 8004ac8: 4943 ldr r1, [pc, #268] @ (8004bd8 ) - 8004aca: 4313 orrs r3, r2 - 8004acc: f8c1 3084 str.w r3, [r1, #132] @ 0x84 + 8004b5e: 687b ldr r3, [r7, #4] + 8004b60: 685a ldr r2, [r3, #4] + 8004b62: 687b ldr r3, [r7, #4] + 8004b64: 689b ldr r3, [r3, #8] + 8004b66: 019b lsls r3, r3, #6 + 8004b68: 431a orrs r2, r3 + 8004b6a: 69fb ldr r3, [r7, #28] + 8004b6c: 085b lsrs r3, r3, #1 + 8004b6e: 3b01 subs r3, #1 + 8004b70: 041b lsls r3, r3, #16 + 8004b72: 431a orrs r2, r3 + 8004b74: 687b ldr r3, [r7, #4] + 8004b76: 691b ldr r3, [r3, #16] + 8004b78: 061b lsls r3, r3, #24 + 8004b7a: 431a orrs r2, r3 + 8004b7c: 697b ldr r3, [r7, #20] + 8004b7e: 071b lsls r3, r3, #28 + 8004b80: 4943 ldr r1, [pc, #268] @ (8004c90 ) + 8004b82: 4313 orrs r3, r2 + 8004b84: 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); - 8004ad0: 4b41 ldr r3, [pc, #260] @ (8004bd8 ) - 8004ad2: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 8004ad6: f023 021f bic.w r2, r3, #31 - 8004ada: 687b ldr r3, [r7, #4] - 8004adc: 6a9b ldr r3, [r3, #40] @ 0x28 - 8004ade: 3b01 subs r3, #1 - 8004ae0: 493d ldr r1, [pc, #244] @ (8004bd8 ) - 8004ae2: 4313 orrs r3, r2 - 8004ae4: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 8004b88: 4b41 ldr r3, [pc, #260] @ (8004c90 ) + 8004b8a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 8004b8e: f023 021f bic.w r2, r3, #31 + 8004b92: 687b ldr r3, [r7, #4] + 8004b94: 6a9b ldr r3, [r3, #40] @ 0x28 + 8004b96: 3b01 subs r3, #1 + 8004b98: 493d ldr r1, [pc, #244] @ (8004c90 ) + 8004b9a: 4313 orrs r3, r2 + 8004b9c: 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) - 8004ae8: 687b ldr r3, [r7, #4] - 8004aea: 681b ldr r3, [r3, #0] - 8004aec: f403 6380 and.w r3, r3, #1024 @ 0x400 - 8004af0: 2b00 cmp r3, #0 - 8004af2: d029 beq.n 8004b48 + 8004ba0: 687b ldr r3, [r7, #4] + 8004ba2: 681b ldr r3, [r3, #0] + 8004ba4: f403 6380 and.w r3, r3, #1024 @ 0x400 + 8004ba8: 2b00 cmp r3, #0 + 8004baa: d029 beq.n 8004c00 && (PeriphClkInit->SpdifClockSelection == RCC_SPDIFRXCLKSOURCE_PLLI2SP)) - 8004af4: 687b ldr r3, [r7, #4] - 8004af6: 6d1b ldr r3, [r3, #80] @ 0x50 - 8004af8: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8004afc: d124 bne.n 8004b48 + 8004bac: 687b ldr r3, [r7, #4] + 8004bae: 6d1b ldr r3, [r3, #80] @ 0x50 + 8004bb0: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 8004bb4: d124 bne.n 8004c00 { /* 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); - 8004afe: 4b36 ldr r3, [pc, #216] @ (8004bd8 ) - 8004b00: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8004b04: 0c1b lsrs r3, r3, #16 - 8004b06: f003 0303 and.w r3, r3, #3 - 8004b0a: 3301 adds r3, #1 - 8004b0c: 005b lsls r3, r3, #1 - 8004b0e: 61bb str r3, [r7, #24] + 8004bb6: 4b36 ldr r3, [pc, #216] @ (8004c90 ) + 8004bb8: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8004bbc: 0c1b lsrs r3, r3, #16 + 8004bbe: f003 0303 and.w r3, r3, #3 + 8004bc2: 3301 adds r3, #1 + 8004bc4: 005b lsls r3, r3, #1 + 8004bc6: 61bb str r3, [r7, #24] plli2sr = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos); - 8004b10: 4b31 ldr r3, [pc, #196] @ (8004bd8 ) - 8004b12: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 - 8004b16: 0f1b lsrs r3, r3, #28 - 8004b18: f003 0307 and.w r3, r3, #7 - 8004b1c: 617b str r3, [r7, #20] + 8004bc8: 4b31 ldr r3, [pc, #196] @ (8004c90 ) + 8004bca: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84 + 8004bce: 0f1b lsrs r3, r3, #28 + 8004bd0: f003 0307 and.w r3, r3, #7 + 8004bd4: 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, - 8004b1e: 687b ldr r3, [r7, #4] - 8004b20: 685a ldr r2, [r3, #4] - 8004b22: 687b ldr r3, [r7, #4] - 8004b24: 689b ldr r3, [r3, #8] - 8004b26: 019b lsls r3, r3, #6 - 8004b28: 431a orrs r2, r3 - 8004b2a: 687b ldr r3, [r7, #4] - 8004b2c: 68db ldr r3, [r3, #12] - 8004b2e: 085b lsrs r3, r3, #1 - 8004b30: 3b01 subs r3, #1 - 8004b32: 041b lsls r3, r3, #16 - 8004b34: 431a orrs r2, r3 - 8004b36: 69bb ldr r3, [r7, #24] - 8004b38: 061b lsls r3, r3, #24 - 8004b3a: 431a orrs r2, r3 - 8004b3c: 697b ldr r3, [r7, #20] - 8004b3e: 071b lsls r3, r3, #28 - 8004b40: 4925 ldr r1, [pc, #148] @ (8004bd8 ) - 8004b42: 4313 orrs r3, r2 - 8004b44: f8c1 3084 str.w r3, [r1, #132] @ 0x84 + 8004bd6: 687b ldr r3, [r7, #4] + 8004bd8: 685a ldr r2, [r3, #4] + 8004bda: 687b ldr r3, [r7, #4] + 8004bdc: 689b ldr r3, [r3, #8] + 8004bde: 019b lsls r3, r3, #6 + 8004be0: 431a orrs r2, r3 + 8004be2: 687b ldr r3, [r7, #4] + 8004be4: 68db ldr r3, [r3, #12] + 8004be6: 085b lsrs r3, r3, #1 + 8004be8: 3b01 subs r3, #1 + 8004bea: 041b lsls r3, r3, #16 + 8004bec: 431a orrs r2, r3 + 8004bee: 69bb ldr r3, [r7, #24] + 8004bf0: 061b lsls r3, r3, #24 + 8004bf2: 431a orrs r2, r3 + 8004bf4: 697b ldr r3, [r7, #20] + 8004bf6: 071b lsls r3, r3, #28 + 8004bf8: 4925 ldr r1, [pc, #148] @ (8004c90 ) + 8004bfa: 4313 orrs r3, r2 + 8004bfc: 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) - 8004b48: 687b ldr r3, [r7, #4] - 8004b4a: 681b ldr r3, [r3, #0] - 8004b4c: f403 6300 and.w r3, r3, #2048 @ 0x800 - 8004b50: 2b00 cmp r3, #0 - 8004b52: d016 beq.n 8004b82 + 8004c00: 687b ldr r3, [r7, #4] + 8004c02: 681b ldr r3, [r3, #0] + 8004c04: f403 6300 and.w r3, r3, #2048 @ 0x800 + 8004c08: 2b00 cmp r3, #0 + 8004c0a: d016 beq.n 8004c3a 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, - 8004b54: 687b ldr r3, [r7, #4] - 8004b56: 685a ldr r2, [r3, #4] - 8004b58: 687b ldr r3, [r7, #4] - 8004b5a: 689b ldr r3, [r3, #8] - 8004b5c: 019b lsls r3, r3, #6 - 8004b5e: 431a orrs r2, r3 - 8004b60: 687b ldr r3, [r7, #4] - 8004b62: 68db ldr r3, [r3, #12] - 8004b64: 085b lsrs r3, r3, #1 - 8004b66: 3b01 subs r3, #1 - 8004b68: 041b lsls r3, r3, #16 - 8004b6a: 431a orrs r2, r3 - 8004b6c: 687b ldr r3, [r7, #4] - 8004b6e: 691b ldr r3, [r3, #16] - 8004b70: 061b lsls r3, r3, #24 - 8004b72: 431a orrs r2, r3 - 8004b74: 687b ldr r3, [r7, #4] - 8004b76: 695b ldr r3, [r3, #20] - 8004b78: 071b lsls r3, r3, #28 - 8004b7a: 4917 ldr r1, [pc, #92] @ (8004bd8 ) - 8004b7c: 4313 orrs r3, r2 - 8004b7e: f8c1 3084 str.w r3, [r1, #132] @ 0x84 + 8004c0c: 687b ldr r3, [r7, #4] + 8004c0e: 685a ldr r2, [r3, #4] + 8004c10: 687b ldr r3, [r7, #4] + 8004c12: 689b ldr r3, [r3, #8] + 8004c14: 019b lsls r3, r3, #6 + 8004c16: 431a orrs r2, r3 + 8004c18: 687b ldr r3, [r7, #4] + 8004c1a: 68db ldr r3, [r3, #12] + 8004c1c: 085b lsrs r3, r3, #1 + 8004c1e: 3b01 subs r3, #1 + 8004c20: 041b lsls r3, r3, #16 + 8004c22: 431a orrs r2, r3 + 8004c24: 687b ldr r3, [r7, #4] + 8004c26: 691b ldr r3, [r3, #16] + 8004c28: 061b lsls r3, r3, #24 + 8004c2a: 431a orrs r2, r3 + 8004c2c: 687b ldr r3, [r7, #4] + 8004c2e: 695b ldr r3, [r3, #20] + 8004c30: 071b lsls r3, r3, #28 + 8004c32: 4917 ldr r1, [pc, #92] @ (8004c90 ) + 8004c34: 4313 orrs r3, r2 + 8004c36: f8c1 3084 str.w r3, [r1, #132] @ 0x84 PeriphClkInit->PLLI2S.PLLI2SQ, PeriphClkInit->PLLI2S.PLLI2SR); } /* Enable the PLLI2S */ __HAL_RCC_PLLI2S_ENABLE(); - 8004b82: 4b16 ldr r3, [pc, #88] @ (8004bdc ) - 8004b84: 2201 movs r2, #1 - 8004b86: 601a str r2, [r3, #0] + 8004c3a: 4b16 ldr r3, [pc, #88] @ (8004c94 ) + 8004c3c: 2201 movs r2, #1 + 8004c3e: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8004b88: f7fd f99c bl 8001ec4 - 8004b8c: 6278 str r0, [r7, #36] @ 0x24 + 8004c40: f7fd f99c bl 8001f7c + 8004c44: 6278 str r0, [r7, #36] @ 0x24 /* Wait till PLLI2S is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) - 8004b8e: e008 b.n 8004ba2 + 8004c46: e008 b.n 8004c5a { if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE) - 8004b90: f7fd f998 bl 8001ec4 - 8004b94: 4602 mov r2, r0 - 8004b96: 6a7b ldr r3, [r7, #36] @ 0x24 - 8004b98: 1ad3 subs r3, r2, r3 - 8004b9a: 2b02 cmp r3, #2 - 8004b9c: d901 bls.n 8004ba2 + 8004c48: f7fd f998 bl 8001f7c + 8004c4c: 4602 mov r2, r0 + 8004c4e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8004c50: 1ad3 subs r3, r2, r3 + 8004c52: 2b02 cmp r3, #2 + 8004c54: d901 bls.n 8004c5a { /* return in case of Timeout detected */ return HAL_TIMEOUT; - 8004b9e: 2303 movs r3, #3 - 8004ba0: e09f b.n 8004ce2 + 8004c56: 2303 movs r3, #3 + 8004c58: e09f b.n 8004d9a while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET) - 8004ba2: 4b0d ldr r3, [pc, #52] @ (8004bd8 ) - 8004ba4: 681b ldr r3, [r3, #0] - 8004ba6: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 - 8004baa: 2b00 cmp r3, #0 - 8004bac: d0f0 beq.n 8004b90 + 8004c5a: 4b0d ldr r3, [pc, #52] @ (8004c90 ) + 8004c5c: 681b ldr r3, [r3, #0] + 8004c5e: f003 6300 and.w r3, r3, #134217728 @ 0x8000000 + 8004c62: 2b00 cmp r3, #0 + 8004c64: d0f0 beq.n 8004c48 } /*--------------------------------------------------------------------------*/ /*----------------------------- PLLSAI Configuration -----------------------*/ /* PLLSAI is configured when a peripheral will use it as source clock : SAI1, SAI2, CLK48 or SDIO */ if (pllsaiused == 1U) - 8004bae: 6abb ldr r3, [r7, #40] @ 0x28 - 8004bb0: 2b01 cmp r3, #1 - 8004bb2: f040 8095 bne.w 8004ce0 + 8004c66: 6abb ldr r3, [r7, #40] @ 0x28 + 8004c68: 2b01 cmp r3, #1 + 8004c6a: f040 8095 bne.w 8004d98 { /* Disable PLLSAI Clock */ __HAL_RCC_PLLSAI_DISABLE(); - 8004bb6: 4b0a ldr r3, [pc, #40] @ (8004be0 ) - 8004bb8: 2200 movs r2, #0 - 8004bba: 601a str r2, [r3, #0] + 8004c6e: 4b0a ldr r3, [pc, #40] @ (8004c98 ) + 8004c70: 2200 movs r2, #0 + 8004c72: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8004bbc: f7fd f982 bl 8001ec4 - 8004bc0: 6278 str r0, [r7, #36] @ 0x24 + 8004c74: f7fd f982 bl 8001f7c + 8004c78: 6278 str r0, [r7, #36] @ 0x24 /* Wait till PLLSAI is disabled */ while (__HAL_RCC_PLLSAI_GET_FLAG() != RESET) - 8004bc2: e00f b.n 8004be4 + 8004c7a: e00f b.n 8004c9c { if ((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE) - 8004bc4: f7fd f97e bl 8001ec4 - 8004bc8: 4602 mov r2, r0 - 8004bca: 6a7b ldr r3, [r7, #36] @ 0x24 - 8004bcc: 1ad3 subs r3, r2, r3 - 8004bce: 2b02 cmp r3, #2 - 8004bd0: d908 bls.n 8004be4 + 8004c7c: f7fd f97e bl 8001f7c + 8004c80: 4602 mov r2, r0 + 8004c82: 6a7b ldr r3, [r7, #36] @ 0x24 + 8004c84: 1ad3 subs r3, r2, r3 + 8004c86: 2b02 cmp r3, #2 + 8004c88: d908 bls.n 8004c9c { /* return in case of Timeout detected */ return HAL_TIMEOUT; - 8004bd2: 2303 movs r3, #3 - 8004bd4: e085 b.n 8004ce2 - 8004bd6: bf00 nop - 8004bd8: 40023800 .word 0x40023800 - 8004bdc: 42470068 .word 0x42470068 - 8004be0: 42470070 .word 0x42470070 + 8004c8a: 2303 movs r3, #3 + 8004c8c: e085 b.n 8004d9a + 8004c8e: bf00 nop + 8004c90: 40023800 .word 0x40023800 + 8004c94: 42470068 .word 0x42470068 + 8004c98: 42470070 .word 0x42470070 while (__HAL_RCC_PLLSAI_GET_FLAG() != RESET) - 8004be4: 4b41 ldr r3, [pc, #260] @ (8004cec ) - 8004be6: 681b ldr r3, [r3, #0] - 8004be8: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 - 8004bec: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8004bf0: d0e8 beq.n 8004bc4 + 8004c9c: 4b41 ldr r3, [pc, #260] @ (8004da4 ) + 8004c9e: 681b ldr r3, [r3, #0] + 8004ca0: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 + 8004ca4: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 8004ca8: d0e8 beq.n 8004c7c /* 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) - 8004bf2: 687b ldr r3, [r7, #4] - 8004bf4: 681b ldr r3, [r3, #0] - 8004bf6: f003 0304 and.w r3, r3, #4 - 8004bfa: 2b00 cmp r3, #0 - 8004bfc: d003 beq.n 8004c06 + 8004caa: 687b ldr r3, [r7, #4] + 8004cac: 681b ldr r3, [r3, #0] + 8004cae: f003 0304 and.w r3, r3, #4 + 8004cb2: 2b00 cmp r3, #0 + 8004cb4: d003 beq.n 8004cbe && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)) || - 8004bfe: 687b ldr r3, [r7, #4] - 8004c00: 6b1b ldr r3, [r3, #48] @ 0x30 - 8004c02: 2b00 cmp r3, #0 - 8004c04: d009 beq.n 8004c1a + 8004cb6: 687b ldr r3, [r7, #4] + 8004cb8: 6b1b ldr r3, [r3, #48] @ 0x30 + 8004cba: 2b00 cmp r3, #0 + 8004cbc: d009 beq.n 8004cd2 ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI))) - 8004c06: 687b ldr r3, [r7, #4] - 8004c08: 681b ldr r3, [r3, #0] - 8004c0a: f003 0308 and.w r3, r3, #8 + 8004cbe: 687b ldr r3, [r7, #4] + 8004cc0: 681b ldr r3, [r3, #0] + 8004cc2: f003 0308 and.w r3, r3, #8 && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)) || - 8004c0e: 2b00 cmp r3, #0 - 8004c10: d02b beq.n 8004c6a + 8004cc6: 2b00 cmp r3, #0 + 8004cc8: d02b beq.n 8004d22 ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI))) - 8004c12: 687b ldr r3, [r7, #4] - 8004c14: 6b5b ldr r3, [r3, #52] @ 0x34 - 8004c16: 2b00 cmp r3, #0 - 8004c18: d127 bne.n 8004c6a + 8004cca: 687b ldr r3, [r7, #4] + 8004ccc: 6b5b ldr r3, [r3, #52] @ 0x34 + 8004cce: 2b00 cmp r3, #0 + 8004cd0: d127 bne.n 8004d22 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); - 8004c1a: 4b34 ldr r3, [pc, #208] @ (8004cec ) - 8004c1c: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8004c20: 0c1b lsrs r3, r3, #16 - 8004c22: f003 0303 and.w r3, r3, #3 - 8004c26: 3301 adds r3, #1 - 8004c28: 005b lsls r3, r3, #1 - 8004c2a: 613b str r3, [r7, #16] + 8004cd2: 4b34 ldr r3, [pc, #208] @ (8004da4 ) + 8004cd4: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8004cd8: 0c1b lsrs r3, r3, #16 + 8004cda: f003 0303 and.w r3, r3, #3 + 8004cde: 3301 adds r3, #1 + 8004ce0: 005b lsls r3, r3, #1 + 8004ce2: 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, - 8004c2c: 687b ldr r3, [r7, #4] - 8004c2e: 699a ldr r2, [r3, #24] - 8004c30: 687b ldr r3, [r7, #4] - 8004c32: 69db ldr r3, [r3, #28] - 8004c34: 019b lsls r3, r3, #6 - 8004c36: 431a orrs r2, r3 - 8004c38: 693b ldr r3, [r7, #16] - 8004c3a: 085b lsrs r3, r3, #1 - 8004c3c: 3b01 subs r3, #1 - 8004c3e: 041b lsls r3, r3, #16 - 8004c40: 431a orrs r2, r3 - 8004c42: 687b ldr r3, [r7, #4] - 8004c44: 6a5b ldr r3, [r3, #36] @ 0x24 - 8004c46: 061b lsls r3, r3, #24 - 8004c48: 4928 ldr r1, [pc, #160] @ (8004cec ) - 8004c4a: 4313 orrs r3, r2 - 8004c4c: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 8004ce4: 687b ldr r3, [r7, #4] + 8004ce6: 699a ldr r2, [r3, #24] + 8004ce8: 687b ldr r3, [r7, #4] + 8004cea: 69db ldr r3, [r3, #28] + 8004cec: 019b lsls r3, r3, #6 + 8004cee: 431a orrs r2, r3 + 8004cf0: 693b ldr r3, [r7, #16] + 8004cf2: 085b lsrs r3, r3, #1 + 8004cf4: 3b01 subs r3, #1 + 8004cf6: 041b lsls r3, r3, #16 + 8004cf8: 431a orrs r2, r3 + 8004cfa: 687b ldr r3, [r7, #4] + 8004cfc: 6a5b ldr r3, [r3, #36] @ 0x24 + 8004cfe: 061b lsls r3, r3, #24 + 8004d00: 4928 ldr r1, [pc, #160] @ (8004da4 ) + 8004d02: 4313 orrs r3, r2 + 8004d04: 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); - 8004c50: 4b26 ldr r3, [pc, #152] @ (8004cec ) - 8004c52: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c - 8004c56: f423 52f8 bic.w r2, r3, #7936 @ 0x1f00 - 8004c5a: 687b ldr r3, [r7, #4] - 8004c5c: 6adb ldr r3, [r3, #44] @ 0x2c - 8004c5e: 3b01 subs r3, #1 - 8004c60: 021b lsls r3, r3, #8 - 8004c62: 4922 ldr r1, [pc, #136] @ (8004cec ) - 8004c64: 4313 orrs r3, r2 - 8004c66: f8c1 308c str.w r3, [r1, #140] @ 0x8c + 8004d08: 4b26 ldr r3, [pc, #152] @ (8004da4 ) + 8004d0a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c + 8004d0e: f423 52f8 bic.w r2, r3, #7936 @ 0x1f00 + 8004d12: 687b ldr r3, [r7, #4] + 8004d14: 6adb ldr r3, [r3, #44] @ 0x2c + 8004d16: 3b01 subs r3, #1 + 8004d18: 021b lsls r3, r3, #8 + 8004d1a: 4922 ldr r1, [pc, #136] @ (8004da4 ) + 8004d1c: 4313 orrs r3, r2 + 8004d1e: 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) - 8004c6a: 687b ldr r3, [r7, #4] - 8004c6c: 681b ldr r3, [r3, #0] - 8004c6e: f403 7380 and.w r3, r3, #256 @ 0x100 - 8004c72: 2b00 cmp r3, #0 - 8004c74: d01d beq.n 8004cb2 + 8004d22: 687b ldr r3, [r7, #4] + 8004d24: 681b ldr r3, [r3, #0] + 8004d26: f403 7380 and.w r3, r3, #256 @ 0x100 + 8004d2a: 2b00 cmp r3, #0 + 8004d2c: d01d beq.n 8004d6a && (PeriphClkInit->Clk48ClockSelection == RCC_CLK48CLKSOURCE_PLLSAIP)) - 8004c76: 687b ldr r3, [r7, #4] - 8004c78: 6d5b ldr r3, [r3, #84] @ 0x54 - 8004c7a: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 - 8004c7e: d118 bne.n 8004cb2 + 8004d2e: 687b ldr r3, [r7, #4] + 8004d30: 6d5b ldr r3, [r3, #84] @ 0x54 + 8004d32: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000 + 8004d36: d118 bne.n 8004d6a { /* 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); - 8004c80: 4b1a ldr r3, [pc, #104] @ (8004cec ) - 8004c82: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 - 8004c86: 0e1b lsrs r3, r3, #24 - 8004c88: f003 030f and.w r3, r3, #15 - 8004c8c: 60fb str r3, [r7, #12] + 8004d38: 4b1a ldr r3, [pc, #104] @ (8004da4 ) + 8004d3a: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88 + 8004d3e: 0e1b lsrs r3, r3, #24 + 8004d40: f003 030f and.w r3, r3, #15 + 8004d44: 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, - 8004c8e: 687b ldr r3, [r7, #4] - 8004c90: 699a ldr r2, [r3, #24] - 8004c92: 687b ldr r3, [r7, #4] - 8004c94: 69db ldr r3, [r3, #28] - 8004c96: 019b lsls r3, r3, #6 - 8004c98: 431a orrs r2, r3 - 8004c9a: 687b ldr r3, [r7, #4] - 8004c9c: 6a1b ldr r3, [r3, #32] - 8004c9e: 085b lsrs r3, r3, #1 - 8004ca0: 3b01 subs r3, #1 - 8004ca2: 041b lsls r3, r3, #16 - 8004ca4: 431a orrs r2, r3 - 8004ca6: 68fb ldr r3, [r7, #12] - 8004ca8: 061b lsls r3, r3, #24 - 8004caa: 4910 ldr r1, [pc, #64] @ (8004cec ) - 8004cac: 4313 orrs r3, r2 - 8004cae: f8c1 3088 str.w r3, [r1, #136] @ 0x88 + 8004d46: 687b ldr r3, [r7, #4] + 8004d48: 699a ldr r2, [r3, #24] + 8004d4a: 687b ldr r3, [r7, #4] + 8004d4c: 69db ldr r3, [r3, #28] + 8004d4e: 019b lsls r3, r3, #6 + 8004d50: 431a orrs r2, r3 + 8004d52: 687b ldr r3, [r7, #4] + 8004d54: 6a1b ldr r3, [r3, #32] + 8004d56: 085b lsrs r3, r3, #1 + 8004d58: 3b01 subs r3, #1 + 8004d5a: 041b lsls r3, r3, #16 + 8004d5c: 431a orrs r2, r3 + 8004d5e: 68fb ldr r3, [r7, #12] + 8004d60: 061b lsls r3, r3, #24 + 8004d62: 4910 ldr r1, [pc, #64] @ (8004da4 ) + 8004d64: 4313 orrs r3, r2 + 8004d66: f8c1 3088 str.w r3, [r1, #136] @ 0x88 pllsaiq, 0U); } /* Enable PLLSAI Clock */ __HAL_RCC_PLLSAI_ENABLE(); - 8004cb2: 4b0f ldr r3, [pc, #60] @ (8004cf0 ) - 8004cb4: 2201 movs r2, #1 - 8004cb6: 601a str r2, [r3, #0] + 8004d6a: 4b0f ldr r3, [pc, #60] @ (8004da8 ) + 8004d6c: 2201 movs r2, #1 + 8004d6e: 601a str r2, [r3, #0] /* Get tick */ tickstart = HAL_GetTick(); - 8004cb8: f7fd f904 bl 8001ec4 - 8004cbc: 6278 str r0, [r7, #36] @ 0x24 + 8004d70: f7fd f904 bl 8001f7c + 8004d74: 6278 str r0, [r7, #36] @ 0x24 /* Wait till PLLSAI is ready */ while (__HAL_RCC_PLLSAI_GET_FLAG() == RESET) - 8004cbe: e008 b.n 8004cd2 + 8004d76: e008 b.n 8004d8a { if ((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE) - 8004cc0: f7fd f900 bl 8001ec4 - 8004cc4: 4602 mov r2, r0 - 8004cc6: 6a7b ldr r3, [r7, #36] @ 0x24 - 8004cc8: 1ad3 subs r3, r2, r3 - 8004cca: 2b02 cmp r3, #2 - 8004ccc: d901 bls.n 8004cd2 + 8004d78: f7fd f900 bl 8001f7c + 8004d7c: 4602 mov r2, r0 + 8004d7e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8004d80: 1ad3 subs r3, r2, r3 + 8004d82: 2b02 cmp r3, #2 + 8004d84: d901 bls.n 8004d8a { /* return in case of Timeout detected */ return HAL_TIMEOUT; - 8004cce: 2303 movs r3, #3 - 8004cd0: e007 b.n 8004ce2 + 8004d86: 2303 movs r3, #3 + 8004d88: e007 b.n 8004d9a while (__HAL_RCC_PLLSAI_GET_FLAG() == RESET) - 8004cd2: 4b06 ldr r3, [pc, #24] @ (8004cec ) - 8004cd4: 681b ldr r3, [r3, #0] - 8004cd6: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 - 8004cda: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 - 8004cde: d1ef bne.n 8004cc0 + 8004d8a: 4b06 ldr r3, [pc, #24] @ (8004da4 ) + 8004d8c: 681b ldr r3, [r3, #0] + 8004d8e: f003 5300 and.w r3, r3, #536870912 @ 0x20000000 + 8004d92: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000 + 8004d96: d1ef bne.n 8004d78 } } } return HAL_OK; - 8004ce0: 2300 movs r3, #0 + 8004d98: 2300 movs r3, #0 } - 8004ce2: 4618 mov r0, r3 - 8004ce4: 3730 adds r7, #48 @ 0x30 - 8004ce6: 46bd mov sp, r7 - 8004ce8: bd80 pop {r7, pc} - 8004cea: bf00 nop - 8004cec: 40023800 .word 0x40023800 - 8004cf0: 42470070 .word 0x42470070 + 8004d9a: 4618 mov r0, r3 + 8004d9c: 3730 adds r7, #48 @ 0x30 + 8004d9e: 46bd mov sp, r7 + 8004da0: bd80 pop {r7, pc} + 8004da2: bf00 nop + 8004da4: 40023800 .word 0x40023800 + 8004da8: 42470070 .word 0x42470070 -08004cf4 : +08004dac : * * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { - 8004cf4: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} - 8004cf8: b0ae sub sp, #184 @ 0xb8 - 8004cfa: af00 add r7, sp, #0 + 8004dac: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} + 8004db0: b0ae sub sp, #184 @ 0xb8 + 8004db2: af00 add r7, sp, #0 uint32_t pllm = 0U; - 8004cfc: 2300 movs r3, #0 - 8004cfe: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8004db4: 2300 movs r3, #0 + 8004db6: f8c7 30ac str.w r3, [r7, #172] @ 0xac uint32_t pllvco = 0U; - 8004d02: 2300 movs r3, #0 - 8004d04: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8004dba: 2300 movs r3, #0 + 8004dbc: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 uint32_t pllp = 0U; - 8004d08: 2300 movs r3, #0 - 8004d0a: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 8004dc0: 2300 movs r3, #0 + 8004dc2: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 uint32_t pllr = 0U; - 8004d0e: 2300 movs r3, #0 - 8004d10: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 8004dc6: 2300 movs r3, #0 + 8004dc8: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 uint32_t sysclockfreq = 0U; - 8004d14: 2300 movs r3, #0 - 8004d16: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004dcc: 2300 movs r3, #0 + 8004dce: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 /* Get SYSCLK source -------------------------------------------------------*/ switch (RCC->CFGR & RCC_CFGR_SWS) - 8004d1a: 4bcb ldr r3, [pc, #812] @ (8005048 ) - 8004d1c: 689b ldr r3, [r3, #8] - 8004d1e: f003 030c and.w r3, r3, #12 - 8004d22: 2b0c cmp r3, #12 - 8004d24: f200 8206 bhi.w 8005134 - 8004d28: a201 add r2, pc, #4 @ (adr r2, 8004d30 ) - 8004d2a: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8004d2e: bf00 nop - 8004d30: 08004d65 .word 0x08004d65 - 8004d34: 08005135 .word 0x08005135 - 8004d38: 08005135 .word 0x08005135 - 8004d3c: 08005135 .word 0x08005135 - 8004d40: 08004d6d .word 0x08004d6d - 8004d44: 08005135 .word 0x08005135 - 8004d48: 08005135 .word 0x08005135 - 8004d4c: 08005135 .word 0x08005135 - 8004d50: 08004d75 .word 0x08004d75 - 8004d54: 08005135 .word 0x08005135 - 8004d58: 08005135 .word 0x08005135 - 8004d5c: 08005135 .word 0x08005135 - 8004d60: 08004f65 .word 0x08004f65 + 8004dd2: 4bcb ldr r3, [pc, #812] @ (8005100 ) + 8004dd4: 689b ldr r3, [r3, #8] + 8004dd6: f003 030c and.w r3, r3, #12 + 8004dda: 2b0c cmp r3, #12 + 8004ddc: f200 8206 bhi.w 80051ec + 8004de0: a201 add r2, pc, #4 @ (adr r2, 8004de8 ) + 8004de2: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8004de6: bf00 nop + 8004de8: 08004e1d .word 0x08004e1d + 8004dec: 080051ed .word 0x080051ed + 8004df0: 080051ed .word 0x080051ed + 8004df4: 080051ed .word 0x080051ed + 8004df8: 08004e25 .word 0x08004e25 + 8004dfc: 080051ed .word 0x080051ed + 8004e00: 080051ed .word 0x080051ed + 8004e04: 080051ed .word 0x080051ed + 8004e08: 08004e2d .word 0x08004e2d + 8004e0c: 080051ed .word 0x080051ed + 8004e10: 080051ed .word 0x080051ed + 8004e14: 080051ed .word 0x080051ed + 8004e18: 0800501d .word 0x0800501d { case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */ { sysclockfreq = HSI_VALUE; - 8004d64: 4bb9 ldr r3, [pc, #740] @ (800504c ) - 8004d66: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004e1c: 4bb9 ldr r3, [pc, #740] @ (8005104 ) + 8004e1e: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 8004d6a: e1e7 b.n 800513c + 8004e22: e1e7 b.n 80051f4 } case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */ { sysclockfreq = HSE_VALUE; - 8004d6c: 4bb8 ldr r3, [pc, #736] @ (8005050 ) - 8004d6e: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8004e24: 4bb8 ldr r3, [pc, #736] @ (8005108 ) + 8004e26: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 8004d72: e1e3 b.n 800513c + 8004e2a: e1e3 b.n 80051f4 } 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; - 8004d74: 4bb4 ldr r3, [pc, #720] @ (8005048 ) - 8004d76: 685b ldr r3, [r3, #4] - 8004d78: f003 033f and.w r3, r3, #63 @ 0x3f - 8004d7c: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8004e2c: 4bb4 ldr r3, [pc, #720] @ (8005100 ) + 8004e2e: 685b ldr r3, [r3, #4] + 8004e30: f003 033f and.w r3, r3, #63 @ 0x3f + 8004e34: f8c7 30ac str.w r3, [r7, #172] @ 0xac if (__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI) - 8004d80: 4bb1 ldr r3, [pc, #708] @ (8005048 ) - 8004d82: 685b ldr r3, [r3, #4] - 8004d84: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8004d88: 2b00 cmp r3, #0 - 8004d8a: d071 beq.n 8004e70 + 8004e38: 4bb1 ldr r3, [pc, #708] @ (8005100 ) + 8004e3a: 685b ldr r3, [r3, #4] + 8004e3c: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8004e40: 2b00 cmp r3, #0 + 8004e42: d071 beq.n 8004f28 { /* 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); - 8004d8c: 4bae ldr r3, [pc, #696] @ (8005048 ) - 8004d8e: 685b ldr r3, [r3, #4] - 8004d90: 099b lsrs r3, r3, #6 - 8004d92: 2200 movs r2, #0 - 8004d94: f8c7 3098 str.w r3, [r7, #152] @ 0x98 - 8004d98: f8c7 209c str.w r2, [r7, #156] @ 0x9c - 8004d9c: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 - 8004da0: f3c3 0308 ubfx r3, r3, #0, #9 - 8004da4: f8c7 3090 str.w r3, [r7, #144] @ 0x90 - 8004da8: 2300 movs r3, #0 - 8004daa: f8c7 3094 str.w r3, [r7, #148] @ 0x94 - 8004dae: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 - 8004db2: 4622 mov r2, r4 - 8004db4: 462b mov r3, r5 - 8004db6: f04f 0000 mov.w r0, #0 - 8004dba: f04f 0100 mov.w r1, #0 - 8004dbe: 0159 lsls r1, r3, #5 - 8004dc0: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8004dc4: 0150 lsls r0, r2, #5 - 8004dc6: 4602 mov r2, r0 - 8004dc8: 460b mov r3, r1 - 8004dca: 4621 mov r1, r4 - 8004dcc: 1a51 subs r1, r2, r1 - 8004dce: 6439 str r1, [r7, #64] @ 0x40 - 8004dd0: 4629 mov r1, r5 - 8004dd2: eb63 0301 sbc.w r3, r3, r1 - 8004dd6: 647b str r3, [r7, #68] @ 0x44 - 8004dd8: f04f 0200 mov.w r2, #0 - 8004ddc: f04f 0300 mov.w r3, #0 - 8004de0: e9d7 8910 ldrd r8, r9, [r7, #64] @ 0x40 - 8004de4: 4649 mov r1, r9 - 8004de6: 018b lsls r3, r1, #6 - 8004de8: 4641 mov r1, r8 - 8004dea: ea43 6391 orr.w r3, r3, r1, lsr #26 - 8004dee: 4641 mov r1, r8 - 8004df0: 018a lsls r2, r1, #6 - 8004df2: 4641 mov r1, r8 - 8004df4: 1a51 subs r1, r2, r1 - 8004df6: 63b9 str r1, [r7, #56] @ 0x38 - 8004df8: 4649 mov r1, r9 - 8004dfa: eb63 0301 sbc.w r3, r3, r1 - 8004dfe: 63fb str r3, [r7, #60] @ 0x3c - 8004e00: f04f 0200 mov.w r2, #0 - 8004e04: f04f 0300 mov.w r3, #0 - 8004e08: e9d7 890e ldrd r8, r9, [r7, #56] @ 0x38 - 8004e0c: 4649 mov r1, r9 - 8004e0e: 00cb lsls r3, r1, #3 - 8004e10: 4641 mov r1, r8 - 8004e12: ea43 7351 orr.w r3, r3, r1, lsr #29 - 8004e16: 4641 mov r1, r8 - 8004e18: 00ca lsls r2, r1, #3 - 8004e1a: 4610 mov r0, r2 - 8004e1c: 4619 mov r1, r3 - 8004e1e: 4603 mov r3, r0 - 8004e20: 4622 mov r2, r4 - 8004e22: 189b adds r3, r3, r2 - 8004e24: 633b str r3, [r7, #48] @ 0x30 - 8004e26: 462b mov r3, r5 - 8004e28: 460a mov r2, r1 - 8004e2a: eb42 0303 adc.w r3, r2, r3 - 8004e2e: 637b str r3, [r7, #52] @ 0x34 - 8004e30: f04f 0200 mov.w r2, #0 - 8004e34: f04f 0300 mov.w r3, #0 - 8004e38: e9d7 450c ldrd r4, r5, [r7, #48] @ 0x30 - 8004e3c: 4629 mov r1, r5 - 8004e3e: 024b lsls r3, r1, #9 - 8004e40: 4621 mov r1, r4 - 8004e42: ea43 53d1 orr.w r3, r3, r1, lsr #23 - 8004e46: 4621 mov r1, r4 - 8004e48: 024a lsls r2, r1, #9 - 8004e4a: 4610 mov r0, r2 - 8004e4c: 4619 mov r1, r3 - 8004e4e: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8004e52: 2200 movs r2, #0 - 8004e54: f8c7 3088 str.w r3, [r7, #136] @ 0x88 - 8004e58: f8c7 208c str.w r2, [r7, #140] @ 0x8c - 8004e5c: e9d7 2322 ldrd r2, r3, [r7, #136] @ 0x88 - 8004e60: f7fb f9d0 bl 8000204 <__aeabi_uldivmod> - 8004e64: 4602 mov r2, r0 - 8004e66: 460b mov r3, r1 - 8004e68: 4613 mov r3, r2 - 8004e6a: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 8004e6e: e067 b.n 8004f40 + 8004e44: 4bae ldr r3, [pc, #696] @ (8005100 ) + 8004e46: 685b ldr r3, [r3, #4] + 8004e48: 099b lsrs r3, r3, #6 + 8004e4a: 2200 movs r2, #0 + 8004e4c: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 8004e50: f8c7 209c str.w r2, [r7, #156] @ 0x9c + 8004e54: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 + 8004e58: f3c3 0308 ubfx r3, r3, #0, #9 + 8004e5c: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 8004e60: 2300 movs r3, #0 + 8004e62: f8c7 3094 str.w r3, [r7, #148] @ 0x94 + 8004e66: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 + 8004e6a: 4622 mov r2, r4 + 8004e6c: 462b mov r3, r5 + 8004e6e: f04f 0000 mov.w r0, #0 + 8004e72: f04f 0100 mov.w r1, #0 + 8004e76: 0159 lsls r1, r3, #5 + 8004e78: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8004e7c: 0150 lsls r0, r2, #5 + 8004e7e: 4602 mov r2, r0 + 8004e80: 460b mov r3, r1 + 8004e82: 4621 mov r1, r4 + 8004e84: 1a51 subs r1, r2, r1 + 8004e86: 6439 str r1, [r7, #64] @ 0x40 + 8004e88: 4629 mov r1, r5 + 8004e8a: eb63 0301 sbc.w r3, r3, r1 + 8004e8e: 647b str r3, [r7, #68] @ 0x44 + 8004e90: f04f 0200 mov.w r2, #0 + 8004e94: f04f 0300 mov.w r3, #0 + 8004e98: e9d7 8910 ldrd r8, r9, [r7, #64] @ 0x40 + 8004e9c: 4649 mov r1, r9 + 8004e9e: 018b lsls r3, r1, #6 + 8004ea0: 4641 mov r1, r8 + 8004ea2: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8004ea6: 4641 mov r1, r8 + 8004ea8: 018a lsls r2, r1, #6 + 8004eaa: 4641 mov r1, r8 + 8004eac: 1a51 subs r1, r2, r1 + 8004eae: 63b9 str r1, [r7, #56] @ 0x38 + 8004eb0: 4649 mov r1, r9 + 8004eb2: eb63 0301 sbc.w r3, r3, r1 + 8004eb6: 63fb str r3, [r7, #60] @ 0x3c + 8004eb8: f04f 0200 mov.w r2, #0 + 8004ebc: f04f 0300 mov.w r3, #0 + 8004ec0: e9d7 890e ldrd r8, r9, [r7, #56] @ 0x38 + 8004ec4: 4649 mov r1, r9 + 8004ec6: 00cb lsls r3, r1, #3 + 8004ec8: 4641 mov r1, r8 + 8004eca: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8004ece: 4641 mov r1, r8 + 8004ed0: 00ca lsls r2, r1, #3 + 8004ed2: 4610 mov r0, r2 + 8004ed4: 4619 mov r1, r3 + 8004ed6: 4603 mov r3, r0 + 8004ed8: 4622 mov r2, r4 + 8004eda: 189b adds r3, r3, r2 + 8004edc: 633b str r3, [r7, #48] @ 0x30 + 8004ede: 462b mov r3, r5 + 8004ee0: 460a mov r2, r1 + 8004ee2: eb42 0303 adc.w r3, r2, r3 + 8004ee6: 637b str r3, [r7, #52] @ 0x34 + 8004ee8: f04f 0200 mov.w r2, #0 + 8004eec: f04f 0300 mov.w r3, #0 + 8004ef0: e9d7 450c ldrd r4, r5, [r7, #48] @ 0x30 + 8004ef4: 4629 mov r1, r5 + 8004ef6: 024b lsls r3, r1, #9 + 8004ef8: 4621 mov r1, r4 + 8004efa: ea43 53d1 orr.w r3, r3, r1, lsr #23 + 8004efe: 4621 mov r1, r4 + 8004f00: 024a lsls r2, r1, #9 + 8004f02: 4610 mov r0, r2 + 8004f04: 4619 mov r1, r3 + 8004f06: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8004f0a: 2200 movs r2, #0 + 8004f0c: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 8004f10: f8c7 208c str.w r2, [r7, #140] @ 0x8c + 8004f14: e9d7 2322 ldrd r2, r3, [r7, #136] @ 0x88 + 8004f18: f7fb f974 bl 8000204 <__aeabi_uldivmod> + 8004f1c: 4602 mov r2, r0 + 8004f1e: 460b mov r3, r1 + 8004f20: 4613 mov r3, r2 + 8004f22: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8004f26: e067 b.n 8004ff8 } 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); - 8004e70: 4b75 ldr r3, [pc, #468] @ (8005048 ) - 8004e72: 685b ldr r3, [r3, #4] - 8004e74: 099b lsrs r3, r3, #6 - 8004e76: 2200 movs r2, #0 - 8004e78: f8c7 3080 str.w r3, [r7, #128] @ 0x80 - 8004e7c: f8c7 2084 str.w r2, [r7, #132] @ 0x84 - 8004e80: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 - 8004e84: f3c3 0308 ubfx r3, r3, #0, #9 - 8004e88: 67bb str r3, [r7, #120] @ 0x78 - 8004e8a: 2300 movs r3, #0 - 8004e8c: 67fb str r3, [r7, #124] @ 0x7c - 8004e8e: e9d7 451e ldrd r4, r5, [r7, #120] @ 0x78 - 8004e92: 4622 mov r2, r4 - 8004e94: 462b mov r3, r5 - 8004e96: f04f 0000 mov.w r0, #0 - 8004e9a: f04f 0100 mov.w r1, #0 - 8004e9e: 0159 lsls r1, r3, #5 - 8004ea0: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8004ea4: 0150 lsls r0, r2, #5 - 8004ea6: 4602 mov r2, r0 - 8004ea8: 460b mov r3, r1 - 8004eaa: 4621 mov r1, r4 - 8004eac: 1a51 subs r1, r2, r1 - 8004eae: 62b9 str r1, [r7, #40] @ 0x28 - 8004eb0: 4629 mov r1, r5 - 8004eb2: eb63 0301 sbc.w r3, r3, r1 - 8004eb6: 62fb str r3, [r7, #44] @ 0x2c - 8004eb8: f04f 0200 mov.w r2, #0 - 8004ebc: f04f 0300 mov.w r3, #0 - 8004ec0: e9d7 890a ldrd r8, r9, [r7, #40] @ 0x28 - 8004ec4: 4649 mov r1, r9 - 8004ec6: 018b lsls r3, r1, #6 - 8004ec8: 4641 mov r1, r8 - 8004eca: ea43 6391 orr.w r3, r3, r1, lsr #26 - 8004ece: 4641 mov r1, r8 - 8004ed0: 018a lsls r2, r1, #6 - 8004ed2: 4641 mov r1, r8 - 8004ed4: ebb2 0a01 subs.w sl, r2, r1 - 8004ed8: 4649 mov r1, r9 - 8004eda: eb63 0b01 sbc.w fp, r3, r1 - 8004ede: f04f 0200 mov.w r2, #0 - 8004ee2: f04f 0300 mov.w r3, #0 - 8004ee6: ea4f 03cb mov.w r3, fp, lsl #3 - 8004eea: ea43 735a orr.w r3, r3, sl, lsr #29 - 8004eee: ea4f 02ca mov.w r2, sl, lsl #3 - 8004ef2: 4692 mov sl, r2 - 8004ef4: 469b mov fp, r3 - 8004ef6: 4623 mov r3, r4 - 8004ef8: eb1a 0303 adds.w r3, sl, r3 - 8004efc: 623b str r3, [r7, #32] - 8004efe: 462b mov r3, r5 - 8004f00: eb4b 0303 adc.w r3, fp, r3 - 8004f04: 627b str r3, [r7, #36] @ 0x24 - 8004f06: f04f 0200 mov.w r2, #0 - 8004f0a: f04f 0300 mov.w r3, #0 - 8004f0e: e9d7 4508 ldrd r4, r5, [r7, #32] - 8004f12: 4629 mov r1, r5 - 8004f14: 028b lsls r3, r1, #10 - 8004f16: 4621 mov r1, r4 - 8004f18: ea43 5391 orr.w r3, r3, r1, lsr #22 - 8004f1c: 4621 mov r1, r4 - 8004f1e: 028a lsls r2, r1, #10 - 8004f20: 4610 mov r0, r2 - 8004f22: 4619 mov r1, r3 - 8004f24: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 8004f28: 2200 movs r2, #0 - 8004f2a: 673b str r3, [r7, #112] @ 0x70 - 8004f2c: 677a str r2, [r7, #116] @ 0x74 - 8004f2e: e9d7 231c ldrd r2, r3, [r7, #112] @ 0x70 - 8004f32: f7fb f967 bl 8000204 <__aeabi_uldivmod> - 8004f36: 4602 mov r2, r0 - 8004f38: 460b mov r3, r1 - 8004f3a: 4613 mov r3, r2 - 8004f3c: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8004f28: 4b75 ldr r3, [pc, #468] @ (8005100 ) + 8004f2a: 685b ldr r3, [r3, #4] + 8004f2c: 099b lsrs r3, r3, #6 + 8004f2e: 2200 movs r2, #0 + 8004f30: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 8004f34: f8c7 2084 str.w r2, [r7, #132] @ 0x84 + 8004f38: f8d7 3080 ldr.w r3, [r7, #128] @ 0x80 + 8004f3c: f3c3 0308 ubfx r3, r3, #0, #9 + 8004f40: 67bb str r3, [r7, #120] @ 0x78 + 8004f42: 2300 movs r3, #0 + 8004f44: 67fb str r3, [r7, #124] @ 0x7c + 8004f46: e9d7 451e ldrd r4, r5, [r7, #120] @ 0x78 + 8004f4a: 4622 mov r2, r4 + 8004f4c: 462b mov r3, r5 + 8004f4e: f04f 0000 mov.w r0, #0 + 8004f52: f04f 0100 mov.w r1, #0 + 8004f56: 0159 lsls r1, r3, #5 + 8004f58: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8004f5c: 0150 lsls r0, r2, #5 + 8004f5e: 4602 mov r2, r0 + 8004f60: 460b mov r3, r1 + 8004f62: 4621 mov r1, r4 + 8004f64: 1a51 subs r1, r2, r1 + 8004f66: 62b9 str r1, [r7, #40] @ 0x28 + 8004f68: 4629 mov r1, r5 + 8004f6a: eb63 0301 sbc.w r3, r3, r1 + 8004f6e: 62fb str r3, [r7, #44] @ 0x2c + 8004f70: f04f 0200 mov.w r2, #0 + 8004f74: f04f 0300 mov.w r3, #0 + 8004f78: e9d7 890a ldrd r8, r9, [r7, #40] @ 0x28 + 8004f7c: 4649 mov r1, r9 + 8004f7e: 018b lsls r3, r1, #6 + 8004f80: 4641 mov r1, r8 + 8004f82: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8004f86: 4641 mov r1, r8 + 8004f88: 018a lsls r2, r1, #6 + 8004f8a: 4641 mov r1, r8 + 8004f8c: ebb2 0a01 subs.w sl, r2, r1 + 8004f90: 4649 mov r1, r9 + 8004f92: eb63 0b01 sbc.w fp, r3, r1 + 8004f96: f04f 0200 mov.w r2, #0 + 8004f9a: f04f 0300 mov.w r3, #0 + 8004f9e: ea4f 03cb mov.w r3, fp, lsl #3 + 8004fa2: ea43 735a orr.w r3, r3, sl, lsr #29 + 8004fa6: ea4f 02ca mov.w r2, sl, lsl #3 + 8004faa: 4692 mov sl, r2 + 8004fac: 469b mov fp, r3 + 8004fae: 4623 mov r3, r4 + 8004fb0: eb1a 0303 adds.w r3, sl, r3 + 8004fb4: 623b str r3, [r7, #32] + 8004fb6: 462b mov r3, r5 + 8004fb8: eb4b 0303 adc.w r3, fp, r3 + 8004fbc: 627b str r3, [r7, #36] @ 0x24 + 8004fbe: f04f 0200 mov.w r2, #0 + 8004fc2: f04f 0300 mov.w r3, #0 + 8004fc6: e9d7 4508 ldrd r4, r5, [r7, #32] + 8004fca: 4629 mov r1, r5 + 8004fcc: 028b lsls r3, r1, #10 + 8004fce: 4621 mov r1, r4 + 8004fd0: ea43 5391 orr.w r3, r3, r1, lsr #22 + 8004fd4: 4621 mov r1, r4 + 8004fd6: 028a lsls r2, r1, #10 + 8004fd8: 4610 mov r0, r2 + 8004fda: 4619 mov r1, r3 + 8004fdc: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 8004fe0: 2200 movs r2, #0 + 8004fe2: 673b str r3, [r7, #112] @ 0x70 + 8004fe4: 677a str r2, [r7, #116] @ 0x74 + 8004fe6: e9d7 231c ldrd r2, r3, [r7, #112] @ 0x70 + 8004fea: f7fb f90b bl 8000204 <__aeabi_uldivmod> + 8004fee: 4602 mov r2, r0 + 8004ff0: 460b mov r3, r1 + 8004ff2: 4613 mov r3, r2 + 8004ff4: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 } pllp = ((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) + 1U) * 2U); - 8004f40: 4b41 ldr r3, [pc, #260] @ (8005048 ) - 8004f42: 685b ldr r3, [r3, #4] - 8004f44: 0c1b lsrs r3, r3, #16 - 8004f46: f003 0303 and.w r3, r3, #3 - 8004f4a: 3301 adds r3, #1 - 8004f4c: 005b lsls r3, r3, #1 - 8004f4e: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 8004ff8: 4b41 ldr r3, [pc, #260] @ (8005100 ) + 8004ffa: 685b ldr r3, [r3, #4] + 8004ffc: 0c1b lsrs r3, r3, #16 + 8004ffe: f003 0303 and.w r3, r3, #3 + 8005002: 3301 adds r3, #1 + 8005004: 005b lsls r3, r3, #1 + 8005006: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 sysclockfreq = pllvco / pllp; - 8004f52: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 - 8004f56: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 - 8004f5a: fbb2 f3f3 udiv r3, r2, r3 - 8004f5e: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 800500a: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 + 800500e: f8d7 30a8 ldr.w r3, [r7, #168] @ 0xa8 + 8005012: fbb2 f3f3 udiv r3, r2, r3 + 8005016: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 8004f62: e0eb b.n 800513c + 800501a: e0eb b.n 80051f4 } 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; - 8004f64: 4b38 ldr r3, [pc, #224] @ (8005048 ) - 8004f66: 685b ldr r3, [r3, #4] - 8004f68: f003 033f and.w r3, r3, #63 @ 0x3f - 8004f6c: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 800501c: 4b38 ldr r3, [pc, #224] @ (8005100 ) + 800501e: 685b ldr r3, [r3, #4] + 8005020: f003 033f and.w r3, r3, #63 @ 0x3f + 8005024: f8c7 30ac str.w r3, [r7, #172] @ 0xac if (__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI) - 8004f70: 4b35 ldr r3, [pc, #212] @ (8005048 ) - 8004f72: 685b ldr r3, [r3, #4] - 8004f74: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8004f78: 2b00 cmp r3, #0 - 8004f7a: d06b beq.n 8005054 + 8005028: 4b35 ldr r3, [pc, #212] @ (8005100 ) + 800502a: 685b ldr r3, [r3, #4] + 800502c: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8005030: 2b00 cmp r3, #0 + 8005032: d06b beq.n 800510c { /* 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); - 8004f7c: 4b32 ldr r3, [pc, #200] @ (8005048 ) - 8004f7e: 685b ldr r3, [r3, #4] - 8004f80: 099b lsrs r3, r3, #6 - 8004f82: 2200 movs r2, #0 - 8004f84: 66bb str r3, [r7, #104] @ 0x68 - 8004f86: 66fa str r2, [r7, #108] @ 0x6c - 8004f88: 6ebb ldr r3, [r7, #104] @ 0x68 - 8004f8a: f3c3 0308 ubfx r3, r3, #0, #9 - 8004f8e: 663b str r3, [r7, #96] @ 0x60 - 8004f90: 2300 movs r3, #0 - 8004f92: 667b str r3, [r7, #100] @ 0x64 - 8004f94: e9d7 4518 ldrd r4, r5, [r7, #96] @ 0x60 - 8004f98: 4622 mov r2, r4 - 8004f9a: 462b mov r3, r5 - 8004f9c: f04f 0000 mov.w r0, #0 - 8004fa0: f04f 0100 mov.w r1, #0 - 8004fa4: 0159 lsls r1, r3, #5 - 8004fa6: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8004faa: 0150 lsls r0, r2, #5 - 8004fac: 4602 mov r2, r0 - 8004fae: 460b mov r3, r1 - 8004fb0: 4621 mov r1, r4 - 8004fb2: 1a51 subs r1, r2, r1 - 8004fb4: 61b9 str r1, [r7, #24] - 8004fb6: 4629 mov r1, r5 - 8004fb8: eb63 0301 sbc.w r3, r3, r1 - 8004fbc: 61fb str r3, [r7, #28] - 8004fbe: f04f 0200 mov.w r2, #0 - 8004fc2: f04f 0300 mov.w r3, #0 - 8004fc6: e9d7 ab06 ldrd sl, fp, [r7, #24] - 8004fca: 4659 mov r1, fp - 8004fcc: 018b lsls r3, r1, #6 - 8004fce: 4651 mov r1, sl - 8004fd0: ea43 6391 orr.w r3, r3, r1, lsr #26 - 8004fd4: 4651 mov r1, sl - 8004fd6: 018a lsls r2, r1, #6 - 8004fd8: 4651 mov r1, sl - 8004fda: ebb2 0801 subs.w r8, r2, r1 - 8004fde: 4659 mov r1, fp - 8004fe0: eb63 0901 sbc.w r9, r3, r1 - 8004fe4: f04f 0200 mov.w r2, #0 - 8004fe8: f04f 0300 mov.w r3, #0 - 8004fec: ea4f 03c9 mov.w r3, r9, lsl #3 - 8004ff0: ea43 7358 orr.w r3, r3, r8, lsr #29 - 8004ff4: ea4f 02c8 mov.w r2, r8, lsl #3 - 8004ff8: 4690 mov r8, r2 - 8004ffa: 4699 mov r9, r3 - 8004ffc: 4623 mov r3, r4 - 8004ffe: eb18 0303 adds.w r3, r8, r3 - 8005002: 613b str r3, [r7, #16] - 8005004: 462b mov r3, r5 - 8005006: eb49 0303 adc.w r3, r9, r3 - 800500a: 617b str r3, [r7, #20] - 800500c: f04f 0200 mov.w r2, #0 - 8005010: f04f 0300 mov.w r3, #0 - 8005014: e9d7 4504 ldrd r4, r5, [r7, #16] - 8005018: 4629 mov r1, r5 - 800501a: 024b lsls r3, r1, #9 - 800501c: 4621 mov r1, r4 - 800501e: ea43 53d1 orr.w r3, r3, r1, lsr #23 - 8005022: 4621 mov r1, r4 - 8005024: 024a lsls r2, r1, #9 - 8005026: 4610 mov r0, r2 - 8005028: 4619 mov r1, r3 - 800502a: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 800502e: 2200 movs r2, #0 - 8005030: 65bb str r3, [r7, #88] @ 0x58 - 8005032: 65fa str r2, [r7, #92] @ 0x5c - 8005034: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 - 8005038: f7fb f8e4 bl 8000204 <__aeabi_uldivmod> - 800503c: 4602 mov r2, r0 - 800503e: 460b mov r3, r1 - 8005040: 4613 mov r3, r2 - 8005042: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 8005046: e065 b.n 8005114 - 8005048: 40023800 .word 0x40023800 - 800504c: 00f42400 .word 0x00f42400 - 8005050: 007a1200 .word 0x007a1200 + 8005034: 4b32 ldr r3, [pc, #200] @ (8005100 ) + 8005036: 685b ldr r3, [r3, #4] + 8005038: 099b lsrs r3, r3, #6 + 800503a: 2200 movs r2, #0 + 800503c: 66bb str r3, [r7, #104] @ 0x68 + 800503e: 66fa str r2, [r7, #108] @ 0x6c + 8005040: 6ebb ldr r3, [r7, #104] @ 0x68 + 8005042: f3c3 0308 ubfx r3, r3, #0, #9 + 8005046: 663b str r3, [r7, #96] @ 0x60 + 8005048: 2300 movs r3, #0 + 800504a: 667b str r3, [r7, #100] @ 0x64 + 800504c: e9d7 4518 ldrd r4, r5, [r7, #96] @ 0x60 + 8005050: 4622 mov r2, r4 + 8005052: 462b mov r3, r5 + 8005054: f04f 0000 mov.w r0, #0 + 8005058: f04f 0100 mov.w r1, #0 + 800505c: 0159 lsls r1, r3, #5 + 800505e: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8005062: 0150 lsls r0, r2, #5 + 8005064: 4602 mov r2, r0 + 8005066: 460b mov r3, r1 + 8005068: 4621 mov r1, r4 + 800506a: 1a51 subs r1, r2, r1 + 800506c: 61b9 str r1, [r7, #24] + 800506e: 4629 mov r1, r5 + 8005070: eb63 0301 sbc.w r3, r3, r1 + 8005074: 61fb str r3, [r7, #28] + 8005076: f04f 0200 mov.w r2, #0 + 800507a: f04f 0300 mov.w r3, #0 + 800507e: e9d7 ab06 ldrd sl, fp, [r7, #24] + 8005082: 4659 mov r1, fp + 8005084: 018b lsls r3, r1, #6 + 8005086: 4651 mov r1, sl + 8005088: ea43 6391 orr.w r3, r3, r1, lsr #26 + 800508c: 4651 mov r1, sl + 800508e: 018a lsls r2, r1, #6 + 8005090: 4651 mov r1, sl + 8005092: ebb2 0801 subs.w r8, r2, r1 + 8005096: 4659 mov r1, fp + 8005098: eb63 0901 sbc.w r9, r3, r1 + 800509c: f04f 0200 mov.w r2, #0 + 80050a0: f04f 0300 mov.w r3, #0 + 80050a4: ea4f 03c9 mov.w r3, r9, lsl #3 + 80050a8: ea43 7358 orr.w r3, r3, r8, lsr #29 + 80050ac: ea4f 02c8 mov.w r2, r8, lsl #3 + 80050b0: 4690 mov r8, r2 + 80050b2: 4699 mov r9, r3 + 80050b4: 4623 mov r3, r4 + 80050b6: eb18 0303 adds.w r3, r8, r3 + 80050ba: 613b str r3, [r7, #16] + 80050bc: 462b mov r3, r5 + 80050be: eb49 0303 adc.w r3, r9, r3 + 80050c2: 617b str r3, [r7, #20] + 80050c4: f04f 0200 mov.w r2, #0 + 80050c8: f04f 0300 mov.w r3, #0 + 80050cc: e9d7 4504 ldrd r4, r5, [r7, #16] + 80050d0: 4629 mov r1, r5 + 80050d2: 024b lsls r3, r1, #9 + 80050d4: 4621 mov r1, r4 + 80050d6: ea43 53d1 orr.w r3, r3, r1, lsr #23 + 80050da: 4621 mov r1, r4 + 80050dc: 024a lsls r2, r1, #9 + 80050de: 4610 mov r0, r2 + 80050e0: 4619 mov r1, r3 + 80050e2: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 80050e6: 2200 movs r2, #0 + 80050e8: 65bb str r3, [r7, #88] @ 0x58 + 80050ea: 65fa str r2, [r7, #92] @ 0x5c + 80050ec: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 + 80050f0: f7fb f888 bl 8000204 <__aeabi_uldivmod> + 80050f4: 4602 mov r2, r0 + 80050f6: 460b mov r3, r1 + 80050f8: 4613 mov r3, r2 + 80050fa: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 80050fe: e065 b.n 80051cc + 8005100: 40023800 .word 0x40023800 + 8005104: 00f42400 .word 0x00f42400 + 8005108: 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); - 8005054: 4b3d ldr r3, [pc, #244] @ (800514c ) - 8005056: 685b ldr r3, [r3, #4] - 8005058: 099b lsrs r3, r3, #6 - 800505a: 2200 movs r2, #0 - 800505c: 4618 mov r0, r3 - 800505e: 4611 mov r1, r2 - 8005060: f3c0 0308 ubfx r3, r0, #0, #9 - 8005064: 653b str r3, [r7, #80] @ 0x50 - 8005066: 2300 movs r3, #0 - 8005068: 657b str r3, [r7, #84] @ 0x54 - 800506a: e9d7 8914 ldrd r8, r9, [r7, #80] @ 0x50 - 800506e: 4642 mov r2, r8 - 8005070: 464b mov r3, r9 - 8005072: f04f 0000 mov.w r0, #0 - 8005076: f04f 0100 mov.w r1, #0 - 800507a: 0159 lsls r1, r3, #5 - 800507c: ea41 61d2 orr.w r1, r1, r2, lsr #27 - 8005080: 0150 lsls r0, r2, #5 - 8005082: 4602 mov r2, r0 - 8005084: 460b mov r3, r1 - 8005086: 4641 mov r1, r8 - 8005088: 1a51 subs r1, r2, r1 - 800508a: 60b9 str r1, [r7, #8] - 800508c: 4649 mov r1, r9 - 800508e: eb63 0301 sbc.w r3, r3, r1 - 8005092: 60fb str r3, [r7, #12] - 8005094: f04f 0200 mov.w r2, #0 - 8005098: f04f 0300 mov.w r3, #0 - 800509c: e9d7 ab02 ldrd sl, fp, [r7, #8] - 80050a0: 4659 mov r1, fp - 80050a2: 018b lsls r3, r1, #6 - 80050a4: 4651 mov r1, sl - 80050a6: ea43 6391 orr.w r3, r3, r1, lsr #26 - 80050aa: 4651 mov r1, sl - 80050ac: 018a lsls r2, r1, #6 - 80050ae: 4651 mov r1, sl - 80050b0: 1a54 subs r4, r2, r1 - 80050b2: 4659 mov r1, fp - 80050b4: eb63 0501 sbc.w r5, r3, r1 - 80050b8: f04f 0200 mov.w r2, #0 - 80050bc: f04f 0300 mov.w r3, #0 - 80050c0: 00eb lsls r3, r5, #3 - 80050c2: ea43 7354 orr.w r3, r3, r4, lsr #29 - 80050c6: 00e2 lsls r2, r4, #3 - 80050c8: 4614 mov r4, r2 - 80050ca: 461d mov r5, r3 - 80050cc: 4643 mov r3, r8 - 80050ce: 18e3 adds r3, r4, r3 - 80050d0: 603b str r3, [r7, #0] - 80050d2: 464b mov r3, r9 - 80050d4: eb45 0303 adc.w r3, r5, r3 - 80050d8: 607b str r3, [r7, #4] - 80050da: f04f 0200 mov.w r2, #0 - 80050de: f04f 0300 mov.w r3, #0 - 80050e2: e9d7 4500 ldrd r4, r5, [r7] - 80050e6: 4629 mov r1, r5 - 80050e8: 028b lsls r3, r1, #10 - 80050ea: 4621 mov r1, r4 - 80050ec: ea43 5391 orr.w r3, r3, r1, lsr #22 - 80050f0: 4621 mov r1, r4 - 80050f2: 028a lsls r2, r1, #10 - 80050f4: 4610 mov r0, r2 - 80050f6: 4619 mov r1, r3 - 80050f8: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac - 80050fc: 2200 movs r2, #0 - 80050fe: 64bb str r3, [r7, #72] @ 0x48 - 8005100: 64fa str r2, [r7, #76] @ 0x4c - 8005102: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 - 8005106: f7fb f87d bl 8000204 <__aeabi_uldivmod> - 800510a: 4602 mov r2, r0 - 800510c: 460b mov r3, r1 - 800510e: 4613 mov r3, r2 - 8005110: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 800510c: 4b3d ldr r3, [pc, #244] @ (8005204 ) + 800510e: 685b ldr r3, [r3, #4] + 8005110: 099b lsrs r3, r3, #6 + 8005112: 2200 movs r2, #0 + 8005114: 4618 mov r0, r3 + 8005116: 4611 mov r1, r2 + 8005118: f3c0 0308 ubfx r3, r0, #0, #9 + 800511c: 653b str r3, [r7, #80] @ 0x50 + 800511e: 2300 movs r3, #0 + 8005120: 657b str r3, [r7, #84] @ 0x54 + 8005122: e9d7 8914 ldrd r8, r9, [r7, #80] @ 0x50 + 8005126: 4642 mov r2, r8 + 8005128: 464b mov r3, r9 + 800512a: f04f 0000 mov.w r0, #0 + 800512e: f04f 0100 mov.w r1, #0 + 8005132: 0159 lsls r1, r3, #5 + 8005134: ea41 61d2 orr.w r1, r1, r2, lsr #27 + 8005138: 0150 lsls r0, r2, #5 + 800513a: 4602 mov r2, r0 + 800513c: 460b mov r3, r1 + 800513e: 4641 mov r1, r8 + 8005140: 1a51 subs r1, r2, r1 + 8005142: 60b9 str r1, [r7, #8] + 8005144: 4649 mov r1, r9 + 8005146: eb63 0301 sbc.w r3, r3, r1 + 800514a: 60fb str r3, [r7, #12] + 800514c: f04f 0200 mov.w r2, #0 + 8005150: f04f 0300 mov.w r3, #0 + 8005154: e9d7 ab02 ldrd sl, fp, [r7, #8] + 8005158: 4659 mov r1, fp + 800515a: 018b lsls r3, r1, #6 + 800515c: 4651 mov r1, sl + 800515e: ea43 6391 orr.w r3, r3, r1, lsr #26 + 8005162: 4651 mov r1, sl + 8005164: 018a lsls r2, r1, #6 + 8005166: 4651 mov r1, sl + 8005168: 1a54 subs r4, r2, r1 + 800516a: 4659 mov r1, fp + 800516c: eb63 0501 sbc.w r5, r3, r1 + 8005170: f04f 0200 mov.w r2, #0 + 8005174: f04f 0300 mov.w r3, #0 + 8005178: 00eb lsls r3, r5, #3 + 800517a: ea43 7354 orr.w r3, r3, r4, lsr #29 + 800517e: 00e2 lsls r2, r4, #3 + 8005180: 4614 mov r4, r2 + 8005182: 461d mov r5, r3 + 8005184: 4643 mov r3, r8 + 8005186: 18e3 adds r3, r4, r3 + 8005188: 603b str r3, [r7, #0] + 800518a: 464b mov r3, r9 + 800518c: eb45 0303 adc.w r3, r5, r3 + 8005190: 607b str r3, [r7, #4] + 8005192: f04f 0200 mov.w r2, #0 + 8005196: f04f 0300 mov.w r3, #0 + 800519a: e9d7 4500 ldrd r4, r5, [r7] + 800519e: 4629 mov r1, r5 + 80051a0: 028b lsls r3, r1, #10 + 80051a2: 4621 mov r1, r4 + 80051a4: ea43 5391 orr.w r3, r3, r1, lsr #22 + 80051a8: 4621 mov r1, r4 + 80051aa: 028a lsls r2, r1, #10 + 80051ac: 4610 mov r0, r2 + 80051ae: 4619 mov r1, r3 + 80051b0: f8d7 30ac ldr.w r3, [r7, #172] @ 0xac + 80051b4: 2200 movs r2, #0 + 80051b6: 64bb str r3, [r7, #72] @ 0x48 + 80051b8: 64fa str r2, [r7, #76] @ 0x4c + 80051ba: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 + 80051be: f7fb f821 bl 8000204 <__aeabi_uldivmod> + 80051c2: 4602 mov r2, r0 + 80051c4: 460b mov r3, r1 + 80051c6: 4613 mov r3, r2 + 80051c8: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 } pllr = ((RCC->PLLCFGR & RCC_PLLCFGR_PLLR) >> RCC_PLLCFGR_PLLR_Pos); - 8005114: 4b0d ldr r3, [pc, #52] @ (800514c ) - 8005116: 685b ldr r3, [r3, #4] - 8005118: 0f1b lsrs r3, r3, #28 - 800511a: f003 0307 and.w r3, r3, #7 - 800511e: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 80051cc: 4b0d ldr r3, [pc, #52] @ (8005204 ) + 80051ce: 685b ldr r3, [r3, #4] + 80051d0: 0f1b lsrs r3, r3, #28 + 80051d2: f003 0307 and.w r3, r3, #7 + 80051d6: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 sysclockfreq = pllvco / pllr; - 8005122: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 - 8005126: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4 - 800512a: fbb2 f3f3 udiv r3, r2, r3 - 800512e: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 80051da: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 + 80051de: f8d7 30a4 ldr.w r3, [r7, #164] @ 0xa4 + 80051e2: fbb2 f3f3 udiv r3, r2, r3 + 80051e6: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 8005132: e003 b.n 800513c + 80051ea: e003 b.n 80051f4 } default: { sysclockfreq = HSI_VALUE; - 8005134: 4b06 ldr r3, [pc, #24] @ (8005150 ) - 8005136: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 80051ec: 4b06 ldr r3, [pc, #24] @ (8005208 ) + 80051ee: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 break; - 800513a: bf00 nop + 80051f2: bf00 nop } } return sysclockfreq; - 800513c: f8d7 30b0 ldr.w r3, [r7, #176] @ 0xb0 + 80051f4: f8d7 30b0 ldr.w r3, [r7, #176] @ 0xb0 } - 8005140: 4618 mov r0, r3 - 8005142: 37b8 adds r7, #184 @ 0xb8 - 8005144: 46bd mov sp, r7 - 8005146: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} - 800514a: bf00 nop - 800514c: 40023800 .word 0x40023800 - 8005150: 00f42400 .word 0x00f42400 + 80051f8: 4618 mov r0, r3 + 80051fa: 37b8 adds r7, #184 @ 0xb8 + 80051fc: 46bd mov sp, r7 + 80051fe: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} + 8005202: bf00 nop + 8005204: 40023800 .word 0x40023800 + 8005208: 00f42400 .word 0x00f42400 -08005154 : +0800520c : * @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) { - 8005154: b580 push {r7, lr} - 8005156: b086 sub sp, #24 - 8005158: af00 add r7, sp, #0 - 800515a: 6078 str r0, [r7, #4] + 800520c: b580 push {r7, lr} + 800520e: b086 sub sp, #24 + 8005210: af00 add r7, sp, #0 + 8005212: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; /* Check Null pointer */ if (RCC_OscInitStruct == NULL) - 800515c: 687b ldr r3, [r7, #4] - 800515e: 2b00 cmp r3, #0 - 8005160: d101 bne.n 8005166 + 8005214: 687b ldr r3, [r7, #4] + 8005216: 2b00 cmp r3, #0 + 8005218: d101 bne.n 800521e { return HAL_ERROR; - 8005162: 2301 movs r3, #1 - 8005164: e28d b.n 8005682 + 800521a: 2301 movs r3, #1 + 800521c: e28d b.n 800573a } /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) - 8005166: 687b ldr r3, [r7, #4] - 8005168: 681b ldr r3, [r3, #0] - 800516a: f003 0301 and.w r3, r3, #1 - 800516e: 2b00 cmp r3, #0 - 8005170: f000 8083 beq.w 800527a + 800521e: 687b ldr r3, [r7, #4] + 8005220: 681b ldr r3, [r3, #0] + 8005222: f003 0301 and.w r3, r3, #1 + 8005226: 2b00 cmp r3, #0 + 8005228: f000 8083 beq.w 8005332 { /* 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) - 8005174: 4b94 ldr r3, [pc, #592] @ (80053c8 ) - 8005176: 689b ldr r3, [r3, #8] - 8005178: f003 030c and.w r3, r3, #12 - 800517c: 2b04 cmp r3, #4 - 800517e: d019 beq.n 80051b4 + 800522c: 4b94 ldr r3, [pc, #592] @ (8005480 ) + 800522e: 689b ldr r3, [r3, #8] + 8005230: f003 030c and.w r3, r3, #12 + 8005234: 2b04 cmp r3, #4 + 8005236: d019 beq.n 800526c || \ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)) || \ - 8005180: 4b91 ldr r3, [pc, #580] @ (80053c8 ) - 8005182: 689b ldr r3, [r3, #8] - 8005184: f003 030c and.w r3, r3, #12 + 8005238: 4b91 ldr r3, [pc, #580] @ (8005480 ) + 800523a: 689b ldr r3, [r3, #8] + 800523c: f003 030c and.w r3, r3, #12 || \ - 8005188: 2b08 cmp r3, #8 - 800518a: d106 bne.n 800519a + 8005240: 2b08 cmp r3, #8 + 8005242: d106 bne.n 8005252 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)) || \ - 800518c: 4b8e ldr r3, [pc, #568] @ (80053c8 ) - 800518e: 685b ldr r3, [r3, #4] - 8005190: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 8005194: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 8005198: d00c beq.n 80051b4 + 8005244: 4b8e ldr r3, [pc, #568] @ (8005480 ) + 8005246: 685b ldr r3, [r3, #4] + 8005248: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 800524c: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 8005250: d00c beq.n 800526c ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) - 800519a: 4b8b ldr r3, [pc, #556] @ (80053c8 ) - 800519c: 689b ldr r3, [r3, #8] - 800519e: f003 030c and.w r3, r3, #12 + 8005252: 4b8b ldr r3, [pc, #556] @ (8005480 ) + 8005254: 689b ldr r3, [r3, #8] + 8005256: 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)) || \ - 80051a2: 2b0c cmp r3, #12 - 80051a4: d112 bne.n 80051cc + 800525a: 2b0c cmp r3, #12 + 800525c: d112 bne.n 8005284 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE))) - 80051a6: 4b88 ldr r3, [pc, #544] @ (80053c8 ) - 80051a8: 685b ldr r3, [r3, #4] - 80051aa: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 80051ae: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 - 80051b2: d10b bne.n 80051cc + 800525e: 4b88 ldr r3, [pc, #544] @ (8005480 ) + 8005260: 685b ldr r3, [r3, #4] + 8005262: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8005266: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000 + 800526a: d10b bne.n 8005284 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)) - 80051b4: 4b84 ldr r3, [pc, #528] @ (80053c8 ) - 80051b6: 681b ldr r3, [r3, #0] - 80051b8: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 80051bc: 2b00 cmp r3, #0 - 80051be: d05b beq.n 8005278 - 80051c0: 687b ldr r3, [r7, #4] - 80051c2: 685b ldr r3, [r3, #4] - 80051c4: 2b00 cmp r3, #0 - 80051c6: d157 bne.n 8005278 + 800526c: 4b84 ldr r3, [pc, #528] @ (8005480 ) + 800526e: 681b ldr r3, [r3, #0] + 8005270: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8005274: 2b00 cmp r3, #0 + 8005276: d05b beq.n 8005330 + 8005278: 687b ldr r3, [r7, #4] + 800527a: 685b ldr r3, [r3, #4] + 800527c: 2b00 cmp r3, #0 + 800527e: d157 bne.n 8005330 { return HAL_ERROR; - 80051c8: 2301 movs r3, #1 - 80051ca: e25a b.n 8005682 + 8005280: 2301 movs r3, #1 + 8005282: e25a b.n 800573a } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); - 80051cc: 687b ldr r3, [r7, #4] - 80051ce: 685b ldr r3, [r3, #4] - 80051d0: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 - 80051d4: d106 bne.n 80051e4 - 80051d6: 4b7c ldr r3, [pc, #496] @ (80053c8 ) - 80051d8: 681b ldr r3, [r3, #0] - 80051da: 4a7b ldr r2, [pc, #492] @ (80053c8 ) - 80051dc: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 80051e0: 6013 str r3, [r2, #0] - 80051e2: e01d b.n 8005220 - 80051e4: 687b ldr r3, [r7, #4] - 80051e6: 685b ldr r3, [r3, #4] - 80051e8: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 - 80051ec: d10c bne.n 8005208 - 80051ee: 4b76 ldr r3, [pc, #472] @ (80053c8 ) - 80051f0: 681b ldr r3, [r3, #0] - 80051f2: 4a75 ldr r2, [pc, #468] @ (80053c8 ) - 80051f4: f443 2380 orr.w r3, r3, #262144 @ 0x40000 - 80051f8: 6013 str r3, [r2, #0] - 80051fa: 4b73 ldr r3, [pc, #460] @ (80053c8 ) - 80051fc: 681b ldr r3, [r3, #0] - 80051fe: 4a72 ldr r2, [pc, #456] @ (80053c8 ) - 8005200: f443 3380 orr.w r3, r3, #65536 @ 0x10000 - 8005204: 6013 str r3, [r2, #0] - 8005206: e00b b.n 8005220 - 8005208: 4b6f ldr r3, [pc, #444] @ (80053c8 ) - 800520a: 681b ldr r3, [r3, #0] - 800520c: 4a6e ldr r2, [pc, #440] @ (80053c8 ) - 800520e: f423 3380 bic.w r3, r3, #65536 @ 0x10000 - 8005212: 6013 str r3, [r2, #0] - 8005214: 4b6c ldr r3, [pc, #432] @ (80053c8 ) - 8005216: 681b ldr r3, [r3, #0] - 8005218: 4a6b ldr r2, [pc, #428] @ (80053c8 ) - 800521a: f423 2380 bic.w r3, r3, #262144 @ 0x40000 - 800521e: 6013 str r3, [r2, #0] + 8005284: 687b ldr r3, [r7, #4] + 8005286: 685b ldr r3, [r3, #4] + 8005288: f5b3 3f80 cmp.w r3, #65536 @ 0x10000 + 800528c: d106 bne.n 800529c + 800528e: 4b7c ldr r3, [pc, #496] @ (8005480 ) + 8005290: 681b ldr r3, [r3, #0] + 8005292: 4a7b ldr r2, [pc, #492] @ (8005480 ) + 8005294: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 8005298: 6013 str r3, [r2, #0] + 800529a: e01d b.n 80052d8 + 800529c: 687b ldr r3, [r7, #4] + 800529e: 685b ldr r3, [r3, #4] + 80052a0: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000 + 80052a4: d10c bne.n 80052c0 + 80052a6: 4b76 ldr r3, [pc, #472] @ (8005480 ) + 80052a8: 681b ldr r3, [r3, #0] + 80052aa: 4a75 ldr r2, [pc, #468] @ (8005480 ) + 80052ac: f443 2380 orr.w r3, r3, #262144 @ 0x40000 + 80052b0: 6013 str r3, [r2, #0] + 80052b2: 4b73 ldr r3, [pc, #460] @ (8005480 ) + 80052b4: 681b ldr r3, [r3, #0] + 80052b6: 4a72 ldr r2, [pc, #456] @ (8005480 ) + 80052b8: f443 3380 orr.w r3, r3, #65536 @ 0x10000 + 80052bc: 6013 str r3, [r2, #0] + 80052be: e00b b.n 80052d8 + 80052c0: 4b6f ldr r3, [pc, #444] @ (8005480 ) + 80052c2: 681b ldr r3, [r3, #0] + 80052c4: 4a6e ldr r2, [pc, #440] @ (8005480 ) + 80052c6: f423 3380 bic.w r3, r3, #65536 @ 0x10000 + 80052ca: 6013 str r3, [r2, #0] + 80052cc: 4b6c ldr r3, [pc, #432] @ (8005480 ) + 80052ce: 681b ldr r3, [r3, #0] + 80052d0: 4a6b ldr r2, [pc, #428] @ (8005480 ) + 80052d2: f423 2380 bic.w r3, r3, #262144 @ 0x40000 + 80052d6: 6013 str r3, [r2, #0] /* Check the HSE State */ if ((RCC_OscInitStruct->HSEState) != RCC_HSE_OFF) - 8005220: 687b ldr r3, [r7, #4] - 8005222: 685b ldr r3, [r3, #4] - 8005224: 2b00 cmp r3, #0 - 8005226: d013 beq.n 8005250 + 80052d8: 687b ldr r3, [r7, #4] + 80052da: 685b ldr r3, [r3, #4] + 80052dc: 2b00 cmp r3, #0 + 80052de: d013 beq.n 8005308 { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8005228: f7fc fe4c bl 8001ec4 - 800522c: 6138 str r0, [r7, #16] + 80052e0: f7fc fe4c bl 8001f7c + 80052e4: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 800522e: e008 b.n 8005242 + 80052e6: e008 b.n 80052fa { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8005230: f7fc fe48 bl 8001ec4 - 8005234: 4602 mov r2, r0 - 8005236: 693b ldr r3, [r7, #16] - 8005238: 1ad3 subs r3, r2, r3 - 800523a: 2b64 cmp r3, #100 @ 0x64 - 800523c: d901 bls.n 8005242 + 80052e8: f7fc fe48 bl 8001f7c + 80052ec: 4602 mov r2, r0 + 80052ee: 693b ldr r3, [r7, #16] + 80052f0: 1ad3 subs r3, r2, r3 + 80052f2: 2b64 cmp r3, #100 @ 0x64 + 80052f4: d901 bls.n 80052fa { return HAL_TIMEOUT; - 800523e: 2303 movs r3, #3 - 8005240: e21f b.n 8005682 + 80052f6: 2303 movs r3, #3 + 80052f8: e21f b.n 800573a while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) - 8005242: 4b61 ldr r3, [pc, #388] @ (80053c8 ) - 8005244: 681b ldr r3, [r3, #0] - 8005246: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 800524a: 2b00 cmp r3, #0 - 800524c: d0f0 beq.n 8005230 - 800524e: e014 b.n 800527a + 80052fa: 4b61 ldr r3, [pc, #388] @ (8005480 ) + 80052fc: 681b ldr r3, [r3, #0] + 80052fe: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 8005302: 2b00 cmp r3, #0 + 8005304: d0f0 beq.n 80052e8 + 8005306: e014 b.n 8005332 } } else { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8005250: f7fc fe38 bl 8001ec4 - 8005254: 6138 str r0, [r7, #16] + 8005308: f7fc fe38 bl 8001f7c + 800530c: 6138 str r0, [r7, #16] /* Wait till HSE is bypassed or disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 8005256: e008 b.n 800526a + 800530e: e008 b.n 8005322 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) - 8005258: f7fc fe34 bl 8001ec4 - 800525c: 4602 mov r2, r0 - 800525e: 693b ldr r3, [r7, #16] - 8005260: 1ad3 subs r3, r2, r3 - 8005262: 2b64 cmp r3, #100 @ 0x64 - 8005264: d901 bls.n 800526a + 8005310: f7fc fe34 bl 8001f7c + 8005314: 4602 mov r2, r0 + 8005316: 693b ldr r3, [r7, #16] + 8005318: 1ad3 subs r3, r2, r3 + 800531a: 2b64 cmp r3, #100 @ 0x64 + 800531c: d901 bls.n 8005322 { return HAL_TIMEOUT; - 8005266: 2303 movs r3, #3 - 8005268: e20b b.n 8005682 + 800531e: 2303 movs r3, #3 + 8005320: e20b b.n 800573a while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) - 800526a: 4b57 ldr r3, [pc, #348] @ (80053c8 ) - 800526c: 681b ldr r3, [r3, #0] - 800526e: f403 3300 and.w r3, r3, #131072 @ 0x20000 - 8005272: 2b00 cmp r3, #0 - 8005274: d1f0 bne.n 8005258 - 8005276: e000 b.n 800527a + 8005322: 4b57 ldr r3, [pc, #348] @ (8005480 ) + 8005324: 681b ldr r3, [r3, #0] + 8005326: f403 3300 and.w r3, r3, #131072 @ 0x20000 + 800532a: 2b00 cmp r3, #0 + 800532c: d1f0 bne.n 8005310 + 800532e: e000 b.n 8005332 if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) - 8005278: bf00 nop + 8005330: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) - 800527a: 687b ldr r3, [r7, #4] - 800527c: 681b ldr r3, [r3, #0] - 800527e: f003 0302 and.w r3, r3, #2 - 8005282: 2b00 cmp r3, #0 - 8005284: d06f beq.n 8005366 + 8005332: 687b ldr r3, [r7, #4] + 8005334: 681b ldr r3, [r3, #0] + 8005336: f003 0302 and.w r3, r3, #2 + 800533a: 2b00 cmp r3, #0 + 800533c: d06f beq.n 800541e 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) - 8005286: 4b50 ldr r3, [pc, #320] @ (80053c8 ) - 8005288: 689b ldr r3, [r3, #8] - 800528a: f003 030c and.w r3, r3, #12 - 800528e: 2b00 cmp r3, #0 - 8005290: d017 beq.n 80052c2 + 800533e: 4b50 ldr r3, [pc, #320] @ (8005480 ) + 8005340: 689b ldr r3, [r3, #8] + 8005342: f003 030c and.w r3, r3, #12 + 8005346: 2b00 cmp r3, #0 + 8005348: d017 beq.n 800537a || \ ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)) || \ - 8005292: 4b4d ldr r3, [pc, #308] @ (80053c8 ) - 8005294: 689b ldr r3, [r3, #8] - 8005296: f003 030c and.w r3, r3, #12 + 800534a: 4b4d ldr r3, [pc, #308] @ (8005480 ) + 800534c: 689b ldr r3, [r3, #8] + 800534e: f003 030c and.w r3, r3, #12 || \ - 800529a: 2b08 cmp r3, #8 - 800529c: d105 bne.n 80052aa + 8005352: 2b08 cmp r3, #8 + 8005354: d105 bne.n 8005362 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)) || \ - 800529e: 4b4a ldr r3, [pc, #296] @ (80053c8 ) - 80052a0: 685b ldr r3, [r3, #4] - 80052a2: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 80052a6: 2b00 cmp r3, #0 - 80052a8: d00b beq.n 80052c2 + 8005356: 4b4a ldr r3, [pc, #296] @ (8005480 ) + 8005358: 685b ldr r3, [r3, #4] + 800535a: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 800535e: 2b00 cmp r3, #0 + 8005360: d00b beq.n 800537a ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) - 80052aa: 4b47 ldr r3, [pc, #284] @ (80053c8 ) - 80052ac: 689b ldr r3, [r3, #8] - 80052ae: f003 030c and.w r3, r3, #12 + 8005362: 4b47 ldr r3, [pc, #284] @ (8005480 ) + 8005364: 689b ldr r3, [r3, #8] + 8005366: 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)) || \ - 80052b2: 2b0c cmp r3, #12 - 80052b4: d11c bne.n 80052f0 + 800536a: 2b0c cmp r3, #12 + 800536c: d11c bne.n 80053a8 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLLR) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI))) - 80052b6: 4b44 ldr r3, [pc, #272] @ (80053c8 ) - 80052b8: 685b ldr r3, [r3, #4] - 80052ba: f403 0380 and.w r3, r3, #4194304 @ 0x400000 - 80052be: 2b00 cmp r3, #0 - 80052c0: d116 bne.n 80052f0 + 800536e: 4b44 ldr r3, [pc, #272] @ (8005480 ) + 8005370: 685b ldr r3, [r3, #4] + 8005372: f403 0380 and.w r3, r3, #4194304 @ 0x400000 + 8005376: 2b00 cmp r3, #0 + 8005378: d116 bne.n 80053a8 || \ ((__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)) - 80052c2: 4b41 ldr r3, [pc, #260] @ (80053c8 ) - 80052c4: 681b ldr r3, [r3, #0] - 80052c6: f003 0302 and.w r3, r3, #2 - 80052ca: 2b00 cmp r3, #0 - 80052cc: d005 beq.n 80052da - 80052ce: 687b ldr r3, [r7, #4] - 80052d0: 68db ldr r3, [r3, #12] - 80052d2: 2b01 cmp r3, #1 - 80052d4: d001 beq.n 80052da + 800537a: 4b41 ldr r3, [pc, #260] @ (8005480 ) + 800537c: 681b ldr r3, [r3, #0] + 800537e: f003 0302 and.w r3, r3, #2 + 8005382: 2b00 cmp r3, #0 + 8005384: d005 beq.n 8005392 + 8005386: 687b ldr r3, [r7, #4] + 8005388: 68db ldr r3, [r3, #12] + 800538a: 2b01 cmp r3, #1 + 800538c: d001 beq.n 8005392 { return HAL_ERROR; - 80052d6: 2301 movs r3, #1 - 80052d8: e1d3 b.n 8005682 + 800538e: 2301 movs r3, #1 + 8005390: e1d3 b.n 800573a } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 80052da: 4b3b ldr r3, [pc, #236] @ (80053c8 ) - 80052dc: 681b ldr r3, [r3, #0] - 80052de: f023 02f8 bic.w r2, r3, #248 @ 0xf8 - 80052e2: 687b ldr r3, [r7, #4] - 80052e4: 691b ldr r3, [r3, #16] - 80052e6: 00db lsls r3, r3, #3 - 80052e8: 4937 ldr r1, [pc, #220] @ (80053c8 ) - 80052ea: 4313 orrs r3, r2 - 80052ec: 600b str r3, [r1, #0] + 8005392: 4b3b ldr r3, [pc, #236] @ (8005480 ) + 8005394: 681b ldr r3, [r3, #0] + 8005396: f023 02f8 bic.w r2, r3, #248 @ 0xf8 + 800539a: 687b ldr r3, [r7, #4] + 800539c: 691b ldr r3, [r3, #16] + 800539e: 00db lsls r3, r3, #3 + 80053a0: 4937 ldr r1, [pc, #220] @ (8005480 ) + 80053a2: 4313 orrs r3, r2 + 80053a4: 600b str r3, [r1, #0] if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) - 80052ee: e03a b.n 8005366 + 80053a6: e03a b.n 800541e } } else { /* Check the HSI State */ if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF) - 80052f0: 687b ldr r3, [r7, #4] - 80052f2: 68db ldr r3, [r3, #12] - 80052f4: 2b00 cmp r3, #0 - 80052f6: d020 beq.n 800533a + 80053a8: 687b ldr r3, [r7, #4] + 80053aa: 68db ldr r3, [r3, #12] + 80053ac: 2b00 cmp r3, #0 + 80053ae: d020 beq.n 80053f2 { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); - 80052f8: 4b34 ldr r3, [pc, #208] @ (80053cc ) - 80052fa: 2201 movs r2, #1 - 80052fc: 601a str r2, [r3, #0] + 80053b0: 4b34 ldr r3, [pc, #208] @ (8005484 ) + 80053b2: 2201 movs r2, #1 + 80053b4: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80052fe: f7fc fde1 bl 8001ec4 - 8005302: 6138 str r0, [r7, #16] + 80053b6: f7fc fde1 bl 8001f7c + 80053ba: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8005304: e008 b.n 8005318 + 80053bc: e008 b.n 80053d0 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8005306: f7fc fddd bl 8001ec4 - 800530a: 4602 mov r2, r0 - 800530c: 693b ldr r3, [r7, #16] - 800530e: 1ad3 subs r3, r2, r3 - 8005310: 2b02 cmp r3, #2 - 8005312: d901 bls.n 8005318 + 80053be: f7fc fddd bl 8001f7c + 80053c2: 4602 mov r2, r0 + 80053c4: 693b ldr r3, [r7, #16] + 80053c6: 1ad3 subs r3, r2, r3 + 80053c8: 2b02 cmp r3, #2 + 80053ca: d901 bls.n 80053d0 { return HAL_TIMEOUT; - 8005314: 2303 movs r3, #3 - 8005316: e1b4 b.n 8005682 + 80053cc: 2303 movs r3, #3 + 80053ce: e1b4 b.n 800573a while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) - 8005318: 4b2b ldr r3, [pc, #172] @ (80053c8 ) - 800531a: 681b ldr r3, [r3, #0] - 800531c: f003 0302 and.w r3, r3, #2 - 8005320: 2b00 cmp r3, #0 - 8005322: d0f0 beq.n 8005306 + 80053d0: 4b2b ldr r3, [pc, #172] @ (8005480 ) + 80053d2: 681b ldr r3, [r3, #0] + 80053d4: f003 0302 and.w r3, r3, #2 + 80053d8: 2b00 cmp r3, #0 + 80053da: d0f0 beq.n 80053be } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); - 8005324: 4b28 ldr r3, [pc, #160] @ (80053c8 ) - 8005326: 681b ldr r3, [r3, #0] - 8005328: f023 02f8 bic.w r2, r3, #248 @ 0xf8 - 800532c: 687b ldr r3, [r7, #4] - 800532e: 691b ldr r3, [r3, #16] - 8005330: 00db lsls r3, r3, #3 - 8005332: 4925 ldr r1, [pc, #148] @ (80053c8 ) - 8005334: 4313 orrs r3, r2 - 8005336: 600b str r3, [r1, #0] - 8005338: e015 b.n 8005366 + 80053dc: 4b28 ldr r3, [pc, #160] @ (8005480 ) + 80053de: 681b ldr r3, [r3, #0] + 80053e0: f023 02f8 bic.w r2, r3, #248 @ 0xf8 + 80053e4: 687b ldr r3, [r7, #4] + 80053e6: 691b ldr r3, [r3, #16] + 80053e8: 00db lsls r3, r3, #3 + 80053ea: 4925 ldr r1, [pc, #148] @ (8005480 ) + 80053ec: 4313 orrs r3, r2 + 80053ee: 600b str r3, [r1, #0] + 80053f0: e015 b.n 800541e } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); - 800533a: 4b24 ldr r3, [pc, #144] @ (80053cc ) - 800533c: 2200 movs r2, #0 - 800533e: 601a str r2, [r3, #0] + 80053f2: 4b24 ldr r3, [pc, #144] @ (8005484 ) + 80053f4: 2200 movs r2, #0 + 80053f6: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8005340: f7fc fdc0 bl 8001ec4 - 8005344: 6138 str r0, [r7, #16] + 80053f8: f7fc fdc0 bl 8001f7c + 80053fc: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 8005346: e008 b.n 800535a + 80053fe: e008 b.n 8005412 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) - 8005348: f7fc fdbc bl 8001ec4 - 800534c: 4602 mov r2, r0 - 800534e: 693b ldr r3, [r7, #16] - 8005350: 1ad3 subs r3, r2, r3 - 8005352: 2b02 cmp r3, #2 - 8005354: d901 bls.n 800535a + 8005400: f7fc fdbc bl 8001f7c + 8005404: 4602 mov r2, r0 + 8005406: 693b ldr r3, [r7, #16] + 8005408: 1ad3 subs r3, r2, r3 + 800540a: 2b02 cmp r3, #2 + 800540c: d901 bls.n 8005412 { return HAL_TIMEOUT; - 8005356: 2303 movs r3, #3 - 8005358: e193 b.n 8005682 + 800540e: 2303 movs r3, #3 + 8005410: e193 b.n 800573a while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) - 800535a: 4b1b ldr r3, [pc, #108] @ (80053c8 ) - 800535c: 681b ldr r3, [r3, #0] - 800535e: f003 0302 and.w r3, r3, #2 - 8005362: 2b00 cmp r3, #0 - 8005364: d1f0 bne.n 8005348 + 8005412: 4b1b ldr r3, [pc, #108] @ (8005480 ) + 8005414: 681b ldr r3, [r3, #0] + 8005416: f003 0302 and.w r3, r3, #2 + 800541a: 2b00 cmp r3, #0 + 800541c: d1f0 bne.n 8005400 } } } } /*------------------------------ LSI Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) - 8005366: 687b ldr r3, [r7, #4] - 8005368: 681b ldr r3, [r3, #0] - 800536a: f003 0308 and.w r3, r3, #8 - 800536e: 2b00 cmp r3, #0 - 8005370: d036 beq.n 80053e0 + 800541e: 687b ldr r3, [r7, #4] + 8005420: 681b ldr r3, [r3, #0] + 8005422: f003 0308 and.w r3, r3, #8 + 8005426: 2b00 cmp r3, #0 + 8005428: d036 beq.n 8005498 { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF) - 8005372: 687b ldr r3, [r7, #4] - 8005374: 695b ldr r3, [r3, #20] - 8005376: 2b00 cmp r3, #0 - 8005378: d016 beq.n 80053a8 + 800542a: 687b ldr r3, [r7, #4] + 800542c: 695b ldr r3, [r3, #20] + 800542e: 2b00 cmp r3, #0 + 8005430: d016 beq.n 8005460 { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); - 800537a: 4b15 ldr r3, [pc, #84] @ (80053d0 ) - 800537c: 2201 movs r2, #1 - 800537e: 601a str r2, [r3, #0] + 8005432: 4b15 ldr r3, [pc, #84] @ (8005488 ) + 8005434: 2201 movs r2, #1 + 8005436: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8005380: f7fc fda0 bl 8001ec4 - 8005384: 6138 str r0, [r7, #16] + 8005438: f7fc fda0 bl 8001f7c + 800543c: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 8005386: e008 b.n 800539a + 800543e: e008 b.n 8005452 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 8005388: f7fc fd9c bl 8001ec4 - 800538c: 4602 mov r2, r0 - 800538e: 693b ldr r3, [r7, #16] - 8005390: 1ad3 subs r3, r2, r3 - 8005392: 2b02 cmp r3, #2 - 8005394: d901 bls.n 800539a + 8005440: f7fc fd9c bl 8001f7c + 8005444: 4602 mov r2, r0 + 8005446: 693b ldr r3, [r7, #16] + 8005448: 1ad3 subs r3, r2, r3 + 800544a: 2b02 cmp r3, #2 + 800544c: d901 bls.n 8005452 { return HAL_TIMEOUT; - 8005396: 2303 movs r3, #3 - 8005398: e173 b.n 8005682 + 800544e: 2303 movs r3, #3 + 8005450: e173 b.n 800573a while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) - 800539a: 4b0b ldr r3, [pc, #44] @ (80053c8 ) - 800539c: 6f5b ldr r3, [r3, #116] @ 0x74 - 800539e: f003 0302 and.w r3, r3, #2 - 80053a2: 2b00 cmp r3, #0 - 80053a4: d0f0 beq.n 8005388 - 80053a6: e01b b.n 80053e0 + 8005452: 4b0b ldr r3, [pc, #44] @ (8005480 ) + 8005454: 6f5b ldr r3, [r3, #116] @ 0x74 + 8005456: f003 0302 and.w r3, r3, #2 + 800545a: 2b00 cmp r3, #0 + 800545c: d0f0 beq.n 8005440 + 800545e: e01b b.n 8005498 } } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); - 80053a8: 4b09 ldr r3, [pc, #36] @ (80053d0 ) - 80053aa: 2200 movs r2, #0 - 80053ac: 601a str r2, [r3, #0] + 8005460: 4b09 ldr r3, [pc, #36] @ (8005488 ) + 8005462: 2200 movs r2, #0 + 8005464: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80053ae: f7fc fd89 bl 8001ec4 - 80053b2: 6138 str r0, [r7, #16] + 8005466: f7fc fd89 bl 8001f7c + 800546a: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 80053b4: e00e b.n 80053d4 + 800546c: e00e b.n 800548c { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) - 80053b6: f7fc fd85 bl 8001ec4 - 80053ba: 4602 mov r2, r0 - 80053bc: 693b ldr r3, [r7, #16] - 80053be: 1ad3 subs r3, r2, r3 - 80053c0: 2b02 cmp r3, #2 - 80053c2: d907 bls.n 80053d4 + 800546e: f7fc fd85 bl 8001f7c + 8005472: 4602 mov r2, r0 + 8005474: 693b ldr r3, [r7, #16] + 8005476: 1ad3 subs r3, r2, r3 + 8005478: 2b02 cmp r3, #2 + 800547a: d907 bls.n 800548c { return HAL_TIMEOUT; - 80053c4: 2303 movs r3, #3 - 80053c6: e15c b.n 8005682 - 80053c8: 40023800 .word 0x40023800 - 80053cc: 42470000 .word 0x42470000 - 80053d0: 42470e80 .word 0x42470e80 + 800547c: 2303 movs r3, #3 + 800547e: e15c b.n 800573a + 8005480: 40023800 .word 0x40023800 + 8005484: 42470000 .word 0x42470000 + 8005488: 42470e80 .word 0x42470e80 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) - 80053d4: 4b8a ldr r3, [pc, #552] @ (8005600 ) - 80053d6: 6f5b ldr r3, [r3, #116] @ 0x74 - 80053d8: f003 0302 and.w r3, r3, #2 - 80053dc: 2b00 cmp r3, #0 - 80053de: d1ea bne.n 80053b6 + 800548c: 4b8a ldr r3, [pc, #552] @ (80056b8 ) + 800548e: 6f5b ldr r3, [r3, #116] @ 0x74 + 8005490: f003 0302 and.w r3, r3, #2 + 8005494: 2b00 cmp r3, #0 + 8005496: d1ea bne.n 800546e } } } } /*------------------------------ LSE Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) - 80053e0: 687b ldr r3, [r7, #4] - 80053e2: 681b ldr r3, [r3, #0] - 80053e4: f003 0304 and.w r3, r3, #4 - 80053e8: 2b00 cmp r3, #0 - 80053ea: f000 8097 beq.w 800551c + 8005498: 687b ldr r3, [r7, #4] + 800549a: 681b ldr r3, [r3, #0] + 800549c: f003 0304 and.w r3, r3, #4 + 80054a0: 2b00 cmp r3, #0 + 80054a2: f000 8097 beq.w 80055d4 { FlagStatus pwrclkchanged = RESET; - 80053ee: 2300 movs r3, #0 - 80053f0: 75fb strb r3, [r7, #23] + 80054a6: 2300 movs r3, #0 + 80054a8: 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()) - 80053f2: 4b83 ldr r3, [pc, #524] @ (8005600 ) - 80053f4: 6c1b ldr r3, [r3, #64] @ 0x40 - 80053f6: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 80053fa: 2b00 cmp r3, #0 - 80053fc: d10f bne.n 800541e + 80054aa: 4b83 ldr r3, [pc, #524] @ (80056b8 ) + 80054ac: 6c1b ldr r3, [r3, #64] @ 0x40 + 80054ae: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 80054b2: 2b00 cmp r3, #0 + 80054b4: d10f bne.n 80054d6 { __HAL_RCC_PWR_CLK_ENABLE(); - 80053fe: 2300 movs r3, #0 - 8005400: 60bb str r3, [r7, #8] - 8005402: 4b7f ldr r3, [pc, #508] @ (8005600 ) - 8005404: 6c1b ldr r3, [r3, #64] @ 0x40 - 8005406: 4a7e ldr r2, [pc, #504] @ (8005600 ) - 8005408: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 800540c: 6413 str r3, [r2, #64] @ 0x40 - 800540e: 4b7c ldr r3, [pc, #496] @ (8005600 ) - 8005410: 6c1b ldr r3, [r3, #64] @ 0x40 - 8005412: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 - 8005416: 60bb str r3, [r7, #8] - 8005418: 68bb ldr r3, [r7, #8] + 80054b6: 2300 movs r3, #0 + 80054b8: 60bb str r3, [r7, #8] + 80054ba: 4b7f ldr r3, [pc, #508] @ (80056b8 ) + 80054bc: 6c1b ldr r3, [r3, #64] @ 0x40 + 80054be: 4a7e ldr r2, [pc, #504] @ (80056b8 ) + 80054c0: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80054c4: 6413 str r3, [r2, #64] @ 0x40 + 80054c6: 4b7c ldr r3, [pc, #496] @ (80056b8 ) + 80054c8: 6c1b ldr r3, [r3, #64] @ 0x40 + 80054ca: f003 5380 and.w r3, r3, #268435456 @ 0x10000000 + 80054ce: 60bb str r3, [r7, #8] + 80054d0: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; - 800541a: 2301 movs r3, #1 - 800541c: 75fb strb r3, [r7, #23] + 80054d2: 2301 movs r3, #1 + 80054d4: 75fb strb r3, [r7, #23] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 800541e: 4b79 ldr r3, [pc, #484] @ (8005604 ) - 8005420: 681b ldr r3, [r3, #0] - 8005422: f403 7380 and.w r3, r3, #256 @ 0x100 - 8005426: 2b00 cmp r3, #0 - 8005428: d118 bne.n 800545c + 80054d6: 4b79 ldr r3, [pc, #484] @ (80056bc ) + 80054d8: 681b ldr r3, [r3, #0] + 80054da: f403 7380 and.w r3, r3, #256 @ 0x100 + 80054de: 2b00 cmp r3, #0 + 80054e0: d118 bne.n 8005514 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); - 800542a: 4b76 ldr r3, [pc, #472] @ (8005604 ) - 800542c: 681b ldr r3, [r3, #0] - 800542e: 4a75 ldr r2, [pc, #468] @ (8005604 ) - 8005430: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8005434: 6013 str r3, [r2, #0] + 80054e2: 4b76 ldr r3, [pc, #472] @ (80056bc ) + 80054e4: 681b ldr r3, [r3, #0] + 80054e6: 4a75 ldr r2, [pc, #468] @ (80056bc ) + 80054e8: f443 7380 orr.w r3, r3, #256 @ 0x100 + 80054ec: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); - 8005436: f7fc fd45 bl 8001ec4 - 800543a: 6138 str r0, [r7, #16] + 80054ee: f7fc fd45 bl 8001f7c + 80054f2: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 800543c: e008 b.n 8005450 + 80054f4: e008 b.n 8005508 { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) - 800543e: f7fc fd41 bl 8001ec4 - 8005442: 4602 mov r2, r0 - 8005444: 693b ldr r3, [r7, #16] - 8005446: 1ad3 subs r3, r2, r3 - 8005448: 2b02 cmp r3, #2 - 800544a: d901 bls.n 8005450 + 80054f6: f7fc fd41 bl 8001f7c + 80054fa: 4602 mov r2, r0 + 80054fc: 693b ldr r3, [r7, #16] + 80054fe: 1ad3 subs r3, r2, r3 + 8005500: 2b02 cmp r3, #2 + 8005502: d901 bls.n 8005508 { return HAL_TIMEOUT; - 800544c: 2303 movs r3, #3 - 800544e: e118 b.n 8005682 + 8005504: 2303 movs r3, #3 + 8005506: e118 b.n 800573a while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) - 8005450: 4b6c ldr r3, [pc, #432] @ (8005604 ) - 8005452: 681b ldr r3, [r3, #0] - 8005454: f403 7380 and.w r3, r3, #256 @ 0x100 - 8005458: 2b00 cmp r3, #0 - 800545a: d0f0 beq.n 800543e + 8005508: 4b6c ldr r3, [pc, #432] @ (80056bc ) + 800550a: 681b ldr r3, [r3, #0] + 800550c: f403 7380 and.w r3, r3, #256 @ 0x100 + 8005510: 2b00 cmp r3, #0 + 8005512: d0f0 beq.n 80054f6 } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); - 800545c: 687b ldr r3, [r7, #4] - 800545e: 689b ldr r3, [r3, #8] - 8005460: 2b01 cmp r3, #1 - 8005462: d106 bne.n 8005472 - 8005464: 4b66 ldr r3, [pc, #408] @ (8005600 ) - 8005466: 6f1b ldr r3, [r3, #112] @ 0x70 - 8005468: 4a65 ldr r2, [pc, #404] @ (8005600 ) - 800546a: f043 0301 orr.w r3, r3, #1 - 800546e: 6713 str r3, [r2, #112] @ 0x70 - 8005470: e01c b.n 80054ac - 8005472: 687b ldr r3, [r7, #4] - 8005474: 689b ldr r3, [r3, #8] - 8005476: 2b05 cmp r3, #5 - 8005478: d10c bne.n 8005494 - 800547a: 4b61 ldr r3, [pc, #388] @ (8005600 ) - 800547c: 6f1b ldr r3, [r3, #112] @ 0x70 - 800547e: 4a60 ldr r2, [pc, #384] @ (8005600 ) - 8005480: f043 0304 orr.w r3, r3, #4 - 8005484: 6713 str r3, [r2, #112] @ 0x70 - 8005486: 4b5e ldr r3, [pc, #376] @ (8005600 ) - 8005488: 6f1b ldr r3, [r3, #112] @ 0x70 - 800548a: 4a5d ldr r2, [pc, #372] @ (8005600 ) - 800548c: f043 0301 orr.w r3, r3, #1 - 8005490: 6713 str r3, [r2, #112] @ 0x70 - 8005492: e00b b.n 80054ac - 8005494: 4b5a ldr r3, [pc, #360] @ (8005600 ) - 8005496: 6f1b ldr r3, [r3, #112] @ 0x70 - 8005498: 4a59 ldr r2, [pc, #356] @ (8005600 ) - 800549a: f023 0301 bic.w r3, r3, #1 - 800549e: 6713 str r3, [r2, #112] @ 0x70 - 80054a0: 4b57 ldr r3, [pc, #348] @ (8005600 ) - 80054a2: 6f1b ldr r3, [r3, #112] @ 0x70 - 80054a4: 4a56 ldr r2, [pc, #344] @ (8005600 ) - 80054a6: f023 0304 bic.w r3, r3, #4 - 80054aa: 6713 str r3, [r2, #112] @ 0x70 + 8005514: 687b ldr r3, [r7, #4] + 8005516: 689b ldr r3, [r3, #8] + 8005518: 2b01 cmp r3, #1 + 800551a: d106 bne.n 800552a + 800551c: 4b66 ldr r3, [pc, #408] @ (80056b8 ) + 800551e: 6f1b ldr r3, [r3, #112] @ 0x70 + 8005520: 4a65 ldr r2, [pc, #404] @ (80056b8 ) + 8005522: f043 0301 orr.w r3, r3, #1 + 8005526: 6713 str r3, [r2, #112] @ 0x70 + 8005528: e01c b.n 8005564 + 800552a: 687b ldr r3, [r7, #4] + 800552c: 689b ldr r3, [r3, #8] + 800552e: 2b05 cmp r3, #5 + 8005530: d10c bne.n 800554c + 8005532: 4b61 ldr r3, [pc, #388] @ (80056b8 ) + 8005534: 6f1b ldr r3, [r3, #112] @ 0x70 + 8005536: 4a60 ldr r2, [pc, #384] @ (80056b8 ) + 8005538: f043 0304 orr.w r3, r3, #4 + 800553c: 6713 str r3, [r2, #112] @ 0x70 + 800553e: 4b5e ldr r3, [pc, #376] @ (80056b8 ) + 8005540: 6f1b ldr r3, [r3, #112] @ 0x70 + 8005542: 4a5d ldr r2, [pc, #372] @ (80056b8 ) + 8005544: f043 0301 orr.w r3, r3, #1 + 8005548: 6713 str r3, [r2, #112] @ 0x70 + 800554a: e00b b.n 8005564 + 800554c: 4b5a ldr r3, [pc, #360] @ (80056b8 ) + 800554e: 6f1b ldr r3, [r3, #112] @ 0x70 + 8005550: 4a59 ldr r2, [pc, #356] @ (80056b8 ) + 8005552: f023 0301 bic.w r3, r3, #1 + 8005556: 6713 str r3, [r2, #112] @ 0x70 + 8005558: 4b57 ldr r3, [pc, #348] @ (80056b8 ) + 800555a: 6f1b ldr r3, [r3, #112] @ 0x70 + 800555c: 4a56 ldr r2, [pc, #344] @ (80056b8 ) + 800555e: f023 0304 bic.w r3, r3, #4 + 8005562: 6713 str r3, [r2, #112] @ 0x70 /* Check the LSE State */ if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF) - 80054ac: 687b ldr r3, [r7, #4] - 80054ae: 689b ldr r3, [r3, #8] - 80054b0: 2b00 cmp r3, #0 - 80054b2: d015 beq.n 80054e0 + 8005564: 687b ldr r3, [r7, #4] + 8005566: 689b ldr r3, [r3, #8] + 8005568: 2b00 cmp r3, #0 + 800556a: d015 beq.n 8005598 { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80054b4: f7fc fd06 bl 8001ec4 - 80054b8: 6138 str r0, [r7, #16] + 800556c: f7fc fd06 bl 8001f7c + 8005570: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 80054ba: e00a b.n 80054d2 + 8005572: e00a b.n 800558a { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 80054bc: f7fc fd02 bl 8001ec4 - 80054c0: 4602 mov r2, r0 - 80054c2: 693b ldr r3, [r7, #16] - 80054c4: 1ad3 subs r3, r2, r3 - 80054c6: f241 3288 movw r2, #5000 @ 0x1388 - 80054ca: 4293 cmp r3, r2 - 80054cc: d901 bls.n 80054d2 + 8005574: f7fc fd02 bl 8001f7c + 8005578: 4602 mov r2, r0 + 800557a: 693b ldr r3, [r7, #16] + 800557c: 1ad3 subs r3, r2, r3 + 800557e: f241 3288 movw r2, #5000 @ 0x1388 + 8005582: 4293 cmp r3, r2 + 8005584: d901 bls.n 800558a { return HAL_TIMEOUT; - 80054ce: 2303 movs r3, #3 - 80054d0: e0d7 b.n 8005682 + 8005586: 2303 movs r3, #3 + 8005588: e0d7 b.n 800573a while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) - 80054d2: 4b4b ldr r3, [pc, #300] @ (8005600 ) - 80054d4: 6f1b ldr r3, [r3, #112] @ 0x70 - 80054d6: f003 0302 and.w r3, r3, #2 - 80054da: 2b00 cmp r3, #0 - 80054dc: d0ee beq.n 80054bc - 80054de: e014 b.n 800550a + 800558a: 4b4b ldr r3, [pc, #300] @ (80056b8 ) + 800558c: 6f1b ldr r3, [r3, #112] @ 0x70 + 800558e: f003 0302 and.w r3, r3, #2 + 8005592: 2b00 cmp r3, #0 + 8005594: d0ee beq.n 8005574 + 8005596: e014 b.n 80055c2 } } else { /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80054e0: f7fc fcf0 bl 8001ec4 - 80054e4: 6138 str r0, [r7, #16] + 8005598: f7fc fcf0 bl 8001f7c + 800559c: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 80054e6: e00a b.n 80054fe + 800559e: e00a b.n 80055b6 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) - 80054e8: f7fc fcec bl 8001ec4 - 80054ec: 4602 mov r2, r0 - 80054ee: 693b ldr r3, [r7, #16] - 80054f0: 1ad3 subs r3, r2, r3 - 80054f2: f241 3288 movw r2, #5000 @ 0x1388 - 80054f6: 4293 cmp r3, r2 - 80054f8: d901 bls.n 80054fe + 80055a0: f7fc fcec bl 8001f7c + 80055a4: 4602 mov r2, r0 + 80055a6: 693b ldr r3, [r7, #16] + 80055a8: 1ad3 subs r3, r2, r3 + 80055aa: f241 3288 movw r2, #5000 @ 0x1388 + 80055ae: 4293 cmp r3, r2 + 80055b0: d901 bls.n 80055b6 { return HAL_TIMEOUT; - 80054fa: 2303 movs r3, #3 - 80054fc: e0c1 b.n 8005682 + 80055b2: 2303 movs r3, #3 + 80055b4: e0c1 b.n 800573a while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) - 80054fe: 4b40 ldr r3, [pc, #256] @ (8005600 ) - 8005500: 6f1b ldr r3, [r3, #112] @ 0x70 - 8005502: f003 0302 and.w r3, r3, #2 - 8005506: 2b00 cmp r3, #0 - 8005508: d1ee bne.n 80054e8 + 80055b6: 4b40 ldr r3, [pc, #256] @ (80056b8 ) + 80055b8: 6f1b ldr r3, [r3, #112] @ 0x70 + 80055ba: f003 0302 and.w r3, r3, #2 + 80055be: 2b00 cmp r3, #0 + 80055c0: d1ee bne.n 80055a0 } } } /* Restore clock configuration if changed */ if (pwrclkchanged == SET) - 800550a: 7dfb ldrb r3, [r7, #23] - 800550c: 2b01 cmp r3, #1 - 800550e: d105 bne.n 800551c + 80055c2: 7dfb ldrb r3, [r7, #23] + 80055c4: 2b01 cmp r3, #1 + 80055c6: d105 bne.n 80055d4 { __HAL_RCC_PWR_CLK_DISABLE(); - 8005510: 4b3b ldr r3, [pc, #236] @ (8005600 ) - 8005512: 6c1b ldr r3, [r3, #64] @ 0x40 - 8005514: 4a3a ldr r2, [pc, #232] @ (8005600 ) - 8005516: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 - 800551a: 6413 str r3, [r2, #64] @ 0x40 + 80055c8: 4b3b ldr r3, [pc, #236] @ (80056b8 ) + 80055ca: 6c1b ldr r3, [r3, #64] @ 0x40 + 80055cc: 4a3a ldr r2, [pc, #232] @ (80056b8 ) + 80055ce: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000 + 80055d2: 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) - 800551c: 687b ldr r3, [r7, #4] - 800551e: 699b ldr r3, [r3, #24] - 8005520: 2b00 cmp r3, #0 - 8005522: f000 80ad beq.w 8005680 + 80055d4: 687b ldr r3, [r7, #4] + 80055d6: 699b ldr r3, [r3, #24] + 80055d8: 2b00 cmp r3, #0 + 80055da: f000 80ad beq.w 8005738 { /* Check if the PLL is used as system clock or not */ if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL) - 8005526: 4b36 ldr r3, [pc, #216] @ (8005600 ) - 8005528: 689b ldr r3, [r3, #8] - 800552a: f003 030c and.w r3, r3, #12 - 800552e: 2b08 cmp r3, #8 - 8005530: d060 beq.n 80055f4 + 80055de: 4b36 ldr r3, [pc, #216] @ (80056b8 ) + 80055e0: 689b ldr r3, [r3, #8] + 80055e2: f003 030c and.w r3, r3, #12 + 80055e6: 2b08 cmp r3, #8 + 80055e8: d060 beq.n 80056ac { if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) - 8005532: 687b ldr r3, [r7, #4] - 8005534: 699b ldr r3, [r3, #24] - 8005536: 2b02 cmp r3, #2 - 8005538: d145 bne.n 80055c6 + 80055ea: 687b ldr r3, [r7, #4] + 80055ec: 699b ldr r3, [r3, #24] + 80055ee: 2b02 cmp r3, #2 + 80055f0: d145 bne.n 800567e 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(); - 800553a: 4b33 ldr r3, [pc, #204] @ (8005608 ) - 800553c: 2200 movs r2, #0 - 800553e: 601a str r2, [r3, #0] + 80055f2: 4b33 ldr r3, [pc, #204] @ (80056c0 ) + 80055f4: 2200 movs r2, #0 + 80055f6: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 8005540: f7fc fcc0 bl 8001ec4 - 8005544: 6138 str r0, [r7, #16] + 80055f8: f7fc fcc0 bl 8001f7c + 80055fc: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 8005546: e008 b.n 800555a + 80055fe: e008 b.n 8005612 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 8005548: f7fc fcbc bl 8001ec4 - 800554c: 4602 mov r2, r0 - 800554e: 693b ldr r3, [r7, #16] - 8005550: 1ad3 subs r3, r2, r3 - 8005552: 2b02 cmp r3, #2 - 8005554: d901 bls.n 800555a + 8005600: f7fc fcbc bl 8001f7c + 8005604: 4602 mov r2, r0 + 8005606: 693b ldr r3, [r7, #16] + 8005608: 1ad3 subs r3, r2, r3 + 800560a: 2b02 cmp r3, #2 + 800560c: d901 bls.n 8005612 { return HAL_TIMEOUT; - 8005556: 2303 movs r3, #3 - 8005558: e093 b.n 8005682 + 800560e: 2303 movs r3, #3 + 8005610: e093 b.n 800573a while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 800555a: 4b29 ldr r3, [pc, #164] @ (8005600 ) - 800555c: 681b ldr r3, [r3, #0] - 800555e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 8005562: 2b00 cmp r3, #0 - 8005564: d1f0 bne.n 8005548 + 8005612: 4b29 ldr r3, [pc, #164] @ (80056b8 ) + 8005614: 681b ldr r3, [r3, #0] + 8005616: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 800561a: 2b00 cmp r3, #0 + 800561c: d1f0 bne.n 8005600 } } /* Configure the main PLL clock source, multiplication and division factors. */ WRITE_REG(RCC->PLLCFGR, (RCC_OscInitStruct->PLL.PLLSource | \ - 8005566: 687b ldr r3, [r7, #4] - 8005568: 69da ldr r2, [r3, #28] - 800556a: 687b ldr r3, [r7, #4] - 800556c: 6a1b ldr r3, [r3, #32] - 800556e: 431a orrs r2, r3 - 8005570: 687b ldr r3, [r7, #4] - 8005572: 6a5b ldr r3, [r3, #36] @ 0x24 - 8005574: 019b lsls r3, r3, #6 - 8005576: 431a orrs r2, r3 - 8005578: 687b ldr r3, [r7, #4] - 800557a: 6a9b ldr r3, [r3, #40] @ 0x28 - 800557c: 085b lsrs r3, r3, #1 - 800557e: 3b01 subs r3, #1 - 8005580: 041b lsls r3, r3, #16 - 8005582: 431a orrs r2, r3 - 8005584: 687b ldr r3, [r7, #4] - 8005586: 6adb ldr r3, [r3, #44] @ 0x2c - 8005588: 061b lsls r3, r3, #24 - 800558a: 431a orrs r2, r3 - 800558c: 687b ldr r3, [r7, #4] - 800558e: 6b1b ldr r3, [r3, #48] @ 0x30 - 8005590: 071b lsls r3, r3, #28 - 8005592: 491b ldr r1, [pc, #108] @ (8005600 ) - 8005594: 4313 orrs r3, r2 - 8005596: 604b str r3, [r1, #4] + 800561e: 687b ldr r3, [r7, #4] + 8005620: 69da ldr r2, [r3, #28] + 8005622: 687b ldr r3, [r7, #4] + 8005624: 6a1b ldr r3, [r3, #32] + 8005626: 431a orrs r2, r3 + 8005628: 687b ldr r3, [r7, #4] + 800562a: 6a5b ldr r3, [r3, #36] @ 0x24 + 800562c: 019b lsls r3, r3, #6 + 800562e: 431a orrs r2, r3 + 8005630: 687b ldr r3, [r7, #4] + 8005632: 6a9b ldr r3, [r3, #40] @ 0x28 + 8005634: 085b lsrs r3, r3, #1 + 8005636: 3b01 subs r3, #1 + 8005638: 041b lsls r3, r3, #16 + 800563a: 431a orrs r2, r3 + 800563c: 687b ldr r3, [r7, #4] + 800563e: 6adb ldr r3, [r3, #44] @ 0x2c + 8005640: 061b lsls r3, r3, #24 + 8005642: 431a orrs r2, r3 + 8005644: 687b ldr r3, [r7, #4] + 8005646: 6b1b ldr r3, [r3, #48] @ 0x30 + 8005648: 071b lsls r3, r3, #28 + 800564a: 491b ldr r1, [pc, #108] @ (80056b8 ) + 800564c: 4313 orrs r3, r2 + 800564e: 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(); - 8005598: 4b1b ldr r3, [pc, #108] @ (8005608 ) - 800559a: 2201 movs r2, #1 - 800559c: 601a str r2, [r3, #0] + 8005650: 4b1b ldr r3, [pc, #108] @ (80056c0 ) + 8005652: 2201 movs r2, #1 + 8005654: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 800559e: f7fc fc91 bl 8001ec4 - 80055a2: 6138 str r0, [r7, #16] + 8005656: f7fc fc91 bl 8001f7c + 800565a: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80055a4: e008 b.n 80055b8 + 800565c: e008 b.n 8005670 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 80055a6: f7fc fc8d bl 8001ec4 - 80055aa: 4602 mov r2, r0 - 80055ac: 693b ldr r3, [r7, #16] - 80055ae: 1ad3 subs r3, r2, r3 - 80055b0: 2b02 cmp r3, #2 - 80055b2: d901 bls.n 80055b8 + 800565e: f7fc fc8d bl 8001f7c + 8005662: 4602 mov r2, r0 + 8005664: 693b ldr r3, [r7, #16] + 8005666: 1ad3 subs r3, r2, r3 + 8005668: 2b02 cmp r3, #2 + 800566a: d901 bls.n 8005670 { return HAL_TIMEOUT; - 80055b4: 2303 movs r3, #3 - 80055b6: e064 b.n 8005682 + 800566c: 2303 movs r3, #3 + 800566e: e064 b.n 800573a while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) - 80055b8: 4b11 ldr r3, [pc, #68] @ (8005600 ) - 80055ba: 681b ldr r3, [r3, #0] - 80055bc: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 80055c0: 2b00 cmp r3, #0 - 80055c2: d0f0 beq.n 80055a6 - 80055c4: e05c b.n 8005680 + 8005670: 4b11 ldr r3, [pc, #68] @ (80056b8 ) + 8005672: 681b ldr r3, [r3, #0] + 8005674: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 8005678: 2b00 cmp r3, #0 + 800567a: d0f0 beq.n 800565e + 800567c: e05c b.n 8005738 } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); - 80055c6: 4b10 ldr r3, [pc, #64] @ (8005608 ) - 80055c8: 2200 movs r2, #0 - 80055ca: 601a str r2, [r3, #0] + 800567e: 4b10 ldr r3, [pc, #64] @ (80056c0 ) + 8005680: 2200 movs r2, #0 + 8005682: 601a str r2, [r3, #0] /* Get Start Tick*/ tickstart = HAL_GetTick(); - 80055cc: f7fc fc7a bl 8001ec4 - 80055d0: 6138 str r0, [r7, #16] + 8005684: f7fc fc7a bl 8001f7c + 8005688: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 80055d2: e008 b.n 80055e6 + 800568a: e008 b.n 800569e { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) - 80055d4: f7fc fc76 bl 8001ec4 - 80055d8: 4602 mov r2, r0 - 80055da: 693b ldr r3, [r7, #16] - 80055dc: 1ad3 subs r3, r2, r3 - 80055de: 2b02 cmp r3, #2 - 80055e0: d901 bls.n 80055e6 + 800568c: f7fc fc76 bl 8001f7c + 8005690: 4602 mov r2, r0 + 8005692: 693b ldr r3, [r7, #16] + 8005694: 1ad3 subs r3, r2, r3 + 8005696: 2b02 cmp r3, #2 + 8005698: d901 bls.n 800569e { return HAL_TIMEOUT; - 80055e2: 2303 movs r3, #3 - 80055e4: e04d b.n 8005682 + 800569a: 2303 movs r3, #3 + 800569c: e04d b.n 800573a while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) - 80055e6: 4b06 ldr r3, [pc, #24] @ (8005600 ) - 80055e8: 681b ldr r3, [r3, #0] - 80055ea: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 - 80055ee: 2b00 cmp r3, #0 - 80055f0: d1f0 bne.n 80055d4 - 80055f2: e045 b.n 8005680 + 800569e: 4b06 ldr r3, [pc, #24] @ (80056b8 ) + 80056a0: 681b ldr r3, [r3, #0] + 80056a2: f003 7300 and.w r3, r3, #33554432 @ 0x2000000 + 80056a6: 2b00 cmp r3, #0 + 80056a8: d1f0 bne.n 800568c + 80056aa: e045 b.n 8005738 } } else { /* Check if there is a request to disable the PLL used as System clock source */ if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) - 80055f4: 687b ldr r3, [r7, #4] - 80055f6: 699b ldr r3, [r3, #24] - 80055f8: 2b01 cmp r3, #1 - 80055fa: d107 bne.n 800560c + 80056ac: 687b ldr r3, [r7, #4] + 80056ae: 699b ldr r3, [r3, #24] + 80056b0: 2b01 cmp r3, #1 + 80056b2: d107 bne.n 80056c4 { return HAL_ERROR; - 80055fc: 2301 movs r3, #1 - 80055fe: e040 b.n 8005682 - 8005600: 40023800 .word 0x40023800 - 8005604: 40007000 .word 0x40007000 - 8005608: 42470060 .word 0x42470060 + 80056b4: 2301 movs r3, #1 + 80056b6: e040 b.n 800573a + 80056b8: 40023800 .word 0x40023800 + 80056bc: 40007000 .word 0x40007000 + 80056c0: 42470060 .word 0x42470060 } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->PLLCFGR; - 800560c: 4b1f ldr r3, [pc, #124] @ (800568c ) - 800560e: 685b ldr r3, [r3, #4] - 8005610: 60fb str r3, [r7, #12] + 80056c4: 4b1f ldr r3, [pc, #124] @ (8005744 ) + 80056c6: 685b ldr r3, [r3, #4] + 80056c8: 60fb str r3, [r7, #12] #if defined (RCC_PLLCFGR_PLLR) if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 8005612: 687b ldr r3, [r7, #4] - 8005614: 699b ldr r3, [r3, #24] - 8005616: 2b01 cmp r3, #1 - 8005618: d030 beq.n 800567c + 80056ca: 687b ldr r3, [r7, #4] + 80056cc: 699b ldr r3, [r3, #24] + 80056ce: 2b01 cmp r3, #1 + 80056d0: d030 beq.n 8005734 (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 800561a: 68fb ldr r3, [r7, #12] - 800561c: f403 0280 and.w r2, r3, #4194304 @ 0x400000 - 8005620: 687b ldr r3, [r7, #4] - 8005622: 69db ldr r3, [r3, #28] + 80056d2: 68fb ldr r3, [r7, #12] + 80056d4: f403 0280 and.w r2, r3, #4194304 @ 0x400000 + 80056d8: 687b ldr r3, [r7, #4] + 80056da: 69db ldr r3, [r3, #28] if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) || - 8005624: 429a cmp r2, r3 - 8005626: d129 bne.n 800567c + 80056dc: 429a cmp r2, r3 + 80056de: d129 bne.n 8005734 (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || - 8005628: 68fb ldr r3, [r7, #12] - 800562a: f003 023f and.w r2, r3, #63 @ 0x3f - 800562e: 687b ldr r3, [r7, #4] - 8005630: 6a1b ldr r3, [r3, #32] + 80056e0: 68fb ldr r3, [r7, #12] + 80056e2: f003 023f and.w r2, r3, #63 @ 0x3f + 80056e6: 687b ldr r3, [r7, #4] + 80056e8: 6a1b ldr r3, [r3, #32] (READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || - 8005632: 429a cmp r2, r3 - 8005634: d122 bne.n 800567c + 80056ea: 429a cmp r2, r3 + 80056ec: d122 bne.n 8005734 (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || - 8005636: 68fa ldr r2, [r7, #12] - 8005638: f647 73c0 movw r3, #32704 @ 0x7fc0 - 800563c: 4013 ands r3, r2 - 800563e: 687a ldr r2, [r7, #4] - 8005640: 6a52 ldr r2, [r2, #36] @ 0x24 - 8005642: 0192 lsls r2, r2, #6 + 80056ee: 68fa ldr r2, [r7, #12] + 80056f0: f647 73c0 movw r3, #32704 @ 0x7fc0 + 80056f4: 4013 ands r3, r2 + 80056f6: 687a ldr r2, [r7, #4] + 80056f8: 6a52 ldr r2, [r2, #36] @ 0x24 + 80056fa: 0192 lsls r2, r2, #6 (READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) || - 8005644: 4293 cmp r3, r2 - 8005646: d119 bne.n 800567c + 80056fc: 4293 cmp r3, r2 + 80056fe: d119 bne.n 8005734 (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || - 8005648: 68fb ldr r3, [r7, #12] - 800564a: f403 3240 and.w r2, r3, #196608 @ 0x30000 - 800564e: 687b ldr r3, [r7, #4] - 8005650: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005652: 085b lsrs r3, r3, #1 - 8005654: 3b01 subs r3, #1 - 8005656: 041b lsls r3, r3, #16 + 8005700: 68fb ldr r3, [r7, #12] + 8005702: f403 3240 and.w r2, r3, #196608 @ 0x30000 + 8005706: 687b ldr r3, [r7, #4] + 8005708: 6a9b ldr r3, [r3, #40] @ 0x28 + 800570a: 085b lsrs r3, r3, #1 + 800570c: 3b01 subs r3, #1 + 800570e: 041b lsls r3, r3, #16 (READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) || - 8005658: 429a cmp r2, r3 - 800565a: d10f bne.n 800567c + 8005710: 429a cmp r2, r3 + 8005712: d10f bne.n 8005734 (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || - 800565c: 68fb ldr r3, [r7, #12] - 800565e: f003 6270 and.w r2, r3, #251658240 @ 0xf000000 - 8005662: 687b ldr r3, [r7, #4] - 8005664: 6adb ldr r3, [r3, #44] @ 0x2c - 8005666: 061b lsls r3, r3, #24 + 8005714: 68fb ldr r3, [r7, #12] + 8005716: f003 6270 and.w r2, r3, #251658240 @ 0xf000000 + 800571a: 687b ldr r3, [r7, #4] + 800571c: 6adb ldr r3, [r3, #44] @ 0x2c + 800571e: 061b lsls r3, r3, #24 (READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) || - 8005668: 429a cmp r2, r3 - 800566a: d107 bne.n 800567c + 8005720: 429a cmp r2, r3 + 8005722: d107 bne.n 8005734 (READ_BIT(pll_config, RCC_PLLCFGR_PLLR) != (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos))) - 800566c: 68fb ldr r3, [r7, #12] - 800566e: f003 42e0 and.w r2, r3, #1879048192 @ 0x70000000 - 8005672: 687b ldr r3, [r7, #4] - 8005674: 6b1b ldr r3, [r3, #48] @ 0x30 - 8005676: 071b lsls r3, r3, #28 + 8005724: 68fb ldr r3, [r7, #12] + 8005726: f003 42e0 and.w r2, r3, #1879048192 @ 0x70000000 + 800572a: 687b ldr r3, [r7, #4] + 800572c: 6b1b ldr r3, [r3, #48] @ 0x30 + 800572e: 071b lsls r3, r3, #28 (READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)) || - 8005678: 429a cmp r2, r3 - 800567a: d001 beq.n 8005680 + 8005730: 429a cmp r2, r3 + 8005732: d001 beq.n 8005738 (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; - 800567c: 2301 movs r3, #1 - 800567e: e000 b.n 8005682 + 8005734: 2301 movs r3, #1 + 8005736: e000 b.n 800573a } } } } return HAL_OK; - 8005680: 2300 movs r3, #0 + 8005738: 2300 movs r3, #0 } - 8005682: 4618 mov r0, r3 - 8005684: 3718 adds r7, #24 - 8005686: 46bd mov sp, r7 - 8005688: bd80 pop {r7, pc} - 800568a: bf00 nop - 800568c: 40023800 .word 0x40023800 + 800573a: 4618 mov r0, r3 + 800573c: 3718 adds r7, #24 + 800573e: 46bd mov sp, r7 + 8005740: bd80 pop {r7, pc} + 8005742: bf00 nop + 8005744: 40023800 .word 0x40023800 -08005690 : +08005748 : * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init() * @param htim TIM PWM handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim) { - 8005690: b580 push {r7, lr} - 8005692: b082 sub sp, #8 - 8005694: af00 add r7, sp, #0 - 8005696: 6078 str r0, [r7, #4] + 8005748: b580 push {r7, lr} + 800574a: b082 sub sp, #8 + 800574c: af00 add r7, sp, #0 + 800574e: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) - 8005698: 687b ldr r3, [r7, #4] - 800569a: 2b00 cmp r3, #0 - 800569c: d101 bne.n 80056a2 + 8005750: 687b ldr r3, [r7, #4] + 8005752: 2b00 cmp r3, #0 + 8005754: d101 bne.n 800575a { return HAL_ERROR; - 800569e: 2301 movs r3, #1 - 80056a0: e041 b.n 8005726 + 8005756: 2301 movs r3, #1 + 8005758: e041 b.n 80057de 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) - 80056a2: 687b ldr r3, [r7, #4] - 80056a4: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 80056a8: b2db uxtb r3, r3 - 80056aa: 2b00 cmp r3, #0 - 80056ac: d106 bne.n 80056bc + 800575a: 687b ldr r3, [r7, #4] + 800575c: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 8005760: b2db uxtb r3, r3 + 8005762: 2b00 cmp r3, #0 + 8005764: d106 bne.n 8005774 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; - 80056ae: 687b ldr r3, [r7, #4] - 80056b0: 2200 movs r2, #0 - 80056b2: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005766: 687b ldr r3, [r7, #4] + 8005768: 2200 movs r2, #0 + 800576a: f883 203c strb.w r2, [r3, #60] @ 0x3c } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->PWM_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ HAL_TIM_PWM_MspInit(htim); - 80056b6: 6878 ldr r0, [r7, #4] - 80056b8: f000 f839 bl 800572e + 800576e: 6878 ldr r0, [r7, #4] + 8005770: f000 f839 bl 80057e6 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; - 80056bc: 687b ldr r3, [r7, #4] - 80056be: 2202 movs r2, #2 - 80056c0: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8005774: 687b ldr r3, [r7, #4] + 8005776: 2202 movs r2, #2 + 8005778: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Init the base time for the PWM */ TIM_Base_SetConfig(htim->Instance, &htim->Init); - 80056c4: 687b ldr r3, [r7, #4] - 80056c6: 681a ldr r2, [r3, #0] - 80056c8: 687b ldr r3, [r7, #4] - 80056ca: 3304 adds r3, #4 - 80056cc: 4619 mov r1, r3 - 80056ce: 4610 mov r0, r2 - 80056d0: f000 fdae bl 8006230 + 800577c: 687b ldr r3, [r7, #4] + 800577e: 681a ldr r2, [r3, #0] + 8005780: 687b ldr r3, [r7, #4] + 8005782: 3304 adds r3, #4 + 8005784: 4619 mov r1, r3 + 8005786: 4610 mov r0, r2 + 8005788: f000 fdae bl 80062e8 /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - 80056d4: 687b ldr r3, [r7, #4] - 80056d6: 2201 movs r2, #1 - 80056d8: f883 2046 strb.w r2, [r3, #70] @ 0x46 + 800578c: 687b ldr r3, [r7, #4] + 800578e: 2201 movs r2, #1 + 8005790: f883 2046 strb.w r2, [r3, #70] @ 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 80056dc: 687b ldr r3, [r7, #4] - 80056de: 2201 movs r2, #1 - 80056e0: f883 203e strb.w r2, [r3, #62] @ 0x3e - 80056e4: 687b ldr r3, [r7, #4] - 80056e6: 2201 movs r2, #1 - 80056e8: f883 203f strb.w r2, [r3, #63] @ 0x3f - 80056ec: 687b ldr r3, [r7, #4] - 80056ee: 2201 movs r2, #1 - 80056f0: f883 2040 strb.w r2, [r3, #64] @ 0x40 - 80056f4: 687b ldr r3, [r7, #4] - 80056f6: 2201 movs r2, #1 - 80056f8: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8005794: 687b ldr r3, [r7, #4] + 8005796: 2201 movs r2, #1 + 8005798: f883 203e strb.w r2, [r3, #62] @ 0x3e + 800579c: 687b ldr r3, [r7, #4] + 800579e: 2201 movs r2, #1 + 80057a0: f883 203f strb.w r2, [r3, #63] @ 0x3f + 80057a4: 687b ldr r3, [r7, #4] + 80057a6: 2201 movs r2, #1 + 80057a8: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 80057ac: 687b ldr r3, [r7, #4] + 80057ae: 2201 movs r2, #1 + 80057b0: f883 2041 strb.w r2, [r3, #65] @ 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); - 80056fc: 687b ldr r3, [r7, #4] - 80056fe: 2201 movs r2, #1 - 8005700: f883 2042 strb.w r2, [r3, #66] @ 0x42 - 8005704: 687b ldr r3, [r7, #4] - 8005706: 2201 movs r2, #1 - 8005708: f883 2043 strb.w r2, [r3, #67] @ 0x43 - 800570c: 687b ldr r3, [r7, #4] - 800570e: 2201 movs r2, #1 - 8005710: f883 2044 strb.w r2, [r3, #68] @ 0x44 - 8005714: 687b ldr r3, [r7, #4] - 8005716: 2201 movs r2, #1 - 8005718: f883 2045 strb.w r2, [r3, #69] @ 0x45 + 80057b4: 687b ldr r3, [r7, #4] + 80057b6: 2201 movs r2, #1 + 80057b8: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80057bc: 687b ldr r3, [r7, #4] + 80057be: 2201 movs r2, #1 + 80057c0: f883 2043 strb.w r2, [r3, #67] @ 0x43 + 80057c4: 687b ldr r3, [r7, #4] + 80057c6: 2201 movs r2, #1 + 80057c8: f883 2044 strb.w r2, [r3, #68] @ 0x44 + 80057cc: 687b ldr r3, [r7, #4] + 80057ce: 2201 movs r2, #1 + 80057d0: f883 2045 strb.w r2, [r3, #69] @ 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; - 800571c: 687b ldr r3, [r7, #4] - 800571e: 2201 movs r2, #1 - 8005720: f883 203d strb.w r2, [r3, #61] @ 0x3d + 80057d4: 687b ldr r3, [r7, #4] + 80057d6: 2201 movs r2, #1 + 80057d8: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; - 8005724: 2300 movs r3, #0 + 80057dc: 2300 movs r3, #0 } - 8005726: 4618 mov r0, r3 - 8005728: 3708 adds r7, #8 - 800572a: 46bd mov sp, r7 - 800572c: bd80 pop {r7, pc} + 80057de: 4618 mov r0, r3 + 80057e0: 3708 adds r7, #8 + 80057e2: 46bd mov sp, r7 + 80057e4: bd80 pop {r7, pc} -0800572e : +080057e6 : * @brief Initializes the TIM PWM MSP. * @param htim TIM PWM handle * @retval None */ __weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim) { - 800572e: b480 push {r7} - 8005730: b083 sub sp, #12 - 8005732: af00 add r7, sp, #0 - 8005734: 6078 str r0, [r7, #4] + 80057e6: b480 push {r7} + 80057e8: b083 sub sp, #12 + 80057ea: af00 add r7, sp, #0 + 80057ec: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PWM_MspInit could be implemented in the user file */ } - 8005736: bf00 nop - 8005738: 370c adds r7, #12 - 800573a: 46bd mov sp, r7 - 800573c: f85d 7b04 ldr.w r7, [sp], #4 - 8005740: 4770 bx lr + 80057ee: bf00 nop + 80057f0: 370c adds r7, #12 + 80057f2: 46bd mov sp, r7 + 80057f4: f85d 7b04 ldr.w r7, [sp], #4 + 80057f8: 4770 bx lr ... -08005744 : +080057fc : * @param Length The length of data to be transferred from memory to TIM peripheral * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Start_DMA(TIM_HandleTypeDef *htim, uint32_t Channel, const uint32_t *pData, uint16_t Length) { - 8005744: b580 push {r7, lr} - 8005746: b086 sub sp, #24 - 8005748: af00 add r7, sp, #0 - 800574a: 60f8 str r0, [r7, #12] - 800574c: 60b9 str r1, [r7, #8] - 800574e: 607a str r2, [r7, #4] - 8005750: 807b strh r3, [r7, #2] + 80057fc: b580 push {r7, lr} + 80057fe: b086 sub sp, #24 + 8005800: af00 add r7, sp, #0 + 8005802: 60f8 str r0, [r7, #12] + 8005804: 60b9 str r1, [r7, #8] + 8005806: 607a str r2, [r7, #4] + 8005808: 807b strh r3, [r7, #2] HAL_StatusTypeDef status = HAL_OK; - 8005752: 2300 movs r3, #0 - 8005754: 75fb strb r3, [r7, #23] + 800580a: 2300 movs r3, #0 + 800580c: 75fb strb r3, [r7, #23] /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); /* Set the TIM channel state */ if (TIM_CHANNEL_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_BUSY) - 8005756: 68bb ldr r3, [r7, #8] - 8005758: 2b00 cmp r3, #0 - 800575a: d109 bne.n 8005770 - 800575c: 68fb ldr r3, [r7, #12] - 800575e: f893 303e ldrb.w r3, [r3, #62] @ 0x3e - 8005762: b2db uxtb r3, r3 - 8005764: 2b02 cmp r3, #2 - 8005766: bf0c ite eq - 8005768: 2301 moveq r3, #1 - 800576a: 2300 movne r3, #0 - 800576c: b2db uxtb r3, r3 - 800576e: e022 b.n 80057b6 - 8005770: 68bb ldr r3, [r7, #8] - 8005772: 2b04 cmp r3, #4 - 8005774: d109 bne.n 800578a - 8005776: 68fb ldr r3, [r7, #12] - 8005778: f893 303f ldrb.w r3, [r3, #63] @ 0x3f - 800577c: b2db uxtb r3, r3 - 800577e: 2b02 cmp r3, #2 - 8005780: bf0c ite eq - 8005782: 2301 moveq r3, #1 - 8005784: 2300 movne r3, #0 - 8005786: b2db uxtb r3, r3 - 8005788: e015 b.n 80057b6 - 800578a: 68bb ldr r3, [r7, #8] - 800578c: 2b08 cmp r3, #8 - 800578e: d109 bne.n 80057a4 - 8005790: 68fb ldr r3, [r7, #12] - 8005792: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 - 8005796: b2db uxtb r3, r3 - 8005798: 2b02 cmp r3, #2 - 800579a: bf0c ite eq - 800579c: 2301 moveq r3, #1 - 800579e: 2300 movne r3, #0 - 80057a0: b2db uxtb r3, r3 - 80057a2: e008 b.n 80057b6 - 80057a4: 68fb ldr r3, [r7, #12] - 80057a6: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 80057aa: b2db uxtb r3, r3 - 80057ac: 2b02 cmp r3, #2 - 80057ae: bf0c ite eq - 80057b0: 2301 moveq r3, #1 - 80057b2: 2300 movne r3, #0 - 80057b4: b2db uxtb r3, r3 - 80057b6: 2b00 cmp r3, #0 - 80057b8: d001 beq.n 80057be + 800580e: 68bb ldr r3, [r7, #8] + 8005810: 2b00 cmp r3, #0 + 8005812: d109 bne.n 8005828 + 8005814: 68fb ldr r3, [r7, #12] + 8005816: f893 303e ldrb.w r3, [r3, #62] @ 0x3e + 800581a: b2db uxtb r3, r3 + 800581c: 2b02 cmp r3, #2 + 800581e: bf0c ite eq + 8005820: 2301 moveq r3, #1 + 8005822: 2300 movne r3, #0 + 8005824: b2db uxtb r3, r3 + 8005826: e022 b.n 800586e + 8005828: 68bb ldr r3, [r7, #8] + 800582a: 2b04 cmp r3, #4 + 800582c: d109 bne.n 8005842 + 800582e: 68fb ldr r3, [r7, #12] + 8005830: f893 303f ldrb.w r3, [r3, #63] @ 0x3f + 8005834: b2db uxtb r3, r3 + 8005836: 2b02 cmp r3, #2 + 8005838: bf0c ite eq + 800583a: 2301 moveq r3, #1 + 800583c: 2300 movne r3, #0 + 800583e: b2db uxtb r3, r3 + 8005840: e015 b.n 800586e + 8005842: 68bb ldr r3, [r7, #8] + 8005844: 2b08 cmp r3, #8 + 8005846: d109 bne.n 800585c + 8005848: 68fb ldr r3, [r7, #12] + 800584a: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 + 800584e: b2db uxtb r3, r3 + 8005850: 2b02 cmp r3, #2 + 8005852: bf0c ite eq + 8005854: 2301 moveq r3, #1 + 8005856: 2300 movne r3, #0 + 8005858: b2db uxtb r3, r3 + 800585a: e008 b.n 800586e + 800585c: 68fb ldr r3, [r7, #12] + 800585e: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 8005862: b2db uxtb r3, r3 + 8005864: 2b02 cmp r3, #2 + 8005866: bf0c ite eq + 8005868: 2301 moveq r3, #1 + 800586a: 2300 movne r3, #0 + 800586c: b2db uxtb r3, r3 + 800586e: 2b00 cmp r3, #0 + 8005870: d001 beq.n 8005876 { return HAL_BUSY; - 80057ba: 2302 movs r3, #2 - 80057bc: e171 b.n 8005aa2 + 8005872: 2302 movs r3, #2 + 8005874: e171 b.n 8005b5a } else if (TIM_CHANNEL_STATE_GET(htim, Channel) == HAL_TIM_CHANNEL_STATE_READY) - 80057be: 68bb ldr r3, [r7, #8] - 80057c0: 2b00 cmp r3, #0 - 80057c2: d109 bne.n 80057d8 - 80057c4: 68fb ldr r3, [r7, #12] - 80057c6: f893 303e ldrb.w r3, [r3, #62] @ 0x3e - 80057ca: b2db uxtb r3, r3 - 80057cc: 2b01 cmp r3, #1 - 80057ce: bf0c ite eq - 80057d0: 2301 moveq r3, #1 - 80057d2: 2300 movne r3, #0 - 80057d4: b2db uxtb r3, r3 - 80057d6: e022 b.n 800581e - 80057d8: 68bb ldr r3, [r7, #8] - 80057da: 2b04 cmp r3, #4 - 80057dc: d109 bne.n 80057f2 - 80057de: 68fb ldr r3, [r7, #12] - 80057e0: f893 303f ldrb.w r3, [r3, #63] @ 0x3f - 80057e4: b2db uxtb r3, r3 - 80057e6: 2b01 cmp r3, #1 - 80057e8: bf0c ite eq - 80057ea: 2301 moveq r3, #1 - 80057ec: 2300 movne r3, #0 - 80057ee: b2db uxtb r3, r3 - 80057f0: e015 b.n 800581e - 80057f2: 68bb ldr r3, [r7, #8] - 80057f4: 2b08 cmp r3, #8 - 80057f6: d109 bne.n 800580c - 80057f8: 68fb ldr r3, [r7, #12] - 80057fa: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 - 80057fe: b2db uxtb r3, r3 - 8005800: 2b01 cmp r3, #1 - 8005802: bf0c ite eq - 8005804: 2301 moveq r3, #1 - 8005806: 2300 movne r3, #0 - 8005808: b2db uxtb r3, r3 - 800580a: e008 b.n 800581e - 800580c: 68fb ldr r3, [r7, #12] - 800580e: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 8005812: b2db uxtb r3, r3 - 8005814: 2b01 cmp r3, #1 - 8005816: bf0c ite eq - 8005818: 2301 moveq r3, #1 - 800581a: 2300 movne r3, #0 - 800581c: b2db uxtb r3, r3 - 800581e: 2b00 cmp r3, #0 - 8005820: d024 beq.n 800586c + 8005876: 68bb ldr r3, [r7, #8] + 8005878: 2b00 cmp r3, #0 + 800587a: d109 bne.n 8005890 + 800587c: 68fb ldr r3, [r7, #12] + 800587e: f893 303e ldrb.w r3, [r3, #62] @ 0x3e + 8005882: b2db uxtb r3, r3 + 8005884: 2b01 cmp r3, #1 + 8005886: bf0c ite eq + 8005888: 2301 moveq r3, #1 + 800588a: 2300 movne r3, #0 + 800588c: b2db uxtb r3, r3 + 800588e: e022 b.n 80058d6 + 8005890: 68bb ldr r3, [r7, #8] + 8005892: 2b04 cmp r3, #4 + 8005894: d109 bne.n 80058aa + 8005896: 68fb ldr r3, [r7, #12] + 8005898: f893 303f ldrb.w r3, [r3, #63] @ 0x3f + 800589c: b2db uxtb r3, r3 + 800589e: 2b01 cmp r3, #1 + 80058a0: bf0c ite eq + 80058a2: 2301 moveq r3, #1 + 80058a4: 2300 movne r3, #0 + 80058a6: b2db uxtb r3, r3 + 80058a8: e015 b.n 80058d6 + 80058aa: 68bb ldr r3, [r7, #8] + 80058ac: 2b08 cmp r3, #8 + 80058ae: d109 bne.n 80058c4 + 80058b0: 68fb ldr r3, [r7, #12] + 80058b2: f893 3040 ldrb.w r3, [r3, #64] @ 0x40 + 80058b6: b2db uxtb r3, r3 + 80058b8: 2b01 cmp r3, #1 + 80058ba: bf0c ite eq + 80058bc: 2301 moveq r3, #1 + 80058be: 2300 movne r3, #0 + 80058c0: b2db uxtb r3, r3 + 80058c2: e008 b.n 80058d6 + 80058c4: 68fb ldr r3, [r7, #12] + 80058c6: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 80058ca: b2db uxtb r3, r3 + 80058cc: 2b01 cmp r3, #1 + 80058ce: bf0c ite eq + 80058d0: 2301 moveq r3, #1 + 80058d2: 2300 movne r3, #0 + 80058d4: b2db uxtb r3, r3 + 80058d6: 2b00 cmp r3, #0 + 80058d8: d024 beq.n 8005924 { if ((pData == NULL) || (Length == 0U)) - 8005822: 687b ldr r3, [r7, #4] - 8005824: 2b00 cmp r3, #0 - 8005826: d002 beq.n 800582e - 8005828: 887b ldrh r3, [r7, #2] - 800582a: 2b00 cmp r3, #0 - 800582c: d101 bne.n 8005832 + 80058da: 687b ldr r3, [r7, #4] + 80058dc: 2b00 cmp r3, #0 + 80058de: d002 beq.n 80058e6 + 80058e0: 887b ldrh r3, [r7, #2] + 80058e2: 2b00 cmp r3, #0 + 80058e4: d101 bne.n 80058ea { return HAL_ERROR; - 800582e: 2301 movs r3, #1 - 8005830: e137 b.n 8005aa2 + 80058e6: 2301 movs r3, #1 + 80058e8: e137 b.n 8005b5a } else { TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); - 8005832: 68bb ldr r3, [r7, #8] - 8005834: 2b00 cmp r3, #0 - 8005836: d104 bne.n 8005842 - 8005838: 68fb ldr r3, [r7, #12] - 800583a: 2202 movs r2, #2 - 800583c: f883 203e strb.w r2, [r3, #62] @ 0x3e - 8005840: e016 b.n 8005870 - 8005842: 68bb ldr r3, [r7, #8] - 8005844: 2b04 cmp r3, #4 - 8005846: d104 bne.n 8005852 - 8005848: 68fb ldr r3, [r7, #12] - 800584a: 2202 movs r2, #2 - 800584c: f883 203f strb.w r2, [r3, #63] @ 0x3f - 8005850: e00e b.n 8005870 - 8005852: 68bb ldr r3, [r7, #8] - 8005854: 2b08 cmp r3, #8 - 8005856: d104 bne.n 8005862 - 8005858: 68fb ldr r3, [r7, #12] - 800585a: 2202 movs r2, #2 - 800585c: f883 2040 strb.w r2, [r3, #64] @ 0x40 - 8005860: e006 b.n 8005870 - 8005862: 68fb ldr r3, [r7, #12] - 8005864: 2202 movs r2, #2 - 8005866: f883 2041 strb.w r2, [r3, #65] @ 0x41 - 800586a: e001 b.n 8005870 + 80058ea: 68bb ldr r3, [r7, #8] + 80058ec: 2b00 cmp r3, #0 + 80058ee: d104 bne.n 80058fa + 80058f0: 68fb ldr r3, [r7, #12] + 80058f2: 2202 movs r2, #2 + 80058f4: f883 203e strb.w r2, [r3, #62] @ 0x3e + 80058f8: e016 b.n 8005928 + 80058fa: 68bb ldr r3, [r7, #8] + 80058fc: 2b04 cmp r3, #4 + 80058fe: d104 bne.n 800590a + 8005900: 68fb ldr r3, [r7, #12] + 8005902: 2202 movs r2, #2 + 8005904: f883 203f strb.w r2, [r3, #63] @ 0x3f + 8005908: e00e b.n 8005928 + 800590a: 68bb ldr r3, [r7, #8] + 800590c: 2b08 cmp r3, #8 + 800590e: d104 bne.n 800591a + 8005910: 68fb ldr r3, [r7, #12] + 8005912: 2202 movs r2, #2 + 8005914: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 8005918: e006 b.n 8005928 + 800591a: 68fb ldr r3, [r7, #12] + 800591c: 2202 movs r2, #2 + 800591e: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8005922: e001 b.n 8005928 } } else { return HAL_ERROR; - 800586c: 2301 movs r3, #1 - 800586e: e118 b.n 8005aa2 + 8005924: 2301 movs r3, #1 + 8005926: e118 b.n 8005b5a } switch (Channel) - 8005870: 68bb ldr r3, [r7, #8] - 8005872: 2b0c cmp r3, #12 - 8005874: f200 80ae bhi.w 80059d4 - 8005878: a201 add r2, pc, #4 @ (adr r2, 8005880 ) - 800587a: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800587e: bf00 nop - 8005880: 080058b5 .word 0x080058b5 - 8005884: 080059d5 .word 0x080059d5 - 8005888: 080059d5 .word 0x080059d5 - 800588c: 080059d5 .word 0x080059d5 - 8005890: 080058fd .word 0x080058fd - 8005894: 080059d5 .word 0x080059d5 - 8005898: 080059d5 .word 0x080059d5 - 800589c: 080059d5 .word 0x080059d5 - 80058a0: 08005945 .word 0x08005945 - 80058a4: 080059d5 .word 0x080059d5 - 80058a8: 080059d5 .word 0x080059d5 - 80058ac: 080059d5 .word 0x080059d5 - 80058b0: 0800598d .word 0x0800598d + 8005928: 68bb ldr r3, [r7, #8] + 800592a: 2b0c cmp r3, #12 + 800592c: f200 80ae bhi.w 8005a8c + 8005930: a201 add r2, pc, #4 @ (adr r2, 8005938 ) + 8005932: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8005936: bf00 nop + 8005938: 0800596d .word 0x0800596d + 800593c: 08005a8d .word 0x08005a8d + 8005940: 08005a8d .word 0x08005a8d + 8005944: 08005a8d .word 0x08005a8d + 8005948: 080059b5 .word 0x080059b5 + 800594c: 08005a8d .word 0x08005a8d + 8005950: 08005a8d .word 0x08005a8d + 8005954: 08005a8d .word 0x08005a8d + 8005958: 080059fd .word 0x080059fd + 800595c: 08005a8d .word 0x08005a8d + 8005960: 08005a8d .word 0x08005a8d + 8005964: 08005a8d .word 0x08005a8d + 8005968: 08005a45 .word 0x08005a45 { case TIM_CHANNEL_1: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC1]->XferCpltCallback = TIM_DMADelayPulseCplt; - 80058b4: 68fb ldr r3, [r7, #12] - 80058b6: 6a5b ldr r3, [r3, #36] @ 0x24 - 80058b8: 4a7c ldr r2, [pc, #496] @ (8005aac ) - 80058ba: 63da str r2, [r3, #60] @ 0x3c + 800596c: 68fb ldr r3, [r7, #12] + 800596e: 6a5b ldr r3, [r3, #36] @ 0x24 + 8005970: 4a7c ldr r2, [pc, #496] @ (8005b64 ) + 8005972: 63da str r2, [r3, #60] @ 0x3c htim->hdma[TIM_DMA_ID_CC1]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - 80058bc: 68fb ldr r3, [r7, #12] - 80058be: 6a5b ldr r3, [r3, #36] @ 0x24 - 80058c0: 4a7b ldr r2, [pc, #492] @ (8005ab0 ) - 80058c2: 641a str r2, [r3, #64] @ 0x40 + 8005974: 68fb ldr r3, [r7, #12] + 8005976: 6a5b ldr r3, [r3, #36] @ 0x24 + 8005978: 4a7b ldr r2, [pc, #492] @ (8005b68 ) + 800597a: 641a str r2, [r3, #64] @ 0x40 /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC1]->XferErrorCallback = TIM_DMAError ; - 80058c4: 68fb ldr r3, [r7, #12] - 80058c6: 6a5b ldr r3, [r3, #36] @ 0x24 - 80058c8: 4a7a ldr r2, [pc, #488] @ (8005ab4 ) - 80058ca: 64da str r2, [r3, #76] @ 0x4c + 800597c: 68fb ldr r3, [r7, #12] + 800597e: 6a5b ldr r3, [r3, #36] @ 0x24 + 8005980: 4a7a ldr r2, [pc, #488] @ (8005b6c ) + 8005982: 64da str r2, [r3, #76] @ 0x4c /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC1], (uint32_t)pData, (uint32_t)&htim->Instance->CCR1, - 80058cc: 68fb ldr r3, [r7, #12] - 80058ce: 6a58 ldr r0, [r3, #36] @ 0x24 - 80058d0: 6879 ldr r1, [r7, #4] - 80058d2: 68fb ldr r3, [r7, #12] - 80058d4: 681b ldr r3, [r3, #0] - 80058d6: 3334 adds r3, #52 @ 0x34 - 80058d8: 461a mov r2, r3 - 80058da: 887b ldrh r3, [r7, #2] - 80058dc: f7fc fce2 bl 80022a4 - 80058e0: 4603 mov r3, r0 - 80058e2: 2b00 cmp r3, #0 - 80058e4: d001 beq.n 80058ea + 8005984: 68fb ldr r3, [r7, #12] + 8005986: 6a58 ldr r0, [r3, #36] @ 0x24 + 8005988: 6879 ldr r1, [r7, #4] + 800598a: 68fb ldr r3, [r7, #12] + 800598c: 681b ldr r3, [r3, #0] + 800598e: 3334 adds r3, #52 @ 0x34 + 8005990: 461a mov r2, r3 + 8005992: 887b ldrh r3, [r7, #2] + 8005994: f7fc fce2 bl 800235c + 8005998: 4603 mov r3, r0 + 800599a: 2b00 cmp r3, #0 + 800599c: d001 beq.n 80059a2 Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; - 80058e6: 2301 movs r3, #1 - 80058e8: e0db b.n 8005aa2 + 800599e: 2301 movs r3, #1 + 80059a0: e0db b.n 8005b5a } /* Enable the TIM Capture/Compare 1 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC1); - 80058ea: 68fb ldr r3, [r7, #12] - 80058ec: 681b ldr r3, [r3, #0] - 80058ee: 68da ldr r2, [r3, #12] - 80058f0: 68fb ldr r3, [r7, #12] - 80058f2: 681b ldr r3, [r3, #0] - 80058f4: f442 7200 orr.w r2, r2, #512 @ 0x200 - 80058f8: 60da str r2, [r3, #12] + 80059a2: 68fb ldr r3, [r7, #12] + 80059a4: 681b ldr r3, [r3, #0] + 80059a6: 68da ldr r2, [r3, #12] + 80059a8: 68fb ldr r3, [r7, #12] + 80059aa: 681b ldr r3, [r3, #0] + 80059ac: f442 7200 orr.w r2, r2, #512 @ 0x200 + 80059b0: 60da str r2, [r3, #12] break; - 80058fa: e06e b.n 80059da + 80059b2: e06e b.n 8005a92 } case TIM_CHANNEL_2: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC2]->XferCpltCallback = TIM_DMADelayPulseCplt; - 80058fc: 68fb ldr r3, [r7, #12] - 80058fe: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005900: 4a6a ldr r2, [pc, #424] @ (8005aac ) - 8005902: 63da str r2, [r3, #60] @ 0x3c + 80059b4: 68fb ldr r3, [r7, #12] + 80059b6: 6a9b ldr r3, [r3, #40] @ 0x28 + 80059b8: 4a6a ldr r2, [pc, #424] @ (8005b64 ) + 80059ba: 63da str r2, [r3, #60] @ 0x3c htim->hdma[TIM_DMA_ID_CC2]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - 8005904: 68fb ldr r3, [r7, #12] - 8005906: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005908: 4a69 ldr r2, [pc, #420] @ (8005ab0 ) - 800590a: 641a str r2, [r3, #64] @ 0x40 + 80059bc: 68fb ldr r3, [r7, #12] + 80059be: 6a9b ldr r3, [r3, #40] @ 0x28 + 80059c0: 4a69 ldr r2, [pc, #420] @ (8005b68 ) + 80059c2: 641a str r2, [r3, #64] @ 0x40 /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC2]->XferErrorCallback = TIM_DMAError ; - 800590c: 68fb ldr r3, [r7, #12] - 800590e: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005910: 4a68 ldr r2, [pc, #416] @ (8005ab4 ) - 8005912: 64da str r2, [r3, #76] @ 0x4c + 80059c4: 68fb ldr r3, [r7, #12] + 80059c6: 6a9b ldr r3, [r3, #40] @ 0x28 + 80059c8: 4a68 ldr r2, [pc, #416] @ (8005b6c ) + 80059ca: 64da str r2, [r3, #76] @ 0x4c /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC2], (uint32_t)pData, (uint32_t)&htim->Instance->CCR2, - 8005914: 68fb ldr r3, [r7, #12] - 8005916: 6a98 ldr r0, [r3, #40] @ 0x28 - 8005918: 6879 ldr r1, [r7, #4] - 800591a: 68fb ldr r3, [r7, #12] - 800591c: 681b ldr r3, [r3, #0] - 800591e: 3338 adds r3, #56 @ 0x38 - 8005920: 461a mov r2, r3 - 8005922: 887b ldrh r3, [r7, #2] - 8005924: f7fc fcbe bl 80022a4 - 8005928: 4603 mov r3, r0 - 800592a: 2b00 cmp r3, #0 - 800592c: d001 beq.n 8005932 + 80059cc: 68fb ldr r3, [r7, #12] + 80059ce: 6a98 ldr r0, [r3, #40] @ 0x28 + 80059d0: 6879 ldr r1, [r7, #4] + 80059d2: 68fb ldr r3, [r7, #12] + 80059d4: 681b ldr r3, [r3, #0] + 80059d6: 3338 adds r3, #56 @ 0x38 + 80059d8: 461a mov r2, r3 + 80059da: 887b ldrh r3, [r7, #2] + 80059dc: f7fc fcbe bl 800235c + 80059e0: 4603 mov r3, r0 + 80059e2: 2b00 cmp r3, #0 + 80059e4: d001 beq.n 80059ea Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; - 800592e: 2301 movs r3, #1 - 8005930: e0b7 b.n 8005aa2 + 80059e6: 2301 movs r3, #1 + 80059e8: e0b7 b.n 8005b5a } /* Enable the TIM Capture/Compare 2 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC2); - 8005932: 68fb ldr r3, [r7, #12] - 8005934: 681b ldr r3, [r3, #0] - 8005936: 68da ldr r2, [r3, #12] - 8005938: 68fb ldr r3, [r7, #12] - 800593a: 681b ldr r3, [r3, #0] - 800593c: f442 6280 orr.w r2, r2, #1024 @ 0x400 - 8005940: 60da str r2, [r3, #12] + 80059ea: 68fb ldr r3, [r7, #12] + 80059ec: 681b ldr r3, [r3, #0] + 80059ee: 68da ldr r2, [r3, #12] + 80059f0: 68fb ldr r3, [r7, #12] + 80059f2: 681b ldr r3, [r3, #0] + 80059f4: f442 6280 orr.w r2, r2, #1024 @ 0x400 + 80059f8: 60da str r2, [r3, #12] break; - 8005942: e04a b.n 80059da + 80059fa: e04a b.n 8005a92 } case TIM_CHANNEL_3: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC3]->XferCpltCallback = TIM_DMADelayPulseCplt; - 8005944: 68fb ldr r3, [r7, #12] - 8005946: 6adb ldr r3, [r3, #44] @ 0x2c - 8005948: 4a58 ldr r2, [pc, #352] @ (8005aac ) - 800594a: 63da str r2, [r3, #60] @ 0x3c + 80059fc: 68fb ldr r3, [r7, #12] + 80059fe: 6adb ldr r3, [r3, #44] @ 0x2c + 8005a00: 4a58 ldr r2, [pc, #352] @ (8005b64 ) + 8005a02: 63da str r2, [r3, #60] @ 0x3c htim->hdma[TIM_DMA_ID_CC3]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - 800594c: 68fb ldr r3, [r7, #12] - 800594e: 6adb ldr r3, [r3, #44] @ 0x2c - 8005950: 4a57 ldr r2, [pc, #348] @ (8005ab0 ) - 8005952: 641a str r2, [r3, #64] @ 0x40 + 8005a04: 68fb ldr r3, [r7, #12] + 8005a06: 6adb ldr r3, [r3, #44] @ 0x2c + 8005a08: 4a57 ldr r2, [pc, #348] @ (8005b68 ) + 8005a0a: 641a str r2, [r3, #64] @ 0x40 /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC3]->XferErrorCallback = TIM_DMAError ; - 8005954: 68fb ldr r3, [r7, #12] - 8005956: 6adb ldr r3, [r3, #44] @ 0x2c - 8005958: 4a56 ldr r2, [pc, #344] @ (8005ab4 ) - 800595a: 64da str r2, [r3, #76] @ 0x4c + 8005a0c: 68fb ldr r3, [r7, #12] + 8005a0e: 6adb ldr r3, [r3, #44] @ 0x2c + 8005a10: 4a56 ldr r2, [pc, #344] @ (8005b6c ) + 8005a12: 64da str r2, [r3, #76] @ 0x4c /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC3], (uint32_t)pData, (uint32_t)&htim->Instance->CCR3, - 800595c: 68fb ldr r3, [r7, #12] - 800595e: 6ad8 ldr r0, [r3, #44] @ 0x2c - 8005960: 6879 ldr r1, [r7, #4] - 8005962: 68fb ldr r3, [r7, #12] - 8005964: 681b ldr r3, [r3, #0] - 8005966: 333c adds r3, #60 @ 0x3c - 8005968: 461a mov r2, r3 - 800596a: 887b ldrh r3, [r7, #2] - 800596c: f7fc fc9a bl 80022a4 - 8005970: 4603 mov r3, r0 - 8005972: 2b00 cmp r3, #0 - 8005974: d001 beq.n 800597a + 8005a14: 68fb ldr r3, [r7, #12] + 8005a16: 6ad8 ldr r0, [r3, #44] @ 0x2c + 8005a18: 6879 ldr r1, [r7, #4] + 8005a1a: 68fb ldr r3, [r7, #12] + 8005a1c: 681b ldr r3, [r3, #0] + 8005a1e: 333c adds r3, #60 @ 0x3c + 8005a20: 461a mov r2, r3 + 8005a22: 887b ldrh r3, [r7, #2] + 8005a24: f7fc fc9a bl 800235c + 8005a28: 4603 mov r3, r0 + 8005a2a: 2b00 cmp r3, #0 + 8005a2c: d001 beq.n 8005a32 Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; - 8005976: 2301 movs r3, #1 - 8005978: e093 b.n 8005aa2 + 8005a2e: 2301 movs r3, #1 + 8005a30: e093 b.n 8005b5a } /* Enable the TIM Output Capture/Compare 3 request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC3); - 800597a: 68fb ldr r3, [r7, #12] - 800597c: 681b ldr r3, [r3, #0] - 800597e: 68da ldr r2, [r3, #12] - 8005980: 68fb ldr r3, [r7, #12] - 8005982: 681b ldr r3, [r3, #0] - 8005984: f442 6200 orr.w r2, r2, #2048 @ 0x800 - 8005988: 60da str r2, [r3, #12] + 8005a32: 68fb ldr r3, [r7, #12] + 8005a34: 681b ldr r3, [r3, #0] + 8005a36: 68da ldr r2, [r3, #12] + 8005a38: 68fb ldr r3, [r7, #12] + 8005a3a: 681b ldr r3, [r3, #0] + 8005a3c: f442 6200 orr.w r2, r2, #2048 @ 0x800 + 8005a40: 60da str r2, [r3, #12] break; - 800598a: e026 b.n 80059da + 8005a42: e026 b.n 8005a92 } case TIM_CHANNEL_4: { /* Set the DMA compare callbacks */ htim->hdma[TIM_DMA_ID_CC4]->XferCpltCallback = TIM_DMADelayPulseCplt; - 800598c: 68fb ldr r3, [r7, #12] - 800598e: 6b1b ldr r3, [r3, #48] @ 0x30 - 8005990: 4a46 ldr r2, [pc, #280] @ (8005aac ) - 8005992: 63da str r2, [r3, #60] @ 0x3c + 8005a44: 68fb ldr r3, [r7, #12] + 8005a46: 6b1b ldr r3, [r3, #48] @ 0x30 + 8005a48: 4a46 ldr r2, [pc, #280] @ (8005b64 ) + 8005a4a: 63da str r2, [r3, #60] @ 0x3c htim->hdma[TIM_DMA_ID_CC4]->XferHalfCpltCallback = TIM_DMADelayPulseHalfCplt; - 8005994: 68fb ldr r3, [r7, #12] - 8005996: 6b1b ldr r3, [r3, #48] @ 0x30 - 8005998: 4a45 ldr r2, [pc, #276] @ (8005ab0 ) - 800599a: 641a str r2, [r3, #64] @ 0x40 + 8005a4c: 68fb ldr r3, [r7, #12] + 8005a4e: 6b1b ldr r3, [r3, #48] @ 0x30 + 8005a50: 4a45 ldr r2, [pc, #276] @ (8005b68 ) + 8005a52: 641a str r2, [r3, #64] @ 0x40 /* Set the DMA error callback */ htim->hdma[TIM_DMA_ID_CC4]->XferErrorCallback = TIM_DMAError ; - 800599c: 68fb ldr r3, [r7, #12] - 800599e: 6b1b ldr r3, [r3, #48] @ 0x30 - 80059a0: 4a44 ldr r2, [pc, #272] @ (8005ab4 ) - 80059a2: 64da str r2, [r3, #76] @ 0x4c + 8005a54: 68fb ldr r3, [r7, #12] + 8005a56: 6b1b ldr r3, [r3, #48] @ 0x30 + 8005a58: 4a44 ldr r2, [pc, #272] @ (8005b6c ) + 8005a5a: 64da str r2, [r3, #76] @ 0x4c /* Enable the DMA stream */ if (HAL_DMA_Start_IT(htim->hdma[TIM_DMA_ID_CC4], (uint32_t)pData, (uint32_t)&htim->Instance->CCR4, - 80059a4: 68fb ldr r3, [r7, #12] - 80059a6: 6b18 ldr r0, [r3, #48] @ 0x30 - 80059a8: 6879 ldr r1, [r7, #4] - 80059aa: 68fb ldr r3, [r7, #12] - 80059ac: 681b ldr r3, [r3, #0] - 80059ae: 3340 adds r3, #64 @ 0x40 - 80059b0: 461a mov r2, r3 - 80059b2: 887b ldrh r3, [r7, #2] - 80059b4: f7fc fc76 bl 80022a4 - 80059b8: 4603 mov r3, r0 - 80059ba: 2b00 cmp r3, #0 - 80059bc: d001 beq.n 80059c2 + 8005a5c: 68fb ldr r3, [r7, #12] + 8005a5e: 6b18 ldr r0, [r3, #48] @ 0x30 + 8005a60: 6879 ldr r1, [r7, #4] + 8005a62: 68fb ldr r3, [r7, #12] + 8005a64: 681b ldr r3, [r3, #0] + 8005a66: 3340 adds r3, #64 @ 0x40 + 8005a68: 461a mov r2, r3 + 8005a6a: 887b ldrh r3, [r7, #2] + 8005a6c: f7fc fc76 bl 800235c + 8005a70: 4603 mov r3, r0 + 8005a72: 2b00 cmp r3, #0 + 8005a74: d001 beq.n 8005a7a Length) != HAL_OK) { /* Return error status */ return HAL_ERROR; - 80059be: 2301 movs r3, #1 - 80059c0: e06f b.n 8005aa2 + 8005a76: 2301 movs r3, #1 + 8005a78: e06f b.n 8005b5a } /* Enable the TIM Capture/Compare 4 DMA request */ __HAL_TIM_ENABLE_DMA(htim, TIM_DMA_CC4); - 80059c2: 68fb ldr r3, [r7, #12] - 80059c4: 681b ldr r3, [r3, #0] - 80059c6: 68da ldr r2, [r3, #12] - 80059c8: 68fb ldr r3, [r7, #12] - 80059ca: 681b ldr r3, [r3, #0] - 80059cc: f442 5280 orr.w r2, r2, #4096 @ 0x1000 - 80059d0: 60da str r2, [r3, #12] + 8005a7a: 68fb ldr r3, [r7, #12] + 8005a7c: 681b ldr r3, [r3, #0] + 8005a7e: 68da ldr r2, [r3, #12] + 8005a80: 68fb ldr r3, [r7, #12] + 8005a82: 681b ldr r3, [r3, #0] + 8005a84: f442 5280 orr.w r2, r2, #4096 @ 0x1000 + 8005a88: 60da str r2, [r3, #12] break; - 80059d2: e002 b.n 80059da + 8005a8a: e002 b.n 8005a92 } default: status = HAL_ERROR; - 80059d4: 2301 movs r3, #1 - 80059d6: 75fb strb r3, [r7, #23] + 8005a8c: 2301 movs r3, #1 + 8005a8e: 75fb strb r3, [r7, #23] break; - 80059d8: bf00 nop + 8005a90: bf00 nop } if (status == HAL_OK) - 80059da: 7dfb ldrb r3, [r7, #23] - 80059dc: 2b00 cmp r3, #0 - 80059de: d15f bne.n 8005aa0 + 8005a92: 7dfb ldrb r3, [r7, #23] + 8005a94: 2b00 cmp r3, #0 + 8005a96: d15f bne.n 8005b58 { /* Enable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); - 80059e0: 68fb ldr r3, [r7, #12] - 80059e2: 681b ldr r3, [r3, #0] - 80059e4: 2201 movs r2, #1 - 80059e6: 68b9 ldr r1, [r7, #8] - 80059e8: 4618 mov r0, r3 - 80059ea: f000 fe77 bl 80066dc + 8005a98: 68fb ldr r3, [r7, #12] + 8005a9a: 681b ldr r3, [r3, #0] + 8005a9c: 2201 movs r2, #1 + 8005a9e: 68b9 ldr r1, [r7, #8] + 8005aa0: 4618 mov r0, r3 + 8005aa2: f000 fe77 bl 8006794 if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - 80059ee: 68fb ldr r3, [r7, #12] - 80059f0: 681b ldr r3, [r3, #0] - 80059f2: 4a31 ldr r2, [pc, #196] @ (8005ab8 ) - 80059f4: 4293 cmp r3, r2 - 80059f6: d004 beq.n 8005a02 - 80059f8: 68fb ldr r3, [r7, #12] - 80059fa: 681b ldr r3, [r3, #0] - 80059fc: 4a2f ldr r2, [pc, #188] @ (8005abc ) - 80059fe: 4293 cmp r3, r2 - 8005a00: d101 bne.n 8005a06 - 8005a02: 2301 movs r3, #1 - 8005a04: e000 b.n 8005a08 - 8005a06: 2300 movs r3, #0 - 8005a08: 2b00 cmp r3, #0 - 8005a0a: d007 beq.n 8005a1c + 8005aa6: 68fb ldr r3, [r7, #12] + 8005aa8: 681b ldr r3, [r3, #0] + 8005aaa: 4a31 ldr r2, [pc, #196] @ (8005b70 ) + 8005aac: 4293 cmp r3, r2 + 8005aae: d004 beq.n 8005aba + 8005ab0: 68fb ldr r3, [r7, #12] + 8005ab2: 681b ldr r3, [r3, #0] + 8005ab4: 4a2f ldr r2, [pc, #188] @ (8005b74 ) + 8005ab6: 4293 cmp r3, r2 + 8005ab8: d101 bne.n 8005abe + 8005aba: 2301 movs r3, #1 + 8005abc: e000 b.n 8005ac0 + 8005abe: 2300 movs r3, #0 + 8005ac0: 2b00 cmp r3, #0 + 8005ac2: d007 beq.n 8005ad4 { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); - 8005a0c: 68fb ldr r3, [r7, #12] - 8005a0e: 681b ldr r3, [r3, #0] - 8005a10: 6c5a ldr r2, [r3, #68] @ 0x44 - 8005a12: 68fb ldr r3, [r7, #12] - 8005a14: 681b ldr r3, [r3, #0] - 8005a16: f442 4200 orr.w r2, r2, #32768 @ 0x8000 - 8005a1a: 645a str r2, [r3, #68] @ 0x44 + 8005ac4: 68fb ldr r3, [r7, #12] + 8005ac6: 681b ldr r3, [r3, #0] + 8005ac8: 6c5a ldr r2, [r3, #68] @ 0x44 + 8005aca: 68fb ldr r3, [r7, #12] + 8005acc: 681b ldr r3, [r3, #0] + 8005ace: f442 4200 orr.w r2, r2, #32768 @ 0x8000 + 8005ad2: 645a str r2, [r3, #68] @ 0x44 } /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - 8005a1c: 68fb ldr r3, [r7, #12] - 8005a1e: 681b ldr r3, [r3, #0] - 8005a20: 4a25 ldr r2, [pc, #148] @ (8005ab8 ) - 8005a22: 4293 cmp r3, r2 - 8005a24: d022 beq.n 8005a6c - 8005a26: 68fb ldr r3, [r7, #12] - 8005a28: 681b ldr r3, [r3, #0] - 8005a2a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8005a2e: d01d beq.n 8005a6c - 8005a30: 68fb ldr r3, [r7, #12] - 8005a32: 681b ldr r3, [r3, #0] - 8005a34: 4a22 ldr r2, [pc, #136] @ (8005ac0 ) - 8005a36: 4293 cmp r3, r2 - 8005a38: d018 beq.n 8005a6c - 8005a3a: 68fb ldr r3, [r7, #12] - 8005a3c: 681b ldr r3, [r3, #0] - 8005a3e: 4a21 ldr r2, [pc, #132] @ (8005ac4 ) - 8005a40: 4293 cmp r3, r2 - 8005a42: d013 beq.n 8005a6c - 8005a44: 68fb ldr r3, [r7, #12] - 8005a46: 681b ldr r3, [r3, #0] - 8005a48: 4a1f ldr r2, [pc, #124] @ (8005ac8 ) - 8005a4a: 4293 cmp r3, r2 - 8005a4c: d00e beq.n 8005a6c - 8005a4e: 68fb ldr r3, [r7, #12] - 8005a50: 681b ldr r3, [r3, #0] - 8005a52: 4a1a ldr r2, [pc, #104] @ (8005abc ) - 8005a54: 4293 cmp r3, r2 - 8005a56: d009 beq.n 8005a6c - 8005a58: 68fb ldr r3, [r7, #12] - 8005a5a: 681b ldr r3, [r3, #0] - 8005a5c: 4a1b ldr r2, [pc, #108] @ (8005acc ) - 8005a5e: 4293 cmp r3, r2 - 8005a60: d004 beq.n 8005a6c - 8005a62: 68fb ldr r3, [r7, #12] - 8005a64: 681b ldr r3, [r3, #0] - 8005a66: 4a1a ldr r2, [pc, #104] @ (8005ad0 ) - 8005a68: 4293 cmp r3, r2 - 8005a6a: d111 bne.n 8005a90 + 8005ad4: 68fb ldr r3, [r7, #12] + 8005ad6: 681b ldr r3, [r3, #0] + 8005ad8: 4a25 ldr r2, [pc, #148] @ (8005b70 ) + 8005ada: 4293 cmp r3, r2 + 8005adc: d022 beq.n 8005b24 + 8005ade: 68fb ldr r3, [r7, #12] + 8005ae0: 681b ldr r3, [r3, #0] + 8005ae2: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8005ae6: d01d beq.n 8005b24 + 8005ae8: 68fb ldr r3, [r7, #12] + 8005aea: 681b ldr r3, [r3, #0] + 8005aec: 4a22 ldr r2, [pc, #136] @ (8005b78 ) + 8005aee: 4293 cmp r3, r2 + 8005af0: d018 beq.n 8005b24 + 8005af2: 68fb ldr r3, [r7, #12] + 8005af4: 681b ldr r3, [r3, #0] + 8005af6: 4a21 ldr r2, [pc, #132] @ (8005b7c ) + 8005af8: 4293 cmp r3, r2 + 8005afa: d013 beq.n 8005b24 + 8005afc: 68fb ldr r3, [r7, #12] + 8005afe: 681b ldr r3, [r3, #0] + 8005b00: 4a1f ldr r2, [pc, #124] @ (8005b80 ) + 8005b02: 4293 cmp r3, r2 + 8005b04: d00e beq.n 8005b24 + 8005b06: 68fb ldr r3, [r7, #12] + 8005b08: 681b ldr r3, [r3, #0] + 8005b0a: 4a1a ldr r2, [pc, #104] @ (8005b74 ) + 8005b0c: 4293 cmp r3, r2 + 8005b0e: d009 beq.n 8005b24 + 8005b10: 68fb ldr r3, [r7, #12] + 8005b12: 681b ldr r3, [r3, #0] + 8005b14: 4a1b ldr r2, [pc, #108] @ (8005b84 ) + 8005b16: 4293 cmp r3, r2 + 8005b18: d004 beq.n 8005b24 + 8005b1a: 68fb ldr r3, [r7, #12] + 8005b1c: 681b ldr r3, [r3, #0] + 8005b1e: 4a1a ldr r2, [pc, #104] @ (8005b88 ) + 8005b20: 4293 cmp r3, r2 + 8005b22: d111 bne.n 8005b48 { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; - 8005a6c: 68fb ldr r3, [r7, #12] - 8005a6e: 681b ldr r3, [r3, #0] - 8005a70: 689b ldr r3, [r3, #8] - 8005a72: f003 0307 and.w r3, r3, #7 - 8005a76: 613b str r3, [r7, #16] + 8005b24: 68fb ldr r3, [r7, #12] + 8005b26: 681b ldr r3, [r3, #0] + 8005b28: 689b ldr r3, [r3, #8] + 8005b2a: f003 0307 and.w r3, r3, #7 + 8005b2e: 613b str r3, [r7, #16] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - 8005a78: 693b ldr r3, [r7, #16] - 8005a7a: 2b06 cmp r3, #6 - 8005a7c: d010 beq.n 8005aa0 + 8005b30: 693b ldr r3, [r7, #16] + 8005b32: 2b06 cmp r3, #6 + 8005b34: d010 beq.n 8005b58 { __HAL_TIM_ENABLE(htim); - 8005a7e: 68fb ldr r3, [r7, #12] - 8005a80: 681b ldr r3, [r3, #0] - 8005a82: 681a ldr r2, [r3, #0] - 8005a84: 68fb ldr r3, [r7, #12] - 8005a86: 681b ldr r3, [r3, #0] - 8005a88: f042 0201 orr.w r2, r2, #1 - 8005a8c: 601a str r2, [r3, #0] + 8005b36: 68fb ldr r3, [r7, #12] + 8005b38: 681b ldr r3, [r3, #0] + 8005b3a: 681a ldr r2, [r3, #0] + 8005b3c: 68fb ldr r3, [r7, #12] + 8005b3e: 681b ldr r3, [r3, #0] + 8005b40: f042 0201 orr.w r2, r2, #1 + 8005b44: 601a str r2, [r3, #0] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) - 8005a8e: e007 b.n 8005aa0 + 8005b46: e007 b.n 8005b58 } } else { __HAL_TIM_ENABLE(htim); - 8005a90: 68fb ldr r3, [r7, #12] - 8005a92: 681b ldr r3, [r3, #0] - 8005a94: 681a ldr r2, [r3, #0] - 8005a96: 68fb ldr r3, [r7, #12] - 8005a98: 681b ldr r3, [r3, #0] - 8005a9a: f042 0201 orr.w r2, r2, #1 - 8005a9e: 601a str r2, [r3, #0] + 8005b48: 68fb ldr r3, [r7, #12] + 8005b4a: 681b ldr r3, [r3, #0] + 8005b4c: 681a ldr r2, [r3, #0] + 8005b4e: 68fb ldr r3, [r7, #12] + 8005b50: 681b ldr r3, [r3, #0] + 8005b52: f042 0201 orr.w r2, r2, #1 + 8005b56: 601a str r2, [r3, #0] } } /* Return function status */ return status; - 8005aa0: 7dfb ldrb r3, [r7, #23] + 8005b58: 7dfb ldrb r3, [r7, #23] } - 8005aa2: 4618 mov r0, r3 - 8005aa4: 3718 adds r7, #24 - 8005aa6: 46bd mov sp, r7 - 8005aa8: bd80 pop {r7, pc} - 8005aaa: bf00 nop - 8005aac: 0800611f .word 0x0800611f - 8005ab0: 080061c7 .word 0x080061c7 - 8005ab4: 0800608d .word 0x0800608d - 8005ab8: 40010000 .word 0x40010000 - 8005abc: 40010400 .word 0x40010400 - 8005ac0: 40000400 .word 0x40000400 - 8005ac4: 40000800 .word 0x40000800 - 8005ac8: 40000c00 .word 0x40000c00 - 8005acc: 40014000 .word 0x40014000 - 8005ad0: 40001800 .word 0x40001800 + 8005b5a: 4618 mov r0, r3 + 8005b5c: 3718 adds r7, #24 + 8005b5e: 46bd mov sp, r7 + 8005b60: bd80 pop {r7, pc} + 8005b62: bf00 nop + 8005b64: 080061d7 .word 0x080061d7 + 8005b68: 0800627f .word 0x0800627f + 8005b6c: 08006145 .word 0x08006145 + 8005b70: 40010000 .word 0x40010000 + 8005b74: 40010400 .word 0x40010400 + 8005b78: 40000400 .word 0x40000400 + 8005b7c: 40000800 .word 0x40000800 + 8005b80: 40000c00 .word 0x40000c00 + 8005b84: 40014000 .word 0x40014000 + 8005b88: 40001800 .word 0x40001800 -08005ad4 : +08005b8c : * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Stop_DMA(TIM_HandleTypeDef *htim, uint32_t Channel) { - 8005ad4: b580 push {r7, lr} - 8005ad6: b084 sub sp, #16 - 8005ad8: af00 add r7, sp, #0 - 8005ada: 6078 str r0, [r7, #4] - 8005adc: 6039 str r1, [r7, #0] + 8005b8c: b580 push {r7, lr} + 8005b8e: b084 sub sp, #16 + 8005b90: af00 add r7, sp, #0 + 8005b92: 6078 str r0, [r7, #4] + 8005b94: 6039 str r1, [r7, #0] HAL_StatusTypeDef status = HAL_OK; - 8005ade: 2300 movs r3, #0 - 8005ae0: 73fb strb r3, [r7, #15] + 8005b96: 2300 movs r3, #0 + 8005b98: 73fb strb r3, [r7, #15] /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); switch (Channel) - 8005ae2: 683b ldr r3, [r7, #0] - 8005ae4: 2b0c cmp r3, #12 - 8005ae6: d855 bhi.n 8005b94 - 8005ae8: a201 add r2, pc, #4 @ (adr r2, 8005af0 ) - 8005aea: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8005aee: bf00 nop - 8005af0: 08005b25 .word 0x08005b25 - 8005af4: 08005b95 .word 0x08005b95 - 8005af8: 08005b95 .word 0x08005b95 - 8005afc: 08005b95 .word 0x08005b95 - 8005b00: 08005b41 .word 0x08005b41 - 8005b04: 08005b95 .word 0x08005b95 - 8005b08: 08005b95 .word 0x08005b95 - 8005b0c: 08005b95 .word 0x08005b95 - 8005b10: 08005b5d .word 0x08005b5d - 8005b14: 08005b95 .word 0x08005b95 - 8005b18: 08005b95 .word 0x08005b95 - 8005b1c: 08005b95 .word 0x08005b95 - 8005b20: 08005b79 .word 0x08005b79 + 8005b9a: 683b ldr r3, [r7, #0] + 8005b9c: 2b0c cmp r3, #12 + 8005b9e: d855 bhi.n 8005c4c + 8005ba0: a201 add r2, pc, #4 @ (adr r2, 8005ba8 ) + 8005ba2: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8005ba6: bf00 nop + 8005ba8: 08005bdd .word 0x08005bdd + 8005bac: 08005c4d .word 0x08005c4d + 8005bb0: 08005c4d .word 0x08005c4d + 8005bb4: 08005c4d .word 0x08005c4d + 8005bb8: 08005bf9 .word 0x08005bf9 + 8005bbc: 08005c4d .word 0x08005c4d + 8005bc0: 08005c4d .word 0x08005c4d + 8005bc4: 08005c4d .word 0x08005c4d + 8005bc8: 08005c15 .word 0x08005c15 + 8005bcc: 08005c4d .word 0x08005c4d + 8005bd0: 08005c4d .word 0x08005c4d + 8005bd4: 08005c4d .word 0x08005c4d + 8005bd8: 08005c31 .word 0x08005c31 { case TIM_CHANNEL_1: { /* Disable the TIM Capture/Compare 1 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC1); - 8005b24: 687b ldr r3, [r7, #4] - 8005b26: 681b ldr r3, [r3, #0] - 8005b28: 68da ldr r2, [r3, #12] - 8005b2a: 687b ldr r3, [r7, #4] - 8005b2c: 681b ldr r3, [r3, #0] - 8005b2e: f422 7200 bic.w r2, r2, #512 @ 0x200 - 8005b32: 60da str r2, [r3, #12] + 8005bdc: 687b ldr r3, [r7, #4] + 8005bde: 681b ldr r3, [r3, #0] + 8005be0: 68da ldr r2, [r3, #12] + 8005be2: 687b ldr r3, [r7, #4] + 8005be4: 681b ldr r3, [r3, #0] + 8005be6: f422 7200 bic.w r2, r2, #512 @ 0x200 + 8005bea: 60da str r2, [r3, #12] (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC1]); - 8005b34: 687b ldr r3, [r7, #4] - 8005b36: 6a5b ldr r3, [r3, #36] @ 0x24 - 8005b38: 4618 mov r0, r3 - 8005b3a: f7fc fc7b bl 8002434 + 8005bec: 687b ldr r3, [r7, #4] + 8005bee: 6a5b ldr r3, [r3, #36] @ 0x24 + 8005bf0: 4618 mov r0, r3 + 8005bf2: f7fc fc7b bl 80024ec break; - 8005b3e: e02c b.n 8005b9a + 8005bf6: e02c b.n 8005c52 } case TIM_CHANNEL_2: { /* Disable the TIM Capture/Compare 2 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC2); - 8005b40: 687b ldr r3, [r7, #4] - 8005b42: 681b ldr r3, [r3, #0] - 8005b44: 68da ldr r2, [r3, #12] - 8005b46: 687b ldr r3, [r7, #4] - 8005b48: 681b ldr r3, [r3, #0] - 8005b4a: f422 6280 bic.w r2, r2, #1024 @ 0x400 - 8005b4e: 60da str r2, [r3, #12] + 8005bf8: 687b ldr r3, [r7, #4] + 8005bfa: 681b ldr r3, [r3, #0] + 8005bfc: 68da ldr r2, [r3, #12] + 8005bfe: 687b ldr r3, [r7, #4] + 8005c00: 681b ldr r3, [r3, #0] + 8005c02: f422 6280 bic.w r2, r2, #1024 @ 0x400 + 8005c06: 60da str r2, [r3, #12] (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC2]); - 8005b50: 687b ldr r3, [r7, #4] - 8005b52: 6a9b ldr r3, [r3, #40] @ 0x28 - 8005b54: 4618 mov r0, r3 - 8005b56: f7fc fc6d bl 8002434 + 8005c08: 687b ldr r3, [r7, #4] + 8005c0a: 6a9b ldr r3, [r3, #40] @ 0x28 + 8005c0c: 4618 mov r0, r3 + 8005c0e: f7fc fc6d bl 80024ec break; - 8005b5a: e01e b.n 8005b9a + 8005c12: e01e b.n 8005c52 } case TIM_CHANNEL_3: { /* Disable the TIM Capture/Compare 3 DMA request */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC3); - 8005b5c: 687b ldr r3, [r7, #4] - 8005b5e: 681b ldr r3, [r3, #0] - 8005b60: 68da ldr r2, [r3, #12] - 8005b62: 687b ldr r3, [r7, #4] - 8005b64: 681b ldr r3, [r3, #0] - 8005b66: f422 6200 bic.w r2, r2, #2048 @ 0x800 - 8005b6a: 60da str r2, [r3, #12] + 8005c14: 687b ldr r3, [r7, #4] + 8005c16: 681b ldr r3, [r3, #0] + 8005c18: 68da ldr r2, [r3, #12] + 8005c1a: 687b ldr r3, [r7, #4] + 8005c1c: 681b ldr r3, [r3, #0] + 8005c1e: f422 6200 bic.w r2, r2, #2048 @ 0x800 + 8005c22: 60da str r2, [r3, #12] (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC3]); - 8005b6c: 687b ldr r3, [r7, #4] - 8005b6e: 6adb ldr r3, [r3, #44] @ 0x2c - 8005b70: 4618 mov r0, r3 - 8005b72: f7fc fc5f bl 8002434 + 8005c24: 687b ldr r3, [r7, #4] + 8005c26: 6adb ldr r3, [r3, #44] @ 0x2c + 8005c28: 4618 mov r0, r3 + 8005c2a: f7fc fc5f bl 80024ec break; - 8005b76: e010 b.n 8005b9a + 8005c2e: e010 b.n 8005c52 } case TIM_CHANNEL_4: { /* Disable the TIM Capture/Compare 4 interrupt */ __HAL_TIM_DISABLE_DMA(htim, TIM_DMA_CC4); - 8005b78: 687b ldr r3, [r7, #4] - 8005b7a: 681b ldr r3, [r3, #0] - 8005b7c: 68da ldr r2, [r3, #12] - 8005b7e: 687b ldr r3, [r7, #4] - 8005b80: 681b ldr r3, [r3, #0] - 8005b82: f422 5280 bic.w r2, r2, #4096 @ 0x1000 - 8005b86: 60da str r2, [r3, #12] + 8005c30: 687b ldr r3, [r7, #4] + 8005c32: 681b ldr r3, [r3, #0] + 8005c34: 68da ldr r2, [r3, #12] + 8005c36: 687b ldr r3, [r7, #4] + 8005c38: 681b ldr r3, [r3, #0] + 8005c3a: f422 5280 bic.w r2, r2, #4096 @ 0x1000 + 8005c3e: 60da str r2, [r3, #12] (void)HAL_DMA_Abort_IT(htim->hdma[TIM_DMA_ID_CC4]); - 8005b88: 687b ldr r3, [r7, #4] - 8005b8a: 6b1b ldr r3, [r3, #48] @ 0x30 - 8005b8c: 4618 mov r0, r3 - 8005b8e: f7fc fc51 bl 8002434 + 8005c40: 687b ldr r3, [r7, #4] + 8005c42: 6b1b ldr r3, [r3, #48] @ 0x30 + 8005c44: 4618 mov r0, r3 + 8005c46: f7fc fc51 bl 80024ec break; - 8005b92: e002 b.n 8005b9a + 8005c4a: e002 b.n 8005c52 } default: status = HAL_ERROR; - 8005b94: 2301 movs r3, #1 - 8005b96: 73fb strb r3, [r7, #15] + 8005c4c: 2301 movs r3, #1 + 8005c4e: 73fb strb r3, [r7, #15] break; - 8005b98: bf00 nop + 8005c50: bf00 nop } if (status == HAL_OK) - 8005b9a: 7bfb ldrb r3, [r7, #15] - 8005b9c: 2b00 cmp r3, #0 - 8005b9e: d161 bne.n 8005c64 + 8005c52: 7bfb ldrb r3, [r7, #15] + 8005c54: 2b00 cmp r3, #0 + 8005c56: d161 bne.n 8005d1c { /* Disable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_DISABLE); - 8005ba0: 687b ldr r3, [r7, #4] - 8005ba2: 681b ldr r3, [r3, #0] - 8005ba4: 2200 movs r2, #0 - 8005ba6: 6839 ldr r1, [r7, #0] - 8005ba8: 4618 mov r0, r3 - 8005baa: f000 fd97 bl 80066dc + 8005c58: 687b ldr r3, [r7, #4] + 8005c5a: 681b ldr r3, [r3, #0] + 8005c5c: 2200 movs r2, #0 + 8005c5e: 6839 ldr r1, [r7, #0] + 8005c60: 4618 mov r0, r3 + 8005c62: f000 fd97 bl 8006794 if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) - 8005bae: 687b ldr r3, [r7, #4] - 8005bb0: 681b ldr r3, [r3, #0] - 8005bb2: 4a2f ldr r2, [pc, #188] @ (8005c70 ) - 8005bb4: 4293 cmp r3, r2 - 8005bb6: d004 beq.n 8005bc2 - 8005bb8: 687b ldr r3, [r7, #4] - 8005bba: 681b ldr r3, [r3, #0] - 8005bbc: 4a2d ldr r2, [pc, #180] @ (8005c74 ) - 8005bbe: 4293 cmp r3, r2 - 8005bc0: d101 bne.n 8005bc6 - 8005bc2: 2301 movs r3, #1 - 8005bc4: e000 b.n 8005bc8 - 8005bc6: 2300 movs r3, #0 - 8005bc8: 2b00 cmp r3, #0 - 8005bca: d017 beq.n 8005bfc + 8005c66: 687b ldr r3, [r7, #4] + 8005c68: 681b ldr r3, [r3, #0] + 8005c6a: 4a2f ldr r2, [pc, #188] @ (8005d28 ) + 8005c6c: 4293 cmp r3, r2 + 8005c6e: d004 beq.n 8005c7a + 8005c70: 687b ldr r3, [r7, #4] + 8005c72: 681b ldr r3, [r3, #0] + 8005c74: 4a2d ldr r2, [pc, #180] @ (8005d2c ) + 8005c76: 4293 cmp r3, r2 + 8005c78: d101 bne.n 8005c7e + 8005c7a: 2301 movs r3, #1 + 8005c7c: e000 b.n 8005c80 + 8005c7e: 2300 movs r3, #0 + 8005c80: 2b00 cmp r3, #0 + 8005c82: d017 beq.n 8005cb4 { /* Disable the Main Output */ __HAL_TIM_MOE_DISABLE(htim); - 8005bcc: 687b ldr r3, [r7, #4] - 8005bce: 681b ldr r3, [r3, #0] - 8005bd0: 6a1a ldr r2, [r3, #32] - 8005bd2: f241 1311 movw r3, #4369 @ 0x1111 - 8005bd6: 4013 ands r3, r2 - 8005bd8: 2b00 cmp r3, #0 - 8005bda: d10f bne.n 8005bfc - 8005bdc: 687b ldr r3, [r7, #4] - 8005bde: 681b ldr r3, [r3, #0] - 8005be0: 6a1a ldr r2, [r3, #32] - 8005be2: f240 4344 movw r3, #1092 @ 0x444 - 8005be6: 4013 ands r3, r2 - 8005be8: 2b00 cmp r3, #0 - 8005bea: d107 bne.n 8005bfc - 8005bec: 687b ldr r3, [r7, #4] - 8005bee: 681b ldr r3, [r3, #0] - 8005bf0: 6c5a ldr r2, [r3, #68] @ 0x44 - 8005bf2: 687b ldr r3, [r7, #4] - 8005bf4: 681b ldr r3, [r3, #0] - 8005bf6: f422 4200 bic.w r2, r2, #32768 @ 0x8000 - 8005bfa: 645a str r2, [r3, #68] @ 0x44 + 8005c84: 687b ldr r3, [r7, #4] + 8005c86: 681b ldr r3, [r3, #0] + 8005c88: 6a1a ldr r2, [r3, #32] + 8005c8a: f241 1311 movw r3, #4369 @ 0x1111 + 8005c8e: 4013 ands r3, r2 + 8005c90: 2b00 cmp r3, #0 + 8005c92: d10f bne.n 8005cb4 + 8005c94: 687b ldr r3, [r7, #4] + 8005c96: 681b ldr r3, [r3, #0] + 8005c98: 6a1a ldr r2, [r3, #32] + 8005c9a: f240 4344 movw r3, #1092 @ 0x444 + 8005c9e: 4013 ands r3, r2 + 8005ca0: 2b00 cmp r3, #0 + 8005ca2: d107 bne.n 8005cb4 + 8005ca4: 687b ldr r3, [r7, #4] + 8005ca6: 681b ldr r3, [r3, #0] + 8005ca8: 6c5a ldr r2, [r3, #68] @ 0x44 + 8005caa: 687b ldr r3, [r7, #4] + 8005cac: 681b ldr r3, [r3, #0] + 8005cae: f422 4200 bic.w r2, r2, #32768 @ 0x8000 + 8005cb2: 645a str r2, [r3, #68] @ 0x44 } /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); - 8005bfc: 687b ldr r3, [r7, #4] - 8005bfe: 681b ldr r3, [r3, #0] - 8005c00: 6a1a ldr r2, [r3, #32] - 8005c02: f241 1311 movw r3, #4369 @ 0x1111 - 8005c06: 4013 ands r3, r2 - 8005c08: 2b00 cmp r3, #0 - 8005c0a: d10f bne.n 8005c2c - 8005c0c: 687b ldr r3, [r7, #4] - 8005c0e: 681b ldr r3, [r3, #0] - 8005c10: 6a1a ldr r2, [r3, #32] - 8005c12: f240 4344 movw r3, #1092 @ 0x444 - 8005c16: 4013 ands r3, r2 - 8005c18: 2b00 cmp r3, #0 - 8005c1a: d107 bne.n 8005c2c - 8005c1c: 687b ldr r3, [r7, #4] - 8005c1e: 681b ldr r3, [r3, #0] - 8005c20: 681a ldr r2, [r3, #0] - 8005c22: 687b ldr r3, [r7, #4] - 8005c24: 681b ldr r3, [r3, #0] - 8005c26: f022 0201 bic.w r2, r2, #1 - 8005c2a: 601a str r2, [r3, #0] + 8005cb4: 687b ldr r3, [r7, #4] + 8005cb6: 681b ldr r3, [r3, #0] + 8005cb8: 6a1a ldr r2, [r3, #32] + 8005cba: f241 1311 movw r3, #4369 @ 0x1111 + 8005cbe: 4013 ands r3, r2 + 8005cc0: 2b00 cmp r3, #0 + 8005cc2: d10f bne.n 8005ce4 + 8005cc4: 687b ldr r3, [r7, #4] + 8005cc6: 681b ldr r3, [r3, #0] + 8005cc8: 6a1a ldr r2, [r3, #32] + 8005cca: f240 4344 movw r3, #1092 @ 0x444 + 8005cce: 4013 ands r3, r2 + 8005cd0: 2b00 cmp r3, #0 + 8005cd2: d107 bne.n 8005ce4 + 8005cd4: 687b ldr r3, [r7, #4] + 8005cd6: 681b ldr r3, [r3, #0] + 8005cd8: 681a ldr r2, [r3, #0] + 8005cda: 687b ldr r3, [r7, #4] + 8005cdc: 681b ldr r3, [r3, #0] + 8005cde: f022 0201 bic.w r2, r2, #1 + 8005ce2: 601a str r2, [r3, #0] /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_READY); - 8005c2c: 683b ldr r3, [r7, #0] - 8005c2e: 2b00 cmp r3, #0 - 8005c30: d104 bne.n 8005c3c - 8005c32: 687b ldr r3, [r7, #4] - 8005c34: 2201 movs r2, #1 - 8005c36: f883 203e strb.w r2, [r3, #62] @ 0x3e - 8005c3a: e013 b.n 8005c64 - 8005c3c: 683b ldr r3, [r7, #0] - 8005c3e: 2b04 cmp r3, #4 - 8005c40: d104 bne.n 8005c4c - 8005c42: 687b ldr r3, [r7, #4] - 8005c44: 2201 movs r2, #1 - 8005c46: f883 203f strb.w r2, [r3, #63] @ 0x3f - 8005c4a: e00b b.n 8005c64 - 8005c4c: 683b ldr r3, [r7, #0] - 8005c4e: 2b08 cmp r3, #8 - 8005c50: d104 bne.n 8005c5c - 8005c52: 687b ldr r3, [r7, #4] - 8005c54: 2201 movs r2, #1 - 8005c56: f883 2040 strb.w r2, [r3, #64] @ 0x40 - 8005c5a: e003 b.n 8005c64 - 8005c5c: 687b ldr r3, [r7, #4] - 8005c5e: 2201 movs r2, #1 - 8005c60: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8005ce4: 683b ldr r3, [r7, #0] + 8005ce6: 2b00 cmp r3, #0 + 8005ce8: d104 bne.n 8005cf4 + 8005cea: 687b ldr r3, [r7, #4] + 8005cec: 2201 movs r2, #1 + 8005cee: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8005cf2: e013 b.n 8005d1c + 8005cf4: 683b ldr r3, [r7, #0] + 8005cf6: 2b04 cmp r3, #4 + 8005cf8: d104 bne.n 8005d04 + 8005cfa: 687b ldr r3, [r7, #4] + 8005cfc: 2201 movs r2, #1 + 8005cfe: f883 203f strb.w r2, [r3, #63] @ 0x3f + 8005d02: e00b b.n 8005d1c + 8005d04: 683b ldr r3, [r7, #0] + 8005d06: 2b08 cmp r3, #8 + 8005d08: d104 bne.n 8005d14 + 8005d0a: 687b ldr r3, [r7, #4] + 8005d0c: 2201 movs r2, #1 + 8005d0e: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 8005d12: e003 b.n 8005d1c + 8005d14: 687b ldr r3, [r7, #4] + 8005d16: 2201 movs r2, #1 + 8005d18: f883 2041 strb.w r2, [r3, #65] @ 0x41 } /* Return function status */ return status; - 8005c64: 7bfb ldrb r3, [r7, #15] + 8005d1c: 7bfb ldrb r3, [r7, #15] } - 8005c66: 4618 mov r0, r3 - 8005c68: 3710 adds r7, #16 - 8005c6a: 46bd mov sp, r7 - 8005c6c: bd80 pop {r7, pc} - 8005c6e: bf00 nop - 8005c70: 40010000 .word 0x40010000 - 8005c74: 40010400 .word 0x40010400 + 8005d1e: 4618 mov r0, r3 + 8005d20: 3710 adds r7, #16 + 8005d22: 46bd mov sp, r7 + 8005d24: bd80 pop {r7, pc} + 8005d26: bf00 nop + 8005d28: 40010000 .word 0x40010000 + 8005d2c: 40010400 .word 0x40010400 -08005c78 : +08005d30 : * @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) { - 8005c78: b580 push {r7, lr} - 8005c7a: b086 sub sp, #24 - 8005c7c: af00 add r7, sp, #0 - 8005c7e: 6078 str r0, [r7, #4] - 8005c80: 6039 str r1, [r7, #0] + 8005d30: b580 push {r7, lr} + 8005d32: b086 sub sp, #24 + 8005d34: af00 add r7, sp, #0 + 8005d36: 6078 str r0, [r7, #4] + 8005d38: 6039 str r1, [r7, #0] uint32_t tmpsmcr; uint32_t tmpccmr1; uint32_t tmpccer; /* Check the TIM handle allocation */ if (htim == NULL) - 8005c82: 687b ldr r3, [r7, #4] - 8005c84: 2b00 cmp r3, #0 - 8005c86: d101 bne.n 8005c8c + 8005d3a: 687b ldr r3, [r7, #4] + 8005d3c: 2b00 cmp r3, #0 + 8005d3e: d101 bne.n 8005d44 { return HAL_ERROR; - 8005c88: 2301 movs r3, #1 - 8005c8a: e097 b.n 8005dbc + 8005d40: 2301 movs r3, #1 + 8005d42: e097 b.n 8005e74 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) - 8005c8c: 687b ldr r3, [r7, #4] - 8005c8e: f893 303d ldrb.w r3, [r3, #61] @ 0x3d - 8005c92: b2db uxtb r3, r3 - 8005c94: 2b00 cmp r3, #0 - 8005c96: d106 bne.n 8005ca6 + 8005d44: 687b ldr r3, [r7, #4] + 8005d46: f893 303d ldrb.w r3, [r3, #61] @ 0x3d + 8005d4a: b2db uxtb r3, r3 + 8005d4c: 2b00 cmp r3, #0 + 8005d4e: d106 bne.n 8005d5e { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; - 8005c98: 687b ldr r3, [r7, #4] - 8005c9a: 2200 movs r2, #0 - 8005c9c: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005d50: 687b ldr r3, [r7, #4] + 8005d52: 2200 movs r2, #0 + 8005d54: 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); - 8005ca0: 6878 ldr r0, [r7, #4] - 8005ca2: f7fb fc95 bl 80015d0 + 8005d58: 6878 ldr r0, [r7, #4] + 8005d5a: f7fb fc95 bl 8001688 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; - 8005ca6: 687b ldr r3, [r7, #4] - 8005ca8: 2202 movs r2, #2 - 8005caa: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8005d5e: 687b ldr r3, [r7, #4] + 8005d60: 2202 movs r2, #2 + 8005d62: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Reset the SMS and ECE bits */ htim->Instance->SMCR &= ~(TIM_SMCR_SMS | TIM_SMCR_ECE); - 8005cae: 687b ldr r3, [r7, #4] - 8005cb0: 681b ldr r3, [r3, #0] - 8005cb2: 689b ldr r3, [r3, #8] - 8005cb4: 687a ldr r2, [r7, #4] - 8005cb6: 6812 ldr r2, [r2, #0] - 8005cb8: f423 4380 bic.w r3, r3, #16384 @ 0x4000 - 8005cbc: f023 0307 bic.w r3, r3, #7 - 8005cc0: 6093 str r3, [r2, #8] + 8005d66: 687b ldr r3, [r7, #4] + 8005d68: 681b ldr r3, [r3, #0] + 8005d6a: 689b ldr r3, [r3, #8] + 8005d6c: 687a ldr r2, [r7, #4] + 8005d6e: 6812 ldr r2, [r2, #0] + 8005d70: f423 4380 bic.w r3, r3, #16384 @ 0x4000 + 8005d74: f023 0307 bic.w r3, r3, #7 + 8005d78: 6093 str r3, [r2, #8] /* Configure the Time base in the Encoder Mode */ TIM_Base_SetConfig(htim->Instance, &htim->Init); - 8005cc2: 687b ldr r3, [r7, #4] - 8005cc4: 681a ldr r2, [r3, #0] - 8005cc6: 687b ldr r3, [r7, #4] - 8005cc8: 3304 adds r3, #4 - 8005cca: 4619 mov r1, r3 - 8005ccc: 4610 mov r0, r2 - 8005cce: f000 faaf bl 8006230 + 8005d7a: 687b ldr r3, [r7, #4] + 8005d7c: 681a ldr r2, [r3, #0] + 8005d7e: 687b ldr r3, [r7, #4] + 8005d80: 3304 adds r3, #4 + 8005d82: 4619 mov r1, r3 + 8005d84: 4610 mov r0, r2 + 8005d86: f000 faaf bl 80062e8 /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; - 8005cd2: 687b ldr r3, [r7, #4] - 8005cd4: 681b ldr r3, [r3, #0] - 8005cd6: 689b ldr r3, [r3, #8] - 8005cd8: 617b str r3, [r7, #20] + 8005d8a: 687b ldr r3, [r7, #4] + 8005d8c: 681b ldr r3, [r3, #0] + 8005d8e: 689b ldr r3, [r3, #8] + 8005d90: 617b str r3, [r7, #20] /* Get the TIMx CCMR1 register value */ tmpccmr1 = htim->Instance->CCMR1; - 8005cda: 687b ldr r3, [r7, #4] - 8005cdc: 681b ldr r3, [r3, #0] - 8005cde: 699b ldr r3, [r3, #24] - 8005ce0: 613b str r3, [r7, #16] + 8005d92: 687b ldr r3, [r7, #4] + 8005d94: 681b ldr r3, [r3, #0] + 8005d96: 699b ldr r3, [r3, #24] + 8005d98: 613b str r3, [r7, #16] /* Get the TIMx CCER register value */ tmpccer = htim->Instance->CCER; - 8005ce2: 687b ldr r3, [r7, #4] - 8005ce4: 681b ldr r3, [r3, #0] - 8005ce6: 6a1b ldr r3, [r3, #32] - 8005ce8: 60fb str r3, [r7, #12] + 8005d9a: 687b ldr r3, [r7, #4] + 8005d9c: 681b ldr r3, [r3, #0] + 8005d9e: 6a1b ldr r3, [r3, #32] + 8005da0: 60fb str r3, [r7, #12] /* Set the encoder Mode */ tmpsmcr |= sConfig->EncoderMode; - 8005cea: 683b ldr r3, [r7, #0] - 8005cec: 681b ldr r3, [r3, #0] - 8005cee: 697a ldr r2, [r7, #20] - 8005cf0: 4313 orrs r3, r2 - 8005cf2: 617b str r3, [r7, #20] + 8005da2: 683b ldr r3, [r7, #0] + 8005da4: 681b ldr r3, [r3, #0] + 8005da6: 697a ldr r2, [r7, #20] + 8005da8: 4313 orrs r3, r2 + 8005daa: 617b str r3, [r7, #20] /* Select the Capture Compare 1 and the Capture Compare 2 as input */ tmpccmr1 &= ~(TIM_CCMR1_CC1S | TIM_CCMR1_CC2S); - 8005cf4: 693b ldr r3, [r7, #16] - 8005cf6: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8005cfa: f023 0303 bic.w r3, r3, #3 - 8005cfe: 613b str r3, [r7, #16] + 8005dac: 693b ldr r3, [r7, #16] + 8005dae: f423 7340 bic.w r3, r3, #768 @ 0x300 + 8005db2: f023 0303 bic.w r3, r3, #3 + 8005db6: 613b str r3, [r7, #16] tmpccmr1 |= (sConfig->IC1Selection | (sConfig->IC2Selection << 8U)); - 8005d00: 683b ldr r3, [r7, #0] - 8005d02: 689a ldr r2, [r3, #8] - 8005d04: 683b ldr r3, [r7, #0] - 8005d06: 699b ldr r3, [r3, #24] - 8005d08: 021b lsls r3, r3, #8 - 8005d0a: 4313 orrs r3, r2 - 8005d0c: 693a ldr r2, [r7, #16] - 8005d0e: 4313 orrs r3, r2 - 8005d10: 613b str r3, [r7, #16] + 8005db8: 683b ldr r3, [r7, #0] + 8005dba: 689a ldr r2, [r3, #8] + 8005dbc: 683b ldr r3, [r7, #0] + 8005dbe: 699b ldr r3, [r3, #24] + 8005dc0: 021b lsls r3, r3, #8 + 8005dc2: 4313 orrs r3, r2 + 8005dc4: 693a ldr r2, [r7, #16] + 8005dc6: 4313 orrs r3, r2 + 8005dc8: 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); - 8005d12: 693b ldr r3, [r7, #16] - 8005d14: f423 6340 bic.w r3, r3, #3072 @ 0xc00 - 8005d18: f023 030c bic.w r3, r3, #12 - 8005d1c: 613b str r3, [r7, #16] + 8005dca: 693b ldr r3, [r7, #16] + 8005dcc: f423 6340 bic.w r3, r3, #3072 @ 0xc00 + 8005dd0: f023 030c bic.w r3, r3, #12 + 8005dd4: 613b str r3, [r7, #16] tmpccmr1 &= ~(TIM_CCMR1_IC1F | TIM_CCMR1_IC2F); - 8005d1e: 693b ldr r3, [r7, #16] - 8005d20: f423 4370 bic.w r3, r3, #61440 @ 0xf000 - 8005d24: f023 03f0 bic.w r3, r3, #240 @ 0xf0 - 8005d28: 613b str r3, [r7, #16] + 8005dd6: 693b ldr r3, [r7, #16] + 8005dd8: f423 4370 bic.w r3, r3, #61440 @ 0xf000 + 8005ddc: f023 03f0 bic.w r3, r3, #240 @ 0xf0 + 8005de0: 613b str r3, [r7, #16] tmpccmr1 |= sConfig->IC1Prescaler | (sConfig->IC2Prescaler << 8U); - 8005d2a: 683b ldr r3, [r7, #0] - 8005d2c: 68da ldr r2, [r3, #12] - 8005d2e: 683b ldr r3, [r7, #0] - 8005d30: 69db ldr r3, [r3, #28] - 8005d32: 021b lsls r3, r3, #8 - 8005d34: 4313 orrs r3, r2 - 8005d36: 693a ldr r2, [r7, #16] - 8005d38: 4313 orrs r3, r2 - 8005d3a: 613b str r3, [r7, #16] + 8005de2: 683b ldr r3, [r7, #0] + 8005de4: 68da ldr r2, [r3, #12] + 8005de6: 683b ldr r3, [r7, #0] + 8005de8: 69db ldr r3, [r3, #28] + 8005dea: 021b lsls r3, r3, #8 + 8005dec: 4313 orrs r3, r2 + 8005dee: 693a ldr r2, [r7, #16] + 8005df0: 4313 orrs r3, r2 + 8005df2: 613b str r3, [r7, #16] tmpccmr1 |= (sConfig->IC1Filter << 4U) | (sConfig->IC2Filter << 12U); - 8005d3c: 683b ldr r3, [r7, #0] - 8005d3e: 691b ldr r3, [r3, #16] - 8005d40: 011a lsls r2, r3, #4 - 8005d42: 683b ldr r3, [r7, #0] - 8005d44: 6a1b ldr r3, [r3, #32] - 8005d46: 031b lsls r3, r3, #12 - 8005d48: 4313 orrs r3, r2 - 8005d4a: 693a ldr r2, [r7, #16] - 8005d4c: 4313 orrs r3, r2 - 8005d4e: 613b str r3, [r7, #16] + 8005df4: 683b ldr r3, [r7, #0] + 8005df6: 691b ldr r3, [r3, #16] + 8005df8: 011a lsls r2, r3, #4 + 8005dfa: 683b ldr r3, [r7, #0] + 8005dfc: 6a1b ldr r3, [r3, #32] + 8005dfe: 031b lsls r3, r3, #12 + 8005e00: 4313 orrs r3, r2 + 8005e02: 693a ldr r2, [r7, #16] + 8005e04: 4313 orrs r3, r2 + 8005e06: 613b str r3, [r7, #16] /* Set the TI1 and the TI2 Polarities */ tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC2P); - 8005d50: 68fb ldr r3, [r7, #12] - 8005d52: f023 0322 bic.w r3, r3, #34 @ 0x22 - 8005d56: 60fb str r3, [r7, #12] + 8005e08: 68fb ldr r3, [r7, #12] + 8005e0a: f023 0322 bic.w r3, r3, #34 @ 0x22 + 8005e0e: 60fb str r3, [r7, #12] tmpccer &= ~(TIM_CCER_CC1NP | TIM_CCER_CC2NP); - 8005d58: 68fb ldr r3, [r7, #12] - 8005d5a: f023 0388 bic.w r3, r3, #136 @ 0x88 - 8005d5e: 60fb str r3, [r7, #12] + 8005e10: 68fb ldr r3, [r7, #12] + 8005e12: f023 0388 bic.w r3, r3, #136 @ 0x88 + 8005e16: 60fb str r3, [r7, #12] tmpccer |= sConfig->IC1Polarity | (sConfig->IC2Polarity << 4U); - 8005d60: 683b ldr r3, [r7, #0] - 8005d62: 685a ldr r2, [r3, #4] - 8005d64: 683b ldr r3, [r7, #0] - 8005d66: 695b ldr r3, [r3, #20] - 8005d68: 011b lsls r3, r3, #4 - 8005d6a: 4313 orrs r3, r2 - 8005d6c: 68fa ldr r2, [r7, #12] - 8005d6e: 4313 orrs r3, r2 - 8005d70: 60fb str r3, [r7, #12] + 8005e18: 683b ldr r3, [r7, #0] + 8005e1a: 685a ldr r2, [r3, #4] + 8005e1c: 683b ldr r3, [r7, #0] + 8005e1e: 695b ldr r3, [r3, #20] + 8005e20: 011b lsls r3, r3, #4 + 8005e22: 4313 orrs r3, r2 + 8005e24: 68fa ldr r2, [r7, #12] + 8005e26: 4313 orrs r3, r2 + 8005e28: 60fb str r3, [r7, #12] /* Write to TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; - 8005d72: 687b ldr r3, [r7, #4] - 8005d74: 681b ldr r3, [r3, #0] - 8005d76: 697a ldr r2, [r7, #20] - 8005d78: 609a str r2, [r3, #8] + 8005e2a: 687b ldr r3, [r7, #4] + 8005e2c: 681b ldr r3, [r3, #0] + 8005e2e: 697a ldr r2, [r7, #20] + 8005e30: 609a str r2, [r3, #8] /* Write to TIMx CCMR1 */ htim->Instance->CCMR1 = tmpccmr1; - 8005d7a: 687b ldr r3, [r7, #4] - 8005d7c: 681b ldr r3, [r3, #0] - 8005d7e: 693a ldr r2, [r7, #16] - 8005d80: 619a str r2, [r3, #24] + 8005e32: 687b ldr r3, [r7, #4] + 8005e34: 681b ldr r3, [r3, #0] + 8005e36: 693a ldr r2, [r7, #16] + 8005e38: 619a str r2, [r3, #24] /* Write to TIMx CCER */ htim->Instance->CCER = tmpccer; - 8005d82: 687b ldr r3, [r7, #4] - 8005d84: 681b ldr r3, [r3, #0] - 8005d86: 68fa ldr r2, [r7, #12] - 8005d88: 621a str r2, [r3, #32] + 8005e3a: 687b ldr r3, [r7, #4] + 8005e3c: 681b ldr r3, [r3, #0] + 8005e3e: 68fa ldr r2, [r7, #12] + 8005e40: 621a str r2, [r3, #32] /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; - 8005d8a: 687b ldr r3, [r7, #4] - 8005d8c: 2201 movs r2, #1 - 8005d8e: f883 2046 strb.w r2, [r3, #70] @ 0x46 + 8005e42: 687b ldr r3, [r7, #4] + 8005e44: 2201 movs r2, #1 + 8005e46: 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); - 8005d92: 687b ldr r3, [r7, #4] - 8005d94: 2201 movs r2, #1 - 8005d96: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8005e4a: 687b ldr r3, [r7, #4] + 8005e4c: 2201 movs r2, #1 + 8005e4e: f883 203e strb.w r2, [r3, #62] @ 0x3e TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - 8005d9a: 687b ldr r3, [r7, #4] - 8005d9c: 2201 movs r2, #1 - 8005d9e: f883 203f strb.w r2, [r3, #63] @ 0x3f + 8005e52: 687b ldr r3, [r7, #4] + 8005e54: 2201 movs r2, #1 + 8005e56: f883 203f strb.w r2, [r3, #63] @ 0x3f TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - 8005da2: 687b ldr r3, [r7, #4] - 8005da4: 2201 movs r2, #1 - 8005da6: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8005e5a: 687b ldr r3, [r7, #4] + 8005e5c: 2201 movs r2, #1 + 8005e5e: f883 2042 strb.w r2, [r3, #66] @ 0x42 TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - 8005daa: 687b ldr r3, [r7, #4] - 8005dac: 2201 movs r2, #1 - 8005dae: f883 2043 strb.w r2, [r3, #67] @ 0x43 + 8005e62: 687b ldr r3, [r7, #4] + 8005e64: 2201 movs r2, #1 + 8005e66: f883 2043 strb.w r2, [r3, #67] @ 0x43 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; - 8005db2: 687b ldr r3, [r7, #4] - 8005db4: 2201 movs r2, #1 - 8005db6: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8005e6a: 687b ldr r3, [r7, #4] + 8005e6c: 2201 movs r2, #1 + 8005e6e: f883 203d strb.w r2, [r3, #61] @ 0x3d return HAL_OK; - 8005dba: 2300 movs r3, #0 + 8005e72: 2300 movs r3, #0 } - 8005dbc: 4618 mov r0, r3 - 8005dbe: 3718 adds r7, #24 - 8005dc0: 46bd mov sp, r7 - 8005dc2: bd80 pop {r7, pc} + 8005e74: 4618 mov r0, r3 + 8005e76: 3718 adds r7, #24 + 8005e78: 46bd mov sp, r7 + 8005e7a: bd80 pop {r7, pc} -08005dc4 : +08005e7c : * @arg TIM_CHANNEL_2: TIM Channel 2 selected * @arg TIM_CHANNEL_ALL: TIM Channel 1 and TIM Channel 2 are selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Encoder_Start(TIM_HandleTypeDef *htim, uint32_t Channel) { - 8005dc4: b580 push {r7, lr} - 8005dc6: b084 sub sp, #16 - 8005dc8: af00 add r7, sp, #0 - 8005dca: 6078 str r0, [r7, #4] - 8005dcc: 6039 str r1, [r7, #0] + 8005e7c: b580 push {r7, lr} + 8005e7e: b084 sub sp, #16 + 8005e80: af00 add r7, sp, #0 + 8005e82: 6078 str r0, [r7, #4] + 8005e84: 6039 str r1, [r7, #0] HAL_TIM_ChannelStateTypeDef channel_1_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_1); - 8005dce: 687b ldr r3, [r7, #4] - 8005dd0: f893 303e ldrb.w r3, [r3, #62] @ 0x3e - 8005dd4: 73fb strb r3, [r7, #15] + 8005e86: 687b ldr r3, [r7, #4] + 8005e88: f893 303e ldrb.w r3, [r3, #62] @ 0x3e + 8005e8c: 73fb strb r3, [r7, #15] HAL_TIM_ChannelStateTypeDef channel_2_state = TIM_CHANNEL_STATE_GET(htim, TIM_CHANNEL_2); - 8005dd6: 687b ldr r3, [r7, #4] - 8005dd8: f893 303f ldrb.w r3, [r3, #63] @ 0x3f - 8005ddc: 73bb strb r3, [r7, #14] + 8005e8e: 687b ldr r3, [r7, #4] + 8005e90: f893 303f ldrb.w r3, [r3, #63] @ 0x3f + 8005e94: 73bb strb r3, [r7, #14] HAL_TIM_ChannelStateTypeDef complementary_channel_1_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_1); - 8005dde: 687b ldr r3, [r7, #4] - 8005de0: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 - 8005de4: 737b strb r3, [r7, #13] + 8005e96: 687b ldr r3, [r7, #4] + 8005e98: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 + 8005e9c: 737b strb r3, [r7, #13] HAL_TIM_ChannelStateTypeDef complementary_channel_2_state = TIM_CHANNEL_N_STATE_GET(htim, TIM_CHANNEL_2); - 8005de6: 687b ldr r3, [r7, #4] - 8005de8: f893 3043 ldrb.w r3, [r3, #67] @ 0x43 - 8005dec: 733b strb r3, [r7, #12] + 8005e9e: 687b ldr r3, [r7, #4] + 8005ea0: f893 3043 ldrb.w r3, [r3, #67] @ 0x43 + 8005ea4: 733b strb r3, [r7, #12] /* Check the parameters */ assert_param(IS_TIM_ENCODER_INTERFACE_INSTANCE(htim->Instance)); /* Set the TIM channel(s) state */ if (Channel == TIM_CHANNEL_1) - 8005dee: 683b ldr r3, [r7, #0] - 8005df0: 2b00 cmp r3, #0 - 8005df2: d110 bne.n 8005e16 + 8005ea6: 683b ldr r3, [r7, #0] + 8005ea8: 2b00 cmp r3, #0 + 8005eaa: d110 bne.n 8005ece { if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - 8005df4: 7bfb ldrb r3, [r7, #15] - 8005df6: 2b01 cmp r3, #1 - 8005df8: d102 bne.n 8005e00 + 8005eac: 7bfb ldrb r3, [r7, #15] + 8005eae: 2b01 cmp r3, #1 + 8005eb0: d102 bne.n 8005eb8 || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY)) - 8005dfa: 7b7b ldrb r3, [r7, #13] - 8005dfc: 2b01 cmp r3, #1 - 8005dfe: d001 beq.n 8005e04 + 8005eb2: 7b7b ldrb r3, [r7, #13] + 8005eb4: 2b01 cmp r3, #1 + 8005eb6: d001 beq.n 8005ebc { return HAL_ERROR; - 8005e00: 2301 movs r3, #1 - 8005e02: e069 b.n 8005ed8 + 8005eb8: 2301 movs r3, #1 + 8005eba: e069 b.n 8005f90 } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - 8005e04: 687b ldr r3, [r7, #4] - 8005e06: 2202 movs r2, #2 - 8005e08: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8005ebc: 687b ldr r3, [r7, #4] + 8005ebe: 2202 movs r2, #2 + 8005ec0: f883 203e strb.w r2, [r3, #62] @ 0x3e TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - 8005e0c: 687b ldr r3, [r7, #4] - 8005e0e: 2202 movs r2, #2 - 8005e10: f883 2042 strb.w r2, [r3, #66] @ 0x42 - 8005e14: e031 b.n 8005e7a + 8005ec4: 687b ldr r3, [r7, #4] + 8005ec6: 2202 movs r2, #2 + 8005ec8: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8005ecc: e031 b.n 8005f32 } } else if (Channel == TIM_CHANNEL_2) - 8005e16: 683b ldr r3, [r7, #0] - 8005e18: 2b04 cmp r3, #4 - 8005e1a: d110 bne.n 8005e3e + 8005ece: 683b ldr r3, [r7, #0] + 8005ed0: 2b04 cmp r3, #4 + 8005ed2: d110 bne.n 8005ef6 { if ((channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - 8005e1c: 7bbb ldrb r3, [r7, #14] - 8005e1e: 2b01 cmp r3, #1 - 8005e20: d102 bne.n 8005e28 + 8005ed4: 7bbb ldrb r3, [r7, #14] + 8005ed6: 2b01 cmp r3, #1 + 8005ed8: d102 bne.n 8005ee0 || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - 8005e22: 7b3b ldrb r3, [r7, #12] - 8005e24: 2b01 cmp r3, #1 - 8005e26: d001 beq.n 8005e2c + 8005eda: 7b3b ldrb r3, [r7, #12] + 8005edc: 2b01 cmp r3, #1 + 8005ede: d001 beq.n 8005ee4 { return HAL_ERROR; - 8005e28: 2301 movs r3, #1 - 8005e2a: e055 b.n 8005ed8 + 8005ee0: 2301 movs r3, #1 + 8005ee2: e055 b.n 8005f90 } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - 8005e2c: 687b ldr r3, [r7, #4] - 8005e2e: 2202 movs r2, #2 - 8005e30: f883 203f strb.w r2, [r3, #63] @ 0x3f + 8005ee4: 687b ldr r3, [r7, #4] + 8005ee6: 2202 movs r2, #2 + 8005ee8: f883 203f strb.w r2, [r3, #63] @ 0x3f TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - 8005e34: 687b ldr r3, [r7, #4] - 8005e36: 2202 movs r2, #2 - 8005e38: f883 2043 strb.w r2, [r3, #67] @ 0x43 - 8005e3c: e01d b.n 8005e7a + 8005eec: 687b ldr r3, [r7, #4] + 8005eee: 2202 movs r2, #2 + 8005ef0: f883 2043 strb.w r2, [r3, #67] @ 0x43 + 8005ef4: e01d b.n 8005f32 } } else { if ((channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - 8005e3e: 7bfb ldrb r3, [r7, #15] - 8005e40: 2b01 cmp r3, #1 - 8005e42: d108 bne.n 8005e56 + 8005ef6: 7bfb ldrb r3, [r7, #15] + 8005ef8: 2b01 cmp r3, #1 + 8005efa: d108 bne.n 8005f0e || (channel_2_state != HAL_TIM_CHANNEL_STATE_READY) - 8005e44: 7bbb ldrb r3, [r7, #14] - 8005e46: 2b01 cmp r3, #1 - 8005e48: d105 bne.n 8005e56 + 8005efc: 7bbb ldrb r3, [r7, #14] + 8005efe: 2b01 cmp r3, #1 + 8005f00: d105 bne.n 8005f0e || (complementary_channel_1_state != HAL_TIM_CHANNEL_STATE_READY) - 8005e4a: 7b7b ldrb r3, [r7, #13] - 8005e4c: 2b01 cmp r3, #1 - 8005e4e: d102 bne.n 8005e56 + 8005f02: 7b7b ldrb r3, [r7, #13] + 8005f04: 2b01 cmp r3, #1 + 8005f06: d102 bne.n 8005f0e || (complementary_channel_2_state != HAL_TIM_CHANNEL_STATE_READY)) - 8005e50: 7b3b ldrb r3, [r7, #12] - 8005e52: 2b01 cmp r3, #1 - 8005e54: d001 beq.n 8005e5a + 8005f08: 7b3b ldrb r3, [r7, #12] + 8005f0a: 2b01 cmp r3, #1 + 8005f0c: d001 beq.n 8005f12 { return HAL_ERROR; - 8005e56: 2301 movs r3, #1 - 8005e58: e03e b.n 8005ed8 + 8005f0e: 2301 movs r3, #1 + 8005f10: e03e b.n 8005f90 } else { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - 8005e5a: 687b ldr r3, [r7, #4] - 8005e5c: 2202 movs r2, #2 - 8005e5e: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8005f12: 687b ldr r3, [r7, #4] + 8005f14: 2202 movs r2, #2 + 8005f16: f883 203e strb.w r2, [r3, #62] @ 0x3e TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - 8005e62: 687b ldr r3, [r7, #4] - 8005e64: 2202 movs r2, #2 - 8005e66: f883 203f strb.w r2, [r3, #63] @ 0x3f + 8005f1a: 687b ldr r3, [r7, #4] + 8005f1c: 2202 movs r2, #2 + 8005f1e: f883 203f strb.w r2, [r3, #63] @ 0x3f TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_BUSY); - 8005e6a: 687b ldr r3, [r7, #4] - 8005e6c: 2202 movs r2, #2 - 8005e6e: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8005f22: 687b ldr r3, [r7, #4] + 8005f24: 2202 movs r2, #2 + 8005f26: f883 2042 strb.w r2, [r3, #66] @ 0x42 TIM_CHANNEL_N_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_BUSY); - 8005e72: 687b ldr r3, [r7, #4] - 8005e74: 2202 movs r2, #2 - 8005e76: f883 2043 strb.w r2, [r3, #67] @ 0x43 + 8005f2a: 687b ldr r3, [r7, #4] + 8005f2c: 2202 movs r2, #2 + 8005f2e: f883 2043 strb.w r2, [r3, #67] @ 0x43 } } /* Enable the encoder interface channels */ switch (Channel) - 8005e7a: 683b ldr r3, [r7, #0] - 8005e7c: 2b00 cmp r3, #0 - 8005e7e: d003 beq.n 8005e88 - 8005e80: 683b ldr r3, [r7, #0] - 8005e82: 2b04 cmp r3, #4 - 8005e84: d008 beq.n 8005e98 - 8005e86: e00f b.n 8005ea8 + 8005f32: 683b ldr r3, [r7, #0] + 8005f34: 2b00 cmp r3, #0 + 8005f36: d003 beq.n 8005f40 + 8005f38: 683b ldr r3, [r7, #0] + 8005f3a: 2b04 cmp r3, #4 + 8005f3c: d008 beq.n 8005f50 + 8005f3e: e00f b.n 8005f60 { case TIM_CHANNEL_1: { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - 8005e88: 687b ldr r3, [r7, #4] - 8005e8a: 681b ldr r3, [r3, #0] - 8005e8c: 2201 movs r2, #1 - 8005e8e: 2100 movs r1, #0 - 8005e90: 4618 mov r0, r3 - 8005e92: f000 fc23 bl 80066dc + 8005f40: 687b ldr r3, [r7, #4] + 8005f42: 681b ldr r3, [r3, #0] + 8005f44: 2201 movs r2, #1 + 8005f46: 2100 movs r1, #0 + 8005f48: 4618 mov r0, r3 + 8005f4a: f000 fc23 bl 8006794 break; - 8005e96: e016 b.n 8005ec6 + 8005f4e: e016 b.n 8005f7e } case TIM_CHANNEL_2: { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - 8005e98: 687b ldr r3, [r7, #4] - 8005e9a: 681b ldr r3, [r3, #0] - 8005e9c: 2201 movs r2, #1 - 8005e9e: 2104 movs r1, #4 - 8005ea0: 4618 mov r0, r3 - 8005ea2: f000 fc1b bl 80066dc + 8005f50: 687b ldr r3, [r7, #4] + 8005f52: 681b ldr r3, [r3, #0] + 8005f54: 2201 movs r2, #1 + 8005f56: 2104 movs r1, #4 + 8005f58: 4618 mov r0, r3 + 8005f5a: f000 fc1b bl 8006794 break; - 8005ea6: e00e b.n 8005ec6 + 8005f5e: e00e b.n 8005f7e } default : { TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_1, TIM_CCx_ENABLE); - 8005ea8: 687b ldr r3, [r7, #4] - 8005eaa: 681b ldr r3, [r3, #0] - 8005eac: 2201 movs r2, #1 - 8005eae: 2100 movs r1, #0 - 8005eb0: 4618 mov r0, r3 - 8005eb2: f000 fc13 bl 80066dc + 8005f60: 687b ldr r3, [r7, #4] + 8005f62: 681b ldr r3, [r3, #0] + 8005f64: 2201 movs r2, #1 + 8005f66: 2100 movs r1, #0 + 8005f68: 4618 mov r0, r3 + 8005f6a: f000 fc13 bl 8006794 TIM_CCxChannelCmd(htim->Instance, TIM_CHANNEL_2, TIM_CCx_ENABLE); - 8005eb6: 687b ldr r3, [r7, #4] - 8005eb8: 681b ldr r3, [r3, #0] - 8005eba: 2201 movs r2, #1 - 8005ebc: 2104 movs r1, #4 - 8005ebe: 4618 mov r0, r3 - 8005ec0: f000 fc0c bl 80066dc + 8005f6e: 687b ldr r3, [r7, #4] + 8005f70: 681b ldr r3, [r3, #0] + 8005f72: 2201 movs r2, #1 + 8005f74: 2104 movs r1, #4 + 8005f76: 4618 mov r0, r3 + 8005f78: f000 fc0c bl 8006794 break; - 8005ec4: bf00 nop + 8005f7c: bf00 nop } } /* Enable the Peripheral */ __HAL_TIM_ENABLE(htim); - 8005ec6: 687b ldr r3, [r7, #4] - 8005ec8: 681b ldr r3, [r3, #0] - 8005eca: 681a ldr r2, [r3, #0] - 8005ecc: 687b ldr r3, [r7, #4] - 8005ece: 681b ldr r3, [r3, #0] - 8005ed0: f042 0201 orr.w r2, r2, #1 - 8005ed4: 601a str r2, [r3, #0] + 8005f7e: 687b ldr r3, [r7, #4] + 8005f80: 681b ldr r3, [r3, #0] + 8005f82: 681a ldr r2, [r3, #0] + 8005f84: 687b ldr r3, [r7, #4] + 8005f86: 681b ldr r3, [r3, #0] + 8005f88: f042 0201 orr.w r2, r2, #1 + 8005f8c: 601a str r2, [r3, #0] /* Return function status */ return HAL_OK; - 8005ed6: 2300 movs r3, #0 + 8005f8e: 2300 movs r3, #0 } - 8005ed8: 4618 mov r0, r3 - 8005eda: 3710 adds r7, #16 - 8005edc: 46bd mov sp, r7 - 8005ede: bd80 pop {r7, pc} + 8005f90: 4618 mov r0, r3 + 8005f92: 3710 adds r7, #16 + 8005f94: 46bd mov sp, r7 + 8005f96: bd80 pop {r7, pc} -08005ee0 : +08005f98 : * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, const TIM_OC_InitTypeDef *sConfig, uint32_t Channel) { - 8005ee0: b580 push {r7, lr} - 8005ee2: b086 sub sp, #24 - 8005ee4: af00 add r7, sp, #0 - 8005ee6: 60f8 str r0, [r7, #12] - 8005ee8: 60b9 str r1, [r7, #8] - 8005eea: 607a str r2, [r7, #4] + 8005f98: b580 push {r7, lr} + 8005f9a: b086 sub sp, #24 + 8005f9c: af00 add r7, sp, #0 + 8005f9e: 60f8 str r0, [r7, #12] + 8005fa0: 60b9 str r1, [r7, #8] + 8005fa2: 607a str r2, [r7, #4] HAL_StatusTypeDef status = HAL_OK; - 8005eec: 2300 movs r3, #0 - 8005eee: 75fb strb r3, [r7, #23] + 8005fa4: 2300 movs r3, #0 + 8005fa6: 75fb strb r3, [r7, #23] assert_param(IS_TIM_PWM_MODE(sConfig->OCMode)); assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity)); assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode)); /* Process Locked */ __HAL_LOCK(htim); - 8005ef0: 68fb ldr r3, [r7, #12] - 8005ef2: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 8005ef6: 2b01 cmp r3, #1 - 8005ef8: d101 bne.n 8005efe - 8005efa: 2302 movs r3, #2 - 8005efc: e0ae b.n 800605c - 8005efe: 68fb ldr r3, [r7, #12] - 8005f00: 2201 movs r2, #1 - 8005f02: f883 203c strb.w r2, [r3, #60] @ 0x3c + 8005fa8: 68fb ldr r3, [r7, #12] + 8005faa: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 8005fae: 2b01 cmp r3, #1 + 8005fb0: d101 bne.n 8005fb6 + 8005fb2: 2302 movs r3, #2 + 8005fb4: e0ae b.n 8006114 + 8005fb6: 68fb ldr r3, [r7, #12] + 8005fb8: 2201 movs r2, #1 + 8005fba: f883 203c strb.w r2, [r3, #60] @ 0x3c switch (Channel) - 8005f06: 687b ldr r3, [r7, #4] - 8005f08: 2b0c cmp r3, #12 - 8005f0a: f200 809f bhi.w 800604c - 8005f0e: a201 add r2, pc, #4 @ (adr r2, 8005f14 ) - 8005f10: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8005f14: 08005f49 .word 0x08005f49 - 8005f18: 0800604d .word 0x0800604d - 8005f1c: 0800604d .word 0x0800604d - 8005f20: 0800604d .word 0x0800604d - 8005f24: 08005f89 .word 0x08005f89 - 8005f28: 0800604d .word 0x0800604d - 8005f2c: 0800604d .word 0x0800604d - 8005f30: 0800604d .word 0x0800604d - 8005f34: 08005fcb .word 0x08005fcb - 8005f38: 0800604d .word 0x0800604d - 8005f3c: 0800604d .word 0x0800604d - 8005f40: 0800604d .word 0x0800604d - 8005f44: 0800600b .word 0x0800600b + 8005fbe: 687b ldr r3, [r7, #4] + 8005fc0: 2b0c cmp r3, #12 + 8005fc2: f200 809f bhi.w 8006104 + 8005fc6: a201 add r2, pc, #4 @ (adr r2, 8005fcc ) + 8005fc8: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8005fcc: 08006001 .word 0x08006001 + 8005fd0: 08006105 .word 0x08006105 + 8005fd4: 08006105 .word 0x08006105 + 8005fd8: 08006105 .word 0x08006105 + 8005fdc: 08006041 .word 0x08006041 + 8005fe0: 08006105 .word 0x08006105 + 8005fe4: 08006105 .word 0x08006105 + 8005fe8: 08006105 .word 0x08006105 + 8005fec: 08006083 .word 0x08006083 + 8005ff0: 08006105 .word 0x08006105 + 8005ff4: 08006105 .word 0x08006105 + 8005ff8: 08006105 .word 0x08006105 + 8005ffc: 080060c3 .word 0x080060c3 { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); /* Configure the Channel 1 in PWM mode */ TIM_OC1_SetConfig(htim->Instance, sConfig); - 8005f48: 68fb ldr r3, [r7, #12] - 8005f4a: 681b ldr r3, [r3, #0] - 8005f4c: 68b9 ldr r1, [r7, #8] - 8005f4e: 4618 mov r0, r3 - 8005f50: f000 fa14 bl 800637c + 8006000: 68fb ldr r3, [r7, #12] + 8006002: 681b ldr r3, [r3, #0] + 8006004: 68b9 ldr r1, [r7, #8] + 8006006: 4618 mov r0, r3 + 8006008: f000 fa14 bl 8006434 /* Set the Preload enable bit for channel1 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE; - 8005f54: 68fb ldr r3, [r7, #12] - 8005f56: 681b ldr r3, [r3, #0] - 8005f58: 699a ldr r2, [r3, #24] - 8005f5a: 68fb ldr r3, [r7, #12] - 8005f5c: 681b ldr r3, [r3, #0] - 8005f5e: f042 0208 orr.w r2, r2, #8 - 8005f62: 619a str r2, [r3, #24] + 800600c: 68fb ldr r3, [r7, #12] + 800600e: 681b ldr r3, [r3, #0] + 8006010: 699a ldr r2, [r3, #24] + 8006012: 68fb ldr r3, [r7, #12] + 8006014: 681b ldr r3, [r3, #0] + 8006016: f042 0208 orr.w r2, r2, #8 + 800601a: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE; - 8005f64: 68fb ldr r3, [r7, #12] - 8005f66: 681b ldr r3, [r3, #0] - 8005f68: 699a ldr r2, [r3, #24] - 8005f6a: 68fb ldr r3, [r7, #12] - 8005f6c: 681b ldr r3, [r3, #0] - 8005f6e: f022 0204 bic.w r2, r2, #4 - 8005f72: 619a str r2, [r3, #24] + 800601c: 68fb ldr r3, [r7, #12] + 800601e: 681b ldr r3, [r3, #0] + 8006020: 699a ldr r2, [r3, #24] + 8006022: 68fb ldr r3, [r7, #12] + 8006024: 681b ldr r3, [r3, #0] + 8006026: f022 0204 bic.w r2, r2, #4 + 800602a: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode; - 8005f74: 68fb ldr r3, [r7, #12] - 8005f76: 681b ldr r3, [r3, #0] - 8005f78: 6999 ldr r1, [r3, #24] - 8005f7a: 68bb ldr r3, [r7, #8] - 8005f7c: 691a ldr r2, [r3, #16] - 8005f7e: 68fb ldr r3, [r7, #12] - 8005f80: 681b ldr r3, [r3, #0] - 8005f82: 430a orrs r2, r1 - 8005f84: 619a str r2, [r3, #24] + 800602c: 68fb ldr r3, [r7, #12] + 800602e: 681b ldr r3, [r3, #0] + 8006030: 6999 ldr r1, [r3, #24] + 8006032: 68bb ldr r3, [r7, #8] + 8006034: 691a ldr r2, [r3, #16] + 8006036: 68fb ldr r3, [r7, #12] + 8006038: 681b ldr r3, [r3, #0] + 800603a: 430a orrs r2, r1 + 800603c: 619a str r2, [r3, #24] break; - 8005f86: e064 b.n 8006052 + 800603e: e064 b.n 800610a { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); /* Configure the Channel 2 in PWM mode */ TIM_OC2_SetConfig(htim->Instance, sConfig); - 8005f88: 68fb ldr r3, [r7, #12] - 8005f8a: 681b ldr r3, [r3, #0] - 8005f8c: 68b9 ldr r1, [r7, #8] - 8005f8e: 4618 mov r0, r3 - 8005f90: f000 fa64 bl 800645c + 8006040: 68fb ldr r3, [r7, #12] + 8006042: 681b ldr r3, [r3, #0] + 8006044: 68b9 ldr r1, [r7, #8] + 8006046: 4618 mov r0, r3 + 8006048: f000 fa64 bl 8006514 /* Set the Preload enable bit for channel2 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE; - 8005f94: 68fb ldr r3, [r7, #12] - 8005f96: 681b ldr r3, [r3, #0] - 8005f98: 699a ldr r2, [r3, #24] - 8005f9a: 68fb ldr r3, [r7, #12] - 8005f9c: 681b ldr r3, [r3, #0] - 8005f9e: f442 6200 orr.w r2, r2, #2048 @ 0x800 - 8005fa2: 619a str r2, [r3, #24] + 800604c: 68fb ldr r3, [r7, #12] + 800604e: 681b ldr r3, [r3, #0] + 8006050: 699a ldr r2, [r3, #24] + 8006052: 68fb ldr r3, [r7, #12] + 8006054: 681b ldr r3, [r3, #0] + 8006056: f442 6200 orr.w r2, r2, #2048 @ 0x800 + 800605a: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE; - 8005fa4: 68fb ldr r3, [r7, #12] - 8005fa6: 681b ldr r3, [r3, #0] - 8005fa8: 699a ldr r2, [r3, #24] - 8005faa: 68fb ldr r3, [r7, #12] - 8005fac: 681b ldr r3, [r3, #0] - 8005fae: f422 6280 bic.w r2, r2, #1024 @ 0x400 - 8005fb2: 619a str r2, [r3, #24] + 800605c: 68fb ldr r3, [r7, #12] + 800605e: 681b ldr r3, [r3, #0] + 8006060: 699a ldr r2, [r3, #24] + 8006062: 68fb ldr r3, [r7, #12] + 8006064: 681b ldr r3, [r3, #0] + 8006066: f422 6280 bic.w r2, r2, #1024 @ 0x400 + 800606a: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U; - 8005fb4: 68fb ldr r3, [r7, #12] - 8005fb6: 681b ldr r3, [r3, #0] - 8005fb8: 6999 ldr r1, [r3, #24] - 8005fba: 68bb ldr r3, [r7, #8] - 8005fbc: 691b ldr r3, [r3, #16] - 8005fbe: 021a lsls r2, r3, #8 - 8005fc0: 68fb ldr r3, [r7, #12] - 8005fc2: 681b ldr r3, [r3, #0] - 8005fc4: 430a orrs r2, r1 - 8005fc6: 619a str r2, [r3, #24] + 800606c: 68fb ldr r3, [r7, #12] + 800606e: 681b ldr r3, [r3, #0] + 8006070: 6999 ldr r1, [r3, #24] + 8006072: 68bb ldr r3, [r7, #8] + 8006074: 691b ldr r3, [r3, #16] + 8006076: 021a lsls r2, r3, #8 + 8006078: 68fb ldr r3, [r7, #12] + 800607a: 681b ldr r3, [r3, #0] + 800607c: 430a orrs r2, r1 + 800607e: 619a str r2, [r3, #24] break; - 8005fc8: e043 b.n 8006052 + 8006080: e043 b.n 800610a { /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); /* Configure the Channel 3 in PWM mode */ TIM_OC3_SetConfig(htim->Instance, sConfig); - 8005fca: 68fb ldr r3, [r7, #12] - 8005fcc: 681b ldr r3, [r3, #0] - 8005fce: 68b9 ldr r1, [r7, #8] - 8005fd0: 4618 mov r0, r3 - 8005fd2: f000 fab9 bl 8006548 + 8006082: 68fb ldr r3, [r7, #12] + 8006084: 681b ldr r3, [r3, #0] + 8006086: 68b9 ldr r1, [r7, #8] + 8006088: 4618 mov r0, r3 + 800608a: f000 fab9 bl 8006600 /* Set the Preload enable bit for channel3 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE; - 8005fd6: 68fb ldr r3, [r7, #12] - 8005fd8: 681b ldr r3, [r3, #0] - 8005fda: 69da ldr r2, [r3, #28] - 8005fdc: 68fb ldr r3, [r7, #12] - 8005fde: 681b ldr r3, [r3, #0] - 8005fe0: f042 0208 orr.w r2, r2, #8 - 8005fe4: 61da str r2, [r3, #28] + 800608e: 68fb ldr r3, [r7, #12] + 8006090: 681b ldr r3, [r3, #0] + 8006092: 69da ldr r2, [r3, #28] + 8006094: 68fb ldr r3, [r7, #12] + 8006096: 681b ldr r3, [r3, #0] + 8006098: f042 0208 orr.w r2, r2, #8 + 800609c: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE; - 8005fe6: 68fb ldr r3, [r7, #12] - 8005fe8: 681b ldr r3, [r3, #0] - 8005fea: 69da ldr r2, [r3, #28] - 8005fec: 68fb ldr r3, [r7, #12] - 8005fee: 681b ldr r3, [r3, #0] - 8005ff0: f022 0204 bic.w r2, r2, #4 - 8005ff4: 61da str r2, [r3, #28] + 800609e: 68fb ldr r3, [r7, #12] + 80060a0: 681b ldr r3, [r3, #0] + 80060a2: 69da ldr r2, [r3, #28] + 80060a4: 68fb ldr r3, [r7, #12] + 80060a6: 681b ldr r3, [r3, #0] + 80060a8: f022 0204 bic.w r2, r2, #4 + 80060ac: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode; - 8005ff6: 68fb ldr r3, [r7, #12] - 8005ff8: 681b ldr r3, [r3, #0] - 8005ffa: 69d9 ldr r1, [r3, #28] - 8005ffc: 68bb ldr r3, [r7, #8] - 8005ffe: 691a ldr r2, [r3, #16] - 8006000: 68fb ldr r3, [r7, #12] - 8006002: 681b ldr r3, [r3, #0] - 8006004: 430a orrs r2, r1 - 8006006: 61da str r2, [r3, #28] + 80060ae: 68fb ldr r3, [r7, #12] + 80060b0: 681b ldr r3, [r3, #0] + 80060b2: 69d9 ldr r1, [r3, #28] + 80060b4: 68bb ldr r3, [r7, #8] + 80060b6: 691a ldr r2, [r3, #16] + 80060b8: 68fb ldr r3, [r7, #12] + 80060ba: 681b ldr r3, [r3, #0] + 80060bc: 430a orrs r2, r1 + 80060be: 61da str r2, [r3, #28] break; - 8006008: e023 b.n 8006052 + 80060c0: e023 b.n 800610a { /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); /* Configure the Channel 4 in PWM mode */ TIM_OC4_SetConfig(htim->Instance, sConfig); - 800600a: 68fb ldr r3, [r7, #12] - 800600c: 681b ldr r3, [r3, #0] - 800600e: 68b9 ldr r1, [r7, #8] - 8006010: 4618 mov r0, r3 - 8006012: f000 fb0d bl 8006630 + 80060c2: 68fb ldr r3, [r7, #12] + 80060c4: 681b ldr r3, [r3, #0] + 80060c6: 68b9 ldr r1, [r7, #8] + 80060c8: 4618 mov r0, r3 + 80060ca: f000 fb0d bl 80066e8 /* Set the Preload enable bit for channel4 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE; - 8006016: 68fb ldr r3, [r7, #12] - 8006018: 681b ldr r3, [r3, #0] - 800601a: 69da ldr r2, [r3, #28] - 800601c: 68fb ldr r3, [r7, #12] - 800601e: 681b ldr r3, [r3, #0] - 8006020: f442 6200 orr.w r2, r2, #2048 @ 0x800 - 8006024: 61da str r2, [r3, #28] + 80060ce: 68fb ldr r3, [r7, #12] + 80060d0: 681b ldr r3, [r3, #0] + 80060d2: 69da ldr r2, [r3, #28] + 80060d4: 68fb ldr r3, [r7, #12] + 80060d6: 681b ldr r3, [r3, #0] + 80060d8: f442 6200 orr.w r2, r2, #2048 @ 0x800 + 80060dc: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE; - 8006026: 68fb ldr r3, [r7, #12] - 8006028: 681b ldr r3, [r3, #0] - 800602a: 69da ldr r2, [r3, #28] - 800602c: 68fb ldr r3, [r7, #12] - 800602e: 681b ldr r3, [r3, #0] - 8006030: f422 6280 bic.w r2, r2, #1024 @ 0x400 - 8006034: 61da str r2, [r3, #28] + 80060de: 68fb ldr r3, [r7, #12] + 80060e0: 681b ldr r3, [r3, #0] + 80060e2: 69da ldr r2, [r3, #28] + 80060e4: 68fb ldr r3, [r7, #12] + 80060e6: 681b ldr r3, [r3, #0] + 80060e8: f422 6280 bic.w r2, r2, #1024 @ 0x400 + 80060ec: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U; - 8006036: 68fb ldr r3, [r7, #12] - 8006038: 681b ldr r3, [r3, #0] - 800603a: 69d9 ldr r1, [r3, #28] - 800603c: 68bb ldr r3, [r7, #8] - 800603e: 691b ldr r3, [r3, #16] - 8006040: 021a lsls r2, r3, #8 - 8006042: 68fb ldr r3, [r7, #12] - 8006044: 681b ldr r3, [r3, #0] - 8006046: 430a orrs r2, r1 - 8006048: 61da str r2, [r3, #28] + 80060ee: 68fb ldr r3, [r7, #12] + 80060f0: 681b ldr r3, [r3, #0] + 80060f2: 69d9 ldr r1, [r3, #28] + 80060f4: 68bb ldr r3, [r7, #8] + 80060f6: 691b ldr r3, [r3, #16] + 80060f8: 021a lsls r2, r3, #8 + 80060fa: 68fb ldr r3, [r7, #12] + 80060fc: 681b ldr r3, [r3, #0] + 80060fe: 430a orrs r2, r1 + 8006100: 61da str r2, [r3, #28] break; - 800604a: e002 b.n 8006052 + 8006102: e002 b.n 800610a } default: status = HAL_ERROR; - 800604c: 2301 movs r3, #1 - 800604e: 75fb strb r3, [r7, #23] + 8006104: 2301 movs r3, #1 + 8006106: 75fb strb r3, [r7, #23] break; - 8006050: bf00 nop + 8006108: bf00 nop } __HAL_UNLOCK(htim); - 8006052: 68fb ldr r3, [r7, #12] - 8006054: 2200 movs r2, #0 - 8006056: f883 203c strb.w r2, [r3, #60] @ 0x3c + 800610a: 68fb ldr r3, [r7, #12] + 800610c: 2200 movs r2, #0 + 800610e: f883 203c strb.w r2, [r3, #60] @ 0x3c return status; - 800605a: 7dfb ldrb r3, [r7, #23] + 8006112: 7dfb ldrb r3, [r7, #23] } - 800605c: 4618 mov r0, r3 - 800605e: 3718 adds r7, #24 - 8006060: 46bd mov sp, r7 - 8006062: bd80 pop {r7, pc} + 8006114: 4618 mov r0, r3 + 8006116: 3718 adds r7, #24 + 8006118: 46bd mov sp, r7 + 800611a: bd80 pop {r7, pc} -08006064 : +0800611c : * @brief PWM Pulse finished half complete callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PWM_PulseFinishedHalfCpltCallback(TIM_HandleTypeDef *htim) { - 8006064: b480 push {r7} - 8006066: b083 sub sp, #12 - 8006068: af00 add r7, sp, #0 - 800606a: 6078 str r0, [r7, #4] + 800611c: b480 push {r7} + 800611e: b083 sub sp, #12 + 8006120: af00 add r7, sp, #0 + 8006122: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PWM_PulseFinishedHalfCpltCallback could be implemented in the user file */ } - 800606c: bf00 nop - 800606e: 370c adds r7, #12 - 8006070: 46bd mov sp, r7 - 8006072: f85d 7b04 ldr.w r7, [sp], #4 - 8006076: 4770 bx lr + 8006124: bf00 nop + 8006126: 370c adds r7, #12 + 8006128: 46bd mov sp, r7 + 800612a: f85d 7b04 ldr.w r7, [sp], #4 + 800612e: 4770 bx lr -08006078 : +08006130 : * @brief Timer error callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_ErrorCallback(TIM_HandleTypeDef *htim) { - 8006078: b480 push {r7} - 800607a: b083 sub sp, #12 - 800607c: af00 add r7, sp, #0 - 800607e: 6078 str r0, [r7, #4] + 8006130: b480 push {r7} + 8006132: b083 sub sp, #12 + 8006134: af00 add r7, sp, #0 + 8006136: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_ErrorCallback could be implemented in the user file */ } - 8006080: bf00 nop - 8006082: 370c adds r7, #12 - 8006084: 46bd mov sp, r7 - 8006086: f85d 7b04 ldr.w r7, [sp], #4 - 800608a: 4770 bx lr + 8006138: bf00 nop + 800613a: 370c adds r7, #12 + 800613c: 46bd mov sp, r7 + 800613e: f85d 7b04 ldr.w r7, [sp], #4 + 8006142: 4770 bx lr -0800608c : +08006144 : * @brief TIM DMA error callback * @param hdma pointer to DMA handle. * @retval None */ void TIM_DMAError(DMA_HandleTypeDef *hdma) { - 800608c: b580 push {r7, lr} - 800608e: b084 sub sp, #16 - 8006090: af00 add r7, sp, #0 - 8006092: 6078 str r0, [r7, #4] + 8006144: b580 push {r7, lr} + 8006146: b084 sub sp, #16 + 8006148: af00 add r7, sp, #0 + 800614a: 6078 str r0, [r7, #4] TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 8006094: 687b ldr r3, [r7, #4] - 8006096: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006098: 60fb str r3, [r7, #12] + 800614c: 687b ldr r3, [r7, #4] + 800614e: 6b9b ldr r3, [r3, #56] @ 0x38 + 8006150: 60fb str r3, [r7, #12] if (hdma == htim->hdma[TIM_DMA_ID_CC1]) - 800609a: 68fb ldr r3, [r7, #12] - 800609c: 6a5b ldr r3, [r3, #36] @ 0x24 - 800609e: 687a ldr r2, [r7, #4] - 80060a0: 429a cmp r2, r3 - 80060a2: d107 bne.n 80060b4 + 8006152: 68fb ldr r3, [r7, #12] + 8006154: 6a5b ldr r3, [r3, #36] @ 0x24 + 8006156: 687a ldr r2, [r7, #4] + 8006158: 429a cmp r2, r3 + 800615a: d107 bne.n 800616c { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - 80060a4: 68fb ldr r3, [r7, #12] - 80060a6: 2201 movs r2, #1 - 80060a8: 771a strb r2, [r3, #28] + 800615c: 68fb ldr r3, [r7, #12] + 800615e: 2201 movs r2, #1 + 8006160: 771a strb r2, [r3, #28] TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - 80060aa: 68fb ldr r3, [r7, #12] - 80060ac: 2201 movs r2, #1 - 80060ae: f883 203e strb.w r2, [r3, #62] @ 0x3e - 80060b2: e02a b.n 800610a + 8006162: 68fb ldr r3, [r7, #12] + 8006164: 2201 movs r2, #1 + 8006166: f883 203e strb.w r2, [r3, #62] @ 0x3e + 800616a: e02a b.n 80061c2 } else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) - 80060b4: 68fb ldr r3, [r7, #12] - 80060b6: 6a9b ldr r3, [r3, #40] @ 0x28 - 80060b8: 687a ldr r2, [r7, #4] - 80060ba: 429a cmp r2, r3 - 80060bc: d107 bne.n 80060ce + 800616c: 68fb ldr r3, [r7, #12] + 800616e: 6a9b ldr r3, [r3, #40] @ 0x28 + 8006170: 687a ldr r2, [r7, #4] + 8006172: 429a cmp r2, r3 + 8006174: d107 bne.n 8006186 { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - 80060be: 68fb ldr r3, [r7, #12] - 80060c0: 2202 movs r2, #2 - 80060c2: 771a strb r2, [r3, #28] + 8006176: 68fb ldr r3, [r7, #12] + 8006178: 2202 movs r2, #2 + 800617a: 771a strb r2, [r3, #28] TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - 80060c4: 68fb ldr r3, [r7, #12] - 80060c6: 2201 movs r2, #1 - 80060c8: f883 203f strb.w r2, [r3, #63] @ 0x3f - 80060cc: e01d b.n 800610a + 800617c: 68fb ldr r3, [r7, #12] + 800617e: 2201 movs r2, #1 + 8006180: f883 203f strb.w r2, [r3, #63] @ 0x3f + 8006184: e01d b.n 80061c2 } else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) - 80060ce: 68fb ldr r3, [r7, #12] - 80060d0: 6adb ldr r3, [r3, #44] @ 0x2c - 80060d2: 687a ldr r2, [r7, #4] - 80060d4: 429a cmp r2, r3 - 80060d6: d107 bne.n 80060e8 + 8006186: 68fb ldr r3, [r7, #12] + 8006188: 6adb ldr r3, [r3, #44] @ 0x2c + 800618a: 687a ldr r2, [r7, #4] + 800618c: 429a cmp r2, r3 + 800618e: d107 bne.n 80061a0 { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - 80060d8: 68fb ldr r3, [r7, #12] - 80060da: 2204 movs r2, #4 - 80060dc: 771a strb r2, [r3, #28] + 8006190: 68fb ldr r3, [r7, #12] + 8006192: 2204 movs r2, #4 + 8006194: 771a strb r2, [r3, #28] TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); - 80060de: 68fb ldr r3, [r7, #12] - 80060e0: 2201 movs r2, #1 - 80060e2: f883 2040 strb.w r2, [r3, #64] @ 0x40 - 80060e6: e010 b.n 800610a + 8006196: 68fb ldr r3, [r7, #12] + 8006198: 2201 movs r2, #1 + 800619a: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 800619e: e010 b.n 80061c2 } else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) - 80060e8: 68fb ldr r3, [r7, #12] - 80060ea: 6b1b ldr r3, [r3, #48] @ 0x30 - 80060ec: 687a ldr r2, [r7, #4] - 80060ee: 429a cmp r2, r3 - 80060f0: d107 bne.n 8006102 + 80061a0: 68fb ldr r3, [r7, #12] + 80061a2: 6b1b ldr r3, [r3, #48] @ 0x30 + 80061a4: 687a ldr r2, [r7, #4] + 80061a6: 429a cmp r2, r3 + 80061a8: d107 bne.n 80061ba { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - 80060f2: 68fb ldr r3, [r7, #12] - 80060f4: 2208 movs r2, #8 - 80060f6: 771a strb r2, [r3, #28] + 80061aa: 68fb ldr r3, [r7, #12] + 80061ac: 2208 movs r2, #8 + 80061ae: 771a strb r2, [r3, #28] TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY); - 80060f8: 68fb ldr r3, [r7, #12] - 80060fa: 2201 movs r2, #1 - 80060fc: f883 2041 strb.w r2, [r3, #65] @ 0x41 - 8006100: e003 b.n 800610a + 80061b0: 68fb ldr r3, [r7, #12] + 80061b2: 2201 movs r2, #1 + 80061b4: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 80061b8: e003 b.n 80061c2 } else { htim->State = HAL_TIM_STATE_READY; - 8006102: 68fb ldr r3, [r7, #12] - 8006104: 2201 movs r2, #1 - 8006106: f883 203d strb.w r2, [r3, #61] @ 0x3d + 80061ba: 68fb ldr r3, [r7, #12] + 80061bc: 2201 movs r2, #1 + 80061be: f883 203d strb.w r2, [r3, #61] @ 0x3d } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->ErrorCallback(htim); #else HAL_TIM_ErrorCallback(htim); - 800610a: 68f8 ldr r0, [r7, #12] - 800610c: f7ff ffb4 bl 8006078 + 80061c2: 68f8 ldr r0, [r7, #12] + 80061c4: f7ff ffb4 bl 8006130 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 8006110: 68fb ldr r3, [r7, #12] - 8006112: 2200 movs r2, #0 - 8006114: 771a strb r2, [r3, #28] + 80061c8: 68fb ldr r3, [r7, #12] + 80061ca: 2200 movs r2, #0 + 80061cc: 771a strb r2, [r3, #28] } - 8006116: bf00 nop - 8006118: 3710 adds r7, #16 - 800611a: 46bd mov sp, r7 - 800611c: bd80 pop {r7, pc} + 80061ce: bf00 nop + 80061d0: 3710 adds r7, #16 + 80061d2: 46bd mov sp, r7 + 80061d4: bd80 pop {r7, pc} -0800611e : +080061d6 : * @brief TIM DMA Delay Pulse complete callback. * @param hdma pointer to DMA handle. * @retval None */ static void TIM_DMADelayPulseCplt(DMA_HandleTypeDef *hdma) { - 800611e: b580 push {r7, lr} - 8006120: b084 sub sp, #16 - 8006122: af00 add r7, sp, #0 - 8006124: 6078 str r0, [r7, #4] + 80061d6: b580 push {r7, lr} + 80061d8: b084 sub sp, #16 + 80061da: af00 add r7, sp, #0 + 80061dc: 6078 str r0, [r7, #4] TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 8006126: 687b ldr r3, [r7, #4] - 8006128: 6b9b ldr r3, [r3, #56] @ 0x38 - 800612a: 60fb str r3, [r7, #12] + 80061de: 687b ldr r3, [r7, #4] + 80061e0: 6b9b ldr r3, [r3, #56] @ 0x38 + 80061e2: 60fb str r3, [r7, #12] if (hdma == htim->hdma[TIM_DMA_ID_CC1]) - 800612c: 68fb ldr r3, [r7, #12] - 800612e: 6a5b ldr r3, [r3, #36] @ 0x24 - 8006130: 687a ldr r2, [r7, #4] - 8006132: 429a cmp r2, r3 - 8006134: d10b bne.n 800614e + 80061e4: 68fb ldr r3, [r7, #12] + 80061e6: 6a5b ldr r3, [r3, #36] @ 0x24 + 80061e8: 687a ldr r2, [r7, #4] + 80061ea: 429a cmp r2, r3 + 80061ec: d10b bne.n 8006206 { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - 8006136: 68fb ldr r3, [r7, #12] - 8006138: 2201 movs r2, #1 - 800613a: 771a strb r2, [r3, #28] + 80061ee: 68fb ldr r3, [r7, #12] + 80061f0: 2201 movs r2, #1 + 80061f2: 771a strb r2, [r3, #28] if (hdma->Init.Mode == DMA_NORMAL) - 800613c: 687b ldr r3, [r7, #4] - 800613e: 69db ldr r3, [r3, #28] - 8006140: 2b00 cmp r3, #0 - 8006142: d136 bne.n 80061b2 + 80061f4: 687b ldr r3, [r7, #4] + 80061f6: 69db ldr r3, [r3, #28] + 80061f8: 2b00 cmp r3, #0 + 80061fa: d136 bne.n 800626a { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_1, HAL_TIM_CHANNEL_STATE_READY); - 8006144: 68fb ldr r3, [r7, #12] - 8006146: 2201 movs r2, #1 - 8006148: f883 203e strb.w r2, [r3, #62] @ 0x3e - 800614c: e031 b.n 80061b2 + 80061fc: 68fb ldr r3, [r7, #12] + 80061fe: 2201 movs r2, #1 + 8006200: f883 203e strb.w r2, [r3, #62] @ 0x3e + 8006204: e031 b.n 800626a } } else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) - 800614e: 68fb ldr r3, [r7, #12] - 8006150: 6a9b ldr r3, [r3, #40] @ 0x28 - 8006152: 687a ldr r2, [r7, #4] - 8006154: 429a cmp r2, r3 - 8006156: d10b bne.n 8006170 + 8006206: 68fb ldr r3, [r7, #12] + 8006208: 6a9b ldr r3, [r3, #40] @ 0x28 + 800620a: 687a ldr r2, [r7, #4] + 800620c: 429a cmp r2, r3 + 800620e: d10b bne.n 8006228 { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - 8006158: 68fb ldr r3, [r7, #12] - 800615a: 2202 movs r2, #2 - 800615c: 771a strb r2, [r3, #28] + 8006210: 68fb ldr r3, [r7, #12] + 8006212: 2202 movs r2, #2 + 8006214: 771a strb r2, [r3, #28] if (hdma->Init.Mode == DMA_NORMAL) - 800615e: 687b ldr r3, [r7, #4] - 8006160: 69db ldr r3, [r3, #28] - 8006162: 2b00 cmp r3, #0 - 8006164: d125 bne.n 80061b2 + 8006216: 687b ldr r3, [r7, #4] + 8006218: 69db ldr r3, [r3, #28] + 800621a: 2b00 cmp r3, #0 + 800621c: d125 bne.n 800626a { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_2, HAL_TIM_CHANNEL_STATE_READY); - 8006166: 68fb ldr r3, [r7, #12] - 8006168: 2201 movs r2, #1 - 800616a: f883 203f strb.w r2, [r3, #63] @ 0x3f - 800616e: e020 b.n 80061b2 + 800621e: 68fb ldr r3, [r7, #12] + 8006220: 2201 movs r2, #1 + 8006222: f883 203f strb.w r2, [r3, #63] @ 0x3f + 8006226: e020 b.n 800626a } } else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) - 8006170: 68fb ldr r3, [r7, #12] - 8006172: 6adb ldr r3, [r3, #44] @ 0x2c - 8006174: 687a ldr r2, [r7, #4] - 8006176: 429a cmp r2, r3 - 8006178: d10b bne.n 8006192 + 8006228: 68fb ldr r3, [r7, #12] + 800622a: 6adb ldr r3, [r3, #44] @ 0x2c + 800622c: 687a ldr r2, [r7, #4] + 800622e: 429a cmp r2, r3 + 8006230: d10b bne.n 800624a { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - 800617a: 68fb ldr r3, [r7, #12] - 800617c: 2204 movs r2, #4 - 800617e: 771a strb r2, [r3, #28] + 8006232: 68fb ldr r3, [r7, #12] + 8006234: 2204 movs r2, #4 + 8006236: 771a strb r2, [r3, #28] if (hdma->Init.Mode == DMA_NORMAL) - 8006180: 687b ldr r3, [r7, #4] - 8006182: 69db ldr r3, [r3, #28] - 8006184: 2b00 cmp r3, #0 - 8006186: d114 bne.n 80061b2 + 8006238: 687b ldr r3, [r7, #4] + 800623a: 69db ldr r3, [r3, #28] + 800623c: 2b00 cmp r3, #0 + 800623e: d114 bne.n 800626a { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_3, HAL_TIM_CHANNEL_STATE_READY); - 8006188: 68fb ldr r3, [r7, #12] - 800618a: 2201 movs r2, #1 - 800618c: f883 2040 strb.w r2, [r3, #64] @ 0x40 - 8006190: e00f b.n 80061b2 + 8006240: 68fb ldr r3, [r7, #12] + 8006242: 2201 movs r2, #1 + 8006244: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 8006248: e00f b.n 800626a } } else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) - 8006192: 68fb ldr r3, [r7, #12] - 8006194: 6b1b ldr r3, [r3, #48] @ 0x30 - 8006196: 687a ldr r2, [r7, #4] - 8006198: 429a cmp r2, r3 - 800619a: d10a bne.n 80061b2 + 800624a: 68fb ldr r3, [r7, #12] + 800624c: 6b1b ldr r3, [r3, #48] @ 0x30 + 800624e: 687a ldr r2, [r7, #4] + 8006250: 429a cmp r2, r3 + 8006252: d10a bne.n 800626a { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - 800619c: 68fb ldr r3, [r7, #12] - 800619e: 2208 movs r2, #8 - 80061a0: 771a strb r2, [r3, #28] + 8006254: 68fb ldr r3, [r7, #12] + 8006256: 2208 movs r2, #8 + 8006258: 771a strb r2, [r3, #28] if (hdma->Init.Mode == DMA_NORMAL) - 80061a2: 687b ldr r3, [r7, #4] - 80061a4: 69db ldr r3, [r3, #28] - 80061a6: 2b00 cmp r3, #0 - 80061a8: d103 bne.n 80061b2 + 800625a: 687b ldr r3, [r7, #4] + 800625c: 69db ldr r3, [r3, #28] + 800625e: 2b00 cmp r3, #0 + 8006260: d103 bne.n 800626a { TIM_CHANNEL_STATE_SET(htim, TIM_CHANNEL_4, HAL_TIM_CHANNEL_STATE_READY); - 80061aa: 68fb ldr r3, [r7, #12] - 80061ac: 2201 movs r2, #1 - 80061ae: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8006262: 68fb ldr r3, [r7, #12] + 8006264: 2201 movs r2, #1 + 8006266: f883 2041 strb.w r2, [r3, #65] @ 0x41 } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_PWM_PulseFinishedCallback(htim); - 80061b2: 68f8 ldr r0, [r7, #12] - 80061b4: f7fb f9a4 bl 8001500 + 800626a: 68f8 ldr r0, [r7, #12] + 800626c: f7fb f9a4 bl 80015b8 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 80061b8: 68fb ldr r3, [r7, #12] - 80061ba: 2200 movs r2, #0 - 80061bc: 771a strb r2, [r3, #28] + 8006270: 68fb ldr r3, [r7, #12] + 8006272: 2200 movs r2, #0 + 8006274: 771a strb r2, [r3, #28] } - 80061be: bf00 nop - 80061c0: 3710 adds r7, #16 - 80061c2: 46bd mov sp, r7 - 80061c4: bd80 pop {r7, pc} + 8006276: bf00 nop + 8006278: 3710 adds r7, #16 + 800627a: 46bd mov sp, r7 + 800627c: bd80 pop {r7, pc} -080061c6 : +0800627e : * @brief TIM DMA Delay Pulse half complete callback. * @param hdma pointer to DMA handle. * @retval None */ void TIM_DMADelayPulseHalfCplt(DMA_HandleTypeDef *hdma) { - 80061c6: b580 push {r7, lr} - 80061c8: b084 sub sp, #16 - 80061ca: af00 add r7, sp, #0 - 80061cc: 6078 str r0, [r7, #4] + 800627e: b580 push {r7, lr} + 8006280: b084 sub sp, #16 + 8006282: af00 add r7, sp, #0 + 8006284: 6078 str r0, [r7, #4] TIM_HandleTypeDef *htim = (TIM_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 80061ce: 687b ldr r3, [r7, #4] - 80061d0: 6b9b ldr r3, [r3, #56] @ 0x38 - 80061d2: 60fb str r3, [r7, #12] + 8006286: 687b ldr r3, [r7, #4] + 8006288: 6b9b ldr r3, [r3, #56] @ 0x38 + 800628a: 60fb str r3, [r7, #12] if (hdma == htim->hdma[TIM_DMA_ID_CC1]) - 80061d4: 68fb ldr r3, [r7, #12] - 80061d6: 6a5b ldr r3, [r3, #36] @ 0x24 - 80061d8: 687a ldr r2, [r7, #4] - 80061da: 429a cmp r2, r3 - 80061dc: d103 bne.n 80061e6 + 800628c: 68fb ldr r3, [r7, #12] + 800628e: 6a5b ldr r3, [r3, #36] @ 0x24 + 8006290: 687a ldr r2, [r7, #4] + 8006292: 429a cmp r2, r3 + 8006294: d103 bne.n 800629e { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; - 80061de: 68fb ldr r3, [r7, #12] - 80061e0: 2201 movs r2, #1 - 80061e2: 771a strb r2, [r3, #28] - 80061e4: e019 b.n 800621a + 8006296: 68fb ldr r3, [r7, #12] + 8006298: 2201 movs r2, #1 + 800629a: 771a strb r2, [r3, #28] + 800629c: e019 b.n 80062d2 } else if (hdma == htim->hdma[TIM_DMA_ID_CC2]) - 80061e6: 68fb ldr r3, [r7, #12] - 80061e8: 6a9b ldr r3, [r3, #40] @ 0x28 - 80061ea: 687a ldr r2, [r7, #4] - 80061ec: 429a cmp r2, r3 - 80061ee: d103 bne.n 80061f8 + 800629e: 68fb ldr r3, [r7, #12] + 80062a0: 6a9b ldr r3, [r3, #40] @ 0x28 + 80062a2: 687a ldr r2, [r7, #4] + 80062a4: 429a cmp r2, r3 + 80062a6: d103 bne.n 80062b0 { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; - 80061f0: 68fb ldr r3, [r7, #12] - 80061f2: 2202 movs r2, #2 - 80061f4: 771a strb r2, [r3, #28] - 80061f6: e010 b.n 800621a + 80062a8: 68fb ldr r3, [r7, #12] + 80062aa: 2202 movs r2, #2 + 80062ac: 771a strb r2, [r3, #28] + 80062ae: e010 b.n 80062d2 } else if (hdma == htim->hdma[TIM_DMA_ID_CC3]) - 80061f8: 68fb ldr r3, [r7, #12] - 80061fa: 6adb ldr r3, [r3, #44] @ 0x2c - 80061fc: 687a ldr r2, [r7, #4] - 80061fe: 429a cmp r2, r3 - 8006200: d103 bne.n 800620a + 80062b0: 68fb ldr r3, [r7, #12] + 80062b2: 6adb ldr r3, [r3, #44] @ 0x2c + 80062b4: 687a ldr r2, [r7, #4] + 80062b6: 429a cmp r2, r3 + 80062b8: d103 bne.n 80062c2 { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; - 8006202: 68fb ldr r3, [r7, #12] - 8006204: 2204 movs r2, #4 - 8006206: 771a strb r2, [r3, #28] - 8006208: e007 b.n 800621a + 80062ba: 68fb ldr r3, [r7, #12] + 80062bc: 2204 movs r2, #4 + 80062be: 771a strb r2, [r3, #28] + 80062c0: e007 b.n 80062d2 } else if (hdma == htim->hdma[TIM_DMA_ID_CC4]) - 800620a: 68fb ldr r3, [r7, #12] - 800620c: 6b1b ldr r3, [r3, #48] @ 0x30 - 800620e: 687a ldr r2, [r7, #4] - 8006210: 429a cmp r2, r3 - 8006212: d102 bne.n 800621a + 80062c2: 68fb ldr r3, [r7, #12] + 80062c4: 6b1b ldr r3, [r3, #48] @ 0x30 + 80062c6: 687a ldr r2, [r7, #4] + 80062c8: 429a cmp r2, r3 + 80062ca: d102 bne.n 80062d2 { htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; - 8006214: 68fb ldr r3, [r7, #12] - 8006216: 2208 movs r2, #8 - 8006218: 771a strb r2, [r3, #28] + 80062cc: 68fb ldr r3, [r7, #12] + 80062ce: 2208 movs r2, #8 + 80062d0: 771a strb r2, [r3, #28] } #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PWM_PulseFinishedHalfCpltCallback(htim); #else HAL_TIM_PWM_PulseFinishedHalfCpltCallback(htim); - 800621a: 68f8 ldr r0, [r7, #12] - 800621c: f7ff ff22 bl 8006064 + 80062d2: 68f8 ldr r0, [r7, #12] + 80062d4: f7ff ff22 bl 800611c #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; - 8006220: 68fb ldr r3, [r7, #12] - 8006222: 2200 movs r2, #0 - 8006224: 771a strb r2, [r3, #28] + 80062d8: 68fb ldr r3, [r7, #12] + 80062da: 2200 movs r2, #0 + 80062dc: 771a strb r2, [r3, #28] } - 8006226: bf00 nop - 8006228: 3710 adds r7, #16 - 800622a: 46bd mov sp, r7 - 800622c: bd80 pop {r7, pc} + 80062de: bf00 nop + 80062e0: 3710 adds r7, #16 + 80062e2: 46bd mov sp, r7 + 80062e4: bd80 pop {r7, pc} ... -08006230 : +080062e8 : * @param TIMx TIM peripheral * @param Structure TIM Base configuration structure * @retval None */ void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure) { - 8006230: b480 push {r7} - 8006232: b085 sub sp, #20 - 8006234: af00 add r7, sp, #0 - 8006236: 6078 str r0, [r7, #4] - 8006238: 6039 str r1, [r7, #0] + 80062e8: b480 push {r7} + 80062ea: b085 sub sp, #20 + 80062ec: af00 add r7, sp, #0 + 80062ee: 6078 str r0, [r7, #4] + 80062f0: 6039 str r1, [r7, #0] uint32_t tmpcr1; tmpcr1 = TIMx->CR1; - 800623a: 687b ldr r3, [r7, #4] - 800623c: 681b ldr r3, [r3, #0] - 800623e: 60fb str r3, [r7, #12] + 80062f2: 687b ldr r3, [r7, #4] + 80062f4: 681b ldr r3, [r3, #0] + 80062f6: 60fb str r3, [r7, #12] /* Set TIM Time Base Unit parameters ---------------------------------------*/ if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) - 8006240: 687b ldr r3, [r7, #4] - 8006242: 4a43 ldr r2, [pc, #268] @ (8006350 ) - 8006244: 4293 cmp r3, r2 - 8006246: d013 beq.n 8006270 - 8006248: 687b ldr r3, [r7, #4] - 800624a: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 800624e: d00f beq.n 8006270 - 8006250: 687b ldr r3, [r7, #4] - 8006252: 4a40 ldr r2, [pc, #256] @ (8006354 ) - 8006254: 4293 cmp r3, r2 - 8006256: d00b beq.n 8006270 - 8006258: 687b ldr r3, [r7, #4] - 800625a: 4a3f ldr r2, [pc, #252] @ (8006358 ) - 800625c: 4293 cmp r3, r2 - 800625e: d007 beq.n 8006270 - 8006260: 687b ldr r3, [r7, #4] - 8006262: 4a3e ldr r2, [pc, #248] @ (800635c ) - 8006264: 4293 cmp r3, r2 - 8006266: d003 beq.n 8006270 - 8006268: 687b ldr r3, [r7, #4] - 800626a: 4a3d ldr r2, [pc, #244] @ (8006360 ) - 800626c: 4293 cmp r3, r2 - 800626e: d108 bne.n 8006282 + 80062f8: 687b ldr r3, [r7, #4] + 80062fa: 4a43 ldr r2, [pc, #268] @ (8006408 ) + 80062fc: 4293 cmp r3, r2 + 80062fe: d013 beq.n 8006328 + 8006300: 687b ldr r3, [r7, #4] + 8006302: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8006306: d00f beq.n 8006328 + 8006308: 687b ldr r3, [r7, #4] + 800630a: 4a40 ldr r2, [pc, #256] @ (800640c ) + 800630c: 4293 cmp r3, r2 + 800630e: d00b beq.n 8006328 + 8006310: 687b ldr r3, [r7, #4] + 8006312: 4a3f ldr r2, [pc, #252] @ (8006410 ) + 8006314: 4293 cmp r3, r2 + 8006316: d007 beq.n 8006328 + 8006318: 687b ldr r3, [r7, #4] + 800631a: 4a3e ldr r2, [pc, #248] @ (8006414 ) + 800631c: 4293 cmp r3, r2 + 800631e: d003 beq.n 8006328 + 8006320: 687b ldr r3, [r7, #4] + 8006322: 4a3d ldr r2, [pc, #244] @ (8006418 ) + 8006324: 4293 cmp r3, r2 + 8006326: d108 bne.n 800633a { /* Select the Counter Mode */ tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); - 8006270: 68fb ldr r3, [r7, #12] - 8006272: f023 0370 bic.w r3, r3, #112 @ 0x70 - 8006276: 60fb str r3, [r7, #12] + 8006328: 68fb ldr r3, [r7, #12] + 800632a: f023 0370 bic.w r3, r3, #112 @ 0x70 + 800632e: 60fb str r3, [r7, #12] tmpcr1 |= Structure->CounterMode; - 8006278: 683b ldr r3, [r7, #0] - 800627a: 685b ldr r3, [r3, #4] - 800627c: 68fa ldr r2, [r7, #12] - 800627e: 4313 orrs r3, r2 - 8006280: 60fb str r3, [r7, #12] + 8006330: 683b ldr r3, [r7, #0] + 8006332: 685b ldr r3, [r3, #4] + 8006334: 68fa ldr r2, [r7, #12] + 8006336: 4313 orrs r3, r2 + 8006338: 60fb str r3, [r7, #12] } if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) - 8006282: 687b ldr r3, [r7, #4] - 8006284: 4a32 ldr r2, [pc, #200] @ (8006350 ) - 8006286: 4293 cmp r3, r2 - 8006288: d02b beq.n 80062e2 - 800628a: 687b ldr r3, [r7, #4] - 800628c: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 8006290: d027 beq.n 80062e2 - 8006292: 687b ldr r3, [r7, #4] - 8006294: 4a2f ldr r2, [pc, #188] @ (8006354 ) - 8006296: 4293 cmp r3, r2 - 8006298: d023 beq.n 80062e2 - 800629a: 687b ldr r3, [r7, #4] - 800629c: 4a2e ldr r2, [pc, #184] @ (8006358 ) - 800629e: 4293 cmp r3, r2 - 80062a0: d01f beq.n 80062e2 - 80062a2: 687b ldr r3, [r7, #4] - 80062a4: 4a2d ldr r2, [pc, #180] @ (800635c ) - 80062a6: 4293 cmp r3, r2 - 80062a8: d01b beq.n 80062e2 - 80062aa: 687b ldr r3, [r7, #4] - 80062ac: 4a2c ldr r2, [pc, #176] @ (8006360 ) - 80062ae: 4293 cmp r3, r2 - 80062b0: d017 beq.n 80062e2 - 80062b2: 687b ldr r3, [r7, #4] - 80062b4: 4a2b ldr r2, [pc, #172] @ (8006364 ) - 80062b6: 4293 cmp r3, r2 - 80062b8: d013 beq.n 80062e2 - 80062ba: 687b ldr r3, [r7, #4] - 80062bc: 4a2a ldr r2, [pc, #168] @ (8006368 ) - 80062be: 4293 cmp r3, r2 - 80062c0: d00f beq.n 80062e2 - 80062c2: 687b ldr r3, [r7, #4] - 80062c4: 4a29 ldr r2, [pc, #164] @ (800636c ) - 80062c6: 4293 cmp r3, r2 - 80062c8: d00b beq.n 80062e2 - 80062ca: 687b ldr r3, [r7, #4] - 80062cc: 4a28 ldr r2, [pc, #160] @ (8006370 ) - 80062ce: 4293 cmp r3, r2 - 80062d0: d007 beq.n 80062e2 - 80062d2: 687b ldr r3, [r7, #4] - 80062d4: 4a27 ldr r2, [pc, #156] @ (8006374 ) - 80062d6: 4293 cmp r3, r2 - 80062d8: d003 beq.n 80062e2 - 80062da: 687b ldr r3, [r7, #4] - 80062dc: 4a26 ldr r2, [pc, #152] @ (8006378 ) - 80062de: 4293 cmp r3, r2 - 80062e0: d108 bne.n 80062f4 + 800633a: 687b ldr r3, [r7, #4] + 800633c: 4a32 ldr r2, [pc, #200] @ (8006408 ) + 800633e: 4293 cmp r3, r2 + 8006340: d02b beq.n 800639a + 8006342: 687b ldr r3, [r7, #4] + 8006344: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8006348: d027 beq.n 800639a + 800634a: 687b ldr r3, [r7, #4] + 800634c: 4a2f ldr r2, [pc, #188] @ (800640c ) + 800634e: 4293 cmp r3, r2 + 8006350: d023 beq.n 800639a + 8006352: 687b ldr r3, [r7, #4] + 8006354: 4a2e ldr r2, [pc, #184] @ (8006410 ) + 8006356: 4293 cmp r3, r2 + 8006358: d01f beq.n 800639a + 800635a: 687b ldr r3, [r7, #4] + 800635c: 4a2d ldr r2, [pc, #180] @ (8006414 ) + 800635e: 4293 cmp r3, r2 + 8006360: d01b beq.n 800639a + 8006362: 687b ldr r3, [r7, #4] + 8006364: 4a2c ldr r2, [pc, #176] @ (8006418 ) + 8006366: 4293 cmp r3, r2 + 8006368: d017 beq.n 800639a + 800636a: 687b ldr r3, [r7, #4] + 800636c: 4a2b ldr r2, [pc, #172] @ (800641c ) + 800636e: 4293 cmp r3, r2 + 8006370: d013 beq.n 800639a + 8006372: 687b ldr r3, [r7, #4] + 8006374: 4a2a ldr r2, [pc, #168] @ (8006420 ) + 8006376: 4293 cmp r3, r2 + 8006378: d00f beq.n 800639a + 800637a: 687b ldr r3, [r7, #4] + 800637c: 4a29 ldr r2, [pc, #164] @ (8006424 ) + 800637e: 4293 cmp r3, r2 + 8006380: d00b beq.n 800639a + 8006382: 687b ldr r3, [r7, #4] + 8006384: 4a28 ldr r2, [pc, #160] @ (8006428 ) + 8006386: 4293 cmp r3, r2 + 8006388: d007 beq.n 800639a + 800638a: 687b ldr r3, [r7, #4] + 800638c: 4a27 ldr r2, [pc, #156] @ (800642c ) + 800638e: 4293 cmp r3, r2 + 8006390: d003 beq.n 800639a + 8006392: 687b ldr r3, [r7, #4] + 8006394: 4a26 ldr r2, [pc, #152] @ (8006430 ) + 8006396: 4293 cmp r3, r2 + 8006398: d108 bne.n 80063ac { /* Set the clock division */ tmpcr1 &= ~TIM_CR1_CKD; - 80062e2: 68fb ldr r3, [r7, #12] - 80062e4: f423 7340 bic.w r3, r3, #768 @ 0x300 - 80062e8: 60fb str r3, [r7, #12] + 800639a: 68fb ldr r3, [r7, #12] + 800639c: f423 7340 bic.w r3, r3, #768 @ 0x300 + 80063a0: 60fb str r3, [r7, #12] tmpcr1 |= (uint32_t)Structure->ClockDivision; - 80062ea: 683b ldr r3, [r7, #0] - 80062ec: 68db ldr r3, [r3, #12] - 80062ee: 68fa ldr r2, [r7, #12] - 80062f0: 4313 orrs r3, r2 - 80062f2: 60fb str r3, [r7, #12] + 80063a2: 683b ldr r3, [r7, #0] + 80063a4: 68db ldr r3, [r3, #12] + 80063a6: 68fa ldr r2, [r7, #12] + 80063a8: 4313 orrs r3, r2 + 80063aa: 60fb str r3, [r7, #12] } /* Set the auto-reload preload */ MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); - 80062f4: 68fb ldr r3, [r7, #12] - 80062f6: f023 0280 bic.w r2, r3, #128 @ 0x80 - 80062fa: 683b ldr r3, [r7, #0] - 80062fc: 695b ldr r3, [r3, #20] - 80062fe: 4313 orrs r3, r2 - 8006300: 60fb str r3, [r7, #12] + 80063ac: 68fb ldr r3, [r7, #12] + 80063ae: f023 0280 bic.w r2, r3, #128 @ 0x80 + 80063b2: 683b ldr r3, [r7, #0] + 80063b4: 695b ldr r3, [r3, #20] + 80063b6: 4313 orrs r3, r2 + 80063b8: 60fb str r3, [r7, #12] /* Set the Autoreload value */ TIMx->ARR = (uint32_t)Structure->Period ; - 8006302: 683b ldr r3, [r7, #0] - 8006304: 689a ldr r2, [r3, #8] - 8006306: 687b ldr r3, [r7, #4] - 8006308: 62da str r2, [r3, #44] @ 0x2c + 80063ba: 683b ldr r3, [r7, #0] + 80063bc: 689a ldr r2, [r3, #8] + 80063be: 687b ldr r3, [r7, #4] + 80063c0: 62da str r2, [r3, #44] @ 0x2c /* Set the Prescaler value */ TIMx->PSC = Structure->Prescaler; - 800630a: 683b ldr r3, [r7, #0] - 800630c: 681a ldr r2, [r3, #0] - 800630e: 687b ldr r3, [r7, #4] - 8006310: 629a str r2, [r3, #40] @ 0x28 + 80063c2: 683b ldr r3, [r7, #0] + 80063c4: 681a ldr r2, [r3, #0] + 80063c6: 687b ldr r3, [r7, #4] + 80063c8: 629a str r2, [r3, #40] @ 0x28 if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) - 8006312: 687b ldr r3, [r7, #4] - 8006314: 4a0e ldr r2, [pc, #56] @ (8006350 ) - 8006316: 4293 cmp r3, r2 - 8006318: d003 beq.n 8006322 - 800631a: 687b ldr r3, [r7, #4] - 800631c: 4a10 ldr r2, [pc, #64] @ (8006360 ) - 800631e: 4293 cmp r3, r2 - 8006320: d103 bne.n 800632a + 80063ca: 687b ldr r3, [r7, #4] + 80063cc: 4a0e ldr r2, [pc, #56] @ (8006408 ) + 80063ce: 4293 cmp r3, r2 + 80063d0: d003 beq.n 80063da + 80063d2: 687b ldr r3, [r7, #4] + 80063d4: 4a10 ldr r2, [pc, #64] @ (8006418 ) + 80063d6: 4293 cmp r3, r2 + 80063d8: d103 bne.n 80063e2 { /* Set the Repetition Counter value */ TIMx->RCR = Structure->RepetitionCounter; - 8006322: 683b ldr r3, [r7, #0] - 8006324: 691a ldr r2, [r3, #16] - 8006326: 687b ldr r3, [r7, #4] - 8006328: 631a str r2, [r3, #48] @ 0x30 + 80063da: 683b ldr r3, [r7, #0] + 80063dc: 691a ldr r2, [r3, #16] + 80063de: 687b ldr r3, [r7, #4] + 80063e0: 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); - 800632a: 687b ldr r3, [r7, #4] - 800632c: 681b ldr r3, [r3, #0] - 800632e: f043 0204 orr.w r2, r3, #4 - 8006332: 687b ldr r3, [r7, #4] - 8006334: 601a str r2, [r3, #0] + 80063e2: 687b ldr r3, [r7, #4] + 80063e4: 681b ldr r3, [r3, #0] + 80063e6: f043 0204 orr.w r2, r3, #4 + 80063ea: 687b ldr r3, [r7, #4] + 80063ec: 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; - 8006336: 687b ldr r3, [r7, #4] - 8006338: 2201 movs r2, #1 - 800633a: 615a str r2, [r3, #20] + 80063ee: 687b ldr r3, [r7, #4] + 80063f0: 2201 movs r2, #1 + 80063f2: 615a str r2, [r3, #20] TIMx->CR1 = tmpcr1; - 800633c: 687b ldr r3, [r7, #4] - 800633e: 68fa ldr r2, [r7, #12] - 8006340: 601a str r2, [r3, #0] + 80063f4: 687b ldr r3, [r7, #4] + 80063f6: 68fa ldr r2, [r7, #12] + 80063f8: 601a str r2, [r3, #0] } - 8006342: bf00 nop - 8006344: 3714 adds r7, #20 - 8006346: 46bd mov sp, r7 - 8006348: f85d 7b04 ldr.w r7, [sp], #4 - 800634c: 4770 bx lr - 800634e: bf00 nop - 8006350: 40010000 .word 0x40010000 - 8006354: 40000400 .word 0x40000400 - 8006358: 40000800 .word 0x40000800 - 800635c: 40000c00 .word 0x40000c00 - 8006360: 40010400 .word 0x40010400 - 8006364: 40014000 .word 0x40014000 - 8006368: 40014400 .word 0x40014400 - 800636c: 40014800 .word 0x40014800 - 8006370: 40001800 .word 0x40001800 - 8006374: 40001c00 .word 0x40001c00 - 8006378: 40002000 .word 0x40002000 + 80063fa: bf00 nop + 80063fc: 3714 adds r7, #20 + 80063fe: 46bd mov sp, r7 + 8006400: f85d 7b04 ldr.w r7, [sp], #4 + 8006404: 4770 bx lr + 8006406: bf00 nop + 8006408: 40010000 .word 0x40010000 + 800640c: 40000400 .word 0x40000400 + 8006410: 40000800 .word 0x40000800 + 8006414: 40000c00 .word 0x40000c00 + 8006418: 40010400 .word 0x40010400 + 800641c: 40014000 .word 0x40014000 + 8006420: 40014400 .word 0x40014400 + 8006424: 40014800 .word 0x40014800 + 8006428: 40001800 .word 0x40001800 + 800642c: 40001c00 .word 0x40001c00 + 8006430: 40002000 .word 0x40002000 -0800637c : +08006434 : * @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) { - 800637c: b480 push {r7} - 800637e: b087 sub sp, #28 - 8006380: af00 add r7, sp, #0 - 8006382: 6078 str r0, [r7, #4] - 8006384: 6039 str r1, [r7, #0] + 8006434: b480 push {r7} + 8006436: b087 sub sp, #28 + 8006438: af00 add r7, sp, #0 + 800643a: 6078 str r0, [r7, #4] + 800643c: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 8006386: 687b ldr r3, [r7, #4] - 8006388: 6a1b ldr r3, [r3, #32] - 800638a: 617b str r3, [r7, #20] + 800643e: 687b ldr r3, [r7, #4] + 8006440: 6a1b ldr r3, [r3, #32] + 8006442: 617b str r3, [r7, #20] /* Disable the Channel 1: Reset the CC1E Bit */ TIMx->CCER &= ~TIM_CCER_CC1E; - 800638c: 687b ldr r3, [r7, #4] - 800638e: 6a1b ldr r3, [r3, #32] - 8006390: f023 0201 bic.w r2, r3, #1 - 8006394: 687b ldr r3, [r7, #4] - 8006396: 621a str r2, [r3, #32] + 8006444: 687b ldr r3, [r7, #4] + 8006446: 6a1b ldr r3, [r3, #32] + 8006448: f023 0201 bic.w r2, r3, #1 + 800644c: 687b ldr r3, [r7, #4] + 800644e: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 8006398: 687b ldr r3, [r7, #4] - 800639a: 685b ldr r3, [r3, #4] - 800639c: 613b str r3, [r7, #16] + 8006450: 687b ldr r3, [r7, #4] + 8006452: 685b ldr r3, [r3, #4] + 8006454: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; - 800639e: 687b ldr r3, [r7, #4] - 80063a0: 699b ldr r3, [r3, #24] - 80063a2: 60fb str r3, [r7, #12] + 8006456: 687b ldr r3, [r7, #4] + 8006458: 699b ldr r3, [r3, #24] + 800645a: 60fb str r3, [r7, #12] /* Reset the Output Compare Mode Bits */ tmpccmrx &= ~TIM_CCMR1_OC1M; - 80063a4: 68fb ldr r3, [r7, #12] - 80063a6: f023 0370 bic.w r3, r3, #112 @ 0x70 - 80063aa: 60fb str r3, [r7, #12] + 800645c: 68fb ldr r3, [r7, #12] + 800645e: f023 0370 bic.w r3, r3, #112 @ 0x70 + 8006462: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC1S; - 80063ac: 68fb ldr r3, [r7, #12] - 80063ae: f023 0303 bic.w r3, r3, #3 - 80063b2: 60fb str r3, [r7, #12] + 8006464: 68fb ldr r3, [r7, #12] + 8006466: f023 0303 bic.w r3, r3, #3 + 800646a: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; - 80063b4: 683b ldr r3, [r7, #0] - 80063b6: 681b ldr r3, [r3, #0] - 80063b8: 68fa ldr r2, [r7, #12] - 80063ba: 4313 orrs r3, r2 - 80063bc: 60fb str r3, [r7, #12] + 800646c: 683b ldr r3, [r7, #0] + 800646e: 681b ldr r3, [r3, #0] + 8006470: 68fa ldr r2, [r7, #12] + 8006472: 4313 orrs r3, r2 + 8006474: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC1P; - 80063be: 697b ldr r3, [r7, #20] - 80063c0: f023 0302 bic.w r3, r3, #2 - 80063c4: 617b str r3, [r7, #20] + 8006476: 697b ldr r3, [r7, #20] + 8006478: f023 0302 bic.w r3, r3, #2 + 800647c: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= OC_Config->OCPolarity; - 80063c6: 683b ldr r3, [r7, #0] - 80063c8: 689b ldr r3, [r3, #8] - 80063ca: 697a ldr r2, [r7, #20] - 80063cc: 4313 orrs r3, r2 - 80063ce: 617b str r3, [r7, #20] + 800647e: 683b ldr r3, [r7, #0] + 8006480: 689b ldr r3, [r3, #8] + 8006482: 697a ldr r2, [r7, #20] + 8006484: 4313 orrs r3, r2 + 8006486: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1)) - 80063d0: 687b ldr r3, [r7, #4] - 80063d2: 4a20 ldr r2, [pc, #128] @ (8006454 ) - 80063d4: 4293 cmp r3, r2 - 80063d6: d003 beq.n 80063e0 - 80063d8: 687b ldr r3, [r7, #4] - 80063da: 4a1f ldr r2, [pc, #124] @ (8006458 ) - 80063dc: 4293 cmp r3, r2 - 80063de: d10c bne.n 80063fa + 8006488: 687b ldr r3, [r7, #4] + 800648a: 4a20 ldr r2, [pc, #128] @ (800650c ) + 800648c: 4293 cmp r3, r2 + 800648e: d003 beq.n 8006498 + 8006490: 687b ldr r3, [r7, #4] + 8006492: 4a1f ldr r2, [pc, #124] @ (8006510 ) + 8006494: 4293 cmp r3, r2 + 8006496: d10c bne.n 80064b2 { /* Check parameters */ assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC1NP; - 80063e0: 697b ldr r3, [r7, #20] - 80063e2: f023 0308 bic.w r3, r3, #8 - 80063e6: 617b str r3, [r7, #20] + 8006498: 697b ldr r3, [r7, #20] + 800649a: f023 0308 bic.w r3, r3, #8 + 800649e: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= OC_Config->OCNPolarity; - 80063e8: 683b ldr r3, [r7, #0] - 80063ea: 68db ldr r3, [r3, #12] - 80063ec: 697a ldr r2, [r7, #20] - 80063ee: 4313 orrs r3, r2 - 80063f0: 617b str r3, [r7, #20] + 80064a0: 683b ldr r3, [r7, #0] + 80064a2: 68db ldr r3, [r3, #12] + 80064a4: 697a ldr r2, [r7, #20] + 80064a6: 4313 orrs r3, r2 + 80064a8: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC1NE; - 80063f2: 697b ldr r3, [r7, #20] - 80063f4: f023 0304 bic.w r3, r3, #4 - 80063f8: 617b str r3, [r7, #20] + 80064aa: 697b ldr r3, [r7, #20] + 80064ac: f023 0304 bic.w r3, r3, #4 + 80064b0: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) - 80063fa: 687b ldr r3, [r7, #4] - 80063fc: 4a15 ldr r2, [pc, #84] @ (8006454 ) - 80063fe: 4293 cmp r3, r2 - 8006400: d003 beq.n 800640a - 8006402: 687b ldr r3, [r7, #4] - 8006404: 4a14 ldr r2, [pc, #80] @ (8006458 ) - 8006406: 4293 cmp r3, r2 - 8006408: d111 bne.n 800642e + 80064b2: 687b ldr r3, [r7, #4] + 80064b4: 4a15 ldr r2, [pc, #84] @ (800650c ) + 80064b6: 4293 cmp r3, r2 + 80064b8: d003 beq.n 80064c2 + 80064ba: 687b ldr r3, [r7, #4] + 80064bc: 4a14 ldr r2, [pc, #80] @ (8006510 ) + 80064be: 4293 cmp r3, r2 + 80064c0: d111 bne.n 80064e6 /* 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; - 800640a: 693b ldr r3, [r7, #16] - 800640c: f423 7380 bic.w r3, r3, #256 @ 0x100 - 8006410: 613b str r3, [r7, #16] + 80064c2: 693b ldr r3, [r7, #16] + 80064c4: f423 7380 bic.w r3, r3, #256 @ 0x100 + 80064c8: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS1N; - 8006412: 693b ldr r3, [r7, #16] - 8006414: f423 7300 bic.w r3, r3, #512 @ 0x200 - 8006418: 613b str r3, [r7, #16] + 80064ca: 693b ldr r3, [r7, #16] + 80064cc: f423 7300 bic.w r3, r3, #512 @ 0x200 + 80064d0: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= OC_Config->OCIdleState; - 800641a: 683b ldr r3, [r7, #0] - 800641c: 695b ldr r3, [r3, #20] - 800641e: 693a ldr r2, [r7, #16] - 8006420: 4313 orrs r3, r2 - 8006422: 613b str r3, [r7, #16] + 80064d2: 683b ldr r3, [r7, #0] + 80064d4: 695b ldr r3, [r3, #20] + 80064d6: 693a ldr r2, [r7, #16] + 80064d8: 4313 orrs r3, r2 + 80064da: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= OC_Config->OCNIdleState; - 8006424: 683b ldr r3, [r7, #0] - 8006426: 699b ldr r3, [r3, #24] - 8006428: 693a ldr r2, [r7, #16] - 800642a: 4313 orrs r3, r2 - 800642c: 613b str r3, [r7, #16] + 80064dc: 683b ldr r3, [r7, #0] + 80064de: 699b ldr r3, [r3, #24] + 80064e0: 693a ldr r2, [r7, #16] + 80064e2: 4313 orrs r3, r2 + 80064e4: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 800642e: 687b ldr r3, [r7, #4] - 8006430: 693a ldr r2, [r7, #16] - 8006432: 605a str r2, [r3, #4] + 80064e6: 687b ldr r3, [r7, #4] + 80064e8: 693a ldr r2, [r7, #16] + 80064ea: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; - 8006434: 687b ldr r3, [r7, #4] - 8006436: 68fa ldr r2, [r7, #12] - 8006438: 619a str r2, [r3, #24] + 80064ec: 687b ldr r3, [r7, #4] + 80064ee: 68fa ldr r2, [r7, #12] + 80064f0: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR1 = OC_Config->Pulse; - 800643a: 683b ldr r3, [r7, #0] - 800643c: 685a ldr r2, [r3, #4] - 800643e: 687b ldr r3, [r7, #4] - 8006440: 635a str r2, [r3, #52] @ 0x34 + 80064f2: 683b ldr r3, [r7, #0] + 80064f4: 685a ldr r2, [r3, #4] + 80064f6: 687b ldr r3, [r7, #4] + 80064f8: 635a str r2, [r3, #52] @ 0x34 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 8006442: 687b ldr r3, [r7, #4] - 8006444: 697a ldr r2, [r7, #20] - 8006446: 621a str r2, [r3, #32] + 80064fa: 687b ldr r3, [r7, #4] + 80064fc: 697a ldr r2, [r7, #20] + 80064fe: 621a str r2, [r3, #32] } - 8006448: bf00 nop - 800644a: 371c adds r7, #28 - 800644c: 46bd mov sp, r7 - 800644e: f85d 7b04 ldr.w r7, [sp], #4 - 8006452: 4770 bx lr - 8006454: 40010000 .word 0x40010000 - 8006458: 40010400 .word 0x40010400 + 8006500: bf00 nop + 8006502: 371c adds r7, #28 + 8006504: 46bd mov sp, r7 + 8006506: f85d 7b04 ldr.w r7, [sp], #4 + 800650a: 4770 bx lr + 800650c: 40010000 .word 0x40010000 + 8006510: 40010400 .word 0x40010400 -0800645c : +08006514 : * @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) { - 800645c: b480 push {r7} - 800645e: b087 sub sp, #28 - 8006460: af00 add r7, sp, #0 - 8006462: 6078 str r0, [r7, #4] - 8006464: 6039 str r1, [r7, #0] + 8006514: b480 push {r7} + 8006516: b087 sub sp, #28 + 8006518: af00 add r7, sp, #0 + 800651a: 6078 str r0, [r7, #4] + 800651c: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 8006466: 687b ldr r3, [r7, #4] - 8006468: 6a1b ldr r3, [r3, #32] - 800646a: 617b str r3, [r7, #20] + 800651e: 687b ldr r3, [r7, #4] + 8006520: 6a1b ldr r3, [r3, #32] + 8006522: 617b str r3, [r7, #20] /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC2E; - 800646c: 687b ldr r3, [r7, #4] - 800646e: 6a1b ldr r3, [r3, #32] - 8006470: f023 0210 bic.w r2, r3, #16 - 8006474: 687b ldr r3, [r7, #4] - 8006476: 621a str r2, [r3, #32] + 8006524: 687b ldr r3, [r7, #4] + 8006526: 6a1b ldr r3, [r3, #32] + 8006528: f023 0210 bic.w r2, r3, #16 + 800652c: 687b ldr r3, [r7, #4] + 800652e: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 8006478: 687b ldr r3, [r7, #4] - 800647a: 685b ldr r3, [r3, #4] - 800647c: 613b str r3, [r7, #16] + 8006530: 687b ldr r3, [r7, #4] + 8006532: 685b ldr r3, [r3, #4] + 8006534: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; - 800647e: 687b ldr r3, [r7, #4] - 8006480: 699b ldr r3, [r3, #24] - 8006482: 60fb str r3, [r7, #12] + 8006536: 687b ldr r3, [r7, #4] + 8006538: 699b ldr r3, [r3, #24] + 800653a: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR1_OC2M; - 8006484: 68fb ldr r3, [r7, #12] - 8006486: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 - 800648a: 60fb str r3, [r7, #12] + 800653c: 68fb ldr r3, [r7, #12] + 800653e: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 + 8006542: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC2S; - 800648c: 68fb ldr r3, [r7, #12] - 800648e: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8006492: 60fb str r3, [r7, #12] + 8006544: 68fb ldr r3, [r7, #12] + 8006546: f423 7340 bic.w r3, r3, #768 @ 0x300 + 800654a: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); - 8006494: 683b ldr r3, [r7, #0] - 8006496: 681b ldr r3, [r3, #0] - 8006498: 021b lsls r3, r3, #8 - 800649a: 68fa ldr r2, [r7, #12] - 800649c: 4313 orrs r3, r2 - 800649e: 60fb str r3, [r7, #12] + 800654c: 683b ldr r3, [r7, #0] + 800654e: 681b ldr r3, [r3, #0] + 8006550: 021b lsls r3, r3, #8 + 8006552: 68fa ldr r2, [r7, #12] + 8006554: 4313 orrs r3, r2 + 8006556: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC2P; - 80064a0: 697b ldr r3, [r7, #20] - 80064a2: f023 0320 bic.w r3, r3, #32 - 80064a6: 617b str r3, [r7, #20] + 8006558: 697b ldr r3, [r7, #20] + 800655a: f023 0320 bic.w r3, r3, #32 + 800655e: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 4U); - 80064a8: 683b ldr r3, [r7, #0] - 80064aa: 689b ldr r3, [r3, #8] - 80064ac: 011b lsls r3, r3, #4 - 80064ae: 697a ldr r2, [r7, #20] - 80064b0: 4313 orrs r3, r2 - 80064b2: 617b str r3, [r7, #20] + 8006560: 683b ldr r3, [r7, #0] + 8006562: 689b ldr r3, [r3, #8] + 8006564: 011b lsls r3, r3, #4 + 8006566: 697a ldr r2, [r7, #20] + 8006568: 4313 orrs r3, r2 + 800656a: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2)) - 80064b4: 687b ldr r3, [r7, #4] - 80064b6: 4a22 ldr r2, [pc, #136] @ (8006540 ) - 80064b8: 4293 cmp r3, r2 - 80064ba: d003 beq.n 80064c4 - 80064bc: 687b ldr r3, [r7, #4] - 80064be: 4a21 ldr r2, [pc, #132] @ (8006544 ) - 80064c0: 4293 cmp r3, r2 - 80064c2: d10d bne.n 80064e0 + 800656c: 687b ldr r3, [r7, #4] + 800656e: 4a22 ldr r2, [pc, #136] @ (80065f8 ) + 8006570: 4293 cmp r3, r2 + 8006572: d003 beq.n 800657c + 8006574: 687b ldr r3, [r7, #4] + 8006576: 4a21 ldr r2, [pc, #132] @ (80065fc ) + 8006578: 4293 cmp r3, r2 + 800657a: d10d bne.n 8006598 { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC2NP; - 80064c4: 697b ldr r3, [r7, #20] - 80064c6: f023 0380 bic.w r3, r3, #128 @ 0x80 - 80064ca: 617b str r3, [r7, #20] + 800657c: 697b ldr r3, [r7, #20] + 800657e: f023 0380 bic.w r3, r3, #128 @ 0x80 + 8006582: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 4U); - 80064cc: 683b ldr r3, [r7, #0] - 80064ce: 68db ldr r3, [r3, #12] - 80064d0: 011b lsls r3, r3, #4 - 80064d2: 697a ldr r2, [r7, #20] - 80064d4: 4313 orrs r3, r2 - 80064d6: 617b str r3, [r7, #20] + 8006584: 683b ldr r3, [r7, #0] + 8006586: 68db ldr r3, [r3, #12] + 8006588: 011b lsls r3, r3, #4 + 800658a: 697a ldr r2, [r7, #20] + 800658c: 4313 orrs r3, r2 + 800658e: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC2NE; - 80064d8: 697b ldr r3, [r7, #20] - 80064da: f023 0340 bic.w r3, r3, #64 @ 0x40 - 80064de: 617b str r3, [r7, #20] + 8006590: 697b ldr r3, [r7, #20] + 8006592: f023 0340 bic.w r3, r3, #64 @ 0x40 + 8006596: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) - 80064e0: 687b ldr r3, [r7, #4] - 80064e2: 4a17 ldr r2, [pc, #92] @ (8006540 ) - 80064e4: 4293 cmp r3, r2 - 80064e6: d003 beq.n 80064f0 - 80064e8: 687b ldr r3, [r7, #4] - 80064ea: 4a16 ldr r2, [pc, #88] @ (8006544 ) - 80064ec: 4293 cmp r3, r2 - 80064ee: d113 bne.n 8006518 + 8006598: 687b ldr r3, [r7, #4] + 800659a: 4a17 ldr r2, [pc, #92] @ (80065f8 ) + 800659c: 4293 cmp r3, r2 + 800659e: d003 beq.n 80065a8 + 80065a0: 687b ldr r3, [r7, #4] + 80065a2: 4a16 ldr r2, [pc, #88] @ (80065fc ) + 80065a4: 4293 cmp r3, r2 + 80065a6: d113 bne.n 80065d0 /* 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; - 80064f0: 693b ldr r3, [r7, #16] - 80064f2: f423 6380 bic.w r3, r3, #1024 @ 0x400 - 80064f6: 613b str r3, [r7, #16] + 80065a8: 693b ldr r3, [r7, #16] + 80065aa: f423 6380 bic.w r3, r3, #1024 @ 0x400 + 80065ae: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS2N; - 80064f8: 693b ldr r3, [r7, #16] - 80064fa: f423 6300 bic.w r3, r3, #2048 @ 0x800 - 80064fe: 613b str r3, [r7, #16] + 80065b0: 693b ldr r3, [r7, #16] + 80065b2: f423 6300 bic.w r3, r3, #2048 @ 0x800 + 80065b6: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 2U); - 8006500: 683b ldr r3, [r7, #0] - 8006502: 695b ldr r3, [r3, #20] - 8006504: 009b lsls r3, r3, #2 - 8006506: 693a ldr r2, [r7, #16] - 8006508: 4313 orrs r3, r2 - 800650a: 613b str r3, [r7, #16] + 80065b8: 683b ldr r3, [r7, #0] + 80065ba: 695b ldr r3, [r3, #20] + 80065bc: 009b lsls r3, r3, #2 + 80065be: 693a ldr r2, [r7, #16] + 80065c0: 4313 orrs r3, r2 + 80065c2: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 2U); - 800650c: 683b ldr r3, [r7, #0] - 800650e: 699b ldr r3, [r3, #24] - 8006510: 009b lsls r3, r3, #2 - 8006512: 693a ldr r2, [r7, #16] - 8006514: 4313 orrs r3, r2 - 8006516: 613b str r3, [r7, #16] + 80065c4: 683b ldr r3, [r7, #0] + 80065c6: 699b ldr r3, [r3, #24] + 80065c8: 009b lsls r3, r3, #2 + 80065ca: 693a ldr r2, [r7, #16] + 80065cc: 4313 orrs r3, r2 + 80065ce: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 8006518: 687b ldr r3, [r7, #4] - 800651a: 693a ldr r2, [r7, #16] - 800651c: 605a str r2, [r3, #4] + 80065d0: 687b ldr r3, [r7, #4] + 80065d2: 693a ldr r2, [r7, #16] + 80065d4: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; - 800651e: 687b ldr r3, [r7, #4] - 8006520: 68fa ldr r2, [r7, #12] - 8006522: 619a str r2, [r3, #24] + 80065d6: 687b ldr r3, [r7, #4] + 80065d8: 68fa ldr r2, [r7, #12] + 80065da: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR2 = OC_Config->Pulse; - 8006524: 683b ldr r3, [r7, #0] - 8006526: 685a ldr r2, [r3, #4] - 8006528: 687b ldr r3, [r7, #4] - 800652a: 639a str r2, [r3, #56] @ 0x38 + 80065dc: 683b ldr r3, [r7, #0] + 80065de: 685a ldr r2, [r3, #4] + 80065e0: 687b ldr r3, [r7, #4] + 80065e2: 639a str r2, [r3, #56] @ 0x38 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 800652c: 687b ldr r3, [r7, #4] - 800652e: 697a ldr r2, [r7, #20] - 8006530: 621a str r2, [r3, #32] + 80065e4: 687b ldr r3, [r7, #4] + 80065e6: 697a ldr r2, [r7, #20] + 80065e8: 621a str r2, [r3, #32] } - 8006532: bf00 nop - 8006534: 371c adds r7, #28 - 8006536: 46bd mov sp, r7 - 8006538: f85d 7b04 ldr.w r7, [sp], #4 - 800653c: 4770 bx lr - 800653e: bf00 nop - 8006540: 40010000 .word 0x40010000 - 8006544: 40010400 .word 0x40010400 + 80065ea: bf00 nop + 80065ec: 371c adds r7, #28 + 80065ee: 46bd mov sp, r7 + 80065f0: f85d 7b04 ldr.w r7, [sp], #4 + 80065f4: 4770 bx lr + 80065f6: bf00 nop + 80065f8: 40010000 .word 0x40010000 + 80065fc: 40010400 .word 0x40010400 -08006548 : +08006600 : * @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) { - 8006548: b480 push {r7} - 800654a: b087 sub sp, #28 - 800654c: af00 add r7, sp, #0 - 800654e: 6078 str r0, [r7, #4] - 8006550: 6039 str r1, [r7, #0] + 8006600: b480 push {r7} + 8006602: b087 sub sp, #28 + 8006604: af00 add r7, sp, #0 + 8006606: 6078 str r0, [r7, #4] + 8006608: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 8006552: 687b ldr r3, [r7, #4] - 8006554: 6a1b ldr r3, [r3, #32] - 8006556: 617b str r3, [r7, #20] + 800660a: 687b ldr r3, [r7, #4] + 800660c: 6a1b ldr r3, [r3, #32] + 800660e: 617b str r3, [r7, #20] /* Disable the Channel 3: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC3E; - 8006558: 687b ldr r3, [r7, #4] - 800655a: 6a1b ldr r3, [r3, #32] - 800655c: f423 7280 bic.w r2, r3, #256 @ 0x100 - 8006560: 687b ldr r3, [r7, #4] - 8006562: 621a str r2, [r3, #32] + 8006610: 687b ldr r3, [r7, #4] + 8006612: 6a1b ldr r3, [r3, #32] + 8006614: f423 7280 bic.w r2, r3, #256 @ 0x100 + 8006618: 687b ldr r3, [r7, #4] + 800661a: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 8006564: 687b ldr r3, [r7, #4] - 8006566: 685b ldr r3, [r3, #4] - 8006568: 613b str r3, [r7, #16] + 800661c: 687b ldr r3, [r7, #4] + 800661e: 685b ldr r3, [r3, #4] + 8006620: 613b str r3, [r7, #16] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; - 800656a: 687b ldr r3, [r7, #4] - 800656c: 69db ldr r3, [r3, #28] - 800656e: 60fb str r3, [r7, #12] + 8006622: 687b ldr r3, [r7, #4] + 8006624: 69db ldr r3, [r3, #28] + 8006626: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC3M; - 8006570: 68fb ldr r3, [r7, #12] - 8006572: f023 0370 bic.w r3, r3, #112 @ 0x70 - 8006576: 60fb str r3, [r7, #12] + 8006628: 68fb ldr r3, [r7, #12] + 800662a: f023 0370 bic.w r3, r3, #112 @ 0x70 + 800662e: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC3S; - 8006578: 68fb ldr r3, [r7, #12] - 800657a: f023 0303 bic.w r3, r3, #3 - 800657e: 60fb str r3, [r7, #12] + 8006630: 68fb ldr r3, [r7, #12] + 8006632: f023 0303 bic.w r3, r3, #3 + 8006636: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; - 8006580: 683b ldr r3, [r7, #0] - 8006582: 681b ldr r3, [r3, #0] - 8006584: 68fa ldr r2, [r7, #12] - 8006586: 4313 orrs r3, r2 - 8006588: 60fb str r3, [r7, #12] + 8006638: 683b ldr r3, [r7, #0] + 800663a: 681b ldr r3, [r3, #0] + 800663c: 68fa ldr r2, [r7, #12] + 800663e: 4313 orrs r3, r2 + 8006640: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC3P; - 800658a: 697b ldr r3, [r7, #20] - 800658c: f423 7300 bic.w r3, r3, #512 @ 0x200 - 8006590: 617b str r3, [r7, #20] + 8006642: 697b ldr r3, [r7, #20] + 8006644: f423 7300 bic.w r3, r3, #512 @ 0x200 + 8006648: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 8U); - 8006592: 683b ldr r3, [r7, #0] - 8006594: 689b ldr r3, [r3, #8] - 8006596: 021b lsls r3, r3, #8 - 8006598: 697a ldr r2, [r7, #20] - 800659a: 4313 orrs r3, r2 - 800659c: 617b str r3, [r7, #20] + 800664a: 683b ldr r3, [r7, #0] + 800664c: 689b ldr r3, [r3, #8] + 800664e: 021b lsls r3, r3, #8 + 8006650: 697a ldr r2, [r7, #20] + 8006652: 4313 orrs r3, r2 + 8006654: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3)) - 800659e: 687b ldr r3, [r7, #4] - 80065a0: 4a21 ldr r2, [pc, #132] @ (8006628 ) - 80065a2: 4293 cmp r3, r2 - 80065a4: d003 beq.n 80065ae - 80065a6: 687b ldr r3, [r7, #4] - 80065a8: 4a20 ldr r2, [pc, #128] @ (800662c ) - 80065aa: 4293 cmp r3, r2 - 80065ac: d10d bne.n 80065ca + 8006656: 687b ldr r3, [r7, #4] + 8006658: 4a21 ldr r2, [pc, #132] @ (80066e0 ) + 800665a: 4293 cmp r3, r2 + 800665c: d003 beq.n 8006666 + 800665e: 687b ldr r3, [r7, #4] + 8006660: 4a20 ldr r2, [pc, #128] @ (80066e4 ) + 8006662: 4293 cmp r3, r2 + 8006664: d10d bne.n 8006682 { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC3NP; - 80065ae: 697b ldr r3, [r7, #20] - 80065b0: f423 6300 bic.w r3, r3, #2048 @ 0x800 - 80065b4: 617b str r3, [r7, #20] + 8006666: 697b ldr r3, [r7, #20] + 8006668: f423 6300 bic.w r3, r3, #2048 @ 0x800 + 800666c: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 8U); - 80065b6: 683b ldr r3, [r7, #0] - 80065b8: 68db ldr r3, [r3, #12] - 80065ba: 021b lsls r3, r3, #8 - 80065bc: 697a ldr r2, [r7, #20] - 80065be: 4313 orrs r3, r2 - 80065c0: 617b str r3, [r7, #20] + 800666e: 683b ldr r3, [r7, #0] + 8006670: 68db ldr r3, [r3, #12] + 8006672: 021b lsls r3, r3, #8 + 8006674: 697a ldr r2, [r7, #20] + 8006676: 4313 orrs r3, r2 + 8006678: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC3NE; - 80065c2: 697b ldr r3, [r7, #20] - 80065c4: f423 6380 bic.w r3, r3, #1024 @ 0x400 - 80065c8: 617b str r3, [r7, #20] + 800667a: 697b ldr r3, [r7, #20] + 800667c: f423 6380 bic.w r3, r3, #1024 @ 0x400 + 8006680: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) - 80065ca: 687b ldr r3, [r7, #4] - 80065cc: 4a16 ldr r2, [pc, #88] @ (8006628 ) - 80065ce: 4293 cmp r3, r2 - 80065d0: d003 beq.n 80065da - 80065d2: 687b ldr r3, [r7, #4] - 80065d4: 4a15 ldr r2, [pc, #84] @ (800662c ) - 80065d6: 4293 cmp r3, r2 - 80065d8: d113 bne.n 8006602 + 8006682: 687b ldr r3, [r7, #4] + 8006684: 4a16 ldr r2, [pc, #88] @ (80066e0 ) + 8006686: 4293 cmp r3, r2 + 8006688: d003 beq.n 8006692 + 800668a: 687b ldr r3, [r7, #4] + 800668c: 4a15 ldr r2, [pc, #84] @ (80066e4 ) + 800668e: 4293 cmp r3, r2 + 8006690: d113 bne.n 80066ba /* 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; - 80065da: 693b ldr r3, [r7, #16] - 80065dc: f423 5380 bic.w r3, r3, #4096 @ 0x1000 - 80065e0: 613b str r3, [r7, #16] + 8006692: 693b ldr r3, [r7, #16] + 8006694: f423 5380 bic.w r3, r3, #4096 @ 0x1000 + 8006698: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS3N; - 80065e2: 693b ldr r3, [r7, #16] - 80065e4: f423 5300 bic.w r3, r3, #8192 @ 0x2000 - 80065e8: 613b str r3, [r7, #16] + 800669a: 693b ldr r3, [r7, #16] + 800669c: f423 5300 bic.w r3, r3, #8192 @ 0x2000 + 80066a0: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 4U); - 80065ea: 683b ldr r3, [r7, #0] - 80065ec: 695b ldr r3, [r3, #20] - 80065ee: 011b lsls r3, r3, #4 - 80065f0: 693a ldr r2, [r7, #16] - 80065f2: 4313 orrs r3, r2 - 80065f4: 613b str r3, [r7, #16] + 80066a2: 683b ldr r3, [r7, #0] + 80066a4: 695b ldr r3, [r3, #20] + 80066a6: 011b lsls r3, r3, #4 + 80066a8: 693a ldr r2, [r7, #16] + 80066aa: 4313 orrs r3, r2 + 80066ac: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 4U); - 80065f6: 683b ldr r3, [r7, #0] - 80065f8: 699b ldr r3, [r3, #24] - 80065fa: 011b lsls r3, r3, #4 - 80065fc: 693a ldr r2, [r7, #16] - 80065fe: 4313 orrs r3, r2 - 8006600: 613b str r3, [r7, #16] + 80066ae: 683b ldr r3, [r7, #0] + 80066b0: 699b ldr r3, [r3, #24] + 80066b2: 011b lsls r3, r3, #4 + 80066b4: 693a ldr r2, [r7, #16] + 80066b6: 4313 orrs r3, r2 + 80066b8: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 8006602: 687b ldr r3, [r7, #4] - 8006604: 693a ldr r2, [r7, #16] - 8006606: 605a str r2, [r3, #4] + 80066ba: 687b ldr r3, [r7, #4] + 80066bc: 693a ldr r2, [r7, #16] + 80066be: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; - 8006608: 687b ldr r3, [r7, #4] - 800660a: 68fa ldr r2, [r7, #12] - 800660c: 61da str r2, [r3, #28] + 80066c0: 687b ldr r3, [r7, #4] + 80066c2: 68fa ldr r2, [r7, #12] + 80066c4: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR3 = OC_Config->Pulse; - 800660e: 683b ldr r3, [r7, #0] - 8006610: 685a ldr r2, [r3, #4] - 8006612: 687b ldr r3, [r7, #4] - 8006614: 63da str r2, [r3, #60] @ 0x3c + 80066c6: 683b ldr r3, [r7, #0] + 80066c8: 685a ldr r2, [r3, #4] + 80066ca: 687b ldr r3, [r7, #4] + 80066cc: 63da str r2, [r3, #60] @ 0x3c /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 8006616: 687b ldr r3, [r7, #4] - 8006618: 697a ldr r2, [r7, #20] - 800661a: 621a str r2, [r3, #32] + 80066ce: 687b ldr r3, [r7, #4] + 80066d0: 697a ldr r2, [r7, #20] + 80066d2: 621a str r2, [r3, #32] } - 800661c: bf00 nop - 800661e: 371c adds r7, #28 - 8006620: 46bd mov sp, r7 - 8006622: f85d 7b04 ldr.w r7, [sp], #4 - 8006626: 4770 bx lr - 8006628: 40010000 .word 0x40010000 - 800662c: 40010400 .word 0x40010400 + 80066d4: bf00 nop + 80066d6: 371c adds r7, #28 + 80066d8: 46bd mov sp, r7 + 80066da: f85d 7b04 ldr.w r7, [sp], #4 + 80066de: 4770 bx lr + 80066e0: 40010000 .word 0x40010000 + 80066e4: 40010400 .word 0x40010400 -08006630 : +080066e8 : * @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) { - 8006630: b480 push {r7} - 8006632: b087 sub sp, #28 - 8006634: af00 add r7, sp, #0 - 8006636: 6078 str r0, [r7, #4] - 8006638: 6039 str r1, [r7, #0] + 80066e8: b480 push {r7} + 80066ea: b087 sub sp, #28 + 80066ec: af00 add r7, sp, #0 + 80066ee: 6078 str r0, [r7, #4] + 80066f0: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; - 800663a: 687b ldr r3, [r7, #4] - 800663c: 6a1b ldr r3, [r3, #32] - 800663e: 613b str r3, [r7, #16] + 80066f2: 687b ldr r3, [r7, #4] + 80066f4: 6a1b ldr r3, [r3, #32] + 80066f6: 613b str r3, [r7, #16] /* Disable the Channel 4: Reset the CC4E Bit */ TIMx->CCER &= ~TIM_CCER_CC4E; - 8006640: 687b ldr r3, [r7, #4] - 8006642: 6a1b ldr r3, [r3, #32] - 8006644: f423 5280 bic.w r2, r3, #4096 @ 0x1000 - 8006648: 687b ldr r3, [r7, #4] - 800664a: 621a str r2, [r3, #32] + 80066f8: 687b ldr r3, [r7, #4] + 80066fa: 6a1b ldr r3, [r3, #32] + 80066fc: f423 5280 bic.w r2, r3, #4096 @ 0x1000 + 8006700: 687b ldr r3, [r7, #4] + 8006702: 621a str r2, [r3, #32] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; - 800664c: 687b ldr r3, [r7, #4] - 800664e: 685b ldr r3, [r3, #4] - 8006650: 617b str r3, [r7, #20] + 8006704: 687b ldr r3, [r7, #4] + 8006706: 685b ldr r3, [r3, #4] + 8006708: 617b str r3, [r7, #20] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; - 8006652: 687b ldr r3, [r7, #4] - 8006654: 69db ldr r3, [r3, #28] - 8006656: 60fb str r3, [r7, #12] + 800670a: 687b ldr r3, [r7, #4] + 800670c: 69db ldr r3, [r3, #28] + 800670e: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC4M; - 8006658: 68fb ldr r3, [r7, #12] - 800665a: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 - 800665e: 60fb str r3, [r7, #12] + 8006710: 68fb ldr r3, [r7, #12] + 8006712: f423 43e0 bic.w r3, r3, #28672 @ 0x7000 + 8006716: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC4S; - 8006660: 68fb ldr r3, [r7, #12] - 8006662: f423 7340 bic.w r3, r3, #768 @ 0x300 - 8006666: 60fb str r3, [r7, #12] + 8006718: 68fb ldr r3, [r7, #12] + 800671a: f423 7340 bic.w r3, r3, #768 @ 0x300 + 800671e: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); - 8006668: 683b ldr r3, [r7, #0] - 800666a: 681b ldr r3, [r3, #0] - 800666c: 021b lsls r3, r3, #8 - 800666e: 68fa ldr r2, [r7, #12] - 8006670: 4313 orrs r3, r2 - 8006672: 60fb str r3, [r7, #12] + 8006720: 683b ldr r3, [r7, #0] + 8006722: 681b ldr r3, [r3, #0] + 8006724: 021b lsls r3, r3, #8 + 8006726: 68fa ldr r2, [r7, #12] + 8006728: 4313 orrs r3, r2 + 800672a: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC4P; - 8006674: 693b ldr r3, [r7, #16] - 8006676: f423 5300 bic.w r3, r3, #8192 @ 0x2000 - 800667a: 613b str r3, [r7, #16] + 800672c: 693b ldr r3, [r7, #16] + 800672e: f423 5300 bic.w r3, r3, #8192 @ 0x2000 + 8006732: 613b str r3, [r7, #16] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 12U); - 800667c: 683b ldr r3, [r7, #0] - 800667e: 689b ldr r3, [r3, #8] - 8006680: 031b lsls r3, r3, #12 - 8006682: 693a ldr r2, [r7, #16] - 8006684: 4313 orrs r3, r2 - 8006686: 613b str r3, [r7, #16] + 8006734: 683b ldr r3, [r7, #0] + 8006736: 689b ldr r3, [r3, #8] + 8006738: 031b lsls r3, r3, #12 + 800673a: 693a ldr r2, [r7, #16] + 800673c: 4313 orrs r3, r2 + 800673e: 613b str r3, [r7, #16] if (IS_TIM_BREAK_INSTANCE(TIMx)) - 8006688: 687b ldr r3, [r7, #4] - 800668a: 4a12 ldr r2, [pc, #72] @ (80066d4 ) - 800668c: 4293 cmp r3, r2 - 800668e: d003 beq.n 8006698 - 8006690: 687b ldr r3, [r7, #4] - 8006692: 4a11 ldr r2, [pc, #68] @ (80066d8 ) - 8006694: 4293 cmp r3, r2 - 8006696: d109 bne.n 80066ac + 8006740: 687b ldr r3, [r7, #4] + 8006742: 4a12 ldr r2, [pc, #72] @ (800678c ) + 8006744: 4293 cmp r3, r2 + 8006746: d003 beq.n 8006750 + 8006748: 687b ldr r3, [r7, #4] + 800674a: 4a11 ldr r2, [pc, #68] @ (8006790 ) + 800674c: 4293 cmp r3, r2 + 800674e: d109 bne.n 8006764 { /* Check parameters */ assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare IDLE State */ tmpcr2 &= ~TIM_CR2_OIS4; - 8006698: 697b ldr r3, [r7, #20] - 800669a: f423 4380 bic.w r3, r3, #16384 @ 0x4000 - 800669e: 617b str r3, [r7, #20] + 8006750: 697b ldr r3, [r7, #20] + 8006752: f423 4380 bic.w r3, r3, #16384 @ 0x4000 + 8006756: 617b str r3, [r7, #20] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 6U); - 80066a0: 683b ldr r3, [r7, #0] - 80066a2: 695b ldr r3, [r3, #20] - 80066a4: 019b lsls r3, r3, #6 - 80066a6: 697a ldr r2, [r7, #20] - 80066a8: 4313 orrs r3, r2 - 80066aa: 617b str r3, [r7, #20] + 8006758: 683b ldr r3, [r7, #0] + 800675a: 695b ldr r3, [r3, #20] + 800675c: 019b lsls r3, r3, #6 + 800675e: 697a ldr r2, [r7, #20] + 8006760: 4313 orrs r3, r2 + 8006762: 617b str r3, [r7, #20] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; - 80066ac: 687b ldr r3, [r7, #4] - 80066ae: 697a ldr r2, [r7, #20] - 80066b0: 605a str r2, [r3, #4] + 8006764: 687b ldr r3, [r7, #4] + 8006766: 697a ldr r2, [r7, #20] + 8006768: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; - 80066b2: 687b ldr r3, [r7, #4] - 80066b4: 68fa ldr r2, [r7, #12] - 80066b6: 61da str r2, [r3, #28] + 800676a: 687b ldr r3, [r7, #4] + 800676c: 68fa ldr r2, [r7, #12] + 800676e: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR4 = OC_Config->Pulse; - 80066b8: 683b ldr r3, [r7, #0] - 80066ba: 685a ldr r2, [r3, #4] - 80066bc: 687b ldr r3, [r7, #4] - 80066be: 641a str r2, [r3, #64] @ 0x40 + 8006770: 683b ldr r3, [r7, #0] + 8006772: 685a ldr r2, [r3, #4] + 8006774: 687b ldr r3, [r7, #4] + 8006776: 641a str r2, [r3, #64] @ 0x40 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; - 80066c0: 687b ldr r3, [r7, #4] - 80066c2: 693a ldr r2, [r7, #16] - 80066c4: 621a str r2, [r3, #32] + 8006778: 687b ldr r3, [r7, #4] + 800677a: 693a ldr r2, [r7, #16] + 800677c: 621a str r2, [r3, #32] } - 80066c6: bf00 nop - 80066c8: 371c adds r7, #28 - 80066ca: 46bd mov sp, r7 - 80066cc: f85d 7b04 ldr.w r7, [sp], #4 - 80066d0: 4770 bx lr - 80066d2: bf00 nop - 80066d4: 40010000 .word 0x40010000 - 80066d8: 40010400 .word 0x40010400 + 800677e: bf00 nop + 8006780: 371c adds r7, #28 + 8006782: 46bd mov sp, r7 + 8006784: f85d 7b04 ldr.w r7, [sp], #4 + 8006788: 4770 bx lr + 800678a: bf00 nop + 800678c: 40010000 .word 0x40010000 + 8006790: 40010400 .word 0x40010400 -080066dc : +08006794 : * @param ChannelState specifies the TIM Channel CCxE bit new state. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE. * @retval None */ void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState) { - 80066dc: b480 push {r7} - 80066de: b087 sub sp, #28 - 80066e0: af00 add r7, sp, #0 - 80066e2: 60f8 str r0, [r7, #12] - 80066e4: 60b9 str r1, [r7, #8] - 80066e6: 607a str r2, [r7, #4] + 8006794: b480 push {r7} + 8006796: b087 sub sp, #28 + 8006798: af00 add r7, sp, #0 + 800679a: 60f8 str r0, [r7, #12] + 800679c: 60b9 str r1, [r7, #8] + 800679e: 607a str r2, [r7, #4] /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(TIMx)); assert_param(IS_TIM_CHANNELS(Channel)); tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */ - 80066e8: 68bb ldr r3, [r7, #8] - 80066ea: f003 031f and.w r3, r3, #31 - 80066ee: 2201 movs r2, #1 - 80066f0: fa02 f303 lsl.w r3, r2, r3 - 80066f4: 617b str r3, [r7, #20] + 80067a0: 68bb ldr r3, [r7, #8] + 80067a2: f003 031f and.w r3, r3, #31 + 80067a6: 2201 movs r2, #1 + 80067a8: fa02 f303 lsl.w r3, r2, r3 + 80067ac: 617b str r3, [r7, #20] /* Reset the CCxE Bit */ TIMx->CCER &= ~tmp; - 80066f6: 68fb ldr r3, [r7, #12] - 80066f8: 6a1a ldr r2, [r3, #32] - 80066fa: 697b ldr r3, [r7, #20] - 80066fc: 43db mvns r3, r3 - 80066fe: 401a ands r2, r3 - 8006700: 68fb ldr r3, [r7, #12] - 8006702: 621a str r2, [r3, #32] + 80067ae: 68fb ldr r3, [r7, #12] + 80067b0: 6a1a ldr r2, [r3, #32] + 80067b2: 697b ldr r3, [r7, #20] + 80067b4: 43db mvns r3, r3 + 80067b6: 401a ands r2, r3 + 80067b8: 68fb ldr r3, [r7, #12] + 80067ba: 621a str r2, [r3, #32] /* Set or reset the CCxE Bit */ TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */ - 8006704: 68fb ldr r3, [r7, #12] - 8006706: 6a1a ldr r2, [r3, #32] - 8006708: 68bb ldr r3, [r7, #8] - 800670a: f003 031f and.w r3, r3, #31 - 800670e: 6879 ldr r1, [r7, #4] - 8006710: fa01 f303 lsl.w r3, r1, r3 - 8006714: 431a orrs r2, r3 - 8006716: 68fb ldr r3, [r7, #12] - 8006718: 621a str r2, [r3, #32] + 80067bc: 68fb ldr r3, [r7, #12] + 80067be: 6a1a ldr r2, [r3, #32] + 80067c0: 68bb ldr r3, [r7, #8] + 80067c2: f003 031f and.w r3, r3, #31 + 80067c6: 6879 ldr r1, [r7, #4] + 80067c8: fa01 f303 lsl.w r3, r1, r3 + 80067cc: 431a orrs r2, r3 + 80067ce: 68fb ldr r3, [r7, #12] + 80067d0: 621a str r2, [r3, #32] } - 800671a: bf00 nop - 800671c: 371c adds r7, #28 - 800671e: 46bd mov sp, r7 - 8006720: f85d 7b04 ldr.w r7, [sp], #4 - 8006724: 4770 bx lr + 80067d2: bf00 nop + 80067d4: 371c adds r7, #28 + 80067d6: 46bd mov sp, r7 + 80067d8: f85d 7b04 ldr.w r7, [sp], #4 + 80067dc: 4770 bx lr ... -08006728 : +080067e0 : * mode. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, const TIM_MasterConfigTypeDef *sMasterConfig) { - 8006728: b480 push {r7} - 800672a: b085 sub sp, #20 - 800672c: af00 add r7, sp, #0 - 800672e: 6078 str r0, [r7, #4] - 8006730: 6039 str r1, [r7, #0] + 80067e0: b480 push {r7} + 80067e2: b085 sub sp, #20 + 80067e4: af00 add r7, sp, #0 + 80067e6: 6078 str r0, [r7, #4] + 80067e8: 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); - 8006732: 687b ldr r3, [r7, #4] - 8006734: f893 303c ldrb.w r3, [r3, #60] @ 0x3c - 8006738: 2b01 cmp r3, #1 - 800673a: d101 bne.n 8006740 - 800673c: 2302 movs r3, #2 - 800673e: e05a b.n 80067f6 - 8006740: 687b ldr r3, [r7, #4] - 8006742: 2201 movs r2, #1 - 8006744: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80067ea: 687b ldr r3, [r7, #4] + 80067ec: f893 303c ldrb.w r3, [r3, #60] @ 0x3c + 80067f0: 2b01 cmp r3, #1 + 80067f2: d101 bne.n 80067f8 + 80067f4: 2302 movs r3, #2 + 80067f6: e05a b.n 80068ae + 80067f8: 687b ldr r3, [r7, #4] + 80067fa: 2201 movs r2, #1 + 80067fc: f883 203c strb.w r2, [r3, #60] @ 0x3c /* Change the handler state */ htim->State = HAL_TIM_STATE_BUSY; - 8006748: 687b ldr r3, [r7, #4] - 800674a: 2202 movs r2, #2 - 800674c: f883 203d strb.w r2, [r3, #61] @ 0x3d + 8006800: 687b ldr r3, [r7, #4] + 8006802: 2202 movs r2, #2 + 8006804: f883 203d strb.w r2, [r3, #61] @ 0x3d /* Get the TIMx CR2 register value */ tmpcr2 = htim->Instance->CR2; - 8006750: 687b ldr r3, [r7, #4] - 8006752: 681b ldr r3, [r3, #0] - 8006754: 685b ldr r3, [r3, #4] - 8006756: 60fb str r3, [r7, #12] + 8006808: 687b ldr r3, [r7, #4] + 800680a: 681b ldr r3, [r3, #0] + 800680c: 685b ldr r3, [r3, #4] + 800680e: 60fb str r3, [r7, #12] /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; - 8006758: 687b ldr r3, [r7, #4] - 800675a: 681b ldr r3, [r3, #0] - 800675c: 689b ldr r3, [r3, #8] - 800675e: 60bb str r3, [r7, #8] + 8006810: 687b ldr r3, [r7, #4] + 8006812: 681b ldr r3, [r3, #0] + 8006814: 689b ldr r3, [r3, #8] + 8006816: 60bb str r3, [r7, #8] /* Reset the MMS Bits */ tmpcr2 &= ~TIM_CR2_MMS; - 8006760: 68fb ldr r3, [r7, #12] - 8006762: f023 0370 bic.w r3, r3, #112 @ 0x70 - 8006766: 60fb str r3, [r7, #12] + 8006818: 68fb ldr r3, [r7, #12] + 800681a: f023 0370 bic.w r3, r3, #112 @ 0x70 + 800681e: 60fb str r3, [r7, #12] /* Select the TRGO source */ tmpcr2 |= sMasterConfig->MasterOutputTrigger; - 8006768: 683b ldr r3, [r7, #0] - 800676a: 681b ldr r3, [r3, #0] - 800676c: 68fa ldr r2, [r7, #12] - 800676e: 4313 orrs r3, r2 - 8006770: 60fb str r3, [r7, #12] + 8006820: 683b ldr r3, [r7, #0] + 8006822: 681b ldr r3, [r3, #0] + 8006824: 68fa ldr r2, [r7, #12] + 8006826: 4313 orrs r3, r2 + 8006828: 60fb str r3, [r7, #12] /* Update TIMx CR2 */ htim->Instance->CR2 = tmpcr2; - 8006772: 687b ldr r3, [r7, #4] - 8006774: 681b ldr r3, [r3, #0] - 8006776: 68fa ldr r2, [r7, #12] - 8006778: 605a str r2, [r3, #4] + 800682a: 687b ldr r3, [r7, #4] + 800682c: 681b ldr r3, [r3, #0] + 800682e: 68fa ldr r2, [r7, #12] + 8006830: 605a str r2, [r3, #4] if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) - 800677a: 687b ldr r3, [r7, #4] - 800677c: 681b ldr r3, [r3, #0] - 800677e: 4a21 ldr r2, [pc, #132] @ (8006804 ) - 8006780: 4293 cmp r3, r2 - 8006782: d022 beq.n 80067ca - 8006784: 687b ldr r3, [r7, #4] - 8006786: 681b ldr r3, [r3, #0] - 8006788: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 - 800678c: d01d beq.n 80067ca - 800678e: 687b ldr r3, [r7, #4] - 8006790: 681b ldr r3, [r3, #0] - 8006792: 4a1d ldr r2, [pc, #116] @ (8006808 ) - 8006794: 4293 cmp r3, r2 - 8006796: d018 beq.n 80067ca - 8006798: 687b ldr r3, [r7, #4] - 800679a: 681b ldr r3, [r3, #0] - 800679c: 4a1b ldr r2, [pc, #108] @ (800680c ) - 800679e: 4293 cmp r3, r2 - 80067a0: d013 beq.n 80067ca - 80067a2: 687b ldr r3, [r7, #4] - 80067a4: 681b ldr r3, [r3, #0] - 80067a6: 4a1a ldr r2, [pc, #104] @ (8006810 ) - 80067a8: 4293 cmp r3, r2 - 80067aa: d00e beq.n 80067ca - 80067ac: 687b ldr r3, [r7, #4] - 80067ae: 681b ldr r3, [r3, #0] - 80067b0: 4a18 ldr r2, [pc, #96] @ (8006814 ) - 80067b2: 4293 cmp r3, r2 - 80067b4: d009 beq.n 80067ca - 80067b6: 687b ldr r3, [r7, #4] - 80067b8: 681b ldr r3, [r3, #0] - 80067ba: 4a17 ldr r2, [pc, #92] @ (8006818 ) - 80067bc: 4293 cmp r3, r2 - 80067be: d004 beq.n 80067ca - 80067c0: 687b ldr r3, [r7, #4] - 80067c2: 681b ldr r3, [r3, #0] - 80067c4: 4a15 ldr r2, [pc, #84] @ (800681c ) - 80067c6: 4293 cmp r3, r2 - 80067c8: d10c bne.n 80067e4 + 8006832: 687b ldr r3, [r7, #4] + 8006834: 681b ldr r3, [r3, #0] + 8006836: 4a21 ldr r2, [pc, #132] @ (80068bc ) + 8006838: 4293 cmp r3, r2 + 800683a: d022 beq.n 8006882 + 800683c: 687b ldr r3, [r7, #4] + 800683e: 681b ldr r3, [r3, #0] + 8006840: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000 + 8006844: d01d beq.n 8006882 + 8006846: 687b ldr r3, [r7, #4] + 8006848: 681b ldr r3, [r3, #0] + 800684a: 4a1d ldr r2, [pc, #116] @ (80068c0 ) + 800684c: 4293 cmp r3, r2 + 800684e: d018 beq.n 8006882 + 8006850: 687b ldr r3, [r7, #4] + 8006852: 681b ldr r3, [r3, #0] + 8006854: 4a1b ldr r2, [pc, #108] @ (80068c4 ) + 8006856: 4293 cmp r3, r2 + 8006858: d013 beq.n 8006882 + 800685a: 687b ldr r3, [r7, #4] + 800685c: 681b ldr r3, [r3, #0] + 800685e: 4a1a ldr r2, [pc, #104] @ (80068c8 ) + 8006860: 4293 cmp r3, r2 + 8006862: d00e beq.n 8006882 + 8006864: 687b ldr r3, [r7, #4] + 8006866: 681b ldr r3, [r3, #0] + 8006868: 4a18 ldr r2, [pc, #96] @ (80068cc ) + 800686a: 4293 cmp r3, r2 + 800686c: d009 beq.n 8006882 + 800686e: 687b ldr r3, [r7, #4] + 8006870: 681b ldr r3, [r3, #0] + 8006872: 4a17 ldr r2, [pc, #92] @ (80068d0 ) + 8006874: 4293 cmp r3, r2 + 8006876: d004 beq.n 8006882 + 8006878: 687b ldr r3, [r7, #4] + 800687a: 681b ldr r3, [r3, #0] + 800687c: 4a15 ldr r2, [pc, #84] @ (80068d4 ) + 800687e: 4293 cmp r3, r2 + 8006880: d10c bne.n 800689c { /* Reset the MSM Bit */ tmpsmcr &= ~TIM_SMCR_MSM; - 80067ca: 68bb ldr r3, [r7, #8] - 80067cc: f023 0380 bic.w r3, r3, #128 @ 0x80 - 80067d0: 60bb str r3, [r7, #8] + 8006882: 68bb ldr r3, [r7, #8] + 8006884: f023 0380 bic.w r3, r3, #128 @ 0x80 + 8006888: 60bb str r3, [r7, #8] /* Set master mode */ tmpsmcr |= sMasterConfig->MasterSlaveMode; - 80067d2: 683b ldr r3, [r7, #0] - 80067d4: 685b ldr r3, [r3, #4] - 80067d6: 68ba ldr r2, [r7, #8] - 80067d8: 4313 orrs r3, r2 - 80067da: 60bb str r3, [r7, #8] + 800688a: 683b ldr r3, [r7, #0] + 800688c: 685b ldr r3, [r3, #4] + 800688e: 68ba ldr r2, [r7, #8] + 8006890: 4313 orrs r3, r2 + 8006892: 60bb str r3, [r7, #8] /* Update TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; - 80067dc: 687b ldr r3, [r7, #4] - 80067de: 681b ldr r3, [r3, #0] - 80067e0: 68ba ldr r2, [r7, #8] - 80067e2: 609a str r2, [r3, #8] + 8006894: 687b ldr r3, [r7, #4] + 8006896: 681b ldr r3, [r3, #0] + 8006898: 68ba ldr r2, [r7, #8] + 800689a: 609a str r2, [r3, #8] } /* Change the htim state */ htim->State = HAL_TIM_STATE_READY; - 80067e4: 687b ldr r3, [r7, #4] - 80067e6: 2201 movs r2, #1 - 80067e8: f883 203d strb.w r2, [r3, #61] @ 0x3d + 800689c: 687b ldr r3, [r7, #4] + 800689e: 2201 movs r2, #1 + 80068a0: f883 203d strb.w r2, [r3, #61] @ 0x3d __HAL_UNLOCK(htim); - 80067ec: 687b ldr r3, [r7, #4] - 80067ee: 2200 movs r2, #0 - 80067f0: f883 203c strb.w r2, [r3, #60] @ 0x3c + 80068a4: 687b ldr r3, [r7, #4] + 80068a6: 2200 movs r2, #0 + 80068a8: f883 203c strb.w r2, [r3, #60] @ 0x3c return HAL_OK; - 80067f4: 2300 movs r3, #0 + 80068ac: 2300 movs r3, #0 } - 80067f6: 4618 mov r0, r3 - 80067f8: 3714 adds r7, #20 - 80067fa: 46bd mov sp, r7 - 80067fc: f85d 7b04 ldr.w r7, [sp], #4 - 8006800: 4770 bx lr - 8006802: bf00 nop - 8006804: 40010000 .word 0x40010000 - 8006808: 40000400 .word 0x40000400 - 800680c: 40000800 .word 0x40000800 - 8006810: 40000c00 .word 0x40000c00 - 8006814: 40010400 .word 0x40010400 - 8006818: 40014000 .word 0x40014000 - 800681c: 40001800 .word 0x40001800 + 80068ae: 4618 mov r0, r3 + 80068b0: 3714 adds r7, #20 + 80068b2: 46bd mov sp, r7 + 80068b4: f85d 7b04 ldr.w r7, [sp], #4 + 80068b8: 4770 bx lr + 80068ba: bf00 nop + 80068bc: 40010000 .word 0x40010000 + 80068c0: 40000400 .word 0x40000400 + 80068c4: 40000800 .word 0x40000800 + 80068c8: 40000c00 .word 0x40000c00 + 80068cc: 40010400 .word 0x40010400 + 80068d0: 40014000 .word 0x40014000 + 80068d4: 40001800 .word 0x40001800 -08006820 : +080068d8 : * @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) { - 8006820: b580 push {r7, lr} - 8006822: b082 sub sp, #8 - 8006824: af00 add r7, sp, #0 - 8006826: 6078 str r0, [r7, #4] + 80068d8: b580 push {r7, lr} + 80068da: b082 sub sp, #8 + 80068dc: af00 add r7, sp, #0 + 80068de: 6078 str r0, [r7, #4] /* Check the UART handle allocation */ if (huart == NULL) - 8006828: 687b ldr r3, [r7, #4] - 800682a: 2b00 cmp r3, #0 - 800682c: d101 bne.n 8006832 + 80068e0: 687b ldr r3, [r7, #4] + 80068e2: 2b00 cmp r3, #0 + 80068e4: d101 bne.n 80068ea { return HAL_ERROR; - 800682e: 2301 movs r3, #1 - 8006830: e042 b.n 80068b8 + 80068e6: 2301 movs r3, #1 + 80068e8: e042 b.n 8006970 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) - 8006832: 687b ldr r3, [r7, #4] - 8006834: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 8006838: b2db uxtb r3, r3 - 800683a: 2b00 cmp r3, #0 - 800683c: d106 bne.n 800684c + 80068ea: 687b ldr r3, [r7, #4] + 80068ec: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 80068f0: b2db uxtb r3, r3 + 80068f2: 2b00 cmp r3, #0 + 80068f4: d106 bne.n 8006904 { /* Allocate lock resource and initialize it */ huart->Lock = HAL_UNLOCKED; - 800683e: 687b ldr r3, [r7, #4] - 8006840: 2200 movs r2, #0 - 8006842: f883 2040 strb.w r2, [r3, #64] @ 0x40 + 80068f6: 687b ldr r3, [r7, #4] + 80068f8: 2200 movs r2, #0 + 80068fa: 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); - 8006846: 6878 ldr r0, [r7, #4] - 8006848: f7fa ffea bl 8001820 + 80068fe: 6878 ldr r0, [r7, #4] + 8006900: f7fa ffea bl 80018d8 #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } huart->gState = HAL_UART_STATE_BUSY; - 800684c: 687b ldr r3, [r7, #4] - 800684e: 2224 movs r2, #36 @ 0x24 - 8006850: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8006904: 687b ldr r3, [r7, #4] + 8006906: 2224 movs r2, #36 @ 0x24 + 8006908: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Disable the peripheral */ __HAL_UART_DISABLE(huart); - 8006854: 687b ldr r3, [r7, #4] - 8006856: 681b ldr r3, [r3, #0] - 8006858: 68da ldr r2, [r3, #12] - 800685a: 687b ldr r3, [r7, #4] - 800685c: 681b ldr r3, [r3, #0] - 800685e: f422 5200 bic.w r2, r2, #8192 @ 0x2000 - 8006862: 60da str r2, [r3, #12] + 800690c: 687b ldr r3, [r7, #4] + 800690e: 681b ldr r3, [r3, #0] + 8006910: 68da ldr r2, [r3, #12] + 8006912: 687b ldr r3, [r7, #4] + 8006914: 681b ldr r3, [r3, #0] + 8006916: f422 5200 bic.w r2, r2, #8192 @ 0x2000 + 800691a: 60da str r2, [r3, #12] /* Set the UART Communication parameters */ UART_SetConfig(huart); - 8006864: 6878 ldr r0, [r7, #4] - 8006866: f000 ff63 bl 8007730 + 800691c: 6878 ldr r0, [r7, #4] + 800691e: f000 ff63 bl 80077e8 /* 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)); - 800686a: 687b ldr r3, [r7, #4] - 800686c: 681b ldr r3, [r3, #0] - 800686e: 691a ldr r2, [r3, #16] - 8006870: 687b ldr r3, [r7, #4] - 8006872: 681b ldr r3, [r3, #0] - 8006874: f422 4290 bic.w r2, r2, #18432 @ 0x4800 - 8006878: 611a str r2, [r3, #16] + 8006922: 687b ldr r3, [r7, #4] + 8006924: 681b ldr r3, [r3, #0] + 8006926: 691a ldr r2, [r3, #16] + 8006928: 687b ldr r3, [r7, #4] + 800692a: 681b ldr r3, [r3, #0] + 800692c: f422 4290 bic.w r2, r2, #18432 @ 0x4800 + 8006930: 611a str r2, [r3, #16] CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN)); - 800687a: 687b ldr r3, [r7, #4] - 800687c: 681b ldr r3, [r3, #0] - 800687e: 695a ldr r2, [r3, #20] - 8006880: 687b ldr r3, [r7, #4] - 8006882: 681b ldr r3, [r3, #0] - 8006884: f022 022a bic.w r2, r2, #42 @ 0x2a - 8006888: 615a str r2, [r3, #20] + 8006932: 687b ldr r3, [r7, #4] + 8006934: 681b ldr r3, [r3, #0] + 8006936: 695a ldr r2, [r3, #20] + 8006938: 687b ldr r3, [r7, #4] + 800693a: 681b ldr r3, [r3, #0] + 800693c: f022 022a bic.w r2, r2, #42 @ 0x2a + 8006940: 615a str r2, [r3, #20] /* Enable the peripheral */ __HAL_UART_ENABLE(huart); - 800688a: 687b ldr r3, [r7, #4] - 800688c: 681b ldr r3, [r3, #0] - 800688e: 68da ldr r2, [r3, #12] - 8006890: 687b ldr r3, [r7, #4] - 8006892: 681b ldr r3, [r3, #0] - 8006894: f442 5200 orr.w r2, r2, #8192 @ 0x2000 - 8006898: 60da str r2, [r3, #12] + 8006942: 687b ldr r3, [r7, #4] + 8006944: 681b ldr r3, [r3, #0] + 8006946: 68da ldr r2, [r3, #12] + 8006948: 687b ldr r3, [r7, #4] + 800694a: 681b ldr r3, [r3, #0] + 800694c: f442 5200 orr.w r2, r2, #8192 @ 0x2000 + 8006950: 60da str r2, [r3, #12] /* Initialize the UART state */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 800689a: 687b ldr r3, [r7, #4] - 800689c: 2200 movs r2, #0 - 800689e: 645a str r2, [r3, #68] @ 0x44 + 8006952: 687b ldr r3, [r7, #4] + 8006954: 2200 movs r2, #0 + 8006956: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_READY; - 80068a0: 687b ldr r3, [r7, #4] - 80068a2: 2220 movs r2, #32 - 80068a4: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8006958: 687b ldr r3, [r7, #4] + 800695a: 2220 movs r2, #32 + 800695c: f883 2041 strb.w r2, [r3, #65] @ 0x41 huart->RxState = HAL_UART_STATE_READY; - 80068a8: 687b ldr r3, [r7, #4] - 80068aa: 2220 movs r2, #32 - 80068ac: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8006960: 687b ldr r3, [r7, #4] + 8006962: 2220 movs r2, #32 + 8006964: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->RxEventType = HAL_UART_RXEVENT_TC; - 80068b0: 687b ldr r3, [r7, #4] - 80068b2: 2200 movs r2, #0 - 80068b4: 635a str r2, [r3, #52] @ 0x34 + 8006968: 687b ldr r3, [r7, #4] + 800696a: 2200 movs r2, #0 + 800696c: 635a str r2, [r3, #52] @ 0x34 return HAL_OK; - 80068b6: 2300 movs r3, #0 + 800696e: 2300 movs r3, #0 } - 80068b8: 4618 mov r0, r3 - 80068ba: 3708 adds r7, #8 - 80068bc: 46bd mov sp, r7 - 80068be: bd80 pop {r7, pc} + 8006970: 4618 mov r0, r3 + 8006972: 3708 adds r7, #8 + 8006974: 46bd mov sp, r7 + 8006976: bd80 pop {r7, pc} -080068c0 : +08006978 : * @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) { - 80068c0: b580 push {r7, lr} - 80068c2: b08c sub sp, #48 @ 0x30 - 80068c4: af00 add r7, sp, #0 - 80068c6: 60f8 str r0, [r7, #12] - 80068c8: 60b9 str r1, [r7, #8] - 80068ca: 4613 mov r3, r2 - 80068cc: 80fb strh r3, [r7, #6] + 8006978: b580 push {r7, lr} + 800697a: b08c sub sp, #48 @ 0x30 + 800697c: af00 add r7, sp, #0 + 800697e: 60f8 str r0, [r7, #12] + 8006980: 60b9 str r1, [r7, #8] + 8006982: 4613 mov r3, r2 + 8006984: 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) - 80068ce: 68fb ldr r3, [r7, #12] - 80068d0: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 80068d4: b2db uxtb r3, r3 - 80068d6: 2b20 cmp r3, #32 - 80068d8: d162 bne.n 80069a0 + 8006986: 68fb ldr r3, [r7, #12] + 8006988: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 800698c: b2db uxtb r3, r3 + 800698e: 2b20 cmp r3, #32 + 8006990: d162 bne.n 8006a58 { if ((pData == NULL) || (Size == 0U)) - 80068da: 68bb ldr r3, [r7, #8] - 80068dc: 2b00 cmp r3, #0 - 80068de: d002 beq.n 80068e6 - 80068e0: 88fb ldrh r3, [r7, #6] - 80068e2: 2b00 cmp r3, #0 - 80068e4: d101 bne.n 80068ea + 8006992: 68bb ldr r3, [r7, #8] + 8006994: 2b00 cmp r3, #0 + 8006996: d002 beq.n 800699e + 8006998: 88fb ldrh r3, [r7, #6] + 800699a: 2b00 cmp r3, #0 + 800699c: d101 bne.n 80069a2 { return HAL_ERROR; - 80068e6: 2301 movs r3, #1 - 80068e8: e05b b.n 80069a2 + 800699e: 2301 movs r3, #1 + 80069a0: e05b b.n 8006a5a } huart->pTxBuffPtr = pData; - 80068ea: 68ba ldr r2, [r7, #8] - 80068ec: 68fb ldr r3, [r7, #12] - 80068ee: 621a str r2, [r3, #32] + 80069a2: 68ba ldr r2, [r7, #8] + 80069a4: 68fb ldr r3, [r7, #12] + 80069a6: 621a str r2, [r3, #32] huart->TxXferSize = Size; - 80068f0: 68fb ldr r3, [r7, #12] - 80068f2: 88fa ldrh r2, [r7, #6] - 80068f4: 849a strh r2, [r3, #36] @ 0x24 + 80069a8: 68fb ldr r3, [r7, #12] + 80069aa: 88fa ldrh r2, [r7, #6] + 80069ac: 849a strh r2, [r3, #36] @ 0x24 huart->TxXferCount = Size; - 80068f6: 68fb ldr r3, [r7, #12] - 80068f8: 88fa ldrh r2, [r7, #6] - 80068fa: 84da strh r2, [r3, #38] @ 0x26 + 80069ae: 68fb ldr r3, [r7, #12] + 80069b0: 88fa ldrh r2, [r7, #6] + 80069b2: 84da strh r2, [r3, #38] @ 0x26 huart->ErrorCode = HAL_UART_ERROR_NONE; - 80068fc: 68fb ldr r3, [r7, #12] - 80068fe: 2200 movs r2, #0 - 8006900: 645a str r2, [r3, #68] @ 0x44 + 80069b4: 68fb ldr r3, [r7, #12] + 80069b6: 2200 movs r2, #0 + 80069b8: 645a str r2, [r3, #68] @ 0x44 huart->gState = HAL_UART_STATE_BUSY_TX; - 8006902: 68fb ldr r3, [r7, #12] - 8006904: 2221 movs r2, #33 @ 0x21 - 8006906: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 80069ba: 68fb ldr r3, [r7, #12] + 80069bc: 2221 movs r2, #33 @ 0x21 + 80069be: f883 2041 strb.w r2, [r3, #65] @ 0x41 /* Set the UART DMA transfer complete callback */ huart->hdmatx->XferCpltCallback = UART_DMATransmitCplt; - 800690a: 68fb ldr r3, [r7, #12] - 800690c: 6b9b ldr r3, [r3, #56] @ 0x38 - 800690e: 4a27 ldr r2, [pc, #156] @ (80069ac ) - 8006910: 63da str r2, [r3, #60] @ 0x3c + 80069c2: 68fb ldr r3, [r7, #12] + 80069c4: 6b9b ldr r3, [r3, #56] @ 0x38 + 80069c6: 4a27 ldr r2, [pc, #156] @ (8006a64 ) + 80069c8: 63da str r2, [r3, #60] @ 0x3c /* Set the UART DMA Half transfer complete callback */ huart->hdmatx->XferHalfCpltCallback = UART_DMATxHalfCplt; - 8006912: 68fb ldr r3, [r7, #12] - 8006914: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006916: 4a26 ldr r2, [pc, #152] @ (80069b0 ) - 8006918: 641a str r2, [r3, #64] @ 0x40 + 80069ca: 68fb ldr r3, [r7, #12] + 80069cc: 6b9b ldr r3, [r3, #56] @ 0x38 + 80069ce: 4a26 ldr r2, [pc, #152] @ (8006a68 ) + 80069d0: 641a str r2, [r3, #64] @ 0x40 /* Set the DMA error callback */ huart->hdmatx->XferErrorCallback = UART_DMAError; - 800691a: 68fb ldr r3, [r7, #12] - 800691c: 6b9b ldr r3, [r3, #56] @ 0x38 - 800691e: 4a25 ldr r2, [pc, #148] @ (80069b4 ) - 8006920: 64da str r2, [r3, #76] @ 0x4c + 80069d2: 68fb ldr r3, [r7, #12] + 80069d4: 6b9b ldr r3, [r3, #56] @ 0x38 + 80069d6: 4a25 ldr r2, [pc, #148] @ (8006a6c ) + 80069d8: 64da str r2, [r3, #76] @ 0x4c /* Set the DMA abort callback */ huart->hdmatx->XferAbortCallback = NULL; - 8006922: 68fb ldr r3, [r7, #12] - 8006924: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006926: 2200 movs r2, #0 - 8006928: 651a str r2, [r3, #80] @ 0x50 + 80069da: 68fb ldr r3, [r7, #12] + 80069dc: 6b9b ldr r3, [r3, #56] @ 0x38 + 80069de: 2200 movs r2, #0 + 80069e0: 651a str r2, [r3, #80] @ 0x50 /* Enable the UART transmit DMA stream */ tmp = (const uint32_t *)&pData; - 800692a: f107 0308 add.w r3, r7, #8 - 800692e: 62fb str r3, [r7, #44] @ 0x2c + 80069e2: f107 0308 add.w r3, r7, #8 + 80069e6: 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) - 8006930: 68fb ldr r3, [r7, #12] - 8006932: 6b98 ldr r0, [r3, #56] @ 0x38 - 8006934: 6afb ldr r3, [r7, #44] @ 0x2c - 8006936: 6819 ldr r1, [r3, #0] - 8006938: 68fb ldr r3, [r7, #12] - 800693a: 681b ldr r3, [r3, #0] - 800693c: 3304 adds r3, #4 - 800693e: 461a mov r2, r3 - 8006940: 88fb ldrh r3, [r7, #6] - 8006942: f7fb fcaf bl 80022a4 - 8006946: 4603 mov r3, r0 - 8006948: 2b00 cmp r3, #0 - 800694a: d008 beq.n 800695e + 80069e8: 68fb ldr r3, [r7, #12] + 80069ea: 6b98 ldr r0, [r3, #56] @ 0x38 + 80069ec: 6afb ldr r3, [r7, #44] @ 0x2c + 80069ee: 6819 ldr r1, [r3, #0] + 80069f0: 68fb ldr r3, [r7, #12] + 80069f2: 681b ldr r3, [r3, #0] + 80069f4: 3304 adds r3, #4 + 80069f6: 461a mov r2, r3 + 80069f8: 88fb ldrh r3, [r7, #6] + 80069fa: f7fb fcaf bl 800235c + 80069fe: 4603 mov r3, r0 + 8006a00: 2b00 cmp r3, #0 + 8006a02: d008 beq.n 8006a16 { /* Set error code to DMA */ huart->ErrorCode = HAL_UART_ERROR_DMA; - 800694c: 68fb ldr r3, [r7, #12] - 800694e: 2210 movs r2, #16 - 8006950: 645a str r2, [r3, #68] @ 0x44 + 8006a04: 68fb ldr r3, [r7, #12] + 8006a06: 2210 movs r2, #16 + 8006a08: 645a str r2, [r3, #68] @ 0x44 /* Restore huart->gState to ready */ huart->gState = HAL_UART_STATE_READY; - 8006952: 68fb ldr r3, [r7, #12] - 8006954: 2220 movs r2, #32 - 8006956: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8006a0a: 68fb ldr r3, [r7, #12] + 8006a0c: 2220 movs r2, #32 + 8006a0e: f883 2041 strb.w r2, [r3, #65] @ 0x41 return HAL_ERROR; - 800695a: 2301 movs r3, #1 - 800695c: e021 b.n 80069a2 + 8006a12: 2301 movs r3, #1 + 8006a14: e021 b.n 8006a5a } /* Clear the TC flag in the SR register by writing 0 to it */ __HAL_UART_CLEAR_FLAG(huart, UART_FLAG_TC); - 800695e: 68fb ldr r3, [r7, #12] - 8006960: 681b ldr r3, [r3, #0] - 8006962: f06f 0240 mvn.w r2, #64 @ 0x40 - 8006966: 601a str r2, [r3, #0] + 8006a16: 68fb ldr r3, [r7, #12] + 8006a18: 681b ldr r3, [r3, #0] + 8006a1a: f06f 0240 mvn.w r2, #64 @ 0x40 + 8006a1e: 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); - 8006968: 68fb ldr r3, [r7, #12] - 800696a: 681b ldr r3, [r3, #0] - 800696c: 3314 adds r3, #20 - 800696e: 61bb str r3, [r7, #24] + 8006a20: 68fb ldr r3, [r7, #12] + 8006a22: 681b ldr r3, [r3, #0] + 8006a24: 3314 adds r3, #20 + 8006a26: 61bb str r3, [r7, #24] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006970: 69bb ldr r3, [r7, #24] - 8006972: e853 3f00 ldrex r3, [r3] - 8006976: 617b str r3, [r7, #20] + 8006a28: 69bb ldr r3, [r7, #24] + 8006a2a: e853 3f00 ldrex r3, [r3] + 8006a2e: 617b str r3, [r7, #20] return(result); - 8006978: 697b ldr r3, [r7, #20] - 800697a: f043 0380 orr.w r3, r3, #128 @ 0x80 - 800697e: 62bb str r3, [r7, #40] @ 0x28 - 8006980: 68fb ldr r3, [r7, #12] - 8006982: 681b ldr r3, [r3, #0] - 8006984: 3314 adds r3, #20 - 8006986: 6aba ldr r2, [r7, #40] @ 0x28 - 8006988: 627a str r2, [r7, #36] @ 0x24 - 800698a: 623b str r3, [r7, #32] + 8006a30: 697b ldr r3, [r7, #20] + 8006a32: f043 0380 orr.w r3, r3, #128 @ 0x80 + 8006a36: 62bb str r3, [r7, #40] @ 0x28 + 8006a38: 68fb ldr r3, [r7, #12] + 8006a3a: 681b ldr r3, [r3, #0] + 8006a3c: 3314 adds r3, #20 + 8006a3e: 6aba ldr r2, [r7, #40] @ 0x28 + 8006a40: 627a str r2, [r7, #36] @ 0x24 + 8006a42: 623b str r3, [r7, #32] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800698c: 6a39 ldr r1, [r7, #32] - 800698e: 6a7a ldr r2, [r7, #36] @ 0x24 - 8006990: e841 2300 strex r3, r2, [r1] - 8006994: 61fb str r3, [r7, #28] + 8006a44: 6a39 ldr r1, [r7, #32] + 8006a46: 6a7a ldr r2, [r7, #36] @ 0x24 + 8006a48: e841 2300 strex r3, r2, [r1] + 8006a4c: 61fb str r3, [r7, #28] return(result); - 8006996: 69fb ldr r3, [r7, #28] - 8006998: 2b00 cmp r3, #0 - 800699a: d1e5 bne.n 8006968 + 8006a4e: 69fb ldr r3, [r7, #28] + 8006a50: 2b00 cmp r3, #0 + 8006a52: d1e5 bne.n 8006a20 return HAL_OK; - 800699c: 2300 movs r3, #0 - 800699e: e000 b.n 80069a2 + 8006a54: 2300 movs r3, #0 + 8006a56: e000 b.n 8006a5a } else { return HAL_BUSY; - 80069a0: 2302 movs r3, #2 + 8006a58: 2302 movs r3, #2 } } - 80069a2: 4618 mov r0, r3 - 80069a4: 3730 adds r7, #48 @ 0x30 - 80069a6: 46bd mov sp, r7 - 80069a8: bd80 pop {r7, pc} - 80069aa: bf00 nop - 80069ac: 08006fad .word 0x08006fad - 80069b0: 08007047 .word 0x08007047 - 80069b4: 080071cb .word 0x080071cb + 8006a5a: 4618 mov r0, r3 + 8006a5c: 3730 adds r7, #48 @ 0x30 + 8006a5e: 46bd mov sp, r7 + 8006a60: bd80 pop {r7, pc} + 8006a62: bf00 nop + 8006a64: 08007065 .word 0x08007065 + 8006a68: 080070ff .word 0x080070ff + 8006a6c: 08007283 .word 0x08007283 -080069b8 : +08006a70 : * @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) { - 80069b8: b580 push {r7, lr} - 80069ba: b084 sub sp, #16 - 80069bc: af00 add r7, sp, #0 - 80069be: 60f8 str r0, [r7, #12] - 80069c0: 60b9 str r1, [r7, #8] - 80069c2: 4613 mov r3, r2 - 80069c4: 80fb strh r3, [r7, #6] + 8006a70: b580 push {r7, lr} + 8006a72: b084 sub sp, #16 + 8006a74: af00 add r7, sp, #0 + 8006a76: 60f8 str r0, [r7, #12] + 8006a78: 60b9 str r1, [r7, #8] + 8006a7a: 4613 mov r3, r2 + 8006a7c: 80fb strh r3, [r7, #6] /* Check that a Rx process is not already ongoing */ if (huart->RxState == HAL_UART_STATE_READY) - 80069c6: 68fb ldr r3, [r7, #12] - 80069c8: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 - 80069cc: b2db uxtb r3, r3 - 80069ce: 2b20 cmp r3, #32 - 80069d0: d112 bne.n 80069f8 + 8006a7e: 68fb ldr r3, [r7, #12] + 8006a80: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 + 8006a84: b2db uxtb r3, r3 + 8006a86: 2b20 cmp r3, #32 + 8006a88: d112 bne.n 8006ab0 { if ((pData == NULL) || (Size == 0U)) - 80069d2: 68bb ldr r3, [r7, #8] - 80069d4: 2b00 cmp r3, #0 - 80069d6: d002 beq.n 80069de - 80069d8: 88fb ldrh r3, [r7, #6] - 80069da: 2b00 cmp r3, #0 - 80069dc: d101 bne.n 80069e2 + 8006a8a: 68bb ldr r3, [r7, #8] + 8006a8c: 2b00 cmp r3, #0 + 8006a8e: d002 beq.n 8006a96 + 8006a90: 88fb ldrh r3, [r7, #6] + 8006a92: 2b00 cmp r3, #0 + 8006a94: d101 bne.n 8006a9a { return HAL_ERROR; - 80069de: 2301 movs r3, #1 - 80069e0: e00b b.n 80069fa + 8006a96: 2301 movs r3, #1 + 8006a98: e00b b.n 8006ab2 } /* Set Reception type to Standard reception */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 80069e2: 68fb ldr r3, [r7, #12] - 80069e4: 2200 movs r2, #0 - 80069e6: 631a str r2, [r3, #48] @ 0x30 + 8006a9a: 68fb ldr r3, [r7, #12] + 8006a9c: 2200 movs r2, #0 + 8006a9e: 631a str r2, [r3, #48] @ 0x30 return (UART_Start_Receive_DMA(huart, pData, Size)); - 80069e8: 88fb ldrh r3, [r7, #6] - 80069ea: 461a mov r2, r3 - 80069ec: 68b9 ldr r1, [r7, #8] - 80069ee: 68f8 ldr r0, [r7, #12] - 80069f0: f000 fc36 bl 8007260 - 80069f4: 4603 mov r3, r0 - 80069f6: e000 b.n 80069fa + 8006aa0: 88fb ldrh r3, [r7, #6] + 8006aa2: 461a mov r2, r3 + 8006aa4: 68b9 ldr r1, [r7, #8] + 8006aa6: 68f8 ldr r0, [r7, #12] + 8006aa8: f000 fc36 bl 8007318 + 8006aac: 4603 mov r3, r0 + 8006aae: e000 b.n 8006ab2 } else { return HAL_BUSY; - 80069f8: 2302 movs r3, #2 + 8006ab0: 2302 movs r3, #2 } } - 80069fa: 4618 mov r0, r3 - 80069fc: 3710 adds r7, #16 - 80069fe: 46bd mov sp, r7 - 8006a00: bd80 pop {r7, pc} + 8006ab2: 4618 mov r0, r3 + 8006ab4: 3710 adds r7, #16 + 8006ab6: 46bd mov sp, r7 + 8006ab8: bd80 pop {r7, pc} ... -08006a04 : +08006abc : * @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) { - 8006a04: b580 push {r7, lr} - 8006a06: b0ba sub sp, #232 @ 0xe8 - 8006a08: af00 add r7, sp, #0 - 8006a0a: 6078 str r0, [r7, #4] + 8006abc: b580 push {r7, lr} + 8006abe: b0ba sub sp, #232 @ 0xe8 + 8006ac0: af00 add r7, sp, #0 + 8006ac2: 6078 str r0, [r7, #4] uint32_t isrflags = READ_REG(huart->Instance->SR); - 8006a0c: 687b ldr r3, [r7, #4] - 8006a0e: 681b ldr r3, [r3, #0] - 8006a10: 681b ldr r3, [r3, #0] - 8006a12: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 + 8006ac4: 687b ldr r3, [r7, #4] + 8006ac6: 681b ldr r3, [r3, #0] + 8006ac8: 681b ldr r3, [r3, #0] + 8006aca: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 uint32_t cr1its = READ_REG(huart->Instance->CR1); - 8006a16: 687b ldr r3, [r7, #4] - 8006a18: 681b ldr r3, [r3, #0] - 8006a1a: 68db ldr r3, [r3, #12] - 8006a1c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 + 8006ace: 687b ldr r3, [r7, #4] + 8006ad0: 681b ldr r3, [r3, #0] + 8006ad2: 68db ldr r3, [r3, #12] + 8006ad4: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 uint32_t cr3its = READ_REG(huart->Instance->CR3); - 8006a20: 687b ldr r3, [r7, #4] - 8006a22: 681b ldr r3, [r3, #0] - 8006a24: 695b ldr r3, [r3, #20] - 8006a26: f8c7 30dc str.w r3, [r7, #220] @ 0xdc + 8006ad8: 687b ldr r3, [r7, #4] + 8006ada: 681b ldr r3, [r3, #0] + 8006adc: 695b ldr r3, [r3, #20] + 8006ade: f8c7 30dc str.w r3, [r7, #220] @ 0xdc uint32_t errorflags = 0x00U; - 8006a2a: 2300 movs r3, #0 - 8006a2c: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 + 8006ae2: 2300 movs r3, #0 + 8006ae4: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 uint32_t dmarequest = 0x00U; - 8006a30: 2300 movs r3, #0 - 8006a32: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 + 8006ae8: 2300 movs r3, #0 + 8006aea: 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)); - 8006a36: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006a3a: f003 030f and.w r3, r3, #15 - 8006a3e: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 + 8006aee: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006af2: f003 030f and.w r3, r3, #15 + 8006af6: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 if (errorflags == RESET) - 8006a42: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 - 8006a46: 2b00 cmp r3, #0 - 8006a48: d10f bne.n 8006a6a + 8006afa: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 + 8006afe: 2b00 cmp r3, #0 + 8006b00: d10f bne.n 8006b22 { /* UART in mode Receiver -------------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) - 8006a4a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006a4e: f003 0320 and.w r3, r3, #32 - 8006a52: 2b00 cmp r3, #0 - 8006a54: d009 beq.n 8006a6a - 8006a56: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006a5a: f003 0320 and.w r3, r3, #32 - 8006a5e: 2b00 cmp r3, #0 - 8006a60: d003 beq.n 8006a6a + 8006b02: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006b06: f003 0320 and.w r3, r3, #32 + 8006b0a: 2b00 cmp r3, #0 + 8006b0c: d009 beq.n 8006b22 + 8006b0e: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8006b12: f003 0320 and.w r3, r3, #32 + 8006b16: 2b00 cmp r3, #0 + 8006b18: d003 beq.n 8006b22 { UART_Receive_IT(huart); - 8006a62: 6878 ldr r0, [r7, #4] - 8006a64: f000 fda6 bl 80075b4 + 8006b1a: 6878 ldr r0, [r7, #4] + 8006b1c: f000 fda6 bl 800766c return; - 8006a68: e273 b.n 8006f52 + 8006b20: e273 b.n 800700a } } /* If some errors occur */ if ((errorflags != RESET) && (((cr3its & USART_CR3_EIE) != RESET) - 8006a6a: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 - 8006a6e: 2b00 cmp r3, #0 - 8006a70: f000 80de beq.w 8006c30 - 8006a74: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8006a78: f003 0301 and.w r3, r3, #1 - 8006a7c: 2b00 cmp r3, #0 - 8006a7e: d106 bne.n 8006a8e + 8006b22: f8d7 30d8 ldr.w r3, [r7, #216] @ 0xd8 + 8006b26: 2b00 cmp r3, #0 + 8006b28: f000 80de beq.w 8006ce8 + 8006b2c: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8006b30: f003 0301 and.w r3, r3, #1 + 8006b34: 2b00 cmp r3, #0 + 8006b36: d106 bne.n 8006b46 || ((cr1its & (USART_CR1_RXNEIE | USART_CR1_PEIE)) != RESET))) - 8006a80: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006a84: f403 7390 and.w r3, r3, #288 @ 0x120 - 8006a88: 2b00 cmp r3, #0 - 8006a8a: f000 80d1 beq.w 8006c30 + 8006b38: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8006b3c: f403 7390 and.w r3, r3, #288 @ 0x120 + 8006b40: 2b00 cmp r3, #0 + 8006b42: f000 80d1 beq.w 8006ce8 { /* UART parity error interrupt occurred ----------------------------------*/ if (((isrflags & USART_SR_PE) != RESET) && ((cr1its & USART_CR1_PEIE) != RESET)) - 8006a8e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006a92: f003 0301 and.w r3, r3, #1 - 8006a96: 2b00 cmp r3, #0 - 8006a98: d00b beq.n 8006ab2 - 8006a9a: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006a9e: f403 7380 and.w r3, r3, #256 @ 0x100 - 8006aa2: 2b00 cmp r3, #0 - 8006aa4: d005 beq.n 8006ab2 + 8006b46: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006b4a: f003 0301 and.w r3, r3, #1 + 8006b4e: 2b00 cmp r3, #0 + 8006b50: d00b beq.n 8006b6a + 8006b52: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8006b56: f403 7380 and.w r3, r3, #256 @ 0x100 + 8006b5a: 2b00 cmp r3, #0 + 8006b5c: d005 beq.n 8006b6a { huart->ErrorCode |= HAL_UART_ERROR_PE; - 8006aa6: 687b ldr r3, [r7, #4] - 8006aa8: 6c5b ldr r3, [r3, #68] @ 0x44 - 8006aaa: f043 0201 orr.w r2, r3, #1 - 8006aae: 687b ldr r3, [r7, #4] - 8006ab0: 645a str r2, [r3, #68] @ 0x44 + 8006b5e: 687b ldr r3, [r7, #4] + 8006b60: 6c5b ldr r3, [r3, #68] @ 0x44 + 8006b62: f043 0201 orr.w r2, r3, #1 + 8006b66: 687b ldr r3, [r7, #4] + 8006b68: 645a str r2, [r3, #68] @ 0x44 } /* UART noise error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_NE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) - 8006ab2: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006ab6: f003 0304 and.w r3, r3, #4 - 8006aba: 2b00 cmp r3, #0 - 8006abc: d00b beq.n 8006ad6 - 8006abe: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8006ac2: f003 0301 and.w r3, r3, #1 - 8006ac6: 2b00 cmp r3, #0 - 8006ac8: d005 beq.n 8006ad6 + 8006b6a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006b6e: f003 0304 and.w r3, r3, #4 + 8006b72: 2b00 cmp r3, #0 + 8006b74: d00b beq.n 8006b8e + 8006b76: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8006b7a: f003 0301 and.w r3, r3, #1 + 8006b7e: 2b00 cmp r3, #0 + 8006b80: d005 beq.n 8006b8e { huart->ErrorCode |= HAL_UART_ERROR_NE; - 8006aca: 687b ldr r3, [r7, #4] - 8006acc: 6c5b ldr r3, [r3, #68] @ 0x44 - 8006ace: f043 0202 orr.w r2, r3, #2 - 8006ad2: 687b ldr r3, [r7, #4] - 8006ad4: 645a str r2, [r3, #68] @ 0x44 + 8006b82: 687b ldr r3, [r7, #4] + 8006b84: 6c5b ldr r3, [r3, #68] @ 0x44 + 8006b86: f043 0202 orr.w r2, r3, #2 + 8006b8a: 687b ldr r3, [r7, #4] + 8006b8c: 645a str r2, [r3, #68] @ 0x44 } /* UART frame error interrupt occurred -----------------------------------*/ if (((isrflags & USART_SR_FE) != RESET) && ((cr3its & USART_CR3_EIE) != RESET)) - 8006ad6: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006ada: f003 0302 and.w r3, r3, #2 - 8006ade: 2b00 cmp r3, #0 - 8006ae0: d00b beq.n 8006afa - 8006ae2: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8006ae6: f003 0301 and.w r3, r3, #1 - 8006aea: 2b00 cmp r3, #0 - 8006aec: d005 beq.n 8006afa + 8006b8e: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006b92: f003 0302 and.w r3, r3, #2 + 8006b96: 2b00 cmp r3, #0 + 8006b98: d00b beq.n 8006bb2 + 8006b9a: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8006b9e: f003 0301 and.w r3, r3, #1 + 8006ba2: 2b00 cmp r3, #0 + 8006ba4: d005 beq.n 8006bb2 { huart->ErrorCode |= HAL_UART_ERROR_FE; - 8006aee: 687b ldr r3, [r7, #4] - 8006af0: 6c5b ldr r3, [r3, #68] @ 0x44 - 8006af2: f043 0204 orr.w r2, r3, #4 - 8006af6: 687b ldr r3, [r7, #4] - 8006af8: 645a str r2, [r3, #68] @ 0x44 + 8006ba6: 687b ldr r3, [r7, #4] + 8006ba8: 6c5b ldr r3, [r3, #68] @ 0x44 + 8006baa: f043 0204 orr.w r2, r3, #4 + 8006bae: 687b ldr r3, [r7, #4] + 8006bb0: 645a str r2, [r3, #68] @ 0x44 } /* UART Over-Run interrupt occurred --------------------------------------*/ if (((isrflags & USART_SR_ORE) != RESET) && (((cr1its & USART_CR1_RXNEIE) != RESET) - 8006afa: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006afe: f003 0308 and.w r3, r3, #8 - 8006b02: 2b00 cmp r3, #0 - 8006b04: d011 beq.n 8006b2a - 8006b06: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006b0a: f003 0320 and.w r3, r3, #32 - 8006b0e: 2b00 cmp r3, #0 - 8006b10: d105 bne.n 8006b1e + 8006bb2: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006bb6: f003 0308 and.w r3, r3, #8 + 8006bba: 2b00 cmp r3, #0 + 8006bbc: d011 beq.n 8006be2 + 8006bbe: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8006bc2: f003 0320 and.w r3, r3, #32 + 8006bc6: 2b00 cmp r3, #0 + 8006bc8: d105 bne.n 8006bd6 || ((cr3its & USART_CR3_EIE) != RESET))) - 8006b12: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc - 8006b16: f003 0301 and.w r3, r3, #1 - 8006b1a: 2b00 cmp r3, #0 - 8006b1c: d005 beq.n 8006b2a + 8006bca: f8d7 30dc ldr.w r3, [r7, #220] @ 0xdc + 8006bce: f003 0301 and.w r3, r3, #1 + 8006bd2: 2b00 cmp r3, #0 + 8006bd4: d005 beq.n 8006be2 { huart->ErrorCode |= HAL_UART_ERROR_ORE; - 8006b1e: 687b ldr r3, [r7, #4] - 8006b20: 6c5b ldr r3, [r3, #68] @ 0x44 - 8006b22: f043 0208 orr.w r2, r3, #8 - 8006b26: 687b ldr r3, [r7, #4] - 8006b28: 645a str r2, [r3, #68] @ 0x44 + 8006bd6: 687b ldr r3, [r7, #4] + 8006bd8: 6c5b ldr r3, [r3, #68] @ 0x44 + 8006bda: f043 0208 orr.w r2, r3, #8 + 8006bde: 687b ldr r3, [r7, #4] + 8006be0: 645a str r2, [r3, #68] @ 0x44 } /* Call UART Error Call back function if need be --------------------------*/ if (huart->ErrorCode != HAL_UART_ERROR_NONE) - 8006b2a: 687b ldr r3, [r7, #4] - 8006b2c: 6c5b ldr r3, [r3, #68] @ 0x44 - 8006b2e: 2b00 cmp r3, #0 - 8006b30: f000 820a beq.w 8006f48 + 8006be2: 687b ldr r3, [r7, #4] + 8006be4: 6c5b ldr r3, [r3, #68] @ 0x44 + 8006be6: 2b00 cmp r3, #0 + 8006be8: f000 820a beq.w 8007000 { /* UART in mode Receiver -----------------------------------------------*/ if (((isrflags & USART_SR_RXNE) != RESET) && ((cr1its & USART_CR1_RXNEIE) != RESET)) - 8006b34: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006b38: f003 0320 and.w r3, r3, #32 - 8006b3c: 2b00 cmp r3, #0 - 8006b3e: d008 beq.n 8006b52 - 8006b40: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006b44: f003 0320 and.w r3, r3, #32 - 8006b48: 2b00 cmp r3, #0 - 8006b4a: d002 beq.n 8006b52 + 8006bec: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006bf0: f003 0320 and.w r3, r3, #32 + 8006bf4: 2b00 cmp r3, #0 + 8006bf6: d008 beq.n 8006c0a + 8006bf8: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8006bfc: f003 0320 and.w r3, r3, #32 + 8006c00: 2b00 cmp r3, #0 + 8006c02: d002 beq.n 8006c0a { UART_Receive_IT(huart); - 8006b4c: 6878 ldr r0, [r7, #4] - 8006b4e: f000 fd31 bl 80075b4 + 8006c04: 6878 ldr r0, [r7, #4] + 8006c06: f000 fd31 bl 800766c } /* 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); - 8006b52: 687b ldr r3, [r7, #4] - 8006b54: 681b ldr r3, [r3, #0] - 8006b56: 695b ldr r3, [r3, #20] - 8006b58: f003 0340 and.w r3, r3, #64 @ 0x40 - 8006b5c: 2b40 cmp r3, #64 @ 0x40 - 8006b5e: bf0c ite eq - 8006b60: 2301 moveq r3, #1 - 8006b62: 2300 movne r3, #0 - 8006b64: b2db uxtb r3, r3 - 8006b66: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 + 8006c0a: 687b ldr r3, [r7, #4] + 8006c0c: 681b ldr r3, [r3, #0] + 8006c0e: 695b ldr r3, [r3, #20] + 8006c10: f003 0340 and.w r3, r3, #64 @ 0x40 + 8006c14: 2b40 cmp r3, #64 @ 0x40 + 8006c16: bf0c ite eq + 8006c18: 2301 moveq r3, #1 + 8006c1a: 2300 movne r3, #0 + 8006c1c: b2db uxtb r3, r3 + 8006c1e: f8c7 30d4 str.w r3, [r7, #212] @ 0xd4 if (((huart->ErrorCode & HAL_UART_ERROR_ORE) != RESET) || dmarequest) - 8006b6a: 687b ldr r3, [r7, #4] - 8006b6c: 6c5b ldr r3, [r3, #68] @ 0x44 - 8006b6e: f003 0308 and.w r3, r3, #8 - 8006b72: 2b00 cmp r3, #0 - 8006b74: d103 bne.n 8006b7e - 8006b76: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4 - 8006b7a: 2b00 cmp r3, #0 - 8006b7c: d04f beq.n 8006c1e + 8006c22: 687b ldr r3, [r7, #4] + 8006c24: 6c5b ldr r3, [r3, #68] @ 0x44 + 8006c26: f003 0308 and.w r3, r3, #8 + 8006c2a: 2b00 cmp r3, #0 + 8006c2c: d103 bne.n 8006c36 + 8006c2e: f8d7 30d4 ldr.w r3, [r7, #212] @ 0xd4 + 8006c32: 2b00 cmp r3, #0 + 8006c34: d04f beq.n 8006cd6 { /* 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); - 8006b7e: 6878 ldr r0, [r7, #4] - 8006b80: f000 fc3c bl 80073fc + 8006c36: 6878 ldr r0, [r7, #4] + 8006c38: f000 fc3c bl 80074b4 /* Disable the UART DMA Rx request if enabled */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8006b84: 687b ldr r3, [r7, #4] - 8006b86: 681b ldr r3, [r3, #0] - 8006b88: 695b ldr r3, [r3, #20] - 8006b8a: f003 0340 and.w r3, r3, #64 @ 0x40 - 8006b8e: 2b40 cmp r3, #64 @ 0x40 - 8006b90: d141 bne.n 8006c16 + 8006c3c: 687b ldr r3, [r7, #4] + 8006c3e: 681b ldr r3, [r3, #0] + 8006c40: 695b ldr r3, [r3, #20] + 8006c42: f003 0340 and.w r3, r3, #64 @ 0x40 + 8006c46: 2b40 cmp r3, #64 @ 0x40 + 8006c48: d141 bne.n 8006cce { ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_DMAR); - 8006b92: 687b ldr r3, [r7, #4] - 8006b94: 681b ldr r3, [r3, #0] - 8006b96: 3314 adds r3, #20 - 8006b98: f8c7 309c str.w r3, [r7, #156] @ 0x9c + 8006c4a: 687b ldr r3, [r7, #4] + 8006c4c: 681b ldr r3, [r3, #0] + 8006c4e: 3314 adds r3, #20 + 8006c50: f8c7 309c str.w r3, [r7, #156] @ 0x9c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006b9c: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c - 8006ba0: e853 3f00 ldrex r3, [r3] - 8006ba4: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 8006c54: f8d7 309c ldr.w r3, [r7, #156] @ 0x9c + 8006c58: e853 3f00 ldrex r3, [r3] + 8006c5c: f8c7 3098 str.w r3, [r7, #152] @ 0x98 return(result); - 8006ba8: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 - 8006bac: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8006bb0: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 - 8006bb4: 687b ldr r3, [r7, #4] - 8006bb6: 681b ldr r3, [r3, #0] - 8006bb8: 3314 adds r3, #20 - 8006bba: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0 - 8006bbe: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8 - 8006bc2: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 + 8006c60: f8d7 3098 ldr.w r3, [r7, #152] @ 0x98 + 8006c64: f023 0340 bic.w r3, r3, #64 @ 0x40 + 8006c68: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 + 8006c6c: 687b ldr r3, [r7, #4] + 8006c6e: 681b ldr r3, [r3, #0] + 8006c70: 3314 adds r3, #20 + 8006c72: f8d7 20d0 ldr.w r2, [r7, #208] @ 0xd0 + 8006c76: f8c7 20a8 str.w r2, [r7, #168] @ 0xa8 + 8006c7a: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006bc6: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4 - 8006bca: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8 - 8006bce: e841 2300 strex r3, r2, [r1] - 8006bd2: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 + 8006c7e: f8d7 10a4 ldr.w r1, [r7, #164] @ 0xa4 + 8006c82: f8d7 20a8 ldr.w r2, [r7, #168] @ 0xa8 + 8006c86: e841 2300 strex r3, r2, [r1] + 8006c8a: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 return(result); - 8006bd6: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 - 8006bda: 2b00 cmp r3, #0 - 8006bdc: d1d9 bne.n 8006b92 + 8006c8e: f8d7 30a0 ldr.w r3, [r7, #160] @ 0xa0 + 8006c92: 2b00 cmp r3, #0 + 8006c94: d1d9 bne.n 8006c4a /* Abort the UART DMA Rx stream */ if (huart->hdmarx != NULL) - 8006bde: 687b ldr r3, [r7, #4] - 8006be0: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006be2: 2b00 cmp r3, #0 - 8006be4: d013 beq.n 8006c0e + 8006c96: 687b ldr r3, [r7, #4] + 8006c98: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006c9a: 2b00 cmp r3, #0 + 8006c9c: d013 beq.n 8006cc6 { /* Set the UART DMA Abort callback : will lead to call HAL_UART_ErrorCallback() at end of DMA abort procedure */ huart->hdmarx->XferAbortCallback = UART_DMAAbortOnError; - 8006be6: 687b ldr r3, [r7, #4] - 8006be8: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006bea: 4a8a ldr r2, [pc, #552] @ (8006e14 ) - 8006bec: 651a str r2, [r3, #80] @ 0x50 + 8006c9e: 687b ldr r3, [r7, #4] + 8006ca0: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006ca2: 4a8a ldr r2, [pc, #552] @ (8006ecc ) + 8006ca4: 651a str r2, [r3, #80] @ 0x50 if (HAL_DMA_Abort_IT(huart->hdmarx) != HAL_OK) - 8006bee: 687b ldr r3, [r7, #4] - 8006bf0: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006bf2: 4618 mov r0, r3 - 8006bf4: f7fb fc1e bl 8002434 - 8006bf8: 4603 mov r3, r0 - 8006bfa: 2b00 cmp r3, #0 - 8006bfc: d016 beq.n 8006c2c + 8006ca6: 687b ldr r3, [r7, #4] + 8006ca8: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006caa: 4618 mov r0, r3 + 8006cac: f7fb fc1e bl 80024ec + 8006cb0: 4603 mov r3, r0 + 8006cb2: 2b00 cmp r3, #0 + 8006cb4: d016 beq.n 8006ce4 { /* Call Directly XferAbortCallback function in case of error */ huart->hdmarx->XferAbortCallback(huart->hdmarx); - 8006bfe: 687b ldr r3, [r7, #4] - 8006c00: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006c02: 6d1b ldr r3, [r3, #80] @ 0x50 - 8006c04: 687a ldr r2, [r7, #4] - 8006c06: 6bd2 ldr r2, [r2, #60] @ 0x3c - 8006c08: 4610 mov r0, r2 - 8006c0a: 4798 blx r3 + 8006cb6: 687b ldr r3, [r7, #4] + 8006cb8: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006cba: 6d1b ldr r3, [r3, #80] @ 0x50 + 8006cbc: 687a ldr r2, [r7, #4] + 8006cbe: 6bd2 ldr r2, [r2, #60] @ 0x3c + 8006cc0: 4610 mov r0, r2 + 8006cc2: 4798 blx r3 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8006c0c: e00e b.n 8006c2c + 8006cc4: e00e b.n 8006ce4 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 8006c0e: 6878 ldr r0, [r7, #4] - 8006c10: f7fa f958 bl 8000ec4 + 8006cc6: 6878 ldr r0, [r7, #4] + 8006cc8: f7fa f900 bl 8000ecc if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8006c14: e00a b.n 8006c2c + 8006ccc: e00a b.n 8006ce4 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 8006c16: 6878 ldr r0, [r7, #4] - 8006c18: f7fa f954 bl 8000ec4 + 8006cce: 6878 ldr r0, [r7, #4] + 8006cd0: f7fa f8fc bl 8000ecc if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8006c1c: e006 b.n 8006c2c + 8006cd4: e006 b.n 8006ce4 #if (USE_HAL_UART_REGISTER_CALLBACKS == 1) /*Call registered error callback*/ huart->ErrorCallback(huart); #else /*Call legacy weak error callback*/ HAL_UART_ErrorCallback(huart); - 8006c1e: 6878 ldr r0, [r7, #4] - 8006c20: f7fa f950 bl 8000ec4 + 8006cd6: 6878 ldr r0, [r7, #4] + 8006cd8: f7fa f8f8 bl 8000ecc #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ huart->ErrorCode = HAL_UART_ERROR_NONE; - 8006c24: 687b ldr r3, [r7, #4] - 8006c26: 2200 movs r2, #0 - 8006c28: 645a str r2, [r3, #68] @ 0x44 + 8006cdc: 687b ldr r3, [r7, #4] + 8006cde: 2200 movs r2, #0 + 8006ce0: 645a str r2, [r3, #68] @ 0x44 } } return; - 8006c2a: e18d b.n 8006f48 + 8006ce2: e18d b.n 8007000 if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8006c2c: bf00 nop + 8006ce4: bf00 nop return; - 8006c2e: e18b b.n 8006f48 + 8006ce6: e18b b.n 8007000 } /* End if some error occurs */ /* Check current reception Mode : If Reception till IDLE event has been selected : */ if ((huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 8006c30: 687b ldr r3, [r7, #4] - 8006c32: 6b1b ldr r3, [r3, #48] @ 0x30 - 8006c34: 2b01 cmp r3, #1 - 8006c36: f040 8167 bne.w 8006f08 + 8006ce8: 687b ldr r3, [r7, #4] + 8006cea: 6b1b ldr r3, [r3, #48] @ 0x30 + 8006cec: 2b01 cmp r3, #1 + 8006cee: f040 8167 bne.w 8006fc0 && ((isrflags & USART_SR_IDLE) != 0U) - 8006c3a: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006c3e: f003 0310 and.w r3, r3, #16 - 8006c42: 2b00 cmp r3, #0 - 8006c44: f000 8160 beq.w 8006f08 + 8006cf2: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006cf6: f003 0310 and.w r3, r3, #16 + 8006cfa: 2b00 cmp r3, #0 + 8006cfc: f000 8160 beq.w 8006fc0 && ((cr1its & USART_CR1_IDLEIE) != 0U)) - 8006c48: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006c4c: f003 0310 and.w r3, r3, #16 - 8006c50: 2b00 cmp r3, #0 - 8006c52: f000 8159 beq.w 8006f08 + 8006d00: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8006d04: f003 0310 and.w r3, r3, #16 + 8006d08: 2b00 cmp r3, #0 + 8006d0a: f000 8159 beq.w 8006fc0 { __HAL_UART_CLEAR_IDLEFLAG(huart); - 8006c56: 2300 movs r3, #0 - 8006c58: 60bb str r3, [r7, #8] - 8006c5a: 687b ldr r3, [r7, #4] - 8006c5c: 681b ldr r3, [r3, #0] - 8006c5e: 681b ldr r3, [r3, #0] - 8006c60: 60bb str r3, [r7, #8] - 8006c62: 687b ldr r3, [r7, #4] - 8006c64: 681b ldr r3, [r3, #0] - 8006c66: 685b ldr r3, [r3, #4] - 8006c68: 60bb str r3, [r7, #8] - 8006c6a: 68bb ldr r3, [r7, #8] + 8006d0e: 2300 movs r3, #0 + 8006d10: 60bb str r3, [r7, #8] + 8006d12: 687b ldr r3, [r7, #4] + 8006d14: 681b ldr r3, [r3, #0] + 8006d16: 681b ldr r3, [r3, #0] + 8006d18: 60bb str r3, [r7, #8] + 8006d1a: 687b ldr r3, [r7, #4] + 8006d1c: 681b ldr r3, [r3, #0] + 8006d1e: 685b ldr r3, [r3, #4] + 8006d20: 60bb str r3, [r7, #8] + 8006d22: 68bb ldr r3, [r7, #8] /* Check if DMA mode is enabled in UART */ if (HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR)) - 8006c6c: 687b ldr r3, [r7, #4] - 8006c6e: 681b ldr r3, [r3, #0] - 8006c70: 695b ldr r3, [r3, #20] - 8006c72: f003 0340 and.w r3, r3, #64 @ 0x40 - 8006c76: 2b40 cmp r3, #64 @ 0x40 - 8006c78: f040 80ce bne.w 8006e18 + 8006d24: 687b ldr r3, [r7, #4] + 8006d26: 681b ldr r3, [r3, #0] + 8006d28: 695b ldr r3, [r3, #20] + 8006d2a: f003 0340 and.w r3, r3, #64 @ 0x40 + 8006d2e: 2b40 cmp r3, #64 @ 0x40 + 8006d30: f040 80ce bne.w 8006ed0 { /* 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); - 8006c7c: 687b ldr r3, [r7, #4] - 8006c7e: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006c80: 681b ldr r3, [r3, #0] - 8006c82: 685b ldr r3, [r3, #4] - 8006c84: f8a7 30be strh.w r3, [r7, #190] @ 0xbe + 8006d34: 687b ldr r3, [r7, #4] + 8006d36: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006d38: 681b ldr r3, [r3, #0] + 8006d3a: 685b ldr r3, [r3, #4] + 8006d3c: f8a7 30be strh.w r3, [r7, #190] @ 0xbe if ((nb_remaining_rx_data > 0U) - 8006c88: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe - 8006c8c: 2b00 cmp r3, #0 - 8006c8e: f000 80a9 beq.w 8006de4 + 8006d40: f8b7 30be ldrh.w r3, [r7, #190] @ 0xbe + 8006d44: 2b00 cmp r3, #0 + 8006d46: f000 80a9 beq.w 8006e9c && (nb_remaining_rx_data < huart->RxXferSize)) - 8006c92: 687b ldr r3, [r7, #4] - 8006c94: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8006c96: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 8006c9a: 429a cmp r2, r3 - 8006c9c: f080 80a2 bcs.w 8006de4 + 8006d4a: 687b ldr r3, [r7, #4] + 8006d4c: 8d9b ldrh r3, [r3, #44] @ 0x2c + 8006d4e: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 8006d52: 429a cmp r2, r3 + 8006d54: f080 80a2 bcs.w 8006e9c { /* Reception is not complete */ huart->RxXferCount = nb_remaining_rx_data; - 8006ca0: 687b ldr r3, [r7, #4] - 8006ca2: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 8006ca6: 85da strh r2, [r3, #46] @ 0x2e + 8006d58: 687b ldr r3, [r7, #4] + 8006d5a: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 8006d5e: 85da strh r2, [r3, #46] @ 0x2e /* In Normal mode, end DMA xfer and HAL UART Rx process*/ if (huart->hdmarx->Init.Mode != DMA_CIRCULAR) - 8006ca8: 687b ldr r3, [r7, #4] - 8006caa: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006cac: 69db ldr r3, [r3, #28] - 8006cae: f5b3 7f80 cmp.w r3, #256 @ 0x100 - 8006cb2: f000 8088 beq.w 8006dc6 + 8006d60: 687b ldr r3, [r7, #4] + 8006d62: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006d64: 69db ldr r3, [r3, #28] + 8006d66: f5b3 7f80 cmp.w r3, #256 @ 0x100 + 8006d6a: f000 8088 beq.w 8006e7e { /* Disable PE and ERR (Frame error, noise error, overrun error) interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_PEIE); - 8006cb6: 687b ldr r3, [r7, #4] - 8006cb8: 681b ldr r3, [r3, #0] - 8006cba: 330c adds r3, #12 - 8006cbc: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 8006d6e: 687b ldr r3, [r7, #4] + 8006d70: 681b ldr r3, [r3, #0] + 8006d72: 330c adds r3, #12 + 8006d74: f8c7 3088 str.w r3, [r7, #136] @ 0x88 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006cc0: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 - 8006cc4: e853 3f00 ldrex r3, [r3] - 8006cc8: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + 8006d78: f8d7 3088 ldr.w r3, [r7, #136] @ 0x88 + 8006d7c: e853 3f00 ldrex r3, [r3] + 8006d80: f8c7 3084 str.w r3, [r7, #132] @ 0x84 return(result); - 8006ccc: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 - 8006cd0: f423 7380 bic.w r3, r3, #256 @ 0x100 - 8006cd4: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 - 8006cd8: 687b ldr r3, [r7, #4] - 8006cda: 681b ldr r3, [r3, #0] - 8006cdc: 330c adds r3, #12 - 8006cde: f8d7 20b8 ldr.w r2, [r7, #184] @ 0xb8 - 8006ce2: f8c7 2094 str.w r2, [r7, #148] @ 0x94 - 8006ce6: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 8006d84: f8d7 3084 ldr.w r3, [r7, #132] @ 0x84 + 8006d88: f423 7380 bic.w r3, r3, #256 @ 0x100 + 8006d8c: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 + 8006d90: 687b ldr r3, [r7, #4] + 8006d92: 681b ldr r3, [r3, #0] + 8006d94: 330c adds r3, #12 + 8006d96: f8d7 20b8 ldr.w r2, [r7, #184] @ 0xb8 + 8006d9a: f8c7 2094 str.w r2, [r7, #148] @ 0x94 + 8006d9e: f8c7 3090 str.w r3, [r7, #144] @ 0x90 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006cea: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90 - 8006cee: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 - 8006cf2: e841 2300 strex r3, r2, [r1] - 8006cf6: f8c7 308c str.w r3, [r7, #140] @ 0x8c + 8006da2: f8d7 1090 ldr.w r1, [r7, #144] @ 0x90 + 8006da6: f8d7 2094 ldr.w r2, [r7, #148] @ 0x94 + 8006daa: e841 2300 strex r3, r2, [r1] + 8006dae: f8c7 308c str.w r3, [r7, #140] @ 0x8c return(result); - 8006cfa: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c - 8006cfe: 2b00 cmp r3, #0 - 8006d00: d1d9 bne.n 8006cb6 + 8006db2: f8d7 308c ldr.w r3, [r7, #140] @ 0x8c + 8006db6: 2b00 cmp r3, #0 + 8006db8: d1d9 bne.n 8006d6e ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8006d02: 687b ldr r3, [r7, #4] - 8006d04: 681b ldr r3, [r3, #0] - 8006d06: 3314 adds r3, #20 - 8006d08: 677b str r3, [r7, #116] @ 0x74 + 8006dba: 687b ldr r3, [r7, #4] + 8006dbc: 681b ldr r3, [r3, #0] + 8006dbe: 3314 adds r3, #20 + 8006dc0: 677b str r3, [r7, #116] @ 0x74 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006d0a: 6f7b ldr r3, [r7, #116] @ 0x74 - 8006d0c: e853 3f00 ldrex r3, [r3] - 8006d10: 673b str r3, [r7, #112] @ 0x70 + 8006dc2: 6f7b ldr r3, [r7, #116] @ 0x74 + 8006dc4: e853 3f00 ldrex r3, [r3] + 8006dc8: 673b str r3, [r7, #112] @ 0x70 return(result); - 8006d12: 6f3b ldr r3, [r7, #112] @ 0x70 - 8006d14: f023 0301 bic.w r3, r3, #1 - 8006d18: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 8006d1c: 687b ldr r3, [r7, #4] - 8006d1e: 681b ldr r3, [r3, #0] - 8006d20: 3314 adds r3, #20 - 8006d22: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 - 8006d26: f8c7 2080 str.w r2, [r7, #128] @ 0x80 - 8006d2a: 67fb str r3, [r7, #124] @ 0x7c + 8006dca: 6f3b ldr r3, [r7, #112] @ 0x70 + 8006dcc: f023 0301 bic.w r3, r3, #1 + 8006dd0: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8006dd4: 687b ldr r3, [r7, #4] + 8006dd6: 681b ldr r3, [r3, #0] + 8006dd8: 3314 adds r3, #20 + 8006dda: f8d7 20b4 ldr.w r2, [r7, #180] @ 0xb4 + 8006dde: f8c7 2080 str.w r2, [r7, #128] @ 0x80 + 8006de2: 67fb str r3, [r7, #124] @ 0x7c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006d2c: 6ff9 ldr r1, [r7, #124] @ 0x7c - 8006d2e: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 - 8006d32: e841 2300 strex r3, r2, [r1] - 8006d36: 67bb str r3, [r7, #120] @ 0x78 + 8006de4: 6ff9 ldr r1, [r7, #124] @ 0x7c + 8006de6: f8d7 2080 ldr.w r2, [r7, #128] @ 0x80 + 8006dea: e841 2300 strex r3, r2, [r1] + 8006dee: 67bb str r3, [r7, #120] @ 0x78 return(result); - 8006d38: 6fbb ldr r3, [r7, #120] @ 0x78 - 8006d3a: 2b00 cmp r3, #0 - 8006d3c: d1e1 bne.n 8006d02 + 8006df0: 6fbb ldr r3, [r7, #120] @ 0x78 + 8006df2: 2b00 cmp r3, #0 + 8006df4: d1e1 bne.n 8006dba /* 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); - 8006d3e: 687b ldr r3, [r7, #4] - 8006d40: 681b ldr r3, [r3, #0] - 8006d42: 3314 adds r3, #20 - 8006d44: 663b str r3, [r7, #96] @ 0x60 + 8006df6: 687b ldr r3, [r7, #4] + 8006df8: 681b ldr r3, [r3, #0] + 8006dfa: 3314 adds r3, #20 + 8006dfc: 663b str r3, [r7, #96] @ 0x60 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006d46: 6e3b ldr r3, [r7, #96] @ 0x60 - 8006d48: e853 3f00 ldrex r3, [r3] - 8006d4c: 65fb str r3, [r7, #92] @ 0x5c + 8006dfe: 6e3b ldr r3, [r7, #96] @ 0x60 + 8006e00: e853 3f00 ldrex r3, [r3] + 8006e04: 65fb str r3, [r7, #92] @ 0x5c return(result); - 8006d4e: 6dfb ldr r3, [r7, #92] @ 0x5c - 8006d50: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8006d54: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - 8006d58: 687b ldr r3, [r7, #4] - 8006d5a: 681b ldr r3, [r3, #0] - 8006d5c: 3314 adds r3, #20 - 8006d5e: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0 - 8006d62: 66fa str r2, [r7, #108] @ 0x6c - 8006d64: 66bb str r3, [r7, #104] @ 0x68 + 8006e06: 6dfb ldr r3, [r7, #92] @ 0x5c + 8006e08: f023 0340 bic.w r3, r3, #64 @ 0x40 + 8006e0c: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8006e10: 687b ldr r3, [r7, #4] + 8006e12: 681b ldr r3, [r3, #0] + 8006e14: 3314 adds r3, #20 + 8006e16: f8d7 20b0 ldr.w r2, [r7, #176] @ 0xb0 + 8006e1a: 66fa str r2, [r7, #108] @ 0x6c + 8006e1c: 66bb str r3, [r7, #104] @ 0x68 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006d66: 6eb9 ldr r1, [r7, #104] @ 0x68 - 8006d68: 6efa ldr r2, [r7, #108] @ 0x6c - 8006d6a: e841 2300 strex r3, r2, [r1] - 8006d6e: 667b str r3, [r7, #100] @ 0x64 + 8006e1e: 6eb9 ldr r1, [r7, #104] @ 0x68 + 8006e20: 6efa ldr r2, [r7, #108] @ 0x6c + 8006e22: e841 2300 strex r3, r2, [r1] + 8006e26: 667b str r3, [r7, #100] @ 0x64 return(result); - 8006d70: 6e7b ldr r3, [r7, #100] @ 0x64 - 8006d72: 2b00 cmp r3, #0 - 8006d74: d1e3 bne.n 8006d3e + 8006e28: 6e7b ldr r3, [r7, #100] @ 0x64 + 8006e2a: 2b00 cmp r3, #0 + 8006e2c: d1e3 bne.n 8006df6 /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8006d76: 687b ldr r3, [r7, #4] - 8006d78: 2220 movs r2, #32 - 8006d7a: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8006e2e: 687b ldr r3, [r7, #4] + 8006e30: 2220 movs r2, #32 + 8006e32: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8006d7e: 687b ldr r3, [r7, #4] - 8006d80: 2200 movs r2, #0 - 8006d82: 631a str r2, [r3, #48] @ 0x30 + 8006e36: 687b ldr r3, [r7, #4] + 8006e38: 2200 movs r2, #0 + 8006e3a: 631a str r2, [r3, #48] @ 0x30 ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8006d84: 687b ldr r3, [r7, #4] - 8006d86: 681b ldr r3, [r3, #0] - 8006d88: 330c adds r3, #12 - 8006d8a: 64fb str r3, [r7, #76] @ 0x4c + 8006e3c: 687b ldr r3, [r7, #4] + 8006e3e: 681b ldr r3, [r3, #0] + 8006e40: 330c adds r3, #12 + 8006e42: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006d8c: 6cfb ldr r3, [r7, #76] @ 0x4c - 8006d8e: e853 3f00 ldrex r3, [r3] - 8006d92: 64bb str r3, [r7, #72] @ 0x48 + 8006e44: 6cfb ldr r3, [r7, #76] @ 0x4c + 8006e46: e853 3f00 ldrex r3, [r3] + 8006e4a: 64bb str r3, [r7, #72] @ 0x48 return(result); - 8006d94: 6cbb ldr r3, [r7, #72] @ 0x48 - 8006d96: f023 0310 bic.w r3, r3, #16 - 8006d9a: f8c7 30ac str.w r3, [r7, #172] @ 0xac - 8006d9e: 687b ldr r3, [r7, #4] - 8006da0: 681b ldr r3, [r3, #0] - 8006da2: 330c adds r3, #12 - 8006da4: f8d7 20ac ldr.w r2, [r7, #172] @ 0xac - 8006da8: 65ba str r2, [r7, #88] @ 0x58 - 8006daa: 657b str r3, [r7, #84] @ 0x54 + 8006e4c: 6cbb ldr r3, [r7, #72] @ 0x48 + 8006e4e: f023 0310 bic.w r3, r3, #16 + 8006e52: f8c7 30ac str.w r3, [r7, #172] @ 0xac + 8006e56: 687b ldr r3, [r7, #4] + 8006e58: 681b ldr r3, [r3, #0] + 8006e5a: 330c adds r3, #12 + 8006e5c: f8d7 20ac ldr.w r2, [r7, #172] @ 0xac + 8006e60: 65ba str r2, [r7, #88] @ 0x58 + 8006e62: 657b str r3, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006dac: 6d79 ldr r1, [r7, #84] @ 0x54 - 8006dae: 6dba ldr r2, [r7, #88] @ 0x58 - 8006db0: e841 2300 strex r3, r2, [r1] - 8006db4: 653b str r3, [r7, #80] @ 0x50 + 8006e64: 6d79 ldr r1, [r7, #84] @ 0x54 + 8006e66: 6dba ldr r2, [r7, #88] @ 0x58 + 8006e68: e841 2300 strex r3, r2, [r1] + 8006e6c: 653b str r3, [r7, #80] @ 0x50 return(result); - 8006db6: 6d3b ldr r3, [r7, #80] @ 0x50 - 8006db8: 2b00 cmp r3, #0 - 8006dba: d1e3 bne.n 8006d84 + 8006e6e: 6d3b ldr r3, [r7, #80] @ 0x50 + 8006e70: 2b00 cmp r3, #0 + 8006e72: d1e3 bne.n 8006e3c /* Last bytes received, so no need as the abort is immediate */ (void)HAL_DMA_Abort(huart->hdmarx); - 8006dbc: 687b ldr r3, [r7, #4] - 8006dbe: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006dc0: 4618 mov r0, r3 - 8006dc2: f7fb fac7 bl 8002354 + 8006e74: 687b ldr r3, [r7, #4] + 8006e76: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006e78: 4618 mov r0, r3 + 8006e7a: f7fb fac7 bl 800240c } /* 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; - 8006dc6: 687b ldr r3, [r7, #4] - 8006dc8: 2202 movs r2, #2 - 8006dca: 635a str r2, [r3, #52] @ 0x34 + 8006e7e: 687b ldr r3, [r7, #4] + 8006e80: 2202 movs r2, #2 + 8006e82: 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)); - 8006dcc: 687b ldr r3, [r7, #4] - 8006dce: 8d9a ldrh r2, [r3, #44] @ 0x2c - 8006dd0: 687b ldr r3, [r7, #4] - 8006dd2: 8ddb ldrh r3, [r3, #46] @ 0x2e - 8006dd4: b29b uxth r3, r3 - 8006dd6: 1ad3 subs r3, r2, r3 - 8006dd8: b29b uxth r3, r3 - 8006dda: 4619 mov r1, r3 - 8006ddc: 6878 ldr r0, [r7, #4] - 8006dde: f000 f8d9 bl 8006f94 + 8006e84: 687b ldr r3, [r7, #4] + 8006e86: 8d9a ldrh r2, [r3, #44] @ 0x2c + 8006e88: 687b ldr r3, [r7, #4] + 8006e8a: 8ddb ldrh r3, [r3, #46] @ 0x2e + 8006e8c: b29b uxth r3, r3 + 8006e8e: 1ad3 subs r3, r2, r3 + 8006e90: b29b uxth r3, r3 + 8006e92: 4619 mov r1, r3 + 8006e94: 6878 ldr r0, [r7, #4] + 8006e96: f000 f8d9 bl 800704c HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); #endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */ } } } return; - 8006de2: e0b3 b.n 8006f4c + 8006e9a: e0b3 b.n 8007004 if (nb_remaining_rx_data == huart->RxXferSize) - 8006de4: 687b ldr r3, [r7, #4] - 8006de6: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8006de8: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe - 8006dec: 429a cmp r2, r3 - 8006dee: f040 80ad bne.w 8006f4c + 8006e9c: 687b ldr r3, [r7, #4] + 8006e9e: 8d9b ldrh r3, [r3, #44] @ 0x2c + 8006ea0: f8b7 20be ldrh.w r2, [r7, #190] @ 0xbe + 8006ea4: 429a cmp r2, r3 + 8006ea6: f040 80ad bne.w 8007004 if (huart->hdmarx->Init.Mode == DMA_CIRCULAR) - 8006df2: 687b ldr r3, [r7, #4] - 8006df4: 6bdb ldr r3, [r3, #60] @ 0x3c - 8006df6: 69db ldr r3, [r3, #28] - 8006df8: f5b3 7f80 cmp.w r3, #256 @ 0x100 - 8006dfc: f040 80a6 bne.w 8006f4c + 8006eaa: 687b ldr r3, [r7, #4] + 8006eac: 6bdb ldr r3, [r3, #60] @ 0x3c + 8006eae: 69db ldr r3, [r3, #28] + 8006eb0: f5b3 7f80 cmp.w r3, #256 @ 0x100 + 8006eb4: f040 80a6 bne.w 8007004 huart->RxEventType = HAL_UART_RXEVENT_IDLE; - 8006e00: 687b ldr r3, [r7, #4] - 8006e02: 2202 movs r2, #2 - 8006e04: 635a str r2, [r3, #52] @ 0x34 + 8006eb8: 687b ldr r3, [r7, #4] + 8006eba: 2202 movs r2, #2 + 8006ebc: 635a str r2, [r3, #52] @ 0x34 HAL_UARTEx_RxEventCallback(huart, huart->RxXferSize); - 8006e06: 687b ldr r3, [r7, #4] - 8006e08: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8006e0a: 4619 mov r1, r3 - 8006e0c: 6878 ldr r0, [r7, #4] - 8006e0e: f000 f8c1 bl 8006f94 + 8006ebe: 687b ldr r3, [r7, #4] + 8006ec0: 8d9b ldrh r3, [r3, #44] @ 0x2c + 8006ec2: 4619 mov r1, r3 + 8006ec4: 6878 ldr r0, [r7, #4] + 8006ec6: f000 f8c1 bl 800704c return; - 8006e12: e09b b.n 8006f4c - 8006e14: 080074c3 .word 0x080074c3 + 8006eca: e09b b.n 8007004 + 8006ecc: 0800757b .word 0x0800757b 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; - 8006e18: 687b ldr r3, [r7, #4] - 8006e1a: 8d9a ldrh r2, [r3, #44] @ 0x2c - 8006e1c: 687b ldr r3, [r7, #4] - 8006e1e: 8ddb ldrh r3, [r3, #46] @ 0x2e - 8006e20: b29b uxth r3, r3 - 8006e22: 1ad3 subs r3, r2, r3 - 8006e24: f8a7 30ce strh.w r3, [r7, #206] @ 0xce + 8006ed0: 687b ldr r3, [r7, #4] + 8006ed2: 8d9a ldrh r2, [r3, #44] @ 0x2c + 8006ed4: 687b ldr r3, [r7, #4] + 8006ed6: 8ddb ldrh r3, [r3, #46] @ 0x2e + 8006ed8: b29b uxth r3, r3 + 8006eda: 1ad3 subs r3, r2, r3 + 8006edc: f8a7 30ce strh.w r3, [r7, #206] @ 0xce if ((huart->RxXferCount > 0U) - 8006e28: 687b ldr r3, [r7, #4] - 8006e2a: 8ddb ldrh r3, [r3, #46] @ 0x2e - 8006e2c: b29b uxth r3, r3 - 8006e2e: 2b00 cmp r3, #0 - 8006e30: f000 808e beq.w 8006f50 + 8006ee0: 687b ldr r3, [r7, #4] + 8006ee2: 8ddb ldrh r3, [r3, #46] @ 0x2e + 8006ee4: b29b uxth r3, r3 + 8006ee6: 2b00 cmp r3, #0 + 8006ee8: f000 808e beq.w 8007008 && (nb_rx_data > 0U)) - 8006e34: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce - 8006e38: 2b00 cmp r3, #0 - 8006e3a: f000 8089 beq.w 8006f50 + 8006eec: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce + 8006ef0: 2b00 cmp r3, #0 + 8006ef2: f000 8089 beq.w 8007008 { /* Disable the UART Parity Error Interrupt and RXNE interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE)); - 8006e3e: 687b ldr r3, [r7, #4] - 8006e40: 681b ldr r3, [r3, #0] - 8006e42: 330c adds r3, #12 - 8006e44: 63bb str r3, [r7, #56] @ 0x38 + 8006ef6: 687b ldr r3, [r7, #4] + 8006ef8: 681b ldr r3, [r3, #0] + 8006efa: 330c adds r3, #12 + 8006efc: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006e46: 6bbb ldr r3, [r7, #56] @ 0x38 - 8006e48: e853 3f00 ldrex r3, [r3] - 8006e4c: 637b str r3, [r7, #52] @ 0x34 + 8006efe: 6bbb ldr r3, [r7, #56] @ 0x38 + 8006f00: e853 3f00 ldrex r3, [r3] + 8006f04: 637b str r3, [r7, #52] @ 0x34 return(result); - 8006e4e: 6b7b ldr r3, [r7, #52] @ 0x34 - 8006e50: f423 7390 bic.w r3, r3, #288 @ 0x120 - 8006e54: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 - 8006e58: 687b ldr r3, [r7, #4] - 8006e5a: 681b ldr r3, [r3, #0] - 8006e5c: 330c adds r3, #12 - 8006e5e: f8d7 20c8 ldr.w r2, [r7, #200] @ 0xc8 - 8006e62: 647a str r2, [r7, #68] @ 0x44 - 8006e64: 643b str r3, [r7, #64] @ 0x40 + 8006f06: 6b7b ldr r3, [r7, #52] @ 0x34 + 8006f08: f423 7390 bic.w r3, r3, #288 @ 0x120 + 8006f0c: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 + 8006f10: 687b ldr r3, [r7, #4] + 8006f12: 681b ldr r3, [r3, #0] + 8006f14: 330c adds r3, #12 + 8006f16: f8d7 20c8 ldr.w r2, [r7, #200] @ 0xc8 + 8006f1a: 647a str r2, [r7, #68] @ 0x44 + 8006f1c: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006e66: 6c39 ldr r1, [r7, #64] @ 0x40 - 8006e68: 6c7a ldr r2, [r7, #68] @ 0x44 - 8006e6a: e841 2300 strex r3, r2, [r1] - 8006e6e: 63fb str r3, [r7, #60] @ 0x3c + 8006f1e: 6c39 ldr r1, [r7, #64] @ 0x40 + 8006f20: 6c7a ldr r2, [r7, #68] @ 0x44 + 8006f22: e841 2300 strex r3, r2, [r1] + 8006f26: 63fb str r3, [r7, #60] @ 0x3c return(result); - 8006e70: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006e72: 2b00 cmp r3, #0 - 8006e74: d1e3 bne.n 8006e3e + 8006f28: 6bfb ldr r3, [r7, #60] @ 0x3c + 8006f2a: 2b00 cmp r3, #0 + 8006f2c: d1e3 bne.n 8006ef6 /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8006e76: 687b ldr r3, [r7, #4] - 8006e78: 681b ldr r3, [r3, #0] - 8006e7a: 3314 adds r3, #20 - 8006e7c: 627b str r3, [r7, #36] @ 0x24 + 8006f2e: 687b ldr r3, [r7, #4] + 8006f30: 681b ldr r3, [r3, #0] + 8006f32: 3314 adds r3, #20 + 8006f34: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006e7e: 6a7b ldr r3, [r7, #36] @ 0x24 - 8006e80: e853 3f00 ldrex r3, [r3] - 8006e84: 623b str r3, [r7, #32] + 8006f36: 6a7b ldr r3, [r7, #36] @ 0x24 + 8006f38: e853 3f00 ldrex r3, [r3] + 8006f3c: 623b str r3, [r7, #32] return(result); - 8006e86: 6a3b ldr r3, [r7, #32] - 8006e88: f023 0301 bic.w r3, r3, #1 - 8006e8c: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4 - 8006e90: 687b ldr r3, [r7, #4] - 8006e92: 681b ldr r3, [r3, #0] - 8006e94: 3314 adds r3, #20 - 8006e96: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4 - 8006e9a: 633a str r2, [r7, #48] @ 0x30 - 8006e9c: 62fb str r3, [r7, #44] @ 0x2c + 8006f3e: 6a3b ldr r3, [r7, #32] + 8006f40: f023 0301 bic.w r3, r3, #1 + 8006f44: f8c7 30c4 str.w r3, [r7, #196] @ 0xc4 + 8006f48: 687b ldr r3, [r7, #4] + 8006f4a: 681b ldr r3, [r3, #0] + 8006f4c: 3314 adds r3, #20 + 8006f4e: f8d7 20c4 ldr.w r2, [r7, #196] @ 0xc4 + 8006f52: 633a str r2, [r7, #48] @ 0x30 + 8006f54: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006e9e: 6af9 ldr r1, [r7, #44] @ 0x2c - 8006ea0: 6b3a ldr r2, [r7, #48] @ 0x30 - 8006ea2: e841 2300 strex r3, r2, [r1] - 8006ea6: 62bb str r3, [r7, #40] @ 0x28 + 8006f56: 6af9 ldr r1, [r7, #44] @ 0x2c + 8006f58: 6b3a ldr r2, [r7, #48] @ 0x30 + 8006f5a: e841 2300 strex r3, r2, [r1] + 8006f5e: 62bb str r3, [r7, #40] @ 0x28 return(result); - 8006ea8: 6abb ldr r3, [r7, #40] @ 0x28 - 8006eaa: 2b00 cmp r3, #0 - 8006eac: d1e3 bne.n 8006e76 + 8006f60: 6abb ldr r3, [r7, #40] @ 0x28 + 8006f62: 2b00 cmp r3, #0 + 8006f64: d1e3 bne.n 8006f2e /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8006eae: 687b ldr r3, [r7, #4] - 8006eb0: 2220 movs r2, #32 - 8006eb2: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8006f66: 687b ldr r3, [r7, #4] + 8006f68: 2220 movs r2, #32 + 8006f6a: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 8006eb6: 687b ldr r3, [r7, #4] - 8006eb8: 2200 movs r2, #0 - 8006eba: 631a str r2, [r3, #48] @ 0x30 + 8006f6e: 687b ldr r3, [r7, #4] + 8006f70: 2200 movs r2, #0 + 8006f72: 631a str r2, [r3, #48] @ 0x30 ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8006ebc: 687b ldr r3, [r7, #4] - 8006ebe: 681b ldr r3, [r3, #0] - 8006ec0: 330c adds r3, #12 - 8006ec2: 613b str r3, [r7, #16] + 8006f74: 687b ldr r3, [r7, #4] + 8006f76: 681b ldr r3, [r3, #0] + 8006f78: 330c adds r3, #12 + 8006f7a: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006ec4: 693b ldr r3, [r7, #16] - 8006ec6: e853 3f00 ldrex r3, [r3] - 8006eca: 60fb str r3, [r7, #12] + 8006f7c: 693b ldr r3, [r7, #16] + 8006f7e: e853 3f00 ldrex r3, [r3] + 8006f82: 60fb str r3, [r7, #12] return(result); - 8006ecc: 68fb ldr r3, [r7, #12] - 8006ece: f023 0310 bic.w r3, r3, #16 - 8006ed2: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 - 8006ed6: 687b ldr r3, [r7, #4] - 8006ed8: 681b ldr r3, [r3, #0] - 8006eda: 330c adds r3, #12 - 8006edc: f8d7 20c0 ldr.w r2, [r7, #192] @ 0xc0 - 8006ee0: 61fa str r2, [r7, #28] - 8006ee2: 61bb str r3, [r7, #24] + 8006f84: 68fb ldr r3, [r7, #12] + 8006f86: f023 0310 bic.w r3, r3, #16 + 8006f8a: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 + 8006f8e: 687b ldr r3, [r7, #4] + 8006f90: 681b ldr r3, [r3, #0] + 8006f92: 330c adds r3, #12 + 8006f94: f8d7 20c0 ldr.w r2, [r7, #192] @ 0xc0 + 8006f98: 61fa str r2, [r7, #28] + 8006f9a: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006ee4: 69b9 ldr r1, [r7, #24] - 8006ee6: 69fa ldr r2, [r7, #28] - 8006ee8: e841 2300 strex r3, r2, [r1] - 8006eec: 617b str r3, [r7, #20] + 8006f9c: 69b9 ldr r1, [r7, #24] + 8006f9e: 69fa ldr r2, [r7, #28] + 8006fa0: e841 2300 strex r3, r2, [r1] + 8006fa4: 617b str r3, [r7, #20] return(result); - 8006eee: 697b ldr r3, [r7, #20] - 8006ef0: 2b00 cmp r3, #0 - 8006ef2: d1e3 bne.n 8006ebc + 8006fa6: 697b ldr r3, [r7, #20] + 8006fa8: 2b00 cmp r3, #0 + 8006faa: d1e3 bne.n 8006f74 /* 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; - 8006ef4: 687b ldr r3, [r7, #4] - 8006ef6: 2202 movs r2, #2 - 8006ef8: 635a str r2, [r3, #52] @ 0x34 + 8006fac: 687b ldr r3, [r7, #4] + 8006fae: 2202 movs r2, #2 + 8006fb0: 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); - 8006efa: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce - 8006efe: 4619 mov r1, r3 - 8006f00: 6878 ldr r0, [r7, #4] - 8006f02: f000 f847 bl 8006f94 + 8006fb2: f8b7 30ce ldrh.w r3, [r7, #206] @ 0xce + 8006fb6: 4619 mov r1, r3 + 8006fb8: 6878 ldr r0, [r7, #4] + 8006fba: f000 f847 bl 800704c #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return; - 8006f06: e023 b.n 8006f50 + 8006fbe: e023 b.n 8007008 } } /* UART in mode Transmitter ------------------------------------------------*/ if (((isrflags & USART_SR_TXE) != RESET) && ((cr1its & USART_CR1_TXEIE) != RESET)) - 8006f08: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006f0c: f003 0380 and.w r3, r3, #128 @ 0x80 - 8006f10: 2b00 cmp r3, #0 - 8006f12: d009 beq.n 8006f28 - 8006f14: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006f18: f003 0380 and.w r3, r3, #128 @ 0x80 - 8006f1c: 2b00 cmp r3, #0 - 8006f1e: d003 beq.n 8006f28 + 8006fc0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006fc4: f003 0380 and.w r3, r3, #128 @ 0x80 + 8006fc8: 2b00 cmp r3, #0 + 8006fca: d009 beq.n 8006fe0 + 8006fcc: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8006fd0: f003 0380 and.w r3, r3, #128 @ 0x80 + 8006fd4: 2b00 cmp r3, #0 + 8006fd6: d003 beq.n 8006fe0 { UART_Transmit_IT(huart); - 8006f20: 6878 ldr r0, [r7, #4] - 8006f22: f000 fadf bl 80074e4 + 8006fd8: 6878 ldr r0, [r7, #4] + 8006fda: f000 fadf bl 800759c return; - 8006f26: e014 b.n 8006f52 + 8006fde: e014 b.n 800700a } /* UART in mode Transmitter end --------------------------------------------*/ if (((isrflags & USART_SR_TC) != RESET) && ((cr1its & USART_CR1_TCIE) != RESET)) - 8006f28: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 - 8006f2c: f003 0340 and.w r3, r3, #64 @ 0x40 - 8006f30: 2b00 cmp r3, #0 - 8006f32: d00e beq.n 8006f52 - 8006f34: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 - 8006f38: f003 0340 and.w r3, r3, #64 @ 0x40 - 8006f3c: 2b00 cmp r3, #0 - 8006f3e: d008 beq.n 8006f52 + 8006fe0: f8d7 30e4 ldr.w r3, [r7, #228] @ 0xe4 + 8006fe4: f003 0340 and.w r3, r3, #64 @ 0x40 + 8006fe8: 2b00 cmp r3, #0 + 8006fea: d00e beq.n 800700a + 8006fec: f8d7 30e0 ldr.w r3, [r7, #224] @ 0xe0 + 8006ff0: f003 0340 and.w r3, r3, #64 @ 0x40 + 8006ff4: 2b00 cmp r3, #0 + 8006ff6: d008 beq.n 800700a { UART_EndTransmit_IT(huart); - 8006f40: 6878 ldr r0, [r7, #4] - 8006f42: f000 fb1f bl 8007584 + 8006ff8: 6878 ldr r0, [r7, #4] + 8006ffa: f000 fb1f bl 800763c return; - 8006f46: e004 b.n 8006f52 + 8006ffe: e004 b.n 800700a return; - 8006f48: bf00 nop - 8006f4a: e002 b.n 8006f52 + 8007000: bf00 nop + 8007002: e002 b.n 800700a return; - 8006f4c: bf00 nop - 8006f4e: e000 b.n 8006f52 + 8007004: bf00 nop + 8007006: e000 b.n 800700a return; - 8006f50: bf00 nop + 8007008: bf00 nop } } - 8006f52: 37e8 adds r7, #232 @ 0xe8 - 8006f54: 46bd mov sp, r7 - 8006f56: bd80 pop {r7, pc} + 800700a: 37e8 adds r7, #232 @ 0xe8 + 800700c: 46bd mov sp, r7 + 800700e: bd80 pop {r7, pc} -08006f58 : +08007010 : * @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) { - 8006f58: b480 push {r7} - 8006f5a: b083 sub sp, #12 - 8006f5c: af00 add r7, sp, #0 - 8006f5e: 6078 str r0, [r7, #4] + 8007010: b480 push {r7} + 8007012: b083 sub sp, #12 + 8007014: af00 add r7, sp, #0 + 8007016: 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 */ } - 8006f60: bf00 nop - 8006f62: 370c adds r7, #12 - 8006f64: 46bd mov sp, r7 - 8006f66: f85d 7b04 ldr.w r7, [sp], #4 - 8006f6a: 4770 bx lr + 8007018: bf00 nop + 800701a: 370c adds r7, #12 + 800701c: 46bd mov sp, r7 + 800701e: f85d 7b04 ldr.w r7, [sp], #4 + 8007022: 4770 bx lr -08006f6c : +08007024 : * @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) { - 8006f6c: b480 push {r7} - 8006f6e: b083 sub sp, #12 - 8006f70: af00 add r7, sp, #0 - 8006f72: 6078 str r0, [r7, #4] + 8007024: b480 push {r7} + 8007026: b083 sub sp, #12 + 8007028: af00 add r7, sp, #0 + 800702a: 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 */ } - 8006f74: bf00 nop - 8006f76: 370c adds r7, #12 - 8006f78: 46bd mov sp, r7 - 8006f7a: f85d 7b04 ldr.w r7, [sp], #4 - 8006f7e: 4770 bx lr + 800702c: bf00 nop + 800702e: 370c adds r7, #12 + 8007030: 46bd mov sp, r7 + 8007032: f85d 7b04 ldr.w r7, [sp], #4 + 8007036: 4770 bx lr -08006f80 : +08007038 : * @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) { - 8006f80: b480 push {r7} - 8006f82: b083 sub sp, #12 - 8006f84: af00 add r7, sp, #0 - 8006f86: 6078 str r0, [r7, #4] + 8007038: b480 push {r7} + 800703a: b083 sub sp, #12 + 800703c: af00 add r7, sp, #0 + 800703e: 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 */ } - 8006f88: bf00 nop - 8006f8a: 370c adds r7, #12 - 8006f8c: 46bd mov sp, r7 - 8006f8e: f85d 7b04 ldr.w r7, [sp], #4 - 8006f92: 4770 bx lr + 8007040: bf00 nop + 8007042: 370c adds r7, #12 + 8007044: 46bd mov sp, r7 + 8007046: f85d 7b04 ldr.w r7, [sp], #4 + 800704a: 4770 bx lr -08006f94 : +0800704c : * @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) { - 8006f94: b480 push {r7} - 8006f96: b083 sub sp, #12 - 8006f98: af00 add r7, sp, #0 - 8006f9a: 6078 str r0, [r7, #4] - 8006f9c: 460b mov r3, r1 - 8006f9e: 807b strh r3, [r7, #2] + 800704c: b480 push {r7} + 800704e: b083 sub sp, #12 + 8007050: af00 add r7, sp, #0 + 8007052: 6078 str r0, [r7, #4] + 8007054: 460b mov r3, r1 + 8007056: 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. */ } - 8006fa0: bf00 nop - 8006fa2: 370c adds r7, #12 - 8006fa4: 46bd mov sp, r7 - 8006fa6: f85d 7b04 ldr.w r7, [sp], #4 - 8006faa: 4770 bx lr + 8007058: bf00 nop + 800705a: 370c adds r7, #12 + 800705c: 46bd mov sp, r7 + 800705e: f85d 7b04 ldr.w r7, [sp], #4 + 8007062: 4770 bx lr -08006fac : +08007064 : * @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) { - 8006fac: b580 push {r7, lr} - 8006fae: b090 sub sp, #64 @ 0x40 - 8006fb0: af00 add r7, sp, #0 - 8006fb2: 6078 str r0, [r7, #4] + 8007064: b580 push {r7, lr} + 8007066: b090 sub sp, #64 @ 0x40 + 8007068: af00 add r7, sp, #0 + 800706a: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 8006fb4: 687b ldr r3, [r7, #4] - 8006fb6: 6b9b ldr r3, [r3, #56] @ 0x38 - 8006fb8: 63fb str r3, [r7, #60] @ 0x3c + 800706c: 687b ldr r3, [r7, #4] + 800706e: 6b9b ldr r3, [r3, #56] @ 0x38 + 8007070: 63fb str r3, [r7, #60] @ 0x3c /* DMA Normal mode*/ if ((hdma->Instance->CR & DMA_SxCR_CIRC) == 0U) - 8006fba: 687b ldr r3, [r7, #4] - 8006fbc: 681b ldr r3, [r3, #0] - 8006fbe: 681b ldr r3, [r3, #0] - 8006fc0: f403 7380 and.w r3, r3, #256 @ 0x100 - 8006fc4: 2b00 cmp r3, #0 - 8006fc6: d137 bne.n 8007038 + 8007072: 687b ldr r3, [r7, #4] + 8007074: 681b ldr r3, [r3, #0] + 8007076: 681b ldr r3, [r3, #0] + 8007078: f403 7380 and.w r3, r3, #256 @ 0x100 + 800707c: 2b00 cmp r3, #0 + 800707e: d137 bne.n 80070f0 { huart->TxXferCount = 0x00U; - 8006fc8: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006fca: 2200 movs r2, #0 - 8006fcc: 84da strh r2, [r3, #38] @ 0x26 + 8007080: 6bfb ldr r3, [r7, #60] @ 0x3c + 8007082: 2200 movs r2, #0 + 8007084: 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); - 8006fce: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006fd0: 681b ldr r3, [r3, #0] - 8006fd2: 3314 adds r3, #20 - 8006fd4: 627b str r3, [r7, #36] @ 0x24 + 8007086: 6bfb ldr r3, [r7, #60] @ 0x3c + 8007088: 681b ldr r3, [r3, #0] + 800708a: 3314 adds r3, #20 + 800708c: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8006fd6: 6a7b ldr r3, [r7, #36] @ 0x24 - 8006fd8: e853 3f00 ldrex r3, [r3] - 8006fdc: 623b str r3, [r7, #32] + 800708e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8007090: e853 3f00 ldrex r3, [r3] + 8007094: 623b str r3, [r7, #32] return(result); - 8006fde: 6a3b ldr r3, [r7, #32] - 8006fe0: f023 0380 bic.w r3, r3, #128 @ 0x80 - 8006fe4: 63bb str r3, [r7, #56] @ 0x38 - 8006fe6: 6bfb ldr r3, [r7, #60] @ 0x3c - 8006fe8: 681b ldr r3, [r3, #0] - 8006fea: 3314 adds r3, #20 - 8006fec: 6bba ldr r2, [r7, #56] @ 0x38 - 8006fee: 633a str r2, [r7, #48] @ 0x30 - 8006ff0: 62fb str r3, [r7, #44] @ 0x2c + 8007096: 6a3b ldr r3, [r7, #32] + 8007098: f023 0380 bic.w r3, r3, #128 @ 0x80 + 800709c: 63bb str r3, [r7, #56] @ 0x38 + 800709e: 6bfb ldr r3, [r7, #60] @ 0x3c + 80070a0: 681b ldr r3, [r3, #0] + 80070a2: 3314 adds r3, #20 + 80070a4: 6bba ldr r2, [r7, #56] @ 0x38 + 80070a6: 633a str r2, [r7, #48] @ 0x30 + 80070a8: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8006ff2: 6af9 ldr r1, [r7, #44] @ 0x2c - 8006ff4: 6b3a ldr r2, [r7, #48] @ 0x30 - 8006ff6: e841 2300 strex r3, r2, [r1] - 8006ffa: 62bb str r3, [r7, #40] @ 0x28 + 80070aa: 6af9 ldr r1, [r7, #44] @ 0x2c + 80070ac: 6b3a ldr r2, [r7, #48] @ 0x30 + 80070ae: e841 2300 strex r3, r2, [r1] + 80070b2: 62bb str r3, [r7, #40] @ 0x28 return(result); - 8006ffc: 6abb ldr r3, [r7, #40] @ 0x28 - 8006ffe: 2b00 cmp r3, #0 - 8007000: d1e5 bne.n 8006fce + 80070b4: 6abb ldr r3, [r7, #40] @ 0x28 + 80070b6: 2b00 cmp r3, #0 + 80070b8: d1e5 bne.n 8007086 /* Enable the UART Transmit Complete Interrupt */ ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_TCIE); - 8007002: 6bfb ldr r3, [r7, #60] @ 0x3c - 8007004: 681b ldr r3, [r3, #0] - 8007006: 330c adds r3, #12 - 8007008: 613b str r3, [r7, #16] + 80070ba: 6bfb ldr r3, [r7, #60] @ 0x3c + 80070bc: 681b ldr r3, [r3, #0] + 80070be: 330c adds r3, #12 + 80070c0: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800700a: 693b ldr r3, [r7, #16] - 800700c: e853 3f00 ldrex r3, [r3] - 8007010: 60fb str r3, [r7, #12] + 80070c2: 693b ldr r3, [r7, #16] + 80070c4: e853 3f00 ldrex r3, [r3] + 80070c8: 60fb str r3, [r7, #12] return(result); - 8007012: 68fb ldr r3, [r7, #12] - 8007014: f043 0340 orr.w r3, r3, #64 @ 0x40 - 8007018: 637b str r3, [r7, #52] @ 0x34 - 800701a: 6bfb ldr r3, [r7, #60] @ 0x3c - 800701c: 681b ldr r3, [r3, #0] - 800701e: 330c adds r3, #12 - 8007020: 6b7a ldr r2, [r7, #52] @ 0x34 - 8007022: 61fa str r2, [r7, #28] - 8007024: 61bb str r3, [r7, #24] + 80070ca: 68fb ldr r3, [r7, #12] + 80070cc: f043 0340 orr.w r3, r3, #64 @ 0x40 + 80070d0: 637b str r3, [r7, #52] @ 0x34 + 80070d2: 6bfb ldr r3, [r7, #60] @ 0x3c + 80070d4: 681b ldr r3, [r3, #0] + 80070d6: 330c adds r3, #12 + 80070d8: 6b7a ldr r2, [r7, #52] @ 0x34 + 80070da: 61fa str r2, [r7, #28] + 80070dc: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8007026: 69b9 ldr r1, [r7, #24] - 8007028: 69fa ldr r2, [r7, #28] - 800702a: e841 2300 strex r3, r2, [r1] - 800702e: 617b str r3, [r7, #20] + 80070de: 69b9 ldr r1, [r7, #24] + 80070e0: 69fa ldr r2, [r7, #28] + 80070e2: e841 2300 strex r3, r2, [r1] + 80070e6: 617b str r3, [r7, #20] return(result); - 8007030: 697b ldr r3, [r7, #20] - 8007032: 2b00 cmp r3, #0 - 8007034: d1e5 bne.n 8007002 + 80070e8: 697b ldr r3, [r7, #20] + 80070ea: 2b00 cmp r3, #0 + 80070ec: d1e5 bne.n 80070ba #else /*Call legacy weak Tx complete callback*/ HAL_UART_TxCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } - 8007036: e002 b.n 800703e + 80070ee: e002 b.n 80070f6 HAL_UART_TxCpltCallback(huart); - 8007038: 6bf8 ldr r0, [r7, #60] @ 0x3c - 800703a: f7ff ff8d bl 8006f58 + 80070f0: 6bf8 ldr r0, [r7, #60] @ 0x3c + 80070f2: f7ff ff8d bl 8007010 } - 800703e: bf00 nop - 8007040: 3740 adds r7, #64 @ 0x40 - 8007042: 46bd mov sp, r7 - 8007044: bd80 pop {r7, pc} + 80070f6: bf00 nop + 80070f8: 3740 adds r7, #64 @ 0x40 + 80070fa: 46bd mov sp, r7 + 80070fc: bd80 pop {r7, pc} -08007046 : +080070fe : * @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) { - 8007046: b580 push {r7, lr} - 8007048: b084 sub sp, #16 - 800704a: af00 add r7, sp, #0 - 800704c: 6078 str r0, [r7, #4] + 80070fe: b580 push {r7, lr} + 8007100: b084 sub sp, #16 + 8007102: af00 add r7, sp, #0 + 8007104: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 800704e: 687b ldr r3, [r7, #4] - 8007050: 6b9b ldr r3, [r3, #56] @ 0x38 - 8007052: 60fb str r3, [r7, #12] + 8007106: 687b ldr r3, [r7, #4] + 8007108: 6b9b ldr r3, [r3, #56] @ 0x38 + 800710a: 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); - 8007054: 68f8 ldr r0, [r7, #12] - 8007056: f7ff ff89 bl 8006f6c + 800710c: 68f8 ldr r0, [r7, #12] + 800710e: f7ff ff89 bl 8007024 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } - 800705a: bf00 nop - 800705c: 3710 adds r7, #16 - 800705e: 46bd mov sp, r7 - 8007060: bd80 pop {r7, pc} + 8007112: bf00 nop + 8007114: 3710 adds r7, #16 + 8007116: 46bd mov sp, r7 + 8007118: bd80 pop {r7, pc} -08007062 : +0800711a : * @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) { - 8007062: b580 push {r7, lr} - 8007064: b09c sub sp, #112 @ 0x70 - 8007066: af00 add r7, sp, #0 - 8007068: 6078 str r0, [r7, #4] + 800711a: b580 push {r7, lr} + 800711c: b09c sub sp, #112 @ 0x70 + 800711e: af00 add r7, sp, #0 + 8007120: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 800706a: 687b ldr r3, [r7, #4] - 800706c: 6b9b ldr r3, [r3, #56] @ 0x38 - 800706e: 66fb str r3, [r7, #108] @ 0x6c + 8007122: 687b ldr r3, [r7, #4] + 8007124: 6b9b ldr r3, [r3, #56] @ 0x38 + 8007126: 66fb str r3, [r7, #108] @ 0x6c /* DMA Normal mode*/ if ((hdma->Instance->CR & DMA_SxCR_CIRC) == 0U) - 8007070: 687b ldr r3, [r7, #4] - 8007072: 681b ldr r3, [r3, #0] - 8007074: 681b ldr r3, [r3, #0] - 8007076: f403 7380 and.w r3, r3, #256 @ 0x100 - 800707a: 2b00 cmp r3, #0 - 800707c: d172 bne.n 8007164 + 8007128: 687b ldr r3, [r7, #4] + 800712a: 681b ldr r3, [r3, #0] + 800712c: 681b ldr r3, [r3, #0] + 800712e: f403 7380 and.w r3, r3, #256 @ 0x100 + 8007132: 2b00 cmp r3, #0 + 8007134: d172 bne.n 800721c { huart->RxXferCount = 0U; - 800707e: 6efb ldr r3, [r7, #108] @ 0x6c - 8007080: 2200 movs r2, #0 - 8007082: 85da strh r2, [r3, #46] @ 0x2e + 8007136: 6efb ldr r3, [r7, #108] @ 0x6c + 8007138: 2200 movs r2, #0 + 800713a: 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); - 8007084: 6efb ldr r3, [r7, #108] @ 0x6c - 8007086: 681b ldr r3, [r3, #0] - 8007088: 330c adds r3, #12 - 800708a: 64fb str r3, [r7, #76] @ 0x4c + 800713c: 6efb ldr r3, [r7, #108] @ 0x6c + 800713e: 681b ldr r3, [r3, #0] + 8007140: 330c adds r3, #12 + 8007142: 64fb str r3, [r7, #76] @ 0x4c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800708c: 6cfb ldr r3, [r7, #76] @ 0x4c - 800708e: e853 3f00 ldrex r3, [r3] - 8007092: 64bb str r3, [r7, #72] @ 0x48 + 8007144: 6cfb ldr r3, [r7, #76] @ 0x4c + 8007146: e853 3f00 ldrex r3, [r3] + 800714a: 64bb str r3, [r7, #72] @ 0x48 return(result); - 8007094: 6cbb ldr r3, [r7, #72] @ 0x48 - 8007096: f423 7380 bic.w r3, r3, #256 @ 0x100 - 800709a: 66bb str r3, [r7, #104] @ 0x68 - 800709c: 6efb ldr r3, [r7, #108] @ 0x6c - 800709e: 681b ldr r3, [r3, #0] - 80070a0: 330c adds r3, #12 - 80070a2: 6eba ldr r2, [r7, #104] @ 0x68 - 80070a4: 65ba str r2, [r7, #88] @ 0x58 - 80070a6: 657b str r3, [r7, #84] @ 0x54 + 800714c: 6cbb ldr r3, [r7, #72] @ 0x48 + 800714e: f423 7380 bic.w r3, r3, #256 @ 0x100 + 8007152: 66bb str r3, [r7, #104] @ 0x68 + 8007154: 6efb ldr r3, [r7, #108] @ 0x6c + 8007156: 681b ldr r3, [r3, #0] + 8007158: 330c adds r3, #12 + 800715a: 6eba ldr r2, [r7, #104] @ 0x68 + 800715c: 65ba str r2, [r7, #88] @ 0x58 + 800715e: 657b str r3, [r7, #84] @ 0x54 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80070a8: 6d79 ldr r1, [r7, #84] @ 0x54 - 80070aa: 6dba ldr r2, [r7, #88] @ 0x58 - 80070ac: e841 2300 strex r3, r2, [r1] - 80070b0: 653b str r3, [r7, #80] @ 0x50 + 8007160: 6d79 ldr r1, [r7, #84] @ 0x54 + 8007162: 6dba ldr r2, [r7, #88] @ 0x58 + 8007164: e841 2300 strex r3, r2, [r1] + 8007168: 653b str r3, [r7, #80] @ 0x50 return(result); - 80070b2: 6d3b ldr r3, [r7, #80] @ 0x50 - 80070b4: 2b00 cmp r3, #0 - 80070b6: d1e5 bne.n 8007084 + 800716a: 6d3b ldr r3, [r7, #80] @ 0x50 + 800716c: 2b00 cmp r3, #0 + 800716e: d1e5 bne.n 800713c ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 80070b8: 6efb ldr r3, [r7, #108] @ 0x6c - 80070ba: 681b ldr r3, [r3, #0] - 80070bc: 3314 adds r3, #20 - 80070be: 63bb str r3, [r7, #56] @ 0x38 + 8007170: 6efb ldr r3, [r7, #108] @ 0x6c + 8007172: 681b ldr r3, [r3, #0] + 8007174: 3314 adds r3, #20 + 8007176: 63bb str r3, [r7, #56] @ 0x38 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80070c0: 6bbb ldr r3, [r7, #56] @ 0x38 - 80070c2: e853 3f00 ldrex r3, [r3] - 80070c6: 637b str r3, [r7, #52] @ 0x34 + 8007178: 6bbb ldr r3, [r7, #56] @ 0x38 + 800717a: e853 3f00 ldrex r3, [r3] + 800717e: 637b str r3, [r7, #52] @ 0x34 return(result); - 80070c8: 6b7b ldr r3, [r7, #52] @ 0x34 - 80070ca: f023 0301 bic.w r3, r3, #1 - 80070ce: 667b str r3, [r7, #100] @ 0x64 - 80070d0: 6efb ldr r3, [r7, #108] @ 0x6c - 80070d2: 681b ldr r3, [r3, #0] - 80070d4: 3314 adds r3, #20 - 80070d6: 6e7a ldr r2, [r7, #100] @ 0x64 - 80070d8: 647a str r2, [r7, #68] @ 0x44 - 80070da: 643b str r3, [r7, #64] @ 0x40 + 8007180: 6b7b ldr r3, [r7, #52] @ 0x34 + 8007182: f023 0301 bic.w r3, r3, #1 + 8007186: 667b str r3, [r7, #100] @ 0x64 + 8007188: 6efb ldr r3, [r7, #108] @ 0x6c + 800718a: 681b ldr r3, [r3, #0] + 800718c: 3314 adds r3, #20 + 800718e: 6e7a ldr r2, [r7, #100] @ 0x64 + 8007190: 647a str r2, [r7, #68] @ 0x44 + 8007192: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80070dc: 6c39 ldr r1, [r7, #64] @ 0x40 - 80070de: 6c7a ldr r2, [r7, #68] @ 0x44 - 80070e0: e841 2300 strex r3, r2, [r1] - 80070e4: 63fb str r3, [r7, #60] @ 0x3c + 8007194: 6c39 ldr r1, [r7, #64] @ 0x40 + 8007196: 6c7a ldr r2, [r7, #68] @ 0x44 + 8007198: e841 2300 strex r3, r2, [r1] + 800719c: 63fb str r3, [r7, #60] @ 0x3c return(result); - 80070e6: 6bfb ldr r3, [r7, #60] @ 0x3c - 80070e8: 2b00 cmp r3, #0 - 80070ea: d1e5 bne.n 80070b8 + 800719e: 6bfb ldr r3, [r7, #60] @ 0x3c + 80071a0: 2b00 cmp r3, #0 + 80071a2: d1e5 bne.n 8007170 /* 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); - 80070ec: 6efb ldr r3, [r7, #108] @ 0x6c - 80070ee: 681b ldr r3, [r3, #0] - 80070f0: 3314 adds r3, #20 - 80070f2: 627b str r3, [r7, #36] @ 0x24 + 80071a4: 6efb ldr r3, [r7, #108] @ 0x6c + 80071a6: 681b ldr r3, [r3, #0] + 80071a8: 3314 adds r3, #20 + 80071aa: 627b str r3, [r7, #36] @ 0x24 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80070f4: 6a7b ldr r3, [r7, #36] @ 0x24 - 80070f6: e853 3f00 ldrex r3, [r3] - 80070fa: 623b str r3, [r7, #32] + 80071ac: 6a7b ldr r3, [r7, #36] @ 0x24 + 80071ae: e853 3f00 ldrex r3, [r3] + 80071b2: 623b str r3, [r7, #32] return(result); - 80070fc: 6a3b ldr r3, [r7, #32] - 80070fe: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8007102: 663b str r3, [r7, #96] @ 0x60 - 8007104: 6efb ldr r3, [r7, #108] @ 0x6c - 8007106: 681b ldr r3, [r3, #0] - 8007108: 3314 adds r3, #20 - 800710a: 6e3a ldr r2, [r7, #96] @ 0x60 - 800710c: 633a str r2, [r7, #48] @ 0x30 - 800710e: 62fb str r3, [r7, #44] @ 0x2c + 80071b4: 6a3b ldr r3, [r7, #32] + 80071b6: f023 0340 bic.w r3, r3, #64 @ 0x40 + 80071ba: 663b str r3, [r7, #96] @ 0x60 + 80071bc: 6efb ldr r3, [r7, #108] @ 0x6c + 80071be: 681b ldr r3, [r3, #0] + 80071c0: 3314 adds r3, #20 + 80071c2: 6e3a ldr r2, [r7, #96] @ 0x60 + 80071c4: 633a str r2, [r7, #48] @ 0x30 + 80071c6: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8007110: 6af9 ldr r1, [r7, #44] @ 0x2c - 8007112: 6b3a ldr r2, [r7, #48] @ 0x30 - 8007114: e841 2300 strex r3, r2, [r1] - 8007118: 62bb str r3, [r7, #40] @ 0x28 + 80071c8: 6af9 ldr r1, [r7, #44] @ 0x2c + 80071ca: 6b3a ldr r2, [r7, #48] @ 0x30 + 80071cc: e841 2300 strex r3, r2, [r1] + 80071d0: 62bb str r3, [r7, #40] @ 0x28 return(result); - 800711a: 6abb ldr r3, [r7, #40] @ 0x28 - 800711c: 2b00 cmp r3, #0 - 800711e: d1e5 bne.n 80070ec + 80071d2: 6abb ldr r3, [r7, #40] @ 0x28 + 80071d4: 2b00 cmp r3, #0 + 80071d6: d1e5 bne.n 80071a4 /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8007120: 6efb ldr r3, [r7, #108] @ 0x6c - 8007122: 2220 movs r2, #32 - 8007124: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 80071d8: 6efb ldr r3, [r7, #108] @ 0x6c + 80071da: 2220 movs r2, #32 + 80071dc: 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) - 8007128: 6efb ldr r3, [r7, #108] @ 0x6c - 800712a: 6b1b ldr r3, [r3, #48] @ 0x30 - 800712c: 2b01 cmp r3, #1 - 800712e: d119 bne.n 8007164 + 80071e0: 6efb ldr r3, [r7, #108] @ 0x6c + 80071e2: 6b1b ldr r3, [r3, #48] @ 0x30 + 80071e4: 2b01 cmp r3, #1 + 80071e6: d119 bne.n 800721c { ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8007130: 6efb ldr r3, [r7, #108] @ 0x6c - 8007132: 681b ldr r3, [r3, #0] - 8007134: 330c adds r3, #12 - 8007136: 613b str r3, [r7, #16] + 80071e8: 6efb ldr r3, [r7, #108] @ 0x6c + 80071ea: 681b ldr r3, [r3, #0] + 80071ec: 330c adds r3, #12 + 80071ee: 613b str r3, [r7, #16] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8007138: 693b ldr r3, [r7, #16] - 800713a: e853 3f00 ldrex r3, [r3] - 800713e: 60fb str r3, [r7, #12] + 80071f0: 693b ldr r3, [r7, #16] + 80071f2: e853 3f00 ldrex r3, [r3] + 80071f6: 60fb str r3, [r7, #12] return(result); - 8007140: 68fb ldr r3, [r7, #12] - 8007142: f023 0310 bic.w r3, r3, #16 - 8007146: 65fb str r3, [r7, #92] @ 0x5c - 8007148: 6efb ldr r3, [r7, #108] @ 0x6c - 800714a: 681b ldr r3, [r3, #0] - 800714c: 330c adds r3, #12 - 800714e: 6dfa ldr r2, [r7, #92] @ 0x5c - 8007150: 61fa str r2, [r7, #28] - 8007152: 61bb str r3, [r7, #24] + 80071f8: 68fb ldr r3, [r7, #12] + 80071fa: f023 0310 bic.w r3, r3, #16 + 80071fe: 65fb str r3, [r7, #92] @ 0x5c + 8007200: 6efb ldr r3, [r7, #108] @ 0x6c + 8007202: 681b ldr r3, [r3, #0] + 8007204: 330c adds r3, #12 + 8007206: 6dfa ldr r2, [r7, #92] @ 0x5c + 8007208: 61fa str r2, [r7, #28] + 800720a: 61bb str r3, [r7, #24] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8007154: 69b9 ldr r1, [r7, #24] - 8007156: 69fa ldr r2, [r7, #28] - 8007158: e841 2300 strex r3, r2, [r1] - 800715c: 617b str r3, [r7, #20] + 800720c: 69b9 ldr r1, [r7, #24] + 800720e: 69fa ldr r2, [r7, #28] + 8007210: e841 2300 strex r3, r2, [r1] + 8007214: 617b str r3, [r7, #20] return(result); - 800715e: 697b ldr r3, [r7, #20] - 8007160: 2b00 cmp r3, #0 - 8007162: d1e5 bne.n 8007130 + 8007216: 697b ldr r3, [r7, #20] + 8007218: 2b00 cmp r3, #0 + 800721a: d1e5 bne.n 80071e8 } } /* 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; - 8007164: 6efb ldr r3, [r7, #108] @ 0x6c - 8007166: 2200 movs r2, #0 - 8007168: 635a str r2, [r3, #52] @ 0x34 + 800721c: 6efb ldr r3, [r7, #108] @ 0x6c + 800721e: 2200 movs r2, #0 + 8007220: 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) - 800716a: 6efb ldr r3, [r7, #108] @ 0x6c - 800716c: 6b1b ldr r3, [r3, #48] @ 0x30 - 800716e: 2b01 cmp r3, #1 - 8007170: d106 bne.n 8007180 + 8007222: 6efb ldr r3, [r7, #108] @ 0x6c + 8007224: 6b1b ldr r3, [r3, #48] @ 0x30 + 8007226: 2b01 cmp r3, #1 + 8007228: d106 bne.n 8007238 #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); - 8007172: 6efb ldr r3, [r7, #108] @ 0x6c - 8007174: 8d9b ldrh r3, [r3, #44] @ 0x2c - 8007176: 4619 mov r1, r3 - 8007178: 6ef8 ldr r0, [r7, #108] @ 0x6c - 800717a: f7ff ff0b bl 8006f94 + 800722a: 6efb ldr r3, [r7, #108] @ 0x6c + 800722c: 8d9b ldrh r3, [r3, #44] @ 0x2c + 800722e: 4619 mov r1, r3 + 8007230: 6ef8 ldr r0, [r7, #108] @ 0x6c + 8007232: f7ff ff0b bl 800704c #else /*Call legacy weak Rx complete callback*/ HAL_UART_RxCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } - 800717e: e002 b.n 8007186 + 8007236: e002 b.n 800723e HAL_UART_RxCpltCallback(huart); - 8007180: 6ef8 ldr r0, [r7, #108] @ 0x6c - 8007182: f7f9 fe43 bl 8000e0c + 8007238: 6ef8 ldr r0, [r7, #108] @ 0x6c + 800723a: f7f9 fdeb bl 8000e14 } - 8007186: bf00 nop - 8007188: 3770 adds r7, #112 @ 0x70 - 800718a: 46bd mov sp, r7 - 800718c: bd80 pop {r7, pc} + 800723e: bf00 nop + 8007240: 3770 adds r7, #112 @ 0x70 + 8007242: 46bd mov sp, r7 + 8007244: bd80 pop {r7, pc} -0800718e : +08007246 : * @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) { - 800718e: b580 push {r7, lr} - 8007190: b084 sub sp, #16 - 8007192: af00 add r7, sp, #0 - 8007194: 6078 str r0, [r7, #4] + 8007246: b580 push {r7, lr} + 8007248: b084 sub sp, #16 + 800724a: af00 add r7, sp, #0 + 800724c: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 8007196: 687b ldr r3, [r7, #4] - 8007198: 6b9b ldr r3, [r3, #56] @ 0x38 - 800719a: 60fb str r3, [r7, #12] + 800724e: 687b ldr r3, [r7, #4] + 8007250: 6b9b ldr r3, [r3, #56] @ 0x38 + 8007252: 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; - 800719c: 68fb ldr r3, [r7, #12] - 800719e: 2201 movs r2, #1 - 80071a0: 635a str r2, [r3, #52] @ 0x34 + 8007254: 68fb ldr r3, [r7, #12] + 8007256: 2201 movs r2, #1 + 8007258: 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) - 80071a2: 68fb ldr r3, [r7, #12] - 80071a4: 6b1b ldr r3, [r3, #48] @ 0x30 - 80071a6: 2b01 cmp r3, #1 - 80071a8: d108 bne.n 80071bc + 800725a: 68fb ldr r3, [r7, #12] + 800725c: 6b1b ldr r3, [r3, #48] @ 0x30 + 800725e: 2b01 cmp r3, #1 + 8007260: d108 bne.n 8007274 #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); - 80071aa: 68fb ldr r3, [r7, #12] - 80071ac: 8d9b ldrh r3, [r3, #44] @ 0x2c - 80071ae: 085b lsrs r3, r3, #1 - 80071b0: b29b uxth r3, r3 - 80071b2: 4619 mov r1, r3 - 80071b4: 68f8 ldr r0, [r7, #12] - 80071b6: f7ff feed bl 8006f94 + 8007262: 68fb ldr r3, [r7, #12] + 8007264: 8d9b ldrh r3, [r3, #44] @ 0x2c + 8007266: 085b lsrs r3, r3, #1 + 8007268: b29b uxth r3, r3 + 800726a: 4619 mov r1, r3 + 800726c: 68f8 ldr r0, [r7, #12] + 800726e: f7ff feed bl 800704c #else /*Call legacy weak Rx Half complete callback*/ HAL_UART_RxHalfCpltCallback(huart); #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } } - 80071ba: e002 b.n 80071c2 + 8007272: e002 b.n 800727a HAL_UART_RxHalfCpltCallback(huart); - 80071bc: 68f8 ldr r0, [r7, #12] - 80071be: f7ff fedf bl 8006f80 + 8007274: 68f8 ldr r0, [r7, #12] + 8007276: f7ff fedf bl 8007038 } - 80071c2: bf00 nop - 80071c4: 3710 adds r7, #16 - 80071c6: 46bd mov sp, r7 - 80071c8: bd80 pop {r7, pc} + 800727a: bf00 nop + 800727c: 3710 adds r7, #16 + 800727e: 46bd mov sp, r7 + 8007280: bd80 pop {r7, pc} -080071ca : +08007282 : * @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) { - 80071ca: b580 push {r7, lr} - 80071cc: b084 sub sp, #16 - 80071ce: af00 add r7, sp, #0 - 80071d0: 6078 str r0, [r7, #4] + 8007282: b580 push {r7, lr} + 8007284: b084 sub sp, #16 + 8007286: af00 add r7, sp, #0 + 8007288: 6078 str r0, [r7, #4] uint32_t dmarequest = 0x00U; - 80071d2: 2300 movs r3, #0 - 80071d4: 60fb str r3, [r7, #12] + 800728a: 2300 movs r3, #0 + 800728c: 60fb str r3, [r7, #12] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 80071d6: 687b ldr r3, [r7, #4] - 80071d8: 6b9b ldr r3, [r3, #56] @ 0x38 - 80071da: 60bb str r3, [r7, #8] + 800728e: 687b ldr r3, [r7, #4] + 8007290: 6b9b ldr r3, [r3, #56] @ 0x38 + 8007292: 60bb str r3, [r7, #8] /* Stop UART DMA Tx request if ongoing */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAT); - 80071dc: 68bb ldr r3, [r7, #8] - 80071de: 681b ldr r3, [r3, #0] - 80071e0: 695b ldr r3, [r3, #20] - 80071e2: f003 0380 and.w r3, r3, #128 @ 0x80 - 80071e6: 2b80 cmp r3, #128 @ 0x80 - 80071e8: bf0c ite eq - 80071ea: 2301 moveq r3, #1 - 80071ec: 2300 movne r3, #0 - 80071ee: b2db uxtb r3, r3 - 80071f0: 60fb str r3, [r7, #12] + 8007294: 68bb ldr r3, [r7, #8] + 8007296: 681b ldr r3, [r3, #0] + 8007298: 695b ldr r3, [r3, #20] + 800729a: f003 0380 and.w r3, r3, #128 @ 0x80 + 800729e: 2b80 cmp r3, #128 @ 0x80 + 80072a0: bf0c ite eq + 80072a2: 2301 moveq r3, #1 + 80072a4: 2300 movne r3, #0 + 80072a6: b2db uxtb r3, r3 + 80072a8: 60fb str r3, [r7, #12] if ((huart->gState == HAL_UART_STATE_BUSY_TX) && dmarequest) - 80071f2: 68bb ldr r3, [r7, #8] - 80071f4: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 80071f8: b2db uxtb r3, r3 - 80071fa: 2b21 cmp r3, #33 @ 0x21 - 80071fc: d108 bne.n 8007210 - 80071fe: 68fb ldr r3, [r7, #12] - 8007200: 2b00 cmp r3, #0 - 8007202: d005 beq.n 8007210 + 80072aa: 68bb ldr r3, [r7, #8] + 80072ac: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 80072b0: b2db uxtb r3, r3 + 80072b2: 2b21 cmp r3, #33 @ 0x21 + 80072b4: d108 bne.n 80072c8 + 80072b6: 68fb ldr r3, [r7, #12] + 80072b8: 2b00 cmp r3, #0 + 80072ba: d005 beq.n 80072c8 { huart->TxXferCount = 0x00U; - 8007204: 68bb ldr r3, [r7, #8] - 8007206: 2200 movs r2, #0 - 8007208: 84da strh r2, [r3, #38] @ 0x26 + 80072bc: 68bb ldr r3, [r7, #8] + 80072be: 2200 movs r2, #0 + 80072c0: 84da strh r2, [r3, #38] @ 0x26 UART_EndTxTransfer(huart); - 800720a: 68b8 ldr r0, [r7, #8] - 800720c: f000 f8ce bl 80073ac + 80072c2: 68b8 ldr r0, [r7, #8] + 80072c4: f000 f8ce bl 8007464 } /* Stop UART DMA Rx request if ongoing */ dmarequest = HAL_IS_BIT_SET(huart->Instance->CR3, USART_CR3_DMAR); - 8007210: 68bb ldr r3, [r7, #8] - 8007212: 681b ldr r3, [r3, #0] - 8007214: 695b ldr r3, [r3, #20] - 8007216: f003 0340 and.w r3, r3, #64 @ 0x40 - 800721a: 2b40 cmp r3, #64 @ 0x40 - 800721c: bf0c ite eq - 800721e: 2301 moveq r3, #1 - 8007220: 2300 movne r3, #0 - 8007222: b2db uxtb r3, r3 - 8007224: 60fb str r3, [r7, #12] + 80072c8: 68bb ldr r3, [r7, #8] + 80072ca: 681b ldr r3, [r3, #0] + 80072cc: 695b ldr r3, [r3, #20] + 80072ce: f003 0340 and.w r3, r3, #64 @ 0x40 + 80072d2: 2b40 cmp r3, #64 @ 0x40 + 80072d4: bf0c ite eq + 80072d6: 2301 moveq r3, #1 + 80072d8: 2300 movne r3, #0 + 80072da: b2db uxtb r3, r3 + 80072dc: 60fb str r3, [r7, #12] if ((huart->RxState == HAL_UART_STATE_BUSY_RX) && dmarequest) - 8007226: 68bb ldr r3, [r7, #8] - 8007228: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 - 800722c: b2db uxtb r3, r3 - 800722e: 2b22 cmp r3, #34 @ 0x22 - 8007230: d108 bne.n 8007244 - 8007232: 68fb ldr r3, [r7, #12] - 8007234: 2b00 cmp r3, #0 - 8007236: d005 beq.n 8007244 + 80072de: 68bb ldr r3, [r7, #8] + 80072e0: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 + 80072e4: b2db uxtb r3, r3 + 80072e6: 2b22 cmp r3, #34 @ 0x22 + 80072e8: d108 bne.n 80072fc + 80072ea: 68fb ldr r3, [r7, #12] + 80072ec: 2b00 cmp r3, #0 + 80072ee: d005 beq.n 80072fc { huart->RxXferCount = 0x00U; - 8007238: 68bb ldr r3, [r7, #8] - 800723a: 2200 movs r2, #0 - 800723c: 85da strh r2, [r3, #46] @ 0x2e + 80072f0: 68bb ldr r3, [r7, #8] + 80072f2: 2200 movs r2, #0 + 80072f4: 85da strh r2, [r3, #46] @ 0x2e UART_EndRxTransfer(huart); - 800723e: 68b8 ldr r0, [r7, #8] - 8007240: f000 f8dc bl 80073fc + 80072f6: 68b8 ldr r0, [r7, #8] + 80072f8: f000 f8dc bl 80074b4 } huart->ErrorCode |= HAL_UART_ERROR_DMA; - 8007244: 68bb ldr r3, [r7, #8] - 8007246: 6c5b ldr r3, [r3, #68] @ 0x44 - 8007248: f043 0210 orr.w r2, r3, #16 - 800724c: 68bb ldr r3, [r7, #8] - 800724e: 645a str r2, [r3, #68] @ 0x44 + 80072fc: 68bb ldr r3, [r7, #8] + 80072fe: 6c5b ldr r3, [r3, #68] @ 0x44 + 8007300: f043 0210 orr.w r2, r3, #16 + 8007304: 68bb ldr r3, [r7, #8] + 8007306: 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); - 8007250: 68b8 ldr r0, [r7, #8] - 8007252: f7f9 fe37 bl 8000ec4 + 8007308: 68b8 ldr r0, [r7, #8] + 800730a: f7f9 fddf bl 8000ecc #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } - 8007256: bf00 nop - 8007258: 3710 adds r7, #16 - 800725a: 46bd mov sp, r7 - 800725c: bd80 pop {r7, pc} + 800730e: bf00 nop + 8007310: 3710 adds r7, #16 + 8007312: 46bd mov sp, r7 + 8007314: bd80 pop {r7, pc} ... -08007260 : +08007318 : * @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) { - 8007260: b580 push {r7, lr} - 8007262: b098 sub sp, #96 @ 0x60 - 8007264: af00 add r7, sp, #0 - 8007266: 60f8 str r0, [r7, #12] - 8007268: 60b9 str r1, [r7, #8] - 800726a: 4613 mov r3, r2 - 800726c: 80fb strh r3, [r7, #6] + 8007318: b580 push {r7, lr} + 800731a: b098 sub sp, #96 @ 0x60 + 800731c: af00 add r7, sp, #0 + 800731e: 60f8 str r0, [r7, #12] + 8007320: 60b9 str r1, [r7, #8] + 8007322: 4613 mov r3, r2 + 8007324: 80fb strh r3, [r7, #6] uint32_t *tmp; huart->pRxBuffPtr = pData; - 800726e: 68ba ldr r2, [r7, #8] - 8007270: 68fb ldr r3, [r7, #12] - 8007272: 629a str r2, [r3, #40] @ 0x28 + 8007326: 68ba ldr r2, [r7, #8] + 8007328: 68fb ldr r3, [r7, #12] + 800732a: 629a str r2, [r3, #40] @ 0x28 huart->RxXferSize = Size; - 8007274: 68fb ldr r3, [r7, #12] - 8007276: 88fa ldrh r2, [r7, #6] - 8007278: 859a strh r2, [r3, #44] @ 0x2c + 800732c: 68fb ldr r3, [r7, #12] + 800732e: 88fa ldrh r2, [r7, #6] + 8007330: 859a strh r2, [r3, #44] @ 0x2c huart->ErrorCode = HAL_UART_ERROR_NONE; - 800727a: 68fb ldr r3, [r7, #12] - 800727c: 2200 movs r2, #0 - 800727e: 645a str r2, [r3, #68] @ 0x44 + 8007332: 68fb ldr r3, [r7, #12] + 8007334: 2200 movs r2, #0 + 8007336: 645a str r2, [r3, #68] @ 0x44 huart->RxState = HAL_UART_STATE_BUSY_RX; - 8007280: 68fb ldr r3, [r7, #12] - 8007282: 2222 movs r2, #34 @ 0x22 - 8007284: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8007338: 68fb ldr r3, [r7, #12] + 800733a: 2222 movs r2, #34 @ 0x22 + 800733c: f883 2042 strb.w r2, [r3, #66] @ 0x42 /* Set the UART DMA transfer complete callback */ huart->hdmarx->XferCpltCallback = UART_DMAReceiveCplt; - 8007288: 68fb ldr r3, [r7, #12] - 800728a: 6bdb ldr r3, [r3, #60] @ 0x3c - 800728c: 4a44 ldr r2, [pc, #272] @ (80073a0 ) - 800728e: 63da str r2, [r3, #60] @ 0x3c + 8007340: 68fb ldr r3, [r7, #12] + 8007342: 6bdb ldr r3, [r3, #60] @ 0x3c + 8007344: 4a44 ldr r2, [pc, #272] @ (8007458 ) + 8007346: 63da str r2, [r3, #60] @ 0x3c /* Set the UART DMA Half transfer complete callback */ huart->hdmarx->XferHalfCpltCallback = UART_DMARxHalfCplt; - 8007290: 68fb ldr r3, [r7, #12] - 8007292: 6bdb ldr r3, [r3, #60] @ 0x3c - 8007294: 4a43 ldr r2, [pc, #268] @ (80073a4 ) - 8007296: 641a str r2, [r3, #64] @ 0x40 + 8007348: 68fb ldr r3, [r7, #12] + 800734a: 6bdb ldr r3, [r3, #60] @ 0x3c + 800734c: 4a43 ldr r2, [pc, #268] @ (800745c ) + 800734e: 641a str r2, [r3, #64] @ 0x40 /* Set the DMA error callback */ huart->hdmarx->XferErrorCallback = UART_DMAError; - 8007298: 68fb ldr r3, [r7, #12] - 800729a: 6bdb ldr r3, [r3, #60] @ 0x3c - 800729c: 4a42 ldr r2, [pc, #264] @ (80073a8 ) - 800729e: 64da str r2, [r3, #76] @ 0x4c + 8007350: 68fb ldr r3, [r7, #12] + 8007352: 6bdb ldr r3, [r3, #60] @ 0x3c + 8007354: 4a42 ldr r2, [pc, #264] @ (8007460 ) + 8007356: 64da str r2, [r3, #76] @ 0x4c /* Set the DMA abort callback */ huart->hdmarx->XferAbortCallback = NULL; - 80072a0: 68fb ldr r3, [r7, #12] - 80072a2: 6bdb ldr r3, [r3, #60] @ 0x3c - 80072a4: 2200 movs r2, #0 - 80072a6: 651a str r2, [r3, #80] @ 0x50 + 8007358: 68fb ldr r3, [r7, #12] + 800735a: 6bdb ldr r3, [r3, #60] @ 0x3c + 800735c: 2200 movs r2, #0 + 800735e: 651a str r2, [r3, #80] @ 0x50 /* Enable the DMA stream */ tmp = (uint32_t *)&pData; - 80072a8: f107 0308 add.w r3, r7, #8 - 80072ac: 65fb str r3, [r7, #92] @ 0x5c + 8007360: f107 0308 add.w r3, r7, #8 + 8007364: 65fb str r3, [r7, #92] @ 0x5c if (HAL_DMA_Start_IT(huart->hdmarx, (uint32_t)&huart->Instance->DR, *(uint32_t *)tmp, Size) != HAL_OK) - 80072ae: 68fb ldr r3, [r7, #12] - 80072b0: 6bd8 ldr r0, [r3, #60] @ 0x3c - 80072b2: 68fb ldr r3, [r7, #12] - 80072b4: 681b ldr r3, [r3, #0] - 80072b6: 3304 adds r3, #4 - 80072b8: 4619 mov r1, r3 - 80072ba: 6dfb ldr r3, [r7, #92] @ 0x5c - 80072bc: 681a ldr r2, [r3, #0] - 80072be: 88fb ldrh r3, [r7, #6] - 80072c0: f7fa fff0 bl 80022a4 - 80072c4: 4603 mov r3, r0 - 80072c6: 2b00 cmp r3, #0 - 80072c8: d008 beq.n 80072dc + 8007366: 68fb ldr r3, [r7, #12] + 8007368: 6bd8 ldr r0, [r3, #60] @ 0x3c + 800736a: 68fb ldr r3, [r7, #12] + 800736c: 681b ldr r3, [r3, #0] + 800736e: 3304 adds r3, #4 + 8007370: 4619 mov r1, r3 + 8007372: 6dfb ldr r3, [r7, #92] @ 0x5c + 8007374: 681a ldr r2, [r3, #0] + 8007376: 88fb ldrh r3, [r7, #6] + 8007378: f7fa fff0 bl 800235c + 800737c: 4603 mov r3, r0 + 800737e: 2b00 cmp r3, #0 + 8007380: d008 beq.n 8007394 { /* Set error code to DMA */ huart->ErrorCode = HAL_UART_ERROR_DMA; - 80072ca: 68fb ldr r3, [r7, #12] - 80072cc: 2210 movs r2, #16 - 80072ce: 645a str r2, [r3, #68] @ 0x44 + 8007382: 68fb ldr r3, [r7, #12] + 8007384: 2210 movs r2, #16 + 8007386: 645a str r2, [r3, #68] @ 0x44 /* Restore huart->RxState to ready */ huart->RxState = HAL_UART_STATE_READY; - 80072d0: 68fb ldr r3, [r7, #12] - 80072d2: 2220 movs r2, #32 - 80072d4: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8007388: 68fb ldr r3, [r7, #12] + 800738a: 2220 movs r2, #32 + 800738c: f883 2042 strb.w r2, [r3, #66] @ 0x42 return HAL_ERROR; - 80072d8: 2301 movs r3, #1 - 80072da: e05d b.n 8007398 + 8007390: 2301 movs r3, #1 + 8007392: e05d b.n 8007450 } /* Clear the Overrun flag just before enabling the DMA Rx request: can be mandatory for the second transfer */ __HAL_UART_CLEAR_OREFLAG(huart); - 80072dc: 2300 movs r3, #0 - 80072de: 613b str r3, [r7, #16] - 80072e0: 68fb ldr r3, [r7, #12] - 80072e2: 681b ldr r3, [r3, #0] - 80072e4: 681b ldr r3, [r3, #0] - 80072e6: 613b str r3, [r7, #16] - 80072e8: 68fb ldr r3, [r7, #12] - 80072ea: 681b ldr r3, [r3, #0] - 80072ec: 685b ldr r3, [r3, #4] - 80072ee: 613b str r3, [r7, #16] - 80072f0: 693b ldr r3, [r7, #16] + 8007394: 2300 movs r3, #0 + 8007396: 613b str r3, [r7, #16] + 8007398: 68fb ldr r3, [r7, #12] + 800739a: 681b ldr r3, [r3, #0] + 800739c: 681b ldr r3, [r3, #0] + 800739e: 613b str r3, [r7, #16] + 80073a0: 68fb ldr r3, [r7, #12] + 80073a2: 681b ldr r3, [r3, #0] + 80073a4: 685b ldr r3, [r3, #4] + 80073a6: 613b str r3, [r7, #16] + 80073a8: 693b ldr r3, [r7, #16] if (huart->Init.Parity != UART_PARITY_NONE) - 80072f2: 68fb ldr r3, [r7, #12] - 80072f4: 691b ldr r3, [r3, #16] - 80072f6: 2b00 cmp r3, #0 - 80072f8: d019 beq.n 800732e + 80073aa: 68fb ldr r3, [r7, #12] + 80073ac: 691b ldr r3, [r3, #16] + 80073ae: 2b00 cmp r3, #0 + 80073b0: d019 beq.n 80073e6 { /* Enable the UART Parity Error Interrupt */ ATOMIC_SET_BIT(huart->Instance->CR1, USART_CR1_PEIE); - 80072fa: 68fb ldr r3, [r7, #12] - 80072fc: 681b ldr r3, [r3, #0] - 80072fe: 330c adds r3, #12 - 8007300: 643b str r3, [r7, #64] @ 0x40 + 80073b2: 68fb ldr r3, [r7, #12] + 80073b4: 681b ldr r3, [r3, #0] + 80073b6: 330c adds r3, #12 + 80073b8: 643b str r3, [r7, #64] @ 0x40 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8007302: 6c3b ldr r3, [r7, #64] @ 0x40 - 8007304: e853 3f00 ldrex r3, [r3] - 8007308: 63fb str r3, [r7, #60] @ 0x3c + 80073ba: 6c3b ldr r3, [r7, #64] @ 0x40 + 80073bc: e853 3f00 ldrex r3, [r3] + 80073c0: 63fb str r3, [r7, #60] @ 0x3c return(result); - 800730a: 6bfb ldr r3, [r7, #60] @ 0x3c - 800730c: f443 7380 orr.w r3, r3, #256 @ 0x100 - 8007310: 65bb str r3, [r7, #88] @ 0x58 - 8007312: 68fb ldr r3, [r7, #12] - 8007314: 681b ldr r3, [r3, #0] - 8007316: 330c adds r3, #12 - 8007318: 6dba ldr r2, [r7, #88] @ 0x58 - 800731a: 64fa str r2, [r7, #76] @ 0x4c - 800731c: 64bb str r3, [r7, #72] @ 0x48 + 80073c2: 6bfb ldr r3, [r7, #60] @ 0x3c + 80073c4: f443 7380 orr.w r3, r3, #256 @ 0x100 + 80073c8: 65bb str r3, [r7, #88] @ 0x58 + 80073ca: 68fb ldr r3, [r7, #12] + 80073cc: 681b ldr r3, [r3, #0] + 80073ce: 330c adds r3, #12 + 80073d0: 6dba ldr r2, [r7, #88] @ 0x58 + 80073d2: 64fa str r2, [r7, #76] @ 0x4c + 80073d4: 64bb str r3, [r7, #72] @ 0x48 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800731e: 6cb9 ldr r1, [r7, #72] @ 0x48 - 8007320: 6cfa ldr r2, [r7, #76] @ 0x4c - 8007322: e841 2300 strex r3, r2, [r1] - 8007326: 647b str r3, [r7, #68] @ 0x44 + 80073d6: 6cb9 ldr r1, [r7, #72] @ 0x48 + 80073d8: 6cfa ldr r2, [r7, #76] @ 0x4c + 80073da: e841 2300 strex r3, r2, [r1] + 80073de: 647b str r3, [r7, #68] @ 0x44 return(result); - 8007328: 6c7b ldr r3, [r7, #68] @ 0x44 - 800732a: 2b00 cmp r3, #0 - 800732c: d1e5 bne.n 80072fa + 80073e0: 6c7b ldr r3, [r7, #68] @ 0x44 + 80073e2: 2b00 cmp r3, #0 + 80073e4: d1e5 bne.n 80073b2 } /* Enable the UART Error Interrupt: (Frame error, noise error, overrun error) */ ATOMIC_SET_BIT(huart->Instance->CR3, USART_CR3_EIE); - 800732e: 68fb ldr r3, [r7, #12] - 8007330: 681b ldr r3, [r3, #0] - 8007332: 3314 adds r3, #20 - 8007334: 62fb str r3, [r7, #44] @ 0x2c + 80073e6: 68fb ldr r3, [r7, #12] + 80073e8: 681b ldr r3, [r3, #0] + 80073ea: 3314 adds r3, #20 + 80073ec: 62fb str r3, [r7, #44] @ 0x2c __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8007336: 6afb ldr r3, [r7, #44] @ 0x2c - 8007338: e853 3f00 ldrex r3, [r3] - 800733c: 62bb str r3, [r7, #40] @ 0x28 + 80073ee: 6afb ldr r3, [r7, #44] @ 0x2c + 80073f0: e853 3f00 ldrex r3, [r3] + 80073f4: 62bb str r3, [r7, #40] @ 0x28 return(result); - 800733e: 6abb ldr r3, [r7, #40] @ 0x28 - 8007340: f043 0301 orr.w r3, r3, #1 - 8007344: 657b str r3, [r7, #84] @ 0x54 - 8007346: 68fb ldr r3, [r7, #12] - 8007348: 681b ldr r3, [r3, #0] - 800734a: 3314 adds r3, #20 - 800734c: 6d7a ldr r2, [r7, #84] @ 0x54 - 800734e: 63ba str r2, [r7, #56] @ 0x38 - 8007350: 637b str r3, [r7, #52] @ 0x34 + 80073f6: 6abb ldr r3, [r7, #40] @ 0x28 + 80073f8: f043 0301 orr.w r3, r3, #1 + 80073fc: 657b str r3, [r7, #84] @ 0x54 + 80073fe: 68fb ldr r3, [r7, #12] + 8007400: 681b ldr r3, [r3, #0] + 8007402: 3314 adds r3, #20 + 8007404: 6d7a ldr r2, [r7, #84] @ 0x54 + 8007406: 63ba str r2, [r7, #56] @ 0x38 + 8007408: 637b str r3, [r7, #52] @ 0x34 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8007352: 6b79 ldr r1, [r7, #52] @ 0x34 - 8007354: 6bba ldr r2, [r7, #56] @ 0x38 - 8007356: e841 2300 strex r3, r2, [r1] - 800735a: 633b str r3, [r7, #48] @ 0x30 + 800740a: 6b79 ldr r1, [r7, #52] @ 0x34 + 800740c: 6bba ldr r2, [r7, #56] @ 0x38 + 800740e: e841 2300 strex r3, r2, [r1] + 8007412: 633b str r3, [r7, #48] @ 0x30 return(result); - 800735c: 6b3b ldr r3, [r7, #48] @ 0x30 - 800735e: 2b00 cmp r3, #0 - 8007360: d1e5 bne.n 800732e + 8007414: 6b3b ldr r3, [r7, #48] @ 0x30 + 8007416: 2b00 cmp r3, #0 + 8007418: d1e5 bne.n 80073e6 /* 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); - 8007362: 68fb ldr r3, [r7, #12] - 8007364: 681b ldr r3, [r3, #0] - 8007366: 3314 adds r3, #20 - 8007368: 61bb str r3, [r7, #24] + 800741a: 68fb ldr r3, [r7, #12] + 800741c: 681b ldr r3, [r3, #0] + 800741e: 3314 adds r3, #20 + 8007420: 61bb str r3, [r7, #24] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800736a: 69bb ldr r3, [r7, #24] - 800736c: e853 3f00 ldrex r3, [r3] - 8007370: 617b str r3, [r7, #20] + 8007422: 69bb ldr r3, [r7, #24] + 8007424: e853 3f00 ldrex r3, [r3] + 8007428: 617b str r3, [r7, #20] return(result); - 8007372: 697b ldr r3, [r7, #20] - 8007374: f043 0340 orr.w r3, r3, #64 @ 0x40 - 8007378: 653b str r3, [r7, #80] @ 0x50 - 800737a: 68fb ldr r3, [r7, #12] - 800737c: 681b ldr r3, [r3, #0] - 800737e: 3314 adds r3, #20 - 8007380: 6d3a ldr r2, [r7, #80] @ 0x50 - 8007382: 627a str r2, [r7, #36] @ 0x24 - 8007384: 623b str r3, [r7, #32] + 800742a: 697b ldr r3, [r7, #20] + 800742c: f043 0340 orr.w r3, r3, #64 @ 0x40 + 8007430: 653b str r3, [r7, #80] @ 0x50 + 8007432: 68fb ldr r3, [r7, #12] + 8007434: 681b ldr r3, [r3, #0] + 8007436: 3314 adds r3, #20 + 8007438: 6d3a ldr r2, [r7, #80] @ 0x50 + 800743a: 627a str r2, [r7, #36] @ 0x24 + 800743c: 623b str r3, [r7, #32] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8007386: 6a39 ldr r1, [r7, #32] - 8007388: 6a7a ldr r2, [r7, #36] @ 0x24 - 800738a: e841 2300 strex r3, r2, [r1] - 800738e: 61fb str r3, [r7, #28] + 800743e: 6a39 ldr r1, [r7, #32] + 8007440: 6a7a ldr r2, [r7, #36] @ 0x24 + 8007442: e841 2300 strex r3, r2, [r1] + 8007446: 61fb str r3, [r7, #28] return(result); - 8007390: 69fb ldr r3, [r7, #28] - 8007392: 2b00 cmp r3, #0 - 8007394: d1e5 bne.n 8007362 + 8007448: 69fb ldr r3, [r7, #28] + 800744a: 2b00 cmp r3, #0 + 800744c: d1e5 bne.n 800741a return HAL_OK; - 8007396: 2300 movs r3, #0 + 800744e: 2300 movs r3, #0 } - 8007398: 4618 mov r0, r3 - 800739a: 3760 adds r7, #96 @ 0x60 - 800739c: 46bd mov sp, r7 - 800739e: bd80 pop {r7, pc} - 80073a0: 08007063 .word 0x08007063 - 80073a4: 0800718f .word 0x0800718f - 80073a8: 080071cb .word 0x080071cb + 8007450: 4618 mov r0, r3 + 8007452: 3760 adds r7, #96 @ 0x60 + 8007454: 46bd mov sp, r7 + 8007456: bd80 pop {r7, pc} + 8007458: 0800711b .word 0x0800711b + 800745c: 08007247 .word 0x08007247 + 8007460: 08007283 .word 0x08007283 -080073ac : +08007464 : * @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) { - 80073ac: b480 push {r7} - 80073ae: b089 sub sp, #36 @ 0x24 - 80073b0: af00 add r7, sp, #0 - 80073b2: 6078 str r0, [r7, #4] + 8007464: b480 push {r7} + 8007466: b089 sub sp, #36 @ 0x24 + 8007468: af00 add r7, sp, #0 + 800746a: 6078 str r0, [r7, #4] /* Disable TXEIE and TCIE interrupts */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE | USART_CR1_TCIE)); - 80073b4: 687b ldr r3, [r7, #4] - 80073b6: 681b ldr r3, [r3, #0] - 80073b8: 330c adds r3, #12 - 80073ba: 60fb str r3, [r7, #12] + 800746c: 687b ldr r3, [r7, #4] + 800746e: 681b ldr r3, [r3, #0] + 8007470: 330c adds r3, #12 + 8007472: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80073bc: 68fb ldr r3, [r7, #12] - 80073be: e853 3f00 ldrex r3, [r3] - 80073c2: 60bb str r3, [r7, #8] + 8007474: 68fb ldr r3, [r7, #12] + 8007476: e853 3f00 ldrex r3, [r3] + 800747a: 60bb str r3, [r7, #8] return(result); - 80073c4: 68bb ldr r3, [r7, #8] - 80073c6: f023 03c0 bic.w r3, r3, #192 @ 0xc0 - 80073ca: 61fb str r3, [r7, #28] - 80073cc: 687b ldr r3, [r7, #4] - 80073ce: 681b ldr r3, [r3, #0] - 80073d0: 330c adds r3, #12 - 80073d2: 69fa ldr r2, [r7, #28] - 80073d4: 61ba str r2, [r7, #24] - 80073d6: 617b str r3, [r7, #20] + 800747c: 68bb ldr r3, [r7, #8] + 800747e: f023 03c0 bic.w r3, r3, #192 @ 0xc0 + 8007482: 61fb str r3, [r7, #28] + 8007484: 687b ldr r3, [r7, #4] + 8007486: 681b ldr r3, [r3, #0] + 8007488: 330c adds r3, #12 + 800748a: 69fa ldr r2, [r7, #28] + 800748c: 61ba str r2, [r7, #24] + 800748e: 617b str r3, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80073d8: 6979 ldr r1, [r7, #20] - 80073da: 69ba ldr r2, [r7, #24] - 80073dc: e841 2300 strex r3, r2, [r1] - 80073e0: 613b str r3, [r7, #16] + 8007490: 6979 ldr r1, [r7, #20] + 8007492: 69ba ldr r2, [r7, #24] + 8007494: e841 2300 strex r3, r2, [r1] + 8007498: 613b str r3, [r7, #16] return(result); - 80073e2: 693b ldr r3, [r7, #16] - 80073e4: 2b00 cmp r3, #0 - 80073e6: d1e5 bne.n 80073b4 + 800749a: 693b ldr r3, [r7, #16] + 800749c: 2b00 cmp r3, #0 + 800749e: d1e5 bne.n 800746c /* At end of Tx process, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; - 80073e8: 687b ldr r3, [r7, #4] - 80073ea: 2220 movs r2, #32 - 80073ec: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 80074a0: 687b ldr r3, [r7, #4] + 80074a2: 2220 movs r2, #32 + 80074a4: f883 2041 strb.w r2, [r3, #65] @ 0x41 } - 80073f0: bf00 nop - 80073f2: 3724 adds r7, #36 @ 0x24 - 80073f4: 46bd mov sp, r7 - 80073f6: f85d 7b04 ldr.w r7, [sp], #4 - 80073fa: 4770 bx lr + 80074a8: bf00 nop + 80074aa: 3724 adds r7, #36 @ 0x24 + 80074ac: 46bd mov sp, r7 + 80074ae: f85d 7b04 ldr.w r7, [sp], #4 + 80074b2: 4770 bx lr -080073fc : +080074b4 : * @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) { - 80073fc: b480 push {r7} - 80073fe: b095 sub sp, #84 @ 0x54 - 8007400: af00 add r7, sp, #0 - 8007402: 6078 str r0, [r7, #4] + 80074b4: b480 push {r7} + 80074b6: b095 sub sp, #84 @ 0x54 + 80074b8: af00 add r7, sp, #0 + 80074ba: 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)); - 8007404: 687b ldr r3, [r7, #4] - 8007406: 681b ldr r3, [r3, #0] - 8007408: 330c adds r3, #12 - 800740a: 637b str r3, [r7, #52] @ 0x34 + 80074bc: 687b ldr r3, [r7, #4] + 80074be: 681b ldr r3, [r3, #0] + 80074c0: 330c adds r3, #12 + 80074c2: 637b str r3, [r7, #52] @ 0x34 __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800740c: 6b7b ldr r3, [r7, #52] @ 0x34 - 800740e: e853 3f00 ldrex r3, [r3] - 8007412: 633b str r3, [r7, #48] @ 0x30 + 80074c4: 6b7b ldr r3, [r7, #52] @ 0x34 + 80074c6: e853 3f00 ldrex r3, [r3] + 80074ca: 633b str r3, [r7, #48] @ 0x30 return(result); - 8007414: 6b3b ldr r3, [r7, #48] @ 0x30 - 8007416: f423 7390 bic.w r3, r3, #288 @ 0x120 - 800741a: 64fb str r3, [r7, #76] @ 0x4c - 800741c: 687b ldr r3, [r7, #4] - 800741e: 681b ldr r3, [r3, #0] - 8007420: 330c adds r3, #12 - 8007422: 6cfa ldr r2, [r7, #76] @ 0x4c - 8007424: 643a str r2, [r7, #64] @ 0x40 - 8007426: 63fb str r3, [r7, #60] @ 0x3c + 80074cc: 6b3b ldr r3, [r7, #48] @ 0x30 + 80074ce: f423 7390 bic.w r3, r3, #288 @ 0x120 + 80074d2: 64fb str r3, [r7, #76] @ 0x4c + 80074d4: 687b ldr r3, [r7, #4] + 80074d6: 681b ldr r3, [r3, #0] + 80074d8: 330c adds r3, #12 + 80074da: 6cfa ldr r2, [r7, #76] @ 0x4c + 80074dc: 643a str r2, [r7, #64] @ 0x40 + 80074de: 63fb str r3, [r7, #60] @ 0x3c __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8007428: 6bf9 ldr r1, [r7, #60] @ 0x3c - 800742a: 6c3a ldr r2, [r7, #64] @ 0x40 - 800742c: e841 2300 strex r3, r2, [r1] - 8007430: 63bb str r3, [r7, #56] @ 0x38 + 80074e0: 6bf9 ldr r1, [r7, #60] @ 0x3c + 80074e2: 6c3a ldr r2, [r7, #64] @ 0x40 + 80074e4: e841 2300 strex r3, r2, [r1] + 80074e8: 63bb str r3, [r7, #56] @ 0x38 return(result); - 8007432: 6bbb ldr r3, [r7, #56] @ 0x38 - 8007434: 2b00 cmp r3, #0 - 8007436: d1e5 bne.n 8007404 + 80074ea: 6bbb ldr r3, [r7, #56] @ 0x38 + 80074ec: 2b00 cmp r3, #0 + 80074ee: d1e5 bne.n 80074bc ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE); - 8007438: 687b ldr r3, [r7, #4] - 800743a: 681b ldr r3, [r3, #0] - 800743c: 3314 adds r3, #20 - 800743e: 623b str r3, [r7, #32] + 80074f0: 687b ldr r3, [r7, #4] + 80074f2: 681b ldr r3, [r3, #0] + 80074f4: 3314 adds r3, #20 + 80074f6: 623b str r3, [r7, #32] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 8007440: 6a3b ldr r3, [r7, #32] - 8007442: e853 3f00 ldrex r3, [r3] - 8007446: 61fb str r3, [r7, #28] + 80074f8: 6a3b ldr r3, [r7, #32] + 80074fa: e853 3f00 ldrex r3, [r3] + 80074fe: 61fb str r3, [r7, #28] return(result); - 8007448: 69fb ldr r3, [r7, #28] - 800744a: f023 0301 bic.w r3, r3, #1 - 800744e: 64bb str r3, [r7, #72] @ 0x48 - 8007450: 687b ldr r3, [r7, #4] - 8007452: 681b ldr r3, [r3, #0] - 8007454: 3314 adds r3, #20 - 8007456: 6cba ldr r2, [r7, #72] @ 0x48 - 8007458: 62fa str r2, [r7, #44] @ 0x2c - 800745a: 62bb str r3, [r7, #40] @ 0x28 + 8007500: 69fb ldr r3, [r7, #28] + 8007502: f023 0301 bic.w r3, r3, #1 + 8007506: 64bb str r3, [r7, #72] @ 0x48 + 8007508: 687b ldr r3, [r7, #4] + 800750a: 681b ldr r3, [r3, #0] + 800750c: 3314 adds r3, #20 + 800750e: 6cba ldr r2, [r7, #72] @ 0x48 + 8007510: 62fa str r2, [r7, #44] @ 0x2c + 8007512: 62bb str r3, [r7, #40] @ 0x28 __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 800745c: 6ab9 ldr r1, [r7, #40] @ 0x28 - 800745e: 6afa ldr r2, [r7, #44] @ 0x2c - 8007460: e841 2300 strex r3, r2, [r1] - 8007464: 627b str r3, [r7, #36] @ 0x24 + 8007514: 6ab9 ldr r1, [r7, #40] @ 0x28 + 8007516: 6afa ldr r2, [r7, #44] @ 0x2c + 8007518: e841 2300 strex r3, r2, [r1] + 800751c: 627b str r3, [r7, #36] @ 0x24 return(result); - 8007466: 6a7b ldr r3, [r7, #36] @ 0x24 - 8007468: 2b00 cmp r3, #0 - 800746a: d1e5 bne.n 8007438 + 800751e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8007520: 2b00 cmp r3, #0 + 8007522: d1e5 bne.n 80074f0 /* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */ if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE) - 800746c: 687b ldr r3, [r7, #4] - 800746e: 6b1b ldr r3, [r3, #48] @ 0x30 - 8007470: 2b01 cmp r3, #1 - 8007472: d119 bne.n 80074a8 + 8007524: 687b ldr r3, [r7, #4] + 8007526: 6b1b ldr r3, [r3, #48] @ 0x30 + 8007528: 2b01 cmp r3, #1 + 800752a: d119 bne.n 8007560 { ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 8007474: 687b ldr r3, [r7, #4] - 8007476: 681b ldr r3, [r3, #0] - 8007478: 330c adds r3, #12 - 800747a: 60fb str r3, [r7, #12] + 800752c: 687b ldr r3, [r7, #4] + 800752e: 681b ldr r3, [r3, #0] + 8007530: 330c adds r3, #12 + 8007532: 60fb str r3, [r7, #12] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 800747c: 68fb ldr r3, [r7, #12] - 800747e: e853 3f00 ldrex r3, [r3] - 8007482: 60bb str r3, [r7, #8] + 8007534: 68fb ldr r3, [r7, #12] + 8007536: e853 3f00 ldrex r3, [r3] + 800753a: 60bb str r3, [r7, #8] return(result); - 8007484: 68bb ldr r3, [r7, #8] - 8007486: f023 0310 bic.w r3, r3, #16 - 800748a: 647b str r3, [r7, #68] @ 0x44 - 800748c: 687b ldr r3, [r7, #4] - 800748e: 681b ldr r3, [r3, #0] - 8007490: 330c adds r3, #12 - 8007492: 6c7a ldr r2, [r7, #68] @ 0x44 - 8007494: 61ba str r2, [r7, #24] - 8007496: 617b str r3, [r7, #20] + 800753c: 68bb ldr r3, [r7, #8] + 800753e: f023 0310 bic.w r3, r3, #16 + 8007542: 647b str r3, [r7, #68] @ 0x44 + 8007544: 687b ldr r3, [r7, #4] + 8007546: 681b ldr r3, [r3, #0] + 8007548: 330c adds r3, #12 + 800754a: 6c7a ldr r2, [r7, #68] @ 0x44 + 800754c: 61ba str r2, [r7, #24] + 800754e: 617b str r3, [r7, #20] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 8007498: 6979 ldr r1, [r7, #20] - 800749a: 69ba ldr r2, [r7, #24] - 800749c: e841 2300 strex r3, r2, [r1] - 80074a0: 613b str r3, [r7, #16] + 8007550: 6979 ldr r1, [r7, #20] + 8007552: 69ba ldr r2, [r7, #24] + 8007554: e841 2300 strex r3, r2, [r1] + 8007558: 613b str r3, [r7, #16] return(result); - 80074a2: 693b ldr r3, [r7, #16] - 80074a4: 2b00 cmp r3, #0 - 80074a6: d1e5 bne.n 8007474 + 800755a: 693b ldr r3, [r7, #16] + 800755c: 2b00 cmp r3, #0 + 800755e: d1e5 bne.n 800752c } /* At end of Rx process, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 80074a8: 687b ldr r3, [r7, #4] - 80074aa: 2220 movs r2, #32 - 80074ac: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 8007560: 687b ldr r3, [r7, #4] + 8007562: 2220 movs r2, #32 + 8007564: f883 2042 strb.w r2, [r3, #66] @ 0x42 huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 80074b0: 687b ldr r3, [r7, #4] - 80074b2: 2200 movs r2, #0 - 80074b4: 631a str r2, [r3, #48] @ 0x30 + 8007568: 687b ldr r3, [r7, #4] + 800756a: 2200 movs r2, #0 + 800756c: 631a str r2, [r3, #48] @ 0x30 } - 80074b6: bf00 nop - 80074b8: 3754 adds r7, #84 @ 0x54 - 80074ba: 46bd mov sp, r7 - 80074bc: f85d 7b04 ldr.w r7, [sp], #4 - 80074c0: 4770 bx lr + 800756e: bf00 nop + 8007570: 3754 adds r7, #84 @ 0x54 + 8007572: 46bd mov sp, r7 + 8007574: f85d 7b04 ldr.w r7, [sp], #4 + 8007578: 4770 bx lr -080074c2 : +0800757a : * @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) { - 80074c2: b580 push {r7, lr} - 80074c4: b084 sub sp, #16 - 80074c6: af00 add r7, sp, #0 - 80074c8: 6078 str r0, [r7, #4] + 800757a: b580 push {r7, lr} + 800757c: b084 sub sp, #16 + 800757e: af00 add r7, sp, #0 + 8007580: 6078 str r0, [r7, #4] UART_HandleTypeDef *huart = (UART_HandleTypeDef *)((DMA_HandleTypeDef *)hdma)->Parent; - 80074ca: 687b ldr r3, [r7, #4] - 80074cc: 6b9b ldr r3, [r3, #56] @ 0x38 - 80074ce: 60fb str r3, [r7, #12] + 8007582: 687b ldr r3, [r7, #4] + 8007584: 6b9b ldr r3, [r3, #56] @ 0x38 + 8007586: 60fb str r3, [r7, #12] huart->RxXferCount = 0x00U; - 80074d0: 68fb ldr r3, [r7, #12] - 80074d2: 2200 movs r2, #0 - 80074d4: 85da strh r2, [r3, #46] @ 0x2e + 8007588: 68fb ldr r3, [r7, #12] + 800758a: 2200 movs r2, #0 + 800758c: 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); - 80074d6: 68f8 ldr r0, [r7, #12] - 80074d8: f7f9 fcf4 bl 8000ec4 + 800758e: 68f8 ldr r0, [r7, #12] + 8007590: f7f9 fc9c bl 8000ecc #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } - 80074dc: bf00 nop - 80074de: 3710 adds r7, #16 - 80074e0: 46bd mov sp, r7 - 80074e2: bd80 pop {r7, pc} + 8007594: bf00 nop + 8007596: 3710 adds r7, #16 + 8007598: 46bd mov sp, r7 + 800759a: bd80 pop {r7, pc} -080074e4 : +0800759c : * @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) { - 80074e4: b480 push {r7} - 80074e6: b085 sub sp, #20 - 80074e8: af00 add r7, sp, #0 - 80074ea: 6078 str r0, [r7, #4] + 800759c: b480 push {r7} + 800759e: b085 sub sp, #20 + 80075a0: af00 add r7, sp, #0 + 80075a2: 6078 str r0, [r7, #4] const uint16_t *tmp; /* Check that a Tx process is ongoing */ if (huart->gState == HAL_UART_STATE_BUSY_TX) - 80074ec: 687b ldr r3, [r7, #4] - 80074ee: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 - 80074f2: b2db uxtb r3, r3 - 80074f4: 2b21 cmp r3, #33 @ 0x21 - 80074f6: d13e bne.n 8007576 + 80075a4: 687b ldr r3, [r7, #4] + 80075a6: f893 3041 ldrb.w r3, [r3, #65] @ 0x41 + 80075aa: b2db uxtb r3, r3 + 80075ac: 2b21 cmp r3, #33 @ 0x21 + 80075ae: d13e bne.n 800762e { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 80074f8: 687b ldr r3, [r7, #4] - 80074fa: 689b ldr r3, [r3, #8] - 80074fc: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8007500: d114 bne.n 800752c - 8007502: 687b ldr r3, [r7, #4] - 8007504: 691b ldr r3, [r3, #16] - 8007506: 2b00 cmp r3, #0 - 8007508: d110 bne.n 800752c + 80075b0: 687b ldr r3, [r7, #4] + 80075b2: 689b ldr r3, [r3, #8] + 80075b4: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 80075b8: d114 bne.n 80075e4 + 80075ba: 687b ldr r3, [r7, #4] + 80075bc: 691b ldr r3, [r3, #16] + 80075be: 2b00 cmp r3, #0 + 80075c0: d110 bne.n 80075e4 { tmp = (const uint16_t *) huart->pTxBuffPtr; - 800750a: 687b ldr r3, [r7, #4] - 800750c: 6a1b ldr r3, [r3, #32] - 800750e: 60fb str r3, [r7, #12] + 80075c2: 687b ldr r3, [r7, #4] + 80075c4: 6a1b ldr r3, [r3, #32] + 80075c6: 60fb str r3, [r7, #12] huart->Instance->DR = (uint16_t)(*tmp & (uint16_t)0x01FF); - 8007510: 68fb ldr r3, [r7, #12] - 8007512: 881b ldrh r3, [r3, #0] - 8007514: 461a mov r2, r3 - 8007516: 687b ldr r3, [r7, #4] - 8007518: 681b ldr r3, [r3, #0] - 800751a: f3c2 0208 ubfx r2, r2, #0, #9 - 800751e: 605a str r2, [r3, #4] + 80075c8: 68fb ldr r3, [r7, #12] + 80075ca: 881b ldrh r3, [r3, #0] + 80075cc: 461a mov r2, r3 + 80075ce: 687b ldr r3, [r7, #4] + 80075d0: 681b ldr r3, [r3, #0] + 80075d2: f3c2 0208 ubfx r2, r2, #0, #9 + 80075d6: 605a str r2, [r3, #4] huart->pTxBuffPtr += 2U; - 8007520: 687b ldr r3, [r7, #4] - 8007522: 6a1b ldr r3, [r3, #32] - 8007524: 1c9a adds r2, r3, #2 - 8007526: 687b ldr r3, [r7, #4] - 8007528: 621a str r2, [r3, #32] - 800752a: e008 b.n 800753e + 80075d8: 687b ldr r3, [r7, #4] + 80075da: 6a1b ldr r3, [r3, #32] + 80075dc: 1c9a adds r2, r3, #2 + 80075de: 687b ldr r3, [r7, #4] + 80075e0: 621a str r2, [r3, #32] + 80075e2: e008 b.n 80075f6 } else { huart->Instance->DR = (uint8_t)(*huart->pTxBuffPtr++ & (uint8_t)0x00FF); - 800752c: 687b ldr r3, [r7, #4] - 800752e: 6a1b ldr r3, [r3, #32] - 8007530: 1c59 adds r1, r3, #1 - 8007532: 687a ldr r2, [r7, #4] - 8007534: 6211 str r1, [r2, #32] - 8007536: 781a ldrb r2, [r3, #0] - 8007538: 687b ldr r3, [r7, #4] - 800753a: 681b ldr r3, [r3, #0] - 800753c: 605a str r2, [r3, #4] + 80075e4: 687b ldr r3, [r7, #4] + 80075e6: 6a1b ldr r3, [r3, #32] + 80075e8: 1c59 adds r1, r3, #1 + 80075ea: 687a ldr r2, [r7, #4] + 80075ec: 6211 str r1, [r2, #32] + 80075ee: 781a ldrb r2, [r3, #0] + 80075f0: 687b ldr r3, [r7, #4] + 80075f2: 681b ldr r3, [r3, #0] + 80075f4: 605a str r2, [r3, #4] } if (--huart->TxXferCount == 0U) - 800753e: 687b ldr r3, [r7, #4] - 8007540: 8cdb ldrh r3, [r3, #38] @ 0x26 - 8007542: b29b uxth r3, r3 - 8007544: 3b01 subs r3, #1 - 8007546: b29b uxth r3, r3 - 8007548: 687a ldr r2, [r7, #4] - 800754a: 4619 mov r1, r3 - 800754c: 84d1 strh r1, [r2, #38] @ 0x26 - 800754e: 2b00 cmp r3, #0 - 8007550: d10f bne.n 8007572 + 80075f6: 687b ldr r3, [r7, #4] + 80075f8: 8cdb ldrh r3, [r3, #38] @ 0x26 + 80075fa: b29b uxth r3, r3 + 80075fc: 3b01 subs r3, #1 + 80075fe: b29b uxth r3, r3 + 8007600: 687a ldr r2, [r7, #4] + 8007602: 4619 mov r1, r3 + 8007604: 84d1 strh r1, [r2, #38] @ 0x26 + 8007606: 2b00 cmp r3, #0 + 8007608: d10f bne.n 800762a { /* Disable the UART Transmit Data Register Empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TXE); - 8007552: 687b ldr r3, [r7, #4] - 8007554: 681b ldr r3, [r3, #0] - 8007556: 68da ldr r2, [r3, #12] - 8007558: 687b ldr r3, [r7, #4] - 800755a: 681b ldr r3, [r3, #0] - 800755c: f022 0280 bic.w r2, r2, #128 @ 0x80 - 8007560: 60da str r2, [r3, #12] + 800760a: 687b ldr r3, [r7, #4] + 800760c: 681b ldr r3, [r3, #0] + 800760e: 68da ldr r2, [r3, #12] + 8007610: 687b ldr r3, [r7, #4] + 8007612: 681b ldr r3, [r3, #0] + 8007614: f022 0280 bic.w r2, r2, #128 @ 0x80 + 8007618: 60da str r2, [r3, #12] /* Enable the UART Transmit Complete Interrupt */ __HAL_UART_ENABLE_IT(huart, UART_IT_TC); - 8007562: 687b ldr r3, [r7, #4] - 8007564: 681b ldr r3, [r3, #0] - 8007566: 68da ldr r2, [r3, #12] - 8007568: 687b ldr r3, [r7, #4] - 800756a: 681b ldr r3, [r3, #0] - 800756c: f042 0240 orr.w r2, r2, #64 @ 0x40 - 8007570: 60da str r2, [r3, #12] + 800761a: 687b ldr r3, [r7, #4] + 800761c: 681b ldr r3, [r3, #0] + 800761e: 68da ldr r2, [r3, #12] + 8007620: 687b ldr r3, [r7, #4] + 8007622: 681b ldr r3, [r3, #0] + 8007624: f042 0240 orr.w r2, r2, #64 @ 0x40 + 8007628: 60da str r2, [r3, #12] } return HAL_OK; - 8007572: 2300 movs r3, #0 - 8007574: e000 b.n 8007578 + 800762a: 2300 movs r3, #0 + 800762c: e000 b.n 8007630 } else { return HAL_BUSY; - 8007576: 2302 movs r3, #2 + 800762e: 2302 movs r3, #2 } } - 8007578: 4618 mov r0, r3 - 800757a: 3714 adds r7, #20 - 800757c: 46bd mov sp, r7 - 800757e: f85d 7b04 ldr.w r7, [sp], #4 - 8007582: 4770 bx lr + 8007630: 4618 mov r0, r3 + 8007632: 3714 adds r7, #20 + 8007634: 46bd mov sp, r7 + 8007636: f85d 7b04 ldr.w r7, [sp], #4 + 800763a: 4770 bx lr -08007584 : +0800763c : * @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) { - 8007584: b580 push {r7, lr} - 8007586: b082 sub sp, #8 - 8007588: af00 add r7, sp, #0 - 800758a: 6078 str r0, [r7, #4] + 800763c: b580 push {r7, lr} + 800763e: b082 sub sp, #8 + 8007640: af00 add r7, sp, #0 + 8007642: 6078 str r0, [r7, #4] /* Disable the UART Transmit Complete Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_TC); - 800758c: 687b ldr r3, [r7, #4] - 800758e: 681b ldr r3, [r3, #0] - 8007590: 68da ldr r2, [r3, #12] - 8007592: 687b ldr r3, [r7, #4] - 8007594: 681b ldr r3, [r3, #0] - 8007596: f022 0240 bic.w r2, r2, #64 @ 0x40 - 800759a: 60da str r2, [r3, #12] + 8007644: 687b ldr r3, [r7, #4] + 8007646: 681b ldr r3, [r3, #0] + 8007648: 68da ldr r2, [r3, #12] + 800764a: 687b ldr r3, [r7, #4] + 800764c: 681b ldr r3, [r3, #0] + 800764e: f022 0240 bic.w r2, r2, #64 @ 0x40 + 8007652: 60da str r2, [r3, #12] /* Tx process is ended, restore huart->gState to Ready */ huart->gState = HAL_UART_STATE_READY; - 800759c: 687b ldr r3, [r7, #4] - 800759e: 2220 movs r2, #32 - 80075a0: f883 2041 strb.w r2, [r3, #65] @ 0x41 + 8007654: 687b ldr r3, [r7, #4] + 8007656: 2220 movs r2, #32 + 8007658: 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); - 80075a4: 6878 ldr r0, [r7, #4] - 80075a6: f7ff fcd7 bl 8006f58 + 800765c: 6878 ldr r0, [r7, #4] + 800765e: f7ff fcd7 bl 8007010 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ return HAL_OK; - 80075aa: 2300 movs r3, #0 + 8007662: 2300 movs r3, #0 } - 80075ac: 4618 mov r0, r3 - 80075ae: 3708 adds r7, #8 - 80075b0: 46bd mov sp, r7 - 80075b2: bd80 pop {r7, pc} + 8007664: 4618 mov r0, r3 + 8007666: 3708 adds r7, #8 + 8007668: 46bd mov sp, r7 + 800766a: bd80 pop {r7, pc} -080075b4 : +0800766c : * @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) { - 80075b4: b580 push {r7, lr} - 80075b6: b08c sub sp, #48 @ 0x30 - 80075b8: af00 add r7, sp, #0 - 80075ba: 6078 str r0, [r7, #4] + 800766c: b580 push {r7, lr} + 800766e: b08c sub sp, #48 @ 0x30 + 8007670: af00 add r7, sp, #0 + 8007672: 6078 str r0, [r7, #4] uint8_t *pdata8bits = NULL; - 80075bc: 2300 movs r3, #0 - 80075be: 62fb str r3, [r7, #44] @ 0x2c + 8007674: 2300 movs r3, #0 + 8007676: 62fb str r3, [r7, #44] @ 0x2c uint16_t *pdata16bits = NULL; - 80075c0: 2300 movs r3, #0 - 80075c2: 62bb str r3, [r7, #40] @ 0x28 + 8007678: 2300 movs r3, #0 + 800767a: 62bb str r3, [r7, #40] @ 0x28 /* Check that a Rx process is ongoing */ if (huart->RxState == HAL_UART_STATE_BUSY_RX) - 80075c4: 687b ldr r3, [r7, #4] - 80075c6: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 - 80075ca: b2db uxtb r3, r3 - 80075cc: 2b22 cmp r3, #34 @ 0x22 - 80075ce: f040 80aa bne.w 8007726 + 800767c: 687b ldr r3, [r7, #4] + 800767e: f893 3042 ldrb.w r3, [r3, #66] @ 0x42 + 8007682: b2db uxtb r3, r3 + 8007684: 2b22 cmp r3, #34 @ 0x22 + 8007686: f040 80aa bne.w 80077de { if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE)) - 80075d2: 687b ldr r3, [r7, #4] - 80075d4: 689b ldr r3, [r3, #8] - 80075d6: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 80075da: d115 bne.n 8007608 - 80075dc: 687b ldr r3, [r7, #4] - 80075de: 691b ldr r3, [r3, #16] - 80075e0: 2b00 cmp r3, #0 - 80075e2: d111 bne.n 8007608 + 800768a: 687b ldr r3, [r7, #4] + 800768c: 689b ldr r3, [r3, #8] + 800768e: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 8007692: d115 bne.n 80076c0 + 8007694: 687b ldr r3, [r7, #4] + 8007696: 691b ldr r3, [r3, #16] + 8007698: 2b00 cmp r3, #0 + 800769a: d111 bne.n 80076c0 { /* Unused pdata8bits */ UNUSED(pdata8bits); pdata16bits = (uint16_t *) huart->pRxBuffPtr; - 80075e4: 687b ldr r3, [r7, #4] - 80075e6: 6a9b ldr r3, [r3, #40] @ 0x28 - 80075e8: 62bb str r3, [r7, #40] @ 0x28 + 800769c: 687b ldr r3, [r7, #4] + 800769e: 6a9b ldr r3, [r3, #40] @ 0x28 + 80076a0: 62bb str r3, [r7, #40] @ 0x28 *pdata16bits = (uint16_t)(huart->Instance->DR & (uint16_t)0x01FF); - 80075ea: 687b ldr r3, [r7, #4] - 80075ec: 681b ldr r3, [r3, #0] - 80075ee: 685b ldr r3, [r3, #4] - 80075f0: b29b uxth r3, r3 - 80075f2: f3c3 0308 ubfx r3, r3, #0, #9 - 80075f6: b29a uxth r2, r3 - 80075f8: 6abb ldr r3, [r7, #40] @ 0x28 - 80075fa: 801a strh r2, [r3, #0] + 80076a2: 687b ldr r3, [r7, #4] + 80076a4: 681b ldr r3, [r3, #0] + 80076a6: 685b ldr r3, [r3, #4] + 80076a8: b29b uxth r3, r3 + 80076aa: f3c3 0308 ubfx r3, r3, #0, #9 + 80076ae: b29a uxth r2, r3 + 80076b0: 6abb ldr r3, [r7, #40] @ 0x28 + 80076b2: 801a strh r2, [r3, #0] huart->pRxBuffPtr += 2U; - 80075fc: 687b ldr r3, [r7, #4] - 80075fe: 6a9b ldr r3, [r3, #40] @ 0x28 - 8007600: 1c9a adds r2, r3, #2 - 8007602: 687b ldr r3, [r7, #4] - 8007604: 629a str r2, [r3, #40] @ 0x28 - 8007606: e024 b.n 8007652 + 80076b4: 687b ldr r3, [r7, #4] + 80076b6: 6a9b ldr r3, [r3, #40] @ 0x28 + 80076b8: 1c9a adds r2, r3, #2 + 80076ba: 687b ldr r3, [r7, #4] + 80076bc: 629a str r2, [r3, #40] @ 0x28 + 80076be: e024 b.n 800770a } else { pdata8bits = (uint8_t *) huart->pRxBuffPtr; - 8007608: 687b ldr r3, [r7, #4] - 800760a: 6a9b ldr r3, [r3, #40] @ 0x28 - 800760c: 62fb str r3, [r7, #44] @ 0x2c + 80076c0: 687b ldr r3, [r7, #4] + 80076c2: 6a9b ldr r3, [r3, #40] @ 0x28 + 80076c4: 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))) - 800760e: 687b ldr r3, [r7, #4] - 8007610: 689b ldr r3, [r3, #8] - 8007612: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 - 8007616: d007 beq.n 8007628 - 8007618: 687b ldr r3, [r7, #4] - 800761a: 689b ldr r3, [r3, #8] - 800761c: 2b00 cmp r3, #0 - 800761e: d10a bne.n 8007636 - 8007620: 687b ldr r3, [r7, #4] - 8007622: 691b ldr r3, [r3, #16] - 8007624: 2b00 cmp r3, #0 - 8007626: d106 bne.n 8007636 + 80076c6: 687b ldr r3, [r7, #4] + 80076c8: 689b ldr r3, [r3, #8] + 80076ca: f5b3 5f80 cmp.w r3, #4096 @ 0x1000 + 80076ce: d007 beq.n 80076e0 + 80076d0: 687b ldr r3, [r7, #4] + 80076d2: 689b ldr r3, [r3, #8] + 80076d4: 2b00 cmp r3, #0 + 80076d6: d10a bne.n 80076ee + 80076d8: 687b ldr r3, [r7, #4] + 80076da: 691b ldr r3, [r3, #16] + 80076dc: 2b00 cmp r3, #0 + 80076de: d106 bne.n 80076ee { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x00FF); - 8007628: 687b ldr r3, [r7, #4] - 800762a: 681b ldr r3, [r3, #0] - 800762c: 685b ldr r3, [r3, #4] - 800762e: b2da uxtb r2, r3 - 8007630: 6afb ldr r3, [r7, #44] @ 0x2c - 8007632: 701a strb r2, [r3, #0] - 8007634: e008 b.n 8007648 + 80076e0: 687b ldr r3, [r7, #4] + 80076e2: 681b ldr r3, [r3, #0] + 80076e4: 685b ldr r3, [r3, #4] + 80076e6: b2da uxtb r2, r3 + 80076e8: 6afb ldr r3, [r7, #44] @ 0x2c + 80076ea: 701a strb r2, [r3, #0] + 80076ec: e008 b.n 8007700 } else { *pdata8bits = (uint8_t)(huart->Instance->DR & (uint8_t)0x007F); - 8007636: 687b ldr r3, [r7, #4] - 8007638: 681b ldr r3, [r3, #0] - 800763a: 685b ldr r3, [r3, #4] - 800763c: b2db uxtb r3, r3 - 800763e: f003 037f and.w r3, r3, #127 @ 0x7f - 8007642: b2da uxtb r2, r3 - 8007644: 6afb ldr r3, [r7, #44] @ 0x2c - 8007646: 701a strb r2, [r3, #0] + 80076ee: 687b ldr r3, [r7, #4] + 80076f0: 681b ldr r3, [r3, #0] + 80076f2: 685b ldr r3, [r3, #4] + 80076f4: b2db uxtb r3, r3 + 80076f6: f003 037f and.w r3, r3, #127 @ 0x7f + 80076fa: b2da uxtb r2, r3 + 80076fc: 6afb ldr r3, [r7, #44] @ 0x2c + 80076fe: 701a strb r2, [r3, #0] } huart->pRxBuffPtr += 1U; - 8007648: 687b ldr r3, [r7, #4] - 800764a: 6a9b ldr r3, [r3, #40] @ 0x28 - 800764c: 1c5a adds r2, r3, #1 - 800764e: 687b ldr r3, [r7, #4] - 8007650: 629a str r2, [r3, #40] @ 0x28 + 8007700: 687b ldr r3, [r7, #4] + 8007702: 6a9b ldr r3, [r3, #40] @ 0x28 + 8007704: 1c5a adds r2, r3, #1 + 8007706: 687b ldr r3, [r7, #4] + 8007708: 629a str r2, [r3, #40] @ 0x28 } if (--huart->RxXferCount == 0U) - 8007652: 687b ldr r3, [r7, #4] - 8007654: 8ddb ldrh r3, [r3, #46] @ 0x2e - 8007656: b29b uxth r3, r3 - 8007658: 3b01 subs r3, #1 - 800765a: b29b uxth r3, r3 - 800765c: 687a ldr r2, [r7, #4] - 800765e: 4619 mov r1, r3 - 8007660: 85d1 strh r1, [r2, #46] @ 0x2e - 8007662: 2b00 cmp r3, #0 - 8007664: d15d bne.n 8007722 + 800770a: 687b ldr r3, [r7, #4] + 800770c: 8ddb ldrh r3, [r3, #46] @ 0x2e + 800770e: b29b uxth r3, r3 + 8007710: 3b01 subs r3, #1 + 8007712: b29b uxth r3, r3 + 8007714: 687a ldr r2, [r7, #4] + 8007716: 4619 mov r1, r3 + 8007718: 85d1 strh r1, [r2, #46] @ 0x2e + 800771a: 2b00 cmp r3, #0 + 800771c: d15d bne.n 80077da { /* Disable the UART Data Register not empty Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_RXNE); - 8007666: 687b ldr r3, [r7, #4] - 8007668: 681b ldr r3, [r3, #0] - 800766a: 68da ldr r2, [r3, #12] - 800766c: 687b ldr r3, [r7, #4] - 800766e: 681b ldr r3, [r3, #0] - 8007670: f022 0220 bic.w r2, r2, #32 - 8007674: 60da str r2, [r3, #12] + 800771e: 687b ldr r3, [r7, #4] + 8007720: 681b ldr r3, [r3, #0] + 8007722: 68da ldr r2, [r3, #12] + 8007724: 687b ldr r3, [r7, #4] + 8007726: 681b ldr r3, [r3, #0] + 8007728: f022 0220 bic.w r2, r2, #32 + 800772c: 60da str r2, [r3, #12] /* Disable the UART Parity Error Interrupt */ __HAL_UART_DISABLE_IT(huart, UART_IT_PE); - 8007676: 687b ldr r3, [r7, #4] - 8007678: 681b ldr r3, [r3, #0] - 800767a: 68da ldr r2, [r3, #12] - 800767c: 687b ldr r3, [r7, #4] - 800767e: 681b ldr r3, [r3, #0] - 8007680: f422 7280 bic.w r2, r2, #256 @ 0x100 - 8007684: 60da str r2, [r3, #12] + 800772e: 687b ldr r3, [r7, #4] + 8007730: 681b ldr r3, [r3, #0] + 8007732: 68da ldr r2, [r3, #12] + 8007734: 687b ldr r3, [r7, #4] + 8007736: 681b ldr r3, [r3, #0] + 8007738: f422 7280 bic.w r2, r2, #256 @ 0x100 + 800773c: 60da str r2, [r3, #12] /* Disable the UART Error Interrupt: (Frame error, noise error, overrun error) */ __HAL_UART_DISABLE_IT(huart, UART_IT_ERR); - 8007686: 687b ldr r3, [r7, #4] - 8007688: 681b ldr r3, [r3, #0] - 800768a: 695a ldr r2, [r3, #20] - 800768c: 687b ldr r3, [r7, #4] - 800768e: 681b ldr r3, [r3, #0] - 8007690: f022 0201 bic.w r2, r2, #1 - 8007694: 615a str r2, [r3, #20] + 800773e: 687b ldr r3, [r7, #4] + 8007740: 681b ldr r3, [r3, #0] + 8007742: 695a ldr r2, [r3, #20] + 8007744: 687b ldr r3, [r7, #4] + 8007746: 681b ldr r3, [r3, #0] + 8007748: f022 0201 bic.w r2, r2, #1 + 800774c: 615a str r2, [r3, #20] /* Rx process is completed, restore huart->RxState to Ready */ huart->RxState = HAL_UART_STATE_READY; - 8007696: 687b ldr r3, [r7, #4] - 8007698: 2220 movs r2, #32 - 800769a: f883 2042 strb.w r2, [r3, #66] @ 0x42 + 800774e: 687b ldr r3, [r7, #4] + 8007750: 2220 movs r2, #32 + 8007752: f883 2042 strb.w r2, [r3, #66] @ 0x42 /* Initialize type of RxEvent to Transfer Complete */ huart->RxEventType = HAL_UART_RXEVENT_TC; - 800769e: 687b ldr r3, [r7, #4] - 80076a0: 2200 movs r2, #0 - 80076a2: 635a str r2, [r3, #52] @ 0x34 + 8007756: 687b ldr r3, [r7, #4] + 8007758: 2200 movs r2, #0 + 800775a: 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) - 80076a4: 687b ldr r3, [r7, #4] - 80076a6: 6b1b ldr r3, [r3, #48] @ 0x30 - 80076a8: 2b01 cmp r3, #1 - 80076aa: d135 bne.n 8007718 + 800775c: 687b ldr r3, [r7, #4] + 800775e: 6b1b ldr r3, [r3, #48] @ 0x30 + 8007760: 2b01 cmp r3, #1 + 8007762: d135 bne.n 80077d0 { /* Set reception type to Standard */ huart->ReceptionType = HAL_UART_RECEPTION_STANDARD; - 80076ac: 687b ldr r3, [r7, #4] - 80076ae: 2200 movs r2, #0 - 80076b0: 631a str r2, [r3, #48] @ 0x30 + 8007764: 687b ldr r3, [r7, #4] + 8007766: 2200 movs r2, #0 + 8007768: 631a str r2, [r3, #48] @ 0x30 /* Disable IDLE interrupt */ ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE); - 80076b2: 687b ldr r3, [r7, #4] - 80076b4: 681b ldr r3, [r3, #0] - 80076b6: 330c adds r3, #12 - 80076b8: 617b str r3, [r7, #20] + 800776a: 687b ldr r3, [r7, #4] + 800776c: 681b ldr r3, [r3, #0] + 800776e: 330c adds r3, #12 + 8007770: 617b str r3, [r7, #20] __ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) ); - 80076ba: 697b ldr r3, [r7, #20] - 80076bc: e853 3f00 ldrex r3, [r3] - 80076c0: 613b str r3, [r7, #16] + 8007772: 697b ldr r3, [r7, #20] + 8007774: e853 3f00 ldrex r3, [r3] + 8007778: 613b str r3, [r7, #16] return(result); - 80076c2: 693b ldr r3, [r7, #16] - 80076c4: f023 0310 bic.w r3, r3, #16 - 80076c8: 627b str r3, [r7, #36] @ 0x24 - 80076ca: 687b ldr r3, [r7, #4] - 80076cc: 681b ldr r3, [r3, #0] - 80076ce: 330c adds r3, #12 - 80076d0: 6a7a ldr r2, [r7, #36] @ 0x24 - 80076d2: 623a str r2, [r7, #32] - 80076d4: 61fb str r3, [r7, #28] + 800777a: 693b ldr r3, [r7, #16] + 800777c: f023 0310 bic.w r3, r3, #16 + 8007780: 627b str r3, [r7, #36] @ 0x24 + 8007782: 687b ldr r3, [r7, #4] + 8007784: 681b ldr r3, [r3, #0] + 8007786: 330c adds r3, #12 + 8007788: 6a7a ldr r2, [r7, #36] @ 0x24 + 800778a: 623a str r2, [r7, #32] + 800778c: 61fb str r3, [r7, #28] __ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) ); - 80076d6: 69f9 ldr r1, [r7, #28] - 80076d8: 6a3a ldr r2, [r7, #32] - 80076da: e841 2300 strex r3, r2, [r1] - 80076de: 61bb str r3, [r7, #24] + 800778e: 69f9 ldr r1, [r7, #28] + 8007790: 6a3a ldr r2, [r7, #32] + 8007792: e841 2300 strex r3, r2, [r1] + 8007796: 61bb str r3, [r7, #24] return(result); - 80076e0: 69bb ldr r3, [r7, #24] - 80076e2: 2b00 cmp r3, #0 - 80076e4: d1e5 bne.n 80076b2 + 8007798: 69bb ldr r3, [r7, #24] + 800779a: 2b00 cmp r3, #0 + 800779c: d1e5 bne.n 800776a /* Check if IDLE flag is set */ if (__HAL_UART_GET_FLAG(huart, UART_FLAG_IDLE)) - 80076e6: 687b ldr r3, [r7, #4] - 80076e8: 681b ldr r3, [r3, #0] - 80076ea: 681b ldr r3, [r3, #0] - 80076ec: f003 0310 and.w r3, r3, #16 - 80076f0: 2b10 cmp r3, #16 - 80076f2: d10a bne.n 800770a + 800779e: 687b ldr r3, [r7, #4] + 80077a0: 681b ldr r3, [r3, #0] + 80077a2: 681b ldr r3, [r3, #0] + 80077a4: f003 0310 and.w r3, r3, #16 + 80077a8: 2b10 cmp r3, #16 + 80077aa: d10a bne.n 80077c2 { /* Clear IDLE flag in ISR */ __HAL_UART_CLEAR_IDLEFLAG(huart); - 80076f4: 2300 movs r3, #0 - 80076f6: 60fb str r3, [r7, #12] - 80076f8: 687b ldr r3, [r7, #4] - 80076fa: 681b ldr r3, [r3, #0] - 80076fc: 681b ldr r3, [r3, #0] - 80076fe: 60fb str r3, [r7, #12] - 8007700: 687b ldr r3, [r7, #4] - 8007702: 681b ldr r3, [r3, #0] - 8007704: 685b ldr r3, [r3, #4] - 8007706: 60fb str r3, [r7, #12] - 8007708: 68fb ldr r3, [r7, #12] + 80077ac: 2300 movs r3, #0 + 80077ae: 60fb str r3, [r7, #12] + 80077b0: 687b ldr r3, [r7, #4] + 80077b2: 681b ldr r3, [r3, #0] + 80077b4: 681b ldr r3, [r3, #0] + 80077b6: 60fb str r3, [r7, #12] + 80077b8: 687b ldr r3, [r7, #4] + 80077ba: 681b ldr r3, [r3, #0] + 80077bc: 685b ldr r3, [r3, #4] + 80077be: 60fb str r3, [r7, #12] + 80077c0: 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); - 800770a: 687b ldr r3, [r7, #4] - 800770c: 8d9b ldrh r3, [r3, #44] @ 0x2c - 800770e: 4619 mov r1, r3 - 8007710: 6878 ldr r0, [r7, #4] - 8007712: f7ff fc3f bl 8006f94 - 8007716: e002 b.n 800771e + 80077c2: 687b ldr r3, [r7, #4] + 80077c4: 8d9b ldrh r3, [r3, #44] @ 0x2c + 80077c6: 4619 mov r1, r3 + 80077c8: 6878 ldr r0, [r7, #4] + 80077ca: f7ff fc3f bl 800704c + 80077ce: e002 b.n 80077d6 #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); - 8007718: 6878 ldr r0, [r7, #4] - 800771a: f7f9 fb77 bl 8000e0c + 80077d0: 6878 ldr r0, [r7, #4] + 80077d2: f7f9 fb1f bl 8000e14 #endif /* USE_HAL_UART_REGISTER_CALLBACKS */ } return HAL_OK; - 800771e: 2300 movs r3, #0 - 8007720: e002 b.n 8007728 + 80077d6: 2300 movs r3, #0 + 80077d8: e002 b.n 80077e0 } return HAL_OK; - 8007722: 2300 movs r3, #0 - 8007724: e000 b.n 8007728 + 80077da: 2300 movs r3, #0 + 80077dc: e000 b.n 80077e0 } else { return HAL_BUSY; - 8007726: 2302 movs r3, #2 + 80077de: 2302 movs r3, #2 } } - 8007728: 4618 mov r0, r3 - 800772a: 3730 adds r7, #48 @ 0x30 - 800772c: 46bd mov sp, r7 - 800772e: bd80 pop {r7, pc} + 80077e0: 4618 mov r0, r3 + 80077e2: 3730 adds r7, #48 @ 0x30 + 80077e4: 46bd mov sp, r7 + 80077e6: bd80 pop {r7, pc} -08007730 : +080077e8 : * @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) { - 8007730: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} - 8007734: b0c0 sub sp, #256 @ 0x100 - 8007736: af00 add r7, sp, #0 - 8007738: f8c7 00f4 str.w r0, [r7, #244] @ 0xf4 + 80077e8: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr} + 80077ec: b0c0 sub sp, #256 @ 0x100 + 80077ee: af00 add r7, sp, #0 + 80077f0: 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); - 800773c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007740: 681b ldr r3, [r3, #0] - 8007742: 691b ldr r3, [r3, #16] - 8007744: f423 5040 bic.w r0, r3, #12288 @ 0x3000 - 8007748: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 800774c: 68d9 ldr r1, [r3, #12] - 800774e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007752: 681a ldr r2, [r3, #0] - 8007754: ea40 0301 orr.w r3, r0, r1 - 8007758: 6113 str r3, [r2, #16] + 80077f4: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 80077f8: 681b ldr r3, [r3, #0] + 80077fa: 691b ldr r3, [r3, #16] + 80077fc: f423 5040 bic.w r0, r3, #12288 @ 0x3000 + 8007800: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007804: 68d9 ldr r1, [r3, #12] + 8007806: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 800780a: 681a ldr r2, [r3, #0] + 800780c: ea40 0301 orr.w r3, r0, r1 + 8007810: 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; - 800775a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 800775e: 689a ldr r2, [r3, #8] - 8007760: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007764: 691b ldr r3, [r3, #16] - 8007766: 431a orrs r2, r3 - 8007768: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 800776c: 695b ldr r3, [r3, #20] - 800776e: 431a orrs r2, r3 - 8007770: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007774: 69db ldr r3, [r3, #28] - 8007776: 4313 orrs r3, r2 - 8007778: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8 + 8007812: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007816: 689a ldr r2, [r3, #8] + 8007818: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 800781c: 691b ldr r3, [r3, #16] + 800781e: 431a orrs r2, r3 + 8007820: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007824: 695b ldr r3, [r3, #20] + 8007826: 431a orrs r2, r3 + 8007828: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 800782c: 69db ldr r3, [r3, #28] + 800782e: 4313 orrs r3, r2 + 8007830: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8 MODIFY_REG(huart->Instance->CR1, - 800777c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007780: 681b ldr r3, [r3, #0] - 8007782: 68db ldr r3, [r3, #12] - 8007784: f423 4116 bic.w r1, r3, #38400 @ 0x9600 - 8007788: f021 010c bic.w r1, r1, #12 - 800778c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007790: 681a ldr r2, [r3, #0] - 8007792: f8d7 30f8 ldr.w r3, [r7, #248] @ 0xf8 - 8007796: 430b orrs r3, r1 - 8007798: 60d3 str r3, [r2, #12] + 8007834: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007838: 681b ldr r3, [r3, #0] + 800783a: 68db ldr r3, [r3, #12] + 800783c: f423 4116 bic.w r1, r3, #38400 @ 0x9600 + 8007840: f021 010c bic.w r1, r1, #12 + 8007844: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007848: 681a ldr r2, [r3, #0] + 800784a: f8d7 30f8 ldr.w r3, [r7, #248] @ 0xf8 + 800784e: 430b orrs r3, r1 + 8007850: 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); - 800779a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 800779e: 681b ldr r3, [r3, #0] - 80077a0: 695b ldr r3, [r3, #20] - 80077a2: f423 7040 bic.w r0, r3, #768 @ 0x300 - 80077a6: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80077aa: 6999 ldr r1, [r3, #24] - 80077ac: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80077b0: 681a ldr r2, [r3, #0] - 80077b2: ea40 0301 orr.w r3, r0, r1 - 80077b6: 6153 str r3, [r2, #20] + 8007852: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007856: 681b ldr r3, [r3, #0] + 8007858: 695b ldr r3, [r3, #20] + 800785a: f423 7040 bic.w r0, r3, #768 @ 0x300 + 800785e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007862: 6999 ldr r1, [r3, #24] + 8007864: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007868: 681a ldr r2, [r3, #0] + 800786a: ea40 0301 orr.w r3, r0, r1 + 800786e: 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)) - 80077b8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80077bc: 681a ldr r2, [r3, #0] - 80077be: 4b8f ldr r3, [pc, #572] @ (80079fc ) - 80077c0: 429a cmp r2, r3 - 80077c2: d005 beq.n 80077d0 - 80077c4: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80077c8: 681a ldr r2, [r3, #0] - 80077ca: 4b8d ldr r3, [pc, #564] @ (8007a00 ) - 80077cc: 429a cmp r2, r3 - 80077ce: d104 bne.n 80077da + 8007870: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007874: 681a ldr r2, [r3, #0] + 8007876: 4b8f ldr r3, [pc, #572] @ (8007ab4 ) + 8007878: 429a cmp r2, r3 + 800787a: d005 beq.n 8007888 + 800787c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007880: 681a ldr r2, [r3, #0] + 8007882: 4b8d ldr r3, [pc, #564] @ (8007ab8 ) + 8007884: 429a cmp r2, r3 + 8007886: d104 bne.n 8007892 { pclk = HAL_RCC_GetPCLK2Freq(); - 80077d0: f7fc ff52 bl 8004678 - 80077d4: f8c7 00fc str.w r0, [r7, #252] @ 0xfc - 80077d8: e003 b.n 80077e2 + 8007888: f7fc ff52 bl 8004730 + 800788c: f8c7 00fc str.w r0, [r7, #252] @ 0xfc + 8007890: e003 b.n 800789a pclk = HAL_RCC_GetPCLK2Freq(); } #endif /* USART6 */ else { pclk = HAL_RCC_GetPCLK1Freq(); - 80077da: f7fc ff39 bl 8004650 - 80077de: f8c7 00fc str.w r0, [r7, #252] @ 0xfc + 8007892: f7fc ff39 bl 8004708 + 8007896: f8c7 00fc str.w r0, [r7, #252] @ 0xfc } /*-------------------------- USART BRR Configuration ---------------------*/ if (huart->Init.OverSampling == UART_OVERSAMPLING_8) - 80077e2: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80077e6: 69db ldr r3, [r3, #28] - 80077e8: f5b3 4f00 cmp.w r3, #32768 @ 0x8000 - 80077ec: f040 810c bne.w 8007a08 + 800789a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 800789e: 69db ldr r3, [r3, #28] + 80078a0: f5b3 4f00 cmp.w r3, #32768 @ 0x8000 + 80078a4: f040 810c bne.w 8007ac0 { huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate); - 80077f0: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 80077f4: 2200 movs r2, #0 - 80077f6: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8 - 80077fa: f8c7 20ec str.w r2, [r7, #236] @ 0xec - 80077fe: e9d7 453a ldrd r4, r5, [r7, #232] @ 0xe8 - 8007802: 4622 mov r2, r4 - 8007804: 462b mov r3, r5 - 8007806: 1891 adds r1, r2, r2 - 8007808: 65b9 str r1, [r7, #88] @ 0x58 - 800780a: 415b adcs r3, r3 - 800780c: 65fb str r3, [r7, #92] @ 0x5c - 800780e: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 - 8007812: 4621 mov r1, r4 - 8007814: eb12 0801 adds.w r8, r2, r1 - 8007818: 4629 mov r1, r5 - 800781a: eb43 0901 adc.w r9, r3, r1 - 800781e: f04f 0200 mov.w r2, #0 - 8007822: f04f 0300 mov.w r3, #0 - 8007826: ea4f 03c9 mov.w r3, r9, lsl #3 - 800782a: ea43 7358 orr.w r3, r3, r8, lsr #29 - 800782e: ea4f 02c8 mov.w r2, r8, lsl #3 - 8007832: 4690 mov r8, r2 - 8007834: 4699 mov r9, r3 - 8007836: 4623 mov r3, r4 - 8007838: eb18 0303 adds.w r3, r8, r3 - 800783c: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 - 8007840: 462b mov r3, r5 - 8007842: eb49 0303 adc.w r3, r9, r3 - 8007846: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 - 800784a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 800784e: 685b ldr r3, [r3, #4] - 8007850: 2200 movs r2, #0 - 8007852: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 - 8007856: f8c7 20dc str.w r2, [r7, #220] @ 0xdc - 800785a: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8 - 800785e: 460b mov r3, r1 - 8007860: 18db adds r3, r3, r3 - 8007862: 653b str r3, [r7, #80] @ 0x50 - 8007864: 4613 mov r3, r2 - 8007866: eb42 0303 adc.w r3, r2, r3 - 800786a: 657b str r3, [r7, #84] @ 0x54 - 800786c: e9d7 2314 ldrd r2, r3, [r7, #80] @ 0x50 - 8007870: e9d7 0138 ldrd r0, r1, [r7, #224] @ 0xe0 - 8007874: f7f8 fcc6 bl 8000204 <__aeabi_uldivmod> - 8007878: 4602 mov r2, r0 - 800787a: 460b mov r3, r1 - 800787c: 4b61 ldr r3, [pc, #388] @ (8007a04 ) - 800787e: fba3 2302 umull r2, r3, r3, r2 - 8007882: 095b lsrs r3, r3, #5 - 8007884: 011c lsls r4, r3, #4 - 8007886: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 800788a: 2200 movs r2, #0 - 800788c: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 - 8007890: f8c7 20d4 str.w r2, [r7, #212] @ 0xd4 - 8007894: e9d7 8934 ldrd r8, r9, [r7, #208] @ 0xd0 - 8007898: 4642 mov r2, r8 - 800789a: 464b mov r3, r9 - 800789c: 1891 adds r1, r2, r2 - 800789e: 64b9 str r1, [r7, #72] @ 0x48 - 80078a0: 415b adcs r3, r3 - 80078a2: 64fb str r3, [r7, #76] @ 0x4c - 80078a4: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 - 80078a8: 4641 mov r1, r8 - 80078aa: eb12 0a01 adds.w sl, r2, r1 - 80078ae: 4649 mov r1, r9 - 80078b0: eb43 0b01 adc.w fp, r3, r1 - 80078b4: f04f 0200 mov.w r2, #0 - 80078b8: f04f 0300 mov.w r3, #0 - 80078bc: ea4f 03cb mov.w r3, fp, lsl #3 - 80078c0: ea43 735a orr.w r3, r3, sl, lsr #29 - 80078c4: ea4f 02ca mov.w r2, sl, lsl #3 - 80078c8: 4692 mov sl, r2 - 80078ca: 469b mov fp, r3 - 80078cc: 4643 mov r3, r8 - 80078ce: eb1a 0303 adds.w r3, sl, r3 - 80078d2: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 - 80078d6: 464b mov r3, r9 - 80078d8: eb4b 0303 adc.w r3, fp, r3 - 80078dc: f8c7 30cc str.w r3, [r7, #204] @ 0xcc - 80078e0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80078e4: 685b ldr r3, [r3, #4] - 80078e6: 2200 movs r2, #0 - 80078e8: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 - 80078ec: f8c7 20c4 str.w r2, [r7, #196] @ 0xc4 - 80078f0: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0 - 80078f4: 460b mov r3, r1 - 80078f6: 18db adds r3, r3, r3 - 80078f8: 643b str r3, [r7, #64] @ 0x40 - 80078fa: 4613 mov r3, r2 - 80078fc: eb42 0303 adc.w r3, r2, r3 - 8007900: 647b str r3, [r7, #68] @ 0x44 - 8007902: e9d7 2310 ldrd r2, r3, [r7, #64] @ 0x40 - 8007906: e9d7 0132 ldrd r0, r1, [r7, #200] @ 0xc8 - 800790a: f7f8 fc7b bl 8000204 <__aeabi_uldivmod> - 800790e: 4602 mov r2, r0 - 8007910: 460b mov r3, r1 - 8007912: 4611 mov r1, r2 - 8007914: 4b3b ldr r3, [pc, #236] @ (8007a04 ) - 8007916: fba3 2301 umull r2, r3, r3, r1 - 800791a: 095b lsrs r3, r3, #5 - 800791c: 2264 movs r2, #100 @ 0x64 - 800791e: fb02 f303 mul.w r3, r2, r3 - 8007922: 1acb subs r3, r1, r3 - 8007924: 00db lsls r3, r3, #3 - 8007926: f103 0232 add.w r2, r3, #50 @ 0x32 - 800792a: 4b36 ldr r3, [pc, #216] @ (8007a04 ) - 800792c: fba3 2302 umull r2, r3, r3, r2 - 8007930: 095b lsrs r3, r3, #5 - 8007932: 005b lsls r3, r3, #1 - 8007934: f403 73f8 and.w r3, r3, #496 @ 0x1f0 - 8007938: 441c add r4, r3 - 800793a: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 800793e: 2200 movs r2, #0 - 8007940: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 - 8007944: f8c7 20bc str.w r2, [r7, #188] @ 0xbc - 8007948: e9d7 892e ldrd r8, r9, [r7, #184] @ 0xb8 - 800794c: 4642 mov r2, r8 - 800794e: 464b mov r3, r9 - 8007950: 1891 adds r1, r2, r2 - 8007952: 63b9 str r1, [r7, #56] @ 0x38 - 8007954: 415b adcs r3, r3 - 8007956: 63fb str r3, [r7, #60] @ 0x3c - 8007958: e9d7 230e ldrd r2, r3, [r7, #56] @ 0x38 - 800795c: 4641 mov r1, r8 - 800795e: 1851 adds r1, r2, r1 - 8007960: 6339 str r1, [r7, #48] @ 0x30 - 8007962: 4649 mov r1, r9 - 8007964: 414b adcs r3, r1 - 8007966: 637b str r3, [r7, #52] @ 0x34 - 8007968: f04f 0200 mov.w r2, #0 - 800796c: f04f 0300 mov.w r3, #0 - 8007970: e9d7 ab0c ldrd sl, fp, [r7, #48] @ 0x30 - 8007974: 4659 mov r1, fp - 8007976: 00cb lsls r3, r1, #3 - 8007978: 4651 mov r1, sl - 800797a: ea43 7351 orr.w r3, r3, r1, lsr #29 - 800797e: 4651 mov r1, sl - 8007980: 00ca lsls r2, r1, #3 - 8007982: 4610 mov r0, r2 - 8007984: 4619 mov r1, r3 - 8007986: 4603 mov r3, r0 - 8007988: 4642 mov r2, r8 - 800798a: 189b adds r3, r3, r2 - 800798c: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 - 8007990: 464b mov r3, r9 - 8007992: 460a mov r2, r1 - 8007994: eb42 0303 adc.w r3, r2, r3 - 8007998: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 - 800799c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80079a0: 685b ldr r3, [r3, #4] - 80079a2: 2200 movs r2, #0 - 80079a4: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 - 80079a8: f8c7 20ac str.w r2, [r7, #172] @ 0xac - 80079ac: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8 - 80079b0: 460b mov r3, r1 - 80079b2: 18db adds r3, r3, r3 - 80079b4: 62bb str r3, [r7, #40] @ 0x28 - 80079b6: 4613 mov r3, r2 - 80079b8: eb42 0303 adc.w r3, r2, r3 - 80079bc: 62fb str r3, [r7, #44] @ 0x2c - 80079be: e9d7 230a ldrd r2, r3, [r7, #40] @ 0x28 - 80079c2: e9d7 012c ldrd r0, r1, [r7, #176] @ 0xb0 - 80079c6: f7f8 fc1d bl 8000204 <__aeabi_uldivmod> - 80079ca: 4602 mov r2, r0 - 80079cc: 460b mov r3, r1 - 80079ce: 4b0d ldr r3, [pc, #52] @ (8007a04 ) - 80079d0: fba3 1302 umull r1, r3, r3, r2 - 80079d4: 095b lsrs r3, r3, #5 - 80079d6: 2164 movs r1, #100 @ 0x64 - 80079d8: fb01 f303 mul.w r3, r1, r3 - 80079dc: 1ad3 subs r3, r2, r3 - 80079de: 00db lsls r3, r3, #3 - 80079e0: 3332 adds r3, #50 @ 0x32 - 80079e2: 4a08 ldr r2, [pc, #32] @ (8007a04 ) - 80079e4: fba2 2303 umull r2, r3, r2, r3 + 80078a8: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 80078ac: 2200 movs r2, #0 + 80078ae: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8 + 80078b2: f8c7 20ec str.w r2, [r7, #236] @ 0xec + 80078b6: e9d7 453a ldrd r4, r5, [r7, #232] @ 0xe8 + 80078ba: 4622 mov r2, r4 + 80078bc: 462b mov r3, r5 + 80078be: 1891 adds r1, r2, r2 + 80078c0: 65b9 str r1, [r7, #88] @ 0x58 + 80078c2: 415b adcs r3, r3 + 80078c4: 65fb str r3, [r7, #92] @ 0x5c + 80078c6: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58 + 80078ca: 4621 mov r1, r4 + 80078cc: eb12 0801 adds.w r8, r2, r1 + 80078d0: 4629 mov r1, r5 + 80078d2: eb43 0901 adc.w r9, r3, r1 + 80078d6: f04f 0200 mov.w r2, #0 + 80078da: f04f 0300 mov.w r3, #0 + 80078de: ea4f 03c9 mov.w r3, r9, lsl #3 + 80078e2: ea43 7358 orr.w r3, r3, r8, lsr #29 + 80078e6: ea4f 02c8 mov.w r2, r8, lsl #3 + 80078ea: 4690 mov r8, r2 + 80078ec: 4699 mov r9, r3 + 80078ee: 4623 mov r3, r4 + 80078f0: eb18 0303 adds.w r3, r8, r3 + 80078f4: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0 + 80078f8: 462b mov r3, r5 + 80078fa: eb49 0303 adc.w r3, r9, r3 + 80078fe: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4 + 8007902: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007906: 685b ldr r3, [r3, #4] + 8007908: 2200 movs r2, #0 + 800790a: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8 + 800790e: f8c7 20dc str.w r2, [r7, #220] @ 0xdc + 8007912: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8 + 8007916: 460b mov r3, r1 + 8007918: 18db adds r3, r3, r3 + 800791a: 653b str r3, [r7, #80] @ 0x50 + 800791c: 4613 mov r3, r2 + 800791e: eb42 0303 adc.w r3, r2, r3 + 8007922: 657b str r3, [r7, #84] @ 0x54 + 8007924: e9d7 2314 ldrd r2, r3, [r7, #80] @ 0x50 + 8007928: e9d7 0138 ldrd r0, r1, [r7, #224] @ 0xe0 + 800792c: f7f8 fc6a bl 8000204 <__aeabi_uldivmod> + 8007930: 4602 mov r2, r0 + 8007932: 460b mov r3, r1 + 8007934: 4b61 ldr r3, [pc, #388] @ (8007abc ) + 8007936: fba3 2302 umull r2, r3, r3, r2 + 800793a: 095b lsrs r3, r3, #5 + 800793c: 011c lsls r4, r3, #4 + 800793e: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8007942: 2200 movs r2, #0 + 8007944: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0 + 8007948: f8c7 20d4 str.w r2, [r7, #212] @ 0xd4 + 800794c: e9d7 8934 ldrd r8, r9, [r7, #208] @ 0xd0 + 8007950: 4642 mov r2, r8 + 8007952: 464b mov r3, r9 + 8007954: 1891 adds r1, r2, r2 + 8007956: 64b9 str r1, [r7, #72] @ 0x48 + 8007958: 415b adcs r3, r3 + 800795a: 64fb str r3, [r7, #76] @ 0x4c + 800795c: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48 + 8007960: 4641 mov r1, r8 + 8007962: eb12 0a01 adds.w sl, r2, r1 + 8007966: 4649 mov r1, r9 + 8007968: eb43 0b01 adc.w fp, r3, r1 + 800796c: f04f 0200 mov.w r2, #0 + 8007970: f04f 0300 mov.w r3, #0 + 8007974: ea4f 03cb mov.w r3, fp, lsl #3 + 8007978: ea43 735a orr.w r3, r3, sl, lsr #29 + 800797c: ea4f 02ca mov.w r2, sl, lsl #3 + 8007980: 4692 mov sl, r2 + 8007982: 469b mov fp, r3 + 8007984: 4643 mov r3, r8 + 8007986: eb1a 0303 adds.w r3, sl, r3 + 800798a: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8 + 800798e: 464b mov r3, r9 + 8007990: eb4b 0303 adc.w r3, fp, r3 + 8007994: f8c7 30cc str.w r3, [r7, #204] @ 0xcc + 8007998: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 800799c: 685b ldr r3, [r3, #4] + 800799e: 2200 movs r2, #0 + 80079a0: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0 + 80079a4: f8c7 20c4 str.w r2, [r7, #196] @ 0xc4 + 80079a8: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0 + 80079ac: 460b mov r3, r1 + 80079ae: 18db adds r3, r3, r3 + 80079b0: 643b str r3, [r7, #64] @ 0x40 + 80079b2: 4613 mov r3, r2 + 80079b4: eb42 0303 adc.w r3, r2, r3 + 80079b8: 647b str r3, [r7, #68] @ 0x44 + 80079ba: e9d7 2310 ldrd r2, r3, [r7, #64] @ 0x40 + 80079be: e9d7 0132 ldrd r0, r1, [r7, #200] @ 0xc8 + 80079c2: f7f8 fc1f bl 8000204 <__aeabi_uldivmod> + 80079c6: 4602 mov r2, r0 + 80079c8: 460b mov r3, r1 + 80079ca: 4611 mov r1, r2 + 80079cc: 4b3b ldr r3, [pc, #236] @ (8007abc ) + 80079ce: fba3 2301 umull r2, r3, r3, r1 + 80079d2: 095b lsrs r3, r3, #5 + 80079d4: 2264 movs r2, #100 @ 0x64 + 80079d6: fb02 f303 mul.w r3, r2, r3 + 80079da: 1acb subs r3, r1, r3 + 80079dc: 00db lsls r3, r3, #3 + 80079de: f103 0232 add.w r2, r3, #50 @ 0x32 + 80079e2: 4b36 ldr r3, [pc, #216] @ (8007abc ) + 80079e4: fba3 2302 umull r2, r3, r3, r2 80079e8: 095b lsrs r3, r3, #5 - 80079ea: f003 0207 and.w r2, r3, #7 - 80079ee: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 80079f2: 681b ldr r3, [r3, #0] - 80079f4: 4422 add r2, r4 - 80079f6: 609a str r2, [r3, #8] + 80079ea: 005b lsls r3, r3, #1 + 80079ec: f403 73f8 and.w r3, r3, #496 @ 0x1f0 + 80079f0: 441c add r4, r3 + 80079f2: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 80079f6: 2200 movs r2, #0 + 80079f8: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8 + 80079fc: f8c7 20bc str.w r2, [r7, #188] @ 0xbc + 8007a00: e9d7 892e ldrd r8, r9, [r7, #184] @ 0xb8 + 8007a04: 4642 mov r2, r8 + 8007a06: 464b mov r3, r9 + 8007a08: 1891 adds r1, r2, r2 + 8007a0a: 63b9 str r1, [r7, #56] @ 0x38 + 8007a0c: 415b adcs r3, r3 + 8007a0e: 63fb str r3, [r7, #60] @ 0x3c + 8007a10: e9d7 230e ldrd r2, r3, [r7, #56] @ 0x38 + 8007a14: 4641 mov r1, r8 + 8007a16: 1851 adds r1, r2, r1 + 8007a18: 6339 str r1, [r7, #48] @ 0x30 + 8007a1a: 4649 mov r1, r9 + 8007a1c: 414b adcs r3, r1 + 8007a1e: 637b str r3, [r7, #52] @ 0x34 + 8007a20: f04f 0200 mov.w r2, #0 + 8007a24: f04f 0300 mov.w r3, #0 + 8007a28: e9d7 ab0c ldrd sl, fp, [r7, #48] @ 0x30 + 8007a2c: 4659 mov r1, fp + 8007a2e: 00cb lsls r3, r1, #3 + 8007a30: 4651 mov r1, sl + 8007a32: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8007a36: 4651 mov r1, sl + 8007a38: 00ca lsls r2, r1, #3 + 8007a3a: 4610 mov r0, r2 + 8007a3c: 4619 mov r1, r3 + 8007a3e: 4603 mov r3, r0 + 8007a40: 4642 mov r2, r8 + 8007a42: 189b adds r3, r3, r2 + 8007a44: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0 + 8007a48: 464b mov r3, r9 + 8007a4a: 460a mov r2, r1 + 8007a4c: eb42 0303 adc.w r3, r2, r3 + 8007a50: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4 + 8007a54: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007a58: 685b ldr r3, [r3, #4] + 8007a5a: 2200 movs r2, #0 + 8007a5c: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8 + 8007a60: f8c7 20ac str.w r2, [r7, #172] @ 0xac + 8007a64: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8 + 8007a68: 460b mov r3, r1 + 8007a6a: 18db adds r3, r3, r3 + 8007a6c: 62bb str r3, [r7, #40] @ 0x28 + 8007a6e: 4613 mov r3, r2 + 8007a70: eb42 0303 adc.w r3, r2, r3 + 8007a74: 62fb str r3, [r7, #44] @ 0x2c + 8007a76: e9d7 230a ldrd r2, r3, [r7, #40] @ 0x28 + 8007a7a: e9d7 012c ldrd r0, r1, [r7, #176] @ 0xb0 + 8007a7e: f7f8 fbc1 bl 8000204 <__aeabi_uldivmod> + 8007a82: 4602 mov r2, r0 + 8007a84: 460b mov r3, r1 + 8007a86: 4b0d ldr r3, [pc, #52] @ (8007abc ) + 8007a88: fba3 1302 umull r1, r3, r3, r2 + 8007a8c: 095b lsrs r3, r3, #5 + 8007a8e: 2164 movs r1, #100 @ 0x64 + 8007a90: fb01 f303 mul.w r3, r1, r3 + 8007a94: 1ad3 subs r3, r2, r3 + 8007a96: 00db lsls r3, r3, #3 + 8007a98: 3332 adds r3, #50 @ 0x32 + 8007a9a: 4a08 ldr r2, [pc, #32] @ (8007abc ) + 8007a9c: fba2 2303 umull r2, r3, r2, r3 + 8007aa0: 095b lsrs r3, r3, #5 + 8007aa2: f003 0207 and.w r2, r3, #7 + 8007aa6: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007aaa: 681b ldr r3, [r3, #0] + 8007aac: 4422 add r2, r4 + 8007aae: 609a str r2, [r3, #8] } else { huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); } } - 80079f8: e106 b.n 8007c08 - 80079fa: bf00 nop - 80079fc: 40011000 .word 0x40011000 - 8007a00: 40011400 .word 0x40011400 - 8007a04: 51eb851f .word 0x51eb851f + 8007ab0: e106 b.n 8007cc0 + 8007ab2: bf00 nop + 8007ab4: 40011000 .word 0x40011000 + 8007ab8: 40011400 .word 0x40011400 + 8007abc: 51eb851f .word 0x51eb851f huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate); - 8007a08: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 8007a0c: 2200 movs r2, #0 - 8007a0e: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 - 8007a12: f8c7 20a4 str.w r2, [r7, #164] @ 0xa4 - 8007a16: e9d7 8928 ldrd r8, r9, [r7, #160] @ 0xa0 - 8007a1a: 4642 mov r2, r8 - 8007a1c: 464b mov r3, r9 - 8007a1e: 1891 adds r1, r2, r2 - 8007a20: 6239 str r1, [r7, #32] - 8007a22: 415b adcs r3, r3 - 8007a24: 627b str r3, [r7, #36] @ 0x24 - 8007a26: e9d7 2308 ldrd r2, r3, [r7, #32] - 8007a2a: 4641 mov r1, r8 - 8007a2c: 1854 adds r4, r2, r1 - 8007a2e: 4649 mov r1, r9 - 8007a30: eb43 0501 adc.w r5, r3, r1 - 8007a34: f04f 0200 mov.w r2, #0 - 8007a38: f04f 0300 mov.w r3, #0 - 8007a3c: 00eb lsls r3, r5, #3 - 8007a3e: ea43 7354 orr.w r3, r3, r4, lsr #29 - 8007a42: 00e2 lsls r2, r4, #3 - 8007a44: 4614 mov r4, r2 - 8007a46: 461d mov r5, r3 - 8007a48: 4643 mov r3, r8 - 8007a4a: 18e3 adds r3, r4, r3 - 8007a4c: f8c7 3098 str.w r3, [r7, #152] @ 0x98 - 8007a50: 464b mov r3, r9 - 8007a52: eb45 0303 adc.w r3, r5, r3 - 8007a56: f8c7 309c str.w r3, [r7, #156] @ 0x9c - 8007a5a: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007a5e: 685b ldr r3, [r3, #4] - 8007a60: 2200 movs r2, #0 - 8007a62: f8c7 3090 str.w r3, [r7, #144] @ 0x90 - 8007a66: f8c7 2094 str.w r2, [r7, #148] @ 0x94 - 8007a6a: f04f 0200 mov.w r2, #0 - 8007a6e: f04f 0300 mov.w r3, #0 - 8007a72: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 - 8007a76: 4629 mov r1, r5 - 8007a78: 008b lsls r3, r1, #2 - 8007a7a: 4621 mov r1, r4 - 8007a7c: ea43 7391 orr.w r3, r3, r1, lsr #30 - 8007a80: 4621 mov r1, r4 - 8007a82: 008a lsls r2, r1, #2 - 8007a84: e9d7 0126 ldrd r0, r1, [r7, #152] @ 0x98 - 8007a88: f7f8 fbbc bl 8000204 <__aeabi_uldivmod> - 8007a8c: 4602 mov r2, r0 - 8007a8e: 460b mov r3, r1 - 8007a90: 4b60 ldr r3, [pc, #384] @ (8007c14 ) - 8007a92: fba3 2302 umull r2, r3, r3, r2 - 8007a96: 095b lsrs r3, r3, #5 - 8007a98: 011c lsls r4, r3, #4 - 8007a9a: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc - 8007a9e: 2200 movs r2, #0 - 8007aa0: f8c7 3088 str.w r3, [r7, #136] @ 0x88 - 8007aa4: f8c7 208c str.w r2, [r7, #140] @ 0x8c - 8007aa8: e9d7 8922 ldrd r8, r9, [r7, #136] @ 0x88 - 8007aac: 4642 mov r2, r8 - 8007aae: 464b mov r3, r9 - 8007ab0: 1891 adds r1, r2, r2 - 8007ab2: 61b9 str r1, [r7, #24] - 8007ab4: 415b adcs r3, r3 - 8007ab6: 61fb str r3, [r7, #28] - 8007ab8: e9d7 2306 ldrd r2, r3, [r7, #24] - 8007abc: 4641 mov r1, r8 - 8007abe: 1851 adds r1, r2, r1 - 8007ac0: 6139 str r1, [r7, #16] - 8007ac2: 4649 mov r1, r9 - 8007ac4: 414b adcs r3, r1 - 8007ac6: 617b str r3, [r7, #20] - 8007ac8: f04f 0200 mov.w r2, #0 - 8007acc: f04f 0300 mov.w r3, #0 - 8007ad0: e9d7 ab04 ldrd sl, fp, [r7, #16] - 8007ad4: 4659 mov r1, fp - 8007ad6: 00cb lsls r3, r1, #3 - 8007ad8: 4651 mov r1, sl - 8007ada: ea43 7351 orr.w r3, r3, r1, lsr #29 - 8007ade: 4651 mov r1, sl - 8007ae0: 00ca lsls r2, r1, #3 - 8007ae2: 4610 mov r0, r2 - 8007ae4: 4619 mov r1, r3 - 8007ae6: 4603 mov r3, r0 - 8007ae8: 4642 mov r2, r8 - 8007aea: 189b adds r3, r3, r2 - 8007aec: f8c7 3080 str.w r3, [r7, #128] @ 0x80 - 8007af0: 464b mov r3, r9 - 8007af2: 460a mov r2, r1 - 8007af4: eb42 0303 adc.w r3, r2, r3 - 8007af8: f8c7 3084 str.w r3, [r7, #132] @ 0x84 - 8007afc: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007b00: 685b ldr r3, [r3, #4] - 8007b02: 2200 movs r2, #0 - 8007b04: 67bb str r3, [r7, #120] @ 0x78 - 8007b06: 67fa str r2, [r7, #124] @ 0x7c - 8007b08: f04f 0200 mov.w r2, #0 - 8007b0c: f04f 0300 mov.w r3, #0 - 8007b10: e9d7 891e ldrd r8, r9, [r7, #120] @ 0x78 - 8007b14: 4649 mov r1, r9 - 8007b16: 008b lsls r3, r1, #2 - 8007b18: 4641 mov r1, r8 - 8007b1a: ea43 7391 orr.w r3, r3, r1, lsr #30 - 8007b1e: 4641 mov r1, r8 - 8007b20: 008a lsls r2, r1, #2 - 8007b22: e9d7 0120 ldrd r0, r1, [r7, #128] @ 0x80 - 8007b26: f7f8 fb6d bl 8000204 <__aeabi_uldivmod> - 8007b2a: 4602 mov r2, r0 - 8007b2c: 460b mov r3, r1 - 8007b2e: 4611 mov r1, r2 - 8007b30: 4b38 ldr r3, [pc, #224] @ (8007c14 ) - 8007b32: fba3 2301 umull r2, r3, r3, r1 - 8007b36: 095b lsrs r3, r3, #5 - 8007b38: 2264 movs r2, #100 @ 0x64 - 8007b3a: fb02 f303 mul.w r3, r2, r3 - 8007b3e: 1acb subs r3, r1, r3 - 8007b40: 011b lsls r3, r3, #4 - 8007b42: 3332 adds r3, #50 @ 0x32 - 8007b44: 4a33 ldr r2, [pc, #204] @ (8007c14 ) - 8007b46: fba2 2303 umull r2, r3, r2, r3 - 8007b4a: 095b lsrs r3, r3, #5 - 8007b4c: f003 03f0 and.w r3, r3, #240 @ 0xf0 - 8007b50: 441c add r4, r3 + 8007ac0: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8007ac4: 2200 movs r2, #0 + 8007ac6: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0 + 8007aca: f8c7 20a4 str.w r2, [r7, #164] @ 0xa4 + 8007ace: e9d7 8928 ldrd r8, r9, [r7, #160] @ 0xa0 + 8007ad2: 4642 mov r2, r8 + 8007ad4: 464b mov r3, r9 + 8007ad6: 1891 adds r1, r2, r2 + 8007ad8: 6239 str r1, [r7, #32] + 8007ada: 415b adcs r3, r3 + 8007adc: 627b str r3, [r7, #36] @ 0x24 + 8007ade: e9d7 2308 ldrd r2, r3, [r7, #32] + 8007ae2: 4641 mov r1, r8 + 8007ae4: 1854 adds r4, r2, r1 + 8007ae6: 4649 mov r1, r9 + 8007ae8: eb43 0501 adc.w r5, r3, r1 + 8007aec: f04f 0200 mov.w r2, #0 + 8007af0: f04f 0300 mov.w r3, #0 + 8007af4: 00eb lsls r3, r5, #3 + 8007af6: ea43 7354 orr.w r3, r3, r4, lsr #29 + 8007afa: 00e2 lsls r2, r4, #3 + 8007afc: 4614 mov r4, r2 + 8007afe: 461d mov r5, r3 + 8007b00: 4643 mov r3, r8 + 8007b02: 18e3 adds r3, r4, r3 + 8007b04: f8c7 3098 str.w r3, [r7, #152] @ 0x98 + 8007b08: 464b mov r3, r9 + 8007b0a: eb45 0303 adc.w r3, r5, r3 + 8007b0e: f8c7 309c str.w r3, [r7, #156] @ 0x9c + 8007b12: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007b16: 685b ldr r3, [r3, #4] + 8007b18: 2200 movs r2, #0 + 8007b1a: f8c7 3090 str.w r3, [r7, #144] @ 0x90 + 8007b1e: f8c7 2094 str.w r2, [r7, #148] @ 0x94 + 8007b22: f04f 0200 mov.w r2, #0 + 8007b26: f04f 0300 mov.w r3, #0 + 8007b2a: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90 + 8007b2e: 4629 mov r1, r5 + 8007b30: 008b lsls r3, r1, #2 + 8007b32: 4621 mov r1, r4 + 8007b34: ea43 7391 orr.w r3, r3, r1, lsr #30 + 8007b38: 4621 mov r1, r4 + 8007b3a: 008a lsls r2, r1, #2 + 8007b3c: e9d7 0126 ldrd r0, r1, [r7, #152] @ 0x98 + 8007b40: f7f8 fb60 bl 8000204 <__aeabi_uldivmod> + 8007b44: 4602 mov r2, r0 + 8007b46: 460b mov r3, r1 + 8007b48: 4b60 ldr r3, [pc, #384] @ (8007ccc ) + 8007b4a: fba3 2302 umull r2, r3, r3, r2 + 8007b4e: 095b lsrs r3, r3, #5 + 8007b50: 011c lsls r4, r3, #4 8007b52: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc 8007b56: 2200 movs r2, #0 - 8007b58: 673b str r3, [r7, #112] @ 0x70 - 8007b5a: 677a str r2, [r7, #116] @ 0x74 - 8007b5c: e9d7 891c ldrd r8, r9, [r7, #112] @ 0x70 - 8007b60: 4642 mov r2, r8 - 8007b62: 464b mov r3, r9 - 8007b64: 1891 adds r1, r2, r2 - 8007b66: 60b9 str r1, [r7, #8] - 8007b68: 415b adcs r3, r3 - 8007b6a: 60fb str r3, [r7, #12] - 8007b6c: e9d7 2302 ldrd r2, r3, [r7, #8] - 8007b70: 4641 mov r1, r8 - 8007b72: 1851 adds r1, r2, r1 - 8007b74: 6039 str r1, [r7, #0] - 8007b76: 4649 mov r1, r9 - 8007b78: 414b adcs r3, r1 - 8007b7a: 607b str r3, [r7, #4] - 8007b7c: f04f 0200 mov.w r2, #0 - 8007b80: f04f 0300 mov.w r3, #0 - 8007b84: e9d7 ab00 ldrd sl, fp, [r7] - 8007b88: 4659 mov r1, fp - 8007b8a: 00cb lsls r3, r1, #3 - 8007b8c: 4651 mov r1, sl - 8007b8e: ea43 7351 orr.w r3, r3, r1, lsr #29 - 8007b92: 4651 mov r1, sl - 8007b94: 00ca lsls r2, r1, #3 - 8007b96: 4610 mov r0, r2 - 8007b98: 4619 mov r1, r3 - 8007b9a: 4603 mov r3, r0 - 8007b9c: 4642 mov r2, r8 - 8007b9e: 189b adds r3, r3, r2 - 8007ba0: 66bb str r3, [r7, #104] @ 0x68 - 8007ba2: 464b mov r3, r9 - 8007ba4: 460a mov r2, r1 - 8007ba6: eb42 0303 adc.w r3, r2, r3 - 8007baa: 66fb str r3, [r7, #108] @ 0x6c - 8007bac: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007bb0: 685b ldr r3, [r3, #4] - 8007bb2: 2200 movs r2, #0 - 8007bb4: 663b str r3, [r7, #96] @ 0x60 - 8007bb6: 667a str r2, [r7, #100] @ 0x64 - 8007bb8: f04f 0200 mov.w r2, #0 - 8007bbc: f04f 0300 mov.w r3, #0 - 8007bc0: e9d7 8918 ldrd r8, r9, [r7, #96] @ 0x60 - 8007bc4: 4649 mov r1, r9 - 8007bc6: 008b lsls r3, r1, #2 - 8007bc8: 4641 mov r1, r8 - 8007bca: ea43 7391 orr.w r3, r3, r1, lsr #30 - 8007bce: 4641 mov r1, r8 - 8007bd0: 008a lsls r2, r1, #2 - 8007bd2: e9d7 011a ldrd r0, r1, [r7, #104] @ 0x68 - 8007bd6: f7f8 fb15 bl 8000204 <__aeabi_uldivmod> - 8007bda: 4602 mov r2, r0 - 8007bdc: 460b mov r3, r1 - 8007bde: 4b0d ldr r3, [pc, #52] @ (8007c14 ) - 8007be0: fba3 1302 umull r1, r3, r3, r2 - 8007be4: 095b lsrs r3, r3, #5 - 8007be6: 2164 movs r1, #100 @ 0x64 - 8007be8: fb01 f303 mul.w r3, r1, r3 - 8007bec: 1ad3 subs r3, r2, r3 - 8007bee: 011b lsls r3, r3, #4 - 8007bf0: 3332 adds r3, #50 @ 0x32 - 8007bf2: 4a08 ldr r2, [pc, #32] @ (8007c14 ) - 8007bf4: fba2 2303 umull r2, r3, r2, r3 - 8007bf8: 095b lsrs r3, r3, #5 - 8007bfa: f003 020f and.w r2, r3, #15 - 8007bfe: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 - 8007c02: 681b ldr r3, [r3, #0] - 8007c04: 4422 add r2, r4 - 8007c06: 609a str r2, [r3, #8] + 8007b58: f8c7 3088 str.w r3, [r7, #136] @ 0x88 + 8007b5c: f8c7 208c str.w r2, [r7, #140] @ 0x8c + 8007b60: e9d7 8922 ldrd r8, r9, [r7, #136] @ 0x88 + 8007b64: 4642 mov r2, r8 + 8007b66: 464b mov r3, r9 + 8007b68: 1891 adds r1, r2, r2 + 8007b6a: 61b9 str r1, [r7, #24] + 8007b6c: 415b adcs r3, r3 + 8007b6e: 61fb str r3, [r7, #28] + 8007b70: e9d7 2306 ldrd r2, r3, [r7, #24] + 8007b74: 4641 mov r1, r8 + 8007b76: 1851 adds r1, r2, r1 + 8007b78: 6139 str r1, [r7, #16] + 8007b7a: 4649 mov r1, r9 + 8007b7c: 414b adcs r3, r1 + 8007b7e: 617b str r3, [r7, #20] + 8007b80: f04f 0200 mov.w r2, #0 + 8007b84: f04f 0300 mov.w r3, #0 + 8007b88: e9d7 ab04 ldrd sl, fp, [r7, #16] + 8007b8c: 4659 mov r1, fp + 8007b8e: 00cb lsls r3, r1, #3 + 8007b90: 4651 mov r1, sl + 8007b92: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8007b96: 4651 mov r1, sl + 8007b98: 00ca lsls r2, r1, #3 + 8007b9a: 4610 mov r0, r2 + 8007b9c: 4619 mov r1, r3 + 8007b9e: 4603 mov r3, r0 + 8007ba0: 4642 mov r2, r8 + 8007ba2: 189b adds r3, r3, r2 + 8007ba4: f8c7 3080 str.w r3, [r7, #128] @ 0x80 + 8007ba8: 464b mov r3, r9 + 8007baa: 460a mov r2, r1 + 8007bac: eb42 0303 adc.w r3, r2, r3 + 8007bb0: f8c7 3084 str.w r3, [r7, #132] @ 0x84 + 8007bb4: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007bb8: 685b ldr r3, [r3, #4] + 8007bba: 2200 movs r2, #0 + 8007bbc: 67bb str r3, [r7, #120] @ 0x78 + 8007bbe: 67fa str r2, [r7, #124] @ 0x7c + 8007bc0: f04f 0200 mov.w r2, #0 + 8007bc4: f04f 0300 mov.w r3, #0 + 8007bc8: e9d7 891e ldrd r8, r9, [r7, #120] @ 0x78 + 8007bcc: 4649 mov r1, r9 + 8007bce: 008b lsls r3, r1, #2 + 8007bd0: 4641 mov r1, r8 + 8007bd2: ea43 7391 orr.w r3, r3, r1, lsr #30 + 8007bd6: 4641 mov r1, r8 + 8007bd8: 008a lsls r2, r1, #2 + 8007bda: e9d7 0120 ldrd r0, r1, [r7, #128] @ 0x80 + 8007bde: f7f8 fb11 bl 8000204 <__aeabi_uldivmod> + 8007be2: 4602 mov r2, r0 + 8007be4: 460b mov r3, r1 + 8007be6: 4611 mov r1, r2 + 8007be8: 4b38 ldr r3, [pc, #224] @ (8007ccc ) + 8007bea: fba3 2301 umull r2, r3, r3, r1 + 8007bee: 095b lsrs r3, r3, #5 + 8007bf0: 2264 movs r2, #100 @ 0x64 + 8007bf2: fb02 f303 mul.w r3, r2, r3 + 8007bf6: 1acb subs r3, r1, r3 + 8007bf8: 011b lsls r3, r3, #4 + 8007bfa: 3332 adds r3, #50 @ 0x32 + 8007bfc: 4a33 ldr r2, [pc, #204] @ (8007ccc ) + 8007bfe: fba2 2303 umull r2, r3, r2, r3 + 8007c02: 095b lsrs r3, r3, #5 + 8007c04: f003 03f0 and.w r3, r3, #240 @ 0xf0 + 8007c08: 441c add r4, r3 + 8007c0a: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc + 8007c0e: 2200 movs r2, #0 + 8007c10: 673b str r3, [r7, #112] @ 0x70 + 8007c12: 677a str r2, [r7, #116] @ 0x74 + 8007c14: e9d7 891c ldrd r8, r9, [r7, #112] @ 0x70 + 8007c18: 4642 mov r2, r8 + 8007c1a: 464b mov r3, r9 + 8007c1c: 1891 adds r1, r2, r2 + 8007c1e: 60b9 str r1, [r7, #8] + 8007c20: 415b adcs r3, r3 + 8007c22: 60fb str r3, [r7, #12] + 8007c24: e9d7 2302 ldrd r2, r3, [r7, #8] + 8007c28: 4641 mov r1, r8 + 8007c2a: 1851 adds r1, r2, r1 + 8007c2c: 6039 str r1, [r7, #0] + 8007c2e: 4649 mov r1, r9 + 8007c30: 414b adcs r3, r1 + 8007c32: 607b str r3, [r7, #4] + 8007c34: f04f 0200 mov.w r2, #0 + 8007c38: f04f 0300 mov.w r3, #0 + 8007c3c: e9d7 ab00 ldrd sl, fp, [r7] + 8007c40: 4659 mov r1, fp + 8007c42: 00cb lsls r3, r1, #3 + 8007c44: 4651 mov r1, sl + 8007c46: ea43 7351 orr.w r3, r3, r1, lsr #29 + 8007c4a: 4651 mov r1, sl + 8007c4c: 00ca lsls r2, r1, #3 + 8007c4e: 4610 mov r0, r2 + 8007c50: 4619 mov r1, r3 + 8007c52: 4603 mov r3, r0 + 8007c54: 4642 mov r2, r8 + 8007c56: 189b adds r3, r3, r2 + 8007c58: 66bb str r3, [r7, #104] @ 0x68 + 8007c5a: 464b mov r3, r9 + 8007c5c: 460a mov r2, r1 + 8007c5e: eb42 0303 adc.w r3, r2, r3 + 8007c62: 66fb str r3, [r7, #108] @ 0x6c + 8007c64: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007c68: 685b ldr r3, [r3, #4] + 8007c6a: 2200 movs r2, #0 + 8007c6c: 663b str r3, [r7, #96] @ 0x60 + 8007c6e: 667a str r2, [r7, #100] @ 0x64 + 8007c70: f04f 0200 mov.w r2, #0 + 8007c74: f04f 0300 mov.w r3, #0 + 8007c78: e9d7 8918 ldrd r8, r9, [r7, #96] @ 0x60 + 8007c7c: 4649 mov r1, r9 + 8007c7e: 008b lsls r3, r1, #2 + 8007c80: 4641 mov r1, r8 + 8007c82: ea43 7391 orr.w r3, r3, r1, lsr #30 + 8007c86: 4641 mov r1, r8 + 8007c88: 008a lsls r2, r1, #2 + 8007c8a: e9d7 011a ldrd r0, r1, [r7, #104] @ 0x68 + 8007c8e: f7f8 fab9 bl 8000204 <__aeabi_uldivmod> + 8007c92: 4602 mov r2, r0 + 8007c94: 460b mov r3, r1 + 8007c96: 4b0d ldr r3, [pc, #52] @ (8007ccc ) + 8007c98: fba3 1302 umull r1, r3, r3, r2 + 8007c9c: 095b lsrs r3, r3, #5 + 8007c9e: 2164 movs r1, #100 @ 0x64 + 8007ca0: fb01 f303 mul.w r3, r1, r3 + 8007ca4: 1ad3 subs r3, r2, r3 + 8007ca6: 011b lsls r3, r3, #4 + 8007ca8: 3332 adds r3, #50 @ 0x32 + 8007caa: 4a08 ldr r2, [pc, #32] @ (8007ccc ) + 8007cac: fba2 2303 umull r2, r3, r2, r3 + 8007cb0: 095b lsrs r3, r3, #5 + 8007cb2: f003 020f and.w r2, r3, #15 + 8007cb6: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4 + 8007cba: 681b ldr r3, [r3, #0] + 8007cbc: 4422 add r2, r4 + 8007cbe: 609a str r2, [r3, #8] } - 8007c08: bf00 nop - 8007c0a: f507 7780 add.w r7, r7, #256 @ 0x100 - 8007c0e: 46bd mov sp, r7 - 8007c10: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} - 8007c14: 51eb851f .word 0x51eb851f + 8007cc0: bf00 nop + 8007cc2: f507 7780 add.w r7, r7, #256 @ 0x100 + 8007cc6: 46bd mov sp, r7 + 8007cc8: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc} + 8007ccc: 51eb851f .word 0x51eb851f -08007c18 : +08007cd0 : * @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) { - 8007c18: b084 sub sp, #16 - 8007c1a: b580 push {r7, lr} - 8007c1c: b084 sub sp, #16 - 8007c1e: af00 add r7, sp, #0 - 8007c20: 6078 str r0, [r7, #4] - 8007c22: f107 001c add.w r0, r7, #28 - 8007c26: e880 000e stmia.w r0, {r1, r2, r3} + 8007cd0: b084 sub sp, #16 + 8007cd2: b580 push {r7, lr} + 8007cd4: b084 sub sp, #16 + 8007cd6: af00 add r7, sp, #0 + 8007cd8: 6078 str r0, [r7, #4] + 8007cda: f107 001c add.w r0, r7, #28 + 8007cde: e880 000e stmia.w r0, {r1, r2, r3} HAL_StatusTypeDef ret; if (cfg.phy_itface == USB_OTG_ULPI_PHY) - 8007c2a: f897 3021 ldrb.w r3, [r7, #33] @ 0x21 - 8007c2e: 2b01 cmp r3, #1 - 8007c30: d123 bne.n 8007c7a + 8007ce2: f897 3021 ldrb.w r3, [r7, #33] @ 0x21 + 8007ce6: 2b01 cmp r3, #1 + 8007ce8: d123 bne.n 8007d32 { USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); - 8007c32: 687b ldr r3, [r7, #4] - 8007c34: 6b9b ldr r3, [r3, #56] @ 0x38 - 8007c36: f423 3280 bic.w r2, r3, #65536 @ 0x10000 - 8007c3a: 687b ldr r3, [r7, #4] - 8007c3c: 639a str r2, [r3, #56] @ 0x38 + 8007cea: 687b ldr r3, [r7, #4] + 8007cec: 6b9b ldr r3, [r3, #56] @ 0x38 + 8007cee: f423 3280 bic.w r2, r3, #65536 @ 0x10000 + 8007cf2: 687b ldr r3, [r7, #4] + 8007cf4: 639a str r2, [r3, #56] @ 0x38 /* Init The ULPI Interface */ USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_TSDPS | USB_OTG_GUSBCFG_ULPIFSLS | USB_OTG_GUSBCFG_PHYSEL); - 8007c3e: 687b ldr r3, [r7, #4] - 8007c40: 68db ldr r3, [r3, #12] - 8007c42: f423 0384 bic.w r3, r3, #4325376 @ 0x420000 - 8007c46: f023 0340 bic.w r3, r3, #64 @ 0x40 - 8007c4a: 687a ldr r2, [r7, #4] - 8007c4c: 60d3 str r3, [r2, #12] + 8007cf6: 687b ldr r3, [r7, #4] + 8007cf8: 68db ldr r3, [r3, #12] + 8007cfa: f423 0384 bic.w r3, r3, #4325376 @ 0x420000 + 8007cfe: f023 0340 bic.w r3, r3, #64 @ 0x40 + 8007d02: 687a ldr r2, [r7, #4] + 8007d04: 60d3 str r3, [r2, #12] /* Select vbus source */ USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_ULPIEVBUSD | USB_OTG_GUSBCFG_ULPIEVBUSI); - 8007c4e: 687b ldr r3, [r7, #4] - 8007c50: 68db ldr r3, [r3, #12] - 8007c52: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 - 8007c56: 687b ldr r3, [r7, #4] - 8007c58: 60da str r2, [r3, #12] + 8007d06: 687b ldr r3, [r7, #4] + 8007d08: 68db ldr r3, [r3, #12] + 8007d0a: f423 1240 bic.w r2, r3, #3145728 @ 0x300000 + 8007d0e: 687b ldr r3, [r7, #4] + 8007d10: 60da str r2, [r3, #12] if (cfg.use_external_vbus == 1U) - 8007c5a: f897 3028 ldrb.w r3, [r7, #40] @ 0x28 - 8007c5e: 2b01 cmp r3, #1 - 8007c60: d105 bne.n 8007c6e + 8007d12: f897 3028 ldrb.w r3, [r7, #40] @ 0x28 + 8007d16: 2b01 cmp r3, #1 + 8007d18: d105 bne.n 8007d26 { USBx->GUSBCFG |= USB_OTG_GUSBCFG_ULPIEVBUSD; - 8007c62: 687b ldr r3, [r7, #4] - 8007c64: 68db ldr r3, [r3, #12] - 8007c66: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 - 8007c6a: 687b ldr r3, [r7, #4] - 8007c6c: 60da str r2, [r3, #12] + 8007d1a: 687b ldr r3, [r7, #4] + 8007d1c: 68db ldr r3, [r3, #12] + 8007d1e: f443 1280 orr.w r2, r3, #1048576 @ 0x100000 + 8007d22: 687b ldr r3, [r7, #4] + 8007d24: 60da str r2, [r3, #12] } /* Reset after a PHY select */ ret = USB_CoreReset(USBx); - 8007c6e: 6878 ldr r0, [r7, #4] - 8007c70: f001 fae2 bl 8009238 - 8007c74: 4603 mov r3, r0 - 8007c76: 73fb strb r3, [r7, #15] - 8007c78: e01b b.n 8007cb2 + 8007d26: 6878 ldr r0, [r7, #4] + 8007d28: f001 fae2 bl 80092f0 + 8007d2c: 4603 mov r3, r0 + 8007d2e: 73fb strb r3, [r7, #15] + 8007d30: e01b b.n 8007d6a } else /* FS interface (embedded Phy) */ { /* Select FS Embedded PHY */ USBx->GUSBCFG |= USB_OTG_GUSBCFG_PHYSEL; - 8007c7a: 687b ldr r3, [r7, #4] - 8007c7c: 68db ldr r3, [r3, #12] - 8007c7e: f043 0240 orr.w r2, r3, #64 @ 0x40 - 8007c82: 687b ldr r3, [r7, #4] - 8007c84: 60da str r2, [r3, #12] + 8007d32: 687b ldr r3, [r7, #4] + 8007d34: 68db ldr r3, [r3, #12] + 8007d36: f043 0240 orr.w r2, r3, #64 @ 0x40 + 8007d3a: 687b ldr r3, [r7, #4] + 8007d3c: 60da str r2, [r3, #12] /* Reset after a PHY select */ ret = USB_CoreReset(USBx); - 8007c86: 6878 ldr r0, [r7, #4] - 8007c88: f001 fad6 bl 8009238 - 8007c8c: 4603 mov r3, r0 - 8007c8e: 73fb strb r3, [r7, #15] + 8007d3e: 6878 ldr r0, [r7, #4] + 8007d40: f001 fad6 bl 80092f0 + 8007d44: 4603 mov r3, r0 + 8007d46: 73fb strb r3, [r7, #15] if (cfg.battery_charging_enable == 0U) - 8007c90: f897 3025 ldrb.w r3, [r7, #37] @ 0x25 - 8007c94: 2b00 cmp r3, #0 - 8007c96: d106 bne.n 8007ca6 + 8007d48: f897 3025 ldrb.w r3, [r7, #37] @ 0x25 + 8007d4c: 2b00 cmp r3, #0 + 8007d4e: d106 bne.n 8007d5e { /* Activate the USB Transceiver */ USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN; - 8007c98: 687b ldr r3, [r7, #4] - 8007c9a: 6b9b ldr r3, [r3, #56] @ 0x38 - 8007c9c: f443 3280 orr.w r2, r3, #65536 @ 0x10000 - 8007ca0: 687b ldr r3, [r7, #4] - 8007ca2: 639a str r2, [r3, #56] @ 0x38 - 8007ca4: e005 b.n 8007cb2 + 8007d50: 687b ldr r3, [r7, #4] + 8007d52: 6b9b ldr r3, [r3, #56] @ 0x38 + 8007d54: f443 3280 orr.w r2, r3, #65536 @ 0x10000 + 8007d58: 687b ldr r3, [r7, #4] + 8007d5a: 639a str r2, [r3, #56] @ 0x38 + 8007d5c: e005 b.n 8007d6a } else { /* Deactivate the USB Transceiver */ USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); - 8007ca6: 687b ldr r3, [r7, #4] - 8007ca8: 6b9b ldr r3, [r3, #56] @ 0x38 - 8007caa: f423 3280 bic.w r2, r3, #65536 @ 0x10000 - 8007cae: 687b ldr r3, [r7, #4] - 8007cb0: 639a str r2, [r3, #56] @ 0x38 + 8007d5e: 687b ldr r3, [r7, #4] + 8007d60: 6b9b ldr r3, [r3, #56] @ 0x38 + 8007d62: f423 3280 bic.w r2, r3, #65536 @ 0x10000 + 8007d66: 687b ldr r3, [r7, #4] + 8007d68: 639a str r2, [r3, #56] @ 0x38 } } if (cfg.dma_enable == 1U) - 8007cb2: 7fbb ldrb r3, [r7, #30] - 8007cb4: 2b01 cmp r3, #1 - 8007cb6: d10b bne.n 8007cd0 + 8007d6a: 7fbb ldrb r3, [r7, #30] + 8007d6c: 2b01 cmp r3, #1 + 8007d6e: d10b bne.n 8007d88 { USBx->GAHBCFG |= USB_OTG_GAHBCFG_HBSTLEN_2; - 8007cb8: 687b ldr r3, [r7, #4] - 8007cba: 689b ldr r3, [r3, #8] - 8007cbc: f043 0206 orr.w r2, r3, #6 - 8007cc0: 687b ldr r3, [r7, #4] - 8007cc2: 609a str r2, [r3, #8] + 8007d70: 687b ldr r3, [r7, #4] + 8007d72: 689b ldr r3, [r3, #8] + 8007d74: f043 0206 orr.w r2, r3, #6 + 8007d78: 687b ldr r3, [r7, #4] + 8007d7a: 609a str r2, [r3, #8] USBx->GAHBCFG |= USB_OTG_GAHBCFG_DMAEN; - 8007cc4: 687b ldr r3, [r7, #4] - 8007cc6: 689b ldr r3, [r3, #8] - 8007cc8: f043 0220 orr.w r2, r3, #32 - 8007ccc: 687b ldr r3, [r7, #4] - 8007cce: 609a str r2, [r3, #8] + 8007d7c: 687b ldr r3, [r7, #4] + 8007d7e: 689b ldr r3, [r3, #8] + 8007d80: f043 0220 orr.w r2, r3, #32 + 8007d84: 687b ldr r3, [r7, #4] + 8007d86: 609a str r2, [r3, #8] } return ret; - 8007cd0: 7bfb ldrb r3, [r7, #15] + 8007d88: 7bfb ldrb r3, [r7, #15] } - 8007cd2: 4618 mov r0, r3 - 8007cd4: 3710 adds r7, #16 - 8007cd6: 46bd mov sp, r7 - 8007cd8: e8bd 4080 ldmia.w sp!, {r7, lr} - 8007cdc: b004 add sp, #16 - 8007cde: 4770 bx lr + 8007d8a: 4618 mov r0, r3 + 8007d8c: 3710 adds r7, #16 + 8007d8e: 46bd mov sp, r7 + 8007d90: e8bd 4080 ldmia.w sp!, {r7, lr} + 8007d94: b004 add sp, #16 + 8007d96: 4770 bx lr -08007ce0 : +08007d98 : * @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) { - 8007ce0: b480 push {r7} - 8007ce2: b087 sub sp, #28 - 8007ce4: af00 add r7, sp, #0 - 8007ce6: 60f8 str r0, [r7, #12] - 8007ce8: 60b9 str r1, [r7, #8] - 8007cea: 4613 mov r3, r2 - 8007cec: 71fb strb r3, [r7, #7] + 8007d98: b480 push {r7} + 8007d9a: b087 sub sp, #28 + 8007d9c: af00 add r7, sp, #0 + 8007d9e: 60f8 str r0, [r7, #12] + 8007da0: 60b9 str r1, [r7, #8] + 8007da2: 4613 mov r3, r2 + 8007da4: 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) - 8007cee: 79fb ldrb r3, [r7, #7] - 8007cf0: 2b02 cmp r3, #2 - 8007cf2: d165 bne.n 8007dc0 + 8007da6: 79fb ldrb r3, [r7, #7] + 8007da8: 2b02 cmp r3, #2 + 8007daa: d165 bne.n 8007e78 { if ((hclk >= 14200000U) && (hclk < 15000000U)) - 8007cf4: 68bb ldr r3, [r7, #8] - 8007cf6: 4a41 ldr r2, [pc, #260] @ (8007dfc ) - 8007cf8: 4293 cmp r3, r2 - 8007cfa: d906 bls.n 8007d0a - 8007cfc: 68bb ldr r3, [r7, #8] - 8007cfe: 4a40 ldr r2, [pc, #256] @ (8007e00 ) - 8007d00: 4293 cmp r3, r2 - 8007d02: d202 bcs.n 8007d0a + 8007dac: 68bb ldr r3, [r7, #8] + 8007dae: 4a41 ldr r2, [pc, #260] @ (8007eb4 ) + 8007db0: 4293 cmp r3, r2 + 8007db2: d906 bls.n 8007dc2 + 8007db4: 68bb ldr r3, [r7, #8] + 8007db6: 4a40 ldr r2, [pc, #256] @ (8007eb8 ) + 8007db8: 4293 cmp r3, r2 + 8007dba: d202 bcs.n 8007dc2 { /* hclk Clock Range between 14.2-15 MHz */ UsbTrd = 0xFU; - 8007d04: 230f movs r3, #15 - 8007d06: 617b str r3, [r7, #20] - 8007d08: e062 b.n 8007dd0 + 8007dbc: 230f movs r3, #15 + 8007dbe: 617b str r3, [r7, #20] + 8007dc0: e062 b.n 8007e88 } else if ((hclk >= 15000000U) && (hclk < 16000000U)) - 8007d0a: 68bb ldr r3, [r7, #8] - 8007d0c: 4a3c ldr r2, [pc, #240] @ (8007e00 ) - 8007d0e: 4293 cmp r3, r2 - 8007d10: d306 bcc.n 8007d20 - 8007d12: 68bb ldr r3, [r7, #8] - 8007d14: 4a3b ldr r2, [pc, #236] @ (8007e04 ) - 8007d16: 4293 cmp r3, r2 - 8007d18: d202 bcs.n 8007d20 + 8007dc2: 68bb ldr r3, [r7, #8] + 8007dc4: 4a3c ldr r2, [pc, #240] @ (8007eb8 ) + 8007dc6: 4293 cmp r3, r2 + 8007dc8: d306 bcc.n 8007dd8 + 8007dca: 68bb ldr r3, [r7, #8] + 8007dcc: 4a3b ldr r2, [pc, #236] @ (8007ebc ) + 8007dce: 4293 cmp r3, r2 + 8007dd0: d202 bcs.n 8007dd8 { /* hclk Clock Range between 15-16 MHz */ UsbTrd = 0xEU; - 8007d1a: 230e movs r3, #14 - 8007d1c: 617b str r3, [r7, #20] - 8007d1e: e057 b.n 8007dd0 + 8007dd2: 230e movs r3, #14 + 8007dd4: 617b str r3, [r7, #20] + 8007dd6: e057 b.n 8007e88 } else if ((hclk >= 16000000U) && (hclk < 17200000U)) - 8007d20: 68bb ldr r3, [r7, #8] - 8007d22: 4a38 ldr r2, [pc, #224] @ (8007e04 ) - 8007d24: 4293 cmp r3, r2 - 8007d26: d306 bcc.n 8007d36 - 8007d28: 68bb ldr r3, [r7, #8] - 8007d2a: 4a37 ldr r2, [pc, #220] @ (8007e08 ) - 8007d2c: 4293 cmp r3, r2 - 8007d2e: d202 bcs.n 8007d36 + 8007dd8: 68bb ldr r3, [r7, #8] + 8007dda: 4a38 ldr r2, [pc, #224] @ (8007ebc ) + 8007ddc: 4293 cmp r3, r2 + 8007dde: d306 bcc.n 8007dee + 8007de0: 68bb ldr r3, [r7, #8] + 8007de2: 4a37 ldr r2, [pc, #220] @ (8007ec0 ) + 8007de4: 4293 cmp r3, r2 + 8007de6: d202 bcs.n 8007dee { /* hclk Clock Range between 16-17.2 MHz */ UsbTrd = 0xDU; - 8007d30: 230d movs r3, #13 - 8007d32: 617b str r3, [r7, #20] - 8007d34: e04c b.n 8007dd0 + 8007de8: 230d movs r3, #13 + 8007dea: 617b str r3, [r7, #20] + 8007dec: e04c b.n 8007e88 } else if ((hclk >= 17200000U) && (hclk < 18500000U)) - 8007d36: 68bb ldr r3, [r7, #8] - 8007d38: 4a33 ldr r2, [pc, #204] @ (8007e08 ) - 8007d3a: 4293 cmp r3, r2 - 8007d3c: d306 bcc.n 8007d4c - 8007d3e: 68bb ldr r3, [r7, #8] - 8007d40: 4a32 ldr r2, [pc, #200] @ (8007e0c ) - 8007d42: 4293 cmp r3, r2 - 8007d44: d802 bhi.n 8007d4c + 8007dee: 68bb ldr r3, [r7, #8] + 8007df0: 4a33 ldr r2, [pc, #204] @ (8007ec0 ) + 8007df2: 4293 cmp r3, r2 + 8007df4: d306 bcc.n 8007e04 + 8007df6: 68bb ldr r3, [r7, #8] + 8007df8: 4a32 ldr r2, [pc, #200] @ (8007ec4 ) + 8007dfa: 4293 cmp r3, r2 + 8007dfc: d802 bhi.n 8007e04 { /* hclk Clock Range between 17.2-18.5 MHz */ UsbTrd = 0xCU; - 8007d46: 230c movs r3, #12 - 8007d48: 617b str r3, [r7, #20] - 8007d4a: e041 b.n 8007dd0 + 8007dfe: 230c movs r3, #12 + 8007e00: 617b str r3, [r7, #20] + 8007e02: e041 b.n 8007e88 } else if ((hclk >= 18500000U) && (hclk < 20000000U)) - 8007d4c: 68bb ldr r3, [r7, #8] - 8007d4e: 4a2f ldr r2, [pc, #188] @ (8007e0c ) - 8007d50: 4293 cmp r3, r2 - 8007d52: d906 bls.n 8007d62 - 8007d54: 68bb ldr r3, [r7, #8] - 8007d56: 4a2e ldr r2, [pc, #184] @ (8007e10 ) - 8007d58: 4293 cmp r3, r2 - 8007d5a: d802 bhi.n 8007d62 + 8007e04: 68bb ldr r3, [r7, #8] + 8007e06: 4a2f ldr r2, [pc, #188] @ (8007ec4 ) + 8007e08: 4293 cmp r3, r2 + 8007e0a: d906 bls.n 8007e1a + 8007e0c: 68bb ldr r3, [r7, #8] + 8007e0e: 4a2e ldr r2, [pc, #184] @ (8007ec8 ) + 8007e10: 4293 cmp r3, r2 + 8007e12: d802 bhi.n 8007e1a { /* hclk Clock Range between 18.5-20 MHz */ UsbTrd = 0xBU; - 8007d5c: 230b movs r3, #11 - 8007d5e: 617b str r3, [r7, #20] - 8007d60: e036 b.n 8007dd0 + 8007e14: 230b movs r3, #11 + 8007e16: 617b str r3, [r7, #20] + 8007e18: e036 b.n 8007e88 } else if ((hclk >= 20000000U) && (hclk < 21800000U)) - 8007d62: 68bb ldr r3, [r7, #8] - 8007d64: 4a2a ldr r2, [pc, #168] @ (8007e10 ) - 8007d66: 4293 cmp r3, r2 - 8007d68: d906 bls.n 8007d78 - 8007d6a: 68bb ldr r3, [r7, #8] - 8007d6c: 4a29 ldr r2, [pc, #164] @ (8007e14 ) - 8007d6e: 4293 cmp r3, r2 - 8007d70: d802 bhi.n 8007d78 + 8007e1a: 68bb ldr r3, [r7, #8] + 8007e1c: 4a2a ldr r2, [pc, #168] @ (8007ec8 ) + 8007e1e: 4293 cmp r3, r2 + 8007e20: d906 bls.n 8007e30 + 8007e22: 68bb ldr r3, [r7, #8] + 8007e24: 4a29 ldr r2, [pc, #164] @ (8007ecc ) + 8007e26: 4293 cmp r3, r2 + 8007e28: d802 bhi.n 8007e30 { /* hclk Clock Range between 20-21.8 MHz */ UsbTrd = 0xAU; - 8007d72: 230a movs r3, #10 - 8007d74: 617b str r3, [r7, #20] - 8007d76: e02b b.n 8007dd0 + 8007e2a: 230a movs r3, #10 + 8007e2c: 617b str r3, [r7, #20] + 8007e2e: e02b b.n 8007e88 } else if ((hclk >= 21800000U) && (hclk < 24000000U)) - 8007d78: 68bb ldr r3, [r7, #8] - 8007d7a: 4a26 ldr r2, [pc, #152] @ (8007e14 ) - 8007d7c: 4293 cmp r3, r2 - 8007d7e: d906 bls.n 8007d8e - 8007d80: 68bb ldr r3, [r7, #8] - 8007d82: 4a25 ldr r2, [pc, #148] @ (8007e18 ) - 8007d84: 4293 cmp r3, r2 - 8007d86: d202 bcs.n 8007d8e + 8007e30: 68bb ldr r3, [r7, #8] + 8007e32: 4a26 ldr r2, [pc, #152] @ (8007ecc ) + 8007e34: 4293 cmp r3, r2 + 8007e36: d906 bls.n 8007e46 + 8007e38: 68bb ldr r3, [r7, #8] + 8007e3a: 4a25 ldr r2, [pc, #148] @ (8007ed0 ) + 8007e3c: 4293 cmp r3, r2 + 8007e3e: d202 bcs.n 8007e46 { /* hclk Clock Range between 21.8-24 MHz */ UsbTrd = 0x9U; - 8007d88: 2309 movs r3, #9 - 8007d8a: 617b str r3, [r7, #20] - 8007d8c: e020 b.n 8007dd0 + 8007e40: 2309 movs r3, #9 + 8007e42: 617b str r3, [r7, #20] + 8007e44: e020 b.n 8007e88 } else if ((hclk >= 24000000U) && (hclk < 27700000U)) - 8007d8e: 68bb ldr r3, [r7, #8] - 8007d90: 4a21 ldr r2, [pc, #132] @ (8007e18 ) - 8007d92: 4293 cmp r3, r2 - 8007d94: d306 bcc.n 8007da4 - 8007d96: 68bb ldr r3, [r7, #8] - 8007d98: 4a20 ldr r2, [pc, #128] @ (8007e1c ) - 8007d9a: 4293 cmp r3, r2 - 8007d9c: d802 bhi.n 8007da4 + 8007e46: 68bb ldr r3, [r7, #8] + 8007e48: 4a21 ldr r2, [pc, #132] @ (8007ed0 ) + 8007e4a: 4293 cmp r3, r2 + 8007e4c: d306 bcc.n 8007e5c + 8007e4e: 68bb ldr r3, [r7, #8] + 8007e50: 4a20 ldr r2, [pc, #128] @ (8007ed4 ) + 8007e52: 4293 cmp r3, r2 + 8007e54: d802 bhi.n 8007e5c { /* hclk Clock Range between 24-27.7 MHz */ UsbTrd = 0x8U; - 8007d9e: 2308 movs r3, #8 - 8007da0: 617b str r3, [r7, #20] - 8007da2: e015 b.n 8007dd0 + 8007e56: 2308 movs r3, #8 + 8007e58: 617b str r3, [r7, #20] + 8007e5a: e015 b.n 8007e88 } else if ((hclk >= 27700000U) && (hclk < 32000000U)) - 8007da4: 68bb ldr r3, [r7, #8] - 8007da6: 4a1d ldr r2, [pc, #116] @ (8007e1c ) - 8007da8: 4293 cmp r3, r2 - 8007daa: d906 bls.n 8007dba - 8007dac: 68bb ldr r3, [r7, #8] - 8007dae: 4a1c ldr r2, [pc, #112] @ (8007e20 ) - 8007db0: 4293 cmp r3, r2 - 8007db2: d202 bcs.n 8007dba + 8007e5c: 68bb ldr r3, [r7, #8] + 8007e5e: 4a1d ldr r2, [pc, #116] @ (8007ed4 ) + 8007e60: 4293 cmp r3, r2 + 8007e62: d906 bls.n 8007e72 + 8007e64: 68bb ldr r3, [r7, #8] + 8007e66: 4a1c ldr r2, [pc, #112] @ (8007ed8 ) + 8007e68: 4293 cmp r3, r2 + 8007e6a: d202 bcs.n 8007e72 { /* hclk Clock Range between 27.7-32 MHz */ UsbTrd = 0x7U; - 8007db4: 2307 movs r3, #7 - 8007db6: 617b str r3, [r7, #20] - 8007db8: e00a b.n 8007dd0 + 8007e6c: 2307 movs r3, #7 + 8007e6e: 617b str r3, [r7, #20] + 8007e70: e00a b.n 8007e88 } else /* if(hclk >= 32000000) */ { /* hclk Clock Range between 32-200 MHz */ UsbTrd = 0x6U; - 8007dba: 2306 movs r3, #6 - 8007dbc: 617b str r3, [r7, #20] - 8007dbe: e007 b.n 8007dd0 + 8007e72: 2306 movs r3, #6 + 8007e74: 617b str r3, [r7, #20] + 8007e76: e007 b.n 8007e88 } } else if (speed == USBD_HS_SPEED) - 8007dc0: 79fb ldrb r3, [r7, #7] - 8007dc2: 2b00 cmp r3, #0 - 8007dc4: d102 bne.n 8007dcc + 8007e78: 79fb ldrb r3, [r7, #7] + 8007e7a: 2b00 cmp r3, #0 + 8007e7c: d102 bne.n 8007e84 { UsbTrd = USBD_HS_TRDT_VALUE; - 8007dc6: 2309 movs r3, #9 - 8007dc8: 617b str r3, [r7, #20] - 8007dca: e001 b.n 8007dd0 + 8007e7e: 2309 movs r3, #9 + 8007e80: 617b str r3, [r7, #20] + 8007e82: e001 b.n 8007e88 } else { UsbTrd = USBD_DEFAULT_TRDT_VALUE; - 8007dcc: 2309 movs r3, #9 - 8007dce: 617b str r3, [r7, #20] + 8007e84: 2309 movs r3, #9 + 8007e86: 617b str r3, [r7, #20] } USBx->GUSBCFG &= ~USB_OTG_GUSBCFG_TRDT; - 8007dd0: 68fb ldr r3, [r7, #12] - 8007dd2: 68db ldr r3, [r3, #12] - 8007dd4: f423 5270 bic.w r2, r3, #15360 @ 0x3c00 - 8007dd8: 68fb ldr r3, [r7, #12] - 8007dda: 60da str r2, [r3, #12] + 8007e88: 68fb ldr r3, [r7, #12] + 8007e8a: 68db ldr r3, [r3, #12] + 8007e8c: f423 5270 bic.w r2, r3, #15360 @ 0x3c00 + 8007e90: 68fb ldr r3, [r7, #12] + 8007e92: 60da str r2, [r3, #12] USBx->GUSBCFG |= (uint32_t)((UsbTrd << 10) & USB_OTG_GUSBCFG_TRDT); - 8007ddc: 68fb ldr r3, [r7, #12] - 8007dde: 68da ldr r2, [r3, #12] - 8007de0: 697b ldr r3, [r7, #20] - 8007de2: 029b lsls r3, r3, #10 - 8007de4: f403 5370 and.w r3, r3, #15360 @ 0x3c00 - 8007de8: 431a orrs r2, r3 - 8007dea: 68fb ldr r3, [r7, #12] - 8007dec: 60da str r2, [r3, #12] + 8007e94: 68fb ldr r3, [r7, #12] + 8007e96: 68da ldr r2, [r3, #12] + 8007e98: 697b ldr r3, [r7, #20] + 8007e9a: 029b lsls r3, r3, #10 + 8007e9c: f403 5370 and.w r3, r3, #15360 @ 0x3c00 + 8007ea0: 431a orrs r2, r3 + 8007ea2: 68fb ldr r3, [r7, #12] + 8007ea4: 60da str r2, [r3, #12] return HAL_OK; - 8007dee: 2300 movs r3, #0 + 8007ea6: 2300 movs r3, #0 } - 8007df0: 4618 mov r0, r3 - 8007df2: 371c adds r7, #28 - 8007df4: 46bd mov sp, r7 - 8007df6: f85d 7b04 ldr.w r7, [sp], #4 - 8007dfa: 4770 bx lr - 8007dfc: 00d8acbf .word 0x00d8acbf - 8007e00: 00e4e1c0 .word 0x00e4e1c0 - 8007e04: 00f42400 .word 0x00f42400 - 8007e08: 01067380 .word 0x01067380 - 8007e0c: 011a499f .word 0x011a499f - 8007e10: 01312cff .word 0x01312cff - 8007e14: 014ca43f .word 0x014ca43f - 8007e18: 016e3600 .word 0x016e3600 - 8007e1c: 01a6ab1f .word 0x01a6ab1f - 8007e20: 01e84800 .word 0x01e84800 + 8007ea8: 4618 mov r0, r3 + 8007eaa: 371c adds r7, #28 + 8007eac: 46bd mov sp, r7 + 8007eae: f85d 7b04 ldr.w r7, [sp], #4 + 8007eb2: 4770 bx lr + 8007eb4: 00d8acbf .word 0x00d8acbf + 8007eb8: 00e4e1c0 .word 0x00e4e1c0 + 8007ebc: 00f42400 .word 0x00f42400 + 8007ec0: 01067380 .word 0x01067380 + 8007ec4: 011a499f .word 0x011a499f + 8007ec8: 01312cff .word 0x01312cff + 8007ecc: 014ca43f .word 0x014ca43f + 8007ed0: 016e3600 .word 0x016e3600 + 8007ed4: 01a6ab1f .word 0x01a6ab1f + 8007ed8: 01e84800 .word 0x01e84800 -08007e24 : +08007edc : * 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) { - 8007e24: b480 push {r7} - 8007e26: b083 sub sp, #12 - 8007e28: af00 add r7, sp, #0 - 8007e2a: 6078 str r0, [r7, #4] + 8007edc: b480 push {r7} + 8007ede: b083 sub sp, #12 + 8007ee0: af00 add r7, sp, #0 + 8007ee2: 6078 str r0, [r7, #4] USBx->GAHBCFG |= USB_OTG_GAHBCFG_GINT; - 8007e2c: 687b ldr r3, [r7, #4] - 8007e2e: 689b ldr r3, [r3, #8] - 8007e30: f043 0201 orr.w r2, r3, #1 - 8007e34: 687b ldr r3, [r7, #4] - 8007e36: 609a str r2, [r3, #8] + 8007ee4: 687b ldr r3, [r7, #4] + 8007ee6: 689b ldr r3, [r3, #8] + 8007ee8: f043 0201 orr.w r2, r3, #1 + 8007eec: 687b ldr r3, [r7, #4] + 8007eee: 609a str r2, [r3, #8] return HAL_OK; - 8007e38: 2300 movs r3, #0 + 8007ef0: 2300 movs r3, #0 } - 8007e3a: 4618 mov r0, r3 - 8007e3c: 370c adds r7, #12 - 8007e3e: 46bd mov sp, r7 - 8007e40: f85d 7b04 ldr.w r7, [sp], #4 - 8007e44: 4770 bx lr + 8007ef2: 4618 mov r0, r3 + 8007ef4: 370c adds r7, #12 + 8007ef6: 46bd mov sp, r7 + 8007ef8: f85d 7b04 ldr.w r7, [sp], #4 + 8007efc: 4770 bx lr -08007e46 : +08007efe : * 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) { - 8007e46: b480 push {r7} - 8007e48: b083 sub sp, #12 - 8007e4a: af00 add r7, sp, #0 - 8007e4c: 6078 str r0, [r7, #4] + 8007efe: b480 push {r7} + 8007f00: b083 sub sp, #12 + 8007f02: af00 add r7, sp, #0 + 8007f04: 6078 str r0, [r7, #4] USBx->GAHBCFG &= ~USB_OTG_GAHBCFG_GINT; - 8007e4e: 687b ldr r3, [r7, #4] - 8007e50: 689b ldr r3, [r3, #8] - 8007e52: f023 0201 bic.w r2, r3, #1 - 8007e56: 687b ldr r3, [r7, #4] - 8007e58: 609a str r2, [r3, #8] + 8007f06: 687b ldr r3, [r7, #4] + 8007f08: 689b ldr r3, [r3, #8] + 8007f0a: f023 0201 bic.w r2, r3, #1 + 8007f0e: 687b ldr r3, [r7, #4] + 8007f10: 609a str r2, [r3, #8] return HAL_OK; - 8007e5a: 2300 movs r3, #0 + 8007f12: 2300 movs r3, #0 } - 8007e5c: 4618 mov r0, r3 - 8007e5e: 370c adds r7, #12 - 8007e60: 46bd mov sp, r7 - 8007e62: f85d 7b04 ldr.w r7, [sp], #4 - 8007e66: 4770 bx lr + 8007f14: 4618 mov r0, r3 + 8007f16: 370c adds r7, #12 + 8007f18: 46bd mov sp, r7 + 8007f1a: f85d 7b04 ldr.w r7, [sp], #4 + 8007f1e: 4770 bx lr -08007e68 : +08007f20 : * @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) { - 8007e68: b580 push {r7, lr} - 8007e6a: b084 sub sp, #16 - 8007e6c: af00 add r7, sp, #0 - 8007e6e: 6078 str r0, [r7, #4] - 8007e70: 460b mov r3, r1 - 8007e72: 70fb strb r3, [r7, #3] + 8007f20: b580 push {r7, lr} + 8007f22: b084 sub sp, #16 + 8007f24: af00 add r7, sp, #0 + 8007f26: 6078 str r0, [r7, #4] + 8007f28: 460b mov r3, r1 + 8007f2a: 70fb strb r3, [r7, #3] uint32_t ms = 0U; - 8007e74: 2300 movs r3, #0 - 8007e76: 60fb str r3, [r7, #12] + 8007f2c: 2300 movs r3, #0 + 8007f2e: 60fb str r3, [r7, #12] USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_FHMOD | USB_OTG_GUSBCFG_FDMOD); - 8007e78: 687b ldr r3, [r7, #4] - 8007e7a: 68db ldr r3, [r3, #12] - 8007e7c: f023 42c0 bic.w r2, r3, #1610612736 @ 0x60000000 - 8007e80: 687b ldr r3, [r7, #4] - 8007e82: 60da str r2, [r3, #12] + 8007f30: 687b ldr r3, [r7, #4] + 8007f32: 68db ldr r3, [r3, #12] + 8007f34: f023 42c0 bic.w r2, r3, #1610612736 @ 0x60000000 + 8007f38: 687b ldr r3, [r7, #4] + 8007f3a: 60da str r2, [r3, #12] if (mode == USB_HOST_MODE) - 8007e84: 78fb ldrb r3, [r7, #3] - 8007e86: 2b01 cmp r3, #1 - 8007e88: d115 bne.n 8007eb6 + 8007f3c: 78fb ldrb r3, [r7, #3] + 8007f3e: 2b01 cmp r3, #1 + 8007f40: d115 bne.n 8007f6e { USBx->GUSBCFG |= USB_OTG_GUSBCFG_FHMOD; - 8007e8a: 687b ldr r3, [r7, #4] - 8007e8c: 68db ldr r3, [r3, #12] - 8007e8e: f043 5200 orr.w r2, r3, #536870912 @ 0x20000000 - 8007e92: 687b ldr r3, [r7, #4] - 8007e94: 60da str r2, [r3, #12] + 8007f42: 687b ldr r3, [r7, #4] + 8007f44: 68db ldr r3, [r3, #12] + 8007f46: f043 5200 orr.w r2, r3, #536870912 @ 0x20000000 + 8007f4a: 687b ldr r3, [r7, #4] + 8007f4c: 60da str r2, [r3, #12] do { HAL_Delay(10U); - 8007e96: 200a movs r0, #10 - 8007e98: f7fa f820 bl 8001edc + 8007f4e: 200a movs r0, #10 + 8007f50: f7fa f820 bl 8001f94 ms += 10U; - 8007e9c: 68fb ldr r3, [r7, #12] - 8007e9e: 330a adds r3, #10 - 8007ea0: 60fb str r3, [r7, #12] + 8007f54: 68fb ldr r3, [r7, #12] + 8007f56: 330a adds r3, #10 + 8007f58: 60fb str r3, [r7, #12] } while ((USB_GetMode(USBx) != (uint32_t)USB_HOST_MODE) && (ms < HAL_USB_CURRENT_MODE_MAX_DELAY_MS)); - 8007ea2: 6878 ldr r0, [r7, #4] - 8007ea4: f001 f939 bl 800911a - 8007ea8: 4603 mov r3, r0 - 8007eaa: 2b01 cmp r3, #1 - 8007eac: d01e beq.n 8007eec - 8007eae: 68fb ldr r3, [r7, #12] - 8007eb0: 2bc7 cmp r3, #199 @ 0xc7 - 8007eb2: d9f0 bls.n 8007e96 - 8007eb4: e01a b.n 8007eec + 8007f5a: 6878 ldr r0, [r7, #4] + 8007f5c: f001 f939 bl 80091d2 + 8007f60: 4603 mov r3, r0 + 8007f62: 2b01 cmp r3, #1 + 8007f64: d01e beq.n 8007fa4 + 8007f66: 68fb ldr r3, [r7, #12] + 8007f68: 2bc7 cmp r3, #199 @ 0xc7 + 8007f6a: d9f0 bls.n 8007f4e + 8007f6c: e01a b.n 8007fa4 } else if (mode == USB_DEVICE_MODE) - 8007eb6: 78fb ldrb r3, [r7, #3] - 8007eb8: 2b00 cmp r3, #0 - 8007eba: d115 bne.n 8007ee8 + 8007f6e: 78fb ldrb r3, [r7, #3] + 8007f70: 2b00 cmp r3, #0 + 8007f72: d115 bne.n 8007fa0 { USBx->GUSBCFG |= USB_OTG_GUSBCFG_FDMOD; - 8007ebc: 687b ldr r3, [r7, #4] - 8007ebe: 68db ldr r3, [r3, #12] - 8007ec0: f043 4280 orr.w r2, r3, #1073741824 @ 0x40000000 - 8007ec4: 687b ldr r3, [r7, #4] - 8007ec6: 60da str r2, [r3, #12] + 8007f74: 687b ldr r3, [r7, #4] + 8007f76: 68db ldr r3, [r3, #12] + 8007f78: f043 4280 orr.w r2, r3, #1073741824 @ 0x40000000 + 8007f7c: 687b ldr r3, [r7, #4] + 8007f7e: 60da str r2, [r3, #12] do { HAL_Delay(10U); - 8007ec8: 200a movs r0, #10 - 8007eca: f7fa f807 bl 8001edc + 8007f80: 200a movs r0, #10 + 8007f82: f7fa f807 bl 8001f94 ms += 10U; - 8007ece: 68fb ldr r3, [r7, #12] - 8007ed0: 330a adds r3, #10 - 8007ed2: 60fb str r3, [r7, #12] + 8007f86: 68fb ldr r3, [r7, #12] + 8007f88: 330a adds r3, #10 + 8007f8a: 60fb str r3, [r7, #12] } while ((USB_GetMode(USBx) != (uint32_t)USB_DEVICE_MODE) && (ms < HAL_USB_CURRENT_MODE_MAX_DELAY_MS)); - 8007ed4: 6878 ldr r0, [r7, #4] - 8007ed6: f001 f920 bl 800911a - 8007eda: 4603 mov r3, r0 - 8007edc: 2b00 cmp r3, #0 - 8007ede: d005 beq.n 8007eec - 8007ee0: 68fb ldr r3, [r7, #12] - 8007ee2: 2bc7 cmp r3, #199 @ 0xc7 - 8007ee4: d9f0 bls.n 8007ec8 - 8007ee6: e001 b.n 8007eec + 8007f8c: 6878 ldr r0, [r7, #4] + 8007f8e: f001 f920 bl 80091d2 + 8007f92: 4603 mov r3, r0 + 8007f94: 2b00 cmp r3, #0 + 8007f96: d005 beq.n 8007fa4 + 8007f98: 68fb ldr r3, [r7, #12] + 8007f9a: 2bc7 cmp r3, #199 @ 0xc7 + 8007f9c: d9f0 bls.n 8007f80 + 8007f9e: e001 b.n 8007fa4 } else { return HAL_ERROR; - 8007ee8: 2301 movs r3, #1 - 8007eea: e005 b.n 8007ef8 + 8007fa0: 2301 movs r3, #1 + 8007fa2: e005 b.n 8007fb0 } if (ms == HAL_USB_CURRENT_MODE_MAX_DELAY_MS) - 8007eec: 68fb ldr r3, [r7, #12] - 8007eee: 2bc8 cmp r3, #200 @ 0xc8 - 8007ef0: d101 bne.n 8007ef6 + 8007fa4: 68fb ldr r3, [r7, #12] + 8007fa6: 2bc8 cmp r3, #200 @ 0xc8 + 8007fa8: d101 bne.n 8007fae { return HAL_ERROR; - 8007ef2: 2301 movs r3, #1 - 8007ef4: e000 b.n 8007ef8 + 8007faa: 2301 movs r3, #1 + 8007fac: e000 b.n 8007fb0 } return HAL_OK; - 8007ef6: 2300 movs r3, #0 + 8007fae: 2300 movs r3, #0 } - 8007ef8: 4618 mov r0, r3 - 8007efa: 3710 adds r7, #16 - 8007efc: 46bd mov sp, r7 - 8007efe: bd80 pop {r7, pc} + 8007fb0: 4618 mov r0, r3 + 8007fb2: 3710 adds r7, #16 + 8007fb4: 46bd mov sp, r7 + 8007fb6: bd80 pop {r7, pc} -08007f00 : +08007fb8 : * @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) { - 8007f00: b084 sub sp, #16 - 8007f02: b580 push {r7, lr} - 8007f04: b086 sub sp, #24 - 8007f06: af00 add r7, sp, #0 - 8007f08: 6078 str r0, [r7, #4] - 8007f0a: f107 0024 add.w r0, r7, #36 @ 0x24 - 8007f0e: e880 000e stmia.w r0, {r1, r2, r3} + 8007fb8: b084 sub sp, #16 + 8007fba: b580 push {r7, lr} + 8007fbc: b086 sub sp, #24 + 8007fbe: af00 add r7, sp, #0 + 8007fc0: 6078 str r0, [r7, #4] + 8007fc2: f107 0024 add.w r0, r7, #36 @ 0x24 + 8007fc6: e880 000e stmia.w r0, {r1, r2, r3} HAL_StatusTypeDef ret = HAL_OK; - 8007f12: 2300 movs r3, #0 - 8007f14: 75fb strb r3, [r7, #23] + 8007fca: 2300 movs r3, #0 + 8007fcc: 75fb strb r3, [r7, #23] uint32_t USBx_BASE = (uint32_t)USBx; - 8007f16: 687b ldr r3, [r7, #4] - 8007f18: 60fb str r3, [r7, #12] + 8007fce: 687b ldr r3, [r7, #4] + 8007fd0: 60fb str r3, [r7, #12] uint32_t i; for (i = 0U; i < 15U; i++) - 8007f1a: 2300 movs r3, #0 - 8007f1c: 613b str r3, [r7, #16] - 8007f1e: e009 b.n 8007f34 + 8007fd2: 2300 movs r3, #0 + 8007fd4: 613b str r3, [r7, #16] + 8007fd6: e009 b.n 8007fec { USBx->DIEPTXF[i] = 0U; - 8007f20: 687a ldr r2, [r7, #4] - 8007f22: 693b ldr r3, [r7, #16] - 8007f24: 3340 adds r3, #64 @ 0x40 - 8007f26: 009b lsls r3, r3, #2 - 8007f28: 4413 add r3, r2 - 8007f2a: 2200 movs r2, #0 - 8007f2c: 605a str r2, [r3, #4] + 8007fd8: 687a ldr r2, [r7, #4] + 8007fda: 693b ldr r3, [r7, #16] + 8007fdc: 3340 adds r3, #64 @ 0x40 + 8007fde: 009b lsls r3, r3, #2 + 8007fe0: 4413 add r3, r2 + 8007fe2: 2200 movs r2, #0 + 8007fe4: 605a str r2, [r3, #4] for (i = 0U; i < 15U; i++) - 8007f2e: 693b ldr r3, [r7, #16] - 8007f30: 3301 adds r3, #1 - 8007f32: 613b str r3, [r7, #16] - 8007f34: 693b ldr r3, [r7, #16] - 8007f36: 2b0e cmp r3, #14 - 8007f38: d9f2 bls.n 8007f20 + 8007fe6: 693b ldr r3, [r7, #16] + 8007fe8: 3301 adds r3, #1 + 8007fea: 613b str r3, [r7, #16] + 8007fec: 693b ldr r3, [r7, #16] + 8007fee: 2b0e cmp r3, #14 + 8007ff0: d9f2 bls.n 8007fd8 #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) - 8007f3a: f897 302e ldrb.w r3, [r7, #46] @ 0x2e - 8007f3e: 2b00 cmp r3, #0 - 8007f40: d11c bne.n 8007f7c + 8007ff2: f897 302e ldrb.w r3, [r7, #46] @ 0x2e + 8007ff6: 2b00 cmp r3, #0 + 8007ff8: d11c bne.n 8008034 { USBx_DEVICE->DCTL |= USB_OTG_DCTL_SDIS; - 8007f42: 68fb ldr r3, [r7, #12] - 8007f44: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007f48: 685b ldr r3, [r3, #4] - 8007f4a: 68fa ldr r2, [r7, #12] - 8007f4c: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8007f50: f043 0302 orr.w r3, r3, #2 - 8007f54: 6053 str r3, [r2, #4] + 8007ffa: 68fb ldr r3, [r7, #12] + 8007ffc: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008000: 685b ldr r3, [r3, #4] + 8008002: 68fa ldr r2, [r7, #12] + 8008004: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8008008: f043 0302 orr.w r3, r3, #2 + 800800c: 6053 str r3, [r2, #4] /* Deactivate VBUS Sensing B */ USBx->GCCFG &= ~USB_OTG_GCCFG_VBDEN; - 8007f56: 687b ldr r3, [r7, #4] - 8007f58: 6b9b ldr r3, [r3, #56] @ 0x38 - 8007f5a: f423 1200 bic.w r2, r3, #2097152 @ 0x200000 - 8007f5e: 687b ldr r3, [r7, #4] - 8007f60: 639a str r2, [r3, #56] @ 0x38 + 800800e: 687b ldr r3, [r7, #4] + 8008010: 6b9b ldr r3, [r3, #56] @ 0x38 + 8008012: f423 1200 bic.w r2, r3, #2097152 @ 0x200000 + 8008016: 687b ldr r3, [r7, #4] + 8008018: 639a str r2, [r3, #56] @ 0x38 /* B-peripheral session valid override enable */ USBx->GOTGCTL |= USB_OTG_GOTGCTL_BVALOEN; - 8007f62: 687b ldr r3, [r7, #4] - 8007f64: 681b ldr r3, [r3, #0] - 8007f66: f043 0240 orr.w r2, r3, #64 @ 0x40 - 8007f6a: 687b ldr r3, [r7, #4] - 8007f6c: 601a str r2, [r3, #0] + 800801a: 687b ldr r3, [r7, #4] + 800801c: 681b ldr r3, [r3, #0] + 800801e: f043 0240 orr.w r2, r3, #64 @ 0x40 + 8008022: 687b ldr r3, [r7, #4] + 8008024: 601a str r2, [r3, #0] USBx->GOTGCTL |= USB_OTG_GOTGCTL_BVALOVAL; - 8007f6e: 687b ldr r3, [r7, #4] - 8007f70: 681b ldr r3, [r3, #0] - 8007f72: f043 0280 orr.w r2, r3, #128 @ 0x80 - 8007f76: 687b ldr r3, [r7, #4] - 8007f78: 601a str r2, [r3, #0] - 8007f7a: e005 b.n 8007f88 + 8008026: 687b ldr r3, [r7, #4] + 8008028: 681b ldr r3, [r3, #0] + 800802a: f043 0280 orr.w r2, r3, #128 @ 0x80 + 800802e: 687b ldr r3, [r7, #4] + 8008030: 601a str r2, [r3, #0] + 8008032: e005 b.n 8008040 } else { /* Enable HW VBUS sensing */ USBx->GCCFG |= USB_OTG_GCCFG_VBDEN; - 8007f7c: 687b ldr r3, [r7, #4] - 8007f7e: 6b9b ldr r3, [r3, #56] @ 0x38 - 8007f80: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 - 8007f84: 687b ldr r3, [r7, #4] - 8007f86: 639a str r2, [r3, #56] @ 0x38 + 8008034: 687b ldr r3, [r7, #4] + 8008036: 6b9b ldr r3, [r3, #56] @ 0x38 + 8008038: f443 1200 orr.w r2, r3, #2097152 @ 0x200000 + 800803c: 687b ldr r3, [r7, #4] + 800803e: 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; - 8007f88: 68fb ldr r3, [r7, #12] - 8007f8a: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 8007f8e: 461a mov r2, r3 - 8007f90: 2300 movs r3, #0 - 8007f92: 6013 str r3, [r2, #0] + 8008040: 68fb ldr r3, [r7, #12] + 8008042: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 8008046: 461a mov r2, r3 + 8008048: 2300 movs r3, #0 + 800804a: 6013 str r3, [r2, #0] if (cfg.phy_itface == USB_OTG_ULPI_PHY) - 8007f94: f897 3029 ldrb.w r3, [r7, #41] @ 0x29 - 8007f98: 2b01 cmp r3, #1 - 8007f9a: d10d bne.n 8007fb8 + 800804c: f897 3029 ldrb.w r3, [r7, #41] @ 0x29 + 8008050: 2b01 cmp r3, #1 + 8008052: d10d bne.n 8008070 { if (cfg.speed == USBD_HS_SPEED) - 8007f9c: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 - 8007fa0: 2b00 cmp r3, #0 - 8007fa2: d104 bne.n 8007fae + 8008054: f897 3027 ldrb.w r3, [r7, #39] @ 0x27 + 8008058: 2b00 cmp r3, #0 + 800805a: d104 bne.n 8008066 { /* Set Core speed to High speed mode */ (void)USB_SetDevSpeed(USBx, USB_OTG_SPEED_HIGH); - 8007fa4: 2100 movs r1, #0 - 8007fa6: 6878 ldr r0, [r7, #4] - 8007fa8: f000 f968 bl 800827c - 8007fac: e008 b.n 8007fc0 + 800805c: 2100 movs r1, #0 + 800805e: 6878 ldr r0, [r7, #4] + 8008060: f000 f968 bl 8008334 + 8008064: e008 b.n 8008078 } else { /* Set Core speed to Full speed mode */ (void)USB_SetDevSpeed(USBx, USB_OTG_SPEED_HIGH_IN_FULL); - 8007fae: 2101 movs r1, #1 - 8007fb0: 6878 ldr r0, [r7, #4] - 8007fb2: f000 f963 bl 800827c - 8007fb6: e003 b.n 8007fc0 + 8008066: 2101 movs r1, #1 + 8008068: 6878 ldr r0, [r7, #4] + 800806a: f000 f963 bl 8008334 + 800806e: e003 b.n 8008078 } } else { /* Set Core speed to Full speed mode */ (void)USB_SetDevSpeed(USBx, USB_OTG_SPEED_FULL); - 8007fb8: 2103 movs r1, #3 - 8007fba: 6878 ldr r0, [r7, #4] - 8007fbc: f000 f95e bl 800827c + 8008070: 2103 movs r1, #3 + 8008072: 6878 ldr r0, [r7, #4] + 8008074: f000 f95e bl 8008334 } /* Flush the FIFOs */ if (USB_FlushTxFifo(USBx, 0x10U) != HAL_OK) /* all Tx FIFOs */ - 8007fc0: 2110 movs r1, #16 - 8007fc2: 6878 ldr r0, [r7, #4] - 8007fc4: f000 f8fa bl 80081bc - 8007fc8: 4603 mov r3, r0 - 8007fca: 2b00 cmp r3, #0 - 8007fcc: d001 beq.n 8007fd2 + 8008078: 2110 movs r1, #16 + 800807a: 6878 ldr r0, [r7, #4] + 800807c: f000 f8fa bl 8008274 + 8008080: 4603 mov r3, r0 + 8008082: 2b00 cmp r3, #0 + 8008084: d001 beq.n 800808a { ret = HAL_ERROR; - 8007fce: 2301 movs r3, #1 - 8007fd0: 75fb strb r3, [r7, #23] + 8008086: 2301 movs r3, #1 + 8008088: 75fb strb r3, [r7, #23] } if (USB_FlushRxFifo(USBx) != HAL_OK) - 8007fd2: 6878 ldr r0, [r7, #4] - 8007fd4: f000 f924 bl 8008220 - 8007fd8: 4603 mov r3, r0 - 8007fda: 2b00 cmp r3, #0 - 8007fdc: d001 beq.n 8007fe2 + 800808a: 6878 ldr r0, [r7, #4] + 800808c: f000 f924 bl 80082d8 + 8008090: 4603 mov r3, r0 + 8008092: 2b00 cmp r3, #0 + 8008094: d001 beq.n 800809a { ret = HAL_ERROR; - 8007fde: 2301 movs r3, #1 - 8007fe0: 75fb strb r3, [r7, #23] + 8008096: 2301 movs r3, #1 + 8008098: 75fb strb r3, [r7, #23] } /* Clear all pending Device Interrupts */ USBx_DEVICE->DIEPMSK = 0U; - 8007fe2: 68fb ldr r3, [r7, #12] - 8007fe4: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007fe8: 461a mov r2, r3 - 8007fea: 2300 movs r3, #0 - 8007fec: 6113 str r3, [r2, #16] + 800809a: 68fb ldr r3, [r7, #12] + 800809c: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80080a0: 461a mov r2, r3 + 80080a2: 2300 movs r3, #0 + 80080a4: 6113 str r3, [r2, #16] USBx_DEVICE->DOEPMSK = 0U; - 8007fee: 68fb ldr r3, [r7, #12] - 8007ff0: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8007ff4: 461a mov r2, r3 - 8007ff6: 2300 movs r3, #0 - 8007ff8: 6153 str r3, [r2, #20] + 80080a6: 68fb ldr r3, [r7, #12] + 80080a8: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80080ac: 461a mov r2, r3 + 80080ae: 2300 movs r3, #0 + 80080b0: 6153 str r3, [r2, #20] USBx_DEVICE->DAINTMSK = 0U; - 8007ffa: 68fb ldr r3, [r7, #12] - 8007ffc: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008000: 461a mov r2, r3 - 8008002: 2300 movs r3, #0 - 8008004: 61d3 str r3, [r2, #28] + 80080b2: 68fb ldr r3, [r7, #12] + 80080b4: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80080b8: 461a mov r2, r3 + 80080ba: 2300 movs r3, #0 + 80080bc: 61d3 str r3, [r2, #28] for (i = 0U; i < cfg.dev_endpoints; i++) - 8008006: 2300 movs r3, #0 - 8008008: 613b str r3, [r7, #16] - 800800a: e043 b.n 8008094 + 80080be: 2300 movs r3, #0 + 80080c0: 613b str r3, [r7, #16] + 80080c2: e043 b.n 800814c { if ((USBx_INEP(i)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) - 800800c: 693b ldr r3, [r7, #16] - 800800e: 015a lsls r2, r3, #5 - 8008010: 68fb ldr r3, [r7, #12] - 8008012: 4413 add r3, r2 - 8008014: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008018: 681b ldr r3, [r3, #0] - 800801a: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 800801e: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8008022: d118 bne.n 8008056 + 80080c4: 693b ldr r3, [r7, #16] + 80080c6: 015a lsls r2, r3, #5 + 80080c8: 68fb ldr r3, [r7, #12] + 80080ca: 4413 add r3, r2 + 80080cc: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80080d0: 681b ldr r3, [r3, #0] + 80080d2: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 80080d6: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 80080da: d118 bne.n 800810e { if (i == 0U) - 8008024: 693b ldr r3, [r7, #16] - 8008026: 2b00 cmp r3, #0 - 8008028: d10a bne.n 8008040 + 80080dc: 693b ldr r3, [r7, #16] + 80080de: 2b00 cmp r3, #0 + 80080e0: d10a bne.n 80080f8 { USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_SNAK; - 800802a: 693b ldr r3, [r7, #16] - 800802c: 015a lsls r2, r3, #5 - 800802e: 68fb ldr r3, [r7, #12] - 8008030: 4413 add r3, r2 - 8008032: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008036: 461a mov r2, r3 - 8008038: f04f 6300 mov.w r3, #134217728 @ 0x8000000 - 800803c: 6013 str r3, [r2, #0] - 800803e: e013 b.n 8008068 + 80080e2: 693b ldr r3, [r7, #16] + 80080e4: 015a lsls r2, r3, #5 + 80080e6: 68fb ldr r3, [r7, #12] + 80080e8: 4413 add r3, r2 + 80080ea: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80080ee: 461a mov r2, r3 + 80080f0: f04f 6300 mov.w r3, #134217728 @ 0x8000000 + 80080f4: 6013 str r3, [r2, #0] + 80080f6: e013 b.n 8008120 } else { USBx_INEP(i)->DIEPCTL = USB_OTG_DIEPCTL_EPDIS | USB_OTG_DIEPCTL_SNAK; - 8008040: 693b ldr r3, [r7, #16] - 8008042: 015a lsls r2, r3, #5 - 8008044: 68fb ldr r3, [r7, #12] - 8008046: 4413 add r3, r2 - 8008048: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800804c: 461a mov r2, r3 - 800804e: f04f 4390 mov.w r3, #1207959552 @ 0x48000000 - 8008052: 6013 str r3, [r2, #0] - 8008054: e008 b.n 8008068 + 80080f8: 693b ldr r3, [r7, #16] + 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: 461a mov r2, r3 + 8008106: f04f 4390 mov.w r3, #1207959552 @ 0x48000000 + 800810a: 6013 str r3, [r2, #0] + 800810c: e008 b.n 8008120 } } else { USBx_INEP(i)->DIEPCTL = 0U; - 8008056: 693b ldr r3, [r7, #16] - 8008058: 015a lsls r2, r3, #5 - 800805a: 68fb ldr r3, [r7, #12] - 800805c: 4413 add r3, r2 - 800805e: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008062: 461a mov r2, r3 - 8008064: 2300 movs r3, #0 - 8008066: 6013 str r3, [r2, #0] + 800810e: 693b ldr r3, [r7, #16] + 8008110: 015a lsls r2, r3, #5 + 8008112: 68fb ldr r3, [r7, #12] + 8008114: 4413 add r3, r2 + 8008116: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800811a: 461a mov r2, r3 + 800811c: 2300 movs r3, #0 + 800811e: 6013 str r3, [r2, #0] } USBx_INEP(i)->DIEPTSIZ = 0U; - 8008068: 693b ldr r3, [r7, #16] - 800806a: 015a lsls r2, r3, #5 - 800806c: 68fb ldr r3, [r7, #12] - 800806e: 4413 add r3, r2 - 8008070: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008074: 461a mov r2, r3 - 8008076: 2300 movs r3, #0 - 8008078: 6113 str r3, [r2, #16] + 8008120: 693b ldr r3, [r7, #16] + 8008122: 015a lsls r2, r3, #5 + 8008124: 68fb ldr r3, [r7, #12] + 8008126: 4413 add r3, r2 + 8008128: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800812c: 461a mov r2, r3 + 800812e: 2300 movs r3, #0 + 8008130: 6113 str r3, [r2, #16] USBx_INEP(i)->DIEPINT = 0xFB7FU; - 800807a: 693b ldr r3, [r7, #16] - 800807c: 015a lsls r2, r3, #5 - 800807e: 68fb ldr r3, [r7, #12] - 8008080: 4413 add r3, r2 - 8008082: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008086: 461a mov r2, r3 - 8008088: f64f 337f movw r3, #64383 @ 0xfb7f - 800808c: 6093 str r3, [r2, #8] + 8008132: 693b ldr r3, [r7, #16] + 8008134: 015a lsls r2, r3, #5 + 8008136: 68fb ldr r3, [r7, #12] + 8008138: 4413 add r3, r2 + 800813a: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800813e: 461a mov r2, r3 + 8008140: f64f 337f movw r3, #64383 @ 0xfb7f + 8008144: 6093 str r3, [r2, #8] for (i = 0U; i < cfg.dev_endpoints; i++) - 800808e: 693b ldr r3, [r7, #16] - 8008090: 3301 adds r3, #1 - 8008092: 613b str r3, [r7, #16] - 8008094: f897 3024 ldrb.w r3, [r7, #36] @ 0x24 - 8008098: 461a mov r2, r3 - 800809a: 693b ldr r3, [r7, #16] - 800809c: 4293 cmp r3, r2 - 800809e: d3b5 bcc.n 800800c + 8008146: 693b ldr r3, [r7, #16] + 8008148: 3301 adds r3, #1 + 800814a: 613b str r3, [r7, #16] + 800814c: f897 3024 ldrb.w r3, [r7, #36] @ 0x24 + 8008150: 461a mov r2, r3 + 8008152: 693b ldr r3, [r7, #16] + 8008154: 4293 cmp r3, r2 + 8008156: d3b5 bcc.n 80080c4 } for (i = 0U; i < cfg.dev_endpoints; i++) - 80080a0: 2300 movs r3, #0 - 80080a2: 613b str r3, [r7, #16] - 80080a4: e043 b.n 800812e + 8008158: 2300 movs r3, #0 + 800815a: 613b str r3, [r7, #16] + 800815c: e043 b.n 80081e6 { if ((USBx_OUTEP(i)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) - 80080a6: 693b ldr r3, [r7, #16] - 80080a8: 015a lsls r2, r3, #5 - 80080aa: 68fb ldr r3, [r7, #12] - 80080ac: 4413 add r3, r2 - 80080ae: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80080b2: 681b ldr r3, [r3, #0] - 80080b4: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 80080b8: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 80080bc: d118 bne.n 80080f0 + 800815e: 693b ldr r3, [r7, #16] + 8008160: 015a lsls r2, r3, #5 + 8008162: 68fb ldr r3, [r7, #12] + 8008164: 4413 add r3, r2 + 8008166: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800816a: 681b ldr r3, [r3, #0] + 800816c: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8008170: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8008174: d118 bne.n 80081a8 { if (i == 0U) - 80080be: 693b ldr r3, [r7, #16] - 80080c0: 2b00 cmp r3, #0 - 80080c2: d10a bne.n 80080da + 8008176: 693b ldr r3, [r7, #16] + 8008178: 2b00 cmp r3, #0 + 800817a: d10a bne.n 8008192 { USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_SNAK; - 80080c4: 693b ldr r3, [r7, #16] - 80080c6: 015a lsls r2, r3, #5 - 80080c8: 68fb ldr r3, [r7, #12] - 80080ca: 4413 add r3, r2 - 80080cc: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80080d0: 461a mov r2, r3 - 80080d2: f04f 6300 mov.w r3, #134217728 @ 0x8000000 - 80080d6: 6013 str r3, [r2, #0] - 80080d8: e013 b.n 8008102 + 800817c: 693b ldr r3, [r7, #16] + 800817e: 015a lsls r2, r3, #5 + 8008180: 68fb ldr r3, [r7, #12] + 8008182: 4413 add r3, r2 + 8008184: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008188: 461a mov r2, r3 + 800818a: f04f 6300 mov.w r3, #134217728 @ 0x8000000 + 800818e: 6013 str r3, [r2, #0] + 8008190: e013 b.n 80081ba } else { USBx_OUTEP(i)->DOEPCTL = USB_OTG_DOEPCTL_EPDIS | USB_OTG_DOEPCTL_SNAK; - 80080da: 693b ldr r3, [r7, #16] - 80080dc: 015a lsls r2, r3, #5 - 80080de: 68fb ldr r3, [r7, #12] - 80080e0: 4413 add r3, r2 - 80080e2: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80080e6: 461a mov r2, r3 - 80080e8: f04f 4390 mov.w r3, #1207959552 @ 0x48000000 - 80080ec: 6013 str r3, [r2, #0] - 80080ee: e008 b.n 8008102 + 8008192: 693b ldr r3, [r7, #16] + 8008194: 015a lsls r2, r3, #5 + 8008196: 68fb ldr r3, [r7, #12] + 8008198: 4413 add r3, r2 + 800819a: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800819e: 461a mov r2, r3 + 80081a0: f04f 4390 mov.w r3, #1207959552 @ 0x48000000 + 80081a4: 6013 str r3, [r2, #0] + 80081a6: e008 b.n 80081ba } } else { USBx_OUTEP(i)->DOEPCTL = 0U; - 80080f0: 693b ldr r3, [r7, #16] - 80080f2: 015a lsls r2, r3, #5 - 80080f4: 68fb ldr r3, [r7, #12] - 80080f6: 4413 add r3, r2 - 80080f8: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80080fc: 461a mov r2, r3 - 80080fe: 2300 movs r3, #0 - 8008100: 6013 str r3, [r2, #0] + 80081a8: 693b ldr r3, [r7, #16] + 80081aa: 015a lsls r2, r3, #5 + 80081ac: 68fb ldr r3, [r7, #12] + 80081ae: 4413 add r3, r2 + 80081b0: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80081b4: 461a mov r2, r3 + 80081b6: 2300 movs r3, #0 + 80081b8: 6013 str r3, [r2, #0] } USBx_OUTEP(i)->DOEPTSIZ = 0U; - 8008102: 693b ldr r3, [r7, #16] - 8008104: 015a lsls r2, r3, #5 - 8008106: 68fb ldr r3, [r7, #12] - 8008108: 4413 add r3, r2 - 800810a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800810e: 461a mov r2, r3 - 8008110: 2300 movs r3, #0 - 8008112: 6113 str r3, [r2, #16] + 80081ba: 693b ldr r3, [r7, #16] + 80081bc: 015a lsls r2, r3, #5 + 80081be: 68fb ldr r3, [r7, #12] + 80081c0: 4413 add r3, r2 + 80081c2: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80081c6: 461a mov r2, r3 + 80081c8: 2300 movs r3, #0 + 80081ca: 6113 str r3, [r2, #16] USBx_OUTEP(i)->DOEPINT = 0xFB7FU; - 8008114: 693b ldr r3, [r7, #16] - 8008116: 015a lsls r2, r3, #5 - 8008118: 68fb ldr r3, [r7, #12] - 800811a: 4413 add r3, r2 - 800811c: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008120: 461a mov r2, r3 - 8008122: f64f 337f movw r3, #64383 @ 0xfb7f - 8008126: 6093 str r3, [r2, #8] + 80081cc: 693b ldr r3, [r7, #16] + 80081ce: 015a lsls r2, r3, #5 + 80081d0: 68fb ldr r3, [r7, #12] + 80081d2: 4413 add r3, r2 + 80081d4: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80081d8: 461a mov r2, r3 + 80081da: f64f 337f movw r3, #64383 @ 0xfb7f + 80081de: 6093 str r3, [r2, #8] for (i = 0U; i < cfg.dev_endpoints; i++) - 8008128: 693b ldr r3, [r7, #16] - 800812a: 3301 adds r3, #1 - 800812c: 613b str r3, [r7, #16] - 800812e: f897 3024 ldrb.w r3, [r7, #36] @ 0x24 - 8008132: 461a mov r2, r3 - 8008134: 693b ldr r3, [r7, #16] - 8008136: 4293 cmp r3, r2 - 8008138: d3b5 bcc.n 80080a6 + 80081e0: 693b ldr r3, [r7, #16] + 80081e2: 3301 adds r3, #1 + 80081e4: 613b str r3, [r7, #16] + 80081e6: f897 3024 ldrb.w r3, [r7, #36] @ 0x24 + 80081ea: 461a mov r2, r3 + 80081ec: 693b ldr r3, [r7, #16] + 80081ee: 4293 cmp r3, r2 + 80081f0: d3b5 bcc.n 800815e } USBx_DEVICE->DIEPMSK &= ~(USB_OTG_DIEPMSK_TXFURM); - 800813a: 68fb ldr r3, [r7, #12] - 800813c: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008140: 691b ldr r3, [r3, #16] - 8008142: 68fa ldr r2, [r7, #12] - 8008144: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8008148: f423 7380 bic.w r3, r3, #256 @ 0x100 - 800814c: 6113 str r3, [r2, #16] + 80081f2: 68fb ldr r3, [r7, #12] + 80081f4: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80081f8: 691b ldr r3, [r3, #16] + 80081fa: 68fa ldr r2, [r7, #12] + 80081fc: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8008200: f423 7380 bic.w r3, r3, #256 @ 0x100 + 8008204: 6113 str r3, [r2, #16] /* Disable all interrupts. */ USBx->GINTMSK = 0U; - 800814e: 687b ldr r3, [r7, #4] - 8008150: 2200 movs r2, #0 - 8008152: 619a str r2, [r3, #24] + 8008206: 687b ldr r3, [r7, #4] + 8008208: 2200 movs r2, #0 + 800820a: 619a str r2, [r3, #24] /* Clear any pending interrupts */ USBx->GINTSTS = 0xBFFFFFFFU; - 8008154: 687b ldr r3, [r7, #4] - 8008156: f06f 4280 mvn.w r2, #1073741824 @ 0x40000000 - 800815a: 615a str r2, [r3, #20] + 800820c: 687b ldr r3, [r7, #4] + 800820e: f06f 4280 mvn.w r2, #1073741824 @ 0x40000000 + 8008212: 615a str r2, [r3, #20] /* Enable the common interrupts */ if (cfg.dma_enable == 0U) - 800815c: f897 3026 ldrb.w r3, [r7, #38] @ 0x26 - 8008160: 2b00 cmp r3, #0 - 8008162: d105 bne.n 8008170 + 8008214: f897 3026 ldrb.w r3, [r7, #38] @ 0x26 + 8008218: 2b00 cmp r3, #0 + 800821a: d105 bne.n 8008228 { USBx->GINTMSK |= USB_OTG_GINTMSK_RXFLVLM; - 8008164: 687b ldr r3, [r7, #4] - 8008166: 699b ldr r3, [r3, #24] - 8008168: f043 0210 orr.w r2, r3, #16 - 800816c: 687b ldr r3, [r7, #4] - 800816e: 619a str r2, [r3, #24] + 800821c: 687b ldr r3, [r7, #4] + 800821e: 699b ldr r3, [r3, #24] + 8008220: f043 0210 orr.w r2, r3, #16 + 8008224: 687b ldr r3, [r7, #4] + 8008226: 619a str r2, [r3, #24] } /* Enable interrupts matching to the Device mode ONLY */ USBx->GINTMSK |= USB_OTG_GINTMSK_USBSUSPM | USB_OTG_GINTMSK_USBRST | - 8008170: 687b ldr r3, [r7, #4] - 8008172: 699a ldr r2, [r3, #24] - 8008174: 4b10 ldr r3, [pc, #64] @ (80081b8 ) - 8008176: 4313 orrs r3, r2 - 8008178: 687a ldr r2, [r7, #4] - 800817a: 6193 str r3, [r2, #24] + 8008228: 687b ldr r3, [r7, #4] + 800822a: 699a ldr r2, [r3, #24] + 800822c: 4b10 ldr r3, [pc, #64] @ (8008270 ) + 800822e: 4313 orrs r3, r2 + 8008230: 687a ldr r2, [r7, #4] + 8008232: 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) - 800817c: f897 302a ldrb.w r3, [r7, #42] @ 0x2a - 8008180: 2b00 cmp r3, #0 - 8008182: d005 beq.n 8008190 + 8008234: f897 302a ldrb.w r3, [r7, #42] @ 0x2a + 8008238: 2b00 cmp r3, #0 + 800823a: d005 beq.n 8008248 { USBx->GINTMSK |= USB_OTG_GINTMSK_SOFM; - 8008184: 687b ldr r3, [r7, #4] - 8008186: 699b ldr r3, [r3, #24] - 8008188: f043 0208 orr.w r2, r3, #8 - 800818c: 687b ldr r3, [r7, #4] - 800818e: 619a str r2, [r3, #24] + 800823c: 687b ldr r3, [r7, #4] + 800823e: 699b ldr r3, [r3, #24] + 8008240: f043 0208 orr.w r2, r3, #8 + 8008244: 687b ldr r3, [r7, #4] + 8008246: 619a str r2, [r3, #24] } if (cfg.vbus_sensing_enable == 1U) - 8008190: f897 302e ldrb.w r3, [r7, #46] @ 0x2e - 8008194: 2b01 cmp r3, #1 - 8008196: d107 bne.n 80081a8 + 8008248: f897 302e ldrb.w r3, [r7, #46] @ 0x2e + 800824c: 2b01 cmp r3, #1 + 800824e: d107 bne.n 8008260 { USBx->GINTMSK |= (USB_OTG_GINTMSK_SRQIM | USB_OTG_GINTMSK_OTGINT); - 8008198: 687b ldr r3, [r7, #4] - 800819a: 699b ldr r3, [r3, #24] - 800819c: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 80081a0: f043 0304 orr.w r3, r3, #4 - 80081a4: 687a ldr r2, [r7, #4] - 80081a6: 6193 str r3, [r2, #24] + 8008250: 687b ldr r3, [r7, #4] + 8008252: 699b ldr r3, [r3, #24] + 8008254: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 8008258: f043 0304 orr.w r3, r3, #4 + 800825c: 687a ldr r2, [r7, #4] + 800825e: 6193 str r3, [r2, #24] } return ret; - 80081a8: 7dfb ldrb r3, [r7, #23] + 8008260: 7dfb ldrb r3, [r7, #23] } - 80081aa: 4618 mov r0, r3 - 80081ac: 3718 adds r7, #24 - 80081ae: 46bd mov sp, r7 - 80081b0: e8bd 4080 ldmia.w sp!, {r7, lr} - 80081b4: b004 add sp, #16 - 80081b6: 4770 bx lr - 80081b8: 803c3800 .word 0x803c3800 + 8008262: 4618 mov r0, r3 + 8008264: 3718 adds r7, #24 + 8008266: 46bd mov sp, r7 + 8008268: e8bd 4080 ldmia.w sp!, {r7, lr} + 800826c: b004 add sp, #16 + 800826e: 4770 bx lr + 8008270: 803c3800 .word 0x803c3800 -080081bc : +08008274 : * 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) { - 80081bc: b480 push {r7} - 80081be: b085 sub sp, #20 - 80081c0: af00 add r7, sp, #0 - 80081c2: 6078 str r0, [r7, #4] - 80081c4: 6039 str r1, [r7, #0] + 8008274: b480 push {r7} + 8008276: b085 sub sp, #20 + 8008278: af00 add r7, sp, #0 + 800827a: 6078 str r0, [r7, #4] + 800827c: 6039 str r1, [r7, #0] __IO uint32_t count = 0U; - 80081c6: 2300 movs r3, #0 - 80081c8: 60fb str r3, [r7, #12] + 800827e: 2300 movs r3, #0 + 8008280: 60fb str r3, [r7, #12] /* Wait for AHB master IDLE state. */ do { count++; - 80081ca: 68fb ldr r3, [r7, #12] - 80081cc: 3301 adds r3, #1 - 80081ce: 60fb str r3, [r7, #12] + 8008282: 68fb ldr r3, [r7, #12] + 8008284: 3301 adds r3, #1 + 8008286: 60fb str r3, [r7, #12] if (count > HAL_USB_TIMEOUT) - 80081d0: 68fb ldr r3, [r7, #12] - 80081d2: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 80081d6: d901 bls.n 80081dc + 8008288: 68fb ldr r3, [r7, #12] + 800828a: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 800828e: d901 bls.n 8008294 { return HAL_TIMEOUT; - 80081d8: 2303 movs r3, #3 - 80081da: e01b b.n 8008214 + 8008290: 2303 movs r3, #3 + 8008292: e01b b.n 80082cc } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_AHBIDL) == 0U); - 80081dc: 687b ldr r3, [r7, #4] - 80081de: 691b ldr r3, [r3, #16] - 80081e0: 2b00 cmp r3, #0 - 80081e2: daf2 bge.n 80081ca + 8008294: 687b ldr r3, [r7, #4] + 8008296: 691b ldr r3, [r3, #16] + 8008298: 2b00 cmp r3, #0 + 800829a: daf2 bge.n 8008282 /* Flush TX Fifo */ count = 0U; - 80081e4: 2300 movs r3, #0 - 80081e6: 60fb str r3, [r7, #12] + 800829c: 2300 movs r3, #0 + 800829e: 60fb str r3, [r7, #12] USBx->GRSTCTL = (USB_OTG_GRSTCTL_TXFFLSH | (num << 6)); - 80081e8: 683b ldr r3, [r7, #0] - 80081ea: 019b lsls r3, r3, #6 - 80081ec: f043 0220 orr.w r2, r3, #32 - 80081f0: 687b ldr r3, [r7, #4] - 80081f2: 611a str r2, [r3, #16] + 80082a0: 683b ldr r3, [r7, #0] + 80082a2: 019b lsls r3, r3, #6 + 80082a4: f043 0220 orr.w r2, r3, #32 + 80082a8: 687b ldr r3, [r7, #4] + 80082aa: 611a str r2, [r3, #16] do { count++; - 80081f4: 68fb ldr r3, [r7, #12] - 80081f6: 3301 adds r3, #1 - 80081f8: 60fb str r3, [r7, #12] + 80082ac: 68fb ldr r3, [r7, #12] + 80082ae: 3301 adds r3, #1 + 80082b0: 60fb str r3, [r7, #12] if (count > HAL_USB_TIMEOUT) - 80081fa: 68fb ldr r3, [r7, #12] - 80081fc: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 8008200: d901 bls.n 8008206 + 80082b2: 68fb ldr r3, [r7, #12] + 80082b4: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 80082b8: d901 bls.n 80082be { return HAL_TIMEOUT; - 8008202: 2303 movs r3, #3 - 8008204: e006 b.n 8008214 + 80082ba: 2303 movs r3, #3 + 80082bc: e006 b.n 80082cc } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_TXFFLSH) == USB_OTG_GRSTCTL_TXFFLSH); - 8008206: 687b ldr r3, [r7, #4] - 8008208: 691b ldr r3, [r3, #16] - 800820a: f003 0320 and.w r3, r3, #32 - 800820e: 2b20 cmp r3, #32 - 8008210: d0f0 beq.n 80081f4 + 80082be: 687b ldr r3, [r7, #4] + 80082c0: 691b ldr r3, [r3, #16] + 80082c2: f003 0320 and.w r3, r3, #32 + 80082c6: 2b20 cmp r3, #32 + 80082c8: d0f0 beq.n 80082ac return HAL_OK; - 8008212: 2300 movs r3, #0 + 80082ca: 2300 movs r3, #0 } - 8008214: 4618 mov r0, r3 - 8008216: 3714 adds r7, #20 - 8008218: 46bd mov sp, r7 - 800821a: f85d 7b04 ldr.w r7, [sp], #4 - 800821e: 4770 bx lr + 80082cc: 4618 mov r0, r3 + 80082ce: 3714 adds r7, #20 + 80082d0: 46bd mov sp, r7 + 80082d2: f85d 7b04 ldr.w r7, [sp], #4 + 80082d6: 4770 bx lr -08008220 : +080082d8 : * @brief USB_FlushRxFifo Flush Rx FIFO * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_FlushRxFifo(USB_OTG_GlobalTypeDef *USBx) { - 8008220: b480 push {r7} - 8008222: b085 sub sp, #20 - 8008224: af00 add r7, sp, #0 - 8008226: 6078 str r0, [r7, #4] + 80082d8: b480 push {r7} + 80082da: b085 sub sp, #20 + 80082dc: af00 add r7, sp, #0 + 80082de: 6078 str r0, [r7, #4] __IO uint32_t count = 0U; - 8008228: 2300 movs r3, #0 - 800822a: 60fb str r3, [r7, #12] + 80082e0: 2300 movs r3, #0 + 80082e2: 60fb str r3, [r7, #12] /* Wait for AHB master IDLE state. */ do { count++; - 800822c: 68fb ldr r3, [r7, #12] - 800822e: 3301 adds r3, #1 - 8008230: 60fb str r3, [r7, #12] + 80082e4: 68fb ldr r3, [r7, #12] + 80082e6: 3301 adds r3, #1 + 80082e8: 60fb str r3, [r7, #12] if (count > HAL_USB_TIMEOUT) - 8008232: 68fb ldr r3, [r7, #12] - 8008234: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 8008238: d901 bls.n 800823e + 80082ea: 68fb ldr r3, [r7, #12] + 80082ec: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 80082f0: d901 bls.n 80082f6 { return HAL_TIMEOUT; - 800823a: 2303 movs r3, #3 - 800823c: e018 b.n 8008270 + 80082f2: 2303 movs r3, #3 + 80082f4: e018 b.n 8008328 } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_AHBIDL) == 0U); - 800823e: 687b ldr r3, [r7, #4] - 8008240: 691b ldr r3, [r3, #16] - 8008242: 2b00 cmp r3, #0 - 8008244: daf2 bge.n 800822c + 80082f6: 687b ldr r3, [r7, #4] + 80082f8: 691b ldr r3, [r3, #16] + 80082fa: 2b00 cmp r3, #0 + 80082fc: daf2 bge.n 80082e4 /* Flush RX Fifo */ count = 0U; - 8008246: 2300 movs r3, #0 - 8008248: 60fb str r3, [r7, #12] + 80082fe: 2300 movs r3, #0 + 8008300: 60fb str r3, [r7, #12] USBx->GRSTCTL = USB_OTG_GRSTCTL_RXFFLSH; - 800824a: 687b ldr r3, [r7, #4] - 800824c: 2210 movs r2, #16 - 800824e: 611a str r2, [r3, #16] + 8008302: 687b ldr r3, [r7, #4] + 8008304: 2210 movs r2, #16 + 8008306: 611a str r2, [r3, #16] do { count++; - 8008250: 68fb ldr r3, [r7, #12] - 8008252: 3301 adds r3, #1 - 8008254: 60fb str r3, [r7, #12] + 8008308: 68fb ldr r3, [r7, #12] + 800830a: 3301 adds r3, #1 + 800830c: 60fb str r3, [r7, #12] if (count > HAL_USB_TIMEOUT) - 8008256: 68fb ldr r3, [r7, #12] - 8008258: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 800825c: d901 bls.n 8008262 + 800830e: 68fb ldr r3, [r7, #12] + 8008310: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 8008314: d901 bls.n 800831a { return HAL_TIMEOUT; - 800825e: 2303 movs r3, #3 - 8008260: e006 b.n 8008270 + 8008316: 2303 movs r3, #3 + 8008318: e006 b.n 8008328 } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_RXFFLSH) == USB_OTG_GRSTCTL_RXFFLSH); - 8008262: 687b ldr r3, [r7, #4] - 8008264: 691b ldr r3, [r3, #16] - 8008266: f003 0310 and.w r3, r3, #16 - 800826a: 2b10 cmp r3, #16 - 800826c: d0f0 beq.n 8008250 + 800831a: 687b ldr r3, [r7, #4] + 800831c: 691b ldr r3, [r3, #16] + 800831e: f003 0310 and.w r3, r3, #16 + 8008322: 2b10 cmp r3, #16 + 8008324: d0f0 beq.n 8008308 return HAL_OK; - 800826e: 2300 movs r3, #0 + 8008326: 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 + 8008328: 4618 mov r0, r3 + 800832a: 3714 adds r7, #20 + 800832c: 46bd mov sp, r7 + 800832e: f85d 7b04 ldr.w r7, [sp], #4 + 8008332: 4770 bx lr -0800827c : +08008334 : * @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) { - 800827c: b480 push {r7} - 800827e: b085 sub sp, #20 - 8008280: af00 add r7, sp, #0 - 8008282: 6078 str r0, [r7, #4] - 8008284: 460b mov r3, r1 - 8008286: 70fb strb r3, [r7, #3] + 8008334: b480 push {r7} + 8008336: b085 sub sp, #20 + 8008338: af00 add r7, sp, #0 + 800833a: 6078 str r0, [r7, #4] + 800833c: 460b mov r3, r1 + 800833e: 70fb strb r3, [r7, #3] uint32_t USBx_BASE = (uint32_t)USBx; - 8008288: 687b ldr r3, [r7, #4] - 800828a: 60fb str r3, [r7, #12] + 8008340: 687b ldr r3, [r7, #4] + 8008342: 60fb str r3, [r7, #12] USBx_DEVICE->DCFG |= speed; - 800828c: 68fb ldr r3, [r7, #12] - 800828e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008292: 681a ldr r2, [r3, #0] - 8008294: 78fb ldrb r3, [r7, #3] - 8008296: 68f9 ldr r1, [r7, #12] - 8008298: f501 6100 add.w r1, r1, #2048 @ 0x800 - 800829c: 4313 orrs r3, r2 - 800829e: 600b str r3, [r1, #0] + 8008344: 68fb ldr r3, [r7, #12] + 8008346: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800834a: 681a ldr r2, [r3, #0] + 800834c: 78fb ldrb r3, [r7, #3] + 800834e: 68f9 ldr r1, [r7, #12] + 8008350: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8008354: 4313 orrs r3, r2 + 8008356: 600b str r3, [r1, #0] return HAL_OK; - 80082a0: 2300 movs r3, #0 + 8008358: 2300 movs r3, #0 } - 80082a2: 4618 mov r0, r3 - 80082a4: 3714 adds r7, #20 - 80082a6: 46bd mov sp, r7 - 80082a8: f85d 7b04 ldr.w r7, [sp], #4 - 80082ac: 4770 bx lr + 800835a: 4618 mov r0, r3 + 800835c: 3714 adds r7, #20 + 800835e: 46bd mov sp, r7 + 8008360: f85d 7b04 ldr.w r7, [sp], #4 + 8008364: 4770 bx lr -080082ae : +08008366 : * 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) { - 80082ae: b480 push {r7} - 80082b0: b087 sub sp, #28 - 80082b2: af00 add r7, sp, #0 - 80082b4: 6078 str r0, [r7, #4] + 8008366: b480 push {r7} + 8008368: b087 sub sp, #28 + 800836a: af00 add r7, sp, #0 + 800836c: 6078 str r0, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 80082b6: 687b ldr r3, [r7, #4] - 80082b8: 613b str r3, [r7, #16] + 800836e: 687b ldr r3, [r7, #4] + 8008370: 613b str r3, [r7, #16] uint8_t speed; uint32_t DevEnumSpeed = USBx_DEVICE->DSTS & USB_OTG_DSTS_ENUMSPD; - 80082ba: 693b ldr r3, [r7, #16] - 80082bc: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80082c0: 689b ldr r3, [r3, #8] - 80082c2: f003 0306 and.w r3, r3, #6 - 80082c6: 60fb str r3, [r7, #12] + 8008372: 693b ldr r3, [r7, #16] + 8008374: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008378: 689b ldr r3, [r3, #8] + 800837a: f003 0306 and.w r3, r3, #6 + 800837e: 60fb str r3, [r7, #12] if (DevEnumSpeed == DSTS_ENUMSPD_HS_PHY_30MHZ_OR_60MHZ) - 80082c8: 68fb ldr r3, [r7, #12] - 80082ca: 2b00 cmp r3, #0 - 80082cc: d102 bne.n 80082d4 + 8008380: 68fb ldr r3, [r7, #12] + 8008382: 2b00 cmp r3, #0 + 8008384: d102 bne.n 800838c { speed = USBD_HS_SPEED; - 80082ce: 2300 movs r3, #0 - 80082d0: 75fb strb r3, [r7, #23] - 80082d2: e00a b.n 80082ea + 8008386: 2300 movs r3, #0 + 8008388: 75fb strb r3, [r7, #23] + 800838a: e00a b.n 80083a2 } else if ((DevEnumSpeed == DSTS_ENUMSPD_FS_PHY_30MHZ_OR_60MHZ) || - 80082d4: 68fb ldr r3, [r7, #12] - 80082d6: 2b02 cmp r3, #2 - 80082d8: d002 beq.n 80082e0 - 80082da: 68fb ldr r3, [r7, #12] - 80082dc: 2b06 cmp r3, #6 - 80082de: d102 bne.n 80082e6 + 800838c: 68fb ldr r3, [r7, #12] + 800838e: 2b02 cmp r3, #2 + 8008390: d002 beq.n 8008398 + 8008392: 68fb ldr r3, [r7, #12] + 8008394: 2b06 cmp r3, #6 + 8008396: d102 bne.n 800839e (DevEnumSpeed == DSTS_ENUMSPD_FS_PHY_48MHZ)) { speed = USBD_FS_SPEED; - 80082e0: 2302 movs r3, #2 - 80082e2: 75fb strb r3, [r7, #23] - 80082e4: e001 b.n 80082ea + 8008398: 2302 movs r3, #2 + 800839a: 75fb strb r3, [r7, #23] + 800839c: e001 b.n 80083a2 } else { speed = 0xFU; - 80082e6: 230f movs r3, #15 - 80082e8: 75fb strb r3, [r7, #23] + 800839e: 230f movs r3, #15 + 80083a0: 75fb strb r3, [r7, #23] } return speed; - 80082ea: 7dfb ldrb r3, [r7, #23] + 80083a2: 7dfb ldrb r3, [r7, #23] } - 80082ec: 4618 mov r0, r3 - 80082ee: 371c adds r7, #28 - 80082f0: 46bd mov sp, r7 - 80082f2: f85d 7b04 ldr.w r7, [sp], #4 - 80082f6: 4770 bx lr + 80083a4: 4618 mov r0, r3 + 80083a6: 371c adds r7, #28 + 80083a8: 46bd mov sp, r7 + 80083aa: f85d 7b04 ldr.w r7, [sp], #4 + 80083ae: 4770 bx lr -080082f8 : +080083b0 : * @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) { - 80082f8: b480 push {r7} - 80082fa: b085 sub sp, #20 - 80082fc: af00 add r7, sp, #0 - 80082fe: 6078 str r0, [r7, #4] - 8008300: 6039 str r1, [r7, #0] + 80083b0: b480 push {r7} + 80083b2: b085 sub sp, #20 + 80083b4: af00 add r7, sp, #0 + 80083b6: 6078 str r0, [r7, #4] + 80083b8: 6039 str r1, [r7, #0] uint32_t USBx_BASE = (uint32_t)USBx; - 8008302: 687b ldr r3, [r7, #4] - 8008304: 60fb str r3, [r7, #12] + 80083ba: 687b ldr r3, [r7, #4] + 80083bc: 60fb str r3, [r7, #12] uint32_t epnum = (uint32_t)ep->num; - 8008306: 683b ldr r3, [r7, #0] - 8008308: 781b ldrb r3, [r3, #0] - 800830a: 60bb str r3, [r7, #8] + 80083be: 683b ldr r3, [r7, #0] + 80083c0: 781b ldrb r3, [r3, #0] + 80083c2: 60bb str r3, [r7, #8] if (ep->is_in == 1U) - 800830c: 683b ldr r3, [r7, #0] - 800830e: 785b ldrb r3, [r3, #1] - 8008310: 2b01 cmp r3, #1 - 8008312: d13a bne.n 800838a + 80083c4: 683b ldr r3, [r7, #0] + 80083c6: 785b ldrb r3, [r3, #1] + 80083c8: 2b01 cmp r3, #1 + 80083ca: d13a bne.n 8008442 { USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK)); - 8008314: 68fb ldr r3, [r7, #12] - 8008316: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800831a: 69da ldr r2, [r3, #28] - 800831c: 683b ldr r3, [r7, #0] - 800831e: 781b ldrb r3, [r3, #0] - 8008320: f003 030f and.w r3, r3, #15 - 8008324: 2101 movs r1, #1 - 8008326: fa01 f303 lsl.w r3, r1, r3 - 800832a: b29b uxth r3, r3 - 800832c: 68f9 ldr r1, [r7, #12] - 800832e: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8008332: 4313 orrs r3, r2 - 8008334: 61cb str r3, [r1, #28] + 80083cc: 68fb ldr r3, [r7, #12] + 80083ce: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80083d2: 69da ldr r2, [r3, #28] + 80083d4: 683b ldr r3, [r7, #0] + 80083d6: 781b ldrb r3, [r3, #0] + 80083d8: f003 030f and.w r3, r3, #15 + 80083dc: 2101 movs r1, #1 + 80083de: fa01 f303 lsl.w r3, r1, r3 + 80083e2: b29b uxth r3, r3 + 80083e4: 68f9 ldr r1, [r7, #12] + 80083e6: f501 6100 add.w r1, r1, #2048 @ 0x800 + 80083ea: 4313 orrs r3, r2 + 80083ec: 61cb str r3, [r1, #28] if ((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_USBAEP) == 0U) - 8008336: 68bb ldr r3, [r7, #8] - 8008338: 015a lsls r2, r3, #5 - 800833a: 68fb ldr r3, [r7, #12] - 800833c: 4413 add r3, r2 - 800833e: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008342: 681b ldr r3, [r3, #0] - 8008344: f403 4300 and.w r3, r3, #32768 @ 0x8000 - 8008348: 2b00 cmp r3, #0 - 800834a: d155 bne.n 80083f8 + 80083ee: 68bb ldr r3, [r7, #8] + 80083f0: 015a lsls r2, r3, #5 + 80083f2: 68fb ldr r3, [r7, #12] + 80083f4: 4413 add r3, r2 + 80083f6: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80083fa: 681b ldr r3, [r3, #0] + 80083fc: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 8008400: 2b00 cmp r3, #0 + 8008402: d155 bne.n 80084b0 { USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) | - 800834c: 68bb ldr r3, [r7, #8] - 800834e: 015a lsls r2, r3, #5 - 8008350: 68fb ldr r3, [r7, #12] - 8008352: 4413 add r3, r2 - 8008354: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008358: 681a ldr r2, [r3, #0] - 800835a: 683b ldr r3, [r7, #0] - 800835c: 689b ldr r3, [r3, #8] - 800835e: f3c3 010a ubfx r1, r3, #0, #11 + 8008404: 68bb ldr r3, [r7, #8] + 8008406: 015a lsls r2, r3, #5 + 8008408: 68fb ldr r3, [r7, #12] + 800840a: 4413 add r3, r2 + 800840c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008410: 681a ldr r2, [r3, #0] + 8008412: 683b ldr r3, [r7, #0] + 8008414: 689b ldr r3, [r3, #8] + 8008416: f3c3 010a ubfx r1, r3, #0, #11 ((uint32_t)ep->type << 18) | (epnum << 22) | - 8008362: 683b ldr r3, [r7, #0] - 8008364: 791b ldrb r3, [r3, #4] - 8008366: 049b lsls r3, r3, #18 + 800841a: 683b ldr r3, [r7, #0] + 800841c: 791b ldrb r3, [r3, #4] + 800841e: 049b lsls r3, r3, #18 USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) | - 8008368: 4319 orrs r1, r3 + 8008420: 4319 orrs r1, r3 ((uint32_t)ep->type << 18) | (epnum << 22) | - 800836a: 68bb ldr r3, [r7, #8] - 800836c: 059b lsls r3, r3, #22 - 800836e: 430b orrs r3, r1 + 8008422: 68bb ldr r3, [r7, #8] + 8008424: 059b lsls r3, r3, #22 + 8008426: 430b orrs r3, r1 USBx_INEP(epnum)->DIEPCTL |= (ep->maxpacket & USB_OTG_DIEPCTL_MPSIZ) | - 8008370: 4313 orrs r3, r2 - 8008372: 68ba ldr r2, [r7, #8] - 8008374: 0151 lsls r1, r2, #5 - 8008376: 68fa ldr r2, [r7, #12] - 8008378: 440a add r2, r1 - 800837a: f502 6210 add.w r2, r2, #2304 @ 0x900 - 800837e: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8008382: f443 4300 orr.w r3, r3, #32768 @ 0x8000 - 8008386: 6013 str r3, [r2, #0] - 8008388: e036 b.n 80083f8 + 8008428: 4313 orrs r3, r2 + 800842a: 68ba ldr r2, [r7, #8] + 800842c: 0151 lsls r1, r2, #5 + 800842e: 68fa ldr r2, [r7, #12] + 8008430: 440a add r2, r1 + 8008432: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008436: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 800843a: f443 4300 orr.w r3, r3, #32768 @ 0x8000 + 800843e: 6013 str r3, [r2, #0] + 8008440: e036 b.n 80084b0 USB_OTG_DIEPCTL_USBAEP; } } else { USBx_DEVICE->DAINTMSK |= USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16); - 800838a: 68fb ldr r3, [r7, #12] - 800838c: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008390: 69da ldr r2, [r3, #28] - 8008392: 683b ldr r3, [r7, #0] - 8008394: 781b ldrb r3, [r3, #0] - 8008396: f003 030f and.w r3, r3, #15 - 800839a: 2101 movs r1, #1 - 800839c: fa01 f303 lsl.w r3, r1, r3 - 80083a0: 041b lsls r3, r3, #16 - 80083a2: 68f9 ldr r1, [r7, #12] - 80083a4: f501 6100 add.w r1, r1, #2048 @ 0x800 - 80083a8: 4313 orrs r3, r2 - 80083aa: 61cb str r3, [r1, #28] + 8008442: 68fb ldr r3, [r7, #12] + 8008444: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008448: 69da ldr r2, [r3, #28] + 800844a: 683b ldr r3, [r7, #0] + 800844c: 781b ldrb r3, [r3, #0] + 800844e: f003 030f and.w r3, r3, #15 + 8008452: 2101 movs r1, #1 + 8008454: fa01 f303 lsl.w r3, r1, r3 + 8008458: 041b lsls r3, r3, #16 + 800845a: 68f9 ldr r1, [r7, #12] + 800845c: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8008460: 4313 orrs r3, r2 + 8008462: 61cb str r3, [r1, #28] if (((USBx_OUTEP(epnum)->DOEPCTL) & USB_OTG_DOEPCTL_USBAEP) == 0U) - 80083ac: 68bb ldr r3, [r7, #8] - 80083ae: 015a lsls r2, r3, #5 - 80083b0: 68fb ldr r3, [r7, #12] - 80083b2: 4413 add r3, r2 - 80083b4: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80083b8: 681b ldr r3, [r3, #0] - 80083ba: f403 4300 and.w r3, r3, #32768 @ 0x8000 - 80083be: 2b00 cmp r3, #0 - 80083c0: d11a bne.n 80083f8 + 8008464: 68bb ldr r3, [r7, #8] + 8008466: 015a lsls r2, r3, #5 + 8008468: 68fb ldr r3, [r7, #12] + 800846a: 4413 add r3, r2 + 800846c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008470: 681b ldr r3, [r3, #0] + 8008472: f403 4300 and.w r3, r3, #32768 @ 0x8000 + 8008476: 2b00 cmp r3, #0 + 8008478: d11a bne.n 80084b0 { USBx_OUTEP(epnum)->DOEPCTL |= (ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ) | - 80083c2: 68bb ldr r3, [r7, #8] - 80083c4: 015a lsls r2, r3, #5 - 80083c6: 68fb ldr r3, [r7, #12] - 80083c8: 4413 add r3, r2 - 80083ca: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80083ce: 681a ldr r2, [r3, #0] - 80083d0: 683b ldr r3, [r7, #0] - 80083d2: 689b ldr r3, [r3, #8] - 80083d4: f3c3 010a ubfx r1, r3, #0, #11 + 800847a: 68bb ldr r3, [r7, #8] + 800847c: 015a lsls r2, r3, #5 + 800847e: 68fb ldr r3, [r7, #12] + 8008480: 4413 add r3, r2 + 8008482: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008486: 681a ldr r2, [r3, #0] + 8008488: 683b ldr r3, [r7, #0] + 800848a: 689b ldr r3, [r3, #8] + 800848c: f3c3 010a ubfx r1, r3, #0, #11 ((uint32_t)ep->type << 18) | - 80083d8: 683b ldr r3, [r7, #0] - 80083da: 791b ldrb r3, [r3, #4] - 80083dc: 049b lsls r3, r3, #18 + 8008490: 683b ldr r3, [r7, #0] + 8008492: 791b ldrb r3, [r3, #4] + 8008494: 049b lsls r3, r3, #18 USBx_OUTEP(epnum)->DOEPCTL |= (ep->maxpacket & USB_OTG_DOEPCTL_MPSIZ) | - 80083de: 430b orrs r3, r1 - 80083e0: 4313 orrs r3, r2 - 80083e2: 68ba ldr r2, [r7, #8] - 80083e4: 0151 lsls r1, r2, #5 - 80083e6: 68fa ldr r2, [r7, #12] - 80083e8: 440a add r2, r1 - 80083ea: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 80083ee: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 80083f2: f443 4300 orr.w r3, r3, #32768 @ 0x8000 - 80083f6: 6013 str r3, [r2, #0] + 8008496: 430b orrs r3, r1 + 8008498: 4313 orrs r3, r2 + 800849a: 68ba ldr r2, [r7, #8] + 800849c: 0151 lsls r1, r2, #5 + 800849e: 68fa ldr r2, [r7, #12] + 80084a0: 440a add r2, r1 + 80084a2: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80084a6: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80084aa: f443 4300 orr.w r3, r3, #32768 @ 0x8000 + 80084ae: 6013 str r3, [r2, #0] USB_OTG_DIEPCTL_SD0PID_SEVNFRM | USB_OTG_DOEPCTL_USBAEP; } } return HAL_OK; - 80083f8: 2300 movs r3, #0 + 80084b0: 2300 movs r3, #0 } - 80083fa: 4618 mov r0, r3 - 80083fc: 3714 adds r7, #20 - 80083fe: 46bd mov sp, r7 - 8008400: f85d 7b04 ldr.w r7, [sp], #4 - 8008404: 4770 bx lr + 80084b2: 4618 mov r0, r3 + 80084b4: 3714 adds r7, #20 + 80084b6: 46bd mov sp, r7 + 80084b8: f85d 7b04 ldr.w r7, [sp], #4 + 80084bc: 4770 bx lr ... -08008408 : +080084c0 : * @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) { - 8008408: b480 push {r7} - 800840a: b085 sub sp, #20 - 800840c: af00 add r7, sp, #0 - 800840e: 6078 str r0, [r7, #4] - 8008410: 6039 str r1, [r7, #0] + 80084c0: b480 push {r7} + 80084c2: b085 sub sp, #20 + 80084c4: af00 add r7, sp, #0 + 80084c6: 6078 str r0, [r7, #4] + 80084c8: 6039 str r1, [r7, #0] uint32_t USBx_BASE = (uint32_t)USBx; - 8008412: 687b ldr r3, [r7, #4] - 8008414: 60fb str r3, [r7, #12] + 80084ca: 687b ldr r3, [r7, #4] + 80084cc: 60fb str r3, [r7, #12] uint32_t epnum = (uint32_t)ep->num; - 8008416: 683b ldr r3, [r7, #0] - 8008418: 781b ldrb r3, [r3, #0] - 800841a: 60bb str r3, [r7, #8] + 80084ce: 683b ldr r3, [r7, #0] + 80084d0: 781b ldrb r3, [r3, #0] + 80084d2: 60bb str r3, [r7, #8] /* Read DEPCTLn register */ if (ep->is_in == 1U) - 800841c: 683b ldr r3, [r7, #0] - 800841e: 785b ldrb r3, [r3, #1] - 8008420: 2b01 cmp r3, #1 - 8008422: d161 bne.n 80084e8 + 80084d4: 683b ldr r3, [r7, #0] + 80084d6: 785b ldrb r3, [r3, #1] + 80084d8: 2b01 cmp r3, #1 + 80084da: d161 bne.n 80085a0 { if ((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) - 8008424: 68bb ldr r3, [r7, #8] - 8008426: 015a lsls r2, r3, #5 - 8008428: 68fb ldr r3, [r7, #12] - 800842a: 4413 add r3, r2 - 800842c: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008430: 681b ldr r3, [r3, #0] - 8008432: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8008436: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 800843a: d11f bne.n 800847c + 80084dc: 68bb ldr r3, [r7, #8] + 80084de: 015a lsls r2, r3, #5 + 80084e0: 68fb ldr r3, [r7, #12] + 80084e2: 4413 add r3, r2 + 80084e4: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80084e8: 681b ldr r3, [r3, #0] + 80084ea: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 80084ee: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 80084f2: d11f bne.n 8008534 { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SNAK; - 800843c: 68bb ldr r3, [r7, #8] - 800843e: 015a lsls r2, r3, #5 - 8008440: 68fb ldr r3, [r7, #12] - 8008442: 4413 add r3, r2 - 8008444: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008448: 681b ldr r3, [r3, #0] - 800844a: 68ba ldr r2, [r7, #8] - 800844c: 0151 lsls r1, r2, #5 - 800844e: 68fa ldr r2, [r7, #12] - 8008450: 440a add r2, r1 - 8008452: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008456: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 800845a: 6013 str r3, [r2, #0] + 80084f4: 68bb ldr r3, [r7, #8] + 80084f6: 015a lsls r2, r3, #5 + 80084f8: 68fb ldr r3, [r7, #12] + 80084fa: 4413 add r3, r2 + 80084fc: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008500: 681b ldr r3, [r3, #0] + 8008502: 68ba ldr r2, [r7, #8] + 8008504: 0151 lsls r1, r2, #5 + 8008506: 68fa ldr r2, [r7, #12] + 8008508: 440a add r2, r1 + 800850a: f502 6210 add.w r2, r2, #2304 @ 0x900 + 800850e: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 8008512: 6013 str r3, [r2, #0] USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_EPDIS; - 800845c: 68bb ldr r3, [r7, #8] - 800845e: 015a lsls r2, r3, #5 - 8008460: 68fb ldr r3, [r7, #12] - 8008462: 4413 add r3, r2 - 8008464: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008468: 681b ldr r3, [r3, #0] - 800846a: 68ba ldr r2, [r7, #8] - 800846c: 0151 lsls r1, r2, #5 - 800846e: 68fa ldr r2, [r7, #12] - 8008470: 440a add r2, r1 - 8008472: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008476: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 800847a: 6013 str r3, [r2, #0] + 8008514: 68bb ldr r3, [r7, #8] + 8008516: 015a lsls r2, r3, #5 + 8008518: 68fb ldr r3, [r7, #12] + 800851a: 4413 add r3, r2 + 800851c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008520: 681b ldr r3, [r3, #0] + 8008522: 68ba ldr r2, [r7, #8] + 8008524: 0151 lsls r1, r2, #5 + 8008526: 68fa ldr r2, [r7, #12] + 8008528: 440a add r2, r1 + 800852a: f502 6210 add.w r2, r2, #2304 @ 0x900 + 800852e: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 8008532: 6013 str r3, [r2, #0] } USBx_DEVICE->DEACHMSK &= ~(USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK))); - 800847c: 68fb ldr r3, [r7, #12] - 800847e: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008482: 6bda ldr r2, [r3, #60] @ 0x3c - 8008484: 683b ldr r3, [r7, #0] - 8008486: 781b ldrb r3, [r3, #0] - 8008488: f003 030f and.w r3, r3, #15 - 800848c: 2101 movs r1, #1 - 800848e: fa01 f303 lsl.w r3, r1, r3 - 8008492: b29b uxth r3, r3 - 8008494: 43db mvns r3, r3 - 8008496: 68f9 ldr r1, [r7, #12] - 8008498: f501 6100 add.w r1, r1, #2048 @ 0x800 - 800849c: 4013 ands r3, r2 - 800849e: 63cb str r3, [r1, #60] @ 0x3c + 8008534: 68fb ldr r3, [r7, #12] + 8008536: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800853a: 6bda ldr r2, [r3, #60] @ 0x3c + 800853c: 683b ldr r3, [r7, #0] + 800853e: 781b ldrb r3, [r3, #0] + 8008540: f003 030f and.w r3, r3, #15 + 8008544: 2101 movs r1, #1 + 8008546: fa01 f303 lsl.w r3, r1, r3 + 800854a: b29b uxth r3, r3 + 800854c: 43db mvns r3, r3 + 800854e: 68f9 ldr r1, [r7, #12] + 8008550: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8008554: 4013 ands r3, r2 + 8008556: 63cb str r3, [r1, #60] @ 0x3c USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_IEPM & (uint32_t)(1UL << (ep->num & EP_ADDR_MSK))); - 80084a0: 68fb ldr r3, [r7, #12] - 80084a2: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80084a6: 69da ldr r2, [r3, #28] - 80084a8: 683b ldr r3, [r7, #0] - 80084aa: 781b ldrb r3, [r3, #0] - 80084ac: f003 030f and.w r3, r3, #15 - 80084b0: 2101 movs r1, #1 - 80084b2: fa01 f303 lsl.w r3, r1, r3 - 80084b6: b29b uxth r3, r3 - 80084b8: 43db mvns r3, r3 - 80084ba: 68f9 ldr r1, [r7, #12] - 80084bc: f501 6100 add.w r1, r1, #2048 @ 0x800 - 80084c0: 4013 ands r3, r2 - 80084c2: 61cb str r3, [r1, #28] + 8008558: 68fb ldr r3, [r7, #12] + 800855a: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800855e: 69da ldr r2, [r3, #28] + 8008560: 683b ldr r3, [r7, #0] + 8008562: 781b ldrb r3, [r3, #0] + 8008564: f003 030f and.w r3, r3, #15 + 8008568: 2101 movs r1, #1 + 800856a: fa01 f303 lsl.w r3, r1, r3 + 800856e: b29b uxth r3, r3 + 8008570: 43db mvns r3, r3 + 8008572: 68f9 ldr r1, [r7, #12] + 8008574: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8008578: 4013 ands r3, r2 + 800857a: 61cb str r3, [r1, #28] USBx_INEP(epnum)->DIEPCTL &= ~(USB_OTG_DIEPCTL_USBAEP | - 80084c4: 68bb ldr r3, [r7, #8] - 80084c6: 015a lsls r2, r3, #5 - 80084c8: 68fb ldr r3, [r7, #12] - 80084ca: 4413 add r3, r2 - 80084cc: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80084d0: 681a ldr r2, [r3, #0] - 80084d2: 68bb ldr r3, [r7, #8] - 80084d4: 0159 lsls r1, r3, #5 - 80084d6: 68fb ldr r3, [r7, #12] - 80084d8: 440b add r3, r1 - 80084da: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80084de: 4619 mov r1, r3 - 80084e0: 4b35 ldr r3, [pc, #212] @ (80085b8 ) - 80084e2: 4013 ands r3, r2 - 80084e4: 600b str r3, [r1, #0] - 80084e6: e060 b.n 80085aa + 800857c: 68bb ldr r3, [r7, #8] + 800857e: 015a lsls r2, r3, #5 + 8008580: 68fb ldr r3, [r7, #12] + 8008582: 4413 add r3, r2 + 8008584: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008588: 681a ldr r2, [r3, #0] + 800858a: 68bb ldr r3, [r7, #8] + 800858c: 0159 lsls r1, r3, #5 + 800858e: 68fb ldr r3, [r7, #12] + 8008590: 440b add r3, r1 + 8008592: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008596: 4619 mov r1, r3 + 8008598: 4b35 ldr r3, [pc, #212] @ (8008670 ) + 800859a: 4013 ands r3, r2 + 800859c: 600b str r3, [r1, #0] + 800859e: e060 b.n 8008662 USB_OTG_DIEPCTL_SD0PID_SEVNFRM | USB_OTG_DIEPCTL_EPTYP); } else { if ((USBx_OUTEP(epnum)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) - 80084e8: 68bb ldr r3, [r7, #8] - 80084ea: 015a lsls r2, r3, #5 - 80084ec: 68fb ldr r3, [r7, #12] - 80084ee: 4413 add r3, r2 - 80084f0: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80084f4: 681b ldr r3, [r3, #0] - 80084f6: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 80084fa: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 80084fe: d11f bne.n 8008540 + 80085a0: 68bb ldr r3, [r7, #8] + 80085a2: 015a lsls r2, r3, #5 + 80085a4: 68fb ldr r3, [r7, #12] + 80085a6: 4413 add r3, r2 + 80085a8: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80085ac: 681b ldr r3, [r3, #0] + 80085ae: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 80085b2: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 80085b6: d11f bne.n 80085f8 { USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SNAK; - 8008500: 68bb ldr r3, [r7, #8] - 8008502: 015a lsls r2, r3, #5 - 8008504: 68fb ldr r3, [r7, #12] - 8008506: 4413 add r3, r2 - 8008508: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800850c: 681b ldr r3, [r3, #0] - 800850e: 68ba ldr r2, [r7, #8] - 8008510: 0151 lsls r1, r2, #5 - 8008512: 68fa ldr r2, [r7, #12] - 8008514: 440a add r2, r1 - 8008516: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 800851a: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 800851e: 6013 str r3, [r2, #0] + 80085b8: 68bb ldr r3, [r7, #8] + 80085ba: 015a lsls r2, r3, #5 + 80085bc: 68fb ldr r3, [r7, #12] + 80085be: 4413 add r3, r2 + 80085c0: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80085c4: 681b ldr r3, [r3, #0] + 80085c6: 68ba ldr r2, [r7, #8] + 80085c8: 0151 lsls r1, r2, #5 + 80085ca: 68fa ldr r2, [r7, #12] + 80085cc: 440a add r2, r1 + 80085ce: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80085d2: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 80085d6: 6013 str r3, [r2, #0] USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_EPDIS; - 8008520: 68bb ldr r3, [r7, #8] - 8008522: 015a lsls r2, r3, #5 - 8008524: 68fb ldr r3, [r7, #12] - 8008526: 4413 add r3, r2 - 8008528: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800852c: 681b ldr r3, [r3, #0] - 800852e: 68ba ldr r2, [r7, #8] - 8008530: 0151 lsls r1, r2, #5 - 8008532: 68fa ldr r2, [r7, #12] - 8008534: 440a add r2, r1 - 8008536: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 800853a: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 800853e: 6013 str r3, [r2, #0] + 80085d8: 68bb ldr r3, [r7, #8] + 80085da: 015a lsls r2, r3, #5 + 80085dc: 68fb ldr r3, [r7, #12] + 80085de: 4413 add r3, r2 + 80085e0: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80085e4: 681b ldr r3, [r3, #0] + 80085e6: 68ba ldr r2, [r7, #8] + 80085e8: 0151 lsls r1, r2, #5 + 80085ea: 68fa ldr r2, [r7, #12] + 80085ec: 440a add r2, r1 + 80085ee: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80085f2: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 80085f6: 6013 str r3, [r2, #0] } USBx_DEVICE->DEACHMSK &= ~(USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16)); - 8008540: 68fb ldr r3, [r7, #12] - 8008542: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008546: 6bda ldr r2, [r3, #60] @ 0x3c - 8008548: 683b ldr r3, [r7, #0] - 800854a: 781b ldrb r3, [r3, #0] - 800854c: f003 030f and.w r3, r3, #15 - 8008550: 2101 movs r1, #1 - 8008552: fa01 f303 lsl.w r3, r1, r3 - 8008556: 041b lsls r3, r3, #16 - 8008558: 43db mvns r3, r3 - 800855a: 68f9 ldr r1, [r7, #12] - 800855c: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8008560: 4013 ands r3, r2 - 8008562: 63cb str r3, [r1, #60] @ 0x3c + 80085f8: 68fb ldr r3, [r7, #12] + 80085fa: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80085fe: 6bda ldr r2, [r3, #60] @ 0x3c + 8008600: 683b ldr r3, [r7, #0] + 8008602: 781b ldrb r3, [r3, #0] + 8008604: f003 030f and.w r3, r3, #15 + 8008608: 2101 movs r1, #1 + 800860a: fa01 f303 lsl.w r3, r1, r3 + 800860e: 041b lsls r3, r3, #16 + 8008610: 43db mvns r3, r3 + 8008612: 68f9 ldr r1, [r7, #12] + 8008614: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8008618: 4013 ands r3, r2 + 800861a: 63cb str r3, [r1, #60] @ 0x3c USBx_DEVICE->DAINTMSK &= ~(USB_OTG_DAINTMSK_OEPM & ((uint32_t)(1UL << (ep->num & EP_ADDR_MSK)) << 16)); - 8008564: 68fb ldr r3, [r7, #12] - 8008566: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800856a: 69da ldr r2, [r3, #28] - 800856c: 683b ldr r3, [r7, #0] - 800856e: 781b ldrb r3, [r3, #0] - 8008570: f003 030f and.w r3, r3, #15 - 8008574: 2101 movs r1, #1 - 8008576: fa01 f303 lsl.w r3, r1, r3 - 800857a: 041b lsls r3, r3, #16 - 800857c: 43db mvns r3, r3 - 800857e: 68f9 ldr r1, [r7, #12] - 8008580: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8008584: 4013 ands r3, r2 - 8008586: 61cb str r3, [r1, #28] + 800861c: 68fb ldr r3, [r7, #12] + 800861e: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008622: 69da ldr r2, [r3, #28] + 8008624: 683b ldr r3, [r7, #0] + 8008626: 781b ldrb r3, [r3, #0] + 8008628: f003 030f and.w r3, r3, #15 + 800862c: 2101 movs r1, #1 + 800862e: fa01 f303 lsl.w r3, r1, r3 + 8008632: 041b lsls r3, r3, #16 + 8008634: 43db mvns r3, r3 + 8008636: 68f9 ldr r1, [r7, #12] + 8008638: f501 6100 add.w r1, r1, #2048 @ 0x800 + 800863c: 4013 ands r3, r2 + 800863e: 61cb str r3, [r1, #28] USBx_OUTEP(epnum)->DOEPCTL &= ~(USB_OTG_DOEPCTL_USBAEP | - 8008588: 68bb ldr r3, [r7, #8] - 800858a: 015a lsls r2, r3, #5 - 800858c: 68fb ldr r3, [r7, #12] - 800858e: 4413 add r3, r2 - 8008590: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008594: 681a ldr r2, [r3, #0] - 8008596: 68bb ldr r3, [r7, #8] - 8008598: 0159 lsls r1, r3, #5 - 800859a: 68fb ldr r3, [r7, #12] - 800859c: 440b add r3, r1 - 800859e: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80085a2: 4619 mov r1, r3 - 80085a4: 4b05 ldr r3, [pc, #20] @ (80085bc ) - 80085a6: 4013 ands r3, r2 - 80085a8: 600b str r3, [r1, #0] + 8008640: 68bb ldr r3, [r7, #8] + 8008642: 015a lsls r2, r3, #5 + 8008644: 68fb ldr r3, [r7, #12] + 8008646: 4413 add r3, r2 + 8008648: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800864c: 681a ldr r2, [r3, #0] + 800864e: 68bb ldr r3, [r7, #8] + 8008650: 0159 lsls r1, r3, #5 + 8008652: 68fb ldr r3, [r7, #12] + 8008654: 440b add r3, r1 + 8008656: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800865a: 4619 mov r1, r3 + 800865c: 4b05 ldr r3, [pc, #20] @ (8008674 ) + 800865e: 4013 ands r3, r2 + 8008660: 600b str r3, [r1, #0] USB_OTG_DOEPCTL_MPSIZ | USB_OTG_DOEPCTL_SD0PID_SEVNFRM | USB_OTG_DOEPCTL_EPTYP); } return HAL_OK; - 80085aa: 2300 movs r3, #0 + 8008662: 2300 movs r3, #0 } - 80085ac: 4618 mov r0, r3 - 80085ae: 3714 adds r7, #20 - 80085b0: 46bd mov sp, r7 - 80085b2: f85d 7b04 ldr.w r7, [sp], #4 - 80085b6: 4770 bx lr - 80085b8: ec337800 .word 0xec337800 - 80085bc: eff37800 .word 0xeff37800 + 8008664: 4618 mov r0, r3 + 8008666: 3714 adds r7, #20 + 8008668: 46bd mov sp, r7 + 800866a: f85d 7b04 ldr.w r7, [sp], #4 + 800866e: 4770 bx lr + 8008670: ec337800 .word 0xec337800 + 8008674: eff37800 .word 0xeff37800 -080085c0 : +08008678 : * 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) { - 80085c0: b580 push {r7, lr} - 80085c2: b08a sub sp, #40 @ 0x28 - 80085c4: af02 add r7, sp, #8 - 80085c6: 60f8 str r0, [r7, #12] - 80085c8: 60b9 str r1, [r7, #8] - 80085ca: 4613 mov r3, r2 - 80085cc: 71fb strb r3, [r7, #7] + 8008678: b580 push {r7, lr} + 800867a: b08a sub sp, #40 @ 0x28 + 800867c: af02 add r7, sp, #8 + 800867e: 60f8 str r0, [r7, #12] + 8008680: 60b9 str r1, [r7, #8] + 8008682: 4613 mov r3, r2 + 8008684: 71fb strb r3, [r7, #7] uint32_t USBx_BASE = (uint32_t)USBx; - 80085ce: 68fb ldr r3, [r7, #12] - 80085d0: 61fb str r3, [r7, #28] + 8008686: 68fb ldr r3, [r7, #12] + 8008688: 61fb str r3, [r7, #28] uint32_t epnum = (uint32_t)ep->num; - 80085d2: 68bb ldr r3, [r7, #8] - 80085d4: 781b ldrb r3, [r3, #0] - 80085d6: 61bb str r3, [r7, #24] + 800868a: 68bb ldr r3, [r7, #8] + 800868c: 781b ldrb r3, [r3, #0] + 800868e: 61bb str r3, [r7, #24] uint16_t pktcnt; /* IN endpoint */ if (ep->is_in == 1U) - 80085d8: 68bb ldr r3, [r7, #8] - 80085da: 785b ldrb r3, [r3, #1] - 80085dc: 2b01 cmp r3, #1 - 80085de: f040 817f bne.w 80088e0 + 8008690: 68bb ldr r3, [r7, #8] + 8008692: 785b ldrb r3, [r3, #1] + 8008694: 2b01 cmp r3, #1 + 8008696: f040 817f bne.w 8008998 { /* Zero Length Packet? */ if (ep->xfer_len == 0U) - 80085e2: 68bb ldr r3, [r7, #8] - 80085e4: 691b ldr r3, [r3, #16] - 80085e6: 2b00 cmp r3, #0 - 80085e8: d132 bne.n 8008650 + 800869a: 68bb ldr r3, [r7, #8] + 800869c: 691b ldr r3, [r3, #16] + 800869e: 2b00 cmp r3, #0 + 80086a0: d132 bne.n 8008708 { USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT); - 80085ea: 69bb ldr r3, [r7, #24] - 80085ec: 015a lsls r2, r3, #5 - 80085ee: 69fb ldr r3, [r7, #28] - 80085f0: 4413 add r3, r2 - 80085f2: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80085f6: 691b ldr r3, [r3, #16] - 80085f8: 69ba ldr r2, [r7, #24] - 80085fa: 0151 lsls r1, r2, #5 - 80085fc: 69fa ldr r2, [r7, #28] - 80085fe: 440a add r2, r1 - 8008600: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008604: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 - 8008608: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 - 800860c: 6113 str r3, [r2, #16] + 80086a2: 69bb ldr r3, [r7, #24] + 80086a4: 015a lsls r2, r3, #5 + 80086a6: 69fb ldr r3, [r7, #28] + 80086a8: 4413 add r3, r2 + 80086aa: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80086ae: 691b ldr r3, [r3, #16] + 80086b0: 69ba ldr r2, [r7, #24] + 80086b2: 0151 lsls r1, r2, #5 + 80086b4: 69fa ldr r2, [r7, #28] + 80086b6: 440a add r2, r1 + 80086b8: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80086bc: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 + 80086c0: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 + 80086c4: 6113 str r3, [r2, #16] USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (1U << 19)); - 800860e: 69bb ldr r3, [r7, #24] - 8008610: 015a lsls r2, r3, #5 - 8008612: 69fb ldr r3, [r7, #28] - 8008614: 4413 add r3, r2 - 8008616: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800861a: 691b ldr r3, [r3, #16] - 800861c: 69ba ldr r2, [r7, #24] - 800861e: 0151 lsls r1, r2, #5 - 8008620: 69fa ldr r2, [r7, #28] - 8008622: 440a add r2, r1 - 8008624: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008628: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 800862c: 6113 str r3, [r2, #16] + 80086c6: 69bb ldr r3, [r7, #24] + 80086c8: 015a lsls r2, r3, #5 + 80086ca: 69fb ldr r3, [r7, #28] + 80086cc: 4413 add r3, r2 + 80086ce: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80086d2: 691b ldr r3, [r3, #16] + 80086d4: 69ba ldr r2, [r7, #24] + 80086d6: 0151 lsls r1, r2, #5 + 80086d8: 69fa ldr r2, [r7, #28] + 80086da: 440a add r2, r1 + 80086dc: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80086e0: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 80086e4: 6113 str r3, [r2, #16] USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_XFRSIZ); - 800862e: 69bb ldr r3, [r7, #24] - 8008630: 015a lsls r2, r3, #5 - 8008632: 69fb ldr r3, [r7, #28] - 8008634: 4413 add r3, r2 - 8008636: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800863a: 691b ldr r3, [r3, #16] - 800863c: 69ba ldr r2, [r7, #24] - 800863e: 0151 lsls r1, r2, #5 - 8008640: 69fa ldr r2, [r7, #28] - 8008642: 440a add r2, r1 - 8008644: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008648: 0cdb lsrs r3, r3, #19 - 800864a: 04db lsls r3, r3, #19 - 800864c: 6113 str r3, [r2, #16] - 800864e: e097 b.n 8008780 + 80086e6: 69bb ldr r3, [r7, #24] + 80086e8: 015a lsls r2, r3, #5 + 80086ea: 69fb ldr r3, [r7, #28] + 80086ec: 4413 add r3, r2 + 80086ee: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80086f2: 691b ldr r3, [r3, #16] + 80086f4: 69ba ldr r2, [r7, #24] + 80086f6: 0151 lsls r1, r2, #5 + 80086f8: 69fa ldr r2, [r7, #28] + 80086fa: 440a add r2, r1 + 80086fc: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008700: 0cdb lsrs r3, r3, #19 + 8008702: 04db lsls r3, r3, #19 + 8008704: 6113 str r3, [r2, #16] + 8008706: e097 b.n 8008838 /* 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); - 8008650: 69bb ldr r3, [r7, #24] - 8008652: 015a lsls r2, r3, #5 - 8008654: 69fb ldr r3, [r7, #28] - 8008656: 4413 add r3, r2 - 8008658: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800865c: 691b ldr r3, [r3, #16] - 800865e: 69ba ldr r2, [r7, #24] - 8008660: 0151 lsls r1, r2, #5 - 8008662: 69fa ldr r2, [r7, #28] - 8008664: 440a add r2, r1 - 8008666: f502 6210 add.w r2, r2, #2304 @ 0x900 - 800866a: 0cdb lsrs r3, r3, #19 - 800866c: 04db lsls r3, r3, #19 - 800866e: 6113 str r3, [r2, #16] + 8008708: 69bb ldr r3, [r7, #24] + 800870a: 015a lsls r2, r3, #5 + 800870c: 69fb ldr r3, [r7, #28] + 800870e: 4413 add r3, r2 + 8008710: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008714: 691b ldr r3, [r3, #16] + 8008716: 69ba ldr r2, [r7, #24] + 8008718: 0151 lsls r1, r2, #5 + 800871a: 69fa ldr r2, [r7, #28] + 800871c: 440a add r2, r1 + 800871e: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008722: 0cdb lsrs r3, r3, #19 + 8008724: 04db lsls r3, r3, #19 + 8008726: 6113 str r3, [r2, #16] USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_PKTCNT); - 8008670: 69bb ldr r3, [r7, #24] - 8008672: 015a lsls r2, r3, #5 - 8008674: 69fb ldr r3, [r7, #28] - 8008676: 4413 add r3, r2 - 8008678: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800867c: 691b ldr r3, [r3, #16] - 800867e: 69ba ldr r2, [r7, #24] - 8008680: 0151 lsls r1, r2, #5 - 8008682: 69fa ldr r2, [r7, #28] - 8008684: 440a add r2, r1 - 8008686: f502 6210 add.w r2, r2, #2304 @ 0x900 - 800868a: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 - 800868e: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 - 8008692: 6113 str r3, [r2, #16] + 8008728: 69bb ldr r3, [r7, #24] + 800872a: 015a lsls r2, r3, #5 + 800872c: 69fb ldr r3, [r7, #28] + 800872e: 4413 add r3, r2 + 8008730: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008734: 691b ldr r3, [r3, #16] + 8008736: 69ba ldr r2, [r7, #24] + 8008738: 0151 lsls r1, r2, #5 + 800873a: 69fa ldr r2, [r7, #28] + 800873c: 440a add r2, r1 + 800873e: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008742: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 + 8008746: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 + 800874a: 6113 str r3, [r2, #16] if (epnum == 0U) - 8008694: 69bb ldr r3, [r7, #24] - 8008696: 2b00 cmp r3, #0 - 8008698: d11a bne.n 80086d0 + 800874c: 69bb ldr r3, [r7, #24] + 800874e: 2b00 cmp r3, #0 + 8008750: d11a bne.n 8008788 { if (ep->xfer_len > ep->maxpacket) - 800869a: 68bb ldr r3, [r7, #8] - 800869c: 691a ldr r2, [r3, #16] - 800869e: 68bb ldr r3, [r7, #8] - 80086a0: 689b ldr r3, [r3, #8] - 80086a2: 429a cmp r2, r3 - 80086a4: d903 bls.n 80086ae + 8008752: 68bb ldr r3, [r7, #8] + 8008754: 691a ldr r2, [r3, #16] + 8008756: 68bb ldr r3, [r7, #8] + 8008758: 689b ldr r3, [r3, #8] + 800875a: 429a cmp r2, r3 + 800875c: d903 bls.n 8008766 { ep->xfer_len = ep->maxpacket; - 80086a6: 68bb ldr r3, [r7, #8] - 80086a8: 689a ldr r2, [r3, #8] - 80086aa: 68bb ldr r3, [r7, #8] - 80086ac: 611a str r2, [r3, #16] + 800875e: 68bb ldr r3, [r7, #8] + 8008760: 689a ldr r2, [r3, #8] + 8008762: 68bb ldr r3, [r7, #8] + 8008764: 611a str r2, [r3, #16] } USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & (1U << 19)); - 80086ae: 69bb ldr r3, [r7, #24] - 80086b0: 015a lsls r2, r3, #5 - 80086b2: 69fb ldr r3, [r7, #28] - 80086b4: 4413 add r3, r2 - 80086b6: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80086ba: 691b ldr r3, [r3, #16] - 80086bc: 69ba ldr r2, [r7, #24] - 80086be: 0151 lsls r1, r2, #5 - 80086c0: 69fa ldr r2, [r7, #28] - 80086c2: 440a add r2, r1 - 80086c4: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80086c8: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 80086cc: 6113 str r3, [r2, #16] - 80086ce: e044 b.n 800875a + 8008766: 69bb ldr r3, [r7, #24] + 8008768: 015a lsls r2, r3, #5 + 800876a: 69fb ldr r3, [r7, #28] + 800876c: 4413 add r3, r2 + 800876e: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008772: 691b ldr r3, [r3, #16] + 8008774: 69ba ldr r2, [r7, #24] + 8008776: 0151 lsls r1, r2, #5 + 8008778: 69fa ldr r2, [r7, #28] + 800877a: 440a add r2, r1 + 800877c: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008780: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 8008784: 6113 str r3, [r2, #16] + 8008786: e044 b.n 8008812 } else { pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket); - 80086d0: 68bb ldr r3, [r7, #8] - 80086d2: 691a ldr r2, [r3, #16] - 80086d4: 68bb ldr r3, [r7, #8] - 80086d6: 689b ldr r3, [r3, #8] - 80086d8: 4413 add r3, r2 - 80086da: 1e5a subs r2, r3, #1 - 80086dc: 68bb ldr r3, [r7, #8] - 80086de: 689b ldr r3, [r3, #8] - 80086e0: fbb2 f3f3 udiv r3, r2, r3 - 80086e4: 82fb strh r3, [r7, #22] + 8008788: 68bb ldr r3, [r7, #8] + 800878a: 691a ldr r2, [r3, #16] + 800878c: 68bb ldr r3, [r7, #8] + 800878e: 689b ldr r3, [r3, #8] + 8008790: 4413 add r3, r2 + 8008792: 1e5a subs r2, r3, #1 + 8008794: 68bb ldr r3, [r7, #8] + 8008796: 689b ldr r3, [r3, #8] + 8008798: fbb2 f3f3 udiv r3, r2, r3 + 800879c: 82fb strh r3, [r7, #22] USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_PKTCNT & ((uint32_t)pktcnt << 19)); - 80086e6: 69bb ldr r3, [r7, #24] - 80086e8: 015a lsls r2, r3, #5 - 80086ea: 69fb ldr r3, [r7, #28] - 80086ec: 4413 add r3, r2 - 80086ee: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80086f2: 691a ldr r2, [r3, #16] - 80086f4: 8afb ldrh r3, [r7, #22] - 80086f6: 04d9 lsls r1, r3, #19 - 80086f8: 4ba4 ldr r3, [pc, #656] @ (800898c ) - 80086fa: 400b ands r3, r1 - 80086fc: 69b9 ldr r1, [r7, #24] - 80086fe: 0148 lsls r0, r1, #5 - 8008700: 69f9 ldr r1, [r7, #28] - 8008702: 4401 add r1, r0 - 8008704: f501 6110 add.w r1, r1, #2304 @ 0x900 - 8008708: 4313 orrs r3, r2 - 800870a: 610b str r3, [r1, #16] + 800879e: 69bb ldr r3, [r7, #24] + 80087a0: 015a lsls r2, r3, #5 + 80087a2: 69fb ldr r3, [r7, #28] + 80087a4: 4413 add r3, r2 + 80087a6: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80087aa: 691a ldr r2, [r3, #16] + 80087ac: 8afb ldrh r3, [r7, #22] + 80087ae: 04d9 lsls r1, r3, #19 + 80087b0: 4ba4 ldr r3, [pc, #656] @ (8008a44 ) + 80087b2: 400b ands r3, r1 + 80087b4: 69b9 ldr r1, [r7, #24] + 80087b6: 0148 lsls r0, r1, #5 + 80087b8: 69f9 ldr r1, [r7, #28] + 80087ba: 4401 add r1, r0 + 80087bc: f501 6110 add.w r1, r1, #2304 @ 0x900 + 80087c0: 4313 orrs r3, r2 + 80087c2: 610b str r3, [r1, #16] if (ep->type == EP_TYPE_ISOC) - 800870c: 68bb ldr r3, [r7, #8] - 800870e: 791b ldrb r3, [r3, #4] - 8008710: 2b01 cmp r3, #1 - 8008712: d122 bne.n 800875a + 80087c4: 68bb ldr r3, [r7, #8] + 80087c6: 791b ldrb r3, [r3, #4] + 80087c8: 2b01 cmp r3, #1 + 80087ca: d122 bne.n 8008812 { USBx_INEP(epnum)->DIEPTSIZ &= ~(USB_OTG_DIEPTSIZ_MULCNT); - 8008714: 69bb ldr r3, [r7, #24] - 8008716: 015a lsls r2, r3, #5 - 8008718: 69fb ldr r3, [r7, #28] - 800871a: 4413 add r3, r2 - 800871c: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008720: 691b ldr r3, [r3, #16] - 8008722: 69ba ldr r2, [r7, #24] - 8008724: 0151 lsls r1, r2, #5 - 8008726: 69fa ldr r2, [r7, #28] - 8008728: 440a add r2, r1 - 800872a: f502 6210 add.w r2, r2, #2304 @ 0x900 - 800872e: f023 43c0 bic.w r3, r3, #1610612736 @ 0x60000000 - 8008732: 6113 str r3, [r2, #16] + 80087cc: 69bb ldr r3, [r7, #24] + 80087ce: 015a lsls r2, r3, #5 + 80087d0: 69fb ldr r3, [r7, #28] + 80087d2: 4413 add r3, r2 + 80087d4: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80087d8: 691b ldr r3, [r3, #16] + 80087da: 69ba ldr r2, [r7, #24] + 80087dc: 0151 lsls r1, r2, #5 + 80087de: 69fa ldr r2, [r7, #28] + 80087e0: 440a add r2, r1 + 80087e2: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80087e6: f023 43c0 bic.w r3, r3, #1610612736 @ 0x60000000 + 80087ea: 6113 str r3, [r2, #16] USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_MULCNT & ((uint32_t)pktcnt << 29)); - 8008734: 69bb ldr r3, [r7, #24] - 8008736: 015a lsls r2, r3, #5 - 8008738: 69fb ldr r3, [r7, #28] - 800873a: 4413 add r3, r2 - 800873c: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008740: 691a ldr r2, [r3, #16] - 8008742: 8afb ldrh r3, [r7, #22] - 8008744: 075b lsls r3, r3, #29 - 8008746: f003 43c0 and.w r3, r3, #1610612736 @ 0x60000000 - 800874a: 69b9 ldr r1, [r7, #24] - 800874c: 0148 lsls r0, r1, #5 - 800874e: 69f9 ldr r1, [r7, #28] - 8008750: 4401 add r1, r0 - 8008752: f501 6110 add.w r1, r1, #2304 @ 0x900 - 8008756: 4313 orrs r3, r2 - 8008758: 610b str r3, [r1, #16] + 80087ec: 69bb ldr r3, [r7, #24] + 80087ee: 015a lsls r2, r3, #5 + 80087f0: 69fb ldr r3, [r7, #28] + 80087f2: 4413 add r3, r2 + 80087f4: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80087f8: 691a ldr r2, [r3, #16] + 80087fa: 8afb ldrh r3, [r7, #22] + 80087fc: 075b lsls r3, r3, #29 + 80087fe: f003 43c0 and.w r3, r3, #1610612736 @ 0x60000000 + 8008802: 69b9 ldr r1, [r7, #24] + 8008804: 0148 lsls r0, r1, #5 + 8008806: 69f9 ldr r1, [r7, #28] + 8008808: 4401 add r1, r0 + 800880a: f501 6110 add.w r1, r1, #2304 @ 0x900 + 800880e: 4313 orrs r3, r2 + 8008810: 610b str r3, [r1, #16] } } USBx_INEP(epnum)->DIEPTSIZ |= (USB_OTG_DIEPTSIZ_XFRSIZ & ep->xfer_len); - 800875a: 69bb ldr r3, [r7, #24] - 800875c: 015a lsls r2, r3, #5 - 800875e: 69fb ldr r3, [r7, #28] - 8008760: 4413 add r3, r2 - 8008762: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008766: 691a ldr r2, [r3, #16] - 8008768: 68bb ldr r3, [r7, #8] - 800876a: 691b ldr r3, [r3, #16] - 800876c: f3c3 0312 ubfx r3, r3, #0, #19 - 8008770: 69b9 ldr r1, [r7, #24] - 8008772: 0148 lsls r0, r1, #5 - 8008774: 69f9 ldr r1, [r7, #28] - 8008776: 4401 add r1, r0 - 8008778: f501 6110 add.w r1, r1, #2304 @ 0x900 - 800877c: 4313 orrs r3, r2 - 800877e: 610b str r3, [r1, #16] + 8008812: 69bb ldr r3, [r7, #24] + 8008814: 015a lsls r2, r3, #5 + 8008816: 69fb ldr r3, [r7, #28] + 8008818: 4413 add r3, r2 + 800881a: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800881e: 691a ldr r2, [r3, #16] + 8008820: 68bb ldr r3, [r7, #8] + 8008822: 691b ldr r3, [r3, #16] + 8008824: f3c3 0312 ubfx r3, r3, #0, #19 + 8008828: 69b9 ldr r1, [r7, #24] + 800882a: 0148 lsls r0, r1, #5 + 800882c: 69f9 ldr r1, [r7, #28] + 800882e: 4401 add r1, r0 + 8008830: f501 6110 add.w r1, r1, #2304 @ 0x900 + 8008834: 4313 orrs r3, r2 + 8008836: 610b str r3, [r1, #16] } if (dma == 1U) - 8008780: 79fb ldrb r3, [r7, #7] - 8008782: 2b01 cmp r3, #1 - 8008784: d14b bne.n 800881e + 8008838: 79fb ldrb r3, [r7, #7] + 800883a: 2b01 cmp r3, #1 + 800883c: d14b bne.n 80088d6 { if ((uint32_t)ep->dma_addr != 0U) - 8008786: 68bb ldr r3, [r7, #8] - 8008788: 69db ldr r3, [r3, #28] - 800878a: 2b00 cmp r3, #0 - 800878c: d009 beq.n 80087a2 + 800883e: 68bb ldr r3, [r7, #8] + 8008840: 69db ldr r3, [r3, #28] + 8008842: 2b00 cmp r3, #0 + 8008844: d009 beq.n 800885a { USBx_INEP(epnum)->DIEPDMA = (uint32_t)(ep->dma_addr); - 800878e: 69bb ldr r3, [r7, #24] - 8008790: 015a lsls r2, r3, #5 - 8008792: 69fb ldr r3, [r7, #28] - 8008794: 4413 add r3, r2 - 8008796: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800879a: 461a mov r2, r3 - 800879c: 68bb ldr r3, [r7, #8] - 800879e: 69db ldr r3, [r3, #28] - 80087a0: 6153 str r3, [r2, #20] + 8008846: 69bb ldr r3, [r7, #24] + 8008848: 015a lsls r2, r3, #5 + 800884a: 69fb ldr r3, [r7, #28] + 800884c: 4413 add r3, r2 + 800884e: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008852: 461a mov r2, r3 + 8008854: 68bb ldr r3, [r7, #8] + 8008856: 69db ldr r3, [r3, #28] + 8008858: 6153 str r3, [r2, #20] } if (ep->type == EP_TYPE_ISOC) - 80087a2: 68bb ldr r3, [r7, #8] - 80087a4: 791b ldrb r3, [r3, #4] - 80087a6: 2b01 cmp r3, #1 - 80087a8: d128 bne.n 80087fc + 800885a: 68bb ldr r3, [r7, #8] + 800885c: 791b ldrb r3, [r3, #4] + 800885e: 2b01 cmp r3, #1 + 8008860: d128 bne.n 80088b4 { if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U) - 80087aa: 69fb ldr r3, [r7, #28] - 80087ac: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80087b0: 689b ldr r3, [r3, #8] - 80087b2: f403 7380 and.w r3, r3, #256 @ 0x100 - 80087b6: 2b00 cmp r3, #0 - 80087b8: d110 bne.n 80087dc + 8008862: 69fb ldr r3, [r7, #28] + 8008864: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008868: 689b ldr r3, [r3, #8] + 800886a: f403 7380 and.w r3, r3, #256 @ 0x100 + 800886e: 2b00 cmp r3, #0 + 8008870: d110 bne.n 8008894 { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SODDFRM; - 80087ba: 69bb ldr r3, [r7, #24] - 80087bc: 015a lsls r2, r3, #5 - 80087be: 69fb ldr r3, [r7, #28] - 80087c0: 4413 add r3, r2 - 80087c2: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80087c6: 681b ldr r3, [r3, #0] - 80087c8: 69ba ldr r2, [r7, #24] - 80087ca: 0151 lsls r1, r2, #5 - 80087cc: 69fa ldr r2, [r7, #28] - 80087ce: 440a add r2, r1 - 80087d0: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80087d4: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 - 80087d8: 6013 str r3, [r2, #0] - 80087da: e00f b.n 80087fc + 8008872: 69bb ldr r3, [r7, #24] + 8008874: 015a lsls r2, r3, #5 + 8008876: 69fb ldr r3, [r7, #28] + 8008878: 4413 add r3, r2 + 800887a: f503 6310 add.w r3, r3, #2304 @ 0x900 + 800887e: 681b ldr r3, [r3, #0] + 8008880: 69ba ldr r2, [r7, #24] + 8008882: 0151 lsls r1, r2, #5 + 8008884: 69fa ldr r2, [r7, #28] + 8008886: 440a add r2, r1 + 8008888: f502 6210 add.w r2, r2, #2304 @ 0x900 + 800888c: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 + 8008890: 6013 str r3, [r2, #0] + 8008892: e00f b.n 80088b4 } else { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM; - 80087dc: 69bb ldr r3, [r7, #24] - 80087de: 015a lsls r2, r3, #5 - 80087e0: 69fb ldr r3, [r7, #28] - 80087e2: 4413 add r3, r2 - 80087e4: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80087e8: 681b ldr r3, [r3, #0] - 80087ea: 69ba ldr r2, [r7, #24] - 80087ec: 0151 lsls r1, r2, #5 - 80087ee: 69fa ldr r2, [r7, #28] - 80087f0: 440a add r2, r1 - 80087f2: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80087f6: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 80087fa: 6013 str r3, [r2, #0] + 8008894: 69bb ldr r3, [r7, #24] + 8008896: 015a lsls r2, r3, #5 + 8008898: 69fb ldr r3, [r7, #28] + 800889a: 4413 add r3, r2 + 800889c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80088a0: 681b ldr r3, [r3, #0] + 80088a2: 69ba ldr r2, [r7, #24] + 80088a4: 0151 lsls r1, r2, #5 + 80088a6: 69fa ldr r2, [r7, #28] + 80088a8: 440a add r2, r1 + 80088aa: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80088ae: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 80088b2: 6013 str r3, [r2, #0] } } /* EP enable, IN data in FIFO */ USBx_INEP(epnum)->DIEPCTL |= (USB_OTG_DIEPCTL_CNAK | USB_OTG_DIEPCTL_EPENA); - 80087fc: 69bb ldr r3, [r7, #24] - 80087fe: 015a lsls r2, r3, #5 - 8008800: 69fb ldr r3, [r7, #28] - 8008802: 4413 add r3, r2 - 8008804: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008808: 681b ldr r3, [r3, #0] - 800880a: 69ba ldr r2, [r7, #24] - 800880c: 0151 lsls r1, r2, #5 - 800880e: 69fa ldr r2, [r7, #28] - 8008810: 440a add r2, r1 - 8008812: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008816: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 - 800881a: 6013 str r3, [r2, #0] - 800881c: e166 b.n 8008aec + 80088b4: 69bb ldr r3, [r7, #24] + 80088b6: 015a lsls r2, r3, #5 + 80088b8: 69fb ldr r3, [r7, #28] + 80088ba: 4413 add r3, r2 + 80088bc: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80088c0: 681b ldr r3, [r3, #0] + 80088c2: 69ba ldr r2, [r7, #24] + 80088c4: 0151 lsls r1, r2, #5 + 80088c6: 69fa ldr r2, [r7, #28] + 80088c8: 440a add r2, r1 + 80088ca: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80088ce: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 + 80088d2: 6013 str r3, [r2, #0] + 80088d4: e166 b.n 8008ba4 } else { /* EP enable, IN data in FIFO */ USBx_INEP(epnum)->DIEPCTL |= (USB_OTG_DIEPCTL_CNAK | USB_OTG_DIEPCTL_EPENA); - 800881e: 69bb ldr r3, [r7, #24] - 8008820: 015a lsls r2, r3, #5 - 8008822: 69fb ldr r3, [r7, #28] - 8008824: 4413 add r3, r2 - 8008826: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800882a: 681b ldr r3, [r3, #0] - 800882c: 69ba ldr r2, [r7, #24] - 800882e: 0151 lsls r1, r2, #5 - 8008830: 69fa ldr r2, [r7, #28] - 8008832: 440a add r2, r1 - 8008834: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008838: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 - 800883c: 6013 str r3, [r2, #0] + 80088d6: 69bb ldr r3, [r7, #24] + 80088d8: 015a lsls r2, r3, #5 + 80088da: 69fb ldr r3, [r7, #28] + 80088dc: 4413 add r3, r2 + 80088de: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80088e2: 681b ldr r3, [r3, #0] + 80088e4: 69ba ldr r2, [r7, #24] + 80088e6: 0151 lsls r1, r2, #5 + 80088e8: 69fa ldr r2, [r7, #28] + 80088ea: 440a add r2, r1 + 80088ec: f502 6210 add.w r2, r2, #2304 @ 0x900 + 80088f0: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 + 80088f4: 6013 str r3, [r2, #0] if (ep->type != EP_TYPE_ISOC) - 800883e: 68bb ldr r3, [r7, #8] - 8008840: 791b ldrb r3, [r3, #4] - 8008842: 2b01 cmp r3, #1 - 8008844: d015 beq.n 8008872 + 80088f6: 68bb ldr r3, [r7, #8] + 80088f8: 791b ldrb r3, [r3, #4] + 80088fa: 2b01 cmp r3, #1 + 80088fc: d015 beq.n 800892a { /* Enable the Tx FIFO Empty Interrupt for this EP */ if (ep->xfer_len > 0U) - 8008846: 68bb ldr r3, [r7, #8] - 8008848: 691b ldr r3, [r3, #16] - 800884a: 2b00 cmp r3, #0 - 800884c: f000 814e beq.w 8008aec + 80088fe: 68bb ldr r3, [r7, #8] + 8008900: 691b ldr r3, [r3, #16] + 8008902: 2b00 cmp r3, #0 + 8008904: f000 814e beq.w 8008ba4 { USBx_DEVICE->DIEPEMPMSK |= 1UL << (ep->num & EP_ADDR_MSK); - 8008850: 69fb ldr r3, [r7, #28] - 8008852: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008856: 6b5a ldr r2, [r3, #52] @ 0x34 - 8008858: 68bb ldr r3, [r7, #8] - 800885a: 781b ldrb r3, [r3, #0] - 800885c: f003 030f and.w r3, r3, #15 - 8008860: 2101 movs r1, #1 - 8008862: fa01 f303 lsl.w r3, r1, r3 - 8008866: 69f9 ldr r1, [r7, #28] - 8008868: f501 6100 add.w r1, r1, #2048 @ 0x800 - 800886c: 4313 orrs r3, r2 - 800886e: 634b str r3, [r1, #52] @ 0x34 - 8008870: e13c b.n 8008aec + 8008908: 69fb ldr r3, [r7, #28] + 800890a: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800890e: 6b5a ldr r2, [r3, #52] @ 0x34 + 8008910: 68bb ldr r3, [r7, #8] + 8008912: 781b ldrb r3, [r3, #0] + 8008914: f003 030f and.w r3, r3, #15 + 8008918: 2101 movs r1, #1 + 800891a: fa01 f303 lsl.w r3, r1, r3 + 800891e: 69f9 ldr r1, [r7, #28] + 8008920: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8008924: 4313 orrs r3, r2 + 8008926: 634b str r3, [r1, #52] @ 0x34 + 8008928: e13c b.n 8008ba4 } } else { if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U) - 8008872: 69fb ldr r3, [r7, #28] - 8008874: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008878: 689b ldr r3, [r3, #8] - 800887a: f403 7380 and.w r3, r3, #256 @ 0x100 - 800887e: 2b00 cmp r3, #0 - 8008880: d110 bne.n 80088a4 + 800892a: 69fb ldr r3, [r7, #28] + 800892c: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008930: 689b ldr r3, [r3, #8] + 8008932: f403 7380 and.w r3, r3, #256 @ 0x100 + 8008936: 2b00 cmp r3, #0 + 8008938: d110 bne.n 800895c { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SODDFRM; - 8008882: 69bb ldr r3, [r7, #24] - 8008884: 015a lsls r2, r3, #5 - 8008886: 69fb ldr r3, [r7, #28] - 8008888: 4413 add r3, r2 - 800888a: f503 6310 add.w r3, r3, #2304 @ 0x900 - 800888e: 681b ldr r3, [r3, #0] - 8008890: 69ba ldr r2, [r7, #24] - 8008892: 0151 lsls r1, r2, #5 - 8008894: 69fa ldr r2, [r7, #28] - 8008896: 440a add r2, r1 - 8008898: f502 6210 add.w r2, r2, #2304 @ 0x900 - 800889c: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 - 80088a0: 6013 str r3, [r2, #0] - 80088a2: e00f b.n 80088c4 + 800893a: 69bb ldr r3, [r7, #24] + 800893c: 015a lsls r2, r3, #5 + 800893e: 69fb ldr r3, [r7, #28] + 8008940: 4413 add r3, r2 + 8008942: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008946: 681b ldr r3, [r3, #0] + 8008948: 69ba ldr r2, [r7, #24] + 800894a: 0151 lsls r1, r2, #5 + 800894c: 69fa ldr r2, [r7, #28] + 800894e: 440a add r2, r1 + 8008950: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008954: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 + 8008958: 6013 str r3, [r2, #0] + 800895a: e00f b.n 800897c } else { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM; - 80088a4: 69bb ldr r3, [r7, #24] - 80088a6: 015a lsls r2, r3, #5 - 80088a8: 69fb ldr r3, [r7, #28] - 80088aa: 4413 add r3, r2 - 80088ac: f503 6310 add.w r3, r3, #2304 @ 0x900 - 80088b0: 681b ldr r3, [r3, #0] - 80088b2: 69ba ldr r2, [r7, #24] - 80088b4: 0151 lsls r1, r2, #5 - 80088b6: 69fa ldr r2, [r7, #28] - 80088b8: 440a add r2, r1 - 80088ba: f502 6210 add.w r2, r2, #2304 @ 0x900 - 80088be: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 80088c2: 6013 str r3, [r2, #0] + 800895c: 69bb ldr r3, [r7, #24] + 800895e: 015a lsls r2, r3, #5 + 8008960: 69fb ldr r3, [r7, #28] + 8008962: 4413 add r3, r2 + 8008964: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008968: 681b ldr r3, [r3, #0] + 800896a: 69ba ldr r2, [r7, #24] + 800896c: 0151 lsls r1, r2, #5 + 800896e: 69fa ldr r2, [r7, #28] + 8008970: 440a add r2, r1 + 8008972: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008976: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 800897a: 6013 str r3, [r2, #0] } (void)USB_WritePacket(USBx, ep->xfer_buff, ep->num, (uint16_t)ep->xfer_len, dma); - 80088c4: 68bb ldr r3, [r7, #8] - 80088c6: 68d9 ldr r1, [r3, #12] - 80088c8: 68bb ldr r3, [r7, #8] - 80088ca: 781a ldrb r2, [r3, #0] - 80088cc: 68bb ldr r3, [r7, #8] - 80088ce: 691b ldr r3, [r3, #16] - 80088d0: b298 uxth r0, r3 - 80088d2: 79fb ldrb r3, [r7, #7] - 80088d4: 9300 str r3, [sp, #0] - 80088d6: 4603 mov r3, r0 - 80088d8: 68f8 ldr r0, [r7, #12] - 80088da: f000 f9b9 bl 8008c50 - 80088de: e105 b.n 8008aec + 800897c: 68bb ldr r3, [r7, #8] + 800897e: 68d9 ldr r1, [r3, #12] + 8008980: 68bb ldr r3, [r7, #8] + 8008982: 781a ldrb r2, [r3, #0] + 8008984: 68bb ldr r3, [r7, #8] + 8008986: 691b ldr r3, [r3, #16] + 8008988: b298 uxth r0, r3 + 800898a: 79fb ldrb r3, [r7, #7] + 800898c: 9300 str r3, [sp, #0] + 800898e: 4603 mov r3, r0 + 8008990: 68f8 ldr r0, [r7, #12] + 8008992: f000 f9b9 bl 8008d08 + 8008996: e105 b.n 8008ba4 { /* Program the transfer size and packet count as follows: * pktcnt = N * xfersize = N * maxpacket */ USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_XFRSIZ); - 80088e0: 69bb ldr r3, [r7, #24] - 80088e2: 015a lsls r2, r3, #5 - 80088e4: 69fb ldr r3, [r7, #28] - 80088e6: 4413 add r3, r2 - 80088e8: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80088ec: 691b ldr r3, [r3, #16] - 80088ee: 69ba ldr r2, [r7, #24] - 80088f0: 0151 lsls r1, r2, #5 - 80088f2: 69fa ldr r2, [r7, #28] - 80088f4: 440a add r2, r1 - 80088f6: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 80088fa: 0cdb lsrs r3, r3, #19 - 80088fc: 04db lsls r3, r3, #19 - 80088fe: 6113 str r3, [r2, #16] - USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_PKTCNT); - 8008900: 69bb ldr r3, [r7, #24] - 8008902: 015a lsls r2, r3, #5 - 8008904: 69fb ldr r3, [r7, #28] - 8008906: 4413 add r3, r2 - 8008908: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800890c: 691b ldr r3, [r3, #16] - 800890e: 69ba ldr r2, [r7, #24] - 8008910: 0151 lsls r1, r2, #5 - 8008912: 69fa ldr r2, [r7, #28] - 8008914: 440a add r2, r1 - 8008916: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 800891a: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 - 800891e: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 - 8008922: 6113 str r3, [r2, #16] - - if (epnum == 0U) - 8008924: 69bb ldr r3, [r7, #24] - 8008926: 2b00 cmp r3, #0 - 8008928: d132 bne.n 8008990 - { - if (ep->xfer_len > 0U) - 800892a: 68bb ldr r3, [r7, #8] - 800892c: 691b ldr r3, [r3, #16] - 800892e: 2b00 cmp r3, #0 - 8008930: d003 beq.n 800893a - { - ep->xfer_len = ep->maxpacket; - 8008932: 68bb ldr r3, [r7, #8] - 8008934: 689a ldr r2, [r3, #8] - 8008936: 68bb ldr r3, [r7, #8] - 8008938: 611a str r2, [r3, #16] - } - - /* Store transfer size, for EP0 this is equal to endpoint max packet size */ - ep->xfer_size = ep->maxpacket; - 800893a: 68bb ldr r3, [r7, #8] - 800893c: 689a ldr r2, [r3, #8] - 800893e: 68bb ldr r3, [r7, #8] - 8008940: 621a str r2, [r3, #32] - - USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & ep->xfer_size); - 8008942: 69bb ldr r3, [r7, #24] - 8008944: 015a lsls r2, r3, #5 - 8008946: 69fb ldr r3, [r7, #28] - 8008948: 4413 add r3, r2 - 800894a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800894e: 691a ldr r2, [r3, #16] - 8008950: 68bb ldr r3, [r7, #8] - 8008952: 6a1b ldr r3, [r3, #32] - 8008954: f3c3 0312 ubfx r3, r3, #0, #19 - 8008958: 69b9 ldr r1, [r7, #24] - 800895a: 0148 lsls r0, r1, #5 - 800895c: 69f9 ldr r1, [r7, #28] - 800895e: 4401 add r1, r0 - 8008960: f501 6130 add.w r1, r1, #2816 @ 0xb00 - 8008964: 4313 orrs r3, r2 - 8008966: 610b str r3, [r1, #16] - USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); - 8008968: 69bb ldr r3, [r7, #24] - 800896a: 015a lsls r2, r3, #5 - 800896c: 69fb ldr r3, [r7, #28] - 800896e: 4413 add r3, r2 - 8008970: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008974: 691b ldr r3, [r3, #16] - 8008976: 69ba ldr r2, [r7, #24] - 8008978: 0151 lsls r1, r2, #5 - 800897a: 69fa ldr r2, [r7, #28] - 800897c: 440a add r2, r1 - 800897e: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008982: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 8008986: 6113 str r3, [r2, #16] - 8008988: e062 b.n 8008a50 - 800898a: bf00 nop - 800898c: 1ff80000 .word 0x1ff80000 - } - else - { - if (ep->xfer_len == 0U) - 8008990: 68bb ldr r3, [r7, #8] - 8008992: 691b ldr r3, [r3, #16] - 8008994: 2b00 cmp r3, #0 - 8008996: d123 bne.n 80089e0 - { - USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & ep->maxpacket); 8008998: 69bb ldr r3, [r7, #24] 800899a: 015a lsls r2, r3, #5 800899c: 69fb ldr r3, [r7, #28] 800899e: 4413 add r3, r2 80089a0: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80089a4: 691a ldr r2, [r3, #16] - 80089a6: 68bb ldr r3, [r7, #8] - 80089a8: 689b ldr r3, [r3, #8] - 80089aa: f3c3 0312 ubfx r3, r3, #0, #19 - 80089ae: 69b9 ldr r1, [r7, #24] - 80089b0: 0148 lsls r0, r1, #5 - 80089b2: 69f9 ldr r1, [r7, #28] - 80089b4: 4401 add r1, r0 - 80089b6: f501 6130 add.w r1, r1, #2816 @ 0xb00 - 80089ba: 4313 orrs r3, r2 - 80089bc: 610b str r3, [r1, #16] + 80089a4: 691b ldr r3, [r3, #16] + 80089a6: 69ba ldr r2, [r7, #24] + 80089a8: 0151 lsls r1, r2, #5 + 80089aa: 69fa ldr r2, [r7, #28] + 80089ac: 440a add r2, r1 + 80089ae: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80089b2: 0cdb lsrs r3, r3, #19 + 80089b4: 04db lsls r3, r3, #19 + 80089b6: 6113 str r3, [r2, #16] + USBx_OUTEP(epnum)->DOEPTSIZ &= ~(USB_OTG_DOEPTSIZ_PKTCNT); + 80089b8: 69bb ldr r3, [r7, #24] + 80089ba: 015a lsls r2, r3, #5 + 80089bc: 69fb ldr r3, [r7, #28] + 80089be: 4413 add r3, r2 + 80089c0: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80089c4: 691b ldr r3, [r3, #16] + 80089c6: 69ba ldr r2, [r7, #24] + 80089c8: 0151 lsls r1, r2, #5 + 80089ca: 69fa ldr r2, [r7, #28] + 80089cc: 440a add r2, r1 + 80089ce: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80089d2: f023 53ff bic.w r3, r3, #534773760 @ 0x1fe00000 + 80089d6: f423 13c0 bic.w r3, r3, #1572864 @ 0x180000 + 80089da: 6113 str r3, [r2, #16] + + if (epnum == 0U) + 80089dc: 69bb ldr r3, [r7, #24] + 80089de: 2b00 cmp r3, #0 + 80089e0: d132 bne.n 8008a48 + { + if (ep->xfer_len > 0U) + 80089e2: 68bb ldr r3, [r7, #8] + 80089e4: 691b ldr r3, [r3, #16] + 80089e6: 2b00 cmp r3, #0 + 80089e8: d003 beq.n 80089f2 + { + ep->xfer_len = ep->maxpacket; + 80089ea: 68bb ldr r3, [r7, #8] + 80089ec: 689a ldr r2, [r3, #8] + 80089ee: 68bb ldr r3, [r7, #8] + 80089f0: 611a str r2, [r3, #16] + } + + /* Store transfer size, for EP0 this is equal to endpoint max packet size */ + ep->xfer_size = ep->maxpacket; + 80089f2: 68bb ldr r3, [r7, #8] + 80089f4: 689a ldr r2, [r3, #8] + 80089f6: 68bb ldr r3, [r7, #8] + 80089f8: 621a str r2, [r3, #32] + + USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & ep->xfer_size); + 80089fa: 69bb ldr r3, [r7, #24] + 80089fc: 015a lsls r2, r3, #5 + 80089fe: 69fb ldr r3, [r7, #28] + 8008a00: 4413 add r3, r2 + 8008a02: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008a06: 691a ldr r2, [r3, #16] + 8008a08: 68bb ldr r3, [r7, #8] + 8008a0a: 6a1b ldr r3, [r3, #32] + 8008a0c: f3c3 0312 ubfx r3, r3, #0, #19 + 8008a10: 69b9 ldr r1, [r7, #24] + 8008a12: 0148 lsls r0, r1, #5 + 8008a14: 69f9 ldr r1, [r7, #28] + 8008a16: 4401 add r1, r0 + 8008a18: f501 6130 add.w r1, r1, #2816 @ 0xb00 + 8008a1c: 4313 orrs r3, r2 + 8008a1e: 610b str r3, [r1, #16] + USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); + 8008a20: 69bb ldr r3, [r7, #24] + 8008a22: 015a lsls r2, r3, #5 + 8008a24: 69fb ldr r3, [r7, #28] + 8008a26: 4413 add r3, r2 + 8008a28: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008a2c: 691b ldr r3, [r3, #16] + 8008a2e: 69ba ldr r2, [r7, #24] + 8008a30: 0151 lsls r1, r2, #5 + 8008a32: 69fa ldr r2, [r7, #28] + 8008a34: 440a add r2, r1 + 8008a36: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008a3a: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 8008a3e: 6113 str r3, [r2, #16] + 8008a40: e062 b.n 8008b08 + 8008a42: bf00 nop + 8008a44: 1ff80000 .word 0x1ff80000 + } + else + { + if (ep->xfer_len == 0U) + 8008a48: 68bb ldr r3, [r7, #8] + 8008a4a: 691b ldr r3, [r3, #16] + 8008a4c: 2b00 cmp r3, #0 + 8008a4e: d123 bne.n 8008a98 + { + USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_XFRSIZ & ep->maxpacket); + 8008a50: 69bb ldr r3, [r7, #24] + 8008a52: 015a lsls r2, r3, #5 + 8008a54: 69fb ldr r3, [r7, #28] + 8008a56: 4413 add r3, r2 + 8008a58: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008a5c: 691a ldr r2, [r3, #16] + 8008a5e: 68bb ldr r3, [r7, #8] + 8008a60: 689b ldr r3, [r3, #8] + 8008a62: f3c3 0312 ubfx r3, r3, #0, #19 + 8008a66: 69b9 ldr r1, [r7, #24] + 8008a68: 0148 lsls r0, r1, #5 + 8008a6a: 69f9 ldr r1, [r7, #28] + 8008a6c: 4401 add r1, r0 + 8008a6e: f501 6130 add.w r1, r1, #2816 @ 0xb00 + 8008a72: 4313 orrs r3, r2 + 8008a74: 610b str r3, [r1, #16] USBx_OUTEP(epnum)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); - 80089be: 69bb ldr r3, [r7, #24] - 80089c0: 015a lsls r2, r3, #5 - 80089c2: 69fb ldr r3, [r7, #28] - 80089c4: 4413 add r3, r2 - 80089c6: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80089ca: 691b ldr r3, [r3, #16] - 80089cc: 69ba ldr r2, [r7, #24] - 80089ce: 0151 lsls r1, r2, #5 - 80089d0: 69fa ldr r2, [r7, #28] - 80089d2: 440a add r2, r1 - 80089d4: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 80089d8: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 80089dc: 6113 str r3, [r2, #16] - 80089de: e037 b.n 8008a50 + 8008a76: 69bb ldr r3, [r7, #24] + 8008a78: 015a lsls r2, r3, #5 + 8008a7a: 69fb ldr r3, [r7, #28] + 8008a7c: 4413 add r3, r2 + 8008a7e: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008a82: 691b ldr r3, [r3, #16] + 8008a84: 69ba ldr r2, [r7, #24] + 8008a86: 0151 lsls r1, r2, #5 + 8008a88: 69fa ldr r2, [r7, #28] + 8008a8a: 440a add r2, r1 + 8008a8c: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008a90: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 8008a94: 6113 str r3, [r2, #16] + 8008a96: e037 b.n 8008b08 } else { pktcnt = (uint16_t)((ep->xfer_len + ep->maxpacket - 1U) / ep->maxpacket); - 80089e0: 68bb ldr r3, [r7, #8] - 80089e2: 691a ldr r2, [r3, #16] - 80089e4: 68bb ldr r3, [r7, #8] - 80089e6: 689b ldr r3, [r3, #8] - 80089e8: 4413 add r3, r2 - 80089ea: 1e5a subs r2, r3, #1 - 80089ec: 68bb ldr r3, [r7, #8] - 80089ee: 689b ldr r3, [r3, #8] - 80089f0: fbb2 f3f3 udiv r3, r2, r3 - 80089f4: 82fb strh r3, [r7, #22] + 8008a98: 68bb ldr r3, [r7, #8] + 8008a9a: 691a ldr r2, [r3, #16] + 8008a9c: 68bb ldr r3, [r7, #8] + 8008a9e: 689b ldr r3, [r3, #8] + 8008aa0: 4413 add r3, r2 + 8008aa2: 1e5a subs r2, r3, #1 + 8008aa4: 68bb ldr r3, [r7, #8] + 8008aa6: 689b ldr r3, [r3, #8] + 8008aa8: fbb2 f3f3 udiv r3, r2, r3 + 8008aac: 82fb strh r3, [r7, #22] ep->xfer_size = ep->maxpacket * pktcnt; - 80089f6: 68bb ldr r3, [r7, #8] - 80089f8: 689b ldr r3, [r3, #8] - 80089fa: 8afa ldrh r2, [r7, #22] - 80089fc: fb03 f202 mul.w r2, r3, r2 - 8008a00: 68bb ldr r3, [r7, #8] - 8008a02: 621a str r2, [r3, #32] + 8008aae: 68bb ldr r3, [r7, #8] + 8008ab0: 689b ldr r3, [r3, #8] + 8008ab2: 8afa ldrh r2, [r7, #22] + 8008ab4: fb03 f202 mul.w r2, r3, r2 + 8008ab8: 68bb ldr r3, [r7, #8] + 8008aba: 621a str r2, [r3, #32] USBx_OUTEP(epnum)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_PKTCNT & ((uint32_t)pktcnt << 19); - 8008a04: 69bb ldr r3, [r7, #24] - 8008a06: 015a lsls r2, r3, #5 - 8008a08: 69fb ldr r3, [r7, #28] - 8008a0a: 4413 add r3, r2 - 8008a0c: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008a10: 691a ldr r2, [r3, #16] - 8008a12: 8afb ldrh r3, [r7, #22] - 8008a14: 04d9 lsls r1, r3, #19 - 8008a16: 4b38 ldr r3, [pc, #224] @ (8008af8 ) - 8008a18: 400b ands r3, r1 - 8008a1a: 69b9 ldr r1, [r7, #24] - 8008a1c: 0148 lsls r0, r1, #5 - 8008a1e: 69f9 ldr r1, [r7, #28] - 8008a20: 4401 add r1, r0 - 8008a22: f501 6130 add.w r1, r1, #2816 @ 0xb00 - 8008a26: 4313 orrs r3, r2 - 8008a28: 610b str r3, [r1, #16] + 8008abc: 69bb ldr r3, [r7, #24] + 8008abe: 015a lsls r2, r3, #5 + 8008ac0: 69fb ldr r3, [r7, #28] + 8008ac2: 4413 add r3, r2 + 8008ac4: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008ac8: 691a ldr r2, [r3, #16] + 8008aca: 8afb ldrh r3, [r7, #22] + 8008acc: 04d9 lsls r1, r3, #19 + 8008ace: 4b38 ldr r3, [pc, #224] @ (8008bb0 ) + 8008ad0: 400b ands r3, r1 + 8008ad2: 69b9 ldr r1, [r7, #24] + 8008ad4: 0148 lsls r0, r1, #5 + 8008ad6: 69f9 ldr r1, [r7, #28] + 8008ad8: 4401 add r1, r0 + 8008ada: f501 6130 add.w r1, r1, #2816 @ 0xb00 + 8008ade: 4313 orrs r3, r2 + 8008ae0: 610b str r3, [r1, #16] USBx_OUTEP(epnum)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_XFRSIZ & ep->xfer_size; - 8008a2a: 69bb ldr r3, [r7, #24] - 8008a2c: 015a lsls r2, r3, #5 - 8008a2e: 69fb ldr r3, [r7, #28] - 8008a30: 4413 add r3, r2 - 8008a32: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008a36: 691a ldr r2, [r3, #16] - 8008a38: 68bb ldr r3, [r7, #8] - 8008a3a: 6a1b ldr r3, [r3, #32] - 8008a3c: f3c3 0312 ubfx r3, r3, #0, #19 - 8008a40: 69b9 ldr r1, [r7, #24] - 8008a42: 0148 lsls r0, r1, #5 - 8008a44: 69f9 ldr r1, [r7, #28] - 8008a46: 4401 add r1, r0 - 8008a48: f501 6130 add.w r1, r1, #2816 @ 0xb00 - 8008a4c: 4313 orrs r3, r2 - 8008a4e: 610b str r3, [r1, #16] + 8008ae2: 69bb ldr r3, [r7, #24] + 8008ae4: 015a lsls r2, r3, #5 + 8008ae6: 69fb ldr r3, [r7, #28] + 8008ae8: 4413 add r3, r2 + 8008aea: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008aee: 691a ldr r2, [r3, #16] + 8008af0: 68bb ldr r3, [r7, #8] + 8008af2: 6a1b ldr r3, [r3, #32] + 8008af4: f3c3 0312 ubfx r3, r3, #0, #19 + 8008af8: 69b9 ldr r1, [r7, #24] + 8008afa: 0148 lsls r0, r1, #5 + 8008afc: 69f9 ldr r1, [r7, #28] + 8008afe: 4401 add r1, r0 + 8008b00: f501 6130 add.w r1, r1, #2816 @ 0xb00 + 8008b04: 4313 orrs r3, r2 + 8008b06: 610b str r3, [r1, #16] } } if (dma == 1U) - 8008a50: 79fb ldrb r3, [r7, #7] - 8008a52: 2b01 cmp r3, #1 - 8008a54: d10d bne.n 8008a72 + 8008b08: 79fb ldrb r3, [r7, #7] + 8008b0a: 2b01 cmp r3, #1 + 8008b0c: d10d bne.n 8008b2a { if ((uint32_t)ep->xfer_buff != 0U) - 8008a56: 68bb ldr r3, [r7, #8] - 8008a58: 68db ldr r3, [r3, #12] - 8008a5a: 2b00 cmp r3, #0 - 8008a5c: d009 beq.n 8008a72 + 8008b0e: 68bb ldr r3, [r7, #8] + 8008b10: 68db ldr r3, [r3, #12] + 8008b12: 2b00 cmp r3, #0 + 8008b14: d009 beq.n 8008b2a { USBx_OUTEP(epnum)->DOEPDMA = (uint32_t)(ep->xfer_buff); - 8008a5e: 68bb ldr r3, [r7, #8] - 8008a60: 68d9 ldr r1, [r3, #12] - 8008a62: 69bb ldr r3, [r7, #24] - 8008a64: 015a lsls r2, r3, #5 - 8008a66: 69fb ldr r3, [r7, #28] - 8008a68: 4413 add r3, r2 - 8008a6a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008a6e: 460a mov r2, r1 - 8008a70: 615a str r2, [r3, #20] + 8008b16: 68bb ldr r3, [r7, #8] + 8008b18: 68d9 ldr r1, [r3, #12] + 8008b1a: 69bb ldr r3, [r7, #24] + 8008b1c: 015a lsls r2, r3, #5 + 8008b1e: 69fb ldr r3, [r7, #28] + 8008b20: 4413 add r3, r2 + 8008b22: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008b26: 460a mov r2, r1 + 8008b28: 615a str r2, [r3, #20] } } if (ep->type == EP_TYPE_ISOC) - 8008a72: 68bb ldr r3, [r7, #8] - 8008a74: 791b ldrb r3, [r3, #4] - 8008a76: 2b01 cmp r3, #1 - 8008a78: d128 bne.n 8008acc + 8008b2a: 68bb ldr r3, [r7, #8] + 8008b2c: 791b ldrb r3, [r3, #4] + 8008b2e: 2b01 cmp r3, #1 + 8008b30: d128 bne.n 8008b84 { if ((USBx_DEVICE->DSTS & (1U << 8)) == 0U) - 8008a7a: 69fb ldr r3, [r7, #28] - 8008a7c: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008a80: 689b ldr r3, [r3, #8] - 8008a82: f403 7380 and.w r3, r3, #256 @ 0x100 - 8008a86: 2b00 cmp r3, #0 - 8008a88: d110 bne.n 8008aac + 8008b32: 69fb ldr r3, [r7, #28] + 8008b34: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008b38: 689b ldr r3, [r3, #8] + 8008b3a: f403 7380 and.w r3, r3, #256 @ 0x100 + 8008b3e: 2b00 cmp r3, #0 + 8008b40: d110 bne.n 8008b64 { USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SODDFRM; - 8008a8a: 69bb ldr r3, [r7, #24] - 8008a8c: 015a lsls r2, r3, #5 - 8008a8e: 69fb ldr r3, [r7, #28] - 8008a90: 4413 add r3, r2 - 8008a92: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008a96: 681b ldr r3, [r3, #0] - 8008a98: 69ba ldr r2, [r7, #24] - 8008a9a: 0151 lsls r1, r2, #5 - 8008a9c: 69fa ldr r2, [r7, #28] - 8008a9e: 440a add r2, r1 - 8008aa0: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008aa4: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 - 8008aa8: 6013 str r3, [r2, #0] - 8008aaa: e00f b.n 8008acc + 8008b42: 69bb ldr r3, [r7, #24] + 8008b44: 015a lsls r2, r3, #5 + 8008b46: 69fb ldr r3, [r7, #28] + 8008b48: 4413 add r3, r2 + 8008b4a: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008b4e: 681b ldr r3, [r3, #0] + 8008b50: 69ba ldr r2, [r7, #24] + 8008b52: 0151 lsls r1, r2, #5 + 8008b54: 69fa ldr r2, [r7, #28] + 8008b56: 440a add r2, r1 + 8008b58: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008b5c: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000 + 8008b60: 6013 str r3, [r2, #0] + 8008b62: e00f b.n 8008b84 } else { USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SD0PID_SEVNFRM; - 8008aac: 69bb ldr r3, [r7, #24] - 8008aae: 015a lsls r2, r3, #5 - 8008ab0: 69fb ldr r3, [r7, #28] - 8008ab2: 4413 add r3, r2 - 8008ab4: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008ab8: 681b ldr r3, [r3, #0] - 8008aba: 69ba ldr r2, [r7, #24] - 8008abc: 0151 lsls r1, r2, #5 - 8008abe: 69fa ldr r2, [r7, #28] - 8008ac0: 440a add r2, r1 - 8008ac2: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008ac6: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8008aca: 6013 str r3, [r2, #0] + 8008b64: 69bb ldr r3, [r7, #24] + 8008b66: 015a lsls r2, r3, #5 + 8008b68: 69fb ldr r3, [r7, #28] + 8008b6a: 4413 add r3, r2 + 8008b6c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008b70: 681b ldr r3, [r3, #0] + 8008b72: 69ba ldr r2, [r7, #24] + 8008b74: 0151 lsls r1, r2, #5 + 8008b76: 69fa ldr r2, [r7, #28] + 8008b78: 440a add r2, r1 + 8008b7a: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008b7e: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8008b82: 6013 str r3, [r2, #0] } } /* EP enable */ USBx_OUTEP(epnum)->DOEPCTL |= (USB_OTG_DOEPCTL_CNAK | USB_OTG_DOEPCTL_EPENA); - 8008acc: 69bb ldr r3, [r7, #24] - 8008ace: 015a lsls r2, r3, #5 - 8008ad0: 69fb ldr r3, [r7, #28] - 8008ad2: 4413 add r3, r2 - 8008ad4: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008ad8: 681b ldr r3, [r3, #0] - 8008ada: 69ba ldr r2, [r7, #24] - 8008adc: 0151 lsls r1, r2, #5 - 8008ade: 69fa ldr r2, [r7, #28] - 8008ae0: 440a add r2, r1 - 8008ae2: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008ae6: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 - 8008aea: 6013 str r3, [r2, #0] + 8008b84: 69bb ldr r3, [r7, #24] + 8008b86: 015a lsls r2, r3, #5 + 8008b88: 69fb ldr r3, [r7, #28] + 8008b8a: 4413 add r3, r2 + 8008b8c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008b90: 681b ldr r3, [r3, #0] + 8008b92: 69ba ldr r2, [r7, #24] + 8008b94: 0151 lsls r1, r2, #5 + 8008b96: 69fa ldr r2, [r7, #28] + 8008b98: 440a add r2, r1 + 8008b9a: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008b9e: f043 4304 orr.w r3, r3, #2214592512 @ 0x84000000 + 8008ba2: 6013 str r3, [r2, #0] } return HAL_OK; - 8008aec: 2300 movs r3, #0 + 8008ba4: 2300 movs r3, #0 } - 8008aee: 4618 mov r0, r3 - 8008af0: 3720 adds r7, #32 - 8008af2: 46bd mov sp, r7 - 8008af4: bd80 pop {r7, pc} - 8008af6: bf00 nop - 8008af8: 1ff80000 .word 0x1ff80000 + 8008ba6: 4618 mov r0, r3 + 8008ba8: 3720 adds r7, #32 + 8008baa: 46bd mov sp, r7 + 8008bac: bd80 pop {r7, pc} + 8008bae: bf00 nop + 8008bb0: 1ff80000 .word 0x1ff80000 -08008afc : +08008bb4 : * @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) { - 8008afc: b480 push {r7} - 8008afe: b087 sub sp, #28 - 8008b00: af00 add r7, sp, #0 - 8008b02: 6078 str r0, [r7, #4] - 8008b04: 6039 str r1, [r7, #0] + 8008bb4: b480 push {r7} + 8008bb6: b087 sub sp, #28 + 8008bb8: af00 add r7, sp, #0 + 8008bba: 6078 str r0, [r7, #4] + 8008bbc: 6039 str r1, [r7, #0] __IO uint32_t count = 0U; - 8008b06: 2300 movs r3, #0 - 8008b08: 60fb str r3, [r7, #12] + 8008bbe: 2300 movs r3, #0 + 8008bc0: 60fb str r3, [r7, #12] HAL_StatusTypeDef ret = HAL_OK; - 8008b0a: 2300 movs r3, #0 - 8008b0c: 75fb strb r3, [r7, #23] + 8008bc2: 2300 movs r3, #0 + 8008bc4: 75fb strb r3, [r7, #23] uint32_t USBx_BASE = (uint32_t)USBx; - 8008b0e: 687b ldr r3, [r7, #4] - 8008b10: 613b str r3, [r7, #16] + 8008bc6: 687b ldr r3, [r7, #4] + 8008bc8: 613b str r3, [r7, #16] /* IN endpoint */ if (ep->is_in == 1U) - 8008b12: 683b ldr r3, [r7, #0] - 8008b14: 785b ldrb r3, [r3, #1] - 8008b16: 2b01 cmp r3, #1 - 8008b18: d14a bne.n 8008bb0 + 8008bca: 683b ldr r3, [r7, #0] + 8008bcc: 785b ldrb r3, [r3, #1] + 8008bce: 2b01 cmp r3, #1 + 8008bd0: d14a bne.n 8008c68 { /* EP enable, IN data in FIFO */ if (((USBx_INEP(ep->num)->DIEPCTL) & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA) - 8008b1a: 683b ldr r3, [r7, #0] - 8008b1c: 781b ldrb r3, [r3, #0] - 8008b1e: 015a lsls r2, r3, #5 - 8008b20: 693b ldr r3, [r7, #16] - 8008b22: 4413 add r3, r2 - 8008b24: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008b28: 681b ldr r3, [r3, #0] - 8008b2a: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8008b2e: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8008b32: f040 8086 bne.w 8008c42 + 8008bd2: 683b ldr r3, [r7, #0] + 8008bd4: 781b ldrb r3, [r3, #0] + 8008bd6: 015a lsls r2, r3, #5 + 8008bd8: 693b ldr r3, [r7, #16] + 8008bda: 4413 add r3, r2 + 8008bdc: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008be0: 681b ldr r3, [r3, #0] + 8008be2: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8008be6: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8008bea: f040 8086 bne.w 8008cfa { USBx_INEP(ep->num)->DIEPCTL |= (USB_OTG_DIEPCTL_SNAK); - 8008b36: 683b ldr r3, [r7, #0] - 8008b38: 781b ldrb r3, [r3, #0] - 8008b3a: 015a lsls r2, r3, #5 - 8008b3c: 693b ldr r3, [r7, #16] - 8008b3e: 4413 add r3, r2 - 8008b40: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008b44: 681b ldr r3, [r3, #0] - 8008b46: 683a ldr r2, [r7, #0] - 8008b48: 7812 ldrb r2, [r2, #0] - 8008b4a: 0151 lsls r1, r2, #5 - 8008b4c: 693a ldr r2, [r7, #16] - 8008b4e: 440a add r2, r1 - 8008b50: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008b54: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 8008b58: 6013 str r3, [r2, #0] - USBx_INEP(ep->num)->DIEPCTL |= (USB_OTG_DIEPCTL_EPDIS); - 8008b5a: 683b ldr r3, [r7, #0] - 8008b5c: 781b ldrb r3, [r3, #0] - 8008b5e: 015a lsls r2, r3, #5 - 8008b60: 693b ldr r3, [r7, #16] - 8008b62: 4413 add r3, r2 - 8008b64: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008b68: 681b ldr r3, [r3, #0] - 8008b6a: 683a ldr r2, [r7, #0] - 8008b6c: 7812 ldrb r2, [r2, #0] - 8008b6e: 0151 lsls r1, r2, #5 - 8008b70: 693a ldr r2, [r7, #16] - 8008b72: 440a add r2, r1 - 8008b74: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008b78: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 - 8008b7c: 6013 str r3, [r2, #0] - - do - { - count++; - 8008b7e: 68fb ldr r3, [r7, #12] - 8008b80: 3301 adds r3, #1 - 8008b82: 60fb str r3, [r7, #12] - - if (count > 10000U) - 8008b84: 68fb ldr r3, [r7, #12] - 8008b86: f242 7210 movw r2, #10000 @ 0x2710 - 8008b8a: 4293 cmp r3, r2 - 8008b8c: d902 bls.n 8008b94 - { - ret = HAL_ERROR; - 8008b8e: 2301 movs r3, #1 - 8008b90: 75fb strb r3, [r7, #23] - break; - 8008b92: e056 b.n 8008c42 - } - } while (((USBx_INEP(ep->num)->DIEPCTL) & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA); - 8008b94: 683b ldr r3, [r7, #0] - 8008b96: 781b ldrb r3, [r3, #0] - 8008b98: 015a lsls r2, r3, #5 - 8008b9a: 693b ldr r3, [r7, #16] - 8008b9c: 4413 add r3, r2 - 8008b9e: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008ba2: 681b ldr r3, [r3, #0] - 8008ba4: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8008ba8: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8008bac: d0e7 beq.n 8008b7e - 8008bae: e048 b.n 8008c42 - } - } - else /* OUT endpoint */ - { - if (((USBx_OUTEP(ep->num)->DOEPCTL) & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) - 8008bb0: 683b ldr r3, [r7, #0] - 8008bb2: 781b ldrb r3, [r3, #0] - 8008bb4: 015a lsls r2, r3, #5 - 8008bb6: 693b ldr r3, [r7, #16] - 8008bb8: 4413 add r3, r2 - 8008bba: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008bbe: 681b ldr r3, [r3, #0] - 8008bc0: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8008bc4: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8008bc8: d13b bne.n 8008c42 - { - USBx_OUTEP(ep->num)->DOEPCTL |= (USB_OTG_DOEPCTL_SNAK); - 8008bca: 683b ldr r3, [r7, #0] - 8008bcc: 781b ldrb r3, [r3, #0] - 8008bce: 015a lsls r2, r3, #5 - 8008bd0: 693b ldr r3, [r7, #16] - 8008bd2: 4413 add r3, r2 - 8008bd4: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008bd8: 681b ldr r3, [r3, #0] - 8008bda: 683a ldr r2, [r7, #0] - 8008bdc: 7812 ldrb r2, [r2, #0] - 8008bde: 0151 lsls r1, r2, #5 - 8008be0: 693a ldr r2, [r7, #16] - 8008be2: 440a add r2, r1 - 8008be4: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008be8: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 - 8008bec: 6013 str r3, [r2, #0] - USBx_OUTEP(ep->num)->DOEPCTL |= (USB_OTG_DOEPCTL_EPDIS); 8008bee: 683b ldr r3, [r7, #0] 8008bf0: 781b ldrb r3, [r3, #0] 8008bf2: 015a lsls r2, r3, #5 8008bf4: 693b ldr r3, [r7, #16] 8008bf6: 4413 add r3, r2 - 8008bf8: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008bf8: f503 6310 add.w r3, r3, #2304 @ 0x900 8008bfc: 681b ldr r3, [r3, #0] 8008bfe: 683a ldr r2, [r7, #0] 8008c00: 7812 ldrb r2, [r2, #0] 8008c02: 0151 lsls r1, r2, #5 8008c04: 693a ldr r2, [r7, #16] 8008c06: 440a add r2, r1 - 8008c08: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008c0c: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 8008c08: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008c0c: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 8008c10: 6013 str r3, [r2, #0] + USBx_INEP(ep->num)->DIEPCTL |= (USB_OTG_DIEPCTL_EPDIS); + 8008c12: 683b ldr r3, [r7, #0] + 8008c14: 781b ldrb r3, [r3, #0] + 8008c16: 015a lsls r2, r3, #5 + 8008c18: 693b ldr r3, [r7, #16] + 8008c1a: 4413 add r3, r2 + 8008c1c: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008c20: 681b ldr r3, [r3, #0] + 8008c22: 683a ldr r2, [r7, #0] + 8008c24: 7812 ldrb r2, [r2, #0] + 8008c26: 0151 lsls r1, r2, #5 + 8008c28: 693a ldr r2, [r7, #16] + 8008c2a: 440a add r2, r1 + 8008c2c: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008c30: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 8008c34: 6013 str r3, [r2, #0] do { count++; - 8008c12: 68fb ldr r3, [r7, #12] - 8008c14: 3301 adds r3, #1 - 8008c16: 60fb str r3, [r7, #12] + 8008c36: 68fb ldr r3, [r7, #12] + 8008c38: 3301 adds r3, #1 + 8008c3a: 60fb str r3, [r7, #12] if (count > 10000U) - 8008c18: 68fb ldr r3, [r7, #12] - 8008c1a: f242 7210 movw r2, #10000 @ 0x2710 - 8008c1e: 4293 cmp r3, r2 - 8008c20: d902 bls.n 8008c28 + 8008c3c: 68fb ldr r3, [r7, #12] + 8008c3e: f242 7210 movw r2, #10000 @ 0x2710 + 8008c42: 4293 cmp r3, r2 + 8008c44: d902 bls.n 8008c4c { ret = HAL_ERROR; - 8008c22: 2301 movs r3, #1 - 8008c24: 75fb strb r3, [r7, #23] + 8008c46: 2301 movs r3, #1 + 8008c48: 75fb strb r3, [r7, #23] break; - 8008c26: e00c b.n 8008c42 + 8008c4a: e056 b.n 8008cfa + } + } while (((USBx_INEP(ep->num)->DIEPCTL) & USB_OTG_DIEPCTL_EPENA) == USB_OTG_DIEPCTL_EPENA); + 8008c4c: 683b ldr r3, [r7, #0] + 8008c4e: 781b ldrb r3, [r3, #0] + 8008c50: 015a lsls r2, r3, #5 + 8008c52: 693b ldr r3, [r7, #16] + 8008c54: 4413 add r3, r2 + 8008c56: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008c5a: 681b ldr r3, [r3, #0] + 8008c5c: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8008c60: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8008c64: d0e7 beq.n 8008c36 + 8008c66: e048 b.n 8008cfa + } + } + else /* OUT endpoint */ + { + if (((USBx_OUTEP(ep->num)->DOEPCTL) & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) + 8008c68: 683b ldr r3, [r7, #0] + 8008c6a: 781b ldrb r3, [r3, #0] + 8008c6c: 015a lsls r2, r3, #5 + 8008c6e: 693b ldr r3, [r7, #16] + 8008c70: 4413 add r3, r2 + 8008c72: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008c76: 681b ldr r3, [r3, #0] + 8008c78: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8008c7c: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8008c80: d13b bne.n 8008cfa + { + USBx_OUTEP(ep->num)->DOEPCTL |= (USB_OTG_DOEPCTL_SNAK); + 8008c82: 683b ldr r3, [r7, #0] + 8008c84: 781b ldrb r3, [r3, #0] + 8008c86: 015a lsls r2, r3, #5 + 8008c88: 693b ldr r3, [r7, #16] + 8008c8a: 4413 add r3, r2 + 8008c8c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008c90: 681b ldr r3, [r3, #0] + 8008c92: 683a ldr r2, [r7, #0] + 8008c94: 7812 ldrb r2, [r2, #0] + 8008c96: 0151 lsls r1, r2, #5 + 8008c98: 693a ldr r2, [r7, #16] + 8008c9a: 440a add r2, r1 + 8008c9c: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008ca0: f043 6300 orr.w r3, r3, #134217728 @ 0x8000000 + 8008ca4: 6013 str r3, [r2, #0] + USBx_OUTEP(ep->num)->DOEPCTL |= (USB_OTG_DOEPCTL_EPDIS); + 8008ca6: 683b ldr r3, [r7, #0] + 8008ca8: 781b ldrb r3, [r3, #0] + 8008caa: 015a lsls r2, r3, #5 + 8008cac: 693b ldr r3, [r7, #16] + 8008cae: 4413 add r3, r2 + 8008cb0: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008cb4: 681b ldr r3, [r3, #0] + 8008cb6: 683a ldr r2, [r7, #0] + 8008cb8: 7812 ldrb r2, [r2, #0] + 8008cba: 0151 lsls r1, r2, #5 + 8008cbc: 693a ldr r2, [r7, #16] + 8008cbe: 440a add r2, r1 + 8008cc0: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008cc4: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000 + 8008cc8: 6013 str r3, [r2, #0] + + do + { + count++; + 8008cca: 68fb ldr r3, [r7, #12] + 8008ccc: 3301 adds r3, #1 + 8008cce: 60fb str r3, [r7, #12] + + if (count > 10000U) + 8008cd0: 68fb ldr r3, [r7, #12] + 8008cd2: f242 7210 movw r2, #10000 @ 0x2710 + 8008cd6: 4293 cmp r3, r2 + 8008cd8: d902 bls.n 8008ce0 + { + ret = HAL_ERROR; + 8008cda: 2301 movs r3, #1 + 8008cdc: 75fb strb r3, [r7, #23] + break; + 8008cde: e00c b.n 8008cfa } } while (((USBx_OUTEP(ep->num)->DOEPCTL) & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA); - 8008c28: 683b ldr r3, [r7, #0] - 8008c2a: 781b ldrb r3, [r3, #0] - 8008c2c: 015a lsls r2, r3, #5 - 8008c2e: 693b ldr r3, [r7, #16] - 8008c30: 4413 add r3, r2 - 8008c32: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008c36: 681b ldr r3, [r3, #0] - 8008c38: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 8008c3c: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 8008c40: d0e7 beq.n 8008c12 + 8008ce0: 683b ldr r3, [r7, #0] + 8008ce2: 781b ldrb r3, [r3, #0] + 8008ce4: 015a lsls r2, r3, #5 + 8008ce6: 693b ldr r3, [r7, #16] + 8008ce8: 4413 add r3, r2 + 8008cea: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008cee: 681b ldr r3, [r3, #0] + 8008cf0: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8008cf4: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8008cf8: d0e7 beq.n 8008cca } } return ret; - 8008c42: 7dfb ldrb r3, [r7, #23] + 8008cfa: 7dfb ldrb r3, [r7, #23] } - 8008c44: 4618 mov r0, r3 - 8008c46: 371c adds r7, #28 - 8008c48: 46bd mov sp, r7 - 8008c4a: f85d 7b04 ldr.w r7, [sp], #4 - 8008c4e: 4770 bx lr + 8008cfc: 4618 mov r0, r3 + 8008cfe: 371c adds r7, #28 + 8008d00: 46bd mov sp, r7 + 8008d02: f85d 7b04 ldr.w r7, [sp], #4 + 8008d06: 4770 bx lr -08008c50 : +08008d08 : * 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) { - 8008c50: b480 push {r7} - 8008c52: b089 sub sp, #36 @ 0x24 - 8008c54: af00 add r7, sp, #0 - 8008c56: 60f8 str r0, [r7, #12] - 8008c58: 60b9 str r1, [r7, #8] - 8008c5a: 4611 mov r1, r2 - 8008c5c: 461a mov r2, r3 - 8008c5e: 460b mov r3, r1 - 8008c60: 71fb strb r3, [r7, #7] - 8008c62: 4613 mov r3, r2 - 8008c64: 80bb strh r3, [r7, #4] + 8008d08: b480 push {r7} + 8008d0a: b089 sub sp, #36 @ 0x24 + 8008d0c: af00 add r7, sp, #0 + 8008d0e: 60f8 str r0, [r7, #12] + 8008d10: 60b9 str r1, [r7, #8] + 8008d12: 4611 mov r1, r2 + 8008d14: 461a mov r2, r3 + 8008d16: 460b mov r3, r1 + 8008d18: 71fb strb r3, [r7, #7] + 8008d1a: 4613 mov r3, r2 + 8008d1c: 80bb strh r3, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 8008c66: 68fb ldr r3, [r7, #12] - 8008c68: 617b str r3, [r7, #20] + 8008d1e: 68fb ldr r3, [r7, #12] + 8008d20: 617b str r3, [r7, #20] uint8_t *pSrc = src; - 8008c6a: 68bb ldr r3, [r7, #8] - 8008c6c: 61fb str r3, [r7, #28] + 8008d22: 68bb ldr r3, [r7, #8] + 8008d24: 61fb str r3, [r7, #28] uint32_t count32b; uint32_t i; if (dma == 0U) - 8008c6e: f897 3028 ldrb.w r3, [r7, #40] @ 0x28 - 8008c72: 2b00 cmp r3, #0 - 8008c74: d123 bne.n 8008cbe + 8008d26: f897 3028 ldrb.w r3, [r7, #40] @ 0x28 + 8008d2a: 2b00 cmp r3, #0 + 8008d2c: d123 bne.n 8008d76 { count32b = ((uint32_t)len + 3U) / 4U; - 8008c76: 88bb ldrh r3, [r7, #4] - 8008c78: 3303 adds r3, #3 - 8008c7a: 089b lsrs r3, r3, #2 - 8008c7c: 613b str r3, [r7, #16] + 8008d2e: 88bb ldrh r3, [r7, #4] + 8008d30: 3303 adds r3, #3 + 8008d32: 089b lsrs r3, r3, #2 + 8008d34: 613b str r3, [r7, #16] for (i = 0U; i < count32b; i++) - 8008c7e: 2300 movs r3, #0 - 8008c80: 61bb str r3, [r7, #24] - 8008c82: e018 b.n 8008cb6 + 8008d36: 2300 movs r3, #0 + 8008d38: 61bb str r3, [r7, #24] + 8008d3a: e018 b.n 8008d6e { USBx_DFIFO((uint32_t)ch_ep_num) = __UNALIGNED_UINT32_READ(pSrc); - 8008c84: 79fb ldrb r3, [r7, #7] - 8008c86: 031a lsls r2, r3, #12 - 8008c88: 697b ldr r3, [r7, #20] - 8008c8a: 4413 add r3, r2 - 8008c8c: f503 5380 add.w r3, r3, #4096 @ 0x1000 - 8008c90: 461a mov r2, r3 - 8008c92: 69fb ldr r3, [r7, #28] - 8008c94: 681b ldr r3, [r3, #0] - 8008c96: 6013 str r3, [r2, #0] + 8008d3c: 79fb ldrb r3, [r7, #7] + 8008d3e: 031a lsls r2, r3, #12 + 8008d40: 697b ldr r3, [r7, #20] + 8008d42: 4413 add r3, r2 + 8008d44: f503 5380 add.w r3, r3, #4096 @ 0x1000 + 8008d48: 461a mov r2, r3 + 8008d4a: 69fb ldr r3, [r7, #28] + 8008d4c: 681b ldr r3, [r3, #0] + 8008d4e: 6013 str r3, [r2, #0] pSrc++; - 8008c98: 69fb ldr r3, [r7, #28] - 8008c9a: 3301 adds r3, #1 - 8008c9c: 61fb str r3, [r7, #28] + 8008d50: 69fb ldr r3, [r7, #28] + 8008d52: 3301 adds r3, #1 + 8008d54: 61fb str r3, [r7, #28] pSrc++; - 8008c9e: 69fb ldr r3, [r7, #28] - 8008ca0: 3301 adds r3, #1 - 8008ca2: 61fb str r3, [r7, #28] + 8008d56: 69fb ldr r3, [r7, #28] + 8008d58: 3301 adds r3, #1 + 8008d5a: 61fb str r3, [r7, #28] pSrc++; - 8008ca4: 69fb ldr r3, [r7, #28] - 8008ca6: 3301 adds r3, #1 - 8008ca8: 61fb str r3, [r7, #28] + 8008d5c: 69fb ldr r3, [r7, #28] + 8008d5e: 3301 adds r3, #1 + 8008d60: 61fb str r3, [r7, #28] pSrc++; - 8008caa: 69fb ldr r3, [r7, #28] - 8008cac: 3301 adds r3, #1 - 8008cae: 61fb str r3, [r7, #28] + 8008d62: 69fb ldr r3, [r7, #28] + 8008d64: 3301 adds r3, #1 + 8008d66: 61fb str r3, [r7, #28] for (i = 0U; i < count32b; i++) - 8008cb0: 69bb ldr r3, [r7, #24] - 8008cb2: 3301 adds r3, #1 - 8008cb4: 61bb str r3, [r7, #24] - 8008cb6: 69ba ldr r2, [r7, #24] - 8008cb8: 693b ldr r3, [r7, #16] - 8008cba: 429a cmp r2, r3 - 8008cbc: d3e2 bcc.n 8008c84 + 8008d68: 69bb ldr r3, [r7, #24] + 8008d6a: 3301 adds r3, #1 + 8008d6c: 61bb str r3, [r7, #24] + 8008d6e: 69ba ldr r2, [r7, #24] + 8008d70: 693b ldr r3, [r7, #16] + 8008d72: 429a cmp r2, r3 + 8008d74: d3e2 bcc.n 8008d3c } } return HAL_OK; - 8008cbe: 2300 movs r3, #0 + 8008d76: 2300 movs r3, #0 } - 8008cc0: 4618 mov r0, r3 - 8008cc2: 3724 adds r7, #36 @ 0x24 - 8008cc4: 46bd mov sp, r7 - 8008cc6: f85d 7b04 ldr.w r7, [sp], #4 - 8008cca: 4770 bx lr + 8008d78: 4618 mov r0, r3 + 8008d7a: 3724 adds r7, #36 @ 0x24 + 8008d7c: 46bd mov sp, r7 + 8008d7e: f85d 7b04 ldr.w r7, [sp], #4 + 8008d82: 4770 bx lr -08008ccc : +08008d84 : * @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) { - 8008ccc: b480 push {r7} - 8008cce: b08b sub sp, #44 @ 0x2c - 8008cd0: af00 add r7, sp, #0 - 8008cd2: 60f8 str r0, [r7, #12] - 8008cd4: 60b9 str r1, [r7, #8] - 8008cd6: 4613 mov r3, r2 - 8008cd8: 80fb strh r3, [r7, #6] + 8008d84: b480 push {r7} + 8008d86: b08b sub sp, #44 @ 0x2c + 8008d88: af00 add r7, sp, #0 + 8008d8a: 60f8 str r0, [r7, #12] + 8008d8c: 60b9 str r1, [r7, #8] + 8008d8e: 4613 mov r3, r2 + 8008d90: 80fb strh r3, [r7, #6] uint32_t USBx_BASE = (uint32_t)USBx; - 8008cda: 68fb ldr r3, [r7, #12] - 8008cdc: 61bb str r3, [r7, #24] + 8008d92: 68fb ldr r3, [r7, #12] + 8008d94: 61bb str r3, [r7, #24] uint8_t *pDest = dest; - 8008cde: 68bb ldr r3, [r7, #8] - 8008ce0: 627b str r3, [r7, #36] @ 0x24 + 8008d96: 68bb ldr r3, [r7, #8] + 8008d98: 627b str r3, [r7, #36] @ 0x24 uint32_t pData; uint32_t i; uint32_t count32b = (uint32_t)len >> 2U; - 8008ce2: 88fb ldrh r3, [r7, #6] - 8008ce4: 089b lsrs r3, r3, #2 - 8008ce6: b29b uxth r3, r3 - 8008ce8: 617b str r3, [r7, #20] + 8008d9a: 88fb ldrh r3, [r7, #6] + 8008d9c: 089b lsrs r3, r3, #2 + 8008d9e: b29b uxth r3, r3 + 8008da0: 617b str r3, [r7, #20] uint16_t remaining_bytes = len % 4U; - 8008cea: 88fb ldrh r3, [r7, #6] - 8008cec: f003 0303 and.w r3, r3, #3 - 8008cf0: 83fb strh r3, [r7, #30] + 8008da2: 88fb ldrh r3, [r7, #6] + 8008da4: f003 0303 and.w r3, r3, #3 + 8008da8: 83fb strh r3, [r7, #30] for (i = 0U; i < count32b; i++) - 8008cf2: 2300 movs r3, #0 - 8008cf4: 623b str r3, [r7, #32] - 8008cf6: e014 b.n 8008d22 + 8008daa: 2300 movs r3, #0 + 8008dac: 623b str r3, [r7, #32] + 8008dae: e014 b.n 8008dda { __UNALIGNED_UINT32_WRITE(pDest, USBx_DFIFO(0U)); - 8008cf8: 69bb ldr r3, [r7, #24] - 8008cfa: f503 5380 add.w r3, r3, #4096 @ 0x1000 - 8008cfe: 681a ldr r2, [r3, #0] - 8008d00: 6a7b ldr r3, [r7, #36] @ 0x24 - 8008d02: 601a str r2, [r3, #0] + 8008db0: 69bb ldr r3, [r7, #24] + 8008db2: f503 5380 add.w r3, r3, #4096 @ 0x1000 + 8008db6: 681a ldr r2, [r3, #0] + 8008db8: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008dba: 601a str r2, [r3, #0] pDest++; - 8008d04: 6a7b ldr r3, [r7, #36] @ 0x24 - 8008d06: 3301 adds r3, #1 - 8008d08: 627b str r3, [r7, #36] @ 0x24 + 8008dbc: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008dbe: 3301 adds r3, #1 + 8008dc0: 627b str r3, [r7, #36] @ 0x24 pDest++; - 8008d0a: 6a7b ldr r3, [r7, #36] @ 0x24 - 8008d0c: 3301 adds r3, #1 - 8008d0e: 627b str r3, [r7, #36] @ 0x24 + 8008dc2: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008dc4: 3301 adds r3, #1 + 8008dc6: 627b str r3, [r7, #36] @ 0x24 pDest++; - 8008d10: 6a7b ldr r3, [r7, #36] @ 0x24 - 8008d12: 3301 adds r3, #1 - 8008d14: 627b str r3, [r7, #36] @ 0x24 + 8008dc8: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008dca: 3301 adds r3, #1 + 8008dcc: 627b str r3, [r7, #36] @ 0x24 pDest++; - 8008d16: 6a7b ldr r3, [r7, #36] @ 0x24 - 8008d18: 3301 adds r3, #1 - 8008d1a: 627b str r3, [r7, #36] @ 0x24 + 8008dce: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008dd0: 3301 adds r3, #1 + 8008dd2: 627b str r3, [r7, #36] @ 0x24 for (i = 0U; i < count32b; i++) - 8008d1c: 6a3b ldr r3, [r7, #32] - 8008d1e: 3301 adds r3, #1 - 8008d20: 623b str r3, [r7, #32] - 8008d22: 6a3a ldr r2, [r7, #32] - 8008d24: 697b ldr r3, [r7, #20] - 8008d26: 429a cmp r2, r3 - 8008d28: d3e6 bcc.n 8008cf8 + 8008dd4: 6a3b ldr r3, [r7, #32] + 8008dd6: 3301 adds r3, #1 + 8008dd8: 623b str r3, [r7, #32] + 8008dda: 6a3a ldr r2, [r7, #32] + 8008ddc: 697b ldr r3, [r7, #20] + 8008dde: 429a cmp r2, r3 + 8008de0: d3e6 bcc.n 8008db0 } /* When Number of data is not word aligned, read the remaining byte */ if (remaining_bytes != 0U) - 8008d2a: 8bfb ldrh r3, [r7, #30] - 8008d2c: 2b00 cmp r3, #0 - 8008d2e: d01e beq.n 8008d6e + 8008de2: 8bfb ldrh r3, [r7, #30] + 8008de4: 2b00 cmp r3, #0 + 8008de6: d01e beq.n 8008e26 { i = 0U; - 8008d30: 2300 movs r3, #0 - 8008d32: 623b str r3, [r7, #32] + 8008de8: 2300 movs r3, #0 + 8008dea: 623b str r3, [r7, #32] __UNALIGNED_UINT32_WRITE(&pData, USBx_DFIFO(0U)); - 8008d34: 69bb ldr r3, [r7, #24] - 8008d36: f503 5380 add.w r3, r3, #4096 @ 0x1000 - 8008d3a: 461a mov r2, r3 - 8008d3c: f107 0310 add.w r3, r7, #16 - 8008d40: 6812 ldr r2, [r2, #0] - 8008d42: 601a str r2, [r3, #0] + 8008dec: 69bb ldr r3, [r7, #24] + 8008dee: f503 5380 add.w r3, r3, #4096 @ 0x1000 + 8008df2: 461a mov r2, r3 + 8008df4: f107 0310 add.w r3, r7, #16 + 8008df8: 6812 ldr r2, [r2, #0] + 8008dfa: 601a str r2, [r3, #0] do { *(uint8_t *)pDest = (uint8_t)(pData >> (8U * (uint8_t)(i))); - 8008d44: 693a ldr r2, [r7, #16] - 8008d46: 6a3b ldr r3, [r7, #32] - 8008d48: b2db uxtb r3, r3 - 8008d4a: 00db lsls r3, r3, #3 - 8008d4c: fa22 f303 lsr.w r3, r2, r3 - 8008d50: b2da uxtb r2, r3 - 8008d52: 6a7b ldr r3, [r7, #36] @ 0x24 - 8008d54: 701a strb r2, [r3, #0] + 8008dfc: 693a ldr r2, [r7, #16] + 8008dfe: 6a3b ldr r3, [r7, #32] + 8008e00: b2db uxtb r3, r3 + 8008e02: 00db lsls r3, r3, #3 + 8008e04: fa22 f303 lsr.w r3, r2, r3 + 8008e08: b2da uxtb r2, r3 + 8008e0a: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008e0c: 701a strb r2, [r3, #0] i++; - 8008d56: 6a3b ldr r3, [r7, #32] - 8008d58: 3301 adds r3, #1 - 8008d5a: 623b str r3, [r7, #32] + 8008e0e: 6a3b ldr r3, [r7, #32] + 8008e10: 3301 adds r3, #1 + 8008e12: 623b str r3, [r7, #32] pDest++; - 8008d5c: 6a7b ldr r3, [r7, #36] @ 0x24 - 8008d5e: 3301 adds r3, #1 - 8008d60: 627b str r3, [r7, #36] @ 0x24 + 8008e14: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008e16: 3301 adds r3, #1 + 8008e18: 627b str r3, [r7, #36] @ 0x24 remaining_bytes--; - 8008d62: 8bfb ldrh r3, [r7, #30] - 8008d64: 3b01 subs r3, #1 - 8008d66: 83fb strh r3, [r7, #30] + 8008e1a: 8bfb ldrh r3, [r7, #30] + 8008e1c: 3b01 subs r3, #1 + 8008e1e: 83fb strh r3, [r7, #30] } while (remaining_bytes != 0U); - 8008d68: 8bfb ldrh r3, [r7, #30] - 8008d6a: 2b00 cmp r3, #0 - 8008d6c: d1ea bne.n 8008d44 + 8008e20: 8bfb ldrh r3, [r7, #30] + 8008e22: 2b00 cmp r3, #0 + 8008e24: d1ea bne.n 8008dfc } return ((void *)pDest); - 8008d6e: 6a7b ldr r3, [r7, #36] @ 0x24 + 8008e26: 6a7b ldr r3, [r7, #36] @ 0x24 } - 8008d70: 4618 mov r0, r3 - 8008d72: 372c adds r7, #44 @ 0x2c - 8008d74: 46bd mov sp, r7 - 8008d76: f85d 7b04 ldr.w r7, [sp], #4 - 8008d7a: 4770 bx lr + 8008e28: 4618 mov r0, r3 + 8008e2a: 372c adds r7, #44 @ 0x2c + 8008e2c: 46bd mov sp, r7 + 8008e2e: f85d 7b04 ldr.w r7, [sp], #4 + 8008e32: 4770 bx lr -08008d7c : +08008e34 : * @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) { - 8008d7c: b480 push {r7} - 8008d7e: b085 sub sp, #20 - 8008d80: af00 add r7, sp, #0 - 8008d82: 6078 str r0, [r7, #4] - 8008d84: 6039 str r1, [r7, #0] + 8008e34: b480 push {r7} + 8008e36: b085 sub sp, #20 + 8008e38: af00 add r7, sp, #0 + 8008e3a: 6078 str r0, [r7, #4] + 8008e3c: 6039 str r1, [r7, #0] uint32_t USBx_BASE = (uint32_t)USBx; - 8008d86: 687b ldr r3, [r7, #4] - 8008d88: 60fb str r3, [r7, #12] + 8008e3e: 687b ldr r3, [r7, #4] + 8008e40: 60fb str r3, [r7, #12] uint32_t epnum = (uint32_t)ep->num; - 8008d8a: 683b ldr r3, [r7, #0] - 8008d8c: 781b ldrb r3, [r3, #0] - 8008d8e: 60bb str r3, [r7, #8] + 8008e42: 683b ldr r3, [r7, #0] + 8008e44: 781b ldrb r3, [r3, #0] + 8008e46: 60bb str r3, [r7, #8] if (ep->is_in == 1U) - 8008d90: 683b ldr r3, [r7, #0] - 8008d92: 785b ldrb r3, [r3, #1] - 8008d94: 2b01 cmp r3, #1 - 8008d96: d12c bne.n 8008df2 + 8008e48: 683b ldr r3, [r7, #0] + 8008e4a: 785b ldrb r3, [r3, #1] + 8008e4c: 2b01 cmp r3, #1 + 8008e4e: d12c bne.n 8008eaa { if (((USBx_INEP(epnum)->DIEPCTL & USB_OTG_DIEPCTL_EPENA) == 0U) && (epnum != 0U)) - 8008d98: 68bb ldr r3, [r7, #8] - 8008d9a: 015a lsls r2, r3, #5 - 8008d9c: 68fb ldr r3, [r7, #12] - 8008d9e: 4413 add r3, r2 - 8008da0: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008da4: 681b ldr r3, [r3, #0] - 8008da6: 2b00 cmp r3, #0 - 8008da8: db12 blt.n 8008dd0 - 8008daa: 68bb ldr r3, [r7, #8] - 8008dac: 2b00 cmp r3, #0 - 8008dae: d00f beq.n 8008dd0 + 8008e50: 68bb ldr r3, [r7, #8] + 8008e52: 015a lsls r2, r3, #5 + 8008e54: 68fb ldr r3, [r7, #12] + 8008e56: 4413 add r3, r2 + 8008e58: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008e5c: 681b ldr r3, [r3, #0] + 8008e5e: 2b00 cmp r3, #0 + 8008e60: db12 blt.n 8008e88 + 8008e62: 68bb ldr r3, [r7, #8] + 8008e64: 2b00 cmp r3, #0 + 8008e66: d00f beq.n 8008e88 { USBx_INEP(epnum)->DIEPCTL &= ~(USB_OTG_DIEPCTL_EPDIS); - 8008db0: 68bb ldr r3, [r7, #8] - 8008db2: 015a lsls r2, r3, #5 - 8008db4: 68fb ldr r3, [r7, #12] - 8008db6: 4413 add r3, r2 - 8008db8: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008dbc: 681b ldr r3, [r3, #0] - 8008dbe: 68ba ldr r2, [r7, #8] - 8008dc0: 0151 lsls r1, r2, #5 - 8008dc2: 68fa ldr r2, [r7, #12] - 8008dc4: 440a add r2, r1 - 8008dc6: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008dca: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000 - 8008dce: 6013 str r3, [r2, #0] + 8008e68: 68bb ldr r3, [r7, #8] + 8008e6a: 015a lsls r2, r3, #5 + 8008e6c: 68fb ldr r3, [r7, #12] + 8008e6e: 4413 add r3, r2 + 8008e70: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008e74: 681b ldr r3, [r3, #0] + 8008e76: 68ba ldr r2, [r7, #8] + 8008e78: 0151 lsls r1, r2, #5 + 8008e7a: 68fa ldr r2, [r7, #12] + 8008e7c: 440a add r2, r1 + 8008e7e: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008e82: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000 + 8008e86: 6013 str r3, [r2, #0] } USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_STALL; - 8008dd0: 68bb ldr r3, [r7, #8] - 8008dd2: 015a lsls r2, r3, #5 - 8008dd4: 68fb ldr r3, [r7, #12] - 8008dd6: 4413 add r3, r2 - 8008dd8: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008ddc: 681b ldr r3, [r3, #0] - 8008dde: 68ba ldr r2, [r7, #8] - 8008de0: 0151 lsls r1, r2, #5 - 8008de2: 68fa ldr r2, [r7, #12] - 8008de4: 440a add r2, r1 - 8008de6: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008dea: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 - 8008dee: 6013 str r3, [r2, #0] - 8008df0: e02b b.n 8008e4a + 8008e88: 68bb ldr r3, [r7, #8] + 8008e8a: 015a lsls r2, r3, #5 + 8008e8c: 68fb ldr r3, [r7, #12] + 8008e8e: 4413 add r3, r2 + 8008e90: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008e94: 681b ldr r3, [r3, #0] + 8008e96: 68ba ldr r2, [r7, #8] + 8008e98: 0151 lsls r1, r2, #5 + 8008e9a: 68fa ldr r2, [r7, #12] + 8008e9c: 440a add r2, r1 + 8008e9e: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008ea2: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 + 8008ea6: 6013 str r3, [r2, #0] + 8008ea8: e02b b.n 8008f02 } else { if (((USBx_OUTEP(epnum)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == 0U) && (epnum != 0U)) - 8008df2: 68bb ldr r3, [r7, #8] - 8008df4: 015a lsls r2, r3, #5 - 8008df6: 68fb ldr r3, [r7, #12] - 8008df8: 4413 add r3, r2 - 8008dfa: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008dfe: 681b ldr r3, [r3, #0] - 8008e00: 2b00 cmp r3, #0 - 8008e02: db12 blt.n 8008e2a - 8008e04: 68bb ldr r3, [r7, #8] - 8008e06: 2b00 cmp r3, #0 - 8008e08: d00f beq.n 8008e2a + 8008eaa: 68bb ldr r3, [r7, #8] + 8008eac: 015a lsls r2, r3, #5 + 8008eae: 68fb ldr r3, [r7, #12] + 8008eb0: 4413 add r3, r2 + 8008eb2: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008eb6: 681b ldr r3, [r3, #0] + 8008eb8: 2b00 cmp r3, #0 + 8008eba: db12 blt.n 8008ee2 + 8008ebc: 68bb ldr r3, [r7, #8] + 8008ebe: 2b00 cmp r3, #0 + 8008ec0: d00f beq.n 8008ee2 { USBx_OUTEP(epnum)->DOEPCTL &= ~(USB_OTG_DOEPCTL_EPDIS); - 8008e0a: 68bb ldr r3, [r7, #8] - 8008e0c: 015a lsls r2, r3, #5 - 8008e0e: 68fb ldr r3, [r7, #12] - 8008e10: 4413 add r3, r2 - 8008e12: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008e16: 681b ldr r3, [r3, #0] - 8008e18: 68ba ldr r2, [r7, #8] - 8008e1a: 0151 lsls r1, r2, #5 - 8008e1c: 68fa ldr r2, [r7, #12] - 8008e1e: 440a add r2, r1 - 8008e20: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008e24: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000 - 8008e28: 6013 str r3, [r2, #0] + 8008ec2: 68bb ldr r3, [r7, #8] + 8008ec4: 015a lsls r2, r3, #5 + 8008ec6: 68fb ldr r3, [r7, #12] + 8008ec8: 4413 add r3, r2 + 8008eca: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008ece: 681b ldr r3, [r3, #0] + 8008ed0: 68ba ldr r2, [r7, #8] + 8008ed2: 0151 lsls r1, r2, #5 + 8008ed4: 68fa ldr r2, [r7, #12] + 8008ed6: 440a add r2, r1 + 8008ed8: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008edc: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000 + 8008ee0: 6013 str r3, [r2, #0] } USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_STALL; - 8008e2a: 68bb ldr r3, [r7, #8] - 8008e2c: 015a lsls r2, r3, #5 - 8008e2e: 68fb ldr r3, [r7, #12] - 8008e30: 4413 add r3, r2 - 8008e32: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008e36: 681b ldr r3, [r3, #0] - 8008e38: 68ba ldr r2, [r7, #8] - 8008e3a: 0151 lsls r1, r2, #5 - 8008e3c: 68fa ldr r2, [r7, #12] - 8008e3e: 440a add r2, r1 - 8008e40: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008e44: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 - 8008e48: 6013 str r3, [r2, #0] + 8008ee2: 68bb ldr r3, [r7, #8] + 8008ee4: 015a lsls r2, r3, #5 + 8008ee6: 68fb ldr r3, [r7, #12] + 8008ee8: 4413 add r3, r2 + 8008eea: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008eee: 681b ldr r3, [r3, #0] + 8008ef0: 68ba ldr r2, [r7, #8] + 8008ef2: 0151 lsls r1, r2, #5 + 8008ef4: 68fa ldr r2, [r7, #12] + 8008ef6: 440a add r2, r1 + 8008ef8: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008efc: f443 1300 orr.w r3, r3, #2097152 @ 0x200000 + 8008f00: 6013 str r3, [r2, #0] } return HAL_OK; - 8008e4a: 2300 movs r3, #0 + 8008f02: 2300 movs r3, #0 } - 8008e4c: 4618 mov r0, r3 - 8008e4e: 3714 adds r7, #20 - 8008e50: 46bd mov sp, r7 - 8008e52: f85d 7b04 ldr.w r7, [sp], #4 - 8008e56: 4770 bx lr + 8008f04: 4618 mov r0, r3 + 8008f06: 3714 adds r7, #20 + 8008f08: 46bd mov sp, r7 + 8008f0a: f85d 7b04 ldr.w r7, [sp], #4 + 8008f0e: 4770 bx lr -08008e58 : +08008f10 : * @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) { - 8008e58: b480 push {r7} - 8008e5a: b085 sub sp, #20 - 8008e5c: af00 add r7, sp, #0 - 8008e5e: 6078 str r0, [r7, #4] - 8008e60: 6039 str r1, [r7, #0] + 8008f10: b480 push {r7} + 8008f12: b085 sub sp, #20 + 8008f14: af00 add r7, sp, #0 + 8008f16: 6078 str r0, [r7, #4] + 8008f18: 6039 str r1, [r7, #0] uint32_t USBx_BASE = (uint32_t)USBx; - 8008e62: 687b ldr r3, [r7, #4] - 8008e64: 60fb str r3, [r7, #12] + 8008f1a: 687b ldr r3, [r7, #4] + 8008f1c: 60fb str r3, [r7, #12] uint32_t epnum = (uint32_t)ep->num; - 8008e66: 683b ldr r3, [r7, #0] - 8008e68: 781b ldrb r3, [r3, #0] - 8008e6a: 60bb str r3, [r7, #8] + 8008f1e: 683b ldr r3, [r7, #0] + 8008f20: 781b ldrb r3, [r3, #0] + 8008f22: 60bb str r3, [r7, #8] if (ep->is_in == 1U) - 8008e6c: 683b ldr r3, [r7, #0] - 8008e6e: 785b ldrb r3, [r3, #1] - 8008e70: 2b01 cmp r3, #1 - 8008e72: d128 bne.n 8008ec6 + 8008f24: 683b ldr r3, [r7, #0] + 8008f26: 785b ldrb r3, [r3, #1] + 8008f28: 2b01 cmp r3, #1 + 8008f2a: d128 bne.n 8008f7e { USBx_INEP(epnum)->DIEPCTL &= ~USB_OTG_DIEPCTL_STALL; - 8008e74: 68bb ldr r3, [r7, #8] - 8008e76: 015a lsls r2, r3, #5 - 8008e78: 68fb ldr r3, [r7, #12] - 8008e7a: 4413 add r3, r2 - 8008e7c: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008e80: 681b ldr r3, [r3, #0] - 8008e82: 68ba ldr r2, [r7, #8] - 8008e84: 0151 lsls r1, r2, #5 - 8008e86: 68fa ldr r2, [r7, #12] - 8008e88: 440a add r2, r1 - 8008e8a: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008e8e: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 - 8008e92: 6013 str r3, [r2, #0] + 8008f2c: 68bb ldr r3, [r7, #8] + 8008f2e: 015a lsls r2, r3, #5 + 8008f30: 68fb ldr r3, [r7, #12] + 8008f32: 4413 add r3, r2 + 8008f34: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008f38: 681b ldr r3, [r3, #0] + 8008f3a: 68ba ldr r2, [r7, #8] + 8008f3c: 0151 lsls r1, r2, #5 + 8008f3e: 68fa ldr r2, [r7, #12] + 8008f40: 440a add r2, r1 + 8008f42: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008f46: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 + 8008f4a: 6013 str r3, [r2, #0] if ((ep->type == EP_TYPE_INTR) || (ep->type == EP_TYPE_BULK)) - 8008e94: 683b ldr r3, [r7, #0] - 8008e96: 791b ldrb r3, [r3, #4] - 8008e98: 2b03 cmp r3, #3 - 8008e9a: d003 beq.n 8008ea4 - 8008e9c: 683b ldr r3, [r7, #0] - 8008e9e: 791b ldrb r3, [r3, #4] - 8008ea0: 2b02 cmp r3, #2 - 8008ea2: d138 bne.n 8008f16 + 8008f4c: 683b ldr r3, [r7, #0] + 8008f4e: 791b ldrb r3, [r3, #4] + 8008f50: 2b03 cmp r3, #3 + 8008f52: d003 beq.n 8008f5c + 8008f54: 683b ldr r3, [r7, #0] + 8008f56: 791b ldrb r3, [r3, #4] + 8008f58: 2b02 cmp r3, #2 + 8008f5a: d138 bne.n 8008fce { USBx_INEP(epnum)->DIEPCTL |= USB_OTG_DIEPCTL_SD0PID_SEVNFRM; /* DATA0 */ - 8008ea4: 68bb ldr r3, [r7, #8] - 8008ea6: 015a lsls r2, r3, #5 - 8008ea8: 68fb ldr r3, [r7, #12] - 8008eaa: 4413 add r3, r2 - 8008eac: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8008eb0: 681b ldr r3, [r3, #0] - 8008eb2: 68ba ldr r2, [r7, #8] - 8008eb4: 0151 lsls r1, r2, #5 - 8008eb6: 68fa ldr r2, [r7, #12] - 8008eb8: 440a add r2, r1 - 8008eba: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8008ebe: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8008ec2: 6013 str r3, [r2, #0] - 8008ec4: e027 b.n 8008f16 + 8008f5c: 68bb ldr r3, [r7, #8] + 8008f5e: 015a lsls r2, r3, #5 + 8008f60: 68fb ldr r3, [r7, #12] + 8008f62: 4413 add r3, r2 + 8008f64: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8008f68: 681b ldr r3, [r3, #0] + 8008f6a: 68ba ldr r2, [r7, #8] + 8008f6c: 0151 lsls r1, r2, #5 + 8008f6e: 68fa ldr r2, [r7, #12] + 8008f70: 440a add r2, r1 + 8008f72: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8008f76: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8008f7a: 6013 str r3, [r2, #0] + 8008f7c: e027 b.n 8008fce } } else { USBx_OUTEP(epnum)->DOEPCTL &= ~USB_OTG_DOEPCTL_STALL; - 8008ec6: 68bb ldr r3, [r7, #8] - 8008ec8: 015a lsls r2, r3, #5 - 8008eca: 68fb ldr r3, [r7, #12] - 8008ecc: 4413 add r3, r2 - 8008ece: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008ed2: 681b ldr r3, [r3, #0] - 8008ed4: 68ba ldr r2, [r7, #8] - 8008ed6: 0151 lsls r1, r2, #5 - 8008ed8: 68fa ldr r2, [r7, #12] - 8008eda: 440a add r2, r1 - 8008edc: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008ee0: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 - 8008ee4: 6013 str r3, [r2, #0] + 8008f7e: 68bb ldr r3, [r7, #8] + 8008f80: 015a lsls r2, r3, #5 + 8008f82: 68fb ldr r3, [r7, #12] + 8008f84: 4413 add r3, r2 + 8008f86: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008f8a: 681b ldr r3, [r3, #0] + 8008f8c: 68ba ldr r2, [r7, #8] + 8008f8e: 0151 lsls r1, r2, #5 + 8008f90: 68fa ldr r2, [r7, #12] + 8008f92: 440a add r2, r1 + 8008f94: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008f98: f423 1300 bic.w r3, r3, #2097152 @ 0x200000 + 8008f9c: 6013 str r3, [r2, #0] if ((ep->type == EP_TYPE_INTR) || (ep->type == EP_TYPE_BULK)) - 8008ee6: 683b ldr r3, [r7, #0] - 8008ee8: 791b ldrb r3, [r3, #4] - 8008eea: 2b03 cmp r3, #3 - 8008eec: d003 beq.n 8008ef6 - 8008eee: 683b ldr r3, [r7, #0] - 8008ef0: 791b ldrb r3, [r3, #4] - 8008ef2: 2b02 cmp r3, #2 - 8008ef4: d10f bne.n 8008f16 + 8008f9e: 683b ldr r3, [r7, #0] + 8008fa0: 791b ldrb r3, [r3, #4] + 8008fa2: 2b03 cmp r3, #3 + 8008fa4: d003 beq.n 8008fae + 8008fa6: 683b ldr r3, [r7, #0] + 8008fa8: 791b ldrb r3, [r3, #4] + 8008faa: 2b02 cmp r3, #2 + 8008fac: d10f bne.n 8008fce { USBx_OUTEP(epnum)->DOEPCTL |= USB_OTG_DOEPCTL_SD0PID_SEVNFRM; /* DATA0 */ - 8008ef6: 68bb ldr r3, [r7, #8] - 8008ef8: 015a lsls r2, r3, #5 - 8008efa: 68fb ldr r3, [r7, #12] - 8008efc: 4413 add r3, r2 - 8008efe: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8008f02: 681b ldr r3, [r3, #0] - 8008f04: 68ba ldr r2, [r7, #8] - 8008f06: 0151 lsls r1, r2, #5 - 8008f08: 68fa ldr r2, [r7, #12] - 8008f0a: 440a add r2, r1 - 8008f0c: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 8008f10: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 - 8008f14: 6013 str r3, [r2, #0] + 8008fae: 68bb ldr r3, [r7, #8] + 8008fb0: 015a lsls r2, r3, #5 + 8008fb2: 68fb ldr r3, [r7, #12] + 8008fb4: 4413 add r3, r2 + 8008fb6: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8008fba: 681b ldr r3, [r3, #0] + 8008fbc: 68ba ldr r2, [r7, #8] + 8008fbe: 0151 lsls r1, r2, #5 + 8008fc0: 68fa ldr r2, [r7, #12] + 8008fc2: 440a add r2, r1 + 8008fc4: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8008fc8: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000 + 8008fcc: 6013 str r3, [r2, #0] } } return HAL_OK; - 8008f16: 2300 movs r3, #0 + 8008fce: 2300 movs r3, #0 } - 8008f18: 4618 mov r0, r3 - 8008f1a: 3714 adds r7, #20 - 8008f1c: 46bd mov sp, r7 - 8008f1e: f85d 7b04 ldr.w r7, [sp], #4 - 8008f22: 4770 bx lr + 8008fd0: 4618 mov r0, r3 + 8008fd2: 3714 adds r7, #20 + 8008fd4: 46bd mov sp, r7 + 8008fd6: f85d 7b04 ldr.w r7, [sp], #4 + 8008fda: 4770 bx lr -08008f24 : +08008fdc : * @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) { - 8008f24: b480 push {r7} - 8008f26: b085 sub sp, #20 - 8008f28: af00 add r7, sp, #0 - 8008f2a: 6078 str r0, [r7, #4] - 8008f2c: 460b mov r3, r1 - 8008f2e: 70fb strb r3, [r7, #3] + 8008fdc: b480 push {r7} + 8008fde: b085 sub sp, #20 + 8008fe0: af00 add r7, sp, #0 + 8008fe2: 6078 str r0, [r7, #4] + 8008fe4: 460b mov r3, r1 + 8008fe6: 70fb strb r3, [r7, #3] uint32_t USBx_BASE = (uint32_t)USBx; - 8008f30: 687b ldr r3, [r7, #4] - 8008f32: 60fb str r3, [r7, #12] + 8008fe8: 687b ldr r3, [r7, #4] + 8008fea: 60fb str r3, [r7, #12] USBx_DEVICE->DCFG &= ~(USB_OTG_DCFG_DAD); - 8008f34: 68fb ldr r3, [r7, #12] - 8008f36: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008f3a: 681b ldr r3, [r3, #0] - 8008f3c: 68fa ldr r2, [r7, #12] - 8008f3e: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8008f42: f423 63fe bic.w r3, r3, #2032 @ 0x7f0 - 8008f46: 6013 str r3, [r2, #0] + 8008fec: 68fb ldr r3, [r7, #12] + 8008fee: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8008ff2: 681b ldr r3, [r3, #0] + 8008ff4: 68fa ldr r2, [r7, #12] + 8008ff6: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8008ffa: f423 63fe bic.w r3, r3, #2032 @ 0x7f0 + 8008ffe: 6013 str r3, [r2, #0] USBx_DEVICE->DCFG |= ((uint32_t)address << 4) & USB_OTG_DCFG_DAD; - 8008f48: 68fb ldr r3, [r7, #12] - 8008f4a: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008f4e: 681a ldr r2, [r3, #0] - 8008f50: 78fb ldrb r3, [r7, #3] - 8008f52: 011b lsls r3, r3, #4 - 8008f54: f403 63fe and.w r3, r3, #2032 @ 0x7f0 - 8008f58: 68f9 ldr r1, [r7, #12] - 8008f5a: f501 6100 add.w r1, r1, #2048 @ 0x800 - 8008f5e: 4313 orrs r3, r2 - 8008f60: 600b str r3, [r1, #0] + 8009000: 68fb ldr r3, [r7, #12] + 8009002: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8009006: 681a ldr r2, [r3, #0] + 8009008: 78fb ldrb r3, [r7, #3] + 800900a: 011b lsls r3, r3, #4 + 800900c: f403 63fe and.w r3, r3, #2032 @ 0x7f0 + 8009010: 68f9 ldr r1, [r7, #12] + 8009012: f501 6100 add.w r1, r1, #2048 @ 0x800 + 8009016: 4313 orrs r3, r2 + 8009018: 600b str r3, [r1, #0] return HAL_OK; - 8008f62: 2300 movs r3, #0 + 800901a: 2300 movs r3, #0 } - 8008f64: 4618 mov r0, r3 - 8008f66: 3714 adds r7, #20 - 8008f68: 46bd mov sp, r7 - 8008f6a: f85d 7b04 ldr.w r7, [sp], #4 - 8008f6e: 4770 bx lr + 800901c: 4618 mov r0, r3 + 800901e: 3714 adds r7, #20 + 8009020: 46bd mov sp, r7 + 8009022: f85d 7b04 ldr.w r7, [sp], #4 + 8009026: 4770 bx lr -08008f70 : +08009028 : * @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) { - 8008f70: b480 push {r7} - 8008f72: b085 sub sp, #20 - 8008f74: af00 add r7, sp, #0 - 8008f76: 6078 str r0, [r7, #4] + 8009028: b480 push {r7} + 800902a: b085 sub sp, #20 + 800902c: af00 add r7, sp, #0 + 800902e: 6078 str r0, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 8008f78: 687b ldr r3, [r7, #4] - 8008f7a: 60fb str r3, [r7, #12] + 8009030: 687b ldr r3, [r7, #4] + 8009032: 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); - 8008f7c: 68fb ldr r3, [r7, #12] - 8008f7e: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 8008f82: 681b ldr r3, [r3, #0] - 8008f84: 68fa ldr r2, [r7, #12] - 8008f86: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 8008f8a: f023 0303 bic.w r3, r3, #3 - 8008f8e: 6013 str r3, [r2, #0] + 8009034: 68fb ldr r3, [r7, #12] + 8009036: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 800903a: 681b ldr r3, [r3, #0] + 800903c: 68fa ldr r2, [r7, #12] + 800903e: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 8009042: f023 0303 bic.w r3, r3, #3 + 8009046: 6013 str r3, [r2, #0] USBx_DEVICE->DCTL &= ~USB_OTG_DCTL_SDIS; - 8008f90: 68fb ldr r3, [r7, #12] - 8008f92: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008f96: 685b ldr r3, [r3, #4] - 8008f98: 68fa ldr r2, [r7, #12] - 8008f9a: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8008f9e: f023 0302 bic.w r3, r3, #2 - 8008fa2: 6053 str r3, [r2, #4] + 8009048: 68fb ldr r3, [r7, #12] + 800904a: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800904e: 685b ldr r3, [r3, #4] + 8009050: 68fa ldr r2, [r7, #12] + 8009052: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8009056: f023 0302 bic.w r3, r3, #2 + 800905a: 6053 str r3, [r2, #4] return HAL_OK; - 8008fa4: 2300 movs r3, #0 + 800905c: 2300 movs r3, #0 } - 8008fa6: 4618 mov r0, r3 - 8008fa8: 3714 adds r7, #20 - 8008faa: 46bd mov sp, r7 - 8008fac: f85d 7b04 ldr.w r7, [sp], #4 - 8008fb0: 4770 bx lr + 800905e: 4618 mov r0, r3 + 8009060: 3714 adds r7, #20 + 8009062: 46bd mov sp, r7 + 8009064: f85d 7b04 ldr.w r7, [sp], #4 + 8009068: 4770 bx lr -08008fb2 : +0800906a : * @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) { - 8008fb2: b480 push {r7} - 8008fb4: b085 sub sp, #20 - 8008fb6: af00 add r7, sp, #0 - 8008fb8: 6078 str r0, [r7, #4] + 800906a: b480 push {r7} + 800906c: b085 sub sp, #20 + 800906e: af00 add r7, sp, #0 + 8009070: 6078 str r0, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 8008fba: 687b ldr r3, [r7, #4] - 8008fbc: 60fb str r3, [r7, #12] + 8009072: 687b ldr r3, [r7, #4] + 8009074: 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); - 8008fbe: 68fb ldr r3, [r7, #12] - 8008fc0: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 8008fc4: 681b ldr r3, [r3, #0] - 8008fc6: 68fa ldr r2, [r7, #12] - 8008fc8: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 8008fcc: f023 0303 bic.w r3, r3, #3 - 8008fd0: 6013 str r3, [r2, #0] + 8009076: 68fb ldr r3, [r7, #12] + 8009078: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 800907c: 681b ldr r3, [r3, #0] + 800907e: 68fa ldr r2, [r7, #12] + 8009080: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 8009084: f023 0303 bic.w r3, r3, #3 + 8009088: 6013 str r3, [r2, #0] USBx_DEVICE->DCTL |= USB_OTG_DCTL_SDIS; - 8008fd2: 68fb ldr r3, [r7, #12] - 8008fd4: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8008fd8: 685b ldr r3, [r3, #4] - 8008fda: 68fa ldr r2, [r7, #12] - 8008fdc: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8008fe0: f043 0302 orr.w r3, r3, #2 - 8008fe4: 6053 str r3, [r2, #4] + 800908a: 68fb ldr r3, [r7, #12] + 800908c: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8009090: 685b ldr r3, [r3, #4] + 8009092: 68fa ldr r2, [r7, #12] + 8009094: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8009098: f043 0302 orr.w r3, r3, #2 + 800909c: 6053 str r3, [r2, #4] return HAL_OK; - 8008fe6: 2300 movs r3, #0 + 800909e: 2300 movs r3, #0 } - 8008fe8: 4618 mov r0, r3 - 8008fea: 3714 adds r7, #20 - 8008fec: 46bd mov sp, r7 - 8008fee: f85d 7b04 ldr.w r7, [sp], #4 - 8008ff2: 4770 bx lr + 80090a0: 4618 mov r0, r3 + 80090a2: 3714 adds r7, #20 + 80090a4: 46bd mov sp, r7 + 80090a6: f85d 7b04 ldr.w r7, [sp], #4 + 80090aa: 4770 bx lr -08008ff4 : +080090ac : * @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) { - 8008ff4: b480 push {r7} - 8008ff6: b085 sub sp, #20 - 8008ff8: af00 add r7, sp, #0 - 8008ffa: 6078 str r0, [r7, #4] + 80090ac: b480 push {r7} + 80090ae: b085 sub sp, #20 + 80090b0: af00 add r7, sp, #0 + 80090b2: 6078 str r0, [r7, #4] uint32_t tmpreg; tmpreg = USBx->GINTSTS; - 8008ffc: 687b ldr r3, [r7, #4] - 8008ffe: 695b ldr r3, [r3, #20] - 8009000: 60fb str r3, [r7, #12] + 80090b4: 687b ldr r3, [r7, #4] + 80090b6: 695b ldr r3, [r3, #20] + 80090b8: 60fb str r3, [r7, #12] tmpreg &= USBx->GINTMSK; - 8009002: 687b ldr r3, [r7, #4] - 8009004: 699b ldr r3, [r3, #24] - 8009006: 68fa ldr r2, [r7, #12] - 8009008: 4013 ands r3, r2 - 800900a: 60fb str r3, [r7, #12] + 80090ba: 687b ldr r3, [r7, #4] + 80090bc: 699b ldr r3, [r3, #24] + 80090be: 68fa ldr r2, [r7, #12] + 80090c0: 4013 ands r3, r2 + 80090c2: 60fb str r3, [r7, #12] return tmpreg; - 800900c: 68fb ldr r3, [r7, #12] + 80090c4: 68fb ldr r3, [r7, #12] } - 800900e: 4618 mov r0, r3 - 8009010: 3714 adds r7, #20 - 8009012: 46bd mov sp, r7 - 8009014: f85d 7b04 ldr.w r7, [sp], #4 - 8009018: 4770 bx lr + 80090c6: 4618 mov r0, r3 + 80090c8: 3714 adds r7, #20 + 80090ca: 46bd mov sp, r7 + 80090cc: f85d 7b04 ldr.w r7, [sp], #4 + 80090d0: 4770 bx lr -0800901a : +080090d2 : * @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) { - 800901a: b480 push {r7} - 800901c: b085 sub sp, #20 - 800901e: af00 add r7, sp, #0 - 8009020: 6078 str r0, [r7, #4] + 80090d2: b480 push {r7} + 80090d4: b085 sub sp, #20 + 80090d6: af00 add r7, sp, #0 + 80090d8: 6078 str r0, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 8009022: 687b ldr r3, [r7, #4] - 8009024: 60fb str r3, [r7, #12] + 80090da: 687b ldr r3, [r7, #4] + 80090dc: 60fb str r3, [r7, #12] uint32_t tmpreg; tmpreg = USBx_DEVICE->DAINT; - 8009026: 68fb ldr r3, [r7, #12] - 8009028: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800902c: 699b ldr r3, [r3, #24] - 800902e: 60bb str r3, [r7, #8] + 80090de: 68fb ldr r3, [r7, #12] + 80090e0: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80090e4: 699b ldr r3, [r3, #24] + 80090e6: 60bb str r3, [r7, #8] tmpreg &= USBx_DEVICE->DAINTMSK; - 8009030: 68fb ldr r3, [r7, #12] - 8009032: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8009036: 69db ldr r3, [r3, #28] - 8009038: 68ba ldr r2, [r7, #8] - 800903a: 4013 ands r3, r2 - 800903c: 60bb str r3, [r7, #8] + 80090e8: 68fb ldr r3, [r7, #12] + 80090ea: f503 6300 add.w r3, r3, #2048 @ 0x800 + 80090ee: 69db ldr r3, [r3, #28] + 80090f0: 68ba ldr r2, [r7, #8] + 80090f2: 4013 ands r3, r2 + 80090f4: 60bb str r3, [r7, #8] return ((tmpreg & 0xffff0000U) >> 16); - 800903e: 68bb ldr r3, [r7, #8] - 8009040: 0c1b lsrs r3, r3, #16 + 80090f6: 68bb ldr r3, [r7, #8] + 80090f8: 0c1b lsrs r3, r3, #16 } - 8009042: 4618 mov r0, r3 - 8009044: 3714 adds r7, #20 - 8009046: 46bd mov sp, r7 - 8009048: f85d 7b04 ldr.w r7, [sp], #4 - 800904c: 4770 bx lr + 80090fa: 4618 mov r0, r3 + 80090fc: 3714 adds r7, #20 + 80090fe: 46bd mov sp, r7 + 8009100: f85d 7b04 ldr.w r7, [sp], #4 + 8009104: 4770 bx lr -0800904e : +08009106 : * @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) { - 800904e: b480 push {r7} - 8009050: b085 sub sp, #20 - 8009052: af00 add r7, sp, #0 - 8009054: 6078 str r0, [r7, #4] + 8009106: b480 push {r7} + 8009108: b085 sub sp, #20 + 800910a: af00 add r7, sp, #0 + 800910c: 6078 str r0, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 8009056: 687b ldr r3, [r7, #4] - 8009058: 60fb str r3, [r7, #12] + 800910e: 687b ldr r3, [r7, #4] + 8009110: 60fb str r3, [r7, #12] uint32_t tmpreg; tmpreg = USBx_DEVICE->DAINT; - 800905a: 68fb ldr r3, [r7, #12] - 800905c: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8009060: 699b ldr r3, [r3, #24] - 8009062: 60bb str r3, [r7, #8] + 8009112: 68fb ldr r3, [r7, #12] + 8009114: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8009118: 699b ldr r3, [r3, #24] + 800911a: 60bb str r3, [r7, #8] tmpreg &= USBx_DEVICE->DAINTMSK; - 8009064: 68fb ldr r3, [r7, #12] - 8009066: f503 6300 add.w r3, r3, #2048 @ 0x800 - 800906a: 69db ldr r3, [r3, #28] - 800906c: 68ba ldr r2, [r7, #8] - 800906e: 4013 ands r3, r2 - 8009070: 60bb str r3, [r7, #8] + 800911c: 68fb ldr r3, [r7, #12] + 800911e: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8009122: 69db ldr r3, [r3, #28] + 8009124: 68ba ldr r2, [r7, #8] + 8009126: 4013 ands r3, r2 + 8009128: 60bb str r3, [r7, #8] return ((tmpreg & 0xFFFFU)); - 8009072: 68bb ldr r3, [r7, #8] - 8009074: b29b uxth r3, r3 + 800912a: 68bb ldr r3, [r7, #8] + 800912c: b29b uxth r3, r3 } - 8009076: 4618 mov r0, r3 - 8009078: 3714 adds r7, #20 - 800907a: 46bd mov sp, r7 - 800907c: f85d 7b04 ldr.w r7, [sp], #4 - 8009080: 4770 bx lr + 800912e: 4618 mov r0, r3 + 8009130: 3714 adds r7, #20 + 8009132: 46bd mov sp, r7 + 8009134: f85d 7b04 ldr.w r7, [sp], #4 + 8009138: 4770 bx lr -08009082 : +0800913a : * @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) { - 8009082: b480 push {r7} - 8009084: b085 sub sp, #20 - 8009086: af00 add r7, sp, #0 - 8009088: 6078 str r0, [r7, #4] - 800908a: 460b mov r3, r1 - 800908c: 70fb strb r3, [r7, #3] + 800913a: b480 push {r7} + 800913c: b085 sub sp, #20 + 800913e: af00 add r7, sp, #0 + 8009140: 6078 str r0, [r7, #4] + 8009142: 460b mov r3, r1 + 8009144: 70fb strb r3, [r7, #3] uint32_t USBx_BASE = (uint32_t)USBx; - 800908e: 687b ldr r3, [r7, #4] - 8009090: 60fb str r3, [r7, #12] + 8009146: 687b ldr r3, [r7, #4] + 8009148: 60fb str r3, [r7, #12] uint32_t tmpreg; tmpreg = USBx_OUTEP((uint32_t)epnum)->DOEPINT; - 8009092: 78fb ldrb r3, [r7, #3] - 8009094: 015a lsls r2, r3, #5 - 8009096: 68fb ldr r3, [r7, #12] - 8009098: 4413 add r3, r2 - 800909a: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800909e: 689b ldr r3, [r3, #8] - 80090a0: 60bb str r3, [r7, #8] + 800914a: 78fb ldrb r3, [r7, #3] + 800914c: 015a lsls r2, r3, #5 + 800914e: 68fb ldr r3, [r7, #12] + 8009150: 4413 add r3, r2 + 8009152: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8009156: 689b ldr r3, [r3, #8] + 8009158: 60bb str r3, [r7, #8] tmpreg &= USBx_DEVICE->DOEPMSK; - 80090a2: 68fb ldr r3, [r7, #12] - 80090a4: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80090a8: 695b ldr r3, [r3, #20] - 80090aa: 68ba ldr r2, [r7, #8] - 80090ac: 4013 ands r3, r2 - 80090ae: 60bb str r3, [r7, #8] + 800915a: 68fb ldr r3, [r7, #12] + 800915c: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8009160: 695b ldr r3, [r3, #20] + 8009162: 68ba ldr r2, [r7, #8] + 8009164: 4013 ands r3, r2 + 8009166: 60bb str r3, [r7, #8] return tmpreg; - 80090b0: 68bb ldr r3, [r7, #8] + 8009168: 68bb ldr r3, [r7, #8] } - 80090b2: 4618 mov r0, r3 - 80090b4: 3714 adds r7, #20 - 80090b6: 46bd mov sp, r7 - 80090b8: f85d 7b04 ldr.w r7, [sp], #4 - 80090bc: 4770 bx lr + 800916a: 4618 mov r0, r3 + 800916c: 3714 adds r7, #20 + 800916e: 46bd mov sp, r7 + 8009170: f85d 7b04 ldr.w r7, [sp], #4 + 8009174: 4770 bx lr -080090be : +08009176 : * @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) { - 80090be: b480 push {r7} - 80090c0: b087 sub sp, #28 - 80090c2: af00 add r7, sp, #0 - 80090c4: 6078 str r0, [r7, #4] - 80090c6: 460b mov r3, r1 - 80090c8: 70fb strb r3, [r7, #3] + 8009176: b480 push {r7} + 8009178: b087 sub sp, #28 + 800917a: af00 add r7, sp, #0 + 800917c: 6078 str r0, [r7, #4] + 800917e: 460b mov r3, r1 + 8009180: 70fb strb r3, [r7, #3] uint32_t USBx_BASE = (uint32_t)USBx; - 80090ca: 687b ldr r3, [r7, #4] - 80090cc: 617b str r3, [r7, #20] + 8009182: 687b ldr r3, [r7, #4] + 8009184: 617b str r3, [r7, #20] uint32_t tmpreg; uint32_t msk; uint32_t emp; msk = USBx_DEVICE->DIEPMSK; - 80090ce: 697b ldr r3, [r7, #20] - 80090d0: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80090d4: 691b ldr r3, [r3, #16] - 80090d6: 613b str r3, [r7, #16] + 8009186: 697b ldr r3, [r7, #20] + 8009188: f503 6300 add.w r3, r3, #2048 @ 0x800 + 800918c: 691b ldr r3, [r3, #16] + 800918e: 613b str r3, [r7, #16] emp = USBx_DEVICE->DIEPEMPMSK; - 80090d8: 697b ldr r3, [r7, #20] - 80090da: f503 6300 add.w r3, r3, #2048 @ 0x800 - 80090de: 6b5b ldr r3, [r3, #52] @ 0x34 - 80090e0: 60fb str r3, [r7, #12] + 8009190: 697b ldr r3, [r7, #20] + 8009192: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8009196: 6b5b ldr r3, [r3, #52] @ 0x34 + 8009198: 60fb str r3, [r7, #12] msk |= ((emp >> (epnum & EP_ADDR_MSK)) & 0x1U) << 7; - 80090e2: 78fb ldrb r3, [r7, #3] - 80090e4: f003 030f and.w r3, r3, #15 - 80090e8: 68fa ldr r2, [r7, #12] - 80090ea: fa22 f303 lsr.w r3, r2, r3 - 80090ee: 01db lsls r3, r3, #7 - 80090f0: b2db uxtb r3, r3 - 80090f2: 693a ldr r2, [r7, #16] - 80090f4: 4313 orrs r3, r2 - 80090f6: 613b str r3, [r7, #16] + 800919a: 78fb ldrb r3, [r7, #3] + 800919c: f003 030f and.w r3, r3, #15 + 80091a0: 68fa ldr r2, [r7, #12] + 80091a2: fa22 f303 lsr.w r3, r2, r3 + 80091a6: 01db lsls r3, r3, #7 + 80091a8: b2db uxtb r3, r3 + 80091aa: 693a ldr r2, [r7, #16] + 80091ac: 4313 orrs r3, r2 + 80091ae: 613b str r3, [r7, #16] tmpreg = USBx_INEP((uint32_t)epnum)->DIEPINT & msk; - 80090f8: 78fb ldrb r3, [r7, #3] - 80090fa: 015a lsls r2, r3, #5 - 80090fc: 697b ldr r3, [r7, #20] - 80090fe: 4413 add r3, r2 - 8009100: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8009104: 689b ldr r3, [r3, #8] - 8009106: 693a ldr r2, [r7, #16] - 8009108: 4013 ands r3, r2 - 800910a: 60bb str r3, [r7, #8] + 80091b0: 78fb ldrb r3, [r7, #3] + 80091b2: 015a lsls r2, r3, #5 + 80091b4: 697b ldr r3, [r7, #20] + 80091b6: 4413 add r3, r2 + 80091b8: f503 6310 add.w r3, r3, #2304 @ 0x900 + 80091bc: 689b ldr r3, [r3, #8] + 80091be: 693a ldr r2, [r7, #16] + 80091c0: 4013 ands r3, r2 + 80091c2: 60bb str r3, [r7, #8] return tmpreg; - 800910c: 68bb ldr r3, [r7, #8] + 80091c4: 68bb ldr r3, [r7, #8] } - 800910e: 4618 mov r0, r3 - 8009110: 371c adds r7, #28 - 8009112: 46bd mov sp, r7 - 8009114: f85d 7b04 ldr.w r7, [sp], #4 - 8009118: 4770 bx lr + 80091c6: 4618 mov r0, r3 + 80091c8: 371c adds r7, #28 + 80091ca: 46bd mov sp, r7 + 80091cc: f85d 7b04 ldr.w r7, [sp], #4 + 80091d0: 4770 bx lr -0800911a : +080091d2 : * This parameter can be one of these values: * 1 : Host * 0 : Device */ uint32_t USB_GetMode(const USB_OTG_GlobalTypeDef *USBx) { - 800911a: b480 push {r7} - 800911c: b083 sub sp, #12 - 800911e: af00 add r7, sp, #0 - 8009120: 6078 str r0, [r7, #4] + 80091d2: b480 push {r7} + 80091d4: b083 sub sp, #12 + 80091d6: af00 add r7, sp, #0 + 80091d8: 6078 str r0, [r7, #4] return ((USBx->GINTSTS) & 0x1U); - 8009122: 687b ldr r3, [r7, #4] - 8009124: 695b ldr r3, [r3, #20] - 8009126: f003 0301 and.w r3, r3, #1 + 80091da: 687b ldr r3, [r7, #4] + 80091dc: 695b ldr r3, [r3, #20] + 80091de: f003 0301 and.w r3, r3, #1 } - 800912a: 4618 mov r0, r3 - 800912c: 370c adds r7, #12 - 800912e: 46bd mov sp, r7 - 8009130: f85d 7b04 ldr.w r7, [sp], #4 - 8009134: 4770 bx lr + 80091e2: 4618 mov r0, r3 + 80091e4: 370c adds r7, #12 + 80091e6: 46bd mov sp, r7 + 80091e8: f85d 7b04 ldr.w r7, [sp], #4 + 80091ec: 4770 bx lr -08009136 : +080091ee : * @brief Activate EP0 for Setup transactions * @param USBx Selected device * @retval HAL status */ HAL_StatusTypeDef USB_ActivateSetup(const USB_OTG_GlobalTypeDef *USBx) { - 8009136: b480 push {r7} - 8009138: b085 sub sp, #20 - 800913a: af00 add r7, sp, #0 - 800913c: 6078 str r0, [r7, #4] + 80091ee: b480 push {r7} + 80091f0: b085 sub sp, #20 + 80091f2: af00 add r7, sp, #0 + 80091f4: 6078 str r0, [r7, #4] uint32_t USBx_BASE = (uint32_t)USBx; - 800913e: 687b ldr r3, [r7, #4] - 8009140: 60fb str r3, [r7, #12] + 80091f6: 687b ldr r3, [r7, #4] + 80091f8: 60fb str r3, [r7, #12] /* Set the MPS of the IN EP0 to 64 bytes */ USBx_INEP(0U)->DIEPCTL &= ~USB_OTG_DIEPCTL_MPSIZ; - 8009142: 68fb ldr r3, [r7, #12] - 8009144: f503 6310 add.w r3, r3, #2304 @ 0x900 - 8009148: 681b ldr r3, [r3, #0] - 800914a: 68fa ldr r2, [r7, #12] - 800914c: f502 6210 add.w r2, r2, #2304 @ 0x900 - 8009150: f423 63ff bic.w r3, r3, #2040 @ 0x7f8 - 8009154: f023 0307 bic.w r3, r3, #7 - 8009158: 6013 str r3, [r2, #0] + 80091fa: 68fb ldr r3, [r7, #12] + 80091fc: f503 6310 add.w r3, r3, #2304 @ 0x900 + 8009200: 681b ldr r3, [r3, #0] + 8009202: 68fa ldr r2, [r7, #12] + 8009204: f502 6210 add.w r2, r2, #2304 @ 0x900 + 8009208: f423 63ff bic.w r3, r3, #2040 @ 0x7f8 + 800920c: f023 0307 bic.w r3, r3, #7 + 8009210: 6013 str r3, [r2, #0] USBx_DEVICE->DCTL |= USB_OTG_DCTL_CGINAK; - 800915a: 68fb ldr r3, [r7, #12] - 800915c: f503 6300 add.w r3, r3, #2048 @ 0x800 - 8009160: 685b ldr r3, [r3, #4] - 8009162: 68fa ldr r2, [r7, #12] - 8009164: f502 6200 add.w r2, r2, #2048 @ 0x800 - 8009168: f443 7380 orr.w r3, r3, #256 @ 0x100 - 800916c: 6053 str r3, [r2, #4] + 8009212: 68fb ldr r3, [r7, #12] + 8009214: f503 6300 add.w r3, r3, #2048 @ 0x800 + 8009218: 685b ldr r3, [r3, #4] + 800921a: 68fa ldr r2, [r7, #12] + 800921c: f502 6200 add.w r2, r2, #2048 @ 0x800 + 8009220: f443 7380 orr.w r3, r3, #256 @ 0x100 + 8009224: 6053 str r3, [r2, #4] return HAL_OK; - 800916e: 2300 movs r3, #0 + 8009226: 2300 movs r3, #0 } - 8009170: 4618 mov r0, r3 - 8009172: 3714 adds r7, #20 - 8009174: 46bd mov sp, r7 - 8009176: f85d 7b04 ldr.w r7, [sp], #4 - 800917a: 4770 bx lr + 8009228: 4618 mov r0, r3 + 800922a: 3714 adds r7, #20 + 800922c: 46bd mov sp, r7 + 800922e: f85d 7b04 ldr.w r7, [sp], #4 + 8009232: 4770 bx lr -0800917c : +08009234 : * 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) { - 800917c: b480 push {r7} - 800917e: b087 sub sp, #28 - 8009180: af00 add r7, sp, #0 - 8009182: 60f8 str r0, [r7, #12] - 8009184: 460b mov r3, r1 - 8009186: 607a str r2, [r7, #4] - 8009188: 72fb strb r3, [r7, #11] + 8009234: b480 push {r7} + 8009236: b087 sub sp, #28 + 8009238: af00 add r7, sp, #0 + 800923a: 60f8 str r0, [r7, #12] + 800923c: 460b mov r3, r1 + 800923e: 607a str r2, [r7, #4] + 8009240: 72fb strb r3, [r7, #11] uint32_t USBx_BASE = (uint32_t)USBx; - 800918a: 68fb ldr r3, [r7, #12] - 800918c: 617b str r3, [r7, #20] + 8009242: 68fb ldr r3, [r7, #12] + 8009244: 617b str r3, [r7, #20] uint32_t gSNPSiD = *(__IO const uint32_t *)(&USBx->CID + 0x1U); - 800918e: 68fb ldr r3, [r7, #12] - 8009190: 333c adds r3, #60 @ 0x3c - 8009192: 3304 adds r3, #4 - 8009194: 681b ldr r3, [r3, #0] - 8009196: 613b str r3, [r7, #16] + 8009246: 68fb ldr r3, [r7, #12] + 8009248: 333c adds r3, #60 @ 0x3c + 800924a: 3304 adds r3, #4 + 800924c: 681b ldr r3, [r3, #0] + 800924e: 613b str r3, [r7, #16] if (gSNPSiD > USB_OTG_CORE_ID_300A) - 8009198: 693b ldr r3, [r7, #16] - 800919a: 4a26 ldr r2, [pc, #152] @ (8009234 ) - 800919c: 4293 cmp r3, r2 - 800919e: d90a bls.n 80091b6 + 8009250: 693b ldr r3, [r7, #16] + 8009252: 4a26 ldr r2, [pc, #152] @ (80092ec ) + 8009254: 4293 cmp r3, r2 + 8009256: d90a bls.n 800926e { if ((USBx_OUTEP(0U)->DOEPCTL & USB_OTG_DOEPCTL_EPENA) == USB_OTG_DOEPCTL_EPENA) - 80091a0: 697b ldr r3, [r7, #20] - 80091a2: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80091a6: 681b ldr r3, [r3, #0] - 80091a8: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 - 80091ac: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 - 80091b0: d101 bne.n 80091b6 + 8009258: 697b ldr r3, [r7, #20] + 800925a: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 800925e: 681b ldr r3, [r3, #0] + 8009260: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000 + 8009264: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000 + 8009268: d101 bne.n 800926e { return HAL_OK; - 80091b2: 2300 movs r3, #0 - 80091b4: e037 b.n 8009226 + 800926a: 2300 movs r3, #0 + 800926c: e037 b.n 80092de } } USBx_OUTEP(0U)->DOEPTSIZ = 0U; - 80091b6: 697b ldr r3, [r7, #20] - 80091b8: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80091bc: 461a mov r2, r3 - 80091be: 2300 movs r3, #0 - 80091c0: 6113 str r3, [r2, #16] + 800926e: 697b ldr r3, [r7, #20] + 8009270: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8009274: 461a mov r2, r3 + 8009276: 2300 movs r3, #0 + 8009278: 6113 str r3, [r2, #16] USBx_OUTEP(0U)->DOEPTSIZ |= (USB_OTG_DOEPTSIZ_PKTCNT & (1U << 19)); - 80091c2: 697b ldr r3, [r7, #20] - 80091c4: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80091c8: 691b ldr r3, [r3, #16] - 80091ca: 697a ldr r2, [r7, #20] - 80091cc: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 80091d0: f443 2300 orr.w r3, r3, #524288 @ 0x80000 - 80091d4: 6113 str r3, [r2, #16] + 800927a: 697b ldr r3, [r7, #20] + 800927c: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8009280: 691b ldr r3, [r3, #16] + 8009282: 697a ldr r2, [r7, #20] + 8009284: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 8009288: f443 2300 orr.w r3, r3, #524288 @ 0x80000 + 800928c: 6113 str r3, [r2, #16] USBx_OUTEP(0U)->DOEPTSIZ |= (3U * 8U); - 80091d6: 697b ldr r3, [r7, #20] - 80091d8: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80091dc: 691b ldr r3, [r3, #16] - 80091de: 697a ldr r2, [r7, #20] - 80091e0: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 80091e4: f043 0318 orr.w r3, r3, #24 - 80091e8: 6113 str r3, [r2, #16] + 800928e: 697b ldr r3, [r7, #20] + 8009290: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 8009294: 691b ldr r3, [r3, #16] + 8009296: 697a ldr r2, [r7, #20] + 8009298: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 800929c: f043 0318 orr.w r3, r3, #24 + 80092a0: 6113 str r3, [r2, #16] USBx_OUTEP(0U)->DOEPTSIZ |= USB_OTG_DOEPTSIZ_STUPCNT; - 80091ea: 697b ldr r3, [r7, #20] - 80091ec: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 80091f0: 691b ldr r3, [r3, #16] - 80091f2: 697a ldr r2, [r7, #20] - 80091f4: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 80091f8: f043 43c0 orr.w r3, r3, #1610612736 @ 0x60000000 - 80091fc: 6113 str r3, [r2, #16] + 80092a2: 697b ldr r3, [r7, #20] + 80092a4: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80092a8: 691b ldr r3, [r3, #16] + 80092aa: 697a ldr r2, [r7, #20] + 80092ac: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80092b0: f043 43c0 orr.w r3, r3, #1610612736 @ 0x60000000 + 80092b4: 6113 str r3, [r2, #16] if (dma == 1U) - 80091fe: 7afb ldrb r3, [r7, #11] - 8009200: 2b01 cmp r3, #1 - 8009202: d10f bne.n 8009224 + 80092b6: 7afb ldrb r3, [r7, #11] + 80092b8: 2b01 cmp r3, #1 + 80092ba: d10f bne.n 80092dc { USBx_OUTEP(0U)->DOEPDMA = (uint32_t)psetup; - 8009204: 697b ldr r3, [r7, #20] - 8009206: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 800920a: 461a mov r2, r3 - 800920c: 687b ldr r3, [r7, #4] - 800920e: 6153 str r3, [r2, #20] + 80092bc: 697b ldr r3, [r7, #20] + 80092be: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80092c2: 461a mov r2, r3 + 80092c4: 687b ldr r3, [r7, #4] + 80092c6: 6153 str r3, [r2, #20] /* EP enable */ USBx_OUTEP(0U)->DOEPCTL |= USB_OTG_DOEPCTL_EPENA | USB_OTG_DOEPCTL_USBAEP; - 8009210: 697b ldr r3, [r7, #20] - 8009212: f503 6330 add.w r3, r3, #2816 @ 0xb00 - 8009216: 681b ldr r3, [r3, #0] - 8009218: 697a ldr r2, [r7, #20] - 800921a: f502 6230 add.w r2, r2, #2816 @ 0xb00 - 800921e: f043 2380 orr.w r3, r3, #2147516416 @ 0x80008000 - 8009222: 6013 str r3, [r2, #0] + 80092c8: 697b ldr r3, [r7, #20] + 80092ca: f503 6330 add.w r3, r3, #2816 @ 0xb00 + 80092ce: 681b ldr r3, [r3, #0] + 80092d0: 697a ldr r2, [r7, #20] + 80092d2: f502 6230 add.w r2, r2, #2816 @ 0xb00 + 80092d6: f043 2380 orr.w r3, r3, #2147516416 @ 0x80008000 + 80092da: 6013 str r3, [r2, #0] } return HAL_OK; - 8009224: 2300 movs r3, #0 + 80092dc: 2300 movs r3, #0 } - 8009226: 4618 mov r0, r3 - 8009228: 371c adds r7, #28 - 800922a: 46bd mov sp, r7 - 800922c: f85d 7b04 ldr.w r7, [sp], #4 - 8009230: 4770 bx lr - 8009232: bf00 nop - 8009234: 4f54300a .word 0x4f54300a + 80092de: 4618 mov r0, r3 + 80092e0: 371c adds r7, #28 + 80092e2: 46bd mov sp, r7 + 80092e4: f85d 7b04 ldr.w r7, [sp], #4 + 80092e8: 4770 bx lr + 80092ea: bf00 nop + 80092ec: 4f54300a .word 0x4f54300a -08009238 : +080092f0 : * @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) { - 8009238: b480 push {r7} - 800923a: b085 sub sp, #20 - 800923c: af00 add r7, sp, #0 - 800923e: 6078 str r0, [r7, #4] + 80092f0: b480 push {r7} + 80092f2: b085 sub sp, #20 + 80092f4: af00 add r7, sp, #0 + 80092f6: 6078 str r0, [r7, #4] __IO uint32_t count = 0U; - 8009240: 2300 movs r3, #0 - 8009242: 60fb str r3, [r7, #12] + 80092f8: 2300 movs r3, #0 + 80092fa: 60fb str r3, [r7, #12] /* Wait for AHB master IDLE state. */ do { count++; - 8009244: 68fb ldr r3, [r7, #12] - 8009246: 3301 adds r3, #1 - 8009248: 60fb str r3, [r7, #12] + 80092fc: 68fb ldr r3, [r7, #12] + 80092fe: 3301 adds r3, #1 + 8009300: 60fb str r3, [r7, #12] if (count > HAL_USB_TIMEOUT) - 800924a: 68fb ldr r3, [r7, #12] - 800924c: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 8009250: d901 bls.n 8009256 + 8009302: 68fb ldr r3, [r7, #12] + 8009304: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 8009308: d901 bls.n 800930e { return HAL_TIMEOUT; - 8009252: 2303 movs r3, #3 - 8009254: e022 b.n 800929c + 800930a: 2303 movs r3, #3 + 800930c: e022 b.n 8009354 } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_AHBIDL) == 0U); - 8009256: 687b ldr r3, [r7, #4] - 8009258: 691b ldr r3, [r3, #16] - 800925a: 2b00 cmp r3, #0 - 800925c: daf2 bge.n 8009244 + 800930e: 687b ldr r3, [r7, #4] + 8009310: 691b ldr r3, [r3, #16] + 8009312: 2b00 cmp r3, #0 + 8009314: daf2 bge.n 80092fc count = 10U; - 800925e: 230a movs r3, #10 - 8009260: 60fb str r3, [r7, #12] + 8009316: 230a movs r3, #10 + 8009318: 60fb str r3, [r7, #12] /* few cycles before setting core reset */ while (count > 0U) - 8009262: e002 b.n 800926a + 800931a: e002 b.n 8009322 { count--; - 8009264: 68fb ldr r3, [r7, #12] - 8009266: 3b01 subs r3, #1 - 8009268: 60fb str r3, [r7, #12] + 800931c: 68fb ldr r3, [r7, #12] + 800931e: 3b01 subs r3, #1 + 8009320: 60fb str r3, [r7, #12] while (count > 0U) - 800926a: 68fb ldr r3, [r7, #12] - 800926c: 2b00 cmp r3, #0 - 800926e: d1f9 bne.n 8009264 + 8009322: 68fb ldr r3, [r7, #12] + 8009324: 2b00 cmp r3, #0 + 8009326: d1f9 bne.n 800931c } /* Core Soft Reset */ USBx->GRSTCTL |= USB_OTG_GRSTCTL_CSRST; - 8009270: 687b ldr r3, [r7, #4] - 8009272: 691b ldr r3, [r3, #16] - 8009274: f043 0201 orr.w r2, r3, #1 - 8009278: 687b ldr r3, [r7, #4] - 800927a: 611a str r2, [r3, #16] + 8009328: 687b ldr r3, [r7, #4] + 800932a: 691b ldr r3, [r3, #16] + 800932c: f043 0201 orr.w r2, r3, #1 + 8009330: 687b ldr r3, [r7, #4] + 8009332: 611a str r2, [r3, #16] do { count++; - 800927c: 68fb ldr r3, [r7, #12] - 800927e: 3301 adds r3, #1 - 8009280: 60fb str r3, [r7, #12] + 8009334: 68fb ldr r3, [r7, #12] + 8009336: 3301 adds r3, #1 + 8009338: 60fb str r3, [r7, #12] if (count > HAL_USB_TIMEOUT) - 8009282: 68fb ldr r3, [r7, #12] - 8009284: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 - 8009288: d901 bls.n 800928e + 800933a: 68fb ldr r3, [r7, #12] + 800933c: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000 + 8009340: d901 bls.n 8009346 { return HAL_TIMEOUT; - 800928a: 2303 movs r3, #3 - 800928c: e006 b.n 800929c + 8009342: 2303 movs r3, #3 + 8009344: e006 b.n 8009354 } } while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_CSRST) == USB_OTG_GRSTCTL_CSRST); - 800928e: 687b ldr r3, [r7, #4] - 8009290: 691b ldr r3, [r3, #16] - 8009292: f003 0301 and.w r3, r3, #1 - 8009296: 2b01 cmp r3, #1 - 8009298: d0f0 beq.n 800927c + 8009346: 687b ldr r3, [r7, #4] + 8009348: 691b ldr r3, [r3, #16] + 800934a: f003 0301 and.w r3, r3, #1 + 800934e: 2b01 cmp r3, #1 + 8009350: d0f0 beq.n 8009334 return HAL_OK; - 800929a: 2300 movs r3, #0 + 8009352: 2300 movs r3, #0 } - 800929c: 4618 mov r0, r3 - 800929e: 3714 adds r7, #20 - 80092a0: 46bd mov sp, r7 - 80092a2: f85d 7b04 ldr.w r7, [sp], #4 - 80092a6: 4770 bx lr + 8009354: 4618 mov r0, r3 + 8009356: 3714 adds r7, #20 + 8009358: 46bd mov sp, r7 + 800935a: f85d 7b04 ldr.w r7, [sp], #4 + 800935e: 4770 bx lr -080092a8 : +08009360 : * @param pdev: device instance * @param cfgidx: Configuration index * @retval status */ static uint8_t USBD_HID_Init(USBD_HandleTypeDef *pdev, uint8_t cfgidx) { - 80092a8: b580 push {r7, lr} - 80092aa: b084 sub sp, #16 - 80092ac: af00 add r7, sp, #0 - 80092ae: 6078 str r0, [r7, #4] - 80092b0: 460b mov r3, r1 - 80092b2: 70fb strb r3, [r7, #3] + 8009360: b580 push {r7, lr} + 8009362: b084 sub sp, #16 + 8009364: af00 add r7, sp, #0 + 8009366: 6078 str r0, [r7, #4] + 8009368: 460b mov r3, r1 + 800936a: 70fb strb r3, [r7, #3] UNUSED(cfgidx); USBD_HID_HandleTypeDef *hhid; hhid = (USBD_HID_HandleTypeDef *)USBD_malloc(sizeof(USBD_HID_HandleTypeDef)); - 80092b4: 2010 movs r0, #16 - 80092b6: f002 f9e3 bl 800b680 - 80092ba: 60f8 str r0, [r7, #12] + 800936c: 2010 movs r0, #16 + 800936e: f002 f9e3 bl 800b738 + 8009372: 60f8 str r0, [r7, #12] if (hhid == NULL) - 80092bc: 68fb ldr r3, [r7, #12] - 80092be: 2b00 cmp r3, #0 - 80092c0: d109 bne.n 80092d6 + 8009374: 68fb ldr r3, [r7, #12] + 8009376: 2b00 cmp r3, #0 + 8009378: d109 bne.n 800938e { pdev->pClassDataCmsit[pdev->classId] = NULL; - 80092c2: 687b ldr r3, [r7, #4] - 80092c4: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80092c8: 687b ldr r3, [r7, #4] - 80092ca: 32b0 adds r2, #176 @ 0xb0 - 80092cc: 2100 movs r1, #0 - 80092ce: f843 1022 str.w r1, [r3, r2, lsl #2] + 800937a: 687b ldr r3, [r7, #4] + 800937c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009380: 687b ldr r3, [r7, #4] + 8009382: 32b0 adds r2, #176 @ 0xb0 + 8009384: 2100 movs r1, #0 + 8009386: f843 1022 str.w r1, [r3, r2, lsl #2] return (uint8_t)USBD_EMEM; - 80092d2: 2302 movs r3, #2 - 80092d4: e048 b.n 8009368 + 800938a: 2302 movs r3, #2 + 800938c: e048 b.n 8009420 } pdev->pClassDataCmsit[pdev->classId] = (void *)hhid; - 80092d6: 687b ldr r3, [r7, #4] - 80092d8: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80092dc: 687b ldr r3, [r7, #4] - 80092de: 32b0 adds r2, #176 @ 0xb0 - 80092e0: 68f9 ldr r1, [r7, #12] - 80092e2: f843 1022 str.w r1, [r3, r2, lsl #2] + 800938e: 687b ldr r3, [r7, #4] + 8009390: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009394: 687b ldr r3, [r7, #4] + 8009396: 32b0 adds r2, #176 @ 0xb0 + 8009398: 68f9 ldr r1, [r7, #12] + 800939a: f843 1022 str.w r1, [r3, r2, lsl #2] pdev->pClassData = pdev->pClassDataCmsit[pdev->classId]; - 80092e6: 687b ldr r3, [r7, #4] - 80092e8: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80092ec: 687b ldr r3, [r7, #4] - 80092ee: 32b0 adds r2, #176 @ 0xb0 - 80092f0: f853 2022 ldr.w r2, [r3, r2, lsl #2] - 80092f4: 687b ldr r3, [r7, #4] - 80092f6: f8c3 22bc str.w r2, [r3, #700] @ 0x2bc + 800939e: 687b ldr r3, [r7, #4] + 80093a0: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 80093a4: 687b ldr r3, [r7, #4] + 80093a6: 32b0 adds r2, #176 @ 0xb0 + 80093a8: f853 2022 ldr.w r2, [r3, r2, lsl #2] + 80093ac: 687b ldr r3, [r7, #4] + 80093ae: 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) - 80092fa: 687b ldr r3, [r7, #4] - 80092fc: 7c1b ldrb r3, [r3, #16] - 80092fe: 2b00 cmp r3, #0 - 8009300: d10d bne.n 800931e + 80093b2: 687b ldr r3, [r7, #4] + 80093b4: 7c1b ldrb r3, [r3, #16] + 80093b6: 2b00 cmp r3, #0 + 80093b8: d10d bne.n 80093d6 { pdev->ep_in[HIDInEpAdd & 0xFU].bInterval = HID_HS_BINTERVAL; - 8009302: 4b1b ldr r3, [pc, #108] @ (8009370 ) - 8009304: 781b ldrb r3, [r3, #0] - 8009306: f003 020f and.w r2, r3, #15 - 800930a: 6879 ldr r1, [r7, #4] - 800930c: 4613 mov r3, r2 - 800930e: 009b lsls r3, r3, #2 - 8009310: 4413 add r3, r2 - 8009312: 009b lsls r3, r3, #2 - 8009314: 440b add r3, r1 - 8009316: 331c adds r3, #28 - 8009318: 2207 movs r2, #7 - 800931a: 601a str r2, [r3, #0] - 800931c: e00c b.n 8009338 + 80093ba: 4b1b ldr r3, [pc, #108] @ (8009428 ) + 80093bc: 781b ldrb r3, [r3, #0] + 80093be: f003 020f and.w r2, r3, #15 + 80093c2: 6879 ldr r1, [r7, #4] + 80093c4: 4613 mov r3, r2 + 80093c6: 009b lsls r3, r3, #2 + 80093c8: 4413 add r3, r2 + 80093ca: 009b lsls r3, r3, #2 + 80093cc: 440b add r3, r1 + 80093ce: 331c adds r3, #28 + 80093d0: 2207 movs r2, #7 + 80093d2: 601a str r2, [r3, #0] + 80093d4: e00c b.n 80093f0 } else /* LOW and FULL-speed endpoints */ { pdev->ep_in[HIDInEpAdd & 0xFU].bInterval = HID_FS_BINTERVAL; - 800931e: 4b14 ldr r3, [pc, #80] @ (8009370 ) - 8009320: 781b ldrb r3, [r3, #0] - 8009322: f003 020f and.w r2, r3, #15 - 8009326: 6879 ldr r1, [r7, #4] - 8009328: 4613 mov r3, r2 - 800932a: 009b lsls r3, r3, #2 - 800932c: 4413 add r3, r2 - 800932e: 009b lsls r3, r3, #2 - 8009330: 440b add r3, r1 - 8009332: 331c adds r3, #28 - 8009334: 220a movs r2, #10 - 8009336: 601a str r2, [r3, #0] + 80093d6: 4b14 ldr r3, [pc, #80] @ (8009428 ) + 80093d8: 781b ldrb r3, [r3, #0] + 80093da: f003 020f and.w r2, r3, #15 + 80093de: 6879 ldr r1, [r7, #4] + 80093e0: 4613 mov r3, r2 + 80093e2: 009b lsls r3, r3, #2 + 80093e4: 4413 add r3, r2 + 80093e6: 009b lsls r3, r3, #2 + 80093e8: 440b add r3, r1 + 80093ea: 331c adds r3, #28 + 80093ec: 220a movs r2, #10 + 80093ee: 601a str r2, [r3, #0] } /* Open EP IN */ (void)USBD_LL_OpenEP(pdev, HIDInEpAdd, USBD_EP_TYPE_INTR, HID_EPIN_SIZE); - 8009338: 4b0d ldr r3, [pc, #52] @ (8009370 ) - 800933a: 7819 ldrb r1, [r3, #0] - 800933c: 230e movs r3, #14 - 800933e: 2203 movs r2, #3 - 8009340: 6878 ldr r0, [r7, #4] - 8009342: f002 f83e bl 800b3c2 + 80093f0: 4b0d ldr r3, [pc, #52] @ (8009428 ) + 80093f2: 7819 ldrb r1, [r3, #0] + 80093f4: 230e movs r3, #14 + 80093f6: 2203 movs r2, #3 + 80093f8: 6878 ldr r0, [r7, #4] + 80093fa: f002 f83e bl 800b47a pdev->ep_in[HIDInEpAdd & 0xFU].is_used = 1U; - 8009346: 4b0a ldr r3, [pc, #40] @ (8009370 ) - 8009348: 781b ldrb r3, [r3, #0] - 800934a: f003 020f and.w r2, r3, #15 - 800934e: 6879 ldr r1, [r7, #4] - 8009350: 4613 mov r3, r2 - 8009352: 009b lsls r3, r3, #2 - 8009354: 4413 add r3, r2 - 8009356: 009b lsls r3, r3, #2 - 8009358: 440b add r3, r1 - 800935a: 3323 adds r3, #35 @ 0x23 - 800935c: 2201 movs r2, #1 - 800935e: 701a strb r2, [r3, #0] + 80093fe: 4b0a ldr r3, [pc, #40] @ (8009428 ) + 8009400: 781b ldrb r3, [r3, #0] + 8009402: f003 020f and.w r2, r3, #15 + 8009406: 6879 ldr r1, [r7, #4] + 8009408: 4613 mov r3, r2 + 800940a: 009b lsls r3, r3, #2 + 800940c: 4413 add r3, r2 + 800940e: 009b lsls r3, r3, #2 + 8009410: 440b add r3, r1 + 8009412: 3323 adds r3, #35 @ 0x23 + 8009414: 2201 movs r2, #1 + 8009416: 701a strb r2, [r3, #0] hhid->state = USBD_HID_IDLE; - 8009360: 68fb ldr r3, [r7, #12] - 8009362: 2200 movs r2, #0 - 8009364: 731a strb r2, [r3, #12] + 8009418: 68fb ldr r3, [r7, #12] + 800941a: 2200 movs r2, #0 + 800941c: 731a strb r2, [r3, #12] return (uint8_t)USBD_OK; - 8009366: 2300 movs r3, #0 + 800941e: 2300 movs r3, #0 } - 8009368: 4618 mov r0, r3 - 800936a: 3710 adds r7, #16 - 800936c: 46bd mov sp, r7 - 800936e: bd80 pop {r7, pc} - 8009370: 2000013d .word 0x2000013d + 8009420: 4618 mov r0, r3 + 8009422: 3710 adds r7, #16 + 8009424: 46bd mov sp, r7 + 8009426: bd80 pop {r7, pc} + 8009428: 2000013d .word 0x2000013d -08009374 : +0800942c : * @param pdev: device instance * @param cfgidx: Configuration index * @retval status */ static uint8_t USBD_HID_DeInit(USBD_HandleTypeDef *pdev, uint8_t cfgidx) { - 8009374: b580 push {r7, lr} - 8009376: b082 sub sp, #8 - 8009378: af00 add r7, sp, #0 - 800937a: 6078 str r0, [r7, #4] - 800937c: 460b mov r3, r1 - 800937e: 70fb strb r3, [r7, #3] + 800942c: b580 push {r7, lr} + 800942e: b082 sub sp, #8 + 8009430: af00 add r7, sp, #0 + 8009432: 6078 str r0, [r7, #4] + 8009434: 460b mov r3, r1 + 8009436: 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); - 8009380: 4b1f ldr r3, [pc, #124] @ (8009400 ) - 8009382: 781b ldrb r3, [r3, #0] - 8009384: 4619 mov r1, r3 - 8009386: 6878 ldr r0, [r7, #4] - 8009388: f002 f841 bl 800b40e + 8009438: 4b1f ldr r3, [pc, #124] @ (80094b8 ) + 800943a: 781b ldrb r3, [r3, #0] + 800943c: 4619 mov r1, r3 + 800943e: 6878 ldr r0, [r7, #4] + 8009440: f002 f841 bl 800b4c6 pdev->ep_in[HIDInEpAdd & 0xFU].is_used = 0U; - 800938c: 4b1c ldr r3, [pc, #112] @ (8009400 ) - 800938e: 781b ldrb r3, [r3, #0] - 8009390: f003 020f and.w r2, r3, #15 - 8009394: 6879 ldr r1, [r7, #4] - 8009396: 4613 mov r3, r2 - 8009398: 009b lsls r3, r3, #2 - 800939a: 4413 add r3, r2 - 800939c: 009b lsls r3, r3, #2 - 800939e: 440b add r3, r1 - 80093a0: 3323 adds r3, #35 @ 0x23 - 80093a2: 2200 movs r2, #0 - 80093a4: 701a strb r2, [r3, #0] + 8009444: 4b1c ldr r3, [pc, #112] @ (80094b8 ) + 8009446: 781b ldrb r3, [r3, #0] + 8009448: f003 020f and.w r2, r3, #15 + 800944c: 6879 ldr r1, [r7, #4] + 800944e: 4613 mov r3, r2 + 8009450: 009b lsls r3, r3, #2 + 8009452: 4413 add r3, r2 + 8009454: 009b lsls r3, r3, #2 + 8009456: 440b add r3, r1 + 8009458: 3323 adds r3, #35 @ 0x23 + 800945a: 2200 movs r2, #0 + 800945c: 701a strb r2, [r3, #0] pdev->ep_in[HIDInEpAdd & 0xFU].bInterval = 0U; - 80093a6: 4b16 ldr r3, [pc, #88] @ (8009400 ) - 80093a8: 781b ldrb r3, [r3, #0] - 80093aa: f003 020f and.w r2, r3, #15 - 80093ae: 6879 ldr r1, [r7, #4] - 80093b0: 4613 mov r3, r2 - 80093b2: 009b lsls r3, r3, #2 - 80093b4: 4413 add r3, r2 - 80093b6: 009b lsls r3, r3, #2 - 80093b8: 440b add r3, r1 - 80093ba: 331c adds r3, #28 - 80093bc: 2200 movs r2, #0 - 80093be: 601a str r2, [r3, #0] + 800945e: 4b16 ldr r3, [pc, #88] @ (80094b8 ) + 8009460: 781b ldrb r3, [r3, #0] + 8009462: f003 020f and.w r2, r3, #15 + 8009466: 6879 ldr r1, [r7, #4] + 8009468: 4613 mov r3, r2 + 800946a: 009b lsls r3, r3, #2 + 800946c: 4413 add r3, r2 + 800946e: 009b lsls r3, r3, #2 + 8009470: 440b add r3, r1 + 8009472: 331c adds r3, #28 + 8009474: 2200 movs r2, #0 + 8009476: 601a str r2, [r3, #0] /* Free allocated memory */ if (pdev->pClassDataCmsit[pdev->classId] != NULL) - 80093c0: 687b ldr r3, [r7, #4] - 80093c2: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80093c6: 687b ldr r3, [r7, #4] - 80093c8: 32b0 adds r2, #176 @ 0xb0 - 80093ca: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80093ce: 2b00 cmp r3, #0 - 80093d0: d011 beq.n 80093f6 + 8009478: 687b ldr r3, [r7, #4] + 800947a: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 800947e: 687b ldr r3, [r7, #4] + 8009480: 32b0 adds r2, #176 @ 0xb0 + 8009482: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009486: 2b00 cmp r3, #0 + 8009488: d011 beq.n 80094ae { (void)USBD_free(pdev->pClassDataCmsit[pdev->classId]); - 80093d2: 687b ldr r3, [r7, #4] - 80093d4: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80093d8: 687b ldr r3, [r7, #4] - 80093da: 32b0 adds r2, #176 @ 0xb0 - 80093dc: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80093e0: 4618 mov r0, r3 - 80093e2: f002 f95b bl 800b69c + 800948a: 687b ldr r3, [r7, #4] + 800948c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009490: 687b ldr r3, [r7, #4] + 8009492: 32b0 adds r2, #176 @ 0xb0 + 8009494: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009498: 4618 mov r0, r3 + 800949a: f002 f95b bl 800b754 pdev->pClassDataCmsit[pdev->classId] = NULL; - 80093e6: 687b ldr r3, [r7, #4] - 80093e8: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80093ec: 687b ldr r3, [r7, #4] - 80093ee: 32b0 adds r2, #176 @ 0xb0 - 80093f0: 2100 movs r1, #0 - 80093f2: f843 1022 str.w r1, [r3, r2, lsl #2] + 800949e: 687b ldr r3, [r7, #4] + 80094a0: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 80094a4: 687b ldr r3, [r7, #4] + 80094a6: 32b0 adds r2, #176 @ 0xb0 + 80094a8: 2100 movs r1, #0 + 80094aa: f843 1022 str.w r1, [r3, r2, lsl #2] } return (uint8_t)USBD_OK; - 80093f6: 2300 movs r3, #0 + 80094ae: 2300 movs r3, #0 } - 80093f8: 4618 mov r0, r3 - 80093fa: 3708 adds r7, #8 - 80093fc: 46bd mov sp, r7 - 80093fe: bd80 pop {r7, pc} - 8009400: 2000013d .word 0x2000013d + 80094b0: 4618 mov r0, r3 + 80094b2: 3708 adds r7, #8 + 80094b4: 46bd mov sp, r7 + 80094b6: bd80 pop {r7, pc} + 80094b8: 2000013d .word 0x2000013d -08009404 : +080094bc : * @param pdev: instance * @param req: usb requests * @retval status */ static uint8_t USBD_HID_Setup(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 8009404: b580 push {r7, lr} - 8009406: b086 sub sp, #24 - 8009408: af00 add r7, sp, #0 - 800940a: 6078 str r0, [r7, #4] - 800940c: 6039 str r1, [r7, #0] + 80094bc: b580 push {r7, lr} + 80094be: b086 sub sp, #24 + 80094c0: af00 add r7, sp, #0 + 80094c2: 6078 str r0, [r7, #4] + 80094c4: 6039 str r1, [r7, #0] USBD_HID_HandleTypeDef *hhid = (USBD_HID_HandleTypeDef *)pdev->pClassDataCmsit[pdev->classId]; - 800940e: 687b ldr r3, [r7, #4] - 8009410: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009414: 687b ldr r3, [r7, #4] - 8009416: 32b0 adds r2, #176 @ 0xb0 - 8009418: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800941c: 60fb str r3, [r7, #12] + 80094c6: 687b ldr r3, [r7, #4] + 80094c8: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 80094cc: 687b ldr r3, [r7, #4] + 80094ce: 32b0 adds r2, #176 @ 0xb0 + 80094d0: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80094d4: 60fb str r3, [r7, #12] USBD_StatusTypeDef ret = USBD_OK; - 800941e: 2300 movs r3, #0 - 8009420: 75fb strb r3, [r7, #23] + 80094d6: 2300 movs r3, #0 + 80094d8: 75fb strb r3, [r7, #23] uint16_t len; uint8_t *pbuf; uint16_t status_info = 0U; - 8009422: 2300 movs r3, #0 - 8009424: 817b strh r3, [r7, #10] + 80094da: 2300 movs r3, #0 + 80094dc: 817b strh r3, [r7, #10] if (hhid == NULL) - 8009426: 68fb ldr r3, [r7, #12] - 8009428: 2b00 cmp r3, #0 - 800942a: d101 bne.n 8009430 + 80094de: 68fb ldr r3, [r7, #12] + 80094e0: 2b00 cmp r3, #0 + 80094e2: d101 bne.n 80094e8 { return (uint8_t)USBD_FAIL; - 800942c: 2303 movs r3, #3 - 800942e: e0e8 b.n 8009602 + 80094e4: 2303 movs r3, #3 + 80094e6: e0e8 b.n 80096ba } switch (req->bmRequest & USB_REQ_TYPE_MASK) - 8009430: 683b ldr r3, [r7, #0] - 8009432: 781b ldrb r3, [r3, #0] - 8009434: f003 0360 and.w r3, r3, #96 @ 0x60 - 8009438: 2b00 cmp r3, #0 - 800943a: d046 beq.n 80094ca - 800943c: 2b20 cmp r3, #32 - 800943e: f040 80d8 bne.w 80095f2 + 80094e8: 683b ldr r3, [r7, #0] + 80094ea: 781b ldrb r3, [r3, #0] + 80094ec: f003 0360 and.w r3, r3, #96 @ 0x60 + 80094f0: 2b00 cmp r3, #0 + 80094f2: d046 beq.n 8009582 + 80094f4: 2b20 cmp r3, #32 + 80094f6: f040 80d8 bne.w 80096aa { case USB_REQ_TYPE_CLASS : switch (req->bRequest) - 8009442: 683b ldr r3, [r7, #0] - 8009444: 785b ldrb r3, [r3, #1] - 8009446: 3b02 subs r3, #2 - 8009448: 2b09 cmp r3, #9 - 800944a: d836 bhi.n 80094ba - 800944c: a201 add r2, pc, #4 @ (adr r2, 8009454 ) - 800944e: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 8009452: bf00 nop - 8009454: 080094ab .word 0x080094ab - 8009458: 0800948b .word 0x0800948b - 800945c: 080094bb .word 0x080094bb - 8009460: 080094bb .word 0x080094bb - 8009464: 080094bb .word 0x080094bb - 8009468: 080094bb .word 0x080094bb - 800946c: 080094bb .word 0x080094bb - 8009470: 080094bb .word 0x080094bb - 8009474: 08009499 .word 0x08009499 - 8009478: 0800947d .word 0x0800947d + 80094fa: 683b ldr r3, [r7, #0] + 80094fc: 785b ldrb r3, [r3, #1] + 80094fe: 3b02 subs r3, #2 + 8009500: 2b09 cmp r3, #9 + 8009502: d836 bhi.n 8009572 + 8009504: a201 add r2, pc, #4 @ (adr r2, 800950c ) + 8009506: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800950a: bf00 nop + 800950c: 08009563 .word 0x08009563 + 8009510: 08009543 .word 0x08009543 + 8009514: 08009573 .word 0x08009573 + 8009518: 08009573 .word 0x08009573 + 800951c: 08009573 .word 0x08009573 + 8009520: 08009573 .word 0x08009573 + 8009524: 08009573 .word 0x08009573 + 8009528: 08009573 .word 0x08009573 + 800952c: 08009551 .word 0x08009551 + 8009530: 08009535 .word 0x08009535 { case USBD_HID_REQ_SET_PROTOCOL: hhid->Protocol = (uint8_t)(req->wValue); - 800947c: 683b ldr r3, [r7, #0] - 800947e: 885b ldrh r3, [r3, #2] - 8009480: b2db uxtb r3, r3 - 8009482: 461a mov r2, r3 - 8009484: 68fb ldr r3, [r7, #12] - 8009486: 601a str r2, [r3, #0] + 8009534: 683b ldr r3, [r7, #0] + 8009536: 885b ldrh r3, [r3, #2] + 8009538: b2db uxtb r3, r3 + 800953a: 461a mov r2, r3 + 800953c: 68fb ldr r3, [r7, #12] + 800953e: 601a str r2, [r3, #0] break; - 8009488: e01e b.n 80094c8 + 8009540: e01e b.n 8009580 case USBD_HID_REQ_GET_PROTOCOL: (void)USBD_CtlSendData(pdev, (uint8_t *)&hhid->Protocol, 1U); - 800948a: 68fb ldr r3, [r7, #12] - 800948c: 2201 movs r2, #1 - 800948e: 4619 mov r1, r3 - 8009490: 6878 ldr r0, [r7, #4] - 8009492: f001 fc25 bl 800ace0 + 8009542: 68fb ldr r3, [r7, #12] + 8009544: 2201 movs r2, #1 + 8009546: 4619 mov r1, r3 + 8009548: 6878 ldr r0, [r7, #4] + 800954a: f001 fc25 bl 800ad98 break; - 8009496: e017 b.n 80094c8 + 800954e: e017 b.n 8009580 case USBD_HID_REQ_SET_IDLE: hhid->IdleState = (uint8_t)(req->wValue >> 8); - 8009498: 683b ldr r3, [r7, #0] - 800949a: 885b ldrh r3, [r3, #2] - 800949c: 0a1b lsrs r3, r3, #8 - 800949e: b29b uxth r3, r3 - 80094a0: b2db uxtb r3, r3 - 80094a2: 461a mov r2, r3 - 80094a4: 68fb ldr r3, [r7, #12] - 80094a6: 605a str r2, [r3, #4] + 8009550: 683b ldr r3, [r7, #0] + 8009552: 885b ldrh r3, [r3, #2] + 8009554: 0a1b lsrs r3, r3, #8 + 8009556: b29b uxth r3, r3 + 8009558: b2db uxtb r3, r3 + 800955a: 461a mov r2, r3 + 800955c: 68fb ldr r3, [r7, #12] + 800955e: 605a str r2, [r3, #4] break; - 80094a8: e00e b.n 80094c8 + 8009560: e00e b.n 8009580 case USBD_HID_REQ_GET_IDLE: (void)USBD_CtlSendData(pdev, (uint8_t *)&hhid->IdleState, 1U); - 80094aa: 68fb ldr r3, [r7, #12] - 80094ac: 3304 adds r3, #4 - 80094ae: 2201 movs r2, #1 - 80094b0: 4619 mov r1, r3 - 80094b2: 6878 ldr r0, [r7, #4] - 80094b4: f001 fc14 bl 800ace0 + 8009562: 68fb ldr r3, [r7, #12] + 8009564: 3304 adds r3, #4 + 8009566: 2201 movs r2, #1 + 8009568: 4619 mov r1, r3 + 800956a: 6878 ldr r0, [r7, #4] + 800956c: f001 fc14 bl 800ad98 break; - 80094b8: e006 b.n 80094c8 + 8009570: e006 b.n 8009580 default: USBD_CtlError(pdev, req); - 80094ba: 6839 ldr r1, [r7, #0] - 80094bc: 6878 ldr r0, [r7, #4] - 80094be: f001 fb92 bl 800abe6 + 8009572: 6839 ldr r1, [r7, #0] + 8009574: 6878 ldr r0, [r7, #4] + 8009576: f001 fb92 bl 800ac9e ret = USBD_FAIL; - 80094c2: 2303 movs r3, #3 - 80094c4: 75fb strb r3, [r7, #23] + 800957a: 2303 movs r3, #3 + 800957c: 75fb strb r3, [r7, #23] break; - 80094c6: bf00 nop + 800957e: bf00 nop } break; - 80094c8: e09a b.n 8009600 + 8009580: e09a b.n 80096b8 case USB_REQ_TYPE_STANDARD: switch (req->bRequest) - 80094ca: 683b ldr r3, [r7, #0] - 80094cc: 785b ldrb r3, [r3, #1] - 80094ce: 2b0b cmp r3, #11 - 80094d0: f200 8086 bhi.w 80095e0 - 80094d4: a201 add r2, pc, #4 @ (adr r2, 80094dc ) - 80094d6: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 80094da: bf00 nop - 80094dc: 0800950d .word 0x0800950d - 80094e0: 080095ef .word 0x080095ef - 80094e4: 080095e1 .word 0x080095e1 - 80094e8: 080095e1 .word 0x080095e1 - 80094ec: 080095e1 .word 0x080095e1 - 80094f0: 080095e1 .word 0x080095e1 - 80094f4: 08009537 .word 0x08009537 - 80094f8: 080095e1 .word 0x080095e1 - 80094fc: 080095e1 .word 0x080095e1 - 8009500: 080095e1 .word 0x080095e1 - 8009504: 0800958f .word 0x0800958f - 8009508: 080095b9 .word 0x080095b9 + 8009582: 683b ldr r3, [r7, #0] + 8009584: 785b ldrb r3, [r3, #1] + 8009586: 2b0b cmp r3, #11 + 8009588: f200 8086 bhi.w 8009698 + 800958c: a201 add r2, pc, #4 @ (adr r2, 8009594 ) + 800958e: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 8009592: bf00 nop + 8009594: 080095c5 .word 0x080095c5 + 8009598: 080096a7 .word 0x080096a7 + 800959c: 08009699 .word 0x08009699 + 80095a0: 08009699 .word 0x08009699 + 80095a4: 08009699 .word 0x08009699 + 80095a8: 08009699 .word 0x08009699 + 80095ac: 080095ef .word 0x080095ef + 80095b0: 08009699 .word 0x08009699 + 80095b4: 08009699 .word 0x08009699 + 80095b8: 08009699 .word 0x08009699 + 80095bc: 08009647 .word 0x08009647 + 80095c0: 08009671 .word 0x08009671 { case USB_REQ_GET_STATUS: if (pdev->dev_state == USBD_STATE_CONFIGURED) - 800950c: 687b ldr r3, [r7, #4] - 800950e: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009512: b2db uxtb r3, r3 - 8009514: 2b03 cmp r3, #3 - 8009516: d107 bne.n 8009528 + 80095c4: 687b ldr r3, [r7, #4] + 80095c6: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 80095ca: b2db uxtb r3, r3 + 80095cc: 2b03 cmp r3, #3 + 80095ce: d107 bne.n 80095e0 { (void)USBD_CtlSendData(pdev, (uint8_t *)&status_info, 2U); - 8009518: f107 030a add.w r3, r7, #10 - 800951c: 2202 movs r2, #2 - 800951e: 4619 mov r1, r3 - 8009520: 6878 ldr r0, [r7, #4] - 8009522: f001 fbdd bl 800ace0 + 80095d0: f107 030a add.w r3, r7, #10 + 80095d4: 2202 movs r2, #2 + 80095d6: 4619 mov r1, r3 + 80095d8: 6878 ldr r0, [r7, #4] + 80095da: f001 fbdd bl 800ad98 else { USBD_CtlError(pdev, req); ret = USBD_FAIL; } break; - 8009526: e063 b.n 80095f0 + 80095de: e063 b.n 80096a8 USBD_CtlError(pdev, req); - 8009528: 6839 ldr r1, [r7, #0] - 800952a: 6878 ldr r0, [r7, #4] - 800952c: f001 fb5b bl 800abe6 + 80095e0: 6839 ldr r1, [r7, #0] + 80095e2: 6878 ldr r0, [r7, #4] + 80095e4: f001 fb5b bl 800ac9e ret = USBD_FAIL; - 8009530: 2303 movs r3, #3 - 8009532: 75fb strb r3, [r7, #23] + 80095e8: 2303 movs r3, #3 + 80095ea: 75fb strb r3, [r7, #23] break; - 8009534: e05c b.n 80095f0 + 80095ec: e05c b.n 80096a8 case USB_REQ_GET_DESCRIPTOR: if ((req->wValue >> 8) == HID_REPORT_DESC) - 8009536: 683b ldr r3, [r7, #0] - 8009538: 885b ldrh r3, [r3, #2] - 800953a: 0a1b lsrs r3, r3, #8 - 800953c: b29b uxth r3, r3 - 800953e: 2b22 cmp r3, #34 @ 0x22 - 8009540: d108 bne.n 8009554 + 80095ee: 683b ldr r3, [r7, #0] + 80095f0: 885b ldrh r3, [r3, #2] + 80095f2: 0a1b lsrs r3, r3, #8 + 80095f4: b29b uxth r3, r3 + 80095f6: 2b22 cmp r3, #34 @ 0x22 + 80095f8: d108 bne.n 800960c { len = MIN(HID_MOUSE_REPORT_DESC_SIZE, req->wLength); - 8009542: 683b ldr r3, [r7, #0] - 8009544: 88db ldrh r3, [r3, #6] - 8009546: 2b2d cmp r3, #45 @ 0x2d - 8009548: bf28 it cs - 800954a: 232d movcs r3, #45 @ 0x2d - 800954c: 82bb strh r3, [r7, #20] + 80095fa: 683b ldr r3, [r7, #0] + 80095fc: 88db ldrh r3, [r3, #6] + 80095fe: 2b2d cmp r3, #45 @ 0x2d + 8009600: bf28 it cs + 8009602: 232d movcs r3, #45 @ 0x2d + 8009604: 82bb strh r3, [r7, #20] pbuf = HID_MOUSE_ReportDesc; - 800954e: 4b2f ldr r3, [pc, #188] @ (800960c ) - 8009550: 613b str r3, [r7, #16] - 8009552: e015 b.n 8009580 + 8009606: 4b2f ldr r3, [pc, #188] @ (80096c4 ) + 8009608: 613b str r3, [r7, #16] + 800960a: e015 b.n 8009638 } else if ((req->wValue >> 8) == HID_DESCRIPTOR_TYPE) - 8009554: 683b ldr r3, [r7, #0] - 8009556: 885b ldrh r3, [r3, #2] - 8009558: 0a1b lsrs r3, r3, #8 - 800955a: b29b uxth r3, r3 - 800955c: 2b21 cmp r3, #33 @ 0x21 - 800955e: d108 bne.n 8009572 + 800960c: 683b ldr r3, [r7, #0] + 800960e: 885b ldrh r3, [r3, #2] + 8009610: 0a1b lsrs r3, r3, #8 + 8009612: b29b uxth r3, r3 + 8009614: 2b21 cmp r3, #33 @ 0x21 + 8009616: d108 bne.n 800962a { pbuf = USBD_HID_Desc; - 8009560: 4b2b ldr r3, [pc, #172] @ (8009610 ) - 8009562: 613b str r3, [r7, #16] + 8009618: 4b2b ldr r3, [pc, #172] @ (80096c8 ) + 800961a: 613b str r3, [r7, #16] len = MIN(USB_HID_DESC_SIZ, req->wLength); - 8009564: 683b ldr r3, [r7, #0] - 8009566: 88db ldrh r3, [r3, #6] - 8009568: 2b09 cmp r3, #9 - 800956a: bf28 it cs - 800956c: 2309 movcs r3, #9 - 800956e: 82bb strh r3, [r7, #20] - 8009570: e006 b.n 8009580 + 800961c: 683b ldr r3, [r7, #0] + 800961e: 88db ldrh r3, [r3, #6] + 8009620: 2b09 cmp r3, #9 + 8009622: bf28 it cs + 8009624: 2309 movcs r3, #9 + 8009626: 82bb strh r3, [r7, #20] + 8009628: e006 b.n 8009638 } else { USBD_CtlError(pdev, req); - 8009572: 6839 ldr r1, [r7, #0] - 8009574: 6878 ldr r0, [r7, #4] - 8009576: f001 fb36 bl 800abe6 + 800962a: 6839 ldr r1, [r7, #0] + 800962c: 6878 ldr r0, [r7, #4] + 800962e: f001 fb36 bl 800ac9e ret = USBD_FAIL; - 800957a: 2303 movs r3, #3 - 800957c: 75fb strb r3, [r7, #23] + 8009632: 2303 movs r3, #3 + 8009634: 75fb strb r3, [r7, #23] break; - 800957e: e037 b.n 80095f0 + 8009636: e037 b.n 80096a8 } (void)USBD_CtlSendData(pdev, pbuf, len); - 8009580: 8abb ldrh r3, [r7, #20] - 8009582: 461a mov r2, r3 - 8009584: 6939 ldr r1, [r7, #16] - 8009586: 6878 ldr r0, [r7, #4] - 8009588: f001 fbaa bl 800ace0 + 8009638: 8abb ldrh r3, [r7, #20] + 800963a: 461a mov r2, r3 + 800963c: 6939 ldr r1, [r7, #16] + 800963e: 6878 ldr r0, [r7, #4] + 8009640: f001 fbaa bl 800ad98 break; - 800958c: e030 b.n 80095f0 + 8009644: e030 b.n 80096a8 case USB_REQ_GET_INTERFACE : if (pdev->dev_state == USBD_STATE_CONFIGURED) - 800958e: 687b ldr r3, [r7, #4] - 8009590: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009594: b2db uxtb r3, r3 - 8009596: 2b03 cmp r3, #3 - 8009598: d107 bne.n 80095aa + 8009646: 687b ldr r3, [r7, #4] + 8009648: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800964c: b2db uxtb r3, r3 + 800964e: 2b03 cmp r3, #3 + 8009650: d107 bne.n 8009662 { (void)USBD_CtlSendData(pdev, (uint8_t *)&hhid->AltSetting, 1U); - 800959a: 68fb ldr r3, [r7, #12] - 800959c: 3308 adds r3, #8 - 800959e: 2201 movs r2, #1 - 80095a0: 4619 mov r1, r3 - 80095a2: 6878 ldr r0, [r7, #4] - 80095a4: f001 fb9c bl 800ace0 + 8009652: 68fb ldr r3, [r7, #12] + 8009654: 3308 adds r3, #8 + 8009656: 2201 movs r2, #1 + 8009658: 4619 mov r1, r3 + 800965a: 6878 ldr r0, [r7, #4] + 800965c: f001 fb9c bl 800ad98 else { USBD_CtlError(pdev, req); ret = USBD_FAIL; } break; - 80095a8: e022 b.n 80095f0 + 8009660: e022 b.n 80096a8 USBD_CtlError(pdev, req); - 80095aa: 6839 ldr r1, [r7, #0] - 80095ac: 6878 ldr r0, [r7, #4] - 80095ae: f001 fb1a bl 800abe6 + 8009662: 6839 ldr r1, [r7, #0] + 8009664: 6878 ldr r0, [r7, #4] + 8009666: f001 fb1a bl 800ac9e ret = USBD_FAIL; - 80095b2: 2303 movs r3, #3 - 80095b4: 75fb strb r3, [r7, #23] + 800966a: 2303 movs r3, #3 + 800966c: 75fb strb r3, [r7, #23] break; - 80095b6: e01b b.n 80095f0 + 800966e: e01b b.n 80096a8 case USB_REQ_SET_INTERFACE: if (pdev->dev_state == USBD_STATE_CONFIGURED) - 80095b8: 687b ldr r3, [r7, #4] - 80095ba: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 80095be: b2db uxtb r3, r3 - 80095c0: 2b03 cmp r3, #3 - 80095c2: d106 bne.n 80095d2 + 8009670: 687b ldr r3, [r7, #4] + 8009672: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009676: b2db uxtb r3, r3 + 8009678: 2b03 cmp r3, #3 + 800967a: d106 bne.n 800968a { hhid->AltSetting = (uint8_t)(req->wValue); - 80095c4: 683b ldr r3, [r7, #0] - 80095c6: 885b ldrh r3, [r3, #2] - 80095c8: b2db uxtb r3, r3 - 80095ca: 461a mov r2, r3 - 80095cc: 68fb ldr r3, [r7, #12] - 80095ce: 609a str r2, [r3, #8] + 800967c: 683b ldr r3, [r7, #0] + 800967e: 885b ldrh r3, [r3, #2] + 8009680: b2db uxtb r3, r3 + 8009682: 461a mov r2, r3 + 8009684: 68fb ldr r3, [r7, #12] + 8009686: 609a str r2, [r3, #8] else { USBD_CtlError(pdev, req); ret = USBD_FAIL; } break; - 80095d0: e00e b.n 80095f0 + 8009688: e00e b.n 80096a8 USBD_CtlError(pdev, req); - 80095d2: 6839 ldr r1, [r7, #0] - 80095d4: 6878 ldr r0, [r7, #4] - 80095d6: f001 fb06 bl 800abe6 + 800968a: 6839 ldr r1, [r7, #0] + 800968c: 6878 ldr r0, [r7, #4] + 800968e: f001 fb06 bl 800ac9e ret = USBD_FAIL; - 80095da: 2303 movs r3, #3 - 80095dc: 75fb strb r3, [r7, #23] + 8009692: 2303 movs r3, #3 + 8009694: 75fb strb r3, [r7, #23] break; - 80095de: e007 b.n 80095f0 + 8009696: e007 b.n 80096a8 case USB_REQ_CLEAR_FEATURE: break; default: USBD_CtlError(pdev, req); - 80095e0: 6839 ldr r1, [r7, #0] - 80095e2: 6878 ldr r0, [r7, #4] - 80095e4: f001 faff bl 800abe6 + 8009698: 6839 ldr r1, [r7, #0] + 800969a: 6878 ldr r0, [r7, #4] + 800969c: f001 faff bl 800ac9e ret = USBD_FAIL; - 80095e8: 2303 movs r3, #3 - 80095ea: 75fb strb r3, [r7, #23] + 80096a0: 2303 movs r3, #3 + 80096a2: 75fb strb r3, [r7, #23] break; - 80095ec: e000 b.n 80095f0 + 80096a4: e000 b.n 80096a8 break; - 80095ee: bf00 nop + 80096a6: bf00 nop } break; - 80095f0: e006 b.n 8009600 + 80096a8: e006 b.n 80096b8 default: USBD_CtlError(pdev, req); - 80095f2: 6839 ldr r1, [r7, #0] - 80095f4: 6878 ldr r0, [r7, #4] - 80095f6: f001 faf6 bl 800abe6 + 80096aa: 6839 ldr r1, [r7, #0] + 80096ac: 6878 ldr r0, [r7, #4] + 80096ae: f001 faf6 bl 800ac9e ret = USBD_FAIL; - 80095fa: 2303 movs r3, #3 - 80095fc: 75fb strb r3, [r7, #23] + 80096b2: 2303 movs r3, #3 + 80096b4: 75fb strb r3, [r7, #23] break; - 80095fe: bf00 nop + 80096b6: bf00 nop } return (uint8_t)ret; - 8009600: 7dfb ldrb r3, [r7, #23] + 80096b8: 7dfb ldrb r3, [r7, #23] } - 8009602: 4618 mov r0, r3 - 8009604: 3718 adds r7, #24 - 8009606: 46bd mov sp, r7 - 8009608: bd80 pop {r7, pc} - 800960a: bf00 nop - 800960c: 20000110 .word 0x20000110 - 8009610: 200000f8 .word 0x200000f8 + 80096ba: 4618 mov r0, r3 + 80096bc: 3718 adds r7, #24 + 80096be: 46bd mov sp, r7 + 80096c0: bd80 pop {r7, pc} + 80096c2: bf00 nop + 80096c4: 20000110 .word 0x20000110 + 80096c8: 200000f8 .word 0x200000f8 -08009614 : +080096cc : 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) { - 8009614: b580 push {r7, lr} - 8009616: b086 sub sp, #24 - 8009618: af00 add r7, sp, #0 - 800961a: 60f8 str r0, [r7, #12] - 800961c: 60b9 str r1, [r7, #8] - 800961e: 4613 mov r3, r2 - 8009620: 80fb strh r3, [r7, #6] + 80096cc: b580 push {r7, lr} + 80096ce: b086 sub sp, #24 + 80096d0: af00 add r7, sp, #0 + 80096d2: 60f8 str r0, [r7, #12] + 80096d4: 60b9 str r1, [r7, #8] + 80096d6: 4613 mov r3, r2 + 80096d8: 80fb strh r3, [r7, #6] USBD_HID_HandleTypeDef *hhid = (USBD_HID_HandleTypeDef *)pdev->pClassDataCmsit[pdev->classId]; - 8009622: 68fb ldr r3, [r7, #12] - 8009624: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009628: 68fb ldr r3, [r7, #12] - 800962a: 32b0 adds r2, #176 @ 0xb0 - 800962c: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009630: 617b str r3, [r7, #20] + 80096da: 68fb ldr r3, [r7, #12] + 80096dc: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 80096e0: 68fb ldr r3, [r7, #12] + 80096e2: 32b0 adds r2, #176 @ 0xb0 + 80096e4: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80096e8: 617b str r3, [r7, #20] #endif /* USE_USBD_COMPOSITE */ if (hhid == NULL) - 8009632: 697b ldr r3, [r7, #20] - 8009634: 2b00 cmp r3, #0 - 8009636: d101 bne.n 800963c + 80096ea: 697b ldr r3, [r7, #20] + 80096ec: 2b00 cmp r3, #0 + 80096ee: d101 bne.n 80096f4 { return (uint8_t)USBD_FAIL; - 8009638: 2303 movs r3, #3 - 800963a: e014 b.n 8009666 + 80096f0: 2303 movs r3, #3 + 80096f2: e014 b.n 800971e #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) - 800963c: 68fb ldr r3, [r7, #12] - 800963e: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009642: b2db uxtb r3, r3 - 8009644: 2b03 cmp r3, #3 - 8009646: d10d bne.n 8009664 + 80096f4: 68fb ldr r3, [r7, #12] + 80096f6: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 80096fa: b2db uxtb r3, r3 + 80096fc: 2b03 cmp r3, #3 + 80096fe: d10d bne.n 800971c { if (hhid->state == USBD_HID_IDLE) - 8009648: 697b ldr r3, [r7, #20] - 800964a: 7b1b ldrb r3, [r3, #12] - 800964c: 2b00 cmp r3, #0 - 800964e: d109 bne.n 8009664 + 8009700: 697b ldr r3, [r7, #20] + 8009702: 7b1b ldrb r3, [r3, #12] + 8009704: 2b00 cmp r3, #0 + 8009706: d109 bne.n 800971c { hhid->state = USBD_HID_BUSY; - 8009650: 697b ldr r3, [r7, #20] - 8009652: 2201 movs r2, #1 - 8009654: 731a strb r2, [r3, #12] + 8009708: 697b ldr r3, [r7, #20] + 800970a: 2201 movs r2, #1 + 800970c: 731a strb r2, [r3, #12] (void)USBD_LL_Transmit(pdev, HIDInEpAdd, report, len); - 8009656: 4b06 ldr r3, [pc, #24] @ (8009670 ) - 8009658: 7819 ldrb r1, [r3, #0] - 800965a: 88fb ldrh r3, [r7, #6] - 800965c: 68ba ldr r2, [r7, #8] - 800965e: 68f8 ldr r0, [r7, #12] - 8009660: f001 ff7d bl 800b55e + 800970e: 4b06 ldr r3, [pc, #24] @ (8009728 ) + 8009710: 7819 ldrb r1, [r3, #0] + 8009712: 88fb ldrh r3, [r7, #6] + 8009714: 68ba ldr r2, [r7, #8] + 8009716: 68f8 ldr r0, [r7, #12] + 8009718: f001 ff7d bl 800b616 } } return (uint8_t)USBD_OK; - 8009664: 2300 movs r3, #0 + 800971c: 2300 movs r3, #0 } - 8009666: 4618 mov r0, r3 - 8009668: 3718 adds r7, #24 - 800966a: 46bd mov sp, r7 - 800966c: bd80 pop {r7, pc} - 800966e: bf00 nop - 8009670: 2000013d .word 0x2000013d + 800971e: 4618 mov r0, r3 + 8009720: 3718 adds r7, #24 + 8009722: 46bd mov sp, r7 + 8009724: bd80 pop {r7, pc} + 8009726: bf00 nop + 8009728: 2000013d .word 0x2000013d -08009674 : +0800972c : * @param speed : current device speed * @param length : pointer data length * @retval pointer to descriptor buffer */ static uint8_t *USBD_HID_GetFSCfgDesc(uint16_t *length) { - 8009674: b580 push {r7, lr} - 8009676: b084 sub sp, #16 - 8009678: af00 add r7, sp, #0 - 800967a: 6078 str r0, [r7, #4] + 800972c: b580 push {r7, lr} + 800972e: b084 sub sp, #16 + 8009730: af00 add r7, sp, #0 + 8009732: 6078 str r0, [r7, #4] USBD_EpDescTypeDef *pEpDesc = USBD_GetEpDesc(USBD_HID_CfgDesc, HID_EPIN_ADDR); - 800967c: 2181 movs r1, #129 @ 0x81 - 800967e: 4809 ldr r0, [pc, #36] @ (80096a4 ) - 8009680: f000 fc4e bl 8009f20 - 8009684: 60f8 str r0, [r7, #12] + 8009734: 2181 movs r1, #129 @ 0x81 + 8009736: 4809 ldr r0, [pc, #36] @ (800975c ) + 8009738: f000 fc4e bl 8009fd8 + 800973c: 60f8 str r0, [r7, #12] if (pEpDesc != NULL) - 8009686: 68fb ldr r3, [r7, #12] - 8009688: 2b00 cmp r3, #0 - 800968a: d002 beq.n 8009692 + 800973e: 68fb ldr r3, [r7, #12] + 8009740: 2b00 cmp r3, #0 + 8009742: d002 beq.n 800974a { pEpDesc->bInterval = HID_FS_BINTERVAL; - 800968c: 68fb ldr r3, [r7, #12] - 800968e: 220a movs r2, #10 - 8009690: 719a strb r2, [r3, #6] + 8009744: 68fb ldr r3, [r7, #12] + 8009746: 220a movs r2, #10 + 8009748: 719a strb r2, [r3, #6] } *length = (uint16_t)sizeof(USBD_HID_CfgDesc); - 8009692: 687b ldr r3, [r7, #4] - 8009694: 2222 movs r2, #34 @ 0x22 - 8009696: 801a strh r2, [r3, #0] + 800974a: 687b ldr r3, [r7, #4] + 800974c: 2222 movs r2, #34 @ 0x22 + 800974e: 801a strh r2, [r3, #0] return USBD_HID_CfgDesc; - 8009698: 4b02 ldr r3, [pc, #8] @ (80096a4 ) + 8009750: 4b02 ldr r3, [pc, #8] @ (800975c ) } - 800969a: 4618 mov r0, r3 - 800969c: 3710 adds r7, #16 - 800969e: 46bd mov sp, r7 - 80096a0: bd80 pop {r7, pc} - 80096a2: bf00 nop - 80096a4: 200000d4 .word 0x200000d4 + 8009752: 4618 mov r0, r3 + 8009754: 3710 adds r7, #16 + 8009756: 46bd mov sp, r7 + 8009758: bd80 pop {r7, pc} + 800975a: bf00 nop + 800975c: 200000d4 .word 0x200000d4 -080096a8 : +08009760 : * @param speed : current device speed * @param length : pointer data length * @retval pointer to descriptor buffer */ static uint8_t *USBD_HID_GetHSCfgDesc(uint16_t *length) { - 80096a8: b580 push {r7, lr} - 80096aa: b084 sub sp, #16 - 80096ac: af00 add r7, sp, #0 - 80096ae: 6078 str r0, [r7, #4] + 8009760: b580 push {r7, lr} + 8009762: b084 sub sp, #16 + 8009764: af00 add r7, sp, #0 + 8009766: 6078 str r0, [r7, #4] USBD_EpDescTypeDef *pEpDesc = USBD_GetEpDesc(USBD_HID_CfgDesc, HID_EPIN_ADDR); - 80096b0: 2181 movs r1, #129 @ 0x81 - 80096b2: 4809 ldr r0, [pc, #36] @ (80096d8 ) - 80096b4: f000 fc34 bl 8009f20 - 80096b8: 60f8 str r0, [r7, #12] + 8009768: 2181 movs r1, #129 @ 0x81 + 800976a: 4809 ldr r0, [pc, #36] @ (8009790 ) + 800976c: f000 fc34 bl 8009fd8 + 8009770: 60f8 str r0, [r7, #12] if (pEpDesc != NULL) - 80096ba: 68fb ldr r3, [r7, #12] - 80096bc: 2b00 cmp r3, #0 - 80096be: d002 beq.n 80096c6 + 8009772: 68fb ldr r3, [r7, #12] + 8009774: 2b00 cmp r3, #0 + 8009776: d002 beq.n 800977e { pEpDesc->bInterval = HID_HS_BINTERVAL; - 80096c0: 68fb ldr r3, [r7, #12] - 80096c2: 2207 movs r2, #7 - 80096c4: 719a strb r2, [r3, #6] + 8009778: 68fb ldr r3, [r7, #12] + 800977a: 2207 movs r2, #7 + 800977c: 719a strb r2, [r3, #6] } *length = (uint16_t)sizeof(USBD_HID_CfgDesc); - 80096c6: 687b ldr r3, [r7, #4] - 80096c8: 2222 movs r2, #34 @ 0x22 - 80096ca: 801a strh r2, [r3, #0] + 800977e: 687b ldr r3, [r7, #4] + 8009780: 2222 movs r2, #34 @ 0x22 + 8009782: 801a strh r2, [r3, #0] return USBD_HID_CfgDesc; - 80096cc: 4b02 ldr r3, [pc, #8] @ (80096d8 ) + 8009784: 4b02 ldr r3, [pc, #8] @ (8009790 ) } - 80096ce: 4618 mov r0, r3 - 80096d0: 3710 adds r7, #16 - 80096d2: 46bd mov sp, r7 - 80096d4: bd80 pop {r7, pc} - 80096d6: bf00 nop - 80096d8: 200000d4 .word 0x200000d4 + 8009786: 4618 mov r0, r3 + 8009788: 3710 adds r7, #16 + 800978a: 46bd mov sp, r7 + 800978c: bd80 pop {r7, pc} + 800978e: bf00 nop + 8009790: 200000d4 .word 0x200000d4 -080096dc : +08009794 : * @param speed : current device speed * @param length : pointer data length * @retval pointer to descriptor buffer */ static uint8_t *USBD_HID_GetOtherSpeedCfgDesc(uint16_t *length) { - 80096dc: b580 push {r7, lr} - 80096de: b084 sub sp, #16 - 80096e0: af00 add r7, sp, #0 - 80096e2: 6078 str r0, [r7, #4] + 8009794: b580 push {r7, lr} + 8009796: b084 sub sp, #16 + 8009798: af00 add r7, sp, #0 + 800979a: 6078 str r0, [r7, #4] USBD_EpDescTypeDef *pEpDesc = USBD_GetEpDesc(USBD_HID_CfgDesc, HID_EPIN_ADDR); - 80096e4: 2181 movs r1, #129 @ 0x81 - 80096e6: 4809 ldr r0, [pc, #36] @ (800970c ) - 80096e8: f000 fc1a bl 8009f20 - 80096ec: 60f8 str r0, [r7, #12] + 800979c: 2181 movs r1, #129 @ 0x81 + 800979e: 4809 ldr r0, [pc, #36] @ (80097c4 ) + 80097a0: f000 fc1a bl 8009fd8 + 80097a4: 60f8 str r0, [r7, #12] if (pEpDesc != NULL) - 80096ee: 68fb ldr r3, [r7, #12] - 80096f0: 2b00 cmp r3, #0 - 80096f2: d002 beq.n 80096fa + 80097a6: 68fb ldr r3, [r7, #12] + 80097a8: 2b00 cmp r3, #0 + 80097aa: d002 beq.n 80097b2 { pEpDesc->bInterval = HID_FS_BINTERVAL; - 80096f4: 68fb ldr r3, [r7, #12] - 80096f6: 220a movs r2, #10 - 80096f8: 719a strb r2, [r3, #6] + 80097ac: 68fb ldr r3, [r7, #12] + 80097ae: 220a movs r2, #10 + 80097b0: 719a strb r2, [r3, #6] } *length = (uint16_t)sizeof(USBD_HID_CfgDesc); - 80096fa: 687b ldr r3, [r7, #4] - 80096fc: 2222 movs r2, #34 @ 0x22 - 80096fe: 801a strh r2, [r3, #0] + 80097b2: 687b ldr r3, [r7, #4] + 80097b4: 2222 movs r2, #34 @ 0x22 + 80097b6: 801a strh r2, [r3, #0] return USBD_HID_CfgDesc; - 8009700: 4b02 ldr r3, [pc, #8] @ (800970c ) + 80097b8: 4b02 ldr r3, [pc, #8] @ (80097c4 ) } - 8009702: 4618 mov r0, r3 - 8009704: 3710 adds r7, #16 - 8009706: 46bd mov sp, r7 - 8009708: bd80 pop {r7, pc} - 800970a: bf00 nop - 800970c: 200000d4 .word 0x200000d4 + 80097ba: 4618 mov r0, r3 + 80097bc: 3710 adds r7, #16 + 80097be: 46bd mov sp, r7 + 80097c0: bd80 pop {r7, pc} + 80097c2: bf00 nop + 80097c4: 200000d4 .word 0x200000d4 -08009710 : +080097c8 : * @param pdev: device instance * @param epnum: endpoint index * @retval status */ static uint8_t USBD_HID_DataIn(USBD_HandleTypeDef *pdev, uint8_t epnum) { - 8009710: b480 push {r7} - 8009712: b083 sub sp, #12 - 8009714: af00 add r7, sp, #0 - 8009716: 6078 str r0, [r7, #4] - 8009718: 460b mov r3, r1 - 800971a: 70fb strb r3, [r7, #3] + 80097c8: b480 push {r7} + 80097ca: b083 sub sp, #12 + 80097cc: af00 add r7, sp, #0 + 80097ce: 6078 str r0, [r7, #4] + 80097d0: 460b mov r3, r1 + 80097d2: 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; - 800971c: 687b ldr r3, [r7, #4] - 800971e: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009722: 687b ldr r3, [r7, #4] - 8009724: 32b0 adds r2, #176 @ 0xb0 - 8009726: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800972a: 2200 movs r2, #0 - 800972c: 731a strb r2, [r3, #12] + 80097d4: 687b ldr r3, [r7, #4] + 80097d6: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 80097da: 687b ldr r3, [r7, #4] + 80097dc: 32b0 adds r2, #176 @ 0xb0 + 80097de: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80097e2: 2200 movs r2, #0 + 80097e4: 731a strb r2, [r3, #12] return (uint8_t)USBD_OK; - 800972e: 2300 movs r3, #0 + 80097e6: 2300 movs r3, #0 } - 8009730: 4618 mov r0, r3 - 8009732: 370c adds r7, #12 - 8009734: 46bd mov sp, r7 - 8009736: f85d 7b04 ldr.w r7, [sp], #4 - 800973a: 4770 bx lr + 80097e8: 4618 mov r0, r3 + 80097ea: 370c adds r7, #12 + 80097ec: 46bd mov sp, r7 + 80097ee: f85d 7b04 ldr.w r7, [sp], #4 + 80097f2: 4770 bx lr -0800973c : +080097f4 : * return Device Qualifier descriptor * @param length : pointer data length * @retval pointer to descriptor buffer */ static uint8_t *USBD_HID_GetDeviceQualifierDesc(uint16_t *length) { - 800973c: b480 push {r7} - 800973e: b083 sub sp, #12 - 8009740: af00 add r7, sp, #0 - 8009742: 6078 str r0, [r7, #4] + 80097f4: b480 push {r7} + 80097f6: b083 sub sp, #12 + 80097f8: af00 add r7, sp, #0 + 80097fa: 6078 str r0, [r7, #4] *length = (uint16_t)sizeof(USBD_HID_DeviceQualifierDesc); - 8009744: 687b ldr r3, [r7, #4] - 8009746: 220a movs r2, #10 - 8009748: 801a strh r2, [r3, #0] + 80097fc: 687b ldr r3, [r7, #4] + 80097fe: 220a movs r2, #10 + 8009800: 801a strh r2, [r3, #0] return USBD_HID_DeviceQualifierDesc; - 800974a: 4b03 ldr r3, [pc, #12] @ (8009758 ) + 8009802: 4b03 ldr r3, [pc, #12] @ (8009810 ) } - 800974c: 4618 mov r0, r3 - 800974e: 370c adds r7, #12 - 8009750: 46bd mov sp, r7 - 8009752: f85d 7b04 ldr.w r7, [sp], #4 - 8009756: 4770 bx lr - 8009758: 20000104 .word 0x20000104 + 8009804: 4618 mov r0, r3 + 8009806: 370c adds r7, #12 + 8009808: 46bd mov sp, r7 + 800980a: f85d 7b04 ldr.w r7, [sp], #4 + 800980e: 4770 bx lr + 8009810: 20000104 .word 0x20000104 -0800975c : +08009814 : * @param id: Low level core index * @retval status: USBD Status */ USBD_StatusTypeDef USBD_Init(USBD_HandleTypeDef *pdev, USBD_DescriptorsTypeDef *pdesc, uint8_t id) { - 800975c: b580 push {r7, lr} - 800975e: b086 sub sp, #24 - 8009760: af00 add r7, sp, #0 - 8009762: 60f8 str r0, [r7, #12] - 8009764: 60b9 str r1, [r7, #8] - 8009766: 4613 mov r3, r2 - 8009768: 71fb strb r3, [r7, #7] + 8009814: b580 push {r7, lr} + 8009816: b086 sub sp, #24 + 8009818: af00 add r7, sp, #0 + 800981a: 60f8 str r0, [r7, #12] + 800981c: 60b9 str r1, [r7, #8] + 800981e: 4613 mov r3, r2 + 8009820: 71fb strb r3, [r7, #7] USBD_StatusTypeDef ret; /* Check whether the USB Host handle is valid */ if (pdev == NULL) - 800976a: 68fb ldr r3, [r7, #12] - 800976c: 2b00 cmp r3, #0 - 800976e: d101 bne.n 8009774 + 8009822: 68fb ldr r3, [r7, #12] + 8009824: 2b00 cmp r3, #0 + 8009826: d101 bne.n 800982c { #if (USBD_DEBUG_LEVEL > 1U) USBD_ErrLog("Invalid Device handle"); #endif /* (USBD_DEBUG_LEVEL > 1U) */ return USBD_FAIL; - 8009770: 2303 movs r3, #3 - 8009772: e01f b.n 80097b4 + 8009828: 2303 movs r3, #3 + 800982a: e01f b.n 800986c pdev->NumClasses = 0; pdev->classId = 0; } #else /* Unlink previous class*/ pdev->pClass[0] = NULL; - 8009774: 68fb ldr r3, [r7, #12] - 8009776: 2200 movs r2, #0 - 8009778: f8c3 22b8 str.w r2, [r3, #696] @ 0x2b8 + 800982c: 68fb ldr r3, [r7, #12] + 800982e: 2200 movs r2, #0 + 8009830: f8c3 22b8 str.w r2, [r3, #696] @ 0x2b8 pdev->pUserData[0] = NULL; - 800977c: 68fb ldr r3, [r7, #12] - 800977e: 2200 movs r2, #0 - 8009780: f8c3 22c4 str.w r2, [r3, #708] @ 0x2c4 + 8009834: 68fb ldr r3, [r7, #12] + 8009836: 2200 movs r2, #0 + 8009838: f8c3 22c4 str.w r2, [r3, #708] @ 0x2c4 #endif /* USE_USBD_COMPOSITE */ pdev->pConfDesc = NULL; - 8009784: 68fb ldr r3, [r7, #12] - 8009786: 2200 movs r2, #0 - 8009788: f8c3 22d0 str.w r2, [r3, #720] @ 0x2d0 + 800983c: 68fb ldr r3, [r7, #12] + 800983e: 2200 movs r2, #0 + 8009840: f8c3 22d0 str.w r2, [r3, #720] @ 0x2d0 /* Assign USBD Descriptors */ if (pdesc != NULL) - 800978c: 68bb ldr r3, [r7, #8] - 800978e: 2b00 cmp r3, #0 - 8009790: d003 beq.n 800979a + 8009844: 68bb ldr r3, [r7, #8] + 8009846: 2b00 cmp r3, #0 + 8009848: d003 beq.n 8009852 { pdev->pDesc = pdesc; - 8009792: 68fb ldr r3, [r7, #12] - 8009794: 68ba ldr r2, [r7, #8] - 8009796: f8c3 22b4 str.w r2, [r3, #692] @ 0x2b4 + 800984a: 68fb ldr r3, [r7, #12] + 800984c: 68ba ldr r2, [r7, #8] + 800984e: f8c3 22b4 str.w r2, [r3, #692] @ 0x2b4 } /* Set Device initial State */ pdev->dev_state = USBD_STATE_DEFAULT; - 800979a: 68fb ldr r3, [r7, #12] - 800979c: 2201 movs r2, #1 - 800979e: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8009852: 68fb ldr r3, [r7, #12] + 8009854: 2201 movs r2, #1 + 8009856: f883 229c strb.w r2, [r3, #668] @ 0x29c pdev->id = id; - 80097a2: 68fb ldr r3, [r7, #12] - 80097a4: 79fa ldrb r2, [r7, #7] - 80097a6: 701a strb r2, [r3, #0] + 800985a: 68fb ldr r3, [r7, #12] + 800985c: 79fa ldrb r2, [r7, #7] + 800985e: 701a strb r2, [r3, #0] /* Initialize low level driver */ ret = USBD_LL_Init(pdev); - 80097a8: 68f8 ldr r0, [r7, #12] - 80097aa: f001 fda3 bl 800b2f4 - 80097ae: 4603 mov r3, r0 - 80097b0: 75fb strb r3, [r7, #23] + 8009860: 68f8 ldr r0, [r7, #12] + 8009862: f001 fda3 bl 800b3ac + 8009866: 4603 mov r3, r0 + 8009868: 75fb strb r3, [r7, #23] return ret; - 80097b2: 7dfb ldrb r3, [r7, #23] + 800986a: 7dfb ldrb r3, [r7, #23] } - 80097b4: 4618 mov r0, r3 - 80097b6: 3718 adds r7, #24 - 80097b8: 46bd mov sp, r7 - 80097ba: bd80 pop {r7, pc} + 800986c: 4618 mov r0, r3 + 800986e: 3718 adds r7, #24 + 8009870: 46bd mov sp, r7 + 8009872: bd80 pop {r7, pc} -080097bc : +08009874 : * @param pdev: Device Handle * @param pclass: Class handle * @retval USBD Status */ USBD_StatusTypeDef USBD_RegisterClass(USBD_HandleTypeDef *pdev, USBD_ClassTypeDef *pclass) { - 80097bc: b580 push {r7, lr} - 80097be: b084 sub sp, #16 - 80097c0: af00 add r7, sp, #0 - 80097c2: 6078 str r0, [r7, #4] - 80097c4: 6039 str r1, [r7, #0] + 8009874: b580 push {r7, lr} + 8009876: b084 sub sp, #16 + 8009878: af00 add r7, sp, #0 + 800987a: 6078 str r0, [r7, #4] + 800987c: 6039 str r1, [r7, #0] uint16_t len = 0U; - 80097c6: 2300 movs r3, #0 - 80097c8: 81fb strh r3, [r7, #14] + 800987e: 2300 movs r3, #0 + 8009880: 81fb strh r3, [r7, #14] if (pclass == NULL) - 80097ca: 683b ldr r3, [r7, #0] - 80097cc: 2b00 cmp r3, #0 - 80097ce: d101 bne.n 80097d4 + 8009882: 683b ldr r3, [r7, #0] + 8009884: 2b00 cmp r3, #0 + 8009886: d101 bne.n 800988c { #if (USBD_DEBUG_LEVEL > 1U) USBD_ErrLog("Invalid Class handle"); #endif /* (USBD_DEBUG_LEVEL > 1U) */ return USBD_FAIL; - 80097d0: 2303 movs r3, #3 - 80097d2: e025 b.n 8009820 + 8009888: 2303 movs r3, #3 + 800988a: e025 b.n 80098d8 } /* link the class to the USB Device handle */ pdev->pClass[0] = pclass; - 80097d4: 687b ldr r3, [r7, #4] - 80097d6: 683a ldr r2, [r7, #0] - 80097d8: f8c3 22b8 str.w r2, [r3, #696] @ 0x2b8 + 800988c: 687b ldr r3, [r7, #4] + 800988e: 683a ldr r2, [r7, #0] + 8009890: 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) - 80097dc: 687b ldr r3, [r7, #4] - 80097de: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80097e2: 687b ldr r3, [r7, #4] - 80097e4: 32ae adds r2, #174 @ 0xae - 80097e6: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80097ea: 6adb ldr r3, [r3, #44] @ 0x2c - 80097ec: 2b00 cmp r3, #0 - 80097ee: d00f beq.n 8009810 + 8009894: 687b ldr r3, [r7, #4] + 8009896: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 800989a: 687b ldr r3, [r7, #4] + 800989c: 32ae adds r2, #174 @ 0xae + 800989e: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80098a2: 6adb ldr r3, [r3, #44] @ 0x2c + 80098a4: 2b00 cmp r3, #0 + 80098a6: d00f beq.n 80098c8 { pdev->pConfDesc = (void *)pdev->pClass[pdev->classId]->GetFSConfigDescriptor(&len); - 80097f0: 687b ldr r3, [r7, #4] - 80097f2: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 80097f6: 687b ldr r3, [r7, #4] - 80097f8: 32ae adds r2, #174 @ 0xae - 80097fa: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 80097fe: 6adb ldr r3, [r3, #44] @ 0x2c - 8009800: f107 020e add.w r2, r7, #14 - 8009804: 4610 mov r0, r2 - 8009806: 4798 blx r3 - 8009808: 4602 mov r2, r0 - 800980a: 687b ldr r3, [r7, #4] - 800980c: f8c3 22d0 str.w r2, [r3, #720] @ 0x2d0 + 80098a8: 687b ldr r3, [r7, #4] + 80098aa: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 80098ae: 687b ldr r3, [r7, #4] + 80098b0: 32ae adds r2, #174 @ 0xae + 80098b2: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 80098b6: 6adb ldr r3, [r3, #44] @ 0x2c + 80098b8: f107 020e add.w r2, r7, #14 + 80098bc: 4610 mov r0, r2 + 80098be: 4798 blx r3 + 80098c0: 4602 mov r2, r0 + 80098c2: 687b ldr r3, [r7, #4] + 80098c4: f8c3 22d0 str.w r2, [r3, #720] @ 0x2d0 } #endif /* USE_USB_FS */ /* Increment the NumClasses */ pdev->NumClasses++; - 8009810: 687b ldr r3, [r7, #4] - 8009812: f8d3 32d8 ldr.w r3, [r3, #728] @ 0x2d8 - 8009816: 1c5a adds r2, r3, #1 - 8009818: 687b ldr r3, [r7, #4] - 800981a: f8c3 22d8 str.w r2, [r3, #728] @ 0x2d8 + 80098c8: 687b ldr r3, [r7, #4] + 80098ca: f8d3 32d8 ldr.w r3, [r3, #728] @ 0x2d8 + 80098ce: 1c5a adds r2, r3, #1 + 80098d0: 687b ldr r3, [r7, #4] + 80098d2: f8c3 22d8 str.w r2, [r3, #728] @ 0x2d8 return USBD_OK; - 800981e: 2300 movs r3, #0 + 80098d6: 2300 movs r3, #0 } - 8009820: 4618 mov r0, r3 - 8009822: 3710 adds r7, #16 - 8009824: 46bd mov sp, r7 - 8009826: bd80 pop {r7, pc} + 80098d8: 4618 mov r0, r3 + 80098da: 3710 adds r7, #16 + 80098dc: 46bd mov sp, r7 + 80098de: bd80 pop {r7, pc} -08009828 : +080098e0 : * Start the USB Device Core. * @param pdev: Device Handle * @retval USBD Status */ USBD_StatusTypeDef USBD_Start(USBD_HandleTypeDef *pdev) { - 8009828: b580 push {r7, lr} - 800982a: b082 sub sp, #8 - 800982c: af00 add r7, sp, #0 - 800982e: 6078 str r0, [r7, #4] + 80098e0: b580 push {r7, lr} + 80098e2: b082 sub sp, #8 + 80098e4: af00 add r7, sp, #0 + 80098e6: 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); - 8009830: 6878 ldr r0, [r7, #4] - 8009832: f001 fdab bl 800b38c - 8009836: 4603 mov r3, r0 + 80098e8: 6878 ldr r0, [r7, #4] + 80098ea: f001 fdab bl 800b444 + 80098ee: 4603 mov r3, r0 } - 8009838: 4618 mov r0, r3 - 800983a: 3708 adds r7, #8 - 800983c: 46bd mov sp, r7 - 800983e: bd80 pop {r7, pc} + 80098f0: 4618 mov r0, r3 + 80098f2: 3708 adds r7, #8 + 80098f4: 46bd mov sp, r7 + 80098f6: bd80 pop {r7, pc} -08009840 : +080098f8 : * Launch test mode process * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_RunTestMode(USBD_HandleTypeDef *pdev) { - 8009840: b480 push {r7} - 8009842: b083 sub sp, #12 - 8009844: af00 add r7, sp, #0 - 8009846: 6078 str r0, [r7, #4] + 80098f8: b480 push {r7} + 80098fa: b083 sub sp, #12 + 80098fc: af00 add r7, sp, #0 + 80098fe: 6078 str r0, [r7, #4] return ret; #else /* Prevent unused argument compilation warning */ UNUSED(pdev); return USBD_OK; - 8009848: 2300 movs r3, #0 + 8009900: 2300 movs r3, #0 #endif /* USBD_HS_TESTMODE_ENABLE */ } - 800984a: 4618 mov r0, r3 - 800984c: 370c adds r7, #12 - 800984e: 46bd mov sp, r7 - 8009850: f85d 7b04 ldr.w r7, [sp], #4 - 8009854: 4770 bx lr + 8009902: 4618 mov r0, r3 + 8009904: 370c adds r7, #12 + 8009906: 46bd mov sp, r7 + 8009908: f85d 7b04 ldr.w r7, [sp], #4 + 800990c: 4770 bx lr -08009856 : +0800990e : * @param cfgidx: configuration index * @retval status */ USBD_StatusTypeDef USBD_SetClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx) { - 8009856: b580 push {r7, lr} - 8009858: b084 sub sp, #16 - 800985a: af00 add r7, sp, #0 - 800985c: 6078 str r0, [r7, #4] - 800985e: 460b mov r3, r1 - 8009860: 70fb strb r3, [r7, #3] + 800990e: b580 push {r7, lr} + 8009910: b084 sub sp, #16 + 8009912: af00 add r7, sp, #0 + 8009914: 6078 str r0, [r7, #4] + 8009916: 460b mov r3, r1 + 8009918: 70fb strb r3, [r7, #3] USBD_StatusTypeDef ret = USBD_OK; - 8009862: 2300 movs r3, #0 - 8009864: 73fb strb r3, [r7, #15] + 800991a: 2300 movs r3, #0 + 800991c: 73fb strb r3, [r7, #15] } } } } #else if (pdev->pClass[0] != NULL) - 8009866: 687b ldr r3, [r7, #4] - 8009868: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 800986c: 2b00 cmp r3, #0 - 800986e: d009 beq.n 8009884 + 800991e: 687b ldr r3, [r7, #4] + 8009920: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009924: 2b00 cmp r3, #0 + 8009926: d009 beq.n 800993c { /* Set configuration and Start the Class */ ret = (USBD_StatusTypeDef)pdev->pClass[0]->Init(pdev, cfgidx); - 8009870: 687b ldr r3, [r7, #4] - 8009872: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009876: 681b ldr r3, [r3, #0] - 8009878: 78fa ldrb r2, [r7, #3] - 800987a: 4611 mov r1, r2 - 800987c: 6878 ldr r0, [r7, #4] - 800987e: 4798 blx r3 - 8009880: 4603 mov r3, r0 - 8009882: 73fb strb r3, [r7, #15] + 8009928: 687b ldr r3, [r7, #4] + 800992a: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 800992e: 681b ldr r3, [r3, #0] + 8009930: 78fa ldrb r2, [r7, #3] + 8009932: 4611 mov r1, r2 + 8009934: 6878 ldr r0, [r7, #4] + 8009936: 4798 blx r3 + 8009938: 4603 mov r3, r0 + 800993a: 73fb strb r3, [r7, #15] } #endif /* USE_USBD_COMPOSITE */ return ret; - 8009884: 7bfb ldrb r3, [r7, #15] + 800993c: 7bfb ldrb r3, [r7, #15] } - 8009886: 4618 mov r0, r3 - 8009888: 3710 adds r7, #16 - 800988a: 46bd mov sp, r7 - 800988c: bd80 pop {r7, pc} + 800993e: 4618 mov r0, r3 + 8009940: 3710 adds r7, #16 + 8009942: 46bd mov sp, r7 + 8009944: bd80 pop {r7, pc} -0800988e : +08009946 : * @param pdev: device instance * @param cfgidx: configuration index * @retval status */ USBD_StatusTypeDef USBD_ClrClassConfig(USBD_HandleTypeDef *pdev, uint8_t cfgidx) { - 800988e: b580 push {r7, lr} - 8009890: b084 sub sp, #16 - 8009892: af00 add r7, sp, #0 - 8009894: 6078 str r0, [r7, #4] - 8009896: 460b mov r3, r1 - 8009898: 70fb strb r3, [r7, #3] + 8009946: b580 push {r7, lr} + 8009948: b084 sub sp, #16 + 800994a: af00 add r7, sp, #0 + 800994c: 6078 str r0, [r7, #4] + 800994e: 460b mov r3, r1 + 8009950: 70fb strb r3, [r7, #3] USBD_StatusTypeDef ret = USBD_OK; - 800989a: 2300 movs r3, #0 - 800989c: 73fb strb r3, [r7, #15] + 8009952: 2300 movs r3, #0 + 8009954: 73fb strb r3, [r7, #15] } } } #else /* Clear configuration and De-initialize the Class process */ if (pdev->pClass[0]->DeInit(pdev, cfgidx) != 0U) - 800989e: 687b ldr r3, [r7, #4] - 80098a0: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 80098a4: 685b ldr r3, [r3, #4] - 80098a6: 78fa ldrb r2, [r7, #3] - 80098a8: 4611 mov r1, r2 - 80098aa: 6878 ldr r0, [r7, #4] - 80098ac: 4798 blx r3 - 80098ae: 4603 mov r3, r0 - 80098b0: 2b00 cmp r3, #0 - 80098b2: d001 beq.n 80098b8 + 8009956: 687b ldr r3, [r7, #4] + 8009958: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 800995c: 685b ldr r3, [r3, #4] + 800995e: 78fa ldrb r2, [r7, #3] + 8009960: 4611 mov r1, r2 + 8009962: 6878 ldr r0, [r7, #4] + 8009964: 4798 blx r3 + 8009966: 4603 mov r3, r0 + 8009968: 2b00 cmp r3, #0 + 800996a: d001 beq.n 8009970 { ret = USBD_FAIL; - 80098b4: 2303 movs r3, #3 - 80098b6: 73fb strb r3, [r7, #15] + 800996c: 2303 movs r3, #3 + 800996e: 73fb strb r3, [r7, #15] } #endif /* USE_USBD_COMPOSITE */ return ret; - 80098b8: 7bfb ldrb r3, [r7, #15] + 8009970: 7bfb ldrb r3, [r7, #15] } - 80098ba: 4618 mov r0, r3 - 80098bc: 3710 adds r7, #16 - 80098be: 46bd mov sp, r7 - 80098c0: bd80 pop {r7, pc} + 8009972: 4618 mov r0, r3 + 8009974: 3710 adds r7, #16 + 8009976: 46bd mov sp, r7 + 8009978: bd80 pop {r7, pc} -080098c2 : +0800997a : * @param pdev: device instance * @param psetup: setup packet buffer pointer * @retval status */ USBD_StatusTypeDef USBD_LL_SetupStage(USBD_HandleTypeDef *pdev, uint8_t *psetup) { - 80098c2: b580 push {r7, lr} - 80098c4: b084 sub sp, #16 - 80098c6: af00 add r7, sp, #0 - 80098c8: 6078 str r0, [r7, #4] - 80098ca: 6039 str r1, [r7, #0] + 800997a: b580 push {r7, lr} + 800997c: b084 sub sp, #16 + 800997e: af00 add r7, sp, #0 + 8009980: 6078 str r0, [r7, #4] + 8009982: 6039 str r1, [r7, #0] USBD_StatusTypeDef ret; USBD_ParseSetupRequest(&pdev->request, psetup); - 80098cc: 687b ldr r3, [r7, #4] - 80098ce: f203 23aa addw r3, r3, #682 @ 0x2aa - 80098d2: 6839 ldr r1, [r7, #0] - 80098d4: 4618 mov r0, r3 - 80098d6: f001 f94c bl 800ab72 + 8009984: 687b ldr r3, [r7, #4] + 8009986: f203 23aa addw r3, r3, #682 @ 0x2aa + 800998a: 6839 ldr r1, [r7, #0] + 800998c: 4618 mov r0, r3 + 800998e: f001 f94c bl 800ac2a pdev->ep0_state = USBD_EP0_SETUP; - 80098da: 687b ldr r3, [r7, #4] - 80098dc: 2201 movs r2, #1 - 80098de: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 8009992: 687b ldr r3, [r7, #4] + 8009994: 2201 movs r2, #1 + 8009996: f8c3 2294 str.w r2, [r3, #660] @ 0x294 pdev->ep0_data_len = pdev->request.wLength; - 80098e2: 687b ldr r3, [r7, #4] - 80098e4: f8b3 32b0 ldrh.w r3, [r3, #688] @ 0x2b0 - 80098e8: 461a mov r2, r3 - 80098ea: 687b ldr r3, [r7, #4] - 80098ec: f8c3 2298 str.w r2, [r3, #664] @ 0x298 + 800999a: 687b ldr r3, [r7, #4] + 800999c: f8b3 32b0 ldrh.w r3, [r3, #688] @ 0x2b0 + 80099a0: 461a mov r2, r3 + 80099a2: 687b ldr r3, [r7, #4] + 80099a4: f8c3 2298 str.w r2, [r3, #664] @ 0x298 switch (pdev->request.bmRequest & 0x1FU) - 80098f0: 687b ldr r3, [r7, #4] - 80098f2: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa - 80098f6: f003 031f and.w r3, r3, #31 - 80098fa: 2b02 cmp r3, #2 - 80098fc: d01a beq.n 8009934 - 80098fe: 2b02 cmp r3, #2 - 8009900: d822 bhi.n 8009948 - 8009902: 2b00 cmp r3, #0 - 8009904: d002 beq.n 800990c - 8009906: 2b01 cmp r3, #1 - 8009908: d00a beq.n 8009920 - 800990a: e01d b.n 8009948 + 80099a8: 687b ldr r3, [r7, #4] + 80099aa: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa + 80099ae: f003 031f and.w r3, r3, #31 + 80099b2: 2b02 cmp r3, #2 + 80099b4: d01a beq.n 80099ec + 80099b6: 2b02 cmp r3, #2 + 80099b8: d822 bhi.n 8009a00 + 80099ba: 2b00 cmp r3, #0 + 80099bc: d002 beq.n 80099c4 + 80099be: 2b01 cmp r3, #1 + 80099c0: d00a beq.n 80099d8 + 80099c2: e01d b.n 8009a00 { case USB_REQ_RECIPIENT_DEVICE: ret = USBD_StdDevReq(pdev, &pdev->request); - 800990c: 687b ldr r3, [r7, #4] - 800990e: f203 23aa addw r3, r3, #682 @ 0x2aa - 8009912: 4619 mov r1, r3 - 8009914: 6878 ldr r0, [r7, #4] - 8009916: f000 fb77 bl 800a008 - 800991a: 4603 mov r3, r0 - 800991c: 73fb strb r3, [r7, #15] + 80099c4: 687b ldr r3, [r7, #4] + 80099c6: f203 23aa addw r3, r3, #682 @ 0x2aa + 80099ca: 4619 mov r1, r3 + 80099cc: 6878 ldr r0, [r7, #4] + 80099ce: f000 fb77 bl 800a0c0 + 80099d2: 4603 mov r3, r0 + 80099d4: 73fb strb r3, [r7, #15] break; - 800991e: e020 b.n 8009962 + 80099d6: e020 b.n 8009a1a case USB_REQ_RECIPIENT_INTERFACE: ret = USBD_StdItfReq(pdev, &pdev->request); - 8009920: 687b ldr r3, [r7, #4] - 8009922: f203 23aa addw r3, r3, #682 @ 0x2aa - 8009926: 4619 mov r1, r3 - 8009928: 6878 ldr r0, [r7, #4] - 800992a: f000 fbdf bl 800a0ec - 800992e: 4603 mov r3, r0 - 8009930: 73fb strb r3, [r7, #15] + 80099d8: 687b ldr r3, [r7, #4] + 80099da: f203 23aa addw r3, r3, #682 @ 0x2aa + 80099de: 4619 mov r1, r3 + 80099e0: 6878 ldr r0, [r7, #4] + 80099e2: f000 fbdf bl 800a1a4 + 80099e6: 4603 mov r3, r0 + 80099e8: 73fb strb r3, [r7, #15] break; - 8009932: e016 b.n 8009962 + 80099ea: e016 b.n 8009a1a case USB_REQ_RECIPIENT_ENDPOINT: ret = USBD_StdEPReq(pdev, &pdev->request); - 8009934: 687b ldr r3, [r7, #4] - 8009936: f203 23aa addw r3, r3, #682 @ 0x2aa - 800993a: 4619 mov r1, r3 - 800993c: 6878 ldr r0, [r7, #4] - 800993e: f000 fc41 bl 800a1c4 - 8009942: 4603 mov r3, r0 - 8009944: 73fb strb r3, [r7, #15] + 80099ec: 687b ldr r3, [r7, #4] + 80099ee: f203 23aa addw r3, r3, #682 @ 0x2aa + 80099f2: 4619 mov r1, r3 + 80099f4: 6878 ldr r0, [r7, #4] + 80099f6: f000 fc41 bl 800a27c + 80099fa: 4603 mov r3, r0 + 80099fc: 73fb strb r3, [r7, #15] break; - 8009946: e00c b.n 8009962 + 80099fe: e00c b.n 8009a1a default: ret = USBD_LL_StallEP(pdev, (pdev->request.bmRequest & 0x80U)); - 8009948: 687b ldr r3, [r7, #4] - 800994a: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa - 800994e: f023 037f bic.w r3, r3, #127 @ 0x7f - 8009952: b2db uxtb r3, r3 - 8009954: 4619 mov r1, r3 - 8009956: 6878 ldr r0, [r7, #4] - 8009958: f001 fd78 bl 800b44c - 800995c: 4603 mov r3, r0 - 800995e: 73fb strb r3, [r7, #15] + 8009a00: 687b ldr r3, [r7, #4] + 8009a02: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa + 8009a06: f023 037f bic.w r3, r3, #127 @ 0x7f + 8009a0a: b2db uxtb r3, r3 + 8009a0c: 4619 mov r1, r3 + 8009a0e: 6878 ldr r0, [r7, #4] + 8009a10: f001 fd78 bl 800b504 + 8009a14: 4603 mov r3, r0 + 8009a16: 73fb strb r3, [r7, #15] break; - 8009960: bf00 nop + 8009a18: bf00 nop } return ret; - 8009962: 7bfb ldrb r3, [r7, #15] + 8009a1a: 7bfb ldrb r3, [r7, #15] } - 8009964: 4618 mov r0, r3 - 8009966: 3710 adds r7, #16 - 8009968: 46bd mov sp, r7 - 800996a: bd80 pop {r7, pc} + 8009a1c: 4618 mov r0, r3 + 8009a1e: 3710 adds r7, #16 + 8009a20: 46bd mov sp, r7 + 8009a22: bd80 pop {r7, pc} -0800996c : +08009a24 : * @param pdata: data pointer * @retval status */ USBD_StatusTypeDef USBD_LL_DataOutStage(USBD_HandleTypeDef *pdev, uint8_t epnum, uint8_t *pdata) { - 800996c: b580 push {r7, lr} - 800996e: b086 sub sp, #24 - 8009970: af00 add r7, sp, #0 - 8009972: 60f8 str r0, [r7, #12] - 8009974: 460b mov r3, r1 - 8009976: 607a str r2, [r7, #4] - 8009978: 72fb strb r3, [r7, #11] + 8009a24: b580 push {r7, lr} + 8009a26: b086 sub sp, #24 + 8009a28: af00 add r7, sp, #0 + 8009a2a: 60f8 str r0, [r7, #12] + 8009a2c: 460b mov r3, r1 + 8009a2e: 607a str r2, [r7, #4] + 8009a30: 72fb strb r3, [r7, #11] USBD_EndpointTypeDef *pep; USBD_StatusTypeDef ret = USBD_OK; - 800997a: 2300 movs r3, #0 - 800997c: 75fb strb r3, [r7, #23] + 8009a32: 2300 movs r3, #0 + 8009a34: 75fb strb r3, [r7, #23] uint8_t idx; UNUSED(pdata); if (epnum == 0U) - 800997e: 7afb ldrb r3, [r7, #11] - 8009980: 2b00 cmp r3, #0 - 8009982: d177 bne.n 8009a74 + 8009a36: 7afb ldrb r3, [r7, #11] + 8009a38: 2b00 cmp r3, #0 + 8009a3a: d177 bne.n 8009b2c { pep = &pdev->ep_out[0]; - 8009984: 68fb ldr r3, [r7, #12] - 8009986: f503 73aa add.w r3, r3, #340 @ 0x154 - 800998a: 613b str r3, [r7, #16] + 8009a3c: 68fb ldr r3, [r7, #12] + 8009a3e: f503 73aa add.w r3, r3, #340 @ 0x154 + 8009a42: 613b str r3, [r7, #16] if (pdev->ep0_state == USBD_EP0_DATA_OUT) - 800998c: 68fb ldr r3, [r7, #12] - 800998e: f8d3 3294 ldr.w r3, [r3, #660] @ 0x294 - 8009992: 2b03 cmp r3, #3 - 8009994: f040 80a1 bne.w 8009ada + 8009a44: 68fb ldr r3, [r7, #12] + 8009a46: f8d3 3294 ldr.w r3, [r3, #660] @ 0x294 + 8009a4a: 2b03 cmp r3, #3 + 8009a4c: f040 80a1 bne.w 8009b92 { if (pep->rem_length > pep->maxpacket) - 8009998: 693b ldr r3, [r7, #16] - 800999a: 685b ldr r3, [r3, #4] - 800999c: 693a ldr r2, [r7, #16] - 800999e: 8992 ldrh r2, [r2, #12] - 80099a0: 4293 cmp r3, r2 - 80099a2: d91c bls.n 80099de + 8009a50: 693b ldr r3, [r7, #16] + 8009a52: 685b ldr r3, [r3, #4] + 8009a54: 693a ldr r2, [r7, #16] + 8009a56: 8992 ldrh r2, [r2, #12] + 8009a58: 4293 cmp r3, r2 + 8009a5a: d91c bls.n 8009a96 { pep->rem_length -= pep->maxpacket; - 80099a4: 693b ldr r3, [r7, #16] - 80099a6: 685b ldr r3, [r3, #4] - 80099a8: 693a ldr r2, [r7, #16] - 80099aa: 8992 ldrh r2, [r2, #12] - 80099ac: 1a9a subs r2, r3, r2 - 80099ae: 693b ldr r3, [r7, #16] - 80099b0: 605a str r2, [r3, #4] + 8009a5c: 693b ldr r3, [r7, #16] + 8009a5e: 685b ldr r3, [r3, #4] + 8009a60: 693a ldr r2, [r7, #16] + 8009a62: 8992 ldrh r2, [r2, #12] + 8009a64: 1a9a subs r2, r3, r2 + 8009a66: 693b ldr r3, [r7, #16] + 8009a68: 605a str r2, [r3, #4] pep->pbuffer += pep->maxpacket; - 80099b2: 693b ldr r3, [r7, #16] - 80099b4: 691b ldr r3, [r3, #16] - 80099b6: 693a ldr r2, [r7, #16] - 80099b8: 8992 ldrh r2, [r2, #12] - 80099ba: 441a add r2, r3 - 80099bc: 693b ldr r3, [r7, #16] - 80099be: 611a str r2, [r3, #16] + 8009a6a: 693b ldr r3, [r7, #16] + 8009a6c: 691b ldr r3, [r3, #16] + 8009a6e: 693a ldr r2, [r7, #16] + 8009a70: 8992 ldrh r2, [r2, #12] + 8009a72: 441a add r2, r3 + 8009a74: 693b ldr r3, [r7, #16] + 8009a76: 611a str r2, [r3, #16] (void)USBD_CtlContinueRx(pdev, pep->pbuffer, MAX(pep->rem_length, pep->maxpacket)); - 80099c0: 693b ldr r3, [r7, #16] - 80099c2: 6919 ldr r1, [r3, #16] - 80099c4: 693b ldr r3, [r7, #16] - 80099c6: 899b ldrh r3, [r3, #12] - 80099c8: 461a mov r2, r3 - 80099ca: 693b ldr r3, [r7, #16] - 80099cc: 685b ldr r3, [r3, #4] - 80099ce: 4293 cmp r3, r2 - 80099d0: bf38 it cc - 80099d2: 4613 movcc r3, r2 - 80099d4: 461a mov r2, r3 - 80099d6: 68f8 ldr r0, [r7, #12] - 80099d8: f001 f9b1 bl 800ad3e - 80099dc: e07d b.n 8009ada + 8009a78: 693b ldr r3, [r7, #16] + 8009a7a: 6919 ldr r1, [r3, #16] + 8009a7c: 693b ldr r3, [r7, #16] + 8009a7e: 899b ldrh r3, [r3, #12] + 8009a80: 461a mov r2, r3 + 8009a82: 693b ldr r3, [r7, #16] + 8009a84: 685b ldr r3, [r3, #4] + 8009a86: 4293 cmp r3, r2 + 8009a88: bf38 it cc + 8009a8a: 4613 movcc r3, r2 + 8009a8c: 461a mov r2, r3 + 8009a8e: 68f8 ldr r0, [r7, #12] + 8009a90: f001 f9b1 bl 800adf6 + 8009a94: e07d b.n 8009b92 } else { /* Find the class ID relative to the current request */ switch (pdev->request.bmRequest & 0x1FU) - 80099de: 68fb ldr r3, [r7, #12] - 80099e0: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa - 80099e4: f003 031f and.w r3, r3, #31 - 80099e8: 2b02 cmp r3, #2 - 80099ea: d014 beq.n 8009a16 - 80099ec: 2b02 cmp r3, #2 - 80099ee: d81d bhi.n 8009a2c - 80099f0: 2b00 cmp r3, #0 - 80099f2: d002 beq.n 80099fa - 80099f4: 2b01 cmp r3, #1 - 80099f6: d003 beq.n 8009a00 - 80099f8: e018 b.n 8009a2c + 8009a96: 68fb ldr r3, [r7, #12] + 8009a98: f893 32aa ldrb.w r3, [r3, #682] @ 0x2aa + 8009a9c: f003 031f and.w r3, r3, #31 + 8009aa0: 2b02 cmp r3, #2 + 8009aa2: d014 beq.n 8009ace + 8009aa4: 2b02 cmp r3, #2 + 8009aa6: d81d bhi.n 8009ae4 + 8009aa8: 2b00 cmp r3, #0 + 8009aaa: d002 beq.n 8009ab2 + 8009aac: 2b01 cmp r3, #1 + 8009aae: d003 beq.n 8009ab8 + 8009ab0: e018 b.n 8009ae4 { case USB_REQ_RECIPIENT_DEVICE: /* Device requests must be managed by the first instantiated class (or duplicated by all classes for simplicity) */ idx = 0U; - 80099fa: 2300 movs r3, #0 - 80099fc: 75bb strb r3, [r7, #22] + 8009ab2: 2300 movs r3, #0 + 8009ab4: 75bb strb r3, [r7, #22] break; - 80099fe: e018 b.n 8009a32 + 8009ab6: e018 b.n 8009aea case USB_REQ_RECIPIENT_INTERFACE: idx = USBD_CoreFindIF(pdev, LOBYTE(pdev->request.wIndex)); - 8009a00: 68fb ldr r3, [r7, #12] - 8009a02: f8b3 32ae ldrh.w r3, [r3, #686] @ 0x2ae - 8009a06: b2db uxtb r3, r3 - 8009a08: 4619 mov r1, r3 - 8009a0a: 68f8 ldr r0, [r7, #12] - 8009a0c: f000 fa6e bl 8009eec - 8009a10: 4603 mov r3, r0 - 8009a12: 75bb strb r3, [r7, #22] + 8009ab8: 68fb ldr r3, [r7, #12] + 8009aba: f8b3 32ae ldrh.w r3, [r3, #686] @ 0x2ae + 8009abe: b2db uxtb r3, r3 + 8009ac0: 4619 mov r1, r3 + 8009ac2: 68f8 ldr r0, [r7, #12] + 8009ac4: f000 fa6e bl 8009fa4 + 8009ac8: 4603 mov r3, r0 + 8009aca: 75bb strb r3, [r7, #22] break; - 8009a14: e00d b.n 8009a32 + 8009acc: e00d b.n 8009aea case USB_REQ_RECIPIENT_ENDPOINT: idx = USBD_CoreFindEP(pdev, LOBYTE(pdev->request.wIndex)); - 8009a16: 68fb ldr r3, [r7, #12] - 8009a18: f8b3 32ae ldrh.w r3, [r3, #686] @ 0x2ae - 8009a1c: b2db uxtb r3, r3 - 8009a1e: 4619 mov r1, r3 - 8009a20: 68f8 ldr r0, [r7, #12] - 8009a22: f000 fa70 bl 8009f06 - 8009a26: 4603 mov r3, r0 - 8009a28: 75bb strb r3, [r7, #22] + 8009ace: 68fb ldr r3, [r7, #12] + 8009ad0: f8b3 32ae ldrh.w r3, [r3, #686] @ 0x2ae + 8009ad4: b2db uxtb r3, r3 + 8009ad6: 4619 mov r1, r3 + 8009ad8: 68f8 ldr r0, [r7, #12] + 8009ada: f000 fa70 bl 8009fbe + 8009ade: 4603 mov r3, r0 + 8009ae0: 75bb strb r3, [r7, #22] break; - 8009a2a: e002 b.n 8009a32 + 8009ae2: e002 b.n 8009aea default: /* Back to the first class in case of doubt */ idx = 0U; - 8009a2c: 2300 movs r3, #0 - 8009a2e: 75bb strb r3, [r7, #22] + 8009ae4: 2300 movs r3, #0 + 8009ae6: 75bb strb r3, [r7, #22] break; - 8009a30: bf00 nop + 8009ae8: bf00 nop } if (idx < USBD_MAX_SUPPORTED_CLASS) - 8009a32: 7dbb ldrb r3, [r7, #22] - 8009a34: 2b00 cmp r3, #0 - 8009a36: d119 bne.n 8009a6c + 8009aea: 7dbb ldrb r3, [r7, #22] + 8009aec: 2b00 cmp r3, #0 + 8009aee: d119 bne.n 8009b24 { /* Setup the class ID and route the request to the relative class function */ if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009a38: 68fb ldr r3, [r7, #12] - 8009a3a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009a3e: b2db uxtb r3, r3 - 8009a40: 2b03 cmp r3, #3 - 8009a42: d113 bne.n 8009a6c + 8009af0: 68fb ldr r3, [r7, #12] + 8009af2: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009af6: b2db uxtb r3, r3 + 8009af8: 2b03 cmp r3, #3 + 8009afa: d113 bne.n 8009b24 { if (pdev->pClass[idx]->EP0_RxReady != NULL) - 8009a44: 7dba ldrb r2, [r7, #22] - 8009a46: 68fb ldr r3, [r7, #12] - 8009a48: 32ae adds r2, #174 @ 0xae - 8009a4a: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009a4e: 691b ldr r3, [r3, #16] - 8009a50: 2b00 cmp r3, #0 - 8009a52: d00b beq.n 8009a6c + 8009afc: 7dba ldrb r2, [r7, #22] + 8009afe: 68fb ldr r3, [r7, #12] + 8009b00: 32ae adds r2, #174 @ 0xae + 8009b02: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009b06: 691b ldr r3, [r3, #16] + 8009b08: 2b00 cmp r3, #0 + 8009b0a: d00b beq.n 8009b24 { pdev->classId = idx; - 8009a54: 7dba ldrb r2, [r7, #22] - 8009a56: 68fb ldr r3, [r7, #12] - 8009a58: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8009b0c: 7dba ldrb r2, [r7, #22] + 8009b0e: 68fb ldr r3, [r7, #12] + 8009b10: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 pdev->pClass[idx]->EP0_RxReady(pdev); - 8009a5c: 7dba ldrb r2, [r7, #22] - 8009a5e: 68fb ldr r3, [r7, #12] - 8009a60: 32ae adds r2, #174 @ 0xae - 8009a62: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009a66: 691b ldr r3, [r3, #16] - 8009a68: 68f8 ldr r0, [r7, #12] - 8009a6a: 4798 blx r3 + 8009b14: 7dba ldrb r2, [r7, #22] + 8009b16: 68fb ldr r3, [r7, #12] + 8009b18: 32ae adds r2, #174 @ 0xae + 8009b1a: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009b1e: 691b ldr r3, [r3, #16] + 8009b20: 68f8 ldr r0, [r7, #12] + 8009b22: 4798 blx r3 } } } (void)USBD_CtlSendStatus(pdev); - 8009a6c: 68f8 ldr r0, [r7, #12] - 8009a6e: f001 f977 bl 800ad60 - 8009a72: e032 b.n 8009ada + 8009b24: 68f8 ldr r0, [r7, #12] + 8009b26: f001 f977 bl 800ae18 + 8009b2a: e032 b.n 8009b92 } } else { /* Get the class index relative to this interface */ idx = USBD_CoreFindEP(pdev, (epnum & 0x7FU)); - 8009a74: 7afb ldrb r3, [r7, #11] - 8009a76: f003 037f and.w r3, r3, #127 @ 0x7f - 8009a7a: b2db uxtb r3, r3 - 8009a7c: 4619 mov r1, r3 - 8009a7e: 68f8 ldr r0, [r7, #12] - 8009a80: f000 fa41 bl 8009f06 - 8009a84: 4603 mov r3, r0 - 8009a86: 75bb strb r3, [r7, #22] + 8009b2c: 7afb ldrb r3, [r7, #11] + 8009b2e: f003 037f and.w r3, r3, #127 @ 0x7f + 8009b32: b2db uxtb r3, r3 + 8009b34: 4619 mov r1, r3 + 8009b36: 68f8 ldr r0, [r7, #12] + 8009b38: f000 fa41 bl 8009fbe + 8009b3c: 4603 mov r3, r0 + 8009b3e: 75bb strb r3, [r7, #22] if (((uint16_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 8009a88: 7dbb ldrb r3, [r7, #22] - 8009a8a: 2bff cmp r3, #255 @ 0xff - 8009a8c: d025 beq.n 8009ada - 8009a8e: 7dbb ldrb r3, [r7, #22] - 8009a90: 2b00 cmp r3, #0 - 8009a92: d122 bne.n 8009ada + 8009b40: 7dbb ldrb r3, [r7, #22] + 8009b42: 2bff cmp r3, #255 @ 0xff + 8009b44: d025 beq.n 8009b92 + 8009b46: 7dbb ldrb r3, [r7, #22] + 8009b48: 2b00 cmp r3, #0 + 8009b4a: d122 bne.n 8009b92 { /* Call the class data out function to manage the request */ if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009a94: 68fb ldr r3, [r7, #12] - 8009a96: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009a9a: b2db uxtb r3, r3 - 8009a9c: 2b03 cmp r3, #3 - 8009a9e: d117 bne.n 8009ad0 + 8009b4c: 68fb ldr r3, [r7, #12] + 8009b4e: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009b52: b2db uxtb r3, r3 + 8009b54: 2b03 cmp r3, #3 + 8009b56: d117 bne.n 8009b88 { if (pdev->pClass[idx]->DataOut != NULL) - 8009aa0: 7dba ldrb r2, [r7, #22] - 8009aa2: 68fb ldr r3, [r7, #12] - 8009aa4: 32ae adds r2, #174 @ 0xae - 8009aa6: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009aaa: 699b ldr r3, [r3, #24] - 8009aac: 2b00 cmp r3, #0 - 8009aae: d00f beq.n 8009ad0 + 8009b58: 7dba ldrb r2, [r7, #22] + 8009b5a: 68fb ldr r3, [r7, #12] + 8009b5c: 32ae adds r2, #174 @ 0xae + 8009b5e: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009b62: 699b ldr r3, [r3, #24] + 8009b64: 2b00 cmp r3, #0 + 8009b66: d00f beq.n 8009b88 { pdev->classId = idx; - 8009ab0: 7dba ldrb r2, [r7, #22] - 8009ab2: 68fb ldr r3, [r7, #12] - 8009ab4: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8009b68: 7dba ldrb r2, [r7, #22] + 8009b6a: 68fb ldr r3, [r7, #12] + 8009b6c: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 ret = (USBD_StatusTypeDef)pdev->pClass[idx]->DataOut(pdev, epnum); - 8009ab8: 7dba ldrb r2, [r7, #22] - 8009aba: 68fb ldr r3, [r7, #12] - 8009abc: 32ae adds r2, #174 @ 0xae - 8009abe: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009ac2: 699b ldr r3, [r3, #24] - 8009ac4: 7afa ldrb r2, [r7, #11] - 8009ac6: 4611 mov r1, r2 - 8009ac8: 68f8 ldr r0, [r7, #12] - 8009aca: 4798 blx r3 - 8009acc: 4603 mov r3, r0 - 8009ace: 75fb strb r3, [r7, #23] + 8009b70: 7dba ldrb r2, [r7, #22] + 8009b72: 68fb ldr r3, [r7, #12] + 8009b74: 32ae adds r2, #174 @ 0xae + 8009b76: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009b7a: 699b ldr r3, [r3, #24] + 8009b7c: 7afa ldrb r2, [r7, #11] + 8009b7e: 4611 mov r1, r2 + 8009b80: 68f8 ldr r0, [r7, #12] + 8009b82: 4798 blx r3 + 8009b84: 4603 mov r3, r0 + 8009b86: 75fb strb r3, [r7, #23] } } if (ret != USBD_OK) - 8009ad0: 7dfb ldrb r3, [r7, #23] - 8009ad2: 2b00 cmp r3, #0 - 8009ad4: d001 beq.n 8009ada + 8009b88: 7dfb ldrb r3, [r7, #23] + 8009b8a: 2b00 cmp r3, #0 + 8009b8c: d001 beq.n 8009b92 { return ret; - 8009ad6: 7dfb ldrb r3, [r7, #23] - 8009ad8: e000 b.n 8009adc + 8009b8e: 7dfb ldrb r3, [r7, #23] + 8009b90: e000 b.n 8009b94 } } } return USBD_OK; - 8009ada: 2300 movs r3, #0 + 8009b92: 2300 movs r3, #0 } - 8009adc: 4618 mov r0, r3 - 8009ade: 3718 adds r7, #24 - 8009ae0: 46bd mov sp, r7 - 8009ae2: bd80 pop {r7, pc} + 8009b94: 4618 mov r0, r3 + 8009b96: 3718 adds r7, #24 + 8009b98: 46bd mov sp, r7 + 8009b9a: bd80 pop {r7, pc} -08009ae4 : +08009b9c : * @param pdata: data pointer * @retval status */ USBD_StatusTypeDef USBD_LL_DataInStage(USBD_HandleTypeDef *pdev, uint8_t epnum, uint8_t *pdata) { - 8009ae4: b580 push {r7, lr} - 8009ae6: b086 sub sp, #24 - 8009ae8: af00 add r7, sp, #0 - 8009aea: 60f8 str r0, [r7, #12] - 8009aec: 460b mov r3, r1 - 8009aee: 607a str r2, [r7, #4] - 8009af0: 72fb strb r3, [r7, #11] + 8009b9c: b580 push {r7, lr} + 8009b9e: b086 sub sp, #24 + 8009ba0: af00 add r7, sp, #0 + 8009ba2: 60f8 str r0, [r7, #12] + 8009ba4: 460b mov r3, r1 + 8009ba6: 607a str r2, [r7, #4] + 8009ba8: 72fb strb r3, [r7, #11] USBD_StatusTypeDef ret; uint8_t idx; UNUSED(pdata); if (epnum == 0U) - 8009af2: 7afb ldrb r3, [r7, #11] - 8009af4: 2b00 cmp r3, #0 - 8009af6: d178 bne.n 8009bea + 8009baa: 7afb ldrb r3, [r7, #11] + 8009bac: 2b00 cmp r3, #0 + 8009bae: d178 bne.n 8009ca2 { pep = &pdev->ep_in[0]; - 8009af8: 68fb ldr r3, [r7, #12] - 8009afa: 3314 adds r3, #20 - 8009afc: 613b str r3, [r7, #16] + 8009bb0: 68fb ldr r3, [r7, #12] + 8009bb2: 3314 adds r3, #20 + 8009bb4: 613b str r3, [r7, #16] if (pdev->ep0_state == USBD_EP0_DATA_IN) - 8009afe: 68fb ldr r3, [r7, #12] - 8009b00: f8d3 3294 ldr.w r3, [r3, #660] @ 0x294 - 8009b04: 2b02 cmp r3, #2 - 8009b06: d163 bne.n 8009bd0 + 8009bb6: 68fb ldr r3, [r7, #12] + 8009bb8: f8d3 3294 ldr.w r3, [r3, #660] @ 0x294 + 8009bbc: 2b02 cmp r3, #2 + 8009bbe: d163 bne.n 8009c88 { if (pep->rem_length > pep->maxpacket) - 8009b08: 693b ldr r3, [r7, #16] - 8009b0a: 685b ldr r3, [r3, #4] - 8009b0c: 693a ldr r2, [r7, #16] - 8009b0e: 8992 ldrh r2, [r2, #12] - 8009b10: 4293 cmp r3, r2 - 8009b12: d91c bls.n 8009b4e + 8009bc0: 693b ldr r3, [r7, #16] + 8009bc2: 685b ldr r3, [r3, #4] + 8009bc4: 693a ldr r2, [r7, #16] + 8009bc6: 8992 ldrh r2, [r2, #12] + 8009bc8: 4293 cmp r3, r2 + 8009bca: d91c bls.n 8009c06 { pep->rem_length -= pep->maxpacket; - 8009b14: 693b ldr r3, [r7, #16] - 8009b16: 685b ldr r3, [r3, #4] - 8009b18: 693a ldr r2, [r7, #16] - 8009b1a: 8992 ldrh r2, [r2, #12] - 8009b1c: 1a9a subs r2, r3, r2 - 8009b1e: 693b ldr r3, [r7, #16] - 8009b20: 605a str r2, [r3, #4] + 8009bcc: 693b ldr r3, [r7, #16] + 8009bce: 685b ldr r3, [r3, #4] + 8009bd0: 693a ldr r2, [r7, #16] + 8009bd2: 8992 ldrh r2, [r2, #12] + 8009bd4: 1a9a subs r2, r3, r2 + 8009bd6: 693b ldr r3, [r7, #16] + 8009bd8: 605a str r2, [r3, #4] pep->pbuffer += pep->maxpacket; - 8009b22: 693b ldr r3, [r7, #16] - 8009b24: 691b ldr r3, [r3, #16] - 8009b26: 693a ldr r2, [r7, #16] - 8009b28: 8992 ldrh r2, [r2, #12] - 8009b2a: 441a add r2, r3 - 8009b2c: 693b ldr r3, [r7, #16] - 8009b2e: 611a str r2, [r3, #16] + 8009bda: 693b ldr r3, [r7, #16] + 8009bdc: 691b ldr r3, [r3, #16] + 8009bde: 693a ldr r2, [r7, #16] + 8009be0: 8992 ldrh r2, [r2, #12] + 8009be2: 441a add r2, r3 + 8009be4: 693b ldr r3, [r7, #16] + 8009be6: 611a str r2, [r3, #16] (void)USBD_CtlContinueSendData(pdev, pep->pbuffer, pep->rem_length); - 8009b30: 693b ldr r3, [r7, #16] - 8009b32: 6919 ldr r1, [r3, #16] - 8009b34: 693b ldr r3, [r7, #16] - 8009b36: 685b ldr r3, [r3, #4] - 8009b38: 461a mov r2, r3 - 8009b3a: 68f8 ldr r0, [r7, #12] - 8009b3c: f001 f8ee bl 800ad1c + 8009be8: 693b ldr r3, [r7, #16] + 8009bea: 6919 ldr r1, [r3, #16] + 8009bec: 693b ldr r3, [r7, #16] + 8009bee: 685b ldr r3, [r3, #4] + 8009bf0: 461a mov r2, r3 + 8009bf2: 68f8 ldr r0, [r7, #12] + 8009bf4: f001 f8ee bl 800add4 /* Prepare endpoint for premature end of transfer */ (void)USBD_LL_PrepareReceive(pdev, 0U, NULL, 0U); - 8009b40: 2300 movs r3, #0 - 8009b42: 2200 movs r2, #0 - 8009b44: 2100 movs r1, #0 - 8009b46: 68f8 ldr r0, [r7, #12] - 8009b48: f001 fd2a bl 800b5a0 - 8009b4c: e040 b.n 8009bd0 + 8009bf8: 2300 movs r3, #0 + 8009bfa: 2200 movs r2, #0 + 8009bfc: 2100 movs r1, #0 + 8009bfe: 68f8 ldr r0, [r7, #12] + 8009c00: f001 fd2a bl 800b658 + 8009c04: e040 b.n 8009c88 } else { /* last packet is MPS multiple, so send ZLP packet */ if ((pep->maxpacket == pep->rem_length) && - 8009b4e: 693b ldr r3, [r7, #16] - 8009b50: 899b ldrh r3, [r3, #12] - 8009b52: 461a mov r2, r3 - 8009b54: 693b ldr r3, [r7, #16] - 8009b56: 685b ldr r3, [r3, #4] - 8009b58: 429a cmp r2, r3 - 8009b5a: d11c bne.n 8009b96 + 8009c06: 693b ldr r3, [r7, #16] + 8009c08: 899b ldrh r3, [r3, #12] + 8009c0a: 461a mov r2, r3 + 8009c0c: 693b ldr r3, [r7, #16] + 8009c0e: 685b ldr r3, [r3, #4] + 8009c10: 429a cmp r2, r3 + 8009c12: d11c bne.n 8009c4e (pep->total_length >= pep->maxpacket) && - 8009b5c: 693b ldr r3, [r7, #16] - 8009b5e: 681b ldr r3, [r3, #0] - 8009b60: 693a ldr r2, [r7, #16] - 8009b62: 8992 ldrh r2, [r2, #12] + 8009c14: 693b ldr r3, [r7, #16] + 8009c16: 681b ldr r3, [r3, #0] + 8009c18: 693a ldr r2, [r7, #16] + 8009c1a: 8992 ldrh r2, [r2, #12] if ((pep->maxpacket == pep->rem_length) && - 8009b64: 4293 cmp r3, r2 - 8009b66: d316 bcc.n 8009b96 + 8009c1c: 4293 cmp r3, r2 + 8009c1e: d316 bcc.n 8009c4e (pep->total_length < pdev->ep0_data_len)) - 8009b68: 693b ldr r3, [r7, #16] - 8009b6a: 681a ldr r2, [r3, #0] - 8009b6c: 68fb ldr r3, [r7, #12] - 8009b6e: f8d3 3298 ldr.w r3, [r3, #664] @ 0x298 + 8009c20: 693b ldr r3, [r7, #16] + 8009c22: 681a ldr r2, [r3, #0] + 8009c24: 68fb ldr r3, [r7, #12] + 8009c26: f8d3 3298 ldr.w r3, [r3, #664] @ 0x298 (pep->total_length >= pep->maxpacket) && - 8009b72: 429a cmp r2, r3 - 8009b74: d20f bcs.n 8009b96 + 8009c2a: 429a cmp r2, r3 + 8009c2c: d20f bcs.n 8009c4e { (void)USBD_CtlContinueSendData(pdev, NULL, 0U); - 8009b76: 2200 movs r2, #0 - 8009b78: 2100 movs r1, #0 - 8009b7a: 68f8 ldr r0, [r7, #12] - 8009b7c: f001 f8ce bl 800ad1c + 8009c2e: 2200 movs r2, #0 + 8009c30: 2100 movs r1, #0 + 8009c32: 68f8 ldr r0, [r7, #12] + 8009c34: f001 f8ce bl 800add4 pdev->ep0_data_len = 0U; - 8009b80: 68fb ldr r3, [r7, #12] - 8009b82: 2200 movs r2, #0 - 8009b84: f8c3 2298 str.w r2, [r3, #664] @ 0x298 + 8009c38: 68fb ldr r3, [r7, #12] + 8009c3a: 2200 movs r2, #0 + 8009c3c: f8c3 2298 str.w r2, [r3, #664] @ 0x298 /* Prepare endpoint for premature end of transfer */ (void)USBD_LL_PrepareReceive(pdev, 0U, NULL, 0U); - 8009b88: 2300 movs r3, #0 - 8009b8a: 2200 movs r2, #0 - 8009b8c: 2100 movs r1, #0 - 8009b8e: 68f8 ldr r0, [r7, #12] - 8009b90: f001 fd06 bl 800b5a0 - 8009b94: e01c b.n 8009bd0 + 8009c40: 2300 movs r3, #0 + 8009c42: 2200 movs r2, #0 + 8009c44: 2100 movs r1, #0 + 8009c46: 68f8 ldr r0, [r7, #12] + 8009c48: f001 fd06 bl 800b658 + 8009c4c: e01c b.n 8009c88 } else { if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009b96: 68fb ldr r3, [r7, #12] - 8009b98: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009b9c: b2db uxtb r3, r3 - 8009b9e: 2b03 cmp r3, #3 - 8009ba0: d10f bne.n 8009bc2 + 8009c4e: 68fb ldr r3, [r7, #12] + 8009c50: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009c54: b2db uxtb r3, r3 + 8009c56: 2b03 cmp r3, #3 + 8009c58: d10f bne.n 8009c7a { if (pdev->pClass[0]->EP0_TxSent != NULL) - 8009ba2: 68fb ldr r3, [r7, #12] - 8009ba4: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009ba8: 68db ldr r3, [r3, #12] - 8009baa: 2b00 cmp r3, #0 - 8009bac: d009 beq.n 8009bc2 + 8009c5a: 68fb ldr r3, [r7, #12] + 8009c5c: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009c60: 68db ldr r3, [r3, #12] + 8009c62: 2b00 cmp r3, #0 + 8009c64: d009 beq.n 8009c7a { pdev->classId = 0U; - 8009bae: 68fb ldr r3, [r7, #12] - 8009bb0: 2200 movs r2, #0 - 8009bb2: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8009c66: 68fb ldr r3, [r7, #12] + 8009c68: 2200 movs r2, #0 + 8009c6a: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 pdev->pClass[0]->EP0_TxSent(pdev); - 8009bb6: 68fb ldr r3, [r7, #12] - 8009bb8: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009bbc: 68db ldr r3, [r3, #12] - 8009bbe: 68f8 ldr r0, [r7, #12] - 8009bc0: 4798 blx r3 + 8009c6e: 68fb ldr r3, [r7, #12] + 8009c70: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009c74: 68db ldr r3, [r3, #12] + 8009c76: 68f8 ldr r0, [r7, #12] + 8009c78: 4798 blx r3 } } (void)USBD_LL_StallEP(pdev, 0x80U); - 8009bc2: 2180 movs r1, #128 @ 0x80 - 8009bc4: 68f8 ldr r0, [r7, #12] - 8009bc6: f001 fc41 bl 800b44c + 8009c7a: 2180 movs r1, #128 @ 0x80 + 8009c7c: 68f8 ldr r0, [r7, #12] + 8009c7e: f001 fc41 bl 800b504 (void)USBD_CtlReceiveStatus(pdev); - 8009bca: 68f8 ldr r0, [r7, #12] - 8009bcc: f001 f8db bl 800ad86 + 8009c82: 68f8 ldr r0, [r7, #12] + 8009c84: f001 f8db bl 800ae3e } } } if (pdev->dev_test_mode != 0U) - 8009bd0: 68fb ldr r3, [r7, #12] - 8009bd2: f893 32a0 ldrb.w r3, [r3, #672] @ 0x2a0 - 8009bd6: 2b00 cmp r3, #0 - 8009bd8: d03a beq.n 8009c50 + 8009c88: 68fb ldr r3, [r7, #12] + 8009c8a: f893 32a0 ldrb.w r3, [r3, #672] @ 0x2a0 + 8009c8e: 2b00 cmp r3, #0 + 8009c90: d03a beq.n 8009d08 { (void)USBD_RunTestMode(pdev); - 8009bda: 68f8 ldr r0, [r7, #12] - 8009bdc: f7ff fe30 bl 8009840 + 8009c92: 68f8 ldr r0, [r7, #12] + 8009c94: f7ff fe30 bl 80098f8 pdev->dev_test_mode = 0U; - 8009be0: 68fb ldr r3, [r7, #12] - 8009be2: 2200 movs r2, #0 - 8009be4: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 - 8009be8: e032 b.n 8009c50 + 8009c98: 68fb ldr r3, [r7, #12] + 8009c9a: 2200 movs r2, #0 + 8009c9c: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 + 8009ca0: e032 b.n 8009d08 } } else { /* Get the class index relative to this interface */ idx = USBD_CoreFindEP(pdev, ((uint8_t)epnum | 0x80U)); - 8009bea: 7afb ldrb r3, [r7, #11] - 8009bec: f063 037f orn r3, r3, #127 @ 0x7f - 8009bf0: b2db uxtb r3, r3 - 8009bf2: 4619 mov r1, r3 - 8009bf4: 68f8 ldr r0, [r7, #12] - 8009bf6: f000 f986 bl 8009f06 - 8009bfa: 4603 mov r3, r0 - 8009bfc: 75fb strb r3, [r7, #23] + 8009ca2: 7afb ldrb r3, [r7, #11] + 8009ca4: f063 037f orn r3, r3, #127 @ 0x7f + 8009ca8: b2db uxtb r3, r3 + 8009caa: 4619 mov r1, r3 + 8009cac: 68f8 ldr r0, [r7, #12] + 8009cae: f000 f986 bl 8009fbe + 8009cb2: 4603 mov r3, r0 + 8009cb4: 75fb strb r3, [r7, #23] if (((uint16_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 8009bfe: 7dfb ldrb r3, [r7, #23] - 8009c00: 2bff cmp r3, #255 @ 0xff - 8009c02: d025 beq.n 8009c50 - 8009c04: 7dfb ldrb r3, [r7, #23] - 8009c06: 2b00 cmp r3, #0 - 8009c08: d122 bne.n 8009c50 + 8009cb6: 7dfb ldrb r3, [r7, #23] + 8009cb8: 2bff cmp r3, #255 @ 0xff + 8009cba: d025 beq.n 8009d08 + 8009cbc: 7dfb ldrb r3, [r7, #23] + 8009cbe: 2b00 cmp r3, #0 + 8009cc0: d122 bne.n 8009d08 { /* Call the class data out function to manage the request */ if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009c0a: 68fb ldr r3, [r7, #12] - 8009c0c: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009c10: b2db uxtb r3, r3 - 8009c12: 2b03 cmp r3, #3 - 8009c14: d11c bne.n 8009c50 + 8009cc2: 68fb ldr r3, [r7, #12] + 8009cc4: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009cc8: b2db uxtb r3, r3 + 8009cca: 2b03 cmp r3, #3 + 8009ccc: d11c bne.n 8009d08 { if (pdev->pClass[idx]->DataIn != NULL) - 8009c16: 7dfa ldrb r2, [r7, #23] - 8009c18: 68fb ldr r3, [r7, #12] - 8009c1a: 32ae adds r2, #174 @ 0xae - 8009c1c: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009c20: 695b ldr r3, [r3, #20] - 8009c22: 2b00 cmp r3, #0 - 8009c24: d014 beq.n 8009c50 + 8009cce: 7dfa ldrb r2, [r7, #23] + 8009cd0: 68fb ldr r3, [r7, #12] + 8009cd2: 32ae adds r2, #174 @ 0xae + 8009cd4: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009cd8: 695b ldr r3, [r3, #20] + 8009cda: 2b00 cmp r3, #0 + 8009cdc: d014 beq.n 8009d08 { pdev->classId = idx; - 8009c26: 7dfa ldrb r2, [r7, #23] - 8009c28: 68fb ldr r3, [r7, #12] - 8009c2a: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 8009cde: 7dfa ldrb r2, [r7, #23] + 8009ce0: 68fb ldr r3, [r7, #12] + 8009ce2: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 ret = (USBD_StatusTypeDef)pdev->pClass[idx]->DataIn(pdev, epnum); - 8009c2e: 7dfa ldrb r2, [r7, #23] - 8009c30: 68fb ldr r3, [r7, #12] - 8009c32: 32ae adds r2, #174 @ 0xae - 8009c34: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009c38: 695b ldr r3, [r3, #20] - 8009c3a: 7afa ldrb r2, [r7, #11] - 8009c3c: 4611 mov r1, r2 - 8009c3e: 68f8 ldr r0, [r7, #12] - 8009c40: 4798 blx r3 - 8009c42: 4603 mov r3, r0 - 8009c44: 75bb strb r3, [r7, #22] + 8009ce6: 7dfa ldrb r2, [r7, #23] + 8009ce8: 68fb ldr r3, [r7, #12] + 8009cea: 32ae adds r2, #174 @ 0xae + 8009cec: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009cf0: 695b ldr r3, [r3, #20] + 8009cf2: 7afa ldrb r2, [r7, #11] + 8009cf4: 4611 mov r1, r2 + 8009cf6: 68f8 ldr r0, [r7, #12] + 8009cf8: 4798 blx r3 + 8009cfa: 4603 mov r3, r0 + 8009cfc: 75bb strb r3, [r7, #22] if (ret != USBD_OK) - 8009c46: 7dbb ldrb r3, [r7, #22] - 8009c48: 2b00 cmp r3, #0 - 8009c4a: d001 beq.n 8009c50 + 8009cfe: 7dbb ldrb r3, [r7, #22] + 8009d00: 2b00 cmp r3, #0 + 8009d02: d001 beq.n 8009d08 { return ret; - 8009c4c: 7dbb ldrb r3, [r7, #22] - 8009c4e: e000 b.n 8009c52 + 8009d04: 7dbb ldrb r3, [r7, #22] + 8009d06: e000 b.n 8009d0a } } } } return USBD_OK; - 8009c50: 2300 movs r3, #0 + 8009d08: 2300 movs r3, #0 } - 8009c52: 4618 mov r0, r3 - 8009c54: 3718 adds r7, #24 - 8009c56: 46bd mov sp, r7 - 8009c58: bd80 pop {r7, pc} + 8009d0a: 4618 mov r0, r3 + 8009d0c: 3718 adds r7, #24 + 8009d0e: 46bd mov sp, r7 + 8009d10: bd80 pop {r7, pc} -08009c5a : +08009d12 : * Handle Reset event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_Reset(USBD_HandleTypeDef *pdev) { - 8009c5a: b580 push {r7, lr} - 8009c5c: b084 sub sp, #16 - 8009c5e: af00 add r7, sp, #0 - 8009c60: 6078 str r0, [r7, #4] + 8009d12: b580 push {r7, lr} + 8009d14: b084 sub sp, #16 + 8009d16: af00 add r7, sp, #0 + 8009d18: 6078 str r0, [r7, #4] USBD_StatusTypeDef ret = USBD_OK; - 8009c62: 2300 movs r3, #0 - 8009c64: 73fb strb r3, [r7, #15] + 8009d1a: 2300 movs r3, #0 + 8009d1c: 73fb strb r3, [r7, #15] /* Upon Reset call user call back */ pdev->dev_state = USBD_STATE_DEFAULT; - 8009c66: 687b ldr r3, [r7, #4] - 8009c68: 2201 movs r2, #1 - 8009c6a: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8009d1e: 687b ldr r3, [r7, #4] + 8009d20: 2201 movs r2, #1 + 8009d22: f883 229c strb.w r2, [r3, #668] @ 0x29c pdev->ep0_state = USBD_EP0_IDLE; - 8009c6e: 687b ldr r3, [r7, #4] - 8009c70: 2200 movs r2, #0 - 8009c72: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 8009d26: 687b ldr r3, [r7, #4] + 8009d28: 2200 movs r2, #0 + 8009d2a: f8c3 2294 str.w r2, [r3, #660] @ 0x294 pdev->dev_config = 0U; - 8009c76: 687b ldr r3, [r7, #4] - 8009c78: 2200 movs r2, #0 - 8009c7a: 605a str r2, [r3, #4] + 8009d2e: 687b ldr r3, [r7, #4] + 8009d30: 2200 movs r2, #0 + 8009d32: 605a str r2, [r3, #4] pdev->dev_remote_wakeup = 0U; - 8009c7c: 687b ldr r3, [r7, #4] - 8009c7e: 2200 movs r2, #0 - 8009c80: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 + 8009d34: 687b ldr r3, [r7, #4] + 8009d36: 2200 movs r2, #0 + 8009d38: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 pdev->dev_test_mode = 0U; - 8009c84: 687b ldr r3, [r7, #4] - 8009c86: 2200 movs r2, #0 - 8009c88: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 + 8009d3c: 687b ldr r3, [r7, #4] + 8009d3e: 2200 movs r2, #0 + 8009d40: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 } } } #else if (pdev->pClass[0] != NULL) - 8009c8c: 687b ldr r3, [r7, #4] - 8009c8e: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009c92: 2b00 cmp r3, #0 - 8009c94: d014 beq.n 8009cc0 + 8009d44: 687b ldr r3, [r7, #4] + 8009d46: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009d4a: 2b00 cmp r3, #0 + 8009d4c: d014 beq.n 8009d78 { if (pdev->pClass[0]->DeInit != NULL) - 8009c96: 687b ldr r3, [r7, #4] - 8009c98: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009c9c: 685b ldr r3, [r3, #4] - 8009c9e: 2b00 cmp r3, #0 - 8009ca0: d00e beq.n 8009cc0 + 8009d4e: 687b ldr r3, [r7, #4] + 8009d50: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009d54: 685b ldr r3, [r3, #4] + 8009d56: 2b00 cmp r3, #0 + 8009d58: d00e beq.n 8009d78 { if (pdev->pClass[0]->DeInit(pdev, (uint8_t)pdev->dev_config) != USBD_OK) - 8009ca2: 687b ldr r3, [r7, #4] - 8009ca4: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009ca8: 685b ldr r3, [r3, #4] - 8009caa: 687a ldr r2, [r7, #4] - 8009cac: 6852 ldr r2, [r2, #4] - 8009cae: b2d2 uxtb r2, r2 - 8009cb0: 4611 mov r1, r2 - 8009cb2: 6878 ldr r0, [r7, #4] - 8009cb4: 4798 blx r3 - 8009cb6: 4603 mov r3, r0 - 8009cb8: 2b00 cmp r3, #0 - 8009cba: d001 beq.n 8009cc0 + 8009d5a: 687b ldr r3, [r7, #4] + 8009d5c: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009d60: 685b ldr r3, [r3, #4] + 8009d62: 687a ldr r2, [r7, #4] + 8009d64: 6852 ldr r2, [r2, #4] + 8009d66: b2d2 uxtb r2, r2 + 8009d68: 4611 mov r1, r2 + 8009d6a: 6878 ldr r0, [r7, #4] + 8009d6c: 4798 blx r3 + 8009d6e: 4603 mov r3, r0 + 8009d70: 2b00 cmp r3, #0 + 8009d72: d001 beq.n 8009d78 { ret = USBD_FAIL; - 8009cbc: 2303 movs r3, #3 - 8009cbe: 73fb strb r3, [r7, #15] + 8009d74: 2303 movs r3, #3 + 8009d76: 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); - 8009cc0: 2340 movs r3, #64 @ 0x40 - 8009cc2: 2200 movs r2, #0 - 8009cc4: 2100 movs r1, #0 - 8009cc6: 6878 ldr r0, [r7, #4] - 8009cc8: f001 fb7b bl 800b3c2 + 8009d78: 2340 movs r3, #64 @ 0x40 + 8009d7a: 2200 movs r2, #0 + 8009d7c: 2100 movs r1, #0 + 8009d7e: 6878 ldr r0, [r7, #4] + 8009d80: f001 fb7b bl 800b47a pdev->ep_out[0x00U & 0xFU].is_used = 1U; - 8009ccc: 687b ldr r3, [r7, #4] - 8009cce: 2201 movs r2, #1 - 8009cd0: f883 2163 strb.w r2, [r3, #355] @ 0x163 + 8009d84: 687b ldr r3, [r7, #4] + 8009d86: 2201 movs r2, #1 + 8009d88: f883 2163 strb.w r2, [r3, #355] @ 0x163 pdev->ep_out[0].maxpacket = USB_MAX_EP0_SIZE; - 8009cd4: 687b ldr r3, [r7, #4] - 8009cd6: 2240 movs r2, #64 @ 0x40 - 8009cd8: f8a3 2160 strh.w r2, [r3, #352] @ 0x160 + 8009d8c: 687b ldr r3, [r7, #4] + 8009d8e: 2240 movs r2, #64 @ 0x40 + 8009d90: 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); - 8009cdc: 2340 movs r3, #64 @ 0x40 - 8009cde: 2200 movs r2, #0 - 8009ce0: 2180 movs r1, #128 @ 0x80 - 8009ce2: 6878 ldr r0, [r7, #4] - 8009ce4: f001 fb6d bl 800b3c2 + 8009d94: 2340 movs r3, #64 @ 0x40 + 8009d96: 2200 movs r2, #0 + 8009d98: 2180 movs r1, #128 @ 0x80 + 8009d9a: 6878 ldr r0, [r7, #4] + 8009d9c: f001 fb6d bl 800b47a pdev->ep_in[0x80U & 0xFU].is_used = 1U; - 8009ce8: 687b ldr r3, [r7, #4] - 8009cea: 2201 movs r2, #1 - 8009cec: f883 2023 strb.w r2, [r3, #35] @ 0x23 + 8009da0: 687b ldr r3, [r7, #4] + 8009da2: 2201 movs r2, #1 + 8009da4: f883 2023 strb.w r2, [r3, #35] @ 0x23 pdev->ep_in[0].maxpacket = USB_MAX_EP0_SIZE; - 8009cf0: 687b ldr r3, [r7, #4] - 8009cf2: 2240 movs r2, #64 @ 0x40 - 8009cf4: 841a strh r2, [r3, #32] + 8009da8: 687b ldr r3, [r7, #4] + 8009daa: 2240 movs r2, #64 @ 0x40 + 8009dac: 841a strh r2, [r3, #32] return ret; - 8009cf6: 7bfb ldrb r3, [r7, #15] + 8009dae: 7bfb ldrb r3, [r7, #15] } - 8009cf8: 4618 mov r0, r3 - 8009cfa: 3710 adds r7, #16 - 8009cfc: 46bd mov sp, r7 - 8009cfe: bd80 pop {r7, pc} + 8009db0: 4618 mov r0, r3 + 8009db2: 3710 adds r7, #16 + 8009db4: 46bd mov sp, r7 + 8009db6: bd80 pop {r7, pc} -08009d00 : +08009db8 : * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_SetSpeed(USBD_HandleTypeDef *pdev, USBD_SpeedTypeDef speed) { - 8009d00: b480 push {r7} - 8009d02: b083 sub sp, #12 - 8009d04: af00 add r7, sp, #0 - 8009d06: 6078 str r0, [r7, #4] - 8009d08: 460b mov r3, r1 - 8009d0a: 70fb strb r3, [r7, #3] + 8009db8: b480 push {r7} + 8009dba: b083 sub sp, #12 + 8009dbc: af00 add r7, sp, #0 + 8009dbe: 6078 str r0, [r7, #4] + 8009dc0: 460b mov r3, r1 + 8009dc2: 70fb strb r3, [r7, #3] pdev->dev_speed = speed; - 8009d0c: 687b ldr r3, [r7, #4] - 8009d0e: 78fa ldrb r2, [r7, #3] - 8009d10: 741a strb r2, [r3, #16] + 8009dc4: 687b ldr r3, [r7, #4] + 8009dc6: 78fa ldrb r2, [r7, #3] + 8009dc8: 741a strb r2, [r3, #16] return USBD_OK; - 8009d12: 2300 movs r3, #0 + 8009dca: 2300 movs r3, #0 } - 8009d14: 4618 mov r0, r3 - 8009d16: 370c adds r7, #12 - 8009d18: 46bd mov sp, r7 - 8009d1a: f85d 7b04 ldr.w r7, [sp], #4 - 8009d1e: 4770 bx lr + 8009dcc: 4618 mov r0, r3 + 8009dce: 370c adds r7, #12 + 8009dd0: 46bd mov sp, r7 + 8009dd2: f85d 7b04 ldr.w r7, [sp], #4 + 8009dd6: 4770 bx lr -08009d20 : +08009dd8 : * Handle Suspend event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_Suspend(USBD_HandleTypeDef *pdev) { - 8009d20: b480 push {r7} - 8009d22: b083 sub sp, #12 - 8009d24: af00 add r7, sp, #0 - 8009d26: 6078 str r0, [r7, #4] + 8009dd8: b480 push {r7} + 8009dda: b083 sub sp, #12 + 8009ddc: af00 add r7, sp, #0 + 8009dde: 6078 str r0, [r7, #4] if (pdev->dev_state != USBD_STATE_SUSPENDED) - 8009d28: 687b ldr r3, [r7, #4] - 8009d2a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009d2e: b2db uxtb r3, r3 - 8009d30: 2b04 cmp r3, #4 - 8009d32: d006 beq.n 8009d42 + 8009de0: 687b ldr r3, [r7, #4] + 8009de2: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009de6: b2db uxtb r3, r3 + 8009de8: 2b04 cmp r3, #4 + 8009dea: d006 beq.n 8009dfa { pdev->dev_old_state = pdev->dev_state; - 8009d34: 687b ldr r3, [r7, #4] - 8009d36: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009d3a: b2da uxtb r2, r3 - 8009d3c: 687b ldr r3, [r7, #4] - 8009d3e: f883 229d strb.w r2, [r3, #669] @ 0x29d + 8009dec: 687b ldr r3, [r7, #4] + 8009dee: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009df2: b2da uxtb r2, r3 + 8009df4: 687b ldr r3, [r7, #4] + 8009df6: f883 229d strb.w r2, [r3, #669] @ 0x29d } pdev->dev_state = USBD_STATE_SUSPENDED; - 8009d42: 687b ldr r3, [r7, #4] - 8009d44: 2204 movs r2, #4 - 8009d46: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8009dfa: 687b ldr r3, [r7, #4] + 8009dfc: 2204 movs r2, #4 + 8009dfe: f883 229c strb.w r2, [r3, #668] @ 0x29c return USBD_OK; - 8009d4a: 2300 movs r3, #0 + 8009e02: 2300 movs r3, #0 } - 8009d4c: 4618 mov r0, r3 - 8009d4e: 370c adds r7, #12 - 8009d50: 46bd mov sp, r7 - 8009d52: f85d 7b04 ldr.w r7, [sp], #4 - 8009d56: 4770 bx lr + 8009e04: 4618 mov r0, r3 + 8009e06: 370c adds r7, #12 + 8009e08: 46bd mov sp, r7 + 8009e0a: f85d 7b04 ldr.w r7, [sp], #4 + 8009e0e: 4770 bx lr -08009d58 : +08009e10 : * Handle Resume event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_Resume(USBD_HandleTypeDef *pdev) { - 8009d58: b480 push {r7} - 8009d5a: b083 sub sp, #12 - 8009d5c: af00 add r7, sp, #0 - 8009d5e: 6078 str r0, [r7, #4] + 8009e10: b480 push {r7} + 8009e12: b083 sub sp, #12 + 8009e14: af00 add r7, sp, #0 + 8009e16: 6078 str r0, [r7, #4] if (pdev->dev_state == USBD_STATE_SUSPENDED) - 8009d60: 687b ldr r3, [r7, #4] - 8009d62: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009d66: b2db uxtb r3, r3 - 8009d68: 2b04 cmp r3, #4 - 8009d6a: d106 bne.n 8009d7a + 8009e18: 687b ldr r3, [r7, #4] + 8009e1a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009e1e: b2db uxtb r3, r3 + 8009e20: 2b04 cmp r3, #4 + 8009e22: d106 bne.n 8009e32 { pdev->dev_state = pdev->dev_old_state; - 8009d6c: 687b ldr r3, [r7, #4] - 8009d6e: f893 329d ldrb.w r3, [r3, #669] @ 0x29d - 8009d72: b2da uxtb r2, r3 - 8009d74: 687b ldr r3, [r7, #4] - 8009d76: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8009e24: 687b ldr r3, [r7, #4] + 8009e26: f893 329d ldrb.w r3, [r3, #669] @ 0x29d + 8009e2a: b2da uxtb r2, r3 + 8009e2c: 687b ldr r3, [r7, #4] + 8009e2e: f883 229c strb.w r2, [r3, #668] @ 0x29c } return USBD_OK; - 8009d7a: 2300 movs r3, #0 + 8009e32: 2300 movs r3, #0 } - 8009d7c: 4618 mov r0, r3 - 8009d7e: 370c adds r7, #12 - 8009d80: 46bd mov sp, r7 - 8009d82: f85d 7b04 ldr.w r7, [sp], #4 - 8009d86: 4770 bx lr + 8009e34: 4618 mov r0, r3 + 8009e36: 370c adds r7, #12 + 8009e38: 46bd mov sp, r7 + 8009e3a: f85d 7b04 ldr.w r7, [sp], #4 + 8009e3e: 4770 bx lr -08009d88 : +08009e40 : * Handle SOF event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_SOF(USBD_HandleTypeDef *pdev) { - 8009d88: b580 push {r7, lr} - 8009d8a: b082 sub sp, #8 - 8009d8c: af00 add r7, sp, #0 - 8009d8e: 6078 str r0, [r7, #4] + 8009e40: b580 push {r7, lr} + 8009e42: b082 sub sp, #8 + 8009e44: af00 add r7, sp, #0 + 8009e46: 6078 str r0, [r7, #4] /* The SOF event can be distributed for all classes that support it */ if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009d90: 687b ldr r3, [r7, #4] - 8009d92: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009d96: b2db uxtb r3, r3 - 8009d98: 2b03 cmp r3, #3 - 8009d9a: d110 bne.n 8009dbe + 8009e48: 687b ldr r3, [r7, #4] + 8009e4a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009e4e: b2db uxtb r3, r3 + 8009e50: 2b03 cmp r3, #3 + 8009e52: d110 bne.n 8009e76 } } } } #else if (pdev->pClass[0] != NULL) - 8009d9c: 687b ldr r3, [r7, #4] - 8009d9e: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009da2: 2b00 cmp r3, #0 - 8009da4: d00b beq.n 8009dbe + 8009e54: 687b ldr r3, [r7, #4] + 8009e56: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009e5a: 2b00 cmp r3, #0 + 8009e5c: d00b beq.n 8009e76 { if (pdev->pClass[0]->SOF != NULL) - 8009da6: 687b ldr r3, [r7, #4] - 8009da8: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009dac: 69db ldr r3, [r3, #28] - 8009dae: 2b00 cmp r3, #0 - 8009db0: d005 beq.n 8009dbe + 8009e5e: 687b ldr r3, [r7, #4] + 8009e60: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009e64: 69db ldr r3, [r3, #28] + 8009e66: 2b00 cmp r3, #0 + 8009e68: d005 beq.n 8009e76 { (void)pdev->pClass[0]->SOF(pdev); - 8009db2: 687b ldr r3, [r7, #4] - 8009db4: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009db8: 69db ldr r3, [r3, #28] - 8009dba: 6878 ldr r0, [r7, #4] - 8009dbc: 4798 blx r3 + 8009e6a: 687b ldr r3, [r7, #4] + 8009e6c: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009e70: 69db ldr r3, [r3, #28] + 8009e72: 6878 ldr r0, [r7, #4] + 8009e74: 4798 blx r3 } } #endif /* USE_USBD_COMPOSITE */ } return USBD_OK; - 8009dbe: 2300 movs r3, #0 + 8009e76: 2300 movs r3, #0 } - 8009dc0: 4618 mov r0, r3 - 8009dc2: 3708 adds r7, #8 - 8009dc4: 46bd mov sp, r7 - 8009dc6: bd80 pop {r7, pc} + 8009e78: 4618 mov r0, r3 + 8009e7a: 3708 adds r7, #8 + 8009e7c: 46bd mov sp, r7 + 8009e7e: bd80 pop {r7, pc} -08009dc8 : +08009e80 : * @param epnum: Endpoint number * @retval status */ USBD_StatusTypeDef USBD_LL_IsoINIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum) { - 8009dc8: b580 push {r7, lr} - 8009dca: b082 sub sp, #8 - 8009dcc: af00 add r7, sp, #0 - 8009dce: 6078 str r0, [r7, #4] - 8009dd0: 460b mov r3, r1 - 8009dd2: 70fb strb r3, [r7, #3] + 8009e80: b580 push {r7, lr} + 8009e82: b082 sub sp, #8 + 8009e84: af00 add r7, sp, #0 + 8009e86: 6078 str r0, [r7, #4] + 8009e88: 460b mov r3, r1 + 8009e8a: 70fb strb r3, [r7, #3] if (pdev->pClass[pdev->classId] == NULL) - 8009dd4: 687b ldr r3, [r7, #4] - 8009dd6: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009dda: 687b ldr r3, [r7, #4] - 8009ddc: 32ae adds r2, #174 @ 0xae - 8009dde: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009de2: 2b00 cmp r3, #0 - 8009de4: d101 bne.n 8009dea + 8009e8c: 687b ldr r3, [r7, #4] + 8009e8e: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009e92: 687b ldr r3, [r7, #4] + 8009e94: 32ae adds r2, #174 @ 0xae + 8009e96: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009e9a: 2b00 cmp r3, #0 + 8009e9c: d101 bne.n 8009ea2 { return USBD_FAIL; - 8009de6: 2303 movs r3, #3 - 8009de8: e01c b.n 8009e24 + 8009e9e: 2303 movs r3, #3 + 8009ea0: e01c b.n 8009edc } if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009dea: 687b ldr r3, [r7, #4] - 8009dec: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009df0: b2db uxtb r3, r3 - 8009df2: 2b03 cmp r3, #3 - 8009df4: d115 bne.n 8009e22 + 8009ea2: 687b ldr r3, [r7, #4] + 8009ea4: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009ea8: b2db uxtb r3, r3 + 8009eaa: 2b03 cmp r3, #3 + 8009eac: d115 bne.n 8009eda { if (pdev->pClass[pdev->classId]->IsoINIncomplete != NULL) - 8009df6: 687b ldr r3, [r7, #4] - 8009df8: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009dfc: 687b ldr r3, [r7, #4] - 8009dfe: 32ae adds r2, #174 @ 0xae - 8009e00: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009e04: 6a1b ldr r3, [r3, #32] - 8009e06: 2b00 cmp r3, #0 - 8009e08: d00b beq.n 8009e22 + 8009eae: 687b ldr r3, [r7, #4] + 8009eb0: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009eb4: 687b ldr r3, [r7, #4] + 8009eb6: 32ae adds r2, #174 @ 0xae + 8009eb8: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009ebc: 6a1b ldr r3, [r3, #32] + 8009ebe: 2b00 cmp r3, #0 + 8009ec0: d00b beq.n 8009eda { (void)pdev->pClass[pdev->classId]->IsoINIncomplete(pdev, epnum); - 8009e0a: 687b ldr r3, [r7, #4] - 8009e0c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009e10: 687b ldr r3, [r7, #4] - 8009e12: 32ae adds r2, #174 @ 0xae - 8009e14: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009e18: 6a1b ldr r3, [r3, #32] - 8009e1a: 78fa ldrb r2, [r7, #3] - 8009e1c: 4611 mov r1, r2 - 8009e1e: 6878 ldr r0, [r7, #4] - 8009e20: 4798 blx r3 + 8009ec2: 687b ldr r3, [r7, #4] + 8009ec4: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009ec8: 687b ldr r3, [r7, #4] + 8009eca: 32ae adds r2, #174 @ 0xae + 8009ecc: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009ed0: 6a1b ldr r3, [r3, #32] + 8009ed2: 78fa ldrb r2, [r7, #3] + 8009ed4: 4611 mov r1, r2 + 8009ed6: 6878 ldr r0, [r7, #4] + 8009ed8: 4798 blx r3 } } return USBD_OK; - 8009e22: 2300 movs r3, #0 + 8009eda: 2300 movs r3, #0 } - 8009e24: 4618 mov r0, r3 - 8009e26: 3708 adds r7, #8 - 8009e28: 46bd mov sp, r7 - 8009e2a: bd80 pop {r7, pc} + 8009edc: 4618 mov r0, r3 + 8009ede: 3708 adds r7, #8 + 8009ee0: 46bd mov sp, r7 + 8009ee2: bd80 pop {r7, pc} -08009e2c : +08009ee4 : * @param epnum: Endpoint number * @retval status */ USBD_StatusTypeDef USBD_LL_IsoOUTIncomplete(USBD_HandleTypeDef *pdev, uint8_t epnum) { - 8009e2c: b580 push {r7, lr} - 8009e2e: b082 sub sp, #8 - 8009e30: af00 add r7, sp, #0 - 8009e32: 6078 str r0, [r7, #4] - 8009e34: 460b mov r3, r1 - 8009e36: 70fb strb r3, [r7, #3] + 8009ee4: b580 push {r7, lr} + 8009ee6: b082 sub sp, #8 + 8009ee8: af00 add r7, sp, #0 + 8009eea: 6078 str r0, [r7, #4] + 8009eec: 460b mov r3, r1 + 8009eee: 70fb strb r3, [r7, #3] if (pdev->pClass[pdev->classId] == NULL) - 8009e38: 687b ldr r3, [r7, #4] - 8009e3a: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009e3e: 687b ldr r3, [r7, #4] - 8009e40: 32ae adds r2, #174 @ 0xae - 8009e42: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009e46: 2b00 cmp r3, #0 - 8009e48: d101 bne.n 8009e4e + 8009ef0: 687b ldr r3, [r7, #4] + 8009ef2: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009ef6: 687b ldr r3, [r7, #4] + 8009ef8: 32ae adds r2, #174 @ 0xae + 8009efa: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009efe: 2b00 cmp r3, #0 + 8009f00: d101 bne.n 8009f06 { return USBD_FAIL; - 8009e4a: 2303 movs r3, #3 - 8009e4c: e01c b.n 8009e88 + 8009f02: 2303 movs r3, #3 + 8009f04: e01c b.n 8009f40 } if (pdev->dev_state == USBD_STATE_CONFIGURED) - 8009e4e: 687b ldr r3, [r7, #4] - 8009e50: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 8009e54: b2db uxtb r3, r3 - 8009e56: 2b03 cmp r3, #3 - 8009e58: d115 bne.n 8009e86 + 8009f06: 687b ldr r3, [r7, #4] + 8009f08: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 8009f0c: b2db uxtb r3, r3 + 8009f0e: 2b03 cmp r3, #3 + 8009f10: d115 bne.n 8009f3e { if (pdev->pClass[pdev->classId]->IsoOUTIncomplete != NULL) - 8009e5a: 687b ldr r3, [r7, #4] - 8009e5c: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009e60: 687b ldr r3, [r7, #4] - 8009e62: 32ae adds r2, #174 @ 0xae - 8009e64: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009e68: 6a5b ldr r3, [r3, #36] @ 0x24 - 8009e6a: 2b00 cmp r3, #0 - 8009e6c: d00b beq.n 8009e86 + 8009f12: 687b ldr r3, [r7, #4] + 8009f14: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009f18: 687b ldr r3, [r7, #4] + 8009f1a: 32ae adds r2, #174 @ 0xae + 8009f1c: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009f20: 6a5b ldr r3, [r3, #36] @ 0x24 + 8009f22: 2b00 cmp r3, #0 + 8009f24: d00b beq.n 8009f3e { (void)pdev->pClass[pdev->classId]->IsoOUTIncomplete(pdev, epnum); - 8009e6e: 687b ldr r3, [r7, #4] - 8009e70: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 8009e74: 687b ldr r3, [r7, #4] - 8009e76: 32ae adds r2, #174 @ 0xae - 8009e78: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 8009e7c: 6a5b ldr r3, [r3, #36] @ 0x24 - 8009e7e: 78fa ldrb r2, [r7, #3] - 8009e80: 4611 mov r1, r2 - 8009e82: 6878 ldr r0, [r7, #4] - 8009e84: 4798 blx r3 + 8009f26: 687b ldr r3, [r7, #4] + 8009f28: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 8009f2c: 687b ldr r3, [r7, #4] + 8009f2e: 32ae adds r2, #174 @ 0xae + 8009f30: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 8009f34: 6a5b ldr r3, [r3, #36] @ 0x24 + 8009f36: 78fa ldrb r2, [r7, #3] + 8009f38: 4611 mov r1, r2 + 8009f3a: 6878 ldr r0, [r7, #4] + 8009f3c: 4798 blx r3 } } return USBD_OK; - 8009e86: 2300 movs r3, #0 + 8009f3e: 2300 movs r3, #0 } - 8009e88: 4618 mov r0, r3 - 8009e8a: 3708 adds r7, #8 - 8009e8c: 46bd mov sp, r7 - 8009e8e: bd80 pop {r7, pc} + 8009f40: 4618 mov r0, r3 + 8009f42: 3708 adds r7, #8 + 8009f44: 46bd mov sp, r7 + 8009f46: bd80 pop {r7, pc} -08009e90 : +08009f48 : * Handle device connection event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_DevConnected(USBD_HandleTypeDef *pdev) { - 8009e90: b480 push {r7} - 8009e92: b083 sub sp, #12 - 8009e94: af00 add r7, sp, #0 - 8009e96: 6078 str r0, [r7, #4] + 8009f48: b480 push {r7} + 8009f4a: b083 sub sp, #12 + 8009f4c: af00 add r7, sp, #0 + 8009f4e: 6078 str r0, [r7, #4] /* Prevent unused argument compilation warning */ UNUSED(pdev); return USBD_OK; - 8009e98: 2300 movs r3, #0 + 8009f50: 2300 movs r3, #0 } - 8009e9a: 4618 mov r0, r3 - 8009e9c: 370c adds r7, #12 - 8009e9e: 46bd mov sp, r7 - 8009ea0: f85d 7b04 ldr.w r7, [sp], #4 - 8009ea4: 4770 bx lr + 8009f52: 4618 mov r0, r3 + 8009f54: 370c adds r7, #12 + 8009f56: 46bd mov sp, r7 + 8009f58: f85d 7b04 ldr.w r7, [sp], #4 + 8009f5c: 4770 bx lr -08009ea6 : +08009f5e : * Handle device disconnection event * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_LL_DevDisconnected(USBD_HandleTypeDef *pdev) { - 8009ea6: b580 push {r7, lr} - 8009ea8: b084 sub sp, #16 - 8009eaa: af00 add r7, sp, #0 - 8009eac: 6078 str r0, [r7, #4] + 8009f5e: b580 push {r7, lr} + 8009f60: b084 sub sp, #16 + 8009f62: af00 add r7, sp, #0 + 8009f64: 6078 str r0, [r7, #4] USBD_StatusTypeDef ret = USBD_OK; - 8009eae: 2300 movs r3, #0 - 8009eb0: 73fb strb r3, [r7, #15] + 8009f66: 2300 movs r3, #0 + 8009f68: 73fb strb r3, [r7, #15] /* Free Class Resources */ pdev->dev_state = USBD_STATE_DEFAULT; - 8009eb2: 687b ldr r3, [r7, #4] - 8009eb4: 2201 movs r2, #1 - 8009eb6: f883 229c strb.w r2, [r3, #668] @ 0x29c + 8009f6a: 687b ldr r3, [r7, #4] + 8009f6c: 2201 movs r2, #1 + 8009f6e: f883 229c strb.w r2, [r3, #668] @ 0x29c } } } } #else if (pdev->pClass[0] != NULL) - 8009eba: 687b ldr r3, [r7, #4] - 8009ebc: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009ec0: 2b00 cmp r3, #0 - 8009ec2: d00e beq.n 8009ee2 + 8009f72: 687b ldr r3, [r7, #4] + 8009f74: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009f78: 2b00 cmp r3, #0 + 8009f7a: d00e beq.n 8009f9a { if (pdev->pClass[0]->DeInit(pdev, (uint8_t)pdev->dev_config) != 0U) - 8009ec4: 687b ldr r3, [r7, #4] - 8009ec6: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 8009eca: 685b ldr r3, [r3, #4] - 8009ecc: 687a ldr r2, [r7, #4] - 8009ece: 6852 ldr r2, [r2, #4] - 8009ed0: b2d2 uxtb r2, r2 - 8009ed2: 4611 mov r1, r2 - 8009ed4: 6878 ldr r0, [r7, #4] - 8009ed6: 4798 blx r3 - 8009ed8: 4603 mov r3, r0 - 8009eda: 2b00 cmp r3, #0 - 8009edc: d001 beq.n 8009ee2 + 8009f7c: 687b ldr r3, [r7, #4] + 8009f7e: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 8009f82: 685b ldr r3, [r3, #4] + 8009f84: 687a ldr r2, [r7, #4] + 8009f86: 6852 ldr r2, [r2, #4] + 8009f88: b2d2 uxtb r2, r2 + 8009f8a: 4611 mov r1, r2 + 8009f8c: 6878 ldr r0, [r7, #4] + 8009f8e: 4798 blx r3 + 8009f90: 4603 mov r3, r0 + 8009f92: 2b00 cmp r3, #0 + 8009f94: d001 beq.n 8009f9a { ret = USBD_FAIL; - 8009ede: 2303 movs r3, #3 - 8009ee0: 73fb strb r3, [r7, #15] + 8009f96: 2303 movs r3, #3 + 8009f98: 73fb strb r3, [r7, #15] } } #endif /* USE_USBD_COMPOSITE */ return ret; - 8009ee2: 7bfb ldrb r3, [r7, #15] + 8009f9a: 7bfb ldrb r3, [r7, #15] } - 8009ee4: 4618 mov r0, r3 - 8009ee6: 3710 adds r7, #16 - 8009ee8: 46bd mov sp, r7 - 8009eea: bd80 pop {r7, pc} + 8009f9c: 4618 mov r0, r3 + 8009f9e: 3710 adds r7, #16 + 8009fa0: 46bd mov sp, r7 + 8009fa2: bd80 pop {r7, pc} -08009eec : +08009fa4 : * @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) { - 8009eec: b480 push {r7} - 8009eee: b083 sub sp, #12 - 8009ef0: af00 add r7, sp, #0 - 8009ef2: 6078 str r0, [r7, #4] - 8009ef4: 460b mov r3, r1 - 8009ef6: 70fb strb r3, [r7, #3] + 8009fa4: b480 push {r7} + 8009fa6: b083 sub sp, #12 + 8009fa8: af00 add r7, sp, #0 + 8009faa: 6078 str r0, [r7, #4] + 8009fac: 460b mov r3, r1 + 8009fae: 70fb strb r3, [r7, #3] return 0xFFU; #else UNUSED(pdev); UNUSED(index); return 0x00U; - 8009ef8: 2300 movs r3, #0 + 8009fb0: 2300 movs r3, #0 #endif /* USE_USBD_COMPOSITE */ } - 8009efa: 4618 mov r0, r3 - 8009efc: 370c adds r7, #12 - 8009efe: 46bd mov sp, r7 - 8009f00: f85d 7b04 ldr.w r7, [sp], #4 - 8009f04: 4770 bx lr + 8009fb2: 4618 mov r0, r3 + 8009fb4: 370c adds r7, #12 + 8009fb6: 46bd mov sp, r7 + 8009fb8: f85d 7b04 ldr.w r7, [sp], #4 + 8009fbc: 4770 bx lr -08009f06 : +08009fbe : * @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) { - 8009f06: b480 push {r7} - 8009f08: b083 sub sp, #12 - 8009f0a: af00 add r7, sp, #0 - 8009f0c: 6078 str r0, [r7, #4] - 8009f0e: 460b mov r3, r1 - 8009f10: 70fb strb r3, [r7, #3] + 8009fbe: b480 push {r7} + 8009fc0: b083 sub sp, #12 + 8009fc2: af00 add r7, sp, #0 + 8009fc4: 6078 str r0, [r7, #4] + 8009fc6: 460b mov r3, r1 + 8009fc8: 70fb strb r3, [r7, #3] return 0xFFU; #else UNUSED(pdev); UNUSED(index); return 0x00U; - 8009f12: 2300 movs r3, #0 + 8009fca: 2300 movs r3, #0 #endif /* USE_USBD_COMPOSITE */ } - 8009f14: 4618 mov r0, r3 - 8009f16: 370c adds r7, #12 - 8009f18: 46bd mov sp, r7 - 8009f1a: f85d 7b04 ldr.w r7, [sp], #4 - 8009f1e: 4770 bx lr + 8009fcc: 4618 mov r0, r3 + 8009fce: 370c adds r7, #12 + 8009fd0: 46bd mov sp, r7 + 8009fd2: f85d 7b04 ldr.w r7, [sp], #4 + 8009fd6: 4770 bx lr -08009f20 : +08009fd8 : * @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) { - 8009f20: b580 push {r7, lr} - 8009f22: b086 sub sp, #24 - 8009f24: af00 add r7, sp, #0 - 8009f26: 6078 str r0, [r7, #4] - 8009f28: 460b mov r3, r1 - 8009f2a: 70fb strb r3, [r7, #3] + 8009fd8: b580 push {r7, lr} + 8009fda: b086 sub sp, #24 + 8009fdc: af00 add r7, sp, #0 + 8009fde: 6078 str r0, [r7, #4] + 8009fe0: 460b mov r3, r1 + 8009fe2: 70fb strb r3, [r7, #3] USBD_DescHeaderTypeDef *pdesc = (USBD_DescHeaderTypeDef *)(void *)pConfDesc; - 8009f2c: 687b ldr r3, [r7, #4] - 8009f2e: 617b str r3, [r7, #20] + 8009fe4: 687b ldr r3, [r7, #4] + 8009fe6: 617b str r3, [r7, #20] USBD_ConfigDescTypeDef *desc = (USBD_ConfigDescTypeDef *)(void *)pConfDesc; - 8009f30: 687b ldr r3, [r7, #4] - 8009f32: 60fb str r3, [r7, #12] + 8009fe8: 687b ldr r3, [r7, #4] + 8009fea: 60fb str r3, [r7, #12] USBD_EpDescTypeDef *pEpDesc = NULL; - 8009f34: 2300 movs r3, #0 - 8009f36: 613b str r3, [r7, #16] + 8009fec: 2300 movs r3, #0 + 8009fee: 613b str r3, [r7, #16] uint16_t ptr; if (desc->wTotalLength > desc->bLength) - 8009f38: 68fb ldr r3, [r7, #12] - 8009f3a: 885b ldrh r3, [r3, #2] - 8009f3c: b29b uxth r3, r3 - 8009f3e: 68fa ldr r2, [r7, #12] - 8009f40: 7812 ldrb r2, [r2, #0] - 8009f42: 4293 cmp r3, r2 - 8009f44: d91f bls.n 8009f86 + 8009ff0: 68fb ldr r3, [r7, #12] + 8009ff2: 885b ldrh r3, [r3, #2] + 8009ff4: b29b uxth r3, r3 + 8009ff6: 68fa ldr r2, [r7, #12] + 8009ff8: 7812 ldrb r2, [r2, #0] + 8009ffa: 4293 cmp r3, r2 + 8009ffc: d91f bls.n 800a03e { ptr = desc->bLength; - 8009f46: 68fb ldr r3, [r7, #12] - 8009f48: 781b ldrb r3, [r3, #0] - 8009f4a: 817b strh r3, [r7, #10] + 8009ffe: 68fb ldr r3, [r7, #12] + 800a000: 781b ldrb r3, [r3, #0] + 800a002: 817b strh r3, [r7, #10] while (ptr < desc->wTotalLength) - 8009f4c: e013 b.n 8009f76 + 800a004: e013 b.n 800a02e { pdesc = USBD_GetNextDesc((uint8_t *)pdesc, &ptr); - 8009f4e: f107 030a add.w r3, r7, #10 - 8009f52: 4619 mov r1, r3 - 8009f54: 6978 ldr r0, [r7, #20] - 8009f56: f000 f81b bl 8009f90 - 8009f5a: 6178 str r0, [r7, #20] + 800a006: f107 030a add.w r3, r7, #10 + 800a00a: 4619 mov r1, r3 + 800a00c: 6978 ldr r0, [r7, #20] + 800a00e: f000 f81b bl 800a048 + 800a012: 6178 str r0, [r7, #20] if (pdesc->bDescriptorType == USB_DESC_TYPE_ENDPOINT) - 8009f5c: 697b ldr r3, [r7, #20] - 8009f5e: 785b ldrb r3, [r3, #1] - 8009f60: 2b05 cmp r3, #5 - 8009f62: d108 bne.n 8009f76 + 800a014: 697b ldr r3, [r7, #20] + 800a016: 785b ldrb r3, [r3, #1] + 800a018: 2b05 cmp r3, #5 + 800a01a: d108 bne.n 800a02e { pEpDesc = (USBD_EpDescTypeDef *)(void *)pdesc; - 8009f64: 697b ldr r3, [r7, #20] - 8009f66: 613b str r3, [r7, #16] + 800a01c: 697b ldr r3, [r7, #20] + 800a01e: 613b str r3, [r7, #16] if (pEpDesc->bEndpointAddress == EpAddr) - 8009f68: 693b ldr r3, [r7, #16] - 8009f6a: 789b ldrb r3, [r3, #2] - 8009f6c: 78fa ldrb r2, [r7, #3] - 8009f6e: 429a cmp r2, r3 - 8009f70: d008 beq.n 8009f84 + 800a020: 693b ldr r3, [r7, #16] + 800a022: 789b ldrb r3, [r3, #2] + 800a024: 78fa ldrb r2, [r7, #3] + 800a026: 429a cmp r2, r3 + 800a028: d008 beq.n 800a03c { break; } else { pEpDesc = NULL; - 8009f72: 2300 movs r3, #0 - 8009f74: 613b str r3, [r7, #16] + 800a02a: 2300 movs r3, #0 + 800a02c: 613b str r3, [r7, #16] while (ptr < desc->wTotalLength) - 8009f76: 68fb ldr r3, [r7, #12] - 8009f78: 885b ldrh r3, [r3, #2] - 8009f7a: b29a uxth r2, r3 - 8009f7c: 897b ldrh r3, [r7, #10] - 8009f7e: 429a cmp r2, r3 - 8009f80: d8e5 bhi.n 8009f4e - 8009f82: e000 b.n 8009f86 + 800a02e: 68fb ldr r3, [r7, #12] + 800a030: 885b ldrh r3, [r3, #2] + 800a032: b29a uxth r2, r3 + 800a034: 897b ldrh r3, [r7, #10] + 800a036: 429a cmp r2, r3 + 800a038: d8e5 bhi.n 800a006 + 800a03a: e000 b.n 800a03e break; - 8009f84: bf00 nop + 800a03c: bf00 nop } } } } return (void *)pEpDesc; - 8009f86: 693b ldr r3, [r7, #16] + 800a03e: 693b ldr r3, [r7, #16] } - 8009f88: 4618 mov r0, r3 - 8009f8a: 3718 adds r7, #24 - 8009f8c: 46bd mov sp, r7 - 8009f8e: bd80 pop {r7, pc} + 800a040: 4618 mov r0, r3 + 800a042: 3718 adds r7, #24 + 800a044: 46bd mov sp, r7 + 800a046: bd80 pop {r7, pc} -08009f90 : +0800a048 : * @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) { - 8009f90: b480 push {r7} - 8009f92: b085 sub sp, #20 - 8009f94: af00 add r7, sp, #0 - 8009f96: 6078 str r0, [r7, #4] - 8009f98: 6039 str r1, [r7, #0] + 800a048: b480 push {r7} + 800a04a: b085 sub sp, #20 + 800a04c: af00 add r7, sp, #0 + 800a04e: 6078 str r0, [r7, #4] + 800a050: 6039 str r1, [r7, #0] USBD_DescHeaderTypeDef *pnext = (USBD_DescHeaderTypeDef *)(void *)pbuf; - 8009f9a: 687b ldr r3, [r7, #4] - 8009f9c: 60fb str r3, [r7, #12] + 800a052: 687b ldr r3, [r7, #4] + 800a054: 60fb str r3, [r7, #12] *ptr += pnext->bLength; - 8009f9e: 683b ldr r3, [r7, #0] - 8009fa0: 881b ldrh r3, [r3, #0] - 8009fa2: 68fa ldr r2, [r7, #12] - 8009fa4: 7812 ldrb r2, [r2, #0] - 8009fa6: 4413 add r3, r2 - 8009fa8: b29a uxth r2, r3 - 8009faa: 683b ldr r3, [r7, #0] - 8009fac: 801a strh r2, [r3, #0] + 800a056: 683b ldr r3, [r7, #0] + 800a058: 881b ldrh r3, [r3, #0] + 800a05a: 68fa ldr r2, [r7, #12] + 800a05c: 7812 ldrb r2, [r2, #0] + 800a05e: 4413 add r3, r2 + 800a060: b29a uxth r2, r3 + 800a062: 683b ldr r3, [r7, #0] + 800a064: 801a strh r2, [r3, #0] pnext = (USBD_DescHeaderTypeDef *)(void *)(pbuf + pnext->bLength); - 8009fae: 68fb ldr r3, [r7, #12] - 8009fb0: 781b ldrb r3, [r3, #0] - 8009fb2: 461a mov r2, r3 - 8009fb4: 687b ldr r3, [r7, #4] - 8009fb6: 4413 add r3, r2 - 8009fb8: 60fb str r3, [r7, #12] + 800a066: 68fb ldr r3, [r7, #12] + 800a068: 781b ldrb r3, [r3, #0] + 800a06a: 461a mov r2, r3 + 800a06c: 687b ldr r3, [r7, #4] + 800a06e: 4413 add r3, r2 + 800a070: 60fb str r3, [r7, #12] return (pnext); - 8009fba: 68fb ldr r3, [r7, #12] + 800a072: 68fb ldr r3, [r7, #12] } - 8009fbc: 4618 mov r0, r3 - 8009fbe: 3714 adds r7, #20 - 8009fc0: 46bd mov sp, r7 - 8009fc2: f85d 7b04 ldr.w r7, [sp], #4 - 8009fc6: 4770 bx lr + 800a074: 4618 mov r0, r3 + 800a076: 3714 adds r7, #20 + 800a078: 46bd mov sp, r7 + 800a07a: f85d 7b04 ldr.w r7, [sp], #4 + 800a07e: 4770 bx lr -08009fc8 : +0800a080 : /** @defgroup USBD_DEF_Exported_Macros * @{ */ __STATIC_INLINE uint16_t SWAPBYTE(uint8_t *addr) { - 8009fc8: b480 push {r7} - 8009fca: b087 sub sp, #28 - 8009fcc: af00 add r7, sp, #0 - 8009fce: 6078 str r0, [r7, #4] + 800a080: b480 push {r7} + 800a082: b087 sub sp, #28 + 800a084: af00 add r7, sp, #0 + 800a086: 6078 str r0, [r7, #4] uint16_t _SwapVal; uint16_t _Byte1; uint16_t _Byte2; uint8_t *_pbuff = addr; - 8009fd0: 687b ldr r3, [r7, #4] - 8009fd2: 617b str r3, [r7, #20] + 800a088: 687b ldr r3, [r7, #4] + 800a08a: 617b str r3, [r7, #20] _Byte1 = *(uint8_t *)_pbuff; - 8009fd4: 697b ldr r3, [r7, #20] - 8009fd6: 781b ldrb r3, [r3, #0] - 8009fd8: 827b strh r3, [r7, #18] + 800a08c: 697b ldr r3, [r7, #20] + 800a08e: 781b ldrb r3, [r3, #0] + 800a090: 827b strh r3, [r7, #18] _pbuff++; - 8009fda: 697b ldr r3, [r7, #20] - 8009fdc: 3301 adds r3, #1 - 8009fde: 617b str r3, [r7, #20] + 800a092: 697b ldr r3, [r7, #20] + 800a094: 3301 adds r3, #1 + 800a096: 617b str r3, [r7, #20] _Byte2 = *(uint8_t *)_pbuff; - 8009fe0: 697b ldr r3, [r7, #20] - 8009fe2: 781b ldrb r3, [r3, #0] - 8009fe4: 823b strh r3, [r7, #16] + 800a098: 697b ldr r3, [r7, #20] + 800a09a: 781b ldrb r3, [r3, #0] + 800a09c: 823b strh r3, [r7, #16] _SwapVal = (_Byte2 << 8) | _Byte1; - 8009fe6: f9b7 3010 ldrsh.w r3, [r7, #16] - 8009fea: 021b lsls r3, r3, #8 - 8009fec: b21a sxth r2, r3 - 8009fee: f9b7 3012 ldrsh.w r3, [r7, #18] - 8009ff2: 4313 orrs r3, r2 - 8009ff4: b21b sxth r3, r3 - 8009ff6: 81fb strh r3, [r7, #14] + 800a09e: f9b7 3010 ldrsh.w r3, [r7, #16] + 800a0a2: 021b lsls r3, r3, #8 + 800a0a4: b21a sxth r2, r3 + 800a0a6: f9b7 3012 ldrsh.w r3, [r7, #18] + 800a0aa: 4313 orrs r3, r2 + 800a0ac: b21b sxth r3, r3 + 800a0ae: 81fb strh r3, [r7, #14] return _SwapVal; - 8009ff8: 89fb ldrh r3, [r7, #14] + 800a0b0: 89fb ldrh r3, [r7, #14] } - 8009ffa: 4618 mov r0, r3 - 8009ffc: 371c adds r7, #28 - 8009ffe: 46bd mov sp, r7 - 800a000: f85d 7b04 ldr.w r7, [sp], #4 - 800a004: 4770 bx lr + 800a0b2: 4618 mov r0, r3 + 800a0b4: 371c adds r7, #28 + 800a0b6: 46bd mov sp, r7 + 800a0b8: f85d 7b04 ldr.w r7, [sp], #4 + 800a0bc: 4770 bx lr ... -0800a008 : +0800a0c0 : * @param pdev: device instance * @param req: usb request * @retval status */ USBD_StatusTypeDef USBD_StdDevReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 800a008: b580 push {r7, lr} - 800a00a: b084 sub sp, #16 - 800a00c: af00 add r7, sp, #0 - 800a00e: 6078 str r0, [r7, #4] - 800a010: 6039 str r1, [r7, #0] + 800a0c0: b580 push {r7, lr} + 800a0c2: b084 sub sp, #16 + 800a0c4: af00 add r7, sp, #0 + 800a0c6: 6078 str r0, [r7, #4] + 800a0c8: 6039 str r1, [r7, #0] USBD_StatusTypeDef ret = USBD_OK; - 800a012: 2300 movs r3, #0 - 800a014: 73fb strb r3, [r7, #15] + 800a0ca: 2300 movs r3, #0 + 800a0cc: 73fb strb r3, [r7, #15] switch (req->bmRequest & USB_REQ_TYPE_MASK) - 800a016: 683b ldr r3, [r7, #0] - 800a018: 781b ldrb r3, [r3, #0] - 800a01a: f003 0360 and.w r3, r3, #96 @ 0x60 - 800a01e: 2b40 cmp r3, #64 @ 0x40 - 800a020: d005 beq.n 800a02e - 800a022: 2b40 cmp r3, #64 @ 0x40 - 800a024: d857 bhi.n 800a0d6 - 800a026: 2b00 cmp r3, #0 - 800a028: d00f beq.n 800a04a - 800a02a: 2b20 cmp r3, #32 - 800a02c: d153 bne.n 800a0d6 + 800a0ce: 683b ldr r3, [r7, #0] + 800a0d0: 781b ldrb r3, [r3, #0] + 800a0d2: f003 0360 and.w r3, r3, #96 @ 0x60 + 800a0d6: 2b40 cmp r3, #64 @ 0x40 + 800a0d8: d005 beq.n 800a0e6 + 800a0da: 2b40 cmp r3, #64 @ 0x40 + 800a0dc: d857 bhi.n 800a18e + 800a0de: 2b00 cmp r3, #0 + 800a0e0: d00f beq.n 800a102 + 800a0e2: 2b20 cmp r3, #32 + 800a0e4: d153 bne.n 800a18e { case USB_REQ_TYPE_CLASS: case USB_REQ_TYPE_VENDOR: ret = (USBD_StatusTypeDef)pdev->pClass[pdev->classId]->Setup(pdev, req); - 800a02e: 687b ldr r3, [r7, #4] - 800a030: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 - 800a034: 687b ldr r3, [r7, #4] - 800a036: 32ae adds r2, #174 @ 0xae - 800a038: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800a03c: 689b ldr r3, [r3, #8] - 800a03e: 6839 ldr r1, [r7, #0] - 800a040: 6878 ldr r0, [r7, #4] - 800a042: 4798 blx r3 - 800a044: 4603 mov r3, r0 - 800a046: 73fb strb r3, [r7, #15] + 800a0e6: 687b ldr r3, [r7, #4] + 800a0e8: f8d3 22d4 ldr.w r2, [r3, #724] @ 0x2d4 + 800a0ec: 687b ldr r3, [r7, #4] + 800a0ee: 32ae adds r2, #174 @ 0xae + 800a0f0: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800a0f4: 689b ldr r3, [r3, #8] + 800a0f6: 6839 ldr r1, [r7, #0] + 800a0f8: 6878 ldr r0, [r7, #4] + 800a0fa: 4798 blx r3 + 800a0fc: 4603 mov r3, r0 + 800a0fe: 73fb strb r3, [r7, #15] break; - 800a048: e04a b.n 800a0e0 + 800a100: e04a b.n 800a198 case USB_REQ_TYPE_STANDARD: switch (req->bRequest) - 800a04a: 683b ldr r3, [r7, #0] - 800a04c: 785b ldrb r3, [r3, #1] - 800a04e: 2b09 cmp r3, #9 - 800a050: d83b bhi.n 800a0ca - 800a052: a201 add r2, pc, #4 @ (adr r2, 800a058 ) - 800a054: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800a058: 0800a0ad .word 0x0800a0ad - 800a05c: 0800a0c1 .word 0x0800a0c1 - 800a060: 0800a0cb .word 0x0800a0cb - 800a064: 0800a0b7 .word 0x0800a0b7 - 800a068: 0800a0cb .word 0x0800a0cb - 800a06c: 0800a08b .word 0x0800a08b - 800a070: 0800a081 .word 0x0800a081 - 800a074: 0800a0cb .word 0x0800a0cb - 800a078: 0800a0a3 .word 0x0800a0a3 - 800a07c: 0800a095 .word 0x0800a095 + 800a102: 683b ldr r3, [r7, #0] + 800a104: 785b ldrb r3, [r3, #1] + 800a106: 2b09 cmp r3, #9 + 800a108: d83b bhi.n 800a182 + 800a10a: a201 add r2, pc, #4 @ (adr r2, 800a110 ) + 800a10c: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800a110: 0800a165 .word 0x0800a165 + 800a114: 0800a179 .word 0x0800a179 + 800a118: 0800a183 .word 0x0800a183 + 800a11c: 0800a16f .word 0x0800a16f + 800a120: 0800a183 .word 0x0800a183 + 800a124: 0800a143 .word 0x0800a143 + 800a128: 0800a139 .word 0x0800a139 + 800a12c: 0800a183 .word 0x0800a183 + 800a130: 0800a15b .word 0x0800a15b + 800a134: 0800a14d .word 0x0800a14d { case USB_REQ_GET_DESCRIPTOR: USBD_GetDescriptor(pdev, req); - 800a080: 6839 ldr r1, [r7, #0] - 800a082: 6878 ldr r0, [r7, #4] - 800a084: f000 fa3e bl 800a504 + 800a138: 6839 ldr r1, [r7, #0] + 800a13a: 6878 ldr r0, [r7, #4] + 800a13c: f000 fa3e bl 800a5bc break; - 800a088: e024 b.n 800a0d4 + 800a140: e024 b.n 800a18c case USB_REQ_SET_ADDRESS: USBD_SetAddress(pdev, req); - 800a08a: 6839 ldr r1, [r7, #0] - 800a08c: 6878 ldr r0, [r7, #4] - 800a08e: f000 fbcd bl 800a82c + 800a142: 6839 ldr r1, [r7, #0] + 800a144: 6878 ldr r0, [r7, #4] + 800a146: f000 fbcd bl 800a8e4 break; - 800a092: e01f b.n 800a0d4 + 800a14a: e01f b.n 800a18c case USB_REQ_SET_CONFIGURATION: ret = USBD_SetConfig(pdev, req); - 800a094: 6839 ldr r1, [r7, #0] - 800a096: 6878 ldr r0, [r7, #4] - 800a098: f000 fc0c bl 800a8b4 - 800a09c: 4603 mov r3, r0 - 800a09e: 73fb strb r3, [r7, #15] + 800a14c: 6839 ldr r1, [r7, #0] + 800a14e: 6878 ldr r0, [r7, #4] + 800a150: f000 fc0c bl 800a96c + 800a154: 4603 mov r3, r0 + 800a156: 73fb strb r3, [r7, #15] break; - 800a0a0: e018 b.n 800a0d4 + 800a158: e018 b.n 800a18c case USB_REQ_GET_CONFIGURATION: USBD_GetConfig(pdev, req); - 800a0a2: 6839 ldr r1, [r7, #0] - 800a0a4: 6878 ldr r0, [r7, #4] - 800a0a6: f000 fcaf bl 800aa08 + 800a15a: 6839 ldr r1, [r7, #0] + 800a15c: 6878 ldr r0, [r7, #4] + 800a15e: f000 fcaf bl 800aac0 break; - 800a0aa: e013 b.n 800a0d4 + 800a162: e013 b.n 800a18c case USB_REQ_GET_STATUS: USBD_GetStatus(pdev, req); - 800a0ac: 6839 ldr r1, [r7, #0] - 800a0ae: 6878 ldr r0, [r7, #4] - 800a0b0: f000 fce0 bl 800aa74 + 800a164: 6839 ldr r1, [r7, #0] + 800a166: 6878 ldr r0, [r7, #4] + 800a168: f000 fce0 bl 800ab2c break; - 800a0b4: e00e b.n 800a0d4 + 800a16c: e00e b.n 800a18c case USB_REQ_SET_FEATURE: USBD_SetFeature(pdev, req); - 800a0b6: 6839 ldr r1, [r7, #0] - 800a0b8: 6878 ldr r0, [r7, #4] - 800a0ba: f000 fd0f bl 800aadc + 800a16e: 6839 ldr r1, [r7, #0] + 800a170: 6878 ldr r0, [r7, #4] + 800a172: f000 fd0f bl 800ab94 break; - 800a0be: e009 b.n 800a0d4 + 800a176: e009 b.n 800a18c case USB_REQ_CLEAR_FEATURE: USBD_ClrFeature(pdev, req); - 800a0c0: 6839 ldr r1, [r7, #0] - 800a0c2: 6878 ldr r0, [r7, #4] - 800a0c4: f000 fd33 bl 800ab2e + 800a178: 6839 ldr r1, [r7, #0] + 800a17a: 6878 ldr r0, [r7, #4] + 800a17c: f000 fd33 bl 800abe6 break; - 800a0c8: e004 b.n 800a0d4 + 800a180: e004 b.n 800a18c default: USBD_CtlError(pdev, req); - 800a0ca: 6839 ldr r1, [r7, #0] - 800a0cc: 6878 ldr r0, [r7, #4] - 800a0ce: f000 fd8a bl 800abe6 + 800a182: 6839 ldr r1, [r7, #0] + 800a184: 6878 ldr r0, [r7, #4] + 800a186: f000 fd8a bl 800ac9e break; - 800a0d2: bf00 nop + 800a18a: bf00 nop } break; - 800a0d4: e004 b.n 800a0e0 + 800a18c: e004 b.n 800a198 default: USBD_CtlError(pdev, req); - 800a0d6: 6839 ldr r1, [r7, #0] - 800a0d8: 6878 ldr r0, [r7, #4] - 800a0da: f000 fd84 bl 800abe6 + 800a18e: 6839 ldr r1, [r7, #0] + 800a190: 6878 ldr r0, [r7, #4] + 800a192: f000 fd84 bl 800ac9e break; - 800a0de: bf00 nop + 800a196: bf00 nop } return ret; - 800a0e0: 7bfb ldrb r3, [r7, #15] + 800a198: 7bfb ldrb r3, [r7, #15] } - 800a0e2: 4618 mov r0, r3 - 800a0e4: 3710 adds r7, #16 - 800a0e6: 46bd mov sp, r7 - 800a0e8: bd80 pop {r7, pc} - 800a0ea: bf00 nop + 800a19a: 4618 mov r0, r3 + 800a19c: 3710 adds r7, #16 + 800a19e: 46bd mov sp, r7 + 800a1a0: bd80 pop {r7, pc} + 800a1a2: bf00 nop -0800a0ec : +0800a1a4 : * @param pdev: device instance * @param req: usb request * @retval status */ USBD_StatusTypeDef USBD_StdItfReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 800a0ec: b580 push {r7, lr} - 800a0ee: b084 sub sp, #16 - 800a0f0: af00 add r7, sp, #0 - 800a0f2: 6078 str r0, [r7, #4] - 800a0f4: 6039 str r1, [r7, #0] + 800a1a4: b580 push {r7, lr} + 800a1a6: b084 sub sp, #16 + 800a1a8: af00 add r7, sp, #0 + 800a1aa: 6078 str r0, [r7, #4] + 800a1ac: 6039 str r1, [r7, #0] USBD_StatusTypeDef ret = USBD_OK; - 800a0f6: 2300 movs r3, #0 - 800a0f8: 73fb strb r3, [r7, #15] + 800a1ae: 2300 movs r3, #0 + 800a1b0: 73fb strb r3, [r7, #15] uint8_t idx; switch (req->bmRequest & USB_REQ_TYPE_MASK) - 800a0fa: 683b ldr r3, [r7, #0] - 800a0fc: 781b ldrb r3, [r3, #0] - 800a0fe: f003 0360 and.w r3, r3, #96 @ 0x60 - 800a102: 2b40 cmp r3, #64 @ 0x40 - 800a104: d005 beq.n 800a112 - 800a106: 2b40 cmp r3, #64 @ 0x40 - 800a108: d852 bhi.n 800a1b0 - 800a10a: 2b00 cmp r3, #0 - 800a10c: d001 beq.n 800a112 - 800a10e: 2b20 cmp r3, #32 - 800a110: d14e bne.n 800a1b0 + 800a1b2: 683b ldr r3, [r7, #0] + 800a1b4: 781b ldrb r3, [r3, #0] + 800a1b6: f003 0360 and.w r3, r3, #96 @ 0x60 + 800a1ba: 2b40 cmp r3, #64 @ 0x40 + 800a1bc: d005 beq.n 800a1ca + 800a1be: 2b40 cmp r3, #64 @ 0x40 + 800a1c0: d852 bhi.n 800a268 + 800a1c2: 2b00 cmp r3, #0 + 800a1c4: d001 beq.n 800a1ca + 800a1c6: 2b20 cmp r3, #32 + 800a1c8: d14e bne.n 800a268 { case USB_REQ_TYPE_CLASS: case USB_REQ_TYPE_VENDOR: case USB_REQ_TYPE_STANDARD: switch (pdev->dev_state) - 800a112: 687b ldr r3, [r7, #4] - 800a114: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800a118: b2db uxtb r3, r3 - 800a11a: 3b01 subs r3, #1 - 800a11c: 2b02 cmp r3, #2 - 800a11e: d840 bhi.n 800a1a2 + 800a1ca: 687b ldr r3, [r7, #4] + 800a1cc: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800a1d0: b2db uxtb r3, r3 + 800a1d2: 3b01 subs r3, #1 + 800a1d4: 2b02 cmp r3, #2 + 800a1d6: d840 bhi.n 800a25a { case USBD_STATE_DEFAULT: case USBD_STATE_ADDRESSED: case USBD_STATE_CONFIGURED: if (LOBYTE(req->wIndex) <= USBD_MAX_NUM_INTERFACES) - 800a120: 683b ldr r3, [r7, #0] - 800a122: 889b ldrh r3, [r3, #4] - 800a124: b2db uxtb r3, r3 - 800a126: 2b01 cmp r3, #1 - 800a128: d836 bhi.n 800a198 + 800a1d8: 683b ldr r3, [r7, #0] + 800a1da: 889b ldrh r3, [r3, #4] + 800a1dc: b2db uxtb r3, r3 + 800a1de: 2b01 cmp r3, #1 + 800a1e0: d836 bhi.n 800a250 { /* Get the class index relative to this interface */ idx = USBD_CoreFindIF(pdev, LOBYTE(req->wIndex)); - 800a12a: 683b ldr r3, [r7, #0] - 800a12c: 889b ldrh r3, [r3, #4] - 800a12e: b2db uxtb r3, r3 - 800a130: 4619 mov r1, r3 - 800a132: 6878 ldr r0, [r7, #4] - 800a134: f7ff feda bl 8009eec - 800a138: 4603 mov r3, r0 - 800a13a: 73bb strb r3, [r7, #14] + 800a1e2: 683b ldr r3, [r7, #0] + 800a1e4: 889b ldrh r3, [r3, #4] + 800a1e6: b2db uxtb r3, r3 + 800a1e8: 4619 mov r1, r3 + 800a1ea: 6878 ldr r0, [r7, #4] + 800a1ec: f7ff feda bl 8009fa4 + 800a1f0: 4603 mov r3, r0 + 800a1f2: 73bb strb r3, [r7, #14] if (((uint8_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 800a13c: 7bbb ldrb r3, [r7, #14] - 800a13e: 2bff cmp r3, #255 @ 0xff - 800a140: d01d beq.n 800a17e - 800a142: 7bbb ldrb r3, [r7, #14] - 800a144: 2b00 cmp r3, #0 - 800a146: d11a bne.n 800a17e + 800a1f4: 7bbb ldrb r3, [r7, #14] + 800a1f6: 2bff cmp r3, #255 @ 0xff + 800a1f8: d01d beq.n 800a236 + 800a1fa: 7bbb ldrb r3, [r7, #14] + 800a1fc: 2b00 cmp r3, #0 + 800a1fe: d11a bne.n 800a236 { /* Call the class data out function to manage the request */ if (pdev->pClass[idx]->Setup != NULL) - 800a148: 7bba ldrb r2, [r7, #14] - 800a14a: 687b ldr r3, [r7, #4] - 800a14c: 32ae adds r2, #174 @ 0xae - 800a14e: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800a152: 689b ldr r3, [r3, #8] - 800a154: 2b00 cmp r3, #0 - 800a156: d00f beq.n 800a178 + 800a200: 7bba ldrb r2, [r7, #14] + 800a202: 687b ldr r3, [r7, #4] + 800a204: 32ae adds r2, #174 @ 0xae + 800a206: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800a20a: 689b ldr r3, [r3, #8] + 800a20c: 2b00 cmp r3, #0 + 800a20e: d00f beq.n 800a230 { pdev->classId = idx; - 800a158: 7bba ldrb r2, [r7, #14] - 800a15a: 687b ldr r3, [r7, #4] - 800a15c: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 800a210: 7bba ldrb r2, [r7, #14] + 800a212: 687b ldr r3, [r7, #4] + 800a214: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 ret = (USBD_StatusTypeDef)(pdev->pClass[idx]->Setup(pdev, req)); - 800a160: 7bba ldrb r2, [r7, #14] - 800a162: 687b ldr r3, [r7, #4] - 800a164: 32ae adds r2, #174 @ 0xae - 800a166: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800a16a: 689b ldr r3, [r3, #8] - 800a16c: 6839 ldr r1, [r7, #0] - 800a16e: 6878 ldr r0, [r7, #4] - 800a170: 4798 blx r3 - 800a172: 4603 mov r3, r0 - 800a174: 73fb strb r3, [r7, #15] + 800a218: 7bba ldrb r2, [r7, #14] + 800a21a: 687b ldr r3, [r7, #4] + 800a21c: 32ae adds r2, #174 @ 0xae + 800a21e: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800a222: 689b ldr r3, [r3, #8] + 800a224: 6839 ldr r1, [r7, #0] + 800a226: 6878 ldr r0, [r7, #4] + 800a228: 4798 blx r3 + 800a22a: 4603 mov r3, r0 + 800a22c: 73fb strb r3, [r7, #15] if (pdev->pClass[idx]->Setup != NULL) - 800a176: e004 b.n 800a182 + 800a22e: e004 b.n 800a23a } else { /* should never reach this condition */ ret = USBD_FAIL; - 800a178: 2303 movs r3, #3 - 800a17a: 73fb strb r3, [r7, #15] + 800a230: 2303 movs r3, #3 + 800a232: 73fb strb r3, [r7, #15] if (pdev->pClass[idx]->Setup != NULL) - 800a17c: e001 b.n 800a182 + 800a234: e001 b.n 800a23a } } else { /* No relative interface found */ ret = USBD_FAIL; - 800a17e: 2303 movs r3, #3 - 800a180: 73fb strb r3, [r7, #15] + 800a236: 2303 movs r3, #3 + 800a238: 73fb strb r3, [r7, #15] } if ((req->wLength == 0U) && (ret == USBD_OK)) - 800a182: 683b ldr r3, [r7, #0] - 800a184: 88db ldrh r3, [r3, #6] - 800a186: 2b00 cmp r3, #0 - 800a188: d110 bne.n 800a1ac - 800a18a: 7bfb ldrb r3, [r7, #15] - 800a18c: 2b00 cmp r3, #0 - 800a18e: d10d bne.n 800a1ac + 800a23a: 683b ldr r3, [r7, #0] + 800a23c: 88db ldrh r3, [r3, #6] + 800a23e: 2b00 cmp r3, #0 + 800a240: d110 bne.n 800a264 + 800a242: 7bfb ldrb r3, [r7, #15] + 800a244: 2b00 cmp r3, #0 + 800a246: d10d bne.n 800a264 { (void)USBD_CtlSendStatus(pdev); - 800a190: 6878 ldr r0, [r7, #4] - 800a192: f000 fde5 bl 800ad60 + 800a248: 6878 ldr r0, [r7, #4] + 800a24a: f000 fde5 bl 800ae18 } else { USBD_CtlError(pdev, req); } break; - 800a196: e009 b.n 800a1ac + 800a24e: e009 b.n 800a264 USBD_CtlError(pdev, req); - 800a198: 6839 ldr r1, [r7, #0] - 800a19a: 6878 ldr r0, [r7, #4] - 800a19c: f000 fd23 bl 800abe6 + 800a250: 6839 ldr r1, [r7, #0] + 800a252: 6878 ldr r0, [r7, #4] + 800a254: f000 fd23 bl 800ac9e break; - 800a1a0: e004 b.n 800a1ac + 800a258: e004 b.n 800a264 default: USBD_CtlError(pdev, req); - 800a1a2: 6839 ldr r1, [r7, #0] - 800a1a4: 6878 ldr r0, [r7, #4] - 800a1a6: f000 fd1e bl 800abe6 + 800a25a: 6839 ldr r1, [r7, #0] + 800a25c: 6878 ldr r0, [r7, #4] + 800a25e: f000 fd1e bl 800ac9e break; - 800a1aa: e000 b.n 800a1ae + 800a262: e000 b.n 800a266 break; - 800a1ac: bf00 nop + 800a264: bf00 nop } break; - 800a1ae: e004 b.n 800a1ba + 800a266: e004 b.n 800a272 default: USBD_CtlError(pdev, req); - 800a1b0: 6839 ldr r1, [r7, #0] - 800a1b2: 6878 ldr r0, [r7, #4] - 800a1b4: f000 fd17 bl 800abe6 + 800a268: 6839 ldr r1, [r7, #0] + 800a26a: 6878 ldr r0, [r7, #4] + 800a26c: f000 fd17 bl 800ac9e break; - 800a1b8: bf00 nop + 800a270: bf00 nop } return ret; - 800a1ba: 7bfb ldrb r3, [r7, #15] + 800a272: 7bfb ldrb r3, [r7, #15] } - 800a1bc: 4618 mov r0, r3 - 800a1be: 3710 adds r7, #16 - 800a1c0: 46bd mov sp, r7 - 800a1c2: bd80 pop {r7, pc} + 800a274: 4618 mov r0, r3 + 800a276: 3710 adds r7, #16 + 800a278: 46bd mov sp, r7 + 800a27a: bd80 pop {r7, pc} -0800a1c4 : +0800a27c : * @param pdev: device instance * @param req: usb request * @retval status */ USBD_StatusTypeDef USBD_StdEPReq(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 800a1c4: b580 push {r7, lr} - 800a1c6: b084 sub sp, #16 - 800a1c8: af00 add r7, sp, #0 - 800a1ca: 6078 str r0, [r7, #4] - 800a1cc: 6039 str r1, [r7, #0] + 800a27c: b580 push {r7, lr} + 800a27e: b084 sub sp, #16 + 800a280: af00 add r7, sp, #0 + 800a282: 6078 str r0, [r7, #4] + 800a284: 6039 str r1, [r7, #0] USBD_EndpointTypeDef *pep; uint8_t ep_addr; uint8_t idx; USBD_StatusTypeDef ret = USBD_OK; - 800a1ce: 2300 movs r3, #0 - 800a1d0: 73fb strb r3, [r7, #15] + 800a286: 2300 movs r3, #0 + 800a288: 73fb strb r3, [r7, #15] ep_addr = LOBYTE(req->wIndex); - 800a1d2: 683b ldr r3, [r7, #0] - 800a1d4: 889b ldrh r3, [r3, #4] - 800a1d6: 73bb strb r3, [r7, #14] + 800a28a: 683b ldr r3, [r7, #0] + 800a28c: 889b ldrh r3, [r3, #4] + 800a28e: 73bb strb r3, [r7, #14] switch (req->bmRequest & USB_REQ_TYPE_MASK) - 800a1d8: 683b ldr r3, [r7, #0] - 800a1da: 781b ldrb r3, [r3, #0] - 800a1dc: f003 0360 and.w r3, r3, #96 @ 0x60 - 800a1e0: 2b40 cmp r3, #64 @ 0x40 - 800a1e2: d007 beq.n 800a1f4 - 800a1e4: 2b40 cmp r3, #64 @ 0x40 - 800a1e6: f200 8181 bhi.w 800a4ec - 800a1ea: 2b00 cmp r3, #0 - 800a1ec: d02a beq.n 800a244 - 800a1ee: 2b20 cmp r3, #32 - 800a1f0: f040 817c bne.w 800a4ec + 800a290: 683b ldr r3, [r7, #0] + 800a292: 781b ldrb r3, [r3, #0] + 800a294: f003 0360 and.w r3, r3, #96 @ 0x60 + 800a298: 2b40 cmp r3, #64 @ 0x40 + 800a29a: d007 beq.n 800a2ac + 800a29c: 2b40 cmp r3, #64 @ 0x40 + 800a29e: f200 8181 bhi.w 800a5a4 + 800a2a2: 2b00 cmp r3, #0 + 800a2a4: d02a beq.n 800a2fc + 800a2a6: 2b20 cmp r3, #32 + 800a2a8: f040 817c bne.w 800a5a4 { case USB_REQ_TYPE_CLASS: case USB_REQ_TYPE_VENDOR: /* Get the class index relative to this endpoint */ idx = USBD_CoreFindEP(pdev, ep_addr); - 800a1f4: 7bbb ldrb r3, [r7, #14] - 800a1f6: 4619 mov r1, r3 - 800a1f8: 6878 ldr r0, [r7, #4] - 800a1fa: f7ff fe84 bl 8009f06 - 800a1fe: 4603 mov r3, r0 - 800a200: 737b strb r3, [r7, #13] + 800a2ac: 7bbb ldrb r3, [r7, #14] + 800a2ae: 4619 mov r1, r3 + 800a2b0: 6878 ldr r0, [r7, #4] + 800a2b2: f7ff fe84 bl 8009fbe + 800a2b6: 4603 mov r3, r0 + 800a2b8: 737b strb r3, [r7, #13] if (((uint8_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 800a202: 7b7b ldrb r3, [r7, #13] - 800a204: 2bff cmp r3, #255 @ 0xff - 800a206: f000 8176 beq.w 800a4f6 - 800a20a: 7b7b ldrb r3, [r7, #13] - 800a20c: 2b00 cmp r3, #0 - 800a20e: f040 8172 bne.w 800a4f6 + 800a2ba: 7b7b ldrb r3, [r7, #13] + 800a2bc: 2bff cmp r3, #255 @ 0xff + 800a2be: f000 8176 beq.w 800a5ae + 800a2c2: 7b7b ldrb r3, [r7, #13] + 800a2c4: 2b00 cmp r3, #0 + 800a2c6: f040 8172 bne.w 800a5ae { pdev->classId = idx; - 800a212: 7b7a ldrb r2, [r7, #13] - 800a214: 687b ldr r3, [r7, #4] - 800a216: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + 800a2ca: 7b7a ldrb r2, [r7, #13] + 800a2cc: 687b ldr r3, [r7, #4] + 800a2ce: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 /* Call the class data out function to manage the request */ if (pdev->pClass[idx]->Setup != NULL) - 800a21a: 7b7a ldrb r2, [r7, #13] - 800a21c: 687b ldr r3, [r7, #4] - 800a21e: 32ae adds r2, #174 @ 0xae - 800a220: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800a224: 689b ldr r3, [r3, #8] - 800a226: 2b00 cmp r3, #0 - 800a228: f000 8165 beq.w 800a4f6 + 800a2d2: 7b7a ldrb r2, [r7, #13] + 800a2d4: 687b ldr r3, [r7, #4] + 800a2d6: 32ae adds r2, #174 @ 0xae + 800a2d8: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800a2dc: 689b ldr r3, [r3, #8] + 800a2de: 2b00 cmp r3, #0 + 800a2e0: f000 8165 beq.w 800a5ae { ret = (USBD_StatusTypeDef)pdev->pClass[idx]->Setup(pdev, req); - 800a22c: 7b7a ldrb r2, [r7, #13] - 800a22e: 687b ldr r3, [r7, #4] - 800a230: 32ae adds r2, #174 @ 0xae - 800a232: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800a236: 689b ldr r3, [r3, #8] - 800a238: 6839 ldr r1, [r7, #0] - 800a23a: 6878 ldr r0, [r7, #4] - 800a23c: 4798 blx r3 - 800a23e: 4603 mov r3, r0 - 800a240: 73fb strb r3, [r7, #15] + 800a2e4: 7b7a ldrb r2, [r7, #13] + 800a2e6: 687b ldr r3, [r7, #4] + 800a2e8: 32ae adds r2, #174 @ 0xae + 800a2ea: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800a2ee: 689b ldr r3, [r3, #8] + 800a2f0: 6839 ldr r1, [r7, #0] + 800a2f2: 6878 ldr r0, [r7, #4] + 800a2f4: 4798 blx r3 + 800a2f6: 4603 mov r3, r0 + 800a2f8: 73fb strb r3, [r7, #15] } } break; - 800a242: e158 b.n 800a4f6 + 800a2fa: e158 b.n 800a5ae case USB_REQ_TYPE_STANDARD: switch (req->bRequest) - 800a244: 683b ldr r3, [r7, #0] - 800a246: 785b ldrb r3, [r3, #1] - 800a248: 2b03 cmp r3, #3 - 800a24a: d008 beq.n 800a25e - 800a24c: 2b03 cmp r3, #3 - 800a24e: f300 8147 bgt.w 800a4e0 - 800a252: 2b00 cmp r3, #0 - 800a254: f000 809b beq.w 800a38e - 800a258: 2b01 cmp r3, #1 - 800a25a: d03c beq.n 800a2d6 - 800a25c: e140 b.n 800a4e0 + 800a2fc: 683b ldr r3, [r7, #0] + 800a2fe: 785b ldrb r3, [r3, #1] + 800a300: 2b03 cmp r3, #3 + 800a302: d008 beq.n 800a316 + 800a304: 2b03 cmp r3, #3 + 800a306: f300 8147 bgt.w 800a598 + 800a30a: 2b00 cmp r3, #0 + 800a30c: f000 809b beq.w 800a446 + 800a310: 2b01 cmp r3, #1 + 800a312: d03c beq.n 800a38e + 800a314: e140 b.n 800a598 { case USB_REQ_SET_FEATURE: switch (pdev->dev_state) - 800a25e: 687b ldr r3, [r7, #4] - 800a260: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800a264: b2db uxtb r3, r3 - 800a266: 2b02 cmp r3, #2 - 800a268: d002 beq.n 800a270 - 800a26a: 2b03 cmp r3, #3 - 800a26c: d016 beq.n 800a29c - 800a26e: e02c b.n 800a2ca + 800a316: 687b ldr r3, [r7, #4] + 800a318: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800a31c: b2db uxtb r3, r3 + 800a31e: 2b02 cmp r3, #2 + 800a320: d002 beq.n 800a328 + 800a322: 2b03 cmp r3, #3 + 800a324: d016 beq.n 800a354 + 800a326: e02c b.n 800a382 { case USBD_STATE_ADDRESSED: if ((ep_addr != 0x00U) && (ep_addr != 0x80U)) - 800a270: 7bbb ldrb r3, [r7, #14] - 800a272: 2b00 cmp r3, #0 - 800a274: d00d beq.n 800a292 - 800a276: 7bbb ldrb r3, [r7, #14] - 800a278: 2b80 cmp r3, #128 @ 0x80 - 800a27a: d00a beq.n 800a292 + 800a328: 7bbb ldrb r3, [r7, #14] + 800a32a: 2b00 cmp r3, #0 + 800a32c: d00d beq.n 800a34a + 800a32e: 7bbb ldrb r3, [r7, #14] + 800a330: 2b80 cmp r3, #128 @ 0x80 + 800a332: d00a beq.n 800a34a { (void)USBD_LL_StallEP(pdev, ep_addr); - 800a27c: 7bbb ldrb r3, [r7, #14] - 800a27e: 4619 mov r1, r3 - 800a280: 6878 ldr r0, [r7, #4] - 800a282: f001 f8e3 bl 800b44c + 800a334: 7bbb ldrb r3, [r7, #14] + 800a336: 4619 mov r1, r3 + 800a338: 6878 ldr r0, [r7, #4] + 800a33a: f001 f8e3 bl 800b504 (void)USBD_LL_StallEP(pdev, 0x80U); - 800a286: 2180 movs r1, #128 @ 0x80 - 800a288: 6878 ldr r0, [r7, #4] - 800a28a: f001 f8df bl 800b44c - 800a28e: bf00 nop + 800a33e: 2180 movs r1, #128 @ 0x80 + 800a340: 6878 ldr r0, [r7, #4] + 800a342: f001 f8df bl 800b504 + 800a346: bf00 nop } else { USBD_CtlError(pdev, req); } break; - 800a290: e020 b.n 800a2d4 + 800a348: e020 b.n 800a38c USBD_CtlError(pdev, req); - 800a292: 6839 ldr r1, [r7, #0] - 800a294: 6878 ldr r0, [r7, #4] - 800a296: f000 fca6 bl 800abe6 + 800a34a: 6839 ldr r1, [r7, #0] + 800a34c: 6878 ldr r0, [r7, #4] + 800a34e: f000 fca6 bl 800ac9e break; - 800a29a: e01b b.n 800a2d4 + 800a352: e01b b.n 800a38c case USBD_STATE_CONFIGURED: if (req->wValue == USB_FEATURE_EP_HALT) - 800a29c: 683b ldr r3, [r7, #0] - 800a29e: 885b ldrh r3, [r3, #2] - 800a2a0: 2b00 cmp r3, #0 - 800a2a2: d10e bne.n 800a2c2 + 800a354: 683b ldr r3, [r7, #0] + 800a356: 885b ldrh r3, [r3, #2] + 800a358: 2b00 cmp r3, #0 + 800a35a: d10e bne.n 800a37a { if ((ep_addr != 0x00U) && (ep_addr != 0x80U) && (req->wLength == 0x00U)) - 800a2a4: 7bbb ldrb r3, [r7, #14] - 800a2a6: 2b00 cmp r3, #0 - 800a2a8: d00b beq.n 800a2c2 - 800a2aa: 7bbb ldrb r3, [r7, #14] - 800a2ac: 2b80 cmp r3, #128 @ 0x80 - 800a2ae: d008 beq.n 800a2c2 - 800a2b0: 683b ldr r3, [r7, #0] - 800a2b2: 88db ldrh r3, [r3, #6] - 800a2b4: 2b00 cmp r3, #0 - 800a2b6: d104 bne.n 800a2c2 + 800a35c: 7bbb ldrb r3, [r7, #14] + 800a35e: 2b00 cmp r3, #0 + 800a360: d00b beq.n 800a37a + 800a362: 7bbb ldrb r3, [r7, #14] + 800a364: 2b80 cmp r3, #128 @ 0x80 + 800a366: d008 beq.n 800a37a + 800a368: 683b ldr r3, [r7, #0] + 800a36a: 88db ldrh r3, [r3, #6] + 800a36c: 2b00 cmp r3, #0 + 800a36e: d104 bne.n 800a37a { (void)USBD_LL_StallEP(pdev, ep_addr); - 800a2b8: 7bbb ldrb r3, [r7, #14] - 800a2ba: 4619 mov r1, r3 - 800a2bc: 6878 ldr r0, [r7, #4] - 800a2be: f001 f8c5 bl 800b44c + 800a370: 7bbb ldrb r3, [r7, #14] + 800a372: 4619 mov r1, r3 + 800a374: 6878 ldr r0, [r7, #4] + 800a376: f001 f8c5 bl 800b504 } } (void)USBD_CtlSendStatus(pdev); - 800a2c2: 6878 ldr r0, [r7, #4] - 800a2c4: f000 fd4c bl 800ad60 + 800a37a: 6878 ldr r0, [r7, #4] + 800a37c: f000 fd4c bl 800ae18 break; - 800a2c8: e004 b.n 800a2d4 + 800a380: e004 b.n 800a38c default: USBD_CtlError(pdev, req); - 800a2ca: 6839 ldr r1, [r7, #0] - 800a2cc: 6878 ldr r0, [r7, #4] - 800a2ce: f000 fc8a bl 800abe6 - break; - 800a2d2: bf00 nop - } - break; - 800a2d4: e109 b.n 800a4ea - - case USB_REQ_CLEAR_FEATURE: - - switch (pdev->dev_state) - 800a2d6: 687b ldr r3, [r7, #4] - 800a2d8: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800a2dc: b2db uxtb r3, r3 - 800a2de: 2b02 cmp r3, #2 - 800a2e0: d002 beq.n 800a2e8 - 800a2e2: 2b03 cmp r3, #3 - 800a2e4: d016 beq.n 800a314 - 800a2e6: e04b b.n 800a380 - { - case USBD_STATE_ADDRESSED: - if ((ep_addr != 0x00U) && (ep_addr != 0x80U)) - 800a2e8: 7bbb ldrb r3, [r7, #14] - 800a2ea: 2b00 cmp r3, #0 - 800a2ec: d00d beq.n 800a30a - 800a2ee: 7bbb ldrb r3, [r7, #14] - 800a2f0: 2b80 cmp r3, #128 @ 0x80 - 800a2f2: d00a beq.n 800a30a - { - (void)USBD_LL_StallEP(pdev, ep_addr); - 800a2f4: 7bbb ldrb r3, [r7, #14] - 800a2f6: 4619 mov r1, r3 - 800a2f8: 6878 ldr r0, [r7, #4] - 800a2fa: f001 f8a7 bl 800b44c - (void)USBD_LL_StallEP(pdev, 0x80U); - 800a2fe: 2180 movs r1, #128 @ 0x80 - 800a300: 6878 ldr r0, [r7, #4] - 800a302: f001 f8a3 bl 800b44c - 800a306: bf00 nop - } - else - { - USBD_CtlError(pdev, req); - } - break; - 800a308: e040 b.n 800a38c - USBD_CtlError(pdev, req); - 800a30a: 6839 ldr r1, [r7, #0] - 800a30c: 6878 ldr r0, [r7, #4] - 800a30e: f000 fc6a bl 800abe6 - break; - 800a312: e03b b.n 800a38c - - case USBD_STATE_CONFIGURED: - if (req->wValue == USB_FEATURE_EP_HALT) - 800a314: 683b ldr r3, [r7, #0] - 800a316: 885b ldrh r3, [r3, #2] - 800a318: 2b00 cmp r3, #0 - 800a31a: d136 bne.n 800a38a - { - if ((ep_addr & 0x7FU) != 0x00U) - 800a31c: 7bbb ldrb r3, [r7, #14] - 800a31e: f003 037f and.w r3, r3, #127 @ 0x7f - 800a322: 2b00 cmp r3, #0 - 800a324: d004 beq.n 800a330 - { - (void)USBD_LL_ClearStallEP(pdev, ep_addr); - 800a326: 7bbb ldrb r3, [r7, #14] - 800a328: 4619 mov r1, r3 - 800a32a: 6878 ldr r0, [r7, #4] - 800a32c: f001 f8ad bl 800b48a - } - (void)USBD_CtlSendStatus(pdev); - 800a330: 6878 ldr r0, [r7, #4] - 800a332: f000 fd15 bl 800ad60 - - /* Get the class index relative to this interface */ - idx = USBD_CoreFindEP(pdev, ep_addr); - 800a336: 7bbb ldrb r3, [r7, #14] - 800a338: 4619 mov r1, r3 - 800a33a: 6878 ldr r0, [r7, #4] - 800a33c: f7ff fde3 bl 8009f06 - 800a340: 4603 mov r3, r0 - 800a342: 737b strb r3, [r7, #13] - if (((uint8_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) - 800a344: 7b7b ldrb r3, [r7, #13] - 800a346: 2bff cmp r3, #255 @ 0xff - 800a348: d01f beq.n 800a38a - 800a34a: 7b7b ldrb r3, [r7, #13] - 800a34c: 2b00 cmp r3, #0 - 800a34e: d11c bne.n 800a38a - { - pdev->classId = idx; - 800a350: 7b7a ldrb r2, [r7, #13] - 800a352: 687b ldr r3, [r7, #4] - 800a354: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 - /* Call the class data out function to manage the request */ - if (pdev->pClass[idx]->Setup != NULL) - 800a358: 7b7a ldrb r2, [r7, #13] - 800a35a: 687b ldr r3, [r7, #4] - 800a35c: 32ae adds r2, #174 @ 0xae - 800a35e: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800a362: 689b ldr r3, [r3, #8] - 800a364: 2b00 cmp r3, #0 - 800a366: d010 beq.n 800a38a - { - ret = (USBD_StatusTypeDef)(pdev->pClass[idx]->Setup(pdev, req)); - 800a368: 7b7a ldrb r2, [r7, #13] - 800a36a: 687b ldr r3, [r7, #4] - 800a36c: 32ae adds r2, #174 @ 0xae - 800a36e: f853 3022 ldr.w r3, [r3, r2, lsl #2] - 800a372: 689b ldr r3, [r3, #8] - 800a374: 6839 ldr r1, [r7, #0] - 800a376: 6878 ldr r0, [r7, #4] - 800a378: 4798 blx r3 - 800a37a: 4603 mov r3, r0 - 800a37c: 73fb strb r3, [r7, #15] - } - } - } - break; - 800a37e: e004 b.n 800a38a - - default: - USBD_CtlError(pdev, req); - 800a380: 6839 ldr r1, [r7, #0] - 800a382: 6878 ldr r0, [r7, #4] - 800a384: f000 fc2f bl 800abe6 - break; - 800a388: e000 b.n 800a38c + 800a382: 6839 ldr r1, [r7, #0] + 800a384: 6878 ldr r0, [r7, #4] + 800a386: f000 fc8a bl 800ac9e break; 800a38a: bf00 nop } break; - 800a38c: e0ad b.n 800a4ea + 800a38c: e109 b.n 800a5a2 + + case USB_REQ_CLEAR_FEATURE: - case USB_REQ_GET_STATUS: switch (pdev->dev_state) 800a38e: 687b ldr r3, [r7, #4] 800a390: f893 329c ldrb.w r3, [r3, #668] @ 0x29c 800a394: b2db uxtb r3, r3 800a396: 2b02 cmp r3, #2 - 800a398: d002 beq.n 800a3a0 + 800a398: d002 beq.n 800a3a0 800a39a: 2b03 cmp r3, #3 - 800a39c: d033 beq.n 800a406 - 800a39e: e099 b.n 800a4d4 + 800a39c: d016 beq.n 800a3cc + 800a39e: e04b b.n 800a438 { case USBD_STATE_ADDRESSED: if ((ep_addr != 0x00U) && (ep_addr != 0x80U)) 800a3a0: 7bbb ldrb r3, [r7, #14] 800a3a2: 2b00 cmp r3, #0 - 800a3a4: d007 beq.n 800a3b6 + 800a3a4: d00d beq.n 800a3c2 800a3a6: 7bbb ldrb r3, [r7, #14] 800a3a8: 2b80 cmp r3, #128 @ 0x80 - 800a3aa: d004 beq.n 800a3b6 + 800a3aa: d00a beq.n 800a3c2 + { + (void)USBD_LL_StallEP(pdev, ep_addr); + 800a3ac: 7bbb ldrb r3, [r7, #14] + 800a3ae: 4619 mov r1, r3 + 800a3b0: 6878 ldr r0, [r7, #4] + 800a3b2: f001 f8a7 bl 800b504 + (void)USBD_LL_StallEP(pdev, 0x80U); + 800a3b6: 2180 movs r1, #128 @ 0x80 + 800a3b8: 6878 ldr r0, [r7, #4] + 800a3ba: f001 f8a3 bl 800b504 + 800a3be: bf00 nop + } + else { USBD_CtlError(pdev, req); - 800a3ac: 6839 ldr r1, [r7, #0] - 800a3ae: 6878 ldr r0, [r7, #4] - 800a3b0: f000 fc19 bl 800abe6 + } + break; + 800a3c0: e040 b.n 800a444 + USBD_CtlError(pdev, req); + 800a3c2: 6839 ldr r1, [r7, #0] + 800a3c4: 6878 ldr r0, [r7, #4] + 800a3c6: f000 fc6a bl 800ac9e + break; + 800a3ca: e03b b.n 800a444 + + case USBD_STATE_CONFIGURED: + if (req->wValue == USB_FEATURE_EP_HALT) + 800a3cc: 683b ldr r3, [r7, #0] + 800a3ce: 885b ldrh r3, [r3, #2] + 800a3d0: 2b00 cmp r3, #0 + 800a3d2: d136 bne.n 800a442 + { + if ((ep_addr & 0x7FU) != 0x00U) + 800a3d4: 7bbb ldrb r3, [r7, #14] + 800a3d6: f003 037f and.w r3, r3, #127 @ 0x7f + 800a3da: 2b00 cmp r3, #0 + 800a3dc: d004 beq.n 800a3e8 + { + (void)USBD_LL_ClearStallEP(pdev, ep_addr); + 800a3de: 7bbb ldrb r3, [r7, #14] + 800a3e0: 4619 mov r1, r3 + 800a3e2: 6878 ldr r0, [r7, #4] + 800a3e4: f001 f8ad bl 800b542 + } + (void)USBD_CtlSendStatus(pdev); + 800a3e8: 6878 ldr r0, [r7, #4] + 800a3ea: f000 fd15 bl 800ae18 + + /* Get the class index relative to this interface */ + idx = USBD_CoreFindEP(pdev, ep_addr); + 800a3ee: 7bbb ldrb r3, [r7, #14] + 800a3f0: 4619 mov r1, r3 + 800a3f2: 6878 ldr r0, [r7, #4] + 800a3f4: f7ff fde3 bl 8009fbe + 800a3f8: 4603 mov r3, r0 + 800a3fa: 737b strb r3, [r7, #13] + if (((uint8_t)idx != 0xFFU) && (idx < USBD_MAX_SUPPORTED_CLASS)) + 800a3fc: 7b7b ldrb r3, [r7, #13] + 800a3fe: 2bff cmp r3, #255 @ 0xff + 800a400: d01f beq.n 800a442 + 800a402: 7b7b ldrb r3, [r7, #13] + 800a404: 2b00 cmp r3, #0 + 800a406: d11c bne.n 800a442 + { + pdev->classId = idx; + 800a408: 7b7a ldrb r2, [r7, #13] + 800a40a: 687b ldr r3, [r7, #4] + 800a40c: f8c3 22d4 str.w r2, [r3, #724] @ 0x2d4 + /* Call the class data out function to manage the request */ + if (pdev->pClass[idx]->Setup != NULL) + 800a410: 7b7a ldrb r2, [r7, #13] + 800a412: 687b ldr r3, [r7, #4] + 800a414: 32ae adds r2, #174 @ 0xae + 800a416: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800a41a: 689b ldr r3, [r3, #8] + 800a41c: 2b00 cmp r3, #0 + 800a41e: d010 beq.n 800a442 + { + ret = (USBD_StatusTypeDef)(pdev->pClass[idx]->Setup(pdev, req)); + 800a420: 7b7a ldrb r2, [r7, #13] + 800a422: 687b ldr r3, [r7, #4] + 800a424: 32ae adds r2, #174 @ 0xae + 800a426: f853 3022 ldr.w r3, [r3, r2, lsl #2] + 800a42a: 689b ldr r3, [r3, #8] + 800a42c: 6839 ldr r1, [r7, #0] + 800a42e: 6878 ldr r0, [r7, #4] + 800a430: 4798 blx r3 + 800a432: 4603 mov r3, r0 + 800a434: 73fb strb r3, [r7, #15] + } + } + } + break; + 800a436: e004 b.n 800a442 + + default: + USBD_CtlError(pdev, req); + 800a438: 6839 ldr r1, [r7, #0] + 800a43a: 6878 ldr r0, [r7, #4] + 800a43c: f000 fc2f bl 800ac9e + break; + 800a440: e000 b.n 800a444 + break; + 800a442: bf00 nop + } + break; + 800a444: e0ad b.n 800a5a2 + + case USB_REQ_GET_STATUS: + switch (pdev->dev_state) + 800a446: 687b ldr r3, [r7, #4] + 800a448: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800a44c: b2db uxtb r3, r3 + 800a44e: 2b02 cmp r3, #2 + 800a450: d002 beq.n 800a458 + 800a452: 2b03 cmp r3, #3 + 800a454: d033 beq.n 800a4be + 800a456: e099 b.n 800a58c + { + case USBD_STATE_ADDRESSED: + if ((ep_addr != 0x00U) && (ep_addr != 0x80U)) + 800a458: 7bbb ldrb r3, [r7, #14] + 800a45a: 2b00 cmp r3, #0 + 800a45c: d007 beq.n 800a46e + 800a45e: 7bbb ldrb r3, [r7, #14] + 800a460: 2b80 cmp r3, #128 @ 0x80 + 800a462: d004 beq.n 800a46e + { + USBD_CtlError(pdev, req); + 800a464: 6839 ldr r1, [r7, #0] + 800a466: 6878 ldr r0, [r7, #4] + 800a468: f000 fc19 bl 800ac9e break; - 800a3b4: e093 b.n 800a4de + 800a46c: e093 b.n 800a596 } pep = ((ep_addr & 0x80U) == 0x80U) ? &pdev->ep_in[ep_addr & 0x7FU] : \ - 800a3b6: f997 300e ldrsb.w r3, [r7, #14] - 800a3ba: 2b00 cmp r3, #0 - 800a3bc: da0b bge.n 800a3d6 - 800a3be: 7bbb ldrb r3, [r7, #14] - 800a3c0: f003 027f and.w r2, r3, #127 @ 0x7f - 800a3c4: 4613 mov r3, r2 - 800a3c6: 009b lsls r3, r3, #2 - 800a3c8: 4413 add r3, r2 - 800a3ca: 009b lsls r3, r3, #2 - 800a3cc: 3310 adds r3, #16 - 800a3ce: 687a ldr r2, [r7, #4] - 800a3d0: 4413 add r3, r2 - 800a3d2: 3304 adds r3, #4 - 800a3d4: e00b b.n 800a3ee + 800a46e: f997 300e ldrsb.w r3, [r7, #14] + 800a472: 2b00 cmp r3, #0 + 800a474: da0b bge.n 800a48e + 800a476: 7bbb ldrb r3, [r7, #14] + 800a478: f003 027f and.w r2, r3, #127 @ 0x7f + 800a47c: 4613 mov r3, r2 + 800a47e: 009b lsls r3, r3, #2 + 800a480: 4413 add r3, r2 + 800a482: 009b lsls r3, r3, #2 + 800a484: 3310 adds r3, #16 + 800a486: 687a ldr r2, [r7, #4] + 800a488: 4413 add r3, r2 + 800a48a: 3304 adds r3, #4 + 800a48c: e00b b.n 800a4a6 &pdev->ep_out[ep_addr & 0x7FU]; - 800a3d6: 7bbb ldrb r3, [r7, #14] - 800a3d8: f003 027f and.w r2, r3, #127 @ 0x7f + 800a48e: 7bbb ldrb r3, [r7, #14] + 800a490: f003 027f and.w r2, r3, #127 @ 0x7f pep = ((ep_addr & 0x80U) == 0x80U) ? &pdev->ep_in[ep_addr & 0x7FU] : \ - 800a3dc: 4613 mov r3, r2 - 800a3de: 009b lsls r3, r3, #2 - 800a3e0: 4413 add r3, r2 - 800a3e2: 009b lsls r3, r3, #2 - 800a3e4: f503 73a8 add.w r3, r3, #336 @ 0x150 - 800a3e8: 687a ldr r2, [r7, #4] - 800a3ea: 4413 add r3, r2 - 800a3ec: 3304 adds r3, #4 - 800a3ee: 60bb str r3, [r7, #8] + 800a494: 4613 mov r3, r2 + 800a496: 009b lsls r3, r3, #2 + 800a498: 4413 add r3, r2 + 800a49a: 009b lsls r3, r3, #2 + 800a49c: f503 73a8 add.w r3, r3, #336 @ 0x150 + 800a4a0: 687a ldr r2, [r7, #4] + 800a4a2: 4413 add r3, r2 + 800a4a4: 3304 adds r3, #4 + 800a4a6: 60bb str r3, [r7, #8] pep->status = 0x0000U; - 800a3f0: 68bb ldr r3, [r7, #8] - 800a3f2: 2200 movs r2, #0 - 800a3f4: 739a strb r2, [r3, #14] + 800a4a8: 68bb ldr r3, [r7, #8] + 800a4aa: 2200 movs r2, #0 + 800a4ac: 739a strb r2, [r3, #14] (void)USBD_CtlSendData(pdev, (uint8_t *)&pep->status, 2U); - 800a3f6: 68bb ldr r3, [r7, #8] - 800a3f8: 330e adds r3, #14 - 800a3fa: 2202 movs r2, #2 - 800a3fc: 4619 mov r1, r3 - 800a3fe: 6878 ldr r0, [r7, #4] - 800a400: f000 fc6e bl 800ace0 + 800a4ae: 68bb ldr r3, [r7, #8] + 800a4b0: 330e adds r3, #14 + 800a4b2: 2202 movs r2, #2 + 800a4b4: 4619 mov r1, r3 + 800a4b6: 6878 ldr r0, [r7, #4] + 800a4b8: f000 fc6e bl 800ad98 break; - 800a404: e06b b.n 800a4de + 800a4bc: e06b b.n 800a596 case USBD_STATE_CONFIGURED: if ((ep_addr & 0x80U) == 0x80U) - 800a406: f997 300e ldrsb.w r3, [r7, #14] - 800a40a: 2b00 cmp r3, #0 - 800a40c: da11 bge.n 800a432 + 800a4be: f997 300e ldrsb.w r3, [r7, #14] + 800a4c2: 2b00 cmp r3, #0 + 800a4c4: da11 bge.n 800a4ea { if (pdev->ep_in[ep_addr & 0xFU].is_used == 0U) - 800a40e: 7bbb ldrb r3, [r7, #14] - 800a410: f003 020f and.w r2, r3, #15 - 800a414: 6879 ldr r1, [r7, #4] - 800a416: 4613 mov r3, r2 - 800a418: 009b lsls r3, r3, #2 - 800a41a: 4413 add r3, r2 - 800a41c: 009b lsls r3, r3, #2 - 800a41e: 440b add r3, r1 - 800a420: 3323 adds r3, #35 @ 0x23 - 800a422: 781b ldrb r3, [r3, #0] - 800a424: 2b00 cmp r3, #0 - 800a426: d117 bne.n 800a458 + 800a4c6: 7bbb ldrb r3, [r7, #14] + 800a4c8: f003 020f and.w r2, r3, #15 + 800a4cc: 6879 ldr r1, [r7, #4] + 800a4ce: 4613 mov r3, r2 + 800a4d0: 009b lsls r3, r3, #2 + 800a4d2: 4413 add r3, r2 + 800a4d4: 009b lsls r3, r3, #2 + 800a4d6: 440b add r3, r1 + 800a4d8: 3323 adds r3, #35 @ 0x23 + 800a4da: 781b ldrb r3, [r3, #0] + 800a4dc: 2b00 cmp r3, #0 + 800a4de: d117 bne.n 800a510 { USBD_CtlError(pdev, req); - 800a428: 6839 ldr r1, [r7, #0] - 800a42a: 6878 ldr r0, [r7, #4] - 800a42c: f000 fbdb bl 800abe6 + 800a4e0: 6839 ldr r1, [r7, #0] + 800a4e2: 6878 ldr r0, [r7, #4] + 800a4e4: f000 fbdb bl 800ac9e break; - 800a430: e055 b.n 800a4de + 800a4e8: e055 b.n 800a596 } } else { if (pdev->ep_out[ep_addr & 0xFU].is_used == 0U) - 800a432: 7bbb ldrb r3, [r7, #14] - 800a434: f003 020f and.w r2, r3, #15 - 800a438: 6879 ldr r1, [r7, #4] - 800a43a: 4613 mov r3, r2 - 800a43c: 009b lsls r3, r3, #2 - 800a43e: 4413 add r3, r2 - 800a440: 009b lsls r3, r3, #2 - 800a442: 440b add r3, r1 - 800a444: f203 1363 addw r3, r3, #355 @ 0x163 - 800a448: 781b ldrb r3, [r3, #0] - 800a44a: 2b00 cmp r3, #0 - 800a44c: d104 bne.n 800a458 + 800a4ea: 7bbb ldrb r3, [r7, #14] + 800a4ec: f003 020f and.w r2, r3, #15 + 800a4f0: 6879 ldr r1, [r7, #4] + 800a4f2: 4613 mov r3, r2 + 800a4f4: 009b lsls r3, r3, #2 + 800a4f6: 4413 add r3, r2 + 800a4f8: 009b lsls r3, r3, #2 + 800a4fa: 440b add r3, r1 + 800a4fc: f203 1363 addw r3, r3, #355 @ 0x163 + 800a500: 781b ldrb r3, [r3, #0] + 800a502: 2b00 cmp r3, #0 + 800a504: d104 bne.n 800a510 { USBD_CtlError(pdev, req); - 800a44e: 6839 ldr r1, [r7, #0] - 800a450: 6878 ldr r0, [r7, #4] - 800a452: f000 fbc8 bl 800abe6 + 800a506: 6839 ldr r1, [r7, #0] + 800a508: 6878 ldr r0, [r7, #4] + 800a50a: f000 fbc8 bl 800ac9e break; - 800a456: e042 b.n 800a4de + 800a50e: e042 b.n 800a596 } } pep = ((ep_addr & 0x80U) == 0x80U) ? &pdev->ep_in[ep_addr & 0x7FU] : \ - 800a458: f997 300e ldrsb.w r3, [r7, #14] - 800a45c: 2b00 cmp r3, #0 - 800a45e: da0b bge.n 800a478 - 800a460: 7bbb ldrb r3, [r7, #14] - 800a462: f003 027f and.w r2, r3, #127 @ 0x7f - 800a466: 4613 mov r3, r2 - 800a468: 009b lsls r3, r3, #2 - 800a46a: 4413 add r3, r2 - 800a46c: 009b lsls r3, r3, #2 - 800a46e: 3310 adds r3, #16 - 800a470: 687a ldr r2, [r7, #4] - 800a472: 4413 add r3, r2 - 800a474: 3304 adds r3, #4 - 800a476: e00b b.n 800a490 + 800a510: f997 300e ldrsb.w r3, [r7, #14] + 800a514: 2b00 cmp r3, #0 + 800a516: da0b bge.n 800a530 + 800a518: 7bbb ldrb r3, [r7, #14] + 800a51a: f003 027f and.w r2, r3, #127 @ 0x7f + 800a51e: 4613 mov r3, r2 + 800a520: 009b lsls r3, r3, #2 + 800a522: 4413 add r3, r2 + 800a524: 009b lsls r3, r3, #2 + 800a526: 3310 adds r3, #16 + 800a528: 687a ldr r2, [r7, #4] + 800a52a: 4413 add r3, r2 + 800a52c: 3304 adds r3, #4 + 800a52e: e00b b.n 800a548 &pdev->ep_out[ep_addr & 0x7FU]; - 800a478: 7bbb ldrb r3, [r7, #14] - 800a47a: f003 027f and.w r2, r3, #127 @ 0x7f + 800a530: 7bbb ldrb r3, [r7, #14] + 800a532: f003 027f and.w r2, r3, #127 @ 0x7f pep = ((ep_addr & 0x80U) == 0x80U) ? &pdev->ep_in[ep_addr & 0x7FU] : \ - 800a47e: 4613 mov r3, r2 - 800a480: 009b lsls r3, r3, #2 - 800a482: 4413 add r3, r2 - 800a484: 009b lsls r3, r3, #2 - 800a486: f503 73a8 add.w r3, r3, #336 @ 0x150 - 800a48a: 687a ldr r2, [r7, #4] - 800a48c: 4413 add r3, r2 - 800a48e: 3304 adds r3, #4 - 800a490: 60bb str r3, [r7, #8] + 800a536: 4613 mov r3, r2 + 800a538: 009b lsls r3, r3, #2 + 800a53a: 4413 add r3, r2 + 800a53c: 009b lsls r3, r3, #2 + 800a53e: f503 73a8 add.w r3, r3, #336 @ 0x150 + 800a542: 687a ldr r2, [r7, #4] + 800a544: 4413 add r3, r2 + 800a546: 3304 adds r3, #4 + 800a548: 60bb str r3, [r7, #8] if ((ep_addr == 0x00U) || (ep_addr == 0x80U)) - 800a492: 7bbb ldrb r3, [r7, #14] - 800a494: 2b00 cmp r3, #0 - 800a496: d002 beq.n 800a49e - 800a498: 7bbb ldrb r3, [r7, #14] - 800a49a: 2b80 cmp r3, #128 @ 0x80 - 800a49c: d103 bne.n 800a4a6 + 800a54a: 7bbb ldrb r3, [r7, #14] + 800a54c: 2b00 cmp r3, #0 + 800a54e: d002 beq.n 800a556 + 800a550: 7bbb ldrb r3, [r7, #14] + 800a552: 2b80 cmp r3, #128 @ 0x80 + 800a554: d103 bne.n 800a55e { pep->status = 0x0000U; - 800a49e: 68bb ldr r3, [r7, #8] - 800a4a0: 2200 movs r2, #0 - 800a4a2: 739a strb r2, [r3, #14] - 800a4a4: e00e b.n 800a4c4 + 800a556: 68bb ldr r3, [r7, #8] + 800a558: 2200 movs r2, #0 + 800a55a: 739a strb r2, [r3, #14] + 800a55c: e00e b.n 800a57c } else if (USBD_LL_IsStallEP(pdev, ep_addr) != 0U) - 800a4a6: 7bbb ldrb r3, [r7, #14] - 800a4a8: 4619 mov r1, r3 - 800a4aa: 6878 ldr r0, [r7, #4] - 800a4ac: f001 f80c bl 800b4c8 - 800a4b0: 4603 mov r3, r0 - 800a4b2: 2b00 cmp r3, #0 - 800a4b4: d003 beq.n 800a4be + 800a55e: 7bbb ldrb r3, [r7, #14] + 800a560: 4619 mov r1, r3 + 800a562: 6878 ldr r0, [r7, #4] + 800a564: f001 f80c bl 800b580 + 800a568: 4603 mov r3, r0 + 800a56a: 2b00 cmp r3, #0 + 800a56c: d003 beq.n 800a576 { pep->status = 0x0001U; - 800a4b6: 68bb ldr r3, [r7, #8] - 800a4b8: 2201 movs r2, #1 - 800a4ba: 739a strb r2, [r3, #14] - 800a4bc: e002 b.n 800a4c4 + 800a56e: 68bb ldr r3, [r7, #8] + 800a570: 2201 movs r2, #1 + 800a572: 739a strb r2, [r3, #14] + 800a574: e002 b.n 800a57c } else { pep->status = 0x0000U; - 800a4be: 68bb ldr r3, [r7, #8] - 800a4c0: 2200 movs r2, #0 - 800a4c2: 739a strb r2, [r3, #14] + 800a576: 68bb ldr r3, [r7, #8] + 800a578: 2200 movs r2, #0 + 800a57a: 739a strb r2, [r3, #14] } (void)USBD_CtlSendData(pdev, (uint8_t *)&pep->status, 2U); - 800a4c4: 68bb ldr r3, [r7, #8] - 800a4c6: 330e adds r3, #14 - 800a4c8: 2202 movs r2, #2 - 800a4ca: 4619 mov r1, r3 - 800a4cc: 6878 ldr r0, [r7, #4] - 800a4ce: f000 fc07 bl 800ace0 + 800a57c: 68bb ldr r3, [r7, #8] + 800a57e: 330e adds r3, #14 + 800a580: 2202 movs r2, #2 + 800a582: 4619 mov r1, r3 + 800a584: 6878 ldr r0, [r7, #4] + 800a586: f000 fc07 bl 800ad98 break; - 800a4d2: e004 b.n 800a4de + 800a58a: e004 b.n 800a596 default: USBD_CtlError(pdev, req); - 800a4d4: 6839 ldr r1, [r7, #0] - 800a4d6: 6878 ldr r0, [r7, #4] - 800a4d8: f000 fb85 bl 800abe6 + 800a58c: 6839 ldr r1, [r7, #0] + 800a58e: 6878 ldr r0, [r7, #4] + 800a590: f000 fb85 bl 800ac9e break; - 800a4dc: bf00 nop + 800a594: bf00 nop } break; - 800a4de: e004 b.n 800a4ea + 800a596: e004 b.n 800a5a2 default: USBD_CtlError(pdev, req); - 800a4e0: 6839 ldr r1, [r7, #0] - 800a4e2: 6878 ldr r0, [r7, #4] - 800a4e4: f000 fb7f bl 800abe6 + 800a598: 6839 ldr r1, [r7, #0] + 800a59a: 6878 ldr r0, [r7, #4] + 800a59c: f000 fb7f bl 800ac9e break; - 800a4e8: bf00 nop + 800a5a0: bf00 nop } break; - 800a4ea: e005 b.n 800a4f8 + 800a5a2: e005 b.n 800a5b0 default: USBD_CtlError(pdev, req); - 800a4ec: 6839 ldr r1, [r7, #0] - 800a4ee: 6878 ldr r0, [r7, #4] - 800a4f0: f000 fb79 bl 800abe6 + 800a5a4: 6839 ldr r1, [r7, #0] + 800a5a6: 6878 ldr r0, [r7, #4] + 800a5a8: f000 fb79 bl 800ac9e break; - 800a4f4: e000 b.n 800a4f8 + 800a5ac: e000 b.n 800a5b0 break; - 800a4f6: bf00 nop + 800a5ae: bf00 nop } return ret; - 800a4f8: 7bfb ldrb r3, [r7, #15] + 800a5b0: 7bfb ldrb r3, [r7, #15] } - 800a4fa: 4618 mov r0, r3 - 800a4fc: 3710 adds r7, #16 - 800a4fe: 46bd mov sp, r7 - 800a500: bd80 pop {r7, pc} + 800a5b2: 4618 mov r0, r3 + 800a5b4: 3710 adds r7, #16 + 800a5b6: 46bd mov sp, r7 + 800a5b8: bd80 pop {r7, pc} ... -0800a504 : +0800a5bc : * @param pdev: device instance * @param req: usb request * @retval None */ static void USBD_GetDescriptor(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 800a504: b580 push {r7, lr} - 800a506: b084 sub sp, #16 - 800a508: af00 add r7, sp, #0 - 800a50a: 6078 str r0, [r7, #4] - 800a50c: 6039 str r1, [r7, #0] + 800a5bc: b580 push {r7, lr} + 800a5be: b084 sub sp, #16 + 800a5c0: af00 add r7, sp, #0 + 800a5c2: 6078 str r0, [r7, #4] + 800a5c4: 6039 str r1, [r7, #0] uint16_t len = 0U; - 800a50e: 2300 movs r3, #0 - 800a510: 813b strh r3, [r7, #8] + 800a5c6: 2300 movs r3, #0 + 800a5c8: 813b strh r3, [r7, #8] uint8_t *pbuf = NULL; - 800a512: 2300 movs r3, #0 - 800a514: 60fb str r3, [r7, #12] + 800a5ca: 2300 movs r3, #0 + 800a5cc: 60fb str r3, [r7, #12] uint8_t err = 0U; - 800a516: 2300 movs r3, #0 - 800a518: 72fb strb r3, [r7, #11] + 800a5ce: 2300 movs r3, #0 + 800a5d0: 72fb strb r3, [r7, #11] switch (req->wValue >> 8) - 800a51a: 683b ldr r3, [r7, #0] - 800a51c: 885b ldrh r3, [r3, #2] - 800a51e: 0a1b lsrs r3, r3, #8 - 800a520: b29b uxth r3, r3 - 800a522: 3b01 subs r3, #1 - 800a524: 2b0e cmp r3, #14 - 800a526: f200 8152 bhi.w 800a7ce - 800a52a: a201 add r2, pc, #4 @ (adr r2, 800a530 ) - 800a52c: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800a530: 0800a5a1 .word 0x0800a5a1 - 800a534: 0800a5b9 .word 0x0800a5b9 - 800a538: 0800a5f9 .word 0x0800a5f9 - 800a53c: 0800a7cf .word 0x0800a7cf - 800a540: 0800a7cf .word 0x0800a7cf - 800a544: 0800a76f .word 0x0800a76f - 800a548: 0800a79b .word 0x0800a79b - 800a54c: 0800a7cf .word 0x0800a7cf - 800a550: 0800a7cf .word 0x0800a7cf - 800a554: 0800a7cf .word 0x0800a7cf - 800a558: 0800a7cf .word 0x0800a7cf - 800a55c: 0800a7cf .word 0x0800a7cf - 800a560: 0800a7cf .word 0x0800a7cf - 800a564: 0800a7cf .word 0x0800a7cf - 800a568: 0800a56d .word 0x0800a56d + 800a5d2: 683b ldr r3, [r7, #0] + 800a5d4: 885b ldrh r3, [r3, #2] + 800a5d6: 0a1b lsrs r3, r3, #8 + 800a5d8: b29b uxth r3, r3 + 800a5da: 3b01 subs r3, #1 + 800a5dc: 2b0e cmp r3, #14 + 800a5de: f200 8152 bhi.w 800a886 + 800a5e2: a201 add r2, pc, #4 @ (adr r2, 800a5e8 ) + 800a5e4: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800a5e8: 0800a659 .word 0x0800a659 + 800a5ec: 0800a671 .word 0x0800a671 + 800a5f0: 0800a6b1 .word 0x0800a6b1 + 800a5f4: 0800a887 .word 0x0800a887 + 800a5f8: 0800a887 .word 0x0800a887 + 800a5fc: 0800a827 .word 0x0800a827 + 800a600: 0800a853 .word 0x0800a853 + 800a604: 0800a887 .word 0x0800a887 + 800a608: 0800a887 .word 0x0800a887 + 800a60c: 0800a887 .word 0x0800a887 + 800a610: 0800a887 .word 0x0800a887 + 800a614: 0800a887 .word 0x0800a887 + 800a618: 0800a887 .word 0x0800a887 + 800a61c: 0800a887 .word 0x0800a887 + 800a620: 0800a625 .word 0x0800a625 { #if ((USBD_LPM_ENABLED == 1U) || (USBD_CLASS_BOS_ENABLED == 1U)) case USB_DESC_TYPE_BOS: if (pdev->pDesc->GetBOSDescriptor != NULL) - 800a56c: 687b ldr r3, [r7, #4] - 800a56e: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a572: 69db ldr r3, [r3, #28] - 800a574: 2b00 cmp r3, #0 - 800a576: d00b beq.n 800a590 - { - pbuf = pdev->pDesc->GetBOSDescriptor(pdev->dev_speed, &len); - 800a578: 687b ldr r3, [r7, #4] - 800a57a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a57e: 69db ldr r3, [r3, #28] - 800a580: 687a ldr r2, [r7, #4] - 800a582: 7c12 ldrb r2, [r2, #16] - 800a584: f107 0108 add.w r1, r7, #8 - 800a588: 4610 mov r0, r2 - 800a58a: 4798 blx r3 - 800a58c: 60f8 str r0, [r7, #12] - else - { - USBD_CtlError(pdev, req); - err++; - } - break; - 800a58e: e126 b.n 800a7de - USBD_CtlError(pdev, req); - 800a590: 6839 ldr r1, [r7, #0] - 800a592: 6878 ldr r0, [r7, #4] - 800a594: f000 fb27 bl 800abe6 - err++; - 800a598: 7afb ldrb r3, [r7, #11] - 800a59a: 3301 adds r3, #1 - 800a59c: 72fb strb r3, [r7, #11] - break; - 800a59e: e11e b.n 800a7de -#endif /* (USBD_LPM_ENABLED == 1U) || (USBD_CLASS_BOS_ENABLED == 1U) */ - case USB_DESC_TYPE_DEVICE: - pbuf = pdev->pDesc->GetDeviceDescriptor(pdev->dev_speed, &len); - 800a5a0: 687b ldr r3, [r7, #4] - 800a5a2: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a5a6: 681b ldr r3, [r3, #0] - 800a5a8: 687a ldr r2, [r7, #4] - 800a5aa: 7c12 ldrb r2, [r2, #16] - 800a5ac: f107 0108 add.w r1, r7, #8 - 800a5b0: 4610 mov r0, r2 - 800a5b2: 4798 blx r3 - 800a5b4: 60f8 str r0, [r7, #12] - break; - 800a5b6: e112 b.n 800a7de - - case USB_DESC_TYPE_CONFIGURATION: - if (pdev->dev_speed == USBD_SPEED_HIGH) - 800a5b8: 687b ldr r3, [r7, #4] - 800a5ba: 7c1b ldrb r3, [r3, #16] - 800a5bc: 2b00 cmp r3, #0 - 800a5be: d10d bne.n 800a5dc - pbuf = (uint8_t *)USBD_CMPSIT.GetHSConfigDescriptor(&len); - } - else -#endif /* USE_USBD_COMPOSITE */ - { - pbuf = (uint8_t *)pdev->pClass[0]->GetHSConfigDescriptor(&len); - 800a5c0: 687b ldr r3, [r7, #4] - 800a5c2: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 800a5c6: 6a9b ldr r3, [r3, #40] @ 0x28 - 800a5c8: f107 0208 add.w r2, r7, #8 - 800a5cc: 4610 mov r0, r2 - 800a5ce: 4798 blx r3 - 800a5d0: 60f8 str r0, [r7, #12] - } - pbuf[1] = USB_DESC_TYPE_CONFIGURATION; - 800a5d2: 68fb ldr r3, [r7, #12] - 800a5d4: 3301 adds r3, #1 - 800a5d6: 2202 movs r2, #2 - 800a5d8: 701a strb r2, [r3, #0] - { - pbuf = (uint8_t *)pdev->pClass[0]->GetFSConfigDescriptor(&len); - } - pbuf[1] = USB_DESC_TYPE_CONFIGURATION; - } - break; - 800a5da: e100 b.n 800a7de - pbuf = (uint8_t *)pdev->pClass[0]->GetFSConfigDescriptor(&len); - 800a5dc: 687b ldr r3, [r7, #4] - 800a5de: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 800a5e2: 6adb ldr r3, [r3, #44] @ 0x2c - 800a5e4: f107 0208 add.w r2, r7, #8 - 800a5e8: 4610 mov r0, r2 - 800a5ea: 4798 blx r3 - 800a5ec: 60f8 str r0, [r7, #12] - pbuf[1] = USB_DESC_TYPE_CONFIGURATION; - 800a5ee: 68fb ldr r3, [r7, #12] - 800a5f0: 3301 adds r3, #1 - 800a5f2: 2202 movs r2, #2 - 800a5f4: 701a strb r2, [r3, #0] - break; - 800a5f6: e0f2 b.n 800a7de - - case USB_DESC_TYPE_STRING: - switch ((uint8_t)(req->wValue)) - 800a5f8: 683b ldr r3, [r7, #0] - 800a5fa: 885b ldrh r3, [r3, #2] - 800a5fc: b2db uxtb r3, r3 - 800a5fe: 2b05 cmp r3, #5 - 800a600: f200 80ac bhi.w 800a75c - 800a604: a201 add r2, pc, #4 @ (adr r2, 800a60c ) - 800a606: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800a60a: bf00 nop - 800a60c: 0800a625 .word 0x0800a625 - 800a610: 0800a659 .word 0x0800a659 - 800a614: 0800a68d .word 0x0800a68d - 800a618: 0800a6c1 .word 0x0800a6c1 - 800a61c: 0800a6f5 .word 0x0800a6f5 - 800a620: 0800a729 .word 0x0800a729 - { - case USBD_IDX_LANGID_STR: - if (pdev->pDesc->GetLangIDStrDescriptor != NULL) 800a624: 687b ldr r3, [r7, #4] 800a626: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a62a: 685b ldr r3, [r3, #4] + 800a62a: 69db ldr r3, [r3, #28] 800a62c: 2b00 cmp r3, #0 - 800a62e: d00b beq.n 800a648 - { - pbuf = pdev->pDesc->GetLangIDStrDescriptor(pdev->dev_speed, &len); + 800a62e: d00b beq.n 800a648 + { + pbuf = pdev->pDesc->GetBOSDescriptor(pdev->dev_speed, &len); 800a630: 687b ldr r3, [r7, #4] 800a632: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a636: 685b ldr r3, [r3, #4] + 800a636: 69db ldr r3, [r3, #28] 800a638: 687a ldr r2, [r7, #4] 800a63a: 7c12 ldrb r2, [r2, #16] 800a63c: f107 0108 add.w r1, r7, #8 800a640: 4610 mov r0, r2 800a642: 4798 blx r3 800a644: 60f8 str r0, [r7, #12] - else - { - USBD_CtlError(pdev, req); - err++; - } - break; - 800a646: e091 b.n 800a76c - USBD_CtlError(pdev, req); + else + { + USBD_CtlError(pdev, req); + err++; + } + break; + 800a646: e126 b.n 800a896 + USBD_CtlError(pdev, req); 800a648: 6839 ldr r1, [r7, #0] 800a64a: 6878 ldr r0, [r7, #4] - 800a64c: f000 facb bl 800abe6 - err++; + 800a64c: f000 fb27 bl 800ac9e + err++; 800a650: 7afb ldrb r3, [r7, #11] 800a652: 3301 adds r3, #1 800a654: 72fb strb r3, [r7, #11] + break; + 800a656: e11e b.n 800a896 +#endif /* (USBD_LPM_ENABLED == 1U) || (USBD_CLASS_BOS_ENABLED == 1U) */ + case USB_DESC_TYPE_DEVICE: + pbuf = pdev->pDesc->GetDeviceDescriptor(pdev->dev_speed, &len); + 800a658: 687b ldr r3, [r7, #4] + 800a65a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a65e: 681b ldr r3, [r3, #0] + 800a660: 687a ldr r2, [r7, #4] + 800a662: 7c12 ldrb r2, [r2, #16] + 800a664: f107 0108 add.w r1, r7, #8 + 800a668: 4610 mov r0, r2 + 800a66a: 4798 blx r3 + 800a66c: 60f8 str r0, [r7, #12] + break; + 800a66e: e112 b.n 800a896 + + case USB_DESC_TYPE_CONFIGURATION: + if (pdev->dev_speed == USBD_SPEED_HIGH) + 800a670: 687b ldr r3, [r7, #4] + 800a672: 7c1b ldrb r3, [r3, #16] + 800a674: 2b00 cmp r3, #0 + 800a676: d10d bne.n 800a694 + pbuf = (uint8_t *)USBD_CMPSIT.GetHSConfigDescriptor(&len); + } + else +#endif /* USE_USBD_COMPOSITE */ + { + pbuf = (uint8_t *)pdev->pClass[0]->GetHSConfigDescriptor(&len); + 800a678: 687b ldr r3, [r7, #4] + 800a67a: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 800a67e: 6a9b ldr r3, [r3, #40] @ 0x28 + 800a680: f107 0208 add.w r2, r7, #8 + 800a684: 4610 mov r0, r2 + 800a686: 4798 blx r3 + 800a688: 60f8 str r0, [r7, #12] + } + pbuf[1] = USB_DESC_TYPE_CONFIGURATION; + 800a68a: 68fb ldr r3, [r7, #12] + 800a68c: 3301 adds r3, #1 + 800a68e: 2202 movs r2, #2 + 800a690: 701a strb r2, [r3, #0] + { + pbuf = (uint8_t *)pdev->pClass[0]->GetFSConfigDescriptor(&len); + } + pbuf[1] = USB_DESC_TYPE_CONFIGURATION; + } + break; + 800a692: e100 b.n 800a896 + pbuf = (uint8_t *)pdev->pClass[0]->GetFSConfigDescriptor(&len); + 800a694: 687b ldr r3, [r7, #4] + 800a696: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 800a69a: 6adb ldr r3, [r3, #44] @ 0x2c + 800a69c: f107 0208 add.w r2, r7, #8 + 800a6a0: 4610 mov r0, r2 + 800a6a2: 4798 blx r3 + 800a6a4: 60f8 str r0, [r7, #12] + pbuf[1] = USB_DESC_TYPE_CONFIGURATION; + 800a6a6: 68fb ldr r3, [r7, #12] + 800a6a8: 3301 adds r3, #1 + 800a6aa: 2202 movs r2, #2 + 800a6ac: 701a strb r2, [r3, #0] + break; + 800a6ae: e0f2 b.n 800a896 + + case USB_DESC_TYPE_STRING: + switch ((uint8_t)(req->wValue)) + 800a6b0: 683b ldr r3, [r7, #0] + 800a6b2: 885b ldrh r3, [r3, #2] + 800a6b4: b2db uxtb r3, r3 + 800a6b6: 2b05 cmp r3, #5 + 800a6b8: f200 80ac bhi.w 800a814 + 800a6bc: a201 add r2, pc, #4 @ (adr r2, 800a6c4 ) + 800a6be: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800a6c2: bf00 nop + 800a6c4: 0800a6dd .word 0x0800a6dd + 800a6c8: 0800a711 .word 0x0800a711 + 800a6cc: 0800a745 .word 0x0800a745 + 800a6d0: 0800a779 .word 0x0800a779 + 800a6d4: 0800a7ad .word 0x0800a7ad + 800a6d8: 0800a7e1 .word 0x0800a7e1 + { + case USBD_IDX_LANGID_STR: + if (pdev->pDesc->GetLangIDStrDescriptor != NULL) + 800a6dc: 687b ldr r3, [r7, #4] + 800a6de: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a6e2: 685b ldr r3, [r3, #4] + 800a6e4: 2b00 cmp r3, #0 + 800a6e6: d00b beq.n 800a700 + { + pbuf = pdev->pDesc->GetLangIDStrDescriptor(pdev->dev_speed, &len); + 800a6e8: 687b ldr r3, [r7, #4] + 800a6ea: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a6ee: 685b ldr r3, [r3, #4] + 800a6f0: 687a ldr r2, [r7, #4] + 800a6f2: 7c12 ldrb r2, [r2, #16] + 800a6f4: f107 0108 add.w r1, r7, #8 + 800a6f8: 4610 mov r0, r2 + 800a6fa: 4798 blx r3 + 800a6fc: 60f8 str r0, [r7, #12] + else + { + USBD_CtlError(pdev, req); + err++; + } break; - 800a656: e089 b.n 800a76c + 800a6fe: e091 b.n 800a824 + USBD_CtlError(pdev, req); + 800a700: 6839 ldr r1, [r7, #0] + 800a702: 6878 ldr r0, [r7, #4] + 800a704: f000 facb bl 800ac9e + err++; + 800a708: 7afb ldrb r3, [r7, #11] + 800a70a: 3301 adds r3, #1 + 800a70c: 72fb strb r3, [r7, #11] + break; + 800a70e: e089 b.n 800a824 case USBD_IDX_MFC_STR: if (pdev->pDesc->GetManufacturerStrDescriptor != NULL) - 800a658: 687b ldr r3, [r7, #4] - 800a65a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a65e: 689b ldr r3, [r3, #8] - 800a660: 2b00 cmp r3, #0 - 800a662: d00b beq.n 800a67c + 800a710: 687b ldr r3, [r7, #4] + 800a712: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a716: 689b ldr r3, [r3, #8] + 800a718: 2b00 cmp r3, #0 + 800a71a: d00b beq.n 800a734 { pbuf = pdev->pDesc->GetManufacturerStrDescriptor(pdev->dev_speed, &len); - 800a664: 687b ldr r3, [r7, #4] - 800a666: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a66a: 689b ldr r3, [r3, #8] - 800a66c: 687a ldr r2, [r7, #4] - 800a66e: 7c12 ldrb r2, [r2, #16] - 800a670: f107 0108 add.w r1, r7, #8 - 800a674: 4610 mov r0, r2 - 800a676: 4798 blx r3 - 800a678: 60f8 str r0, [r7, #12] + 800a71c: 687b ldr r3, [r7, #4] + 800a71e: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a722: 689b ldr r3, [r3, #8] + 800a724: 687a ldr r2, [r7, #4] + 800a726: 7c12 ldrb r2, [r2, #16] + 800a728: f107 0108 add.w r1, r7, #8 + 800a72c: 4610 mov r0, r2 + 800a72e: 4798 blx r3 + 800a730: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 800a67a: e077 b.n 800a76c + 800a732: e077 b.n 800a824 USBD_CtlError(pdev, req); - 800a67c: 6839 ldr r1, [r7, #0] - 800a67e: 6878 ldr r0, [r7, #4] - 800a680: f000 fab1 bl 800abe6 + 800a734: 6839 ldr r1, [r7, #0] + 800a736: 6878 ldr r0, [r7, #4] + 800a738: f000 fab1 bl 800ac9e err++; - 800a684: 7afb ldrb r3, [r7, #11] - 800a686: 3301 adds r3, #1 - 800a688: 72fb strb r3, [r7, #11] + 800a73c: 7afb ldrb r3, [r7, #11] + 800a73e: 3301 adds r3, #1 + 800a740: 72fb strb r3, [r7, #11] break; - 800a68a: e06f b.n 800a76c + 800a742: e06f b.n 800a824 case USBD_IDX_PRODUCT_STR: if (pdev->pDesc->GetProductStrDescriptor != NULL) - 800a68c: 687b ldr r3, [r7, #4] - 800a68e: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a692: 68db ldr r3, [r3, #12] - 800a694: 2b00 cmp r3, #0 - 800a696: d00b beq.n 800a6b0 + 800a744: 687b ldr r3, [r7, #4] + 800a746: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a74a: 68db ldr r3, [r3, #12] + 800a74c: 2b00 cmp r3, #0 + 800a74e: d00b beq.n 800a768 { pbuf = pdev->pDesc->GetProductStrDescriptor(pdev->dev_speed, &len); - 800a698: 687b ldr r3, [r7, #4] - 800a69a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a69e: 68db ldr r3, [r3, #12] - 800a6a0: 687a ldr r2, [r7, #4] - 800a6a2: 7c12 ldrb r2, [r2, #16] - 800a6a4: f107 0108 add.w r1, r7, #8 - 800a6a8: 4610 mov r0, r2 - 800a6aa: 4798 blx r3 - 800a6ac: 60f8 str r0, [r7, #12] + 800a750: 687b ldr r3, [r7, #4] + 800a752: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a756: 68db ldr r3, [r3, #12] + 800a758: 687a ldr r2, [r7, #4] + 800a75a: 7c12 ldrb r2, [r2, #16] + 800a75c: f107 0108 add.w r1, r7, #8 + 800a760: 4610 mov r0, r2 + 800a762: 4798 blx r3 + 800a764: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 800a6ae: e05d b.n 800a76c + 800a766: e05d b.n 800a824 USBD_CtlError(pdev, req); - 800a6b0: 6839 ldr r1, [r7, #0] - 800a6b2: 6878 ldr r0, [r7, #4] - 800a6b4: f000 fa97 bl 800abe6 + 800a768: 6839 ldr r1, [r7, #0] + 800a76a: 6878 ldr r0, [r7, #4] + 800a76c: f000 fa97 bl 800ac9e err++; - 800a6b8: 7afb ldrb r3, [r7, #11] - 800a6ba: 3301 adds r3, #1 - 800a6bc: 72fb strb r3, [r7, #11] + 800a770: 7afb ldrb r3, [r7, #11] + 800a772: 3301 adds r3, #1 + 800a774: 72fb strb r3, [r7, #11] break; - 800a6be: e055 b.n 800a76c + 800a776: e055 b.n 800a824 case USBD_IDX_SERIAL_STR: if (pdev->pDesc->GetSerialStrDescriptor != NULL) - 800a6c0: 687b ldr r3, [r7, #4] - 800a6c2: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a6c6: 691b ldr r3, [r3, #16] - 800a6c8: 2b00 cmp r3, #0 - 800a6ca: d00b beq.n 800a6e4 + 800a778: 687b ldr r3, [r7, #4] + 800a77a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a77e: 691b ldr r3, [r3, #16] + 800a780: 2b00 cmp r3, #0 + 800a782: d00b beq.n 800a79c { pbuf = pdev->pDesc->GetSerialStrDescriptor(pdev->dev_speed, &len); - 800a6cc: 687b ldr r3, [r7, #4] - 800a6ce: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a6d2: 691b ldr r3, [r3, #16] - 800a6d4: 687a ldr r2, [r7, #4] - 800a6d6: 7c12 ldrb r2, [r2, #16] - 800a6d8: f107 0108 add.w r1, r7, #8 - 800a6dc: 4610 mov r0, r2 - 800a6de: 4798 blx r3 - 800a6e0: 60f8 str r0, [r7, #12] + 800a784: 687b ldr r3, [r7, #4] + 800a786: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a78a: 691b ldr r3, [r3, #16] + 800a78c: 687a ldr r2, [r7, #4] + 800a78e: 7c12 ldrb r2, [r2, #16] + 800a790: f107 0108 add.w r1, r7, #8 + 800a794: 4610 mov r0, r2 + 800a796: 4798 blx r3 + 800a798: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 800a6e2: e043 b.n 800a76c + 800a79a: e043 b.n 800a824 USBD_CtlError(pdev, req); - 800a6e4: 6839 ldr r1, [r7, #0] - 800a6e6: 6878 ldr r0, [r7, #4] - 800a6e8: f000 fa7d bl 800abe6 + 800a79c: 6839 ldr r1, [r7, #0] + 800a79e: 6878 ldr r0, [r7, #4] + 800a7a0: f000 fa7d bl 800ac9e err++; - 800a6ec: 7afb ldrb r3, [r7, #11] - 800a6ee: 3301 adds r3, #1 - 800a6f0: 72fb strb r3, [r7, #11] + 800a7a4: 7afb ldrb r3, [r7, #11] + 800a7a6: 3301 adds r3, #1 + 800a7a8: 72fb strb r3, [r7, #11] break; - 800a6f2: e03b b.n 800a76c + 800a7aa: e03b b.n 800a824 case USBD_IDX_CONFIG_STR: if (pdev->pDesc->GetConfigurationStrDescriptor != NULL) - 800a6f4: 687b ldr r3, [r7, #4] - 800a6f6: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a6fa: 695b ldr r3, [r3, #20] - 800a6fc: 2b00 cmp r3, #0 - 800a6fe: d00b beq.n 800a718 + 800a7ac: 687b ldr r3, [r7, #4] + 800a7ae: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a7b2: 695b ldr r3, [r3, #20] + 800a7b4: 2b00 cmp r3, #0 + 800a7b6: d00b beq.n 800a7d0 { pbuf = pdev->pDesc->GetConfigurationStrDescriptor(pdev->dev_speed, &len); - 800a700: 687b ldr r3, [r7, #4] - 800a702: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a706: 695b ldr r3, [r3, #20] - 800a708: 687a ldr r2, [r7, #4] - 800a70a: 7c12 ldrb r2, [r2, #16] - 800a70c: f107 0108 add.w r1, r7, #8 - 800a710: 4610 mov r0, r2 - 800a712: 4798 blx r3 - 800a714: 60f8 str r0, [r7, #12] + 800a7b8: 687b ldr r3, [r7, #4] + 800a7ba: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a7be: 695b ldr r3, [r3, #20] + 800a7c0: 687a ldr r2, [r7, #4] + 800a7c2: 7c12 ldrb r2, [r2, #16] + 800a7c4: f107 0108 add.w r1, r7, #8 + 800a7c8: 4610 mov r0, r2 + 800a7ca: 4798 blx r3 + 800a7cc: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 800a716: e029 b.n 800a76c + 800a7ce: e029 b.n 800a824 USBD_CtlError(pdev, req); - 800a718: 6839 ldr r1, [r7, #0] - 800a71a: 6878 ldr r0, [r7, #4] - 800a71c: f000 fa63 bl 800abe6 + 800a7d0: 6839 ldr r1, [r7, #0] + 800a7d2: 6878 ldr r0, [r7, #4] + 800a7d4: f000 fa63 bl 800ac9e err++; - 800a720: 7afb ldrb r3, [r7, #11] - 800a722: 3301 adds r3, #1 - 800a724: 72fb strb r3, [r7, #11] + 800a7d8: 7afb ldrb r3, [r7, #11] + 800a7da: 3301 adds r3, #1 + 800a7dc: 72fb strb r3, [r7, #11] break; - 800a726: e021 b.n 800a76c + 800a7de: e021 b.n 800a824 case USBD_IDX_INTERFACE_STR: if (pdev->pDesc->GetInterfaceStrDescriptor != NULL) - 800a728: 687b ldr r3, [r7, #4] - 800a72a: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a72e: 699b ldr r3, [r3, #24] - 800a730: 2b00 cmp r3, #0 - 800a732: d00b beq.n 800a74c + 800a7e0: 687b ldr r3, [r7, #4] + 800a7e2: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a7e6: 699b ldr r3, [r3, #24] + 800a7e8: 2b00 cmp r3, #0 + 800a7ea: d00b beq.n 800a804 { pbuf = pdev->pDesc->GetInterfaceStrDescriptor(pdev->dev_speed, &len); - 800a734: 687b ldr r3, [r7, #4] - 800a736: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 - 800a73a: 699b ldr r3, [r3, #24] - 800a73c: 687a ldr r2, [r7, #4] - 800a73e: 7c12 ldrb r2, [r2, #16] - 800a740: f107 0108 add.w r1, r7, #8 - 800a744: 4610 mov r0, r2 - 800a746: 4798 blx r3 - 800a748: 60f8 str r0, [r7, #12] + 800a7ec: 687b ldr r3, [r7, #4] + 800a7ee: f8d3 32b4 ldr.w r3, [r3, #692] @ 0x2b4 + 800a7f2: 699b ldr r3, [r3, #24] + 800a7f4: 687a ldr r2, [r7, #4] + 800a7f6: 7c12 ldrb r2, [r2, #16] + 800a7f8: f107 0108 add.w r1, r7, #8 + 800a7fc: 4610 mov r0, r2 + 800a7fe: 4798 blx r3 + 800a800: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 800a74a: e00f b.n 800a76c + 800a802: e00f b.n 800a824 USBD_CtlError(pdev, req); - 800a74c: 6839 ldr r1, [r7, #0] - 800a74e: 6878 ldr r0, [r7, #4] - 800a750: f000 fa49 bl 800abe6 + 800a804: 6839 ldr r1, [r7, #0] + 800a806: 6878 ldr r0, [r7, #4] + 800a808: f000 fa49 bl 800ac9e err++; - 800a754: 7afb ldrb r3, [r7, #11] - 800a756: 3301 adds r3, #1 - 800a758: 72fb strb r3, [r7, #11] + 800a80c: 7afb ldrb r3, [r7, #11] + 800a80e: 3301 adds r3, #1 + 800a810: 72fb strb r3, [r7, #11] break; - 800a75a: e007 b.n 800a76c + 800a812: e007 b.n 800a824 err++; } #endif /* USBD_SUPPORT_USER_STRING_DESC */ #if ((USBD_CLASS_USER_STRING_DESC == 0U) && (USBD_SUPPORT_USER_STRING_DESC == 0U)) USBD_CtlError(pdev, req); - 800a75c: 6839 ldr r1, [r7, #0] - 800a75e: 6878 ldr r0, [r7, #4] - 800a760: f000 fa41 bl 800abe6 + 800a814: 6839 ldr r1, [r7, #0] + 800a816: 6878 ldr r0, [r7, #4] + 800a818: f000 fa41 bl 800ac9e err++; - 800a764: 7afb ldrb r3, [r7, #11] - 800a766: 3301 adds r3, #1 - 800a768: 72fb strb r3, [r7, #11] + 800a81c: 7afb ldrb r3, [r7, #11] + 800a81e: 3301 adds r3, #1 + 800a820: 72fb strb r3, [r7, #11] #endif /* (USBD_CLASS_USER_STRING_DESC == 0U) && (USBD_SUPPORT_USER_STRING_DESC == 0U) */ break; - 800a76a: bf00 nop + 800a822: bf00 nop } break; - 800a76c: e037 b.n 800a7de + 800a824: e037 b.n 800a896 case USB_DESC_TYPE_DEVICE_QUALIFIER: if (pdev->dev_speed == USBD_SPEED_HIGH) - 800a76e: 687b ldr r3, [r7, #4] - 800a770: 7c1b ldrb r3, [r3, #16] - 800a772: 2b00 cmp r3, #0 - 800a774: d109 bne.n 800a78a + 800a826: 687b ldr r3, [r7, #4] + 800a828: 7c1b ldrb r3, [r3, #16] + 800a82a: 2b00 cmp r3, #0 + 800a82c: d109 bne.n 800a842 pbuf = (uint8_t *)USBD_CMPSIT.GetDeviceQualifierDescriptor(&len); } else #endif /* USE_USBD_COMPOSITE */ { pbuf = (uint8_t *)pdev->pClass[0]->GetDeviceQualifierDescriptor(&len); - 800a776: 687b ldr r3, [r7, #4] - 800a778: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 800a77c: 6b5b ldr r3, [r3, #52] @ 0x34 - 800a77e: f107 0208 add.w r2, r7, #8 - 800a782: 4610 mov r0, r2 - 800a784: 4798 blx r3 - 800a786: 60f8 str r0, [r7, #12] + 800a82e: 687b ldr r3, [r7, #4] + 800a830: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 800a834: 6b5b ldr r3, [r3, #52] @ 0x34 + 800a836: f107 0208 add.w r2, r7, #8 + 800a83a: 4610 mov r0, r2 + 800a83c: 4798 blx r3 + 800a83e: 60f8 str r0, [r7, #12] else { USBD_CtlError(pdev, req); err++; } break; - 800a788: e029 b.n 800a7de + 800a840: e029 b.n 800a896 USBD_CtlError(pdev, req); - 800a78a: 6839 ldr r1, [r7, #0] - 800a78c: 6878 ldr r0, [r7, #4] - 800a78e: f000 fa2a bl 800abe6 + 800a842: 6839 ldr r1, [r7, #0] + 800a844: 6878 ldr r0, [r7, #4] + 800a846: f000 fa2a bl 800ac9e err++; - 800a792: 7afb ldrb r3, [r7, #11] - 800a794: 3301 adds r3, #1 - 800a796: 72fb strb r3, [r7, #11] + 800a84a: 7afb ldrb r3, [r7, #11] + 800a84c: 3301 adds r3, #1 + 800a84e: 72fb strb r3, [r7, #11] break; - 800a798: e021 b.n 800a7de + 800a850: e021 b.n 800a896 case USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION: if (pdev->dev_speed == USBD_SPEED_HIGH) - 800a79a: 687b ldr r3, [r7, #4] - 800a79c: 7c1b ldrb r3, [r3, #16] - 800a79e: 2b00 cmp r3, #0 - 800a7a0: d10d bne.n 800a7be + 800a852: 687b ldr r3, [r7, #4] + 800a854: 7c1b ldrb r3, [r3, #16] + 800a856: 2b00 cmp r3, #0 + 800a858: d10d bne.n 800a876 pbuf = (uint8_t *)USBD_CMPSIT.GetOtherSpeedConfigDescriptor(&len); } else #endif /* USE_USBD_COMPOSITE */ { pbuf = (uint8_t *)pdev->pClass[0]->GetOtherSpeedConfigDescriptor(&len); - 800a7a2: 687b ldr r3, [r7, #4] - 800a7a4: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 - 800a7a8: 6b1b ldr r3, [r3, #48] @ 0x30 - 800a7aa: f107 0208 add.w r2, r7, #8 - 800a7ae: 4610 mov r0, r2 - 800a7b0: 4798 blx r3 - 800a7b2: 60f8 str r0, [r7, #12] + 800a85a: 687b ldr r3, [r7, #4] + 800a85c: f8d3 32b8 ldr.w r3, [r3, #696] @ 0x2b8 + 800a860: 6b1b ldr r3, [r3, #48] @ 0x30 + 800a862: f107 0208 add.w r2, r7, #8 + 800a866: 4610 mov r0, r2 + 800a868: 4798 blx r3 + 800a86a: 60f8 str r0, [r7, #12] } pbuf[1] = USB_DESC_TYPE_OTHER_SPEED_CONFIGURATION; - 800a7b4: 68fb ldr r3, [r7, #12] - 800a7b6: 3301 adds r3, #1 - 800a7b8: 2207 movs r2, #7 - 800a7ba: 701a strb r2, [r3, #0] + 800a86c: 68fb ldr r3, [r7, #12] + 800a86e: 3301 adds r3, #1 + 800a870: 2207 movs r2, #7 + 800a872: 701a strb r2, [r3, #0] else { USBD_CtlError(pdev, req); err++; } break; - 800a7bc: e00f b.n 800a7de + 800a874: e00f b.n 800a896 USBD_CtlError(pdev, req); - 800a7be: 6839 ldr r1, [r7, #0] - 800a7c0: 6878 ldr r0, [r7, #4] - 800a7c2: f000 fa10 bl 800abe6 + 800a876: 6839 ldr r1, [r7, #0] + 800a878: 6878 ldr r0, [r7, #4] + 800a87a: f000 fa10 bl 800ac9e err++; - 800a7c6: 7afb ldrb r3, [r7, #11] - 800a7c8: 3301 adds r3, #1 - 800a7ca: 72fb strb r3, [r7, #11] + 800a87e: 7afb ldrb r3, [r7, #11] + 800a880: 3301 adds r3, #1 + 800a882: 72fb strb r3, [r7, #11] break; - 800a7cc: e007 b.n 800a7de + 800a884: e007 b.n 800a896 default: USBD_CtlError(pdev, req); - 800a7ce: 6839 ldr r1, [r7, #0] - 800a7d0: 6878 ldr r0, [r7, #4] - 800a7d2: f000 fa08 bl 800abe6 + 800a886: 6839 ldr r1, [r7, #0] + 800a888: 6878 ldr r0, [r7, #4] + 800a88a: f000 fa08 bl 800ac9e err++; - 800a7d6: 7afb ldrb r3, [r7, #11] - 800a7d8: 3301 adds r3, #1 - 800a7da: 72fb strb r3, [r7, #11] + 800a88e: 7afb ldrb r3, [r7, #11] + 800a890: 3301 adds r3, #1 + 800a892: 72fb strb r3, [r7, #11] break; - 800a7dc: bf00 nop + 800a894: bf00 nop } if (err != 0U) - 800a7de: 7afb ldrb r3, [r7, #11] - 800a7e0: 2b00 cmp r3, #0 - 800a7e2: d11e bne.n 800a822 + 800a896: 7afb ldrb r3, [r7, #11] + 800a898: 2b00 cmp r3, #0 + 800a89a: d11e bne.n 800a8da { return; } if (req->wLength != 0U) - 800a7e4: 683b ldr r3, [r7, #0] - 800a7e6: 88db ldrh r3, [r3, #6] - 800a7e8: 2b00 cmp r3, #0 - 800a7ea: d016 beq.n 800a81a + 800a89c: 683b ldr r3, [r7, #0] + 800a89e: 88db ldrh r3, [r3, #6] + 800a8a0: 2b00 cmp r3, #0 + 800a8a2: d016 beq.n 800a8d2 { if (len != 0U) - 800a7ec: 893b ldrh r3, [r7, #8] - 800a7ee: 2b00 cmp r3, #0 - 800a7f0: d00e beq.n 800a810 + 800a8a4: 893b ldrh r3, [r7, #8] + 800a8a6: 2b00 cmp r3, #0 + 800a8a8: d00e beq.n 800a8c8 { len = MIN(len, req->wLength); - 800a7f2: 683b ldr r3, [r7, #0] - 800a7f4: 88da ldrh r2, [r3, #6] - 800a7f6: 893b ldrh r3, [r7, #8] - 800a7f8: 4293 cmp r3, r2 - 800a7fa: bf28 it cs - 800a7fc: 4613 movcs r3, r2 - 800a7fe: b29b uxth r3, r3 - 800a800: 813b strh r3, [r7, #8] + 800a8aa: 683b ldr r3, [r7, #0] + 800a8ac: 88da ldrh r2, [r3, #6] + 800a8ae: 893b ldrh r3, [r7, #8] + 800a8b0: 4293 cmp r3, r2 + 800a8b2: bf28 it cs + 800a8b4: 4613 movcs r3, r2 + 800a8b6: b29b uxth r3, r3 + 800a8b8: 813b strh r3, [r7, #8] (void)USBD_CtlSendData(pdev, pbuf, len); - 800a802: 893b ldrh r3, [r7, #8] - 800a804: 461a mov r2, r3 - 800a806: 68f9 ldr r1, [r7, #12] - 800a808: 6878 ldr r0, [r7, #4] - 800a80a: f000 fa69 bl 800ace0 - 800a80e: e009 b.n 800a824 + 800a8ba: 893b ldrh r3, [r7, #8] + 800a8bc: 461a mov r2, r3 + 800a8be: 68f9 ldr r1, [r7, #12] + 800a8c0: 6878 ldr r0, [r7, #4] + 800a8c2: f000 fa69 bl 800ad98 + 800a8c6: e009 b.n 800a8dc } else { USBD_CtlError(pdev, req); - 800a810: 6839 ldr r1, [r7, #0] - 800a812: 6878 ldr r0, [r7, #4] - 800a814: f000 f9e7 bl 800abe6 - 800a818: e004 b.n 800a824 + 800a8c8: 6839 ldr r1, [r7, #0] + 800a8ca: 6878 ldr r0, [r7, #4] + 800a8cc: f000 f9e7 bl 800ac9e + 800a8d0: e004 b.n 800a8dc } } else { (void)USBD_CtlSendStatus(pdev); - 800a81a: 6878 ldr r0, [r7, #4] - 800a81c: f000 faa0 bl 800ad60 - 800a820: e000 b.n 800a824 + 800a8d2: 6878 ldr r0, [r7, #4] + 800a8d4: f000 faa0 bl 800ae18 + 800a8d8: e000 b.n 800a8dc return; - 800a822: bf00 nop + 800a8da: bf00 nop } } - 800a824: 3710 adds r7, #16 - 800a826: 46bd mov sp, r7 - 800a828: bd80 pop {r7, pc} - 800a82a: bf00 nop + 800a8dc: 3710 adds r7, #16 + 800a8de: 46bd mov sp, r7 + 800a8e0: bd80 pop {r7, pc} + 800a8e2: bf00 nop -0800a82c : +0800a8e4 : * @param pdev: device instance * @param req: usb request * @retval None */ static void USBD_SetAddress(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 800a82c: b580 push {r7, lr} - 800a82e: b084 sub sp, #16 - 800a830: af00 add r7, sp, #0 - 800a832: 6078 str r0, [r7, #4] - 800a834: 6039 str r1, [r7, #0] + 800a8e4: b580 push {r7, lr} + 800a8e6: b084 sub sp, #16 + 800a8e8: af00 add r7, sp, #0 + 800a8ea: 6078 str r0, [r7, #4] + 800a8ec: 6039 str r1, [r7, #0] uint8_t dev_addr; if ((req->wIndex == 0U) && (req->wLength == 0U) && (req->wValue < 128U)) - 800a836: 683b ldr r3, [r7, #0] - 800a838: 889b ldrh r3, [r3, #4] - 800a83a: 2b00 cmp r3, #0 - 800a83c: d131 bne.n 800a8a2 - 800a83e: 683b ldr r3, [r7, #0] - 800a840: 88db ldrh r3, [r3, #6] - 800a842: 2b00 cmp r3, #0 - 800a844: d12d bne.n 800a8a2 - 800a846: 683b ldr r3, [r7, #0] - 800a848: 885b ldrh r3, [r3, #2] - 800a84a: 2b7f cmp r3, #127 @ 0x7f - 800a84c: d829 bhi.n 800a8a2 + 800a8ee: 683b ldr r3, [r7, #0] + 800a8f0: 889b ldrh r3, [r3, #4] + 800a8f2: 2b00 cmp r3, #0 + 800a8f4: d131 bne.n 800a95a + 800a8f6: 683b ldr r3, [r7, #0] + 800a8f8: 88db ldrh r3, [r3, #6] + 800a8fa: 2b00 cmp r3, #0 + 800a8fc: d12d bne.n 800a95a + 800a8fe: 683b ldr r3, [r7, #0] + 800a900: 885b ldrh r3, [r3, #2] + 800a902: 2b7f cmp r3, #127 @ 0x7f + 800a904: d829 bhi.n 800a95a { dev_addr = (uint8_t)(req->wValue) & 0x7FU; - 800a84e: 683b ldr r3, [r7, #0] - 800a850: 885b ldrh r3, [r3, #2] - 800a852: b2db uxtb r3, r3 - 800a854: f003 037f and.w r3, r3, #127 @ 0x7f - 800a858: 73fb strb r3, [r7, #15] + 800a906: 683b ldr r3, [r7, #0] + 800a908: 885b ldrh r3, [r3, #2] + 800a90a: b2db uxtb r3, r3 + 800a90c: f003 037f and.w r3, r3, #127 @ 0x7f + 800a910: 73fb strb r3, [r7, #15] if (pdev->dev_state == USBD_STATE_CONFIGURED) - 800a85a: 687b ldr r3, [r7, #4] - 800a85c: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800a860: b2db uxtb r3, r3 - 800a862: 2b03 cmp r3, #3 - 800a864: d104 bne.n 800a870 + 800a912: 687b ldr r3, [r7, #4] + 800a914: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800a918: b2db uxtb r3, r3 + 800a91a: 2b03 cmp r3, #3 + 800a91c: d104 bne.n 800a928 { USBD_CtlError(pdev, req); - 800a866: 6839 ldr r1, [r7, #0] - 800a868: 6878 ldr r0, [r7, #4] - 800a86a: f000 f9bc bl 800abe6 + 800a91e: 6839 ldr r1, [r7, #0] + 800a920: 6878 ldr r0, [r7, #4] + 800a922: f000 f9bc bl 800ac9e if (pdev->dev_state == USBD_STATE_CONFIGURED) - 800a86e: e01d b.n 800a8ac + 800a926: e01d b.n 800a964 } else { pdev->dev_address = dev_addr; - 800a870: 687b ldr r3, [r7, #4] - 800a872: 7bfa ldrb r2, [r7, #15] - 800a874: f883 229e strb.w r2, [r3, #670] @ 0x29e + 800a928: 687b ldr r3, [r7, #4] + 800a92a: 7bfa ldrb r2, [r7, #15] + 800a92c: f883 229e strb.w r2, [r3, #670] @ 0x29e (void)USBD_LL_SetUSBAddress(pdev, dev_addr); - 800a878: 7bfb ldrb r3, [r7, #15] - 800a87a: 4619 mov r1, r3 - 800a87c: 6878 ldr r0, [r7, #4] - 800a87e: f000 fe4f bl 800b520 + 800a930: 7bfb ldrb r3, [r7, #15] + 800a932: 4619 mov r1, r3 + 800a934: 6878 ldr r0, [r7, #4] + 800a936: f000 fe4f bl 800b5d8 (void)USBD_CtlSendStatus(pdev); - 800a882: 6878 ldr r0, [r7, #4] - 800a884: f000 fa6c bl 800ad60 + 800a93a: 6878 ldr r0, [r7, #4] + 800a93c: f000 fa6c bl 800ae18 if (dev_addr != 0U) - 800a888: 7bfb ldrb r3, [r7, #15] - 800a88a: 2b00 cmp r3, #0 - 800a88c: d004 beq.n 800a898 + 800a940: 7bfb ldrb r3, [r7, #15] + 800a942: 2b00 cmp r3, #0 + 800a944: d004 beq.n 800a950 { pdev->dev_state = USBD_STATE_ADDRESSED; - 800a88e: 687b ldr r3, [r7, #4] - 800a890: 2202 movs r2, #2 - 800a892: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800a946: 687b ldr r3, [r7, #4] + 800a948: 2202 movs r2, #2 + 800a94a: f883 229c strb.w r2, [r3, #668] @ 0x29c if (pdev->dev_state == USBD_STATE_CONFIGURED) - 800a896: e009 b.n 800a8ac + 800a94e: e009 b.n 800a964 } else { pdev->dev_state = USBD_STATE_DEFAULT; - 800a898: 687b ldr r3, [r7, #4] - 800a89a: 2201 movs r2, #1 - 800a89c: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800a950: 687b ldr r3, [r7, #4] + 800a952: 2201 movs r2, #1 + 800a954: f883 229c strb.w r2, [r3, #668] @ 0x29c if (pdev->dev_state == USBD_STATE_CONFIGURED) - 800a8a0: e004 b.n 800a8ac + 800a958: e004 b.n 800a964 } } } else { USBD_CtlError(pdev, req); - 800a8a2: 6839 ldr r1, [r7, #0] - 800a8a4: 6878 ldr r0, [r7, #4] - 800a8a6: f000 f99e bl 800abe6 + 800a95a: 6839 ldr r1, [r7, #0] + 800a95c: 6878 ldr r0, [r7, #4] + 800a95e: f000 f99e bl 800ac9e } } - 800a8aa: bf00 nop - 800a8ac: bf00 nop - 800a8ae: 3710 adds r7, #16 - 800a8b0: 46bd mov sp, r7 - 800a8b2: bd80 pop {r7, pc} + 800a962: bf00 nop + 800a964: bf00 nop + 800a966: 3710 adds r7, #16 + 800a968: 46bd mov sp, r7 + 800a96a: bd80 pop {r7, pc} -0800a8b4 : +0800a96c : * @param pdev: device instance * @param req: usb request * @retval status */ static USBD_StatusTypeDef USBD_SetConfig(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 800a8b4: b580 push {r7, lr} - 800a8b6: b084 sub sp, #16 - 800a8b8: af00 add r7, sp, #0 - 800a8ba: 6078 str r0, [r7, #4] - 800a8bc: 6039 str r1, [r7, #0] + 800a96c: b580 push {r7, lr} + 800a96e: b084 sub sp, #16 + 800a970: af00 add r7, sp, #0 + 800a972: 6078 str r0, [r7, #4] + 800a974: 6039 str r1, [r7, #0] USBD_StatusTypeDef ret = USBD_OK; - 800a8be: 2300 movs r3, #0 - 800a8c0: 73fb strb r3, [r7, #15] + 800a976: 2300 movs r3, #0 + 800a978: 73fb strb r3, [r7, #15] static uint8_t cfgidx; cfgidx = (uint8_t)(req->wValue); - 800a8c2: 683b ldr r3, [r7, #0] - 800a8c4: 885b ldrh r3, [r3, #2] - 800a8c6: b2da uxtb r2, r3 - 800a8c8: 4b4e ldr r3, [pc, #312] @ (800aa04 ) - 800a8ca: 701a strb r2, [r3, #0] + 800a97a: 683b ldr r3, [r7, #0] + 800a97c: 885b ldrh r3, [r3, #2] + 800a97e: b2da uxtb r2, r3 + 800a980: 4b4e ldr r3, [pc, #312] @ (800aabc ) + 800a982: 701a strb r2, [r3, #0] if (cfgidx > USBD_MAX_NUM_CONFIGURATION) - 800a8cc: 4b4d ldr r3, [pc, #308] @ (800aa04 ) - 800a8ce: 781b ldrb r3, [r3, #0] - 800a8d0: 2b01 cmp r3, #1 - 800a8d2: d905 bls.n 800a8e0 + 800a984: 4b4d ldr r3, [pc, #308] @ (800aabc ) + 800a986: 781b ldrb r3, [r3, #0] + 800a988: 2b01 cmp r3, #1 + 800a98a: d905 bls.n 800a998 { USBD_CtlError(pdev, req); - 800a8d4: 6839 ldr r1, [r7, #0] - 800a8d6: 6878 ldr r0, [r7, #4] - 800a8d8: f000 f985 bl 800abe6 + 800a98c: 6839 ldr r1, [r7, #0] + 800a98e: 6878 ldr r0, [r7, #4] + 800a990: f000 f985 bl 800ac9e return USBD_FAIL; - 800a8dc: 2303 movs r3, #3 - 800a8de: e08c b.n 800a9fa + 800a994: 2303 movs r3, #3 + 800a996: e08c b.n 800aab2 } switch (pdev->dev_state) - 800a8e0: 687b ldr r3, [r7, #4] - 800a8e2: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800a8e6: b2db uxtb r3, r3 - 800a8e8: 2b02 cmp r3, #2 - 800a8ea: d002 beq.n 800a8f2 - 800a8ec: 2b03 cmp r3, #3 - 800a8ee: d029 beq.n 800a944 - 800a8f0: e075 b.n 800a9de + 800a998: 687b ldr r3, [r7, #4] + 800a99a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800a99e: b2db uxtb r3, r3 + 800a9a0: 2b02 cmp r3, #2 + 800a9a2: d002 beq.n 800a9aa + 800a9a4: 2b03 cmp r3, #3 + 800a9a6: d029 beq.n 800a9fc + 800a9a8: e075 b.n 800aa96 { case USBD_STATE_ADDRESSED: if (cfgidx != 0U) - 800a8f2: 4b44 ldr r3, [pc, #272] @ (800aa04 ) - 800a8f4: 781b ldrb r3, [r3, #0] - 800a8f6: 2b00 cmp r3, #0 - 800a8f8: d020 beq.n 800a93c + 800a9aa: 4b44 ldr r3, [pc, #272] @ (800aabc ) + 800a9ac: 781b ldrb r3, [r3, #0] + 800a9ae: 2b00 cmp r3, #0 + 800a9b0: d020 beq.n 800a9f4 { pdev->dev_config = cfgidx; - 800a8fa: 4b42 ldr r3, [pc, #264] @ (800aa04 ) - 800a8fc: 781b ldrb r3, [r3, #0] - 800a8fe: 461a mov r2, r3 - 800a900: 687b ldr r3, [r7, #4] - 800a902: 605a str r2, [r3, #4] + 800a9b2: 4b42 ldr r3, [pc, #264] @ (800aabc ) + 800a9b4: 781b ldrb r3, [r3, #0] + 800a9b6: 461a mov r2, r3 + 800a9b8: 687b ldr r3, [r7, #4] + 800a9ba: 605a str r2, [r3, #4] ret = USBD_SetClassConfig(pdev, cfgidx); - 800a904: 4b3f ldr r3, [pc, #252] @ (800aa04 ) - 800a906: 781b ldrb r3, [r3, #0] - 800a908: 4619 mov r1, r3 - 800a90a: 6878 ldr r0, [r7, #4] - 800a90c: f7fe ffa3 bl 8009856 - 800a910: 4603 mov r3, r0 - 800a912: 73fb strb r3, [r7, #15] + 800a9bc: 4b3f ldr r3, [pc, #252] @ (800aabc ) + 800a9be: 781b ldrb r3, [r3, #0] + 800a9c0: 4619 mov r1, r3 + 800a9c2: 6878 ldr r0, [r7, #4] + 800a9c4: f7fe ffa3 bl 800990e + 800a9c8: 4603 mov r3, r0 + 800a9ca: 73fb strb r3, [r7, #15] if (ret != USBD_OK) - 800a914: 7bfb ldrb r3, [r7, #15] - 800a916: 2b00 cmp r3, #0 - 800a918: d008 beq.n 800a92c + 800a9cc: 7bfb ldrb r3, [r7, #15] + 800a9ce: 2b00 cmp r3, #0 + 800a9d0: d008 beq.n 800a9e4 { USBD_CtlError(pdev, req); - 800a91a: 6839 ldr r1, [r7, #0] - 800a91c: 6878 ldr r0, [r7, #4] - 800a91e: f000 f962 bl 800abe6 + 800a9d2: 6839 ldr r1, [r7, #0] + 800a9d4: 6878 ldr r0, [r7, #4] + 800a9d6: f000 f962 bl 800ac9e pdev->dev_state = USBD_STATE_ADDRESSED; - 800a922: 687b ldr r3, [r7, #4] - 800a924: 2202 movs r2, #2 - 800a926: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800a9da: 687b ldr r3, [r7, #4] + 800a9dc: 2202 movs r2, #2 + 800a9de: f883 229c strb.w r2, [r3, #668] @ 0x29c } else { (void)USBD_CtlSendStatus(pdev); } break; - 800a92a: e065 b.n 800a9f8 + 800a9e2: e065 b.n 800aab0 (void)USBD_CtlSendStatus(pdev); - 800a92c: 6878 ldr r0, [r7, #4] - 800a92e: f000 fa17 bl 800ad60 + 800a9e4: 6878 ldr r0, [r7, #4] + 800a9e6: f000 fa17 bl 800ae18 pdev->dev_state = USBD_STATE_CONFIGURED; - 800a932: 687b ldr r3, [r7, #4] - 800a934: 2203 movs r2, #3 - 800a936: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800a9ea: 687b ldr r3, [r7, #4] + 800a9ec: 2203 movs r2, #3 + 800a9ee: f883 229c strb.w r2, [r3, #668] @ 0x29c break; - 800a93a: e05d b.n 800a9f8 + 800a9f2: e05d b.n 800aab0 (void)USBD_CtlSendStatus(pdev); - 800a93c: 6878 ldr r0, [r7, #4] - 800a93e: f000 fa0f bl 800ad60 + 800a9f4: 6878 ldr r0, [r7, #4] + 800a9f6: f000 fa0f bl 800ae18 break; - 800a942: e059 b.n 800a9f8 + 800a9fa: e059 b.n 800aab0 case USBD_STATE_CONFIGURED: if (cfgidx == 0U) - 800a944: 4b2f ldr r3, [pc, #188] @ (800aa04 ) - 800a946: 781b ldrb r3, [r3, #0] - 800a948: 2b00 cmp r3, #0 - 800a94a: d112 bne.n 800a972 + 800a9fc: 4b2f ldr r3, [pc, #188] @ (800aabc ) + 800a9fe: 781b ldrb r3, [r3, #0] + 800aa00: 2b00 cmp r3, #0 + 800aa02: d112 bne.n 800aa2a { pdev->dev_state = USBD_STATE_ADDRESSED; - 800a94c: 687b ldr r3, [r7, #4] - 800a94e: 2202 movs r2, #2 - 800a950: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800aa04: 687b ldr r3, [r7, #4] + 800aa06: 2202 movs r2, #2 + 800aa08: f883 229c strb.w r2, [r3, #668] @ 0x29c pdev->dev_config = cfgidx; - 800a954: 4b2b ldr r3, [pc, #172] @ (800aa04 ) - 800a956: 781b ldrb r3, [r3, #0] - 800a958: 461a mov r2, r3 - 800a95a: 687b ldr r3, [r7, #4] - 800a95c: 605a str r2, [r3, #4] + 800aa0c: 4b2b ldr r3, [pc, #172] @ (800aabc ) + 800aa0e: 781b ldrb r3, [r3, #0] + 800aa10: 461a mov r2, r3 + 800aa12: 687b ldr r3, [r7, #4] + 800aa14: 605a str r2, [r3, #4] (void)USBD_ClrClassConfig(pdev, cfgidx); - 800a95e: 4b29 ldr r3, [pc, #164] @ (800aa04 ) - 800a960: 781b ldrb r3, [r3, #0] - 800a962: 4619 mov r1, r3 - 800a964: 6878 ldr r0, [r7, #4] - 800a966: f7fe ff92 bl 800988e + 800aa16: 4b29 ldr r3, [pc, #164] @ (800aabc ) + 800aa18: 781b ldrb r3, [r3, #0] + 800aa1a: 4619 mov r1, r3 + 800aa1c: 6878 ldr r0, [r7, #4] + 800aa1e: f7fe ff92 bl 8009946 (void)USBD_CtlSendStatus(pdev); - 800a96a: 6878 ldr r0, [r7, #4] - 800a96c: f000 f9f8 bl 800ad60 + 800aa22: 6878 ldr r0, [r7, #4] + 800aa24: f000 f9f8 bl 800ae18 } else { (void)USBD_CtlSendStatus(pdev); } break; - 800a970: e042 b.n 800a9f8 + 800aa28: e042 b.n 800aab0 else if (cfgidx != pdev->dev_config) - 800a972: 4b24 ldr r3, [pc, #144] @ (800aa04 ) - 800a974: 781b ldrb r3, [r3, #0] - 800a976: 461a mov r2, r3 - 800a978: 687b ldr r3, [r7, #4] - 800a97a: 685b ldr r3, [r3, #4] - 800a97c: 429a cmp r2, r3 - 800a97e: d02a beq.n 800a9d6 + 800aa2a: 4b24 ldr r3, [pc, #144] @ (800aabc ) + 800aa2c: 781b ldrb r3, [r3, #0] + 800aa2e: 461a mov r2, r3 + 800aa30: 687b ldr r3, [r7, #4] + 800aa32: 685b ldr r3, [r3, #4] + 800aa34: 429a cmp r2, r3 + 800aa36: d02a beq.n 800aa8e (void)USBD_ClrClassConfig(pdev, (uint8_t)pdev->dev_config); - 800a980: 687b ldr r3, [r7, #4] - 800a982: 685b ldr r3, [r3, #4] - 800a984: b2db uxtb r3, r3 - 800a986: 4619 mov r1, r3 - 800a988: 6878 ldr r0, [r7, #4] - 800a98a: f7fe ff80 bl 800988e + 800aa38: 687b ldr r3, [r7, #4] + 800aa3a: 685b ldr r3, [r3, #4] + 800aa3c: b2db uxtb r3, r3 + 800aa3e: 4619 mov r1, r3 + 800aa40: 6878 ldr r0, [r7, #4] + 800aa42: f7fe ff80 bl 8009946 pdev->dev_config = cfgidx; - 800a98e: 4b1d ldr r3, [pc, #116] @ (800aa04 ) - 800a990: 781b ldrb r3, [r3, #0] - 800a992: 461a mov r2, r3 - 800a994: 687b ldr r3, [r7, #4] - 800a996: 605a str r2, [r3, #4] + 800aa46: 4b1d ldr r3, [pc, #116] @ (800aabc ) + 800aa48: 781b ldrb r3, [r3, #0] + 800aa4a: 461a mov r2, r3 + 800aa4c: 687b ldr r3, [r7, #4] + 800aa4e: 605a str r2, [r3, #4] ret = USBD_SetClassConfig(pdev, cfgidx); - 800a998: 4b1a ldr r3, [pc, #104] @ (800aa04 ) - 800a99a: 781b ldrb r3, [r3, #0] - 800a99c: 4619 mov r1, r3 - 800a99e: 6878 ldr r0, [r7, #4] - 800a9a0: f7fe ff59 bl 8009856 - 800a9a4: 4603 mov r3, r0 - 800a9a6: 73fb strb r3, [r7, #15] + 800aa50: 4b1a ldr r3, [pc, #104] @ (800aabc ) + 800aa52: 781b ldrb r3, [r3, #0] + 800aa54: 4619 mov r1, r3 + 800aa56: 6878 ldr r0, [r7, #4] + 800aa58: f7fe ff59 bl 800990e + 800aa5c: 4603 mov r3, r0 + 800aa5e: 73fb strb r3, [r7, #15] if (ret != USBD_OK) - 800a9a8: 7bfb ldrb r3, [r7, #15] - 800a9aa: 2b00 cmp r3, #0 - 800a9ac: d00f beq.n 800a9ce + 800aa60: 7bfb ldrb r3, [r7, #15] + 800aa62: 2b00 cmp r3, #0 + 800aa64: d00f beq.n 800aa86 USBD_CtlError(pdev, req); - 800a9ae: 6839 ldr r1, [r7, #0] - 800a9b0: 6878 ldr r0, [r7, #4] - 800a9b2: f000 f918 bl 800abe6 + 800aa66: 6839 ldr r1, [r7, #0] + 800aa68: 6878 ldr r0, [r7, #4] + 800aa6a: f000 f918 bl 800ac9e (void)USBD_ClrClassConfig(pdev, (uint8_t)pdev->dev_config); - 800a9b6: 687b ldr r3, [r7, #4] - 800a9b8: 685b ldr r3, [r3, #4] - 800a9ba: b2db uxtb r3, r3 - 800a9bc: 4619 mov r1, r3 - 800a9be: 6878 ldr r0, [r7, #4] - 800a9c0: f7fe ff65 bl 800988e + 800aa6e: 687b ldr r3, [r7, #4] + 800aa70: 685b ldr r3, [r3, #4] + 800aa72: b2db uxtb r3, r3 + 800aa74: 4619 mov r1, r3 + 800aa76: 6878 ldr r0, [r7, #4] + 800aa78: f7fe ff65 bl 8009946 pdev->dev_state = USBD_STATE_ADDRESSED; - 800a9c4: 687b ldr r3, [r7, #4] - 800a9c6: 2202 movs r2, #2 - 800a9c8: f883 229c strb.w r2, [r3, #668] @ 0x29c + 800aa7c: 687b ldr r3, [r7, #4] + 800aa7e: 2202 movs r2, #2 + 800aa80: f883 229c strb.w r2, [r3, #668] @ 0x29c break; - 800a9cc: e014 b.n 800a9f8 + 800aa84: e014 b.n 800aab0 (void)USBD_CtlSendStatus(pdev); - 800a9ce: 6878 ldr r0, [r7, #4] - 800a9d0: f000 f9c6 bl 800ad60 + 800aa86: 6878 ldr r0, [r7, #4] + 800aa88: f000 f9c6 bl 800ae18 break; - 800a9d4: e010 b.n 800a9f8 + 800aa8c: e010 b.n 800aab0 (void)USBD_CtlSendStatus(pdev); - 800a9d6: 6878 ldr r0, [r7, #4] - 800a9d8: f000 f9c2 bl 800ad60 + 800aa8e: 6878 ldr r0, [r7, #4] + 800aa90: f000 f9c2 bl 800ae18 break; - 800a9dc: e00c b.n 800a9f8 + 800aa94: e00c b.n 800aab0 default: USBD_CtlError(pdev, req); - 800a9de: 6839 ldr r1, [r7, #0] - 800a9e0: 6878 ldr r0, [r7, #4] - 800a9e2: f000 f900 bl 800abe6 + 800aa96: 6839 ldr r1, [r7, #0] + 800aa98: 6878 ldr r0, [r7, #4] + 800aa9a: f000 f900 bl 800ac9e (void)USBD_ClrClassConfig(pdev, cfgidx); - 800a9e6: 4b07 ldr r3, [pc, #28] @ (800aa04 ) - 800a9e8: 781b ldrb r3, [r3, #0] - 800a9ea: 4619 mov r1, r3 - 800a9ec: 6878 ldr r0, [r7, #4] - 800a9ee: f7fe ff4e bl 800988e + 800aa9e: 4b07 ldr r3, [pc, #28] @ (800aabc ) + 800aaa0: 781b ldrb r3, [r3, #0] + 800aaa2: 4619 mov r1, r3 + 800aaa4: 6878 ldr r0, [r7, #4] + 800aaa6: f7fe ff4e bl 8009946 ret = USBD_FAIL; - 800a9f2: 2303 movs r3, #3 - 800a9f4: 73fb strb r3, [r7, #15] + 800aaaa: 2303 movs r3, #3 + 800aaac: 73fb strb r3, [r7, #15] break; - 800a9f6: bf00 nop + 800aaae: bf00 nop } return ret; - 800a9f8: 7bfb ldrb r3, [r7, #15] + 800aab0: 7bfb ldrb r3, [r7, #15] } - 800a9fa: 4618 mov r0, r3 - 800a9fc: 3710 adds r7, #16 - 800a9fe: 46bd mov sp, r7 - 800aa00: bd80 pop {r7, pc} - 800aa02: bf00 nop - 800aa04: 20000f04 .word 0x20000f04 + 800aab2: 4618 mov r0, r3 + 800aab4: 3710 adds r7, #16 + 800aab6: 46bd mov sp, r7 + 800aab8: bd80 pop {r7, pc} + 800aaba: bf00 nop + 800aabc: 20000f04 .word 0x20000f04 -0800aa08 : +0800aac0 : * @param pdev: device instance * @param req: usb request * @retval None */ static void USBD_GetConfig(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 800aa08: b580 push {r7, lr} - 800aa0a: b082 sub sp, #8 - 800aa0c: af00 add r7, sp, #0 - 800aa0e: 6078 str r0, [r7, #4] - 800aa10: 6039 str r1, [r7, #0] + 800aac0: b580 push {r7, lr} + 800aac2: b082 sub sp, #8 + 800aac4: af00 add r7, sp, #0 + 800aac6: 6078 str r0, [r7, #4] + 800aac8: 6039 str r1, [r7, #0] if (req->wLength != 1U) - 800aa12: 683b ldr r3, [r7, #0] - 800aa14: 88db ldrh r3, [r3, #6] - 800aa16: 2b01 cmp r3, #1 - 800aa18: d004 beq.n 800aa24 + 800aaca: 683b ldr r3, [r7, #0] + 800aacc: 88db ldrh r3, [r3, #6] + 800aace: 2b01 cmp r3, #1 + 800aad0: d004 beq.n 800aadc { USBD_CtlError(pdev, req); - 800aa1a: 6839 ldr r1, [r7, #0] - 800aa1c: 6878 ldr r0, [r7, #4] - 800aa1e: f000 f8e2 bl 800abe6 + 800aad2: 6839 ldr r1, [r7, #0] + 800aad4: 6878 ldr r0, [r7, #4] + 800aad6: f000 f8e2 bl 800ac9e default: USBD_CtlError(pdev, req); break; } } } - 800aa22: e023 b.n 800aa6c + 800aada: e023 b.n 800ab24 switch (pdev->dev_state) - 800aa24: 687b ldr r3, [r7, #4] - 800aa26: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800aa2a: b2db uxtb r3, r3 - 800aa2c: 2b02 cmp r3, #2 - 800aa2e: dc02 bgt.n 800aa36 - 800aa30: 2b00 cmp r3, #0 - 800aa32: dc03 bgt.n 800aa3c - 800aa34: e015 b.n 800aa62 - 800aa36: 2b03 cmp r3, #3 - 800aa38: d00b beq.n 800aa52 - 800aa3a: e012 b.n 800aa62 + 800aadc: 687b ldr r3, [r7, #4] + 800aade: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800aae2: b2db uxtb r3, r3 + 800aae4: 2b02 cmp r3, #2 + 800aae6: dc02 bgt.n 800aaee + 800aae8: 2b00 cmp r3, #0 + 800aaea: dc03 bgt.n 800aaf4 + 800aaec: e015 b.n 800ab1a + 800aaee: 2b03 cmp r3, #3 + 800aaf0: d00b beq.n 800ab0a + 800aaf2: e012 b.n 800ab1a pdev->dev_default_config = 0U; - 800aa3c: 687b ldr r3, [r7, #4] - 800aa3e: 2200 movs r2, #0 - 800aa40: 609a str r2, [r3, #8] + 800aaf4: 687b ldr r3, [r7, #4] + 800aaf6: 2200 movs r2, #0 + 800aaf8: 609a str r2, [r3, #8] (void)USBD_CtlSendData(pdev, (uint8_t *)&pdev->dev_default_config, 1U); - 800aa42: 687b ldr r3, [r7, #4] - 800aa44: 3308 adds r3, #8 - 800aa46: 2201 movs r2, #1 - 800aa48: 4619 mov r1, r3 - 800aa4a: 6878 ldr r0, [r7, #4] - 800aa4c: f000 f948 bl 800ace0 + 800aafa: 687b ldr r3, [r7, #4] + 800aafc: 3308 adds r3, #8 + 800aafe: 2201 movs r2, #1 + 800ab00: 4619 mov r1, r3 + 800ab02: 6878 ldr r0, [r7, #4] + 800ab04: f000 f948 bl 800ad98 break; - 800aa50: e00c b.n 800aa6c + 800ab08: e00c b.n 800ab24 (void)USBD_CtlSendData(pdev, (uint8_t *)&pdev->dev_config, 1U); - 800aa52: 687b ldr r3, [r7, #4] - 800aa54: 3304 adds r3, #4 - 800aa56: 2201 movs r2, #1 - 800aa58: 4619 mov r1, r3 - 800aa5a: 6878 ldr r0, [r7, #4] - 800aa5c: f000 f940 bl 800ace0 + 800ab0a: 687b ldr r3, [r7, #4] + 800ab0c: 3304 adds r3, #4 + 800ab0e: 2201 movs r2, #1 + 800ab10: 4619 mov r1, r3 + 800ab12: 6878 ldr r0, [r7, #4] + 800ab14: f000 f940 bl 800ad98 break; - 800aa60: e004 b.n 800aa6c + 800ab18: e004 b.n 800ab24 USBD_CtlError(pdev, req); - 800aa62: 6839 ldr r1, [r7, #0] - 800aa64: 6878 ldr r0, [r7, #4] - 800aa66: f000 f8be bl 800abe6 + 800ab1a: 6839 ldr r1, [r7, #0] + 800ab1c: 6878 ldr r0, [r7, #4] + 800ab1e: f000 f8be bl 800ac9e break; - 800aa6a: bf00 nop + 800ab22: bf00 nop } - 800aa6c: bf00 nop - 800aa6e: 3708 adds r7, #8 - 800aa70: 46bd mov sp, r7 - 800aa72: bd80 pop {r7, pc} + 800ab24: bf00 nop + 800ab26: 3708 adds r7, #8 + 800ab28: 46bd mov sp, r7 + 800ab2a: bd80 pop {r7, pc} -0800aa74 : +0800ab2c : * @param pdev: device instance * @param req: usb request * @retval None */ static void USBD_GetStatus(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 800aa74: b580 push {r7, lr} - 800aa76: b082 sub sp, #8 - 800aa78: af00 add r7, sp, #0 - 800aa7a: 6078 str r0, [r7, #4] - 800aa7c: 6039 str r1, [r7, #0] + 800ab2c: b580 push {r7, lr} + 800ab2e: b082 sub sp, #8 + 800ab30: af00 add r7, sp, #0 + 800ab32: 6078 str r0, [r7, #4] + 800ab34: 6039 str r1, [r7, #0] switch (pdev->dev_state) - 800aa7e: 687b ldr r3, [r7, #4] - 800aa80: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800aa84: b2db uxtb r3, r3 - 800aa86: 3b01 subs r3, #1 - 800aa88: 2b02 cmp r3, #2 - 800aa8a: d81e bhi.n 800aaca + 800ab36: 687b ldr r3, [r7, #4] + 800ab38: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800ab3c: b2db uxtb r3, r3 + 800ab3e: 3b01 subs r3, #1 + 800ab40: 2b02 cmp r3, #2 + 800ab42: d81e bhi.n 800ab82 { case USBD_STATE_DEFAULT: case USBD_STATE_ADDRESSED: case USBD_STATE_CONFIGURED: if (req->wLength != 0x2U) - 800aa8c: 683b ldr r3, [r7, #0] - 800aa8e: 88db ldrh r3, [r3, #6] - 800aa90: 2b02 cmp r3, #2 - 800aa92: d004 beq.n 800aa9e + 800ab44: 683b ldr r3, [r7, #0] + 800ab46: 88db ldrh r3, [r3, #6] + 800ab48: 2b02 cmp r3, #2 + 800ab4a: d004 beq.n 800ab56 { USBD_CtlError(pdev, req); - 800aa94: 6839 ldr r1, [r7, #0] - 800aa96: 6878 ldr r0, [r7, #4] - 800aa98: f000 f8a5 bl 800abe6 + 800ab4c: 6839 ldr r1, [r7, #0] + 800ab4e: 6878 ldr r0, [r7, #4] + 800ab50: f000 f8a5 bl 800ac9e break; - 800aa9c: e01a b.n 800aad4 + 800ab54: e01a b.n 800ab8c } #if (USBD_SELF_POWERED == 1U) pdev->dev_config_status = USB_CONFIG_SELF_POWERED; - 800aa9e: 687b ldr r3, [r7, #4] - 800aaa0: 2201 movs r2, #1 - 800aaa2: 60da str r2, [r3, #12] + 800ab56: 687b ldr r3, [r7, #4] + 800ab58: 2201 movs r2, #1 + 800ab5a: 60da str r2, [r3, #12] #else pdev->dev_config_status = 0U; #endif /* USBD_SELF_POWERED */ if (pdev->dev_remote_wakeup != 0U) - 800aaa4: 687b ldr r3, [r7, #4] - 800aaa6: f8d3 32a4 ldr.w r3, [r3, #676] @ 0x2a4 - 800aaaa: 2b00 cmp r3, #0 - 800aaac: d005 beq.n 800aaba + 800ab5c: 687b ldr r3, [r7, #4] + 800ab5e: f8d3 32a4 ldr.w r3, [r3, #676] @ 0x2a4 + 800ab62: 2b00 cmp r3, #0 + 800ab64: d005 beq.n 800ab72 { pdev->dev_config_status |= USB_CONFIG_REMOTE_WAKEUP; - 800aaae: 687b ldr r3, [r7, #4] - 800aab0: 68db ldr r3, [r3, #12] - 800aab2: f043 0202 orr.w r2, r3, #2 - 800aab6: 687b ldr r3, [r7, #4] - 800aab8: 60da str r2, [r3, #12] + 800ab66: 687b ldr r3, [r7, #4] + 800ab68: 68db ldr r3, [r3, #12] + 800ab6a: f043 0202 orr.w r2, r3, #2 + 800ab6e: 687b ldr r3, [r7, #4] + 800ab70: 60da str r2, [r3, #12] } (void)USBD_CtlSendData(pdev, (uint8_t *)&pdev->dev_config_status, 2U); - 800aaba: 687b ldr r3, [r7, #4] - 800aabc: 330c adds r3, #12 - 800aabe: 2202 movs r2, #2 - 800aac0: 4619 mov r1, r3 - 800aac2: 6878 ldr r0, [r7, #4] - 800aac4: f000 f90c bl 800ace0 + 800ab72: 687b ldr r3, [r7, #4] + 800ab74: 330c adds r3, #12 + 800ab76: 2202 movs r2, #2 + 800ab78: 4619 mov r1, r3 + 800ab7a: 6878 ldr r0, [r7, #4] + 800ab7c: f000 f90c bl 800ad98 break; - 800aac8: e004 b.n 800aad4 + 800ab80: e004 b.n 800ab8c default: USBD_CtlError(pdev, req); - 800aaca: 6839 ldr r1, [r7, #0] - 800aacc: 6878 ldr r0, [r7, #4] - 800aace: f000 f88a bl 800abe6 + 800ab82: 6839 ldr r1, [r7, #0] + 800ab84: 6878 ldr r0, [r7, #4] + 800ab86: f000 f88a bl 800ac9e break; - 800aad2: bf00 nop + 800ab8a: bf00 nop } } - 800aad4: bf00 nop - 800aad6: 3708 adds r7, #8 - 800aad8: 46bd mov sp, r7 - 800aada: bd80 pop {r7, pc} + 800ab8c: bf00 nop + 800ab8e: 3708 adds r7, #8 + 800ab90: 46bd mov sp, r7 + 800ab92: bd80 pop {r7, pc} -0800aadc : +0800ab94 : * @param pdev: device instance * @param req: usb request * @retval None */ static void USBD_SetFeature(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 800aadc: b580 push {r7, lr} - 800aade: b082 sub sp, #8 - 800aae0: af00 add r7, sp, #0 - 800aae2: 6078 str r0, [r7, #4] - 800aae4: 6039 str r1, [r7, #0] + 800ab94: b580 push {r7, lr} + 800ab96: b082 sub sp, #8 + 800ab98: af00 add r7, sp, #0 + 800ab9a: 6078 str r0, [r7, #4] + 800ab9c: 6039 str r1, [r7, #0] if (req->wValue == USB_FEATURE_REMOTE_WAKEUP) - 800aae6: 683b ldr r3, [r7, #0] - 800aae8: 885b ldrh r3, [r3, #2] - 800aaea: 2b01 cmp r3, #1 - 800aaec: d107 bne.n 800aafe + 800ab9e: 683b ldr r3, [r7, #0] + 800aba0: 885b ldrh r3, [r3, #2] + 800aba2: 2b01 cmp r3, #1 + 800aba4: d107 bne.n 800abb6 { pdev->dev_remote_wakeup = 1U; - 800aaee: 687b ldr r3, [r7, #4] - 800aaf0: 2201 movs r2, #1 - 800aaf2: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 + 800aba6: 687b ldr r3, [r7, #4] + 800aba8: 2201 movs r2, #1 + 800abaa: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 (void)USBD_CtlSendStatus(pdev); - 800aaf6: 6878 ldr r0, [r7, #4] - 800aaf8: f000 f932 bl 800ad60 + 800abae: 6878 ldr r0, [r7, #4] + 800abb0: f000 f932 bl 800ae18 } else { USBD_CtlError(pdev, req); } } - 800aafc: e013 b.n 800ab26 + 800abb4: e013 b.n 800abde else if (req->wValue == USB_FEATURE_TEST_MODE) - 800aafe: 683b ldr r3, [r7, #0] - 800ab00: 885b ldrh r3, [r3, #2] - 800ab02: 2b02 cmp r3, #2 - 800ab04: d10b bne.n 800ab1e + 800abb6: 683b ldr r3, [r7, #0] + 800abb8: 885b ldrh r3, [r3, #2] + 800abba: 2b02 cmp r3, #2 + 800abbc: d10b bne.n 800abd6 pdev->dev_test_mode = (uint8_t)(req->wIndex >> 8); - 800ab06: 683b ldr r3, [r7, #0] - 800ab08: 889b ldrh r3, [r3, #4] - 800ab0a: 0a1b lsrs r3, r3, #8 - 800ab0c: b29b uxth r3, r3 - 800ab0e: b2da uxtb r2, r3 - 800ab10: 687b ldr r3, [r7, #4] - 800ab12: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 + 800abbe: 683b ldr r3, [r7, #0] + 800abc0: 889b ldrh r3, [r3, #4] + 800abc2: 0a1b lsrs r3, r3, #8 + 800abc4: b29b uxth r3, r3 + 800abc6: b2da uxtb r2, r3 + 800abc8: 687b ldr r3, [r7, #4] + 800abca: f883 22a0 strb.w r2, [r3, #672] @ 0x2a0 (void)USBD_CtlSendStatus(pdev); - 800ab16: 6878 ldr r0, [r7, #4] - 800ab18: f000 f922 bl 800ad60 + 800abce: 6878 ldr r0, [r7, #4] + 800abd0: f000 f922 bl 800ae18 } - 800ab1c: e003 b.n 800ab26 + 800abd4: e003 b.n 800abde USBD_CtlError(pdev, req); - 800ab1e: 6839 ldr r1, [r7, #0] - 800ab20: 6878 ldr r0, [r7, #4] - 800ab22: f000 f860 bl 800abe6 + 800abd6: 6839 ldr r1, [r7, #0] + 800abd8: 6878 ldr r0, [r7, #4] + 800abda: f000 f860 bl 800ac9e } - 800ab26: bf00 nop - 800ab28: 3708 adds r7, #8 - 800ab2a: 46bd mov sp, r7 - 800ab2c: bd80 pop {r7, pc} + 800abde: bf00 nop + 800abe0: 3708 adds r7, #8 + 800abe2: 46bd mov sp, r7 + 800abe4: bd80 pop {r7, pc} -0800ab2e : +0800abe6 : * @param pdev: device instance * @param req: usb request * @retval None */ static void USBD_ClrFeature(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 800ab2e: b580 push {r7, lr} - 800ab30: b082 sub sp, #8 - 800ab32: af00 add r7, sp, #0 - 800ab34: 6078 str r0, [r7, #4] - 800ab36: 6039 str r1, [r7, #0] + 800abe6: b580 push {r7, lr} + 800abe8: b082 sub sp, #8 + 800abea: af00 add r7, sp, #0 + 800abec: 6078 str r0, [r7, #4] + 800abee: 6039 str r1, [r7, #0] switch (pdev->dev_state) - 800ab38: 687b ldr r3, [r7, #4] - 800ab3a: f893 329c ldrb.w r3, [r3, #668] @ 0x29c - 800ab3e: b2db uxtb r3, r3 - 800ab40: 3b01 subs r3, #1 - 800ab42: 2b02 cmp r3, #2 - 800ab44: d80b bhi.n 800ab5e + 800abf0: 687b ldr r3, [r7, #4] + 800abf2: f893 329c ldrb.w r3, [r3, #668] @ 0x29c + 800abf6: b2db uxtb r3, r3 + 800abf8: 3b01 subs r3, #1 + 800abfa: 2b02 cmp r3, #2 + 800abfc: d80b bhi.n 800ac16 { case USBD_STATE_DEFAULT: case USBD_STATE_ADDRESSED: case USBD_STATE_CONFIGURED: if (req->wValue == USB_FEATURE_REMOTE_WAKEUP) - 800ab46: 683b ldr r3, [r7, #0] - 800ab48: 885b ldrh r3, [r3, #2] - 800ab4a: 2b01 cmp r3, #1 - 800ab4c: d10c bne.n 800ab68 + 800abfe: 683b ldr r3, [r7, #0] + 800ac00: 885b ldrh r3, [r3, #2] + 800ac02: 2b01 cmp r3, #1 + 800ac04: d10c bne.n 800ac20 { pdev->dev_remote_wakeup = 0U; - 800ab4e: 687b ldr r3, [r7, #4] - 800ab50: 2200 movs r2, #0 - 800ab52: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 + 800ac06: 687b ldr r3, [r7, #4] + 800ac08: 2200 movs r2, #0 + 800ac0a: f8c3 22a4 str.w r2, [r3, #676] @ 0x2a4 (void)USBD_CtlSendStatus(pdev); - 800ab56: 6878 ldr r0, [r7, #4] - 800ab58: f000 f902 bl 800ad60 + 800ac0e: 6878 ldr r0, [r7, #4] + 800ac10: f000 f902 bl 800ae18 } break; - 800ab5c: e004 b.n 800ab68 + 800ac14: e004 b.n 800ac20 default: USBD_CtlError(pdev, req); - 800ab5e: 6839 ldr r1, [r7, #0] - 800ab60: 6878 ldr r0, [r7, #4] - 800ab62: f000 f840 bl 800abe6 + 800ac16: 6839 ldr r1, [r7, #0] + 800ac18: 6878 ldr r0, [r7, #4] + 800ac1a: f000 f840 bl 800ac9e break; - 800ab66: e000 b.n 800ab6a + 800ac1e: e000 b.n 800ac22 break; - 800ab68: bf00 nop + 800ac20: bf00 nop } } - 800ab6a: bf00 nop - 800ab6c: 3708 adds r7, #8 - 800ab6e: 46bd mov sp, r7 - 800ab70: bd80 pop {r7, pc} + 800ac22: bf00 nop + 800ac24: 3708 adds r7, #8 + 800ac26: 46bd mov sp, r7 + 800ac28: bd80 pop {r7, pc} -0800ab72 : +0800ac2a : * @param req: usb request * @param pdata: setup data pointer * @retval None */ void USBD_ParseSetupRequest(USBD_SetupReqTypedef *req, uint8_t *pdata) { - 800ab72: b580 push {r7, lr} - 800ab74: b084 sub sp, #16 - 800ab76: af00 add r7, sp, #0 - 800ab78: 6078 str r0, [r7, #4] - 800ab7a: 6039 str r1, [r7, #0] + 800ac2a: b580 push {r7, lr} + 800ac2c: b084 sub sp, #16 + 800ac2e: af00 add r7, sp, #0 + 800ac30: 6078 str r0, [r7, #4] + 800ac32: 6039 str r1, [r7, #0] uint8_t *pbuff = pdata; - 800ab7c: 683b ldr r3, [r7, #0] - 800ab7e: 60fb str r3, [r7, #12] + 800ac34: 683b ldr r3, [r7, #0] + 800ac36: 60fb str r3, [r7, #12] req->bmRequest = *(uint8_t *)(pbuff); - 800ab80: 68fb ldr r3, [r7, #12] - 800ab82: 781a ldrb r2, [r3, #0] - 800ab84: 687b ldr r3, [r7, #4] - 800ab86: 701a strb r2, [r3, #0] + 800ac38: 68fb ldr r3, [r7, #12] + 800ac3a: 781a ldrb r2, [r3, #0] + 800ac3c: 687b ldr r3, [r7, #4] + 800ac3e: 701a strb r2, [r3, #0] pbuff++; - 800ab88: 68fb ldr r3, [r7, #12] - 800ab8a: 3301 adds r3, #1 - 800ab8c: 60fb str r3, [r7, #12] + 800ac40: 68fb ldr r3, [r7, #12] + 800ac42: 3301 adds r3, #1 + 800ac44: 60fb str r3, [r7, #12] req->bRequest = *(uint8_t *)(pbuff); - 800ab8e: 68fb ldr r3, [r7, #12] - 800ab90: 781a ldrb r2, [r3, #0] - 800ab92: 687b ldr r3, [r7, #4] - 800ab94: 705a strb r2, [r3, #1] + 800ac46: 68fb ldr r3, [r7, #12] + 800ac48: 781a ldrb r2, [r3, #0] + 800ac4a: 687b ldr r3, [r7, #4] + 800ac4c: 705a strb r2, [r3, #1] pbuff++; - 800ab96: 68fb ldr r3, [r7, #12] - 800ab98: 3301 adds r3, #1 - 800ab9a: 60fb str r3, [r7, #12] + 800ac4e: 68fb ldr r3, [r7, #12] + 800ac50: 3301 adds r3, #1 + 800ac52: 60fb str r3, [r7, #12] req->wValue = SWAPBYTE(pbuff); - 800ab9c: 68f8 ldr r0, [r7, #12] - 800ab9e: f7ff fa13 bl 8009fc8 - 800aba2: 4603 mov r3, r0 - 800aba4: 461a mov r2, r3 - 800aba6: 687b ldr r3, [r7, #4] - 800aba8: 805a strh r2, [r3, #2] + 800ac54: 68f8 ldr r0, [r7, #12] + 800ac56: f7ff fa13 bl 800a080 + 800ac5a: 4603 mov r3, r0 + 800ac5c: 461a mov r2, r3 + 800ac5e: 687b ldr r3, [r7, #4] + 800ac60: 805a strh r2, [r3, #2] pbuff++; - 800abaa: 68fb ldr r3, [r7, #12] - 800abac: 3301 adds r3, #1 - 800abae: 60fb str r3, [r7, #12] + 800ac62: 68fb ldr r3, [r7, #12] + 800ac64: 3301 adds r3, #1 + 800ac66: 60fb str r3, [r7, #12] pbuff++; - 800abb0: 68fb ldr r3, [r7, #12] - 800abb2: 3301 adds r3, #1 - 800abb4: 60fb str r3, [r7, #12] + 800ac68: 68fb ldr r3, [r7, #12] + 800ac6a: 3301 adds r3, #1 + 800ac6c: 60fb str r3, [r7, #12] req->wIndex = SWAPBYTE(pbuff); - 800abb6: 68f8 ldr r0, [r7, #12] - 800abb8: f7ff fa06 bl 8009fc8 - 800abbc: 4603 mov r3, r0 - 800abbe: 461a mov r2, r3 - 800abc0: 687b ldr r3, [r7, #4] - 800abc2: 809a strh r2, [r3, #4] + 800ac6e: 68f8 ldr r0, [r7, #12] + 800ac70: f7ff fa06 bl 800a080 + 800ac74: 4603 mov r3, r0 + 800ac76: 461a mov r2, r3 + 800ac78: 687b ldr r3, [r7, #4] + 800ac7a: 809a strh r2, [r3, #4] pbuff++; - 800abc4: 68fb ldr r3, [r7, #12] - 800abc6: 3301 adds r3, #1 - 800abc8: 60fb str r3, [r7, #12] + 800ac7c: 68fb ldr r3, [r7, #12] + 800ac7e: 3301 adds r3, #1 + 800ac80: 60fb str r3, [r7, #12] pbuff++; - 800abca: 68fb ldr r3, [r7, #12] - 800abcc: 3301 adds r3, #1 - 800abce: 60fb str r3, [r7, #12] + 800ac82: 68fb ldr r3, [r7, #12] + 800ac84: 3301 adds r3, #1 + 800ac86: 60fb str r3, [r7, #12] req->wLength = SWAPBYTE(pbuff); - 800abd0: 68f8 ldr r0, [r7, #12] - 800abd2: f7ff f9f9 bl 8009fc8 - 800abd6: 4603 mov r3, r0 - 800abd8: 461a mov r2, r3 - 800abda: 687b ldr r3, [r7, #4] - 800abdc: 80da strh r2, [r3, #6] + 800ac88: 68f8 ldr r0, [r7, #12] + 800ac8a: f7ff f9f9 bl 800a080 + 800ac8e: 4603 mov r3, r0 + 800ac90: 461a mov r2, r3 + 800ac92: 687b ldr r3, [r7, #4] + 800ac94: 80da strh r2, [r3, #6] } - 800abde: bf00 nop - 800abe0: 3710 adds r7, #16 - 800abe2: 46bd mov sp, r7 - 800abe4: bd80 pop {r7, pc} + 800ac96: bf00 nop + 800ac98: 3710 adds r7, #16 + 800ac9a: 46bd mov sp, r7 + 800ac9c: bd80 pop {r7, pc} -0800abe6 : +0800ac9e : * @param pdev: device instance * @param req: usb request * @retval None */ void USBD_CtlError(USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req) { - 800abe6: b580 push {r7, lr} - 800abe8: b082 sub sp, #8 - 800abea: af00 add r7, sp, #0 - 800abec: 6078 str r0, [r7, #4] - 800abee: 6039 str r1, [r7, #0] + 800ac9e: b580 push {r7, lr} + 800aca0: b082 sub sp, #8 + 800aca2: af00 add r7, sp, #0 + 800aca4: 6078 str r0, [r7, #4] + 800aca6: 6039 str r1, [r7, #0] UNUSED(req); (void)USBD_LL_StallEP(pdev, 0x80U); - 800abf0: 2180 movs r1, #128 @ 0x80 - 800abf2: 6878 ldr r0, [r7, #4] - 800abf4: f000 fc2a bl 800b44c + 800aca8: 2180 movs r1, #128 @ 0x80 + 800acaa: 6878 ldr r0, [r7, #4] + 800acac: f000 fc2a bl 800b504 (void)USBD_LL_StallEP(pdev, 0U); - 800abf8: 2100 movs r1, #0 - 800abfa: 6878 ldr r0, [r7, #4] - 800abfc: f000 fc26 bl 800b44c + 800acb0: 2100 movs r1, #0 + 800acb2: 6878 ldr r0, [r7, #4] + 800acb4: f000 fc26 bl 800b504 } - 800ac00: bf00 nop - 800ac02: 3708 adds r7, #8 - 800ac04: 46bd mov sp, r7 - 800ac06: bd80 pop {r7, pc} + 800acb8: bf00 nop + 800acba: 3708 adds r7, #8 + 800acbc: 46bd mov sp, r7 + 800acbe: bd80 pop {r7, pc} -0800ac08 : +0800acc0 : * @param unicode : Formatted string buffer (unicode) * @param len : descriptor length * @retval None */ void USBD_GetString(uint8_t *desc, uint8_t *unicode, uint16_t *len) { - 800ac08: b580 push {r7, lr} - 800ac0a: b086 sub sp, #24 - 800ac0c: af00 add r7, sp, #0 - 800ac0e: 60f8 str r0, [r7, #12] - 800ac10: 60b9 str r1, [r7, #8] - 800ac12: 607a str r2, [r7, #4] + 800acc0: b580 push {r7, lr} + 800acc2: b086 sub sp, #24 + 800acc4: af00 add r7, sp, #0 + 800acc6: 60f8 str r0, [r7, #12] + 800acc8: 60b9 str r1, [r7, #8] + 800acca: 607a str r2, [r7, #4] uint8_t idx = 0U; - 800ac14: 2300 movs r3, #0 - 800ac16: 75fb strb r3, [r7, #23] + 800accc: 2300 movs r3, #0 + 800acce: 75fb strb r3, [r7, #23] uint8_t *pdesc; if (desc == NULL) - 800ac18: 68fb ldr r3, [r7, #12] - 800ac1a: 2b00 cmp r3, #0 - 800ac1c: d042 beq.n 800aca4 + 800acd0: 68fb ldr r3, [r7, #12] + 800acd2: 2b00 cmp r3, #0 + 800acd4: d042 beq.n 800ad5c { return; } pdesc = desc; - 800ac1e: 68fb ldr r3, [r7, #12] - 800ac20: 613b str r3, [r7, #16] + 800acd6: 68fb ldr r3, [r7, #12] + 800acd8: 613b str r3, [r7, #16] *len = MIN(USBD_MAX_STR_DESC_SIZ, ((uint16_t)USBD_GetLen(pdesc) * 2U) + 2U); - 800ac22: 6938 ldr r0, [r7, #16] - 800ac24: f000 f842 bl 800acac - 800ac28: 4603 mov r3, r0 - 800ac2a: 3301 adds r3, #1 - 800ac2c: 005b lsls r3, r3, #1 - 800ac2e: f5b3 7f00 cmp.w r3, #512 @ 0x200 - 800ac32: d808 bhi.n 800ac46 - 800ac34: 6938 ldr r0, [r7, #16] - 800ac36: f000 f839 bl 800acac - 800ac3a: 4603 mov r3, r0 - 800ac3c: 3301 adds r3, #1 - 800ac3e: b29b uxth r3, r3 - 800ac40: 005b lsls r3, r3, #1 - 800ac42: b29a uxth r2, r3 - 800ac44: e001 b.n 800ac4a - 800ac46: f44f 7200 mov.w r2, #512 @ 0x200 - 800ac4a: 687b ldr r3, [r7, #4] - 800ac4c: 801a strh r2, [r3, #0] + 800acda: 6938 ldr r0, [r7, #16] + 800acdc: f000 f842 bl 800ad64 + 800ace0: 4603 mov r3, r0 + 800ace2: 3301 adds r3, #1 + 800ace4: 005b lsls r3, r3, #1 + 800ace6: f5b3 7f00 cmp.w r3, #512 @ 0x200 + 800acea: d808 bhi.n 800acfe + 800acec: 6938 ldr r0, [r7, #16] + 800acee: f000 f839 bl 800ad64 + 800acf2: 4603 mov r3, r0 + 800acf4: 3301 adds r3, #1 + 800acf6: b29b uxth r3, r3 + 800acf8: 005b lsls r3, r3, #1 + 800acfa: b29a uxth r2, r3 + 800acfc: e001 b.n 800ad02 + 800acfe: f44f 7200 mov.w r2, #512 @ 0x200 + 800ad02: 687b ldr r3, [r7, #4] + 800ad04: 801a strh r2, [r3, #0] unicode[idx] = *(uint8_t *)len; - 800ac4e: 7dfb ldrb r3, [r7, #23] - 800ac50: 68ba ldr r2, [r7, #8] - 800ac52: 4413 add r3, r2 - 800ac54: 687a ldr r2, [r7, #4] - 800ac56: 7812 ldrb r2, [r2, #0] - 800ac58: 701a strb r2, [r3, #0] + 800ad06: 7dfb ldrb r3, [r7, #23] + 800ad08: 68ba ldr r2, [r7, #8] + 800ad0a: 4413 add r3, r2 + 800ad0c: 687a ldr r2, [r7, #4] + 800ad0e: 7812 ldrb r2, [r2, #0] + 800ad10: 701a strb r2, [r3, #0] idx++; - 800ac5a: 7dfb ldrb r3, [r7, #23] - 800ac5c: 3301 adds r3, #1 - 800ac5e: 75fb strb r3, [r7, #23] + 800ad12: 7dfb ldrb r3, [r7, #23] + 800ad14: 3301 adds r3, #1 + 800ad16: 75fb strb r3, [r7, #23] unicode[idx] = USB_DESC_TYPE_STRING; - 800ac60: 7dfb ldrb r3, [r7, #23] - 800ac62: 68ba ldr r2, [r7, #8] - 800ac64: 4413 add r3, r2 - 800ac66: 2203 movs r2, #3 - 800ac68: 701a strb r2, [r3, #0] + 800ad18: 7dfb ldrb r3, [r7, #23] + 800ad1a: 68ba ldr r2, [r7, #8] + 800ad1c: 4413 add r3, r2 + 800ad1e: 2203 movs r2, #3 + 800ad20: 701a strb r2, [r3, #0] idx++; - 800ac6a: 7dfb ldrb r3, [r7, #23] - 800ac6c: 3301 adds r3, #1 - 800ac6e: 75fb strb r3, [r7, #23] + 800ad22: 7dfb ldrb r3, [r7, #23] + 800ad24: 3301 adds r3, #1 + 800ad26: 75fb strb r3, [r7, #23] while (*pdesc != (uint8_t)'\0') - 800ac70: e013 b.n 800ac9a + 800ad28: e013 b.n 800ad52 { unicode[idx] = *pdesc; - 800ac72: 7dfb ldrb r3, [r7, #23] - 800ac74: 68ba ldr r2, [r7, #8] - 800ac76: 4413 add r3, r2 - 800ac78: 693a ldr r2, [r7, #16] - 800ac7a: 7812 ldrb r2, [r2, #0] - 800ac7c: 701a strb r2, [r3, #0] + 800ad2a: 7dfb ldrb r3, [r7, #23] + 800ad2c: 68ba ldr r2, [r7, #8] + 800ad2e: 4413 add r3, r2 + 800ad30: 693a ldr r2, [r7, #16] + 800ad32: 7812 ldrb r2, [r2, #0] + 800ad34: 701a strb r2, [r3, #0] pdesc++; - 800ac7e: 693b ldr r3, [r7, #16] - 800ac80: 3301 adds r3, #1 - 800ac82: 613b str r3, [r7, #16] + 800ad36: 693b ldr r3, [r7, #16] + 800ad38: 3301 adds r3, #1 + 800ad3a: 613b str r3, [r7, #16] idx++; - 800ac84: 7dfb ldrb r3, [r7, #23] - 800ac86: 3301 adds r3, #1 - 800ac88: 75fb strb r3, [r7, #23] + 800ad3c: 7dfb ldrb r3, [r7, #23] + 800ad3e: 3301 adds r3, #1 + 800ad40: 75fb strb r3, [r7, #23] unicode[idx] = 0U; - 800ac8a: 7dfb ldrb r3, [r7, #23] - 800ac8c: 68ba ldr r2, [r7, #8] - 800ac8e: 4413 add r3, r2 - 800ac90: 2200 movs r2, #0 - 800ac92: 701a strb r2, [r3, #0] + 800ad42: 7dfb ldrb r3, [r7, #23] + 800ad44: 68ba ldr r2, [r7, #8] + 800ad46: 4413 add r3, r2 + 800ad48: 2200 movs r2, #0 + 800ad4a: 701a strb r2, [r3, #0] idx++; - 800ac94: 7dfb ldrb r3, [r7, #23] - 800ac96: 3301 adds r3, #1 - 800ac98: 75fb strb r3, [r7, #23] + 800ad4c: 7dfb ldrb r3, [r7, #23] + 800ad4e: 3301 adds r3, #1 + 800ad50: 75fb strb r3, [r7, #23] while (*pdesc != (uint8_t)'\0') - 800ac9a: 693b ldr r3, [r7, #16] - 800ac9c: 781b ldrb r3, [r3, #0] - 800ac9e: 2b00 cmp r3, #0 - 800aca0: d1e7 bne.n 800ac72 - 800aca2: e000 b.n 800aca6 + 800ad52: 693b ldr r3, [r7, #16] + 800ad54: 781b ldrb r3, [r3, #0] + 800ad56: 2b00 cmp r3, #0 + 800ad58: d1e7 bne.n 800ad2a + 800ad5a: e000 b.n 800ad5e return; - 800aca4: bf00 nop + 800ad5c: bf00 nop } } - 800aca6: 3718 adds r7, #24 - 800aca8: 46bd mov sp, r7 - 800acaa: bd80 pop {r7, pc} + 800ad5e: 3718 adds r7, #24 + 800ad60: 46bd mov sp, r7 + 800ad62: bd80 pop {r7, pc} -0800acac : +0800ad64 : * return the string length * @param buf : pointer to the ascii string buffer * @retval string length */ static uint8_t USBD_GetLen(uint8_t *buf) { - 800acac: b480 push {r7} - 800acae: b085 sub sp, #20 - 800acb0: af00 add r7, sp, #0 - 800acb2: 6078 str r0, [r7, #4] + 800ad64: b480 push {r7} + 800ad66: b085 sub sp, #20 + 800ad68: af00 add r7, sp, #0 + 800ad6a: 6078 str r0, [r7, #4] uint8_t len = 0U; - 800acb4: 2300 movs r3, #0 - 800acb6: 73fb strb r3, [r7, #15] + 800ad6c: 2300 movs r3, #0 + 800ad6e: 73fb strb r3, [r7, #15] uint8_t *pbuff = buf; - 800acb8: 687b ldr r3, [r7, #4] - 800acba: 60bb str r3, [r7, #8] + 800ad70: 687b ldr r3, [r7, #4] + 800ad72: 60bb str r3, [r7, #8] while (*pbuff != (uint8_t)'\0') - 800acbc: e005 b.n 800acca + 800ad74: e005 b.n 800ad82 { len++; - 800acbe: 7bfb ldrb r3, [r7, #15] - 800acc0: 3301 adds r3, #1 - 800acc2: 73fb strb r3, [r7, #15] + 800ad76: 7bfb ldrb r3, [r7, #15] + 800ad78: 3301 adds r3, #1 + 800ad7a: 73fb strb r3, [r7, #15] pbuff++; - 800acc4: 68bb ldr r3, [r7, #8] - 800acc6: 3301 adds r3, #1 - 800acc8: 60bb str r3, [r7, #8] + 800ad7c: 68bb ldr r3, [r7, #8] + 800ad7e: 3301 adds r3, #1 + 800ad80: 60bb str r3, [r7, #8] while (*pbuff != (uint8_t)'\0') - 800acca: 68bb ldr r3, [r7, #8] - 800accc: 781b ldrb r3, [r3, #0] - 800acce: 2b00 cmp r3, #0 - 800acd0: d1f5 bne.n 800acbe + 800ad82: 68bb ldr r3, [r7, #8] + 800ad84: 781b ldrb r3, [r3, #0] + 800ad86: 2b00 cmp r3, #0 + 800ad88: d1f5 bne.n 800ad76 } return len; - 800acd2: 7bfb ldrb r3, [r7, #15] + 800ad8a: 7bfb ldrb r3, [r7, #15] } - 800acd4: 4618 mov r0, r3 - 800acd6: 3714 adds r7, #20 - 800acd8: 46bd mov sp, r7 - 800acda: f85d 7b04 ldr.w r7, [sp], #4 - 800acde: 4770 bx lr + 800ad8c: 4618 mov r0, r3 + 800ad8e: 3714 adds r7, #20 + 800ad90: 46bd mov sp, r7 + 800ad92: f85d 7b04 ldr.w r7, [sp], #4 + 800ad96: 4770 bx lr -0800ace0 : +0800ad98 : * @param len: length of data to be sent * @retval status */ USBD_StatusTypeDef USBD_CtlSendData(USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint32_t len) { - 800ace0: b580 push {r7, lr} - 800ace2: b084 sub sp, #16 - 800ace4: af00 add r7, sp, #0 - 800ace6: 60f8 str r0, [r7, #12] - 800ace8: 60b9 str r1, [r7, #8] - 800acea: 607a str r2, [r7, #4] + 800ad98: b580 push {r7, lr} + 800ad9a: b084 sub sp, #16 + 800ad9c: af00 add r7, sp, #0 + 800ad9e: 60f8 str r0, [r7, #12] + 800ada0: 60b9 str r1, [r7, #8] + 800ada2: 607a str r2, [r7, #4] /* Set EP0 State */ pdev->ep0_state = USBD_EP0_DATA_IN; - 800acec: 68fb ldr r3, [r7, #12] - 800acee: 2202 movs r2, #2 - 800acf0: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 800ada4: 68fb ldr r3, [r7, #12] + 800ada6: 2202 movs r2, #2 + 800ada8: f8c3 2294 str.w r2, [r3, #660] @ 0x294 pdev->ep_in[0].total_length = len; - 800acf4: 68fb ldr r3, [r7, #12] - 800acf6: 687a ldr r2, [r7, #4] - 800acf8: 615a str r2, [r3, #20] + 800adac: 68fb ldr r3, [r7, #12] + 800adae: 687a ldr r2, [r7, #4] + 800adb0: 615a str r2, [r3, #20] pdev->ep_in[0].pbuffer = pbuf; - 800acfa: 68fb ldr r3, [r7, #12] - 800acfc: 68ba ldr r2, [r7, #8] - 800acfe: 625a str r2, [r3, #36] @ 0x24 + 800adb2: 68fb ldr r3, [r7, #12] + 800adb4: 68ba ldr r2, [r7, #8] + 800adb6: 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; - 800ad00: 68fb ldr r3, [r7, #12] - 800ad02: 687a ldr r2, [r7, #4] - 800ad04: 619a str r2, [r3, #24] + 800adb8: 68fb ldr r3, [r7, #12] + 800adba: 687a ldr r2, [r7, #4] + 800adbc: 619a str r2, [r3, #24] #endif /* USBD_AVOID_PACKET_SPLIT_MPS */ /* Start the transfer */ (void)USBD_LL_Transmit(pdev, 0x00U, pbuf, len); - 800ad06: 687b ldr r3, [r7, #4] - 800ad08: 68ba ldr r2, [r7, #8] - 800ad0a: 2100 movs r1, #0 - 800ad0c: 68f8 ldr r0, [r7, #12] - 800ad0e: f000 fc26 bl 800b55e + 800adbe: 687b ldr r3, [r7, #4] + 800adc0: 68ba ldr r2, [r7, #8] + 800adc2: 2100 movs r1, #0 + 800adc4: 68f8 ldr r0, [r7, #12] + 800adc6: f000 fc26 bl 800b616 return USBD_OK; - 800ad12: 2300 movs r3, #0 + 800adca: 2300 movs r3, #0 } - 800ad14: 4618 mov r0, r3 - 800ad16: 3710 adds r7, #16 - 800ad18: 46bd mov sp, r7 - 800ad1a: bd80 pop {r7, pc} + 800adcc: 4618 mov r0, r3 + 800adce: 3710 adds r7, #16 + 800add0: 46bd mov sp, r7 + 800add2: bd80 pop {r7, pc} -0800ad1c : +0800add4 : * @param len: length of data to be sent * @retval status */ USBD_StatusTypeDef USBD_CtlContinueSendData(USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint32_t len) { - 800ad1c: b580 push {r7, lr} - 800ad1e: b084 sub sp, #16 - 800ad20: af00 add r7, sp, #0 - 800ad22: 60f8 str r0, [r7, #12] - 800ad24: 60b9 str r1, [r7, #8] - 800ad26: 607a str r2, [r7, #4] + 800add4: b580 push {r7, lr} + 800add6: b084 sub sp, #16 + 800add8: af00 add r7, sp, #0 + 800adda: 60f8 str r0, [r7, #12] + 800addc: 60b9 str r1, [r7, #8] + 800adde: 607a str r2, [r7, #4] /* Start the next transfer */ (void)USBD_LL_Transmit(pdev, 0x00U, pbuf, len); - 800ad28: 687b ldr r3, [r7, #4] - 800ad2a: 68ba ldr r2, [r7, #8] - 800ad2c: 2100 movs r1, #0 - 800ad2e: 68f8 ldr r0, [r7, #12] - 800ad30: f000 fc15 bl 800b55e + 800ade0: 687b ldr r3, [r7, #4] + 800ade2: 68ba ldr r2, [r7, #8] + 800ade4: 2100 movs r1, #0 + 800ade6: 68f8 ldr r0, [r7, #12] + 800ade8: f000 fc15 bl 800b616 return USBD_OK; - 800ad34: 2300 movs r3, #0 + 800adec: 2300 movs r3, #0 } - 800ad36: 4618 mov r0, r3 - 800ad38: 3710 adds r7, #16 - 800ad3a: 46bd mov sp, r7 - 800ad3c: bd80 pop {r7, pc} + 800adee: 4618 mov r0, r3 + 800adf0: 3710 adds r7, #16 + 800adf2: 46bd mov sp, r7 + 800adf4: bd80 pop {r7, pc} -0800ad3e : +0800adf6 : * @param len: length of data to be received * @retval status */ USBD_StatusTypeDef USBD_CtlContinueRx(USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint32_t len) { - 800ad3e: b580 push {r7, lr} - 800ad40: b084 sub sp, #16 - 800ad42: af00 add r7, sp, #0 - 800ad44: 60f8 str r0, [r7, #12] - 800ad46: 60b9 str r1, [r7, #8] - 800ad48: 607a str r2, [r7, #4] + 800adf6: b580 push {r7, lr} + 800adf8: b084 sub sp, #16 + 800adfa: af00 add r7, sp, #0 + 800adfc: 60f8 str r0, [r7, #12] + 800adfe: 60b9 str r1, [r7, #8] + 800ae00: 607a str r2, [r7, #4] (void)USBD_LL_PrepareReceive(pdev, 0U, pbuf, len); - 800ad4a: 687b ldr r3, [r7, #4] - 800ad4c: 68ba ldr r2, [r7, #8] - 800ad4e: 2100 movs r1, #0 - 800ad50: 68f8 ldr r0, [r7, #12] - 800ad52: f000 fc25 bl 800b5a0 + 800ae02: 687b ldr r3, [r7, #4] + 800ae04: 68ba ldr r2, [r7, #8] + 800ae06: 2100 movs r1, #0 + 800ae08: 68f8 ldr r0, [r7, #12] + 800ae0a: f000 fc25 bl 800b658 return USBD_OK; - 800ad56: 2300 movs r3, #0 + 800ae0e: 2300 movs r3, #0 } - 800ad58: 4618 mov r0, r3 - 800ad5a: 3710 adds r7, #16 - 800ad5c: 46bd mov sp, r7 - 800ad5e: bd80 pop {r7, pc} + 800ae10: 4618 mov r0, r3 + 800ae12: 3710 adds r7, #16 + 800ae14: 46bd mov sp, r7 + 800ae16: bd80 pop {r7, pc} -0800ad60 : +0800ae18 : * send zero lzngth packet on the ctl pipe * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_CtlSendStatus(USBD_HandleTypeDef *pdev) { - 800ad60: b580 push {r7, lr} - 800ad62: b082 sub sp, #8 - 800ad64: af00 add r7, sp, #0 - 800ad66: 6078 str r0, [r7, #4] + 800ae18: b580 push {r7, lr} + 800ae1a: b082 sub sp, #8 + 800ae1c: af00 add r7, sp, #0 + 800ae1e: 6078 str r0, [r7, #4] /* Set EP0 State */ pdev->ep0_state = USBD_EP0_STATUS_IN; - 800ad68: 687b ldr r3, [r7, #4] - 800ad6a: 2204 movs r2, #4 - 800ad6c: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 800ae20: 687b ldr r3, [r7, #4] + 800ae22: 2204 movs r2, #4 + 800ae24: f8c3 2294 str.w r2, [r3, #660] @ 0x294 /* Start the transfer */ (void)USBD_LL_Transmit(pdev, 0x00U, NULL, 0U); - 800ad70: 2300 movs r3, #0 - 800ad72: 2200 movs r2, #0 - 800ad74: 2100 movs r1, #0 - 800ad76: 6878 ldr r0, [r7, #4] - 800ad78: f000 fbf1 bl 800b55e + 800ae28: 2300 movs r3, #0 + 800ae2a: 2200 movs r2, #0 + 800ae2c: 2100 movs r1, #0 + 800ae2e: 6878 ldr r0, [r7, #4] + 800ae30: f000 fbf1 bl 800b616 return USBD_OK; - 800ad7c: 2300 movs r3, #0 + 800ae34: 2300 movs r3, #0 } - 800ad7e: 4618 mov r0, r3 - 800ad80: 3708 adds r7, #8 - 800ad82: 46bd mov sp, r7 - 800ad84: bd80 pop {r7, pc} + 800ae36: 4618 mov r0, r3 + 800ae38: 3708 adds r7, #8 + 800ae3a: 46bd mov sp, r7 + 800ae3c: bd80 pop {r7, pc} -0800ad86 : +0800ae3e : * receive zero lzngth packet on the ctl pipe * @param pdev: device instance * @retval status */ USBD_StatusTypeDef USBD_CtlReceiveStatus(USBD_HandleTypeDef *pdev) { - 800ad86: b580 push {r7, lr} - 800ad88: b082 sub sp, #8 - 800ad8a: af00 add r7, sp, #0 - 800ad8c: 6078 str r0, [r7, #4] + 800ae3e: b580 push {r7, lr} + 800ae40: b082 sub sp, #8 + 800ae42: af00 add r7, sp, #0 + 800ae44: 6078 str r0, [r7, #4] /* Set EP0 State */ pdev->ep0_state = USBD_EP0_STATUS_OUT; - 800ad8e: 687b ldr r3, [r7, #4] - 800ad90: 2205 movs r2, #5 - 800ad92: f8c3 2294 str.w r2, [r3, #660] @ 0x294 + 800ae46: 687b ldr r3, [r7, #4] + 800ae48: 2205 movs r2, #5 + 800ae4a: f8c3 2294 str.w r2, [r3, #660] @ 0x294 /* Start the transfer */ (void)USBD_LL_PrepareReceive(pdev, 0U, NULL, 0U); - 800ad96: 2300 movs r3, #0 - 800ad98: 2200 movs r2, #0 - 800ad9a: 2100 movs r1, #0 - 800ad9c: 6878 ldr r0, [r7, #4] - 800ad9e: f000 fbff bl 800b5a0 + 800ae4e: 2300 movs r3, #0 + 800ae50: 2200 movs r2, #0 + 800ae52: 2100 movs r1, #0 + 800ae54: 6878 ldr r0, [r7, #4] + 800ae56: f000 fbff bl 800b658 return USBD_OK; - 800ada2: 2300 movs r3, #0 + 800ae5a: 2300 movs r3, #0 } - 800ada4: 4618 mov r0, r3 - 800ada6: 3708 adds r7, #8 - 800ada8: 46bd mov sp, r7 - 800adaa: bd80 pop {r7, pc} + 800ae5c: 4618 mov r0, r3 + 800ae5e: 3708 adds r7, #8 + 800ae60: 46bd mov sp, r7 + 800ae62: bd80 pop {r7, pc} -0800adac : +0800ae64 : /** * Init USB device Library, add supported class and start the library * @retval None */ void MX_USB_DEVICE_Init(void) { - 800adac: b580 push {r7, lr} - 800adae: af00 add r7, sp, #0 + 800ae64: b580 push {r7, lr} + 800ae66: 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) - 800adb0: 2200 movs r2, #0 - 800adb2: 490e ldr r1, [pc, #56] @ (800adec ) - 800adb4: 480e ldr r0, [pc, #56] @ (800adf0 ) - 800adb6: f7fe fcd1 bl 800975c - 800adba: 4603 mov r3, r0 - 800adbc: 2b00 cmp r3, #0 - 800adbe: d001 beq.n 800adc4 + 800ae68: 2200 movs r2, #0 + 800ae6a: 490e ldr r1, [pc, #56] @ (800aea4 ) + 800ae6c: 480e ldr r0, [pc, #56] @ (800aea8 ) + 800ae6e: f7fe fcd1 bl 8009814 + 800ae72: 4603 mov r3, r0 + 800ae74: 2b00 cmp r3, #0 + 800ae76: d001 beq.n 800ae7c { Error_Handler(); - 800adc0: f7f6 fa68 bl 8001294 + 800ae78: f7f6 fa68 bl 800134c } if (USBD_RegisterClass(&hUsbDeviceFS, &USBD_HID) != USBD_OK) - 800adc4: 490b ldr r1, [pc, #44] @ (800adf4 ) - 800adc6: 480a ldr r0, [pc, #40] @ (800adf0 ) - 800adc8: f7fe fcf8 bl 80097bc - 800adcc: 4603 mov r3, r0 - 800adce: 2b00 cmp r3, #0 - 800add0: d001 beq.n 800add6 + 800ae7c: 490b ldr r1, [pc, #44] @ (800aeac ) + 800ae7e: 480a ldr r0, [pc, #40] @ (800aea8 ) + 800ae80: f7fe fcf8 bl 8009874 + 800ae84: 4603 mov r3, r0 + 800ae86: 2b00 cmp r3, #0 + 800ae88: d001 beq.n 800ae8e { Error_Handler(); - 800add2: f7f6 fa5f bl 8001294 + 800ae8a: f7f6 fa5f bl 800134c } if (USBD_Start(&hUsbDeviceFS) != USBD_OK) - 800add6: 4806 ldr r0, [pc, #24] @ (800adf0 ) - 800add8: f7fe fd26 bl 8009828 - 800addc: 4603 mov r3, r0 - 800adde: 2b00 cmp r3, #0 - 800ade0: d001 beq.n 800ade6 + 800ae8e: 4806 ldr r0, [pc, #24] @ (800aea8 ) + 800ae90: f7fe fd26 bl 80098e0 + 800ae94: 4603 mov r3, r0 + 800ae96: 2b00 cmp r3, #0 + 800ae98: d001 beq.n 800ae9e { Error_Handler(); - 800ade2: f7f6 fa57 bl 8001294 + 800ae9a: f7f6 fa57 bl 800134c } /* USER CODE BEGIN USB_DEVICE_Init_PostTreatment */ /* USER CODE END USB_DEVICE_Init_PostTreatment */ } - 800ade6: bf00 nop - 800ade8: bd80 pop {r7, pc} - 800adea: bf00 nop - 800adec: 20000140 .word 0x20000140 - 800adf0: 20000f08 .word 0x20000f08 - 800adf4: 2000009c .word 0x2000009c + 800ae9e: bf00 nop + 800aea0: bd80 pop {r7, pc} + 800aea2: bf00 nop + 800aea4: 20000140 .word 0x20000140 + 800aea8: 20000f08 .word 0x20000f08 + 800aeac: 2000009c .word 0x2000009c -0800adf8 : +0800aeb0 : * @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) { - 800adf8: b480 push {r7} - 800adfa: b083 sub sp, #12 - 800adfc: af00 add r7, sp, #0 - 800adfe: 4603 mov r3, r0 - 800ae00: 6039 str r1, [r7, #0] - 800ae02: 71fb strb r3, [r7, #7] + 800aeb0: b480 push {r7} + 800aeb2: b083 sub sp, #12 + 800aeb4: af00 add r7, sp, #0 + 800aeb6: 4603 mov r3, r0 + 800aeb8: 6039 str r1, [r7, #0] + 800aeba: 71fb strb r3, [r7, #7] UNUSED(speed); *length = sizeof(USBD_FS_DeviceDesc); - 800ae04: 683b ldr r3, [r7, #0] - 800ae06: 2212 movs r2, #18 - 800ae08: 801a strh r2, [r3, #0] + 800aebc: 683b ldr r3, [r7, #0] + 800aebe: 2212 movs r2, #18 + 800aec0: 801a strh r2, [r3, #0] return USBD_FS_DeviceDesc; - 800ae0a: 4b03 ldr r3, [pc, #12] @ (800ae18 ) + 800aec2: 4b03 ldr r3, [pc, #12] @ (800aed0 ) } - 800ae0c: 4618 mov r0, r3 - 800ae0e: 370c adds r7, #12 - 800ae10: 46bd mov sp, r7 - 800ae12: f85d 7b04 ldr.w r7, [sp], #4 - 800ae16: 4770 bx lr - 800ae18: 20000160 .word 0x20000160 + 800aec4: 4618 mov r0, r3 + 800aec6: 370c adds r7, #12 + 800aec8: 46bd mov sp, r7 + 800aeca: f85d 7b04 ldr.w r7, [sp], #4 + 800aece: 4770 bx lr + 800aed0: 20000160 .word 0x20000160 -0800ae1c : +0800aed4 : * @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) { - 800ae1c: b480 push {r7} - 800ae1e: b083 sub sp, #12 - 800ae20: af00 add r7, sp, #0 - 800ae22: 4603 mov r3, r0 - 800ae24: 6039 str r1, [r7, #0] - 800ae26: 71fb strb r3, [r7, #7] + 800aed4: b480 push {r7} + 800aed6: b083 sub sp, #12 + 800aed8: af00 add r7, sp, #0 + 800aeda: 4603 mov r3, r0 + 800aedc: 6039 str r1, [r7, #0] + 800aede: 71fb strb r3, [r7, #7] UNUSED(speed); *length = sizeof(USBD_LangIDDesc); - 800ae28: 683b ldr r3, [r7, #0] - 800ae2a: 2204 movs r2, #4 - 800ae2c: 801a strh r2, [r3, #0] + 800aee0: 683b ldr r3, [r7, #0] + 800aee2: 2204 movs r2, #4 + 800aee4: 801a strh r2, [r3, #0] return USBD_LangIDDesc; - 800ae2e: 4b03 ldr r3, [pc, #12] @ (800ae3c ) + 800aee6: 4b03 ldr r3, [pc, #12] @ (800aef4 ) } - 800ae30: 4618 mov r0, r3 - 800ae32: 370c adds r7, #12 - 800ae34: 46bd mov sp, r7 - 800ae36: f85d 7b04 ldr.w r7, [sp], #4 - 800ae3a: 4770 bx lr - 800ae3c: 20000180 .word 0x20000180 + 800aee8: 4618 mov r0, r3 + 800aeea: 370c adds r7, #12 + 800aeec: 46bd mov sp, r7 + 800aeee: f85d 7b04 ldr.w r7, [sp], #4 + 800aef2: 4770 bx lr + 800aef4: 20000180 .word 0x20000180 -0800ae40 : +0800aef8 : * @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) { - 800ae40: b580 push {r7, lr} - 800ae42: b082 sub sp, #8 - 800ae44: af00 add r7, sp, #0 - 800ae46: 4603 mov r3, r0 - 800ae48: 6039 str r1, [r7, #0] - 800ae4a: 71fb strb r3, [r7, #7] + 800aef8: b580 push {r7, lr} + 800aefa: b082 sub sp, #8 + 800aefc: af00 add r7, sp, #0 + 800aefe: 4603 mov r3, r0 + 800af00: 6039 str r1, [r7, #0] + 800af02: 71fb strb r3, [r7, #7] if(speed == 0) - 800ae4c: 79fb ldrb r3, [r7, #7] - 800ae4e: 2b00 cmp r3, #0 - 800ae50: d105 bne.n 800ae5e + 800af04: 79fb ldrb r3, [r7, #7] + 800af06: 2b00 cmp r3, #0 + 800af08: d105 bne.n 800af16 { USBD_GetString((uint8_t *)USBD_PRODUCT_STRING_FS, USBD_StrDesc, length); - 800ae52: 683a ldr r2, [r7, #0] - 800ae54: 4907 ldr r1, [pc, #28] @ (800ae74 ) - 800ae56: 4808 ldr r0, [pc, #32] @ (800ae78 ) - 800ae58: f7ff fed6 bl 800ac08 - 800ae5c: e004 b.n 800ae68 + 800af0a: 683a ldr r2, [r7, #0] + 800af0c: 4907 ldr r1, [pc, #28] @ (800af2c ) + 800af0e: 4808 ldr r0, [pc, #32] @ (800af30 ) + 800af10: f7ff fed6 bl 800acc0 + 800af14: e004 b.n 800af20 } else { USBD_GetString((uint8_t *)USBD_PRODUCT_STRING_FS, USBD_StrDesc, length); - 800ae5e: 683a ldr r2, [r7, #0] - 800ae60: 4904 ldr r1, [pc, #16] @ (800ae74 ) - 800ae62: 4805 ldr r0, [pc, #20] @ (800ae78 ) - 800ae64: f7ff fed0 bl 800ac08 + 800af16: 683a ldr r2, [r7, #0] + 800af18: 4904 ldr r1, [pc, #16] @ (800af2c ) + 800af1a: 4805 ldr r0, [pc, #20] @ (800af30 ) + 800af1c: f7ff fed0 bl 800acc0 } return USBD_StrDesc; - 800ae68: 4b02 ldr r3, [pc, #8] @ (800ae74 ) + 800af20: 4b02 ldr r3, [pc, #8] @ (800af2c ) } - 800ae6a: 4618 mov r0, r3 - 800ae6c: 3708 adds r7, #8 - 800ae6e: 46bd mov sp, r7 - 800ae70: bd80 pop {r7, pc} - 800ae72: bf00 nop - 800ae74: 200011e4 .word 0x200011e4 - 800ae78: 0800b794 .word 0x0800b794 + 800af22: 4618 mov r0, r3 + 800af24: 3708 adds r7, #8 + 800af26: 46bd mov sp, r7 + 800af28: bd80 pop {r7, pc} + 800af2a: bf00 nop + 800af2c: 200011e4 .word 0x200011e4 + 800af30: 0800b84c .word 0x0800b84c -0800ae7c : +0800af34 : * @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) { - 800ae7c: b580 push {r7, lr} - 800ae7e: b082 sub sp, #8 - 800ae80: af00 add r7, sp, #0 - 800ae82: 4603 mov r3, r0 - 800ae84: 6039 str r1, [r7, #0] - 800ae86: 71fb strb r3, [r7, #7] + 800af34: b580 push {r7, lr} + 800af36: b082 sub sp, #8 + 800af38: af00 add r7, sp, #0 + 800af3a: 4603 mov r3, r0 + 800af3c: 6039 str r1, [r7, #0] + 800af3e: 71fb strb r3, [r7, #7] UNUSED(speed); USBD_GetString((uint8_t *)USBD_MANUFACTURER_STRING, USBD_StrDesc, length); - 800ae88: 683a ldr r2, [r7, #0] - 800ae8a: 4904 ldr r1, [pc, #16] @ (800ae9c ) - 800ae8c: 4804 ldr r0, [pc, #16] @ (800aea0 ) - 800ae8e: f7ff febb bl 800ac08 + 800af40: 683a ldr r2, [r7, #0] + 800af42: 4904 ldr r1, [pc, #16] @ (800af54 ) + 800af44: 4804 ldr r0, [pc, #16] @ (800af58 ) + 800af46: f7ff febb bl 800acc0 return USBD_StrDesc; - 800ae92: 4b02 ldr r3, [pc, #8] @ (800ae9c ) + 800af4a: 4b02 ldr r3, [pc, #8] @ (800af54 ) } - 800ae94: 4618 mov r0, r3 - 800ae96: 3708 adds r7, #8 - 800ae98: 46bd mov sp, r7 - 800ae9a: bd80 pop {r7, pc} - 800ae9c: 200011e4 .word 0x200011e4 - 800aea0: 0800b7a8 .word 0x0800b7a8 + 800af4c: 4618 mov r0, r3 + 800af4e: 3708 adds r7, #8 + 800af50: 46bd mov sp, r7 + 800af52: bd80 pop {r7, pc} + 800af54: 200011e4 .word 0x200011e4 + 800af58: 0800b860 .word 0x0800b860 -0800aea4 : +0800af5c : * @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) { - 800aea4: b580 push {r7, lr} - 800aea6: b082 sub sp, #8 - 800aea8: af00 add r7, sp, #0 - 800aeaa: 4603 mov r3, r0 - 800aeac: 6039 str r1, [r7, #0] - 800aeae: 71fb strb r3, [r7, #7] + 800af5c: b580 push {r7, lr} + 800af5e: b082 sub sp, #8 + 800af60: af00 add r7, sp, #0 + 800af62: 4603 mov r3, r0 + 800af64: 6039 str r1, [r7, #0] + 800af66: 71fb strb r3, [r7, #7] UNUSED(speed); *length = USB_SIZ_STRING_SERIAL; - 800aeb0: 683b ldr r3, [r7, #0] - 800aeb2: 221a movs r2, #26 - 800aeb4: 801a strh r2, [r3, #0] + 800af68: 683b ldr r3, [r7, #0] + 800af6a: 221a movs r2, #26 + 800af6c: 801a strh r2, [r3, #0] /* Update the serial number string descriptor with the data from the unique * ID */ Get_SerialNum(); - 800aeb6: f000 f855 bl 800af64 + 800af6e: f000 f855 bl 800b01c /* USER CODE BEGIN USBD_FS_SerialStrDescriptor */ /* USER CODE END USBD_FS_SerialStrDescriptor */ return (uint8_t *) USBD_StringSerial; - 800aeba: 4b02 ldr r3, [pc, #8] @ (800aec4 ) + 800af72: 4b02 ldr r3, [pc, #8] @ (800af7c ) } - 800aebc: 4618 mov r0, r3 - 800aebe: 3708 adds r7, #8 - 800aec0: 46bd mov sp, r7 - 800aec2: bd80 pop {r7, pc} - 800aec4: 20000184 .word 0x20000184 + 800af74: 4618 mov r0, r3 + 800af76: 3708 adds r7, #8 + 800af78: 46bd mov sp, r7 + 800af7a: bd80 pop {r7, pc} + 800af7c: 20000184 .word 0x20000184 -0800aec8 : +0800af80 : * @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) { - 800aec8: b580 push {r7, lr} - 800aeca: b082 sub sp, #8 - 800aecc: af00 add r7, sp, #0 - 800aece: 4603 mov r3, r0 - 800aed0: 6039 str r1, [r7, #0] - 800aed2: 71fb strb r3, [r7, #7] + 800af80: b580 push {r7, lr} + 800af82: b082 sub sp, #8 + 800af84: af00 add r7, sp, #0 + 800af86: 4603 mov r3, r0 + 800af88: 6039 str r1, [r7, #0] + 800af8a: 71fb strb r3, [r7, #7] if(speed == USBD_SPEED_HIGH) - 800aed4: 79fb ldrb r3, [r7, #7] - 800aed6: 2b00 cmp r3, #0 - 800aed8: d105 bne.n 800aee6 + 800af8c: 79fb ldrb r3, [r7, #7] + 800af8e: 2b00 cmp r3, #0 + 800af90: d105 bne.n 800af9e { USBD_GetString((uint8_t *)USBD_CONFIGURATION_STRING_FS, USBD_StrDesc, length); - 800aeda: 683a ldr r2, [r7, #0] - 800aedc: 4907 ldr r1, [pc, #28] @ (800aefc ) - 800aede: 4808 ldr r0, [pc, #32] @ (800af00 ) - 800aee0: f7ff fe92 bl 800ac08 - 800aee4: e004 b.n 800aef0 + 800af92: 683a ldr r2, [r7, #0] + 800af94: 4907 ldr r1, [pc, #28] @ (800afb4 ) + 800af96: 4808 ldr r0, [pc, #32] @ (800afb8 ) + 800af98: f7ff fe92 bl 800acc0 + 800af9c: e004 b.n 800afa8 } else { USBD_GetString((uint8_t *)USBD_CONFIGURATION_STRING_FS, USBD_StrDesc, length); - 800aee6: 683a ldr r2, [r7, #0] - 800aee8: 4904 ldr r1, [pc, #16] @ (800aefc ) - 800aeea: 4805 ldr r0, [pc, #20] @ (800af00 ) - 800aeec: f7ff fe8c bl 800ac08 + 800af9e: 683a ldr r2, [r7, #0] + 800afa0: 4904 ldr r1, [pc, #16] @ (800afb4 ) + 800afa2: 4805 ldr r0, [pc, #20] @ (800afb8 ) + 800afa4: f7ff fe8c bl 800acc0 } return USBD_StrDesc; - 800aef0: 4b02 ldr r3, [pc, #8] @ (800aefc ) + 800afa8: 4b02 ldr r3, [pc, #8] @ (800afb4 ) } - 800aef2: 4618 mov r0, r3 - 800aef4: 3708 adds r7, #8 - 800aef6: 46bd mov sp, r7 - 800aef8: bd80 pop {r7, pc} - 800aefa: bf00 nop - 800aefc: 200011e4 .word 0x200011e4 - 800af00: 0800b7b4 .word 0x0800b7b4 + 800afaa: 4618 mov r0, r3 + 800afac: 3708 adds r7, #8 + 800afae: 46bd mov sp, r7 + 800afb0: bd80 pop {r7, pc} + 800afb2: bf00 nop + 800afb4: 200011e4 .word 0x200011e4 + 800afb8: 0800b86c .word 0x0800b86c -0800af04 : +0800afbc : * @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) { - 800af04: b580 push {r7, lr} - 800af06: b082 sub sp, #8 - 800af08: af00 add r7, sp, #0 - 800af0a: 4603 mov r3, r0 - 800af0c: 6039 str r1, [r7, #0] - 800af0e: 71fb strb r3, [r7, #7] + 800afbc: b580 push {r7, lr} + 800afbe: b082 sub sp, #8 + 800afc0: af00 add r7, sp, #0 + 800afc2: 4603 mov r3, r0 + 800afc4: 6039 str r1, [r7, #0] + 800afc6: 71fb strb r3, [r7, #7] if(speed == 0) - 800af10: 79fb ldrb r3, [r7, #7] - 800af12: 2b00 cmp r3, #0 - 800af14: d105 bne.n 800af22 + 800afc8: 79fb ldrb r3, [r7, #7] + 800afca: 2b00 cmp r3, #0 + 800afcc: d105 bne.n 800afda { USBD_GetString((uint8_t *)USBD_INTERFACE_STRING_FS, USBD_StrDesc, length); - 800af16: 683a ldr r2, [r7, #0] - 800af18: 4907 ldr r1, [pc, #28] @ (800af38 ) - 800af1a: 4808 ldr r0, [pc, #32] @ (800af3c ) - 800af1c: f7ff fe74 bl 800ac08 - 800af20: e004 b.n 800af2c + 800afce: 683a ldr r2, [r7, #0] + 800afd0: 4907 ldr r1, [pc, #28] @ (800aff0 ) + 800afd2: 4808 ldr r0, [pc, #32] @ (800aff4 ) + 800afd4: f7ff fe74 bl 800acc0 + 800afd8: e004 b.n 800afe4 } else { USBD_GetString((uint8_t *)USBD_INTERFACE_STRING_FS, USBD_StrDesc, length); - 800af22: 683a ldr r2, [r7, #0] - 800af24: 4904 ldr r1, [pc, #16] @ (800af38 ) - 800af26: 4805 ldr r0, [pc, #20] @ (800af3c ) - 800af28: f7ff fe6e bl 800ac08 + 800afda: 683a ldr r2, [r7, #0] + 800afdc: 4904 ldr r1, [pc, #16] @ (800aff0 ) + 800afde: 4805 ldr r0, [pc, #20] @ (800aff4 ) + 800afe0: f7ff fe6e bl 800acc0 } return USBD_StrDesc; - 800af2c: 4b02 ldr r3, [pc, #8] @ (800af38 ) + 800afe4: 4b02 ldr r3, [pc, #8] @ (800aff0 ) } - 800af2e: 4618 mov r0, r3 - 800af30: 3708 adds r7, #8 - 800af32: 46bd mov sp, r7 - 800af34: bd80 pop {r7, pc} - 800af36: bf00 nop - 800af38: 200011e4 .word 0x200011e4 - 800af3c: 0800b7c0 .word 0x0800b7c0 + 800afe6: 4618 mov r0, r3 + 800afe8: 3708 adds r7, #8 + 800afea: 46bd mov sp, r7 + 800afec: bd80 pop {r7, pc} + 800afee: bf00 nop + 800aff0: 200011e4 .word 0x200011e4 + 800aff4: 0800b878 .word 0x0800b878 -0800af40 : +0800aff8 : * @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) { - 800af40: b480 push {r7} - 800af42: b083 sub sp, #12 - 800af44: af00 add r7, sp, #0 - 800af46: 4603 mov r3, r0 - 800af48: 6039 str r1, [r7, #0] - 800af4a: 71fb strb r3, [r7, #7] + 800aff8: b480 push {r7} + 800affa: b083 sub sp, #12 + 800affc: af00 add r7, sp, #0 + 800affe: 4603 mov r3, r0 + 800b000: 6039 str r1, [r7, #0] + 800b002: 71fb strb r3, [r7, #7] UNUSED(speed); *length = sizeof(USBD_FS_BOSDesc); - 800af4c: 683b ldr r3, [r7, #0] - 800af4e: 220c movs r2, #12 - 800af50: 801a strh r2, [r3, #0] + 800b004: 683b ldr r3, [r7, #0] + 800b006: 220c movs r2, #12 + 800b008: 801a strh r2, [r3, #0] return (uint8_t*)USBD_FS_BOSDesc; - 800af52: 4b03 ldr r3, [pc, #12] @ (800af60 ) + 800b00a: 4b03 ldr r3, [pc, #12] @ (800b018 ) } - 800af54: 4618 mov r0, r3 - 800af56: 370c adds r7, #12 - 800af58: 46bd mov sp, r7 - 800af5a: f85d 7b04 ldr.w r7, [sp], #4 - 800af5e: 4770 bx lr - 800af60: 20000174 .word 0x20000174 + 800b00c: 4618 mov r0, r3 + 800b00e: 370c adds r7, #12 + 800b010: 46bd mov sp, r7 + 800b012: f85d 7b04 ldr.w r7, [sp], #4 + 800b016: 4770 bx lr + 800b018: 20000174 .word 0x20000174 -0800af64 : +0800b01c : * @brief Create the serial number string descriptor * @param None * @retval None */ static void Get_SerialNum(void) { - 800af64: b580 push {r7, lr} - 800af66: b084 sub sp, #16 - 800af68: af00 add r7, sp, #0 + 800b01c: b580 push {r7, lr} + 800b01e: b084 sub sp, #16 + 800b020: af00 add r7, sp, #0 uint32_t deviceserial0; uint32_t deviceserial1; uint32_t deviceserial2; deviceserial0 = *(uint32_t *) DEVICE_ID1; - 800af6a: 4b0f ldr r3, [pc, #60] @ (800afa8 ) - 800af6c: 681b ldr r3, [r3, #0] - 800af6e: 60fb str r3, [r7, #12] + 800b022: 4b0f ldr r3, [pc, #60] @ (800b060 ) + 800b024: 681b ldr r3, [r3, #0] + 800b026: 60fb str r3, [r7, #12] deviceserial1 = *(uint32_t *) DEVICE_ID2; - 800af70: 4b0e ldr r3, [pc, #56] @ (800afac ) - 800af72: 681b ldr r3, [r3, #0] - 800af74: 60bb str r3, [r7, #8] + 800b028: 4b0e ldr r3, [pc, #56] @ (800b064 ) + 800b02a: 681b ldr r3, [r3, #0] + 800b02c: 60bb str r3, [r7, #8] deviceserial2 = *(uint32_t *) DEVICE_ID3; - 800af76: 4b0e ldr r3, [pc, #56] @ (800afb0 ) - 800af78: 681b ldr r3, [r3, #0] - 800af7a: 607b str r3, [r7, #4] + 800b02e: 4b0e ldr r3, [pc, #56] @ (800b068 ) + 800b030: 681b ldr r3, [r3, #0] + 800b032: 607b str r3, [r7, #4] deviceserial0 += deviceserial2; - 800af7c: 68fa ldr r2, [r7, #12] - 800af7e: 687b ldr r3, [r7, #4] - 800af80: 4413 add r3, r2 - 800af82: 60fb str r3, [r7, #12] + 800b034: 68fa ldr r2, [r7, #12] + 800b036: 687b ldr r3, [r7, #4] + 800b038: 4413 add r3, r2 + 800b03a: 60fb str r3, [r7, #12] if (deviceserial0 != 0) - 800af84: 68fb ldr r3, [r7, #12] - 800af86: 2b00 cmp r3, #0 - 800af88: d009 beq.n 800af9e + 800b03c: 68fb ldr r3, [r7, #12] + 800b03e: 2b00 cmp r3, #0 + 800b040: d009 beq.n 800b056 { IntToUnicode(deviceserial0, &USBD_StringSerial[2], 8); - 800af8a: 2208 movs r2, #8 - 800af8c: 4909 ldr r1, [pc, #36] @ (800afb4 ) - 800af8e: 68f8 ldr r0, [r7, #12] - 800af90: f000 f814 bl 800afbc + 800b042: 2208 movs r2, #8 + 800b044: 4909 ldr r1, [pc, #36] @ (800b06c ) + 800b046: 68f8 ldr r0, [r7, #12] + 800b048: f000 f814 bl 800b074 IntToUnicode(deviceserial1, &USBD_StringSerial[18], 4); - 800af94: 2204 movs r2, #4 - 800af96: 4908 ldr r1, [pc, #32] @ (800afb8 ) - 800af98: 68b8 ldr r0, [r7, #8] - 800af9a: f000 f80f bl 800afbc + 800b04c: 2204 movs r2, #4 + 800b04e: 4908 ldr r1, [pc, #32] @ (800b070 ) + 800b050: 68b8 ldr r0, [r7, #8] + 800b052: f000 f80f bl 800b074 } } - 800af9e: bf00 nop - 800afa0: 3710 adds r7, #16 - 800afa2: 46bd mov sp, r7 - 800afa4: bd80 pop {r7, pc} - 800afa6: bf00 nop - 800afa8: 1fff7a10 .word 0x1fff7a10 - 800afac: 1fff7a14 .word 0x1fff7a14 - 800afb0: 1fff7a18 .word 0x1fff7a18 - 800afb4: 20000186 .word 0x20000186 - 800afb8: 20000196 .word 0x20000196 + 800b056: bf00 nop + 800b058: 3710 adds r7, #16 + 800b05a: 46bd mov sp, r7 + 800b05c: bd80 pop {r7, pc} + 800b05e: bf00 nop + 800b060: 1fff7a10 .word 0x1fff7a10 + 800b064: 1fff7a14 .word 0x1fff7a14 + 800b068: 1fff7a18 .word 0x1fff7a18 + 800b06c: 20000186 .word 0x20000186 + 800b070: 20000196 .word 0x20000196 -0800afbc : +0800b074 : * @param pbuf: pointer to the buffer * @param len: buffer length * @retval None */ static void IntToUnicode(uint32_t value, uint8_t * pbuf, uint8_t len) { - 800afbc: b480 push {r7} - 800afbe: b087 sub sp, #28 - 800afc0: af00 add r7, sp, #0 - 800afc2: 60f8 str r0, [r7, #12] - 800afc4: 60b9 str r1, [r7, #8] - 800afc6: 4613 mov r3, r2 - 800afc8: 71fb strb r3, [r7, #7] + 800b074: b480 push {r7} + 800b076: b087 sub sp, #28 + 800b078: af00 add r7, sp, #0 + 800b07a: 60f8 str r0, [r7, #12] + 800b07c: 60b9 str r1, [r7, #8] + 800b07e: 4613 mov r3, r2 + 800b080: 71fb strb r3, [r7, #7] uint8_t idx = 0; - 800afca: 2300 movs r3, #0 - 800afcc: 75fb strb r3, [r7, #23] + 800b082: 2300 movs r3, #0 + 800b084: 75fb strb r3, [r7, #23] for (idx = 0; idx < len; idx++) - 800afce: 2300 movs r3, #0 - 800afd0: 75fb strb r3, [r7, #23] - 800afd2: e027 b.n 800b024 + 800b086: 2300 movs r3, #0 + 800b088: 75fb strb r3, [r7, #23] + 800b08a: e027 b.n 800b0dc { if (((value >> 28)) < 0xA) - 800afd4: 68fb ldr r3, [r7, #12] - 800afd6: 0f1b lsrs r3, r3, #28 - 800afd8: 2b09 cmp r3, #9 - 800afda: d80b bhi.n 800aff4 + 800b08c: 68fb ldr r3, [r7, #12] + 800b08e: 0f1b lsrs r3, r3, #28 + 800b090: 2b09 cmp r3, #9 + 800b092: d80b bhi.n 800b0ac { pbuf[2 * idx] = (value >> 28) + '0'; - 800afdc: 68fb ldr r3, [r7, #12] - 800afde: 0f1b lsrs r3, r3, #28 - 800afe0: b2da uxtb r2, r3 - 800afe2: 7dfb ldrb r3, [r7, #23] - 800afe4: 005b lsls r3, r3, #1 - 800afe6: 4619 mov r1, r3 - 800afe8: 68bb ldr r3, [r7, #8] - 800afea: 440b add r3, r1 - 800afec: 3230 adds r2, #48 @ 0x30 - 800afee: b2d2 uxtb r2, r2 - 800aff0: 701a strb r2, [r3, #0] - 800aff2: e00a b.n 800b00a + 800b094: 68fb ldr r3, [r7, #12] + 800b096: 0f1b lsrs r3, r3, #28 + 800b098: b2da uxtb r2, r3 + 800b09a: 7dfb ldrb r3, [r7, #23] + 800b09c: 005b lsls r3, r3, #1 + 800b09e: 4619 mov r1, r3 + 800b0a0: 68bb ldr r3, [r7, #8] + 800b0a2: 440b add r3, r1 + 800b0a4: 3230 adds r2, #48 @ 0x30 + 800b0a6: b2d2 uxtb r2, r2 + 800b0a8: 701a strb r2, [r3, #0] + 800b0aa: e00a b.n 800b0c2 } else { pbuf[2 * idx] = (value >> 28) + 'A' - 10; - 800aff4: 68fb ldr r3, [r7, #12] - 800aff6: 0f1b lsrs r3, r3, #28 - 800aff8: b2da uxtb r2, r3 - 800affa: 7dfb ldrb r3, [r7, #23] - 800affc: 005b lsls r3, r3, #1 - 800affe: 4619 mov r1, r3 - 800b000: 68bb ldr r3, [r7, #8] - 800b002: 440b add r3, r1 - 800b004: 3237 adds r2, #55 @ 0x37 - 800b006: b2d2 uxtb r2, r2 - 800b008: 701a strb r2, [r3, #0] + 800b0ac: 68fb ldr r3, [r7, #12] + 800b0ae: 0f1b lsrs r3, r3, #28 + 800b0b0: b2da uxtb r2, r3 + 800b0b2: 7dfb ldrb r3, [r7, #23] + 800b0b4: 005b lsls r3, r3, #1 + 800b0b6: 4619 mov r1, r3 + 800b0b8: 68bb ldr r3, [r7, #8] + 800b0ba: 440b add r3, r1 + 800b0bc: 3237 adds r2, #55 @ 0x37 + 800b0be: b2d2 uxtb r2, r2 + 800b0c0: 701a strb r2, [r3, #0] } value = value << 4; - 800b00a: 68fb ldr r3, [r7, #12] - 800b00c: 011b lsls r3, r3, #4 - 800b00e: 60fb str r3, [r7, #12] + 800b0c2: 68fb ldr r3, [r7, #12] + 800b0c4: 011b lsls r3, r3, #4 + 800b0c6: 60fb str r3, [r7, #12] pbuf[2 * idx + 1] = 0; - 800b010: 7dfb ldrb r3, [r7, #23] - 800b012: 005b lsls r3, r3, #1 - 800b014: 3301 adds r3, #1 - 800b016: 68ba ldr r2, [r7, #8] - 800b018: 4413 add r3, r2 - 800b01a: 2200 movs r2, #0 - 800b01c: 701a strb r2, [r3, #0] + 800b0c8: 7dfb ldrb r3, [r7, #23] + 800b0ca: 005b lsls r3, r3, #1 + 800b0cc: 3301 adds r3, #1 + 800b0ce: 68ba ldr r2, [r7, #8] + 800b0d0: 4413 add r3, r2 + 800b0d2: 2200 movs r2, #0 + 800b0d4: 701a strb r2, [r3, #0] for (idx = 0; idx < len; idx++) - 800b01e: 7dfb ldrb r3, [r7, #23] - 800b020: 3301 adds r3, #1 - 800b022: 75fb strb r3, [r7, #23] - 800b024: 7dfa ldrb r2, [r7, #23] - 800b026: 79fb ldrb r3, [r7, #7] - 800b028: 429a cmp r2, r3 - 800b02a: d3d3 bcc.n 800afd4 + 800b0d6: 7dfb ldrb r3, [r7, #23] + 800b0d8: 3301 adds r3, #1 + 800b0da: 75fb strb r3, [r7, #23] + 800b0dc: 7dfa ldrb r2, [r7, #23] + 800b0de: 79fb ldrb r3, [r7, #7] + 800b0e0: 429a cmp r2, r3 + 800b0e2: d3d3 bcc.n 800b08c } } - 800b02c: bf00 nop - 800b02e: bf00 nop - 800b030: 371c adds r7, #28 - 800b032: 46bd mov sp, r7 - 800b034: f85d 7b04 ldr.w r7, [sp], #4 - 800b038: 4770 bx lr + 800b0e4: bf00 nop + 800b0e6: bf00 nop + 800b0e8: 371c adds r7, #28 + 800b0ea: 46bd mov sp, r7 + 800b0ec: f85d 7b04 ldr.w r7, [sp], #4 + 800b0f0: 4770 bx lr ... -0800b03c : +0800b0f4 : LL Driver Callbacks (PCD -> USB Device Library) *******************************************************************************/ /* MSP Init */ void HAL_PCD_MspInit(PCD_HandleTypeDef* pcdHandle) { - 800b03c: b580 push {r7, lr} - 800b03e: b0a0 sub sp, #128 @ 0x80 - 800b040: af00 add r7, sp, #0 - 800b042: 6078 str r0, [r7, #4] + 800b0f4: b580 push {r7, lr} + 800b0f6: b0a0 sub sp, #128 @ 0x80 + 800b0f8: af00 add r7, sp, #0 + 800b0fa: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; - 800b044: f107 036c add.w r3, r7, #108 @ 0x6c - 800b048: 2200 movs r2, #0 - 800b04a: 601a str r2, [r3, #0] - 800b04c: 605a str r2, [r3, #4] - 800b04e: 609a str r2, [r3, #8] - 800b050: 60da str r2, [r3, #12] - 800b052: 611a str r2, [r3, #16] + 800b0fc: f107 036c add.w r3, r7, #108 @ 0x6c + 800b100: 2200 movs r2, #0 + 800b102: 601a str r2, [r3, #0] + 800b104: 605a str r2, [r3, #4] + 800b106: 609a str r2, [r3, #8] + 800b108: 60da str r2, [r3, #12] + 800b10a: 611a str r2, [r3, #16] RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; - 800b054: f107 0310 add.w r3, r7, #16 - 800b058: 225c movs r2, #92 @ 0x5c - 800b05a: 2100 movs r1, #0 - 800b05c: 4618 mov r0, r3 - 800b05e: f000 fb53 bl 800b708 + 800b10c: f107 0310 add.w r3, r7, #16 + 800b110: 225c movs r2, #92 @ 0x5c + 800b112: 2100 movs r1, #0 + 800b114: 4618 mov r0, r3 + 800b116: f000 fb53 bl 800b7c0 if(pcdHandle->Instance==USB_OTG_FS) - 800b062: 687b ldr r3, [r7, #4] - 800b064: 681b ldr r3, [r3, #0] - 800b066: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 - 800b06a: d149 bne.n 800b100 + 800b11a: 687b ldr r3, [r7, #4] + 800b11c: 681b ldr r3, [r3, #0] + 800b11e: f1b3 4fa0 cmp.w r3, #1342177280 @ 0x50000000 + 800b122: d149 bne.n 800b1b8 /* USER CODE END USB_OTG_FS_MspInit 0 */ /** Initializes the peripherals clock */ PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_CLK48; - 800b06c: f44f 7380 mov.w r3, #256 @ 0x100 - 800b070: 613b str r3, [r7, #16] + 800b124: f44f 7380 mov.w r3, #256 @ 0x100 + 800b128: 613b str r3, [r7, #16] PeriphClkInitStruct.Clk48ClockSelection = RCC_CLK48CLKSOURCE_PLLQ; - 800b072: 2300 movs r3, #0 - 800b074: 667b str r3, [r7, #100] @ 0x64 + 800b12a: 2300 movs r3, #0 + 800b12c: 667b str r3, [r7, #100] @ 0x64 if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK) - 800b076: f107 0310 add.w r3, r7, #16 - 800b07a: 4618 mov r0, r3 - 800b07c: f7f9 fb10 bl 80046a0 - 800b080: 4603 mov r3, r0 - 800b082: 2b00 cmp r3, #0 - 800b084: d001 beq.n 800b08a + 800b12e: f107 0310 add.w r3, r7, #16 + 800b132: 4618 mov r0, r3 + 800b134: f7f9 fb10 bl 8004758 + 800b138: 4603 mov r3, r0 + 800b13a: 2b00 cmp r3, #0 + 800b13c: d001 beq.n 800b142 { Error_Handler(); - 800b086: f7f6 f905 bl 8001294 + 800b13e: f7f6 f905 bl 800134c } __HAL_RCC_GPIOA_CLK_ENABLE(); - 800b08a: 2300 movs r3, #0 - 800b08c: 60fb str r3, [r7, #12] - 800b08e: 4b1e ldr r3, [pc, #120] @ (800b108 ) - 800b090: 6b1b ldr r3, [r3, #48] @ 0x30 - 800b092: 4a1d ldr r2, [pc, #116] @ (800b108 ) - 800b094: f043 0301 orr.w r3, r3, #1 - 800b098: 6313 str r3, [r2, #48] @ 0x30 - 800b09a: 4b1b ldr r3, [pc, #108] @ (800b108 ) - 800b09c: 6b1b ldr r3, [r3, #48] @ 0x30 - 800b09e: f003 0301 and.w r3, r3, #1 - 800b0a2: 60fb str r3, [r7, #12] - 800b0a4: 68fb ldr r3, [r7, #12] + 800b142: 2300 movs r3, #0 + 800b144: 60fb str r3, [r7, #12] + 800b146: 4b1e ldr r3, [pc, #120] @ (800b1c0 ) + 800b148: 6b1b ldr r3, [r3, #48] @ 0x30 + 800b14a: 4a1d ldr r2, [pc, #116] @ (800b1c0 ) + 800b14c: f043 0301 orr.w r3, r3, #1 + 800b150: 6313 str r3, [r2, #48] @ 0x30 + 800b152: 4b1b ldr r3, [pc, #108] @ (800b1c0 ) + 800b154: 6b1b ldr r3, [r3, #48] @ 0x30 + 800b156: f003 0301 and.w r3, r3, #1 + 800b15a: 60fb str r3, [r7, #12] + 800b15c: 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; - 800b0a6: f44f 53c0 mov.w r3, #6144 @ 0x1800 - 800b0aa: 66fb str r3, [r7, #108] @ 0x6c + 800b15e: f44f 53c0 mov.w r3, #6144 @ 0x1800 + 800b162: 66fb str r3, [r7, #108] @ 0x6c GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - 800b0ac: 2302 movs r3, #2 - 800b0ae: 673b str r3, [r7, #112] @ 0x70 + 800b164: 2302 movs r3, #2 + 800b166: 673b str r3, [r7, #112] @ 0x70 GPIO_InitStruct.Pull = GPIO_NOPULL; - 800b0b0: 2300 movs r3, #0 - 800b0b2: 677b str r3, [r7, #116] @ 0x74 + 800b168: 2300 movs r3, #0 + 800b16a: 677b str r3, [r7, #116] @ 0x74 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; - 800b0b4: 2303 movs r3, #3 - 800b0b6: 67bb str r3, [r7, #120] @ 0x78 + 800b16c: 2303 movs r3, #3 + 800b16e: 67bb str r3, [r7, #120] @ 0x78 GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS; - 800b0b8: 230a movs r3, #10 - 800b0ba: 67fb str r3, [r7, #124] @ 0x7c + 800b170: 230a movs r3, #10 + 800b172: 67fb str r3, [r7, #124] @ 0x7c HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - 800b0bc: f107 036c add.w r3, r7, #108 @ 0x6c - 800b0c0: 4619 mov r1, r3 - 800b0c2: 4812 ldr r0, [pc, #72] @ (800b10c ) - 800b0c4: f7f7 fc42 bl 800294c + 800b174: f107 036c add.w r3, r7, #108 @ 0x6c + 800b178: 4619 mov r1, r3 + 800b17a: 4812 ldr r0, [pc, #72] @ (800b1c4 ) + 800b17c: f7f7 fc42 bl 8002a04 /* Peripheral clock enable */ __HAL_RCC_USB_OTG_FS_CLK_ENABLE(); - 800b0c8: 4b0f ldr r3, [pc, #60] @ (800b108 ) - 800b0ca: 6b5b ldr r3, [r3, #52] @ 0x34 - 800b0cc: 4a0e ldr r2, [pc, #56] @ (800b108 ) - 800b0ce: f043 0380 orr.w r3, r3, #128 @ 0x80 - 800b0d2: 6353 str r3, [r2, #52] @ 0x34 - 800b0d4: 2300 movs r3, #0 - 800b0d6: 60bb str r3, [r7, #8] - 800b0d8: 4b0b ldr r3, [pc, #44] @ (800b108 ) - 800b0da: 6c5b ldr r3, [r3, #68] @ 0x44 - 800b0dc: 4a0a ldr r2, [pc, #40] @ (800b108 ) - 800b0de: f443 4380 orr.w r3, r3, #16384 @ 0x4000 - 800b0e2: 6453 str r3, [r2, #68] @ 0x44 - 800b0e4: 4b08 ldr r3, [pc, #32] @ (800b108 ) - 800b0e6: 6c5b ldr r3, [r3, #68] @ 0x44 - 800b0e8: f403 4380 and.w r3, r3, #16384 @ 0x4000 - 800b0ec: 60bb str r3, [r7, #8] - 800b0ee: 68bb ldr r3, [r7, #8] + 800b180: 4b0f ldr r3, [pc, #60] @ (800b1c0 ) + 800b182: 6b5b ldr r3, [r3, #52] @ 0x34 + 800b184: 4a0e ldr r2, [pc, #56] @ (800b1c0 ) + 800b186: f043 0380 orr.w r3, r3, #128 @ 0x80 + 800b18a: 6353 str r3, [r2, #52] @ 0x34 + 800b18c: 2300 movs r3, #0 + 800b18e: 60bb str r3, [r7, #8] + 800b190: 4b0b ldr r3, [pc, #44] @ (800b1c0 ) + 800b192: 6c5b ldr r3, [r3, #68] @ 0x44 + 800b194: 4a0a ldr r2, [pc, #40] @ (800b1c0 ) + 800b196: f443 4380 orr.w r3, r3, #16384 @ 0x4000 + 800b19a: 6453 str r3, [r2, #68] @ 0x44 + 800b19c: 4b08 ldr r3, [pc, #32] @ (800b1c0 ) + 800b19e: 6c5b ldr r3, [r3, #68] @ 0x44 + 800b1a0: f403 4380 and.w r3, r3, #16384 @ 0x4000 + 800b1a4: 60bb str r3, [r7, #8] + 800b1a6: 68bb ldr r3, [r7, #8] /* Peripheral interrupt init */ HAL_NVIC_SetPriority(OTG_FS_IRQn, 0, 0); - 800b0f0: 2200 movs r2, #0 - 800b0f2: 2100 movs r1, #0 - 800b0f4: 2043 movs r0, #67 @ 0x43 - 800b0f6: f7f6 fff0 bl 80020da + 800b1a8: 2200 movs r2, #0 + 800b1aa: 2100 movs r1, #0 + 800b1ac: 2043 movs r0, #67 @ 0x43 + 800b1ae: f7f6 fff0 bl 8002192 HAL_NVIC_EnableIRQ(OTG_FS_IRQn); - 800b0fa: 2043 movs r0, #67 @ 0x43 - 800b0fc: f7f7 f809 bl 8002112 + 800b1b2: 2043 movs r0, #67 @ 0x43 + 800b1b4: f7f7 f809 bl 80021ca /* USER CODE BEGIN USB_OTG_FS_MspInit 1 */ /* USER CODE END USB_OTG_FS_MspInit 1 */ } } - 800b100: bf00 nop - 800b102: 3780 adds r7, #128 @ 0x80 - 800b104: 46bd mov sp, r7 - 800b106: bd80 pop {r7, pc} - 800b108: 40023800 .word 0x40023800 - 800b10c: 40020000 .word 0x40020000 + 800b1b8: bf00 nop + 800b1ba: 3780 adds r7, #128 @ 0x80 + 800b1bc: 46bd mov sp, r7 + 800b1be: bd80 pop {r7, pc} + 800b1c0: 40023800 .word 0x40023800 + 800b1c4: 40020000 .word 0x40020000 -0800b110 : +0800b1c8 : #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 */ { - 800b110: b580 push {r7, lr} - 800b112: b082 sub sp, #8 - 800b114: af00 add r7, sp, #0 - 800b116: 6078 str r0, [r7, #4] + 800b1c8: b580 push {r7, lr} + 800b1ca: b082 sub sp, #8 + 800b1cc: af00 add r7, sp, #0 + 800b1ce: 6078 str r0, [r7, #4] USBD_LL_SetupStage((USBD_HandleTypeDef*)hpcd->pData, (uint8_t *)hpcd->Setup); - 800b118: 687b ldr r3, [r7, #4] - 800b11a: f8d3 24e0 ldr.w r2, [r3, #1248] @ 0x4e0 - 800b11e: 687b ldr r3, [r7, #4] - 800b120: f203 439c addw r3, r3, #1180 @ 0x49c - 800b124: 4619 mov r1, r3 - 800b126: 4610 mov r0, r2 - 800b128: f7fe fbcb bl 80098c2 + 800b1d0: 687b ldr r3, [r7, #4] + 800b1d2: f8d3 24e0 ldr.w r2, [r3, #1248] @ 0x4e0 + 800b1d6: 687b ldr r3, [r7, #4] + 800b1d8: f203 439c addw r3, r3, #1180 @ 0x49c + 800b1dc: 4619 mov r1, r3 + 800b1de: 4610 mov r0, r2 + 800b1e0: f7fe fbcb bl 800997a } - 800b12c: bf00 nop - 800b12e: 3708 adds r7, #8 - 800b130: 46bd mov sp, r7 - 800b132: bd80 pop {r7, pc} + 800b1e4: bf00 nop + 800b1e6: 3708 adds r7, #8 + 800b1e8: 46bd mov sp, r7 + 800b1ea: bd80 pop {r7, pc} -0800b134 : +0800b1ec : #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 */ { - 800b134: b580 push {r7, lr} - 800b136: b082 sub sp, #8 - 800b138: af00 add r7, sp, #0 - 800b13a: 6078 str r0, [r7, #4] - 800b13c: 460b mov r3, r1 - 800b13e: 70fb strb r3, [r7, #3] + 800b1ec: b580 push {r7, lr} + 800b1ee: b082 sub sp, #8 + 800b1f0: af00 add r7, sp, #0 + 800b1f2: 6078 str r0, [r7, #4] + 800b1f4: 460b mov r3, r1 + 800b1f6: 70fb strb r3, [r7, #3] USBD_LL_DataOutStage((USBD_HandleTypeDef*)hpcd->pData, epnum, hpcd->OUT_ep[epnum].xfer_buff); - 800b140: 687b ldr r3, [r7, #4] - 800b142: f8d3 04e0 ldr.w r0, [r3, #1248] @ 0x4e0 - 800b146: 78fa ldrb r2, [r7, #3] - 800b148: 6879 ldr r1, [r7, #4] - 800b14a: 4613 mov r3, r2 - 800b14c: 00db lsls r3, r3, #3 - 800b14e: 4413 add r3, r2 - 800b150: 009b lsls r3, r3, #2 - 800b152: 440b add r3, r1 - 800b154: f503 7318 add.w r3, r3, #608 @ 0x260 - 800b158: 681a ldr r2, [r3, #0] - 800b15a: 78fb ldrb r3, [r7, #3] - 800b15c: 4619 mov r1, r3 - 800b15e: f7fe fc05 bl 800996c + 800b1f8: 687b ldr r3, [r7, #4] + 800b1fa: f8d3 04e0 ldr.w r0, [r3, #1248] @ 0x4e0 + 800b1fe: 78fa ldrb r2, [r7, #3] + 800b200: 6879 ldr r1, [r7, #4] + 800b202: 4613 mov r3, r2 + 800b204: 00db lsls r3, r3, #3 + 800b206: 4413 add r3, r2 + 800b208: 009b lsls r3, r3, #2 + 800b20a: 440b add r3, r1 + 800b20c: f503 7318 add.w r3, r3, #608 @ 0x260 + 800b210: 681a ldr r2, [r3, #0] + 800b212: 78fb ldrb r3, [r7, #3] + 800b214: 4619 mov r1, r3 + 800b216: f7fe fc05 bl 8009a24 } - 800b162: bf00 nop - 800b164: 3708 adds r7, #8 - 800b166: 46bd mov sp, r7 - 800b168: bd80 pop {r7, pc} + 800b21a: bf00 nop + 800b21c: 3708 adds r7, #8 + 800b21e: 46bd mov sp, r7 + 800b220: bd80 pop {r7, pc} -0800b16a : +0800b222 : #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 */ { - 800b16a: b580 push {r7, lr} - 800b16c: b082 sub sp, #8 - 800b16e: af00 add r7, sp, #0 - 800b170: 6078 str r0, [r7, #4] - 800b172: 460b mov r3, r1 - 800b174: 70fb strb r3, [r7, #3] + 800b222: b580 push {r7, lr} + 800b224: b082 sub sp, #8 + 800b226: af00 add r7, sp, #0 + 800b228: 6078 str r0, [r7, #4] + 800b22a: 460b mov r3, r1 + 800b22c: 70fb strb r3, [r7, #3] USBD_LL_DataInStage((USBD_HandleTypeDef*)hpcd->pData, epnum, hpcd->IN_ep[epnum].xfer_buff); - 800b176: 687b ldr r3, [r7, #4] - 800b178: f8d3 04e0 ldr.w r0, [r3, #1248] @ 0x4e0 - 800b17c: 78fa ldrb r2, [r7, #3] - 800b17e: 6879 ldr r1, [r7, #4] - 800b180: 4613 mov r3, r2 - 800b182: 00db lsls r3, r3, #3 - 800b184: 4413 add r3, r2 - 800b186: 009b lsls r3, r3, #2 - 800b188: 440b add r3, r1 - 800b18a: 3320 adds r3, #32 - 800b18c: 681a ldr r2, [r3, #0] - 800b18e: 78fb ldrb r3, [r7, #3] - 800b190: 4619 mov r1, r3 - 800b192: f7fe fca7 bl 8009ae4 + 800b22e: 687b ldr r3, [r7, #4] + 800b230: f8d3 04e0 ldr.w r0, [r3, #1248] @ 0x4e0 + 800b234: 78fa ldrb r2, [r7, #3] + 800b236: 6879 ldr r1, [r7, #4] + 800b238: 4613 mov r3, r2 + 800b23a: 00db lsls r3, r3, #3 + 800b23c: 4413 add r3, r2 + 800b23e: 009b lsls r3, r3, #2 + 800b240: 440b add r3, r1 + 800b242: 3320 adds r3, #32 + 800b244: 681a ldr r2, [r3, #0] + 800b246: 78fb ldrb r3, [r7, #3] + 800b248: 4619 mov r1, r3 + 800b24a: f7fe fca7 bl 8009b9c } - 800b196: bf00 nop - 800b198: 3708 adds r7, #8 - 800b19a: 46bd mov sp, r7 - 800b19c: bd80 pop {r7, pc} + 800b24e: bf00 nop + 800b250: 3708 adds r7, #8 + 800b252: 46bd mov sp, r7 + 800b254: bd80 pop {r7, pc} -0800b19e : +0800b256 : #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 */ { - 800b19e: b580 push {r7, lr} - 800b1a0: b082 sub sp, #8 - 800b1a2: af00 add r7, sp, #0 - 800b1a4: 6078 str r0, [r7, #4] + 800b256: b580 push {r7, lr} + 800b258: b082 sub sp, #8 + 800b25a: af00 add r7, sp, #0 + 800b25c: 6078 str r0, [r7, #4] USBD_LL_SOF((USBD_HandleTypeDef*)hpcd->pData); - 800b1a6: 687b ldr r3, [r7, #4] - 800b1a8: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800b1ac: 4618 mov r0, r3 - 800b1ae: f7fe fdeb bl 8009d88 + 800b25e: 687b ldr r3, [r7, #4] + 800b260: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800b264: 4618 mov r0, r3 + 800b266: f7fe fdeb bl 8009e40 } - 800b1b2: bf00 nop - 800b1b4: 3708 adds r7, #8 - 800b1b6: 46bd mov sp, r7 - 800b1b8: bd80 pop {r7, pc} + 800b26a: bf00 nop + 800b26c: 3708 adds r7, #8 + 800b26e: 46bd mov sp, r7 + 800b270: bd80 pop {r7, pc} -0800b1ba : +0800b272 : #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 */ { - 800b1ba: b580 push {r7, lr} - 800b1bc: b084 sub sp, #16 - 800b1be: af00 add r7, sp, #0 - 800b1c0: 6078 str r0, [r7, #4] + 800b272: b580 push {r7, lr} + 800b274: b084 sub sp, #16 + 800b276: af00 add r7, sp, #0 + 800b278: 6078 str r0, [r7, #4] USBD_SpeedTypeDef speed = USBD_SPEED_FULL; - 800b1c2: 2301 movs r3, #1 - 800b1c4: 73fb strb r3, [r7, #15] + 800b27a: 2301 movs r3, #1 + 800b27c: 73fb strb r3, [r7, #15] if ( hpcd->Init.speed == PCD_SPEED_HIGH) - 800b1c6: 687b ldr r3, [r7, #4] - 800b1c8: 79db ldrb r3, [r3, #7] - 800b1ca: 2b00 cmp r3, #0 - 800b1cc: d102 bne.n 800b1d4 + 800b27e: 687b ldr r3, [r7, #4] + 800b280: 79db ldrb r3, [r3, #7] + 800b282: 2b00 cmp r3, #0 + 800b284: d102 bne.n 800b28c { speed = USBD_SPEED_HIGH; - 800b1ce: 2300 movs r3, #0 - 800b1d0: 73fb strb r3, [r7, #15] - 800b1d2: e008 b.n 800b1e6 + 800b286: 2300 movs r3, #0 + 800b288: 73fb strb r3, [r7, #15] + 800b28a: e008 b.n 800b29e } else if ( hpcd->Init.speed == PCD_SPEED_FULL) - 800b1d4: 687b ldr r3, [r7, #4] - 800b1d6: 79db ldrb r3, [r3, #7] - 800b1d8: 2b02 cmp r3, #2 - 800b1da: d102 bne.n 800b1e2 + 800b28c: 687b ldr r3, [r7, #4] + 800b28e: 79db ldrb r3, [r3, #7] + 800b290: 2b02 cmp r3, #2 + 800b292: d102 bne.n 800b29a { speed = USBD_SPEED_FULL; - 800b1dc: 2301 movs r3, #1 - 800b1de: 73fb strb r3, [r7, #15] - 800b1e0: e001 b.n 800b1e6 + 800b294: 2301 movs r3, #1 + 800b296: 73fb strb r3, [r7, #15] + 800b298: e001 b.n 800b29e } else { Error_Handler(); - 800b1e2: f7f6 f857 bl 8001294 + 800b29a: f7f6 f857 bl 800134c } /* Set Speed. */ USBD_LL_SetSpeed((USBD_HandleTypeDef*)hpcd->pData, speed); - 800b1e6: 687b ldr r3, [r7, #4] - 800b1e8: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800b1ec: 7bfa ldrb r2, [r7, #15] - 800b1ee: 4611 mov r1, r2 - 800b1f0: 4618 mov r0, r3 - 800b1f2: f7fe fd85 bl 8009d00 + 800b29e: 687b ldr r3, [r7, #4] + 800b2a0: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800b2a4: 7bfa ldrb r2, [r7, #15] + 800b2a6: 4611 mov r1, r2 + 800b2a8: 4618 mov r0, r3 + 800b2aa: f7fe fd85 bl 8009db8 /* Reset Device. */ USBD_LL_Reset((USBD_HandleTypeDef*)hpcd->pData); - 800b1f6: 687b ldr r3, [r7, #4] - 800b1f8: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800b1fc: 4618 mov r0, r3 - 800b1fe: f7fe fd2c bl 8009c5a + 800b2ae: 687b ldr r3, [r7, #4] + 800b2b0: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800b2b4: 4618 mov r0, r3 + 800b2b6: f7fe fd2c bl 8009d12 } - 800b202: bf00 nop - 800b204: 3710 adds r7, #16 - 800b206: 46bd mov sp, r7 - 800b208: bd80 pop {r7, pc} + 800b2ba: bf00 nop + 800b2bc: 3710 adds r7, #16 + 800b2be: 46bd mov sp, r7 + 800b2c0: bd80 pop {r7, pc} ... -0800b20c : +0800b2c4 : #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 */ { - 800b20c: b580 push {r7, lr} - 800b20e: b082 sub sp, #8 - 800b210: af00 add r7, sp, #0 - 800b212: 6078 str r0, [r7, #4] + 800b2c4: b580 push {r7, lr} + 800b2c6: b082 sub sp, #8 + 800b2c8: af00 add r7, sp, #0 + 800b2ca: 6078 str r0, [r7, #4] /* Inform USB library that core enters in suspend Mode. */ USBD_LL_Suspend((USBD_HandleTypeDef*)hpcd->pData); - 800b214: 687b ldr r3, [r7, #4] - 800b216: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800b21a: 4618 mov r0, r3 - 800b21c: f7fe fd80 bl 8009d20 + 800b2cc: 687b ldr r3, [r7, #4] + 800b2ce: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800b2d2: 4618 mov r0, r3 + 800b2d4: f7fe fd80 bl 8009dd8 __HAL_PCD_GATE_PHYCLOCK(hpcd); - 800b220: 687b ldr r3, [r7, #4] - 800b222: 681b ldr r3, [r3, #0] - 800b224: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 800b228: 681b ldr r3, [r3, #0] - 800b22a: 687a ldr r2, [r7, #4] - 800b22c: 6812 ldr r2, [r2, #0] - 800b22e: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 800b232: f043 0301 orr.w r3, r3, #1 - 800b236: 6013 str r3, [r2, #0] + 800b2d8: 687b ldr r3, [r7, #4] + 800b2da: 681b ldr r3, [r3, #0] + 800b2dc: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 800b2e0: 681b ldr r3, [r3, #0] + 800b2e2: 687a ldr r2, [r7, #4] + 800b2e4: 6812 ldr r2, [r2, #0] + 800b2e6: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 800b2ea: f043 0301 orr.w r3, r3, #1 + 800b2ee: 6013 str r3, [r2, #0] /* Enter in STOP mode. */ /* USER CODE BEGIN 2 */ if (hpcd->Init.low_power_enable) - 800b238: 687b ldr r3, [r7, #4] - 800b23a: 7adb ldrb r3, [r3, #11] - 800b23c: 2b00 cmp r3, #0 - 800b23e: d005 beq.n 800b24c + 800b2f0: 687b ldr r3, [r7, #4] + 800b2f2: 7adb ldrb r3, [r3, #11] + 800b2f4: 2b00 cmp r3, #0 + 800b2f6: d005 beq.n 800b304 { /* Set SLEEPDEEP bit and SleepOnExit of Cortex System Control Register. */ SCB->SCR |= (uint32_t)((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); - 800b240: 4b04 ldr r3, [pc, #16] @ (800b254 ) - 800b242: 691b ldr r3, [r3, #16] - 800b244: 4a03 ldr r2, [pc, #12] @ (800b254 ) - 800b246: f043 0306 orr.w r3, r3, #6 - 800b24a: 6113 str r3, [r2, #16] + 800b2f8: 4b04 ldr r3, [pc, #16] @ (800b30c ) + 800b2fa: 691b ldr r3, [r3, #16] + 800b2fc: 4a03 ldr r2, [pc, #12] @ (800b30c ) + 800b2fe: f043 0306 orr.w r3, r3, #6 + 800b302: 6113 str r3, [r2, #16] } /* USER CODE END 2 */ } - 800b24c: bf00 nop - 800b24e: 3708 adds r7, #8 - 800b250: 46bd mov sp, r7 - 800b252: bd80 pop {r7, pc} - 800b254: e000ed00 .word 0xe000ed00 + 800b304: bf00 nop + 800b306: 3708 adds r7, #8 + 800b308: 46bd mov sp, r7 + 800b30a: bd80 pop {r7, pc} + 800b30c: e000ed00 .word 0xe000ed00 -0800b258 : +0800b310 : #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 */ { - 800b258: b580 push {r7, lr} - 800b25a: b082 sub sp, #8 - 800b25c: af00 add r7, sp, #0 - 800b25e: 6078 str r0, [r7, #4] + 800b310: b580 push {r7, lr} + 800b312: b082 sub sp, #8 + 800b314: af00 add r7, sp, #0 + 800b316: 6078 str r0, [r7, #4] /* USER CODE BEGIN 3 */ /* USER CODE END 3 */ USBD_LL_Resume((USBD_HandleTypeDef*)hpcd->pData); - 800b260: 687b ldr r3, [r7, #4] - 800b262: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800b266: 4618 mov r0, r3 - 800b268: f7fe fd76 bl 8009d58 + 800b318: 687b ldr r3, [r7, #4] + 800b31a: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800b31e: 4618 mov r0, r3 + 800b320: f7fe fd76 bl 8009e10 } - 800b26c: bf00 nop - 800b26e: 3708 adds r7, #8 - 800b270: 46bd mov sp, r7 - 800b272: bd80 pop {r7, pc} + 800b324: bf00 nop + 800b326: 3708 adds r7, #8 + 800b328: 46bd mov sp, r7 + 800b32a: bd80 pop {r7, pc} -0800b274 : +0800b32c : #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 */ { - 800b274: b580 push {r7, lr} - 800b276: b082 sub sp, #8 - 800b278: af00 add r7, sp, #0 - 800b27a: 6078 str r0, [r7, #4] - 800b27c: 460b mov r3, r1 - 800b27e: 70fb strb r3, [r7, #3] + 800b32c: b580 push {r7, lr} + 800b32e: b082 sub sp, #8 + 800b330: af00 add r7, sp, #0 + 800b332: 6078 str r0, [r7, #4] + 800b334: 460b mov r3, r1 + 800b336: 70fb strb r3, [r7, #3] USBD_LL_IsoOUTIncomplete((USBD_HandleTypeDef*)hpcd->pData, epnum); - 800b280: 687b ldr r3, [r7, #4] - 800b282: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800b286: 78fa ldrb r2, [r7, #3] - 800b288: 4611 mov r1, r2 - 800b28a: 4618 mov r0, r3 - 800b28c: f7fe fdce bl 8009e2c + 800b338: 687b ldr r3, [r7, #4] + 800b33a: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800b33e: 78fa ldrb r2, [r7, #3] + 800b340: 4611 mov r1, r2 + 800b342: 4618 mov r0, r3 + 800b344: f7fe fdce bl 8009ee4 } - 800b290: bf00 nop - 800b292: 3708 adds r7, #8 - 800b294: 46bd mov sp, r7 - 800b296: bd80 pop {r7, pc} + 800b348: bf00 nop + 800b34a: 3708 adds r7, #8 + 800b34c: 46bd mov sp, r7 + 800b34e: bd80 pop {r7, pc} -0800b298 : +0800b350 : #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 */ { - 800b298: b580 push {r7, lr} - 800b29a: b082 sub sp, #8 - 800b29c: af00 add r7, sp, #0 - 800b29e: 6078 str r0, [r7, #4] - 800b2a0: 460b mov r3, r1 - 800b2a2: 70fb strb r3, [r7, #3] + 800b350: b580 push {r7, lr} + 800b352: b082 sub sp, #8 + 800b354: af00 add r7, sp, #0 + 800b356: 6078 str r0, [r7, #4] + 800b358: 460b mov r3, r1 + 800b35a: 70fb strb r3, [r7, #3] USBD_LL_IsoINIncomplete((USBD_HandleTypeDef*)hpcd->pData, epnum); - 800b2a4: 687b ldr r3, [r7, #4] - 800b2a6: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800b2aa: 78fa ldrb r2, [r7, #3] - 800b2ac: 4611 mov r1, r2 - 800b2ae: 4618 mov r0, r3 - 800b2b0: f7fe fd8a bl 8009dc8 + 800b35c: 687b ldr r3, [r7, #4] + 800b35e: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800b362: 78fa ldrb r2, [r7, #3] + 800b364: 4611 mov r1, r2 + 800b366: 4618 mov r0, r3 + 800b368: f7fe fd8a bl 8009e80 } - 800b2b4: bf00 nop - 800b2b6: 3708 adds r7, #8 - 800b2b8: 46bd mov sp, r7 - 800b2ba: bd80 pop {r7, pc} + 800b36c: bf00 nop + 800b36e: 3708 adds r7, #8 + 800b370: 46bd mov sp, r7 + 800b372: bd80 pop {r7, pc} -0800b2bc : +0800b374 : #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 */ { - 800b2bc: b580 push {r7, lr} - 800b2be: b082 sub sp, #8 - 800b2c0: af00 add r7, sp, #0 - 800b2c2: 6078 str r0, [r7, #4] + 800b374: b580 push {r7, lr} + 800b376: b082 sub sp, #8 + 800b378: af00 add r7, sp, #0 + 800b37a: 6078 str r0, [r7, #4] USBD_LL_DevConnected((USBD_HandleTypeDef*)hpcd->pData); - 800b2c4: 687b ldr r3, [r7, #4] - 800b2c6: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800b2ca: 4618 mov r0, r3 - 800b2cc: f7fe fde0 bl 8009e90 + 800b37c: 687b ldr r3, [r7, #4] + 800b37e: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800b382: 4618 mov r0, r3 + 800b384: f7fe fde0 bl 8009f48 } - 800b2d0: bf00 nop - 800b2d2: 3708 adds r7, #8 - 800b2d4: 46bd mov sp, r7 - 800b2d6: bd80 pop {r7, pc} + 800b388: bf00 nop + 800b38a: 3708 adds r7, #8 + 800b38c: 46bd mov sp, r7 + 800b38e: bd80 pop {r7, pc} -0800b2d8 : +0800b390 : #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 */ { - 800b2d8: b580 push {r7, lr} - 800b2da: b082 sub sp, #8 - 800b2dc: af00 add r7, sp, #0 - 800b2de: 6078 str r0, [r7, #4] + 800b390: b580 push {r7, lr} + 800b392: b082 sub sp, #8 + 800b394: af00 add r7, sp, #0 + 800b396: 6078 str r0, [r7, #4] USBD_LL_DevDisconnected((USBD_HandleTypeDef*)hpcd->pData); - 800b2e0: 687b ldr r3, [r7, #4] - 800b2e2: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800b2e6: 4618 mov r0, r3 - 800b2e8: f7fe fddd bl 8009ea6 + 800b398: 687b ldr r3, [r7, #4] + 800b39a: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800b39e: 4618 mov r0, r3 + 800b3a0: f7fe fddd bl 8009f5e } - 800b2ec: bf00 nop - 800b2ee: 3708 adds r7, #8 - 800b2f0: 46bd mov sp, r7 - 800b2f2: bd80 pop {r7, pc} + 800b3a4: bf00 nop + 800b3a6: 3708 adds r7, #8 + 800b3a8: 46bd mov sp, r7 + 800b3aa: bd80 pop {r7, pc} -0800b2f4 : +0800b3ac : * @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) { - 800b2f4: b580 push {r7, lr} - 800b2f6: b082 sub sp, #8 - 800b2f8: af00 add r7, sp, #0 - 800b2fa: 6078 str r0, [r7, #4] + 800b3ac: b580 push {r7, lr} + 800b3ae: b082 sub sp, #8 + 800b3b0: af00 add r7, sp, #0 + 800b3b2: 6078 str r0, [r7, #4] /* Init USB Ip. */ if (pdev->id == DEVICE_FS) { - 800b2fc: 687b ldr r3, [r7, #4] - 800b2fe: 781b ldrb r3, [r3, #0] - 800b300: 2b00 cmp r3, #0 - 800b302: d13c bne.n 800b37e + 800b3b4: 687b ldr r3, [r7, #4] + 800b3b6: 781b ldrb r3, [r3, #0] + 800b3b8: 2b00 cmp r3, #0 + 800b3ba: d13c bne.n 800b436 /* Link the driver to the stack. */ hpcd_USB_OTG_FS.pData = pdev; - 800b304: 4a20 ldr r2, [pc, #128] @ (800b388 ) - 800b306: 687b ldr r3, [r7, #4] - 800b308: f8c2 34e0 str.w r3, [r2, #1248] @ 0x4e0 + 800b3bc: 4a20 ldr r2, [pc, #128] @ (800b440 ) + 800b3be: 687b ldr r3, [r7, #4] + 800b3c0: f8c2 34e0 str.w r3, [r2, #1248] @ 0x4e0 pdev->pData = &hpcd_USB_OTG_FS; - 800b30c: 687b ldr r3, [r7, #4] - 800b30e: 4a1e ldr r2, [pc, #120] @ (800b388 ) - 800b310: f8c3 22c8 str.w r2, [r3, #712] @ 0x2c8 + 800b3c4: 687b ldr r3, [r7, #4] + 800b3c6: 4a1e ldr r2, [pc, #120] @ (800b440 ) + 800b3c8: f8c3 22c8 str.w r2, [r3, #712] @ 0x2c8 hpcd_USB_OTG_FS.Instance = USB_OTG_FS; - 800b314: 4b1c ldr r3, [pc, #112] @ (800b388 ) - 800b316: f04f 42a0 mov.w r2, #1342177280 @ 0x50000000 - 800b31a: 601a str r2, [r3, #0] + 800b3cc: 4b1c ldr r3, [pc, #112] @ (800b440 ) + 800b3ce: f04f 42a0 mov.w r2, #1342177280 @ 0x50000000 + 800b3d2: 601a str r2, [r3, #0] hpcd_USB_OTG_FS.Init.dev_endpoints = 6; - 800b31c: 4b1a ldr r3, [pc, #104] @ (800b388 ) - 800b31e: 2206 movs r2, #6 - 800b320: 711a strb r2, [r3, #4] + 800b3d4: 4b1a ldr r3, [pc, #104] @ (800b440 ) + 800b3d6: 2206 movs r2, #6 + 800b3d8: 711a strb r2, [r3, #4] hpcd_USB_OTG_FS.Init.speed = PCD_SPEED_FULL; - 800b322: 4b19 ldr r3, [pc, #100] @ (800b388 ) - 800b324: 2202 movs r2, #2 - 800b326: 71da strb r2, [r3, #7] + 800b3da: 4b19 ldr r3, [pc, #100] @ (800b440 ) + 800b3dc: 2202 movs r2, #2 + 800b3de: 71da strb r2, [r3, #7] hpcd_USB_OTG_FS.Init.dma_enable = DISABLE; - 800b328: 4b17 ldr r3, [pc, #92] @ (800b388 ) - 800b32a: 2200 movs r2, #0 - 800b32c: 719a strb r2, [r3, #6] + 800b3e0: 4b17 ldr r3, [pc, #92] @ (800b440 ) + 800b3e2: 2200 movs r2, #0 + 800b3e4: 719a strb r2, [r3, #6] hpcd_USB_OTG_FS.Init.phy_itface = PCD_PHY_EMBEDDED; - 800b32e: 4b16 ldr r3, [pc, #88] @ (800b388 ) - 800b330: 2202 movs r2, #2 - 800b332: 725a strb r2, [r3, #9] + 800b3e6: 4b16 ldr r3, [pc, #88] @ (800b440 ) + 800b3e8: 2202 movs r2, #2 + 800b3ea: 725a strb r2, [r3, #9] hpcd_USB_OTG_FS.Init.Sof_enable = DISABLE; - 800b334: 4b14 ldr r3, [pc, #80] @ (800b388 ) - 800b336: 2200 movs r2, #0 - 800b338: 729a strb r2, [r3, #10] + 800b3ec: 4b14 ldr r3, [pc, #80] @ (800b440 ) + 800b3ee: 2200 movs r2, #0 + 800b3f0: 729a strb r2, [r3, #10] hpcd_USB_OTG_FS.Init.low_power_enable = DISABLE; - 800b33a: 4b13 ldr r3, [pc, #76] @ (800b388 ) - 800b33c: 2200 movs r2, #0 - 800b33e: 72da strb r2, [r3, #11] + 800b3f2: 4b13 ldr r3, [pc, #76] @ (800b440 ) + 800b3f4: 2200 movs r2, #0 + 800b3f6: 72da strb r2, [r3, #11] hpcd_USB_OTG_FS.Init.lpm_enable = DISABLE; - 800b340: 4b11 ldr r3, [pc, #68] @ (800b388 ) - 800b342: 2200 movs r2, #0 - 800b344: 731a strb r2, [r3, #12] + 800b3f8: 4b11 ldr r3, [pc, #68] @ (800b440 ) + 800b3fa: 2200 movs r2, #0 + 800b3fc: 731a strb r2, [r3, #12] hpcd_USB_OTG_FS.Init.vbus_sensing_enable = DISABLE; - 800b346: 4b10 ldr r3, [pc, #64] @ (800b388 ) - 800b348: 2200 movs r2, #0 - 800b34a: 739a strb r2, [r3, #14] + 800b3fe: 4b10 ldr r3, [pc, #64] @ (800b440 ) + 800b400: 2200 movs r2, #0 + 800b402: 739a strb r2, [r3, #14] hpcd_USB_OTG_FS.Init.use_dedicated_ep1 = DISABLE; - 800b34c: 4b0e ldr r3, [pc, #56] @ (800b388 ) - 800b34e: 2200 movs r2, #0 - 800b350: 73da strb r2, [r3, #15] + 800b404: 4b0e ldr r3, [pc, #56] @ (800b440 ) + 800b406: 2200 movs r2, #0 + 800b408: 73da strb r2, [r3, #15] if (HAL_PCD_Init(&hpcd_USB_OTG_FS) != HAL_OK) - 800b352: 480d ldr r0, [pc, #52] @ (800b388 ) - 800b354: f7f7 fe04 bl 8002f60 - 800b358: 4603 mov r3, r0 - 800b35a: 2b00 cmp r3, #0 - 800b35c: d001 beq.n 800b362 + 800b40a: 480d ldr r0, [pc, #52] @ (800b440 ) + 800b40c: f7f7 fe04 bl 8003018 + 800b410: 4603 mov r3, r0 + 800b412: 2b00 cmp r3, #0 + 800b414: d001 beq.n 800b41a { Error_Handler( ); - 800b35e: f7f5 ff99 bl 8001294 + 800b416: f7f5 ff99 bl 800134c 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); - 800b362: 2180 movs r1, #128 @ 0x80 - 800b364: 4808 ldr r0, [pc, #32] @ (800b388 ) - 800b366: f7f9 f84c bl 8004402 + 800b41a: 2180 movs r1, #128 @ 0x80 + 800b41c: 4808 ldr r0, [pc, #32] @ (800b440 ) + 800b41e: f7f9 f84c bl 80044ba HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 0, 0x40); - 800b36a: 2240 movs r2, #64 @ 0x40 - 800b36c: 2100 movs r1, #0 - 800b36e: 4806 ldr r0, [pc, #24] @ (800b388 ) - 800b370: f7f9 f800 bl 8004374 + 800b422: 2240 movs r2, #64 @ 0x40 + 800b424: 2100 movs r1, #0 + 800b426: 4806 ldr r0, [pc, #24] @ (800b440 ) + 800b428: f7f9 f800 bl 800442c HAL_PCDEx_SetTxFiFo(&hpcd_USB_OTG_FS, 1, 0x80); - 800b374: 2280 movs r2, #128 @ 0x80 - 800b376: 2101 movs r1, #1 - 800b378: 4803 ldr r0, [pc, #12] @ (800b388 ) - 800b37a: f7f8 fffb bl 8004374 + 800b42c: 2280 movs r2, #128 @ 0x80 + 800b42e: 2101 movs r1, #1 + 800b430: 4803 ldr r0, [pc, #12] @ (800b440 ) + 800b432: f7f8 fffb bl 800442c } return USBD_OK; - 800b37e: 2300 movs r3, #0 + 800b436: 2300 movs r3, #0 } - 800b380: 4618 mov r0, r3 - 800b382: 3708 adds r7, #8 - 800b384: 46bd mov sp, r7 - 800b386: bd80 pop {r7, pc} - 800b388: 200013e4 .word 0x200013e4 + 800b438: 4618 mov r0, r3 + 800b43a: 3708 adds r7, #8 + 800b43c: 46bd mov sp, r7 + 800b43e: bd80 pop {r7, pc} + 800b440: 200013e4 .word 0x200013e4 -0800b38c : +0800b444 : * @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) { - 800b38c: b580 push {r7, lr} - 800b38e: b084 sub sp, #16 - 800b390: af00 add r7, sp, #0 - 800b392: 6078 str r0, [r7, #4] + 800b444: b580 push {r7, lr} + 800b446: b084 sub sp, #16 + 800b448: af00 add r7, sp, #0 + 800b44a: 6078 str r0, [r7, #4] HAL_StatusTypeDef hal_status = HAL_OK; - 800b394: 2300 movs r3, #0 - 800b396: 73fb strb r3, [r7, #15] + 800b44c: 2300 movs r3, #0 + 800b44e: 73fb strb r3, [r7, #15] USBD_StatusTypeDef usb_status = USBD_OK; - 800b398: 2300 movs r3, #0 - 800b39a: 73bb strb r3, [r7, #14] + 800b450: 2300 movs r3, #0 + 800b452: 73bb strb r3, [r7, #14] hal_status = HAL_PCD_Start(pdev->pData); - 800b39c: 687b ldr r3, [r7, #4] - 800b39e: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800b3a2: 4618 mov r0, r3 - 800b3a4: f7f7 fef2 bl 800318c - 800b3a8: 4603 mov r3, r0 - 800b3aa: 73fb strb r3, [r7, #15] + 800b454: 687b ldr r3, [r7, #4] + 800b456: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800b45a: 4618 mov r0, r3 + 800b45c: f7f7 fef2 bl 8003244 + 800b460: 4603 mov r3, r0 + 800b462: 73fb strb r3, [r7, #15] usb_status = USBD_Get_USB_Status(hal_status); - 800b3ac: 7bfb ldrb r3, [r7, #15] - 800b3ae: 4618 mov r0, r3 - 800b3b0: f000 f97e bl 800b6b0 - 800b3b4: 4603 mov r3, r0 - 800b3b6: 73bb strb r3, [r7, #14] + 800b464: 7bfb ldrb r3, [r7, #15] + 800b466: 4618 mov r0, r3 + 800b468: f000 f97e bl 800b768 + 800b46c: 4603 mov r3, r0 + 800b46e: 73bb strb r3, [r7, #14] return usb_status; - 800b3b8: 7bbb ldrb r3, [r7, #14] + 800b470: 7bbb ldrb r3, [r7, #14] } - 800b3ba: 4618 mov r0, r3 - 800b3bc: 3710 adds r7, #16 - 800b3be: 46bd mov sp, r7 - 800b3c0: bd80 pop {r7, pc} + 800b472: 4618 mov r0, r3 + 800b474: 3710 adds r7, #16 + 800b476: 46bd mov sp, r7 + 800b478: bd80 pop {r7, pc} -0800b3c2 : +0800b47a : * @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) { - 800b3c2: b580 push {r7, lr} - 800b3c4: b084 sub sp, #16 - 800b3c6: af00 add r7, sp, #0 - 800b3c8: 6078 str r0, [r7, #4] - 800b3ca: 4608 mov r0, r1 - 800b3cc: 4611 mov r1, r2 - 800b3ce: 461a mov r2, r3 - 800b3d0: 4603 mov r3, r0 - 800b3d2: 70fb strb r3, [r7, #3] - 800b3d4: 460b mov r3, r1 - 800b3d6: 70bb strb r3, [r7, #2] - 800b3d8: 4613 mov r3, r2 - 800b3da: 803b strh r3, [r7, #0] + 800b47a: b580 push {r7, lr} + 800b47c: b084 sub sp, #16 + 800b47e: af00 add r7, sp, #0 + 800b480: 6078 str r0, [r7, #4] + 800b482: 4608 mov r0, r1 + 800b484: 4611 mov r1, r2 + 800b486: 461a mov r2, r3 + 800b488: 4603 mov r3, r0 + 800b48a: 70fb strb r3, [r7, #3] + 800b48c: 460b mov r3, r1 + 800b48e: 70bb strb r3, [r7, #2] + 800b490: 4613 mov r3, r2 + 800b492: 803b strh r3, [r7, #0] HAL_StatusTypeDef hal_status = HAL_OK; - 800b3dc: 2300 movs r3, #0 - 800b3de: 73fb strb r3, [r7, #15] + 800b494: 2300 movs r3, #0 + 800b496: 73fb strb r3, [r7, #15] USBD_StatusTypeDef usb_status = USBD_OK; - 800b3e0: 2300 movs r3, #0 - 800b3e2: 73bb strb r3, [r7, #14] + 800b498: 2300 movs r3, #0 + 800b49a: 73bb strb r3, [r7, #14] hal_status = HAL_PCD_EP_Open(pdev->pData, ep_addr, ep_mps, ep_type); - 800b3e4: 687b ldr r3, [r7, #4] - 800b3e6: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 - 800b3ea: 78bb ldrb r3, [r7, #2] - 800b3ec: 883a ldrh r2, [r7, #0] - 800b3ee: 78f9 ldrb r1, [r7, #3] - 800b3f0: f7f8 fbf3 bl 8003bda - 800b3f4: 4603 mov r3, r0 - 800b3f6: 73fb strb r3, [r7, #15] + 800b49c: 687b ldr r3, [r7, #4] + 800b49e: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 + 800b4a2: 78bb ldrb r3, [r7, #2] + 800b4a4: 883a ldrh r2, [r7, #0] + 800b4a6: 78f9 ldrb r1, [r7, #3] + 800b4a8: f7f8 fbf3 bl 8003c92 + 800b4ac: 4603 mov r3, r0 + 800b4ae: 73fb strb r3, [r7, #15] usb_status = USBD_Get_USB_Status(hal_status); - 800b3f8: 7bfb ldrb r3, [r7, #15] - 800b3fa: 4618 mov r0, r3 - 800b3fc: f000 f958 bl 800b6b0 - 800b400: 4603 mov r3, r0 - 800b402: 73bb strb r3, [r7, #14] + 800b4b0: 7bfb ldrb r3, [r7, #15] + 800b4b2: 4618 mov r0, r3 + 800b4b4: f000 f958 bl 800b768 + 800b4b8: 4603 mov r3, r0 + 800b4ba: 73bb strb r3, [r7, #14] return usb_status; - 800b404: 7bbb ldrb r3, [r7, #14] + 800b4bc: 7bbb ldrb r3, [r7, #14] } - 800b406: 4618 mov r0, r3 - 800b408: 3710 adds r7, #16 - 800b40a: 46bd mov sp, r7 - 800b40c: bd80 pop {r7, pc} + 800b4be: 4618 mov r0, r3 + 800b4c0: 3710 adds r7, #16 + 800b4c2: 46bd mov sp, r7 + 800b4c4: bd80 pop {r7, pc} -0800b40e : +0800b4c6 : * @param pdev: Device handle * @param ep_addr: Endpoint number * @retval USBD status */ USBD_StatusTypeDef USBD_LL_CloseEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) { - 800b40e: b580 push {r7, lr} - 800b410: b084 sub sp, #16 - 800b412: af00 add r7, sp, #0 - 800b414: 6078 str r0, [r7, #4] - 800b416: 460b mov r3, r1 - 800b418: 70fb strb r3, [r7, #3] + 800b4c6: b580 push {r7, lr} + 800b4c8: b084 sub sp, #16 + 800b4ca: af00 add r7, sp, #0 + 800b4cc: 6078 str r0, [r7, #4] + 800b4ce: 460b mov r3, r1 + 800b4d0: 70fb strb r3, [r7, #3] HAL_StatusTypeDef hal_status = HAL_OK; - 800b41a: 2300 movs r3, #0 - 800b41c: 73fb strb r3, [r7, #15] + 800b4d2: 2300 movs r3, #0 + 800b4d4: 73fb strb r3, [r7, #15] USBD_StatusTypeDef usb_status = USBD_OK; - 800b41e: 2300 movs r3, #0 - 800b420: 73bb strb r3, [r7, #14] + 800b4d6: 2300 movs r3, #0 + 800b4d8: 73bb strb r3, [r7, #14] hal_status = HAL_PCD_EP_Close(pdev->pData, ep_addr); - 800b422: 687b ldr r3, [r7, #4] - 800b424: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800b428: 78fa ldrb r2, [r7, #3] - 800b42a: 4611 mov r1, r2 - 800b42c: 4618 mov r0, r3 - 800b42e: f7f8 fc3e bl 8003cae - 800b432: 4603 mov r3, r0 - 800b434: 73fb strb r3, [r7, #15] + 800b4da: 687b ldr r3, [r7, #4] + 800b4dc: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800b4e0: 78fa ldrb r2, [r7, #3] + 800b4e2: 4611 mov r1, r2 + 800b4e4: 4618 mov r0, r3 + 800b4e6: f7f8 fc3e bl 8003d66 + 800b4ea: 4603 mov r3, r0 + 800b4ec: 73fb strb r3, [r7, #15] usb_status = USBD_Get_USB_Status(hal_status); - 800b436: 7bfb ldrb r3, [r7, #15] - 800b438: 4618 mov r0, r3 - 800b43a: f000 f939 bl 800b6b0 - 800b43e: 4603 mov r3, r0 - 800b440: 73bb strb r3, [r7, #14] + 800b4ee: 7bfb ldrb r3, [r7, #15] + 800b4f0: 4618 mov r0, r3 + 800b4f2: f000 f939 bl 800b768 + 800b4f6: 4603 mov r3, r0 + 800b4f8: 73bb strb r3, [r7, #14] return usb_status; - 800b442: 7bbb ldrb r3, [r7, #14] + 800b4fa: 7bbb ldrb r3, [r7, #14] } - 800b444: 4618 mov r0, r3 - 800b446: 3710 adds r7, #16 - 800b448: 46bd mov sp, r7 - 800b44a: bd80 pop {r7, pc} + 800b4fc: 4618 mov r0, r3 + 800b4fe: 3710 adds r7, #16 + 800b500: 46bd mov sp, r7 + 800b502: bd80 pop {r7, pc} -0800b44c : +0800b504 : * @param pdev: Device handle * @param ep_addr: Endpoint number * @retval USBD status */ USBD_StatusTypeDef USBD_LL_StallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) { - 800b44c: b580 push {r7, lr} - 800b44e: b084 sub sp, #16 - 800b450: af00 add r7, sp, #0 - 800b452: 6078 str r0, [r7, #4] - 800b454: 460b mov r3, r1 - 800b456: 70fb strb r3, [r7, #3] + 800b504: b580 push {r7, lr} + 800b506: b084 sub sp, #16 + 800b508: af00 add r7, sp, #0 + 800b50a: 6078 str r0, [r7, #4] + 800b50c: 460b mov r3, r1 + 800b50e: 70fb strb r3, [r7, #3] HAL_StatusTypeDef hal_status = HAL_OK; - 800b458: 2300 movs r3, #0 - 800b45a: 73fb strb r3, [r7, #15] + 800b510: 2300 movs r3, #0 + 800b512: 73fb strb r3, [r7, #15] USBD_StatusTypeDef usb_status = USBD_OK; - 800b45c: 2300 movs r3, #0 - 800b45e: 73bb strb r3, [r7, #14] + 800b514: 2300 movs r3, #0 + 800b516: 73bb strb r3, [r7, #14] hal_status = HAL_PCD_EP_SetStall(pdev->pData, ep_addr); - 800b460: 687b ldr r3, [r7, #4] - 800b462: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800b466: 78fa ldrb r2, [r7, #3] - 800b468: 4611 mov r1, r2 - 800b46a: 4618 mov r0, r3 - 800b46c: f7f8 fcde bl 8003e2c - 800b470: 4603 mov r3, r0 - 800b472: 73fb strb r3, [r7, #15] + 800b518: 687b ldr r3, [r7, #4] + 800b51a: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800b51e: 78fa ldrb r2, [r7, #3] + 800b520: 4611 mov r1, r2 + 800b522: 4618 mov r0, r3 + 800b524: f7f8 fcde bl 8003ee4 + 800b528: 4603 mov r3, r0 + 800b52a: 73fb strb r3, [r7, #15] usb_status = USBD_Get_USB_Status(hal_status); - 800b474: 7bfb ldrb r3, [r7, #15] - 800b476: 4618 mov r0, r3 - 800b478: f000 f91a bl 800b6b0 - 800b47c: 4603 mov r3, r0 - 800b47e: 73bb strb r3, [r7, #14] + 800b52c: 7bfb ldrb r3, [r7, #15] + 800b52e: 4618 mov r0, r3 + 800b530: f000 f91a bl 800b768 + 800b534: 4603 mov r3, r0 + 800b536: 73bb strb r3, [r7, #14] return usb_status; - 800b480: 7bbb ldrb r3, [r7, #14] + 800b538: 7bbb ldrb r3, [r7, #14] } - 800b482: 4618 mov r0, r3 - 800b484: 3710 adds r7, #16 - 800b486: 46bd mov sp, r7 - 800b488: bd80 pop {r7, pc} + 800b53a: 4618 mov r0, r3 + 800b53c: 3710 adds r7, #16 + 800b53e: 46bd mov sp, r7 + 800b540: bd80 pop {r7, pc} -0800b48a : +0800b542 : * @param pdev: Device handle * @param ep_addr: Endpoint number * @retval USBD status */ USBD_StatusTypeDef USBD_LL_ClearStallEP(USBD_HandleTypeDef *pdev, uint8_t ep_addr) { - 800b48a: b580 push {r7, lr} - 800b48c: b084 sub sp, #16 - 800b48e: af00 add r7, sp, #0 - 800b490: 6078 str r0, [r7, #4] - 800b492: 460b mov r3, r1 - 800b494: 70fb strb r3, [r7, #3] + 800b542: b580 push {r7, lr} + 800b544: b084 sub sp, #16 + 800b546: af00 add r7, sp, #0 + 800b548: 6078 str r0, [r7, #4] + 800b54a: 460b mov r3, r1 + 800b54c: 70fb strb r3, [r7, #3] HAL_StatusTypeDef hal_status = HAL_OK; - 800b496: 2300 movs r3, #0 - 800b498: 73fb strb r3, [r7, #15] + 800b54e: 2300 movs r3, #0 + 800b550: 73fb strb r3, [r7, #15] USBD_StatusTypeDef usb_status = USBD_OK; - 800b49a: 2300 movs r3, #0 - 800b49c: 73bb strb r3, [r7, #14] + 800b552: 2300 movs r3, #0 + 800b554: 73bb strb r3, [r7, #14] hal_status = HAL_PCD_EP_ClrStall(pdev->pData, ep_addr); - 800b49e: 687b ldr r3, [r7, #4] - 800b4a0: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800b4a4: 78fa ldrb r2, [r7, #3] - 800b4a6: 4611 mov r1, r2 - 800b4a8: 4618 mov r0, r3 - 800b4aa: f7f8 fd22 bl 8003ef2 - 800b4ae: 4603 mov r3, r0 - 800b4b0: 73fb strb r3, [r7, #15] + 800b556: 687b ldr r3, [r7, #4] + 800b558: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800b55c: 78fa ldrb r2, [r7, #3] + 800b55e: 4611 mov r1, r2 + 800b560: 4618 mov r0, r3 + 800b562: f7f8 fd22 bl 8003faa + 800b566: 4603 mov r3, r0 + 800b568: 73fb strb r3, [r7, #15] usb_status = USBD_Get_USB_Status(hal_status); - 800b4b2: 7bfb ldrb r3, [r7, #15] - 800b4b4: 4618 mov r0, r3 - 800b4b6: f000 f8fb bl 800b6b0 - 800b4ba: 4603 mov r3, r0 - 800b4bc: 73bb strb r3, [r7, #14] + 800b56a: 7bfb ldrb r3, [r7, #15] + 800b56c: 4618 mov r0, r3 + 800b56e: f000 f8fb bl 800b768 + 800b572: 4603 mov r3, r0 + 800b574: 73bb strb r3, [r7, #14] return usb_status; - 800b4be: 7bbb ldrb r3, [r7, #14] + 800b576: 7bbb ldrb r3, [r7, #14] } - 800b4c0: 4618 mov r0, r3 - 800b4c2: 3710 adds r7, #16 - 800b4c4: 46bd mov sp, r7 - 800b4c6: bd80 pop {r7, pc} + 800b578: 4618 mov r0, r3 + 800b57a: 3710 adds r7, #16 + 800b57c: 46bd mov sp, r7 + 800b57e: bd80 pop {r7, pc} -0800b4c8 : +0800b580 : * @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) { - 800b4c8: b480 push {r7} - 800b4ca: b085 sub sp, #20 - 800b4cc: af00 add r7, sp, #0 - 800b4ce: 6078 str r0, [r7, #4] - 800b4d0: 460b mov r3, r1 - 800b4d2: 70fb strb r3, [r7, #3] + 800b580: b480 push {r7} + 800b582: b085 sub sp, #20 + 800b584: af00 add r7, sp, #0 + 800b586: 6078 str r0, [r7, #4] + 800b588: 460b mov r3, r1 + 800b58a: 70fb strb r3, [r7, #3] PCD_HandleTypeDef *hpcd = (PCD_HandleTypeDef*) pdev->pData; - 800b4d4: 687b ldr r3, [r7, #4] - 800b4d6: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800b4da: 60fb str r3, [r7, #12] + 800b58c: 687b ldr r3, [r7, #4] + 800b58e: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800b592: 60fb str r3, [r7, #12] if((ep_addr & 0x80) == 0x80) - 800b4dc: f997 3003 ldrsb.w r3, [r7, #3] - 800b4e0: 2b00 cmp r3, #0 - 800b4e2: da0b bge.n 800b4fc + 800b594: f997 3003 ldrsb.w r3, [r7, #3] + 800b598: 2b00 cmp r3, #0 + 800b59a: da0b bge.n 800b5b4 { return hpcd->IN_ep[ep_addr & 0x7F].is_stall; - 800b4e4: 78fb ldrb r3, [r7, #3] - 800b4e6: f003 027f and.w r2, r3, #127 @ 0x7f - 800b4ea: 68f9 ldr r1, [r7, #12] - 800b4ec: 4613 mov r3, r2 - 800b4ee: 00db lsls r3, r3, #3 - 800b4f0: 4413 add r3, r2 - 800b4f2: 009b lsls r3, r3, #2 - 800b4f4: 440b add r3, r1 - 800b4f6: 3316 adds r3, #22 - 800b4f8: 781b ldrb r3, [r3, #0] - 800b4fa: e00b b.n 800b514 + 800b59c: 78fb ldrb r3, [r7, #3] + 800b59e: f003 027f and.w r2, r3, #127 @ 0x7f + 800b5a2: 68f9 ldr r1, [r7, #12] + 800b5a4: 4613 mov r3, r2 + 800b5a6: 00db lsls r3, r3, #3 + 800b5a8: 4413 add r3, r2 + 800b5aa: 009b lsls r3, r3, #2 + 800b5ac: 440b add r3, r1 + 800b5ae: 3316 adds r3, #22 + 800b5b0: 781b ldrb r3, [r3, #0] + 800b5b2: e00b b.n 800b5cc } else { return hpcd->OUT_ep[ep_addr & 0x7F].is_stall; - 800b4fc: 78fb ldrb r3, [r7, #3] - 800b4fe: f003 027f and.w r2, r3, #127 @ 0x7f - 800b502: 68f9 ldr r1, [r7, #12] - 800b504: 4613 mov r3, r2 - 800b506: 00db lsls r3, r3, #3 - 800b508: 4413 add r3, r2 - 800b50a: 009b lsls r3, r3, #2 - 800b50c: 440b add r3, r1 - 800b50e: f203 2356 addw r3, r3, #598 @ 0x256 - 800b512: 781b ldrb r3, [r3, #0] + 800b5b4: 78fb ldrb r3, [r7, #3] + 800b5b6: f003 027f and.w r2, r3, #127 @ 0x7f + 800b5ba: 68f9 ldr r1, [r7, #12] + 800b5bc: 4613 mov r3, r2 + 800b5be: 00db lsls r3, r3, #3 + 800b5c0: 4413 add r3, r2 + 800b5c2: 009b lsls r3, r3, #2 + 800b5c4: 440b add r3, r1 + 800b5c6: f203 2356 addw r3, r3, #598 @ 0x256 + 800b5ca: 781b ldrb r3, [r3, #0] } } - 800b514: 4618 mov r0, r3 - 800b516: 3714 adds r7, #20 - 800b518: 46bd mov sp, r7 - 800b51a: f85d 7b04 ldr.w r7, [sp], #4 - 800b51e: 4770 bx lr + 800b5cc: 4618 mov r0, r3 + 800b5ce: 3714 adds r7, #20 + 800b5d0: 46bd mov sp, r7 + 800b5d2: f85d 7b04 ldr.w r7, [sp], #4 + 800b5d6: 4770 bx lr -0800b520 : +0800b5d8 : * @param pdev: Device handle * @param dev_addr: Device address * @retval USBD status */ USBD_StatusTypeDef USBD_LL_SetUSBAddress(USBD_HandleTypeDef *pdev, uint8_t dev_addr) { - 800b520: b580 push {r7, lr} - 800b522: b084 sub sp, #16 - 800b524: af00 add r7, sp, #0 - 800b526: 6078 str r0, [r7, #4] - 800b528: 460b mov r3, r1 - 800b52a: 70fb strb r3, [r7, #3] + 800b5d8: b580 push {r7, lr} + 800b5da: b084 sub sp, #16 + 800b5dc: af00 add r7, sp, #0 + 800b5de: 6078 str r0, [r7, #4] + 800b5e0: 460b mov r3, r1 + 800b5e2: 70fb strb r3, [r7, #3] HAL_StatusTypeDef hal_status = HAL_OK; - 800b52c: 2300 movs r3, #0 - 800b52e: 73fb strb r3, [r7, #15] + 800b5e4: 2300 movs r3, #0 + 800b5e6: 73fb strb r3, [r7, #15] USBD_StatusTypeDef usb_status = USBD_OK; - 800b530: 2300 movs r3, #0 - 800b532: 73bb strb r3, [r7, #14] + 800b5e8: 2300 movs r3, #0 + 800b5ea: 73bb strb r3, [r7, #14] hal_status = HAL_PCD_SetAddress(pdev->pData, dev_addr); - 800b534: 687b ldr r3, [r7, #4] - 800b536: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 - 800b53a: 78fa ldrb r2, [r7, #3] - 800b53c: 4611 mov r1, r2 - 800b53e: 4618 mov r0, r3 - 800b540: f7f8 fb27 bl 8003b92 - 800b544: 4603 mov r3, r0 - 800b546: 73fb strb r3, [r7, #15] + 800b5ec: 687b ldr r3, [r7, #4] + 800b5ee: f8d3 32c8 ldr.w r3, [r3, #712] @ 0x2c8 + 800b5f2: 78fa ldrb r2, [r7, #3] + 800b5f4: 4611 mov r1, r2 + 800b5f6: 4618 mov r0, r3 + 800b5f8: f7f8 fb27 bl 8003c4a + 800b5fc: 4603 mov r3, r0 + 800b5fe: 73fb strb r3, [r7, #15] usb_status = USBD_Get_USB_Status(hal_status); - 800b548: 7bfb ldrb r3, [r7, #15] - 800b54a: 4618 mov r0, r3 - 800b54c: f000 f8b0 bl 800b6b0 - 800b550: 4603 mov r3, r0 - 800b552: 73bb strb r3, [r7, #14] + 800b600: 7bfb ldrb r3, [r7, #15] + 800b602: 4618 mov r0, r3 + 800b604: f000 f8b0 bl 800b768 + 800b608: 4603 mov r3, r0 + 800b60a: 73bb strb r3, [r7, #14] return usb_status; - 800b554: 7bbb ldrb r3, [r7, #14] + 800b60c: 7bbb ldrb r3, [r7, #14] } - 800b556: 4618 mov r0, r3 - 800b558: 3710 adds r7, #16 - 800b55a: 46bd mov sp, r7 - 800b55c: bd80 pop {r7, pc} + 800b60e: 4618 mov r0, r3 + 800b610: 3710 adds r7, #16 + 800b612: 46bd mov sp, r7 + 800b614: bd80 pop {r7, pc} -0800b55e : +0800b616 : * @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) { - 800b55e: b580 push {r7, lr} - 800b560: b086 sub sp, #24 - 800b562: af00 add r7, sp, #0 - 800b564: 60f8 str r0, [r7, #12] - 800b566: 607a str r2, [r7, #4] - 800b568: 603b str r3, [r7, #0] - 800b56a: 460b mov r3, r1 - 800b56c: 72fb strb r3, [r7, #11] + 800b616: b580 push {r7, lr} + 800b618: b086 sub sp, #24 + 800b61a: af00 add r7, sp, #0 + 800b61c: 60f8 str r0, [r7, #12] + 800b61e: 607a str r2, [r7, #4] + 800b620: 603b str r3, [r7, #0] + 800b622: 460b mov r3, r1 + 800b624: 72fb strb r3, [r7, #11] HAL_StatusTypeDef hal_status = HAL_OK; - 800b56e: 2300 movs r3, #0 - 800b570: 75fb strb r3, [r7, #23] + 800b626: 2300 movs r3, #0 + 800b628: 75fb strb r3, [r7, #23] USBD_StatusTypeDef usb_status = USBD_OK; - 800b572: 2300 movs r3, #0 - 800b574: 75bb strb r3, [r7, #22] + 800b62a: 2300 movs r3, #0 + 800b62c: 75bb strb r3, [r7, #22] hal_status = HAL_PCD_EP_Transmit(pdev->pData, ep_addr, pbuf, size); - 800b576: 68fb ldr r3, [r7, #12] - 800b578: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 - 800b57c: 7af9 ldrb r1, [r7, #11] - 800b57e: 683b ldr r3, [r7, #0] - 800b580: 687a ldr r2, [r7, #4] - 800b582: f7f8 fc19 bl 8003db8 - 800b586: 4603 mov r3, r0 - 800b588: 75fb strb r3, [r7, #23] + 800b62e: 68fb ldr r3, [r7, #12] + 800b630: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 + 800b634: 7af9 ldrb r1, [r7, #11] + 800b636: 683b ldr r3, [r7, #0] + 800b638: 687a ldr r2, [r7, #4] + 800b63a: f7f8 fc19 bl 8003e70 + 800b63e: 4603 mov r3, r0 + 800b640: 75fb strb r3, [r7, #23] usb_status = USBD_Get_USB_Status(hal_status); - 800b58a: 7dfb ldrb r3, [r7, #23] - 800b58c: 4618 mov r0, r3 - 800b58e: f000 f88f bl 800b6b0 - 800b592: 4603 mov r3, r0 - 800b594: 75bb strb r3, [r7, #22] + 800b642: 7dfb ldrb r3, [r7, #23] + 800b644: 4618 mov r0, r3 + 800b646: f000 f88f bl 800b768 + 800b64a: 4603 mov r3, r0 + 800b64c: 75bb strb r3, [r7, #22] return usb_status; - 800b596: 7dbb ldrb r3, [r7, #22] + 800b64e: 7dbb ldrb r3, [r7, #22] } - 800b598: 4618 mov r0, r3 - 800b59a: 3718 adds r7, #24 - 800b59c: 46bd mov sp, r7 - 800b59e: bd80 pop {r7, pc} + 800b650: 4618 mov r0, r3 + 800b652: 3718 adds r7, #24 + 800b654: 46bd mov sp, r7 + 800b656: bd80 pop {r7, pc} -0800b5a0 : +0800b658 : * @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) { - 800b5a0: b580 push {r7, lr} - 800b5a2: b086 sub sp, #24 - 800b5a4: af00 add r7, sp, #0 - 800b5a6: 60f8 str r0, [r7, #12] - 800b5a8: 607a str r2, [r7, #4] - 800b5aa: 603b str r3, [r7, #0] - 800b5ac: 460b mov r3, r1 - 800b5ae: 72fb strb r3, [r7, #11] + 800b658: b580 push {r7, lr} + 800b65a: b086 sub sp, #24 + 800b65c: af00 add r7, sp, #0 + 800b65e: 60f8 str r0, [r7, #12] + 800b660: 607a str r2, [r7, #4] + 800b662: 603b str r3, [r7, #0] + 800b664: 460b mov r3, r1 + 800b666: 72fb strb r3, [r7, #11] HAL_StatusTypeDef hal_status = HAL_OK; - 800b5b0: 2300 movs r3, #0 - 800b5b2: 75fb strb r3, [r7, #23] + 800b668: 2300 movs r3, #0 + 800b66a: 75fb strb r3, [r7, #23] USBD_StatusTypeDef usb_status = USBD_OK; - 800b5b4: 2300 movs r3, #0 - 800b5b6: 75bb strb r3, [r7, #22] + 800b66c: 2300 movs r3, #0 + 800b66e: 75bb strb r3, [r7, #22] hal_status = HAL_PCD_EP_Receive(pdev->pData, ep_addr, pbuf, size); - 800b5b8: 68fb ldr r3, [r7, #12] - 800b5ba: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 - 800b5be: 7af9 ldrb r1, [r7, #11] - 800b5c0: 683b ldr r3, [r7, #0] - 800b5c2: 687a ldr r2, [r7, #4] - 800b5c4: f7f8 fbbd bl 8003d42 - 800b5c8: 4603 mov r3, r0 - 800b5ca: 75fb strb r3, [r7, #23] + 800b670: 68fb ldr r3, [r7, #12] + 800b672: f8d3 02c8 ldr.w r0, [r3, #712] @ 0x2c8 + 800b676: 7af9 ldrb r1, [r7, #11] + 800b678: 683b ldr r3, [r7, #0] + 800b67a: 687a ldr r2, [r7, #4] + 800b67c: f7f8 fbbd bl 8003dfa + 800b680: 4603 mov r3, r0 + 800b682: 75fb strb r3, [r7, #23] usb_status = USBD_Get_USB_Status(hal_status); - 800b5cc: 7dfb ldrb r3, [r7, #23] - 800b5ce: 4618 mov r0, r3 - 800b5d0: f000 f86e bl 800b6b0 - 800b5d4: 4603 mov r3, r0 - 800b5d6: 75bb strb r3, [r7, #22] + 800b684: 7dfb ldrb r3, [r7, #23] + 800b686: 4618 mov r0, r3 + 800b688: f000 f86e bl 800b768 + 800b68c: 4603 mov r3, r0 + 800b68e: 75bb strb r3, [r7, #22] return usb_status; - 800b5d8: 7dbb ldrb r3, [r7, #22] + 800b690: 7dbb ldrb r3, [r7, #22] } - 800b5da: 4618 mov r0, r3 - 800b5dc: 3718 adds r7, #24 - 800b5de: 46bd mov sp, r7 - 800b5e0: bd80 pop {r7, pc} + 800b692: 4618 mov r0, r3 + 800b694: 3718 adds r7, #24 + 800b696: 46bd mov sp, r7 + 800b698: bd80 pop {r7, pc} ... -0800b5e4 : +0800b69c : * @param hpcd: PCD handle * @param msg: LPM message * @retval None */ void HAL_PCDEx_LPM_Callback(PCD_HandleTypeDef *hpcd, PCD_LPM_MsgTypeDef msg) { - 800b5e4: b580 push {r7, lr} - 800b5e6: b082 sub sp, #8 - 800b5e8: af00 add r7, sp, #0 - 800b5ea: 6078 str r0, [r7, #4] - 800b5ec: 460b mov r3, r1 - 800b5ee: 70fb strb r3, [r7, #3] + 800b69c: b580 push {r7, lr} + 800b69e: b082 sub sp, #8 + 800b6a0: af00 add r7, sp, #0 + 800b6a2: 6078 str r0, [r7, #4] + 800b6a4: 460b mov r3, r1 + 800b6a6: 70fb strb r3, [r7, #3] switch (msg) - 800b5f0: 78fb ldrb r3, [r7, #3] - 800b5f2: 2b00 cmp r3, #0 - 800b5f4: d002 beq.n 800b5fc - 800b5f6: 2b01 cmp r3, #1 - 800b5f8: d01f beq.n 800b63a + 800b6a8: 78fb ldrb r3, [r7, #3] + 800b6aa: 2b00 cmp r3, #0 + 800b6ac: d002 beq.n 800b6b4 + 800b6ae: 2b01 cmp r3, #1 + 800b6b0: d01f beq.n 800b6f2 /* 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; } } - 800b5fa: e03b b.n 800b674 + 800b6b2: e03b b.n 800b72c if (hpcd->Init.low_power_enable) - 800b5fc: 687b ldr r3, [r7, #4] - 800b5fe: 7adb ldrb r3, [r3, #11] - 800b600: 2b00 cmp r3, #0 - 800b602: d007 beq.n 800b614 + 800b6b4: 687b ldr r3, [r7, #4] + 800b6b6: 7adb ldrb r3, [r3, #11] + 800b6b8: 2b00 cmp r3, #0 + 800b6ba: d007 beq.n 800b6cc SystemClock_Config(); - 800b604: f7f5 fb96 bl 8000d34 + 800b6bc: f7f5 fb3e bl 8000d3c SCB->SCR &= (uint32_t)~((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); - 800b608: 4b1c ldr r3, [pc, #112] @ (800b67c ) - 800b60a: 691b ldr r3, [r3, #16] - 800b60c: 4a1b ldr r2, [pc, #108] @ (800b67c ) - 800b60e: f023 0306 bic.w r3, r3, #6 - 800b612: 6113 str r3, [r2, #16] + 800b6c0: 4b1c ldr r3, [pc, #112] @ (800b734 ) + 800b6c2: 691b ldr r3, [r3, #16] + 800b6c4: 4a1b ldr r2, [pc, #108] @ (800b734 ) + 800b6c6: f023 0306 bic.w r3, r3, #6 + 800b6ca: 6113 str r3, [r2, #16] __HAL_PCD_UNGATE_PHYCLOCK(hpcd); - 800b614: 687b ldr r3, [r7, #4] - 800b616: 681b ldr r3, [r3, #0] - 800b618: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 800b61c: 681b ldr r3, [r3, #0] - 800b61e: 687a ldr r2, [r7, #4] - 800b620: 6812 ldr r2, [r2, #0] - 800b622: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 800b626: f023 0301 bic.w r3, r3, #1 - 800b62a: 6013 str r3, [r2, #0] + 800b6cc: 687b ldr r3, [r7, #4] + 800b6ce: 681b ldr r3, [r3, #0] + 800b6d0: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 800b6d4: 681b ldr r3, [r3, #0] + 800b6d6: 687a ldr r2, [r7, #4] + 800b6d8: 6812 ldr r2, [r2, #0] + 800b6da: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 800b6de: f023 0301 bic.w r3, r3, #1 + 800b6e2: 6013 str r3, [r2, #0] USBD_LL_Resume(hpcd->pData); - 800b62c: 687b ldr r3, [r7, #4] - 800b62e: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800b632: 4618 mov r0, r3 - 800b634: f7fe fb90 bl 8009d58 + 800b6e4: 687b ldr r3, [r7, #4] + 800b6e6: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800b6ea: 4618 mov r0, r3 + 800b6ec: f7fe fb90 bl 8009e10 break; - 800b638: e01c b.n 800b674 + 800b6f0: e01c b.n 800b72c __HAL_PCD_GATE_PHYCLOCK(hpcd); - 800b63a: 687b ldr r3, [r7, #4] - 800b63c: 681b ldr r3, [r3, #0] - 800b63e: f503 6360 add.w r3, r3, #3584 @ 0xe00 - 800b642: 681b ldr r3, [r3, #0] - 800b644: 687a ldr r2, [r7, #4] - 800b646: 6812 ldr r2, [r2, #0] - 800b648: f502 6260 add.w r2, r2, #3584 @ 0xe00 - 800b64c: f043 0301 orr.w r3, r3, #1 - 800b650: 6013 str r3, [r2, #0] + 800b6f2: 687b ldr r3, [r7, #4] + 800b6f4: 681b ldr r3, [r3, #0] + 800b6f6: f503 6360 add.w r3, r3, #3584 @ 0xe00 + 800b6fa: 681b ldr r3, [r3, #0] + 800b6fc: 687a ldr r2, [r7, #4] + 800b6fe: 6812 ldr r2, [r2, #0] + 800b700: f502 6260 add.w r2, r2, #3584 @ 0xe00 + 800b704: f043 0301 orr.w r3, r3, #1 + 800b708: 6013 str r3, [r2, #0] USBD_LL_Suspend(hpcd->pData); - 800b652: 687b ldr r3, [r7, #4] - 800b654: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 - 800b658: 4618 mov r0, r3 - 800b65a: f7fe fb61 bl 8009d20 + 800b70a: 687b ldr r3, [r7, #4] + 800b70c: f8d3 34e0 ldr.w r3, [r3, #1248] @ 0x4e0 + 800b710: 4618 mov r0, r3 + 800b712: f7fe fb61 bl 8009dd8 if (hpcd->Init.low_power_enable) - 800b65e: 687b ldr r3, [r7, #4] - 800b660: 7adb ldrb r3, [r3, #11] - 800b662: 2b00 cmp r3, #0 - 800b664: d005 beq.n 800b672 + 800b716: 687b ldr r3, [r7, #4] + 800b718: 7adb ldrb r3, [r3, #11] + 800b71a: 2b00 cmp r3, #0 + 800b71c: d005 beq.n 800b72a SCB->SCR |= (uint32_t)((uint32_t)(SCB_SCR_SLEEPDEEP_Msk | SCB_SCR_SLEEPONEXIT_Msk)); - 800b666: 4b05 ldr r3, [pc, #20] @ (800b67c ) - 800b668: 691b ldr r3, [r3, #16] - 800b66a: 4a04 ldr r2, [pc, #16] @ (800b67c ) - 800b66c: f043 0306 orr.w r3, r3, #6 - 800b670: 6113 str r3, [r2, #16] + 800b71e: 4b05 ldr r3, [pc, #20] @ (800b734 ) + 800b720: 691b ldr r3, [r3, #16] + 800b722: 4a04 ldr r2, [pc, #16] @ (800b734 ) + 800b724: f043 0306 orr.w r3, r3, #6 + 800b728: 6113 str r3, [r2, #16] break; - 800b672: bf00 nop + 800b72a: bf00 nop } - 800b674: bf00 nop - 800b676: 3708 adds r7, #8 - 800b678: 46bd mov sp, r7 - 800b67a: bd80 pop {r7, pc} - 800b67c: e000ed00 .word 0xe000ed00 + 800b72c: bf00 nop + 800b72e: 3708 adds r7, #8 + 800b730: 46bd mov sp, r7 + 800b732: bd80 pop {r7, pc} + 800b734: e000ed00 .word 0xe000ed00 -0800b680 : +0800b738 : * @brief Static single allocation. * @param size: Size of allocated memory * @retval None */ void *USBD_static_malloc(uint32_t size) { - 800b680: b480 push {r7} - 800b682: b083 sub sp, #12 - 800b684: af00 add r7, sp, #0 - 800b686: 6078 str r0, [r7, #4] + 800b738: b480 push {r7} + 800b73a: b083 sub sp, #12 + 800b73c: af00 add r7, sp, #0 + 800b73e: 6078 str r0, [r7, #4] static uint32_t mem[(sizeof(USBD_HID_HandleTypeDef)/4)+1];/* On 32-bit boundary */ return mem; - 800b688: 4b03 ldr r3, [pc, #12] @ (800b698 ) + 800b740: 4b03 ldr r3, [pc, #12] @ (800b750 ) } - 800b68a: 4618 mov r0, r3 - 800b68c: 370c adds r7, #12 - 800b68e: 46bd mov sp, r7 - 800b690: f85d 7b04 ldr.w r7, [sp], #4 - 800b694: 4770 bx lr - 800b696: bf00 nop - 800b698: 200018c8 .word 0x200018c8 + 800b742: 4618 mov r0, r3 + 800b744: 370c adds r7, #12 + 800b746: 46bd mov sp, r7 + 800b748: f85d 7b04 ldr.w r7, [sp], #4 + 800b74c: 4770 bx lr + 800b74e: bf00 nop + 800b750: 200018c8 .word 0x200018c8 -0800b69c : +0800b754 : * @brief Dummy memory free * @param p: Pointer to allocated memory address * @retval None */ void USBD_static_free(void *p) { - 800b69c: b480 push {r7} - 800b69e: b083 sub sp, #12 - 800b6a0: af00 add r7, sp, #0 - 800b6a2: 6078 str r0, [r7, #4] + 800b754: b480 push {r7} + 800b756: b083 sub sp, #12 + 800b758: af00 add r7, sp, #0 + 800b75a: 6078 str r0, [r7, #4] } - 800b6a4: bf00 nop - 800b6a6: 370c adds r7, #12 - 800b6a8: 46bd mov sp, r7 - 800b6aa: f85d 7b04 ldr.w r7, [sp], #4 - 800b6ae: 4770 bx lr + 800b75c: bf00 nop + 800b75e: 370c adds r7, #12 + 800b760: 46bd mov sp, r7 + 800b762: f85d 7b04 ldr.w r7, [sp], #4 + 800b766: 4770 bx lr -0800b6b0 : +0800b768 : * @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) { - 800b6b0: b480 push {r7} - 800b6b2: b085 sub sp, #20 - 800b6b4: af00 add r7, sp, #0 - 800b6b6: 4603 mov r3, r0 - 800b6b8: 71fb strb r3, [r7, #7] + 800b768: b480 push {r7} + 800b76a: b085 sub sp, #20 + 800b76c: af00 add r7, sp, #0 + 800b76e: 4603 mov r3, r0 + 800b770: 71fb strb r3, [r7, #7] USBD_StatusTypeDef usb_status = USBD_OK; - 800b6ba: 2300 movs r3, #0 - 800b6bc: 73fb strb r3, [r7, #15] + 800b772: 2300 movs r3, #0 + 800b774: 73fb strb r3, [r7, #15] switch (hal_status) - 800b6be: 79fb ldrb r3, [r7, #7] - 800b6c0: 2b03 cmp r3, #3 - 800b6c2: d817 bhi.n 800b6f4 - 800b6c4: a201 add r2, pc, #4 @ (adr r2, 800b6cc ) - 800b6c6: f852 f023 ldr.w pc, [r2, r3, lsl #2] - 800b6ca: bf00 nop - 800b6cc: 0800b6dd .word 0x0800b6dd - 800b6d0: 0800b6e3 .word 0x0800b6e3 - 800b6d4: 0800b6e9 .word 0x0800b6e9 - 800b6d8: 0800b6ef .word 0x0800b6ef + 800b776: 79fb ldrb r3, [r7, #7] + 800b778: 2b03 cmp r3, #3 + 800b77a: d817 bhi.n 800b7ac + 800b77c: a201 add r2, pc, #4 @ (adr r2, 800b784 ) + 800b77e: f852 f023 ldr.w pc, [r2, r3, lsl #2] + 800b782: bf00 nop + 800b784: 0800b795 .word 0x0800b795 + 800b788: 0800b79b .word 0x0800b79b + 800b78c: 0800b7a1 .word 0x0800b7a1 + 800b790: 0800b7a7 .word 0x0800b7a7 { case HAL_OK : usb_status = USBD_OK; - 800b6dc: 2300 movs r3, #0 - 800b6de: 73fb strb r3, [r7, #15] + 800b794: 2300 movs r3, #0 + 800b796: 73fb strb r3, [r7, #15] break; - 800b6e0: e00b b.n 800b6fa + 800b798: e00b b.n 800b7b2 case HAL_ERROR : usb_status = USBD_FAIL; - 800b6e2: 2303 movs r3, #3 - 800b6e4: 73fb strb r3, [r7, #15] + 800b79a: 2303 movs r3, #3 + 800b79c: 73fb strb r3, [r7, #15] break; - 800b6e6: e008 b.n 800b6fa + 800b79e: e008 b.n 800b7b2 case HAL_BUSY : usb_status = USBD_BUSY; - 800b6e8: 2301 movs r3, #1 - 800b6ea: 73fb strb r3, [r7, #15] + 800b7a0: 2301 movs r3, #1 + 800b7a2: 73fb strb r3, [r7, #15] break; - 800b6ec: e005 b.n 800b6fa + 800b7a4: e005 b.n 800b7b2 case HAL_TIMEOUT : usb_status = USBD_FAIL; - 800b6ee: 2303 movs r3, #3 - 800b6f0: 73fb strb r3, [r7, #15] + 800b7a6: 2303 movs r3, #3 + 800b7a8: 73fb strb r3, [r7, #15] break; - 800b6f2: e002 b.n 800b6fa + 800b7aa: e002 b.n 800b7b2 default : usb_status = USBD_FAIL; - 800b6f4: 2303 movs r3, #3 - 800b6f6: 73fb strb r3, [r7, #15] + 800b7ac: 2303 movs r3, #3 + 800b7ae: 73fb strb r3, [r7, #15] break; - 800b6f8: bf00 nop + 800b7b0: bf00 nop } return usb_status; - 800b6fa: 7bfb ldrb r3, [r7, #15] + 800b7b2: 7bfb ldrb r3, [r7, #15] } - 800b6fc: 4618 mov r0, r3 - 800b6fe: 3714 adds r7, #20 - 800b700: 46bd mov sp, r7 - 800b702: f85d 7b04 ldr.w r7, [sp], #4 - 800b706: 4770 bx lr + 800b7b4: 4618 mov r0, r3 + 800b7b6: 3714 adds r7, #20 + 800b7b8: 46bd mov sp, r7 + 800b7ba: f85d 7b04 ldr.w r7, [sp], #4 + 800b7be: 4770 bx lr -0800b708 : - 800b708: 4402 add r2, r0 - 800b70a: 4603 mov r3, r0 - 800b70c: 4293 cmp r3, r2 - 800b70e: d100 bne.n 800b712 - 800b710: 4770 bx lr - 800b712: f803 1b01 strb.w r1, [r3], #1 - 800b716: e7f9 b.n 800b70c +0800b7c0 : + 800b7c0: 4402 add r2, r0 + 800b7c2: 4603 mov r3, r0 + 800b7c4: 4293 cmp r3, r2 + 800b7c6: d100 bne.n 800b7ca + 800b7c8: 4770 bx lr + 800b7ca: f803 1b01 strb.w r1, [r3], #1 + 800b7ce: e7f9 b.n 800b7c4 -0800b718 <__libc_init_array>: - 800b718: b570 push {r4, r5, r6, lr} - 800b71a: 4d0d ldr r5, [pc, #52] @ (800b750 <__libc_init_array+0x38>) - 800b71c: 4c0d ldr r4, [pc, #52] @ (800b754 <__libc_init_array+0x3c>) - 800b71e: 1b64 subs r4, r4, r5 - 800b720: 10a4 asrs r4, r4, #2 - 800b722: 2600 movs r6, #0 - 800b724: 42a6 cmp r6, r4 - 800b726: d109 bne.n 800b73c <__libc_init_array+0x24> - 800b728: 4d0b ldr r5, [pc, #44] @ (800b758 <__libc_init_array+0x40>) - 800b72a: 4c0c ldr r4, [pc, #48] @ (800b75c <__libc_init_array+0x44>) - 800b72c: f000 f826 bl 800b77c <_init> - 800b730: 1b64 subs r4, r4, r5 - 800b732: 10a4 asrs r4, r4, #2 - 800b734: 2600 movs r6, #0 - 800b736: 42a6 cmp r6, r4 - 800b738: d105 bne.n 800b746 <__libc_init_array+0x2e> - 800b73a: bd70 pop {r4, r5, r6, pc} - 800b73c: f855 3b04 ldr.w r3, [r5], #4 - 800b740: 4798 blx r3 - 800b742: 3601 adds r6, #1 - 800b744: e7ee b.n 800b724 <__libc_init_array+0xc> - 800b746: f855 3b04 ldr.w r3, [r5], #4 - 800b74a: 4798 blx r3 - 800b74c: 3601 adds r6, #1 - 800b74e: e7f2 b.n 800b736 <__libc_init_array+0x1e> - 800b750: 0800b7f8 .word 0x0800b7f8 - 800b754: 0800b7f8 .word 0x0800b7f8 - 800b758: 0800b7f8 .word 0x0800b7f8 - 800b75c: 0800b7fc .word 0x0800b7fc +0800b7d0 <__libc_init_array>: + 800b7d0: b570 push {r4, r5, r6, lr} + 800b7d2: 4d0d ldr r5, [pc, #52] @ (800b808 <__libc_init_array+0x38>) + 800b7d4: 4c0d ldr r4, [pc, #52] @ (800b80c <__libc_init_array+0x3c>) + 800b7d6: 1b64 subs r4, r4, r5 + 800b7d8: 10a4 asrs r4, r4, #2 + 800b7da: 2600 movs r6, #0 + 800b7dc: 42a6 cmp r6, r4 + 800b7de: d109 bne.n 800b7f4 <__libc_init_array+0x24> + 800b7e0: 4d0b ldr r5, [pc, #44] @ (800b810 <__libc_init_array+0x40>) + 800b7e2: 4c0c ldr r4, [pc, #48] @ (800b814 <__libc_init_array+0x44>) + 800b7e4: f000 f826 bl 800b834 <_init> + 800b7e8: 1b64 subs r4, r4, r5 + 800b7ea: 10a4 asrs r4, r4, #2 + 800b7ec: 2600 movs r6, #0 + 800b7ee: 42a6 cmp r6, r4 + 800b7f0: d105 bne.n 800b7fe <__libc_init_array+0x2e> + 800b7f2: bd70 pop {r4, r5, r6, pc} + 800b7f4: f855 3b04 ldr.w r3, [r5], #4 + 800b7f8: 4798 blx r3 + 800b7fa: 3601 adds r6, #1 + 800b7fc: e7ee b.n 800b7dc <__libc_init_array+0xc> + 800b7fe: f855 3b04 ldr.w r3, [r5], #4 + 800b802: 4798 blx r3 + 800b804: 3601 adds r6, #1 + 800b806: e7f2 b.n 800b7ee <__libc_init_array+0x1e> + 800b808: 0800b8b0 .word 0x0800b8b0 + 800b80c: 0800b8b0 .word 0x0800b8b0 + 800b810: 0800b8b0 .word 0x0800b8b0 + 800b814: 0800b8b4 .word 0x0800b8b4 -0800b760 : - 800b760: 440a add r2, r1 - 800b762: 4291 cmp r1, r2 - 800b764: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff - 800b768: d100 bne.n 800b76c - 800b76a: 4770 bx lr - 800b76c: b510 push {r4, lr} - 800b76e: f811 4b01 ldrb.w r4, [r1], #1 - 800b772: f803 4f01 strb.w r4, [r3, #1]! - 800b776: 4291 cmp r1, r2 - 800b778: d1f9 bne.n 800b76e - 800b77a: bd10 pop {r4, pc} +0800b818 : + 800b818: 440a add r2, r1 + 800b81a: 4291 cmp r1, r2 + 800b81c: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff + 800b820: d100 bne.n 800b824 + 800b822: 4770 bx lr + 800b824: b510 push {r4, lr} + 800b826: f811 4b01 ldrb.w r4, [r1], #1 + 800b82a: f803 4f01 strb.w r4, [r3, #1]! + 800b82e: 4291 cmp r1, r2 + 800b830: d1f9 bne.n 800b826 + 800b832: bd10 pop {r4, pc} -0800b77c <_init>: - 800b77c: b5f8 push {r3, r4, r5, r6, r7, lr} - 800b77e: bf00 nop - 800b780: bcf8 pop {r3, r4, r5, r6, r7} - 800b782: bc08 pop {r3} - 800b784: 469e mov lr, r3 - 800b786: 4770 bx lr +0800b834 <_init>: + 800b834: b5f8 push {r3, r4, r5, r6, r7, lr} + 800b836: bf00 nop + 800b838: bcf8 pop {r3, r4, r5, r6, r7} + 800b83a: bc08 pop {r3} + 800b83c: 469e mov lr, r3 + 800b83e: 4770 bx lr -0800b788 <_fini>: - 800b788: b5f8 push {r3, r4, r5, r6, r7, lr} - 800b78a: bf00 nop - 800b78c: bcf8 pop {r3, r4, r5, r6, r7} - 800b78e: bc08 pop {r3} - 800b790: 469e mov lr, r3 - 800b792: 4770 bx lr +0800b840 <_fini>: + 800b840: b5f8 push {r3, r4, r5, r6, r7, lr} + 800b842: bf00 nop + 800b844: bcf8 pop {r3, r4, r5, r6, r7} + 800b846: bc08 pop {r3} + 800b848: 469e mov lr, r3 + 800b84a: 4770 bx lr diff --git a/firmware/numpad/Debug/numpad.map b/firmware/numpad/Debug/numpad.map index b445abd6..b38282bd 100644 --- a/firmware/numpad/Debug/numpad.map +++ b/firmware/numpad/Debug/numpad.map @@ -423,8 +423,6 @@ Discarded input sections 0x00000000 0x10 ./Core/Src/main.o .bss.uartUpdateFlag 0x00000000 0x4 ./Core/Src/main.o - .text.encoderProcess - 0x00000000 0xbc ./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 @@ -5468,7 +5466,7 @@ LOAD /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.external 0x08000000 g_pfnVectors 0x080001c4 . = ALIGN (0x4) -.text 0x080001c4 0xb5d0 +.text 0x080001c4 0xb688 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 @@ -5498,916 +5496,919 @@ LOAD /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.external 0x08000854 pq_push .text.pq_pop 0x080008bc 0x6c ./Core/Src/main.o 0x080008bc pq_pop - .text.main 0x08000928 0x1e0 ./Core/Src/main.o + .text.main 0x08000928 0x1e8 ./Core/Src/main.o 0x08000928 main .text.RGBProcess - 0x08000b08 0x4e ./Core/Src/main.o - 0x08000b08 RGBProcess - *fill* 0x08000b56 0x2 + 0x08000b10 0x4e ./Core/Src/main.o + 0x08000b10 RGBProcess + *fill* 0x08000b5e 0x2 .text.setRGBcolor - 0x08000b58 0xb8 ./Core/Src/main.o - 0x08000b58 setRGBcolor + 0x08000b60 0xb8 ./Core/Src/main.o + 0x08000b60 setRGBcolor .text.sendRGBcolor - 0x08000c10 0x1c ./Core/Src/main.o - 0x08000c10 sendRGBcolor + 0x08000c18 0x1c ./Core/Src/main.o + 0x08000c18 sendRGBcolor .text.mergeChild - 0x08000c2c 0x108 ./Core/Src/main.o - 0x08000c2c mergeChild + 0x08000c34 0x108 ./Core/Src/main.o + 0x08000c34 mergeChild .text.SystemClock_Config - 0x08000d34 0xd8 ./Core/Src/main.o - 0x08000d34 SystemClock_Config + 0x08000d3c 0xd8 ./Core/Src/main.o + 0x08000d3c SystemClock_Config .text.HAL_UART_RxCpltCallback - 0x08000e0c 0xb8 ./Core/Src/main.o - 0x08000e0c HAL_UART_RxCpltCallback + 0x08000e14 0xb8 ./Core/Src/main.o + 0x08000e14 HAL_UART_RxCpltCallback .text.HAL_UART_ErrorCallback - 0x08000ec4 0x98 ./Core/Src/main.o - 0x08000ec4 HAL_UART_ErrorCallback + 0x08000ecc 0x98 ./Core/Src/main.o + 0x08000ecc HAL_UART_ErrorCallback .text.findBestParent - 0x08000f5c 0x84 ./Core/Src/main.o - 0x08000f5c findBestParent + 0x08000f64 0x84 ./Core/Src/main.o + 0x08000f64 findBestParent .text.handleUARTMessages - 0x08000fe0 0x144 ./Core/Src/main.o - 0x08000fe0 handleUARTMessages + 0x08000fe8 0x144 ./Core/Src/main.o + 0x08000fe8 handleUARTMessages .text.addUSBReport - 0x08001124 0x68 ./Core/Src/main.o - 0x08001124 addUSBReport + 0x0800112c 0x68 ./Core/Src/main.o + 0x0800112c addUSBReport .text.matrixScan - 0x0800118c 0xf0 ./Core/Src/main.o - 0x0800118c matrixScan + 0x08001194 0xf0 ./Core/Src/main.o + 0x08001194 matrixScan + .text.encoderProcess + 0x08001284 0xb0 ./Core/Src/main.o + 0x08001284 encoderProcess .text.resetReport - 0x0800127c 0x18 ./Core/Src/main.o - 0x0800127c resetReport + 0x08001334 0x18 ./Core/Src/main.o + 0x08001334 resetReport .text.Error_Handler - 0x08001294 0xc ./Core/Src/main.o - 0x08001294 Error_Handler + 0x0800134c 0xc ./Core/Src/main.o + 0x0800134c Error_Handler .text.HAL_MspInit - 0x080012a0 0x50 ./Core/Src/stm32f4xx_hal_msp.o - 0x080012a0 HAL_MspInit + 0x08001358 0x50 ./Core/Src/stm32f4xx_hal_msp.o + 0x08001358 HAL_MspInit .text.NMI_Handler - 0x080012f0 0x8 ./Core/Src/stm32f4xx_it.o - 0x080012f0 NMI_Handler + 0x080013a8 0x8 ./Core/Src/stm32f4xx_it.o + 0x080013a8 NMI_Handler .text.HardFault_Handler - 0x080012f8 0x8 ./Core/Src/stm32f4xx_it.o - 0x080012f8 HardFault_Handler + 0x080013b0 0x8 ./Core/Src/stm32f4xx_it.o + 0x080013b0 HardFault_Handler .text.MemManage_Handler - 0x08001300 0x8 ./Core/Src/stm32f4xx_it.o - 0x08001300 MemManage_Handler + 0x080013b8 0x8 ./Core/Src/stm32f4xx_it.o + 0x080013b8 MemManage_Handler .text.BusFault_Handler - 0x08001308 0x8 ./Core/Src/stm32f4xx_it.o - 0x08001308 BusFault_Handler + 0x080013c0 0x8 ./Core/Src/stm32f4xx_it.o + 0x080013c0 BusFault_Handler .text.UsageFault_Handler - 0x08001310 0x8 ./Core/Src/stm32f4xx_it.o - 0x08001310 UsageFault_Handler + 0x080013c8 0x8 ./Core/Src/stm32f4xx_it.o + 0x080013c8 UsageFault_Handler .text.SVC_Handler - 0x08001318 0xe ./Core/Src/stm32f4xx_it.o - 0x08001318 SVC_Handler + 0x080013d0 0xe ./Core/Src/stm32f4xx_it.o + 0x080013d0 SVC_Handler .text.DebugMon_Handler - 0x08001326 0xe ./Core/Src/stm32f4xx_it.o - 0x08001326 DebugMon_Handler + 0x080013de 0xe ./Core/Src/stm32f4xx_it.o + 0x080013de DebugMon_Handler .text.PendSV_Handler - 0x08001334 0xe ./Core/Src/stm32f4xx_it.o - 0x08001334 PendSV_Handler + 0x080013ec 0xe ./Core/Src/stm32f4xx_it.o + 0x080013ec PendSV_Handler .text.SysTick_Handler - 0x08001342 0xc ./Core/Src/stm32f4xx_it.o - 0x08001342 SysTick_Handler - *fill* 0x0800134e 0x2 + 0x080013fa 0xc ./Core/Src/stm32f4xx_it.o + 0x080013fa SysTick_Handler + *fill* 0x08001406 0x2 .text.DMA1_Stream0_IRQHandler - 0x08001350 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001350 DMA1_Stream0_IRQHandler + 0x08001408 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001408 DMA1_Stream0_IRQHandler .text.DMA1_Stream2_IRQHandler - 0x08001364 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001364 DMA1_Stream2_IRQHandler + 0x0800141c 0x14 ./Core/Src/stm32f4xx_it.o + 0x0800141c DMA1_Stream2_IRQHandler .text.DMA1_Stream4_IRQHandler - 0x08001378 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001378 DMA1_Stream4_IRQHandler + 0x08001430 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001430 DMA1_Stream4_IRQHandler .text.DMA1_Stream5_IRQHandler - 0x0800138c 0x14 ./Core/Src/stm32f4xx_it.o - 0x0800138c DMA1_Stream5_IRQHandler + 0x08001444 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001444 DMA1_Stream5_IRQHandler .text.DMA1_Stream6_IRQHandler - 0x080013a0 0x14 ./Core/Src/stm32f4xx_it.o - 0x080013a0 DMA1_Stream6_IRQHandler + 0x08001458 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001458 DMA1_Stream6_IRQHandler .text.USART1_IRQHandler - 0x080013b4 0x14 ./Core/Src/stm32f4xx_it.o - 0x080013b4 USART1_IRQHandler + 0x0800146c 0x14 ./Core/Src/stm32f4xx_it.o + 0x0800146c USART1_IRQHandler .text.USART2_IRQHandler - 0x080013c8 0x14 ./Core/Src/stm32f4xx_it.o - 0x080013c8 USART2_IRQHandler + 0x08001480 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001480 USART2_IRQHandler .text.DMA1_Stream7_IRQHandler - 0x080013dc 0x14 ./Core/Src/stm32f4xx_it.o - 0x080013dc DMA1_Stream7_IRQHandler + 0x08001494 0x14 ./Core/Src/stm32f4xx_it.o + 0x08001494 DMA1_Stream7_IRQHandler .text.UART4_IRQHandler - 0x080013f0 0x14 ./Core/Src/stm32f4xx_it.o - 0x080013f0 UART4_IRQHandler + 0x080014a8 0x14 ./Core/Src/stm32f4xx_it.o + 0x080014a8 UART4_IRQHandler .text.UART5_IRQHandler - 0x08001404 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001404 UART5_IRQHandler + 0x080014bc 0x14 ./Core/Src/stm32f4xx_it.o + 0x080014bc UART5_IRQHandler .text.DMA2_Stream2_IRQHandler - 0x08001418 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001418 DMA2_Stream2_IRQHandler + 0x080014d0 0x14 ./Core/Src/stm32f4xx_it.o + 0x080014d0 DMA2_Stream2_IRQHandler .text.OTG_FS_IRQHandler - 0x0800142c 0x14 ./Core/Src/stm32f4xx_it.o - 0x0800142c OTG_FS_IRQHandler + 0x080014e4 0x14 ./Core/Src/stm32f4xx_it.o + 0x080014e4 OTG_FS_IRQHandler .text.DMA2_Stream7_IRQHandler - 0x08001440 0x14 ./Core/Src/stm32f4xx_it.o - 0x08001440 DMA2_Stream7_IRQHandler + 0x080014f8 0x14 ./Core/Src/stm32f4xx_it.o + 0x080014f8 DMA2_Stream7_IRQHandler .text.SystemInit - 0x08001454 0x24 ./Core/Src/system_stm32f4xx.o - 0x08001454 SystemInit + 0x0800150c 0x24 ./Core/Src/system_stm32f4xx.o + 0x0800150c SystemInit .text.MX_TIM2_Init - 0x08001478 0x88 ./Core/Src/tim.o - 0x08001478 MX_TIM2_Init + 0x08001530 0x88 ./Core/Src/tim.o + 0x08001530 MX_TIM2_Init .text.HAL_TIM_PWM_PulseFinishedCallback - 0x08001500 0x28 ./Core/Src/tim.o - 0x08001500 HAL_TIM_PWM_PulseFinishedCallback + 0x080015b8 0x28 ./Core/Src/tim.o + 0x080015b8 HAL_TIM_PWM_PulseFinishedCallback .text.MX_TIM3_Init - 0x08001528 0xa8 ./Core/Src/tim.o - 0x08001528 MX_TIM3_Init + 0x080015e0 0xa8 ./Core/Src/tim.o + 0x080015e0 MX_TIM3_Init .text.HAL_TIM_Encoder_MspInit - 0x080015d0 0x90 ./Core/Src/tim.o - 0x080015d0 HAL_TIM_Encoder_MspInit + 0x08001688 0x90 ./Core/Src/tim.o + 0x08001688 HAL_TIM_Encoder_MspInit .text.HAL_TIM_MspPostInit - 0x08001660 0x70 ./Core/Src/tim.o - 0x08001660 HAL_TIM_MspPostInit + 0x08001718 0x70 ./Core/Src/tim.o + 0x08001718 HAL_TIM_MspPostInit .text.MX_UART4_Init - 0x080016d0 0x54 ./Core/Src/usart.o - 0x080016d0 MX_UART4_Init + 0x08001788 0x54 ./Core/Src/usart.o + 0x08001788 MX_UART4_Init .text.MX_UART5_Init - 0x08001724 0x54 ./Core/Src/usart.o - 0x08001724 MX_UART5_Init + 0x080017dc 0x54 ./Core/Src/usart.o + 0x080017dc MX_UART5_Init .text.MX_USART1_UART_Init - 0x08001778 0x54 ./Core/Src/usart.o - 0x08001778 MX_USART1_UART_Init + 0x08001830 0x54 ./Core/Src/usart.o + 0x08001830 MX_USART1_UART_Init .text.MX_USART2_UART_Init - 0x080017cc 0x54 ./Core/Src/usart.o - 0x080017cc MX_USART2_UART_Init + 0x08001884 0x54 ./Core/Src/usart.o + 0x08001884 MX_USART2_UART_Init .text.HAL_UART_MspInit - 0x08001820 0x584 ./Core/Src/usart.o - 0x08001820 HAL_UART_MspInit + 0x080018d8 0x584 ./Core/Src/usart.o + 0x080018d8 HAL_UART_MspInit .text.Reset_Handler - 0x08001da4 0x50 ./Core/Startup/startup_stm32f446retx.o - 0x08001da4 Reset_Handler + 0x08001e5c 0x50 ./Core/Startup/startup_stm32f446retx.o + 0x08001e5c Reset_Handler .text.Default_Handler - 0x08001df4 0x2 ./Core/Startup/startup_stm32f446retx.o - 0x08001df4 RTC_Alarm_IRQHandler - 0x08001df4 EXTI2_IRQHandler - 0x08001df4 TIM8_CC_IRQHandler - 0x08001df4 FMPI2C1_EV_IRQHandler - 0x08001df4 SPI4_IRQHandler - 0x08001df4 TIM1_CC_IRQHandler - 0x08001df4 DMA2_Stream5_IRQHandler - 0x08001df4 PVD_IRQHandler - 0x08001df4 SDIO_IRQHandler - 0x08001df4 TAMP_STAMP_IRQHandler - 0x08001df4 CAN2_RX1_IRQHandler - 0x08001df4 EXTI3_IRQHandler - 0x08001df4 TIM8_TRG_COM_TIM14_IRQHandler - 0x08001df4 TIM1_UP_TIM10_IRQHandler - 0x08001df4 TIM8_UP_TIM13_IRQHandler - 0x08001df4 I2C3_ER_IRQHandler - 0x08001df4 EXTI0_IRQHandler - 0x08001df4 I2C2_EV_IRQHandler - 0x08001df4 CAN1_RX0_IRQHandler - 0x08001df4 FPU_IRQHandler - 0x08001df4 OTG_HS_WKUP_IRQHandler - 0x08001df4 CAN2_SCE_IRQHandler - 0x08001df4 SPI1_IRQHandler - 0x08001df4 TIM6_DAC_IRQHandler - 0x08001df4 TIM1_BRK_TIM9_IRQHandler - 0x08001df4 DCMI_IRQHandler - 0x08001df4 CAN2_RX0_IRQHandler - 0x08001df4 DMA2_Stream3_IRQHandler - 0x08001df4 SAI2_IRQHandler - 0x08001df4 USART6_IRQHandler - 0x08001df4 USART3_IRQHandler - 0x08001df4 CAN1_RX1_IRQHandler - 0x08001df4 DMA2_Stream0_IRQHandler - 0x08001df4 TIM4_IRQHandler - 0x08001df4 QUADSPI_IRQHandler - 0x08001df4 I2C1_EV_IRQHandler - 0x08001df4 DMA1_Stream1_IRQHandler - 0x08001df4 TIM3_IRQHandler - 0x08001df4 RCC_IRQHandler - 0x08001df4 TIM8_BRK_TIM12_IRQHandler - 0x08001df4 Default_Handler - 0x08001df4 CEC_IRQHandler - 0x08001df4 EXTI15_10_IRQHandler - 0x08001df4 ADC_IRQHandler - 0x08001df4 TIM7_IRQHandler - 0x08001df4 CAN2_TX_IRQHandler - 0x08001df4 TIM5_IRQHandler - 0x08001df4 I2C3_EV_IRQHandler - 0x08001df4 EXTI9_5_IRQHandler - 0x08001df4 RTC_WKUP_IRQHandler - 0x08001df4 SPDIF_RX_IRQHandler - 0x08001df4 SPI2_IRQHandler - 0x08001df4 OTG_HS_EP1_IN_IRQHandler - 0x08001df4 CAN1_TX_IRQHandler - 0x08001df4 FMPI2C1_ER_IRQHandler - 0x08001df4 EXTI4_IRQHandler - 0x08001df4 OTG_HS_EP1_OUT_IRQHandler - 0x08001df4 WWDG_IRQHandler - 0x08001df4 TIM2_IRQHandler - 0x08001df4 OTG_FS_WKUP_IRQHandler - 0x08001df4 TIM1_TRG_COM_TIM11_IRQHandler - 0x08001df4 OTG_HS_IRQHandler - 0x08001df4 EXTI1_IRQHandler - 0x08001df4 I2C2_ER_IRQHandler - 0x08001df4 DMA2_Stream1_IRQHandler - 0x08001df4 CAN1_SCE_IRQHandler - 0x08001df4 FLASH_IRQHandler - 0x08001df4 DMA2_Stream4_IRQHandler - 0x08001df4 SPI3_IRQHandler - 0x08001df4 I2C1_ER_IRQHandler - 0x08001df4 FMC_IRQHandler - 0x08001df4 DMA2_Stream6_IRQHandler - 0x08001df4 SAI1_IRQHandler - 0x08001df4 DMA1_Stream3_IRQHandler - *fill* 0x08001df6 0x2 + 0x08001eac 0x2 ./Core/Startup/startup_stm32f446retx.o + 0x08001eac RTC_Alarm_IRQHandler + 0x08001eac EXTI2_IRQHandler + 0x08001eac TIM8_CC_IRQHandler + 0x08001eac FMPI2C1_EV_IRQHandler + 0x08001eac SPI4_IRQHandler + 0x08001eac TIM1_CC_IRQHandler + 0x08001eac DMA2_Stream5_IRQHandler + 0x08001eac PVD_IRQHandler + 0x08001eac SDIO_IRQHandler + 0x08001eac TAMP_STAMP_IRQHandler + 0x08001eac CAN2_RX1_IRQHandler + 0x08001eac EXTI3_IRQHandler + 0x08001eac TIM8_TRG_COM_TIM14_IRQHandler + 0x08001eac TIM1_UP_TIM10_IRQHandler + 0x08001eac TIM8_UP_TIM13_IRQHandler + 0x08001eac I2C3_ER_IRQHandler + 0x08001eac EXTI0_IRQHandler + 0x08001eac I2C2_EV_IRQHandler + 0x08001eac CAN1_RX0_IRQHandler + 0x08001eac FPU_IRQHandler + 0x08001eac OTG_HS_WKUP_IRQHandler + 0x08001eac CAN2_SCE_IRQHandler + 0x08001eac SPI1_IRQHandler + 0x08001eac TIM6_DAC_IRQHandler + 0x08001eac TIM1_BRK_TIM9_IRQHandler + 0x08001eac DCMI_IRQHandler + 0x08001eac CAN2_RX0_IRQHandler + 0x08001eac DMA2_Stream3_IRQHandler + 0x08001eac SAI2_IRQHandler + 0x08001eac USART6_IRQHandler + 0x08001eac USART3_IRQHandler + 0x08001eac CAN1_RX1_IRQHandler + 0x08001eac DMA2_Stream0_IRQHandler + 0x08001eac TIM4_IRQHandler + 0x08001eac QUADSPI_IRQHandler + 0x08001eac I2C1_EV_IRQHandler + 0x08001eac DMA1_Stream1_IRQHandler + 0x08001eac TIM3_IRQHandler + 0x08001eac RCC_IRQHandler + 0x08001eac TIM8_BRK_TIM12_IRQHandler + 0x08001eac Default_Handler + 0x08001eac CEC_IRQHandler + 0x08001eac EXTI15_10_IRQHandler + 0x08001eac ADC_IRQHandler + 0x08001eac TIM7_IRQHandler + 0x08001eac CAN2_TX_IRQHandler + 0x08001eac TIM5_IRQHandler + 0x08001eac I2C3_EV_IRQHandler + 0x08001eac EXTI9_5_IRQHandler + 0x08001eac RTC_WKUP_IRQHandler + 0x08001eac SPDIF_RX_IRQHandler + 0x08001eac SPI2_IRQHandler + 0x08001eac OTG_HS_EP1_IN_IRQHandler + 0x08001eac CAN1_TX_IRQHandler + 0x08001eac FMPI2C1_ER_IRQHandler + 0x08001eac EXTI4_IRQHandler + 0x08001eac OTG_HS_EP1_OUT_IRQHandler + 0x08001eac WWDG_IRQHandler + 0x08001eac TIM2_IRQHandler + 0x08001eac OTG_FS_WKUP_IRQHandler + 0x08001eac TIM1_TRG_COM_TIM11_IRQHandler + 0x08001eac OTG_HS_IRQHandler + 0x08001eac EXTI1_IRQHandler + 0x08001eac I2C2_ER_IRQHandler + 0x08001eac DMA2_Stream1_IRQHandler + 0x08001eac CAN1_SCE_IRQHandler + 0x08001eac FLASH_IRQHandler + 0x08001eac DMA2_Stream4_IRQHandler + 0x08001eac SPI3_IRQHandler + 0x08001eac I2C1_ER_IRQHandler + 0x08001eac FMC_IRQHandler + 0x08001eac DMA2_Stream6_IRQHandler + 0x08001eac SAI1_IRQHandler + 0x08001eac DMA1_Stream3_IRQHandler + *fill* 0x08001eae 0x2 .text.HAL_Init - 0x08001df8 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001df8 HAL_Init + 0x08001eb0 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001eb0 HAL_Init .text.HAL_InitTick - 0x08001e3c 0x60 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001e3c HAL_InitTick + 0x08001ef4 0x60 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001ef4 HAL_InitTick .text.HAL_IncTick - 0x08001e9c 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001e9c HAL_IncTick + 0x08001f54 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001f54 HAL_IncTick .text.HAL_GetTick - 0x08001ec4 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001ec4 HAL_GetTick + 0x08001f7c 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001f7c HAL_GetTick .text.HAL_Delay - 0x08001edc 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - 0x08001edc HAL_Delay + 0x08001f94 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + 0x08001f94 HAL_Delay .text.__NVIC_SetPriorityGrouping - 0x08001f24 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08001fdc 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.__NVIC_GetPriorityGrouping - 0x08001f6c 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08002024 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.__NVIC_EnableIRQ - 0x08001f88 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08002040 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.__NVIC_SetPriority - 0x08001fc4 0x54 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x0800207c 0x54 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.NVIC_EncodePriority - 0x08002018 0x66 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - *fill* 0x0800207e 0x2 + 0x080020d0 0x66 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + *fill* 0x08002136 0x2 .text.SysTick_Config - 0x08002080 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08002138 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o .text.HAL_NVIC_SetPriorityGrouping - 0x080020c4 0x16 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x080020c4 HAL_NVIC_SetPriorityGrouping + 0x0800217c 0x16 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x0800217c HAL_NVIC_SetPriorityGrouping .text.HAL_NVIC_SetPriority - 0x080020da 0x38 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x080020da HAL_NVIC_SetPriority + 0x08002192 0x38 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x08002192 HAL_NVIC_SetPriority .text.HAL_NVIC_EnableIRQ - 0x08002112 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x08002112 HAL_NVIC_EnableIRQ + 0x080021ca 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x080021ca HAL_NVIC_EnableIRQ .text.HAL_SYSTICK_Config - 0x0800212e 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - 0x0800212e HAL_SYSTICK_Config - *fill* 0x08002146 0x2 + 0x080021e6 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + 0x080021e6 HAL_SYSTICK_Config + *fill* 0x080021fe 0x2 .text.HAL_DMA_Init - 0x08002148 0x15c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x08002148 HAL_DMA_Init + 0x08002200 0x15c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x08002200 HAL_DMA_Init .text.HAL_DMA_Start_IT - 0x080022a4 0xb0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x080022a4 HAL_DMA_Start_IT + 0x0800235c 0xb0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x0800235c HAL_DMA_Start_IT .text.HAL_DMA_Abort - 0x08002354 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x08002354 HAL_DMA_Abort + 0x0800240c 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x0800240c HAL_DMA_Abort .text.HAL_DMA_Abort_IT - 0x08002434 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x08002434 HAL_DMA_Abort_IT + 0x080024ec 0x44 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x080024ec HAL_DMA_Abort_IT .text.HAL_DMA_IRQHandler - 0x08002478 0x314 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x08002478 HAL_DMA_IRQHandler + 0x08002530 0x314 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x08002530 HAL_DMA_IRQHandler .text.DMA_SetConfig - 0x0800278c 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x08002844 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o .text.DMA_CalcBaseAndBitshift - 0x080027e8 0x6c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x080028a0 0x6c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o .text.DMA_CheckFifoParam - 0x08002854 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x0800290c 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o .text.HAL_GPIO_Init - 0x0800294c 0x328 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - 0x0800294c HAL_GPIO_Init + 0x08002a04 0x328 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x08002a04 HAL_GPIO_Init .text.HAL_GPIO_ReadPin - 0x08002c74 0x30 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - 0x08002c74 HAL_GPIO_ReadPin + 0x08002d2c 0x30 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x08002d2c HAL_GPIO_ReadPin .text.HAL_GPIO_WritePin - 0x08002ca4 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - 0x08002ca4 HAL_GPIO_WritePin - *fill* 0x08002cd6 0x2 + 0x08002d5c 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + 0x08002d5c HAL_GPIO_WritePin + *fill* 0x08002d8e 0x2 .text.HAL_I2C_Init - 0x08002cd8 0x288 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o - 0x08002cd8 HAL_I2C_Init + 0x08002d90 0x288 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + 0x08002d90 HAL_I2C_Init .text.HAL_PCD_Init - 0x08002f60 0x22c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08002f60 HAL_PCD_Init + 0x08003018 0x22c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003018 HAL_PCD_Init .text.HAL_PCD_Start - 0x0800318c 0x6a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x0800318c HAL_PCD_Start + 0x08003244 0x6a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003244 HAL_PCD_Start .text.HAL_PCD_IRQHandler - 0x080031f6 0x99c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x080031f6 HAL_PCD_IRQHandler + 0x080032ae 0x99c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x080032ae HAL_PCD_IRQHandler .text.HAL_PCD_SetAddress - 0x08003b92 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003b92 HAL_PCD_SetAddress + 0x08003c4a 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003c4a HAL_PCD_SetAddress .text.HAL_PCD_EP_Open - 0x08003bda 0xd4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003bda HAL_PCD_EP_Open + 0x08003c92 0xd4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003c92 HAL_PCD_EP_Open .text.HAL_PCD_EP_Close - 0x08003cae 0x94 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003cae HAL_PCD_EP_Close + 0x08003d66 0x94 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003d66 HAL_PCD_EP_Close .text.HAL_PCD_EP_Receive - 0x08003d42 0x76 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003d42 HAL_PCD_EP_Receive + 0x08003dfa 0x76 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003dfa HAL_PCD_EP_Receive .text.HAL_PCD_EP_Transmit - 0x08003db8 0x74 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003db8 HAL_PCD_EP_Transmit + 0x08003e70 0x74 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003e70 HAL_PCD_EP_Transmit .text.HAL_PCD_EP_SetStall - 0x08003e2c 0xc6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003e2c HAL_PCD_EP_SetStall + 0x08003ee4 0xc6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003ee4 HAL_PCD_EP_SetStall .text.HAL_PCD_EP_ClrStall - 0x08003ef2 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003ef2 HAL_PCD_EP_ClrStall + 0x08003faa 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08003faa HAL_PCD_EP_ClrStall .text.HAL_PCD_EP_Abort - 0x08003f9e 0x62 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - 0x08003f9e HAL_PCD_EP_Abort + 0x08004056 0x62 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x08004056 HAL_PCD_EP_Abort .text.PCD_WriteEmptyTxFifo - 0x08004000 0x118 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x080040b8 0x118 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o .text.PCD_EP_OutXfrComplete_int - 0x08004118 0x1d0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x080041d0 0x1d0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o .text.PCD_EP_OutSetupPacket_int - 0x080042e8 0x8c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + 0x080043a0 0x8c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o .text.HAL_PCDEx_SetTxFiFo - 0x08004374 0x8e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - 0x08004374 HAL_PCDEx_SetTxFiFo + 0x0800442c 0x8e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + 0x0800442c HAL_PCDEx_SetTxFiFo .text.HAL_PCDEx_SetRxFiFo - 0x08004402 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - 0x08004402 HAL_PCDEx_SetRxFiFo + 0x080044ba 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + 0x080044ba HAL_PCDEx_SetRxFiFo .text.HAL_PCDEx_ActivateLPM - 0x08004424 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - 0x08004424 HAL_PCDEx_ActivateLPM + 0x080044dc 0x48 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + 0x080044dc HAL_PCDEx_ActivateLPM .text.HAL_RCC_ClockConfig - 0x0800446c 0x1cc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x0800446c HAL_RCC_ClockConfig + 0x08004524 0x1cc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x08004524 HAL_RCC_ClockConfig .text.HAL_RCC_GetHCLKFreq - 0x08004638 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x08004638 HAL_RCC_GetHCLKFreq + 0x080046f0 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x080046f0 HAL_RCC_GetHCLKFreq .text.HAL_RCC_GetPCLK1Freq - 0x08004650 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x08004650 HAL_RCC_GetPCLK1Freq + 0x08004708 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x08004708 HAL_RCC_GetPCLK1Freq .text.HAL_RCC_GetPCLK2Freq - 0x08004678 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - 0x08004678 HAL_RCC_GetPCLK2Freq + 0x08004730 0x28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + 0x08004730 HAL_RCC_GetPCLK2Freq .text.HAL_RCCEx_PeriphCLKConfig - 0x080046a0 0x654 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - 0x080046a0 HAL_RCCEx_PeriphCLKConfig + 0x08004758 0x654 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x08004758 HAL_RCCEx_PeriphCLKConfig .text.HAL_RCC_GetSysClockFreq - 0x08004cf4 0x460 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - 0x08004cf4 HAL_RCC_GetSysClockFreq + 0x08004dac 0x460 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x08004dac HAL_RCC_GetSysClockFreq .text.HAL_RCC_OscConfig - 0x08005154 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - 0x08005154 HAL_RCC_OscConfig + 0x0800520c 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + 0x0800520c HAL_RCC_OscConfig .text.HAL_TIM_PWM_Init - 0x08005690 0x9e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005690 HAL_TIM_PWM_Init + 0x08005748 0x9e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005748 HAL_TIM_PWM_Init .text.HAL_TIM_PWM_MspInit - 0x0800572e 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x0800572e HAL_TIM_PWM_MspInit - *fill* 0x08005742 0x2 + 0x080057e6 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080057e6 HAL_TIM_PWM_MspInit + *fill* 0x080057fa 0x2 .text.HAL_TIM_PWM_Start_DMA - 0x08005744 0x390 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005744 HAL_TIM_PWM_Start_DMA + 0x080057fc 0x390 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080057fc HAL_TIM_PWM_Start_DMA .text.HAL_TIM_PWM_Stop_DMA - 0x08005ad4 0x1a4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005ad4 HAL_TIM_PWM_Stop_DMA + 0x08005b8c 0x1a4 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005b8c HAL_TIM_PWM_Stop_DMA .text.HAL_TIM_Encoder_Init - 0x08005c78 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005c78 HAL_TIM_Encoder_Init + 0x08005d30 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005d30 HAL_TIM_Encoder_Init .text.HAL_TIM_Encoder_Start - 0x08005dc4 0x11c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005dc4 HAL_TIM_Encoder_Start + 0x08005e7c 0x11c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005e7c HAL_TIM_Encoder_Start .text.HAL_TIM_PWM_ConfigChannel - 0x08005ee0 0x184 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08005ee0 HAL_TIM_PWM_ConfigChannel + 0x08005f98 0x184 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08005f98 HAL_TIM_PWM_ConfigChannel .text.HAL_TIM_PWM_PulseFinishedHalfCpltCallback - 0x08006064 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08006064 HAL_TIM_PWM_PulseFinishedHalfCpltCallback + 0x0800611c 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x0800611c HAL_TIM_PWM_PulseFinishedHalfCpltCallback .text.HAL_TIM_ErrorCallback - 0x08006078 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08006078 HAL_TIM_ErrorCallback + 0x08006130 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08006130 HAL_TIM_ErrorCallback .text.TIM_DMAError - 0x0800608c 0x92 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x0800608c TIM_DMAError + 0x08006144 0x92 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08006144 TIM_DMAError .text.TIM_DMADelayPulseCplt - 0x0800611e 0xa8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080061d6 0xa8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_DMADelayPulseHalfCplt - 0x080061c6 0x68 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x080061c6 TIM_DMADelayPulseHalfCplt - *fill* 0x0800622e 0x2 + 0x0800627e 0x68 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x0800627e TIM_DMADelayPulseHalfCplt + *fill* 0x080062e6 0x2 .text.TIM_Base_SetConfig - 0x08006230 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x08006230 TIM_Base_SetConfig + 0x080062e8 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080062e8 TIM_Base_SetConfig .text.TIM_OC1_SetConfig - 0x0800637c 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08006434 0xe0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_OC2_SetConfig - 0x0800645c 0xec ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x0800645c TIM_OC2_SetConfig + 0x08006514 0xec ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08006514 TIM_OC2_SetConfig .text.TIM_OC3_SetConfig - 0x08006548 0xe8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08006600 0xe8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_OC4_SetConfig - 0x08006630 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x080066e8 0xac ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o .text.TIM_CCxChannelCmd - 0x080066dc 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - 0x080066dc TIM_CCxChannelCmd - *fill* 0x08006726 0x2 + 0x08006794 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + 0x08006794 TIM_CCxChannelCmd + *fill* 0x080067de 0x2 .text.HAL_TIMEx_MasterConfigSynchronization - 0x08006728 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - 0x08006728 HAL_TIMEx_MasterConfigSynchronization + 0x080067e0 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + 0x080067e0 HAL_TIMEx_MasterConfigSynchronization .text.HAL_UART_Init - 0x08006820 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006820 HAL_UART_Init + 0x080068d8 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080068d8 HAL_UART_Init .text.HAL_UART_Transmit_DMA - 0x080068c0 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x080068c0 HAL_UART_Transmit_DMA + 0x08006978 0xf8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006978 HAL_UART_Transmit_DMA .text.HAL_UART_Receive_DMA - 0x080069b8 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x080069b8 HAL_UART_Receive_DMA - *fill* 0x08006a02 0x2 + 0x08006a70 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006a70 HAL_UART_Receive_DMA + *fill* 0x08006aba 0x2 .text.HAL_UART_IRQHandler - 0x08006a04 0x554 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006a04 HAL_UART_IRQHandler + 0x08006abc 0x554 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08006abc HAL_UART_IRQHandler .text.HAL_UART_TxCpltCallback - 0x08006f58 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006f58 HAL_UART_TxCpltCallback + 0x08007010 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08007010 HAL_UART_TxCpltCallback .text.HAL_UART_TxHalfCpltCallback - 0x08006f6c 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006f6c HAL_UART_TxHalfCpltCallback + 0x08007024 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08007024 HAL_UART_TxHalfCpltCallback .text.HAL_UART_RxHalfCpltCallback - 0x08006f80 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006f80 HAL_UART_RxHalfCpltCallback + 0x08007038 0x14 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08007038 HAL_UART_RxHalfCpltCallback .text.HAL_UARTEx_RxEventCallback - 0x08006f94 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08006f94 HAL_UARTEx_RxEventCallback + 0x0800704c 0x18 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x0800704c HAL_UARTEx_RxEventCallback .text.UART_DMATransmitCplt - 0x08006fac 0x9a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08007064 0x9a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMATxHalfCplt - 0x08007046 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080070fe 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMAReceiveCplt - 0x08007062 0x12c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x0800711a 0x12c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMARxHalfCplt - 0x0800718e 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08007246 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMAError - 0x080071ca 0x94 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - *fill* 0x0800725e 0x2 + 0x08007282 0x94 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + *fill* 0x08007316 0x2 .text.UART_Start_Receive_DMA - 0x08007260 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - 0x08007260 UART_Start_Receive_DMA + 0x08007318 0x14c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08007318 UART_Start_Receive_DMA .text.UART_EndTxTransfer - 0x080073ac 0x50 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x08007464 0x50 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_EndRxTransfer - 0x080073fc 0xc6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080074b4 0xc6 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_DMAAbortOnError - 0x080074c2 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x0800757a 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_Transmit_IT - 0x080074e4 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x0800759c 0xa0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_EndTransmit_IT - 0x08007584 0x30 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x0800763c 0x30 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_Receive_IT - 0x080075b4 0x17c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x0800766c 0x17c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.UART_SetConfig - 0x08007730 0x4e8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + 0x080077e8 0x4e8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o .text.USB_CoreInit - 0x08007c18 0xc8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007c18 USB_CoreInit + 0x08007cd0 0xc8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007cd0 USB_CoreInit .text.USB_SetTurnaroundTime - 0x08007ce0 0x144 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007ce0 USB_SetTurnaroundTime + 0x08007d98 0x144 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007d98 USB_SetTurnaroundTime .text.USB_EnableGlobalInt - 0x08007e24 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007e24 USB_EnableGlobalInt + 0x08007edc 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007edc USB_EnableGlobalInt .text.USB_DisableGlobalInt - 0x08007e46 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007e46 USB_DisableGlobalInt + 0x08007efe 0x22 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007efe USB_DisableGlobalInt .text.USB_SetCurrentMode - 0x08007e68 0x98 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007e68 USB_SetCurrentMode + 0x08007f20 0x98 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007f20 USB_SetCurrentMode .text.USB_DevInit - 0x08007f00 0x2bc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08007f00 USB_DevInit + 0x08007fb8 0x2bc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08007fb8 USB_DevInit .text.USB_FlushTxFifo - 0x080081bc 0x64 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x080081bc USB_FlushTxFifo + 0x08008274 0x64 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008274 USB_FlushTxFifo .text.USB_FlushRxFifo - 0x08008220 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008220 USB_FlushRxFifo + 0x080082d8 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080082d8 USB_FlushRxFifo .text.USB_SetDevSpeed - 0x0800827c 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x0800827c USB_SetDevSpeed + 0x08008334 0x32 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008334 USB_SetDevSpeed .text.USB_GetDevSpeed - 0x080082ae 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x080082ae USB_GetDevSpeed + 0x08008366 0x4a ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008366 USB_GetDevSpeed .text.USB_ActivateEndpoint - 0x080082f8 0x10e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x080082f8 USB_ActivateEndpoint - *fill* 0x08008406 0x2 + 0x080083b0 0x10e ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080083b0 USB_ActivateEndpoint + *fill* 0x080084be 0x2 .text.USB_DeactivateEndpoint - 0x08008408 0x1b8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008408 USB_DeactivateEndpoint + 0x080084c0 0x1b8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080084c0 USB_DeactivateEndpoint .text.USB_EPStartXfer - 0x080085c0 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x080085c0 USB_EPStartXfer + 0x08008678 0x53c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008678 USB_EPStartXfer .text.USB_EPStopXfer - 0x08008afc 0x154 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008afc USB_EPStopXfer + 0x08008bb4 0x154 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008bb4 USB_EPStopXfer .text.USB_WritePacket - 0x08008c50 0x7c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008c50 USB_WritePacket + 0x08008d08 0x7c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008d08 USB_WritePacket .text.USB_ReadPacket - 0x08008ccc 0xb0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008ccc USB_ReadPacket + 0x08008d84 0xb0 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008d84 USB_ReadPacket .text.USB_EPSetStall - 0x08008d7c 0xdc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008d7c USB_EPSetStall + 0x08008e34 0xdc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008e34 USB_EPSetStall .text.USB_EPClearStall - 0x08008e58 0xcc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008e58 USB_EPClearStall + 0x08008f10 0xcc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008f10 USB_EPClearStall .text.USB_SetDevAddress - 0x08008f24 0x4c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008f24 USB_SetDevAddress + 0x08008fdc 0x4c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08008fdc USB_SetDevAddress .text.USB_DevConnect - 0x08008f70 0x42 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008f70 USB_DevConnect + 0x08009028 0x42 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08009028 USB_DevConnect .text.USB_DevDisconnect - 0x08008fb2 0x42 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008fb2 USB_DevDisconnect + 0x0800906a 0x42 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x0800906a USB_DevDisconnect .text.USB_ReadInterrupts - 0x08008ff4 0x26 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08008ff4 USB_ReadInterrupts + 0x080090ac 0x26 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080090ac USB_ReadInterrupts .text.USB_ReadDevAllOutEpInterrupt - 0x0800901a 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x0800901a USB_ReadDevAllOutEpInterrupt + 0x080090d2 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080090d2 USB_ReadDevAllOutEpInterrupt .text.USB_ReadDevAllInEpInterrupt - 0x0800904e 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x0800904e USB_ReadDevAllInEpInterrupt + 0x08009106 0x34 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08009106 USB_ReadDevAllInEpInterrupt .text.USB_ReadDevOutEPInterrupt - 0x08009082 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08009082 USB_ReadDevOutEPInterrupt + 0x0800913a 0x3c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x0800913a USB_ReadDevOutEPInterrupt .text.USB_ReadDevInEPInterrupt - 0x080090be 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x080090be USB_ReadDevInEPInterrupt + 0x08009176 0x5c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08009176 USB_ReadDevInEPInterrupt .text.USB_GetMode - 0x0800911a 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x0800911a USB_GetMode + 0x080091d2 0x1c ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080091d2 USB_GetMode .text.USB_ActivateSetup - 0x08009136 0x46 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x08009136 USB_ActivateSetup + 0x080091ee 0x46 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080091ee USB_ActivateSetup .text.USB_EP0_OutStart - 0x0800917c 0xbc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - 0x0800917c USB_EP0_OutStart + 0x08009234 0xbc ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x08009234 USB_EP0_OutStart .text.USB_CoreReset - 0x08009238 0x70 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + 0x080092f0 0x70 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o .text.USBD_HID_Init - 0x080092a8 0xcc ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08009360 0xcc ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_DeInit - 0x08009374 0x90 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x0800942c 0x90 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_Setup - 0x08009404 0x210 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x080094bc 0x210 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_SendReport - 0x08009614 0x60 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - 0x08009614 USBD_HID_SendReport + 0x080096cc 0x60 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x080096cc USBD_HID_SendReport .text.USBD_HID_GetFSCfgDesc - 0x08009674 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x0800972c 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_GetHSCfgDesc - 0x080096a8 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08009760 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_GetOtherSpeedCfgDesc - 0x080096dc 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x08009794 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_DataIn - 0x08009710 0x2c ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x080097c8 0x2c ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_HID_GetDeviceQualifierDesc - 0x0800973c 0x20 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + 0x080097f4 0x20 ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o .text.USBD_Init - 0x0800975c 0x60 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x0800975c USBD_Init + 0x08009814 0x60 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009814 USBD_Init .text.USBD_RegisterClass - 0x080097bc 0x6c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x080097bc USBD_RegisterClass + 0x08009874 0x6c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009874 USBD_RegisterClass .text.USBD_Start - 0x08009828 0x18 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009828 USBD_Start + 0x080098e0 0x18 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080098e0 USBD_Start .text.USBD_RunTestMode - 0x08009840 0x16 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009840 USBD_RunTestMode + 0x080098f8 0x16 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x080098f8 USBD_RunTestMode .text.USBD_SetClassConfig - 0x08009856 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009856 USBD_SetClassConfig + 0x0800990e 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x0800990e USBD_SetClassConfig .text.USBD_ClrClassConfig - 0x0800988e 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x0800988e USBD_ClrClassConfig + 0x08009946 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009946 USBD_ClrClassConfig .text.USBD_LL_SetupStage - 0x080098c2 0xaa ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x080098c2 USBD_LL_SetupStage + 0x0800997a 0xaa ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x0800997a USBD_LL_SetupStage .text.USBD_LL_DataOutStage - 0x0800996c 0x178 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x0800996c USBD_LL_DataOutStage + 0x08009a24 0x178 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009a24 USBD_LL_DataOutStage .text.USBD_LL_DataInStage - 0x08009ae4 0x176 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009ae4 USBD_LL_DataInStage + 0x08009b9c 0x176 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009b9c USBD_LL_DataInStage .text.USBD_LL_Reset - 0x08009c5a 0xa6 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009c5a USBD_LL_Reset + 0x08009d12 0xa6 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009d12 USBD_LL_Reset .text.USBD_LL_SetSpeed - 0x08009d00 0x20 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009d00 USBD_LL_SetSpeed + 0x08009db8 0x20 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009db8 USBD_LL_SetSpeed .text.USBD_LL_Suspend - 0x08009d20 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009d20 USBD_LL_Suspend + 0x08009dd8 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009dd8 USBD_LL_Suspend .text.USBD_LL_Resume - 0x08009d58 0x30 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009d58 USBD_LL_Resume + 0x08009e10 0x30 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009e10 USBD_LL_Resume .text.USBD_LL_SOF - 0x08009d88 0x40 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009d88 USBD_LL_SOF + 0x08009e40 0x40 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009e40 USBD_LL_SOF .text.USBD_LL_IsoINIncomplete - 0x08009dc8 0x64 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009dc8 USBD_LL_IsoINIncomplete + 0x08009e80 0x64 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009e80 USBD_LL_IsoINIncomplete .text.USBD_LL_IsoOUTIncomplete - 0x08009e2c 0x64 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009e2c USBD_LL_IsoOUTIncomplete + 0x08009ee4 0x64 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009ee4 USBD_LL_IsoOUTIncomplete .text.USBD_LL_DevConnected - 0x08009e90 0x16 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009e90 USBD_LL_DevConnected + 0x08009f48 0x16 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009f48 USBD_LL_DevConnected .text.USBD_LL_DevDisconnected - 0x08009ea6 0x46 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009ea6 USBD_LL_DevDisconnected + 0x08009f5e 0x46 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009f5e USBD_LL_DevDisconnected .text.USBD_CoreFindIF - 0x08009eec 0x1a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009eec USBD_CoreFindIF + 0x08009fa4 0x1a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009fa4 USBD_CoreFindIF .text.USBD_CoreFindEP - 0x08009f06 0x1a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009f06 USBD_CoreFindEP + 0x08009fbe 0x1a ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009fbe USBD_CoreFindEP .text.USBD_GetEpDesc - 0x08009f20 0x70 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009f20 USBD_GetEpDesc + 0x08009fd8 0x70 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x08009fd8 USBD_GetEpDesc .text.USBD_GetNextDesc - 0x08009f90 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - 0x08009f90 USBD_GetNextDesc + 0x0800a048 0x38 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + 0x0800a048 USBD_GetNextDesc .text.SWAPBYTE - 0x08009fc8 0x3e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - *fill* 0x0800a006 0x2 + 0x0800a080 0x3e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + *fill* 0x0800a0be 0x2 .text.USBD_StdDevReq - 0x0800a008 0xe4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x0800a008 USBD_StdDevReq + 0x0800a0c0 0xe4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a0c0 USBD_StdDevReq .text.USBD_StdItfReq - 0x0800a0ec 0xd8 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x0800a0ec USBD_StdItfReq + 0x0800a1a4 0xd8 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a1a4 USBD_StdItfReq .text.USBD_StdEPReq - 0x0800a1c4 0x33e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x0800a1c4 USBD_StdEPReq - *fill* 0x0800a502 0x2 + 0x0800a27c 0x33e ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a27c USBD_StdEPReq + *fill* 0x0800a5ba 0x2 .text.USBD_GetDescriptor - 0x0800a504 0x328 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a5bc 0x328 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_SetAddress - 0x0800a82c 0x88 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a8e4 0x88 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_SetConfig - 0x0800a8b4 0x154 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800a96c 0x154 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_GetConfig - 0x0800aa08 0x6c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800aac0 0x6c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_GetStatus - 0x0800aa74 0x68 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800ab2c 0x68 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_SetFeature - 0x0800aadc 0x52 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800ab94 0x52 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_ClrFeature - 0x0800ab2e 0x44 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800abe6 0x44 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_ParseSetupRequest - 0x0800ab72 0x74 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x0800ab72 USBD_ParseSetupRequest + 0x0800ac2a 0x74 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800ac2a USBD_ParseSetupRequest .text.USBD_CtlError - 0x0800abe6 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x0800abe6 USBD_CtlError + 0x0800ac9e 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800ac9e USBD_CtlError .text.USBD_GetString - 0x0800ac08 0xa4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - 0x0800ac08 USBD_GetString + 0x0800acc0 0xa4 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800acc0 USBD_GetString .text.USBD_GetLen - 0x0800acac 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + 0x0800ad64 0x34 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o .text.USBD_CtlSendData - 0x0800ace0 0x3c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800ace0 USBD_CtlSendData + 0x0800ad98 0x3c ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800ad98 USBD_CtlSendData .text.USBD_CtlContinueSendData - 0x0800ad1c 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800ad1c USBD_CtlContinueSendData + 0x0800add4 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800add4 USBD_CtlContinueSendData .text.USBD_CtlContinueRx - 0x0800ad3e 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800ad3e USBD_CtlContinueRx + 0x0800adf6 0x22 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800adf6 USBD_CtlContinueRx .text.USBD_CtlSendStatus - 0x0800ad60 0x26 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800ad60 USBD_CtlSendStatus + 0x0800ae18 0x26 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800ae18 USBD_CtlSendStatus .text.USBD_CtlReceiveStatus - 0x0800ad86 0x26 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - 0x0800ad86 USBD_CtlReceiveStatus + 0x0800ae3e 0x26 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + 0x0800ae3e USBD_CtlReceiveStatus .text.MX_USB_DEVICE_Init - 0x0800adac 0x4c ./USB_DEVICE/App/usb_device.o - 0x0800adac MX_USB_DEVICE_Init + 0x0800ae64 0x4c ./USB_DEVICE/App/usb_device.o + 0x0800ae64 MX_USB_DEVICE_Init .text.USBD_FS_DeviceDescriptor - 0x0800adf8 0x24 ./USB_DEVICE/App/usbd_desc.o - 0x0800adf8 USBD_FS_DeviceDescriptor + 0x0800aeb0 0x24 ./USB_DEVICE/App/usbd_desc.o + 0x0800aeb0 USBD_FS_DeviceDescriptor .text.USBD_FS_LangIDStrDescriptor - 0x0800ae1c 0x24 ./USB_DEVICE/App/usbd_desc.o - 0x0800ae1c USBD_FS_LangIDStrDescriptor + 0x0800aed4 0x24 ./USB_DEVICE/App/usbd_desc.o + 0x0800aed4 USBD_FS_LangIDStrDescriptor .text.USBD_FS_ProductStrDescriptor - 0x0800ae40 0x3c ./USB_DEVICE/App/usbd_desc.o - 0x0800ae40 USBD_FS_ProductStrDescriptor + 0x0800aef8 0x3c ./USB_DEVICE/App/usbd_desc.o + 0x0800aef8 USBD_FS_ProductStrDescriptor .text.USBD_FS_ManufacturerStrDescriptor - 0x0800ae7c 0x28 ./USB_DEVICE/App/usbd_desc.o - 0x0800ae7c USBD_FS_ManufacturerStrDescriptor + 0x0800af34 0x28 ./USB_DEVICE/App/usbd_desc.o + 0x0800af34 USBD_FS_ManufacturerStrDescriptor .text.USBD_FS_SerialStrDescriptor - 0x0800aea4 0x24 ./USB_DEVICE/App/usbd_desc.o - 0x0800aea4 USBD_FS_SerialStrDescriptor + 0x0800af5c 0x24 ./USB_DEVICE/App/usbd_desc.o + 0x0800af5c USBD_FS_SerialStrDescriptor .text.USBD_FS_ConfigStrDescriptor - 0x0800aec8 0x3c ./USB_DEVICE/App/usbd_desc.o - 0x0800aec8 USBD_FS_ConfigStrDescriptor + 0x0800af80 0x3c ./USB_DEVICE/App/usbd_desc.o + 0x0800af80 USBD_FS_ConfigStrDescriptor .text.USBD_FS_InterfaceStrDescriptor - 0x0800af04 0x3c ./USB_DEVICE/App/usbd_desc.o - 0x0800af04 USBD_FS_InterfaceStrDescriptor + 0x0800afbc 0x3c ./USB_DEVICE/App/usbd_desc.o + 0x0800afbc USBD_FS_InterfaceStrDescriptor .text.USBD_FS_USR_BOSDescriptor - 0x0800af40 0x24 ./USB_DEVICE/App/usbd_desc.o - 0x0800af40 USBD_FS_USR_BOSDescriptor + 0x0800aff8 0x24 ./USB_DEVICE/App/usbd_desc.o + 0x0800aff8 USBD_FS_USR_BOSDescriptor .text.Get_SerialNum - 0x0800af64 0x58 ./USB_DEVICE/App/usbd_desc.o + 0x0800b01c 0x58 ./USB_DEVICE/App/usbd_desc.o .text.IntToUnicode - 0x0800afbc 0x7e ./USB_DEVICE/App/usbd_desc.o - *fill* 0x0800b03a 0x2 + 0x0800b074 0x7e ./USB_DEVICE/App/usbd_desc.o + *fill* 0x0800b0f2 0x2 .text.HAL_PCD_MspInit - 0x0800b03c 0xd4 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b03c HAL_PCD_MspInit + 0x0800b0f4 0xd4 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b0f4 HAL_PCD_MspInit .text.HAL_PCD_SetupStageCallback - 0x0800b110 0x24 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b110 HAL_PCD_SetupStageCallback + 0x0800b1c8 0x24 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b1c8 HAL_PCD_SetupStageCallback .text.HAL_PCD_DataOutStageCallback - 0x0800b134 0x36 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b134 HAL_PCD_DataOutStageCallback + 0x0800b1ec 0x36 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b1ec HAL_PCD_DataOutStageCallback .text.HAL_PCD_DataInStageCallback - 0x0800b16a 0x34 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b16a HAL_PCD_DataInStageCallback + 0x0800b222 0x34 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b222 HAL_PCD_DataInStageCallback .text.HAL_PCD_SOFCallback - 0x0800b19e 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800b19e HAL_PCD_SOFCallback + 0x0800b256 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800b256 HAL_PCD_SOFCallback .text.HAL_PCD_ResetCallback - 0x0800b1ba 0x50 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b1ba HAL_PCD_ResetCallback - *fill* 0x0800b20a 0x2 + 0x0800b272 0x50 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b272 HAL_PCD_ResetCallback + *fill* 0x0800b2c2 0x2 .text.HAL_PCD_SuspendCallback - 0x0800b20c 0x4c ./USB_DEVICE/Target/usbd_conf.o - 0x0800b20c HAL_PCD_SuspendCallback + 0x0800b2c4 0x4c ./USB_DEVICE/Target/usbd_conf.o + 0x0800b2c4 HAL_PCD_SuspendCallback .text.HAL_PCD_ResumeCallback - 0x0800b258 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800b258 HAL_PCD_ResumeCallback + 0x0800b310 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800b310 HAL_PCD_ResumeCallback .text.HAL_PCD_ISOOUTIncompleteCallback - 0x0800b274 0x24 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b274 HAL_PCD_ISOOUTIncompleteCallback + 0x0800b32c 0x24 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b32c HAL_PCD_ISOOUTIncompleteCallback .text.HAL_PCD_ISOINIncompleteCallback - 0x0800b298 0x24 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b298 HAL_PCD_ISOINIncompleteCallback + 0x0800b350 0x24 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b350 HAL_PCD_ISOINIncompleteCallback .text.HAL_PCD_ConnectCallback - 0x0800b2bc 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800b2bc HAL_PCD_ConnectCallback + 0x0800b374 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800b374 HAL_PCD_ConnectCallback .text.HAL_PCD_DisconnectCallback - 0x0800b2d8 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800b2d8 HAL_PCD_DisconnectCallback + 0x0800b390 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800b390 HAL_PCD_DisconnectCallback .text.USBD_LL_Init - 0x0800b2f4 0x98 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b2f4 USBD_LL_Init + 0x0800b3ac 0x98 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b3ac USBD_LL_Init .text.USBD_LL_Start - 0x0800b38c 0x36 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b38c USBD_LL_Start + 0x0800b444 0x36 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b444 USBD_LL_Start .text.USBD_LL_OpenEP - 0x0800b3c2 0x4c ./USB_DEVICE/Target/usbd_conf.o - 0x0800b3c2 USBD_LL_OpenEP + 0x0800b47a 0x4c ./USB_DEVICE/Target/usbd_conf.o + 0x0800b47a USBD_LL_OpenEP .text.USBD_LL_CloseEP - 0x0800b40e 0x3e ./USB_DEVICE/Target/usbd_conf.o - 0x0800b40e USBD_LL_CloseEP + 0x0800b4c6 0x3e ./USB_DEVICE/Target/usbd_conf.o + 0x0800b4c6 USBD_LL_CloseEP .text.USBD_LL_StallEP - 0x0800b44c 0x3e ./USB_DEVICE/Target/usbd_conf.o - 0x0800b44c USBD_LL_StallEP + 0x0800b504 0x3e ./USB_DEVICE/Target/usbd_conf.o + 0x0800b504 USBD_LL_StallEP .text.USBD_LL_ClearStallEP - 0x0800b48a 0x3e ./USB_DEVICE/Target/usbd_conf.o - 0x0800b48a USBD_LL_ClearStallEP + 0x0800b542 0x3e ./USB_DEVICE/Target/usbd_conf.o + 0x0800b542 USBD_LL_ClearStallEP .text.USBD_LL_IsStallEP - 0x0800b4c8 0x58 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b4c8 USBD_LL_IsStallEP + 0x0800b580 0x58 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b580 USBD_LL_IsStallEP .text.USBD_LL_SetUSBAddress - 0x0800b520 0x3e ./USB_DEVICE/Target/usbd_conf.o - 0x0800b520 USBD_LL_SetUSBAddress + 0x0800b5d8 0x3e ./USB_DEVICE/Target/usbd_conf.o + 0x0800b5d8 USBD_LL_SetUSBAddress .text.USBD_LL_Transmit - 0x0800b55e 0x42 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b55e USBD_LL_Transmit + 0x0800b616 0x42 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b616 USBD_LL_Transmit .text.USBD_LL_PrepareReceive - 0x0800b5a0 0x42 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b5a0 USBD_LL_PrepareReceive - *fill* 0x0800b5e2 0x2 + 0x0800b658 0x42 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b658 USBD_LL_PrepareReceive + *fill* 0x0800b69a 0x2 .text.HAL_PCDEx_LPM_Callback - 0x0800b5e4 0x9c ./USB_DEVICE/Target/usbd_conf.o - 0x0800b5e4 HAL_PCDEx_LPM_Callback + 0x0800b69c 0x9c ./USB_DEVICE/Target/usbd_conf.o + 0x0800b69c HAL_PCDEx_LPM_Callback .text.USBD_static_malloc - 0x0800b680 0x1c ./USB_DEVICE/Target/usbd_conf.o - 0x0800b680 USBD_static_malloc + 0x0800b738 0x1c ./USB_DEVICE/Target/usbd_conf.o + 0x0800b738 USBD_static_malloc .text.USBD_static_free - 0x0800b69c 0x14 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b69c USBD_static_free + 0x0800b754 0x14 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b754 USBD_static_free .text.USBD_Get_USB_Status - 0x0800b6b0 0x58 ./USB_DEVICE/Target/usbd_conf.o - 0x0800b6b0 USBD_Get_USB_Status - .text.memset 0x0800b708 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) - 0x0800b708 memset + 0x0800b768 0x58 ./USB_DEVICE/Target/usbd_conf.o + 0x0800b768 USBD_Get_USB_Status + .text.memset 0x0800b7c0 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) + 0x0800b7c0 memset .text.__libc_init_array - 0x0800b718 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) - 0x0800b718 __libc_init_array - .text.memcpy 0x0800b760 0x1c /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-memcpy-stub.o) - 0x0800b760 memcpy + 0x0800b7d0 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) + 0x0800b7d0 __libc_init_array + .text.memcpy 0x0800b818 0x1c /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-memcpy-stub.o) + 0x0800b818 memcpy *(.glue_7) - .glue_7 0x0800b77c 0x0 linker stubs + .glue_7 0x0800b834 0x0 linker stubs *(.glue_7t) - .glue_7t 0x0800b77c 0x0 linker stubs + .glue_7t 0x0800b834 0x0 linker stubs *(.eh_frame) - .eh_frame 0x0800b77c 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 0x0800b834 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 0x0800b77c 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 - 0x0800b77c _init - .init 0x0800b780 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 0x0800b834 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 + 0x0800b834 _init + .init 0x0800b838 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 0x0800b788 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 - 0x0800b788 _fini - .fini 0x0800b78c 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 - 0x0800b794 . = ALIGN (0x4) - 0x0800b794 _etext = . + .fini 0x0800b840 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 + 0x0800b840 _fini + .fini 0x0800b844 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 + 0x0800b84c . = ALIGN (0x4) + 0x0800b84c _etext = . -.vfp11_veneer 0x0800b794 0x0 - .vfp11_veneer 0x0800b794 0x0 linker stubs +.vfp11_veneer 0x0800b84c 0x0 + .vfp11_veneer 0x0800b84c 0x0 linker stubs -.v4_bx 0x0800b794 0x0 - .v4_bx 0x0800b794 0x0 linker stubs +.v4_bx 0x0800b84c 0x0 + .v4_bx 0x0800b84c 0x0 linker stubs -.iplt 0x0800b794 0x0 - .iplt 0x0800b794 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 0x0800b84c 0x0 + .iplt 0x0800b84c 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 0x0800b794 0x5c - 0x0800b794 . = ALIGN (0x4) +.rodata 0x0800b84c 0x5c + 0x0800b84c . = ALIGN (0x4) *(.rodata) - .rodata 0x0800b794 0x3a ./USB_DEVICE/App/usbd_desc.o + .rodata 0x0800b84c 0x3a ./USB_DEVICE/App/usbd_desc.o *(.rodata*) - *fill* 0x0800b7ce 0x2 + *fill* 0x0800b886 0x2 .rodata.AHBPrescTable - 0x0800b7d0 0x10 ./Core/Src/system_stm32f4xx.o - 0x0800b7d0 AHBPrescTable + 0x0800b888 0x10 ./Core/Src/system_stm32f4xx.o + 0x0800b888 AHBPrescTable .rodata.APBPrescTable - 0x0800b7e0 0x8 ./Core/Src/system_stm32f4xx.o - 0x0800b7e0 APBPrescTable + 0x0800b898 0x8 ./Core/Src/system_stm32f4xx.o + 0x0800b898 APBPrescTable .rodata.flagBitshiftOffset.0 - 0x0800b7e8 0x8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - 0x0800b7f0 . = ALIGN (0x4) + 0x0800b8a0 0x8 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + 0x0800b8a8 . = ALIGN (0x4) -.ARM.extab 0x0800b7f0 0x0 - 0x0800b7f0 . = ALIGN (0x4) +.ARM.extab 0x0800b8a8 0x0 + 0x0800b8a8 . = ALIGN (0x4) *(.ARM.extab* .gnu.linkonce.armextab.*) - 0x0800b7f0 . = ALIGN (0x4) + 0x0800b8a8 . = ALIGN (0x4) -.ARM 0x0800b7f0 0x8 - 0x0800b7f0 . = ALIGN (0x4) - 0x0800b7f0 __exidx_start = . +.ARM 0x0800b8a8 0x8 + 0x0800b8a8 . = ALIGN (0x4) + 0x0800b8a8 __exidx_start = . *(.ARM.exidx*) - .ARM.exidx 0x0800b7f0 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) - 0x0800b7f8 __exidx_end = . - 0x0800b7f8 . = ALIGN (0x4) + .ARM.exidx 0x0800b8a8 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) + 0x0800b8b0 __exidx_end = . + 0x0800b8b0 . = ALIGN (0x4) -.preinit_array 0x0800b7f8 0x0 - 0x0800b7f8 . = ALIGN (0x4) - 0x0800b7f8 PROVIDE (__preinit_array_start = .) +.preinit_array 0x0800b8b0 0x0 + 0x0800b8b0 . = ALIGN (0x4) + 0x0800b8b0 PROVIDE (__preinit_array_start = .) *(.preinit_array*) - 0x0800b7f8 PROVIDE (__preinit_array_end = .) - 0x0800b7f8 . = ALIGN (0x4) + 0x0800b8b0 PROVIDE (__preinit_array_end = .) + 0x0800b8b0 . = ALIGN (0x4) -.init_array 0x0800b7f8 0x4 - 0x0800b7f8 . = ALIGN (0x4) - 0x0800b7f8 PROVIDE (__init_array_start = .) +.init_array 0x0800b8b0 0x4 + 0x0800b8b0 . = ALIGN (0x4) + 0x0800b8b0 PROVIDE (__init_array_start = .) *(SORT_BY_NAME(.init_array.*)) *(.init_array*) - .init_array 0x0800b7f8 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 - 0x0800b7fc PROVIDE (__init_array_end = .) - 0x0800b7fc . = ALIGN (0x4) + .init_array 0x0800b8b0 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 + 0x0800b8b4 PROVIDE (__init_array_end = .) + 0x0800b8b4 . = ALIGN (0x4) -.fini_array 0x0800b7fc 0x4 - 0x0800b7fc . = ALIGN (0x4) +.fini_array 0x0800b8b4 0x4 + 0x0800b8b4 . = ALIGN (0x4) [!provide] PROVIDE (__fini_array_start = .) *(SORT_BY_NAME(.fini_array.*)) *(.fini_array*) - .fini_array 0x0800b7fc 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 0x0800b8b4 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 = .) - 0x0800b800 . = ALIGN (0x4) - 0x0800b800 _sidata = LOADADDR (.data) + 0x0800b8b8 . = ALIGN (0x4) + 0x0800b8b8 _sidata = LOADADDR (.data) -.rel.dyn 0x0800b800 0x0 - .rel.iplt 0x0800b800 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 0x0800b8b8 0x0 + .rel.iplt 0x0800b8b8 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 0x0800b800 +.data 0x20000000 0x1a0 load address 0x0800b8b8 0x20000000 . = ALIGN (0x4) 0x20000000 _sdata = . *(.data) @@ -6475,11 +6476,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 0x0800b9a0 +.igot.plt 0x200001a0 0x0 load address 0x0800ba58 .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 0x173c load address 0x0800b9a0 +.bss 0x200001a0 0x173c load address 0x0800ba58 0x200001a0 _sbss = . 0x200001a0 __bss_start__ = _sbss *(.bss) @@ -6589,7 +6590,7 @@ LOAD /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.external 0x200018dc __bss_end__ = _ebss ._user_heap_stack - 0x200018dc 0x604 load address 0x0800b9a0 + 0x200018dc 0x604 load address 0x0800ba58 0x200018e0 . = ALIGN (0x8) *fill* 0x200018dc 0x4 [!provide] PROVIDE (end = .) @@ -6991,37 +6992,37 @@ LOAD /home/ukim/st/stm32cubeide_1.19.0/plugins/com.st.stm32cube.ide.mcu.external .debug_macro 0x00025cd6 0x1c ./USB_DEVICE/App/usbd_desc.o .debug_macro 0x00025cf2 0x3ad ./USB_DEVICE/Target/usbd_conf.o -.debug_line 0x00000000 0x1e97c +.debug_line 0x00000000 0x1e97e .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 0xf85 ./Core/Src/main.o - .debug_line 0x00002582 0x71b ./Core/Src/stm32f4xx_hal_msp.o - .debug_line 0x00002c9d 0x902 ./Core/Src/stm32f4xx_it.o - .debug_line 0x0000359f 0x791 ./Core/Src/system_stm32f4xx.o - .debug_line 0x00003d30 0x886 ./Core/Src/tim.o - .debug_line 0x000045b6 0xa52 ./Core/Src/usart.o - .debug_line 0x00005008 0x7a ./Core/Startup/startup_stm32f446retx.o - .debug_line 0x00005082 0xa0d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o - .debug_line 0x00005a8f 0xcdd ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o - .debug_line 0x0000676c 0xf79 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o - .debug_line 0x000076e5 0xb51 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o - .debug_line 0x00008236 0x3aba ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o - .debug_line 0x0000bcf0 0x1488 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o - .debug_line 0x0000d178 0x82d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o - .debug_line 0x0000d9a5 0xe28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o - .debug_line 0x0000e7cd 0x14d9 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o - .debug_line 0x0000fca6 0x3782 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o - .debug_line 0x00013428 0x196d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o - .debug_line 0x00014d95 0x2555 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o - .debug_line 0x000172ea 0x1d2f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o - .debug_line 0x00019019 0xc3e ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o - .debug_line 0x00019c57 0xf28 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o - .debug_line 0x0001ab7f 0x1107 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o - .debug_line 0x0001bc86 0xa2f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o - .debug_line 0x0001c6b5 0x9d6 ./USB_DEVICE/App/usb_device.o - .debug_line 0x0001d08b 0xab9 ./USB_DEVICE/App/usbd_desc.o - .debug_line 0x0001db44 0xe38 ./USB_DEVICE/Target/usbd_conf.o + .debug_line 0x000015fd 0xf87 ./Core/Src/main.o + .debug_line 0x00002584 0x71b ./Core/Src/stm32f4xx_hal_msp.o + .debug_line 0x00002c9f 0x902 ./Core/Src/stm32f4xx_it.o + .debug_line 0x000035a1 0x791 ./Core/Src/system_stm32f4xx.o + .debug_line 0x00003d32 0x886 ./Core/Src/tim.o + .debug_line 0x000045b8 0xa52 ./Core/Src/usart.o + .debug_line 0x0000500a 0x7a ./Core/Startup/startup_stm32f446retx.o + .debug_line 0x00005084 0xa0d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.o + .debug_line 0x00005a91 0xcdd ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o + .debug_line 0x0000676e 0xf79 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.o + .debug_line 0x000076e7 0xb51 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.o + .debug_line 0x00008238 0x3aba ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.o + .debug_line 0x0000bcf2 0x1488 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd.o + .debug_line 0x0000d17a 0x82d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pcd_ex.o + .debug_line 0x0000d9a7 0xe28 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.o + .debug_line 0x0000e7cf 0x14d9 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.o + .debug_line 0x0000fca8 0x3782 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o + .debug_line 0x0001342a 0x196d ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o + .debug_line 0x00014d97 0x2555 ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o + .debug_line 0x000172ec 0x1d2f ./Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o + .debug_line 0x0001901b 0xc3e ./Middlewares/ST/STM32_USB_Device_Library/Class/HID/Src/usbd_hid.o + .debug_line 0x00019c59 0xf28 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.o + .debug_line 0x0001ab81 0x1107 ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.o + .debug_line 0x0001bc88 0xa2f ./Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.o + .debug_line 0x0001c6b7 0x9d6 ./USB_DEVICE/App/usb_device.o + .debug_line 0x0001d08d 0xab9 ./USB_DEVICE/App/usbd_desc.o + .debug_line 0x0001db46 0xe38 ./USB_DEVICE/Target/usbd_conf.o .debug_str 0x00000000 0xd80c4 .debug_str 0x00000000 0xd80c4 ./Core/Src/dma.o diff --git a/hardware/68percent/68percent-backups/68percent-2025-11-07_233214.zip b/hardware/68percent/68percent-backups/68percent-2025-11-07_233214.zip deleted file mode 100644 index 0da212b6..00000000 Binary files a/hardware/68percent/68percent-backups/68percent-2025-11-07_233214.zip and /dev/null differ diff --git a/hardware/68percent/68percent-backups/68percent-2025-11-07_235042.zip b/hardware/68percent/68percent-backups/68percent-2025-11-07_235042.zip deleted file mode 100644 index 151541a4..00000000 Binary files a/hardware/68percent/68percent-backups/68percent-2025-11-07_235042.zip and /dev/null differ diff --git a/hardware/68percent/68percent-backups/68percent-2025-11-08_213627.zip b/hardware/68percent/68percent-backups/68percent-2025-11-08_213627.zip deleted file mode 100644 index 947b39fa..00000000 Binary files a/hardware/68percent/68percent-backups/68percent-2025-11-08_213627.zip and /dev/null differ diff --git a/hardware/68percent/68percent-backups/68percent-2025-11-08_214651.zip b/hardware/68percent/68percent-backups/68percent-2025-11-08_214651.zip deleted file mode 100644 index 1263cb00..00000000 Binary files a/hardware/68percent/68percent-backups/68percent-2025-11-08_214651.zip and /dev/null differ diff --git a/hardware/68percent/68percent-backups/68percent-2025-11-08_215644.zip b/hardware/68percent/68percent-backups/68percent-2025-11-08_215644.zip deleted file mode 100644 index 91129a1d..00000000 Binary files a/hardware/68percent/68percent-backups/68percent-2025-11-08_215644.zip and /dev/null differ diff --git a/hardware/68percent/68percent-backups/68percent-2025-11-08_220751.zip b/hardware/68percent/68percent-backups/68percent-2025-11-08_220751.zip deleted file mode 100644 index e8a8099e..00000000 Binary files a/hardware/68percent/68percent-backups/68percent-2025-11-08_220751.zip and /dev/null differ diff --git a/hardware/68percent/68percent-backups/68percent-2025-12-08_163857.zip b/hardware/68percent/68percent-backups/68percent-2025-12-08_163857.zip new file mode 100644 index 00000000..0f9c223c Binary files /dev/null and b/hardware/68percent/68percent-backups/68percent-2025-12-08_163857.zip differ diff --git a/hardware/68percent/68percent-backups/68percent-2025-12-08_165131.zip b/hardware/68percent/68percent-backups/68percent-2025-12-08_165131.zip new file mode 100644 index 00000000..8e136bbe Binary files /dev/null and b/hardware/68percent/68percent-backups/68percent-2025-12-08_165131.zip differ diff --git a/hardware/68percent/68percent-backups/68percent-2025-12-08_174605.zip b/hardware/68percent/68percent-backups/68percent-2025-12-08_174605.zip new file mode 100644 index 00000000..83e9c77c Binary files /dev/null and b/hardware/68percent/68percent-backups/68percent-2025-12-08_174605.zip differ diff --git a/hardware/68percent/68percent-backups/68percent-2025-12-08_182213.zip b/hardware/68percent/68percent-backups/68percent-2025-12-08_182213.zip new file mode 100644 index 00000000..49ec5465 Binary files /dev/null and b/hardware/68percent/68percent-backups/68percent-2025-12-08_182213.zip differ diff --git a/hardware/68percent/68percent-backups/68percent-2025-12-09_212103.zip b/hardware/68percent/68percent-backups/68percent-2025-12-09_212103.zip new file mode 100644 index 00000000..d7394538 Binary files /dev/null and b/hardware/68percent/68percent-backups/68percent-2025-12-09_212103.zip differ diff --git a/hardware/68percent/68percent-backups/68percent-2025-12-09_212628.zip b/hardware/68percent/68percent-backups/68percent-2025-12-09_212628.zip new file mode 100644 index 00000000..c6d40eb9 Binary files /dev/null and b/hardware/68percent/68percent-backups/68percent-2025-12-09_212628.zip differ diff --git a/hardware/68percent/68percent.kicad_prl b/hardware/68percent/68percent.kicad_prl index 9b7e039f..8b71b979 100644 --- a/hardware/68percent/68percent.kicad_prl +++ b/hardware/68percent/68percent.kicad_prl @@ -92,18 +92,18 @@ 11 ], "col_widths": [ - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 10, - 165 + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 ], "custom_group_rules": [], "expanded_rows": [], diff --git a/hardware/68percent/~68percent.kicad_pcb.lck b/hardware/68percent/~68percent.kicad_pcb.lck new file mode 100644 index 00000000..cf7e3025 --- /dev/null +++ b/hardware/68percent/~68percent.kicad_pcb.lck @@ -0,0 +1 @@ +{"hostname":"framework16","username":"ukim"} \ No newline at end of file diff --git a/hardware/68percent/~_autosave-68percent.kicad_pcb.lck b/hardware/68percent/~_autosave-68percent.kicad_pcb.lck new file mode 100644 index 00000000..cf7e3025 --- /dev/null +++ b/hardware/68percent/~_autosave-68percent.kicad_pcb.lck @@ -0,0 +1 @@ +{"hostname":"framework16","username":"ukim"} \ No newline at end of file diff --git a/hardware/numpad/numpad/numpad-backups/numpad-2025-12-08_182933.zip b/hardware/numpad/numpad/numpad-backups/numpad-2025-12-08_182933.zip new file mode 100644 index 00000000..a1bfcdbb Binary files /dev/null and b/hardware/numpad/numpad/numpad-backups/numpad-2025-12-08_182933.zip differ