Files
STMRepo/Calc2/Debug/Calc2.list
2025-09-12 08:47:43 -05:00

21018 lines
772 KiB
Plaintext

Calc2.elf: file format elf32-littlearm
Sections:
Idx Name Size VMA LMA File off Algn
0 .isr_vector 000001ac 08000000 08000000 00001000 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
1 .text 00007d6c 080001b0 080001b0 000011b0 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .rodata 00000018 08007f1c 08007f1c 00008f1c 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
3 .ARM.extab 00000000 08007f34 08007f34 00009010 2**0
CONTENTS, READONLY
4 .ARM 00000008 08007f34 08007f34 00008f34 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
5 .preinit_array 00000000 08007f3c 08007f3c 00009010 2**0
CONTENTS, ALLOC, LOAD, DATA
6 .init_array 00000004 08007f3c 08007f3c 00008f3c 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
7 .fini_array 00000004 08007f40 08007f40 00008f40 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
8 .data 00000010 20000000 08007f44 00009000 2**2
CONTENTS, ALLOC, LOAD, DATA
9 .ccmram 00000000 10000000 10000000 00009010 2**0
CONTENTS
10 .bss 00000798 20000010 20000010 00009010 2**2
ALLOC
11 ._user_heap_stack 00000600 200007a8 200007a8 00009010 2**0
ALLOC
12 .ARM.attributes 00000030 00000000 00000000 00009010 2**0
CONTENTS, READONLY
13 .debug_info 00025054 00000000 00000000 00009040 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
14 .debug_abbrev 00004ebd 00000000 00000000 0002e094 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
15 .debug_aranges 00002090 00000000 00000000 00032f58 2**3
CONTENTS, READONLY, DEBUGGING, OCTETS
16 .debug_rnglists 00001956 00000000 00000000 00034fe8 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
17 .debug_macro 00028e25 00000000 00000000 0003693e 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
18 .debug_line 0002543e 00000000 00000000 0005f763 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
19 .debug_str 000f417a 00000000 00000000 00084ba1 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
20 .comment 00000043 00000000 00000000 00178d1b 2**0
CONTENTS, READONLY
21 .debug_frame 00008bf0 00000000 00000000 00178d60 2**2
CONTENTS, READONLY, DEBUGGING, OCTETS
22 .debug_line_str 00000045 00000000 00000000 00181950 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
Disassembly of section .text:
080001b0 <__do_global_dtors_aux>:
80001b0: b510 push {r4, lr}
80001b2: 4c05 ldr r4, [pc, #20] @ (80001c8 <__do_global_dtors_aux+0x18>)
80001b4: 7823 ldrb r3, [r4, #0]
80001b6: b933 cbnz r3, 80001c6 <__do_global_dtors_aux+0x16>
80001b8: 4b04 ldr r3, [pc, #16] @ (80001cc <__do_global_dtors_aux+0x1c>)
80001ba: b113 cbz r3, 80001c2 <__do_global_dtors_aux+0x12>
80001bc: 4804 ldr r0, [pc, #16] @ (80001d0 <__do_global_dtors_aux+0x20>)
80001be: f3af 8000 nop.w
80001c2: 2301 movs r3, #1
80001c4: 7023 strb r3, [r4, #0]
80001c6: bd10 pop {r4, pc}
80001c8: 20000010 .word 0x20000010
80001cc: 00000000 .word 0x00000000
80001d0: 08007f04 .word 0x08007f04
080001d4 <frame_dummy>:
80001d4: b508 push {r3, lr}
80001d6: 4b03 ldr r3, [pc, #12] @ (80001e4 <frame_dummy+0x10>)
80001d8: b11b cbz r3, 80001e2 <frame_dummy+0xe>
80001da: 4903 ldr r1, [pc, #12] @ (80001e8 <frame_dummy+0x14>)
80001dc: 4803 ldr r0, [pc, #12] @ (80001ec <frame_dummy+0x18>)
80001de: f3af 8000 nop.w
80001e2: bd08 pop {r3, pc}
80001e4: 00000000 .word 0x00000000
80001e8: 20000014 .word 0x20000014
80001ec: 08007f04 .word 0x08007f04
080001f0 <__aeabi_uldivmod>:
80001f0: b953 cbnz r3, 8000208 <__aeabi_uldivmod+0x18>
80001f2: b94a cbnz r2, 8000208 <__aeabi_uldivmod+0x18>
80001f4: 2900 cmp r1, #0
80001f6: bf08 it eq
80001f8: 2800 cmpeq r0, #0
80001fa: bf1c itt ne
80001fc: f04f 31ff movne.w r1, #4294967295 @ 0xffffffff
8000200: f04f 30ff movne.w r0, #4294967295 @ 0xffffffff
8000204: f000 b988 b.w 8000518 <__aeabi_idiv0>
8000208: f1ad 0c08 sub.w ip, sp, #8
800020c: e96d ce04 strd ip, lr, [sp, #-16]!
8000210: f000 f806 bl 8000220 <__udivmoddi4>
8000214: f8dd e004 ldr.w lr, [sp, #4]
8000218: e9dd 2302 ldrd r2, r3, [sp, #8]
800021c: b004 add sp, #16
800021e: 4770 bx lr
08000220 <__udivmoddi4>:
8000220: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
8000224: 9d08 ldr r5, [sp, #32]
8000226: 468e mov lr, r1
8000228: 4604 mov r4, r0
800022a: 4688 mov r8, r1
800022c: 2b00 cmp r3, #0
800022e: d14a bne.n 80002c6 <__udivmoddi4+0xa6>
8000230: 428a cmp r2, r1
8000232: 4617 mov r7, r2
8000234: d962 bls.n 80002fc <__udivmoddi4+0xdc>
8000236: fab2 f682 clz r6, r2
800023a: b14e cbz r6, 8000250 <__udivmoddi4+0x30>
800023c: f1c6 0320 rsb r3, r6, #32
8000240: fa01 f806 lsl.w r8, r1, r6
8000244: fa20 f303 lsr.w r3, r0, r3
8000248: 40b7 lsls r7, r6
800024a: ea43 0808 orr.w r8, r3, r8
800024e: 40b4 lsls r4, r6
8000250: ea4f 4e17 mov.w lr, r7, lsr #16
8000254: fa1f fc87 uxth.w ip, r7
8000258: fbb8 f1fe udiv r1, r8, lr
800025c: 0c23 lsrs r3, r4, #16
800025e: fb0e 8811 mls r8, lr, r1, r8
8000262: ea43 4308 orr.w r3, r3, r8, lsl #16
8000266: fb01 f20c mul.w r2, r1, ip
800026a: 429a cmp r2, r3
800026c: d909 bls.n 8000282 <__udivmoddi4+0x62>
800026e: 18fb adds r3, r7, r3
8000270: f101 30ff add.w r0, r1, #4294967295 @ 0xffffffff
8000274: f080 80ea bcs.w 800044c <__udivmoddi4+0x22c>
8000278: 429a cmp r2, r3
800027a: f240 80e7 bls.w 800044c <__udivmoddi4+0x22c>
800027e: 3902 subs r1, #2
8000280: 443b add r3, r7
8000282: 1a9a subs r2, r3, r2
8000284: b2a3 uxth r3, r4
8000286: fbb2 f0fe udiv r0, r2, lr
800028a: fb0e 2210 mls r2, lr, r0, r2
800028e: ea43 4302 orr.w r3, r3, r2, lsl #16
8000292: fb00 fc0c mul.w ip, r0, ip
8000296: 459c cmp ip, r3
8000298: d909 bls.n 80002ae <__udivmoddi4+0x8e>
800029a: 18fb adds r3, r7, r3
800029c: f100 32ff add.w r2, r0, #4294967295 @ 0xffffffff
80002a0: f080 80d6 bcs.w 8000450 <__udivmoddi4+0x230>
80002a4: 459c cmp ip, r3
80002a6: f240 80d3 bls.w 8000450 <__udivmoddi4+0x230>
80002aa: 443b add r3, r7
80002ac: 3802 subs r0, #2
80002ae: ea40 4001 orr.w r0, r0, r1, lsl #16
80002b2: eba3 030c sub.w r3, r3, ip
80002b6: 2100 movs r1, #0
80002b8: b11d cbz r5, 80002c2 <__udivmoddi4+0xa2>
80002ba: 40f3 lsrs r3, r6
80002bc: 2200 movs r2, #0
80002be: e9c5 3200 strd r3, r2, [r5]
80002c2: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
80002c6: 428b cmp r3, r1
80002c8: d905 bls.n 80002d6 <__udivmoddi4+0xb6>
80002ca: b10d cbz r5, 80002d0 <__udivmoddi4+0xb0>
80002cc: e9c5 0100 strd r0, r1, [r5]
80002d0: 2100 movs r1, #0
80002d2: 4608 mov r0, r1
80002d4: e7f5 b.n 80002c2 <__udivmoddi4+0xa2>
80002d6: fab3 f183 clz r1, r3
80002da: 2900 cmp r1, #0
80002dc: d146 bne.n 800036c <__udivmoddi4+0x14c>
80002de: 4573 cmp r3, lr
80002e0: d302 bcc.n 80002e8 <__udivmoddi4+0xc8>
80002e2: 4282 cmp r2, r0
80002e4: f200 8105 bhi.w 80004f2 <__udivmoddi4+0x2d2>
80002e8: 1a84 subs r4, r0, r2
80002ea: eb6e 0203 sbc.w r2, lr, r3
80002ee: 2001 movs r0, #1
80002f0: 4690 mov r8, r2
80002f2: 2d00 cmp r5, #0
80002f4: d0e5 beq.n 80002c2 <__udivmoddi4+0xa2>
80002f6: e9c5 4800 strd r4, r8, [r5]
80002fa: e7e2 b.n 80002c2 <__udivmoddi4+0xa2>
80002fc: 2a00 cmp r2, #0
80002fe: f000 8090 beq.w 8000422 <__udivmoddi4+0x202>
8000302: fab2 f682 clz r6, r2
8000306: 2e00 cmp r6, #0
8000308: f040 80a4 bne.w 8000454 <__udivmoddi4+0x234>
800030c: 1a8a subs r2, r1, r2
800030e: 0c03 lsrs r3, r0, #16
8000310: ea4f 4e17 mov.w lr, r7, lsr #16
8000314: b280 uxth r0, r0
8000316: b2bc uxth r4, r7
8000318: 2101 movs r1, #1
800031a: fbb2 fcfe udiv ip, r2, lr
800031e: fb0e 221c mls r2, lr, ip, r2
8000322: ea43 4302 orr.w r3, r3, r2, lsl #16
8000326: fb04 f20c mul.w r2, r4, ip
800032a: 429a cmp r2, r3
800032c: d907 bls.n 800033e <__udivmoddi4+0x11e>
800032e: 18fb adds r3, r7, r3
8000330: f10c 38ff add.w r8, ip, #4294967295 @ 0xffffffff
8000334: d202 bcs.n 800033c <__udivmoddi4+0x11c>
8000336: 429a cmp r2, r3
8000338: f200 80e0 bhi.w 80004fc <__udivmoddi4+0x2dc>
800033c: 46c4 mov ip, r8
800033e: 1a9b subs r3, r3, r2
8000340: fbb3 f2fe udiv r2, r3, lr
8000344: fb0e 3312 mls r3, lr, r2, r3
8000348: ea40 4303 orr.w r3, r0, r3, lsl #16
800034c: fb02 f404 mul.w r4, r2, r4
8000350: 429c cmp r4, r3
8000352: d907 bls.n 8000364 <__udivmoddi4+0x144>
8000354: 18fb adds r3, r7, r3
8000356: f102 30ff add.w r0, r2, #4294967295 @ 0xffffffff
800035a: d202 bcs.n 8000362 <__udivmoddi4+0x142>
800035c: 429c cmp r4, r3
800035e: f200 80ca bhi.w 80004f6 <__udivmoddi4+0x2d6>
8000362: 4602 mov r2, r0
8000364: 1b1b subs r3, r3, r4
8000366: ea42 400c orr.w r0, r2, ip, lsl #16
800036a: e7a5 b.n 80002b8 <__udivmoddi4+0x98>
800036c: f1c1 0620 rsb r6, r1, #32
8000370: 408b lsls r3, r1
8000372: fa22 f706 lsr.w r7, r2, r6
8000376: 431f orrs r7, r3
8000378: fa0e f401 lsl.w r4, lr, r1
800037c: fa20 f306 lsr.w r3, r0, r6
8000380: fa2e fe06 lsr.w lr, lr, r6
8000384: ea4f 4917 mov.w r9, r7, lsr #16
8000388: 4323 orrs r3, r4
800038a: fa00 f801 lsl.w r8, r0, r1
800038e: fa1f fc87 uxth.w ip, r7
8000392: fbbe f0f9 udiv r0, lr, r9
8000396: 0c1c lsrs r4, r3, #16
8000398: fb09 ee10 mls lr, r9, r0, lr
800039c: ea44 440e orr.w r4, r4, lr, lsl #16
80003a0: fb00 fe0c mul.w lr, r0, ip
80003a4: 45a6 cmp lr, r4
80003a6: fa02 f201 lsl.w r2, r2, r1
80003aa: d909 bls.n 80003c0 <__udivmoddi4+0x1a0>
80003ac: 193c adds r4, r7, r4
80003ae: f100 3aff add.w sl, r0, #4294967295 @ 0xffffffff
80003b2: f080 809c bcs.w 80004ee <__udivmoddi4+0x2ce>
80003b6: 45a6 cmp lr, r4
80003b8: f240 8099 bls.w 80004ee <__udivmoddi4+0x2ce>
80003bc: 3802 subs r0, #2
80003be: 443c add r4, r7
80003c0: eba4 040e sub.w r4, r4, lr
80003c4: fa1f fe83 uxth.w lr, r3
80003c8: fbb4 f3f9 udiv r3, r4, r9
80003cc: fb09 4413 mls r4, r9, r3, r4
80003d0: ea4e 4404 orr.w r4, lr, r4, lsl #16
80003d4: fb03 fc0c mul.w ip, r3, ip
80003d8: 45a4 cmp ip, r4
80003da: d908 bls.n 80003ee <__udivmoddi4+0x1ce>
80003dc: 193c adds r4, r7, r4
80003de: f103 3eff add.w lr, r3, #4294967295 @ 0xffffffff
80003e2: f080 8082 bcs.w 80004ea <__udivmoddi4+0x2ca>
80003e6: 45a4 cmp ip, r4
80003e8: d97f bls.n 80004ea <__udivmoddi4+0x2ca>
80003ea: 3b02 subs r3, #2
80003ec: 443c add r4, r7
80003ee: ea43 4000 orr.w r0, r3, r0, lsl #16
80003f2: eba4 040c sub.w r4, r4, ip
80003f6: fba0 ec02 umull lr, ip, r0, r2
80003fa: 4564 cmp r4, ip
80003fc: 4673 mov r3, lr
80003fe: 46e1 mov r9, ip
8000400: d362 bcc.n 80004c8 <__udivmoddi4+0x2a8>
8000402: d05f beq.n 80004c4 <__udivmoddi4+0x2a4>
8000404: b15d cbz r5, 800041e <__udivmoddi4+0x1fe>
8000406: ebb8 0203 subs.w r2, r8, r3
800040a: eb64 0409 sbc.w r4, r4, r9
800040e: fa04 f606 lsl.w r6, r4, r6
8000412: fa22 f301 lsr.w r3, r2, r1
8000416: 431e orrs r6, r3
8000418: 40cc lsrs r4, r1
800041a: e9c5 6400 strd r6, r4, [r5]
800041e: 2100 movs r1, #0
8000420: e74f b.n 80002c2 <__udivmoddi4+0xa2>
8000422: fbb1 fcf2 udiv ip, r1, r2
8000426: 0c01 lsrs r1, r0, #16
8000428: ea41 410e orr.w r1, r1, lr, lsl #16
800042c: b280 uxth r0, r0
800042e: ea40 4201 orr.w r2, r0, r1, lsl #16
8000432: 463b mov r3, r7
8000434: 4638 mov r0, r7
8000436: 463c mov r4, r7
8000438: 46b8 mov r8, r7
800043a: 46be mov lr, r7
800043c: 2620 movs r6, #32
800043e: fbb1 f1f7 udiv r1, r1, r7
8000442: eba2 0208 sub.w r2, r2, r8
8000446: ea41 410c orr.w r1, r1, ip, lsl #16
800044a: e766 b.n 800031a <__udivmoddi4+0xfa>
800044c: 4601 mov r1, r0
800044e: e718 b.n 8000282 <__udivmoddi4+0x62>
8000450: 4610 mov r0, r2
8000452: e72c b.n 80002ae <__udivmoddi4+0x8e>
8000454: f1c6 0220 rsb r2, r6, #32
8000458: fa2e f302 lsr.w r3, lr, r2
800045c: 40b7 lsls r7, r6
800045e: 40b1 lsls r1, r6
8000460: fa20 f202 lsr.w r2, r0, r2
8000464: ea4f 4e17 mov.w lr, r7, lsr #16
8000468: 430a orrs r2, r1
800046a: fbb3 f8fe udiv r8, r3, lr
800046e: b2bc uxth r4, r7
8000470: fb0e 3318 mls r3, lr, r8, r3
8000474: 0c11 lsrs r1, r2, #16
8000476: ea41 4103 orr.w r1, r1, r3, lsl #16
800047a: fb08 f904 mul.w r9, r8, r4
800047e: 40b0 lsls r0, r6
8000480: 4589 cmp r9, r1
8000482: ea4f 4310 mov.w r3, r0, lsr #16
8000486: b280 uxth r0, r0
8000488: d93e bls.n 8000508 <__udivmoddi4+0x2e8>
800048a: 1879 adds r1, r7, r1
800048c: f108 3cff add.w ip, r8, #4294967295 @ 0xffffffff
8000490: d201 bcs.n 8000496 <__udivmoddi4+0x276>
8000492: 4589 cmp r9, r1
8000494: d81f bhi.n 80004d6 <__udivmoddi4+0x2b6>
8000496: eba1 0109 sub.w r1, r1, r9
800049a: fbb1 f9fe udiv r9, r1, lr
800049e: fb09 f804 mul.w r8, r9, r4
80004a2: fb0e 1119 mls r1, lr, r9, r1
80004a6: b292 uxth r2, r2
80004a8: ea42 4201 orr.w r2, r2, r1, lsl #16
80004ac: 4542 cmp r2, r8
80004ae: d229 bcs.n 8000504 <__udivmoddi4+0x2e4>
80004b0: 18ba adds r2, r7, r2
80004b2: f109 31ff add.w r1, r9, #4294967295 @ 0xffffffff
80004b6: d2c4 bcs.n 8000442 <__udivmoddi4+0x222>
80004b8: 4542 cmp r2, r8
80004ba: d2c2 bcs.n 8000442 <__udivmoddi4+0x222>
80004bc: f1a9 0102 sub.w r1, r9, #2
80004c0: 443a add r2, r7
80004c2: e7be b.n 8000442 <__udivmoddi4+0x222>
80004c4: 45f0 cmp r8, lr
80004c6: d29d bcs.n 8000404 <__udivmoddi4+0x1e4>
80004c8: ebbe 0302 subs.w r3, lr, r2
80004cc: eb6c 0c07 sbc.w ip, ip, r7
80004d0: 3801 subs r0, #1
80004d2: 46e1 mov r9, ip
80004d4: e796 b.n 8000404 <__udivmoddi4+0x1e4>
80004d6: eba7 0909 sub.w r9, r7, r9
80004da: 4449 add r1, r9
80004dc: f1a8 0c02 sub.w ip, r8, #2
80004e0: fbb1 f9fe udiv r9, r1, lr
80004e4: fb09 f804 mul.w r8, r9, r4
80004e8: e7db b.n 80004a2 <__udivmoddi4+0x282>
80004ea: 4673 mov r3, lr
80004ec: e77f b.n 80003ee <__udivmoddi4+0x1ce>
80004ee: 4650 mov r0, sl
80004f0: e766 b.n 80003c0 <__udivmoddi4+0x1a0>
80004f2: 4608 mov r0, r1
80004f4: e6fd b.n 80002f2 <__udivmoddi4+0xd2>
80004f6: 443b add r3, r7
80004f8: 3a02 subs r2, #2
80004fa: e733 b.n 8000364 <__udivmoddi4+0x144>
80004fc: f1ac 0c02 sub.w ip, ip, #2
8000500: 443b add r3, r7
8000502: e71c b.n 800033e <__udivmoddi4+0x11e>
8000504: 4649 mov r1, r9
8000506: e79c b.n 8000442 <__udivmoddi4+0x222>
8000508: eba1 0109 sub.w r1, r1, r9
800050c: 46c4 mov ip, r8
800050e: fbb1 f9fe udiv r9, r1, lr
8000512: fb09 f804 mul.w r8, r9, r4
8000516: e7c4 b.n 80004a2 <__udivmoddi4+0x282>
08000518 <__aeabi_idiv0>:
8000518: 4770 bx lr
800051a: bf00 nop
0800051c <breadboard>:
#include <stdbool.h>
#include "main.h"
void
breadboard(int DELAY_MS)
{
800051c: b580 push {r7, lr}
800051e: b084 sub sp, #16
8000520: af00 add r7, sp, #0
8000522: 6078 str r0, [r7, #4]
bool Purple = (HAL_GPIO_ReadPin(GPIOE, BTN_PRPL_Pin) == GPIO_PIN_SET);
8000524: 2120 movs r1, #32
8000526: 4816 ldr r0, [pc, #88] @ (8000580 <breadboard+0x64>)
8000528: f001 fd56 bl 8001fd8 <HAL_GPIO_ReadPin>
800052c: 4603 mov r3, r0
800052e: 2b01 cmp r3, #1
8000530: bf0c ite eq
8000532: 2301 moveq r3, #1
8000534: 2300 movne r3, #0
8000536: 73fb strb r3, [r7, #15]
bool Grey = (HAL_GPIO_ReadPin(GPIOE, BTN_GREY_Pin) == GPIO_PIN_SET);
8000538: 2180 movs r1, #128 @ 0x80
800053a: 4811 ldr r0, [pc, #68] @ (8000580 <breadboard+0x64>)
800053c: f001 fd4c bl 8001fd8 <HAL_GPIO_ReadPin>
8000540: 4603 mov r3, r0
8000542: 2b01 cmp r3, #1
8000544: bf0c ite eq
8000546: 2301 moveq r3, #1
8000548: 2300 movne r3, #0
800054a: 73bb strb r3, [r7, #14]
if (Purple && Grey) {
800054c: 7bfb ldrb r3, [r7, #15]
800054e: 2b00 cmp r3, #0
8000550: d008 beq.n 8000564 <breadboard+0x48>
8000552: 7bbb ldrb r3, [r7, #14]
8000554: 2b00 cmp r3, #0
8000556: d005 beq.n 8000564 <breadboard+0x48>
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_SET);
8000558: 2201 movs r2, #1
800055a: 2110 movs r1, #16
800055c: 4809 ldr r0, [pc, #36] @ (8000584 <breadboard+0x68>)
800055e: f001 fd53 bl 8002008 <HAL_GPIO_WritePin>
8000562: e004 b.n 800056e <breadboard+0x52>
} else {
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_RESET);
8000564: 2200 movs r2, #0
8000566: 2110 movs r1, #16
8000568: 4806 ldr r0, [pc, #24] @ (8000584 <breadboard+0x68>)
800056a: f001 fd4d bl 8002008 <HAL_GPIO_WritePin>
}
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
800056e: 687b ldr r3, [r7, #4]
8000570: 4618 mov r0, r3
8000572: f001 f877 bl 8001664 <HAL_Delay>
}
8000576: bf00 nop
8000578: 3710 adds r7, #16
800057a: 46bd mov sp, r7
800057c: bd80 pop {r7, pc}
800057e: bf00 nop
8000580: 40021000 .word 0x40021000
8000584: 40020000 .word 0x40020000
08000588 <vApplicationStackOverflowHook>:
}
/* USER CODE END 2 */
/* USER CODE BEGIN 4 */
__weak void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName)
{
8000588: b480 push {r7}
800058a: b083 sub sp, #12
800058c: af00 add r7, sp, #0
800058e: 6078 str r0, [r7, #4]
8000590: 6039 str r1, [r7, #0]
/* Run time stack overflow checking is performed if
configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is
called if a stack overflow is detected. */
}
8000592: bf00 nop
8000594: 370c adds r7, #12
8000596: 46bd mov sp, r7
8000598: f85d 7b04 ldr.w r7, [sp], #4
800059c: 4770 bx lr
0800059e <main>:
/**
* @brief The application entry point.
* @retval int
*/
int main(void)
{
800059e: b580 push {r7, lr}
80005a0: af00 add r7, sp, #0
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
80005a2: f001 f81d bl 80015e0 <HAL_Init>
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
80005a6: f000 f817 bl 80005d8 <SystemClock_Config>
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
80005aa: f000 fa85 bl 8000ab8 <MX_GPIO_Init>
MX_CRC_Init();
80005ae: f000 f87d bl 80006ac <MX_CRC_Init>
MX_DMA2D_Init();
80005b2: f000 f88f bl 80006d4 <MX_DMA2D_Init>
MX_FMC_Init();
80005b6: f000 fa2f bl 8000a18 <MX_FMC_Init>
MX_I2C3_Init();
80005ba: f000 f8bd bl 8000738 <MX_I2C3_Init>
MX_LTDC_Init();
80005be: f000 f8fb bl 80007b8 <MX_LTDC_Init>
MX_SPI5_Init();
80005c2: f000 f979 bl 80008b8 <MX_SPI5_Init>
MX_TIM1_Init();
80005c6: f000 f9ad bl 8000924 <MX_TIM1_Init>
MX_USART1_UART_Init();
80005ca: f000 f9fb bl 80009c4 <MX_USART1_UART_Init>
// Slowly blink built-in red light (test)
//HAL_GPIO_TogglePin(LD4_GPIO_Port, LD4_Pin);
//HAL_Delay(2000);
// userloop pleeease
breadboard(200);
80005ce: 20c8 movs r0, #200 @ 0xc8
80005d0: f7ff ffa4 bl 800051c <breadboard>
{
80005d4: bf00 nop
80005d6: e7fa b.n 80005ce <main+0x30>
080005d8 <SystemClock_Config>:
/**
* @brief System Clock Configuration
* @retval None
*/
void SystemClock_Config(void)
{
80005d8: b580 push {r7, lr}
80005da: b094 sub sp, #80 @ 0x50
80005dc: af00 add r7, sp, #0
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
80005de: f107 0320 add.w r3, r7, #32
80005e2: 2230 movs r2, #48 @ 0x30
80005e4: 2100 movs r1, #0
80005e6: 4618 mov r0, r3
80005e8: f007 fc52 bl 8007e90 <memset>
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
80005ec: f107 030c add.w r3, r7, #12
80005f0: 2200 movs r2, #0
80005f2: 601a str r2, [r3, #0]
80005f4: 605a str r2, [r3, #4]
80005f6: 609a str r2, [r3, #8]
80005f8: 60da str r2, [r3, #12]
80005fa: 611a str r2, [r3, #16]
/** Configure the main internal regulator output voltage
*/
__HAL_RCC_PWR_CLK_ENABLE();
80005fc: 2300 movs r3, #0
80005fe: 60bb str r3, [r7, #8]
8000600: 4b28 ldr r3, [pc, #160] @ (80006a4 <SystemClock_Config+0xcc>)
8000602: 6c1b ldr r3, [r3, #64] @ 0x40
8000604: 4a27 ldr r2, [pc, #156] @ (80006a4 <SystemClock_Config+0xcc>)
8000606: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
800060a: 6413 str r3, [r2, #64] @ 0x40
800060c: 4b25 ldr r3, [pc, #148] @ (80006a4 <SystemClock_Config+0xcc>)
800060e: 6c1b ldr r3, [r3, #64] @ 0x40
8000610: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
8000614: 60bb str r3, [r7, #8]
8000616: 68bb ldr r3, [r7, #8]
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3);
8000618: 2300 movs r3, #0
800061a: 607b str r3, [r7, #4]
800061c: 4b22 ldr r3, [pc, #136] @ (80006a8 <SystemClock_Config+0xd0>)
800061e: 681b ldr r3, [r3, #0]
8000620: f423 4340 bic.w r3, r3, #49152 @ 0xc000
8000624: 4a20 ldr r2, [pc, #128] @ (80006a8 <SystemClock_Config+0xd0>)
8000626: f443 4380 orr.w r3, r3, #16384 @ 0x4000
800062a: 6013 str r3, [r2, #0]
800062c: 4b1e ldr r3, [pc, #120] @ (80006a8 <SystemClock_Config+0xd0>)
800062e: 681b ldr r3, [r3, #0]
8000630: f403 4340 and.w r3, r3, #49152 @ 0xc000
8000634: 607b str r3, [r7, #4]
8000636: 687b ldr r3, [r7, #4]
/** Initializes the RCC Oscillators according to the specified parameters
* in the RCC_OscInitTypeDef structure.
*/
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
8000638: 2301 movs r3, #1
800063a: 623b str r3, [r7, #32]
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
800063c: f44f 3380 mov.w r3, #65536 @ 0x10000
8000640: 627b str r3, [r7, #36] @ 0x24
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
8000642: 2302 movs r3, #2
8000644: 63bb str r3, [r7, #56] @ 0x38
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
8000646: f44f 0380 mov.w r3, #4194304 @ 0x400000
800064a: 63fb str r3, [r7, #60] @ 0x3c
RCC_OscInitStruct.PLL.PLLM = 4;
800064c: 2304 movs r3, #4
800064e: 643b str r3, [r7, #64] @ 0x40
RCC_OscInitStruct.PLL.PLLN = 72;
8000650: 2348 movs r3, #72 @ 0x48
8000652: 647b str r3, [r7, #68] @ 0x44
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
8000654: 2302 movs r3, #2
8000656: 64bb str r3, [r7, #72] @ 0x48
RCC_OscInitStruct.PLL.PLLQ = 3;
8000658: 2303 movs r3, #3
800065a: 64fb str r3, [r7, #76] @ 0x4c
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
800065c: f107 0320 add.w r3, r7, #32
8000660: 4618 mov r0, r3
8000662: f003 ff61 bl 8004528 <HAL_RCC_OscConfig>
8000666: 4603 mov r3, r0
8000668: 2b00 cmp r3, #0
800066a: d001 beq.n 8000670 <SystemClock_Config+0x98>
{
Error_Handler();
800066c: f000 fb58 bl 8000d20 <Error_Handler>
}
/** Initializes the CPU, AHB and APB buses clocks
*/
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
8000670: 230f movs r3, #15
8000672: 60fb str r3, [r7, #12]
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
8000674: 2302 movs r3, #2
8000676: 613b str r3, [r7, #16]
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
8000678: 2300 movs r3, #0
800067a: 617b str r3, [r7, #20]
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2;
800067c: f44f 5380 mov.w r3, #4096 @ 0x1000
8000680: 61bb str r3, [r7, #24]
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
8000682: 2300 movs r3, #0
8000684: 61fb str r3, [r7, #28]
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
8000686: f107 030c add.w r3, r7, #12
800068a: 2102 movs r1, #2
800068c: 4618 mov r0, r3
800068e: f004 f9c3 bl 8004a18 <HAL_RCC_ClockConfig>
8000692: 4603 mov r3, r0
8000694: 2b00 cmp r3, #0
8000696: d001 beq.n 800069c <SystemClock_Config+0xc4>
{
Error_Handler();
8000698: f000 fb42 bl 8000d20 <Error_Handler>
}
}
800069c: bf00 nop
800069e: 3750 adds r7, #80 @ 0x50
80006a0: 46bd mov sp, r7
80006a2: bd80 pop {r7, pc}
80006a4: 40023800 .word 0x40023800
80006a8: 40007000 .word 0x40007000
080006ac <MX_CRC_Init>:
* @brief CRC Initialization Function
* @param None
* @retval None
*/
static void MX_CRC_Init(void)
{
80006ac: b580 push {r7, lr}
80006ae: af00 add r7, sp, #0
/* USER CODE END CRC_Init 0 */
/* USER CODE BEGIN CRC_Init 1 */
/* USER CODE END CRC_Init 1 */
hcrc.Instance = CRC;
80006b0: 4b06 ldr r3, [pc, #24] @ (80006cc <MX_CRC_Init+0x20>)
80006b2: 4a07 ldr r2, [pc, #28] @ (80006d0 <MX_CRC_Init+0x24>)
80006b4: 601a str r2, [r3, #0]
if (HAL_CRC_Init(&hcrc) != HAL_OK)
80006b6: 4805 ldr r0, [pc, #20] @ (80006cc <MX_CRC_Init+0x20>)
80006b8: f001 f8da bl 8001870 <HAL_CRC_Init>
80006bc: 4603 mov r3, r0
80006be: 2b00 cmp r3, #0
80006c0: d001 beq.n 80006c6 <MX_CRC_Init+0x1a>
{
Error_Handler();
80006c2: f000 fb2d bl 8000d20 <Error_Handler>
}
/* USER CODE BEGIN CRC_Init 2 */
/* USER CODE END CRC_Init 2 */
}
80006c6: bf00 nop
80006c8: bd80 pop {r7, pc}
80006ca: bf00 nop
80006cc: 2000002c .word 0x2000002c
80006d0: 40023000 .word 0x40023000
080006d4 <MX_DMA2D_Init>:
* @brief DMA2D Initialization Function
* @param None
* @retval None
*/
static void MX_DMA2D_Init(void)
{
80006d4: b580 push {r7, lr}
80006d6: af00 add r7, sp, #0
/* USER CODE END DMA2D_Init 0 */
/* USER CODE BEGIN DMA2D_Init 1 */
/* USER CODE END DMA2D_Init 1 */
hdma2d.Instance = DMA2D;
80006d8: 4b15 ldr r3, [pc, #84] @ (8000730 <MX_DMA2D_Init+0x5c>)
80006da: 4a16 ldr r2, [pc, #88] @ (8000734 <MX_DMA2D_Init+0x60>)
80006dc: 601a str r2, [r3, #0]
hdma2d.Init.Mode = DMA2D_M2M;
80006de: 4b14 ldr r3, [pc, #80] @ (8000730 <MX_DMA2D_Init+0x5c>)
80006e0: 2200 movs r2, #0
80006e2: 605a str r2, [r3, #4]
hdma2d.Init.ColorMode = DMA2D_OUTPUT_ARGB8888;
80006e4: 4b12 ldr r3, [pc, #72] @ (8000730 <MX_DMA2D_Init+0x5c>)
80006e6: 2200 movs r2, #0
80006e8: 609a str r2, [r3, #8]
hdma2d.Init.OutputOffset = 0;
80006ea: 4b11 ldr r3, [pc, #68] @ (8000730 <MX_DMA2D_Init+0x5c>)
80006ec: 2200 movs r2, #0
80006ee: 60da str r2, [r3, #12]
hdma2d.LayerCfg[1].InputOffset = 0;
80006f0: 4b0f ldr r3, [pc, #60] @ (8000730 <MX_DMA2D_Init+0x5c>)
80006f2: 2200 movs r2, #0
80006f4: 629a str r2, [r3, #40] @ 0x28
hdma2d.LayerCfg[1].InputColorMode = DMA2D_INPUT_ARGB8888;
80006f6: 4b0e ldr r3, [pc, #56] @ (8000730 <MX_DMA2D_Init+0x5c>)
80006f8: 2200 movs r2, #0
80006fa: 62da str r2, [r3, #44] @ 0x2c
hdma2d.LayerCfg[1].AlphaMode = DMA2D_NO_MODIF_ALPHA;
80006fc: 4b0c ldr r3, [pc, #48] @ (8000730 <MX_DMA2D_Init+0x5c>)
80006fe: 2200 movs r2, #0
8000700: 631a str r2, [r3, #48] @ 0x30
hdma2d.LayerCfg[1].InputAlpha = 0;
8000702: 4b0b ldr r3, [pc, #44] @ (8000730 <MX_DMA2D_Init+0x5c>)
8000704: 2200 movs r2, #0
8000706: 635a str r2, [r3, #52] @ 0x34
if (HAL_DMA2D_Init(&hdma2d) != HAL_OK)
8000708: 4809 ldr r0, [pc, #36] @ (8000730 <MX_DMA2D_Init+0x5c>)
800070a: f001 f8cd bl 80018a8 <HAL_DMA2D_Init>
800070e: 4603 mov r3, r0
8000710: 2b00 cmp r3, #0
8000712: d001 beq.n 8000718 <MX_DMA2D_Init+0x44>
{
Error_Handler();
8000714: f000 fb04 bl 8000d20 <Error_Handler>
}
if (HAL_DMA2D_ConfigLayer(&hdma2d, 1) != HAL_OK)
8000718: 2101 movs r1, #1
800071a: 4805 ldr r0, [pc, #20] @ (8000730 <MX_DMA2D_Init+0x5c>)
800071c: f001 fa1e bl 8001b5c <HAL_DMA2D_ConfigLayer>
8000720: 4603 mov r3, r0
8000722: 2b00 cmp r3, #0
8000724: d001 beq.n 800072a <MX_DMA2D_Init+0x56>
{
Error_Handler();
8000726: f000 fafb bl 8000d20 <Error_Handler>
}
/* USER CODE BEGIN DMA2D_Init 2 */
/* USER CODE END DMA2D_Init 2 */
}
800072a: bf00 nop
800072c: bd80 pop {r7, pc}
800072e: bf00 nop
8000730: 20000034 .word 0x20000034
8000734: 4002b000 .word 0x4002b000
08000738 <MX_I2C3_Init>:
* @brief I2C3 Initialization Function
* @param None
* @retval None
*/
static void MX_I2C3_Init(void)
{
8000738: b580 push {r7, lr}
800073a: af00 add r7, sp, #0
/* USER CODE END I2C3_Init 0 */
/* USER CODE BEGIN I2C3_Init 1 */
/* USER CODE END I2C3_Init 1 */
hi2c3.Instance = I2C3;
800073c: 4b1b ldr r3, [pc, #108] @ (80007ac <MX_I2C3_Init+0x74>)
800073e: 4a1c ldr r2, [pc, #112] @ (80007b0 <MX_I2C3_Init+0x78>)
8000740: 601a str r2, [r3, #0]
hi2c3.Init.ClockSpeed = 100000;
8000742: 4b1a ldr r3, [pc, #104] @ (80007ac <MX_I2C3_Init+0x74>)
8000744: 4a1b ldr r2, [pc, #108] @ (80007b4 <MX_I2C3_Init+0x7c>)
8000746: 605a str r2, [r3, #4]
hi2c3.Init.DutyCycle = I2C_DUTYCYCLE_2;
8000748: 4b18 ldr r3, [pc, #96] @ (80007ac <MX_I2C3_Init+0x74>)
800074a: 2200 movs r2, #0
800074c: 609a str r2, [r3, #8]
hi2c3.Init.OwnAddress1 = 0;
800074e: 4b17 ldr r3, [pc, #92] @ (80007ac <MX_I2C3_Init+0x74>)
8000750: 2200 movs r2, #0
8000752: 60da str r2, [r3, #12]
hi2c3.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
8000754: 4b15 ldr r3, [pc, #84] @ (80007ac <MX_I2C3_Init+0x74>)
8000756: f44f 4280 mov.w r2, #16384 @ 0x4000
800075a: 611a str r2, [r3, #16]
hi2c3.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
800075c: 4b13 ldr r3, [pc, #76] @ (80007ac <MX_I2C3_Init+0x74>)
800075e: 2200 movs r2, #0
8000760: 615a str r2, [r3, #20]
hi2c3.Init.OwnAddress2 = 0;
8000762: 4b12 ldr r3, [pc, #72] @ (80007ac <MX_I2C3_Init+0x74>)
8000764: 2200 movs r2, #0
8000766: 619a str r2, [r3, #24]
hi2c3.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
8000768: 4b10 ldr r3, [pc, #64] @ (80007ac <MX_I2C3_Init+0x74>)
800076a: 2200 movs r2, #0
800076c: 61da str r2, [r3, #28]
hi2c3.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
800076e: 4b0f ldr r3, [pc, #60] @ (80007ac <MX_I2C3_Init+0x74>)
8000770: 2200 movs r2, #0
8000772: 621a str r2, [r3, #32]
if (HAL_I2C_Init(&hi2c3) != HAL_OK)
8000774: 480d ldr r0, [pc, #52] @ (80007ac <MX_I2C3_Init+0x74>)
8000776: f003 fa07 bl 8003b88 <HAL_I2C_Init>
800077a: 4603 mov r3, r0
800077c: 2b00 cmp r3, #0
800077e: d001 beq.n 8000784 <MX_I2C3_Init+0x4c>
{
Error_Handler();
8000780: f000 face bl 8000d20 <Error_Handler>
}
/** Configure Analogue filter
*/
if (HAL_I2CEx_ConfigAnalogFilter(&hi2c3, I2C_ANALOGFILTER_ENABLE) != HAL_OK)
8000784: 2100 movs r1, #0
8000786: 4809 ldr r0, [pc, #36] @ (80007ac <MX_I2C3_Init+0x74>)
8000788: f003 fb42 bl 8003e10 <HAL_I2CEx_ConfigAnalogFilter>
800078c: 4603 mov r3, r0
800078e: 2b00 cmp r3, #0
8000790: d001 beq.n 8000796 <MX_I2C3_Init+0x5e>
{
Error_Handler();
8000792: f000 fac5 bl 8000d20 <Error_Handler>
}
/** Configure Digital filter
*/
if (HAL_I2CEx_ConfigDigitalFilter(&hi2c3, 0) != HAL_OK)
8000796: 2100 movs r1, #0
8000798: 4804 ldr r0, [pc, #16] @ (80007ac <MX_I2C3_Init+0x74>)
800079a: f003 fb75 bl 8003e88 <HAL_I2CEx_ConfigDigitalFilter>
800079e: 4603 mov r3, r0
80007a0: 2b00 cmp r3, #0
80007a2: d001 beq.n 80007a8 <MX_I2C3_Init+0x70>
{
Error_Handler();
80007a4: f000 fabc bl 8000d20 <Error_Handler>
}
/* USER CODE BEGIN I2C3_Init 2 */
/* USER CODE END I2C3_Init 2 */
}
80007a8: bf00 nop
80007aa: bd80 pop {r7, pc}
80007ac: 20000074 .word 0x20000074
80007b0: 40005c00 .word 0x40005c00
80007b4: 000186a0 .word 0x000186a0
080007b8 <MX_LTDC_Init>:
* @brief LTDC Initialization Function
* @param None
* @retval None
*/
static void MX_LTDC_Init(void)
{
80007b8: b580 push {r7, lr}
80007ba: b08e sub sp, #56 @ 0x38
80007bc: af00 add r7, sp, #0
/* USER CODE BEGIN LTDC_Init 0 */
/* USER CODE END LTDC_Init 0 */
LTDC_LayerCfgTypeDef pLayerCfg = {0};
80007be: 1d3b adds r3, r7, #4
80007c0: 2234 movs r2, #52 @ 0x34
80007c2: 2100 movs r1, #0
80007c4: 4618 mov r0, r3
80007c6: f007 fb63 bl 8007e90 <memset>
/* USER CODE BEGIN LTDC_Init 1 */
/* USER CODE END LTDC_Init 1 */
hltdc.Instance = LTDC;
80007ca: 4b39 ldr r3, [pc, #228] @ (80008b0 <MX_LTDC_Init+0xf8>)
80007cc: 4a39 ldr r2, [pc, #228] @ (80008b4 <MX_LTDC_Init+0xfc>)
80007ce: 601a str r2, [r3, #0]
hltdc.Init.HSPolarity = LTDC_HSPOLARITY_AL;
80007d0: 4b37 ldr r3, [pc, #220] @ (80008b0 <MX_LTDC_Init+0xf8>)
80007d2: 2200 movs r2, #0
80007d4: 605a str r2, [r3, #4]
hltdc.Init.VSPolarity = LTDC_VSPOLARITY_AL;
80007d6: 4b36 ldr r3, [pc, #216] @ (80008b0 <MX_LTDC_Init+0xf8>)
80007d8: 2200 movs r2, #0
80007da: 609a str r2, [r3, #8]
hltdc.Init.DEPolarity = LTDC_DEPOLARITY_AL;
80007dc: 4b34 ldr r3, [pc, #208] @ (80008b0 <MX_LTDC_Init+0xf8>)
80007de: 2200 movs r2, #0
80007e0: 60da str r2, [r3, #12]
hltdc.Init.PCPolarity = LTDC_PCPOLARITY_IPC;
80007e2: 4b33 ldr r3, [pc, #204] @ (80008b0 <MX_LTDC_Init+0xf8>)
80007e4: 2200 movs r2, #0
80007e6: 611a str r2, [r3, #16]
hltdc.Init.HorizontalSync = 9;
80007e8: 4b31 ldr r3, [pc, #196] @ (80008b0 <MX_LTDC_Init+0xf8>)
80007ea: 2209 movs r2, #9
80007ec: 615a str r2, [r3, #20]
hltdc.Init.VerticalSync = 1;
80007ee: 4b30 ldr r3, [pc, #192] @ (80008b0 <MX_LTDC_Init+0xf8>)
80007f0: 2201 movs r2, #1
80007f2: 619a str r2, [r3, #24]
hltdc.Init.AccumulatedHBP = 29;
80007f4: 4b2e ldr r3, [pc, #184] @ (80008b0 <MX_LTDC_Init+0xf8>)
80007f6: 221d movs r2, #29
80007f8: 61da str r2, [r3, #28]
hltdc.Init.AccumulatedVBP = 3;
80007fa: 4b2d ldr r3, [pc, #180] @ (80008b0 <MX_LTDC_Init+0xf8>)
80007fc: 2203 movs r2, #3
80007fe: 621a str r2, [r3, #32]
hltdc.Init.AccumulatedActiveW = 269;
8000800: 4b2b ldr r3, [pc, #172] @ (80008b0 <MX_LTDC_Init+0xf8>)
8000802: f240 120d movw r2, #269 @ 0x10d
8000806: 625a str r2, [r3, #36] @ 0x24
hltdc.Init.AccumulatedActiveH = 323;
8000808: 4b29 ldr r3, [pc, #164] @ (80008b0 <MX_LTDC_Init+0xf8>)
800080a: f240 1243 movw r2, #323 @ 0x143
800080e: 629a str r2, [r3, #40] @ 0x28
hltdc.Init.TotalWidth = 279;
8000810: 4b27 ldr r3, [pc, #156] @ (80008b0 <MX_LTDC_Init+0xf8>)
8000812: f240 1217 movw r2, #279 @ 0x117
8000816: 62da str r2, [r3, #44] @ 0x2c
hltdc.Init.TotalHeigh = 327;
8000818: 4b25 ldr r3, [pc, #148] @ (80008b0 <MX_LTDC_Init+0xf8>)
800081a: f240 1247 movw r2, #327 @ 0x147
800081e: 631a str r2, [r3, #48] @ 0x30
hltdc.Init.Backcolor.Blue = 0;
8000820: 4b23 ldr r3, [pc, #140] @ (80008b0 <MX_LTDC_Init+0xf8>)
8000822: 2200 movs r2, #0
8000824: f883 2034 strb.w r2, [r3, #52] @ 0x34
hltdc.Init.Backcolor.Green = 0;
8000828: 4b21 ldr r3, [pc, #132] @ (80008b0 <MX_LTDC_Init+0xf8>)
800082a: 2200 movs r2, #0
800082c: f883 2035 strb.w r2, [r3, #53] @ 0x35
hltdc.Init.Backcolor.Red = 0;
8000830: 4b1f ldr r3, [pc, #124] @ (80008b0 <MX_LTDC_Init+0xf8>)
8000832: 2200 movs r2, #0
8000834: f883 2036 strb.w r2, [r3, #54] @ 0x36
if (HAL_LTDC_Init(&hltdc) != HAL_OK)
8000838: 481d ldr r0, [pc, #116] @ (80008b0 <MX_LTDC_Init+0xf8>)
800083a: f003 fb64 bl 8003f06 <HAL_LTDC_Init>
800083e: 4603 mov r3, r0
8000840: 2b00 cmp r3, #0
8000842: d001 beq.n 8000848 <MX_LTDC_Init+0x90>
{
Error_Handler();
8000844: f000 fa6c bl 8000d20 <Error_Handler>
}
pLayerCfg.WindowX0 = 0;
8000848: 2300 movs r3, #0
800084a: 607b str r3, [r7, #4]
pLayerCfg.WindowX1 = 240;
800084c: 23f0 movs r3, #240 @ 0xf0
800084e: 60bb str r3, [r7, #8]
pLayerCfg.WindowY0 = 0;
8000850: 2300 movs r3, #0
8000852: 60fb str r3, [r7, #12]
pLayerCfg.WindowY1 = 320;
8000854: f44f 73a0 mov.w r3, #320 @ 0x140
8000858: 613b str r3, [r7, #16]
pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_RGB565;
800085a: 2302 movs r3, #2
800085c: 617b str r3, [r7, #20]
pLayerCfg.Alpha = 255;
800085e: 23ff movs r3, #255 @ 0xff
8000860: 61bb str r3, [r7, #24]
pLayerCfg.Alpha0 = 0;
8000862: 2300 movs r3, #0
8000864: 61fb str r3, [r7, #28]
pLayerCfg.BlendingFactor1 = LTDC_BLENDING_FACTOR1_PAxCA;
8000866: f44f 63c0 mov.w r3, #1536 @ 0x600
800086a: 623b str r3, [r7, #32]
pLayerCfg.BlendingFactor2 = LTDC_BLENDING_FACTOR2_PAxCA;
800086c: 2307 movs r3, #7
800086e: 627b str r3, [r7, #36] @ 0x24
pLayerCfg.FBStartAdress = 0xD0000000;
8000870: f04f 4350 mov.w r3, #3489660928 @ 0xd0000000
8000874: 62bb str r3, [r7, #40] @ 0x28
pLayerCfg.ImageWidth = 240;
8000876: 23f0 movs r3, #240 @ 0xf0
8000878: 62fb str r3, [r7, #44] @ 0x2c
pLayerCfg.ImageHeight = 320;
800087a: f44f 73a0 mov.w r3, #320 @ 0x140
800087e: 633b str r3, [r7, #48] @ 0x30
pLayerCfg.Backcolor.Blue = 0;
8000880: 2300 movs r3, #0
8000882: f887 3034 strb.w r3, [r7, #52] @ 0x34
pLayerCfg.Backcolor.Green = 0;
8000886: 2300 movs r3, #0
8000888: f887 3035 strb.w r3, [r7, #53] @ 0x35
pLayerCfg.Backcolor.Red = 0;
800088c: 2300 movs r3, #0
800088e: f887 3036 strb.w r3, [r7, #54] @ 0x36
if (HAL_LTDC_ConfigLayer(&hltdc, &pLayerCfg, 0) != HAL_OK)
8000892: 1d3b adds r3, r7, #4
8000894: 2200 movs r2, #0
8000896: 4619 mov r1, r3
8000898: 4805 ldr r0, [pc, #20] @ (80008b0 <MX_LTDC_Init+0xf8>)
800089a: f003 fc93 bl 80041c4 <HAL_LTDC_ConfigLayer>
800089e: 4603 mov r3, r0
80008a0: 2b00 cmp r3, #0
80008a2: d001 beq.n 80008a8 <MX_LTDC_Init+0xf0>
{
Error_Handler();
80008a4: f000 fa3c bl 8000d20 <Error_Handler>
}
/* USER CODE BEGIN LTDC_Init 2 */
/* USER CODE END LTDC_Init 2 */
}
80008a8: bf00 nop
80008aa: 3738 adds r7, #56 @ 0x38
80008ac: 46bd mov sp, r7
80008ae: bd80 pop {r7, pc}
80008b0: 200000c8 .word 0x200000c8
80008b4: 40016800 .word 0x40016800
080008b8 <MX_SPI5_Init>:
* @brief SPI5 Initialization Function
* @param None
* @retval None
*/
static void MX_SPI5_Init(void)
{
80008b8: b580 push {r7, lr}
80008ba: af00 add r7, sp, #0
/* USER CODE BEGIN SPI5_Init 1 */
/* USER CODE END SPI5_Init 1 */
/* SPI5 parameter configuration*/
hspi5.Instance = SPI5;
80008bc: 4b17 ldr r3, [pc, #92] @ (800091c <MX_SPI5_Init+0x64>)
80008be: 4a18 ldr r2, [pc, #96] @ (8000920 <MX_SPI5_Init+0x68>)
80008c0: 601a str r2, [r3, #0]
hspi5.Init.Mode = SPI_MODE_MASTER;
80008c2: 4b16 ldr r3, [pc, #88] @ (800091c <MX_SPI5_Init+0x64>)
80008c4: f44f 7282 mov.w r2, #260 @ 0x104
80008c8: 605a str r2, [r3, #4]
hspi5.Init.Direction = SPI_DIRECTION_2LINES;
80008ca: 4b14 ldr r3, [pc, #80] @ (800091c <MX_SPI5_Init+0x64>)
80008cc: 2200 movs r2, #0
80008ce: 609a str r2, [r3, #8]
hspi5.Init.DataSize = SPI_DATASIZE_8BIT;
80008d0: 4b12 ldr r3, [pc, #72] @ (800091c <MX_SPI5_Init+0x64>)
80008d2: 2200 movs r2, #0
80008d4: 60da str r2, [r3, #12]
hspi5.Init.CLKPolarity = SPI_POLARITY_LOW;
80008d6: 4b11 ldr r3, [pc, #68] @ (800091c <MX_SPI5_Init+0x64>)
80008d8: 2200 movs r2, #0
80008da: 611a str r2, [r3, #16]
hspi5.Init.CLKPhase = SPI_PHASE_1EDGE;
80008dc: 4b0f ldr r3, [pc, #60] @ (800091c <MX_SPI5_Init+0x64>)
80008de: 2200 movs r2, #0
80008e0: 615a str r2, [r3, #20]
hspi5.Init.NSS = SPI_NSS_SOFT;
80008e2: 4b0e ldr r3, [pc, #56] @ (800091c <MX_SPI5_Init+0x64>)
80008e4: f44f 7200 mov.w r2, #512 @ 0x200
80008e8: 619a str r2, [r3, #24]
hspi5.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_16;
80008ea: 4b0c ldr r3, [pc, #48] @ (800091c <MX_SPI5_Init+0x64>)
80008ec: 2218 movs r2, #24
80008ee: 61da str r2, [r3, #28]
hspi5.Init.FirstBit = SPI_FIRSTBIT_MSB;
80008f0: 4b0a ldr r3, [pc, #40] @ (800091c <MX_SPI5_Init+0x64>)
80008f2: 2200 movs r2, #0
80008f4: 621a str r2, [r3, #32]
hspi5.Init.TIMode = SPI_TIMODE_DISABLE;
80008f6: 4b09 ldr r3, [pc, #36] @ (800091c <MX_SPI5_Init+0x64>)
80008f8: 2200 movs r2, #0
80008fa: 625a str r2, [r3, #36] @ 0x24
hspi5.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
80008fc: 4b07 ldr r3, [pc, #28] @ (800091c <MX_SPI5_Init+0x64>)
80008fe: 2200 movs r2, #0
8000900: 629a str r2, [r3, #40] @ 0x28
hspi5.Init.CRCPolynomial = 10;
8000902: 4b06 ldr r3, [pc, #24] @ (800091c <MX_SPI5_Init+0x64>)
8000904: 220a movs r2, #10
8000906: 62da str r2, [r3, #44] @ 0x2c
if (HAL_SPI_Init(&hspi5) != HAL_OK)
8000908: 4804 ldr r0, [pc, #16] @ (800091c <MX_SPI5_Init+0x64>)
800090a: f004 fccb bl 80052a4 <HAL_SPI_Init>
800090e: 4603 mov r3, r0
8000910: 2b00 cmp r3, #0
8000912: d001 beq.n 8000918 <MX_SPI5_Init+0x60>
{
Error_Handler();
8000914: f000 fa04 bl 8000d20 <Error_Handler>
}
/* USER CODE BEGIN SPI5_Init 2 */
/* USER CODE END SPI5_Init 2 */
}
8000918: bf00 nop
800091a: bd80 pop {r7, pc}
800091c: 20000170 .word 0x20000170
8000920: 40015000 .word 0x40015000
08000924 <MX_TIM1_Init>:
* @brief TIM1 Initialization Function
* @param None
* @retval None
*/
static void MX_TIM1_Init(void)
{
8000924: b580 push {r7, lr}
8000926: b086 sub sp, #24
8000928: af00 add r7, sp, #0
/* USER CODE BEGIN TIM1_Init 0 */
/* USER CODE END TIM1_Init 0 */
TIM_ClockConfigTypeDef sClockSourceConfig = {0};
800092a: f107 0308 add.w r3, r7, #8
800092e: 2200 movs r2, #0
8000930: 601a str r2, [r3, #0]
8000932: 605a str r2, [r3, #4]
8000934: 609a str r2, [r3, #8]
8000936: 60da str r2, [r3, #12]
TIM_MasterConfigTypeDef sMasterConfig = {0};
8000938: 463b mov r3, r7
800093a: 2200 movs r2, #0
800093c: 601a str r2, [r3, #0]
800093e: 605a str r2, [r3, #4]
/* USER CODE BEGIN TIM1_Init 1 */
/* USER CODE END TIM1_Init 1 */
htim1.Instance = TIM1;
8000940: 4b1e ldr r3, [pc, #120] @ (80009bc <MX_TIM1_Init+0x98>)
8000942: 4a1f ldr r2, [pc, #124] @ (80009c0 <MX_TIM1_Init+0x9c>)
8000944: 601a str r2, [r3, #0]
htim1.Init.Prescaler = 0;
8000946: 4b1d ldr r3, [pc, #116] @ (80009bc <MX_TIM1_Init+0x98>)
8000948: 2200 movs r2, #0
800094a: 605a str r2, [r3, #4]
htim1.Init.CounterMode = TIM_COUNTERMODE_UP;
800094c: 4b1b ldr r3, [pc, #108] @ (80009bc <MX_TIM1_Init+0x98>)
800094e: 2200 movs r2, #0
8000950: 609a str r2, [r3, #8]
htim1.Init.Period = 65535;
8000952: 4b1a ldr r3, [pc, #104] @ (80009bc <MX_TIM1_Init+0x98>)
8000954: f64f 72ff movw r2, #65535 @ 0xffff
8000958: 60da str r2, [r3, #12]
htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
800095a: 4b18 ldr r3, [pc, #96] @ (80009bc <MX_TIM1_Init+0x98>)
800095c: 2200 movs r2, #0
800095e: 611a str r2, [r3, #16]
htim1.Init.RepetitionCounter = 0;
8000960: 4b16 ldr r3, [pc, #88] @ (80009bc <MX_TIM1_Init+0x98>)
8000962: 2200 movs r2, #0
8000964: 615a str r2, [r3, #20]
htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
8000966: 4b15 ldr r3, [pc, #84] @ (80009bc <MX_TIM1_Init+0x98>)
8000968: 2200 movs r2, #0
800096a: 619a str r2, [r3, #24]
if (HAL_TIM_Base_Init(&htim1) != HAL_OK)
800096c: 4813 ldr r0, [pc, #76] @ (80009bc <MX_TIM1_Init+0x98>)
800096e: f004 fd22 bl 80053b6 <HAL_TIM_Base_Init>
8000972: 4603 mov r3, r0
8000974: 2b00 cmp r3, #0
8000976: d001 beq.n 800097c <MX_TIM1_Init+0x58>
{
Error_Handler();
8000978: f000 f9d2 bl 8000d20 <Error_Handler>
}
sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
800097c: f44f 5380 mov.w r3, #4096 @ 0x1000
8000980: 60bb str r3, [r7, #8]
if (HAL_TIM_ConfigClockSource(&htim1, &sClockSourceConfig) != HAL_OK)
8000982: f107 0308 add.w r3, r7, #8
8000986: 4619 mov r1, r3
8000988: 480c ldr r0, [pc, #48] @ (80009bc <MX_TIM1_Init+0x98>)
800098a: f004 fec3 bl 8005714 <HAL_TIM_ConfigClockSource>
800098e: 4603 mov r3, r0
8000990: 2b00 cmp r3, #0
8000992: d001 beq.n 8000998 <MX_TIM1_Init+0x74>
{
Error_Handler();
8000994: f000 f9c4 bl 8000d20 <Error_Handler>
}
sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
8000998: 2300 movs r3, #0
800099a: 603b str r3, [r7, #0]
sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
800099c: 2300 movs r3, #0
800099e: 607b str r3, [r7, #4]
if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK)
80009a0: 463b mov r3, r7
80009a2: 4619 mov r1, r3
80009a4: 4805 ldr r0, [pc, #20] @ (80009bc <MX_TIM1_Init+0x98>)
80009a6: f005 f8e5 bl 8005b74 <HAL_TIMEx_MasterConfigSynchronization>
80009aa: 4603 mov r3, r0
80009ac: 2b00 cmp r3, #0
80009ae: d001 beq.n 80009b4 <MX_TIM1_Init+0x90>
{
Error_Handler();
80009b0: f000 f9b6 bl 8000d20 <Error_Handler>
}
/* USER CODE BEGIN TIM1_Init 2 */
/* USER CODE END TIM1_Init 2 */
}
80009b4: bf00 nop
80009b6: 3718 adds r7, #24
80009b8: 46bd mov sp, r7
80009ba: bd80 pop {r7, pc}
80009bc: 200001c8 .word 0x200001c8
80009c0: 40010000 .word 0x40010000
080009c4 <MX_USART1_UART_Init>:
* @brief USART1 Initialization Function
* @param None
* @retval None
*/
static void MX_USART1_UART_Init(void)
{
80009c4: b580 push {r7, lr}
80009c6: 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;
80009c8: 4b11 ldr r3, [pc, #68] @ (8000a10 <MX_USART1_UART_Init+0x4c>)
80009ca: 4a12 ldr r2, [pc, #72] @ (8000a14 <MX_USART1_UART_Init+0x50>)
80009cc: 601a str r2, [r3, #0]
huart1.Init.BaudRate = 115200;
80009ce: 4b10 ldr r3, [pc, #64] @ (8000a10 <MX_USART1_UART_Init+0x4c>)
80009d0: f44f 32e1 mov.w r2, #115200 @ 0x1c200
80009d4: 605a str r2, [r3, #4]
huart1.Init.WordLength = UART_WORDLENGTH_8B;
80009d6: 4b0e ldr r3, [pc, #56] @ (8000a10 <MX_USART1_UART_Init+0x4c>)
80009d8: 2200 movs r2, #0
80009da: 609a str r2, [r3, #8]
huart1.Init.StopBits = UART_STOPBITS_1;
80009dc: 4b0c ldr r3, [pc, #48] @ (8000a10 <MX_USART1_UART_Init+0x4c>)
80009de: 2200 movs r2, #0
80009e0: 60da str r2, [r3, #12]
huart1.Init.Parity = UART_PARITY_NONE;
80009e2: 4b0b ldr r3, [pc, #44] @ (8000a10 <MX_USART1_UART_Init+0x4c>)
80009e4: 2200 movs r2, #0
80009e6: 611a str r2, [r3, #16]
huart1.Init.Mode = UART_MODE_TX_RX;
80009e8: 4b09 ldr r3, [pc, #36] @ (8000a10 <MX_USART1_UART_Init+0x4c>)
80009ea: 220c movs r2, #12
80009ec: 615a str r2, [r3, #20]
huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
80009ee: 4b08 ldr r3, [pc, #32] @ (8000a10 <MX_USART1_UART_Init+0x4c>)
80009f0: 2200 movs r2, #0
80009f2: 619a str r2, [r3, #24]
huart1.Init.OverSampling = UART_OVERSAMPLING_16;
80009f4: 4b06 ldr r3, [pc, #24] @ (8000a10 <MX_USART1_UART_Init+0x4c>)
80009f6: 2200 movs r2, #0
80009f8: 61da str r2, [r3, #28]
if (HAL_UART_Init(&huart1) != HAL_OK)
80009fa: 4805 ldr r0, [pc, #20] @ (8000a10 <MX_USART1_UART_Init+0x4c>)
80009fc: f005 f94a bl 8005c94 <HAL_UART_Init>
8000a00: 4603 mov r3, r0
8000a02: 2b00 cmp r3, #0
8000a04: d001 beq.n 8000a0a <MX_USART1_UART_Init+0x46>
{
Error_Handler();
8000a06: f000 f98b bl 8000d20 <Error_Handler>
}
/* USER CODE BEGIN USART1_Init 2 */
/* USER CODE END USART1_Init 2 */
}
8000a0a: bf00 nop
8000a0c: bd80 pop {r7, pc}
8000a0e: bf00 nop
8000a10: 20000210 .word 0x20000210
8000a14: 40011000 .word 0x40011000
08000a18 <MX_FMC_Init>:
/* FMC initialization function */
static void MX_FMC_Init(void)
{
8000a18: b580 push {r7, lr}
8000a1a: b088 sub sp, #32
8000a1c: af00 add r7, sp, #0
/* USER CODE BEGIN FMC_Init 0 */
/* USER CODE END FMC_Init 0 */
FMC_SDRAM_TimingTypeDef SdramTiming = {0};
8000a1e: 1d3b adds r3, r7, #4
8000a20: 2200 movs r2, #0
8000a22: 601a str r2, [r3, #0]
8000a24: 605a str r2, [r3, #4]
8000a26: 609a str r2, [r3, #8]
8000a28: 60da str r2, [r3, #12]
8000a2a: 611a str r2, [r3, #16]
8000a2c: 615a str r2, [r3, #20]
8000a2e: 619a str r2, [r3, #24]
/* USER CODE END FMC_Init 1 */
/** Perform the SDRAM1 memory initialization sequence
*/
hsdram1.Instance = FMC_SDRAM_DEVICE;
8000a30: 4b1f ldr r3, [pc, #124] @ (8000ab0 <MX_FMC_Init+0x98>)
8000a32: 4a20 ldr r2, [pc, #128] @ (8000ab4 <MX_FMC_Init+0x9c>)
8000a34: 601a str r2, [r3, #0]
/* hsdram1.Init */
hsdram1.Init.SDBank = FMC_SDRAM_BANK2;
8000a36: 4b1e ldr r3, [pc, #120] @ (8000ab0 <MX_FMC_Init+0x98>)
8000a38: 2201 movs r2, #1
8000a3a: 605a str r2, [r3, #4]
hsdram1.Init.ColumnBitsNumber = FMC_SDRAM_COLUMN_BITS_NUM_8;
8000a3c: 4b1c ldr r3, [pc, #112] @ (8000ab0 <MX_FMC_Init+0x98>)
8000a3e: 2200 movs r2, #0
8000a40: 609a str r2, [r3, #8]
hsdram1.Init.RowBitsNumber = FMC_SDRAM_ROW_BITS_NUM_12;
8000a42: 4b1b ldr r3, [pc, #108] @ (8000ab0 <MX_FMC_Init+0x98>)
8000a44: 2204 movs r2, #4
8000a46: 60da str r2, [r3, #12]
hsdram1.Init.MemoryDataWidth = FMC_SDRAM_MEM_BUS_WIDTH_16;
8000a48: 4b19 ldr r3, [pc, #100] @ (8000ab0 <MX_FMC_Init+0x98>)
8000a4a: 2210 movs r2, #16
8000a4c: 611a str r2, [r3, #16]
hsdram1.Init.InternalBankNumber = FMC_SDRAM_INTERN_BANKS_NUM_4;
8000a4e: 4b18 ldr r3, [pc, #96] @ (8000ab0 <MX_FMC_Init+0x98>)
8000a50: 2240 movs r2, #64 @ 0x40
8000a52: 615a str r2, [r3, #20]
hsdram1.Init.CASLatency = FMC_SDRAM_CAS_LATENCY_3;
8000a54: 4b16 ldr r3, [pc, #88] @ (8000ab0 <MX_FMC_Init+0x98>)
8000a56: f44f 72c0 mov.w r2, #384 @ 0x180
8000a5a: 619a str r2, [r3, #24]
hsdram1.Init.WriteProtection = FMC_SDRAM_WRITE_PROTECTION_DISABLE;
8000a5c: 4b14 ldr r3, [pc, #80] @ (8000ab0 <MX_FMC_Init+0x98>)
8000a5e: 2200 movs r2, #0
8000a60: 61da str r2, [r3, #28]
hsdram1.Init.SDClockPeriod = FMC_SDRAM_CLOCK_PERIOD_2;
8000a62: 4b13 ldr r3, [pc, #76] @ (8000ab0 <MX_FMC_Init+0x98>)
8000a64: f44f 6200 mov.w r2, #2048 @ 0x800
8000a68: 621a str r2, [r3, #32]
hsdram1.Init.ReadBurst = FMC_SDRAM_RBURST_DISABLE;
8000a6a: 4b11 ldr r3, [pc, #68] @ (8000ab0 <MX_FMC_Init+0x98>)
8000a6c: 2200 movs r2, #0
8000a6e: 625a str r2, [r3, #36] @ 0x24
hsdram1.Init.ReadPipeDelay = FMC_SDRAM_RPIPE_DELAY_1;
8000a70: 4b0f ldr r3, [pc, #60] @ (8000ab0 <MX_FMC_Init+0x98>)
8000a72: f44f 5200 mov.w r2, #8192 @ 0x2000
8000a76: 629a str r2, [r3, #40] @ 0x28
/* SdramTiming */
SdramTiming.LoadToActiveDelay = 2;
8000a78: 2302 movs r3, #2
8000a7a: 607b str r3, [r7, #4]
SdramTiming.ExitSelfRefreshDelay = 7;
8000a7c: 2307 movs r3, #7
8000a7e: 60bb str r3, [r7, #8]
SdramTiming.SelfRefreshTime = 4;
8000a80: 2304 movs r3, #4
8000a82: 60fb str r3, [r7, #12]
SdramTiming.RowCycleDelay = 7;
8000a84: 2307 movs r3, #7
8000a86: 613b str r3, [r7, #16]
SdramTiming.WriteRecoveryTime = 3;
8000a88: 2303 movs r3, #3
8000a8a: 617b str r3, [r7, #20]
SdramTiming.RPDelay = 2;
8000a8c: 2302 movs r3, #2
8000a8e: 61bb str r3, [r7, #24]
SdramTiming.RCDDelay = 2;
8000a90: 2302 movs r3, #2
8000a92: 61fb str r3, [r7, #28]
if (HAL_SDRAM_Init(&hsdram1, &SdramTiming) != HAL_OK)
8000a94: 1d3b adds r3, r7, #4
8000a96: 4619 mov r1, r3
8000a98: 4805 ldr r0, [pc, #20] @ (8000ab0 <MX_FMC_Init+0x98>)
8000a9a: f004 fbcf bl 800523c <HAL_SDRAM_Init>
8000a9e: 4603 mov r3, r0
8000aa0: 2b00 cmp r3, #0
8000aa2: d001 beq.n 8000aa8 <MX_FMC_Init+0x90>
{
Error_Handler( );
8000aa4: f000 f93c bl 8000d20 <Error_Handler>
}
/* USER CODE BEGIN FMC_Init 2 */
/* USER CODE END FMC_Init 2 */
}
8000aa8: bf00 nop
8000aaa: 3720 adds r7, #32
8000aac: 46bd mov sp, r7
8000aae: bd80 pop {r7, pc}
8000ab0: 20000258 .word 0x20000258
8000ab4: a0000140 .word 0xa0000140
08000ab8 <MX_GPIO_Init>:
* @brief GPIO Initialization Function
* @param None
* @retval None
*/
static void MX_GPIO_Init(void)
{
8000ab8: b580 push {r7, lr}
8000aba: b08e sub sp, #56 @ 0x38
8000abc: af00 add r7, sp, #0
GPIO_InitTypeDef GPIO_InitStruct = {0};
8000abe: f107 0324 add.w r3, r7, #36 @ 0x24
8000ac2: 2200 movs r2, #0
8000ac4: 601a str r2, [r3, #0]
8000ac6: 605a str r2, [r3, #4]
8000ac8: 609a str r2, [r3, #8]
8000aca: 60da str r2, [r3, #12]
8000acc: 611a str r2, [r3, #16]
/* USER CODE BEGIN MX_GPIO_Init_1 */
/* USER CODE END MX_GPIO_Init_1 */
/* GPIO Ports Clock Enable */
__HAL_RCC_GPIOC_CLK_ENABLE();
8000ace: 2300 movs r3, #0
8000ad0: 623b str r3, [r7, #32]
8000ad2: 4b84 ldr r3, [pc, #528] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000ad4: 6b1b ldr r3, [r3, #48] @ 0x30
8000ad6: 4a83 ldr r2, [pc, #524] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000ad8: f043 0304 orr.w r3, r3, #4
8000adc: 6313 str r3, [r2, #48] @ 0x30
8000ade: 4b81 ldr r3, [pc, #516] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000ae0: 6b1b ldr r3, [r3, #48] @ 0x30
8000ae2: f003 0304 and.w r3, r3, #4
8000ae6: 623b str r3, [r7, #32]
8000ae8: 6a3b ldr r3, [r7, #32]
__HAL_RCC_GPIOF_CLK_ENABLE();
8000aea: 2300 movs r3, #0
8000aec: 61fb str r3, [r7, #28]
8000aee: 4b7d ldr r3, [pc, #500] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000af0: 6b1b ldr r3, [r3, #48] @ 0x30
8000af2: 4a7c ldr r2, [pc, #496] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000af4: f043 0320 orr.w r3, r3, #32
8000af8: 6313 str r3, [r2, #48] @ 0x30
8000afa: 4b7a ldr r3, [pc, #488] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000afc: 6b1b ldr r3, [r3, #48] @ 0x30
8000afe: f003 0320 and.w r3, r3, #32
8000b02: 61fb str r3, [r7, #28]
8000b04: 69fb ldr r3, [r7, #28]
__HAL_RCC_GPIOH_CLK_ENABLE();
8000b06: 2300 movs r3, #0
8000b08: 61bb str r3, [r7, #24]
8000b0a: 4b76 ldr r3, [pc, #472] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b0c: 6b1b ldr r3, [r3, #48] @ 0x30
8000b0e: 4a75 ldr r2, [pc, #468] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b10: f043 0380 orr.w r3, r3, #128 @ 0x80
8000b14: 6313 str r3, [r2, #48] @ 0x30
8000b16: 4b73 ldr r3, [pc, #460] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b18: 6b1b ldr r3, [r3, #48] @ 0x30
8000b1a: f003 0380 and.w r3, r3, #128 @ 0x80
8000b1e: 61bb str r3, [r7, #24]
8000b20: 69bb ldr r3, [r7, #24]
__HAL_RCC_GPIOA_CLK_ENABLE();
8000b22: 2300 movs r3, #0
8000b24: 617b str r3, [r7, #20]
8000b26: 4b6f ldr r3, [pc, #444] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b28: 6b1b ldr r3, [r3, #48] @ 0x30
8000b2a: 4a6e ldr r2, [pc, #440] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b2c: f043 0301 orr.w r3, r3, #1
8000b30: 6313 str r3, [r2, #48] @ 0x30
8000b32: 4b6c ldr r3, [pc, #432] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b34: 6b1b ldr r3, [r3, #48] @ 0x30
8000b36: f003 0301 and.w r3, r3, #1
8000b3a: 617b str r3, [r7, #20]
8000b3c: 697b ldr r3, [r7, #20]
__HAL_RCC_GPIOB_CLK_ENABLE();
8000b3e: 2300 movs r3, #0
8000b40: 613b str r3, [r7, #16]
8000b42: 4b68 ldr r3, [pc, #416] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b44: 6b1b ldr r3, [r3, #48] @ 0x30
8000b46: 4a67 ldr r2, [pc, #412] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b48: f043 0302 orr.w r3, r3, #2
8000b4c: 6313 str r3, [r2, #48] @ 0x30
8000b4e: 4b65 ldr r3, [pc, #404] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b50: 6b1b ldr r3, [r3, #48] @ 0x30
8000b52: f003 0302 and.w r3, r3, #2
8000b56: 613b str r3, [r7, #16]
8000b58: 693b ldr r3, [r7, #16]
__HAL_RCC_GPIOG_CLK_ENABLE();
8000b5a: 2300 movs r3, #0
8000b5c: 60fb str r3, [r7, #12]
8000b5e: 4b61 ldr r3, [pc, #388] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b60: 6b1b ldr r3, [r3, #48] @ 0x30
8000b62: 4a60 ldr r2, [pc, #384] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b64: f043 0340 orr.w r3, r3, #64 @ 0x40
8000b68: 6313 str r3, [r2, #48] @ 0x30
8000b6a: 4b5e ldr r3, [pc, #376] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b6c: 6b1b ldr r3, [r3, #48] @ 0x30
8000b6e: f003 0340 and.w r3, r3, #64 @ 0x40
8000b72: 60fb str r3, [r7, #12]
8000b74: 68fb ldr r3, [r7, #12]
__HAL_RCC_GPIOE_CLK_ENABLE();
8000b76: 2300 movs r3, #0
8000b78: 60bb str r3, [r7, #8]
8000b7a: 4b5a ldr r3, [pc, #360] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b7c: 6b1b ldr r3, [r3, #48] @ 0x30
8000b7e: 4a59 ldr r2, [pc, #356] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b80: f043 0310 orr.w r3, r3, #16
8000b84: 6313 str r3, [r2, #48] @ 0x30
8000b86: 4b57 ldr r3, [pc, #348] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b88: 6b1b ldr r3, [r3, #48] @ 0x30
8000b8a: f003 0310 and.w r3, r3, #16
8000b8e: 60bb str r3, [r7, #8]
8000b90: 68bb ldr r3, [r7, #8]
__HAL_RCC_GPIOD_CLK_ENABLE();
8000b92: 2300 movs r3, #0
8000b94: 607b str r3, [r7, #4]
8000b96: 4b53 ldr r3, [pc, #332] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b98: 6b1b ldr r3, [r3, #48] @ 0x30
8000b9a: 4a52 ldr r2, [pc, #328] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000b9c: f043 0308 orr.w r3, r3, #8
8000ba0: 6313 str r3, [r2, #48] @ 0x30
8000ba2: 4b50 ldr r3, [pc, #320] @ (8000ce4 <MX_GPIO_Init+0x22c>)
8000ba4: 6b1b ldr r3, [r3, #48] @ 0x30
8000ba6: f003 0308 and.w r3, r3, #8
8000baa: 607b str r3, [r7, #4]
8000bac: 687b ldr r3, [r7, #4]
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOC, NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin, GPIO_PIN_RESET);
8000bae: 2200 movs r2, #0
8000bb0: 2116 movs r1, #22
8000bb2: 484d ldr r0, [pc, #308] @ (8000ce8 <MX_GPIO_Init+0x230>)
8000bb4: f001 fa28 bl 8002008 <HAL_GPIO_WritePin>
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(ACP_RST_GPIO_Port, ACP_RST_Pin, GPIO_PIN_RESET);
8000bb8: 2200 movs r2, #0
8000bba: 2180 movs r1, #128 @ 0x80
8000bbc: 484b ldr r0, [pc, #300] @ (8000cec <MX_GPIO_Init+0x234>)
8000bbe: f001 fa23 bl 8002008 <HAL_GPIO_WritePin>
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOD, RDX_Pin|WRX_DCX_Pin, GPIO_PIN_RESET);
8000bc2: 2200 movs r2, #0
8000bc4: f44f 5140 mov.w r1, #12288 @ 0x3000
8000bc8: 4849 ldr r0, [pc, #292] @ (8000cf0 <MX_GPIO_Init+0x238>)
8000bca: f001 fa1d bl 8002008 <HAL_GPIO_WritePin>
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOG, LD3_Pin|LD4_Pin, GPIO_PIN_RESET);
8000bce: 2200 movs r2, #0
8000bd0: f44f 41c0 mov.w r1, #24576 @ 0x6000
8000bd4: 4847 ldr r0, [pc, #284] @ (8000cf4 <MX_GPIO_Init+0x23c>)
8000bd6: f001 fa17 bl 8002008 <HAL_GPIO_WritePin>
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
8000bda: 2200 movs r2, #0
8000bdc: 2110 movs r1, #16
8000bde: 4846 ldr r0, [pc, #280] @ (8000cf8 <MX_GPIO_Init+0x240>)
8000be0: f001 fa12 bl 8002008 <HAL_GPIO_WritePin>
/*Configure GPIO pins : NCS_MEMS_SPI_Pin CSX_Pin OTG_FS_PSO_Pin */
GPIO_InitStruct.Pin = NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin;
8000be4: 2316 movs r3, #22
8000be6: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
8000be8: 2301 movs r3, #1
8000bea: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000bec: 2300 movs r3, #0
8000bee: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000bf0: 2300 movs r3, #0
8000bf2: 633b str r3, [r7, #48] @ 0x30
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
8000bf4: f107 0324 add.w r3, r7, #36 @ 0x24
8000bf8: 4619 mov r1, r3
8000bfa: 483b ldr r0, [pc, #236] @ (8000ce8 <MX_GPIO_Init+0x230>)
8000bfc: f001 f840 bl 8001c80 <HAL_GPIO_Init>
/*Configure GPIO pins : B1_Pin MEMS_INT1_Pin MEMS_INT2_Pin TP_INT1_Pin */
GPIO_InitStruct.Pin = B1_Pin|MEMS_INT1_Pin|MEMS_INT2_Pin|TP_INT1_Pin;
8000c00: f248 0307 movw r3, #32775 @ 0x8007
8000c04: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_EVT_RISING;
8000c06: f44f 1390 mov.w r3, #1179648 @ 0x120000
8000c0a: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000c0c: 2300 movs r3, #0
8000c0e: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
8000c10: f107 0324 add.w r3, r7, #36 @ 0x24
8000c14: 4619 mov r1, r3
8000c16: 4835 ldr r0, [pc, #212] @ (8000cec <MX_GPIO_Init+0x234>)
8000c18: f001 f832 bl 8001c80 <HAL_GPIO_Init>
/*Configure GPIO pin : ACP_RST_Pin */
GPIO_InitStruct.Pin = ACP_RST_Pin;
8000c1c: 2380 movs r3, #128 @ 0x80
8000c1e: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
8000c20: 2301 movs r3, #1
8000c22: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000c24: 2300 movs r3, #0
8000c26: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000c28: 2300 movs r3, #0
8000c2a: 633b str r3, [r7, #48] @ 0x30
HAL_GPIO_Init(ACP_RST_GPIO_Port, &GPIO_InitStruct);
8000c2c: f107 0324 add.w r3, r7, #36 @ 0x24
8000c30: 4619 mov r1, r3
8000c32: 482e ldr r0, [pc, #184] @ (8000cec <MX_GPIO_Init+0x234>)
8000c34: f001 f824 bl 8001c80 <HAL_GPIO_Init>
/*Configure GPIO pin : OTG_FS_OC_Pin */
GPIO_InitStruct.Pin = OTG_FS_OC_Pin;
8000c38: 2320 movs r3, #32
8000c3a: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_EVT_RISING;
8000c3c: f44f 1390 mov.w r3, #1179648 @ 0x120000
8000c40: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000c42: 2300 movs r3, #0
8000c44: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(OTG_FS_OC_GPIO_Port, &GPIO_InitStruct);
8000c46: f107 0324 add.w r3, r7, #36 @ 0x24
8000c4a: 4619 mov r1, r3
8000c4c: 4826 ldr r0, [pc, #152] @ (8000ce8 <MX_GPIO_Init+0x230>)
8000c4e: f001 f817 bl 8001c80 <HAL_GPIO_Init>
/*Configure GPIO pin : BOOT1_Pin */
GPIO_InitStruct.Pin = BOOT1_Pin;
8000c52: 2304 movs r3, #4
8000c54: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
8000c56: 2300 movs r3, #0
8000c58: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000c5a: 2300 movs r3, #0
8000c5c: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(BOOT1_GPIO_Port, &GPIO_InitStruct);
8000c5e: f107 0324 add.w r3, r7, #36 @ 0x24
8000c62: 4619 mov r1, r3
8000c64: 4824 ldr r0, [pc, #144] @ (8000cf8 <MX_GPIO_Init+0x240>)
8000c66: f001 f80b bl 8001c80 <HAL_GPIO_Init>
/*Configure GPIO pins : TE_Pin BTN_PRPL_Pin BTN_GREY_Pin */
GPIO_InitStruct.Pin = TE_Pin|BTN_PRPL_Pin|BTN_GREY_Pin;
8000c6a: f44f 630a mov.w r3, #2208 @ 0x8a0
8000c6e: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
8000c70: 2300 movs r3, #0
8000c72: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000c74: 2300 movs r3, #0
8000c76: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
8000c78: f107 0324 add.w r3, r7, #36 @ 0x24
8000c7c: 4619 mov r1, r3
8000c7e: 481c ldr r0, [pc, #112] @ (8000cf0 <MX_GPIO_Init+0x238>)
8000c80: f000 fffe bl 8001c80 <HAL_GPIO_Init>
/*Configure GPIO pins : RDX_Pin WRX_DCX_Pin */
GPIO_InitStruct.Pin = RDX_Pin|WRX_DCX_Pin;
8000c84: f44f 5340 mov.w r3, #12288 @ 0x3000
8000c88: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
8000c8a: 2301 movs r3, #1
8000c8c: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000c8e: 2300 movs r3, #0
8000c90: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000c92: 2300 movs r3, #0
8000c94: 633b str r3, [r7, #48] @ 0x30
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
8000c96: f107 0324 add.w r3, r7, #36 @ 0x24
8000c9a: 4619 mov r1, r3
8000c9c: 4814 ldr r0, [pc, #80] @ (8000cf0 <MX_GPIO_Init+0x238>)
8000c9e: f000 ffef bl 8001c80 <HAL_GPIO_Init>
/*Configure GPIO pins : LD3_Pin LD4_Pin */
GPIO_InitStruct.Pin = LD3_Pin|LD4_Pin;
8000ca2: f44f 43c0 mov.w r3, #24576 @ 0x6000
8000ca6: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
8000ca8: 2301 movs r3, #1
8000caa: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000cac: 2300 movs r3, #0
8000cae: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000cb0: 2300 movs r3, #0
8000cb2: 633b str r3, [r7, #48] @ 0x30
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
8000cb4: f107 0324 add.w r3, r7, #36 @ 0x24
8000cb8: 4619 mov r1, r3
8000cba: 480e ldr r0, [pc, #56] @ (8000cf4 <MX_GPIO_Init+0x23c>)
8000cbc: f000 ffe0 bl 8001c80 <HAL_GPIO_Init>
/*Configure GPIO pin : LED_EXT_Pin */
GPIO_InitStruct.Pin = LED_EXT_Pin;
8000cc0: 2310 movs r3, #16
8000cc2: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
8000cc4: 2301 movs r3, #1
8000cc6: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000cc8: 2300 movs r3, #0
8000cca: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000ccc: 2300 movs r3, #0
8000cce: 633b str r3, [r7, #48] @ 0x30
HAL_GPIO_Init(LED_EXT_GPIO_Port, &GPIO_InitStruct);
8000cd0: f107 0324 add.w r3, r7, #36 @ 0x24
8000cd4: 4619 mov r1, r3
8000cd6: 4808 ldr r0, [pc, #32] @ (8000cf8 <MX_GPIO_Init+0x240>)
8000cd8: f000 ffd2 bl 8001c80 <HAL_GPIO_Init>
/* USER CODE BEGIN MX_GPIO_Init_2 */
/* USER CODE END MX_GPIO_Init_2 */
}
8000cdc: bf00 nop
8000cde: 3738 adds r7, #56 @ 0x38
8000ce0: 46bd mov sp, r7
8000ce2: bd80 pop {r7, pc}
8000ce4: 40023800 .word 0x40023800
8000ce8: 40020800 .word 0x40020800
8000cec: 40020000 .word 0x40020000
8000cf0: 40020c00 .word 0x40020c00
8000cf4: 40021800 .word 0x40021800
8000cf8: 40020400 .word 0x40020400
08000cfc <HAL_TIM_PeriodElapsedCallback>:
* a global variable "uwTick" used as application time base.
* @param htim : TIM handle
* @retval None
*/
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
{
8000cfc: b580 push {r7, lr}
8000cfe: b082 sub sp, #8
8000d00: af00 add r7, sp, #0
8000d02: 6078 str r0, [r7, #4]
/* USER CODE BEGIN Callback 0 */
/* USER CODE END Callback 0 */
if (htim->Instance == TIM6)
8000d04: 687b ldr r3, [r7, #4]
8000d06: 681b ldr r3, [r3, #0]
8000d08: 4a04 ldr r2, [pc, #16] @ (8000d1c <HAL_TIM_PeriodElapsedCallback+0x20>)
8000d0a: 4293 cmp r3, r2
8000d0c: d101 bne.n 8000d12 <HAL_TIM_PeriodElapsedCallback+0x16>
{
HAL_IncTick();
8000d0e: f000 fc89 bl 8001624 <HAL_IncTick>
}
/* USER CODE BEGIN Callback 1 */
/* USER CODE END Callback 1 */
}
8000d12: bf00 nop
8000d14: 3708 adds r7, #8
8000d16: 46bd mov sp, r7
8000d18: bd80 pop {r7, pc}
8000d1a: bf00 nop
8000d1c: 40001000 .word 0x40001000
08000d20 <Error_Handler>:
/**
* @brief This function is executed in case of error occurrence.
* @retval None
*/
void Error_Handler(void)
{
8000d20: b480 push {r7}
8000d22: 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");
8000d24: b672 cpsid i
}
8000d26: 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)
8000d28: bf00 nop
8000d2a: e7fd b.n 8000d28 <Error_Handler+0x8>
08000d2c <HAL_MspInit>:
/* USER CODE END 0 */
/**
* Initializes the Global MSP.
*/
void HAL_MspInit(void)
{
8000d2c: b580 push {r7, lr}
8000d2e: b082 sub sp, #8
8000d30: af00 add r7, sp, #0
/* USER CODE BEGIN MspInit 0 */
/* USER CODE END MspInit 0 */
__HAL_RCC_SYSCFG_CLK_ENABLE();
8000d32: 2300 movs r3, #0
8000d34: 607b str r3, [r7, #4]
8000d36: 4b12 ldr r3, [pc, #72] @ (8000d80 <HAL_MspInit+0x54>)
8000d38: 6c5b ldr r3, [r3, #68] @ 0x44
8000d3a: 4a11 ldr r2, [pc, #68] @ (8000d80 <HAL_MspInit+0x54>)
8000d3c: f443 4380 orr.w r3, r3, #16384 @ 0x4000
8000d40: 6453 str r3, [r2, #68] @ 0x44
8000d42: 4b0f ldr r3, [pc, #60] @ (8000d80 <HAL_MspInit+0x54>)
8000d44: 6c5b ldr r3, [r3, #68] @ 0x44
8000d46: f403 4380 and.w r3, r3, #16384 @ 0x4000
8000d4a: 607b str r3, [r7, #4]
8000d4c: 687b ldr r3, [r7, #4]
__HAL_RCC_PWR_CLK_ENABLE();
8000d4e: 2300 movs r3, #0
8000d50: 603b str r3, [r7, #0]
8000d52: 4b0b ldr r3, [pc, #44] @ (8000d80 <HAL_MspInit+0x54>)
8000d54: 6c1b ldr r3, [r3, #64] @ 0x40
8000d56: 4a0a ldr r2, [pc, #40] @ (8000d80 <HAL_MspInit+0x54>)
8000d58: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
8000d5c: 6413 str r3, [r2, #64] @ 0x40
8000d5e: 4b08 ldr r3, [pc, #32] @ (8000d80 <HAL_MspInit+0x54>)
8000d60: 6c1b ldr r3, [r3, #64] @ 0x40
8000d62: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
8000d66: 603b str r3, [r7, #0]
8000d68: 683b ldr r3, [r7, #0]
/* System interrupt init*/
/* PendSV_IRQn interrupt configuration */
HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
8000d6a: 2200 movs r2, #0
8000d6c: 210f movs r1, #15
8000d6e: f06f 0001 mvn.w r0, #1
8000d72: f000 fd53 bl 800181c <HAL_NVIC_SetPriority>
/* USER CODE BEGIN MspInit 1 */
/* USER CODE END MspInit 1 */
}
8000d76: bf00 nop
8000d78: 3708 adds r7, #8
8000d7a: 46bd mov sp, r7
8000d7c: bd80 pop {r7, pc}
8000d7e: bf00 nop
8000d80: 40023800 .word 0x40023800
08000d84 <HAL_CRC_MspInit>:
* This function configures the hardware resources used in this example
* @param hcrc: CRC handle pointer
* @retval None
*/
void HAL_CRC_MspInit(CRC_HandleTypeDef* hcrc)
{
8000d84: b480 push {r7}
8000d86: b085 sub sp, #20
8000d88: af00 add r7, sp, #0
8000d8a: 6078 str r0, [r7, #4]
if(hcrc->Instance==CRC)
8000d8c: 687b ldr r3, [r7, #4]
8000d8e: 681b ldr r3, [r3, #0]
8000d90: 4a0b ldr r2, [pc, #44] @ (8000dc0 <HAL_CRC_MspInit+0x3c>)
8000d92: 4293 cmp r3, r2
8000d94: d10d bne.n 8000db2 <HAL_CRC_MspInit+0x2e>
{
/* USER CODE BEGIN CRC_MspInit 0 */
/* USER CODE END CRC_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_CRC_CLK_ENABLE();
8000d96: 2300 movs r3, #0
8000d98: 60fb str r3, [r7, #12]
8000d9a: 4b0a ldr r3, [pc, #40] @ (8000dc4 <HAL_CRC_MspInit+0x40>)
8000d9c: 6b1b ldr r3, [r3, #48] @ 0x30
8000d9e: 4a09 ldr r2, [pc, #36] @ (8000dc4 <HAL_CRC_MspInit+0x40>)
8000da0: f443 5380 orr.w r3, r3, #4096 @ 0x1000
8000da4: 6313 str r3, [r2, #48] @ 0x30
8000da6: 4b07 ldr r3, [pc, #28] @ (8000dc4 <HAL_CRC_MspInit+0x40>)
8000da8: 6b1b ldr r3, [r3, #48] @ 0x30
8000daa: f403 5380 and.w r3, r3, #4096 @ 0x1000
8000dae: 60fb str r3, [r7, #12]
8000db0: 68fb ldr r3, [r7, #12]
/* USER CODE END CRC_MspInit 1 */
}
}
8000db2: bf00 nop
8000db4: 3714 adds r7, #20
8000db6: 46bd mov sp, r7
8000db8: f85d 7b04 ldr.w r7, [sp], #4
8000dbc: 4770 bx lr
8000dbe: bf00 nop
8000dc0: 40023000 .word 0x40023000
8000dc4: 40023800 .word 0x40023800
08000dc8 <HAL_DMA2D_MspInit>:
* This function configures the hardware resources used in this example
* @param hdma2d: DMA2D handle pointer
* @retval None
*/
void HAL_DMA2D_MspInit(DMA2D_HandleTypeDef* hdma2d)
{
8000dc8: b580 push {r7, lr}
8000dca: b084 sub sp, #16
8000dcc: af00 add r7, sp, #0
8000dce: 6078 str r0, [r7, #4]
if(hdma2d->Instance==DMA2D)
8000dd0: 687b ldr r3, [r7, #4]
8000dd2: 681b ldr r3, [r3, #0]
8000dd4: 4a0e ldr r2, [pc, #56] @ (8000e10 <HAL_DMA2D_MspInit+0x48>)
8000dd6: 4293 cmp r3, r2
8000dd8: d115 bne.n 8000e06 <HAL_DMA2D_MspInit+0x3e>
{
/* USER CODE BEGIN DMA2D_MspInit 0 */
/* USER CODE END DMA2D_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_DMA2D_CLK_ENABLE();
8000dda: 2300 movs r3, #0
8000ddc: 60fb str r3, [r7, #12]
8000dde: 4b0d ldr r3, [pc, #52] @ (8000e14 <HAL_DMA2D_MspInit+0x4c>)
8000de0: 6b1b ldr r3, [r3, #48] @ 0x30
8000de2: 4a0c ldr r2, [pc, #48] @ (8000e14 <HAL_DMA2D_MspInit+0x4c>)
8000de4: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
8000de8: 6313 str r3, [r2, #48] @ 0x30
8000dea: 4b0a ldr r3, [pc, #40] @ (8000e14 <HAL_DMA2D_MspInit+0x4c>)
8000dec: 6b1b ldr r3, [r3, #48] @ 0x30
8000dee: f403 0300 and.w r3, r3, #8388608 @ 0x800000
8000df2: 60fb str r3, [r7, #12]
8000df4: 68fb ldr r3, [r7, #12]
/* DMA2D interrupt Init */
HAL_NVIC_SetPriority(DMA2D_IRQn, 5, 0);
8000df6: 2200 movs r2, #0
8000df8: 2105 movs r1, #5
8000dfa: 205a movs r0, #90 @ 0x5a
8000dfc: f000 fd0e bl 800181c <HAL_NVIC_SetPriority>
HAL_NVIC_EnableIRQ(DMA2D_IRQn);
8000e00: 205a movs r0, #90 @ 0x5a
8000e02: f000 fd27 bl 8001854 <HAL_NVIC_EnableIRQ>
/* USER CODE END DMA2D_MspInit 1 */
}
}
8000e06: bf00 nop
8000e08: 3710 adds r7, #16
8000e0a: 46bd mov sp, r7
8000e0c: bd80 pop {r7, pc}
8000e0e: bf00 nop
8000e10: 4002b000 .word 0x4002b000
8000e14: 40023800 .word 0x40023800
08000e18 <HAL_I2C_MspInit>:
* This function configures the hardware resources used in this example
* @param hi2c: I2C handle pointer
* @retval None
*/
void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c)
{
8000e18: b580 push {r7, lr}
8000e1a: b08a sub sp, #40 @ 0x28
8000e1c: af00 add r7, sp, #0
8000e1e: 6078 str r0, [r7, #4]
GPIO_InitTypeDef GPIO_InitStruct = {0};
8000e20: f107 0314 add.w r3, r7, #20
8000e24: 2200 movs r2, #0
8000e26: 601a str r2, [r3, #0]
8000e28: 605a str r2, [r3, #4]
8000e2a: 609a str r2, [r3, #8]
8000e2c: 60da str r2, [r3, #12]
8000e2e: 611a str r2, [r3, #16]
if(hi2c->Instance==I2C3)
8000e30: 687b ldr r3, [r7, #4]
8000e32: 681b ldr r3, [r3, #0]
8000e34: 4a29 ldr r2, [pc, #164] @ (8000edc <HAL_I2C_MspInit+0xc4>)
8000e36: 4293 cmp r3, r2
8000e38: d14b bne.n 8000ed2 <HAL_I2C_MspInit+0xba>
{
/* USER CODE BEGIN I2C3_MspInit 0 */
/* USER CODE END I2C3_MspInit 0 */
__HAL_RCC_GPIOC_CLK_ENABLE();
8000e3a: 2300 movs r3, #0
8000e3c: 613b str r3, [r7, #16]
8000e3e: 4b28 ldr r3, [pc, #160] @ (8000ee0 <HAL_I2C_MspInit+0xc8>)
8000e40: 6b1b ldr r3, [r3, #48] @ 0x30
8000e42: 4a27 ldr r2, [pc, #156] @ (8000ee0 <HAL_I2C_MspInit+0xc8>)
8000e44: f043 0304 orr.w r3, r3, #4
8000e48: 6313 str r3, [r2, #48] @ 0x30
8000e4a: 4b25 ldr r3, [pc, #148] @ (8000ee0 <HAL_I2C_MspInit+0xc8>)
8000e4c: 6b1b ldr r3, [r3, #48] @ 0x30
8000e4e: f003 0304 and.w r3, r3, #4
8000e52: 613b str r3, [r7, #16]
8000e54: 693b ldr r3, [r7, #16]
__HAL_RCC_GPIOA_CLK_ENABLE();
8000e56: 2300 movs r3, #0
8000e58: 60fb str r3, [r7, #12]
8000e5a: 4b21 ldr r3, [pc, #132] @ (8000ee0 <HAL_I2C_MspInit+0xc8>)
8000e5c: 6b1b ldr r3, [r3, #48] @ 0x30
8000e5e: 4a20 ldr r2, [pc, #128] @ (8000ee0 <HAL_I2C_MspInit+0xc8>)
8000e60: f043 0301 orr.w r3, r3, #1
8000e64: 6313 str r3, [r2, #48] @ 0x30
8000e66: 4b1e ldr r3, [pc, #120] @ (8000ee0 <HAL_I2C_MspInit+0xc8>)
8000e68: 6b1b ldr r3, [r3, #48] @ 0x30
8000e6a: f003 0301 and.w r3, r3, #1
8000e6e: 60fb str r3, [r7, #12]
8000e70: 68fb ldr r3, [r7, #12]
/**I2C3 GPIO Configuration
PC9 ------> I2C3_SDA
PA8 ------> I2C3_SCL
*/
GPIO_InitStruct.Pin = I2C3_SDA_Pin;
8000e72: f44f 7300 mov.w r3, #512 @ 0x200
8000e76: 617b str r3, [r7, #20]
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
8000e78: 2312 movs r3, #18
8000e7a: 61bb str r3, [r7, #24]
GPIO_InitStruct.Pull = GPIO_PULLUP;
8000e7c: 2301 movs r3, #1
8000e7e: 61fb str r3, [r7, #28]
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000e80: 2300 movs r3, #0
8000e82: 623b str r3, [r7, #32]
GPIO_InitStruct.Alternate = GPIO_AF4_I2C3;
8000e84: 2304 movs r3, #4
8000e86: 627b str r3, [r7, #36] @ 0x24
HAL_GPIO_Init(I2C3_SDA_GPIO_Port, &GPIO_InitStruct);
8000e88: f107 0314 add.w r3, r7, #20
8000e8c: 4619 mov r1, r3
8000e8e: 4815 ldr r0, [pc, #84] @ (8000ee4 <HAL_I2C_MspInit+0xcc>)
8000e90: f000 fef6 bl 8001c80 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = I2C3_SCL_Pin;
8000e94: f44f 7380 mov.w r3, #256 @ 0x100
8000e98: 617b str r3, [r7, #20]
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
8000e9a: 2312 movs r3, #18
8000e9c: 61bb str r3, [r7, #24]
GPIO_InitStruct.Pull = GPIO_PULLUP;
8000e9e: 2301 movs r3, #1
8000ea0: 61fb str r3, [r7, #28]
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000ea2: 2300 movs r3, #0
8000ea4: 623b str r3, [r7, #32]
GPIO_InitStruct.Alternate = GPIO_AF4_I2C3;
8000ea6: 2304 movs r3, #4
8000ea8: 627b str r3, [r7, #36] @ 0x24
HAL_GPIO_Init(I2C3_SCL_GPIO_Port, &GPIO_InitStruct);
8000eaa: f107 0314 add.w r3, r7, #20
8000eae: 4619 mov r1, r3
8000eb0: 480d ldr r0, [pc, #52] @ (8000ee8 <HAL_I2C_MspInit+0xd0>)
8000eb2: f000 fee5 bl 8001c80 <HAL_GPIO_Init>
/* Peripheral clock enable */
__HAL_RCC_I2C3_CLK_ENABLE();
8000eb6: 2300 movs r3, #0
8000eb8: 60bb str r3, [r7, #8]
8000eba: 4b09 ldr r3, [pc, #36] @ (8000ee0 <HAL_I2C_MspInit+0xc8>)
8000ebc: 6c1b ldr r3, [r3, #64] @ 0x40
8000ebe: 4a08 ldr r2, [pc, #32] @ (8000ee0 <HAL_I2C_MspInit+0xc8>)
8000ec0: f443 0300 orr.w r3, r3, #8388608 @ 0x800000
8000ec4: 6413 str r3, [r2, #64] @ 0x40
8000ec6: 4b06 ldr r3, [pc, #24] @ (8000ee0 <HAL_I2C_MspInit+0xc8>)
8000ec8: 6c1b ldr r3, [r3, #64] @ 0x40
8000eca: f403 0300 and.w r3, r3, #8388608 @ 0x800000
8000ece: 60bb str r3, [r7, #8]
8000ed0: 68bb ldr r3, [r7, #8]
/* USER CODE END I2C3_MspInit 1 */
}
}
8000ed2: bf00 nop
8000ed4: 3728 adds r7, #40 @ 0x28
8000ed6: 46bd mov sp, r7
8000ed8: bd80 pop {r7, pc}
8000eda: bf00 nop
8000edc: 40005c00 .word 0x40005c00
8000ee0: 40023800 .word 0x40023800
8000ee4: 40020800 .word 0x40020800
8000ee8: 40020000 .word 0x40020000
08000eec <HAL_LTDC_MspInit>:
* This function configures the hardware resources used in this example
* @param hltdc: LTDC handle pointer
* @retval None
*/
void HAL_LTDC_MspInit(LTDC_HandleTypeDef* hltdc)
{
8000eec: b580 push {r7, lr}
8000eee: b09a sub sp, #104 @ 0x68
8000ef0: af00 add r7, sp, #0
8000ef2: 6078 str r0, [r7, #4]
GPIO_InitTypeDef GPIO_InitStruct = {0};
8000ef4: f107 0354 add.w r3, r7, #84 @ 0x54
8000ef8: 2200 movs r2, #0
8000efa: 601a str r2, [r3, #0]
8000efc: 605a str r2, [r3, #4]
8000efe: 609a str r2, [r3, #8]
8000f00: 60da str r2, [r3, #12]
8000f02: 611a str r2, [r3, #16]
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
8000f04: f107 0324 add.w r3, r7, #36 @ 0x24
8000f08: 2230 movs r2, #48 @ 0x30
8000f0a: 2100 movs r1, #0
8000f0c: 4618 mov r0, r3
8000f0e: f006 ffbf bl 8007e90 <memset>
if(hltdc->Instance==LTDC)
8000f12: 687b ldr r3, [r7, #4]
8000f14: 681b ldr r3, [r3, #0]
8000f16: 4a85 ldr r2, [pc, #532] @ (800112c <HAL_LTDC_MspInit+0x240>)
8000f18: 4293 cmp r3, r2
8000f1a: f040 8102 bne.w 8001122 <HAL_LTDC_MspInit+0x236>
/* USER CODE END LTDC_MspInit 0 */
/** Initializes the peripherals clock
*/
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_LTDC;
8000f1e: 2308 movs r3, #8
8000f20: 627b str r3, [r7, #36] @ 0x24
PeriphClkInitStruct.PLLSAI.PLLSAIN = 50;
8000f22: 2332 movs r3, #50 @ 0x32
8000f24: 637b str r3, [r7, #52] @ 0x34
PeriphClkInitStruct.PLLSAI.PLLSAIR = 2;
8000f26: 2302 movs r3, #2
8000f28: 63fb str r3, [r7, #60] @ 0x3c
PeriphClkInitStruct.PLLSAIDivR = RCC_PLLSAIDIVR_2;
8000f2a: 2300 movs r3, #0
8000f2c: 64bb str r3, [r7, #72] @ 0x48
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
8000f2e: f107 0324 add.w r3, r7, #36 @ 0x24
8000f32: 4618 mov r0, r3
8000f34: f003 ffc2 bl 8004ebc <HAL_RCCEx_PeriphCLKConfig>
8000f38: 4603 mov r3, r0
8000f3a: 2b00 cmp r3, #0
8000f3c: d001 beq.n 8000f42 <HAL_LTDC_MspInit+0x56>
{
Error_Handler();
8000f3e: f7ff feef bl 8000d20 <Error_Handler>
}
/* Peripheral clock enable */
__HAL_RCC_LTDC_CLK_ENABLE();
8000f42: 2300 movs r3, #0
8000f44: 623b str r3, [r7, #32]
8000f46: 4b7a ldr r3, [pc, #488] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000f48: 6c5b ldr r3, [r3, #68] @ 0x44
8000f4a: 4a79 ldr r2, [pc, #484] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000f4c: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
8000f50: 6453 str r3, [r2, #68] @ 0x44
8000f52: 4b77 ldr r3, [pc, #476] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000f54: 6c5b ldr r3, [r3, #68] @ 0x44
8000f56: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
8000f5a: 623b str r3, [r7, #32]
8000f5c: 6a3b ldr r3, [r7, #32]
__HAL_RCC_GPIOF_CLK_ENABLE();
8000f5e: 2300 movs r3, #0
8000f60: 61fb str r3, [r7, #28]
8000f62: 4b73 ldr r3, [pc, #460] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000f64: 6b1b ldr r3, [r3, #48] @ 0x30
8000f66: 4a72 ldr r2, [pc, #456] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000f68: f043 0320 orr.w r3, r3, #32
8000f6c: 6313 str r3, [r2, #48] @ 0x30
8000f6e: 4b70 ldr r3, [pc, #448] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000f70: 6b1b ldr r3, [r3, #48] @ 0x30
8000f72: f003 0320 and.w r3, r3, #32
8000f76: 61fb str r3, [r7, #28]
8000f78: 69fb ldr r3, [r7, #28]
__HAL_RCC_GPIOA_CLK_ENABLE();
8000f7a: 2300 movs r3, #0
8000f7c: 61bb str r3, [r7, #24]
8000f7e: 4b6c ldr r3, [pc, #432] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000f80: 6b1b ldr r3, [r3, #48] @ 0x30
8000f82: 4a6b ldr r2, [pc, #428] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000f84: f043 0301 orr.w r3, r3, #1
8000f88: 6313 str r3, [r2, #48] @ 0x30
8000f8a: 4b69 ldr r3, [pc, #420] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000f8c: 6b1b ldr r3, [r3, #48] @ 0x30
8000f8e: f003 0301 and.w r3, r3, #1
8000f92: 61bb str r3, [r7, #24]
8000f94: 69bb ldr r3, [r7, #24]
__HAL_RCC_GPIOB_CLK_ENABLE();
8000f96: 2300 movs r3, #0
8000f98: 617b str r3, [r7, #20]
8000f9a: 4b65 ldr r3, [pc, #404] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000f9c: 6b1b ldr r3, [r3, #48] @ 0x30
8000f9e: 4a64 ldr r2, [pc, #400] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000fa0: f043 0302 orr.w r3, r3, #2
8000fa4: 6313 str r3, [r2, #48] @ 0x30
8000fa6: 4b62 ldr r3, [pc, #392] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000fa8: 6b1b ldr r3, [r3, #48] @ 0x30
8000faa: f003 0302 and.w r3, r3, #2
8000fae: 617b str r3, [r7, #20]
8000fb0: 697b ldr r3, [r7, #20]
__HAL_RCC_GPIOG_CLK_ENABLE();
8000fb2: 2300 movs r3, #0
8000fb4: 613b str r3, [r7, #16]
8000fb6: 4b5e ldr r3, [pc, #376] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000fb8: 6b1b ldr r3, [r3, #48] @ 0x30
8000fba: 4a5d ldr r2, [pc, #372] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000fbc: f043 0340 orr.w r3, r3, #64 @ 0x40
8000fc0: 6313 str r3, [r2, #48] @ 0x30
8000fc2: 4b5b ldr r3, [pc, #364] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000fc4: 6b1b ldr r3, [r3, #48] @ 0x30
8000fc6: f003 0340 and.w r3, r3, #64 @ 0x40
8000fca: 613b str r3, [r7, #16]
8000fcc: 693b ldr r3, [r7, #16]
__HAL_RCC_GPIOC_CLK_ENABLE();
8000fce: 2300 movs r3, #0
8000fd0: 60fb str r3, [r7, #12]
8000fd2: 4b57 ldr r3, [pc, #348] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000fd4: 6b1b ldr r3, [r3, #48] @ 0x30
8000fd6: 4a56 ldr r2, [pc, #344] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000fd8: f043 0304 orr.w r3, r3, #4
8000fdc: 6313 str r3, [r2, #48] @ 0x30
8000fde: 4b54 ldr r3, [pc, #336] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000fe0: 6b1b ldr r3, [r3, #48] @ 0x30
8000fe2: f003 0304 and.w r3, r3, #4
8000fe6: 60fb str r3, [r7, #12]
8000fe8: 68fb ldr r3, [r7, #12]
__HAL_RCC_GPIOD_CLK_ENABLE();
8000fea: 2300 movs r3, #0
8000fec: 60bb str r3, [r7, #8]
8000fee: 4b50 ldr r3, [pc, #320] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000ff0: 6b1b ldr r3, [r3, #48] @ 0x30
8000ff2: 4a4f ldr r2, [pc, #316] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000ff4: f043 0308 orr.w r3, r3, #8
8000ff8: 6313 str r3, [r2, #48] @ 0x30
8000ffa: 4b4d ldr r3, [pc, #308] @ (8001130 <HAL_LTDC_MspInit+0x244>)
8000ffc: 6b1b ldr r3, [r3, #48] @ 0x30
8000ffe: f003 0308 and.w r3, r3, #8
8001002: 60bb str r3, [r7, #8]
8001004: 68bb ldr r3, [r7, #8]
PG11 ------> LTDC_B3
PG12 ------> LTDC_B4
PB8 ------> LTDC_B6
PB9 ------> LTDC_B7
*/
GPIO_InitStruct.Pin = ENABLE_Pin;
8001006: f44f 6380 mov.w r3, #1024 @ 0x400
800100a: 657b str r3, [r7, #84] @ 0x54
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
800100c: 2302 movs r3, #2
800100e: 65bb str r3, [r7, #88] @ 0x58
GPIO_InitStruct.Pull = GPIO_NOPULL;
8001010: 2300 movs r3, #0
8001012: 65fb str r3, [r7, #92] @ 0x5c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8001014: 2300 movs r3, #0
8001016: 663b str r3, [r7, #96] @ 0x60
GPIO_InitStruct.Alternate = GPIO_AF14_LTDC;
8001018: 230e movs r3, #14
800101a: 667b str r3, [r7, #100] @ 0x64
HAL_GPIO_Init(ENABLE_GPIO_Port, &GPIO_InitStruct);
800101c: f107 0354 add.w r3, r7, #84 @ 0x54
8001020: 4619 mov r1, r3
8001022: 4844 ldr r0, [pc, #272] @ (8001134 <HAL_LTDC_MspInit+0x248>)
8001024: f000 fe2c bl 8001c80 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = B5_Pin|VSYNC_Pin|G2_Pin|R4_Pin
8001028: f641 0358 movw r3, #6232 @ 0x1858
800102c: 657b str r3, [r7, #84] @ 0x54
|R5_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
800102e: 2302 movs r3, #2
8001030: 65bb str r3, [r7, #88] @ 0x58
GPIO_InitStruct.Pull = GPIO_NOPULL;
8001032: 2300 movs r3, #0
8001034: 65fb str r3, [r7, #92] @ 0x5c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8001036: 2300 movs r3, #0
8001038: 663b str r3, [r7, #96] @ 0x60
GPIO_InitStruct.Alternate = GPIO_AF14_LTDC;
800103a: 230e movs r3, #14
800103c: 667b str r3, [r7, #100] @ 0x64
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
800103e: f107 0354 add.w r3, r7, #84 @ 0x54
8001042: 4619 mov r1, r3
8001044: 483c ldr r0, [pc, #240] @ (8001138 <HAL_LTDC_MspInit+0x24c>)
8001046: f000 fe1b bl 8001c80 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = R3_Pin|R6_Pin;
800104a: 2303 movs r3, #3
800104c: 657b str r3, [r7, #84] @ 0x54
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
800104e: 2302 movs r3, #2
8001050: 65bb str r3, [r7, #88] @ 0x58
GPIO_InitStruct.Pull = GPIO_NOPULL;
8001052: 2300 movs r3, #0
8001054: 65fb str r3, [r7, #92] @ 0x5c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8001056: 2300 movs r3, #0
8001058: 663b str r3, [r7, #96] @ 0x60
GPIO_InitStruct.Alternate = GPIO_AF9_LTDC;
800105a: 2309 movs r3, #9
800105c: 667b str r3, [r7, #100] @ 0x64
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
800105e: f107 0354 add.w r3, r7, #84 @ 0x54
8001062: 4619 mov r1, r3
8001064: 4835 ldr r0, [pc, #212] @ (800113c <HAL_LTDC_MspInit+0x250>)
8001066: f000 fe0b bl 8001c80 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = G4_Pin|G5_Pin|B6_Pin|B7_Pin;
800106a: f44f 6370 mov.w r3, #3840 @ 0xf00
800106e: 657b str r3, [r7, #84] @ 0x54
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8001070: 2302 movs r3, #2
8001072: 65bb str r3, [r7, #88] @ 0x58
GPIO_InitStruct.Pull = GPIO_NOPULL;
8001074: 2300 movs r3, #0
8001076: 65fb str r3, [r7, #92] @ 0x5c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8001078: 2300 movs r3, #0
800107a: 663b str r3, [r7, #96] @ 0x60
GPIO_InitStruct.Alternate = GPIO_AF14_LTDC;
800107c: 230e movs r3, #14
800107e: 667b str r3, [r7, #100] @ 0x64
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
8001080: f107 0354 add.w r3, r7, #84 @ 0x54
8001084: 4619 mov r1, r3
8001086: 482d ldr r0, [pc, #180] @ (800113c <HAL_LTDC_MspInit+0x250>)
8001088: f000 fdfa bl 8001c80 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = R7_Pin|DOTCLK_Pin|B3_Pin;
800108c: f44f 630c mov.w r3, #2240 @ 0x8c0
8001090: 657b str r3, [r7, #84] @ 0x54
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8001092: 2302 movs r3, #2
8001094: 65bb str r3, [r7, #88] @ 0x58
GPIO_InitStruct.Pull = GPIO_NOPULL;
8001096: 2300 movs r3, #0
8001098: 65fb str r3, [r7, #92] @ 0x5c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
800109a: 2300 movs r3, #0
800109c: 663b str r3, [r7, #96] @ 0x60
GPIO_InitStruct.Alternate = GPIO_AF14_LTDC;
800109e: 230e movs r3, #14
80010a0: 667b str r3, [r7, #100] @ 0x64
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
80010a2: f107 0354 add.w r3, r7, #84 @ 0x54
80010a6: 4619 mov r1, r3
80010a8: 4825 ldr r0, [pc, #148] @ (8001140 <HAL_LTDC_MspInit+0x254>)
80010aa: f000 fde9 bl 8001c80 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = HSYNC_Pin|G6_Pin|R2_Pin;
80010ae: f44f 6398 mov.w r3, #1216 @ 0x4c0
80010b2: 657b str r3, [r7, #84] @ 0x54
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
80010b4: 2302 movs r3, #2
80010b6: 65bb str r3, [r7, #88] @ 0x58
GPIO_InitStruct.Pull = GPIO_NOPULL;
80010b8: 2300 movs r3, #0
80010ba: 65fb str r3, [r7, #92] @ 0x5c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
80010bc: 2300 movs r3, #0
80010be: 663b str r3, [r7, #96] @ 0x60
GPIO_InitStruct.Alternate = GPIO_AF14_LTDC;
80010c0: 230e movs r3, #14
80010c2: 667b str r3, [r7, #100] @ 0x64
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
80010c4: f107 0354 add.w r3, r7, #84 @ 0x54
80010c8: 4619 mov r1, r3
80010ca: 481e ldr r0, [pc, #120] @ (8001144 <HAL_LTDC_MspInit+0x258>)
80010cc: f000 fdd8 bl 8001c80 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = G7_Pin|B2_Pin;
80010d0: 2348 movs r3, #72 @ 0x48
80010d2: 657b str r3, [r7, #84] @ 0x54
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
80010d4: 2302 movs r3, #2
80010d6: 65bb str r3, [r7, #88] @ 0x58
GPIO_InitStruct.Pull = GPIO_NOPULL;
80010d8: 2300 movs r3, #0
80010da: 65fb str r3, [r7, #92] @ 0x5c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
80010dc: 2300 movs r3, #0
80010de: 663b str r3, [r7, #96] @ 0x60
GPIO_InitStruct.Alternate = GPIO_AF14_LTDC;
80010e0: 230e movs r3, #14
80010e2: 667b str r3, [r7, #100] @ 0x64
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
80010e4: f107 0354 add.w r3, r7, #84 @ 0x54
80010e8: 4619 mov r1, r3
80010ea: 4817 ldr r0, [pc, #92] @ (8001148 <HAL_LTDC_MspInit+0x25c>)
80010ec: f000 fdc8 bl 8001c80 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = G3_Pin|B4_Pin;
80010f0: f44f 53a0 mov.w r3, #5120 @ 0x1400
80010f4: 657b str r3, [r7, #84] @ 0x54
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
80010f6: 2302 movs r3, #2
80010f8: 65bb str r3, [r7, #88] @ 0x58
GPIO_InitStruct.Pull = GPIO_NOPULL;
80010fa: 2300 movs r3, #0
80010fc: 65fb str r3, [r7, #92] @ 0x5c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
80010fe: 2300 movs r3, #0
8001100: 663b str r3, [r7, #96] @ 0x60
GPIO_InitStruct.Alternate = GPIO_AF9_LTDC;
8001102: 2309 movs r3, #9
8001104: 667b str r3, [r7, #100] @ 0x64
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
8001106: f107 0354 add.w r3, r7, #84 @ 0x54
800110a: 4619 mov r1, r3
800110c: 480c ldr r0, [pc, #48] @ (8001140 <HAL_LTDC_MspInit+0x254>)
800110e: f000 fdb7 bl 8001c80 <HAL_GPIO_Init>
/* LTDC interrupt Init */
HAL_NVIC_SetPriority(LTDC_IRQn, 5, 0);
8001112: 2200 movs r2, #0
8001114: 2105 movs r1, #5
8001116: 2058 movs r0, #88 @ 0x58
8001118: f000 fb80 bl 800181c <HAL_NVIC_SetPriority>
HAL_NVIC_EnableIRQ(LTDC_IRQn);
800111c: 2058 movs r0, #88 @ 0x58
800111e: f000 fb99 bl 8001854 <HAL_NVIC_EnableIRQ>
/* USER CODE END LTDC_MspInit 1 */
}
}
8001122: bf00 nop
8001124: 3768 adds r7, #104 @ 0x68
8001126: 46bd mov sp, r7
8001128: bd80 pop {r7, pc}
800112a: bf00 nop
800112c: 40016800 .word 0x40016800
8001130: 40023800 .word 0x40023800
8001134: 40021400 .word 0x40021400
8001138: 40020000 .word 0x40020000
800113c: 40020400 .word 0x40020400
8001140: 40021800 .word 0x40021800
8001144: 40020800 .word 0x40020800
8001148: 40020c00 .word 0x40020c00
0800114c <HAL_SPI_MspInit>:
* This function configures the hardware resources used in this example
* @param hspi: SPI handle pointer
* @retval None
*/
void HAL_SPI_MspInit(SPI_HandleTypeDef* hspi)
{
800114c: b580 push {r7, lr}
800114e: b08a sub sp, #40 @ 0x28
8001150: af00 add r7, sp, #0
8001152: 6078 str r0, [r7, #4]
GPIO_InitTypeDef GPIO_InitStruct = {0};
8001154: f107 0314 add.w r3, r7, #20
8001158: 2200 movs r2, #0
800115a: 601a str r2, [r3, #0]
800115c: 605a str r2, [r3, #4]
800115e: 609a str r2, [r3, #8]
8001160: 60da str r2, [r3, #12]
8001162: 611a str r2, [r3, #16]
if(hspi->Instance==SPI5)
8001164: 687b ldr r3, [r7, #4]
8001166: 681b ldr r3, [r3, #0]
8001168: 4a19 ldr r2, [pc, #100] @ (80011d0 <HAL_SPI_MspInit+0x84>)
800116a: 4293 cmp r3, r2
800116c: d12c bne.n 80011c8 <HAL_SPI_MspInit+0x7c>
{
/* USER CODE BEGIN SPI5_MspInit 0 */
/* USER CODE END SPI5_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_SPI5_CLK_ENABLE();
800116e: 2300 movs r3, #0
8001170: 613b str r3, [r7, #16]
8001172: 4b18 ldr r3, [pc, #96] @ (80011d4 <HAL_SPI_MspInit+0x88>)
8001174: 6c5b ldr r3, [r3, #68] @ 0x44
8001176: 4a17 ldr r2, [pc, #92] @ (80011d4 <HAL_SPI_MspInit+0x88>)
8001178: f443 1380 orr.w r3, r3, #1048576 @ 0x100000
800117c: 6453 str r3, [r2, #68] @ 0x44
800117e: 4b15 ldr r3, [pc, #84] @ (80011d4 <HAL_SPI_MspInit+0x88>)
8001180: 6c5b ldr r3, [r3, #68] @ 0x44
8001182: f403 1380 and.w r3, r3, #1048576 @ 0x100000
8001186: 613b str r3, [r7, #16]
8001188: 693b ldr r3, [r7, #16]
__HAL_RCC_GPIOF_CLK_ENABLE();
800118a: 2300 movs r3, #0
800118c: 60fb str r3, [r7, #12]
800118e: 4b11 ldr r3, [pc, #68] @ (80011d4 <HAL_SPI_MspInit+0x88>)
8001190: 6b1b ldr r3, [r3, #48] @ 0x30
8001192: 4a10 ldr r2, [pc, #64] @ (80011d4 <HAL_SPI_MspInit+0x88>)
8001194: f043 0320 orr.w r3, r3, #32
8001198: 6313 str r3, [r2, #48] @ 0x30
800119a: 4b0e ldr r3, [pc, #56] @ (80011d4 <HAL_SPI_MspInit+0x88>)
800119c: 6b1b ldr r3, [r3, #48] @ 0x30
800119e: f003 0320 and.w r3, r3, #32
80011a2: 60fb str r3, [r7, #12]
80011a4: 68fb ldr r3, [r7, #12]
/**SPI5 GPIO Configuration
PF7 ------> SPI5_SCK
PF8 ------> SPI5_MISO
PF9 ------> SPI5_MOSI
*/
GPIO_InitStruct.Pin = SPI5_SCK_Pin|SPI5_MISO_Pin|SPI5_MOSI_Pin;
80011a6: f44f 7360 mov.w r3, #896 @ 0x380
80011aa: 617b str r3, [r7, #20]
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
80011ac: 2302 movs r3, #2
80011ae: 61bb str r3, [r7, #24]
GPIO_InitStruct.Pull = GPIO_NOPULL;
80011b0: 2300 movs r3, #0
80011b2: 61fb str r3, [r7, #28]
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
80011b4: 2300 movs r3, #0
80011b6: 623b str r3, [r7, #32]
GPIO_InitStruct.Alternate = GPIO_AF5_SPI5;
80011b8: 2305 movs r3, #5
80011ba: 627b str r3, [r7, #36] @ 0x24
HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
80011bc: f107 0314 add.w r3, r7, #20
80011c0: 4619 mov r1, r3
80011c2: 4805 ldr r0, [pc, #20] @ (80011d8 <HAL_SPI_MspInit+0x8c>)
80011c4: f000 fd5c bl 8001c80 <HAL_GPIO_Init>
/* USER CODE END SPI5_MspInit 1 */
}
}
80011c8: bf00 nop
80011ca: 3728 adds r7, #40 @ 0x28
80011cc: 46bd mov sp, r7
80011ce: bd80 pop {r7, pc}
80011d0: 40015000 .word 0x40015000
80011d4: 40023800 .word 0x40023800
80011d8: 40021400 .word 0x40021400
080011dc <HAL_TIM_Base_MspInit>:
* This function configures the hardware resources used in this example
* @param htim_base: TIM_Base handle pointer
* @retval None
*/
void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base)
{
80011dc: b480 push {r7}
80011de: b085 sub sp, #20
80011e0: af00 add r7, sp, #0
80011e2: 6078 str r0, [r7, #4]
if(htim_base->Instance==TIM1)
80011e4: 687b ldr r3, [r7, #4]
80011e6: 681b ldr r3, [r3, #0]
80011e8: 4a0b ldr r2, [pc, #44] @ (8001218 <HAL_TIM_Base_MspInit+0x3c>)
80011ea: 4293 cmp r3, r2
80011ec: d10d bne.n 800120a <HAL_TIM_Base_MspInit+0x2e>
{
/* USER CODE BEGIN TIM1_MspInit 0 */
/* USER CODE END TIM1_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_TIM1_CLK_ENABLE();
80011ee: 2300 movs r3, #0
80011f0: 60fb str r3, [r7, #12]
80011f2: 4b0a ldr r3, [pc, #40] @ (800121c <HAL_TIM_Base_MspInit+0x40>)
80011f4: 6c5b ldr r3, [r3, #68] @ 0x44
80011f6: 4a09 ldr r2, [pc, #36] @ (800121c <HAL_TIM_Base_MspInit+0x40>)
80011f8: f043 0301 orr.w r3, r3, #1
80011fc: 6453 str r3, [r2, #68] @ 0x44
80011fe: 4b07 ldr r3, [pc, #28] @ (800121c <HAL_TIM_Base_MspInit+0x40>)
8001200: 6c5b ldr r3, [r3, #68] @ 0x44
8001202: f003 0301 and.w r3, r3, #1
8001206: 60fb str r3, [r7, #12]
8001208: 68fb ldr r3, [r7, #12]
/* USER CODE END TIM1_MspInit 1 */
}
}
800120a: bf00 nop
800120c: 3714 adds r7, #20
800120e: 46bd mov sp, r7
8001210: f85d 7b04 ldr.w r7, [sp], #4
8001214: 4770 bx lr
8001216: bf00 nop
8001218: 40010000 .word 0x40010000
800121c: 40023800 .word 0x40023800
08001220 <HAL_UART_MspInit>:
* This function configures the hardware resources used in this example
* @param huart: UART handle pointer
* @retval None
*/
void HAL_UART_MspInit(UART_HandleTypeDef* huart)
{
8001220: b580 push {r7, lr}
8001222: b08a sub sp, #40 @ 0x28
8001224: af00 add r7, sp, #0
8001226: 6078 str r0, [r7, #4]
GPIO_InitTypeDef GPIO_InitStruct = {0};
8001228: f107 0314 add.w r3, r7, #20
800122c: 2200 movs r2, #0
800122e: 601a str r2, [r3, #0]
8001230: 605a str r2, [r3, #4]
8001232: 609a str r2, [r3, #8]
8001234: 60da str r2, [r3, #12]
8001236: 611a str r2, [r3, #16]
if(huart->Instance==USART1)
8001238: 687b ldr r3, [r7, #4]
800123a: 681b ldr r3, [r3, #0]
800123c: 4a19 ldr r2, [pc, #100] @ (80012a4 <HAL_UART_MspInit+0x84>)
800123e: 4293 cmp r3, r2
8001240: d12c bne.n 800129c <HAL_UART_MspInit+0x7c>
{
/* USER CODE BEGIN USART1_MspInit 0 */
/* USER CODE END USART1_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_USART1_CLK_ENABLE();
8001242: 2300 movs r3, #0
8001244: 613b str r3, [r7, #16]
8001246: 4b18 ldr r3, [pc, #96] @ (80012a8 <HAL_UART_MspInit+0x88>)
8001248: 6c5b ldr r3, [r3, #68] @ 0x44
800124a: 4a17 ldr r2, [pc, #92] @ (80012a8 <HAL_UART_MspInit+0x88>)
800124c: f043 0310 orr.w r3, r3, #16
8001250: 6453 str r3, [r2, #68] @ 0x44
8001252: 4b15 ldr r3, [pc, #84] @ (80012a8 <HAL_UART_MspInit+0x88>)
8001254: 6c5b ldr r3, [r3, #68] @ 0x44
8001256: f003 0310 and.w r3, r3, #16
800125a: 613b str r3, [r7, #16]
800125c: 693b ldr r3, [r7, #16]
__HAL_RCC_GPIOA_CLK_ENABLE();
800125e: 2300 movs r3, #0
8001260: 60fb str r3, [r7, #12]
8001262: 4b11 ldr r3, [pc, #68] @ (80012a8 <HAL_UART_MspInit+0x88>)
8001264: 6b1b ldr r3, [r3, #48] @ 0x30
8001266: 4a10 ldr r2, [pc, #64] @ (80012a8 <HAL_UART_MspInit+0x88>)
8001268: f043 0301 orr.w r3, r3, #1
800126c: 6313 str r3, [r2, #48] @ 0x30
800126e: 4b0e ldr r3, [pc, #56] @ (80012a8 <HAL_UART_MspInit+0x88>)
8001270: 6b1b ldr r3, [r3, #48] @ 0x30
8001272: f003 0301 and.w r3, r3, #1
8001276: 60fb str r3, [r7, #12]
8001278: 68fb ldr r3, [r7, #12]
/**USART1 GPIO Configuration
PA9 ------> USART1_TX
PA10 ------> USART1_RX
*/
GPIO_InitStruct.Pin = STLINK_RX_Pin|STLINK_TX_Pin;
800127a: f44f 63c0 mov.w r3, #1536 @ 0x600
800127e: 617b str r3, [r7, #20]
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8001280: 2302 movs r3, #2
8001282: 61bb str r3, [r7, #24]
GPIO_InitStruct.Pull = GPIO_NOPULL;
8001284: 2300 movs r3, #0
8001286: 61fb str r3, [r7, #28]
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8001288: 2303 movs r3, #3
800128a: 623b str r3, [r7, #32]
GPIO_InitStruct.Alternate = GPIO_AF7_USART1;
800128c: 2307 movs r3, #7
800128e: 627b str r3, [r7, #36] @ 0x24
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
8001290: f107 0314 add.w r3, r7, #20
8001294: 4619 mov r1, r3
8001296: 4805 ldr r0, [pc, #20] @ (80012ac <HAL_UART_MspInit+0x8c>)
8001298: f000 fcf2 bl 8001c80 <HAL_GPIO_Init>
/* USER CODE END USART1_MspInit 1 */
}
}
800129c: bf00 nop
800129e: 3728 adds r7, #40 @ 0x28
80012a0: 46bd mov sp, r7
80012a2: bd80 pop {r7, pc}
80012a4: 40011000 .word 0x40011000
80012a8: 40023800 .word 0x40023800
80012ac: 40020000 .word 0x40020000
080012b0 <HAL_FMC_MspInit>:
}
static uint32_t FMC_Initialized = 0;
static void HAL_FMC_MspInit(void){
80012b0: b580 push {r7, lr}
80012b2: b086 sub sp, #24
80012b4: af00 add r7, sp, #0
/* USER CODE BEGIN FMC_MspInit 0 */
/* USER CODE END FMC_MspInit 0 */
GPIO_InitTypeDef GPIO_InitStruct ={0};
80012b6: 1d3b adds r3, r7, #4
80012b8: 2200 movs r2, #0
80012ba: 601a str r2, [r3, #0]
80012bc: 605a str r2, [r3, #4]
80012be: 609a str r2, [r3, #8]
80012c0: 60da str r2, [r3, #12]
80012c2: 611a str r2, [r3, #16]
if (FMC_Initialized) {
80012c4: 4b3b ldr r3, [pc, #236] @ (80013b4 <HAL_FMC_MspInit+0x104>)
80012c6: 681b ldr r3, [r3, #0]
80012c8: 2b00 cmp r3, #0
80012ca: d16f bne.n 80013ac <HAL_FMC_MspInit+0xfc>
return;
}
FMC_Initialized = 1;
80012cc: 4b39 ldr r3, [pc, #228] @ (80013b4 <HAL_FMC_MspInit+0x104>)
80012ce: 2201 movs r2, #1
80012d0: 601a str r2, [r3, #0]
/* Peripheral clock enable */
__HAL_RCC_FMC_CLK_ENABLE();
80012d2: 2300 movs r3, #0
80012d4: 603b str r3, [r7, #0]
80012d6: 4b38 ldr r3, [pc, #224] @ (80013b8 <HAL_FMC_MspInit+0x108>)
80012d8: 6b9b ldr r3, [r3, #56] @ 0x38
80012da: 4a37 ldr r2, [pc, #220] @ (80013b8 <HAL_FMC_MspInit+0x108>)
80012dc: f043 0301 orr.w r3, r3, #1
80012e0: 6393 str r3, [r2, #56] @ 0x38
80012e2: 4b35 ldr r3, [pc, #212] @ (80013b8 <HAL_FMC_MspInit+0x108>)
80012e4: 6b9b ldr r3, [r3, #56] @ 0x38
80012e6: f003 0301 and.w r3, r3, #1
80012ea: 603b str r3, [r7, #0]
80012ec: 683b ldr r3, [r7, #0]
PB5 ------> FMC_SDCKE1
PB6 ------> FMC_SDNE1
PE0 ------> FMC_NBL0
PE1 ------> FMC_NBL1
*/
GPIO_InitStruct.Pin = A0_Pin|A1_Pin|A2_Pin|A3_Pin
80012ee: f64f 033f movw r3, #63551 @ 0xf83f
80012f2: 607b str r3, [r7, #4]
|A4_Pin|A5_Pin|SDNRAS_Pin|A6_Pin
|A7_Pin|A8_Pin|A9_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
80012f4: 2302 movs r3, #2
80012f6: 60bb str r3, [r7, #8]
GPIO_InitStruct.Pull = GPIO_NOPULL;
80012f8: 2300 movs r3, #0
80012fa: 60fb str r3, [r7, #12]
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
80012fc: 2303 movs r3, #3
80012fe: 613b str r3, [r7, #16]
GPIO_InitStruct.Alternate = GPIO_AF12_FMC;
8001300: 230c movs r3, #12
8001302: 617b str r3, [r7, #20]
HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
8001304: 1d3b adds r3, r7, #4
8001306: 4619 mov r1, r3
8001308: 482c ldr r0, [pc, #176] @ (80013bc <HAL_FMC_MspInit+0x10c>)
800130a: f000 fcb9 bl 8001c80 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = SDNWE_Pin;
800130e: 2301 movs r3, #1
8001310: 607b str r3, [r7, #4]
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8001312: 2302 movs r3, #2
8001314: 60bb str r3, [r7, #8]
GPIO_InitStruct.Pull = GPIO_NOPULL;
8001316: 2300 movs r3, #0
8001318: 60fb str r3, [r7, #12]
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
800131a: 2303 movs r3, #3
800131c: 613b str r3, [r7, #16]
GPIO_InitStruct.Alternate = GPIO_AF12_FMC;
800131e: 230c movs r3, #12
8001320: 617b str r3, [r7, #20]
HAL_GPIO_Init(SDNWE_GPIO_Port, &GPIO_InitStruct);
8001322: 1d3b adds r3, r7, #4
8001324: 4619 mov r1, r3
8001326: 4826 ldr r0, [pc, #152] @ (80013c0 <HAL_FMC_MspInit+0x110>)
8001328: f000 fcaa bl 8001c80 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = A10_Pin|A11_Pin|BA0_Pin|BA1_Pin
800132c: f248 1333 movw r3, #33075 @ 0x8133
8001330: 607b str r3, [r7, #4]
|SDCLK_Pin|SDNCAS_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8001332: 2302 movs r3, #2
8001334: 60bb str r3, [r7, #8]
GPIO_InitStruct.Pull = GPIO_NOPULL;
8001336: 2300 movs r3, #0
8001338: 60fb str r3, [r7, #12]
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
800133a: 2303 movs r3, #3
800133c: 613b str r3, [r7, #16]
GPIO_InitStruct.Alternate = GPIO_AF12_FMC;
800133e: 230c movs r3, #12
8001340: 617b str r3, [r7, #20]
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
8001342: 1d3b adds r3, r7, #4
8001344: 4619 mov r1, r3
8001346: 481f ldr r0, [pc, #124] @ (80013c4 <HAL_FMC_MspInit+0x114>)
8001348: f000 fc9a bl 8001c80 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = D4_Pin|D5_Pin|D6_Pin|D7_Pin
800134c: f64f 7383 movw r3, #65411 @ 0xff83
8001350: 607b str r3, [r7, #4]
|D8_Pin|D9_Pin|D10_Pin|D11_Pin
|D12_Pin|NBL0_Pin|NBL1_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8001352: 2302 movs r3, #2
8001354: 60bb str r3, [r7, #8]
GPIO_InitStruct.Pull = GPIO_NOPULL;
8001356: 2300 movs r3, #0
8001358: 60fb str r3, [r7, #12]
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
800135a: 2303 movs r3, #3
800135c: 613b str r3, [r7, #16]
GPIO_InitStruct.Alternate = GPIO_AF12_FMC;
800135e: 230c movs r3, #12
8001360: 617b str r3, [r7, #20]
HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
8001362: 1d3b adds r3, r7, #4
8001364: 4619 mov r1, r3
8001366: 4818 ldr r0, [pc, #96] @ (80013c8 <HAL_FMC_MspInit+0x118>)
8001368: f000 fc8a bl 8001c80 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = D13_Pin|D14_Pin|D15_Pin|D0_Pin
800136c: f24c 7303 movw r3, #50947 @ 0xc703
8001370: 607b str r3, [r7, #4]
|D1_Pin|D2_Pin|D3_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8001372: 2302 movs r3, #2
8001374: 60bb str r3, [r7, #8]
GPIO_InitStruct.Pull = GPIO_NOPULL;
8001376: 2300 movs r3, #0
8001378: 60fb str r3, [r7, #12]
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
800137a: 2303 movs r3, #3
800137c: 613b str r3, [r7, #16]
GPIO_InitStruct.Alternate = GPIO_AF12_FMC;
800137e: 230c movs r3, #12
8001380: 617b str r3, [r7, #20]
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
8001382: 1d3b adds r3, r7, #4
8001384: 4619 mov r1, r3
8001386: 4811 ldr r0, [pc, #68] @ (80013cc <HAL_FMC_MspInit+0x11c>)
8001388: f000 fc7a bl 8001c80 <HAL_GPIO_Init>
GPIO_InitStruct.Pin = SDCKE1_Pin|SDNE1_Pin;
800138c: 2360 movs r3, #96 @ 0x60
800138e: 607b str r3, [r7, #4]
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8001390: 2302 movs r3, #2
8001392: 60bb str r3, [r7, #8]
GPIO_InitStruct.Pull = GPIO_NOPULL;
8001394: 2300 movs r3, #0
8001396: 60fb str r3, [r7, #12]
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8001398: 2303 movs r3, #3
800139a: 613b str r3, [r7, #16]
GPIO_InitStruct.Alternate = GPIO_AF12_FMC;
800139c: 230c movs r3, #12
800139e: 617b str r3, [r7, #20]
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
80013a0: 1d3b adds r3, r7, #4
80013a2: 4619 mov r1, r3
80013a4: 480a ldr r0, [pc, #40] @ (80013d0 <HAL_FMC_MspInit+0x120>)
80013a6: f000 fc6b bl 8001c80 <HAL_GPIO_Init>
80013aa: e000 b.n 80013ae <HAL_FMC_MspInit+0xfe>
return;
80013ac: bf00 nop
/* USER CODE BEGIN FMC_MspInit 1 */
/* USER CODE END FMC_MspInit 1 */
}
80013ae: 3718 adds r7, #24
80013b0: 46bd mov sp, r7
80013b2: bd80 pop {r7, pc}
80013b4: 2000028c .word 0x2000028c
80013b8: 40023800 .word 0x40023800
80013bc: 40021400 .word 0x40021400
80013c0: 40020800 .word 0x40020800
80013c4: 40021800 .word 0x40021800
80013c8: 40021000 .word 0x40021000
80013cc: 40020c00 .word 0x40020c00
80013d0: 40020400 .word 0x40020400
080013d4 <HAL_SDRAM_MspInit>:
void HAL_SDRAM_MspInit(SDRAM_HandleTypeDef* hsdram){
80013d4: b580 push {r7, lr}
80013d6: b082 sub sp, #8
80013d8: af00 add r7, sp, #0
80013da: 6078 str r0, [r7, #4]
/* USER CODE BEGIN SDRAM_MspInit 0 */
/* USER CODE END SDRAM_MspInit 0 */
HAL_FMC_MspInit();
80013dc: f7ff ff68 bl 80012b0 <HAL_FMC_MspInit>
/* USER CODE BEGIN SDRAM_MspInit 1 */
/* USER CODE END SDRAM_MspInit 1 */
}
80013e0: bf00 nop
80013e2: 3708 adds r7, #8
80013e4: 46bd mov sp, r7
80013e6: bd80 pop {r7, pc}
080013e8 <HAL_InitTick>:
* reset by HAL_Init() or at any time when clock is configured, by HAL_RCC_ClockConfig().
* @param TickPriority: Tick interrupt priority.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority)
{
80013e8: b580 push {r7, lr}
80013ea: b08e sub sp, #56 @ 0x38
80013ec: af00 add r7, sp, #0
80013ee: 6078 str r0, [r7, #4]
RCC_ClkInitTypeDef clkconfig;
uint32_t uwTimclock, uwAPB1Prescaler = 0U;
80013f0: 2300 movs r3, #0
80013f2: 62fb str r3, [r7, #44] @ 0x2c
uint32_t uwPrescalerValue = 0U;
80013f4: 2300 movs r3, #0
80013f6: 62bb str r3, [r7, #40] @ 0x28
uint32_t pFLatency;
HAL_StatusTypeDef status;
/* Enable TIM6 clock */
__HAL_RCC_TIM6_CLK_ENABLE();
80013f8: 2300 movs r3, #0
80013fa: 60fb str r3, [r7, #12]
80013fc: 4b33 ldr r3, [pc, #204] @ (80014cc <HAL_InitTick+0xe4>)
80013fe: 6c1b ldr r3, [r3, #64] @ 0x40
8001400: 4a32 ldr r2, [pc, #200] @ (80014cc <HAL_InitTick+0xe4>)
8001402: f043 0310 orr.w r3, r3, #16
8001406: 6413 str r3, [r2, #64] @ 0x40
8001408: 4b30 ldr r3, [pc, #192] @ (80014cc <HAL_InitTick+0xe4>)
800140a: 6c1b ldr r3, [r3, #64] @ 0x40
800140c: f003 0310 and.w r3, r3, #16
8001410: 60fb str r3, [r7, #12]
8001412: 68fb ldr r3, [r7, #12]
/* Get clock configuration */
HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
8001414: f107 0210 add.w r2, r7, #16
8001418: f107 0314 add.w r3, r7, #20
800141c: 4611 mov r1, r2
800141e: 4618 mov r0, r3
8001420: f003 fd1a bl 8004e58 <HAL_RCC_GetClockConfig>
/* Get APB1 prescaler */
uwAPB1Prescaler = clkconfig.APB1CLKDivider;
8001424: 6a3b ldr r3, [r7, #32]
8001426: 62fb str r3, [r7, #44] @ 0x2c
/* Compute TIM6 clock */
if (uwAPB1Prescaler == RCC_HCLK_DIV1)
8001428: 6afb ldr r3, [r7, #44] @ 0x2c
800142a: 2b00 cmp r3, #0
800142c: d103 bne.n 8001436 <HAL_InitTick+0x4e>
{
uwTimclock = HAL_RCC_GetPCLK1Freq();
800142e: f003 fceb bl 8004e08 <HAL_RCC_GetPCLK1Freq>
8001432: 6378 str r0, [r7, #52] @ 0x34
8001434: e004 b.n 8001440 <HAL_InitTick+0x58>
}
else
{
uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
8001436: f003 fce7 bl 8004e08 <HAL_RCC_GetPCLK1Freq>
800143a: 4603 mov r3, r0
800143c: 005b lsls r3, r3, #1
800143e: 637b str r3, [r7, #52] @ 0x34
}
/* Compute the prescaler value to have TIM6 counter clock equal to 1MHz */
uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
8001440: 6b7b ldr r3, [r7, #52] @ 0x34
8001442: 4a23 ldr r2, [pc, #140] @ (80014d0 <HAL_InitTick+0xe8>)
8001444: fba2 2303 umull r2, r3, r2, r3
8001448: 0c9b lsrs r3, r3, #18
800144a: 3b01 subs r3, #1
800144c: 62bb str r3, [r7, #40] @ 0x28
/* Initialize TIM6 */
htim6.Instance = TIM6;
800144e: 4b21 ldr r3, [pc, #132] @ (80014d4 <HAL_InitTick+0xec>)
8001450: 4a21 ldr r2, [pc, #132] @ (80014d8 <HAL_InitTick+0xf0>)
8001452: 601a str r2, [r3, #0]
* Period = [(TIM6CLK/1000) - 1]. to have a (1/1000) s time base.
* Prescaler = (uwTimclock/1000000 - 1) to have a 1MHz counter clock.
* ClockDivision = 0
* Counter direction = Up
*/
htim6.Init.Period = (1000000U / 1000U) - 1U;
8001454: 4b1f ldr r3, [pc, #124] @ (80014d4 <HAL_InitTick+0xec>)
8001456: f240 32e7 movw r2, #999 @ 0x3e7
800145a: 60da str r2, [r3, #12]
htim6.Init.Prescaler = uwPrescalerValue;
800145c: 4a1d ldr r2, [pc, #116] @ (80014d4 <HAL_InitTick+0xec>)
800145e: 6abb ldr r3, [r7, #40] @ 0x28
8001460: 6053 str r3, [r2, #4]
htim6.Init.ClockDivision = 0;
8001462: 4b1c ldr r3, [pc, #112] @ (80014d4 <HAL_InitTick+0xec>)
8001464: 2200 movs r2, #0
8001466: 611a str r2, [r3, #16]
htim6.Init.CounterMode = TIM_COUNTERMODE_UP;
8001468: 4b1a ldr r3, [pc, #104] @ (80014d4 <HAL_InitTick+0xec>)
800146a: 2200 movs r2, #0
800146c: 609a str r2, [r3, #8]
htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
800146e: 4b19 ldr r3, [pc, #100] @ (80014d4 <HAL_InitTick+0xec>)
8001470: 2200 movs r2, #0
8001472: 619a str r2, [r3, #24]
status = HAL_TIM_Base_Init(&htim6);
8001474: 4817 ldr r0, [pc, #92] @ (80014d4 <HAL_InitTick+0xec>)
8001476: f003 ff9e bl 80053b6 <HAL_TIM_Base_Init>
800147a: 4603 mov r3, r0
800147c: f887 3033 strb.w r3, [r7, #51] @ 0x33
if (status == HAL_OK)
8001480: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
8001484: 2b00 cmp r3, #0
8001486: d11b bne.n 80014c0 <HAL_InitTick+0xd8>
{
/* Start the TIM time Base generation in interrupt mode */
status = HAL_TIM_Base_Start_IT(&htim6);
8001488: 4812 ldr r0, [pc, #72] @ (80014d4 <HAL_InitTick+0xec>)
800148a: f003 ffe3 bl 8005454 <HAL_TIM_Base_Start_IT>
800148e: 4603 mov r3, r0
8001490: f887 3033 strb.w r3, [r7, #51] @ 0x33
if (status == HAL_OK)
8001494: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
8001498: 2b00 cmp r3, #0
800149a: d111 bne.n 80014c0 <HAL_InitTick+0xd8>
{
/* Enable the TIM6 global Interrupt */
HAL_NVIC_EnableIRQ(TIM6_DAC_IRQn);
800149c: 2036 movs r0, #54 @ 0x36
800149e: f000 f9d9 bl 8001854 <HAL_NVIC_EnableIRQ>
/* Configure the SysTick IRQ priority */
if (TickPriority < (1UL << __NVIC_PRIO_BITS))
80014a2: 687b ldr r3, [r7, #4]
80014a4: 2b0f cmp r3, #15
80014a6: d808 bhi.n 80014ba <HAL_InitTick+0xd2>
{
/* Configure the TIM IRQ priority */
HAL_NVIC_SetPriority(TIM6_DAC_IRQn, TickPriority, 0U);
80014a8: 2200 movs r2, #0
80014aa: 6879 ldr r1, [r7, #4]
80014ac: 2036 movs r0, #54 @ 0x36
80014ae: f000 f9b5 bl 800181c <HAL_NVIC_SetPriority>
uwTickPrio = TickPriority;
80014b2: 4a0a ldr r2, [pc, #40] @ (80014dc <HAL_InitTick+0xf4>)
80014b4: 687b ldr r3, [r7, #4]
80014b6: 6013 str r3, [r2, #0]
80014b8: e002 b.n 80014c0 <HAL_InitTick+0xd8>
}
else
{
status = HAL_ERROR;
80014ba: 2301 movs r3, #1
80014bc: f887 3033 strb.w r3, [r7, #51] @ 0x33
}
}
}
/* Return function status */
return status;
80014c0: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
}
80014c4: 4618 mov r0, r3
80014c6: 3738 adds r7, #56 @ 0x38
80014c8: 46bd mov sp, r7
80014ca: bd80 pop {r7, pc}
80014cc: 40023800 .word 0x40023800
80014d0: 431bde83 .word 0x431bde83
80014d4: 20000290 .word 0x20000290
80014d8: 40001000 .word 0x40001000
80014dc: 20000004 .word 0x20000004
080014e0 <NMI_Handler>:
/******************************************************************************/
/**
* @brief This function handles Non maskable interrupt.
*/
void NMI_Handler(void)
{
80014e0: b480 push {r7}
80014e2: 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)
80014e4: bf00 nop
80014e6: e7fd b.n 80014e4 <NMI_Handler+0x4>
080014e8 <HardFault_Handler>:
/**
* @brief This function handles Hard fault interrupt.
*/
void HardFault_Handler(void)
{
80014e8: b480 push {r7}
80014ea: af00 add r7, sp, #0
/* USER CODE BEGIN HardFault_IRQn 0 */
/* USER CODE END HardFault_IRQn 0 */
while (1)
80014ec: bf00 nop
80014ee: e7fd b.n 80014ec <HardFault_Handler+0x4>
080014f0 <MemManage_Handler>:
/**
* @brief This function handles Memory management fault.
*/
void MemManage_Handler(void)
{
80014f0: b480 push {r7}
80014f2: af00 add r7, sp, #0
/* USER CODE BEGIN MemoryManagement_IRQn 0 */
/* USER CODE END MemoryManagement_IRQn 0 */
while (1)
80014f4: bf00 nop
80014f6: e7fd b.n 80014f4 <MemManage_Handler+0x4>
080014f8 <BusFault_Handler>:
/**
* @brief This function handles Pre-fetch fault, memory access fault.
*/
void BusFault_Handler(void)
{
80014f8: b480 push {r7}
80014fa: af00 add r7, sp, #0
/* USER CODE BEGIN BusFault_IRQn 0 */
/* USER CODE END BusFault_IRQn 0 */
while (1)
80014fc: bf00 nop
80014fe: e7fd b.n 80014fc <BusFault_Handler+0x4>
08001500 <UsageFault_Handler>:
/**
* @brief This function handles Undefined instruction or illegal state.
*/
void UsageFault_Handler(void)
{
8001500: b480 push {r7}
8001502: af00 add r7, sp, #0
/* USER CODE BEGIN UsageFault_IRQn 0 */
/* USER CODE END UsageFault_IRQn 0 */
while (1)
8001504: bf00 nop
8001506: e7fd b.n 8001504 <UsageFault_Handler+0x4>
08001508 <DebugMon_Handler>:
/**
* @brief This function handles Debug monitor.
*/
void DebugMon_Handler(void)
{
8001508: b480 push {r7}
800150a: af00 add r7, sp, #0
/* USER CODE END DebugMonitor_IRQn 0 */
/* USER CODE BEGIN DebugMonitor_IRQn 1 */
/* USER CODE END DebugMonitor_IRQn 1 */
}
800150c: bf00 nop
800150e: 46bd mov sp, r7
8001510: f85d 7b04 ldr.w r7, [sp], #4
8001514: 4770 bx lr
...
08001518 <TIM6_DAC_IRQHandler>:
/**
* @brief This function handles TIM6 global interrupt, DAC1 and DAC2 underrun error interrupts.
*/
void TIM6_DAC_IRQHandler(void)
{
8001518: b580 push {r7, lr}
800151a: af00 add r7, sp, #0
/* USER CODE BEGIN TIM6_DAC_IRQn 0 */
/* USER CODE END TIM6_DAC_IRQn 0 */
HAL_TIM_IRQHandler(&htim6);
800151c: 4802 ldr r0, [pc, #8] @ (8001528 <TIM6_DAC_IRQHandler+0x10>)
800151e: f004 f809 bl 8005534 <HAL_TIM_IRQHandler>
/* USER CODE BEGIN TIM6_DAC_IRQn 1 */
/* USER CODE END TIM6_DAC_IRQn 1 */
}
8001522: bf00 nop
8001524: bd80 pop {r7, pc}
8001526: bf00 nop
8001528: 20000290 .word 0x20000290
0800152c <OTG_HS_IRQHandler>:
/**
* @brief This function handles USB On The Go HS global interrupt.
*/
void OTG_HS_IRQHandler(void)
{
800152c: b580 push {r7, lr}
800152e: af00 add r7, sp, #0
/* USER CODE BEGIN OTG_HS_IRQn 0 */
/* USER CODE END OTG_HS_IRQn 0 */
HAL_HCD_IRQHandler(&hhcd_USB_OTG_HS);
8001530: 4802 ldr r0, [pc, #8] @ (800153c <OTG_HS_IRQHandler+0x10>)
8001532: f000 fd82 bl 800203a <HAL_HCD_IRQHandler>
/* USER CODE BEGIN OTG_HS_IRQn 1 */
/* USER CODE END OTG_HS_IRQn 1 */
}
8001536: bf00 nop
8001538: bd80 pop {r7, pc}
800153a: bf00 nop
800153c: 200003c8 .word 0x200003c8
08001540 <LTDC_IRQHandler>:
/**
* @brief This function handles LTDC global interrupt.
*/
void LTDC_IRQHandler(void)
{
8001540: b580 push {r7, lr}
8001542: af00 add r7, sp, #0
/* USER CODE BEGIN LTDC_IRQn 0 */
/* USER CODE END LTDC_IRQn 0 */
HAL_LTDC_IRQHandler(&hltdc);
8001544: 4802 ldr r0, [pc, #8] @ (8001550 <LTDC_IRQHandler+0x10>)
8001546: f002 fd7b bl 8004040 <HAL_LTDC_IRQHandler>
/* USER CODE BEGIN LTDC_IRQn 1 */
/* USER CODE END LTDC_IRQn 1 */
}
800154a: bf00 nop
800154c: bd80 pop {r7, pc}
800154e: bf00 nop
8001550: 200000c8 .word 0x200000c8
08001554 <DMA2D_IRQHandler>:
/**
* @brief This function handles DMA2D global interrupt.
*/
void DMA2D_IRQHandler(void)
{
8001554: b580 push {r7, lr}
8001556: af00 add r7, sp, #0
/* USER CODE BEGIN DMA2D_IRQn 0 */
/* USER CODE END DMA2D_IRQn 0 */
HAL_DMA2D_IRQHandler(&hdma2d);
8001558: 4802 ldr r0, [pc, #8] @ (8001564 <DMA2D_IRQHandler+0x10>)
800155a: f000 f9ee bl 800193a <HAL_DMA2D_IRQHandler>
/* USER CODE BEGIN DMA2D_IRQn 1 */
/* USER CODE END DMA2D_IRQn 1 */
}
800155e: bf00 nop
8001560: bd80 pop {r7, pc}
8001562: bf00 nop
8001564: 20000034 .word 0x20000034
08001568 <SystemInit>:
* configuration.
* @param None
* @retval None
*/
void SystemInit(void)
{
8001568: b480 push {r7}
800156a: 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 */
800156c: 4b06 ldr r3, [pc, #24] @ (8001588 <SystemInit+0x20>)
800156e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
8001572: 4a05 ldr r2, [pc, #20] @ (8001588 <SystemInit+0x20>)
8001574: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
8001578: 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 */
}
800157c: bf00 nop
800157e: 46bd mov sp, r7
8001580: f85d 7b04 ldr.w r7, [sp], #4
8001584: 4770 bx lr
8001586: bf00 nop
8001588: e000ed00 .word 0xe000ed00
0800158c <Reset_Handler>:
.section .text.Reset_Handler
.weak Reset_Handler
.type Reset_Handler, %function
Reset_Handler:
ldr sp, =_estack /* set stack pointer */
800158c: f8df d034 ldr.w sp, [pc, #52] @ 80015c4 <LoopFillZerobss+0xe>
/* Call the clock system initialization function.*/
bl SystemInit
8001590: f7ff ffea bl 8001568 <SystemInit>
/* Copy the data segment initializers from flash to SRAM */
ldr r0, =_sdata
8001594: 480c ldr r0, [pc, #48] @ (80015c8 <LoopFillZerobss+0x12>)
ldr r1, =_edata
8001596: 490d ldr r1, [pc, #52] @ (80015cc <LoopFillZerobss+0x16>)
ldr r2, =_sidata
8001598: 4a0d ldr r2, [pc, #52] @ (80015d0 <LoopFillZerobss+0x1a>)
movs r3, #0
800159a: 2300 movs r3, #0
b LoopCopyDataInit
800159c: e002 b.n 80015a4 <LoopCopyDataInit>
0800159e <CopyDataInit>:
CopyDataInit:
ldr r4, [r2, r3]
800159e: 58d4 ldr r4, [r2, r3]
str r4, [r0, r3]
80015a0: 50c4 str r4, [r0, r3]
adds r3, r3, #4
80015a2: 3304 adds r3, #4
080015a4 <LoopCopyDataInit>:
LoopCopyDataInit:
adds r4, r0, r3
80015a4: 18c4 adds r4, r0, r3
cmp r4, r1
80015a6: 428c cmp r4, r1
bcc CopyDataInit
80015a8: d3f9 bcc.n 800159e <CopyDataInit>
/* Zero fill the bss segment. */
ldr r2, =_sbss
80015aa: 4a0a ldr r2, [pc, #40] @ (80015d4 <LoopFillZerobss+0x1e>)
ldr r4, =_ebss
80015ac: 4c0a ldr r4, [pc, #40] @ (80015d8 <LoopFillZerobss+0x22>)
movs r3, #0
80015ae: 2300 movs r3, #0
b LoopFillZerobss
80015b0: e001 b.n 80015b6 <LoopFillZerobss>
080015b2 <FillZerobss>:
FillZerobss:
str r3, [r2]
80015b2: 6013 str r3, [r2, #0]
adds r2, r2, #4
80015b4: 3204 adds r2, #4
080015b6 <LoopFillZerobss>:
LoopFillZerobss:
cmp r2, r4
80015b6: 42a2 cmp r2, r4
bcc FillZerobss
80015b8: d3fb bcc.n 80015b2 <FillZerobss>
/* Call static constructors */
bl __libc_init_array
80015ba: f006 fc71 bl 8007ea0 <__libc_init_array>
/* Call the application's entry point.*/
bl main
80015be: f7fe ffee bl 800059e <main>
bx lr
80015c2: 4770 bx lr
ldr sp, =_estack /* set stack pointer */
80015c4: 20030000 .word 0x20030000
ldr r0, =_sdata
80015c8: 20000000 .word 0x20000000
ldr r1, =_edata
80015cc: 20000010 .word 0x20000010
ldr r2, =_sidata
80015d0: 08007f44 .word 0x08007f44
ldr r2, =_sbss
80015d4: 20000010 .word 0x20000010
ldr r4, =_ebss
80015d8: 200007a8 .word 0x200007a8
080015dc <ADC_IRQHandler>:
* @retval None
*/
.section .text.Default_Handler,"ax",%progbits
Default_Handler:
Infinite_Loop:
b Infinite_Loop
80015dc: e7fe b.n 80015dc <ADC_IRQHandler>
...
080015e0 <HAL_Init>:
* 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)
{
80015e0: b580 push {r7, lr}
80015e2: af00 add r7, sp, #0
/* Configure Flash prefetch, Instruction cache, Data cache */
#if (INSTRUCTION_CACHE_ENABLE != 0U)
__HAL_FLASH_INSTRUCTION_CACHE_ENABLE();
80015e4: 4b0e ldr r3, [pc, #56] @ (8001620 <HAL_Init+0x40>)
80015e6: 681b ldr r3, [r3, #0]
80015e8: 4a0d ldr r2, [pc, #52] @ (8001620 <HAL_Init+0x40>)
80015ea: f443 7300 orr.w r3, r3, #512 @ 0x200
80015ee: 6013 str r3, [r2, #0]
#endif /* INSTRUCTION_CACHE_ENABLE */
#if (DATA_CACHE_ENABLE != 0U)
__HAL_FLASH_DATA_CACHE_ENABLE();
80015f0: 4b0b ldr r3, [pc, #44] @ (8001620 <HAL_Init+0x40>)
80015f2: 681b ldr r3, [r3, #0]
80015f4: 4a0a ldr r2, [pc, #40] @ (8001620 <HAL_Init+0x40>)
80015f6: f443 6380 orr.w r3, r3, #1024 @ 0x400
80015fa: 6013 str r3, [r2, #0]
#endif /* DATA_CACHE_ENABLE */
#if (PREFETCH_ENABLE != 0U)
__HAL_FLASH_PREFETCH_BUFFER_ENABLE();
80015fc: 4b08 ldr r3, [pc, #32] @ (8001620 <HAL_Init+0x40>)
80015fe: 681b ldr r3, [r3, #0]
8001600: 4a07 ldr r2, [pc, #28] @ (8001620 <HAL_Init+0x40>)
8001602: f443 7380 orr.w r3, r3, #256 @ 0x100
8001606: 6013 str r3, [r2, #0]
#endif /* PREFETCH_ENABLE */
/* Set Interrupt Group Priority */
HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
8001608: 2003 movs r0, #3
800160a: f000 f8fc bl 8001806 <HAL_NVIC_SetPriorityGrouping>
/* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
HAL_InitTick(TICK_INT_PRIORITY);
800160e: 2000 movs r0, #0
8001610: f7ff feea bl 80013e8 <HAL_InitTick>
/* Init the low level hardware */
HAL_MspInit();
8001614: f7ff fb8a bl 8000d2c <HAL_MspInit>
/* Return function status */
return HAL_OK;
8001618: 2300 movs r3, #0
}
800161a: 4618 mov r0, r3
800161c: bd80 pop {r7, pc}
800161e: bf00 nop
8001620: 40023c00 .word 0x40023c00
08001624 <HAL_IncTick>:
* @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)
{
8001624: b480 push {r7}
8001626: af00 add r7, sp, #0
uwTick += uwTickFreq;
8001628: 4b06 ldr r3, [pc, #24] @ (8001644 <HAL_IncTick+0x20>)
800162a: 781b ldrb r3, [r3, #0]
800162c: 461a mov r2, r3
800162e: 4b06 ldr r3, [pc, #24] @ (8001648 <HAL_IncTick+0x24>)
8001630: 681b ldr r3, [r3, #0]
8001632: 4413 add r3, r2
8001634: 4a04 ldr r2, [pc, #16] @ (8001648 <HAL_IncTick+0x24>)
8001636: 6013 str r3, [r2, #0]
}
8001638: bf00 nop
800163a: 46bd mov sp, r7
800163c: f85d 7b04 ldr.w r7, [sp], #4
8001640: 4770 bx lr
8001642: bf00 nop
8001644: 20000008 .word 0x20000008
8001648: 200002d8 .word 0x200002d8
0800164c <HAL_GetTick>:
* @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)
{
800164c: b480 push {r7}
800164e: af00 add r7, sp, #0
return uwTick;
8001650: 4b03 ldr r3, [pc, #12] @ (8001660 <HAL_GetTick+0x14>)
8001652: 681b ldr r3, [r3, #0]
}
8001654: 4618 mov r0, r3
8001656: 46bd mov sp, r7
8001658: f85d 7b04 ldr.w r7, [sp], #4
800165c: 4770 bx lr
800165e: bf00 nop
8001660: 200002d8 .word 0x200002d8
08001664 <HAL_Delay>:
* implementations in user file.
* @param Delay specifies the delay time length, in milliseconds.
* @retval None
*/
__weak void HAL_Delay(uint32_t Delay)
{
8001664: b580 push {r7, lr}
8001666: b084 sub sp, #16
8001668: af00 add r7, sp, #0
800166a: 6078 str r0, [r7, #4]
uint32_t tickstart = HAL_GetTick();
800166c: f7ff ffee bl 800164c <HAL_GetTick>
8001670: 60b8 str r0, [r7, #8]
uint32_t wait = Delay;
8001672: 687b ldr r3, [r7, #4]
8001674: 60fb str r3, [r7, #12]
/* Add a freq to guarantee minimum wait */
if (wait < HAL_MAX_DELAY)
8001676: 68fb ldr r3, [r7, #12]
8001678: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
800167c: d005 beq.n 800168a <HAL_Delay+0x26>
{
wait += (uint32_t)(uwTickFreq);
800167e: 4b0a ldr r3, [pc, #40] @ (80016a8 <HAL_Delay+0x44>)
8001680: 781b ldrb r3, [r3, #0]
8001682: 461a mov r2, r3
8001684: 68fb ldr r3, [r7, #12]
8001686: 4413 add r3, r2
8001688: 60fb str r3, [r7, #12]
}
while((HAL_GetTick() - tickstart) < wait)
800168a: bf00 nop
800168c: f7ff ffde bl 800164c <HAL_GetTick>
8001690: 4602 mov r2, r0
8001692: 68bb ldr r3, [r7, #8]
8001694: 1ad3 subs r3, r2, r3
8001696: 68fa ldr r2, [r7, #12]
8001698: 429a cmp r2, r3
800169a: d8f7 bhi.n 800168c <HAL_Delay+0x28>
{
}
}
800169c: bf00 nop
800169e: bf00 nop
80016a0: 3710 adds r7, #16
80016a2: 46bd mov sp, r7
80016a4: bd80 pop {r7, pc}
80016a6: bf00 nop
80016a8: 20000008 .word 0x20000008
080016ac <__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)
{
80016ac: b480 push {r7}
80016ae: b085 sub sp, #20
80016b0: af00 add r7, sp, #0
80016b2: 6078 str r0, [r7, #4]
uint32_t reg_value;
uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
80016b4: 687b ldr r3, [r7, #4]
80016b6: f003 0307 and.w r3, r3, #7
80016ba: 60fb str r3, [r7, #12]
reg_value = SCB->AIRCR; /* read old register configuration */
80016bc: 4b0c ldr r3, [pc, #48] @ (80016f0 <__NVIC_SetPriorityGrouping+0x44>)
80016be: 68db ldr r3, [r3, #12]
80016c0: 60bb str r3, [r7, #8]
reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
80016c2: 68ba ldr r2, [r7, #8]
80016c4: f64f 03ff movw r3, #63743 @ 0xf8ff
80016c8: 4013 ands r3, r2
80016ca: 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 */
80016cc: 68fb ldr r3, [r7, #12]
80016ce: 021a lsls r2, r3, #8
((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
80016d0: 68bb ldr r3, [r7, #8]
80016d2: 4313 orrs r3, r2
reg_value = (reg_value |
80016d4: f043 63bf orr.w r3, r3, #100139008 @ 0x5f80000
80016d8: f443 3300 orr.w r3, r3, #131072 @ 0x20000
80016dc: 60bb str r3, [r7, #8]
SCB->AIRCR = reg_value;
80016de: 4a04 ldr r2, [pc, #16] @ (80016f0 <__NVIC_SetPriorityGrouping+0x44>)
80016e0: 68bb ldr r3, [r7, #8]
80016e2: 60d3 str r3, [r2, #12]
}
80016e4: bf00 nop
80016e6: 3714 adds r7, #20
80016e8: 46bd mov sp, r7
80016ea: f85d 7b04 ldr.w r7, [sp], #4
80016ee: 4770 bx lr
80016f0: e000ed00 .word 0xe000ed00
080016f4 <__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)
{
80016f4: b480 push {r7}
80016f6: af00 add r7, sp, #0
return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
80016f8: 4b04 ldr r3, [pc, #16] @ (800170c <__NVIC_GetPriorityGrouping+0x18>)
80016fa: 68db ldr r3, [r3, #12]
80016fc: 0a1b lsrs r3, r3, #8
80016fe: f003 0307 and.w r3, r3, #7
}
8001702: 4618 mov r0, r3
8001704: 46bd mov sp, r7
8001706: f85d 7b04 ldr.w r7, [sp], #4
800170a: 4770 bx lr
800170c: e000ed00 .word 0xe000ed00
08001710 <__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)
{
8001710: b480 push {r7}
8001712: b083 sub sp, #12
8001714: af00 add r7, sp, #0
8001716: 4603 mov r3, r0
8001718: 71fb strb r3, [r7, #7]
if ((int32_t)(IRQn) >= 0)
800171a: f997 3007 ldrsb.w r3, [r7, #7]
800171e: 2b00 cmp r3, #0
8001720: db0b blt.n 800173a <__NVIC_EnableIRQ+0x2a>
{
__COMPILER_BARRIER();
NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
8001722: 79fb ldrb r3, [r7, #7]
8001724: f003 021f and.w r2, r3, #31
8001728: 4907 ldr r1, [pc, #28] @ (8001748 <__NVIC_EnableIRQ+0x38>)
800172a: f997 3007 ldrsb.w r3, [r7, #7]
800172e: 095b lsrs r3, r3, #5
8001730: 2001 movs r0, #1
8001732: fa00 f202 lsl.w r2, r0, r2
8001736: f841 2023 str.w r2, [r1, r3, lsl #2]
__COMPILER_BARRIER();
}
}
800173a: bf00 nop
800173c: 370c adds r7, #12
800173e: 46bd mov sp, r7
8001740: f85d 7b04 ldr.w r7, [sp], #4
8001744: 4770 bx lr
8001746: bf00 nop
8001748: e000e100 .word 0xe000e100
0800174c <__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)
{
800174c: b480 push {r7}
800174e: b083 sub sp, #12
8001750: af00 add r7, sp, #0
8001752: 4603 mov r3, r0
8001754: 6039 str r1, [r7, #0]
8001756: 71fb strb r3, [r7, #7]
if ((int32_t)(IRQn) >= 0)
8001758: f997 3007 ldrsb.w r3, [r7, #7]
800175c: 2b00 cmp r3, #0
800175e: db0a blt.n 8001776 <__NVIC_SetPriority+0x2a>
{
NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
8001760: 683b ldr r3, [r7, #0]
8001762: b2da uxtb r2, r3
8001764: 490c ldr r1, [pc, #48] @ (8001798 <__NVIC_SetPriority+0x4c>)
8001766: f997 3007 ldrsb.w r3, [r7, #7]
800176a: 0112 lsls r2, r2, #4
800176c: b2d2 uxtb r2, r2
800176e: 440b add r3, r1
8001770: 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);
}
}
8001774: e00a b.n 800178c <__NVIC_SetPriority+0x40>
SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
8001776: 683b ldr r3, [r7, #0]
8001778: b2da uxtb r2, r3
800177a: 4908 ldr r1, [pc, #32] @ (800179c <__NVIC_SetPriority+0x50>)
800177c: 79fb ldrb r3, [r7, #7]
800177e: f003 030f and.w r3, r3, #15
8001782: 3b04 subs r3, #4
8001784: 0112 lsls r2, r2, #4
8001786: b2d2 uxtb r2, r2
8001788: 440b add r3, r1
800178a: 761a strb r2, [r3, #24]
}
800178c: bf00 nop
800178e: 370c adds r7, #12
8001790: 46bd mov sp, r7
8001792: f85d 7b04 ldr.w r7, [sp], #4
8001796: 4770 bx lr
8001798: e000e100 .word 0xe000e100
800179c: e000ed00 .word 0xe000ed00
080017a0 <NVIC_EncodePriority>:
\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)
{
80017a0: b480 push {r7}
80017a2: b089 sub sp, #36 @ 0x24
80017a4: af00 add r7, sp, #0
80017a6: 60f8 str r0, [r7, #12]
80017a8: 60b9 str r1, [r7, #8]
80017aa: 607a str r2, [r7, #4]
uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
80017ac: 68fb ldr r3, [r7, #12]
80017ae: f003 0307 and.w r3, r3, #7
80017b2: 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);
80017b4: 69fb ldr r3, [r7, #28]
80017b6: f1c3 0307 rsb r3, r3, #7
80017ba: 2b04 cmp r3, #4
80017bc: bf28 it cs
80017be: 2304 movcs r3, #4
80017c0: 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));
80017c2: 69fb ldr r3, [r7, #28]
80017c4: 3304 adds r3, #4
80017c6: 2b06 cmp r3, #6
80017c8: d902 bls.n 80017d0 <NVIC_EncodePriority+0x30>
80017ca: 69fb ldr r3, [r7, #28]
80017cc: 3b03 subs r3, #3
80017ce: e000 b.n 80017d2 <NVIC_EncodePriority+0x32>
80017d0: 2300 movs r3, #0
80017d2: 617b str r3, [r7, #20]
return (
((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
80017d4: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
80017d8: 69bb ldr r3, [r7, #24]
80017da: fa02 f303 lsl.w r3, r2, r3
80017de: 43da mvns r2, r3
80017e0: 68bb ldr r3, [r7, #8]
80017e2: 401a ands r2, r3
80017e4: 697b ldr r3, [r7, #20]
80017e6: 409a lsls r2, r3
((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
80017e8: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
80017ec: 697b ldr r3, [r7, #20]
80017ee: fa01 f303 lsl.w r3, r1, r3
80017f2: 43d9 mvns r1, r3
80017f4: 687b ldr r3, [r7, #4]
80017f6: 400b ands r3, r1
((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
80017f8: 4313 orrs r3, r2
);
}
80017fa: 4618 mov r0, r3
80017fc: 3724 adds r7, #36 @ 0x24
80017fe: 46bd mov sp, r7
8001800: f85d 7b04 ldr.w r7, [sp], #4
8001804: 4770 bx lr
08001806 <HAL_NVIC_SetPriorityGrouping>:
* @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)
{
8001806: b580 push {r7, lr}
8001808: b082 sub sp, #8
800180a: af00 add r7, sp, #0
800180c: 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);
800180e: 6878 ldr r0, [r7, #4]
8001810: f7ff ff4c bl 80016ac <__NVIC_SetPriorityGrouping>
}
8001814: bf00 nop
8001816: 3708 adds r7, #8
8001818: 46bd mov sp, r7
800181a: bd80 pop {r7, pc}
0800181c <HAL_NVIC_SetPriority>:
* 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)
{
800181c: b580 push {r7, lr}
800181e: b086 sub sp, #24
8001820: af00 add r7, sp, #0
8001822: 4603 mov r3, r0
8001824: 60b9 str r1, [r7, #8]
8001826: 607a str r2, [r7, #4]
8001828: 73fb strb r3, [r7, #15]
uint32_t prioritygroup = 0x00U;
800182a: 2300 movs r3, #0
800182c: 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();
800182e: f7ff ff61 bl 80016f4 <__NVIC_GetPriorityGrouping>
8001832: 6178 str r0, [r7, #20]
NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
8001834: 687a ldr r2, [r7, #4]
8001836: 68b9 ldr r1, [r7, #8]
8001838: 6978 ldr r0, [r7, #20]
800183a: f7ff ffb1 bl 80017a0 <NVIC_EncodePriority>
800183e: 4602 mov r2, r0
8001840: f997 300f ldrsb.w r3, [r7, #15]
8001844: 4611 mov r1, r2
8001846: 4618 mov r0, r3
8001848: f7ff ff80 bl 800174c <__NVIC_SetPriority>
}
800184c: bf00 nop
800184e: 3718 adds r7, #24
8001850: 46bd mov sp, r7
8001852: bd80 pop {r7, pc}
08001854 <HAL_NVIC_EnableIRQ>:
* 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)
{
8001854: b580 push {r7, lr}
8001856: b082 sub sp, #8
8001858: af00 add r7, sp, #0
800185a: 4603 mov r3, r0
800185c: 71fb strb r3, [r7, #7]
/* Check the parameters */
assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
/* Enable interrupt */
NVIC_EnableIRQ(IRQn);
800185e: f997 3007 ldrsb.w r3, [r7, #7]
8001862: 4618 mov r0, r3
8001864: f7ff ff54 bl 8001710 <__NVIC_EnableIRQ>
}
8001868: bf00 nop
800186a: 3708 adds r7, #8
800186c: 46bd mov sp, r7
800186e: bd80 pop {r7, pc}
08001870 <HAL_CRC_Init>:
* parameters in the CRC_InitTypeDef and create the associated handle.
* @param hcrc CRC handle
* @retval HAL status
*/
HAL_StatusTypeDef HAL_CRC_Init(CRC_HandleTypeDef *hcrc)
{
8001870: b580 push {r7, lr}
8001872: b082 sub sp, #8
8001874: af00 add r7, sp, #0
8001876: 6078 str r0, [r7, #4]
/* Check the CRC handle allocation */
if (hcrc == NULL)
8001878: 687b ldr r3, [r7, #4]
800187a: 2b00 cmp r3, #0
800187c: d101 bne.n 8001882 <HAL_CRC_Init+0x12>
{
return HAL_ERROR;
800187e: 2301 movs r3, #1
8001880: e00e b.n 80018a0 <HAL_CRC_Init+0x30>
}
/* Check the parameters */
assert_param(IS_CRC_ALL_INSTANCE(hcrc->Instance));
if (hcrc->State == HAL_CRC_STATE_RESET)
8001882: 687b ldr r3, [r7, #4]
8001884: 795b ldrb r3, [r3, #5]
8001886: b2db uxtb r3, r3
8001888: 2b00 cmp r3, #0
800188a: d105 bne.n 8001898 <HAL_CRC_Init+0x28>
{
/* Allocate lock resource and initialize it */
hcrc->Lock = HAL_UNLOCKED;
800188c: 687b ldr r3, [r7, #4]
800188e: 2200 movs r2, #0
8001890: 711a strb r2, [r3, #4]
/* Init the low level hardware */
HAL_CRC_MspInit(hcrc);
8001892: 6878 ldr r0, [r7, #4]
8001894: f7ff fa76 bl 8000d84 <HAL_CRC_MspInit>
}
/* Change CRC peripheral state */
hcrc->State = HAL_CRC_STATE_READY;
8001898: 687b ldr r3, [r7, #4]
800189a: 2201 movs r2, #1
800189c: 715a strb r2, [r3, #5]
/* Return function status */
return HAL_OK;
800189e: 2300 movs r3, #0
}
80018a0: 4618 mov r0, r3
80018a2: 3708 adds r7, #8
80018a4: 46bd mov sp, r7
80018a6: bd80 pop {r7, pc}
080018a8 <HAL_DMA2D_Init>:
* @param hdma2d pointer to a DMA2D_HandleTypeDef structure that contains
* the configuration information for the DMA2D.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_DMA2D_Init(DMA2D_HandleTypeDef *hdma2d)
{
80018a8: b580 push {r7, lr}
80018aa: b082 sub sp, #8
80018ac: af00 add r7, sp, #0
80018ae: 6078 str r0, [r7, #4]
/* Check the DMA2D peripheral state */
if (hdma2d == NULL)
80018b0: 687b ldr r3, [r7, #4]
80018b2: 2b00 cmp r3, #0
80018b4: d101 bne.n 80018ba <HAL_DMA2D_Init+0x12>
{
return HAL_ERROR;
80018b6: 2301 movs r3, #1
80018b8: e03b b.n 8001932 <HAL_DMA2D_Init+0x8a>
/* Init the low level hardware */
hdma2d->MspInitCallback(hdma2d);
}
#else
if (hdma2d->State == HAL_DMA2D_STATE_RESET)
80018ba: 687b ldr r3, [r7, #4]
80018bc: f893 3039 ldrb.w r3, [r3, #57] @ 0x39
80018c0: b2db uxtb r3, r3
80018c2: 2b00 cmp r3, #0
80018c4: d106 bne.n 80018d4 <HAL_DMA2D_Init+0x2c>
{
/* Allocate lock resource and initialize it */
hdma2d->Lock = HAL_UNLOCKED;
80018c6: 687b ldr r3, [r7, #4]
80018c8: 2200 movs r2, #0
80018ca: f883 2038 strb.w r2, [r3, #56] @ 0x38
/* Init the low level hardware */
HAL_DMA2D_MspInit(hdma2d);
80018ce: 6878 ldr r0, [r7, #4]
80018d0: f7ff fa7a bl 8000dc8 <HAL_DMA2D_MspInit>
}
#endif /* (USE_HAL_DMA2D_REGISTER_CALLBACKS) */
/* Change DMA2D peripheral state */
hdma2d->State = HAL_DMA2D_STATE_BUSY;
80018d4: 687b ldr r3, [r7, #4]
80018d6: 2202 movs r2, #2
80018d8: f883 2039 strb.w r2, [r3, #57] @ 0x39
/* DMA2D CR register configuration -------------------------------------------*/
MODIFY_REG(hdma2d->Instance->CR, DMA2D_CR_MODE, hdma2d->Init.Mode);
80018dc: 687b ldr r3, [r7, #4]
80018de: 681b ldr r3, [r3, #0]
80018e0: 681b ldr r3, [r3, #0]
80018e2: f423 3140 bic.w r1, r3, #196608 @ 0x30000
80018e6: 687b ldr r3, [r7, #4]
80018e8: 685a ldr r2, [r3, #4]
80018ea: 687b ldr r3, [r7, #4]
80018ec: 681b ldr r3, [r3, #0]
80018ee: 430a orrs r2, r1
80018f0: 601a str r2, [r3, #0]
/* DMA2D OPFCCR register configuration ---------------------------------------*/
MODIFY_REG(hdma2d->Instance->OPFCCR, DMA2D_OPFCCR_CM, hdma2d->Init.ColorMode);
80018f2: 687b ldr r3, [r7, #4]
80018f4: 681b ldr r3, [r3, #0]
80018f6: 6b5b ldr r3, [r3, #52] @ 0x34
80018f8: f023 0107 bic.w r1, r3, #7
80018fc: 687b ldr r3, [r7, #4]
80018fe: 689a ldr r2, [r3, #8]
8001900: 687b ldr r3, [r7, #4]
8001902: 681b ldr r3, [r3, #0]
8001904: 430a orrs r2, r1
8001906: 635a str r2, [r3, #52] @ 0x34
/* DMA2D OOR register configuration ------------------------------------------*/
MODIFY_REG(hdma2d->Instance->OOR, DMA2D_OOR_LO, hdma2d->Init.OutputOffset);
8001908: 687b ldr r3, [r7, #4]
800190a: 681b ldr r3, [r3, #0]
800190c: 6c1b ldr r3, [r3, #64] @ 0x40
800190e: f423 537f bic.w r3, r3, #16320 @ 0x3fc0
8001912: f023 033f bic.w r3, r3, #63 @ 0x3f
8001916: 687a ldr r2, [r7, #4]
8001918: 68d1 ldr r1, [r2, #12]
800191a: 687a ldr r2, [r7, #4]
800191c: 6812 ldr r2, [r2, #0]
800191e: 430b orrs r3, r1
8001920: 6413 str r3, [r2, #64] @ 0x40
/* Update error code */
hdma2d->ErrorCode = HAL_DMA2D_ERROR_NONE;
8001922: 687b ldr r3, [r7, #4]
8001924: 2200 movs r2, #0
8001926: 63da str r2, [r3, #60] @ 0x3c
/* Initialize the DMA2D state*/
hdma2d->State = HAL_DMA2D_STATE_READY;
8001928: 687b ldr r3, [r7, #4]
800192a: 2201 movs r2, #1
800192c: f883 2039 strb.w r2, [r3, #57] @ 0x39
return HAL_OK;
8001930: 2300 movs r3, #0
}
8001932: 4618 mov r0, r3
8001934: 3708 adds r7, #8
8001936: 46bd mov sp, r7
8001938: bd80 pop {r7, pc}
0800193a <HAL_DMA2D_IRQHandler>:
* @param hdma2d Pointer to a DMA2D_HandleTypeDef structure that contains
* the configuration information for the DMA2D.
* @retval HAL status
*/
void HAL_DMA2D_IRQHandler(DMA2D_HandleTypeDef *hdma2d)
{
800193a: b580 push {r7, lr}
800193c: b084 sub sp, #16
800193e: af00 add r7, sp, #0
8001940: 6078 str r0, [r7, #4]
uint32_t isrflags = READ_REG(hdma2d->Instance->ISR);
8001942: 687b ldr r3, [r7, #4]
8001944: 681b ldr r3, [r3, #0]
8001946: 685b ldr r3, [r3, #4]
8001948: 60fb str r3, [r7, #12]
uint32_t crflags = READ_REG(hdma2d->Instance->CR);
800194a: 687b ldr r3, [r7, #4]
800194c: 681b ldr r3, [r3, #0]
800194e: 681b ldr r3, [r3, #0]
8001950: 60bb str r3, [r7, #8]
/* Transfer Error Interrupt management ***************************************/
if ((isrflags & DMA2D_FLAG_TE) != 0U)
8001952: 68fb ldr r3, [r7, #12]
8001954: f003 0301 and.w r3, r3, #1
8001958: 2b00 cmp r3, #0
800195a: d026 beq.n 80019aa <HAL_DMA2D_IRQHandler+0x70>
{
if ((crflags & DMA2D_IT_TE) != 0U)
800195c: 68bb ldr r3, [r7, #8]
800195e: f403 7380 and.w r3, r3, #256 @ 0x100
8001962: 2b00 cmp r3, #0
8001964: d021 beq.n 80019aa <HAL_DMA2D_IRQHandler+0x70>
{
/* Disable the transfer Error interrupt */
__HAL_DMA2D_DISABLE_IT(hdma2d, DMA2D_IT_TE);
8001966: 687b ldr r3, [r7, #4]
8001968: 681b ldr r3, [r3, #0]
800196a: 681a ldr r2, [r3, #0]
800196c: 687b ldr r3, [r7, #4]
800196e: 681b ldr r3, [r3, #0]
8001970: f422 7280 bic.w r2, r2, #256 @ 0x100
8001974: 601a str r2, [r3, #0]
/* Update error code */
hdma2d->ErrorCode |= HAL_DMA2D_ERROR_TE;
8001976: 687b ldr r3, [r7, #4]
8001978: 6bdb ldr r3, [r3, #60] @ 0x3c
800197a: f043 0201 orr.w r2, r3, #1
800197e: 687b ldr r3, [r7, #4]
8001980: 63da str r2, [r3, #60] @ 0x3c
/* Clear the transfer error flag */
__HAL_DMA2D_CLEAR_FLAG(hdma2d, DMA2D_FLAG_TE);
8001982: 687b ldr r3, [r7, #4]
8001984: 681b ldr r3, [r3, #0]
8001986: 2201 movs r2, #1
8001988: 609a str r2, [r3, #8]
/* Change DMA2D state */
hdma2d->State = HAL_DMA2D_STATE_ERROR;
800198a: 687b ldr r3, [r7, #4]
800198c: 2204 movs r2, #4
800198e: f883 2039 strb.w r2, [r3, #57] @ 0x39
/* Process Unlocked */
__HAL_UNLOCK(hdma2d);
8001992: 687b ldr r3, [r7, #4]
8001994: 2200 movs r2, #0
8001996: f883 2038 strb.w r2, [r3, #56] @ 0x38
if (hdma2d->XferErrorCallback != NULL)
800199a: 687b ldr r3, [r7, #4]
800199c: 695b ldr r3, [r3, #20]
800199e: 2b00 cmp r3, #0
80019a0: d003 beq.n 80019aa <HAL_DMA2D_IRQHandler+0x70>
{
/* Transfer error Callback */
hdma2d->XferErrorCallback(hdma2d);
80019a2: 687b ldr r3, [r7, #4]
80019a4: 695b ldr r3, [r3, #20]
80019a6: 6878 ldr r0, [r7, #4]
80019a8: 4798 blx r3
}
}
}
/* Configuration Error Interrupt management **********************************/
if ((isrflags & DMA2D_FLAG_CE) != 0U)
80019aa: 68fb ldr r3, [r7, #12]
80019ac: f003 0320 and.w r3, r3, #32
80019b0: 2b00 cmp r3, #0
80019b2: d026 beq.n 8001a02 <HAL_DMA2D_IRQHandler+0xc8>
{
if ((crflags & DMA2D_IT_CE) != 0U)
80019b4: 68bb ldr r3, [r7, #8]
80019b6: f403 5300 and.w r3, r3, #8192 @ 0x2000
80019ba: 2b00 cmp r3, #0
80019bc: d021 beq.n 8001a02 <HAL_DMA2D_IRQHandler+0xc8>
{
/* Disable the Configuration Error interrupt */
__HAL_DMA2D_DISABLE_IT(hdma2d, DMA2D_IT_CE);
80019be: 687b ldr r3, [r7, #4]
80019c0: 681b ldr r3, [r3, #0]
80019c2: 681a ldr r2, [r3, #0]
80019c4: 687b ldr r3, [r7, #4]
80019c6: 681b ldr r3, [r3, #0]
80019c8: f422 5200 bic.w r2, r2, #8192 @ 0x2000
80019cc: 601a str r2, [r3, #0]
/* Clear the Configuration error flag */
__HAL_DMA2D_CLEAR_FLAG(hdma2d, DMA2D_FLAG_CE);
80019ce: 687b ldr r3, [r7, #4]
80019d0: 681b ldr r3, [r3, #0]
80019d2: 2220 movs r2, #32
80019d4: 609a str r2, [r3, #8]
/* Update error code */
hdma2d->ErrorCode |= HAL_DMA2D_ERROR_CE;
80019d6: 687b ldr r3, [r7, #4]
80019d8: 6bdb ldr r3, [r3, #60] @ 0x3c
80019da: f043 0202 orr.w r2, r3, #2
80019de: 687b ldr r3, [r7, #4]
80019e0: 63da str r2, [r3, #60] @ 0x3c
/* Change DMA2D state */
hdma2d->State = HAL_DMA2D_STATE_ERROR;
80019e2: 687b ldr r3, [r7, #4]
80019e4: 2204 movs r2, #4
80019e6: f883 2039 strb.w r2, [r3, #57] @ 0x39
/* Process Unlocked */
__HAL_UNLOCK(hdma2d);
80019ea: 687b ldr r3, [r7, #4]
80019ec: 2200 movs r2, #0
80019ee: f883 2038 strb.w r2, [r3, #56] @ 0x38
if (hdma2d->XferErrorCallback != NULL)
80019f2: 687b ldr r3, [r7, #4]
80019f4: 695b ldr r3, [r3, #20]
80019f6: 2b00 cmp r3, #0
80019f8: d003 beq.n 8001a02 <HAL_DMA2D_IRQHandler+0xc8>
{
/* Transfer error Callback */
hdma2d->XferErrorCallback(hdma2d);
80019fa: 687b ldr r3, [r7, #4]
80019fc: 695b ldr r3, [r3, #20]
80019fe: 6878 ldr r0, [r7, #4]
8001a00: 4798 blx r3
}
}
}
/* CLUT access Error Interrupt management ***********************************/
if ((isrflags & DMA2D_FLAG_CAE) != 0U)
8001a02: 68fb ldr r3, [r7, #12]
8001a04: f003 0308 and.w r3, r3, #8
8001a08: 2b00 cmp r3, #0
8001a0a: d026 beq.n 8001a5a <HAL_DMA2D_IRQHandler+0x120>
{
if ((crflags & DMA2D_IT_CAE) != 0U)
8001a0c: 68bb ldr r3, [r7, #8]
8001a0e: f403 6300 and.w r3, r3, #2048 @ 0x800
8001a12: 2b00 cmp r3, #0
8001a14: d021 beq.n 8001a5a <HAL_DMA2D_IRQHandler+0x120>
{
/* Disable the CLUT access error interrupt */
__HAL_DMA2D_DISABLE_IT(hdma2d, DMA2D_IT_CAE);
8001a16: 687b ldr r3, [r7, #4]
8001a18: 681b ldr r3, [r3, #0]
8001a1a: 681a ldr r2, [r3, #0]
8001a1c: 687b ldr r3, [r7, #4]
8001a1e: 681b ldr r3, [r3, #0]
8001a20: f422 6200 bic.w r2, r2, #2048 @ 0x800
8001a24: 601a str r2, [r3, #0]
/* Clear the CLUT access error flag */
__HAL_DMA2D_CLEAR_FLAG(hdma2d, DMA2D_FLAG_CAE);
8001a26: 687b ldr r3, [r7, #4]
8001a28: 681b ldr r3, [r3, #0]
8001a2a: 2208 movs r2, #8
8001a2c: 609a str r2, [r3, #8]
/* Update error code */
hdma2d->ErrorCode |= HAL_DMA2D_ERROR_CAE;
8001a2e: 687b ldr r3, [r7, #4]
8001a30: 6bdb ldr r3, [r3, #60] @ 0x3c
8001a32: f043 0204 orr.w r2, r3, #4
8001a36: 687b ldr r3, [r7, #4]
8001a38: 63da str r2, [r3, #60] @ 0x3c
/* Change DMA2D state */
hdma2d->State = HAL_DMA2D_STATE_ERROR;
8001a3a: 687b ldr r3, [r7, #4]
8001a3c: 2204 movs r2, #4
8001a3e: f883 2039 strb.w r2, [r3, #57] @ 0x39
/* Process Unlocked */
__HAL_UNLOCK(hdma2d);
8001a42: 687b ldr r3, [r7, #4]
8001a44: 2200 movs r2, #0
8001a46: f883 2038 strb.w r2, [r3, #56] @ 0x38
if (hdma2d->XferErrorCallback != NULL)
8001a4a: 687b ldr r3, [r7, #4]
8001a4c: 695b ldr r3, [r3, #20]
8001a4e: 2b00 cmp r3, #0
8001a50: d003 beq.n 8001a5a <HAL_DMA2D_IRQHandler+0x120>
{
/* Transfer error Callback */
hdma2d->XferErrorCallback(hdma2d);
8001a52: 687b ldr r3, [r7, #4]
8001a54: 695b ldr r3, [r3, #20]
8001a56: 6878 ldr r0, [r7, #4]
8001a58: 4798 blx r3
}
}
}
/* Transfer watermark Interrupt management **********************************/
if ((isrflags & DMA2D_FLAG_TW) != 0U)
8001a5a: 68fb ldr r3, [r7, #12]
8001a5c: f003 0304 and.w r3, r3, #4
8001a60: 2b00 cmp r3, #0
8001a62: d013 beq.n 8001a8c <HAL_DMA2D_IRQHandler+0x152>
{
if ((crflags & DMA2D_IT_TW) != 0U)
8001a64: 68bb ldr r3, [r7, #8]
8001a66: f403 6380 and.w r3, r3, #1024 @ 0x400
8001a6a: 2b00 cmp r3, #0
8001a6c: d00e beq.n 8001a8c <HAL_DMA2D_IRQHandler+0x152>
{
/* Disable the transfer watermark interrupt */
__HAL_DMA2D_DISABLE_IT(hdma2d, DMA2D_IT_TW);
8001a6e: 687b ldr r3, [r7, #4]
8001a70: 681b ldr r3, [r3, #0]
8001a72: 681a ldr r2, [r3, #0]
8001a74: 687b ldr r3, [r7, #4]
8001a76: 681b ldr r3, [r3, #0]
8001a78: f422 6280 bic.w r2, r2, #1024 @ 0x400
8001a7c: 601a str r2, [r3, #0]
/* Clear the transfer watermark flag */
__HAL_DMA2D_CLEAR_FLAG(hdma2d, DMA2D_FLAG_TW);
8001a7e: 687b ldr r3, [r7, #4]
8001a80: 681b ldr r3, [r3, #0]
8001a82: 2204 movs r2, #4
8001a84: 609a str r2, [r3, #8]
/* Transfer watermark Callback */
#if (USE_HAL_DMA2D_REGISTER_CALLBACKS == 1)
hdma2d->LineEventCallback(hdma2d);
#else
HAL_DMA2D_LineEventCallback(hdma2d);
8001a86: 6878 ldr r0, [r7, #4]
8001a88: f000 f853 bl 8001b32 <HAL_DMA2D_LineEventCallback>
#endif /* USE_HAL_DMA2D_REGISTER_CALLBACKS */
}
}
/* Transfer Complete Interrupt management ************************************/
if ((isrflags & DMA2D_FLAG_TC) != 0U)
8001a8c: 68fb ldr r3, [r7, #12]
8001a8e: f003 0302 and.w r3, r3, #2
8001a92: 2b00 cmp r3, #0
8001a94: d024 beq.n 8001ae0 <HAL_DMA2D_IRQHandler+0x1a6>
{
if ((crflags & DMA2D_IT_TC) != 0U)
8001a96: 68bb ldr r3, [r7, #8]
8001a98: f403 7300 and.w r3, r3, #512 @ 0x200
8001a9c: 2b00 cmp r3, #0
8001a9e: d01f beq.n 8001ae0 <HAL_DMA2D_IRQHandler+0x1a6>
{
/* Disable the transfer complete interrupt */
__HAL_DMA2D_DISABLE_IT(hdma2d, DMA2D_IT_TC);
8001aa0: 687b ldr r3, [r7, #4]
8001aa2: 681b ldr r3, [r3, #0]
8001aa4: 681a ldr r2, [r3, #0]
8001aa6: 687b ldr r3, [r7, #4]
8001aa8: 681b ldr r3, [r3, #0]
8001aaa: f422 7200 bic.w r2, r2, #512 @ 0x200
8001aae: 601a str r2, [r3, #0]
/* Clear the transfer complete flag */
__HAL_DMA2D_CLEAR_FLAG(hdma2d, DMA2D_FLAG_TC);
8001ab0: 687b ldr r3, [r7, #4]
8001ab2: 681b ldr r3, [r3, #0]
8001ab4: 2202 movs r2, #2
8001ab6: 609a str r2, [r3, #8]
/* Update error code */
hdma2d->ErrorCode |= HAL_DMA2D_ERROR_NONE;
8001ab8: 687b ldr r3, [r7, #4]
8001aba: 6bda ldr r2, [r3, #60] @ 0x3c
8001abc: 687b ldr r3, [r7, #4]
8001abe: 63da str r2, [r3, #60] @ 0x3c
/* Change DMA2D state */
hdma2d->State = HAL_DMA2D_STATE_READY;
8001ac0: 687b ldr r3, [r7, #4]
8001ac2: 2201 movs r2, #1
8001ac4: f883 2039 strb.w r2, [r3, #57] @ 0x39
/* Process Unlocked */
__HAL_UNLOCK(hdma2d);
8001ac8: 687b ldr r3, [r7, #4]
8001aca: 2200 movs r2, #0
8001acc: f883 2038 strb.w r2, [r3, #56] @ 0x38
if (hdma2d->XferCpltCallback != NULL)
8001ad0: 687b ldr r3, [r7, #4]
8001ad2: 691b ldr r3, [r3, #16]
8001ad4: 2b00 cmp r3, #0
8001ad6: d003 beq.n 8001ae0 <HAL_DMA2D_IRQHandler+0x1a6>
{
/* Transfer complete Callback */
hdma2d->XferCpltCallback(hdma2d);
8001ad8: 687b ldr r3, [r7, #4]
8001ada: 691b ldr r3, [r3, #16]
8001adc: 6878 ldr r0, [r7, #4]
8001ade: 4798 blx r3
}
}
}
/* CLUT Transfer Complete Interrupt management ******************************/
if ((isrflags & DMA2D_FLAG_CTC) != 0U)
8001ae0: 68fb ldr r3, [r7, #12]
8001ae2: f003 0310 and.w r3, r3, #16
8001ae6: 2b00 cmp r3, #0
8001ae8: d01f beq.n 8001b2a <HAL_DMA2D_IRQHandler+0x1f0>
{
if ((crflags & DMA2D_IT_CTC) != 0U)
8001aea: 68bb ldr r3, [r7, #8]
8001aec: f403 5380 and.w r3, r3, #4096 @ 0x1000
8001af0: 2b00 cmp r3, #0
8001af2: d01a beq.n 8001b2a <HAL_DMA2D_IRQHandler+0x1f0>
{
/* Disable the CLUT transfer complete interrupt */
__HAL_DMA2D_DISABLE_IT(hdma2d, DMA2D_IT_CTC);
8001af4: 687b ldr r3, [r7, #4]
8001af6: 681b ldr r3, [r3, #0]
8001af8: 681a ldr r2, [r3, #0]
8001afa: 687b ldr r3, [r7, #4]
8001afc: 681b ldr r3, [r3, #0]
8001afe: f422 5280 bic.w r2, r2, #4096 @ 0x1000
8001b02: 601a str r2, [r3, #0]
/* Clear the CLUT transfer complete flag */
__HAL_DMA2D_CLEAR_FLAG(hdma2d, DMA2D_FLAG_CTC);
8001b04: 687b ldr r3, [r7, #4]
8001b06: 681b ldr r3, [r3, #0]
8001b08: 2210 movs r2, #16
8001b0a: 609a str r2, [r3, #8]
/* Update error code */
hdma2d->ErrorCode |= HAL_DMA2D_ERROR_NONE;
8001b0c: 687b ldr r3, [r7, #4]
8001b0e: 6bda ldr r2, [r3, #60] @ 0x3c
8001b10: 687b ldr r3, [r7, #4]
8001b12: 63da str r2, [r3, #60] @ 0x3c
/* Change DMA2D state */
hdma2d->State = HAL_DMA2D_STATE_READY;
8001b14: 687b ldr r3, [r7, #4]
8001b16: 2201 movs r2, #1
8001b18: f883 2039 strb.w r2, [r3, #57] @ 0x39
/* Process Unlocked */
__HAL_UNLOCK(hdma2d);
8001b1c: 687b ldr r3, [r7, #4]
8001b1e: 2200 movs r2, #0
8001b20: f883 2038 strb.w r2, [r3, #56] @ 0x38
/* CLUT Transfer complete Callback */
#if (USE_HAL_DMA2D_REGISTER_CALLBACKS == 1)
hdma2d->CLUTLoadingCpltCallback(hdma2d);
#else
HAL_DMA2D_CLUTLoadingCpltCallback(hdma2d);
8001b24: 6878 ldr r0, [r7, #4]
8001b26: f000 f80e bl 8001b46 <HAL_DMA2D_CLUTLoadingCpltCallback>
#endif /* USE_HAL_DMA2D_REGISTER_CALLBACKS */
}
}
}
8001b2a: bf00 nop
8001b2c: 3710 adds r7, #16
8001b2e: 46bd mov sp, r7
8001b30: bd80 pop {r7, pc}
08001b32 <HAL_DMA2D_LineEventCallback>:
* @param hdma2d pointer to a DMA2D_HandleTypeDef structure that contains
* the configuration information for the DMA2D.
* @retval None
*/
__weak void HAL_DMA2D_LineEventCallback(DMA2D_HandleTypeDef *hdma2d)
{
8001b32: b480 push {r7}
8001b34: b083 sub sp, #12
8001b36: af00 add r7, sp, #0
8001b38: 6078 str r0, [r7, #4]
UNUSED(hdma2d);
/* NOTE : This function should not be modified; when the callback is needed,
the HAL_DMA2D_LineEventCallback can be implemented in the user file.
*/
}
8001b3a: bf00 nop
8001b3c: 370c adds r7, #12
8001b3e: 46bd mov sp, r7
8001b40: f85d 7b04 ldr.w r7, [sp], #4
8001b44: 4770 bx lr
08001b46 <HAL_DMA2D_CLUTLoadingCpltCallback>:
* @param hdma2d pointer to a DMA2D_HandleTypeDef structure that contains
* the configuration information for the DMA2D.
* @retval None
*/
__weak void HAL_DMA2D_CLUTLoadingCpltCallback(DMA2D_HandleTypeDef *hdma2d)
{
8001b46: b480 push {r7}
8001b48: b083 sub sp, #12
8001b4a: af00 add r7, sp, #0
8001b4c: 6078 str r0, [r7, #4]
UNUSED(hdma2d);
/* NOTE : This function should not be modified; when the callback is needed,
the HAL_DMA2D_CLUTLoadingCpltCallback can be implemented in the user file.
*/
}
8001b4e: bf00 nop
8001b50: 370c adds r7, #12
8001b52: 46bd mov sp, r7
8001b54: f85d 7b04 ldr.w r7, [sp], #4
8001b58: 4770 bx lr
...
08001b5c <HAL_DMA2D_ConfigLayer>:
* This parameter can be one of the following values:
* DMA2D_BACKGROUND_LAYER(0) / DMA2D_FOREGROUND_LAYER(1)
* @retval HAL status
*/
HAL_StatusTypeDef HAL_DMA2D_ConfigLayer(DMA2D_HandleTypeDef *hdma2d, uint32_t LayerIdx)
{
8001b5c: b480 push {r7}
8001b5e: b087 sub sp, #28
8001b60: af00 add r7, sp, #0
8001b62: 6078 str r0, [r7, #4]
8001b64: 6039 str r1, [r7, #0]
uint32_t regValue;
/* Check the parameters */
assert_param(IS_DMA2D_LAYER(LayerIdx));
assert_param(IS_DMA2D_OFFSET(hdma2d->LayerCfg[LayerIdx].InputOffset));
if (hdma2d->Init.Mode != DMA2D_R2M)
8001b66: 687b ldr r3, [r7, #4]
8001b68: 685b ldr r3, [r3, #4]
8001b6a: f5b3 3f40 cmp.w r3, #196608 @ 0x30000
assert_param(IS_DMA2D_ALPHA_MODE(hdma2d->LayerCfg[LayerIdx].AlphaMode));
}
}
/* Process locked */
__HAL_LOCK(hdma2d);
8001b6e: 687b ldr r3, [r7, #4]
8001b70: f893 3038 ldrb.w r3, [r3, #56] @ 0x38
8001b74: 2b01 cmp r3, #1
8001b76: d101 bne.n 8001b7c <HAL_DMA2D_ConfigLayer+0x20>
8001b78: 2302 movs r3, #2
8001b7a: e079 b.n 8001c70 <HAL_DMA2D_ConfigLayer+0x114>
8001b7c: 687b ldr r3, [r7, #4]
8001b7e: 2201 movs r2, #1
8001b80: f883 2038 strb.w r2, [r3, #56] @ 0x38
/* Change DMA2D peripheral state */
hdma2d->State = HAL_DMA2D_STATE_BUSY;
8001b84: 687b ldr r3, [r7, #4]
8001b86: 2202 movs r2, #2
8001b88: f883 2039 strb.w r2, [r3, #57] @ 0x39
pLayerCfg = &hdma2d->LayerCfg[LayerIdx];
8001b8c: 683b ldr r3, [r7, #0]
8001b8e: 011b lsls r3, r3, #4
8001b90: 3318 adds r3, #24
8001b92: 687a ldr r2, [r7, #4]
8001b94: 4413 add r3, r2
8001b96: 613b str r3, [r7, #16]
/* Prepare the value to be written to the BGPFCCR or FGPFCCR register */
regValue = pLayerCfg->InputColorMode | (pLayerCfg->AlphaMode << DMA2D_BGPFCCR_AM_Pos);
8001b98: 693b ldr r3, [r7, #16]
8001b9a: 685a ldr r2, [r3, #4]
8001b9c: 693b ldr r3, [r7, #16]
8001b9e: 689b ldr r3, [r3, #8]
8001ba0: 041b lsls r3, r3, #16
8001ba2: 4313 orrs r3, r2
8001ba4: 617b str r3, [r7, #20]
regMask = DMA2D_BGPFCCR_CM | DMA2D_BGPFCCR_AM | DMA2D_BGPFCCR_ALPHA;
8001ba6: 4b35 ldr r3, [pc, #212] @ (8001c7c <HAL_DMA2D_ConfigLayer+0x120>)
8001ba8: 60fb str r3, [r7, #12]
if ((pLayerCfg->InputColorMode == DMA2D_INPUT_A4) || (pLayerCfg->InputColorMode == DMA2D_INPUT_A8))
8001baa: 693b ldr r3, [r7, #16]
8001bac: 685b ldr r3, [r3, #4]
8001bae: 2b0a cmp r3, #10
8001bb0: d003 beq.n 8001bba <HAL_DMA2D_ConfigLayer+0x5e>
8001bb2: 693b ldr r3, [r7, #16]
8001bb4: 685b ldr r3, [r3, #4]
8001bb6: 2b09 cmp r3, #9
8001bb8: d107 bne.n 8001bca <HAL_DMA2D_ConfigLayer+0x6e>
{
regValue |= (pLayerCfg->InputAlpha & DMA2D_BGPFCCR_ALPHA);
8001bba: 693b ldr r3, [r7, #16]
8001bbc: 68db ldr r3, [r3, #12]
8001bbe: f003 437f and.w r3, r3, #4278190080 @ 0xff000000
8001bc2: 697a ldr r2, [r7, #20]
8001bc4: 4313 orrs r3, r2
8001bc6: 617b str r3, [r7, #20]
8001bc8: e005 b.n 8001bd6 <HAL_DMA2D_ConfigLayer+0x7a>
}
else
{
regValue |= (pLayerCfg->InputAlpha << DMA2D_BGPFCCR_ALPHA_Pos);
8001bca: 693b ldr r3, [r7, #16]
8001bcc: 68db ldr r3, [r3, #12]
8001bce: 061b lsls r3, r3, #24
8001bd0: 697a ldr r2, [r7, #20]
8001bd2: 4313 orrs r3, r2
8001bd4: 617b str r3, [r7, #20]
}
/* Configure the background DMA2D layer */
if (LayerIdx == DMA2D_BACKGROUND_LAYER)
8001bd6: 683b ldr r3, [r7, #0]
8001bd8: 2b00 cmp r3, #0
8001bda: d120 bne.n 8001c1e <HAL_DMA2D_ConfigLayer+0xc2>
{
/* Write DMA2D BGPFCCR register */
MODIFY_REG(hdma2d->Instance->BGPFCCR, regMask, regValue);
8001bdc: 687b ldr r3, [r7, #4]
8001bde: 681b ldr r3, [r3, #0]
8001be0: 6a5a ldr r2, [r3, #36] @ 0x24
8001be2: 68fb ldr r3, [r7, #12]
8001be4: 43db mvns r3, r3
8001be6: ea02 0103 and.w r1, r2, r3
8001bea: 687b ldr r3, [r7, #4]
8001bec: 681b ldr r3, [r3, #0]
8001bee: 697a ldr r2, [r7, #20]
8001bf0: 430a orrs r2, r1
8001bf2: 625a str r2, [r3, #36] @ 0x24
/* DMA2D BGOR register configuration -------------------------------------*/
WRITE_REG(hdma2d->Instance->BGOR, pLayerCfg->InputOffset);
8001bf4: 687b ldr r3, [r7, #4]
8001bf6: 681b ldr r3, [r3, #0]
8001bf8: 693a ldr r2, [r7, #16]
8001bfa: 6812 ldr r2, [r2, #0]
8001bfc: 619a str r2, [r3, #24]
/* DMA2D BGCOLR register configuration -------------------------------------*/
if ((pLayerCfg->InputColorMode == DMA2D_INPUT_A4) || (pLayerCfg->InputColorMode == DMA2D_INPUT_A8))
8001bfe: 693b ldr r3, [r7, #16]
8001c00: 685b ldr r3, [r3, #4]
8001c02: 2b0a cmp r3, #10
8001c04: d003 beq.n 8001c0e <HAL_DMA2D_ConfigLayer+0xb2>
8001c06: 693b ldr r3, [r7, #16]
8001c08: 685b ldr r3, [r3, #4]
8001c0a: 2b09 cmp r3, #9
8001c0c: d127 bne.n 8001c5e <HAL_DMA2D_ConfigLayer+0x102>
{
WRITE_REG(hdma2d->Instance->BGCOLR, pLayerCfg->InputAlpha & (DMA2D_BGCOLR_BLUE | DMA2D_BGCOLR_GREEN | \
8001c0e: 693b ldr r3, [r7, #16]
8001c10: 68da ldr r2, [r3, #12]
8001c12: 687b ldr r3, [r7, #4]
8001c14: 681b ldr r3, [r3, #0]
8001c16: f022 427f bic.w r2, r2, #4278190080 @ 0xff000000
8001c1a: 629a str r2, [r3, #40] @ 0x28
8001c1c: e01f b.n 8001c5e <HAL_DMA2D_ConfigLayer+0x102>
else
{
/* Write DMA2D FGPFCCR register */
MODIFY_REG(hdma2d->Instance->FGPFCCR, regMask, regValue);
8001c1e: 687b ldr r3, [r7, #4]
8001c20: 681b ldr r3, [r3, #0]
8001c22: 69da ldr r2, [r3, #28]
8001c24: 68fb ldr r3, [r7, #12]
8001c26: 43db mvns r3, r3
8001c28: ea02 0103 and.w r1, r2, r3
8001c2c: 687b ldr r3, [r7, #4]
8001c2e: 681b ldr r3, [r3, #0]
8001c30: 697a ldr r2, [r7, #20]
8001c32: 430a orrs r2, r1
8001c34: 61da str r2, [r3, #28]
/* DMA2D FGOR register configuration -------------------------------------*/
WRITE_REG(hdma2d->Instance->FGOR, pLayerCfg->InputOffset);
8001c36: 687b ldr r3, [r7, #4]
8001c38: 681b ldr r3, [r3, #0]
8001c3a: 693a ldr r2, [r7, #16]
8001c3c: 6812 ldr r2, [r2, #0]
8001c3e: 611a str r2, [r3, #16]
/* DMA2D FGCOLR register configuration -------------------------------------*/
if ((pLayerCfg->InputColorMode == DMA2D_INPUT_A4) || (pLayerCfg->InputColorMode == DMA2D_INPUT_A8))
8001c40: 693b ldr r3, [r7, #16]
8001c42: 685b ldr r3, [r3, #4]
8001c44: 2b0a cmp r3, #10
8001c46: d003 beq.n 8001c50 <HAL_DMA2D_ConfigLayer+0xf4>
8001c48: 693b ldr r3, [r7, #16]
8001c4a: 685b ldr r3, [r3, #4]
8001c4c: 2b09 cmp r3, #9
8001c4e: d106 bne.n 8001c5e <HAL_DMA2D_ConfigLayer+0x102>
{
WRITE_REG(hdma2d->Instance->FGCOLR, pLayerCfg->InputAlpha & (DMA2D_FGCOLR_BLUE | DMA2D_FGCOLR_GREEN | \
8001c50: 693b ldr r3, [r7, #16]
8001c52: 68da ldr r2, [r3, #12]
8001c54: 687b ldr r3, [r7, #4]
8001c56: 681b ldr r3, [r3, #0]
8001c58: f022 427f bic.w r2, r2, #4278190080 @ 0xff000000
8001c5c: 621a str r2, [r3, #32]
DMA2D_FGCOLR_RED));
}
}
/* Initialize the DMA2D state*/
hdma2d->State = HAL_DMA2D_STATE_READY;
8001c5e: 687b ldr r3, [r7, #4]
8001c60: 2201 movs r2, #1
8001c62: f883 2039 strb.w r2, [r3, #57] @ 0x39
/* Process unlocked */
__HAL_UNLOCK(hdma2d);
8001c66: 687b ldr r3, [r7, #4]
8001c68: 2200 movs r2, #0
8001c6a: f883 2038 strb.w r2, [r3, #56] @ 0x38
return HAL_OK;
8001c6e: 2300 movs r3, #0
}
8001c70: 4618 mov r0, r3
8001c72: 371c adds r7, #28
8001c74: 46bd mov sp, r7
8001c76: f85d 7b04 ldr.w r7, [sp], #4
8001c7a: 4770 bx lr
8001c7c: ff03000f .word 0xff03000f
08001c80 <HAL_GPIO_Init>:
* @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)
{
8001c80: b480 push {r7}
8001c82: b089 sub sp, #36 @ 0x24
8001c84: af00 add r7, sp, #0
8001c86: 6078 str r0, [r7, #4]
8001c88: 6039 str r1, [r7, #0]
uint32_t position;
uint32_t ioposition = 0x00U;
8001c8a: 2300 movs r3, #0
8001c8c: 617b str r3, [r7, #20]
uint32_t iocurrent = 0x00U;
8001c8e: 2300 movs r3, #0
8001c90: 613b str r3, [r7, #16]
uint32_t temp = 0x00U;
8001c92: 2300 movs r3, #0
8001c94: 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++)
8001c96: 2300 movs r3, #0
8001c98: 61fb str r3, [r7, #28]
8001c9a: e177 b.n 8001f8c <HAL_GPIO_Init+0x30c>
{
/* Get the IO position */
ioposition = 0x01U << position;
8001c9c: 2201 movs r2, #1
8001c9e: 69fb ldr r3, [r7, #28]
8001ca0: fa02 f303 lsl.w r3, r2, r3
8001ca4: 617b str r3, [r7, #20]
/* Get the current IO position */
iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition;
8001ca6: 683b ldr r3, [r7, #0]
8001ca8: 681b ldr r3, [r3, #0]
8001caa: 697a ldr r2, [r7, #20]
8001cac: 4013 ands r3, r2
8001cae: 613b str r3, [r7, #16]
if(iocurrent == ioposition)
8001cb0: 693a ldr r2, [r7, #16]
8001cb2: 697b ldr r3, [r7, #20]
8001cb4: 429a cmp r2, r3
8001cb6: f040 8166 bne.w 8001f86 <HAL_GPIO_Init+0x306>
{
/*--------------------- GPIO Mode Configuration ------------------------*/
/* In case of Output or Alternate function mode selection */
if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \
8001cba: 683b ldr r3, [r7, #0]
8001cbc: 685b ldr r3, [r3, #4]
8001cbe: f003 0303 and.w r3, r3, #3
8001cc2: 2b01 cmp r3, #1
8001cc4: d005 beq.n 8001cd2 <HAL_GPIO_Init+0x52>
(GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
8001cc6: 683b ldr r3, [r7, #0]
8001cc8: 685b ldr r3, [r3, #4]
8001cca: f003 0303 and.w r3, r3, #3
if(((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || \
8001cce: 2b02 cmp r3, #2
8001cd0: d130 bne.n 8001d34 <HAL_GPIO_Init+0xb4>
{
/* Check the Speed parameter */
assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
/* Configure the IO Speed */
temp = GPIOx->OSPEEDR;
8001cd2: 687b ldr r3, [r7, #4]
8001cd4: 689b ldr r3, [r3, #8]
8001cd6: 61bb str r3, [r7, #24]
temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2U));
8001cd8: 69fb ldr r3, [r7, #28]
8001cda: 005b lsls r3, r3, #1
8001cdc: 2203 movs r2, #3
8001cde: fa02 f303 lsl.w r3, r2, r3
8001ce2: 43db mvns r3, r3
8001ce4: 69ba ldr r2, [r7, #24]
8001ce6: 4013 ands r3, r2
8001ce8: 61bb str r3, [r7, #24]
temp |= (GPIO_Init->Speed << (position * 2U));
8001cea: 683b ldr r3, [r7, #0]
8001cec: 68da ldr r2, [r3, #12]
8001cee: 69fb ldr r3, [r7, #28]
8001cf0: 005b lsls r3, r3, #1
8001cf2: fa02 f303 lsl.w r3, r2, r3
8001cf6: 69ba ldr r2, [r7, #24]
8001cf8: 4313 orrs r3, r2
8001cfa: 61bb str r3, [r7, #24]
GPIOx->OSPEEDR = temp;
8001cfc: 687b ldr r3, [r7, #4]
8001cfe: 69ba ldr r2, [r7, #24]
8001d00: 609a str r2, [r3, #8]
/* Configure the IO Output Type */
temp = GPIOx->OTYPER;
8001d02: 687b ldr r3, [r7, #4]
8001d04: 685b ldr r3, [r3, #4]
8001d06: 61bb str r3, [r7, #24]
temp &= ~(GPIO_OTYPER_OT_0 << position) ;
8001d08: 2201 movs r2, #1
8001d0a: 69fb ldr r3, [r7, #28]
8001d0c: fa02 f303 lsl.w r3, r2, r3
8001d10: 43db mvns r3, r3
8001d12: 69ba ldr r2, [r7, #24]
8001d14: 4013 ands r3, r2
8001d16: 61bb str r3, [r7, #24]
temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
8001d18: 683b ldr r3, [r7, #0]
8001d1a: 685b ldr r3, [r3, #4]
8001d1c: 091b lsrs r3, r3, #4
8001d1e: f003 0201 and.w r2, r3, #1
8001d22: 69fb ldr r3, [r7, #28]
8001d24: fa02 f303 lsl.w r3, r2, r3
8001d28: 69ba ldr r2, [r7, #24]
8001d2a: 4313 orrs r3, r2
8001d2c: 61bb str r3, [r7, #24]
GPIOx->OTYPER = temp;
8001d2e: 687b ldr r3, [r7, #4]
8001d30: 69ba ldr r2, [r7, #24]
8001d32: 605a str r2, [r3, #4]
}
if((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
8001d34: 683b ldr r3, [r7, #0]
8001d36: 685b ldr r3, [r3, #4]
8001d38: f003 0303 and.w r3, r3, #3
8001d3c: 2b03 cmp r3, #3
8001d3e: d017 beq.n 8001d70 <HAL_GPIO_Init+0xf0>
{
/* 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;
8001d40: 687b ldr r3, [r7, #4]
8001d42: 68db ldr r3, [r3, #12]
8001d44: 61bb str r3, [r7, #24]
temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2U));
8001d46: 69fb ldr r3, [r7, #28]
8001d48: 005b lsls r3, r3, #1
8001d4a: 2203 movs r2, #3
8001d4c: fa02 f303 lsl.w r3, r2, r3
8001d50: 43db mvns r3, r3
8001d52: 69ba ldr r2, [r7, #24]
8001d54: 4013 ands r3, r2
8001d56: 61bb str r3, [r7, #24]
temp |= ((GPIO_Init->Pull) << (position * 2U));
8001d58: 683b ldr r3, [r7, #0]
8001d5a: 689a ldr r2, [r3, #8]
8001d5c: 69fb ldr r3, [r7, #28]
8001d5e: 005b lsls r3, r3, #1
8001d60: fa02 f303 lsl.w r3, r2, r3
8001d64: 69ba ldr r2, [r7, #24]
8001d66: 4313 orrs r3, r2
8001d68: 61bb str r3, [r7, #24]
GPIOx->PUPDR = temp;
8001d6a: 687b ldr r3, [r7, #4]
8001d6c: 69ba ldr r2, [r7, #24]
8001d6e: 60da str r2, [r3, #12]
}
/* In case of Alternate function mode selection */
if((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
8001d70: 683b ldr r3, [r7, #0]
8001d72: 685b ldr r3, [r3, #4]
8001d74: f003 0303 and.w r3, r3, #3
8001d78: 2b02 cmp r3, #2
8001d7a: d123 bne.n 8001dc4 <HAL_GPIO_Init+0x144>
{
/* 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];
8001d7c: 69fb ldr r3, [r7, #28]
8001d7e: 08da lsrs r2, r3, #3
8001d80: 687b ldr r3, [r7, #4]
8001d82: 3208 adds r2, #8
8001d84: f853 3022 ldr.w r3, [r3, r2, lsl #2]
8001d88: 61bb str r3, [r7, #24]
temp &= ~(0xFU << ((uint32_t)(position & 0x07U) * 4U)) ;
8001d8a: 69fb ldr r3, [r7, #28]
8001d8c: f003 0307 and.w r3, r3, #7
8001d90: 009b lsls r3, r3, #2
8001d92: 220f movs r2, #15
8001d94: fa02 f303 lsl.w r3, r2, r3
8001d98: 43db mvns r3, r3
8001d9a: 69ba ldr r2, [r7, #24]
8001d9c: 4013 ands r3, r2
8001d9e: 61bb str r3, [r7, #24]
temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & 0x07U) * 4U));
8001da0: 683b ldr r3, [r7, #0]
8001da2: 691a ldr r2, [r3, #16]
8001da4: 69fb ldr r3, [r7, #28]
8001da6: f003 0307 and.w r3, r3, #7
8001daa: 009b lsls r3, r3, #2
8001dac: fa02 f303 lsl.w r3, r2, r3
8001db0: 69ba ldr r2, [r7, #24]
8001db2: 4313 orrs r3, r2
8001db4: 61bb str r3, [r7, #24]
GPIOx->AFR[position >> 3U] = temp;
8001db6: 69fb ldr r3, [r7, #28]
8001db8: 08da lsrs r2, r3, #3
8001dba: 687b ldr r3, [r7, #4]
8001dbc: 3208 adds r2, #8
8001dbe: 69b9 ldr r1, [r7, #24]
8001dc0: f843 1022 str.w r1, [r3, r2, lsl #2]
}
/* Configure IO Direction mode (Input, Output, Alternate or Analog) */
temp = GPIOx->MODER;
8001dc4: 687b ldr r3, [r7, #4]
8001dc6: 681b ldr r3, [r3, #0]
8001dc8: 61bb str r3, [r7, #24]
temp &= ~(GPIO_MODER_MODER0 << (position * 2U));
8001dca: 69fb ldr r3, [r7, #28]
8001dcc: 005b lsls r3, r3, #1
8001dce: 2203 movs r2, #3
8001dd0: fa02 f303 lsl.w r3, r2, r3
8001dd4: 43db mvns r3, r3
8001dd6: 69ba ldr r2, [r7, #24]
8001dd8: 4013 ands r3, r2
8001dda: 61bb str r3, [r7, #24]
temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2U));
8001ddc: 683b ldr r3, [r7, #0]
8001dde: 685b ldr r3, [r3, #4]
8001de0: f003 0203 and.w r2, r3, #3
8001de4: 69fb ldr r3, [r7, #28]
8001de6: 005b lsls r3, r3, #1
8001de8: fa02 f303 lsl.w r3, r2, r3
8001dec: 69ba ldr r2, [r7, #24]
8001dee: 4313 orrs r3, r2
8001df0: 61bb str r3, [r7, #24]
GPIOx->MODER = temp;
8001df2: 687b ldr r3, [r7, #4]
8001df4: 69ba ldr r2, [r7, #24]
8001df6: 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)
8001df8: 683b ldr r3, [r7, #0]
8001dfa: 685b ldr r3, [r3, #4]
8001dfc: f403 3340 and.w r3, r3, #196608 @ 0x30000
8001e00: 2b00 cmp r3, #0
8001e02: f000 80c0 beq.w 8001f86 <HAL_GPIO_Init+0x306>
{
/* Enable SYSCFG Clock */
__HAL_RCC_SYSCFG_CLK_ENABLE();
8001e06: 2300 movs r3, #0
8001e08: 60fb str r3, [r7, #12]
8001e0a: 4b66 ldr r3, [pc, #408] @ (8001fa4 <HAL_GPIO_Init+0x324>)
8001e0c: 6c5b ldr r3, [r3, #68] @ 0x44
8001e0e: 4a65 ldr r2, [pc, #404] @ (8001fa4 <HAL_GPIO_Init+0x324>)
8001e10: f443 4380 orr.w r3, r3, #16384 @ 0x4000
8001e14: 6453 str r3, [r2, #68] @ 0x44
8001e16: 4b63 ldr r3, [pc, #396] @ (8001fa4 <HAL_GPIO_Init+0x324>)
8001e18: 6c5b ldr r3, [r3, #68] @ 0x44
8001e1a: f403 4380 and.w r3, r3, #16384 @ 0x4000
8001e1e: 60fb str r3, [r7, #12]
8001e20: 68fb ldr r3, [r7, #12]
temp = SYSCFG->EXTICR[position >> 2U];
8001e22: 4a61 ldr r2, [pc, #388] @ (8001fa8 <HAL_GPIO_Init+0x328>)
8001e24: 69fb ldr r3, [r7, #28]
8001e26: 089b lsrs r3, r3, #2
8001e28: 3302 adds r3, #2
8001e2a: f852 3023 ldr.w r3, [r2, r3, lsl #2]
8001e2e: 61bb str r3, [r7, #24]
temp &= ~(0x0FU << (4U * (position & 0x03U)));
8001e30: 69fb ldr r3, [r7, #28]
8001e32: f003 0303 and.w r3, r3, #3
8001e36: 009b lsls r3, r3, #2
8001e38: 220f movs r2, #15
8001e3a: fa02 f303 lsl.w r3, r2, r3
8001e3e: 43db mvns r3, r3
8001e40: 69ba ldr r2, [r7, #24]
8001e42: 4013 ands r3, r2
8001e44: 61bb str r3, [r7, #24]
temp |= ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4U * (position & 0x03U)));
8001e46: 687b ldr r3, [r7, #4]
8001e48: 4a58 ldr r2, [pc, #352] @ (8001fac <HAL_GPIO_Init+0x32c>)
8001e4a: 4293 cmp r3, r2
8001e4c: d037 beq.n 8001ebe <HAL_GPIO_Init+0x23e>
8001e4e: 687b ldr r3, [r7, #4]
8001e50: 4a57 ldr r2, [pc, #348] @ (8001fb0 <HAL_GPIO_Init+0x330>)
8001e52: 4293 cmp r3, r2
8001e54: d031 beq.n 8001eba <HAL_GPIO_Init+0x23a>
8001e56: 687b ldr r3, [r7, #4]
8001e58: 4a56 ldr r2, [pc, #344] @ (8001fb4 <HAL_GPIO_Init+0x334>)
8001e5a: 4293 cmp r3, r2
8001e5c: d02b beq.n 8001eb6 <HAL_GPIO_Init+0x236>
8001e5e: 687b ldr r3, [r7, #4]
8001e60: 4a55 ldr r2, [pc, #340] @ (8001fb8 <HAL_GPIO_Init+0x338>)
8001e62: 4293 cmp r3, r2
8001e64: d025 beq.n 8001eb2 <HAL_GPIO_Init+0x232>
8001e66: 687b ldr r3, [r7, #4]
8001e68: 4a54 ldr r2, [pc, #336] @ (8001fbc <HAL_GPIO_Init+0x33c>)
8001e6a: 4293 cmp r3, r2
8001e6c: d01f beq.n 8001eae <HAL_GPIO_Init+0x22e>
8001e6e: 687b ldr r3, [r7, #4]
8001e70: 4a53 ldr r2, [pc, #332] @ (8001fc0 <HAL_GPIO_Init+0x340>)
8001e72: 4293 cmp r3, r2
8001e74: d019 beq.n 8001eaa <HAL_GPIO_Init+0x22a>
8001e76: 687b ldr r3, [r7, #4]
8001e78: 4a52 ldr r2, [pc, #328] @ (8001fc4 <HAL_GPIO_Init+0x344>)
8001e7a: 4293 cmp r3, r2
8001e7c: d013 beq.n 8001ea6 <HAL_GPIO_Init+0x226>
8001e7e: 687b ldr r3, [r7, #4]
8001e80: 4a51 ldr r2, [pc, #324] @ (8001fc8 <HAL_GPIO_Init+0x348>)
8001e82: 4293 cmp r3, r2
8001e84: d00d beq.n 8001ea2 <HAL_GPIO_Init+0x222>
8001e86: 687b ldr r3, [r7, #4]
8001e88: 4a50 ldr r2, [pc, #320] @ (8001fcc <HAL_GPIO_Init+0x34c>)
8001e8a: 4293 cmp r3, r2
8001e8c: d007 beq.n 8001e9e <HAL_GPIO_Init+0x21e>
8001e8e: 687b ldr r3, [r7, #4]
8001e90: 4a4f ldr r2, [pc, #316] @ (8001fd0 <HAL_GPIO_Init+0x350>)
8001e92: 4293 cmp r3, r2
8001e94: d101 bne.n 8001e9a <HAL_GPIO_Init+0x21a>
8001e96: 2309 movs r3, #9
8001e98: e012 b.n 8001ec0 <HAL_GPIO_Init+0x240>
8001e9a: 230a movs r3, #10
8001e9c: e010 b.n 8001ec0 <HAL_GPIO_Init+0x240>
8001e9e: 2308 movs r3, #8
8001ea0: e00e b.n 8001ec0 <HAL_GPIO_Init+0x240>
8001ea2: 2307 movs r3, #7
8001ea4: e00c b.n 8001ec0 <HAL_GPIO_Init+0x240>
8001ea6: 2306 movs r3, #6
8001ea8: e00a b.n 8001ec0 <HAL_GPIO_Init+0x240>
8001eaa: 2305 movs r3, #5
8001eac: e008 b.n 8001ec0 <HAL_GPIO_Init+0x240>
8001eae: 2304 movs r3, #4
8001eb0: e006 b.n 8001ec0 <HAL_GPIO_Init+0x240>
8001eb2: 2303 movs r3, #3
8001eb4: e004 b.n 8001ec0 <HAL_GPIO_Init+0x240>
8001eb6: 2302 movs r3, #2
8001eb8: e002 b.n 8001ec0 <HAL_GPIO_Init+0x240>
8001eba: 2301 movs r3, #1
8001ebc: e000 b.n 8001ec0 <HAL_GPIO_Init+0x240>
8001ebe: 2300 movs r3, #0
8001ec0: 69fa ldr r2, [r7, #28]
8001ec2: f002 0203 and.w r2, r2, #3
8001ec6: 0092 lsls r2, r2, #2
8001ec8: 4093 lsls r3, r2
8001eca: 69ba ldr r2, [r7, #24]
8001ecc: 4313 orrs r3, r2
8001ece: 61bb str r3, [r7, #24]
SYSCFG->EXTICR[position >> 2U] = temp;
8001ed0: 4935 ldr r1, [pc, #212] @ (8001fa8 <HAL_GPIO_Init+0x328>)
8001ed2: 69fb ldr r3, [r7, #28]
8001ed4: 089b lsrs r3, r3, #2
8001ed6: 3302 adds r3, #2
8001ed8: 69ba ldr r2, [r7, #24]
8001eda: f841 2023 str.w r2, [r1, r3, lsl #2]
/* Clear Rising Falling edge configuration */
temp = EXTI->RTSR;
8001ede: 4b3d ldr r3, [pc, #244] @ (8001fd4 <HAL_GPIO_Init+0x354>)
8001ee0: 689b ldr r3, [r3, #8]
8001ee2: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)iocurrent);
8001ee4: 693b ldr r3, [r7, #16]
8001ee6: 43db mvns r3, r3
8001ee8: 69ba ldr r2, [r7, #24]
8001eea: 4013 ands r3, r2
8001eec: 61bb str r3, [r7, #24]
if((GPIO_Init->Mode & TRIGGER_RISING) != 0x00U)
8001eee: 683b ldr r3, [r7, #0]
8001ef0: 685b ldr r3, [r3, #4]
8001ef2: f403 1380 and.w r3, r3, #1048576 @ 0x100000
8001ef6: 2b00 cmp r3, #0
8001ef8: d003 beq.n 8001f02 <HAL_GPIO_Init+0x282>
{
temp |= iocurrent;
8001efa: 69ba ldr r2, [r7, #24]
8001efc: 693b ldr r3, [r7, #16]
8001efe: 4313 orrs r3, r2
8001f00: 61bb str r3, [r7, #24]
}
EXTI->RTSR = temp;
8001f02: 4a34 ldr r2, [pc, #208] @ (8001fd4 <HAL_GPIO_Init+0x354>)
8001f04: 69bb ldr r3, [r7, #24]
8001f06: 6093 str r3, [r2, #8]
temp = EXTI->FTSR;
8001f08: 4b32 ldr r3, [pc, #200] @ (8001fd4 <HAL_GPIO_Init+0x354>)
8001f0a: 68db ldr r3, [r3, #12]
8001f0c: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)iocurrent);
8001f0e: 693b ldr r3, [r7, #16]
8001f10: 43db mvns r3, r3
8001f12: 69ba ldr r2, [r7, #24]
8001f14: 4013 ands r3, r2
8001f16: 61bb str r3, [r7, #24]
if((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00U)
8001f18: 683b ldr r3, [r7, #0]
8001f1a: 685b ldr r3, [r3, #4]
8001f1c: f403 1300 and.w r3, r3, #2097152 @ 0x200000
8001f20: 2b00 cmp r3, #0
8001f22: d003 beq.n 8001f2c <HAL_GPIO_Init+0x2ac>
{
temp |= iocurrent;
8001f24: 69ba ldr r2, [r7, #24]
8001f26: 693b ldr r3, [r7, #16]
8001f28: 4313 orrs r3, r2
8001f2a: 61bb str r3, [r7, #24]
}
EXTI->FTSR = temp;
8001f2c: 4a29 ldr r2, [pc, #164] @ (8001fd4 <HAL_GPIO_Init+0x354>)
8001f2e: 69bb ldr r3, [r7, #24]
8001f30: 60d3 str r3, [r2, #12]
temp = EXTI->EMR;
8001f32: 4b28 ldr r3, [pc, #160] @ (8001fd4 <HAL_GPIO_Init+0x354>)
8001f34: 685b ldr r3, [r3, #4]
8001f36: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)iocurrent);
8001f38: 693b ldr r3, [r7, #16]
8001f3a: 43db mvns r3, r3
8001f3c: 69ba ldr r2, [r7, #24]
8001f3e: 4013 ands r3, r2
8001f40: 61bb str r3, [r7, #24]
if((GPIO_Init->Mode & EXTI_EVT) != 0x00U)
8001f42: 683b ldr r3, [r7, #0]
8001f44: 685b ldr r3, [r3, #4]
8001f46: f403 3300 and.w r3, r3, #131072 @ 0x20000
8001f4a: 2b00 cmp r3, #0
8001f4c: d003 beq.n 8001f56 <HAL_GPIO_Init+0x2d6>
{
temp |= iocurrent;
8001f4e: 69ba ldr r2, [r7, #24]
8001f50: 693b ldr r3, [r7, #16]
8001f52: 4313 orrs r3, r2
8001f54: 61bb str r3, [r7, #24]
}
EXTI->EMR = temp;
8001f56: 4a1f ldr r2, [pc, #124] @ (8001fd4 <HAL_GPIO_Init+0x354>)
8001f58: 69bb ldr r3, [r7, #24]
8001f5a: 6053 str r3, [r2, #4]
/* Clear EXTI line configuration */
temp = EXTI->IMR;
8001f5c: 4b1d ldr r3, [pc, #116] @ (8001fd4 <HAL_GPIO_Init+0x354>)
8001f5e: 681b ldr r3, [r3, #0]
8001f60: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)iocurrent);
8001f62: 693b ldr r3, [r7, #16]
8001f64: 43db mvns r3, r3
8001f66: 69ba ldr r2, [r7, #24]
8001f68: 4013 ands r3, r2
8001f6a: 61bb str r3, [r7, #24]
if((GPIO_Init->Mode & EXTI_IT) != 0x00U)
8001f6c: 683b ldr r3, [r7, #0]
8001f6e: 685b ldr r3, [r3, #4]
8001f70: f403 3380 and.w r3, r3, #65536 @ 0x10000
8001f74: 2b00 cmp r3, #0
8001f76: d003 beq.n 8001f80 <HAL_GPIO_Init+0x300>
{
temp |= iocurrent;
8001f78: 69ba ldr r2, [r7, #24]
8001f7a: 693b ldr r3, [r7, #16]
8001f7c: 4313 orrs r3, r2
8001f7e: 61bb str r3, [r7, #24]
}
EXTI->IMR = temp;
8001f80: 4a14 ldr r2, [pc, #80] @ (8001fd4 <HAL_GPIO_Init+0x354>)
8001f82: 69bb ldr r3, [r7, #24]
8001f84: 6013 str r3, [r2, #0]
for(position = 0U; position < GPIO_NUMBER; position++)
8001f86: 69fb ldr r3, [r7, #28]
8001f88: 3301 adds r3, #1
8001f8a: 61fb str r3, [r7, #28]
8001f8c: 69fb ldr r3, [r7, #28]
8001f8e: 2b0f cmp r3, #15
8001f90: f67f ae84 bls.w 8001c9c <HAL_GPIO_Init+0x1c>
}
}
}
}
8001f94: bf00 nop
8001f96: bf00 nop
8001f98: 3724 adds r7, #36 @ 0x24
8001f9a: 46bd mov sp, r7
8001f9c: f85d 7b04 ldr.w r7, [sp], #4
8001fa0: 4770 bx lr
8001fa2: bf00 nop
8001fa4: 40023800 .word 0x40023800
8001fa8: 40013800 .word 0x40013800
8001fac: 40020000 .word 0x40020000
8001fb0: 40020400 .word 0x40020400
8001fb4: 40020800 .word 0x40020800
8001fb8: 40020c00 .word 0x40020c00
8001fbc: 40021000 .word 0x40021000
8001fc0: 40021400 .word 0x40021400
8001fc4: 40021800 .word 0x40021800
8001fc8: 40021c00 .word 0x40021c00
8001fcc: 40022000 .word 0x40022000
8001fd0: 40022400 .word 0x40022400
8001fd4: 40013c00 .word 0x40013c00
08001fd8 <HAL_GPIO_ReadPin>:
* @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)
{
8001fd8: b480 push {r7}
8001fda: b085 sub sp, #20
8001fdc: af00 add r7, sp, #0
8001fde: 6078 str r0, [r7, #4]
8001fe0: 460b mov r3, r1
8001fe2: 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)
8001fe4: 687b ldr r3, [r7, #4]
8001fe6: 691a ldr r2, [r3, #16]
8001fe8: 887b ldrh r3, [r7, #2]
8001fea: 4013 ands r3, r2
8001fec: 2b00 cmp r3, #0
8001fee: d002 beq.n 8001ff6 <HAL_GPIO_ReadPin+0x1e>
{
bitstatus = GPIO_PIN_SET;
8001ff0: 2301 movs r3, #1
8001ff2: 73fb strb r3, [r7, #15]
8001ff4: e001 b.n 8001ffa <HAL_GPIO_ReadPin+0x22>
}
else
{
bitstatus = GPIO_PIN_RESET;
8001ff6: 2300 movs r3, #0
8001ff8: 73fb strb r3, [r7, #15]
}
return bitstatus;
8001ffa: 7bfb ldrb r3, [r7, #15]
}
8001ffc: 4618 mov r0, r3
8001ffe: 3714 adds r7, #20
8002000: 46bd mov sp, r7
8002002: f85d 7b04 ldr.w r7, [sp], #4
8002006: 4770 bx lr
08002008 <HAL_GPIO_WritePin>:
* @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)
{
8002008: b480 push {r7}
800200a: b083 sub sp, #12
800200c: af00 add r7, sp, #0
800200e: 6078 str r0, [r7, #4]
8002010: 460b mov r3, r1
8002012: 807b strh r3, [r7, #2]
8002014: 4613 mov r3, r2
8002016: 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)
8002018: 787b ldrb r3, [r7, #1]
800201a: 2b00 cmp r3, #0
800201c: d003 beq.n 8002026 <HAL_GPIO_WritePin+0x1e>
{
GPIOx->BSRR = GPIO_Pin;
800201e: 887a ldrh r2, [r7, #2]
8002020: 687b ldr r3, [r7, #4]
8002022: 619a str r2, [r3, #24]
}
else
{
GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U;
}
}
8002024: e003 b.n 800202e <HAL_GPIO_WritePin+0x26>
GPIOx->BSRR = (uint32_t)GPIO_Pin << 16U;
8002026: 887b ldrh r3, [r7, #2]
8002028: 041a lsls r2, r3, #16
800202a: 687b ldr r3, [r7, #4]
800202c: 619a str r2, [r3, #24]
}
800202e: bf00 nop
8002030: 370c adds r7, #12
8002032: 46bd mov sp, r7
8002034: f85d 7b04 ldr.w r7, [sp], #4
8002038: 4770 bx lr
0800203a <HAL_HCD_IRQHandler>:
* @brief Handle HCD interrupt request.
* @param hhcd HCD handle
* @retval None
*/
void HAL_HCD_IRQHandler(HCD_HandleTypeDef *hhcd)
{
800203a: b580 push {r7, lr}
800203c: b086 sub sp, #24
800203e: af00 add r7, sp, #0
8002040: 6078 str r0, [r7, #4]
USB_OTG_GlobalTypeDef *USBx = hhcd->Instance;
8002042: 687b ldr r3, [r7, #4]
8002044: 681b ldr r3, [r3, #0]
8002046: 613b str r3, [r7, #16]
uint32_t USBx_BASE = (uint32_t)USBx;
8002048: 693b ldr r3, [r7, #16]
800204a: 60fb str r3, [r7, #12]
uint32_t i;
uint32_t interrupt;
/* Ensure that we are in device mode */
if (USB_GetMode(hhcd->Instance) == USB_OTG_MODE_HOST)
800204c: 687b ldr r3, [r7, #4]
800204e: 681b ldr r3, [r3, #0]
8002050: 4618 mov r0, r3
8002052: f004 fab7 bl 80065c4 <USB_GetMode>
8002056: 4603 mov r3, r0
8002058: 2b01 cmp r3, #1
800205a: f040 80fb bne.w 8002254 <HAL_HCD_IRQHandler+0x21a>
{
/* Avoid spurious interrupt */
if (__HAL_HCD_IS_INVALID_INTERRUPT(hhcd))
800205e: 687b ldr r3, [r7, #4]
8002060: 681b ldr r3, [r3, #0]
8002062: 4618 mov r0, r3
8002064: f004 fa7a bl 800655c <USB_ReadInterrupts>
8002068: 4603 mov r3, r0
800206a: 2b00 cmp r3, #0
800206c: f000 80f1 beq.w 8002252 <HAL_HCD_IRQHandler+0x218>
{
return;
}
if (__HAL_HCD_GET_FLAG(hhcd, USB_OTG_GINTSTS_PXFR_INCOMPISOOUT))
8002070: 687b ldr r3, [r7, #4]
8002072: 681b ldr r3, [r3, #0]
8002074: 4618 mov r0, r3
8002076: f004 fa71 bl 800655c <USB_ReadInterrupts>
800207a: 4603 mov r3, r0
800207c: f403 1300 and.w r3, r3, #2097152 @ 0x200000
8002080: f5b3 1f00 cmp.w r3, #2097152 @ 0x200000
8002084: d104 bne.n 8002090 <HAL_HCD_IRQHandler+0x56>
{
/* Incorrect mode, acknowledge the interrupt */
__HAL_HCD_CLEAR_FLAG(hhcd, USB_OTG_GINTSTS_PXFR_INCOMPISOOUT);
8002086: 687b ldr r3, [r7, #4]
8002088: 681b ldr r3, [r3, #0]
800208a: f44f 1200 mov.w r2, #2097152 @ 0x200000
800208e: 615a str r2, [r3, #20]
}
if (__HAL_HCD_GET_FLAG(hhcd, USB_OTG_GINTSTS_IISOIXFR))
8002090: 687b ldr r3, [r7, #4]
8002092: 681b ldr r3, [r3, #0]
8002094: 4618 mov r0, r3
8002096: f004 fa61 bl 800655c <USB_ReadInterrupts>
800209a: 4603 mov r3, r0
800209c: f403 1380 and.w r3, r3, #1048576 @ 0x100000
80020a0: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
80020a4: d104 bne.n 80020b0 <HAL_HCD_IRQHandler+0x76>
{
/* Incorrect mode, acknowledge the interrupt */
__HAL_HCD_CLEAR_FLAG(hhcd, USB_OTG_GINTSTS_IISOIXFR);
80020a6: 687b ldr r3, [r7, #4]
80020a8: 681b ldr r3, [r3, #0]
80020aa: f44f 1280 mov.w r2, #1048576 @ 0x100000
80020ae: 615a str r2, [r3, #20]
}
if (__HAL_HCD_GET_FLAG(hhcd, USB_OTG_GINTSTS_PTXFE))
80020b0: 687b ldr r3, [r7, #4]
80020b2: 681b ldr r3, [r3, #0]
80020b4: 4618 mov r0, r3
80020b6: f004 fa51 bl 800655c <USB_ReadInterrupts>
80020ba: 4603 mov r3, r0
80020bc: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
80020c0: f1b3 6f80 cmp.w r3, #67108864 @ 0x4000000
80020c4: d104 bne.n 80020d0 <HAL_HCD_IRQHandler+0x96>
{
/* Incorrect mode, acknowledge the interrupt */
__HAL_HCD_CLEAR_FLAG(hhcd, USB_OTG_GINTSTS_PTXFE);
80020c6: 687b ldr r3, [r7, #4]
80020c8: 681b ldr r3, [r3, #0]
80020ca: f04f 6280 mov.w r2, #67108864 @ 0x4000000
80020ce: 615a str r2, [r3, #20]
}
if (__HAL_HCD_GET_FLAG(hhcd, USB_OTG_GINTSTS_MMIS))
80020d0: 687b ldr r3, [r7, #4]
80020d2: 681b ldr r3, [r3, #0]
80020d4: 4618 mov r0, r3
80020d6: f004 fa41 bl 800655c <USB_ReadInterrupts>
80020da: 4603 mov r3, r0
80020dc: f003 0302 and.w r3, r3, #2
80020e0: 2b02 cmp r3, #2
80020e2: d103 bne.n 80020ec <HAL_HCD_IRQHandler+0xb2>
{
/* Incorrect mode, acknowledge the interrupt */
__HAL_HCD_CLEAR_FLAG(hhcd, USB_OTG_GINTSTS_MMIS);
80020e4: 687b ldr r3, [r7, #4]
80020e6: 681b ldr r3, [r3, #0]
80020e8: 2202 movs r2, #2
80020ea: 615a str r2, [r3, #20]
}
/* Handle Host Disconnect Interrupts */
if (__HAL_HCD_GET_FLAG(hhcd, USB_OTG_GINTSTS_DISCINT))
80020ec: 687b ldr r3, [r7, #4]
80020ee: 681b ldr r3, [r3, #0]
80020f0: 4618 mov r0, r3
80020f2: f004 fa33 bl 800655c <USB_ReadInterrupts>
80020f6: 4603 mov r3, r0
80020f8: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
80020fc: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
8002100: d120 bne.n 8002144 <HAL_HCD_IRQHandler+0x10a>
{
__HAL_HCD_CLEAR_FLAG(hhcd, USB_OTG_GINTSTS_DISCINT);
8002102: 687b ldr r3, [r7, #4]
8002104: 681b ldr r3, [r3, #0]
8002106: f04f 5200 mov.w r2, #536870912 @ 0x20000000
800210a: 615a str r2, [r3, #20]
if ((USBx_HPRT0 & USB_OTG_HPRT_PCSTS) == 0U)
800210c: 68fb ldr r3, [r7, #12]
800210e: f503 6388 add.w r3, r3, #1088 @ 0x440
8002112: 681b ldr r3, [r3, #0]
8002114: f003 0301 and.w r3, r3, #1
8002118: 2b00 cmp r3, #0
800211a: d113 bne.n 8002144 <HAL_HCD_IRQHandler+0x10a>
{
/* Flush USB Fifo */
(void)USB_FlushTxFifo(USBx, 0x10U);
800211c: 2110 movs r1, #16
800211e: 6938 ldr r0, [r7, #16]
8002120: f004 f964 bl 80063ec <USB_FlushTxFifo>
(void)USB_FlushRxFifo(USBx);
8002124: 6938 ldr r0, [r7, #16]
8002126: f004 f993 bl 8006450 <USB_FlushRxFifo>
if (hhcd->Init.phy_itface == USB_OTG_EMBEDDED_PHY)
800212a: 687b ldr r3, [r7, #4]
800212c: 7a5b ldrb r3, [r3, #9]
800212e: 2b02 cmp r3, #2
8002130: d105 bne.n 800213e <HAL_HCD_IRQHandler+0x104>
{
/* Restore FS Clock */
(void)USB_InitFSLSPClkSel(hhcd->Instance, HCFG_48_MHZ);
8002132: 687b ldr r3, [r7, #4]
8002134: 681b ldr r3, [r3, #0]
8002136: 2101 movs r1, #1
8002138: 4618 mov r0, r3
800213a: f004 fa51 bl 80065e0 <USB_InitFSLSPClkSel>
/* Handle Host Port Disconnect Interrupt */
#if (USE_HAL_HCD_REGISTER_CALLBACKS == 1U)
hhcd->DisconnectCallback(hhcd);
#else
HAL_HCD_Disconnect_Callback(hhcd);
800213e: 6878 ldr r0, [r7, #4]
8002140: f005 fe22 bl 8007d88 <HAL_HCD_Disconnect_Callback>
#endif /* USE_HAL_HCD_REGISTER_CALLBACKS */
}
}
/* Handle Host Port Interrupts */
if (__HAL_HCD_GET_FLAG(hhcd, USB_OTG_GINTSTS_HPRTINT))
8002144: 687b ldr r3, [r7, #4]
8002146: 681b ldr r3, [r3, #0]
8002148: 4618 mov r0, r3
800214a: f004 fa07 bl 800655c <USB_ReadInterrupts>
800214e: 4603 mov r3, r0
8002150: f003 7380 and.w r3, r3, #16777216 @ 0x1000000
8002154: f1b3 7f80 cmp.w r3, #16777216 @ 0x1000000
8002158: d102 bne.n 8002160 <HAL_HCD_IRQHandler+0x126>
{
HCD_Port_IRQHandler(hhcd);
800215a: 6878 ldr r0, [r7, #4]
800215c: f001 fca1 bl 8003aa2 <HCD_Port_IRQHandler>
}
/* Handle Host SOF Interrupt */
if (__HAL_HCD_GET_FLAG(hhcd, USB_OTG_GINTSTS_SOF))
8002160: 687b ldr r3, [r7, #4]
8002162: 681b ldr r3, [r3, #0]
8002164: 4618 mov r0, r3
8002166: f004 f9f9 bl 800655c <USB_ReadInterrupts>
800216a: 4603 mov r3, r0
800216c: f003 0308 and.w r3, r3, #8
8002170: 2b08 cmp r3, #8
8002172: d106 bne.n 8002182 <HAL_HCD_IRQHandler+0x148>
{
#if (USE_HAL_HCD_REGISTER_CALLBACKS == 1U)
hhcd->SOFCallback(hhcd);
#else
HAL_HCD_SOF_Callback(hhcd);
8002174: 6878 ldr r0, [r7, #4]
8002176: f005 fdeb bl 8007d50 <HAL_HCD_SOF_Callback>
#endif /* USE_HAL_HCD_REGISTER_CALLBACKS */
__HAL_HCD_CLEAR_FLAG(hhcd, USB_OTG_GINTSTS_SOF);
800217a: 687b ldr r3, [r7, #4]
800217c: 681b ldr r3, [r3, #0]
800217e: 2208 movs r2, #8
8002180: 615a str r2, [r3, #20]
}
/* Handle Host channel Interrupt */
if (__HAL_HCD_GET_FLAG(hhcd, USB_OTG_GINTSTS_HCINT))
8002182: 687b ldr r3, [r7, #4]
8002184: 681b ldr r3, [r3, #0]
8002186: 4618 mov r0, r3
8002188: f004 f9e8 bl 800655c <USB_ReadInterrupts>
800218c: 4603 mov r3, r0
800218e: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
8002192: f1b3 7f00 cmp.w r3, #33554432 @ 0x2000000
8002196: d139 bne.n 800220c <HAL_HCD_IRQHandler+0x1d2>
{
interrupt = USB_HC_ReadInterrupt(hhcd->Instance);
8002198: 687b ldr r3, [r7, #4]
800219a: 681b ldr r3, [r3, #0]
800219c: 4618 mov r0, r3
800219e: f004 fa5c bl 800665a <USB_HC_ReadInterrupt>
80021a2: 60b8 str r0, [r7, #8]
for (i = 0U; i < hhcd->Init.Host_channels; i++)
80021a4: 2300 movs r3, #0
80021a6: 617b str r3, [r7, #20]
80021a8: e025 b.n 80021f6 <HAL_HCD_IRQHandler+0x1bc>
{
if ((interrupt & (1UL << (i & 0xFU))) != 0U)
80021aa: 697b ldr r3, [r7, #20]
80021ac: f003 030f and.w r3, r3, #15
80021b0: 68ba ldr r2, [r7, #8]
80021b2: fa22 f303 lsr.w r3, r2, r3
80021b6: f003 0301 and.w r3, r3, #1
80021ba: 2b00 cmp r3, #0
80021bc: d018 beq.n 80021f0 <HAL_HCD_IRQHandler+0x1b6>
{
if ((USBx_HC(i)->HCCHAR & USB_OTG_HCCHAR_EPDIR) == USB_OTG_HCCHAR_EPDIR)
80021be: 697b ldr r3, [r7, #20]
80021c0: 015a lsls r2, r3, #5
80021c2: 68fb ldr r3, [r7, #12]
80021c4: 4413 add r3, r2
80021c6: f503 63a0 add.w r3, r3, #1280 @ 0x500
80021ca: 681b ldr r3, [r3, #0]
80021cc: f403 4300 and.w r3, r3, #32768 @ 0x8000
80021d0: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
80021d4: d106 bne.n 80021e4 <HAL_HCD_IRQHandler+0x1aa>
{
HCD_HC_IN_IRQHandler(hhcd, (uint8_t)i);
80021d6: 697b ldr r3, [r7, #20]
80021d8: b2db uxtb r3, r3
80021da: 4619 mov r1, r3
80021dc: 6878 ldr r0, [r7, #4]
80021de: f000 f859 bl 8002294 <HCD_HC_IN_IRQHandler>
80021e2: e005 b.n 80021f0 <HAL_HCD_IRQHandler+0x1b6>
}
else
{
HCD_HC_OUT_IRQHandler(hhcd, (uint8_t)i);
80021e4: 697b ldr r3, [r7, #20]
80021e6: b2db uxtb r3, r3
80021e8: 4619 mov r1, r3
80021ea: 6878 ldr r0, [r7, #4]
80021ec: f000 febb bl 8002f66 <HCD_HC_OUT_IRQHandler>
for (i = 0U; i < hhcd->Init.Host_channels; i++)
80021f0: 697b ldr r3, [r7, #20]
80021f2: 3301 adds r3, #1
80021f4: 617b str r3, [r7, #20]
80021f6: 687b ldr r3, [r7, #4]
80021f8: 795b ldrb r3, [r3, #5]
80021fa: 461a mov r2, r3
80021fc: 697b ldr r3, [r7, #20]
80021fe: 4293 cmp r3, r2
8002200: d3d3 bcc.n 80021aa <HAL_HCD_IRQHandler+0x170>
}
}
}
__HAL_HCD_CLEAR_FLAG(hhcd, USB_OTG_GINTSTS_HCINT);
8002202: 687b ldr r3, [r7, #4]
8002204: 681b ldr r3, [r3, #0]
8002206: f04f 7200 mov.w r2, #33554432 @ 0x2000000
800220a: 615a str r2, [r3, #20]
}
/* Handle Rx Queue Level Interrupts */
if ((__HAL_HCD_GET_FLAG(hhcd, USB_OTG_GINTSTS_RXFLVL)) != 0U)
800220c: 687b ldr r3, [r7, #4]
800220e: 681b ldr r3, [r3, #0]
8002210: 4618 mov r0, r3
8002212: f004 f9a3 bl 800655c <USB_ReadInterrupts>
8002216: 4603 mov r3, r0
8002218: f003 0310 and.w r3, r3, #16
800221c: 2b10 cmp r3, #16
800221e: d101 bne.n 8002224 <HAL_HCD_IRQHandler+0x1ea>
8002220: 2301 movs r3, #1
8002222: e000 b.n 8002226 <HAL_HCD_IRQHandler+0x1ec>
8002224: 2300 movs r3, #0
8002226: 2b00 cmp r3, #0
8002228: d014 beq.n 8002254 <HAL_HCD_IRQHandler+0x21a>
{
USB_MASK_INTERRUPT(hhcd->Instance, USB_OTG_GINTSTS_RXFLVL);
800222a: 687b ldr r3, [r7, #4]
800222c: 681b ldr r3, [r3, #0]
800222e: 699a ldr r2, [r3, #24]
8002230: 687b ldr r3, [r7, #4]
8002232: 681b ldr r3, [r3, #0]
8002234: f022 0210 bic.w r2, r2, #16
8002238: 619a str r2, [r3, #24]
HCD_RXQLVL_IRQHandler(hhcd);
800223a: 6878 ldr r0, [r7, #4]
800223c: f001 fb52 bl 80038e4 <HCD_RXQLVL_IRQHandler>
USB_UNMASK_INTERRUPT(hhcd->Instance, USB_OTG_GINTSTS_RXFLVL);
8002240: 687b ldr r3, [r7, #4]
8002242: 681b ldr r3, [r3, #0]
8002244: 699a ldr r2, [r3, #24]
8002246: 687b ldr r3, [r7, #4]
8002248: 681b ldr r3, [r3, #0]
800224a: f042 0210 orr.w r2, r2, #16
800224e: 619a str r2, [r3, #24]
8002250: e000 b.n 8002254 <HAL_HCD_IRQHandler+0x21a>
return;
8002252: bf00 nop
}
}
}
8002254: 3718 adds r7, #24
8002256: 46bd mov sp, r7
8002258: bd80 pop {r7, pc}
0800225a <HAL_HCD_Stop>:
* @param hhcd HCD handle
* @retval HAL status
*/
HAL_StatusTypeDef HAL_HCD_Stop(HCD_HandleTypeDef *hhcd)
{
800225a: b580 push {r7, lr}
800225c: b082 sub sp, #8
800225e: af00 add r7, sp, #0
8002260: 6078 str r0, [r7, #4]
__HAL_LOCK(hhcd);
8002262: 687b ldr r3, [r7, #4]
8002264: f893 33d4 ldrb.w r3, [r3, #980] @ 0x3d4
8002268: 2b01 cmp r3, #1
800226a: d101 bne.n 8002270 <HAL_HCD_Stop+0x16>
800226c: 2302 movs r3, #2
800226e: e00d b.n 800228c <HAL_HCD_Stop+0x32>
8002270: 687b ldr r3, [r7, #4]
8002272: 2201 movs r2, #1
8002274: f883 23d4 strb.w r2, [r3, #980] @ 0x3d4
(void)USB_StopHost(hhcd->Instance);
8002278: 687b ldr r3, [r7, #4]
800227a: 681b ldr r3, [r3, #0]
800227c: 4618 mov r0, r3
800227e: f004 fb1d bl 80068bc <USB_StopHost>
__HAL_UNLOCK(hhcd);
8002282: 687b ldr r3, [r7, #4]
8002284: 2200 movs r2, #0
8002286: f883 23d4 strb.w r2, [r3, #980] @ 0x3d4
return HAL_OK;
800228a: 2300 movs r3, #0
}
800228c: 4618 mov r0, r3
800228e: 3708 adds r7, #8
8002290: 46bd mov sp, r7
8002292: bd80 pop {r7, pc}
08002294 <HCD_HC_IN_IRQHandler>:
* @param chnum Channel number.
* This parameter can be a value from 1 to 15
* @retval none
*/
static void HCD_HC_IN_IRQHandler(HCD_HandleTypeDef *hhcd, uint8_t chnum)
{
8002294: b580 push {r7, lr}
8002296: b086 sub sp, #24
8002298: af00 add r7, sp, #0
800229a: 6078 str r0, [r7, #4]
800229c: 460b mov r3, r1
800229e: 70fb strb r3, [r7, #3]
const USB_OTG_GlobalTypeDef *USBx = hhcd->Instance;
80022a0: 687b ldr r3, [r7, #4]
80022a2: 681b ldr r3, [r3, #0]
80022a4: 617b str r3, [r7, #20]
uint32_t USBx_BASE = (uint32_t)USBx;
80022a6: 697b ldr r3, [r7, #20]
80022a8: 613b str r3, [r7, #16]
uint32_t tmpreg;
if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_AHBERR))
80022aa: 687b ldr r3, [r7, #4]
80022ac: 681b ldr r3, [r3, #0]
80022ae: 78fa ldrb r2, [r7, #3]
80022b0: 4611 mov r1, r2
80022b2: 4618 mov r0, r3
80022b4: f004 f965 bl 8006582 <USB_ReadChInterrupts>
80022b8: 4603 mov r3, r0
80022ba: f003 0304 and.w r3, r3, #4
80022be: 2b04 cmp r3, #4
80022c0: d11a bne.n 80022f8 <HCD_HC_IN_IRQHandler+0x64>
{
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_AHBERR);
80022c2: 78fb ldrb r3, [r7, #3]
80022c4: 015a lsls r2, r3, #5
80022c6: 693b ldr r3, [r7, #16]
80022c8: 4413 add r3, r2
80022ca: f503 63a0 add.w r3, r3, #1280 @ 0x500
80022ce: 461a mov r2, r3
80022d0: 2304 movs r3, #4
80022d2: 6093 str r3, [r2, #8]
hhcd->hc[chnum].state = HC_XACTERR;
80022d4: 78fa ldrb r2, [r7, #3]
80022d6: 6879 ldr r1, [r7, #4]
80022d8: 4613 mov r3, r2
80022da: 011b lsls r3, r3, #4
80022dc: 1a9b subs r3, r3, r2
80022de: 009b lsls r3, r3, #2
80022e0: 440b add r3, r1
80022e2: 334d adds r3, #77 @ 0x4d
80022e4: 2207 movs r2, #7
80022e6: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
80022e8: 687b ldr r3, [r7, #4]
80022ea: 681b ldr r3, [r3, #0]
80022ec: 78fa ldrb r2, [r7, #3]
80022ee: 4611 mov r1, r2
80022f0: 4618 mov r0, r3
80022f2: f004 f9c3 bl 800667c <USB_HC_Halt>
80022f6: e09e b.n 8002436 <HCD_HC_IN_IRQHandler+0x1a2>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_BBERR))
80022f8: 687b ldr r3, [r7, #4]
80022fa: 681b ldr r3, [r3, #0]
80022fc: 78fa ldrb r2, [r7, #3]
80022fe: 4611 mov r1, r2
8002300: 4618 mov r0, r3
8002302: f004 f93e bl 8006582 <USB_ReadChInterrupts>
8002306: 4603 mov r3, r0
8002308: f403 7380 and.w r3, r3, #256 @ 0x100
800230c: f5b3 7f80 cmp.w r3, #256 @ 0x100
8002310: d11b bne.n 800234a <HCD_HC_IN_IRQHandler+0xb6>
{
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_BBERR);
8002312: 78fb ldrb r3, [r7, #3]
8002314: 015a lsls r2, r3, #5
8002316: 693b ldr r3, [r7, #16]
8002318: 4413 add r3, r2
800231a: f503 63a0 add.w r3, r3, #1280 @ 0x500
800231e: 461a mov r2, r3
8002320: f44f 7380 mov.w r3, #256 @ 0x100
8002324: 6093 str r3, [r2, #8]
hhcd->hc[chnum].state = HC_BBLERR;
8002326: 78fa ldrb r2, [r7, #3]
8002328: 6879 ldr r1, [r7, #4]
800232a: 4613 mov r3, r2
800232c: 011b lsls r3, r3, #4
800232e: 1a9b subs r3, r3, r2
8002330: 009b lsls r3, r3, #2
8002332: 440b add r3, r1
8002334: 334d adds r3, #77 @ 0x4d
8002336: 2208 movs r2, #8
8002338: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
800233a: 687b ldr r3, [r7, #4]
800233c: 681b ldr r3, [r3, #0]
800233e: 78fa ldrb r2, [r7, #3]
8002340: 4611 mov r1, r2
8002342: 4618 mov r0, r3
8002344: f004 f99a bl 800667c <USB_HC_Halt>
8002348: e075 b.n 8002436 <HCD_HC_IN_IRQHandler+0x1a2>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_STALL))
800234a: 687b ldr r3, [r7, #4]
800234c: 681b ldr r3, [r3, #0]
800234e: 78fa ldrb r2, [r7, #3]
8002350: 4611 mov r1, r2
8002352: 4618 mov r0, r3
8002354: f004 f915 bl 8006582 <USB_ReadChInterrupts>
8002358: 4603 mov r3, r0
800235a: f003 0308 and.w r3, r3, #8
800235e: 2b08 cmp r3, #8
8002360: d11a bne.n 8002398 <HCD_HC_IN_IRQHandler+0x104>
{
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_STALL);
8002362: 78fb ldrb r3, [r7, #3]
8002364: 015a lsls r2, r3, #5
8002366: 693b ldr r3, [r7, #16]
8002368: 4413 add r3, r2
800236a: f503 63a0 add.w r3, r3, #1280 @ 0x500
800236e: 461a mov r2, r3
8002370: 2308 movs r3, #8
8002372: 6093 str r3, [r2, #8]
hhcd->hc[chnum].state = HC_STALL;
8002374: 78fa ldrb r2, [r7, #3]
8002376: 6879 ldr r1, [r7, #4]
8002378: 4613 mov r3, r2
800237a: 011b lsls r3, r3, #4
800237c: 1a9b subs r3, r3, r2
800237e: 009b lsls r3, r3, #2
8002380: 440b add r3, r1
8002382: 334d adds r3, #77 @ 0x4d
8002384: 2206 movs r2, #6
8002386: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
8002388: 687b ldr r3, [r7, #4]
800238a: 681b ldr r3, [r3, #0]
800238c: 78fa ldrb r2, [r7, #3]
800238e: 4611 mov r1, r2
8002390: 4618 mov r0, r3
8002392: f004 f973 bl 800667c <USB_HC_Halt>
8002396: e04e b.n 8002436 <HCD_HC_IN_IRQHandler+0x1a2>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_DTERR))
8002398: 687b ldr r3, [r7, #4]
800239a: 681b ldr r3, [r3, #0]
800239c: 78fa ldrb r2, [r7, #3]
800239e: 4611 mov r1, r2
80023a0: 4618 mov r0, r3
80023a2: f004 f8ee bl 8006582 <USB_ReadChInterrupts>
80023a6: 4603 mov r3, r0
80023a8: f403 6380 and.w r3, r3, #1024 @ 0x400
80023ac: f5b3 6f80 cmp.w r3, #1024 @ 0x400
80023b0: d11b bne.n 80023ea <HCD_HC_IN_IRQHandler+0x156>
{
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_DTERR);
80023b2: 78fb ldrb r3, [r7, #3]
80023b4: 015a lsls r2, r3, #5
80023b6: 693b ldr r3, [r7, #16]
80023b8: 4413 add r3, r2
80023ba: f503 63a0 add.w r3, r3, #1280 @ 0x500
80023be: 461a mov r2, r3
80023c0: f44f 6380 mov.w r3, #1024 @ 0x400
80023c4: 6093 str r3, [r2, #8]
hhcd->hc[chnum].state = HC_DATATGLERR;
80023c6: 78fa ldrb r2, [r7, #3]
80023c8: 6879 ldr r1, [r7, #4]
80023ca: 4613 mov r3, r2
80023cc: 011b lsls r3, r3, #4
80023ce: 1a9b subs r3, r3, r2
80023d0: 009b lsls r3, r3, #2
80023d2: 440b add r3, r1
80023d4: 334d adds r3, #77 @ 0x4d
80023d6: 2209 movs r2, #9
80023d8: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
80023da: 687b ldr r3, [r7, #4]
80023dc: 681b ldr r3, [r3, #0]
80023de: 78fa ldrb r2, [r7, #3]
80023e0: 4611 mov r1, r2
80023e2: 4618 mov r0, r3
80023e4: f004 f94a bl 800667c <USB_HC_Halt>
80023e8: e025 b.n 8002436 <HCD_HC_IN_IRQHandler+0x1a2>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_TXERR))
80023ea: 687b ldr r3, [r7, #4]
80023ec: 681b ldr r3, [r3, #0]
80023ee: 78fa ldrb r2, [r7, #3]
80023f0: 4611 mov r1, r2
80023f2: 4618 mov r0, r3
80023f4: f004 f8c5 bl 8006582 <USB_ReadChInterrupts>
80023f8: 4603 mov r3, r0
80023fa: f003 0380 and.w r3, r3, #128 @ 0x80
80023fe: 2b80 cmp r3, #128 @ 0x80
8002400: d119 bne.n 8002436 <HCD_HC_IN_IRQHandler+0x1a2>
{
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_TXERR);
8002402: 78fb ldrb r3, [r7, #3]
8002404: 015a lsls r2, r3, #5
8002406: 693b ldr r3, [r7, #16]
8002408: 4413 add r3, r2
800240a: f503 63a0 add.w r3, r3, #1280 @ 0x500
800240e: 461a mov r2, r3
8002410: 2380 movs r3, #128 @ 0x80
8002412: 6093 str r3, [r2, #8]
hhcd->hc[chnum].state = HC_XACTERR;
8002414: 78fa ldrb r2, [r7, #3]
8002416: 6879 ldr r1, [r7, #4]
8002418: 4613 mov r3, r2
800241a: 011b lsls r3, r3, #4
800241c: 1a9b subs r3, r3, r2
800241e: 009b lsls r3, r3, #2
8002420: 440b add r3, r1
8002422: 334d adds r3, #77 @ 0x4d
8002424: 2207 movs r2, #7
8002426: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
8002428: 687b ldr r3, [r7, #4]
800242a: 681b ldr r3, [r3, #0]
800242c: 78fa ldrb r2, [r7, #3]
800242e: 4611 mov r1, r2
8002430: 4618 mov r0, r3
8002432: f004 f923 bl 800667c <USB_HC_Halt>
else
{
/* ... */
}
if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_FRMOR))
8002436: 687b ldr r3, [r7, #4]
8002438: 681b ldr r3, [r3, #0]
800243a: 78fa ldrb r2, [r7, #3]
800243c: 4611 mov r1, r2
800243e: 4618 mov r0, r3
8002440: f004 f89f bl 8006582 <USB_ReadChInterrupts>
8002444: 4603 mov r3, r0
8002446: f403 7300 and.w r3, r3, #512 @ 0x200
800244a: f5b3 7f00 cmp.w r3, #512 @ 0x200
800244e: d112 bne.n 8002476 <HCD_HC_IN_IRQHandler+0x1e2>
{
(void)USB_HC_Halt(hhcd->Instance, chnum);
8002450: 687b ldr r3, [r7, #4]
8002452: 681b ldr r3, [r3, #0]
8002454: 78fa ldrb r2, [r7, #3]
8002456: 4611 mov r1, r2
8002458: 4618 mov r0, r3
800245a: f004 f90f bl 800667c <USB_HC_Halt>
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_FRMOR);
800245e: 78fb ldrb r3, [r7, #3]
8002460: 015a lsls r2, r3, #5
8002462: 693b ldr r3, [r7, #16]
8002464: 4413 add r3, r2
8002466: f503 63a0 add.w r3, r3, #1280 @ 0x500
800246a: 461a mov r2, r3
800246c: f44f 7300 mov.w r3, #512 @ 0x200
8002470: 6093 str r3, [r2, #8]
8002472: f000 bd75 b.w 8002f60 <HCD_HC_IN_IRQHandler+0xccc>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_XFRC))
8002476: 687b ldr r3, [r7, #4]
8002478: 681b ldr r3, [r3, #0]
800247a: 78fa ldrb r2, [r7, #3]
800247c: 4611 mov r1, r2
800247e: 4618 mov r0, r3
8002480: f004 f87f bl 8006582 <USB_ReadChInterrupts>
8002484: 4603 mov r3, r0
8002486: f003 0301 and.w r3, r3, #1
800248a: 2b01 cmp r3, #1
800248c: f040 8128 bne.w 80026e0 <HCD_HC_IN_IRQHandler+0x44c>
{
/* Clear any pending ACK IT */
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_ACK);
8002490: 78fb ldrb r3, [r7, #3]
8002492: 015a lsls r2, r3, #5
8002494: 693b ldr r3, [r7, #16]
8002496: 4413 add r3, r2
8002498: f503 63a0 add.w r3, r3, #1280 @ 0x500
800249c: 461a mov r2, r3
800249e: 2320 movs r3, #32
80024a0: 6093 str r3, [r2, #8]
if (hhcd->hc[chnum].do_csplit == 1U)
80024a2: 78fa ldrb r2, [r7, #3]
80024a4: 6879 ldr r1, [r7, #4]
80024a6: 4613 mov r3, r2
80024a8: 011b lsls r3, r3, #4
80024aa: 1a9b subs r3, r3, r2
80024ac: 009b lsls r3, r3, #2
80024ae: 440b add r3, r1
80024b0: 331b adds r3, #27
80024b2: 781b ldrb r3, [r3, #0]
80024b4: 2b01 cmp r3, #1
80024b6: d119 bne.n 80024ec <HCD_HC_IN_IRQHandler+0x258>
{
hhcd->hc[chnum].do_csplit = 0U;
80024b8: 78fa ldrb r2, [r7, #3]
80024ba: 6879 ldr r1, [r7, #4]
80024bc: 4613 mov r3, r2
80024be: 011b lsls r3, r3, #4
80024c0: 1a9b subs r3, r3, r2
80024c2: 009b lsls r3, r3, #2
80024c4: 440b add r3, r1
80024c6: 331b adds r3, #27
80024c8: 2200 movs r2, #0
80024ca: 701a strb r2, [r3, #0]
__HAL_HCD_CLEAR_HC_CSPLT(chnum);
80024cc: 78fb ldrb r3, [r7, #3]
80024ce: 015a lsls r2, r3, #5
80024d0: 693b ldr r3, [r7, #16]
80024d2: 4413 add r3, r2
80024d4: f503 63a0 add.w r3, r3, #1280 @ 0x500
80024d8: 685b ldr r3, [r3, #4]
80024da: 78fa ldrb r2, [r7, #3]
80024dc: 0151 lsls r1, r2, #5
80024de: 693a ldr r2, [r7, #16]
80024e0: 440a add r2, r1
80024e2: f502 62a0 add.w r2, r2, #1280 @ 0x500
80024e6: f423 3380 bic.w r3, r3, #65536 @ 0x10000
80024ea: 6053 str r3, [r2, #4]
}
if (hhcd->Init.dma_enable != 0U)
80024ec: 687b ldr r3, [r7, #4]
80024ee: 799b ldrb r3, [r3, #6]
80024f0: 2b00 cmp r3, #0
80024f2: d01b beq.n 800252c <HCD_HC_IN_IRQHandler+0x298>
{
hhcd->hc[chnum].xfer_count = hhcd->hc[chnum].XferSize - (USBx_HC(chnum)->HCTSIZ & USB_OTG_HCTSIZ_XFRSIZ);
80024f4: 78fa ldrb r2, [r7, #3]
80024f6: 6879 ldr r1, [r7, #4]
80024f8: 4613 mov r3, r2
80024fa: 011b lsls r3, r3, #4
80024fc: 1a9b subs r3, r3, r2
80024fe: 009b lsls r3, r3, #2
8002500: 440b add r3, r1
8002502: 3330 adds r3, #48 @ 0x30
8002504: 6819 ldr r1, [r3, #0]
8002506: 78fb ldrb r3, [r7, #3]
8002508: 015a lsls r2, r3, #5
800250a: 693b ldr r3, [r7, #16]
800250c: 4413 add r3, r2
800250e: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002512: 691b ldr r3, [r3, #16]
8002514: f3c3 0312 ubfx r3, r3, #0, #19
8002518: 78fa ldrb r2, [r7, #3]
800251a: 1ac9 subs r1, r1, r3
800251c: 6878 ldr r0, [r7, #4]
800251e: 4613 mov r3, r2
8002520: 011b lsls r3, r3, #4
8002522: 1a9b subs r3, r3, r2
8002524: 009b lsls r3, r3, #2
8002526: 4403 add r3, r0
8002528: 3338 adds r3, #56 @ 0x38
800252a: 6019 str r1, [r3, #0]
}
hhcd->hc[chnum].state = HC_XFRC;
800252c: 78fa ldrb r2, [r7, #3]
800252e: 6879 ldr r1, [r7, #4]
8002530: 4613 mov r3, r2
8002532: 011b lsls r3, r3, #4
8002534: 1a9b subs r3, r3, r2
8002536: 009b lsls r3, r3, #2
8002538: 440b add r3, r1
800253a: 334d adds r3, #77 @ 0x4d
800253c: 2201 movs r2, #1
800253e: 701a strb r2, [r3, #0]
hhcd->hc[chnum].ErrCnt = 0U;
8002540: 78fa ldrb r2, [r7, #3]
8002542: 6879 ldr r1, [r7, #4]
8002544: 4613 mov r3, r2
8002546: 011b lsls r3, r3, #4
8002548: 1a9b subs r3, r3, r2
800254a: 009b lsls r3, r3, #2
800254c: 440b add r3, r1
800254e: 3344 adds r3, #68 @ 0x44
8002550: 2200 movs r2, #0
8002552: 601a str r2, [r3, #0]
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_XFRC);
8002554: 78fb ldrb r3, [r7, #3]
8002556: 015a lsls r2, r3, #5
8002558: 693b ldr r3, [r7, #16]
800255a: 4413 add r3, r2
800255c: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002560: 461a mov r2, r3
8002562: 2301 movs r3, #1
8002564: 6093 str r3, [r2, #8]
if ((hhcd->hc[chnum].ep_type == EP_TYPE_CTRL) ||
8002566: 78fa ldrb r2, [r7, #3]
8002568: 6879 ldr r1, [r7, #4]
800256a: 4613 mov r3, r2
800256c: 011b lsls r3, r3, #4
800256e: 1a9b subs r3, r3, r2
8002570: 009b lsls r3, r3, #2
8002572: 440b add r3, r1
8002574: 3326 adds r3, #38 @ 0x26
8002576: 781b ldrb r3, [r3, #0]
8002578: 2b00 cmp r3, #0
800257a: d00a beq.n 8002592 <HCD_HC_IN_IRQHandler+0x2fe>
(hhcd->hc[chnum].ep_type == EP_TYPE_BULK))
800257c: 78fa ldrb r2, [r7, #3]
800257e: 6879 ldr r1, [r7, #4]
8002580: 4613 mov r3, r2
8002582: 011b lsls r3, r3, #4
8002584: 1a9b subs r3, r3, r2
8002586: 009b lsls r3, r3, #2
8002588: 440b add r3, r1
800258a: 3326 adds r3, #38 @ 0x26
800258c: 781b ldrb r3, [r3, #0]
if ((hhcd->hc[chnum].ep_type == EP_TYPE_CTRL) ||
800258e: 2b02 cmp r3, #2
8002590: d110 bne.n 80025b4 <HCD_HC_IN_IRQHandler+0x320>
{
(void)USB_HC_Halt(hhcd->Instance, chnum);
8002592: 687b ldr r3, [r7, #4]
8002594: 681b ldr r3, [r3, #0]
8002596: 78fa ldrb r2, [r7, #3]
8002598: 4611 mov r1, r2
800259a: 4618 mov r0, r3
800259c: f004 f86e bl 800667c <USB_HC_Halt>
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_NAK);
80025a0: 78fb ldrb r3, [r7, #3]
80025a2: 015a lsls r2, r3, #5
80025a4: 693b ldr r3, [r7, #16]
80025a6: 4413 add r3, r2
80025a8: f503 63a0 add.w r3, r3, #1280 @ 0x500
80025ac: 461a mov r2, r3
80025ae: 2310 movs r3, #16
80025b0: 6093 str r3, [r2, #8]
80025b2: e03d b.n 8002630 <HCD_HC_IN_IRQHandler+0x39c>
}
else if ((hhcd->hc[chnum].ep_type == EP_TYPE_INTR) ||
80025b4: 78fa ldrb r2, [r7, #3]
80025b6: 6879 ldr r1, [r7, #4]
80025b8: 4613 mov r3, r2
80025ba: 011b lsls r3, r3, #4
80025bc: 1a9b subs r3, r3, r2
80025be: 009b lsls r3, r3, #2
80025c0: 440b add r3, r1
80025c2: 3326 adds r3, #38 @ 0x26
80025c4: 781b ldrb r3, [r3, #0]
80025c6: 2b03 cmp r3, #3
80025c8: d00a beq.n 80025e0 <HCD_HC_IN_IRQHandler+0x34c>
(hhcd->hc[chnum].ep_type == EP_TYPE_ISOC))
80025ca: 78fa ldrb r2, [r7, #3]
80025cc: 6879 ldr r1, [r7, #4]
80025ce: 4613 mov r3, r2
80025d0: 011b lsls r3, r3, #4
80025d2: 1a9b subs r3, r3, r2
80025d4: 009b lsls r3, r3, #2
80025d6: 440b add r3, r1
80025d8: 3326 adds r3, #38 @ 0x26
80025da: 781b ldrb r3, [r3, #0]
else if ((hhcd->hc[chnum].ep_type == EP_TYPE_INTR) ||
80025dc: 2b01 cmp r3, #1
80025de: d127 bne.n 8002630 <HCD_HC_IN_IRQHandler+0x39c>
{
USBx_HC(chnum)->HCCHAR |= USB_OTG_HCCHAR_ODDFRM;
80025e0: 78fb ldrb r3, [r7, #3]
80025e2: 015a lsls r2, r3, #5
80025e4: 693b ldr r3, [r7, #16]
80025e6: 4413 add r3, r2
80025e8: f503 63a0 add.w r3, r3, #1280 @ 0x500
80025ec: 681b ldr r3, [r3, #0]
80025ee: 78fa ldrb r2, [r7, #3]
80025f0: 0151 lsls r1, r2, #5
80025f2: 693a ldr r2, [r7, #16]
80025f4: 440a add r2, r1
80025f6: f502 62a0 add.w r2, r2, #1280 @ 0x500
80025fa: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000
80025fe: 6013 str r3, [r2, #0]
hhcd->hc[chnum].urb_state = URB_DONE;
8002600: 78fa ldrb r2, [r7, #3]
8002602: 6879 ldr r1, [r7, #4]
8002604: 4613 mov r3, r2
8002606: 011b lsls r3, r3, #4
8002608: 1a9b subs r3, r3, r2
800260a: 009b lsls r3, r3, #2
800260c: 440b add r3, r1
800260e: 334c adds r3, #76 @ 0x4c
8002610: 2201 movs r2, #1
8002612: 701a strb r2, [r3, #0]
#if (USE_HAL_HCD_REGISTER_CALLBACKS == 1U)
hhcd->HC_NotifyURBChangeCallback(hhcd, chnum, hhcd->hc[chnum].urb_state);
#else
HAL_HCD_HC_NotifyURBChange_Callback(hhcd, chnum, hhcd->hc[chnum].urb_state);
8002614: 78fa ldrb r2, [r7, #3]
8002616: 6879 ldr r1, [r7, #4]
8002618: 4613 mov r3, r2
800261a: 011b lsls r3, r3, #4
800261c: 1a9b subs r3, r3, r2
800261e: 009b lsls r3, r3, #2
8002620: 440b add r3, r1
8002622: 334c adds r3, #76 @ 0x4c
8002624: 781a ldrb r2, [r3, #0]
8002626: 78fb ldrb r3, [r7, #3]
8002628: 4619 mov r1, r3
800262a: 6878 ldr r0, [r7, #4]
800262c: f005 fbba bl 8007da4 <HAL_HCD_HC_NotifyURBChange_Callback>
else
{
/* ... */
}
if (hhcd->Init.dma_enable == 1U)
8002630: 687b ldr r3, [r7, #4]
8002632: 799b ldrb r3, [r3, #6]
8002634: 2b01 cmp r3, #1
8002636: d13b bne.n 80026b0 <HCD_HC_IN_IRQHandler+0x41c>
{
if ((((hhcd->hc[chnum].xfer_count + hhcd->hc[chnum].max_packet - 1U) / hhcd->hc[chnum].max_packet) & 1U) != 0U)
8002638: 78fa ldrb r2, [r7, #3]
800263a: 6879 ldr r1, [r7, #4]
800263c: 4613 mov r3, r2
800263e: 011b lsls r3, r3, #4
8002640: 1a9b subs r3, r3, r2
8002642: 009b lsls r3, r3, #2
8002644: 440b add r3, r1
8002646: 3338 adds r3, #56 @ 0x38
8002648: 6819 ldr r1, [r3, #0]
800264a: 78fa ldrb r2, [r7, #3]
800264c: 6878 ldr r0, [r7, #4]
800264e: 4613 mov r3, r2
8002650: 011b lsls r3, r3, #4
8002652: 1a9b subs r3, r3, r2
8002654: 009b lsls r3, r3, #2
8002656: 4403 add r3, r0
8002658: 3328 adds r3, #40 @ 0x28
800265a: 881b ldrh r3, [r3, #0]
800265c: 440b add r3, r1
800265e: 1e59 subs r1, r3, #1
8002660: 78fa ldrb r2, [r7, #3]
8002662: 6878 ldr r0, [r7, #4]
8002664: 4613 mov r3, r2
8002666: 011b lsls r3, r3, #4
8002668: 1a9b subs r3, r3, r2
800266a: 009b lsls r3, r3, #2
800266c: 4403 add r3, r0
800266e: 3328 adds r3, #40 @ 0x28
8002670: 881b ldrh r3, [r3, #0]
8002672: fbb1 f3f3 udiv r3, r1, r3
8002676: f003 0301 and.w r3, r3, #1
800267a: 2b00 cmp r3, #0
800267c: f000 8470 beq.w 8002f60 <HCD_HC_IN_IRQHandler+0xccc>
{
hhcd->hc[chnum].toggle_in ^= 1U;
8002680: 78fa ldrb r2, [r7, #3]
8002682: 6879 ldr r1, [r7, #4]
8002684: 4613 mov r3, r2
8002686: 011b lsls r3, r3, #4
8002688: 1a9b subs r3, r3, r2
800268a: 009b lsls r3, r3, #2
800268c: 440b add r3, r1
800268e: 333c adds r3, #60 @ 0x3c
8002690: 781b ldrb r3, [r3, #0]
8002692: 78fa ldrb r2, [r7, #3]
8002694: f083 0301 eor.w r3, r3, #1
8002698: b2d8 uxtb r0, r3
800269a: 6879 ldr r1, [r7, #4]
800269c: 4613 mov r3, r2
800269e: 011b lsls r3, r3, #4
80026a0: 1a9b subs r3, r3, r2
80026a2: 009b lsls r3, r3, #2
80026a4: 440b add r3, r1
80026a6: 333c adds r3, #60 @ 0x3c
80026a8: 4602 mov r2, r0
80026aa: 701a strb r2, [r3, #0]
80026ac: f000 bc58 b.w 8002f60 <HCD_HC_IN_IRQHandler+0xccc>
}
}
else
{
hhcd->hc[chnum].toggle_in ^= 1U;
80026b0: 78fa ldrb r2, [r7, #3]
80026b2: 6879 ldr r1, [r7, #4]
80026b4: 4613 mov r3, r2
80026b6: 011b lsls r3, r3, #4
80026b8: 1a9b subs r3, r3, r2
80026ba: 009b lsls r3, r3, #2
80026bc: 440b add r3, r1
80026be: 333c adds r3, #60 @ 0x3c
80026c0: 781b ldrb r3, [r3, #0]
80026c2: 78fa ldrb r2, [r7, #3]
80026c4: f083 0301 eor.w r3, r3, #1
80026c8: b2d8 uxtb r0, r3
80026ca: 6879 ldr r1, [r7, #4]
80026cc: 4613 mov r3, r2
80026ce: 011b lsls r3, r3, #4
80026d0: 1a9b subs r3, r3, r2
80026d2: 009b lsls r3, r3, #2
80026d4: 440b add r3, r1
80026d6: 333c adds r3, #60 @ 0x3c
80026d8: 4602 mov r2, r0
80026da: 701a strb r2, [r3, #0]
80026dc: f000 bc40 b.w 8002f60 <HCD_HC_IN_IRQHandler+0xccc>
}
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_ACK))
80026e0: 687b ldr r3, [r7, #4]
80026e2: 681b ldr r3, [r3, #0]
80026e4: 78fa ldrb r2, [r7, #3]
80026e6: 4611 mov r1, r2
80026e8: 4618 mov r0, r3
80026ea: f003 ff4a bl 8006582 <USB_ReadChInterrupts>
80026ee: 4603 mov r3, r0
80026f0: f003 0320 and.w r3, r3, #32
80026f4: 2b20 cmp r3, #32
80026f6: d131 bne.n 800275c <HCD_HC_IN_IRQHandler+0x4c8>
{
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_ACK);
80026f8: 78fb ldrb r3, [r7, #3]
80026fa: 015a lsls r2, r3, #5
80026fc: 693b ldr r3, [r7, #16]
80026fe: 4413 add r3, r2
8002700: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002704: 461a mov r2, r3
8002706: 2320 movs r3, #32
8002708: 6093 str r3, [r2, #8]
if (hhcd->hc[chnum].do_ssplit == 1U)
800270a: 78fa ldrb r2, [r7, #3]
800270c: 6879 ldr r1, [r7, #4]
800270e: 4613 mov r3, r2
8002710: 011b lsls r3, r3, #4
8002712: 1a9b subs r3, r3, r2
8002714: 009b lsls r3, r3, #2
8002716: 440b add r3, r1
8002718: 331a adds r3, #26
800271a: 781b ldrb r3, [r3, #0]
800271c: 2b01 cmp r3, #1
800271e: f040 841f bne.w 8002f60 <HCD_HC_IN_IRQHandler+0xccc>
{
hhcd->hc[chnum].do_csplit = 1U;
8002722: 78fa ldrb r2, [r7, #3]
8002724: 6879 ldr r1, [r7, #4]
8002726: 4613 mov r3, r2
8002728: 011b lsls r3, r3, #4
800272a: 1a9b subs r3, r3, r2
800272c: 009b lsls r3, r3, #2
800272e: 440b add r3, r1
8002730: 331b adds r3, #27
8002732: 2201 movs r2, #1
8002734: 701a strb r2, [r3, #0]
hhcd->hc[chnum].state = HC_ACK;
8002736: 78fa ldrb r2, [r7, #3]
8002738: 6879 ldr r1, [r7, #4]
800273a: 4613 mov r3, r2
800273c: 011b lsls r3, r3, #4
800273e: 1a9b subs r3, r3, r2
8002740: 009b lsls r3, r3, #2
8002742: 440b add r3, r1
8002744: 334d adds r3, #77 @ 0x4d
8002746: 2203 movs r2, #3
8002748: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
800274a: 687b ldr r3, [r7, #4]
800274c: 681b ldr r3, [r3, #0]
800274e: 78fa ldrb r2, [r7, #3]
8002750: 4611 mov r1, r2
8002752: 4618 mov r0, r3
8002754: f003 ff92 bl 800667c <USB_HC_Halt>
8002758: f000 bc02 b.w 8002f60 <HCD_HC_IN_IRQHandler+0xccc>
}
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_CHH))
800275c: 687b ldr r3, [r7, #4]
800275e: 681b ldr r3, [r3, #0]
8002760: 78fa ldrb r2, [r7, #3]
8002762: 4611 mov r1, r2
8002764: 4618 mov r0, r3
8002766: f003 ff0c bl 8006582 <USB_ReadChInterrupts>
800276a: 4603 mov r3, r0
800276c: f003 0302 and.w r3, r3, #2
8002770: 2b02 cmp r3, #2
8002772: f040 8305 bne.w 8002d80 <HCD_HC_IN_IRQHandler+0xaec>
{
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_CHH);
8002776: 78fb ldrb r3, [r7, #3]
8002778: 015a lsls r2, r3, #5
800277a: 693b ldr r3, [r7, #16]
800277c: 4413 add r3, r2
800277e: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002782: 461a mov r2, r3
8002784: 2302 movs r3, #2
8002786: 6093 str r3, [r2, #8]
if (hhcd->hc[chnum].state == HC_XFRC)
8002788: 78fa ldrb r2, [r7, #3]
800278a: 6879 ldr r1, [r7, #4]
800278c: 4613 mov r3, r2
800278e: 011b lsls r3, r3, #4
8002790: 1a9b subs r3, r3, r2
8002792: 009b lsls r3, r3, #2
8002794: 440b add r3, r1
8002796: 334d adds r3, #77 @ 0x4d
8002798: 781b ldrb r3, [r3, #0]
800279a: 2b01 cmp r3, #1
800279c: d114 bne.n 80027c8 <HCD_HC_IN_IRQHandler+0x534>
{
hhcd->hc[chnum].state = HC_HALTED;
800279e: 78fa ldrb r2, [r7, #3]
80027a0: 6879 ldr r1, [r7, #4]
80027a2: 4613 mov r3, r2
80027a4: 011b lsls r3, r3, #4
80027a6: 1a9b subs r3, r3, r2
80027a8: 009b lsls r3, r3, #2
80027aa: 440b add r3, r1
80027ac: 334d adds r3, #77 @ 0x4d
80027ae: 2202 movs r2, #2
80027b0: 701a strb r2, [r3, #0]
hhcd->hc[chnum].urb_state = URB_DONE;
80027b2: 78fa ldrb r2, [r7, #3]
80027b4: 6879 ldr r1, [r7, #4]
80027b6: 4613 mov r3, r2
80027b8: 011b lsls r3, r3, #4
80027ba: 1a9b subs r3, r3, r2
80027bc: 009b lsls r3, r3, #2
80027be: 440b add r3, r1
80027c0: 334c adds r3, #76 @ 0x4c
80027c2: 2201 movs r2, #1
80027c4: 701a strb r2, [r3, #0]
80027c6: e2cc b.n 8002d62 <HCD_HC_IN_IRQHandler+0xace>
}
else if (hhcd->hc[chnum].state == HC_STALL)
80027c8: 78fa ldrb r2, [r7, #3]
80027ca: 6879 ldr r1, [r7, #4]
80027cc: 4613 mov r3, r2
80027ce: 011b lsls r3, r3, #4
80027d0: 1a9b subs r3, r3, r2
80027d2: 009b lsls r3, r3, #2
80027d4: 440b add r3, r1
80027d6: 334d adds r3, #77 @ 0x4d
80027d8: 781b ldrb r3, [r3, #0]
80027da: 2b06 cmp r3, #6
80027dc: d114 bne.n 8002808 <HCD_HC_IN_IRQHandler+0x574>
{
hhcd->hc[chnum].state = HC_HALTED;
80027de: 78fa ldrb r2, [r7, #3]
80027e0: 6879 ldr r1, [r7, #4]
80027e2: 4613 mov r3, r2
80027e4: 011b lsls r3, r3, #4
80027e6: 1a9b subs r3, r3, r2
80027e8: 009b lsls r3, r3, #2
80027ea: 440b add r3, r1
80027ec: 334d adds r3, #77 @ 0x4d
80027ee: 2202 movs r2, #2
80027f0: 701a strb r2, [r3, #0]
hhcd->hc[chnum].urb_state = URB_STALL;
80027f2: 78fa ldrb r2, [r7, #3]
80027f4: 6879 ldr r1, [r7, #4]
80027f6: 4613 mov r3, r2
80027f8: 011b lsls r3, r3, #4
80027fa: 1a9b subs r3, r3, r2
80027fc: 009b lsls r3, r3, #2
80027fe: 440b add r3, r1
8002800: 334c adds r3, #76 @ 0x4c
8002802: 2205 movs r2, #5
8002804: 701a strb r2, [r3, #0]
8002806: e2ac b.n 8002d62 <HCD_HC_IN_IRQHandler+0xace>
}
else if ((hhcd->hc[chnum].state == HC_XACTERR) ||
8002808: 78fa ldrb r2, [r7, #3]
800280a: 6879 ldr r1, [r7, #4]
800280c: 4613 mov r3, r2
800280e: 011b lsls r3, r3, #4
8002810: 1a9b subs r3, r3, r2
8002812: 009b lsls r3, r3, #2
8002814: 440b add r3, r1
8002816: 334d adds r3, #77 @ 0x4d
8002818: 781b ldrb r3, [r3, #0]
800281a: 2b07 cmp r3, #7
800281c: d00b beq.n 8002836 <HCD_HC_IN_IRQHandler+0x5a2>
(hhcd->hc[chnum].state == HC_DATATGLERR))
800281e: 78fa ldrb r2, [r7, #3]
8002820: 6879 ldr r1, [r7, #4]
8002822: 4613 mov r3, r2
8002824: 011b lsls r3, r3, #4
8002826: 1a9b subs r3, r3, r2
8002828: 009b lsls r3, r3, #2
800282a: 440b add r3, r1
800282c: 334d adds r3, #77 @ 0x4d
800282e: 781b ldrb r3, [r3, #0]
else if ((hhcd->hc[chnum].state == HC_XACTERR) ||
8002830: 2b09 cmp r3, #9
8002832: f040 80a6 bne.w 8002982 <HCD_HC_IN_IRQHandler+0x6ee>
{
hhcd->hc[chnum].state = HC_HALTED;
8002836: 78fa ldrb r2, [r7, #3]
8002838: 6879 ldr r1, [r7, #4]
800283a: 4613 mov r3, r2
800283c: 011b lsls r3, r3, #4
800283e: 1a9b subs r3, r3, r2
8002840: 009b lsls r3, r3, #2
8002842: 440b add r3, r1
8002844: 334d adds r3, #77 @ 0x4d
8002846: 2202 movs r2, #2
8002848: 701a strb r2, [r3, #0]
hhcd->hc[chnum].ErrCnt++;
800284a: 78fa ldrb r2, [r7, #3]
800284c: 6879 ldr r1, [r7, #4]
800284e: 4613 mov r3, r2
8002850: 011b lsls r3, r3, #4
8002852: 1a9b subs r3, r3, r2
8002854: 009b lsls r3, r3, #2
8002856: 440b add r3, r1
8002858: 3344 adds r3, #68 @ 0x44
800285a: 681b ldr r3, [r3, #0]
800285c: 1c59 adds r1, r3, #1
800285e: 6878 ldr r0, [r7, #4]
8002860: 4613 mov r3, r2
8002862: 011b lsls r3, r3, #4
8002864: 1a9b subs r3, r3, r2
8002866: 009b lsls r3, r3, #2
8002868: 4403 add r3, r0
800286a: 3344 adds r3, #68 @ 0x44
800286c: 6019 str r1, [r3, #0]
if (hhcd->hc[chnum].ErrCnt > 2U)
800286e: 78fa ldrb r2, [r7, #3]
8002870: 6879 ldr r1, [r7, #4]
8002872: 4613 mov r3, r2
8002874: 011b lsls r3, r3, #4
8002876: 1a9b subs r3, r3, r2
8002878: 009b lsls r3, r3, #2
800287a: 440b add r3, r1
800287c: 3344 adds r3, #68 @ 0x44
800287e: 681b ldr r3, [r3, #0]
8002880: 2b02 cmp r3, #2
8002882: d943 bls.n 800290c <HCD_HC_IN_IRQHandler+0x678>
{
hhcd->hc[chnum].ErrCnt = 0U;
8002884: 78fa ldrb r2, [r7, #3]
8002886: 6879 ldr r1, [r7, #4]
8002888: 4613 mov r3, r2
800288a: 011b lsls r3, r3, #4
800288c: 1a9b subs r3, r3, r2
800288e: 009b lsls r3, r3, #2
8002890: 440b add r3, r1
8002892: 3344 adds r3, #68 @ 0x44
8002894: 2200 movs r2, #0
8002896: 601a str r2, [r3, #0]
if (hhcd->hc[chnum].do_ssplit == 1U)
8002898: 78fa ldrb r2, [r7, #3]
800289a: 6879 ldr r1, [r7, #4]
800289c: 4613 mov r3, r2
800289e: 011b lsls r3, r3, #4
80028a0: 1a9b subs r3, r3, r2
80028a2: 009b lsls r3, r3, #2
80028a4: 440b add r3, r1
80028a6: 331a adds r3, #26
80028a8: 781b ldrb r3, [r3, #0]
80028aa: 2b01 cmp r3, #1
80028ac: d123 bne.n 80028f6 <HCD_HC_IN_IRQHandler+0x662>
{
hhcd->hc[chnum].do_csplit = 0U;
80028ae: 78fa ldrb r2, [r7, #3]
80028b0: 6879 ldr r1, [r7, #4]
80028b2: 4613 mov r3, r2
80028b4: 011b lsls r3, r3, #4
80028b6: 1a9b subs r3, r3, r2
80028b8: 009b lsls r3, r3, #2
80028ba: 440b add r3, r1
80028bc: 331b adds r3, #27
80028be: 2200 movs r2, #0
80028c0: 701a strb r2, [r3, #0]
hhcd->hc[chnum].ep_ss_schedule = 0U;
80028c2: 78fa ldrb r2, [r7, #3]
80028c4: 6879 ldr r1, [r7, #4]
80028c6: 4613 mov r3, r2
80028c8: 011b lsls r3, r3, #4
80028ca: 1a9b subs r3, r3, r2
80028cc: 009b lsls r3, r3, #2
80028ce: 440b add r3, r1
80028d0: 331c adds r3, #28
80028d2: 2200 movs r2, #0
80028d4: 701a strb r2, [r3, #0]
__HAL_HCD_CLEAR_HC_CSPLT(chnum);
80028d6: 78fb ldrb r3, [r7, #3]
80028d8: 015a lsls r2, r3, #5
80028da: 693b ldr r3, [r7, #16]
80028dc: 4413 add r3, r2
80028de: f503 63a0 add.w r3, r3, #1280 @ 0x500
80028e2: 685b ldr r3, [r3, #4]
80028e4: 78fa ldrb r2, [r7, #3]
80028e6: 0151 lsls r1, r2, #5
80028e8: 693a ldr r2, [r7, #16]
80028ea: 440a add r2, r1
80028ec: f502 62a0 add.w r2, r2, #1280 @ 0x500
80028f0: f423 3380 bic.w r3, r3, #65536 @ 0x10000
80028f4: 6053 str r3, [r2, #4]
}
hhcd->hc[chnum].urb_state = URB_ERROR;
80028f6: 78fa ldrb r2, [r7, #3]
80028f8: 6879 ldr r1, [r7, #4]
80028fa: 4613 mov r3, r2
80028fc: 011b lsls r3, r3, #4
80028fe: 1a9b subs r3, r3, r2
8002900: 009b lsls r3, r3, #2
8002902: 440b add r3, r1
8002904: 334c adds r3, #76 @ 0x4c
8002906: 2204 movs r2, #4
8002908: 701a strb r2, [r3, #0]
if (hhcd->hc[chnum].ErrCnt > 2U)
800290a: e229 b.n 8002d60 <HCD_HC_IN_IRQHandler+0xacc>
}
else
{
hhcd->hc[chnum].urb_state = URB_NOTREADY;
800290c: 78fa ldrb r2, [r7, #3]
800290e: 6879 ldr r1, [r7, #4]
8002910: 4613 mov r3, r2
8002912: 011b lsls r3, r3, #4
8002914: 1a9b subs r3, r3, r2
8002916: 009b lsls r3, r3, #2
8002918: 440b add r3, r1
800291a: 334c adds r3, #76 @ 0x4c
800291c: 2202 movs r2, #2
800291e: 701a strb r2, [r3, #0]
if ((hhcd->hc[chnum].ep_type == EP_TYPE_CTRL) ||
8002920: 78fa ldrb r2, [r7, #3]
8002922: 6879 ldr r1, [r7, #4]
8002924: 4613 mov r3, r2
8002926: 011b lsls r3, r3, #4
8002928: 1a9b subs r3, r3, r2
800292a: 009b lsls r3, r3, #2
800292c: 440b add r3, r1
800292e: 3326 adds r3, #38 @ 0x26
8002930: 781b ldrb r3, [r3, #0]
8002932: 2b00 cmp r3, #0
8002934: d00b beq.n 800294e <HCD_HC_IN_IRQHandler+0x6ba>
(hhcd->hc[chnum].ep_type == EP_TYPE_BULK))
8002936: 78fa ldrb r2, [r7, #3]
8002938: 6879 ldr r1, [r7, #4]
800293a: 4613 mov r3, r2
800293c: 011b lsls r3, r3, #4
800293e: 1a9b subs r3, r3, r2
8002940: 009b lsls r3, r3, #2
8002942: 440b add r3, r1
8002944: 3326 adds r3, #38 @ 0x26
8002946: 781b ldrb r3, [r3, #0]
if ((hhcd->hc[chnum].ep_type == EP_TYPE_CTRL) ||
8002948: 2b02 cmp r3, #2
800294a: f040 8209 bne.w 8002d60 <HCD_HC_IN_IRQHandler+0xacc>
{
/* re-activate the channel */
tmpreg = USBx_HC(chnum)->HCCHAR;
800294e: 78fb ldrb r3, [r7, #3]
8002950: 015a lsls r2, r3, #5
8002952: 693b ldr r3, [r7, #16]
8002954: 4413 add r3, r2
8002956: f503 63a0 add.w r3, r3, #1280 @ 0x500
800295a: 681b ldr r3, [r3, #0]
800295c: 60fb str r3, [r7, #12]
tmpreg &= ~USB_OTG_HCCHAR_CHDIS;
800295e: 68fb ldr r3, [r7, #12]
8002960: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000
8002964: 60fb str r3, [r7, #12]
tmpreg |= USB_OTG_HCCHAR_CHENA;
8002966: 68fb ldr r3, [r7, #12]
8002968: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
800296c: 60fb str r3, [r7, #12]
USBx_HC(chnum)->HCCHAR = tmpreg;
800296e: 78fb ldrb r3, [r7, #3]
8002970: 015a lsls r2, r3, #5
8002972: 693b ldr r3, [r7, #16]
8002974: 4413 add r3, r2
8002976: f503 63a0 add.w r3, r3, #1280 @ 0x500
800297a: 461a mov r2, r3
800297c: 68fb ldr r3, [r7, #12]
800297e: 6013 str r3, [r2, #0]
if (hhcd->hc[chnum].ErrCnt > 2U)
8002980: e1ee b.n 8002d60 <HCD_HC_IN_IRQHandler+0xacc>
}
}
}
else if (hhcd->hc[chnum].state == HC_NYET)
8002982: 78fa ldrb r2, [r7, #3]
8002984: 6879 ldr r1, [r7, #4]
8002986: 4613 mov r3, r2
8002988: 011b lsls r3, r3, #4
800298a: 1a9b subs r3, r3, r2
800298c: 009b lsls r3, r3, #2
800298e: 440b add r3, r1
8002990: 334d adds r3, #77 @ 0x4d
8002992: 781b ldrb r3, [r3, #0]
8002994: 2b05 cmp r3, #5
8002996: f040 80c8 bne.w 8002b2a <HCD_HC_IN_IRQHandler+0x896>
{
hhcd->hc[chnum].state = HC_HALTED;
800299a: 78fa ldrb r2, [r7, #3]
800299c: 6879 ldr r1, [r7, #4]
800299e: 4613 mov r3, r2
80029a0: 011b lsls r3, r3, #4
80029a2: 1a9b subs r3, r3, r2
80029a4: 009b lsls r3, r3, #2
80029a6: 440b add r3, r1
80029a8: 334d adds r3, #77 @ 0x4d
80029aa: 2202 movs r2, #2
80029ac: 701a strb r2, [r3, #0]
if (hhcd->hc[chnum].do_csplit == 1U)
80029ae: 78fa ldrb r2, [r7, #3]
80029b0: 6879 ldr r1, [r7, #4]
80029b2: 4613 mov r3, r2
80029b4: 011b lsls r3, r3, #4
80029b6: 1a9b subs r3, r3, r2
80029b8: 009b lsls r3, r3, #2
80029ba: 440b add r3, r1
80029bc: 331b adds r3, #27
80029be: 781b ldrb r3, [r3, #0]
80029c0: 2b01 cmp r3, #1
80029c2: f040 81ce bne.w 8002d62 <HCD_HC_IN_IRQHandler+0xace>
{
if (hhcd->hc[chnum].ep_type == EP_TYPE_INTR)
80029c6: 78fa ldrb r2, [r7, #3]
80029c8: 6879 ldr r1, [r7, #4]
80029ca: 4613 mov r3, r2
80029cc: 011b lsls r3, r3, #4
80029ce: 1a9b subs r3, r3, r2
80029d0: 009b lsls r3, r3, #2
80029d2: 440b add r3, r1
80029d4: 3326 adds r3, #38 @ 0x26
80029d6: 781b ldrb r3, [r3, #0]
80029d8: 2b03 cmp r3, #3
80029da: d16b bne.n 8002ab4 <HCD_HC_IN_IRQHandler+0x820>
{
hhcd->hc[chnum].NyetErrCnt++;
80029dc: 78fa ldrb r2, [r7, #3]
80029de: 6879 ldr r1, [r7, #4]
80029e0: 4613 mov r3, r2
80029e2: 011b lsls r3, r3, #4
80029e4: 1a9b subs r3, r3, r2
80029e6: 009b lsls r3, r3, #2
80029e8: 440b add r3, r1
80029ea: 3348 adds r3, #72 @ 0x48
80029ec: 681b ldr r3, [r3, #0]
80029ee: 1c59 adds r1, r3, #1
80029f0: 6878 ldr r0, [r7, #4]
80029f2: 4613 mov r3, r2
80029f4: 011b lsls r3, r3, #4
80029f6: 1a9b subs r3, r3, r2
80029f8: 009b lsls r3, r3, #2
80029fa: 4403 add r3, r0
80029fc: 3348 adds r3, #72 @ 0x48
80029fe: 6019 str r1, [r3, #0]
if (hhcd->hc[chnum].NyetErrCnt > 2U)
8002a00: 78fa ldrb r2, [r7, #3]
8002a02: 6879 ldr r1, [r7, #4]
8002a04: 4613 mov r3, r2
8002a06: 011b lsls r3, r3, #4
8002a08: 1a9b subs r3, r3, r2
8002a0a: 009b lsls r3, r3, #2
8002a0c: 440b add r3, r1
8002a0e: 3348 adds r3, #72 @ 0x48
8002a10: 681b ldr r3, [r3, #0]
8002a12: 2b02 cmp r3, #2
8002a14: d943 bls.n 8002a9e <HCD_HC_IN_IRQHandler+0x80a>
{
hhcd->hc[chnum].NyetErrCnt = 0U;
8002a16: 78fa ldrb r2, [r7, #3]
8002a18: 6879 ldr r1, [r7, #4]
8002a1a: 4613 mov r3, r2
8002a1c: 011b lsls r3, r3, #4
8002a1e: 1a9b subs r3, r3, r2
8002a20: 009b lsls r3, r3, #2
8002a22: 440b add r3, r1
8002a24: 3348 adds r3, #72 @ 0x48
8002a26: 2200 movs r2, #0
8002a28: 601a str r2, [r3, #0]
hhcd->hc[chnum].do_csplit = 0U;
8002a2a: 78fa ldrb r2, [r7, #3]
8002a2c: 6879 ldr r1, [r7, #4]
8002a2e: 4613 mov r3, r2
8002a30: 011b lsls r3, r3, #4
8002a32: 1a9b subs r3, r3, r2
8002a34: 009b lsls r3, r3, #2
8002a36: 440b add r3, r1
8002a38: 331b adds r3, #27
8002a3a: 2200 movs r2, #0
8002a3c: 701a strb r2, [r3, #0]
if (hhcd->hc[chnum].ErrCnt < 3U)
8002a3e: 78fa ldrb r2, [r7, #3]
8002a40: 6879 ldr r1, [r7, #4]
8002a42: 4613 mov r3, r2
8002a44: 011b lsls r3, r3, #4
8002a46: 1a9b subs r3, r3, r2
8002a48: 009b lsls r3, r3, #2
8002a4a: 440b add r3, r1
8002a4c: 3344 adds r3, #68 @ 0x44
8002a4e: 681b ldr r3, [r3, #0]
8002a50: 2b02 cmp r3, #2
8002a52: d809 bhi.n 8002a68 <HCD_HC_IN_IRQHandler+0x7d4>
{
hhcd->hc[chnum].ep_ss_schedule = 1U;
8002a54: 78fa ldrb r2, [r7, #3]
8002a56: 6879 ldr r1, [r7, #4]
8002a58: 4613 mov r3, r2
8002a5a: 011b lsls r3, r3, #4
8002a5c: 1a9b subs r3, r3, r2
8002a5e: 009b lsls r3, r3, #2
8002a60: 440b add r3, r1
8002a62: 331c adds r3, #28
8002a64: 2201 movs r2, #1
8002a66: 701a strb r2, [r3, #0]
}
__HAL_HCD_CLEAR_HC_CSPLT(chnum);
8002a68: 78fb ldrb r3, [r7, #3]
8002a6a: 015a lsls r2, r3, #5
8002a6c: 693b ldr r3, [r7, #16]
8002a6e: 4413 add r3, r2
8002a70: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002a74: 685b ldr r3, [r3, #4]
8002a76: 78fa ldrb r2, [r7, #3]
8002a78: 0151 lsls r1, r2, #5
8002a7a: 693a ldr r2, [r7, #16]
8002a7c: 440a add r2, r1
8002a7e: f502 62a0 add.w r2, r2, #1280 @ 0x500
8002a82: f423 3380 bic.w r3, r3, #65536 @ 0x10000
8002a86: 6053 str r3, [r2, #4]
hhcd->hc[chnum].urb_state = URB_ERROR;
8002a88: 78fa ldrb r2, [r7, #3]
8002a8a: 6879 ldr r1, [r7, #4]
8002a8c: 4613 mov r3, r2
8002a8e: 011b lsls r3, r3, #4
8002a90: 1a9b subs r3, r3, r2
8002a92: 009b lsls r3, r3, #2
8002a94: 440b add r3, r1
8002a96: 334c adds r3, #76 @ 0x4c
8002a98: 2204 movs r2, #4
8002a9a: 701a strb r2, [r3, #0]
8002a9c: e014 b.n 8002ac8 <HCD_HC_IN_IRQHandler+0x834>
}
else
{
hhcd->hc[chnum].urb_state = URB_NOTREADY;
8002a9e: 78fa ldrb r2, [r7, #3]
8002aa0: 6879 ldr r1, [r7, #4]
8002aa2: 4613 mov r3, r2
8002aa4: 011b lsls r3, r3, #4
8002aa6: 1a9b subs r3, r3, r2
8002aa8: 009b lsls r3, r3, #2
8002aaa: 440b add r3, r1
8002aac: 334c adds r3, #76 @ 0x4c
8002aae: 2202 movs r2, #2
8002ab0: 701a strb r2, [r3, #0]
8002ab2: e009 b.n 8002ac8 <HCD_HC_IN_IRQHandler+0x834>
}
}
else
{
hhcd->hc[chnum].urb_state = URB_NOTREADY;
8002ab4: 78fa ldrb r2, [r7, #3]
8002ab6: 6879 ldr r1, [r7, #4]
8002ab8: 4613 mov r3, r2
8002aba: 011b lsls r3, r3, #4
8002abc: 1a9b subs r3, r3, r2
8002abe: 009b lsls r3, r3, #2
8002ac0: 440b add r3, r1
8002ac2: 334c adds r3, #76 @ 0x4c
8002ac4: 2202 movs r2, #2
8002ac6: 701a strb r2, [r3, #0]
}
if ((hhcd->hc[chnum].ep_type == EP_TYPE_CTRL) ||
8002ac8: 78fa ldrb r2, [r7, #3]
8002aca: 6879 ldr r1, [r7, #4]
8002acc: 4613 mov r3, r2
8002ace: 011b lsls r3, r3, #4
8002ad0: 1a9b subs r3, r3, r2
8002ad2: 009b lsls r3, r3, #2
8002ad4: 440b add r3, r1
8002ad6: 3326 adds r3, #38 @ 0x26
8002ad8: 781b ldrb r3, [r3, #0]
8002ada: 2b00 cmp r3, #0
8002adc: d00b beq.n 8002af6 <HCD_HC_IN_IRQHandler+0x862>
(hhcd->hc[chnum].ep_type == EP_TYPE_BULK))
8002ade: 78fa ldrb r2, [r7, #3]
8002ae0: 6879 ldr r1, [r7, #4]
8002ae2: 4613 mov r3, r2
8002ae4: 011b lsls r3, r3, #4
8002ae6: 1a9b subs r3, r3, r2
8002ae8: 009b lsls r3, r3, #2
8002aea: 440b add r3, r1
8002aec: 3326 adds r3, #38 @ 0x26
8002aee: 781b ldrb r3, [r3, #0]
if ((hhcd->hc[chnum].ep_type == EP_TYPE_CTRL) ||
8002af0: 2b02 cmp r3, #2
8002af2: f040 8136 bne.w 8002d62 <HCD_HC_IN_IRQHandler+0xace>
{
/* re-activate the channel */
tmpreg = USBx_HC(chnum)->HCCHAR;
8002af6: 78fb ldrb r3, [r7, #3]
8002af8: 015a lsls r2, r3, #5
8002afa: 693b ldr r3, [r7, #16]
8002afc: 4413 add r3, r2
8002afe: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002b02: 681b ldr r3, [r3, #0]
8002b04: 60fb str r3, [r7, #12]
tmpreg &= ~USB_OTG_HCCHAR_CHDIS;
8002b06: 68fb ldr r3, [r7, #12]
8002b08: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000
8002b0c: 60fb str r3, [r7, #12]
tmpreg |= USB_OTG_HCCHAR_CHENA;
8002b0e: 68fb ldr r3, [r7, #12]
8002b10: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
8002b14: 60fb str r3, [r7, #12]
USBx_HC(chnum)->HCCHAR = tmpreg;
8002b16: 78fb ldrb r3, [r7, #3]
8002b18: 015a lsls r2, r3, #5
8002b1a: 693b ldr r3, [r7, #16]
8002b1c: 4413 add r3, r2
8002b1e: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002b22: 461a mov r2, r3
8002b24: 68fb ldr r3, [r7, #12]
8002b26: 6013 str r3, [r2, #0]
8002b28: e11b b.n 8002d62 <HCD_HC_IN_IRQHandler+0xace>
}
}
}
else if (hhcd->hc[chnum].state == HC_ACK)
8002b2a: 78fa ldrb r2, [r7, #3]
8002b2c: 6879 ldr r1, [r7, #4]
8002b2e: 4613 mov r3, r2
8002b30: 011b lsls r3, r3, #4
8002b32: 1a9b subs r3, r3, r2
8002b34: 009b lsls r3, r3, #2
8002b36: 440b add r3, r1
8002b38: 334d adds r3, #77 @ 0x4d
8002b3a: 781b ldrb r3, [r3, #0]
8002b3c: 2b03 cmp r3, #3
8002b3e: f040 8081 bne.w 8002c44 <HCD_HC_IN_IRQHandler+0x9b0>
{
hhcd->hc[chnum].state = HC_HALTED;
8002b42: 78fa ldrb r2, [r7, #3]
8002b44: 6879 ldr r1, [r7, #4]
8002b46: 4613 mov r3, r2
8002b48: 011b lsls r3, r3, #4
8002b4a: 1a9b subs r3, r3, r2
8002b4c: 009b lsls r3, r3, #2
8002b4e: 440b add r3, r1
8002b50: 334d adds r3, #77 @ 0x4d
8002b52: 2202 movs r2, #2
8002b54: 701a strb r2, [r3, #0]
if (hhcd->hc[chnum].do_csplit == 1U)
8002b56: 78fa ldrb r2, [r7, #3]
8002b58: 6879 ldr r1, [r7, #4]
8002b5a: 4613 mov r3, r2
8002b5c: 011b lsls r3, r3, #4
8002b5e: 1a9b subs r3, r3, r2
8002b60: 009b lsls r3, r3, #2
8002b62: 440b add r3, r1
8002b64: 331b adds r3, #27
8002b66: 781b ldrb r3, [r3, #0]
8002b68: 2b01 cmp r3, #1
8002b6a: f040 80fa bne.w 8002d62 <HCD_HC_IN_IRQHandler+0xace>
{
hhcd->hc[chnum].urb_state = URB_NOTREADY;
8002b6e: 78fa ldrb r2, [r7, #3]
8002b70: 6879 ldr r1, [r7, #4]
8002b72: 4613 mov r3, r2
8002b74: 011b lsls r3, r3, #4
8002b76: 1a9b subs r3, r3, r2
8002b78: 009b lsls r3, r3, #2
8002b7a: 440b add r3, r1
8002b7c: 334c adds r3, #76 @ 0x4c
8002b7e: 2202 movs r2, #2
8002b80: 701a strb r2, [r3, #0]
/* Set Complete split and re-activate the channel */
USBx_HC(chnum)->HCSPLT |= USB_OTG_HCSPLT_COMPLSPLT;
8002b82: 78fb ldrb r3, [r7, #3]
8002b84: 015a lsls r2, r3, #5
8002b86: 693b ldr r3, [r7, #16]
8002b88: 4413 add r3, r2
8002b8a: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002b8e: 685b ldr r3, [r3, #4]
8002b90: 78fa ldrb r2, [r7, #3]
8002b92: 0151 lsls r1, r2, #5
8002b94: 693a ldr r2, [r7, #16]
8002b96: 440a add r2, r1
8002b98: f502 62a0 add.w r2, r2, #1280 @ 0x500
8002b9c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
8002ba0: 6053 str r3, [r2, #4]
USBx_HC(chnum)->HCINTMSK |= USB_OTG_HCINTMSK_NYET;
8002ba2: 78fb ldrb r3, [r7, #3]
8002ba4: 015a lsls r2, r3, #5
8002ba6: 693b ldr r3, [r7, #16]
8002ba8: 4413 add r3, r2
8002baa: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002bae: 68db ldr r3, [r3, #12]
8002bb0: 78fa ldrb r2, [r7, #3]
8002bb2: 0151 lsls r1, r2, #5
8002bb4: 693a ldr r2, [r7, #16]
8002bb6: 440a add r2, r1
8002bb8: f502 62a0 add.w r2, r2, #1280 @ 0x500
8002bbc: f043 0340 orr.w r3, r3, #64 @ 0x40
8002bc0: 60d3 str r3, [r2, #12]
USBx_HC(chnum)->HCINTMSK &= ~USB_OTG_HCINT_ACK;
8002bc2: 78fb ldrb r3, [r7, #3]
8002bc4: 015a lsls r2, r3, #5
8002bc6: 693b ldr r3, [r7, #16]
8002bc8: 4413 add r3, r2
8002bca: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002bce: 68db ldr r3, [r3, #12]
8002bd0: 78fa ldrb r2, [r7, #3]
8002bd2: 0151 lsls r1, r2, #5
8002bd4: 693a ldr r2, [r7, #16]
8002bd6: 440a add r2, r1
8002bd8: f502 62a0 add.w r2, r2, #1280 @ 0x500
8002bdc: f023 0320 bic.w r3, r3, #32
8002be0: 60d3 str r3, [r2, #12]
if ((hhcd->hc[chnum].ep_type == EP_TYPE_CTRL) ||
8002be2: 78fa ldrb r2, [r7, #3]
8002be4: 6879 ldr r1, [r7, #4]
8002be6: 4613 mov r3, r2
8002be8: 011b lsls r3, r3, #4
8002bea: 1a9b subs r3, r3, r2
8002bec: 009b lsls r3, r3, #2
8002bee: 440b add r3, r1
8002bf0: 3326 adds r3, #38 @ 0x26
8002bf2: 781b ldrb r3, [r3, #0]
8002bf4: 2b00 cmp r3, #0
8002bf6: d00b beq.n 8002c10 <HCD_HC_IN_IRQHandler+0x97c>
(hhcd->hc[chnum].ep_type == EP_TYPE_BULK))
8002bf8: 78fa ldrb r2, [r7, #3]
8002bfa: 6879 ldr r1, [r7, #4]
8002bfc: 4613 mov r3, r2
8002bfe: 011b lsls r3, r3, #4
8002c00: 1a9b subs r3, r3, r2
8002c02: 009b lsls r3, r3, #2
8002c04: 440b add r3, r1
8002c06: 3326 adds r3, #38 @ 0x26
8002c08: 781b ldrb r3, [r3, #0]
if ((hhcd->hc[chnum].ep_type == EP_TYPE_CTRL) ||
8002c0a: 2b02 cmp r3, #2
8002c0c: f040 80a9 bne.w 8002d62 <HCD_HC_IN_IRQHandler+0xace>
{
/* re-activate the channel */
tmpreg = USBx_HC(chnum)->HCCHAR;
8002c10: 78fb ldrb r3, [r7, #3]
8002c12: 015a lsls r2, r3, #5
8002c14: 693b ldr r3, [r7, #16]
8002c16: 4413 add r3, r2
8002c18: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002c1c: 681b ldr r3, [r3, #0]
8002c1e: 60fb str r3, [r7, #12]
tmpreg &= ~USB_OTG_HCCHAR_CHDIS;
8002c20: 68fb ldr r3, [r7, #12]
8002c22: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000
8002c26: 60fb str r3, [r7, #12]
tmpreg |= USB_OTG_HCCHAR_CHENA;
8002c28: 68fb ldr r3, [r7, #12]
8002c2a: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
8002c2e: 60fb str r3, [r7, #12]
USBx_HC(chnum)->HCCHAR = tmpreg;
8002c30: 78fb ldrb r3, [r7, #3]
8002c32: 015a lsls r2, r3, #5
8002c34: 693b ldr r3, [r7, #16]
8002c36: 4413 add r3, r2
8002c38: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002c3c: 461a mov r2, r3
8002c3e: 68fb ldr r3, [r7, #12]
8002c40: 6013 str r3, [r2, #0]
8002c42: e08e b.n 8002d62 <HCD_HC_IN_IRQHandler+0xace>
}
}
}
else if (hhcd->hc[chnum].state == HC_NAK)
8002c44: 78fa ldrb r2, [r7, #3]
8002c46: 6879 ldr r1, [r7, #4]
8002c48: 4613 mov r3, r2
8002c4a: 011b lsls r3, r3, #4
8002c4c: 1a9b subs r3, r3, r2
8002c4e: 009b lsls r3, r3, #2
8002c50: 440b add r3, r1
8002c52: 334d adds r3, #77 @ 0x4d
8002c54: 781b ldrb r3, [r3, #0]
8002c56: 2b04 cmp r3, #4
8002c58: d143 bne.n 8002ce2 <HCD_HC_IN_IRQHandler+0xa4e>
{
hhcd->hc[chnum].state = HC_HALTED;
8002c5a: 78fa ldrb r2, [r7, #3]
8002c5c: 6879 ldr r1, [r7, #4]
8002c5e: 4613 mov r3, r2
8002c60: 011b lsls r3, r3, #4
8002c62: 1a9b subs r3, r3, r2
8002c64: 009b lsls r3, r3, #2
8002c66: 440b add r3, r1
8002c68: 334d adds r3, #77 @ 0x4d
8002c6a: 2202 movs r2, #2
8002c6c: 701a strb r2, [r3, #0]
hhcd->hc[chnum].urb_state = URB_NOTREADY;
8002c6e: 78fa ldrb r2, [r7, #3]
8002c70: 6879 ldr r1, [r7, #4]
8002c72: 4613 mov r3, r2
8002c74: 011b lsls r3, r3, #4
8002c76: 1a9b subs r3, r3, r2
8002c78: 009b lsls r3, r3, #2
8002c7a: 440b add r3, r1
8002c7c: 334c adds r3, #76 @ 0x4c
8002c7e: 2202 movs r2, #2
8002c80: 701a strb r2, [r3, #0]
if ((hhcd->hc[chnum].ep_type == EP_TYPE_CTRL) ||
8002c82: 78fa ldrb r2, [r7, #3]
8002c84: 6879 ldr r1, [r7, #4]
8002c86: 4613 mov r3, r2
8002c88: 011b lsls r3, r3, #4
8002c8a: 1a9b subs r3, r3, r2
8002c8c: 009b lsls r3, r3, #2
8002c8e: 440b add r3, r1
8002c90: 3326 adds r3, #38 @ 0x26
8002c92: 781b ldrb r3, [r3, #0]
8002c94: 2b00 cmp r3, #0
8002c96: d00a beq.n 8002cae <HCD_HC_IN_IRQHandler+0xa1a>
(hhcd->hc[chnum].ep_type == EP_TYPE_BULK))
8002c98: 78fa ldrb r2, [r7, #3]
8002c9a: 6879 ldr r1, [r7, #4]
8002c9c: 4613 mov r3, r2
8002c9e: 011b lsls r3, r3, #4
8002ca0: 1a9b subs r3, r3, r2
8002ca2: 009b lsls r3, r3, #2
8002ca4: 440b add r3, r1
8002ca6: 3326 adds r3, #38 @ 0x26
8002ca8: 781b ldrb r3, [r3, #0]
if ((hhcd->hc[chnum].ep_type == EP_TYPE_CTRL) ||
8002caa: 2b02 cmp r3, #2
8002cac: d159 bne.n 8002d62 <HCD_HC_IN_IRQHandler+0xace>
{
/* re-activate the channel */
tmpreg = USBx_HC(chnum)->HCCHAR;
8002cae: 78fb ldrb r3, [r7, #3]
8002cb0: 015a lsls r2, r3, #5
8002cb2: 693b ldr r3, [r7, #16]
8002cb4: 4413 add r3, r2
8002cb6: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002cba: 681b ldr r3, [r3, #0]
8002cbc: 60fb str r3, [r7, #12]
tmpreg &= ~USB_OTG_HCCHAR_CHDIS;
8002cbe: 68fb ldr r3, [r7, #12]
8002cc0: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000
8002cc4: 60fb str r3, [r7, #12]
tmpreg |= USB_OTG_HCCHAR_CHENA;
8002cc6: 68fb ldr r3, [r7, #12]
8002cc8: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
8002ccc: 60fb str r3, [r7, #12]
USBx_HC(chnum)->HCCHAR = tmpreg;
8002cce: 78fb ldrb r3, [r7, #3]
8002cd0: 015a lsls r2, r3, #5
8002cd2: 693b ldr r3, [r7, #16]
8002cd4: 4413 add r3, r2
8002cd6: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002cda: 461a mov r2, r3
8002cdc: 68fb ldr r3, [r7, #12]
8002cde: 6013 str r3, [r2, #0]
8002ce0: e03f b.n 8002d62 <HCD_HC_IN_IRQHandler+0xace>
}
}
else if (hhcd->hc[chnum].state == HC_BBLERR)
8002ce2: 78fa ldrb r2, [r7, #3]
8002ce4: 6879 ldr r1, [r7, #4]
8002ce6: 4613 mov r3, r2
8002ce8: 011b lsls r3, r3, #4
8002cea: 1a9b subs r3, r3, r2
8002cec: 009b lsls r3, r3, #2
8002cee: 440b add r3, r1
8002cf0: 334d adds r3, #77 @ 0x4d
8002cf2: 781b ldrb r3, [r3, #0]
8002cf4: 2b08 cmp r3, #8
8002cf6: d126 bne.n 8002d46 <HCD_HC_IN_IRQHandler+0xab2>
{
hhcd->hc[chnum].state = HC_HALTED;
8002cf8: 78fa ldrb r2, [r7, #3]
8002cfa: 6879 ldr r1, [r7, #4]
8002cfc: 4613 mov r3, r2
8002cfe: 011b lsls r3, r3, #4
8002d00: 1a9b subs r3, r3, r2
8002d02: 009b lsls r3, r3, #2
8002d04: 440b add r3, r1
8002d06: 334d adds r3, #77 @ 0x4d
8002d08: 2202 movs r2, #2
8002d0a: 701a strb r2, [r3, #0]
hhcd->hc[chnum].ErrCnt++;
8002d0c: 78fa ldrb r2, [r7, #3]
8002d0e: 6879 ldr r1, [r7, #4]
8002d10: 4613 mov r3, r2
8002d12: 011b lsls r3, r3, #4
8002d14: 1a9b subs r3, r3, r2
8002d16: 009b lsls r3, r3, #2
8002d18: 440b add r3, r1
8002d1a: 3344 adds r3, #68 @ 0x44
8002d1c: 681b ldr r3, [r3, #0]
8002d1e: 1c59 adds r1, r3, #1
8002d20: 6878 ldr r0, [r7, #4]
8002d22: 4613 mov r3, r2
8002d24: 011b lsls r3, r3, #4
8002d26: 1a9b subs r3, r3, r2
8002d28: 009b lsls r3, r3, #2
8002d2a: 4403 add r3, r0
8002d2c: 3344 adds r3, #68 @ 0x44
8002d2e: 6019 str r1, [r3, #0]
hhcd->hc[chnum].urb_state = URB_ERROR;
8002d30: 78fa ldrb r2, [r7, #3]
8002d32: 6879 ldr r1, [r7, #4]
8002d34: 4613 mov r3, r2
8002d36: 011b lsls r3, r3, #4
8002d38: 1a9b subs r3, r3, r2
8002d3a: 009b lsls r3, r3, #2
8002d3c: 440b add r3, r1
8002d3e: 334c adds r3, #76 @ 0x4c
8002d40: 2204 movs r2, #4
8002d42: 701a strb r2, [r3, #0]
8002d44: e00d b.n 8002d62 <HCD_HC_IN_IRQHandler+0xace>
}
else
{
if (hhcd->hc[chnum].state == HC_HALTED)
8002d46: 78fa ldrb r2, [r7, #3]
8002d48: 6879 ldr r1, [r7, #4]
8002d4a: 4613 mov r3, r2
8002d4c: 011b lsls r3, r3, #4
8002d4e: 1a9b subs r3, r3, r2
8002d50: 009b lsls r3, r3, #2
8002d52: 440b add r3, r1
8002d54: 334d adds r3, #77 @ 0x4d
8002d56: 781b ldrb r3, [r3, #0]
8002d58: 2b02 cmp r3, #2
8002d5a: f000 8100 beq.w 8002f5e <HCD_HC_IN_IRQHandler+0xcca>
8002d5e: e000 b.n 8002d62 <HCD_HC_IN_IRQHandler+0xace>
if (hhcd->hc[chnum].ErrCnt > 2U)
8002d60: bf00 nop
}
#if (USE_HAL_HCD_REGISTER_CALLBACKS == 1U)
hhcd->HC_NotifyURBChangeCallback(hhcd, chnum, hhcd->hc[chnum].urb_state);
#else
HAL_HCD_HC_NotifyURBChange_Callback(hhcd, chnum, hhcd->hc[chnum].urb_state);
8002d62: 78fa ldrb r2, [r7, #3]
8002d64: 6879 ldr r1, [r7, #4]
8002d66: 4613 mov r3, r2
8002d68: 011b lsls r3, r3, #4
8002d6a: 1a9b subs r3, r3, r2
8002d6c: 009b lsls r3, r3, #2
8002d6e: 440b add r3, r1
8002d70: 334c adds r3, #76 @ 0x4c
8002d72: 781a ldrb r2, [r3, #0]
8002d74: 78fb ldrb r3, [r7, #3]
8002d76: 4619 mov r1, r3
8002d78: 6878 ldr r0, [r7, #4]
8002d7a: f005 f813 bl 8007da4 <HAL_HCD_HC_NotifyURBChange_Callback>
8002d7e: e0ef b.n 8002f60 <HCD_HC_IN_IRQHandler+0xccc>
#endif /* USE_HAL_HCD_REGISTER_CALLBACKS */
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_NYET))
8002d80: 687b ldr r3, [r7, #4]
8002d82: 681b ldr r3, [r3, #0]
8002d84: 78fa ldrb r2, [r7, #3]
8002d86: 4611 mov r1, r2
8002d88: 4618 mov r0, r3
8002d8a: f003 fbfa bl 8006582 <USB_ReadChInterrupts>
8002d8e: 4603 mov r3, r0
8002d90: f003 0340 and.w r3, r3, #64 @ 0x40
8002d94: 2b40 cmp r3, #64 @ 0x40
8002d96: d12f bne.n 8002df8 <HCD_HC_IN_IRQHandler+0xb64>
{
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_NYET);
8002d98: 78fb ldrb r3, [r7, #3]
8002d9a: 015a lsls r2, r3, #5
8002d9c: 693b ldr r3, [r7, #16]
8002d9e: 4413 add r3, r2
8002da0: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002da4: 461a mov r2, r3
8002da6: 2340 movs r3, #64 @ 0x40
8002da8: 6093 str r3, [r2, #8]
hhcd->hc[chnum].state = HC_NYET;
8002daa: 78fa ldrb r2, [r7, #3]
8002dac: 6879 ldr r1, [r7, #4]
8002dae: 4613 mov r3, r2
8002db0: 011b lsls r3, r3, #4
8002db2: 1a9b subs r3, r3, r2
8002db4: 009b lsls r3, r3, #2
8002db6: 440b add r3, r1
8002db8: 334d adds r3, #77 @ 0x4d
8002dba: 2205 movs r2, #5
8002dbc: 701a strb r2, [r3, #0]
if (hhcd->hc[chnum].do_ssplit == 0U)
8002dbe: 78fa ldrb r2, [r7, #3]
8002dc0: 6879 ldr r1, [r7, #4]
8002dc2: 4613 mov r3, r2
8002dc4: 011b lsls r3, r3, #4
8002dc6: 1a9b subs r3, r3, r2
8002dc8: 009b lsls r3, r3, #2
8002dca: 440b add r3, r1
8002dcc: 331a adds r3, #26
8002dce: 781b ldrb r3, [r3, #0]
8002dd0: 2b00 cmp r3, #0
8002dd2: d109 bne.n 8002de8 <HCD_HC_IN_IRQHandler+0xb54>
{
hhcd->hc[chnum].ErrCnt = 0U;
8002dd4: 78fa ldrb r2, [r7, #3]
8002dd6: 6879 ldr r1, [r7, #4]
8002dd8: 4613 mov r3, r2
8002dda: 011b lsls r3, r3, #4
8002ddc: 1a9b subs r3, r3, r2
8002dde: 009b lsls r3, r3, #2
8002de0: 440b add r3, r1
8002de2: 3344 adds r3, #68 @ 0x44
8002de4: 2200 movs r2, #0
8002de6: 601a str r2, [r3, #0]
}
(void)USB_HC_Halt(hhcd->Instance, chnum);
8002de8: 687b ldr r3, [r7, #4]
8002dea: 681b ldr r3, [r3, #0]
8002dec: 78fa ldrb r2, [r7, #3]
8002dee: 4611 mov r1, r2
8002df0: 4618 mov r0, r3
8002df2: f003 fc43 bl 800667c <USB_HC_Halt>
8002df6: e0b3 b.n 8002f60 <HCD_HC_IN_IRQHandler+0xccc>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_NAK))
8002df8: 687b ldr r3, [r7, #4]
8002dfa: 681b ldr r3, [r3, #0]
8002dfc: 78fa ldrb r2, [r7, #3]
8002dfe: 4611 mov r1, r2
8002e00: 4618 mov r0, r3
8002e02: f003 fbbe bl 8006582 <USB_ReadChInterrupts>
8002e06: 4603 mov r3, r0
8002e08: f003 0310 and.w r3, r3, #16
8002e0c: 2b10 cmp r3, #16
8002e0e: f040 80a7 bne.w 8002f60 <HCD_HC_IN_IRQHandler+0xccc>
{
if (hhcd->hc[chnum].ep_type == EP_TYPE_INTR)
8002e12: 78fa ldrb r2, [r7, #3]
8002e14: 6879 ldr r1, [r7, #4]
8002e16: 4613 mov r3, r2
8002e18: 011b lsls r3, r3, #4
8002e1a: 1a9b subs r3, r3, r2
8002e1c: 009b lsls r3, r3, #2
8002e1e: 440b add r3, r1
8002e20: 3326 adds r3, #38 @ 0x26
8002e22: 781b ldrb r3, [r3, #0]
8002e24: 2b03 cmp r3, #3
8002e26: d11b bne.n 8002e60 <HCD_HC_IN_IRQHandler+0xbcc>
{
hhcd->hc[chnum].ErrCnt = 0U;
8002e28: 78fa ldrb r2, [r7, #3]
8002e2a: 6879 ldr r1, [r7, #4]
8002e2c: 4613 mov r3, r2
8002e2e: 011b lsls r3, r3, #4
8002e30: 1a9b subs r3, r3, r2
8002e32: 009b lsls r3, r3, #2
8002e34: 440b add r3, r1
8002e36: 3344 adds r3, #68 @ 0x44
8002e38: 2200 movs r2, #0
8002e3a: 601a str r2, [r3, #0]
hhcd->hc[chnum].state = HC_NAK;
8002e3c: 78fa ldrb r2, [r7, #3]
8002e3e: 6879 ldr r1, [r7, #4]
8002e40: 4613 mov r3, r2
8002e42: 011b lsls r3, r3, #4
8002e44: 1a9b subs r3, r3, r2
8002e46: 009b lsls r3, r3, #2
8002e48: 440b add r3, r1
8002e4a: 334d adds r3, #77 @ 0x4d
8002e4c: 2204 movs r2, #4
8002e4e: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
8002e50: 687b ldr r3, [r7, #4]
8002e52: 681b ldr r3, [r3, #0]
8002e54: 78fa ldrb r2, [r7, #3]
8002e56: 4611 mov r1, r2
8002e58: 4618 mov r0, r3
8002e5a: f003 fc0f bl 800667c <USB_HC_Halt>
8002e5e: e03f b.n 8002ee0 <HCD_HC_IN_IRQHandler+0xc4c>
}
else if ((hhcd->hc[chnum].ep_type == EP_TYPE_CTRL) ||
8002e60: 78fa ldrb r2, [r7, #3]
8002e62: 6879 ldr r1, [r7, #4]
8002e64: 4613 mov r3, r2
8002e66: 011b lsls r3, r3, #4
8002e68: 1a9b subs r3, r3, r2
8002e6a: 009b lsls r3, r3, #2
8002e6c: 440b add r3, r1
8002e6e: 3326 adds r3, #38 @ 0x26
8002e70: 781b ldrb r3, [r3, #0]
8002e72: 2b00 cmp r3, #0
8002e74: d00a beq.n 8002e8c <HCD_HC_IN_IRQHandler+0xbf8>
(hhcd->hc[chnum].ep_type == EP_TYPE_BULK))
8002e76: 78fa ldrb r2, [r7, #3]
8002e78: 6879 ldr r1, [r7, #4]
8002e7a: 4613 mov r3, r2
8002e7c: 011b lsls r3, r3, #4
8002e7e: 1a9b subs r3, r3, r2
8002e80: 009b lsls r3, r3, #2
8002e82: 440b add r3, r1
8002e84: 3326 adds r3, #38 @ 0x26
8002e86: 781b ldrb r3, [r3, #0]
else if ((hhcd->hc[chnum].ep_type == EP_TYPE_CTRL) ||
8002e88: 2b02 cmp r3, #2
8002e8a: d129 bne.n 8002ee0 <HCD_HC_IN_IRQHandler+0xc4c>
{
hhcd->hc[chnum].ErrCnt = 0U;
8002e8c: 78fa ldrb r2, [r7, #3]
8002e8e: 6879 ldr r1, [r7, #4]
8002e90: 4613 mov r3, r2
8002e92: 011b lsls r3, r3, #4
8002e94: 1a9b subs r3, r3, r2
8002e96: 009b lsls r3, r3, #2
8002e98: 440b add r3, r1
8002e9a: 3344 adds r3, #68 @ 0x44
8002e9c: 2200 movs r2, #0
8002e9e: 601a str r2, [r3, #0]
if ((hhcd->Init.dma_enable == 0U) || (hhcd->hc[chnum].do_csplit == 1U))
8002ea0: 687b ldr r3, [r7, #4]
8002ea2: 799b ldrb r3, [r3, #6]
8002ea4: 2b00 cmp r3, #0
8002ea6: d00a beq.n 8002ebe <HCD_HC_IN_IRQHandler+0xc2a>
8002ea8: 78fa ldrb r2, [r7, #3]
8002eaa: 6879 ldr r1, [r7, #4]
8002eac: 4613 mov r3, r2
8002eae: 011b lsls r3, r3, #4
8002eb0: 1a9b subs r3, r3, r2
8002eb2: 009b lsls r3, r3, #2
8002eb4: 440b add r3, r1
8002eb6: 331b adds r3, #27
8002eb8: 781b ldrb r3, [r3, #0]
8002eba: 2b01 cmp r3, #1
8002ebc: d110 bne.n 8002ee0 <HCD_HC_IN_IRQHandler+0xc4c>
{
hhcd->hc[chnum].state = HC_NAK;
8002ebe: 78fa ldrb r2, [r7, #3]
8002ec0: 6879 ldr r1, [r7, #4]
8002ec2: 4613 mov r3, r2
8002ec4: 011b lsls r3, r3, #4
8002ec6: 1a9b subs r3, r3, r2
8002ec8: 009b lsls r3, r3, #2
8002eca: 440b add r3, r1
8002ecc: 334d adds r3, #77 @ 0x4d
8002ece: 2204 movs r2, #4
8002ed0: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
8002ed2: 687b ldr r3, [r7, #4]
8002ed4: 681b ldr r3, [r3, #0]
8002ed6: 78fa ldrb r2, [r7, #3]
8002ed8: 4611 mov r1, r2
8002eda: 4618 mov r0, r3
8002edc: f003 fbce bl 800667c <USB_HC_Halt>
else
{
/* ... */
}
if (hhcd->hc[chnum].do_csplit == 1U)
8002ee0: 78fa ldrb r2, [r7, #3]
8002ee2: 6879 ldr r1, [r7, #4]
8002ee4: 4613 mov r3, r2
8002ee6: 011b lsls r3, r3, #4
8002ee8: 1a9b subs r3, r3, r2
8002eea: 009b lsls r3, r3, #2
8002eec: 440b add r3, r1
8002eee: 331b adds r3, #27
8002ef0: 781b ldrb r3, [r3, #0]
8002ef2: 2b01 cmp r3, #1
8002ef4: d129 bne.n 8002f4a <HCD_HC_IN_IRQHandler+0xcb6>
{
hhcd->hc[chnum].do_csplit = 0U;
8002ef6: 78fa ldrb r2, [r7, #3]
8002ef8: 6879 ldr r1, [r7, #4]
8002efa: 4613 mov r3, r2
8002efc: 011b lsls r3, r3, #4
8002efe: 1a9b subs r3, r3, r2
8002f00: 009b lsls r3, r3, #2
8002f02: 440b add r3, r1
8002f04: 331b adds r3, #27
8002f06: 2200 movs r2, #0
8002f08: 701a strb r2, [r3, #0]
__HAL_HCD_CLEAR_HC_CSPLT(chnum);
8002f0a: 78fb ldrb r3, [r7, #3]
8002f0c: 015a lsls r2, r3, #5
8002f0e: 693b ldr r3, [r7, #16]
8002f10: 4413 add r3, r2
8002f12: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002f16: 685b ldr r3, [r3, #4]
8002f18: 78fa ldrb r2, [r7, #3]
8002f1a: 0151 lsls r1, r2, #5
8002f1c: 693a ldr r2, [r7, #16]
8002f1e: 440a add r2, r1
8002f20: f502 62a0 add.w r2, r2, #1280 @ 0x500
8002f24: f423 3380 bic.w r3, r3, #65536 @ 0x10000
8002f28: 6053 str r3, [r2, #4]
__HAL_HCD_UNMASK_ACK_HC_INT(chnum);
8002f2a: 78fb ldrb r3, [r7, #3]
8002f2c: 015a lsls r2, r3, #5
8002f2e: 693b ldr r3, [r7, #16]
8002f30: 4413 add r3, r2
8002f32: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002f36: 68db ldr r3, [r3, #12]
8002f38: 78fa ldrb r2, [r7, #3]
8002f3a: 0151 lsls r1, r2, #5
8002f3c: 693a ldr r2, [r7, #16]
8002f3e: 440a add r2, r1
8002f40: f502 62a0 add.w r2, r2, #1280 @ 0x500
8002f44: f043 0320 orr.w r3, r3, #32
8002f48: 60d3 str r3, [r2, #12]
}
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_NAK);
8002f4a: 78fb ldrb r3, [r7, #3]
8002f4c: 015a lsls r2, r3, #5
8002f4e: 693b ldr r3, [r7, #16]
8002f50: 4413 add r3, r2
8002f52: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002f56: 461a mov r2, r3
8002f58: 2310 movs r3, #16
8002f5a: 6093 str r3, [r2, #8]
8002f5c: e000 b.n 8002f60 <HCD_HC_IN_IRQHandler+0xccc>
return;
8002f5e: bf00 nop
}
else
{
/* ... */
}
}
8002f60: 3718 adds r7, #24
8002f62: 46bd mov sp, r7
8002f64: bd80 pop {r7, pc}
08002f66 <HCD_HC_OUT_IRQHandler>:
* @param chnum Channel number.
* This parameter can be a value from 1 to 15
* @retval none
*/
static void HCD_HC_OUT_IRQHandler(HCD_HandleTypeDef *hhcd, uint8_t chnum)
{
8002f66: b580 push {r7, lr}
8002f68: b086 sub sp, #24
8002f6a: af00 add r7, sp, #0
8002f6c: 6078 str r0, [r7, #4]
8002f6e: 460b mov r3, r1
8002f70: 70fb strb r3, [r7, #3]
const USB_OTG_GlobalTypeDef *USBx = hhcd->Instance;
8002f72: 687b ldr r3, [r7, #4]
8002f74: 681b ldr r3, [r3, #0]
8002f76: 617b str r3, [r7, #20]
uint32_t USBx_BASE = (uint32_t)USBx;
8002f78: 697b ldr r3, [r7, #20]
8002f7a: 613b str r3, [r7, #16]
uint32_t tmpreg;
uint32_t num_packets;
if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_AHBERR))
8002f7c: 687b ldr r3, [r7, #4]
8002f7e: 681b ldr r3, [r3, #0]
8002f80: 78fa ldrb r2, [r7, #3]
8002f82: 4611 mov r1, r2
8002f84: 4618 mov r0, r3
8002f86: f003 fafc bl 8006582 <USB_ReadChInterrupts>
8002f8a: 4603 mov r3, r0
8002f8c: f003 0304 and.w r3, r3, #4
8002f90: 2b04 cmp r3, #4
8002f92: d11b bne.n 8002fcc <HCD_HC_OUT_IRQHandler+0x66>
{
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_AHBERR);
8002f94: 78fb ldrb r3, [r7, #3]
8002f96: 015a lsls r2, r3, #5
8002f98: 693b ldr r3, [r7, #16]
8002f9a: 4413 add r3, r2
8002f9c: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002fa0: 461a mov r2, r3
8002fa2: 2304 movs r3, #4
8002fa4: 6093 str r3, [r2, #8]
hhcd->hc[chnum].state = HC_XACTERR;
8002fa6: 78fa ldrb r2, [r7, #3]
8002fa8: 6879 ldr r1, [r7, #4]
8002faa: 4613 mov r3, r2
8002fac: 011b lsls r3, r3, #4
8002fae: 1a9b subs r3, r3, r2
8002fb0: 009b lsls r3, r3, #2
8002fb2: 440b add r3, r1
8002fb4: 334d adds r3, #77 @ 0x4d
8002fb6: 2207 movs r2, #7
8002fb8: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
8002fba: 687b ldr r3, [r7, #4]
8002fbc: 681b ldr r3, [r3, #0]
8002fbe: 78fa ldrb r2, [r7, #3]
8002fc0: 4611 mov r1, r2
8002fc2: 4618 mov r0, r3
8002fc4: f003 fb5a bl 800667c <USB_HC_Halt>
8002fc8: f000 bc89 b.w 80038de <HCD_HC_OUT_IRQHandler+0x978>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_ACK))
8002fcc: 687b ldr r3, [r7, #4]
8002fce: 681b ldr r3, [r3, #0]
8002fd0: 78fa ldrb r2, [r7, #3]
8002fd2: 4611 mov r1, r2
8002fd4: 4618 mov r0, r3
8002fd6: f003 fad4 bl 8006582 <USB_ReadChInterrupts>
8002fda: 4603 mov r3, r0
8002fdc: f003 0320 and.w r3, r3, #32
8002fe0: 2b20 cmp r3, #32
8002fe2: f040 8082 bne.w 80030ea <HCD_HC_OUT_IRQHandler+0x184>
{
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_ACK);
8002fe6: 78fb ldrb r3, [r7, #3]
8002fe8: 015a lsls r2, r3, #5
8002fea: 693b ldr r3, [r7, #16]
8002fec: 4413 add r3, r2
8002fee: f503 63a0 add.w r3, r3, #1280 @ 0x500
8002ff2: 461a mov r2, r3
8002ff4: 2320 movs r3, #32
8002ff6: 6093 str r3, [r2, #8]
if (hhcd->hc[chnum].do_ping == 1U)
8002ff8: 78fa ldrb r2, [r7, #3]
8002ffa: 6879 ldr r1, [r7, #4]
8002ffc: 4613 mov r3, r2
8002ffe: 011b lsls r3, r3, #4
8003000: 1a9b subs r3, r3, r2
8003002: 009b lsls r3, r3, #2
8003004: 440b add r3, r1
8003006: 3319 adds r3, #25
8003008: 781b ldrb r3, [r3, #0]
800300a: 2b01 cmp r3, #1
800300c: d124 bne.n 8003058 <HCD_HC_OUT_IRQHandler+0xf2>
{
hhcd->hc[chnum].do_ping = 0U;
800300e: 78fa ldrb r2, [r7, #3]
8003010: 6879 ldr r1, [r7, #4]
8003012: 4613 mov r3, r2
8003014: 011b lsls r3, r3, #4
8003016: 1a9b subs r3, r3, r2
8003018: 009b lsls r3, r3, #2
800301a: 440b add r3, r1
800301c: 3319 adds r3, #25
800301e: 2200 movs r2, #0
8003020: 701a strb r2, [r3, #0]
hhcd->hc[chnum].urb_state = URB_NOTREADY;
8003022: 78fa ldrb r2, [r7, #3]
8003024: 6879 ldr r1, [r7, #4]
8003026: 4613 mov r3, r2
8003028: 011b lsls r3, r3, #4
800302a: 1a9b subs r3, r3, r2
800302c: 009b lsls r3, r3, #2
800302e: 440b add r3, r1
8003030: 334c adds r3, #76 @ 0x4c
8003032: 2202 movs r2, #2
8003034: 701a strb r2, [r3, #0]
hhcd->hc[chnum].state = HC_ACK;
8003036: 78fa ldrb r2, [r7, #3]
8003038: 6879 ldr r1, [r7, #4]
800303a: 4613 mov r3, r2
800303c: 011b lsls r3, r3, #4
800303e: 1a9b subs r3, r3, r2
8003040: 009b lsls r3, r3, #2
8003042: 440b add r3, r1
8003044: 334d adds r3, #77 @ 0x4d
8003046: 2203 movs r2, #3
8003048: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
800304a: 687b ldr r3, [r7, #4]
800304c: 681b ldr r3, [r3, #0]
800304e: 78fa ldrb r2, [r7, #3]
8003050: 4611 mov r1, r2
8003052: 4618 mov r0, r3
8003054: f003 fb12 bl 800667c <USB_HC_Halt>
}
if ((hhcd->hc[chnum].do_ssplit == 1U) && (hhcd->hc[chnum].do_csplit == 0U))
8003058: 78fa ldrb r2, [r7, #3]
800305a: 6879 ldr r1, [r7, #4]
800305c: 4613 mov r3, r2
800305e: 011b lsls r3, r3, #4
8003060: 1a9b subs r3, r3, r2
8003062: 009b lsls r3, r3, #2
8003064: 440b add r3, r1
8003066: 331a adds r3, #26
8003068: 781b ldrb r3, [r3, #0]
800306a: 2b01 cmp r3, #1
800306c: f040 8437 bne.w 80038de <HCD_HC_OUT_IRQHandler+0x978>
8003070: 78fa ldrb r2, [r7, #3]
8003072: 6879 ldr r1, [r7, #4]
8003074: 4613 mov r3, r2
8003076: 011b lsls r3, r3, #4
8003078: 1a9b subs r3, r3, r2
800307a: 009b lsls r3, r3, #2
800307c: 440b add r3, r1
800307e: 331b adds r3, #27
8003080: 781b ldrb r3, [r3, #0]
8003082: 2b00 cmp r3, #0
8003084: f040 842b bne.w 80038de <HCD_HC_OUT_IRQHandler+0x978>
{
if (hhcd->hc[chnum].ep_type != EP_TYPE_ISOC)
8003088: 78fa ldrb r2, [r7, #3]
800308a: 6879 ldr r1, [r7, #4]
800308c: 4613 mov r3, r2
800308e: 011b lsls r3, r3, #4
8003090: 1a9b subs r3, r3, r2
8003092: 009b lsls r3, r3, #2
8003094: 440b add r3, r1
8003096: 3326 adds r3, #38 @ 0x26
8003098: 781b ldrb r3, [r3, #0]
800309a: 2b01 cmp r3, #1
800309c: d009 beq.n 80030b2 <HCD_HC_OUT_IRQHandler+0x14c>
{
hhcd->hc[chnum].do_csplit = 1U;
800309e: 78fa ldrb r2, [r7, #3]
80030a0: 6879 ldr r1, [r7, #4]
80030a2: 4613 mov r3, r2
80030a4: 011b lsls r3, r3, #4
80030a6: 1a9b subs r3, r3, r2
80030a8: 009b lsls r3, r3, #2
80030aa: 440b add r3, r1
80030ac: 331b adds r3, #27
80030ae: 2201 movs r2, #1
80030b0: 701a strb r2, [r3, #0]
}
hhcd->hc[chnum].state = HC_ACK;
80030b2: 78fa ldrb r2, [r7, #3]
80030b4: 6879 ldr r1, [r7, #4]
80030b6: 4613 mov r3, r2
80030b8: 011b lsls r3, r3, #4
80030ba: 1a9b subs r3, r3, r2
80030bc: 009b lsls r3, r3, #2
80030be: 440b add r3, r1
80030c0: 334d adds r3, #77 @ 0x4d
80030c2: 2203 movs r2, #3
80030c4: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
80030c6: 687b ldr r3, [r7, #4]
80030c8: 681b ldr r3, [r3, #0]
80030ca: 78fa ldrb r2, [r7, #3]
80030cc: 4611 mov r1, r2
80030ce: 4618 mov r0, r3
80030d0: f003 fad4 bl 800667c <USB_HC_Halt>
/* reset error_count */
hhcd->hc[chnum].ErrCnt = 0U;
80030d4: 78fa ldrb r2, [r7, #3]
80030d6: 6879 ldr r1, [r7, #4]
80030d8: 4613 mov r3, r2
80030da: 011b lsls r3, r3, #4
80030dc: 1a9b subs r3, r3, r2
80030de: 009b lsls r3, r3, #2
80030e0: 440b add r3, r1
80030e2: 3344 adds r3, #68 @ 0x44
80030e4: 2200 movs r2, #0
80030e6: 601a str r2, [r3, #0]
80030e8: e3f9 b.n 80038de <HCD_HC_OUT_IRQHandler+0x978>
}
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_FRMOR))
80030ea: 687b ldr r3, [r7, #4]
80030ec: 681b ldr r3, [r3, #0]
80030ee: 78fa ldrb r2, [r7, #3]
80030f0: 4611 mov r1, r2
80030f2: 4618 mov r0, r3
80030f4: f003 fa45 bl 8006582 <USB_ReadChInterrupts>
80030f8: 4603 mov r3, r0
80030fa: f403 7300 and.w r3, r3, #512 @ 0x200
80030fe: f5b3 7f00 cmp.w r3, #512 @ 0x200
8003102: d111 bne.n 8003128 <HCD_HC_OUT_IRQHandler+0x1c2>
{
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_FRMOR);
8003104: 78fb ldrb r3, [r7, #3]
8003106: 015a lsls r2, r3, #5
8003108: 693b ldr r3, [r7, #16]
800310a: 4413 add r3, r2
800310c: f503 63a0 add.w r3, r3, #1280 @ 0x500
8003110: 461a mov r2, r3
8003112: f44f 7300 mov.w r3, #512 @ 0x200
8003116: 6093 str r3, [r2, #8]
(void)USB_HC_Halt(hhcd->Instance, chnum);
8003118: 687b ldr r3, [r7, #4]
800311a: 681b ldr r3, [r3, #0]
800311c: 78fa ldrb r2, [r7, #3]
800311e: 4611 mov r1, r2
8003120: 4618 mov r0, r3
8003122: f003 faab bl 800667c <USB_HC_Halt>
8003126: e3da b.n 80038de <HCD_HC_OUT_IRQHandler+0x978>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_XFRC))
8003128: 687b ldr r3, [r7, #4]
800312a: 681b ldr r3, [r3, #0]
800312c: 78fa ldrb r2, [r7, #3]
800312e: 4611 mov r1, r2
8003130: 4618 mov r0, r3
8003132: f003 fa26 bl 8006582 <USB_ReadChInterrupts>
8003136: 4603 mov r3, r0
8003138: f003 0301 and.w r3, r3, #1
800313c: 2b01 cmp r3, #1
800313e: d168 bne.n 8003212 <HCD_HC_OUT_IRQHandler+0x2ac>
{
hhcd->hc[chnum].ErrCnt = 0U;
8003140: 78fa ldrb r2, [r7, #3]
8003142: 6879 ldr r1, [r7, #4]
8003144: 4613 mov r3, r2
8003146: 011b lsls r3, r3, #4
8003148: 1a9b subs r3, r3, r2
800314a: 009b lsls r3, r3, #2
800314c: 440b add r3, r1
800314e: 3344 adds r3, #68 @ 0x44
8003150: 2200 movs r2, #0
8003152: 601a str r2, [r3, #0]
/* transaction completed with NYET state, update do ping state */
if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_NYET))
8003154: 687b ldr r3, [r7, #4]
8003156: 681b ldr r3, [r3, #0]
8003158: 78fa ldrb r2, [r7, #3]
800315a: 4611 mov r1, r2
800315c: 4618 mov r0, r3
800315e: f003 fa10 bl 8006582 <USB_ReadChInterrupts>
8003162: 4603 mov r3, r0
8003164: f003 0340 and.w r3, r3, #64 @ 0x40
8003168: 2b40 cmp r3, #64 @ 0x40
800316a: d112 bne.n 8003192 <HCD_HC_OUT_IRQHandler+0x22c>
{
hhcd->hc[chnum].do_ping = 1U;
800316c: 78fa ldrb r2, [r7, #3]
800316e: 6879 ldr r1, [r7, #4]
8003170: 4613 mov r3, r2
8003172: 011b lsls r3, r3, #4
8003174: 1a9b subs r3, r3, r2
8003176: 009b lsls r3, r3, #2
8003178: 440b add r3, r1
800317a: 3319 adds r3, #25
800317c: 2201 movs r2, #1
800317e: 701a strb r2, [r3, #0]
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_NYET);
8003180: 78fb ldrb r3, [r7, #3]
8003182: 015a lsls r2, r3, #5
8003184: 693b ldr r3, [r7, #16]
8003186: 4413 add r3, r2
8003188: f503 63a0 add.w r3, r3, #1280 @ 0x500
800318c: 461a mov r2, r3
800318e: 2340 movs r3, #64 @ 0x40
8003190: 6093 str r3, [r2, #8]
}
if (hhcd->hc[chnum].do_csplit != 0U)
8003192: 78fa ldrb r2, [r7, #3]
8003194: 6879 ldr r1, [r7, #4]
8003196: 4613 mov r3, r2
8003198: 011b lsls r3, r3, #4
800319a: 1a9b subs r3, r3, r2
800319c: 009b lsls r3, r3, #2
800319e: 440b add r3, r1
80031a0: 331b adds r3, #27
80031a2: 781b ldrb r3, [r3, #0]
80031a4: 2b00 cmp r3, #0
80031a6: d019 beq.n 80031dc <HCD_HC_OUT_IRQHandler+0x276>
{
hhcd->hc[chnum].do_csplit = 0U;
80031a8: 78fa ldrb r2, [r7, #3]
80031aa: 6879 ldr r1, [r7, #4]
80031ac: 4613 mov r3, r2
80031ae: 011b lsls r3, r3, #4
80031b0: 1a9b subs r3, r3, r2
80031b2: 009b lsls r3, r3, #2
80031b4: 440b add r3, r1
80031b6: 331b adds r3, #27
80031b8: 2200 movs r2, #0
80031ba: 701a strb r2, [r3, #0]
__HAL_HCD_CLEAR_HC_CSPLT(chnum);
80031bc: 78fb ldrb r3, [r7, #3]
80031be: 015a lsls r2, r3, #5
80031c0: 693b ldr r3, [r7, #16]
80031c2: 4413 add r3, r2
80031c4: f503 63a0 add.w r3, r3, #1280 @ 0x500
80031c8: 685b ldr r3, [r3, #4]
80031ca: 78fa ldrb r2, [r7, #3]
80031cc: 0151 lsls r1, r2, #5
80031ce: 693a ldr r2, [r7, #16]
80031d0: 440a add r2, r1
80031d2: f502 62a0 add.w r2, r2, #1280 @ 0x500
80031d6: f423 3380 bic.w r3, r3, #65536 @ 0x10000
80031da: 6053 str r3, [r2, #4]
}
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_XFRC);
80031dc: 78fb ldrb r3, [r7, #3]
80031de: 015a lsls r2, r3, #5
80031e0: 693b ldr r3, [r7, #16]
80031e2: 4413 add r3, r2
80031e4: f503 63a0 add.w r3, r3, #1280 @ 0x500
80031e8: 461a mov r2, r3
80031ea: 2301 movs r3, #1
80031ec: 6093 str r3, [r2, #8]
hhcd->hc[chnum].state = HC_XFRC;
80031ee: 78fa ldrb r2, [r7, #3]
80031f0: 6879 ldr r1, [r7, #4]
80031f2: 4613 mov r3, r2
80031f4: 011b lsls r3, r3, #4
80031f6: 1a9b subs r3, r3, r2
80031f8: 009b lsls r3, r3, #2
80031fa: 440b add r3, r1
80031fc: 334d adds r3, #77 @ 0x4d
80031fe: 2201 movs r2, #1
8003200: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
8003202: 687b ldr r3, [r7, #4]
8003204: 681b ldr r3, [r3, #0]
8003206: 78fa ldrb r2, [r7, #3]
8003208: 4611 mov r1, r2
800320a: 4618 mov r0, r3
800320c: f003 fa36 bl 800667c <USB_HC_Halt>
8003210: e365 b.n 80038de <HCD_HC_OUT_IRQHandler+0x978>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_NYET))
8003212: 687b ldr r3, [r7, #4]
8003214: 681b ldr r3, [r3, #0]
8003216: 78fa ldrb r2, [r7, #3]
8003218: 4611 mov r1, r2
800321a: 4618 mov r0, r3
800321c: f003 f9b1 bl 8006582 <USB_ReadChInterrupts>
8003220: 4603 mov r3, r0
8003222: f003 0340 and.w r3, r3, #64 @ 0x40
8003226: 2b40 cmp r3, #64 @ 0x40
8003228: d139 bne.n 800329e <HCD_HC_OUT_IRQHandler+0x338>
{
hhcd->hc[chnum].state = HC_NYET;
800322a: 78fa ldrb r2, [r7, #3]
800322c: 6879 ldr r1, [r7, #4]
800322e: 4613 mov r3, r2
8003230: 011b lsls r3, r3, #4
8003232: 1a9b subs r3, r3, r2
8003234: 009b lsls r3, r3, #2
8003236: 440b add r3, r1
8003238: 334d adds r3, #77 @ 0x4d
800323a: 2205 movs r2, #5
800323c: 701a strb r2, [r3, #0]
if (hhcd->hc[chnum].do_ssplit == 0U)
800323e: 78fa ldrb r2, [r7, #3]
8003240: 6879 ldr r1, [r7, #4]
8003242: 4613 mov r3, r2
8003244: 011b lsls r3, r3, #4
8003246: 1a9b subs r3, r3, r2
8003248: 009b lsls r3, r3, #2
800324a: 440b add r3, r1
800324c: 331a adds r3, #26
800324e: 781b ldrb r3, [r3, #0]
8003250: 2b00 cmp r3, #0
8003252: d109 bne.n 8003268 <HCD_HC_OUT_IRQHandler+0x302>
{
hhcd->hc[chnum].do_ping = 1U;
8003254: 78fa ldrb r2, [r7, #3]
8003256: 6879 ldr r1, [r7, #4]
8003258: 4613 mov r3, r2
800325a: 011b lsls r3, r3, #4
800325c: 1a9b subs r3, r3, r2
800325e: 009b lsls r3, r3, #2
8003260: 440b add r3, r1
8003262: 3319 adds r3, #25
8003264: 2201 movs r2, #1
8003266: 701a strb r2, [r3, #0]
}
hhcd->hc[chnum].ErrCnt = 0U;
8003268: 78fa ldrb r2, [r7, #3]
800326a: 6879 ldr r1, [r7, #4]
800326c: 4613 mov r3, r2
800326e: 011b lsls r3, r3, #4
8003270: 1a9b subs r3, r3, r2
8003272: 009b lsls r3, r3, #2
8003274: 440b add r3, r1
8003276: 3344 adds r3, #68 @ 0x44
8003278: 2200 movs r2, #0
800327a: 601a str r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
800327c: 687b ldr r3, [r7, #4]
800327e: 681b ldr r3, [r3, #0]
8003280: 78fa ldrb r2, [r7, #3]
8003282: 4611 mov r1, r2
8003284: 4618 mov r0, r3
8003286: f003 f9f9 bl 800667c <USB_HC_Halt>
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_NYET);
800328a: 78fb ldrb r3, [r7, #3]
800328c: 015a lsls r2, r3, #5
800328e: 693b ldr r3, [r7, #16]
8003290: 4413 add r3, r2
8003292: f503 63a0 add.w r3, r3, #1280 @ 0x500
8003296: 461a mov r2, r3
8003298: 2340 movs r3, #64 @ 0x40
800329a: 6093 str r3, [r2, #8]
800329c: e31f b.n 80038de <HCD_HC_OUT_IRQHandler+0x978>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_STALL))
800329e: 687b ldr r3, [r7, #4]
80032a0: 681b ldr r3, [r3, #0]
80032a2: 78fa ldrb r2, [r7, #3]
80032a4: 4611 mov r1, r2
80032a6: 4618 mov r0, r3
80032a8: f003 f96b bl 8006582 <USB_ReadChInterrupts>
80032ac: 4603 mov r3, r0
80032ae: f003 0308 and.w r3, r3, #8
80032b2: 2b08 cmp r3, #8
80032b4: d11a bne.n 80032ec <HCD_HC_OUT_IRQHandler+0x386>
{
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_STALL);
80032b6: 78fb ldrb r3, [r7, #3]
80032b8: 015a lsls r2, r3, #5
80032ba: 693b ldr r3, [r7, #16]
80032bc: 4413 add r3, r2
80032be: f503 63a0 add.w r3, r3, #1280 @ 0x500
80032c2: 461a mov r2, r3
80032c4: 2308 movs r3, #8
80032c6: 6093 str r3, [r2, #8]
hhcd->hc[chnum].state = HC_STALL;
80032c8: 78fa ldrb r2, [r7, #3]
80032ca: 6879 ldr r1, [r7, #4]
80032cc: 4613 mov r3, r2
80032ce: 011b lsls r3, r3, #4
80032d0: 1a9b subs r3, r3, r2
80032d2: 009b lsls r3, r3, #2
80032d4: 440b add r3, r1
80032d6: 334d adds r3, #77 @ 0x4d
80032d8: 2206 movs r2, #6
80032da: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
80032dc: 687b ldr r3, [r7, #4]
80032de: 681b ldr r3, [r3, #0]
80032e0: 78fa ldrb r2, [r7, #3]
80032e2: 4611 mov r1, r2
80032e4: 4618 mov r0, r3
80032e6: f003 f9c9 bl 800667c <USB_HC_Halt>
80032ea: e2f8 b.n 80038de <HCD_HC_OUT_IRQHandler+0x978>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_NAK))
80032ec: 687b ldr r3, [r7, #4]
80032ee: 681b ldr r3, [r3, #0]
80032f0: 78fa ldrb r2, [r7, #3]
80032f2: 4611 mov r1, r2
80032f4: 4618 mov r0, r3
80032f6: f003 f944 bl 8006582 <USB_ReadChInterrupts>
80032fa: 4603 mov r3, r0
80032fc: f003 0310 and.w r3, r3, #16
8003300: 2b10 cmp r3, #16
8003302: d144 bne.n 800338e <HCD_HC_OUT_IRQHandler+0x428>
{
hhcd->hc[chnum].ErrCnt = 0U;
8003304: 78fa ldrb r2, [r7, #3]
8003306: 6879 ldr r1, [r7, #4]
8003308: 4613 mov r3, r2
800330a: 011b lsls r3, r3, #4
800330c: 1a9b subs r3, r3, r2
800330e: 009b lsls r3, r3, #2
8003310: 440b add r3, r1
8003312: 3344 adds r3, #68 @ 0x44
8003314: 2200 movs r2, #0
8003316: 601a str r2, [r3, #0]
hhcd->hc[chnum].state = HC_NAK;
8003318: 78fa ldrb r2, [r7, #3]
800331a: 6879 ldr r1, [r7, #4]
800331c: 4613 mov r3, r2
800331e: 011b lsls r3, r3, #4
8003320: 1a9b subs r3, r3, r2
8003322: 009b lsls r3, r3, #2
8003324: 440b add r3, r1
8003326: 334d adds r3, #77 @ 0x4d
8003328: 2204 movs r2, #4
800332a: 701a strb r2, [r3, #0]
if (hhcd->hc[chnum].do_ping == 0U)
800332c: 78fa ldrb r2, [r7, #3]
800332e: 6879 ldr r1, [r7, #4]
8003330: 4613 mov r3, r2
8003332: 011b lsls r3, r3, #4
8003334: 1a9b subs r3, r3, r2
8003336: 009b lsls r3, r3, #2
8003338: 440b add r3, r1
800333a: 3319 adds r3, #25
800333c: 781b ldrb r3, [r3, #0]
800333e: 2b00 cmp r3, #0
8003340: d114 bne.n 800336c <HCD_HC_OUT_IRQHandler+0x406>
{
if (hhcd->hc[chnum].speed == HCD_DEVICE_SPEED_HIGH)
8003342: 78fa ldrb r2, [r7, #3]
8003344: 6879 ldr r1, [r7, #4]
8003346: 4613 mov r3, r2
8003348: 011b lsls r3, r3, #4
800334a: 1a9b subs r3, r3, r2
800334c: 009b lsls r3, r3, #2
800334e: 440b add r3, r1
8003350: 3318 adds r3, #24
8003352: 781b ldrb r3, [r3, #0]
8003354: 2b00 cmp r3, #0
8003356: d109 bne.n 800336c <HCD_HC_OUT_IRQHandler+0x406>
{
hhcd->hc[chnum].do_ping = 1U;
8003358: 78fa ldrb r2, [r7, #3]
800335a: 6879 ldr r1, [r7, #4]
800335c: 4613 mov r3, r2
800335e: 011b lsls r3, r3, #4
8003360: 1a9b subs r3, r3, r2
8003362: 009b lsls r3, r3, #2
8003364: 440b add r3, r1
8003366: 3319 adds r3, #25
8003368: 2201 movs r2, #1
800336a: 701a strb r2, [r3, #0]
}
}
(void)USB_HC_Halt(hhcd->Instance, chnum);
800336c: 687b ldr r3, [r7, #4]
800336e: 681b ldr r3, [r3, #0]
8003370: 78fa ldrb r2, [r7, #3]
8003372: 4611 mov r1, r2
8003374: 4618 mov r0, r3
8003376: f003 f981 bl 800667c <USB_HC_Halt>
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_NAK);
800337a: 78fb ldrb r3, [r7, #3]
800337c: 015a lsls r2, r3, #5
800337e: 693b ldr r3, [r7, #16]
8003380: 4413 add r3, r2
8003382: f503 63a0 add.w r3, r3, #1280 @ 0x500
8003386: 461a mov r2, r3
8003388: 2310 movs r3, #16
800338a: 6093 str r3, [r2, #8]
800338c: e2a7 b.n 80038de <HCD_HC_OUT_IRQHandler+0x978>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_TXERR))
800338e: 687b ldr r3, [r7, #4]
8003390: 681b ldr r3, [r3, #0]
8003392: 78fa ldrb r2, [r7, #3]
8003394: 4611 mov r1, r2
8003396: 4618 mov r0, r3
8003398: f003 f8f3 bl 8006582 <USB_ReadChInterrupts>
800339c: 4603 mov r3, r0
800339e: f003 0380 and.w r3, r3, #128 @ 0x80
80033a2: 2b80 cmp r3, #128 @ 0x80
80033a4: f040 8083 bne.w 80034ae <HCD_HC_OUT_IRQHandler+0x548>
{
if (hhcd->Init.dma_enable == 0U)
80033a8: 687b ldr r3, [r7, #4]
80033aa: 799b ldrb r3, [r3, #6]
80033ac: 2b00 cmp r3, #0
80033ae: d111 bne.n 80033d4 <HCD_HC_OUT_IRQHandler+0x46e>
{
hhcd->hc[chnum].state = HC_XACTERR;
80033b0: 78fa ldrb r2, [r7, #3]
80033b2: 6879 ldr r1, [r7, #4]
80033b4: 4613 mov r3, r2
80033b6: 011b lsls r3, r3, #4
80033b8: 1a9b subs r3, r3, r2
80033ba: 009b lsls r3, r3, #2
80033bc: 440b add r3, r1
80033be: 334d adds r3, #77 @ 0x4d
80033c0: 2207 movs r2, #7
80033c2: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
80033c4: 687b ldr r3, [r7, #4]
80033c6: 681b ldr r3, [r3, #0]
80033c8: 78fa ldrb r2, [r7, #3]
80033ca: 4611 mov r1, r2
80033cc: 4618 mov r0, r3
80033ce: f003 f955 bl 800667c <USB_HC_Halt>
80033d2: e062 b.n 800349a <HCD_HC_OUT_IRQHandler+0x534>
}
else
{
hhcd->hc[chnum].ErrCnt++;
80033d4: 78fa ldrb r2, [r7, #3]
80033d6: 6879 ldr r1, [r7, #4]
80033d8: 4613 mov r3, r2
80033da: 011b lsls r3, r3, #4
80033dc: 1a9b subs r3, r3, r2
80033de: 009b lsls r3, r3, #2
80033e0: 440b add r3, r1
80033e2: 3344 adds r3, #68 @ 0x44
80033e4: 681b ldr r3, [r3, #0]
80033e6: 1c59 adds r1, r3, #1
80033e8: 6878 ldr r0, [r7, #4]
80033ea: 4613 mov r3, r2
80033ec: 011b lsls r3, r3, #4
80033ee: 1a9b subs r3, r3, r2
80033f0: 009b lsls r3, r3, #2
80033f2: 4403 add r3, r0
80033f4: 3344 adds r3, #68 @ 0x44
80033f6: 6019 str r1, [r3, #0]
if (hhcd->hc[chnum].ErrCnt > 2U)
80033f8: 78fa ldrb r2, [r7, #3]
80033fa: 6879 ldr r1, [r7, #4]
80033fc: 4613 mov r3, r2
80033fe: 011b lsls r3, r3, #4
8003400: 1a9b subs r3, r3, r2
8003402: 009b lsls r3, r3, #2
8003404: 440b add r3, r1
8003406: 3344 adds r3, #68 @ 0x44
8003408: 681b ldr r3, [r3, #0]
800340a: 2b02 cmp r3, #2
800340c: d922 bls.n 8003454 <HCD_HC_OUT_IRQHandler+0x4ee>
{
hhcd->hc[chnum].ErrCnt = 0U;
800340e: 78fa ldrb r2, [r7, #3]
8003410: 6879 ldr r1, [r7, #4]
8003412: 4613 mov r3, r2
8003414: 011b lsls r3, r3, #4
8003416: 1a9b subs r3, r3, r2
8003418: 009b lsls r3, r3, #2
800341a: 440b add r3, r1
800341c: 3344 adds r3, #68 @ 0x44
800341e: 2200 movs r2, #0
8003420: 601a str r2, [r3, #0]
hhcd->hc[chnum].urb_state = URB_ERROR;
8003422: 78fa ldrb r2, [r7, #3]
8003424: 6879 ldr r1, [r7, #4]
8003426: 4613 mov r3, r2
8003428: 011b lsls r3, r3, #4
800342a: 1a9b subs r3, r3, r2
800342c: 009b lsls r3, r3, #2
800342e: 440b add r3, r1
8003430: 334c adds r3, #76 @ 0x4c
8003432: 2204 movs r2, #4
8003434: 701a strb r2, [r3, #0]
#if (USE_HAL_HCD_REGISTER_CALLBACKS == 1U)
hhcd->HC_NotifyURBChangeCallback(hhcd, chnum, hhcd->hc[chnum].urb_state);
#else
HAL_HCD_HC_NotifyURBChange_Callback(hhcd, chnum, hhcd->hc[chnum].urb_state);
8003436: 78fa ldrb r2, [r7, #3]
8003438: 6879 ldr r1, [r7, #4]
800343a: 4613 mov r3, r2
800343c: 011b lsls r3, r3, #4
800343e: 1a9b subs r3, r3, r2
8003440: 009b lsls r3, r3, #2
8003442: 440b add r3, r1
8003444: 334c adds r3, #76 @ 0x4c
8003446: 781a ldrb r2, [r3, #0]
8003448: 78fb ldrb r3, [r7, #3]
800344a: 4619 mov r1, r3
800344c: 6878 ldr r0, [r7, #4]
800344e: f004 fca9 bl 8007da4 <HAL_HCD_HC_NotifyURBChange_Callback>
8003452: e022 b.n 800349a <HCD_HC_OUT_IRQHandler+0x534>
#endif /* USE_HAL_HCD_REGISTER_CALLBACKS */
}
else
{
hhcd->hc[chnum].urb_state = URB_NOTREADY;
8003454: 78fa ldrb r2, [r7, #3]
8003456: 6879 ldr r1, [r7, #4]
8003458: 4613 mov r3, r2
800345a: 011b lsls r3, r3, #4
800345c: 1a9b subs r3, r3, r2
800345e: 009b lsls r3, r3, #2
8003460: 440b add r3, r1
8003462: 334c adds r3, #76 @ 0x4c
8003464: 2202 movs r2, #2
8003466: 701a strb r2, [r3, #0]
/* Re-activate the channel */
tmpreg = USBx_HC(chnum)->HCCHAR;
8003468: 78fb ldrb r3, [r7, #3]
800346a: 015a lsls r2, r3, #5
800346c: 693b ldr r3, [r7, #16]
800346e: 4413 add r3, r2
8003470: f503 63a0 add.w r3, r3, #1280 @ 0x500
8003474: 681b ldr r3, [r3, #0]
8003476: 60fb str r3, [r7, #12]
tmpreg &= ~USB_OTG_HCCHAR_CHDIS;
8003478: 68fb ldr r3, [r7, #12]
800347a: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000
800347e: 60fb str r3, [r7, #12]
tmpreg |= USB_OTG_HCCHAR_CHENA;
8003480: 68fb ldr r3, [r7, #12]
8003482: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
8003486: 60fb str r3, [r7, #12]
USBx_HC(chnum)->HCCHAR = tmpreg;
8003488: 78fb ldrb r3, [r7, #3]
800348a: 015a lsls r2, r3, #5
800348c: 693b ldr r3, [r7, #16]
800348e: 4413 add r3, r2
8003490: f503 63a0 add.w r3, r3, #1280 @ 0x500
8003494: 461a mov r2, r3
8003496: 68fb ldr r3, [r7, #12]
8003498: 6013 str r3, [r2, #0]
}
}
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_TXERR);
800349a: 78fb ldrb r3, [r7, #3]
800349c: 015a lsls r2, r3, #5
800349e: 693b ldr r3, [r7, #16]
80034a0: 4413 add r3, r2
80034a2: f503 63a0 add.w r3, r3, #1280 @ 0x500
80034a6: 461a mov r2, r3
80034a8: 2380 movs r3, #128 @ 0x80
80034aa: 6093 str r3, [r2, #8]
80034ac: e217 b.n 80038de <HCD_HC_OUT_IRQHandler+0x978>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_DTERR))
80034ae: 687b ldr r3, [r7, #4]
80034b0: 681b ldr r3, [r3, #0]
80034b2: 78fa ldrb r2, [r7, #3]
80034b4: 4611 mov r1, r2
80034b6: 4618 mov r0, r3
80034b8: f003 f863 bl 8006582 <USB_ReadChInterrupts>
80034bc: 4603 mov r3, r0
80034be: f403 6380 and.w r3, r3, #1024 @ 0x400
80034c2: f5b3 6f80 cmp.w r3, #1024 @ 0x400
80034c6: d11b bne.n 8003500 <HCD_HC_OUT_IRQHandler+0x59a>
{
hhcd->hc[chnum].state = HC_DATATGLERR;
80034c8: 78fa ldrb r2, [r7, #3]
80034ca: 6879 ldr r1, [r7, #4]
80034cc: 4613 mov r3, r2
80034ce: 011b lsls r3, r3, #4
80034d0: 1a9b subs r3, r3, r2
80034d2: 009b lsls r3, r3, #2
80034d4: 440b add r3, r1
80034d6: 334d adds r3, #77 @ 0x4d
80034d8: 2209 movs r2, #9
80034da: 701a strb r2, [r3, #0]
(void)USB_HC_Halt(hhcd->Instance, chnum);
80034dc: 687b ldr r3, [r7, #4]
80034de: 681b ldr r3, [r3, #0]
80034e0: 78fa ldrb r2, [r7, #3]
80034e2: 4611 mov r1, r2
80034e4: 4618 mov r0, r3
80034e6: f003 f8c9 bl 800667c <USB_HC_Halt>
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_DTERR);
80034ea: 78fb ldrb r3, [r7, #3]
80034ec: 015a lsls r2, r3, #5
80034ee: 693b ldr r3, [r7, #16]
80034f0: 4413 add r3, r2
80034f2: f503 63a0 add.w r3, r3, #1280 @ 0x500
80034f6: 461a mov r2, r3
80034f8: f44f 6380 mov.w r3, #1024 @ 0x400
80034fc: 6093 str r3, [r2, #8]
80034fe: e1ee b.n 80038de <HCD_HC_OUT_IRQHandler+0x978>
}
else if (__HAL_HCD_GET_CH_FLAG(hhcd, chnum, USB_OTG_HCINT_CHH))
8003500: 687b ldr r3, [r7, #4]
8003502: 681b ldr r3, [r3, #0]
8003504: 78fa ldrb r2, [r7, #3]
8003506: 4611 mov r1, r2
8003508: 4618 mov r0, r3
800350a: f003 f83a bl 8006582 <USB_ReadChInterrupts>
800350e: 4603 mov r3, r0
8003510: f003 0302 and.w r3, r3, #2
8003514: 2b02 cmp r3, #2
8003516: f040 81df bne.w 80038d8 <HCD_HC_OUT_IRQHandler+0x972>
{
__HAL_HCD_CLEAR_HC_INT(chnum, USB_OTG_HCINT_CHH);
800351a: 78fb ldrb r3, [r7, #3]
800351c: 015a lsls r2, r3, #5
800351e: 693b ldr r3, [r7, #16]
8003520: 4413 add r3, r2
8003522: f503 63a0 add.w r3, r3, #1280 @ 0x500
8003526: 461a mov r2, r3
8003528: 2302 movs r3, #2
800352a: 6093 str r3, [r2, #8]
if (hhcd->hc[chnum].state == HC_XFRC)
800352c: 78fa ldrb r2, [r7, #3]
800352e: 6879 ldr r1, [r7, #4]
8003530: 4613 mov r3, r2
8003532: 011b lsls r3, r3, #4
8003534: 1a9b subs r3, r3, r2
8003536: 009b lsls r3, r3, #2
8003538: 440b add r3, r1
800353a: 334d adds r3, #77 @ 0x4d
800353c: 781b ldrb r3, [r3, #0]
800353e: 2b01 cmp r3, #1
8003540: f040 8093 bne.w 800366a <HCD_HC_OUT_IRQHandler+0x704>
{
hhcd->hc[chnum].state = HC_HALTED;
8003544: 78fa ldrb r2, [r7, #3]
8003546: 6879 ldr r1, [r7, #4]
8003548: 4613 mov r3, r2
800354a: 011b lsls r3, r3, #4
800354c: 1a9b subs r3, r3, r2
800354e: 009b lsls r3, r3, #2
8003550: 440b add r3, r1
8003552: 334d adds r3, #77 @ 0x4d
8003554: 2202 movs r2, #2
8003556: 701a strb r2, [r3, #0]
hhcd->hc[chnum].urb_state = URB_DONE;
8003558: 78fa ldrb r2, [r7, #3]
800355a: 6879 ldr r1, [r7, #4]
800355c: 4613 mov r3, r2
800355e: 011b lsls r3, r3, #4
8003560: 1a9b subs r3, r3, r2
8003562: 009b lsls r3, r3, #2
8003564: 440b add r3, r1
8003566: 334c adds r3, #76 @ 0x4c
8003568: 2201 movs r2, #1
800356a: 701a strb r2, [r3, #0]
if ((hhcd->hc[chnum].ep_type == EP_TYPE_BULK) ||
800356c: 78fa ldrb r2, [r7, #3]
800356e: 6879 ldr r1, [r7, #4]
8003570: 4613 mov r3, r2
8003572: 011b lsls r3, r3, #4
8003574: 1a9b subs r3, r3, r2
8003576: 009b lsls r3, r3, #2
8003578: 440b add r3, r1
800357a: 3326 adds r3, #38 @ 0x26
800357c: 781b ldrb r3, [r3, #0]
800357e: 2b02 cmp r3, #2
8003580: d00b beq.n 800359a <HCD_HC_OUT_IRQHandler+0x634>
(hhcd->hc[chnum].ep_type == EP_TYPE_INTR))
8003582: 78fa ldrb r2, [r7, #3]
8003584: 6879 ldr r1, [r7, #4]
8003586: 4613 mov r3, r2
8003588: 011b lsls r3, r3, #4
800358a: 1a9b subs r3, r3, r2
800358c: 009b lsls r3, r3, #2
800358e: 440b add r3, r1
8003590: 3326 adds r3, #38 @ 0x26
8003592: 781b ldrb r3, [r3, #0]
if ((hhcd->hc[chnum].ep_type == EP_TYPE_BULK) ||
8003594: 2b03 cmp r3, #3
8003596: f040 8190 bne.w 80038ba <HCD_HC_OUT_IRQHandler+0x954>
{
if (hhcd->Init.dma_enable == 0U)
800359a: 687b ldr r3, [r7, #4]
800359c: 799b ldrb r3, [r3, #6]
800359e: 2b00 cmp r3, #0
80035a0: d115 bne.n 80035ce <HCD_HC_OUT_IRQHandler+0x668>
{
hhcd->hc[chnum].toggle_out ^= 1U;
80035a2: 78fa ldrb r2, [r7, #3]
80035a4: 6879 ldr r1, [r7, #4]
80035a6: 4613 mov r3, r2
80035a8: 011b lsls r3, r3, #4
80035aa: 1a9b subs r3, r3, r2
80035ac: 009b lsls r3, r3, #2
80035ae: 440b add r3, r1
80035b0: 333d adds r3, #61 @ 0x3d
80035b2: 781b ldrb r3, [r3, #0]
80035b4: 78fa ldrb r2, [r7, #3]
80035b6: f083 0301 eor.w r3, r3, #1
80035ba: b2d8 uxtb r0, r3
80035bc: 6879 ldr r1, [r7, #4]
80035be: 4613 mov r3, r2
80035c0: 011b lsls r3, r3, #4
80035c2: 1a9b subs r3, r3, r2
80035c4: 009b lsls r3, r3, #2
80035c6: 440b add r3, r1
80035c8: 333d adds r3, #61 @ 0x3d
80035ca: 4602 mov r2, r0
80035cc: 701a strb r2, [r3, #0]
}
if ((hhcd->Init.dma_enable == 1U) && (hhcd->hc[chnum].xfer_len > 0U))
80035ce: 687b ldr r3, [r7, #4]
80035d0: 799b ldrb r3, [r3, #6]
80035d2: 2b01 cmp r3, #1
80035d4: f040 8171 bne.w 80038ba <HCD_HC_OUT_IRQHandler+0x954>
80035d8: 78fa ldrb r2, [r7, #3]
80035da: 6879 ldr r1, [r7, #4]
80035dc: 4613 mov r3, r2
80035de: 011b lsls r3, r3, #4
80035e0: 1a9b subs r3, r3, r2
80035e2: 009b lsls r3, r3, #2
80035e4: 440b add r3, r1
80035e6: 3334 adds r3, #52 @ 0x34
80035e8: 681b ldr r3, [r3, #0]
80035ea: 2b00 cmp r3, #0
80035ec: f000 8165 beq.w 80038ba <HCD_HC_OUT_IRQHandler+0x954>
{
num_packets = (hhcd->hc[chnum].xfer_len + hhcd->hc[chnum].max_packet - 1U) / hhcd->hc[chnum].max_packet;
80035f0: 78fa ldrb r2, [r7, #3]
80035f2: 6879 ldr r1, [r7, #4]
80035f4: 4613 mov r3, r2
80035f6: 011b lsls r3, r3, #4
80035f8: 1a9b subs r3, r3, r2
80035fa: 009b lsls r3, r3, #2
80035fc: 440b add r3, r1
80035fe: 3334 adds r3, #52 @ 0x34
8003600: 6819 ldr r1, [r3, #0]
8003602: 78fa ldrb r2, [r7, #3]
8003604: 6878 ldr r0, [r7, #4]
8003606: 4613 mov r3, r2
8003608: 011b lsls r3, r3, #4
800360a: 1a9b subs r3, r3, r2
800360c: 009b lsls r3, r3, #2
800360e: 4403 add r3, r0
8003610: 3328 adds r3, #40 @ 0x28
8003612: 881b ldrh r3, [r3, #0]
8003614: 440b add r3, r1
8003616: 1e59 subs r1, r3, #1
8003618: 78fa ldrb r2, [r7, #3]
800361a: 6878 ldr r0, [r7, #4]
800361c: 4613 mov r3, r2
800361e: 011b lsls r3, r3, #4
8003620: 1a9b subs r3, r3, r2
8003622: 009b lsls r3, r3, #2
8003624: 4403 add r3, r0
8003626: 3328 adds r3, #40 @ 0x28
8003628: 881b ldrh r3, [r3, #0]
800362a: fbb1 f3f3 udiv r3, r1, r3
800362e: 60bb str r3, [r7, #8]
if ((num_packets & 1U) != 0U)
8003630: 68bb ldr r3, [r7, #8]
8003632: f003 0301 and.w r3, r3, #1
8003636: 2b00 cmp r3, #0
8003638: f000 813f beq.w 80038ba <HCD_HC_OUT_IRQHandler+0x954>
{
hhcd->hc[chnum].toggle_out ^= 1U;
800363c: 78fa ldrb r2, [r7, #3]
800363e: 6879 ldr r1, [r7, #4]
8003640: 4613 mov r3, r2
8003642: 011b lsls r3, r3, #4
8003644: 1a9b subs r3, r3, r2
8003646: 009b lsls r3, r3, #2
8003648: 440b add r3, r1
800364a: 333d adds r3, #61 @ 0x3d
800364c: 781b ldrb r3, [r3, #0]
800364e: 78fa ldrb r2, [r7, #3]
8003650: f083 0301 eor.w r3, r3, #1
8003654: b2d8 uxtb r0, r3
8003656: 6879 ldr r1, [r7, #4]
8003658: 4613 mov r3, r2
800365a: 011b lsls r3, r3, #4
800365c: 1a9b subs r3, r3, r2
800365e: 009b lsls r3, r3, #2
8003660: 440b add r3, r1
8003662: 333d adds r3, #61 @ 0x3d
8003664: 4602 mov r2, r0
8003666: 701a strb r2, [r3, #0]
8003668: e127 b.n 80038ba <HCD_HC_OUT_IRQHandler+0x954>
}
}
}
}
else if (hhcd->hc[chnum].state == HC_ACK)
800366a: 78fa ldrb r2, [r7, #3]
800366c: 6879 ldr r1, [r7, #4]
800366e: 4613 mov r3, r2
8003670: 011b lsls r3, r3, #4
8003672: 1a9b subs r3, r3, r2
8003674: 009b lsls r3, r3, #2
8003676: 440b add r3, r1
8003678: 334d adds r3, #77 @ 0x4d
800367a: 781b ldrb r3, [r3, #0]
800367c: 2b03 cmp r3, #3
800367e: d120 bne.n 80036c2 <HCD_HC_OUT_IRQHandler+0x75c>
{
hhcd->hc[chnum].state = HC_HALTED;
8003680: 78fa ldrb r2, [r7, #3]
8003682: 6879 ldr r1, [r7, #4]
8003684: 4613 mov r3, r2
8003686: 011b lsls r3, r3, #4
8003688: 1a9b subs r3, r3, r2
800368a: 009b lsls r3, r3, #2
800368c: 440b add r3, r1
800368e: 334d adds r3, #77 @ 0x4d
8003690: 2202 movs r2, #2
8003692: 701a strb r2, [r3, #0]
if (hhcd->hc[chnum].do_csplit == 1U)
8003694: 78fa ldrb r2, [r7, #3]
8003696: 6879 ldr r1, [r7, #4]
8003698: 4613 mov r3, r2
800369a: 011b lsls r3, r3, #4
800369c: 1a9b subs r3, r3, r2
800369e: 009b lsls r3, r3, #2
80036a0: 440b add r3, r1
80036a2: 331b adds r3, #27
80036a4: 781b ldrb r3, [r3, #0]
80036a6: 2b01 cmp r3, #1
80036a8: f040 8107 bne.w 80038ba <HCD_HC_OUT_IRQHandler+0x954>
{
hhcd->hc[chnum].urb_state = URB_NOTREADY;
80036ac: 78fa ldrb r2, [r7, #3]
80036ae: 6879 ldr r1, [r7, #4]
80036b0: 4613 mov r3, r2
80036b2: 011b lsls r3, r3, #4
80036b4: 1a9b subs r3, r3, r2
80036b6: 009b lsls r3, r3, #2
80036b8: 440b add r3, r1
80036ba: 334c adds r3, #76 @ 0x4c
80036bc: 2202 movs r2, #2
80036be: 701a strb r2, [r3, #0]
80036c0: e0fb b.n 80038ba <HCD_HC_OUT_IRQHandler+0x954>
}
}
else if (hhcd->hc[chnum].state == HC_NAK)
80036c2: 78fa ldrb r2, [r7, #3]
80036c4: 6879 ldr r1, [r7, #4]
80036c6: 4613 mov r3, r2
80036c8: 011b lsls r3, r3, #4
80036ca: 1a9b subs r3, r3, r2
80036cc: 009b lsls r3, r3, #2
80036ce: 440b add r3, r1
80036d0: 334d adds r3, #77 @ 0x4d
80036d2: 781b ldrb r3, [r3, #0]
80036d4: 2b04 cmp r3, #4
80036d6: d13a bne.n 800374e <HCD_HC_OUT_IRQHandler+0x7e8>
{
hhcd->hc[chnum].state = HC_HALTED;
80036d8: 78fa ldrb r2, [r7, #3]
80036da: 6879 ldr r1, [r7, #4]
80036dc: 4613 mov r3, r2
80036de: 011b lsls r3, r3, #4
80036e0: 1a9b subs r3, r3, r2
80036e2: 009b lsls r3, r3, #2
80036e4: 440b add r3, r1
80036e6: 334d adds r3, #77 @ 0x4d
80036e8: 2202 movs r2, #2
80036ea: 701a strb r2, [r3, #0]
hhcd->hc[chnum].urb_state = URB_NOTREADY;
80036ec: 78fa ldrb r2, [r7, #3]
80036ee: 6879 ldr r1, [r7, #4]
80036f0: 4613 mov r3, r2
80036f2: 011b lsls r3, r3, #4
80036f4: 1a9b subs r3, r3, r2
80036f6: 009b lsls r3, r3, #2
80036f8: 440b add r3, r1
80036fa: 334c adds r3, #76 @ 0x4c
80036fc: 2202 movs r2, #2
80036fe: 701a strb r2, [r3, #0]
if (hhcd->hc[chnum].do_csplit == 1U)
8003700: 78fa ldrb r2, [r7, #3]
8003702: 6879 ldr r1, [r7, #4]
8003704: 4613 mov r3, r2
8003706: 011b lsls r3, r3, #4
8003708: 1a9b subs r3, r3, r2
800370a: 009b lsls r3, r3, #2
800370c: 440b add r3, r1
800370e: 331b adds r3, #27
8003710: 781b ldrb r3, [r3, #0]
8003712: 2b01 cmp r3, #1
8003714: f040 80d1 bne.w 80038ba <HCD_HC_OUT_IRQHandler+0x954>
{
hhcd->hc[chnum].do_csplit = 0U;
8003718: 78fa ldrb r2, [r7, #3]
800371a: 6879 ldr r1, [r7, #4]
800371c: 4613 mov r3, r2
800371e: 011b lsls r3, r3, #4
8003720: 1a9b subs r3, r3, r2
8003722: 009b lsls r3, r3, #2
8003724: 440b add r3, r1
8003726: 331b adds r3, #27
8003728: 2200 movs r2, #0
800372a: 701a strb r2, [r3, #0]
__HAL_HCD_CLEAR_HC_CSPLT(chnum);
800372c: 78fb ldrb r3, [r7, #3]
800372e: 015a lsls r2, r3, #5
8003730: 693b ldr r3, [r7, #16]
8003732: 4413 add r3, r2
8003734: f503 63a0 add.w r3, r3, #1280 @ 0x500
8003738: 685b ldr r3, [r3, #4]
800373a: 78fa ldrb r2, [r7, #3]
800373c: 0151 lsls r1, r2, #5
800373e: 693a ldr r2, [r7, #16]
8003740: 440a add r2, r1
8003742: f502 62a0 add.w r2, r2, #1280 @ 0x500
8003746: f423 3380 bic.w r3, r3, #65536 @ 0x10000
800374a: 6053 str r3, [r2, #4]
800374c: e0b5 b.n 80038ba <HCD_HC_OUT_IRQHandler+0x954>
}
}
else if (hhcd->hc[chnum].state == HC_NYET)
800374e: 78fa ldrb r2, [r7, #3]
8003750: 6879 ldr r1, [r7, #4]
8003752: 4613 mov r3, r2
8003754: 011b lsls r3, r3, #4
8003756: 1a9b subs r3, r3, r2
8003758: 009b lsls r3, r3, #2
800375a: 440b add r3, r1
800375c: 334d adds r3, #77 @ 0x4d
800375e: 781b ldrb r3, [r3, #0]
8003760: 2b05 cmp r3, #5
8003762: d114 bne.n 800378e <HCD_HC_OUT_IRQHandler+0x828>
{
hhcd->hc[chnum].state = HC_HALTED;
8003764: 78fa ldrb r2, [r7, #3]
8003766: 6879 ldr r1, [r7, #4]
8003768: 4613 mov r3, r2
800376a: 011b lsls r3, r3, #4
800376c: 1a9b subs r3, r3, r2
800376e: 009b lsls r3, r3, #2
8003770: 440b add r3, r1
8003772: 334d adds r3, #77 @ 0x4d
8003774: 2202 movs r2, #2
8003776: 701a strb r2, [r3, #0]
hhcd->hc[chnum].urb_state = URB_NOTREADY;
8003778: 78fa ldrb r2, [r7, #3]
800377a: 6879 ldr r1, [r7, #4]
800377c: 4613 mov r3, r2
800377e: 011b lsls r3, r3, #4
8003780: 1a9b subs r3, r3, r2
8003782: 009b lsls r3, r3, #2
8003784: 440b add r3, r1
8003786: 334c adds r3, #76 @ 0x4c
8003788: 2202 movs r2, #2
800378a: 701a strb r2, [r3, #0]
800378c: e095 b.n 80038ba <HCD_HC_OUT_IRQHandler+0x954>
}
else if (hhcd->hc[chnum].state == HC_STALL)
800378e: 78fa ldrb r2, [r7, #3]
8003790: 6879 ldr r1, [r7, #4]
8003792: 4613 mov r3, r2
8003794: 011b lsls r3, r3, #4
8003796: 1a9b subs r3, r3, r2
8003798: 009b lsls r3, r3, #2
800379a: 440b add r3, r1
800379c: 334d adds r3, #77 @ 0x4d
800379e: 781b ldrb r3, [r3, #0]
80037a0: 2b06 cmp r3, #6
80037a2: d114 bne.n 80037ce <HCD_HC_OUT_IRQHandler+0x868>
{
hhcd->hc[chnum].state = HC_HALTED;
80037a4: 78fa ldrb r2, [r7, #3]
80037a6: 6879 ldr r1, [r7, #4]
80037a8: 4613 mov r3, r2
80037aa: 011b lsls r3, r3, #4
80037ac: 1a9b subs r3, r3, r2
80037ae: 009b lsls r3, r3, #2
80037b0: 440b add r3, r1
80037b2: 334d adds r3, #77 @ 0x4d
80037b4: 2202 movs r2, #2
80037b6: 701a strb r2, [r3, #0]
hhcd->hc[chnum].urb_state = URB_STALL;
80037b8: 78fa ldrb r2, [r7, #3]
80037ba: 6879 ldr r1, [r7, #4]
80037bc: 4613 mov r3, r2
80037be: 011b lsls r3, r3, #4
80037c0: 1a9b subs r3, r3, r2
80037c2: 009b lsls r3, r3, #2
80037c4: 440b add r3, r1
80037c6: 334c adds r3, #76 @ 0x4c
80037c8: 2205 movs r2, #5
80037ca: 701a strb r2, [r3, #0]
80037cc: e075 b.n 80038ba <HCD_HC_OUT_IRQHandler+0x954>
}
else if ((hhcd->hc[chnum].state == HC_XACTERR) ||
80037ce: 78fa ldrb r2, [r7, #3]
80037d0: 6879 ldr r1, [r7, #4]
80037d2: 4613 mov r3, r2
80037d4: 011b lsls r3, r3, #4
80037d6: 1a9b subs r3, r3, r2
80037d8: 009b lsls r3, r3, #2
80037da: 440b add r3, r1
80037dc: 334d adds r3, #77 @ 0x4d
80037de: 781b ldrb r3, [r3, #0]
80037e0: 2b07 cmp r3, #7
80037e2: d00a beq.n 80037fa <HCD_HC_OUT_IRQHandler+0x894>
(hhcd->hc[chnum].state == HC_DATATGLERR))
80037e4: 78fa ldrb r2, [r7, #3]
80037e6: 6879 ldr r1, [r7, #4]
80037e8: 4613 mov r3, r2
80037ea: 011b lsls r3, r3, #4
80037ec: 1a9b subs r3, r3, r2
80037ee: 009b lsls r3, r3, #2
80037f0: 440b add r3, r1
80037f2: 334d adds r3, #77 @ 0x4d
80037f4: 781b ldrb r3, [r3, #0]
else if ((hhcd->hc[chnum].state == HC_XACTERR) ||
80037f6: 2b09 cmp r3, #9
80037f8: d170 bne.n 80038dc <HCD_HC_OUT_IRQHandler+0x976>
{
hhcd->hc[chnum].state = HC_HALTED;
80037fa: 78fa ldrb r2, [r7, #3]
80037fc: 6879 ldr r1, [r7, #4]
80037fe: 4613 mov r3, r2
8003800: 011b lsls r3, r3, #4
8003802: 1a9b subs r3, r3, r2
8003804: 009b lsls r3, r3, #2
8003806: 440b add r3, r1
8003808: 334d adds r3, #77 @ 0x4d
800380a: 2202 movs r2, #2
800380c: 701a strb r2, [r3, #0]
hhcd->hc[chnum].ErrCnt++;
800380e: 78fa ldrb r2, [r7, #3]
8003810: 6879 ldr r1, [r7, #4]
8003812: 4613 mov r3, r2
8003814: 011b lsls r3, r3, #4
8003816: 1a9b subs r3, r3, r2
8003818: 009b lsls r3, r3, #2
800381a: 440b add r3, r1
800381c: 3344 adds r3, #68 @ 0x44
800381e: 681b ldr r3, [r3, #0]
8003820: 1c59 adds r1, r3, #1
8003822: 6878 ldr r0, [r7, #4]
8003824: 4613 mov r3, r2
8003826: 011b lsls r3, r3, #4
8003828: 1a9b subs r3, r3, r2
800382a: 009b lsls r3, r3, #2
800382c: 4403 add r3, r0
800382e: 3344 adds r3, #68 @ 0x44
8003830: 6019 str r1, [r3, #0]
if (hhcd->hc[chnum].ErrCnt > 2U)
8003832: 78fa ldrb r2, [r7, #3]
8003834: 6879 ldr r1, [r7, #4]
8003836: 4613 mov r3, r2
8003838: 011b lsls r3, r3, #4
800383a: 1a9b subs r3, r3, r2
800383c: 009b lsls r3, r3, #2
800383e: 440b add r3, r1
8003840: 3344 adds r3, #68 @ 0x44
8003842: 681b ldr r3, [r3, #0]
8003844: 2b02 cmp r3, #2
8003846: d914 bls.n 8003872 <HCD_HC_OUT_IRQHandler+0x90c>
{
hhcd->hc[chnum].ErrCnt = 0U;
8003848: 78fa ldrb r2, [r7, #3]
800384a: 6879 ldr r1, [r7, #4]
800384c: 4613 mov r3, r2
800384e: 011b lsls r3, r3, #4
8003850: 1a9b subs r3, r3, r2
8003852: 009b lsls r3, r3, #2
8003854: 440b add r3, r1
8003856: 3344 adds r3, #68 @ 0x44
8003858: 2200 movs r2, #0
800385a: 601a str r2, [r3, #0]
hhcd->hc[chnum].urb_state = URB_ERROR;
800385c: 78fa ldrb r2, [r7, #3]
800385e: 6879 ldr r1, [r7, #4]
8003860: 4613 mov r3, r2
8003862: 011b lsls r3, r3, #4
8003864: 1a9b subs r3, r3, r2
8003866: 009b lsls r3, r3, #2
8003868: 440b add r3, r1
800386a: 334c adds r3, #76 @ 0x4c
800386c: 2204 movs r2, #4
800386e: 701a strb r2, [r3, #0]
if (hhcd->hc[chnum].ErrCnt > 2U)
8003870: e022 b.n 80038b8 <HCD_HC_OUT_IRQHandler+0x952>
}
else
{
hhcd->hc[chnum].urb_state = URB_NOTREADY;
8003872: 78fa ldrb r2, [r7, #3]
8003874: 6879 ldr r1, [r7, #4]
8003876: 4613 mov r3, r2
8003878: 011b lsls r3, r3, #4
800387a: 1a9b subs r3, r3, r2
800387c: 009b lsls r3, r3, #2
800387e: 440b add r3, r1
8003880: 334c adds r3, #76 @ 0x4c
8003882: 2202 movs r2, #2
8003884: 701a strb r2, [r3, #0]
/* re-activate the channel */
tmpreg = USBx_HC(chnum)->HCCHAR;
8003886: 78fb ldrb r3, [r7, #3]
8003888: 015a lsls r2, r3, #5
800388a: 693b ldr r3, [r7, #16]
800388c: 4413 add r3, r2
800388e: f503 63a0 add.w r3, r3, #1280 @ 0x500
8003892: 681b ldr r3, [r3, #0]
8003894: 60fb str r3, [r7, #12]
tmpreg &= ~USB_OTG_HCCHAR_CHDIS;
8003896: 68fb ldr r3, [r7, #12]
8003898: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000
800389c: 60fb str r3, [r7, #12]
tmpreg |= USB_OTG_HCCHAR_CHENA;
800389e: 68fb ldr r3, [r7, #12]
80038a0: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
80038a4: 60fb str r3, [r7, #12]
USBx_HC(chnum)->HCCHAR = tmpreg;
80038a6: 78fb ldrb r3, [r7, #3]
80038a8: 015a lsls r2, r3, #5
80038aa: 693b ldr r3, [r7, #16]
80038ac: 4413 add r3, r2
80038ae: f503 63a0 add.w r3, r3, #1280 @ 0x500
80038b2: 461a mov r2, r3
80038b4: 68fb ldr r3, [r7, #12]
80038b6: 6013 str r3, [r2, #0]
if (hhcd->hc[chnum].ErrCnt > 2U)
80038b8: bf00 nop
}
#if (USE_HAL_HCD_REGISTER_CALLBACKS == 1U)
hhcd->HC_NotifyURBChangeCallback(hhcd, chnum, hhcd->hc[chnum].urb_state);
#else
HAL_HCD_HC_NotifyURBChange_Callback(hhcd, chnum, hhcd->hc[chnum].urb_state);
80038ba: 78fa ldrb r2, [r7, #3]
80038bc: 6879 ldr r1, [r7, #4]
80038be: 4613 mov r3, r2
80038c0: 011b lsls r3, r3, #4
80038c2: 1a9b subs r3, r3, r2
80038c4: 009b lsls r3, r3, #2
80038c6: 440b add r3, r1
80038c8: 334c adds r3, #76 @ 0x4c
80038ca: 781a ldrb r2, [r3, #0]
80038cc: 78fb ldrb r3, [r7, #3]
80038ce: 4619 mov r1, r3
80038d0: 6878 ldr r0, [r7, #4]
80038d2: f004 fa67 bl 8007da4 <HAL_HCD_HC_NotifyURBChange_Callback>
80038d6: e002 b.n 80038de <HCD_HC_OUT_IRQHandler+0x978>
#endif /* USE_HAL_HCD_REGISTER_CALLBACKS */
}
else
{
return;
80038d8: bf00 nop
80038da: e000 b.n 80038de <HCD_HC_OUT_IRQHandler+0x978>
return;
80038dc: bf00 nop
}
}
80038de: 3718 adds r7, #24
80038e0: 46bd mov sp, r7
80038e2: bd80 pop {r7, pc}
080038e4 <HCD_RXQLVL_IRQHandler>:
* @brief Handle Rx Queue Level interrupt requests.
* @param hhcd HCD handle
* @retval none
*/
static void HCD_RXQLVL_IRQHandler(HCD_HandleTypeDef *hhcd)
{
80038e4: b580 push {r7, lr}
80038e6: b08a sub sp, #40 @ 0x28
80038e8: af00 add r7, sp, #0
80038ea: 6078 str r0, [r7, #4]
const USB_OTG_GlobalTypeDef *USBx = hhcd->Instance;
80038ec: 687b ldr r3, [r7, #4]
80038ee: 681b ldr r3, [r3, #0]
80038f0: 627b str r3, [r7, #36] @ 0x24
uint32_t USBx_BASE = (uint32_t)USBx;
80038f2: 6a7b ldr r3, [r7, #36] @ 0x24
80038f4: 623b str r3, [r7, #32]
uint32_t GrxstspReg;
uint32_t xferSizePktCnt;
uint32_t tmpreg;
uint32_t chnum;
GrxstspReg = hhcd->Instance->GRXSTSP;
80038f6: 687b ldr r3, [r7, #4]
80038f8: 681b ldr r3, [r3, #0]
80038fa: 6a1b ldr r3, [r3, #32]
80038fc: 61fb str r3, [r7, #28]
chnum = GrxstspReg & USB_OTG_GRXSTSP_EPNUM;
80038fe: 69fb ldr r3, [r7, #28]
8003900: f003 030f and.w r3, r3, #15
8003904: 61bb str r3, [r7, #24]
pktsts = (GrxstspReg & USB_OTG_GRXSTSP_PKTSTS) >> 17;
8003906: 69fb ldr r3, [r7, #28]
8003908: 0c5b lsrs r3, r3, #17
800390a: f003 030f and.w r3, r3, #15
800390e: 617b str r3, [r7, #20]
pktcnt = (GrxstspReg & USB_OTG_GRXSTSP_BCNT) >> 4;
8003910: 69fb ldr r3, [r7, #28]
8003912: 091b lsrs r3, r3, #4
8003914: f3c3 030a ubfx r3, r3, #0, #11
8003918: 613b str r3, [r7, #16]
switch (pktsts)
800391a: 697b ldr r3, [r7, #20]
800391c: 2b02 cmp r3, #2
800391e: d004 beq.n 800392a <HCD_RXQLVL_IRQHandler+0x46>
8003920: 697b ldr r3, [r7, #20]
8003922: 2b05 cmp r3, #5
8003924: f000 80b6 beq.w 8003a94 <HCD_RXQLVL_IRQHandler+0x1b0>
break;
case GRXSTS_PKTSTS_IN_XFER_COMP:
case GRXSTS_PKTSTS_CH_HALTED:
default:
break;
8003928: e0b7 b.n 8003a9a <HCD_RXQLVL_IRQHandler+0x1b6>
if ((pktcnt > 0U) && (hhcd->hc[chnum].xfer_buff != (void *)0))
800392a: 693b ldr r3, [r7, #16]
800392c: 2b00 cmp r3, #0
800392e: f000 80b3 beq.w 8003a98 <HCD_RXQLVL_IRQHandler+0x1b4>
8003932: 6879 ldr r1, [r7, #4]
8003934: 69ba ldr r2, [r7, #24]
8003936: 4613 mov r3, r2
8003938: 011b lsls r3, r3, #4
800393a: 1a9b subs r3, r3, r2
800393c: 009b lsls r3, r3, #2
800393e: 440b add r3, r1
8003940: 332c adds r3, #44 @ 0x2c
8003942: 681b ldr r3, [r3, #0]
8003944: 2b00 cmp r3, #0
8003946: f000 80a7 beq.w 8003a98 <HCD_RXQLVL_IRQHandler+0x1b4>
if ((hhcd->hc[chnum].xfer_count + pktcnt) <= hhcd->hc[chnum].xfer_len)
800394a: 6879 ldr r1, [r7, #4]
800394c: 69ba ldr r2, [r7, #24]
800394e: 4613 mov r3, r2
8003950: 011b lsls r3, r3, #4
8003952: 1a9b subs r3, r3, r2
8003954: 009b lsls r3, r3, #2
8003956: 440b add r3, r1
8003958: 3338 adds r3, #56 @ 0x38
800395a: 681a ldr r2, [r3, #0]
800395c: 693b ldr r3, [r7, #16]
800395e: 18d1 adds r1, r2, r3
8003960: 6878 ldr r0, [r7, #4]
8003962: 69ba ldr r2, [r7, #24]
8003964: 4613 mov r3, r2
8003966: 011b lsls r3, r3, #4
8003968: 1a9b subs r3, r3, r2
800396a: 009b lsls r3, r3, #2
800396c: 4403 add r3, r0
800396e: 3334 adds r3, #52 @ 0x34
8003970: 681b ldr r3, [r3, #0]
8003972: 4299 cmp r1, r3
8003974: f200 8083 bhi.w 8003a7e <HCD_RXQLVL_IRQHandler+0x19a>
(void)USB_ReadPacket(hhcd->Instance,
8003978: 687b ldr r3, [r7, #4]
800397a: 6818 ldr r0, [r3, #0]
800397c: 6879 ldr r1, [r7, #4]
800397e: 69ba ldr r2, [r7, #24]
8003980: 4613 mov r3, r2
8003982: 011b lsls r3, r3, #4
8003984: 1a9b subs r3, r3, r2
8003986: 009b lsls r3, r3, #2
8003988: 440b add r3, r1
800398a: 332c adds r3, #44 @ 0x2c
800398c: 681b ldr r3, [r3, #0]
800398e: 693a ldr r2, [r7, #16]
8003990: b292 uxth r2, r2
8003992: 4619 mov r1, r3
8003994: f002 fd8a bl 80064ac <USB_ReadPacket>
hhcd->hc[chnum].xfer_buff += pktcnt;
8003998: 6879 ldr r1, [r7, #4]
800399a: 69ba ldr r2, [r7, #24]
800399c: 4613 mov r3, r2
800399e: 011b lsls r3, r3, #4
80039a0: 1a9b subs r3, r3, r2
80039a2: 009b lsls r3, r3, #2
80039a4: 440b add r3, r1
80039a6: 332c adds r3, #44 @ 0x2c
80039a8: 681a ldr r2, [r3, #0]
80039aa: 693b ldr r3, [r7, #16]
80039ac: 18d1 adds r1, r2, r3
80039ae: 6878 ldr r0, [r7, #4]
80039b0: 69ba ldr r2, [r7, #24]
80039b2: 4613 mov r3, r2
80039b4: 011b lsls r3, r3, #4
80039b6: 1a9b subs r3, r3, r2
80039b8: 009b lsls r3, r3, #2
80039ba: 4403 add r3, r0
80039bc: 332c adds r3, #44 @ 0x2c
80039be: 6019 str r1, [r3, #0]
hhcd->hc[chnum].xfer_count += pktcnt;
80039c0: 6879 ldr r1, [r7, #4]
80039c2: 69ba ldr r2, [r7, #24]
80039c4: 4613 mov r3, r2
80039c6: 011b lsls r3, r3, #4
80039c8: 1a9b subs r3, r3, r2
80039ca: 009b lsls r3, r3, #2
80039cc: 440b add r3, r1
80039ce: 3338 adds r3, #56 @ 0x38
80039d0: 681a ldr r2, [r3, #0]
80039d2: 693b ldr r3, [r7, #16]
80039d4: 18d1 adds r1, r2, r3
80039d6: 6878 ldr r0, [r7, #4]
80039d8: 69ba ldr r2, [r7, #24]
80039da: 4613 mov r3, r2
80039dc: 011b lsls r3, r3, #4
80039de: 1a9b subs r3, r3, r2
80039e0: 009b lsls r3, r3, #2
80039e2: 4403 add r3, r0
80039e4: 3338 adds r3, #56 @ 0x38
80039e6: 6019 str r1, [r3, #0]
xferSizePktCnt = (USBx_HC(chnum)->HCTSIZ & USB_OTG_HCTSIZ_PKTCNT) >> 19;
80039e8: 69bb ldr r3, [r7, #24]
80039ea: 015a lsls r2, r3, #5
80039ec: 6a3b ldr r3, [r7, #32]
80039ee: 4413 add r3, r2
80039f0: f503 63a0 add.w r3, r3, #1280 @ 0x500
80039f4: 691b ldr r3, [r3, #16]
80039f6: 0cdb lsrs r3, r3, #19
80039f8: f3c3 0309 ubfx r3, r3, #0, #10
80039fc: 60fb str r3, [r7, #12]
if ((hhcd->hc[chnum].max_packet == pktcnt) && (xferSizePktCnt > 0U))
80039fe: 6879 ldr r1, [r7, #4]
8003a00: 69ba ldr r2, [r7, #24]
8003a02: 4613 mov r3, r2
8003a04: 011b lsls r3, r3, #4
8003a06: 1a9b subs r3, r3, r2
8003a08: 009b lsls r3, r3, #2
8003a0a: 440b add r3, r1
8003a0c: 3328 adds r3, #40 @ 0x28
8003a0e: 881b ldrh r3, [r3, #0]
8003a10: 461a mov r2, r3
8003a12: 693b ldr r3, [r7, #16]
8003a14: 4293 cmp r3, r2
8003a16: d13f bne.n 8003a98 <HCD_RXQLVL_IRQHandler+0x1b4>
8003a18: 68fb ldr r3, [r7, #12]
8003a1a: 2b00 cmp r3, #0
8003a1c: d03c beq.n 8003a98 <HCD_RXQLVL_IRQHandler+0x1b4>
tmpreg = USBx_HC(chnum)->HCCHAR;
8003a1e: 69bb ldr r3, [r7, #24]
8003a20: 015a lsls r2, r3, #5
8003a22: 6a3b ldr r3, [r7, #32]
8003a24: 4413 add r3, r2
8003a26: f503 63a0 add.w r3, r3, #1280 @ 0x500
8003a2a: 681b ldr r3, [r3, #0]
8003a2c: 60bb str r3, [r7, #8]
tmpreg &= ~USB_OTG_HCCHAR_CHDIS;
8003a2e: 68bb ldr r3, [r7, #8]
8003a30: f023 4380 bic.w r3, r3, #1073741824 @ 0x40000000
8003a34: 60bb str r3, [r7, #8]
tmpreg |= USB_OTG_HCCHAR_CHENA;
8003a36: 68bb ldr r3, [r7, #8]
8003a38: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
8003a3c: 60bb str r3, [r7, #8]
USBx_HC(chnum)->HCCHAR = tmpreg;
8003a3e: 69bb ldr r3, [r7, #24]
8003a40: 015a lsls r2, r3, #5
8003a42: 6a3b ldr r3, [r7, #32]
8003a44: 4413 add r3, r2
8003a46: f503 63a0 add.w r3, r3, #1280 @ 0x500
8003a4a: 461a mov r2, r3
8003a4c: 68bb ldr r3, [r7, #8]
8003a4e: 6013 str r3, [r2, #0]
hhcd->hc[chnum].toggle_in ^= 1U;
8003a50: 6879 ldr r1, [r7, #4]
8003a52: 69ba ldr r2, [r7, #24]
8003a54: 4613 mov r3, r2
8003a56: 011b lsls r3, r3, #4
8003a58: 1a9b subs r3, r3, r2
8003a5a: 009b lsls r3, r3, #2
8003a5c: 440b add r3, r1
8003a5e: 333c adds r3, #60 @ 0x3c
8003a60: 781b ldrb r3, [r3, #0]
8003a62: f083 0301 eor.w r3, r3, #1
8003a66: b2d8 uxtb r0, r3
8003a68: 6879 ldr r1, [r7, #4]
8003a6a: 69ba ldr r2, [r7, #24]
8003a6c: 4613 mov r3, r2
8003a6e: 011b lsls r3, r3, #4
8003a70: 1a9b subs r3, r3, r2
8003a72: 009b lsls r3, r3, #2
8003a74: 440b add r3, r1
8003a76: 333c adds r3, #60 @ 0x3c
8003a78: 4602 mov r2, r0
8003a7a: 701a strb r2, [r3, #0]
break;
8003a7c: e00c b.n 8003a98 <HCD_RXQLVL_IRQHandler+0x1b4>
hhcd->hc[chnum].urb_state = URB_ERROR;
8003a7e: 6879 ldr r1, [r7, #4]
8003a80: 69ba ldr r2, [r7, #24]
8003a82: 4613 mov r3, r2
8003a84: 011b lsls r3, r3, #4
8003a86: 1a9b subs r3, r3, r2
8003a88: 009b lsls r3, r3, #2
8003a8a: 440b add r3, r1
8003a8c: 334c adds r3, #76 @ 0x4c
8003a8e: 2204 movs r2, #4
8003a90: 701a strb r2, [r3, #0]
break;
8003a92: e001 b.n 8003a98 <HCD_RXQLVL_IRQHandler+0x1b4>
break;
8003a94: bf00 nop
8003a96: e000 b.n 8003a9a <HCD_RXQLVL_IRQHandler+0x1b6>
break;
8003a98: bf00 nop
}
}
8003a9a: bf00 nop
8003a9c: 3728 adds r7, #40 @ 0x28
8003a9e: 46bd mov sp, r7
8003aa0: bd80 pop {r7, pc}
08003aa2 <HCD_Port_IRQHandler>:
* @brief Handle Host Port interrupt requests.
* @param hhcd HCD handle
* @retval None
*/
static void HCD_Port_IRQHandler(HCD_HandleTypeDef *hhcd)
{
8003aa2: b580 push {r7, lr}
8003aa4: b086 sub sp, #24
8003aa6: af00 add r7, sp, #0
8003aa8: 6078 str r0, [r7, #4]
const USB_OTG_GlobalTypeDef *USBx = hhcd->Instance;
8003aaa: 687b ldr r3, [r7, #4]
8003aac: 681b ldr r3, [r3, #0]
8003aae: 617b str r3, [r7, #20]
uint32_t USBx_BASE = (uint32_t)USBx;
8003ab0: 697b ldr r3, [r7, #20]
8003ab2: 613b str r3, [r7, #16]
__IO uint32_t hprt0;
__IO uint32_t hprt0_dup;
/* Handle Host Port Interrupts */
hprt0 = USBx_HPRT0;
8003ab4: 693b ldr r3, [r7, #16]
8003ab6: f503 6388 add.w r3, r3, #1088 @ 0x440
8003aba: 681b ldr r3, [r3, #0]
8003abc: 60fb str r3, [r7, #12]
hprt0_dup = USBx_HPRT0;
8003abe: 693b ldr r3, [r7, #16]
8003ac0: f503 6388 add.w r3, r3, #1088 @ 0x440
8003ac4: 681b ldr r3, [r3, #0]
8003ac6: 60bb str r3, [r7, #8]
hprt0_dup &= ~(USB_OTG_HPRT_PENA | USB_OTG_HPRT_PCDET | \
8003ac8: 68bb ldr r3, [r7, #8]
8003aca: f023 032e bic.w r3, r3, #46 @ 0x2e
8003ace: 60bb str r3, [r7, #8]
USB_OTG_HPRT_PENCHNG | USB_OTG_HPRT_POCCHNG);
/* Check whether Port Connect detected */
if ((hprt0 & USB_OTG_HPRT_PCDET) == USB_OTG_HPRT_PCDET)
8003ad0: 68fb ldr r3, [r7, #12]
8003ad2: f003 0302 and.w r3, r3, #2
8003ad6: 2b02 cmp r3, #2
8003ad8: d10b bne.n 8003af2 <HCD_Port_IRQHandler+0x50>
{
if ((hprt0 & USB_OTG_HPRT_PCSTS) == USB_OTG_HPRT_PCSTS)
8003ada: 68fb ldr r3, [r7, #12]
8003adc: f003 0301 and.w r3, r3, #1
8003ae0: 2b01 cmp r3, #1
8003ae2: d102 bne.n 8003aea <HCD_Port_IRQHandler+0x48>
{
#if (USE_HAL_HCD_REGISTER_CALLBACKS == 1U)
hhcd->ConnectCallback(hhcd);
#else
HAL_HCD_Connect_Callback(hhcd);
8003ae4: 6878 ldr r0, [r7, #4]
8003ae6: f004 f941 bl 8007d6c <HAL_HCD_Connect_Callback>
#endif /* USE_HAL_HCD_REGISTER_CALLBACKS */
}
hprt0_dup |= USB_OTG_HPRT_PCDET;
8003aea: 68bb ldr r3, [r7, #8]
8003aec: f043 0302 orr.w r3, r3, #2
8003af0: 60bb str r3, [r7, #8]
}
/* Check whether Port Enable Changed */
if ((hprt0 & USB_OTG_HPRT_PENCHNG) == USB_OTG_HPRT_PENCHNG)
8003af2: 68fb ldr r3, [r7, #12]
8003af4: f003 0308 and.w r3, r3, #8
8003af8: 2b08 cmp r3, #8
8003afa: d132 bne.n 8003b62 <HCD_Port_IRQHandler+0xc0>
{
hprt0_dup |= USB_OTG_HPRT_PENCHNG;
8003afc: 68bb ldr r3, [r7, #8]
8003afe: f043 0308 orr.w r3, r3, #8
8003b02: 60bb str r3, [r7, #8]
if ((hprt0 & USB_OTG_HPRT_PENA) == USB_OTG_HPRT_PENA)
8003b04: 68fb ldr r3, [r7, #12]
8003b06: f003 0304 and.w r3, r3, #4
8003b0a: 2b04 cmp r3, #4
8003b0c: d126 bne.n 8003b5c <HCD_Port_IRQHandler+0xba>
{
if (hhcd->Init.phy_itface == USB_OTG_EMBEDDED_PHY)
8003b0e: 687b ldr r3, [r7, #4]
8003b10: 7a5b ldrb r3, [r3, #9]
8003b12: 2b02 cmp r3, #2
8003b14: d113 bne.n 8003b3e <HCD_Port_IRQHandler+0x9c>
{
if ((hprt0 & USB_OTG_HPRT_PSPD) == (HPRT0_PRTSPD_LOW_SPEED << 17))
8003b16: 68fb ldr r3, [r7, #12]
8003b18: f403 23c0 and.w r3, r3, #393216 @ 0x60000
8003b1c: f5b3 2f80 cmp.w r3, #262144 @ 0x40000
8003b20: d106 bne.n 8003b30 <HCD_Port_IRQHandler+0x8e>
{
(void)USB_InitFSLSPClkSel(hhcd->Instance, HCFG_6_MHZ);
8003b22: 687b ldr r3, [r7, #4]
8003b24: 681b ldr r3, [r3, #0]
8003b26: 2102 movs r1, #2
8003b28: 4618 mov r0, r3
8003b2a: f002 fd59 bl 80065e0 <USB_InitFSLSPClkSel>
8003b2e: e011 b.n 8003b54 <HCD_Port_IRQHandler+0xb2>
}
else
{
(void)USB_InitFSLSPClkSel(hhcd->Instance, HCFG_48_MHZ);
8003b30: 687b ldr r3, [r7, #4]
8003b32: 681b ldr r3, [r3, #0]
8003b34: 2101 movs r1, #1
8003b36: 4618 mov r0, r3
8003b38: f002 fd52 bl 80065e0 <USB_InitFSLSPClkSel>
8003b3c: e00a b.n 8003b54 <HCD_Port_IRQHandler+0xb2>
}
}
else
{
if (hhcd->Init.speed == HCD_SPEED_FULL)
8003b3e: 687b ldr r3, [r7, #4]
8003b40: 79db ldrb r3, [r3, #7]
8003b42: 2b01 cmp r3, #1
8003b44: d106 bne.n 8003b54 <HCD_Port_IRQHandler+0xb2>
{
USBx_HOST->HFIR = HFIR_60_MHZ;
8003b46: 693b ldr r3, [r7, #16]
8003b48: f503 6380 add.w r3, r3, #1024 @ 0x400
8003b4c: 461a mov r2, r3
8003b4e: f64e 2360 movw r3, #60000 @ 0xea60
8003b52: 6053 str r3, [r2, #4]
}
}
#if (USE_HAL_HCD_REGISTER_CALLBACKS == 1U)
hhcd->PortEnabledCallback(hhcd);
#else
HAL_HCD_PortEnabled_Callback(hhcd);
8003b54: 6878 ldr r0, [r7, #4]
8003b56: f004 f937 bl 8007dc8 <HAL_HCD_PortEnabled_Callback>
8003b5a: e002 b.n 8003b62 <HCD_Port_IRQHandler+0xc0>
else
{
#if (USE_HAL_HCD_REGISTER_CALLBACKS == 1U)
hhcd->PortDisabledCallback(hhcd);
#else
HAL_HCD_PortDisabled_Callback(hhcd);
8003b5c: 6878 ldr r0, [r7, #4]
8003b5e: f004 f941 bl 8007de4 <HAL_HCD_PortDisabled_Callback>
#endif /* USE_HAL_HCD_REGISTER_CALLBACKS */
}
}
/* Check for an overcurrent */
if ((hprt0 & USB_OTG_HPRT_POCCHNG) == USB_OTG_HPRT_POCCHNG)
8003b62: 68fb ldr r3, [r7, #12]
8003b64: f003 0320 and.w r3, r3, #32
8003b68: 2b20 cmp r3, #32
8003b6a: d103 bne.n 8003b74 <HCD_Port_IRQHandler+0xd2>
{
hprt0_dup |= USB_OTG_HPRT_POCCHNG;
8003b6c: 68bb ldr r3, [r7, #8]
8003b6e: f043 0320 orr.w r3, r3, #32
8003b72: 60bb str r3, [r7, #8]
}
/* Clear Port Interrupts */
USBx_HPRT0 = hprt0_dup;
8003b74: 693b ldr r3, [r7, #16]
8003b76: f503 6388 add.w r3, r3, #1088 @ 0x440
8003b7a: 461a mov r2, r3
8003b7c: 68bb ldr r3, [r7, #8]
8003b7e: 6013 str r3, [r2, #0]
}
8003b80: bf00 nop
8003b82: 3718 adds r7, #24
8003b84: 46bd mov sp, r7
8003b86: bd80 pop {r7, pc}
08003b88 <HAL_I2C_Init>:
* @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)
{
8003b88: b580 push {r7, lr}
8003b8a: b084 sub sp, #16
8003b8c: af00 add r7, sp, #0
8003b8e: 6078 str r0, [r7, #4]
uint32_t freqrange;
uint32_t pclk1;
/* Check the I2C handle allocation */
if (hi2c == NULL)
8003b90: 687b ldr r3, [r7, #4]
8003b92: 2b00 cmp r3, #0
8003b94: d101 bne.n 8003b9a <HAL_I2C_Init+0x12>
{
return HAL_ERROR;
8003b96: 2301 movs r3, #1
8003b98: e12b b.n 8003df2 <HAL_I2C_Init+0x26a>
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)
8003b9a: 687b ldr r3, [r7, #4]
8003b9c: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
8003ba0: b2db uxtb r3, r3
8003ba2: 2b00 cmp r3, #0
8003ba4: d106 bne.n 8003bb4 <HAL_I2C_Init+0x2c>
{
/* Allocate lock resource and initialize it */
hi2c->Lock = HAL_UNLOCKED;
8003ba6: 687b ldr r3, [r7, #4]
8003ba8: 2200 movs r2, #0
8003baa: 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);
8003bae: 6878 ldr r0, [r7, #4]
8003bb0: f7fd f932 bl 8000e18 <HAL_I2C_MspInit>
#endif /* USE_HAL_I2C_REGISTER_CALLBACKS */
}
hi2c->State = HAL_I2C_STATE_BUSY;
8003bb4: 687b ldr r3, [r7, #4]
8003bb6: 2224 movs r2, #36 @ 0x24
8003bb8: f883 203d strb.w r2, [r3, #61] @ 0x3d
/* Disable the selected I2C peripheral */
__HAL_I2C_DISABLE(hi2c);
8003bbc: 687b ldr r3, [r7, #4]
8003bbe: 681b ldr r3, [r3, #0]
8003bc0: 681a ldr r2, [r3, #0]
8003bc2: 687b ldr r3, [r7, #4]
8003bc4: 681b ldr r3, [r3, #0]
8003bc6: f022 0201 bic.w r2, r2, #1
8003bca: 601a str r2, [r3, #0]
/*Reset I2C*/
hi2c->Instance->CR1 |= I2C_CR1_SWRST;
8003bcc: 687b ldr r3, [r7, #4]
8003bce: 681b ldr r3, [r3, #0]
8003bd0: 681a ldr r2, [r3, #0]
8003bd2: 687b ldr r3, [r7, #4]
8003bd4: 681b ldr r3, [r3, #0]
8003bd6: f442 4200 orr.w r2, r2, #32768 @ 0x8000
8003bda: 601a str r2, [r3, #0]
hi2c->Instance->CR1 &= ~I2C_CR1_SWRST;
8003bdc: 687b ldr r3, [r7, #4]
8003bde: 681b ldr r3, [r3, #0]
8003be0: 681a ldr r2, [r3, #0]
8003be2: 687b ldr r3, [r7, #4]
8003be4: 681b ldr r3, [r3, #0]
8003be6: f422 4200 bic.w r2, r2, #32768 @ 0x8000
8003bea: 601a str r2, [r3, #0]
/* Get PCLK1 frequency */
pclk1 = HAL_RCC_GetPCLK1Freq();
8003bec: f001 f90c bl 8004e08 <HAL_RCC_GetPCLK1Freq>
8003bf0: 60f8 str r0, [r7, #12]
/* Check the minimum allowed PCLK1 frequency */
if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U)
8003bf2: 687b ldr r3, [r7, #4]
8003bf4: 685b ldr r3, [r3, #4]
8003bf6: 4a81 ldr r2, [pc, #516] @ (8003dfc <HAL_I2C_Init+0x274>)
8003bf8: 4293 cmp r3, r2
8003bfa: d807 bhi.n 8003c0c <HAL_I2C_Init+0x84>
8003bfc: 68fb ldr r3, [r7, #12]
8003bfe: 4a80 ldr r2, [pc, #512] @ (8003e00 <HAL_I2C_Init+0x278>)
8003c00: 4293 cmp r3, r2
8003c02: bf94 ite ls
8003c04: 2301 movls r3, #1
8003c06: 2300 movhi r3, #0
8003c08: b2db uxtb r3, r3
8003c0a: e006 b.n 8003c1a <HAL_I2C_Init+0x92>
8003c0c: 68fb ldr r3, [r7, #12]
8003c0e: 4a7d ldr r2, [pc, #500] @ (8003e04 <HAL_I2C_Init+0x27c>)
8003c10: 4293 cmp r3, r2
8003c12: bf94 ite ls
8003c14: 2301 movls r3, #1
8003c16: 2300 movhi r3, #0
8003c18: b2db uxtb r3, r3
8003c1a: 2b00 cmp r3, #0
8003c1c: d001 beq.n 8003c22 <HAL_I2C_Init+0x9a>
{
return HAL_ERROR;
8003c1e: 2301 movs r3, #1
8003c20: e0e7 b.n 8003df2 <HAL_I2C_Init+0x26a>
}
/* Calculate frequency range */
freqrange = I2C_FREQRANGE(pclk1);
8003c22: 68fb ldr r3, [r7, #12]
8003c24: 4a78 ldr r2, [pc, #480] @ (8003e08 <HAL_I2C_Init+0x280>)
8003c26: fba2 2303 umull r2, r3, r2, r3
8003c2a: 0c9b lsrs r3, r3, #18
8003c2c: 60bb str r3, [r7, #8]
/*---------------------------- I2Cx CR2 Configuration ----------------------*/
/* Configure I2Cx: Frequency range */
MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange);
8003c2e: 687b ldr r3, [r7, #4]
8003c30: 681b ldr r3, [r3, #0]
8003c32: 685b ldr r3, [r3, #4]
8003c34: f023 013f bic.w r1, r3, #63 @ 0x3f
8003c38: 687b ldr r3, [r7, #4]
8003c3a: 681b ldr r3, [r3, #0]
8003c3c: 68ba ldr r2, [r7, #8]
8003c3e: 430a orrs r2, r1
8003c40: 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));
8003c42: 687b ldr r3, [r7, #4]
8003c44: 681b ldr r3, [r3, #0]
8003c46: 6a1b ldr r3, [r3, #32]
8003c48: f023 013f bic.w r1, r3, #63 @ 0x3f
8003c4c: 687b ldr r3, [r7, #4]
8003c4e: 685b ldr r3, [r3, #4]
8003c50: 4a6a ldr r2, [pc, #424] @ (8003dfc <HAL_I2C_Init+0x274>)
8003c52: 4293 cmp r3, r2
8003c54: d802 bhi.n 8003c5c <HAL_I2C_Init+0xd4>
8003c56: 68bb ldr r3, [r7, #8]
8003c58: 3301 adds r3, #1
8003c5a: e009 b.n 8003c70 <HAL_I2C_Init+0xe8>
8003c5c: 68bb ldr r3, [r7, #8]
8003c5e: f44f 7296 mov.w r2, #300 @ 0x12c
8003c62: fb02 f303 mul.w r3, r2, r3
8003c66: 4a69 ldr r2, [pc, #420] @ (8003e0c <HAL_I2C_Init+0x284>)
8003c68: fba2 2303 umull r2, r3, r2, r3
8003c6c: 099b lsrs r3, r3, #6
8003c6e: 3301 adds r3, #1
8003c70: 687a ldr r2, [r7, #4]
8003c72: 6812 ldr r2, [r2, #0]
8003c74: 430b orrs r3, r1
8003c76: 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));
8003c78: 687b ldr r3, [r7, #4]
8003c7a: 681b ldr r3, [r3, #0]
8003c7c: 69db ldr r3, [r3, #28]
8003c7e: f423 424f bic.w r2, r3, #52992 @ 0xcf00
8003c82: f022 02ff bic.w r2, r2, #255 @ 0xff
8003c86: 687b ldr r3, [r7, #4]
8003c88: 685b ldr r3, [r3, #4]
8003c8a: 495c ldr r1, [pc, #368] @ (8003dfc <HAL_I2C_Init+0x274>)
8003c8c: 428b cmp r3, r1
8003c8e: d819 bhi.n 8003cc4 <HAL_I2C_Init+0x13c>
8003c90: 68fb ldr r3, [r7, #12]
8003c92: 1e59 subs r1, r3, #1
8003c94: 687b ldr r3, [r7, #4]
8003c96: 685b ldr r3, [r3, #4]
8003c98: 005b lsls r3, r3, #1
8003c9a: fbb1 f3f3 udiv r3, r1, r3
8003c9e: 1c59 adds r1, r3, #1
8003ca0: f640 73fc movw r3, #4092 @ 0xffc
8003ca4: 400b ands r3, r1
8003ca6: 2b00 cmp r3, #0
8003ca8: d00a beq.n 8003cc0 <HAL_I2C_Init+0x138>
8003caa: 68fb ldr r3, [r7, #12]
8003cac: 1e59 subs r1, r3, #1
8003cae: 687b ldr r3, [r7, #4]
8003cb0: 685b ldr r3, [r3, #4]
8003cb2: 005b lsls r3, r3, #1
8003cb4: fbb1 f3f3 udiv r3, r1, r3
8003cb8: 3301 adds r3, #1
8003cba: f3c3 030b ubfx r3, r3, #0, #12
8003cbe: e051 b.n 8003d64 <HAL_I2C_Init+0x1dc>
8003cc0: 2304 movs r3, #4
8003cc2: e04f b.n 8003d64 <HAL_I2C_Init+0x1dc>
8003cc4: 687b ldr r3, [r7, #4]
8003cc6: 689b ldr r3, [r3, #8]
8003cc8: 2b00 cmp r3, #0
8003cca: d111 bne.n 8003cf0 <HAL_I2C_Init+0x168>
8003ccc: 68fb ldr r3, [r7, #12]
8003cce: 1e58 subs r0, r3, #1
8003cd0: 687b ldr r3, [r7, #4]
8003cd2: 6859 ldr r1, [r3, #4]
8003cd4: 460b mov r3, r1
8003cd6: 005b lsls r3, r3, #1
8003cd8: 440b add r3, r1
8003cda: fbb0 f3f3 udiv r3, r0, r3
8003cde: 3301 adds r3, #1
8003ce0: f3c3 030b ubfx r3, r3, #0, #12
8003ce4: 2b00 cmp r3, #0
8003ce6: bf0c ite eq
8003ce8: 2301 moveq r3, #1
8003cea: 2300 movne r3, #0
8003cec: b2db uxtb r3, r3
8003cee: e012 b.n 8003d16 <HAL_I2C_Init+0x18e>
8003cf0: 68fb ldr r3, [r7, #12]
8003cf2: 1e58 subs r0, r3, #1
8003cf4: 687b ldr r3, [r7, #4]
8003cf6: 6859 ldr r1, [r3, #4]
8003cf8: 460b mov r3, r1
8003cfa: 009b lsls r3, r3, #2
8003cfc: 440b add r3, r1
8003cfe: 0099 lsls r1, r3, #2
8003d00: 440b add r3, r1
8003d02: fbb0 f3f3 udiv r3, r0, r3
8003d06: 3301 adds r3, #1
8003d08: f3c3 030b ubfx r3, r3, #0, #12
8003d0c: 2b00 cmp r3, #0
8003d0e: bf0c ite eq
8003d10: 2301 moveq r3, #1
8003d12: 2300 movne r3, #0
8003d14: b2db uxtb r3, r3
8003d16: 2b00 cmp r3, #0
8003d18: d001 beq.n 8003d1e <HAL_I2C_Init+0x196>
8003d1a: 2301 movs r3, #1
8003d1c: e022 b.n 8003d64 <HAL_I2C_Init+0x1dc>
8003d1e: 687b ldr r3, [r7, #4]
8003d20: 689b ldr r3, [r3, #8]
8003d22: 2b00 cmp r3, #0
8003d24: d10e bne.n 8003d44 <HAL_I2C_Init+0x1bc>
8003d26: 68fb ldr r3, [r7, #12]
8003d28: 1e58 subs r0, r3, #1
8003d2a: 687b ldr r3, [r7, #4]
8003d2c: 6859 ldr r1, [r3, #4]
8003d2e: 460b mov r3, r1
8003d30: 005b lsls r3, r3, #1
8003d32: 440b add r3, r1
8003d34: fbb0 f3f3 udiv r3, r0, r3
8003d38: 3301 adds r3, #1
8003d3a: f3c3 030b ubfx r3, r3, #0, #12
8003d3e: f443 4300 orr.w r3, r3, #32768 @ 0x8000
8003d42: e00f b.n 8003d64 <HAL_I2C_Init+0x1dc>
8003d44: 68fb ldr r3, [r7, #12]
8003d46: 1e58 subs r0, r3, #1
8003d48: 687b ldr r3, [r7, #4]
8003d4a: 6859 ldr r1, [r3, #4]
8003d4c: 460b mov r3, r1
8003d4e: 009b lsls r3, r3, #2
8003d50: 440b add r3, r1
8003d52: 0099 lsls r1, r3, #2
8003d54: 440b add r3, r1
8003d56: fbb0 f3f3 udiv r3, r0, r3
8003d5a: 3301 adds r3, #1
8003d5c: f3c3 030b ubfx r3, r3, #0, #12
8003d60: f443 4340 orr.w r3, r3, #49152 @ 0xc000
8003d64: 6879 ldr r1, [r7, #4]
8003d66: 6809 ldr r1, [r1, #0]
8003d68: 4313 orrs r3, r2
8003d6a: 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));
8003d6c: 687b ldr r3, [r7, #4]
8003d6e: 681b ldr r3, [r3, #0]
8003d70: 681b ldr r3, [r3, #0]
8003d72: f023 01c0 bic.w r1, r3, #192 @ 0xc0
8003d76: 687b ldr r3, [r7, #4]
8003d78: 69da ldr r2, [r3, #28]
8003d7a: 687b ldr r3, [r7, #4]
8003d7c: 6a1b ldr r3, [r3, #32]
8003d7e: 431a orrs r2, r3
8003d80: 687b ldr r3, [r7, #4]
8003d82: 681b ldr r3, [r3, #0]
8003d84: 430a orrs r2, r1
8003d86: 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));
8003d88: 687b ldr r3, [r7, #4]
8003d8a: 681b ldr r3, [r3, #0]
8003d8c: 689b ldr r3, [r3, #8]
8003d8e: f423 4303 bic.w r3, r3, #33536 @ 0x8300
8003d92: f023 03ff bic.w r3, r3, #255 @ 0xff
8003d96: 687a ldr r2, [r7, #4]
8003d98: 6911 ldr r1, [r2, #16]
8003d9a: 687a ldr r2, [r7, #4]
8003d9c: 68d2 ldr r2, [r2, #12]
8003d9e: 4311 orrs r1, r2
8003da0: 687a ldr r2, [r7, #4]
8003da2: 6812 ldr r2, [r2, #0]
8003da4: 430b orrs r3, r1
8003da6: 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));
8003da8: 687b ldr r3, [r7, #4]
8003daa: 681b ldr r3, [r3, #0]
8003dac: 68db ldr r3, [r3, #12]
8003dae: f023 01ff bic.w r1, r3, #255 @ 0xff
8003db2: 687b ldr r3, [r7, #4]
8003db4: 695a ldr r2, [r3, #20]
8003db6: 687b ldr r3, [r7, #4]
8003db8: 699b ldr r3, [r3, #24]
8003dba: 431a orrs r2, r3
8003dbc: 687b ldr r3, [r7, #4]
8003dbe: 681b ldr r3, [r3, #0]
8003dc0: 430a orrs r2, r1
8003dc2: 60da str r2, [r3, #12]
/* Enable the selected I2C peripheral */
__HAL_I2C_ENABLE(hi2c);
8003dc4: 687b ldr r3, [r7, #4]
8003dc6: 681b ldr r3, [r3, #0]
8003dc8: 681a ldr r2, [r3, #0]
8003dca: 687b ldr r3, [r7, #4]
8003dcc: 681b ldr r3, [r3, #0]
8003dce: f042 0201 orr.w r2, r2, #1
8003dd2: 601a str r2, [r3, #0]
hi2c->ErrorCode = HAL_I2C_ERROR_NONE;
8003dd4: 687b ldr r3, [r7, #4]
8003dd6: 2200 movs r2, #0
8003dd8: 641a str r2, [r3, #64] @ 0x40
hi2c->State = HAL_I2C_STATE_READY;
8003dda: 687b ldr r3, [r7, #4]
8003ddc: 2220 movs r2, #32
8003dde: f883 203d strb.w r2, [r3, #61] @ 0x3d
hi2c->PreviousState = I2C_STATE_NONE;
8003de2: 687b ldr r3, [r7, #4]
8003de4: 2200 movs r2, #0
8003de6: 631a str r2, [r3, #48] @ 0x30
hi2c->Mode = HAL_I2C_MODE_NONE;
8003de8: 687b ldr r3, [r7, #4]
8003dea: 2200 movs r2, #0
8003dec: f883 203e strb.w r2, [r3, #62] @ 0x3e
return HAL_OK;
8003df0: 2300 movs r3, #0
}
8003df2: 4618 mov r0, r3
8003df4: 3710 adds r7, #16
8003df6: 46bd mov sp, r7
8003df8: bd80 pop {r7, pc}
8003dfa: bf00 nop
8003dfc: 000186a0 .word 0x000186a0
8003e00: 001e847f .word 0x001e847f
8003e04: 003d08ff .word 0x003d08ff
8003e08: 431bde83 .word 0x431bde83
8003e0c: 10624dd3 .word 0x10624dd3
08003e10 <HAL_I2CEx_ConfigAnalogFilter>:
* the configuration information for the specified I2Cx peripheral.
* @param AnalogFilter new state of the Analog filter.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_I2CEx_ConfigAnalogFilter(I2C_HandleTypeDef *hi2c, uint32_t AnalogFilter)
{
8003e10: b480 push {r7}
8003e12: b083 sub sp, #12
8003e14: af00 add r7, sp, #0
8003e16: 6078 str r0, [r7, #4]
8003e18: 6039 str r1, [r7, #0]
/* Check the parameters */
assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance));
assert_param(IS_I2C_ANALOG_FILTER(AnalogFilter));
if (hi2c->State == HAL_I2C_STATE_READY)
8003e1a: 687b ldr r3, [r7, #4]
8003e1c: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
8003e20: b2db uxtb r3, r3
8003e22: 2b20 cmp r3, #32
8003e24: d129 bne.n 8003e7a <HAL_I2CEx_ConfigAnalogFilter+0x6a>
{
hi2c->State = HAL_I2C_STATE_BUSY;
8003e26: 687b ldr r3, [r7, #4]
8003e28: 2224 movs r2, #36 @ 0x24
8003e2a: f883 203d strb.w r2, [r3, #61] @ 0x3d
/* Disable the selected I2C peripheral */
__HAL_I2C_DISABLE(hi2c);
8003e2e: 687b ldr r3, [r7, #4]
8003e30: 681b ldr r3, [r3, #0]
8003e32: 681a ldr r2, [r3, #0]
8003e34: 687b ldr r3, [r7, #4]
8003e36: 681b ldr r3, [r3, #0]
8003e38: f022 0201 bic.w r2, r2, #1
8003e3c: 601a str r2, [r3, #0]
/* Reset I2Cx ANOFF bit */
hi2c->Instance->FLTR &= ~(I2C_FLTR_ANOFF);
8003e3e: 687b ldr r3, [r7, #4]
8003e40: 681b ldr r3, [r3, #0]
8003e42: 6a5a ldr r2, [r3, #36] @ 0x24
8003e44: 687b ldr r3, [r7, #4]
8003e46: 681b ldr r3, [r3, #0]
8003e48: f022 0210 bic.w r2, r2, #16
8003e4c: 625a str r2, [r3, #36] @ 0x24
/* Disable the analog filter */
hi2c->Instance->FLTR |= AnalogFilter;
8003e4e: 687b ldr r3, [r7, #4]
8003e50: 681b ldr r3, [r3, #0]
8003e52: 6a59 ldr r1, [r3, #36] @ 0x24
8003e54: 687b ldr r3, [r7, #4]
8003e56: 681b ldr r3, [r3, #0]
8003e58: 683a ldr r2, [r7, #0]
8003e5a: 430a orrs r2, r1
8003e5c: 625a str r2, [r3, #36] @ 0x24
__HAL_I2C_ENABLE(hi2c);
8003e5e: 687b ldr r3, [r7, #4]
8003e60: 681b ldr r3, [r3, #0]
8003e62: 681a ldr r2, [r3, #0]
8003e64: 687b ldr r3, [r7, #4]
8003e66: 681b ldr r3, [r3, #0]
8003e68: f042 0201 orr.w r2, r2, #1
8003e6c: 601a str r2, [r3, #0]
hi2c->State = HAL_I2C_STATE_READY;
8003e6e: 687b ldr r3, [r7, #4]
8003e70: 2220 movs r2, #32
8003e72: f883 203d strb.w r2, [r3, #61] @ 0x3d
return HAL_OK;
8003e76: 2300 movs r3, #0
8003e78: e000 b.n 8003e7c <HAL_I2CEx_ConfigAnalogFilter+0x6c>
}
else
{
return HAL_BUSY;
8003e7a: 2302 movs r3, #2
}
}
8003e7c: 4618 mov r0, r3
8003e7e: 370c adds r7, #12
8003e80: 46bd mov sp, r7
8003e82: f85d 7b04 ldr.w r7, [sp], #4
8003e86: 4770 bx lr
08003e88 <HAL_I2CEx_ConfigDigitalFilter>:
* the configuration information for the specified I2Cx peripheral.
* @param DigitalFilter Coefficient of digital noise filter between 0x00 and 0x0F.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_I2CEx_ConfigDigitalFilter(I2C_HandleTypeDef *hi2c, uint32_t DigitalFilter)
{
8003e88: b480 push {r7}
8003e8a: b085 sub sp, #20
8003e8c: af00 add r7, sp, #0
8003e8e: 6078 str r0, [r7, #4]
8003e90: 6039 str r1, [r7, #0]
uint16_t tmpreg = 0;
8003e92: 2300 movs r3, #0
8003e94: 81fb strh r3, [r7, #14]
/* Check the parameters */
assert_param(IS_I2C_ALL_INSTANCE(hi2c->Instance));
assert_param(IS_I2C_DIGITAL_FILTER(DigitalFilter));
if (hi2c->State == HAL_I2C_STATE_READY)
8003e96: 687b ldr r3, [r7, #4]
8003e98: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
8003e9c: b2db uxtb r3, r3
8003e9e: 2b20 cmp r3, #32
8003ea0: d12a bne.n 8003ef8 <HAL_I2CEx_ConfigDigitalFilter+0x70>
{
hi2c->State = HAL_I2C_STATE_BUSY;
8003ea2: 687b ldr r3, [r7, #4]
8003ea4: 2224 movs r2, #36 @ 0x24
8003ea6: f883 203d strb.w r2, [r3, #61] @ 0x3d
/* Disable the selected I2C peripheral */
__HAL_I2C_DISABLE(hi2c);
8003eaa: 687b ldr r3, [r7, #4]
8003eac: 681b ldr r3, [r3, #0]
8003eae: 681a ldr r2, [r3, #0]
8003eb0: 687b ldr r3, [r7, #4]
8003eb2: 681b ldr r3, [r3, #0]
8003eb4: f022 0201 bic.w r2, r2, #1
8003eb8: 601a str r2, [r3, #0]
/* Get the old register value */
tmpreg = hi2c->Instance->FLTR;
8003eba: 687b ldr r3, [r7, #4]
8003ebc: 681b ldr r3, [r3, #0]
8003ebe: 6a5b ldr r3, [r3, #36] @ 0x24
8003ec0: 81fb strh r3, [r7, #14]
/* Reset I2Cx DNF bit [3:0] */
tmpreg &= ~(I2C_FLTR_DNF);
8003ec2: 89fb ldrh r3, [r7, #14]
8003ec4: f023 030f bic.w r3, r3, #15
8003ec8: 81fb strh r3, [r7, #14]
/* Set I2Cx DNF coefficient */
tmpreg |= DigitalFilter;
8003eca: 683b ldr r3, [r7, #0]
8003ecc: b29a uxth r2, r3
8003ece: 89fb ldrh r3, [r7, #14]
8003ed0: 4313 orrs r3, r2
8003ed2: 81fb strh r3, [r7, #14]
/* Store the new register value */
hi2c->Instance->FLTR = tmpreg;
8003ed4: 687b ldr r3, [r7, #4]
8003ed6: 681b ldr r3, [r3, #0]
8003ed8: 89fa ldrh r2, [r7, #14]
8003eda: 625a str r2, [r3, #36] @ 0x24
__HAL_I2C_ENABLE(hi2c);
8003edc: 687b ldr r3, [r7, #4]
8003ede: 681b ldr r3, [r3, #0]
8003ee0: 681a ldr r2, [r3, #0]
8003ee2: 687b ldr r3, [r7, #4]
8003ee4: 681b ldr r3, [r3, #0]
8003ee6: f042 0201 orr.w r2, r2, #1
8003eea: 601a str r2, [r3, #0]
hi2c->State = HAL_I2C_STATE_READY;
8003eec: 687b ldr r3, [r7, #4]
8003eee: 2220 movs r2, #32
8003ef0: f883 203d strb.w r2, [r3, #61] @ 0x3d
return HAL_OK;
8003ef4: 2300 movs r3, #0
8003ef6: e000 b.n 8003efa <HAL_I2CEx_ConfigDigitalFilter+0x72>
}
else
{
return HAL_BUSY;
8003ef8: 2302 movs r3, #2
}
}
8003efa: 4618 mov r0, r3
8003efc: 3714 adds r7, #20
8003efe: 46bd mov sp, r7
8003f00: f85d 7b04 ldr.w r7, [sp], #4
8003f04: 4770 bx lr
08003f06 <HAL_LTDC_Init>:
* @param hltdc pointer to a LTDC_HandleTypeDef structure that contains
* the configuration information for the LTDC.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_LTDC_Init(LTDC_HandleTypeDef *hltdc)
{
8003f06: b580 push {r7, lr}
8003f08: b084 sub sp, #16
8003f0a: af00 add r7, sp, #0
8003f0c: 6078 str r0, [r7, #4]
uint32_t tmp;
uint32_t tmp1;
/* Check the LTDC peripheral state */
if (hltdc == NULL)
8003f0e: 687b ldr r3, [r7, #4]
8003f10: 2b00 cmp r3, #0
8003f12: d101 bne.n 8003f18 <HAL_LTDC_Init+0x12>
{
return HAL_ERROR;
8003f14: 2301 movs r3, #1
8003f16: e08f b.n 8004038 <HAL_LTDC_Init+0x132>
}
/* Init the low level hardware */
hltdc->MspInitCallback(hltdc);
}
#else
if (hltdc->State == HAL_LTDC_STATE_RESET)
8003f18: 687b ldr r3, [r7, #4]
8003f1a: f893 30a1 ldrb.w r3, [r3, #161] @ 0xa1
8003f1e: b2db uxtb r3, r3
8003f20: 2b00 cmp r3, #0
8003f22: d106 bne.n 8003f32 <HAL_LTDC_Init+0x2c>
{
/* Allocate lock resource and initialize it */
hltdc->Lock = HAL_UNLOCKED;
8003f24: 687b ldr r3, [r7, #4]
8003f26: 2200 movs r2, #0
8003f28: f883 20a0 strb.w r2, [r3, #160] @ 0xa0
/* Init the low level hardware */
HAL_LTDC_MspInit(hltdc);
8003f2c: 6878 ldr r0, [r7, #4]
8003f2e: f7fc ffdd bl 8000eec <HAL_LTDC_MspInit>
}
#endif /* USE_HAL_LTDC_REGISTER_CALLBACKS */
/* Change LTDC peripheral state */
hltdc->State = HAL_LTDC_STATE_BUSY;
8003f32: 687b ldr r3, [r7, #4]
8003f34: 2202 movs r2, #2
8003f36: f883 20a1 strb.w r2, [r3, #161] @ 0xa1
/* Configure the HS, VS, DE and PC polarity */
hltdc->Instance->GCR &= ~(LTDC_GCR_HSPOL | LTDC_GCR_VSPOL | LTDC_GCR_DEPOL | LTDC_GCR_PCPOL);
8003f3a: 687b ldr r3, [r7, #4]
8003f3c: 681b ldr r3, [r3, #0]
8003f3e: 699a ldr r2, [r3, #24]
8003f40: 687b ldr r3, [r7, #4]
8003f42: 681b ldr r3, [r3, #0]
8003f44: f022 4270 bic.w r2, r2, #4026531840 @ 0xf0000000
8003f48: 619a str r2, [r3, #24]
hltdc->Instance->GCR |= (uint32_t)(hltdc->Init.HSPolarity | hltdc->Init.VSPolarity | \
8003f4a: 687b ldr r3, [r7, #4]
8003f4c: 681b ldr r3, [r3, #0]
8003f4e: 6999 ldr r1, [r3, #24]
8003f50: 687b ldr r3, [r7, #4]
8003f52: 685a ldr r2, [r3, #4]
8003f54: 687b ldr r3, [r7, #4]
8003f56: 689b ldr r3, [r3, #8]
8003f58: 431a orrs r2, r3
hltdc->Init.DEPolarity | hltdc->Init.PCPolarity);
8003f5a: 687b ldr r3, [r7, #4]
8003f5c: 68db ldr r3, [r3, #12]
hltdc->Instance->GCR |= (uint32_t)(hltdc->Init.HSPolarity | hltdc->Init.VSPolarity | \
8003f5e: 431a orrs r2, r3
hltdc->Init.DEPolarity | hltdc->Init.PCPolarity);
8003f60: 687b ldr r3, [r7, #4]
8003f62: 691b ldr r3, [r3, #16]
8003f64: 431a orrs r2, r3
hltdc->Instance->GCR |= (uint32_t)(hltdc->Init.HSPolarity | hltdc->Init.VSPolarity | \
8003f66: 687b ldr r3, [r7, #4]
8003f68: 681b ldr r3, [r3, #0]
8003f6a: 430a orrs r2, r1
8003f6c: 619a str r2, [r3, #24]
/* Set Synchronization size */
tmp = (hltdc->Init.HorizontalSync << 16U);
8003f6e: 687b ldr r3, [r7, #4]
8003f70: 695b ldr r3, [r3, #20]
8003f72: 041b lsls r3, r3, #16
8003f74: 60fb str r3, [r7, #12]
WRITE_REG(hltdc->Instance->SSCR, (tmp | hltdc->Init.VerticalSync));
8003f76: 687b ldr r3, [r7, #4]
8003f78: 6999 ldr r1, [r3, #24]
8003f7a: 687b ldr r3, [r7, #4]
8003f7c: 681b ldr r3, [r3, #0]
8003f7e: 68fa ldr r2, [r7, #12]
8003f80: 430a orrs r2, r1
8003f82: 609a str r2, [r3, #8]
/* Set Accumulated Back porch */
tmp = (hltdc->Init.AccumulatedHBP << 16U);
8003f84: 687b ldr r3, [r7, #4]
8003f86: 69db ldr r3, [r3, #28]
8003f88: 041b lsls r3, r3, #16
8003f8a: 60fb str r3, [r7, #12]
WRITE_REG(hltdc->Instance->BPCR, (tmp | hltdc->Init.AccumulatedVBP));
8003f8c: 687b ldr r3, [r7, #4]
8003f8e: 6a19 ldr r1, [r3, #32]
8003f90: 687b ldr r3, [r7, #4]
8003f92: 681b ldr r3, [r3, #0]
8003f94: 68fa ldr r2, [r7, #12]
8003f96: 430a orrs r2, r1
8003f98: 60da str r2, [r3, #12]
/* Set Accumulated Active Width */
tmp = (hltdc->Init.AccumulatedActiveW << 16U);
8003f9a: 687b ldr r3, [r7, #4]
8003f9c: 6a5b ldr r3, [r3, #36] @ 0x24
8003f9e: 041b lsls r3, r3, #16
8003fa0: 60fb str r3, [r7, #12]
WRITE_REG(hltdc->Instance->AWCR, (tmp | hltdc->Init.AccumulatedActiveH));
8003fa2: 687b ldr r3, [r7, #4]
8003fa4: 6a99 ldr r1, [r3, #40] @ 0x28
8003fa6: 687b ldr r3, [r7, #4]
8003fa8: 681b ldr r3, [r3, #0]
8003faa: 68fa ldr r2, [r7, #12]
8003fac: 430a orrs r2, r1
8003fae: 611a str r2, [r3, #16]
/* Set Total Width */
tmp = (hltdc->Init.TotalWidth << 16U);
8003fb0: 687b ldr r3, [r7, #4]
8003fb2: 6adb ldr r3, [r3, #44] @ 0x2c
8003fb4: 041b lsls r3, r3, #16
8003fb6: 60fb str r3, [r7, #12]
WRITE_REG(hltdc->Instance->TWCR, (tmp | hltdc->Init.TotalHeigh));
8003fb8: 687b ldr r3, [r7, #4]
8003fba: 6b19 ldr r1, [r3, #48] @ 0x30
8003fbc: 687b ldr r3, [r7, #4]
8003fbe: 681b ldr r3, [r3, #0]
8003fc0: 68fa ldr r2, [r7, #12]
8003fc2: 430a orrs r2, r1
8003fc4: 615a str r2, [r3, #20]
/* Set the background color value */
tmp = ((uint32_t)(hltdc->Init.Backcolor.Green) << 8U);
8003fc6: 687b ldr r3, [r7, #4]
8003fc8: f893 3035 ldrb.w r3, [r3, #53] @ 0x35
8003fcc: 021b lsls r3, r3, #8
8003fce: 60fb str r3, [r7, #12]
tmp1 = ((uint32_t)(hltdc->Init.Backcolor.Red) << 16U);
8003fd0: 687b ldr r3, [r7, #4]
8003fd2: f893 3036 ldrb.w r3, [r3, #54] @ 0x36
8003fd6: 041b lsls r3, r3, #16
8003fd8: 60bb str r3, [r7, #8]
hltdc->Instance->BCCR &= ~(LTDC_BCCR_BCBLUE | LTDC_BCCR_BCGREEN | LTDC_BCCR_BCRED);
8003fda: 687b ldr r3, [r7, #4]
8003fdc: 681b ldr r3, [r3, #0]
8003fde: 6ada ldr r2, [r3, #44] @ 0x2c
8003fe0: 687b ldr r3, [r7, #4]
8003fe2: 681b ldr r3, [r3, #0]
8003fe4: f002 427f and.w r2, r2, #4278190080 @ 0xff000000
8003fe8: 62da str r2, [r3, #44] @ 0x2c
hltdc->Instance->BCCR |= (tmp1 | tmp | hltdc->Init.Backcolor.Blue);
8003fea: 687b ldr r3, [r7, #4]
8003fec: 681b ldr r3, [r3, #0]
8003fee: 6ad9 ldr r1, [r3, #44] @ 0x2c
8003ff0: 68ba ldr r2, [r7, #8]
8003ff2: 68fb ldr r3, [r7, #12]
8003ff4: 4313 orrs r3, r2
8003ff6: 687a ldr r2, [r7, #4]
8003ff8: f892 2034 ldrb.w r2, [r2, #52] @ 0x34
8003ffc: 431a orrs r2, r3
8003ffe: 687b ldr r3, [r7, #4]
8004000: 681b ldr r3, [r3, #0]
8004002: 430a orrs r2, r1
8004004: 62da str r2, [r3, #44] @ 0x2c
/* Enable the Transfer Error and FIFO underrun interrupts */
__HAL_LTDC_ENABLE_IT(hltdc, LTDC_IT_TE | LTDC_IT_FU);
8004006: 687b ldr r3, [r7, #4]
8004008: 681b ldr r3, [r3, #0]
800400a: 6b5a ldr r2, [r3, #52] @ 0x34
800400c: 687b ldr r3, [r7, #4]
800400e: 681b ldr r3, [r3, #0]
8004010: f042 0206 orr.w r2, r2, #6
8004014: 635a str r2, [r3, #52] @ 0x34
/* Enable LTDC by setting LTDCEN bit */
__HAL_LTDC_ENABLE(hltdc);
8004016: 687b ldr r3, [r7, #4]
8004018: 681b ldr r3, [r3, #0]
800401a: 699a ldr r2, [r3, #24]
800401c: 687b ldr r3, [r7, #4]
800401e: 681b ldr r3, [r3, #0]
8004020: f042 0201 orr.w r2, r2, #1
8004024: 619a str r2, [r3, #24]
/* Initialize the error code */
hltdc->ErrorCode = HAL_LTDC_ERROR_NONE;
8004026: 687b ldr r3, [r7, #4]
8004028: 2200 movs r2, #0
800402a: f8c3 20a4 str.w r2, [r3, #164] @ 0xa4
/* Initialize the LTDC state*/
hltdc->State = HAL_LTDC_STATE_READY;
800402e: 687b ldr r3, [r7, #4]
8004030: 2201 movs r2, #1
8004032: f883 20a1 strb.w r2, [r3, #161] @ 0xa1
return HAL_OK;
8004036: 2300 movs r3, #0
}
8004038: 4618 mov r0, r3
800403a: 3710 adds r7, #16
800403c: 46bd mov sp, r7
800403e: bd80 pop {r7, pc}
08004040 <HAL_LTDC_IRQHandler>:
* @param hltdc pointer to a LTDC_HandleTypeDef structure that contains
* the configuration information for the LTDC.
* @retval HAL status
*/
void HAL_LTDC_IRQHandler(LTDC_HandleTypeDef *hltdc)
{
8004040: b580 push {r7, lr}
8004042: b084 sub sp, #16
8004044: af00 add r7, sp, #0
8004046: 6078 str r0, [r7, #4]
uint32_t isrflags = READ_REG(hltdc->Instance->ISR);
8004048: 687b ldr r3, [r7, #4]
800404a: 681b ldr r3, [r3, #0]
800404c: 6b9b ldr r3, [r3, #56] @ 0x38
800404e: 60fb str r3, [r7, #12]
uint32_t itsources = READ_REG(hltdc->Instance->IER);
8004050: 687b ldr r3, [r7, #4]
8004052: 681b ldr r3, [r3, #0]
8004054: 6b5b ldr r3, [r3, #52] @ 0x34
8004056: 60bb str r3, [r7, #8]
/* Transfer Error Interrupt management ***************************************/
if (((isrflags & LTDC_ISR_TERRIF) != 0U) && ((itsources & LTDC_IER_TERRIE) != 0U))
8004058: 68fb ldr r3, [r7, #12]
800405a: f003 0304 and.w r3, r3, #4
800405e: 2b00 cmp r3, #0
8004060: d023 beq.n 80040aa <HAL_LTDC_IRQHandler+0x6a>
8004062: 68bb ldr r3, [r7, #8]
8004064: f003 0304 and.w r3, r3, #4
8004068: 2b00 cmp r3, #0
800406a: d01e beq.n 80040aa <HAL_LTDC_IRQHandler+0x6a>
{
/* Disable the transfer Error interrupt */
__HAL_LTDC_DISABLE_IT(hltdc, LTDC_IT_TE);
800406c: 687b ldr r3, [r7, #4]
800406e: 681b ldr r3, [r3, #0]
8004070: 6b5a ldr r2, [r3, #52] @ 0x34
8004072: 687b ldr r3, [r7, #4]
8004074: 681b ldr r3, [r3, #0]
8004076: f022 0204 bic.w r2, r2, #4
800407a: 635a str r2, [r3, #52] @ 0x34
/* Clear the transfer error flag */
__HAL_LTDC_CLEAR_FLAG(hltdc, LTDC_FLAG_TE);
800407c: 687b ldr r3, [r7, #4]
800407e: 681b ldr r3, [r3, #0]
8004080: 2204 movs r2, #4
8004082: 63da str r2, [r3, #60] @ 0x3c
/* Update error code */
hltdc->ErrorCode |= HAL_LTDC_ERROR_TE;
8004084: 687b ldr r3, [r7, #4]
8004086: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
800408a: f043 0201 orr.w r2, r3, #1
800408e: 687b ldr r3, [r7, #4]
8004090: f8c3 20a4 str.w r2, [r3, #164] @ 0xa4
/* Change LTDC state */
hltdc->State = HAL_LTDC_STATE_ERROR;
8004094: 687b ldr r3, [r7, #4]
8004096: 2204 movs r2, #4
8004098: f883 20a1 strb.w r2, [r3, #161] @ 0xa1
/* Process unlocked */
__HAL_UNLOCK(hltdc);
800409c: 687b ldr r3, [r7, #4]
800409e: 2200 movs r2, #0
80040a0: f883 20a0 strb.w r2, [r3, #160] @ 0xa0
#if (USE_HAL_LTDC_REGISTER_CALLBACKS == 1)
/*Call registered error callback*/
hltdc->ErrorCallback(hltdc);
#else
/* Call legacy error callback*/
HAL_LTDC_ErrorCallback(hltdc);
80040a4: 6878 ldr r0, [r7, #4]
80040a6: f000 f86f bl 8004188 <HAL_LTDC_ErrorCallback>
#endif /* USE_HAL_LTDC_REGISTER_CALLBACKS */
}
/* FIFO underrun Interrupt management ***************************************/
if (((isrflags & LTDC_ISR_FUIF) != 0U) && ((itsources & LTDC_IER_FUIE) != 0U))
80040aa: 68fb ldr r3, [r7, #12]
80040ac: f003 0302 and.w r3, r3, #2
80040b0: 2b00 cmp r3, #0
80040b2: d023 beq.n 80040fc <HAL_LTDC_IRQHandler+0xbc>
80040b4: 68bb ldr r3, [r7, #8]
80040b6: f003 0302 and.w r3, r3, #2
80040ba: 2b00 cmp r3, #0
80040bc: d01e beq.n 80040fc <HAL_LTDC_IRQHandler+0xbc>
{
/* Disable the FIFO underrun interrupt */
__HAL_LTDC_DISABLE_IT(hltdc, LTDC_IT_FU);
80040be: 687b ldr r3, [r7, #4]
80040c0: 681b ldr r3, [r3, #0]
80040c2: 6b5a ldr r2, [r3, #52] @ 0x34
80040c4: 687b ldr r3, [r7, #4]
80040c6: 681b ldr r3, [r3, #0]
80040c8: f022 0202 bic.w r2, r2, #2
80040cc: 635a str r2, [r3, #52] @ 0x34
/* Clear the FIFO underrun flag */
__HAL_LTDC_CLEAR_FLAG(hltdc, LTDC_FLAG_FU);
80040ce: 687b ldr r3, [r7, #4]
80040d0: 681b ldr r3, [r3, #0]
80040d2: 2202 movs r2, #2
80040d4: 63da str r2, [r3, #60] @ 0x3c
/* Update error code */
hltdc->ErrorCode |= HAL_LTDC_ERROR_FU;
80040d6: 687b ldr r3, [r7, #4]
80040d8: f8d3 30a4 ldr.w r3, [r3, #164] @ 0xa4
80040dc: f043 0202 orr.w r2, r3, #2
80040e0: 687b ldr r3, [r7, #4]
80040e2: f8c3 20a4 str.w r2, [r3, #164] @ 0xa4
/* Change LTDC state */
hltdc->State = HAL_LTDC_STATE_ERROR;
80040e6: 687b ldr r3, [r7, #4]
80040e8: 2204 movs r2, #4
80040ea: f883 20a1 strb.w r2, [r3, #161] @ 0xa1
/* Process unlocked */
__HAL_UNLOCK(hltdc);
80040ee: 687b ldr r3, [r7, #4]
80040f0: 2200 movs r2, #0
80040f2: f883 20a0 strb.w r2, [r3, #160] @ 0xa0
#if (USE_HAL_LTDC_REGISTER_CALLBACKS == 1)
/*Call registered error callback*/
hltdc->ErrorCallback(hltdc);
#else
/* Call legacy error callback*/
HAL_LTDC_ErrorCallback(hltdc);
80040f6: 6878 ldr r0, [r7, #4]
80040f8: f000 f846 bl 8004188 <HAL_LTDC_ErrorCallback>
#endif /* USE_HAL_LTDC_REGISTER_CALLBACKS */
}
/* Line Interrupt management ************************************************/
if (((isrflags & LTDC_ISR_LIF) != 0U) && ((itsources & LTDC_IER_LIE) != 0U))
80040fc: 68fb ldr r3, [r7, #12]
80040fe: f003 0301 and.w r3, r3, #1
8004102: 2b00 cmp r3, #0
8004104: d01b beq.n 800413e <HAL_LTDC_IRQHandler+0xfe>
8004106: 68bb ldr r3, [r7, #8]
8004108: f003 0301 and.w r3, r3, #1
800410c: 2b00 cmp r3, #0
800410e: d016 beq.n 800413e <HAL_LTDC_IRQHandler+0xfe>
{
/* Disable the Line interrupt */
__HAL_LTDC_DISABLE_IT(hltdc, LTDC_IT_LI);
8004110: 687b ldr r3, [r7, #4]
8004112: 681b ldr r3, [r3, #0]
8004114: 6b5a ldr r2, [r3, #52] @ 0x34
8004116: 687b ldr r3, [r7, #4]
8004118: 681b ldr r3, [r3, #0]
800411a: f022 0201 bic.w r2, r2, #1
800411e: 635a str r2, [r3, #52] @ 0x34
/* Clear the Line interrupt flag */
__HAL_LTDC_CLEAR_FLAG(hltdc, LTDC_FLAG_LI);
8004120: 687b ldr r3, [r7, #4]
8004122: 681b ldr r3, [r3, #0]
8004124: 2201 movs r2, #1
8004126: 63da str r2, [r3, #60] @ 0x3c
/* Change LTDC state */
hltdc->State = HAL_LTDC_STATE_READY;
8004128: 687b ldr r3, [r7, #4]
800412a: 2201 movs r2, #1
800412c: f883 20a1 strb.w r2, [r3, #161] @ 0xa1
/* Process unlocked */
__HAL_UNLOCK(hltdc);
8004130: 687b ldr r3, [r7, #4]
8004132: 2200 movs r2, #0
8004134: f883 20a0 strb.w r2, [r3, #160] @ 0xa0
#if (USE_HAL_LTDC_REGISTER_CALLBACKS == 1)
/*Call registered Line Event callback */
hltdc->LineEventCallback(hltdc);
#else
/*Call Legacy Line Event callback */
HAL_LTDC_LineEventCallback(hltdc);
8004138: 6878 ldr r0, [r7, #4]
800413a: f000 f82f bl 800419c <HAL_LTDC_LineEventCallback>
#endif /* USE_HAL_LTDC_REGISTER_CALLBACKS */
}
/* Register reload Interrupt management ***************************************/
if (((isrflags & LTDC_ISR_RRIF) != 0U) && ((itsources & LTDC_IER_RRIE) != 0U))
800413e: 68fb ldr r3, [r7, #12]
8004140: f003 0308 and.w r3, r3, #8
8004144: 2b00 cmp r3, #0
8004146: d01b beq.n 8004180 <HAL_LTDC_IRQHandler+0x140>
8004148: 68bb ldr r3, [r7, #8]
800414a: f003 0308 and.w r3, r3, #8
800414e: 2b00 cmp r3, #0
8004150: d016 beq.n 8004180 <HAL_LTDC_IRQHandler+0x140>
{
/* Disable the register reload interrupt */
__HAL_LTDC_DISABLE_IT(hltdc, LTDC_IT_RR);
8004152: 687b ldr r3, [r7, #4]
8004154: 681b ldr r3, [r3, #0]
8004156: 6b5a ldr r2, [r3, #52] @ 0x34
8004158: 687b ldr r3, [r7, #4]
800415a: 681b ldr r3, [r3, #0]
800415c: f022 0208 bic.w r2, r2, #8
8004160: 635a str r2, [r3, #52] @ 0x34
/* Clear the register reload flag */
__HAL_LTDC_CLEAR_FLAG(hltdc, LTDC_FLAG_RR);
8004162: 687b ldr r3, [r7, #4]
8004164: 681b ldr r3, [r3, #0]
8004166: 2208 movs r2, #8
8004168: 63da str r2, [r3, #60] @ 0x3c
/* Change LTDC state */
hltdc->State = HAL_LTDC_STATE_READY;
800416a: 687b ldr r3, [r7, #4]
800416c: 2201 movs r2, #1
800416e: f883 20a1 strb.w r2, [r3, #161] @ 0xa1
/* Process unlocked */
__HAL_UNLOCK(hltdc);
8004172: 687b ldr r3, [r7, #4]
8004174: 2200 movs r2, #0
8004176: f883 20a0 strb.w r2, [r3, #160] @ 0xa0
#if (USE_HAL_LTDC_REGISTER_CALLBACKS == 1)
/*Call registered reload Event callback */
hltdc->ReloadEventCallback(hltdc);
#else
/*Call Legacy Reload Event callback */
HAL_LTDC_ReloadEventCallback(hltdc);
800417a: 6878 ldr r0, [r7, #4]
800417c: f000 f818 bl 80041b0 <HAL_LTDC_ReloadEventCallback>
#endif /* USE_HAL_LTDC_REGISTER_CALLBACKS */
}
}
8004180: bf00 nop
8004182: 3710 adds r7, #16
8004184: 46bd mov sp, r7
8004186: bd80 pop {r7, pc}
08004188 <HAL_LTDC_ErrorCallback>:
* @param hltdc pointer to a LTDC_HandleTypeDef structure that contains
* the configuration information for the LTDC.
* @retval None
*/
__weak void HAL_LTDC_ErrorCallback(LTDC_HandleTypeDef *hltdc)
{
8004188: b480 push {r7}
800418a: b083 sub sp, #12
800418c: af00 add r7, sp, #0
800418e: 6078 str r0, [r7, #4]
UNUSED(hltdc);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_LTDC_ErrorCallback could be implemented in the user file
*/
}
8004190: bf00 nop
8004192: 370c adds r7, #12
8004194: 46bd mov sp, r7
8004196: f85d 7b04 ldr.w r7, [sp], #4
800419a: 4770 bx lr
0800419c <HAL_LTDC_LineEventCallback>:
* @param hltdc pointer to a LTDC_HandleTypeDef structure that contains
* the configuration information for the LTDC.
* @retval None
*/
__weak void HAL_LTDC_LineEventCallback(LTDC_HandleTypeDef *hltdc)
{
800419c: b480 push {r7}
800419e: b083 sub sp, #12
80041a0: af00 add r7, sp, #0
80041a2: 6078 str r0, [r7, #4]
UNUSED(hltdc);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_LTDC_LineEventCallback could be implemented in the user file
*/
}
80041a4: bf00 nop
80041a6: 370c adds r7, #12
80041a8: 46bd mov sp, r7
80041aa: f85d 7b04 ldr.w r7, [sp], #4
80041ae: 4770 bx lr
080041b0 <HAL_LTDC_ReloadEventCallback>:
* @param hltdc pointer to a LTDC_HandleTypeDef structure that contains
* the configuration information for the LTDC.
* @retval None
*/
__weak void HAL_LTDC_ReloadEventCallback(LTDC_HandleTypeDef *hltdc)
{
80041b0: b480 push {r7}
80041b2: b083 sub sp, #12
80041b4: af00 add r7, sp, #0
80041b6: 6078 str r0, [r7, #4]
UNUSED(hltdc);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_LTDC_ReloadEvenCallback could be implemented in the user file
*/
}
80041b8: bf00 nop
80041ba: 370c adds r7, #12
80041bc: 46bd mov sp, r7
80041be: f85d 7b04 ldr.w r7, [sp], #4
80041c2: 4770 bx lr
080041c4 <HAL_LTDC_ConfigLayer>:
* This parameter can be one of the following values:
* LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
* @retval HAL status
*/
HAL_StatusTypeDef HAL_LTDC_ConfigLayer(LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg, uint32_t LayerIdx)
{
80041c4: b5b0 push {r4, r5, r7, lr}
80041c6: b084 sub sp, #16
80041c8: af00 add r7, sp, #0
80041ca: 60f8 str r0, [r7, #12]
80041cc: 60b9 str r1, [r7, #8]
80041ce: 607a str r2, [r7, #4]
assert_param(IS_LTDC_BLENDING_FACTOR2(pLayerCfg->BlendingFactor2));
assert_param(IS_LTDC_CFBLL(pLayerCfg->ImageWidth));
assert_param(IS_LTDC_CFBLNBR(pLayerCfg->ImageHeight));
/* Process locked */
__HAL_LOCK(hltdc);
80041d0: 68fb ldr r3, [r7, #12]
80041d2: f893 30a0 ldrb.w r3, [r3, #160] @ 0xa0
80041d6: 2b01 cmp r3, #1
80041d8: d101 bne.n 80041de <HAL_LTDC_ConfigLayer+0x1a>
80041da: 2302 movs r3, #2
80041dc: e02c b.n 8004238 <HAL_LTDC_ConfigLayer+0x74>
80041de: 68fb ldr r3, [r7, #12]
80041e0: 2201 movs r2, #1
80041e2: f883 20a0 strb.w r2, [r3, #160] @ 0xa0
/* Change LTDC peripheral state */
hltdc->State = HAL_LTDC_STATE_BUSY;
80041e6: 68fb ldr r3, [r7, #12]
80041e8: 2202 movs r2, #2
80041ea: f883 20a1 strb.w r2, [r3, #161] @ 0xa1
/* Copy new layer configuration into handle structure */
hltdc->LayerCfg[LayerIdx] = *pLayerCfg;
80041ee: 68fa ldr r2, [r7, #12]
80041f0: 687b ldr r3, [r7, #4]
80041f2: 2134 movs r1, #52 @ 0x34
80041f4: fb01 f303 mul.w r3, r1, r3
80041f8: 4413 add r3, r2
80041fa: f103 0238 add.w r2, r3, #56 @ 0x38
80041fe: 68bb ldr r3, [r7, #8]
8004200: 4614 mov r4, r2
8004202: 461d mov r5, r3
8004204: cd0f ldmia r5!, {r0, r1, r2, r3}
8004206: c40f stmia r4!, {r0, r1, r2, r3}
8004208: cd0f ldmia r5!, {r0, r1, r2, r3}
800420a: c40f stmia r4!, {r0, r1, r2, r3}
800420c: cd0f ldmia r5!, {r0, r1, r2, r3}
800420e: c40f stmia r4!, {r0, r1, r2, r3}
8004210: 682b ldr r3, [r5, #0]
8004212: 6023 str r3, [r4, #0]
/* Configure the LTDC Layer */
LTDC_SetConfig(hltdc, pLayerCfg, LayerIdx);
8004214: 687a ldr r2, [r7, #4]
8004216: 68b9 ldr r1, [r7, #8]
8004218: 68f8 ldr r0, [r7, #12]
800421a: f000 f811 bl 8004240 <LTDC_SetConfig>
/* Set the Immediate Reload type */
hltdc->Instance->SRCR = LTDC_SRCR_IMR;
800421e: 68fb ldr r3, [r7, #12]
8004220: 681b ldr r3, [r3, #0]
8004222: 2201 movs r2, #1
8004224: 625a str r2, [r3, #36] @ 0x24
/* Initialize the LTDC state*/
hltdc->State = HAL_LTDC_STATE_READY;
8004226: 68fb ldr r3, [r7, #12]
8004228: 2201 movs r2, #1
800422a: f883 20a1 strb.w r2, [r3, #161] @ 0xa1
/* Process unlocked */
__HAL_UNLOCK(hltdc);
800422e: 68fb ldr r3, [r7, #12]
8004230: 2200 movs r2, #0
8004232: f883 20a0 strb.w r2, [r3, #160] @ 0xa0
return HAL_OK;
8004236: 2300 movs r3, #0
}
8004238: 4618 mov r0, r3
800423a: 3710 adds r7, #16
800423c: 46bd mov sp, r7
800423e: bdb0 pop {r4, r5, r7, pc}
08004240 <LTDC_SetConfig>:
* @param LayerIdx LTDC Layer index.
* This parameter can be one of the following values: LTDC_LAYER_1 (0) or LTDC_LAYER_2 (1)
* @retval None
*/
static void LTDC_SetConfig(LTDC_HandleTypeDef *hltdc, LTDC_LayerCfgTypeDef *pLayerCfg, uint32_t LayerIdx)
{
8004240: b480 push {r7}
8004242: b089 sub sp, #36 @ 0x24
8004244: af00 add r7, sp, #0
8004246: 60f8 str r0, [r7, #12]
8004248: 60b9 str r1, [r7, #8]
800424a: 607a str r2, [r7, #4]
uint32_t tmp;
uint32_t tmp1;
uint32_t tmp2;
/* Configure the horizontal start and stop position */
tmp = ((pLayerCfg->WindowX1 + ((hltdc->Instance->BPCR & LTDC_BPCR_AHBP) >> 16U)) << 16U);
800424c: 68bb ldr r3, [r7, #8]
800424e: 685a ldr r2, [r3, #4]
8004250: 68fb ldr r3, [r7, #12]
8004252: 681b ldr r3, [r3, #0]
8004254: 68db ldr r3, [r3, #12]
8004256: 0c1b lsrs r3, r3, #16
8004258: f3c3 030b ubfx r3, r3, #0, #12
800425c: 4413 add r3, r2
800425e: 041b lsls r3, r3, #16
8004260: 61fb str r3, [r7, #28]
LTDC_LAYER(hltdc, LayerIdx)->WHPCR &= ~(LTDC_LxWHPCR_WHSTPOS | LTDC_LxWHPCR_WHSPPOS);
8004262: 68fb ldr r3, [r7, #12]
8004264: 681b ldr r3, [r3, #0]
8004266: 461a mov r2, r3
8004268: 687b ldr r3, [r7, #4]
800426a: 01db lsls r3, r3, #7
800426c: 4413 add r3, r2
800426e: 3384 adds r3, #132 @ 0x84
8004270: 685b ldr r3, [r3, #4]
8004272: 68fa ldr r2, [r7, #12]
8004274: 6812 ldr r2, [r2, #0]
8004276: 4611 mov r1, r2
8004278: 687a ldr r2, [r7, #4]
800427a: 01d2 lsls r2, r2, #7
800427c: 440a add r2, r1
800427e: 3284 adds r2, #132 @ 0x84
8004280: f403 4370 and.w r3, r3, #61440 @ 0xf000
8004284: 6053 str r3, [r2, #4]
LTDC_LAYER(hltdc, LayerIdx)->WHPCR = ((pLayerCfg->WindowX0 + \
8004286: 68bb ldr r3, [r7, #8]
8004288: 681a ldr r2, [r3, #0]
((hltdc->Instance->BPCR & LTDC_BPCR_AHBP) >> 16U) + 1U) | tmp);
800428a: 68fb ldr r3, [r7, #12]
800428c: 681b ldr r3, [r3, #0]
800428e: 68db ldr r3, [r3, #12]
8004290: 0c1b lsrs r3, r3, #16
8004292: f3c3 030b ubfx r3, r3, #0, #12
LTDC_LAYER(hltdc, LayerIdx)->WHPCR = ((pLayerCfg->WindowX0 + \
8004296: 4413 add r3, r2
((hltdc->Instance->BPCR & LTDC_BPCR_AHBP) >> 16U) + 1U) | tmp);
8004298: 1c5a adds r2, r3, #1
LTDC_LAYER(hltdc, LayerIdx)->WHPCR = ((pLayerCfg->WindowX0 + \
800429a: 68fb ldr r3, [r7, #12]
800429c: 681b ldr r3, [r3, #0]
800429e: 4619 mov r1, r3
80042a0: 687b ldr r3, [r7, #4]
80042a2: 01db lsls r3, r3, #7
80042a4: 440b add r3, r1
80042a6: 3384 adds r3, #132 @ 0x84
80042a8: 4619 mov r1, r3
((hltdc->Instance->BPCR & LTDC_BPCR_AHBP) >> 16U) + 1U) | tmp);
80042aa: 69fb ldr r3, [r7, #28]
80042ac: 4313 orrs r3, r2
LTDC_LAYER(hltdc, LayerIdx)->WHPCR = ((pLayerCfg->WindowX0 + \
80042ae: 604b str r3, [r1, #4]
/* Configure the vertical start and stop position */
tmp = ((pLayerCfg->WindowY1 + (hltdc->Instance->BPCR & LTDC_BPCR_AVBP)) << 16U);
80042b0: 68bb ldr r3, [r7, #8]
80042b2: 68da ldr r2, [r3, #12]
80042b4: 68fb ldr r3, [r7, #12]
80042b6: 681b ldr r3, [r3, #0]
80042b8: 68db ldr r3, [r3, #12]
80042ba: f3c3 030a ubfx r3, r3, #0, #11
80042be: 4413 add r3, r2
80042c0: 041b lsls r3, r3, #16
80042c2: 61fb str r3, [r7, #28]
LTDC_LAYER(hltdc, LayerIdx)->WVPCR &= ~(LTDC_LxWVPCR_WVSTPOS | LTDC_LxWVPCR_WVSPPOS);
80042c4: 68fb ldr r3, [r7, #12]
80042c6: 681b ldr r3, [r3, #0]
80042c8: 461a mov r2, r3
80042ca: 687b ldr r3, [r7, #4]
80042cc: 01db lsls r3, r3, #7
80042ce: 4413 add r3, r2
80042d0: 3384 adds r3, #132 @ 0x84
80042d2: 689b ldr r3, [r3, #8]
80042d4: 68fa ldr r2, [r7, #12]
80042d6: 6812 ldr r2, [r2, #0]
80042d8: 4611 mov r1, r2
80042da: 687a ldr r2, [r7, #4]
80042dc: 01d2 lsls r2, r2, #7
80042de: 440a add r2, r1
80042e0: 3284 adds r2, #132 @ 0x84
80042e2: f403 4370 and.w r3, r3, #61440 @ 0xf000
80042e6: 6093 str r3, [r2, #8]
LTDC_LAYER(hltdc, LayerIdx)->WVPCR = ((pLayerCfg->WindowY0 + (hltdc->Instance->BPCR & LTDC_BPCR_AVBP) + 1U) | tmp);
80042e8: 68bb ldr r3, [r7, #8]
80042ea: 689a ldr r2, [r3, #8]
80042ec: 68fb ldr r3, [r7, #12]
80042ee: 681b ldr r3, [r3, #0]
80042f0: 68db ldr r3, [r3, #12]
80042f2: f3c3 030a ubfx r3, r3, #0, #11
80042f6: 4413 add r3, r2
80042f8: 1c5a adds r2, r3, #1
80042fa: 68fb ldr r3, [r7, #12]
80042fc: 681b ldr r3, [r3, #0]
80042fe: 4619 mov r1, r3
8004300: 687b ldr r3, [r7, #4]
8004302: 01db lsls r3, r3, #7
8004304: 440b add r3, r1
8004306: 3384 adds r3, #132 @ 0x84
8004308: 4619 mov r1, r3
800430a: 69fb ldr r3, [r7, #28]
800430c: 4313 orrs r3, r2
800430e: 608b str r3, [r1, #8]
/* Specifies the pixel format */
LTDC_LAYER(hltdc, LayerIdx)->PFCR &= ~(LTDC_LxPFCR_PF);
8004310: 68fb ldr r3, [r7, #12]
8004312: 681b ldr r3, [r3, #0]
8004314: 461a mov r2, r3
8004316: 687b ldr r3, [r7, #4]
8004318: 01db lsls r3, r3, #7
800431a: 4413 add r3, r2
800431c: 3384 adds r3, #132 @ 0x84
800431e: 691b ldr r3, [r3, #16]
8004320: 68fa ldr r2, [r7, #12]
8004322: 6812 ldr r2, [r2, #0]
8004324: 4611 mov r1, r2
8004326: 687a ldr r2, [r7, #4]
8004328: 01d2 lsls r2, r2, #7
800432a: 440a add r2, r1
800432c: 3284 adds r2, #132 @ 0x84
800432e: f023 0307 bic.w r3, r3, #7
8004332: 6113 str r3, [r2, #16]
LTDC_LAYER(hltdc, LayerIdx)->PFCR = (pLayerCfg->PixelFormat);
8004334: 68fb ldr r3, [r7, #12]
8004336: 681b ldr r3, [r3, #0]
8004338: 461a mov r2, r3
800433a: 687b ldr r3, [r7, #4]
800433c: 01db lsls r3, r3, #7
800433e: 4413 add r3, r2
8004340: 3384 adds r3, #132 @ 0x84
8004342: 461a mov r2, r3
8004344: 68bb ldr r3, [r7, #8]
8004346: 691b ldr r3, [r3, #16]
8004348: 6113 str r3, [r2, #16]
/* Configure the default color values */
tmp = ((uint32_t)(pLayerCfg->Backcolor.Green) << 8U);
800434a: 68bb ldr r3, [r7, #8]
800434c: f893 3031 ldrb.w r3, [r3, #49] @ 0x31
8004350: 021b lsls r3, r3, #8
8004352: 61fb str r3, [r7, #28]
tmp1 = ((uint32_t)(pLayerCfg->Backcolor.Red) << 16U);
8004354: 68bb ldr r3, [r7, #8]
8004356: f893 3032 ldrb.w r3, [r3, #50] @ 0x32
800435a: 041b lsls r3, r3, #16
800435c: 61bb str r3, [r7, #24]
tmp2 = (pLayerCfg->Alpha0 << 24U);
800435e: 68bb ldr r3, [r7, #8]
8004360: 699b ldr r3, [r3, #24]
8004362: 061b lsls r3, r3, #24
8004364: 617b str r3, [r7, #20]
WRITE_REG(LTDC_LAYER(hltdc, LayerIdx)->DCCR, (pLayerCfg->Backcolor.Blue | tmp | tmp1 | tmp2));
8004366: 68bb ldr r3, [r7, #8]
8004368: f893 3030 ldrb.w r3, [r3, #48] @ 0x30
800436c: 461a mov r2, r3
800436e: 69fb ldr r3, [r7, #28]
8004370: 431a orrs r2, r3
8004372: 69bb ldr r3, [r7, #24]
8004374: 431a orrs r2, r3
8004376: 68fb ldr r3, [r7, #12]
8004378: 681b ldr r3, [r3, #0]
800437a: 4619 mov r1, r3
800437c: 687b ldr r3, [r7, #4]
800437e: 01db lsls r3, r3, #7
8004380: 440b add r3, r1
8004382: 3384 adds r3, #132 @ 0x84
8004384: 4619 mov r1, r3
8004386: 697b ldr r3, [r7, #20]
8004388: 4313 orrs r3, r2
800438a: 618b str r3, [r1, #24]
/* Specifies the constant alpha value */
LTDC_LAYER(hltdc, LayerIdx)->CACR &= ~(LTDC_LxCACR_CONSTA);
800438c: 68fb ldr r3, [r7, #12]
800438e: 681b ldr r3, [r3, #0]
8004390: 461a mov r2, r3
8004392: 687b ldr r3, [r7, #4]
8004394: 01db lsls r3, r3, #7
8004396: 4413 add r3, r2
8004398: 3384 adds r3, #132 @ 0x84
800439a: 695b ldr r3, [r3, #20]
800439c: 68fa ldr r2, [r7, #12]
800439e: 6812 ldr r2, [r2, #0]
80043a0: 4611 mov r1, r2
80043a2: 687a ldr r2, [r7, #4]
80043a4: 01d2 lsls r2, r2, #7
80043a6: 440a add r2, r1
80043a8: 3284 adds r2, #132 @ 0x84
80043aa: f023 03ff bic.w r3, r3, #255 @ 0xff
80043ae: 6153 str r3, [r2, #20]
LTDC_LAYER(hltdc, LayerIdx)->CACR = (pLayerCfg->Alpha);
80043b0: 68fb ldr r3, [r7, #12]
80043b2: 681b ldr r3, [r3, #0]
80043b4: 461a mov r2, r3
80043b6: 687b ldr r3, [r7, #4]
80043b8: 01db lsls r3, r3, #7
80043ba: 4413 add r3, r2
80043bc: 3384 adds r3, #132 @ 0x84
80043be: 461a mov r2, r3
80043c0: 68bb ldr r3, [r7, #8]
80043c2: 695b ldr r3, [r3, #20]
80043c4: 6153 str r3, [r2, #20]
/* Specifies the blending factors */
LTDC_LAYER(hltdc, LayerIdx)->BFCR &= ~(LTDC_LxBFCR_BF2 | LTDC_LxBFCR_BF1);
80043c6: 68fb ldr r3, [r7, #12]
80043c8: 681b ldr r3, [r3, #0]
80043ca: 461a mov r2, r3
80043cc: 687b ldr r3, [r7, #4]
80043ce: 01db lsls r3, r3, #7
80043d0: 4413 add r3, r2
80043d2: 3384 adds r3, #132 @ 0x84
80043d4: 69db ldr r3, [r3, #28]
80043d6: 68fa ldr r2, [r7, #12]
80043d8: 6812 ldr r2, [r2, #0]
80043da: 4611 mov r1, r2
80043dc: 687a ldr r2, [r7, #4]
80043de: 01d2 lsls r2, r2, #7
80043e0: 440a add r2, r1
80043e2: 3284 adds r2, #132 @ 0x84
80043e4: f423 63e0 bic.w r3, r3, #1792 @ 0x700
80043e8: f023 0307 bic.w r3, r3, #7
80043ec: 61d3 str r3, [r2, #28]
LTDC_LAYER(hltdc, LayerIdx)->BFCR = (pLayerCfg->BlendingFactor1 | pLayerCfg->BlendingFactor2);
80043ee: 68bb ldr r3, [r7, #8]
80043f0: 69da ldr r2, [r3, #28]
80043f2: 68bb ldr r3, [r7, #8]
80043f4: 6a1b ldr r3, [r3, #32]
80043f6: 68f9 ldr r1, [r7, #12]
80043f8: 6809 ldr r1, [r1, #0]
80043fa: 4608 mov r0, r1
80043fc: 6879 ldr r1, [r7, #4]
80043fe: 01c9 lsls r1, r1, #7
8004400: 4401 add r1, r0
8004402: 3184 adds r1, #132 @ 0x84
8004404: 4313 orrs r3, r2
8004406: 61cb str r3, [r1, #28]
/* Configure the color frame buffer start address */
WRITE_REG(LTDC_LAYER(hltdc, LayerIdx)->CFBAR, pLayerCfg->FBStartAdress);
8004408: 68fb ldr r3, [r7, #12]
800440a: 681b ldr r3, [r3, #0]
800440c: 461a mov r2, r3
800440e: 687b ldr r3, [r7, #4]
8004410: 01db lsls r3, r3, #7
8004412: 4413 add r3, r2
8004414: 3384 adds r3, #132 @ 0x84
8004416: 461a mov r2, r3
8004418: 68bb ldr r3, [r7, #8]
800441a: 6a5b ldr r3, [r3, #36] @ 0x24
800441c: 6293 str r3, [r2, #40] @ 0x28
if (pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_ARGB8888)
800441e: 68bb ldr r3, [r7, #8]
8004420: 691b ldr r3, [r3, #16]
8004422: 2b00 cmp r3, #0
8004424: d102 bne.n 800442c <LTDC_SetConfig+0x1ec>
{
tmp = 4U;
8004426: 2304 movs r3, #4
8004428: 61fb str r3, [r7, #28]
800442a: e01b b.n 8004464 <LTDC_SetConfig+0x224>
}
else if (pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_RGB888)
800442c: 68bb ldr r3, [r7, #8]
800442e: 691b ldr r3, [r3, #16]
8004430: 2b01 cmp r3, #1
8004432: d102 bne.n 800443a <LTDC_SetConfig+0x1fa>
{
tmp = 3U;
8004434: 2303 movs r3, #3
8004436: 61fb str r3, [r7, #28]
8004438: e014 b.n 8004464 <LTDC_SetConfig+0x224>
}
else if ((pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_ARGB4444) || \
800443a: 68bb ldr r3, [r7, #8]
800443c: 691b ldr r3, [r3, #16]
800443e: 2b04 cmp r3, #4
8004440: d00b beq.n 800445a <LTDC_SetConfig+0x21a>
(pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_RGB565) || \
8004442: 68bb ldr r3, [r7, #8]
8004444: 691b ldr r3, [r3, #16]
else if ((pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_ARGB4444) || \
8004446: 2b02 cmp r3, #2
8004448: d007 beq.n 800445a <LTDC_SetConfig+0x21a>
(pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_ARGB1555) || \
800444a: 68bb ldr r3, [r7, #8]
800444c: 691b ldr r3, [r3, #16]
(pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_RGB565) || \
800444e: 2b03 cmp r3, #3
8004450: d003 beq.n 800445a <LTDC_SetConfig+0x21a>
(pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_AL88))
8004452: 68bb ldr r3, [r7, #8]
8004454: 691b ldr r3, [r3, #16]
(pLayerCfg->PixelFormat == LTDC_PIXEL_FORMAT_ARGB1555) || \
8004456: 2b07 cmp r3, #7
8004458: d102 bne.n 8004460 <LTDC_SetConfig+0x220>
{
tmp = 2U;
800445a: 2302 movs r3, #2
800445c: 61fb str r3, [r7, #28]
800445e: e001 b.n 8004464 <LTDC_SetConfig+0x224>
}
else
{
tmp = 1U;
8004460: 2301 movs r3, #1
8004462: 61fb str r3, [r7, #28]
}
/* Configure the color frame buffer pitch in byte */
LTDC_LAYER(hltdc, LayerIdx)->CFBLR &= ~(LTDC_LxCFBLR_CFBLL | LTDC_LxCFBLR_CFBP);
8004464: 68fb ldr r3, [r7, #12]
8004466: 681b ldr r3, [r3, #0]
8004468: 461a mov r2, r3
800446a: 687b ldr r3, [r7, #4]
800446c: 01db lsls r3, r3, #7
800446e: 4413 add r3, r2
8004470: 3384 adds r3, #132 @ 0x84
8004472: 6adb ldr r3, [r3, #44] @ 0x2c
8004474: 68fa ldr r2, [r7, #12]
8004476: 6812 ldr r2, [r2, #0]
8004478: 4611 mov r1, r2
800447a: 687a ldr r2, [r7, #4]
800447c: 01d2 lsls r2, r2, #7
800447e: 440a add r2, r1
8004480: 3284 adds r2, #132 @ 0x84
8004482: f003 23e0 and.w r3, r3, #3758153728 @ 0xe000e000
8004486: 62d3 str r3, [r2, #44] @ 0x2c
LTDC_LAYER(hltdc, LayerIdx)->CFBLR = (((pLayerCfg->ImageWidth * tmp) << 16U) | \
8004488: 68bb ldr r3, [r7, #8]
800448a: 6a9b ldr r3, [r3, #40] @ 0x28
800448c: 69fa ldr r2, [r7, #28]
800448e: fb02 f303 mul.w r3, r2, r3
8004492: 041a lsls r2, r3, #16
(((pLayerCfg->WindowX1 - pLayerCfg->WindowX0) * tmp) + 3U));
8004494: 68bb ldr r3, [r7, #8]
8004496: 6859 ldr r1, [r3, #4]
8004498: 68bb ldr r3, [r7, #8]
800449a: 681b ldr r3, [r3, #0]
800449c: 1acb subs r3, r1, r3
800449e: 69f9 ldr r1, [r7, #28]
80044a0: fb01 f303 mul.w r3, r1, r3
80044a4: 3303 adds r3, #3
LTDC_LAYER(hltdc, LayerIdx)->CFBLR = (((pLayerCfg->ImageWidth * tmp) << 16U) | \
80044a6: 68f9 ldr r1, [r7, #12]
80044a8: 6809 ldr r1, [r1, #0]
80044aa: 4608 mov r0, r1
80044ac: 6879 ldr r1, [r7, #4]
80044ae: 01c9 lsls r1, r1, #7
80044b0: 4401 add r1, r0
80044b2: 3184 adds r1, #132 @ 0x84
80044b4: 4313 orrs r3, r2
80044b6: 62cb str r3, [r1, #44] @ 0x2c
/* Configure the frame buffer line number */
LTDC_LAYER(hltdc, LayerIdx)->CFBLNR &= ~(LTDC_LxCFBLNR_CFBLNBR);
80044b8: 68fb ldr r3, [r7, #12]
80044ba: 681b ldr r3, [r3, #0]
80044bc: 461a mov r2, r3
80044be: 687b ldr r3, [r7, #4]
80044c0: 01db lsls r3, r3, #7
80044c2: 4413 add r3, r2
80044c4: 3384 adds r3, #132 @ 0x84
80044c6: 6b1b ldr r3, [r3, #48] @ 0x30
80044c8: 68fa ldr r2, [r7, #12]
80044ca: 6812 ldr r2, [r2, #0]
80044cc: 4611 mov r1, r2
80044ce: 687a ldr r2, [r7, #4]
80044d0: 01d2 lsls r2, r2, #7
80044d2: 440a add r2, r1
80044d4: 3284 adds r2, #132 @ 0x84
80044d6: f423 63ff bic.w r3, r3, #2040 @ 0x7f8
80044da: f023 0307 bic.w r3, r3, #7
80044de: 6313 str r3, [r2, #48] @ 0x30
LTDC_LAYER(hltdc, LayerIdx)->CFBLNR = (pLayerCfg->ImageHeight);
80044e0: 68fb ldr r3, [r7, #12]
80044e2: 681b ldr r3, [r3, #0]
80044e4: 461a mov r2, r3
80044e6: 687b ldr r3, [r7, #4]
80044e8: 01db lsls r3, r3, #7
80044ea: 4413 add r3, r2
80044ec: 3384 adds r3, #132 @ 0x84
80044ee: 461a mov r2, r3
80044f0: 68bb ldr r3, [r7, #8]
80044f2: 6adb ldr r3, [r3, #44] @ 0x2c
80044f4: 6313 str r3, [r2, #48] @ 0x30
/* Enable LTDC_Layer by setting LEN bit */
LTDC_LAYER(hltdc, LayerIdx)->CR |= (uint32_t)LTDC_LxCR_LEN;
80044f6: 68fb ldr r3, [r7, #12]
80044f8: 681b ldr r3, [r3, #0]
80044fa: 461a mov r2, r3
80044fc: 687b ldr r3, [r7, #4]
80044fe: 01db lsls r3, r3, #7
8004500: 4413 add r3, r2
8004502: 3384 adds r3, #132 @ 0x84
8004504: 681b ldr r3, [r3, #0]
8004506: 68fa ldr r2, [r7, #12]
8004508: 6812 ldr r2, [r2, #0]
800450a: 4611 mov r1, r2
800450c: 687a ldr r2, [r7, #4]
800450e: 01d2 lsls r2, r2, #7
8004510: 440a add r2, r1
8004512: 3284 adds r2, #132 @ 0x84
8004514: f043 0301 orr.w r3, r3, #1
8004518: 6013 str r3, [r2, #0]
}
800451a: bf00 nop
800451c: 3724 adds r7, #36 @ 0x24
800451e: 46bd mov sp, r7
8004520: f85d 7b04 ldr.w r7, [sp], #4
8004524: 4770 bx lr
...
08004528 <HAL_RCC_OscConfig>:
* supported by this API. User should request a transition to HSE Off
* first and then HSE On or HSE Bypass.
* @retval HAL status
*/
__weak HAL_StatusTypeDef HAL_RCC_OscConfig(const RCC_OscInitTypeDef *RCC_OscInitStruct)
{
8004528: b580 push {r7, lr}
800452a: b086 sub sp, #24
800452c: af00 add r7, sp, #0
800452e: 6078 str r0, [r7, #4]
uint32_t tickstart;
uint32_t pll_config;
/* Check Null pointer */
if (RCC_OscInitStruct == NULL)
8004530: 687b ldr r3, [r7, #4]
8004532: 2b00 cmp r3, #0
8004534: d101 bne.n 800453a <HAL_RCC_OscConfig+0x12>
{
return HAL_ERROR;
8004536: 2301 movs r3, #1
8004538: e267 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
}
/* Check the parameters */
assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
/*------------------------------- HSE Configuration ------------------------*/
if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
800453a: 687b ldr r3, [r7, #4]
800453c: 681b ldr r3, [r3, #0]
800453e: f003 0301 and.w r3, r3, #1
8004542: 2b00 cmp r3, #0
8004544: d075 beq.n 8004632 <HAL_RCC_OscConfig+0x10a>
{
/* 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 ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) || \
8004546: 4b88 ldr r3, [pc, #544] @ (8004768 <HAL_RCC_OscConfig+0x240>)
8004548: 689b ldr r3, [r3, #8]
800454a: f003 030c and.w r3, r3, #12
800454e: 2b04 cmp r3, #4
8004550: d00c beq.n 800456c <HAL_RCC_OscConfig+0x44>
((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)))
8004552: 4b85 ldr r3, [pc, #532] @ (8004768 <HAL_RCC_OscConfig+0x240>)
8004554: 689b ldr r3, [r3, #8]
8004556: f003 030c and.w r3, r3, #12
if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSE) || \
800455a: 2b08 cmp r3, #8
800455c: d112 bne.n 8004584 <HAL_RCC_OscConfig+0x5c>
((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)))
800455e: 4b82 ldr r3, [pc, #520] @ (8004768 <HAL_RCC_OscConfig+0x240>)
8004560: 685b ldr r3, [r3, #4]
8004562: f403 0380 and.w r3, r3, #4194304 @ 0x400000
8004566: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
800456a: d10b bne.n 8004584 <HAL_RCC_OscConfig+0x5c>
{
if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
800456c: 4b7e ldr r3, [pc, #504] @ (8004768 <HAL_RCC_OscConfig+0x240>)
800456e: 681b ldr r3, [r3, #0]
8004570: f403 3300 and.w r3, r3, #131072 @ 0x20000
8004574: 2b00 cmp r3, #0
8004576: d05b beq.n 8004630 <HAL_RCC_OscConfig+0x108>
8004578: 687b ldr r3, [r7, #4]
800457a: 685b ldr r3, [r3, #4]
800457c: 2b00 cmp r3, #0
800457e: d157 bne.n 8004630 <HAL_RCC_OscConfig+0x108>
{
return HAL_ERROR;
8004580: 2301 movs r3, #1
8004582: e242 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
}
}
else
{
/* Set the new HSE configuration ---------------------------------------*/
__HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
8004584: 687b ldr r3, [r7, #4]
8004586: 685b ldr r3, [r3, #4]
8004588: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
800458c: d106 bne.n 800459c <HAL_RCC_OscConfig+0x74>
800458e: 4b76 ldr r3, [pc, #472] @ (8004768 <HAL_RCC_OscConfig+0x240>)
8004590: 681b ldr r3, [r3, #0]
8004592: 4a75 ldr r2, [pc, #468] @ (8004768 <HAL_RCC_OscConfig+0x240>)
8004594: f443 3380 orr.w r3, r3, #65536 @ 0x10000
8004598: 6013 str r3, [r2, #0]
800459a: e01d b.n 80045d8 <HAL_RCC_OscConfig+0xb0>
800459c: 687b ldr r3, [r7, #4]
800459e: 685b ldr r3, [r3, #4]
80045a0: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
80045a4: d10c bne.n 80045c0 <HAL_RCC_OscConfig+0x98>
80045a6: 4b70 ldr r3, [pc, #448] @ (8004768 <HAL_RCC_OscConfig+0x240>)
80045a8: 681b ldr r3, [r3, #0]
80045aa: 4a6f ldr r2, [pc, #444] @ (8004768 <HAL_RCC_OscConfig+0x240>)
80045ac: f443 2380 orr.w r3, r3, #262144 @ 0x40000
80045b0: 6013 str r3, [r2, #0]
80045b2: 4b6d ldr r3, [pc, #436] @ (8004768 <HAL_RCC_OscConfig+0x240>)
80045b4: 681b ldr r3, [r3, #0]
80045b6: 4a6c ldr r2, [pc, #432] @ (8004768 <HAL_RCC_OscConfig+0x240>)
80045b8: f443 3380 orr.w r3, r3, #65536 @ 0x10000
80045bc: 6013 str r3, [r2, #0]
80045be: e00b b.n 80045d8 <HAL_RCC_OscConfig+0xb0>
80045c0: 4b69 ldr r3, [pc, #420] @ (8004768 <HAL_RCC_OscConfig+0x240>)
80045c2: 681b ldr r3, [r3, #0]
80045c4: 4a68 ldr r2, [pc, #416] @ (8004768 <HAL_RCC_OscConfig+0x240>)
80045c6: f423 3380 bic.w r3, r3, #65536 @ 0x10000
80045ca: 6013 str r3, [r2, #0]
80045cc: 4b66 ldr r3, [pc, #408] @ (8004768 <HAL_RCC_OscConfig+0x240>)
80045ce: 681b ldr r3, [r3, #0]
80045d0: 4a65 ldr r2, [pc, #404] @ (8004768 <HAL_RCC_OscConfig+0x240>)
80045d2: f423 2380 bic.w r3, r3, #262144 @ 0x40000
80045d6: 6013 str r3, [r2, #0]
/* Check the HSE State */
if ((RCC_OscInitStruct->HSEState) != RCC_HSE_OFF)
80045d8: 687b ldr r3, [r7, #4]
80045da: 685b ldr r3, [r3, #4]
80045dc: 2b00 cmp r3, #0
80045de: d013 beq.n 8004608 <HAL_RCC_OscConfig+0xe0>
{
/* Get Start Tick */
tickstart = HAL_GetTick();
80045e0: f7fd f834 bl 800164c <HAL_GetTick>
80045e4: 6138 str r0, [r7, #16]
/* Wait till HSE is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
80045e6: e008 b.n 80045fa <HAL_RCC_OscConfig+0xd2>
{
if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
80045e8: f7fd f830 bl 800164c <HAL_GetTick>
80045ec: 4602 mov r2, r0
80045ee: 693b ldr r3, [r7, #16]
80045f0: 1ad3 subs r3, r2, r3
80045f2: 2b64 cmp r3, #100 @ 0x64
80045f4: d901 bls.n 80045fa <HAL_RCC_OscConfig+0xd2>
{
return HAL_TIMEOUT;
80045f6: 2303 movs r3, #3
80045f8: e207 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
80045fa: 4b5b ldr r3, [pc, #364] @ (8004768 <HAL_RCC_OscConfig+0x240>)
80045fc: 681b ldr r3, [r3, #0]
80045fe: f403 3300 and.w r3, r3, #131072 @ 0x20000
8004602: 2b00 cmp r3, #0
8004604: d0f0 beq.n 80045e8 <HAL_RCC_OscConfig+0xc0>
8004606: e014 b.n 8004632 <HAL_RCC_OscConfig+0x10a>
}
}
else
{
/* Get Start Tick */
tickstart = HAL_GetTick();
8004608: f7fd f820 bl 800164c <HAL_GetTick>
800460c: 6138 str r0, [r7, #16]
/* Wait till HSE is bypassed or disabled */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
800460e: e008 b.n 8004622 <HAL_RCC_OscConfig+0xfa>
{
if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
8004610: f7fd f81c bl 800164c <HAL_GetTick>
8004614: 4602 mov r2, r0
8004616: 693b ldr r3, [r7, #16]
8004618: 1ad3 subs r3, r2, r3
800461a: 2b64 cmp r3, #100 @ 0x64
800461c: d901 bls.n 8004622 <HAL_RCC_OscConfig+0xfa>
{
return HAL_TIMEOUT;
800461e: 2303 movs r3, #3
8004620: e1f3 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
8004622: 4b51 ldr r3, [pc, #324] @ (8004768 <HAL_RCC_OscConfig+0x240>)
8004624: 681b ldr r3, [r3, #0]
8004626: f403 3300 and.w r3, r3, #131072 @ 0x20000
800462a: 2b00 cmp r3, #0
800462c: d1f0 bne.n 8004610 <HAL_RCC_OscConfig+0xe8>
800462e: e000 b.n 8004632 <HAL_RCC_OscConfig+0x10a>
if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
8004630: bf00 nop
}
}
}
}
/*----------------------------- HSI Configuration --------------------------*/
if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
8004632: 687b ldr r3, [r7, #4]
8004634: 681b ldr r3, [r3, #0]
8004636: f003 0302 and.w r3, r3, #2
800463a: 2b00 cmp r3, #0
800463c: d063 beq.n 8004706 <HAL_RCC_OscConfig+0x1de>
/* Check the parameters */
assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
/* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */
if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) || \
800463e: 4b4a ldr r3, [pc, #296] @ (8004768 <HAL_RCC_OscConfig+0x240>)
8004640: 689b ldr r3, [r3, #8]
8004642: f003 030c and.w r3, r3, #12
8004646: 2b00 cmp r3, #0
8004648: d00b beq.n 8004662 <HAL_RCC_OscConfig+0x13a>
((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)))
800464a: 4b47 ldr r3, [pc, #284] @ (8004768 <HAL_RCC_OscConfig+0x240>)
800464c: 689b ldr r3, [r3, #8]
800464e: f003 030c and.w r3, r3, #12
if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_HSI) || \
8004652: 2b08 cmp r3, #8
8004654: d11c bne.n 8004690 <HAL_RCC_OscConfig+0x168>
((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_CFGR_SWS_PLL) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)))
8004656: 4b44 ldr r3, [pc, #272] @ (8004768 <HAL_RCC_OscConfig+0x240>)
8004658: 685b ldr r3, [r3, #4]
800465a: f403 0380 and.w r3, r3, #4194304 @ 0x400000
800465e: 2b00 cmp r3, #0
8004660: d116 bne.n 8004690 <HAL_RCC_OscConfig+0x168>
{
/* 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))
8004662: 4b41 ldr r3, [pc, #260] @ (8004768 <HAL_RCC_OscConfig+0x240>)
8004664: 681b ldr r3, [r3, #0]
8004666: f003 0302 and.w r3, r3, #2
800466a: 2b00 cmp r3, #0
800466c: d005 beq.n 800467a <HAL_RCC_OscConfig+0x152>
800466e: 687b ldr r3, [r7, #4]
8004670: 68db ldr r3, [r3, #12]
8004672: 2b01 cmp r3, #1
8004674: d001 beq.n 800467a <HAL_RCC_OscConfig+0x152>
{
return HAL_ERROR;
8004676: 2301 movs r3, #1
8004678: e1c7 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
}
/* Otherwise, just the calibration is allowed */
else
{
/* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
800467a: 4b3b ldr r3, [pc, #236] @ (8004768 <HAL_RCC_OscConfig+0x240>)
800467c: 681b ldr r3, [r3, #0]
800467e: f023 02f8 bic.w r2, r3, #248 @ 0xf8
8004682: 687b ldr r3, [r7, #4]
8004684: 691b ldr r3, [r3, #16]
8004686: 00db lsls r3, r3, #3
8004688: 4937 ldr r1, [pc, #220] @ (8004768 <HAL_RCC_OscConfig+0x240>)
800468a: 4313 orrs r3, r2
800468c: 600b str r3, [r1, #0]
if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
800468e: e03a b.n 8004706 <HAL_RCC_OscConfig+0x1de>
}
}
else
{
/* Check the HSI State */
if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
8004690: 687b ldr r3, [r7, #4]
8004692: 68db ldr r3, [r3, #12]
8004694: 2b00 cmp r3, #0
8004696: d020 beq.n 80046da <HAL_RCC_OscConfig+0x1b2>
{
/* Enable the Internal High Speed oscillator (HSI). */
__HAL_RCC_HSI_ENABLE();
8004698: 4b34 ldr r3, [pc, #208] @ (800476c <HAL_RCC_OscConfig+0x244>)
800469a: 2201 movs r2, #1
800469c: 601a str r2, [r3, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
800469e: f7fc ffd5 bl 800164c <HAL_GetTick>
80046a2: 6138 str r0, [r7, #16]
/* Wait till HSI is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
80046a4: e008 b.n 80046b8 <HAL_RCC_OscConfig+0x190>
{
if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
80046a6: f7fc ffd1 bl 800164c <HAL_GetTick>
80046aa: 4602 mov r2, r0
80046ac: 693b ldr r3, [r7, #16]
80046ae: 1ad3 subs r3, r2, r3
80046b0: 2b02 cmp r3, #2
80046b2: d901 bls.n 80046b8 <HAL_RCC_OscConfig+0x190>
{
return HAL_TIMEOUT;
80046b4: 2303 movs r3, #3
80046b6: e1a8 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
80046b8: 4b2b ldr r3, [pc, #172] @ (8004768 <HAL_RCC_OscConfig+0x240>)
80046ba: 681b ldr r3, [r3, #0]
80046bc: f003 0302 and.w r3, r3, #2
80046c0: 2b00 cmp r3, #0
80046c2: d0f0 beq.n 80046a6 <HAL_RCC_OscConfig+0x17e>
}
}
/* Adjusts the Internal High Speed oscillator (HSI) calibration value. */
__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
80046c4: 4b28 ldr r3, [pc, #160] @ (8004768 <HAL_RCC_OscConfig+0x240>)
80046c6: 681b ldr r3, [r3, #0]
80046c8: f023 02f8 bic.w r2, r3, #248 @ 0xf8
80046cc: 687b ldr r3, [r7, #4]
80046ce: 691b ldr r3, [r3, #16]
80046d0: 00db lsls r3, r3, #3
80046d2: 4925 ldr r1, [pc, #148] @ (8004768 <HAL_RCC_OscConfig+0x240>)
80046d4: 4313 orrs r3, r2
80046d6: 600b str r3, [r1, #0]
80046d8: e015 b.n 8004706 <HAL_RCC_OscConfig+0x1de>
}
else
{
/* Disable the Internal High Speed oscillator (HSI). */
__HAL_RCC_HSI_DISABLE();
80046da: 4b24 ldr r3, [pc, #144] @ (800476c <HAL_RCC_OscConfig+0x244>)
80046dc: 2200 movs r2, #0
80046de: 601a str r2, [r3, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
80046e0: f7fc ffb4 bl 800164c <HAL_GetTick>
80046e4: 6138 str r0, [r7, #16]
/* Wait till HSI is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
80046e6: e008 b.n 80046fa <HAL_RCC_OscConfig+0x1d2>
{
if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
80046e8: f7fc ffb0 bl 800164c <HAL_GetTick>
80046ec: 4602 mov r2, r0
80046ee: 693b ldr r3, [r7, #16]
80046f0: 1ad3 subs r3, r2, r3
80046f2: 2b02 cmp r3, #2
80046f4: d901 bls.n 80046fa <HAL_RCC_OscConfig+0x1d2>
{
return HAL_TIMEOUT;
80046f6: 2303 movs r3, #3
80046f8: e187 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
80046fa: 4b1b ldr r3, [pc, #108] @ (8004768 <HAL_RCC_OscConfig+0x240>)
80046fc: 681b ldr r3, [r3, #0]
80046fe: f003 0302 and.w r3, r3, #2
8004702: 2b00 cmp r3, #0
8004704: d1f0 bne.n 80046e8 <HAL_RCC_OscConfig+0x1c0>
}
}
}
}
/*------------------------------ LSI Configuration -------------------------*/
if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
8004706: 687b ldr r3, [r7, #4]
8004708: 681b ldr r3, [r3, #0]
800470a: f003 0308 and.w r3, r3, #8
800470e: 2b00 cmp r3, #0
8004710: d036 beq.n 8004780 <HAL_RCC_OscConfig+0x258>
{
/* Check the parameters */
assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
/* Check the LSI State */
if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
8004712: 687b ldr r3, [r7, #4]
8004714: 695b ldr r3, [r3, #20]
8004716: 2b00 cmp r3, #0
8004718: d016 beq.n 8004748 <HAL_RCC_OscConfig+0x220>
{
/* Enable the Internal Low Speed oscillator (LSI). */
__HAL_RCC_LSI_ENABLE();
800471a: 4b15 ldr r3, [pc, #84] @ (8004770 <HAL_RCC_OscConfig+0x248>)
800471c: 2201 movs r2, #1
800471e: 601a str r2, [r3, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
8004720: f7fc ff94 bl 800164c <HAL_GetTick>
8004724: 6138 str r0, [r7, #16]
/* Wait till LSI is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
8004726: e008 b.n 800473a <HAL_RCC_OscConfig+0x212>
{
if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
8004728: f7fc ff90 bl 800164c <HAL_GetTick>
800472c: 4602 mov r2, r0
800472e: 693b ldr r3, [r7, #16]
8004730: 1ad3 subs r3, r2, r3
8004732: 2b02 cmp r3, #2
8004734: d901 bls.n 800473a <HAL_RCC_OscConfig+0x212>
{
return HAL_TIMEOUT;
8004736: 2303 movs r3, #3
8004738: e167 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
800473a: 4b0b ldr r3, [pc, #44] @ (8004768 <HAL_RCC_OscConfig+0x240>)
800473c: 6f5b ldr r3, [r3, #116] @ 0x74
800473e: f003 0302 and.w r3, r3, #2
8004742: 2b00 cmp r3, #0
8004744: d0f0 beq.n 8004728 <HAL_RCC_OscConfig+0x200>
8004746: e01b b.n 8004780 <HAL_RCC_OscConfig+0x258>
}
}
else
{
/* Disable the Internal Low Speed oscillator (LSI). */
__HAL_RCC_LSI_DISABLE();
8004748: 4b09 ldr r3, [pc, #36] @ (8004770 <HAL_RCC_OscConfig+0x248>)
800474a: 2200 movs r2, #0
800474c: 601a str r2, [r3, #0]
/* Get Start Tick */
tickstart = HAL_GetTick();
800474e: f7fc ff7d bl 800164c <HAL_GetTick>
8004752: 6138 str r0, [r7, #16]
/* Wait till LSI is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
8004754: e00e b.n 8004774 <HAL_RCC_OscConfig+0x24c>
{
if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
8004756: f7fc ff79 bl 800164c <HAL_GetTick>
800475a: 4602 mov r2, r0
800475c: 693b ldr r3, [r7, #16]
800475e: 1ad3 subs r3, r2, r3
8004760: 2b02 cmp r3, #2
8004762: d907 bls.n 8004774 <HAL_RCC_OscConfig+0x24c>
{
return HAL_TIMEOUT;
8004764: 2303 movs r3, #3
8004766: e150 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
8004768: 40023800 .word 0x40023800
800476c: 42470000 .word 0x42470000
8004770: 42470e80 .word 0x42470e80
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
8004774: 4b88 ldr r3, [pc, #544] @ (8004998 <HAL_RCC_OscConfig+0x470>)
8004776: 6f5b ldr r3, [r3, #116] @ 0x74
8004778: f003 0302 and.w r3, r3, #2
800477c: 2b00 cmp r3, #0
800477e: d1ea bne.n 8004756 <HAL_RCC_OscConfig+0x22e>
}
}
}
}
/*------------------------------ LSE Configuration -------------------------*/
if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
8004780: 687b ldr r3, [r7, #4]
8004782: 681b ldr r3, [r3, #0]
8004784: f003 0304 and.w r3, r3, #4
8004788: 2b00 cmp r3, #0
800478a: f000 8097 beq.w 80048bc <HAL_RCC_OscConfig+0x394>
{
FlagStatus pwrclkchanged = RESET;
800478e: 2300 movs r3, #0
8004790: 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())
8004792: 4b81 ldr r3, [pc, #516] @ (8004998 <HAL_RCC_OscConfig+0x470>)
8004794: 6c1b ldr r3, [r3, #64] @ 0x40
8004796: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
800479a: 2b00 cmp r3, #0
800479c: d10f bne.n 80047be <HAL_RCC_OscConfig+0x296>
{
__HAL_RCC_PWR_CLK_ENABLE();
800479e: 2300 movs r3, #0
80047a0: 60bb str r3, [r7, #8]
80047a2: 4b7d ldr r3, [pc, #500] @ (8004998 <HAL_RCC_OscConfig+0x470>)
80047a4: 6c1b ldr r3, [r3, #64] @ 0x40
80047a6: 4a7c ldr r2, [pc, #496] @ (8004998 <HAL_RCC_OscConfig+0x470>)
80047a8: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
80047ac: 6413 str r3, [r2, #64] @ 0x40
80047ae: 4b7a ldr r3, [pc, #488] @ (8004998 <HAL_RCC_OscConfig+0x470>)
80047b0: 6c1b ldr r3, [r3, #64] @ 0x40
80047b2: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
80047b6: 60bb str r3, [r7, #8]
80047b8: 68bb ldr r3, [r7, #8]
pwrclkchanged = SET;
80047ba: 2301 movs r3, #1
80047bc: 75fb strb r3, [r7, #23]
}
if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
80047be: 4b77 ldr r3, [pc, #476] @ (800499c <HAL_RCC_OscConfig+0x474>)
80047c0: 681b ldr r3, [r3, #0]
80047c2: f403 7380 and.w r3, r3, #256 @ 0x100
80047c6: 2b00 cmp r3, #0
80047c8: d118 bne.n 80047fc <HAL_RCC_OscConfig+0x2d4>
{
/* Enable write access to Backup domain */
SET_BIT(PWR->CR, PWR_CR_DBP);
80047ca: 4b74 ldr r3, [pc, #464] @ (800499c <HAL_RCC_OscConfig+0x474>)
80047cc: 681b ldr r3, [r3, #0]
80047ce: 4a73 ldr r2, [pc, #460] @ (800499c <HAL_RCC_OscConfig+0x474>)
80047d0: f443 7380 orr.w r3, r3, #256 @ 0x100
80047d4: 6013 str r3, [r2, #0]
/* Wait for Backup domain Write protection disable */
tickstart = HAL_GetTick();
80047d6: f7fc ff39 bl 800164c <HAL_GetTick>
80047da: 6138 str r0, [r7, #16]
while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
80047dc: e008 b.n 80047f0 <HAL_RCC_OscConfig+0x2c8>
{
if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
80047de: f7fc ff35 bl 800164c <HAL_GetTick>
80047e2: 4602 mov r2, r0
80047e4: 693b ldr r3, [r7, #16]
80047e6: 1ad3 subs r3, r2, r3
80047e8: 2b02 cmp r3, #2
80047ea: d901 bls.n 80047f0 <HAL_RCC_OscConfig+0x2c8>
{
return HAL_TIMEOUT;
80047ec: 2303 movs r3, #3
80047ee: e10c b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
80047f0: 4b6a ldr r3, [pc, #424] @ (800499c <HAL_RCC_OscConfig+0x474>)
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 <HAL_RCC_OscConfig+0x2b6>
}
}
}
/* Set the new LSE configuration -----------------------------------------*/
__HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
80047fc: 687b ldr r3, [r7, #4]
80047fe: 689b ldr r3, [r3, #8]
8004800: 2b01 cmp r3, #1
8004802: d106 bne.n 8004812 <HAL_RCC_OscConfig+0x2ea>
8004804: 4b64 ldr r3, [pc, #400] @ (8004998 <HAL_RCC_OscConfig+0x470>)
8004806: 6f1b ldr r3, [r3, #112] @ 0x70
8004808: 4a63 ldr r2, [pc, #396] @ (8004998 <HAL_RCC_OscConfig+0x470>)
800480a: f043 0301 orr.w r3, r3, #1
800480e: 6713 str r3, [r2, #112] @ 0x70
8004810: e01c b.n 800484c <HAL_RCC_OscConfig+0x324>
8004812: 687b ldr r3, [r7, #4]
8004814: 689b ldr r3, [r3, #8]
8004816: 2b05 cmp r3, #5
8004818: d10c bne.n 8004834 <HAL_RCC_OscConfig+0x30c>
800481a: 4b5f ldr r3, [pc, #380] @ (8004998 <HAL_RCC_OscConfig+0x470>)
800481c: 6f1b ldr r3, [r3, #112] @ 0x70
800481e: 4a5e ldr r2, [pc, #376] @ (8004998 <HAL_RCC_OscConfig+0x470>)
8004820: f043 0304 orr.w r3, r3, #4
8004824: 6713 str r3, [r2, #112] @ 0x70
8004826: 4b5c ldr r3, [pc, #368] @ (8004998 <HAL_RCC_OscConfig+0x470>)
8004828: 6f1b ldr r3, [r3, #112] @ 0x70
800482a: 4a5b ldr r2, [pc, #364] @ (8004998 <HAL_RCC_OscConfig+0x470>)
800482c: f043 0301 orr.w r3, r3, #1
8004830: 6713 str r3, [r2, #112] @ 0x70
8004832: e00b b.n 800484c <HAL_RCC_OscConfig+0x324>
8004834: 4b58 ldr r3, [pc, #352] @ (8004998 <HAL_RCC_OscConfig+0x470>)
8004836: 6f1b ldr r3, [r3, #112] @ 0x70
8004838: 4a57 ldr r2, [pc, #348] @ (8004998 <HAL_RCC_OscConfig+0x470>)
800483a: f023 0301 bic.w r3, r3, #1
800483e: 6713 str r3, [r2, #112] @ 0x70
8004840: 4b55 ldr r3, [pc, #340] @ (8004998 <HAL_RCC_OscConfig+0x470>)
8004842: 6f1b ldr r3, [r3, #112] @ 0x70
8004844: 4a54 ldr r2, [pc, #336] @ (8004998 <HAL_RCC_OscConfig+0x470>)
8004846: f023 0304 bic.w r3, r3, #4
800484a: 6713 str r3, [r2, #112] @ 0x70
/* Check the LSE State */
if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
800484c: 687b ldr r3, [r7, #4]
800484e: 689b ldr r3, [r3, #8]
8004850: 2b00 cmp r3, #0
8004852: d015 beq.n 8004880 <HAL_RCC_OscConfig+0x358>
{
/* Get Start Tick*/
tickstart = HAL_GetTick();
8004854: f7fc fefa bl 800164c <HAL_GetTick>
8004858: 6138 str r0, [r7, #16]
/* Wait till LSE is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
800485a: e00a b.n 8004872 <HAL_RCC_OscConfig+0x34a>
{
if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
800485c: f7fc fef6 bl 800164c <HAL_GetTick>
8004860: 4602 mov r2, r0
8004862: 693b ldr r3, [r7, #16]
8004864: 1ad3 subs r3, r2, r3
8004866: f241 3288 movw r2, #5000 @ 0x1388
800486a: 4293 cmp r3, r2
800486c: d901 bls.n 8004872 <HAL_RCC_OscConfig+0x34a>
{
return HAL_TIMEOUT;
800486e: 2303 movs r3, #3
8004870: e0cb b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
8004872: 4b49 ldr r3, [pc, #292] @ (8004998 <HAL_RCC_OscConfig+0x470>)
8004874: 6f1b ldr r3, [r3, #112] @ 0x70
8004876: f003 0302 and.w r3, r3, #2
800487a: 2b00 cmp r3, #0
800487c: d0ee beq.n 800485c <HAL_RCC_OscConfig+0x334>
800487e: e014 b.n 80048aa <HAL_RCC_OscConfig+0x382>
}
}
else
{
/* Get Start Tick */
tickstart = HAL_GetTick();
8004880: f7fc fee4 bl 800164c <HAL_GetTick>
8004884: 6138 str r0, [r7, #16]
/* Wait till LSE is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
8004886: e00a b.n 800489e <HAL_RCC_OscConfig+0x376>
{
if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
8004888: f7fc fee0 bl 800164c <HAL_GetTick>
800488c: 4602 mov r2, r0
800488e: 693b ldr r3, [r7, #16]
8004890: 1ad3 subs r3, r2, r3
8004892: f241 3288 movw r2, #5000 @ 0x1388
8004896: 4293 cmp r3, r2
8004898: d901 bls.n 800489e <HAL_RCC_OscConfig+0x376>
{
return HAL_TIMEOUT;
800489a: 2303 movs r3, #3
800489c: e0b5 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
800489e: 4b3e ldr r3, [pc, #248] @ (8004998 <HAL_RCC_OscConfig+0x470>)
80048a0: 6f1b ldr r3, [r3, #112] @ 0x70
80048a2: f003 0302 and.w r3, r3, #2
80048a6: 2b00 cmp r3, #0
80048a8: d1ee bne.n 8004888 <HAL_RCC_OscConfig+0x360>
}
}
}
/* Restore clock configuration if changed */
if (pwrclkchanged == SET)
80048aa: 7dfb ldrb r3, [r7, #23]
80048ac: 2b01 cmp r3, #1
80048ae: d105 bne.n 80048bc <HAL_RCC_OscConfig+0x394>
{
__HAL_RCC_PWR_CLK_DISABLE();
80048b0: 4b39 ldr r3, [pc, #228] @ (8004998 <HAL_RCC_OscConfig+0x470>)
80048b2: 6c1b ldr r3, [r3, #64] @ 0x40
80048b4: 4a38 ldr r2, [pc, #224] @ (8004998 <HAL_RCC_OscConfig+0x470>)
80048b6: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
80048ba: 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)
80048bc: 687b ldr r3, [r7, #4]
80048be: 699b ldr r3, [r3, #24]
80048c0: 2b00 cmp r3, #0
80048c2: f000 80a1 beq.w 8004a08 <HAL_RCC_OscConfig+0x4e0>
{
/* Check if the PLL is used as system clock or not */
if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_CFGR_SWS_PLL)
80048c6: 4b34 ldr r3, [pc, #208] @ (8004998 <HAL_RCC_OscConfig+0x470>)
80048c8: 689b ldr r3, [r3, #8]
80048ca: f003 030c and.w r3, r3, #12
80048ce: 2b08 cmp r3, #8
80048d0: d05c beq.n 800498c <HAL_RCC_OscConfig+0x464>
{
if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
80048d2: 687b ldr r3, [r7, #4]
80048d4: 699b ldr r3, [r3, #24]
80048d6: 2b02 cmp r3, #2
80048d8: d141 bne.n 800495e <HAL_RCC_OscConfig+0x436>
assert_param(IS_RCC_PLLN_VALUE(RCC_OscInitStruct->PLL.PLLN));
assert_param(IS_RCC_PLLP_VALUE(RCC_OscInitStruct->PLL.PLLP));
assert_param(IS_RCC_PLLQ_VALUE(RCC_OscInitStruct->PLL.PLLQ));
/* Disable the main PLL. */
__HAL_RCC_PLL_DISABLE();
80048da: 4b31 ldr r3, [pc, #196] @ (80049a0 <HAL_RCC_OscConfig+0x478>)
80048dc: 2200 movs r2, #0
80048de: 601a str r2, [r3, #0]
/* Get Start Tick */
tickstart = HAL_GetTick();
80048e0: f7fc feb4 bl 800164c <HAL_GetTick>
80048e4: 6138 str r0, [r7, #16]
/* Wait till PLL is disabled */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
80048e6: e008 b.n 80048fa <HAL_RCC_OscConfig+0x3d2>
{
if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
80048e8: f7fc feb0 bl 800164c <HAL_GetTick>
80048ec: 4602 mov r2, r0
80048ee: 693b ldr r3, [r7, #16]
80048f0: 1ad3 subs r3, r2, r3
80048f2: 2b02 cmp r3, #2
80048f4: d901 bls.n 80048fa <HAL_RCC_OscConfig+0x3d2>
{
return HAL_TIMEOUT;
80048f6: 2303 movs r3, #3
80048f8: e087 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
80048fa: 4b27 ldr r3, [pc, #156] @ (8004998 <HAL_RCC_OscConfig+0x470>)
80048fc: 681b ldr r3, [r3, #0]
80048fe: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
8004902: 2b00 cmp r3, #0
8004904: d1f0 bne.n 80048e8 <HAL_RCC_OscConfig+0x3c0>
}
}
/* Configure the main PLL clock source, multiplication and division factors. */
WRITE_REG(RCC->PLLCFGR, (RCC_OscInitStruct->PLL.PLLSource | \
8004906: 687b ldr r3, [r7, #4]
8004908: 69da ldr r2, [r3, #28]
800490a: 687b ldr r3, [r7, #4]
800490c: 6a1b ldr r3, [r3, #32]
800490e: 431a orrs r2, r3
8004910: 687b ldr r3, [r7, #4]
8004912: 6a5b ldr r3, [r3, #36] @ 0x24
8004914: 019b lsls r3, r3, #6
8004916: 431a orrs r2, r3
8004918: 687b ldr r3, [r7, #4]
800491a: 6a9b ldr r3, [r3, #40] @ 0x28
800491c: 085b lsrs r3, r3, #1
800491e: 3b01 subs r3, #1
8004920: 041b lsls r3, r3, #16
8004922: 431a orrs r2, r3
8004924: 687b ldr r3, [r7, #4]
8004926: 6adb ldr r3, [r3, #44] @ 0x2c
8004928: 061b lsls r3, r3, #24
800492a: 491b ldr r1, [pc, #108] @ (8004998 <HAL_RCC_OscConfig+0x470>)
800492c: 4313 orrs r3, r2
800492e: 604b str r3, [r1, #4]
RCC_OscInitStruct->PLL.PLLM | \
(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)));
/* Enable the main PLL. */
__HAL_RCC_PLL_ENABLE();
8004930: 4b1b ldr r3, [pc, #108] @ (80049a0 <HAL_RCC_OscConfig+0x478>)
8004932: 2201 movs r2, #1
8004934: 601a str r2, [r3, #0]
/* Get Start Tick */
tickstart = HAL_GetTick();
8004936: f7fc fe89 bl 800164c <HAL_GetTick>
800493a: 6138 str r0, [r7, #16]
/* Wait till PLL is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
800493c: e008 b.n 8004950 <HAL_RCC_OscConfig+0x428>
{
if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
800493e: f7fc fe85 bl 800164c <HAL_GetTick>
8004942: 4602 mov r2, r0
8004944: 693b ldr r3, [r7, #16]
8004946: 1ad3 subs r3, r2, r3
8004948: 2b02 cmp r3, #2
800494a: d901 bls.n 8004950 <HAL_RCC_OscConfig+0x428>
{
return HAL_TIMEOUT;
800494c: 2303 movs r3, #3
800494e: e05c b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
8004950: 4b11 ldr r3, [pc, #68] @ (8004998 <HAL_RCC_OscConfig+0x470>)
8004952: 681b ldr r3, [r3, #0]
8004954: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
8004958: 2b00 cmp r3, #0
800495a: d0f0 beq.n 800493e <HAL_RCC_OscConfig+0x416>
800495c: e054 b.n 8004a08 <HAL_RCC_OscConfig+0x4e0>
}
}
else
{
/* Disable the main PLL. */
__HAL_RCC_PLL_DISABLE();
800495e: 4b10 ldr r3, [pc, #64] @ (80049a0 <HAL_RCC_OscConfig+0x478>)
8004960: 2200 movs r2, #0
8004962: 601a str r2, [r3, #0]
/* Get Start Tick */
tickstart = HAL_GetTick();
8004964: f7fc fe72 bl 800164c <HAL_GetTick>
8004968: 6138 str r0, [r7, #16]
/* Wait till PLL is disabled */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
800496a: e008 b.n 800497e <HAL_RCC_OscConfig+0x456>
{
if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
800496c: f7fc fe6e bl 800164c <HAL_GetTick>
8004970: 4602 mov r2, r0
8004972: 693b ldr r3, [r7, #16]
8004974: 1ad3 subs r3, r2, r3
8004976: 2b02 cmp r3, #2
8004978: d901 bls.n 800497e <HAL_RCC_OscConfig+0x456>
{
return HAL_TIMEOUT;
800497a: 2303 movs r3, #3
800497c: e045 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
800497e: 4b06 ldr r3, [pc, #24] @ (8004998 <HAL_RCC_OscConfig+0x470>)
8004980: 681b ldr r3, [r3, #0]
8004982: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
8004986: 2b00 cmp r3, #0
8004988: d1f0 bne.n 800496c <HAL_RCC_OscConfig+0x444>
800498a: e03d b.n 8004a08 <HAL_RCC_OscConfig+0x4e0>
}
}
else
{
/* Check if there is a request to disable the PLL used as System clock source */
if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF)
800498c: 687b ldr r3, [r7, #4]
800498e: 699b ldr r3, [r3, #24]
8004990: 2b01 cmp r3, #1
8004992: d107 bne.n 80049a4 <HAL_RCC_OscConfig+0x47c>
{
return HAL_ERROR;
8004994: 2301 movs r3, #1
8004996: e038 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
8004998: 40023800 .word 0x40023800
800499c: 40007000 .word 0x40007000
80049a0: 42470060 .word 0x42470060
}
else
{
/* Do not return HAL_ERROR if request repeats the current configuration */
pll_config = RCC->PLLCFGR;
80049a4: 4b1b ldr r3, [pc, #108] @ (8004a14 <HAL_RCC_OscConfig+0x4ec>)
80049a6: 685b ldr r3, [r3, #4]
80049a8: 60fb str r3, [r7, #12]
(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)) ||
(READ_BIT(pll_config, RCC_PLLCFGR_PLLR) != (RCC_OscInitStruct->PLL.PLLR << RCC_PLLCFGR_PLLR_Pos)))
#else
if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
80049aa: 687b ldr r3, [r7, #4]
80049ac: 699b ldr r3, [r3, #24]
80049ae: 2b01 cmp r3, #1
80049b0: d028 beq.n 8004a04 <HAL_RCC_OscConfig+0x4dc>
(READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
80049b2: 68fb ldr r3, [r7, #12]
80049b4: f403 0280 and.w r2, r3, #4194304 @ 0x400000
80049b8: 687b ldr r3, [r7, #4]
80049ba: 69db ldr r3, [r3, #28]
if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
80049bc: 429a cmp r2, r3
80049be: d121 bne.n 8004a04 <HAL_RCC_OscConfig+0x4dc>
(READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) ||
80049c0: 68fb ldr r3, [r7, #12]
80049c2: f003 023f and.w r2, r3, #63 @ 0x3f
80049c6: 687b ldr r3, [r7, #4]
80049c8: 6a1b ldr r3, [r3, #32]
(READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
80049ca: 429a cmp r2, r3
80049cc: d11a bne.n 8004a04 <HAL_RCC_OscConfig+0x4dc>
(READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) ||
80049ce: 68fa ldr r2, [r7, #12]
80049d0: f647 73c0 movw r3, #32704 @ 0x7fc0
80049d4: 4013 ands r3, r2
80049d6: 687a ldr r2, [r7, #4]
80049d8: 6a52 ldr r2, [r2, #36] @ 0x24
80049da: 0192 lsls r2, r2, #6
(READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != (RCC_OscInitStruct->PLL.PLLM) << RCC_PLLCFGR_PLLM_Pos) ||
80049dc: 4293 cmp r3, r2
80049de: d111 bne.n 8004a04 <HAL_RCC_OscConfig+0x4dc>
(READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) ||
80049e0: 68fb ldr r3, [r7, #12]
80049e2: f403 3240 and.w r2, r3, #196608 @ 0x30000
80049e6: 687b ldr r3, [r7, #4]
80049e8: 6a9b ldr r3, [r3, #40] @ 0x28
80049ea: 085b lsrs r3, r3, #1
80049ec: 3b01 subs r3, #1
80049ee: 041b lsls r3, r3, #16
(READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN) << RCC_PLLCFGR_PLLN_Pos) ||
80049f0: 429a cmp r2, r3
80049f2: d107 bne.n 8004a04 <HAL_RCC_OscConfig+0x4dc>
(READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)))
80049f4: 68fb ldr r3, [r7, #12]
80049f6: f003 6270 and.w r2, r3, #251658240 @ 0xf000000
80049fa: 687b ldr r3, [r7, #4]
80049fc: 6adb ldr r3, [r3, #44] @ 0x2c
80049fe: 061b lsls r3, r3, #24
(READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != (((RCC_OscInitStruct->PLL.PLLP >> 1U) - 1U)) << RCC_PLLCFGR_PLLP_Pos) ||
8004a00: 429a cmp r2, r3
8004a02: d001 beq.n 8004a08 <HAL_RCC_OscConfig+0x4e0>
#endif /* RCC_PLLCFGR_PLLR */
{
return HAL_ERROR;
8004a04: 2301 movs r3, #1
8004a06: e000 b.n 8004a0a <HAL_RCC_OscConfig+0x4e2>
}
}
}
}
return HAL_OK;
8004a08: 2300 movs r3, #0
}
8004a0a: 4618 mov r0, r3
8004a0c: 3718 adds r7, #24
8004a0e: 46bd mov sp, r7
8004a10: bd80 pop {r7, pc}
8004a12: bf00 nop
8004a14: 40023800 .word 0x40023800
08004a18 <HAL_RCC_ClockConfig>:
* 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)
{
8004a18: b580 push {r7, lr}
8004a1a: b084 sub sp, #16
8004a1c: af00 add r7, sp, #0
8004a1e: 6078 str r0, [r7, #4]
8004a20: 6039 str r1, [r7, #0]
uint32_t tickstart;
/* Check Null pointer */
if (RCC_ClkInitStruct == NULL)
8004a22: 687b ldr r3, [r7, #4]
8004a24: 2b00 cmp r3, #0
8004a26: d101 bne.n 8004a2c <HAL_RCC_ClockConfig+0x14>
{
return HAL_ERROR;
8004a28: 2301 movs r3, #1
8004a2a: e0cc b.n 8004bc6 <HAL_RCC_ClockConfig+0x1ae>
/* 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())
8004a2c: 4b68 ldr r3, [pc, #416] @ (8004bd0 <HAL_RCC_ClockConfig+0x1b8>)
8004a2e: 681b ldr r3, [r3, #0]
8004a30: f003 030f and.w r3, r3, #15
8004a34: 683a ldr r2, [r7, #0]
8004a36: 429a cmp r2, r3
8004a38: d90c bls.n 8004a54 <HAL_RCC_ClockConfig+0x3c>
{
/* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
__HAL_FLASH_SET_LATENCY(FLatency);
8004a3a: 4b65 ldr r3, [pc, #404] @ (8004bd0 <HAL_RCC_ClockConfig+0x1b8>)
8004a3c: 683a ldr r2, [r7, #0]
8004a3e: b2d2 uxtb r2, r2
8004a40: 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)
8004a42: 4b63 ldr r3, [pc, #396] @ (8004bd0 <HAL_RCC_ClockConfig+0x1b8>)
8004a44: 681b ldr r3, [r3, #0]
8004a46: f003 030f and.w r3, r3, #15
8004a4a: 683a ldr r2, [r7, #0]
8004a4c: 429a cmp r2, r3
8004a4e: d001 beq.n 8004a54 <HAL_RCC_ClockConfig+0x3c>
{
return HAL_ERROR;
8004a50: 2301 movs r3, #1
8004a52: e0b8 b.n 8004bc6 <HAL_RCC_ClockConfig+0x1ae>
}
}
/*-------------------------- HCLK Configuration --------------------------*/
if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
8004a54: 687b ldr r3, [r7, #4]
8004a56: 681b ldr r3, [r3, #0]
8004a58: f003 0302 and.w r3, r3, #2
8004a5c: 2b00 cmp r3, #0
8004a5e: d020 beq.n 8004aa2 <HAL_RCC_ClockConfig+0x8a>
{
/* 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)
8004a60: 687b ldr r3, [r7, #4]
8004a62: 681b ldr r3, [r3, #0]
8004a64: f003 0304 and.w r3, r3, #4
8004a68: 2b00 cmp r3, #0
8004a6a: d005 beq.n 8004a78 <HAL_RCC_ClockConfig+0x60>
{
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16);
8004a6c: 4b59 ldr r3, [pc, #356] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004a6e: 689b ldr r3, [r3, #8]
8004a70: 4a58 ldr r2, [pc, #352] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004a72: f443 53e0 orr.w r3, r3, #7168 @ 0x1c00
8004a76: 6093 str r3, [r2, #8]
}
if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
8004a78: 687b ldr r3, [r7, #4]
8004a7a: 681b ldr r3, [r3, #0]
8004a7c: f003 0308 and.w r3, r3, #8
8004a80: 2b00 cmp r3, #0
8004a82: d005 beq.n 8004a90 <HAL_RCC_ClockConfig+0x78>
{
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3));
8004a84: 4b53 ldr r3, [pc, #332] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004a86: 689b ldr r3, [r3, #8]
8004a88: 4a52 ldr r2, [pc, #328] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004a8a: f443 4360 orr.w r3, r3, #57344 @ 0xe000
8004a8e: 6093 str r3, [r2, #8]
}
assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
8004a90: 4b50 ldr r3, [pc, #320] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004a92: 689b ldr r3, [r3, #8]
8004a94: f023 02f0 bic.w r2, r3, #240 @ 0xf0
8004a98: 687b ldr r3, [r7, #4]
8004a9a: 689b ldr r3, [r3, #8]
8004a9c: 494d ldr r1, [pc, #308] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004a9e: 4313 orrs r3, r2
8004aa0: 608b str r3, [r1, #8]
}
/*------------------------- SYSCLK Configuration ---------------------------*/
if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
8004aa2: 687b ldr r3, [r7, #4]
8004aa4: 681b ldr r3, [r3, #0]
8004aa6: f003 0301 and.w r3, r3, #1
8004aaa: 2b00 cmp r3, #0
8004aac: d044 beq.n 8004b38 <HAL_RCC_ClockConfig+0x120>
{
assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
/* HSE is selected as System Clock Source */
if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
8004aae: 687b ldr r3, [r7, #4]
8004ab0: 685b ldr r3, [r3, #4]
8004ab2: 2b01 cmp r3, #1
8004ab4: d107 bne.n 8004ac6 <HAL_RCC_ClockConfig+0xae>
{
/* Check the HSE ready flag */
if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
8004ab6: 4b47 ldr r3, [pc, #284] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004ab8: 681b ldr r3, [r3, #0]
8004aba: f403 3300 and.w r3, r3, #131072 @ 0x20000
8004abe: 2b00 cmp r3, #0
8004ac0: d119 bne.n 8004af6 <HAL_RCC_ClockConfig+0xde>
{
return HAL_ERROR;
8004ac2: 2301 movs r3, #1
8004ac4: e07f b.n 8004bc6 <HAL_RCC_ClockConfig+0x1ae>
}
}
/* PLL is selected as System Clock Source */
else if ((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) ||
8004ac6: 687b ldr r3, [r7, #4]
8004ac8: 685b ldr r3, [r3, #4]
8004aca: 2b02 cmp r3, #2
8004acc: d003 beq.n 8004ad6 <HAL_RCC_ClockConfig+0xbe>
(RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLRCLK))
8004ace: 687b ldr r3, [r7, #4]
8004ad0: 685b ldr r3, [r3, #4]
else if ((RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) ||
8004ad2: 2b03 cmp r3, #3
8004ad4: d107 bne.n 8004ae6 <HAL_RCC_ClockConfig+0xce>
{
/* Check the PLL ready flag */
if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
8004ad6: 4b3f ldr r3, [pc, #252] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004ad8: 681b ldr r3, [r3, #0]
8004ada: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
8004ade: 2b00 cmp r3, #0
8004ae0: d109 bne.n 8004af6 <HAL_RCC_ClockConfig+0xde>
{
return HAL_ERROR;
8004ae2: 2301 movs r3, #1
8004ae4: e06f b.n 8004bc6 <HAL_RCC_ClockConfig+0x1ae>
}
/* HSI is selected as System Clock Source */
else
{
/* Check the HSI ready flag */
if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
8004ae6: 4b3b ldr r3, [pc, #236] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004ae8: 681b ldr r3, [r3, #0]
8004aea: f003 0302 and.w r3, r3, #2
8004aee: 2b00 cmp r3, #0
8004af0: d101 bne.n 8004af6 <HAL_RCC_ClockConfig+0xde>
{
return HAL_ERROR;
8004af2: 2301 movs r3, #1
8004af4: e067 b.n 8004bc6 <HAL_RCC_ClockConfig+0x1ae>
}
}
__HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
8004af6: 4b37 ldr r3, [pc, #220] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004af8: 689b ldr r3, [r3, #8]
8004afa: f023 0203 bic.w r2, r3, #3
8004afe: 687b ldr r3, [r7, #4]
8004b00: 685b ldr r3, [r3, #4]
8004b02: 4934 ldr r1, [pc, #208] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004b04: 4313 orrs r3, r2
8004b06: 608b str r3, [r1, #8]
/* Get Start Tick */
tickstart = HAL_GetTick();
8004b08: f7fc fda0 bl 800164c <HAL_GetTick>
8004b0c: 60f8 str r0, [r7, #12]
while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
8004b0e: e00a b.n 8004b26 <HAL_RCC_ClockConfig+0x10e>
{
if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
8004b10: f7fc fd9c bl 800164c <HAL_GetTick>
8004b14: 4602 mov r2, r0
8004b16: 68fb ldr r3, [r7, #12]
8004b18: 1ad3 subs r3, r2, r3
8004b1a: f241 3288 movw r2, #5000 @ 0x1388
8004b1e: 4293 cmp r3, r2
8004b20: d901 bls.n 8004b26 <HAL_RCC_ClockConfig+0x10e>
{
return HAL_TIMEOUT;
8004b22: 2303 movs r3, #3
8004b24: e04f b.n 8004bc6 <HAL_RCC_ClockConfig+0x1ae>
while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
8004b26: 4b2b ldr r3, [pc, #172] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004b28: 689b ldr r3, [r3, #8]
8004b2a: f003 020c and.w r2, r3, #12
8004b2e: 687b ldr r3, [r7, #4]
8004b30: 685b ldr r3, [r3, #4]
8004b32: 009b lsls r3, r3, #2
8004b34: 429a cmp r2, r3
8004b36: d1eb bne.n 8004b10 <HAL_RCC_ClockConfig+0xf8>
}
}
}
/* Decreasing the number of wait states because of lower CPU frequency */
if (FLatency < __HAL_FLASH_GET_LATENCY())
8004b38: 4b25 ldr r3, [pc, #148] @ (8004bd0 <HAL_RCC_ClockConfig+0x1b8>)
8004b3a: 681b ldr r3, [r3, #0]
8004b3c: f003 030f and.w r3, r3, #15
8004b40: 683a ldr r2, [r7, #0]
8004b42: 429a cmp r2, r3
8004b44: d20c bcs.n 8004b60 <HAL_RCC_ClockConfig+0x148>
{
/* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
__HAL_FLASH_SET_LATENCY(FLatency);
8004b46: 4b22 ldr r3, [pc, #136] @ (8004bd0 <HAL_RCC_ClockConfig+0x1b8>)
8004b48: 683a ldr r2, [r7, #0]
8004b4a: b2d2 uxtb r2, r2
8004b4c: 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)
8004b4e: 4b20 ldr r3, [pc, #128] @ (8004bd0 <HAL_RCC_ClockConfig+0x1b8>)
8004b50: 681b ldr r3, [r3, #0]
8004b52: f003 030f and.w r3, r3, #15
8004b56: 683a ldr r2, [r7, #0]
8004b58: 429a cmp r2, r3
8004b5a: d001 beq.n 8004b60 <HAL_RCC_ClockConfig+0x148>
{
return HAL_ERROR;
8004b5c: 2301 movs r3, #1
8004b5e: e032 b.n 8004bc6 <HAL_RCC_ClockConfig+0x1ae>
}
}
/*-------------------------- PCLK1 Configuration ---------------------------*/
if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
8004b60: 687b ldr r3, [r7, #4]
8004b62: 681b ldr r3, [r3, #0]
8004b64: f003 0304 and.w r3, r3, #4
8004b68: 2b00 cmp r3, #0
8004b6a: d008 beq.n 8004b7e <HAL_RCC_ClockConfig+0x166>
{
assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider));
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider);
8004b6c: 4b19 ldr r3, [pc, #100] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004b6e: 689b ldr r3, [r3, #8]
8004b70: f423 52e0 bic.w r2, r3, #7168 @ 0x1c00
8004b74: 687b ldr r3, [r7, #4]
8004b76: 68db ldr r3, [r3, #12]
8004b78: 4916 ldr r1, [pc, #88] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004b7a: 4313 orrs r3, r2
8004b7c: 608b str r3, [r1, #8]
}
/*-------------------------- PCLK2 Configuration ---------------------------*/
if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
8004b7e: 687b ldr r3, [r7, #4]
8004b80: 681b ldr r3, [r3, #0]
8004b82: f003 0308 and.w r3, r3, #8
8004b86: 2b00 cmp r3, #0
8004b88: d009 beq.n 8004b9e <HAL_RCC_ClockConfig+0x186>
{
assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider));
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3U));
8004b8a: 4b12 ldr r3, [pc, #72] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004b8c: 689b ldr r3, [r3, #8]
8004b8e: f423 4260 bic.w r2, r3, #57344 @ 0xe000
8004b92: 687b ldr r3, [r7, #4]
8004b94: 691b ldr r3, [r3, #16]
8004b96: 00db lsls r3, r3, #3
8004b98: 490e ldr r1, [pc, #56] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004b9a: 4313 orrs r3, r2
8004b9c: 608b str r3, [r1, #8]
}
/* Update the SystemCoreClock global variable */
SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos];
8004b9e: f000 f821 bl 8004be4 <HAL_RCC_GetSysClockFreq>
8004ba2: 4602 mov r2, r0
8004ba4: 4b0b ldr r3, [pc, #44] @ (8004bd4 <HAL_RCC_ClockConfig+0x1bc>)
8004ba6: 689b ldr r3, [r3, #8]
8004ba8: 091b lsrs r3, r3, #4
8004baa: f003 030f and.w r3, r3, #15
8004bae: 490a ldr r1, [pc, #40] @ (8004bd8 <HAL_RCC_ClockConfig+0x1c0>)
8004bb0: 5ccb ldrb r3, [r1, r3]
8004bb2: fa22 f303 lsr.w r3, r2, r3
8004bb6: 4a09 ldr r2, [pc, #36] @ (8004bdc <HAL_RCC_ClockConfig+0x1c4>)
8004bb8: 6013 str r3, [r2, #0]
/* Configure the source of time base considering new system clocks settings */
HAL_InitTick(uwTickPrio);
8004bba: 4b09 ldr r3, [pc, #36] @ (8004be0 <HAL_RCC_ClockConfig+0x1c8>)
8004bbc: 681b ldr r3, [r3, #0]
8004bbe: 4618 mov r0, r3
8004bc0: f7fc fc12 bl 80013e8 <HAL_InitTick>
return HAL_OK;
8004bc4: 2300 movs r3, #0
}
8004bc6: 4618 mov r0, r3
8004bc8: 3710 adds r7, #16
8004bca: 46bd mov sp, r7
8004bcc: bd80 pop {r7, pc}
8004bce: bf00 nop
8004bd0: 40023c00 .word 0x40023c00
8004bd4: 40023800 .word 0x40023800
8004bd8: 08007f1c .word 0x08007f1c
8004bdc: 20000000 .word 0x20000000
8004be0: 20000004 .word 0x20000004
08004be4 <HAL_RCC_GetSysClockFreq>:
*
*
* @retval SYSCLK frequency
*/
__weak uint32_t HAL_RCC_GetSysClockFreq(void)
{
8004be4: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
8004be8: b094 sub sp, #80 @ 0x50
8004bea: af00 add r7, sp, #0
uint32_t pllm = 0U;
8004bec: 2300 movs r3, #0
8004bee: 647b str r3, [r7, #68] @ 0x44
uint32_t pllvco = 0U;
8004bf0: 2300 movs r3, #0
8004bf2: 64fb str r3, [r7, #76] @ 0x4c
uint32_t pllp = 0U;
8004bf4: 2300 movs r3, #0
8004bf6: 643b str r3, [r7, #64] @ 0x40
uint32_t sysclockfreq = 0U;
8004bf8: 2300 movs r3, #0
8004bfa: 64bb str r3, [r7, #72] @ 0x48
/* Get SYSCLK source -------------------------------------------------------*/
switch (RCC->CFGR & RCC_CFGR_SWS)
8004bfc: 4b79 ldr r3, [pc, #484] @ (8004de4 <HAL_RCC_GetSysClockFreq+0x200>)
8004bfe: 689b ldr r3, [r3, #8]
8004c00: f003 030c and.w r3, r3, #12
8004c04: 2b08 cmp r3, #8
8004c06: d00d beq.n 8004c24 <HAL_RCC_GetSysClockFreq+0x40>
8004c08: 2b08 cmp r3, #8
8004c0a: f200 80e1 bhi.w 8004dd0 <HAL_RCC_GetSysClockFreq+0x1ec>
8004c0e: 2b00 cmp r3, #0
8004c10: d002 beq.n 8004c18 <HAL_RCC_GetSysClockFreq+0x34>
8004c12: 2b04 cmp r3, #4
8004c14: d003 beq.n 8004c1e <HAL_RCC_GetSysClockFreq+0x3a>
8004c16: e0db b.n 8004dd0 <HAL_RCC_GetSysClockFreq+0x1ec>
{
case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
{
sysclockfreq = HSI_VALUE;
8004c18: 4b73 ldr r3, [pc, #460] @ (8004de8 <HAL_RCC_GetSysClockFreq+0x204>)
8004c1a: 64bb str r3, [r7, #72] @ 0x48
break;
8004c1c: e0db b.n 8004dd6 <HAL_RCC_GetSysClockFreq+0x1f2>
}
case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
{
sysclockfreq = HSE_VALUE;
8004c1e: 4b73 ldr r3, [pc, #460] @ (8004dec <HAL_RCC_GetSysClockFreq+0x208>)
8004c20: 64bb str r3, [r7, #72] @ 0x48
break;
8004c22: e0d8 b.n 8004dd6 <HAL_RCC_GetSysClockFreq+0x1f2>
}
case RCC_CFGR_SWS_PLL: /* PLL used as system clock source */
{
/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLLM) * PLLN
SYSCLK = PLL_VCO / PLLP */
pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM;
8004c24: 4b6f ldr r3, [pc, #444] @ (8004de4 <HAL_RCC_GetSysClockFreq+0x200>)
8004c26: 685b ldr r3, [r3, #4]
8004c28: f003 033f and.w r3, r3, #63 @ 0x3f
8004c2c: 647b str r3, [r7, #68] @ 0x44
if (__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLSOURCE_HSI)
8004c2e: 4b6d ldr r3, [pc, #436] @ (8004de4 <HAL_RCC_GetSysClockFreq+0x200>)
8004c30: 685b ldr r3, [r3, #4]
8004c32: f403 0380 and.w r3, r3, #4194304 @ 0x400000
8004c36: 2b00 cmp r3, #0
8004c38: d063 beq.n 8004d02 <HAL_RCC_GetSysClockFreq+0x11e>
{
/* 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);
8004c3a: 4b6a ldr r3, [pc, #424] @ (8004de4 <HAL_RCC_GetSysClockFreq+0x200>)
8004c3c: 685b ldr r3, [r3, #4]
8004c3e: 099b lsrs r3, r3, #6
8004c40: 2200 movs r2, #0
8004c42: 63bb str r3, [r7, #56] @ 0x38
8004c44: 63fa str r2, [r7, #60] @ 0x3c
8004c46: 6bbb ldr r3, [r7, #56] @ 0x38
8004c48: f3c3 0308 ubfx r3, r3, #0, #9
8004c4c: 633b str r3, [r7, #48] @ 0x30
8004c4e: 2300 movs r3, #0
8004c50: 637b str r3, [r7, #52] @ 0x34
8004c52: e9d7 450c ldrd r4, r5, [r7, #48] @ 0x30
8004c56: 4622 mov r2, r4
8004c58: 462b mov r3, r5
8004c5a: f04f 0000 mov.w r0, #0
8004c5e: f04f 0100 mov.w r1, #0
8004c62: 0159 lsls r1, r3, #5
8004c64: ea41 61d2 orr.w r1, r1, r2, lsr #27
8004c68: 0150 lsls r0, r2, #5
8004c6a: 4602 mov r2, r0
8004c6c: 460b mov r3, r1
8004c6e: 4621 mov r1, r4
8004c70: 1a51 subs r1, r2, r1
8004c72: 6139 str r1, [r7, #16]
8004c74: 4629 mov r1, r5
8004c76: eb63 0301 sbc.w r3, r3, r1
8004c7a: 617b str r3, [r7, #20]
8004c7c: f04f 0200 mov.w r2, #0
8004c80: f04f 0300 mov.w r3, #0
8004c84: e9d7 ab04 ldrd sl, fp, [r7, #16]
8004c88: 4659 mov r1, fp
8004c8a: 018b lsls r3, r1, #6
8004c8c: 4651 mov r1, sl
8004c8e: ea43 6391 orr.w r3, r3, r1, lsr #26
8004c92: 4651 mov r1, sl
8004c94: 018a lsls r2, r1, #6
8004c96: 4651 mov r1, sl
8004c98: ebb2 0801 subs.w r8, r2, r1
8004c9c: 4659 mov r1, fp
8004c9e: eb63 0901 sbc.w r9, r3, r1
8004ca2: f04f 0200 mov.w r2, #0
8004ca6: f04f 0300 mov.w r3, #0
8004caa: ea4f 03c9 mov.w r3, r9, lsl #3
8004cae: ea43 7358 orr.w r3, r3, r8, lsr #29
8004cb2: ea4f 02c8 mov.w r2, r8, lsl #3
8004cb6: 4690 mov r8, r2
8004cb8: 4699 mov r9, r3
8004cba: 4623 mov r3, r4
8004cbc: eb18 0303 adds.w r3, r8, r3
8004cc0: 60bb str r3, [r7, #8]
8004cc2: 462b mov r3, r5
8004cc4: eb49 0303 adc.w r3, r9, r3
8004cc8: 60fb str r3, [r7, #12]
8004cca: f04f 0200 mov.w r2, #0
8004cce: f04f 0300 mov.w r3, #0
8004cd2: e9d7 4502 ldrd r4, r5, [r7, #8]
8004cd6: 4629 mov r1, r5
8004cd8: 024b lsls r3, r1, #9
8004cda: 4621 mov r1, r4
8004cdc: ea43 53d1 orr.w r3, r3, r1, lsr #23
8004ce0: 4621 mov r1, r4
8004ce2: 024a lsls r2, r1, #9
8004ce4: 4610 mov r0, r2
8004ce6: 4619 mov r1, r3
8004ce8: 6c7b ldr r3, [r7, #68] @ 0x44
8004cea: 2200 movs r2, #0
8004cec: 62bb str r3, [r7, #40] @ 0x28
8004cee: 62fa str r2, [r7, #44] @ 0x2c
8004cf0: e9d7 230a ldrd r2, r3, [r7, #40] @ 0x28
8004cf4: f7fb fa7c bl 80001f0 <__aeabi_uldivmod>
8004cf8: 4602 mov r2, r0
8004cfa: 460b mov r3, r1
8004cfc: 4613 mov r3, r2
8004cfe: 64fb str r3, [r7, #76] @ 0x4c
8004d00: e058 b.n 8004db4 <HAL_RCC_GetSysClockFreq+0x1d0>
}
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);
8004d02: 4b38 ldr r3, [pc, #224] @ (8004de4 <HAL_RCC_GetSysClockFreq+0x200>)
8004d04: 685b ldr r3, [r3, #4]
8004d06: 099b lsrs r3, r3, #6
8004d08: 2200 movs r2, #0
8004d0a: 4618 mov r0, r3
8004d0c: 4611 mov r1, r2
8004d0e: f3c0 0308 ubfx r3, r0, #0, #9
8004d12: 623b str r3, [r7, #32]
8004d14: 2300 movs r3, #0
8004d16: 627b str r3, [r7, #36] @ 0x24
8004d18: e9d7 8908 ldrd r8, r9, [r7, #32]
8004d1c: 4642 mov r2, r8
8004d1e: 464b mov r3, r9
8004d20: f04f 0000 mov.w r0, #0
8004d24: f04f 0100 mov.w r1, #0
8004d28: 0159 lsls r1, r3, #5
8004d2a: ea41 61d2 orr.w r1, r1, r2, lsr #27
8004d2e: 0150 lsls r0, r2, #5
8004d30: 4602 mov r2, r0
8004d32: 460b mov r3, r1
8004d34: 4641 mov r1, r8
8004d36: ebb2 0a01 subs.w sl, r2, r1
8004d3a: 4649 mov r1, r9
8004d3c: eb63 0b01 sbc.w fp, r3, r1
8004d40: f04f 0200 mov.w r2, #0
8004d44: f04f 0300 mov.w r3, #0
8004d48: ea4f 138b mov.w r3, fp, lsl #6
8004d4c: ea43 639a orr.w r3, r3, sl, lsr #26
8004d50: ea4f 128a mov.w r2, sl, lsl #6
8004d54: ebb2 040a subs.w r4, r2, sl
8004d58: eb63 050b sbc.w r5, r3, fp
8004d5c: f04f 0200 mov.w r2, #0
8004d60: f04f 0300 mov.w r3, #0
8004d64: 00eb lsls r3, r5, #3
8004d66: ea43 7354 orr.w r3, r3, r4, lsr #29
8004d6a: 00e2 lsls r2, r4, #3
8004d6c: 4614 mov r4, r2
8004d6e: 461d mov r5, r3
8004d70: 4643 mov r3, r8
8004d72: 18e3 adds r3, r4, r3
8004d74: 603b str r3, [r7, #0]
8004d76: 464b mov r3, r9
8004d78: eb45 0303 adc.w r3, r5, r3
8004d7c: 607b str r3, [r7, #4]
8004d7e: f04f 0200 mov.w r2, #0
8004d82: f04f 0300 mov.w r3, #0
8004d86: e9d7 4500 ldrd r4, r5, [r7]
8004d8a: 4629 mov r1, r5
8004d8c: 028b lsls r3, r1, #10
8004d8e: 4621 mov r1, r4
8004d90: ea43 5391 orr.w r3, r3, r1, lsr #22
8004d94: 4621 mov r1, r4
8004d96: 028a lsls r2, r1, #10
8004d98: 4610 mov r0, r2
8004d9a: 4619 mov r1, r3
8004d9c: 6c7b ldr r3, [r7, #68] @ 0x44
8004d9e: 2200 movs r2, #0
8004da0: 61bb str r3, [r7, #24]
8004da2: 61fa str r2, [r7, #28]
8004da4: e9d7 2306 ldrd r2, r3, [r7, #24]
8004da8: f7fb fa22 bl 80001f0 <__aeabi_uldivmod>
8004dac: 4602 mov r2, r0
8004dae: 460b mov r3, r1
8004db0: 4613 mov r3, r2
8004db2: 64fb str r3, [r7, #76] @ 0x4c
}
pllp = ((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) + 1U) * 2U);
8004db4: 4b0b ldr r3, [pc, #44] @ (8004de4 <HAL_RCC_GetSysClockFreq+0x200>)
8004db6: 685b ldr r3, [r3, #4]
8004db8: 0c1b lsrs r3, r3, #16
8004dba: f003 0303 and.w r3, r3, #3
8004dbe: 3301 adds r3, #1
8004dc0: 005b lsls r3, r3, #1
8004dc2: 643b str r3, [r7, #64] @ 0x40
sysclockfreq = pllvco / pllp;
8004dc4: 6cfa ldr r2, [r7, #76] @ 0x4c
8004dc6: 6c3b ldr r3, [r7, #64] @ 0x40
8004dc8: fbb2 f3f3 udiv r3, r2, r3
8004dcc: 64bb str r3, [r7, #72] @ 0x48
break;
8004dce: e002 b.n 8004dd6 <HAL_RCC_GetSysClockFreq+0x1f2>
}
default:
{
sysclockfreq = HSI_VALUE;
8004dd0: 4b05 ldr r3, [pc, #20] @ (8004de8 <HAL_RCC_GetSysClockFreq+0x204>)
8004dd2: 64bb str r3, [r7, #72] @ 0x48
break;
8004dd4: bf00 nop
}
}
return sysclockfreq;
8004dd6: 6cbb ldr r3, [r7, #72] @ 0x48
}
8004dd8: 4618 mov r0, r3
8004dda: 3750 adds r7, #80 @ 0x50
8004ddc: 46bd mov sp, r7
8004dde: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
8004de2: bf00 nop
8004de4: 40023800 .word 0x40023800
8004de8: 00f42400 .word 0x00f42400
8004dec: 007a1200 .word 0x007a1200
08004df0 <HAL_RCC_GetHCLKFreq>:
* @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)
{
8004df0: b480 push {r7}
8004df2: af00 add r7, sp, #0
return SystemCoreClock;
8004df4: 4b03 ldr r3, [pc, #12] @ (8004e04 <HAL_RCC_GetHCLKFreq+0x14>)
8004df6: 681b ldr r3, [r3, #0]
}
8004df8: 4618 mov r0, r3
8004dfa: 46bd mov sp, r7
8004dfc: f85d 7b04 ldr.w r7, [sp], #4
8004e00: 4770 bx lr
8004e02: bf00 nop
8004e04: 20000000 .word 0x20000000
08004e08 <HAL_RCC_GetPCLK1Freq>:
* @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)
{
8004e08: b580 push {r7, lr}
8004e0a: 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]);
8004e0c: f7ff fff0 bl 8004df0 <HAL_RCC_GetHCLKFreq>
8004e10: 4602 mov r2, r0
8004e12: 4b05 ldr r3, [pc, #20] @ (8004e28 <HAL_RCC_GetPCLK1Freq+0x20>)
8004e14: 689b ldr r3, [r3, #8]
8004e16: 0a9b lsrs r3, r3, #10
8004e18: f003 0307 and.w r3, r3, #7
8004e1c: 4903 ldr r1, [pc, #12] @ (8004e2c <HAL_RCC_GetPCLK1Freq+0x24>)
8004e1e: 5ccb ldrb r3, [r1, r3]
8004e20: fa22 f303 lsr.w r3, r2, r3
}
8004e24: 4618 mov r0, r3
8004e26: bd80 pop {r7, pc}
8004e28: 40023800 .word 0x40023800
8004e2c: 08007f2c .word 0x08007f2c
08004e30 <HAL_RCC_GetPCLK2Freq>:
* @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)
{
8004e30: b580 push {r7, lr}
8004e32: 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]);
8004e34: f7ff ffdc bl 8004df0 <HAL_RCC_GetHCLKFreq>
8004e38: 4602 mov r2, r0
8004e3a: 4b05 ldr r3, [pc, #20] @ (8004e50 <HAL_RCC_GetPCLK2Freq+0x20>)
8004e3c: 689b ldr r3, [r3, #8]
8004e3e: 0b5b lsrs r3, r3, #13
8004e40: f003 0307 and.w r3, r3, #7
8004e44: 4903 ldr r1, [pc, #12] @ (8004e54 <HAL_RCC_GetPCLK2Freq+0x24>)
8004e46: 5ccb ldrb r3, [r1, r3]
8004e48: fa22 f303 lsr.w r3, r2, r3
}
8004e4c: 4618 mov r0, r3
8004e4e: bd80 pop {r7, pc}
8004e50: 40023800 .word 0x40023800
8004e54: 08007f2c .word 0x08007f2c
08004e58 <HAL_RCC_GetClockConfig>:
* will be configured.
* @param pFLatency Pointer on the Flash Latency.
* @retval None
*/
void HAL_RCC_GetClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t *pFLatency)
{
8004e58: b480 push {r7}
8004e5a: b083 sub sp, #12
8004e5c: af00 add r7, sp, #0
8004e5e: 6078 str r0, [r7, #4]
8004e60: 6039 str r1, [r7, #0]
/* Set all possible values for the Clock type parameter --------------------*/
RCC_ClkInitStruct->ClockType = RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
8004e62: 687b ldr r3, [r7, #4]
8004e64: 220f movs r2, #15
8004e66: 601a str r2, [r3, #0]
/* Get the SYSCLK configuration --------------------------------------------*/
RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
8004e68: 4b12 ldr r3, [pc, #72] @ (8004eb4 <HAL_RCC_GetClockConfig+0x5c>)
8004e6a: 689b ldr r3, [r3, #8]
8004e6c: f003 0203 and.w r2, r3, #3
8004e70: 687b ldr r3, [r7, #4]
8004e72: 605a str r2, [r3, #4]
/* Get the HCLK configuration ----------------------------------------------*/
RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_HPRE);
8004e74: 4b0f ldr r3, [pc, #60] @ (8004eb4 <HAL_RCC_GetClockConfig+0x5c>)
8004e76: 689b ldr r3, [r3, #8]
8004e78: f003 02f0 and.w r2, r3, #240 @ 0xf0
8004e7c: 687b ldr r3, [r7, #4]
8004e7e: 609a str r2, [r3, #8]
/* Get the APB1 configuration ----------------------------------------------*/
RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_PPRE1);
8004e80: 4b0c ldr r3, [pc, #48] @ (8004eb4 <HAL_RCC_GetClockConfig+0x5c>)
8004e82: 689b ldr r3, [r3, #8]
8004e84: f403 52e0 and.w r2, r3, #7168 @ 0x1c00
8004e88: 687b ldr r3, [r7, #4]
8004e8a: 60da str r2, [r3, #12]
/* Get the APB2 configuration ----------------------------------------------*/
RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)((RCC->CFGR & RCC_CFGR_PPRE2) >> 3U);
8004e8c: 4b09 ldr r3, [pc, #36] @ (8004eb4 <HAL_RCC_GetClockConfig+0x5c>)
8004e8e: 689b ldr r3, [r3, #8]
8004e90: 08db lsrs r3, r3, #3
8004e92: f403 52e0 and.w r2, r3, #7168 @ 0x1c00
8004e96: 687b ldr r3, [r7, #4]
8004e98: 611a str r2, [r3, #16]
/* Get the Flash Wait State (Latency) configuration ------------------------*/
*pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
8004e9a: 4b07 ldr r3, [pc, #28] @ (8004eb8 <HAL_RCC_GetClockConfig+0x60>)
8004e9c: 681b ldr r3, [r3, #0]
8004e9e: f003 020f and.w r2, r3, #15
8004ea2: 683b ldr r3, [r7, #0]
8004ea4: 601a str r2, [r3, #0]
}
8004ea6: bf00 nop
8004ea8: 370c adds r7, #12
8004eaa: 46bd mov sp, r7
8004eac: f85d 7b04 ldr.w r7, [sp], #4
8004eb0: 4770 bx lr
8004eb2: bf00 nop
8004eb4: 40023800 .word 0x40023800
8004eb8: 40023c00 .word 0x40023c00
08004ebc <HAL_RCCEx_PeriphCLKConfig>:
* the backup registers) and RCC_BDCR register are set to their reset values.
*
* @retval HAL status
*/
HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
{
8004ebc: b580 push {r7, lr}
8004ebe: b086 sub sp, #24
8004ec0: af00 add r7, sp, #0
8004ec2: 6078 str r0, [r7, #4]
uint32_t tickstart = 0U;
8004ec4: 2300 movs r3, #0
8004ec6: 617b str r3, [r7, #20]
uint32_t tmpreg1 = 0U;
8004ec8: 2300 movs r3, #0
8004eca: 613b str r3, [r7, #16]
/*----------------------- SAI/I2S Configuration (PLLI2S) -------------------*/
/*----------------------- Common configuration SAI/I2S ---------------------*/
/* In Case of SAI or I2S Clock Configuration through PLLI2S, PLLI2SN division
factor is common parameters for both peripherals */
if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == RCC_PERIPHCLK_I2S) ||
8004ecc: 687b ldr r3, [r7, #4]
8004ece: 681b ldr r3, [r3, #0]
8004ed0: f003 0301 and.w r3, r3, #1
8004ed4: 2b00 cmp r3, #0
8004ed6: d10b bne.n 8004ef0 <HAL_RCCEx_PeriphCLKConfig+0x34>
(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLI2S) == RCC_PERIPHCLK_SAI_PLLI2S) ||
8004ed8: 687b ldr r3, [r7, #4]
8004eda: 681b ldr r3, [r3, #0]
8004edc: f003 0302 and.w r3, r3, #2
if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == RCC_PERIPHCLK_I2S) ||
8004ee0: 2b00 cmp r3, #0
8004ee2: d105 bne.n 8004ef0 <HAL_RCCEx_PeriphCLKConfig+0x34>
(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S))
8004ee4: 687b ldr r3, [r7, #4]
8004ee6: 681b ldr r3, [r3, #0]
8004ee8: f003 0340 and.w r3, r3, #64 @ 0x40
(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLI2S) == RCC_PERIPHCLK_SAI_PLLI2S) ||
8004eec: 2b00 cmp r3, #0
8004eee: d075 beq.n 8004fdc <HAL_RCCEx_PeriphCLKConfig+0x120>
{
/* check for Parameters */
assert_param(IS_RCC_PLLI2SN_VALUE(PeriphClkInit->PLLI2S.PLLI2SN));
/* Disable the PLLI2S */
__HAL_RCC_PLLI2S_DISABLE();
8004ef0: 4b91 ldr r3, [pc, #580] @ (8005138 <HAL_RCCEx_PeriphCLKConfig+0x27c>)
8004ef2: 2200 movs r2, #0
8004ef4: 601a str r2, [r3, #0]
/* Get tick */
tickstart = HAL_GetTick();
8004ef6: f7fc fba9 bl 800164c <HAL_GetTick>
8004efa: 6178 str r0, [r7, #20]
/* Wait till PLLI2S is disabled */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET)
8004efc: e008 b.n 8004f10 <HAL_RCCEx_PeriphCLKConfig+0x54>
{
if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE)
8004efe: f7fc fba5 bl 800164c <HAL_GetTick>
8004f02: 4602 mov r2, r0
8004f04: 697b ldr r3, [r7, #20]
8004f06: 1ad3 subs r3, r2, r3
8004f08: 2b02 cmp r3, #2
8004f0a: d901 bls.n 8004f10 <HAL_RCCEx_PeriphCLKConfig+0x54>
{
/* return in case of Timeout detected */
return HAL_TIMEOUT;
8004f0c: 2303 movs r3, #3
8004f0e: e189 b.n 8005224 <HAL_RCCEx_PeriphCLKConfig+0x368>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET)
8004f10: 4b8a ldr r3, [pc, #552] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8004f12: 681b ldr r3, [r3, #0]
8004f14: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
8004f18: 2b00 cmp r3, #0
8004f1a: d1f0 bne.n 8004efe <HAL_RCCEx_PeriphCLKConfig+0x42>
}
/*---------------------------- I2S configuration -------------------------*/
/* In Case of I2S Clock Configuration through PLLI2S, PLLI2SR must be added
only for I2S configuration */
if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == (RCC_PERIPHCLK_I2S))
8004f1c: 687b ldr r3, [r7, #4]
8004f1e: 681b ldr r3, [r3, #0]
8004f20: f003 0301 and.w r3, r3, #1
8004f24: 2b00 cmp r3, #0
8004f26: d009 beq.n 8004f3c <HAL_RCCEx_PeriphCLKConfig+0x80>
/* check for Parameters */
assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR));
/* Configure the PLLI2S division factors */
/* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) * (PLLI2SN/PLLM) */
/* I2SCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SR */
__HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN, PeriphClkInit->PLLI2S.PLLI2SR);
8004f28: 687b ldr r3, [r7, #4]
8004f2a: 685b ldr r3, [r3, #4]
8004f2c: 019a lsls r2, r3, #6
8004f2e: 687b ldr r3, [r7, #4]
8004f30: 689b ldr r3, [r3, #8]
8004f32: 071b lsls r3, r3, #28
8004f34: 4981 ldr r1, [pc, #516] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8004f36: 4313 orrs r3, r2
8004f38: f8c1 3084 str.w r3, [r1, #132] @ 0x84
}
/*---------------------------- SAI configuration -------------------------*/
/* In Case of SAI Clock Configuration through PLLI2S, PLLI2SQ and PLLI2S_DIVQ must
be added only for SAI configuration */
if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLI2S) == (RCC_PERIPHCLK_SAI_PLLI2S))
8004f3c: 687b ldr r3, [r7, #4]
8004f3e: 681b ldr r3, [r3, #0]
8004f40: f003 0302 and.w r3, r3, #2
8004f44: 2b00 cmp r3, #0
8004f46: d01f beq.n 8004f88 <HAL_RCCEx_PeriphCLKConfig+0xcc>
/* Check the PLLI2S division factors */
assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ));
assert_param(IS_RCC_PLLI2S_DIVQ_VALUE(PeriphClkInit->PLLI2SDivQ));
/* Read PLLI2SR value from PLLI2SCFGR register (this value is not need for SAI configuration) */
tmpreg1 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos);
8004f48: 4b7c ldr r3, [pc, #496] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8004f4a: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
8004f4e: 0f1b lsrs r3, r3, #28
8004f50: f003 0307 and.w r3, r3, #7
8004f54: 613b str r3, [r7, #16]
/* Configure the PLLI2S division factors */
/* PLLI2S_VCO Input = PLL_SOURCE/PLLM */
/* PLLI2S_VCO Output = PLLI2S_VCO Input * PLLI2SN */
/* SAI_CLK(first level) = PLLI2S_VCO Output/PLLI2SQ */
__HAL_RCC_PLLI2S_SAICLK_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN, PeriphClkInit->PLLI2S.PLLI2SQ, tmpreg1);
8004f56: 687b ldr r3, [r7, #4]
8004f58: 685b ldr r3, [r3, #4]
8004f5a: 019a lsls r2, r3, #6
8004f5c: 687b ldr r3, [r7, #4]
8004f5e: 68db ldr r3, [r3, #12]
8004f60: 061b lsls r3, r3, #24
8004f62: 431a orrs r2, r3
8004f64: 693b ldr r3, [r7, #16]
8004f66: 071b lsls r3, r3, #28
8004f68: 4974 ldr r1, [pc, #464] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8004f6a: 4313 orrs r3, r2
8004f6c: f8c1 3084 str.w r3, [r1, #132] @ 0x84
/* SAI_CLK_x = SAI_CLK(first level)/PLLI2SDIVQ */
__HAL_RCC_PLLI2S_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLI2SDivQ);
8004f70: 4b72 ldr r3, [pc, #456] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8004f72: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
8004f76: f023 021f bic.w r2, r3, #31
8004f7a: 687b ldr r3, [r7, #4]
8004f7c: 69db ldr r3, [r3, #28]
8004f7e: 3b01 subs r3, #1
8004f80: 496e ldr r1, [pc, #440] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8004f82: 4313 orrs r3, r2
8004f84: f8c1 308c str.w r3, [r1, #140] @ 0x8c
}
/*----------------- In Case of PLLI2S is just selected -----------------*/
if ((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S)
8004f88: 687b ldr r3, [r7, #4]
8004f8a: 681b ldr r3, [r3, #0]
8004f8c: f003 0340 and.w r3, r3, #64 @ 0x40
8004f90: 2b00 cmp r3, #0
8004f92: d00d beq.n 8004fb0 <HAL_RCCEx_PeriphCLKConfig+0xf4>
/* Check for Parameters */
assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ));
assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR));
/* Configure the PLLI2S multiplication and division factors */
__HAL_RCC_PLLI2S_SAICLK_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN, PeriphClkInit->PLLI2S.PLLI2SQ,
8004f94: 687b ldr r3, [r7, #4]
8004f96: 685b ldr r3, [r3, #4]
8004f98: 019a lsls r2, r3, #6
8004f9a: 687b ldr r3, [r7, #4]
8004f9c: 68db ldr r3, [r3, #12]
8004f9e: 061b lsls r3, r3, #24
8004fa0: 431a orrs r2, r3
8004fa2: 687b ldr r3, [r7, #4]
8004fa4: 689b ldr r3, [r3, #8]
8004fa6: 071b lsls r3, r3, #28
8004fa8: 4964 ldr r1, [pc, #400] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8004faa: 4313 orrs r3, r2
8004fac: f8c1 3084 str.w r3, [r1, #132] @ 0x84
PeriphClkInit->PLLI2S.PLLI2SR);
}
/* Enable the PLLI2S */
__HAL_RCC_PLLI2S_ENABLE();
8004fb0: 4b61 ldr r3, [pc, #388] @ (8005138 <HAL_RCCEx_PeriphCLKConfig+0x27c>)
8004fb2: 2201 movs r2, #1
8004fb4: 601a str r2, [r3, #0]
/* Get tick */
tickstart = HAL_GetTick();
8004fb6: f7fc fb49 bl 800164c <HAL_GetTick>
8004fba: 6178 str r0, [r7, #20]
/* Wait till PLLI2S is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET)
8004fbc: e008 b.n 8004fd0 <HAL_RCCEx_PeriphCLKConfig+0x114>
{
if ((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE)
8004fbe: f7fc fb45 bl 800164c <HAL_GetTick>
8004fc2: 4602 mov r2, r0
8004fc4: 697b ldr r3, [r7, #20]
8004fc6: 1ad3 subs r3, r2, r3
8004fc8: 2b02 cmp r3, #2
8004fca: d901 bls.n 8004fd0 <HAL_RCCEx_PeriphCLKConfig+0x114>
{
/* return in case of Timeout detected */
return HAL_TIMEOUT;
8004fcc: 2303 movs r3, #3
8004fce: e129 b.n 8005224 <HAL_RCCEx_PeriphCLKConfig+0x368>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET)
8004fd0: 4b5a ldr r3, [pc, #360] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8004fd2: 681b ldr r3, [r3, #0]
8004fd4: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
8004fd8: 2b00 cmp r3, #0
8004fda: d0f0 beq.n 8004fbe <HAL_RCCEx_PeriphCLKConfig+0x102>
/*----------------------- SAI/LTDC Configuration (PLLSAI) ------------------*/
/*----------------------- Common configuration SAI/LTDC --------------------*/
/* In Case of SAI or LTDC Clock Configuration through PLLSAI, PLLSAIN division
factor is common parameters for both peripherals */
if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLSAI) == RCC_PERIPHCLK_SAI_PLLSAI) ||
8004fdc: 687b ldr r3, [r7, #4]
8004fde: 681b ldr r3, [r3, #0]
8004fe0: f003 0304 and.w r3, r3, #4
8004fe4: 2b00 cmp r3, #0
8004fe6: d105 bne.n 8004ff4 <HAL_RCCEx_PeriphCLKConfig+0x138>
(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LTDC) == RCC_PERIPHCLK_LTDC))
8004fe8: 687b ldr r3, [r7, #4]
8004fea: 681b ldr r3, [r3, #0]
8004fec: f003 0308 and.w r3, r3, #8
if ((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLSAI) == RCC_PERIPHCLK_SAI_PLLSAI) ||
8004ff0: 2b00 cmp r3, #0
8004ff2: d079 beq.n 80050e8 <HAL_RCCEx_PeriphCLKConfig+0x22c>
{
/* Check the PLLSAI division factors */
assert_param(IS_RCC_PLLSAIN_VALUE(PeriphClkInit->PLLSAI.PLLSAIN));
/* Disable PLLSAI Clock */
__HAL_RCC_PLLSAI_DISABLE();
8004ff4: 4b52 ldr r3, [pc, #328] @ (8005140 <HAL_RCCEx_PeriphCLKConfig+0x284>)
8004ff6: 2200 movs r2, #0
8004ff8: 601a str r2, [r3, #0]
/* Get tick */
tickstart = HAL_GetTick();
8004ffa: f7fc fb27 bl 800164c <HAL_GetTick>
8004ffe: 6178 str r0, [r7, #20]
/* Wait till PLLSAI is disabled */
while (__HAL_RCC_PLLSAI_GET_FLAG() != RESET)
8005000: e008 b.n 8005014 <HAL_RCCEx_PeriphCLKConfig+0x158>
{
if ((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE)
8005002: f7fc fb23 bl 800164c <HAL_GetTick>
8005006: 4602 mov r2, r0
8005008: 697b ldr r3, [r7, #20]
800500a: 1ad3 subs r3, r2, r3
800500c: 2b02 cmp r3, #2
800500e: d901 bls.n 8005014 <HAL_RCCEx_PeriphCLKConfig+0x158>
{
/* return in case of Timeout detected */
return HAL_TIMEOUT;
8005010: 2303 movs r3, #3
8005012: e107 b.n 8005224 <HAL_RCCEx_PeriphCLKConfig+0x368>
while (__HAL_RCC_PLLSAI_GET_FLAG() != RESET)
8005014: 4b49 ldr r3, [pc, #292] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8005016: 681b ldr r3, [r3, #0]
8005018: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
800501c: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
8005020: d0ef beq.n 8005002 <HAL_RCCEx_PeriphCLKConfig+0x146>
}
/*---------------------------- SAI configuration -------------------------*/
/* In Case of SAI Clock Configuration through PLLSAI, PLLSAIQ and PLLSAI_DIVQ must
be added only for SAI configuration */
if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI_PLLSAI) == (RCC_PERIPHCLK_SAI_PLLSAI))
8005022: 687b ldr r3, [r7, #4]
8005024: 681b ldr r3, [r3, #0]
8005026: f003 0304 and.w r3, r3, #4
800502a: 2b00 cmp r3, #0
800502c: d020 beq.n 8005070 <HAL_RCCEx_PeriphCLKConfig+0x1b4>
{
assert_param(IS_RCC_PLLSAIQ_VALUE(PeriphClkInit->PLLSAI.PLLSAIQ));
assert_param(IS_RCC_PLLSAI_DIVQ_VALUE(PeriphClkInit->PLLSAIDivQ));
/* Read PLLSAIR value from PLLSAICFGR register (this value is not need for SAI configuration) */
tmpreg1 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIR) >> RCC_PLLSAICFGR_PLLSAIR_Pos);
800502e: 4b43 ldr r3, [pc, #268] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8005030: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
8005034: 0f1b lsrs r3, r3, #28
8005036: f003 0307 and.w r3, r3, #7
800503a: 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.PLLSAIN, PeriphClkInit->PLLSAI.PLLSAIQ, tmpreg1);
800503c: 687b ldr r3, [r7, #4]
800503e: 691b ldr r3, [r3, #16]
8005040: 019a lsls r2, r3, #6
8005042: 687b ldr r3, [r7, #4]
8005044: 695b ldr r3, [r3, #20]
8005046: 061b lsls r3, r3, #24
8005048: 431a orrs r2, r3
800504a: 693b ldr r3, [r7, #16]
800504c: 071b lsls r3, r3, #28
800504e: 493b ldr r1, [pc, #236] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8005050: 4313 orrs r3, r2
8005052: f8c1 3088 str.w r3, [r1, #136] @ 0x88
/* SAI_CLK_x = SAI_CLK(first level)/PLLSAIDIVQ */
__HAL_RCC_PLLSAI_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLSAIDivQ);
8005056: 4b39 ldr r3, [pc, #228] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8005058: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
800505c: f423 52f8 bic.w r2, r3, #7936 @ 0x1f00
8005060: 687b ldr r3, [r7, #4]
8005062: 6a1b ldr r3, [r3, #32]
8005064: 3b01 subs r3, #1
8005066: 021b lsls r3, r3, #8
8005068: 4934 ldr r1, [pc, #208] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
800506a: 4313 orrs r3, r2
800506c: f8c1 308c str.w r3, [r1, #140] @ 0x8c
}
/*---------------------------- LTDC configuration ------------------------*/
if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LTDC) == (RCC_PERIPHCLK_LTDC))
8005070: 687b ldr r3, [r7, #4]
8005072: 681b ldr r3, [r3, #0]
8005074: f003 0308 and.w r3, r3, #8
8005078: 2b00 cmp r3, #0
800507a: d01e beq.n 80050ba <HAL_RCCEx_PeriphCLKConfig+0x1fe>
{
assert_param(IS_RCC_PLLSAIR_VALUE(PeriphClkInit->PLLSAI.PLLSAIR));
assert_param(IS_RCC_PLLSAI_DIVR_VALUE(PeriphClkInit->PLLSAIDivR));
/* Read PLLSAIR value from PLLSAICFGR register (this value is not need for SAI configuration) */
tmpreg1 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos);
800507c: 4b2f ldr r3, [pc, #188] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
800507e: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
8005082: 0e1b lsrs r3, r3, #24
8005084: f003 030f and.w r3, r3, #15
8005088: 613b str r3, [r7, #16]
/* PLLSAI_VCO Input = PLL_SOURCE/PLLM */
/* PLLSAI_VCO Output = PLLSAI_VCO Input * PLLSAIN */
/* LTDC_CLK(first level) = PLLSAI_VCO Output/PLLSAIR */
__HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN, tmpreg1, PeriphClkInit->PLLSAI.PLLSAIR);
800508a: 687b ldr r3, [r7, #4]
800508c: 691b ldr r3, [r3, #16]
800508e: 019a lsls r2, r3, #6
8005090: 693b ldr r3, [r7, #16]
8005092: 061b lsls r3, r3, #24
8005094: 431a orrs r2, r3
8005096: 687b ldr r3, [r7, #4]
8005098: 699b ldr r3, [r3, #24]
800509a: 071b lsls r3, r3, #28
800509c: 4927 ldr r1, [pc, #156] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
800509e: 4313 orrs r3, r2
80050a0: f8c1 3088 str.w r3, [r1, #136] @ 0x88
/* LTDC_CLK = LTDC_CLK(first level)/PLLSAIDIVR */
__HAL_RCC_PLLSAI_PLLSAICLKDIVR_CONFIG(PeriphClkInit->PLLSAIDivR);
80050a4: 4b25 ldr r3, [pc, #148] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
80050a6: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
80050aa: f423 3240 bic.w r2, r3, #196608 @ 0x30000
80050ae: 687b ldr r3, [r7, #4]
80050b0: 6a5b ldr r3, [r3, #36] @ 0x24
80050b2: 4922 ldr r1, [pc, #136] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
80050b4: 4313 orrs r3, r2
80050b6: f8c1 308c str.w r3, [r1, #140] @ 0x8c
}
/* Enable PLLSAI Clock */
__HAL_RCC_PLLSAI_ENABLE();
80050ba: 4b21 ldr r3, [pc, #132] @ (8005140 <HAL_RCCEx_PeriphCLKConfig+0x284>)
80050bc: 2201 movs r2, #1
80050be: 601a str r2, [r3, #0]
/* Get tick */
tickstart = HAL_GetTick();
80050c0: f7fc fac4 bl 800164c <HAL_GetTick>
80050c4: 6178 str r0, [r7, #20]
/* Wait till PLLSAI is ready */
while (__HAL_RCC_PLLSAI_GET_FLAG() == RESET)
80050c6: e008 b.n 80050da <HAL_RCCEx_PeriphCLKConfig+0x21e>
{
if ((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE)
80050c8: f7fc fac0 bl 800164c <HAL_GetTick>
80050cc: 4602 mov r2, r0
80050ce: 697b ldr r3, [r7, #20]
80050d0: 1ad3 subs r3, r2, r3
80050d2: 2b02 cmp r3, #2
80050d4: d901 bls.n 80050da <HAL_RCCEx_PeriphCLKConfig+0x21e>
{
/* return in case of Timeout detected */
return HAL_TIMEOUT;
80050d6: 2303 movs r3, #3
80050d8: e0a4 b.n 8005224 <HAL_RCCEx_PeriphCLKConfig+0x368>
while (__HAL_RCC_PLLSAI_GET_FLAG() == RESET)
80050da: 4b18 ldr r3, [pc, #96] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
80050dc: 681b ldr r3, [r3, #0]
80050de: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
80050e2: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
80050e6: d1ef bne.n 80050c8 <HAL_RCCEx_PeriphCLKConfig+0x20c>
}
}
/*--------------------------------------------------------------------------*/
/*---------------------------- RTC configuration ---------------------------*/
if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC))
80050e8: 687b ldr r3, [r7, #4]
80050ea: 681b ldr r3, [r3, #0]
80050ec: f003 0320 and.w r3, r3, #32
80050f0: 2b00 cmp r3, #0
80050f2: f000 808b beq.w 800520c <HAL_RCCEx_PeriphCLKConfig+0x350>
{
/* Check for RTC Parameters used to output RTCCLK */
assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
/* Enable Power Clock*/
__HAL_RCC_PWR_CLK_ENABLE();
80050f6: 2300 movs r3, #0
80050f8: 60fb str r3, [r7, #12]
80050fa: 4b10 ldr r3, [pc, #64] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
80050fc: 6c1b ldr r3, [r3, #64] @ 0x40
80050fe: 4a0f ldr r2, [pc, #60] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8005100: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
8005104: 6413 str r3, [r2, #64] @ 0x40
8005106: 4b0d ldr r3, [pc, #52] @ (800513c <HAL_RCCEx_PeriphCLKConfig+0x280>)
8005108: 6c1b ldr r3, [r3, #64] @ 0x40
800510a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
800510e: 60fb str r3, [r7, #12]
8005110: 68fb ldr r3, [r7, #12]
/* Enable write access to Backup domain */
PWR->CR |= PWR_CR_DBP;
8005112: 4b0c ldr r3, [pc, #48] @ (8005144 <HAL_RCCEx_PeriphCLKConfig+0x288>)
8005114: 681b ldr r3, [r3, #0]
8005116: 4a0b ldr r2, [pc, #44] @ (8005144 <HAL_RCCEx_PeriphCLKConfig+0x288>)
8005118: f443 7380 orr.w r3, r3, #256 @ 0x100
800511c: 6013 str r3, [r2, #0]
/* Get tick */
tickstart = HAL_GetTick();
800511e: f7fc fa95 bl 800164c <HAL_GetTick>
8005122: 6178 str r0, [r7, #20]
while ((PWR->CR & PWR_CR_DBP) == RESET)
8005124: e010 b.n 8005148 <HAL_RCCEx_PeriphCLKConfig+0x28c>
{
if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
8005126: f7fc fa91 bl 800164c <HAL_GetTick>
800512a: 4602 mov r2, r0
800512c: 697b ldr r3, [r7, #20]
800512e: 1ad3 subs r3, r2, r3
8005130: 2b02 cmp r3, #2
8005132: d909 bls.n 8005148 <HAL_RCCEx_PeriphCLKConfig+0x28c>
{
return HAL_TIMEOUT;
8005134: 2303 movs r3, #3
8005136: e075 b.n 8005224 <HAL_RCCEx_PeriphCLKConfig+0x368>
8005138: 42470068 .word 0x42470068
800513c: 40023800 .word 0x40023800
8005140: 42470070 .word 0x42470070
8005144: 40007000 .word 0x40007000
while ((PWR->CR & PWR_CR_DBP) == RESET)
8005148: 4b38 ldr r3, [pc, #224] @ (800522c <HAL_RCCEx_PeriphCLKConfig+0x370>)
800514a: 681b ldr r3, [r3, #0]
800514c: f403 7380 and.w r3, r3, #256 @ 0x100
8005150: 2b00 cmp r3, #0
8005152: d0e8 beq.n 8005126 <HAL_RCCEx_PeriphCLKConfig+0x26a>
}
}
/* Reset the Backup domain only if the RTC Clock source selection is modified from reset value */
tmpreg1 = (RCC->BDCR & RCC_BDCR_RTCSEL);
8005154: 4b36 ldr r3, [pc, #216] @ (8005230 <HAL_RCCEx_PeriphCLKConfig+0x374>)
8005156: 6f1b ldr r3, [r3, #112] @ 0x70
8005158: f403 7340 and.w r3, r3, #768 @ 0x300
800515c: 613b str r3, [r7, #16]
if ((tmpreg1 != 0x00000000U) && ((tmpreg1) != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL)))
800515e: 693b ldr r3, [r7, #16]
8005160: 2b00 cmp r3, #0
8005162: d02f beq.n 80051c4 <HAL_RCCEx_PeriphCLKConfig+0x308>
8005164: 687b ldr r3, [r7, #4]
8005166: 6a9b ldr r3, [r3, #40] @ 0x28
8005168: f403 7340 and.w r3, r3, #768 @ 0x300
800516c: 693a ldr r2, [r7, #16]
800516e: 429a cmp r2, r3
8005170: d028 beq.n 80051c4 <HAL_RCCEx_PeriphCLKConfig+0x308>
{
/* Store the content of BDCR register before the reset of Backup Domain */
tmpreg1 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
8005172: 4b2f ldr r3, [pc, #188] @ (8005230 <HAL_RCCEx_PeriphCLKConfig+0x374>)
8005174: 6f1b ldr r3, [r3, #112] @ 0x70
8005176: f423 7340 bic.w r3, r3, #768 @ 0x300
800517a: 613b str r3, [r7, #16]
/* RTC Clock selection can be changed only if the Backup Domain is reset */
__HAL_RCC_BACKUPRESET_FORCE();
800517c: 4b2d ldr r3, [pc, #180] @ (8005234 <HAL_RCCEx_PeriphCLKConfig+0x378>)
800517e: 2201 movs r2, #1
8005180: 601a str r2, [r3, #0]
__HAL_RCC_BACKUPRESET_RELEASE();
8005182: 4b2c ldr r3, [pc, #176] @ (8005234 <HAL_RCCEx_PeriphCLKConfig+0x378>)
8005184: 2200 movs r2, #0
8005186: 601a str r2, [r3, #0]
/* Restore the Content of BDCR register */
RCC->BDCR = tmpreg1;
8005188: 4a29 ldr r2, [pc, #164] @ (8005230 <HAL_RCCEx_PeriphCLKConfig+0x374>)
800518a: 693b ldr r3, [r7, #16]
800518c: 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))
800518e: 4b28 ldr r3, [pc, #160] @ (8005230 <HAL_RCCEx_PeriphCLKConfig+0x374>)
8005190: 6f1b ldr r3, [r3, #112] @ 0x70
8005192: f003 0301 and.w r3, r3, #1
8005196: 2b01 cmp r3, #1
8005198: d114 bne.n 80051c4 <HAL_RCCEx_PeriphCLKConfig+0x308>
{
/* Get tick */
tickstart = HAL_GetTick();
800519a: f7fc fa57 bl 800164c <HAL_GetTick>
800519e: 6178 str r0, [r7, #20]
/* Wait till LSE is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
80051a0: e00a b.n 80051b8 <HAL_RCCEx_PeriphCLKConfig+0x2fc>
{
if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
80051a2: f7fc fa53 bl 800164c <HAL_GetTick>
80051a6: 4602 mov r2, r0
80051a8: 697b ldr r3, [r7, #20]
80051aa: 1ad3 subs r3, r2, r3
80051ac: f241 3288 movw r2, #5000 @ 0x1388
80051b0: 4293 cmp r3, r2
80051b2: d901 bls.n 80051b8 <HAL_RCCEx_PeriphCLKConfig+0x2fc>
{
return HAL_TIMEOUT;
80051b4: 2303 movs r3, #3
80051b6: e035 b.n 8005224 <HAL_RCCEx_PeriphCLKConfig+0x368>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
80051b8: 4b1d ldr r3, [pc, #116] @ (8005230 <HAL_RCCEx_PeriphCLKConfig+0x374>)
80051ba: 6f1b ldr r3, [r3, #112] @ 0x70
80051bc: f003 0302 and.w r3, r3, #2
80051c0: 2b00 cmp r3, #0
80051c2: d0ee beq.n 80051a2 <HAL_RCCEx_PeriphCLKConfig+0x2e6>
}
}
}
}
__HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
80051c4: 687b ldr r3, [r7, #4]
80051c6: 6a9b ldr r3, [r3, #40] @ 0x28
80051c8: f403 7340 and.w r3, r3, #768 @ 0x300
80051cc: f5b3 7f40 cmp.w r3, #768 @ 0x300
80051d0: d10d bne.n 80051ee <HAL_RCCEx_PeriphCLKConfig+0x332>
80051d2: 4b17 ldr r3, [pc, #92] @ (8005230 <HAL_RCCEx_PeriphCLKConfig+0x374>)
80051d4: 689b ldr r3, [r3, #8]
80051d6: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000
80051da: 687b ldr r3, [r7, #4]
80051dc: 6a9b ldr r3, [r3, #40] @ 0x28
80051de: f023 4370 bic.w r3, r3, #4026531840 @ 0xf0000000
80051e2: f423 7340 bic.w r3, r3, #768 @ 0x300
80051e6: 4912 ldr r1, [pc, #72] @ (8005230 <HAL_RCCEx_PeriphCLKConfig+0x374>)
80051e8: 4313 orrs r3, r2
80051ea: 608b str r3, [r1, #8]
80051ec: e005 b.n 80051fa <HAL_RCCEx_PeriphCLKConfig+0x33e>
80051ee: 4b10 ldr r3, [pc, #64] @ (8005230 <HAL_RCCEx_PeriphCLKConfig+0x374>)
80051f0: 689b ldr r3, [r3, #8]
80051f2: 4a0f ldr r2, [pc, #60] @ (8005230 <HAL_RCCEx_PeriphCLKConfig+0x374>)
80051f4: f423 13f8 bic.w r3, r3, #2031616 @ 0x1f0000
80051f8: 6093 str r3, [r2, #8]
80051fa: 4b0d ldr r3, [pc, #52] @ (8005230 <HAL_RCCEx_PeriphCLKConfig+0x374>)
80051fc: 6f1a ldr r2, [r3, #112] @ 0x70
80051fe: 687b ldr r3, [r7, #4]
8005200: 6a9b ldr r3, [r3, #40] @ 0x28
8005202: f3c3 030b ubfx r3, r3, #0, #12
8005206: 490a ldr r1, [pc, #40] @ (8005230 <HAL_RCCEx_PeriphCLKConfig+0x374>)
8005208: 4313 orrs r3, r2
800520a: 670b str r3, [r1, #112] @ 0x70
}
/*--------------------------------------------------------------------------*/
/*---------------------------- TIM configuration ---------------------------*/
if (((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == (RCC_PERIPHCLK_TIM))
800520c: 687b ldr r3, [r7, #4]
800520e: 681b ldr r3, [r3, #0]
8005210: f003 0310 and.w r3, r3, #16
8005214: 2b00 cmp r3, #0
8005216: d004 beq.n 8005222 <HAL_RCCEx_PeriphCLKConfig+0x366>
{
__HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
8005218: 687b ldr r3, [r7, #4]
800521a: f893 202c ldrb.w r2, [r3, #44] @ 0x2c
800521e: 4b06 ldr r3, [pc, #24] @ (8005238 <HAL_RCCEx_PeriphCLKConfig+0x37c>)
8005220: 601a str r2, [r3, #0]
}
return HAL_OK;
8005222: 2300 movs r3, #0
}
8005224: 4618 mov r0, r3
8005226: 3718 adds r7, #24
8005228: 46bd mov sp, r7
800522a: bd80 pop {r7, pc}
800522c: 40007000 .word 0x40007000
8005230: 40023800 .word 0x40023800
8005234: 42470e40 .word 0x42470e40
8005238: 424711e0 .word 0x424711e0
0800523c <HAL_SDRAM_Init>:
* the configuration information for SDRAM module.
* @param Timing Pointer to SDRAM control timing structure
* @retval HAL status
*/
HAL_StatusTypeDef HAL_SDRAM_Init(SDRAM_HandleTypeDef *hsdram, FMC_SDRAM_TimingTypeDef *Timing)
{
800523c: b580 push {r7, lr}
800523e: b082 sub sp, #8
8005240: af00 add r7, sp, #0
8005242: 6078 str r0, [r7, #4]
8005244: 6039 str r1, [r7, #0]
/* Check the SDRAM handle parameter */
if (hsdram == NULL)
8005246: 687b ldr r3, [r7, #4]
8005248: 2b00 cmp r3, #0
800524a: d101 bne.n 8005250 <HAL_SDRAM_Init+0x14>
{
return HAL_ERROR;
800524c: 2301 movs r3, #1
800524e: e025 b.n 800529c <HAL_SDRAM_Init+0x60>
}
if (hsdram->State == HAL_SDRAM_STATE_RESET)
8005250: 687b ldr r3, [r7, #4]
8005252: f893 302c ldrb.w r3, [r3, #44] @ 0x2c
8005256: b2db uxtb r3, r3
8005258: 2b00 cmp r3, #0
800525a: d106 bne.n 800526a <HAL_SDRAM_Init+0x2e>
{
/* Allocate lock resource and initialize it */
hsdram->Lock = HAL_UNLOCKED;
800525c: 687b ldr r3, [r7, #4]
800525e: 2200 movs r2, #0
8005260: f883 202d strb.w r2, [r3, #45] @ 0x2d
/* Init the low level hardware */
hsdram->MspInitCallback(hsdram);
#else
/* Initialize the low level hardware (MSP) */
HAL_SDRAM_MspInit(hsdram);
8005264: 6878 ldr r0, [r7, #4]
8005266: f7fc f8b5 bl 80013d4 <HAL_SDRAM_MspInit>
#endif /* USE_HAL_SDRAM_REGISTER_CALLBACKS */
}
/* Initialize the SDRAM controller state */
hsdram->State = HAL_SDRAM_STATE_BUSY;
800526a: 687b ldr r3, [r7, #4]
800526c: 2202 movs r2, #2
800526e: f883 202c strb.w r2, [r3, #44] @ 0x2c
/* Initialize SDRAM control Interface */
(void)FMC_SDRAM_Init(hsdram->Instance, &(hsdram->Init));
8005272: 687b ldr r3, [r7, #4]
8005274: 681a ldr r2, [r3, #0]
8005276: 687b ldr r3, [r7, #4]
8005278: 3304 adds r3, #4
800527a: 4619 mov r1, r3
800527c: 4610 mov r0, r2
800527e: f000 ffcd bl 800621c <FMC_SDRAM_Init>
/* Initialize SDRAM timing Interface */
(void)FMC_SDRAM_Timing_Init(hsdram->Instance, Timing, hsdram->Init.SDBank);
8005282: 687b ldr r3, [r7, #4]
8005284: 6818 ldr r0, [r3, #0]
8005286: 687b ldr r3, [r7, #4]
8005288: 685b ldr r3, [r3, #4]
800528a: 461a mov r2, r3
800528c: 6839 ldr r1, [r7, #0]
800528e: f001 f822 bl 80062d6 <FMC_SDRAM_Timing_Init>
/* Update the SDRAM controller state */
hsdram->State = HAL_SDRAM_STATE_READY;
8005292: 687b ldr r3, [r7, #4]
8005294: 2201 movs r2, #1
8005296: f883 202c strb.w r2, [r3, #44] @ 0x2c
return HAL_OK;
800529a: 2300 movs r3, #0
}
800529c: 4618 mov r0, r3
800529e: 3708 adds r7, #8
80052a0: 46bd mov sp, r7
80052a2: bd80 pop {r7, pc}
080052a4 <HAL_SPI_Init>:
* @param hspi pointer to a SPI_HandleTypeDef structure that contains
* the configuration information for SPI module.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi)
{
80052a4: b580 push {r7, lr}
80052a6: b082 sub sp, #8
80052a8: af00 add r7, sp, #0
80052aa: 6078 str r0, [r7, #4]
/* Check the SPI handle allocation */
if (hspi == NULL)
80052ac: 687b ldr r3, [r7, #4]
80052ae: 2b00 cmp r3, #0
80052b0: d101 bne.n 80052b6 <HAL_SPI_Init+0x12>
{
return HAL_ERROR;
80052b2: 2301 movs r3, #1
80052b4: e07b b.n 80053ae <HAL_SPI_Init+0x10a>
assert_param(IS_SPI_DATASIZE(hspi->Init.DataSize));
assert_param(IS_SPI_NSS(hspi->Init.NSS));
assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler));
assert_param(IS_SPI_FIRST_BIT(hspi->Init.FirstBit));
assert_param(IS_SPI_TIMODE(hspi->Init.TIMode));
if (hspi->Init.TIMode == SPI_TIMODE_DISABLE)
80052b6: 687b ldr r3, [r7, #4]
80052b8: 6a5b ldr r3, [r3, #36] @ 0x24
80052ba: 2b00 cmp r3, #0
80052bc: d108 bne.n 80052d0 <HAL_SPI_Init+0x2c>
{
assert_param(IS_SPI_CPOL(hspi->Init.CLKPolarity));
assert_param(IS_SPI_CPHA(hspi->Init.CLKPhase));
if (hspi->Init.Mode == SPI_MODE_MASTER)
80052be: 687b ldr r3, [r7, #4]
80052c0: 685b ldr r3, [r3, #4]
80052c2: f5b3 7f82 cmp.w r3, #260 @ 0x104
80052c6: d009 beq.n 80052dc <HAL_SPI_Init+0x38>
assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler));
}
else
{
/* Baudrate prescaler not use in Motoraola Slave mode. force to default value */
hspi->Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2;
80052c8: 687b ldr r3, [r7, #4]
80052ca: 2200 movs r2, #0
80052cc: 61da str r2, [r3, #28]
80052ce: e005 b.n 80052dc <HAL_SPI_Init+0x38>
else
{
assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler));
/* Force polarity and phase to TI protocaol requirements */
hspi->Init.CLKPolarity = SPI_POLARITY_LOW;
80052d0: 687b ldr r3, [r7, #4]
80052d2: 2200 movs r2, #0
80052d4: 611a str r2, [r3, #16]
hspi->Init.CLKPhase = SPI_PHASE_1EDGE;
80052d6: 687b ldr r3, [r7, #4]
80052d8: 2200 movs r2, #0
80052da: 615a str r2, [r3, #20]
if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE)
{
assert_param(IS_SPI_CRC_POLYNOMIAL(hspi->Init.CRCPolynomial));
}
#else
hspi->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
80052dc: 687b ldr r3, [r7, #4]
80052de: 2200 movs r2, #0
80052e0: 629a str r2, [r3, #40] @ 0x28
#endif /* USE_SPI_CRC */
if (hspi->State == HAL_SPI_STATE_RESET)
80052e2: 687b ldr r3, [r7, #4]
80052e4: f893 3051 ldrb.w r3, [r3, #81] @ 0x51
80052e8: b2db uxtb r3, r3
80052ea: 2b00 cmp r3, #0
80052ec: d106 bne.n 80052fc <HAL_SPI_Init+0x58>
{
/* Allocate lock resource and initialize it */
hspi->Lock = HAL_UNLOCKED;
80052ee: 687b ldr r3, [r7, #4]
80052f0: 2200 movs r2, #0
80052f2: f883 2050 strb.w r2, [r3, #80] @ 0x50
/* Init the low level hardware : GPIO, CLOCK, NVIC... */
hspi->MspInitCallback(hspi);
#else
/* Init the low level hardware : GPIO, CLOCK, NVIC... */
HAL_SPI_MspInit(hspi);
80052f6: 6878 ldr r0, [r7, #4]
80052f8: f7fb ff28 bl 800114c <HAL_SPI_MspInit>
#endif /* USE_HAL_SPI_REGISTER_CALLBACKS */
}
hspi->State = HAL_SPI_STATE_BUSY;
80052fc: 687b ldr r3, [r7, #4]
80052fe: 2202 movs r2, #2
8005300: f883 2051 strb.w r2, [r3, #81] @ 0x51
/* Disable the selected SPI peripheral */
__HAL_SPI_DISABLE(hspi);
8005304: 687b ldr r3, [r7, #4]
8005306: 681b ldr r3, [r3, #0]
8005308: 681a ldr r2, [r3, #0]
800530a: 687b ldr r3, [r7, #4]
800530c: 681b ldr r3, [r3, #0]
800530e: f022 0240 bic.w r2, r2, #64 @ 0x40
8005312: 601a str r2, [r3, #0]
/*----------------------- SPIx CR1 & CR2 Configuration ---------------------*/
/* Configure : SPI Mode, Communication Mode, Data size, Clock polarity and phase, NSS management,
Communication speed, First bit and CRC calculation state */
WRITE_REG(hspi->Instance->CR1, ((hspi->Init.Mode & (SPI_CR1_MSTR | SPI_CR1_SSI)) |
8005314: 687b ldr r3, [r7, #4]
8005316: 685b ldr r3, [r3, #4]
8005318: f403 7282 and.w r2, r3, #260 @ 0x104
800531c: 687b ldr r3, [r7, #4]
800531e: 689b ldr r3, [r3, #8]
8005320: f403 4304 and.w r3, r3, #33792 @ 0x8400
8005324: 431a orrs r2, r3
8005326: 687b ldr r3, [r7, #4]
8005328: 68db ldr r3, [r3, #12]
800532a: f403 6300 and.w r3, r3, #2048 @ 0x800
800532e: 431a orrs r2, r3
8005330: 687b ldr r3, [r7, #4]
8005332: 691b ldr r3, [r3, #16]
8005334: f003 0302 and.w r3, r3, #2
8005338: 431a orrs r2, r3
800533a: 687b ldr r3, [r7, #4]
800533c: 695b ldr r3, [r3, #20]
800533e: f003 0301 and.w r3, r3, #1
8005342: 431a orrs r2, r3
8005344: 687b ldr r3, [r7, #4]
8005346: 699b ldr r3, [r3, #24]
8005348: f403 7300 and.w r3, r3, #512 @ 0x200
800534c: 431a orrs r2, r3
800534e: 687b ldr r3, [r7, #4]
8005350: 69db ldr r3, [r3, #28]
8005352: f003 0338 and.w r3, r3, #56 @ 0x38
8005356: 431a orrs r2, r3
8005358: 687b ldr r3, [r7, #4]
800535a: 6a1b ldr r3, [r3, #32]
800535c: f003 0380 and.w r3, r3, #128 @ 0x80
8005360: ea42 0103 orr.w r1, r2, r3
8005364: 687b ldr r3, [r7, #4]
8005366: 6a9b ldr r3, [r3, #40] @ 0x28
8005368: f403 5200 and.w r2, r3, #8192 @ 0x2000
800536c: 687b ldr r3, [r7, #4]
800536e: 681b ldr r3, [r3, #0]
8005370: 430a orrs r2, r1
8005372: 601a str r2, [r3, #0]
(hspi->Init.BaudRatePrescaler & SPI_CR1_BR_Msk) |
(hspi->Init.FirstBit & SPI_CR1_LSBFIRST) |
(hspi->Init.CRCCalculation & SPI_CR1_CRCEN)));
/* Configure : NSS management, TI Mode */
WRITE_REG(hspi->Instance->CR2, (((hspi->Init.NSS >> 16U) & SPI_CR2_SSOE) | (hspi->Init.TIMode & SPI_CR2_FRF)));
8005374: 687b ldr r3, [r7, #4]
8005376: 699b ldr r3, [r3, #24]
8005378: 0c1b lsrs r3, r3, #16
800537a: f003 0104 and.w r1, r3, #4
800537e: 687b ldr r3, [r7, #4]
8005380: 6a5b ldr r3, [r3, #36] @ 0x24
8005382: f003 0210 and.w r2, r3, #16
8005386: 687b ldr r3, [r7, #4]
8005388: 681b ldr r3, [r3, #0]
800538a: 430a orrs r2, r1
800538c: 605a str r2, [r3, #4]
}
#endif /* USE_SPI_CRC */
#if defined(SPI_I2SCFGR_I2SMOD)
/* Activate the SPI mode (Make sure that I2SMOD bit in I2SCFGR register is reset) */
CLEAR_BIT(hspi->Instance->I2SCFGR, SPI_I2SCFGR_I2SMOD);
800538e: 687b ldr r3, [r7, #4]
8005390: 681b ldr r3, [r3, #0]
8005392: 69da ldr r2, [r3, #28]
8005394: 687b ldr r3, [r7, #4]
8005396: 681b ldr r3, [r3, #0]
8005398: f422 6200 bic.w r2, r2, #2048 @ 0x800
800539c: 61da str r2, [r3, #28]
#endif /* SPI_I2SCFGR_I2SMOD */
hspi->ErrorCode = HAL_SPI_ERROR_NONE;
800539e: 687b ldr r3, [r7, #4]
80053a0: 2200 movs r2, #0
80053a2: 655a str r2, [r3, #84] @ 0x54
hspi->State = HAL_SPI_STATE_READY;
80053a4: 687b ldr r3, [r7, #4]
80053a6: 2201 movs r2, #1
80053a8: f883 2051 strb.w r2, [r3, #81] @ 0x51
return HAL_OK;
80053ac: 2300 movs r3, #0
}
80053ae: 4618 mov r0, r3
80053b0: 3708 adds r7, #8
80053b2: 46bd mov sp, r7
80053b4: bd80 pop {r7, pc}
080053b6 <HAL_TIM_Base_Init>:
* Ex: call @ref HAL_TIM_Base_DeInit() before HAL_TIM_Base_Init()
* @param htim TIM Base handle
* @retval HAL status
*/
HAL_StatusTypeDef HAL_TIM_Base_Init(TIM_HandleTypeDef *htim)
{
80053b6: b580 push {r7, lr}
80053b8: b082 sub sp, #8
80053ba: af00 add r7, sp, #0
80053bc: 6078 str r0, [r7, #4]
/* Check the TIM handle allocation */
if (htim == NULL)
80053be: 687b ldr r3, [r7, #4]
80053c0: 2b00 cmp r3, #0
80053c2: d101 bne.n 80053c8 <HAL_TIM_Base_Init+0x12>
{
return HAL_ERROR;
80053c4: 2301 movs r3, #1
80053c6: e041 b.n 800544c <HAL_TIM_Base_Init+0x96>
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)
80053c8: 687b ldr r3, [r7, #4]
80053ca: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
80053ce: b2db uxtb r3, r3
80053d0: 2b00 cmp r3, #0
80053d2: d106 bne.n 80053e2 <HAL_TIM_Base_Init+0x2c>
{
/* Allocate lock resource and initialize it */
htim->Lock = HAL_UNLOCKED;
80053d4: 687b ldr r3, [r7, #4]
80053d6: 2200 movs r2, #0
80053d8: f883 203c strb.w r2, [r3, #60] @ 0x3c
}
/* Init the low level hardware : GPIO, CLOCK, NVIC */
htim->Base_MspInitCallback(htim);
#else
/* Init the low level hardware : GPIO, CLOCK, NVIC */
HAL_TIM_Base_MspInit(htim);
80053dc: 6878 ldr r0, [r7, #4]
80053de: f7fb fefd bl 80011dc <HAL_TIM_Base_MspInit>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
/* Set the TIM state */
htim->State = HAL_TIM_STATE_BUSY;
80053e2: 687b ldr r3, [r7, #4]
80053e4: 2202 movs r2, #2
80053e6: f883 203d strb.w r2, [r3, #61] @ 0x3d
/* Set the Time Base configuration */
TIM_Base_SetConfig(htim->Instance, &htim->Init);
80053ea: 687b ldr r3, [r7, #4]
80053ec: 681a ldr r2, [r3, #0]
80053ee: 687b ldr r3, [r7, #4]
80053f0: 3304 adds r3, #4
80053f2: 4619 mov r1, r3
80053f4: 4610 mov r0, r2
80053f6: f000 fa7d bl 80058f4 <TIM_Base_SetConfig>
/* Initialize the DMA burst operation state */
htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
80053fa: 687b ldr r3, [r7, #4]
80053fc: 2201 movs r2, #1
80053fe: f883 2046 strb.w r2, [r3, #70] @ 0x46
/* Initialize the TIM channels state */
TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
8005402: 687b ldr r3, [r7, #4]
8005404: 2201 movs r2, #1
8005406: f883 203e strb.w r2, [r3, #62] @ 0x3e
800540a: 687b ldr r3, [r7, #4]
800540c: 2201 movs r2, #1
800540e: f883 203f strb.w r2, [r3, #63] @ 0x3f
8005412: 687b ldr r3, [r7, #4]
8005414: 2201 movs r2, #1
8005416: f883 2040 strb.w r2, [r3, #64] @ 0x40
800541a: 687b ldr r3, [r7, #4]
800541c: 2201 movs r2, #1
800541e: f883 2041 strb.w r2, [r3, #65] @ 0x41
TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
8005422: 687b ldr r3, [r7, #4]
8005424: 2201 movs r2, #1
8005426: f883 2042 strb.w r2, [r3, #66] @ 0x42
800542a: 687b ldr r3, [r7, #4]
800542c: 2201 movs r2, #1
800542e: f883 2043 strb.w r2, [r3, #67] @ 0x43
8005432: 687b ldr r3, [r7, #4]
8005434: 2201 movs r2, #1
8005436: f883 2044 strb.w r2, [r3, #68] @ 0x44
800543a: 687b ldr r3, [r7, #4]
800543c: 2201 movs r2, #1
800543e: f883 2045 strb.w r2, [r3, #69] @ 0x45
/* Initialize the TIM state*/
htim->State = HAL_TIM_STATE_READY;
8005442: 687b ldr r3, [r7, #4]
8005444: 2201 movs r2, #1
8005446: f883 203d strb.w r2, [r3, #61] @ 0x3d
return HAL_OK;
800544a: 2300 movs r3, #0
}
800544c: 4618 mov r0, r3
800544e: 3708 adds r7, #8
8005450: 46bd mov sp, r7
8005452: bd80 pop {r7, pc}
08005454 <HAL_TIM_Base_Start_IT>:
* @brief Starts the TIM Base generation in interrupt mode.
* @param htim TIM Base handle
* @retval HAL status
*/
HAL_StatusTypeDef HAL_TIM_Base_Start_IT(TIM_HandleTypeDef *htim)
{
8005454: b480 push {r7}
8005456: b085 sub sp, #20
8005458: af00 add r7, sp, #0
800545a: 6078 str r0, [r7, #4]
/* Check the parameters */
assert_param(IS_TIM_INSTANCE(htim->Instance));
/* Check the TIM state */
if (htim->State != HAL_TIM_STATE_READY)
800545c: 687b ldr r3, [r7, #4]
800545e: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
8005462: b2db uxtb r3, r3
8005464: 2b01 cmp r3, #1
8005466: d001 beq.n 800546c <HAL_TIM_Base_Start_IT+0x18>
{
return HAL_ERROR;
8005468: 2301 movs r3, #1
800546a: e04e b.n 800550a <HAL_TIM_Base_Start_IT+0xb6>
}
/* Set the TIM state */
htim->State = HAL_TIM_STATE_BUSY;
800546c: 687b ldr r3, [r7, #4]
800546e: 2202 movs r2, #2
8005470: f883 203d strb.w r2, [r3, #61] @ 0x3d
/* Enable the TIM Update interrupt */
__HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
8005474: 687b ldr r3, [r7, #4]
8005476: 681b ldr r3, [r3, #0]
8005478: 68da ldr r2, [r3, #12]
800547a: 687b ldr r3, [r7, #4]
800547c: 681b ldr r3, [r3, #0]
800547e: f042 0201 orr.w r2, r2, #1
8005482: 60da str r2, [r3, #12]
/* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */
if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
8005484: 687b ldr r3, [r7, #4]
8005486: 681b ldr r3, [r3, #0]
8005488: 4a23 ldr r2, [pc, #140] @ (8005518 <HAL_TIM_Base_Start_IT+0xc4>)
800548a: 4293 cmp r3, r2
800548c: d022 beq.n 80054d4 <HAL_TIM_Base_Start_IT+0x80>
800548e: 687b ldr r3, [r7, #4]
8005490: 681b ldr r3, [r3, #0]
8005492: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
8005496: d01d beq.n 80054d4 <HAL_TIM_Base_Start_IT+0x80>
8005498: 687b ldr r3, [r7, #4]
800549a: 681b ldr r3, [r3, #0]
800549c: 4a1f ldr r2, [pc, #124] @ (800551c <HAL_TIM_Base_Start_IT+0xc8>)
800549e: 4293 cmp r3, r2
80054a0: d018 beq.n 80054d4 <HAL_TIM_Base_Start_IT+0x80>
80054a2: 687b ldr r3, [r7, #4]
80054a4: 681b ldr r3, [r3, #0]
80054a6: 4a1e ldr r2, [pc, #120] @ (8005520 <HAL_TIM_Base_Start_IT+0xcc>)
80054a8: 4293 cmp r3, r2
80054aa: d013 beq.n 80054d4 <HAL_TIM_Base_Start_IT+0x80>
80054ac: 687b ldr r3, [r7, #4]
80054ae: 681b ldr r3, [r3, #0]
80054b0: 4a1c ldr r2, [pc, #112] @ (8005524 <HAL_TIM_Base_Start_IT+0xd0>)
80054b2: 4293 cmp r3, r2
80054b4: d00e beq.n 80054d4 <HAL_TIM_Base_Start_IT+0x80>
80054b6: 687b ldr r3, [r7, #4]
80054b8: 681b ldr r3, [r3, #0]
80054ba: 4a1b ldr r2, [pc, #108] @ (8005528 <HAL_TIM_Base_Start_IT+0xd4>)
80054bc: 4293 cmp r3, r2
80054be: d009 beq.n 80054d4 <HAL_TIM_Base_Start_IT+0x80>
80054c0: 687b ldr r3, [r7, #4]
80054c2: 681b ldr r3, [r3, #0]
80054c4: 4a19 ldr r2, [pc, #100] @ (800552c <HAL_TIM_Base_Start_IT+0xd8>)
80054c6: 4293 cmp r3, r2
80054c8: d004 beq.n 80054d4 <HAL_TIM_Base_Start_IT+0x80>
80054ca: 687b ldr r3, [r7, #4]
80054cc: 681b ldr r3, [r3, #0]
80054ce: 4a18 ldr r2, [pc, #96] @ (8005530 <HAL_TIM_Base_Start_IT+0xdc>)
80054d0: 4293 cmp r3, r2
80054d2: d111 bne.n 80054f8 <HAL_TIM_Base_Start_IT+0xa4>
{
tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
80054d4: 687b ldr r3, [r7, #4]
80054d6: 681b ldr r3, [r3, #0]
80054d8: 689b ldr r3, [r3, #8]
80054da: f003 0307 and.w r3, r3, #7
80054de: 60fb str r3, [r7, #12]
if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
80054e0: 68fb ldr r3, [r7, #12]
80054e2: 2b06 cmp r3, #6
80054e4: d010 beq.n 8005508 <HAL_TIM_Base_Start_IT+0xb4>
{
__HAL_TIM_ENABLE(htim);
80054e6: 687b ldr r3, [r7, #4]
80054e8: 681b ldr r3, [r3, #0]
80054ea: 681a ldr r2, [r3, #0]
80054ec: 687b ldr r3, [r7, #4]
80054ee: 681b ldr r3, [r3, #0]
80054f0: f042 0201 orr.w r2, r2, #1
80054f4: 601a str r2, [r3, #0]
if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
80054f6: e007 b.n 8005508 <HAL_TIM_Base_Start_IT+0xb4>
}
}
else
{
__HAL_TIM_ENABLE(htim);
80054f8: 687b ldr r3, [r7, #4]
80054fa: 681b ldr r3, [r3, #0]
80054fc: 681a ldr r2, [r3, #0]
80054fe: 687b ldr r3, [r7, #4]
8005500: 681b ldr r3, [r3, #0]
8005502: f042 0201 orr.w r2, r2, #1
8005506: 601a str r2, [r3, #0]
}
/* Return function status */
return HAL_OK;
8005508: 2300 movs r3, #0
}
800550a: 4618 mov r0, r3
800550c: 3714 adds r7, #20
800550e: 46bd mov sp, r7
8005510: f85d 7b04 ldr.w r7, [sp], #4
8005514: 4770 bx lr
8005516: bf00 nop
8005518: 40010000 .word 0x40010000
800551c: 40000400 .word 0x40000400
8005520: 40000800 .word 0x40000800
8005524: 40000c00 .word 0x40000c00
8005528: 40010400 .word 0x40010400
800552c: 40014000 .word 0x40014000
8005530: 40001800 .word 0x40001800
08005534 <HAL_TIM_IRQHandler>:
* @brief This function handles TIM interrupts requests.
* @param htim TIM handle
* @retval None
*/
void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
{
8005534: b580 push {r7, lr}
8005536: b084 sub sp, #16
8005538: af00 add r7, sp, #0
800553a: 6078 str r0, [r7, #4]
uint32_t itsource = htim->Instance->DIER;
800553c: 687b ldr r3, [r7, #4]
800553e: 681b ldr r3, [r3, #0]
8005540: 68db ldr r3, [r3, #12]
8005542: 60fb str r3, [r7, #12]
uint32_t itflag = htim->Instance->SR;
8005544: 687b ldr r3, [r7, #4]
8005546: 681b ldr r3, [r3, #0]
8005548: 691b ldr r3, [r3, #16]
800554a: 60bb str r3, [r7, #8]
/* Capture compare 1 event */
if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
800554c: 68bb ldr r3, [r7, #8]
800554e: f003 0302 and.w r3, r3, #2
8005552: 2b00 cmp r3, #0
8005554: d020 beq.n 8005598 <HAL_TIM_IRQHandler+0x64>
{
if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
8005556: 68fb ldr r3, [r7, #12]
8005558: f003 0302 and.w r3, r3, #2
800555c: 2b00 cmp r3, #0
800555e: d01b beq.n 8005598 <HAL_TIM_IRQHandler+0x64>
{
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
8005560: 687b ldr r3, [r7, #4]
8005562: 681b ldr r3, [r3, #0]
8005564: f06f 0202 mvn.w r2, #2
8005568: 611a str r2, [r3, #16]
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
800556a: 687b ldr r3, [r7, #4]
800556c: 2201 movs r2, #1
800556e: 771a strb r2, [r3, #28]
/* Input capture event */
if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
8005570: 687b ldr r3, [r7, #4]
8005572: 681b ldr r3, [r3, #0]
8005574: 699b ldr r3, [r3, #24]
8005576: f003 0303 and.w r3, r3, #3
800557a: 2b00 cmp r3, #0
800557c: d003 beq.n 8005586 <HAL_TIM_IRQHandler+0x52>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->IC_CaptureCallback(htim);
#else
HAL_TIM_IC_CaptureCallback(htim);
800557e: 6878 ldr r0, [r7, #4]
8005580: f000 f999 bl 80058b6 <HAL_TIM_IC_CaptureCallback>
8005584: e005 b.n 8005592 <HAL_TIM_IRQHandler+0x5e>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->OC_DelayElapsedCallback(htim);
htim->PWM_PulseFinishedCallback(htim);
#else
HAL_TIM_OC_DelayElapsedCallback(htim);
8005586: 6878 ldr r0, [r7, #4]
8005588: f000 f98b bl 80058a2 <HAL_TIM_OC_DelayElapsedCallback>
HAL_TIM_PWM_PulseFinishedCallback(htim);
800558c: 6878 ldr r0, [r7, #4]
800558e: f000 f99c bl 80058ca <HAL_TIM_PWM_PulseFinishedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
8005592: 687b ldr r3, [r7, #4]
8005594: 2200 movs r2, #0
8005596: 771a strb r2, [r3, #28]
}
}
}
/* Capture compare 2 event */
if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
8005598: 68bb ldr r3, [r7, #8]
800559a: f003 0304 and.w r3, r3, #4
800559e: 2b00 cmp r3, #0
80055a0: d020 beq.n 80055e4 <HAL_TIM_IRQHandler+0xb0>
{
if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
80055a2: 68fb ldr r3, [r7, #12]
80055a4: f003 0304 and.w r3, r3, #4
80055a8: 2b00 cmp r3, #0
80055aa: d01b beq.n 80055e4 <HAL_TIM_IRQHandler+0xb0>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
80055ac: 687b ldr r3, [r7, #4]
80055ae: 681b ldr r3, [r3, #0]
80055b0: f06f 0204 mvn.w r2, #4
80055b4: 611a str r2, [r3, #16]
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
80055b6: 687b ldr r3, [r7, #4]
80055b8: 2202 movs r2, #2
80055ba: 771a strb r2, [r3, #28]
/* Input capture event */
if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
80055bc: 687b ldr r3, [r7, #4]
80055be: 681b ldr r3, [r3, #0]
80055c0: 699b ldr r3, [r3, #24]
80055c2: f403 7340 and.w r3, r3, #768 @ 0x300
80055c6: 2b00 cmp r3, #0
80055c8: d003 beq.n 80055d2 <HAL_TIM_IRQHandler+0x9e>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->IC_CaptureCallback(htim);
#else
HAL_TIM_IC_CaptureCallback(htim);
80055ca: 6878 ldr r0, [r7, #4]
80055cc: f000 f973 bl 80058b6 <HAL_TIM_IC_CaptureCallback>
80055d0: e005 b.n 80055de <HAL_TIM_IRQHandler+0xaa>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->OC_DelayElapsedCallback(htim);
htim->PWM_PulseFinishedCallback(htim);
#else
HAL_TIM_OC_DelayElapsedCallback(htim);
80055d2: 6878 ldr r0, [r7, #4]
80055d4: f000 f965 bl 80058a2 <HAL_TIM_OC_DelayElapsedCallback>
HAL_TIM_PWM_PulseFinishedCallback(htim);
80055d8: 6878 ldr r0, [r7, #4]
80055da: f000 f976 bl 80058ca <HAL_TIM_PWM_PulseFinishedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
80055de: 687b ldr r3, [r7, #4]
80055e0: 2200 movs r2, #0
80055e2: 771a strb r2, [r3, #28]
}
}
/* Capture compare 3 event */
if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
80055e4: 68bb ldr r3, [r7, #8]
80055e6: f003 0308 and.w r3, r3, #8
80055ea: 2b00 cmp r3, #0
80055ec: d020 beq.n 8005630 <HAL_TIM_IRQHandler+0xfc>
{
if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
80055ee: 68fb ldr r3, [r7, #12]
80055f0: f003 0308 and.w r3, r3, #8
80055f4: 2b00 cmp r3, #0
80055f6: d01b beq.n 8005630 <HAL_TIM_IRQHandler+0xfc>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
80055f8: 687b ldr r3, [r7, #4]
80055fa: 681b ldr r3, [r3, #0]
80055fc: f06f 0208 mvn.w r2, #8
8005600: 611a str r2, [r3, #16]
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
8005602: 687b ldr r3, [r7, #4]
8005604: 2204 movs r2, #4
8005606: 771a strb r2, [r3, #28]
/* Input capture event */
if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
8005608: 687b ldr r3, [r7, #4]
800560a: 681b ldr r3, [r3, #0]
800560c: 69db ldr r3, [r3, #28]
800560e: f003 0303 and.w r3, r3, #3
8005612: 2b00 cmp r3, #0
8005614: d003 beq.n 800561e <HAL_TIM_IRQHandler+0xea>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->IC_CaptureCallback(htim);
#else
HAL_TIM_IC_CaptureCallback(htim);
8005616: 6878 ldr r0, [r7, #4]
8005618: f000 f94d bl 80058b6 <HAL_TIM_IC_CaptureCallback>
800561c: e005 b.n 800562a <HAL_TIM_IRQHandler+0xf6>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->OC_DelayElapsedCallback(htim);
htim->PWM_PulseFinishedCallback(htim);
#else
HAL_TIM_OC_DelayElapsedCallback(htim);
800561e: 6878 ldr r0, [r7, #4]
8005620: f000 f93f bl 80058a2 <HAL_TIM_OC_DelayElapsedCallback>
HAL_TIM_PWM_PulseFinishedCallback(htim);
8005624: 6878 ldr r0, [r7, #4]
8005626: f000 f950 bl 80058ca <HAL_TIM_PWM_PulseFinishedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
800562a: 687b ldr r3, [r7, #4]
800562c: 2200 movs r2, #0
800562e: 771a strb r2, [r3, #28]
}
}
/* Capture compare 4 event */
if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
8005630: 68bb ldr r3, [r7, #8]
8005632: f003 0310 and.w r3, r3, #16
8005636: 2b00 cmp r3, #0
8005638: d020 beq.n 800567c <HAL_TIM_IRQHandler+0x148>
{
if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
800563a: 68fb ldr r3, [r7, #12]
800563c: f003 0310 and.w r3, r3, #16
8005640: 2b00 cmp r3, #0
8005642: d01b beq.n 800567c <HAL_TIM_IRQHandler+0x148>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
8005644: 687b ldr r3, [r7, #4]
8005646: 681b ldr r3, [r3, #0]
8005648: f06f 0210 mvn.w r2, #16
800564c: 611a str r2, [r3, #16]
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
800564e: 687b ldr r3, [r7, #4]
8005650: 2208 movs r2, #8
8005652: 771a strb r2, [r3, #28]
/* Input capture event */
if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
8005654: 687b ldr r3, [r7, #4]
8005656: 681b ldr r3, [r3, #0]
8005658: 69db ldr r3, [r3, #28]
800565a: f403 7340 and.w r3, r3, #768 @ 0x300
800565e: 2b00 cmp r3, #0
8005660: d003 beq.n 800566a <HAL_TIM_IRQHandler+0x136>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->IC_CaptureCallback(htim);
#else
HAL_TIM_IC_CaptureCallback(htim);
8005662: 6878 ldr r0, [r7, #4]
8005664: f000 f927 bl 80058b6 <HAL_TIM_IC_CaptureCallback>
8005668: e005 b.n 8005676 <HAL_TIM_IRQHandler+0x142>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->OC_DelayElapsedCallback(htim);
htim->PWM_PulseFinishedCallback(htim);
#else
HAL_TIM_OC_DelayElapsedCallback(htim);
800566a: 6878 ldr r0, [r7, #4]
800566c: f000 f919 bl 80058a2 <HAL_TIM_OC_DelayElapsedCallback>
HAL_TIM_PWM_PulseFinishedCallback(htim);
8005670: 6878 ldr r0, [r7, #4]
8005672: f000 f92a bl 80058ca <HAL_TIM_PWM_PulseFinishedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
8005676: 687b ldr r3, [r7, #4]
8005678: 2200 movs r2, #0
800567a: 771a strb r2, [r3, #28]
}
}
/* TIM Update event */
if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
800567c: 68bb ldr r3, [r7, #8]
800567e: f003 0301 and.w r3, r3, #1
8005682: 2b00 cmp r3, #0
8005684: d00c beq.n 80056a0 <HAL_TIM_IRQHandler+0x16c>
{
if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
8005686: 68fb ldr r3, [r7, #12]
8005688: f003 0301 and.w r3, r3, #1
800568c: 2b00 cmp r3, #0
800568e: d007 beq.n 80056a0 <HAL_TIM_IRQHandler+0x16c>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
8005690: 687b ldr r3, [r7, #4]
8005692: 681b ldr r3, [r3, #0]
8005694: f06f 0201 mvn.w r2, #1
8005698: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->PeriodElapsedCallback(htim);
#else
HAL_TIM_PeriodElapsedCallback(htim);
800569a: 6878 ldr r0, [r7, #4]
800569c: f7fb fb2e bl 8000cfc <HAL_TIM_PeriodElapsedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
/* TIM Break input event */
if ((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK))
80056a0: 68bb ldr r3, [r7, #8]
80056a2: f003 0380 and.w r3, r3, #128 @ 0x80
80056a6: 2b00 cmp r3, #0
80056a8: d00c beq.n 80056c4 <HAL_TIM_IRQHandler+0x190>
{
if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
80056aa: 68fb ldr r3, [r7, #12]
80056ac: f003 0380 and.w r3, r3, #128 @ 0x80
80056b0: 2b00 cmp r3, #0
80056b2: d007 beq.n 80056c4 <HAL_TIM_IRQHandler+0x190>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK);
80056b4: 687b ldr r3, [r7, #4]
80056b6: 681b ldr r3, [r3, #0]
80056b8: f06f 0280 mvn.w r2, #128 @ 0x80
80056bc: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->BreakCallback(htim);
#else
HAL_TIMEx_BreakCallback(htim);
80056be: 6878 ldr r0, [r7, #4]
80056c0: f000 fade bl 8005c80 <HAL_TIMEx_BreakCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
/* TIM Trigger detection event */
if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
80056c4: 68bb ldr r3, [r7, #8]
80056c6: f003 0340 and.w r3, r3, #64 @ 0x40
80056ca: 2b00 cmp r3, #0
80056cc: d00c beq.n 80056e8 <HAL_TIM_IRQHandler+0x1b4>
{
if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
80056ce: 68fb ldr r3, [r7, #12]
80056d0: f003 0340 and.w r3, r3, #64 @ 0x40
80056d4: 2b00 cmp r3, #0
80056d6: d007 beq.n 80056e8 <HAL_TIM_IRQHandler+0x1b4>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
80056d8: 687b ldr r3, [r7, #4]
80056da: 681b ldr r3, [r3, #0]
80056dc: f06f 0240 mvn.w r2, #64 @ 0x40
80056e0: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->TriggerCallback(htim);
#else
HAL_TIM_TriggerCallback(htim);
80056e2: 6878 ldr r0, [r7, #4]
80056e4: f000 f8fb bl 80058de <HAL_TIM_TriggerCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
/* TIM commutation event */
if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
80056e8: 68bb ldr r3, [r7, #8]
80056ea: f003 0320 and.w r3, r3, #32
80056ee: 2b00 cmp r3, #0
80056f0: d00c beq.n 800570c <HAL_TIM_IRQHandler+0x1d8>
{
if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
80056f2: 68fb ldr r3, [r7, #12]
80056f4: f003 0320 and.w r3, r3, #32
80056f8: 2b00 cmp r3, #0
80056fa: d007 beq.n 800570c <HAL_TIM_IRQHandler+0x1d8>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
80056fc: 687b ldr r3, [r7, #4]
80056fe: 681b ldr r3, [r3, #0]
8005700: f06f 0220 mvn.w r2, #32
8005704: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->CommutationCallback(htim);
#else
HAL_TIMEx_CommutCallback(htim);
8005706: 6878 ldr r0, [r7, #4]
8005708: f000 fab0 bl 8005c6c <HAL_TIMEx_CommutCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
}
800570c: bf00 nop
800570e: 3710 adds r7, #16
8005710: 46bd mov sp, r7
8005712: bd80 pop {r7, pc}
08005714 <HAL_TIM_ConfigClockSource>:
* @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that
* contains the clock source information for the TIM peripheral.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, const TIM_ClockConfigTypeDef *sClockSourceConfig)
{
8005714: b580 push {r7, lr}
8005716: b084 sub sp, #16
8005718: af00 add r7, sp, #0
800571a: 6078 str r0, [r7, #4]
800571c: 6039 str r1, [r7, #0]
HAL_StatusTypeDef status = HAL_OK;
800571e: 2300 movs r3, #0
8005720: 73fb strb r3, [r7, #15]
uint32_t tmpsmcr;
/* Process Locked */
__HAL_LOCK(htim);
8005722: 687b ldr r3, [r7, #4]
8005724: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
8005728: 2b01 cmp r3, #1
800572a: d101 bne.n 8005730 <HAL_TIM_ConfigClockSource+0x1c>
800572c: 2302 movs r3, #2
800572e: e0b4 b.n 800589a <HAL_TIM_ConfigClockSource+0x186>
8005730: 687b ldr r3, [r7, #4]
8005732: 2201 movs r2, #1
8005734: f883 203c strb.w r2, [r3, #60] @ 0x3c
htim->State = HAL_TIM_STATE_BUSY;
8005738: 687b ldr r3, [r7, #4]
800573a: 2202 movs r2, #2
800573c: f883 203d strb.w r2, [r3, #61] @ 0x3d
/* Check the parameters */
assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource));
/* Reset the SMS, TS, ECE, ETPS and ETRF bits */
tmpsmcr = htim->Instance->SMCR;
8005740: 687b ldr r3, [r7, #4]
8005742: 681b ldr r3, [r3, #0]
8005744: 689b ldr r3, [r3, #8]
8005746: 60bb str r3, [r7, #8]
tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS);
8005748: 68bb ldr r3, [r7, #8]
800574a: f023 0377 bic.w r3, r3, #119 @ 0x77
800574e: 60bb str r3, [r7, #8]
tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
8005750: 68bb ldr r3, [r7, #8]
8005752: f423 437f bic.w r3, r3, #65280 @ 0xff00
8005756: 60bb str r3, [r7, #8]
htim->Instance->SMCR = tmpsmcr;
8005758: 687b ldr r3, [r7, #4]
800575a: 681b ldr r3, [r3, #0]
800575c: 68ba ldr r2, [r7, #8]
800575e: 609a str r2, [r3, #8]
switch (sClockSourceConfig->ClockSource)
8005760: 683b ldr r3, [r7, #0]
8005762: 681b ldr r3, [r3, #0]
8005764: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
8005768: d03e beq.n 80057e8 <HAL_TIM_ConfigClockSource+0xd4>
800576a: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
800576e: f200 8087 bhi.w 8005880 <HAL_TIM_ConfigClockSource+0x16c>
8005772: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
8005776: f000 8086 beq.w 8005886 <HAL_TIM_ConfigClockSource+0x172>
800577a: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
800577e: d87f bhi.n 8005880 <HAL_TIM_ConfigClockSource+0x16c>
8005780: 2b70 cmp r3, #112 @ 0x70
8005782: d01a beq.n 80057ba <HAL_TIM_ConfigClockSource+0xa6>
8005784: 2b70 cmp r3, #112 @ 0x70
8005786: d87b bhi.n 8005880 <HAL_TIM_ConfigClockSource+0x16c>
8005788: 2b60 cmp r3, #96 @ 0x60
800578a: d050 beq.n 800582e <HAL_TIM_ConfigClockSource+0x11a>
800578c: 2b60 cmp r3, #96 @ 0x60
800578e: d877 bhi.n 8005880 <HAL_TIM_ConfigClockSource+0x16c>
8005790: 2b50 cmp r3, #80 @ 0x50
8005792: d03c beq.n 800580e <HAL_TIM_ConfigClockSource+0xfa>
8005794: 2b50 cmp r3, #80 @ 0x50
8005796: d873 bhi.n 8005880 <HAL_TIM_ConfigClockSource+0x16c>
8005798: 2b40 cmp r3, #64 @ 0x40
800579a: d058 beq.n 800584e <HAL_TIM_ConfigClockSource+0x13a>
800579c: 2b40 cmp r3, #64 @ 0x40
800579e: d86f bhi.n 8005880 <HAL_TIM_ConfigClockSource+0x16c>
80057a0: 2b30 cmp r3, #48 @ 0x30
80057a2: d064 beq.n 800586e <HAL_TIM_ConfigClockSource+0x15a>
80057a4: 2b30 cmp r3, #48 @ 0x30
80057a6: d86b bhi.n 8005880 <HAL_TIM_ConfigClockSource+0x16c>
80057a8: 2b20 cmp r3, #32
80057aa: d060 beq.n 800586e <HAL_TIM_ConfigClockSource+0x15a>
80057ac: 2b20 cmp r3, #32
80057ae: d867 bhi.n 8005880 <HAL_TIM_ConfigClockSource+0x16c>
80057b0: 2b00 cmp r3, #0
80057b2: d05c beq.n 800586e <HAL_TIM_ConfigClockSource+0x15a>
80057b4: 2b10 cmp r3, #16
80057b6: d05a beq.n 800586e <HAL_TIM_ConfigClockSource+0x15a>
80057b8: e062 b.n 8005880 <HAL_TIM_ConfigClockSource+0x16c>
assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
/* Configure the ETR Clock source */
TIM_ETR_SetConfig(htim->Instance,
80057ba: 687b ldr r3, [r7, #4]
80057bc: 6818 ldr r0, [r3, #0]
sClockSourceConfig->ClockPrescaler,
80057be: 683b ldr r3, [r7, #0]
80057c0: 6899 ldr r1, [r3, #8]
sClockSourceConfig->ClockPolarity,
80057c2: 683b ldr r3, [r7, #0]
80057c4: 685a ldr r2, [r3, #4]
sClockSourceConfig->ClockFilter);
80057c6: 683b ldr r3, [r7, #0]
80057c8: 68db ldr r3, [r3, #12]
TIM_ETR_SetConfig(htim->Instance,
80057ca: f000 f9b3 bl 8005b34 <TIM_ETR_SetConfig>
/* Select the External clock mode1 and the ETRF trigger */
tmpsmcr = htim->Instance->SMCR;
80057ce: 687b ldr r3, [r7, #4]
80057d0: 681b ldr r3, [r3, #0]
80057d2: 689b ldr r3, [r3, #8]
80057d4: 60bb str r3, [r7, #8]
tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1);
80057d6: 68bb ldr r3, [r7, #8]
80057d8: f043 0377 orr.w r3, r3, #119 @ 0x77
80057dc: 60bb str r3, [r7, #8]
/* Write to TIMx SMCR */
htim->Instance->SMCR = tmpsmcr;
80057de: 687b ldr r3, [r7, #4]
80057e0: 681b ldr r3, [r3, #0]
80057e2: 68ba ldr r2, [r7, #8]
80057e4: 609a str r2, [r3, #8]
break;
80057e6: e04f b.n 8005888 <HAL_TIM_ConfigClockSource+0x174>
assert_param(IS_TIM_CLOCKPRESCALER(sClockSourceConfig->ClockPrescaler));
assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
/* Configure the ETR Clock source */
TIM_ETR_SetConfig(htim->Instance,
80057e8: 687b ldr r3, [r7, #4]
80057ea: 6818 ldr r0, [r3, #0]
sClockSourceConfig->ClockPrescaler,
80057ec: 683b ldr r3, [r7, #0]
80057ee: 6899 ldr r1, [r3, #8]
sClockSourceConfig->ClockPolarity,
80057f0: 683b ldr r3, [r7, #0]
80057f2: 685a ldr r2, [r3, #4]
sClockSourceConfig->ClockFilter);
80057f4: 683b ldr r3, [r7, #0]
80057f6: 68db ldr r3, [r3, #12]
TIM_ETR_SetConfig(htim->Instance,
80057f8: f000 f99c bl 8005b34 <TIM_ETR_SetConfig>
/* Enable the External clock mode2 */
htim->Instance->SMCR |= TIM_SMCR_ECE;
80057fc: 687b ldr r3, [r7, #4]
80057fe: 681b ldr r3, [r3, #0]
8005800: 689a ldr r2, [r3, #8]
8005802: 687b ldr r3, [r7, #4]
8005804: 681b ldr r3, [r3, #0]
8005806: f442 4280 orr.w r2, r2, #16384 @ 0x4000
800580a: 609a str r2, [r3, #8]
break;
800580c: e03c b.n 8005888 <HAL_TIM_ConfigClockSource+0x174>
/* Check TI1 input conditioning related parameters */
assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
TIM_TI1_ConfigInputStage(htim->Instance,
800580e: 687b ldr r3, [r7, #4]
8005810: 6818 ldr r0, [r3, #0]
sClockSourceConfig->ClockPolarity,
8005812: 683b ldr r3, [r7, #0]
8005814: 6859 ldr r1, [r3, #4]
sClockSourceConfig->ClockFilter);
8005816: 683b ldr r3, [r7, #0]
8005818: 68db ldr r3, [r3, #12]
TIM_TI1_ConfigInputStage(htim->Instance,
800581a: 461a mov r2, r3
800581c: f000 f910 bl 8005a40 <TIM_TI1_ConfigInputStage>
TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1);
8005820: 687b ldr r3, [r7, #4]
8005822: 681b ldr r3, [r3, #0]
8005824: 2150 movs r1, #80 @ 0x50
8005826: 4618 mov r0, r3
8005828: f000 f969 bl 8005afe <TIM_ITRx_SetConfig>
break;
800582c: e02c b.n 8005888 <HAL_TIM_ConfigClockSource+0x174>
/* Check TI2 input conditioning related parameters */
assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
TIM_TI2_ConfigInputStage(htim->Instance,
800582e: 687b ldr r3, [r7, #4]
8005830: 6818 ldr r0, [r3, #0]
sClockSourceConfig->ClockPolarity,
8005832: 683b ldr r3, [r7, #0]
8005834: 6859 ldr r1, [r3, #4]
sClockSourceConfig->ClockFilter);
8005836: 683b ldr r3, [r7, #0]
8005838: 68db ldr r3, [r3, #12]
TIM_TI2_ConfigInputStage(htim->Instance,
800583a: 461a mov r2, r3
800583c: f000 f92f bl 8005a9e <TIM_TI2_ConfigInputStage>
TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2);
8005840: 687b ldr r3, [r7, #4]
8005842: 681b ldr r3, [r3, #0]
8005844: 2160 movs r1, #96 @ 0x60
8005846: 4618 mov r0, r3
8005848: f000 f959 bl 8005afe <TIM_ITRx_SetConfig>
break;
800584c: e01c b.n 8005888 <HAL_TIM_ConfigClockSource+0x174>
/* Check TI1 input conditioning related parameters */
assert_param(IS_TIM_CLOCKPOLARITY(sClockSourceConfig->ClockPolarity));
assert_param(IS_TIM_CLOCKFILTER(sClockSourceConfig->ClockFilter));
TIM_TI1_ConfigInputStage(htim->Instance,
800584e: 687b ldr r3, [r7, #4]
8005850: 6818 ldr r0, [r3, #0]
sClockSourceConfig->ClockPolarity,
8005852: 683b ldr r3, [r7, #0]
8005854: 6859 ldr r1, [r3, #4]
sClockSourceConfig->ClockFilter);
8005856: 683b ldr r3, [r7, #0]
8005858: 68db ldr r3, [r3, #12]
TIM_TI1_ConfigInputStage(htim->Instance,
800585a: 461a mov r2, r3
800585c: f000 f8f0 bl 8005a40 <TIM_TI1_ConfigInputStage>
TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED);
8005860: 687b ldr r3, [r7, #4]
8005862: 681b ldr r3, [r3, #0]
8005864: 2140 movs r1, #64 @ 0x40
8005866: 4618 mov r0, r3
8005868: f000 f949 bl 8005afe <TIM_ITRx_SetConfig>
break;
800586c: e00c b.n 8005888 <HAL_TIM_ConfigClockSource+0x174>
case TIM_CLOCKSOURCE_ITR3:
{
/* Check whether or not the timer instance supports internal trigger input */
assert_param(IS_TIM_CLOCKSOURCE_ITRX_INSTANCE(htim->Instance));
TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource);
800586e: 687b ldr r3, [r7, #4]
8005870: 681a ldr r2, [r3, #0]
8005872: 683b ldr r3, [r7, #0]
8005874: 681b ldr r3, [r3, #0]
8005876: 4619 mov r1, r3
8005878: 4610 mov r0, r2
800587a: f000 f940 bl 8005afe <TIM_ITRx_SetConfig>
break;
800587e: e003 b.n 8005888 <HAL_TIM_ConfigClockSource+0x174>
}
default:
status = HAL_ERROR;
8005880: 2301 movs r3, #1
8005882: 73fb strb r3, [r7, #15]
break;
8005884: e000 b.n 8005888 <HAL_TIM_ConfigClockSource+0x174>
break;
8005886: bf00 nop
}
htim->State = HAL_TIM_STATE_READY;
8005888: 687b ldr r3, [r7, #4]
800588a: 2201 movs r2, #1
800588c: f883 203d strb.w r2, [r3, #61] @ 0x3d
__HAL_UNLOCK(htim);
8005890: 687b ldr r3, [r7, #4]
8005892: 2200 movs r2, #0
8005894: f883 203c strb.w r2, [r3, #60] @ 0x3c
return status;
8005898: 7bfb ldrb r3, [r7, #15]
}
800589a: 4618 mov r0, r3
800589c: 3710 adds r7, #16
800589e: 46bd mov sp, r7
80058a0: bd80 pop {r7, pc}
080058a2 <HAL_TIM_OC_DelayElapsedCallback>:
* @brief Output Compare callback in non-blocking mode
* @param htim TIM OC handle
* @retval None
*/
__weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim)
{
80058a2: b480 push {r7}
80058a4: b083 sub sp, #12
80058a6: af00 add r7, sp, #0
80058a8: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIM_OC_DelayElapsedCallback could be implemented in the user file
*/
}
80058aa: bf00 nop
80058ac: 370c adds r7, #12
80058ae: 46bd mov sp, r7
80058b0: f85d 7b04 ldr.w r7, [sp], #4
80058b4: 4770 bx lr
080058b6 <HAL_TIM_IC_CaptureCallback>:
* @brief Input Capture callback in non-blocking mode
* @param htim TIM IC handle
* @retval None
*/
__weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim)
{
80058b6: b480 push {r7}
80058b8: b083 sub sp, #12
80058ba: af00 add r7, sp, #0
80058bc: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIM_IC_CaptureCallback could be implemented in the user file
*/
}
80058be: bf00 nop
80058c0: 370c adds r7, #12
80058c2: 46bd mov sp, r7
80058c4: f85d 7b04 ldr.w r7, [sp], #4
80058c8: 4770 bx lr
080058ca <HAL_TIM_PWM_PulseFinishedCallback>:
* @brief PWM Pulse finished callback in non-blocking mode
* @param htim TIM handle
* @retval None
*/
__weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim)
{
80058ca: b480 push {r7}
80058cc: b083 sub sp, #12
80058ce: af00 add r7, sp, #0
80058d0: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIM_PWM_PulseFinishedCallback could be implemented in the user file
*/
}
80058d2: bf00 nop
80058d4: 370c adds r7, #12
80058d6: 46bd mov sp, r7
80058d8: f85d 7b04 ldr.w r7, [sp], #4
80058dc: 4770 bx lr
080058de <HAL_TIM_TriggerCallback>:
* @brief Hall Trigger detection callback in non-blocking mode
* @param htim TIM handle
* @retval None
*/
__weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim)
{
80058de: b480 push {r7}
80058e0: b083 sub sp, #12
80058e2: af00 add r7, sp, #0
80058e4: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIM_TriggerCallback could be implemented in the user file
*/
}
80058e6: bf00 nop
80058e8: 370c adds r7, #12
80058ea: 46bd mov sp, r7
80058ec: f85d 7b04 ldr.w r7, [sp], #4
80058f0: 4770 bx lr
...
080058f4 <TIM_Base_SetConfig>:
* @param TIMx TIM peripheral
* @param Structure TIM Base configuration structure
* @retval None
*/
void TIM_Base_SetConfig(TIM_TypeDef *TIMx, const TIM_Base_InitTypeDef *Structure)
{
80058f4: b480 push {r7}
80058f6: b085 sub sp, #20
80058f8: af00 add r7, sp, #0
80058fa: 6078 str r0, [r7, #4]
80058fc: 6039 str r1, [r7, #0]
uint32_t tmpcr1;
tmpcr1 = TIMx->CR1;
80058fe: 687b ldr r3, [r7, #4]
8005900: 681b ldr r3, [r3, #0]
8005902: 60fb str r3, [r7, #12]
/* Set TIM Time Base Unit parameters ---------------------------------------*/
if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
8005904: 687b ldr r3, [r7, #4]
8005906: 4a43 ldr r2, [pc, #268] @ (8005a14 <TIM_Base_SetConfig+0x120>)
8005908: 4293 cmp r3, r2
800590a: d013 beq.n 8005934 <TIM_Base_SetConfig+0x40>
800590c: 687b ldr r3, [r7, #4]
800590e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
8005912: d00f beq.n 8005934 <TIM_Base_SetConfig+0x40>
8005914: 687b ldr r3, [r7, #4]
8005916: 4a40 ldr r2, [pc, #256] @ (8005a18 <TIM_Base_SetConfig+0x124>)
8005918: 4293 cmp r3, r2
800591a: d00b beq.n 8005934 <TIM_Base_SetConfig+0x40>
800591c: 687b ldr r3, [r7, #4]
800591e: 4a3f ldr r2, [pc, #252] @ (8005a1c <TIM_Base_SetConfig+0x128>)
8005920: 4293 cmp r3, r2
8005922: d007 beq.n 8005934 <TIM_Base_SetConfig+0x40>
8005924: 687b ldr r3, [r7, #4]
8005926: 4a3e ldr r2, [pc, #248] @ (8005a20 <TIM_Base_SetConfig+0x12c>)
8005928: 4293 cmp r3, r2
800592a: d003 beq.n 8005934 <TIM_Base_SetConfig+0x40>
800592c: 687b ldr r3, [r7, #4]
800592e: 4a3d ldr r2, [pc, #244] @ (8005a24 <TIM_Base_SetConfig+0x130>)
8005930: 4293 cmp r3, r2
8005932: d108 bne.n 8005946 <TIM_Base_SetConfig+0x52>
{
/* Select the Counter Mode */
tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
8005934: 68fb ldr r3, [r7, #12]
8005936: f023 0370 bic.w r3, r3, #112 @ 0x70
800593a: 60fb str r3, [r7, #12]
tmpcr1 |= Structure->CounterMode;
800593c: 683b ldr r3, [r7, #0]
800593e: 685b ldr r3, [r3, #4]
8005940: 68fa ldr r2, [r7, #12]
8005942: 4313 orrs r3, r2
8005944: 60fb str r3, [r7, #12]
}
if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
8005946: 687b ldr r3, [r7, #4]
8005948: 4a32 ldr r2, [pc, #200] @ (8005a14 <TIM_Base_SetConfig+0x120>)
800594a: 4293 cmp r3, r2
800594c: d02b beq.n 80059a6 <TIM_Base_SetConfig+0xb2>
800594e: 687b ldr r3, [r7, #4]
8005950: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
8005954: d027 beq.n 80059a6 <TIM_Base_SetConfig+0xb2>
8005956: 687b ldr r3, [r7, #4]
8005958: 4a2f ldr r2, [pc, #188] @ (8005a18 <TIM_Base_SetConfig+0x124>)
800595a: 4293 cmp r3, r2
800595c: d023 beq.n 80059a6 <TIM_Base_SetConfig+0xb2>
800595e: 687b ldr r3, [r7, #4]
8005960: 4a2e ldr r2, [pc, #184] @ (8005a1c <TIM_Base_SetConfig+0x128>)
8005962: 4293 cmp r3, r2
8005964: d01f beq.n 80059a6 <TIM_Base_SetConfig+0xb2>
8005966: 687b ldr r3, [r7, #4]
8005968: 4a2d ldr r2, [pc, #180] @ (8005a20 <TIM_Base_SetConfig+0x12c>)
800596a: 4293 cmp r3, r2
800596c: d01b beq.n 80059a6 <TIM_Base_SetConfig+0xb2>
800596e: 687b ldr r3, [r7, #4]
8005970: 4a2c ldr r2, [pc, #176] @ (8005a24 <TIM_Base_SetConfig+0x130>)
8005972: 4293 cmp r3, r2
8005974: d017 beq.n 80059a6 <TIM_Base_SetConfig+0xb2>
8005976: 687b ldr r3, [r7, #4]
8005978: 4a2b ldr r2, [pc, #172] @ (8005a28 <TIM_Base_SetConfig+0x134>)
800597a: 4293 cmp r3, r2
800597c: d013 beq.n 80059a6 <TIM_Base_SetConfig+0xb2>
800597e: 687b ldr r3, [r7, #4]
8005980: 4a2a ldr r2, [pc, #168] @ (8005a2c <TIM_Base_SetConfig+0x138>)
8005982: 4293 cmp r3, r2
8005984: d00f beq.n 80059a6 <TIM_Base_SetConfig+0xb2>
8005986: 687b ldr r3, [r7, #4]
8005988: 4a29 ldr r2, [pc, #164] @ (8005a30 <TIM_Base_SetConfig+0x13c>)
800598a: 4293 cmp r3, r2
800598c: d00b beq.n 80059a6 <TIM_Base_SetConfig+0xb2>
800598e: 687b ldr r3, [r7, #4]
8005990: 4a28 ldr r2, [pc, #160] @ (8005a34 <TIM_Base_SetConfig+0x140>)
8005992: 4293 cmp r3, r2
8005994: d007 beq.n 80059a6 <TIM_Base_SetConfig+0xb2>
8005996: 687b ldr r3, [r7, #4]
8005998: 4a27 ldr r2, [pc, #156] @ (8005a38 <TIM_Base_SetConfig+0x144>)
800599a: 4293 cmp r3, r2
800599c: d003 beq.n 80059a6 <TIM_Base_SetConfig+0xb2>
800599e: 687b ldr r3, [r7, #4]
80059a0: 4a26 ldr r2, [pc, #152] @ (8005a3c <TIM_Base_SetConfig+0x148>)
80059a2: 4293 cmp r3, r2
80059a4: d108 bne.n 80059b8 <TIM_Base_SetConfig+0xc4>
{
/* Set the clock division */
tmpcr1 &= ~TIM_CR1_CKD;
80059a6: 68fb ldr r3, [r7, #12]
80059a8: f423 7340 bic.w r3, r3, #768 @ 0x300
80059ac: 60fb str r3, [r7, #12]
tmpcr1 |= (uint32_t)Structure->ClockDivision;
80059ae: 683b ldr r3, [r7, #0]
80059b0: 68db ldr r3, [r3, #12]
80059b2: 68fa ldr r2, [r7, #12]
80059b4: 4313 orrs r3, r2
80059b6: 60fb str r3, [r7, #12]
}
/* Set the auto-reload preload */
MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
80059b8: 68fb ldr r3, [r7, #12]
80059ba: f023 0280 bic.w r2, r3, #128 @ 0x80
80059be: 683b ldr r3, [r7, #0]
80059c0: 695b ldr r3, [r3, #20]
80059c2: 4313 orrs r3, r2
80059c4: 60fb str r3, [r7, #12]
/* Set the Autoreload value */
TIMx->ARR = (uint32_t)Structure->Period ;
80059c6: 683b ldr r3, [r7, #0]
80059c8: 689a ldr r2, [r3, #8]
80059ca: 687b ldr r3, [r7, #4]
80059cc: 62da str r2, [r3, #44] @ 0x2c
/* Set the Prescaler value */
TIMx->PSC = Structure->Prescaler;
80059ce: 683b ldr r3, [r7, #0]
80059d0: 681a ldr r2, [r3, #0]
80059d2: 687b ldr r3, [r7, #4]
80059d4: 629a str r2, [r3, #40] @ 0x28
if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
80059d6: 687b ldr r3, [r7, #4]
80059d8: 4a0e ldr r2, [pc, #56] @ (8005a14 <TIM_Base_SetConfig+0x120>)
80059da: 4293 cmp r3, r2
80059dc: d003 beq.n 80059e6 <TIM_Base_SetConfig+0xf2>
80059de: 687b ldr r3, [r7, #4]
80059e0: 4a10 ldr r2, [pc, #64] @ (8005a24 <TIM_Base_SetConfig+0x130>)
80059e2: 4293 cmp r3, r2
80059e4: d103 bne.n 80059ee <TIM_Base_SetConfig+0xfa>
{
/* Set the Repetition Counter value */
TIMx->RCR = Structure->RepetitionCounter;
80059e6: 683b ldr r3, [r7, #0]
80059e8: 691a ldr r2, [r3, #16]
80059ea: 687b ldr r3, [r7, #4]
80059ec: 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);
80059ee: 687b ldr r3, [r7, #4]
80059f0: 681b ldr r3, [r3, #0]
80059f2: f043 0204 orr.w r2, r3, #4
80059f6: 687b ldr r3, [r7, #4]
80059f8: 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;
80059fa: 687b ldr r3, [r7, #4]
80059fc: 2201 movs r2, #1
80059fe: 615a str r2, [r3, #20]
TIMx->CR1 = tmpcr1;
8005a00: 687b ldr r3, [r7, #4]
8005a02: 68fa ldr r2, [r7, #12]
8005a04: 601a str r2, [r3, #0]
}
8005a06: bf00 nop
8005a08: 3714 adds r7, #20
8005a0a: 46bd mov sp, r7
8005a0c: f85d 7b04 ldr.w r7, [sp], #4
8005a10: 4770 bx lr
8005a12: bf00 nop
8005a14: 40010000 .word 0x40010000
8005a18: 40000400 .word 0x40000400
8005a1c: 40000800 .word 0x40000800
8005a20: 40000c00 .word 0x40000c00
8005a24: 40010400 .word 0x40010400
8005a28: 40014000 .word 0x40014000
8005a2c: 40014400 .word 0x40014400
8005a30: 40014800 .word 0x40014800
8005a34: 40001800 .word 0x40001800
8005a38: 40001c00 .word 0x40001c00
8005a3c: 40002000 .word 0x40002000
08005a40 <TIM_TI1_ConfigInputStage>:
* @param TIM_ICFilter Specifies the Input Capture Filter.
* This parameter must be a value between 0x00 and 0x0F.
* @retval None
*/
static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
{
8005a40: b480 push {r7}
8005a42: b087 sub sp, #28
8005a44: af00 add r7, sp, #0
8005a46: 60f8 str r0, [r7, #12]
8005a48: 60b9 str r1, [r7, #8]
8005a4a: 607a str r2, [r7, #4]
uint32_t tmpccmr1;
uint32_t tmpccer;
/* Disable the Channel 1: Reset the CC1E Bit */
tmpccer = TIMx->CCER;
8005a4c: 68fb ldr r3, [r7, #12]
8005a4e: 6a1b ldr r3, [r3, #32]
8005a50: 617b str r3, [r7, #20]
TIMx->CCER &= ~TIM_CCER_CC1E;
8005a52: 68fb ldr r3, [r7, #12]
8005a54: 6a1b ldr r3, [r3, #32]
8005a56: f023 0201 bic.w r2, r3, #1
8005a5a: 68fb ldr r3, [r7, #12]
8005a5c: 621a str r2, [r3, #32]
tmpccmr1 = TIMx->CCMR1;
8005a5e: 68fb ldr r3, [r7, #12]
8005a60: 699b ldr r3, [r3, #24]
8005a62: 613b str r3, [r7, #16]
/* Set the filter */
tmpccmr1 &= ~TIM_CCMR1_IC1F;
8005a64: 693b ldr r3, [r7, #16]
8005a66: f023 03f0 bic.w r3, r3, #240 @ 0xf0
8005a6a: 613b str r3, [r7, #16]
tmpccmr1 |= (TIM_ICFilter << 4U);
8005a6c: 687b ldr r3, [r7, #4]
8005a6e: 011b lsls r3, r3, #4
8005a70: 693a ldr r2, [r7, #16]
8005a72: 4313 orrs r3, r2
8005a74: 613b str r3, [r7, #16]
/* Select the Polarity and set the CC1E Bit */
tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP);
8005a76: 697b ldr r3, [r7, #20]
8005a78: f023 030a bic.w r3, r3, #10
8005a7c: 617b str r3, [r7, #20]
tmpccer |= TIM_ICPolarity;
8005a7e: 697a ldr r2, [r7, #20]
8005a80: 68bb ldr r3, [r7, #8]
8005a82: 4313 orrs r3, r2
8005a84: 617b str r3, [r7, #20]
/* Write to TIMx CCMR1 and CCER registers */
TIMx->CCMR1 = tmpccmr1;
8005a86: 68fb ldr r3, [r7, #12]
8005a88: 693a ldr r2, [r7, #16]
8005a8a: 619a str r2, [r3, #24]
TIMx->CCER = tmpccer;
8005a8c: 68fb ldr r3, [r7, #12]
8005a8e: 697a ldr r2, [r7, #20]
8005a90: 621a str r2, [r3, #32]
}
8005a92: bf00 nop
8005a94: 371c adds r7, #28
8005a96: 46bd mov sp, r7
8005a98: f85d 7b04 ldr.w r7, [sp], #4
8005a9c: 4770 bx lr
08005a9e <TIM_TI2_ConfigInputStage>:
* @param TIM_ICFilter Specifies the Input Capture Filter.
* This parameter must be a value between 0x00 and 0x0F.
* @retval None
*/
static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter)
{
8005a9e: b480 push {r7}
8005aa0: b087 sub sp, #28
8005aa2: af00 add r7, sp, #0
8005aa4: 60f8 str r0, [r7, #12]
8005aa6: 60b9 str r1, [r7, #8]
8005aa8: 607a str r2, [r7, #4]
uint32_t tmpccmr1;
uint32_t tmpccer;
/* Disable the Channel 2: Reset the CC2E Bit */
tmpccer = TIMx->CCER;
8005aaa: 68fb ldr r3, [r7, #12]
8005aac: 6a1b ldr r3, [r3, #32]
8005aae: 617b str r3, [r7, #20]
TIMx->CCER &= ~TIM_CCER_CC2E;
8005ab0: 68fb ldr r3, [r7, #12]
8005ab2: 6a1b ldr r3, [r3, #32]
8005ab4: f023 0210 bic.w r2, r3, #16
8005ab8: 68fb ldr r3, [r7, #12]
8005aba: 621a str r2, [r3, #32]
tmpccmr1 = TIMx->CCMR1;
8005abc: 68fb ldr r3, [r7, #12]
8005abe: 699b ldr r3, [r3, #24]
8005ac0: 613b str r3, [r7, #16]
/* Set the filter */
tmpccmr1 &= ~TIM_CCMR1_IC2F;
8005ac2: 693b ldr r3, [r7, #16]
8005ac4: f423 4370 bic.w r3, r3, #61440 @ 0xf000
8005ac8: 613b str r3, [r7, #16]
tmpccmr1 |= (TIM_ICFilter << 12U);
8005aca: 687b ldr r3, [r7, #4]
8005acc: 031b lsls r3, r3, #12
8005ace: 693a ldr r2, [r7, #16]
8005ad0: 4313 orrs r3, r2
8005ad2: 613b str r3, [r7, #16]
/* Select the Polarity and set the CC2E Bit */
tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP);
8005ad4: 697b ldr r3, [r7, #20]
8005ad6: f023 03a0 bic.w r3, r3, #160 @ 0xa0
8005ada: 617b str r3, [r7, #20]
tmpccer |= (TIM_ICPolarity << 4U);
8005adc: 68bb ldr r3, [r7, #8]
8005ade: 011b lsls r3, r3, #4
8005ae0: 697a ldr r2, [r7, #20]
8005ae2: 4313 orrs r3, r2
8005ae4: 617b str r3, [r7, #20]
/* Write to TIMx CCMR1 and CCER registers */
TIMx->CCMR1 = tmpccmr1 ;
8005ae6: 68fb ldr r3, [r7, #12]
8005ae8: 693a ldr r2, [r7, #16]
8005aea: 619a str r2, [r3, #24]
TIMx->CCER = tmpccer;
8005aec: 68fb ldr r3, [r7, #12]
8005aee: 697a ldr r2, [r7, #20]
8005af0: 621a str r2, [r3, #32]
}
8005af2: bf00 nop
8005af4: 371c adds r7, #28
8005af6: 46bd mov sp, r7
8005af8: f85d 7b04 ldr.w r7, [sp], #4
8005afc: 4770 bx lr
08005afe <TIM_ITRx_SetConfig>:
* @arg TIM_TS_TI2FP2: Filtered Timer Input 2
* @arg TIM_TS_ETRF: External Trigger input
* @retval None
*/
static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource)
{
8005afe: b480 push {r7}
8005b00: b085 sub sp, #20
8005b02: af00 add r7, sp, #0
8005b04: 6078 str r0, [r7, #4]
8005b06: 6039 str r1, [r7, #0]
uint32_t tmpsmcr;
/* Get the TIMx SMCR register value */
tmpsmcr = TIMx->SMCR;
8005b08: 687b ldr r3, [r7, #4]
8005b0a: 689b ldr r3, [r3, #8]
8005b0c: 60fb str r3, [r7, #12]
/* Reset the TS Bits */
tmpsmcr &= ~TIM_SMCR_TS;
8005b0e: 68fb ldr r3, [r7, #12]
8005b10: f023 0370 bic.w r3, r3, #112 @ 0x70
8005b14: 60fb str r3, [r7, #12]
/* Set the Input Trigger source and the slave mode*/
tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1);
8005b16: 683a ldr r2, [r7, #0]
8005b18: 68fb ldr r3, [r7, #12]
8005b1a: 4313 orrs r3, r2
8005b1c: f043 0307 orr.w r3, r3, #7
8005b20: 60fb str r3, [r7, #12]
/* Write to TIMx SMCR */
TIMx->SMCR = tmpsmcr;
8005b22: 687b ldr r3, [r7, #4]
8005b24: 68fa ldr r2, [r7, #12]
8005b26: 609a str r2, [r3, #8]
}
8005b28: bf00 nop
8005b2a: 3714 adds r7, #20
8005b2c: 46bd mov sp, r7
8005b2e: f85d 7b04 ldr.w r7, [sp], #4
8005b32: 4770 bx lr
08005b34 <TIM_ETR_SetConfig>:
* This parameter must be a value between 0x00 and 0x0F
* @retval None
*/
void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler,
uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter)
{
8005b34: b480 push {r7}
8005b36: b087 sub sp, #28
8005b38: af00 add r7, sp, #0
8005b3a: 60f8 str r0, [r7, #12]
8005b3c: 60b9 str r1, [r7, #8]
8005b3e: 607a str r2, [r7, #4]
8005b40: 603b str r3, [r7, #0]
uint32_t tmpsmcr;
tmpsmcr = TIMx->SMCR;
8005b42: 68fb ldr r3, [r7, #12]
8005b44: 689b ldr r3, [r3, #8]
8005b46: 617b str r3, [r7, #20]
/* Reset the ETR Bits */
tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP);
8005b48: 697b ldr r3, [r7, #20]
8005b4a: f423 437f bic.w r3, r3, #65280 @ 0xff00
8005b4e: 617b str r3, [r7, #20]
/* Set the Prescaler, the Filter value and the Polarity */
tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U)));
8005b50: 683b ldr r3, [r7, #0]
8005b52: 021a lsls r2, r3, #8
8005b54: 687b ldr r3, [r7, #4]
8005b56: 431a orrs r2, r3
8005b58: 68bb ldr r3, [r7, #8]
8005b5a: 4313 orrs r3, r2
8005b5c: 697a ldr r2, [r7, #20]
8005b5e: 4313 orrs r3, r2
8005b60: 617b str r3, [r7, #20]
/* Write to TIMx SMCR */
TIMx->SMCR = tmpsmcr;
8005b62: 68fb ldr r3, [r7, #12]
8005b64: 697a ldr r2, [r7, #20]
8005b66: 609a str r2, [r3, #8]
}
8005b68: bf00 nop
8005b6a: 371c adds r7, #28
8005b6c: 46bd mov sp, r7
8005b6e: f85d 7b04 ldr.w r7, [sp], #4
8005b72: 4770 bx lr
08005b74 <HAL_TIMEx_MasterConfigSynchronization>:
* mode.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim,
const TIM_MasterConfigTypeDef *sMasterConfig)
{
8005b74: b480 push {r7}
8005b76: b085 sub sp, #20
8005b78: af00 add r7, sp, #0
8005b7a: 6078 str r0, [r7, #4]
8005b7c: 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);
8005b7e: 687b ldr r3, [r7, #4]
8005b80: f893 303c ldrb.w r3, [r3, #60] @ 0x3c
8005b84: 2b01 cmp r3, #1
8005b86: d101 bne.n 8005b8c <HAL_TIMEx_MasterConfigSynchronization+0x18>
8005b88: 2302 movs r3, #2
8005b8a: e05a b.n 8005c42 <HAL_TIMEx_MasterConfigSynchronization+0xce>
8005b8c: 687b ldr r3, [r7, #4]
8005b8e: 2201 movs r2, #1
8005b90: f883 203c strb.w r2, [r3, #60] @ 0x3c
/* Change the handler state */
htim->State = HAL_TIM_STATE_BUSY;
8005b94: 687b ldr r3, [r7, #4]
8005b96: 2202 movs r2, #2
8005b98: f883 203d strb.w r2, [r3, #61] @ 0x3d
/* Get the TIMx CR2 register value */
tmpcr2 = htim->Instance->CR2;
8005b9c: 687b ldr r3, [r7, #4]
8005b9e: 681b ldr r3, [r3, #0]
8005ba0: 685b ldr r3, [r3, #4]
8005ba2: 60fb str r3, [r7, #12]
/* Get the TIMx SMCR register value */
tmpsmcr = htim->Instance->SMCR;
8005ba4: 687b ldr r3, [r7, #4]
8005ba6: 681b ldr r3, [r3, #0]
8005ba8: 689b ldr r3, [r3, #8]
8005baa: 60bb str r3, [r7, #8]
/* Reset the MMS Bits */
tmpcr2 &= ~TIM_CR2_MMS;
8005bac: 68fb ldr r3, [r7, #12]
8005bae: f023 0370 bic.w r3, r3, #112 @ 0x70
8005bb2: 60fb str r3, [r7, #12]
/* Select the TRGO source */
tmpcr2 |= sMasterConfig->MasterOutputTrigger;
8005bb4: 683b ldr r3, [r7, #0]
8005bb6: 681b ldr r3, [r3, #0]
8005bb8: 68fa ldr r2, [r7, #12]
8005bba: 4313 orrs r3, r2
8005bbc: 60fb str r3, [r7, #12]
/* Update TIMx CR2 */
htim->Instance->CR2 = tmpcr2;
8005bbe: 687b ldr r3, [r7, #4]
8005bc0: 681b ldr r3, [r3, #0]
8005bc2: 68fa ldr r2, [r7, #12]
8005bc4: 605a str r2, [r3, #4]
if (IS_TIM_SLAVE_INSTANCE(htim->Instance))
8005bc6: 687b ldr r3, [r7, #4]
8005bc8: 681b ldr r3, [r3, #0]
8005bca: 4a21 ldr r2, [pc, #132] @ (8005c50 <HAL_TIMEx_MasterConfigSynchronization+0xdc>)
8005bcc: 4293 cmp r3, r2
8005bce: d022 beq.n 8005c16 <HAL_TIMEx_MasterConfigSynchronization+0xa2>
8005bd0: 687b ldr r3, [r7, #4]
8005bd2: 681b ldr r3, [r3, #0]
8005bd4: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
8005bd8: d01d beq.n 8005c16 <HAL_TIMEx_MasterConfigSynchronization+0xa2>
8005bda: 687b ldr r3, [r7, #4]
8005bdc: 681b ldr r3, [r3, #0]
8005bde: 4a1d ldr r2, [pc, #116] @ (8005c54 <HAL_TIMEx_MasterConfigSynchronization+0xe0>)
8005be0: 4293 cmp r3, r2
8005be2: d018 beq.n 8005c16 <HAL_TIMEx_MasterConfigSynchronization+0xa2>
8005be4: 687b ldr r3, [r7, #4]
8005be6: 681b ldr r3, [r3, #0]
8005be8: 4a1b ldr r2, [pc, #108] @ (8005c58 <HAL_TIMEx_MasterConfigSynchronization+0xe4>)
8005bea: 4293 cmp r3, r2
8005bec: d013 beq.n 8005c16 <HAL_TIMEx_MasterConfigSynchronization+0xa2>
8005bee: 687b ldr r3, [r7, #4]
8005bf0: 681b ldr r3, [r3, #0]
8005bf2: 4a1a ldr r2, [pc, #104] @ (8005c5c <HAL_TIMEx_MasterConfigSynchronization+0xe8>)
8005bf4: 4293 cmp r3, r2
8005bf6: d00e beq.n 8005c16 <HAL_TIMEx_MasterConfigSynchronization+0xa2>
8005bf8: 687b ldr r3, [r7, #4]
8005bfa: 681b ldr r3, [r3, #0]
8005bfc: 4a18 ldr r2, [pc, #96] @ (8005c60 <HAL_TIMEx_MasterConfigSynchronization+0xec>)
8005bfe: 4293 cmp r3, r2
8005c00: d009 beq.n 8005c16 <HAL_TIMEx_MasterConfigSynchronization+0xa2>
8005c02: 687b ldr r3, [r7, #4]
8005c04: 681b ldr r3, [r3, #0]
8005c06: 4a17 ldr r2, [pc, #92] @ (8005c64 <HAL_TIMEx_MasterConfigSynchronization+0xf0>)
8005c08: 4293 cmp r3, r2
8005c0a: d004 beq.n 8005c16 <HAL_TIMEx_MasterConfigSynchronization+0xa2>
8005c0c: 687b ldr r3, [r7, #4]
8005c0e: 681b ldr r3, [r3, #0]
8005c10: 4a15 ldr r2, [pc, #84] @ (8005c68 <HAL_TIMEx_MasterConfigSynchronization+0xf4>)
8005c12: 4293 cmp r3, r2
8005c14: d10c bne.n 8005c30 <HAL_TIMEx_MasterConfigSynchronization+0xbc>
{
/* Reset the MSM Bit */
tmpsmcr &= ~TIM_SMCR_MSM;
8005c16: 68bb ldr r3, [r7, #8]
8005c18: f023 0380 bic.w r3, r3, #128 @ 0x80
8005c1c: 60bb str r3, [r7, #8]
/* Set master mode */
tmpsmcr |= sMasterConfig->MasterSlaveMode;
8005c1e: 683b ldr r3, [r7, #0]
8005c20: 685b ldr r3, [r3, #4]
8005c22: 68ba ldr r2, [r7, #8]
8005c24: 4313 orrs r3, r2
8005c26: 60bb str r3, [r7, #8]
/* Update TIMx SMCR */
htim->Instance->SMCR = tmpsmcr;
8005c28: 687b ldr r3, [r7, #4]
8005c2a: 681b ldr r3, [r3, #0]
8005c2c: 68ba ldr r2, [r7, #8]
8005c2e: 609a str r2, [r3, #8]
}
/* Change the htim state */
htim->State = HAL_TIM_STATE_READY;
8005c30: 687b ldr r3, [r7, #4]
8005c32: 2201 movs r2, #1
8005c34: f883 203d strb.w r2, [r3, #61] @ 0x3d
__HAL_UNLOCK(htim);
8005c38: 687b ldr r3, [r7, #4]
8005c3a: 2200 movs r2, #0
8005c3c: f883 203c strb.w r2, [r3, #60] @ 0x3c
return HAL_OK;
8005c40: 2300 movs r3, #0
}
8005c42: 4618 mov r0, r3
8005c44: 3714 adds r7, #20
8005c46: 46bd mov sp, r7
8005c48: f85d 7b04 ldr.w r7, [sp], #4
8005c4c: 4770 bx lr
8005c4e: bf00 nop
8005c50: 40010000 .word 0x40010000
8005c54: 40000400 .word 0x40000400
8005c58: 40000800 .word 0x40000800
8005c5c: 40000c00 .word 0x40000c00
8005c60: 40010400 .word 0x40010400
8005c64: 40014000 .word 0x40014000
8005c68: 40001800 .word 0x40001800
08005c6c <HAL_TIMEx_CommutCallback>:
* @brief Commutation callback in non-blocking mode
* @param htim TIM handle
* @retval None
*/
__weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
{
8005c6c: b480 push {r7}
8005c6e: b083 sub sp, #12
8005c70: af00 add r7, sp, #0
8005c72: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIMEx_CommutCallback could be implemented in the user file
*/
}
8005c74: bf00 nop
8005c76: 370c adds r7, #12
8005c78: 46bd mov sp, r7
8005c7a: f85d 7b04 ldr.w r7, [sp], #4
8005c7e: 4770 bx lr
08005c80 <HAL_TIMEx_BreakCallback>:
* @brief Break detection callback in non-blocking mode
* @param htim TIM handle
* @retval None
*/
__weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim)
{
8005c80: b480 push {r7}
8005c82: b083 sub sp, #12
8005c84: af00 add r7, sp, #0
8005c86: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIMEx_BreakCallback could be implemented in the user file
*/
}
8005c88: bf00 nop
8005c8a: 370c adds r7, #12
8005c8c: 46bd mov sp, r7
8005c8e: f85d 7b04 ldr.w r7, [sp], #4
8005c92: 4770 bx lr
08005c94 <HAL_UART_Init>:
* @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)
{
8005c94: b580 push {r7, lr}
8005c96: b082 sub sp, #8
8005c98: af00 add r7, sp, #0
8005c9a: 6078 str r0, [r7, #4]
/* Check the UART handle allocation */
if (huart == NULL)
8005c9c: 687b ldr r3, [r7, #4]
8005c9e: 2b00 cmp r3, #0
8005ca0: d101 bne.n 8005ca6 <HAL_UART_Init+0x12>
{
return HAL_ERROR;
8005ca2: 2301 movs r3, #1
8005ca4: e042 b.n 8005d2c <HAL_UART_Init+0x98>
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)
8005ca6: 687b ldr r3, [r7, #4]
8005ca8: f893 3041 ldrb.w r3, [r3, #65] @ 0x41
8005cac: b2db uxtb r3, r3
8005cae: 2b00 cmp r3, #0
8005cb0: d106 bne.n 8005cc0 <HAL_UART_Init+0x2c>
{
/* Allocate lock resource and initialize it */
huart->Lock = HAL_UNLOCKED;
8005cb2: 687b ldr r3, [r7, #4]
8005cb4: 2200 movs r2, #0
8005cb6: 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);
8005cba: 6878 ldr r0, [r7, #4]
8005cbc: f7fb fab0 bl 8001220 <HAL_UART_MspInit>
#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
}
huart->gState = HAL_UART_STATE_BUSY;
8005cc0: 687b ldr r3, [r7, #4]
8005cc2: 2224 movs r2, #36 @ 0x24
8005cc4: f883 2041 strb.w r2, [r3, #65] @ 0x41
/* Disable the peripheral */
__HAL_UART_DISABLE(huart);
8005cc8: 687b ldr r3, [r7, #4]
8005cca: 681b ldr r3, [r3, #0]
8005ccc: 68da ldr r2, [r3, #12]
8005cce: 687b ldr r3, [r7, #4]
8005cd0: 681b ldr r3, [r3, #0]
8005cd2: f422 5200 bic.w r2, r2, #8192 @ 0x2000
8005cd6: 60da str r2, [r3, #12]
/* Set the UART Communication parameters */
UART_SetConfig(huart);
8005cd8: 6878 ldr r0, [r7, #4]
8005cda: f000 f82b bl 8005d34 <UART_SetConfig>
/* 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));
8005cde: 687b ldr r3, [r7, #4]
8005ce0: 681b ldr r3, [r3, #0]
8005ce2: 691a ldr r2, [r3, #16]
8005ce4: 687b ldr r3, [r7, #4]
8005ce6: 681b ldr r3, [r3, #0]
8005ce8: f422 4290 bic.w r2, r2, #18432 @ 0x4800
8005cec: 611a str r2, [r3, #16]
CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
8005cee: 687b ldr r3, [r7, #4]
8005cf0: 681b ldr r3, [r3, #0]
8005cf2: 695a ldr r2, [r3, #20]
8005cf4: 687b ldr r3, [r7, #4]
8005cf6: 681b ldr r3, [r3, #0]
8005cf8: f022 022a bic.w r2, r2, #42 @ 0x2a
8005cfc: 615a str r2, [r3, #20]
/* Enable the peripheral */
__HAL_UART_ENABLE(huart);
8005cfe: 687b ldr r3, [r7, #4]
8005d00: 681b ldr r3, [r3, #0]
8005d02: 68da ldr r2, [r3, #12]
8005d04: 687b ldr r3, [r7, #4]
8005d06: 681b ldr r3, [r3, #0]
8005d08: f442 5200 orr.w r2, r2, #8192 @ 0x2000
8005d0c: 60da str r2, [r3, #12]
/* Initialize the UART state */
huart->ErrorCode = HAL_UART_ERROR_NONE;
8005d0e: 687b ldr r3, [r7, #4]
8005d10: 2200 movs r2, #0
8005d12: 645a str r2, [r3, #68] @ 0x44
huart->gState = HAL_UART_STATE_READY;
8005d14: 687b ldr r3, [r7, #4]
8005d16: 2220 movs r2, #32
8005d18: f883 2041 strb.w r2, [r3, #65] @ 0x41
huart->RxState = HAL_UART_STATE_READY;
8005d1c: 687b ldr r3, [r7, #4]
8005d1e: 2220 movs r2, #32
8005d20: f883 2042 strb.w r2, [r3, #66] @ 0x42
huart->RxEventType = HAL_UART_RXEVENT_TC;
8005d24: 687b ldr r3, [r7, #4]
8005d26: 2200 movs r2, #0
8005d28: 635a str r2, [r3, #52] @ 0x34
return HAL_OK;
8005d2a: 2300 movs r3, #0
}
8005d2c: 4618 mov r0, r3
8005d2e: 3708 adds r7, #8
8005d30: 46bd mov sp, r7
8005d32: bd80 pop {r7, pc}
08005d34 <UART_SetConfig>:
* @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)
{
8005d34: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
8005d38: b0c0 sub sp, #256 @ 0x100
8005d3a: af00 add r7, sp, #0
8005d3c: 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);
8005d40: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005d44: 681b ldr r3, [r3, #0]
8005d46: 691b ldr r3, [r3, #16]
8005d48: f423 5040 bic.w r0, r3, #12288 @ 0x3000
8005d4c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005d50: 68d9 ldr r1, [r3, #12]
8005d52: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005d56: 681a ldr r2, [r3, #0]
8005d58: ea40 0301 orr.w r3, r0, r1
8005d5c: 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;
8005d5e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005d62: 689a ldr r2, [r3, #8]
8005d64: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005d68: 691b ldr r3, [r3, #16]
8005d6a: 431a orrs r2, r3
8005d6c: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005d70: 695b ldr r3, [r3, #20]
8005d72: 431a orrs r2, r3
8005d74: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005d78: 69db ldr r3, [r3, #28]
8005d7a: 4313 orrs r3, r2
8005d7c: f8c7 30f8 str.w r3, [r7, #248] @ 0xf8
MODIFY_REG(huart->Instance->CR1,
8005d80: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005d84: 681b ldr r3, [r3, #0]
8005d86: 68db ldr r3, [r3, #12]
8005d88: f423 4116 bic.w r1, r3, #38400 @ 0x9600
8005d8c: f021 010c bic.w r1, r1, #12
8005d90: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005d94: 681a ldr r2, [r3, #0]
8005d96: f8d7 30f8 ldr.w r3, [r7, #248] @ 0xf8
8005d9a: 430b orrs r3, r1
8005d9c: 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);
8005d9e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005da2: 681b ldr r3, [r3, #0]
8005da4: 695b ldr r3, [r3, #20]
8005da6: f423 7040 bic.w r0, r3, #768 @ 0x300
8005daa: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005dae: 6999 ldr r1, [r3, #24]
8005db0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005db4: 681a ldr r2, [r3, #0]
8005db6: ea40 0301 orr.w r3, r0, r1
8005dba: 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))
8005dbc: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005dc0: 681a ldr r2, [r3, #0]
8005dc2: 4b8f ldr r3, [pc, #572] @ (8006000 <UART_SetConfig+0x2cc>)
8005dc4: 429a cmp r2, r3
8005dc6: d005 beq.n 8005dd4 <UART_SetConfig+0xa0>
8005dc8: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005dcc: 681a ldr r2, [r3, #0]
8005dce: 4b8d ldr r3, [pc, #564] @ (8006004 <UART_SetConfig+0x2d0>)
8005dd0: 429a cmp r2, r3
8005dd2: d104 bne.n 8005dde <UART_SetConfig+0xaa>
{
pclk = HAL_RCC_GetPCLK2Freq();
8005dd4: f7ff f82c bl 8004e30 <HAL_RCC_GetPCLK2Freq>
8005dd8: f8c7 00fc str.w r0, [r7, #252] @ 0xfc
8005ddc: e003 b.n 8005de6 <UART_SetConfig+0xb2>
pclk = HAL_RCC_GetPCLK2Freq();
}
#endif /* USART6 */
else
{
pclk = HAL_RCC_GetPCLK1Freq();
8005dde: f7ff f813 bl 8004e08 <HAL_RCC_GetPCLK1Freq>
8005de2: f8c7 00fc str.w r0, [r7, #252] @ 0xfc
}
/*-------------------------- USART BRR Configuration ---------------------*/
if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
8005de6: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005dea: 69db ldr r3, [r3, #28]
8005dec: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
8005df0: f040 810c bne.w 800600c <UART_SetConfig+0x2d8>
{
huart->Instance->BRR = UART_BRR_SAMPLING8(pclk, huart->Init.BaudRate);
8005df4: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc
8005df8: 2200 movs r2, #0
8005dfa: f8c7 30e8 str.w r3, [r7, #232] @ 0xe8
8005dfe: f8c7 20ec str.w r2, [r7, #236] @ 0xec
8005e02: e9d7 453a ldrd r4, r5, [r7, #232] @ 0xe8
8005e06: 4622 mov r2, r4
8005e08: 462b mov r3, r5
8005e0a: 1891 adds r1, r2, r2
8005e0c: 65b9 str r1, [r7, #88] @ 0x58
8005e0e: 415b adcs r3, r3
8005e10: 65fb str r3, [r7, #92] @ 0x5c
8005e12: e9d7 2316 ldrd r2, r3, [r7, #88] @ 0x58
8005e16: 4621 mov r1, r4
8005e18: eb12 0801 adds.w r8, r2, r1
8005e1c: 4629 mov r1, r5
8005e1e: eb43 0901 adc.w r9, r3, r1
8005e22: f04f 0200 mov.w r2, #0
8005e26: f04f 0300 mov.w r3, #0
8005e2a: ea4f 03c9 mov.w r3, r9, lsl #3
8005e2e: ea43 7358 orr.w r3, r3, r8, lsr #29
8005e32: ea4f 02c8 mov.w r2, r8, lsl #3
8005e36: 4690 mov r8, r2
8005e38: 4699 mov r9, r3
8005e3a: 4623 mov r3, r4
8005e3c: eb18 0303 adds.w r3, r8, r3
8005e40: f8c7 30e0 str.w r3, [r7, #224] @ 0xe0
8005e44: 462b mov r3, r5
8005e46: eb49 0303 adc.w r3, r9, r3
8005e4a: f8c7 30e4 str.w r3, [r7, #228] @ 0xe4
8005e4e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005e52: 685b ldr r3, [r3, #4]
8005e54: 2200 movs r2, #0
8005e56: f8c7 30d8 str.w r3, [r7, #216] @ 0xd8
8005e5a: f8c7 20dc str.w r2, [r7, #220] @ 0xdc
8005e5e: e9d7 1236 ldrd r1, r2, [r7, #216] @ 0xd8
8005e62: 460b mov r3, r1
8005e64: 18db adds r3, r3, r3
8005e66: 653b str r3, [r7, #80] @ 0x50
8005e68: 4613 mov r3, r2
8005e6a: eb42 0303 adc.w r3, r2, r3
8005e6e: 657b str r3, [r7, #84] @ 0x54
8005e70: e9d7 2314 ldrd r2, r3, [r7, #80] @ 0x50
8005e74: e9d7 0138 ldrd r0, r1, [r7, #224] @ 0xe0
8005e78: f7fa f9ba bl 80001f0 <__aeabi_uldivmod>
8005e7c: 4602 mov r2, r0
8005e7e: 460b mov r3, r1
8005e80: 4b61 ldr r3, [pc, #388] @ (8006008 <UART_SetConfig+0x2d4>)
8005e82: fba3 2302 umull r2, r3, r3, r2
8005e86: 095b lsrs r3, r3, #5
8005e88: 011c lsls r4, r3, #4
8005e8a: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc
8005e8e: 2200 movs r2, #0
8005e90: f8c7 30d0 str.w r3, [r7, #208] @ 0xd0
8005e94: f8c7 20d4 str.w r2, [r7, #212] @ 0xd4
8005e98: e9d7 8934 ldrd r8, r9, [r7, #208] @ 0xd0
8005e9c: 4642 mov r2, r8
8005e9e: 464b mov r3, r9
8005ea0: 1891 adds r1, r2, r2
8005ea2: 64b9 str r1, [r7, #72] @ 0x48
8005ea4: 415b adcs r3, r3
8005ea6: 64fb str r3, [r7, #76] @ 0x4c
8005ea8: e9d7 2312 ldrd r2, r3, [r7, #72] @ 0x48
8005eac: 4641 mov r1, r8
8005eae: eb12 0a01 adds.w sl, r2, r1
8005eb2: 4649 mov r1, r9
8005eb4: eb43 0b01 adc.w fp, r3, r1
8005eb8: f04f 0200 mov.w r2, #0
8005ebc: f04f 0300 mov.w r3, #0
8005ec0: ea4f 03cb mov.w r3, fp, lsl #3
8005ec4: ea43 735a orr.w r3, r3, sl, lsr #29
8005ec8: ea4f 02ca mov.w r2, sl, lsl #3
8005ecc: 4692 mov sl, r2
8005ece: 469b mov fp, r3
8005ed0: 4643 mov r3, r8
8005ed2: eb1a 0303 adds.w r3, sl, r3
8005ed6: f8c7 30c8 str.w r3, [r7, #200] @ 0xc8
8005eda: 464b mov r3, r9
8005edc: eb4b 0303 adc.w r3, fp, r3
8005ee0: f8c7 30cc str.w r3, [r7, #204] @ 0xcc
8005ee4: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005ee8: 685b ldr r3, [r3, #4]
8005eea: 2200 movs r2, #0
8005eec: f8c7 30c0 str.w r3, [r7, #192] @ 0xc0
8005ef0: f8c7 20c4 str.w r2, [r7, #196] @ 0xc4
8005ef4: e9d7 1230 ldrd r1, r2, [r7, #192] @ 0xc0
8005ef8: 460b mov r3, r1
8005efa: 18db adds r3, r3, r3
8005efc: 643b str r3, [r7, #64] @ 0x40
8005efe: 4613 mov r3, r2
8005f00: eb42 0303 adc.w r3, r2, r3
8005f04: 647b str r3, [r7, #68] @ 0x44
8005f06: e9d7 2310 ldrd r2, r3, [r7, #64] @ 0x40
8005f0a: e9d7 0132 ldrd r0, r1, [r7, #200] @ 0xc8
8005f0e: f7fa f96f bl 80001f0 <__aeabi_uldivmod>
8005f12: 4602 mov r2, r0
8005f14: 460b mov r3, r1
8005f16: 4611 mov r1, r2
8005f18: 4b3b ldr r3, [pc, #236] @ (8006008 <UART_SetConfig+0x2d4>)
8005f1a: fba3 2301 umull r2, r3, r3, r1
8005f1e: 095b lsrs r3, r3, #5
8005f20: 2264 movs r2, #100 @ 0x64
8005f22: fb02 f303 mul.w r3, r2, r3
8005f26: 1acb subs r3, r1, r3
8005f28: 00db lsls r3, r3, #3
8005f2a: f103 0232 add.w r2, r3, #50 @ 0x32
8005f2e: 4b36 ldr r3, [pc, #216] @ (8006008 <UART_SetConfig+0x2d4>)
8005f30: fba3 2302 umull r2, r3, r3, r2
8005f34: 095b lsrs r3, r3, #5
8005f36: 005b lsls r3, r3, #1
8005f38: f403 73f8 and.w r3, r3, #496 @ 0x1f0
8005f3c: 441c add r4, r3
8005f3e: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc
8005f42: 2200 movs r2, #0
8005f44: f8c7 30b8 str.w r3, [r7, #184] @ 0xb8
8005f48: f8c7 20bc str.w r2, [r7, #188] @ 0xbc
8005f4c: e9d7 892e ldrd r8, r9, [r7, #184] @ 0xb8
8005f50: 4642 mov r2, r8
8005f52: 464b mov r3, r9
8005f54: 1891 adds r1, r2, r2
8005f56: 63b9 str r1, [r7, #56] @ 0x38
8005f58: 415b adcs r3, r3
8005f5a: 63fb str r3, [r7, #60] @ 0x3c
8005f5c: e9d7 230e ldrd r2, r3, [r7, #56] @ 0x38
8005f60: 4641 mov r1, r8
8005f62: 1851 adds r1, r2, r1
8005f64: 6339 str r1, [r7, #48] @ 0x30
8005f66: 4649 mov r1, r9
8005f68: 414b adcs r3, r1
8005f6a: 637b str r3, [r7, #52] @ 0x34
8005f6c: f04f 0200 mov.w r2, #0
8005f70: f04f 0300 mov.w r3, #0
8005f74: e9d7 ab0c ldrd sl, fp, [r7, #48] @ 0x30
8005f78: 4659 mov r1, fp
8005f7a: 00cb lsls r3, r1, #3
8005f7c: 4651 mov r1, sl
8005f7e: ea43 7351 orr.w r3, r3, r1, lsr #29
8005f82: 4651 mov r1, sl
8005f84: 00ca lsls r2, r1, #3
8005f86: 4610 mov r0, r2
8005f88: 4619 mov r1, r3
8005f8a: 4603 mov r3, r0
8005f8c: 4642 mov r2, r8
8005f8e: 189b adds r3, r3, r2
8005f90: f8c7 30b0 str.w r3, [r7, #176] @ 0xb0
8005f94: 464b mov r3, r9
8005f96: 460a mov r2, r1
8005f98: eb42 0303 adc.w r3, r2, r3
8005f9c: f8c7 30b4 str.w r3, [r7, #180] @ 0xb4
8005fa0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005fa4: 685b ldr r3, [r3, #4]
8005fa6: 2200 movs r2, #0
8005fa8: f8c7 30a8 str.w r3, [r7, #168] @ 0xa8
8005fac: f8c7 20ac str.w r2, [r7, #172] @ 0xac
8005fb0: e9d7 122a ldrd r1, r2, [r7, #168] @ 0xa8
8005fb4: 460b mov r3, r1
8005fb6: 18db adds r3, r3, r3
8005fb8: 62bb str r3, [r7, #40] @ 0x28
8005fba: 4613 mov r3, r2
8005fbc: eb42 0303 adc.w r3, r2, r3
8005fc0: 62fb str r3, [r7, #44] @ 0x2c
8005fc2: e9d7 230a ldrd r2, r3, [r7, #40] @ 0x28
8005fc6: e9d7 012c ldrd r0, r1, [r7, #176] @ 0xb0
8005fca: f7fa f911 bl 80001f0 <__aeabi_uldivmod>
8005fce: 4602 mov r2, r0
8005fd0: 460b mov r3, r1
8005fd2: 4b0d ldr r3, [pc, #52] @ (8006008 <UART_SetConfig+0x2d4>)
8005fd4: fba3 1302 umull r1, r3, r3, r2
8005fd8: 095b lsrs r3, r3, #5
8005fda: 2164 movs r1, #100 @ 0x64
8005fdc: fb01 f303 mul.w r3, r1, r3
8005fe0: 1ad3 subs r3, r2, r3
8005fe2: 00db lsls r3, r3, #3
8005fe4: 3332 adds r3, #50 @ 0x32
8005fe6: 4a08 ldr r2, [pc, #32] @ (8006008 <UART_SetConfig+0x2d4>)
8005fe8: fba2 2303 umull r2, r3, r2, r3
8005fec: 095b lsrs r3, r3, #5
8005fee: f003 0207 and.w r2, r3, #7
8005ff2: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8005ff6: 681b ldr r3, [r3, #0]
8005ff8: 4422 add r2, r4
8005ffa: 609a str r2, [r3, #8]
}
else
{
huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
}
}
8005ffc: e106 b.n 800620c <UART_SetConfig+0x4d8>
8005ffe: bf00 nop
8006000: 40011000 .word 0x40011000
8006004: 40011400 .word 0x40011400
8006008: 51eb851f .word 0x51eb851f
huart->Instance->BRR = UART_BRR_SAMPLING16(pclk, huart->Init.BaudRate);
800600c: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc
8006010: 2200 movs r2, #0
8006012: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
8006016: f8c7 20a4 str.w r2, [r7, #164] @ 0xa4
800601a: e9d7 8928 ldrd r8, r9, [r7, #160] @ 0xa0
800601e: 4642 mov r2, r8
8006020: 464b mov r3, r9
8006022: 1891 adds r1, r2, r2
8006024: 6239 str r1, [r7, #32]
8006026: 415b adcs r3, r3
8006028: 627b str r3, [r7, #36] @ 0x24
800602a: e9d7 2308 ldrd r2, r3, [r7, #32]
800602e: 4641 mov r1, r8
8006030: 1854 adds r4, r2, r1
8006032: 4649 mov r1, r9
8006034: eb43 0501 adc.w r5, r3, r1
8006038: f04f 0200 mov.w r2, #0
800603c: f04f 0300 mov.w r3, #0
8006040: 00eb lsls r3, r5, #3
8006042: ea43 7354 orr.w r3, r3, r4, lsr #29
8006046: 00e2 lsls r2, r4, #3
8006048: 4614 mov r4, r2
800604a: 461d mov r5, r3
800604c: 4643 mov r3, r8
800604e: 18e3 adds r3, r4, r3
8006050: f8c7 3098 str.w r3, [r7, #152] @ 0x98
8006054: 464b mov r3, r9
8006056: eb45 0303 adc.w r3, r5, r3
800605a: f8c7 309c str.w r3, [r7, #156] @ 0x9c
800605e: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8006062: 685b ldr r3, [r3, #4]
8006064: 2200 movs r2, #0
8006066: f8c7 3090 str.w r3, [r7, #144] @ 0x90
800606a: f8c7 2094 str.w r2, [r7, #148] @ 0x94
800606e: f04f 0200 mov.w r2, #0
8006072: f04f 0300 mov.w r3, #0
8006076: e9d7 4524 ldrd r4, r5, [r7, #144] @ 0x90
800607a: 4629 mov r1, r5
800607c: 008b lsls r3, r1, #2
800607e: 4621 mov r1, r4
8006080: ea43 7391 orr.w r3, r3, r1, lsr #30
8006084: 4621 mov r1, r4
8006086: 008a lsls r2, r1, #2
8006088: e9d7 0126 ldrd r0, r1, [r7, #152] @ 0x98
800608c: f7fa f8b0 bl 80001f0 <__aeabi_uldivmod>
8006090: 4602 mov r2, r0
8006092: 460b mov r3, r1
8006094: 4b60 ldr r3, [pc, #384] @ (8006218 <UART_SetConfig+0x4e4>)
8006096: fba3 2302 umull r2, r3, r3, r2
800609a: 095b lsrs r3, r3, #5
800609c: 011c lsls r4, r3, #4
800609e: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc
80060a2: 2200 movs r2, #0
80060a4: f8c7 3088 str.w r3, [r7, #136] @ 0x88
80060a8: f8c7 208c str.w r2, [r7, #140] @ 0x8c
80060ac: e9d7 8922 ldrd r8, r9, [r7, #136] @ 0x88
80060b0: 4642 mov r2, r8
80060b2: 464b mov r3, r9
80060b4: 1891 adds r1, r2, r2
80060b6: 61b9 str r1, [r7, #24]
80060b8: 415b adcs r3, r3
80060ba: 61fb str r3, [r7, #28]
80060bc: e9d7 2306 ldrd r2, r3, [r7, #24]
80060c0: 4641 mov r1, r8
80060c2: 1851 adds r1, r2, r1
80060c4: 6139 str r1, [r7, #16]
80060c6: 4649 mov r1, r9
80060c8: 414b adcs r3, r1
80060ca: 617b str r3, [r7, #20]
80060cc: f04f 0200 mov.w r2, #0
80060d0: f04f 0300 mov.w r3, #0
80060d4: e9d7 ab04 ldrd sl, fp, [r7, #16]
80060d8: 4659 mov r1, fp
80060da: 00cb lsls r3, r1, #3
80060dc: 4651 mov r1, sl
80060de: ea43 7351 orr.w r3, r3, r1, lsr #29
80060e2: 4651 mov r1, sl
80060e4: 00ca lsls r2, r1, #3
80060e6: 4610 mov r0, r2
80060e8: 4619 mov r1, r3
80060ea: 4603 mov r3, r0
80060ec: 4642 mov r2, r8
80060ee: 189b adds r3, r3, r2
80060f0: f8c7 3080 str.w r3, [r7, #128] @ 0x80
80060f4: 464b mov r3, r9
80060f6: 460a mov r2, r1
80060f8: eb42 0303 adc.w r3, r2, r3
80060fc: f8c7 3084 str.w r3, [r7, #132] @ 0x84
8006100: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8006104: 685b ldr r3, [r3, #4]
8006106: 2200 movs r2, #0
8006108: 67bb str r3, [r7, #120] @ 0x78
800610a: 67fa str r2, [r7, #124] @ 0x7c
800610c: f04f 0200 mov.w r2, #0
8006110: f04f 0300 mov.w r3, #0
8006114: e9d7 891e ldrd r8, r9, [r7, #120] @ 0x78
8006118: 4649 mov r1, r9
800611a: 008b lsls r3, r1, #2
800611c: 4641 mov r1, r8
800611e: ea43 7391 orr.w r3, r3, r1, lsr #30
8006122: 4641 mov r1, r8
8006124: 008a lsls r2, r1, #2
8006126: e9d7 0120 ldrd r0, r1, [r7, #128] @ 0x80
800612a: f7fa f861 bl 80001f0 <__aeabi_uldivmod>
800612e: 4602 mov r2, r0
8006130: 460b mov r3, r1
8006132: 4611 mov r1, r2
8006134: 4b38 ldr r3, [pc, #224] @ (8006218 <UART_SetConfig+0x4e4>)
8006136: fba3 2301 umull r2, r3, r3, r1
800613a: 095b lsrs r3, r3, #5
800613c: 2264 movs r2, #100 @ 0x64
800613e: fb02 f303 mul.w r3, r2, r3
8006142: 1acb subs r3, r1, r3
8006144: 011b lsls r3, r3, #4
8006146: 3332 adds r3, #50 @ 0x32
8006148: 4a33 ldr r2, [pc, #204] @ (8006218 <UART_SetConfig+0x4e4>)
800614a: fba2 2303 umull r2, r3, r2, r3
800614e: 095b lsrs r3, r3, #5
8006150: f003 03f0 and.w r3, r3, #240 @ 0xf0
8006154: 441c add r4, r3
8006156: f8d7 30fc ldr.w r3, [r7, #252] @ 0xfc
800615a: 2200 movs r2, #0
800615c: 673b str r3, [r7, #112] @ 0x70
800615e: 677a str r2, [r7, #116] @ 0x74
8006160: e9d7 891c ldrd r8, r9, [r7, #112] @ 0x70
8006164: 4642 mov r2, r8
8006166: 464b mov r3, r9
8006168: 1891 adds r1, r2, r2
800616a: 60b9 str r1, [r7, #8]
800616c: 415b adcs r3, r3
800616e: 60fb str r3, [r7, #12]
8006170: e9d7 2302 ldrd r2, r3, [r7, #8]
8006174: 4641 mov r1, r8
8006176: 1851 adds r1, r2, r1
8006178: 6039 str r1, [r7, #0]
800617a: 4649 mov r1, r9
800617c: 414b adcs r3, r1
800617e: 607b str r3, [r7, #4]
8006180: f04f 0200 mov.w r2, #0
8006184: f04f 0300 mov.w r3, #0
8006188: e9d7 ab00 ldrd sl, fp, [r7]
800618c: 4659 mov r1, fp
800618e: 00cb lsls r3, r1, #3
8006190: 4651 mov r1, sl
8006192: ea43 7351 orr.w r3, r3, r1, lsr #29
8006196: 4651 mov r1, sl
8006198: 00ca lsls r2, r1, #3
800619a: 4610 mov r0, r2
800619c: 4619 mov r1, r3
800619e: 4603 mov r3, r0
80061a0: 4642 mov r2, r8
80061a2: 189b adds r3, r3, r2
80061a4: 66bb str r3, [r7, #104] @ 0x68
80061a6: 464b mov r3, r9
80061a8: 460a mov r2, r1
80061aa: eb42 0303 adc.w r3, r2, r3
80061ae: 66fb str r3, [r7, #108] @ 0x6c
80061b0: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
80061b4: 685b ldr r3, [r3, #4]
80061b6: 2200 movs r2, #0
80061b8: 663b str r3, [r7, #96] @ 0x60
80061ba: 667a str r2, [r7, #100] @ 0x64
80061bc: f04f 0200 mov.w r2, #0
80061c0: f04f 0300 mov.w r3, #0
80061c4: e9d7 8918 ldrd r8, r9, [r7, #96] @ 0x60
80061c8: 4649 mov r1, r9
80061ca: 008b lsls r3, r1, #2
80061cc: 4641 mov r1, r8
80061ce: ea43 7391 orr.w r3, r3, r1, lsr #30
80061d2: 4641 mov r1, r8
80061d4: 008a lsls r2, r1, #2
80061d6: e9d7 011a ldrd r0, r1, [r7, #104] @ 0x68
80061da: f7fa f809 bl 80001f0 <__aeabi_uldivmod>
80061de: 4602 mov r2, r0
80061e0: 460b mov r3, r1
80061e2: 4b0d ldr r3, [pc, #52] @ (8006218 <UART_SetConfig+0x4e4>)
80061e4: fba3 1302 umull r1, r3, r3, r2
80061e8: 095b lsrs r3, r3, #5
80061ea: 2164 movs r1, #100 @ 0x64
80061ec: fb01 f303 mul.w r3, r1, r3
80061f0: 1ad3 subs r3, r2, r3
80061f2: 011b lsls r3, r3, #4
80061f4: 3332 adds r3, #50 @ 0x32
80061f6: 4a08 ldr r2, [pc, #32] @ (8006218 <UART_SetConfig+0x4e4>)
80061f8: fba2 2303 umull r2, r3, r2, r3
80061fc: 095b lsrs r3, r3, #5
80061fe: f003 020f and.w r2, r3, #15
8006202: f8d7 30f4 ldr.w r3, [r7, #244] @ 0xf4
8006206: 681b ldr r3, [r3, #0]
8006208: 4422 add r2, r4
800620a: 609a str r2, [r3, #8]
}
800620c: bf00 nop
800620e: f507 7780 add.w r7, r7, #256 @ 0x100
8006212: 46bd mov sp, r7
8006214: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
8006218: 51eb851f .word 0x51eb851f
0800621c <FMC_SDRAM_Init>:
* @param Device Pointer to SDRAM device instance
* @param Init Pointer to SDRAM Initialization structure
* @retval HAL status
*/
HAL_StatusTypeDef FMC_SDRAM_Init(FMC_SDRAM_TypeDef *Device, const FMC_SDRAM_InitTypeDef *Init)
{
800621c: b480 push {r7}
800621e: b083 sub sp, #12
8006220: af00 add r7, sp, #0
8006222: 6078 str r0, [r7, #4]
8006224: 6039 str r1, [r7, #0]
assert_param(IS_FMC_SDCLOCK_PERIOD(Init->SDClockPeriod));
assert_param(IS_FMC_READ_BURST(Init->ReadBurst));
assert_param(IS_FMC_READPIPE_DELAY(Init->ReadPipeDelay));
/* Set SDRAM bank configuration parameters */
if (Init->SDBank == FMC_SDRAM_BANK1)
8006226: 683b ldr r3, [r7, #0]
8006228: 681b ldr r3, [r3, #0]
800622a: 2b00 cmp r3, #0
800622c: d123 bne.n 8006276 <FMC_SDRAM_Init+0x5a>
{
MODIFY_REG(Device->SDCR[FMC_SDRAM_BANK1],
800622e: 687b ldr r3, [r7, #4]
8006230: 681b ldr r3, [r3, #0]
8006232: f423 43ff bic.w r3, r3, #32640 @ 0x7f80
8006236: f023 037f bic.w r3, r3, #127 @ 0x7f
800623a: 683a ldr r2, [r7, #0]
800623c: 6851 ldr r1, [r2, #4]
800623e: 683a ldr r2, [r7, #0]
8006240: 6892 ldr r2, [r2, #8]
8006242: 4311 orrs r1, r2
8006244: 683a ldr r2, [r7, #0]
8006246: 68d2 ldr r2, [r2, #12]
8006248: 4311 orrs r1, r2
800624a: 683a ldr r2, [r7, #0]
800624c: 6912 ldr r2, [r2, #16]
800624e: 4311 orrs r1, r2
8006250: 683a ldr r2, [r7, #0]
8006252: 6952 ldr r2, [r2, #20]
8006254: 4311 orrs r1, r2
8006256: 683a ldr r2, [r7, #0]
8006258: 6992 ldr r2, [r2, #24]
800625a: 4311 orrs r1, r2
800625c: 683a ldr r2, [r7, #0]
800625e: 69d2 ldr r2, [r2, #28]
8006260: 4311 orrs r1, r2
8006262: 683a ldr r2, [r7, #0]
8006264: 6a12 ldr r2, [r2, #32]
8006266: 4311 orrs r1, r2
8006268: 683a ldr r2, [r7, #0]
800626a: 6a52 ldr r2, [r2, #36] @ 0x24
800626c: 430a orrs r2, r1
800626e: 431a orrs r2, r3
8006270: 687b ldr r3, [r7, #4]
8006272: 601a str r2, [r3, #0]
8006274: e028 b.n 80062c8 <FMC_SDRAM_Init+0xac>
Init->ReadBurst |
Init->ReadPipeDelay));
}
else /* FMC_Bank2_SDRAM */
{
MODIFY_REG(Device->SDCR[FMC_SDRAM_BANK1],
8006276: 687b ldr r3, [r7, #4]
8006278: 681b ldr r3, [r3, #0]
800627a: f423 42f8 bic.w r2, r3, #31744 @ 0x7c00
800627e: 683b ldr r3, [r7, #0]
8006280: 69d9 ldr r1, [r3, #28]
8006282: 683b ldr r3, [r7, #0]
8006284: 6a1b ldr r3, [r3, #32]
8006286: 4319 orrs r1, r3
8006288: 683b ldr r3, [r7, #0]
800628a: 6a5b ldr r3, [r3, #36] @ 0x24
800628c: 430b orrs r3, r1
800628e: 431a orrs r2, r3
8006290: 687b ldr r3, [r7, #4]
8006292: 601a str r2, [r3, #0]
FMC_SDCR1_RPIPE,
(Init->SDClockPeriod |
Init->ReadBurst |
Init->ReadPipeDelay));
MODIFY_REG(Device->SDCR[FMC_SDRAM_BANK2],
8006294: 687b ldr r3, [r7, #4]
8006296: 685b ldr r3, [r3, #4]
8006298: f423 43ff bic.w r3, r3, #32640 @ 0x7f80
800629c: f023 037f bic.w r3, r3, #127 @ 0x7f
80062a0: 683a ldr r2, [r7, #0]
80062a2: 6851 ldr r1, [r2, #4]
80062a4: 683a ldr r2, [r7, #0]
80062a6: 6892 ldr r2, [r2, #8]
80062a8: 4311 orrs r1, r2
80062aa: 683a ldr r2, [r7, #0]
80062ac: 68d2 ldr r2, [r2, #12]
80062ae: 4311 orrs r1, r2
80062b0: 683a ldr r2, [r7, #0]
80062b2: 6912 ldr r2, [r2, #16]
80062b4: 4311 orrs r1, r2
80062b6: 683a ldr r2, [r7, #0]
80062b8: 6952 ldr r2, [r2, #20]
80062ba: 4311 orrs r1, r2
80062bc: 683a ldr r2, [r7, #0]
80062be: 6992 ldr r2, [r2, #24]
80062c0: 430a orrs r2, r1
80062c2: 431a orrs r2, r3
80062c4: 687b ldr r3, [r7, #4]
80062c6: 605a str r2, [r3, #4]
Init->InternalBankNumber |
Init->CASLatency |
Init->WriteProtection));
}
return HAL_OK;
80062c8: 2300 movs r3, #0
}
80062ca: 4618 mov r0, r3
80062cc: 370c adds r7, #12
80062ce: 46bd mov sp, r7
80062d0: f85d 7b04 ldr.w r7, [sp], #4
80062d4: 4770 bx lr
080062d6 <FMC_SDRAM_Timing_Init>:
* @param Bank SDRAM bank number
* @retval HAL status
*/
HAL_StatusTypeDef FMC_SDRAM_Timing_Init(FMC_SDRAM_TypeDef *Device,
const FMC_SDRAM_TimingTypeDef *Timing, uint32_t Bank)
{
80062d6: b480 push {r7}
80062d8: b085 sub sp, #20
80062da: af00 add r7, sp, #0
80062dc: 60f8 str r0, [r7, #12]
80062de: 60b9 str r1, [r7, #8]
80062e0: 607a str r2, [r7, #4]
assert_param(IS_FMC_RP_DELAY(Timing->RPDelay));
assert_param(IS_FMC_RCD_DELAY(Timing->RCDDelay));
assert_param(IS_FMC_SDRAM_BANK(Bank));
/* Set SDRAM device timing parameters */
if (Bank == FMC_SDRAM_BANK1)
80062e2: 687b ldr r3, [r7, #4]
80062e4: 2b00 cmp r3, #0
80062e6: d128 bne.n 800633a <FMC_SDRAM_Timing_Init+0x64>
{
MODIFY_REG(Device->SDTR[FMC_SDRAM_BANK1],
80062e8: 68fb ldr r3, [r7, #12]
80062ea: 689b ldr r3, [r3, #8]
80062ec: f003 4270 and.w r2, r3, #4026531840 @ 0xf0000000
80062f0: 68bb ldr r3, [r7, #8]
80062f2: 681b ldr r3, [r3, #0]
80062f4: 1e59 subs r1, r3, #1
80062f6: 68bb ldr r3, [r7, #8]
80062f8: 685b ldr r3, [r3, #4]
80062fa: 3b01 subs r3, #1
80062fc: 011b lsls r3, r3, #4
80062fe: 4319 orrs r1, r3
8006300: 68bb ldr r3, [r7, #8]
8006302: 689b ldr r3, [r3, #8]
8006304: 3b01 subs r3, #1
8006306: 021b lsls r3, r3, #8
8006308: 4319 orrs r1, r3
800630a: 68bb ldr r3, [r7, #8]
800630c: 68db ldr r3, [r3, #12]
800630e: 3b01 subs r3, #1
8006310: 031b lsls r3, r3, #12
8006312: 4319 orrs r1, r3
8006314: 68bb ldr r3, [r7, #8]
8006316: 691b ldr r3, [r3, #16]
8006318: 3b01 subs r3, #1
800631a: 041b lsls r3, r3, #16
800631c: 4319 orrs r1, r3
800631e: 68bb ldr r3, [r7, #8]
8006320: 695b ldr r3, [r3, #20]
8006322: 3b01 subs r3, #1
8006324: 051b lsls r3, r3, #20
8006326: 4319 orrs r1, r3
8006328: 68bb ldr r3, [r7, #8]
800632a: 699b ldr r3, [r3, #24]
800632c: 3b01 subs r3, #1
800632e: 061b lsls r3, r3, #24
8006330: 430b orrs r3, r1
8006332: 431a orrs r2, r3
8006334: 68fb ldr r3, [r7, #12]
8006336: 609a str r2, [r3, #8]
8006338: e02f b.n 800639a <FMC_SDRAM_Timing_Init+0xc4>
(((Timing->RPDelay) - 1U) << FMC_SDTR1_TRP_Pos) |
(((Timing->RCDDelay) - 1U) << FMC_SDTR1_TRCD_Pos)));
}
else /* FMC_Bank2_SDRAM */
{
MODIFY_REG(Device->SDTR[FMC_SDRAM_BANK1],
800633a: 68fb ldr r3, [r7, #12]
800633c: 689b ldr r3, [r3, #8]
800633e: f423 0370 bic.w r3, r3, #15728640 @ 0xf00000
8006342: f423 4370 bic.w r3, r3, #61440 @ 0xf000
8006346: 68ba ldr r2, [r7, #8]
8006348: 68d2 ldr r2, [r2, #12]
800634a: 3a01 subs r2, #1
800634c: 0311 lsls r1, r2, #12
800634e: 68ba ldr r2, [r7, #8]
8006350: 6952 ldr r2, [r2, #20]
8006352: 3a01 subs r2, #1
8006354: 0512 lsls r2, r2, #20
8006356: 430a orrs r2, r1
8006358: 431a orrs r2, r3
800635a: 68fb ldr r3, [r7, #12]
800635c: 609a str r2, [r3, #8]
FMC_SDTR1_TRC |
FMC_SDTR1_TRP,
(((Timing->RowCycleDelay) - 1U) << FMC_SDTR1_TRC_Pos) |
(((Timing->RPDelay) - 1U) << FMC_SDTR1_TRP_Pos));
MODIFY_REG(Device->SDTR[FMC_SDRAM_BANK2],
800635e: 68fb ldr r3, [r7, #12]
8006360: 68db ldr r3, [r3, #12]
8006362: f003 4270 and.w r2, r3, #4026531840 @ 0xf0000000
8006366: 68bb ldr r3, [r7, #8]
8006368: 681b ldr r3, [r3, #0]
800636a: 1e59 subs r1, r3, #1
800636c: 68bb ldr r3, [r7, #8]
800636e: 685b ldr r3, [r3, #4]
8006370: 3b01 subs r3, #1
8006372: 011b lsls r3, r3, #4
8006374: 4319 orrs r1, r3
8006376: 68bb ldr r3, [r7, #8]
8006378: 689b ldr r3, [r3, #8]
800637a: 3b01 subs r3, #1
800637c: 021b lsls r3, r3, #8
800637e: 4319 orrs r1, r3
8006380: 68bb ldr r3, [r7, #8]
8006382: 691b ldr r3, [r3, #16]
8006384: 3b01 subs r3, #1
8006386: 041b lsls r3, r3, #16
8006388: 4319 orrs r1, r3
800638a: 68bb ldr r3, [r7, #8]
800638c: 699b ldr r3, [r3, #24]
800638e: 3b01 subs r3, #1
8006390: 061b lsls r3, r3, #24
8006392: 430b orrs r3, r1
8006394: 431a orrs r2, r3
8006396: 68fb ldr r3, [r7, #12]
8006398: 60da str r2, [r3, #12]
(((Timing->SelfRefreshTime) - 1U) << FMC_SDTR1_TRAS_Pos) |
(((Timing->WriteRecoveryTime) - 1U) << FMC_SDTR1_TWR_Pos) |
(((Timing->RCDDelay) - 1U) << FMC_SDTR1_TRCD_Pos)));
}
return HAL_OK;
800639a: 2300 movs r3, #0
}
800639c: 4618 mov r0, r3
800639e: 3714 adds r7, #20
80063a0: 46bd mov sp, r7
80063a2: f85d 7b04 ldr.w r7, [sp], #4
80063a6: 4770 bx lr
080063a8 <USB_EnableGlobalInt>:
* 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)
{
80063a8: b480 push {r7}
80063aa: b083 sub sp, #12
80063ac: af00 add r7, sp, #0
80063ae: 6078 str r0, [r7, #4]
USBx->GAHBCFG |= USB_OTG_GAHBCFG_GINT;
80063b0: 687b ldr r3, [r7, #4]
80063b2: 689b ldr r3, [r3, #8]
80063b4: f043 0201 orr.w r2, r3, #1
80063b8: 687b ldr r3, [r7, #4]
80063ba: 609a str r2, [r3, #8]
return HAL_OK;
80063bc: 2300 movs r3, #0
}
80063be: 4618 mov r0, r3
80063c0: 370c adds r7, #12
80063c2: 46bd mov sp, r7
80063c4: f85d 7b04 ldr.w r7, [sp], #4
80063c8: 4770 bx lr
080063ca <USB_DisableGlobalInt>:
* 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)
{
80063ca: b480 push {r7}
80063cc: b083 sub sp, #12
80063ce: af00 add r7, sp, #0
80063d0: 6078 str r0, [r7, #4]
USBx->GAHBCFG &= ~USB_OTG_GAHBCFG_GINT;
80063d2: 687b ldr r3, [r7, #4]
80063d4: 689b ldr r3, [r3, #8]
80063d6: f023 0201 bic.w r2, r3, #1
80063da: 687b ldr r3, [r7, #4]
80063dc: 609a str r2, [r3, #8]
return HAL_OK;
80063de: 2300 movs r3, #0
}
80063e0: 4618 mov r0, r3
80063e2: 370c adds r7, #12
80063e4: 46bd mov sp, r7
80063e6: f85d 7b04 ldr.w r7, [sp], #4
80063ea: 4770 bx lr
080063ec <USB_FlushTxFifo>:
* 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)
{
80063ec: b480 push {r7}
80063ee: b085 sub sp, #20
80063f0: af00 add r7, sp, #0
80063f2: 6078 str r0, [r7, #4]
80063f4: 6039 str r1, [r7, #0]
__IO uint32_t count = 0U;
80063f6: 2300 movs r3, #0
80063f8: 60fb str r3, [r7, #12]
/* Wait for AHB master IDLE state. */
do
{
count++;
80063fa: 68fb ldr r3, [r7, #12]
80063fc: 3301 adds r3, #1
80063fe: 60fb str r3, [r7, #12]
if (count > HAL_USB_TIMEOUT)
8006400: 68fb ldr r3, [r7, #12]
8006402: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000
8006406: d901 bls.n 800640c <USB_FlushTxFifo+0x20>
{
return HAL_TIMEOUT;
8006408: 2303 movs r3, #3
800640a: e01b b.n 8006444 <USB_FlushTxFifo+0x58>
}
} while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_AHBIDL) == 0U);
800640c: 687b ldr r3, [r7, #4]
800640e: 691b ldr r3, [r3, #16]
8006410: 2b00 cmp r3, #0
8006412: daf2 bge.n 80063fa <USB_FlushTxFifo+0xe>
/* Flush TX Fifo */
count = 0U;
8006414: 2300 movs r3, #0
8006416: 60fb str r3, [r7, #12]
USBx->GRSTCTL = (USB_OTG_GRSTCTL_TXFFLSH | (num << 6));
8006418: 683b ldr r3, [r7, #0]
800641a: 019b lsls r3, r3, #6
800641c: f043 0220 orr.w r2, r3, #32
8006420: 687b ldr r3, [r7, #4]
8006422: 611a str r2, [r3, #16]
do
{
count++;
8006424: 68fb ldr r3, [r7, #12]
8006426: 3301 adds r3, #1
8006428: 60fb str r3, [r7, #12]
if (count > HAL_USB_TIMEOUT)
800642a: 68fb ldr r3, [r7, #12]
800642c: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000
8006430: d901 bls.n 8006436 <USB_FlushTxFifo+0x4a>
{
return HAL_TIMEOUT;
8006432: 2303 movs r3, #3
8006434: e006 b.n 8006444 <USB_FlushTxFifo+0x58>
}
} while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_TXFFLSH) == USB_OTG_GRSTCTL_TXFFLSH);
8006436: 687b ldr r3, [r7, #4]
8006438: 691b ldr r3, [r3, #16]
800643a: f003 0320 and.w r3, r3, #32
800643e: 2b20 cmp r3, #32
8006440: d0f0 beq.n 8006424 <USB_FlushTxFifo+0x38>
return HAL_OK;
8006442: 2300 movs r3, #0
}
8006444: 4618 mov r0, r3
8006446: 3714 adds r7, #20
8006448: 46bd mov sp, r7
800644a: f85d 7b04 ldr.w r7, [sp], #4
800644e: 4770 bx lr
08006450 <USB_FlushRxFifo>:
* @brief USB_FlushRxFifo Flush Rx FIFO
* @param USBx Selected device
* @retval HAL status
*/
HAL_StatusTypeDef USB_FlushRxFifo(USB_OTG_GlobalTypeDef *USBx)
{
8006450: b480 push {r7}
8006452: b085 sub sp, #20
8006454: af00 add r7, sp, #0
8006456: 6078 str r0, [r7, #4]
__IO uint32_t count = 0U;
8006458: 2300 movs r3, #0
800645a: 60fb str r3, [r7, #12]
/* Wait for AHB master IDLE state. */
do
{
count++;
800645c: 68fb ldr r3, [r7, #12]
800645e: 3301 adds r3, #1
8006460: 60fb str r3, [r7, #12]
if (count > HAL_USB_TIMEOUT)
8006462: 68fb ldr r3, [r7, #12]
8006464: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000
8006468: d901 bls.n 800646e <USB_FlushRxFifo+0x1e>
{
return HAL_TIMEOUT;
800646a: 2303 movs r3, #3
800646c: e018 b.n 80064a0 <USB_FlushRxFifo+0x50>
}
} while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_AHBIDL) == 0U);
800646e: 687b ldr r3, [r7, #4]
8006470: 691b ldr r3, [r3, #16]
8006472: 2b00 cmp r3, #0
8006474: daf2 bge.n 800645c <USB_FlushRxFifo+0xc>
/* Flush RX Fifo */
count = 0U;
8006476: 2300 movs r3, #0
8006478: 60fb str r3, [r7, #12]
USBx->GRSTCTL = USB_OTG_GRSTCTL_RXFFLSH;
800647a: 687b ldr r3, [r7, #4]
800647c: 2210 movs r2, #16
800647e: 611a str r2, [r3, #16]
do
{
count++;
8006480: 68fb ldr r3, [r7, #12]
8006482: 3301 adds r3, #1
8006484: 60fb str r3, [r7, #12]
if (count > HAL_USB_TIMEOUT)
8006486: 68fb ldr r3, [r7, #12]
8006488: f1b3 6f70 cmp.w r3, #251658240 @ 0xf000000
800648c: d901 bls.n 8006492 <USB_FlushRxFifo+0x42>
{
return HAL_TIMEOUT;
800648e: 2303 movs r3, #3
8006490: e006 b.n 80064a0 <USB_FlushRxFifo+0x50>
}
} while ((USBx->GRSTCTL & USB_OTG_GRSTCTL_RXFFLSH) == USB_OTG_GRSTCTL_RXFFLSH);
8006492: 687b ldr r3, [r7, #4]
8006494: 691b ldr r3, [r3, #16]
8006496: f003 0310 and.w r3, r3, #16
800649a: 2b10 cmp r3, #16
800649c: d0f0 beq.n 8006480 <USB_FlushRxFifo+0x30>
return HAL_OK;
800649e: 2300 movs r3, #0
}
80064a0: 4618 mov r0, r3
80064a2: 3714 adds r7, #20
80064a4: 46bd mov sp, r7
80064a6: f85d 7b04 ldr.w r7, [sp], #4
80064aa: 4770 bx lr
080064ac <USB_ReadPacket>:
* @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)
{
80064ac: b480 push {r7}
80064ae: b08b sub sp, #44 @ 0x2c
80064b0: af00 add r7, sp, #0
80064b2: 60f8 str r0, [r7, #12]
80064b4: 60b9 str r1, [r7, #8]
80064b6: 4613 mov r3, r2
80064b8: 80fb strh r3, [r7, #6]
uint32_t USBx_BASE = (uint32_t)USBx;
80064ba: 68fb ldr r3, [r7, #12]
80064bc: 61bb str r3, [r7, #24]
uint8_t *pDest = dest;
80064be: 68bb ldr r3, [r7, #8]
80064c0: 627b str r3, [r7, #36] @ 0x24
uint32_t pData;
uint32_t i;
uint32_t count32b = (uint32_t)len >> 2U;
80064c2: 88fb ldrh r3, [r7, #6]
80064c4: 089b lsrs r3, r3, #2
80064c6: b29b uxth r3, r3
80064c8: 617b str r3, [r7, #20]
uint16_t remaining_bytes = len % 4U;
80064ca: 88fb ldrh r3, [r7, #6]
80064cc: f003 0303 and.w r3, r3, #3
80064d0: 83fb strh r3, [r7, #30]
for (i = 0U; i < count32b; i++)
80064d2: 2300 movs r3, #0
80064d4: 623b str r3, [r7, #32]
80064d6: e014 b.n 8006502 <USB_ReadPacket+0x56>
{
__UNALIGNED_UINT32_WRITE(pDest, USBx_DFIFO(0U));
80064d8: 69bb ldr r3, [r7, #24]
80064da: f503 5380 add.w r3, r3, #4096 @ 0x1000
80064de: 681a ldr r2, [r3, #0]
80064e0: 6a7b ldr r3, [r7, #36] @ 0x24
80064e2: 601a str r2, [r3, #0]
pDest++;
80064e4: 6a7b ldr r3, [r7, #36] @ 0x24
80064e6: 3301 adds r3, #1
80064e8: 627b str r3, [r7, #36] @ 0x24
pDest++;
80064ea: 6a7b ldr r3, [r7, #36] @ 0x24
80064ec: 3301 adds r3, #1
80064ee: 627b str r3, [r7, #36] @ 0x24
pDest++;
80064f0: 6a7b ldr r3, [r7, #36] @ 0x24
80064f2: 3301 adds r3, #1
80064f4: 627b str r3, [r7, #36] @ 0x24
pDest++;
80064f6: 6a7b ldr r3, [r7, #36] @ 0x24
80064f8: 3301 adds r3, #1
80064fa: 627b str r3, [r7, #36] @ 0x24
for (i = 0U; i < count32b; i++)
80064fc: 6a3b ldr r3, [r7, #32]
80064fe: 3301 adds r3, #1
8006500: 623b str r3, [r7, #32]
8006502: 6a3a ldr r2, [r7, #32]
8006504: 697b ldr r3, [r7, #20]
8006506: 429a cmp r2, r3
8006508: d3e6 bcc.n 80064d8 <USB_ReadPacket+0x2c>
}
/* When Number of data is not word aligned, read the remaining byte */
if (remaining_bytes != 0U)
800650a: 8bfb ldrh r3, [r7, #30]
800650c: 2b00 cmp r3, #0
800650e: d01e beq.n 800654e <USB_ReadPacket+0xa2>
{
i = 0U;
8006510: 2300 movs r3, #0
8006512: 623b str r3, [r7, #32]
__UNALIGNED_UINT32_WRITE(&pData, USBx_DFIFO(0U));
8006514: 69bb ldr r3, [r7, #24]
8006516: f503 5380 add.w r3, r3, #4096 @ 0x1000
800651a: 461a mov r2, r3
800651c: f107 0310 add.w r3, r7, #16
8006520: 6812 ldr r2, [r2, #0]
8006522: 601a str r2, [r3, #0]
do
{
*(uint8_t *)pDest = (uint8_t)(pData >> (8U * (uint8_t)(i)));
8006524: 693a ldr r2, [r7, #16]
8006526: 6a3b ldr r3, [r7, #32]
8006528: b2db uxtb r3, r3
800652a: 00db lsls r3, r3, #3
800652c: fa22 f303 lsr.w r3, r2, r3
8006530: b2da uxtb r2, r3
8006532: 6a7b ldr r3, [r7, #36] @ 0x24
8006534: 701a strb r2, [r3, #0]
i++;
8006536: 6a3b ldr r3, [r7, #32]
8006538: 3301 adds r3, #1
800653a: 623b str r3, [r7, #32]
pDest++;
800653c: 6a7b ldr r3, [r7, #36] @ 0x24
800653e: 3301 adds r3, #1
8006540: 627b str r3, [r7, #36] @ 0x24
remaining_bytes--;
8006542: 8bfb ldrh r3, [r7, #30]
8006544: 3b01 subs r3, #1
8006546: 83fb strh r3, [r7, #30]
} while (remaining_bytes != 0U);
8006548: 8bfb ldrh r3, [r7, #30]
800654a: 2b00 cmp r3, #0
800654c: d1ea bne.n 8006524 <USB_ReadPacket+0x78>
}
return ((void *)pDest);
800654e: 6a7b ldr r3, [r7, #36] @ 0x24
}
8006550: 4618 mov r0, r3
8006552: 372c adds r7, #44 @ 0x2c
8006554: 46bd mov sp, r7
8006556: f85d 7b04 ldr.w r7, [sp], #4
800655a: 4770 bx lr
0800655c <USB_ReadInterrupts>:
* @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)
{
800655c: b480 push {r7}
800655e: b085 sub sp, #20
8006560: af00 add r7, sp, #0
8006562: 6078 str r0, [r7, #4]
uint32_t tmpreg;
tmpreg = USBx->GINTSTS;
8006564: 687b ldr r3, [r7, #4]
8006566: 695b ldr r3, [r3, #20]
8006568: 60fb str r3, [r7, #12]
tmpreg &= USBx->GINTMSK;
800656a: 687b ldr r3, [r7, #4]
800656c: 699b ldr r3, [r3, #24]
800656e: 68fa ldr r2, [r7, #12]
8006570: 4013 ands r3, r2
8006572: 60fb str r3, [r7, #12]
return tmpreg;
8006574: 68fb ldr r3, [r7, #12]
}
8006576: 4618 mov r0, r3
8006578: 3714 adds r7, #20
800657a: 46bd mov sp, r7
800657c: f85d 7b04 ldr.w r7, [sp], #4
8006580: 4770 bx lr
08006582 <USB_ReadChInterrupts>:
* @param USBx Selected device
* @param chnum Channel number
* @retval USB Channel Interrupt status
*/
uint32_t USB_ReadChInterrupts(const USB_OTG_GlobalTypeDef *USBx, uint8_t chnum)
{
8006582: b480 push {r7}
8006584: b085 sub sp, #20
8006586: af00 add r7, sp, #0
8006588: 6078 str r0, [r7, #4]
800658a: 460b mov r3, r1
800658c: 70fb strb r3, [r7, #3]
uint32_t USBx_BASE = (uint32_t)USBx;
800658e: 687b ldr r3, [r7, #4]
8006590: 60fb str r3, [r7, #12]
uint32_t tmpreg;
tmpreg = USBx_HC(chnum)->HCINT;
8006592: 78fb ldrb r3, [r7, #3]
8006594: 015a lsls r2, r3, #5
8006596: 68fb ldr r3, [r7, #12]
8006598: 4413 add r3, r2
800659a: f503 63a0 add.w r3, r3, #1280 @ 0x500
800659e: 689b ldr r3, [r3, #8]
80065a0: 60bb str r3, [r7, #8]
tmpreg &= USBx_HC(chnum)->HCINTMSK;
80065a2: 78fb ldrb r3, [r7, #3]
80065a4: 015a lsls r2, r3, #5
80065a6: 68fb ldr r3, [r7, #12]
80065a8: 4413 add r3, r2
80065aa: f503 63a0 add.w r3, r3, #1280 @ 0x500
80065ae: 68db ldr r3, [r3, #12]
80065b0: 68ba ldr r2, [r7, #8]
80065b2: 4013 ands r3, r2
80065b4: 60bb str r3, [r7, #8]
return tmpreg;
80065b6: 68bb ldr r3, [r7, #8]
}
80065b8: 4618 mov r0, r3
80065ba: 3714 adds r7, #20
80065bc: 46bd mov sp, r7
80065be: f85d 7b04 ldr.w r7, [sp], #4
80065c2: 4770 bx lr
080065c4 <USB_GetMode>:
* This parameter can be one of these values:
* 1 : Host
* 0 : Device
*/
uint32_t USB_GetMode(const USB_OTG_GlobalTypeDef *USBx)
{
80065c4: b480 push {r7}
80065c6: b083 sub sp, #12
80065c8: af00 add r7, sp, #0
80065ca: 6078 str r0, [r7, #4]
return ((USBx->GINTSTS) & 0x1U);
80065cc: 687b ldr r3, [r7, #4]
80065ce: 695b ldr r3, [r3, #20]
80065d0: f003 0301 and.w r3, r3, #1
}
80065d4: 4618 mov r0, r3
80065d6: 370c adds r7, #12
80065d8: 46bd mov sp, r7
80065da: f85d 7b04 ldr.w r7, [sp], #4
80065de: 4770 bx lr
080065e0 <USB_InitFSLSPClkSel>:
* HCFG_48_MHZ : Full Speed 48 MHz Clock
* HCFG_6_MHZ : Low Speed 6 MHz Clock
* @retval HAL status
*/
HAL_StatusTypeDef USB_InitFSLSPClkSel(const USB_OTG_GlobalTypeDef *USBx, uint8_t freq)
{
80065e0: b480 push {r7}
80065e2: b085 sub sp, #20
80065e4: af00 add r7, sp, #0
80065e6: 6078 str r0, [r7, #4]
80065e8: 460b mov r3, r1
80065ea: 70fb strb r3, [r7, #3]
uint32_t USBx_BASE = (uint32_t)USBx;
80065ec: 687b ldr r3, [r7, #4]
80065ee: 60fb str r3, [r7, #12]
USBx_HOST->HCFG &= ~(USB_OTG_HCFG_FSLSPCS);
80065f0: 68fb ldr r3, [r7, #12]
80065f2: f503 6380 add.w r3, r3, #1024 @ 0x400
80065f6: 681b ldr r3, [r3, #0]
80065f8: 68fa ldr r2, [r7, #12]
80065fa: f502 6280 add.w r2, r2, #1024 @ 0x400
80065fe: f023 0303 bic.w r3, r3, #3
8006602: 6013 str r3, [r2, #0]
USBx_HOST->HCFG |= (uint32_t)freq & USB_OTG_HCFG_FSLSPCS;
8006604: 68fb ldr r3, [r7, #12]
8006606: f503 6380 add.w r3, r3, #1024 @ 0x400
800660a: 681a ldr r2, [r3, #0]
800660c: 78fb ldrb r3, [r7, #3]
800660e: f003 0303 and.w r3, r3, #3
8006612: 68f9 ldr r1, [r7, #12]
8006614: f501 6180 add.w r1, r1, #1024 @ 0x400
8006618: 4313 orrs r3, r2
800661a: 600b str r3, [r1, #0]
if (freq == HCFG_48_MHZ)
800661c: 78fb ldrb r3, [r7, #3]
800661e: 2b01 cmp r3, #1
8006620: d107 bne.n 8006632 <USB_InitFSLSPClkSel+0x52>
{
USBx_HOST->HFIR = HFIR_48_MHZ;
8006622: 68fb ldr r3, [r7, #12]
8006624: f503 6380 add.w r3, r3, #1024 @ 0x400
8006628: 461a mov r2, r3
800662a: f64b 3380 movw r3, #48000 @ 0xbb80
800662e: 6053 str r3, [r2, #4]
8006630: e00c b.n 800664c <USB_InitFSLSPClkSel+0x6c>
}
else if (freq == HCFG_6_MHZ)
8006632: 78fb ldrb r3, [r7, #3]
8006634: 2b02 cmp r3, #2
8006636: d107 bne.n 8006648 <USB_InitFSLSPClkSel+0x68>
{
USBx_HOST->HFIR = HFIR_6_MHZ;
8006638: 68fb ldr r3, [r7, #12]
800663a: f503 6380 add.w r3, r3, #1024 @ 0x400
800663e: 461a mov r2, r3
8006640: f241 7370 movw r3, #6000 @ 0x1770
8006644: 6053 str r3, [r2, #4]
8006646: e001 b.n 800664c <USB_InitFSLSPClkSel+0x6c>
}
else
{
return HAL_ERROR;
8006648: 2301 movs r3, #1
800664a: e000 b.n 800664e <USB_InitFSLSPClkSel+0x6e>
}
return HAL_OK;
800664c: 2300 movs r3, #0
}
800664e: 4618 mov r0, r3
8006650: 3714 adds r7, #20
8006652: 46bd mov sp, r7
8006654: f85d 7b04 ldr.w r7, [sp], #4
8006658: 4770 bx lr
0800665a <USB_HC_ReadInterrupt>:
* @brief Read all host channel interrupts status
* @param USBx Selected device
* @retval HAL state
*/
uint32_t USB_HC_ReadInterrupt(const USB_OTG_GlobalTypeDef *USBx)
{
800665a: b480 push {r7}
800665c: b085 sub sp, #20
800665e: af00 add r7, sp, #0
8006660: 6078 str r0, [r7, #4]
uint32_t USBx_BASE = (uint32_t)USBx;
8006662: 687b ldr r3, [r7, #4]
8006664: 60fb str r3, [r7, #12]
return ((USBx_HOST->HAINT) & 0xFFFFU);
8006666: 68fb ldr r3, [r7, #12]
8006668: f503 6380 add.w r3, r3, #1024 @ 0x400
800666c: 695b ldr r3, [r3, #20]
800666e: b29b uxth r3, r3
}
8006670: 4618 mov r0, r3
8006672: 3714 adds r7, #20
8006674: 46bd mov sp, r7
8006676: f85d 7b04 ldr.w r7, [sp], #4
800667a: 4770 bx lr
0800667c <USB_HC_Halt>:
* @param hc_num Host Channel number
* This parameter can be a value from 1 to 15
* @retval HAL state
*/
HAL_StatusTypeDef USB_HC_Halt(const USB_OTG_GlobalTypeDef *USBx, uint8_t hc_num)
{
800667c: b480 push {r7}
800667e: b089 sub sp, #36 @ 0x24
8006680: af00 add r7, sp, #0
8006682: 6078 str r0, [r7, #4]
8006684: 460b mov r3, r1
8006686: 70fb strb r3, [r7, #3]
uint32_t USBx_BASE = (uint32_t)USBx;
8006688: 687b ldr r3, [r7, #4]
800668a: 61fb str r3, [r7, #28]
uint32_t hcnum = (uint32_t)hc_num;
800668c: 78fb ldrb r3, [r7, #3]
800668e: 61bb str r3, [r7, #24]
__IO uint32_t count = 0U;
8006690: 2300 movs r3, #0
8006692: 60bb str r3, [r7, #8]
uint32_t HcEpType = (USBx_HC(hcnum)->HCCHAR & USB_OTG_HCCHAR_EPTYP) >> 18;
8006694: 69bb ldr r3, [r7, #24]
8006696: 015a lsls r2, r3, #5
8006698: 69fb ldr r3, [r7, #28]
800669a: 4413 add r3, r2
800669c: f503 63a0 add.w r3, r3, #1280 @ 0x500
80066a0: 681b ldr r3, [r3, #0]
80066a2: 0c9b lsrs r3, r3, #18
80066a4: f003 0303 and.w r3, r3, #3
80066a8: 617b str r3, [r7, #20]
uint32_t ChannelEna = (USBx_HC(hcnum)->HCCHAR & USB_OTG_HCCHAR_CHENA) >> 31;
80066aa: 69bb ldr r3, [r7, #24]
80066ac: 015a lsls r2, r3, #5
80066ae: 69fb ldr r3, [r7, #28]
80066b0: 4413 add r3, r2
80066b2: f503 63a0 add.w r3, r3, #1280 @ 0x500
80066b6: 681b ldr r3, [r3, #0]
80066b8: 0fdb lsrs r3, r3, #31
80066ba: f003 0301 and.w r3, r3, #1
80066be: 613b str r3, [r7, #16]
uint32_t SplitEna = (USBx_HC(hcnum)->HCSPLT & USB_OTG_HCSPLT_SPLITEN) >> 31;
80066c0: 69bb ldr r3, [r7, #24]
80066c2: 015a lsls r2, r3, #5
80066c4: 69fb ldr r3, [r7, #28]
80066c6: 4413 add r3, r2
80066c8: f503 63a0 add.w r3, r3, #1280 @ 0x500
80066cc: 685b ldr r3, [r3, #4]
80066ce: 0fdb lsrs r3, r3, #31
80066d0: f003 0301 and.w r3, r3, #1
80066d4: 60fb str r3, [r7, #12]
/* In buffer DMA, Channel disable must not be programmed for non-split periodic channels.
At the end of the next uframe/frame (in the worst case), the core generates a channel halted
and disables the channel automatically. */
if ((((USBx->GAHBCFG & USB_OTG_GAHBCFG_DMAEN) == USB_OTG_GAHBCFG_DMAEN) && (SplitEna == 0U)) &&
80066d6: 687b ldr r3, [r7, #4]
80066d8: 689b ldr r3, [r3, #8]
80066da: f003 0320 and.w r3, r3, #32
80066de: 2b20 cmp r3, #32
80066e0: d10d bne.n 80066fe <USB_HC_Halt+0x82>
80066e2: 68fb ldr r3, [r7, #12]
80066e4: 2b00 cmp r3, #0
80066e6: d10a bne.n 80066fe <USB_HC_Halt+0x82>
80066e8: 693b ldr r3, [r7, #16]
80066ea: 2b00 cmp r3, #0
80066ec: d005 beq.n 80066fa <USB_HC_Halt+0x7e>
((ChannelEna == 0U) || (((HcEpType == HCCHAR_ISOC) || (HcEpType == HCCHAR_INTR)))))
80066ee: 697b ldr r3, [r7, #20]
80066f0: 2b01 cmp r3, #1
80066f2: d002 beq.n 80066fa <USB_HC_Halt+0x7e>
80066f4: 697b ldr r3, [r7, #20]
80066f6: 2b03 cmp r3, #3
80066f8: d101 bne.n 80066fe <USB_HC_Halt+0x82>
{
return HAL_OK;
80066fa: 2300 movs r3, #0
80066fc: e0d8 b.n 80068b0 <USB_HC_Halt+0x234>
}
/* Check for space in the request queue to issue the halt. */
if ((HcEpType == HCCHAR_CTRL) || (HcEpType == HCCHAR_BULK))
80066fe: 697b ldr r3, [r7, #20]
8006700: 2b00 cmp r3, #0
8006702: d002 beq.n 800670a <USB_HC_Halt+0x8e>
8006704: 697b ldr r3, [r7, #20]
8006706: 2b02 cmp r3, #2
8006708: d173 bne.n 80067f2 <USB_HC_Halt+0x176>
{
USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHDIS;
800670a: 69bb ldr r3, [r7, #24]
800670c: 015a lsls r2, r3, #5
800670e: 69fb ldr r3, [r7, #28]
8006710: 4413 add r3, r2
8006712: f503 63a0 add.w r3, r3, #1280 @ 0x500
8006716: 681b ldr r3, [r3, #0]
8006718: 69ba ldr r2, [r7, #24]
800671a: 0151 lsls r1, r2, #5
800671c: 69fa ldr r2, [r7, #28]
800671e: 440a add r2, r1
8006720: f502 62a0 add.w r2, r2, #1280 @ 0x500
8006724: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
8006728: 6013 str r3, [r2, #0]
if ((USBx->GAHBCFG & USB_OTG_GAHBCFG_DMAEN) == 0U)
800672a: 687b ldr r3, [r7, #4]
800672c: 689b ldr r3, [r3, #8]
800672e: f003 0320 and.w r3, r3, #32
8006732: 2b00 cmp r3, #0
8006734: d14a bne.n 80067cc <USB_HC_Halt+0x150>
{
if ((USBx->HNPTXSTS & (0xFFU << 16)) == 0U)
8006736: 687b ldr r3, [r7, #4]
8006738: 6adb ldr r3, [r3, #44] @ 0x2c
800673a: f403 037f and.w r3, r3, #16711680 @ 0xff0000
800673e: 2b00 cmp r3, #0
8006740: d133 bne.n 80067aa <USB_HC_Halt+0x12e>
{
USBx_HC(hcnum)->HCCHAR &= ~USB_OTG_HCCHAR_CHENA;
8006742: 69bb ldr r3, [r7, #24]
8006744: 015a lsls r2, r3, #5
8006746: 69fb ldr r3, [r7, #28]
8006748: 4413 add r3, r2
800674a: f503 63a0 add.w r3, r3, #1280 @ 0x500
800674e: 681b ldr r3, [r3, #0]
8006750: 69ba ldr r2, [r7, #24]
8006752: 0151 lsls r1, r2, #5
8006754: 69fa ldr r2, [r7, #28]
8006756: 440a add r2, r1
8006758: f502 62a0 add.w r2, r2, #1280 @ 0x500
800675c: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000
8006760: 6013 str r3, [r2, #0]
USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA;
8006762: 69bb ldr r3, [r7, #24]
8006764: 015a lsls r2, r3, #5
8006766: 69fb ldr r3, [r7, #28]
8006768: 4413 add r3, r2
800676a: f503 63a0 add.w r3, r3, #1280 @ 0x500
800676e: 681b ldr r3, [r3, #0]
8006770: 69ba ldr r2, [r7, #24]
8006772: 0151 lsls r1, r2, #5
8006774: 69fa ldr r2, [r7, #28]
8006776: 440a add r2, r1
8006778: f502 62a0 add.w r2, r2, #1280 @ 0x500
800677c: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
8006780: 6013 str r3, [r2, #0]
do
{
count++;
8006782: 68bb ldr r3, [r7, #8]
8006784: 3301 adds r3, #1
8006786: 60bb str r3, [r7, #8]
if (count > 1000U)
8006788: 68bb ldr r3, [r7, #8]
800678a: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
800678e: d82e bhi.n 80067ee <USB_HC_Halt+0x172>
{
break;
}
} while ((USBx_HC(hcnum)->HCCHAR & USB_OTG_HCCHAR_CHENA) == USB_OTG_HCCHAR_CHENA);
8006790: 69bb ldr r3, [r7, #24]
8006792: 015a lsls r2, r3, #5
8006794: 69fb ldr r3, [r7, #28]
8006796: 4413 add r3, r2
8006798: f503 63a0 add.w r3, r3, #1280 @ 0x500
800679c: 681b ldr r3, [r3, #0]
800679e: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
80067a2: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
80067a6: d0ec beq.n 8006782 <USB_HC_Halt+0x106>
if ((USBx->GAHBCFG & USB_OTG_GAHBCFG_DMAEN) == 0U)
80067a8: e081 b.n 80068ae <USB_HC_Halt+0x232>
}
else
{
USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA;
80067aa: 69bb ldr r3, [r7, #24]
80067ac: 015a lsls r2, r3, #5
80067ae: 69fb ldr r3, [r7, #28]
80067b0: 4413 add r3, r2
80067b2: f503 63a0 add.w r3, r3, #1280 @ 0x500
80067b6: 681b ldr r3, [r3, #0]
80067b8: 69ba ldr r2, [r7, #24]
80067ba: 0151 lsls r1, r2, #5
80067bc: 69fa ldr r2, [r7, #28]
80067be: 440a add r2, r1
80067c0: f502 62a0 add.w r2, r2, #1280 @ 0x500
80067c4: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
80067c8: 6013 str r3, [r2, #0]
if ((USBx->GAHBCFG & USB_OTG_GAHBCFG_DMAEN) == 0U)
80067ca: e070 b.n 80068ae <USB_HC_Halt+0x232>
}
}
else
{
USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA;
80067cc: 69bb ldr r3, [r7, #24]
80067ce: 015a lsls r2, r3, #5
80067d0: 69fb ldr r3, [r7, #28]
80067d2: 4413 add r3, r2
80067d4: f503 63a0 add.w r3, r3, #1280 @ 0x500
80067d8: 681b ldr r3, [r3, #0]
80067da: 69ba ldr r2, [r7, #24]
80067dc: 0151 lsls r1, r2, #5
80067de: 69fa ldr r2, [r7, #28]
80067e0: 440a add r2, r1
80067e2: f502 62a0 add.w r2, r2, #1280 @ 0x500
80067e6: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
80067ea: 6013 str r3, [r2, #0]
if ((USBx->GAHBCFG & USB_OTG_GAHBCFG_DMAEN) == 0U)
80067ec: e05f b.n 80068ae <USB_HC_Halt+0x232>
break;
80067ee: bf00 nop
if ((USBx->GAHBCFG & USB_OTG_GAHBCFG_DMAEN) == 0U)
80067f0: e05d b.n 80068ae <USB_HC_Halt+0x232>
}
}
else
{
USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHDIS;
80067f2: 69bb ldr r3, [r7, #24]
80067f4: 015a lsls r2, r3, #5
80067f6: 69fb ldr r3, [r7, #28]
80067f8: 4413 add r3, r2
80067fa: f503 63a0 add.w r3, r3, #1280 @ 0x500
80067fe: 681b ldr r3, [r3, #0]
8006800: 69ba ldr r2, [r7, #24]
8006802: 0151 lsls r1, r2, #5
8006804: 69fa ldr r2, [r7, #28]
8006806: 440a add r2, r1
8006808: f502 62a0 add.w r2, r2, #1280 @ 0x500
800680c: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
8006810: 6013 str r3, [r2, #0]
if ((USBx_HOST->HPTXSTS & (0xFFU << 16)) == 0U)
8006812: 69fb ldr r3, [r7, #28]
8006814: f503 6380 add.w r3, r3, #1024 @ 0x400
8006818: 691b ldr r3, [r3, #16]
800681a: f403 037f and.w r3, r3, #16711680 @ 0xff0000
800681e: 2b00 cmp r3, #0
8006820: d133 bne.n 800688a <USB_HC_Halt+0x20e>
{
USBx_HC(hcnum)->HCCHAR &= ~USB_OTG_HCCHAR_CHENA;
8006822: 69bb ldr r3, [r7, #24]
8006824: 015a lsls r2, r3, #5
8006826: 69fb ldr r3, [r7, #28]
8006828: 4413 add r3, r2
800682a: f503 63a0 add.w r3, r3, #1280 @ 0x500
800682e: 681b ldr r3, [r3, #0]
8006830: 69ba ldr r2, [r7, #24]
8006832: 0151 lsls r1, r2, #5
8006834: 69fa ldr r2, [r7, #28]
8006836: 440a add r2, r1
8006838: f502 62a0 add.w r2, r2, #1280 @ 0x500
800683c: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000
8006840: 6013 str r3, [r2, #0]
USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA;
8006842: 69bb ldr r3, [r7, #24]
8006844: 015a lsls r2, r3, #5
8006846: 69fb ldr r3, [r7, #28]
8006848: 4413 add r3, r2
800684a: f503 63a0 add.w r3, r3, #1280 @ 0x500
800684e: 681b ldr r3, [r3, #0]
8006850: 69ba ldr r2, [r7, #24]
8006852: 0151 lsls r1, r2, #5
8006854: 69fa ldr r2, [r7, #28]
8006856: 440a add r2, r1
8006858: f502 62a0 add.w r2, r2, #1280 @ 0x500
800685c: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
8006860: 6013 str r3, [r2, #0]
do
{
count++;
8006862: 68bb ldr r3, [r7, #8]
8006864: 3301 adds r3, #1
8006866: 60bb str r3, [r7, #8]
if (count > 1000U)
8006868: 68bb ldr r3, [r7, #8]
800686a: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
800686e: d81d bhi.n 80068ac <USB_HC_Halt+0x230>
{
break;
}
} while ((USBx_HC(hcnum)->HCCHAR & USB_OTG_HCCHAR_CHENA) == USB_OTG_HCCHAR_CHENA);
8006870: 69bb ldr r3, [r7, #24]
8006872: 015a lsls r2, r3, #5
8006874: 69fb ldr r3, [r7, #28]
8006876: 4413 add r3, r2
8006878: f503 63a0 add.w r3, r3, #1280 @ 0x500
800687c: 681b ldr r3, [r3, #0]
800687e: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
8006882: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
8006886: d0ec beq.n 8006862 <USB_HC_Halt+0x1e6>
8006888: e011 b.n 80068ae <USB_HC_Halt+0x232>
}
else
{
USBx_HC(hcnum)->HCCHAR |= USB_OTG_HCCHAR_CHENA;
800688a: 69bb ldr r3, [r7, #24]
800688c: 015a lsls r2, r3, #5
800688e: 69fb ldr r3, [r7, #28]
8006890: 4413 add r3, r2
8006892: f503 63a0 add.w r3, r3, #1280 @ 0x500
8006896: 681b ldr r3, [r3, #0]
8006898: 69ba ldr r2, [r7, #24]
800689a: 0151 lsls r1, r2, #5
800689c: 69fa ldr r2, [r7, #28]
800689e: 440a add r2, r1
80068a0: f502 62a0 add.w r2, r2, #1280 @ 0x500
80068a4: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
80068a8: 6013 str r3, [r2, #0]
80068aa: e000 b.n 80068ae <USB_HC_Halt+0x232>
break;
80068ac: bf00 nop
}
}
return HAL_OK;
80068ae: 2300 movs r3, #0
}
80068b0: 4618 mov r0, r3
80068b2: 3724 adds r7, #36 @ 0x24
80068b4: 46bd mov sp, r7
80068b6: f85d 7b04 ldr.w r7, [sp], #4
80068ba: 4770 bx lr
080068bc <USB_StopHost>:
* @brief Stop Host Core
* @param USBx Selected device
* @retval HAL state
*/
HAL_StatusTypeDef USB_StopHost(USB_OTG_GlobalTypeDef *USBx)
{
80068bc: b580 push {r7, lr}
80068be: b088 sub sp, #32
80068c0: af00 add r7, sp, #0
80068c2: 6078 str r0, [r7, #4]
HAL_StatusTypeDef ret = HAL_OK;
80068c4: 2300 movs r3, #0
80068c6: 77fb strb r3, [r7, #31]
uint32_t USBx_BASE = (uint32_t)USBx;
80068c8: 687b ldr r3, [r7, #4]
80068ca: 617b str r3, [r7, #20]
__IO uint32_t count = 0U;
80068cc: 2300 movs r3, #0
80068ce: 60fb str r3, [r7, #12]
uint32_t value;
uint32_t i;
(void)USB_DisableGlobalInt(USBx);
80068d0: 6878 ldr r0, [r7, #4]
80068d2: f7ff fd7a bl 80063ca <USB_DisableGlobalInt>
/* Flush USB FIFO */
if (USB_FlushTxFifo(USBx, 0x10U) != HAL_OK) /* all Tx FIFOs */
80068d6: 2110 movs r1, #16
80068d8: 6878 ldr r0, [r7, #4]
80068da: f7ff fd87 bl 80063ec <USB_FlushTxFifo>
80068de: 4603 mov r3, r0
80068e0: 2b00 cmp r3, #0
80068e2: d001 beq.n 80068e8 <USB_StopHost+0x2c>
{
ret = HAL_ERROR;
80068e4: 2301 movs r3, #1
80068e6: 77fb strb r3, [r7, #31]
}
if (USB_FlushRxFifo(USBx) != HAL_OK)
80068e8: 6878 ldr r0, [r7, #4]
80068ea: f7ff fdb1 bl 8006450 <USB_FlushRxFifo>
80068ee: 4603 mov r3, r0
80068f0: 2b00 cmp r3, #0
80068f2: d001 beq.n 80068f8 <USB_StopHost+0x3c>
{
ret = HAL_ERROR;
80068f4: 2301 movs r3, #1
80068f6: 77fb strb r3, [r7, #31]
}
/* Flush out any leftover queued requests. */
for (i = 0U; i <= 15U; i++)
80068f8: 2300 movs r3, #0
80068fa: 61bb str r3, [r7, #24]
80068fc: e01f b.n 800693e <USB_StopHost+0x82>
{
value = USBx_HC(i)->HCCHAR;
80068fe: 69bb ldr r3, [r7, #24]
8006900: 015a lsls r2, r3, #5
8006902: 697b ldr r3, [r7, #20]
8006904: 4413 add r3, r2
8006906: f503 63a0 add.w r3, r3, #1280 @ 0x500
800690a: 681b ldr r3, [r3, #0]
800690c: 613b str r3, [r7, #16]
value |= USB_OTG_HCCHAR_CHDIS;
800690e: 693b ldr r3, [r7, #16]
8006910: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
8006914: 613b str r3, [r7, #16]
value &= ~USB_OTG_HCCHAR_CHENA;
8006916: 693b ldr r3, [r7, #16]
8006918: f023 4300 bic.w r3, r3, #2147483648 @ 0x80000000
800691c: 613b str r3, [r7, #16]
value &= ~USB_OTG_HCCHAR_EPDIR;
800691e: 693b ldr r3, [r7, #16]
8006920: f423 4300 bic.w r3, r3, #32768 @ 0x8000
8006924: 613b str r3, [r7, #16]
USBx_HC(i)->HCCHAR = value;
8006926: 69bb ldr r3, [r7, #24]
8006928: 015a lsls r2, r3, #5
800692a: 697b ldr r3, [r7, #20]
800692c: 4413 add r3, r2
800692e: f503 63a0 add.w r3, r3, #1280 @ 0x500
8006932: 461a mov r2, r3
8006934: 693b ldr r3, [r7, #16]
8006936: 6013 str r3, [r2, #0]
for (i = 0U; i <= 15U; i++)
8006938: 69bb ldr r3, [r7, #24]
800693a: 3301 adds r3, #1
800693c: 61bb str r3, [r7, #24]
800693e: 69bb ldr r3, [r7, #24]
8006940: 2b0f cmp r3, #15
8006942: d9dc bls.n 80068fe <USB_StopHost+0x42>
}
/* Halt all channels to put them into a known state. */
for (i = 0U; i <= 15U; i++)
8006944: 2300 movs r3, #0
8006946: 61bb str r3, [r7, #24]
8006948: e034 b.n 80069b4 <USB_StopHost+0xf8>
{
value = USBx_HC(i)->HCCHAR;
800694a: 69bb ldr r3, [r7, #24]
800694c: 015a lsls r2, r3, #5
800694e: 697b ldr r3, [r7, #20]
8006950: 4413 add r3, r2
8006952: f503 63a0 add.w r3, r3, #1280 @ 0x500
8006956: 681b ldr r3, [r3, #0]
8006958: 613b str r3, [r7, #16]
value |= USB_OTG_HCCHAR_CHDIS;
800695a: 693b ldr r3, [r7, #16]
800695c: f043 4380 orr.w r3, r3, #1073741824 @ 0x40000000
8006960: 613b str r3, [r7, #16]
value |= USB_OTG_HCCHAR_CHENA;
8006962: 693b ldr r3, [r7, #16]
8006964: f043 4300 orr.w r3, r3, #2147483648 @ 0x80000000
8006968: 613b str r3, [r7, #16]
value &= ~USB_OTG_HCCHAR_EPDIR;
800696a: 693b ldr r3, [r7, #16]
800696c: f423 4300 bic.w r3, r3, #32768 @ 0x8000
8006970: 613b str r3, [r7, #16]
USBx_HC(i)->HCCHAR = value;
8006972: 69bb ldr r3, [r7, #24]
8006974: 015a lsls r2, r3, #5
8006976: 697b ldr r3, [r7, #20]
8006978: 4413 add r3, r2
800697a: f503 63a0 add.w r3, r3, #1280 @ 0x500
800697e: 461a mov r2, r3
8006980: 693b ldr r3, [r7, #16]
8006982: 6013 str r3, [r2, #0]
do
{
count++;
8006984: 68fb ldr r3, [r7, #12]
8006986: 3301 adds r3, #1
8006988: 60fb str r3, [r7, #12]
if (count > 1000U)
800698a: 68fb ldr r3, [r7, #12]
800698c: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
8006990: d80c bhi.n 80069ac <USB_StopHost+0xf0>
{
break;
}
} while ((USBx_HC(i)->HCCHAR & USB_OTG_HCCHAR_CHENA) == USB_OTG_HCCHAR_CHENA);
8006992: 69bb ldr r3, [r7, #24]
8006994: 015a lsls r2, r3, #5
8006996: 697b ldr r3, [r7, #20]
8006998: 4413 add r3, r2
800699a: f503 63a0 add.w r3, r3, #1280 @ 0x500
800699e: 681b ldr r3, [r3, #0]
80069a0: f003 4300 and.w r3, r3, #2147483648 @ 0x80000000
80069a4: f1b3 4f00 cmp.w r3, #2147483648 @ 0x80000000
80069a8: d0ec beq.n 8006984 <USB_StopHost+0xc8>
80069aa: e000 b.n 80069ae <USB_StopHost+0xf2>
break;
80069ac: bf00 nop
for (i = 0U; i <= 15U; i++)
80069ae: 69bb ldr r3, [r7, #24]
80069b0: 3301 adds r3, #1
80069b2: 61bb str r3, [r7, #24]
80069b4: 69bb ldr r3, [r7, #24]
80069b6: 2b0f cmp r3, #15
80069b8: d9c7 bls.n 800694a <USB_StopHost+0x8e>
}
/* Clear any pending Host interrupts */
USBx_HOST->HAINT = CLEAR_INTERRUPT_MASK;
80069ba: 697b ldr r3, [r7, #20]
80069bc: f503 6380 add.w r3, r3, #1024 @ 0x400
80069c0: 461a mov r2, r3
80069c2: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
80069c6: 6153 str r3, [r2, #20]
USBx->GINTSTS = CLEAR_INTERRUPT_MASK;
80069c8: 687b ldr r3, [r7, #4]
80069ca: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
80069ce: 615a str r2, [r3, #20]
(void)USB_EnableGlobalInt(USBx);
80069d0: 6878 ldr r0, [r7, #4]
80069d2: f7ff fce9 bl 80063a8 <USB_EnableGlobalInt>
return ret;
80069d6: 7ffb ldrb r3, [r7, #31]
}
80069d8: 4618 mov r0, r3
80069da: 3720 adds r7, #32
80069dc: 46bd mov sp, r7
80069de: bd80 pop {r7, pc}
080069e0 <USBH_LL_IncTimer>:
* Increment Host Timer tick
* @param phost: Host Handle
* @retval None
*/
void USBH_LL_IncTimer(USBH_HandleTypeDef *phost)
{
80069e0: b580 push {r7, lr}
80069e2: b082 sub sp, #8
80069e4: af00 add r7, sp, #0
80069e6: 6078 str r0, [r7, #4]
phost->Timer++;
80069e8: 687b ldr r3, [r7, #4]
80069ea: f8d3 33c4 ldr.w r3, [r3, #964] @ 0x3c4
80069ee: 1c5a adds r2, r3, #1
80069f0: 687b ldr r3, [r7, #4]
80069f2: f8c3 23c4 str.w r2, [r3, #964] @ 0x3c4
USBH_HandleSof(phost);
80069f6: 6878 ldr r0, [r7, #4]
80069f8: f000 f804 bl 8006a04 <USBH_HandleSof>
}
80069fc: bf00 nop
80069fe: 3708 adds r7, #8
8006a00: 46bd mov sp, r7
8006a02: bd80 pop {r7, pc}
08006a04 <USBH_HandleSof>:
* Call SOF process
* @param phost: Host Handle
* @retval None
*/
static void USBH_HandleSof(USBH_HandleTypeDef *phost)
{
8006a04: b580 push {r7, lr}
8006a06: b082 sub sp, #8
8006a08: af00 add r7, sp, #0
8006a0a: 6078 str r0, [r7, #4]
if ((phost->gState == HOST_CLASS) && (phost->pActiveClass != NULL))
8006a0c: 687b ldr r3, [r7, #4]
8006a0e: 781b ldrb r3, [r3, #0]
8006a10: b2db uxtb r3, r3
8006a12: 2b0b cmp r3, #11
8006a14: d10a bne.n 8006a2c <USBH_HandleSof+0x28>
8006a16: 687b ldr r3, [r7, #4]
8006a18: f8d3 337c ldr.w r3, [r3, #892] @ 0x37c
8006a1c: 2b00 cmp r3, #0
8006a1e: d005 beq.n 8006a2c <USBH_HandleSof+0x28>
{
phost->pActiveClass->SOFProcess(phost);
8006a20: 687b ldr r3, [r7, #4]
8006a22: f8d3 337c ldr.w r3, [r3, #892] @ 0x37c
8006a26: 699b ldr r3, [r3, #24]
8006a28: 6878 ldr r0, [r7, #4]
8006a2a: 4798 blx r3
}
}
8006a2c: bf00 nop
8006a2e: 3708 adds r7, #8
8006a30: 46bd mov sp, r7
8006a32: bd80 pop {r7, pc}
08006a34 <USBH_LL_PortEnabled>:
* Port Enabled
* @param phost: Host Handle
* @retval None
*/
void USBH_LL_PortEnabled(USBH_HandleTypeDef *phost)
{
8006a34: b580 push {r7, lr}
8006a36: b082 sub sp, #8
8006a38: af00 add r7, sp, #0
8006a3a: 6078 str r0, [r7, #4]
phost->device.PortEnabled = 1U;
8006a3c: 687b ldr r3, [r7, #4]
8006a3e: 2201 movs r2, #1
8006a40: f883 2323 strb.w r2, [r3, #803] @ 0x323
#if (USBH_USE_OS == 1U)
USBH_OS_PutMessage(phost, USBH_PORT_EVENT, 0U, 0U);
8006a44: 2300 movs r3, #0
8006a46: 2200 movs r2, #0
8006a48: 2101 movs r1, #1
8006a4a: 6878 ldr r0, [r7, #4]
8006a4c: f000 f85b bl 8006b06 <USBH_OS_PutMessage>
#endif /* (USBH_USE_OS == 1U) */
return;
8006a50: bf00 nop
}
8006a52: 3708 adds r7, #8
8006a54: 46bd mov sp, r7
8006a56: bd80 pop {r7, pc}
08006a58 <USBH_LL_PortDisabled>:
* Port Disabled
* @param phost: Host Handle
* @retval None
*/
void USBH_LL_PortDisabled(USBH_HandleTypeDef *phost)
{
8006a58: b480 push {r7}
8006a5a: b083 sub sp, #12
8006a5c: af00 add r7, sp, #0
8006a5e: 6078 str r0, [r7, #4]
phost->device.PortEnabled = 0U;
8006a60: 687b ldr r3, [r7, #4]
8006a62: 2200 movs r2, #0
8006a64: f883 2323 strb.w r2, [r3, #803] @ 0x323
phost->device.is_disconnected = 1U;
8006a68: 687b ldr r3, [r7, #4]
8006a6a: 2201 movs r2, #1
8006a6c: f883 2321 strb.w r2, [r3, #801] @ 0x321
return;
8006a70: bf00 nop
}
8006a72: 370c adds r7, #12
8006a74: 46bd mov sp, r7
8006a76: f85d 7b04 ldr.w r7, [sp], #4
8006a7a: 4770 bx lr
08006a7c <USBH_LL_Connect>:
* Handle USB Host connection event
* @param phost: Host Handle
* @retval USBH_Status
*/
USBH_StatusTypeDef USBH_LL_Connect(USBH_HandleTypeDef *phost)
{
8006a7c: b580 push {r7, lr}
8006a7e: b082 sub sp, #8
8006a80: af00 add r7, sp, #0
8006a82: 6078 str r0, [r7, #4]
phost->device.is_connected = 1U;
8006a84: 687b ldr r3, [r7, #4]
8006a86: 2201 movs r2, #1
8006a88: f883 2320 strb.w r2, [r3, #800] @ 0x320
phost->device.is_disconnected = 0U;
8006a8c: 687b ldr r3, [r7, #4]
8006a8e: 2200 movs r2, #0
8006a90: f883 2321 strb.w r2, [r3, #801] @ 0x321
phost->device.is_ReEnumerated = 0U;
8006a94: 687b ldr r3, [r7, #4]
8006a96: 2200 movs r2, #0
8006a98: f883 2322 strb.w r2, [r3, #802] @ 0x322
#if (USBH_USE_OS == 1U)
USBH_OS_PutMessage(phost, USBH_PORT_EVENT, 0U, 0U);
8006a9c: 2300 movs r3, #0
8006a9e: 2200 movs r2, #0
8006aa0: 2101 movs r1, #1
8006aa2: 6878 ldr r0, [r7, #4]
8006aa4: f000 f82f bl 8006b06 <USBH_OS_PutMessage>
#endif /* (USBH_USE_OS == 1U) */
return USBH_OK;
8006aa8: 2300 movs r3, #0
}
8006aaa: 4618 mov r0, r3
8006aac: 3708 adds r7, #8
8006aae: 46bd mov sp, r7
8006ab0: bd80 pop {r7, pc}
08006ab2 <USBH_LL_Disconnect>:
* Handle USB Host disconnection event
* @param phost: Host Handle
* @retval USBH_Status
*/
USBH_StatusTypeDef USBH_LL_Disconnect(USBH_HandleTypeDef *phost)
{
8006ab2: b580 push {r7, lr}
8006ab4: b082 sub sp, #8
8006ab6: af00 add r7, sp, #0
8006ab8: 6078 str r0, [r7, #4]
/* update device connection states */
phost->device.is_disconnected = 1U;
8006aba: 687b ldr r3, [r7, #4]
8006abc: 2201 movs r2, #1
8006abe: f883 2321 strb.w r2, [r3, #801] @ 0x321
phost->device.is_connected = 0U;
8006ac2: 687b ldr r3, [r7, #4]
8006ac4: 2200 movs r2, #0
8006ac6: f883 2320 strb.w r2, [r3, #800] @ 0x320
phost->device.PortEnabled = 0U;
8006aca: 687b ldr r3, [r7, #4]
8006acc: 2200 movs r2, #0
8006ace: f883 2323 strb.w r2, [r3, #803] @ 0x323
/* Stop Host */
(void)USBH_LL_Stop(phost);
8006ad2: 6878 ldr r0, [r7, #4]
8006ad4: f001 f994 bl 8007e00 <USBH_LL_Stop>
/* FRee Control Pipes */
(void)USBH_FreePipe(phost, phost->Control.pipe_in);
8006ad8: 687b ldr r3, [r7, #4]
8006ada: 791b ldrb r3, [r3, #4]
8006adc: 4619 mov r1, r3
8006ade: 6878 ldr r0, [r7, #4]
8006ae0: f000 f847 bl 8006b72 <USBH_FreePipe>
(void)USBH_FreePipe(phost, phost->Control.pipe_out);
8006ae4: 687b ldr r3, [r7, #4]
8006ae6: 795b ldrb r3, [r3, #5]
8006ae8: 4619 mov r1, r3
8006aea: 6878 ldr r0, [r7, #4]
8006aec: f000 f841 bl 8006b72 <USBH_FreePipe>
#if (USBH_USE_OS == 1U)
USBH_OS_PutMessage(phost, USBH_PORT_EVENT, 0U, 0U);
8006af0: 2300 movs r3, #0
8006af2: 2200 movs r2, #0
8006af4: 2101 movs r1, #1
8006af6: 6878 ldr r0, [r7, #4]
8006af8: f000 f805 bl 8006b06 <USBH_OS_PutMessage>
#endif /* (USBH_USE_OS == 1U) */
return USBH_OK;
8006afc: 2300 movs r3, #0
}
8006afe: 4618 mov r0, r3
8006b00: 3708 adds r7, #8
8006b02: 46bd mov sp, r7
8006b04: bd80 pop {r7, pc}
08006b06 <USBH_OS_PutMessage>:
* @param timeout message event timeout
* @param priority message event priority
* @retval None
*/
void USBH_OS_PutMessage(USBH_HandleTypeDef *phost, USBH_OSEventTypeDef message, uint32_t timeout, uint32_t priority)
{
8006b06: b580 push {r7, lr}
8006b08: b086 sub sp, #24
8006b0a: af00 add r7, sp, #0
8006b0c: 60f8 str r0, [r7, #12]
8006b0e: 607a str r2, [r7, #4]
8006b10: 603b str r3, [r7, #0]
8006b12: 460b mov r3, r1
8006b14: 72fb strb r3, [r7, #11]
phost->os_msg = (uint32_t)message;
8006b16: 7afa ldrb r2, [r7, #11]
8006b18: 68fb ldr r3, [r7, #12]
8006b1a: f8c3 23e0 str.w r2, [r3, #992] @ 0x3e0
#if (osCMSIS < 0x20000U)
UNUSED(priority);
/* Calculate the number of available spaces */
uint32_t available_spaces = MSGQUEUE_OBJECTS - osMessageWaiting(phost->os_event);
8006b1e: 68fb ldr r3, [r7, #12]
8006b20: f8d3 33d8 ldr.w r3, [r3, #984] @ 0x3d8
8006b24: 4618 mov r0, r3
8006b26: f000 f895 bl 8006c54 <osMessageWaiting>
8006b2a: 4603 mov r3, r0
8006b2c: f1c3 0310 rsb r3, r3, #16
8006b30: 617b str r3, [r7, #20]
if (available_spaces != 0U)
8006b32: 697b ldr r3, [r7, #20]
8006b34: 2b00 cmp r3, #0
8006b36: d009 beq.n 8006b4c <USBH_OS_PutMessage+0x46>
{
(void)osMessagePut(phost->os_event, phost->os_msg, timeout);
8006b38: 68fb ldr r3, [r7, #12]
8006b3a: f8d3 03d8 ldr.w r0, [r3, #984] @ 0x3d8
8006b3e: 68fb ldr r3, [r7, #12]
8006b40: f8d3 33e0 ldr.w r3, [r3, #992] @ 0x3e0
8006b44: 687a ldr r2, [r7, #4]
8006b46: 4619 mov r1, r3
8006b48: f000 f844 bl 8006bd4 <osMessagePut>
if (osMessageQueueGetSpace(phost->os_event) != 0U)
{
(void)osMessageQueuePut(phost->os_event, &phost->os_msg, priority, timeout);
}
#endif /* (osCMSIS < 0x20000U) */
}
8006b4c: bf00 nop
8006b4e: 3718 adds r7, #24
8006b50: 46bd mov sp, r7
8006b52: bd80 pop {r7, pc}
08006b54 <USBH_LL_NotifyURBChange>:
* Notify URB state Change
* @param phost: Host handle
* @retval USBH Status
*/
USBH_StatusTypeDef USBH_LL_NotifyURBChange(USBH_HandleTypeDef *phost)
{
8006b54: b580 push {r7, lr}
8006b56: b082 sub sp, #8
8006b58: af00 add r7, sp, #0
8006b5a: 6078 str r0, [r7, #4]
#if (USBH_USE_OS == 1U)
USBH_OS_PutMessage(phost, USBH_PORT_EVENT, 0U, 0U);
8006b5c: 2300 movs r3, #0
8006b5e: 2200 movs r2, #0
8006b60: 2101 movs r1, #1
8006b62: 6878 ldr r0, [r7, #4]
8006b64: f7ff ffcf bl 8006b06 <USBH_OS_PutMessage>
#endif /* (USBH_USE_OS == 1U) */
return USBH_OK;
8006b68: 2300 movs r3, #0
}
8006b6a: 4618 mov r0, r3
8006b6c: 3708 adds r7, #8
8006b6e: 46bd mov sp, r7
8006b70: bd80 pop {r7, pc}
08006b72 <USBH_FreePipe>:
* @param phost: Host Handle
* @param idx: Pipe number to be freed
* @retval USBH Status
*/
USBH_StatusTypeDef USBH_FreePipe(USBH_HandleTypeDef *phost, uint8_t idx)
{
8006b72: b480 push {r7}
8006b74: b083 sub sp, #12
8006b76: af00 add r7, sp, #0
8006b78: 6078 str r0, [r7, #4]
8006b7a: 460b mov r3, r1
8006b7c: 70fb strb r3, [r7, #3]
if (idx < USBH_MAX_PIPES_NBR)
8006b7e: 78fb ldrb r3, [r7, #3]
8006b80: 2b0f cmp r3, #15
8006b82: d80d bhi.n 8006ba0 <USBH_FreePipe+0x2e>
{
phost->Pipes[idx] &= 0x7FFFU;
8006b84: 78fb ldrb r3, [r7, #3]
8006b86: 687a ldr r2, [r7, #4]
8006b88: 33e0 adds r3, #224 @ 0xe0
8006b8a: 009b lsls r3, r3, #2
8006b8c: 4413 add r3, r2
8006b8e: 685a ldr r2, [r3, #4]
8006b90: 78fb ldrb r3, [r7, #3]
8006b92: f3c2 020e ubfx r2, r2, #0, #15
8006b96: 6879 ldr r1, [r7, #4]
8006b98: 33e0 adds r3, #224 @ 0xe0
8006b9a: 009b lsls r3, r3, #2
8006b9c: 440b add r3, r1
8006b9e: 605a str r2, [r3, #4]
}
return USBH_OK;
8006ba0: 2300 movs r3, #0
}
8006ba2: 4618 mov r0, r3
8006ba4: 370c adds r7, #12
8006ba6: 46bd mov sp, r7
8006ba8: f85d 7b04 ldr.w r7, [sp], #4
8006bac: 4770 bx lr
08006bae <inHandlerMode>:
#endif
/* Determine whether we are in thread mode or handler mode. */
static int inHandlerMode (void)
{
8006bae: b480 push {r7}
8006bb0: b083 sub sp, #12
8006bb2: af00 add r7, sp, #0
*/
__STATIC_FORCEINLINE uint32_t __get_IPSR(void)
{
uint32_t result;
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
8006bb4: f3ef 8305 mrs r3, IPSR
8006bb8: 607b str r3, [r7, #4]
return(result);
8006bba: 687b ldr r3, [r7, #4]
return __get_IPSR() != 0;
8006bbc: 2b00 cmp r3, #0
8006bbe: bf14 ite ne
8006bc0: 2301 movne r3, #1
8006bc2: 2300 moveq r3, #0
8006bc4: b2db uxtb r3, r3
}
8006bc6: 4618 mov r0, r3
8006bc8: 370c adds r7, #12
8006bca: 46bd mov sp, r7
8006bcc: f85d 7b04 ldr.w r7, [sp], #4
8006bd0: 4770 bx lr
...
08006bd4 <osMessagePut>:
* @param millisec timeout value or 0 in case of no time-out.
* @retval status code that indicates the execution status of the function.
* @note MUST REMAIN UNCHANGED: \b osMessagePut shall be consistent in every CMSIS-RTOS.
*/
osStatus osMessagePut (osMessageQId queue_id, uint32_t info, uint32_t millisec)
{
8006bd4: b580 push {r7, lr}
8006bd6: b086 sub sp, #24
8006bd8: af00 add r7, sp, #0
8006bda: 60f8 str r0, [r7, #12]
8006bdc: 60b9 str r1, [r7, #8]
8006bde: 607a str r2, [r7, #4]
portBASE_TYPE taskWoken = pdFALSE;
8006be0: 2300 movs r3, #0
8006be2: 613b str r3, [r7, #16]
TickType_t ticks;
ticks = millisec / portTICK_PERIOD_MS;
8006be4: 687b ldr r3, [r7, #4]
8006be6: 617b str r3, [r7, #20]
if (ticks == 0) {
8006be8: 697b ldr r3, [r7, #20]
8006bea: 2b00 cmp r3, #0
8006bec: d101 bne.n 8006bf2 <osMessagePut+0x1e>
ticks = 1;
8006bee: 2301 movs r3, #1
8006bf0: 617b str r3, [r7, #20]
}
if (inHandlerMode()) {
8006bf2: f7ff ffdc bl 8006bae <inHandlerMode>
8006bf6: 4603 mov r3, r0
8006bf8: 2b00 cmp r3, #0
8006bfa: d018 beq.n 8006c2e <osMessagePut+0x5a>
if (xQueueSendFromISR(queue_id, &info, &taskWoken) != pdTRUE) {
8006bfc: f107 0210 add.w r2, r7, #16
8006c00: f107 0108 add.w r1, r7, #8
8006c04: 2300 movs r3, #0
8006c06: 68f8 ldr r0, [r7, #12]
8006c08: f000 f9c4 bl 8006f94 <xQueueGenericSendFromISR>
8006c0c: 4603 mov r3, r0
8006c0e: 2b01 cmp r3, #1
8006c10: d001 beq.n 8006c16 <osMessagePut+0x42>
return osErrorOS;
8006c12: 23ff movs r3, #255 @ 0xff
8006c14: e018 b.n 8006c48 <osMessagePut+0x74>
}
portEND_SWITCHING_ISR(taskWoken);
8006c16: 693b ldr r3, [r7, #16]
8006c18: 2b00 cmp r3, #0
8006c1a: d014 beq.n 8006c46 <osMessagePut+0x72>
8006c1c: 4b0c ldr r3, [pc, #48] @ (8006c50 <osMessagePut+0x7c>)
8006c1e: f04f 5280 mov.w r2, #268435456 @ 0x10000000
8006c22: 601a str r2, [r3, #0]
8006c24: f3bf 8f4f dsb sy
8006c28: f3bf 8f6f isb sy
8006c2c: e00b b.n 8006c46 <osMessagePut+0x72>
}
else {
if (xQueueSend(queue_id, &info, ticks) != pdTRUE) {
8006c2e: f107 0108 add.w r1, r7, #8
8006c32: 2300 movs r3, #0
8006c34: 697a ldr r2, [r7, #20]
8006c36: 68f8 ldr r0, [r7, #12]
8006c38: f000 f8aa bl 8006d90 <xQueueGenericSend>
8006c3c: 4603 mov r3, r0
8006c3e: 2b01 cmp r3, #1
8006c40: d001 beq.n 8006c46 <osMessagePut+0x72>
return osErrorOS;
8006c42: 23ff movs r3, #255 @ 0xff
8006c44: e000 b.n 8006c48 <osMessagePut+0x74>
}
}
return osOK;
8006c46: 2300 movs r3, #0
}
8006c48: 4618 mov r0, r3
8006c4a: 3718 adds r7, #24
8006c4c: 46bd mov sp, r7
8006c4e: bd80 pop {r7, pc}
8006c50: e000ed04 .word 0xe000ed04
08006c54 <osMessageWaiting>:
* @brief Get the number of messaged stored in a queue.
* @param queue_id message queue ID obtained with \ref osMessageCreate.
* @retval number of messages stored in a queue.
*/
uint32_t osMessageWaiting(osMessageQId queue_id)
{
8006c54: b580 push {r7, lr}
8006c56: b082 sub sp, #8
8006c58: af00 add r7, sp, #0
8006c5a: 6078 str r0, [r7, #4]
if (inHandlerMode()) {
8006c5c: f7ff ffa7 bl 8006bae <inHandlerMode>
8006c60: 4603 mov r3, r0
8006c62: 2b00 cmp r3, #0
8006c64: d004 beq.n 8006c70 <osMessageWaiting+0x1c>
return uxQueueMessagesWaitingFromISR(queue_id);
8006c66: 6878 ldr r0, [r7, #4]
8006c68: f000 fa51 bl 800710e <uxQueueMessagesWaitingFromISR>
8006c6c: 4603 mov r3, r0
8006c6e: e003 b.n 8006c78 <osMessageWaiting+0x24>
}
else
{
return uxQueueMessagesWaiting(queue_id);
8006c70: 6878 ldr r0, [r7, #4]
8006c72: f000 fa2d bl 80070d0 <uxQueueMessagesWaiting>
8006c76: 4603 mov r3, r0
}
}
8006c78: 4618 mov r0, r3
8006c7a: 3708 adds r7, #8
8006c7c: 46bd mov sp, r7
8006c7e: bd80 pop {r7, pc}
08006c80 <vListInsertEnd>:
listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
}
/*-----------------------------------------------------------*/
void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
{
8006c80: b480 push {r7}
8006c82: b085 sub sp, #20
8006c84: af00 add r7, sp, #0
8006c86: 6078 str r0, [r7, #4]
8006c88: 6039 str r1, [r7, #0]
ListItem_t * const pxIndex = pxList->pxIndex;
8006c8a: 687b ldr r3, [r7, #4]
8006c8c: 685b ldr r3, [r3, #4]
8006c8e: 60fb str r3, [r7, #12]
listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
/* Insert a new list item into pxList, but rather than sort the list,
makes the new list item the last item to be removed by a call to
listGET_OWNER_OF_NEXT_ENTRY(). */
pxNewListItem->pxNext = pxIndex;
8006c90: 683b ldr r3, [r7, #0]
8006c92: 68fa ldr r2, [r7, #12]
8006c94: 605a str r2, [r3, #4]
pxNewListItem->pxPrevious = pxIndex->pxPrevious;
8006c96: 68fb ldr r3, [r7, #12]
8006c98: 689a ldr r2, [r3, #8]
8006c9a: 683b ldr r3, [r7, #0]
8006c9c: 609a str r2, [r3, #8]
/* Only used during decision coverage testing. */
mtCOVERAGE_TEST_DELAY();
pxIndex->pxPrevious->pxNext = pxNewListItem;
8006c9e: 68fb ldr r3, [r7, #12]
8006ca0: 689b ldr r3, [r3, #8]
8006ca2: 683a ldr r2, [r7, #0]
8006ca4: 605a str r2, [r3, #4]
pxIndex->pxPrevious = pxNewListItem;
8006ca6: 68fb ldr r3, [r7, #12]
8006ca8: 683a ldr r2, [r7, #0]
8006caa: 609a str r2, [r3, #8]
/* Remember which list the item is in. */
pxNewListItem->pxContainer = pxList;
8006cac: 683b ldr r3, [r7, #0]
8006cae: 687a ldr r2, [r7, #4]
8006cb0: 611a str r2, [r3, #16]
( pxList->uxNumberOfItems )++;
8006cb2: 687b ldr r3, [r7, #4]
8006cb4: 681b ldr r3, [r3, #0]
8006cb6: 1c5a adds r2, r3, #1
8006cb8: 687b ldr r3, [r7, #4]
8006cba: 601a str r2, [r3, #0]
}
8006cbc: bf00 nop
8006cbe: 3714 adds r7, #20
8006cc0: 46bd mov sp, r7
8006cc2: f85d 7b04 ldr.w r7, [sp], #4
8006cc6: 4770 bx lr
08006cc8 <vListInsert>:
/*-----------------------------------------------------------*/
void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
{
8006cc8: b480 push {r7}
8006cca: b085 sub sp, #20
8006ccc: af00 add r7, sp, #0
8006cce: 6078 str r0, [r7, #4]
8006cd0: 6039 str r1, [r7, #0]
ListItem_t *pxIterator;
const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
8006cd2: 683b ldr r3, [r7, #0]
8006cd4: 681b ldr r3, [r3, #0]
8006cd6: 60bb str r3, [r7, #8]
new list item should be placed after it. This ensures that TCBs which are
stored in ready lists (all of which have the same xItemValue value) get a
share of the CPU. However, if the xItemValue is the same as the back marker
the iteration loop below will not end. Therefore the value is checked
first, and the algorithm slightly modified if necessary. */
if( xValueOfInsertion == portMAX_DELAY )
8006cd8: 68bb ldr r3, [r7, #8]
8006cda: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
8006cde: d103 bne.n 8006ce8 <vListInsert+0x20>
{
pxIterator = pxList->xListEnd.pxPrevious;
8006ce0: 687b ldr r3, [r7, #4]
8006ce2: 691b ldr r3, [r3, #16]
8006ce4: 60fb str r3, [r7, #12]
8006ce6: e00c b.n 8006d02 <vListInsert+0x3a>
4) Using a queue or semaphore before it has been initialised or
before the scheduler has been started (are interrupts firing
before vTaskStartScheduler() has been called?).
**********************************************************************/
for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext ) /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. *//*lint !e440 The iterator moves to a different value, not xValueOfInsertion. */
8006ce8: 687b ldr r3, [r7, #4]
8006cea: 3308 adds r3, #8
8006cec: 60fb str r3, [r7, #12]
8006cee: e002 b.n 8006cf6 <vListInsert+0x2e>
8006cf0: 68fb ldr r3, [r7, #12]
8006cf2: 685b ldr r3, [r3, #4]
8006cf4: 60fb str r3, [r7, #12]
8006cf6: 68fb ldr r3, [r7, #12]
8006cf8: 685b ldr r3, [r3, #4]
8006cfa: 681b ldr r3, [r3, #0]
8006cfc: 68ba ldr r2, [r7, #8]
8006cfe: 429a cmp r2, r3
8006d00: d2f6 bcs.n 8006cf0 <vListInsert+0x28>
/* There is nothing to do here, just iterating to the wanted
insertion position. */
}
}
pxNewListItem->pxNext = pxIterator->pxNext;
8006d02: 68fb ldr r3, [r7, #12]
8006d04: 685a ldr r2, [r3, #4]
8006d06: 683b ldr r3, [r7, #0]
8006d08: 605a str r2, [r3, #4]
pxNewListItem->pxNext->pxPrevious = pxNewListItem;
8006d0a: 683b ldr r3, [r7, #0]
8006d0c: 685b ldr r3, [r3, #4]
8006d0e: 683a ldr r2, [r7, #0]
8006d10: 609a str r2, [r3, #8]
pxNewListItem->pxPrevious = pxIterator;
8006d12: 683b ldr r3, [r7, #0]
8006d14: 68fa ldr r2, [r7, #12]
8006d16: 609a str r2, [r3, #8]
pxIterator->pxNext = pxNewListItem;
8006d18: 68fb ldr r3, [r7, #12]
8006d1a: 683a ldr r2, [r7, #0]
8006d1c: 605a str r2, [r3, #4]
/* Remember which list the item is in. This allows fast removal of the
item later. */
pxNewListItem->pxContainer = pxList;
8006d1e: 683b ldr r3, [r7, #0]
8006d20: 687a ldr r2, [r7, #4]
8006d22: 611a str r2, [r3, #16]
( pxList->uxNumberOfItems )++;
8006d24: 687b ldr r3, [r7, #4]
8006d26: 681b ldr r3, [r3, #0]
8006d28: 1c5a adds r2, r3, #1
8006d2a: 687b ldr r3, [r7, #4]
8006d2c: 601a str r2, [r3, #0]
}
8006d2e: bf00 nop
8006d30: 3714 adds r7, #20
8006d32: 46bd mov sp, r7
8006d34: f85d 7b04 ldr.w r7, [sp], #4
8006d38: 4770 bx lr
08006d3a <uxListRemove>:
/*-----------------------------------------------------------*/
UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
{
8006d3a: b480 push {r7}
8006d3c: b085 sub sp, #20
8006d3e: af00 add r7, sp, #0
8006d40: 6078 str r0, [r7, #4]
/* The list item knows which list it is in. Obtain the list from the list
item. */
List_t * const pxList = pxItemToRemove->pxContainer;
8006d42: 687b ldr r3, [r7, #4]
8006d44: 691b ldr r3, [r3, #16]
8006d46: 60fb str r3, [r7, #12]
pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
8006d48: 687b ldr r3, [r7, #4]
8006d4a: 685b ldr r3, [r3, #4]
8006d4c: 687a ldr r2, [r7, #4]
8006d4e: 6892 ldr r2, [r2, #8]
8006d50: 609a str r2, [r3, #8]
pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
8006d52: 687b ldr r3, [r7, #4]
8006d54: 689b ldr r3, [r3, #8]
8006d56: 687a ldr r2, [r7, #4]
8006d58: 6852 ldr r2, [r2, #4]
8006d5a: 605a str r2, [r3, #4]
/* Only used during decision coverage testing. */
mtCOVERAGE_TEST_DELAY();
/* Make sure the index is left pointing to a valid item. */
if( pxList->pxIndex == pxItemToRemove )
8006d5c: 68fb ldr r3, [r7, #12]
8006d5e: 685b ldr r3, [r3, #4]
8006d60: 687a ldr r2, [r7, #4]
8006d62: 429a cmp r2, r3
8006d64: d103 bne.n 8006d6e <uxListRemove+0x34>
{
pxList->pxIndex = pxItemToRemove->pxPrevious;
8006d66: 687b ldr r3, [r7, #4]
8006d68: 689a ldr r2, [r3, #8]
8006d6a: 68fb ldr r3, [r7, #12]
8006d6c: 605a str r2, [r3, #4]
else
{
mtCOVERAGE_TEST_MARKER();
}
pxItemToRemove->pxContainer = NULL;
8006d6e: 687b ldr r3, [r7, #4]
8006d70: 2200 movs r2, #0
8006d72: 611a str r2, [r3, #16]
( pxList->uxNumberOfItems )--;
8006d74: 68fb ldr r3, [r7, #12]
8006d76: 681b ldr r3, [r3, #0]
8006d78: 1e5a subs r2, r3, #1
8006d7a: 68fb ldr r3, [r7, #12]
8006d7c: 601a str r2, [r3, #0]
return pxList->uxNumberOfItems;
8006d7e: 68fb ldr r3, [r7, #12]
8006d80: 681b ldr r3, [r3, #0]
}
8006d82: 4618 mov r0, r3
8006d84: 3714 adds r7, #20
8006d86: 46bd mov sp, r7
8006d88: f85d 7b04 ldr.w r7, [sp], #4
8006d8c: 4770 bx lr
...
08006d90 <xQueueGenericSend>:
#endif /* ( ( configUSE_COUNTING_SEMAPHORES == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) ) */
/*-----------------------------------------------------------*/
BaseType_t xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition )
{
8006d90: b580 push {r7, lr}
8006d92: b08e sub sp, #56 @ 0x38
8006d94: af00 add r7, sp, #0
8006d96: 60f8 str r0, [r7, #12]
8006d98: 60b9 str r1, [r7, #8]
8006d9a: 607a str r2, [r7, #4]
8006d9c: 603b str r3, [r7, #0]
BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
8006d9e: 2300 movs r3, #0
8006da0: 637b str r3, [r7, #52] @ 0x34
TimeOut_t xTimeOut;
Queue_t * const pxQueue = xQueue;
8006da2: 68fb ldr r3, [r7, #12]
8006da4: 633b str r3, [r7, #48] @ 0x30
configASSERT( pxQueue );
8006da6: 6b3b ldr r3, [r7, #48] @ 0x30
8006da8: 2b00 cmp r3, #0
8006daa: d10b bne.n 8006dc4 <xQueueGenericSend+0x34>
portFORCE_INLINE static void vPortRaiseBASEPRI( void )
{
uint32_t ulNewBASEPRI;
__asm volatile
8006dac: f04f 0350 mov.w r3, #80 @ 0x50
8006db0: f383 8811 msr BASEPRI, r3
8006db4: f3bf 8f6f isb sy
8006db8: f3bf 8f4f dsb sy
8006dbc: 62bb str r3, [r7, #40] @ 0x28
" msr basepri, %0 \n" \
" isb \n" \
" dsb \n" \
:"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
);
}
8006dbe: bf00 nop
8006dc0: bf00 nop
8006dc2: e7fd b.n 8006dc0 <xQueueGenericSend+0x30>
configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
8006dc4: 68bb ldr r3, [r7, #8]
8006dc6: 2b00 cmp r3, #0
8006dc8: d103 bne.n 8006dd2 <xQueueGenericSend+0x42>
8006dca: 6b3b ldr r3, [r7, #48] @ 0x30
8006dcc: 6c1b ldr r3, [r3, #64] @ 0x40
8006dce: 2b00 cmp r3, #0
8006dd0: d101 bne.n 8006dd6 <xQueueGenericSend+0x46>
8006dd2: 2301 movs r3, #1
8006dd4: e000 b.n 8006dd8 <xQueueGenericSend+0x48>
8006dd6: 2300 movs r3, #0
8006dd8: 2b00 cmp r3, #0
8006dda: d10b bne.n 8006df4 <xQueueGenericSend+0x64>
__asm volatile
8006ddc: f04f 0350 mov.w r3, #80 @ 0x50
8006de0: f383 8811 msr BASEPRI, r3
8006de4: f3bf 8f6f isb sy
8006de8: f3bf 8f4f dsb sy
8006dec: 627b str r3, [r7, #36] @ 0x24
}
8006dee: bf00 nop
8006df0: bf00 nop
8006df2: e7fd b.n 8006df0 <xQueueGenericSend+0x60>
configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
8006df4: 683b ldr r3, [r7, #0]
8006df6: 2b02 cmp r3, #2
8006df8: d103 bne.n 8006e02 <xQueueGenericSend+0x72>
8006dfa: 6b3b ldr r3, [r7, #48] @ 0x30
8006dfc: 6bdb ldr r3, [r3, #60] @ 0x3c
8006dfe: 2b01 cmp r3, #1
8006e00: d101 bne.n 8006e06 <xQueueGenericSend+0x76>
8006e02: 2301 movs r3, #1
8006e04: e000 b.n 8006e08 <xQueueGenericSend+0x78>
8006e06: 2300 movs r3, #0
8006e08: 2b00 cmp r3, #0
8006e0a: d10b bne.n 8006e24 <xQueueGenericSend+0x94>
__asm volatile
8006e0c: f04f 0350 mov.w r3, #80 @ 0x50
8006e10: f383 8811 msr BASEPRI, r3
8006e14: f3bf 8f6f isb sy
8006e18: f3bf 8f4f dsb sy
8006e1c: 623b str r3, [r7, #32]
}
8006e1e: bf00 nop
8006e20: bf00 nop
8006e22: e7fd b.n 8006e20 <xQueueGenericSend+0x90>
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
{
configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
8006e24: f000 fd7e bl 8007924 <xTaskGetSchedulerState>
8006e28: 4603 mov r3, r0
8006e2a: 2b00 cmp r3, #0
8006e2c: d102 bne.n 8006e34 <xQueueGenericSend+0xa4>
8006e2e: 687b ldr r3, [r7, #4]
8006e30: 2b00 cmp r3, #0
8006e32: d101 bne.n 8006e38 <xQueueGenericSend+0xa8>
8006e34: 2301 movs r3, #1
8006e36: e000 b.n 8006e3a <xQueueGenericSend+0xaa>
8006e38: 2300 movs r3, #0
8006e3a: 2b00 cmp r3, #0
8006e3c: d10b bne.n 8006e56 <xQueueGenericSend+0xc6>
__asm volatile
8006e3e: f04f 0350 mov.w r3, #80 @ 0x50
8006e42: f383 8811 msr BASEPRI, r3
8006e46: f3bf 8f6f isb sy
8006e4a: f3bf 8f4f dsb sy
8006e4e: 61fb str r3, [r7, #28]
}
8006e50: bf00 nop
8006e52: bf00 nop
8006e54: e7fd b.n 8006e52 <xQueueGenericSend+0xc2>
/*lint -save -e904 This function relaxes the coding standard somewhat to
allow return statements within the function itself. This is done in the
interest of execution time efficiency. */
for( ;; )
{
taskENTER_CRITICAL();
8006e56: f000 fe87 bl 8007b68 <vPortEnterCritical>
{
/* Is there room on the queue now? The running task must be the
highest priority task wanting to access the queue. If the head item
in the queue is to be overwritten then it does not matter if the
queue is full. */
if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
8006e5a: 6b3b ldr r3, [r7, #48] @ 0x30
8006e5c: 6b9a ldr r2, [r3, #56] @ 0x38
8006e5e: 6b3b ldr r3, [r7, #48] @ 0x30
8006e60: 6bdb ldr r3, [r3, #60] @ 0x3c
8006e62: 429a cmp r2, r3
8006e64: d302 bcc.n 8006e6c <xQueueGenericSend+0xdc>
8006e66: 683b ldr r3, [r7, #0]
8006e68: 2b02 cmp r3, #2
8006e6a: d129 bne.n 8006ec0 <xQueueGenericSend+0x130>
}
}
}
#else /* configUSE_QUEUE_SETS */
{
xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
8006e6c: 683a ldr r2, [r7, #0]
8006e6e: 68b9 ldr r1, [r7, #8]
8006e70: 6b38 ldr r0, [r7, #48] @ 0x30
8006e72: f000 f96b bl 800714c <prvCopyDataToQueue>
8006e76: 62f8 str r0, [r7, #44] @ 0x2c
/* If there was a task waiting for data to arrive on the
queue then unblock it now. */
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
8006e78: 6b3b ldr r3, [r7, #48] @ 0x30
8006e7a: 6a5b ldr r3, [r3, #36] @ 0x24
8006e7c: 2b00 cmp r3, #0
8006e7e: d010 beq.n 8006ea2 <xQueueGenericSend+0x112>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
8006e80: 6b3b ldr r3, [r7, #48] @ 0x30
8006e82: 3324 adds r3, #36 @ 0x24
8006e84: 4618 mov r0, r3
8006e86: f000 fc43 bl 8007710 <xTaskRemoveFromEventList>
8006e8a: 4603 mov r3, r0
8006e8c: 2b00 cmp r3, #0
8006e8e: d013 beq.n 8006eb8 <xQueueGenericSend+0x128>
{
/* The unblocked task has a priority higher than
our own so yield immediately. Yes it is ok to do
this from within the critical section - the kernel
takes care of that. */
queueYIELD_IF_USING_PREEMPTION();
8006e90: 4b3f ldr r3, [pc, #252] @ (8006f90 <xQueueGenericSend+0x200>)
8006e92: f04f 5280 mov.w r2, #268435456 @ 0x10000000
8006e96: 601a str r2, [r3, #0]
8006e98: f3bf 8f4f dsb sy
8006e9c: f3bf 8f6f isb sy
8006ea0: e00a b.n 8006eb8 <xQueueGenericSend+0x128>
else
{
mtCOVERAGE_TEST_MARKER();
}
}
else if( xYieldRequired != pdFALSE )
8006ea2: 6afb ldr r3, [r7, #44] @ 0x2c
8006ea4: 2b00 cmp r3, #0
8006ea6: d007 beq.n 8006eb8 <xQueueGenericSend+0x128>
{
/* This path is a special case that will only get
executed if the task was holding multiple mutexes and
the mutexes were given back in an order that is
different to that in which they were taken. */
queueYIELD_IF_USING_PREEMPTION();
8006ea8: 4b39 ldr r3, [pc, #228] @ (8006f90 <xQueueGenericSend+0x200>)
8006eaa: f04f 5280 mov.w r2, #268435456 @ 0x10000000
8006eae: 601a str r2, [r3, #0]
8006eb0: f3bf 8f4f dsb sy
8006eb4: f3bf 8f6f isb sy
mtCOVERAGE_TEST_MARKER();
}
}
#endif /* configUSE_QUEUE_SETS */
taskEXIT_CRITICAL();
8006eb8: f000 fe88 bl 8007bcc <vPortExitCritical>
return pdPASS;
8006ebc: 2301 movs r3, #1
8006ebe: e063 b.n 8006f88 <xQueueGenericSend+0x1f8>
}
else
{
if( xTicksToWait == ( TickType_t ) 0 )
8006ec0: 687b ldr r3, [r7, #4]
8006ec2: 2b00 cmp r3, #0
8006ec4: d103 bne.n 8006ece <xQueueGenericSend+0x13e>
{
/* The queue was full and no block time is specified (or
the block time has expired) so leave now. */
taskEXIT_CRITICAL();
8006ec6: f000 fe81 bl 8007bcc <vPortExitCritical>
/* Return to the original privilege level before exiting
the function. */
traceQUEUE_SEND_FAILED( pxQueue );
return errQUEUE_FULL;
8006eca: 2300 movs r3, #0
8006ecc: e05c b.n 8006f88 <xQueueGenericSend+0x1f8>
}
else if( xEntryTimeSet == pdFALSE )
8006ece: 6b7b ldr r3, [r7, #52] @ 0x34
8006ed0: 2b00 cmp r3, #0
8006ed2: d106 bne.n 8006ee2 <xQueueGenericSend+0x152>
{
/* The queue was full and a block time was specified so
configure the timeout structure. */
vTaskInternalSetTimeOutState( &xTimeOut );
8006ed4: f107 0314 add.w r3, r7, #20
8006ed8: 4618 mov r0, r3
8006eda: f000 fc7d bl 80077d8 <vTaskInternalSetTimeOutState>
xEntryTimeSet = pdTRUE;
8006ede: 2301 movs r3, #1
8006ee0: 637b str r3, [r7, #52] @ 0x34
/* Entry time was already set. */
mtCOVERAGE_TEST_MARKER();
}
}
}
taskEXIT_CRITICAL();
8006ee2: f000 fe73 bl 8007bcc <vPortExitCritical>
/* Interrupts and other tasks can send to and receive from the queue
now the critical section has been exited. */
vTaskSuspendAll();
8006ee6: f000 fa05 bl 80072f4 <vTaskSuspendAll>
prvLockQueue( pxQueue );
8006eea: f000 fe3d bl 8007b68 <vPortEnterCritical>
8006eee: 6b3b ldr r3, [r7, #48] @ 0x30
8006ef0: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
8006ef4: b25b sxtb r3, r3
8006ef6: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
8006efa: d103 bne.n 8006f04 <xQueueGenericSend+0x174>
8006efc: 6b3b ldr r3, [r7, #48] @ 0x30
8006efe: 2200 movs r2, #0
8006f00: f883 2044 strb.w r2, [r3, #68] @ 0x44
8006f04: 6b3b ldr r3, [r7, #48] @ 0x30
8006f06: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
8006f0a: b25b sxtb r3, r3
8006f0c: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
8006f10: d103 bne.n 8006f1a <xQueueGenericSend+0x18a>
8006f12: 6b3b ldr r3, [r7, #48] @ 0x30
8006f14: 2200 movs r2, #0
8006f16: f883 2045 strb.w r2, [r3, #69] @ 0x45
8006f1a: f000 fe57 bl 8007bcc <vPortExitCritical>
/* Update the timeout state to see if it has expired yet. */
if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
8006f1e: 1d3a adds r2, r7, #4
8006f20: f107 0314 add.w r3, r7, #20
8006f24: 4611 mov r1, r2
8006f26: 4618 mov r0, r3
8006f28: f000 fc6c bl 8007804 <xTaskCheckForTimeOut>
8006f2c: 4603 mov r3, r0
8006f2e: 2b00 cmp r3, #0
8006f30: d124 bne.n 8006f7c <xQueueGenericSend+0x1ec>
{
if( prvIsQueueFull( pxQueue ) != pdFALSE )
8006f32: 6b38 ldr r0, [r7, #48] @ 0x30
8006f34: f000 f9c6 bl 80072c4 <prvIsQueueFull>
8006f38: 4603 mov r3, r0
8006f3a: 2b00 cmp r3, #0
8006f3c: d018 beq.n 8006f70 <xQueueGenericSend+0x1e0>
{
traceBLOCKING_ON_QUEUE_SEND( pxQueue );
vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
8006f3e: 6b3b ldr r3, [r7, #48] @ 0x30
8006f40: 3310 adds r3, #16
8006f42: 687a ldr r2, [r7, #4]
8006f44: 4611 mov r1, r2
8006f46: 4618 mov r0, r3
8006f48: f000 fbbc bl 80076c4 <vTaskPlaceOnEventList>
/* Unlocking the queue means queue events can effect the
event list. It is possible that interrupts occurring now
remove this task from the event list again - but as the
scheduler is suspended the task will go onto the pending
ready last instead of the actual ready list. */
prvUnlockQueue( pxQueue );
8006f4c: 6b38 ldr r0, [r7, #48] @ 0x30
8006f4e: f000 f967 bl 8007220 <prvUnlockQueue>
/* Resuming the scheduler will move tasks from the pending
ready list into the ready list - so it is feasible that this
task is already in a ready list before it yields - in which
case the yield will not cause a context switch unless there
is also a higher priority task in the pending ready list. */
if( xTaskResumeAll() == pdFALSE )
8006f52: f000 f9dd bl 8007310 <xTaskResumeAll>
8006f56: 4603 mov r3, r0
8006f58: 2b00 cmp r3, #0
8006f5a: f47f af7c bne.w 8006e56 <xQueueGenericSend+0xc6>
{
portYIELD_WITHIN_API();
8006f5e: 4b0c ldr r3, [pc, #48] @ (8006f90 <xQueueGenericSend+0x200>)
8006f60: f04f 5280 mov.w r2, #268435456 @ 0x10000000
8006f64: 601a str r2, [r3, #0]
8006f66: f3bf 8f4f dsb sy
8006f6a: f3bf 8f6f isb sy
8006f6e: e772 b.n 8006e56 <xQueueGenericSend+0xc6>
}
}
else
{
/* Try again. */
prvUnlockQueue( pxQueue );
8006f70: 6b38 ldr r0, [r7, #48] @ 0x30
8006f72: f000 f955 bl 8007220 <prvUnlockQueue>
( void ) xTaskResumeAll();
8006f76: f000 f9cb bl 8007310 <xTaskResumeAll>
8006f7a: e76c b.n 8006e56 <xQueueGenericSend+0xc6>
}
}
else
{
/* The timeout has expired. */
prvUnlockQueue( pxQueue );
8006f7c: 6b38 ldr r0, [r7, #48] @ 0x30
8006f7e: f000 f94f bl 8007220 <prvUnlockQueue>
( void ) xTaskResumeAll();
8006f82: f000 f9c5 bl 8007310 <xTaskResumeAll>
traceQUEUE_SEND_FAILED( pxQueue );
return errQUEUE_FULL;
8006f86: 2300 movs r3, #0
}
} /*lint -restore */
}
8006f88: 4618 mov r0, r3
8006f8a: 3738 adds r7, #56 @ 0x38
8006f8c: 46bd mov sp, r7
8006f8e: bd80 pop {r7, pc}
8006f90: e000ed04 .word 0xe000ed04
08006f94 <xQueueGenericSendFromISR>:
/*-----------------------------------------------------------*/
BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
{
8006f94: b580 push {r7, lr}
8006f96: b090 sub sp, #64 @ 0x40
8006f98: af00 add r7, sp, #0
8006f9a: 60f8 str r0, [r7, #12]
8006f9c: 60b9 str r1, [r7, #8]
8006f9e: 607a str r2, [r7, #4]
8006fa0: 603b str r3, [r7, #0]
BaseType_t xReturn;
UBaseType_t uxSavedInterruptStatus;
Queue_t * const pxQueue = xQueue;
8006fa2: 68fb ldr r3, [r7, #12]
8006fa4: 63bb str r3, [r7, #56] @ 0x38
configASSERT( pxQueue );
8006fa6: 6bbb ldr r3, [r7, #56] @ 0x38
8006fa8: 2b00 cmp r3, #0
8006faa: d10b bne.n 8006fc4 <xQueueGenericSendFromISR+0x30>
__asm volatile
8006fac: f04f 0350 mov.w r3, #80 @ 0x50
8006fb0: f383 8811 msr BASEPRI, r3
8006fb4: f3bf 8f6f isb sy
8006fb8: f3bf 8f4f dsb sy
8006fbc: 62bb str r3, [r7, #40] @ 0x28
}
8006fbe: bf00 nop
8006fc0: bf00 nop
8006fc2: e7fd b.n 8006fc0 <xQueueGenericSendFromISR+0x2c>
configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
8006fc4: 68bb ldr r3, [r7, #8]
8006fc6: 2b00 cmp r3, #0
8006fc8: d103 bne.n 8006fd2 <xQueueGenericSendFromISR+0x3e>
8006fca: 6bbb ldr r3, [r7, #56] @ 0x38
8006fcc: 6c1b ldr r3, [r3, #64] @ 0x40
8006fce: 2b00 cmp r3, #0
8006fd0: d101 bne.n 8006fd6 <xQueueGenericSendFromISR+0x42>
8006fd2: 2301 movs r3, #1
8006fd4: e000 b.n 8006fd8 <xQueueGenericSendFromISR+0x44>
8006fd6: 2300 movs r3, #0
8006fd8: 2b00 cmp r3, #0
8006fda: d10b bne.n 8006ff4 <xQueueGenericSendFromISR+0x60>
__asm volatile
8006fdc: f04f 0350 mov.w r3, #80 @ 0x50
8006fe0: f383 8811 msr BASEPRI, r3
8006fe4: f3bf 8f6f isb sy
8006fe8: f3bf 8f4f dsb sy
8006fec: 627b str r3, [r7, #36] @ 0x24
}
8006fee: bf00 nop
8006ff0: bf00 nop
8006ff2: e7fd b.n 8006ff0 <xQueueGenericSendFromISR+0x5c>
configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
8006ff4: 683b ldr r3, [r7, #0]
8006ff6: 2b02 cmp r3, #2
8006ff8: d103 bne.n 8007002 <xQueueGenericSendFromISR+0x6e>
8006ffa: 6bbb ldr r3, [r7, #56] @ 0x38
8006ffc: 6bdb ldr r3, [r3, #60] @ 0x3c
8006ffe: 2b01 cmp r3, #1
8007000: d101 bne.n 8007006 <xQueueGenericSendFromISR+0x72>
8007002: 2301 movs r3, #1
8007004: e000 b.n 8007008 <xQueueGenericSendFromISR+0x74>
8007006: 2300 movs r3, #0
8007008: 2b00 cmp r3, #0
800700a: d10b bne.n 8007024 <xQueueGenericSendFromISR+0x90>
__asm volatile
800700c: f04f 0350 mov.w r3, #80 @ 0x50
8007010: f383 8811 msr BASEPRI, r3
8007014: f3bf 8f6f isb sy
8007018: f3bf 8f4f dsb sy
800701c: 623b str r3, [r7, #32]
}
800701e: bf00 nop
8007020: bf00 nop
8007022: e7fd b.n 8007020 <xQueueGenericSendFromISR+0x8c>
that have been assigned a priority at or (logically) below the maximum
system call interrupt priority. FreeRTOS maintains a separate interrupt
safe API to ensure interrupt entry is as fast and as simple as possible.
More information (albeit Cortex-M specific) is provided on the following
link: http://www.freertos.org/RTOS-Cortex-M3-M4.html */
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
8007024: f000 fe52 bl 8007ccc <vPortValidateInterruptPriority>
portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
{
uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
__asm volatile
8007028: f3ef 8211 mrs r2, BASEPRI
800702c: f04f 0350 mov.w r3, #80 @ 0x50
8007030: f383 8811 msr BASEPRI, r3
8007034: f3bf 8f6f isb sy
8007038: f3bf 8f4f dsb sy
800703c: 61fa str r2, [r7, #28]
800703e: 61bb str r3, [r7, #24]
:"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
);
/* This return will not be reached but is necessary to prevent compiler
warnings. */
return ulOriginalBASEPRI;
8007040: 69fb ldr r3, [r7, #28]
/* Similar to xQueueGenericSend, except without blocking if there is no room
in the queue. Also don't directly wake a task that was blocked on a queue
read, instead return a flag to say whether a context switch is required or
not (i.e. has a task with a higher priority than us been woken by this
post). */
uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
8007042: 637b str r3, [r7, #52] @ 0x34
{
if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
8007044: 6bbb ldr r3, [r7, #56] @ 0x38
8007046: 6b9a ldr r2, [r3, #56] @ 0x38
8007048: 6bbb ldr r3, [r7, #56] @ 0x38
800704a: 6bdb ldr r3, [r3, #60] @ 0x3c
800704c: 429a cmp r2, r3
800704e: d302 bcc.n 8007056 <xQueueGenericSendFromISR+0xc2>
8007050: 683b ldr r3, [r7, #0]
8007052: 2b02 cmp r3, #2
8007054: d12f bne.n 80070b6 <xQueueGenericSendFromISR+0x122>
{
const int8_t cTxLock = pxQueue->cTxLock;
8007056: 6bbb ldr r3, [r7, #56] @ 0x38
8007058: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
800705c: f887 3033 strb.w r3, [r7, #51] @ 0x33
const UBaseType_t uxPreviousMessagesWaiting = pxQueue->uxMessagesWaiting;
8007060: 6bbb ldr r3, [r7, #56] @ 0x38
8007062: 6b9b ldr r3, [r3, #56] @ 0x38
8007064: 62fb str r3, [r7, #44] @ 0x2c
/* Semaphores use xQueueGiveFromISR(), so pxQueue will not be a
semaphore or mutex. That means prvCopyDataToQueue() cannot result
in a task disinheriting a priority and prvCopyDataToQueue() can be
called here even though the disinherit function does not check if
the scheduler is suspended before accessing the ready lists. */
( void ) prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
8007066: 683a ldr r2, [r7, #0]
8007068: 68b9 ldr r1, [r7, #8]
800706a: 6bb8 ldr r0, [r7, #56] @ 0x38
800706c: f000 f86e bl 800714c <prvCopyDataToQueue>
/* The event list is not altered if the queue is locked. This will
be done when the queue is unlocked later. */
if( cTxLock == queueUNLOCKED )
8007070: f997 3033 ldrsb.w r3, [r7, #51] @ 0x33
8007074: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
8007078: d112 bne.n 80070a0 <xQueueGenericSendFromISR+0x10c>
}
}
}
#else /* configUSE_QUEUE_SETS */
{
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
800707a: 6bbb ldr r3, [r7, #56] @ 0x38
800707c: 6a5b ldr r3, [r3, #36] @ 0x24
800707e: 2b00 cmp r3, #0
8007080: d016 beq.n 80070b0 <xQueueGenericSendFromISR+0x11c>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
8007082: 6bbb ldr r3, [r7, #56] @ 0x38
8007084: 3324 adds r3, #36 @ 0x24
8007086: 4618 mov r0, r3
8007088: f000 fb42 bl 8007710 <xTaskRemoveFromEventList>
800708c: 4603 mov r3, r0
800708e: 2b00 cmp r3, #0
8007090: d00e beq.n 80070b0 <xQueueGenericSendFromISR+0x11c>
{
/* The task waiting has a higher priority so record that a
context switch is required. */
if( pxHigherPriorityTaskWoken != NULL )
8007092: 687b ldr r3, [r7, #4]
8007094: 2b00 cmp r3, #0
8007096: d00b beq.n 80070b0 <xQueueGenericSendFromISR+0x11c>
{
*pxHigherPriorityTaskWoken = pdTRUE;
8007098: 687b ldr r3, [r7, #4]
800709a: 2201 movs r2, #1
800709c: 601a str r2, [r3, #0]
800709e: e007 b.n 80070b0 <xQueueGenericSendFromISR+0x11c>
}
else
{
/* Increment the lock count so the task that unlocks the queue
knows that data was posted while it was locked. */
pxQueue->cTxLock = ( int8_t ) ( cTxLock + 1 );
80070a0: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
80070a4: 3301 adds r3, #1
80070a6: b2db uxtb r3, r3
80070a8: b25a sxtb r2, r3
80070aa: 6bbb ldr r3, [r7, #56] @ 0x38
80070ac: f883 2045 strb.w r2, [r3, #69] @ 0x45
}
xReturn = pdPASS;
80070b0: 2301 movs r3, #1
80070b2: 63fb str r3, [r7, #60] @ 0x3c
{
80070b4: e001 b.n 80070ba <xQueueGenericSendFromISR+0x126>
}
else
{
traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
xReturn = errQUEUE_FULL;
80070b6: 2300 movs r3, #0
80070b8: 63fb str r3, [r7, #60] @ 0x3c
80070ba: 6b7b ldr r3, [r7, #52] @ 0x34
80070bc: 617b str r3, [r7, #20]
}
/*-----------------------------------------------------------*/
portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
{
__asm volatile
80070be: 697b ldr r3, [r7, #20]
80070c0: f383 8811 msr BASEPRI, r3
(
" msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
);
}
80070c4: bf00 nop
}
}
portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
return xReturn;
80070c6: 6bfb ldr r3, [r7, #60] @ 0x3c
}
80070c8: 4618 mov r0, r3
80070ca: 3740 adds r7, #64 @ 0x40
80070cc: 46bd mov sp, r7
80070ce: bd80 pop {r7, pc}
080070d0 <uxQueueMessagesWaiting>:
return xReturn;
}
/*-----------------------------------------------------------*/
UBaseType_t uxQueueMessagesWaiting( const QueueHandle_t xQueue )
{
80070d0: b580 push {r7, lr}
80070d2: b084 sub sp, #16
80070d4: af00 add r7, sp, #0
80070d6: 6078 str r0, [r7, #4]
UBaseType_t uxReturn;
configASSERT( xQueue );
80070d8: 687b ldr r3, [r7, #4]
80070da: 2b00 cmp r3, #0
80070dc: d10b bne.n 80070f6 <uxQueueMessagesWaiting+0x26>
__asm volatile
80070de: f04f 0350 mov.w r3, #80 @ 0x50
80070e2: f383 8811 msr BASEPRI, r3
80070e6: f3bf 8f6f isb sy
80070ea: f3bf 8f4f dsb sy
80070ee: 60bb str r3, [r7, #8]
}
80070f0: bf00 nop
80070f2: bf00 nop
80070f4: e7fd b.n 80070f2 <uxQueueMessagesWaiting+0x22>
taskENTER_CRITICAL();
80070f6: f000 fd37 bl 8007b68 <vPortEnterCritical>
{
uxReturn = ( ( Queue_t * ) xQueue )->uxMessagesWaiting;
80070fa: 687b ldr r3, [r7, #4]
80070fc: 6b9b ldr r3, [r3, #56] @ 0x38
80070fe: 60fb str r3, [r7, #12]
}
taskEXIT_CRITICAL();
8007100: f000 fd64 bl 8007bcc <vPortExitCritical>
return uxReturn;
8007104: 68fb ldr r3, [r7, #12]
} /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
8007106: 4618 mov r0, r3
8007108: 3710 adds r7, #16
800710a: 46bd mov sp, r7
800710c: bd80 pop {r7, pc}
0800710e <uxQueueMessagesWaitingFromISR>:
return uxReturn;
} /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
/*-----------------------------------------------------------*/
UBaseType_t uxQueueMessagesWaitingFromISR( const QueueHandle_t xQueue )
{
800710e: b480 push {r7}
8007110: b087 sub sp, #28
8007112: af00 add r7, sp, #0
8007114: 6078 str r0, [r7, #4]
UBaseType_t uxReturn;
Queue_t * const pxQueue = xQueue;
8007116: 687b ldr r3, [r7, #4]
8007118: 617b str r3, [r7, #20]
configASSERT( pxQueue );
800711a: 697b ldr r3, [r7, #20]
800711c: 2b00 cmp r3, #0
800711e: d10b bne.n 8007138 <uxQueueMessagesWaitingFromISR+0x2a>
__asm volatile
8007120: f04f 0350 mov.w r3, #80 @ 0x50
8007124: f383 8811 msr BASEPRI, r3
8007128: f3bf 8f6f isb sy
800712c: f3bf 8f4f dsb sy
8007130: 60fb str r3, [r7, #12]
}
8007132: bf00 nop
8007134: bf00 nop
8007136: e7fd b.n 8007134 <uxQueueMessagesWaitingFromISR+0x26>
uxReturn = pxQueue->uxMessagesWaiting;
8007138: 697b ldr r3, [r7, #20]
800713a: 6b9b ldr r3, [r3, #56] @ 0x38
800713c: 613b str r3, [r7, #16]
return uxReturn;
800713e: 693b ldr r3, [r7, #16]
} /*lint !e818 Pointer cannot be declared const as xQueue is a typedef not pointer. */
8007140: 4618 mov r0, r3
8007142: 371c adds r7, #28
8007144: 46bd mov sp, r7
8007146: f85d 7b04 ldr.w r7, [sp], #4
800714a: 4770 bx lr
0800714c <prvCopyDataToQueue>:
#endif /* configUSE_MUTEXES */
/*-----------------------------------------------------------*/
static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
{
800714c: b580 push {r7, lr}
800714e: b086 sub sp, #24
8007150: af00 add r7, sp, #0
8007152: 60f8 str r0, [r7, #12]
8007154: 60b9 str r1, [r7, #8]
8007156: 607a str r2, [r7, #4]
BaseType_t xReturn = pdFALSE;
8007158: 2300 movs r3, #0
800715a: 617b str r3, [r7, #20]
UBaseType_t uxMessagesWaiting;
/* This function is called from a critical section. */
uxMessagesWaiting = pxQueue->uxMessagesWaiting;
800715c: 68fb ldr r3, [r7, #12]
800715e: 6b9b ldr r3, [r3, #56] @ 0x38
8007160: 613b str r3, [r7, #16]
if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
8007162: 68fb ldr r3, [r7, #12]
8007164: 6c1b ldr r3, [r3, #64] @ 0x40
8007166: 2b00 cmp r3, #0
8007168: d10d bne.n 8007186 <prvCopyDataToQueue+0x3a>
{
#if ( configUSE_MUTEXES == 1 )
{
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
800716a: 68fb ldr r3, [r7, #12]
800716c: 681b ldr r3, [r3, #0]
800716e: 2b00 cmp r3, #0
8007170: d14d bne.n 800720e <prvCopyDataToQueue+0xc2>
{
/* The mutex is no longer being held. */
xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
8007172: 68fb ldr r3, [r7, #12]
8007174: 689b ldr r3, [r3, #8]
8007176: 4618 mov r0, r3
8007178: f000 fbf2 bl 8007960 <xTaskPriorityDisinherit>
800717c: 6178 str r0, [r7, #20]
pxQueue->u.xSemaphore.xMutexHolder = NULL;
800717e: 68fb ldr r3, [r7, #12]
8007180: 2200 movs r2, #0
8007182: 609a str r2, [r3, #8]
8007184: e043 b.n 800720e <prvCopyDataToQueue+0xc2>
mtCOVERAGE_TEST_MARKER();
}
}
#endif /* configUSE_MUTEXES */
}
else if( xPosition == queueSEND_TO_BACK )
8007186: 687b ldr r3, [r7, #4]
8007188: 2b00 cmp r3, #0
800718a: d119 bne.n 80071c0 <prvCopyDataToQueue+0x74>
{
( void ) memcpy( ( void * ) pxQueue->pcWriteTo, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports, plus previous logic ensures a null pointer can only be passed to memcpy() if the copy size is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */
800718c: 68fb ldr r3, [r7, #12]
800718e: 6858 ldr r0, [r3, #4]
8007190: 68fb ldr r3, [r7, #12]
8007192: 6c1b ldr r3, [r3, #64] @ 0x40
8007194: 461a mov r2, r3
8007196: 68b9 ldr r1, [r7, #8]
8007198: f000 fea6 bl 8007ee8 <memcpy>
pxQueue->pcWriteTo += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */
800719c: 68fb ldr r3, [r7, #12]
800719e: 685a ldr r2, [r3, #4]
80071a0: 68fb ldr r3, [r7, #12]
80071a2: 6c1b ldr r3, [r3, #64] @ 0x40
80071a4: 441a add r2, r3
80071a6: 68fb ldr r3, [r7, #12]
80071a8: 605a str r2, [r3, #4]
if( pxQueue->pcWriteTo >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
80071aa: 68fb ldr r3, [r7, #12]
80071ac: 685a ldr r2, [r3, #4]
80071ae: 68fb ldr r3, [r7, #12]
80071b0: 689b ldr r3, [r3, #8]
80071b2: 429a cmp r2, r3
80071b4: d32b bcc.n 800720e <prvCopyDataToQueue+0xc2>
{
pxQueue->pcWriteTo = pxQueue->pcHead;
80071b6: 68fb ldr r3, [r7, #12]
80071b8: 681a ldr r2, [r3, #0]
80071ba: 68fb ldr r3, [r7, #12]
80071bc: 605a str r2, [r3, #4]
80071be: e026 b.n 800720e <prvCopyDataToQueue+0xc2>
mtCOVERAGE_TEST_MARKER();
}
}
else
{
( void ) memcpy( ( void * ) pxQueue->u.xQueue.pcReadFrom, pvItemToQueue, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e9087 !e418 MISRA exception as the casts are only redundant for some ports. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. Assert checks null pointer only used when length is 0. */
80071c0: 68fb ldr r3, [r7, #12]
80071c2: 68d8 ldr r0, [r3, #12]
80071c4: 68fb ldr r3, [r7, #12]
80071c6: 6c1b ldr r3, [r3, #64] @ 0x40
80071c8: 461a mov r2, r3
80071ca: 68b9 ldr r1, [r7, #8]
80071cc: f000 fe8c bl 8007ee8 <memcpy>
pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
80071d0: 68fb ldr r3, [r7, #12]
80071d2: 68da ldr r2, [r3, #12]
80071d4: 68fb ldr r3, [r7, #12]
80071d6: 6c1b ldr r3, [r3, #64] @ 0x40
80071d8: 425b negs r3, r3
80071da: 441a add r2, r3
80071dc: 68fb ldr r3, [r7, #12]
80071de: 60da str r2, [r3, #12]
if( pxQueue->u.xQueue.pcReadFrom < pxQueue->pcHead ) /*lint !e946 MISRA exception justified as comparison of pointers is the cleanest solution. */
80071e0: 68fb ldr r3, [r7, #12]
80071e2: 68da ldr r2, [r3, #12]
80071e4: 68fb ldr r3, [r7, #12]
80071e6: 681b ldr r3, [r3, #0]
80071e8: 429a cmp r2, r3
80071ea: d207 bcs.n 80071fc <prvCopyDataToQueue+0xb0>
{
pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
80071ec: 68fb ldr r3, [r7, #12]
80071ee: 689a ldr r2, [r3, #8]
80071f0: 68fb ldr r3, [r7, #12]
80071f2: 6c1b ldr r3, [r3, #64] @ 0x40
80071f4: 425b negs r3, r3
80071f6: 441a add r2, r3
80071f8: 68fb ldr r3, [r7, #12]
80071fa: 60da str r2, [r3, #12]
else
{
mtCOVERAGE_TEST_MARKER();
}
if( xPosition == queueOVERWRITE )
80071fc: 687b ldr r3, [r7, #4]
80071fe: 2b02 cmp r3, #2
8007200: d105 bne.n 800720e <prvCopyDataToQueue+0xc2>
{
if( uxMessagesWaiting > ( UBaseType_t ) 0 )
8007202: 693b ldr r3, [r7, #16]
8007204: 2b00 cmp r3, #0
8007206: d002 beq.n 800720e <prvCopyDataToQueue+0xc2>
{
/* An item is not being added but overwritten, so subtract
one from the recorded number of items in the queue so when
one is added again below the number of recorded items remains
correct. */
--uxMessagesWaiting;
8007208: 693b ldr r3, [r7, #16]
800720a: 3b01 subs r3, #1
800720c: 613b str r3, [r7, #16]
{
mtCOVERAGE_TEST_MARKER();
}
}
pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
800720e: 693b ldr r3, [r7, #16]
8007210: 1c5a adds r2, r3, #1
8007212: 68fb ldr r3, [r7, #12]
8007214: 639a str r2, [r3, #56] @ 0x38
return xReturn;
8007216: 697b ldr r3, [r7, #20]
}
8007218: 4618 mov r0, r3
800721a: 3718 adds r7, #24
800721c: 46bd mov sp, r7
800721e: bd80 pop {r7, pc}
08007220 <prvUnlockQueue>:
}
}
/*-----------------------------------------------------------*/
static void prvUnlockQueue( Queue_t * const pxQueue )
{
8007220: b580 push {r7, lr}
8007222: b084 sub sp, #16
8007224: af00 add r7, sp, #0
8007226: 6078 str r0, [r7, #4]
/* The lock counts contains the number of extra data items placed or
removed from the queue while the queue was locked. When a queue is
locked items can be added or removed, but the event lists cannot be
updated. */
taskENTER_CRITICAL();
8007228: f000 fc9e bl 8007b68 <vPortEnterCritical>
{
int8_t cTxLock = pxQueue->cTxLock;
800722c: 687b ldr r3, [r7, #4]
800722e: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
8007232: 73fb strb r3, [r7, #15]
/* See if data was added to the queue while it was locked. */
while( cTxLock > queueLOCKED_UNMODIFIED )
8007234: e011 b.n 800725a <prvUnlockQueue+0x3a>
}
#else /* configUSE_QUEUE_SETS */
{
/* Tasks that are removed from the event list will get added to
the pending ready list as the scheduler is still suspended. */
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
8007236: 687b ldr r3, [r7, #4]
8007238: 6a5b ldr r3, [r3, #36] @ 0x24
800723a: 2b00 cmp r3, #0
800723c: d012 beq.n 8007264 <prvUnlockQueue+0x44>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
800723e: 687b ldr r3, [r7, #4]
8007240: 3324 adds r3, #36 @ 0x24
8007242: 4618 mov r0, r3
8007244: f000 fa64 bl 8007710 <xTaskRemoveFromEventList>
8007248: 4603 mov r3, r0
800724a: 2b00 cmp r3, #0
800724c: d001 beq.n 8007252 <prvUnlockQueue+0x32>
{
/* The task waiting has a higher priority so record that
a context switch is required. */
vTaskMissedYield();
800724e: f000 fb3d bl 80078cc <vTaskMissedYield>
break;
}
}
#endif /* configUSE_QUEUE_SETS */
--cTxLock;
8007252: 7bfb ldrb r3, [r7, #15]
8007254: 3b01 subs r3, #1
8007256: b2db uxtb r3, r3
8007258: 73fb strb r3, [r7, #15]
while( cTxLock > queueLOCKED_UNMODIFIED )
800725a: f997 300f ldrsb.w r3, [r7, #15]
800725e: 2b00 cmp r3, #0
8007260: dce9 bgt.n 8007236 <prvUnlockQueue+0x16>
8007262: e000 b.n 8007266 <prvUnlockQueue+0x46>
break;
8007264: bf00 nop
}
pxQueue->cTxLock = queueUNLOCKED;
8007266: 687b ldr r3, [r7, #4]
8007268: 22ff movs r2, #255 @ 0xff
800726a: f883 2045 strb.w r2, [r3, #69] @ 0x45
}
taskEXIT_CRITICAL();
800726e: f000 fcad bl 8007bcc <vPortExitCritical>
/* Do the same for the Rx lock. */
taskENTER_CRITICAL();
8007272: f000 fc79 bl 8007b68 <vPortEnterCritical>
{
int8_t cRxLock = pxQueue->cRxLock;
8007276: 687b ldr r3, [r7, #4]
8007278: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
800727c: 73bb strb r3, [r7, #14]
while( cRxLock > queueLOCKED_UNMODIFIED )
800727e: e011 b.n 80072a4 <prvUnlockQueue+0x84>
{
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
8007280: 687b ldr r3, [r7, #4]
8007282: 691b ldr r3, [r3, #16]
8007284: 2b00 cmp r3, #0
8007286: d012 beq.n 80072ae <prvUnlockQueue+0x8e>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
8007288: 687b ldr r3, [r7, #4]
800728a: 3310 adds r3, #16
800728c: 4618 mov r0, r3
800728e: f000 fa3f bl 8007710 <xTaskRemoveFromEventList>
8007292: 4603 mov r3, r0
8007294: 2b00 cmp r3, #0
8007296: d001 beq.n 800729c <prvUnlockQueue+0x7c>
{
vTaskMissedYield();
8007298: f000 fb18 bl 80078cc <vTaskMissedYield>
else
{
mtCOVERAGE_TEST_MARKER();
}
--cRxLock;
800729c: 7bbb ldrb r3, [r7, #14]
800729e: 3b01 subs r3, #1
80072a0: b2db uxtb r3, r3
80072a2: 73bb strb r3, [r7, #14]
while( cRxLock > queueLOCKED_UNMODIFIED )
80072a4: f997 300e ldrsb.w r3, [r7, #14]
80072a8: 2b00 cmp r3, #0
80072aa: dce9 bgt.n 8007280 <prvUnlockQueue+0x60>
80072ac: e000 b.n 80072b0 <prvUnlockQueue+0x90>
}
else
{
break;
80072ae: bf00 nop
}
}
pxQueue->cRxLock = queueUNLOCKED;
80072b0: 687b ldr r3, [r7, #4]
80072b2: 22ff movs r2, #255 @ 0xff
80072b4: f883 2044 strb.w r2, [r3, #68] @ 0x44
}
taskEXIT_CRITICAL();
80072b8: f000 fc88 bl 8007bcc <vPortExitCritical>
}
80072bc: bf00 nop
80072be: 3710 adds r7, #16
80072c0: 46bd mov sp, r7
80072c2: bd80 pop {r7, pc}
080072c4 <prvIsQueueFull>:
return xReturn;
} /*lint !e818 xQueue could not be pointer to const because it is a typedef. */
/*-----------------------------------------------------------*/
static BaseType_t prvIsQueueFull( const Queue_t *pxQueue )
{
80072c4: b580 push {r7, lr}
80072c6: b084 sub sp, #16
80072c8: af00 add r7, sp, #0
80072ca: 6078 str r0, [r7, #4]
BaseType_t xReturn;
taskENTER_CRITICAL();
80072cc: f000 fc4c bl 8007b68 <vPortEnterCritical>
{
if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
80072d0: 687b ldr r3, [r7, #4]
80072d2: 6b9a ldr r2, [r3, #56] @ 0x38
80072d4: 687b ldr r3, [r7, #4]
80072d6: 6bdb ldr r3, [r3, #60] @ 0x3c
80072d8: 429a cmp r2, r3
80072da: d102 bne.n 80072e2 <prvIsQueueFull+0x1e>
{
xReturn = pdTRUE;
80072dc: 2301 movs r3, #1
80072de: 60fb str r3, [r7, #12]
80072e0: e001 b.n 80072e6 <prvIsQueueFull+0x22>
}
else
{
xReturn = pdFALSE;
80072e2: 2300 movs r3, #0
80072e4: 60fb str r3, [r7, #12]
}
}
taskEXIT_CRITICAL();
80072e6: f000 fc71 bl 8007bcc <vPortExitCritical>
return xReturn;
80072ea: 68fb ldr r3, [r7, #12]
}
80072ec: 4618 mov r0, r3
80072ee: 3710 adds r7, #16
80072f0: 46bd mov sp, r7
80072f2: bd80 pop {r7, pc}
080072f4 <vTaskSuspendAll>:
vPortEndScheduler();
}
/*----------------------------------------------------------*/
void vTaskSuspendAll( void )
{
80072f4: b480 push {r7}
80072f6: af00 add r7, sp, #0
do not otherwise exhibit real time behaviour. */
portSOFTWARE_BARRIER();
/* The scheduler is suspended if uxSchedulerSuspended is non-zero. An increment
is used to allow calls to vTaskSuspendAll() to nest. */
++uxSchedulerSuspended;
80072f8: 4b04 ldr r3, [pc, #16] @ (800730c <vTaskSuspendAll+0x18>)
80072fa: 681b ldr r3, [r3, #0]
80072fc: 3301 adds r3, #1
80072fe: 4a03 ldr r2, [pc, #12] @ (800730c <vTaskSuspendAll+0x18>)
8007300: 6013 str r3, [r2, #0]
/* Enforces ordering for ports and optimised compilers that may otherwise place
the above increment elsewhere. */
portMEMORY_BARRIER();
}
8007302: bf00 nop
8007304: 46bd mov sp, r7
8007306: f85d 7b04 ldr.w r7, [sp], #4
800730a: 4770 bx lr
800730c: 200003bc .word 0x200003bc
08007310 <xTaskResumeAll>:
#endif /* configUSE_TICKLESS_IDLE */
/*----------------------------------------------------------*/
BaseType_t xTaskResumeAll( void )
{
8007310: b580 push {r7, lr}
8007312: b084 sub sp, #16
8007314: af00 add r7, sp, #0
TCB_t *pxTCB = NULL;
8007316: 2300 movs r3, #0
8007318: 60fb str r3, [r7, #12]
BaseType_t xAlreadyYielded = pdFALSE;
800731a: 2300 movs r3, #0
800731c: 60bb str r3, [r7, #8]
/* If uxSchedulerSuspended is zero then this function does not match a
previous call to vTaskSuspendAll(). */
configASSERT( uxSchedulerSuspended );
800731e: 4b42 ldr r3, [pc, #264] @ (8007428 <xTaskResumeAll+0x118>)
8007320: 681b ldr r3, [r3, #0]
8007322: 2b00 cmp r3, #0
8007324: d10b bne.n 800733e <xTaskResumeAll+0x2e>
__asm volatile
8007326: f04f 0350 mov.w r3, #80 @ 0x50
800732a: f383 8811 msr BASEPRI, r3
800732e: f3bf 8f6f isb sy
8007332: f3bf 8f4f dsb sy
8007336: 603b str r3, [r7, #0]
}
8007338: bf00 nop
800733a: bf00 nop
800733c: e7fd b.n 800733a <xTaskResumeAll+0x2a>
/* It is possible that an ISR caused a task to be removed from an event
list while the scheduler was suspended. If this was the case then the
removed task will have been added to the xPendingReadyList. Once the
scheduler has been resumed it is safe to move all the pending ready
tasks from this list into their appropriate ready list. */
taskENTER_CRITICAL();
800733e: f000 fc13 bl 8007b68 <vPortEnterCritical>
{
--uxSchedulerSuspended;
8007342: 4b39 ldr r3, [pc, #228] @ (8007428 <xTaskResumeAll+0x118>)
8007344: 681b ldr r3, [r3, #0]
8007346: 3b01 subs r3, #1
8007348: 4a37 ldr r2, [pc, #220] @ (8007428 <xTaskResumeAll+0x118>)
800734a: 6013 str r3, [r2, #0]
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
800734c: 4b36 ldr r3, [pc, #216] @ (8007428 <xTaskResumeAll+0x118>)
800734e: 681b ldr r3, [r3, #0]
8007350: 2b00 cmp r3, #0
8007352: d161 bne.n 8007418 <xTaskResumeAll+0x108>
{
if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
8007354: 4b35 ldr r3, [pc, #212] @ (800742c <xTaskResumeAll+0x11c>)
8007356: 681b ldr r3, [r3, #0]
8007358: 2b00 cmp r3, #0
800735a: d05d beq.n 8007418 <xTaskResumeAll+0x108>
{
/* Move any readied tasks from the pending list into the
appropriate ready list. */
while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
800735c: e02e b.n 80073bc <xTaskResumeAll+0xac>
{
pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xPendingReadyList ) ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
800735e: 4b34 ldr r3, [pc, #208] @ (8007430 <xTaskResumeAll+0x120>)
8007360: 68db ldr r3, [r3, #12]
8007362: 68db ldr r3, [r3, #12]
8007364: 60fb str r3, [r7, #12]
( void ) uxListRemove( &( pxTCB->xEventListItem ) );
8007366: 68fb ldr r3, [r7, #12]
8007368: 3318 adds r3, #24
800736a: 4618 mov r0, r3
800736c: f7ff fce5 bl 8006d3a <uxListRemove>
( void ) uxListRemove( &( pxTCB->xStateListItem ) );
8007370: 68fb ldr r3, [r7, #12]
8007372: 3304 adds r3, #4
8007374: 4618 mov r0, r3
8007376: f7ff fce0 bl 8006d3a <uxListRemove>
prvAddTaskToReadyList( pxTCB );
800737a: 68fb ldr r3, [r7, #12]
800737c: 6adb ldr r3, [r3, #44] @ 0x2c
800737e: 2201 movs r2, #1
8007380: 409a lsls r2, r3
8007382: 4b2c ldr r3, [pc, #176] @ (8007434 <xTaskResumeAll+0x124>)
8007384: 681b ldr r3, [r3, #0]
8007386: 4313 orrs r3, r2
8007388: 4a2a ldr r2, [pc, #168] @ (8007434 <xTaskResumeAll+0x124>)
800738a: 6013 str r3, [r2, #0]
800738c: 68fb ldr r3, [r7, #12]
800738e: 6ada ldr r2, [r3, #44] @ 0x2c
8007390: 4613 mov r3, r2
8007392: 009b lsls r3, r3, #2
8007394: 4413 add r3, r2
8007396: 009b lsls r3, r3, #2
8007398: 4a27 ldr r2, [pc, #156] @ (8007438 <xTaskResumeAll+0x128>)
800739a: 441a add r2, r3
800739c: 68fb ldr r3, [r7, #12]
800739e: 3304 adds r3, #4
80073a0: 4619 mov r1, r3
80073a2: 4610 mov r0, r2
80073a4: f7ff fc6c bl 8006c80 <vListInsertEnd>
/* If the moved task has a priority higher than the current
task then a yield must be performed. */
if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
80073a8: 68fb ldr r3, [r7, #12]
80073aa: 6ada ldr r2, [r3, #44] @ 0x2c
80073ac: 4b23 ldr r3, [pc, #140] @ (800743c <xTaskResumeAll+0x12c>)
80073ae: 681b ldr r3, [r3, #0]
80073b0: 6adb ldr r3, [r3, #44] @ 0x2c
80073b2: 429a cmp r2, r3
80073b4: d302 bcc.n 80073bc <xTaskResumeAll+0xac>
{
xYieldPending = pdTRUE;
80073b6: 4b22 ldr r3, [pc, #136] @ (8007440 <xTaskResumeAll+0x130>)
80073b8: 2201 movs r2, #1
80073ba: 601a str r2, [r3, #0]
while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
80073bc: 4b1c ldr r3, [pc, #112] @ (8007430 <xTaskResumeAll+0x120>)
80073be: 681b ldr r3, [r3, #0]
80073c0: 2b00 cmp r3, #0
80073c2: d1cc bne.n 800735e <xTaskResumeAll+0x4e>
{
mtCOVERAGE_TEST_MARKER();
}
}
if( pxTCB != NULL )
80073c4: 68fb ldr r3, [r7, #12]
80073c6: 2b00 cmp r3, #0
80073c8: d001 beq.n 80073ce <xTaskResumeAll+0xbe>
which may have prevented the next unblock time from being
re-calculated, in which case re-calculate it now. Mainly
important for low power tickless implementations, where
this can prevent an unnecessary exit from low power
state. */
prvResetNextTaskUnblockTime();
80073ca: f000 fa8b bl 80078e4 <prvResetNextTaskUnblockTime>
/* If any ticks occurred while the scheduler was suspended then
they should be processed now. This ensures the tick count does
not slip, and that any delayed tasks are resumed at the correct
time. */
{
TickType_t xPendedCounts = xPendedTicks; /* Non-volatile copy. */
80073ce: 4b1d ldr r3, [pc, #116] @ (8007444 <xTaskResumeAll+0x134>)
80073d0: 681b ldr r3, [r3, #0]
80073d2: 607b str r3, [r7, #4]
if( xPendedCounts > ( TickType_t ) 0U )
80073d4: 687b ldr r3, [r7, #4]
80073d6: 2b00 cmp r3, #0
80073d8: d010 beq.n 80073fc <xTaskResumeAll+0xec>
{
do
{
if( xTaskIncrementTick() != pdFALSE )
80073da: f000 f837 bl 800744c <xTaskIncrementTick>
80073de: 4603 mov r3, r0
80073e0: 2b00 cmp r3, #0
80073e2: d002 beq.n 80073ea <xTaskResumeAll+0xda>
{
xYieldPending = pdTRUE;
80073e4: 4b16 ldr r3, [pc, #88] @ (8007440 <xTaskResumeAll+0x130>)
80073e6: 2201 movs r2, #1
80073e8: 601a str r2, [r3, #0]
}
else
{
mtCOVERAGE_TEST_MARKER();
}
--xPendedCounts;
80073ea: 687b ldr r3, [r7, #4]
80073ec: 3b01 subs r3, #1
80073ee: 607b str r3, [r7, #4]
} while( xPendedCounts > ( TickType_t ) 0U );
80073f0: 687b ldr r3, [r7, #4]
80073f2: 2b00 cmp r3, #0
80073f4: d1f1 bne.n 80073da <xTaskResumeAll+0xca>
xPendedTicks = 0;
80073f6: 4b13 ldr r3, [pc, #76] @ (8007444 <xTaskResumeAll+0x134>)
80073f8: 2200 movs r2, #0
80073fa: 601a str r2, [r3, #0]
{
mtCOVERAGE_TEST_MARKER();
}
}
if( xYieldPending != pdFALSE )
80073fc: 4b10 ldr r3, [pc, #64] @ (8007440 <xTaskResumeAll+0x130>)
80073fe: 681b ldr r3, [r3, #0]
8007400: 2b00 cmp r3, #0
8007402: d009 beq.n 8007418 <xTaskResumeAll+0x108>
{
#if( configUSE_PREEMPTION != 0 )
{
xAlreadyYielded = pdTRUE;
8007404: 2301 movs r3, #1
8007406: 60bb str r3, [r7, #8]
}
#endif
taskYIELD_IF_USING_PREEMPTION();
8007408: 4b0f ldr r3, [pc, #60] @ (8007448 <xTaskResumeAll+0x138>)
800740a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
800740e: 601a str r2, [r3, #0]
8007410: f3bf 8f4f dsb sy
8007414: f3bf 8f6f isb sy
else
{
mtCOVERAGE_TEST_MARKER();
}
}
taskEXIT_CRITICAL();
8007418: f000 fbd8 bl 8007bcc <vPortExitCritical>
return xAlreadyYielded;
800741c: 68bb ldr r3, [r7, #8]
}
800741e: 4618 mov r0, r3
8007420: 3710 adds r7, #16
8007422: 46bd mov sp, r7
8007424: bd80 pop {r7, pc}
8007426: bf00 nop
8007428: 200003bc .word 0x200003bc
800742c: 2000039c .word 0x2000039c
8007430: 20000374 .word 0x20000374
8007434: 200003a4 .word 0x200003a4
8007438: 200002e0 .word 0x200002e0
800743c: 200002dc .word 0x200002dc
8007440: 200003b0 .word 0x200003b0
8007444: 200003ac .word 0x200003ac
8007448: e000ed04 .word 0xe000ed04
0800744c <xTaskIncrementTick>:
#endif /* INCLUDE_xTaskAbortDelay */
/*----------------------------------------------------------*/
BaseType_t xTaskIncrementTick( void )
{
800744c: b580 push {r7, lr}
800744e: b086 sub sp, #24
8007450: af00 add r7, sp, #0
TCB_t * pxTCB;
TickType_t xItemValue;
BaseType_t xSwitchRequired = pdFALSE;
8007452: 2300 movs r3, #0
8007454: 617b str r3, [r7, #20]
/* Called by the portable layer each time a tick interrupt occurs.
Increments the tick then checks to see if the new tick value will cause any
tasks to be unblocked. */
traceTASK_INCREMENT_TICK( xTickCount );
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
8007456: 4b4f ldr r3, [pc, #316] @ (8007594 <xTaskIncrementTick+0x148>)
8007458: 681b ldr r3, [r3, #0]
800745a: 2b00 cmp r3, #0
800745c: f040 808f bne.w 800757e <xTaskIncrementTick+0x132>
{
/* Minor optimisation. The tick count cannot change in this
block. */
const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
8007460: 4b4d ldr r3, [pc, #308] @ (8007598 <xTaskIncrementTick+0x14c>)
8007462: 681b ldr r3, [r3, #0]
8007464: 3301 adds r3, #1
8007466: 613b str r3, [r7, #16]
/* Increment the RTOS tick, switching the delayed and overflowed
delayed lists if it wraps to 0. */
xTickCount = xConstTickCount;
8007468: 4a4b ldr r2, [pc, #300] @ (8007598 <xTaskIncrementTick+0x14c>)
800746a: 693b ldr r3, [r7, #16]
800746c: 6013 str r3, [r2, #0]
if( xConstTickCount == ( TickType_t ) 0U ) /*lint !e774 'if' does not always evaluate to false as it is looking for an overflow. */
800746e: 693b ldr r3, [r7, #16]
8007470: 2b00 cmp r3, #0
8007472: d121 bne.n 80074b8 <xTaskIncrementTick+0x6c>
{
taskSWITCH_DELAYED_LISTS();
8007474: 4b49 ldr r3, [pc, #292] @ (800759c <xTaskIncrementTick+0x150>)
8007476: 681b ldr r3, [r3, #0]
8007478: 681b ldr r3, [r3, #0]
800747a: 2b00 cmp r3, #0
800747c: d00b beq.n 8007496 <xTaskIncrementTick+0x4a>
__asm volatile
800747e: f04f 0350 mov.w r3, #80 @ 0x50
8007482: f383 8811 msr BASEPRI, r3
8007486: f3bf 8f6f isb sy
800748a: f3bf 8f4f dsb sy
800748e: 603b str r3, [r7, #0]
}
8007490: bf00 nop
8007492: bf00 nop
8007494: e7fd b.n 8007492 <xTaskIncrementTick+0x46>
8007496: 4b41 ldr r3, [pc, #260] @ (800759c <xTaskIncrementTick+0x150>)
8007498: 681b ldr r3, [r3, #0]
800749a: 60fb str r3, [r7, #12]
800749c: 4b40 ldr r3, [pc, #256] @ (80075a0 <xTaskIncrementTick+0x154>)
800749e: 681b ldr r3, [r3, #0]
80074a0: 4a3e ldr r2, [pc, #248] @ (800759c <xTaskIncrementTick+0x150>)
80074a2: 6013 str r3, [r2, #0]
80074a4: 4a3e ldr r2, [pc, #248] @ (80075a0 <xTaskIncrementTick+0x154>)
80074a6: 68fb ldr r3, [r7, #12]
80074a8: 6013 str r3, [r2, #0]
80074aa: 4b3e ldr r3, [pc, #248] @ (80075a4 <xTaskIncrementTick+0x158>)
80074ac: 681b ldr r3, [r3, #0]
80074ae: 3301 adds r3, #1
80074b0: 4a3c ldr r2, [pc, #240] @ (80075a4 <xTaskIncrementTick+0x158>)
80074b2: 6013 str r3, [r2, #0]
80074b4: f000 fa16 bl 80078e4 <prvResetNextTaskUnblockTime>
/* See if this tick has made a timeout expire. Tasks are stored in
the queue in the order of their wake time - meaning once one task
has been found whose block time has not expired there is no need to
look any further down the list. */
if( xConstTickCount >= xNextTaskUnblockTime )
80074b8: 4b3b ldr r3, [pc, #236] @ (80075a8 <xTaskIncrementTick+0x15c>)
80074ba: 681b ldr r3, [r3, #0]
80074bc: 693a ldr r2, [r7, #16]
80074be: 429a cmp r2, r3
80074c0: d348 bcc.n 8007554 <xTaskIncrementTick+0x108>
{
for( ;; )
{
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
80074c2: 4b36 ldr r3, [pc, #216] @ (800759c <xTaskIncrementTick+0x150>)
80074c4: 681b ldr r3, [r3, #0]
80074c6: 681b ldr r3, [r3, #0]
80074c8: 2b00 cmp r3, #0
80074ca: d104 bne.n 80074d6 <xTaskIncrementTick+0x8a>
/* The delayed list is empty. Set xNextTaskUnblockTime
to the maximum possible value so it is extremely
unlikely that the
if( xTickCount >= xNextTaskUnblockTime ) test will pass
next time through. */
xNextTaskUnblockTime = portMAX_DELAY; /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
80074cc: 4b36 ldr r3, [pc, #216] @ (80075a8 <xTaskIncrementTick+0x15c>)
80074ce: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
80074d2: 601a str r2, [r3, #0]
break;
80074d4: e03e b.n 8007554 <xTaskIncrementTick+0x108>
{
/* The delayed list is not empty, get the value of the
item at the head of the delayed list. This is the time
at which the task at the head of the delayed list must
be removed from the Blocked state. */
pxTCB = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
80074d6: 4b31 ldr r3, [pc, #196] @ (800759c <xTaskIncrementTick+0x150>)
80074d8: 681b ldr r3, [r3, #0]
80074da: 68db ldr r3, [r3, #12]
80074dc: 68db ldr r3, [r3, #12]
80074de: 60bb str r3, [r7, #8]
xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
80074e0: 68bb ldr r3, [r7, #8]
80074e2: 685b ldr r3, [r3, #4]
80074e4: 607b str r3, [r7, #4]
if( xConstTickCount < xItemValue )
80074e6: 693a ldr r2, [r7, #16]
80074e8: 687b ldr r3, [r7, #4]
80074ea: 429a cmp r2, r3
80074ec: d203 bcs.n 80074f6 <xTaskIncrementTick+0xaa>
/* It is not time to unblock this item yet, but the
item value is the time at which the task at the head
of the blocked list must be removed from the Blocked
state - so record the item value in
xNextTaskUnblockTime. */
xNextTaskUnblockTime = xItemValue;
80074ee: 4a2e ldr r2, [pc, #184] @ (80075a8 <xTaskIncrementTick+0x15c>)
80074f0: 687b ldr r3, [r7, #4]
80074f2: 6013 str r3, [r2, #0]
break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
80074f4: e02e b.n 8007554 <xTaskIncrementTick+0x108>
{
mtCOVERAGE_TEST_MARKER();
}
/* It is time to remove the item from the Blocked state. */
( void ) uxListRemove( &( pxTCB->xStateListItem ) );
80074f6: 68bb ldr r3, [r7, #8]
80074f8: 3304 adds r3, #4
80074fa: 4618 mov r0, r3
80074fc: f7ff fc1d bl 8006d3a <uxListRemove>
/* Is the task waiting on an event also? If so remove
it from the event list. */
if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
8007500: 68bb ldr r3, [r7, #8]
8007502: 6a9b ldr r3, [r3, #40] @ 0x28
8007504: 2b00 cmp r3, #0
8007506: d004 beq.n 8007512 <xTaskIncrementTick+0xc6>
{
( void ) uxListRemove( &( pxTCB->xEventListItem ) );
8007508: 68bb ldr r3, [r7, #8]
800750a: 3318 adds r3, #24
800750c: 4618 mov r0, r3
800750e: f7ff fc14 bl 8006d3a <uxListRemove>
mtCOVERAGE_TEST_MARKER();
}
/* Place the unblocked task into the appropriate ready
list. */
prvAddTaskToReadyList( pxTCB );
8007512: 68bb ldr r3, [r7, #8]
8007514: 6adb ldr r3, [r3, #44] @ 0x2c
8007516: 2201 movs r2, #1
8007518: 409a lsls r2, r3
800751a: 4b24 ldr r3, [pc, #144] @ (80075ac <xTaskIncrementTick+0x160>)
800751c: 681b ldr r3, [r3, #0]
800751e: 4313 orrs r3, r2
8007520: 4a22 ldr r2, [pc, #136] @ (80075ac <xTaskIncrementTick+0x160>)
8007522: 6013 str r3, [r2, #0]
8007524: 68bb ldr r3, [r7, #8]
8007526: 6ada ldr r2, [r3, #44] @ 0x2c
8007528: 4613 mov r3, r2
800752a: 009b lsls r3, r3, #2
800752c: 4413 add r3, r2
800752e: 009b lsls r3, r3, #2
8007530: 4a1f ldr r2, [pc, #124] @ (80075b0 <xTaskIncrementTick+0x164>)
8007532: 441a add r2, r3
8007534: 68bb ldr r3, [r7, #8]
8007536: 3304 adds r3, #4
8007538: 4619 mov r1, r3
800753a: 4610 mov r0, r2
800753c: f7ff fba0 bl 8006c80 <vListInsertEnd>
{
/* Preemption is on, but a context switch should
only be performed if the unblocked task has a
priority that is equal to or higher than the
currently executing task. */
if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
8007540: 68bb ldr r3, [r7, #8]
8007542: 6ada ldr r2, [r3, #44] @ 0x2c
8007544: 4b1b ldr r3, [pc, #108] @ (80075b4 <xTaskIncrementTick+0x168>)
8007546: 681b ldr r3, [r3, #0]
8007548: 6adb ldr r3, [r3, #44] @ 0x2c
800754a: 429a cmp r2, r3
800754c: d3b9 bcc.n 80074c2 <xTaskIncrementTick+0x76>
{
xSwitchRequired = pdTRUE;
800754e: 2301 movs r3, #1
8007550: 617b str r3, [r7, #20]
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
8007552: e7b6 b.n 80074c2 <xTaskIncrementTick+0x76>
/* Tasks of equal priority to the currently running task will share
processing time (time slice) if preemption is on, and the application
writer has not explicitly turned time slicing off. */
#if ( ( configUSE_PREEMPTION == 1 ) && ( configUSE_TIME_SLICING == 1 ) )
{
if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ pxCurrentTCB->uxPriority ] ) ) > ( UBaseType_t ) 1 )
8007554: 4b17 ldr r3, [pc, #92] @ (80075b4 <xTaskIncrementTick+0x168>)
8007556: 681b ldr r3, [r3, #0]
8007558: 6ada ldr r2, [r3, #44] @ 0x2c
800755a: 4915 ldr r1, [pc, #84] @ (80075b0 <xTaskIncrementTick+0x164>)
800755c: 4613 mov r3, r2
800755e: 009b lsls r3, r3, #2
8007560: 4413 add r3, r2
8007562: 009b lsls r3, r3, #2
8007564: 440b add r3, r1
8007566: 681b ldr r3, [r3, #0]
8007568: 2b01 cmp r3, #1
800756a: d901 bls.n 8007570 <xTaskIncrementTick+0x124>
{
xSwitchRequired = pdTRUE;
800756c: 2301 movs r3, #1
800756e: 617b str r3, [r7, #20]
}
#endif /* configUSE_TICK_HOOK */
#if ( configUSE_PREEMPTION == 1 )
{
if( xYieldPending != pdFALSE )
8007570: 4b11 ldr r3, [pc, #68] @ (80075b8 <xTaskIncrementTick+0x16c>)
8007572: 681b ldr r3, [r3, #0]
8007574: 2b00 cmp r3, #0
8007576: d007 beq.n 8007588 <xTaskIncrementTick+0x13c>
{
xSwitchRequired = pdTRUE;
8007578: 2301 movs r3, #1
800757a: 617b str r3, [r7, #20]
800757c: e004 b.n 8007588 <xTaskIncrementTick+0x13c>
}
#endif /* configUSE_PREEMPTION */
}
else
{
++xPendedTicks;
800757e: 4b0f ldr r3, [pc, #60] @ (80075bc <xTaskIncrementTick+0x170>)
8007580: 681b ldr r3, [r3, #0]
8007582: 3301 adds r3, #1
8007584: 4a0d ldr r2, [pc, #52] @ (80075bc <xTaskIncrementTick+0x170>)
8007586: 6013 str r3, [r2, #0]
vApplicationTickHook();
}
#endif
}
return xSwitchRequired;
8007588: 697b ldr r3, [r7, #20]
}
800758a: 4618 mov r0, r3
800758c: 3718 adds r7, #24
800758e: 46bd mov sp, r7
8007590: bd80 pop {r7, pc}
8007592: bf00 nop
8007594: 200003bc .word 0x200003bc
8007598: 200003a0 .word 0x200003a0
800759c: 2000036c .word 0x2000036c
80075a0: 20000370 .word 0x20000370
80075a4: 200003b4 .word 0x200003b4
80075a8: 200003b8 .word 0x200003b8
80075ac: 200003a4 .word 0x200003a4
80075b0: 200002e0 .word 0x200002e0
80075b4: 200002dc .word 0x200002dc
80075b8: 200003b0 .word 0x200003b0
80075bc: 200003ac .word 0x200003ac
080075c0 <vTaskSwitchContext>:
#endif /* configUSE_APPLICATION_TASK_TAG */
/*-----------------------------------------------------------*/
void vTaskSwitchContext( void )
{
80075c0: b580 push {r7, lr}
80075c2: b088 sub sp, #32
80075c4: af00 add r7, sp, #0
if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
80075c6: 4b3a ldr r3, [pc, #232] @ (80076b0 <vTaskSwitchContext+0xf0>)
80075c8: 681b ldr r3, [r3, #0]
80075ca: 2b00 cmp r3, #0
80075cc: d003 beq.n 80075d6 <vTaskSwitchContext+0x16>
{
/* The scheduler is currently suspended - do not allow a context
switch. */
xYieldPending = pdTRUE;
80075ce: 4b39 ldr r3, [pc, #228] @ (80076b4 <vTaskSwitchContext+0xf4>)
80075d0: 2201 movs r2, #1
80075d2: 601a str r2, [r3, #0]
for additional information. */
_impure_ptr = &( pxCurrentTCB->xNewLib_reent );
}
#endif /* configUSE_NEWLIB_REENTRANT */
}
}
80075d4: e067 b.n 80076a6 <vTaskSwitchContext+0xe6>
xYieldPending = pdFALSE;
80075d6: 4b37 ldr r3, [pc, #220] @ (80076b4 <vTaskSwitchContext+0xf4>)
80075d8: 2200 movs r2, #0
80075da: 601a str r2, [r3, #0]
taskCHECK_FOR_STACK_OVERFLOW();
80075dc: 4b36 ldr r3, [pc, #216] @ (80076b8 <vTaskSwitchContext+0xf8>)
80075de: 681b ldr r3, [r3, #0]
80075e0: 6b1b ldr r3, [r3, #48] @ 0x30
80075e2: 61fb str r3, [r7, #28]
80075e4: f04f 33a5 mov.w r3, #2779096485 @ 0xa5a5a5a5
80075e8: 61bb str r3, [r7, #24]
80075ea: 69fb ldr r3, [r7, #28]
80075ec: 681b ldr r3, [r3, #0]
80075ee: 69ba ldr r2, [r7, #24]
80075f0: 429a cmp r2, r3
80075f2: d111 bne.n 8007618 <vTaskSwitchContext+0x58>
80075f4: 69fb ldr r3, [r7, #28]
80075f6: 3304 adds r3, #4
80075f8: 681b ldr r3, [r3, #0]
80075fa: 69ba ldr r2, [r7, #24]
80075fc: 429a cmp r2, r3
80075fe: d10b bne.n 8007618 <vTaskSwitchContext+0x58>
8007600: 69fb ldr r3, [r7, #28]
8007602: 3308 adds r3, #8
8007604: 681b ldr r3, [r3, #0]
8007606: 69ba ldr r2, [r7, #24]
8007608: 429a cmp r2, r3
800760a: d105 bne.n 8007618 <vTaskSwitchContext+0x58>
800760c: 69fb ldr r3, [r7, #28]
800760e: 330c adds r3, #12
8007610: 681b ldr r3, [r3, #0]
8007612: 69ba ldr r2, [r7, #24]
8007614: 429a cmp r2, r3
8007616: d008 beq.n 800762a <vTaskSwitchContext+0x6a>
8007618: 4b27 ldr r3, [pc, #156] @ (80076b8 <vTaskSwitchContext+0xf8>)
800761a: 681a ldr r2, [r3, #0]
800761c: 4b26 ldr r3, [pc, #152] @ (80076b8 <vTaskSwitchContext+0xf8>)
800761e: 681b ldr r3, [r3, #0]
8007620: 3334 adds r3, #52 @ 0x34
8007622: 4619 mov r1, r3
8007624: 4610 mov r0, r2
8007626: f7f8 ffaf bl 8000588 <vApplicationStackOverflowHook>
taskSELECT_HIGHEST_PRIORITY_TASK(); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
800762a: 4b24 ldr r3, [pc, #144] @ (80076bc <vTaskSwitchContext+0xfc>)
800762c: 681b ldr r3, [r3, #0]
800762e: 60fb str r3, [r7, #12]
__asm volatile ( "clz %0, %1" : "=r" ( ucReturn ) : "r" ( ulBitmap ) : "memory" );
8007630: 68fb ldr r3, [r7, #12]
8007632: fab3 f383 clz r3, r3
8007636: 72fb strb r3, [r7, #11]
return ucReturn;
8007638: 7afb ldrb r3, [r7, #11]
800763a: f1c3 031f rsb r3, r3, #31
800763e: 617b str r3, [r7, #20]
8007640: 491f ldr r1, [pc, #124] @ (80076c0 <vTaskSwitchContext+0x100>)
8007642: 697a ldr r2, [r7, #20]
8007644: 4613 mov r3, r2
8007646: 009b lsls r3, r3, #2
8007648: 4413 add r3, r2
800764a: 009b lsls r3, r3, #2
800764c: 440b add r3, r1
800764e: 681b ldr r3, [r3, #0]
8007650: 2b00 cmp r3, #0
8007652: d10b bne.n 800766c <vTaskSwitchContext+0xac>
__asm volatile
8007654: f04f 0350 mov.w r3, #80 @ 0x50
8007658: f383 8811 msr BASEPRI, r3
800765c: f3bf 8f6f isb sy
8007660: f3bf 8f4f dsb sy
8007664: 607b str r3, [r7, #4]
}
8007666: bf00 nop
8007668: bf00 nop
800766a: e7fd b.n 8007668 <vTaskSwitchContext+0xa8>
800766c: 697a ldr r2, [r7, #20]
800766e: 4613 mov r3, r2
8007670: 009b lsls r3, r3, #2
8007672: 4413 add r3, r2
8007674: 009b lsls r3, r3, #2
8007676: 4a12 ldr r2, [pc, #72] @ (80076c0 <vTaskSwitchContext+0x100>)
8007678: 4413 add r3, r2
800767a: 613b str r3, [r7, #16]
800767c: 693b ldr r3, [r7, #16]
800767e: 685b ldr r3, [r3, #4]
8007680: 685a ldr r2, [r3, #4]
8007682: 693b ldr r3, [r7, #16]
8007684: 605a str r2, [r3, #4]
8007686: 693b ldr r3, [r7, #16]
8007688: 685a ldr r2, [r3, #4]
800768a: 693b ldr r3, [r7, #16]
800768c: 3308 adds r3, #8
800768e: 429a cmp r2, r3
8007690: d104 bne.n 800769c <vTaskSwitchContext+0xdc>
8007692: 693b ldr r3, [r7, #16]
8007694: 685b ldr r3, [r3, #4]
8007696: 685a ldr r2, [r3, #4]
8007698: 693b ldr r3, [r7, #16]
800769a: 605a str r2, [r3, #4]
800769c: 693b ldr r3, [r7, #16]
800769e: 685b ldr r3, [r3, #4]
80076a0: 68db ldr r3, [r3, #12]
80076a2: 4a05 ldr r2, [pc, #20] @ (80076b8 <vTaskSwitchContext+0xf8>)
80076a4: 6013 str r3, [r2, #0]
}
80076a6: bf00 nop
80076a8: 3720 adds r7, #32
80076aa: 46bd mov sp, r7
80076ac: bd80 pop {r7, pc}
80076ae: bf00 nop
80076b0: 200003bc .word 0x200003bc
80076b4: 200003b0 .word 0x200003b0
80076b8: 200002dc .word 0x200002dc
80076bc: 200003a4 .word 0x200003a4
80076c0: 200002e0 .word 0x200002e0
080076c4 <vTaskPlaceOnEventList>:
/*-----------------------------------------------------------*/
void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
{
80076c4: b580 push {r7, lr}
80076c6: b084 sub sp, #16
80076c8: af00 add r7, sp, #0
80076ca: 6078 str r0, [r7, #4]
80076cc: 6039 str r1, [r7, #0]
configASSERT( pxEventList );
80076ce: 687b ldr r3, [r7, #4]
80076d0: 2b00 cmp r3, #0
80076d2: d10b bne.n 80076ec <vTaskPlaceOnEventList+0x28>
__asm volatile
80076d4: f04f 0350 mov.w r3, #80 @ 0x50
80076d8: f383 8811 msr BASEPRI, r3
80076dc: f3bf 8f6f isb sy
80076e0: f3bf 8f4f dsb sy
80076e4: 60fb str r3, [r7, #12]
}
80076e6: bf00 nop
80076e8: bf00 nop
80076ea: e7fd b.n 80076e8 <vTaskPlaceOnEventList+0x24>
/* Place the event list item of the TCB in the appropriate event list.
This is placed in the list in priority order so the highest priority task
is the first to be woken by the event. The queue that contains the event
list is locked, preventing simultaneous access from interrupts. */
vListInsert( pxEventList, &( pxCurrentTCB->xEventListItem ) );
80076ec: 4b07 ldr r3, [pc, #28] @ (800770c <vTaskPlaceOnEventList+0x48>)
80076ee: 681b ldr r3, [r3, #0]
80076f0: 3318 adds r3, #24
80076f2: 4619 mov r1, r3
80076f4: 6878 ldr r0, [r7, #4]
80076f6: f7ff fae7 bl 8006cc8 <vListInsert>
prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
80076fa: 2101 movs r1, #1
80076fc: 6838 ldr r0, [r7, #0]
80076fe: f000 f9b7 bl 8007a70 <prvAddCurrentTaskToDelayedList>
}
8007702: bf00 nop
8007704: 3710 adds r7, #16
8007706: 46bd mov sp, r7
8007708: bd80 pop {r7, pc}
800770a: bf00 nop
800770c: 200002dc .word 0x200002dc
08007710 <xTaskRemoveFromEventList>:
#endif /* configUSE_TIMERS */
/*-----------------------------------------------------------*/
BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
{
8007710: b580 push {r7, lr}
8007712: b086 sub sp, #24
8007714: af00 add r7, sp, #0
8007716: 6078 str r0, [r7, #4]
get called - the lock count on the queue will get modified instead. This
means exclusive access to the event list is guaranteed here.
This function assumes that a check has already been made to ensure that
pxEventList is not empty. */
pxUnblockedTCB = listGET_OWNER_OF_HEAD_ENTRY( pxEventList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
8007718: 687b ldr r3, [r7, #4]
800771a: 68db ldr r3, [r3, #12]
800771c: 68db ldr r3, [r3, #12]
800771e: 613b str r3, [r7, #16]
configASSERT( pxUnblockedTCB );
8007720: 693b ldr r3, [r7, #16]
8007722: 2b00 cmp r3, #0
8007724: d10b bne.n 800773e <xTaskRemoveFromEventList+0x2e>
__asm volatile
8007726: f04f 0350 mov.w r3, #80 @ 0x50
800772a: f383 8811 msr BASEPRI, r3
800772e: f3bf 8f6f isb sy
8007732: f3bf 8f4f dsb sy
8007736: 60fb str r3, [r7, #12]
}
8007738: bf00 nop
800773a: bf00 nop
800773c: e7fd b.n 800773a <xTaskRemoveFromEventList+0x2a>
( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
800773e: 693b ldr r3, [r7, #16]
8007740: 3318 adds r3, #24
8007742: 4618 mov r0, r3
8007744: f7ff faf9 bl 8006d3a <uxListRemove>
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
8007748: 4b1d ldr r3, [pc, #116] @ (80077c0 <xTaskRemoveFromEventList+0xb0>)
800774a: 681b ldr r3, [r3, #0]
800774c: 2b00 cmp r3, #0
800774e: d11c bne.n 800778a <xTaskRemoveFromEventList+0x7a>
{
( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
8007750: 693b ldr r3, [r7, #16]
8007752: 3304 adds r3, #4
8007754: 4618 mov r0, r3
8007756: f7ff faf0 bl 8006d3a <uxListRemove>
prvAddTaskToReadyList( pxUnblockedTCB );
800775a: 693b ldr r3, [r7, #16]
800775c: 6adb ldr r3, [r3, #44] @ 0x2c
800775e: 2201 movs r2, #1
8007760: 409a lsls r2, r3
8007762: 4b18 ldr r3, [pc, #96] @ (80077c4 <xTaskRemoveFromEventList+0xb4>)
8007764: 681b ldr r3, [r3, #0]
8007766: 4313 orrs r3, r2
8007768: 4a16 ldr r2, [pc, #88] @ (80077c4 <xTaskRemoveFromEventList+0xb4>)
800776a: 6013 str r3, [r2, #0]
800776c: 693b ldr r3, [r7, #16]
800776e: 6ada ldr r2, [r3, #44] @ 0x2c
8007770: 4613 mov r3, r2
8007772: 009b lsls r3, r3, #2
8007774: 4413 add r3, r2
8007776: 009b lsls r3, r3, #2
8007778: 4a13 ldr r2, [pc, #76] @ (80077c8 <xTaskRemoveFromEventList+0xb8>)
800777a: 441a add r2, r3
800777c: 693b ldr r3, [r7, #16]
800777e: 3304 adds r3, #4
8007780: 4619 mov r1, r3
8007782: 4610 mov r0, r2
8007784: f7ff fa7c bl 8006c80 <vListInsertEnd>
8007788: e005 b.n 8007796 <xTaskRemoveFromEventList+0x86>
}
else
{
/* The delayed and ready lists cannot be accessed, so hold this task
pending until the scheduler is resumed. */
vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
800778a: 693b ldr r3, [r7, #16]
800778c: 3318 adds r3, #24
800778e: 4619 mov r1, r3
8007790: 480e ldr r0, [pc, #56] @ (80077cc <xTaskRemoveFromEventList+0xbc>)
8007792: f7ff fa75 bl 8006c80 <vListInsertEnd>
}
if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
8007796: 693b ldr r3, [r7, #16]
8007798: 6ada ldr r2, [r3, #44] @ 0x2c
800779a: 4b0d ldr r3, [pc, #52] @ (80077d0 <xTaskRemoveFromEventList+0xc0>)
800779c: 681b ldr r3, [r3, #0]
800779e: 6adb ldr r3, [r3, #44] @ 0x2c
80077a0: 429a cmp r2, r3
80077a2: d905 bls.n 80077b0 <xTaskRemoveFromEventList+0xa0>
{
/* Return true if the task removed from the event list has a higher
priority than the calling task. This allows the calling task to know if
it should force a context switch now. */
xReturn = pdTRUE;
80077a4: 2301 movs r3, #1
80077a6: 617b str r3, [r7, #20]
/* Mark that a yield is pending in case the user is not using the
"xHigherPriorityTaskWoken" parameter to an ISR safe FreeRTOS function. */
xYieldPending = pdTRUE;
80077a8: 4b0a ldr r3, [pc, #40] @ (80077d4 <xTaskRemoveFromEventList+0xc4>)
80077aa: 2201 movs r2, #1
80077ac: 601a str r2, [r3, #0]
80077ae: e001 b.n 80077b4 <xTaskRemoveFromEventList+0xa4>
}
else
{
xReturn = pdFALSE;
80077b0: 2300 movs r3, #0
80077b2: 617b str r3, [r7, #20]
}
return xReturn;
80077b4: 697b ldr r3, [r7, #20]
}
80077b6: 4618 mov r0, r3
80077b8: 3718 adds r7, #24
80077ba: 46bd mov sp, r7
80077bc: bd80 pop {r7, pc}
80077be: bf00 nop
80077c0: 200003bc .word 0x200003bc
80077c4: 200003a4 .word 0x200003a4
80077c8: 200002e0 .word 0x200002e0
80077cc: 20000374 .word 0x20000374
80077d0: 200002dc .word 0x200002dc
80077d4: 200003b0 .word 0x200003b0
080077d8 <vTaskInternalSetTimeOutState>:
taskEXIT_CRITICAL();
}
/*-----------------------------------------------------------*/
void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
{
80077d8: b480 push {r7}
80077da: b083 sub sp, #12
80077dc: af00 add r7, sp, #0
80077de: 6078 str r0, [r7, #4]
/* For internal use only as it does not use a critical section. */
pxTimeOut->xOverflowCount = xNumOfOverflows;
80077e0: 4b06 ldr r3, [pc, #24] @ (80077fc <vTaskInternalSetTimeOutState+0x24>)
80077e2: 681a ldr r2, [r3, #0]
80077e4: 687b ldr r3, [r7, #4]
80077e6: 601a str r2, [r3, #0]
pxTimeOut->xTimeOnEntering = xTickCount;
80077e8: 4b05 ldr r3, [pc, #20] @ (8007800 <vTaskInternalSetTimeOutState+0x28>)
80077ea: 681a ldr r2, [r3, #0]
80077ec: 687b ldr r3, [r7, #4]
80077ee: 605a str r2, [r3, #4]
}
80077f0: bf00 nop
80077f2: 370c adds r7, #12
80077f4: 46bd mov sp, r7
80077f6: f85d 7b04 ldr.w r7, [sp], #4
80077fa: 4770 bx lr
80077fc: 200003b4 .word 0x200003b4
8007800: 200003a0 .word 0x200003a0
08007804 <xTaskCheckForTimeOut>:
/*-----------------------------------------------------------*/
BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
{
8007804: b580 push {r7, lr}
8007806: b088 sub sp, #32
8007808: af00 add r7, sp, #0
800780a: 6078 str r0, [r7, #4]
800780c: 6039 str r1, [r7, #0]
BaseType_t xReturn;
configASSERT( pxTimeOut );
800780e: 687b ldr r3, [r7, #4]
8007810: 2b00 cmp r3, #0
8007812: d10b bne.n 800782c <xTaskCheckForTimeOut+0x28>
__asm volatile
8007814: f04f 0350 mov.w r3, #80 @ 0x50
8007818: f383 8811 msr BASEPRI, r3
800781c: f3bf 8f6f isb sy
8007820: f3bf 8f4f dsb sy
8007824: 613b str r3, [r7, #16]
}
8007826: bf00 nop
8007828: bf00 nop
800782a: e7fd b.n 8007828 <xTaskCheckForTimeOut+0x24>
configASSERT( pxTicksToWait );
800782c: 683b ldr r3, [r7, #0]
800782e: 2b00 cmp r3, #0
8007830: d10b bne.n 800784a <xTaskCheckForTimeOut+0x46>
__asm volatile
8007832: f04f 0350 mov.w r3, #80 @ 0x50
8007836: f383 8811 msr BASEPRI, r3
800783a: f3bf 8f6f isb sy
800783e: f3bf 8f4f dsb sy
8007842: 60fb str r3, [r7, #12]
}
8007844: bf00 nop
8007846: bf00 nop
8007848: e7fd b.n 8007846 <xTaskCheckForTimeOut+0x42>
taskENTER_CRITICAL();
800784a: f000 f98d bl 8007b68 <vPortEnterCritical>
{
/* Minor optimisation. The tick count cannot change in this block. */
const TickType_t xConstTickCount = xTickCount;
800784e: 4b1d ldr r3, [pc, #116] @ (80078c4 <xTaskCheckForTimeOut+0xc0>)
8007850: 681b ldr r3, [r3, #0]
8007852: 61bb str r3, [r7, #24]
const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
8007854: 687b ldr r3, [r7, #4]
8007856: 685b ldr r3, [r3, #4]
8007858: 69ba ldr r2, [r7, #24]
800785a: 1ad3 subs r3, r2, r3
800785c: 617b str r3, [r7, #20]
}
else
#endif
#if ( INCLUDE_vTaskSuspend == 1 )
if( *pxTicksToWait == portMAX_DELAY )
800785e: 683b ldr r3, [r7, #0]
8007860: 681b ldr r3, [r3, #0]
8007862: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
8007866: d102 bne.n 800786e <xTaskCheckForTimeOut+0x6a>
{
/* If INCLUDE_vTaskSuspend is set to 1 and the block time
specified is the maximum block time then the task should block
indefinitely, and therefore never time out. */
xReturn = pdFALSE;
8007868: 2300 movs r3, #0
800786a: 61fb str r3, [r7, #28]
800786c: e023 b.n 80078b6 <xTaskCheckForTimeOut+0xb2>
}
else
#endif
if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
800786e: 687b ldr r3, [r7, #4]
8007870: 681a ldr r2, [r3, #0]
8007872: 4b15 ldr r3, [pc, #84] @ (80078c8 <xTaskCheckForTimeOut+0xc4>)
8007874: 681b ldr r3, [r3, #0]
8007876: 429a cmp r2, r3
8007878: d007 beq.n 800788a <xTaskCheckForTimeOut+0x86>
800787a: 687b ldr r3, [r7, #4]
800787c: 685b ldr r3, [r3, #4]
800787e: 69ba ldr r2, [r7, #24]
8007880: 429a cmp r2, r3
8007882: d302 bcc.n 800788a <xTaskCheckForTimeOut+0x86>
/* The tick count is greater than the time at which
vTaskSetTimeout() was called, but has also overflowed since
vTaskSetTimeOut() was called. It must have wrapped all the way
around and gone past again. This passed since vTaskSetTimeout()
was called. */
xReturn = pdTRUE;
8007884: 2301 movs r3, #1
8007886: 61fb str r3, [r7, #28]
8007888: e015 b.n 80078b6 <xTaskCheckForTimeOut+0xb2>
}
else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
800788a: 683b ldr r3, [r7, #0]
800788c: 681b ldr r3, [r3, #0]
800788e: 697a ldr r2, [r7, #20]
8007890: 429a cmp r2, r3
8007892: d20b bcs.n 80078ac <xTaskCheckForTimeOut+0xa8>
{
/* Not a genuine timeout. Adjust parameters for time remaining. */
*pxTicksToWait -= xElapsedTime;
8007894: 683b ldr r3, [r7, #0]
8007896: 681a ldr r2, [r3, #0]
8007898: 697b ldr r3, [r7, #20]
800789a: 1ad2 subs r2, r2, r3
800789c: 683b ldr r3, [r7, #0]
800789e: 601a str r2, [r3, #0]
vTaskInternalSetTimeOutState( pxTimeOut );
80078a0: 6878 ldr r0, [r7, #4]
80078a2: f7ff ff99 bl 80077d8 <vTaskInternalSetTimeOutState>
xReturn = pdFALSE;
80078a6: 2300 movs r3, #0
80078a8: 61fb str r3, [r7, #28]
80078aa: e004 b.n 80078b6 <xTaskCheckForTimeOut+0xb2>
}
else
{
*pxTicksToWait = 0;
80078ac: 683b ldr r3, [r7, #0]
80078ae: 2200 movs r2, #0
80078b0: 601a str r2, [r3, #0]
xReturn = pdTRUE;
80078b2: 2301 movs r3, #1
80078b4: 61fb str r3, [r7, #28]
}
}
taskEXIT_CRITICAL();
80078b6: f000 f989 bl 8007bcc <vPortExitCritical>
return xReturn;
80078ba: 69fb ldr r3, [r7, #28]
}
80078bc: 4618 mov r0, r3
80078be: 3720 adds r7, #32
80078c0: 46bd mov sp, r7
80078c2: bd80 pop {r7, pc}
80078c4: 200003a0 .word 0x200003a0
80078c8: 200003b4 .word 0x200003b4
080078cc <vTaskMissedYield>:
/*-----------------------------------------------------------*/
void vTaskMissedYield( void )
{
80078cc: b480 push {r7}
80078ce: af00 add r7, sp, #0
xYieldPending = pdTRUE;
80078d0: 4b03 ldr r3, [pc, #12] @ (80078e0 <vTaskMissedYield+0x14>)
80078d2: 2201 movs r2, #1
80078d4: 601a str r2, [r3, #0]
}
80078d6: bf00 nop
80078d8: 46bd mov sp, r7
80078da: f85d 7b04 ldr.w r7, [sp], #4
80078de: 4770 bx lr
80078e0: 200003b0 .word 0x200003b0
080078e4 <prvResetNextTaskUnblockTime>:
#endif /* INCLUDE_vTaskDelete */
/*-----------------------------------------------------------*/
static void prvResetNextTaskUnblockTime( void )
{
80078e4: b480 push {r7}
80078e6: b083 sub sp, #12
80078e8: af00 add r7, sp, #0
TCB_t *pxTCB;
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
80078ea: 4b0c ldr r3, [pc, #48] @ (800791c <prvResetNextTaskUnblockTime+0x38>)
80078ec: 681b ldr r3, [r3, #0]
80078ee: 681b ldr r3, [r3, #0]
80078f0: 2b00 cmp r3, #0
80078f2: d104 bne.n 80078fe <prvResetNextTaskUnblockTime+0x1a>
{
/* The new current delayed list is empty. Set xNextTaskUnblockTime to
the maximum possible value so it is extremely unlikely that the
if( xTickCount >= xNextTaskUnblockTime ) test will pass until
there is an item in the delayed list. */
xNextTaskUnblockTime = portMAX_DELAY;
80078f4: 4b0a ldr r3, [pc, #40] @ (8007920 <prvResetNextTaskUnblockTime+0x3c>)
80078f6: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
80078fa: 601a str r2, [r3, #0]
which the task at the head of the delayed list should be removed
from the Blocked state. */
( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
}
}
80078fc: e008 b.n 8007910 <prvResetNextTaskUnblockTime+0x2c>
( pxTCB ) = listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList ); /*lint !e9079 void * is used as this macro is used with timers and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
80078fe: 4b07 ldr r3, [pc, #28] @ (800791c <prvResetNextTaskUnblockTime+0x38>)
8007900: 681b ldr r3, [r3, #0]
8007902: 68db ldr r3, [r3, #12]
8007904: 68db ldr r3, [r3, #12]
8007906: 607b str r3, [r7, #4]
xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
8007908: 687b ldr r3, [r7, #4]
800790a: 685b ldr r3, [r3, #4]
800790c: 4a04 ldr r2, [pc, #16] @ (8007920 <prvResetNextTaskUnblockTime+0x3c>)
800790e: 6013 str r3, [r2, #0]
}
8007910: bf00 nop
8007912: 370c adds r7, #12
8007914: 46bd mov sp, r7
8007916: f85d 7b04 ldr.w r7, [sp], #4
800791a: 4770 bx lr
800791c: 2000036c .word 0x2000036c
8007920: 200003b8 .word 0x200003b8
08007924 <xTaskGetSchedulerState>:
/*-----------------------------------------------------------*/
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
BaseType_t xTaskGetSchedulerState( void )
{
8007924: b480 push {r7}
8007926: b083 sub sp, #12
8007928: af00 add r7, sp, #0
BaseType_t xReturn;
if( xSchedulerRunning == pdFALSE )
800792a: 4b0b ldr r3, [pc, #44] @ (8007958 <xTaskGetSchedulerState+0x34>)
800792c: 681b ldr r3, [r3, #0]
800792e: 2b00 cmp r3, #0
8007930: d102 bne.n 8007938 <xTaskGetSchedulerState+0x14>
{
xReturn = taskSCHEDULER_NOT_STARTED;
8007932: 2301 movs r3, #1
8007934: 607b str r3, [r7, #4]
8007936: e008 b.n 800794a <xTaskGetSchedulerState+0x26>
}
else
{
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
8007938: 4b08 ldr r3, [pc, #32] @ (800795c <xTaskGetSchedulerState+0x38>)
800793a: 681b ldr r3, [r3, #0]
800793c: 2b00 cmp r3, #0
800793e: d102 bne.n 8007946 <xTaskGetSchedulerState+0x22>
{
xReturn = taskSCHEDULER_RUNNING;
8007940: 2302 movs r3, #2
8007942: 607b str r3, [r7, #4]
8007944: e001 b.n 800794a <xTaskGetSchedulerState+0x26>
}
else
{
xReturn = taskSCHEDULER_SUSPENDED;
8007946: 2300 movs r3, #0
8007948: 607b str r3, [r7, #4]
}
}
return xReturn;
800794a: 687b ldr r3, [r7, #4]
}
800794c: 4618 mov r0, r3
800794e: 370c adds r7, #12
8007950: 46bd mov sp, r7
8007952: f85d 7b04 ldr.w r7, [sp], #4
8007956: 4770 bx lr
8007958: 200003a8 .word 0x200003a8
800795c: 200003bc .word 0x200003bc
08007960 <xTaskPriorityDisinherit>:
/*-----------------------------------------------------------*/
#if ( configUSE_MUTEXES == 1 )
BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
{
8007960: b580 push {r7, lr}
8007962: b086 sub sp, #24
8007964: af00 add r7, sp, #0
8007966: 6078 str r0, [r7, #4]
TCB_t * const pxTCB = pxMutexHolder;
8007968: 687b ldr r3, [r7, #4]
800796a: 613b str r3, [r7, #16]
BaseType_t xReturn = pdFALSE;
800796c: 2300 movs r3, #0
800796e: 617b str r3, [r7, #20]
if( pxMutexHolder != NULL )
8007970: 687b ldr r3, [r7, #4]
8007972: 2b00 cmp r3, #0
8007974: d070 beq.n 8007a58 <xTaskPriorityDisinherit+0xf8>
{
/* A task can only have an inherited priority if it holds the mutex.
If the mutex is held by a task then it cannot be given from an
interrupt, and if a mutex is given by the holding task then it must
be the running state task. */
configASSERT( pxTCB == pxCurrentTCB );
8007976: 4b3b ldr r3, [pc, #236] @ (8007a64 <xTaskPriorityDisinherit+0x104>)
8007978: 681b ldr r3, [r3, #0]
800797a: 693a ldr r2, [r7, #16]
800797c: 429a cmp r2, r3
800797e: d00b beq.n 8007998 <xTaskPriorityDisinherit+0x38>
__asm volatile
8007980: f04f 0350 mov.w r3, #80 @ 0x50
8007984: f383 8811 msr BASEPRI, r3
8007988: f3bf 8f6f isb sy
800798c: f3bf 8f4f dsb sy
8007990: 60fb str r3, [r7, #12]
}
8007992: bf00 nop
8007994: bf00 nop
8007996: e7fd b.n 8007994 <xTaskPriorityDisinherit+0x34>
configASSERT( pxTCB->uxMutexesHeld );
8007998: 693b ldr r3, [r7, #16]
800799a: 6c9b ldr r3, [r3, #72] @ 0x48
800799c: 2b00 cmp r3, #0
800799e: d10b bne.n 80079b8 <xTaskPriorityDisinherit+0x58>
__asm volatile
80079a0: f04f 0350 mov.w r3, #80 @ 0x50
80079a4: f383 8811 msr BASEPRI, r3
80079a8: f3bf 8f6f isb sy
80079ac: f3bf 8f4f dsb sy
80079b0: 60bb str r3, [r7, #8]
}
80079b2: bf00 nop
80079b4: bf00 nop
80079b6: e7fd b.n 80079b4 <xTaskPriorityDisinherit+0x54>
( pxTCB->uxMutexesHeld )--;
80079b8: 693b ldr r3, [r7, #16]
80079ba: 6c9b ldr r3, [r3, #72] @ 0x48
80079bc: 1e5a subs r2, r3, #1
80079be: 693b ldr r3, [r7, #16]
80079c0: 649a str r2, [r3, #72] @ 0x48
/* Has the holder of the mutex inherited the priority of another
task? */
if( pxTCB->uxPriority != pxTCB->uxBasePriority )
80079c2: 693b ldr r3, [r7, #16]
80079c4: 6ada ldr r2, [r3, #44] @ 0x2c
80079c6: 693b ldr r3, [r7, #16]
80079c8: 6c5b ldr r3, [r3, #68] @ 0x44
80079ca: 429a cmp r2, r3
80079cc: d044 beq.n 8007a58 <xTaskPriorityDisinherit+0xf8>
{
/* Only disinherit if no other mutexes are held. */
if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
80079ce: 693b ldr r3, [r7, #16]
80079d0: 6c9b ldr r3, [r3, #72] @ 0x48
80079d2: 2b00 cmp r3, #0
80079d4: d140 bne.n 8007a58 <xTaskPriorityDisinherit+0xf8>
/* A task can only have an inherited priority if it holds
the mutex. If the mutex is held by a task then it cannot be
given from an interrupt, and if a mutex is given by the
holding task then it must be the running state task. Remove
the holding task from the ready/delayed list. */
if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
80079d6: 693b ldr r3, [r7, #16]
80079d8: 3304 adds r3, #4
80079da: 4618 mov r0, r3
80079dc: f7ff f9ad bl 8006d3a <uxListRemove>
80079e0: 4603 mov r3, r0
80079e2: 2b00 cmp r3, #0
80079e4: d115 bne.n 8007a12 <xTaskPriorityDisinherit+0xb2>
{
taskRESET_READY_PRIORITY( pxTCB->uxPriority );
80079e6: 693b ldr r3, [r7, #16]
80079e8: 6ada ldr r2, [r3, #44] @ 0x2c
80079ea: 491f ldr r1, [pc, #124] @ (8007a68 <xTaskPriorityDisinherit+0x108>)
80079ec: 4613 mov r3, r2
80079ee: 009b lsls r3, r3, #2
80079f0: 4413 add r3, r2
80079f2: 009b lsls r3, r3, #2
80079f4: 440b add r3, r1
80079f6: 681b ldr r3, [r3, #0]
80079f8: 2b00 cmp r3, #0
80079fa: d10a bne.n 8007a12 <xTaskPriorityDisinherit+0xb2>
80079fc: 693b ldr r3, [r7, #16]
80079fe: 6adb ldr r3, [r3, #44] @ 0x2c
8007a00: 2201 movs r2, #1
8007a02: fa02 f303 lsl.w r3, r2, r3
8007a06: 43da mvns r2, r3
8007a08: 4b18 ldr r3, [pc, #96] @ (8007a6c <xTaskPriorityDisinherit+0x10c>)
8007a0a: 681b ldr r3, [r3, #0]
8007a0c: 4013 ands r3, r2
8007a0e: 4a17 ldr r2, [pc, #92] @ (8007a6c <xTaskPriorityDisinherit+0x10c>)
8007a10: 6013 str r3, [r2, #0]
}
/* Disinherit the priority before adding the task into the
new ready list. */
traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
pxTCB->uxPriority = pxTCB->uxBasePriority;
8007a12: 693b ldr r3, [r7, #16]
8007a14: 6c5a ldr r2, [r3, #68] @ 0x44
8007a16: 693b ldr r3, [r7, #16]
8007a18: 62da str r2, [r3, #44] @ 0x2c
/* Reset the event list item value. It cannot be in use for
any other purpose if this task is running, and it must be
running to give back the mutex. */
listSET_LIST_ITEM_VALUE( &( pxTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) pxTCB->uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
8007a1a: 693b ldr r3, [r7, #16]
8007a1c: 6adb ldr r3, [r3, #44] @ 0x2c
8007a1e: f1c3 0207 rsb r2, r3, #7
8007a22: 693b ldr r3, [r7, #16]
8007a24: 619a str r2, [r3, #24]
prvAddTaskToReadyList( pxTCB );
8007a26: 693b ldr r3, [r7, #16]
8007a28: 6adb ldr r3, [r3, #44] @ 0x2c
8007a2a: 2201 movs r2, #1
8007a2c: 409a lsls r2, r3
8007a2e: 4b0f ldr r3, [pc, #60] @ (8007a6c <xTaskPriorityDisinherit+0x10c>)
8007a30: 681b ldr r3, [r3, #0]
8007a32: 4313 orrs r3, r2
8007a34: 4a0d ldr r2, [pc, #52] @ (8007a6c <xTaskPriorityDisinherit+0x10c>)
8007a36: 6013 str r3, [r2, #0]
8007a38: 693b ldr r3, [r7, #16]
8007a3a: 6ada ldr r2, [r3, #44] @ 0x2c
8007a3c: 4613 mov r3, r2
8007a3e: 009b lsls r3, r3, #2
8007a40: 4413 add r3, r2
8007a42: 009b lsls r3, r3, #2
8007a44: 4a08 ldr r2, [pc, #32] @ (8007a68 <xTaskPriorityDisinherit+0x108>)
8007a46: 441a add r2, r3
8007a48: 693b ldr r3, [r7, #16]
8007a4a: 3304 adds r3, #4
8007a4c: 4619 mov r1, r3
8007a4e: 4610 mov r0, r2
8007a50: f7ff f916 bl 8006c80 <vListInsertEnd>
in an order different to that in which they were taken.
If a context switch did not occur when the first mutex was
returned, even if a task was waiting on it, then a context
switch should occur when the last mutex is returned whether
a task is waiting on it or not. */
xReturn = pdTRUE;
8007a54: 2301 movs r3, #1
8007a56: 617b str r3, [r7, #20]
else
{
mtCOVERAGE_TEST_MARKER();
}
return xReturn;
8007a58: 697b ldr r3, [r7, #20]
}
8007a5a: 4618 mov r0, r3
8007a5c: 3718 adds r7, #24
8007a5e: 46bd mov sp, r7
8007a60: bd80 pop {r7, pc}
8007a62: bf00 nop
8007a64: 200002dc .word 0x200002dc
8007a68: 200002e0 .word 0x200002e0
8007a6c: 200003a4 .word 0x200003a4
08007a70 <prvAddCurrentTaskToDelayedList>:
#endif
/*-----------------------------------------------------------*/
static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
{
8007a70: b580 push {r7, lr}
8007a72: b084 sub sp, #16
8007a74: af00 add r7, sp, #0
8007a76: 6078 str r0, [r7, #4]
8007a78: 6039 str r1, [r7, #0]
TickType_t xTimeToWake;
const TickType_t xConstTickCount = xTickCount;
8007a7a: 4b29 ldr r3, [pc, #164] @ (8007b20 <prvAddCurrentTaskToDelayedList+0xb0>)
8007a7c: 681b ldr r3, [r3, #0]
8007a7e: 60fb str r3, [r7, #12]
}
#endif
/* Remove the task from the ready list before adding it to the blocked list
as the same list item is used for both lists. */
if( uxListRemove( &( pxCurrentTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
8007a80: 4b28 ldr r3, [pc, #160] @ (8007b24 <prvAddCurrentTaskToDelayedList+0xb4>)
8007a82: 681b ldr r3, [r3, #0]
8007a84: 3304 adds r3, #4
8007a86: 4618 mov r0, r3
8007a88: f7ff f957 bl 8006d3a <uxListRemove>
8007a8c: 4603 mov r3, r0
8007a8e: 2b00 cmp r3, #0
8007a90: d10b bne.n 8007aaa <prvAddCurrentTaskToDelayedList+0x3a>
{
/* The current task must be in a ready list, so there is no need to
check, and the port reset macro can be called directly. */
portRESET_READY_PRIORITY( pxCurrentTCB->uxPriority, uxTopReadyPriority ); /*lint !e931 pxCurrentTCB cannot change as it is the calling task. pxCurrentTCB->uxPriority and uxTopReadyPriority cannot change as called with scheduler suspended or in a critical section. */
8007a92: 4b24 ldr r3, [pc, #144] @ (8007b24 <prvAddCurrentTaskToDelayedList+0xb4>)
8007a94: 681b ldr r3, [r3, #0]
8007a96: 6adb ldr r3, [r3, #44] @ 0x2c
8007a98: 2201 movs r2, #1
8007a9a: fa02 f303 lsl.w r3, r2, r3
8007a9e: 43da mvns r2, r3
8007aa0: 4b21 ldr r3, [pc, #132] @ (8007b28 <prvAddCurrentTaskToDelayedList+0xb8>)
8007aa2: 681b ldr r3, [r3, #0]
8007aa4: 4013 ands r3, r2
8007aa6: 4a20 ldr r2, [pc, #128] @ (8007b28 <prvAddCurrentTaskToDelayedList+0xb8>)
8007aa8: 6013 str r3, [r2, #0]
mtCOVERAGE_TEST_MARKER();
}
#if ( INCLUDE_vTaskSuspend == 1 )
{
if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
8007aaa: 687b ldr r3, [r7, #4]
8007aac: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
8007ab0: d10a bne.n 8007ac8 <prvAddCurrentTaskToDelayedList+0x58>
8007ab2: 683b ldr r3, [r7, #0]
8007ab4: 2b00 cmp r3, #0
8007ab6: d007 beq.n 8007ac8 <prvAddCurrentTaskToDelayedList+0x58>
{
/* Add the task to the suspended task list instead of a delayed task
list to ensure it is not woken by a timing event. It will block
indefinitely. */
vListInsertEnd( &xSuspendedTaskList, &( pxCurrentTCB->xStateListItem ) );
8007ab8: 4b1a ldr r3, [pc, #104] @ (8007b24 <prvAddCurrentTaskToDelayedList+0xb4>)
8007aba: 681b ldr r3, [r3, #0]
8007abc: 3304 adds r3, #4
8007abe: 4619 mov r1, r3
8007ac0: 481a ldr r0, [pc, #104] @ (8007b2c <prvAddCurrentTaskToDelayedList+0xbc>)
8007ac2: f7ff f8dd bl 8006c80 <vListInsertEnd>
/* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
( void ) xCanBlockIndefinitely;
}
#endif /* INCLUDE_vTaskSuspend */
}
8007ac6: e026 b.n 8007b16 <prvAddCurrentTaskToDelayedList+0xa6>
xTimeToWake = xConstTickCount + xTicksToWait;
8007ac8: 68fa ldr r2, [r7, #12]
8007aca: 687b ldr r3, [r7, #4]
8007acc: 4413 add r3, r2
8007ace: 60bb str r3, [r7, #8]
listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
8007ad0: 4b14 ldr r3, [pc, #80] @ (8007b24 <prvAddCurrentTaskToDelayedList+0xb4>)
8007ad2: 681b ldr r3, [r3, #0]
8007ad4: 68ba ldr r2, [r7, #8]
8007ad6: 605a str r2, [r3, #4]
if( xTimeToWake < xConstTickCount )
8007ad8: 68ba ldr r2, [r7, #8]
8007ada: 68fb ldr r3, [r7, #12]
8007adc: 429a cmp r2, r3
8007ade: d209 bcs.n 8007af4 <prvAddCurrentTaskToDelayedList+0x84>
vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
8007ae0: 4b13 ldr r3, [pc, #76] @ (8007b30 <prvAddCurrentTaskToDelayedList+0xc0>)
8007ae2: 681a ldr r2, [r3, #0]
8007ae4: 4b0f ldr r3, [pc, #60] @ (8007b24 <prvAddCurrentTaskToDelayedList+0xb4>)
8007ae6: 681b ldr r3, [r3, #0]
8007ae8: 3304 adds r3, #4
8007aea: 4619 mov r1, r3
8007aec: 4610 mov r0, r2
8007aee: f7ff f8eb bl 8006cc8 <vListInsert>
}
8007af2: e010 b.n 8007b16 <prvAddCurrentTaskToDelayedList+0xa6>
vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
8007af4: 4b0f ldr r3, [pc, #60] @ (8007b34 <prvAddCurrentTaskToDelayedList+0xc4>)
8007af6: 681a ldr r2, [r3, #0]
8007af8: 4b0a ldr r3, [pc, #40] @ (8007b24 <prvAddCurrentTaskToDelayedList+0xb4>)
8007afa: 681b ldr r3, [r3, #0]
8007afc: 3304 adds r3, #4
8007afe: 4619 mov r1, r3
8007b00: 4610 mov r0, r2
8007b02: f7ff f8e1 bl 8006cc8 <vListInsert>
if( xTimeToWake < xNextTaskUnblockTime )
8007b06: 4b0c ldr r3, [pc, #48] @ (8007b38 <prvAddCurrentTaskToDelayedList+0xc8>)
8007b08: 681b ldr r3, [r3, #0]
8007b0a: 68ba ldr r2, [r7, #8]
8007b0c: 429a cmp r2, r3
8007b0e: d202 bcs.n 8007b16 <prvAddCurrentTaskToDelayedList+0xa6>
xNextTaskUnblockTime = xTimeToWake;
8007b10: 4a09 ldr r2, [pc, #36] @ (8007b38 <prvAddCurrentTaskToDelayedList+0xc8>)
8007b12: 68bb ldr r3, [r7, #8]
8007b14: 6013 str r3, [r2, #0]
}
8007b16: bf00 nop
8007b18: 3710 adds r7, #16
8007b1a: 46bd mov sp, r7
8007b1c: bd80 pop {r7, pc}
8007b1e: bf00 nop
8007b20: 200003a0 .word 0x200003a0
8007b24: 200002dc .word 0x200002dc
8007b28: 200003a4 .word 0x200003a4
8007b2c: 20000388 .word 0x20000388
8007b30: 20000370 .word 0x20000370
8007b34: 2000036c .word 0x2000036c
8007b38: 200003b8 .word 0x200003b8
8007b3c: 00000000 .word 0x00000000
08007b40 <SVC_Handler>:
}
/*-----------------------------------------------------------*/
void vPortSVCHandler( void )
{
__asm volatile (
8007b40: 4b07 ldr r3, [pc, #28] @ (8007b60 <pxCurrentTCBConst2>)
8007b42: 6819 ldr r1, [r3, #0]
8007b44: 6808 ldr r0, [r1, #0]
8007b46: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
8007b4a: f380 8809 msr PSP, r0
8007b4e: f3bf 8f6f isb sy
8007b52: f04f 0000 mov.w r0, #0
8007b56: f380 8811 msr BASEPRI, r0
8007b5a: 4770 bx lr
8007b5c: f3af 8000 nop.w
08007b60 <pxCurrentTCBConst2>:
8007b60: 200002dc .word 0x200002dc
" bx r14 \n"
" \n"
" .align 4 \n"
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
);
}
8007b64: bf00 nop
8007b66: bf00 nop
08007b68 <vPortEnterCritical>:
configASSERT( uxCriticalNesting == 1000UL );
}
/*-----------------------------------------------------------*/
void vPortEnterCritical( void )
{
8007b68: b480 push {r7}
8007b6a: b083 sub sp, #12
8007b6c: af00 add r7, sp, #0
__asm volatile
8007b6e: f04f 0350 mov.w r3, #80 @ 0x50
8007b72: f383 8811 msr BASEPRI, r3
8007b76: f3bf 8f6f isb sy
8007b7a: f3bf 8f4f dsb sy
8007b7e: 607b str r3, [r7, #4]
}
8007b80: bf00 nop
portDISABLE_INTERRUPTS();
uxCriticalNesting++;
8007b82: 4b10 ldr r3, [pc, #64] @ (8007bc4 <vPortEnterCritical+0x5c>)
8007b84: 681b ldr r3, [r3, #0]
8007b86: 3301 adds r3, #1
8007b88: 4a0e ldr r2, [pc, #56] @ (8007bc4 <vPortEnterCritical+0x5c>)
8007b8a: 6013 str r3, [r2, #0]
/* This is not the interrupt safe version of the enter critical function so
assert() if it is being called from an interrupt context. Only API
functions that end in "FromISR" can be used in an interrupt. Only assert if
the critical nesting count is 1 to protect against recursive calls if the
assert function also uses a critical section. */
if( uxCriticalNesting == 1 )
8007b8c: 4b0d ldr r3, [pc, #52] @ (8007bc4 <vPortEnterCritical+0x5c>)
8007b8e: 681b ldr r3, [r3, #0]
8007b90: 2b01 cmp r3, #1
8007b92: d110 bne.n 8007bb6 <vPortEnterCritical+0x4e>
{
configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
8007b94: 4b0c ldr r3, [pc, #48] @ (8007bc8 <vPortEnterCritical+0x60>)
8007b96: 681b ldr r3, [r3, #0]
8007b98: b2db uxtb r3, r3
8007b9a: 2b00 cmp r3, #0
8007b9c: d00b beq.n 8007bb6 <vPortEnterCritical+0x4e>
__asm volatile
8007b9e: f04f 0350 mov.w r3, #80 @ 0x50
8007ba2: f383 8811 msr BASEPRI, r3
8007ba6: f3bf 8f6f isb sy
8007baa: f3bf 8f4f dsb sy
8007bae: 603b str r3, [r7, #0]
}
8007bb0: bf00 nop
8007bb2: bf00 nop
8007bb4: e7fd b.n 8007bb2 <vPortEnterCritical+0x4a>
}
}
8007bb6: bf00 nop
8007bb8: 370c adds r7, #12
8007bba: 46bd mov sp, r7
8007bbc: f85d 7b04 ldr.w r7, [sp], #4
8007bc0: 4770 bx lr
8007bc2: bf00 nop
8007bc4: 2000000c .word 0x2000000c
8007bc8: e000ed04 .word 0xe000ed04
08007bcc <vPortExitCritical>:
/*-----------------------------------------------------------*/
void vPortExitCritical( void )
{
8007bcc: b480 push {r7}
8007bce: b083 sub sp, #12
8007bd0: af00 add r7, sp, #0
configASSERT( uxCriticalNesting );
8007bd2: 4b12 ldr r3, [pc, #72] @ (8007c1c <vPortExitCritical+0x50>)
8007bd4: 681b ldr r3, [r3, #0]
8007bd6: 2b00 cmp r3, #0
8007bd8: d10b bne.n 8007bf2 <vPortExitCritical+0x26>
__asm volatile
8007bda: f04f 0350 mov.w r3, #80 @ 0x50
8007bde: f383 8811 msr BASEPRI, r3
8007be2: f3bf 8f6f isb sy
8007be6: f3bf 8f4f dsb sy
8007bea: 607b str r3, [r7, #4]
}
8007bec: bf00 nop
8007bee: bf00 nop
8007bf0: e7fd b.n 8007bee <vPortExitCritical+0x22>
uxCriticalNesting--;
8007bf2: 4b0a ldr r3, [pc, #40] @ (8007c1c <vPortExitCritical+0x50>)
8007bf4: 681b ldr r3, [r3, #0]
8007bf6: 3b01 subs r3, #1
8007bf8: 4a08 ldr r2, [pc, #32] @ (8007c1c <vPortExitCritical+0x50>)
8007bfa: 6013 str r3, [r2, #0]
if( uxCriticalNesting == 0 )
8007bfc: 4b07 ldr r3, [pc, #28] @ (8007c1c <vPortExitCritical+0x50>)
8007bfe: 681b ldr r3, [r3, #0]
8007c00: 2b00 cmp r3, #0
8007c02: d105 bne.n 8007c10 <vPortExitCritical+0x44>
8007c04: 2300 movs r3, #0
8007c06: 603b str r3, [r7, #0]
__asm volatile
8007c08: 683b ldr r3, [r7, #0]
8007c0a: f383 8811 msr BASEPRI, r3
}
8007c0e: bf00 nop
{
portENABLE_INTERRUPTS();
}
}
8007c10: bf00 nop
8007c12: 370c adds r7, #12
8007c14: 46bd mov sp, r7
8007c16: f85d 7b04 ldr.w r7, [sp], #4
8007c1a: 4770 bx lr
8007c1c: 2000000c .word 0x2000000c
08007c20 <PendSV_Handler>:
void xPortPendSVHandler( void )
{
/* This is a naked function. */
__asm volatile
8007c20: f3ef 8009 mrs r0, PSP
8007c24: f3bf 8f6f isb sy
8007c28: 4b15 ldr r3, [pc, #84] @ (8007c80 <pxCurrentTCBConst>)
8007c2a: 681a ldr r2, [r3, #0]
8007c2c: f01e 0f10 tst.w lr, #16
8007c30: bf08 it eq
8007c32: ed20 8a10 vstmdbeq r0!, {s16-s31}
8007c36: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
8007c3a: 6010 str r0, [r2, #0]
8007c3c: e92d 0009 stmdb sp!, {r0, r3}
8007c40: f04f 0050 mov.w r0, #80 @ 0x50
8007c44: f380 8811 msr BASEPRI, r0
8007c48: f3bf 8f4f dsb sy
8007c4c: f3bf 8f6f isb sy
8007c50: f7ff fcb6 bl 80075c0 <vTaskSwitchContext>
8007c54: f04f 0000 mov.w r0, #0
8007c58: f380 8811 msr BASEPRI, r0
8007c5c: bc09 pop {r0, r3}
8007c5e: 6819 ldr r1, [r3, #0]
8007c60: 6808 ldr r0, [r1, #0]
8007c62: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
8007c66: f01e 0f10 tst.w lr, #16
8007c6a: bf08 it eq
8007c6c: ecb0 8a10 vldmiaeq r0!, {s16-s31}
8007c70: f380 8809 msr PSP, r0
8007c74: f3bf 8f6f isb sy
8007c78: 4770 bx lr
8007c7a: bf00 nop
8007c7c: f3af 8000 nop.w
08007c80 <pxCurrentTCBConst>:
8007c80: 200002dc .word 0x200002dc
" \n"
" .align 4 \n"
"pxCurrentTCBConst: .word pxCurrentTCB \n"
::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
);
}
8007c84: bf00 nop
8007c86: bf00 nop
08007c88 <SysTick_Handler>:
/*-----------------------------------------------------------*/
void xPortSysTickHandler( void )
{
8007c88: b580 push {r7, lr}
8007c8a: b082 sub sp, #8
8007c8c: af00 add r7, sp, #0
__asm volatile
8007c8e: f04f 0350 mov.w r3, #80 @ 0x50
8007c92: f383 8811 msr BASEPRI, r3
8007c96: f3bf 8f6f isb sy
8007c9a: f3bf 8f4f dsb sy
8007c9e: 607b str r3, [r7, #4]
}
8007ca0: bf00 nop
save and then restore the interrupt mask value as its value is already
known. */
portDISABLE_INTERRUPTS();
{
/* Increment the RTOS tick. */
if( xTaskIncrementTick() != pdFALSE )
8007ca2: f7ff fbd3 bl 800744c <xTaskIncrementTick>
8007ca6: 4603 mov r3, r0
8007ca8: 2b00 cmp r3, #0
8007caa: d003 beq.n 8007cb4 <SysTick_Handler+0x2c>
{
/* A context switch is required. Context switching is performed in
the PendSV interrupt. Pend the PendSV interrupt. */
portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
8007cac: 4b06 ldr r3, [pc, #24] @ (8007cc8 <SysTick_Handler+0x40>)
8007cae: f04f 5280 mov.w r2, #268435456 @ 0x10000000
8007cb2: 601a str r2, [r3, #0]
8007cb4: 2300 movs r3, #0
8007cb6: 603b str r3, [r7, #0]
__asm volatile
8007cb8: 683b ldr r3, [r7, #0]
8007cba: f383 8811 msr BASEPRI, r3
}
8007cbe: bf00 nop
}
}
portENABLE_INTERRUPTS();
}
8007cc0: bf00 nop
8007cc2: 3708 adds r7, #8
8007cc4: 46bd mov sp, r7
8007cc6: bd80 pop {r7, pc}
8007cc8: e000ed04 .word 0xe000ed04
08007ccc <vPortValidateInterruptPriority>:
/*-----------------------------------------------------------*/
#if( configASSERT_DEFINED == 1 )
void vPortValidateInterruptPriority( void )
{
8007ccc: b480 push {r7}
8007cce: b085 sub sp, #20
8007cd0: af00 add r7, sp, #0
uint32_t ulCurrentInterrupt;
uint8_t ucCurrentPriority;
/* Obtain the number of the currently executing interrupt. */
__asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) :: "memory" );
8007cd2: f3ef 8305 mrs r3, IPSR
8007cd6: 60fb str r3, [r7, #12]
/* Is the interrupt number a user defined interrupt? */
if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
8007cd8: 68fb ldr r3, [r7, #12]
8007cda: 2b0f cmp r3, #15
8007cdc: d915 bls.n 8007d0a <vPortValidateInterruptPriority+0x3e>
{
/* Look up the interrupt's priority. */
ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
8007cde: 4a18 ldr r2, [pc, #96] @ (8007d40 <vPortValidateInterruptPriority+0x74>)
8007ce0: 68fb ldr r3, [r7, #12]
8007ce2: 4413 add r3, r2
8007ce4: 781b ldrb r3, [r3, #0]
8007ce6: 72fb strb r3, [r7, #11]
interrupt entry is as fast and simple as possible.
The following links provide detailed information:
http://www.freertos.org/RTOS-Cortex-M3-M4.html
http://www.freertos.org/FAQHelp.html */
configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
8007ce8: 4b16 ldr r3, [pc, #88] @ (8007d44 <vPortValidateInterruptPriority+0x78>)
8007cea: 781b ldrb r3, [r3, #0]
8007cec: 7afa ldrb r2, [r7, #11]
8007cee: 429a cmp r2, r3
8007cf0: d20b bcs.n 8007d0a <vPortValidateInterruptPriority+0x3e>
__asm volatile
8007cf2: f04f 0350 mov.w r3, #80 @ 0x50
8007cf6: f383 8811 msr BASEPRI, r3
8007cfa: f3bf 8f6f isb sy
8007cfe: f3bf 8f4f dsb sy
8007d02: 607b str r3, [r7, #4]
}
8007d04: bf00 nop
8007d06: bf00 nop
8007d08: e7fd b.n 8007d06 <vPortValidateInterruptPriority+0x3a>
configuration then the correct setting can be achieved on all Cortex-M
devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
scheduler. Note however that some vendor specific peripheral libraries
assume a non-zero priority group setting, in which cases using a value
of zero will result in unpredictable behaviour. */
configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
8007d0a: 4b0f ldr r3, [pc, #60] @ (8007d48 <vPortValidateInterruptPriority+0x7c>)
8007d0c: 681b ldr r3, [r3, #0]
8007d0e: f403 62e0 and.w r2, r3, #1792 @ 0x700
8007d12: 4b0e ldr r3, [pc, #56] @ (8007d4c <vPortValidateInterruptPriority+0x80>)
8007d14: 681b ldr r3, [r3, #0]
8007d16: 429a cmp r2, r3
8007d18: d90b bls.n 8007d32 <vPortValidateInterruptPriority+0x66>
__asm volatile
8007d1a: f04f 0350 mov.w r3, #80 @ 0x50
8007d1e: f383 8811 msr BASEPRI, r3
8007d22: f3bf 8f6f isb sy
8007d26: f3bf 8f4f dsb sy
8007d2a: 603b str r3, [r7, #0]
}
8007d2c: bf00 nop
8007d2e: bf00 nop
8007d30: e7fd b.n 8007d2e <vPortValidateInterruptPriority+0x62>
}
8007d32: bf00 nop
8007d34: 3714 adds r7, #20
8007d36: 46bd mov sp, r7
8007d38: f85d 7b04 ldr.w r7, [sp], #4
8007d3c: 4770 bx lr
8007d3e: bf00 nop
8007d40: e000e3f0 .word 0xe000e3f0
8007d44: 200003c0 .word 0x200003c0
8007d48: e000ed0c .word 0xe000ed0c
8007d4c: 200003c4 .word 0x200003c4
08007d50 <HAL_HCD_SOF_Callback>:
* @brief SOF callback.
* @param hhcd: HCD handle
* @retval None
*/
void HAL_HCD_SOF_Callback(HCD_HandleTypeDef *hhcd)
{
8007d50: b580 push {r7, lr}
8007d52: b082 sub sp, #8
8007d54: af00 add r7, sp, #0
8007d56: 6078 str r0, [r7, #4]
USBH_LL_IncTimer(hhcd->pData);
8007d58: 687b ldr r3, [r7, #4]
8007d5a: f8d3 33dc ldr.w r3, [r3, #988] @ 0x3dc
8007d5e: 4618 mov r0, r3
8007d60: f7fe fe3e bl 80069e0 <USBH_LL_IncTimer>
}
8007d64: bf00 nop
8007d66: 3708 adds r7, #8
8007d68: 46bd mov sp, r7
8007d6a: bd80 pop {r7, pc}
08007d6c <HAL_HCD_Connect_Callback>:
* @brief SOF callback.
* @param hhcd: HCD handle
* @retval None
*/
void HAL_HCD_Connect_Callback(HCD_HandleTypeDef *hhcd)
{
8007d6c: b580 push {r7, lr}
8007d6e: b082 sub sp, #8
8007d70: af00 add r7, sp, #0
8007d72: 6078 str r0, [r7, #4]
USBH_LL_Connect(hhcd->pData);
8007d74: 687b ldr r3, [r7, #4]
8007d76: f8d3 33dc ldr.w r3, [r3, #988] @ 0x3dc
8007d7a: 4618 mov r0, r3
8007d7c: f7fe fe7e bl 8006a7c <USBH_LL_Connect>
}
8007d80: bf00 nop
8007d82: 3708 adds r7, #8
8007d84: 46bd mov sp, r7
8007d86: bd80 pop {r7, pc}
08007d88 <HAL_HCD_Disconnect_Callback>:
* @brief SOF callback.
* @param hhcd: HCD handle
* @retval None
*/
void HAL_HCD_Disconnect_Callback(HCD_HandleTypeDef *hhcd)
{
8007d88: b580 push {r7, lr}
8007d8a: b082 sub sp, #8
8007d8c: af00 add r7, sp, #0
8007d8e: 6078 str r0, [r7, #4]
USBH_LL_Disconnect(hhcd->pData);
8007d90: 687b ldr r3, [r7, #4]
8007d92: f8d3 33dc ldr.w r3, [r3, #988] @ 0x3dc
8007d96: 4618 mov r0, r3
8007d98: f7fe fe8b bl 8006ab2 <USBH_LL_Disconnect>
}
8007d9c: bf00 nop
8007d9e: 3708 adds r7, #8
8007da0: 46bd mov sp, r7
8007da2: bd80 pop {r7, pc}
08007da4 <HAL_HCD_HC_NotifyURBChange_Callback>:
* @param chnum: channel number
* @param urb_state: state
* @retval None
*/
void HAL_HCD_HC_NotifyURBChange_Callback(HCD_HandleTypeDef *hhcd, uint8_t chnum, HCD_URBStateTypeDef urb_state)
{
8007da4: b580 push {r7, lr}
8007da6: b082 sub sp, #8
8007da8: af00 add r7, sp, #0
8007daa: 6078 str r0, [r7, #4]
8007dac: 460b mov r3, r1
8007dae: 70fb strb r3, [r7, #3]
8007db0: 4613 mov r3, r2
8007db2: 70bb strb r3, [r7, #2]
/* To be used with OS to sync URB state with the global state machine */
#if (USBH_USE_OS == 1)
USBH_LL_NotifyURBChange(hhcd->pData);
8007db4: 687b ldr r3, [r7, #4]
8007db6: f8d3 33dc ldr.w r3, [r3, #988] @ 0x3dc
8007dba: 4618 mov r0, r3
8007dbc: f7fe feca bl 8006b54 <USBH_LL_NotifyURBChange>
#endif
}
8007dc0: bf00 nop
8007dc2: 3708 adds r7, #8
8007dc4: 46bd mov sp, r7
8007dc6: bd80 pop {r7, pc}
08007dc8 <HAL_HCD_PortEnabled_Callback>:
* @brief Port Port Enabled callback.
* @param hhcd: HCD handle
* @retval None
*/
void HAL_HCD_PortEnabled_Callback(HCD_HandleTypeDef *hhcd)
{
8007dc8: b580 push {r7, lr}
8007dca: b082 sub sp, #8
8007dcc: af00 add r7, sp, #0
8007dce: 6078 str r0, [r7, #4]
USBH_LL_PortEnabled(hhcd->pData);
8007dd0: 687b ldr r3, [r7, #4]
8007dd2: f8d3 33dc ldr.w r3, [r3, #988] @ 0x3dc
8007dd6: 4618 mov r0, r3
8007dd8: f7fe fe2c bl 8006a34 <USBH_LL_PortEnabled>
}
8007ddc: bf00 nop
8007dde: 3708 adds r7, #8
8007de0: 46bd mov sp, r7
8007de2: bd80 pop {r7, pc}
08007de4 <HAL_HCD_PortDisabled_Callback>:
* @brief Port Port Disabled callback.
* @param hhcd: HCD handle
* @retval None
*/
void HAL_HCD_PortDisabled_Callback(HCD_HandleTypeDef *hhcd)
{
8007de4: b580 push {r7, lr}
8007de6: b082 sub sp, #8
8007de8: af00 add r7, sp, #0
8007dea: 6078 str r0, [r7, #4]
USBH_LL_PortDisabled(hhcd->pData);
8007dec: 687b ldr r3, [r7, #4]
8007dee: f8d3 33dc ldr.w r3, [r3, #988] @ 0x3dc
8007df2: 4618 mov r0, r3
8007df4: f7fe fe30 bl 8006a58 <USBH_LL_PortDisabled>
}
8007df8: bf00 nop
8007dfa: 3708 adds r7, #8
8007dfc: 46bd mov sp, r7
8007dfe: bd80 pop {r7, pc}
08007e00 <USBH_LL_Stop>:
* @brief Stop the low level portion of the host driver.
* @param phost: Host handle
* @retval USBH status
*/
USBH_StatusTypeDef USBH_LL_Stop(USBH_HandleTypeDef *phost)
{
8007e00: b580 push {r7, lr}
8007e02: b084 sub sp, #16
8007e04: af00 add r7, sp, #0
8007e06: 6078 str r0, [r7, #4]
HAL_StatusTypeDef hal_status = HAL_OK;
8007e08: 2300 movs r3, #0
8007e0a: 73fb strb r3, [r7, #15]
USBH_StatusTypeDef usb_status = USBH_OK;
8007e0c: 2300 movs r3, #0
8007e0e: 73bb strb r3, [r7, #14]
hal_status = HAL_HCD_Stop(phost->pData);
8007e10: 687b ldr r3, [r7, #4]
8007e12: f8d3 33d0 ldr.w r3, [r3, #976] @ 0x3d0
8007e16: 4618 mov r0, r3
8007e18: f7fa fa1f bl 800225a <HAL_HCD_Stop>
8007e1c: 4603 mov r3, r0
8007e1e: 73fb strb r3, [r7, #15]
usb_status = USBH_Get_USB_Status(hal_status);
8007e20: 7bfb ldrb r3, [r7, #15]
8007e22: 4618 mov r0, r3
8007e24: f000 f808 bl 8007e38 <USBH_Get_USB_Status>
8007e28: 4603 mov r3, r0
8007e2a: 73bb strb r3, [r7, #14]
return usb_status;
8007e2c: 7bbb ldrb r3, [r7, #14]
}
8007e2e: 4618 mov r0, r3
8007e30: 3710 adds r7, #16
8007e32: 46bd mov sp, r7
8007e34: bd80 pop {r7, pc}
...
08007e38 <USBH_Get_USB_Status>:
* @brief Returns the USB status depending on the HAL status:
* @param hal_status: HAL status
* @retval USB status
*/
USBH_StatusTypeDef USBH_Get_USB_Status(HAL_StatusTypeDef hal_status)
{
8007e38: b480 push {r7}
8007e3a: b085 sub sp, #20
8007e3c: af00 add r7, sp, #0
8007e3e: 4603 mov r3, r0
8007e40: 71fb strb r3, [r7, #7]
USBH_StatusTypeDef usb_status = USBH_OK;
8007e42: 2300 movs r3, #0
8007e44: 73fb strb r3, [r7, #15]
switch (hal_status)
8007e46: 79fb ldrb r3, [r7, #7]
8007e48: 2b03 cmp r3, #3
8007e4a: d817 bhi.n 8007e7c <USBH_Get_USB_Status+0x44>
8007e4c: a201 add r2, pc, #4 @ (adr r2, 8007e54 <USBH_Get_USB_Status+0x1c>)
8007e4e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
8007e52: bf00 nop
8007e54: 08007e65 .word 0x08007e65
8007e58: 08007e6b .word 0x08007e6b
8007e5c: 08007e71 .word 0x08007e71
8007e60: 08007e77 .word 0x08007e77
{
case HAL_OK :
usb_status = USBH_OK;
8007e64: 2300 movs r3, #0
8007e66: 73fb strb r3, [r7, #15]
break;
8007e68: e00b b.n 8007e82 <USBH_Get_USB_Status+0x4a>
case HAL_ERROR :
usb_status = USBH_FAIL;
8007e6a: 2302 movs r3, #2
8007e6c: 73fb strb r3, [r7, #15]
break;
8007e6e: e008 b.n 8007e82 <USBH_Get_USB_Status+0x4a>
case HAL_BUSY :
usb_status = USBH_BUSY;
8007e70: 2301 movs r3, #1
8007e72: 73fb strb r3, [r7, #15]
break;
8007e74: e005 b.n 8007e82 <USBH_Get_USB_Status+0x4a>
case HAL_TIMEOUT :
usb_status = USBH_FAIL;
8007e76: 2302 movs r3, #2
8007e78: 73fb strb r3, [r7, #15]
break;
8007e7a: e002 b.n 8007e82 <USBH_Get_USB_Status+0x4a>
default :
usb_status = USBH_FAIL;
8007e7c: 2302 movs r3, #2
8007e7e: 73fb strb r3, [r7, #15]
break;
8007e80: bf00 nop
}
return usb_status;
8007e82: 7bfb ldrb r3, [r7, #15]
}
8007e84: 4618 mov r0, r3
8007e86: 3714 adds r7, #20
8007e88: 46bd mov sp, r7
8007e8a: f85d 7b04 ldr.w r7, [sp], #4
8007e8e: 4770 bx lr
08007e90 <memset>:
8007e90: 4402 add r2, r0
8007e92: 4603 mov r3, r0
8007e94: 4293 cmp r3, r2
8007e96: d100 bne.n 8007e9a <memset+0xa>
8007e98: 4770 bx lr
8007e9a: f803 1b01 strb.w r1, [r3], #1
8007e9e: e7f9 b.n 8007e94 <memset+0x4>
08007ea0 <__libc_init_array>:
8007ea0: b570 push {r4, r5, r6, lr}
8007ea2: 4d0d ldr r5, [pc, #52] @ (8007ed8 <__libc_init_array+0x38>)
8007ea4: 4c0d ldr r4, [pc, #52] @ (8007edc <__libc_init_array+0x3c>)
8007ea6: 1b64 subs r4, r4, r5
8007ea8: 10a4 asrs r4, r4, #2
8007eaa: 2600 movs r6, #0
8007eac: 42a6 cmp r6, r4
8007eae: d109 bne.n 8007ec4 <__libc_init_array+0x24>
8007eb0: 4d0b ldr r5, [pc, #44] @ (8007ee0 <__libc_init_array+0x40>)
8007eb2: 4c0c ldr r4, [pc, #48] @ (8007ee4 <__libc_init_array+0x44>)
8007eb4: f000 f826 bl 8007f04 <_init>
8007eb8: 1b64 subs r4, r4, r5
8007eba: 10a4 asrs r4, r4, #2
8007ebc: 2600 movs r6, #0
8007ebe: 42a6 cmp r6, r4
8007ec0: d105 bne.n 8007ece <__libc_init_array+0x2e>
8007ec2: bd70 pop {r4, r5, r6, pc}
8007ec4: f855 3b04 ldr.w r3, [r5], #4
8007ec8: 4798 blx r3
8007eca: 3601 adds r6, #1
8007ecc: e7ee b.n 8007eac <__libc_init_array+0xc>
8007ece: f855 3b04 ldr.w r3, [r5], #4
8007ed2: 4798 blx r3
8007ed4: 3601 adds r6, #1
8007ed6: e7f2 b.n 8007ebe <__libc_init_array+0x1e>
8007ed8: 08007f3c .word 0x08007f3c
8007edc: 08007f3c .word 0x08007f3c
8007ee0: 08007f3c .word 0x08007f3c
8007ee4: 08007f40 .word 0x08007f40
08007ee8 <memcpy>:
8007ee8: 440a add r2, r1
8007eea: 4291 cmp r1, r2
8007eec: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
8007ef0: d100 bne.n 8007ef4 <memcpy+0xc>
8007ef2: 4770 bx lr
8007ef4: b510 push {r4, lr}
8007ef6: f811 4b01 ldrb.w r4, [r1], #1
8007efa: f803 4f01 strb.w r4, [r3, #1]!
8007efe: 4291 cmp r1, r2
8007f00: d1f9 bne.n 8007ef6 <memcpy+0xe>
8007f02: bd10 pop {r4, pc}
08007f04 <_init>:
8007f04: b5f8 push {r3, r4, r5, r6, r7, lr}
8007f06: bf00 nop
8007f08: bcf8 pop {r3, r4, r5, r6, r7}
8007f0a: bc08 pop {r3}
8007f0c: 469e mov lr, r3
8007f0e: 4770 bx lr
08007f10 <_fini>:
8007f10: b5f8 push {r3, r4, r5, r6, r7, lr}
8007f12: bf00 nop
8007f14: bcf8 pop {r3, r4, r5, r6, r7}
8007f16: bc08 pop {r3}
8007f18: 469e mov lr, r3
8007f1a: 4770 bx lr