2025-11-18 11:12:52 +01:00

19439 lines
742 KiB
Plaintext

Versuch1_RTOS.elf: file format elf32-littlearm
Sections:
Idx Name Size VMA LMA File off Algn
0 .isr_vector 000001e0 08000000 08000000 00001000 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
1 .text 0000737c 080001e0 080001e0 000011e0 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .rodata 000000d4 0800755c 0800755c 0000855c 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
3 .ARM.extab 00000000 08007630 08007630 0000906c 2**0
CONTENTS, READONLY
4 .ARM 00000008 08007630 08007630 00008630 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
5 .preinit_array 00000000 08007638 08007638 0000906c 2**0
CONTENTS, ALLOC, LOAD, DATA
6 .init_array 00000004 08007638 08007638 00008638 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
7 .fini_array 00000004 0800763c 0800763c 0000863c 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
8 .data 0000006c 20000000 08007640 00009000 2**2
CONTENTS, ALLOC, LOAD, DATA
9 .bss 00005194 2000006c 080076ac 0000906c 2**2
ALLOC
10 ._user_heap_stack 00000600 20005200 080076ac 00009200 2**0
ALLOC
11 .ARM.attributes 00000030 00000000 00000000 0000906c 2**0
CONTENTS, READONLY
12 .debug_info 00019947 00000000 00000000 0000909c 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
13 .debug_abbrev 000037c1 00000000 00000000 000229e3 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
14 .debug_aranges 000015a0 00000000 00000000 000261a8 2**3
CONTENTS, READONLY, DEBUGGING, OCTETS
15 .debug_rnglists 000010ce 00000000 00000000 00027748 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
16 .debug_macro 00004b21 00000000 00000000 00028816 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
17 .debug_line 0001819a 00000000 00000000 0002d337 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
18 .debug_str 000ea3c5 00000000 00000000 000454d1 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
19 .comment 00000043 00000000 00000000 0012f896 2**0
CONTENTS, READONLY
20 .debug_frame 000061d8 00000000 00000000 0012f8dc 2**2
CONTENTS, READONLY, DEBUGGING, OCTETS
21 .debug_line_str 00000083 00000000 00000000 00135ab4 2**0
CONTENTS, READONLY, DEBUGGING, OCTETS
Disassembly of section .text:
080001e0 <__do_global_dtors_aux>:
80001e0: b510 push {r4, lr}
80001e2: 4c05 ldr r4, [pc, #20] @ (80001f8 <__do_global_dtors_aux+0x18>)
80001e4: 7823 ldrb r3, [r4, #0]
80001e6: b933 cbnz r3, 80001f6 <__do_global_dtors_aux+0x16>
80001e8: 4b04 ldr r3, [pc, #16] @ (80001fc <__do_global_dtors_aux+0x1c>)
80001ea: b113 cbz r3, 80001f2 <__do_global_dtors_aux+0x12>
80001ec: 4804 ldr r0, [pc, #16] @ (8000200 <__do_global_dtors_aux+0x20>)
80001ee: f3af 8000 nop.w
80001f2: 2301 movs r3, #1
80001f4: 7023 strb r3, [r4, #0]
80001f6: bd10 pop {r4, pc}
80001f8: 2000006c .word 0x2000006c
80001fc: 00000000 .word 0x00000000
8000200: 08007544 .word 0x08007544
08000204 <frame_dummy>:
8000204: b508 push {r3, lr}
8000206: 4b03 ldr r3, [pc, #12] @ (8000214 <frame_dummy+0x10>)
8000208: b11b cbz r3, 8000212 <frame_dummy+0xe>
800020a: 4903 ldr r1, [pc, #12] @ (8000218 <frame_dummy+0x14>)
800020c: 4803 ldr r0, [pc, #12] @ (800021c <frame_dummy+0x18>)
800020e: f3af 8000 nop.w
8000212: bd08 pop {r3, pc}
8000214: 00000000 .word 0x00000000
8000218: 20000070 .word 0x20000070
800021c: 08007544 .word 0x08007544
08000220 <memchr>:
8000220: f001 01ff and.w r1, r1, #255 @ 0xff
8000224: 2a10 cmp r2, #16
8000226: db2b blt.n 8000280 <memchr+0x60>
8000228: f010 0f07 tst.w r0, #7
800022c: d008 beq.n 8000240 <memchr+0x20>
800022e: f810 3b01 ldrb.w r3, [r0], #1
8000232: 3a01 subs r2, #1
8000234: 428b cmp r3, r1
8000236: d02d beq.n 8000294 <memchr+0x74>
8000238: f010 0f07 tst.w r0, #7
800023c: b342 cbz r2, 8000290 <memchr+0x70>
800023e: d1f6 bne.n 800022e <memchr+0xe>
8000240: b4f0 push {r4, r5, r6, r7}
8000242: ea41 2101 orr.w r1, r1, r1, lsl #8
8000246: ea41 4101 orr.w r1, r1, r1, lsl #16
800024a: f022 0407 bic.w r4, r2, #7
800024e: f07f 0700 mvns.w r7, #0
8000252: 2300 movs r3, #0
8000254: e8f0 5602 ldrd r5, r6, [r0], #8
8000258: 3c08 subs r4, #8
800025a: ea85 0501 eor.w r5, r5, r1
800025e: ea86 0601 eor.w r6, r6, r1
8000262: fa85 f547 uadd8 r5, r5, r7
8000266: faa3 f587 sel r5, r3, r7
800026a: fa86 f647 uadd8 r6, r6, r7
800026e: faa5 f687 sel r6, r5, r7
8000272: b98e cbnz r6, 8000298 <memchr+0x78>
8000274: d1ee bne.n 8000254 <memchr+0x34>
8000276: bcf0 pop {r4, r5, r6, r7}
8000278: f001 01ff and.w r1, r1, #255 @ 0xff
800027c: f002 0207 and.w r2, r2, #7
8000280: b132 cbz r2, 8000290 <memchr+0x70>
8000282: f810 3b01 ldrb.w r3, [r0], #1
8000286: 3a01 subs r2, #1
8000288: ea83 0301 eor.w r3, r3, r1
800028c: b113 cbz r3, 8000294 <memchr+0x74>
800028e: d1f8 bne.n 8000282 <memchr+0x62>
8000290: 2000 movs r0, #0
8000292: 4770 bx lr
8000294: 3801 subs r0, #1
8000296: 4770 bx lr
8000298: 2d00 cmp r5, #0
800029a: bf06 itte eq
800029c: 4635 moveq r5, r6
800029e: 3803 subeq r0, #3
80002a0: 3807 subne r0, #7
80002a2: f015 0f01 tst.w r5, #1
80002a6: d107 bne.n 80002b8 <memchr+0x98>
80002a8: 3001 adds r0, #1
80002aa: f415 7f80 tst.w r5, #256 @ 0x100
80002ae: bf02 ittt eq
80002b0: 3001 addeq r0, #1
80002b2: f415 3fc0 tsteq.w r5, #98304 @ 0x18000
80002b6: 3001 addeq r0, #1
80002b8: bcf0 pop {r4, r5, r6, r7}
80002ba: 3801 subs r0, #1
80002bc: 4770 bx lr
80002be: bf00 nop
080002c0 <__aeabi_uldivmod>:
80002c0: b953 cbnz r3, 80002d8 <__aeabi_uldivmod+0x18>
80002c2: b94a cbnz r2, 80002d8 <__aeabi_uldivmod+0x18>
80002c4: 2900 cmp r1, #0
80002c6: bf08 it eq
80002c8: 2800 cmpeq r0, #0
80002ca: bf1c itt ne
80002cc: f04f 31ff movne.w r1, #4294967295 @ 0xffffffff
80002d0: f04f 30ff movne.w r0, #4294967295 @ 0xffffffff
80002d4: f000 b988 b.w 80005e8 <__aeabi_idiv0>
80002d8: f1ad 0c08 sub.w ip, sp, #8
80002dc: e96d ce04 strd ip, lr, [sp, #-16]!
80002e0: f000 f806 bl 80002f0 <__udivmoddi4>
80002e4: f8dd e004 ldr.w lr, [sp, #4]
80002e8: e9dd 2302 ldrd r2, r3, [sp, #8]
80002ec: b004 add sp, #16
80002ee: 4770 bx lr
080002f0 <__udivmoddi4>:
80002f0: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
80002f4: 9d08 ldr r5, [sp, #32]
80002f6: 468e mov lr, r1
80002f8: 4604 mov r4, r0
80002fa: 4688 mov r8, r1
80002fc: 2b00 cmp r3, #0
80002fe: d14a bne.n 8000396 <__udivmoddi4+0xa6>
8000300: 428a cmp r2, r1
8000302: 4617 mov r7, r2
8000304: d962 bls.n 80003cc <__udivmoddi4+0xdc>
8000306: fab2 f682 clz r6, r2
800030a: b14e cbz r6, 8000320 <__udivmoddi4+0x30>
800030c: f1c6 0320 rsb r3, r6, #32
8000310: fa01 f806 lsl.w r8, r1, r6
8000314: fa20 f303 lsr.w r3, r0, r3
8000318: 40b7 lsls r7, r6
800031a: ea43 0808 orr.w r8, r3, r8
800031e: 40b4 lsls r4, r6
8000320: ea4f 4e17 mov.w lr, r7, lsr #16
8000324: fa1f fc87 uxth.w ip, r7
8000328: fbb8 f1fe udiv r1, r8, lr
800032c: 0c23 lsrs r3, r4, #16
800032e: fb0e 8811 mls r8, lr, r1, r8
8000332: ea43 4308 orr.w r3, r3, r8, lsl #16
8000336: fb01 f20c mul.w r2, r1, ip
800033a: 429a cmp r2, r3
800033c: d909 bls.n 8000352 <__udivmoddi4+0x62>
800033e: 18fb adds r3, r7, r3
8000340: f101 30ff add.w r0, r1, #4294967295 @ 0xffffffff
8000344: f080 80ea bcs.w 800051c <__udivmoddi4+0x22c>
8000348: 429a cmp r2, r3
800034a: f240 80e7 bls.w 800051c <__udivmoddi4+0x22c>
800034e: 3902 subs r1, #2
8000350: 443b add r3, r7
8000352: 1a9a subs r2, r3, r2
8000354: b2a3 uxth r3, r4
8000356: fbb2 f0fe udiv r0, r2, lr
800035a: fb0e 2210 mls r2, lr, r0, r2
800035e: ea43 4302 orr.w r3, r3, r2, lsl #16
8000362: fb00 fc0c mul.w ip, r0, ip
8000366: 459c cmp ip, r3
8000368: d909 bls.n 800037e <__udivmoddi4+0x8e>
800036a: 18fb adds r3, r7, r3
800036c: f100 32ff add.w r2, r0, #4294967295 @ 0xffffffff
8000370: f080 80d6 bcs.w 8000520 <__udivmoddi4+0x230>
8000374: 459c cmp ip, r3
8000376: f240 80d3 bls.w 8000520 <__udivmoddi4+0x230>
800037a: 443b add r3, r7
800037c: 3802 subs r0, #2
800037e: ea40 4001 orr.w r0, r0, r1, lsl #16
8000382: eba3 030c sub.w r3, r3, ip
8000386: 2100 movs r1, #0
8000388: b11d cbz r5, 8000392 <__udivmoddi4+0xa2>
800038a: 40f3 lsrs r3, r6
800038c: 2200 movs r2, #0
800038e: e9c5 3200 strd r3, r2, [r5]
8000392: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
8000396: 428b cmp r3, r1
8000398: d905 bls.n 80003a6 <__udivmoddi4+0xb6>
800039a: b10d cbz r5, 80003a0 <__udivmoddi4+0xb0>
800039c: e9c5 0100 strd r0, r1, [r5]
80003a0: 2100 movs r1, #0
80003a2: 4608 mov r0, r1
80003a4: e7f5 b.n 8000392 <__udivmoddi4+0xa2>
80003a6: fab3 f183 clz r1, r3
80003aa: 2900 cmp r1, #0
80003ac: d146 bne.n 800043c <__udivmoddi4+0x14c>
80003ae: 4573 cmp r3, lr
80003b0: d302 bcc.n 80003b8 <__udivmoddi4+0xc8>
80003b2: 4282 cmp r2, r0
80003b4: f200 8105 bhi.w 80005c2 <__udivmoddi4+0x2d2>
80003b8: 1a84 subs r4, r0, r2
80003ba: eb6e 0203 sbc.w r2, lr, r3
80003be: 2001 movs r0, #1
80003c0: 4690 mov r8, r2
80003c2: 2d00 cmp r5, #0
80003c4: d0e5 beq.n 8000392 <__udivmoddi4+0xa2>
80003c6: e9c5 4800 strd r4, r8, [r5]
80003ca: e7e2 b.n 8000392 <__udivmoddi4+0xa2>
80003cc: 2a00 cmp r2, #0
80003ce: f000 8090 beq.w 80004f2 <__udivmoddi4+0x202>
80003d2: fab2 f682 clz r6, r2
80003d6: 2e00 cmp r6, #0
80003d8: f040 80a4 bne.w 8000524 <__udivmoddi4+0x234>
80003dc: 1a8a subs r2, r1, r2
80003de: 0c03 lsrs r3, r0, #16
80003e0: ea4f 4e17 mov.w lr, r7, lsr #16
80003e4: b280 uxth r0, r0
80003e6: b2bc uxth r4, r7
80003e8: 2101 movs r1, #1
80003ea: fbb2 fcfe udiv ip, r2, lr
80003ee: fb0e 221c mls r2, lr, ip, r2
80003f2: ea43 4302 orr.w r3, r3, r2, lsl #16
80003f6: fb04 f20c mul.w r2, r4, ip
80003fa: 429a cmp r2, r3
80003fc: d907 bls.n 800040e <__udivmoddi4+0x11e>
80003fe: 18fb adds r3, r7, r3
8000400: f10c 38ff add.w r8, ip, #4294967295 @ 0xffffffff
8000404: d202 bcs.n 800040c <__udivmoddi4+0x11c>
8000406: 429a cmp r2, r3
8000408: f200 80e0 bhi.w 80005cc <__udivmoddi4+0x2dc>
800040c: 46c4 mov ip, r8
800040e: 1a9b subs r3, r3, r2
8000410: fbb3 f2fe udiv r2, r3, lr
8000414: fb0e 3312 mls r3, lr, r2, r3
8000418: ea40 4303 orr.w r3, r0, r3, lsl #16
800041c: fb02 f404 mul.w r4, r2, r4
8000420: 429c cmp r4, r3
8000422: d907 bls.n 8000434 <__udivmoddi4+0x144>
8000424: 18fb adds r3, r7, r3
8000426: f102 30ff add.w r0, r2, #4294967295 @ 0xffffffff
800042a: d202 bcs.n 8000432 <__udivmoddi4+0x142>
800042c: 429c cmp r4, r3
800042e: f200 80ca bhi.w 80005c6 <__udivmoddi4+0x2d6>
8000432: 4602 mov r2, r0
8000434: 1b1b subs r3, r3, r4
8000436: ea42 400c orr.w r0, r2, ip, lsl #16
800043a: e7a5 b.n 8000388 <__udivmoddi4+0x98>
800043c: f1c1 0620 rsb r6, r1, #32
8000440: 408b lsls r3, r1
8000442: fa22 f706 lsr.w r7, r2, r6
8000446: 431f orrs r7, r3
8000448: fa0e f401 lsl.w r4, lr, r1
800044c: fa20 f306 lsr.w r3, r0, r6
8000450: fa2e fe06 lsr.w lr, lr, r6
8000454: ea4f 4917 mov.w r9, r7, lsr #16
8000458: 4323 orrs r3, r4
800045a: fa00 f801 lsl.w r8, r0, r1
800045e: fa1f fc87 uxth.w ip, r7
8000462: fbbe f0f9 udiv r0, lr, r9
8000466: 0c1c lsrs r4, r3, #16
8000468: fb09 ee10 mls lr, r9, r0, lr
800046c: ea44 440e orr.w r4, r4, lr, lsl #16
8000470: fb00 fe0c mul.w lr, r0, ip
8000474: 45a6 cmp lr, r4
8000476: fa02 f201 lsl.w r2, r2, r1
800047a: d909 bls.n 8000490 <__udivmoddi4+0x1a0>
800047c: 193c adds r4, r7, r4
800047e: f100 3aff add.w sl, r0, #4294967295 @ 0xffffffff
8000482: f080 809c bcs.w 80005be <__udivmoddi4+0x2ce>
8000486: 45a6 cmp lr, r4
8000488: f240 8099 bls.w 80005be <__udivmoddi4+0x2ce>
800048c: 3802 subs r0, #2
800048e: 443c add r4, r7
8000490: eba4 040e sub.w r4, r4, lr
8000494: fa1f fe83 uxth.w lr, r3
8000498: fbb4 f3f9 udiv r3, r4, r9
800049c: fb09 4413 mls r4, r9, r3, r4
80004a0: ea4e 4404 orr.w r4, lr, r4, lsl #16
80004a4: fb03 fc0c mul.w ip, r3, ip
80004a8: 45a4 cmp ip, r4
80004aa: d908 bls.n 80004be <__udivmoddi4+0x1ce>
80004ac: 193c adds r4, r7, r4
80004ae: f103 3eff add.w lr, r3, #4294967295 @ 0xffffffff
80004b2: f080 8082 bcs.w 80005ba <__udivmoddi4+0x2ca>
80004b6: 45a4 cmp ip, r4
80004b8: d97f bls.n 80005ba <__udivmoddi4+0x2ca>
80004ba: 3b02 subs r3, #2
80004bc: 443c add r4, r7
80004be: ea43 4000 orr.w r0, r3, r0, lsl #16
80004c2: eba4 040c sub.w r4, r4, ip
80004c6: fba0 ec02 umull lr, ip, r0, r2
80004ca: 4564 cmp r4, ip
80004cc: 4673 mov r3, lr
80004ce: 46e1 mov r9, ip
80004d0: d362 bcc.n 8000598 <__udivmoddi4+0x2a8>
80004d2: d05f beq.n 8000594 <__udivmoddi4+0x2a4>
80004d4: b15d cbz r5, 80004ee <__udivmoddi4+0x1fe>
80004d6: ebb8 0203 subs.w r2, r8, r3
80004da: eb64 0409 sbc.w r4, r4, r9
80004de: fa04 f606 lsl.w r6, r4, r6
80004e2: fa22 f301 lsr.w r3, r2, r1
80004e6: 431e orrs r6, r3
80004e8: 40cc lsrs r4, r1
80004ea: e9c5 6400 strd r6, r4, [r5]
80004ee: 2100 movs r1, #0
80004f0: e74f b.n 8000392 <__udivmoddi4+0xa2>
80004f2: fbb1 fcf2 udiv ip, r1, r2
80004f6: 0c01 lsrs r1, r0, #16
80004f8: ea41 410e orr.w r1, r1, lr, lsl #16
80004fc: b280 uxth r0, r0
80004fe: ea40 4201 orr.w r2, r0, r1, lsl #16
8000502: 463b mov r3, r7
8000504: 4638 mov r0, r7
8000506: 463c mov r4, r7
8000508: 46b8 mov r8, r7
800050a: 46be mov lr, r7
800050c: 2620 movs r6, #32
800050e: fbb1 f1f7 udiv r1, r1, r7
8000512: eba2 0208 sub.w r2, r2, r8
8000516: ea41 410c orr.w r1, r1, ip, lsl #16
800051a: e766 b.n 80003ea <__udivmoddi4+0xfa>
800051c: 4601 mov r1, r0
800051e: e718 b.n 8000352 <__udivmoddi4+0x62>
8000520: 4610 mov r0, r2
8000522: e72c b.n 800037e <__udivmoddi4+0x8e>
8000524: f1c6 0220 rsb r2, r6, #32
8000528: fa2e f302 lsr.w r3, lr, r2
800052c: 40b7 lsls r7, r6
800052e: 40b1 lsls r1, r6
8000530: fa20 f202 lsr.w r2, r0, r2
8000534: ea4f 4e17 mov.w lr, r7, lsr #16
8000538: 430a orrs r2, r1
800053a: fbb3 f8fe udiv r8, r3, lr
800053e: b2bc uxth r4, r7
8000540: fb0e 3318 mls r3, lr, r8, r3
8000544: 0c11 lsrs r1, r2, #16
8000546: ea41 4103 orr.w r1, r1, r3, lsl #16
800054a: fb08 f904 mul.w r9, r8, r4
800054e: 40b0 lsls r0, r6
8000550: 4589 cmp r9, r1
8000552: ea4f 4310 mov.w r3, r0, lsr #16
8000556: b280 uxth r0, r0
8000558: d93e bls.n 80005d8 <__udivmoddi4+0x2e8>
800055a: 1879 adds r1, r7, r1
800055c: f108 3cff add.w ip, r8, #4294967295 @ 0xffffffff
8000560: d201 bcs.n 8000566 <__udivmoddi4+0x276>
8000562: 4589 cmp r9, r1
8000564: d81f bhi.n 80005a6 <__udivmoddi4+0x2b6>
8000566: eba1 0109 sub.w r1, r1, r9
800056a: fbb1 f9fe udiv r9, r1, lr
800056e: fb09 f804 mul.w r8, r9, r4
8000572: fb0e 1119 mls r1, lr, r9, r1
8000576: b292 uxth r2, r2
8000578: ea42 4201 orr.w r2, r2, r1, lsl #16
800057c: 4542 cmp r2, r8
800057e: d229 bcs.n 80005d4 <__udivmoddi4+0x2e4>
8000580: 18ba adds r2, r7, r2
8000582: f109 31ff add.w r1, r9, #4294967295 @ 0xffffffff
8000586: d2c4 bcs.n 8000512 <__udivmoddi4+0x222>
8000588: 4542 cmp r2, r8
800058a: d2c2 bcs.n 8000512 <__udivmoddi4+0x222>
800058c: f1a9 0102 sub.w r1, r9, #2
8000590: 443a add r2, r7
8000592: e7be b.n 8000512 <__udivmoddi4+0x222>
8000594: 45f0 cmp r8, lr
8000596: d29d bcs.n 80004d4 <__udivmoddi4+0x1e4>
8000598: ebbe 0302 subs.w r3, lr, r2
800059c: eb6c 0c07 sbc.w ip, ip, r7
80005a0: 3801 subs r0, #1
80005a2: 46e1 mov r9, ip
80005a4: e796 b.n 80004d4 <__udivmoddi4+0x1e4>
80005a6: eba7 0909 sub.w r9, r7, r9
80005aa: 4449 add r1, r9
80005ac: f1a8 0c02 sub.w ip, r8, #2
80005b0: fbb1 f9fe udiv r9, r1, lr
80005b4: fb09 f804 mul.w r8, r9, r4
80005b8: e7db b.n 8000572 <__udivmoddi4+0x282>
80005ba: 4673 mov r3, lr
80005bc: e77f b.n 80004be <__udivmoddi4+0x1ce>
80005be: 4650 mov r0, sl
80005c0: e766 b.n 8000490 <__udivmoddi4+0x1a0>
80005c2: 4608 mov r0, r1
80005c4: e6fd b.n 80003c2 <__udivmoddi4+0xd2>
80005c6: 443b add r3, r7
80005c8: 3a02 subs r2, #2
80005ca: e733 b.n 8000434 <__udivmoddi4+0x144>
80005cc: f1ac 0c02 sub.w ip, ip, #2
80005d0: 443b add r3, r7
80005d2: e71c b.n 800040e <__udivmoddi4+0x11e>
80005d4: 4649 mov r1, r9
80005d6: e79c b.n 8000512 <__udivmoddi4+0x222>
80005d8: eba1 0109 sub.w r1, r1, r9
80005dc: 46c4 mov ip, r8
80005de: fbb1 f9fe udiv r9, r1, lr
80005e2: fb09 f804 mul.w r8, r9, r4
80005e6: e7c4 b.n 8000572 <__udivmoddi4+0x282>
080005e8 <__aeabi_idiv0>:
80005e8: 4770 bx lr
80005ea: bf00 nop
080005ec <_write>:
int _write( int file, char *ptr, int len );
/* USER CODE END PFP */
/* Private user code ---------------------------------------------------------*/
/* USER CODE BEGIN 0 */
int _write( int file, char *ptr, int len ){
80005ec: b580 push {r7, lr}
80005ee: b084 sub sp, #16
80005f0: af00 add r7, sp, #0
80005f2: 60f8 str r0, [r7, #12]
80005f4: 60b9 str r1, [r7, #8]
80005f6: 607a str r2, [r7, #4]
HAL_UART_Transmit(&huart6, (uint8_t*)ptr, len, 1000);
80005f8: 687b ldr r3, [r7, #4]
80005fa: b29a uxth r2, r3
80005fc: f44f 737a mov.w r3, #1000 @ 0x3e8
8000600: 68b9 ldr r1, [r7, #8]
8000602: 4804 ldr r0, [pc, #16] @ (8000614 <_write+0x28>)
8000604: f002 fda0 bl 8003148 <HAL_UART_Transmit>
return len;
8000608: 687b ldr r3, [r7, #4]
}
800060a: 4618 mov r0, r3
800060c: 3710 adds r7, #16
800060e: 46bd mov sp, r7
8000610: bd80 pop {r7, pc}
8000612: bf00 nop
8000614: 20000088 .word 0x20000088
08000618 <taskBlinkLed>:
void taskBlinkLed(void *arg)
{
8000618: b580 push {r7, lr}
800061a: b082 sub sp, #8
800061c: af00 add r7, sp, #0
800061e: 6078 str r0, [r7, #4]
while(1){
HAL_GPIO_TogglePin(LED_BLUE_GPIO_PORT, LED_BLUE_GPIO_PIN);
8000620: 2120 movs r1, #32
8000622: 4804 ldr r0, [pc, #16] @ (8000634 <taskBlinkLed+0x1c>)
8000624: f001 f9f3 bl 8001a0e <HAL_GPIO_TogglePin>
vTaskDelay(pdMS_TO_TICKS(1000));
8000628: f44f 707a mov.w r0, #1000 @ 0x3e8
800062c: f004 fb3a bl 8004ca4 <vTaskDelay>
HAL_GPIO_TogglePin(LED_BLUE_GPIO_PORT, LED_BLUE_GPIO_PIN);
8000630: bf00 nop
8000632: e7f5 b.n 8000620 <taskBlinkLed+0x8>
8000634: 40020000 .word 0x40020000
08000638 <taskButtonLed>:
}
}
void taskButtonLed(void *arg)
{
8000638: b580 push {r7, lr}
800063a: b084 sub sp, #16
800063c: af00 add r7, sp, #0
800063e: 6078 str r0, [r7, #4]
while(1)
{
GPIO_PinState state = HAL_GPIO_ReadPin(BUTTON_GPIO_PORT, BUTTON_GPIO_PIN);
8000640: 2101 movs r1, #1
8000642: 4808 ldr r0, [pc, #32] @ (8000664 <taskButtonLed+0x2c>)
8000644: f001 f9b2 bl 80019ac <HAL_GPIO_ReadPin>
8000648: 4603 mov r3, r0
800064a: 73fb strb r3, [r7, #15]
HAL_GPIO_WritePin(LED_RED_GPIO_PORT, LED_RED_GPIO_PIN, state);
800064c: 7bfb ldrb r3, [r7, #15]
800064e: 461a mov r2, r3
8000650: 2180 movs r1, #128 @ 0x80
8000652: 4804 ldr r0, [pc, #16] @ (8000664 <taskButtonLed+0x2c>)
8000654: f001 f9c2 bl 80019dc <HAL_GPIO_WritePin>
vTaskDelay(pdMS_TO_TICKS(25)); // poll every 25 ms
8000658: 2019 movs r0, #25
800065a: f004 fb23 bl 8004ca4 <vTaskDelay>
{
800065e: bf00 nop
8000660: e7ee b.n 8000640 <taskButtonLed+0x8>
8000662: bf00 nop
8000664: 40020000 .word 0x40020000
08000668 <taskPrintHello>:
}
void taskPrintHello(void *arg)
{
8000668: b580 push {r7, lr}
800066a: b082 sub sp, #8
800066c: af00 add r7, sp, #0
800066e: 6078 str r0, [r7, #4]
while(1)
{
printf("Hallo Welt %d\n\r", printCount);
8000670: 4b08 ldr r3, [pc, #32] @ (8000694 <taskPrintHello+0x2c>)
8000672: 781b ldrb r3, [r3, #0]
8000674: 4619 mov r1, r3
8000676: 4808 ldr r0, [pc, #32] @ (8000698 <taskPrintHello+0x30>)
8000678: f006 f8ea bl 8006850 <iprintf>
printCount++;
800067c: 4b05 ldr r3, [pc, #20] @ (8000694 <taskPrintHello+0x2c>)
800067e: 781b ldrb r3, [r3, #0]
8000680: 3301 adds r3, #1
8000682: b2da uxtb r2, r3
8000684: 4b03 ldr r3, [pc, #12] @ (8000694 <taskPrintHello+0x2c>)
8000686: 701a strb r2, [r3, #0]
vTaskDelay(pdMS_TO_TICKS(1000));
8000688: f44f 707a mov.w r0, #1000 @ 0x3e8
800068c: f004 fb0a bl 8004ca4 <vTaskDelay>
{
8000690: bf00 nop
8000692: e7ed b.n 8000670 <taskPrintHello+0x8>
8000694: 20000114 .word 0x20000114
8000698: 08007568 .word 0x08007568
0800069c <main>:
/**
* @brief The application entry point.
* @retval int
*/
int main(void)
{
800069c: b580 push {r7, lr}
800069e: b082 sub sp, #8
80006a0: af02 add r7, sp, #8
/* USER CODE END 1 */
/* MCU Configuration--------------------------------------------------------*/
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
80006a2: f000 fed8 bl 8001456 <HAL_Init>
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* Configure the system clock */
SystemClock_Config();
80006a6: f000 f849 bl 800073c <SystemClock_Config>
/* USER CODE BEGIN SysInit */
/* USER CODE END SysInit */
/* Initialize all configured peripherals */
MX_GPIO_Init();
80006aa: f000 f8e7 bl 800087c <MX_GPIO_Init>
MX_USART6_UART_Init();
80006ae: f000 f8b5 bl 800081c <MX_USART6_UART_Init>
/* USER CODE END 2 */
/* Init scheduler */
osKernelInitialize();
80006b2: f003 fa09 bl 8003ac8 <osKernelInitialize>
/* add queues, ... */
/* USER CODE END RTOS_QUEUES */
/* Create the thread(s) */
/* creation of defaultTask */
defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes);
80006b6: 4a18 ldr r2, [pc, #96] @ (8000718 <main+0x7c>)
80006b8: 2100 movs r1, #0
80006ba: 4818 ldr r0, [pc, #96] @ (800071c <main+0x80>)
80006bc: f003 fa6e bl 8003b9c <osThreadNew>
80006c0: 4603 mov r3, r0
80006c2: 4a17 ldr r2, [pc, #92] @ (8000720 <main+0x84>)
80006c4: 6013 str r3, [r2, #0]
/* USER CODE BEGIN RTOS_THREADS */
/* add threads, ... */
// create tasks
xTaskCreate(taskBlinkLed, "taskBlinkLed", 256, NULL, 1, NULL);
80006c6: 2300 movs r3, #0
80006c8: 9301 str r3, [sp, #4]
80006ca: 2301 movs r3, #1
80006cc: 9300 str r3, [sp, #0]
80006ce: 2300 movs r3, #0
80006d0: f44f 7280 mov.w r2, #256 @ 0x100
80006d4: 4913 ldr r1, [pc, #76] @ (8000724 <main+0x88>)
80006d6: 4814 ldr r0, [pc, #80] @ (8000728 <main+0x8c>)
80006d8: f004 f99c bl 8004a14 <xTaskCreate>
xTaskCreate(taskButtonLed, "taskButtonLed", 256, NULL, 2, NULL);
80006dc: 2300 movs r3, #0
80006de: 9301 str r3, [sp, #4]
80006e0: 2302 movs r3, #2
80006e2: 9300 str r3, [sp, #0]
80006e4: 2300 movs r3, #0
80006e6: f44f 7280 mov.w r2, #256 @ 0x100
80006ea: 4910 ldr r1, [pc, #64] @ (800072c <main+0x90>)
80006ec: 4810 ldr r0, [pc, #64] @ (8000730 <main+0x94>)
80006ee: f004 f991 bl 8004a14 <xTaskCreate>
xTaskCreate(taskPrintHello, "taskPrintHello", 256, NULL, 1, NULL);
80006f2: 2300 movs r3, #0
80006f4: 9301 str r3, [sp, #4]
80006f6: 2301 movs r3, #1
80006f8: 9300 str r3, [sp, #0]
80006fa: 2300 movs r3, #0
80006fc: f44f 7280 mov.w r2, #256 @ 0x100
8000700: 490c ldr r1, [pc, #48] @ (8000734 <main+0x98>)
8000702: 480d ldr r0, [pc, #52] @ (8000738 <main+0x9c>)
8000704: f004 f986 bl 8004a14 <xTaskCreate>
/* USER CODE BEGIN RTOS_EVENTS */
/* add events, ... */
/* USER CODE END RTOS_EVENTS */
/* Start scheduler */
osKernelStart();
8000708: f003 fa12 bl 8003b30 <osKernelStart>
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
vTaskDelay(pdMS_TO_TICKS(10000));
800070c: f242 7010 movw r0, #10000 @ 0x2710
8000710: f004 fac8 bl 8004ca4 <vTaskDelay>
8000714: e7fa b.n 800070c <main+0x70>
8000716: bf00 nop
8000718: 080075c0 .word 0x080075c0
800071c: 08001045 .word 0x08001045
8000720: 20000110 .word 0x20000110
8000724: 08007578 .word 0x08007578
8000728: 08000619 .word 0x08000619
800072c: 08007588 .word 0x08007588
8000730: 08000639 .word 0x08000639
8000734: 08007598 .word 0x08007598
8000738: 08000669 .word 0x08000669
0800073c <SystemClock_Config>:
/**
* @brief System Clock Configuration
* @retval None
*/
void SystemClock_Config(void)
{
800073c: b580 push {r7, lr}
800073e: b094 sub sp, #80 @ 0x50
8000740: af00 add r7, sp, #0
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
8000742: f107 0320 add.w r3, r7, #32
8000746: 2230 movs r2, #48 @ 0x30
8000748: 2100 movs r1, #0
800074a: 4618 mov r0, r3
800074c: f006 f8d5 bl 80068fa <memset>
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
8000750: f107 030c add.w r3, r7, #12
8000754: 2200 movs r2, #0
8000756: 601a str r2, [r3, #0]
8000758: 605a str r2, [r3, #4]
800075a: 609a str r2, [r3, #8]
800075c: 60da str r2, [r3, #12]
800075e: 611a str r2, [r3, #16]
/** Configure LSE Drive Capability
*/
HAL_PWR_EnableBkUpAccess();
8000760: f001 f970 bl 8001a44 <HAL_PWR_EnableBkUpAccess>
/** Configure the main internal regulator output voltage
*/
__HAL_RCC_PWR_CLK_ENABLE();
8000764: 4b2b ldr r3, [pc, #172] @ (8000814 <SystemClock_Config+0xd8>)
8000766: 6c1b ldr r3, [r3, #64] @ 0x40
8000768: 4a2a ldr r2, [pc, #168] @ (8000814 <SystemClock_Config+0xd8>)
800076a: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
800076e: 6413 str r3, [r2, #64] @ 0x40
8000770: 4b28 ldr r3, [pc, #160] @ (8000814 <SystemClock_Config+0xd8>)
8000772: 6c1b ldr r3, [r3, #64] @ 0x40
8000774: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
8000778: 60bb str r3, [r7, #8]
800077a: 68bb ldr r3, [r7, #8]
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
800077c: 4b26 ldr r3, [pc, #152] @ (8000818 <SystemClock_Config+0xdc>)
800077e: 681b ldr r3, [r3, #0]
8000780: 4a25 ldr r2, [pc, #148] @ (8000818 <SystemClock_Config+0xdc>)
8000782: f443 4340 orr.w r3, r3, #49152 @ 0xc000
8000786: 6013 str r3, [r2, #0]
8000788: 4b23 ldr r3, [pc, #140] @ (8000818 <SystemClock_Config+0xdc>)
800078a: 681b ldr r3, [r3, #0]
800078c: f403 4340 and.w r3, r3, #49152 @ 0xc000
8000790: 607b str r3, [r7, #4]
8000792: 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;
8000794: 2301 movs r3, #1
8000796: 623b str r3, [r7, #32]
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
8000798: f44f 3380 mov.w r3, #65536 @ 0x10000
800079c: 627b str r3, [r7, #36] @ 0x24
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
800079e: 2302 movs r3, #2
80007a0: 63bb str r3, [r7, #56] @ 0x38
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
80007a2: f44f 0380 mov.w r3, #4194304 @ 0x400000
80007a6: 63fb str r3, [r7, #60] @ 0x3c
RCC_OscInitStruct.PLL.PLLM = 25;
80007a8: 2319 movs r3, #25
80007aa: 643b str r3, [r7, #64] @ 0x40
RCC_OscInitStruct.PLL.PLLN = 432;
80007ac: f44f 73d8 mov.w r3, #432 @ 0x1b0
80007b0: 647b str r3, [r7, #68] @ 0x44
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
80007b2: 2302 movs r3, #2
80007b4: 64bb str r3, [r7, #72] @ 0x48
RCC_OscInitStruct.PLL.PLLQ = 9;
80007b6: 2309 movs r3, #9
80007b8: 64fb str r3, [r7, #76] @ 0x4c
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
80007ba: f107 0320 add.w r3, r7, #32
80007be: 4618 mov r0, r3
80007c0: f001 f9a0 bl 8001b04 <HAL_RCC_OscConfig>
80007c4: 4603 mov r3, r0
80007c6: 2b00 cmp r3, #0
80007c8: d001 beq.n 80007ce <SystemClock_Config+0x92>
{
Error_Handler();
80007ca: f000 fc55 bl 8001078 <Error_Handler>
}
/** Activate the Over-Drive mode
*/
if (HAL_PWREx_EnableOverDrive() != HAL_OK)
80007ce: f001 f949 bl 8001a64 <HAL_PWREx_EnableOverDrive>
80007d2: 4603 mov r3, r0
80007d4: 2b00 cmp r3, #0
80007d6: d001 beq.n 80007dc <SystemClock_Config+0xa0>
{
Error_Handler();
80007d8: f000 fc4e bl 8001078 <Error_Handler>
}
/** Initializes the CPU, AHB and APB buses clocks
*/
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
80007dc: 230f movs r3, #15
80007de: 60fb str r3, [r7, #12]
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
80007e0: 2302 movs r3, #2
80007e2: 613b str r3, [r7, #16]
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
80007e4: 2300 movs r3, #0
80007e6: 617b str r3, [r7, #20]
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV4;
80007e8: f44f 53a0 mov.w r3, #5120 @ 0x1400
80007ec: 61bb str r3, [r7, #24]
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV2;
80007ee: f44f 5380 mov.w r3, #4096 @ 0x1000
80007f2: 61fb str r3, [r7, #28]
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_7) != HAL_OK)
80007f4: f107 030c add.w r3, r7, #12
80007f8: 2107 movs r1, #7
80007fa: 4618 mov r0, r3
80007fc: f001 fc26 bl 800204c <HAL_RCC_ClockConfig>
8000800: 4603 mov r3, r0
8000802: 2b00 cmp r3, #0
8000804: d001 beq.n 800080a <SystemClock_Config+0xce>
{
Error_Handler();
8000806: f000 fc37 bl 8001078 <Error_Handler>
}
}
800080a: bf00 nop
800080c: 3750 adds r7, #80 @ 0x50
800080e: 46bd mov sp, r7
8000810: bd80 pop {r7, pc}
8000812: bf00 nop
8000814: 40023800 .word 0x40023800
8000818: 40007000 .word 0x40007000
0800081c <MX_USART6_UART_Init>:
* @brief USART6 Initialization Function
* @param None
* @retval None
*/
static void MX_USART6_UART_Init(void)
{
800081c: b580 push {r7, lr}
800081e: af00 add r7, sp, #0
/* USER CODE END USART6_Init 0 */
/* USER CODE BEGIN USART6_Init 1 */
/* USER CODE END USART6_Init 1 */
huart6.Instance = USART6;
8000820: 4b14 ldr r3, [pc, #80] @ (8000874 <MX_USART6_UART_Init+0x58>)
8000822: 4a15 ldr r2, [pc, #84] @ (8000878 <MX_USART6_UART_Init+0x5c>)
8000824: 601a str r2, [r3, #0]
huart6.Init.BaudRate = 115200;
8000826: 4b13 ldr r3, [pc, #76] @ (8000874 <MX_USART6_UART_Init+0x58>)
8000828: f44f 32e1 mov.w r2, #115200 @ 0x1c200
800082c: 605a str r2, [r3, #4]
huart6.Init.WordLength = UART_WORDLENGTH_8B;
800082e: 4b11 ldr r3, [pc, #68] @ (8000874 <MX_USART6_UART_Init+0x58>)
8000830: 2200 movs r2, #0
8000832: 609a str r2, [r3, #8]
huart6.Init.StopBits = UART_STOPBITS_1;
8000834: 4b0f ldr r3, [pc, #60] @ (8000874 <MX_USART6_UART_Init+0x58>)
8000836: 2200 movs r2, #0
8000838: 60da str r2, [r3, #12]
huart6.Init.Parity = UART_PARITY_NONE;
800083a: 4b0e ldr r3, [pc, #56] @ (8000874 <MX_USART6_UART_Init+0x58>)
800083c: 2200 movs r2, #0
800083e: 611a str r2, [r3, #16]
huart6.Init.Mode = UART_MODE_TX_RX;
8000840: 4b0c ldr r3, [pc, #48] @ (8000874 <MX_USART6_UART_Init+0x58>)
8000842: 220c movs r2, #12
8000844: 615a str r2, [r3, #20]
huart6.Init.HwFlowCtl = UART_HWCONTROL_NONE;
8000846: 4b0b ldr r3, [pc, #44] @ (8000874 <MX_USART6_UART_Init+0x58>)
8000848: 2200 movs r2, #0
800084a: 619a str r2, [r3, #24]
huart6.Init.OverSampling = UART_OVERSAMPLING_16;
800084c: 4b09 ldr r3, [pc, #36] @ (8000874 <MX_USART6_UART_Init+0x58>)
800084e: 2200 movs r2, #0
8000850: 61da str r2, [r3, #28]
huart6.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
8000852: 4b08 ldr r3, [pc, #32] @ (8000874 <MX_USART6_UART_Init+0x58>)
8000854: 2200 movs r2, #0
8000856: 621a str r2, [r3, #32]
huart6.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
8000858: 4b06 ldr r3, [pc, #24] @ (8000874 <MX_USART6_UART_Init+0x58>)
800085a: 2200 movs r2, #0
800085c: 625a str r2, [r3, #36] @ 0x24
if (HAL_UART_Init(&huart6) != HAL_OK)
800085e: 4805 ldr r0, [pc, #20] @ (8000874 <MX_USART6_UART_Init+0x58>)
8000860: f002 fc24 bl 80030ac <HAL_UART_Init>
8000864: 4603 mov r3, r0
8000866: 2b00 cmp r3, #0
8000868: d001 beq.n 800086e <MX_USART6_UART_Init+0x52>
{
Error_Handler();
800086a: f000 fc05 bl 8001078 <Error_Handler>
}
/* USER CODE BEGIN USART6_Init 2 */
/* USER CODE END USART6_Init 2 */
}
800086e: bf00 nop
8000870: bd80 pop {r7, pc}
8000872: bf00 nop
8000874: 20000088 .word 0x20000088
8000878: 40011400 .word 0x40011400
0800087c <MX_GPIO_Init>:
* @brief GPIO Initialization Function
* @param None
* @retval None
*/
static void MX_GPIO_Init(void)
{
800087c: b580 push {r7, lr}
800087e: b08e sub sp, #56 @ 0x38
8000880: af00 add r7, sp, #0
GPIO_InitTypeDef GPIO_InitStruct = {0};
8000882: f107 0324 add.w r3, r7, #36 @ 0x24
8000886: 2200 movs r2, #0
8000888: 601a str r2, [r3, #0]
800088a: 605a str r2, [r3, #4]
800088c: 609a str r2, [r3, #8]
800088e: 60da str r2, [r3, #12]
8000890: 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_GPIOE_CLK_ENABLE();
8000892: 4bb2 ldr r3, [pc, #712] @ (8000b5c <MX_GPIO_Init+0x2e0>)
8000894: 6b1b ldr r3, [r3, #48] @ 0x30
8000896: 4ab1 ldr r2, [pc, #708] @ (8000b5c <MX_GPIO_Init+0x2e0>)
8000898: f043 0310 orr.w r3, r3, #16
800089c: 6313 str r3, [r2, #48] @ 0x30
800089e: 4baf ldr r3, [pc, #700] @ (8000b5c <MX_GPIO_Init+0x2e0>)
80008a0: 6b1b ldr r3, [r3, #48] @ 0x30
80008a2: f003 0310 and.w r3, r3, #16
80008a6: 623b str r3, [r7, #32]
80008a8: 6a3b ldr r3, [r7, #32]
__HAL_RCC_GPIOB_CLK_ENABLE();
80008aa: 4bac ldr r3, [pc, #688] @ (8000b5c <MX_GPIO_Init+0x2e0>)
80008ac: 6b1b ldr r3, [r3, #48] @ 0x30
80008ae: 4aab ldr r2, [pc, #684] @ (8000b5c <MX_GPIO_Init+0x2e0>)
80008b0: f043 0302 orr.w r3, r3, #2
80008b4: 6313 str r3, [r2, #48] @ 0x30
80008b6: 4ba9 ldr r3, [pc, #676] @ (8000b5c <MX_GPIO_Init+0x2e0>)
80008b8: 6b1b ldr r3, [r3, #48] @ 0x30
80008ba: f003 0302 and.w r3, r3, #2
80008be: 61fb str r3, [r7, #28]
80008c0: 69fb ldr r3, [r7, #28]
__HAL_RCC_GPIOG_CLK_ENABLE();
80008c2: 4ba6 ldr r3, [pc, #664] @ (8000b5c <MX_GPIO_Init+0x2e0>)
80008c4: 6b1b ldr r3, [r3, #48] @ 0x30
80008c6: 4aa5 ldr r2, [pc, #660] @ (8000b5c <MX_GPIO_Init+0x2e0>)
80008c8: f043 0340 orr.w r3, r3, #64 @ 0x40
80008cc: 6313 str r3, [r2, #48] @ 0x30
80008ce: 4ba3 ldr r3, [pc, #652] @ (8000b5c <MX_GPIO_Init+0x2e0>)
80008d0: 6b1b ldr r3, [r3, #48] @ 0x30
80008d2: f003 0340 and.w r3, r3, #64 @ 0x40
80008d6: 61bb str r3, [r7, #24]
80008d8: 69bb ldr r3, [r7, #24]
__HAL_RCC_GPIOD_CLK_ENABLE();
80008da: 4ba0 ldr r3, [pc, #640] @ (8000b5c <MX_GPIO_Init+0x2e0>)
80008dc: 6b1b ldr r3, [r3, #48] @ 0x30
80008de: 4a9f ldr r2, [pc, #636] @ (8000b5c <MX_GPIO_Init+0x2e0>)
80008e0: f043 0308 orr.w r3, r3, #8
80008e4: 6313 str r3, [r2, #48] @ 0x30
80008e6: 4b9d ldr r3, [pc, #628] @ (8000b5c <MX_GPIO_Init+0x2e0>)
80008e8: 6b1b ldr r3, [r3, #48] @ 0x30
80008ea: f003 0308 and.w r3, r3, #8
80008ee: 617b str r3, [r7, #20]
80008f0: 697b ldr r3, [r7, #20]
__HAL_RCC_GPIOC_CLK_ENABLE();
80008f2: 4b9a ldr r3, [pc, #616] @ (8000b5c <MX_GPIO_Init+0x2e0>)
80008f4: 6b1b ldr r3, [r3, #48] @ 0x30
80008f6: 4a99 ldr r2, [pc, #612] @ (8000b5c <MX_GPIO_Init+0x2e0>)
80008f8: f043 0304 orr.w r3, r3, #4
80008fc: 6313 str r3, [r2, #48] @ 0x30
80008fe: 4b97 ldr r3, [pc, #604] @ (8000b5c <MX_GPIO_Init+0x2e0>)
8000900: 6b1b ldr r3, [r3, #48] @ 0x30
8000902: f003 0304 and.w r3, r3, #4
8000906: 613b str r3, [r7, #16]
8000908: 693b ldr r3, [r7, #16]
__HAL_RCC_GPIOA_CLK_ENABLE();
800090a: 4b94 ldr r3, [pc, #592] @ (8000b5c <MX_GPIO_Init+0x2e0>)
800090c: 6b1b ldr r3, [r3, #48] @ 0x30
800090e: 4a93 ldr r2, [pc, #588] @ (8000b5c <MX_GPIO_Init+0x2e0>)
8000910: f043 0301 orr.w r3, r3, #1
8000914: 6313 str r3, [r2, #48] @ 0x30
8000916: 4b91 ldr r3, [pc, #580] @ (8000b5c <MX_GPIO_Init+0x2e0>)
8000918: 6b1b ldr r3, [r3, #48] @ 0x30
800091a: f003 0301 and.w r3, r3, #1
800091e: 60fb str r3, [r7, #12]
8000920: 68fb ldr r3, [r7, #12]
__HAL_RCC_GPIOI_CLK_ENABLE();
8000922: 4b8e ldr r3, [pc, #568] @ (8000b5c <MX_GPIO_Init+0x2e0>)
8000924: 6b1b ldr r3, [r3, #48] @ 0x30
8000926: 4a8d ldr r2, [pc, #564] @ (8000b5c <MX_GPIO_Init+0x2e0>)
8000928: f443 7380 orr.w r3, r3, #256 @ 0x100
800092c: 6313 str r3, [r2, #48] @ 0x30
800092e: 4b8b ldr r3, [pc, #556] @ (8000b5c <MX_GPIO_Init+0x2e0>)
8000930: 6b1b ldr r3, [r3, #48] @ 0x30
8000932: f403 7380 and.w r3, r3, #256 @ 0x100
8000936: 60bb str r3, [r7, #8]
8000938: 68bb ldr r3, [r7, #8]
__HAL_RCC_GPIOH_CLK_ENABLE();
800093a: 4b88 ldr r3, [pc, #544] @ (8000b5c <MX_GPIO_Init+0x2e0>)
800093c: 6b1b ldr r3, [r3, #48] @ 0x30
800093e: 4a87 ldr r2, [pc, #540] @ (8000b5c <MX_GPIO_Init+0x2e0>)
8000940: f043 0380 orr.w r3, r3, #128 @ 0x80
8000944: 6313 str r3, [r2, #48] @ 0x30
8000946: 4b85 ldr r3, [pc, #532] @ (8000b5c <MX_GPIO_Init+0x2e0>)
8000948: 6b1b ldr r3, [r3, #48] @ 0x30
800094a: f003 0380 and.w r3, r3, #128 @ 0x80
800094e: 607b str r3, [r7, #4]
8000950: 687b ldr r3, [r7, #4]
__HAL_RCC_GPIOF_CLK_ENABLE();
8000952: 4b82 ldr r3, [pc, #520] @ (8000b5c <MX_GPIO_Init+0x2e0>)
8000954: 6b1b ldr r3, [r3, #48] @ 0x30
8000956: 4a81 ldr r2, [pc, #516] @ (8000b5c <MX_GPIO_Init+0x2e0>)
8000958: f043 0320 orr.w r3, r3, #32
800095c: 6313 str r3, [r2, #48] @ 0x30
800095e: 4b7f ldr r3, [pc, #508] @ (8000b5c <MX_GPIO_Init+0x2e0>)
8000960: 6b1b ldr r3, [r3, #48] @ 0x30
8000962: f003 0320 and.w r3, r3, #32
8000966: 603b str r3, [r7, #0]
8000968: 683b ldr r3, [r7, #0]
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOE, ARD_D7_GPIO_Pin|ARD_D8_GPIO_Pin, GPIO_PIN_RESET);
800096a: 2200 movs r2, #0
800096c: 2118 movs r1, #24
800096e: 487c ldr r0, [pc, #496] @ (8000b60 <MX_GPIO_Init+0x2e4>)
8000970: f001 f834 bl 80019dc <HAL_GPIO_WritePin>
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOG, WIFI_RST_Pin|WIFI_GPIO_0_Pin|PMOD_GPIO_0_Pin|USB_OTGFS_PPWR_EN_Pin, GPIO_PIN_RESET);
8000974: 2200 movs r2, #0
8000976: f44f 41e2 mov.w r1, #28928 @ 0x7100
800097a: 487a ldr r0, [pc, #488] @ (8000b64 <MX_GPIO_Init+0x2e8>)
800097c: f001 f82e bl 80019dc <HAL_GPIO_WritePin>
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOD, WIFI_GPIO_2_Pin|WIFI_CH_PD_Pin, GPIO_PIN_RESET);
8000980: 2200 movs r2, #0
8000982: 2148 movs r1, #72 @ 0x48
8000984: 4878 ldr r0, [pc, #480] @ (8000b68 <MX_GPIO_Init+0x2ec>)
8000986: f001 f829 bl 80019dc <HAL_GPIO_WritePin>
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOC, STMOD_UART4_RXD_s_Pin|ARD_D2_GPIO_Pin, GPIO_PIN_RESET);
800098a: 2200 movs r2, #0
800098c: f44f 6102 mov.w r1, #2080 @ 0x820
8000990: 4876 ldr r0, [pc, #472] @ (8000b6c <MX_GPIO_Init+0x2f0>)
8000992: f001 f823 bl 80019dc <HAL_GPIO_WritePin>
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOI, PMOD_SPI2_MOSI_Pin|PMOD_SPI2_MISO_Pin|GPIO_PIN_10, GPIO_PIN_RESET);
8000996: 2200 movs r2, #0
8000998: f240 410c movw r1, #1036 @ 0x40c
800099c: 4874 ldr r0, [pc, #464] @ (8000b70 <MX_GPIO_Init+0x2f4>)
800099e: f001 f81d bl 80019dc <HAL_GPIO_WritePin>
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOH, PMOD_SEL_0_Pin|CTP_RST_Pin, GPIO_PIN_SET);
80009a2: 2201 movs r2, #1
80009a4: f44f 4102 mov.w r1, #33280 @ 0x8200
80009a8: 4872 ldr r0, [pc, #456] @ (8000b74 <MX_GPIO_Init+0x2f8>)
80009aa: f001 f817 bl 80019dc <HAL_GPIO_WritePin>
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOA, USB_OTG_FS_ID_Pin|GPIO_PIN_5|SYS_LD_USER1_Pin, GPIO_PIN_RESET);
80009ae: 2200 movs r2, #0
80009b0: f44f 6194 mov.w r1, #1184 @ 0x4a0
80009b4: 4870 ldr r0, [pc, #448] @ (8000b78 <MX_GPIO_Init+0x2fc>)
80009b6: f001 f811 bl 80019dc <HAL_GPIO_WritePin>
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOH, PMOD_GPIO_1_Pin|ARD_D4_GPIO_Pin|USB_OTGHS_PPWR_EN_Pin|LCD_RST_Pin, GPIO_PIN_RESET);
80009ba: 2200 movs r2, #0
80009bc: f241 018c movw r1, #4236 @ 0x108c
80009c0: 486c ldr r0, [pc, #432] @ (8000b74 <MX_GPIO_Init+0x2f8>)
80009c2: f001 f80b bl 80019dc <HAL_GPIO_WritePin>
/*Configure GPIO pin Output Level */
HAL_GPIO_WritePin(GPIOB, USB_OTG_HS_ID_Pin|SYS_LD_USER2_Pin, GPIO_PIN_RESET);
80009c6: 2200 movs r2, #0
80009c8: f241 0102 movw r1, #4098 @ 0x1002
80009cc: 486b ldr r0, [pc, #428] @ (8000b7c <MX_GPIO_Init+0x300>)
80009ce: f001 f805 bl 80019dc <HAL_GPIO_WritePin>
/*Configure GPIO pins : ARD_D7_GPIO_Pin ARD_D8_GPIO_Pin */
GPIO_InitStruct.Pin = ARD_D7_GPIO_Pin|ARD_D8_GPIO_Pin;
80009d2: 2318 movs r3, #24
80009d4: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
80009d6: 2301 movs r3, #1
80009d8: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
80009da: 2300 movs r3, #0
80009dc: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
80009de: 2300 movs r3, #0
80009e0: 633b str r3, [r7, #48] @ 0x30
HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
80009e2: f107 0324 add.w r3, r7, #36 @ 0x24
80009e6: 4619 mov r1, r3
80009e8: 485d ldr r0, [pc, #372] @ (8000b60 <MX_GPIO_Init+0x2e4>)
80009ea: f000 fe43 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : QSPI_D2_Pin */
GPIO_InitStruct.Pin = QSPI_D2_Pin;
80009ee: 2304 movs r3, #4
80009f0: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
80009f2: 2302 movs r3, #2
80009f4: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
80009f6: 2300 movs r3, #0
80009f8: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
80009fa: 2303 movs r3, #3
80009fc: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF9_QUADSPI;
80009fe: 2309 movs r3, #9
8000a00: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(QSPI_D2_GPIO_Port, &GPIO_InitStruct);
8000a02: f107 0324 add.w r3, r7, #36 @ 0x24
8000a06: 4619 mov r1, r3
8000a08: 4855 ldr r0, [pc, #340] @ (8000b60 <MX_GPIO_Init+0x2e4>)
8000a0a: f000 fe33 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : PSRAM_NBL1_Pin PSRAM_NBL0_Pin LCD_PSRAM_D10_Pin LCD_PSRAM_D5_Pin
LCD_PSRAM_D6_Pin LCD_PSRAM_D8_Pin LCD_PSRAM_D11_Pin LCD_PSRAM_D4_Pin
LCD_PSRAM_D7_Pin LCD_PSRAM_D9_Pin LCD_PSRAM_D12_Pin */
GPIO_InitStruct.Pin = PSRAM_NBL1_Pin|PSRAM_NBL0_Pin|LCD_PSRAM_D10_Pin|LCD_PSRAM_D5_Pin
8000a0e: f64f 7383 movw r3, #65411 @ 0xff83
8000a12: 627b str r3, [r7, #36] @ 0x24
|LCD_PSRAM_D6_Pin|LCD_PSRAM_D8_Pin|LCD_PSRAM_D11_Pin|LCD_PSRAM_D4_Pin
|LCD_PSRAM_D7_Pin|LCD_PSRAM_D9_Pin|LCD_PSRAM_D12_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000a14: 2302 movs r3, #2
8000a16: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000a18: 2300 movs r3, #0
8000a1a: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000a1c: 2303 movs r3, #3
8000a1e: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF12_FMC;
8000a20: 230c movs r3, #12
8000a22: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
8000a24: f107 0324 add.w r3, r7, #36 @ 0x24
8000a28: 4619 mov r1, r3
8000a2a: 484d ldr r0, [pc, #308] @ (8000b60 <MX_GPIO_Init+0x2e4>)
8000a2c: f000 fe22 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : SAI2_I2C1_SCL_Pin SAI2_I2C1_SDA_Pin */
GPIO_InitStruct.Pin = SAI2_I2C1_SCL_Pin|SAI2_I2C1_SDA_Pin;
8000a30: f44f 7340 mov.w r3, #768 @ 0x300
8000a34: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
8000a36: 2312 movs r3, #18
8000a38: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000a3a: 2300 movs r3, #0
8000a3c: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000a3e: 2303 movs r3, #3
8000a40: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF4_I2C1;
8000a42: 2304 movs r3, #4
8000a44: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
8000a46: f107 0324 add.w r3, r7, #36 @ 0x24
8000a4a: 4619 mov r1, r3
8000a4c: 484b ldr r0, [pc, #300] @ (8000b7c <MX_GPIO_Init+0x300>)
8000a4e: f000 fe11 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : ARD_D11_TIM3_CH2_SPI1_MOSI_Pin ARD_D12_SPI1_MISO_Pin */
GPIO_InitStruct.Pin = ARD_D11_TIM3_CH2_SPI1_MOSI_Pin|ARD_D12_SPI1_MISO_Pin;
8000a52: 2330 movs r3, #48 @ 0x30
8000a54: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000a56: 2302 movs r3, #2
8000a58: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000a5a: 2300 movs r3, #0
8000a5c: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000a5e: 2303 movs r3, #3
8000a60: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF5_SPI1;
8000a62: 2305 movs r3, #5
8000a64: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
8000a66: f107 0324 add.w r3, r7, #36 @ 0x24
8000a6a: 4619 mov r1, r3
8000a6c: 4843 ldr r0, [pc, #268] @ (8000b7c <MX_GPIO_Init+0x300>)
8000a6e: f000 fe01 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : WIFI_RST_Pin WIFI_GPIO_0_Pin PMOD_GPIO_0_Pin USB_OTGFS_PPWR_EN_Pin */
GPIO_InitStruct.Pin = WIFI_RST_Pin|WIFI_GPIO_0_Pin|PMOD_GPIO_0_Pin|USB_OTGFS_PPWR_EN_Pin;
8000a72: f44f 43e2 mov.w r3, #28928 @ 0x7100
8000a76: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
8000a78: 2301 movs r3, #1
8000a7a: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000a7c: 2300 movs r3, #0
8000a7e: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000a80: 2300 movs r3, #0
8000a82: 633b str r3, [r7, #48] @ 0x30
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
8000a84: f107 0324 add.w r3, r7, #36 @ 0x24
8000a88: 4619 mov r1, r3
8000a8a: 4836 ldr r0, [pc, #216] @ (8000b64 <MX_GPIO_Init+0x2e8>)
8000a8c: f000 fdf2 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : PSRAM_NE1_Pin LCD_PSRAM_D2_Pin LCD_PSRAM_NWE_Pin LCD_PSRAM_D3_Pin
LCD_PSRAM_NWED4_Pin LCD_PSRAM_D1_Pin LCD_PSRAM_D0_Pin PSRAM_A17_Pin
PSRAM_A16_Pin LCD_PSRAM_D15_Pin LCD_PSRAM_D14_Pin LCD_PSRAM_D13_Pin */
GPIO_InitStruct.Pin = PSRAM_NE1_Pin|LCD_PSRAM_D2_Pin|LCD_PSRAM_NWE_Pin|LCD_PSRAM_D3_Pin
8000a90: f64d 73b3 movw r3, #57267 @ 0xdfb3
8000a94: 627b str r3, [r7, #36] @ 0x24
|LCD_PSRAM_NWED4_Pin|LCD_PSRAM_D1_Pin|LCD_PSRAM_D0_Pin|PSRAM_A17_Pin
|PSRAM_A16_Pin|LCD_PSRAM_D15_Pin|LCD_PSRAM_D14_Pin|LCD_PSRAM_D13_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000a96: 2302 movs r3, #2
8000a98: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000a9a: 2300 movs r3, #0
8000a9c: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000a9e: 2303 movs r3, #3
8000aa0: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF12_FMC;
8000aa2: 230c movs r3, #12
8000aa4: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
8000aa6: f107 0324 add.w r3, r7, #36 @ 0x24
8000aaa: 4619 mov r1, r3
8000aac: 482e ldr r0, [pc, #184] @ (8000b68 <MX_GPIO_Init+0x2ec>)
8000aae: f000 fde1 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : UART_TXD_WIFI_RX_Pin */
GPIO_InitStruct.Pin = UART_TXD_WIFI_RX_Pin;
8000ab2: f44f 5380 mov.w r3, #4096 @ 0x1000
8000ab6: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000ab8: 2302 movs r3, #2
8000aba: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000abc: 2300 movs r3, #0
8000abe: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000ac0: 2303 movs r3, #3
8000ac2: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF8_UART5;
8000ac4: 2308 movs r3, #8
8000ac6: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(UART_TXD_WIFI_RX_GPIO_Port, &GPIO_InitStruct);
8000ac8: f107 0324 add.w r3, r7, #36 @ 0x24
8000acc: 4619 mov r1, r3
8000ace: 4827 ldr r0, [pc, #156] @ (8000b6c <MX_GPIO_Init+0x2f0>)
8000ad0: f000 fdd0 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : STMOD_TIM2_CH1_2_ETR_Pin ARD_D10_TIM2_CH2_SPI1_NSS_Pin */
GPIO_InitStruct.Pin = STMOD_TIM2_CH1_2_ETR_Pin|ARD_D10_TIM2_CH2_SPI1_NSS_Pin;
8000ad4: f248 0302 movw r3, #32770 @ 0x8002
8000ad8: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000ada: 2302 movs r3, #2
8000adc: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000ade: 2300 movs r3, #0
8000ae0: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000ae2: 2300 movs r3, #0
8000ae4: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF1_TIM2;
8000ae6: 2301 movs r3, #1
8000ae8: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
8000aea: f107 0324 add.w r3, r7, #36 @ 0x24
8000aee: 4619 mov r1, r3
8000af0: 4821 ldr r0, [pc, #132] @ (8000b78 <MX_GPIO_Init+0x2fc>)
8000af2: f000 fdbf bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : ARD_D3_TIM9_CH1_Pin ARD_D6_TIM9_CH2_Pin */
GPIO_InitStruct.Pin = ARD_D3_TIM9_CH1_Pin|ARD_D6_TIM9_CH2_Pin;
8000af6: 2360 movs r3, #96 @ 0x60
8000af8: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000afa: 2302 movs r3, #2
8000afc: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000afe: 2300 movs r3, #0
8000b00: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000b02: 2300 movs r3, #0
8000b04: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF3_TIM9;
8000b06: 2303 movs r3, #3
8000b08: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
8000b0a: f107 0324 add.w r3, r7, #36 @ 0x24
8000b0e: 4619 mov r1, r3
8000b10: 4813 ldr r0, [pc, #76] @ (8000b60 <MX_GPIO_Init+0x2e4>)
8000b12: f000 fdaf bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : NC1_Pin */
GPIO_InitStruct.Pin = NC1_Pin;
8000b16: 2380 movs r3, #128 @ 0x80
8000b18: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000b1a: 2302 movs r3, #2
8000b1c: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000b1e: 2300 movs r3, #0
8000b20: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000b22: 2303 movs r3, #3
8000b24: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF12_FMC;
8000b26: 230c movs r3, #12
8000b28: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(NC1_GPIO_Port, &GPIO_InitStruct);
8000b2a: f107 0324 add.w r3, r7, #36 @ 0x24
8000b2e: 4619 mov r1, r3
8000b30: 4812 ldr r0, [pc, #72] @ (8000b7c <MX_GPIO_Init+0x300>)
8000b32: f000 fd9f bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : QSPI_NCS_Pin */
GPIO_InitStruct.Pin = QSPI_NCS_Pin;
8000b36: 2340 movs r3, #64 @ 0x40
8000b38: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000b3a: 2302 movs r3, #2
8000b3c: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000b3e: 2300 movs r3, #0
8000b40: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000b42: 2303 movs r3, #3
8000b44: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF10_QUADSPI;
8000b46: 230a movs r3, #10
8000b48: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(QSPI_NCS_GPIO_Port, &GPIO_InitStruct);
8000b4a: f107 0324 add.w r3, r7, #36 @ 0x24
8000b4e: 4619 mov r1, r3
8000b50: 480a ldr r0, [pc, #40] @ (8000b7c <MX_GPIO_Init+0x300>)
8000b52: f000 fd8f bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : SAI2_INT_Pin */
GPIO_InitStruct.Pin = SAI2_INT_Pin;
8000b56: f44f 4300 mov.w r3, #32768 @ 0x8000
8000b5a: e011 b.n 8000b80 <MX_GPIO_Init+0x304>
8000b5c: 40023800 .word 0x40023800
8000b60: 40021000 .word 0x40021000
8000b64: 40021800 .word 0x40021800
8000b68: 40020c00 .word 0x40020c00
8000b6c: 40020800 .word 0x40020800
8000b70: 40022000 .word 0x40022000
8000b74: 40021c00 .word 0x40021c00
8000b78: 40020000 .word 0x40020000
8000b7c: 40020400 .word 0x40020400
8000b80: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;
8000b82: f44f 1388 mov.w r3, #1114112 @ 0x110000
8000b86: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000b88: 2300 movs r3, #0
8000b8a: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(SAI2_INT_GPIO_Port, &GPIO_InitStruct);
8000b8c: f107 0324 add.w r3, r7, #36 @ 0x24
8000b90: 4619 mov r1, r3
8000b92: 48bd ldr r0, [pc, #756] @ (8000e88 <MX_GPIO_Init+0x60c>)
8000b94: f000 fd6e bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : SAI2_SD_B_Pin */
GPIO_InitStruct.Pin = SAI2_SD_B_Pin;
8000b98: f44f 6380 mov.w r3, #1024 @ 0x400
8000b9c: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000b9e: 2302 movs r3, #2
8000ba0: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000ba2: 2300 movs r3, #0
8000ba4: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000ba6: 2300 movs r3, #0
8000ba8: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF10_SAI2;
8000baa: 230a movs r3, #10
8000bac: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(SAI2_SD_B_GPIO_Port, &GPIO_InitStruct);
8000bae: f107 0324 add.w r3, r7, #36 @ 0x24
8000bb2: 4619 mov r1, r3
8000bb4: 48b4 ldr r0, [pc, #720] @ (8000e88 <MX_GPIO_Init+0x60c>)
8000bb6: f000 fd5d bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : WIFI_GPIO_2_Pin WIFI_CH_PD_Pin */
GPIO_InitStruct.Pin = WIFI_GPIO_2_Pin|WIFI_CH_PD_Pin;
8000bba: 2348 movs r3, #72 @ 0x48
8000bbc: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
8000bbe: 2301 movs r3, #1
8000bc0: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000bc2: 2300 movs r3, #0
8000bc4: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000bc6: 2300 movs r3, #0
8000bc8: 633b str r3, [r7, #48] @ 0x30
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
8000bca: f107 0324 add.w r3, r7, #36 @ 0x24
8000bce: 4619 mov r1, r3
8000bd0: 48ae ldr r0, [pc, #696] @ (8000e8c <MX_GPIO_Init+0x610>)
8000bd2: f000 fd4f bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : STMOD_UART4_RXD_s_Pin ARD_D2_GPIO_Pin */
GPIO_InitStruct.Pin = STMOD_UART4_RXD_s_Pin|ARD_D2_GPIO_Pin;
8000bd6: f44f 6302 mov.w r3, #2080 @ 0x820
8000bda: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
8000bdc: 2301 movs r3, #1
8000bde: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000be0: 2300 movs r3, #0
8000be2: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000be4: 2300 movs r3, #0
8000be6: 633b str r3, [r7, #48] @ 0x30
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
8000be8: f107 0324 add.w r3, r7, #36 @ 0x24
8000bec: 4619 mov r1, r3
8000bee: 48a8 ldr r0, [pc, #672] @ (8000e90 <MX_GPIO_Init+0x614>)
8000bf0: f000 fd40 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : QSPI_D1_Pin QSPI_D0_Pin */
GPIO_InitStruct.Pin = QSPI_D1_Pin|QSPI_D0_Pin;
8000bf4: f44f 63c0 mov.w r3, #1536 @ 0x600
8000bf8: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000bfa: 2302 movs r3, #2
8000bfc: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000bfe: 2300 movs r3, #0
8000c00: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000c02: 2303 movs r3, #3
8000c04: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF9_QUADSPI;
8000c06: 2309 movs r3, #9
8000c08: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
8000c0a: f107 0324 add.w r3, r7, #36 @ 0x24
8000c0e: 4619 mov r1, r3
8000c10: 489f ldr r0, [pc, #636] @ (8000e90 <MX_GPIO_Init+0x614>)
8000c12: f000 fd2f bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : PA12 PA11 */
GPIO_InitStruct.Pin = GPIO_PIN_12|GPIO_PIN_11;
8000c16: f44f 53c0 mov.w r3, #6144 @ 0x1800
8000c1a: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000c1c: 2302 movs r3, #2
8000c1e: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000c20: 2300 movs r3, #0
8000c22: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000c24: 2303 movs r3, #3
8000c26: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF10_OTG_FS;
8000c28: 230a movs r3, #10
8000c2a: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
8000c2c: f107 0324 add.w r3, r7, #36 @ 0x24
8000c30: 4619 mov r1, r3
8000c32: 4898 ldr r0, [pc, #608] @ (8000e94 <MX_GPIO_Init+0x618>)
8000c34: f000 fd1e bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : SAI2_FS_A_Pin SAI2_SD_A_Pin SAI2_SCK_A_Pin SAI2_MCLK_A_Pin */
GPIO_InitStruct.Pin = SAI2_FS_A_Pin|SAI2_SD_A_Pin|SAI2_SCK_A_Pin|SAI2_MCLK_A_Pin;
8000c38: 23f0 movs r3, #240 @ 0xf0
8000c3a: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000c3c: 2302 movs r3, #2
8000c3e: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000c40: 2300 movs r3, #0
8000c42: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000c44: 2300 movs r3, #0
8000c46: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF10_SAI2;
8000c48: 230a movs r3, #10
8000c4a: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOI, &GPIO_InitStruct);
8000c4c: f107 0324 add.w r3, r7, #36 @ 0x24
8000c50: 4619 mov r1, r3
8000c52: 4891 ldr r0, [pc, #580] @ (8000e98 <MX_GPIO_Init+0x61c>)
8000c54: f000 fd0e bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : LCD_NE_Pin PSRAM_A15_Pin PSRAM_A14_Pin PSRAM_A13_Pin
PSRAM_A12_Pin PSRAM_A11_Pin PSRAM_A10_Pin */
GPIO_InitStruct.Pin = LCD_NE_Pin|PSRAM_A15_Pin|PSRAM_A14_Pin|PSRAM_A13_Pin
8000c58: f240 233f movw r3, #575 @ 0x23f
8000c5c: 627b str r3, [r7, #36] @ 0x24
|PSRAM_A12_Pin|PSRAM_A11_Pin|PSRAM_A10_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000c5e: 2302 movs r3, #2
8000c60: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000c62: 2300 movs r3, #0
8000c64: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000c66: 2303 movs r3, #3
8000c68: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF12_FMC;
8000c6a: 230c movs r3, #12
8000c6c: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
8000c6e: f107 0324 add.w r3, r7, #36 @ 0x24
8000c72: 4619 mov r1, r3
8000c74: 4884 ldr r0, [pc, #528] @ (8000e88 <MX_GPIO_Init+0x60c>)
8000c76: f000 fcfd bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : PMOD_SPI2_MOSI_Pin PMOD_SPI2_MISO_Pin PI10 */
GPIO_InitStruct.Pin = PMOD_SPI2_MOSI_Pin|PMOD_SPI2_MISO_Pin|GPIO_PIN_10;
8000c7a: f240 430c movw r3, #1036 @ 0x40c
8000c7e: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
8000c80: 2301 movs r3, #1
8000c82: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000c84: 2300 movs r3, #0
8000c86: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000c88: 2300 movs r3, #0
8000c8a: 633b str r3, [r7, #48] @ 0x30
HAL_GPIO_Init(GPIOI, &GPIO_InitStruct);
8000c8c: f107 0324 add.w r3, r7, #36 @ 0x24
8000c90: 4619 mov r1, r3
8000c92: 4881 ldr r0, [pc, #516] @ (8000e98 <MX_GPIO_Init+0x61c>)
8000c94: f000 fcee bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : CTP_INT_Pin */
GPIO_InitStruct.Pin = CTP_INT_Pin;
8000c98: f44f 7300 mov.w r3, #512 @ 0x200
8000c9c: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;
8000c9e: f44f 1388 mov.w r3, #1114112 @ 0x110000
8000ca2: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000ca4: 2300 movs r3, #0
8000ca6: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(CTP_INT_GPIO_Port, &GPIO_InitStruct);
8000ca8: f107 0324 add.w r3, r7, #36 @ 0x24
8000cac: 4619 mov r1, r3
8000cae: 487a ldr r0, [pc, #488] @ (8000e98 <MX_GPIO_Init+0x61c>)
8000cb0: f000 fce0 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : UART_RXD_WIFI_TX_Pin */
GPIO_InitStruct.Pin = UART_RXD_WIFI_TX_Pin;
8000cb4: 2304 movs r3, #4
8000cb6: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000cb8: 2302 movs r3, #2
8000cba: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000cbc: 2300 movs r3, #0
8000cbe: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000cc0: 2303 movs r3, #3
8000cc2: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF8_UART5;
8000cc4: 2308 movs r3, #8
8000cc6: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(UART_RXD_WIFI_TX_GPIO_Port, &GPIO_InitStruct);
8000cc8: f107 0324 add.w r3, r7, #36 @ 0x24
8000ccc: 4619 mov r1, r3
8000cce: 486f ldr r0, [pc, #444] @ (8000e8c <MX_GPIO_Init+0x610>)
8000cd0: f000 fcd0 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : PMOD_SEL_0_Pin PMOD_GPIO_1_Pin ARD_D4_GPIO_Pin USB_OTGHS_PPWR_EN_Pin
CTP_RST_Pin LCD_RST_Pin */
GPIO_InitStruct.Pin = PMOD_SEL_0_Pin|PMOD_GPIO_1_Pin|ARD_D4_GPIO_Pin|USB_OTGHS_PPWR_EN_Pin
8000cd4: f249 238c movw r3, #37516 @ 0x928c
8000cd8: 627b str r3, [r7, #36] @ 0x24
|CTP_RST_Pin|LCD_RST_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
8000cda: 2301 movs r3, #1
8000cdc: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000cde: 2300 movs r3, #0
8000ce0: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000ce2: 2300 movs r3, #0
8000ce4: 633b str r3, [r7, #48] @ 0x30
HAL_GPIO_Init(GPIOH, &GPIO_InitStruct);
8000ce6: f107 0324 add.w r3, r7, #36 @ 0x24
8000cea: 4619 mov r1, r3
8000cec: 486b ldr r0, [pc, #428] @ (8000e9c <MX_GPIO_Init+0x620>)
8000cee: f000 fcc1 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : PMOD_SPI2_SCK_Pin PMOD_SPI2_NSS_Pin */
GPIO_InitStruct.Pin = PMOD_SPI2_SCK_Pin|PMOD_SPI2_NSS_Pin;
8000cf2: 2303 movs r3, #3
8000cf4: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000cf6: 2302 movs r3, #2
8000cf8: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000cfa: 2300 movs r3, #0
8000cfc: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000cfe: 2303 movs r3, #3
8000d00: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF5_SPI2;
8000d02: 2305 movs r3, #5
8000d04: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOI, &GPIO_InitStruct);
8000d06: f107 0324 add.w r3, r7, #36 @ 0x24
8000d0a: 4619 mov r1, r3
8000d0c: 4862 ldr r0, [pc, #392] @ (8000e98 <MX_GPIO_Init+0x61c>)
8000d0e: f000 fcb1 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : USB_OTG_FS_ID_Pin PA5 SYS_LD_USER1_Pin */
GPIO_InitStruct.Pin = USB_OTG_FS_ID_Pin|GPIO_PIN_5|SYS_LD_USER1_Pin;
8000d12: f44f 6394 mov.w r3, #1184 @ 0x4a0
8000d16: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
8000d18: 2301 movs r3, #1
8000d1a: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000d1c: 2300 movs r3, #0
8000d1e: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000d20: 2300 movs r3, #0
8000d22: 633b str r3, [r7, #48] @ 0x30
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
8000d24: f107 0324 add.w r3, r7, #36 @ 0x24
8000d28: 4619 mov r1, r3
8000d2a: 485a ldr r0, [pc, #360] @ (8000e94 <MX_GPIO_Init+0x618>)
8000d2c: f000 fca2 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : PSRAM_A0_Pin PSRAM_A2_Pin PSRAM_A1_Pin PSRAM_A3_Pin
PSRAM_A4_Pin PSRAM_A5_Pin PSRAM_A7_Pin PSRAM_A6_Pin
PSRAM_A9_Pin PSRAM_A8_Pin */
GPIO_InitStruct.Pin = PSRAM_A0_Pin|PSRAM_A2_Pin|PSRAM_A1_Pin|PSRAM_A3_Pin
8000d30: f24f 033f movw r3, #61503 @ 0xf03f
8000d34: 627b str r3, [r7, #36] @ 0x24
|PSRAM_A4_Pin|PSRAM_A5_Pin|PSRAM_A7_Pin|PSRAM_A6_Pin
|PSRAM_A9_Pin|PSRAM_A8_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000d36: 2302 movs r3, #2
8000d38: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000d3a: 2300 movs r3, #0
8000d3c: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000d3e: 2303 movs r3, #3
8000d40: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF12_FMC;
8000d42: 230c movs r3, #12
8000d44: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
8000d46: f107 0324 add.w r3, r7, #36 @ 0x24
8000d4a: 4619 mov r1, r3
8000d4c: 4854 ldr r0, [pc, #336] @ (8000ea0 <MX_GPIO_Init+0x624>)
8000d4e: f000 fc91 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : STMOD_UART4_TXD_Pin STMOD_UART4_RXD_Pin */
GPIO_InitStruct.Pin = STMOD_UART4_TXD_Pin|STMOD_UART4_RXD_Pin;
8000d52: f44f 43c0 mov.w r3, #24576 @ 0x6000
8000d56: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000d58: 2302 movs r3, #2
8000d5a: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000d5c: 2300 movs r3, #0
8000d5e: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000d60: 2303 movs r3, #3
8000d62: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF8_UART4;
8000d64: 2308 movs r3, #8
8000d66: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOH, &GPIO_InitStruct);
8000d68: f107 0324 add.w r3, r7, #36 @ 0x24
8000d6c: 4619 mov r1, r3
8000d6e: 484b ldr r0, [pc, #300] @ (8000e9c <MX_GPIO_Init+0x620>)
8000d70: f000 fc80 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : PA9 */
GPIO_InitStruct.Pin = GPIO_PIN_9;
8000d74: f44f 7300 mov.w r3, #512 @ 0x200
8000d78: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
8000d7a: 2300 movs r3, #0
8000d7c: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000d7e: 2300 movs r3, #0
8000d80: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
8000d82: f107 0324 add.w r3, r7, #36 @ 0x24
8000d86: 4619 mov r1, r3
8000d88: 4842 ldr r0, [pc, #264] @ (8000e94 <MX_GPIO_Init+0x618>)
8000d8a: f000 fc73 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : CTP_SCL_Pin */
GPIO_InitStruct.Pin = CTP_SCL_Pin;
8000d8e: f44f 7380 mov.w r3, #256 @ 0x100
8000d92: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
8000d94: 2312 movs r3, #18
8000d96: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000d98: 2300 movs r3, #0
8000d9a: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000d9c: 2303 movs r3, #3
8000d9e: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF4_I2C3;
8000da0: 2304 movs r3, #4
8000da2: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(CTP_SCL_GPIO_Port, &GPIO_InitStruct);
8000da4: f107 0324 add.w r3, r7, #36 @ 0x24
8000da8: 4619 mov r1, r3
8000daa: 483a ldr r0, [pc, #232] @ (8000e94 <MX_GPIO_Init+0x618>)
8000dac: f000 fc62 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : LCD_TE_INT_Pin */
GPIO_InitStruct.Pin = LCD_TE_INT_Pin;
8000db0: f44f 7380 mov.w r3, #256 @ 0x100
8000db4: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;
8000db6: f44f 1388 mov.w r3, #1114112 @ 0x110000
8000dba: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000dbc: 2300 movs r3, #0
8000dbe: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(LCD_TE_INT_GPIO_Port, &GPIO_InitStruct);
8000dc0: f107 0324 add.w r3, r7, #36 @ 0x24
8000dc4: 4619 mov r1, r3
8000dc6: 4832 ldr r0, [pc, #200] @ (8000e90 <MX_GPIO_Init+0x614>)
8000dc8: f000 fc54 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : ARD_D15_STMOD_I2C2_SCL_Pin ARD_D14_STMOD_I2C2_SDA_Pin */
GPIO_InitStruct.Pin = ARD_D15_STMOD_I2C2_SCL_Pin|ARD_D14_STMOD_I2C2_SDA_Pin;
8000dcc: 2330 movs r3, #48 @ 0x30
8000dce: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
8000dd0: 2312 movs r3, #18
8000dd2: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000dd4: 2300 movs r3, #0
8000dd6: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000dd8: 2303 movs r3, #3
8000dda: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF4_I2C2;
8000ddc: 2304 movs r3, #4
8000dde: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOH, &GPIO_InitStruct);
8000de0: f107 0324 add.w r3, r7, #36 @ 0x24
8000de4: 4619 mov r1, r3
8000de6: 482d ldr r0, [pc, #180] @ (8000e9c <MX_GPIO_Init+0x620>)
8000de8: f000 fc44 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : PMOD_UART7_TXD_Pin PMOD_UART7_RXD_Pin PMOD_UART7_CTS_Pin PMOD_UART7_RTS_Pin */
GPIO_InitStruct.Pin = PMOD_UART7_TXD_Pin|PMOD_UART7_RXD_Pin|PMOD_UART7_CTS_Pin|PMOD_UART7_RTS_Pin;
8000dec: f44f 7370 mov.w r3, #960 @ 0x3c0
8000df0: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000df2: 2302 movs r3, #2
8000df4: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000df6: 2300 movs r3, #0
8000df8: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000dfa: 2303 movs r3, #3
8000dfc: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF8_UART7;
8000dfe: 2308 movs r3, #8
8000e00: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOF, &GPIO_InitStruct);
8000e02: f107 0324 add.w r3, r7, #36 @ 0x24
8000e06: 4619 mov r1, r3
8000e08: 4825 ldr r0, [pc, #148] @ (8000ea0 <MX_GPIO_Init+0x624>)
8000e0a: f000 fc33 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : ARD_A3_ADC3_IN8_Pin */
GPIO_InitStruct.Pin = ARD_A3_ADC3_IN8_Pin;
8000e0e: f44f 6380 mov.w r3, #1024 @ 0x400
8000e12: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
8000e14: 2303 movs r3, #3
8000e16: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000e18: 2300 movs r3, #0
8000e1a: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(ARD_A3_ADC3_IN8_GPIO_Port, &GPIO_InitStruct);
8000e1c: f107 0324 add.w r3, r7, #36 @ 0x24
8000e20: 4619 mov r1, r3
8000e22: 481f ldr r0, [pc, #124] @ (8000ea0 <MX_GPIO_Init+0x624>)
8000e24: f000 fc26 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : LCD_BL_Pin */
GPIO_InitStruct.Pin = LCD_BL_Pin;
8000e28: f44f 6300 mov.w r3, #2048 @ 0x800
8000e2c: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000e2e: 2302 movs r3, #2
8000e30: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000e32: 2300 movs r3, #0
8000e34: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000e36: 2300 movs r3, #0
8000e38: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF2_TIM5;
8000e3a: 2302 movs r3, #2
8000e3c: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(LCD_BL_GPIO_Port, &GPIO_InitStruct);
8000e3e: f107 0324 add.w r3, r7, #36 @ 0x24
8000e42: 4619 mov r1, r3
8000e44: 4815 ldr r0, [pc, #84] @ (8000e9c <MX_GPIO_Init+0x620>)
8000e46: f000 fc15 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : USB_OTGHS_OVCR_INT_Pin */
GPIO_InitStruct.Pin = USB_OTGHS_OVCR_INT_Pin;
8000e4a: f44f 6380 mov.w r3, #1024 @ 0x400
8000e4e: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
8000e50: 2300 movs r3, #0
8000e52: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000e54: 2300 movs r3, #0
8000e56: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(USB_OTGHS_OVCR_INT_GPIO_Port, &GPIO_InitStruct);
8000e58: f107 0324 add.w r3, r7, #36 @ 0x24
8000e5c: 4619 mov r1, r3
8000e5e: 480f ldr r0, [pc, #60] @ (8000e9c <MX_GPIO_Init+0x620>)
8000e60: f000 fc08 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : ARD_A4_Pin ARD_A5_Pin ARD_A2_Pin */
GPIO_InitStruct.Pin = ARD_A4_Pin|ARD_A5_Pin|ARD_A2_Pin;
8000e64: 2313 movs r3, #19
8000e66: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
8000e68: 2303 movs r3, #3
8000e6a: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000e6c: 2300 movs r3, #0
8000e6e: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
8000e70: f107 0324 add.w r3, r7, #36 @ 0x24
8000e74: 4619 mov r1, r3
8000e76: 4806 ldr r0, [pc, #24] @ (8000e90 <MX_GPIO_Init+0x614>)
8000e78: f000 fbfc bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : STMOD_SPI2_MISOs_Pin STMOD_SPI2_MOSIs_Pin */
GPIO_InitStruct.Pin = STMOD_SPI2_MISOs_Pin|STMOD_SPI2_MOSIs_Pin;
8000e7c: 230c movs r3, #12
8000e7e: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000e80: 2302 movs r3, #2
8000e82: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000e84: 2300 movs r3, #0
8000e86: e00d b.n 8000ea4 <MX_GPIO_Init+0x628>
8000e88: 40021800 .word 0x40021800
8000e8c: 40020c00 .word 0x40020c00
8000e90: 40020800 .word 0x40020800
8000e94: 40020000 .word 0x40020000
8000e98: 40022000 .word 0x40022000
8000e9c: 40021c00 .word 0x40021c00
8000ea0: 40021400 .word 0x40021400
8000ea4: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000ea6: 2303 movs r3, #3
8000ea8: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF5_SPI2;
8000eaa: 2305 movs r3, #5
8000eac: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
8000eae: f107 0324 add.w r3, r7, #36 @ 0x24
8000eb2: 4619 mov r1, r3
8000eb4: 485d ldr r0, [pc, #372] @ (800102c <MX_GPIO_Init+0x7b0>)
8000eb6: f000 fbdd bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : QSPI_CLK_Pin */
GPIO_InitStruct.Pin = QSPI_CLK_Pin;
8000eba: 2304 movs r3, #4
8000ebc: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000ebe: 2302 movs r3, #2
8000ec0: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000ec2: 2300 movs r3, #0
8000ec4: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000ec6: 2303 movs r3, #3
8000ec8: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF9_QUADSPI;
8000eca: 2309 movs r3, #9
8000ecc: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(QSPI_CLK_GPIO_Port, &GPIO_InitStruct);
8000ece: f107 0324 add.w r3, r7, #36 @ 0x24
8000ed2: 4619 mov r1, r3
8000ed4: 4856 ldr r0, [pc, #344] @ (8001030 <MX_GPIO_Init+0x7b4>)
8000ed6: f000 fbcd bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : ARD_D9_TIM12_CH1_Pin */
GPIO_InitStruct.Pin = ARD_D9_TIM12_CH1_Pin;
8000eda: 2340 movs r3, #64 @ 0x40
8000edc: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000ede: 2302 movs r3, #2
8000ee0: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000ee2: 2300 movs r3, #0
8000ee4: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000ee6: 2300 movs r3, #0
8000ee8: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF9_TIM12;
8000eea: 2309 movs r3, #9
8000eec: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(ARD_D9_TIM12_CH1_GPIO_Port, &GPIO_InitStruct);
8000eee: f107 0324 add.w r3, r7, #36 @ 0x24
8000ef2: 4619 mov r1, r3
8000ef4: 484f ldr r0, [pc, #316] @ (8001034 <MX_GPIO_Init+0x7b8>)
8000ef6: f000 fbbd bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : CTP_SDA_Pin */
GPIO_InitStruct.Pin = CTP_SDA_Pin;
8000efa: f44f 7380 mov.w r3, #256 @ 0x100
8000efe: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
8000f00: 2312 movs r3, #18
8000f02: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000f04: 2300 movs r3, #0
8000f06: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000f08: 2303 movs r3, #3
8000f0a: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF4_I2C3;
8000f0c: 2304 movs r3, #4
8000f0e: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(CTP_SDA_GPIO_Port, &GPIO_InitStruct);
8000f10: f107 0324 add.w r3, r7, #36 @ 0x24
8000f14: 4619 mov r1, r3
8000f16: 4847 ldr r0, [pc, #284] @ (8001034 <MX_GPIO_Init+0x7b8>)
8000f18: f000 fbac bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : QSPI_D3_Pin */
GPIO_InitStruct.Pin = QSPI_D3_Pin;
8000f1c: f44f 5300 mov.w r3, #8192 @ 0x2000
8000f20: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000f22: 2302 movs r3, #2
8000f24: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000f26: 2300 movs r3, #0
8000f28: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000f2a: 2303 movs r3, #3
8000f2c: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF9_QUADSPI;
8000f2e: 2309 movs r3, #9
8000f30: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(QSPI_D3_GPIO_Port, &GPIO_InitStruct);
8000f32: f107 0324 add.w r3, r7, #36 @ 0x24
8000f36: 4619 mov r1, r3
8000f38: 483f ldr r0, [pc, #252] @ (8001038 <MX_GPIO_Init+0x7bc>)
8000f3a: f000 fb9b bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : PA0 */
GPIO_InitStruct.Pin = GPIO_PIN_0;
8000f3e: 2301 movs r3, #1
8000f40: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
8000f42: 2300 movs r3, #0
8000f44: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000f46: 2300 movs r3, #0
8000f48: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
8000f4a: f107 0324 add.w r3, r7, #36 @ 0x24
8000f4e: 4619 mov r1, r3
8000f50: 483a ldr r0, [pc, #232] @ (800103c <MX_GPIO_Init+0x7c0>)
8000f52: f000 fb8f bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : ARD_A1_Pin ARD_A0_Pin */
GPIO_InitStruct.Pin = ARD_A1_Pin|ARD_A0_Pin;
8000f56: 2350 movs r3, #80 @ 0x50
8000f58: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
8000f5a: 2303 movs r3, #3
8000f5c: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000f5e: 2300 movs r3, #0
8000f60: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
8000f62: f107 0324 add.w r3, r7, #36 @ 0x24
8000f66: 4619 mov r1, r3
8000f68: 4834 ldr r0, [pc, #208] @ (800103c <MX_GPIO_Init+0x7c0>)
8000f6a: f000 fb83 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : ARD_D1_USART2_TX_Pin ARD_D0_USART2_RX_Pin */
GPIO_InitStruct.Pin = ARD_D1_USART2_TX_Pin|ARD_D0_USART2_RX_Pin;
8000f6e: 230c movs r3, #12
8000f70: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000f72: 2302 movs r3, #2
8000f74: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000f76: 2300 movs r3, #0
8000f78: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8000f7a: 2303 movs r3, #3
8000f7c: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF7_USART2;
8000f7e: 2307 movs r3, #7
8000f80: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
8000f82: f107 0324 add.w r3, r7, #36 @ 0x24
8000f86: 4619 mov r1, r3
8000f88: 482c ldr r0, [pc, #176] @ (800103c <MX_GPIO_Init+0x7c0>)
8000f8a: f000 fb73 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : USB_OTG_HS_ID_Pin SYS_LD_USER2_Pin */
GPIO_InitStruct.Pin = USB_OTG_HS_ID_Pin|SYS_LD_USER2_Pin;
8000f8e: f241 0302 movw r3, #4098 @ 0x1002
8000f92: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
8000f94: 2301 movs r3, #1
8000f96: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000f98: 2300 movs r3, #0
8000f9a: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000f9c: 2300 movs r3, #0
8000f9e: 633b str r3, [r7, #48] @ 0x30
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
8000fa0: f107 0324 add.w r3, r7, #36 @ 0x24
8000fa4: 4619 mov r1, r3
8000fa6: 4822 ldr r0, [pc, #136] @ (8001030 <MX_GPIO_Init+0x7b4>)
8000fa8: f000 fb64 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : USB_OTG_HS_VBUS_Pin USB_OTGFS_OVCR_INT_Pin PMOD_INT_Pin */
GPIO_InitStruct.Pin = USB_OTG_HS_VBUS_Pin|USB_OTGFS_OVCR_INT_Pin|PMOD_INT_Pin;
8000fac: f44f 5330 mov.w r3, #11264 @ 0x2c00
8000fb0: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;
8000fb2: f44f 1388 mov.w r3, #1114112 @ 0x110000
8000fb6: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000fb8: 2300 movs r3, #0
8000fba: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
8000fbc: f107 0324 add.w r3, r7, #36 @ 0x24
8000fc0: 4619 mov r1, r3
8000fc2: 481b ldr r0, [pc, #108] @ (8001030 <MX_GPIO_Init+0x7b4>)
8000fc4: f000 fb56 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : ARD_D5_STMOD_TIM3_CH3_Pin */
GPIO_InitStruct.Pin = ARD_D5_STMOD_TIM3_CH3_Pin;
8000fc8: 2301 movs r3, #1
8000fca: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8000fcc: 2302 movs r3, #2
8000fce: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000fd0: 2300 movs r3, #0
8000fd2: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
8000fd4: 2300 movs r3, #0
8000fd6: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF2_TIM3;
8000fd8: 2302 movs r3, #2
8000fda: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(ARD_D5_STMOD_TIM3_CH3_GPIO_Port, &GPIO_InitStruct);
8000fdc: f107 0324 add.w r3, r7, #36 @ 0x24
8000fe0: 4619 mov r1, r3
8000fe2: 4813 ldr r0, [pc, #76] @ (8001030 <MX_GPIO_Init+0x7b4>)
8000fe4: f000 fb46 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pin : PMOD_RESET_Pin */
GPIO_InitStruct.Pin = PMOD_RESET_Pin;
8000fe8: f44f 6300 mov.w r3, #2048 @ 0x800
8000fec: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
8000fee: 2300 movs r3, #0
8000ff0: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
8000ff2: 2300 movs r3, #0
8000ff4: 62fb str r3, [r7, #44] @ 0x2c
HAL_GPIO_Init(PMOD_RESET_GPIO_Port, &GPIO_InitStruct);
8000ff6: f107 0324 add.w r3, r7, #36 @ 0x24
8000ffa: 4619 mov r1, r3
8000ffc: 4810 ldr r0, [pc, #64] @ (8001040 <MX_GPIO_Init+0x7c4>)
8000ffe: f000 fb39 bl 8001674 <HAL_GPIO_Init>
/*Configure GPIO pins : PB14 PB15 */
GPIO_InitStruct.Pin = GPIO_PIN_14|GPIO_PIN_15;
8001002: f44f 4340 mov.w r3, #49152 @ 0xc000
8001006: 627b str r3, [r7, #36] @ 0x24
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8001008: 2302 movs r3, #2
800100a: 62bb str r3, [r7, #40] @ 0x28
GPIO_InitStruct.Pull = GPIO_NOPULL;
800100c: 2300 movs r3, #0
800100e: 62fb str r3, [r7, #44] @ 0x2c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8001010: 2303 movs r3, #3
8001012: 633b str r3, [r7, #48] @ 0x30
GPIO_InitStruct.Alternate = GPIO_AF12_OTG_HS_FS;
8001014: 230c movs r3, #12
8001016: 637b str r3, [r7, #52] @ 0x34
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
8001018: f107 0324 add.w r3, r7, #36 @ 0x24
800101c: 4619 mov r1, r3
800101e: 4804 ldr r0, [pc, #16] @ (8001030 <MX_GPIO_Init+0x7b4>)
8001020: f000 fb28 bl 8001674 <HAL_GPIO_Init>
/* USER CODE BEGIN MX_GPIO_Init_2 */
/* USER CODE END MX_GPIO_Init_2 */
}
8001024: bf00 nop
8001026: 3738 adds r7, #56 @ 0x38
8001028: 46bd mov sp, r7
800102a: bd80 pop {r7, pc}
800102c: 40020800 .word 0x40020800
8001030: 40020400 .word 0x40020400
8001034: 40021c00 .word 0x40021c00
8001038: 40020c00 .word 0x40020c00
800103c: 40020000 .word 0x40020000
8001040: 40021400 .word 0x40021400
08001044 <StartDefaultTask>:
* @param argument: Not used
* @retval None
*/
/* USER CODE END Header_StartDefaultTask */
void StartDefaultTask(void *argument)
{
8001044: b580 push {r7, lr}
8001046: b082 sub sp, #8
8001048: af00 add r7, sp, #0
800104a: 6078 str r0, [r7, #4]
/* USER CODE BEGIN 5 */
/* Infinite loop */
for(;;)
{
osDelay(1);
800104c: 2001 movs r0, #1
800104e: f002 fe4b bl 8003ce8 <osDelay>
8001052: e7fb b.n 800104c <StartDefaultTask+0x8>
08001054 <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)
{
8001054: b580 push {r7, lr}
8001056: b082 sub sp, #8
8001058: af00 add r7, sp, #0
800105a: 6078 str r0, [r7, #4]
/* USER CODE BEGIN Callback 0 */
/* USER CODE END Callback 0 */
if (htim->Instance == TIM14)
800105c: 687b ldr r3, [r7, #4]
800105e: 681b ldr r3, [r3, #0]
8001060: 4a04 ldr r2, [pc, #16] @ (8001074 <HAL_TIM_PeriodElapsedCallback+0x20>)
8001062: 4293 cmp r3, r2
8001064: d101 bne.n 800106a <HAL_TIM_PeriodElapsedCallback+0x16>
{
HAL_IncTick();
8001066: f000 fa03 bl 8001470 <HAL_IncTick>
}
/* USER CODE BEGIN Callback 1 */
/* USER CODE END Callback 1 */
}
800106a: bf00 nop
800106c: 3708 adds r7, #8
800106e: 46bd mov sp, r7
8001070: bd80 pop {r7, pc}
8001072: bf00 nop
8001074: 40002000 .word 0x40002000
08001078 <Error_Handler>:
/**
* @brief This function is executed in case of error occurrence.
* @retval None
*/
void Error_Handler(void)
{
8001078: b480 push {r7}
800107a: af00 add r7, sp, #0
\details Disables IRQ interrupts by setting the I-bit in the CPSR.
Can only be executed in Privileged modes.
*/
__STATIC_FORCEINLINE void __disable_irq(void)
{
__ASM volatile ("cpsid i" : : : "memory");
800107c: b672 cpsid i
}
800107e: 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)
8001080: bf00 nop
8001082: e7fd b.n 8001080 <Error_Handler+0x8>
08001084 <HAL_MspInit>:
/* USER CODE END 0 */
/**
* Initializes the Global MSP.
*/
void HAL_MspInit(void)
{
8001084: b580 push {r7, lr}
8001086: b082 sub sp, #8
8001088: af00 add r7, sp, #0
/* USER CODE BEGIN MspInit 0 */
/* USER CODE END MspInit 0 */
__HAL_RCC_PWR_CLK_ENABLE();
800108a: 4b11 ldr r3, [pc, #68] @ (80010d0 <HAL_MspInit+0x4c>)
800108c: 6c1b ldr r3, [r3, #64] @ 0x40
800108e: 4a10 ldr r2, [pc, #64] @ (80010d0 <HAL_MspInit+0x4c>)
8001090: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
8001094: 6413 str r3, [r2, #64] @ 0x40
8001096: 4b0e ldr r3, [pc, #56] @ (80010d0 <HAL_MspInit+0x4c>)
8001098: 6c1b ldr r3, [r3, #64] @ 0x40
800109a: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
800109e: 607b str r3, [r7, #4]
80010a0: 687b ldr r3, [r7, #4]
__HAL_RCC_SYSCFG_CLK_ENABLE();
80010a2: 4b0b ldr r3, [pc, #44] @ (80010d0 <HAL_MspInit+0x4c>)
80010a4: 6c5b ldr r3, [r3, #68] @ 0x44
80010a6: 4a0a ldr r2, [pc, #40] @ (80010d0 <HAL_MspInit+0x4c>)
80010a8: f443 4380 orr.w r3, r3, #16384 @ 0x4000
80010ac: 6453 str r3, [r2, #68] @ 0x44
80010ae: 4b08 ldr r3, [pc, #32] @ (80010d0 <HAL_MspInit+0x4c>)
80010b0: 6c5b ldr r3, [r3, #68] @ 0x44
80010b2: f403 4380 and.w r3, r3, #16384 @ 0x4000
80010b6: 603b str r3, [r7, #0]
80010b8: 683b ldr r3, [r7, #0]
/* System interrupt init*/
/* PendSV_IRQn interrupt configuration */
HAL_NVIC_SetPriority(PendSV_IRQn, 15, 0);
80010ba: 2200 movs r2, #0
80010bc: 210f movs r1, #15
80010be: f06f 0001 mvn.w r0, #1
80010c2: f000 faad bl 8001620 <HAL_NVIC_SetPriority>
/* USER CODE BEGIN MspInit 1 */
/* USER CODE END MspInit 1 */
}
80010c6: bf00 nop
80010c8: 3708 adds r7, #8
80010ca: 46bd mov sp, r7
80010cc: bd80 pop {r7, pc}
80010ce: bf00 nop
80010d0: 40023800 .word 0x40023800
080010d4 <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)
{
80010d4: b580 push {r7, lr}
80010d6: b0aa sub sp, #168 @ 0xa8
80010d8: af00 add r7, sp, #0
80010da: 6078 str r0, [r7, #4]
GPIO_InitTypeDef GPIO_InitStruct = {0};
80010dc: f107 0394 add.w r3, r7, #148 @ 0x94
80010e0: 2200 movs r2, #0
80010e2: 601a str r2, [r3, #0]
80010e4: 605a str r2, [r3, #4]
80010e6: 609a str r2, [r3, #8]
80010e8: 60da str r2, [r3, #12]
80010ea: 611a str r2, [r3, #16]
RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0};
80010ec: f107 0314 add.w r3, r7, #20
80010f0: 2280 movs r2, #128 @ 0x80
80010f2: 2100 movs r1, #0
80010f4: 4618 mov r0, r3
80010f6: f005 fc00 bl 80068fa <memset>
if(huart->Instance==USART6)
80010fa: 687b ldr r3, [r7, #4]
80010fc: 681b ldr r3, [r3, #0]
80010fe: 4a21 ldr r2, [pc, #132] @ (8001184 <HAL_UART_MspInit+0xb0>)
8001100: 4293 cmp r3, r2
8001102: d13b bne.n 800117c <HAL_UART_MspInit+0xa8>
/* USER CODE END USART6_MspInit 0 */
/** Initializes the peripherals clock
*/
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART6;
8001104: f44f 6300 mov.w r3, #2048 @ 0x800
8001108: 617b str r3, [r7, #20]
PeriphClkInitStruct.Usart6ClockSelection = RCC_USART6CLKSOURCE_PCLK2;
800110a: 2300 movs r3, #0
800110c: 667b str r3, [r7, #100] @ 0x64
if (HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct) != HAL_OK)
800110e: f107 0314 add.w r3, r7, #20
8001112: 4618 mov r0, r3
8001114: f001 f9b2 bl 800247c <HAL_RCCEx_PeriphCLKConfig>
8001118: 4603 mov r3, r0
800111a: 2b00 cmp r3, #0
800111c: d001 beq.n 8001122 <HAL_UART_MspInit+0x4e>
{
Error_Handler();
800111e: f7ff ffab bl 8001078 <Error_Handler>
}
/* Peripheral clock enable */
__HAL_RCC_USART6_CLK_ENABLE();
8001122: 4b19 ldr r3, [pc, #100] @ (8001188 <HAL_UART_MspInit+0xb4>)
8001124: 6c5b ldr r3, [r3, #68] @ 0x44
8001126: 4a18 ldr r2, [pc, #96] @ (8001188 <HAL_UART_MspInit+0xb4>)
8001128: f043 0320 orr.w r3, r3, #32
800112c: 6453 str r3, [r2, #68] @ 0x44
800112e: 4b16 ldr r3, [pc, #88] @ (8001188 <HAL_UART_MspInit+0xb4>)
8001130: 6c5b ldr r3, [r3, #68] @ 0x44
8001132: f003 0320 and.w r3, r3, #32
8001136: 613b str r3, [r7, #16]
8001138: 693b ldr r3, [r7, #16]
__HAL_RCC_GPIOC_CLK_ENABLE();
800113a: 4b13 ldr r3, [pc, #76] @ (8001188 <HAL_UART_MspInit+0xb4>)
800113c: 6b1b ldr r3, [r3, #48] @ 0x30
800113e: 4a12 ldr r2, [pc, #72] @ (8001188 <HAL_UART_MspInit+0xb4>)
8001140: f043 0304 orr.w r3, r3, #4
8001144: 6313 str r3, [r2, #48] @ 0x30
8001146: 4b10 ldr r3, [pc, #64] @ (8001188 <HAL_UART_MspInit+0xb4>)
8001148: 6b1b ldr r3, [r3, #48] @ 0x30
800114a: f003 0304 and.w r3, r3, #4
800114e: 60fb str r3, [r7, #12]
8001150: 68fb ldr r3, [r7, #12]
/**USART6 GPIO Configuration
PC7 ------> USART6_RX
PC6 ------> USART6_TX
*/
GPIO_InitStruct.Pin = VCP_RX_Pin|VCP_TX_Pin;
8001152: 23c0 movs r3, #192 @ 0xc0
8001154: f8c7 3094 str.w r3, [r7, #148] @ 0x94
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
8001158: 2302 movs r3, #2
800115a: f8c7 3098 str.w r3, [r7, #152] @ 0x98
GPIO_InitStruct.Pull = GPIO_NOPULL;
800115e: 2300 movs r3, #0
8001160: f8c7 309c str.w r3, [r7, #156] @ 0x9c
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
8001164: 2303 movs r3, #3
8001166: f8c7 30a0 str.w r3, [r7, #160] @ 0xa0
GPIO_InitStruct.Alternate = GPIO_AF8_USART6;
800116a: 2308 movs r3, #8
800116c: f8c7 30a4 str.w r3, [r7, #164] @ 0xa4
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
8001170: f107 0394 add.w r3, r7, #148 @ 0x94
8001174: 4619 mov r1, r3
8001176: 4805 ldr r0, [pc, #20] @ (800118c <HAL_UART_MspInit+0xb8>)
8001178: f000 fa7c bl 8001674 <HAL_GPIO_Init>
/* USER CODE END USART6_MspInit 1 */
}
}
800117c: bf00 nop
800117e: 37a8 adds r7, #168 @ 0xa8
8001180: 46bd mov sp, r7
8001182: bd80 pop {r7, pc}
8001184: 40011400 .word 0x40011400
8001188: 40023800 .word 0x40023800
800118c: 40020800 .word 0x40020800
08001190 <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)
{
8001190: b580 push {r7, lr}
8001192: b08e sub sp, #56 @ 0x38
8001194: af00 add r7, sp, #0
8001196: 6078 str r0, [r7, #4]
RCC_ClkInitTypeDef clkconfig;
uint32_t uwTimclock, uwAPB1Prescaler = 0U;
8001198: 2300 movs r3, #0
800119a: 62fb str r3, [r7, #44] @ 0x2c
uint32_t uwPrescalerValue = 0U;
800119c: 2300 movs r3, #0
800119e: 62bb str r3, [r7, #40] @ 0x28
uint32_t pFLatency;
HAL_StatusTypeDef status;
/* Enable TIM14 clock */
__HAL_RCC_TIM14_CLK_ENABLE();
80011a0: 4b33 ldr r3, [pc, #204] @ (8001270 <HAL_InitTick+0xe0>)
80011a2: 6c1b ldr r3, [r3, #64] @ 0x40
80011a4: 4a32 ldr r2, [pc, #200] @ (8001270 <HAL_InitTick+0xe0>)
80011a6: f443 7380 orr.w r3, r3, #256 @ 0x100
80011aa: 6413 str r3, [r2, #64] @ 0x40
80011ac: 4b30 ldr r3, [pc, #192] @ (8001270 <HAL_InitTick+0xe0>)
80011ae: 6c1b ldr r3, [r3, #64] @ 0x40
80011b0: f403 7380 and.w r3, r3, #256 @ 0x100
80011b4: 60fb str r3, [r7, #12]
80011b6: 68fb ldr r3, [r7, #12]
/* Get clock configuration */
HAL_RCC_GetClockConfig(&clkconfig, &pFLatency);
80011b8: f107 0210 add.w r2, r7, #16
80011bc: f107 0314 add.w r3, r7, #20
80011c0: 4611 mov r1, r2
80011c2: 4618 mov r0, r3
80011c4: f001 f928 bl 8002418 <HAL_RCC_GetClockConfig>
/* Get APB1 prescaler */
uwAPB1Prescaler = clkconfig.APB1CLKDivider;
80011c8: 6a3b ldr r3, [r7, #32]
80011ca: 62fb str r3, [r7, #44] @ 0x2c
/* Compute TIM14 clock */
if (uwAPB1Prescaler == RCC_HCLK_DIV1)
80011cc: 6afb ldr r3, [r7, #44] @ 0x2c
80011ce: 2b00 cmp r3, #0
80011d0: d103 bne.n 80011da <HAL_InitTick+0x4a>
{
uwTimclock = HAL_RCC_GetPCLK1Freq();
80011d2: f001 f8f9 bl 80023c8 <HAL_RCC_GetPCLK1Freq>
80011d6: 6378 str r0, [r7, #52] @ 0x34
80011d8: e004 b.n 80011e4 <HAL_InitTick+0x54>
}
else
{
uwTimclock = 2UL * HAL_RCC_GetPCLK1Freq();
80011da: f001 f8f5 bl 80023c8 <HAL_RCC_GetPCLK1Freq>
80011de: 4603 mov r3, r0
80011e0: 005b lsls r3, r3, #1
80011e2: 637b str r3, [r7, #52] @ 0x34
}
/* Compute the prescaler value to have TIM14 counter clock equal to 1MHz */
uwPrescalerValue = (uint32_t) ((uwTimclock / 1000000U) - 1U);
80011e4: 6b7b ldr r3, [r7, #52] @ 0x34
80011e6: 4a23 ldr r2, [pc, #140] @ (8001274 <HAL_InitTick+0xe4>)
80011e8: fba2 2303 umull r2, r3, r2, r3
80011ec: 0c9b lsrs r3, r3, #18
80011ee: 3b01 subs r3, #1
80011f0: 62bb str r3, [r7, #40] @ 0x28
/* Initialize TIM14 */
htim14.Instance = TIM14;
80011f2: 4b21 ldr r3, [pc, #132] @ (8001278 <HAL_InitTick+0xe8>)
80011f4: 4a21 ldr r2, [pc, #132] @ (800127c <HAL_InitTick+0xec>)
80011f6: 601a str r2, [r3, #0]
* Period = [(TIM14CLK/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
*/
htim14.Init.Period = (1000000U / 1000U) - 1U;
80011f8: 4b1f ldr r3, [pc, #124] @ (8001278 <HAL_InitTick+0xe8>)
80011fa: f240 32e7 movw r2, #999 @ 0x3e7
80011fe: 60da str r2, [r3, #12]
htim14.Init.Prescaler = uwPrescalerValue;
8001200: 4a1d ldr r2, [pc, #116] @ (8001278 <HAL_InitTick+0xe8>)
8001202: 6abb ldr r3, [r7, #40] @ 0x28
8001204: 6053 str r3, [r2, #4]
htim14.Init.ClockDivision = 0;
8001206: 4b1c ldr r3, [pc, #112] @ (8001278 <HAL_InitTick+0xe8>)
8001208: 2200 movs r2, #0
800120a: 611a str r2, [r3, #16]
htim14.Init.CounterMode = TIM_COUNTERMODE_UP;
800120c: 4b1a ldr r3, [pc, #104] @ (8001278 <HAL_InitTick+0xe8>)
800120e: 2200 movs r2, #0
8001210: 609a str r2, [r3, #8]
htim14.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
8001212: 4b19 ldr r3, [pc, #100] @ (8001278 <HAL_InitTick+0xe8>)
8001214: 2200 movs r2, #0
8001216: 619a str r2, [r3, #24]
status = HAL_TIM_Base_Init(&htim14);
8001218: 4817 ldr r0, [pc, #92] @ (8001278 <HAL_InitTick+0xe8>)
800121a: f001 fc79 bl 8002b10 <HAL_TIM_Base_Init>
800121e: 4603 mov r3, r0
8001220: f887 3033 strb.w r3, [r7, #51] @ 0x33
if (status == HAL_OK)
8001224: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
8001228: 2b00 cmp r3, #0
800122a: d11b bne.n 8001264 <HAL_InitTick+0xd4>
{
/* Start the TIM time Base generation in interrupt mode */
status = HAL_TIM_Base_Start_IT(&htim14);
800122c: 4812 ldr r0, [pc, #72] @ (8001278 <HAL_InitTick+0xe8>)
800122e: f001 fcd1 bl 8002bd4 <HAL_TIM_Base_Start_IT>
8001232: 4603 mov r3, r0
8001234: f887 3033 strb.w r3, [r7, #51] @ 0x33
if (status == HAL_OK)
8001238: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
800123c: 2b00 cmp r3, #0
800123e: d111 bne.n 8001264 <HAL_InitTick+0xd4>
{
/* Enable the TIM14 global Interrupt */
HAL_NVIC_EnableIRQ(TIM8_TRG_COM_TIM14_IRQn);
8001240: 202d movs r0, #45 @ 0x2d
8001242: f000 fa09 bl 8001658 <HAL_NVIC_EnableIRQ>
/* Configure the SysTick IRQ priority */
if (TickPriority < (1UL << __NVIC_PRIO_BITS))
8001246: 687b ldr r3, [r7, #4]
8001248: 2b0f cmp r3, #15
800124a: d808 bhi.n 800125e <HAL_InitTick+0xce>
{
/* Configure the TIM IRQ priority */
HAL_NVIC_SetPriority(TIM8_TRG_COM_TIM14_IRQn, TickPriority, 0U);
800124c: 2200 movs r2, #0
800124e: 6879 ldr r1, [r7, #4]
8001250: 202d movs r0, #45 @ 0x2d
8001252: f000 f9e5 bl 8001620 <HAL_NVIC_SetPriority>
uwTickPrio = TickPriority;
8001256: 4a0a ldr r2, [pc, #40] @ (8001280 <HAL_InitTick+0xf0>)
8001258: 687b ldr r3, [r7, #4]
800125a: 6013 str r3, [r2, #0]
800125c: e002 b.n 8001264 <HAL_InitTick+0xd4>
}
else
{
status = HAL_ERROR;
800125e: 2301 movs r3, #1
8001260: f887 3033 strb.w r3, [r7, #51] @ 0x33
}
}
}
/* Return function status */
return status;
8001264: f897 3033 ldrb.w r3, [r7, #51] @ 0x33
}
8001268: 4618 mov r0, r3
800126a: 3738 adds r7, #56 @ 0x38
800126c: 46bd mov sp, r7
800126e: bd80 pop {r7, pc}
8001270: 40023800 .word 0x40023800
8001274: 431bde83 .word 0x431bde83
8001278: 20000118 .word 0x20000118
800127c: 40002000 .word 0x40002000
8001280: 20000004 .word 0x20000004
08001284 <NMI_Handler>:
/******************************************************************************/
/**
* @brief This function handles Non maskable interrupt.
*/
void NMI_Handler(void)
{
8001284: b480 push {r7}
8001286: 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)
8001288: bf00 nop
800128a: e7fd b.n 8001288 <NMI_Handler+0x4>
0800128c <HardFault_Handler>:
/**
* @brief This function handles Hard fault interrupt.
*/
void HardFault_Handler(void)
{
800128c: b480 push {r7}
800128e: af00 add r7, sp, #0
/* USER CODE BEGIN HardFault_IRQn 0 */
/* USER CODE END HardFault_IRQn 0 */
while (1)
8001290: bf00 nop
8001292: e7fd b.n 8001290 <HardFault_Handler+0x4>
08001294 <MemManage_Handler>:
/**
* @brief This function handles Memory management fault.
*/
void MemManage_Handler(void)
{
8001294: b480 push {r7}
8001296: af00 add r7, sp, #0
/* USER CODE BEGIN MemoryManagement_IRQn 0 */
/* USER CODE END MemoryManagement_IRQn 0 */
while (1)
8001298: bf00 nop
800129a: e7fd b.n 8001298 <MemManage_Handler+0x4>
0800129c <BusFault_Handler>:
/**
* @brief This function handles Pre-fetch fault, memory access fault.
*/
void BusFault_Handler(void)
{
800129c: b480 push {r7}
800129e: af00 add r7, sp, #0
/* USER CODE BEGIN BusFault_IRQn 0 */
/* USER CODE END BusFault_IRQn 0 */
while (1)
80012a0: bf00 nop
80012a2: e7fd b.n 80012a0 <BusFault_Handler+0x4>
080012a4 <UsageFault_Handler>:
/**
* @brief This function handles Undefined instruction or illegal state.
*/
void UsageFault_Handler(void)
{
80012a4: b480 push {r7}
80012a6: af00 add r7, sp, #0
/* USER CODE BEGIN UsageFault_IRQn 0 */
/* USER CODE END UsageFault_IRQn 0 */
while (1)
80012a8: bf00 nop
80012aa: e7fd b.n 80012a8 <UsageFault_Handler+0x4>
080012ac <DebugMon_Handler>:
/**
* @brief This function handles Debug monitor.
*/
void DebugMon_Handler(void)
{
80012ac: b480 push {r7}
80012ae: af00 add r7, sp, #0
/* USER CODE END DebugMonitor_IRQn 0 */
/* USER CODE BEGIN DebugMonitor_IRQn 1 */
/* USER CODE END DebugMonitor_IRQn 1 */
}
80012b0: bf00 nop
80012b2: 46bd mov sp, r7
80012b4: f85d 7b04 ldr.w r7, [sp], #4
80012b8: 4770 bx lr
...
080012bc <TIM8_TRG_COM_TIM14_IRQHandler>:
/**
* @brief This function handles TIM8 trigger and commutation interrupts and TIM14 global interrupt.
*/
void TIM8_TRG_COM_TIM14_IRQHandler(void)
{
80012bc: b580 push {r7, lr}
80012be: af00 add r7, sp, #0
/* USER CODE BEGIN TIM8_TRG_COM_TIM14_IRQn 0 */
/* USER CODE END TIM8_TRG_COM_TIM14_IRQn 0 */
HAL_TIM_IRQHandler(&htim14);
80012c0: 4802 ldr r0, [pc, #8] @ (80012cc <TIM8_TRG_COM_TIM14_IRQHandler+0x10>)
80012c2: f001 fcff bl 8002cc4 <HAL_TIM_IRQHandler>
/* USER CODE BEGIN TIM8_TRG_COM_TIM14_IRQn 1 */
/* USER CODE END TIM8_TRG_COM_TIM14_IRQn 1 */
}
80012c6: bf00 nop
80012c8: bd80 pop {r7, pc}
80012ca: bf00 nop
80012cc: 20000118 .word 0x20000118
080012d0 <_read>:
_kill(status, -1);
while (1) {} /* Make sure we hang here */
}
__attribute__((weak)) int _read(int file, char *ptr, int len)
{
80012d0: b580 push {r7, lr}
80012d2: b086 sub sp, #24
80012d4: af00 add r7, sp, #0
80012d6: 60f8 str r0, [r7, #12]
80012d8: 60b9 str r1, [r7, #8]
80012da: 607a str r2, [r7, #4]
(void)file;
int DataIdx;
for (DataIdx = 0; DataIdx < len; DataIdx++)
80012dc: 2300 movs r3, #0
80012de: 617b str r3, [r7, #20]
80012e0: e00a b.n 80012f8 <_read+0x28>
{
*ptr++ = __io_getchar();
80012e2: f3af 8000 nop.w
80012e6: 4601 mov r1, r0
80012e8: 68bb ldr r3, [r7, #8]
80012ea: 1c5a adds r2, r3, #1
80012ec: 60ba str r2, [r7, #8]
80012ee: b2ca uxtb r2, r1
80012f0: 701a strb r2, [r3, #0]
for (DataIdx = 0; DataIdx < len; DataIdx++)
80012f2: 697b ldr r3, [r7, #20]
80012f4: 3301 adds r3, #1
80012f6: 617b str r3, [r7, #20]
80012f8: 697a ldr r2, [r7, #20]
80012fa: 687b ldr r3, [r7, #4]
80012fc: 429a cmp r2, r3
80012fe: dbf0 blt.n 80012e2 <_read+0x12>
}
return len;
8001300: 687b ldr r3, [r7, #4]
}
8001302: 4618 mov r0, r3
8001304: 3718 adds r7, #24
8001306: 46bd mov sp, r7
8001308: bd80 pop {r7, pc}
0800130a <_close>:
}
return len;
}
int _close(int file)
{
800130a: b480 push {r7}
800130c: b083 sub sp, #12
800130e: af00 add r7, sp, #0
8001310: 6078 str r0, [r7, #4]
(void)file;
return -1;
8001312: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
}
8001316: 4618 mov r0, r3
8001318: 370c adds r7, #12
800131a: 46bd mov sp, r7
800131c: f85d 7b04 ldr.w r7, [sp], #4
8001320: 4770 bx lr
08001322 <_fstat>:
int _fstat(int file, struct stat *st)
{
8001322: b480 push {r7}
8001324: b083 sub sp, #12
8001326: af00 add r7, sp, #0
8001328: 6078 str r0, [r7, #4]
800132a: 6039 str r1, [r7, #0]
(void)file;
st->st_mode = S_IFCHR;
800132c: 683b ldr r3, [r7, #0]
800132e: f44f 5200 mov.w r2, #8192 @ 0x2000
8001332: 605a str r2, [r3, #4]
return 0;
8001334: 2300 movs r3, #0
}
8001336: 4618 mov r0, r3
8001338: 370c adds r7, #12
800133a: 46bd mov sp, r7
800133c: f85d 7b04 ldr.w r7, [sp], #4
8001340: 4770 bx lr
08001342 <_isatty>:
int _isatty(int file)
{
8001342: b480 push {r7}
8001344: b083 sub sp, #12
8001346: af00 add r7, sp, #0
8001348: 6078 str r0, [r7, #4]
(void)file;
return 1;
800134a: 2301 movs r3, #1
}
800134c: 4618 mov r0, r3
800134e: 370c adds r7, #12
8001350: 46bd mov sp, r7
8001352: f85d 7b04 ldr.w r7, [sp], #4
8001356: 4770 bx lr
08001358 <_lseek>:
int _lseek(int file, int ptr, int dir)
{
8001358: b480 push {r7}
800135a: b085 sub sp, #20
800135c: af00 add r7, sp, #0
800135e: 60f8 str r0, [r7, #12]
8001360: 60b9 str r1, [r7, #8]
8001362: 607a str r2, [r7, #4]
(void)file;
(void)ptr;
(void)dir;
return 0;
8001364: 2300 movs r3, #0
}
8001366: 4618 mov r0, r3
8001368: 3714 adds r7, #20
800136a: 46bd mov sp, r7
800136c: f85d 7b04 ldr.w r7, [sp], #4
8001370: 4770 bx lr
...
08001374 <_sbrk>:
*
* @param incr Memory size
* @return Pointer to allocated memory
*/
void *_sbrk(ptrdiff_t incr)
{
8001374: b580 push {r7, lr}
8001376: b086 sub sp, #24
8001378: af00 add r7, sp, #0
800137a: 6078 str r0, [r7, #4]
extern uint8_t _end; /* Symbol defined in the linker script */
extern uint8_t _estack; /* Symbol defined in the linker script */
extern uint32_t _Min_Stack_Size; /* Symbol defined in the linker script */
const uint32_t stack_limit = (uint32_t)&_estack - (uint32_t)&_Min_Stack_Size;
800137c: 4a14 ldr r2, [pc, #80] @ (80013d0 <_sbrk+0x5c>)
800137e: 4b15 ldr r3, [pc, #84] @ (80013d4 <_sbrk+0x60>)
8001380: 1ad3 subs r3, r2, r3
8001382: 617b str r3, [r7, #20]
const uint8_t *max_heap = (uint8_t *)stack_limit;
8001384: 697b ldr r3, [r7, #20]
8001386: 613b str r3, [r7, #16]
uint8_t *prev_heap_end;
/* Initialize heap end at first call */
if (NULL == __sbrk_heap_end)
8001388: 4b13 ldr r3, [pc, #76] @ (80013d8 <_sbrk+0x64>)
800138a: 681b ldr r3, [r3, #0]
800138c: 2b00 cmp r3, #0
800138e: d102 bne.n 8001396 <_sbrk+0x22>
{
__sbrk_heap_end = &_end;
8001390: 4b11 ldr r3, [pc, #68] @ (80013d8 <_sbrk+0x64>)
8001392: 4a12 ldr r2, [pc, #72] @ (80013dc <_sbrk+0x68>)
8001394: 601a str r2, [r3, #0]
}
/* Protect heap from growing into the reserved MSP stack */
if (__sbrk_heap_end + incr > max_heap)
8001396: 4b10 ldr r3, [pc, #64] @ (80013d8 <_sbrk+0x64>)
8001398: 681a ldr r2, [r3, #0]
800139a: 687b ldr r3, [r7, #4]
800139c: 4413 add r3, r2
800139e: 693a ldr r2, [r7, #16]
80013a0: 429a cmp r2, r3
80013a2: d207 bcs.n 80013b4 <_sbrk+0x40>
{
errno = ENOMEM;
80013a4: f005 faf8 bl 8006998 <__errno>
80013a8: 4603 mov r3, r0
80013aa: 220c movs r2, #12
80013ac: 601a str r2, [r3, #0]
return (void *)-1;
80013ae: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
80013b2: e009 b.n 80013c8 <_sbrk+0x54>
}
prev_heap_end = __sbrk_heap_end;
80013b4: 4b08 ldr r3, [pc, #32] @ (80013d8 <_sbrk+0x64>)
80013b6: 681b ldr r3, [r3, #0]
80013b8: 60fb str r3, [r7, #12]
__sbrk_heap_end += incr;
80013ba: 4b07 ldr r3, [pc, #28] @ (80013d8 <_sbrk+0x64>)
80013bc: 681a ldr r2, [r3, #0]
80013be: 687b ldr r3, [r7, #4]
80013c0: 4413 add r3, r2
80013c2: 4a05 ldr r2, [pc, #20] @ (80013d8 <_sbrk+0x64>)
80013c4: 6013 str r3, [r2, #0]
return (void *)prev_heap_end;
80013c6: 68fb ldr r3, [r7, #12]
}
80013c8: 4618 mov r0, r3
80013ca: 3718 adds r7, #24
80013cc: 46bd mov sp, r7
80013ce: bd80 pop {r7, pc}
80013d0: 20040000 .word 0x20040000
80013d4: 00000400 .word 0x00000400
80013d8: 20000164 .word 0x20000164
80013dc: 20005200 .word 0x20005200
080013e0 <SystemInit>:
* SystemFrequency variable.
* @param None
* @retval None
*/
void SystemInit(void)
{
80013e0: b480 push {r7}
80013e2: 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 */
80013e4: 4b06 ldr r3, [pc, #24] @ (8001400 <SystemInit+0x20>)
80013e6: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
80013ea: 4a05 ldr r2, [pc, #20] @ (8001400 <SystemInit+0x20>)
80013ec: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
80013f0: 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 */
}
80013f4: bf00 nop
80013f6: 46bd mov sp, r7
80013f8: f85d 7b04 ldr.w r7, [sp], #4
80013fc: 4770 bx lr
80013fe: bf00 nop
8001400: e000ed00 .word 0xe000ed00
08001404 <Reset_Handler>:
.section .text.Reset_Handler
.weak Reset_Handler
.type Reset_Handler, %function
Reset_Handler:
ldr sp, =_estack /* set stack pointer */
8001404: f8df d034 ldr.w sp, [pc, #52] @ 800143c <LoopFillZerobss+0xe>
/* Call the clock system initialization function.*/
bl SystemInit
8001408: f7ff ffea bl 80013e0 <SystemInit>
/* Copy the data segment initializers from flash to SRAM */
ldr r0, =_sdata
800140c: 480c ldr r0, [pc, #48] @ (8001440 <LoopFillZerobss+0x12>)
ldr r1, =_edata
800140e: 490d ldr r1, [pc, #52] @ (8001444 <LoopFillZerobss+0x16>)
ldr r2, =_sidata
8001410: 4a0d ldr r2, [pc, #52] @ (8001448 <LoopFillZerobss+0x1a>)
movs r3, #0
8001412: 2300 movs r3, #0
b LoopCopyDataInit
8001414: e002 b.n 800141c <LoopCopyDataInit>
08001416 <CopyDataInit>:
CopyDataInit:
ldr r4, [r2, r3]
8001416: 58d4 ldr r4, [r2, r3]
str r4, [r0, r3]
8001418: 50c4 str r4, [r0, r3]
adds r3, r3, #4
800141a: 3304 adds r3, #4
0800141c <LoopCopyDataInit>:
LoopCopyDataInit:
adds r4, r0, r3
800141c: 18c4 adds r4, r0, r3
cmp r4, r1
800141e: 428c cmp r4, r1
bcc CopyDataInit
8001420: d3f9 bcc.n 8001416 <CopyDataInit>
/* Zero fill the bss segment. */
ldr r2, =_sbss
8001422: 4a0a ldr r2, [pc, #40] @ (800144c <LoopFillZerobss+0x1e>)
ldr r4, =_ebss
8001424: 4c0a ldr r4, [pc, #40] @ (8001450 <LoopFillZerobss+0x22>)
movs r3, #0
8001426: 2300 movs r3, #0
b LoopFillZerobss
8001428: e001 b.n 800142e <LoopFillZerobss>
0800142a <FillZerobss>:
FillZerobss:
str r3, [r2]
800142a: 6013 str r3, [r2, #0]
adds r2, r2, #4
800142c: 3204 adds r2, #4
0800142e <LoopFillZerobss>:
LoopFillZerobss:
cmp r2, r4
800142e: 42a2 cmp r2, r4
bcc FillZerobss
8001430: d3fb bcc.n 800142a <FillZerobss>
/* Call static constructors */
bl __libc_init_array
8001432: f005 fab7 bl 80069a4 <__libc_init_array>
/* Call the application's entry point.*/
bl main
8001436: f7ff f931 bl 800069c <main>
bx lr
800143a: 4770 bx lr
ldr sp, =_estack /* set stack pointer */
800143c: 20040000 .word 0x20040000
ldr r0, =_sdata
8001440: 20000000 .word 0x20000000
ldr r1, =_edata
8001444: 2000006c .word 0x2000006c
ldr r2, =_sidata
8001448: 08007640 .word 0x08007640
ldr r2, =_sbss
800144c: 2000006c .word 0x2000006c
ldr r4, =_ebss
8001450: 20005200 .word 0x20005200
08001454 <ADC_IRQHandler>:
* @retval None
*/
.section .text.Default_Handler,"ax",%progbits
Default_Handler:
Infinite_Loop:
b Infinite_Loop
8001454: e7fe b.n 8001454 <ADC_IRQHandler>
08001456 <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)
{
8001456: b580 push {r7, lr}
8001458: af00 add r7, sp, #0
#if (PREFETCH_ENABLE != 0U)
__HAL_FLASH_PREFETCH_BUFFER_ENABLE();
#endif /* PREFETCH_ENABLE */
/* Set Interrupt Group Priority */
HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
800145a: 2003 movs r0, #3
800145c: f000 f8d5 bl 800160a <HAL_NVIC_SetPriorityGrouping>
/* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */
HAL_InitTick(TICK_INT_PRIORITY);
8001460: 200f movs r0, #15
8001462: f7ff fe95 bl 8001190 <HAL_InitTick>
/* Init the low level hardware */
HAL_MspInit();
8001466: f7ff fe0d bl 8001084 <HAL_MspInit>
/* Return function status */
return HAL_OK;
800146a: 2300 movs r3, #0
}
800146c: 4618 mov r0, r3
800146e: bd80 pop {r7, pc}
08001470 <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)
{
8001470: b480 push {r7}
8001472: af00 add r7, sp, #0
uwTick += uwTickFreq;
8001474: 4b06 ldr r3, [pc, #24] @ (8001490 <HAL_IncTick+0x20>)
8001476: 781b ldrb r3, [r3, #0]
8001478: 461a mov r2, r3
800147a: 4b06 ldr r3, [pc, #24] @ (8001494 <HAL_IncTick+0x24>)
800147c: 681b ldr r3, [r3, #0]
800147e: 4413 add r3, r2
8001480: 4a04 ldr r2, [pc, #16] @ (8001494 <HAL_IncTick+0x24>)
8001482: 6013 str r3, [r2, #0]
}
8001484: bf00 nop
8001486: 46bd mov sp, r7
8001488: f85d 7b04 ldr.w r7, [sp], #4
800148c: 4770 bx lr
800148e: bf00 nop
8001490: 20000008 .word 0x20000008
8001494: 20000168 .word 0x20000168
08001498 <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)
{
8001498: b480 push {r7}
800149a: af00 add r7, sp, #0
return uwTick;
800149c: 4b03 ldr r3, [pc, #12] @ (80014ac <HAL_GetTick+0x14>)
800149e: 681b ldr r3, [r3, #0]
}
80014a0: 4618 mov r0, r3
80014a2: 46bd mov sp, r7
80014a4: f85d 7b04 ldr.w r7, [sp], #4
80014a8: 4770 bx lr
80014aa: bf00 nop
80014ac: 20000168 .word 0x20000168
080014b0 <__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)
{
80014b0: b480 push {r7}
80014b2: b085 sub sp, #20
80014b4: af00 add r7, sp, #0
80014b6: 6078 str r0, [r7, #4]
uint32_t reg_value;
uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
80014b8: 687b ldr r3, [r7, #4]
80014ba: f003 0307 and.w r3, r3, #7
80014be: 60fb str r3, [r7, #12]
reg_value = SCB->AIRCR; /* read old register configuration */
80014c0: 4b0b ldr r3, [pc, #44] @ (80014f0 <__NVIC_SetPriorityGrouping+0x40>)
80014c2: 68db ldr r3, [r3, #12]
80014c4: 60bb str r3, [r7, #8]
reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */
80014c6: 68ba ldr r2, [r7, #8]
80014c8: f64f 03ff movw r3, #63743 @ 0xf8ff
80014cc: 4013 ands r3, r2
80014ce: 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 */
80014d0: 68fb ldr r3, [r7, #12]
80014d2: 021a lsls r2, r3, #8
((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) |
80014d4: 68bb ldr r3, [r7, #8]
80014d6: 431a orrs r2, r3
reg_value = (reg_value |
80014d8: 4b06 ldr r3, [pc, #24] @ (80014f4 <__NVIC_SetPriorityGrouping+0x44>)
80014da: 4313 orrs r3, r2
80014dc: 60bb str r3, [r7, #8]
SCB->AIRCR = reg_value;
80014de: 4a04 ldr r2, [pc, #16] @ (80014f0 <__NVIC_SetPriorityGrouping+0x40>)
80014e0: 68bb ldr r3, [r7, #8]
80014e2: 60d3 str r3, [r2, #12]
}
80014e4: bf00 nop
80014e6: 3714 adds r7, #20
80014e8: 46bd mov sp, r7
80014ea: f85d 7b04 ldr.w r7, [sp], #4
80014ee: 4770 bx lr
80014f0: e000ed00 .word 0xe000ed00
80014f4: 05fa0000 .word 0x05fa0000
080014f8 <__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)
{
80014f8: b480 push {r7}
80014fa: af00 add r7, sp, #0
return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos));
80014fc: 4b04 ldr r3, [pc, #16] @ (8001510 <__NVIC_GetPriorityGrouping+0x18>)
80014fe: 68db ldr r3, [r3, #12]
8001500: 0a1b lsrs r3, r3, #8
8001502: f003 0307 and.w r3, r3, #7
}
8001506: 4618 mov r0, r3
8001508: 46bd mov sp, r7
800150a: f85d 7b04 ldr.w r7, [sp], #4
800150e: 4770 bx lr
8001510: e000ed00 .word 0xe000ed00
08001514 <__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)
{
8001514: b480 push {r7}
8001516: b083 sub sp, #12
8001518: af00 add r7, sp, #0
800151a: 4603 mov r3, r0
800151c: 71fb strb r3, [r7, #7]
if ((int32_t)(IRQn) >= 0)
800151e: f997 3007 ldrsb.w r3, [r7, #7]
8001522: 2b00 cmp r3, #0
8001524: db0b blt.n 800153e <__NVIC_EnableIRQ+0x2a>
{
NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL));
8001526: 79fb ldrb r3, [r7, #7]
8001528: f003 021f and.w r2, r3, #31
800152c: 4907 ldr r1, [pc, #28] @ (800154c <__NVIC_EnableIRQ+0x38>)
800152e: f997 3007 ldrsb.w r3, [r7, #7]
8001532: 095b lsrs r3, r3, #5
8001534: 2001 movs r0, #1
8001536: fa00 f202 lsl.w r2, r0, r2
800153a: f841 2023 str.w r2, [r1, r3, lsl #2]
}
}
800153e: bf00 nop
8001540: 370c adds r7, #12
8001542: 46bd mov sp, r7
8001544: f85d 7b04 ldr.w r7, [sp], #4
8001548: 4770 bx lr
800154a: bf00 nop
800154c: e000e100 .word 0xe000e100
08001550 <__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)
{
8001550: b480 push {r7}
8001552: b083 sub sp, #12
8001554: af00 add r7, sp, #0
8001556: 4603 mov r3, r0
8001558: 6039 str r1, [r7, #0]
800155a: 71fb strb r3, [r7, #7]
if ((int32_t)(IRQn) >= 0)
800155c: f997 3007 ldrsb.w r3, [r7, #7]
8001560: 2b00 cmp r3, #0
8001562: db0a blt.n 800157a <__NVIC_SetPriority+0x2a>
{
NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
8001564: 683b ldr r3, [r7, #0]
8001566: b2da uxtb r2, r3
8001568: 490c ldr r1, [pc, #48] @ (800159c <__NVIC_SetPriority+0x4c>)
800156a: f997 3007 ldrsb.w r3, [r7, #7]
800156e: 0112 lsls r2, r2, #4
8001570: b2d2 uxtb r2, r2
8001572: 440b add r3, r1
8001574: f883 2300 strb.w r2, [r3, #768] @ 0x300
}
else
{
SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
}
}
8001578: e00a b.n 8001590 <__NVIC_SetPriority+0x40>
SCB->SHPR[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL);
800157a: 683b ldr r3, [r7, #0]
800157c: b2da uxtb r2, r3
800157e: 4908 ldr r1, [pc, #32] @ (80015a0 <__NVIC_SetPriority+0x50>)
8001580: 79fb ldrb r3, [r7, #7]
8001582: f003 030f and.w r3, r3, #15
8001586: 3b04 subs r3, #4
8001588: 0112 lsls r2, r2, #4
800158a: b2d2 uxtb r2, r2
800158c: 440b add r3, r1
800158e: 761a strb r2, [r3, #24]
}
8001590: bf00 nop
8001592: 370c adds r7, #12
8001594: 46bd mov sp, r7
8001596: f85d 7b04 ldr.w r7, [sp], #4
800159a: 4770 bx lr
800159c: e000e100 .word 0xe000e100
80015a0: e000ed00 .word 0xe000ed00
080015a4 <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)
{
80015a4: b480 push {r7}
80015a6: b089 sub sp, #36 @ 0x24
80015a8: af00 add r7, sp, #0
80015aa: 60f8 str r0, [r7, #12]
80015ac: 60b9 str r1, [r7, #8]
80015ae: 607a str r2, [r7, #4]
uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */
80015b0: 68fb ldr r3, [r7, #12]
80015b2: f003 0307 and.w r3, r3, #7
80015b6: 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);
80015b8: 69fb ldr r3, [r7, #28]
80015ba: f1c3 0307 rsb r3, r3, #7
80015be: 2b04 cmp r3, #4
80015c0: bf28 it cs
80015c2: 2304 movcs r3, #4
80015c4: 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));
80015c6: 69fb ldr r3, [r7, #28]
80015c8: 3304 adds r3, #4
80015ca: 2b06 cmp r3, #6
80015cc: d902 bls.n 80015d4 <NVIC_EncodePriority+0x30>
80015ce: 69fb ldr r3, [r7, #28]
80015d0: 3b03 subs r3, #3
80015d2: e000 b.n 80015d6 <NVIC_EncodePriority+0x32>
80015d4: 2300 movs r3, #0
80015d6: 617b str r3, [r7, #20]
return (
((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
80015d8: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
80015dc: 69bb ldr r3, [r7, #24]
80015de: fa02 f303 lsl.w r3, r2, r3
80015e2: 43da mvns r2, r3
80015e4: 68bb ldr r3, [r7, #8]
80015e6: 401a ands r2, r3
80015e8: 697b ldr r3, [r7, #20]
80015ea: 409a lsls r2, r3
((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL)))
80015ec: f04f 31ff mov.w r1, #4294967295 @ 0xffffffff
80015f0: 697b ldr r3, [r7, #20]
80015f2: fa01 f303 lsl.w r3, r1, r3
80015f6: 43d9 mvns r1, r3
80015f8: 687b ldr r3, [r7, #4]
80015fa: 400b ands r3, r1
((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) |
80015fc: 4313 orrs r3, r2
);
}
80015fe: 4618 mov r0, r3
8001600: 3724 adds r7, #36 @ 0x24
8001602: 46bd mov sp, r7
8001604: f85d 7b04 ldr.w r7, [sp], #4
8001608: 4770 bx lr
0800160a <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)
{
800160a: b580 push {r7, lr}
800160c: b082 sub sp, #8
800160e: af00 add r7, sp, #0
8001610: 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);
8001612: 6878 ldr r0, [r7, #4]
8001614: f7ff ff4c bl 80014b0 <__NVIC_SetPriorityGrouping>
}
8001618: bf00 nop
800161a: 3708 adds r7, #8
800161c: 46bd mov sp, r7
800161e: bd80 pop {r7, pc}
08001620 <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)
{
8001620: b580 push {r7, lr}
8001622: b086 sub sp, #24
8001624: af00 add r7, sp, #0
8001626: 4603 mov r3, r0
8001628: 60b9 str r1, [r7, #8]
800162a: 607a str r2, [r7, #4]
800162c: 73fb strb r3, [r7, #15]
uint32_t prioritygroup = 0x00;
800162e: 2300 movs r3, #0
8001630: 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();
8001632: f7ff ff61 bl 80014f8 <__NVIC_GetPriorityGrouping>
8001636: 6178 str r0, [r7, #20]
NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority));
8001638: 687a ldr r2, [r7, #4]
800163a: 68b9 ldr r1, [r7, #8]
800163c: 6978 ldr r0, [r7, #20]
800163e: f7ff ffb1 bl 80015a4 <NVIC_EncodePriority>
8001642: 4602 mov r2, r0
8001644: f997 300f ldrsb.w r3, [r7, #15]
8001648: 4611 mov r1, r2
800164a: 4618 mov r0, r3
800164c: f7ff ff80 bl 8001550 <__NVIC_SetPriority>
}
8001650: bf00 nop
8001652: 3718 adds r7, #24
8001654: 46bd mov sp, r7
8001656: bd80 pop {r7, pc}
08001658 <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 (stm32f7xxxx.h))
* @retval None
*/
void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
{
8001658: b580 push {r7, lr}
800165a: b082 sub sp, #8
800165c: af00 add r7, sp, #0
800165e: 4603 mov r3, r0
8001660: 71fb strb r3, [r7, #7]
/* Check the parameters */
assert_param(IS_NVIC_DEVICE_IRQ(IRQn));
/* Enable interrupt */
NVIC_EnableIRQ(IRQn);
8001662: f997 3007 ldrsb.w r3, [r7, #7]
8001666: 4618 mov r0, r3
8001668: f7ff ff54 bl 8001514 <__NVIC_EnableIRQ>
}
800166c: bf00 nop
800166e: 3708 adds r7, #8
8001670: 46bd mov sp, r7
8001672: bd80 pop {r7, pc}
08001674 <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)
{
8001674: b480 push {r7}
8001676: b089 sub sp, #36 @ 0x24
8001678: af00 add r7, sp, #0
800167a: 6078 str r0, [r7, #4]
800167c: 6039 str r1, [r7, #0]
uint32_t position = 0x00;
800167e: 2300 movs r3, #0
8001680: 61fb str r3, [r7, #28]
uint32_t ioposition = 0x00;
8001682: 2300 movs r3, #0
8001684: 617b str r3, [r7, #20]
uint32_t iocurrent = 0x00;
8001686: 2300 movs r3, #0
8001688: 613b str r3, [r7, #16]
uint32_t temp = 0x00;
800168a: 2300 movs r3, #0
800168c: 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 = 0; position < GPIO_NUMBER; position++)
800168e: 2300 movs r3, #0
8001690: 61fb str r3, [r7, #28]
8001692: e169 b.n 8001968 <HAL_GPIO_Init+0x2f4>
{
/* Get the IO position */
ioposition = ((uint32_t)0x01) << position;
8001694: 2201 movs r2, #1
8001696: 69fb ldr r3, [r7, #28]
8001698: fa02 f303 lsl.w r3, r2, r3
800169c: 617b str r3, [r7, #20]
/* Get the current IO position */
iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition;
800169e: 683b ldr r3, [r7, #0]
80016a0: 681b ldr r3, [r3, #0]
80016a2: 697a ldr r2, [r7, #20]
80016a4: 4013 ands r3, r2
80016a6: 613b str r3, [r7, #16]
if (iocurrent == ioposition)
80016a8: 693a ldr r2, [r7, #16]
80016aa: 697b ldr r3, [r7, #20]
80016ac: 429a cmp r2, r3
80016ae: f040 8158 bne.w 8001962 <HAL_GPIO_Init+0x2ee>
{
/*--------------------- GPIO Mode Configuration ------------------------*/
/* In case of Output or Alternate function mode selection */
if (((GPIO_Init->Mode & GPIO_MODE) == MODE_OUTPUT) || ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF))
80016b2: 683b ldr r3, [r7, #0]
80016b4: 685b ldr r3, [r3, #4]
80016b6: f003 0303 and.w r3, r3, #3
80016ba: 2b01 cmp r3, #1
80016bc: d005 beq.n 80016ca <HAL_GPIO_Init+0x56>
80016be: 683b ldr r3, [r7, #0]
80016c0: 685b ldr r3, [r3, #4]
80016c2: f003 0303 and.w r3, r3, #3
80016c6: 2b02 cmp r3, #2
80016c8: d130 bne.n 800172c <HAL_GPIO_Init+0xb8>
{
/* Check the Speed parameter */
assert_param(IS_GPIO_SPEED(GPIO_Init->Speed));
/* Configure the IO Speed */
temp = GPIOx->OSPEEDR;
80016ca: 687b ldr r3, [r7, #4]
80016cc: 689b ldr r3, [r3, #8]
80016ce: 61bb str r3, [r7, #24]
temp &= ~(GPIO_OSPEEDER_OSPEEDR0 << (position * 2));
80016d0: 69fb ldr r3, [r7, #28]
80016d2: 005b lsls r3, r3, #1
80016d4: 2203 movs r2, #3
80016d6: fa02 f303 lsl.w r3, r2, r3
80016da: 43db mvns r3, r3
80016dc: 69ba ldr r2, [r7, #24]
80016de: 4013 ands r3, r2
80016e0: 61bb str r3, [r7, #24]
temp |= (GPIO_Init->Speed << (position * 2));
80016e2: 683b ldr r3, [r7, #0]
80016e4: 68da ldr r2, [r3, #12]
80016e6: 69fb ldr r3, [r7, #28]
80016e8: 005b lsls r3, r3, #1
80016ea: fa02 f303 lsl.w r3, r2, r3
80016ee: 69ba ldr r2, [r7, #24]
80016f0: 4313 orrs r3, r2
80016f2: 61bb str r3, [r7, #24]
GPIOx->OSPEEDR = temp;
80016f4: 687b ldr r3, [r7, #4]
80016f6: 69ba ldr r2, [r7, #24]
80016f8: 609a str r2, [r3, #8]
/* Configure the IO Output Type */
temp = GPIOx->OTYPER;
80016fa: 687b ldr r3, [r7, #4]
80016fc: 685b ldr r3, [r3, #4]
80016fe: 61bb str r3, [r7, #24]
temp &= ~(GPIO_OTYPER_OT_0 << position) ;
8001700: 2201 movs r2, #1
8001702: 69fb ldr r3, [r7, #28]
8001704: fa02 f303 lsl.w r3, r2, r3
8001708: 43db mvns r3, r3
800170a: 69ba ldr r2, [r7, #24]
800170c: 4013 ands r3, r2
800170e: 61bb str r3, [r7, #24]
temp |= (((GPIO_Init->Mode & OUTPUT_TYPE) >> OUTPUT_TYPE_Pos) << position);
8001710: 683b ldr r3, [r7, #0]
8001712: 685b ldr r3, [r3, #4]
8001714: 091b lsrs r3, r3, #4
8001716: f003 0201 and.w r2, r3, #1
800171a: 69fb ldr r3, [r7, #28]
800171c: fa02 f303 lsl.w r3, r2, r3
8001720: 69ba ldr r2, [r7, #24]
8001722: 4313 orrs r3, r2
8001724: 61bb str r3, [r7, #24]
GPIOx->OTYPER = temp;
8001726: 687b ldr r3, [r7, #4]
8001728: 69ba ldr r2, [r7, #24]
800172a: 605a str r2, [r3, #4]
}
if ((GPIO_Init->Mode & GPIO_MODE) != MODE_ANALOG)
800172c: 683b ldr r3, [r7, #0]
800172e: 685b ldr r3, [r3, #4]
8001730: f003 0303 and.w r3, r3, #3
8001734: 2b03 cmp r3, #3
8001736: d017 beq.n 8001768 <HAL_GPIO_Init+0xf4>
{
/* Check the Pull parameter */
assert_param(IS_GPIO_PULL(GPIO_Init->Pull));
/* Activate the Pull-up or Pull down resistor for the current IO */
temp = GPIOx->PUPDR;
8001738: 687b ldr r3, [r7, #4]
800173a: 68db ldr r3, [r3, #12]
800173c: 61bb str r3, [r7, #24]
temp &= ~(GPIO_PUPDR_PUPDR0 << (position * 2));
800173e: 69fb ldr r3, [r7, #28]
8001740: 005b lsls r3, r3, #1
8001742: 2203 movs r2, #3
8001744: fa02 f303 lsl.w r3, r2, r3
8001748: 43db mvns r3, r3
800174a: 69ba ldr r2, [r7, #24]
800174c: 4013 ands r3, r2
800174e: 61bb str r3, [r7, #24]
temp |= ((GPIO_Init->Pull) << (position * 2));
8001750: 683b ldr r3, [r7, #0]
8001752: 689a ldr r2, [r3, #8]
8001754: 69fb ldr r3, [r7, #28]
8001756: 005b lsls r3, r3, #1
8001758: fa02 f303 lsl.w r3, r2, r3
800175c: 69ba ldr r2, [r7, #24]
800175e: 4313 orrs r3, r2
8001760: 61bb str r3, [r7, #24]
GPIOx->PUPDR = temp;
8001762: 687b ldr r3, [r7, #4]
8001764: 69ba ldr r2, [r7, #24]
8001766: 60da str r2, [r3, #12]
}
/* In case of Alternate function mode selection */
if ((GPIO_Init->Mode & GPIO_MODE) == MODE_AF)
8001768: 683b ldr r3, [r7, #0]
800176a: 685b ldr r3, [r3, #4]
800176c: f003 0303 and.w r3, r3, #3
8001770: 2b02 cmp r3, #2
8001772: d123 bne.n 80017bc <HAL_GPIO_Init+0x148>
{
/* 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 >> 3];
8001774: 69fb ldr r3, [r7, #28]
8001776: 08da lsrs r2, r3, #3
8001778: 687b ldr r3, [r7, #4]
800177a: 3208 adds r2, #8
800177c: f853 3022 ldr.w r3, [r3, r2, lsl #2]
8001780: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)0xF << ((uint32_t)(position & (uint32_t)0x07) * 4)) ;
8001782: 69fb ldr r3, [r7, #28]
8001784: f003 0307 and.w r3, r3, #7
8001788: 009b lsls r3, r3, #2
800178a: 220f movs r2, #15
800178c: fa02 f303 lsl.w r3, r2, r3
8001790: 43db mvns r3, r3
8001792: 69ba ldr r2, [r7, #24]
8001794: 4013 ands r3, r2
8001796: 61bb str r3, [r7, #24]
temp |= ((uint32_t)(GPIO_Init->Alternate) << (((uint32_t)position & (uint32_t)0x07) * 4));
8001798: 683b ldr r3, [r7, #0]
800179a: 691a ldr r2, [r3, #16]
800179c: 69fb ldr r3, [r7, #28]
800179e: f003 0307 and.w r3, r3, #7
80017a2: 009b lsls r3, r3, #2
80017a4: fa02 f303 lsl.w r3, r2, r3
80017a8: 69ba ldr r2, [r7, #24]
80017aa: 4313 orrs r3, r2
80017ac: 61bb str r3, [r7, #24]
GPIOx->AFR[position >> 3] = temp;
80017ae: 69fb ldr r3, [r7, #28]
80017b0: 08da lsrs r2, r3, #3
80017b2: 687b ldr r3, [r7, #4]
80017b4: 3208 adds r2, #8
80017b6: 69b9 ldr r1, [r7, #24]
80017b8: f843 1022 str.w r1, [r3, r2, lsl #2]
}
/* Configure IO Direction mode (Input, Output, Alternate or Analog) */
temp = GPIOx->MODER;
80017bc: 687b ldr r3, [r7, #4]
80017be: 681b ldr r3, [r3, #0]
80017c0: 61bb str r3, [r7, #24]
temp &= ~(GPIO_MODER_MODER0 << (position * 2));
80017c2: 69fb ldr r3, [r7, #28]
80017c4: 005b lsls r3, r3, #1
80017c6: 2203 movs r2, #3
80017c8: fa02 f303 lsl.w r3, r2, r3
80017cc: 43db mvns r3, r3
80017ce: 69ba ldr r2, [r7, #24]
80017d0: 4013 ands r3, r2
80017d2: 61bb str r3, [r7, #24]
temp |= ((GPIO_Init->Mode & GPIO_MODE) << (position * 2));
80017d4: 683b ldr r3, [r7, #0]
80017d6: 685b ldr r3, [r3, #4]
80017d8: f003 0203 and.w r2, r3, #3
80017dc: 69fb ldr r3, [r7, #28]
80017de: 005b lsls r3, r3, #1
80017e0: fa02 f303 lsl.w r3, r2, r3
80017e4: 69ba ldr r2, [r7, #24]
80017e6: 4313 orrs r3, r2
80017e8: 61bb str r3, [r7, #24]
GPIOx->MODER = temp;
80017ea: 687b ldr r3, [r7, #4]
80017ec: 69ba ldr r2, [r7, #24]
80017ee: 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)
80017f0: 683b ldr r3, [r7, #0]
80017f2: 685b ldr r3, [r3, #4]
80017f4: f403 3340 and.w r3, r3, #196608 @ 0x30000
80017f8: 2b00 cmp r3, #0
80017fa: f000 80b2 beq.w 8001962 <HAL_GPIO_Init+0x2ee>
{
/* Enable SYSCFG Clock */
__HAL_RCC_SYSCFG_CLK_ENABLE();
80017fe: 4b60 ldr r3, [pc, #384] @ (8001980 <HAL_GPIO_Init+0x30c>)
8001800: 6c5b ldr r3, [r3, #68] @ 0x44
8001802: 4a5f ldr r2, [pc, #380] @ (8001980 <HAL_GPIO_Init+0x30c>)
8001804: f443 4380 orr.w r3, r3, #16384 @ 0x4000
8001808: 6453 str r3, [r2, #68] @ 0x44
800180a: 4b5d ldr r3, [pc, #372] @ (8001980 <HAL_GPIO_Init+0x30c>)
800180c: 6c5b ldr r3, [r3, #68] @ 0x44
800180e: f403 4380 and.w r3, r3, #16384 @ 0x4000
8001812: 60fb str r3, [r7, #12]
8001814: 68fb ldr r3, [r7, #12]
temp = SYSCFG->EXTICR[position >> 2];
8001816: 4a5b ldr r2, [pc, #364] @ (8001984 <HAL_GPIO_Init+0x310>)
8001818: 69fb ldr r3, [r7, #28]
800181a: 089b lsrs r3, r3, #2
800181c: 3302 adds r3, #2
800181e: f852 3023 ldr.w r3, [r2, r3, lsl #2]
8001822: 61bb str r3, [r7, #24]
temp &= ~(((uint32_t)0x0F) << (4 * (position & 0x03)));
8001824: 69fb ldr r3, [r7, #28]
8001826: f003 0303 and.w r3, r3, #3
800182a: 009b lsls r3, r3, #2
800182c: 220f movs r2, #15
800182e: fa02 f303 lsl.w r3, r2, r3
8001832: 43db mvns r3, r3
8001834: 69ba ldr r2, [r7, #24]
8001836: 4013 ands r3, r2
8001838: 61bb str r3, [r7, #24]
temp |= ((uint32_t)(GPIO_GET_INDEX(GPIOx)) << (4 * (position & 0x03)));
800183a: 687b ldr r3, [r7, #4]
800183c: 4a52 ldr r2, [pc, #328] @ (8001988 <HAL_GPIO_Init+0x314>)
800183e: 4293 cmp r3, r2
8001840: d02b beq.n 800189a <HAL_GPIO_Init+0x226>
8001842: 687b ldr r3, [r7, #4]
8001844: 4a51 ldr r2, [pc, #324] @ (800198c <HAL_GPIO_Init+0x318>)
8001846: 4293 cmp r3, r2
8001848: d025 beq.n 8001896 <HAL_GPIO_Init+0x222>
800184a: 687b ldr r3, [r7, #4]
800184c: 4a50 ldr r2, [pc, #320] @ (8001990 <HAL_GPIO_Init+0x31c>)
800184e: 4293 cmp r3, r2
8001850: d01f beq.n 8001892 <HAL_GPIO_Init+0x21e>
8001852: 687b ldr r3, [r7, #4]
8001854: 4a4f ldr r2, [pc, #316] @ (8001994 <HAL_GPIO_Init+0x320>)
8001856: 4293 cmp r3, r2
8001858: d019 beq.n 800188e <HAL_GPIO_Init+0x21a>
800185a: 687b ldr r3, [r7, #4]
800185c: 4a4e ldr r2, [pc, #312] @ (8001998 <HAL_GPIO_Init+0x324>)
800185e: 4293 cmp r3, r2
8001860: d013 beq.n 800188a <HAL_GPIO_Init+0x216>
8001862: 687b ldr r3, [r7, #4]
8001864: 4a4d ldr r2, [pc, #308] @ (800199c <HAL_GPIO_Init+0x328>)
8001866: 4293 cmp r3, r2
8001868: d00d beq.n 8001886 <HAL_GPIO_Init+0x212>
800186a: 687b ldr r3, [r7, #4]
800186c: 4a4c ldr r2, [pc, #304] @ (80019a0 <HAL_GPIO_Init+0x32c>)
800186e: 4293 cmp r3, r2
8001870: d007 beq.n 8001882 <HAL_GPIO_Init+0x20e>
8001872: 687b ldr r3, [r7, #4]
8001874: 4a4b ldr r2, [pc, #300] @ (80019a4 <HAL_GPIO_Init+0x330>)
8001876: 4293 cmp r3, r2
8001878: d101 bne.n 800187e <HAL_GPIO_Init+0x20a>
800187a: 2307 movs r3, #7
800187c: e00e b.n 800189c <HAL_GPIO_Init+0x228>
800187e: 2308 movs r3, #8
8001880: e00c b.n 800189c <HAL_GPIO_Init+0x228>
8001882: 2306 movs r3, #6
8001884: e00a b.n 800189c <HAL_GPIO_Init+0x228>
8001886: 2305 movs r3, #5
8001888: e008 b.n 800189c <HAL_GPIO_Init+0x228>
800188a: 2304 movs r3, #4
800188c: e006 b.n 800189c <HAL_GPIO_Init+0x228>
800188e: 2303 movs r3, #3
8001890: e004 b.n 800189c <HAL_GPIO_Init+0x228>
8001892: 2302 movs r3, #2
8001894: e002 b.n 800189c <HAL_GPIO_Init+0x228>
8001896: 2301 movs r3, #1
8001898: e000 b.n 800189c <HAL_GPIO_Init+0x228>
800189a: 2300 movs r3, #0
800189c: 69fa ldr r2, [r7, #28]
800189e: f002 0203 and.w r2, r2, #3
80018a2: 0092 lsls r2, r2, #2
80018a4: 4093 lsls r3, r2
80018a6: 69ba ldr r2, [r7, #24]
80018a8: 4313 orrs r3, r2
80018aa: 61bb str r3, [r7, #24]
SYSCFG->EXTICR[position >> 2] = temp;
80018ac: 4935 ldr r1, [pc, #212] @ (8001984 <HAL_GPIO_Init+0x310>)
80018ae: 69fb ldr r3, [r7, #28]
80018b0: 089b lsrs r3, r3, #2
80018b2: 3302 adds r3, #2
80018b4: 69ba ldr r2, [r7, #24]
80018b6: f841 2023 str.w r2, [r1, r3, lsl #2]
/* Clear Rising Falling edge configuration */
temp = EXTI->RTSR;
80018ba: 4b3b ldr r3, [pc, #236] @ (80019a8 <HAL_GPIO_Init+0x334>)
80018bc: 689b ldr r3, [r3, #8]
80018be: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)iocurrent);
80018c0: 693b ldr r3, [r7, #16]
80018c2: 43db mvns r3, r3
80018c4: 69ba ldr r2, [r7, #24]
80018c6: 4013 ands r3, r2
80018c8: 61bb str r3, [r7, #24]
if ((GPIO_Init->Mode & TRIGGER_RISING) != 0x00u)
80018ca: 683b ldr r3, [r7, #0]
80018cc: 685b ldr r3, [r3, #4]
80018ce: f403 1380 and.w r3, r3, #1048576 @ 0x100000
80018d2: 2b00 cmp r3, #0
80018d4: d003 beq.n 80018de <HAL_GPIO_Init+0x26a>
{
temp |= iocurrent;
80018d6: 69ba ldr r2, [r7, #24]
80018d8: 693b ldr r3, [r7, #16]
80018da: 4313 orrs r3, r2
80018dc: 61bb str r3, [r7, #24]
}
EXTI->RTSR = temp;
80018de: 4a32 ldr r2, [pc, #200] @ (80019a8 <HAL_GPIO_Init+0x334>)
80018e0: 69bb ldr r3, [r7, #24]
80018e2: 6093 str r3, [r2, #8]
temp = EXTI->FTSR;
80018e4: 4b30 ldr r3, [pc, #192] @ (80019a8 <HAL_GPIO_Init+0x334>)
80018e6: 68db ldr r3, [r3, #12]
80018e8: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)iocurrent);
80018ea: 693b ldr r3, [r7, #16]
80018ec: 43db mvns r3, r3
80018ee: 69ba ldr r2, [r7, #24]
80018f0: 4013 ands r3, r2
80018f2: 61bb str r3, [r7, #24]
if ((GPIO_Init->Mode & TRIGGER_FALLING) != 0x00u)
80018f4: 683b ldr r3, [r7, #0]
80018f6: 685b ldr r3, [r3, #4]
80018f8: f403 1300 and.w r3, r3, #2097152 @ 0x200000
80018fc: 2b00 cmp r3, #0
80018fe: d003 beq.n 8001908 <HAL_GPIO_Init+0x294>
{
temp |= iocurrent;
8001900: 69ba ldr r2, [r7, #24]
8001902: 693b ldr r3, [r7, #16]
8001904: 4313 orrs r3, r2
8001906: 61bb str r3, [r7, #24]
}
EXTI->FTSR = temp;
8001908: 4a27 ldr r2, [pc, #156] @ (80019a8 <HAL_GPIO_Init+0x334>)
800190a: 69bb ldr r3, [r7, #24]
800190c: 60d3 str r3, [r2, #12]
temp = EXTI->EMR;
800190e: 4b26 ldr r3, [pc, #152] @ (80019a8 <HAL_GPIO_Init+0x334>)
8001910: 685b ldr r3, [r3, #4]
8001912: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)iocurrent);
8001914: 693b ldr r3, [r7, #16]
8001916: 43db mvns r3, r3
8001918: 69ba ldr r2, [r7, #24]
800191a: 4013 ands r3, r2
800191c: 61bb str r3, [r7, #24]
if ((GPIO_Init->Mode & EXTI_EVT) != 0x00u)
800191e: 683b ldr r3, [r7, #0]
8001920: 685b ldr r3, [r3, #4]
8001922: f403 3300 and.w r3, r3, #131072 @ 0x20000
8001926: 2b00 cmp r3, #0
8001928: d003 beq.n 8001932 <HAL_GPIO_Init+0x2be>
{
temp |= iocurrent;
800192a: 69ba ldr r2, [r7, #24]
800192c: 693b ldr r3, [r7, #16]
800192e: 4313 orrs r3, r2
8001930: 61bb str r3, [r7, #24]
}
EXTI->EMR = temp;
8001932: 4a1d ldr r2, [pc, #116] @ (80019a8 <HAL_GPIO_Init+0x334>)
8001934: 69bb ldr r3, [r7, #24]
8001936: 6053 str r3, [r2, #4]
/* Clear EXTI line configuration */
temp = EXTI->IMR;
8001938: 4b1b ldr r3, [pc, #108] @ (80019a8 <HAL_GPIO_Init+0x334>)
800193a: 681b ldr r3, [r3, #0]
800193c: 61bb str r3, [r7, #24]
temp &= ~((uint32_t)iocurrent);
800193e: 693b ldr r3, [r7, #16]
8001940: 43db mvns r3, r3
8001942: 69ba ldr r2, [r7, #24]
8001944: 4013 ands r3, r2
8001946: 61bb str r3, [r7, #24]
if ((GPIO_Init->Mode & EXTI_IT) != 0x00u)
8001948: 683b ldr r3, [r7, #0]
800194a: 685b ldr r3, [r3, #4]
800194c: f403 3380 and.w r3, r3, #65536 @ 0x10000
8001950: 2b00 cmp r3, #0
8001952: d003 beq.n 800195c <HAL_GPIO_Init+0x2e8>
{
temp |= iocurrent;
8001954: 69ba ldr r2, [r7, #24]
8001956: 693b ldr r3, [r7, #16]
8001958: 4313 orrs r3, r2
800195a: 61bb str r3, [r7, #24]
}
EXTI->IMR = temp;
800195c: 4a12 ldr r2, [pc, #72] @ (80019a8 <HAL_GPIO_Init+0x334>)
800195e: 69bb ldr r3, [r7, #24]
8001960: 6013 str r3, [r2, #0]
for (position = 0; position < GPIO_NUMBER; position++)
8001962: 69fb ldr r3, [r7, #28]
8001964: 3301 adds r3, #1
8001966: 61fb str r3, [r7, #28]
8001968: 69fb ldr r3, [r7, #28]
800196a: 2b0f cmp r3, #15
800196c: f67f ae92 bls.w 8001694 <HAL_GPIO_Init+0x20>
}
}
}
}
8001970: bf00 nop
8001972: bf00 nop
8001974: 3724 adds r7, #36 @ 0x24
8001976: 46bd mov sp, r7
8001978: f85d 7b04 ldr.w r7, [sp], #4
800197c: 4770 bx lr
800197e: bf00 nop
8001980: 40023800 .word 0x40023800
8001984: 40013800 .word 0x40013800
8001988: 40020000 .word 0x40020000
800198c: 40020400 .word 0x40020400
8001990: 40020800 .word 0x40020800
8001994: 40020c00 .word 0x40020c00
8001998: 40021000 .word 0x40021000
800199c: 40021400 .word 0x40021400
80019a0: 40021800 .word 0x40021800
80019a4: 40021c00 .word 0x40021c00
80019a8: 40013c00 .word 0x40013c00
080019ac <HAL_GPIO_ReadPin>:
* @param GPIO_Pin specifies the port bit to read.
* This parameter can be any combination of 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)
{
80019ac: b480 push {r7}
80019ae: b085 sub sp, #20
80019b0: af00 add r7, sp, #0
80019b2: 6078 str r0, [r7, #4]
80019b4: 460b mov r3, r1
80019b6: 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)
80019b8: 687b ldr r3, [r7, #4]
80019ba: 691a ldr r2, [r3, #16]
80019bc: 887b ldrh r3, [r7, #2]
80019be: 4013 ands r3, r2
80019c0: 2b00 cmp r3, #0
80019c2: d002 beq.n 80019ca <HAL_GPIO_ReadPin+0x1e>
{
bitstatus = GPIO_PIN_SET;
80019c4: 2301 movs r3, #1
80019c6: 73fb strb r3, [r7, #15]
80019c8: e001 b.n 80019ce <HAL_GPIO_ReadPin+0x22>
}
else
{
bitstatus = GPIO_PIN_RESET;
80019ca: 2300 movs r3, #0
80019cc: 73fb strb r3, [r7, #15]
}
return bitstatus;
80019ce: 7bfb ldrb r3, [r7, #15]
}
80019d0: 4618 mov r0, r3
80019d2: 3714 adds r7, #20
80019d4: 46bd mov sp, r7
80019d6: f85d 7b04 ldr.w r7, [sp], #4
80019da: 4770 bx lr
080019dc <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)
{
80019dc: b480 push {r7}
80019de: b083 sub sp, #12
80019e0: af00 add r7, sp, #0
80019e2: 6078 str r0, [r7, #4]
80019e4: 460b mov r3, r1
80019e6: 807b strh r3, [r7, #2]
80019e8: 4613 mov r3, r2
80019ea: 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)
80019ec: 787b ldrb r3, [r7, #1]
80019ee: 2b00 cmp r3, #0
80019f0: d003 beq.n 80019fa <HAL_GPIO_WritePin+0x1e>
{
GPIOx->BSRR = GPIO_Pin;
80019f2: 887a ldrh r2, [r7, #2]
80019f4: 687b ldr r3, [r7, #4]
80019f6: 619a str r2, [r3, #24]
}
else
{
GPIOx->BSRR = (uint32_t)GPIO_Pin << 16;
}
}
80019f8: e003 b.n 8001a02 <HAL_GPIO_WritePin+0x26>
GPIOx->BSRR = (uint32_t)GPIO_Pin << 16;
80019fa: 887b ldrh r3, [r7, #2]
80019fc: 041a lsls r2, r3, #16
80019fe: 687b ldr r3, [r7, #4]
8001a00: 619a str r2, [r3, #24]
}
8001a02: bf00 nop
8001a04: 370c adds r7, #12
8001a06: 46bd mov sp, r7
8001a08: f85d 7b04 ldr.w r7, [sp], #4
8001a0c: 4770 bx lr
08001a0e <HAL_GPIO_TogglePin>:
* @param GPIO_Pin Specifies the pins to be toggled.
* This parameter can be any combination of GPIO_PIN_x where x can be (0..15).
* @retval None
*/
void HAL_GPIO_TogglePin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin)
{
8001a0e: b480 push {r7}
8001a10: b085 sub sp, #20
8001a12: af00 add r7, sp, #0
8001a14: 6078 str r0, [r7, #4]
8001a16: 460b mov r3, r1
8001a18: 807b strh r3, [r7, #2]
/* Check the parameters */
assert_param(IS_GPIO_PIN(GPIO_Pin));
/* get current Output Data Register value */
odr = GPIOx->ODR;
8001a1a: 687b ldr r3, [r7, #4]
8001a1c: 695b ldr r3, [r3, #20]
8001a1e: 60fb str r3, [r7, #12]
/* Set selected pins that were at low level, and reset ones that were high */
GPIOx->BSRR = ((odr & GPIO_Pin) << GPIO_NUMBER) | (~odr & GPIO_Pin);
8001a20: 887a ldrh r2, [r7, #2]
8001a22: 68fb ldr r3, [r7, #12]
8001a24: 4013 ands r3, r2
8001a26: 041a lsls r2, r3, #16
8001a28: 68fb ldr r3, [r7, #12]
8001a2a: 43d9 mvns r1, r3
8001a2c: 887b ldrh r3, [r7, #2]
8001a2e: 400b ands r3, r1
8001a30: 431a orrs r2, r3
8001a32: 687b ldr r3, [r7, #4]
8001a34: 619a str r2, [r3, #24]
}
8001a36: bf00 nop
8001a38: 3714 adds r7, #20
8001a3a: 46bd mov sp, r7
8001a3c: f85d 7b04 ldr.w r7, [sp], #4
8001a40: 4770 bx lr
...
08001a44 <HAL_PWR_EnableBkUpAccess>:
* @note If the HSE divided by 2, 3, ..31 is used as the RTC clock, the
* Backup Domain Access should be kept enabled.
* @retval None
*/
void HAL_PWR_EnableBkUpAccess(void)
{
8001a44: b480 push {r7}
8001a46: af00 add r7, sp, #0
/* Enable access to RTC and backup registers */
SET_BIT(PWR->CR1, PWR_CR1_DBP);
8001a48: 4b05 ldr r3, [pc, #20] @ (8001a60 <HAL_PWR_EnableBkUpAccess+0x1c>)
8001a4a: 681b ldr r3, [r3, #0]
8001a4c: 4a04 ldr r2, [pc, #16] @ (8001a60 <HAL_PWR_EnableBkUpAccess+0x1c>)
8001a4e: f443 7380 orr.w r3, r3, #256 @ 0x100
8001a52: 6013 str r3, [r2, #0]
}
8001a54: bf00 nop
8001a56: 46bd mov sp, r7
8001a58: f85d 7b04 ldr.w r7, [sp], #4
8001a5c: 4770 bx lr
8001a5e: bf00 nop
8001a60: 40007000 .word 0x40007000
08001a64 <HAL_PWREx_EnableOverDrive>:
* During the Over-drive switch activation, no peripheral clocks should be enabled.
* The peripheral clocks must be enabled once the Over-drive mode is activated.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_PWREx_EnableOverDrive(void)
{
8001a64: b580 push {r7, lr}
8001a66: b082 sub sp, #8
8001a68: af00 add r7, sp, #0
uint32_t tickstart = 0;
8001a6a: 2300 movs r3, #0
8001a6c: 607b str r3, [r7, #4]
__HAL_RCC_PWR_CLK_ENABLE();
8001a6e: 4b23 ldr r3, [pc, #140] @ (8001afc <HAL_PWREx_EnableOverDrive+0x98>)
8001a70: 6c1b ldr r3, [r3, #64] @ 0x40
8001a72: 4a22 ldr r2, [pc, #136] @ (8001afc <HAL_PWREx_EnableOverDrive+0x98>)
8001a74: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
8001a78: 6413 str r3, [r2, #64] @ 0x40
8001a7a: 4b20 ldr r3, [pc, #128] @ (8001afc <HAL_PWREx_EnableOverDrive+0x98>)
8001a7c: 6c1b ldr r3, [r3, #64] @ 0x40
8001a7e: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
8001a82: 603b str r3, [r7, #0]
8001a84: 683b ldr r3, [r7, #0]
/* Enable the Over-drive to extend the clock frequency to 216 MHz */
__HAL_PWR_OVERDRIVE_ENABLE();
8001a86: 4b1e ldr r3, [pc, #120] @ (8001b00 <HAL_PWREx_EnableOverDrive+0x9c>)
8001a88: 681b ldr r3, [r3, #0]
8001a8a: 4a1d ldr r2, [pc, #116] @ (8001b00 <HAL_PWREx_EnableOverDrive+0x9c>)
8001a8c: f443 3380 orr.w r3, r3, #65536 @ 0x10000
8001a90: 6013 str r3, [r2, #0]
/* Get tick */
tickstart = HAL_GetTick();
8001a92: f7ff fd01 bl 8001498 <HAL_GetTick>
8001a96: 6078 str r0, [r7, #4]
while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODRDY))
8001a98: e009 b.n 8001aae <HAL_PWREx_EnableOverDrive+0x4a>
{
if((HAL_GetTick() - tickstart ) > PWR_OVERDRIVE_TIMEOUT_VALUE)
8001a9a: f7ff fcfd bl 8001498 <HAL_GetTick>
8001a9e: 4602 mov r2, r0
8001aa0: 687b ldr r3, [r7, #4]
8001aa2: 1ad3 subs r3, r2, r3
8001aa4: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
8001aa8: d901 bls.n 8001aae <HAL_PWREx_EnableOverDrive+0x4a>
{
return HAL_TIMEOUT;
8001aaa: 2303 movs r3, #3
8001aac: e022 b.n 8001af4 <HAL_PWREx_EnableOverDrive+0x90>
while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODRDY))
8001aae: 4b14 ldr r3, [pc, #80] @ (8001b00 <HAL_PWREx_EnableOverDrive+0x9c>)
8001ab0: 685b ldr r3, [r3, #4]
8001ab2: f403 3380 and.w r3, r3, #65536 @ 0x10000
8001ab6: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
8001aba: d1ee bne.n 8001a9a <HAL_PWREx_EnableOverDrive+0x36>
}
}
/* Enable the Over-drive switch */
__HAL_PWR_OVERDRIVESWITCHING_ENABLE();
8001abc: 4b10 ldr r3, [pc, #64] @ (8001b00 <HAL_PWREx_EnableOverDrive+0x9c>)
8001abe: 681b ldr r3, [r3, #0]
8001ac0: 4a0f ldr r2, [pc, #60] @ (8001b00 <HAL_PWREx_EnableOverDrive+0x9c>)
8001ac2: f443 3300 orr.w r3, r3, #131072 @ 0x20000
8001ac6: 6013 str r3, [r2, #0]
/* Get tick */
tickstart = HAL_GetTick();
8001ac8: f7ff fce6 bl 8001498 <HAL_GetTick>
8001acc: 6078 str r0, [r7, #4]
while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODSWRDY))
8001ace: e009 b.n 8001ae4 <HAL_PWREx_EnableOverDrive+0x80>
{
if((HAL_GetTick() - tickstart ) > PWR_OVERDRIVE_TIMEOUT_VALUE)
8001ad0: f7ff fce2 bl 8001498 <HAL_GetTick>
8001ad4: 4602 mov r2, r0
8001ad6: 687b ldr r3, [r7, #4]
8001ad8: 1ad3 subs r3, r2, r3
8001ada: f5b3 7f7a cmp.w r3, #1000 @ 0x3e8
8001ade: d901 bls.n 8001ae4 <HAL_PWREx_EnableOverDrive+0x80>
{
return HAL_TIMEOUT;
8001ae0: 2303 movs r3, #3
8001ae2: e007 b.n 8001af4 <HAL_PWREx_EnableOverDrive+0x90>
while(!__HAL_PWR_GET_FLAG(PWR_FLAG_ODSWRDY))
8001ae4: 4b06 ldr r3, [pc, #24] @ (8001b00 <HAL_PWREx_EnableOverDrive+0x9c>)
8001ae6: 685b ldr r3, [r3, #4]
8001ae8: f403 3300 and.w r3, r3, #131072 @ 0x20000
8001aec: f5b3 3f00 cmp.w r3, #131072 @ 0x20000
8001af0: d1ee bne.n 8001ad0 <HAL_PWREx_EnableOverDrive+0x6c>
}
}
return HAL_OK;
8001af2: 2300 movs r3, #0
}
8001af4: 4618 mov r0, r3
8001af6: 3708 adds r7, #8
8001af8: 46bd mov sp, r7
8001afa: bd80 pop {r7, pc}
8001afc: 40023800 .word 0x40023800
8001b00: 40007000 .word 0x40007000
08001b04 <HAL_RCC_OscConfig>:
* supported by this function. User should request a transition to HSE Off
* first and then HSE On or HSE Bypass.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_RCC_OscConfig(const RCC_OscInitTypeDef *RCC_OscInitStruct)
{
8001b04: b580 push {r7, lr}
8001b06: b086 sub sp, #24
8001b08: af00 add r7, sp, #0
8001b0a: 6078 str r0, [r7, #4]
uint32_t tickstart;
uint32_t pll_config;
FlagStatus pwrclkchanged = RESET;
8001b0c: 2300 movs r3, #0
8001b0e: 75fb strb r3, [r7, #23]
/* Check Null pointer */
if (RCC_OscInitStruct == NULL)
8001b10: 687b ldr r3, [r7, #4]
8001b12: 2b00 cmp r3, #0
8001b14: d101 bne.n 8001b1a <HAL_RCC_OscConfig+0x16>
{
return HAL_ERROR;
8001b16: 2301 movs r3, #1
8001b18: e291 b.n 800203e <HAL_RCC_OscConfig+0x53a>
/* Check the parameters */
assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType));
/*------------------------------- HSE Configuration ------------------------*/
if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE)
8001b1a: 687b ldr r3, [r7, #4]
8001b1c: 681b ldr r3, [r3, #0]
8001b1e: f003 0301 and.w r3, r3, #1
8001b22: 2b00 cmp r3, #0
8001b24: f000 8087 beq.w 8001c36 <HAL_RCC_OscConfig+0x132>
{
/* Check the parameters */
assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState));
/* When the HSE is used as system clock or clock source for PLL, It can not be disabled */
if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE)
8001b28: 4b96 ldr r3, [pc, #600] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001b2a: 689b ldr r3, [r3, #8]
8001b2c: f003 030c and.w r3, r3, #12
8001b30: 2b04 cmp r3, #4
8001b32: d00c beq.n 8001b4e <HAL_RCC_OscConfig+0x4a>
|| ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSE)))
8001b34: 4b93 ldr r3, [pc, #588] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001b36: 689b ldr r3, [r3, #8]
8001b38: f003 030c and.w r3, r3, #12
8001b3c: 2b08 cmp r3, #8
8001b3e: d112 bne.n 8001b66 <HAL_RCC_OscConfig+0x62>
8001b40: 4b90 ldr r3, [pc, #576] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001b42: 685b ldr r3, [r3, #4]
8001b44: f403 0380 and.w r3, r3, #4194304 @ 0x400000
8001b48: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
8001b4c: d10b bne.n 8001b66 <HAL_RCC_OscConfig+0x62>
{
if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
8001b4e: 4b8d ldr r3, [pc, #564] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001b50: 681b ldr r3, [r3, #0]
8001b52: f403 3300 and.w r3, r3, #131072 @ 0x20000
8001b56: 2b00 cmp r3, #0
8001b58: d06c beq.n 8001c34 <HAL_RCC_OscConfig+0x130>
8001b5a: 687b ldr r3, [r7, #4]
8001b5c: 685b ldr r3, [r3, #4]
8001b5e: 2b00 cmp r3, #0
8001b60: d168 bne.n 8001c34 <HAL_RCC_OscConfig+0x130>
{
return HAL_ERROR;
8001b62: 2301 movs r3, #1
8001b64: e26b b.n 800203e <HAL_RCC_OscConfig+0x53a>
}
}
else
{
/* Set the new HSE configuration ---------------------------------------*/
__HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState);
8001b66: 687b ldr r3, [r7, #4]
8001b68: 685b ldr r3, [r3, #4]
8001b6a: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
8001b6e: d106 bne.n 8001b7e <HAL_RCC_OscConfig+0x7a>
8001b70: 4b84 ldr r3, [pc, #528] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001b72: 681b ldr r3, [r3, #0]
8001b74: 4a83 ldr r2, [pc, #524] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001b76: f443 3380 orr.w r3, r3, #65536 @ 0x10000
8001b7a: 6013 str r3, [r2, #0]
8001b7c: e02e b.n 8001bdc <HAL_RCC_OscConfig+0xd8>
8001b7e: 687b ldr r3, [r7, #4]
8001b80: 685b ldr r3, [r3, #4]
8001b82: 2b00 cmp r3, #0
8001b84: d10c bne.n 8001ba0 <HAL_RCC_OscConfig+0x9c>
8001b86: 4b7f ldr r3, [pc, #508] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001b88: 681b ldr r3, [r3, #0]
8001b8a: 4a7e ldr r2, [pc, #504] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001b8c: f423 3380 bic.w r3, r3, #65536 @ 0x10000
8001b90: 6013 str r3, [r2, #0]
8001b92: 4b7c ldr r3, [pc, #496] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001b94: 681b ldr r3, [r3, #0]
8001b96: 4a7b ldr r2, [pc, #492] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001b98: f423 2380 bic.w r3, r3, #262144 @ 0x40000
8001b9c: 6013 str r3, [r2, #0]
8001b9e: e01d b.n 8001bdc <HAL_RCC_OscConfig+0xd8>
8001ba0: 687b ldr r3, [r7, #4]
8001ba2: 685b ldr r3, [r3, #4]
8001ba4: f5b3 2fa0 cmp.w r3, #327680 @ 0x50000
8001ba8: d10c bne.n 8001bc4 <HAL_RCC_OscConfig+0xc0>
8001baa: 4b76 ldr r3, [pc, #472] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001bac: 681b ldr r3, [r3, #0]
8001bae: 4a75 ldr r2, [pc, #468] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001bb0: f443 2380 orr.w r3, r3, #262144 @ 0x40000
8001bb4: 6013 str r3, [r2, #0]
8001bb6: 4b73 ldr r3, [pc, #460] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001bb8: 681b ldr r3, [r3, #0]
8001bba: 4a72 ldr r2, [pc, #456] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001bbc: f443 3380 orr.w r3, r3, #65536 @ 0x10000
8001bc0: 6013 str r3, [r2, #0]
8001bc2: e00b b.n 8001bdc <HAL_RCC_OscConfig+0xd8>
8001bc4: 4b6f ldr r3, [pc, #444] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001bc6: 681b ldr r3, [r3, #0]
8001bc8: 4a6e ldr r2, [pc, #440] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001bca: f423 3380 bic.w r3, r3, #65536 @ 0x10000
8001bce: 6013 str r3, [r2, #0]
8001bd0: 4b6c ldr r3, [pc, #432] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001bd2: 681b ldr r3, [r3, #0]
8001bd4: 4a6b ldr r2, [pc, #428] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001bd6: f423 2380 bic.w r3, r3, #262144 @ 0x40000
8001bda: 6013 str r3, [r2, #0]
/* Check the HSE State */
if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF)
8001bdc: 687b ldr r3, [r7, #4]
8001bde: 685b ldr r3, [r3, #4]
8001be0: 2b00 cmp r3, #0
8001be2: d013 beq.n 8001c0c <HAL_RCC_OscConfig+0x108>
{
/* Get Start Tick*/
tickstart = HAL_GetTick();
8001be4: f7ff fc58 bl 8001498 <HAL_GetTick>
8001be8: 6138 str r0, [r7, #16]
/* Wait till HSE is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
8001bea: e008 b.n 8001bfe <HAL_RCC_OscConfig+0xfa>
{
if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
8001bec: f7ff fc54 bl 8001498 <HAL_GetTick>
8001bf0: 4602 mov r2, r0
8001bf2: 693b ldr r3, [r7, #16]
8001bf4: 1ad3 subs r3, r2, r3
8001bf6: 2b64 cmp r3, #100 @ 0x64
8001bf8: d901 bls.n 8001bfe <HAL_RCC_OscConfig+0xfa>
{
return HAL_TIMEOUT;
8001bfa: 2303 movs r3, #3
8001bfc: e21f b.n 800203e <HAL_RCC_OscConfig+0x53a>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
8001bfe: 4b61 ldr r3, [pc, #388] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001c00: 681b ldr r3, [r3, #0]
8001c02: f403 3300 and.w r3, r3, #131072 @ 0x20000
8001c06: 2b00 cmp r3, #0
8001c08: d0f0 beq.n 8001bec <HAL_RCC_OscConfig+0xe8>
8001c0a: e014 b.n 8001c36 <HAL_RCC_OscConfig+0x132>
}
}
else
{
/* Get Start Tick*/
tickstart = HAL_GetTick();
8001c0c: f7ff fc44 bl 8001498 <HAL_GetTick>
8001c10: 6138 str r0, [r7, #16]
/* Wait till HSE is bypassed or disabled */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
8001c12: e008 b.n 8001c26 <HAL_RCC_OscConfig+0x122>
{
if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE)
8001c14: f7ff fc40 bl 8001498 <HAL_GetTick>
8001c18: 4602 mov r2, r0
8001c1a: 693b ldr r3, [r7, #16]
8001c1c: 1ad3 subs r3, r2, r3
8001c1e: 2b64 cmp r3, #100 @ 0x64
8001c20: d901 bls.n 8001c26 <HAL_RCC_OscConfig+0x122>
{
return HAL_TIMEOUT;
8001c22: 2303 movs r3, #3
8001c24: e20b b.n 800203e <HAL_RCC_OscConfig+0x53a>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET)
8001c26: 4b57 ldr r3, [pc, #348] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001c28: 681b ldr r3, [r3, #0]
8001c2a: f403 3300 and.w r3, r3, #131072 @ 0x20000
8001c2e: 2b00 cmp r3, #0
8001c30: d1f0 bne.n 8001c14 <HAL_RCC_OscConfig+0x110>
8001c32: e000 b.n 8001c36 <HAL_RCC_OscConfig+0x132>
if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF))
8001c34: bf00 nop
}
}
}
}
/*----------------------------- HSI Configuration --------------------------*/
if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI)
8001c36: 687b ldr r3, [r7, #4]
8001c38: 681b ldr r3, [r3, #0]
8001c3a: f003 0302 and.w r3, r3, #2
8001c3e: 2b00 cmp r3, #0
8001c40: d069 beq.n 8001d16 <HAL_RCC_OscConfig+0x212>
/* Check the parameters */
assert_param(IS_RCC_HSI(RCC_OscInitStruct->HSIState));
assert_param(IS_RCC_CALIBRATION_VALUE(RCC_OscInitStruct->HSICalibrationValue));
/* Check if HSI is used as system clock or as PLL source when PLL is selected as system clock */
if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSI)
8001c42: 4b50 ldr r3, [pc, #320] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001c44: 689b ldr r3, [r3, #8]
8001c46: f003 030c and.w r3, r3, #12
8001c4a: 2b00 cmp r3, #0
8001c4c: d00b beq.n 8001c66 <HAL_RCC_OscConfig+0x162>
|| ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && ((RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) == RCC_PLLCFGR_PLLSRC_HSI)))
8001c4e: 4b4d ldr r3, [pc, #308] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001c50: 689b ldr r3, [r3, #8]
8001c52: f003 030c and.w r3, r3, #12
8001c56: 2b08 cmp r3, #8
8001c58: d11c bne.n 8001c94 <HAL_RCC_OscConfig+0x190>
8001c5a: 4b4a ldr r3, [pc, #296] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001c5c: 685b ldr r3, [r3, #4]
8001c5e: f403 0380 and.w r3, r3, #4194304 @ 0x400000
8001c62: 2b00 cmp r3, #0
8001c64: d116 bne.n 8001c94 <HAL_RCC_OscConfig+0x190>
{
/* 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))
8001c66: 4b47 ldr r3, [pc, #284] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001c68: 681b ldr r3, [r3, #0]
8001c6a: f003 0302 and.w r3, r3, #2
8001c6e: 2b00 cmp r3, #0
8001c70: d005 beq.n 8001c7e <HAL_RCC_OscConfig+0x17a>
8001c72: 687b ldr r3, [r7, #4]
8001c74: 68db ldr r3, [r3, #12]
8001c76: 2b01 cmp r3, #1
8001c78: d001 beq.n 8001c7e <HAL_RCC_OscConfig+0x17a>
{
return HAL_ERROR;
8001c7a: 2301 movs r3, #1
8001c7c: e1df b.n 800203e <HAL_RCC_OscConfig+0x53a>
}
/* Otherwise, just the calibration is allowed */
else
{
/* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
8001c7e: 4b41 ldr r3, [pc, #260] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001c80: 681b ldr r3, [r3, #0]
8001c82: f023 02f8 bic.w r2, r3, #248 @ 0xf8
8001c86: 687b ldr r3, [r7, #4]
8001c88: 691b ldr r3, [r3, #16]
8001c8a: 00db lsls r3, r3, #3
8001c8c: 493d ldr r1, [pc, #244] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001c8e: 4313 orrs r3, r2
8001c90: 600b str r3, [r1, #0]
if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON))
8001c92: e040 b.n 8001d16 <HAL_RCC_OscConfig+0x212>
}
}
else
{
/* Check the HSI State */
if ((RCC_OscInitStruct->HSIState) != RCC_HSI_OFF)
8001c94: 687b ldr r3, [r7, #4]
8001c96: 68db ldr r3, [r3, #12]
8001c98: 2b00 cmp r3, #0
8001c9a: d023 beq.n 8001ce4 <HAL_RCC_OscConfig+0x1e0>
{
/* Enable the Internal High Speed oscillator (HSI). */
__HAL_RCC_HSI_ENABLE();
8001c9c: 4b39 ldr r3, [pc, #228] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001c9e: 681b ldr r3, [r3, #0]
8001ca0: 4a38 ldr r2, [pc, #224] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001ca2: f043 0301 orr.w r3, r3, #1
8001ca6: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
8001ca8: f7ff fbf6 bl 8001498 <HAL_GetTick>
8001cac: 6138 str r0, [r7, #16]
/* Wait till HSI is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
8001cae: e008 b.n 8001cc2 <HAL_RCC_OscConfig+0x1be>
{
if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
8001cb0: f7ff fbf2 bl 8001498 <HAL_GetTick>
8001cb4: 4602 mov r2, r0
8001cb6: 693b ldr r3, [r7, #16]
8001cb8: 1ad3 subs r3, r2, r3
8001cba: 2b02 cmp r3, #2
8001cbc: d901 bls.n 8001cc2 <HAL_RCC_OscConfig+0x1be>
{
return HAL_TIMEOUT;
8001cbe: 2303 movs r3, #3
8001cc0: e1bd b.n 800203e <HAL_RCC_OscConfig+0x53a>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
8001cc2: 4b30 ldr r3, [pc, #192] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001cc4: 681b ldr r3, [r3, #0]
8001cc6: f003 0302 and.w r3, r3, #2
8001cca: 2b00 cmp r3, #0
8001ccc: d0f0 beq.n 8001cb0 <HAL_RCC_OscConfig+0x1ac>
}
}
/* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/
__HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue);
8001cce: 4b2d ldr r3, [pc, #180] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001cd0: 681b ldr r3, [r3, #0]
8001cd2: f023 02f8 bic.w r2, r3, #248 @ 0xf8
8001cd6: 687b ldr r3, [r7, #4]
8001cd8: 691b ldr r3, [r3, #16]
8001cda: 00db lsls r3, r3, #3
8001cdc: 4929 ldr r1, [pc, #164] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001cde: 4313 orrs r3, r2
8001ce0: 600b str r3, [r1, #0]
8001ce2: e018 b.n 8001d16 <HAL_RCC_OscConfig+0x212>
}
else
{
/* Disable the Internal High Speed oscillator (HSI). */
__HAL_RCC_HSI_DISABLE();
8001ce4: 4b27 ldr r3, [pc, #156] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001ce6: 681b ldr r3, [r3, #0]
8001ce8: 4a26 ldr r2, [pc, #152] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001cea: f023 0301 bic.w r3, r3, #1
8001cee: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
8001cf0: f7ff fbd2 bl 8001498 <HAL_GetTick>
8001cf4: 6138 str r0, [r7, #16]
/* Wait till HSI is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
8001cf6: e008 b.n 8001d0a <HAL_RCC_OscConfig+0x206>
{
if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE)
8001cf8: f7ff fbce bl 8001498 <HAL_GetTick>
8001cfc: 4602 mov r2, r0
8001cfe: 693b ldr r3, [r7, #16]
8001d00: 1ad3 subs r3, r2, r3
8001d02: 2b02 cmp r3, #2
8001d04: d901 bls.n 8001d0a <HAL_RCC_OscConfig+0x206>
{
return HAL_TIMEOUT;
8001d06: 2303 movs r3, #3
8001d08: e199 b.n 800203e <HAL_RCC_OscConfig+0x53a>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET)
8001d0a: 4b1e ldr r3, [pc, #120] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001d0c: 681b ldr r3, [r3, #0]
8001d0e: f003 0302 and.w r3, r3, #2
8001d12: 2b00 cmp r3, #0
8001d14: d1f0 bne.n 8001cf8 <HAL_RCC_OscConfig+0x1f4>
}
}
}
}
/*------------------------------ LSI Configuration -------------------------*/
if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI)
8001d16: 687b ldr r3, [r7, #4]
8001d18: 681b ldr r3, [r3, #0]
8001d1a: f003 0308 and.w r3, r3, #8
8001d1e: 2b00 cmp r3, #0
8001d20: d038 beq.n 8001d94 <HAL_RCC_OscConfig+0x290>
{
/* Check the parameters */
assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState));
/* Check the LSI State */
if ((RCC_OscInitStruct->LSIState) != RCC_LSI_OFF)
8001d22: 687b ldr r3, [r7, #4]
8001d24: 695b ldr r3, [r3, #20]
8001d26: 2b00 cmp r3, #0
8001d28: d019 beq.n 8001d5e <HAL_RCC_OscConfig+0x25a>
{
/* Enable the Internal Low Speed oscillator (LSI). */
__HAL_RCC_LSI_ENABLE();
8001d2a: 4b16 ldr r3, [pc, #88] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001d2c: 6f5b ldr r3, [r3, #116] @ 0x74
8001d2e: 4a15 ldr r2, [pc, #84] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001d30: f043 0301 orr.w r3, r3, #1
8001d34: 6753 str r3, [r2, #116] @ 0x74
/* Get Start Tick*/
tickstart = HAL_GetTick();
8001d36: f7ff fbaf bl 8001498 <HAL_GetTick>
8001d3a: 6138 str r0, [r7, #16]
/* Wait till LSI is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
8001d3c: e008 b.n 8001d50 <HAL_RCC_OscConfig+0x24c>
{
if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
8001d3e: f7ff fbab bl 8001498 <HAL_GetTick>
8001d42: 4602 mov r2, r0
8001d44: 693b ldr r3, [r7, #16]
8001d46: 1ad3 subs r3, r2, r3
8001d48: 2b02 cmp r3, #2
8001d4a: d901 bls.n 8001d50 <HAL_RCC_OscConfig+0x24c>
{
return HAL_TIMEOUT;
8001d4c: 2303 movs r3, #3
8001d4e: e176 b.n 800203e <HAL_RCC_OscConfig+0x53a>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET)
8001d50: 4b0c ldr r3, [pc, #48] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001d52: 6f5b ldr r3, [r3, #116] @ 0x74
8001d54: f003 0302 and.w r3, r3, #2
8001d58: 2b00 cmp r3, #0
8001d5a: d0f0 beq.n 8001d3e <HAL_RCC_OscConfig+0x23a>
8001d5c: e01a b.n 8001d94 <HAL_RCC_OscConfig+0x290>
}
}
else
{
/* Disable the Internal Low Speed oscillator (LSI). */
__HAL_RCC_LSI_DISABLE();
8001d5e: 4b09 ldr r3, [pc, #36] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001d60: 6f5b ldr r3, [r3, #116] @ 0x74
8001d62: 4a08 ldr r2, [pc, #32] @ (8001d84 <HAL_RCC_OscConfig+0x280>)
8001d64: f023 0301 bic.w r3, r3, #1
8001d68: 6753 str r3, [r2, #116] @ 0x74
/* Get Start Tick*/
tickstart = HAL_GetTick();
8001d6a: f7ff fb95 bl 8001498 <HAL_GetTick>
8001d6e: 6138 str r0, [r7, #16]
/* Wait till LSI is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
8001d70: e00a b.n 8001d88 <HAL_RCC_OscConfig+0x284>
{
if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE)
8001d72: f7ff fb91 bl 8001498 <HAL_GetTick>
8001d76: 4602 mov r2, r0
8001d78: 693b ldr r3, [r7, #16]
8001d7a: 1ad3 subs r3, r2, r3
8001d7c: 2b02 cmp r3, #2
8001d7e: d903 bls.n 8001d88 <HAL_RCC_OscConfig+0x284>
{
return HAL_TIMEOUT;
8001d80: 2303 movs r3, #3
8001d82: e15c b.n 800203e <HAL_RCC_OscConfig+0x53a>
8001d84: 40023800 .word 0x40023800
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET)
8001d88: 4b91 ldr r3, [pc, #580] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001d8a: 6f5b ldr r3, [r3, #116] @ 0x74
8001d8c: f003 0302 and.w r3, r3, #2
8001d90: 2b00 cmp r3, #0
8001d92: d1ee bne.n 8001d72 <HAL_RCC_OscConfig+0x26e>
}
}
}
}
/*------------------------------ LSE Configuration -------------------------*/
if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE)
8001d94: 687b ldr r3, [r7, #4]
8001d96: 681b ldr r3, [r3, #0]
8001d98: f003 0304 and.w r3, r3, #4
8001d9c: 2b00 cmp r3, #0
8001d9e: f000 80a4 beq.w 8001eea <HAL_RCC_OscConfig+0x3e6>
/* 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())
8001da2: 4b8b ldr r3, [pc, #556] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001da4: 6c1b ldr r3, [r3, #64] @ 0x40
8001da6: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
8001daa: 2b00 cmp r3, #0
8001dac: d10d bne.n 8001dca <HAL_RCC_OscConfig+0x2c6>
{
/* Enable Power Clock*/
__HAL_RCC_PWR_CLK_ENABLE();
8001dae: 4b88 ldr r3, [pc, #544] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001db0: 6c1b ldr r3, [r3, #64] @ 0x40
8001db2: 4a87 ldr r2, [pc, #540] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001db4: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
8001db8: 6413 str r3, [r2, #64] @ 0x40
8001dba: 4b85 ldr r3, [pc, #532] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001dbc: 6c1b ldr r3, [r3, #64] @ 0x40
8001dbe: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
8001dc2: 60bb str r3, [r7, #8]
8001dc4: 68bb ldr r3, [r7, #8]
pwrclkchanged = SET;
8001dc6: 2301 movs r3, #1
8001dc8: 75fb strb r3, [r7, #23]
}
if (HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP))
8001dca: 4b82 ldr r3, [pc, #520] @ (8001fd4 <HAL_RCC_OscConfig+0x4d0>)
8001dcc: 681b ldr r3, [r3, #0]
8001dce: f403 7380 and.w r3, r3, #256 @ 0x100
8001dd2: 2b00 cmp r3, #0
8001dd4: d118 bne.n 8001e08 <HAL_RCC_OscConfig+0x304>
{
/* Enable write access to Backup domain */
PWR->CR1 |= PWR_CR1_DBP;
8001dd6: 4b7f ldr r3, [pc, #508] @ (8001fd4 <HAL_RCC_OscConfig+0x4d0>)
8001dd8: 681b ldr r3, [r3, #0]
8001dda: 4a7e ldr r2, [pc, #504] @ (8001fd4 <HAL_RCC_OscConfig+0x4d0>)
8001ddc: f443 7380 orr.w r3, r3, #256 @ 0x100
8001de0: 6013 str r3, [r2, #0]
/* Wait for Backup domain Write protection disable */
tickstart = HAL_GetTick();
8001de2: f7ff fb59 bl 8001498 <HAL_GetTick>
8001de6: 6138 str r0, [r7, #16]
while (HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP))
8001de8: e008 b.n 8001dfc <HAL_RCC_OscConfig+0x2f8>
{
if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
8001dea: f7ff fb55 bl 8001498 <HAL_GetTick>
8001dee: 4602 mov r2, r0
8001df0: 693b ldr r3, [r7, #16]
8001df2: 1ad3 subs r3, r2, r3
8001df4: 2b64 cmp r3, #100 @ 0x64
8001df6: d901 bls.n 8001dfc <HAL_RCC_OscConfig+0x2f8>
{
return HAL_TIMEOUT;
8001df8: 2303 movs r3, #3
8001dfa: e120 b.n 800203e <HAL_RCC_OscConfig+0x53a>
while (HAL_IS_BIT_CLR(PWR->CR1, PWR_CR1_DBP))
8001dfc: 4b75 ldr r3, [pc, #468] @ (8001fd4 <HAL_RCC_OscConfig+0x4d0>)
8001dfe: 681b ldr r3, [r3, #0]
8001e00: f403 7380 and.w r3, r3, #256 @ 0x100
8001e04: 2b00 cmp r3, #0
8001e06: d0f0 beq.n 8001dea <HAL_RCC_OscConfig+0x2e6>
}
}
}
/* Set the new LSE configuration -----------------------------------------*/
__HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState);
8001e08: 687b ldr r3, [r7, #4]
8001e0a: 689b ldr r3, [r3, #8]
8001e0c: 2b01 cmp r3, #1
8001e0e: d106 bne.n 8001e1e <HAL_RCC_OscConfig+0x31a>
8001e10: 4b6f ldr r3, [pc, #444] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e12: 6f1b ldr r3, [r3, #112] @ 0x70
8001e14: 4a6e ldr r2, [pc, #440] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e16: f043 0301 orr.w r3, r3, #1
8001e1a: 6713 str r3, [r2, #112] @ 0x70
8001e1c: e02d b.n 8001e7a <HAL_RCC_OscConfig+0x376>
8001e1e: 687b ldr r3, [r7, #4]
8001e20: 689b ldr r3, [r3, #8]
8001e22: 2b00 cmp r3, #0
8001e24: d10c bne.n 8001e40 <HAL_RCC_OscConfig+0x33c>
8001e26: 4b6a ldr r3, [pc, #424] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e28: 6f1b ldr r3, [r3, #112] @ 0x70
8001e2a: 4a69 ldr r2, [pc, #420] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e2c: f023 0301 bic.w r3, r3, #1
8001e30: 6713 str r3, [r2, #112] @ 0x70
8001e32: 4b67 ldr r3, [pc, #412] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e34: 6f1b ldr r3, [r3, #112] @ 0x70
8001e36: 4a66 ldr r2, [pc, #408] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e38: f023 0304 bic.w r3, r3, #4
8001e3c: 6713 str r3, [r2, #112] @ 0x70
8001e3e: e01c b.n 8001e7a <HAL_RCC_OscConfig+0x376>
8001e40: 687b ldr r3, [r7, #4]
8001e42: 689b ldr r3, [r3, #8]
8001e44: 2b05 cmp r3, #5
8001e46: d10c bne.n 8001e62 <HAL_RCC_OscConfig+0x35e>
8001e48: 4b61 ldr r3, [pc, #388] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e4a: 6f1b ldr r3, [r3, #112] @ 0x70
8001e4c: 4a60 ldr r2, [pc, #384] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e4e: f043 0304 orr.w r3, r3, #4
8001e52: 6713 str r3, [r2, #112] @ 0x70
8001e54: 4b5e ldr r3, [pc, #376] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e56: 6f1b ldr r3, [r3, #112] @ 0x70
8001e58: 4a5d ldr r2, [pc, #372] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e5a: f043 0301 orr.w r3, r3, #1
8001e5e: 6713 str r3, [r2, #112] @ 0x70
8001e60: e00b b.n 8001e7a <HAL_RCC_OscConfig+0x376>
8001e62: 4b5b ldr r3, [pc, #364] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e64: 6f1b ldr r3, [r3, #112] @ 0x70
8001e66: 4a5a ldr r2, [pc, #360] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e68: f023 0301 bic.w r3, r3, #1
8001e6c: 6713 str r3, [r2, #112] @ 0x70
8001e6e: 4b58 ldr r3, [pc, #352] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e70: 6f1b ldr r3, [r3, #112] @ 0x70
8001e72: 4a57 ldr r2, [pc, #348] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001e74: f023 0304 bic.w r3, r3, #4
8001e78: 6713 str r3, [r2, #112] @ 0x70
/* Check the LSE State */
if ((RCC_OscInitStruct->LSEState) != RCC_LSE_OFF)
8001e7a: 687b ldr r3, [r7, #4]
8001e7c: 689b ldr r3, [r3, #8]
8001e7e: 2b00 cmp r3, #0
8001e80: d015 beq.n 8001eae <HAL_RCC_OscConfig+0x3aa>
{
/* Get Start Tick*/
tickstart = HAL_GetTick();
8001e82: f7ff fb09 bl 8001498 <HAL_GetTick>
8001e86: 6138 str r0, [r7, #16]
/* Wait till LSE is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
8001e88: e00a b.n 8001ea0 <HAL_RCC_OscConfig+0x39c>
{
if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
8001e8a: f7ff fb05 bl 8001498 <HAL_GetTick>
8001e8e: 4602 mov r2, r0
8001e90: 693b ldr r3, [r7, #16]
8001e92: 1ad3 subs r3, r2, r3
8001e94: f241 3288 movw r2, #5000 @ 0x1388
8001e98: 4293 cmp r3, r2
8001e9a: d901 bls.n 8001ea0 <HAL_RCC_OscConfig+0x39c>
{
return HAL_TIMEOUT;
8001e9c: 2303 movs r3, #3
8001e9e: e0ce b.n 800203e <HAL_RCC_OscConfig+0x53a>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
8001ea0: 4b4b ldr r3, [pc, #300] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001ea2: 6f1b ldr r3, [r3, #112] @ 0x70
8001ea4: f003 0302 and.w r3, r3, #2
8001ea8: 2b00 cmp r3, #0
8001eaa: d0ee beq.n 8001e8a <HAL_RCC_OscConfig+0x386>
8001eac: e014 b.n 8001ed8 <HAL_RCC_OscConfig+0x3d4>
}
}
else
{
/* Get Start Tick*/
tickstart = HAL_GetTick();
8001eae: f7ff faf3 bl 8001498 <HAL_GetTick>
8001eb2: 6138 str r0, [r7, #16]
/* Wait till LSE is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
8001eb4: e00a b.n 8001ecc <HAL_RCC_OscConfig+0x3c8>
{
if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
8001eb6: f7ff faef bl 8001498 <HAL_GetTick>
8001eba: 4602 mov r2, r0
8001ebc: 693b ldr r3, [r7, #16]
8001ebe: 1ad3 subs r3, r2, r3
8001ec0: f241 3288 movw r2, #5000 @ 0x1388
8001ec4: 4293 cmp r3, r2
8001ec6: d901 bls.n 8001ecc <HAL_RCC_OscConfig+0x3c8>
{
return HAL_TIMEOUT;
8001ec8: 2303 movs r3, #3
8001eca: e0b8 b.n 800203e <HAL_RCC_OscConfig+0x53a>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET)
8001ecc: 4b40 ldr r3, [pc, #256] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001ece: 6f1b ldr r3, [r3, #112] @ 0x70
8001ed0: f003 0302 and.w r3, r3, #2
8001ed4: 2b00 cmp r3, #0
8001ed6: d1ee bne.n 8001eb6 <HAL_RCC_OscConfig+0x3b2>
}
}
}
/* Restore clock configuration if changed */
if (pwrclkchanged == SET)
8001ed8: 7dfb ldrb r3, [r7, #23]
8001eda: 2b01 cmp r3, #1
8001edc: d105 bne.n 8001eea <HAL_RCC_OscConfig+0x3e6>
{
__HAL_RCC_PWR_CLK_DISABLE();
8001ede: 4b3c ldr r3, [pc, #240] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001ee0: 6c1b ldr r3, [r3, #64] @ 0x40
8001ee2: 4a3b ldr r2, [pc, #236] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001ee4: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
8001ee8: 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)
8001eea: 687b ldr r3, [r7, #4]
8001eec: 699b ldr r3, [r3, #24]
8001eee: 2b00 cmp r3, #0
8001ef0: f000 80a4 beq.w 800203c <HAL_RCC_OscConfig+0x538>
{
/* Check if the PLL is used as system clock or not */
if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK)
8001ef4: 4b36 ldr r3, [pc, #216] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001ef6: 689b ldr r3, [r3, #8]
8001ef8: f003 030c and.w r3, r3, #12
8001efc: 2b08 cmp r3, #8
8001efe: d06b beq.n 8001fd8 <HAL_RCC_OscConfig+0x4d4>
{
if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON)
8001f00: 687b ldr r3, [r7, #4]
8001f02: 699b ldr r3, [r3, #24]
8001f04: 2b02 cmp r3, #2
8001f06: d149 bne.n 8001f9c <HAL_RCC_OscConfig+0x498>
#if defined (RCC_PLLCFGR_PLLR)
assert_param(IS_RCC_PLLR_VALUE(RCC_OscInitStruct->PLL.PLLR));
#endif
/* Disable the main PLL. */
__HAL_RCC_PLL_DISABLE();
8001f08: 4b31 ldr r3, [pc, #196] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001f0a: 681b ldr r3, [r3, #0]
8001f0c: 4a30 ldr r2, [pc, #192] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001f0e: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
8001f12: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
8001f14: f7ff fac0 bl 8001498 <HAL_GetTick>
8001f18: 6138 str r0, [r7, #16]
/* Wait till PLL is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
8001f1a: e008 b.n 8001f2e <HAL_RCC_OscConfig+0x42a>
{
if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
8001f1c: f7ff fabc bl 8001498 <HAL_GetTick>
8001f20: 4602 mov r2, r0
8001f22: 693b ldr r3, [r7, #16]
8001f24: 1ad3 subs r3, r2, r3
8001f26: 2b02 cmp r3, #2
8001f28: d901 bls.n 8001f2e <HAL_RCC_OscConfig+0x42a>
{
return HAL_TIMEOUT;
8001f2a: 2303 movs r3, #3
8001f2c: e087 b.n 800203e <HAL_RCC_OscConfig+0x53a>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
8001f2e: 4b28 ldr r3, [pc, #160] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001f30: 681b ldr r3, [r3, #0]
8001f32: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
8001f36: 2b00 cmp r3, #0
8001f38: d1f0 bne.n 8001f1c <HAL_RCC_OscConfig+0x418>
RCC_OscInitStruct->PLL.PLLN,
RCC_OscInitStruct->PLL.PLLP,
RCC_OscInitStruct->PLL.PLLQ,
RCC_OscInitStruct->PLL.PLLR);
#else
__HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource,
8001f3a: 687b ldr r3, [r7, #4]
8001f3c: 69da ldr r2, [r3, #28]
8001f3e: 687b ldr r3, [r7, #4]
8001f40: 6a1b ldr r3, [r3, #32]
8001f42: 431a orrs r2, r3
8001f44: 687b ldr r3, [r7, #4]
8001f46: 6a5b ldr r3, [r3, #36] @ 0x24
8001f48: 019b lsls r3, r3, #6
8001f4a: 431a orrs r2, r3
8001f4c: 687b ldr r3, [r7, #4]
8001f4e: 6a9b ldr r3, [r3, #40] @ 0x28
8001f50: 085b lsrs r3, r3, #1
8001f52: 3b01 subs r3, #1
8001f54: 041b lsls r3, r3, #16
8001f56: 431a orrs r2, r3
8001f58: 687b ldr r3, [r7, #4]
8001f5a: 6adb ldr r3, [r3, #44] @ 0x2c
8001f5c: 061b lsls r3, r3, #24
8001f5e: 4313 orrs r3, r2
8001f60: 4a1b ldr r2, [pc, #108] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001f62: f043 5300 orr.w r3, r3, #536870912 @ 0x20000000
8001f66: 6053 str r3, [r2, #4]
RCC_OscInitStruct->PLL.PLLP,
RCC_OscInitStruct->PLL.PLLQ);
#endif
/* Enable the main PLL. */
__HAL_RCC_PLL_ENABLE();
8001f68: 4b19 ldr r3, [pc, #100] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001f6a: 681b ldr r3, [r3, #0]
8001f6c: 4a18 ldr r2, [pc, #96] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001f6e: f043 7380 orr.w r3, r3, #16777216 @ 0x1000000
8001f72: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
8001f74: f7ff fa90 bl 8001498 <HAL_GetTick>
8001f78: 6138 str r0, [r7, #16]
/* Wait till PLL is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
8001f7a: e008 b.n 8001f8e <HAL_RCC_OscConfig+0x48a>
{
if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
8001f7c: f7ff fa8c bl 8001498 <HAL_GetTick>
8001f80: 4602 mov r2, r0
8001f82: 693b ldr r3, [r7, #16]
8001f84: 1ad3 subs r3, r2, r3
8001f86: 2b02 cmp r3, #2
8001f88: d901 bls.n 8001f8e <HAL_RCC_OscConfig+0x48a>
{
return HAL_TIMEOUT;
8001f8a: 2303 movs r3, #3
8001f8c: e057 b.n 800203e <HAL_RCC_OscConfig+0x53a>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
8001f8e: 4b10 ldr r3, [pc, #64] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001f90: 681b ldr r3, [r3, #0]
8001f92: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
8001f96: 2b00 cmp r3, #0
8001f98: d0f0 beq.n 8001f7c <HAL_RCC_OscConfig+0x478>
8001f9a: e04f b.n 800203c <HAL_RCC_OscConfig+0x538>
}
}
else
{
/* Disable the main PLL. */
__HAL_RCC_PLL_DISABLE();
8001f9c: 4b0c ldr r3, [pc, #48] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001f9e: 681b ldr r3, [r3, #0]
8001fa0: 4a0b ldr r2, [pc, #44] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001fa2: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
8001fa6: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
8001fa8: f7ff fa76 bl 8001498 <HAL_GetTick>
8001fac: 6138 str r0, [r7, #16]
/* Wait till PLL is ready */
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
8001fae: e008 b.n 8001fc2 <HAL_RCC_OscConfig+0x4be>
{
if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE)
8001fb0: f7ff fa72 bl 8001498 <HAL_GetTick>
8001fb4: 4602 mov r2, r0
8001fb6: 693b ldr r3, [r7, #16]
8001fb8: 1ad3 subs r3, r2, r3
8001fba: 2b02 cmp r3, #2
8001fbc: d901 bls.n 8001fc2 <HAL_RCC_OscConfig+0x4be>
{
return HAL_TIMEOUT;
8001fbe: 2303 movs r3, #3
8001fc0: e03d b.n 800203e <HAL_RCC_OscConfig+0x53a>
while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET)
8001fc2: 4b03 ldr r3, [pc, #12] @ (8001fd0 <HAL_RCC_OscConfig+0x4cc>)
8001fc4: 681b ldr r3, [r3, #0]
8001fc6: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
8001fca: 2b00 cmp r3, #0
8001fcc: d1f0 bne.n 8001fb0 <HAL_RCC_OscConfig+0x4ac>
8001fce: e035 b.n 800203c <HAL_RCC_OscConfig+0x538>
8001fd0: 40023800 .word 0x40023800
8001fd4: 40007000 .word 0x40007000
}
}
else
{
/* Do not return HAL_ERROR if request repeats the current configuration */
pll_config = RCC->PLLCFGR;
8001fd8: 4b1b ldr r3, [pc, #108] @ (8002048 <HAL_RCC_OscConfig+0x544>)
8001fda: 685b ldr r3, [r3, #4]
8001fdc: 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) ||
8001fde: 687b ldr r3, [r7, #4]
8001fe0: 699b ldr r3, [r3, #24]
8001fe2: 2b01 cmp r3, #1
8001fe4: d028 beq.n 8002038 <HAL_RCC_OscConfig+0x534>
(READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
8001fe6: 68fb ldr r3, [r7, #12]
8001fe8: f403 0280 and.w r2, r3, #4194304 @ 0x400000
8001fec: 687b ldr r3, [r7, #4]
8001fee: 69db ldr r3, [r3, #28]
if (((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) ||
8001ff0: 429a cmp r2, r3
8001ff2: d121 bne.n 8002038 <HAL_RCC_OscConfig+0x534>
(READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != RCC_OscInitStruct->PLL.PLLM) ||
8001ff4: 68fb ldr r3, [r7, #12]
8001ff6: f003 023f and.w r2, r3, #63 @ 0x3f
8001ffa: 687b ldr r3, [r7, #4]
8001ffc: 6a1b ldr r3, [r3, #32]
(READ_BIT(pll_config, RCC_PLLCFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) ||
8001ffe: 429a cmp r2, r3
8002000: d11a bne.n 8002038 <HAL_RCC_OscConfig+0x534>
(READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN << RCC_PLLCFGR_PLLN_Pos)) ||
8002002: 68fa ldr r2, [r7, #12]
8002004: f647 73c0 movw r3, #32704 @ 0x7fc0
8002008: 4013 ands r3, r2
800200a: 687a ldr r2, [r7, #4]
800200c: 6a52 ldr r2, [r2, #36] @ 0x24
800200e: 0192 lsls r2, r2, #6
(READ_BIT(pll_config, RCC_PLLCFGR_PLLM) != RCC_OscInitStruct->PLL.PLLM) ||
8002010: 4293 cmp r3, r2
8002012: d111 bne.n 8002038 <HAL_RCC_OscConfig+0x534>
(READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != ((((RCC_OscInitStruct->PLL.PLLP) >> 1U) - 1U) << RCC_PLLCFGR_PLLP_Pos)) ||
8002014: 68fb ldr r3, [r7, #12]
8002016: f403 3240 and.w r2, r3, #196608 @ 0x30000
800201a: 687b ldr r3, [r7, #4]
800201c: 6a9b ldr r3, [r3, #40] @ 0x28
800201e: 085b lsrs r3, r3, #1
8002020: 3b01 subs r3, #1
8002022: 041b lsls r3, r3, #16
(READ_BIT(pll_config, RCC_PLLCFGR_PLLN) != (RCC_OscInitStruct->PLL.PLLN << RCC_PLLCFGR_PLLN_Pos)) ||
8002024: 429a cmp r2, r3
8002026: d107 bne.n 8002038 <HAL_RCC_OscConfig+0x534>
(READ_BIT(pll_config, RCC_PLLCFGR_PLLQ) != (RCC_OscInitStruct->PLL.PLLQ << RCC_PLLCFGR_PLLQ_Pos)))
8002028: 68fb ldr r3, [r7, #12]
800202a: f003 6270 and.w r2, r3, #251658240 @ 0xf000000
800202e: 687b ldr r3, [r7, #4]
8002030: 6adb ldr r3, [r3, #44] @ 0x2c
8002032: 061b lsls r3, r3, #24
(READ_BIT(pll_config, RCC_PLLCFGR_PLLP) != ((((RCC_OscInitStruct->PLL.PLLP) >> 1U) - 1U) << RCC_PLLCFGR_PLLP_Pos)) ||
8002034: 429a cmp r2, r3
8002036: d001 beq.n 800203c <HAL_RCC_OscConfig+0x538>
#endif
{
return HAL_ERROR;
8002038: 2301 movs r3, #1
800203a: e000 b.n 800203e <HAL_RCC_OscConfig+0x53a>
}
}
}
return HAL_OK;
800203c: 2300 movs r3, #0
}
800203e: 4618 mov r0, r3
8002040: 3718 adds r7, #24
8002042: 46bd mov sp, r7
8002044: bd80 pop {r7, pc}
8002046: bf00 nop
8002048: 40023800 .word 0x40023800
0800204c <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)
{
800204c: b580 push {r7, lr}
800204e: b084 sub sp, #16
8002050: af00 add r7, sp, #0
8002052: 6078 str r0, [r7, #4]
8002054: 6039 str r1, [r7, #0]
uint32_t tickstart = 0;
8002056: 2300 movs r3, #0
8002058: 60fb str r3, [r7, #12]
/* Check Null pointer */
if (RCC_ClkInitStruct == NULL)
800205a: 687b ldr r3, [r7, #4]
800205c: 2b00 cmp r3, #0
800205e: d101 bne.n 8002064 <HAL_RCC_ClockConfig+0x18>
{
return HAL_ERROR;
8002060: 2301 movs r3, #1
8002062: e0d0 b.n 8002206 <HAL_RCC_ClockConfig+0x1ba>
/* 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 CPU frequency */
if (FLatency > __HAL_FLASH_GET_LATENCY())
8002064: 4b6a ldr r3, [pc, #424] @ (8002210 <HAL_RCC_ClockConfig+0x1c4>)
8002066: 681b ldr r3, [r3, #0]
8002068: f003 030f and.w r3, r3, #15
800206c: 683a ldr r2, [r7, #0]
800206e: 429a cmp r2, r3
8002070: d910 bls.n 8002094 <HAL_RCC_ClockConfig+0x48>
{
/* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
__HAL_FLASH_SET_LATENCY(FLatency);
8002072: 4b67 ldr r3, [pc, #412] @ (8002210 <HAL_RCC_ClockConfig+0x1c4>)
8002074: 681b ldr r3, [r3, #0]
8002076: f023 020f bic.w r2, r3, #15
800207a: 4965 ldr r1, [pc, #404] @ (8002210 <HAL_RCC_ClockConfig+0x1c4>)
800207c: 683b ldr r3, [r7, #0]
800207e: 4313 orrs r3, r2
8002080: 600b str r3, [r1, #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)
8002082: 4b63 ldr r3, [pc, #396] @ (8002210 <HAL_RCC_ClockConfig+0x1c4>)
8002084: 681b ldr r3, [r3, #0]
8002086: f003 030f and.w r3, r3, #15
800208a: 683a ldr r2, [r7, #0]
800208c: 429a cmp r2, r3
800208e: d001 beq.n 8002094 <HAL_RCC_ClockConfig+0x48>
{
return HAL_ERROR;
8002090: 2301 movs r3, #1
8002092: e0b8 b.n 8002206 <HAL_RCC_ClockConfig+0x1ba>
}
}
/*-------------------------- HCLK Configuration --------------------------*/
if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK)
8002094: 687b ldr r3, [r7, #4]
8002096: 681b ldr r3, [r3, #0]
8002098: f003 0302 and.w r3, r3, #2
800209c: 2b00 cmp r3, #0
800209e: d020 beq.n 80020e2 <HAL_RCC_ClockConfig+0x96>
{
/* 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)
80020a0: 687b ldr r3, [r7, #4]
80020a2: 681b ldr r3, [r3, #0]
80020a4: f003 0304 and.w r3, r3, #4
80020a8: 2b00 cmp r3, #0
80020aa: d005 beq.n 80020b8 <HAL_RCC_ClockConfig+0x6c>
{
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16);
80020ac: 4b59 ldr r3, [pc, #356] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
80020ae: 689b ldr r3, [r3, #8]
80020b0: 4a58 ldr r2, [pc, #352] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
80020b2: f443 53e0 orr.w r3, r3, #7168 @ 0x1c00
80020b6: 6093 str r3, [r2, #8]
}
if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
80020b8: 687b ldr r3, [r7, #4]
80020ba: 681b ldr r3, [r3, #0]
80020bc: f003 0308 and.w r3, r3, #8
80020c0: 2b00 cmp r3, #0
80020c2: d005 beq.n 80020d0 <HAL_RCC_ClockConfig+0x84>
{
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3));
80020c4: 4b53 ldr r3, [pc, #332] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
80020c6: 689b ldr r3, [r3, #8]
80020c8: 4a52 ldr r2, [pc, #328] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
80020ca: f443 4360 orr.w r3, r3, #57344 @ 0xe000
80020ce: 6093 str r3, [r2, #8]
}
/* Set the new HCLK clock divider */
assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider));
MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider);
80020d0: 4b50 ldr r3, [pc, #320] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
80020d2: 689b ldr r3, [r3, #8]
80020d4: f023 02f0 bic.w r2, r3, #240 @ 0xf0
80020d8: 687b ldr r3, [r7, #4]
80020da: 689b ldr r3, [r3, #8]
80020dc: 494d ldr r1, [pc, #308] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
80020de: 4313 orrs r3, r2
80020e0: 608b str r3, [r1, #8]
}
/*------------------------- SYSCLK Configuration ---------------------------*/
if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK)
80020e2: 687b ldr r3, [r7, #4]
80020e4: 681b ldr r3, [r3, #0]
80020e6: f003 0301 and.w r3, r3, #1
80020ea: 2b00 cmp r3, #0
80020ec: d040 beq.n 8002170 <HAL_RCC_ClockConfig+0x124>
{
assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource));
/* HSE is selected as System Clock Source */
if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE)
80020ee: 687b ldr r3, [r7, #4]
80020f0: 685b ldr r3, [r3, #4]
80020f2: 2b01 cmp r3, #1
80020f4: d107 bne.n 8002106 <HAL_RCC_ClockConfig+0xba>
{
/* Check the HSE ready flag */
if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET)
80020f6: 4b47 ldr r3, [pc, #284] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
80020f8: 681b ldr r3, [r3, #0]
80020fa: f403 3300 and.w r3, r3, #131072 @ 0x20000
80020fe: 2b00 cmp r3, #0
8002100: d115 bne.n 800212e <HAL_RCC_ClockConfig+0xe2>
{
return HAL_ERROR;
8002102: 2301 movs r3, #1
8002104: e07f b.n 8002206 <HAL_RCC_ClockConfig+0x1ba>
}
}
/* PLL is selected as System Clock Source */
else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK)
8002106: 687b ldr r3, [r7, #4]
8002108: 685b ldr r3, [r3, #4]
800210a: 2b02 cmp r3, #2
800210c: d107 bne.n 800211e <HAL_RCC_ClockConfig+0xd2>
{
/* Check the PLL ready flag */
if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET)
800210e: 4b41 ldr r3, [pc, #260] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
8002110: 681b ldr r3, [r3, #0]
8002112: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
8002116: 2b00 cmp r3, #0
8002118: d109 bne.n 800212e <HAL_RCC_ClockConfig+0xe2>
{
return HAL_ERROR;
800211a: 2301 movs r3, #1
800211c: e073 b.n 8002206 <HAL_RCC_ClockConfig+0x1ba>
}
/* HSI is selected as System Clock Source */
else
{
/* Check the HSI ready flag */
if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET)
800211e: 4b3d ldr r3, [pc, #244] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
8002120: 681b ldr r3, [r3, #0]
8002122: f003 0302 and.w r3, r3, #2
8002126: 2b00 cmp r3, #0
8002128: d101 bne.n 800212e <HAL_RCC_ClockConfig+0xe2>
{
return HAL_ERROR;
800212a: 2301 movs r3, #1
800212c: e06b b.n 8002206 <HAL_RCC_ClockConfig+0x1ba>
}
}
__HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource);
800212e: 4b39 ldr r3, [pc, #228] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
8002130: 689b ldr r3, [r3, #8]
8002132: f023 0203 bic.w r2, r3, #3
8002136: 687b ldr r3, [r7, #4]
8002138: 685b ldr r3, [r3, #4]
800213a: 4936 ldr r1, [pc, #216] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
800213c: 4313 orrs r3, r2
800213e: 608b str r3, [r1, #8]
/* Get Start Tick*/
tickstart = HAL_GetTick();
8002140: f7ff f9aa bl 8001498 <HAL_GetTick>
8002144: 60f8 str r0, [r7, #12]
while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
8002146: e00a b.n 800215e <HAL_RCC_ClockConfig+0x112>
{
if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE)
8002148: f7ff f9a6 bl 8001498 <HAL_GetTick>
800214c: 4602 mov r2, r0
800214e: 68fb ldr r3, [r7, #12]
8002150: 1ad3 subs r3, r2, r3
8002152: f241 3288 movw r2, #5000 @ 0x1388
8002156: 4293 cmp r3, r2
8002158: d901 bls.n 800215e <HAL_RCC_ClockConfig+0x112>
{
return HAL_TIMEOUT;
800215a: 2303 movs r3, #3
800215c: e053 b.n 8002206 <HAL_RCC_ClockConfig+0x1ba>
while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos))
800215e: 4b2d ldr r3, [pc, #180] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
8002160: 689b ldr r3, [r3, #8]
8002162: f003 020c and.w r2, r3, #12
8002166: 687b ldr r3, [r7, #4]
8002168: 685b ldr r3, [r3, #4]
800216a: 009b lsls r3, r3, #2
800216c: 429a cmp r2, r3
800216e: d1eb bne.n 8002148 <HAL_RCC_ClockConfig+0xfc>
}
}
}
/* Decreasing the number of wait states because of lower CPU frequency */
if (FLatency < __HAL_FLASH_GET_LATENCY())
8002170: 4b27 ldr r3, [pc, #156] @ (8002210 <HAL_RCC_ClockConfig+0x1c4>)
8002172: 681b ldr r3, [r3, #0]
8002174: f003 030f and.w r3, r3, #15
8002178: 683a ldr r2, [r7, #0]
800217a: 429a cmp r2, r3
800217c: d210 bcs.n 80021a0 <HAL_RCC_ClockConfig+0x154>
{
/* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */
__HAL_FLASH_SET_LATENCY(FLatency);
800217e: 4b24 ldr r3, [pc, #144] @ (8002210 <HAL_RCC_ClockConfig+0x1c4>)
8002180: 681b ldr r3, [r3, #0]
8002182: f023 020f bic.w r2, r3, #15
8002186: 4922 ldr r1, [pc, #136] @ (8002210 <HAL_RCC_ClockConfig+0x1c4>)
8002188: 683b ldr r3, [r7, #0]
800218a: 4313 orrs r3, r2
800218c: 600b str r3, [r1, #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)
800218e: 4b20 ldr r3, [pc, #128] @ (8002210 <HAL_RCC_ClockConfig+0x1c4>)
8002190: 681b ldr r3, [r3, #0]
8002192: f003 030f and.w r3, r3, #15
8002196: 683a ldr r2, [r7, #0]
8002198: 429a cmp r2, r3
800219a: d001 beq.n 80021a0 <HAL_RCC_ClockConfig+0x154>
{
return HAL_ERROR;
800219c: 2301 movs r3, #1
800219e: e032 b.n 8002206 <HAL_RCC_ClockConfig+0x1ba>
}
}
/*-------------------------- PCLK1 Configuration ---------------------------*/
if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1)
80021a0: 687b ldr r3, [r7, #4]
80021a2: 681b ldr r3, [r3, #0]
80021a4: f003 0304 and.w r3, r3, #4
80021a8: 2b00 cmp r3, #0
80021aa: d008 beq.n 80021be <HAL_RCC_ClockConfig+0x172>
{
assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider));
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider);
80021ac: 4b19 ldr r3, [pc, #100] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
80021ae: 689b ldr r3, [r3, #8]
80021b0: f423 52e0 bic.w r2, r3, #7168 @ 0x1c00
80021b4: 687b ldr r3, [r7, #4]
80021b6: 68db ldr r3, [r3, #12]
80021b8: 4916 ldr r1, [pc, #88] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
80021ba: 4313 orrs r3, r2
80021bc: 608b str r3, [r1, #8]
}
/*-------------------------- PCLK2 Configuration ---------------------------*/
if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2)
80021be: 687b ldr r3, [r7, #4]
80021c0: 681b ldr r3, [r3, #0]
80021c2: f003 0308 and.w r3, r3, #8
80021c6: 2b00 cmp r3, #0
80021c8: d009 beq.n 80021de <HAL_RCC_ClockConfig+0x192>
{
assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider));
MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3));
80021ca: 4b12 ldr r3, [pc, #72] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
80021cc: 689b ldr r3, [r3, #8]
80021ce: f423 4260 bic.w r2, r3, #57344 @ 0xe000
80021d2: 687b ldr r3, [r7, #4]
80021d4: 691b ldr r3, [r3, #16]
80021d6: 00db lsls r3, r3, #3
80021d8: 490e ldr r1, [pc, #56] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
80021da: 4313 orrs r3, r2
80021dc: 608b str r3, [r1, #8]
}
/* Update the SystemCoreClock global variable */
SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos];
80021de: f000 f821 bl 8002224 <HAL_RCC_GetSysClockFreq>
80021e2: 4602 mov r2, r0
80021e4: 4b0b ldr r3, [pc, #44] @ (8002214 <HAL_RCC_ClockConfig+0x1c8>)
80021e6: 689b ldr r3, [r3, #8]
80021e8: 091b lsrs r3, r3, #4
80021ea: f003 030f and.w r3, r3, #15
80021ee: 490a ldr r1, [pc, #40] @ (8002218 <HAL_RCC_ClockConfig+0x1cc>)
80021f0: 5ccb ldrb r3, [r1, r3]
80021f2: fa22 f303 lsr.w r3, r2, r3
80021f6: 4a09 ldr r2, [pc, #36] @ (800221c <HAL_RCC_ClockConfig+0x1d0>)
80021f8: 6013 str r3, [r2, #0]
/* Configure the source of time base considering new system clocks settings*/
HAL_InitTick(uwTickPrio);
80021fa: 4b09 ldr r3, [pc, #36] @ (8002220 <HAL_RCC_ClockConfig+0x1d4>)
80021fc: 681b ldr r3, [r3, #0]
80021fe: 4618 mov r0, r3
8002200: f7fe ffc6 bl 8001190 <HAL_InitTick>
return HAL_OK;
8002204: 2300 movs r3, #0
}
8002206: 4618 mov r0, r3
8002208: 3710 adds r7, #16
800220a: 46bd mov sp, r7
800220c: bd80 pop {r7, pc}
800220e: bf00 nop
8002210: 40023c00 .word 0x40023c00
8002214: 40023800 .word 0x40023800
8002218: 080075e4 .word 0x080075e4
800221c: 20000000 .word 0x20000000
8002220: 20000004 .word 0x20000004
08002224 <HAL_RCC_GetSysClockFreq>:
*
*
* @retval SYSCLK frequency
*/
uint32_t HAL_RCC_GetSysClockFreq(void)
{
8002224: e92d 4fb0 stmdb sp!, {r4, r5, r7, r8, r9, sl, fp, lr}
8002228: b090 sub sp, #64 @ 0x40
800222a: af00 add r7, sp, #0
uint32_t pllm = 0, pllvco = 0, pllp = 0;
800222c: 2300 movs r3, #0
800222e: 637b str r3, [r7, #52] @ 0x34
8002230: 2300 movs r3, #0
8002232: 63fb str r3, [r7, #60] @ 0x3c
8002234: 2300 movs r3, #0
8002236: 633b str r3, [r7, #48] @ 0x30
uint32_t sysclockfreq = 0;
8002238: 2300 movs r3, #0
800223a: 63bb str r3, [r7, #56] @ 0x38
/* Get SYSCLK source -------------------------------------------------------*/
switch (RCC->CFGR & RCC_CFGR_SWS)
800223c: 4b59 ldr r3, [pc, #356] @ (80023a4 <HAL_RCC_GetSysClockFreq+0x180>)
800223e: 689b ldr r3, [r3, #8]
8002240: f003 030c and.w r3, r3, #12
8002244: 2b08 cmp r3, #8
8002246: d00d beq.n 8002264 <HAL_RCC_GetSysClockFreq+0x40>
8002248: 2b08 cmp r3, #8
800224a: f200 80a1 bhi.w 8002390 <HAL_RCC_GetSysClockFreq+0x16c>
800224e: 2b00 cmp r3, #0
8002250: d002 beq.n 8002258 <HAL_RCC_GetSysClockFreq+0x34>
8002252: 2b04 cmp r3, #4
8002254: d003 beq.n 800225e <HAL_RCC_GetSysClockFreq+0x3a>
8002256: e09b b.n 8002390 <HAL_RCC_GetSysClockFreq+0x16c>
{
case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */
{
sysclockfreq = HSI_VALUE;
8002258: 4b53 ldr r3, [pc, #332] @ (80023a8 <HAL_RCC_GetSysClockFreq+0x184>)
800225a: 63bb str r3, [r7, #56] @ 0x38
break;
800225c: e09b b.n 8002396 <HAL_RCC_GetSysClockFreq+0x172>
}
case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock source */
{
sysclockfreq = HSE_VALUE;
800225e: 4b53 ldr r3, [pc, #332] @ (80023ac <HAL_RCC_GetSysClockFreq+0x188>)
8002260: 63bb str r3, [r7, #56] @ 0x38
break;
8002262: e098 b.n 8002396 <HAL_RCC_GetSysClockFreq+0x172>
}
case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* 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;
8002264: 4b4f ldr r3, [pc, #316] @ (80023a4 <HAL_RCC_GetSysClockFreq+0x180>)
8002266: 685b ldr r3, [r3, #4]
8002268: f003 033f and.w r3, r3, #63 @ 0x3f
800226c: 637b str r3, [r7, #52] @ 0x34
if (__HAL_RCC_GET_PLL_OSCSOURCE() != RCC_PLLCFGR_PLLSRC_HSI)
800226e: 4b4d ldr r3, [pc, #308] @ (80023a4 <HAL_RCC_GetSysClockFreq+0x180>)
8002270: 685b ldr r3, [r3, #4]
8002272: f403 0380 and.w r3, r3, #4194304 @ 0x400000
8002276: 2b00 cmp r3, #0
8002278: d028 beq.n 80022cc <HAL_RCC_GetSysClockFreq+0xa8>
{
/* 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);
800227a: 4b4a ldr r3, [pc, #296] @ (80023a4 <HAL_RCC_GetSysClockFreq+0x180>)
800227c: 685b ldr r3, [r3, #4]
800227e: 099b lsrs r3, r3, #6
8002280: 2200 movs r2, #0
8002282: 623b str r3, [r7, #32]
8002284: 627a str r2, [r7, #36] @ 0x24
8002286: 6a3b ldr r3, [r7, #32]
8002288: f3c3 0008 ubfx r0, r3, #0, #9
800228c: 2100 movs r1, #0
800228e: 4b47 ldr r3, [pc, #284] @ (80023ac <HAL_RCC_GetSysClockFreq+0x188>)
8002290: fb03 f201 mul.w r2, r3, r1
8002294: 2300 movs r3, #0
8002296: fb00 f303 mul.w r3, r0, r3
800229a: 4413 add r3, r2
800229c: 4a43 ldr r2, [pc, #268] @ (80023ac <HAL_RCC_GetSysClockFreq+0x188>)
800229e: fba0 1202 umull r1, r2, r0, r2
80022a2: 62fa str r2, [r7, #44] @ 0x2c
80022a4: 460a mov r2, r1
80022a6: 62ba str r2, [r7, #40] @ 0x28
80022a8: 6afa ldr r2, [r7, #44] @ 0x2c
80022aa: 4413 add r3, r2
80022ac: 62fb str r3, [r7, #44] @ 0x2c
80022ae: 6b7b ldr r3, [r7, #52] @ 0x34
80022b0: 2200 movs r2, #0
80022b2: 61bb str r3, [r7, #24]
80022b4: 61fa str r2, [r7, #28]
80022b6: e9d7 2306 ldrd r2, r3, [r7, #24]
80022ba: e9d7 010a ldrd r0, r1, [r7, #40] @ 0x28
80022be: f7fd ffff bl 80002c0 <__aeabi_uldivmod>
80022c2: 4602 mov r2, r0
80022c4: 460b mov r3, r1
80022c6: 4613 mov r3, r2
80022c8: 63fb str r3, [r7, #60] @ 0x3c
80022ca: e053 b.n 8002374 <HAL_RCC_GetSysClockFreq+0x150>
}
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);
80022cc: 4b35 ldr r3, [pc, #212] @ (80023a4 <HAL_RCC_GetSysClockFreq+0x180>)
80022ce: 685b ldr r3, [r3, #4]
80022d0: 099b lsrs r3, r3, #6
80022d2: 2200 movs r2, #0
80022d4: 613b str r3, [r7, #16]
80022d6: 617a str r2, [r7, #20]
80022d8: 693b ldr r3, [r7, #16]
80022da: f3c3 0a08 ubfx sl, r3, #0, #9
80022de: f04f 0b00 mov.w fp, #0
80022e2: 4652 mov r2, sl
80022e4: 465b mov r3, fp
80022e6: f04f 0000 mov.w r0, #0
80022ea: f04f 0100 mov.w r1, #0
80022ee: 0159 lsls r1, r3, #5
80022f0: ea41 61d2 orr.w r1, r1, r2, lsr #27
80022f4: 0150 lsls r0, r2, #5
80022f6: 4602 mov r2, r0
80022f8: 460b mov r3, r1
80022fa: ebb2 080a subs.w r8, r2, sl
80022fe: eb63 090b sbc.w r9, r3, fp
8002302: f04f 0200 mov.w r2, #0
8002306: f04f 0300 mov.w r3, #0
800230a: ea4f 1389 mov.w r3, r9, lsl #6
800230e: ea43 6398 orr.w r3, r3, r8, lsr #26
8002312: ea4f 1288 mov.w r2, r8, lsl #6
8002316: ebb2 0408 subs.w r4, r2, r8
800231a: eb63 0509 sbc.w r5, r3, r9
800231e: f04f 0200 mov.w r2, #0
8002322: f04f 0300 mov.w r3, #0
8002326: 00eb lsls r3, r5, #3
8002328: ea43 7354 orr.w r3, r3, r4, lsr #29
800232c: 00e2 lsls r2, r4, #3
800232e: 4614 mov r4, r2
8002330: 461d mov r5, r3
8002332: eb14 030a adds.w r3, r4, sl
8002336: 603b str r3, [r7, #0]
8002338: eb45 030b adc.w r3, r5, fp
800233c: 607b str r3, [r7, #4]
800233e: f04f 0200 mov.w r2, #0
8002342: f04f 0300 mov.w r3, #0
8002346: e9d7 4500 ldrd r4, r5, [r7]
800234a: 4629 mov r1, r5
800234c: 028b lsls r3, r1, #10
800234e: 4621 mov r1, r4
8002350: ea43 5391 orr.w r3, r3, r1, lsr #22
8002354: 4621 mov r1, r4
8002356: 028a lsls r2, r1, #10
8002358: 4610 mov r0, r2
800235a: 4619 mov r1, r3
800235c: 6b7b ldr r3, [r7, #52] @ 0x34
800235e: 2200 movs r2, #0
8002360: 60bb str r3, [r7, #8]
8002362: 60fa str r2, [r7, #12]
8002364: e9d7 2302 ldrd r2, r3, [r7, #8]
8002368: f7fd ffaa bl 80002c0 <__aeabi_uldivmod>
800236c: 4602 mov r2, r0
800236e: 460b mov r3, r1
8002370: 4613 mov r3, r2
8002372: 63fb str r3, [r7, #60] @ 0x3c
}
pllp = ((((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >> RCC_PLLCFGR_PLLP_Pos) + 1) * 2);
8002374: 4b0b ldr r3, [pc, #44] @ (80023a4 <HAL_RCC_GetSysClockFreq+0x180>)
8002376: 685b ldr r3, [r3, #4]
8002378: 0c1b lsrs r3, r3, #16
800237a: f003 0303 and.w r3, r3, #3
800237e: 3301 adds r3, #1
8002380: 005b lsls r3, r3, #1
8002382: 633b str r3, [r7, #48] @ 0x30
sysclockfreq = pllvco / pllp;
8002384: 6bfa ldr r2, [r7, #60] @ 0x3c
8002386: 6b3b ldr r3, [r7, #48] @ 0x30
8002388: fbb2 f3f3 udiv r3, r2, r3
800238c: 63bb str r3, [r7, #56] @ 0x38
break;
800238e: e002 b.n 8002396 <HAL_RCC_GetSysClockFreq+0x172>
}
default:
{
sysclockfreq = HSI_VALUE;
8002390: 4b05 ldr r3, [pc, #20] @ (80023a8 <HAL_RCC_GetSysClockFreq+0x184>)
8002392: 63bb str r3, [r7, #56] @ 0x38
break;
8002394: bf00 nop
}
}
return sysclockfreq;
8002396: 6bbb ldr r3, [r7, #56] @ 0x38
}
8002398: 4618 mov r0, r3
800239a: 3740 adds r7, #64 @ 0x40
800239c: 46bd mov sp, r7
800239e: e8bd 8fb0 ldmia.w sp!, {r4, r5, r7, r8, r9, sl, fp, pc}
80023a2: bf00 nop
80023a4: 40023800 .word 0x40023800
80023a8: 00f42400 .word 0x00f42400
80023ac: 017d7840 .word 0x017d7840
080023b0 <HAL_RCC_GetHCLKFreq>:
* right HCLK value. Otherwise, any configuration based on this function will be incorrect.
* @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency.
* @retval HCLK frequency
*/
uint32_t HAL_RCC_GetHCLKFreq(void)
{
80023b0: b480 push {r7}
80023b2: af00 add r7, sp, #0
return SystemCoreClock;
80023b4: 4b03 ldr r3, [pc, #12] @ (80023c4 <HAL_RCC_GetHCLKFreq+0x14>)
80023b6: 681b ldr r3, [r3, #0]
}
80023b8: 4618 mov r0, r3
80023ba: 46bd mov sp, r7
80023bc: f85d 7b04 ldr.w r7, [sp], #4
80023c0: 4770 bx lr
80023c2: bf00 nop
80023c4: 20000000 .word 0x20000000
080023c8 <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)
{
80023c8: b580 push {r7, lr}
80023ca: 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]);
80023cc: f7ff fff0 bl 80023b0 <HAL_RCC_GetHCLKFreq>
80023d0: 4602 mov r2, r0
80023d2: 4b05 ldr r3, [pc, #20] @ (80023e8 <HAL_RCC_GetPCLK1Freq+0x20>)
80023d4: 689b ldr r3, [r3, #8]
80023d6: 0a9b lsrs r3, r3, #10
80023d8: f003 0307 and.w r3, r3, #7
80023dc: 4903 ldr r1, [pc, #12] @ (80023ec <HAL_RCC_GetPCLK1Freq+0x24>)
80023de: 5ccb ldrb r3, [r1, r3]
80023e0: fa22 f303 lsr.w r3, r2, r3
}
80023e4: 4618 mov r0, r3
80023e6: bd80 pop {r7, pc}
80023e8: 40023800 .word 0x40023800
80023ec: 080075f4 .word 0x080075f4
080023f0 <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)
{
80023f0: b580 push {r7, lr}
80023f2: 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]);
80023f4: f7ff ffdc bl 80023b0 <HAL_RCC_GetHCLKFreq>
80023f8: 4602 mov r2, r0
80023fa: 4b05 ldr r3, [pc, #20] @ (8002410 <HAL_RCC_GetPCLK2Freq+0x20>)
80023fc: 689b ldr r3, [r3, #8]
80023fe: 0b5b lsrs r3, r3, #13
8002400: f003 0307 and.w r3, r3, #7
8002404: 4903 ldr r1, [pc, #12] @ (8002414 <HAL_RCC_GetPCLK2Freq+0x24>)
8002406: 5ccb ldrb r3, [r1, r3]
8002408: fa22 f303 lsr.w r3, r2, r3
}
800240c: 4618 mov r0, r3
800240e: bd80 pop {r7, pc}
8002410: 40023800 .word 0x40023800
8002414: 080075f4 .word 0x080075f4
08002418 <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)
{
8002418: b480 push {r7}
800241a: b083 sub sp, #12
800241c: af00 add r7, sp, #0
800241e: 6078 str r0, [r7, #4]
8002420: 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;
8002422: 687b ldr r3, [r7, #4]
8002424: 220f movs r2, #15
8002426: 601a str r2, [r3, #0]
/* Get the SYSCLK configuration --------------------------------------------*/
RCC_ClkInitStruct->SYSCLKSource = (uint32_t)(RCC->CFGR & RCC_CFGR_SW);
8002428: 4b12 ldr r3, [pc, #72] @ (8002474 <HAL_RCC_GetClockConfig+0x5c>)
800242a: 689b ldr r3, [r3, #8]
800242c: f003 0203 and.w r2, r3, #3
8002430: 687b ldr r3, [r7, #4]
8002432: 605a str r2, [r3, #4]
/* Get the HCLK configuration ----------------------------------------------*/
RCC_ClkInitStruct->AHBCLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_HPRE);
8002434: 4b0f ldr r3, [pc, #60] @ (8002474 <HAL_RCC_GetClockConfig+0x5c>)
8002436: 689b ldr r3, [r3, #8]
8002438: f003 02f0 and.w r2, r3, #240 @ 0xf0
800243c: 687b ldr r3, [r7, #4]
800243e: 609a str r2, [r3, #8]
/* Get the APB1 configuration ----------------------------------------------*/
RCC_ClkInitStruct->APB1CLKDivider = (uint32_t)(RCC->CFGR & RCC_CFGR_PPRE1);
8002440: 4b0c ldr r3, [pc, #48] @ (8002474 <HAL_RCC_GetClockConfig+0x5c>)
8002442: 689b ldr r3, [r3, #8]
8002444: f403 52e0 and.w r2, r3, #7168 @ 0x1c00
8002448: 687b ldr r3, [r7, #4]
800244a: 60da str r2, [r3, #12]
/* Get the APB2 configuration ----------------------------------------------*/
RCC_ClkInitStruct->APB2CLKDivider = (uint32_t)((RCC->CFGR & RCC_CFGR_PPRE2) >> 3);
800244c: 4b09 ldr r3, [pc, #36] @ (8002474 <HAL_RCC_GetClockConfig+0x5c>)
800244e: 689b ldr r3, [r3, #8]
8002450: 08db lsrs r3, r3, #3
8002452: f403 52e0 and.w r2, r3, #7168 @ 0x1c00
8002456: 687b ldr r3, [r7, #4]
8002458: 611a str r2, [r3, #16]
/* Get the Flash Wait State (Latency) configuration ------------------------*/
*pFLatency = (uint32_t)(FLASH->ACR & FLASH_ACR_LATENCY);
800245a: 4b07 ldr r3, [pc, #28] @ (8002478 <HAL_RCC_GetClockConfig+0x60>)
800245c: 681b ldr r3, [r3, #0]
800245e: f003 020f and.w r2, r3, #15
8002462: 683b ldr r3, [r7, #0]
8002464: 601a str r2, [r3, #0]
}
8002466: bf00 nop
8002468: 370c adds r7, #12
800246a: 46bd mov sp, r7
800246c: f85d 7b04 ldr.w r7, [sp], #4
8002470: 4770 bx lr
8002472: bf00 nop
8002474: 40023800 .word 0x40023800
8002478: 40023c00 .word 0x40023c00
0800247c <HAL_RCCEx_PeriphCLKConfig>:
* the backup registers) are set to their reset values.
*
* @retval HAL status
*/
HAL_StatusTypeDef HAL_RCCEx_PeriphCLKConfig(RCC_PeriphCLKInitTypeDef *PeriphClkInit)
{
800247c: b580 push {r7, lr}
800247e: b088 sub sp, #32
8002480: af00 add r7, sp, #0
8002482: 6078 str r0, [r7, #4]
uint32_t tickstart = 0;
8002484: 2300 movs r3, #0
8002486: 617b str r3, [r7, #20]
uint32_t tmpreg0 = 0;
8002488: 2300 movs r3, #0
800248a: 613b str r3, [r7, #16]
uint32_t plli2sused = 0;
800248c: 2300 movs r3, #0
800248e: 61fb str r3, [r7, #28]
uint32_t pllsaiused = 0;
8002490: 2300 movs r3, #0
8002492: 61bb str r3, [r7, #24]
/* Check the parameters */
assert_param(IS_RCC_PERIPHCLOCK(PeriphClkInit->PeriphClockSelection));
/*----------------------------------- I2S configuration ----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == (RCC_PERIPHCLK_I2S))
8002494: 687b ldr r3, [r7, #4]
8002496: 681b ldr r3, [r3, #0]
8002498: f003 0301 and.w r3, r3, #1
800249c: 2b00 cmp r3, #0
800249e: d012 beq.n 80024c6 <HAL_RCCEx_PeriphCLKConfig+0x4a>
{
/* Check the parameters */
assert_param(IS_RCC_I2SCLKSOURCE(PeriphClkInit->I2sClockSelection));
/* Configure I2S Clock source */
__HAL_RCC_I2S_CONFIG(PeriphClkInit->I2sClockSelection);
80024a0: 4b65 ldr r3, [pc, #404] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
80024a2: 689b ldr r3, [r3, #8]
80024a4: 4a64 ldr r2, [pc, #400] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
80024a6: f423 0300 bic.w r3, r3, #8388608 @ 0x800000
80024aa: 6093 str r3, [r2, #8]
80024ac: 4b62 ldr r3, [pc, #392] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
80024ae: 689a ldr r2, [r3, #8]
80024b0: 687b ldr r3, [r7, #4]
80024b2: 6adb ldr r3, [r3, #44] @ 0x2c
80024b4: 4960 ldr r1, [pc, #384] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
80024b6: 4313 orrs r3, r2
80024b8: 608b str r3, [r1, #8]
/* Enable the PLLI2S when it's used as clock source for I2S */
if(PeriphClkInit->I2sClockSelection == RCC_I2SCLKSOURCE_PLLI2S)
80024ba: 687b ldr r3, [r7, #4]
80024bc: 6adb ldr r3, [r3, #44] @ 0x2c
80024be: 2b00 cmp r3, #0
80024c0: d101 bne.n 80024c6 <HAL_RCCEx_PeriphCLKConfig+0x4a>
{
plli2sused = 1;
80024c2: 2301 movs r3, #1
80024c4: 61fb str r3, [r7, #28]
}
}
/*------------------------------------ SAI1 configuration --------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == (RCC_PERIPHCLK_SAI1))
80024c6: 687b ldr r3, [r7, #4]
80024c8: 681b ldr r3, [r3, #0]
80024ca: f403 2300 and.w r3, r3, #524288 @ 0x80000
80024ce: 2b00 cmp r3, #0
80024d0: d017 beq.n 8002502 <HAL_RCCEx_PeriphCLKConfig+0x86>
{
/* Check the parameters */
assert_param(IS_RCC_SAI1CLKSOURCE(PeriphClkInit->Sai1ClockSelection));
/* Configure SAI1 Clock source */
__HAL_RCC_SAI1_CONFIG(PeriphClkInit->Sai1ClockSelection);
80024d2: 4b59 ldr r3, [pc, #356] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
80024d4: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
80024d8: f423 1240 bic.w r2, r3, #3145728 @ 0x300000
80024dc: 687b ldr r3, [r7, #4]
80024de: 6b5b ldr r3, [r3, #52] @ 0x34
80024e0: 4955 ldr r1, [pc, #340] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
80024e2: 4313 orrs r3, r2
80024e4: f8c1 308c str.w r3, [r1, #140] @ 0x8c
/* Enable the PLLI2S when it's used as clock source for SAI */
if(PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)
80024e8: 687b ldr r3, [r7, #4]
80024ea: 6b5b ldr r3, [r3, #52] @ 0x34
80024ec: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
80024f0: d101 bne.n 80024f6 <HAL_RCCEx_PeriphCLKConfig+0x7a>
{
plli2sused = 1;
80024f2: 2301 movs r3, #1
80024f4: 61fb str r3, [r7, #28]
}
/* Enable the PLLSAI when it's used as clock source for SAI */
if(PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)
80024f6: 687b ldr r3, [r7, #4]
80024f8: 6b5b ldr r3, [r3, #52] @ 0x34
80024fa: 2b00 cmp r3, #0
80024fc: d101 bne.n 8002502 <HAL_RCCEx_PeriphCLKConfig+0x86>
{
pllsaiused = 1;
80024fe: 2301 movs r3, #1
8002500: 61bb str r3, [r7, #24]
}
}
/*------------------------------------ SAI2 configuration --------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == (RCC_PERIPHCLK_SAI2))
8002502: 687b ldr r3, [r7, #4]
8002504: 681b ldr r3, [r3, #0]
8002506: f403 1380 and.w r3, r3, #1048576 @ 0x100000
800250a: 2b00 cmp r3, #0
800250c: d017 beq.n 800253e <HAL_RCCEx_PeriphCLKConfig+0xc2>
{
/* Check the parameters */
assert_param(IS_RCC_SAI2CLKSOURCE(PeriphClkInit->Sai2ClockSelection));
/* Configure SAI2 Clock source */
__HAL_RCC_SAI2_CONFIG(PeriphClkInit->Sai2ClockSelection);
800250e: 4b4a ldr r3, [pc, #296] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
8002510: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
8002514: f423 0240 bic.w r2, r3, #12582912 @ 0xc00000
8002518: 687b ldr r3, [r7, #4]
800251a: 6b9b ldr r3, [r3, #56] @ 0x38
800251c: 4946 ldr r1, [pc, #280] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
800251e: 4313 orrs r3, r2
8002520: f8c1 308c str.w r3, [r1, #140] @ 0x8c
/* Enable the PLLI2S when it's used as clock source for SAI */
if(PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S)
8002524: 687b ldr r3, [r7, #4]
8002526: 6b9b ldr r3, [r3, #56] @ 0x38
8002528: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
800252c: d101 bne.n 8002532 <HAL_RCCEx_PeriphCLKConfig+0xb6>
{
plli2sused = 1;
800252e: 2301 movs r3, #1
8002530: 61fb str r3, [r7, #28]
}
/* Enable the PLLSAI when it's used as clock source for SAI */
if(PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI)
8002532: 687b ldr r3, [r7, #4]
8002534: 6b9b ldr r3, [r3, #56] @ 0x38
8002536: 2b00 cmp r3, #0
8002538: d101 bne.n 800253e <HAL_RCCEx_PeriphCLKConfig+0xc2>
{
pllsaiused = 1;
800253a: 2301 movs r3, #1
800253c: 61bb str r3, [r7, #24]
}
}
/*------------------------------------ RTC configuration --------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_RTC) == (RCC_PERIPHCLK_RTC))
800253e: 687b ldr r3, [r7, #4]
8002540: 681b ldr r3, [r3, #0]
8002542: f003 0320 and.w r3, r3, #32
8002546: 2b00 cmp r3, #0
8002548: f000 808b beq.w 8002662 <HAL_RCCEx_PeriphCLKConfig+0x1e6>
{
/* Check for RTC Parameters used to output RTCCLK */
assert_param(IS_RCC_RTCCLKSOURCE(PeriphClkInit->RTCClockSelection));
/* Enable Power Clock*/
__HAL_RCC_PWR_CLK_ENABLE();
800254c: 4b3a ldr r3, [pc, #232] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
800254e: 6c1b ldr r3, [r3, #64] @ 0x40
8002550: 4a39 ldr r2, [pc, #228] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
8002552: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
8002556: 6413 str r3, [r2, #64] @ 0x40
8002558: 4b37 ldr r3, [pc, #220] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
800255a: 6c1b ldr r3, [r3, #64] @ 0x40
800255c: f003 5380 and.w r3, r3, #268435456 @ 0x10000000
8002560: 60fb str r3, [r7, #12]
8002562: 68fb ldr r3, [r7, #12]
/* Enable write access to Backup domain */
PWR->CR1 |= PWR_CR1_DBP;
8002564: 4b35 ldr r3, [pc, #212] @ (800263c <HAL_RCCEx_PeriphCLKConfig+0x1c0>)
8002566: 681b ldr r3, [r3, #0]
8002568: 4a34 ldr r2, [pc, #208] @ (800263c <HAL_RCCEx_PeriphCLKConfig+0x1c0>)
800256a: f443 7380 orr.w r3, r3, #256 @ 0x100
800256e: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
8002570: f7fe ff92 bl 8001498 <HAL_GetTick>
8002574: 6178 str r0, [r7, #20]
/* Wait for Backup domain Write protection disable */
while((PWR->CR1 & PWR_CR1_DBP) == RESET)
8002576: e008 b.n 800258a <HAL_RCCEx_PeriphCLKConfig+0x10e>
{
if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
8002578: f7fe ff8e bl 8001498 <HAL_GetTick>
800257c: 4602 mov r2, r0
800257e: 697b ldr r3, [r7, #20]
8002580: 1ad3 subs r3, r2, r3
8002582: 2b64 cmp r3, #100 @ 0x64
8002584: d901 bls.n 800258a <HAL_RCCEx_PeriphCLKConfig+0x10e>
{
return HAL_TIMEOUT;
8002586: 2303 movs r3, #3
8002588: e2bc b.n 8002b04 <HAL_RCCEx_PeriphCLKConfig+0x688>
while((PWR->CR1 & PWR_CR1_DBP) == RESET)
800258a: 4b2c ldr r3, [pc, #176] @ (800263c <HAL_RCCEx_PeriphCLKConfig+0x1c0>)
800258c: 681b ldr r3, [r3, #0]
800258e: f403 7380 and.w r3, r3, #256 @ 0x100
8002592: 2b00 cmp r3, #0
8002594: d0f0 beq.n 8002578 <HAL_RCCEx_PeriphCLKConfig+0xfc>
}
}
/* Reset the Backup domain only if the RTC Clock source selection is modified */
tmpreg0 = (RCC->BDCR & RCC_BDCR_RTCSEL);
8002596: 4b28 ldr r3, [pc, #160] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
8002598: 6f1b ldr r3, [r3, #112] @ 0x70
800259a: f403 7340 and.w r3, r3, #768 @ 0x300
800259e: 613b str r3, [r7, #16]
if((tmpreg0 != 0x00000000U) && (tmpreg0 != (PeriphClkInit->RTCClockSelection & RCC_BDCR_RTCSEL)))
80025a0: 693b ldr r3, [r7, #16]
80025a2: 2b00 cmp r3, #0
80025a4: d035 beq.n 8002612 <HAL_RCCEx_PeriphCLKConfig+0x196>
80025a6: 687b ldr r3, [r7, #4]
80025a8: 6a9b ldr r3, [r3, #40] @ 0x28
80025aa: f403 7340 and.w r3, r3, #768 @ 0x300
80025ae: 693a ldr r2, [r7, #16]
80025b0: 429a cmp r2, r3
80025b2: d02e beq.n 8002612 <HAL_RCCEx_PeriphCLKConfig+0x196>
{
/* Store the content of BDCR register before the reset of Backup Domain */
tmpreg0 = (RCC->BDCR & ~(RCC_BDCR_RTCSEL));
80025b4: 4b20 ldr r3, [pc, #128] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
80025b6: 6f1b ldr r3, [r3, #112] @ 0x70
80025b8: f423 7340 bic.w r3, r3, #768 @ 0x300
80025bc: 613b str r3, [r7, #16]
/* RTC Clock selection can be changed only if the Backup Domain is reset */
__HAL_RCC_BACKUPRESET_FORCE();
80025be: 4b1e ldr r3, [pc, #120] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
80025c0: 6f1b ldr r3, [r3, #112] @ 0x70
80025c2: 4a1d ldr r2, [pc, #116] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
80025c4: f443 3380 orr.w r3, r3, #65536 @ 0x10000
80025c8: 6713 str r3, [r2, #112] @ 0x70
__HAL_RCC_BACKUPRESET_RELEASE();
80025ca: 4b1b ldr r3, [pc, #108] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
80025cc: 6f1b ldr r3, [r3, #112] @ 0x70
80025ce: 4a1a ldr r2, [pc, #104] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
80025d0: f423 3380 bic.w r3, r3, #65536 @ 0x10000
80025d4: 6713 str r3, [r2, #112] @ 0x70
/* Restore the Content of BDCR register */
RCC->BDCR = tmpreg0;
80025d6: 4a18 ldr r2, [pc, #96] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
80025d8: 693b ldr r3, [r7, #16]
80025da: 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))
80025dc: 4b16 ldr r3, [pc, #88] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
80025de: 6f1b ldr r3, [r3, #112] @ 0x70
80025e0: f003 0301 and.w r3, r3, #1
80025e4: 2b01 cmp r3, #1
80025e6: d114 bne.n 8002612 <HAL_RCCEx_PeriphCLKConfig+0x196>
{
/* Get Start Tick*/
tickstart = HAL_GetTick();
80025e8: f7fe ff56 bl 8001498 <HAL_GetTick>
80025ec: 6178 str r0, [r7, #20]
/* Wait till LSE is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
80025ee: e00a b.n 8002606 <HAL_RCCEx_PeriphCLKConfig+0x18a>
{
if((HAL_GetTick() - tickstart ) > RCC_LSE_TIMEOUT_VALUE)
80025f0: f7fe ff52 bl 8001498 <HAL_GetTick>
80025f4: 4602 mov r2, r0
80025f6: 697b ldr r3, [r7, #20]
80025f8: 1ad3 subs r3, r2, r3
80025fa: f241 3288 movw r2, #5000 @ 0x1388
80025fe: 4293 cmp r3, r2
8002600: d901 bls.n 8002606 <HAL_RCCEx_PeriphCLKConfig+0x18a>
{
return HAL_TIMEOUT;
8002602: 2303 movs r3, #3
8002604: e27e b.n 8002b04 <HAL_RCCEx_PeriphCLKConfig+0x688>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET)
8002606: 4b0c ldr r3, [pc, #48] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
8002608: 6f1b ldr r3, [r3, #112] @ 0x70
800260a: f003 0302 and.w r3, r3, #2
800260e: 2b00 cmp r3, #0
8002610: d0ee beq.n 80025f0 <HAL_RCCEx_PeriphCLKConfig+0x174>
}
}
}
}
__HAL_RCC_RTC_CONFIG(PeriphClkInit->RTCClockSelection);
8002612: 687b ldr r3, [r7, #4]
8002614: 6a9b ldr r3, [r3, #40] @ 0x28
8002616: f403 7340 and.w r3, r3, #768 @ 0x300
800261a: f5b3 7f40 cmp.w r3, #768 @ 0x300
800261e: d111 bne.n 8002644 <HAL_RCCEx_PeriphCLKConfig+0x1c8>
8002620: 4b05 ldr r3, [pc, #20] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
8002622: 689b ldr r3, [r3, #8]
8002624: f423 12f8 bic.w r2, r3, #2031616 @ 0x1f0000
8002628: 687b ldr r3, [r7, #4]
800262a: 6a99 ldr r1, [r3, #40] @ 0x28
800262c: 4b04 ldr r3, [pc, #16] @ (8002640 <HAL_RCCEx_PeriphCLKConfig+0x1c4>)
800262e: 400b ands r3, r1
8002630: 4901 ldr r1, [pc, #4] @ (8002638 <HAL_RCCEx_PeriphCLKConfig+0x1bc>)
8002632: 4313 orrs r3, r2
8002634: 608b str r3, [r1, #8]
8002636: e00b b.n 8002650 <HAL_RCCEx_PeriphCLKConfig+0x1d4>
8002638: 40023800 .word 0x40023800
800263c: 40007000 .word 0x40007000
8002640: 0ffffcff .word 0x0ffffcff
8002644: 4ba4 ldr r3, [pc, #656] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002646: 689b ldr r3, [r3, #8]
8002648: 4aa3 ldr r2, [pc, #652] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
800264a: f423 13f8 bic.w r3, r3, #2031616 @ 0x1f0000
800264e: 6093 str r3, [r2, #8]
8002650: 4ba1 ldr r3, [pc, #644] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002652: 6f1a ldr r2, [r3, #112] @ 0x70
8002654: 687b ldr r3, [r7, #4]
8002656: 6a9b ldr r3, [r3, #40] @ 0x28
8002658: f3c3 030b ubfx r3, r3, #0, #12
800265c: 499e ldr r1, [pc, #632] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
800265e: 4313 orrs r3, r2
8002660: 670b str r3, [r1, #112] @ 0x70
}
/*------------------------------------ TIM configuration --------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_TIM) == (RCC_PERIPHCLK_TIM))
8002662: 687b ldr r3, [r7, #4]
8002664: 681b ldr r3, [r3, #0]
8002666: f003 0310 and.w r3, r3, #16
800266a: 2b00 cmp r3, #0
800266c: d010 beq.n 8002690 <HAL_RCCEx_PeriphCLKConfig+0x214>
{
/* Check the parameters */
assert_param(IS_RCC_TIMPRES(PeriphClkInit->TIMPresSelection));
/* Configure Timer Prescaler */
__HAL_RCC_TIMCLKPRESCALER(PeriphClkInit->TIMPresSelection);
800266e: 4b9a ldr r3, [pc, #616] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002670: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
8002674: 4a98 ldr r2, [pc, #608] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002676: f023 7380 bic.w r3, r3, #16777216 @ 0x1000000
800267a: f8c2 308c str.w r3, [r2, #140] @ 0x8c
800267e: 4b96 ldr r3, [pc, #600] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002680: f8d3 208c ldr.w r2, [r3, #140] @ 0x8c
8002684: 687b ldr r3, [r7, #4]
8002686: 6b1b ldr r3, [r3, #48] @ 0x30
8002688: 4993 ldr r1, [pc, #588] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
800268a: 4313 orrs r3, r2
800268c: f8c1 308c str.w r3, [r1, #140] @ 0x8c
}
/*-------------------------------------- I2C1 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C1) == RCC_PERIPHCLK_I2C1)
8002690: 687b ldr r3, [r7, #4]
8002692: 681b ldr r3, [r3, #0]
8002694: f403 4380 and.w r3, r3, #16384 @ 0x4000
8002698: 2b00 cmp r3, #0
800269a: d00a beq.n 80026b2 <HAL_RCCEx_PeriphCLKConfig+0x236>
{
/* Check the parameters */
assert_param(IS_RCC_I2C1CLKSOURCE(PeriphClkInit->I2c1ClockSelection));
/* Configure the I2C1 clock source */
__HAL_RCC_I2C1_CONFIG(PeriphClkInit->I2c1ClockSelection);
800269c: 4b8e ldr r3, [pc, #568] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
800269e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
80026a2: f423 3240 bic.w r2, r3, #196608 @ 0x30000
80026a6: 687b ldr r3, [r7, #4]
80026a8: 6ddb ldr r3, [r3, #92] @ 0x5c
80026aa: 498b ldr r1, [pc, #556] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
80026ac: 4313 orrs r3, r2
80026ae: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*-------------------------------------- I2C2 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C2) == RCC_PERIPHCLK_I2C2)
80026b2: 687b ldr r3, [r7, #4]
80026b4: 681b ldr r3, [r3, #0]
80026b6: f403 4300 and.w r3, r3, #32768 @ 0x8000
80026ba: 2b00 cmp r3, #0
80026bc: d00a beq.n 80026d4 <HAL_RCCEx_PeriphCLKConfig+0x258>
{
/* Check the parameters */
assert_param(IS_RCC_I2C2CLKSOURCE(PeriphClkInit->I2c2ClockSelection));
/* Configure the I2C2 clock source */
__HAL_RCC_I2C2_CONFIG(PeriphClkInit->I2c2ClockSelection);
80026be: 4b86 ldr r3, [pc, #536] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
80026c0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
80026c4: f423 2240 bic.w r2, r3, #786432 @ 0xc0000
80026c8: 687b ldr r3, [r7, #4]
80026ca: 6e1b ldr r3, [r3, #96] @ 0x60
80026cc: 4982 ldr r1, [pc, #520] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
80026ce: 4313 orrs r3, r2
80026d0: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*-------------------------------------- I2C3 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2C3) == RCC_PERIPHCLK_I2C3)
80026d4: 687b ldr r3, [r7, #4]
80026d6: 681b ldr r3, [r3, #0]
80026d8: f403 3380 and.w r3, r3, #65536 @ 0x10000
80026dc: 2b00 cmp r3, #0
80026de: d00a beq.n 80026f6 <HAL_RCCEx_PeriphCLKConfig+0x27a>
{
/* Check the parameters */
assert_param(IS_RCC_I2C3CLKSOURCE(PeriphClkInit->I2c3ClockSelection));
/* Configure the I2C3 clock source */
__HAL_RCC_I2C3_CONFIG(PeriphClkInit->I2c3ClockSelection);
80026e0: 4b7d ldr r3, [pc, #500] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
80026e2: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
80026e6: f423 1240 bic.w r2, r3, #3145728 @ 0x300000
80026ea: 687b ldr r3, [r7, #4]
80026ec: 6e5b ldr r3, [r3, #100] @ 0x64
80026ee: 497a ldr r1, [pc, #488] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
80026f0: 4313 orrs r3, r2
80026f2: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*-------------------------------------- USART1 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART1) == RCC_PERIPHCLK_USART1)
80026f6: 687b ldr r3, [r7, #4]
80026f8: 681b ldr r3, [r3, #0]
80026fa: f003 0340 and.w r3, r3, #64 @ 0x40
80026fe: 2b00 cmp r3, #0
8002700: d00a beq.n 8002718 <HAL_RCCEx_PeriphCLKConfig+0x29c>
{
/* Check the parameters */
assert_param(IS_RCC_USART1CLKSOURCE(PeriphClkInit->Usart1ClockSelection));
/* Configure the USART1 clock source */
__HAL_RCC_USART1_CONFIG(PeriphClkInit->Usart1ClockSelection);
8002702: 4b75 ldr r3, [pc, #468] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002704: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
8002708: f023 0203 bic.w r2, r3, #3
800270c: 687b ldr r3, [r7, #4]
800270e: 6bdb ldr r3, [r3, #60] @ 0x3c
8002710: 4971 ldr r1, [pc, #452] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002712: 4313 orrs r3, r2
8002714: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*-------------------------------------- USART2 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART2) == RCC_PERIPHCLK_USART2)
8002718: 687b ldr r3, [r7, #4]
800271a: 681b ldr r3, [r3, #0]
800271c: f003 0380 and.w r3, r3, #128 @ 0x80
8002720: 2b00 cmp r3, #0
8002722: d00a beq.n 800273a <HAL_RCCEx_PeriphCLKConfig+0x2be>
{
/* Check the parameters */
assert_param(IS_RCC_USART2CLKSOURCE(PeriphClkInit->Usart2ClockSelection));
/* Configure the USART2 clock source */
__HAL_RCC_USART2_CONFIG(PeriphClkInit->Usart2ClockSelection);
8002724: 4b6c ldr r3, [pc, #432] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002726: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
800272a: f023 020c bic.w r2, r3, #12
800272e: 687b ldr r3, [r7, #4]
8002730: 6c1b ldr r3, [r3, #64] @ 0x40
8002732: 4969 ldr r1, [pc, #420] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002734: 4313 orrs r3, r2
8002736: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*-------------------------------------- USART3 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART3) == RCC_PERIPHCLK_USART3)
800273a: 687b ldr r3, [r7, #4]
800273c: 681b ldr r3, [r3, #0]
800273e: f403 7380 and.w r3, r3, #256 @ 0x100
8002742: 2b00 cmp r3, #0
8002744: d00a beq.n 800275c <HAL_RCCEx_PeriphCLKConfig+0x2e0>
{
/* Check the parameters */
assert_param(IS_RCC_USART3CLKSOURCE(PeriphClkInit->Usart3ClockSelection));
/* Configure the USART3 clock source */
__HAL_RCC_USART3_CONFIG(PeriphClkInit->Usart3ClockSelection);
8002746: 4b64 ldr r3, [pc, #400] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002748: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
800274c: f023 0230 bic.w r2, r3, #48 @ 0x30
8002750: 687b ldr r3, [r7, #4]
8002752: 6c5b ldr r3, [r3, #68] @ 0x44
8002754: 4960 ldr r1, [pc, #384] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002756: 4313 orrs r3, r2
8002758: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*-------------------------------------- UART4 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_UART4) == RCC_PERIPHCLK_UART4)
800275c: 687b ldr r3, [r7, #4]
800275e: 681b ldr r3, [r3, #0]
8002760: f403 7300 and.w r3, r3, #512 @ 0x200
8002764: 2b00 cmp r3, #0
8002766: d00a beq.n 800277e <HAL_RCCEx_PeriphCLKConfig+0x302>
{
/* Check the parameters */
assert_param(IS_RCC_UART4CLKSOURCE(PeriphClkInit->Uart4ClockSelection));
/* Configure the UART4 clock source */
__HAL_RCC_UART4_CONFIG(PeriphClkInit->Uart4ClockSelection);
8002768: 4b5b ldr r3, [pc, #364] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
800276a: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
800276e: f023 02c0 bic.w r2, r3, #192 @ 0xc0
8002772: 687b ldr r3, [r7, #4]
8002774: 6c9b ldr r3, [r3, #72] @ 0x48
8002776: 4958 ldr r1, [pc, #352] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002778: 4313 orrs r3, r2
800277a: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*-------------------------------------- UART5 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_UART5) == RCC_PERIPHCLK_UART5)
800277e: 687b ldr r3, [r7, #4]
8002780: 681b ldr r3, [r3, #0]
8002782: f403 6380 and.w r3, r3, #1024 @ 0x400
8002786: 2b00 cmp r3, #0
8002788: d00a beq.n 80027a0 <HAL_RCCEx_PeriphCLKConfig+0x324>
{
/* Check the parameters */
assert_param(IS_RCC_UART5CLKSOURCE(PeriphClkInit->Uart5ClockSelection));
/* Configure the UART5 clock source */
__HAL_RCC_UART5_CONFIG(PeriphClkInit->Uart5ClockSelection);
800278a: 4b53 ldr r3, [pc, #332] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
800278c: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
8002790: f423 7240 bic.w r2, r3, #768 @ 0x300
8002794: 687b ldr r3, [r7, #4]
8002796: 6cdb ldr r3, [r3, #76] @ 0x4c
8002798: 494f ldr r1, [pc, #316] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
800279a: 4313 orrs r3, r2
800279c: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*-------------------------------------- USART6 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_USART6) == RCC_PERIPHCLK_USART6)
80027a0: 687b ldr r3, [r7, #4]
80027a2: 681b ldr r3, [r3, #0]
80027a4: f403 6300 and.w r3, r3, #2048 @ 0x800
80027a8: 2b00 cmp r3, #0
80027aa: d00a beq.n 80027c2 <HAL_RCCEx_PeriphCLKConfig+0x346>
{
/* Check the parameters */
assert_param(IS_RCC_USART6CLKSOURCE(PeriphClkInit->Usart6ClockSelection));
/* Configure the USART6 clock source */
__HAL_RCC_USART6_CONFIG(PeriphClkInit->Usart6ClockSelection);
80027ac: 4b4a ldr r3, [pc, #296] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
80027ae: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
80027b2: f423 6240 bic.w r2, r3, #3072 @ 0xc00
80027b6: 687b ldr r3, [r7, #4]
80027b8: 6d1b ldr r3, [r3, #80] @ 0x50
80027ba: 4947 ldr r1, [pc, #284] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
80027bc: 4313 orrs r3, r2
80027be: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*-------------------------------------- UART7 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_UART7) == RCC_PERIPHCLK_UART7)
80027c2: 687b ldr r3, [r7, #4]
80027c4: 681b ldr r3, [r3, #0]
80027c6: f403 5380 and.w r3, r3, #4096 @ 0x1000
80027ca: 2b00 cmp r3, #0
80027cc: d00a beq.n 80027e4 <HAL_RCCEx_PeriphCLKConfig+0x368>
{
/* Check the parameters */
assert_param(IS_RCC_UART7CLKSOURCE(PeriphClkInit->Uart7ClockSelection));
/* Configure the UART7 clock source */
__HAL_RCC_UART7_CONFIG(PeriphClkInit->Uart7ClockSelection);
80027ce: 4b42 ldr r3, [pc, #264] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
80027d0: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
80027d4: f423 5240 bic.w r2, r3, #12288 @ 0x3000
80027d8: 687b ldr r3, [r7, #4]
80027da: 6d5b ldr r3, [r3, #84] @ 0x54
80027dc: 493e ldr r1, [pc, #248] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
80027de: 4313 orrs r3, r2
80027e0: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*-------------------------------------- UART8 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_UART8) == RCC_PERIPHCLK_UART8)
80027e4: 687b ldr r3, [r7, #4]
80027e6: 681b ldr r3, [r3, #0]
80027e8: f403 5300 and.w r3, r3, #8192 @ 0x2000
80027ec: 2b00 cmp r3, #0
80027ee: d00a beq.n 8002806 <HAL_RCCEx_PeriphCLKConfig+0x38a>
{
/* Check the parameters */
assert_param(IS_RCC_UART8CLKSOURCE(PeriphClkInit->Uart8ClockSelection));
/* Configure the UART8 clock source */
__HAL_RCC_UART8_CONFIG(PeriphClkInit->Uart8ClockSelection);
80027f0: 4b39 ldr r3, [pc, #228] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
80027f2: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
80027f6: f423 4240 bic.w r2, r3, #49152 @ 0xc000
80027fa: 687b ldr r3, [r7, #4]
80027fc: 6d9b ldr r3, [r3, #88] @ 0x58
80027fe: 4936 ldr r1, [pc, #216] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002800: 4313 orrs r3, r2
8002802: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*-------------------------------------- CK48 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48)
8002806: 687b ldr r3, [r7, #4]
8002808: 681b ldr r3, [r3, #0]
800280a: f403 1300 and.w r3, r3, #2097152 @ 0x200000
800280e: 2b00 cmp r3, #0
8002810: d011 beq.n 8002836 <HAL_RCCEx_PeriphCLKConfig+0x3ba>
{
/* Check the parameters */
assert_param(IS_RCC_CLK48SOURCE(PeriphClkInit->Clk48ClockSelection));
/* Configure the CLK48 source */
__HAL_RCC_CLK48_CONFIG(PeriphClkInit->Clk48ClockSelection);
8002812: 4b31 ldr r3, [pc, #196] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002814: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
8002818: f023 6200 bic.w r2, r3, #134217728 @ 0x8000000
800281c: 687b ldr r3, [r7, #4]
800281e: 6f5b ldr r3, [r3, #116] @ 0x74
8002820: 492d ldr r1, [pc, #180] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002822: 4313 orrs r3, r2
8002824: f8c1 3090 str.w r3, [r1, #144] @ 0x90
/* Enable the PLLSAI when it's used as clock source for CK48 */
if(PeriphClkInit->Clk48ClockSelection == RCC_CLK48SOURCE_PLLSAIP)
8002828: 687b ldr r3, [r7, #4]
800282a: 6f5b ldr r3, [r3, #116] @ 0x74
800282c: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
8002830: d101 bne.n 8002836 <HAL_RCCEx_PeriphCLKConfig+0x3ba>
{
pllsaiused = 1;
8002832: 2301 movs r3, #1
8002834: 61bb str r3, [r7, #24]
}
}
/*-------------------------------------- LPTIM1 Configuration -----------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_LPTIM1) == RCC_PERIPHCLK_LPTIM1)
8002836: 687b ldr r3, [r7, #4]
8002838: 681b ldr r3, [r3, #0]
800283a: f403 2380 and.w r3, r3, #262144 @ 0x40000
800283e: 2b00 cmp r3, #0
8002840: d00a beq.n 8002858 <HAL_RCCEx_PeriphCLKConfig+0x3dc>
{
/* Check the parameters */
assert_param(IS_RCC_LPTIM1CLK(PeriphClkInit->Lptim1ClockSelection));
/* Configure the LTPIM1 clock source */
__HAL_RCC_LPTIM1_CONFIG(PeriphClkInit->Lptim1ClockSelection);
8002842: 4b25 ldr r3, [pc, #148] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002844: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
8002848: f023 7240 bic.w r2, r3, #50331648 @ 0x3000000
800284c: 687b ldr r3, [r7, #4]
800284e: 6edb ldr r3, [r3, #108] @ 0x6c
8002850: 4921 ldr r1, [pc, #132] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002852: 4313 orrs r3, r2
8002854: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*------------------------------------- SDMMC1 Configuration ------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC1) == RCC_PERIPHCLK_SDMMC1)
8002858: 687b ldr r3, [r7, #4]
800285a: 681b ldr r3, [r3, #0]
800285c: f403 0300 and.w r3, r3, #8388608 @ 0x800000
8002860: 2b00 cmp r3, #0
8002862: d00a beq.n 800287a <HAL_RCCEx_PeriphCLKConfig+0x3fe>
{
/* Check the parameters */
assert_param(IS_RCC_SDMMC1CLKSOURCE(PeriphClkInit->Sdmmc1ClockSelection));
/* Configure the SDMMC1 clock source */
__HAL_RCC_SDMMC1_CONFIG(PeriphClkInit->Sdmmc1ClockSelection);
8002864: 4b1c ldr r3, [pc, #112] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002866: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
800286a: f023 5280 bic.w r2, r3, #268435456 @ 0x10000000
800286e: 687b ldr r3, [r7, #4]
8002870: 6f9b ldr r3, [r3, #120] @ 0x78
8002872: 4919 ldr r1, [pc, #100] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002874: 4313 orrs r3, r2
8002876: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*------------------------------------- SDMMC2 Configuration ------------------------------------*/
if(((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SDMMC2) == RCC_PERIPHCLK_SDMMC2)
800287a: 687b ldr r3, [r7, #4]
800287c: 681b ldr r3, [r3, #0]
800287e: f003 6380 and.w r3, r3, #67108864 @ 0x4000000
8002882: 2b00 cmp r3, #0
8002884: d00a beq.n 800289c <HAL_RCCEx_PeriphCLKConfig+0x420>
{
/* Check the parameters */
assert_param(IS_RCC_SDMMC2CLKSOURCE(PeriphClkInit->Sdmmc2ClockSelection));
/* Configure the SDMMC2 clock source */
__HAL_RCC_SDMMC2_CONFIG(PeriphClkInit->Sdmmc2ClockSelection);
8002886: 4b14 ldr r3, [pc, #80] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002888: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
800288c: f023 5200 bic.w r2, r3, #536870912 @ 0x20000000
8002890: 687b ldr r3, [r7, #4]
8002892: 6fdb ldr r3, [r3, #124] @ 0x7c
8002894: 4910 ldr r1, [pc, #64] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
8002896: 4313 orrs r3, r2
8002898: f8c1 3090 str.w r3, [r1, #144] @ 0x90
}
/*-------------------------------------- PLLI2S Configuration ---------------------------------*/
/* PLLI2S is configured when a peripheral will use it as source clock : SAI1, SAI2 or I2S */
if((plli2sused == 1) || ((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S))
800289c: 69fb ldr r3, [r7, #28]
800289e: 2b01 cmp r3, #1
80028a0: d006 beq.n 80028b0 <HAL_RCCEx_PeriphCLKConfig+0x434>
80028a2: 687b ldr r3, [r7, #4]
80028a4: 681b ldr r3, [r3, #0]
80028a6: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
80028aa: 2b00 cmp r3, #0
80028ac: f000 809d beq.w 80029ea <HAL_RCCEx_PeriphCLKConfig+0x56e>
{
/* Disable the PLLI2S */
__HAL_RCC_PLLI2S_DISABLE();
80028b0: 4b09 ldr r3, [pc, #36] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
80028b2: 681b ldr r3, [r3, #0]
80028b4: 4a08 ldr r2, [pc, #32] @ (80028d8 <HAL_RCCEx_PeriphCLKConfig+0x45c>)
80028b6: f023 6380 bic.w r3, r3, #67108864 @ 0x4000000
80028ba: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
80028bc: f7fe fdec bl 8001498 <HAL_GetTick>
80028c0: 6178 str r0, [r7, #20]
/* Wait till PLLI2S is disabled */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET)
80028c2: e00b b.n 80028dc <HAL_RCCEx_PeriphCLKConfig+0x460>
{
if((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE)
80028c4: f7fe fde8 bl 8001498 <HAL_GetTick>
80028c8: 4602 mov r2, r0
80028ca: 697b ldr r3, [r7, #20]
80028cc: 1ad3 subs r3, r2, r3
80028ce: 2b64 cmp r3, #100 @ 0x64
80028d0: d904 bls.n 80028dc <HAL_RCCEx_PeriphCLKConfig+0x460>
{
/* return in case of Timeout detected */
return HAL_TIMEOUT;
80028d2: 2303 movs r3, #3
80028d4: e116 b.n 8002b04 <HAL_RCCEx_PeriphCLKConfig+0x688>
80028d6: bf00 nop
80028d8: 40023800 .word 0x40023800
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) != RESET)
80028dc: 4b8b ldr r3, [pc, #556] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
80028de: 681b ldr r3, [r3, #0]
80028e0: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
80028e4: 2b00 cmp r3, #0
80028e6: d1ed bne.n 80028c4 <HAL_RCCEx_PeriphCLKConfig+0x448>
/* check for common PLLI2S Parameters */
assert_param(IS_RCC_PLLI2SN_VALUE(PeriphClkInit->PLLI2S.PLLI2SN));
/*----------------- In Case of PLLI2S is selected as source clock for I2S -------------------*/
if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_I2S) == RCC_PERIPHCLK_I2S) && (PeriphClkInit->I2sClockSelection == RCC_I2SCLKSOURCE_PLLI2S)))
80028e8: 687b ldr r3, [r7, #4]
80028ea: 681b ldr r3, [r3, #0]
80028ec: f003 0301 and.w r3, r3, #1
80028f0: 2b00 cmp r3, #0
80028f2: d017 beq.n 8002924 <HAL_RCCEx_PeriphCLKConfig+0x4a8>
80028f4: 687b ldr r3, [r7, #4]
80028f6: 6adb ldr r3, [r3, #44] @ 0x2c
80028f8: 2b00 cmp r3, #0
80028fa: d113 bne.n 8002924 <HAL_RCCEx_PeriphCLKConfig+0x4a8>
{
/* check for Parameters */
assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR));
/* Read PLLI2SQ value from PLLI2SCFGR register (this value is not needed for I2S configuration) */
tmpreg0 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SQ) >> RCC_PLLI2SCFGR_PLLI2SQ_Pos);
80028fc: 4b83 ldr r3, [pc, #524] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
80028fe: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
8002902: 0e1b lsrs r3, r3, #24
8002904: f003 030f and.w r3, r3, #15
8002908: 613b str r3, [r7, #16]
/* Configure the PLLI2S division factors */
/* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) x (PLLI2SN/PLLM) */
/* I2SCLK = f(PLLI2S clock output) = f(VCO clock) / PLLI2SR */
__HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , tmpreg0, PeriphClkInit->PLLI2S.PLLI2SR);
800290a: 687b ldr r3, [r7, #4]
800290c: 685b ldr r3, [r3, #4]
800290e: 019a lsls r2, r3, #6
8002910: 693b ldr r3, [r7, #16]
8002912: 061b lsls r3, r3, #24
8002914: 431a orrs r2, r3
8002916: 687b ldr r3, [r7, #4]
8002918: 689b ldr r3, [r3, #8]
800291a: 071b lsls r3, r3, #28
800291c: 497b ldr r1, [pc, #492] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
800291e: 4313 orrs r3, r2
8002920: f8c1 3084 str.w r3, [r1, #132] @ 0x84
}
/*----------------- In Case of PLLI2S is selected as source clock for SAI -------------------*/
if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)) ||
8002924: 687b ldr r3, [r7, #4]
8002926: 681b ldr r3, [r3, #0]
8002928: f403 2300 and.w r3, r3, #524288 @ 0x80000
800292c: 2b00 cmp r3, #0
800292e: d004 beq.n 800293a <HAL_RCCEx_PeriphCLKConfig+0x4be>
8002930: 687b ldr r3, [r7, #4]
8002932: 6b5b ldr r3, [r3, #52] @ 0x34
8002934: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
8002938: d00a beq.n 8002950 <HAL_RCCEx_PeriphCLKConfig+0x4d4>
((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S)))
800293a: 687b ldr r3, [r7, #4]
800293c: 681b ldr r3, [r3, #0]
800293e: f403 1380 and.w r3, r3, #1048576 @ 0x100000
if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLI2S)) ||
8002942: 2b00 cmp r3, #0
8002944: d024 beq.n 8002990 <HAL_RCCEx_PeriphCLKConfig+0x514>
((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLI2S)))
8002946: 687b ldr r3, [r7, #4]
8002948: 6b9b ldr r3, [r3, #56] @ 0x38
800294a: f5b3 0f80 cmp.w r3, #4194304 @ 0x400000
800294e: d11f bne.n 8002990 <HAL_RCCEx_PeriphCLKConfig+0x514>
assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ));
/* Check for PLLI2S/DIVQ parameters */
assert_param(IS_RCC_PLLI2S_DIVQ_VALUE(PeriphClkInit->PLLI2SDivQ));
/* Read PLLI2SP and PLLI2SR values from PLLI2SCFGR register (this value is not needed for SAI configuration) */
tmpreg0 = ((RCC->PLLI2SCFGR & RCC_PLLI2SCFGR_PLLI2SR) >> RCC_PLLI2SCFGR_PLLI2SR_Pos);
8002950: 4b6e ldr r3, [pc, #440] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
8002952: f8d3 3084 ldr.w r3, [r3, #132] @ 0x84
8002956: 0f1b lsrs r3, r3, #28
8002958: f003 0307 and.w r3, r3, #7
800295c: 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_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN, PeriphClkInit->PLLI2S.PLLI2SQ, tmpreg0);
800295e: 687b ldr r3, [r7, #4]
8002960: 685b ldr r3, [r3, #4]
8002962: 019a lsls r2, r3, #6
8002964: 687b ldr r3, [r7, #4]
8002966: 68db ldr r3, [r3, #12]
8002968: 061b lsls r3, r3, #24
800296a: 431a orrs r2, r3
800296c: 693b ldr r3, [r7, #16]
800296e: 071b lsls r3, r3, #28
8002970: 4966 ldr r1, [pc, #408] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
8002972: 4313 orrs r3, r2
8002974: f8c1 3084 str.w r3, [r1, #132] @ 0x84
/* SAI_CLK_x = SAI_CLK(first level)/PLLI2SDIVQ */
__HAL_RCC_PLLI2S_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLI2SDivQ);
8002978: 4b64 ldr r3, [pc, #400] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
800297a: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
800297e: f023 021f bic.w r2, r3, #31
8002982: 687b ldr r3, [r7, #4]
8002984: 69db ldr r3, [r3, #28]
8002986: 3b01 subs r3, #1
8002988: 4960 ldr r1, [pc, #384] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
800298a: 4313 orrs r3, r2
800298c: f8c1 308c str.w r3, [r1, #140] @ 0x8c
}
/*----------------- In Case of PLLI2S is just selected -----------------*/
if((PeriphClkInit->PeriphClockSelection & RCC_PERIPHCLK_PLLI2S) == RCC_PERIPHCLK_PLLI2S)
8002990: 687b ldr r3, [r7, #4]
8002992: 681b ldr r3, [r3, #0]
8002994: f003 7300 and.w r3, r3, #33554432 @ 0x2000000
8002998: 2b00 cmp r3, #0
800299a: d00d beq.n 80029b8 <HAL_RCCEx_PeriphCLKConfig+0x53c>
assert_param(IS_RCC_PLLI2SR_VALUE(PeriphClkInit->PLLI2S.PLLI2SR));
assert_param(IS_RCC_PLLI2SQ_VALUE(PeriphClkInit->PLLI2S.PLLI2SQ));
/* Configure the PLLI2S division factors */
/* PLLI2S_VCO = f(VCO clock) = f(PLLI2S clock input) x (PLLI2SN/PLLI2SM) */
__HAL_RCC_PLLI2S_CONFIG(PeriphClkInit->PLLI2S.PLLI2SN , PeriphClkInit->PLLI2S.PLLI2SQ, PeriphClkInit->PLLI2S.PLLI2SR);
800299c: 687b ldr r3, [r7, #4]
800299e: 685b ldr r3, [r3, #4]
80029a0: 019a lsls r2, r3, #6
80029a2: 687b ldr r3, [r7, #4]
80029a4: 68db ldr r3, [r3, #12]
80029a6: 061b lsls r3, r3, #24
80029a8: 431a orrs r2, r3
80029aa: 687b ldr r3, [r7, #4]
80029ac: 689b ldr r3, [r3, #8]
80029ae: 071b lsls r3, r3, #28
80029b0: 4956 ldr r1, [pc, #344] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
80029b2: 4313 orrs r3, r2
80029b4: f8c1 3084 str.w r3, [r1, #132] @ 0x84
}
/* Enable the PLLI2S */
__HAL_RCC_PLLI2S_ENABLE();
80029b8: 4b54 ldr r3, [pc, #336] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
80029ba: 681b ldr r3, [r3, #0]
80029bc: 4a53 ldr r2, [pc, #332] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
80029be: f043 6380 orr.w r3, r3, #67108864 @ 0x4000000
80029c2: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
80029c4: f7fe fd68 bl 8001498 <HAL_GetTick>
80029c8: 6178 str r0, [r7, #20]
/* Wait till PLLI2S is ready */
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET)
80029ca: e008 b.n 80029de <HAL_RCCEx_PeriphCLKConfig+0x562>
{
if((HAL_GetTick() - tickstart) > PLLI2S_TIMEOUT_VALUE)
80029cc: f7fe fd64 bl 8001498 <HAL_GetTick>
80029d0: 4602 mov r2, r0
80029d2: 697b ldr r3, [r7, #20]
80029d4: 1ad3 subs r3, r2, r3
80029d6: 2b64 cmp r3, #100 @ 0x64
80029d8: d901 bls.n 80029de <HAL_RCCEx_PeriphCLKConfig+0x562>
{
/* return in case of Timeout detected */
return HAL_TIMEOUT;
80029da: 2303 movs r3, #3
80029dc: e092 b.n 8002b04 <HAL_RCCEx_PeriphCLKConfig+0x688>
while(__HAL_RCC_GET_FLAG(RCC_FLAG_PLLI2SRDY) == RESET)
80029de: 4b4b ldr r3, [pc, #300] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
80029e0: 681b ldr r3, [r3, #0]
80029e2: f003 6300 and.w r3, r3, #134217728 @ 0x8000000
80029e6: 2b00 cmp r3, #0
80029e8: d0f0 beq.n 80029cc <HAL_RCCEx_PeriphCLKConfig+0x550>
}
}
/*-------------------------------------- PLLSAI Configuration ---------------------------------*/
/* PLLSAI is configured when a peripheral will use it as source clock : SAI1, SAI2, LTDC or CK48 */
if(pllsaiused == 1)
80029ea: 69bb ldr r3, [r7, #24]
80029ec: 2b01 cmp r3, #1
80029ee: f040 8088 bne.w 8002b02 <HAL_RCCEx_PeriphCLKConfig+0x686>
{
/* Disable PLLSAI Clock */
__HAL_RCC_PLLSAI_DISABLE();
80029f2: 4b46 ldr r3, [pc, #280] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
80029f4: 681b ldr r3, [r3, #0]
80029f6: 4a45 ldr r2, [pc, #276] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
80029f8: f023 5380 bic.w r3, r3, #268435456 @ 0x10000000
80029fc: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
80029fe: f7fe fd4b bl 8001498 <HAL_GetTick>
8002a02: 6178 str r0, [r7, #20]
/* Wait till PLLSAI is disabled */
while(__HAL_RCC_PLLSAI_GET_FLAG() != RESET)
8002a04: e008 b.n 8002a18 <HAL_RCCEx_PeriphCLKConfig+0x59c>
{
if((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE)
8002a06: f7fe fd47 bl 8001498 <HAL_GetTick>
8002a0a: 4602 mov r2, r0
8002a0c: 697b ldr r3, [r7, #20]
8002a0e: 1ad3 subs r3, r2, r3
8002a10: 2b64 cmp r3, #100 @ 0x64
8002a12: d901 bls.n 8002a18 <HAL_RCCEx_PeriphCLKConfig+0x59c>
{
/* return in case of Timeout detected */
return HAL_TIMEOUT;
8002a14: 2303 movs r3, #3
8002a16: e075 b.n 8002b04 <HAL_RCCEx_PeriphCLKConfig+0x688>
while(__HAL_RCC_PLLSAI_GET_FLAG() != RESET)
8002a18: 4b3c ldr r3, [pc, #240] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
8002a1a: 681b ldr r3, [r3, #0]
8002a1c: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
8002a20: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
8002a24: d0ef beq.n 8002a06 <HAL_RCCEx_PeriphCLKConfig+0x58a>
/* Check the PLLSAI division factors */
assert_param(IS_RCC_PLLSAIN_VALUE(PeriphClkInit->PLLSAI.PLLSAIN));
/*----------------- In Case of PLLSAI is selected as source clock for SAI -------------------*/
if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)) ||\
8002a26: 687b ldr r3, [r7, #4]
8002a28: 681b ldr r3, [r3, #0]
8002a2a: f403 2300 and.w r3, r3, #524288 @ 0x80000
8002a2e: 2b00 cmp r3, #0
8002a30: d003 beq.n 8002a3a <HAL_RCCEx_PeriphCLKConfig+0x5be>
8002a32: 687b ldr r3, [r7, #4]
8002a34: 6b5b ldr r3, [r3, #52] @ 0x34
8002a36: 2b00 cmp r3, #0
8002a38: d009 beq.n 8002a4e <HAL_RCCEx_PeriphCLKConfig+0x5d2>
((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI)))
8002a3a: 687b ldr r3, [r7, #4]
8002a3c: 681b ldr r3, [r3, #0]
8002a3e: f403 1380 and.w r3, r3, #1048576 @ 0x100000
if(((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI1) == RCC_PERIPHCLK_SAI1) && (PeriphClkInit->Sai1ClockSelection == RCC_SAI1CLKSOURCE_PLLSAI)) ||\
8002a42: 2b00 cmp r3, #0
8002a44: d024 beq.n 8002a90 <HAL_RCCEx_PeriphCLKConfig+0x614>
((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_SAI2) == RCC_PERIPHCLK_SAI2) && (PeriphClkInit->Sai2ClockSelection == RCC_SAI2CLKSOURCE_PLLSAI)))
8002a46: 687b ldr r3, [r7, #4]
8002a48: 6b9b ldr r3, [r3, #56] @ 0x38
8002a4a: 2b00 cmp r3, #0
8002a4c: d120 bne.n 8002a90 <HAL_RCCEx_PeriphCLKConfig+0x614>
assert_param(IS_RCC_PLLSAIQ_VALUE(PeriphClkInit->PLLSAI.PLLSAIQ));
/* check for PLLSAI/DIVQ Parameter */
assert_param(IS_RCC_PLLSAI_DIVQ_VALUE(PeriphClkInit->PLLSAIDivQ));
/* Read PLLSAIP value from PLLSAICFGR register (this value is not needed for SAI configuration) */
tmpreg0 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIP) >> RCC_PLLSAICFGR_PLLSAIP_Pos);
8002a4e: 4b2f ldr r3, [pc, #188] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
8002a50: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
8002a54: 0c1b lsrs r3, r3, #16
8002a56: f003 0303 and.w r3, r3, #3
8002a5a: 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 , tmpreg0, PeriphClkInit->PLLSAI.PLLSAIQ);
8002a5c: 687b ldr r3, [r7, #4]
8002a5e: 691b ldr r3, [r3, #16]
8002a60: 019a lsls r2, r3, #6
8002a62: 693b ldr r3, [r7, #16]
8002a64: 041b lsls r3, r3, #16
8002a66: 431a orrs r2, r3
8002a68: 687b ldr r3, [r7, #4]
8002a6a: 695b ldr r3, [r3, #20]
8002a6c: 061b lsls r3, r3, #24
8002a6e: 4927 ldr r1, [pc, #156] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
8002a70: 4313 orrs r3, r2
8002a72: f8c1 3088 str.w r3, [r1, #136] @ 0x88
/* SAI_CLK_x = SAI_CLK(first level)/PLLSAIDIVQ */
__HAL_RCC_PLLSAI_PLLSAICLKDIVQ_CONFIG(PeriphClkInit->PLLSAIDivQ);
8002a76: 4b25 ldr r3, [pc, #148] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
8002a78: f8d3 308c ldr.w r3, [r3, #140] @ 0x8c
8002a7c: f423 52f8 bic.w r2, r3, #7936 @ 0x1f00
8002a80: 687b ldr r3, [r7, #4]
8002a82: 6a1b ldr r3, [r3, #32]
8002a84: 3b01 subs r3, #1
8002a86: 021b lsls r3, r3, #8
8002a88: 4920 ldr r1, [pc, #128] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
8002a8a: 4313 orrs r3, r2
8002a8c: f8c1 308c str.w r3, [r1, #140] @ 0x8c
}
/*----------------- In Case of PLLSAI is selected as source clock for CLK48 -------------------*/
/* In Case of PLLI2S is selected as source clock for CK48 */
if((((PeriphClkInit->PeriphClockSelection) & RCC_PERIPHCLK_CLK48) == RCC_PERIPHCLK_CLK48) && (PeriphClkInit->Clk48ClockSelection == RCC_CLK48SOURCE_PLLSAIP))
8002a90: 687b ldr r3, [r7, #4]
8002a92: 681b ldr r3, [r3, #0]
8002a94: f403 1300 and.w r3, r3, #2097152 @ 0x200000
8002a98: 2b00 cmp r3, #0
8002a9a: d018 beq.n 8002ace <HAL_RCCEx_PeriphCLKConfig+0x652>
8002a9c: 687b ldr r3, [r7, #4]
8002a9e: 6f5b ldr r3, [r3, #116] @ 0x74
8002aa0: f1b3 6f00 cmp.w r3, #134217728 @ 0x8000000
8002aa4: d113 bne.n 8002ace <HAL_RCCEx_PeriphCLKConfig+0x652>
{
/* check for Parameters */
assert_param(IS_RCC_PLLSAIP_VALUE(PeriphClkInit->PLLSAI.PLLSAIP));
/* Read PLLSAIQ and PLLSAIR value from PLLSAICFGR register (this value is not needed for CK48 configuration) */
tmpreg0 = ((RCC->PLLSAICFGR & RCC_PLLSAICFGR_PLLSAIQ) >> RCC_PLLSAICFGR_PLLSAIQ_Pos);
8002aa6: 4b19 ldr r3, [pc, #100] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
8002aa8: f8d3 3088 ldr.w r3, [r3, #136] @ 0x88
8002aac: 0e1b lsrs r3, r3, #24
8002aae: f003 030f and.w r3, r3, #15
8002ab2: 613b str r3, [r7, #16]
/* Configure the PLLSAI division factors */
/* PLLSAI_VCO = f(VCO clock) = f(PLLSAI clock input) x (PLLI2SN/PLLM) */
/* 48CLK = f(PLLSAI clock output) = f(VCO clock) / PLLSAIP */
__HAL_RCC_PLLSAI_CONFIG(PeriphClkInit->PLLSAI.PLLSAIN , PeriphClkInit->PLLSAI.PLLSAIP, tmpreg0);
8002ab4: 687b ldr r3, [r7, #4]
8002ab6: 691b ldr r3, [r3, #16]
8002ab8: 019a lsls r2, r3, #6
8002aba: 687b ldr r3, [r7, #4]
8002abc: 699b ldr r3, [r3, #24]
8002abe: 041b lsls r3, r3, #16
8002ac0: 431a orrs r2, r3
8002ac2: 693b ldr r3, [r7, #16]
8002ac4: 061b lsls r3, r3, #24
8002ac6: 4911 ldr r1, [pc, #68] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
8002ac8: 4313 orrs r3, r2
8002aca: f8c1 3088 str.w r3, [r1, #136] @ 0x88
}
/* Enable PLLSAI Clock */
__HAL_RCC_PLLSAI_ENABLE();
8002ace: 4b0f ldr r3, [pc, #60] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
8002ad0: 681b ldr r3, [r3, #0]
8002ad2: 4a0e ldr r2, [pc, #56] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
8002ad4: f043 5380 orr.w r3, r3, #268435456 @ 0x10000000
8002ad8: 6013 str r3, [r2, #0]
/* Get Start Tick*/
tickstart = HAL_GetTick();
8002ada: f7fe fcdd bl 8001498 <HAL_GetTick>
8002ade: 6178 str r0, [r7, #20]
/* Wait till PLLSAI is ready */
while(__HAL_RCC_PLLSAI_GET_FLAG() == RESET)
8002ae0: e008 b.n 8002af4 <HAL_RCCEx_PeriphCLKConfig+0x678>
{
if((HAL_GetTick() - tickstart) > PLLSAI_TIMEOUT_VALUE)
8002ae2: f7fe fcd9 bl 8001498 <HAL_GetTick>
8002ae6: 4602 mov r2, r0
8002ae8: 697b ldr r3, [r7, #20]
8002aea: 1ad3 subs r3, r2, r3
8002aec: 2b64 cmp r3, #100 @ 0x64
8002aee: d901 bls.n 8002af4 <HAL_RCCEx_PeriphCLKConfig+0x678>
{
/* return in case of Timeout detected */
return HAL_TIMEOUT;
8002af0: 2303 movs r3, #3
8002af2: e007 b.n 8002b04 <HAL_RCCEx_PeriphCLKConfig+0x688>
while(__HAL_RCC_PLLSAI_GET_FLAG() == RESET)
8002af4: 4b05 ldr r3, [pc, #20] @ (8002b0c <HAL_RCCEx_PeriphCLKConfig+0x690>)
8002af6: 681b ldr r3, [r3, #0]
8002af8: f003 5300 and.w r3, r3, #536870912 @ 0x20000000
8002afc: f1b3 5f00 cmp.w r3, #536870912 @ 0x20000000
8002b00: d1ef bne.n 8002ae2 <HAL_RCCEx_PeriphCLKConfig+0x666>
}
}
}
return HAL_OK;
8002b02: 2300 movs r3, #0
}
8002b04: 4618 mov r0, r3
8002b06: 3720 adds r7, #32
8002b08: 46bd mov sp, r7
8002b0a: bd80 pop {r7, pc}
8002b0c: 40023800 .word 0x40023800
08002b10 <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)
{
8002b10: b580 push {r7, lr}
8002b12: b082 sub sp, #8
8002b14: af00 add r7, sp, #0
8002b16: 6078 str r0, [r7, #4]
/* Check the TIM handle allocation */
if (htim == NULL)
8002b18: 687b ldr r3, [r7, #4]
8002b1a: 2b00 cmp r3, #0
8002b1c: d101 bne.n 8002b22 <HAL_TIM_Base_Init+0x12>
{
return HAL_ERROR;
8002b1e: 2301 movs r3, #1
8002b20: e049 b.n 8002bb6 <HAL_TIM_Base_Init+0xa6>
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)
8002b22: 687b ldr r3, [r7, #4]
8002b24: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
8002b28: b2db uxtb r3, r3
8002b2a: 2b00 cmp r3, #0
8002b2c: d106 bne.n 8002b3c <HAL_TIM_Base_Init+0x2c>
{
/* Allocate lock resource and initialize it */
htim->Lock = HAL_UNLOCKED;
8002b2e: 687b ldr r3, [r7, #4]
8002b30: 2200 movs r2, #0
8002b32: 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);
8002b36: 6878 ldr r0, [r7, #4]
8002b38: f000 f841 bl 8002bbe <HAL_TIM_Base_MspInit>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
/* Set the TIM state */
htim->State = HAL_TIM_STATE_BUSY;
8002b3c: 687b ldr r3, [r7, #4]
8002b3e: 2202 movs r2, #2
8002b40: f883 203d strb.w r2, [r3, #61] @ 0x3d
/* Set the Time Base configuration */
TIM_Base_SetConfig(htim->Instance, &htim->Init);
8002b44: 687b ldr r3, [r7, #4]
8002b46: 681a ldr r2, [r3, #0]
8002b48: 687b ldr r3, [r7, #4]
8002b4a: 3304 adds r3, #4
8002b4c: 4619 mov r1, r3
8002b4e: 4610 mov r0, r2
8002b50: f000 f9e8 bl 8002f24 <TIM_Base_SetConfig>
/* Initialize the DMA burst operation state */
htim->DMABurstState = HAL_DMA_BURST_STATE_READY;
8002b54: 687b ldr r3, [r7, #4]
8002b56: 2201 movs r2, #1
8002b58: f883 2048 strb.w r2, [r3, #72] @ 0x48
/* Initialize the TIM channels state */
TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
8002b5c: 687b ldr r3, [r7, #4]
8002b5e: 2201 movs r2, #1
8002b60: f883 203e strb.w r2, [r3, #62] @ 0x3e
8002b64: 687b ldr r3, [r7, #4]
8002b66: 2201 movs r2, #1
8002b68: f883 203f strb.w r2, [r3, #63] @ 0x3f
8002b6c: 687b ldr r3, [r7, #4]
8002b6e: 2201 movs r2, #1
8002b70: f883 2040 strb.w r2, [r3, #64] @ 0x40
8002b74: 687b ldr r3, [r7, #4]
8002b76: 2201 movs r2, #1
8002b78: f883 2041 strb.w r2, [r3, #65] @ 0x41
8002b7c: 687b ldr r3, [r7, #4]
8002b7e: 2201 movs r2, #1
8002b80: f883 2042 strb.w r2, [r3, #66] @ 0x42
8002b84: 687b ldr r3, [r7, #4]
8002b86: 2201 movs r2, #1
8002b88: f883 2043 strb.w r2, [r3, #67] @ 0x43
TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY);
8002b8c: 687b ldr r3, [r7, #4]
8002b8e: 2201 movs r2, #1
8002b90: f883 2044 strb.w r2, [r3, #68] @ 0x44
8002b94: 687b ldr r3, [r7, #4]
8002b96: 2201 movs r2, #1
8002b98: f883 2045 strb.w r2, [r3, #69] @ 0x45
8002b9c: 687b ldr r3, [r7, #4]
8002b9e: 2201 movs r2, #1
8002ba0: f883 2046 strb.w r2, [r3, #70] @ 0x46
8002ba4: 687b ldr r3, [r7, #4]
8002ba6: 2201 movs r2, #1
8002ba8: f883 2047 strb.w r2, [r3, #71] @ 0x47
/* Initialize the TIM state*/
htim->State = HAL_TIM_STATE_READY;
8002bac: 687b ldr r3, [r7, #4]
8002bae: 2201 movs r2, #1
8002bb0: f883 203d strb.w r2, [r3, #61] @ 0x3d
return HAL_OK;
8002bb4: 2300 movs r3, #0
}
8002bb6: 4618 mov r0, r3
8002bb8: 3708 adds r7, #8
8002bba: 46bd mov sp, r7
8002bbc: bd80 pop {r7, pc}
08002bbe <HAL_TIM_Base_MspInit>:
* @brief Initializes the TIM Base MSP.
* @param htim TIM Base handle
* @retval None
*/
__weak void HAL_TIM_Base_MspInit(TIM_HandleTypeDef *htim)
{
8002bbe: b480 push {r7}
8002bc0: b083 sub sp, #12
8002bc2: af00 add r7, sp, #0
8002bc4: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function should not be modified, when the callback is needed,
the HAL_TIM_Base_MspInit could be implemented in the user file
*/
}
8002bc6: bf00 nop
8002bc8: 370c adds r7, #12
8002bca: 46bd mov sp, r7
8002bcc: f85d 7b04 ldr.w r7, [sp], #4
8002bd0: 4770 bx lr
...
08002bd4 <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)
{
8002bd4: b480 push {r7}
8002bd6: b085 sub sp, #20
8002bd8: af00 add r7, sp, #0
8002bda: 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)
8002bdc: 687b ldr r3, [r7, #4]
8002bde: f893 303d ldrb.w r3, [r3, #61] @ 0x3d
8002be2: b2db uxtb r3, r3
8002be4: 2b01 cmp r3, #1
8002be6: d001 beq.n 8002bec <HAL_TIM_Base_Start_IT+0x18>
{
return HAL_ERROR;
8002be8: 2301 movs r3, #1
8002bea: e054 b.n 8002c96 <HAL_TIM_Base_Start_IT+0xc2>
}
/* Set the TIM state */
htim->State = HAL_TIM_STATE_BUSY;
8002bec: 687b ldr r3, [r7, #4]
8002bee: 2202 movs r2, #2
8002bf0: f883 203d strb.w r2, [r3, #61] @ 0x3d
/* Enable the TIM Update interrupt */
__HAL_TIM_ENABLE_IT(htim, TIM_IT_UPDATE);
8002bf4: 687b ldr r3, [r7, #4]
8002bf6: 681b ldr r3, [r3, #0]
8002bf8: 68da ldr r2, [r3, #12]
8002bfa: 687b ldr r3, [r7, #4]
8002bfc: 681b ldr r3, [r3, #0]
8002bfe: f042 0201 orr.w r2, r2, #1
8002c02: 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))
8002c04: 687b ldr r3, [r7, #4]
8002c06: 681b ldr r3, [r3, #0]
8002c08: 4a26 ldr r2, [pc, #152] @ (8002ca4 <HAL_TIM_Base_Start_IT+0xd0>)
8002c0a: 4293 cmp r3, r2
8002c0c: d022 beq.n 8002c54 <HAL_TIM_Base_Start_IT+0x80>
8002c0e: 687b ldr r3, [r7, #4]
8002c10: 681b ldr r3, [r3, #0]
8002c12: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
8002c16: d01d beq.n 8002c54 <HAL_TIM_Base_Start_IT+0x80>
8002c18: 687b ldr r3, [r7, #4]
8002c1a: 681b ldr r3, [r3, #0]
8002c1c: 4a22 ldr r2, [pc, #136] @ (8002ca8 <HAL_TIM_Base_Start_IT+0xd4>)
8002c1e: 4293 cmp r3, r2
8002c20: d018 beq.n 8002c54 <HAL_TIM_Base_Start_IT+0x80>
8002c22: 687b ldr r3, [r7, #4]
8002c24: 681b ldr r3, [r3, #0]
8002c26: 4a21 ldr r2, [pc, #132] @ (8002cac <HAL_TIM_Base_Start_IT+0xd8>)
8002c28: 4293 cmp r3, r2
8002c2a: d013 beq.n 8002c54 <HAL_TIM_Base_Start_IT+0x80>
8002c2c: 687b ldr r3, [r7, #4]
8002c2e: 681b ldr r3, [r3, #0]
8002c30: 4a1f ldr r2, [pc, #124] @ (8002cb0 <HAL_TIM_Base_Start_IT+0xdc>)
8002c32: 4293 cmp r3, r2
8002c34: d00e beq.n 8002c54 <HAL_TIM_Base_Start_IT+0x80>
8002c36: 687b ldr r3, [r7, #4]
8002c38: 681b ldr r3, [r3, #0]
8002c3a: 4a1e ldr r2, [pc, #120] @ (8002cb4 <HAL_TIM_Base_Start_IT+0xe0>)
8002c3c: 4293 cmp r3, r2
8002c3e: d009 beq.n 8002c54 <HAL_TIM_Base_Start_IT+0x80>
8002c40: 687b ldr r3, [r7, #4]
8002c42: 681b ldr r3, [r3, #0]
8002c44: 4a1c ldr r2, [pc, #112] @ (8002cb8 <HAL_TIM_Base_Start_IT+0xe4>)
8002c46: 4293 cmp r3, r2
8002c48: d004 beq.n 8002c54 <HAL_TIM_Base_Start_IT+0x80>
8002c4a: 687b ldr r3, [r7, #4]
8002c4c: 681b ldr r3, [r3, #0]
8002c4e: 4a1b ldr r2, [pc, #108] @ (8002cbc <HAL_TIM_Base_Start_IT+0xe8>)
8002c50: 4293 cmp r3, r2
8002c52: d115 bne.n 8002c80 <HAL_TIM_Base_Start_IT+0xac>
{
tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS;
8002c54: 687b ldr r3, [r7, #4]
8002c56: 681b ldr r3, [r3, #0]
8002c58: 689a ldr r2, [r3, #8]
8002c5a: 4b19 ldr r3, [pc, #100] @ (8002cc0 <HAL_TIM_Base_Start_IT+0xec>)
8002c5c: 4013 ands r3, r2
8002c5e: 60fb str r3, [r7, #12]
if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
8002c60: 68fb ldr r3, [r7, #12]
8002c62: 2b06 cmp r3, #6
8002c64: d015 beq.n 8002c92 <HAL_TIM_Base_Start_IT+0xbe>
8002c66: 68fb ldr r3, [r7, #12]
8002c68: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
8002c6c: d011 beq.n 8002c92 <HAL_TIM_Base_Start_IT+0xbe>
{
__HAL_TIM_ENABLE(htim);
8002c6e: 687b ldr r3, [r7, #4]
8002c70: 681b ldr r3, [r3, #0]
8002c72: 681a ldr r2, [r3, #0]
8002c74: 687b ldr r3, [r7, #4]
8002c76: 681b ldr r3, [r3, #0]
8002c78: f042 0201 orr.w r2, r2, #1
8002c7c: 601a str r2, [r3, #0]
if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
8002c7e: e008 b.n 8002c92 <HAL_TIM_Base_Start_IT+0xbe>
}
}
else
{
__HAL_TIM_ENABLE(htim);
8002c80: 687b ldr r3, [r7, #4]
8002c82: 681b ldr r3, [r3, #0]
8002c84: 681a ldr r2, [r3, #0]
8002c86: 687b ldr r3, [r7, #4]
8002c88: 681b ldr r3, [r3, #0]
8002c8a: f042 0201 orr.w r2, r2, #1
8002c8e: 601a str r2, [r3, #0]
8002c90: e000 b.n 8002c94 <HAL_TIM_Base_Start_IT+0xc0>
if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr))
8002c92: bf00 nop
}
/* Return function status */
return HAL_OK;
8002c94: 2300 movs r3, #0
}
8002c96: 4618 mov r0, r3
8002c98: 3714 adds r7, #20
8002c9a: 46bd mov sp, r7
8002c9c: f85d 7b04 ldr.w r7, [sp], #4
8002ca0: 4770 bx lr
8002ca2: bf00 nop
8002ca4: 40010000 .word 0x40010000
8002ca8: 40000400 .word 0x40000400
8002cac: 40000800 .word 0x40000800
8002cb0: 40000c00 .word 0x40000c00
8002cb4: 40010400 .word 0x40010400
8002cb8: 40014000 .word 0x40014000
8002cbc: 40001800 .word 0x40001800
8002cc0: 00010007 .word 0x00010007
08002cc4 <HAL_TIM_IRQHandler>:
* @brief This function handles TIM interrupts requests.
* @param htim TIM handle
* @retval None
*/
void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim)
{
8002cc4: b580 push {r7, lr}
8002cc6: b084 sub sp, #16
8002cc8: af00 add r7, sp, #0
8002cca: 6078 str r0, [r7, #4]
uint32_t itsource = htim->Instance->DIER;
8002ccc: 687b ldr r3, [r7, #4]
8002cce: 681b ldr r3, [r3, #0]
8002cd0: 68db ldr r3, [r3, #12]
8002cd2: 60fb str r3, [r7, #12]
uint32_t itflag = htim->Instance->SR;
8002cd4: 687b ldr r3, [r7, #4]
8002cd6: 681b ldr r3, [r3, #0]
8002cd8: 691b ldr r3, [r3, #16]
8002cda: 60bb str r3, [r7, #8]
/* Capture compare 1 event */
if ((itflag & (TIM_FLAG_CC1)) == (TIM_FLAG_CC1))
8002cdc: 68bb ldr r3, [r7, #8]
8002cde: f003 0302 and.w r3, r3, #2
8002ce2: 2b00 cmp r3, #0
8002ce4: d020 beq.n 8002d28 <HAL_TIM_IRQHandler+0x64>
{
if ((itsource & (TIM_IT_CC1)) == (TIM_IT_CC1))
8002ce6: 68fb ldr r3, [r7, #12]
8002ce8: f003 0302 and.w r3, r3, #2
8002cec: 2b00 cmp r3, #0
8002cee: d01b beq.n 8002d28 <HAL_TIM_IRQHandler+0x64>
{
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC1);
8002cf0: 687b ldr r3, [r7, #4]
8002cf2: 681b ldr r3, [r3, #0]
8002cf4: f06f 0202 mvn.w r2, #2
8002cf8: 611a str r2, [r3, #16]
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1;
8002cfa: 687b ldr r3, [r7, #4]
8002cfc: 2201 movs r2, #1
8002cfe: 771a strb r2, [r3, #28]
/* Input capture event */
if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U)
8002d00: 687b ldr r3, [r7, #4]
8002d02: 681b ldr r3, [r3, #0]
8002d04: 699b ldr r3, [r3, #24]
8002d06: f003 0303 and.w r3, r3, #3
8002d0a: 2b00 cmp r3, #0
8002d0c: d003 beq.n 8002d16 <HAL_TIM_IRQHandler+0x52>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->IC_CaptureCallback(htim);
#else
HAL_TIM_IC_CaptureCallback(htim);
8002d0e: 6878 ldr r0, [r7, #4]
8002d10: f000 f8e9 bl 8002ee6 <HAL_TIM_IC_CaptureCallback>
8002d14: e005 b.n 8002d22 <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);
8002d16: 6878 ldr r0, [r7, #4]
8002d18: f000 f8db bl 8002ed2 <HAL_TIM_OC_DelayElapsedCallback>
HAL_TIM_PWM_PulseFinishedCallback(htim);
8002d1c: 6878 ldr r0, [r7, #4]
8002d1e: f000 f8ec bl 8002efa <HAL_TIM_PWM_PulseFinishedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
8002d22: 687b ldr r3, [r7, #4]
8002d24: 2200 movs r2, #0
8002d26: 771a strb r2, [r3, #28]
}
}
}
/* Capture compare 2 event */
if ((itflag & (TIM_FLAG_CC2)) == (TIM_FLAG_CC2))
8002d28: 68bb ldr r3, [r7, #8]
8002d2a: f003 0304 and.w r3, r3, #4
8002d2e: 2b00 cmp r3, #0
8002d30: d020 beq.n 8002d74 <HAL_TIM_IRQHandler+0xb0>
{
if ((itsource & (TIM_IT_CC2)) == (TIM_IT_CC2))
8002d32: 68fb ldr r3, [r7, #12]
8002d34: f003 0304 and.w r3, r3, #4
8002d38: 2b00 cmp r3, #0
8002d3a: d01b beq.n 8002d74 <HAL_TIM_IRQHandler+0xb0>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC2);
8002d3c: 687b ldr r3, [r7, #4]
8002d3e: 681b ldr r3, [r3, #0]
8002d40: f06f 0204 mvn.w r2, #4
8002d44: 611a str r2, [r3, #16]
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2;
8002d46: 687b ldr r3, [r7, #4]
8002d48: 2202 movs r2, #2
8002d4a: 771a strb r2, [r3, #28]
/* Input capture event */
if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U)
8002d4c: 687b ldr r3, [r7, #4]
8002d4e: 681b ldr r3, [r3, #0]
8002d50: 699b ldr r3, [r3, #24]
8002d52: f403 7340 and.w r3, r3, #768 @ 0x300
8002d56: 2b00 cmp r3, #0
8002d58: d003 beq.n 8002d62 <HAL_TIM_IRQHandler+0x9e>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->IC_CaptureCallback(htim);
#else
HAL_TIM_IC_CaptureCallback(htim);
8002d5a: 6878 ldr r0, [r7, #4]
8002d5c: f000 f8c3 bl 8002ee6 <HAL_TIM_IC_CaptureCallback>
8002d60: e005 b.n 8002d6e <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);
8002d62: 6878 ldr r0, [r7, #4]
8002d64: f000 f8b5 bl 8002ed2 <HAL_TIM_OC_DelayElapsedCallback>
HAL_TIM_PWM_PulseFinishedCallback(htim);
8002d68: 6878 ldr r0, [r7, #4]
8002d6a: f000 f8c6 bl 8002efa <HAL_TIM_PWM_PulseFinishedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
8002d6e: 687b ldr r3, [r7, #4]
8002d70: 2200 movs r2, #0
8002d72: 771a strb r2, [r3, #28]
}
}
/* Capture compare 3 event */
if ((itflag & (TIM_FLAG_CC3)) == (TIM_FLAG_CC3))
8002d74: 68bb ldr r3, [r7, #8]
8002d76: f003 0308 and.w r3, r3, #8
8002d7a: 2b00 cmp r3, #0
8002d7c: d020 beq.n 8002dc0 <HAL_TIM_IRQHandler+0xfc>
{
if ((itsource & (TIM_IT_CC3)) == (TIM_IT_CC3))
8002d7e: 68fb ldr r3, [r7, #12]
8002d80: f003 0308 and.w r3, r3, #8
8002d84: 2b00 cmp r3, #0
8002d86: d01b beq.n 8002dc0 <HAL_TIM_IRQHandler+0xfc>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC3);
8002d88: 687b ldr r3, [r7, #4]
8002d8a: 681b ldr r3, [r3, #0]
8002d8c: f06f 0208 mvn.w r2, #8
8002d90: 611a str r2, [r3, #16]
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3;
8002d92: 687b ldr r3, [r7, #4]
8002d94: 2204 movs r2, #4
8002d96: 771a strb r2, [r3, #28]
/* Input capture event */
if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U)
8002d98: 687b ldr r3, [r7, #4]
8002d9a: 681b ldr r3, [r3, #0]
8002d9c: 69db ldr r3, [r3, #28]
8002d9e: f003 0303 and.w r3, r3, #3
8002da2: 2b00 cmp r3, #0
8002da4: d003 beq.n 8002dae <HAL_TIM_IRQHandler+0xea>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->IC_CaptureCallback(htim);
#else
HAL_TIM_IC_CaptureCallback(htim);
8002da6: 6878 ldr r0, [r7, #4]
8002da8: f000 f89d bl 8002ee6 <HAL_TIM_IC_CaptureCallback>
8002dac: e005 b.n 8002dba <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);
8002dae: 6878 ldr r0, [r7, #4]
8002db0: f000 f88f bl 8002ed2 <HAL_TIM_OC_DelayElapsedCallback>
HAL_TIM_PWM_PulseFinishedCallback(htim);
8002db4: 6878 ldr r0, [r7, #4]
8002db6: f000 f8a0 bl 8002efa <HAL_TIM_PWM_PulseFinishedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
8002dba: 687b ldr r3, [r7, #4]
8002dbc: 2200 movs r2, #0
8002dbe: 771a strb r2, [r3, #28]
}
}
/* Capture compare 4 event */
if ((itflag & (TIM_FLAG_CC4)) == (TIM_FLAG_CC4))
8002dc0: 68bb ldr r3, [r7, #8]
8002dc2: f003 0310 and.w r3, r3, #16
8002dc6: 2b00 cmp r3, #0
8002dc8: d020 beq.n 8002e0c <HAL_TIM_IRQHandler+0x148>
{
if ((itsource & (TIM_IT_CC4)) == (TIM_IT_CC4))
8002dca: 68fb ldr r3, [r7, #12]
8002dcc: f003 0310 and.w r3, r3, #16
8002dd0: 2b00 cmp r3, #0
8002dd2: d01b beq.n 8002e0c <HAL_TIM_IRQHandler+0x148>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_CC4);
8002dd4: 687b ldr r3, [r7, #4]
8002dd6: 681b ldr r3, [r3, #0]
8002dd8: f06f 0210 mvn.w r2, #16
8002ddc: 611a str r2, [r3, #16]
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4;
8002dde: 687b ldr r3, [r7, #4]
8002de0: 2208 movs r2, #8
8002de2: 771a strb r2, [r3, #28]
/* Input capture event */
if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U)
8002de4: 687b ldr r3, [r7, #4]
8002de6: 681b ldr r3, [r3, #0]
8002de8: 69db ldr r3, [r3, #28]
8002dea: f403 7340 and.w r3, r3, #768 @ 0x300
8002dee: 2b00 cmp r3, #0
8002df0: d003 beq.n 8002dfa <HAL_TIM_IRQHandler+0x136>
{
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->IC_CaptureCallback(htim);
#else
HAL_TIM_IC_CaptureCallback(htim);
8002df2: 6878 ldr r0, [r7, #4]
8002df4: f000 f877 bl 8002ee6 <HAL_TIM_IC_CaptureCallback>
8002df8: e005 b.n 8002e06 <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);
8002dfa: 6878 ldr r0, [r7, #4]
8002dfc: f000 f869 bl 8002ed2 <HAL_TIM_OC_DelayElapsedCallback>
HAL_TIM_PWM_PulseFinishedCallback(htim);
8002e00: 6878 ldr r0, [r7, #4]
8002e02: f000 f87a bl 8002efa <HAL_TIM_PWM_PulseFinishedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED;
8002e06: 687b ldr r3, [r7, #4]
8002e08: 2200 movs r2, #0
8002e0a: 771a strb r2, [r3, #28]
}
}
/* TIM Update event */
if ((itflag & (TIM_FLAG_UPDATE)) == (TIM_FLAG_UPDATE))
8002e0c: 68bb ldr r3, [r7, #8]
8002e0e: f003 0301 and.w r3, r3, #1
8002e12: 2b00 cmp r3, #0
8002e14: d00c beq.n 8002e30 <HAL_TIM_IRQHandler+0x16c>
{
if ((itsource & (TIM_IT_UPDATE)) == (TIM_IT_UPDATE))
8002e16: 68fb ldr r3, [r7, #12]
8002e18: f003 0301 and.w r3, r3, #1
8002e1c: 2b00 cmp r3, #0
8002e1e: d007 beq.n 8002e30 <HAL_TIM_IRQHandler+0x16c>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_UPDATE);
8002e20: 687b ldr r3, [r7, #4]
8002e22: 681b ldr r3, [r3, #0]
8002e24: f06f 0201 mvn.w r2, #1
8002e28: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->PeriodElapsedCallback(htim);
#else
HAL_TIM_PeriodElapsedCallback(htim);
8002e2a: 6878 ldr r0, [r7, #4]
8002e2c: f7fe f912 bl 8001054 <HAL_TIM_PeriodElapsedCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
/* TIM Break input event */
if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
8002e30: 68bb ldr r3, [r7, #8]
8002e32: f003 0380 and.w r3, r3, #128 @ 0x80
8002e36: 2b00 cmp r3, #0
8002e38: d104 bne.n 8002e44 <HAL_TIM_IRQHandler+0x180>
((itflag & (TIM_FLAG_SYSTEM_BREAK)) == (TIM_FLAG_SYSTEM_BREAK)))
8002e3a: 68bb ldr r3, [r7, #8]
8002e3c: f403 5300 and.w r3, r3, #8192 @ 0x2000
if (((itflag & (TIM_FLAG_BREAK)) == (TIM_FLAG_BREAK)) || \
8002e40: 2b00 cmp r3, #0
8002e42: d00c beq.n 8002e5e <HAL_TIM_IRQHandler+0x19a>
{
if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
8002e44: 68fb ldr r3, [r7, #12]
8002e46: f003 0380 and.w r3, r3, #128 @ 0x80
8002e4a: 2b00 cmp r3, #0
8002e4c: d007 beq.n 8002e5e <HAL_TIM_IRQHandler+0x19a>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK | TIM_FLAG_SYSTEM_BREAK);
8002e4e: 687b ldr r3, [r7, #4]
8002e50: 681b ldr r3, [r3, #0]
8002e52: f46f 5202 mvn.w r2, #8320 @ 0x2080
8002e56: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->BreakCallback(htim);
#else
HAL_TIMEx_BreakCallback(htim);
8002e58: 6878 ldr r0, [r7, #4]
8002e5a: f000 f913 bl 8003084 <HAL_TIMEx_BreakCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
/* TIM Break2 input event */
if ((itflag & (TIM_FLAG_BREAK2)) == (TIM_FLAG_BREAK2))
8002e5e: 68bb ldr r3, [r7, #8]
8002e60: f403 7380 and.w r3, r3, #256 @ 0x100
8002e64: 2b00 cmp r3, #0
8002e66: d00c beq.n 8002e82 <HAL_TIM_IRQHandler+0x1be>
{
if ((itsource & (TIM_IT_BREAK)) == (TIM_IT_BREAK))
8002e68: 68fb ldr r3, [r7, #12]
8002e6a: f003 0380 and.w r3, r3, #128 @ 0x80
8002e6e: 2b00 cmp r3, #0
8002e70: d007 beq.n 8002e82 <HAL_TIM_IRQHandler+0x1be>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_BREAK2);
8002e72: 687b ldr r3, [r7, #4]
8002e74: 681b ldr r3, [r3, #0]
8002e76: f46f 7280 mvn.w r2, #256 @ 0x100
8002e7a: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->Break2Callback(htim);
#else
HAL_TIMEx_Break2Callback(htim);
8002e7c: 6878 ldr r0, [r7, #4]
8002e7e: f000 f90b bl 8003098 <HAL_TIMEx_Break2Callback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
/* TIM Trigger detection event */
if ((itflag & (TIM_FLAG_TRIGGER)) == (TIM_FLAG_TRIGGER))
8002e82: 68bb ldr r3, [r7, #8]
8002e84: f003 0340 and.w r3, r3, #64 @ 0x40
8002e88: 2b00 cmp r3, #0
8002e8a: d00c beq.n 8002ea6 <HAL_TIM_IRQHandler+0x1e2>
{
if ((itsource & (TIM_IT_TRIGGER)) == (TIM_IT_TRIGGER))
8002e8c: 68fb ldr r3, [r7, #12]
8002e8e: f003 0340 and.w r3, r3, #64 @ 0x40
8002e92: 2b00 cmp r3, #0
8002e94: d007 beq.n 8002ea6 <HAL_TIM_IRQHandler+0x1e2>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_TRIGGER);
8002e96: 687b ldr r3, [r7, #4]
8002e98: 681b ldr r3, [r3, #0]
8002e9a: f06f 0240 mvn.w r2, #64 @ 0x40
8002e9e: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->TriggerCallback(htim);
#else
HAL_TIM_TriggerCallback(htim);
8002ea0: 6878 ldr r0, [r7, #4]
8002ea2: f000 f834 bl 8002f0e <HAL_TIM_TriggerCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
/* TIM commutation event */
if ((itflag & (TIM_FLAG_COM)) == (TIM_FLAG_COM))
8002ea6: 68bb ldr r3, [r7, #8]
8002ea8: f003 0320 and.w r3, r3, #32
8002eac: 2b00 cmp r3, #0
8002eae: d00c beq.n 8002eca <HAL_TIM_IRQHandler+0x206>
{
if ((itsource & (TIM_IT_COM)) == (TIM_IT_COM))
8002eb0: 68fb ldr r3, [r7, #12]
8002eb2: f003 0320 and.w r3, r3, #32
8002eb6: 2b00 cmp r3, #0
8002eb8: d007 beq.n 8002eca <HAL_TIM_IRQHandler+0x206>
{
__HAL_TIM_CLEAR_FLAG(htim, TIM_FLAG_COM);
8002eba: 687b ldr r3, [r7, #4]
8002ebc: 681b ldr r3, [r3, #0]
8002ebe: f06f 0220 mvn.w r2, #32
8002ec2: 611a str r2, [r3, #16]
#if (USE_HAL_TIM_REGISTER_CALLBACKS == 1)
htim->CommutationCallback(htim);
#else
HAL_TIMEx_CommutCallback(htim);
8002ec4: 6878 ldr r0, [r7, #4]
8002ec6: f000 f8d3 bl 8003070 <HAL_TIMEx_CommutCallback>
#endif /* USE_HAL_TIM_REGISTER_CALLBACKS */
}
}
}
8002eca: bf00 nop
8002ecc: 3710 adds r7, #16
8002ece: 46bd mov sp, r7
8002ed0: bd80 pop {r7, pc}
08002ed2 <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)
{
8002ed2: b480 push {r7}
8002ed4: b083 sub sp, #12
8002ed6: af00 add r7, sp, #0
8002ed8: 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
*/
}
8002eda: bf00 nop
8002edc: 370c adds r7, #12
8002ede: 46bd mov sp, r7
8002ee0: f85d 7b04 ldr.w r7, [sp], #4
8002ee4: 4770 bx lr
08002ee6 <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)
{
8002ee6: b480 push {r7}
8002ee8: b083 sub sp, #12
8002eea: af00 add r7, sp, #0
8002eec: 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
*/
}
8002eee: bf00 nop
8002ef0: 370c adds r7, #12
8002ef2: 46bd mov sp, r7
8002ef4: f85d 7b04 ldr.w r7, [sp], #4
8002ef8: 4770 bx lr
08002efa <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)
{
8002efa: b480 push {r7}
8002efc: b083 sub sp, #12
8002efe: af00 add r7, sp, #0
8002f00: 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
*/
}
8002f02: bf00 nop
8002f04: 370c adds r7, #12
8002f06: 46bd mov sp, r7
8002f08: f85d 7b04 ldr.w r7, [sp], #4
8002f0c: 4770 bx lr
08002f0e <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)
{
8002f0e: b480 push {r7}
8002f10: b083 sub sp, #12
8002f12: af00 add r7, sp, #0
8002f14: 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
*/
}
8002f16: bf00 nop
8002f18: 370c adds r7, #12
8002f1a: 46bd mov sp, r7
8002f1c: f85d 7b04 ldr.w r7, [sp], #4
8002f20: 4770 bx lr
...
08002f24 <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)
{
8002f24: b480 push {r7}
8002f26: b085 sub sp, #20
8002f28: af00 add r7, sp, #0
8002f2a: 6078 str r0, [r7, #4]
8002f2c: 6039 str r1, [r7, #0]
uint32_t tmpcr1;
tmpcr1 = TIMx->CR1;
8002f2e: 687b ldr r3, [r7, #4]
8002f30: 681b ldr r3, [r3, #0]
8002f32: 60fb str r3, [r7, #12]
/* Set TIM Time Base Unit parameters ---------------------------------------*/
if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx))
8002f34: 687b ldr r3, [r7, #4]
8002f36: 4a43 ldr r2, [pc, #268] @ (8003044 <TIM_Base_SetConfig+0x120>)
8002f38: 4293 cmp r3, r2
8002f3a: d013 beq.n 8002f64 <TIM_Base_SetConfig+0x40>
8002f3c: 687b ldr r3, [r7, #4]
8002f3e: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
8002f42: d00f beq.n 8002f64 <TIM_Base_SetConfig+0x40>
8002f44: 687b ldr r3, [r7, #4]
8002f46: 4a40 ldr r2, [pc, #256] @ (8003048 <TIM_Base_SetConfig+0x124>)
8002f48: 4293 cmp r3, r2
8002f4a: d00b beq.n 8002f64 <TIM_Base_SetConfig+0x40>
8002f4c: 687b ldr r3, [r7, #4]
8002f4e: 4a3f ldr r2, [pc, #252] @ (800304c <TIM_Base_SetConfig+0x128>)
8002f50: 4293 cmp r3, r2
8002f52: d007 beq.n 8002f64 <TIM_Base_SetConfig+0x40>
8002f54: 687b ldr r3, [r7, #4]
8002f56: 4a3e ldr r2, [pc, #248] @ (8003050 <TIM_Base_SetConfig+0x12c>)
8002f58: 4293 cmp r3, r2
8002f5a: d003 beq.n 8002f64 <TIM_Base_SetConfig+0x40>
8002f5c: 687b ldr r3, [r7, #4]
8002f5e: 4a3d ldr r2, [pc, #244] @ (8003054 <TIM_Base_SetConfig+0x130>)
8002f60: 4293 cmp r3, r2
8002f62: d108 bne.n 8002f76 <TIM_Base_SetConfig+0x52>
{
/* Select the Counter Mode */
tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS);
8002f64: 68fb ldr r3, [r7, #12]
8002f66: f023 0370 bic.w r3, r3, #112 @ 0x70
8002f6a: 60fb str r3, [r7, #12]
tmpcr1 |= Structure->CounterMode;
8002f6c: 683b ldr r3, [r7, #0]
8002f6e: 685b ldr r3, [r3, #4]
8002f70: 68fa ldr r2, [r7, #12]
8002f72: 4313 orrs r3, r2
8002f74: 60fb str r3, [r7, #12]
}
if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx))
8002f76: 687b ldr r3, [r7, #4]
8002f78: 4a32 ldr r2, [pc, #200] @ (8003044 <TIM_Base_SetConfig+0x120>)
8002f7a: 4293 cmp r3, r2
8002f7c: d02b beq.n 8002fd6 <TIM_Base_SetConfig+0xb2>
8002f7e: 687b ldr r3, [r7, #4]
8002f80: f1b3 4f80 cmp.w r3, #1073741824 @ 0x40000000
8002f84: d027 beq.n 8002fd6 <TIM_Base_SetConfig+0xb2>
8002f86: 687b ldr r3, [r7, #4]
8002f88: 4a2f ldr r2, [pc, #188] @ (8003048 <TIM_Base_SetConfig+0x124>)
8002f8a: 4293 cmp r3, r2
8002f8c: d023 beq.n 8002fd6 <TIM_Base_SetConfig+0xb2>
8002f8e: 687b ldr r3, [r7, #4]
8002f90: 4a2e ldr r2, [pc, #184] @ (800304c <TIM_Base_SetConfig+0x128>)
8002f92: 4293 cmp r3, r2
8002f94: d01f beq.n 8002fd6 <TIM_Base_SetConfig+0xb2>
8002f96: 687b ldr r3, [r7, #4]
8002f98: 4a2d ldr r2, [pc, #180] @ (8003050 <TIM_Base_SetConfig+0x12c>)
8002f9a: 4293 cmp r3, r2
8002f9c: d01b beq.n 8002fd6 <TIM_Base_SetConfig+0xb2>
8002f9e: 687b ldr r3, [r7, #4]
8002fa0: 4a2c ldr r2, [pc, #176] @ (8003054 <TIM_Base_SetConfig+0x130>)
8002fa2: 4293 cmp r3, r2
8002fa4: d017 beq.n 8002fd6 <TIM_Base_SetConfig+0xb2>
8002fa6: 687b ldr r3, [r7, #4]
8002fa8: 4a2b ldr r2, [pc, #172] @ (8003058 <TIM_Base_SetConfig+0x134>)
8002faa: 4293 cmp r3, r2
8002fac: d013 beq.n 8002fd6 <TIM_Base_SetConfig+0xb2>
8002fae: 687b ldr r3, [r7, #4]
8002fb0: 4a2a ldr r2, [pc, #168] @ (800305c <TIM_Base_SetConfig+0x138>)
8002fb2: 4293 cmp r3, r2
8002fb4: d00f beq.n 8002fd6 <TIM_Base_SetConfig+0xb2>
8002fb6: 687b ldr r3, [r7, #4]
8002fb8: 4a29 ldr r2, [pc, #164] @ (8003060 <TIM_Base_SetConfig+0x13c>)
8002fba: 4293 cmp r3, r2
8002fbc: d00b beq.n 8002fd6 <TIM_Base_SetConfig+0xb2>
8002fbe: 687b ldr r3, [r7, #4]
8002fc0: 4a28 ldr r2, [pc, #160] @ (8003064 <TIM_Base_SetConfig+0x140>)
8002fc2: 4293 cmp r3, r2
8002fc4: d007 beq.n 8002fd6 <TIM_Base_SetConfig+0xb2>
8002fc6: 687b ldr r3, [r7, #4]
8002fc8: 4a27 ldr r2, [pc, #156] @ (8003068 <TIM_Base_SetConfig+0x144>)
8002fca: 4293 cmp r3, r2
8002fcc: d003 beq.n 8002fd6 <TIM_Base_SetConfig+0xb2>
8002fce: 687b ldr r3, [r7, #4]
8002fd0: 4a26 ldr r2, [pc, #152] @ (800306c <TIM_Base_SetConfig+0x148>)
8002fd2: 4293 cmp r3, r2
8002fd4: d108 bne.n 8002fe8 <TIM_Base_SetConfig+0xc4>
{
/* Set the clock division */
tmpcr1 &= ~TIM_CR1_CKD;
8002fd6: 68fb ldr r3, [r7, #12]
8002fd8: f423 7340 bic.w r3, r3, #768 @ 0x300
8002fdc: 60fb str r3, [r7, #12]
tmpcr1 |= (uint32_t)Structure->ClockDivision;
8002fde: 683b ldr r3, [r7, #0]
8002fe0: 68db ldr r3, [r3, #12]
8002fe2: 68fa ldr r2, [r7, #12]
8002fe4: 4313 orrs r3, r2
8002fe6: 60fb str r3, [r7, #12]
}
/* Set the auto-reload preload */
MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload);
8002fe8: 68fb ldr r3, [r7, #12]
8002fea: f023 0280 bic.w r2, r3, #128 @ 0x80
8002fee: 683b ldr r3, [r7, #0]
8002ff0: 695b ldr r3, [r3, #20]
8002ff2: 4313 orrs r3, r2
8002ff4: 60fb str r3, [r7, #12]
/* Set the Autoreload value */
TIMx->ARR = (uint32_t)Structure->Period ;
8002ff6: 683b ldr r3, [r7, #0]
8002ff8: 689a ldr r2, [r3, #8]
8002ffa: 687b ldr r3, [r7, #4]
8002ffc: 62da str r2, [r3, #44] @ 0x2c
/* Set the Prescaler value */
TIMx->PSC = Structure->Prescaler;
8002ffe: 683b ldr r3, [r7, #0]
8003000: 681a ldr r2, [r3, #0]
8003002: 687b ldr r3, [r7, #4]
8003004: 629a str r2, [r3, #40] @ 0x28
if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx))
8003006: 687b ldr r3, [r7, #4]
8003008: 4a0e ldr r2, [pc, #56] @ (8003044 <TIM_Base_SetConfig+0x120>)
800300a: 4293 cmp r3, r2
800300c: d003 beq.n 8003016 <TIM_Base_SetConfig+0xf2>
800300e: 687b ldr r3, [r7, #4]
8003010: 4a10 ldr r2, [pc, #64] @ (8003054 <TIM_Base_SetConfig+0x130>)
8003012: 4293 cmp r3, r2
8003014: d103 bne.n 800301e <TIM_Base_SetConfig+0xfa>
{
/* Set the Repetition Counter value */
TIMx->RCR = Structure->RepetitionCounter;
8003016: 683b ldr r3, [r7, #0]
8003018: 691a ldr r2, [r3, #16]
800301a: 687b ldr r3, [r7, #4]
800301c: 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);
800301e: 687b ldr r3, [r7, #4]
8003020: 681b ldr r3, [r3, #0]
8003022: f043 0204 orr.w r2, r3, #4
8003026: 687b ldr r3, [r7, #4]
8003028: 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;
800302a: 687b ldr r3, [r7, #4]
800302c: 2201 movs r2, #1
800302e: 615a str r2, [r3, #20]
TIMx->CR1 = tmpcr1;
8003030: 687b ldr r3, [r7, #4]
8003032: 68fa ldr r2, [r7, #12]
8003034: 601a str r2, [r3, #0]
}
8003036: bf00 nop
8003038: 3714 adds r7, #20
800303a: 46bd mov sp, r7
800303c: f85d 7b04 ldr.w r7, [sp], #4
8003040: 4770 bx lr
8003042: bf00 nop
8003044: 40010000 .word 0x40010000
8003048: 40000400 .word 0x40000400
800304c: 40000800 .word 0x40000800
8003050: 40000c00 .word 0x40000c00
8003054: 40010400 .word 0x40010400
8003058: 40014000 .word 0x40014000
800305c: 40014400 .word 0x40014400
8003060: 40014800 .word 0x40014800
8003064: 40001800 .word 0x40001800
8003068: 40001c00 .word 0x40001c00
800306c: 40002000 .word 0x40002000
08003070 <HAL_TIMEx_CommutCallback>:
* @brief Commutation callback in non-blocking mode
* @param htim TIM handle
* @retval None
*/
__weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim)
{
8003070: b480 push {r7}
8003072: b083 sub sp, #12
8003074: af00 add r7, sp, #0
8003076: 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
*/
}
8003078: bf00 nop
800307a: 370c adds r7, #12
800307c: 46bd mov sp, r7
800307e: f85d 7b04 ldr.w r7, [sp], #4
8003082: 4770 bx lr
08003084 <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)
{
8003084: b480 push {r7}
8003086: b083 sub sp, #12
8003088: af00 add r7, sp, #0
800308a: 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
*/
}
800308c: bf00 nop
800308e: 370c adds r7, #12
8003090: 46bd mov sp, r7
8003092: f85d 7b04 ldr.w r7, [sp], #4
8003096: 4770 bx lr
08003098 <HAL_TIMEx_Break2Callback>:
* @brief Break2 detection callback in non blocking mode
* @param htim: TIM handle
* @retval None
*/
__weak void HAL_TIMEx_Break2Callback(TIM_HandleTypeDef *htim)
{
8003098: b480 push {r7}
800309a: b083 sub sp, #12
800309c: af00 add r7, sp, #0
800309e: 6078 str r0, [r7, #4]
UNUSED(htim);
/* NOTE : This function Should not be modified, when the callback is needed,
the HAL_TIMEx_Break2Callback could be implemented in the user file
*/
}
80030a0: bf00 nop
80030a2: 370c adds r7, #12
80030a4: 46bd mov sp, r7
80030a6: f85d 7b04 ldr.w r7, [sp], #4
80030aa: 4770 bx lr
080030ac <HAL_UART_Init>:
* parameters in the UART_InitTypeDef and initialize the associated handle.
* @param huart UART handle.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
{
80030ac: b580 push {r7, lr}
80030ae: b082 sub sp, #8
80030b0: af00 add r7, sp, #0
80030b2: 6078 str r0, [r7, #4]
/* Check the UART handle allocation */
if (huart == NULL)
80030b4: 687b ldr r3, [r7, #4]
80030b6: 2b00 cmp r3, #0
80030b8: d101 bne.n 80030be <HAL_UART_Init+0x12>
{
return HAL_ERROR;
80030ba: 2301 movs r3, #1
80030bc: e040 b.n 8003140 <HAL_UART_Init+0x94>
{
/* Check the parameters */
assert_param(IS_UART_INSTANCE(huart->Instance));
}
if (huart->gState == HAL_UART_STATE_RESET)
80030be: 687b ldr r3, [r7, #4]
80030c0: 6fdb ldr r3, [r3, #124] @ 0x7c
80030c2: 2b00 cmp r3, #0
80030c4: d106 bne.n 80030d4 <HAL_UART_Init+0x28>
{
/* Allocate lock resource and initialize it */
huart->Lock = HAL_UNLOCKED;
80030c6: 687b ldr r3, [r7, #4]
80030c8: 2200 movs r2, #0
80030ca: f883 2078 strb.w r2, [r3, #120] @ 0x78
/* Init the low level hardware */
huart->MspInitCallback(huart);
#else
/* Init the low level hardware : GPIO, CLOCK */
HAL_UART_MspInit(huart);
80030ce: 6878 ldr r0, [r7, #4]
80030d0: f7fe f800 bl 80010d4 <HAL_UART_MspInit>
#endif /* (USE_HAL_UART_REGISTER_CALLBACKS) */
}
huart->gState = HAL_UART_STATE_BUSY;
80030d4: 687b ldr r3, [r7, #4]
80030d6: 2224 movs r2, #36 @ 0x24
80030d8: 67da str r2, [r3, #124] @ 0x7c
__HAL_UART_DISABLE(huart);
80030da: 687b ldr r3, [r7, #4]
80030dc: 681b ldr r3, [r3, #0]
80030de: 681a ldr r2, [r3, #0]
80030e0: 687b ldr r3, [r7, #4]
80030e2: 681b ldr r3, [r3, #0]
80030e4: f022 0201 bic.w r2, r2, #1
80030e8: 601a str r2, [r3, #0]
/* Perform advanced settings configuration */
/* For some items, configuration requires to be done prior TE and RE bits are set */
if (huart->AdvancedInit.AdvFeatureInit != UART_ADVFEATURE_NO_INIT)
80030ea: 687b ldr r3, [r7, #4]
80030ec: 6a5b ldr r3, [r3, #36] @ 0x24
80030ee: 2b00 cmp r3, #0
80030f0: d002 beq.n 80030f8 <HAL_UART_Init+0x4c>
{
UART_AdvFeatureConfig(huart);
80030f2: 6878 ldr r0, [r7, #4]
80030f4: f000 fb16 bl 8003724 <UART_AdvFeatureConfig>
}
/* Set the UART Communication parameters */
if (UART_SetConfig(huart) == HAL_ERROR)
80030f8: 6878 ldr r0, [r7, #4]
80030fa: f000 f8af bl 800325c <UART_SetConfig>
80030fe: 4603 mov r3, r0
8003100: 2b01 cmp r3, #1
8003102: d101 bne.n 8003108 <HAL_UART_Init+0x5c>
{
return HAL_ERROR;
8003104: 2301 movs r3, #1
8003106: e01b b.n 8003140 <HAL_UART_Init+0x94>
}
/* 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));
8003108: 687b ldr r3, [r7, #4]
800310a: 681b ldr r3, [r3, #0]
800310c: 685a ldr r2, [r3, #4]
800310e: 687b ldr r3, [r7, #4]
8003110: 681b ldr r3, [r3, #0]
8003112: f422 4290 bic.w r2, r2, #18432 @ 0x4800
8003116: 605a str r2, [r3, #4]
CLEAR_BIT(huart->Instance->CR3, (USART_CR3_SCEN | USART_CR3_HDSEL | USART_CR3_IREN));
8003118: 687b ldr r3, [r7, #4]
800311a: 681b ldr r3, [r3, #0]
800311c: 689a ldr r2, [r3, #8]
800311e: 687b ldr r3, [r7, #4]
8003120: 681b ldr r3, [r3, #0]
8003122: f022 022a bic.w r2, r2, #42 @ 0x2a
8003126: 609a str r2, [r3, #8]
__HAL_UART_ENABLE(huart);
8003128: 687b ldr r3, [r7, #4]
800312a: 681b ldr r3, [r3, #0]
800312c: 681a ldr r2, [r3, #0]
800312e: 687b ldr r3, [r7, #4]
8003130: 681b ldr r3, [r3, #0]
8003132: f042 0201 orr.w r2, r2, #1
8003136: 601a str r2, [r3, #0]
/* TEACK and/or REACK to check before moving huart->gState and huart->RxState to Ready */
return (UART_CheckIdleState(huart));
8003138: 6878 ldr r0, [r7, #4]
800313a: f000 fb95 bl 8003868 <UART_CheckIdleState>
800313e: 4603 mov r3, r0
}
8003140: 4618 mov r0, r3
8003142: 3708 adds r7, #8
8003144: 46bd mov sp, r7
8003146: bd80 pop {r7, pc}
08003148 <HAL_UART_Transmit>:
* @param Size Amount of data elements (u8 or u16) to be sent.
* @param Timeout Timeout duration.
* @retval HAL status
*/
HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, const uint8_t *pData, uint16_t Size, uint32_t Timeout)
{
8003148: b580 push {r7, lr}
800314a: b08a sub sp, #40 @ 0x28
800314c: af02 add r7, sp, #8
800314e: 60f8 str r0, [r7, #12]
8003150: 60b9 str r1, [r7, #8]
8003152: 603b str r3, [r7, #0]
8003154: 4613 mov r3, r2
8003156: 80fb strh r3, [r7, #6]
const uint8_t *pdata8bits;
const uint16_t *pdata16bits;
uint32_t tickstart;
/* Check that a Tx process is not already ongoing */
if (huart->gState == HAL_UART_STATE_READY)
8003158: 68fb ldr r3, [r7, #12]
800315a: 6fdb ldr r3, [r3, #124] @ 0x7c
800315c: 2b20 cmp r3, #32
800315e: d177 bne.n 8003250 <HAL_UART_Transmit+0x108>
{
if ((pData == NULL) || (Size == 0U))
8003160: 68bb ldr r3, [r7, #8]
8003162: 2b00 cmp r3, #0
8003164: d002 beq.n 800316c <HAL_UART_Transmit+0x24>
8003166: 88fb ldrh r3, [r7, #6]
8003168: 2b00 cmp r3, #0
800316a: d101 bne.n 8003170 <HAL_UART_Transmit+0x28>
{
return HAL_ERROR;
800316c: 2301 movs r3, #1
800316e: e070 b.n 8003252 <HAL_UART_Transmit+0x10a>
}
huart->ErrorCode = HAL_UART_ERROR_NONE;
8003170: 68fb ldr r3, [r7, #12]
8003172: 2200 movs r2, #0
8003174: f8c3 2084 str.w r2, [r3, #132] @ 0x84
huart->gState = HAL_UART_STATE_BUSY_TX;
8003178: 68fb ldr r3, [r7, #12]
800317a: 2221 movs r2, #33 @ 0x21
800317c: 67da str r2, [r3, #124] @ 0x7c
/* Init tickstart for timeout management */
tickstart = HAL_GetTick();
800317e: f7fe f98b bl 8001498 <HAL_GetTick>
8003182: 6178 str r0, [r7, #20]
huart->TxXferSize = Size;
8003184: 68fb ldr r3, [r7, #12]
8003186: 88fa ldrh r2, [r7, #6]
8003188: f8a3 2050 strh.w r2, [r3, #80] @ 0x50
huart->TxXferCount = Size;
800318c: 68fb ldr r3, [r7, #12]
800318e: 88fa ldrh r2, [r7, #6]
8003190: f8a3 2052 strh.w r2, [r3, #82] @ 0x52
/* In case of 9bits/No Parity transfer, pData needs to be handled as a uint16_t pointer */
if ((huart->Init.WordLength == UART_WORDLENGTH_9B) && (huart->Init.Parity == UART_PARITY_NONE))
8003194: 68fb ldr r3, [r7, #12]
8003196: 689b ldr r3, [r3, #8]
8003198: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
800319c: d108 bne.n 80031b0 <HAL_UART_Transmit+0x68>
800319e: 68fb ldr r3, [r7, #12]
80031a0: 691b ldr r3, [r3, #16]
80031a2: 2b00 cmp r3, #0
80031a4: d104 bne.n 80031b0 <HAL_UART_Transmit+0x68>
{
pdata8bits = NULL;
80031a6: 2300 movs r3, #0
80031a8: 61fb str r3, [r7, #28]
pdata16bits = (const uint16_t *) pData;
80031aa: 68bb ldr r3, [r7, #8]
80031ac: 61bb str r3, [r7, #24]
80031ae: e003 b.n 80031b8 <HAL_UART_Transmit+0x70>
}
else
{
pdata8bits = pData;
80031b0: 68bb ldr r3, [r7, #8]
80031b2: 61fb str r3, [r7, #28]
pdata16bits = NULL;
80031b4: 2300 movs r3, #0
80031b6: 61bb str r3, [r7, #24]
}
while (huart->TxXferCount > 0U)
80031b8: e02f b.n 800321a <HAL_UART_Transmit+0xd2>
{
if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TXE, RESET, tickstart, Timeout) != HAL_OK)
80031ba: 683b ldr r3, [r7, #0]
80031bc: 9300 str r3, [sp, #0]
80031be: 697b ldr r3, [r7, #20]
80031c0: 2200 movs r2, #0
80031c2: 2180 movs r1, #128 @ 0x80
80031c4: 68f8 ldr r0, [r7, #12]
80031c6: f000 fba6 bl 8003916 <UART_WaitOnFlagUntilTimeout>
80031ca: 4603 mov r3, r0
80031cc: 2b00 cmp r3, #0
80031ce: d004 beq.n 80031da <HAL_UART_Transmit+0x92>
{
huart->gState = HAL_UART_STATE_READY;
80031d0: 68fb ldr r3, [r7, #12]
80031d2: 2220 movs r2, #32
80031d4: 67da str r2, [r3, #124] @ 0x7c
return HAL_TIMEOUT;
80031d6: 2303 movs r3, #3
80031d8: e03b b.n 8003252 <HAL_UART_Transmit+0x10a>
}
if (pdata8bits == NULL)
80031da: 69fb ldr r3, [r7, #28]
80031dc: 2b00 cmp r3, #0
80031de: d10b bne.n 80031f8 <HAL_UART_Transmit+0xb0>
{
huart->Instance->TDR = (uint16_t)(*pdata16bits & 0x01FFU);
80031e0: 69bb ldr r3, [r7, #24]
80031e2: 881b ldrh r3, [r3, #0]
80031e4: 461a mov r2, r3
80031e6: 68fb ldr r3, [r7, #12]
80031e8: 681b ldr r3, [r3, #0]
80031ea: f3c2 0208 ubfx r2, r2, #0, #9
80031ee: 629a str r2, [r3, #40] @ 0x28
pdata16bits++;
80031f0: 69bb ldr r3, [r7, #24]
80031f2: 3302 adds r3, #2
80031f4: 61bb str r3, [r7, #24]
80031f6: e007 b.n 8003208 <HAL_UART_Transmit+0xc0>
}
else
{
huart->Instance->TDR = (uint8_t)(*pdata8bits & 0xFFU);
80031f8: 69fb ldr r3, [r7, #28]
80031fa: 781a ldrb r2, [r3, #0]
80031fc: 68fb ldr r3, [r7, #12]
80031fe: 681b ldr r3, [r3, #0]
8003200: 629a str r2, [r3, #40] @ 0x28
pdata8bits++;
8003202: 69fb ldr r3, [r7, #28]
8003204: 3301 adds r3, #1
8003206: 61fb str r3, [r7, #28]
}
huart->TxXferCount--;
8003208: 68fb ldr r3, [r7, #12]
800320a: f8b3 3052 ldrh.w r3, [r3, #82] @ 0x52
800320e: b29b uxth r3, r3
8003210: 3b01 subs r3, #1
8003212: b29a uxth r2, r3
8003214: 68fb ldr r3, [r7, #12]
8003216: f8a3 2052 strh.w r2, [r3, #82] @ 0x52
while (huart->TxXferCount > 0U)
800321a: 68fb ldr r3, [r7, #12]
800321c: f8b3 3052 ldrh.w r3, [r3, #82] @ 0x52
8003220: b29b uxth r3, r3
8003222: 2b00 cmp r3, #0
8003224: d1c9 bne.n 80031ba <HAL_UART_Transmit+0x72>
}
if (UART_WaitOnFlagUntilTimeout(huart, UART_FLAG_TC, RESET, tickstart, Timeout) != HAL_OK)
8003226: 683b ldr r3, [r7, #0]
8003228: 9300 str r3, [sp, #0]
800322a: 697b ldr r3, [r7, #20]
800322c: 2200 movs r2, #0
800322e: 2140 movs r1, #64 @ 0x40
8003230: 68f8 ldr r0, [r7, #12]
8003232: f000 fb70 bl 8003916 <UART_WaitOnFlagUntilTimeout>
8003236: 4603 mov r3, r0
8003238: 2b00 cmp r3, #0
800323a: d004 beq.n 8003246 <HAL_UART_Transmit+0xfe>
{
huart->gState = HAL_UART_STATE_READY;
800323c: 68fb ldr r3, [r7, #12]
800323e: 2220 movs r2, #32
8003240: 67da str r2, [r3, #124] @ 0x7c
return HAL_TIMEOUT;
8003242: 2303 movs r3, #3
8003244: e005 b.n 8003252 <HAL_UART_Transmit+0x10a>
}
/* At end of Tx process, restore huart->gState to Ready */
huart->gState = HAL_UART_STATE_READY;
8003246: 68fb ldr r3, [r7, #12]
8003248: 2220 movs r2, #32
800324a: 67da str r2, [r3, #124] @ 0x7c
return HAL_OK;
800324c: 2300 movs r3, #0
800324e: e000 b.n 8003252 <HAL_UART_Transmit+0x10a>
}
else
{
return HAL_BUSY;
8003250: 2302 movs r3, #2
}
}
8003252: 4618 mov r0, r3
8003254: 3720 adds r7, #32
8003256: 46bd mov sp, r7
8003258: bd80 pop {r7, pc}
...
0800325c <UART_SetConfig>:
* @brief Configure the UART peripheral.
* @param huart UART handle.
* @retval HAL status
*/
HAL_StatusTypeDef UART_SetConfig(UART_HandleTypeDef *huart)
{
800325c: b580 push {r7, lr}
800325e: b088 sub sp, #32
8003260: af00 add r7, sp, #0
8003262: 6078 str r0, [r7, #4]
uint32_t tmpreg;
uint16_t brrtemp;
UART_ClockSourceTypeDef clocksource;
uint32_t usartdiv;
HAL_StatusTypeDef ret = HAL_OK;
8003264: 2300 movs r3, #0
8003266: 77bb strb r3, [r7, #30]
* the UART Word Length, Parity, Mode and oversampling:
* 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 ;
8003268: 687b ldr r3, [r7, #4]
800326a: 689a ldr r2, [r3, #8]
800326c: 687b ldr r3, [r7, #4]
800326e: 691b ldr r3, [r3, #16]
8003270: 431a orrs r2, r3
8003272: 687b ldr r3, [r7, #4]
8003274: 695b ldr r3, [r3, #20]
8003276: 431a orrs r2, r3
8003278: 687b ldr r3, [r7, #4]
800327a: 69db ldr r3, [r3, #28]
800327c: 4313 orrs r3, r2
800327e: 617b str r3, [r7, #20]
MODIFY_REG(huart->Instance->CR1, USART_CR1_FIELDS, tmpreg);
8003280: 687b ldr r3, [r7, #4]
8003282: 681b ldr r3, [r3, #0]
8003284: 681a ldr r2, [r3, #0]
8003286: 4ba6 ldr r3, [pc, #664] @ (8003520 <UART_SetConfig+0x2c4>)
8003288: 4013 ands r3, r2
800328a: 687a ldr r2, [r7, #4]
800328c: 6812 ldr r2, [r2, #0]
800328e: 6979 ldr r1, [r7, #20]
8003290: 430b orrs r3, r1
8003292: 6013 str r3, [r2, #0]
/*-------------------------- 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);
8003294: 687b ldr r3, [r7, #4]
8003296: 681b ldr r3, [r3, #0]
8003298: 685b ldr r3, [r3, #4]
800329a: f423 5140 bic.w r1, r3, #12288 @ 0x3000
800329e: 687b ldr r3, [r7, #4]
80032a0: 68da ldr r2, [r3, #12]
80032a2: 687b ldr r3, [r7, #4]
80032a4: 681b ldr r3, [r3, #0]
80032a6: 430a orrs r2, r1
80032a8: 605a str r2, [r3, #4]
/* Configure
* - UART HardWare Flow Control: set CTSE and RTSE bits according
* to huart->Init.HwFlowCtl value
* - one-bit sampling method versus three samples' majority rule according
* to huart->Init.OneBitSampling (not applicable to LPUART) */
tmpreg = (uint32_t)huart->Init.HwFlowCtl;
80032aa: 687b ldr r3, [r7, #4]
80032ac: 699b ldr r3, [r3, #24]
80032ae: 617b str r3, [r7, #20]
tmpreg |= huart->Init.OneBitSampling;
80032b0: 687b ldr r3, [r7, #4]
80032b2: 6a1b ldr r3, [r3, #32]
80032b4: 697a ldr r2, [r7, #20]
80032b6: 4313 orrs r3, r2
80032b8: 617b str r3, [r7, #20]
MODIFY_REG(huart->Instance->CR3, USART_CR3_FIELDS, tmpreg);
80032ba: 687b ldr r3, [r7, #4]
80032bc: 681b ldr r3, [r3, #0]
80032be: 689b ldr r3, [r3, #8]
80032c0: f423 6130 bic.w r1, r3, #2816 @ 0xb00
80032c4: 687b ldr r3, [r7, #4]
80032c6: 681b ldr r3, [r3, #0]
80032c8: 697a ldr r2, [r7, #20]
80032ca: 430a orrs r2, r1
80032cc: 609a str r2, [r3, #8]
/*-------------------------- USART BRR Configuration -----------------------*/
UART_GETCLOCKSOURCE(huart, clocksource);
80032ce: 687b ldr r3, [r7, #4]
80032d0: 681b ldr r3, [r3, #0]
80032d2: 4a94 ldr r2, [pc, #592] @ (8003524 <UART_SetConfig+0x2c8>)
80032d4: 4293 cmp r3, r2
80032d6: d120 bne.n 800331a <UART_SetConfig+0xbe>
80032d8: 4b93 ldr r3, [pc, #588] @ (8003528 <UART_SetConfig+0x2cc>)
80032da: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
80032de: f003 0303 and.w r3, r3, #3
80032e2: 2b03 cmp r3, #3
80032e4: d816 bhi.n 8003314 <UART_SetConfig+0xb8>
80032e6: a201 add r2, pc, #4 @ (adr r2, 80032ec <UART_SetConfig+0x90>)
80032e8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
80032ec: 080032fd .word 0x080032fd
80032f0: 08003309 .word 0x08003309
80032f4: 08003303 .word 0x08003303
80032f8: 0800330f .word 0x0800330f
80032fc: 2301 movs r3, #1
80032fe: 77fb strb r3, [r7, #31]
8003300: e150 b.n 80035a4 <UART_SetConfig+0x348>
8003302: 2302 movs r3, #2
8003304: 77fb strb r3, [r7, #31]
8003306: e14d b.n 80035a4 <UART_SetConfig+0x348>
8003308: 2304 movs r3, #4
800330a: 77fb strb r3, [r7, #31]
800330c: e14a b.n 80035a4 <UART_SetConfig+0x348>
800330e: 2308 movs r3, #8
8003310: 77fb strb r3, [r7, #31]
8003312: e147 b.n 80035a4 <UART_SetConfig+0x348>
8003314: 2310 movs r3, #16
8003316: 77fb strb r3, [r7, #31]
8003318: e144 b.n 80035a4 <UART_SetConfig+0x348>
800331a: 687b ldr r3, [r7, #4]
800331c: 681b ldr r3, [r3, #0]
800331e: 4a83 ldr r2, [pc, #524] @ (800352c <UART_SetConfig+0x2d0>)
8003320: 4293 cmp r3, r2
8003322: d132 bne.n 800338a <UART_SetConfig+0x12e>
8003324: 4b80 ldr r3, [pc, #512] @ (8003528 <UART_SetConfig+0x2cc>)
8003326: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
800332a: f003 030c and.w r3, r3, #12
800332e: 2b0c cmp r3, #12
8003330: d828 bhi.n 8003384 <UART_SetConfig+0x128>
8003332: a201 add r2, pc, #4 @ (adr r2, 8003338 <UART_SetConfig+0xdc>)
8003334: f852 f023 ldr.w pc, [r2, r3, lsl #2]
8003338: 0800336d .word 0x0800336d
800333c: 08003385 .word 0x08003385
8003340: 08003385 .word 0x08003385
8003344: 08003385 .word 0x08003385
8003348: 08003379 .word 0x08003379
800334c: 08003385 .word 0x08003385
8003350: 08003385 .word 0x08003385
8003354: 08003385 .word 0x08003385
8003358: 08003373 .word 0x08003373
800335c: 08003385 .word 0x08003385
8003360: 08003385 .word 0x08003385
8003364: 08003385 .word 0x08003385
8003368: 0800337f .word 0x0800337f
800336c: 2300 movs r3, #0
800336e: 77fb strb r3, [r7, #31]
8003370: e118 b.n 80035a4 <UART_SetConfig+0x348>
8003372: 2302 movs r3, #2
8003374: 77fb strb r3, [r7, #31]
8003376: e115 b.n 80035a4 <UART_SetConfig+0x348>
8003378: 2304 movs r3, #4
800337a: 77fb strb r3, [r7, #31]
800337c: e112 b.n 80035a4 <UART_SetConfig+0x348>
800337e: 2308 movs r3, #8
8003380: 77fb strb r3, [r7, #31]
8003382: e10f b.n 80035a4 <UART_SetConfig+0x348>
8003384: 2310 movs r3, #16
8003386: 77fb strb r3, [r7, #31]
8003388: e10c b.n 80035a4 <UART_SetConfig+0x348>
800338a: 687b ldr r3, [r7, #4]
800338c: 681b ldr r3, [r3, #0]
800338e: 4a68 ldr r2, [pc, #416] @ (8003530 <UART_SetConfig+0x2d4>)
8003390: 4293 cmp r3, r2
8003392: d120 bne.n 80033d6 <UART_SetConfig+0x17a>
8003394: 4b64 ldr r3, [pc, #400] @ (8003528 <UART_SetConfig+0x2cc>)
8003396: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
800339a: f003 0330 and.w r3, r3, #48 @ 0x30
800339e: 2b30 cmp r3, #48 @ 0x30
80033a0: d013 beq.n 80033ca <UART_SetConfig+0x16e>
80033a2: 2b30 cmp r3, #48 @ 0x30
80033a4: d814 bhi.n 80033d0 <UART_SetConfig+0x174>
80033a6: 2b20 cmp r3, #32
80033a8: d009 beq.n 80033be <UART_SetConfig+0x162>
80033aa: 2b20 cmp r3, #32
80033ac: d810 bhi.n 80033d0 <UART_SetConfig+0x174>
80033ae: 2b00 cmp r3, #0
80033b0: d002 beq.n 80033b8 <UART_SetConfig+0x15c>
80033b2: 2b10 cmp r3, #16
80033b4: d006 beq.n 80033c4 <UART_SetConfig+0x168>
80033b6: e00b b.n 80033d0 <UART_SetConfig+0x174>
80033b8: 2300 movs r3, #0
80033ba: 77fb strb r3, [r7, #31]
80033bc: e0f2 b.n 80035a4 <UART_SetConfig+0x348>
80033be: 2302 movs r3, #2
80033c0: 77fb strb r3, [r7, #31]
80033c2: e0ef b.n 80035a4 <UART_SetConfig+0x348>
80033c4: 2304 movs r3, #4
80033c6: 77fb strb r3, [r7, #31]
80033c8: e0ec b.n 80035a4 <UART_SetConfig+0x348>
80033ca: 2308 movs r3, #8
80033cc: 77fb strb r3, [r7, #31]
80033ce: e0e9 b.n 80035a4 <UART_SetConfig+0x348>
80033d0: 2310 movs r3, #16
80033d2: 77fb strb r3, [r7, #31]
80033d4: e0e6 b.n 80035a4 <UART_SetConfig+0x348>
80033d6: 687b ldr r3, [r7, #4]
80033d8: 681b ldr r3, [r3, #0]
80033da: 4a56 ldr r2, [pc, #344] @ (8003534 <UART_SetConfig+0x2d8>)
80033dc: 4293 cmp r3, r2
80033de: d120 bne.n 8003422 <UART_SetConfig+0x1c6>
80033e0: 4b51 ldr r3, [pc, #324] @ (8003528 <UART_SetConfig+0x2cc>)
80033e2: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
80033e6: f003 03c0 and.w r3, r3, #192 @ 0xc0
80033ea: 2bc0 cmp r3, #192 @ 0xc0
80033ec: d013 beq.n 8003416 <UART_SetConfig+0x1ba>
80033ee: 2bc0 cmp r3, #192 @ 0xc0
80033f0: d814 bhi.n 800341c <UART_SetConfig+0x1c0>
80033f2: 2b80 cmp r3, #128 @ 0x80
80033f4: d009 beq.n 800340a <UART_SetConfig+0x1ae>
80033f6: 2b80 cmp r3, #128 @ 0x80
80033f8: d810 bhi.n 800341c <UART_SetConfig+0x1c0>
80033fa: 2b00 cmp r3, #0
80033fc: d002 beq.n 8003404 <UART_SetConfig+0x1a8>
80033fe: 2b40 cmp r3, #64 @ 0x40
8003400: d006 beq.n 8003410 <UART_SetConfig+0x1b4>
8003402: e00b b.n 800341c <UART_SetConfig+0x1c0>
8003404: 2300 movs r3, #0
8003406: 77fb strb r3, [r7, #31]
8003408: e0cc b.n 80035a4 <UART_SetConfig+0x348>
800340a: 2302 movs r3, #2
800340c: 77fb strb r3, [r7, #31]
800340e: e0c9 b.n 80035a4 <UART_SetConfig+0x348>
8003410: 2304 movs r3, #4
8003412: 77fb strb r3, [r7, #31]
8003414: e0c6 b.n 80035a4 <UART_SetConfig+0x348>
8003416: 2308 movs r3, #8
8003418: 77fb strb r3, [r7, #31]
800341a: e0c3 b.n 80035a4 <UART_SetConfig+0x348>
800341c: 2310 movs r3, #16
800341e: 77fb strb r3, [r7, #31]
8003420: e0c0 b.n 80035a4 <UART_SetConfig+0x348>
8003422: 687b ldr r3, [r7, #4]
8003424: 681b ldr r3, [r3, #0]
8003426: 4a44 ldr r2, [pc, #272] @ (8003538 <UART_SetConfig+0x2dc>)
8003428: 4293 cmp r3, r2
800342a: d125 bne.n 8003478 <UART_SetConfig+0x21c>
800342c: 4b3e ldr r3, [pc, #248] @ (8003528 <UART_SetConfig+0x2cc>)
800342e: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
8003432: f403 7340 and.w r3, r3, #768 @ 0x300
8003436: f5b3 7f40 cmp.w r3, #768 @ 0x300
800343a: d017 beq.n 800346c <UART_SetConfig+0x210>
800343c: f5b3 7f40 cmp.w r3, #768 @ 0x300
8003440: d817 bhi.n 8003472 <UART_SetConfig+0x216>
8003442: f5b3 7f00 cmp.w r3, #512 @ 0x200
8003446: d00b beq.n 8003460 <UART_SetConfig+0x204>
8003448: f5b3 7f00 cmp.w r3, #512 @ 0x200
800344c: d811 bhi.n 8003472 <UART_SetConfig+0x216>
800344e: 2b00 cmp r3, #0
8003450: d003 beq.n 800345a <UART_SetConfig+0x1fe>
8003452: f5b3 7f80 cmp.w r3, #256 @ 0x100
8003456: d006 beq.n 8003466 <UART_SetConfig+0x20a>
8003458: e00b b.n 8003472 <UART_SetConfig+0x216>
800345a: 2300 movs r3, #0
800345c: 77fb strb r3, [r7, #31]
800345e: e0a1 b.n 80035a4 <UART_SetConfig+0x348>
8003460: 2302 movs r3, #2
8003462: 77fb strb r3, [r7, #31]
8003464: e09e b.n 80035a4 <UART_SetConfig+0x348>
8003466: 2304 movs r3, #4
8003468: 77fb strb r3, [r7, #31]
800346a: e09b b.n 80035a4 <UART_SetConfig+0x348>
800346c: 2308 movs r3, #8
800346e: 77fb strb r3, [r7, #31]
8003470: e098 b.n 80035a4 <UART_SetConfig+0x348>
8003472: 2310 movs r3, #16
8003474: 77fb strb r3, [r7, #31]
8003476: e095 b.n 80035a4 <UART_SetConfig+0x348>
8003478: 687b ldr r3, [r7, #4]
800347a: 681b ldr r3, [r3, #0]
800347c: 4a2f ldr r2, [pc, #188] @ (800353c <UART_SetConfig+0x2e0>)
800347e: 4293 cmp r3, r2
8003480: d125 bne.n 80034ce <UART_SetConfig+0x272>
8003482: 4b29 ldr r3, [pc, #164] @ (8003528 <UART_SetConfig+0x2cc>)
8003484: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
8003488: f403 6340 and.w r3, r3, #3072 @ 0xc00
800348c: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
8003490: d017 beq.n 80034c2 <UART_SetConfig+0x266>
8003492: f5b3 6f40 cmp.w r3, #3072 @ 0xc00
8003496: d817 bhi.n 80034c8 <UART_SetConfig+0x26c>
8003498: f5b3 6f00 cmp.w r3, #2048 @ 0x800
800349c: d00b beq.n 80034b6 <UART_SetConfig+0x25a>
800349e: f5b3 6f00 cmp.w r3, #2048 @ 0x800
80034a2: d811 bhi.n 80034c8 <UART_SetConfig+0x26c>
80034a4: 2b00 cmp r3, #0
80034a6: d003 beq.n 80034b0 <UART_SetConfig+0x254>
80034a8: f5b3 6f80 cmp.w r3, #1024 @ 0x400
80034ac: d006 beq.n 80034bc <UART_SetConfig+0x260>
80034ae: e00b b.n 80034c8 <UART_SetConfig+0x26c>
80034b0: 2301 movs r3, #1
80034b2: 77fb strb r3, [r7, #31]
80034b4: e076 b.n 80035a4 <UART_SetConfig+0x348>
80034b6: 2302 movs r3, #2
80034b8: 77fb strb r3, [r7, #31]
80034ba: e073 b.n 80035a4 <UART_SetConfig+0x348>
80034bc: 2304 movs r3, #4
80034be: 77fb strb r3, [r7, #31]
80034c0: e070 b.n 80035a4 <UART_SetConfig+0x348>
80034c2: 2308 movs r3, #8
80034c4: 77fb strb r3, [r7, #31]
80034c6: e06d b.n 80035a4 <UART_SetConfig+0x348>
80034c8: 2310 movs r3, #16
80034ca: 77fb strb r3, [r7, #31]
80034cc: e06a b.n 80035a4 <UART_SetConfig+0x348>
80034ce: 687b ldr r3, [r7, #4]
80034d0: 681b ldr r3, [r3, #0]
80034d2: 4a1b ldr r2, [pc, #108] @ (8003540 <UART_SetConfig+0x2e4>)
80034d4: 4293 cmp r3, r2
80034d6: d138 bne.n 800354a <UART_SetConfig+0x2ee>
80034d8: 4b13 ldr r3, [pc, #76] @ (8003528 <UART_SetConfig+0x2cc>)
80034da: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
80034de: f403 5340 and.w r3, r3, #12288 @ 0x3000
80034e2: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
80034e6: d017 beq.n 8003518 <UART_SetConfig+0x2bc>
80034e8: f5b3 5f40 cmp.w r3, #12288 @ 0x3000
80034ec: d82a bhi.n 8003544 <UART_SetConfig+0x2e8>
80034ee: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
80034f2: d00b beq.n 800350c <UART_SetConfig+0x2b0>
80034f4: f5b3 5f00 cmp.w r3, #8192 @ 0x2000
80034f8: d824 bhi.n 8003544 <UART_SetConfig+0x2e8>
80034fa: 2b00 cmp r3, #0
80034fc: d003 beq.n 8003506 <UART_SetConfig+0x2aa>
80034fe: f5b3 5f80 cmp.w r3, #4096 @ 0x1000
8003502: d006 beq.n 8003512 <UART_SetConfig+0x2b6>
8003504: e01e b.n 8003544 <UART_SetConfig+0x2e8>
8003506: 2300 movs r3, #0
8003508: 77fb strb r3, [r7, #31]
800350a: e04b b.n 80035a4 <UART_SetConfig+0x348>
800350c: 2302 movs r3, #2
800350e: 77fb strb r3, [r7, #31]
8003510: e048 b.n 80035a4 <UART_SetConfig+0x348>
8003512: 2304 movs r3, #4
8003514: 77fb strb r3, [r7, #31]
8003516: e045 b.n 80035a4 <UART_SetConfig+0x348>
8003518: 2308 movs r3, #8
800351a: 77fb strb r3, [r7, #31]
800351c: e042 b.n 80035a4 <UART_SetConfig+0x348>
800351e: bf00 nop
8003520: efff69f3 .word 0xefff69f3
8003524: 40011000 .word 0x40011000
8003528: 40023800 .word 0x40023800
800352c: 40004400 .word 0x40004400
8003530: 40004800 .word 0x40004800
8003534: 40004c00 .word 0x40004c00
8003538: 40005000 .word 0x40005000
800353c: 40011400 .word 0x40011400
8003540: 40007800 .word 0x40007800
8003544: 2310 movs r3, #16
8003546: 77fb strb r3, [r7, #31]
8003548: e02c b.n 80035a4 <UART_SetConfig+0x348>
800354a: 687b ldr r3, [r7, #4]
800354c: 681b ldr r3, [r3, #0]
800354e: 4a72 ldr r2, [pc, #456] @ (8003718 <UART_SetConfig+0x4bc>)
8003550: 4293 cmp r3, r2
8003552: d125 bne.n 80035a0 <UART_SetConfig+0x344>
8003554: 4b71 ldr r3, [pc, #452] @ (800371c <UART_SetConfig+0x4c0>)
8003556: f8d3 3090 ldr.w r3, [r3, #144] @ 0x90
800355a: f403 4340 and.w r3, r3, #49152 @ 0xc000
800355e: f5b3 4f40 cmp.w r3, #49152 @ 0xc000
8003562: d017 beq.n 8003594 <UART_SetConfig+0x338>
8003564: f5b3 4f40 cmp.w r3, #49152 @ 0xc000
8003568: d817 bhi.n 800359a <UART_SetConfig+0x33e>
800356a: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
800356e: d00b beq.n 8003588 <UART_SetConfig+0x32c>
8003570: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
8003574: d811 bhi.n 800359a <UART_SetConfig+0x33e>
8003576: 2b00 cmp r3, #0
8003578: d003 beq.n 8003582 <UART_SetConfig+0x326>
800357a: f5b3 4f80 cmp.w r3, #16384 @ 0x4000
800357e: d006 beq.n 800358e <UART_SetConfig+0x332>
8003580: e00b b.n 800359a <UART_SetConfig+0x33e>
8003582: 2300 movs r3, #0
8003584: 77fb strb r3, [r7, #31]
8003586: e00d b.n 80035a4 <UART_SetConfig+0x348>
8003588: 2302 movs r3, #2
800358a: 77fb strb r3, [r7, #31]
800358c: e00a b.n 80035a4 <UART_SetConfig+0x348>
800358e: 2304 movs r3, #4
8003590: 77fb strb r3, [r7, #31]
8003592: e007 b.n 80035a4 <UART_SetConfig+0x348>
8003594: 2308 movs r3, #8
8003596: 77fb strb r3, [r7, #31]
8003598: e004 b.n 80035a4 <UART_SetConfig+0x348>
800359a: 2310 movs r3, #16
800359c: 77fb strb r3, [r7, #31]
800359e: e001 b.n 80035a4 <UART_SetConfig+0x348>
80035a0: 2310 movs r3, #16
80035a2: 77fb strb r3, [r7, #31]
if (huart->Init.OverSampling == UART_OVERSAMPLING_8)
80035a4: 687b ldr r3, [r7, #4]
80035a6: 69db ldr r3, [r3, #28]
80035a8: f5b3 4f00 cmp.w r3, #32768 @ 0x8000
80035ac: d15b bne.n 8003666 <UART_SetConfig+0x40a>
{
switch (clocksource)
80035ae: 7ffb ldrb r3, [r7, #31]
80035b0: 2b08 cmp r3, #8
80035b2: d828 bhi.n 8003606 <UART_SetConfig+0x3aa>
80035b4: a201 add r2, pc, #4 @ (adr r2, 80035bc <UART_SetConfig+0x360>)
80035b6: f852 f023 ldr.w pc, [r2, r3, lsl #2]
80035ba: bf00 nop
80035bc: 080035e1 .word 0x080035e1
80035c0: 080035e9 .word 0x080035e9
80035c4: 080035f1 .word 0x080035f1
80035c8: 08003607 .word 0x08003607
80035cc: 080035f7 .word 0x080035f7
80035d0: 08003607 .word 0x08003607
80035d4: 08003607 .word 0x08003607
80035d8: 08003607 .word 0x08003607
80035dc: 080035ff .word 0x080035ff
{
case UART_CLOCKSOURCE_PCLK1:
pclk = HAL_RCC_GetPCLK1Freq();
80035e0: f7fe fef2 bl 80023c8 <HAL_RCC_GetPCLK1Freq>
80035e4: 61b8 str r0, [r7, #24]
break;
80035e6: e013 b.n 8003610 <UART_SetConfig+0x3b4>
case UART_CLOCKSOURCE_PCLK2:
pclk = HAL_RCC_GetPCLK2Freq();
80035e8: f7fe ff02 bl 80023f0 <HAL_RCC_GetPCLK2Freq>
80035ec: 61b8 str r0, [r7, #24]
break;
80035ee: e00f b.n 8003610 <UART_SetConfig+0x3b4>
case UART_CLOCKSOURCE_HSI:
pclk = (uint32_t) HSI_VALUE;
80035f0: 4b4b ldr r3, [pc, #300] @ (8003720 <UART_SetConfig+0x4c4>)
80035f2: 61bb str r3, [r7, #24]
break;
80035f4: e00c b.n 8003610 <UART_SetConfig+0x3b4>
case UART_CLOCKSOURCE_SYSCLK:
pclk = HAL_RCC_GetSysClockFreq();
80035f6: f7fe fe15 bl 8002224 <HAL_RCC_GetSysClockFreq>
80035fa: 61b8 str r0, [r7, #24]
break;
80035fc: e008 b.n 8003610 <UART_SetConfig+0x3b4>
case UART_CLOCKSOURCE_LSE:
pclk = (uint32_t) LSE_VALUE;
80035fe: f44f 4300 mov.w r3, #32768 @ 0x8000
8003602: 61bb str r3, [r7, #24]
break;
8003604: e004 b.n 8003610 <UART_SetConfig+0x3b4>
default:
pclk = 0U;
8003606: 2300 movs r3, #0
8003608: 61bb str r3, [r7, #24]
ret = HAL_ERROR;
800360a: 2301 movs r3, #1
800360c: 77bb strb r3, [r7, #30]
break;
800360e: bf00 nop
}
/* USARTDIV must be greater than or equal to 0d16 */
if (pclk != 0U)
8003610: 69bb ldr r3, [r7, #24]
8003612: 2b00 cmp r3, #0
8003614: d074 beq.n 8003700 <UART_SetConfig+0x4a4>
{
usartdiv = (uint32_t)(UART_DIV_SAMPLING8(pclk, huart->Init.BaudRate));
8003616: 69bb ldr r3, [r7, #24]
8003618: 005a lsls r2, r3, #1
800361a: 687b ldr r3, [r7, #4]
800361c: 685b ldr r3, [r3, #4]
800361e: 085b lsrs r3, r3, #1
8003620: 441a add r2, r3
8003622: 687b ldr r3, [r7, #4]
8003624: 685b ldr r3, [r3, #4]
8003626: fbb2 f3f3 udiv r3, r2, r3
800362a: 613b str r3, [r7, #16]
if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
800362c: 693b ldr r3, [r7, #16]
800362e: 2b0f cmp r3, #15
8003630: d916 bls.n 8003660 <UART_SetConfig+0x404>
8003632: 693b ldr r3, [r7, #16]
8003634: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
8003638: d212 bcs.n 8003660 <UART_SetConfig+0x404>
{
brrtemp = (uint16_t)(usartdiv & 0xFFF0U);
800363a: 693b ldr r3, [r7, #16]
800363c: b29b uxth r3, r3
800363e: f023 030f bic.w r3, r3, #15
8003642: 81fb strh r3, [r7, #14]
brrtemp |= (uint16_t)((usartdiv & (uint16_t)0x000FU) >> 1U);
8003644: 693b ldr r3, [r7, #16]
8003646: 085b lsrs r3, r3, #1
8003648: b29b uxth r3, r3
800364a: f003 0307 and.w r3, r3, #7
800364e: b29a uxth r2, r3
8003650: 89fb ldrh r3, [r7, #14]
8003652: 4313 orrs r3, r2
8003654: 81fb strh r3, [r7, #14]
huart->Instance->BRR = brrtemp;
8003656: 687b ldr r3, [r7, #4]
8003658: 681b ldr r3, [r3, #0]
800365a: 89fa ldrh r2, [r7, #14]
800365c: 60da str r2, [r3, #12]
800365e: e04f b.n 8003700 <UART_SetConfig+0x4a4>
}
else
{
ret = HAL_ERROR;
8003660: 2301 movs r3, #1
8003662: 77bb strb r3, [r7, #30]
8003664: e04c b.n 8003700 <UART_SetConfig+0x4a4>
}
}
}
else
{
switch (clocksource)
8003666: 7ffb ldrb r3, [r7, #31]
8003668: 2b08 cmp r3, #8
800366a: d828 bhi.n 80036be <UART_SetConfig+0x462>
800366c: a201 add r2, pc, #4 @ (adr r2, 8003674 <UART_SetConfig+0x418>)
800366e: f852 f023 ldr.w pc, [r2, r3, lsl #2]
8003672: bf00 nop
8003674: 08003699 .word 0x08003699
8003678: 080036a1 .word 0x080036a1
800367c: 080036a9 .word 0x080036a9
8003680: 080036bf .word 0x080036bf
8003684: 080036af .word 0x080036af
8003688: 080036bf .word 0x080036bf
800368c: 080036bf .word 0x080036bf
8003690: 080036bf .word 0x080036bf
8003694: 080036b7 .word 0x080036b7
{
case UART_CLOCKSOURCE_PCLK1:
pclk = HAL_RCC_GetPCLK1Freq();
8003698: f7fe fe96 bl 80023c8 <HAL_RCC_GetPCLK1Freq>
800369c: 61b8 str r0, [r7, #24]
break;
800369e: e013 b.n 80036c8 <UART_SetConfig+0x46c>
case UART_CLOCKSOURCE_PCLK2:
pclk = HAL_RCC_GetPCLK2Freq();
80036a0: f7fe fea6 bl 80023f0 <HAL_RCC_GetPCLK2Freq>
80036a4: 61b8 str r0, [r7, #24]
break;
80036a6: e00f b.n 80036c8 <UART_SetConfig+0x46c>
case UART_CLOCKSOURCE_HSI:
pclk = (uint32_t) HSI_VALUE;
80036a8: 4b1d ldr r3, [pc, #116] @ (8003720 <UART_SetConfig+0x4c4>)
80036aa: 61bb str r3, [r7, #24]
break;
80036ac: e00c b.n 80036c8 <UART_SetConfig+0x46c>
case UART_CLOCKSOURCE_SYSCLK:
pclk = HAL_RCC_GetSysClockFreq();
80036ae: f7fe fdb9 bl 8002224 <HAL_RCC_GetSysClockFreq>
80036b2: 61b8 str r0, [r7, #24]
break;
80036b4: e008 b.n 80036c8 <UART_SetConfig+0x46c>
case UART_CLOCKSOURCE_LSE:
pclk = (uint32_t) LSE_VALUE;
80036b6: f44f 4300 mov.w r3, #32768 @ 0x8000
80036ba: 61bb str r3, [r7, #24]
break;
80036bc: e004 b.n 80036c8 <UART_SetConfig+0x46c>
default:
pclk = 0U;
80036be: 2300 movs r3, #0
80036c0: 61bb str r3, [r7, #24]
ret = HAL_ERROR;
80036c2: 2301 movs r3, #1
80036c4: 77bb strb r3, [r7, #30]
break;
80036c6: bf00 nop
}
if (pclk != 0U)
80036c8: 69bb ldr r3, [r7, #24]
80036ca: 2b00 cmp r3, #0
80036cc: d018 beq.n 8003700 <UART_SetConfig+0x4a4>
{
/* USARTDIV must be greater than or equal to 0d16 */
usartdiv = (uint32_t)(UART_DIV_SAMPLING16(pclk, huart->Init.BaudRate));
80036ce: 687b ldr r3, [r7, #4]
80036d0: 685b ldr r3, [r3, #4]
80036d2: 085a lsrs r2, r3, #1
80036d4: 69bb ldr r3, [r7, #24]
80036d6: 441a add r2, r3
80036d8: 687b ldr r3, [r7, #4]
80036da: 685b ldr r3, [r3, #4]
80036dc: fbb2 f3f3 udiv r3, r2, r3
80036e0: 613b str r3, [r7, #16]
if ((usartdiv >= UART_BRR_MIN) && (usartdiv <= UART_BRR_MAX))
80036e2: 693b ldr r3, [r7, #16]
80036e4: 2b0f cmp r3, #15
80036e6: d909 bls.n 80036fc <UART_SetConfig+0x4a0>
80036e8: 693b ldr r3, [r7, #16]
80036ea: f5b3 3f80 cmp.w r3, #65536 @ 0x10000
80036ee: d205 bcs.n 80036fc <UART_SetConfig+0x4a0>
{
huart->Instance->BRR = (uint16_t)usartdiv;
80036f0: 693b ldr r3, [r7, #16]
80036f2: b29a uxth r2, r3
80036f4: 687b ldr r3, [r7, #4]
80036f6: 681b ldr r3, [r3, #0]
80036f8: 60da str r2, [r3, #12]
80036fa: e001 b.n 8003700 <UART_SetConfig+0x4a4>
}
else
{
ret = HAL_ERROR;
80036fc: 2301 movs r3, #1
80036fe: 77bb strb r3, [r7, #30]
}
}
/* Clear ISR function pointers */
huart->RxISR = NULL;
8003700: 687b ldr r3, [r7, #4]
8003702: 2200 movs r2, #0
8003704: 669a str r2, [r3, #104] @ 0x68
huart->TxISR = NULL;
8003706: 687b ldr r3, [r7, #4]
8003708: 2200 movs r2, #0
800370a: 66da str r2, [r3, #108] @ 0x6c
return ret;
800370c: 7fbb ldrb r3, [r7, #30]
}
800370e: 4618 mov r0, r3
8003710: 3720 adds r7, #32
8003712: 46bd mov sp, r7
8003714: bd80 pop {r7, pc}
8003716: bf00 nop
8003718: 40007c00 .word 0x40007c00
800371c: 40023800 .word 0x40023800
8003720: 00f42400 .word 0x00f42400
08003724 <UART_AdvFeatureConfig>:
* @brief Configure the UART peripheral advanced features.
* @param huart UART handle.
* @retval None
*/
void UART_AdvFeatureConfig(UART_HandleTypeDef *huart)
{
8003724: b480 push {r7}
8003726: b083 sub sp, #12
8003728: af00 add r7, sp, #0
800372a: 6078 str r0, [r7, #4]
/* Check whether the set of advanced features to configure is properly set */
assert_param(IS_UART_ADVFEATURE_INIT(huart->AdvancedInit.AdvFeatureInit));
/* if required, configure RX/TX pins swap */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_SWAP_INIT))
800372c: 687b ldr r3, [r7, #4]
800372e: 6a5b ldr r3, [r3, #36] @ 0x24
8003730: f003 0308 and.w r3, r3, #8
8003734: 2b00 cmp r3, #0
8003736: d00a beq.n 800374e <UART_AdvFeatureConfig+0x2a>
{
assert_param(IS_UART_ADVFEATURE_SWAP(huart->AdvancedInit.Swap));
MODIFY_REG(huart->Instance->CR2, USART_CR2_SWAP, huart->AdvancedInit.Swap);
8003738: 687b ldr r3, [r7, #4]
800373a: 681b ldr r3, [r3, #0]
800373c: 685b ldr r3, [r3, #4]
800373e: f423 4100 bic.w r1, r3, #32768 @ 0x8000
8003742: 687b ldr r3, [r7, #4]
8003744: 6b5a ldr r2, [r3, #52] @ 0x34
8003746: 687b ldr r3, [r7, #4]
8003748: 681b ldr r3, [r3, #0]
800374a: 430a orrs r2, r1
800374c: 605a str r2, [r3, #4]
}
/* if required, configure TX pin active level inversion */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_TXINVERT_INIT))
800374e: 687b ldr r3, [r7, #4]
8003750: 6a5b ldr r3, [r3, #36] @ 0x24
8003752: f003 0301 and.w r3, r3, #1
8003756: 2b00 cmp r3, #0
8003758: d00a beq.n 8003770 <UART_AdvFeatureConfig+0x4c>
{
assert_param(IS_UART_ADVFEATURE_TXINV(huart->AdvancedInit.TxPinLevelInvert));
MODIFY_REG(huart->Instance->CR2, USART_CR2_TXINV, huart->AdvancedInit.TxPinLevelInvert);
800375a: 687b ldr r3, [r7, #4]
800375c: 681b ldr r3, [r3, #0]
800375e: 685b ldr r3, [r3, #4]
8003760: f423 3100 bic.w r1, r3, #131072 @ 0x20000
8003764: 687b ldr r3, [r7, #4]
8003766: 6a9a ldr r2, [r3, #40] @ 0x28
8003768: 687b ldr r3, [r7, #4]
800376a: 681b ldr r3, [r3, #0]
800376c: 430a orrs r2, r1
800376e: 605a str r2, [r3, #4]
}
/* if required, configure RX pin active level inversion */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXINVERT_INIT))
8003770: 687b ldr r3, [r7, #4]
8003772: 6a5b ldr r3, [r3, #36] @ 0x24
8003774: f003 0302 and.w r3, r3, #2
8003778: 2b00 cmp r3, #0
800377a: d00a beq.n 8003792 <UART_AdvFeatureConfig+0x6e>
{
assert_param(IS_UART_ADVFEATURE_RXINV(huart->AdvancedInit.RxPinLevelInvert));
MODIFY_REG(huart->Instance->CR2, USART_CR2_RXINV, huart->AdvancedInit.RxPinLevelInvert);
800377c: 687b ldr r3, [r7, #4]
800377e: 681b ldr r3, [r3, #0]
8003780: 685b ldr r3, [r3, #4]
8003782: f423 3180 bic.w r1, r3, #65536 @ 0x10000
8003786: 687b ldr r3, [r7, #4]
8003788: 6ada ldr r2, [r3, #44] @ 0x2c
800378a: 687b ldr r3, [r7, #4]
800378c: 681b ldr r3, [r3, #0]
800378e: 430a orrs r2, r1
8003790: 605a str r2, [r3, #4]
}
/* if required, configure data inversion */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DATAINVERT_INIT))
8003792: 687b ldr r3, [r7, #4]
8003794: 6a5b ldr r3, [r3, #36] @ 0x24
8003796: f003 0304 and.w r3, r3, #4
800379a: 2b00 cmp r3, #0
800379c: d00a beq.n 80037b4 <UART_AdvFeatureConfig+0x90>
{
assert_param(IS_UART_ADVFEATURE_DATAINV(huart->AdvancedInit.DataInvert));
MODIFY_REG(huart->Instance->CR2, USART_CR2_DATAINV, huart->AdvancedInit.DataInvert);
800379e: 687b ldr r3, [r7, #4]
80037a0: 681b ldr r3, [r3, #0]
80037a2: 685b ldr r3, [r3, #4]
80037a4: f423 2180 bic.w r1, r3, #262144 @ 0x40000
80037a8: 687b ldr r3, [r7, #4]
80037aa: 6b1a ldr r2, [r3, #48] @ 0x30
80037ac: 687b ldr r3, [r7, #4]
80037ae: 681b ldr r3, [r3, #0]
80037b0: 430a orrs r2, r1
80037b2: 605a str r2, [r3, #4]
}
/* if required, configure RX overrun detection disabling */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_RXOVERRUNDISABLE_INIT))
80037b4: 687b ldr r3, [r7, #4]
80037b6: 6a5b ldr r3, [r3, #36] @ 0x24
80037b8: f003 0310 and.w r3, r3, #16
80037bc: 2b00 cmp r3, #0
80037be: d00a beq.n 80037d6 <UART_AdvFeatureConfig+0xb2>
{
assert_param(IS_UART_OVERRUN(huart->AdvancedInit.OverrunDisable));
MODIFY_REG(huart->Instance->CR3, USART_CR3_OVRDIS, huart->AdvancedInit.OverrunDisable);
80037c0: 687b ldr r3, [r7, #4]
80037c2: 681b ldr r3, [r3, #0]
80037c4: 689b ldr r3, [r3, #8]
80037c6: f423 5180 bic.w r1, r3, #4096 @ 0x1000
80037ca: 687b ldr r3, [r7, #4]
80037cc: 6b9a ldr r2, [r3, #56] @ 0x38
80037ce: 687b ldr r3, [r7, #4]
80037d0: 681b ldr r3, [r3, #0]
80037d2: 430a orrs r2, r1
80037d4: 609a str r2, [r3, #8]
}
/* if required, configure DMA disabling on reception error */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_DMADISABLEONERROR_INIT))
80037d6: 687b ldr r3, [r7, #4]
80037d8: 6a5b ldr r3, [r3, #36] @ 0x24
80037da: f003 0320 and.w r3, r3, #32
80037de: 2b00 cmp r3, #0
80037e0: d00a beq.n 80037f8 <UART_AdvFeatureConfig+0xd4>
{
assert_param(IS_UART_ADVFEATURE_DMAONRXERROR(huart->AdvancedInit.DMADisableonRxError));
MODIFY_REG(huart->Instance->CR3, USART_CR3_DDRE, huart->AdvancedInit.DMADisableonRxError);
80037e2: 687b ldr r3, [r7, #4]
80037e4: 681b ldr r3, [r3, #0]
80037e6: 689b ldr r3, [r3, #8]
80037e8: f423 5100 bic.w r1, r3, #8192 @ 0x2000
80037ec: 687b ldr r3, [r7, #4]
80037ee: 6bda ldr r2, [r3, #60] @ 0x3c
80037f0: 687b ldr r3, [r7, #4]
80037f2: 681b ldr r3, [r3, #0]
80037f4: 430a orrs r2, r1
80037f6: 609a str r2, [r3, #8]
}
/* if required, configure auto Baud rate detection scheme */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_AUTOBAUDRATE_INIT))
80037f8: 687b ldr r3, [r7, #4]
80037fa: 6a5b ldr r3, [r3, #36] @ 0x24
80037fc: f003 0340 and.w r3, r3, #64 @ 0x40
8003800: 2b00 cmp r3, #0
8003802: d01a beq.n 800383a <UART_AdvFeatureConfig+0x116>
{
assert_param(IS_USART_AUTOBAUDRATE_DETECTION_INSTANCE(huart->Instance));
assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATE(huart->AdvancedInit.AutoBaudRateEnable));
MODIFY_REG(huart->Instance->CR2, USART_CR2_ABREN, huart->AdvancedInit.AutoBaudRateEnable);
8003804: 687b ldr r3, [r7, #4]
8003806: 681b ldr r3, [r3, #0]
8003808: 685b ldr r3, [r3, #4]
800380a: f423 1180 bic.w r1, r3, #1048576 @ 0x100000
800380e: 687b ldr r3, [r7, #4]
8003810: 6c1a ldr r2, [r3, #64] @ 0x40
8003812: 687b ldr r3, [r7, #4]
8003814: 681b ldr r3, [r3, #0]
8003816: 430a orrs r2, r1
8003818: 605a str r2, [r3, #4]
/* set auto Baudrate detection parameters if detection is enabled */
if (huart->AdvancedInit.AutoBaudRateEnable == UART_ADVFEATURE_AUTOBAUDRATE_ENABLE)
800381a: 687b ldr r3, [r7, #4]
800381c: 6c1b ldr r3, [r3, #64] @ 0x40
800381e: f5b3 1f80 cmp.w r3, #1048576 @ 0x100000
8003822: d10a bne.n 800383a <UART_AdvFeatureConfig+0x116>
{
assert_param(IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(huart->AdvancedInit.AutoBaudRateMode));
MODIFY_REG(huart->Instance->CR2, USART_CR2_ABRMODE, huart->AdvancedInit.AutoBaudRateMode);
8003824: 687b ldr r3, [r7, #4]
8003826: 681b ldr r3, [r3, #0]
8003828: 685b ldr r3, [r3, #4]
800382a: f423 01c0 bic.w r1, r3, #6291456 @ 0x600000
800382e: 687b ldr r3, [r7, #4]
8003830: 6c5a ldr r2, [r3, #68] @ 0x44
8003832: 687b ldr r3, [r7, #4]
8003834: 681b ldr r3, [r3, #0]
8003836: 430a orrs r2, r1
8003838: 605a str r2, [r3, #4]
}
}
/* if required, configure MSB first on communication line */
if (HAL_IS_BIT_SET(huart->AdvancedInit.AdvFeatureInit, UART_ADVFEATURE_MSBFIRST_INIT))
800383a: 687b ldr r3, [r7, #4]
800383c: 6a5b ldr r3, [r3, #36] @ 0x24
800383e: f003 0380 and.w r3, r3, #128 @ 0x80
8003842: 2b00 cmp r3, #0
8003844: d00a beq.n 800385c <UART_AdvFeatureConfig+0x138>
{
assert_param(IS_UART_ADVFEATURE_MSBFIRST(huart->AdvancedInit.MSBFirst));
MODIFY_REG(huart->Instance->CR2, USART_CR2_MSBFIRST, huart->AdvancedInit.MSBFirst);
8003846: 687b ldr r3, [r7, #4]
8003848: 681b ldr r3, [r3, #0]
800384a: 685b ldr r3, [r3, #4]
800384c: f423 2100 bic.w r1, r3, #524288 @ 0x80000
8003850: 687b ldr r3, [r7, #4]
8003852: 6c9a ldr r2, [r3, #72] @ 0x48
8003854: 687b ldr r3, [r7, #4]
8003856: 681b ldr r3, [r3, #0]
8003858: 430a orrs r2, r1
800385a: 605a str r2, [r3, #4]
}
}
800385c: bf00 nop
800385e: 370c adds r7, #12
8003860: 46bd mov sp, r7
8003862: f85d 7b04 ldr.w r7, [sp], #4
8003866: 4770 bx lr
08003868 <UART_CheckIdleState>:
* @brief Check the UART Idle State.
* @param huart UART handle.
* @retval HAL status
*/
HAL_StatusTypeDef UART_CheckIdleState(UART_HandleTypeDef *huart)
{
8003868: b580 push {r7, lr}
800386a: b08c sub sp, #48 @ 0x30
800386c: af02 add r7, sp, #8
800386e: 6078 str r0, [r7, #4]
uint32_t tickstart;
/* Initialize the UART ErrorCode */
huart->ErrorCode = HAL_UART_ERROR_NONE;
8003870: 687b ldr r3, [r7, #4]
8003872: 2200 movs r2, #0
8003874: f8c3 2084 str.w r2, [r3, #132] @ 0x84
/* Init tickstart for timeout management */
tickstart = HAL_GetTick();
8003878: f7fd fe0e bl 8001498 <HAL_GetTick>
800387c: 6278 str r0, [r7, #36] @ 0x24
/* Check if the Transmitter is enabled */
if ((huart->Instance->CR1 & USART_CR1_TE) == USART_CR1_TE)
800387e: 687b ldr r3, [r7, #4]
8003880: 681b ldr r3, [r3, #0]
8003882: 681b ldr r3, [r3, #0]
8003884: f003 0308 and.w r3, r3, #8
8003888: 2b08 cmp r3, #8
800388a: d12e bne.n 80038ea <UART_CheckIdleState+0x82>
{
/* Wait until TEACK flag is set */
if (UART_WaitOnFlagUntilTimeout(huart, USART_ISR_TEACK, RESET, tickstart, HAL_UART_TIMEOUT_VALUE) != HAL_OK)
800388c: f06f 437e mvn.w r3, #4261412864 @ 0xfe000000
8003890: 9300 str r3, [sp, #0]
8003892: 6a7b ldr r3, [r7, #36] @ 0x24
8003894: 2200 movs r2, #0
8003896: f44f 1100 mov.w r1, #2097152 @ 0x200000
800389a: 6878 ldr r0, [r7, #4]
800389c: f000 f83b bl 8003916 <UART_WaitOnFlagUntilTimeout>
80038a0: 4603 mov r3, r0
80038a2: 2b00 cmp r3, #0
80038a4: d021 beq.n 80038ea <UART_CheckIdleState+0x82>
{
/* Disable TXE interrupt for the interrupt process */
ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_TXEIE));
80038a6: 687b ldr r3, [r7, #4]
80038a8: 681b ldr r3, [r3, #0]
80038aa: 613b str r3, [r7, #16]
*/
__STATIC_FORCEINLINE uint32_t __LDREXW(volatile uint32_t *addr)
{
uint32_t result;
__ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
80038ac: 693b ldr r3, [r7, #16]
80038ae: e853 3f00 ldrex r3, [r3]
80038b2: 60fb str r3, [r7, #12]
return(result);
80038b4: 68fb ldr r3, [r7, #12]
80038b6: f023 0380 bic.w r3, r3, #128 @ 0x80
80038ba: 623b str r3, [r7, #32]
80038bc: 687b ldr r3, [r7, #4]
80038be: 681b ldr r3, [r3, #0]
80038c0: 461a mov r2, r3
80038c2: 6a3b ldr r3, [r7, #32]
80038c4: 61fb str r3, [r7, #28]
80038c6: 61ba str r2, [r7, #24]
*/
__STATIC_FORCEINLINE uint32_t __STREXW(uint32_t value, volatile uint32_t *addr)
{
uint32_t result;
__ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
80038c8: 69b9 ldr r1, [r7, #24]
80038ca: 69fa ldr r2, [r7, #28]
80038cc: e841 2300 strex r3, r2, [r1]
80038d0: 617b str r3, [r7, #20]
return(result);
80038d2: 697b ldr r3, [r7, #20]
80038d4: 2b00 cmp r3, #0
80038d6: d1e6 bne.n 80038a6 <UART_CheckIdleState+0x3e>
huart->gState = HAL_UART_STATE_READY;
80038d8: 687b ldr r3, [r7, #4]
80038da: 2220 movs r2, #32
80038dc: 67da str r2, [r3, #124] @ 0x7c
__HAL_UNLOCK(huart);
80038de: 687b ldr r3, [r7, #4]
80038e0: 2200 movs r2, #0
80038e2: f883 2078 strb.w r2, [r3, #120] @ 0x78
/* Timeout occurred */
return HAL_TIMEOUT;
80038e6: 2303 movs r3, #3
80038e8: e011 b.n 800390e <UART_CheckIdleState+0xa6>
}
}
#endif /* USART_ISR_REACK */
/* Initialize the UART State */
huart->gState = HAL_UART_STATE_READY;
80038ea: 687b ldr r3, [r7, #4]
80038ec: 2220 movs r2, #32
80038ee: 67da str r2, [r3, #124] @ 0x7c
huart->RxState = HAL_UART_STATE_READY;
80038f0: 687b ldr r3, [r7, #4]
80038f2: 2220 movs r2, #32
80038f4: f8c3 2080 str.w r2, [r3, #128] @ 0x80
huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
80038f8: 687b ldr r3, [r7, #4]
80038fa: 2200 movs r2, #0
80038fc: 661a str r2, [r3, #96] @ 0x60
huart->RxEventType = HAL_UART_RXEVENT_TC;
80038fe: 687b ldr r3, [r7, #4]
8003900: 2200 movs r2, #0
8003902: 665a str r2, [r3, #100] @ 0x64
__HAL_UNLOCK(huart);
8003904: 687b ldr r3, [r7, #4]
8003906: 2200 movs r2, #0
8003908: f883 2078 strb.w r2, [r3, #120] @ 0x78
return HAL_OK;
800390c: 2300 movs r3, #0
}
800390e: 4618 mov r0, r3
8003910: 3728 adds r7, #40 @ 0x28
8003912: 46bd mov sp, r7
8003914: bd80 pop {r7, pc}
08003916 <UART_WaitOnFlagUntilTimeout>:
* @param Timeout Timeout duration
* @retval HAL status
*/
HAL_StatusTypeDef UART_WaitOnFlagUntilTimeout(UART_HandleTypeDef *huart, uint32_t Flag, FlagStatus Status,
uint32_t Tickstart, uint32_t Timeout)
{
8003916: b580 push {r7, lr}
8003918: b084 sub sp, #16
800391a: af00 add r7, sp, #0
800391c: 60f8 str r0, [r7, #12]
800391e: 60b9 str r1, [r7, #8]
8003920: 603b str r3, [r7, #0]
8003922: 4613 mov r3, r2
8003924: 71fb strb r3, [r7, #7]
/* Wait until flag is set */
while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
8003926: e04f b.n 80039c8 <UART_WaitOnFlagUntilTimeout+0xb2>
{
/* Check for the Timeout */
if (Timeout != HAL_MAX_DELAY)
8003928: 69bb ldr r3, [r7, #24]
800392a: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
800392e: d04b beq.n 80039c8 <UART_WaitOnFlagUntilTimeout+0xb2>
{
if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U))
8003930: f7fd fdb2 bl 8001498 <HAL_GetTick>
8003934: 4602 mov r2, r0
8003936: 683b ldr r3, [r7, #0]
8003938: 1ad3 subs r3, r2, r3
800393a: 69ba ldr r2, [r7, #24]
800393c: 429a cmp r2, r3
800393e: d302 bcc.n 8003946 <UART_WaitOnFlagUntilTimeout+0x30>
8003940: 69bb ldr r3, [r7, #24]
8003942: 2b00 cmp r3, #0
8003944: d101 bne.n 800394a <UART_WaitOnFlagUntilTimeout+0x34>
{
return HAL_TIMEOUT;
8003946: 2303 movs r3, #3
8003948: e04e b.n 80039e8 <UART_WaitOnFlagUntilTimeout+0xd2>
}
if ((READ_BIT(huart->Instance->CR1, USART_CR1_RE) != 0U) && (Flag != UART_FLAG_TXE) && (Flag != UART_FLAG_TC))
800394a: 68fb ldr r3, [r7, #12]
800394c: 681b ldr r3, [r3, #0]
800394e: 681b ldr r3, [r3, #0]
8003950: f003 0304 and.w r3, r3, #4
8003954: 2b00 cmp r3, #0
8003956: d037 beq.n 80039c8 <UART_WaitOnFlagUntilTimeout+0xb2>
8003958: 68bb ldr r3, [r7, #8]
800395a: 2b80 cmp r3, #128 @ 0x80
800395c: d034 beq.n 80039c8 <UART_WaitOnFlagUntilTimeout+0xb2>
800395e: 68bb ldr r3, [r7, #8]
8003960: 2b40 cmp r3, #64 @ 0x40
8003962: d031 beq.n 80039c8 <UART_WaitOnFlagUntilTimeout+0xb2>
{
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) == SET)
8003964: 68fb ldr r3, [r7, #12]
8003966: 681b ldr r3, [r3, #0]
8003968: 69db ldr r3, [r3, #28]
800396a: f003 0308 and.w r3, r3, #8
800396e: 2b08 cmp r3, #8
8003970: d110 bne.n 8003994 <UART_WaitOnFlagUntilTimeout+0x7e>
{
/* Clear Overrun Error flag*/
__HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_OREF);
8003972: 68fb ldr r3, [r7, #12]
8003974: 681b ldr r3, [r3, #0]
8003976: 2208 movs r2, #8
8003978: 621a str r2, [r3, #32]
/* Blocking error : transfer is aborted
Set the UART state ready to be able to start again the process,
Disable Rx Interrupts if ongoing */
UART_EndRxTransfer(huart);
800397a: 68f8 ldr r0, [r7, #12]
800397c: f000 f838 bl 80039f0 <UART_EndRxTransfer>
huart->ErrorCode = HAL_UART_ERROR_ORE;
8003980: 68fb ldr r3, [r7, #12]
8003982: 2208 movs r2, #8
8003984: f8c3 2084 str.w r2, [r3, #132] @ 0x84
/* Process Unlocked */
__HAL_UNLOCK(huart);
8003988: 68fb ldr r3, [r7, #12]
800398a: 2200 movs r2, #0
800398c: f883 2078 strb.w r2, [r3, #120] @ 0x78
return HAL_ERROR;
8003990: 2301 movs r3, #1
8003992: e029 b.n 80039e8 <UART_WaitOnFlagUntilTimeout+0xd2>
}
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_RTOF) == SET)
8003994: 68fb ldr r3, [r7, #12]
8003996: 681b ldr r3, [r3, #0]
8003998: 69db ldr r3, [r3, #28]
800399a: f403 6300 and.w r3, r3, #2048 @ 0x800
800399e: f5b3 6f00 cmp.w r3, #2048 @ 0x800
80039a2: d111 bne.n 80039c8 <UART_WaitOnFlagUntilTimeout+0xb2>
{
/* Clear Receiver Timeout flag*/
__HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_RTOF);
80039a4: 68fb ldr r3, [r7, #12]
80039a6: 681b ldr r3, [r3, #0]
80039a8: f44f 6200 mov.w r2, #2048 @ 0x800
80039ac: 621a str r2, [r3, #32]
/* Blocking error : transfer is aborted
Set the UART state ready to be able to start again the process,
Disable Rx Interrupts if ongoing */
UART_EndRxTransfer(huart);
80039ae: 68f8 ldr r0, [r7, #12]
80039b0: f000 f81e bl 80039f0 <UART_EndRxTransfer>
huart->ErrorCode = HAL_UART_ERROR_RTO;
80039b4: 68fb ldr r3, [r7, #12]
80039b6: 2220 movs r2, #32
80039b8: f8c3 2084 str.w r2, [r3, #132] @ 0x84
/* Process Unlocked */
__HAL_UNLOCK(huart);
80039bc: 68fb ldr r3, [r7, #12]
80039be: 2200 movs r2, #0
80039c0: f883 2078 strb.w r2, [r3, #120] @ 0x78
return HAL_TIMEOUT;
80039c4: 2303 movs r3, #3
80039c6: e00f b.n 80039e8 <UART_WaitOnFlagUntilTimeout+0xd2>
while ((__HAL_UART_GET_FLAG(huart, Flag) ? SET : RESET) == Status)
80039c8: 68fb ldr r3, [r7, #12]
80039ca: 681b ldr r3, [r3, #0]
80039cc: 69da ldr r2, [r3, #28]
80039ce: 68bb ldr r3, [r7, #8]
80039d0: 4013 ands r3, r2
80039d2: 68ba ldr r2, [r7, #8]
80039d4: 429a cmp r2, r3
80039d6: bf0c ite eq
80039d8: 2301 moveq r3, #1
80039da: 2300 movne r3, #0
80039dc: b2db uxtb r3, r3
80039de: 461a mov r2, r3
80039e0: 79fb ldrb r3, [r7, #7]
80039e2: 429a cmp r2, r3
80039e4: d0a0 beq.n 8003928 <UART_WaitOnFlagUntilTimeout+0x12>
}
}
}
}
return HAL_OK;
80039e6: 2300 movs r3, #0
}
80039e8: 4618 mov r0, r3
80039ea: 3710 adds r7, #16
80039ec: 46bd mov sp, r7
80039ee: bd80 pop {r7, pc}
080039f0 <UART_EndRxTransfer>:
* @brief End ongoing Rx transfer on UART peripheral (following error detection or Reception completion).
* @param huart UART handle.
* @retval None
*/
static void UART_EndRxTransfer(UART_HandleTypeDef *huart)
{
80039f0: b480 push {r7}
80039f2: b095 sub sp, #84 @ 0x54
80039f4: af00 add r7, sp, #0
80039f6: 6078 str r0, [r7, #4]
/* Disable RXNE, PE and ERR (Frame error, noise error, overrun error) interrupts */
ATOMIC_CLEAR_BIT(huart->Instance->CR1, (USART_CR1_RXNEIE | USART_CR1_PEIE));
80039f8: 687b ldr r3, [r7, #4]
80039fa: 681b ldr r3, [r3, #0]
80039fc: 637b str r3, [r7, #52] @ 0x34
__ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
80039fe: 6b7b ldr r3, [r7, #52] @ 0x34
8003a00: e853 3f00 ldrex r3, [r3]
8003a04: 633b str r3, [r7, #48] @ 0x30
return(result);
8003a06: 6b3b ldr r3, [r7, #48] @ 0x30
8003a08: f423 7390 bic.w r3, r3, #288 @ 0x120
8003a0c: 64fb str r3, [r7, #76] @ 0x4c
8003a0e: 687b ldr r3, [r7, #4]
8003a10: 681b ldr r3, [r3, #0]
8003a12: 461a mov r2, r3
8003a14: 6cfb ldr r3, [r7, #76] @ 0x4c
8003a16: 643b str r3, [r7, #64] @ 0x40
8003a18: 63fa str r2, [r7, #60] @ 0x3c
__ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
8003a1a: 6bf9 ldr r1, [r7, #60] @ 0x3c
8003a1c: 6c3a ldr r2, [r7, #64] @ 0x40
8003a1e: e841 2300 strex r3, r2, [r1]
8003a22: 63bb str r3, [r7, #56] @ 0x38
return(result);
8003a24: 6bbb ldr r3, [r7, #56] @ 0x38
8003a26: 2b00 cmp r3, #0
8003a28: d1e6 bne.n 80039f8 <UART_EndRxTransfer+0x8>
ATOMIC_CLEAR_BIT(huart->Instance->CR3, USART_CR3_EIE);
8003a2a: 687b ldr r3, [r7, #4]
8003a2c: 681b ldr r3, [r3, #0]
8003a2e: 3308 adds r3, #8
8003a30: 623b str r3, [r7, #32]
__ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
8003a32: 6a3b ldr r3, [r7, #32]
8003a34: e853 3f00 ldrex r3, [r3]
8003a38: 61fb str r3, [r7, #28]
return(result);
8003a3a: 69fb ldr r3, [r7, #28]
8003a3c: f023 0301 bic.w r3, r3, #1
8003a40: 64bb str r3, [r7, #72] @ 0x48
8003a42: 687b ldr r3, [r7, #4]
8003a44: 681b ldr r3, [r3, #0]
8003a46: 3308 adds r3, #8
8003a48: 6cba ldr r2, [r7, #72] @ 0x48
8003a4a: 62fa str r2, [r7, #44] @ 0x2c
8003a4c: 62bb str r3, [r7, #40] @ 0x28
__ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
8003a4e: 6ab9 ldr r1, [r7, #40] @ 0x28
8003a50: 6afa ldr r2, [r7, #44] @ 0x2c
8003a52: e841 2300 strex r3, r2, [r1]
8003a56: 627b str r3, [r7, #36] @ 0x24
return(result);
8003a58: 6a7b ldr r3, [r7, #36] @ 0x24
8003a5a: 2b00 cmp r3, #0
8003a5c: d1e5 bne.n 8003a2a <UART_EndRxTransfer+0x3a>
/* In case of reception waiting for IDLE event, disable also the IDLE IE interrupt source */
if (huart->ReceptionType == HAL_UART_RECEPTION_TOIDLE)
8003a5e: 687b ldr r3, [r7, #4]
8003a60: 6e1b ldr r3, [r3, #96] @ 0x60
8003a62: 2b01 cmp r3, #1
8003a64: d118 bne.n 8003a98 <UART_EndRxTransfer+0xa8>
{
ATOMIC_CLEAR_BIT(huart->Instance->CR1, USART_CR1_IDLEIE);
8003a66: 687b ldr r3, [r7, #4]
8003a68: 681b ldr r3, [r3, #0]
8003a6a: 60fb str r3, [r7, #12]
__ASM volatile ("ldrex %0, %1" : "=r" (result) : "Q" (*addr) );
8003a6c: 68fb ldr r3, [r7, #12]
8003a6e: e853 3f00 ldrex r3, [r3]
8003a72: 60bb str r3, [r7, #8]
return(result);
8003a74: 68bb ldr r3, [r7, #8]
8003a76: f023 0310 bic.w r3, r3, #16
8003a7a: 647b str r3, [r7, #68] @ 0x44
8003a7c: 687b ldr r3, [r7, #4]
8003a7e: 681b ldr r3, [r3, #0]
8003a80: 461a mov r2, r3
8003a82: 6c7b ldr r3, [r7, #68] @ 0x44
8003a84: 61bb str r3, [r7, #24]
8003a86: 617a str r2, [r7, #20]
__ASM volatile ("strex %0, %2, %1" : "=&r" (result), "=Q" (*addr) : "r" (value) );
8003a88: 6979 ldr r1, [r7, #20]
8003a8a: 69ba ldr r2, [r7, #24]
8003a8c: e841 2300 strex r3, r2, [r1]
8003a90: 613b str r3, [r7, #16]
return(result);
8003a92: 693b ldr r3, [r7, #16]
8003a94: 2b00 cmp r3, #0
8003a96: d1e6 bne.n 8003a66 <UART_EndRxTransfer+0x76>
}
/* At end of Rx process, restore huart->RxState to Ready */
huart->RxState = HAL_UART_STATE_READY;
8003a98: 687b ldr r3, [r7, #4]
8003a9a: 2220 movs r2, #32
8003a9c: f8c3 2080 str.w r2, [r3, #128] @ 0x80
huart->ReceptionType = HAL_UART_RECEPTION_STANDARD;
8003aa0: 687b ldr r3, [r7, #4]
8003aa2: 2200 movs r2, #0
8003aa4: 661a str r2, [r3, #96] @ 0x60
/* Reset RxIsr function pointer */
huart->RxISR = NULL;
8003aa6: 687b ldr r3, [r7, #4]
8003aa8: 2200 movs r2, #0
8003aaa: 669a str r2, [r3, #104] @ 0x68
}
8003aac: bf00 nop
8003aae: 3754 adds r7, #84 @ 0x54
8003ab0: 46bd mov sp, r7
8003ab2: f85d 7b04 ldr.w r7, [sp], #4
8003ab6: 4770 bx lr
08003ab8 <SVC_Setup>:
#endif /* SysTick */
/*
Setup SVC to reset value.
*/
__STATIC_INLINE void SVC_Setup (void) {
8003ab8: b480 push {r7}
8003aba: af00 add r7, sp, #0
* The issue was logged under:https://github.com/ARM-software/CMSIS-FreeRTOS/issues/35
* until it is correctly fixed, the code below is commented
*/
/* NVIC_SetPriority (SVCall_IRQn, 0U); */
#endif
}
8003abc: bf00 nop
8003abe: 46bd mov sp, r7
8003ac0: f85d 7b04 ldr.w r7, [sp], #4
8003ac4: 4770 bx lr
...
08003ac8 <osKernelInitialize>:
/*---------------------------------------------------------------------------*/
osStatus_t osKernelInitialize (void) {
8003ac8: b480 push {r7}
8003aca: b085 sub sp, #20
8003acc: af00 add r7, sp, #0
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
8003ace: f3ef 8305 mrs r3, IPSR
8003ad2: 60bb str r3, [r7, #8]
return(result);
8003ad4: 68bb ldr r3, [r7, #8]
osStatus_t stat;
if (IS_IRQ()) {
8003ad6: 2b00 cmp r3, #0
8003ad8: d10f bne.n 8003afa <osKernelInitialize+0x32>
__ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory");
8003ada: f3ef 8310 mrs r3, PRIMASK
8003ade: 607b str r3, [r7, #4]
return(result);
8003ae0: 687b ldr r3, [r7, #4]
8003ae2: 2b00 cmp r3, #0
8003ae4: d105 bne.n 8003af2 <osKernelInitialize+0x2a>
__ASM volatile ("MRS %0, basepri" : "=r" (result) );
8003ae6: f3ef 8311 mrs r3, BASEPRI
8003aea: 603b str r3, [r7, #0]
return(result);
8003aec: 683b ldr r3, [r7, #0]
8003aee: 2b00 cmp r3, #0
8003af0: d007 beq.n 8003b02 <osKernelInitialize+0x3a>
8003af2: 4b0e ldr r3, [pc, #56] @ (8003b2c <osKernelInitialize+0x64>)
8003af4: 681b ldr r3, [r3, #0]
8003af6: 2b02 cmp r3, #2
8003af8: d103 bne.n 8003b02 <osKernelInitialize+0x3a>
stat = osErrorISR;
8003afa: f06f 0305 mvn.w r3, #5
8003afe: 60fb str r3, [r7, #12]
8003b00: e00c b.n 8003b1c <osKernelInitialize+0x54>
}
else {
if (KernelState == osKernelInactive) {
8003b02: 4b0a ldr r3, [pc, #40] @ (8003b2c <osKernelInitialize+0x64>)
8003b04: 681b ldr r3, [r3, #0]
8003b06: 2b00 cmp r3, #0
8003b08: d105 bne.n 8003b16 <osKernelInitialize+0x4e>
#if defined(USE_FREERTOS_HEAP_5) && (HEAP_5_REGION_SETUP == 1)
vPortDefineHeapRegions (configHEAP_5_REGIONS);
#endif
KernelState = osKernelReady;
8003b0a: 4b08 ldr r3, [pc, #32] @ (8003b2c <osKernelInitialize+0x64>)
8003b0c: 2201 movs r2, #1
8003b0e: 601a str r2, [r3, #0]
stat = osOK;
8003b10: 2300 movs r3, #0
8003b12: 60fb str r3, [r7, #12]
8003b14: e002 b.n 8003b1c <osKernelInitialize+0x54>
} else {
stat = osError;
8003b16: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
8003b1a: 60fb str r3, [r7, #12]
}
}
return (stat);
8003b1c: 68fb ldr r3, [r7, #12]
}
8003b1e: 4618 mov r0, r3
8003b20: 3714 adds r7, #20
8003b22: 46bd mov sp, r7
8003b24: f85d 7b04 ldr.w r7, [sp], #4
8003b28: 4770 bx lr
8003b2a: bf00 nop
8003b2c: 2000016c .word 0x2000016c
08003b30 <osKernelStart>:
}
return (state);
}
osStatus_t osKernelStart (void) {
8003b30: b580 push {r7, lr}
8003b32: b084 sub sp, #16
8003b34: af00 add r7, sp, #0
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
8003b36: f3ef 8305 mrs r3, IPSR
8003b3a: 60bb str r3, [r7, #8]
return(result);
8003b3c: 68bb ldr r3, [r7, #8]
osStatus_t stat;
if (IS_IRQ()) {
8003b3e: 2b00 cmp r3, #0
8003b40: d10f bne.n 8003b62 <osKernelStart+0x32>
__ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory");
8003b42: f3ef 8310 mrs r3, PRIMASK
8003b46: 607b str r3, [r7, #4]
return(result);
8003b48: 687b ldr r3, [r7, #4]
8003b4a: 2b00 cmp r3, #0
8003b4c: d105 bne.n 8003b5a <osKernelStart+0x2a>
__ASM volatile ("MRS %0, basepri" : "=r" (result) );
8003b4e: f3ef 8311 mrs r3, BASEPRI
8003b52: 603b str r3, [r7, #0]
return(result);
8003b54: 683b ldr r3, [r7, #0]
8003b56: 2b00 cmp r3, #0
8003b58: d007 beq.n 8003b6a <osKernelStart+0x3a>
8003b5a: 4b0f ldr r3, [pc, #60] @ (8003b98 <osKernelStart+0x68>)
8003b5c: 681b ldr r3, [r3, #0]
8003b5e: 2b02 cmp r3, #2
8003b60: d103 bne.n 8003b6a <osKernelStart+0x3a>
stat = osErrorISR;
8003b62: f06f 0305 mvn.w r3, #5
8003b66: 60fb str r3, [r7, #12]
8003b68: e010 b.n 8003b8c <osKernelStart+0x5c>
}
else {
if (KernelState == osKernelReady) {
8003b6a: 4b0b ldr r3, [pc, #44] @ (8003b98 <osKernelStart+0x68>)
8003b6c: 681b ldr r3, [r3, #0]
8003b6e: 2b01 cmp r3, #1
8003b70: d109 bne.n 8003b86 <osKernelStart+0x56>
/* Ensure SVC priority is at the reset value */
SVC_Setup();
8003b72: f7ff ffa1 bl 8003ab8 <SVC_Setup>
/* Change state to enable IRQ masking check */
KernelState = osKernelRunning;
8003b76: 4b08 ldr r3, [pc, #32] @ (8003b98 <osKernelStart+0x68>)
8003b78: 2202 movs r2, #2
8003b7a: 601a str r2, [r3, #0]
/* Start the kernel scheduler */
vTaskStartScheduler();
8003b7c: f001 f8ca bl 8004d14 <vTaskStartScheduler>
stat = osOK;
8003b80: 2300 movs r3, #0
8003b82: 60fb str r3, [r7, #12]
8003b84: e002 b.n 8003b8c <osKernelStart+0x5c>
} else {
stat = osError;
8003b86: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
8003b8a: 60fb str r3, [r7, #12]
}
}
return (stat);
8003b8c: 68fb ldr r3, [r7, #12]
}
8003b8e: 4618 mov r0, r3
8003b90: 3710 adds r7, #16
8003b92: 46bd mov sp, r7
8003b94: bd80 pop {r7, pc}
8003b96: bf00 nop
8003b98: 2000016c .word 0x2000016c
08003b9c <osThreadNew>:
return (configCPU_CLOCK_HZ);
}
/*---------------------------------------------------------------------------*/
osThreadId_t osThreadNew (osThreadFunc_t func, void *argument, const osThreadAttr_t *attr) {
8003b9c: b580 push {r7, lr}
8003b9e: b090 sub sp, #64 @ 0x40
8003ba0: af04 add r7, sp, #16
8003ba2: 60f8 str r0, [r7, #12]
8003ba4: 60b9 str r1, [r7, #8]
8003ba6: 607a str r2, [r7, #4]
uint32_t stack;
TaskHandle_t hTask;
UBaseType_t prio;
int32_t mem;
hTask = NULL;
8003ba8: 2300 movs r3, #0
8003baa: 613b str r3, [r7, #16]
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
8003bac: f3ef 8305 mrs r3, IPSR
8003bb0: 61fb str r3, [r7, #28]
return(result);
8003bb2: 69fb ldr r3, [r7, #28]
if (!IS_IRQ() && (func != NULL)) {
8003bb4: 2b00 cmp r3, #0
8003bb6: f040 8090 bne.w 8003cda <osThreadNew+0x13e>
__ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory");
8003bba: f3ef 8310 mrs r3, PRIMASK
8003bbe: 61bb str r3, [r7, #24]
return(result);
8003bc0: 69bb ldr r3, [r7, #24]
8003bc2: 2b00 cmp r3, #0
8003bc4: d105 bne.n 8003bd2 <osThreadNew+0x36>
__ASM volatile ("MRS %0, basepri" : "=r" (result) );
8003bc6: f3ef 8311 mrs r3, BASEPRI
8003bca: 617b str r3, [r7, #20]
return(result);
8003bcc: 697b ldr r3, [r7, #20]
8003bce: 2b00 cmp r3, #0
8003bd0: d003 beq.n 8003bda <osThreadNew+0x3e>
8003bd2: 4b44 ldr r3, [pc, #272] @ (8003ce4 <osThreadNew+0x148>)
8003bd4: 681b ldr r3, [r3, #0]
8003bd6: 2b02 cmp r3, #2
8003bd8: d07f beq.n 8003cda <osThreadNew+0x13e>
8003bda: 68fb ldr r3, [r7, #12]
8003bdc: 2b00 cmp r3, #0
8003bde: d07c beq.n 8003cda <osThreadNew+0x13e>
stack = configMINIMAL_STACK_SIZE;
8003be0: f44f 7380 mov.w r3, #256 @ 0x100
8003be4: 62bb str r3, [r7, #40] @ 0x28
prio = (UBaseType_t)osPriorityNormal;
8003be6: 2318 movs r3, #24
8003be8: 627b str r3, [r7, #36] @ 0x24
name = NULL;
8003bea: 2300 movs r3, #0
8003bec: 62fb str r3, [r7, #44] @ 0x2c
mem = -1;
8003bee: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
8003bf2: 623b str r3, [r7, #32]
if (attr != NULL) {
8003bf4: 687b ldr r3, [r7, #4]
8003bf6: 2b00 cmp r3, #0
8003bf8: d045 beq.n 8003c86 <osThreadNew+0xea>
if (attr->name != NULL) {
8003bfa: 687b ldr r3, [r7, #4]
8003bfc: 681b ldr r3, [r3, #0]
8003bfe: 2b00 cmp r3, #0
8003c00: d002 beq.n 8003c08 <osThreadNew+0x6c>
name = attr->name;
8003c02: 687b ldr r3, [r7, #4]
8003c04: 681b ldr r3, [r3, #0]
8003c06: 62fb str r3, [r7, #44] @ 0x2c
}
if (attr->priority != osPriorityNone) {
8003c08: 687b ldr r3, [r7, #4]
8003c0a: 699b ldr r3, [r3, #24]
8003c0c: 2b00 cmp r3, #0
8003c0e: d002 beq.n 8003c16 <osThreadNew+0x7a>
prio = (UBaseType_t)attr->priority;
8003c10: 687b ldr r3, [r7, #4]
8003c12: 699b ldr r3, [r3, #24]
8003c14: 627b str r3, [r7, #36] @ 0x24
}
if ((prio < osPriorityIdle) || (prio > osPriorityISR) || ((attr->attr_bits & osThreadJoinable) == osThreadJoinable)) {
8003c16: 6a7b ldr r3, [r7, #36] @ 0x24
8003c18: 2b00 cmp r3, #0
8003c1a: d008 beq.n 8003c2e <osThreadNew+0x92>
8003c1c: 6a7b ldr r3, [r7, #36] @ 0x24
8003c1e: 2b38 cmp r3, #56 @ 0x38
8003c20: d805 bhi.n 8003c2e <osThreadNew+0x92>
8003c22: 687b ldr r3, [r7, #4]
8003c24: 685b ldr r3, [r3, #4]
8003c26: f003 0301 and.w r3, r3, #1
8003c2a: 2b00 cmp r3, #0
8003c2c: d001 beq.n 8003c32 <osThreadNew+0x96>
return (NULL);
8003c2e: 2300 movs r3, #0
8003c30: e054 b.n 8003cdc <osThreadNew+0x140>
}
if (attr->stack_size > 0U) {
8003c32: 687b ldr r3, [r7, #4]
8003c34: 695b ldr r3, [r3, #20]
8003c36: 2b00 cmp r3, #0
8003c38: d003 beq.n 8003c42 <osThreadNew+0xa6>
/* In FreeRTOS stack is not in bytes, but in sizeof(StackType_t) which is 4 on ARM ports. */
/* Stack size should be therefore 4 byte aligned in order to avoid division caused side effects */
stack = attr->stack_size / sizeof(StackType_t);
8003c3a: 687b ldr r3, [r7, #4]
8003c3c: 695b ldr r3, [r3, #20]
8003c3e: 089b lsrs r3, r3, #2
8003c40: 62bb str r3, [r7, #40] @ 0x28
}
if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
8003c42: 687b ldr r3, [r7, #4]
8003c44: 689b ldr r3, [r3, #8]
8003c46: 2b00 cmp r3, #0
8003c48: d00e beq.n 8003c68 <osThreadNew+0xcc>
8003c4a: 687b ldr r3, [r7, #4]
8003c4c: 68db ldr r3, [r3, #12]
8003c4e: 2b5b cmp r3, #91 @ 0x5b
8003c50: d90a bls.n 8003c68 <osThreadNew+0xcc>
(attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
8003c52: 687b ldr r3, [r7, #4]
8003c54: 691b ldr r3, [r3, #16]
if ((attr->cb_mem != NULL) && (attr->cb_size >= sizeof(StaticTask_t)) &&
8003c56: 2b00 cmp r3, #0
8003c58: d006 beq.n 8003c68 <osThreadNew+0xcc>
(attr->stack_mem != NULL) && (attr->stack_size > 0U)) {
8003c5a: 687b ldr r3, [r7, #4]
8003c5c: 695b ldr r3, [r3, #20]
8003c5e: 2b00 cmp r3, #0
8003c60: d002 beq.n 8003c68 <osThreadNew+0xcc>
mem = 1;
8003c62: 2301 movs r3, #1
8003c64: 623b str r3, [r7, #32]
8003c66: e010 b.n 8003c8a <osThreadNew+0xee>
}
else {
if ((attr->cb_mem == NULL) && (attr->cb_size == 0U) && (attr->stack_mem == NULL)) {
8003c68: 687b ldr r3, [r7, #4]
8003c6a: 689b ldr r3, [r3, #8]
8003c6c: 2b00 cmp r3, #0
8003c6e: d10c bne.n 8003c8a <osThreadNew+0xee>
8003c70: 687b ldr r3, [r7, #4]
8003c72: 68db ldr r3, [r3, #12]
8003c74: 2b00 cmp r3, #0
8003c76: d108 bne.n 8003c8a <osThreadNew+0xee>
8003c78: 687b ldr r3, [r7, #4]
8003c7a: 691b ldr r3, [r3, #16]
8003c7c: 2b00 cmp r3, #0
8003c7e: d104 bne.n 8003c8a <osThreadNew+0xee>
mem = 0;
8003c80: 2300 movs r3, #0
8003c82: 623b str r3, [r7, #32]
8003c84: e001 b.n 8003c8a <osThreadNew+0xee>
}
}
}
else {
mem = 0;
8003c86: 2300 movs r3, #0
8003c88: 623b str r3, [r7, #32]
}
if (mem == 1) {
8003c8a: 6a3b ldr r3, [r7, #32]
8003c8c: 2b01 cmp r3, #1
8003c8e: d110 bne.n 8003cb2 <osThreadNew+0x116>
hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
8003c90: 687b ldr r3, [r7, #4]
8003c92: 691b ldr r3, [r3, #16]
(StaticTask_t *)attr->cb_mem);
8003c94: 687a ldr r2, [r7, #4]
8003c96: 6892 ldr r2, [r2, #8]
hTask = xTaskCreateStatic ((TaskFunction_t)func, name, stack, argument, prio, (StackType_t *)attr->stack_mem,
8003c98: 9202 str r2, [sp, #8]
8003c9a: 9301 str r3, [sp, #4]
8003c9c: 6a7b ldr r3, [r7, #36] @ 0x24
8003c9e: 9300 str r3, [sp, #0]
8003ca0: 68bb ldr r3, [r7, #8]
8003ca2: 6aba ldr r2, [r7, #40] @ 0x28
8003ca4: 6af9 ldr r1, [r7, #44] @ 0x2c
8003ca6: 68f8 ldr r0, [r7, #12]
8003ca8: f000 fe4e bl 8004948 <xTaskCreateStatic>
8003cac: 4603 mov r3, r0
8003cae: 613b str r3, [r7, #16]
8003cb0: e013 b.n 8003cda <osThreadNew+0x13e>
}
else {
if (mem == 0) {
8003cb2: 6a3b ldr r3, [r7, #32]
8003cb4: 2b00 cmp r3, #0
8003cb6: d110 bne.n 8003cda <osThreadNew+0x13e>
if (xTaskCreate ((TaskFunction_t)func, name, (uint16_t)stack, argument, prio, &hTask) != pdPASS) {
8003cb8: 6abb ldr r3, [r7, #40] @ 0x28
8003cba: b29a uxth r2, r3
8003cbc: f107 0310 add.w r3, r7, #16
8003cc0: 9301 str r3, [sp, #4]
8003cc2: 6a7b ldr r3, [r7, #36] @ 0x24
8003cc4: 9300 str r3, [sp, #0]
8003cc6: 68bb ldr r3, [r7, #8]
8003cc8: 6af9 ldr r1, [r7, #44] @ 0x2c
8003cca: 68f8 ldr r0, [r7, #12]
8003ccc: f000 fea2 bl 8004a14 <xTaskCreate>
8003cd0: 4603 mov r3, r0
8003cd2: 2b01 cmp r3, #1
8003cd4: d001 beq.n 8003cda <osThreadNew+0x13e>
hTask = NULL;
8003cd6: 2300 movs r3, #0
8003cd8: 613b str r3, [r7, #16]
}
}
}
}
return ((osThreadId_t)hTask);
8003cda: 693b ldr r3, [r7, #16]
}
8003cdc: 4618 mov r0, r3
8003cde: 3730 adds r7, #48 @ 0x30
8003ce0: 46bd mov sp, r7
8003ce2: bd80 pop {r7, pc}
8003ce4: 2000016c .word 0x2000016c
08003ce8 <osDelay>:
/* Return flags before clearing */
return (rflags);
}
osStatus_t osDelay (uint32_t ticks) {
8003ce8: b580 push {r7, lr}
8003cea: b086 sub sp, #24
8003cec: af00 add r7, sp, #0
8003cee: 6078 str r0, [r7, #4]
__ASM volatile ("MRS %0, ipsr" : "=r" (result) );
8003cf0: f3ef 8305 mrs r3, IPSR
8003cf4: 613b str r3, [r7, #16]
return(result);
8003cf6: 693b ldr r3, [r7, #16]
osStatus_t stat;
if (IS_IRQ()) {
8003cf8: 2b00 cmp r3, #0
8003cfa: d10f bne.n 8003d1c <osDelay+0x34>
__ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory");
8003cfc: f3ef 8310 mrs r3, PRIMASK
8003d00: 60fb str r3, [r7, #12]
return(result);
8003d02: 68fb ldr r3, [r7, #12]
8003d04: 2b00 cmp r3, #0
8003d06: d105 bne.n 8003d14 <osDelay+0x2c>
__ASM volatile ("MRS %0, basepri" : "=r" (result) );
8003d08: f3ef 8311 mrs r3, BASEPRI
8003d0c: 60bb str r3, [r7, #8]
return(result);
8003d0e: 68bb ldr r3, [r7, #8]
8003d10: 2b00 cmp r3, #0
8003d12: d007 beq.n 8003d24 <osDelay+0x3c>
8003d14: 4b0a ldr r3, [pc, #40] @ (8003d40 <osDelay+0x58>)
8003d16: 681b ldr r3, [r3, #0]
8003d18: 2b02 cmp r3, #2
8003d1a: d103 bne.n 8003d24 <osDelay+0x3c>
stat = osErrorISR;
8003d1c: f06f 0305 mvn.w r3, #5
8003d20: 617b str r3, [r7, #20]
8003d22: e007 b.n 8003d34 <osDelay+0x4c>
}
else {
stat = osOK;
8003d24: 2300 movs r3, #0
8003d26: 617b str r3, [r7, #20]
if (ticks != 0U) {
8003d28: 687b ldr r3, [r7, #4]
8003d2a: 2b00 cmp r3, #0
8003d2c: d002 beq.n 8003d34 <osDelay+0x4c>
vTaskDelay(ticks);
8003d2e: 6878 ldr r0, [r7, #4]
8003d30: f000 ffb8 bl 8004ca4 <vTaskDelay>
}
}
return (stat);
8003d34: 697b ldr r3, [r7, #20]
}
8003d36: 4618 mov r0, r3
8003d38: 3718 adds r7, #24
8003d3a: 46bd mov sp, r7
8003d3c: bd80 pop {r7, pc}
8003d3e: bf00 nop
8003d40: 2000016c .word 0x2000016c
08003d44 <vApplicationGetIdleTaskMemory>:
/*
vApplicationGetIdleTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
equals to 1 and is required for static memory allocation support.
*/
void vApplicationGetIdleTaskMemory (StaticTask_t **ppxIdleTaskTCBBuffer, StackType_t **ppxIdleTaskStackBuffer, uint32_t *pulIdleTaskStackSize) {
8003d44: b480 push {r7}
8003d46: b085 sub sp, #20
8003d48: af00 add r7, sp, #0
8003d4a: 60f8 str r0, [r7, #12]
8003d4c: 60b9 str r1, [r7, #8]
8003d4e: 607a str r2, [r7, #4]
*ppxIdleTaskTCBBuffer = &Idle_TCB;
8003d50: 68fb ldr r3, [r7, #12]
8003d52: 4a07 ldr r2, [pc, #28] @ (8003d70 <vApplicationGetIdleTaskMemory+0x2c>)
8003d54: 601a str r2, [r3, #0]
*ppxIdleTaskStackBuffer = &Idle_Stack[0];
8003d56: 68bb ldr r3, [r7, #8]
8003d58: 4a06 ldr r2, [pc, #24] @ (8003d74 <vApplicationGetIdleTaskMemory+0x30>)
8003d5a: 601a str r2, [r3, #0]
*pulIdleTaskStackSize = (uint32_t)configMINIMAL_STACK_SIZE;
8003d5c: 687b ldr r3, [r7, #4]
8003d5e: f44f 7280 mov.w r2, #256 @ 0x100
8003d62: 601a str r2, [r3, #0]
}
8003d64: bf00 nop
8003d66: 3714 adds r7, #20
8003d68: 46bd mov sp, r7
8003d6a: f85d 7b04 ldr.w r7, [sp], #4
8003d6e: 4770 bx lr
8003d70: 20000170 .word 0x20000170
8003d74: 200001cc .word 0x200001cc
08003d78 <vApplicationGetTimerTaskMemory>:
/*
vApplicationGetTimerTaskMemory gets called when configSUPPORT_STATIC_ALLOCATION
equals to 1 and is required for static memory allocation support.
*/
void vApplicationGetTimerTaskMemory (StaticTask_t **ppxTimerTaskTCBBuffer, StackType_t **ppxTimerTaskStackBuffer, uint32_t *pulTimerTaskStackSize) {
8003d78: b480 push {r7}
8003d7a: b085 sub sp, #20
8003d7c: af00 add r7, sp, #0
8003d7e: 60f8 str r0, [r7, #12]
8003d80: 60b9 str r1, [r7, #8]
8003d82: 607a str r2, [r7, #4]
*ppxTimerTaskTCBBuffer = &Timer_TCB;
8003d84: 68fb ldr r3, [r7, #12]
8003d86: 4a07 ldr r2, [pc, #28] @ (8003da4 <vApplicationGetTimerTaskMemory+0x2c>)
8003d88: 601a str r2, [r3, #0]
*ppxTimerTaskStackBuffer = &Timer_Stack[0];
8003d8a: 68bb ldr r3, [r7, #8]
8003d8c: 4a06 ldr r2, [pc, #24] @ (8003da8 <vApplicationGetTimerTaskMemory+0x30>)
8003d8e: 601a str r2, [r3, #0]
*pulTimerTaskStackSize = (uint32_t)configTIMER_TASK_STACK_DEPTH;
8003d90: 687b ldr r3, [r7, #4]
8003d92: f44f 7200 mov.w r2, #512 @ 0x200
8003d96: 601a str r2, [r3, #0]
}
8003d98: bf00 nop
8003d9a: 3714 adds r7, #20
8003d9c: 46bd mov sp, r7
8003d9e: f85d 7b04 ldr.w r7, [sp], #4
8003da2: 4770 bx lr
8003da4: 200005cc .word 0x200005cc
8003da8: 20000628 .word 0x20000628
08003dac <vListInitialise>:
/*-----------------------------------------------------------
* PUBLIC LIST API documented in list.h
*----------------------------------------------------------*/
void vListInitialise( List_t * const pxList )
{
8003dac: b480 push {r7}
8003dae: b083 sub sp, #12
8003db0: af00 add r7, sp, #0
8003db2: 6078 str r0, [r7, #4]
/* The list structure contains a list item which is used to mark the
end of the list. To initialise the list the list end is inserted
as the only list entry. */
pxList->pxIndex = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
8003db4: 687b ldr r3, [r7, #4]
8003db6: f103 0208 add.w r2, r3, #8
8003dba: 687b ldr r3, [r7, #4]
8003dbc: 605a str r2, [r3, #4]
/* The list end value is the highest possible value in the list to
ensure it remains at the end of the list. */
pxList->xListEnd.xItemValue = portMAX_DELAY;
8003dbe: 687b ldr r3, [r7, #4]
8003dc0: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
8003dc4: 609a str r2, [r3, #8]
/* The list end next and previous pointers point to itself so we know
when the list is empty. */
pxList->xListEnd.pxNext = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
8003dc6: 687b ldr r3, [r7, #4]
8003dc8: f103 0208 add.w r2, r3, #8
8003dcc: 687b ldr r3, [r7, #4]
8003dce: 60da str r2, [r3, #12]
pxList->xListEnd.pxPrevious = ( ListItem_t * ) &( pxList->xListEnd );/*lint !e826 !e740 !e9087 The mini list structure is used as the list end to save RAM. This is checked and valid. */
8003dd0: 687b ldr r3, [r7, #4]
8003dd2: f103 0208 add.w r2, r3, #8
8003dd6: 687b ldr r3, [r7, #4]
8003dd8: 611a str r2, [r3, #16]
pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
8003dda: 687b ldr r3, [r7, #4]
8003ddc: 2200 movs r2, #0
8003dde: 601a str r2, [r3, #0]
/* Write known values into the list if
configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
}
8003de0: bf00 nop
8003de2: 370c adds r7, #12
8003de4: 46bd mov sp, r7
8003de6: f85d 7b04 ldr.w r7, [sp], #4
8003dea: 4770 bx lr
08003dec <vListInitialiseItem>:
/*-----------------------------------------------------------*/
void vListInitialiseItem( ListItem_t * const pxItem )
{
8003dec: b480 push {r7}
8003dee: b083 sub sp, #12
8003df0: af00 add r7, sp, #0
8003df2: 6078 str r0, [r7, #4]
/* Make sure the list item is not recorded as being on a list. */
pxItem->pxContainer = NULL;
8003df4: 687b ldr r3, [r7, #4]
8003df6: 2200 movs r2, #0
8003df8: 611a str r2, [r3, #16]
/* Write known values into the list item if
configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
}
8003dfa: bf00 nop
8003dfc: 370c adds r7, #12
8003dfe: 46bd mov sp, r7
8003e00: f85d 7b04 ldr.w r7, [sp], #4
8003e04: 4770 bx lr
08003e06 <vListInsertEnd>:
/*-----------------------------------------------------------*/
void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
{
8003e06: b480 push {r7}
8003e08: b085 sub sp, #20
8003e0a: af00 add r7, sp, #0
8003e0c: 6078 str r0, [r7, #4]
8003e0e: 6039 str r1, [r7, #0]
ListItem_t * const pxIndex = pxList->pxIndex;
8003e10: 687b ldr r3, [r7, #4]
8003e12: 685b ldr r3, [r3, #4]
8003e14: 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;
8003e16: 683b ldr r3, [r7, #0]
8003e18: 68fa ldr r2, [r7, #12]
8003e1a: 605a str r2, [r3, #4]
pxNewListItem->pxPrevious = pxIndex->pxPrevious;
8003e1c: 68fb ldr r3, [r7, #12]
8003e1e: 689a ldr r2, [r3, #8]
8003e20: 683b ldr r3, [r7, #0]
8003e22: 609a str r2, [r3, #8]
/* Only used during decision coverage testing. */
mtCOVERAGE_TEST_DELAY();
pxIndex->pxPrevious->pxNext = pxNewListItem;
8003e24: 68fb ldr r3, [r7, #12]
8003e26: 689b ldr r3, [r3, #8]
8003e28: 683a ldr r2, [r7, #0]
8003e2a: 605a str r2, [r3, #4]
pxIndex->pxPrevious = pxNewListItem;
8003e2c: 68fb ldr r3, [r7, #12]
8003e2e: 683a ldr r2, [r7, #0]
8003e30: 609a str r2, [r3, #8]
/* Remember which list the item is in. */
pxNewListItem->pxContainer = pxList;
8003e32: 683b ldr r3, [r7, #0]
8003e34: 687a ldr r2, [r7, #4]
8003e36: 611a str r2, [r3, #16]
( pxList->uxNumberOfItems )++;
8003e38: 687b ldr r3, [r7, #4]
8003e3a: 681b ldr r3, [r3, #0]
8003e3c: 1c5a adds r2, r3, #1
8003e3e: 687b ldr r3, [r7, #4]
8003e40: 601a str r2, [r3, #0]
}
8003e42: bf00 nop
8003e44: 3714 adds r7, #20
8003e46: 46bd mov sp, r7
8003e48: f85d 7b04 ldr.w r7, [sp], #4
8003e4c: 4770 bx lr
08003e4e <vListInsert>:
/*-----------------------------------------------------------*/
void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
{
8003e4e: b480 push {r7}
8003e50: b085 sub sp, #20
8003e52: af00 add r7, sp, #0
8003e54: 6078 str r0, [r7, #4]
8003e56: 6039 str r1, [r7, #0]
ListItem_t *pxIterator;
const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
8003e58: 683b ldr r3, [r7, #0]
8003e5a: 681b ldr r3, [r3, #0]
8003e5c: 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 )
8003e5e: 68bb ldr r3, [r7, #8]
8003e60: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
8003e64: d103 bne.n 8003e6e <vListInsert+0x20>
{
pxIterator = pxList->xListEnd.pxPrevious;
8003e66: 687b ldr r3, [r7, #4]
8003e68: 691b ldr r3, [r3, #16]
8003e6a: 60fb str r3, [r7, #12]
8003e6c: e00c b.n 8003e88 <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. */
8003e6e: 687b ldr r3, [r7, #4]
8003e70: 3308 adds r3, #8
8003e72: 60fb str r3, [r7, #12]
8003e74: e002 b.n 8003e7c <vListInsert+0x2e>
8003e76: 68fb ldr r3, [r7, #12]
8003e78: 685b ldr r3, [r3, #4]
8003e7a: 60fb str r3, [r7, #12]
8003e7c: 68fb ldr r3, [r7, #12]
8003e7e: 685b ldr r3, [r3, #4]
8003e80: 681b ldr r3, [r3, #0]
8003e82: 68ba ldr r2, [r7, #8]
8003e84: 429a cmp r2, r3
8003e86: d2f6 bcs.n 8003e76 <vListInsert+0x28>
/* There is nothing to do here, just iterating to the wanted
insertion position. */
}
}
pxNewListItem->pxNext = pxIterator->pxNext;
8003e88: 68fb ldr r3, [r7, #12]
8003e8a: 685a ldr r2, [r3, #4]
8003e8c: 683b ldr r3, [r7, #0]
8003e8e: 605a str r2, [r3, #4]
pxNewListItem->pxNext->pxPrevious = pxNewListItem;
8003e90: 683b ldr r3, [r7, #0]
8003e92: 685b ldr r3, [r3, #4]
8003e94: 683a ldr r2, [r7, #0]
8003e96: 609a str r2, [r3, #8]
pxNewListItem->pxPrevious = pxIterator;
8003e98: 683b ldr r3, [r7, #0]
8003e9a: 68fa ldr r2, [r7, #12]
8003e9c: 609a str r2, [r3, #8]
pxIterator->pxNext = pxNewListItem;
8003e9e: 68fb ldr r3, [r7, #12]
8003ea0: 683a ldr r2, [r7, #0]
8003ea2: 605a str r2, [r3, #4]
/* Remember which list the item is in. This allows fast removal of the
item later. */
pxNewListItem->pxContainer = pxList;
8003ea4: 683b ldr r3, [r7, #0]
8003ea6: 687a ldr r2, [r7, #4]
8003ea8: 611a str r2, [r3, #16]
( pxList->uxNumberOfItems )++;
8003eaa: 687b ldr r3, [r7, #4]
8003eac: 681b ldr r3, [r3, #0]
8003eae: 1c5a adds r2, r3, #1
8003eb0: 687b ldr r3, [r7, #4]
8003eb2: 601a str r2, [r3, #0]
}
8003eb4: bf00 nop
8003eb6: 3714 adds r7, #20
8003eb8: 46bd mov sp, r7
8003eba: f85d 7b04 ldr.w r7, [sp], #4
8003ebe: 4770 bx lr
08003ec0 <uxListRemove>:
/*-----------------------------------------------------------*/
UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
{
8003ec0: b480 push {r7}
8003ec2: b085 sub sp, #20
8003ec4: af00 add r7, sp, #0
8003ec6: 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;
8003ec8: 687b ldr r3, [r7, #4]
8003eca: 691b ldr r3, [r3, #16]
8003ecc: 60fb str r3, [r7, #12]
pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
8003ece: 687b ldr r3, [r7, #4]
8003ed0: 685b ldr r3, [r3, #4]
8003ed2: 687a ldr r2, [r7, #4]
8003ed4: 6892 ldr r2, [r2, #8]
8003ed6: 609a str r2, [r3, #8]
pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
8003ed8: 687b ldr r3, [r7, #4]
8003eda: 689b ldr r3, [r3, #8]
8003edc: 687a ldr r2, [r7, #4]
8003ede: 6852 ldr r2, [r2, #4]
8003ee0: 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 )
8003ee2: 68fb ldr r3, [r7, #12]
8003ee4: 685b ldr r3, [r3, #4]
8003ee6: 687a ldr r2, [r7, #4]
8003ee8: 429a cmp r2, r3
8003eea: d103 bne.n 8003ef4 <uxListRemove+0x34>
{
pxList->pxIndex = pxItemToRemove->pxPrevious;
8003eec: 687b ldr r3, [r7, #4]
8003eee: 689a ldr r2, [r3, #8]
8003ef0: 68fb ldr r3, [r7, #12]
8003ef2: 605a str r2, [r3, #4]
else
{
mtCOVERAGE_TEST_MARKER();
}
pxItemToRemove->pxContainer = NULL;
8003ef4: 687b ldr r3, [r7, #4]
8003ef6: 2200 movs r2, #0
8003ef8: 611a str r2, [r3, #16]
( pxList->uxNumberOfItems )--;
8003efa: 68fb ldr r3, [r7, #12]
8003efc: 681b ldr r3, [r3, #0]
8003efe: 1e5a subs r2, r3, #1
8003f00: 68fb ldr r3, [r7, #12]
8003f02: 601a str r2, [r3, #0]
return pxList->uxNumberOfItems;
8003f04: 68fb ldr r3, [r7, #12]
8003f06: 681b ldr r3, [r3, #0]
}
8003f08: 4618 mov r0, r3
8003f0a: 3714 adds r7, #20
8003f0c: 46bd mov sp, r7
8003f0e: f85d 7b04 ldr.w r7, [sp], #4
8003f12: 4770 bx lr
08003f14 <xQueueGenericReset>:
} \
taskEXIT_CRITICAL()
/*-----------------------------------------------------------*/
BaseType_t xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue )
{
8003f14: b580 push {r7, lr}
8003f16: b084 sub sp, #16
8003f18: af00 add r7, sp, #0
8003f1a: 6078 str r0, [r7, #4]
8003f1c: 6039 str r1, [r7, #0]
Queue_t * const pxQueue = xQueue;
8003f1e: 687b ldr r3, [r7, #4]
8003f20: 60fb str r3, [r7, #12]
configASSERT( pxQueue );
8003f22: 68fb ldr r3, [r7, #12]
8003f24: 2b00 cmp r3, #0
8003f26: d10d bne.n 8003f44 <xQueueGenericReset+0x30>
portFORCE_INLINE static void vPortRaiseBASEPRI( void )
{
uint32_t ulNewBASEPRI;
__asm volatile
8003f28: f04f 0350 mov.w r3, #80 @ 0x50
8003f2c: b672 cpsid i
8003f2e: f383 8811 msr BASEPRI, r3
8003f32: f3bf 8f6f isb sy
8003f36: f3bf 8f4f dsb sy
8003f3a: b662 cpsie i
8003f3c: 60bb str r3, [r7, #8]
" isb \n" \
" dsb \n" \
" cpsie i \n" \
:"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) : "memory"
);
}
8003f3e: bf00 nop
8003f40: bf00 nop
8003f42: e7fd b.n 8003f40 <xQueueGenericReset+0x2c>
taskENTER_CRITICAL();
8003f44: f002 f8aa bl 800609c <vPortEnterCritical>
{
pxQueue->u.xQueue.pcTail = pxQueue->pcHead + ( pxQueue->uxLength * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
8003f48: 68fb ldr r3, [r7, #12]
8003f4a: 681a ldr r2, [r3, #0]
8003f4c: 68fb ldr r3, [r7, #12]
8003f4e: 6bdb ldr r3, [r3, #60] @ 0x3c
8003f50: 68f9 ldr r1, [r7, #12]
8003f52: 6c09 ldr r1, [r1, #64] @ 0x40
8003f54: fb01 f303 mul.w r3, r1, r3
8003f58: 441a add r2, r3
8003f5a: 68fb ldr r3, [r7, #12]
8003f5c: 609a str r2, [r3, #8]
pxQueue->uxMessagesWaiting = ( UBaseType_t ) 0U;
8003f5e: 68fb ldr r3, [r7, #12]
8003f60: 2200 movs r2, #0
8003f62: 639a str r2, [r3, #56] @ 0x38
pxQueue->pcWriteTo = pxQueue->pcHead;
8003f64: 68fb ldr r3, [r7, #12]
8003f66: 681a ldr r2, [r3, #0]
8003f68: 68fb ldr r3, [r7, #12]
8003f6a: 605a str r2, [r3, #4]
pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead + ( ( pxQueue->uxLength - 1U ) * pxQueue->uxItemSize ); /*lint !e9016 Pointer arithmetic allowed on char types, especially when it assists conveying intent. */
8003f6c: 68fb ldr r3, [r7, #12]
8003f6e: 681a ldr r2, [r3, #0]
8003f70: 68fb ldr r3, [r7, #12]
8003f72: 6bdb ldr r3, [r3, #60] @ 0x3c
8003f74: 3b01 subs r3, #1
8003f76: 68f9 ldr r1, [r7, #12]
8003f78: 6c09 ldr r1, [r1, #64] @ 0x40
8003f7a: fb01 f303 mul.w r3, r1, r3
8003f7e: 441a add r2, r3
8003f80: 68fb ldr r3, [r7, #12]
8003f82: 60da str r2, [r3, #12]
pxQueue->cRxLock = queueUNLOCKED;
8003f84: 68fb ldr r3, [r7, #12]
8003f86: 22ff movs r2, #255 @ 0xff
8003f88: f883 2044 strb.w r2, [r3, #68] @ 0x44
pxQueue->cTxLock = queueUNLOCKED;
8003f8c: 68fb ldr r3, [r7, #12]
8003f8e: 22ff movs r2, #255 @ 0xff
8003f90: f883 2045 strb.w r2, [r3, #69] @ 0x45
if( xNewQueue == pdFALSE )
8003f94: 683b ldr r3, [r7, #0]
8003f96: 2b00 cmp r3, #0
8003f98: d114 bne.n 8003fc4 <xQueueGenericReset+0xb0>
/* If there are tasks blocked waiting to read from the queue, then
the tasks will remain blocked as after this function exits the queue
will still be empty. If there are tasks blocked waiting to write to
the queue, then one should be unblocked as after this function exits
it will be possible to write to it. */
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
8003f9a: 68fb ldr r3, [r7, #12]
8003f9c: 691b ldr r3, [r3, #16]
8003f9e: 2b00 cmp r3, #0
8003fa0: d01a beq.n 8003fd8 <xQueueGenericReset+0xc4>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
8003fa2: 68fb ldr r3, [r7, #12]
8003fa4: 3310 adds r3, #16
8003fa6: 4618 mov r0, r3
8003fa8: f001 f950 bl 800524c <xTaskRemoveFromEventList>
8003fac: 4603 mov r3, r0
8003fae: 2b00 cmp r3, #0
8003fb0: d012 beq.n 8003fd8 <xQueueGenericReset+0xc4>
{
queueYIELD_IF_USING_PREEMPTION();
8003fb2: 4b0d ldr r3, [pc, #52] @ (8003fe8 <xQueueGenericReset+0xd4>)
8003fb4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
8003fb8: 601a str r2, [r3, #0]
8003fba: f3bf 8f4f dsb sy
8003fbe: f3bf 8f6f isb sy
8003fc2: e009 b.n 8003fd8 <xQueueGenericReset+0xc4>
}
}
else
{
/* Ensure the event queues start in the correct state. */
vListInitialise( &( pxQueue->xTasksWaitingToSend ) );
8003fc4: 68fb ldr r3, [r7, #12]
8003fc6: 3310 adds r3, #16
8003fc8: 4618 mov r0, r3
8003fca: f7ff feef bl 8003dac <vListInitialise>
vListInitialise( &( pxQueue->xTasksWaitingToReceive ) );
8003fce: 68fb ldr r3, [r7, #12]
8003fd0: 3324 adds r3, #36 @ 0x24
8003fd2: 4618 mov r0, r3
8003fd4: f7ff feea bl 8003dac <vListInitialise>
}
}
taskEXIT_CRITICAL();
8003fd8: f002 f896 bl 8006108 <vPortExitCritical>
/* A value is returned for calling semantic consistency with previous
versions. */
return pdPASS;
8003fdc: 2301 movs r3, #1
}
8003fde: 4618 mov r0, r3
8003fe0: 3710 adds r7, #16
8003fe2: 46bd mov sp, r7
8003fe4: bd80 pop {r7, pc}
8003fe6: bf00 nop
8003fe8: e000ed04 .word 0xe000ed04
08003fec <xQueueGenericCreateStatic>:
/*-----------------------------------------------------------*/
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
QueueHandle_t xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType )
{
8003fec: b580 push {r7, lr}
8003fee: b08e sub sp, #56 @ 0x38
8003ff0: af02 add r7, sp, #8
8003ff2: 60f8 str r0, [r7, #12]
8003ff4: 60b9 str r1, [r7, #8]
8003ff6: 607a str r2, [r7, #4]
8003ff8: 603b str r3, [r7, #0]
Queue_t *pxNewQueue;
configASSERT( uxQueueLength > ( UBaseType_t ) 0 );
8003ffa: 68fb ldr r3, [r7, #12]
8003ffc: 2b00 cmp r3, #0
8003ffe: d10d bne.n 800401c <xQueueGenericCreateStatic+0x30>
__asm volatile
8004000: f04f 0350 mov.w r3, #80 @ 0x50
8004004: b672 cpsid i
8004006: f383 8811 msr BASEPRI, r3
800400a: f3bf 8f6f isb sy
800400e: f3bf 8f4f dsb sy
8004012: b662 cpsie i
8004014: 62bb str r3, [r7, #40] @ 0x28
}
8004016: bf00 nop
8004018: bf00 nop
800401a: e7fd b.n 8004018 <xQueueGenericCreateStatic+0x2c>
/* The StaticQueue_t structure and the queue storage area must be
supplied. */
configASSERT( pxStaticQueue != NULL );
800401c: 683b ldr r3, [r7, #0]
800401e: 2b00 cmp r3, #0
8004020: d10d bne.n 800403e <xQueueGenericCreateStatic+0x52>
__asm volatile
8004022: f04f 0350 mov.w r3, #80 @ 0x50
8004026: b672 cpsid i
8004028: f383 8811 msr BASEPRI, r3
800402c: f3bf 8f6f isb sy
8004030: f3bf 8f4f dsb sy
8004034: b662 cpsie i
8004036: 627b str r3, [r7, #36] @ 0x24
}
8004038: bf00 nop
800403a: bf00 nop
800403c: e7fd b.n 800403a <xQueueGenericCreateStatic+0x4e>
/* A queue storage area should be provided if the item size is not 0, and
should not be provided if the item size is 0. */
configASSERT( !( ( pucQueueStorage != NULL ) && ( uxItemSize == 0 ) ) );
800403e: 687b ldr r3, [r7, #4]
8004040: 2b00 cmp r3, #0
8004042: d002 beq.n 800404a <xQueueGenericCreateStatic+0x5e>
8004044: 68bb ldr r3, [r7, #8]
8004046: 2b00 cmp r3, #0
8004048: d001 beq.n 800404e <xQueueGenericCreateStatic+0x62>
800404a: 2301 movs r3, #1
800404c: e000 b.n 8004050 <xQueueGenericCreateStatic+0x64>
800404e: 2300 movs r3, #0
8004050: 2b00 cmp r3, #0
8004052: d10d bne.n 8004070 <xQueueGenericCreateStatic+0x84>
__asm volatile
8004054: f04f 0350 mov.w r3, #80 @ 0x50
8004058: b672 cpsid i
800405a: f383 8811 msr BASEPRI, r3
800405e: f3bf 8f6f isb sy
8004062: f3bf 8f4f dsb sy
8004066: b662 cpsie i
8004068: 623b str r3, [r7, #32]
}
800406a: bf00 nop
800406c: bf00 nop
800406e: e7fd b.n 800406c <xQueueGenericCreateStatic+0x80>
configASSERT( !( ( pucQueueStorage == NULL ) && ( uxItemSize != 0 ) ) );
8004070: 687b ldr r3, [r7, #4]
8004072: 2b00 cmp r3, #0
8004074: d102 bne.n 800407c <xQueueGenericCreateStatic+0x90>
8004076: 68bb ldr r3, [r7, #8]
8004078: 2b00 cmp r3, #0
800407a: d101 bne.n 8004080 <xQueueGenericCreateStatic+0x94>
800407c: 2301 movs r3, #1
800407e: e000 b.n 8004082 <xQueueGenericCreateStatic+0x96>
8004080: 2300 movs r3, #0
8004082: 2b00 cmp r3, #0
8004084: d10d bne.n 80040a2 <xQueueGenericCreateStatic+0xb6>
__asm volatile
8004086: f04f 0350 mov.w r3, #80 @ 0x50
800408a: b672 cpsid i
800408c: f383 8811 msr BASEPRI, r3
8004090: f3bf 8f6f isb sy
8004094: f3bf 8f4f dsb sy
8004098: b662 cpsie i
800409a: 61fb str r3, [r7, #28]
}
800409c: bf00 nop
800409e: bf00 nop
80040a0: e7fd b.n 800409e <xQueueGenericCreateStatic+0xb2>
#if( configASSERT_DEFINED == 1 )
{
/* Sanity check that the size of the structure used to declare a
variable of type StaticQueue_t or StaticSemaphore_t equals the size of
the real queue and semaphore structures. */
volatile size_t xSize = sizeof( StaticQueue_t );
80040a2: 2350 movs r3, #80 @ 0x50
80040a4: 617b str r3, [r7, #20]
configASSERT( xSize == sizeof( Queue_t ) );
80040a6: 697b ldr r3, [r7, #20]
80040a8: 2b50 cmp r3, #80 @ 0x50
80040aa: d00d beq.n 80040c8 <xQueueGenericCreateStatic+0xdc>
__asm volatile
80040ac: f04f 0350 mov.w r3, #80 @ 0x50
80040b0: b672 cpsid i
80040b2: f383 8811 msr BASEPRI, r3
80040b6: f3bf 8f6f isb sy
80040ba: f3bf 8f4f dsb sy
80040be: b662 cpsie i
80040c0: 61bb str r3, [r7, #24]
}
80040c2: bf00 nop
80040c4: bf00 nop
80040c6: e7fd b.n 80040c4 <xQueueGenericCreateStatic+0xd8>
( void ) xSize; /* Keeps lint quiet when configASSERT() is not defined. */
80040c8: 697b ldr r3, [r7, #20]
#endif /* configASSERT_DEFINED */
/* The address of a statically allocated queue was passed in, use it.
The address of a statically allocated storage area was also passed in
but is already set. */
pxNewQueue = ( Queue_t * ) pxStaticQueue; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */
80040ca: 683b ldr r3, [r7, #0]
80040cc: 62fb str r3, [r7, #44] @ 0x2c
if( pxNewQueue != NULL )
80040ce: 6afb ldr r3, [r7, #44] @ 0x2c
80040d0: 2b00 cmp r3, #0
80040d2: d00d beq.n 80040f0 <xQueueGenericCreateStatic+0x104>
#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
{
/* Queues can be allocated wither statically or dynamically, so
note this queue was allocated statically in case the queue is
later deleted. */
pxNewQueue->ucStaticallyAllocated = pdTRUE;
80040d4: 6afb ldr r3, [r7, #44] @ 0x2c
80040d6: 2201 movs r2, #1
80040d8: f883 2046 strb.w r2, [r3, #70] @ 0x46
}
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue );
80040dc: f897 2038 ldrb.w r2, [r7, #56] @ 0x38
80040e0: 6afb ldr r3, [r7, #44] @ 0x2c
80040e2: 9300 str r3, [sp, #0]
80040e4: 4613 mov r3, r2
80040e6: 687a ldr r2, [r7, #4]
80040e8: 68b9 ldr r1, [r7, #8]
80040ea: 68f8 ldr r0, [r7, #12]
80040ec: f000 f805 bl 80040fa <prvInitialiseNewQueue>
{
traceQUEUE_CREATE_FAILED( ucQueueType );
mtCOVERAGE_TEST_MARKER();
}
return pxNewQueue;
80040f0: 6afb ldr r3, [r7, #44] @ 0x2c
}
80040f2: 4618 mov r0, r3
80040f4: 3730 adds r7, #48 @ 0x30
80040f6: 46bd mov sp, r7
80040f8: bd80 pop {r7, pc}
080040fa <prvInitialiseNewQueue>:
#endif /* configSUPPORT_STATIC_ALLOCATION */
/*-----------------------------------------------------------*/
static void prvInitialiseNewQueue( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue )
{
80040fa: b580 push {r7, lr}
80040fc: b084 sub sp, #16
80040fe: af00 add r7, sp, #0
8004100: 60f8 str r0, [r7, #12]
8004102: 60b9 str r1, [r7, #8]
8004104: 607a str r2, [r7, #4]
8004106: 70fb strb r3, [r7, #3]
/* Remove compiler warnings about unused parameters should
configUSE_TRACE_FACILITY not be set to 1. */
( void ) ucQueueType;
if( uxItemSize == ( UBaseType_t ) 0 )
8004108: 68bb ldr r3, [r7, #8]
800410a: 2b00 cmp r3, #0
800410c: d103 bne.n 8004116 <prvInitialiseNewQueue+0x1c>
{
/* No RAM was allocated for the queue storage area, but PC head cannot
be set to NULL because NULL is used as a key to say the queue is used as
a mutex. Therefore just set pcHead to point to the queue as a benign
value that is known to be within the memory map. */
pxNewQueue->pcHead = ( int8_t * ) pxNewQueue;
800410e: 69bb ldr r3, [r7, #24]
8004110: 69ba ldr r2, [r7, #24]
8004112: 601a str r2, [r3, #0]
8004114: e002 b.n 800411c <prvInitialiseNewQueue+0x22>
}
else
{
/* Set the head to the start of the queue storage area. */
pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage;
8004116: 69bb ldr r3, [r7, #24]
8004118: 687a ldr r2, [r7, #4]
800411a: 601a str r2, [r3, #0]
}
/* Initialise the queue members as described where the queue type is
defined. */
pxNewQueue->uxLength = uxQueueLength;
800411c: 69bb ldr r3, [r7, #24]
800411e: 68fa ldr r2, [r7, #12]
8004120: 63da str r2, [r3, #60] @ 0x3c
pxNewQueue->uxItemSize = uxItemSize;
8004122: 69bb ldr r3, [r7, #24]
8004124: 68ba ldr r2, [r7, #8]
8004126: 641a str r2, [r3, #64] @ 0x40
( void ) xQueueGenericReset( pxNewQueue, pdTRUE );
8004128: 2101 movs r1, #1
800412a: 69b8 ldr r0, [r7, #24]
800412c: f7ff fef2 bl 8003f14 <xQueueGenericReset>
#if ( configUSE_TRACE_FACILITY == 1 )
{
pxNewQueue->ucQueueType = ucQueueType;
8004130: 69bb ldr r3, [r7, #24]
8004132: 78fa ldrb r2, [r7, #3]
8004134: f883 204c strb.w r2, [r3, #76] @ 0x4c
pxNewQueue->pxQueueSetContainer = NULL;
}
#endif /* configUSE_QUEUE_SETS */
traceQUEUE_CREATE( pxNewQueue );
}
8004138: bf00 nop
800413a: 3710 adds r7, #16
800413c: 46bd mov sp, r7
800413e: bd80 pop {r7, pc}
08004140 <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 )
{
8004140: b580 push {r7, lr}
8004142: b08e sub sp, #56 @ 0x38
8004144: af00 add r7, sp, #0
8004146: 60f8 str r0, [r7, #12]
8004148: 60b9 str r1, [r7, #8]
800414a: 607a str r2, [r7, #4]
800414c: 603b str r3, [r7, #0]
BaseType_t xEntryTimeSet = pdFALSE, xYieldRequired;
800414e: 2300 movs r3, #0
8004150: 637b str r3, [r7, #52] @ 0x34
TimeOut_t xTimeOut;
Queue_t * const pxQueue = xQueue;
8004152: 68fb ldr r3, [r7, #12]
8004154: 633b str r3, [r7, #48] @ 0x30
configASSERT( pxQueue );
8004156: 6b3b ldr r3, [r7, #48] @ 0x30
8004158: 2b00 cmp r3, #0
800415a: d10d bne.n 8004178 <xQueueGenericSend+0x38>
__asm volatile
800415c: f04f 0350 mov.w r3, #80 @ 0x50
8004160: b672 cpsid i
8004162: f383 8811 msr BASEPRI, r3
8004166: f3bf 8f6f isb sy
800416a: f3bf 8f4f dsb sy
800416e: b662 cpsie i
8004170: 62bb str r3, [r7, #40] @ 0x28
}
8004172: bf00 nop
8004174: bf00 nop
8004176: e7fd b.n 8004174 <xQueueGenericSend+0x34>
configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
8004178: 68bb ldr r3, [r7, #8]
800417a: 2b00 cmp r3, #0
800417c: d103 bne.n 8004186 <xQueueGenericSend+0x46>
800417e: 6b3b ldr r3, [r7, #48] @ 0x30
8004180: 6c1b ldr r3, [r3, #64] @ 0x40
8004182: 2b00 cmp r3, #0
8004184: d101 bne.n 800418a <xQueueGenericSend+0x4a>
8004186: 2301 movs r3, #1
8004188: e000 b.n 800418c <xQueueGenericSend+0x4c>
800418a: 2300 movs r3, #0
800418c: 2b00 cmp r3, #0
800418e: d10d bne.n 80041ac <xQueueGenericSend+0x6c>
__asm volatile
8004190: f04f 0350 mov.w r3, #80 @ 0x50
8004194: b672 cpsid i
8004196: f383 8811 msr BASEPRI, r3
800419a: f3bf 8f6f isb sy
800419e: f3bf 8f4f dsb sy
80041a2: b662 cpsie i
80041a4: 627b str r3, [r7, #36] @ 0x24
}
80041a6: bf00 nop
80041a8: bf00 nop
80041aa: e7fd b.n 80041a8 <xQueueGenericSend+0x68>
configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
80041ac: 683b ldr r3, [r7, #0]
80041ae: 2b02 cmp r3, #2
80041b0: d103 bne.n 80041ba <xQueueGenericSend+0x7a>
80041b2: 6b3b ldr r3, [r7, #48] @ 0x30
80041b4: 6bdb ldr r3, [r3, #60] @ 0x3c
80041b6: 2b01 cmp r3, #1
80041b8: d101 bne.n 80041be <xQueueGenericSend+0x7e>
80041ba: 2301 movs r3, #1
80041bc: e000 b.n 80041c0 <xQueueGenericSend+0x80>
80041be: 2300 movs r3, #0
80041c0: 2b00 cmp r3, #0
80041c2: d10d bne.n 80041e0 <xQueueGenericSend+0xa0>
__asm volatile
80041c4: f04f 0350 mov.w r3, #80 @ 0x50
80041c8: b672 cpsid i
80041ca: f383 8811 msr BASEPRI, r3
80041ce: f3bf 8f6f isb sy
80041d2: f3bf 8f4f dsb sy
80041d6: b662 cpsie i
80041d8: 623b str r3, [r7, #32]
}
80041da: bf00 nop
80041dc: bf00 nop
80041de: e7fd b.n 80041dc <xQueueGenericSend+0x9c>
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
{
configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
80041e0: f001 f9fc bl 80055dc <xTaskGetSchedulerState>
80041e4: 4603 mov r3, r0
80041e6: 2b00 cmp r3, #0
80041e8: d102 bne.n 80041f0 <xQueueGenericSend+0xb0>
80041ea: 687b ldr r3, [r7, #4]
80041ec: 2b00 cmp r3, #0
80041ee: d101 bne.n 80041f4 <xQueueGenericSend+0xb4>
80041f0: 2301 movs r3, #1
80041f2: e000 b.n 80041f6 <xQueueGenericSend+0xb6>
80041f4: 2300 movs r3, #0
80041f6: 2b00 cmp r3, #0
80041f8: d10d bne.n 8004216 <xQueueGenericSend+0xd6>
__asm volatile
80041fa: f04f 0350 mov.w r3, #80 @ 0x50
80041fe: b672 cpsid i
8004200: f383 8811 msr BASEPRI, r3
8004204: f3bf 8f6f isb sy
8004208: f3bf 8f4f dsb sy
800420c: b662 cpsie i
800420e: 61fb str r3, [r7, #28]
}
8004210: bf00 nop
8004212: bf00 nop
8004214: e7fd b.n 8004212 <xQueueGenericSend+0xd2>
/*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();
8004216: f001 ff41 bl 800609c <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 ) )
800421a: 6b3b ldr r3, [r7, #48] @ 0x30
800421c: 6b9a ldr r2, [r3, #56] @ 0x38
800421e: 6b3b ldr r3, [r7, #48] @ 0x30
8004220: 6bdb ldr r3, [r3, #60] @ 0x3c
8004222: 429a cmp r2, r3
8004224: d302 bcc.n 800422c <xQueueGenericSend+0xec>
8004226: 683b ldr r3, [r7, #0]
8004228: 2b02 cmp r3, #2
800422a: d129 bne.n 8004280 <xQueueGenericSend+0x140>
}
}
}
#else /* configUSE_QUEUE_SETS */
{
xYieldRequired = prvCopyDataToQueue( pxQueue, pvItemToQueue, xCopyPosition );
800422c: 683a ldr r2, [r7, #0]
800422e: 68b9 ldr r1, [r7, #8]
8004230: 6b38 ldr r0, [r7, #48] @ 0x30
8004232: f000 fa1b bl 800466c <prvCopyDataToQueue>
8004236: 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 )
8004238: 6b3b ldr r3, [r7, #48] @ 0x30
800423a: 6a5b ldr r3, [r3, #36] @ 0x24
800423c: 2b00 cmp r3, #0
800423e: d010 beq.n 8004262 <xQueueGenericSend+0x122>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
8004240: 6b3b ldr r3, [r7, #48] @ 0x30
8004242: 3324 adds r3, #36 @ 0x24
8004244: 4618 mov r0, r3
8004246: f001 f801 bl 800524c <xTaskRemoveFromEventList>
800424a: 4603 mov r3, r0
800424c: 2b00 cmp r3, #0
800424e: d013 beq.n 8004278 <xQueueGenericSend+0x138>
{
/* 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();
8004250: 4b3f ldr r3, [pc, #252] @ (8004350 <xQueueGenericSend+0x210>)
8004252: f04f 5280 mov.w r2, #268435456 @ 0x10000000
8004256: 601a str r2, [r3, #0]
8004258: f3bf 8f4f dsb sy
800425c: f3bf 8f6f isb sy
8004260: e00a b.n 8004278 <xQueueGenericSend+0x138>
else
{
mtCOVERAGE_TEST_MARKER();
}
}
else if( xYieldRequired != pdFALSE )
8004262: 6afb ldr r3, [r7, #44] @ 0x2c
8004264: 2b00 cmp r3, #0
8004266: d007 beq.n 8004278 <xQueueGenericSend+0x138>
{
/* 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();
8004268: 4b39 ldr r3, [pc, #228] @ (8004350 <xQueueGenericSend+0x210>)
800426a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
800426e: 601a str r2, [r3, #0]
8004270: f3bf 8f4f dsb sy
8004274: f3bf 8f6f isb sy
mtCOVERAGE_TEST_MARKER();
}
}
#endif /* configUSE_QUEUE_SETS */
taskEXIT_CRITICAL();
8004278: f001 ff46 bl 8006108 <vPortExitCritical>
return pdPASS;
800427c: 2301 movs r3, #1
800427e: e063 b.n 8004348 <xQueueGenericSend+0x208>
}
else
{
if( xTicksToWait == ( TickType_t ) 0 )
8004280: 687b ldr r3, [r7, #4]
8004282: 2b00 cmp r3, #0
8004284: d103 bne.n 800428e <xQueueGenericSend+0x14e>
{
/* The queue was full and no block time is specified (or
the block time has expired) so leave now. */
taskEXIT_CRITICAL();
8004286: f001 ff3f bl 8006108 <vPortExitCritical>
/* Return to the original privilege level before exiting
the function. */
traceQUEUE_SEND_FAILED( pxQueue );
return errQUEUE_FULL;
800428a: 2300 movs r3, #0
800428c: e05c b.n 8004348 <xQueueGenericSend+0x208>
}
else if( xEntryTimeSet == pdFALSE )
800428e: 6b7b ldr r3, [r7, #52] @ 0x34
8004290: 2b00 cmp r3, #0
8004292: d106 bne.n 80042a2 <xQueueGenericSend+0x162>
{
/* The queue was full and a block time was specified so
configure the timeout structure. */
vTaskInternalSetTimeOutState( &xTimeOut );
8004294: f107 0314 add.w r3, r7, #20
8004298: 4618 mov r0, r3
800429a: f001 f83d bl 8005318 <vTaskInternalSetTimeOutState>
xEntryTimeSet = pdTRUE;
800429e: 2301 movs r3, #1
80042a0: 637b str r3, [r7, #52] @ 0x34
/* Entry time was already set. */
mtCOVERAGE_TEST_MARKER();
}
}
}
taskEXIT_CRITICAL();
80042a2: f001 ff31 bl 8006108 <vPortExitCritical>
/* Interrupts and other tasks can send to and receive from the queue
now the critical section has been exited. */
vTaskSuspendAll();
80042a6: f000 fda1 bl 8004dec <vTaskSuspendAll>
prvLockQueue( pxQueue );
80042aa: f001 fef7 bl 800609c <vPortEnterCritical>
80042ae: 6b3b ldr r3, [r7, #48] @ 0x30
80042b0: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
80042b4: b25b sxtb r3, r3
80042b6: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
80042ba: d103 bne.n 80042c4 <xQueueGenericSend+0x184>
80042bc: 6b3b ldr r3, [r7, #48] @ 0x30
80042be: 2200 movs r2, #0
80042c0: f883 2044 strb.w r2, [r3, #68] @ 0x44
80042c4: 6b3b ldr r3, [r7, #48] @ 0x30
80042c6: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
80042ca: b25b sxtb r3, r3
80042cc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
80042d0: d103 bne.n 80042da <xQueueGenericSend+0x19a>
80042d2: 6b3b ldr r3, [r7, #48] @ 0x30
80042d4: 2200 movs r2, #0
80042d6: f883 2045 strb.w r2, [r3, #69] @ 0x45
80042da: f001 ff15 bl 8006108 <vPortExitCritical>
/* Update the timeout state to see if it has expired yet. */
if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
80042de: 1d3a adds r2, r7, #4
80042e0: f107 0314 add.w r3, r7, #20
80042e4: 4611 mov r1, r2
80042e6: 4618 mov r0, r3
80042e8: f001 f82c bl 8005344 <xTaskCheckForTimeOut>
80042ec: 4603 mov r3, r0
80042ee: 2b00 cmp r3, #0
80042f0: d124 bne.n 800433c <xQueueGenericSend+0x1fc>
{
if( prvIsQueueFull( pxQueue ) != pdFALSE )
80042f2: 6b38 ldr r0, [r7, #48] @ 0x30
80042f4: f000 fab2 bl 800485c <prvIsQueueFull>
80042f8: 4603 mov r3, r0
80042fa: 2b00 cmp r3, #0
80042fc: d018 beq.n 8004330 <xQueueGenericSend+0x1f0>
{
traceBLOCKING_ON_QUEUE_SEND( pxQueue );
vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToSend ), xTicksToWait );
80042fe: 6b3b ldr r3, [r7, #48] @ 0x30
8004300: 3310 adds r3, #16
8004302: 687a ldr r2, [r7, #4]
8004304: 4611 mov r1, r2
8004306: 4618 mov r0, r3
8004308: f000 ff4a bl 80051a0 <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 );
800430c: 6b38 ldr r0, [r7, #48] @ 0x30
800430e: f000 fa3d bl 800478c <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 )
8004312: f000 fd79 bl 8004e08 <xTaskResumeAll>
8004316: 4603 mov r3, r0
8004318: 2b00 cmp r3, #0
800431a: f47f af7c bne.w 8004216 <xQueueGenericSend+0xd6>
{
portYIELD_WITHIN_API();
800431e: 4b0c ldr r3, [pc, #48] @ (8004350 <xQueueGenericSend+0x210>)
8004320: f04f 5280 mov.w r2, #268435456 @ 0x10000000
8004324: 601a str r2, [r3, #0]
8004326: f3bf 8f4f dsb sy
800432a: f3bf 8f6f isb sy
800432e: e772 b.n 8004216 <xQueueGenericSend+0xd6>
}
}
else
{
/* Try again. */
prvUnlockQueue( pxQueue );
8004330: 6b38 ldr r0, [r7, #48] @ 0x30
8004332: f000 fa2b bl 800478c <prvUnlockQueue>
( void ) xTaskResumeAll();
8004336: f000 fd67 bl 8004e08 <xTaskResumeAll>
800433a: e76c b.n 8004216 <xQueueGenericSend+0xd6>
}
}
else
{
/* The timeout has expired. */
prvUnlockQueue( pxQueue );
800433c: 6b38 ldr r0, [r7, #48] @ 0x30
800433e: f000 fa25 bl 800478c <prvUnlockQueue>
( void ) xTaskResumeAll();
8004342: f000 fd61 bl 8004e08 <xTaskResumeAll>
traceQUEUE_SEND_FAILED( pxQueue );
return errQUEUE_FULL;
8004346: 2300 movs r3, #0
}
} /*lint -restore */
}
8004348: 4618 mov r0, r3
800434a: 3738 adds r7, #56 @ 0x38
800434c: 46bd mov sp, r7
800434e: bd80 pop {r7, pc}
8004350: e000ed04 .word 0xe000ed04
08004354 <xQueueGenericSendFromISR>:
/*-----------------------------------------------------------*/
BaseType_t xQueueGenericSendFromISR( QueueHandle_t xQueue, const void * const pvItemToQueue, BaseType_t * const pxHigherPriorityTaskWoken, const BaseType_t xCopyPosition )
{
8004354: b580 push {r7, lr}
8004356: b08e sub sp, #56 @ 0x38
8004358: af00 add r7, sp, #0
800435a: 60f8 str r0, [r7, #12]
800435c: 60b9 str r1, [r7, #8]
800435e: 607a str r2, [r7, #4]
8004360: 603b str r3, [r7, #0]
BaseType_t xReturn;
UBaseType_t uxSavedInterruptStatus;
Queue_t * const pxQueue = xQueue;
8004362: 68fb ldr r3, [r7, #12]
8004364: 633b str r3, [r7, #48] @ 0x30
configASSERT( pxQueue );
8004366: 6b3b ldr r3, [r7, #48] @ 0x30
8004368: 2b00 cmp r3, #0
800436a: d10d bne.n 8004388 <xQueueGenericSendFromISR+0x34>
__asm volatile
800436c: f04f 0350 mov.w r3, #80 @ 0x50
8004370: b672 cpsid i
8004372: f383 8811 msr BASEPRI, r3
8004376: f3bf 8f6f isb sy
800437a: f3bf 8f4f dsb sy
800437e: b662 cpsie i
8004380: 627b str r3, [r7, #36] @ 0x24
}
8004382: bf00 nop
8004384: bf00 nop
8004386: e7fd b.n 8004384 <xQueueGenericSendFromISR+0x30>
configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) );
8004388: 68bb ldr r3, [r7, #8]
800438a: 2b00 cmp r3, #0
800438c: d103 bne.n 8004396 <xQueueGenericSendFromISR+0x42>
800438e: 6b3b ldr r3, [r7, #48] @ 0x30
8004390: 6c1b ldr r3, [r3, #64] @ 0x40
8004392: 2b00 cmp r3, #0
8004394: d101 bne.n 800439a <xQueueGenericSendFromISR+0x46>
8004396: 2301 movs r3, #1
8004398: e000 b.n 800439c <xQueueGenericSendFromISR+0x48>
800439a: 2300 movs r3, #0
800439c: 2b00 cmp r3, #0
800439e: d10d bne.n 80043bc <xQueueGenericSendFromISR+0x68>
__asm volatile
80043a0: f04f 0350 mov.w r3, #80 @ 0x50
80043a4: b672 cpsid i
80043a6: f383 8811 msr BASEPRI, r3
80043aa: f3bf 8f6f isb sy
80043ae: f3bf 8f4f dsb sy
80043b2: b662 cpsie i
80043b4: 623b str r3, [r7, #32]
}
80043b6: bf00 nop
80043b8: bf00 nop
80043ba: e7fd b.n 80043b8 <xQueueGenericSendFromISR+0x64>
configASSERT( !( ( xCopyPosition == queueOVERWRITE ) && ( pxQueue->uxLength != 1 ) ) );
80043bc: 683b ldr r3, [r7, #0]
80043be: 2b02 cmp r3, #2
80043c0: d103 bne.n 80043ca <xQueueGenericSendFromISR+0x76>
80043c2: 6b3b ldr r3, [r7, #48] @ 0x30
80043c4: 6bdb ldr r3, [r3, #60] @ 0x3c
80043c6: 2b01 cmp r3, #1
80043c8: d101 bne.n 80043ce <xQueueGenericSendFromISR+0x7a>
80043ca: 2301 movs r3, #1
80043cc: e000 b.n 80043d0 <xQueueGenericSendFromISR+0x7c>
80043ce: 2300 movs r3, #0
80043d0: 2b00 cmp r3, #0
80043d2: d10d bne.n 80043f0 <xQueueGenericSendFromISR+0x9c>
__asm volatile
80043d4: f04f 0350 mov.w r3, #80 @ 0x50
80043d8: b672 cpsid i
80043da: f383 8811 msr BASEPRI, r3
80043de: f3bf 8f6f isb sy
80043e2: f3bf 8f4f dsb sy
80043e6: b662 cpsie i
80043e8: 61fb str r3, [r7, #28]
}
80043ea: bf00 nop
80043ec: bf00 nop
80043ee: e7fd b.n 80043ec <xQueueGenericSendFromISR+0x98>
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();
80043f0: f001 ff3c bl 800626c <vPortValidateInterruptPriority>
portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
{
uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
__asm volatile
80043f4: f3ef 8211 mrs r2, BASEPRI
80043f8: f04f 0350 mov.w r3, #80 @ 0x50
80043fc: b672 cpsid i
80043fe: f383 8811 msr BASEPRI, r3
8004402: f3bf 8f6f isb sy
8004406: f3bf 8f4f dsb sy
800440a: b662 cpsie i
800440c: 61ba str r2, [r7, #24]
800440e: 617b str r3, [r7, #20]
:"=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;
8004410: 69bb ldr r3, [r7, #24]
/* 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();
8004412: 62fb str r3, [r7, #44] @ 0x2c
{
if( ( pxQueue->uxMessagesWaiting < pxQueue->uxLength ) || ( xCopyPosition == queueOVERWRITE ) )
8004414: 6b3b ldr r3, [r7, #48] @ 0x30
8004416: 6b9a ldr r2, [r3, #56] @ 0x38
8004418: 6b3b ldr r3, [r7, #48] @ 0x30
800441a: 6bdb ldr r3, [r3, #60] @ 0x3c
800441c: 429a cmp r2, r3
800441e: d302 bcc.n 8004426 <xQueueGenericSendFromISR+0xd2>
8004420: 683b ldr r3, [r7, #0]
8004422: 2b02 cmp r3, #2
8004424: d12c bne.n 8004480 <xQueueGenericSendFromISR+0x12c>
{
const int8_t cTxLock = pxQueue->cTxLock;
8004426: 6b3b ldr r3, [r7, #48] @ 0x30
8004428: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
800442c: f887 302b strb.w r3, [r7, #43] @ 0x2b
/* 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 );
8004430: 683a ldr r2, [r7, #0]
8004432: 68b9 ldr r1, [r7, #8]
8004434: 6b38 ldr r0, [r7, #48] @ 0x30
8004436: f000 f919 bl 800466c <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 )
800443a: f997 302b ldrsb.w r3, [r7, #43] @ 0x2b
800443e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
8004442: d112 bne.n 800446a <xQueueGenericSendFromISR+0x116>
}
}
}
#else /* configUSE_QUEUE_SETS */
{
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
8004444: 6b3b ldr r3, [r7, #48] @ 0x30
8004446: 6a5b ldr r3, [r3, #36] @ 0x24
8004448: 2b00 cmp r3, #0
800444a: d016 beq.n 800447a <xQueueGenericSendFromISR+0x126>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
800444c: 6b3b ldr r3, [r7, #48] @ 0x30
800444e: 3324 adds r3, #36 @ 0x24
8004450: 4618 mov r0, r3
8004452: f000 fefb bl 800524c <xTaskRemoveFromEventList>
8004456: 4603 mov r3, r0
8004458: 2b00 cmp r3, #0
800445a: d00e beq.n 800447a <xQueueGenericSendFromISR+0x126>
{
/* The task waiting has a higher priority so record that a
context switch is required. */
if( pxHigherPriorityTaskWoken != NULL )
800445c: 687b ldr r3, [r7, #4]
800445e: 2b00 cmp r3, #0
8004460: d00b beq.n 800447a <xQueueGenericSendFromISR+0x126>
{
*pxHigherPriorityTaskWoken = pdTRUE;
8004462: 687b ldr r3, [r7, #4]
8004464: 2201 movs r2, #1
8004466: 601a str r2, [r3, #0]
8004468: e007 b.n 800447a <xQueueGenericSendFromISR+0x126>
}
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 );
800446a: f897 302b ldrb.w r3, [r7, #43] @ 0x2b
800446e: 3301 adds r3, #1
8004470: b2db uxtb r3, r3
8004472: b25a sxtb r2, r3
8004474: 6b3b ldr r3, [r7, #48] @ 0x30
8004476: f883 2045 strb.w r2, [r3, #69] @ 0x45
}
xReturn = pdPASS;
800447a: 2301 movs r3, #1
800447c: 637b str r3, [r7, #52] @ 0x34
{
800447e: e001 b.n 8004484 <xQueueGenericSendFromISR+0x130>
}
else
{
traceQUEUE_SEND_FROM_ISR_FAILED( pxQueue );
xReturn = errQUEUE_FULL;
8004480: 2300 movs r3, #0
8004482: 637b str r3, [r7, #52] @ 0x34
8004484: 6afb ldr r3, [r7, #44] @ 0x2c
8004486: 613b str r3, [r7, #16]
}
/*-----------------------------------------------------------*/
portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
{
__asm volatile
8004488: 693b ldr r3, [r7, #16]
800448a: f383 8811 msr BASEPRI, r3
(
" msr basepri, %0 " :: "r" ( ulNewMaskValue ) : "memory"
);
}
800448e: bf00 nop
}
}
portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
return xReturn;
8004490: 6b7b ldr r3, [r7, #52] @ 0x34
}
8004492: 4618 mov r0, r3
8004494: 3738 adds r7, #56 @ 0x38
8004496: 46bd mov sp, r7
8004498: bd80 pop {r7, pc}
...
0800449c <xQueueReceive>:
return xReturn;
}
/*-----------------------------------------------------------*/
BaseType_t xQueueReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait )
{
800449c: b580 push {r7, lr}
800449e: b08c sub sp, #48 @ 0x30
80044a0: af00 add r7, sp, #0
80044a2: 60f8 str r0, [r7, #12]
80044a4: 60b9 str r1, [r7, #8]
80044a6: 607a str r2, [r7, #4]
BaseType_t xEntryTimeSet = pdFALSE;
80044a8: 2300 movs r3, #0
80044aa: 62fb str r3, [r7, #44] @ 0x2c
TimeOut_t xTimeOut;
Queue_t * const pxQueue = xQueue;
80044ac: 68fb ldr r3, [r7, #12]
80044ae: 62bb str r3, [r7, #40] @ 0x28
/* Check the pointer is not NULL. */
configASSERT( ( pxQueue ) );
80044b0: 6abb ldr r3, [r7, #40] @ 0x28
80044b2: 2b00 cmp r3, #0
80044b4: d10d bne.n 80044d2 <xQueueReceive+0x36>
__asm volatile
80044b6: f04f 0350 mov.w r3, #80 @ 0x50
80044ba: b672 cpsid i
80044bc: f383 8811 msr BASEPRI, r3
80044c0: f3bf 8f6f isb sy
80044c4: f3bf 8f4f dsb sy
80044c8: b662 cpsie i
80044ca: 623b str r3, [r7, #32]
}
80044cc: bf00 nop
80044ce: bf00 nop
80044d0: e7fd b.n 80044ce <xQueueReceive+0x32>
/* The buffer into which data is received can only be NULL if the data size
is zero (so no data is copied into the buffer. */
configASSERT( !( ( ( pvBuffer ) == NULL ) && ( ( pxQueue )->uxItemSize != ( UBaseType_t ) 0U ) ) );
80044d2: 68bb ldr r3, [r7, #8]
80044d4: 2b00 cmp r3, #0
80044d6: d103 bne.n 80044e0 <xQueueReceive+0x44>
80044d8: 6abb ldr r3, [r7, #40] @ 0x28
80044da: 6c1b ldr r3, [r3, #64] @ 0x40
80044dc: 2b00 cmp r3, #0
80044de: d101 bne.n 80044e4 <xQueueReceive+0x48>
80044e0: 2301 movs r3, #1
80044e2: e000 b.n 80044e6 <xQueueReceive+0x4a>
80044e4: 2300 movs r3, #0
80044e6: 2b00 cmp r3, #0
80044e8: d10d bne.n 8004506 <xQueueReceive+0x6a>
__asm volatile
80044ea: f04f 0350 mov.w r3, #80 @ 0x50
80044ee: b672 cpsid i
80044f0: f383 8811 msr BASEPRI, r3
80044f4: f3bf 8f6f isb sy
80044f8: f3bf 8f4f dsb sy
80044fc: b662 cpsie i
80044fe: 61fb str r3, [r7, #28]
}
8004500: bf00 nop
8004502: bf00 nop
8004504: e7fd b.n 8004502 <xQueueReceive+0x66>
/* Cannot block if the scheduler is suspended. */
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
{
configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
8004506: f001 f869 bl 80055dc <xTaskGetSchedulerState>
800450a: 4603 mov r3, r0
800450c: 2b00 cmp r3, #0
800450e: d102 bne.n 8004516 <xQueueReceive+0x7a>
8004510: 687b ldr r3, [r7, #4]
8004512: 2b00 cmp r3, #0
8004514: d101 bne.n 800451a <xQueueReceive+0x7e>
8004516: 2301 movs r3, #1
8004518: e000 b.n 800451c <xQueueReceive+0x80>
800451a: 2300 movs r3, #0
800451c: 2b00 cmp r3, #0
800451e: d10d bne.n 800453c <xQueueReceive+0xa0>
__asm volatile
8004520: f04f 0350 mov.w r3, #80 @ 0x50
8004524: b672 cpsid i
8004526: f383 8811 msr BASEPRI, r3
800452a: f3bf 8f6f isb sy
800452e: f3bf 8f4f dsb sy
8004532: b662 cpsie i
8004534: 61bb str r3, [r7, #24]
}
8004536: bf00 nop
8004538: bf00 nop
800453a: e7fd b.n 8004538 <xQueueReceive+0x9c>
/*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();
800453c: f001 fdae bl 800609c <vPortEnterCritical>
{
const UBaseType_t uxMessagesWaiting = pxQueue->uxMessagesWaiting;
8004540: 6abb ldr r3, [r7, #40] @ 0x28
8004542: 6b9b ldr r3, [r3, #56] @ 0x38
8004544: 627b str r3, [r7, #36] @ 0x24
/* Is there data in the queue now? To be running the calling task
must be the highest priority task wanting to access the queue. */
if( uxMessagesWaiting > ( UBaseType_t ) 0 )
8004546: 6a7b ldr r3, [r7, #36] @ 0x24
8004548: 2b00 cmp r3, #0
800454a: d01f beq.n 800458c <xQueueReceive+0xf0>
{
/* Data available, remove one item. */
prvCopyDataFromQueue( pxQueue, pvBuffer );
800454c: 68b9 ldr r1, [r7, #8]
800454e: 6ab8 ldr r0, [r7, #40] @ 0x28
8004550: f000 f8f6 bl 8004740 <prvCopyDataFromQueue>
traceQUEUE_RECEIVE( pxQueue );
pxQueue->uxMessagesWaiting = uxMessagesWaiting - ( UBaseType_t ) 1;
8004554: 6a7b ldr r3, [r7, #36] @ 0x24
8004556: 1e5a subs r2, r3, #1
8004558: 6abb ldr r3, [r7, #40] @ 0x28
800455a: 639a str r2, [r3, #56] @ 0x38
/* There is now space in the queue, were any tasks waiting to
post to the queue? If so, unblock the highest priority waiting
task. */
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
800455c: 6abb ldr r3, [r7, #40] @ 0x28
800455e: 691b ldr r3, [r3, #16]
8004560: 2b00 cmp r3, #0
8004562: d00f beq.n 8004584 <xQueueReceive+0xe8>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
8004564: 6abb ldr r3, [r7, #40] @ 0x28
8004566: 3310 adds r3, #16
8004568: 4618 mov r0, r3
800456a: f000 fe6f bl 800524c <xTaskRemoveFromEventList>
800456e: 4603 mov r3, r0
8004570: 2b00 cmp r3, #0
8004572: d007 beq.n 8004584 <xQueueReceive+0xe8>
{
queueYIELD_IF_USING_PREEMPTION();
8004574: 4b3c ldr r3, [pc, #240] @ (8004668 <xQueueReceive+0x1cc>)
8004576: f04f 5280 mov.w r2, #268435456 @ 0x10000000
800457a: 601a str r2, [r3, #0]
800457c: f3bf 8f4f dsb sy
8004580: f3bf 8f6f isb sy
else
{
mtCOVERAGE_TEST_MARKER();
}
taskEXIT_CRITICAL();
8004584: f001 fdc0 bl 8006108 <vPortExitCritical>
return pdPASS;
8004588: 2301 movs r3, #1
800458a: e069 b.n 8004660 <xQueueReceive+0x1c4>
}
else
{
if( xTicksToWait == ( TickType_t ) 0 )
800458c: 687b ldr r3, [r7, #4]
800458e: 2b00 cmp r3, #0
8004590: d103 bne.n 800459a <xQueueReceive+0xfe>
{
/* The queue was empty and no block time is specified (or
the block time has expired) so leave now. */
taskEXIT_CRITICAL();
8004592: f001 fdb9 bl 8006108 <vPortExitCritical>
traceQUEUE_RECEIVE_FAILED( pxQueue );
return errQUEUE_EMPTY;
8004596: 2300 movs r3, #0
8004598: e062 b.n 8004660 <xQueueReceive+0x1c4>
}
else if( xEntryTimeSet == pdFALSE )
800459a: 6afb ldr r3, [r7, #44] @ 0x2c
800459c: 2b00 cmp r3, #0
800459e: d106 bne.n 80045ae <xQueueReceive+0x112>
{
/* The queue was empty and a block time was specified so
configure the timeout structure. */
vTaskInternalSetTimeOutState( &xTimeOut );
80045a0: f107 0310 add.w r3, r7, #16
80045a4: 4618 mov r0, r3
80045a6: f000 feb7 bl 8005318 <vTaskInternalSetTimeOutState>
xEntryTimeSet = pdTRUE;
80045aa: 2301 movs r3, #1
80045ac: 62fb str r3, [r7, #44] @ 0x2c
/* Entry time was already set. */
mtCOVERAGE_TEST_MARKER();
}
}
}
taskEXIT_CRITICAL();
80045ae: f001 fdab bl 8006108 <vPortExitCritical>
/* Interrupts and other tasks can send to and receive from the queue
now the critical section has been exited. */
vTaskSuspendAll();
80045b2: f000 fc1b bl 8004dec <vTaskSuspendAll>
prvLockQueue( pxQueue );
80045b6: f001 fd71 bl 800609c <vPortEnterCritical>
80045ba: 6abb ldr r3, [r7, #40] @ 0x28
80045bc: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
80045c0: b25b sxtb r3, r3
80045c2: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
80045c6: d103 bne.n 80045d0 <xQueueReceive+0x134>
80045c8: 6abb ldr r3, [r7, #40] @ 0x28
80045ca: 2200 movs r2, #0
80045cc: f883 2044 strb.w r2, [r3, #68] @ 0x44
80045d0: 6abb ldr r3, [r7, #40] @ 0x28
80045d2: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
80045d6: b25b sxtb r3, r3
80045d8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
80045dc: d103 bne.n 80045e6 <xQueueReceive+0x14a>
80045de: 6abb ldr r3, [r7, #40] @ 0x28
80045e0: 2200 movs r2, #0
80045e2: f883 2045 strb.w r2, [r3, #69] @ 0x45
80045e6: f001 fd8f bl 8006108 <vPortExitCritical>
/* Update the timeout state to see if it has expired yet. */
if( xTaskCheckForTimeOut( &xTimeOut, &xTicksToWait ) == pdFALSE )
80045ea: 1d3a adds r2, r7, #4
80045ec: f107 0310 add.w r3, r7, #16
80045f0: 4611 mov r1, r2
80045f2: 4618 mov r0, r3
80045f4: f000 fea6 bl 8005344 <xTaskCheckForTimeOut>
80045f8: 4603 mov r3, r0
80045fa: 2b00 cmp r3, #0
80045fc: d123 bne.n 8004646 <xQueueReceive+0x1aa>
{
/* The timeout has not expired. If the queue is still empty place
the task on the list of tasks waiting to receive from the queue. */
if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
80045fe: 6ab8 ldr r0, [r7, #40] @ 0x28
8004600: f000 f916 bl 8004830 <prvIsQueueEmpty>
8004604: 4603 mov r3, r0
8004606: 2b00 cmp r3, #0
8004608: d017 beq.n 800463a <xQueueReceive+0x19e>
{
traceBLOCKING_ON_QUEUE_RECEIVE( pxQueue );
vTaskPlaceOnEventList( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait );
800460a: 6abb ldr r3, [r7, #40] @ 0x28
800460c: 3324 adds r3, #36 @ 0x24
800460e: 687a ldr r2, [r7, #4]
8004610: 4611 mov r1, r2
8004612: 4618 mov r0, r3
8004614: f000 fdc4 bl 80051a0 <vTaskPlaceOnEventList>
prvUnlockQueue( pxQueue );
8004618: 6ab8 ldr r0, [r7, #40] @ 0x28
800461a: f000 f8b7 bl 800478c <prvUnlockQueue>
if( xTaskResumeAll() == pdFALSE )
800461e: f000 fbf3 bl 8004e08 <xTaskResumeAll>
8004622: 4603 mov r3, r0
8004624: 2b00 cmp r3, #0
8004626: d189 bne.n 800453c <xQueueReceive+0xa0>
{
portYIELD_WITHIN_API();
8004628: 4b0f ldr r3, [pc, #60] @ (8004668 <xQueueReceive+0x1cc>)
800462a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
800462e: 601a str r2, [r3, #0]
8004630: f3bf 8f4f dsb sy
8004634: f3bf 8f6f isb sy
8004638: e780 b.n 800453c <xQueueReceive+0xa0>
}
else
{
/* The queue contains data again. Loop back to try and read the
data. */
prvUnlockQueue( pxQueue );
800463a: 6ab8 ldr r0, [r7, #40] @ 0x28
800463c: f000 f8a6 bl 800478c <prvUnlockQueue>
( void ) xTaskResumeAll();
8004640: f000 fbe2 bl 8004e08 <xTaskResumeAll>
8004644: e77a b.n 800453c <xQueueReceive+0xa0>
}
else
{
/* Timed out. If there is no data in the queue exit, otherwise loop
back and attempt to read the data. */
prvUnlockQueue( pxQueue );
8004646: 6ab8 ldr r0, [r7, #40] @ 0x28
8004648: f000 f8a0 bl 800478c <prvUnlockQueue>
( void ) xTaskResumeAll();
800464c: f000 fbdc bl 8004e08 <xTaskResumeAll>
if( prvIsQueueEmpty( pxQueue ) != pdFALSE )
8004650: 6ab8 ldr r0, [r7, #40] @ 0x28
8004652: f000 f8ed bl 8004830 <prvIsQueueEmpty>
8004656: 4603 mov r3, r0
8004658: 2b00 cmp r3, #0
800465a: f43f af6f beq.w 800453c <xQueueReceive+0xa0>
{
traceQUEUE_RECEIVE_FAILED( pxQueue );
return errQUEUE_EMPTY;
800465e: 2300 movs r3, #0
{
mtCOVERAGE_TEST_MARKER();
}
}
} /*lint -restore */
}
8004660: 4618 mov r0, r3
8004662: 3730 adds r7, #48 @ 0x30
8004664: 46bd mov sp, r7
8004666: bd80 pop {r7, pc}
8004668: e000ed04 .word 0xe000ed04
0800466c <prvCopyDataToQueue>:
#endif /* configUSE_MUTEXES */
/*-----------------------------------------------------------*/
static BaseType_t prvCopyDataToQueue( Queue_t * const pxQueue, const void *pvItemToQueue, const BaseType_t xPosition )
{
800466c: b580 push {r7, lr}
800466e: b086 sub sp, #24
8004670: af00 add r7, sp, #0
8004672: 60f8 str r0, [r7, #12]
8004674: 60b9 str r1, [r7, #8]
8004676: 607a str r2, [r7, #4]
BaseType_t xReturn = pdFALSE;
8004678: 2300 movs r3, #0
800467a: 617b str r3, [r7, #20]
UBaseType_t uxMessagesWaiting;
/* This function is called from a critical section. */
uxMessagesWaiting = pxQueue->uxMessagesWaiting;
800467c: 68fb ldr r3, [r7, #12]
800467e: 6b9b ldr r3, [r3, #56] @ 0x38
8004680: 613b str r3, [r7, #16]
if( pxQueue->uxItemSize == ( UBaseType_t ) 0 )
8004682: 68fb ldr r3, [r7, #12]
8004684: 6c1b ldr r3, [r3, #64] @ 0x40
8004686: 2b00 cmp r3, #0
8004688: d10d bne.n 80046a6 <prvCopyDataToQueue+0x3a>
{
#if ( configUSE_MUTEXES == 1 )
{
if( pxQueue->uxQueueType == queueQUEUE_IS_MUTEX )
800468a: 68fb ldr r3, [r7, #12]
800468c: 681b ldr r3, [r3, #0]
800468e: 2b00 cmp r3, #0
8004690: d14d bne.n 800472e <prvCopyDataToQueue+0xc2>
{
/* The mutex is no longer being held. */
xReturn = xTaskPriorityDisinherit( pxQueue->u.xSemaphore.xMutexHolder );
8004692: 68fb ldr r3, [r7, #12]
8004694: 689b ldr r3, [r3, #8]
8004696: 4618 mov r0, r3
8004698: f000 ffbe bl 8005618 <xTaskPriorityDisinherit>
800469c: 6178 str r0, [r7, #20]
pxQueue->u.xSemaphore.xMutexHolder = NULL;
800469e: 68fb ldr r3, [r7, #12]
80046a0: 2200 movs r2, #0
80046a2: 609a str r2, [r3, #8]
80046a4: e043 b.n 800472e <prvCopyDataToQueue+0xc2>
mtCOVERAGE_TEST_MARKER();
}
}
#endif /* configUSE_MUTEXES */
}
else if( xPosition == queueSEND_TO_BACK )
80046a6: 687b ldr r3, [r7, #4]
80046a8: 2b00 cmp r3, #0
80046aa: d119 bne.n 80046e0 <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. */
80046ac: 68fb ldr r3, [r7, #12]
80046ae: 6858 ldr r0, [r3, #4]
80046b0: 68fb ldr r3, [r7, #12]
80046b2: 6c1b ldr r3, [r3, #64] @ 0x40
80046b4: 461a mov r2, r3
80046b6: 68b9 ldr r1, [r7, #8]
80046b8: f002 f99b bl 80069f2 <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. */
80046bc: 68fb ldr r3, [r7, #12]
80046be: 685a ldr r2, [r3, #4]
80046c0: 68fb ldr r3, [r7, #12]
80046c2: 6c1b ldr r3, [r3, #64] @ 0x40
80046c4: 441a add r2, r3
80046c6: 68fb ldr r3, [r7, #12]
80046c8: 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. */
80046ca: 68fb ldr r3, [r7, #12]
80046cc: 685a ldr r2, [r3, #4]
80046ce: 68fb ldr r3, [r7, #12]
80046d0: 689b ldr r3, [r3, #8]
80046d2: 429a cmp r2, r3
80046d4: d32b bcc.n 800472e <prvCopyDataToQueue+0xc2>
{
pxQueue->pcWriteTo = pxQueue->pcHead;
80046d6: 68fb ldr r3, [r7, #12]
80046d8: 681a ldr r2, [r3, #0]
80046da: 68fb ldr r3, [r7, #12]
80046dc: 605a str r2, [r3, #4]
80046de: e026 b.n 800472e <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. */
80046e0: 68fb ldr r3, [r7, #12]
80046e2: 68d8 ldr r0, [r3, #12]
80046e4: 68fb ldr r3, [r7, #12]
80046e6: 6c1b ldr r3, [r3, #64] @ 0x40
80046e8: 461a mov r2, r3
80046ea: 68b9 ldr r1, [r7, #8]
80046ec: f002 f981 bl 80069f2 <memcpy>
pxQueue->u.xQueue.pcReadFrom -= pxQueue->uxItemSize;
80046f0: 68fb ldr r3, [r7, #12]
80046f2: 68da ldr r2, [r3, #12]
80046f4: 68fb ldr r3, [r7, #12]
80046f6: 6c1b ldr r3, [r3, #64] @ 0x40
80046f8: 425b negs r3, r3
80046fa: 441a add r2, r3
80046fc: 68fb ldr r3, [r7, #12]
80046fe: 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. */
8004700: 68fb ldr r3, [r7, #12]
8004702: 68da ldr r2, [r3, #12]
8004704: 68fb ldr r3, [r7, #12]
8004706: 681b ldr r3, [r3, #0]
8004708: 429a cmp r2, r3
800470a: d207 bcs.n 800471c <prvCopyDataToQueue+0xb0>
{
pxQueue->u.xQueue.pcReadFrom = ( pxQueue->u.xQueue.pcTail - pxQueue->uxItemSize );
800470c: 68fb ldr r3, [r7, #12]
800470e: 689a ldr r2, [r3, #8]
8004710: 68fb ldr r3, [r7, #12]
8004712: 6c1b ldr r3, [r3, #64] @ 0x40
8004714: 425b negs r3, r3
8004716: 441a add r2, r3
8004718: 68fb ldr r3, [r7, #12]
800471a: 60da str r2, [r3, #12]
else
{
mtCOVERAGE_TEST_MARKER();
}
if( xPosition == queueOVERWRITE )
800471c: 687b ldr r3, [r7, #4]
800471e: 2b02 cmp r3, #2
8004720: d105 bne.n 800472e <prvCopyDataToQueue+0xc2>
{
if( uxMessagesWaiting > ( UBaseType_t ) 0 )
8004722: 693b ldr r3, [r7, #16]
8004724: 2b00 cmp r3, #0
8004726: d002 beq.n 800472e <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;
8004728: 693b ldr r3, [r7, #16]
800472a: 3b01 subs r3, #1
800472c: 613b str r3, [r7, #16]
{
mtCOVERAGE_TEST_MARKER();
}
}
pxQueue->uxMessagesWaiting = uxMessagesWaiting + ( UBaseType_t ) 1;
800472e: 693b ldr r3, [r7, #16]
8004730: 1c5a adds r2, r3, #1
8004732: 68fb ldr r3, [r7, #12]
8004734: 639a str r2, [r3, #56] @ 0x38
return xReturn;
8004736: 697b ldr r3, [r7, #20]
}
8004738: 4618 mov r0, r3
800473a: 3718 adds r7, #24
800473c: 46bd mov sp, r7
800473e: bd80 pop {r7, pc}
08004740 <prvCopyDataFromQueue>:
/*-----------------------------------------------------------*/
static void prvCopyDataFromQueue( Queue_t * const pxQueue, void * const pvBuffer )
{
8004740: b580 push {r7, lr}
8004742: b082 sub sp, #8
8004744: af00 add r7, sp, #0
8004746: 6078 str r0, [r7, #4]
8004748: 6039 str r1, [r7, #0]
if( pxQueue->uxItemSize != ( UBaseType_t ) 0 )
800474a: 687b ldr r3, [r7, #4]
800474c: 6c1b ldr r3, [r3, #64] @ 0x40
800474e: 2b00 cmp r3, #0
8004750: d018 beq.n 8004784 <prvCopyDataFromQueue+0x44>
{
pxQueue->u.xQueue.pcReadFrom += pxQueue->uxItemSize; /*lint !e9016 Pointer arithmetic on char types ok, especially in this use case where it is the clearest way of conveying intent. */
8004752: 687b ldr r3, [r7, #4]
8004754: 68da ldr r2, [r3, #12]
8004756: 687b ldr r3, [r7, #4]
8004758: 6c1b ldr r3, [r3, #64] @ 0x40
800475a: 441a add r2, r3
800475c: 687b ldr r3, [r7, #4]
800475e: 60da str r2, [r3, #12]
if( pxQueue->u.xQueue.pcReadFrom >= pxQueue->u.xQueue.pcTail ) /*lint !e946 MISRA exception justified as use of the relational operator is the cleanest solutions. */
8004760: 687b ldr r3, [r7, #4]
8004762: 68da ldr r2, [r3, #12]
8004764: 687b ldr r3, [r7, #4]
8004766: 689b ldr r3, [r3, #8]
8004768: 429a cmp r2, r3
800476a: d303 bcc.n 8004774 <prvCopyDataFromQueue+0x34>
{
pxQueue->u.xQueue.pcReadFrom = pxQueue->pcHead;
800476c: 687b ldr r3, [r7, #4]
800476e: 681a ldr r2, [r3, #0]
8004770: 687b ldr r3, [r7, #4]
8004772: 60da str r2, [r3, #12]
}
else
{
mtCOVERAGE_TEST_MARKER();
}
( void ) memcpy( ( void * ) pvBuffer, ( void * ) pxQueue->u.xQueue.pcReadFrom, ( size_t ) pxQueue->uxItemSize ); /*lint !e961 !e418 !e9087 MISRA exception as the casts are only redundant for some ports. Also previous logic ensures a null pointer can only be passed to memcpy() when the count is 0. Cast to void required by function signature and safe as no alignment requirement and copy length specified in bytes. */
8004774: 687b ldr r3, [r7, #4]
8004776: 68d9 ldr r1, [r3, #12]
8004778: 687b ldr r3, [r7, #4]
800477a: 6c1b ldr r3, [r3, #64] @ 0x40
800477c: 461a mov r2, r3
800477e: 6838 ldr r0, [r7, #0]
8004780: f002 f937 bl 80069f2 <memcpy>
}
}
8004784: bf00 nop
8004786: 3708 adds r7, #8
8004788: 46bd mov sp, r7
800478a: bd80 pop {r7, pc}
0800478c <prvUnlockQueue>:
/*-----------------------------------------------------------*/
static void prvUnlockQueue( Queue_t * const pxQueue )
{
800478c: b580 push {r7, lr}
800478e: b084 sub sp, #16
8004790: af00 add r7, sp, #0
8004792: 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();
8004794: f001 fc82 bl 800609c <vPortEnterCritical>
{
int8_t cTxLock = pxQueue->cTxLock;
8004798: 687b ldr r3, [r7, #4]
800479a: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
800479e: 73fb strb r3, [r7, #15]
/* See if data was added to the queue while it was locked. */
while( cTxLock > queueLOCKED_UNMODIFIED )
80047a0: e011 b.n 80047c6 <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 )
80047a2: 687b ldr r3, [r7, #4]
80047a4: 6a5b ldr r3, [r3, #36] @ 0x24
80047a6: 2b00 cmp r3, #0
80047a8: d012 beq.n 80047d0 <prvUnlockQueue+0x44>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
80047aa: 687b ldr r3, [r7, #4]
80047ac: 3324 adds r3, #36 @ 0x24
80047ae: 4618 mov r0, r3
80047b0: f000 fd4c bl 800524c <xTaskRemoveFromEventList>
80047b4: 4603 mov r3, r0
80047b6: 2b00 cmp r3, #0
80047b8: d001 beq.n 80047be <prvUnlockQueue+0x32>
{
/* The task waiting has a higher priority so record that
a context switch is required. */
vTaskMissedYield();
80047ba: f000 fe2b bl 8005414 <vTaskMissedYield>
break;
}
}
#endif /* configUSE_QUEUE_SETS */
--cTxLock;
80047be: 7bfb ldrb r3, [r7, #15]
80047c0: 3b01 subs r3, #1
80047c2: b2db uxtb r3, r3
80047c4: 73fb strb r3, [r7, #15]
while( cTxLock > queueLOCKED_UNMODIFIED )
80047c6: f997 300f ldrsb.w r3, [r7, #15]
80047ca: 2b00 cmp r3, #0
80047cc: dce9 bgt.n 80047a2 <prvUnlockQueue+0x16>
80047ce: e000 b.n 80047d2 <prvUnlockQueue+0x46>
break;
80047d0: bf00 nop
}
pxQueue->cTxLock = queueUNLOCKED;
80047d2: 687b ldr r3, [r7, #4]
80047d4: 22ff movs r2, #255 @ 0xff
80047d6: f883 2045 strb.w r2, [r3, #69] @ 0x45
}
taskEXIT_CRITICAL();
80047da: f001 fc95 bl 8006108 <vPortExitCritical>
/* Do the same for the Rx lock. */
taskENTER_CRITICAL();
80047de: f001 fc5d bl 800609c <vPortEnterCritical>
{
int8_t cRxLock = pxQueue->cRxLock;
80047e2: 687b ldr r3, [r7, #4]
80047e4: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
80047e8: 73bb strb r3, [r7, #14]
while( cRxLock > queueLOCKED_UNMODIFIED )
80047ea: e011 b.n 8004810 <prvUnlockQueue+0x84>
{
if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToSend ) ) == pdFALSE )
80047ec: 687b ldr r3, [r7, #4]
80047ee: 691b ldr r3, [r3, #16]
80047f0: 2b00 cmp r3, #0
80047f2: d012 beq.n 800481a <prvUnlockQueue+0x8e>
{
if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToSend ) ) != pdFALSE )
80047f4: 687b ldr r3, [r7, #4]
80047f6: 3310 adds r3, #16
80047f8: 4618 mov r0, r3
80047fa: f000 fd27 bl 800524c <xTaskRemoveFromEventList>
80047fe: 4603 mov r3, r0
8004800: 2b00 cmp r3, #0
8004802: d001 beq.n 8004808 <prvUnlockQueue+0x7c>
{
vTaskMissedYield();
8004804: f000 fe06 bl 8005414 <vTaskMissedYield>
else
{
mtCOVERAGE_TEST_MARKER();
}
--cRxLock;
8004808: 7bbb ldrb r3, [r7, #14]
800480a: 3b01 subs r3, #1
800480c: b2db uxtb r3, r3
800480e: 73bb strb r3, [r7, #14]
while( cRxLock > queueLOCKED_UNMODIFIED )
8004810: f997 300e ldrsb.w r3, [r7, #14]
8004814: 2b00 cmp r3, #0
8004816: dce9 bgt.n 80047ec <prvUnlockQueue+0x60>
8004818: e000 b.n 800481c <prvUnlockQueue+0x90>
}
else
{
break;
800481a: bf00 nop
}
}
pxQueue->cRxLock = queueUNLOCKED;
800481c: 687b ldr r3, [r7, #4]
800481e: 22ff movs r2, #255 @ 0xff
8004820: f883 2044 strb.w r2, [r3, #68] @ 0x44
}
taskEXIT_CRITICAL();
8004824: f001 fc70 bl 8006108 <vPortExitCritical>
}
8004828: bf00 nop
800482a: 3710 adds r7, #16
800482c: 46bd mov sp, r7
800482e: bd80 pop {r7, pc}
08004830 <prvIsQueueEmpty>:
/*-----------------------------------------------------------*/
static BaseType_t prvIsQueueEmpty( const Queue_t *pxQueue )
{
8004830: b580 push {r7, lr}
8004832: b084 sub sp, #16
8004834: af00 add r7, sp, #0
8004836: 6078 str r0, [r7, #4]
BaseType_t xReturn;
taskENTER_CRITICAL();
8004838: f001 fc30 bl 800609c <vPortEnterCritical>
{
if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0 )
800483c: 687b ldr r3, [r7, #4]
800483e: 6b9b ldr r3, [r3, #56] @ 0x38
8004840: 2b00 cmp r3, #0
8004842: d102 bne.n 800484a <prvIsQueueEmpty+0x1a>
{
xReturn = pdTRUE;
8004844: 2301 movs r3, #1
8004846: 60fb str r3, [r7, #12]
8004848: e001 b.n 800484e <prvIsQueueEmpty+0x1e>
}
else
{
xReturn = pdFALSE;
800484a: 2300 movs r3, #0
800484c: 60fb str r3, [r7, #12]
}
}
taskEXIT_CRITICAL();
800484e: f001 fc5b bl 8006108 <vPortExitCritical>
return xReturn;
8004852: 68fb ldr r3, [r7, #12]
}
8004854: 4618 mov r0, r3
8004856: 3710 adds r7, #16
8004858: 46bd mov sp, r7
800485a: bd80 pop {r7, pc}
0800485c <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 )
{
800485c: b580 push {r7, lr}
800485e: b084 sub sp, #16
8004860: af00 add r7, sp, #0
8004862: 6078 str r0, [r7, #4]
BaseType_t xReturn;
taskENTER_CRITICAL();
8004864: f001 fc1a bl 800609c <vPortEnterCritical>
{
if( pxQueue->uxMessagesWaiting == pxQueue->uxLength )
8004868: 687b ldr r3, [r7, #4]
800486a: 6b9a ldr r2, [r3, #56] @ 0x38
800486c: 687b ldr r3, [r7, #4]
800486e: 6bdb ldr r3, [r3, #60] @ 0x3c
8004870: 429a cmp r2, r3
8004872: d102 bne.n 800487a <prvIsQueueFull+0x1e>
{
xReturn = pdTRUE;
8004874: 2301 movs r3, #1
8004876: 60fb str r3, [r7, #12]
8004878: e001 b.n 800487e <prvIsQueueFull+0x22>
}
else
{
xReturn = pdFALSE;
800487a: 2300 movs r3, #0
800487c: 60fb str r3, [r7, #12]
}
}
taskEXIT_CRITICAL();
800487e: f001 fc43 bl 8006108 <vPortExitCritical>
return xReturn;
8004882: 68fb ldr r3, [r7, #12]
}
8004884: 4618 mov r0, r3
8004886: 3710 adds r7, #16
8004888: 46bd mov sp, r7
800488a: bd80 pop {r7, pc}
0800488c <vQueueAddToRegistry>:
/*-----------------------------------------------------------*/
#if ( configQUEUE_REGISTRY_SIZE > 0 )
void vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcQueueName ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
{
800488c: b480 push {r7}
800488e: b085 sub sp, #20
8004890: af00 add r7, sp, #0
8004892: 6078 str r0, [r7, #4]
8004894: 6039 str r1, [r7, #0]
UBaseType_t ux;
/* See if there is an empty space in the registry. A NULL name denotes
a free slot. */
for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
8004896: 2300 movs r3, #0
8004898: 60fb str r3, [r7, #12]
800489a: e014 b.n 80048c6 <vQueueAddToRegistry+0x3a>
{
if( xQueueRegistry[ ux ].pcQueueName == NULL )
800489c: 4a0f ldr r2, [pc, #60] @ (80048dc <vQueueAddToRegistry+0x50>)
800489e: 68fb ldr r3, [r7, #12]
80048a0: f852 3033 ldr.w r3, [r2, r3, lsl #3]
80048a4: 2b00 cmp r3, #0
80048a6: d10b bne.n 80048c0 <vQueueAddToRegistry+0x34>
{
/* Store the information on this queue. */
xQueueRegistry[ ux ].pcQueueName = pcQueueName;
80048a8: 490c ldr r1, [pc, #48] @ (80048dc <vQueueAddToRegistry+0x50>)
80048aa: 68fb ldr r3, [r7, #12]
80048ac: 683a ldr r2, [r7, #0]
80048ae: f841 2033 str.w r2, [r1, r3, lsl #3]
xQueueRegistry[ ux ].xHandle = xQueue;
80048b2: 4a0a ldr r2, [pc, #40] @ (80048dc <vQueueAddToRegistry+0x50>)
80048b4: 68fb ldr r3, [r7, #12]
80048b6: 00db lsls r3, r3, #3
80048b8: 4413 add r3, r2
80048ba: 687a ldr r2, [r7, #4]
80048bc: 605a str r2, [r3, #4]
traceQUEUE_REGISTRY_ADD( xQueue, pcQueueName );
break;
80048be: e006 b.n 80048ce <vQueueAddToRegistry+0x42>
for( ux = ( UBaseType_t ) 0U; ux < ( UBaseType_t ) configQUEUE_REGISTRY_SIZE; ux++ )
80048c0: 68fb ldr r3, [r7, #12]
80048c2: 3301 adds r3, #1
80048c4: 60fb str r3, [r7, #12]
80048c6: 68fb ldr r3, [r7, #12]
80048c8: 2b07 cmp r3, #7
80048ca: d9e7 bls.n 800489c <vQueueAddToRegistry+0x10>
else
{
mtCOVERAGE_TEST_MARKER();
}
}
}
80048cc: bf00 nop
80048ce: bf00 nop
80048d0: 3714 adds r7, #20
80048d2: 46bd mov sp, r7
80048d4: f85d 7b04 ldr.w r7, [sp], #4
80048d8: 4770 bx lr
80048da: bf00 nop
80048dc: 20000e28 .word 0x20000e28
080048e0 <vQueueWaitForMessageRestricted>:
/*-----------------------------------------------------------*/
#if ( configUSE_TIMERS == 1 )
void vQueueWaitForMessageRestricted( QueueHandle_t xQueue, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
{
80048e0: b580 push {r7, lr}
80048e2: b086 sub sp, #24
80048e4: af00 add r7, sp, #0
80048e6: 60f8 str r0, [r7, #12]
80048e8: 60b9 str r1, [r7, #8]
80048ea: 607a str r2, [r7, #4]
Queue_t * const pxQueue = xQueue;
80048ec: 68fb ldr r3, [r7, #12]
80048ee: 617b str r3, [r7, #20]
will not actually cause the task to block, just place it on a blocked
list. It will not block until the scheduler is unlocked - at which
time a yield will be performed. If an item is added to the queue while
the queue is locked, and the calling task blocks on the queue, then the
calling task will be immediately unblocked when the queue is unlocked. */
prvLockQueue( pxQueue );
80048f0: f001 fbd4 bl 800609c <vPortEnterCritical>
80048f4: 697b ldr r3, [r7, #20]
80048f6: f893 3044 ldrb.w r3, [r3, #68] @ 0x44
80048fa: b25b sxtb r3, r3
80048fc: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
8004900: d103 bne.n 800490a <vQueueWaitForMessageRestricted+0x2a>
8004902: 697b ldr r3, [r7, #20]
8004904: 2200 movs r2, #0
8004906: f883 2044 strb.w r2, [r3, #68] @ 0x44
800490a: 697b ldr r3, [r7, #20]
800490c: f893 3045 ldrb.w r3, [r3, #69] @ 0x45
8004910: b25b sxtb r3, r3
8004912: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
8004916: d103 bne.n 8004920 <vQueueWaitForMessageRestricted+0x40>
8004918: 697b ldr r3, [r7, #20]
800491a: 2200 movs r2, #0
800491c: f883 2045 strb.w r2, [r3, #69] @ 0x45
8004920: f001 fbf2 bl 8006108 <vPortExitCritical>
if( pxQueue->uxMessagesWaiting == ( UBaseType_t ) 0U )
8004924: 697b ldr r3, [r7, #20]
8004926: 6b9b ldr r3, [r3, #56] @ 0x38
8004928: 2b00 cmp r3, #0
800492a: d106 bne.n 800493a <vQueueWaitForMessageRestricted+0x5a>
{
/* There is nothing in the queue, block for the specified period. */
vTaskPlaceOnEventListRestricted( &( pxQueue->xTasksWaitingToReceive ), xTicksToWait, xWaitIndefinitely );
800492c: 697b ldr r3, [r7, #20]
800492e: 3324 adds r3, #36 @ 0x24
8004930: 687a ldr r2, [r7, #4]
8004932: 68b9 ldr r1, [r7, #8]
8004934: 4618 mov r0, r3
8004936: f000 fc5b bl 80051f0 <vTaskPlaceOnEventListRestricted>
}
else
{
mtCOVERAGE_TEST_MARKER();
}
prvUnlockQueue( pxQueue );
800493a: 6978 ldr r0, [r7, #20]
800493c: f7ff ff26 bl 800478c <prvUnlockQueue>
}
8004940: bf00 nop
8004942: 3718 adds r7, #24
8004944: 46bd mov sp, r7
8004946: bd80 pop {r7, pc}
08004948 <xTaskCreateStatic>:
const uint32_t ulStackDepth,
void * const pvParameters,
UBaseType_t uxPriority,
StackType_t * const puxStackBuffer,
StaticTask_t * const pxTaskBuffer )
{
8004948: b580 push {r7, lr}
800494a: b08e sub sp, #56 @ 0x38
800494c: af04 add r7, sp, #16
800494e: 60f8 str r0, [r7, #12]
8004950: 60b9 str r1, [r7, #8]
8004952: 607a str r2, [r7, #4]
8004954: 603b str r3, [r7, #0]
TCB_t *pxNewTCB;
TaskHandle_t xReturn;
configASSERT( puxStackBuffer != NULL );
8004956: 6b7b ldr r3, [r7, #52] @ 0x34
8004958: 2b00 cmp r3, #0
800495a: d10d bne.n 8004978 <xTaskCreateStatic+0x30>
__asm volatile
800495c: f04f 0350 mov.w r3, #80 @ 0x50
8004960: b672 cpsid i
8004962: f383 8811 msr BASEPRI, r3
8004966: f3bf 8f6f isb sy
800496a: f3bf 8f4f dsb sy
800496e: b662 cpsie i
8004970: 623b str r3, [r7, #32]
}
8004972: bf00 nop
8004974: bf00 nop
8004976: e7fd b.n 8004974 <xTaskCreateStatic+0x2c>
configASSERT( pxTaskBuffer != NULL );
8004978: 6bbb ldr r3, [r7, #56] @ 0x38
800497a: 2b00 cmp r3, #0
800497c: d10d bne.n 800499a <xTaskCreateStatic+0x52>
__asm volatile
800497e: f04f 0350 mov.w r3, #80 @ 0x50
8004982: b672 cpsid i
8004984: f383 8811 msr BASEPRI, r3
8004988: f3bf 8f6f isb sy
800498c: f3bf 8f4f dsb sy
8004990: b662 cpsie i
8004992: 61fb str r3, [r7, #28]
}
8004994: bf00 nop
8004996: bf00 nop
8004998: e7fd b.n 8004996 <xTaskCreateStatic+0x4e>
#if( configASSERT_DEFINED == 1 )
{
/* Sanity check that the size of the structure used to declare a
variable of type StaticTask_t equals the size of the real task
structure. */
volatile size_t xSize = sizeof( StaticTask_t );
800499a: 235c movs r3, #92 @ 0x5c
800499c: 613b str r3, [r7, #16]
configASSERT( xSize == sizeof( TCB_t ) );
800499e: 693b ldr r3, [r7, #16]
80049a0: 2b5c cmp r3, #92 @ 0x5c
80049a2: d00d beq.n 80049c0 <xTaskCreateStatic+0x78>
__asm volatile
80049a4: f04f 0350 mov.w r3, #80 @ 0x50
80049a8: b672 cpsid i
80049aa: f383 8811 msr BASEPRI, r3
80049ae: f3bf 8f6f isb sy
80049b2: f3bf 8f4f dsb sy
80049b6: b662 cpsie i
80049b8: 61bb str r3, [r7, #24]
}
80049ba: bf00 nop
80049bc: bf00 nop
80049be: e7fd b.n 80049bc <xTaskCreateStatic+0x74>
( void ) xSize; /* Prevent lint warning when configASSERT() is not used. */
80049c0: 693b ldr r3, [r7, #16]
}
#endif /* configASSERT_DEFINED */
if( ( pxTaskBuffer != NULL ) && ( puxStackBuffer != NULL ) )
80049c2: 6bbb ldr r3, [r7, #56] @ 0x38
80049c4: 2b00 cmp r3, #0
80049c6: d01e beq.n 8004a06 <xTaskCreateStatic+0xbe>
80049c8: 6b7b ldr r3, [r7, #52] @ 0x34
80049ca: 2b00 cmp r3, #0
80049cc: d01b beq.n 8004a06 <xTaskCreateStatic+0xbe>
{
/* The memory used for the task's TCB and stack are passed into this
function - use them. */
pxNewTCB = ( TCB_t * ) pxTaskBuffer; /*lint !e740 !e9087 Unusual cast is ok as the structures are designed to have the same alignment, and the size is checked by an assert. */
80049ce: 6bbb ldr r3, [r7, #56] @ 0x38
80049d0: 627b str r3, [r7, #36] @ 0x24
pxNewTCB->pxStack = ( StackType_t * ) puxStackBuffer;
80049d2: 6a7b ldr r3, [r7, #36] @ 0x24
80049d4: 6b7a ldr r2, [r7, #52] @ 0x34
80049d6: 631a str r2, [r3, #48] @ 0x30
#if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
{
/* Tasks can be created statically or dynamically, so note this
task was created statically in case the task is later deleted. */
pxNewTCB->ucStaticallyAllocated = tskSTATICALLY_ALLOCATED_STACK_AND_TCB;
80049d8: 6a7b ldr r3, [r7, #36] @ 0x24
80049da: 2202 movs r2, #2
80049dc: f883 2059 strb.w r2, [r3, #89] @ 0x59
}
#endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
prvInitialiseNewTask( pxTaskCode, pcName, ulStackDepth, pvParameters, uxPriority, &xReturn, pxNewTCB, NULL );
80049e0: 2300 movs r3, #0
80049e2: 9303 str r3, [sp, #12]
80049e4: 6a7b ldr r3, [r7, #36] @ 0x24
80049e6: 9302 str r3, [sp, #8]
80049e8: f107 0314 add.w r3, r7, #20
80049ec: 9301 str r3, [sp, #4]
80049ee: 6b3b ldr r3, [r7, #48] @ 0x30
80049f0: 9300 str r3, [sp, #0]
80049f2: 683b ldr r3, [r7, #0]
80049f4: 687a ldr r2, [r7, #4]
80049f6: 68b9 ldr r1, [r7, #8]
80049f8: 68f8 ldr r0, [r7, #12]
80049fa: f000 f850 bl 8004a9e <prvInitialiseNewTask>
prvAddNewTaskToReadyList( pxNewTCB );
80049fe: 6a78 ldr r0, [r7, #36] @ 0x24
8004a00: f000 f8e0 bl 8004bc4 <prvAddNewTaskToReadyList>
8004a04: e001 b.n 8004a0a <xTaskCreateStatic+0xc2>
}
else
{
xReturn = NULL;
8004a06: 2300 movs r3, #0
8004a08: 617b str r3, [r7, #20]
}
return xReturn;
8004a0a: 697b ldr r3, [r7, #20]
}
8004a0c: 4618 mov r0, r3
8004a0e: 3728 adds r7, #40 @ 0x28
8004a10: 46bd mov sp, r7
8004a12: bd80 pop {r7, pc}
08004a14 <xTaskCreate>:
const char * const pcName, /*lint !e971 Unqualified char types are allowed for strings and single characters only. */
const configSTACK_DEPTH_TYPE usStackDepth,
void * const pvParameters,
UBaseType_t uxPriority,
TaskHandle_t * const pxCreatedTask )
{
8004a14: b580 push {r7, lr}
8004a16: b08c sub sp, #48 @ 0x30
8004a18: af04 add r7, sp, #16
8004a1a: 60f8 str r0, [r7, #12]
8004a1c: 60b9 str r1, [r7, #8]
8004a1e: 603b str r3, [r7, #0]
8004a20: 4613 mov r3, r2
8004a22: 80fb strh r3, [r7, #6]
#else /* portSTACK_GROWTH */
{
StackType_t *pxStack;
/* Allocate space for the stack used by the task being created. */
pxStack = pvPortMalloc( ( ( ( size_t ) usStackDepth ) * sizeof( StackType_t ) ) ); /*lint !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack and this allocation is the stack. */
8004a24: 88fb ldrh r3, [r7, #6]
8004a26: 009b lsls r3, r3, #2
8004a28: 4618 mov r0, r3
8004a2a: f001 fc65 bl 80062f8 <pvPortMalloc>
8004a2e: 6178 str r0, [r7, #20]
if( pxStack != NULL )
8004a30: 697b ldr r3, [r7, #20]
8004a32: 2b00 cmp r3, #0
8004a34: d00e beq.n 8004a54 <xTaskCreate+0x40>
{
/* Allocate space for the TCB. */
pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of TCB_t is always a pointer to the task's stack. */
8004a36: 205c movs r0, #92 @ 0x5c
8004a38: f001 fc5e bl 80062f8 <pvPortMalloc>
8004a3c: 61f8 str r0, [r7, #28]
if( pxNewTCB != NULL )
8004a3e: 69fb ldr r3, [r7, #28]
8004a40: 2b00 cmp r3, #0
8004a42: d003 beq.n 8004a4c <xTaskCreate+0x38>
{
/* Store the stack location in the TCB. */
pxNewTCB->pxStack = pxStack;
8004a44: 69fb ldr r3, [r7, #28]
8004a46: 697a ldr r2, [r7, #20]
8004a48: 631a str r2, [r3, #48] @ 0x30
8004a4a: e005 b.n 8004a58 <xTaskCreate+0x44>
}
else
{
/* The stack cannot be used as the TCB was not created. Free
it again. */
vPortFree( pxStack );
8004a4c: 6978 ldr r0, [r7, #20]
8004a4e: f001 fd21 bl 8006494 <vPortFree>
8004a52: e001 b.n 8004a58 <xTaskCreate+0x44>
}
}
else
{
pxNewTCB = NULL;
8004a54: 2300 movs r3, #0
8004a56: 61fb str r3, [r7, #28]
}
}
#endif /* portSTACK_GROWTH */
if( pxNewTCB != NULL )
8004a58: 69fb ldr r3, [r7, #28]
8004a5a: 2b00 cmp r3, #0
8004a5c: d017 beq.n 8004a8e <xTaskCreate+0x7a>
{
#if( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e9029 !e731 Macro has been consolidated for readability reasons. */
{
/* Tasks can be created statically or dynamically, so note this
task was created dynamically in case it is later deleted. */
pxNewTCB->ucStaticallyAllocated = tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB;
8004a5e: 69fb ldr r3, [r7, #28]
8004a60: 2200 movs r2, #0
8004a62: f883 2059 strb.w r2, [r3, #89] @ 0x59
}
#endif /* tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE */
prvInitialiseNewTask( pxTaskCode, pcName, ( uint32_t ) usStackDepth, pvParameters, uxPriority, pxCreatedTask, pxNewTCB, NULL );
8004a66: 88fa ldrh r2, [r7, #6]
8004a68: 2300 movs r3, #0
8004a6a: 9303 str r3, [sp, #12]
8004a6c: 69fb ldr r3, [r7, #28]
8004a6e: 9302 str r3, [sp, #8]
8004a70: 6afb ldr r3, [r7, #44] @ 0x2c
8004a72: 9301 str r3, [sp, #4]
8004a74: 6abb ldr r3, [r7, #40] @ 0x28
8004a76: 9300 str r3, [sp, #0]
8004a78: 683b ldr r3, [r7, #0]
8004a7a: 68b9 ldr r1, [r7, #8]
8004a7c: 68f8 ldr r0, [r7, #12]
8004a7e: f000 f80e bl 8004a9e <prvInitialiseNewTask>
prvAddNewTaskToReadyList( pxNewTCB );
8004a82: 69f8 ldr r0, [r7, #28]
8004a84: f000 f89e bl 8004bc4 <prvAddNewTaskToReadyList>
xReturn = pdPASS;
8004a88: 2301 movs r3, #1
8004a8a: 61bb str r3, [r7, #24]
8004a8c: e002 b.n 8004a94 <xTaskCreate+0x80>
}
else
{
xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
8004a8e: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
8004a92: 61bb str r3, [r7, #24]
}
return xReturn;
8004a94: 69bb ldr r3, [r7, #24]
}
8004a96: 4618 mov r0, r3
8004a98: 3720 adds r7, #32
8004a9a: 46bd mov sp, r7
8004a9c: bd80 pop {r7, pc}
08004a9e <prvInitialiseNewTask>:
void * const pvParameters,
UBaseType_t uxPriority,
TaskHandle_t * const pxCreatedTask,
TCB_t *pxNewTCB,
const MemoryRegion_t * const xRegions )
{
8004a9e: b580 push {r7, lr}
8004aa0: b088 sub sp, #32
8004aa2: af00 add r7, sp, #0
8004aa4: 60f8 str r0, [r7, #12]
8004aa6: 60b9 str r1, [r7, #8]
8004aa8: 607a str r2, [r7, #4]
8004aaa: 603b str r3, [r7, #0]
/* Avoid dependency on memset() if it is not required. */
#if( tskSET_NEW_STACKS_TO_KNOWN_VALUE == 1 )
{
/* Fill the stack with a known value to assist debugging. */
( void ) memset( pxNewTCB->pxStack, ( int ) tskSTACK_FILL_BYTE, ( size_t ) ulStackDepth * sizeof( StackType_t ) );
8004aac: 6b3b ldr r3, [r7, #48] @ 0x30
8004aae: 6b18 ldr r0, [r3, #48] @ 0x30
8004ab0: 687b ldr r3, [r7, #4]
8004ab2: 009b lsls r3, r3, #2
8004ab4: 461a mov r2, r3
8004ab6: 21a5 movs r1, #165 @ 0xa5
8004ab8: f001 ff1f bl 80068fa <memset>
grows from high memory to low (as per the 80x86) or vice versa.
portSTACK_GROWTH is used to make the result positive or negative as required
by the port. */
#if( portSTACK_GROWTH < 0 )
{
pxTopOfStack = &( pxNewTCB->pxStack[ ulStackDepth - ( uint32_t ) 1 ] );
8004abc: 6b3b ldr r3, [r7, #48] @ 0x30
8004abe: 6b1a ldr r2, [r3, #48] @ 0x30
8004ac0: 6879 ldr r1, [r7, #4]
8004ac2: f06f 4340 mvn.w r3, #3221225472 @ 0xc0000000
8004ac6: 440b add r3, r1
8004ac8: 009b lsls r3, r3, #2
8004aca: 4413 add r3, r2
8004acc: 61bb str r3, [r7, #24]
pxTopOfStack = ( StackType_t * ) ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack ) & ( ~( ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) ) ); /*lint !e923 !e9033 !e9078 MISRA exception. Avoiding casts between pointers and integers is not practical. Size differences accounted for using portPOINTER_SIZE_TYPE type. Checked by assert(). */
8004ace: 69bb ldr r3, [r7, #24]
8004ad0: f023 0307 bic.w r3, r3, #7
8004ad4: 61bb str r3, [r7, #24]
/* Check the alignment of the calculated top of stack is correct. */
configASSERT( ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack & ( portPOINTER_SIZE_TYPE ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
8004ad6: 69bb ldr r3, [r7, #24]
8004ad8: f003 0307 and.w r3, r3, #7
8004adc: 2b00 cmp r3, #0
8004ade: d00d beq.n 8004afc <prvInitialiseNewTask+0x5e>
__asm volatile
8004ae0: f04f 0350 mov.w r3, #80 @ 0x50
8004ae4: b672 cpsid i
8004ae6: f383 8811 msr BASEPRI, r3
8004aea: f3bf 8f6f isb sy
8004aee: f3bf 8f4f dsb sy
8004af2: b662 cpsie i
8004af4: 617b str r3, [r7, #20]
}
8004af6: bf00 nop
8004af8: bf00 nop
8004afa: e7fd b.n 8004af8 <prvInitialiseNewTask+0x5a>
pxNewTCB->pxEndOfStack = pxNewTCB->pxStack + ( ulStackDepth - ( uint32_t ) 1 );
}
#endif /* portSTACK_GROWTH */
/* Store the task name in the TCB. */
if( pcName != NULL )
8004afc: 68bb ldr r3, [r7, #8]
8004afe: 2b00 cmp r3, #0
8004b00: d01f beq.n 8004b42 <prvInitialiseNewTask+0xa4>
{
for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
8004b02: 2300 movs r3, #0
8004b04: 61fb str r3, [r7, #28]
8004b06: e012 b.n 8004b2e <prvInitialiseNewTask+0x90>
{
pxNewTCB->pcTaskName[ x ] = pcName[ x ];
8004b08: 68ba ldr r2, [r7, #8]
8004b0a: 69fb ldr r3, [r7, #28]
8004b0c: 4413 add r3, r2
8004b0e: 7819 ldrb r1, [r3, #0]
8004b10: 6b3a ldr r2, [r7, #48] @ 0x30
8004b12: 69fb ldr r3, [r7, #28]
8004b14: 4413 add r3, r2
8004b16: 3334 adds r3, #52 @ 0x34
8004b18: 460a mov r2, r1
8004b1a: 701a strb r2, [r3, #0]
/* Don't copy all configMAX_TASK_NAME_LEN if the string is shorter than
configMAX_TASK_NAME_LEN characters just in case the memory after the
string is not accessible (extremely unlikely). */
if( pcName[ x ] == ( char ) 0x00 )
8004b1c: 68ba ldr r2, [r7, #8]
8004b1e: 69fb ldr r3, [r7, #28]
8004b20: 4413 add r3, r2
8004b22: 781b ldrb r3, [r3, #0]
8004b24: 2b00 cmp r3, #0
8004b26: d006 beq.n 8004b36 <prvInitialiseNewTask+0x98>
for( x = ( UBaseType_t ) 0; x < ( UBaseType_t ) configMAX_TASK_NAME_LEN; x++ )
8004b28: 69fb ldr r3, [r7, #28]
8004b2a: 3301 adds r3, #1
8004b2c: 61fb str r3, [r7, #28]
8004b2e: 69fb ldr r3, [r7, #28]
8004b30: 2b0f cmp r3, #15
8004b32: d9e9 bls.n 8004b08 <prvInitialiseNewTask+0x6a>
8004b34: e000 b.n 8004b38 <prvInitialiseNewTask+0x9a>
{
break;
8004b36: bf00 nop
}
}
/* Ensure the name string is terminated in the case that the string length
was greater or equal to configMAX_TASK_NAME_LEN. */
pxNewTCB->pcTaskName[ configMAX_TASK_NAME_LEN - 1 ] = '\0';
8004b38: 6b3b ldr r3, [r7, #48] @ 0x30
8004b3a: 2200 movs r2, #0
8004b3c: f883 2043 strb.w r2, [r3, #67] @ 0x43
8004b40: e003 b.n 8004b4a <prvInitialiseNewTask+0xac>
}
else
{
/* The task has not been given a name, so just ensure there is a NULL
terminator when it is read out. */
pxNewTCB->pcTaskName[ 0 ] = 0x00;
8004b42: 6b3b ldr r3, [r7, #48] @ 0x30
8004b44: 2200 movs r2, #0
8004b46: f883 2034 strb.w r2, [r3, #52] @ 0x34
}
/* This is used as an array index so must ensure it's not too large. First
remove the privilege bit if one is present. */
if( uxPriority >= ( UBaseType_t ) configMAX_PRIORITIES )
8004b4a: 6abb ldr r3, [r7, #40] @ 0x28
8004b4c: 2b37 cmp r3, #55 @ 0x37
8004b4e: d901 bls.n 8004b54 <prvInitialiseNewTask+0xb6>
{
uxPriority = ( UBaseType_t ) configMAX_PRIORITIES - ( UBaseType_t ) 1U;
8004b50: 2337 movs r3, #55 @ 0x37
8004b52: 62bb str r3, [r7, #40] @ 0x28
else
{
mtCOVERAGE_TEST_MARKER();
}
pxNewTCB->uxPriority = uxPriority;
8004b54: 6b3b ldr r3, [r7, #48] @ 0x30
8004b56: 6aba ldr r2, [r7, #40] @ 0x28
8004b58: 62da str r2, [r3, #44] @ 0x2c
#if ( configUSE_MUTEXES == 1 )
{
pxNewTCB->uxBasePriority = uxPriority;
8004b5a: 6b3b ldr r3, [r7, #48] @ 0x30
8004b5c: 6aba ldr r2, [r7, #40] @ 0x28
8004b5e: 64da str r2, [r3, #76] @ 0x4c
pxNewTCB->uxMutexesHeld = 0;
8004b60: 6b3b ldr r3, [r7, #48] @ 0x30
8004b62: 2200 movs r2, #0
8004b64: 651a str r2, [r3, #80] @ 0x50
}
#endif /* configUSE_MUTEXES */
vListInitialiseItem( &( pxNewTCB->xStateListItem ) );
8004b66: 6b3b ldr r3, [r7, #48] @ 0x30
8004b68: 3304 adds r3, #4
8004b6a: 4618 mov r0, r3
8004b6c: f7ff f93e bl 8003dec <vListInitialiseItem>
vListInitialiseItem( &( pxNewTCB->xEventListItem ) );
8004b70: 6b3b ldr r3, [r7, #48] @ 0x30
8004b72: 3318 adds r3, #24
8004b74: 4618 mov r0, r3
8004b76: f7ff f939 bl 8003dec <vListInitialiseItem>
/* Set the pxNewTCB as a link back from the ListItem_t. This is so we can get
back to the containing TCB from a generic item in a list. */
listSET_LIST_ITEM_OWNER( &( pxNewTCB->xStateListItem ), pxNewTCB );
8004b7a: 6b3b ldr r3, [r7, #48] @ 0x30
8004b7c: 6b3a ldr r2, [r7, #48] @ 0x30
8004b7e: 611a str r2, [r3, #16]
/* Event lists are always in priority order. */
listSET_LIST_ITEM_VALUE( &( pxNewTCB->xEventListItem ), ( TickType_t ) configMAX_PRIORITIES - ( TickType_t ) uxPriority ); /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
8004b80: 6abb ldr r3, [r7, #40] @ 0x28
8004b82: f1c3 0238 rsb r2, r3, #56 @ 0x38
8004b86: 6b3b ldr r3, [r7, #48] @ 0x30
8004b88: 619a str r2, [r3, #24]
listSET_LIST_ITEM_OWNER( &( pxNewTCB->xEventListItem ), pxNewTCB );
8004b8a: 6b3b ldr r3, [r7, #48] @ 0x30
8004b8c: 6b3a ldr r2, [r7, #48] @ 0x30
8004b8e: 625a str r2, [r3, #36] @ 0x24
}
#endif
#if ( configUSE_TASK_NOTIFICATIONS == 1 )
{
pxNewTCB->ulNotifiedValue = 0;
8004b90: 6b3b ldr r3, [r7, #48] @ 0x30
8004b92: 2200 movs r2, #0
8004b94: 655a str r2, [r3, #84] @ 0x54
pxNewTCB->ucNotifyState = taskNOT_WAITING_NOTIFICATION;
8004b96: 6b3b ldr r3, [r7, #48] @ 0x30
8004b98: 2200 movs r2, #0
8004b9a: f883 2058 strb.w r2, [r3, #88] @ 0x58
}
#endif /* portSTACK_GROWTH */
}
#else /* portHAS_STACK_OVERFLOW_CHECKING */
{
pxNewTCB->pxTopOfStack = pxPortInitialiseStack( pxTopOfStack, pxTaskCode, pvParameters );
8004b9e: 683a ldr r2, [r7, #0]
8004ba0: 68f9 ldr r1, [r7, #12]
8004ba2: 69b8 ldr r0, [r7, #24]
8004ba4: f001 f968 bl 8005e78 <pxPortInitialiseStack>
8004ba8: 4602 mov r2, r0
8004baa: 6b3b ldr r3, [r7, #48] @ 0x30
8004bac: 601a str r2, [r3, #0]
}
#endif /* portHAS_STACK_OVERFLOW_CHECKING */
}
#endif /* portUSING_MPU_WRAPPERS */
if( pxCreatedTask != NULL )
8004bae: 6afb ldr r3, [r7, #44] @ 0x2c
8004bb0: 2b00 cmp r3, #0
8004bb2: d002 beq.n 8004bba <prvInitialiseNewTask+0x11c>
{
/* Pass the handle out in an anonymous way. The handle can be used to
change the created task's priority, delete the created task, etc.*/
*pxCreatedTask = ( TaskHandle_t ) pxNewTCB;
8004bb4: 6afb ldr r3, [r7, #44] @ 0x2c
8004bb6: 6b3a ldr r2, [r7, #48] @ 0x30
8004bb8: 601a str r2, [r3, #0]
}
else
{
mtCOVERAGE_TEST_MARKER();
}
}
8004bba: bf00 nop
8004bbc: 3720 adds r7, #32
8004bbe: 46bd mov sp, r7
8004bc0: bd80 pop {r7, pc}
...
08004bc4 <prvAddNewTaskToReadyList>:
/*-----------------------------------------------------------*/
static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB )
{
8004bc4: b580 push {r7, lr}
8004bc6: b082 sub sp, #8
8004bc8: af00 add r7, sp, #0
8004bca: 6078 str r0, [r7, #4]
/* Ensure interrupts don't access the task lists while the lists are being
updated. */
taskENTER_CRITICAL();
8004bcc: f001 fa66 bl 800609c <vPortEnterCritical>
{
uxCurrentNumberOfTasks++;
8004bd0: 4b2d ldr r3, [pc, #180] @ (8004c88 <prvAddNewTaskToReadyList+0xc4>)
8004bd2: 681b ldr r3, [r3, #0]
8004bd4: 3301 adds r3, #1
8004bd6: 4a2c ldr r2, [pc, #176] @ (8004c88 <prvAddNewTaskToReadyList+0xc4>)
8004bd8: 6013 str r3, [r2, #0]
if( pxCurrentTCB == NULL )
8004bda: 4b2c ldr r3, [pc, #176] @ (8004c8c <prvAddNewTaskToReadyList+0xc8>)
8004bdc: 681b ldr r3, [r3, #0]
8004bde: 2b00 cmp r3, #0
8004be0: d109 bne.n 8004bf6 <prvAddNewTaskToReadyList+0x32>
{
/* There are no other tasks, or all the other tasks are in
the suspended state - make this the current task. */
pxCurrentTCB = pxNewTCB;
8004be2: 4a2a ldr r2, [pc, #168] @ (8004c8c <prvAddNewTaskToReadyList+0xc8>)
8004be4: 687b ldr r3, [r7, #4]
8004be6: 6013 str r3, [r2, #0]
if( uxCurrentNumberOfTasks == ( UBaseType_t ) 1 )
8004be8: 4b27 ldr r3, [pc, #156] @ (8004c88 <prvAddNewTaskToReadyList+0xc4>)
8004bea: 681b ldr r3, [r3, #0]
8004bec: 2b01 cmp r3, #1
8004bee: d110 bne.n 8004c12 <prvAddNewTaskToReadyList+0x4e>
{
/* This is the first task to be created so do the preliminary
initialisation required. We will not recover if this call
fails, but we will report the failure. */
prvInitialiseTaskLists();
8004bf0: f000 fc34 bl 800545c <prvInitialiseTaskLists>
8004bf4: e00d b.n 8004c12 <prvAddNewTaskToReadyList+0x4e>
else
{
/* If the scheduler is not already running, make this task the
current task if it is the highest priority task to be created
so far. */
if( xSchedulerRunning == pdFALSE )
8004bf6: 4b26 ldr r3, [pc, #152] @ (8004c90 <prvAddNewTaskToReadyList+0xcc>)
8004bf8: 681b ldr r3, [r3, #0]
8004bfa: 2b00 cmp r3, #0
8004bfc: d109 bne.n 8004c12 <prvAddNewTaskToReadyList+0x4e>
{
if( pxCurrentTCB->uxPriority <= pxNewTCB->uxPriority )
8004bfe: 4b23 ldr r3, [pc, #140] @ (8004c8c <prvAddNewTaskToReadyList+0xc8>)
8004c00: 681b ldr r3, [r3, #0]
8004c02: 6ada ldr r2, [r3, #44] @ 0x2c
8004c04: 687b ldr r3, [r7, #4]
8004c06: 6adb ldr r3, [r3, #44] @ 0x2c
8004c08: 429a cmp r2, r3
8004c0a: d802 bhi.n 8004c12 <prvAddNewTaskToReadyList+0x4e>
{
pxCurrentTCB = pxNewTCB;
8004c0c: 4a1f ldr r2, [pc, #124] @ (8004c8c <prvAddNewTaskToReadyList+0xc8>)
8004c0e: 687b ldr r3, [r7, #4]
8004c10: 6013 str r3, [r2, #0]
{
mtCOVERAGE_TEST_MARKER();
}
}
uxTaskNumber++;
8004c12: 4b20 ldr r3, [pc, #128] @ (8004c94 <prvAddNewTaskToReadyList+0xd0>)
8004c14: 681b ldr r3, [r3, #0]
8004c16: 3301 adds r3, #1
8004c18: 4a1e ldr r2, [pc, #120] @ (8004c94 <prvAddNewTaskToReadyList+0xd0>)
8004c1a: 6013 str r3, [r2, #0]
#if ( configUSE_TRACE_FACILITY == 1 )
{
/* Add a counter into the TCB for tracing only. */
pxNewTCB->uxTCBNumber = uxTaskNumber;
8004c1c: 4b1d ldr r3, [pc, #116] @ (8004c94 <prvAddNewTaskToReadyList+0xd0>)
8004c1e: 681a ldr r2, [r3, #0]
8004c20: 687b ldr r3, [r7, #4]
8004c22: 645a str r2, [r3, #68] @ 0x44
}
#endif /* configUSE_TRACE_FACILITY */
traceTASK_CREATE( pxNewTCB );
prvAddTaskToReadyList( pxNewTCB );
8004c24: 687b ldr r3, [r7, #4]
8004c26: 6ada ldr r2, [r3, #44] @ 0x2c
8004c28: 4b1b ldr r3, [pc, #108] @ (8004c98 <prvAddNewTaskToReadyList+0xd4>)
8004c2a: 681b ldr r3, [r3, #0]
8004c2c: 429a cmp r2, r3
8004c2e: d903 bls.n 8004c38 <prvAddNewTaskToReadyList+0x74>
8004c30: 687b ldr r3, [r7, #4]
8004c32: 6adb ldr r3, [r3, #44] @ 0x2c
8004c34: 4a18 ldr r2, [pc, #96] @ (8004c98 <prvAddNewTaskToReadyList+0xd4>)
8004c36: 6013 str r3, [r2, #0]
8004c38: 687b ldr r3, [r7, #4]
8004c3a: 6ada ldr r2, [r3, #44] @ 0x2c
8004c3c: 4613 mov r3, r2
8004c3e: 009b lsls r3, r3, #2
8004c40: 4413 add r3, r2
8004c42: 009b lsls r3, r3, #2
8004c44: 4a15 ldr r2, [pc, #84] @ (8004c9c <prvAddNewTaskToReadyList+0xd8>)
8004c46: 441a add r2, r3
8004c48: 687b ldr r3, [r7, #4]
8004c4a: 3304 adds r3, #4
8004c4c: 4619 mov r1, r3
8004c4e: 4610 mov r0, r2
8004c50: f7ff f8d9 bl 8003e06 <vListInsertEnd>
portSETUP_TCB( pxNewTCB );
}
taskEXIT_CRITICAL();
8004c54: f001 fa58 bl 8006108 <vPortExitCritical>
if( xSchedulerRunning != pdFALSE )
8004c58: 4b0d ldr r3, [pc, #52] @ (8004c90 <prvAddNewTaskToReadyList+0xcc>)
8004c5a: 681b ldr r3, [r3, #0]
8004c5c: 2b00 cmp r3, #0
8004c5e: d00e beq.n 8004c7e <prvAddNewTaskToReadyList+0xba>
{
/* If the created task is of a higher priority than the current task
then it should run now. */
if( pxCurrentTCB->uxPriority < pxNewTCB->uxPriority )
8004c60: 4b0a ldr r3, [pc, #40] @ (8004c8c <prvAddNewTaskToReadyList+0xc8>)
8004c62: 681b ldr r3, [r3, #0]
8004c64: 6ada ldr r2, [r3, #44] @ 0x2c
8004c66: 687b ldr r3, [r7, #4]
8004c68: 6adb ldr r3, [r3, #44] @ 0x2c
8004c6a: 429a cmp r2, r3
8004c6c: d207 bcs.n 8004c7e <prvAddNewTaskToReadyList+0xba>
{
taskYIELD_IF_USING_PREEMPTION();
8004c6e: 4b0c ldr r3, [pc, #48] @ (8004ca0 <prvAddNewTaskToReadyList+0xdc>)
8004c70: f04f 5280 mov.w r2, #268435456 @ 0x10000000
8004c74: 601a str r2, [r3, #0]
8004c76: f3bf 8f4f dsb sy
8004c7a: f3bf 8f6f isb sy
}
else
{
mtCOVERAGE_TEST_MARKER();
}
}
8004c7e: bf00 nop
8004c80: 3708 adds r7, #8
8004c82: 46bd mov sp, r7
8004c84: bd80 pop {r7, pc}
8004c86: bf00 nop
8004c88: 2000133c .word 0x2000133c
8004c8c: 20000e68 .word 0x20000e68
8004c90: 20001348 .word 0x20001348
8004c94: 20001358 .word 0x20001358
8004c98: 20001344 .word 0x20001344
8004c9c: 20000e6c .word 0x20000e6c
8004ca0: e000ed04 .word 0xe000ed04
08004ca4 <vTaskDelay>:
/*-----------------------------------------------------------*/
#if ( INCLUDE_vTaskDelay == 1 )
void vTaskDelay( const TickType_t xTicksToDelay )
{
8004ca4: b580 push {r7, lr}
8004ca6: b084 sub sp, #16
8004ca8: af00 add r7, sp, #0
8004caa: 6078 str r0, [r7, #4]
BaseType_t xAlreadyYielded = pdFALSE;
8004cac: 2300 movs r3, #0
8004cae: 60fb str r3, [r7, #12]
/* A delay time of zero just forces a reschedule. */
if( xTicksToDelay > ( TickType_t ) 0U )
8004cb0: 687b ldr r3, [r7, #4]
8004cb2: 2b00 cmp r3, #0
8004cb4: d01a beq.n 8004cec <vTaskDelay+0x48>
{
configASSERT( uxSchedulerSuspended == 0 );
8004cb6: 4b15 ldr r3, [pc, #84] @ (8004d0c <vTaskDelay+0x68>)
8004cb8: 681b ldr r3, [r3, #0]
8004cba: 2b00 cmp r3, #0
8004cbc: d00d beq.n 8004cda <vTaskDelay+0x36>
__asm volatile
8004cbe: f04f 0350 mov.w r3, #80 @ 0x50
8004cc2: b672 cpsid i
8004cc4: f383 8811 msr BASEPRI, r3
8004cc8: f3bf 8f6f isb sy
8004ccc: f3bf 8f4f dsb sy
8004cd0: b662 cpsie i
8004cd2: 60bb str r3, [r7, #8]
}
8004cd4: bf00 nop
8004cd6: bf00 nop
8004cd8: e7fd b.n 8004cd6 <vTaskDelay+0x32>
vTaskSuspendAll();
8004cda: f000 f887 bl 8004dec <vTaskSuspendAll>
list or removed from the blocked list until the scheduler
is resumed.
This task cannot be in an event list as it is the currently
executing task. */
prvAddCurrentTaskToDelayedList( xTicksToDelay, pdFALSE );
8004cde: 2100 movs r1, #0
8004ce0: 6878 ldr r0, [r7, #4]
8004ce2: f000 fd0d bl 8005700 <prvAddCurrentTaskToDelayedList>
}
xAlreadyYielded = xTaskResumeAll();
8004ce6: f000 f88f bl 8004e08 <xTaskResumeAll>
8004cea: 60f8 str r0, [r7, #12]
mtCOVERAGE_TEST_MARKER();
}
/* Force a reschedule if xTaskResumeAll has not already done so, we may
have put ourselves to sleep. */
if( xAlreadyYielded == pdFALSE )
8004cec: 68fb ldr r3, [r7, #12]
8004cee: 2b00 cmp r3, #0
8004cf0: d107 bne.n 8004d02 <vTaskDelay+0x5e>
{
portYIELD_WITHIN_API();
8004cf2: 4b07 ldr r3, [pc, #28] @ (8004d10 <vTaskDelay+0x6c>)
8004cf4: f04f 5280 mov.w r2, #268435456 @ 0x10000000
8004cf8: 601a str r2, [r3, #0]
8004cfa: f3bf 8f4f dsb sy
8004cfe: f3bf 8f6f isb sy
}
else
{
mtCOVERAGE_TEST_MARKER();
}
}
8004d02: bf00 nop
8004d04: 3710 adds r7, #16
8004d06: 46bd mov sp, r7
8004d08: bd80 pop {r7, pc}
8004d0a: bf00 nop
8004d0c: 20001364 .word 0x20001364
8004d10: e000ed04 .word 0xe000ed04
08004d14 <vTaskStartScheduler>:
#endif /* ( ( INCLUDE_xTaskResumeFromISR == 1 ) && ( INCLUDE_vTaskSuspend == 1 ) ) */
/*-----------------------------------------------------------*/
void vTaskStartScheduler( void )
{
8004d14: b580 push {r7, lr}
8004d16: b08a sub sp, #40 @ 0x28
8004d18: af04 add r7, sp, #16
BaseType_t xReturn;
/* Add the idle task at the lowest priority. */
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
{
StaticTask_t *pxIdleTaskTCBBuffer = NULL;
8004d1a: 2300 movs r3, #0
8004d1c: 60bb str r3, [r7, #8]
StackType_t *pxIdleTaskStackBuffer = NULL;
8004d1e: 2300 movs r3, #0
8004d20: 607b str r3, [r7, #4]
uint32_t ulIdleTaskStackSize;
/* The Idle task is created using user provided RAM - obtain the
address of the RAM then create the idle task. */
vApplicationGetIdleTaskMemory( &pxIdleTaskTCBBuffer, &pxIdleTaskStackBuffer, &ulIdleTaskStackSize );
8004d22: 463a mov r2, r7
8004d24: 1d39 adds r1, r7, #4
8004d26: f107 0308 add.w r3, r7, #8
8004d2a: 4618 mov r0, r3
8004d2c: f7ff f80a bl 8003d44 <vApplicationGetIdleTaskMemory>
xIdleTaskHandle = xTaskCreateStatic( prvIdleTask,
8004d30: 6839 ldr r1, [r7, #0]
8004d32: 687b ldr r3, [r7, #4]
8004d34: 68ba ldr r2, [r7, #8]
8004d36: 9202 str r2, [sp, #8]
8004d38: 9301 str r3, [sp, #4]
8004d3a: 2300 movs r3, #0
8004d3c: 9300 str r3, [sp, #0]
8004d3e: 2300 movs r3, #0
8004d40: 460a mov r2, r1
8004d42: 4924 ldr r1, [pc, #144] @ (8004dd4 <vTaskStartScheduler+0xc0>)
8004d44: 4824 ldr r0, [pc, #144] @ (8004dd8 <vTaskStartScheduler+0xc4>)
8004d46: f7ff fdff bl 8004948 <xTaskCreateStatic>
8004d4a: 4603 mov r3, r0
8004d4c: 4a23 ldr r2, [pc, #140] @ (8004ddc <vTaskStartScheduler+0xc8>)
8004d4e: 6013 str r3, [r2, #0]
( void * ) NULL, /*lint !e961. The cast is not redundant for all compilers. */
portPRIVILEGE_BIT, /* In effect ( tskIDLE_PRIORITY | portPRIVILEGE_BIT ), but tskIDLE_PRIORITY is zero. */
pxIdleTaskStackBuffer,
pxIdleTaskTCBBuffer ); /*lint !e961 MISRA exception, justified as it is not a redundant explicit cast to all supported compilers. */
if( xIdleTaskHandle != NULL )
8004d50: 4b22 ldr r3, [pc, #136] @ (8004ddc <vTaskStartScheduler+0xc8>)
8004d52: 681b ldr r3, [r3, #0]
8004d54: 2b00 cmp r3, #0
8004d56: d002 beq.n 8004d5e <vTaskStartScheduler+0x4a>
{
xReturn = pdPASS;
8004d58: 2301 movs r3, #1
8004d5a: 617b str r3, [r7, #20]
8004d5c: e001 b.n 8004d62 <vTaskStartScheduler+0x4e>
}
else
{
xReturn = pdFAIL;
8004d5e: 2300 movs r3, #0
8004d60: 617b str r3, [r7, #20]
}
#endif /* configSUPPORT_STATIC_ALLOCATION */
#if ( configUSE_TIMERS == 1 )
{
if( xReturn == pdPASS )
8004d62: 697b ldr r3, [r7, #20]
8004d64: 2b01 cmp r3, #1
8004d66: d102 bne.n 8004d6e <vTaskStartScheduler+0x5a>
{
xReturn = xTimerCreateTimerTask();
8004d68: f000 fd1e bl 80057a8 <xTimerCreateTimerTask>
8004d6c: 6178 str r0, [r7, #20]
mtCOVERAGE_TEST_MARKER();
}
}
#endif /* configUSE_TIMERS */
if( xReturn == pdPASS )
8004d6e: 697b ldr r3, [r7, #20]
8004d70: 2b01 cmp r3, #1
8004d72: d118 bne.n 8004da6 <vTaskStartScheduler+0x92>
__asm volatile
8004d74: f04f 0350 mov.w r3, #80 @ 0x50
8004d78: b672 cpsid i
8004d7a: f383 8811 msr BASEPRI, r3
8004d7e: f3bf 8f6f isb sy
8004d82: f3bf 8f4f dsb sy
8004d86: b662 cpsie i
8004d88: 613b str r3, [r7, #16]
}
8004d8a: bf00 nop
structure specific to the task that will run first. */
_impure_ptr = &( pxCurrentTCB->xNewLib_reent );
}
#endif /* configUSE_NEWLIB_REENTRANT */
xNextTaskUnblockTime = portMAX_DELAY;
8004d8c: 4b14 ldr r3, [pc, #80] @ (8004de0 <vTaskStartScheduler+0xcc>)
8004d8e: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
8004d92: 601a str r2, [r3, #0]
xSchedulerRunning = pdTRUE;
8004d94: 4b13 ldr r3, [pc, #76] @ (8004de4 <vTaskStartScheduler+0xd0>)
8004d96: 2201 movs r2, #1
8004d98: 601a str r2, [r3, #0]
xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
8004d9a: 4b13 ldr r3, [pc, #76] @ (8004de8 <vTaskStartScheduler+0xd4>)
8004d9c: 2200 movs r2, #0
8004d9e: 601a str r2, [r3, #0]
traceTASK_SWITCHED_IN();
/* Setting up the timer tick is hardware specific and thus in the
portable interface. */
if( xPortStartScheduler() != pdFALSE )
8004da0: f001 f8fe bl 8005fa0 <xPortStartScheduler>
}
/* Prevent compiler warnings if INCLUDE_xTaskGetIdleTaskHandle is set to 0,
meaning xIdleTaskHandle is not used anywhere else. */
( void ) xIdleTaskHandle;
}
8004da4: e011 b.n 8004dca <vTaskStartScheduler+0xb6>
configASSERT( xReturn != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );
8004da6: 697b ldr r3, [r7, #20]
8004da8: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
8004dac: d10d bne.n 8004dca <vTaskStartScheduler+0xb6>
__asm volatile
8004dae: f04f 0350 mov.w r3, #80 @ 0x50
8004db2: b672 cpsid i
8004db4: f383 8811 msr BASEPRI, r3
8004db8: f3bf 8f6f isb sy
8004dbc: f3bf 8f4f dsb sy
8004dc0: b662 cpsie i
8004dc2: 60fb str r3, [r7, #12]
}
8004dc4: bf00 nop
8004dc6: bf00 nop
8004dc8: e7fd b.n 8004dc6 <vTaskStartScheduler+0xb2>
}
8004dca: bf00 nop
8004dcc: 3718 adds r7, #24
8004dce: 46bd mov sp, r7
8004dd0: bd80 pop {r7, pc}
8004dd2: bf00 nop
8004dd4: 080075a8 .word 0x080075a8
8004dd8: 0800542d .word 0x0800542d
8004ddc: 20001360 .word 0x20001360
8004de0: 2000135c .word 0x2000135c
8004de4: 20001348 .word 0x20001348
8004de8: 20001340 .word 0x20001340
08004dec <vTaskSuspendAll>:
vPortEndScheduler();
}
/*----------------------------------------------------------*/
void vTaskSuspendAll( void )
{
8004dec: b480 push {r7}
8004dee: af00 add r7, sp, #0
/* A critical section is not required as the variable is of type
BaseType_t. Please read Richard Barry's reply in the following link to a
post in the FreeRTOS support forum before reporting this as a bug! -
http://goo.gl/wu4acr */
++uxSchedulerSuspended;
8004df0: 4b04 ldr r3, [pc, #16] @ (8004e04 <vTaskSuspendAll+0x18>)
8004df2: 681b ldr r3, [r3, #0]
8004df4: 3301 adds r3, #1
8004df6: 4a03 ldr r2, [pc, #12] @ (8004e04 <vTaskSuspendAll+0x18>)
8004df8: 6013 str r3, [r2, #0]
portMEMORY_BARRIER();
}
8004dfa: bf00 nop
8004dfc: 46bd mov sp, r7
8004dfe: f85d 7b04 ldr.w r7, [sp], #4
8004e02: 4770 bx lr
8004e04: 20001364 .word 0x20001364
08004e08 <xTaskResumeAll>:
#endif /* configUSE_TICKLESS_IDLE */
/*----------------------------------------------------------*/
BaseType_t xTaskResumeAll( void )
{
8004e08: b580 push {r7, lr}
8004e0a: b084 sub sp, #16
8004e0c: af00 add r7, sp, #0
TCB_t *pxTCB = NULL;
8004e0e: 2300 movs r3, #0
8004e10: 60fb str r3, [r7, #12]
BaseType_t xAlreadyYielded = pdFALSE;
8004e12: 2300 movs r3, #0
8004e14: 60bb str r3, [r7, #8]
/* If uxSchedulerSuspended is zero then this function does not match a
previous call to vTaskSuspendAll(). */
configASSERT( uxSchedulerSuspended );
8004e16: 4b43 ldr r3, [pc, #268] @ (8004f24 <xTaskResumeAll+0x11c>)
8004e18: 681b ldr r3, [r3, #0]
8004e1a: 2b00 cmp r3, #0
8004e1c: d10d bne.n 8004e3a <xTaskResumeAll+0x32>
__asm volatile
8004e1e: f04f 0350 mov.w r3, #80 @ 0x50
8004e22: b672 cpsid i
8004e24: f383 8811 msr BASEPRI, r3
8004e28: f3bf 8f6f isb sy
8004e2c: f3bf 8f4f dsb sy
8004e30: b662 cpsie i
8004e32: 603b str r3, [r7, #0]
}
8004e34: bf00 nop
8004e36: bf00 nop
8004e38: e7fd b.n 8004e36 <xTaskResumeAll+0x2e>
/* 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();
8004e3a: f001 f92f bl 800609c <vPortEnterCritical>
{
--uxSchedulerSuspended;
8004e3e: 4b39 ldr r3, [pc, #228] @ (8004f24 <xTaskResumeAll+0x11c>)
8004e40: 681b ldr r3, [r3, #0]
8004e42: 3b01 subs r3, #1
8004e44: 4a37 ldr r2, [pc, #220] @ (8004f24 <xTaskResumeAll+0x11c>)
8004e46: 6013 str r3, [r2, #0]
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
8004e48: 4b36 ldr r3, [pc, #216] @ (8004f24 <xTaskResumeAll+0x11c>)
8004e4a: 681b ldr r3, [r3, #0]
8004e4c: 2b00 cmp r3, #0
8004e4e: d162 bne.n 8004f16 <xTaskResumeAll+0x10e>
{
if( uxCurrentNumberOfTasks > ( UBaseType_t ) 0U )
8004e50: 4b35 ldr r3, [pc, #212] @ (8004f28 <xTaskResumeAll+0x120>)
8004e52: 681b ldr r3, [r3, #0]
8004e54: 2b00 cmp r3, #0
8004e56: d05e beq.n 8004f16 <xTaskResumeAll+0x10e>
{
/* Move any readied tasks from the pending list into the
appropriate ready list. */
while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
8004e58: e02f b.n 8004eba <xTaskResumeAll+0xb2>
{
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. */
8004e5a: 4b34 ldr r3, [pc, #208] @ (8004f2c <xTaskResumeAll+0x124>)
8004e5c: 68db ldr r3, [r3, #12]
8004e5e: 68db ldr r3, [r3, #12]
8004e60: 60fb str r3, [r7, #12]
( void ) uxListRemove( &( pxTCB->xEventListItem ) );
8004e62: 68fb ldr r3, [r7, #12]
8004e64: 3318 adds r3, #24
8004e66: 4618 mov r0, r3
8004e68: f7ff f82a bl 8003ec0 <uxListRemove>
( void ) uxListRemove( &( pxTCB->xStateListItem ) );
8004e6c: 68fb ldr r3, [r7, #12]
8004e6e: 3304 adds r3, #4
8004e70: 4618 mov r0, r3
8004e72: f7ff f825 bl 8003ec0 <uxListRemove>
prvAddTaskToReadyList( pxTCB );
8004e76: 68fb ldr r3, [r7, #12]
8004e78: 6ada ldr r2, [r3, #44] @ 0x2c
8004e7a: 4b2d ldr r3, [pc, #180] @ (8004f30 <xTaskResumeAll+0x128>)
8004e7c: 681b ldr r3, [r3, #0]
8004e7e: 429a cmp r2, r3
8004e80: d903 bls.n 8004e8a <xTaskResumeAll+0x82>
8004e82: 68fb ldr r3, [r7, #12]
8004e84: 6adb ldr r3, [r3, #44] @ 0x2c
8004e86: 4a2a ldr r2, [pc, #168] @ (8004f30 <xTaskResumeAll+0x128>)
8004e88: 6013 str r3, [r2, #0]
8004e8a: 68fb ldr r3, [r7, #12]
8004e8c: 6ada ldr r2, [r3, #44] @ 0x2c
8004e8e: 4613 mov r3, r2
8004e90: 009b lsls r3, r3, #2
8004e92: 4413 add r3, r2
8004e94: 009b lsls r3, r3, #2
8004e96: 4a27 ldr r2, [pc, #156] @ (8004f34 <xTaskResumeAll+0x12c>)
8004e98: 441a add r2, r3
8004e9a: 68fb ldr r3, [r7, #12]
8004e9c: 3304 adds r3, #4
8004e9e: 4619 mov r1, r3
8004ea0: 4610 mov r0, r2
8004ea2: f7fe ffb0 bl 8003e06 <vListInsertEnd>
/* If the moved task has a priority higher than the current
task then a yield must be performed. */
if( pxTCB->uxPriority >= pxCurrentTCB->uxPriority )
8004ea6: 68fb ldr r3, [r7, #12]
8004ea8: 6ada ldr r2, [r3, #44] @ 0x2c
8004eaa: 4b23 ldr r3, [pc, #140] @ (8004f38 <xTaskResumeAll+0x130>)
8004eac: 681b ldr r3, [r3, #0]
8004eae: 6adb ldr r3, [r3, #44] @ 0x2c
8004eb0: 429a cmp r2, r3
8004eb2: d302 bcc.n 8004eba <xTaskResumeAll+0xb2>
{
xYieldPending = pdTRUE;
8004eb4: 4b21 ldr r3, [pc, #132] @ (8004f3c <xTaskResumeAll+0x134>)
8004eb6: 2201 movs r2, #1
8004eb8: 601a str r2, [r3, #0]
while( listLIST_IS_EMPTY( &xPendingReadyList ) == pdFALSE )
8004eba: 4b1c ldr r3, [pc, #112] @ (8004f2c <xTaskResumeAll+0x124>)
8004ebc: 681b ldr r3, [r3, #0]
8004ebe: 2b00 cmp r3, #0
8004ec0: d1cb bne.n 8004e5a <xTaskResumeAll+0x52>
{
mtCOVERAGE_TEST_MARKER();
}
}
if( pxTCB != NULL )
8004ec2: 68fb ldr r3, [r7, #12]
8004ec4: 2b00 cmp r3, #0
8004ec6: d001 beq.n 8004ecc <xTaskResumeAll+0xc4>
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();
8004ec8: f000 fb68 bl 800559c <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. */
{
UBaseType_t uxPendedCounts = uxPendedTicks; /* Non-volatile copy. */
8004ecc: 4b1c ldr r3, [pc, #112] @ (8004f40 <xTaskResumeAll+0x138>)
8004ece: 681b ldr r3, [r3, #0]
8004ed0: 607b str r3, [r7, #4]
if( uxPendedCounts > ( UBaseType_t ) 0U )
8004ed2: 687b ldr r3, [r7, #4]
8004ed4: 2b00 cmp r3, #0
8004ed6: d010 beq.n 8004efa <xTaskResumeAll+0xf2>
{
do
{
if( xTaskIncrementTick() != pdFALSE )
8004ed8: f000 f846 bl 8004f68 <xTaskIncrementTick>
8004edc: 4603 mov r3, r0
8004ede: 2b00 cmp r3, #0
8004ee0: d002 beq.n 8004ee8 <xTaskResumeAll+0xe0>
{
xYieldPending = pdTRUE;
8004ee2: 4b16 ldr r3, [pc, #88] @ (8004f3c <xTaskResumeAll+0x134>)
8004ee4: 2201 movs r2, #1
8004ee6: 601a str r2, [r3, #0]
}
else
{
mtCOVERAGE_TEST_MARKER();
}
--uxPendedCounts;
8004ee8: 687b ldr r3, [r7, #4]
8004eea: 3b01 subs r3, #1
8004eec: 607b str r3, [r7, #4]
} while( uxPendedCounts > ( UBaseType_t ) 0U );
8004eee: 687b ldr r3, [r7, #4]
8004ef0: 2b00 cmp r3, #0
8004ef2: d1f1 bne.n 8004ed8 <xTaskResumeAll+0xd0>
uxPendedTicks = 0;
8004ef4: 4b12 ldr r3, [pc, #72] @ (8004f40 <xTaskResumeAll+0x138>)
8004ef6: 2200 movs r2, #0
8004ef8: 601a str r2, [r3, #0]
{
mtCOVERAGE_TEST_MARKER();
}
}
if( xYieldPending != pdFALSE )
8004efa: 4b10 ldr r3, [pc, #64] @ (8004f3c <xTaskResumeAll+0x134>)
8004efc: 681b ldr r3, [r3, #0]
8004efe: 2b00 cmp r3, #0
8004f00: d009 beq.n 8004f16 <xTaskResumeAll+0x10e>
{
#if( configUSE_PREEMPTION != 0 )
{
xAlreadyYielded = pdTRUE;
8004f02: 2301 movs r3, #1
8004f04: 60bb str r3, [r7, #8]
}
#endif
taskYIELD_IF_USING_PREEMPTION();
8004f06: 4b0f ldr r3, [pc, #60] @ (8004f44 <xTaskResumeAll+0x13c>)
8004f08: f04f 5280 mov.w r2, #268435456 @ 0x10000000
8004f0c: 601a str r2, [r3, #0]
8004f0e: f3bf 8f4f dsb sy
8004f12: f3bf 8f6f isb sy
else
{
mtCOVERAGE_TEST_MARKER();
}
}
taskEXIT_CRITICAL();
8004f16: f001 f8f7 bl 8006108 <vPortExitCritical>
return xAlreadyYielded;
8004f1a: 68bb ldr r3, [r7, #8]
}
8004f1c: 4618 mov r0, r3
8004f1e: 3710 adds r7, #16
8004f20: 46bd mov sp, r7
8004f22: bd80 pop {r7, pc}
8004f24: 20001364 .word 0x20001364
8004f28: 2000133c .word 0x2000133c
8004f2c: 200012fc .word 0x200012fc
8004f30: 20001344 .word 0x20001344
8004f34: 20000e6c .word 0x20000e6c
8004f38: 20000e68 .word 0x20000e68
8004f3c: 20001350 .word 0x20001350
8004f40: 2000134c .word 0x2000134c
8004f44: e000ed04 .word 0xe000ed04
08004f48 <xTaskGetTickCount>:
/*-----------------------------------------------------------*/
TickType_t xTaskGetTickCount( void )
{
8004f48: b480 push {r7}
8004f4a: b083 sub sp, #12
8004f4c: af00 add r7, sp, #0
TickType_t xTicks;
/* Critical section required if running on a 16 bit processor. */
portTICK_TYPE_ENTER_CRITICAL();
{
xTicks = xTickCount;
8004f4e: 4b05 ldr r3, [pc, #20] @ (8004f64 <xTaskGetTickCount+0x1c>)
8004f50: 681b ldr r3, [r3, #0]
8004f52: 607b str r3, [r7, #4]
}
portTICK_TYPE_EXIT_CRITICAL();
return xTicks;
8004f54: 687b ldr r3, [r7, #4]
}
8004f56: 4618 mov r0, r3
8004f58: 370c adds r7, #12
8004f5a: 46bd mov sp, r7
8004f5c: f85d 7b04 ldr.w r7, [sp], #4
8004f60: 4770 bx lr
8004f62: bf00 nop
8004f64: 20001340 .word 0x20001340
08004f68 <xTaskIncrementTick>:
#endif /* INCLUDE_xTaskAbortDelay */
/*----------------------------------------------------------*/
BaseType_t xTaskIncrementTick( void )
{
8004f68: b580 push {r7, lr}
8004f6a: b086 sub sp, #24
8004f6c: af00 add r7, sp, #0
TCB_t * pxTCB;
TickType_t xItemValue;
BaseType_t xSwitchRequired = pdFALSE;
8004f6e: 2300 movs r3, #0
8004f70: 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 )
8004f72: 4b50 ldr r3, [pc, #320] @ (80050b4 <xTaskIncrementTick+0x14c>)
8004f74: 681b ldr r3, [r3, #0]
8004f76: 2b00 cmp r3, #0
8004f78: f040 808c bne.w 8005094 <xTaskIncrementTick+0x12c>
{
/* Minor optimisation. The tick count cannot change in this
block. */
const TickType_t xConstTickCount = xTickCount + ( TickType_t ) 1;
8004f7c: 4b4e ldr r3, [pc, #312] @ (80050b8 <xTaskIncrementTick+0x150>)
8004f7e: 681b ldr r3, [r3, #0]
8004f80: 3301 adds r3, #1
8004f82: 613b str r3, [r7, #16]
/* Increment the RTOS tick, switching the delayed and overflowed
delayed lists if it wraps to 0. */
xTickCount = xConstTickCount;
8004f84: 4a4c ldr r2, [pc, #304] @ (80050b8 <xTaskIncrementTick+0x150>)
8004f86: 693b ldr r3, [r7, #16]
8004f88: 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. */
8004f8a: 693b ldr r3, [r7, #16]
8004f8c: 2b00 cmp r3, #0
8004f8e: d123 bne.n 8004fd8 <xTaskIncrementTick+0x70>
{
taskSWITCH_DELAYED_LISTS();
8004f90: 4b4a ldr r3, [pc, #296] @ (80050bc <xTaskIncrementTick+0x154>)
8004f92: 681b ldr r3, [r3, #0]
8004f94: 681b ldr r3, [r3, #0]
8004f96: 2b00 cmp r3, #0
8004f98: d00d beq.n 8004fb6 <xTaskIncrementTick+0x4e>
__asm volatile
8004f9a: f04f 0350 mov.w r3, #80 @ 0x50
8004f9e: b672 cpsid i
8004fa0: f383 8811 msr BASEPRI, r3
8004fa4: f3bf 8f6f isb sy
8004fa8: f3bf 8f4f dsb sy
8004fac: b662 cpsie i
8004fae: 603b str r3, [r7, #0]
}
8004fb0: bf00 nop
8004fb2: bf00 nop
8004fb4: e7fd b.n 8004fb2 <xTaskIncrementTick+0x4a>
8004fb6: 4b41 ldr r3, [pc, #260] @ (80050bc <xTaskIncrementTick+0x154>)
8004fb8: 681b ldr r3, [r3, #0]
8004fba: 60fb str r3, [r7, #12]
8004fbc: 4b40 ldr r3, [pc, #256] @ (80050c0 <xTaskIncrementTick+0x158>)
8004fbe: 681b ldr r3, [r3, #0]
8004fc0: 4a3e ldr r2, [pc, #248] @ (80050bc <xTaskIncrementTick+0x154>)
8004fc2: 6013 str r3, [r2, #0]
8004fc4: 4a3e ldr r2, [pc, #248] @ (80050c0 <xTaskIncrementTick+0x158>)
8004fc6: 68fb ldr r3, [r7, #12]
8004fc8: 6013 str r3, [r2, #0]
8004fca: 4b3e ldr r3, [pc, #248] @ (80050c4 <xTaskIncrementTick+0x15c>)
8004fcc: 681b ldr r3, [r3, #0]
8004fce: 3301 adds r3, #1
8004fd0: 4a3c ldr r2, [pc, #240] @ (80050c4 <xTaskIncrementTick+0x15c>)
8004fd2: 6013 str r3, [r2, #0]
8004fd4: f000 fae2 bl 800559c <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 )
8004fd8: 4b3b ldr r3, [pc, #236] @ (80050c8 <xTaskIncrementTick+0x160>)
8004fda: 681b ldr r3, [r3, #0]
8004fdc: 693a ldr r2, [r7, #16]
8004fde: 429a cmp r2, r3
8004fe0: d349 bcc.n 8005076 <xTaskIncrementTick+0x10e>
{
for( ;; )
{
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
8004fe2: 4b36 ldr r3, [pc, #216] @ (80050bc <xTaskIncrementTick+0x154>)
8004fe4: 681b ldr r3, [r3, #0]
8004fe6: 681b ldr r3, [r3, #0]
8004fe8: 2b00 cmp r3, #0
8004fea: d104 bne.n 8004ff6 <xTaskIncrementTick+0x8e>
/* 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. */
8004fec: 4b36 ldr r3, [pc, #216] @ (80050c8 <xTaskIncrementTick+0x160>)
8004fee: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
8004ff2: 601a str r2, [r3, #0]
break;
8004ff4: e03f b.n 8005076 <xTaskIncrementTick+0x10e>
{
/* 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. */
8004ff6: 4b31 ldr r3, [pc, #196] @ (80050bc <xTaskIncrementTick+0x154>)
8004ff8: 681b ldr r3, [r3, #0]
8004ffa: 68db ldr r3, [r3, #12]
8004ffc: 68db ldr r3, [r3, #12]
8004ffe: 60bb str r3, [r7, #8]
xItemValue = listGET_LIST_ITEM_VALUE( &( pxTCB->xStateListItem ) );
8005000: 68bb ldr r3, [r7, #8]
8005002: 685b ldr r3, [r3, #4]
8005004: 607b str r3, [r7, #4]
if( xConstTickCount < xItemValue )
8005006: 693a ldr r2, [r7, #16]
8005008: 687b ldr r3, [r7, #4]
800500a: 429a cmp r2, r3
800500c: d203 bcs.n 8005016 <xTaskIncrementTick+0xae>
/* 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;
800500e: 4a2e ldr r2, [pc, #184] @ (80050c8 <xTaskIncrementTick+0x160>)
8005010: 687b ldr r3, [r7, #4]
8005012: 6013 str r3, [r2, #0]
break; /*lint !e9011 Code structure here is deedmed easier to understand with multiple breaks. */
8005014: e02f b.n 8005076 <xTaskIncrementTick+0x10e>
{
mtCOVERAGE_TEST_MARKER();
}
/* It is time to remove the item from the Blocked state. */
( void ) uxListRemove( &( pxTCB->xStateListItem ) );
8005016: 68bb ldr r3, [r7, #8]
8005018: 3304 adds r3, #4
800501a: 4618 mov r0, r3
800501c: f7fe ff50 bl 8003ec0 <uxListRemove>
/* Is the task waiting on an event also? If so remove
it from the event list. */
if( listLIST_ITEM_CONTAINER( &( pxTCB->xEventListItem ) ) != NULL )
8005020: 68bb ldr r3, [r7, #8]
8005022: 6a9b ldr r3, [r3, #40] @ 0x28
8005024: 2b00 cmp r3, #0
8005026: d004 beq.n 8005032 <xTaskIncrementTick+0xca>
{
( void ) uxListRemove( &( pxTCB->xEventListItem ) );
8005028: 68bb ldr r3, [r7, #8]
800502a: 3318 adds r3, #24
800502c: 4618 mov r0, r3
800502e: f7fe ff47 bl 8003ec0 <uxListRemove>
mtCOVERAGE_TEST_MARKER();
}
/* Place the unblocked task into the appropriate ready
list. */
prvAddTaskToReadyList( pxTCB );
8005032: 68bb ldr r3, [r7, #8]
8005034: 6ada ldr r2, [r3, #44] @ 0x2c
8005036: 4b25 ldr r3, [pc, #148] @ (80050cc <xTaskIncrementTick+0x164>)
8005038: 681b ldr r3, [r3, #0]
800503a: 429a cmp r2, r3
800503c: d903 bls.n 8005046 <xTaskIncrementTick+0xde>
800503e: 68bb ldr r3, [r7, #8]
8005040: 6adb ldr r3, [r3, #44] @ 0x2c
8005042: 4a22 ldr r2, [pc, #136] @ (80050cc <xTaskIncrementTick+0x164>)
8005044: 6013 str r3, [r2, #0]
8005046: 68bb ldr r3, [r7, #8]
8005048: 6ada ldr r2, [r3, #44] @ 0x2c
800504a: 4613 mov r3, r2
800504c: 009b lsls r3, r3, #2
800504e: 4413 add r3, r2
8005050: 009b lsls r3, r3, #2
8005052: 4a1f ldr r2, [pc, #124] @ (80050d0 <xTaskIncrementTick+0x168>)
8005054: 441a add r2, r3
8005056: 68bb ldr r3, [r7, #8]
8005058: 3304 adds r3, #4
800505a: 4619 mov r1, r3
800505c: 4610 mov r0, r2
800505e: f7fe fed2 bl 8003e06 <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 )
8005062: 68bb ldr r3, [r7, #8]
8005064: 6ada ldr r2, [r3, #44] @ 0x2c
8005066: 4b1b ldr r3, [pc, #108] @ (80050d4 <xTaskIncrementTick+0x16c>)
8005068: 681b ldr r3, [r3, #0]
800506a: 6adb ldr r3, [r3, #44] @ 0x2c
800506c: 429a cmp r2, r3
800506e: d3b8 bcc.n 8004fe2 <xTaskIncrementTick+0x7a>
{
xSwitchRequired = pdTRUE;
8005070: 2301 movs r3, #1
8005072: 617b str r3, [r7, #20]
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
8005074: e7b5 b.n 8004fe2 <xTaskIncrementTick+0x7a>
/* 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 )
8005076: 4b17 ldr r3, [pc, #92] @ (80050d4 <xTaskIncrementTick+0x16c>)
8005078: 681b ldr r3, [r3, #0]
800507a: 6ada ldr r2, [r3, #44] @ 0x2c
800507c: 4914 ldr r1, [pc, #80] @ (80050d0 <xTaskIncrementTick+0x168>)
800507e: 4613 mov r3, r2
8005080: 009b lsls r3, r3, #2
8005082: 4413 add r3, r2
8005084: 009b lsls r3, r3, #2
8005086: 440b add r3, r1
8005088: 681b ldr r3, [r3, #0]
800508a: 2b01 cmp r3, #1
800508c: d907 bls.n 800509e <xTaskIncrementTick+0x136>
{
xSwitchRequired = pdTRUE;
800508e: 2301 movs r3, #1
8005090: 617b str r3, [r7, #20]
8005092: e004 b.n 800509e <xTaskIncrementTick+0x136>
}
#endif /* configUSE_TICK_HOOK */
}
else
{
++uxPendedTicks;
8005094: 4b10 ldr r3, [pc, #64] @ (80050d8 <xTaskIncrementTick+0x170>)
8005096: 681b ldr r3, [r3, #0]
8005098: 3301 adds r3, #1
800509a: 4a0f ldr r2, [pc, #60] @ (80050d8 <xTaskIncrementTick+0x170>)
800509c: 6013 str r3, [r2, #0]
#endif
}
#if ( configUSE_PREEMPTION == 1 )
{
if( xYieldPending != pdFALSE )
800509e: 4b0f ldr r3, [pc, #60] @ (80050dc <xTaskIncrementTick+0x174>)
80050a0: 681b ldr r3, [r3, #0]
80050a2: 2b00 cmp r3, #0
80050a4: d001 beq.n 80050aa <xTaskIncrementTick+0x142>
{
xSwitchRequired = pdTRUE;
80050a6: 2301 movs r3, #1
80050a8: 617b str r3, [r7, #20]
mtCOVERAGE_TEST_MARKER();
}
}
#endif /* configUSE_PREEMPTION */
return xSwitchRequired;
80050aa: 697b ldr r3, [r7, #20]
}
80050ac: 4618 mov r0, r3
80050ae: 3718 adds r7, #24
80050b0: 46bd mov sp, r7
80050b2: bd80 pop {r7, pc}
80050b4: 20001364 .word 0x20001364
80050b8: 20001340 .word 0x20001340
80050bc: 200012f4 .word 0x200012f4
80050c0: 200012f8 .word 0x200012f8
80050c4: 20001354 .word 0x20001354
80050c8: 2000135c .word 0x2000135c
80050cc: 20001344 .word 0x20001344
80050d0: 20000e6c .word 0x20000e6c
80050d4: 20000e68 .word 0x20000e68
80050d8: 2000134c .word 0x2000134c
80050dc: 20001350 .word 0x20001350
080050e0 <vTaskSwitchContext>:
#endif /* configUSE_APPLICATION_TASK_TAG */
/*-----------------------------------------------------------*/
void vTaskSwitchContext( void )
{
80050e0: b480 push {r7}
80050e2: b085 sub sp, #20
80050e4: af00 add r7, sp, #0
if( uxSchedulerSuspended != ( UBaseType_t ) pdFALSE )
80050e6: 4b29 ldr r3, [pc, #164] @ (800518c <vTaskSwitchContext+0xac>)
80050e8: 681b ldr r3, [r3, #0]
80050ea: 2b00 cmp r3, #0
80050ec: d003 beq.n 80050f6 <vTaskSwitchContext+0x16>
{
/* The scheduler is currently suspended - do not allow a context
switch. */
xYieldPending = pdTRUE;
80050ee: 4b28 ldr r3, [pc, #160] @ (8005190 <vTaskSwitchContext+0xb0>)
80050f0: 2201 movs r2, #1
80050f2: 601a str r2, [r3, #0]
structure specific to this task. */
_impure_ptr = &( pxCurrentTCB->xNewLib_reent );
}
#endif /* configUSE_NEWLIB_REENTRANT */
}
}
80050f4: e044 b.n 8005180 <vTaskSwitchContext+0xa0>
xYieldPending = pdFALSE;
80050f6: 4b26 ldr r3, [pc, #152] @ (8005190 <vTaskSwitchContext+0xb0>)
80050f8: 2200 movs r2, #0
80050fa: 601a str r2, [r3, #0]
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. */
80050fc: 4b25 ldr r3, [pc, #148] @ (8005194 <vTaskSwitchContext+0xb4>)
80050fe: 681b ldr r3, [r3, #0]
8005100: 60fb str r3, [r7, #12]
8005102: e013 b.n 800512c <vTaskSwitchContext+0x4c>
8005104: 68fb ldr r3, [r7, #12]
8005106: 2b00 cmp r3, #0
8005108: d10d bne.n 8005126 <vTaskSwitchContext+0x46>
__asm volatile
800510a: f04f 0350 mov.w r3, #80 @ 0x50
800510e: b672 cpsid i
8005110: f383 8811 msr BASEPRI, r3
8005114: f3bf 8f6f isb sy
8005118: f3bf 8f4f dsb sy
800511c: b662 cpsie i
800511e: 607b str r3, [r7, #4]
}
8005120: bf00 nop
8005122: bf00 nop
8005124: e7fd b.n 8005122 <vTaskSwitchContext+0x42>
8005126: 68fb ldr r3, [r7, #12]
8005128: 3b01 subs r3, #1
800512a: 60fb str r3, [r7, #12]
800512c: 491a ldr r1, [pc, #104] @ (8005198 <vTaskSwitchContext+0xb8>)
800512e: 68fa ldr r2, [r7, #12]
8005130: 4613 mov r3, r2
8005132: 009b lsls r3, r3, #2
8005134: 4413 add r3, r2
8005136: 009b lsls r3, r3, #2
8005138: 440b add r3, r1
800513a: 681b ldr r3, [r3, #0]
800513c: 2b00 cmp r3, #0
800513e: d0e1 beq.n 8005104 <vTaskSwitchContext+0x24>
8005140: 68fa ldr r2, [r7, #12]
8005142: 4613 mov r3, r2
8005144: 009b lsls r3, r3, #2
8005146: 4413 add r3, r2
8005148: 009b lsls r3, r3, #2
800514a: 4a13 ldr r2, [pc, #76] @ (8005198 <vTaskSwitchContext+0xb8>)
800514c: 4413 add r3, r2
800514e: 60bb str r3, [r7, #8]
8005150: 68bb ldr r3, [r7, #8]
8005152: 685b ldr r3, [r3, #4]
8005154: 685a ldr r2, [r3, #4]
8005156: 68bb ldr r3, [r7, #8]
8005158: 605a str r2, [r3, #4]
800515a: 68bb ldr r3, [r7, #8]
800515c: 685a ldr r2, [r3, #4]
800515e: 68bb ldr r3, [r7, #8]
8005160: 3308 adds r3, #8
8005162: 429a cmp r2, r3
8005164: d104 bne.n 8005170 <vTaskSwitchContext+0x90>
8005166: 68bb ldr r3, [r7, #8]
8005168: 685b ldr r3, [r3, #4]
800516a: 685a ldr r2, [r3, #4]
800516c: 68bb ldr r3, [r7, #8]
800516e: 605a str r2, [r3, #4]
8005170: 68bb ldr r3, [r7, #8]
8005172: 685b ldr r3, [r3, #4]
8005174: 68db ldr r3, [r3, #12]
8005176: 4a09 ldr r2, [pc, #36] @ (800519c <vTaskSwitchContext+0xbc>)
8005178: 6013 str r3, [r2, #0]
800517a: 4a06 ldr r2, [pc, #24] @ (8005194 <vTaskSwitchContext+0xb4>)
800517c: 68fb ldr r3, [r7, #12]
800517e: 6013 str r3, [r2, #0]
}
8005180: bf00 nop
8005182: 3714 adds r7, #20
8005184: 46bd mov sp, r7
8005186: f85d 7b04 ldr.w r7, [sp], #4
800518a: 4770 bx lr
800518c: 20001364 .word 0x20001364
8005190: 20001350 .word 0x20001350
8005194: 20001344 .word 0x20001344
8005198: 20000e6c .word 0x20000e6c
800519c: 20000e68 .word 0x20000e68
080051a0 <vTaskPlaceOnEventList>:
/*-----------------------------------------------------------*/
void vTaskPlaceOnEventList( List_t * const pxEventList, const TickType_t xTicksToWait )
{
80051a0: b580 push {r7, lr}
80051a2: b084 sub sp, #16
80051a4: af00 add r7, sp, #0
80051a6: 6078 str r0, [r7, #4]
80051a8: 6039 str r1, [r7, #0]
configASSERT( pxEventList );
80051aa: 687b ldr r3, [r7, #4]
80051ac: 2b00 cmp r3, #0
80051ae: d10d bne.n 80051cc <vTaskPlaceOnEventList+0x2c>
__asm volatile
80051b0: f04f 0350 mov.w r3, #80 @ 0x50
80051b4: b672 cpsid i
80051b6: f383 8811 msr BASEPRI, r3
80051ba: f3bf 8f6f isb sy
80051be: f3bf 8f4f dsb sy
80051c2: b662 cpsie i
80051c4: 60fb str r3, [r7, #12]
}
80051c6: bf00 nop
80051c8: bf00 nop
80051ca: e7fd b.n 80051c8 <vTaskPlaceOnEventList+0x28>
/* 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 ) );
80051cc: 4b07 ldr r3, [pc, #28] @ (80051ec <vTaskPlaceOnEventList+0x4c>)
80051ce: 681b ldr r3, [r3, #0]
80051d0: 3318 adds r3, #24
80051d2: 4619 mov r1, r3
80051d4: 6878 ldr r0, [r7, #4]
80051d6: f7fe fe3a bl 8003e4e <vListInsert>
prvAddCurrentTaskToDelayedList( xTicksToWait, pdTRUE );
80051da: 2101 movs r1, #1
80051dc: 6838 ldr r0, [r7, #0]
80051de: f000 fa8f bl 8005700 <prvAddCurrentTaskToDelayedList>
}
80051e2: bf00 nop
80051e4: 3710 adds r7, #16
80051e6: 46bd mov sp, r7
80051e8: bd80 pop {r7, pc}
80051ea: bf00 nop
80051ec: 20000e68 .word 0x20000e68
080051f0 <vTaskPlaceOnEventListRestricted>:
/*-----------------------------------------------------------*/
#if( configUSE_TIMERS == 1 )
void vTaskPlaceOnEventListRestricted( List_t * const pxEventList, TickType_t xTicksToWait, const BaseType_t xWaitIndefinitely )
{
80051f0: b580 push {r7, lr}
80051f2: b086 sub sp, #24
80051f4: af00 add r7, sp, #0
80051f6: 60f8 str r0, [r7, #12]
80051f8: 60b9 str r1, [r7, #8]
80051fa: 607a str r2, [r7, #4]
configASSERT( pxEventList );
80051fc: 68fb ldr r3, [r7, #12]
80051fe: 2b00 cmp r3, #0
8005200: d10d bne.n 800521e <vTaskPlaceOnEventListRestricted+0x2e>
__asm volatile
8005202: f04f 0350 mov.w r3, #80 @ 0x50
8005206: b672 cpsid i
8005208: f383 8811 msr BASEPRI, r3
800520c: f3bf 8f6f isb sy
8005210: f3bf 8f4f dsb sy
8005214: b662 cpsie i
8005216: 617b str r3, [r7, #20]
}
8005218: bf00 nop
800521a: bf00 nop
800521c: e7fd b.n 800521a <vTaskPlaceOnEventListRestricted+0x2a>
/* Place the event list item of the TCB in the appropriate event list.
In this case it is assume that this is the only task that is going to
be waiting on this event list, so the faster vListInsertEnd() function
can be used in place of vListInsert. */
vListInsertEnd( pxEventList, &( pxCurrentTCB->xEventListItem ) );
800521e: 4b0a ldr r3, [pc, #40] @ (8005248 <vTaskPlaceOnEventListRestricted+0x58>)
8005220: 681b ldr r3, [r3, #0]
8005222: 3318 adds r3, #24
8005224: 4619 mov r1, r3
8005226: 68f8 ldr r0, [r7, #12]
8005228: f7fe fded bl 8003e06 <vListInsertEnd>
/* If the task should block indefinitely then set the block time to a
value that will be recognised as an indefinite delay inside the
prvAddCurrentTaskToDelayedList() function. */
if( xWaitIndefinitely != pdFALSE )
800522c: 687b ldr r3, [r7, #4]
800522e: 2b00 cmp r3, #0
8005230: d002 beq.n 8005238 <vTaskPlaceOnEventListRestricted+0x48>
{
xTicksToWait = portMAX_DELAY;
8005232: f04f 33ff mov.w r3, #4294967295 @ 0xffffffff
8005236: 60bb str r3, [r7, #8]
}
traceTASK_DELAY_UNTIL( ( xTickCount + xTicksToWait ) );
prvAddCurrentTaskToDelayedList( xTicksToWait, xWaitIndefinitely );
8005238: 6879 ldr r1, [r7, #4]
800523a: 68b8 ldr r0, [r7, #8]
800523c: f000 fa60 bl 8005700 <prvAddCurrentTaskToDelayedList>
}
8005240: bf00 nop
8005242: 3718 adds r7, #24
8005244: 46bd mov sp, r7
8005246: bd80 pop {r7, pc}
8005248: 20000e68 .word 0x20000e68
0800524c <xTaskRemoveFromEventList>:
#endif /* configUSE_TIMERS */
/*-----------------------------------------------------------*/
BaseType_t xTaskRemoveFromEventList( const List_t * const pxEventList )
{
800524c: b580 push {r7, lr}
800524e: b086 sub sp, #24
8005250: af00 add r7, sp, #0
8005252: 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. */
8005254: 687b ldr r3, [r7, #4]
8005256: 68db ldr r3, [r3, #12]
8005258: 68db ldr r3, [r3, #12]
800525a: 613b str r3, [r7, #16]
configASSERT( pxUnblockedTCB );
800525c: 693b ldr r3, [r7, #16]
800525e: 2b00 cmp r3, #0
8005260: d10d bne.n 800527e <xTaskRemoveFromEventList+0x32>
__asm volatile
8005262: f04f 0350 mov.w r3, #80 @ 0x50
8005266: b672 cpsid i
8005268: f383 8811 msr BASEPRI, r3
800526c: f3bf 8f6f isb sy
8005270: f3bf 8f4f dsb sy
8005274: b662 cpsie i
8005276: 60fb str r3, [r7, #12]
}
8005278: bf00 nop
800527a: bf00 nop
800527c: e7fd b.n 800527a <xTaskRemoveFromEventList+0x2e>
( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
800527e: 693b ldr r3, [r7, #16]
8005280: 3318 adds r3, #24
8005282: 4618 mov r0, r3
8005284: f7fe fe1c bl 8003ec0 <uxListRemove>
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
8005288: 4b1d ldr r3, [pc, #116] @ (8005300 <xTaskRemoveFromEventList+0xb4>)
800528a: 681b ldr r3, [r3, #0]
800528c: 2b00 cmp r3, #0
800528e: d11d bne.n 80052cc <xTaskRemoveFromEventList+0x80>
{
( void ) uxListRemove( &( pxUnblockedTCB->xStateListItem ) );
8005290: 693b ldr r3, [r7, #16]
8005292: 3304 adds r3, #4
8005294: 4618 mov r0, r3
8005296: f7fe fe13 bl 8003ec0 <uxListRemove>
prvAddTaskToReadyList( pxUnblockedTCB );
800529a: 693b ldr r3, [r7, #16]
800529c: 6ada ldr r2, [r3, #44] @ 0x2c
800529e: 4b19 ldr r3, [pc, #100] @ (8005304 <xTaskRemoveFromEventList+0xb8>)
80052a0: 681b ldr r3, [r3, #0]
80052a2: 429a cmp r2, r3
80052a4: d903 bls.n 80052ae <xTaskRemoveFromEventList+0x62>
80052a6: 693b ldr r3, [r7, #16]
80052a8: 6adb ldr r3, [r3, #44] @ 0x2c
80052aa: 4a16 ldr r2, [pc, #88] @ (8005304 <xTaskRemoveFromEventList+0xb8>)
80052ac: 6013 str r3, [r2, #0]
80052ae: 693b ldr r3, [r7, #16]
80052b0: 6ada ldr r2, [r3, #44] @ 0x2c
80052b2: 4613 mov r3, r2
80052b4: 009b lsls r3, r3, #2
80052b6: 4413 add r3, r2
80052b8: 009b lsls r3, r3, #2
80052ba: 4a13 ldr r2, [pc, #76] @ (8005308 <xTaskRemoveFromEventList+0xbc>)
80052bc: 441a add r2, r3
80052be: 693b ldr r3, [r7, #16]
80052c0: 3304 adds r3, #4
80052c2: 4619 mov r1, r3
80052c4: 4610 mov r0, r2
80052c6: f7fe fd9e bl 8003e06 <vListInsertEnd>
80052ca: e005 b.n 80052d8 <xTaskRemoveFromEventList+0x8c>
}
else
{
/* The delayed and ready lists cannot be accessed, so hold this task
pending until the scheduler is resumed. */
vListInsertEnd( &( xPendingReadyList ), &( pxUnblockedTCB->xEventListItem ) );
80052cc: 693b ldr r3, [r7, #16]
80052ce: 3318 adds r3, #24
80052d0: 4619 mov r1, r3
80052d2: 480e ldr r0, [pc, #56] @ (800530c <xTaskRemoveFromEventList+0xc0>)
80052d4: f7fe fd97 bl 8003e06 <vListInsertEnd>
}
if( pxUnblockedTCB->uxPriority > pxCurrentTCB->uxPriority )
80052d8: 693b ldr r3, [r7, #16]
80052da: 6ada ldr r2, [r3, #44] @ 0x2c
80052dc: 4b0c ldr r3, [pc, #48] @ (8005310 <xTaskRemoveFromEventList+0xc4>)
80052de: 681b ldr r3, [r3, #0]
80052e0: 6adb ldr r3, [r3, #44] @ 0x2c
80052e2: 429a cmp r2, r3
80052e4: d905 bls.n 80052f2 <xTaskRemoveFromEventList+0xa6>
{
/* 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;
80052e6: 2301 movs r3, #1
80052e8: 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;
80052ea: 4b0a ldr r3, [pc, #40] @ (8005314 <xTaskRemoveFromEventList+0xc8>)
80052ec: 2201 movs r2, #1
80052ee: 601a str r2, [r3, #0]
80052f0: e001 b.n 80052f6 <xTaskRemoveFromEventList+0xaa>
}
else
{
xReturn = pdFALSE;
80052f2: 2300 movs r3, #0
80052f4: 617b str r3, [r7, #20]
}
return xReturn;
80052f6: 697b ldr r3, [r7, #20]
}
80052f8: 4618 mov r0, r3
80052fa: 3718 adds r7, #24
80052fc: 46bd mov sp, r7
80052fe: bd80 pop {r7, pc}
8005300: 20001364 .word 0x20001364
8005304: 20001344 .word 0x20001344
8005308: 20000e6c .word 0x20000e6c
800530c: 200012fc .word 0x200012fc
8005310: 20000e68 .word 0x20000e68
8005314: 20001350 .word 0x20001350
08005318 <vTaskInternalSetTimeOutState>:
taskEXIT_CRITICAL();
}
/*-----------------------------------------------------------*/
void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut )
{
8005318: b480 push {r7}
800531a: b083 sub sp, #12
800531c: af00 add r7, sp, #0
800531e: 6078 str r0, [r7, #4]
/* For internal use only as it does not use a critical section. */
pxTimeOut->xOverflowCount = xNumOfOverflows;
8005320: 4b06 ldr r3, [pc, #24] @ (800533c <vTaskInternalSetTimeOutState+0x24>)
8005322: 681a ldr r2, [r3, #0]
8005324: 687b ldr r3, [r7, #4]
8005326: 601a str r2, [r3, #0]
pxTimeOut->xTimeOnEntering = xTickCount;
8005328: 4b05 ldr r3, [pc, #20] @ (8005340 <vTaskInternalSetTimeOutState+0x28>)
800532a: 681a ldr r2, [r3, #0]
800532c: 687b ldr r3, [r7, #4]
800532e: 605a str r2, [r3, #4]
}
8005330: bf00 nop
8005332: 370c adds r7, #12
8005334: 46bd mov sp, r7
8005336: f85d 7b04 ldr.w r7, [sp], #4
800533a: 4770 bx lr
800533c: 20001354 .word 0x20001354
8005340: 20001340 .word 0x20001340
08005344 <xTaskCheckForTimeOut>:
/*-----------------------------------------------------------*/
BaseType_t xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait )
{
8005344: b580 push {r7, lr}
8005346: b088 sub sp, #32
8005348: af00 add r7, sp, #0
800534a: 6078 str r0, [r7, #4]
800534c: 6039 str r1, [r7, #0]
BaseType_t xReturn;
configASSERT( pxTimeOut );
800534e: 687b ldr r3, [r7, #4]
8005350: 2b00 cmp r3, #0
8005352: d10d bne.n 8005370 <xTaskCheckForTimeOut+0x2c>
__asm volatile
8005354: f04f 0350 mov.w r3, #80 @ 0x50
8005358: b672 cpsid i
800535a: f383 8811 msr BASEPRI, r3
800535e: f3bf 8f6f isb sy
8005362: f3bf 8f4f dsb sy
8005366: b662 cpsie i
8005368: 613b str r3, [r7, #16]
}
800536a: bf00 nop
800536c: bf00 nop
800536e: e7fd b.n 800536c <xTaskCheckForTimeOut+0x28>
configASSERT( pxTicksToWait );
8005370: 683b ldr r3, [r7, #0]
8005372: 2b00 cmp r3, #0
8005374: d10d bne.n 8005392 <xTaskCheckForTimeOut+0x4e>
__asm volatile
8005376: f04f 0350 mov.w r3, #80 @ 0x50
800537a: b672 cpsid i
800537c: f383 8811 msr BASEPRI, r3
8005380: f3bf 8f6f isb sy
8005384: f3bf 8f4f dsb sy
8005388: b662 cpsie i
800538a: 60fb str r3, [r7, #12]
}
800538c: bf00 nop
800538e: bf00 nop
8005390: e7fd b.n 800538e <xTaskCheckForTimeOut+0x4a>
taskENTER_CRITICAL();
8005392: f000 fe83 bl 800609c <vPortEnterCritical>
{
/* Minor optimisation. The tick count cannot change in this block. */
const TickType_t xConstTickCount = xTickCount;
8005396: 4b1d ldr r3, [pc, #116] @ (800540c <xTaskCheckForTimeOut+0xc8>)
8005398: 681b ldr r3, [r3, #0]
800539a: 61bb str r3, [r7, #24]
const TickType_t xElapsedTime = xConstTickCount - pxTimeOut->xTimeOnEntering;
800539c: 687b ldr r3, [r7, #4]
800539e: 685b ldr r3, [r3, #4]
80053a0: 69ba ldr r2, [r7, #24]
80053a2: 1ad3 subs r3, r2, r3
80053a4: 617b str r3, [r7, #20]
}
else
#endif
#if ( INCLUDE_vTaskSuspend == 1 )
if( *pxTicksToWait == portMAX_DELAY )
80053a6: 683b ldr r3, [r7, #0]
80053a8: 681b ldr r3, [r3, #0]
80053aa: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
80053ae: d102 bne.n 80053b6 <xTaskCheckForTimeOut+0x72>
{
/* 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;
80053b0: 2300 movs r3, #0
80053b2: 61fb str r3, [r7, #28]
80053b4: e023 b.n 80053fe <xTaskCheckForTimeOut+0xba>
}
else
#endif
if( ( xNumOfOverflows != pxTimeOut->xOverflowCount ) && ( xConstTickCount >= pxTimeOut->xTimeOnEntering ) ) /*lint !e525 Indentation preferred as is to make code within pre-processor directives clearer. */
80053b6: 687b ldr r3, [r7, #4]
80053b8: 681a ldr r2, [r3, #0]
80053ba: 4b15 ldr r3, [pc, #84] @ (8005410 <xTaskCheckForTimeOut+0xcc>)
80053bc: 681b ldr r3, [r3, #0]
80053be: 429a cmp r2, r3
80053c0: d007 beq.n 80053d2 <xTaskCheckForTimeOut+0x8e>
80053c2: 687b ldr r3, [r7, #4]
80053c4: 685b ldr r3, [r3, #4]
80053c6: 69ba ldr r2, [r7, #24]
80053c8: 429a cmp r2, r3
80053ca: d302 bcc.n 80053d2 <xTaskCheckForTimeOut+0x8e>
/* 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;
80053cc: 2301 movs r3, #1
80053ce: 61fb str r3, [r7, #28]
80053d0: e015 b.n 80053fe <xTaskCheckForTimeOut+0xba>
}
else if( xElapsedTime < *pxTicksToWait ) /*lint !e961 Explicit casting is only redundant with some compilers, whereas others require it to prevent integer conversion errors. */
80053d2: 683b ldr r3, [r7, #0]
80053d4: 681b ldr r3, [r3, #0]
80053d6: 697a ldr r2, [r7, #20]
80053d8: 429a cmp r2, r3
80053da: d20b bcs.n 80053f4 <xTaskCheckForTimeOut+0xb0>
{
/* Not a genuine timeout. Adjust parameters for time remaining. */
*pxTicksToWait -= xElapsedTime;
80053dc: 683b ldr r3, [r7, #0]
80053de: 681a ldr r2, [r3, #0]
80053e0: 697b ldr r3, [r7, #20]
80053e2: 1ad2 subs r2, r2, r3
80053e4: 683b ldr r3, [r7, #0]
80053e6: 601a str r2, [r3, #0]
vTaskInternalSetTimeOutState( pxTimeOut );
80053e8: 6878 ldr r0, [r7, #4]
80053ea: f7ff ff95 bl 8005318 <vTaskInternalSetTimeOutState>
xReturn = pdFALSE;
80053ee: 2300 movs r3, #0
80053f0: 61fb str r3, [r7, #28]
80053f2: e004 b.n 80053fe <xTaskCheckForTimeOut+0xba>
}
else
{
*pxTicksToWait = 0;
80053f4: 683b ldr r3, [r7, #0]
80053f6: 2200 movs r2, #0
80053f8: 601a str r2, [r3, #0]
xReturn = pdTRUE;
80053fa: 2301 movs r3, #1
80053fc: 61fb str r3, [r7, #28]
}
}
taskEXIT_CRITICAL();
80053fe: f000 fe83 bl 8006108 <vPortExitCritical>
return xReturn;
8005402: 69fb ldr r3, [r7, #28]
}
8005404: 4618 mov r0, r3
8005406: 3720 adds r7, #32
8005408: 46bd mov sp, r7
800540a: bd80 pop {r7, pc}
800540c: 20001340 .word 0x20001340
8005410: 20001354 .word 0x20001354
08005414 <vTaskMissedYield>:
/*-----------------------------------------------------------*/
void vTaskMissedYield( void )
{
8005414: b480 push {r7}
8005416: af00 add r7, sp, #0
xYieldPending = pdTRUE;
8005418: 4b03 ldr r3, [pc, #12] @ (8005428 <vTaskMissedYield+0x14>)
800541a: 2201 movs r2, #1
800541c: 601a str r2, [r3, #0]
}
800541e: bf00 nop
8005420: 46bd mov sp, r7
8005422: f85d 7b04 ldr.w r7, [sp], #4
8005426: 4770 bx lr
8005428: 20001350 .word 0x20001350
0800542c <prvIdleTask>:
*
* void prvIdleTask( void *pvParameters );
*
*/
static portTASK_FUNCTION( prvIdleTask, pvParameters )
{
800542c: b580 push {r7, lr}
800542e: b082 sub sp, #8
8005430: af00 add r7, sp, #0
8005432: 6078 str r0, [r7, #4]
for( ;; )
{
/* See if any tasks have deleted themselves - if so then the idle task
is responsible for freeing the deleted task's TCB and stack. */
prvCheckTasksWaitingTermination();
8005434: f000 f852 bl 80054dc <prvCheckTasksWaitingTermination>
A critical region is not required here as we are just reading from
the list, and an occasional incorrect value will not matter. If
the ready list at the idle priority contains more than one task
then a task other than the idle task is ready to execute. */
if( listCURRENT_LIST_LENGTH( &( pxReadyTasksLists[ tskIDLE_PRIORITY ] ) ) > ( UBaseType_t ) 1 )
8005438: 4b06 ldr r3, [pc, #24] @ (8005454 <prvIdleTask+0x28>)
800543a: 681b ldr r3, [r3, #0]
800543c: 2b01 cmp r3, #1
800543e: d9f9 bls.n 8005434 <prvIdleTask+0x8>
{
taskYIELD();
8005440: 4b05 ldr r3, [pc, #20] @ (8005458 <prvIdleTask+0x2c>)
8005442: f04f 5280 mov.w r2, #268435456 @ 0x10000000
8005446: 601a str r2, [r3, #0]
8005448: f3bf 8f4f dsb sy
800544c: f3bf 8f6f isb sy
prvCheckTasksWaitingTermination();
8005450: e7f0 b.n 8005434 <prvIdleTask+0x8>
8005452: bf00 nop
8005454: 20000e6c .word 0x20000e6c
8005458: e000ed04 .word 0xe000ed04
0800545c <prvInitialiseTaskLists>:
#endif /* portUSING_MPU_WRAPPERS */
/*-----------------------------------------------------------*/
static void prvInitialiseTaskLists( void )
{
800545c: b580 push {r7, lr}
800545e: b082 sub sp, #8
8005460: af00 add r7, sp, #0
UBaseType_t uxPriority;
for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
8005462: 2300 movs r3, #0
8005464: 607b str r3, [r7, #4]
8005466: e00c b.n 8005482 <prvInitialiseTaskLists+0x26>
{
vListInitialise( &( pxReadyTasksLists[ uxPriority ] ) );
8005468: 687a ldr r2, [r7, #4]
800546a: 4613 mov r3, r2
800546c: 009b lsls r3, r3, #2
800546e: 4413 add r3, r2
8005470: 009b lsls r3, r3, #2
8005472: 4a12 ldr r2, [pc, #72] @ (80054bc <prvInitialiseTaskLists+0x60>)
8005474: 4413 add r3, r2
8005476: 4618 mov r0, r3
8005478: f7fe fc98 bl 8003dac <vListInitialise>
for( uxPriority = ( UBaseType_t ) 0U; uxPriority < ( UBaseType_t ) configMAX_PRIORITIES; uxPriority++ )
800547c: 687b ldr r3, [r7, #4]
800547e: 3301 adds r3, #1
8005480: 607b str r3, [r7, #4]
8005482: 687b ldr r3, [r7, #4]
8005484: 2b37 cmp r3, #55 @ 0x37
8005486: d9ef bls.n 8005468 <prvInitialiseTaskLists+0xc>
}
vListInitialise( &xDelayedTaskList1 );
8005488: 480d ldr r0, [pc, #52] @ (80054c0 <prvInitialiseTaskLists+0x64>)
800548a: f7fe fc8f bl 8003dac <vListInitialise>
vListInitialise( &xDelayedTaskList2 );
800548e: 480d ldr r0, [pc, #52] @ (80054c4 <prvInitialiseTaskLists+0x68>)
8005490: f7fe fc8c bl 8003dac <vListInitialise>
vListInitialise( &xPendingReadyList );
8005494: 480c ldr r0, [pc, #48] @ (80054c8 <prvInitialiseTaskLists+0x6c>)
8005496: f7fe fc89 bl 8003dac <vListInitialise>
#if ( INCLUDE_vTaskDelete == 1 )
{
vListInitialise( &xTasksWaitingTermination );
800549a: 480c ldr r0, [pc, #48] @ (80054cc <prvInitialiseTaskLists+0x70>)
800549c: f7fe fc86 bl 8003dac <vListInitialise>
}
#endif /* INCLUDE_vTaskDelete */
#if ( INCLUDE_vTaskSuspend == 1 )
{
vListInitialise( &xSuspendedTaskList );
80054a0: 480b ldr r0, [pc, #44] @ (80054d0 <prvInitialiseTaskLists+0x74>)
80054a2: f7fe fc83 bl 8003dac <vListInitialise>
}
#endif /* INCLUDE_vTaskSuspend */
/* Start with pxDelayedTaskList using list1 and the pxOverflowDelayedTaskList
using list2. */
pxDelayedTaskList = &xDelayedTaskList1;
80054a6: 4b0b ldr r3, [pc, #44] @ (80054d4 <prvInitialiseTaskLists+0x78>)
80054a8: 4a05 ldr r2, [pc, #20] @ (80054c0 <prvInitialiseTaskLists+0x64>)
80054aa: 601a str r2, [r3, #0]
pxOverflowDelayedTaskList = &xDelayedTaskList2;
80054ac: 4b0a ldr r3, [pc, #40] @ (80054d8 <prvInitialiseTaskLists+0x7c>)
80054ae: 4a05 ldr r2, [pc, #20] @ (80054c4 <prvInitialiseTaskLists+0x68>)
80054b0: 601a str r2, [r3, #0]
}
80054b2: bf00 nop
80054b4: 3708 adds r7, #8
80054b6: 46bd mov sp, r7
80054b8: bd80 pop {r7, pc}
80054ba: bf00 nop
80054bc: 20000e6c .word 0x20000e6c
80054c0: 200012cc .word 0x200012cc
80054c4: 200012e0 .word 0x200012e0
80054c8: 200012fc .word 0x200012fc
80054cc: 20001310 .word 0x20001310
80054d0: 20001328 .word 0x20001328
80054d4: 200012f4 .word 0x200012f4
80054d8: 200012f8 .word 0x200012f8
080054dc <prvCheckTasksWaitingTermination>:
/*-----------------------------------------------------------*/
static void prvCheckTasksWaitingTermination( void )
{
80054dc: b580 push {r7, lr}
80054de: b082 sub sp, #8
80054e0: af00 add r7, sp, #0
{
TCB_t *pxTCB;
/* uxDeletedTasksWaitingCleanUp is used to prevent taskENTER_CRITICAL()
being called too often in the idle task. */
while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
80054e2: e019 b.n 8005518 <prvCheckTasksWaitingTermination+0x3c>
{
taskENTER_CRITICAL();
80054e4: f000 fdda bl 800609c <vPortEnterCritical>
{
pxTCB = listGET_OWNER_OF_HEAD_ENTRY( ( &xTasksWaitingTermination ) ); /*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. */
80054e8: 4b10 ldr r3, [pc, #64] @ (800552c <prvCheckTasksWaitingTermination+0x50>)
80054ea: 68db ldr r3, [r3, #12]
80054ec: 68db ldr r3, [r3, #12]
80054ee: 607b str r3, [r7, #4]
( void ) uxListRemove( &( pxTCB->xStateListItem ) );
80054f0: 687b ldr r3, [r7, #4]
80054f2: 3304 adds r3, #4
80054f4: 4618 mov r0, r3
80054f6: f7fe fce3 bl 8003ec0 <uxListRemove>
--uxCurrentNumberOfTasks;
80054fa: 4b0d ldr r3, [pc, #52] @ (8005530 <prvCheckTasksWaitingTermination+0x54>)
80054fc: 681b ldr r3, [r3, #0]
80054fe: 3b01 subs r3, #1
8005500: 4a0b ldr r2, [pc, #44] @ (8005530 <prvCheckTasksWaitingTermination+0x54>)
8005502: 6013 str r3, [r2, #0]
--uxDeletedTasksWaitingCleanUp;
8005504: 4b0b ldr r3, [pc, #44] @ (8005534 <prvCheckTasksWaitingTermination+0x58>)
8005506: 681b ldr r3, [r3, #0]
8005508: 3b01 subs r3, #1
800550a: 4a0a ldr r2, [pc, #40] @ (8005534 <prvCheckTasksWaitingTermination+0x58>)
800550c: 6013 str r3, [r2, #0]
}
taskEXIT_CRITICAL();
800550e: f000 fdfb bl 8006108 <vPortExitCritical>
prvDeleteTCB( pxTCB );
8005512: 6878 ldr r0, [r7, #4]
8005514: f000 f810 bl 8005538 <prvDeleteTCB>
while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
8005518: 4b06 ldr r3, [pc, #24] @ (8005534 <prvCheckTasksWaitingTermination+0x58>)
800551a: 681b ldr r3, [r3, #0]
800551c: 2b00 cmp r3, #0
800551e: d1e1 bne.n 80054e4 <prvCheckTasksWaitingTermination+0x8>
}
}
#endif /* INCLUDE_vTaskDelete */
}
8005520: bf00 nop
8005522: bf00 nop
8005524: 3708 adds r7, #8
8005526: 46bd mov sp, r7
8005528: bd80 pop {r7, pc}
800552a: bf00 nop
800552c: 20001310 .word 0x20001310
8005530: 2000133c .word 0x2000133c
8005534: 20001324 .word 0x20001324
08005538 <prvDeleteTCB>:
/*-----------------------------------------------------------*/
#if ( INCLUDE_vTaskDelete == 1 )
static void prvDeleteTCB( TCB_t *pxTCB )
{
8005538: b580 push {r7, lr}
800553a: b084 sub sp, #16
800553c: af00 add r7, sp, #0
800553e: 6078 str r0, [r7, #4]
#elif( tskSTATIC_AND_DYNAMIC_ALLOCATION_POSSIBLE != 0 ) /*lint !e731 !e9029 Macro has been consolidated for readability reasons. */
{
/* The task could have been allocated statically or dynamically, so
check what was statically allocated before trying to free the
memory. */
if( pxTCB->ucStaticallyAllocated == tskDYNAMICALLY_ALLOCATED_STACK_AND_TCB )
8005540: 687b ldr r3, [r7, #4]
8005542: f893 3059 ldrb.w r3, [r3, #89] @ 0x59
8005546: 2b00 cmp r3, #0
8005548: d108 bne.n 800555c <prvDeleteTCB+0x24>
{
/* Both the stack and TCB were allocated dynamically, so both
must be freed. */
vPortFree( pxTCB->pxStack );
800554a: 687b ldr r3, [r7, #4]
800554c: 6b1b ldr r3, [r3, #48] @ 0x30
800554e: 4618 mov r0, r3
8005550: f000 ffa0 bl 8006494 <vPortFree>
vPortFree( pxTCB );
8005554: 6878 ldr r0, [r7, #4]
8005556: f000 ff9d bl 8006494 <vPortFree>
configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
mtCOVERAGE_TEST_MARKER();
}
}
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
}
800555a: e01b b.n 8005594 <prvDeleteTCB+0x5c>
else if( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_ONLY )
800555c: 687b ldr r3, [r7, #4]
800555e: f893 3059 ldrb.w r3, [r3, #89] @ 0x59
8005562: 2b01 cmp r3, #1
8005564: d103 bne.n 800556e <prvDeleteTCB+0x36>
vPortFree( pxTCB );
8005566: 6878 ldr r0, [r7, #4]
8005568: f000 ff94 bl 8006494 <vPortFree>
}
800556c: e012 b.n 8005594 <prvDeleteTCB+0x5c>
configASSERT( pxTCB->ucStaticallyAllocated == tskSTATICALLY_ALLOCATED_STACK_AND_TCB );
800556e: 687b ldr r3, [r7, #4]
8005570: f893 3059 ldrb.w r3, [r3, #89] @ 0x59
8005574: 2b02 cmp r3, #2
8005576: d00d beq.n 8005594 <prvDeleteTCB+0x5c>
__asm volatile
8005578: f04f 0350 mov.w r3, #80 @ 0x50
800557c: b672 cpsid i
800557e: f383 8811 msr BASEPRI, r3
8005582: f3bf 8f6f isb sy
8005586: f3bf 8f4f dsb sy
800558a: b662 cpsie i
800558c: 60fb str r3, [r7, #12]
}
800558e: bf00 nop
8005590: bf00 nop
8005592: e7fd b.n 8005590 <prvDeleteTCB+0x58>
}
8005594: bf00 nop
8005596: 3710 adds r7, #16
8005598: 46bd mov sp, r7
800559a: bd80 pop {r7, pc}
0800559c <prvResetNextTaskUnblockTime>:
#endif /* INCLUDE_vTaskDelete */
/*-----------------------------------------------------------*/
static void prvResetNextTaskUnblockTime( void )
{
800559c: b480 push {r7}
800559e: b083 sub sp, #12
80055a0: af00 add r7, sp, #0
TCB_t *pxTCB;
if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )
80055a2: 4b0c ldr r3, [pc, #48] @ (80055d4 <prvResetNextTaskUnblockTime+0x38>)
80055a4: 681b ldr r3, [r3, #0]
80055a6: 681b ldr r3, [r3, #0]
80055a8: 2b00 cmp r3, #0
80055aa: d104 bne.n 80055b6 <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;
80055ac: 4b0a ldr r3, [pc, #40] @ (80055d8 <prvResetNextTaskUnblockTime+0x3c>)
80055ae: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
80055b2: 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 ) );
}
}
80055b4: e008 b.n 80055c8 <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. */
80055b6: 4b07 ldr r3, [pc, #28] @ (80055d4 <prvResetNextTaskUnblockTime+0x38>)
80055b8: 681b ldr r3, [r3, #0]
80055ba: 68db ldr r3, [r3, #12]
80055bc: 68db ldr r3, [r3, #12]
80055be: 607b str r3, [r7, #4]
xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( ( pxTCB )->xStateListItem ) );
80055c0: 687b ldr r3, [r7, #4]
80055c2: 685b ldr r3, [r3, #4]
80055c4: 4a04 ldr r2, [pc, #16] @ (80055d8 <prvResetNextTaskUnblockTime+0x3c>)
80055c6: 6013 str r3, [r2, #0]
}
80055c8: bf00 nop
80055ca: 370c adds r7, #12
80055cc: 46bd mov sp, r7
80055ce: f85d 7b04 ldr.w r7, [sp], #4
80055d2: 4770 bx lr
80055d4: 200012f4 .word 0x200012f4
80055d8: 2000135c .word 0x2000135c
080055dc <xTaskGetSchedulerState>:
/*-----------------------------------------------------------*/
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
BaseType_t xTaskGetSchedulerState( void )
{
80055dc: b480 push {r7}
80055de: b083 sub sp, #12
80055e0: af00 add r7, sp, #0
BaseType_t xReturn;
if( xSchedulerRunning == pdFALSE )
80055e2: 4b0b ldr r3, [pc, #44] @ (8005610 <xTaskGetSchedulerState+0x34>)
80055e4: 681b ldr r3, [r3, #0]
80055e6: 2b00 cmp r3, #0
80055e8: d102 bne.n 80055f0 <xTaskGetSchedulerState+0x14>
{
xReturn = taskSCHEDULER_NOT_STARTED;
80055ea: 2301 movs r3, #1
80055ec: 607b str r3, [r7, #4]
80055ee: e008 b.n 8005602 <xTaskGetSchedulerState+0x26>
}
else
{
if( uxSchedulerSuspended == ( UBaseType_t ) pdFALSE )
80055f0: 4b08 ldr r3, [pc, #32] @ (8005614 <xTaskGetSchedulerState+0x38>)
80055f2: 681b ldr r3, [r3, #0]
80055f4: 2b00 cmp r3, #0
80055f6: d102 bne.n 80055fe <xTaskGetSchedulerState+0x22>
{
xReturn = taskSCHEDULER_RUNNING;
80055f8: 2302 movs r3, #2
80055fa: 607b str r3, [r7, #4]
80055fc: e001 b.n 8005602 <xTaskGetSchedulerState+0x26>
}
else
{
xReturn = taskSCHEDULER_SUSPENDED;
80055fe: 2300 movs r3, #0
8005600: 607b str r3, [r7, #4]
}
}
return xReturn;
8005602: 687b ldr r3, [r7, #4]
}
8005604: 4618 mov r0, r3
8005606: 370c adds r7, #12
8005608: 46bd mov sp, r7
800560a: f85d 7b04 ldr.w r7, [sp], #4
800560e: 4770 bx lr
8005610: 20001348 .word 0x20001348
8005614: 20001364 .word 0x20001364
08005618 <xTaskPriorityDisinherit>:
/*-----------------------------------------------------------*/
#if ( configUSE_MUTEXES == 1 )
BaseType_t xTaskPriorityDisinherit( TaskHandle_t const pxMutexHolder )
{
8005618: b580 push {r7, lr}
800561a: b086 sub sp, #24
800561c: af00 add r7, sp, #0
800561e: 6078 str r0, [r7, #4]
TCB_t * const pxTCB = pxMutexHolder;
8005620: 687b ldr r3, [r7, #4]
8005622: 613b str r3, [r7, #16]
BaseType_t xReturn = pdFALSE;
8005624: 2300 movs r3, #0
8005626: 617b str r3, [r7, #20]
if( pxMutexHolder != NULL )
8005628: 687b ldr r3, [r7, #4]
800562a: 2b00 cmp r3, #0
800562c: d05c beq.n 80056e8 <xTaskPriorityDisinherit+0xd0>
{
/* 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 );
800562e: 4b31 ldr r3, [pc, #196] @ (80056f4 <xTaskPriorityDisinherit+0xdc>)
8005630: 681b ldr r3, [r3, #0]
8005632: 693a ldr r2, [r7, #16]
8005634: 429a cmp r2, r3
8005636: d00d beq.n 8005654 <xTaskPriorityDisinherit+0x3c>
__asm volatile
8005638: f04f 0350 mov.w r3, #80 @ 0x50
800563c: b672 cpsid i
800563e: f383 8811 msr BASEPRI, r3
8005642: f3bf 8f6f isb sy
8005646: f3bf 8f4f dsb sy
800564a: b662 cpsie i
800564c: 60fb str r3, [r7, #12]
}
800564e: bf00 nop
8005650: bf00 nop
8005652: e7fd b.n 8005650 <xTaskPriorityDisinherit+0x38>
configASSERT( pxTCB->uxMutexesHeld );
8005654: 693b ldr r3, [r7, #16]
8005656: 6d1b ldr r3, [r3, #80] @ 0x50
8005658: 2b00 cmp r3, #0
800565a: d10d bne.n 8005678 <xTaskPriorityDisinherit+0x60>
__asm volatile
800565c: f04f 0350 mov.w r3, #80 @ 0x50
8005660: b672 cpsid i
8005662: f383 8811 msr BASEPRI, r3
8005666: f3bf 8f6f isb sy
800566a: f3bf 8f4f dsb sy
800566e: b662 cpsie i
8005670: 60bb str r3, [r7, #8]
}
8005672: bf00 nop
8005674: bf00 nop
8005676: e7fd b.n 8005674 <xTaskPriorityDisinherit+0x5c>
( pxTCB->uxMutexesHeld )--;
8005678: 693b ldr r3, [r7, #16]
800567a: 6d1b ldr r3, [r3, #80] @ 0x50
800567c: 1e5a subs r2, r3, #1
800567e: 693b ldr r3, [r7, #16]
8005680: 651a str r2, [r3, #80] @ 0x50
/* Has the holder of the mutex inherited the priority of another
task? */
if( pxTCB->uxPriority != pxTCB->uxBasePriority )
8005682: 693b ldr r3, [r7, #16]
8005684: 6ada ldr r2, [r3, #44] @ 0x2c
8005686: 693b ldr r3, [r7, #16]
8005688: 6cdb ldr r3, [r3, #76] @ 0x4c
800568a: 429a cmp r2, r3
800568c: d02c beq.n 80056e8 <xTaskPriorityDisinherit+0xd0>
{
/* Only disinherit if no other mutexes are held. */
if( pxTCB->uxMutexesHeld == ( UBaseType_t ) 0 )
800568e: 693b ldr r3, [r7, #16]
8005690: 6d1b ldr r3, [r3, #80] @ 0x50
8005692: 2b00 cmp r3, #0
8005694: d128 bne.n 80056e8 <xTaskPriorityDisinherit+0xd0>
/* 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 list. */
if( uxListRemove( &( pxTCB->xStateListItem ) ) == ( UBaseType_t ) 0 )
8005696: 693b ldr r3, [r7, #16]
8005698: 3304 adds r3, #4
800569a: 4618 mov r0, r3
800569c: f7fe fc10 bl 8003ec0 <uxListRemove>
}
/* Disinherit the priority before adding the task into the
new ready list. */
traceTASK_PRIORITY_DISINHERIT( pxTCB, pxTCB->uxBasePriority );
pxTCB->uxPriority = pxTCB->uxBasePriority;
80056a0: 693b ldr r3, [r7, #16]
80056a2: 6cda ldr r2, [r3, #76] @ 0x4c
80056a4: 693b ldr r3, [r7, #16]
80056a6: 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. */
80056a8: 693b ldr r3, [r7, #16]
80056aa: 6adb ldr r3, [r3, #44] @ 0x2c
80056ac: f1c3 0238 rsb r2, r3, #56 @ 0x38
80056b0: 693b ldr r3, [r7, #16]
80056b2: 619a str r2, [r3, #24]
prvAddTaskToReadyList( pxTCB );
80056b4: 693b ldr r3, [r7, #16]
80056b6: 6ada ldr r2, [r3, #44] @ 0x2c
80056b8: 4b0f ldr r3, [pc, #60] @ (80056f8 <xTaskPriorityDisinherit+0xe0>)
80056ba: 681b ldr r3, [r3, #0]
80056bc: 429a cmp r2, r3
80056be: d903 bls.n 80056c8 <xTaskPriorityDisinherit+0xb0>
80056c0: 693b ldr r3, [r7, #16]
80056c2: 6adb ldr r3, [r3, #44] @ 0x2c
80056c4: 4a0c ldr r2, [pc, #48] @ (80056f8 <xTaskPriorityDisinherit+0xe0>)
80056c6: 6013 str r3, [r2, #0]
80056c8: 693b ldr r3, [r7, #16]
80056ca: 6ada ldr r2, [r3, #44] @ 0x2c
80056cc: 4613 mov r3, r2
80056ce: 009b lsls r3, r3, #2
80056d0: 4413 add r3, r2
80056d2: 009b lsls r3, r3, #2
80056d4: 4a09 ldr r2, [pc, #36] @ (80056fc <xTaskPriorityDisinherit+0xe4>)
80056d6: 441a add r2, r3
80056d8: 693b ldr r3, [r7, #16]
80056da: 3304 adds r3, #4
80056dc: 4619 mov r1, r3
80056de: 4610 mov r0, r2
80056e0: f7fe fb91 bl 8003e06 <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;
80056e4: 2301 movs r3, #1
80056e6: 617b str r3, [r7, #20]
else
{
mtCOVERAGE_TEST_MARKER();
}
return xReturn;
80056e8: 697b ldr r3, [r7, #20]
}
80056ea: 4618 mov r0, r3
80056ec: 3718 adds r7, #24
80056ee: 46bd mov sp, r7
80056f0: bd80 pop {r7, pc}
80056f2: bf00 nop
80056f4: 20000e68 .word 0x20000e68
80056f8: 20001344 .word 0x20001344
80056fc: 20000e6c .word 0x20000e6c
08005700 <prvAddCurrentTaskToDelayedList>:
}
#endif
/*-----------------------------------------------------------*/
static void prvAddCurrentTaskToDelayedList( TickType_t xTicksToWait, const BaseType_t xCanBlockIndefinitely )
{
8005700: b580 push {r7, lr}
8005702: b084 sub sp, #16
8005704: af00 add r7, sp, #0
8005706: 6078 str r0, [r7, #4]
8005708: 6039 str r1, [r7, #0]
TickType_t xTimeToWake;
const TickType_t xConstTickCount = xTickCount;
800570a: 4b21 ldr r3, [pc, #132] @ (8005790 <prvAddCurrentTaskToDelayedList+0x90>)
800570c: 681b ldr r3, [r3, #0]
800570e: 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 )
8005710: 4b20 ldr r3, [pc, #128] @ (8005794 <prvAddCurrentTaskToDelayedList+0x94>)
8005712: 681b ldr r3, [r3, #0]
8005714: 3304 adds r3, #4
8005716: 4618 mov r0, r3
8005718: f7fe fbd2 bl 8003ec0 <uxListRemove>
mtCOVERAGE_TEST_MARKER();
}
#if ( INCLUDE_vTaskSuspend == 1 )
{
if( ( xTicksToWait == portMAX_DELAY ) && ( xCanBlockIndefinitely != pdFALSE ) )
800571c: 687b ldr r3, [r7, #4]
800571e: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
8005722: d10a bne.n 800573a <prvAddCurrentTaskToDelayedList+0x3a>
8005724: 683b ldr r3, [r7, #0]
8005726: 2b00 cmp r3, #0
8005728: d007 beq.n 800573a <prvAddCurrentTaskToDelayedList+0x3a>
{
/* 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 ) );
800572a: 4b1a ldr r3, [pc, #104] @ (8005794 <prvAddCurrentTaskToDelayedList+0x94>)
800572c: 681b ldr r3, [r3, #0]
800572e: 3304 adds r3, #4
8005730: 4619 mov r1, r3
8005732: 4819 ldr r0, [pc, #100] @ (8005798 <prvAddCurrentTaskToDelayedList+0x98>)
8005734: f7fe fb67 bl 8003e06 <vListInsertEnd>
/* Avoid compiler warning when INCLUDE_vTaskSuspend is not 1. */
( void ) xCanBlockIndefinitely;
}
#endif /* INCLUDE_vTaskSuspend */
}
8005738: e026 b.n 8005788 <prvAddCurrentTaskToDelayedList+0x88>
xTimeToWake = xConstTickCount + xTicksToWait;
800573a: 68fa ldr r2, [r7, #12]
800573c: 687b ldr r3, [r7, #4]
800573e: 4413 add r3, r2
8005740: 60bb str r3, [r7, #8]
listSET_LIST_ITEM_VALUE( &( pxCurrentTCB->xStateListItem ), xTimeToWake );
8005742: 4b14 ldr r3, [pc, #80] @ (8005794 <prvAddCurrentTaskToDelayedList+0x94>)
8005744: 681b ldr r3, [r3, #0]
8005746: 68ba ldr r2, [r7, #8]
8005748: 605a str r2, [r3, #4]
if( xTimeToWake < xConstTickCount )
800574a: 68ba ldr r2, [r7, #8]
800574c: 68fb ldr r3, [r7, #12]
800574e: 429a cmp r2, r3
8005750: d209 bcs.n 8005766 <prvAddCurrentTaskToDelayedList+0x66>
vListInsert( pxOverflowDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
8005752: 4b12 ldr r3, [pc, #72] @ (800579c <prvAddCurrentTaskToDelayedList+0x9c>)
8005754: 681a ldr r2, [r3, #0]
8005756: 4b0f ldr r3, [pc, #60] @ (8005794 <prvAddCurrentTaskToDelayedList+0x94>)
8005758: 681b ldr r3, [r3, #0]
800575a: 3304 adds r3, #4
800575c: 4619 mov r1, r3
800575e: 4610 mov r0, r2
8005760: f7fe fb75 bl 8003e4e <vListInsert>
}
8005764: e010 b.n 8005788 <prvAddCurrentTaskToDelayedList+0x88>
vListInsert( pxDelayedTaskList, &( pxCurrentTCB->xStateListItem ) );
8005766: 4b0e ldr r3, [pc, #56] @ (80057a0 <prvAddCurrentTaskToDelayedList+0xa0>)
8005768: 681a ldr r2, [r3, #0]
800576a: 4b0a ldr r3, [pc, #40] @ (8005794 <prvAddCurrentTaskToDelayedList+0x94>)
800576c: 681b ldr r3, [r3, #0]
800576e: 3304 adds r3, #4
8005770: 4619 mov r1, r3
8005772: 4610 mov r0, r2
8005774: f7fe fb6b bl 8003e4e <vListInsert>
if( xTimeToWake < xNextTaskUnblockTime )
8005778: 4b0a ldr r3, [pc, #40] @ (80057a4 <prvAddCurrentTaskToDelayedList+0xa4>)
800577a: 681b ldr r3, [r3, #0]
800577c: 68ba ldr r2, [r7, #8]
800577e: 429a cmp r2, r3
8005780: d202 bcs.n 8005788 <prvAddCurrentTaskToDelayedList+0x88>
xNextTaskUnblockTime = xTimeToWake;
8005782: 4a08 ldr r2, [pc, #32] @ (80057a4 <prvAddCurrentTaskToDelayedList+0xa4>)
8005784: 68bb ldr r3, [r7, #8]
8005786: 6013 str r3, [r2, #0]
}
8005788: bf00 nop
800578a: 3710 adds r7, #16
800578c: 46bd mov sp, r7
800578e: bd80 pop {r7, pc}
8005790: 20001340 .word 0x20001340
8005794: 20000e68 .word 0x20000e68
8005798: 20001328 .word 0x20001328
800579c: 200012f8 .word 0x200012f8
80057a0: 200012f4 .word 0x200012f4
80057a4: 2000135c .word 0x2000135c
080057a8 <xTimerCreateTimerTask>:
TimerCallbackFunction_t pxCallbackFunction,
Timer_t *pxNewTimer ) PRIVILEGED_FUNCTION;
/*-----------------------------------------------------------*/
BaseType_t xTimerCreateTimerTask( void )
{
80057a8: b580 push {r7, lr}
80057aa: b08a sub sp, #40 @ 0x28
80057ac: af04 add r7, sp, #16
BaseType_t xReturn = pdFAIL;
80057ae: 2300 movs r3, #0
80057b0: 617b str r3, [r7, #20]
/* This function is called when the scheduler is started if
configUSE_TIMERS is set to 1. Check that the infrastructure used by the
timer service task has been created/initialised. If timers have already
been created then the initialisation will already have been performed. */
prvCheckForValidListAndQueue();
80057b2: f000 fb21 bl 8005df8 <prvCheckForValidListAndQueue>
if( xTimerQueue != NULL )
80057b6: 4b1e ldr r3, [pc, #120] @ (8005830 <xTimerCreateTimerTask+0x88>)
80057b8: 681b ldr r3, [r3, #0]
80057ba: 2b00 cmp r3, #0
80057bc: d021 beq.n 8005802 <xTimerCreateTimerTask+0x5a>
{
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
{
StaticTask_t *pxTimerTaskTCBBuffer = NULL;
80057be: 2300 movs r3, #0
80057c0: 60fb str r3, [r7, #12]
StackType_t *pxTimerTaskStackBuffer = NULL;
80057c2: 2300 movs r3, #0
80057c4: 60bb str r3, [r7, #8]
uint32_t ulTimerTaskStackSize;
vApplicationGetTimerTaskMemory( &pxTimerTaskTCBBuffer, &pxTimerTaskStackBuffer, &ulTimerTaskStackSize );
80057c6: 1d3a adds r2, r7, #4
80057c8: f107 0108 add.w r1, r7, #8
80057cc: f107 030c add.w r3, r7, #12
80057d0: 4618 mov r0, r3
80057d2: f7fe fad1 bl 8003d78 <vApplicationGetTimerTaskMemory>
xTimerTaskHandle = xTaskCreateStatic( prvTimerTask,
80057d6: 6879 ldr r1, [r7, #4]
80057d8: 68bb ldr r3, [r7, #8]
80057da: 68fa ldr r2, [r7, #12]
80057dc: 9202 str r2, [sp, #8]
80057de: 9301 str r3, [sp, #4]
80057e0: 2302 movs r3, #2
80057e2: 9300 str r3, [sp, #0]
80057e4: 2300 movs r3, #0
80057e6: 460a mov r2, r1
80057e8: 4912 ldr r1, [pc, #72] @ (8005834 <xTimerCreateTimerTask+0x8c>)
80057ea: 4813 ldr r0, [pc, #76] @ (8005838 <xTimerCreateTimerTask+0x90>)
80057ec: f7ff f8ac bl 8004948 <xTaskCreateStatic>
80057f0: 4603 mov r3, r0
80057f2: 4a12 ldr r2, [pc, #72] @ (800583c <xTimerCreateTimerTask+0x94>)
80057f4: 6013 str r3, [r2, #0]
NULL,
( ( UBaseType_t ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT,
pxTimerTaskStackBuffer,
pxTimerTaskTCBBuffer );
if( xTimerTaskHandle != NULL )
80057f6: 4b11 ldr r3, [pc, #68] @ (800583c <xTimerCreateTimerTask+0x94>)
80057f8: 681b ldr r3, [r3, #0]
80057fa: 2b00 cmp r3, #0
80057fc: d001 beq.n 8005802 <xTimerCreateTimerTask+0x5a>
{
xReturn = pdPASS;
80057fe: 2301 movs r3, #1
8005800: 617b str r3, [r7, #20]
else
{
mtCOVERAGE_TEST_MARKER();
}
configASSERT( xReturn );
8005802: 697b ldr r3, [r7, #20]
8005804: 2b00 cmp r3, #0
8005806: d10d bne.n 8005824 <xTimerCreateTimerTask+0x7c>
__asm volatile
8005808: f04f 0350 mov.w r3, #80 @ 0x50
800580c: b672 cpsid i
800580e: f383 8811 msr BASEPRI, r3
8005812: f3bf 8f6f isb sy
8005816: f3bf 8f4f dsb sy
800581a: b662 cpsie i
800581c: 613b str r3, [r7, #16]
}
800581e: bf00 nop
8005820: bf00 nop
8005822: e7fd b.n 8005820 <xTimerCreateTimerTask+0x78>
return xReturn;
8005824: 697b ldr r3, [r7, #20]
}
8005826: 4618 mov r0, r3
8005828: 3718 adds r7, #24
800582a: 46bd mov sp, r7
800582c: bd80 pop {r7, pc}
800582e: bf00 nop
8005830: 20001398 .word 0x20001398
8005834: 080075b0 .word 0x080075b0
8005838: 08005981 .word 0x08005981
800583c: 2000139c .word 0x2000139c
08005840 <xTimerGenericCommand>:
}
}
/*-----------------------------------------------------------*/
BaseType_t xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait )
{
8005840: b580 push {r7, lr}
8005842: b08a sub sp, #40 @ 0x28
8005844: af00 add r7, sp, #0
8005846: 60f8 str r0, [r7, #12]
8005848: 60b9 str r1, [r7, #8]
800584a: 607a str r2, [r7, #4]
800584c: 603b str r3, [r7, #0]
BaseType_t xReturn = pdFAIL;
800584e: 2300 movs r3, #0
8005850: 627b str r3, [r7, #36] @ 0x24
DaemonTaskMessage_t xMessage;
configASSERT( xTimer );
8005852: 68fb ldr r3, [r7, #12]
8005854: 2b00 cmp r3, #0
8005856: d10d bne.n 8005874 <xTimerGenericCommand+0x34>
__asm volatile
8005858: f04f 0350 mov.w r3, #80 @ 0x50
800585c: b672 cpsid i
800585e: f383 8811 msr BASEPRI, r3
8005862: f3bf 8f6f isb sy
8005866: f3bf 8f4f dsb sy
800586a: b662 cpsie i
800586c: 623b str r3, [r7, #32]
}
800586e: bf00 nop
8005870: bf00 nop
8005872: e7fd b.n 8005870 <xTimerGenericCommand+0x30>
/* Send a message to the timer service task to perform a particular action
on a particular timer definition. */
if( xTimerQueue != NULL )
8005874: 4b19 ldr r3, [pc, #100] @ (80058dc <xTimerGenericCommand+0x9c>)
8005876: 681b ldr r3, [r3, #0]
8005878: 2b00 cmp r3, #0
800587a: d02a beq.n 80058d2 <xTimerGenericCommand+0x92>
{
/* Send a command to the timer service task to start the xTimer timer. */
xMessage.xMessageID = xCommandID;
800587c: 68bb ldr r3, [r7, #8]
800587e: 613b str r3, [r7, #16]
xMessage.u.xTimerParameters.xMessageValue = xOptionalValue;
8005880: 687b ldr r3, [r7, #4]
8005882: 617b str r3, [r7, #20]
xMessage.u.xTimerParameters.pxTimer = xTimer;
8005884: 68fb ldr r3, [r7, #12]
8005886: 61bb str r3, [r7, #24]
if( xCommandID < tmrFIRST_FROM_ISR_COMMAND )
8005888: 68bb ldr r3, [r7, #8]
800588a: 2b05 cmp r3, #5
800588c: dc18 bgt.n 80058c0 <xTimerGenericCommand+0x80>
{
if( xTaskGetSchedulerState() == taskSCHEDULER_RUNNING )
800588e: f7ff fea5 bl 80055dc <xTaskGetSchedulerState>
8005892: 4603 mov r3, r0
8005894: 2b02 cmp r3, #2
8005896: d109 bne.n 80058ac <xTimerGenericCommand+0x6c>
{
xReturn = xQueueSendToBack( xTimerQueue, &xMessage, xTicksToWait );
8005898: 4b10 ldr r3, [pc, #64] @ (80058dc <xTimerGenericCommand+0x9c>)
800589a: 6818 ldr r0, [r3, #0]
800589c: f107 0110 add.w r1, r7, #16
80058a0: 2300 movs r3, #0
80058a2: 6b3a ldr r2, [r7, #48] @ 0x30
80058a4: f7fe fc4c bl 8004140 <xQueueGenericSend>
80058a8: 6278 str r0, [r7, #36] @ 0x24
80058aa: e012 b.n 80058d2 <xTimerGenericCommand+0x92>
}
else
{
xReturn = xQueueSendToBack( xTimerQueue, &xMessage, tmrNO_DELAY );
80058ac: 4b0b ldr r3, [pc, #44] @ (80058dc <xTimerGenericCommand+0x9c>)
80058ae: 6818 ldr r0, [r3, #0]
80058b0: f107 0110 add.w r1, r7, #16
80058b4: 2300 movs r3, #0
80058b6: 2200 movs r2, #0
80058b8: f7fe fc42 bl 8004140 <xQueueGenericSend>
80058bc: 6278 str r0, [r7, #36] @ 0x24
80058be: e008 b.n 80058d2 <xTimerGenericCommand+0x92>
}
}
else
{
xReturn = xQueueSendToBackFromISR( xTimerQueue, &xMessage, pxHigherPriorityTaskWoken );
80058c0: 4b06 ldr r3, [pc, #24] @ (80058dc <xTimerGenericCommand+0x9c>)
80058c2: 6818 ldr r0, [r3, #0]
80058c4: f107 0110 add.w r1, r7, #16
80058c8: 2300 movs r3, #0
80058ca: 683a ldr r2, [r7, #0]
80058cc: f7fe fd42 bl 8004354 <xQueueGenericSendFromISR>
80058d0: 6278 str r0, [r7, #36] @ 0x24
else
{
mtCOVERAGE_TEST_MARKER();
}
return xReturn;
80058d2: 6a7b ldr r3, [r7, #36] @ 0x24
}
80058d4: 4618 mov r0, r3
80058d6: 3728 adds r7, #40 @ 0x28
80058d8: 46bd mov sp, r7
80058da: bd80 pop {r7, pc}
80058dc: 20001398 .word 0x20001398
080058e0 <prvProcessExpiredTimer>:
return pxTimer->pcTimerName;
}
/*-----------------------------------------------------------*/
static void prvProcessExpiredTimer( const TickType_t xNextExpireTime, const TickType_t xTimeNow )
{
80058e0: b580 push {r7, lr}
80058e2: b088 sub sp, #32
80058e4: af02 add r7, sp, #8
80058e6: 6078 str r0, [r7, #4]
80058e8: 6039 str r1, [r7, #0]
BaseType_t xResult;
Timer_t * const pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
80058ea: 4b24 ldr r3, [pc, #144] @ (800597c <prvProcessExpiredTimer+0x9c>)
80058ec: 681b ldr r3, [r3, #0]
80058ee: 68db ldr r3, [r3, #12]
80058f0: 68db ldr r3, [r3, #12]
80058f2: 617b str r3, [r7, #20]
/* Remove the timer from the list of active timers. A check has already
been performed to ensure the list is not empty. */
( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
80058f4: 697b ldr r3, [r7, #20]
80058f6: 3304 adds r3, #4
80058f8: 4618 mov r0, r3
80058fa: f7fe fae1 bl 8003ec0 <uxListRemove>
traceTIMER_EXPIRED( pxTimer );
/* If the timer is an auto reload timer then calculate the next
expiry time and re-insert the timer in the list of active timers. */
if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
80058fe: 697b ldr r3, [r7, #20]
8005900: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
8005904: f003 0304 and.w r3, r3, #4
8005908: 2b00 cmp r3, #0
800590a: d025 beq.n 8005958 <prvProcessExpiredTimer+0x78>
{
/* The timer is inserted into a list using a time relative to anything
other than the current time. It will therefore be inserted into the
correct list relative to the time this task thinks it is now. */
if( prvInsertTimerInActiveList( pxTimer, ( xNextExpireTime + pxTimer->xTimerPeriodInTicks ), xTimeNow, xNextExpireTime ) != pdFALSE )
800590c: 697b ldr r3, [r7, #20]
800590e: 699a ldr r2, [r3, #24]
8005910: 687b ldr r3, [r7, #4]
8005912: 18d1 adds r1, r2, r3
8005914: 687b ldr r3, [r7, #4]
8005916: 683a ldr r2, [r7, #0]
8005918: 6978 ldr r0, [r7, #20]
800591a: f000 f8d7 bl 8005acc <prvInsertTimerInActiveList>
800591e: 4603 mov r3, r0
8005920: 2b00 cmp r3, #0
8005922: d022 beq.n 800596a <prvProcessExpiredTimer+0x8a>
{
/* The timer expired before it was added to the active timer
list. Reload it now. */
xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
8005924: 2300 movs r3, #0
8005926: 9300 str r3, [sp, #0]
8005928: 2300 movs r3, #0
800592a: 687a ldr r2, [r7, #4]
800592c: 2100 movs r1, #0
800592e: 6978 ldr r0, [r7, #20]
8005930: f7ff ff86 bl 8005840 <xTimerGenericCommand>
8005934: 6138 str r0, [r7, #16]
configASSERT( xResult );
8005936: 693b ldr r3, [r7, #16]
8005938: 2b00 cmp r3, #0
800593a: d116 bne.n 800596a <prvProcessExpiredTimer+0x8a>
__asm volatile
800593c: f04f 0350 mov.w r3, #80 @ 0x50
8005940: b672 cpsid i
8005942: f383 8811 msr BASEPRI, r3
8005946: f3bf 8f6f isb sy
800594a: f3bf 8f4f dsb sy
800594e: b662 cpsie i
8005950: 60fb str r3, [r7, #12]
}
8005952: bf00 nop
8005954: bf00 nop
8005956: e7fd b.n 8005954 <prvProcessExpiredTimer+0x74>
mtCOVERAGE_TEST_MARKER();
}
}
else
{
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
8005958: 697b ldr r3, [r7, #20]
800595a: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
800595e: f023 0301 bic.w r3, r3, #1
8005962: b2da uxtb r2, r3
8005964: 697b ldr r3, [r7, #20]
8005966: f883 2028 strb.w r2, [r3, #40] @ 0x28
mtCOVERAGE_TEST_MARKER();
}
/* Call the timer callback. */
pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
800596a: 697b ldr r3, [r7, #20]
800596c: 6a1b ldr r3, [r3, #32]
800596e: 6978 ldr r0, [r7, #20]
8005970: 4798 blx r3
}
8005972: bf00 nop
8005974: 3718 adds r7, #24
8005976: 46bd mov sp, r7
8005978: bd80 pop {r7, pc}
800597a: bf00 nop
800597c: 20001390 .word 0x20001390
08005980 <prvTimerTask>:
/*-----------------------------------------------------------*/
static portTASK_FUNCTION( prvTimerTask, pvParameters )
{
8005980: b580 push {r7, lr}
8005982: b084 sub sp, #16
8005984: af00 add r7, sp, #0
8005986: 6078 str r0, [r7, #4]
for( ;; )
{
/* Query the timers list to see if it contains any timers, and if so,
obtain the time at which the next timer will expire. */
xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
8005988: f107 0308 add.w r3, r7, #8
800598c: 4618 mov r0, r3
800598e: f000 f859 bl 8005a44 <prvGetNextExpireTime>
8005992: 60f8 str r0, [r7, #12]
/* If a timer has expired, process it. Otherwise, block this task
until either a timer does expire, or a command is received. */
prvProcessTimerOrBlockTask( xNextExpireTime, xListWasEmpty );
8005994: 68bb ldr r3, [r7, #8]
8005996: 4619 mov r1, r3
8005998: 68f8 ldr r0, [r7, #12]
800599a: f000 f805 bl 80059a8 <prvProcessTimerOrBlockTask>
/* Empty the command queue. */
prvProcessReceivedCommands();
800599e: f000 f8d7 bl 8005b50 <prvProcessReceivedCommands>
xNextExpireTime = prvGetNextExpireTime( &xListWasEmpty );
80059a2: bf00 nop
80059a4: e7f0 b.n 8005988 <prvTimerTask+0x8>
...
080059a8 <prvProcessTimerOrBlockTask>:
}
}
/*-----------------------------------------------------------*/
static void prvProcessTimerOrBlockTask( const TickType_t xNextExpireTime, BaseType_t xListWasEmpty )
{
80059a8: b580 push {r7, lr}
80059aa: b084 sub sp, #16
80059ac: af00 add r7, sp, #0
80059ae: 6078 str r0, [r7, #4]
80059b0: 6039 str r1, [r7, #0]
TickType_t xTimeNow;
BaseType_t xTimerListsWereSwitched;
vTaskSuspendAll();
80059b2: f7ff fa1b bl 8004dec <vTaskSuspendAll>
/* Obtain the time now to make an assessment as to whether the timer
has expired or not. If obtaining the time causes the lists to switch
then don't process this timer as any timers that remained in the list
when the lists were switched will have been processed within the
prvSampleTimeNow() function. */
xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
80059b6: f107 0308 add.w r3, r7, #8
80059ba: 4618 mov r0, r3
80059bc: f000 f866 bl 8005a8c <prvSampleTimeNow>
80059c0: 60f8 str r0, [r7, #12]
if( xTimerListsWereSwitched == pdFALSE )
80059c2: 68bb ldr r3, [r7, #8]
80059c4: 2b00 cmp r3, #0
80059c6: d130 bne.n 8005a2a <prvProcessTimerOrBlockTask+0x82>
{
/* The tick count has not overflowed, has the timer expired? */
if( ( xListWasEmpty == pdFALSE ) && ( xNextExpireTime <= xTimeNow ) )
80059c8: 683b ldr r3, [r7, #0]
80059ca: 2b00 cmp r3, #0
80059cc: d10a bne.n 80059e4 <prvProcessTimerOrBlockTask+0x3c>
80059ce: 687a ldr r2, [r7, #4]
80059d0: 68fb ldr r3, [r7, #12]
80059d2: 429a cmp r2, r3
80059d4: d806 bhi.n 80059e4 <prvProcessTimerOrBlockTask+0x3c>
{
( void ) xTaskResumeAll();
80059d6: f7ff fa17 bl 8004e08 <xTaskResumeAll>
prvProcessExpiredTimer( xNextExpireTime, xTimeNow );
80059da: 68f9 ldr r1, [r7, #12]
80059dc: 6878 ldr r0, [r7, #4]
80059de: f7ff ff7f bl 80058e0 <prvProcessExpiredTimer>
else
{
( void ) xTaskResumeAll();
}
}
}
80059e2: e024 b.n 8005a2e <prvProcessTimerOrBlockTask+0x86>
if( xListWasEmpty != pdFALSE )
80059e4: 683b ldr r3, [r7, #0]
80059e6: 2b00 cmp r3, #0
80059e8: d008 beq.n 80059fc <prvProcessTimerOrBlockTask+0x54>
xListWasEmpty = listLIST_IS_EMPTY( pxOverflowTimerList );
80059ea: 4b13 ldr r3, [pc, #76] @ (8005a38 <prvProcessTimerOrBlockTask+0x90>)
80059ec: 681b ldr r3, [r3, #0]
80059ee: 681b ldr r3, [r3, #0]
80059f0: 2b00 cmp r3, #0
80059f2: d101 bne.n 80059f8 <prvProcessTimerOrBlockTask+0x50>
80059f4: 2301 movs r3, #1
80059f6: e000 b.n 80059fa <prvProcessTimerOrBlockTask+0x52>
80059f8: 2300 movs r3, #0
80059fa: 603b str r3, [r7, #0]
vQueueWaitForMessageRestricted( xTimerQueue, ( xNextExpireTime - xTimeNow ), xListWasEmpty );
80059fc: 4b0f ldr r3, [pc, #60] @ (8005a3c <prvProcessTimerOrBlockTask+0x94>)
80059fe: 6818 ldr r0, [r3, #0]
8005a00: 687a ldr r2, [r7, #4]
8005a02: 68fb ldr r3, [r7, #12]
8005a04: 1ad3 subs r3, r2, r3
8005a06: 683a ldr r2, [r7, #0]
8005a08: 4619 mov r1, r3
8005a0a: f7fe ff69 bl 80048e0 <vQueueWaitForMessageRestricted>
if( xTaskResumeAll() == pdFALSE )
8005a0e: f7ff f9fb bl 8004e08 <xTaskResumeAll>
8005a12: 4603 mov r3, r0
8005a14: 2b00 cmp r3, #0
8005a16: d10a bne.n 8005a2e <prvProcessTimerOrBlockTask+0x86>
portYIELD_WITHIN_API();
8005a18: 4b09 ldr r3, [pc, #36] @ (8005a40 <prvProcessTimerOrBlockTask+0x98>)
8005a1a: f04f 5280 mov.w r2, #268435456 @ 0x10000000
8005a1e: 601a str r2, [r3, #0]
8005a20: f3bf 8f4f dsb sy
8005a24: f3bf 8f6f isb sy
}
8005a28: e001 b.n 8005a2e <prvProcessTimerOrBlockTask+0x86>
( void ) xTaskResumeAll();
8005a2a: f7ff f9ed bl 8004e08 <xTaskResumeAll>
}
8005a2e: bf00 nop
8005a30: 3710 adds r7, #16
8005a32: 46bd mov sp, r7
8005a34: bd80 pop {r7, pc}
8005a36: bf00 nop
8005a38: 20001394 .word 0x20001394
8005a3c: 20001398 .word 0x20001398
8005a40: e000ed04 .word 0xe000ed04
08005a44 <prvGetNextExpireTime>:
/*-----------------------------------------------------------*/
static TickType_t prvGetNextExpireTime( BaseType_t * const pxListWasEmpty )
{
8005a44: b480 push {r7}
8005a46: b085 sub sp, #20
8005a48: af00 add r7, sp, #0
8005a4a: 6078 str r0, [r7, #4]
the timer with the nearest expiry time will expire. If there are no
active timers then just set the next expire time to 0. That will cause
this task to unblock when the tick count overflows, at which point the
timer lists will be switched and the next expiry time can be
re-assessed. */
*pxListWasEmpty = listLIST_IS_EMPTY( pxCurrentTimerList );
8005a4c: 4b0e ldr r3, [pc, #56] @ (8005a88 <prvGetNextExpireTime+0x44>)
8005a4e: 681b ldr r3, [r3, #0]
8005a50: 681b ldr r3, [r3, #0]
8005a52: 2b00 cmp r3, #0
8005a54: d101 bne.n 8005a5a <prvGetNextExpireTime+0x16>
8005a56: 2201 movs r2, #1
8005a58: e000 b.n 8005a5c <prvGetNextExpireTime+0x18>
8005a5a: 2200 movs r2, #0
8005a5c: 687b ldr r3, [r7, #4]
8005a5e: 601a str r2, [r3, #0]
if( *pxListWasEmpty == pdFALSE )
8005a60: 687b ldr r3, [r7, #4]
8005a62: 681b ldr r3, [r3, #0]
8005a64: 2b00 cmp r3, #0
8005a66: d105 bne.n 8005a74 <prvGetNextExpireTime+0x30>
{
xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
8005a68: 4b07 ldr r3, [pc, #28] @ (8005a88 <prvGetNextExpireTime+0x44>)
8005a6a: 681b ldr r3, [r3, #0]
8005a6c: 68db ldr r3, [r3, #12]
8005a6e: 681b ldr r3, [r3, #0]
8005a70: 60fb str r3, [r7, #12]
8005a72: e001 b.n 8005a78 <prvGetNextExpireTime+0x34>
}
else
{
/* Ensure the task unblocks when the tick count rolls over. */
xNextExpireTime = ( TickType_t ) 0U;
8005a74: 2300 movs r3, #0
8005a76: 60fb str r3, [r7, #12]
}
return xNextExpireTime;
8005a78: 68fb ldr r3, [r7, #12]
}
8005a7a: 4618 mov r0, r3
8005a7c: 3714 adds r7, #20
8005a7e: 46bd mov sp, r7
8005a80: f85d 7b04 ldr.w r7, [sp], #4
8005a84: 4770 bx lr
8005a86: bf00 nop
8005a88: 20001390 .word 0x20001390
08005a8c <prvSampleTimeNow>:
/*-----------------------------------------------------------*/
static TickType_t prvSampleTimeNow( BaseType_t * const pxTimerListsWereSwitched )
{
8005a8c: b580 push {r7, lr}
8005a8e: b084 sub sp, #16
8005a90: af00 add r7, sp, #0
8005a92: 6078 str r0, [r7, #4]
TickType_t xTimeNow;
PRIVILEGED_DATA static TickType_t xLastTime = ( TickType_t ) 0U; /*lint !e956 Variable is only accessible to one task. */
xTimeNow = xTaskGetTickCount();
8005a94: f7ff fa58 bl 8004f48 <xTaskGetTickCount>
8005a98: 60f8 str r0, [r7, #12]
if( xTimeNow < xLastTime )
8005a9a: 4b0b ldr r3, [pc, #44] @ (8005ac8 <prvSampleTimeNow+0x3c>)
8005a9c: 681b ldr r3, [r3, #0]
8005a9e: 68fa ldr r2, [r7, #12]
8005aa0: 429a cmp r2, r3
8005aa2: d205 bcs.n 8005ab0 <prvSampleTimeNow+0x24>
{
prvSwitchTimerLists();
8005aa4: f000 f940 bl 8005d28 <prvSwitchTimerLists>
*pxTimerListsWereSwitched = pdTRUE;
8005aa8: 687b ldr r3, [r7, #4]
8005aaa: 2201 movs r2, #1
8005aac: 601a str r2, [r3, #0]
8005aae: e002 b.n 8005ab6 <prvSampleTimeNow+0x2a>
}
else
{
*pxTimerListsWereSwitched = pdFALSE;
8005ab0: 687b ldr r3, [r7, #4]
8005ab2: 2200 movs r2, #0
8005ab4: 601a str r2, [r3, #0]
}
xLastTime = xTimeNow;
8005ab6: 4a04 ldr r2, [pc, #16] @ (8005ac8 <prvSampleTimeNow+0x3c>)
8005ab8: 68fb ldr r3, [r7, #12]
8005aba: 6013 str r3, [r2, #0]
return xTimeNow;
8005abc: 68fb ldr r3, [r7, #12]
}
8005abe: 4618 mov r0, r3
8005ac0: 3710 adds r7, #16
8005ac2: 46bd mov sp, r7
8005ac4: bd80 pop {r7, pc}
8005ac6: bf00 nop
8005ac8: 200013a0 .word 0x200013a0
08005acc <prvInsertTimerInActiveList>:
/*-----------------------------------------------------------*/
static BaseType_t prvInsertTimerInActiveList( Timer_t * const pxTimer, const TickType_t xNextExpiryTime, const TickType_t xTimeNow, const TickType_t xCommandTime )
{
8005acc: b580 push {r7, lr}
8005ace: b086 sub sp, #24
8005ad0: af00 add r7, sp, #0
8005ad2: 60f8 str r0, [r7, #12]
8005ad4: 60b9 str r1, [r7, #8]
8005ad6: 607a str r2, [r7, #4]
8005ad8: 603b str r3, [r7, #0]
BaseType_t xProcessTimerNow = pdFALSE;
8005ada: 2300 movs r3, #0
8005adc: 617b str r3, [r7, #20]
listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xNextExpiryTime );
8005ade: 68fb ldr r3, [r7, #12]
8005ae0: 68ba ldr r2, [r7, #8]
8005ae2: 605a str r2, [r3, #4]
listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
8005ae4: 68fb ldr r3, [r7, #12]
8005ae6: 68fa ldr r2, [r7, #12]
8005ae8: 611a str r2, [r3, #16]
if( xNextExpiryTime <= xTimeNow )
8005aea: 68ba ldr r2, [r7, #8]
8005aec: 687b ldr r3, [r7, #4]
8005aee: 429a cmp r2, r3
8005af0: d812 bhi.n 8005b18 <prvInsertTimerInActiveList+0x4c>
{
/* Has the expiry time elapsed between the command to start/reset a
timer was issued, and the time the command was processed? */
if( ( ( TickType_t ) ( xTimeNow - xCommandTime ) ) >= pxTimer->xTimerPeriodInTicks ) /*lint !e961 MISRA exception as the casts are only redundant for some ports. */
8005af2: 687a ldr r2, [r7, #4]
8005af4: 683b ldr r3, [r7, #0]
8005af6: 1ad2 subs r2, r2, r3
8005af8: 68fb ldr r3, [r7, #12]
8005afa: 699b ldr r3, [r3, #24]
8005afc: 429a cmp r2, r3
8005afe: d302 bcc.n 8005b06 <prvInsertTimerInActiveList+0x3a>
{
/* The time between a command being issued and the command being
processed actually exceeds the timers period. */
xProcessTimerNow = pdTRUE;
8005b00: 2301 movs r3, #1
8005b02: 617b str r3, [r7, #20]
8005b04: e01b b.n 8005b3e <prvInsertTimerInActiveList+0x72>
}
else
{
vListInsert( pxOverflowTimerList, &( pxTimer->xTimerListItem ) );
8005b06: 4b10 ldr r3, [pc, #64] @ (8005b48 <prvInsertTimerInActiveList+0x7c>)
8005b08: 681a ldr r2, [r3, #0]
8005b0a: 68fb ldr r3, [r7, #12]
8005b0c: 3304 adds r3, #4
8005b0e: 4619 mov r1, r3
8005b10: 4610 mov r0, r2
8005b12: f7fe f99c bl 8003e4e <vListInsert>
8005b16: e012 b.n 8005b3e <prvInsertTimerInActiveList+0x72>
}
}
else
{
if( ( xTimeNow < xCommandTime ) && ( xNextExpiryTime >= xCommandTime ) )
8005b18: 687a ldr r2, [r7, #4]
8005b1a: 683b ldr r3, [r7, #0]
8005b1c: 429a cmp r2, r3
8005b1e: d206 bcs.n 8005b2e <prvInsertTimerInActiveList+0x62>
8005b20: 68ba ldr r2, [r7, #8]
8005b22: 683b ldr r3, [r7, #0]
8005b24: 429a cmp r2, r3
8005b26: d302 bcc.n 8005b2e <prvInsertTimerInActiveList+0x62>
{
/* If, since the command was issued, the tick count has overflowed
but the expiry time has not, then the timer must have already passed
its expiry time and should be processed immediately. */
xProcessTimerNow = pdTRUE;
8005b28: 2301 movs r3, #1
8005b2a: 617b str r3, [r7, #20]
8005b2c: e007 b.n 8005b3e <prvInsertTimerInActiveList+0x72>
}
else
{
vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
8005b2e: 4b07 ldr r3, [pc, #28] @ (8005b4c <prvInsertTimerInActiveList+0x80>)
8005b30: 681a ldr r2, [r3, #0]
8005b32: 68fb ldr r3, [r7, #12]
8005b34: 3304 adds r3, #4
8005b36: 4619 mov r1, r3
8005b38: 4610 mov r0, r2
8005b3a: f7fe f988 bl 8003e4e <vListInsert>
}
}
return xProcessTimerNow;
8005b3e: 697b ldr r3, [r7, #20]
}
8005b40: 4618 mov r0, r3
8005b42: 3718 adds r7, #24
8005b44: 46bd mov sp, r7
8005b46: bd80 pop {r7, pc}
8005b48: 20001394 .word 0x20001394
8005b4c: 20001390 .word 0x20001390
08005b50 <prvProcessReceivedCommands>:
/*-----------------------------------------------------------*/
static void prvProcessReceivedCommands( void )
{
8005b50: b580 push {r7, lr}
8005b52: b08e sub sp, #56 @ 0x38
8005b54: af02 add r7, sp, #8
DaemonTaskMessage_t xMessage;
Timer_t *pxTimer;
BaseType_t xTimerListsWereSwitched, xResult;
TickType_t xTimeNow;
while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */
8005b56: e0d4 b.n 8005d02 <prvProcessReceivedCommands+0x1b2>
{
#if ( INCLUDE_xTimerPendFunctionCall == 1 )
{
/* Negative commands are pended function calls rather than timer
commands. */
if( xMessage.xMessageID < ( BaseType_t ) 0 )
8005b58: 687b ldr r3, [r7, #4]
8005b5a: 2b00 cmp r3, #0
8005b5c: da1b bge.n 8005b96 <prvProcessReceivedCommands+0x46>
{
const CallbackParameters_t * const pxCallback = &( xMessage.u.xCallbackParameters );
8005b5e: 1d3b adds r3, r7, #4
8005b60: 3304 adds r3, #4
8005b62: 62fb str r3, [r7, #44] @ 0x2c
/* The timer uses the xCallbackParameters member to request a
callback be executed. Check the callback is not NULL. */
configASSERT( pxCallback );
8005b64: 6afb ldr r3, [r7, #44] @ 0x2c
8005b66: 2b00 cmp r3, #0
8005b68: d10d bne.n 8005b86 <prvProcessReceivedCommands+0x36>
__asm volatile
8005b6a: f04f 0350 mov.w r3, #80 @ 0x50
8005b6e: b672 cpsid i
8005b70: f383 8811 msr BASEPRI, r3
8005b74: f3bf 8f6f isb sy
8005b78: f3bf 8f4f dsb sy
8005b7c: b662 cpsie i
8005b7e: 61fb str r3, [r7, #28]
}
8005b80: bf00 nop
8005b82: bf00 nop
8005b84: e7fd b.n 8005b82 <prvProcessReceivedCommands+0x32>
/* Call the function. */
pxCallback->pxCallbackFunction( pxCallback->pvParameter1, pxCallback->ulParameter2 );
8005b86: 6afb ldr r3, [r7, #44] @ 0x2c
8005b88: 681b ldr r3, [r3, #0]
8005b8a: 6afa ldr r2, [r7, #44] @ 0x2c
8005b8c: 6850 ldr r0, [r2, #4]
8005b8e: 6afa ldr r2, [r7, #44] @ 0x2c
8005b90: 6892 ldr r2, [r2, #8]
8005b92: 4611 mov r1, r2
8005b94: 4798 blx r3
}
#endif /* INCLUDE_xTimerPendFunctionCall */
/* Commands that are positive are timer commands rather than pended
function calls. */
if( xMessage.xMessageID >= ( BaseType_t ) 0 )
8005b96: 687b ldr r3, [r7, #4]
8005b98: 2b00 cmp r3, #0
8005b9a: f2c0 80b2 blt.w 8005d02 <prvProcessReceivedCommands+0x1b2>
{
/* The messages uses the xTimerParameters member to work on a
software timer. */
pxTimer = xMessage.u.xTimerParameters.pxTimer;
8005b9e: 68fb ldr r3, [r7, #12]
8005ba0: 62bb str r3, [r7, #40] @ 0x28
if( listIS_CONTAINED_WITHIN( NULL, &( pxTimer->xTimerListItem ) ) == pdFALSE ) /*lint !e961. The cast is only redundant when NULL is passed into the macro. */
8005ba2: 6abb ldr r3, [r7, #40] @ 0x28
8005ba4: 695b ldr r3, [r3, #20]
8005ba6: 2b00 cmp r3, #0
8005ba8: d004 beq.n 8005bb4 <prvProcessReceivedCommands+0x64>
{
/* The timer is in a list, remove it. */
( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
8005baa: 6abb ldr r3, [r7, #40] @ 0x28
8005bac: 3304 adds r3, #4
8005bae: 4618 mov r0, r3
8005bb0: f7fe f986 bl 8003ec0 <uxListRemove>
it must be present in the function call. prvSampleTimeNow() must be
called after the message is received from xTimerQueue so there is no
possibility of a higher priority task adding a message to the message
queue with a time that is ahead of the timer daemon task (because it
pre-empted the timer daemon task after the xTimeNow value was set). */
xTimeNow = prvSampleTimeNow( &xTimerListsWereSwitched );
8005bb4: 463b mov r3, r7
8005bb6: 4618 mov r0, r3
8005bb8: f7ff ff68 bl 8005a8c <prvSampleTimeNow>
8005bbc: 6278 str r0, [r7, #36] @ 0x24
switch( xMessage.xMessageID )
8005bbe: 687b ldr r3, [r7, #4]
8005bc0: 2b09 cmp r3, #9
8005bc2: f200 809b bhi.w 8005cfc <prvProcessReceivedCommands+0x1ac>
8005bc6: a201 add r2, pc, #4 @ (adr r2, 8005bcc <prvProcessReceivedCommands+0x7c>)
8005bc8: f852 f023 ldr.w pc, [r2, r3, lsl #2]
8005bcc: 08005bf5 .word 0x08005bf5
8005bd0: 08005bf5 .word 0x08005bf5
8005bd4: 08005bf5 .word 0x08005bf5
8005bd8: 08005c6f .word 0x08005c6f
8005bdc: 08005c83 .word 0x08005c83
8005be0: 08005cd3 .word 0x08005cd3
8005be4: 08005bf5 .word 0x08005bf5
8005be8: 08005bf5 .word 0x08005bf5
8005bec: 08005c6f .word 0x08005c6f
8005bf0: 08005c83 .word 0x08005c83
case tmrCOMMAND_START_FROM_ISR :
case tmrCOMMAND_RESET :
case tmrCOMMAND_RESET_FROM_ISR :
case tmrCOMMAND_START_DONT_TRACE :
/* Start or restart a timer. */
pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
8005bf4: 6abb ldr r3, [r7, #40] @ 0x28
8005bf6: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
8005bfa: f043 0301 orr.w r3, r3, #1
8005bfe: b2da uxtb r2, r3
8005c00: 6abb ldr r3, [r7, #40] @ 0x28
8005c02: f883 2028 strb.w r2, [r3, #40] @ 0x28
if( prvInsertTimerInActiveList( pxTimer, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, xTimeNow, xMessage.u.xTimerParameters.xMessageValue ) != pdFALSE )
8005c06: 68ba ldr r2, [r7, #8]
8005c08: 6abb ldr r3, [r7, #40] @ 0x28
8005c0a: 699b ldr r3, [r3, #24]
8005c0c: 18d1 adds r1, r2, r3
8005c0e: 68bb ldr r3, [r7, #8]
8005c10: 6a7a ldr r2, [r7, #36] @ 0x24
8005c12: 6ab8 ldr r0, [r7, #40] @ 0x28
8005c14: f7ff ff5a bl 8005acc <prvInsertTimerInActiveList>
8005c18: 4603 mov r3, r0
8005c1a: 2b00 cmp r3, #0
8005c1c: d070 beq.n 8005d00 <prvProcessReceivedCommands+0x1b0>
{
/* The timer expired before it was added to the active
timer list. Process it now. */
pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
8005c1e: 6abb ldr r3, [r7, #40] @ 0x28
8005c20: 6a1b ldr r3, [r3, #32]
8005c22: 6ab8 ldr r0, [r7, #40] @ 0x28
8005c24: 4798 blx r3
traceTIMER_EXPIRED( pxTimer );
if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
8005c26: 6abb ldr r3, [r7, #40] @ 0x28
8005c28: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
8005c2c: f003 0304 and.w r3, r3, #4
8005c30: 2b00 cmp r3, #0
8005c32: d065 beq.n 8005d00 <prvProcessReceivedCommands+0x1b0>
{
xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xMessage.u.xTimerParameters.xMessageValue + pxTimer->xTimerPeriodInTicks, NULL, tmrNO_DELAY );
8005c34: 68ba ldr r2, [r7, #8]
8005c36: 6abb ldr r3, [r7, #40] @ 0x28
8005c38: 699b ldr r3, [r3, #24]
8005c3a: 441a add r2, r3
8005c3c: 2300 movs r3, #0
8005c3e: 9300 str r3, [sp, #0]
8005c40: 2300 movs r3, #0
8005c42: 2100 movs r1, #0
8005c44: 6ab8 ldr r0, [r7, #40] @ 0x28
8005c46: f7ff fdfb bl 8005840 <xTimerGenericCommand>
8005c4a: 6238 str r0, [r7, #32]
configASSERT( xResult );
8005c4c: 6a3b ldr r3, [r7, #32]
8005c4e: 2b00 cmp r3, #0
8005c50: d156 bne.n 8005d00 <prvProcessReceivedCommands+0x1b0>
__asm volatile
8005c52: f04f 0350 mov.w r3, #80 @ 0x50
8005c56: b672 cpsid i
8005c58: f383 8811 msr BASEPRI, r3
8005c5c: f3bf 8f6f isb sy
8005c60: f3bf 8f4f dsb sy
8005c64: b662 cpsie i
8005c66: 61bb str r3, [r7, #24]
}
8005c68: bf00 nop
8005c6a: bf00 nop
8005c6c: e7fd b.n 8005c6a <prvProcessReceivedCommands+0x11a>
break;
case tmrCOMMAND_STOP :
case tmrCOMMAND_STOP_FROM_ISR :
/* The timer has already been removed from the active list. */
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
8005c6e: 6abb ldr r3, [r7, #40] @ 0x28
8005c70: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
8005c74: f023 0301 bic.w r3, r3, #1
8005c78: b2da uxtb r2, r3
8005c7a: 6abb ldr r3, [r7, #40] @ 0x28
8005c7c: f883 2028 strb.w r2, [r3, #40] @ 0x28
break;
8005c80: e03f b.n 8005d02 <prvProcessReceivedCommands+0x1b2>
case tmrCOMMAND_CHANGE_PERIOD :
case tmrCOMMAND_CHANGE_PERIOD_FROM_ISR :
pxTimer->ucStatus |= tmrSTATUS_IS_ACTIVE;
8005c82: 6abb ldr r3, [r7, #40] @ 0x28
8005c84: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
8005c88: f043 0301 orr.w r3, r3, #1
8005c8c: b2da uxtb r2, r3
8005c8e: 6abb ldr r3, [r7, #40] @ 0x28
8005c90: f883 2028 strb.w r2, [r3, #40] @ 0x28
pxTimer->xTimerPeriodInTicks = xMessage.u.xTimerParameters.xMessageValue;
8005c94: 68ba ldr r2, [r7, #8]
8005c96: 6abb ldr r3, [r7, #40] @ 0x28
8005c98: 619a str r2, [r3, #24]
configASSERT( ( pxTimer->xTimerPeriodInTicks > 0 ) );
8005c9a: 6abb ldr r3, [r7, #40] @ 0x28
8005c9c: 699b ldr r3, [r3, #24]
8005c9e: 2b00 cmp r3, #0
8005ca0: d10d bne.n 8005cbe <prvProcessReceivedCommands+0x16e>
__asm volatile
8005ca2: f04f 0350 mov.w r3, #80 @ 0x50
8005ca6: b672 cpsid i
8005ca8: f383 8811 msr BASEPRI, r3
8005cac: f3bf 8f6f isb sy
8005cb0: f3bf 8f4f dsb sy
8005cb4: b662 cpsie i
8005cb6: 617b str r3, [r7, #20]
}
8005cb8: bf00 nop
8005cba: bf00 nop
8005cbc: e7fd b.n 8005cba <prvProcessReceivedCommands+0x16a>
be longer or shorter than the old one. The command time is
therefore set to the current time, and as the period cannot
be zero the next expiry time can only be in the future,
meaning (unlike for the xTimerStart() case above) there is
no fail case that needs to be handled here. */
( void ) prvInsertTimerInActiveList( pxTimer, ( xTimeNow + pxTimer->xTimerPeriodInTicks ), xTimeNow, xTimeNow );
8005cbe: 6abb ldr r3, [r7, #40] @ 0x28
8005cc0: 699a ldr r2, [r3, #24]
8005cc2: 6a7b ldr r3, [r7, #36] @ 0x24
8005cc4: 18d1 adds r1, r2, r3
8005cc6: 6a7b ldr r3, [r7, #36] @ 0x24
8005cc8: 6a7a ldr r2, [r7, #36] @ 0x24
8005cca: 6ab8 ldr r0, [r7, #40] @ 0x28
8005ccc: f7ff fefe bl 8005acc <prvInsertTimerInActiveList>
break;
8005cd0: e017 b.n 8005d02 <prvProcessReceivedCommands+0x1b2>
#if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
{
/* The timer has already been removed from the active list,
just free up the memory if the memory was dynamically
allocated. */
if( ( pxTimer->ucStatus & tmrSTATUS_IS_STATICALLY_ALLOCATED ) == ( uint8_t ) 0 )
8005cd2: 6abb ldr r3, [r7, #40] @ 0x28
8005cd4: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
8005cd8: f003 0302 and.w r3, r3, #2
8005cdc: 2b00 cmp r3, #0
8005cde: d103 bne.n 8005ce8 <prvProcessReceivedCommands+0x198>
{
vPortFree( pxTimer );
8005ce0: 6ab8 ldr r0, [r7, #40] @ 0x28
8005ce2: f000 fbd7 bl 8006494 <vPortFree>
no need to free the memory - just mark the timer as
"not active". */
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
}
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
break;
8005ce6: e00c b.n 8005d02 <prvProcessReceivedCommands+0x1b2>
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE;
8005ce8: 6abb ldr r3, [r7, #40] @ 0x28
8005cea: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
8005cee: f023 0301 bic.w r3, r3, #1
8005cf2: b2da uxtb r2, r3
8005cf4: 6abb ldr r3, [r7, #40] @ 0x28
8005cf6: f883 2028 strb.w r2, [r3, #40] @ 0x28
break;
8005cfa: e002 b.n 8005d02 <prvProcessReceivedCommands+0x1b2>
default :
/* Don't expect to get here. */
break;
8005cfc: bf00 nop
8005cfe: e000 b.n 8005d02 <prvProcessReceivedCommands+0x1b2>
break;
8005d00: bf00 nop
while( xQueueReceive( xTimerQueue, &xMessage, tmrNO_DELAY ) != pdFAIL ) /*lint !e603 xMessage does not have to be initialised as it is passed out, not in, and it is not used unless xQueueReceive() returns pdTRUE. */
8005d02: 4b08 ldr r3, [pc, #32] @ (8005d24 <prvProcessReceivedCommands+0x1d4>)
8005d04: 681b ldr r3, [r3, #0]
8005d06: 1d39 adds r1, r7, #4
8005d08: 2200 movs r2, #0
8005d0a: 4618 mov r0, r3
8005d0c: f7fe fbc6 bl 800449c <xQueueReceive>
8005d10: 4603 mov r3, r0
8005d12: 2b00 cmp r3, #0
8005d14: f47f af20 bne.w 8005b58 <prvProcessReceivedCommands+0x8>
}
}
}
}
8005d18: bf00 nop
8005d1a: bf00 nop
8005d1c: 3730 adds r7, #48 @ 0x30
8005d1e: 46bd mov sp, r7
8005d20: bd80 pop {r7, pc}
8005d22: bf00 nop
8005d24: 20001398 .word 0x20001398
08005d28 <prvSwitchTimerLists>:
/*-----------------------------------------------------------*/
static void prvSwitchTimerLists( void )
{
8005d28: b580 push {r7, lr}
8005d2a: b088 sub sp, #32
8005d2c: af02 add r7, sp, #8
/* The tick count has overflowed. The timer lists must be switched.
If there are any timers still referenced from the current timer list
then they must have expired and should be processed before the lists
are switched. */
while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
8005d2e: e04b b.n 8005dc8 <prvSwitchTimerLists+0xa0>
{
xNextExpireTime = listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxCurrentTimerList );
8005d30: 4b2f ldr r3, [pc, #188] @ (8005df0 <prvSwitchTimerLists+0xc8>)
8005d32: 681b ldr r3, [r3, #0]
8005d34: 68db ldr r3, [r3, #12]
8005d36: 681b ldr r3, [r3, #0]
8005d38: 613b str r3, [r7, #16]
/* Remove the timer from the list. */
pxTimer = ( Timer_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxCurrentTimerList ); /*lint !e9087 !e9079 void * is used as this macro is used with tasks and co-routines too. Alignment is known to be fine as the type of the pointer stored and retrieved is the same. */
8005d3a: 4b2d ldr r3, [pc, #180] @ (8005df0 <prvSwitchTimerLists+0xc8>)
8005d3c: 681b ldr r3, [r3, #0]
8005d3e: 68db ldr r3, [r3, #12]
8005d40: 68db ldr r3, [r3, #12]
8005d42: 60fb str r3, [r7, #12]
( void ) uxListRemove( &( pxTimer->xTimerListItem ) );
8005d44: 68fb ldr r3, [r7, #12]
8005d46: 3304 adds r3, #4
8005d48: 4618 mov r0, r3
8005d4a: f7fe f8b9 bl 8003ec0 <uxListRemove>
traceTIMER_EXPIRED( pxTimer );
/* Execute its callback, then send a command to restart the timer if
it is an auto-reload timer. It cannot be restarted here as the lists
have not yet been switched. */
pxTimer->pxCallbackFunction( ( TimerHandle_t ) pxTimer );
8005d4e: 68fb ldr r3, [r7, #12]
8005d50: 6a1b ldr r3, [r3, #32]
8005d52: 68f8 ldr r0, [r7, #12]
8005d54: 4798 blx r3
if( ( pxTimer->ucStatus & tmrSTATUS_IS_AUTORELOAD ) != 0 )
8005d56: 68fb ldr r3, [r7, #12]
8005d58: f893 3028 ldrb.w r3, [r3, #40] @ 0x28
8005d5c: f003 0304 and.w r3, r3, #4
8005d60: 2b00 cmp r3, #0
8005d62: d031 beq.n 8005dc8 <prvSwitchTimerLists+0xa0>
the timer going into the same timer list then it has already expired
and the timer should be re-inserted into the current list so it is
processed again within this loop. Otherwise a command should be sent
to restart the timer to ensure it is only inserted into a list after
the lists have been swapped. */
xReloadTime = ( xNextExpireTime + pxTimer->xTimerPeriodInTicks );
8005d64: 68fb ldr r3, [r7, #12]
8005d66: 699b ldr r3, [r3, #24]
8005d68: 693a ldr r2, [r7, #16]
8005d6a: 4413 add r3, r2
8005d6c: 60bb str r3, [r7, #8]
if( xReloadTime > xNextExpireTime )
8005d6e: 68ba ldr r2, [r7, #8]
8005d70: 693b ldr r3, [r7, #16]
8005d72: 429a cmp r2, r3
8005d74: d90e bls.n 8005d94 <prvSwitchTimerLists+0x6c>
{
listSET_LIST_ITEM_VALUE( &( pxTimer->xTimerListItem ), xReloadTime );
8005d76: 68fb ldr r3, [r7, #12]
8005d78: 68ba ldr r2, [r7, #8]
8005d7a: 605a str r2, [r3, #4]
listSET_LIST_ITEM_OWNER( &( pxTimer->xTimerListItem ), pxTimer );
8005d7c: 68fb ldr r3, [r7, #12]
8005d7e: 68fa ldr r2, [r7, #12]
8005d80: 611a str r2, [r3, #16]
vListInsert( pxCurrentTimerList, &( pxTimer->xTimerListItem ) );
8005d82: 4b1b ldr r3, [pc, #108] @ (8005df0 <prvSwitchTimerLists+0xc8>)
8005d84: 681a ldr r2, [r3, #0]
8005d86: 68fb ldr r3, [r7, #12]
8005d88: 3304 adds r3, #4
8005d8a: 4619 mov r1, r3
8005d8c: 4610 mov r0, r2
8005d8e: f7fe f85e bl 8003e4e <vListInsert>
8005d92: e019 b.n 8005dc8 <prvSwitchTimerLists+0xa0>
}
else
{
xResult = xTimerGenericCommand( pxTimer, tmrCOMMAND_START_DONT_TRACE, xNextExpireTime, NULL, tmrNO_DELAY );
8005d94: 2300 movs r3, #0
8005d96: 9300 str r3, [sp, #0]
8005d98: 2300 movs r3, #0
8005d9a: 693a ldr r2, [r7, #16]
8005d9c: 2100 movs r1, #0
8005d9e: 68f8 ldr r0, [r7, #12]
8005da0: f7ff fd4e bl 8005840 <xTimerGenericCommand>
8005da4: 6078 str r0, [r7, #4]
configASSERT( xResult );
8005da6: 687b ldr r3, [r7, #4]
8005da8: 2b00 cmp r3, #0
8005daa: d10d bne.n 8005dc8 <prvSwitchTimerLists+0xa0>
__asm volatile
8005dac: f04f 0350 mov.w r3, #80 @ 0x50
8005db0: b672 cpsid i
8005db2: f383 8811 msr BASEPRI, r3
8005db6: f3bf 8f6f isb sy
8005dba: f3bf 8f4f dsb sy
8005dbe: b662 cpsie i
8005dc0: 603b str r3, [r7, #0]
}
8005dc2: bf00 nop
8005dc4: bf00 nop
8005dc6: e7fd b.n 8005dc4 <prvSwitchTimerLists+0x9c>
while( listLIST_IS_EMPTY( pxCurrentTimerList ) == pdFALSE )
8005dc8: 4b09 ldr r3, [pc, #36] @ (8005df0 <prvSwitchTimerLists+0xc8>)
8005dca: 681b ldr r3, [r3, #0]
8005dcc: 681b ldr r3, [r3, #0]
8005dce: 2b00 cmp r3, #0
8005dd0: d1ae bne.n 8005d30 <prvSwitchTimerLists+0x8>
{
mtCOVERAGE_TEST_MARKER();
}
}
pxTemp = pxCurrentTimerList;
8005dd2: 4b07 ldr r3, [pc, #28] @ (8005df0 <prvSwitchTimerLists+0xc8>)
8005dd4: 681b ldr r3, [r3, #0]
8005dd6: 617b str r3, [r7, #20]
pxCurrentTimerList = pxOverflowTimerList;
8005dd8: 4b06 ldr r3, [pc, #24] @ (8005df4 <prvSwitchTimerLists+0xcc>)
8005dda: 681b ldr r3, [r3, #0]
8005ddc: 4a04 ldr r2, [pc, #16] @ (8005df0 <prvSwitchTimerLists+0xc8>)
8005dde: 6013 str r3, [r2, #0]
pxOverflowTimerList = pxTemp;
8005de0: 4a04 ldr r2, [pc, #16] @ (8005df4 <prvSwitchTimerLists+0xcc>)
8005de2: 697b ldr r3, [r7, #20]
8005de4: 6013 str r3, [r2, #0]
}
8005de6: bf00 nop
8005de8: 3718 adds r7, #24
8005dea: 46bd mov sp, r7
8005dec: bd80 pop {r7, pc}
8005dee: bf00 nop
8005df0: 20001390 .word 0x20001390
8005df4: 20001394 .word 0x20001394
08005df8 <prvCheckForValidListAndQueue>:
/*-----------------------------------------------------------*/
static void prvCheckForValidListAndQueue( void )
{
8005df8: b580 push {r7, lr}
8005dfa: b082 sub sp, #8
8005dfc: af02 add r7, sp, #8
/* Check that the list from which active timers are referenced, and the
queue used to communicate with the timer service, have been
initialised. */
taskENTER_CRITICAL();
8005dfe: f000 f94d bl 800609c <vPortEnterCritical>
{
if( xTimerQueue == NULL )
8005e02: 4b15 ldr r3, [pc, #84] @ (8005e58 <prvCheckForValidListAndQueue+0x60>)
8005e04: 681b ldr r3, [r3, #0]
8005e06: 2b00 cmp r3, #0
8005e08: d120 bne.n 8005e4c <prvCheckForValidListAndQueue+0x54>
{
vListInitialise( &xActiveTimerList1 );
8005e0a: 4814 ldr r0, [pc, #80] @ (8005e5c <prvCheckForValidListAndQueue+0x64>)
8005e0c: f7fd ffce bl 8003dac <vListInitialise>
vListInitialise( &xActiveTimerList2 );
8005e10: 4813 ldr r0, [pc, #76] @ (8005e60 <prvCheckForValidListAndQueue+0x68>)
8005e12: f7fd ffcb bl 8003dac <vListInitialise>
pxCurrentTimerList = &xActiveTimerList1;
8005e16: 4b13 ldr r3, [pc, #76] @ (8005e64 <prvCheckForValidListAndQueue+0x6c>)
8005e18: 4a10 ldr r2, [pc, #64] @ (8005e5c <prvCheckForValidListAndQueue+0x64>)
8005e1a: 601a str r2, [r3, #0]
pxOverflowTimerList = &xActiveTimerList2;
8005e1c: 4b12 ldr r3, [pc, #72] @ (8005e68 <prvCheckForValidListAndQueue+0x70>)
8005e1e: 4a10 ldr r2, [pc, #64] @ (8005e60 <prvCheckForValidListAndQueue+0x68>)
8005e20: 601a str r2, [r3, #0]
/* The timer queue is allocated statically in case
configSUPPORT_DYNAMIC_ALLOCATION is 0. */
static StaticQueue_t xStaticTimerQueue; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
static uint8_t ucStaticTimerQueueStorage[ ( size_t ) configTIMER_QUEUE_LENGTH * sizeof( DaemonTaskMessage_t ) ]; /*lint !e956 Ok to declare in this manner to prevent additional conditional compilation guards in other locations. */
xTimerQueue = xQueueCreateStatic( ( UBaseType_t ) configTIMER_QUEUE_LENGTH, ( UBaseType_t ) sizeof( DaemonTaskMessage_t ), &( ucStaticTimerQueueStorage[ 0 ] ), &xStaticTimerQueue );
8005e22: 2300 movs r3, #0
8005e24: 9300 str r3, [sp, #0]
8005e26: 4b11 ldr r3, [pc, #68] @ (8005e6c <prvCheckForValidListAndQueue+0x74>)
8005e28: 4a11 ldr r2, [pc, #68] @ (8005e70 <prvCheckForValidListAndQueue+0x78>)
8005e2a: 2110 movs r1, #16
8005e2c: 200a movs r0, #10
8005e2e: f7fe f8dd bl 8003fec <xQueueGenericCreateStatic>
8005e32: 4603 mov r3, r0
8005e34: 4a08 ldr r2, [pc, #32] @ (8005e58 <prvCheckForValidListAndQueue+0x60>)
8005e36: 6013 str r3, [r2, #0]
}
#endif
#if ( configQUEUE_REGISTRY_SIZE > 0 )
{
if( xTimerQueue != NULL )
8005e38: 4b07 ldr r3, [pc, #28] @ (8005e58 <prvCheckForValidListAndQueue+0x60>)
8005e3a: 681b ldr r3, [r3, #0]
8005e3c: 2b00 cmp r3, #0
8005e3e: d005 beq.n 8005e4c <prvCheckForValidListAndQueue+0x54>
{
vQueueAddToRegistry( xTimerQueue, "TmrQ" );
8005e40: 4b05 ldr r3, [pc, #20] @ (8005e58 <prvCheckForValidListAndQueue+0x60>)
8005e42: 681b ldr r3, [r3, #0]
8005e44: 490b ldr r1, [pc, #44] @ (8005e74 <prvCheckForValidListAndQueue+0x7c>)
8005e46: 4618 mov r0, r3
8005e48: f7fe fd20 bl 800488c <vQueueAddToRegistry>
else
{
mtCOVERAGE_TEST_MARKER();
}
}
taskEXIT_CRITICAL();
8005e4c: f000 f95c bl 8006108 <vPortExitCritical>
}
8005e50: bf00 nop
8005e52: 46bd mov sp, r7
8005e54: bd80 pop {r7, pc}
8005e56: bf00 nop
8005e58: 20001398 .word 0x20001398
8005e5c: 20001368 .word 0x20001368
8005e60: 2000137c .word 0x2000137c
8005e64: 20001390 .word 0x20001390
8005e68: 20001394 .word 0x20001394
8005e6c: 20001444 .word 0x20001444
8005e70: 200013a4 .word 0x200013a4
8005e74: 080075b8 .word 0x080075b8
08005e78 <pxPortInitialiseStack>:
/*
* See header file for description.
*/
StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
{
8005e78: b480 push {r7}
8005e7a: b085 sub sp, #20
8005e7c: af00 add r7, sp, #0
8005e7e: 60f8 str r0, [r7, #12]
8005e80: 60b9 str r1, [r7, #8]
8005e82: 607a str r2, [r7, #4]
/* Simulate the stack frame as it would be created by a context switch
interrupt. */
/* Offset added to account for the way the MCU uses the stack on entry/exit
of interrupts, and to ensure alignment. */
pxTopOfStack--;
8005e84: 68fb ldr r3, [r7, #12]
8005e86: 3b04 subs r3, #4
8005e88: 60fb str r3, [r7, #12]
*pxTopOfStack = portINITIAL_XPSR; /* xPSR */
8005e8a: 68fb ldr r3, [r7, #12]
8005e8c: f04f 7280 mov.w r2, #16777216 @ 0x1000000
8005e90: 601a str r2, [r3, #0]
pxTopOfStack--;
8005e92: 68fb ldr r3, [r7, #12]
8005e94: 3b04 subs r3, #4
8005e96: 60fb str r3, [r7, #12]
*pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
8005e98: 68bb ldr r3, [r7, #8]
8005e9a: f023 0201 bic.w r2, r3, #1
8005e9e: 68fb ldr r3, [r7, #12]
8005ea0: 601a str r2, [r3, #0]
pxTopOfStack--;
8005ea2: 68fb ldr r3, [r7, #12]
8005ea4: 3b04 subs r3, #4
8005ea6: 60fb str r3, [r7, #12]
*pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
8005ea8: 4a0c ldr r2, [pc, #48] @ (8005edc <pxPortInitialiseStack+0x64>)
8005eaa: 68fb ldr r3, [r7, #12]
8005eac: 601a str r2, [r3, #0]
/* Save code space by skipping register initialisation. */
pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
8005eae: 68fb ldr r3, [r7, #12]
8005eb0: 3b14 subs r3, #20
8005eb2: 60fb str r3, [r7, #12]
*pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
8005eb4: 687a ldr r2, [r7, #4]
8005eb6: 68fb ldr r3, [r7, #12]
8005eb8: 601a str r2, [r3, #0]
/* A save method is being used that requires each task to maintain its
own exec return value. */
pxTopOfStack--;
8005eba: 68fb ldr r3, [r7, #12]
8005ebc: 3b04 subs r3, #4
8005ebe: 60fb str r3, [r7, #12]
*pxTopOfStack = portINITIAL_EXC_RETURN;
8005ec0: 68fb ldr r3, [r7, #12]
8005ec2: f06f 0202 mvn.w r2, #2
8005ec6: 601a str r2, [r3, #0]
pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
8005ec8: 68fb ldr r3, [r7, #12]
8005eca: 3b20 subs r3, #32
8005ecc: 60fb str r3, [r7, #12]
return pxTopOfStack;
8005ece: 68fb ldr r3, [r7, #12]
}
8005ed0: 4618 mov r0, r3
8005ed2: 3714 adds r7, #20
8005ed4: 46bd mov sp, r7
8005ed6: f85d 7b04 ldr.w r7, [sp], #4
8005eda: 4770 bx lr
8005edc: 08005ee1 .word 0x08005ee1
08005ee0 <prvTaskExitError>:
/*-----------------------------------------------------------*/
static void prvTaskExitError( void )
{
8005ee0: b480 push {r7}
8005ee2: b085 sub sp, #20
8005ee4: af00 add r7, sp, #0
volatile uint32_t ulDummy = 0;
8005ee6: 2300 movs r3, #0
8005ee8: 607b str r3, [r7, #4]
its caller as there is nothing to return to. If a task wants to exit it
should instead call vTaskDelete( NULL ).
Artificially force an assert() to be triggered if configASSERT() is
defined, then stop here so application writers can catch the error. */
configASSERT( uxCriticalNesting == ~0UL );
8005eea: 4b15 ldr r3, [pc, #84] @ (8005f40 <prvTaskExitError+0x60>)
8005eec: 681b ldr r3, [r3, #0]
8005eee: f1b3 3fff cmp.w r3, #4294967295 @ 0xffffffff
8005ef2: d00d beq.n 8005f10 <prvTaskExitError+0x30>
__asm volatile
8005ef4: f04f 0350 mov.w r3, #80 @ 0x50
8005ef8: b672 cpsid i
8005efa: f383 8811 msr BASEPRI, r3
8005efe: f3bf 8f6f isb sy
8005f02: f3bf 8f4f dsb sy
8005f06: b662 cpsie i
8005f08: 60fb str r3, [r7, #12]
}
8005f0a: bf00 nop
8005f0c: bf00 nop
8005f0e: e7fd b.n 8005f0c <prvTaskExitError+0x2c>
__asm volatile
8005f10: f04f 0350 mov.w r3, #80 @ 0x50
8005f14: b672 cpsid i
8005f16: f383 8811 msr BASEPRI, r3
8005f1a: f3bf 8f6f isb sy
8005f1e: f3bf 8f4f dsb sy
8005f22: b662 cpsie i
8005f24: 60bb str r3, [r7, #8]
}
8005f26: bf00 nop
portDISABLE_INTERRUPTS();
while( ulDummy == 0 )
8005f28: bf00 nop
8005f2a: 687b ldr r3, [r7, #4]
8005f2c: 2b00 cmp r3, #0
8005f2e: d0fc beq.n 8005f2a <prvTaskExitError+0x4a>
about code appearing after this function is called - making ulDummy
volatile makes the compiler think the function could return and
therefore not output an 'unreachable code' warning for code that appears
after it. */
}
}
8005f30: bf00 nop
8005f32: bf00 nop
8005f34: 3714 adds r7, #20
8005f36: 46bd mov sp, r7
8005f38: f85d 7b04 ldr.w r7, [sp], #4
8005f3c: 4770 bx lr
8005f3e: bf00 nop
8005f40: 2000000c .word 0x2000000c
...
08005f50 <SVC_Handler>:
/*-----------------------------------------------------------*/
void vPortSVCHandler( void )
{
__asm volatile (
8005f50: 4b07 ldr r3, [pc, #28] @ (8005f70 <pxCurrentTCBConst2>)
8005f52: 6819 ldr r1, [r3, #0]
8005f54: 6808 ldr r0, [r1, #0]
8005f56: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
8005f5a: f380 8809 msr PSP, r0
8005f5e: f3bf 8f6f isb sy
8005f62: f04f 0000 mov.w r0, #0
8005f66: f380 8811 msr BASEPRI, r0
8005f6a: 4770 bx lr
8005f6c: f3af 8000 nop.w
08005f70 <pxCurrentTCBConst2>:
8005f70: 20000e68 .word 0x20000e68
" bx r14 \n"
" \n"
" .align 4 \n"
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
);
}
8005f74: bf00 nop
8005f76: bf00 nop
08005f78 <prvPortStartFirstTask>:
{
/* Start the first task. This also clears the bit that indicates the FPU is
in use in case the FPU was used before the scheduler was started - which
would otherwise result in the unnecessary leaving of space in the SVC stack
for lazy saving of FPU registers. */
__asm volatile(
8005f78: 4808 ldr r0, [pc, #32] @ (8005f9c <prvPortStartFirstTask+0x24>)
8005f7a: 6800 ldr r0, [r0, #0]
8005f7c: 6800 ldr r0, [r0, #0]
8005f7e: f380 8808 msr MSP, r0
8005f82: f04f 0000 mov.w r0, #0
8005f86: f380 8814 msr CONTROL, r0
8005f8a: b662 cpsie i
8005f8c: b661 cpsie f
8005f8e: f3bf 8f4f dsb sy
8005f92: f3bf 8f6f isb sy
8005f96: df00 svc 0
8005f98: bf00 nop
" dsb \n"
" isb \n"
" svc 0 \n" /* System call to start first task. */
" nop \n"
);
}
8005f9a: bf00 nop
8005f9c: e000ed08 .word 0xe000ed08
08005fa0 <xPortStartScheduler>:
/*
* See header file for description.
*/
BaseType_t xPortStartScheduler( void )
{
8005fa0: b580 push {r7, lr}
8005fa2: b084 sub sp, #16
8005fa4: af00 add r7, sp, #0
configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
#if( configASSERT_DEFINED == 1 )
{
volatile uint32_t ulOriginalPriority;
volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
8005fa6: 4b37 ldr r3, [pc, #220] @ (8006084 <xPortStartScheduler+0xe4>)
8005fa8: 60fb str r3, [r7, #12]
functions can be called. ISR safe functions are those that end in
"FromISR". FreeRTOS maintains separate thread and ISR API functions to
ensure interrupt entry is as fast and simple as possible.
Save the interrupt priority value that is about to be clobbered. */
ulOriginalPriority = *pucFirstUserPriorityRegister;
8005faa: 68fb ldr r3, [r7, #12]
8005fac: 781b ldrb r3, [r3, #0]
8005fae: b2db uxtb r3, r3
8005fb0: 607b str r3, [r7, #4]
/* Determine the number of priority bits available. First write to all
possible bits. */
*pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
8005fb2: 68fb ldr r3, [r7, #12]
8005fb4: 22ff movs r2, #255 @ 0xff
8005fb6: 701a strb r2, [r3, #0]
/* Read the value back to see how many bits stuck. */
ucMaxPriorityValue = *pucFirstUserPriorityRegister;
8005fb8: 68fb ldr r3, [r7, #12]
8005fba: 781b ldrb r3, [r3, #0]
8005fbc: b2db uxtb r3, r3
8005fbe: 70fb strb r3, [r7, #3]
/* Use the same mask on the maximum system call priority. */
ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
8005fc0: 78fb ldrb r3, [r7, #3]
8005fc2: b2db uxtb r3, r3
8005fc4: f003 0350 and.w r3, r3, #80 @ 0x50
8005fc8: b2da uxtb r2, r3
8005fca: 4b2f ldr r3, [pc, #188] @ (8006088 <xPortStartScheduler+0xe8>)
8005fcc: 701a strb r2, [r3, #0]
/* Calculate the maximum acceptable priority group value for the number
of bits read back. */
ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
8005fce: 4b2f ldr r3, [pc, #188] @ (800608c <xPortStartScheduler+0xec>)
8005fd0: 2207 movs r2, #7
8005fd2: 601a str r2, [r3, #0]
while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
8005fd4: e009 b.n 8005fea <xPortStartScheduler+0x4a>
{
ulMaxPRIGROUPValue--;
8005fd6: 4b2d ldr r3, [pc, #180] @ (800608c <xPortStartScheduler+0xec>)
8005fd8: 681b ldr r3, [r3, #0]
8005fda: 3b01 subs r3, #1
8005fdc: 4a2b ldr r2, [pc, #172] @ (800608c <xPortStartScheduler+0xec>)
8005fde: 6013 str r3, [r2, #0]
ucMaxPriorityValue <<= ( uint8_t ) 0x01;
8005fe0: 78fb ldrb r3, [r7, #3]
8005fe2: b2db uxtb r3, r3
8005fe4: 005b lsls r3, r3, #1
8005fe6: b2db uxtb r3, r3
8005fe8: 70fb strb r3, [r7, #3]
while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
8005fea: 78fb ldrb r3, [r7, #3]
8005fec: b2db uxtb r3, r3
8005fee: f003 0380 and.w r3, r3, #128 @ 0x80
8005ff2: 2b80 cmp r3, #128 @ 0x80
8005ff4: d0ef beq.n 8005fd6 <xPortStartScheduler+0x36>
#ifdef configPRIO_BITS
{
/* Check the FreeRTOS configuration that defines the number of
priority bits matches the number of priority bits actually queried
from the hardware. */
configASSERT( ( portMAX_PRIGROUP_BITS - ulMaxPRIGROUPValue ) == configPRIO_BITS );
8005ff6: 4b25 ldr r3, [pc, #148] @ (800608c <xPortStartScheduler+0xec>)
8005ff8: 681b ldr r3, [r3, #0]
8005ffa: f1c3 0307 rsb r3, r3, #7
8005ffe: 2b04 cmp r3, #4
8006000: d00d beq.n 800601e <xPortStartScheduler+0x7e>
__asm volatile
8006002: f04f 0350 mov.w r3, #80 @ 0x50
8006006: b672 cpsid i
8006008: f383 8811 msr BASEPRI, r3
800600c: f3bf 8f6f isb sy
8006010: f3bf 8f4f dsb sy
8006014: b662 cpsie i
8006016: 60bb str r3, [r7, #8]
}
8006018: bf00 nop
800601a: bf00 nop
800601c: e7fd b.n 800601a <xPortStartScheduler+0x7a>
}
#endif
/* Shift the priority group value back to its position within the AIRCR
register. */
ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
800601e: 4b1b ldr r3, [pc, #108] @ (800608c <xPortStartScheduler+0xec>)
8006020: 681b ldr r3, [r3, #0]
8006022: 021b lsls r3, r3, #8
8006024: 4a19 ldr r2, [pc, #100] @ (800608c <xPortStartScheduler+0xec>)
8006026: 6013 str r3, [r2, #0]
ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
8006028: 4b18 ldr r3, [pc, #96] @ (800608c <xPortStartScheduler+0xec>)
800602a: 681b ldr r3, [r3, #0]
800602c: f403 63e0 and.w r3, r3, #1792 @ 0x700
8006030: 4a16 ldr r2, [pc, #88] @ (800608c <xPortStartScheduler+0xec>)
8006032: 6013 str r3, [r2, #0]
/* Restore the clobbered interrupt priority register to its original
value. */
*pucFirstUserPriorityRegister = ulOriginalPriority;
8006034: 687b ldr r3, [r7, #4]
8006036: b2da uxtb r2, r3
8006038: 68fb ldr r3, [r7, #12]
800603a: 701a strb r2, [r3, #0]
}
#endif /* conifgASSERT_DEFINED */
/* Make PendSV and SysTick the lowest priority interrupts. */
portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
800603c: 4b14 ldr r3, [pc, #80] @ (8006090 <xPortStartScheduler+0xf0>)
800603e: 681b ldr r3, [r3, #0]
8006040: 4a13 ldr r2, [pc, #76] @ (8006090 <xPortStartScheduler+0xf0>)
8006042: f443 0370 orr.w r3, r3, #15728640 @ 0xf00000
8006046: 6013 str r3, [r2, #0]
portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
8006048: 4b11 ldr r3, [pc, #68] @ (8006090 <xPortStartScheduler+0xf0>)
800604a: 681b ldr r3, [r3, #0]
800604c: 4a10 ldr r2, [pc, #64] @ (8006090 <xPortStartScheduler+0xf0>)
800604e: f043 4370 orr.w r3, r3, #4026531840 @ 0xf0000000
8006052: 6013 str r3, [r2, #0]
/* Start the timer that generates the tick ISR. Interrupts are disabled
here already. */
vPortSetupTimerInterrupt();
8006054: f000 f8dc bl 8006210 <vPortSetupTimerInterrupt>
/* Initialise the critical nesting count ready for the first task. */
uxCriticalNesting = 0;
8006058: 4b0e ldr r3, [pc, #56] @ (8006094 <xPortStartScheduler+0xf4>)
800605a: 2200 movs r2, #0
800605c: 601a str r2, [r3, #0]
/* Ensure the VFP is enabled - it should be anyway. */
vPortEnableVFP();
800605e: f000 f8fb bl 8006258 <vPortEnableVFP>
/* Lazy save always. */
*( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;
8006062: 4b0d ldr r3, [pc, #52] @ (8006098 <xPortStartScheduler+0xf8>)
8006064: 681b ldr r3, [r3, #0]
8006066: 4a0c ldr r2, [pc, #48] @ (8006098 <xPortStartScheduler+0xf8>)
8006068: f043 4340 orr.w r3, r3, #3221225472 @ 0xc0000000
800606c: 6013 str r3, [r2, #0]
/* Start the first task. */
prvPortStartFirstTask();
800606e: f7ff ff83 bl 8005f78 <prvPortStartFirstTask>
exit error function to prevent compiler warnings about a static function
not being called in the case that the application writer overrides this
functionality by defining configTASK_RETURN_ADDRESS. Call
vTaskSwitchContext() so link time optimisation does not remove the
symbol. */
vTaskSwitchContext();
8006072: f7ff f835 bl 80050e0 <vTaskSwitchContext>
prvTaskExitError();
8006076: f7ff ff33 bl 8005ee0 <prvTaskExitError>
/* Should not get here! */
return 0;
800607a: 2300 movs r3, #0
}
800607c: 4618 mov r0, r3
800607e: 3710 adds r7, #16
8006080: 46bd mov sp, r7
8006082: bd80 pop {r7, pc}
8006084: e000e400 .word 0xe000e400
8006088: 20001494 .word 0x20001494
800608c: 20001498 .word 0x20001498
8006090: e000ed20 .word 0xe000ed20
8006094: 2000000c .word 0x2000000c
8006098: e000ef34 .word 0xe000ef34
0800609c <vPortEnterCritical>:
configASSERT( uxCriticalNesting == 1000UL );
}
/*-----------------------------------------------------------*/
void vPortEnterCritical( void )
{
800609c: b480 push {r7}
800609e: b083 sub sp, #12
80060a0: af00 add r7, sp, #0
__asm volatile
80060a2: f04f 0350 mov.w r3, #80 @ 0x50
80060a6: b672 cpsid i
80060a8: f383 8811 msr BASEPRI, r3
80060ac: f3bf 8f6f isb sy
80060b0: f3bf 8f4f dsb sy
80060b4: b662 cpsie i
80060b6: 607b str r3, [r7, #4]
}
80060b8: bf00 nop
portDISABLE_INTERRUPTS();
uxCriticalNesting++;
80060ba: 4b11 ldr r3, [pc, #68] @ (8006100 <vPortEnterCritical+0x64>)
80060bc: 681b ldr r3, [r3, #0]
80060be: 3301 adds r3, #1
80060c0: 4a0f ldr r2, [pc, #60] @ (8006100 <vPortEnterCritical+0x64>)
80060c2: 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 )
80060c4: 4b0e ldr r3, [pc, #56] @ (8006100 <vPortEnterCritical+0x64>)
80060c6: 681b ldr r3, [r3, #0]
80060c8: 2b01 cmp r3, #1
80060ca: d112 bne.n 80060f2 <vPortEnterCritical+0x56>
{
configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
80060cc: 4b0d ldr r3, [pc, #52] @ (8006104 <vPortEnterCritical+0x68>)
80060ce: 681b ldr r3, [r3, #0]
80060d0: b2db uxtb r3, r3
80060d2: 2b00 cmp r3, #0
80060d4: d00d beq.n 80060f2 <vPortEnterCritical+0x56>
__asm volatile
80060d6: f04f 0350 mov.w r3, #80 @ 0x50
80060da: b672 cpsid i
80060dc: f383 8811 msr BASEPRI, r3
80060e0: f3bf 8f6f isb sy
80060e4: f3bf 8f4f dsb sy
80060e8: b662 cpsie i
80060ea: 603b str r3, [r7, #0]
}
80060ec: bf00 nop
80060ee: bf00 nop
80060f0: e7fd b.n 80060ee <vPortEnterCritical+0x52>
}
}
80060f2: bf00 nop
80060f4: 370c adds r7, #12
80060f6: 46bd mov sp, r7
80060f8: f85d 7b04 ldr.w r7, [sp], #4
80060fc: 4770 bx lr
80060fe: bf00 nop
8006100: 2000000c .word 0x2000000c
8006104: e000ed04 .word 0xe000ed04
08006108 <vPortExitCritical>:
/*-----------------------------------------------------------*/
void vPortExitCritical( void )
{
8006108: b480 push {r7}
800610a: b083 sub sp, #12
800610c: af00 add r7, sp, #0
configASSERT( uxCriticalNesting );
800610e: 4b13 ldr r3, [pc, #76] @ (800615c <vPortExitCritical+0x54>)
8006110: 681b ldr r3, [r3, #0]
8006112: 2b00 cmp r3, #0
8006114: d10d bne.n 8006132 <vPortExitCritical+0x2a>
__asm volatile
8006116: f04f 0350 mov.w r3, #80 @ 0x50
800611a: b672 cpsid i
800611c: f383 8811 msr BASEPRI, r3
8006120: f3bf 8f6f isb sy
8006124: f3bf 8f4f dsb sy
8006128: b662 cpsie i
800612a: 607b str r3, [r7, #4]
}
800612c: bf00 nop
800612e: bf00 nop
8006130: e7fd b.n 800612e <vPortExitCritical+0x26>
uxCriticalNesting--;
8006132: 4b0a ldr r3, [pc, #40] @ (800615c <vPortExitCritical+0x54>)
8006134: 681b ldr r3, [r3, #0]
8006136: 3b01 subs r3, #1
8006138: 4a08 ldr r2, [pc, #32] @ (800615c <vPortExitCritical+0x54>)
800613a: 6013 str r3, [r2, #0]
if( uxCriticalNesting == 0 )
800613c: 4b07 ldr r3, [pc, #28] @ (800615c <vPortExitCritical+0x54>)
800613e: 681b ldr r3, [r3, #0]
8006140: 2b00 cmp r3, #0
8006142: d105 bne.n 8006150 <vPortExitCritical+0x48>
8006144: 2300 movs r3, #0
8006146: 603b str r3, [r7, #0]
__asm volatile
8006148: 683b ldr r3, [r7, #0]
800614a: f383 8811 msr BASEPRI, r3
}
800614e: bf00 nop
{
portENABLE_INTERRUPTS();
}
}
8006150: bf00 nop
8006152: 370c adds r7, #12
8006154: 46bd mov sp, r7
8006156: f85d 7b04 ldr.w r7, [sp], #4
800615a: 4770 bx lr
800615c: 2000000c .word 0x2000000c
08006160 <PendSV_Handler>:
void xPortPendSVHandler( void )
{
/* This is a naked function. */
__asm volatile
8006160: f3ef 8009 mrs r0, PSP
8006164: f3bf 8f6f isb sy
8006168: 4b15 ldr r3, [pc, #84] @ (80061c0 <pxCurrentTCBConst>)
800616a: 681a ldr r2, [r3, #0]
800616c: f01e 0f10 tst.w lr, #16
8006170: bf08 it eq
8006172: ed20 8a10 vstmdbeq r0!, {s16-s31}
8006176: e920 4ff0 stmdb r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
800617a: 6010 str r0, [r2, #0]
800617c: e92d 0009 stmdb sp!, {r0, r3}
8006180: f04f 0050 mov.w r0, #80 @ 0x50
8006184: b672 cpsid i
8006186: f380 8811 msr BASEPRI, r0
800618a: f3bf 8f4f dsb sy
800618e: f3bf 8f6f isb sy
8006192: b662 cpsie i
8006194: f7fe ffa4 bl 80050e0 <vTaskSwitchContext>
8006198: f04f 0000 mov.w r0, #0
800619c: f380 8811 msr BASEPRI, r0
80061a0: bc09 pop {r0, r3}
80061a2: 6819 ldr r1, [r3, #0]
80061a4: 6808 ldr r0, [r1, #0]
80061a6: e8b0 4ff0 ldmia.w r0!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
80061aa: f01e 0f10 tst.w lr, #16
80061ae: bf08 it eq
80061b0: ecb0 8a10 vldmiaeq r0!, {s16-s31}
80061b4: f380 8809 msr PSP, r0
80061b8: f3bf 8f6f isb sy
80061bc: 4770 bx lr
80061be: bf00 nop
080061c0 <pxCurrentTCBConst>:
80061c0: 20000e68 .word 0x20000e68
" \n"
" .align 4 \n"
"pxCurrentTCBConst: .word pxCurrentTCB \n"
::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
);
}
80061c4: bf00 nop
80061c6: bf00 nop
080061c8 <SysTick_Handler>:
/*-----------------------------------------------------------*/
void xPortSysTickHandler( void )
{
80061c8: b580 push {r7, lr}
80061ca: b082 sub sp, #8
80061cc: af00 add r7, sp, #0
__asm volatile
80061ce: f04f 0350 mov.w r3, #80 @ 0x50
80061d2: b672 cpsid i
80061d4: f383 8811 msr BASEPRI, r3
80061d8: f3bf 8f6f isb sy
80061dc: f3bf 8f4f dsb sy
80061e0: b662 cpsie i
80061e2: 607b str r3, [r7, #4]
}
80061e4: 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 )
80061e6: f7fe febf bl 8004f68 <xTaskIncrementTick>
80061ea: 4603 mov r3, r0
80061ec: 2b00 cmp r3, #0
80061ee: d003 beq.n 80061f8 <SysTick_Handler+0x30>
{
/* A context switch is required. Context switching is performed in
the PendSV interrupt. Pend the PendSV interrupt. */
portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
80061f0: 4b06 ldr r3, [pc, #24] @ (800620c <SysTick_Handler+0x44>)
80061f2: f04f 5280 mov.w r2, #268435456 @ 0x10000000
80061f6: 601a str r2, [r3, #0]
80061f8: 2300 movs r3, #0
80061fa: 603b str r3, [r7, #0]
__asm volatile
80061fc: 683b ldr r3, [r7, #0]
80061fe: f383 8811 msr BASEPRI, r3
}
8006202: bf00 nop
}
}
portENABLE_INTERRUPTS();
}
8006204: bf00 nop
8006206: 3708 adds r7, #8
8006208: 46bd mov sp, r7
800620a: bd80 pop {r7, pc}
800620c: e000ed04 .word 0xe000ed04
08006210 <vPortSetupTimerInterrupt>:
/*
* Setup the systick timer to generate the tick interrupts at the required
* frequency.
*/
__attribute__(( weak )) void vPortSetupTimerInterrupt( void )
{
8006210: b480 push {r7}
8006212: af00 add r7, sp, #0
ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
}
#endif /* configUSE_TICKLESS_IDLE */
/* Stop and clear the SysTick. */
portNVIC_SYSTICK_CTRL_REG = 0UL;
8006214: 4b0b ldr r3, [pc, #44] @ (8006244 <vPortSetupTimerInterrupt+0x34>)
8006216: 2200 movs r2, #0
8006218: 601a str r2, [r3, #0]
portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
800621a: 4b0b ldr r3, [pc, #44] @ (8006248 <vPortSetupTimerInterrupt+0x38>)
800621c: 2200 movs r2, #0
800621e: 601a str r2, [r3, #0]
/* Configure SysTick to interrupt at the requested rate. */
portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
8006220: 4b0a ldr r3, [pc, #40] @ (800624c <vPortSetupTimerInterrupt+0x3c>)
8006222: 681b ldr r3, [r3, #0]
8006224: 4a0a ldr r2, [pc, #40] @ (8006250 <vPortSetupTimerInterrupt+0x40>)
8006226: fba2 2303 umull r2, r3, r2, r3
800622a: 099b lsrs r3, r3, #6
800622c: 4a09 ldr r2, [pc, #36] @ (8006254 <vPortSetupTimerInterrupt+0x44>)
800622e: 3b01 subs r3, #1
8006230: 6013 str r3, [r2, #0]
portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
8006232: 4b04 ldr r3, [pc, #16] @ (8006244 <vPortSetupTimerInterrupt+0x34>)
8006234: 2207 movs r2, #7
8006236: 601a str r2, [r3, #0]
}
8006238: bf00 nop
800623a: 46bd mov sp, r7
800623c: f85d 7b04 ldr.w r7, [sp], #4
8006240: 4770 bx lr
8006242: bf00 nop
8006244: e000e010 .word 0xe000e010
8006248: e000e018 .word 0xe000e018
800624c: 20000000 .word 0x20000000
8006250: 10624dd3 .word 0x10624dd3
8006254: e000e014 .word 0xe000e014
08006258 <vPortEnableVFP>:
/*-----------------------------------------------------------*/
/* This is a naked function. */
static void vPortEnableVFP( void )
{
__asm volatile
8006258: f8df 000c ldr.w r0, [pc, #12] @ 8006268 <vPortEnableVFP+0x10>
800625c: 6801 ldr r1, [r0, #0]
800625e: f441 0170 orr.w r1, r1, #15728640 @ 0xf00000
8006262: 6001 str r1, [r0, #0]
8006264: 4770 bx lr
" \n"
" orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11 coprocessors, then save back. */
" str r1, [r0] \n"
" bx r14 "
);
}
8006266: bf00 nop
8006268: e000ed88 .word 0xe000ed88
0800626c <vPortValidateInterruptPriority>:
/*-----------------------------------------------------------*/
#if( configASSERT_DEFINED == 1 )
void vPortValidateInterruptPriority( void )
{
800626c: b480 push {r7}
800626e: b085 sub sp, #20
8006270: 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" );
8006272: f3ef 8305 mrs r3, IPSR
8006276: 60fb str r3, [r7, #12]
/* Is the interrupt number a user defined interrupt? */
if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
8006278: 68fb ldr r3, [r7, #12]
800627a: 2b0f cmp r3, #15
800627c: d917 bls.n 80062ae <vPortValidateInterruptPriority+0x42>
{
/* Look up the interrupt's priority. */
ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
800627e: 4a1a ldr r2, [pc, #104] @ (80062e8 <vPortValidateInterruptPriority+0x7c>)
8006280: 68fb ldr r3, [r7, #12]
8006282: 4413 add r3, r2
8006284: 781b ldrb r3, [r3, #0]
8006286: 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 );
8006288: 4b18 ldr r3, [pc, #96] @ (80062ec <vPortValidateInterruptPriority+0x80>)
800628a: 781b ldrb r3, [r3, #0]
800628c: 7afa ldrb r2, [r7, #11]
800628e: 429a cmp r2, r3
8006290: d20d bcs.n 80062ae <vPortValidateInterruptPriority+0x42>
__asm volatile
8006292: f04f 0350 mov.w r3, #80 @ 0x50
8006296: b672 cpsid i
8006298: f383 8811 msr BASEPRI, r3
800629c: f3bf 8f6f isb sy
80062a0: f3bf 8f4f dsb sy
80062a4: b662 cpsie i
80062a6: 607b str r3, [r7, #4]
}
80062a8: bf00 nop
80062aa: bf00 nop
80062ac: e7fd b.n 80062aa <vPortValidateInterruptPriority+0x3e>
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 );
80062ae: 4b10 ldr r3, [pc, #64] @ (80062f0 <vPortValidateInterruptPriority+0x84>)
80062b0: 681b ldr r3, [r3, #0]
80062b2: f403 62e0 and.w r2, r3, #1792 @ 0x700
80062b6: 4b0f ldr r3, [pc, #60] @ (80062f4 <vPortValidateInterruptPriority+0x88>)
80062b8: 681b ldr r3, [r3, #0]
80062ba: 429a cmp r2, r3
80062bc: d90d bls.n 80062da <vPortValidateInterruptPriority+0x6e>
__asm volatile
80062be: f04f 0350 mov.w r3, #80 @ 0x50
80062c2: b672 cpsid i
80062c4: f383 8811 msr BASEPRI, r3
80062c8: f3bf 8f6f isb sy
80062cc: f3bf 8f4f dsb sy
80062d0: b662 cpsie i
80062d2: 603b str r3, [r7, #0]
}
80062d4: bf00 nop
80062d6: bf00 nop
80062d8: e7fd b.n 80062d6 <vPortValidateInterruptPriority+0x6a>
}
80062da: bf00 nop
80062dc: 3714 adds r7, #20
80062de: 46bd mov sp, r7
80062e0: f85d 7b04 ldr.w r7, [sp], #4
80062e4: 4770 bx lr
80062e6: bf00 nop
80062e8: e000e3f0 .word 0xe000e3f0
80062ec: 20001494 .word 0x20001494
80062f0: e000ed0c .word 0xe000ed0c
80062f4: 20001498 .word 0x20001498
080062f8 <pvPortMalloc>:
static size_t xBlockAllocatedBit = 0;
/*-----------------------------------------------------------*/
void *pvPortMalloc( size_t xWantedSize )
{
80062f8: b580 push {r7, lr}
80062fa: b08a sub sp, #40 @ 0x28
80062fc: af00 add r7, sp, #0
80062fe: 6078 str r0, [r7, #4]
BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
void *pvReturn = NULL;
8006300: 2300 movs r3, #0
8006302: 61fb str r3, [r7, #28]
vTaskSuspendAll();
8006304: f7fe fd72 bl 8004dec <vTaskSuspendAll>
{
/* If this is the first call to malloc then the heap will require
initialisation to setup the list of free blocks. */
if( pxEnd == NULL )
8006308: 4b5d ldr r3, [pc, #372] @ (8006480 <pvPortMalloc+0x188>)
800630a: 681b ldr r3, [r3, #0]
800630c: 2b00 cmp r3, #0
800630e: d101 bne.n 8006314 <pvPortMalloc+0x1c>
{
prvHeapInit();
8006310: f000 f920 bl 8006554 <prvHeapInit>
/* Check the requested block size is not so large that the top bit is
set. The top bit of the block size member of the BlockLink_t structure
is used to determine who owns the block - the application or the
kernel, so it must be free. */
if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
8006314: 4b5b ldr r3, [pc, #364] @ (8006484 <pvPortMalloc+0x18c>)
8006316: 681a ldr r2, [r3, #0]
8006318: 687b ldr r3, [r7, #4]
800631a: 4013 ands r3, r2
800631c: 2b00 cmp r3, #0
800631e: f040 8094 bne.w 800644a <pvPortMalloc+0x152>
{
/* The wanted size is increased so it can contain a BlockLink_t
structure in addition to the requested amount of bytes. */
if( xWantedSize > 0 )
8006322: 687b ldr r3, [r7, #4]
8006324: 2b00 cmp r3, #0
8006326: d020 beq.n 800636a <pvPortMalloc+0x72>
{
xWantedSize += xHeapStructSize;
8006328: 2208 movs r2, #8
800632a: 687b ldr r3, [r7, #4]
800632c: 4413 add r3, r2
800632e: 607b str r3, [r7, #4]
/* Ensure that blocks are always aligned to the required number
of bytes. */
if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
8006330: 687b ldr r3, [r7, #4]
8006332: f003 0307 and.w r3, r3, #7
8006336: 2b00 cmp r3, #0
8006338: d017 beq.n 800636a <pvPortMalloc+0x72>
{
/* Byte alignment required. */
xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
800633a: 687b ldr r3, [r7, #4]
800633c: f023 0307 bic.w r3, r3, #7
8006340: 3308 adds r3, #8
8006342: 607b str r3, [r7, #4]
configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
8006344: 687b ldr r3, [r7, #4]
8006346: f003 0307 and.w r3, r3, #7
800634a: 2b00 cmp r3, #0
800634c: d00d beq.n 800636a <pvPortMalloc+0x72>
__asm volatile
800634e: f04f 0350 mov.w r3, #80 @ 0x50
8006352: b672 cpsid i
8006354: f383 8811 msr BASEPRI, r3
8006358: f3bf 8f6f isb sy
800635c: f3bf 8f4f dsb sy
8006360: b662 cpsie i
8006362: 617b str r3, [r7, #20]
}
8006364: bf00 nop
8006366: bf00 nop
8006368: e7fd b.n 8006366 <pvPortMalloc+0x6e>
else
{
mtCOVERAGE_TEST_MARKER();
}
if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
800636a: 687b ldr r3, [r7, #4]
800636c: 2b00 cmp r3, #0
800636e: d06c beq.n 800644a <pvPortMalloc+0x152>
8006370: 4b45 ldr r3, [pc, #276] @ (8006488 <pvPortMalloc+0x190>)
8006372: 681b ldr r3, [r3, #0]
8006374: 687a ldr r2, [r7, #4]
8006376: 429a cmp r2, r3
8006378: d867 bhi.n 800644a <pvPortMalloc+0x152>
{
/* Traverse the list from the start (lowest address) block until
one of adequate size is found. */
pxPreviousBlock = &xStart;
800637a: 4b44 ldr r3, [pc, #272] @ (800648c <pvPortMalloc+0x194>)
800637c: 623b str r3, [r7, #32]
pxBlock = xStart.pxNextFreeBlock;
800637e: 4b43 ldr r3, [pc, #268] @ (800648c <pvPortMalloc+0x194>)
8006380: 681b ldr r3, [r3, #0]
8006382: 627b str r3, [r7, #36] @ 0x24
while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
8006384: e004 b.n 8006390 <pvPortMalloc+0x98>
{
pxPreviousBlock = pxBlock;
8006386: 6a7b ldr r3, [r7, #36] @ 0x24
8006388: 623b str r3, [r7, #32]
pxBlock = pxBlock->pxNextFreeBlock;
800638a: 6a7b ldr r3, [r7, #36] @ 0x24
800638c: 681b ldr r3, [r3, #0]
800638e: 627b str r3, [r7, #36] @ 0x24
while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
8006390: 6a7b ldr r3, [r7, #36] @ 0x24
8006392: 685b ldr r3, [r3, #4]
8006394: 687a ldr r2, [r7, #4]
8006396: 429a cmp r2, r3
8006398: d903 bls.n 80063a2 <pvPortMalloc+0xaa>
800639a: 6a7b ldr r3, [r7, #36] @ 0x24
800639c: 681b ldr r3, [r3, #0]
800639e: 2b00 cmp r3, #0
80063a0: d1f1 bne.n 8006386 <pvPortMalloc+0x8e>
}
/* If the end marker was reached then a block of adequate size
was not found. */
if( pxBlock != pxEnd )
80063a2: 4b37 ldr r3, [pc, #220] @ (8006480 <pvPortMalloc+0x188>)
80063a4: 681b ldr r3, [r3, #0]
80063a6: 6a7a ldr r2, [r7, #36] @ 0x24
80063a8: 429a cmp r2, r3
80063aa: d04e beq.n 800644a <pvPortMalloc+0x152>
{
/* Return the memory space pointed to - jumping over the
BlockLink_t structure at its start. */
pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
80063ac: 6a3b ldr r3, [r7, #32]
80063ae: 681b ldr r3, [r3, #0]
80063b0: 2208 movs r2, #8
80063b2: 4413 add r3, r2
80063b4: 61fb str r3, [r7, #28]
/* This block is being returned for use so must be taken out
of the list of free blocks. */
pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
80063b6: 6a7b ldr r3, [r7, #36] @ 0x24
80063b8: 681a ldr r2, [r3, #0]
80063ba: 6a3b ldr r3, [r7, #32]
80063bc: 601a str r2, [r3, #0]
/* If the block is larger than required it can be split into
two. */
if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
80063be: 6a7b ldr r3, [r7, #36] @ 0x24
80063c0: 685a ldr r2, [r3, #4]
80063c2: 687b ldr r3, [r7, #4]
80063c4: 1ad2 subs r2, r2, r3
80063c6: 2308 movs r3, #8
80063c8: 005b lsls r3, r3, #1
80063ca: 429a cmp r2, r3
80063cc: d922 bls.n 8006414 <pvPortMalloc+0x11c>
{
/* This block is to be split into two. Create a new
block following the number of bytes requested. The void
cast is used to prevent byte alignment warnings from the
compiler. */
pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
80063ce: 6a7a ldr r2, [r7, #36] @ 0x24
80063d0: 687b ldr r3, [r7, #4]
80063d2: 4413 add r3, r2
80063d4: 61bb str r3, [r7, #24]
configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
80063d6: 69bb ldr r3, [r7, #24]
80063d8: f003 0307 and.w r3, r3, #7
80063dc: 2b00 cmp r3, #0
80063de: d00d beq.n 80063fc <pvPortMalloc+0x104>
__asm volatile
80063e0: f04f 0350 mov.w r3, #80 @ 0x50
80063e4: b672 cpsid i
80063e6: f383 8811 msr BASEPRI, r3
80063ea: f3bf 8f6f isb sy
80063ee: f3bf 8f4f dsb sy
80063f2: b662 cpsie i
80063f4: 613b str r3, [r7, #16]
}
80063f6: bf00 nop
80063f8: bf00 nop
80063fa: e7fd b.n 80063f8 <pvPortMalloc+0x100>
/* Calculate the sizes of two blocks split from the
single block. */
pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
80063fc: 6a7b ldr r3, [r7, #36] @ 0x24
80063fe: 685a ldr r2, [r3, #4]
8006400: 687b ldr r3, [r7, #4]
8006402: 1ad2 subs r2, r2, r3
8006404: 69bb ldr r3, [r7, #24]
8006406: 605a str r2, [r3, #4]
pxBlock->xBlockSize = xWantedSize;
8006408: 6a7b ldr r3, [r7, #36] @ 0x24
800640a: 687a ldr r2, [r7, #4]
800640c: 605a str r2, [r3, #4]
/* Insert the new block into the list of free blocks. */
prvInsertBlockIntoFreeList( pxNewBlockLink );
800640e: 69b8 ldr r0, [r7, #24]
8006410: f000 f902 bl 8006618 <prvInsertBlockIntoFreeList>
else
{
mtCOVERAGE_TEST_MARKER();
}
xFreeBytesRemaining -= pxBlock->xBlockSize;
8006414: 4b1c ldr r3, [pc, #112] @ (8006488 <pvPortMalloc+0x190>)
8006416: 681a ldr r2, [r3, #0]
8006418: 6a7b ldr r3, [r7, #36] @ 0x24
800641a: 685b ldr r3, [r3, #4]
800641c: 1ad3 subs r3, r2, r3
800641e: 4a1a ldr r2, [pc, #104] @ (8006488 <pvPortMalloc+0x190>)
8006420: 6013 str r3, [r2, #0]
if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
8006422: 4b19 ldr r3, [pc, #100] @ (8006488 <pvPortMalloc+0x190>)
8006424: 681a ldr r2, [r3, #0]
8006426: 4b1a ldr r3, [pc, #104] @ (8006490 <pvPortMalloc+0x198>)
8006428: 681b ldr r3, [r3, #0]
800642a: 429a cmp r2, r3
800642c: d203 bcs.n 8006436 <pvPortMalloc+0x13e>
{
xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
800642e: 4b16 ldr r3, [pc, #88] @ (8006488 <pvPortMalloc+0x190>)
8006430: 681b ldr r3, [r3, #0]
8006432: 4a17 ldr r2, [pc, #92] @ (8006490 <pvPortMalloc+0x198>)
8006434: 6013 str r3, [r2, #0]
mtCOVERAGE_TEST_MARKER();
}
/* The block is being returned - it is allocated and owned
by the application and has no "next" block. */
pxBlock->xBlockSize |= xBlockAllocatedBit;
8006436: 6a7b ldr r3, [r7, #36] @ 0x24
8006438: 685a ldr r2, [r3, #4]
800643a: 4b12 ldr r3, [pc, #72] @ (8006484 <pvPortMalloc+0x18c>)
800643c: 681b ldr r3, [r3, #0]
800643e: 431a orrs r2, r3
8006440: 6a7b ldr r3, [r7, #36] @ 0x24
8006442: 605a str r2, [r3, #4]
pxBlock->pxNextFreeBlock = NULL;
8006444: 6a7b ldr r3, [r7, #36] @ 0x24
8006446: 2200 movs r2, #0
8006448: 601a str r2, [r3, #0]
mtCOVERAGE_TEST_MARKER();
}
traceMALLOC( pvReturn, xWantedSize );
}
( void ) xTaskResumeAll();
800644a: f7fe fcdd bl 8004e08 <xTaskResumeAll>
mtCOVERAGE_TEST_MARKER();
}
}
#endif
configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
800644e: 69fb ldr r3, [r7, #28]
8006450: f003 0307 and.w r3, r3, #7
8006454: 2b00 cmp r3, #0
8006456: d00d beq.n 8006474 <pvPortMalloc+0x17c>
__asm volatile
8006458: f04f 0350 mov.w r3, #80 @ 0x50
800645c: b672 cpsid i
800645e: f383 8811 msr BASEPRI, r3
8006462: f3bf 8f6f isb sy
8006466: f3bf 8f4f dsb sy
800646a: b662 cpsie i
800646c: 60fb str r3, [r7, #12]
}
800646e: bf00 nop
8006470: bf00 nop
8006472: e7fd b.n 8006470 <pvPortMalloc+0x178>
return pvReturn;
8006474: 69fb ldr r3, [r7, #28]
}
8006476: 4618 mov r0, r3
8006478: 3728 adds r7, #40 @ 0x28
800647a: 46bd mov sp, r7
800647c: bd80 pop {r7, pc}
800647e: bf00 nop
8006480: 200050a4 .word 0x200050a4
8006484: 200050b0 .word 0x200050b0
8006488: 200050a8 .word 0x200050a8
800648c: 2000509c .word 0x2000509c
8006490: 200050ac .word 0x200050ac
08006494 <vPortFree>:
/*-----------------------------------------------------------*/
void vPortFree( void *pv )
{
8006494: b580 push {r7, lr}
8006496: b086 sub sp, #24
8006498: af00 add r7, sp, #0
800649a: 6078 str r0, [r7, #4]
uint8_t *puc = ( uint8_t * ) pv;
800649c: 687b ldr r3, [r7, #4]
800649e: 617b str r3, [r7, #20]
BlockLink_t *pxLink;
if( pv != NULL )
80064a0: 687b ldr r3, [r7, #4]
80064a2: 2b00 cmp r3, #0
80064a4: d04e beq.n 8006544 <vPortFree+0xb0>
{
/* The memory being freed will have an BlockLink_t structure immediately
before it. */
puc -= xHeapStructSize;
80064a6: 2308 movs r3, #8
80064a8: 425b negs r3, r3
80064aa: 697a ldr r2, [r7, #20]
80064ac: 4413 add r3, r2
80064ae: 617b str r3, [r7, #20]
/* This casting is to keep the compiler from issuing warnings. */
pxLink = ( void * ) puc;
80064b0: 697b ldr r3, [r7, #20]
80064b2: 613b str r3, [r7, #16]
/* Check the block is actually allocated. */
configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
80064b4: 693b ldr r3, [r7, #16]
80064b6: 685a ldr r2, [r3, #4]
80064b8: 4b24 ldr r3, [pc, #144] @ (800654c <vPortFree+0xb8>)
80064ba: 681b ldr r3, [r3, #0]
80064bc: 4013 ands r3, r2
80064be: 2b00 cmp r3, #0
80064c0: d10d bne.n 80064de <vPortFree+0x4a>
__asm volatile
80064c2: f04f 0350 mov.w r3, #80 @ 0x50
80064c6: b672 cpsid i
80064c8: f383 8811 msr BASEPRI, r3
80064cc: f3bf 8f6f isb sy
80064d0: f3bf 8f4f dsb sy
80064d4: b662 cpsie i
80064d6: 60fb str r3, [r7, #12]
}
80064d8: bf00 nop
80064da: bf00 nop
80064dc: e7fd b.n 80064da <vPortFree+0x46>
configASSERT( pxLink->pxNextFreeBlock == NULL );
80064de: 693b ldr r3, [r7, #16]
80064e0: 681b ldr r3, [r3, #0]
80064e2: 2b00 cmp r3, #0
80064e4: d00d beq.n 8006502 <vPortFree+0x6e>
__asm volatile
80064e6: f04f 0350 mov.w r3, #80 @ 0x50
80064ea: b672 cpsid i
80064ec: f383 8811 msr BASEPRI, r3
80064f0: f3bf 8f6f isb sy
80064f4: f3bf 8f4f dsb sy
80064f8: b662 cpsie i
80064fa: 60bb str r3, [r7, #8]
}
80064fc: bf00 nop
80064fe: bf00 nop
8006500: e7fd b.n 80064fe <vPortFree+0x6a>
if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
8006502: 693b ldr r3, [r7, #16]
8006504: 685a ldr r2, [r3, #4]
8006506: 4b11 ldr r3, [pc, #68] @ (800654c <vPortFree+0xb8>)
8006508: 681b ldr r3, [r3, #0]
800650a: 4013 ands r3, r2
800650c: 2b00 cmp r3, #0
800650e: d019 beq.n 8006544 <vPortFree+0xb0>
{
if( pxLink->pxNextFreeBlock == NULL )
8006510: 693b ldr r3, [r7, #16]
8006512: 681b ldr r3, [r3, #0]
8006514: 2b00 cmp r3, #0
8006516: d115 bne.n 8006544 <vPortFree+0xb0>
{
/* The block is being returned to the heap - it is no longer
allocated. */
pxLink->xBlockSize &= ~xBlockAllocatedBit;
8006518: 693b ldr r3, [r7, #16]
800651a: 685a ldr r2, [r3, #4]
800651c: 4b0b ldr r3, [pc, #44] @ (800654c <vPortFree+0xb8>)
800651e: 681b ldr r3, [r3, #0]
8006520: 43db mvns r3, r3
8006522: 401a ands r2, r3
8006524: 693b ldr r3, [r7, #16]
8006526: 605a str r2, [r3, #4]
vTaskSuspendAll();
8006528: f7fe fc60 bl 8004dec <vTaskSuspendAll>
{
/* Add this block to the list of free blocks. */
xFreeBytesRemaining += pxLink->xBlockSize;
800652c: 693b ldr r3, [r7, #16]
800652e: 685a ldr r2, [r3, #4]
8006530: 4b07 ldr r3, [pc, #28] @ (8006550 <vPortFree+0xbc>)
8006532: 681b ldr r3, [r3, #0]
8006534: 4413 add r3, r2
8006536: 4a06 ldr r2, [pc, #24] @ (8006550 <vPortFree+0xbc>)
8006538: 6013 str r3, [r2, #0]
traceFREE( pv, pxLink->xBlockSize );
prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
800653a: 6938 ldr r0, [r7, #16]
800653c: f000 f86c bl 8006618 <prvInsertBlockIntoFreeList>
}
( void ) xTaskResumeAll();
8006540: f7fe fc62 bl 8004e08 <xTaskResumeAll>
else
{
mtCOVERAGE_TEST_MARKER();
}
}
}
8006544: bf00 nop
8006546: 3718 adds r7, #24
8006548: 46bd mov sp, r7
800654a: bd80 pop {r7, pc}
800654c: 200050b0 .word 0x200050b0
8006550: 200050a8 .word 0x200050a8
08006554 <prvHeapInit>:
/* This just exists to keep the linker quiet. */
}
/*-----------------------------------------------------------*/
static void prvHeapInit( void )
{
8006554: b480 push {r7}
8006556: b085 sub sp, #20
8006558: af00 add r7, sp, #0
BlockLink_t *pxFirstFreeBlock;
uint8_t *pucAlignedHeap;
size_t uxAddress;
size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
800655a: f44f 5370 mov.w r3, #15360 @ 0x3c00
800655e: 60bb str r3, [r7, #8]
/* Ensure the heap starts on a correctly aligned boundary. */
uxAddress = ( size_t ) ucHeap;
8006560: 4b27 ldr r3, [pc, #156] @ (8006600 <prvHeapInit+0xac>)
8006562: 60fb str r3, [r7, #12]
if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
8006564: 68fb ldr r3, [r7, #12]
8006566: f003 0307 and.w r3, r3, #7
800656a: 2b00 cmp r3, #0
800656c: d00c beq.n 8006588 <prvHeapInit+0x34>
{
uxAddress += ( portBYTE_ALIGNMENT - 1 );
800656e: 68fb ldr r3, [r7, #12]
8006570: 3307 adds r3, #7
8006572: 60fb str r3, [r7, #12]
uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
8006574: 68fb ldr r3, [r7, #12]
8006576: f023 0307 bic.w r3, r3, #7
800657a: 60fb str r3, [r7, #12]
xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
800657c: 68ba ldr r2, [r7, #8]
800657e: 68fb ldr r3, [r7, #12]
8006580: 1ad3 subs r3, r2, r3
8006582: 4a1f ldr r2, [pc, #124] @ (8006600 <prvHeapInit+0xac>)
8006584: 4413 add r3, r2
8006586: 60bb str r3, [r7, #8]
}
pucAlignedHeap = ( uint8_t * ) uxAddress;
8006588: 68fb ldr r3, [r7, #12]
800658a: 607b str r3, [r7, #4]
/* xStart is used to hold a pointer to the first item in the list of free
blocks. The void cast is used to prevent compiler warnings. */
xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
800658c: 4a1d ldr r2, [pc, #116] @ (8006604 <prvHeapInit+0xb0>)
800658e: 687b ldr r3, [r7, #4]
8006590: 6013 str r3, [r2, #0]
xStart.xBlockSize = ( size_t ) 0;
8006592: 4b1c ldr r3, [pc, #112] @ (8006604 <prvHeapInit+0xb0>)
8006594: 2200 movs r2, #0
8006596: 605a str r2, [r3, #4]
/* pxEnd is used to mark the end of the list of free blocks and is inserted
at the end of the heap space. */
uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
8006598: 687b ldr r3, [r7, #4]
800659a: 68ba ldr r2, [r7, #8]
800659c: 4413 add r3, r2
800659e: 60fb str r3, [r7, #12]
uxAddress -= xHeapStructSize;
80065a0: 2208 movs r2, #8
80065a2: 68fb ldr r3, [r7, #12]
80065a4: 1a9b subs r3, r3, r2
80065a6: 60fb str r3, [r7, #12]
uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
80065a8: 68fb ldr r3, [r7, #12]
80065aa: f023 0307 bic.w r3, r3, #7
80065ae: 60fb str r3, [r7, #12]
pxEnd = ( void * ) uxAddress;
80065b0: 68fb ldr r3, [r7, #12]
80065b2: 4a15 ldr r2, [pc, #84] @ (8006608 <prvHeapInit+0xb4>)
80065b4: 6013 str r3, [r2, #0]
pxEnd->xBlockSize = 0;
80065b6: 4b14 ldr r3, [pc, #80] @ (8006608 <prvHeapInit+0xb4>)
80065b8: 681b ldr r3, [r3, #0]
80065ba: 2200 movs r2, #0
80065bc: 605a str r2, [r3, #4]
pxEnd->pxNextFreeBlock = NULL;
80065be: 4b12 ldr r3, [pc, #72] @ (8006608 <prvHeapInit+0xb4>)
80065c0: 681b ldr r3, [r3, #0]
80065c2: 2200 movs r2, #0
80065c4: 601a str r2, [r3, #0]
/* To start with there is a single free block that is sized to take up the
entire heap space, minus the space taken by pxEnd. */
pxFirstFreeBlock = ( void * ) pucAlignedHeap;
80065c6: 687b ldr r3, [r7, #4]
80065c8: 603b str r3, [r7, #0]
pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
80065ca: 683b ldr r3, [r7, #0]
80065cc: 68fa ldr r2, [r7, #12]
80065ce: 1ad2 subs r2, r2, r3
80065d0: 683b ldr r3, [r7, #0]
80065d2: 605a str r2, [r3, #4]
pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
80065d4: 4b0c ldr r3, [pc, #48] @ (8006608 <prvHeapInit+0xb4>)
80065d6: 681a ldr r2, [r3, #0]
80065d8: 683b ldr r3, [r7, #0]
80065da: 601a str r2, [r3, #0]
/* Only one block exists - and it covers the entire usable heap space. */
xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
80065dc: 683b ldr r3, [r7, #0]
80065de: 685b ldr r3, [r3, #4]
80065e0: 4a0a ldr r2, [pc, #40] @ (800660c <prvHeapInit+0xb8>)
80065e2: 6013 str r3, [r2, #0]
xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
80065e4: 683b ldr r3, [r7, #0]
80065e6: 685b ldr r3, [r3, #4]
80065e8: 4a09 ldr r2, [pc, #36] @ (8006610 <prvHeapInit+0xbc>)
80065ea: 6013 str r3, [r2, #0]
/* Work out the position of the top bit in a size_t variable. */
xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
80065ec: 4b09 ldr r3, [pc, #36] @ (8006614 <prvHeapInit+0xc0>)
80065ee: f04f 4200 mov.w r2, #2147483648 @ 0x80000000
80065f2: 601a str r2, [r3, #0]
}
80065f4: bf00 nop
80065f6: 3714 adds r7, #20
80065f8: 46bd mov sp, r7
80065fa: f85d 7b04 ldr.w r7, [sp], #4
80065fe: 4770 bx lr
8006600: 2000149c .word 0x2000149c
8006604: 2000509c .word 0x2000509c
8006608: 200050a4 .word 0x200050a4
800660c: 200050ac .word 0x200050ac
8006610: 200050a8 .word 0x200050a8
8006614: 200050b0 .word 0x200050b0
08006618 <prvInsertBlockIntoFreeList>:
/*-----------------------------------------------------------*/
static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
{
8006618: b480 push {r7}
800661a: b085 sub sp, #20
800661c: af00 add r7, sp, #0
800661e: 6078 str r0, [r7, #4]
BlockLink_t *pxIterator;
uint8_t *puc;
/* Iterate through the list until a block is found that has a higher address
than the block being inserted. */
for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
8006620: 4b28 ldr r3, [pc, #160] @ (80066c4 <prvInsertBlockIntoFreeList+0xac>)
8006622: 60fb str r3, [r7, #12]
8006624: e002 b.n 800662c <prvInsertBlockIntoFreeList+0x14>
8006626: 68fb ldr r3, [r7, #12]
8006628: 681b ldr r3, [r3, #0]
800662a: 60fb str r3, [r7, #12]
800662c: 68fb ldr r3, [r7, #12]
800662e: 681b ldr r3, [r3, #0]
8006630: 687a ldr r2, [r7, #4]
8006632: 429a cmp r2, r3
8006634: d8f7 bhi.n 8006626 <prvInsertBlockIntoFreeList+0xe>
/* Nothing to do here, just iterate to the right position. */
}
/* Do the block being inserted, and the block it is being inserted after
make a contiguous block of memory? */
puc = ( uint8_t * ) pxIterator;
8006636: 68fb ldr r3, [r7, #12]
8006638: 60bb str r3, [r7, #8]
if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
800663a: 68fb ldr r3, [r7, #12]
800663c: 685b ldr r3, [r3, #4]
800663e: 68ba ldr r2, [r7, #8]
8006640: 4413 add r3, r2
8006642: 687a ldr r2, [r7, #4]
8006644: 429a cmp r2, r3
8006646: d108 bne.n 800665a <prvInsertBlockIntoFreeList+0x42>
{
pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
8006648: 68fb ldr r3, [r7, #12]
800664a: 685a ldr r2, [r3, #4]
800664c: 687b ldr r3, [r7, #4]
800664e: 685b ldr r3, [r3, #4]
8006650: 441a add r2, r3
8006652: 68fb ldr r3, [r7, #12]
8006654: 605a str r2, [r3, #4]
pxBlockToInsert = pxIterator;
8006656: 68fb ldr r3, [r7, #12]
8006658: 607b str r3, [r7, #4]
mtCOVERAGE_TEST_MARKER();
}
/* Do the block being inserted, and the block it is being inserted before
make a contiguous block of memory? */
puc = ( uint8_t * ) pxBlockToInsert;
800665a: 687b ldr r3, [r7, #4]
800665c: 60bb str r3, [r7, #8]
if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
800665e: 687b ldr r3, [r7, #4]
8006660: 685b ldr r3, [r3, #4]
8006662: 68ba ldr r2, [r7, #8]
8006664: 441a add r2, r3
8006666: 68fb ldr r3, [r7, #12]
8006668: 681b ldr r3, [r3, #0]
800666a: 429a cmp r2, r3
800666c: d118 bne.n 80066a0 <prvInsertBlockIntoFreeList+0x88>
{
if( pxIterator->pxNextFreeBlock != pxEnd )
800666e: 68fb ldr r3, [r7, #12]
8006670: 681a ldr r2, [r3, #0]
8006672: 4b15 ldr r3, [pc, #84] @ (80066c8 <prvInsertBlockIntoFreeList+0xb0>)
8006674: 681b ldr r3, [r3, #0]
8006676: 429a cmp r2, r3
8006678: d00d beq.n 8006696 <prvInsertBlockIntoFreeList+0x7e>
{
/* Form one big block from the two blocks. */
pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
800667a: 687b ldr r3, [r7, #4]
800667c: 685a ldr r2, [r3, #4]
800667e: 68fb ldr r3, [r7, #12]
8006680: 681b ldr r3, [r3, #0]
8006682: 685b ldr r3, [r3, #4]
8006684: 441a add r2, r3
8006686: 687b ldr r3, [r7, #4]
8006688: 605a str r2, [r3, #4]
pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
800668a: 68fb ldr r3, [r7, #12]
800668c: 681b ldr r3, [r3, #0]
800668e: 681a ldr r2, [r3, #0]
8006690: 687b ldr r3, [r7, #4]
8006692: 601a str r2, [r3, #0]
8006694: e008 b.n 80066a8 <prvInsertBlockIntoFreeList+0x90>
}
else
{
pxBlockToInsert->pxNextFreeBlock = pxEnd;
8006696: 4b0c ldr r3, [pc, #48] @ (80066c8 <prvInsertBlockIntoFreeList+0xb0>)
8006698: 681a ldr r2, [r3, #0]
800669a: 687b ldr r3, [r7, #4]
800669c: 601a str r2, [r3, #0]
800669e: e003 b.n 80066a8 <prvInsertBlockIntoFreeList+0x90>
}
}
else
{
pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
80066a0: 68fb ldr r3, [r7, #12]
80066a2: 681a ldr r2, [r3, #0]
80066a4: 687b ldr r3, [r7, #4]
80066a6: 601a str r2, [r3, #0]
/* If the block being inserted plugged a gab, so was merged with the block
before and the block after, then it's pxNextFreeBlock pointer will have
already been set, and should not be set here as that would make it point
to itself. */
if( pxIterator != pxBlockToInsert )
80066a8: 68fa ldr r2, [r7, #12]
80066aa: 687b ldr r3, [r7, #4]
80066ac: 429a cmp r2, r3
80066ae: d002 beq.n 80066b6 <prvInsertBlockIntoFreeList+0x9e>
{
pxIterator->pxNextFreeBlock = pxBlockToInsert;
80066b0: 68fb ldr r3, [r7, #12]
80066b2: 687a ldr r2, [r7, #4]
80066b4: 601a str r2, [r3, #0]
}
else
{
mtCOVERAGE_TEST_MARKER();
}
}
80066b6: bf00 nop
80066b8: 3714 adds r7, #20
80066ba: 46bd mov sp, r7
80066bc: f85d 7b04 ldr.w r7, [sp], #4
80066c0: 4770 bx lr
80066c2: bf00 nop
80066c4: 2000509c .word 0x2000509c
80066c8: 200050a4 .word 0x200050a4
080066cc <std>:
80066cc: 2300 movs r3, #0
80066ce: b510 push {r4, lr}
80066d0: 4604 mov r4, r0
80066d2: e9c0 3300 strd r3, r3, [r0]
80066d6: e9c0 3304 strd r3, r3, [r0, #16]
80066da: 6083 str r3, [r0, #8]
80066dc: 8181 strh r1, [r0, #12]
80066de: 6643 str r3, [r0, #100] @ 0x64
80066e0: 81c2 strh r2, [r0, #14]
80066e2: 6183 str r3, [r0, #24]
80066e4: 4619 mov r1, r3
80066e6: 2208 movs r2, #8
80066e8: 305c adds r0, #92 @ 0x5c
80066ea: f000 f906 bl 80068fa <memset>
80066ee: 4b0d ldr r3, [pc, #52] @ (8006724 <std+0x58>)
80066f0: 6263 str r3, [r4, #36] @ 0x24
80066f2: 4b0d ldr r3, [pc, #52] @ (8006728 <std+0x5c>)
80066f4: 62a3 str r3, [r4, #40] @ 0x28
80066f6: 4b0d ldr r3, [pc, #52] @ (800672c <std+0x60>)
80066f8: 62e3 str r3, [r4, #44] @ 0x2c
80066fa: 4b0d ldr r3, [pc, #52] @ (8006730 <std+0x64>)
80066fc: 6323 str r3, [r4, #48] @ 0x30
80066fe: 4b0d ldr r3, [pc, #52] @ (8006734 <std+0x68>)
8006700: 6224 str r4, [r4, #32]
8006702: 429c cmp r4, r3
8006704: d006 beq.n 8006714 <std+0x48>
8006706: f103 0268 add.w r2, r3, #104 @ 0x68
800670a: 4294 cmp r4, r2
800670c: d002 beq.n 8006714 <std+0x48>
800670e: 33d0 adds r3, #208 @ 0xd0
8006710: 429c cmp r4, r3
8006712: d105 bne.n 8006720 <std+0x54>
8006714: f104 0058 add.w r0, r4, #88 @ 0x58
8006718: e8bd 4010 ldmia.w sp!, {r4, lr}
800671c: f000 b966 b.w 80069ec <__retarget_lock_init_recursive>
8006720: bd10 pop {r4, pc}
8006722: bf00 nop
8006724: 08006875 .word 0x08006875
8006728: 08006897 .word 0x08006897
800672c: 080068cf .word 0x080068cf
8006730: 080068f3 .word 0x080068f3
8006734: 200050b4 .word 0x200050b4
08006738 <stdio_exit_handler>:
8006738: 4a02 ldr r2, [pc, #8] @ (8006744 <stdio_exit_handler+0xc>)
800673a: 4903 ldr r1, [pc, #12] @ (8006748 <stdio_exit_handler+0x10>)
800673c: 4803 ldr r0, [pc, #12] @ (800674c <stdio_exit_handler+0x14>)
800673e: f000 b869 b.w 8006814 <_fwalk_sglue>
8006742: bf00 nop
8006744: 20000010 .word 0x20000010
8006748: 080072a5 .word 0x080072a5
800674c: 20000020 .word 0x20000020
08006750 <cleanup_stdio>:
8006750: 6841 ldr r1, [r0, #4]
8006752: 4b0c ldr r3, [pc, #48] @ (8006784 <cleanup_stdio+0x34>)
8006754: 4299 cmp r1, r3
8006756: b510 push {r4, lr}
8006758: 4604 mov r4, r0
800675a: d001 beq.n 8006760 <cleanup_stdio+0x10>
800675c: f000 fda2 bl 80072a4 <_fflush_r>
8006760: 68a1 ldr r1, [r4, #8]
8006762: 4b09 ldr r3, [pc, #36] @ (8006788 <cleanup_stdio+0x38>)
8006764: 4299 cmp r1, r3
8006766: d002 beq.n 800676e <cleanup_stdio+0x1e>
8006768: 4620 mov r0, r4
800676a: f000 fd9b bl 80072a4 <_fflush_r>
800676e: 68e1 ldr r1, [r4, #12]
8006770: 4b06 ldr r3, [pc, #24] @ (800678c <cleanup_stdio+0x3c>)
8006772: 4299 cmp r1, r3
8006774: d004 beq.n 8006780 <cleanup_stdio+0x30>
8006776: 4620 mov r0, r4
8006778: e8bd 4010 ldmia.w sp!, {r4, lr}
800677c: f000 bd92 b.w 80072a4 <_fflush_r>
8006780: bd10 pop {r4, pc}
8006782: bf00 nop
8006784: 200050b4 .word 0x200050b4
8006788: 2000511c .word 0x2000511c
800678c: 20005184 .word 0x20005184
08006790 <global_stdio_init.part.0>:
8006790: b510 push {r4, lr}
8006792: 4b0b ldr r3, [pc, #44] @ (80067c0 <global_stdio_init.part.0+0x30>)
8006794: 4c0b ldr r4, [pc, #44] @ (80067c4 <global_stdio_init.part.0+0x34>)
8006796: 4a0c ldr r2, [pc, #48] @ (80067c8 <global_stdio_init.part.0+0x38>)
8006798: 601a str r2, [r3, #0]
800679a: 4620 mov r0, r4
800679c: 2200 movs r2, #0
800679e: 2104 movs r1, #4
80067a0: f7ff ff94 bl 80066cc <std>
80067a4: f104 0068 add.w r0, r4, #104 @ 0x68
80067a8: 2201 movs r2, #1
80067aa: 2109 movs r1, #9
80067ac: f7ff ff8e bl 80066cc <std>
80067b0: f104 00d0 add.w r0, r4, #208 @ 0xd0
80067b4: 2202 movs r2, #2
80067b6: e8bd 4010 ldmia.w sp!, {r4, lr}
80067ba: 2112 movs r1, #18
80067bc: f7ff bf86 b.w 80066cc <std>
80067c0: 200051ec .word 0x200051ec
80067c4: 200050b4 .word 0x200050b4
80067c8: 08006739 .word 0x08006739
080067cc <__sfp_lock_acquire>:
80067cc: 4801 ldr r0, [pc, #4] @ (80067d4 <__sfp_lock_acquire+0x8>)
80067ce: f000 b90e b.w 80069ee <__retarget_lock_acquire_recursive>
80067d2: bf00 nop
80067d4: 200051f5 .word 0x200051f5
080067d8 <__sfp_lock_release>:
80067d8: 4801 ldr r0, [pc, #4] @ (80067e0 <__sfp_lock_release+0x8>)
80067da: f000 b909 b.w 80069f0 <__retarget_lock_release_recursive>
80067de: bf00 nop
80067e0: 200051f5 .word 0x200051f5
080067e4 <__sinit>:
80067e4: b510 push {r4, lr}
80067e6: 4604 mov r4, r0
80067e8: f7ff fff0 bl 80067cc <__sfp_lock_acquire>
80067ec: 6a23 ldr r3, [r4, #32]
80067ee: b11b cbz r3, 80067f8 <__sinit+0x14>
80067f0: e8bd 4010 ldmia.w sp!, {r4, lr}
80067f4: f7ff bff0 b.w 80067d8 <__sfp_lock_release>
80067f8: 4b04 ldr r3, [pc, #16] @ (800680c <__sinit+0x28>)
80067fa: 6223 str r3, [r4, #32]
80067fc: 4b04 ldr r3, [pc, #16] @ (8006810 <__sinit+0x2c>)
80067fe: 681b ldr r3, [r3, #0]
8006800: 2b00 cmp r3, #0
8006802: d1f5 bne.n 80067f0 <__sinit+0xc>
8006804: f7ff ffc4 bl 8006790 <global_stdio_init.part.0>
8006808: e7f2 b.n 80067f0 <__sinit+0xc>
800680a: bf00 nop
800680c: 08006751 .word 0x08006751
8006810: 200051ec .word 0x200051ec
08006814 <_fwalk_sglue>:
8006814: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
8006818: 4607 mov r7, r0
800681a: 4688 mov r8, r1
800681c: 4614 mov r4, r2
800681e: 2600 movs r6, #0
8006820: e9d4 9501 ldrd r9, r5, [r4, #4]
8006824: f1b9 0901 subs.w r9, r9, #1
8006828: d505 bpl.n 8006836 <_fwalk_sglue+0x22>
800682a: 6824 ldr r4, [r4, #0]
800682c: 2c00 cmp r4, #0
800682e: d1f7 bne.n 8006820 <_fwalk_sglue+0xc>
8006830: 4630 mov r0, r6
8006832: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
8006836: 89ab ldrh r3, [r5, #12]
8006838: 2b01 cmp r3, #1
800683a: d907 bls.n 800684c <_fwalk_sglue+0x38>
800683c: f9b5 300e ldrsh.w r3, [r5, #14]
8006840: 3301 adds r3, #1
8006842: d003 beq.n 800684c <_fwalk_sglue+0x38>
8006844: 4629 mov r1, r5
8006846: 4638 mov r0, r7
8006848: 47c0 blx r8
800684a: 4306 orrs r6, r0
800684c: 3568 adds r5, #104 @ 0x68
800684e: e7e9 b.n 8006824 <_fwalk_sglue+0x10>
08006850 <iprintf>:
8006850: b40f push {r0, r1, r2, r3}
8006852: b507 push {r0, r1, r2, lr}
8006854: 4906 ldr r1, [pc, #24] @ (8006870 <iprintf+0x20>)
8006856: ab04 add r3, sp, #16
8006858: 6808 ldr r0, [r1, #0]
800685a: f853 2b04 ldr.w r2, [r3], #4
800685e: 6881 ldr r1, [r0, #8]
8006860: 9301 str r3, [sp, #4]
8006862: f000 f9f7 bl 8006c54 <_vfiprintf_r>
8006866: b003 add sp, #12
8006868: f85d eb04 ldr.w lr, [sp], #4
800686c: b004 add sp, #16
800686e: 4770 bx lr
8006870: 2000001c .word 0x2000001c
08006874 <__sread>:
8006874: b510 push {r4, lr}
8006876: 460c mov r4, r1
8006878: f9b1 100e ldrsh.w r1, [r1, #14]
800687c: f000 f868 bl 8006950 <_read_r>
8006880: 2800 cmp r0, #0
8006882: bfab itete ge
8006884: 6d63 ldrge r3, [r4, #84] @ 0x54
8006886: 89a3 ldrhlt r3, [r4, #12]
8006888: 181b addge r3, r3, r0
800688a: f423 5380 biclt.w r3, r3, #4096 @ 0x1000
800688e: bfac ite ge
8006890: 6563 strge r3, [r4, #84] @ 0x54
8006892: 81a3 strhlt r3, [r4, #12]
8006894: bd10 pop {r4, pc}
08006896 <__swrite>:
8006896: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
800689a: 461f mov r7, r3
800689c: 898b ldrh r3, [r1, #12]
800689e: 05db lsls r3, r3, #23
80068a0: 4605 mov r5, r0
80068a2: 460c mov r4, r1
80068a4: 4616 mov r6, r2
80068a6: d505 bpl.n 80068b4 <__swrite+0x1e>
80068a8: f9b1 100e ldrsh.w r1, [r1, #14]
80068ac: 2302 movs r3, #2
80068ae: 2200 movs r2, #0
80068b0: f000 f83c bl 800692c <_lseek_r>
80068b4: 89a3 ldrh r3, [r4, #12]
80068b6: f9b4 100e ldrsh.w r1, [r4, #14]
80068ba: f423 5380 bic.w r3, r3, #4096 @ 0x1000
80068be: 81a3 strh r3, [r4, #12]
80068c0: 4632 mov r2, r6
80068c2: 463b mov r3, r7
80068c4: 4628 mov r0, r5
80068c6: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr}
80068ca: f000 b853 b.w 8006974 <_write_r>
080068ce <__sseek>:
80068ce: b510 push {r4, lr}
80068d0: 460c mov r4, r1
80068d2: f9b1 100e ldrsh.w r1, [r1, #14]
80068d6: f000 f829 bl 800692c <_lseek_r>
80068da: 1c43 adds r3, r0, #1
80068dc: 89a3 ldrh r3, [r4, #12]
80068de: bf15 itete ne
80068e0: 6560 strne r0, [r4, #84] @ 0x54
80068e2: f423 5380 biceq.w r3, r3, #4096 @ 0x1000
80068e6: f443 5380 orrne.w r3, r3, #4096 @ 0x1000
80068ea: 81a3 strheq r3, [r4, #12]
80068ec: bf18 it ne
80068ee: 81a3 strhne r3, [r4, #12]
80068f0: bd10 pop {r4, pc}
080068f2 <__sclose>:
80068f2: f9b1 100e ldrsh.w r1, [r1, #14]
80068f6: f000 b809 b.w 800690c <_close_r>
080068fa <memset>:
80068fa: 4402 add r2, r0
80068fc: 4603 mov r3, r0
80068fe: 4293 cmp r3, r2
8006900: d100 bne.n 8006904 <memset+0xa>
8006902: 4770 bx lr
8006904: f803 1b01 strb.w r1, [r3], #1
8006908: e7f9 b.n 80068fe <memset+0x4>
...
0800690c <_close_r>:
800690c: b538 push {r3, r4, r5, lr}
800690e: 4d06 ldr r5, [pc, #24] @ (8006928 <_close_r+0x1c>)
8006910: 2300 movs r3, #0
8006912: 4604 mov r4, r0
8006914: 4608 mov r0, r1
8006916: 602b str r3, [r5, #0]
8006918: f7fa fcf7 bl 800130a <_close>
800691c: 1c43 adds r3, r0, #1
800691e: d102 bne.n 8006926 <_close_r+0x1a>
8006920: 682b ldr r3, [r5, #0]
8006922: b103 cbz r3, 8006926 <_close_r+0x1a>
8006924: 6023 str r3, [r4, #0]
8006926: bd38 pop {r3, r4, r5, pc}
8006928: 200051f0 .word 0x200051f0
0800692c <_lseek_r>:
800692c: b538 push {r3, r4, r5, lr}
800692e: 4d07 ldr r5, [pc, #28] @ (800694c <_lseek_r+0x20>)
8006930: 4604 mov r4, r0
8006932: 4608 mov r0, r1
8006934: 4611 mov r1, r2
8006936: 2200 movs r2, #0
8006938: 602a str r2, [r5, #0]
800693a: 461a mov r2, r3
800693c: f7fa fd0c bl 8001358 <_lseek>
8006940: 1c43 adds r3, r0, #1
8006942: d102 bne.n 800694a <_lseek_r+0x1e>
8006944: 682b ldr r3, [r5, #0]
8006946: b103 cbz r3, 800694a <_lseek_r+0x1e>
8006948: 6023 str r3, [r4, #0]
800694a: bd38 pop {r3, r4, r5, pc}
800694c: 200051f0 .word 0x200051f0
08006950 <_read_r>:
8006950: b538 push {r3, r4, r5, lr}
8006952: 4d07 ldr r5, [pc, #28] @ (8006970 <_read_r+0x20>)
8006954: 4604 mov r4, r0
8006956: 4608 mov r0, r1
8006958: 4611 mov r1, r2
800695a: 2200 movs r2, #0
800695c: 602a str r2, [r5, #0]
800695e: 461a mov r2, r3
8006960: f7fa fcb6 bl 80012d0 <_read>
8006964: 1c43 adds r3, r0, #1
8006966: d102 bne.n 800696e <_read_r+0x1e>
8006968: 682b ldr r3, [r5, #0]
800696a: b103 cbz r3, 800696e <_read_r+0x1e>
800696c: 6023 str r3, [r4, #0]
800696e: bd38 pop {r3, r4, r5, pc}
8006970: 200051f0 .word 0x200051f0
08006974 <_write_r>:
8006974: b538 push {r3, r4, r5, lr}
8006976: 4d07 ldr r5, [pc, #28] @ (8006994 <_write_r+0x20>)
8006978: 4604 mov r4, r0
800697a: 4608 mov r0, r1
800697c: 4611 mov r1, r2
800697e: 2200 movs r2, #0
8006980: 602a str r2, [r5, #0]
8006982: 461a mov r2, r3
8006984: f7f9 fe32 bl 80005ec <_write>
8006988: 1c43 adds r3, r0, #1
800698a: d102 bne.n 8006992 <_write_r+0x1e>
800698c: 682b ldr r3, [r5, #0]
800698e: b103 cbz r3, 8006992 <_write_r+0x1e>
8006990: 6023 str r3, [r4, #0]
8006992: bd38 pop {r3, r4, r5, pc}
8006994: 200051f0 .word 0x200051f0
08006998 <__errno>:
8006998: 4b01 ldr r3, [pc, #4] @ (80069a0 <__errno+0x8>)
800699a: 6818 ldr r0, [r3, #0]
800699c: 4770 bx lr
800699e: bf00 nop
80069a0: 2000001c .word 0x2000001c
080069a4 <__libc_init_array>:
80069a4: b570 push {r4, r5, r6, lr}
80069a6: 4d0d ldr r5, [pc, #52] @ (80069dc <__libc_init_array+0x38>)
80069a8: 4c0d ldr r4, [pc, #52] @ (80069e0 <__libc_init_array+0x3c>)
80069aa: 1b64 subs r4, r4, r5
80069ac: 10a4 asrs r4, r4, #2
80069ae: 2600 movs r6, #0
80069b0: 42a6 cmp r6, r4
80069b2: d109 bne.n 80069c8 <__libc_init_array+0x24>
80069b4: 4d0b ldr r5, [pc, #44] @ (80069e4 <__libc_init_array+0x40>)
80069b6: 4c0c ldr r4, [pc, #48] @ (80069e8 <__libc_init_array+0x44>)
80069b8: f000 fdc4 bl 8007544 <_init>
80069bc: 1b64 subs r4, r4, r5
80069be: 10a4 asrs r4, r4, #2
80069c0: 2600 movs r6, #0
80069c2: 42a6 cmp r6, r4
80069c4: d105 bne.n 80069d2 <__libc_init_array+0x2e>
80069c6: bd70 pop {r4, r5, r6, pc}
80069c8: f855 3b04 ldr.w r3, [r5], #4
80069cc: 4798 blx r3
80069ce: 3601 adds r6, #1
80069d0: e7ee b.n 80069b0 <__libc_init_array+0xc>
80069d2: f855 3b04 ldr.w r3, [r5], #4
80069d6: 4798 blx r3
80069d8: 3601 adds r6, #1
80069da: e7f2 b.n 80069c2 <__libc_init_array+0x1e>
80069dc: 08007638 .word 0x08007638
80069e0: 08007638 .word 0x08007638
80069e4: 08007638 .word 0x08007638
80069e8: 0800763c .word 0x0800763c
080069ec <__retarget_lock_init_recursive>:
80069ec: 4770 bx lr
080069ee <__retarget_lock_acquire_recursive>:
80069ee: 4770 bx lr
080069f0 <__retarget_lock_release_recursive>:
80069f0: 4770 bx lr
080069f2 <memcpy>:
80069f2: 440a add r2, r1
80069f4: 4291 cmp r1, r2
80069f6: f100 33ff add.w r3, r0, #4294967295 @ 0xffffffff
80069fa: d100 bne.n 80069fe <memcpy+0xc>
80069fc: 4770 bx lr
80069fe: b510 push {r4, lr}
8006a00: f811 4b01 ldrb.w r4, [r1], #1
8006a04: f803 4f01 strb.w r4, [r3, #1]!
8006a08: 4291 cmp r1, r2
8006a0a: d1f9 bne.n 8006a00 <memcpy+0xe>
8006a0c: bd10 pop {r4, pc}
...
08006a10 <_free_r>:
8006a10: b538 push {r3, r4, r5, lr}
8006a12: 4605 mov r5, r0
8006a14: 2900 cmp r1, #0
8006a16: d041 beq.n 8006a9c <_free_r+0x8c>
8006a18: f851 3c04 ldr.w r3, [r1, #-4]
8006a1c: 1f0c subs r4, r1, #4
8006a1e: 2b00 cmp r3, #0
8006a20: bfb8 it lt
8006a22: 18e4 addlt r4, r4, r3
8006a24: f000 f8e0 bl 8006be8 <__malloc_lock>
8006a28: 4a1d ldr r2, [pc, #116] @ (8006aa0 <_free_r+0x90>)
8006a2a: 6813 ldr r3, [r2, #0]
8006a2c: b933 cbnz r3, 8006a3c <_free_r+0x2c>
8006a2e: 6063 str r3, [r4, #4]
8006a30: 6014 str r4, [r2, #0]
8006a32: 4628 mov r0, r5
8006a34: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr}
8006a38: f000 b8dc b.w 8006bf4 <__malloc_unlock>
8006a3c: 42a3 cmp r3, r4
8006a3e: d908 bls.n 8006a52 <_free_r+0x42>
8006a40: 6820 ldr r0, [r4, #0]
8006a42: 1821 adds r1, r4, r0
8006a44: 428b cmp r3, r1
8006a46: bf01 itttt eq
8006a48: 6819 ldreq r1, [r3, #0]
8006a4a: 685b ldreq r3, [r3, #4]
8006a4c: 1809 addeq r1, r1, r0
8006a4e: 6021 streq r1, [r4, #0]
8006a50: e7ed b.n 8006a2e <_free_r+0x1e>
8006a52: 461a mov r2, r3
8006a54: 685b ldr r3, [r3, #4]
8006a56: b10b cbz r3, 8006a5c <_free_r+0x4c>
8006a58: 42a3 cmp r3, r4
8006a5a: d9fa bls.n 8006a52 <_free_r+0x42>
8006a5c: 6811 ldr r1, [r2, #0]
8006a5e: 1850 adds r0, r2, r1
8006a60: 42a0 cmp r0, r4
8006a62: d10b bne.n 8006a7c <_free_r+0x6c>
8006a64: 6820 ldr r0, [r4, #0]
8006a66: 4401 add r1, r0
8006a68: 1850 adds r0, r2, r1
8006a6a: 4283 cmp r3, r0
8006a6c: 6011 str r1, [r2, #0]
8006a6e: d1e0 bne.n 8006a32 <_free_r+0x22>
8006a70: 6818 ldr r0, [r3, #0]
8006a72: 685b ldr r3, [r3, #4]
8006a74: 6053 str r3, [r2, #4]
8006a76: 4408 add r0, r1
8006a78: 6010 str r0, [r2, #0]
8006a7a: e7da b.n 8006a32 <_free_r+0x22>
8006a7c: d902 bls.n 8006a84 <_free_r+0x74>
8006a7e: 230c movs r3, #12
8006a80: 602b str r3, [r5, #0]
8006a82: e7d6 b.n 8006a32 <_free_r+0x22>
8006a84: 6820 ldr r0, [r4, #0]
8006a86: 1821 adds r1, r4, r0
8006a88: 428b cmp r3, r1
8006a8a: bf04 itt eq
8006a8c: 6819 ldreq r1, [r3, #0]
8006a8e: 685b ldreq r3, [r3, #4]
8006a90: 6063 str r3, [r4, #4]
8006a92: bf04 itt eq
8006a94: 1809 addeq r1, r1, r0
8006a96: 6021 streq r1, [r4, #0]
8006a98: 6054 str r4, [r2, #4]
8006a9a: e7ca b.n 8006a32 <_free_r+0x22>
8006a9c: bd38 pop {r3, r4, r5, pc}
8006a9e: bf00 nop
8006aa0: 200051fc .word 0x200051fc
08006aa4 <sbrk_aligned>:
8006aa4: b570 push {r4, r5, r6, lr}
8006aa6: 4e0f ldr r6, [pc, #60] @ (8006ae4 <sbrk_aligned+0x40>)
8006aa8: 460c mov r4, r1
8006aaa: 6831 ldr r1, [r6, #0]
8006aac: 4605 mov r5, r0
8006aae: b911 cbnz r1, 8006ab6 <sbrk_aligned+0x12>
8006ab0: f000 fcb4 bl 800741c <_sbrk_r>
8006ab4: 6030 str r0, [r6, #0]
8006ab6: 4621 mov r1, r4
8006ab8: 4628 mov r0, r5
8006aba: f000 fcaf bl 800741c <_sbrk_r>
8006abe: 1c43 adds r3, r0, #1
8006ac0: d103 bne.n 8006aca <sbrk_aligned+0x26>
8006ac2: f04f 34ff mov.w r4, #4294967295 @ 0xffffffff
8006ac6: 4620 mov r0, r4
8006ac8: bd70 pop {r4, r5, r6, pc}
8006aca: 1cc4 adds r4, r0, #3
8006acc: f024 0403 bic.w r4, r4, #3
8006ad0: 42a0 cmp r0, r4
8006ad2: d0f8 beq.n 8006ac6 <sbrk_aligned+0x22>
8006ad4: 1a21 subs r1, r4, r0
8006ad6: 4628 mov r0, r5
8006ad8: f000 fca0 bl 800741c <_sbrk_r>
8006adc: 3001 adds r0, #1
8006ade: d1f2 bne.n 8006ac6 <sbrk_aligned+0x22>
8006ae0: e7ef b.n 8006ac2 <sbrk_aligned+0x1e>
8006ae2: bf00 nop
8006ae4: 200051f8 .word 0x200051f8
08006ae8 <_malloc_r>:
8006ae8: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
8006aec: 1ccd adds r5, r1, #3
8006aee: f025 0503 bic.w r5, r5, #3
8006af2: 3508 adds r5, #8
8006af4: 2d0c cmp r5, #12
8006af6: bf38 it cc
8006af8: 250c movcc r5, #12
8006afa: 2d00 cmp r5, #0
8006afc: 4606 mov r6, r0
8006afe: db01 blt.n 8006b04 <_malloc_r+0x1c>
8006b00: 42a9 cmp r1, r5
8006b02: d904 bls.n 8006b0e <_malloc_r+0x26>
8006b04: 230c movs r3, #12
8006b06: 6033 str r3, [r6, #0]
8006b08: 2000 movs r0, #0
8006b0a: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc}
8006b0e: f8df 80d4 ldr.w r8, [pc, #212] @ 8006be4 <_malloc_r+0xfc>
8006b12: f000 f869 bl 8006be8 <__malloc_lock>
8006b16: f8d8 3000 ldr.w r3, [r8]
8006b1a: 461c mov r4, r3
8006b1c: bb44 cbnz r4, 8006b70 <_malloc_r+0x88>
8006b1e: 4629 mov r1, r5
8006b20: 4630 mov r0, r6
8006b22: f7ff ffbf bl 8006aa4 <sbrk_aligned>
8006b26: 1c43 adds r3, r0, #1
8006b28: 4604 mov r4, r0
8006b2a: d158 bne.n 8006bde <_malloc_r+0xf6>
8006b2c: f8d8 4000 ldr.w r4, [r8]
8006b30: 4627 mov r7, r4
8006b32: 2f00 cmp r7, #0
8006b34: d143 bne.n 8006bbe <_malloc_r+0xd6>
8006b36: 2c00 cmp r4, #0
8006b38: d04b beq.n 8006bd2 <_malloc_r+0xea>
8006b3a: 6823 ldr r3, [r4, #0]
8006b3c: 4639 mov r1, r7
8006b3e: 4630 mov r0, r6
8006b40: eb04 0903 add.w r9, r4, r3
8006b44: f000 fc6a bl 800741c <_sbrk_r>
8006b48: 4581 cmp r9, r0
8006b4a: d142 bne.n 8006bd2 <_malloc_r+0xea>
8006b4c: 6821 ldr r1, [r4, #0]
8006b4e: 1a6d subs r5, r5, r1
8006b50: 4629 mov r1, r5
8006b52: 4630 mov r0, r6
8006b54: f7ff ffa6 bl 8006aa4 <sbrk_aligned>
8006b58: 3001 adds r0, #1
8006b5a: d03a beq.n 8006bd2 <_malloc_r+0xea>
8006b5c: 6823 ldr r3, [r4, #0]
8006b5e: 442b add r3, r5
8006b60: 6023 str r3, [r4, #0]
8006b62: f8d8 3000 ldr.w r3, [r8]
8006b66: 685a ldr r2, [r3, #4]
8006b68: bb62 cbnz r2, 8006bc4 <_malloc_r+0xdc>
8006b6a: f8c8 7000 str.w r7, [r8]
8006b6e: e00f b.n 8006b90 <_malloc_r+0xa8>
8006b70: 6822 ldr r2, [r4, #0]
8006b72: 1b52 subs r2, r2, r5
8006b74: d420 bmi.n 8006bb8 <_malloc_r+0xd0>
8006b76: 2a0b cmp r2, #11
8006b78: d917 bls.n 8006baa <_malloc_r+0xc2>
8006b7a: 1961 adds r1, r4, r5
8006b7c: 42a3 cmp r3, r4
8006b7e: 6025 str r5, [r4, #0]
8006b80: bf18 it ne
8006b82: 6059 strne r1, [r3, #4]
8006b84: 6863 ldr r3, [r4, #4]
8006b86: bf08 it eq
8006b88: f8c8 1000 streq.w r1, [r8]
8006b8c: 5162 str r2, [r4, r5]
8006b8e: 604b str r3, [r1, #4]
8006b90: 4630 mov r0, r6
8006b92: f000 f82f bl 8006bf4 <__malloc_unlock>
8006b96: f104 000b add.w r0, r4, #11
8006b9a: 1d23 adds r3, r4, #4
8006b9c: f020 0007 bic.w r0, r0, #7
8006ba0: 1ac2 subs r2, r0, r3
8006ba2: bf1c itt ne
8006ba4: 1a1b subne r3, r3, r0
8006ba6: 50a3 strne r3, [r4, r2]
8006ba8: e7af b.n 8006b0a <_malloc_r+0x22>
8006baa: 6862 ldr r2, [r4, #4]
8006bac: 42a3 cmp r3, r4
8006bae: bf0c ite eq
8006bb0: f8c8 2000 streq.w r2, [r8]
8006bb4: 605a strne r2, [r3, #4]
8006bb6: e7eb b.n 8006b90 <_malloc_r+0xa8>
8006bb8: 4623 mov r3, r4
8006bba: 6864 ldr r4, [r4, #4]
8006bbc: e7ae b.n 8006b1c <_malloc_r+0x34>
8006bbe: 463c mov r4, r7
8006bc0: 687f ldr r7, [r7, #4]
8006bc2: e7b6 b.n 8006b32 <_malloc_r+0x4a>
8006bc4: 461a mov r2, r3
8006bc6: 685b ldr r3, [r3, #4]
8006bc8: 42a3 cmp r3, r4
8006bca: d1fb bne.n 8006bc4 <_malloc_r+0xdc>
8006bcc: 2300 movs r3, #0
8006bce: 6053 str r3, [r2, #4]
8006bd0: e7de b.n 8006b90 <_malloc_r+0xa8>
8006bd2: 230c movs r3, #12
8006bd4: 6033 str r3, [r6, #0]
8006bd6: 4630 mov r0, r6
8006bd8: f000 f80c bl 8006bf4 <__malloc_unlock>
8006bdc: e794 b.n 8006b08 <_malloc_r+0x20>
8006bde: 6005 str r5, [r0, #0]
8006be0: e7d6 b.n 8006b90 <_malloc_r+0xa8>
8006be2: bf00 nop
8006be4: 200051fc .word 0x200051fc
08006be8 <__malloc_lock>:
8006be8: 4801 ldr r0, [pc, #4] @ (8006bf0 <__malloc_lock+0x8>)
8006bea: f7ff bf00 b.w 80069ee <__retarget_lock_acquire_recursive>
8006bee: bf00 nop
8006bf0: 200051f4 .word 0x200051f4
08006bf4 <__malloc_unlock>:
8006bf4: 4801 ldr r0, [pc, #4] @ (8006bfc <__malloc_unlock+0x8>)
8006bf6: f7ff befb b.w 80069f0 <__retarget_lock_release_recursive>
8006bfa: bf00 nop
8006bfc: 200051f4 .word 0x200051f4
08006c00 <__sfputc_r>:
8006c00: 6893 ldr r3, [r2, #8]
8006c02: 3b01 subs r3, #1
8006c04: 2b00 cmp r3, #0
8006c06: b410 push {r4}
8006c08: 6093 str r3, [r2, #8]
8006c0a: da08 bge.n 8006c1e <__sfputc_r+0x1e>
8006c0c: 6994 ldr r4, [r2, #24]
8006c0e: 42a3 cmp r3, r4
8006c10: db01 blt.n 8006c16 <__sfputc_r+0x16>
8006c12: 290a cmp r1, #10
8006c14: d103 bne.n 8006c1e <__sfputc_r+0x1e>
8006c16: f85d 4b04 ldr.w r4, [sp], #4
8006c1a: f000 bb6b b.w 80072f4 <__swbuf_r>
8006c1e: 6813 ldr r3, [r2, #0]
8006c20: 1c58 adds r0, r3, #1
8006c22: 6010 str r0, [r2, #0]
8006c24: 7019 strb r1, [r3, #0]
8006c26: 4608 mov r0, r1
8006c28: f85d 4b04 ldr.w r4, [sp], #4
8006c2c: 4770 bx lr
08006c2e <__sfputs_r>:
8006c2e: b5f8 push {r3, r4, r5, r6, r7, lr}
8006c30: 4606 mov r6, r0
8006c32: 460f mov r7, r1
8006c34: 4614 mov r4, r2
8006c36: 18d5 adds r5, r2, r3
8006c38: 42ac cmp r4, r5
8006c3a: d101 bne.n 8006c40 <__sfputs_r+0x12>
8006c3c: 2000 movs r0, #0
8006c3e: e007 b.n 8006c50 <__sfputs_r+0x22>
8006c40: f814 1b01 ldrb.w r1, [r4], #1
8006c44: 463a mov r2, r7
8006c46: 4630 mov r0, r6
8006c48: f7ff ffda bl 8006c00 <__sfputc_r>
8006c4c: 1c43 adds r3, r0, #1
8006c4e: d1f3 bne.n 8006c38 <__sfputs_r+0xa>
8006c50: bdf8 pop {r3, r4, r5, r6, r7, pc}
...
08006c54 <_vfiprintf_r>:
8006c54: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr}
8006c58: 460d mov r5, r1
8006c5a: b09d sub sp, #116 @ 0x74
8006c5c: 4614 mov r4, r2
8006c5e: 4698 mov r8, r3
8006c60: 4606 mov r6, r0
8006c62: b118 cbz r0, 8006c6c <_vfiprintf_r+0x18>
8006c64: 6a03 ldr r3, [r0, #32]
8006c66: b90b cbnz r3, 8006c6c <_vfiprintf_r+0x18>
8006c68: f7ff fdbc bl 80067e4 <__sinit>
8006c6c: 6e6b ldr r3, [r5, #100] @ 0x64
8006c6e: 07d9 lsls r1, r3, #31
8006c70: d405 bmi.n 8006c7e <_vfiprintf_r+0x2a>
8006c72: 89ab ldrh r3, [r5, #12]
8006c74: 059a lsls r2, r3, #22
8006c76: d402 bmi.n 8006c7e <_vfiprintf_r+0x2a>
8006c78: 6da8 ldr r0, [r5, #88] @ 0x58
8006c7a: f7ff feb8 bl 80069ee <__retarget_lock_acquire_recursive>
8006c7e: 89ab ldrh r3, [r5, #12]
8006c80: 071b lsls r3, r3, #28
8006c82: d501 bpl.n 8006c88 <_vfiprintf_r+0x34>
8006c84: 692b ldr r3, [r5, #16]
8006c86: b99b cbnz r3, 8006cb0 <_vfiprintf_r+0x5c>
8006c88: 4629 mov r1, r5
8006c8a: 4630 mov r0, r6
8006c8c: f000 fb70 bl 8007370 <__swsetup_r>
8006c90: b170 cbz r0, 8006cb0 <_vfiprintf_r+0x5c>
8006c92: 6e6b ldr r3, [r5, #100] @ 0x64
8006c94: 07dc lsls r4, r3, #31
8006c96: d504 bpl.n 8006ca2 <_vfiprintf_r+0x4e>
8006c98: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
8006c9c: b01d add sp, #116 @ 0x74
8006c9e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc}
8006ca2: 89ab ldrh r3, [r5, #12]
8006ca4: 0598 lsls r0, r3, #22
8006ca6: d4f7 bmi.n 8006c98 <_vfiprintf_r+0x44>
8006ca8: 6da8 ldr r0, [r5, #88] @ 0x58
8006caa: f7ff fea1 bl 80069f0 <__retarget_lock_release_recursive>
8006cae: e7f3 b.n 8006c98 <_vfiprintf_r+0x44>
8006cb0: 2300 movs r3, #0
8006cb2: 9309 str r3, [sp, #36] @ 0x24
8006cb4: 2320 movs r3, #32
8006cb6: f88d 3029 strb.w r3, [sp, #41] @ 0x29
8006cba: f8cd 800c str.w r8, [sp, #12]
8006cbe: 2330 movs r3, #48 @ 0x30
8006cc0: f8df 81ac ldr.w r8, [pc, #428] @ 8006e70 <_vfiprintf_r+0x21c>
8006cc4: f88d 302a strb.w r3, [sp, #42] @ 0x2a
8006cc8: f04f 0901 mov.w r9, #1
8006ccc: 4623 mov r3, r4
8006cce: 469a mov sl, r3
8006cd0: f813 2b01 ldrb.w r2, [r3], #1
8006cd4: b10a cbz r2, 8006cda <_vfiprintf_r+0x86>
8006cd6: 2a25 cmp r2, #37 @ 0x25
8006cd8: d1f9 bne.n 8006cce <_vfiprintf_r+0x7a>
8006cda: ebba 0b04 subs.w fp, sl, r4
8006cde: d00b beq.n 8006cf8 <_vfiprintf_r+0xa4>
8006ce0: 465b mov r3, fp
8006ce2: 4622 mov r2, r4
8006ce4: 4629 mov r1, r5
8006ce6: 4630 mov r0, r6
8006ce8: f7ff ffa1 bl 8006c2e <__sfputs_r>
8006cec: 3001 adds r0, #1
8006cee: f000 80a7 beq.w 8006e40 <_vfiprintf_r+0x1ec>
8006cf2: 9a09 ldr r2, [sp, #36] @ 0x24
8006cf4: 445a add r2, fp
8006cf6: 9209 str r2, [sp, #36] @ 0x24
8006cf8: f89a 3000 ldrb.w r3, [sl]
8006cfc: 2b00 cmp r3, #0
8006cfe: f000 809f beq.w 8006e40 <_vfiprintf_r+0x1ec>
8006d02: 2300 movs r3, #0
8006d04: f04f 32ff mov.w r2, #4294967295 @ 0xffffffff
8006d08: e9cd 2305 strd r2, r3, [sp, #20]
8006d0c: f10a 0a01 add.w sl, sl, #1
8006d10: 9304 str r3, [sp, #16]
8006d12: 9307 str r3, [sp, #28]
8006d14: f88d 3053 strb.w r3, [sp, #83] @ 0x53
8006d18: 931a str r3, [sp, #104] @ 0x68
8006d1a: 4654 mov r4, sl
8006d1c: 2205 movs r2, #5
8006d1e: f814 1b01 ldrb.w r1, [r4], #1
8006d22: 4853 ldr r0, [pc, #332] @ (8006e70 <_vfiprintf_r+0x21c>)
8006d24: f7f9 fa7c bl 8000220 <memchr>
8006d28: 9a04 ldr r2, [sp, #16]
8006d2a: b9d8 cbnz r0, 8006d64 <_vfiprintf_r+0x110>
8006d2c: 06d1 lsls r1, r2, #27
8006d2e: bf44 itt mi
8006d30: 2320 movmi r3, #32
8006d32: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
8006d36: 0713 lsls r3, r2, #28
8006d38: bf44 itt mi
8006d3a: 232b movmi r3, #43 @ 0x2b
8006d3c: f88d 3053 strbmi.w r3, [sp, #83] @ 0x53
8006d40: f89a 3000 ldrb.w r3, [sl]
8006d44: 2b2a cmp r3, #42 @ 0x2a
8006d46: d015 beq.n 8006d74 <_vfiprintf_r+0x120>
8006d48: 9a07 ldr r2, [sp, #28]
8006d4a: 4654 mov r4, sl
8006d4c: 2000 movs r0, #0
8006d4e: f04f 0c0a mov.w ip, #10
8006d52: 4621 mov r1, r4
8006d54: f811 3b01 ldrb.w r3, [r1], #1
8006d58: 3b30 subs r3, #48 @ 0x30
8006d5a: 2b09 cmp r3, #9
8006d5c: d94b bls.n 8006df6 <_vfiprintf_r+0x1a2>
8006d5e: b1b0 cbz r0, 8006d8e <_vfiprintf_r+0x13a>
8006d60: 9207 str r2, [sp, #28]
8006d62: e014 b.n 8006d8e <_vfiprintf_r+0x13a>
8006d64: eba0 0308 sub.w r3, r0, r8
8006d68: fa09 f303 lsl.w r3, r9, r3
8006d6c: 4313 orrs r3, r2
8006d6e: 9304 str r3, [sp, #16]
8006d70: 46a2 mov sl, r4
8006d72: e7d2 b.n 8006d1a <_vfiprintf_r+0xc6>
8006d74: 9b03 ldr r3, [sp, #12]
8006d76: 1d19 adds r1, r3, #4
8006d78: 681b ldr r3, [r3, #0]
8006d7a: 9103 str r1, [sp, #12]
8006d7c: 2b00 cmp r3, #0
8006d7e: bfbb ittet lt
8006d80: 425b neglt r3, r3
8006d82: f042 0202 orrlt.w r2, r2, #2
8006d86: 9307 strge r3, [sp, #28]
8006d88: 9307 strlt r3, [sp, #28]
8006d8a: bfb8 it lt
8006d8c: 9204 strlt r2, [sp, #16]
8006d8e: 7823 ldrb r3, [r4, #0]
8006d90: 2b2e cmp r3, #46 @ 0x2e
8006d92: d10a bne.n 8006daa <_vfiprintf_r+0x156>
8006d94: 7863 ldrb r3, [r4, #1]
8006d96: 2b2a cmp r3, #42 @ 0x2a
8006d98: d132 bne.n 8006e00 <_vfiprintf_r+0x1ac>
8006d9a: 9b03 ldr r3, [sp, #12]
8006d9c: 1d1a adds r2, r3, #4
8006d9e: 681b ldr r3, [r3, #0]
8006da0: 9203 str r2, [sp, #12]
8006da2: ea43 73e3 orr.w r3, r3, r3, asr #31
8006da6: 3402 adds r4, #2
8006da8: 9305 str r3, [sp, #20]
8006daa: f8df a0d4 ldr.w sl, [pc, #212] @ 8006e80 <_vfiprintf_r+0x22c>
8006dae: 7821 ldrb r1, [r4, #0]
8006db0: 2203 movs r2, #3
8006db2: 4650 mov r0, sl
8006db4: f7f9 fa34 bl 8000220 <memchr>
8006db8: b138 cbz r0, 8006dca <_vfiprintf_r+0x176>
8006dba: 9b04 ldr r3, [sp, #16]
8006dbc: eba0 000a sub.w r0, r0, sl
8006dc0: 2240 movs r2, #64 @ 0x40
8006dc2: 4082 lsls r2, r0
8006dc4: 4313 orrs r3, r2
8006dc6: 3401 adds r4, #1
8006dc8: 9304 str r3, [sp, #16]
8006dca: f814 1b01 ldrb.w r1, [r4], #1
8006dce: 4829 ldr r0, [pc, #164] @ (8006e74 <_vfiprintf_r+0x220>)
8006dd0: f88d 1028 strb.w r1, [sp, #40] @ 0x28
8006dd4: 2206 movs r2, #6
8006dd6: f7f9 fa23 bl 8000220 <memchr>
8006dda: 2800 cmp r0, #0
8006ddc: d03f beq.n 8006e5e <_vfiprintf_r+0x20a>
8006dde: 4b26 ldr r3, [pc, #152] @ (8006e78 <_vfiprintf_r+0x224>)
8006de0: bb1b cbnz r3, 8006e2a <_vfiprintf_r+0x1d6>
8006de2: 9b03 ldr r3, [sp, #12]
8006de4: 3307 adds r3, #7
8006de6: f023 0307 bic.w r3, r3, #7
8006dea: 3308 adds r3, #8
8006dec: 9303 str r3, [sp, #12]
8006dee: 9b09 ldr r3, [sp, #36] @ 0x24
8006df0: 443b add r3, r7
8006df2: 9309 str r3, [sp, #36] @ 0x24
8006df4: e76a b.n 8006ccc <_vfiprintf_r+0x78>
8006df6: fb0c 3202 mla r2, ip, r2, r3
8006dfa: 460c mov r4, r1
8006dfc: 2001 movs r0, #1
8006dfe: e7a8 b.n 8006d52 <_vfiprintf_r+0xfe>
8006e00: 2300 movs r3, #0
8006e02: 3401 adds r4, #1
8006e04: 9305 str r3, [sp, #20]
8006e06: 4619 mov r1, r3
8006e08: f04f 0c0a mov.w ip, #10
8006e0c: 4620 mov r0, r4
8006e0e: f810 2b01 ldrb.w r2, [r0], #1
8006e12: 3a30 subs r2, #48 @ 0x30
8006e14: 2a09 cmp r2, #9
8006e16: d903 bls.n 8006e20 <_vfiprintf_r+0x1cc>
8006e18: 2b00 cmp r3, #0
8006e1a: d0c6 beq.n 8006daa <_vfiprintf_r+0x156>
8006e1c: 9105 str r1, [sp, #20]
8006e1e: e7c4 b.n 8006daa <_vfiprintf_r+0x156>
8006e20: fb0c 2101 mla r1, ip, r1, r2
8006e24: 4604 mov r4, r0
8006e26: 2301 movs r3, #1
8006e28: e7f0 b.n 8006e0c <_vfiprintf_r+0x1b8>
8006e2a: ab03 add r3, sp, #12
8006e2c: 9300 str r3, [sp, #0]
8006e2e: 462a mov r2, r5
8006e30: 4b12 ldr r3, [pc, #72] @ (8006e7c <_vfiprintf_r+0x228>)
8006e32: a904 add r1, sp, #16
8006e34: 4630 mov r0, r6
8006e36: f3af 8000 nop.w
8006e3a: 4607 mov r7, r0
8006e3c: 1c78 adds r0, r7, #1
8006e3e: d1d6 bne.n 8006dee <_vfiprintf_r+0x19a>
8006e40: 6e6b ldr r3, [r5, #100] @ 0x64
8006e42: 07d9 lsls r1, r3, #31
8006e44: d405 bmi.n 8006e52 <_vfiprintf_r+0x1fe>
8006e46: 89ab ldrh r3, [r5, #12]
8006e48: 059a lsls r2, r3, #22
8006e4a: d402 bmi.n 8006e52 <_vfiprintf_r+0x1fe>
8006e4c: 6da8 ldr r0, [r5, #88] @ 0x58
8006e4e: f7ff fdcf bl 80069f0 <__retarget_lock_release_recursive>
8006e52: 89ab ldrh r3, [r5, #12]
8006e54: 065b lsls r3, r3, #25
8006e56: f53f af1f bmi.w 8006c98 <_vfiprintf_r+0x44>
8006e5a: 9809 ldr r0, [sp, #36] @ 0x24
8006e5c: e71e b.n 8006c9c <_vfiprintf_r+0x48>
8006e5e: ab03 add r3, sp, #12
8006e60: 9300 str r3, [sp, #0]
8006e62: 462a mov r2, r5
8006e64: 4b05 ldr r3, [pc, #20] @ (8006e7c <_vfiprintf_r+0x228>)
8006e66: a904 add r1, sp, #16
8006e68: 4630 mov r0, r6
8006e6a: f000 f879 bl 8006f60 <_printf_i>
8006e6e: e7e4 b.n 8006e3a <_vfiprintf_r+0x1e6>
8006e70: 080075fc .word 0x080075fc
8006e74: 08007606 .word 0x08007606
8006e78: 00000000 .word 0x00000000
8006e7c: 08006c2f .word 0x08006c2f
8006e80: 08007602 .word 0x08007602
08006e84 <_printf_common>:
8006e84: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr}
8006e88: 4616 mov r6, r2
8006e8a: 4698 mov r8, r3
8006e8c: 688a ldr r2, [r1, #8]
8006e8e: 690b ldr r3, [r1, #16]
8006e90: f8dd 9020 ldr.w r9, [sp, #32]
8006e94: 4293 cmp r3, r2
8006e96: bfb8 it lt
8006e98: 4613 movlt r3, r2
8006e9a: 6033 str r3, [r6, #0]
8006e9c: f891 2043 ldrb.w r2, [r1, #67] @ 0x43
8006ea0: 4607 mov r7, r0
8006ea2: 460c mov r4, r1
8006ea4: b10a cbz r2, 8006eaa <_printf_common+0x26>
8006ea6: 3301 adds r3, #1
8006ea8: 6033 str r3, [r6, #0]
8006eaa: 6823 ldr r3, [r4, #0]
8006eac: 0699 lsls r1, r3, #26
8006eae: bf42 ittt mi
8006eb0: 6833 ldrmi r3, [r6, #0]
8006eb2: 3302 addmi r3, #2
8006eb4: 6033 strmi r3, [r6, #0]
8006eb6: 6825 ldr r5, [r4, #0]
8006eb8: f015 0506 ands.w r5, r5, #6
8006ebc: d106 bne.n 8006ecc <_printf_common+0x48>
8006ebe: f104 0a19 add.w sl, r4, #25
8006ec2: 68e3 ldr r3, [r4, #12]
8006ec4: 6832 ldr r2, [r6, #0]
8006ec6: 1a9b subs r3, r3, r2
8006ec8: 42ab cmp r3, r5
8006eca: dc26 bgt.n 8006f1a <_printf_common+0x96>
8006ecc: f894 3043 ldrb.w r3, [r4, #67] @ 0x43
8006ed0: 6822 ldr r2, [r4, #0]
8006ed2: 3b00 subs r3, #0
8006ed4: bf18 it ne
8006ed6: 2301 movne r3, #1
8006ed8: 0692 lsls r2, r2, #26
8006eda: d42b bmi.n 8006f34 <_printf_common+0xb0>
8006edc: f104 0243 add.w r2, r4, #67 @ 0x43
8006ee0: 4641 mov r1, r8
8006ee2: 4638 mov r0, r7
8006ee4: 47c8 blx r9
8006ee6: 3001 adds r0, #1
8006ee8: d01e beq.n 8006f28 <_printf_common+0xa4>
8006eea: 6823 ldr r3, [r4, #0]
8006eec: 6922 ldr r2, [r4, #16]
8006eee: f003 0306 and.w r3, r3, #6
8006ef2: 2b04 cmp r3, #4
8006ef4: bf02 ittt eq
8006ef6: 68e5 ldreq r5, [r4, #12]
8006ef8: 6833 ldreq r3, [r6, #0]
8006efa: 1aed subeq r5, r5, r3
8006efc: 68a3 ldr r3, [r4, #8]
8006efe: bf0c ite eq
8006f00: ea25 75e5 biceq.w r5, r5, r5, asr #31
8006f04: 2500 movne r5, #0
8006f06: 4293 cmp r3, r2
8006f08: bfc4 itt gt
8006f0a: 1a9b subgt r3, r3, r2
8006f0c: 18ed addgt r5, r5, r3
8006f0e: 2600 movs r6, #0
8006f10: 341a adds r4, #26
8006f12: 42b5 cmp r5, r6
8006f14: d11a bne.n 8006f4c <_printf_common+0xc8>
8006f16: 2000 movs r0, #0
8006f18: e008 b.n 8006f2c <_printf_common+0xa8>
8006f1a: 2301 movs r3, #1
8006f1c: 4652 mov r2, sl
8006f1e: 4641 mov r1, r8
8006f20: 4638 mov r0, r7
8006f22: 47c8 blx r9
8006f24: 3001 adds r0, #1
8006f26: d103 bne.n 8006f30 <_printf_common+0xac>
8006f28: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
8006f2c: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
8006f30: 3501 adds r5, #1
8006f32: e7c6 b.n 8006ec2 <_printf_common+0x3e>
8006f34: 18e1 adds r1, r4, r3
8006f36: 1c5a adds r2, r3, #1
8006f38: 2030 movs r0, #48 @ 0x30
8006f3a: f881 0043 strb.w r0, [r1, #67] @ 0x43
8006f3e: 4422 add r2, r4
8006f40: f894 1045 ldrb.w r1, [r4, #69] @ 0x45
8006f44: f882 1043 strb.w r1, [r2, #67] @ 0x43
8006f48: 3302 adds r3, #2
8006f4a: e7c7 b.n 8006edc <_printf_common+0x58>
8006f4c: 2301 movs r3, #1
8006f4e: 4622 mov r2, r4
8006f50: 4641 mov r1, r8
8006f52: 4638 mov r0, r7
8006f54: 47c8 blx r9
8006f56: 3001 adds r0, #1
8006f58: d0e6 beq.n 8006f28 <_printf_common+0xa4>
8006f5a: 3601 adds r6, #1
8006f5c: e7d9 b.n 8006f12 <_printf_common+0x8e>
...
08006f60 <_printf_i>:
8006f60: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}
8006f64: 7e0f ldrb r7, [r1, #24]
8006f66: 9e0c ldr r6, [sp, #48] @ 0x30
8006f68: 2f78 cmp r7, #120 @ 0x78
8006f6a: 4691 mov r9, r2
8006f6c: 4680 mov r8, r0
8006f6e: 460c mov r4, r1
8006f70: 469a mov sl, r3
8006f72: f101 0243 add.w r2, r1, #67 @ 0x43
8006f76: d807 bhi.n 8006f88 <_printf_i+0x28>
8006f78: 2f62 cmp r7, #98 @ 0x62
8006f7a: d80a bhi.n 8006f92 <_printf_i+0x32>
8006f7c: 2f00 cmp r7, #0
8006f7e: f000 80d1 beq.w 8007124 <_printf_i+0x1c4>
8006f82: 2f58 cmp r7, #88 @ 0x58
8006f84: f000 80b8 beq.w 80070f8 <_printf_i+0x198>
8006f88: f104 0642 add.w r6, r4, #66 @ 0x42
8006f8c: f884 7042 strb.w r7, [r4, #66] @ 0x42
8006f90: e03a b.n 8007008 <_printf_i+0xa8>
8006f92: f1a7 0363 sub.w r3, r7, #99 @ 0x63
8006f96: 2b15 cmp r3, #21
8006f98: d8f6 bhi.n 8006f88 <_printf_i+0x28>
8006f9a: a101 add r1, pc, #4 @ (adr r1, 8006fa0 <_printf_i+0x40>)
8006f9c: f851 f023 ldr.w pc, [r1, r3, lsl #2]
8006fa0: 08006ff9 .word 0x08006ff9
8006fa4: 0800700d .word 0x0800700d
8006fa8: 08006f89 .word 0x08006f89
8006fac: 08006f89 .word 0x08006f89
8006fb0: 08006f89 .word 0x08006f89
8006fb4: 08006f89 .word 0x08006f89
8006fb8: 0800700d .word 0x0800700d
8006fbc: 08006f89 .word 0x08006f89
8006fc0: 08006f89 .word 0x08006f89
8006fc4: 08006f89 .word 0x08006f89
8006fc8: 08006f89 .word 0x08006f89
8006fcc: 0800710b .word 0x0800710b
8006fd0: 08007037 .word 0x08007037
8006fd4: 080070c5 .word 0x080070c5
8006fd8: 08006f89 .word 0x08006f89
8006fdc: 08006f89 .word 0x08006f89
8006fe0: 0800712d .word 0x0800712d
8006fe4: 08006f89 .word 0x08006f89
8006fe8: 08007037 .word 0x08007037
8006fec: 08006f89 .word 0x08006f89
8006ff0: 08006f89 .word 0x08006f89
8006ff4: 080070cd .word 0x080070cd
8006ff8: 6833 ldr r3, [r6, #0]
8006ffa: 1d1a adds r2, r3, #4
8006ffc: 681b ldr r3, [r3, #0]
8006ffe: 6032 str r2, [r6, #0]
8007000: f104 0642 add.w r6, r4, #66 @ 0x42
8007004: f884 3042 strb.w r3, [r4, #66] @ 0x42
8007008: 2301 movs r3, #1
800700a: e09c b.n 8007146 <_printf_i+0x1e6>
800700c: 6833 ldr r3, [r6, #0]
800700e: 6820 ldr r0, [r4, #0]
8007010: 1d19 adds r1, r3, #4
8007012: 6031 str r1, [r6, #0]
8007014: 0606 lsls r6, r0, #24
8007016: d501 bpl.n 800701c <_printf_i+0xbc>
8007018: 681d ldr r5, [r3, #0]
800701a: e003 b.n 8007024 <_printf_i+0xc4>
800701c: 0645 lsls r5, r0, #25
800701e: d5fb bpl.n 8007018 <_printf_i+0xb8>
8007020: f9b3 5000 ldrsh.w r5, [r3]
8007024: 2d00 cmp r5, #0
8007026: da03 bge.n 8007030 <_printf_i+0xd0>
8007028: 232d movs r3, #45 @ 0x2d
800702a: 426d negs r5, r5
800702c: f884 3043 strb.w r3, [r4, #67] @ 0x43
8007030: 4858 ldr r0, [pc, #352] @ (8007194 <_printf_i+0x234>)
8007032: 230a movs r3, #10
8007034: e011 b.n 800705a <_printf_i+0xfa>
8007036: 6821 ldr r1, [r4, #0]
8007038: 6833 ldr r3, [r6, #0]
800703a: 0608 lsls r0, r1, #24
800703c: f853 5b04 ldr.w r5, [r3], #4
8007040: d402 bmi.n 8007048 <_printf_i+0xe8>
8007042: 0649 lsls r1, r1, #25
8007044: bf48 it mi
8007046: b2ad uxthmi r5, r5
8007048: 2f6f cmp r7, #111 @ 0x6f
800704a: 4852 ldr r0, [pc, #328] @ (8007194 <_printf_i+0x234>)
800704c: 6033 str r3, [r6, #0]
800704e: bf14 ite ne
8007050: 230a movne r3, #10
8007052: 2308 moveq r3, #8
8007054: 2100 movs r1, #0
8007056: f884 1043 strb.w r1, [r4, #67] @ 0x43
800705a: 6866 ldr r6, [r4, #4]
800705c: 60a6 str r6, [r4, #8]
800705e: 2e00 cmp r6, #0
8007060: db05 blt.n 800706e <_printf_i+0x10e>
8007062: 6821 ldr r1, [r4, #0]
8007064: 432e orrs r6, r5
8007066: f021 0104 bic.w r1, r1, #4
800706a: 6021 str r1, [r4, #0]
800706c: d04b beq.n 8007106 <_printf_i+0x1a6>
800706e: 4616 mov r6, r2
8007070: fbb5 f1f3 udiv r1, r5, r3
8007074: fb03 5711 mls r7, r3, r1, r5
8007078: 5dc7 ldrb r7, [r0, r7]
800707a: f806 7d01 strb.w r7, [r6, #-1]!
800707e: 462f mov r7, r5
8007080: 42bb cmp r3, r7
8007082: 460d mov r5, r1
8007084: d9f4 bls.n 8007070 <_printf_i+0x110>
8007086: 2b08 cmp r3, #8
8007088: d10b bne.n 80070a2 <_printf_i+0x142>
800708a: 6823 ldr r3, [r4, #0]
800708c: 07df lsls r7, r3, #31
800708e: d508 bpl.n 80070a2 <_printf_i+0x142>
8007090: 6923 ldr r3, [r4, #16]
8007092: 6861 ldr r1, [r4, #4]
8007094: 4299 cmp r1, r3
8007096: bfde ittt le
8007098: 2330 movle r3, #48 @ 0x30
800709a: f806 3c01 strble.w r3, [r6, #-1]
800709e: f106 36ff addle.w r6, r6, #4294967295 @ 0xffffffff
80070a2: 1b92 subs r2, r2, r6
80070a4: 6122 str r2, [r4, #16]
80070a6: f8cd a000 str.w sl, [sp]
80070aa: 464b mov r3, r9
80070ac: aa03 add r2, sp, #12
80070ae: 4621 mov r1, r4
80070b0: 4640 mov r0, r8
80070b2: f7ff fee7 bl 8006e84 <_printf_common>
80070b6: 3001 adds r0, #1
80070b8: d14a bne.n 8007150 <_printf_i+0x1f0>
80070ba: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
80070be: b004 add sp, #16
80070c0: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc}
80070c4: 6823 ldr r3, [r4, #0]
80070c6: f043 0320 orr.w r3, r3, #32
80070ca: 6023 str r3, [r4, #0]
80070cc: 4832 ldr r0, [pc, #200] @ (8007198 <_printf_i+0x238>)
80070ce: 2778 movs r7, #120 @ 0x78
80070d0: f884 7045 strb.w r7, [r4, #69] @ 0x45
80070d4: 6823 ldr r3, [r4, #0]
80070d6: 6831 ldr r1, [r6, #0]
80070d8: 061f lsls r7, r3, #24
80070da: f851 5b04 ldr.w r5, [r1], #4
80070de: d402 bmi.n 80070e6 <_printf_i+0x186>
80070e0: 065f lsls r7, r3, #25
80070e2: bf48 it mi
80070e4: b2ad uxthmi r5, r5
80070e6: 6031 str r1, [r6, #0]
80070e8: 07d9 lsls r1, r3, #31
80070ea: bf44 itt mi
80070ec: f043 0320 orrmi.w r3, r3, #32
80070f0: 6023 strmi r3, [r4, #0]
80070f2: b11d cbz r5, 80070fc <_printf_i+0x19c>
80070f4: 2310 movs r3, #16
80070f6: e7ad b.n 8007054 <_printf_i+0xf4>
80070f8: 4826 ldr r0, [pc, #152] @ (8007194 <_printf_i+0x234>)
80070fa: e7e9 b.n 80070d0 <_printf_i+0x170>
80070fc: 6823 ldr r3, [r4, #0]
80070fe: f023 0320 bic.w r3, r3, #32
8007102: 6023 str r3, [r4, #0]
8007104: e7f6 b.n 80070f4 <_printf_i+0x194>
8007106: 4616 mov r6, r2
8007108: e7bd b.n 8007086 <_printf_i+0x126>
800710a: 6833 ldr r3, [r6, #0]
800710c: 6825 ldr r5, [r4, #0]
800710e: 6961 ldr r1, [r4, #20]
8007110: 1d18 adds r0, r3, #4
8007112: 6030 str r0, [r6, #0]
8007114: 062e lsls r6, r5, #24
8007116: 681b ldr r3, [r3, #0]
8007118: d501 bpl.n 800711e <_printf_i+0x1be>
800711a: 6019 str r1, [r3, #0]
800711c: e002 b.n 8007124 <_printf_i+0x1c4>
800711e: 0668 lsls r0, r5, #25
8007120: d5fb bpl.n 800711a <_printf_i+0x1ba>
8007122: 8019 strh r1, [r3, #0]
8007124: 2300 movs r3, #0
8007126: 6123 str r3, [r4, #16]
8007128: 4616 mov r6, r2
800712a: e7bc b.n 80070a6 <_printf_i+0x146>
800712c: 6833 ldr r3, [r6, #0]
800712e: 1d1a adds r2, r3, #4
8007130: 6032 str r2, [r6, #0]
8007132: 681e ldr r6, [r3, #0]
8007134: 6862 ldr r2, [r4, #4]
8007136: 2100 movs r1, #0
8007138: 4630 mov r0, r6
800713a: f7f9 f871 bl 8000220 <memchr>
800713e: b108 cbz r0, 8007144 <_printf_i+0x1e4>
8007140: 1b80 subs r0, r0, r6
8007142: 6060 str r0, [r4, #4]
8007144: 6863 ldr r3, [r4, #4]
8007146: 6123 str r3, [r4, #16]
8007148: 2300 movs r3, #0
800714a: f884 3043 strb.w r3, [r4, #67] @ 0x43
800714e: e7aa b.n 80070a6 <_printf_i+0x146>
8007150: 6923 ldr r3, [r4, #16]
8007152: 4632 mov r2, r6
8007154: 4649 mov r1, r9
8007156: 4640 mov r0, r8
8007158: 47d0 blx sl
800715a: 3001 adds r0, #1
800715c: d0ad beq.n 80070ba <_printf_i+0x15a>
800715e: 6823 ldr r3, [r4, #0]
8007160: 079b lsls r3, r3, #30
8007162: d413 bmi.n 800718c <_printf_i+0x22c>
8007164: 68e0 ldr r0, [r4, #12]
8007166: 9b03 ldr r3, [sp, #12]
8007168: 4298 cmp r0, r3
800716a: bfb8 it lt
800716c: 4618 movlt r0, r3
800716e: e7a6 b.n 80070be <_printf_i+0x15e>
8007170: 2301 movs r3, #1
8007172: 4632 mov r2, r6
8007174: 4649 mov r1, r9
8007176: 4640 mov r0, r8
8007178: 47d0 blx sl
800717a: 3001 adds r0, #1
800717c: d09d beq.n 80070ba <_printf_i+0x15a>
800717e: 3501 adds r5, #1
8007180: 68e3 ldr r3, [r4, #12]
8007182: 9903 ldr r1, [sp, #12]
8007184: 1a5b subs r3, r3, r1
8007186: 42ab cmp r3, r5
8007188: dcf2 bgt.n 8007170 <_printf_i+0x210>
800718a: e7eb b.n 8007164 <_printf_i+0x204>
800718c: 2500 movs r5, #0
800718e: f104 0619 add.w r6, r4, #25
8007192: e7f5 b.n 8007180 <_printf_i+0x220>
8007194: 0800760d .word 0x0800760d
8007198: 0800761e .word 0x0800761e
0800719c <__sflush_r>:
800719c: f9b1 200c ldrsh.w r2, [r1, #12]
80071a0: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr}
80071a4: 0716 lsls r6, r2, #28
80071a6: 4605 mov r5, r0
80071a8: 460c mov r4, r1
80071aa: d454 bmi.n 8007256 <__sflush_r+0xba>
80071ac: 684b ldr r3, [r1, #4]
80071ae: 2b00 cmp r3, #0
80071b0: dc02 bgt.n 80071b8 <__sflush_r+0x1c>
80071b2: 6c0b ldr r3, [r1, #64] @ 0x40
80071b4: 2b00 cmp r3, #0
80071b6: dd48 ble.n 800724a <__sflush_r+0xae>
80071b8: 6ae6 ldr r6, [r4, #44] @ 0x2c
80071ba: 2e00 cmp r6, #0
80071bc: d045 beq.n 800724a <__sflush_r+0xae>
80071be: 2300 movs r3, #0
80071c0: f412 5280 ands.w r2, r2, #4096 @ 0x1000
80071c4: 682f ldr r7, [r5, #0]
80071c6: 6a21 ldr r1, [r4, #32]
80071c8: 602b str r3, [r5, #0]
80071ca: d030 beq.n 800722e <__sflush_r+0x92>
80071cc: 6d62 ldr r2, [r4, #84] @ 0x54
80071ce: 89a3 ldrh r3, [r4, #12]
80071d0: 0759 lsls r1, r3, #29
80071d2: d505 bpl.n 80071e0 <__sflush_r+0x44>
80071d4: 6863 ldr r3, [r4, #4]
80071d6: 1ad2 subs r2, r2, r3
80071d8: 6b63 ldr r3, [r4, #52] @ 0x34
80071da: b10b cbz r3, 80071e0 <__sflush_r+0x44>
80071dc: 6c23 ldr r3, [r4, #64] @ 0x40
80071de: 1ad2 subs r2, r2, r3
80071e0: 2300 movs r3, #0
80071e2: 6ae6 ldr r6, [r4, #44] @ 0x2c
80071e4: 6a21 ldr r1, [r4, #32]
80071e6: 4628 mov r0, r5
80071e8: 47b0 blx r6
80071ea: 1c43 adds r3, r0, #1
80071ec: 89a3 ldrh r3, [r4, #12]
80071ee: d106 bne.n 80071fe <__sflush_r+0x62>
80071f0: 6829 ldr r1, [r5, #0]
80071f2: 291d cmp r1, #29
80071f4: d82b bhi.n 800724e <__sflush_r+0xb2>
80071f6: 4a2a ldr r2, [pc, #168] @ (80072a0 <__sflush_r+0x104>)
80071f8: 40ca lsrs r2, r1
80071fa: 07d6 lsls r6, r2, #31
80071fc: d527 bpl.n 800724e <__sflush_r+0xb2>
80071fe: 2200 movs r2, #0
8007200: 6062 str r2, [r4, #4]
8007202: 04d9 lsls r1, r3, #19
8007204: 6922 ldr r2, [r4, #16]
8007206: 6022 str r2, [r4, #0]
8007208: d504 bpl.n 8007214 <__sflush_r+0x78>
800720a: 1c42 adds r2, r0, #1
800720c: d101 bne.n 8007212 <__sflush_r+0x76>
800720e: 682b ldr r3, [r5, #0]
8007210: b903 cbnz r3, 8007214 <__sflush_r+0x78>
8007212: 6560 str r0, [r4, #84] @ 0x54
8007214: 6b61 ldr r1, [r4, #52] @ 0x34
8007216: 602f str r7, [r5, #0]
8007218: b1b9 cbz r1, 800724a <__sflush_r+0xae>
800721a: f104 0344 add.w r3, r4, #68 @ 0x44
800721e: 4299 cmp r1, r3
8007220: d002 beq.n 8007228 <__sflush_r+0x8c>
8007222: 4628 mov r0, r5
8007224: f7ff fbf4 bl 8006a10 <_free_r>
8007228: 2300 movs r3, #0
800722a: 6363 str r3, [r4, #52] @ 0x34
800722c: e00d b.n 800724a <__sflush_r+0xae>
800722e: 2301 movs r3, #1
8007230: 4628 mov r0, r5
8007232: 47b0 blx r6
8007234: 4602 mov r2, r0
8007236: 1c50 adds r0, r2, #1
8007238: d1c9 bne.n 80071ce <__sflush_r+0x32>
800723a: 682b ldr r3, [r5, #0]
800723c: 2b00 cmp r3, #0
800723e: d0c6 beq.n 80071ce <__sflush_r+0x32>
8007240: 2b1d cmp r3, #29
8007242: d001 beq.n 8007248 <__sflush_r+0xac>
8007244: 2b16 cmp r3, #22
8007246: d11e bne.n 8007286 <__sflush_r+0xea>
8007248: 602f str r7, [r5, #0]
800724a: 2000 movs r0, #0
800724c: e022 b.n 8007294 <__sflush_r+0xf8>
800724e: f043 0340 orr.w r3, r3, #64 @ 0x40
8007252: b21b sxth r3, r3
8007254: e01b b.n 800728e <__sflush_r+0xf2>
8007256: 690f ldr r7, [r1, #16]
8007258: 2f00 cmp r7, #0
800725a: d0f6 beq.n 800724a <__sflush_r+0xae>
800725c: 0793 lsls r3, r2, #30
800725e: 680e ldr r6, [r1, #0]
8007260: bf08 it eq
8007262: 694b ldreq r3, [r1, #20]
8007264: 600f str r7, [r1, #0]
8007266: bf18 it ne
8007268: 2300 movne r3, #0
800726a: eba6 0807 sub.w r8, r6, r7
800726e: 608b str r3, [r1, #8]
8007270: f1b8 0f00 cmp.w r8, #0
8007274: dde9 ble.n 800724a <__sflush_r+0xae>
8007276: 6a21 ldr r1, [r4, #32]
8007278: 6aa6 ldr r6, [r4, #40] @ 0x28
800727a: 4643 mov r3, r8
800727c: 463a mov r2, r7
800727e: 4628 mov r0, r5
8007280: 47b0 blx r6
8007282: 2800 cmp r0, #0
8007284: dc08 bgt.n 8007298 <__sflush_r+0xfc>
8007286: f9b4 300c ldrsh.w r3, [r4, #12]
800728a: f043 0340 orr.w r3, r3, #64 @ 0x40
800728e: 81a3 strh r3, [r4, #12]
8007290: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
8007294: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc}
8007298: 4407 add r7, r0
800729a: eba8 0800 sub.w r8, r8, r0
800729e: e7e7 b.n 8007270 <__sflush_r+0xd4>
80072a0: 20400001 .word 0x20400001
080072a4 <_fflush_r>:
80072a4: b538 push {r3, r4, r5, lr}
80072a6: 690b ldr r3, [r1, #16]
80072a8: 4605 mov r5, r0
80072aa: 460c mov r4, r1
80072ac: b913 cbnz r3, 80072b4 <_fflush_r+0x10>
80072ae: 2500 movs r5, #0
80072b0: 4628 mov r0, r5
80072b2: bd38 pop {r3, r4, r5, pc}
80072b4: b118 cbz r0, 80072be <_fflush_r+0x1a>
80072b6: 6a03 ldr r3, [r0, #32]
80072b8: b90b cbnz r3, 80072be <_fflush_r+0x1a>
80072ba: f7ff fa93 bl 80067e4 <__sinit>
80072be: f9b4 300c ldrsh.w r3, [r4, #12]
80072c2: 2b00 cmp r3, #0
80072c4: d0f3 beq.n 80072ae <_fflush_r+0xa>
80072c6: 6e62 ldr r2, [r4, #100] @ 0x64
80072c8: 07d0 lsls r0, r2, #31
80072ca: d404 bmi.n 80072d6 <_fflush_r+0x32>
80072cc: 0599 lsls r1, r3, #22
80072ce: d402 bmi.n 80072d6 <_fflush_r+0x32>
80072d0: 6da0 ldr r0, [r4, #88] @ 0x58
80072d2: f7ff fb8c bl 80069ee <__retarget_lock_acquire_recursive>
80072d6: 4628 mov r0, r5
80072d8: 4621 mov r1, r4
80072da: f7ff ff5f bl 800719c <__sflush_r>
80072de: 6e63 ldr r3, [r4, #100] @ 0x64
80072e0: 07da lsls r2, r3, #31
80072e2: 4605 mov r5, r0
80072e4: d4e4 bmi.n 80072b0 <_fflush_r+0xc>
80072e6: 89a3 ldrh r3, [r4, #12]
80072e8: 059b lsls r3, r3, #22
80072ea: d4e1 bmi.n 80072b0 <_fflush_r+0xc>
80072ec: 6da0 ldr r0, [r4, #88] @ 0x58
80072ee: f7ff fb7f bl 80069f0 <__retarget_lock_release_recursive>
80072f2: e7dd b.n 80072b0 <_fflush_r+0xc>
080072f4 <__swbuf_r>:
80072f4: b5f8 push {r3, r4, r5, r6, r7, lr}
80072f6: 460e mov r6, r1
80072f8: 4614 mov r4, r2
80072fa: 4605 mov r5, r0
80072fc: b118 cbz r0, 8007306 <__swbuf_r+0x12>
80072fe: 6a03 ldr r3, [r0, #32]
8007300: b90b cbnz r3, 8007306 <__swbuf_r+0x12>
8007302: f7ff fa6f bl 80067e4 <__sinit>
8007306: 69a3 ldr r3, [r4, #24]
8007308: 60a3 str r3, [r4, #8]
800730a: 89a3 ldrh r3, [r4, #12]
800730c: 071a lsls r2, r3, #28
800730e: d501 bpl.n 8007314 <__swbuf_r+0x20>
8007310: 6923 ldr r3, [r4, #16]
8007312: b943 cbnz r3, 8007326 <__swbuf_r+0x32>
8007314: 4621 mov r1, r4
8007316: 4628 mov r0, r5
8007318: f000 f82a bl 8007370 <__swsetup_r>
800731c: b118 cbz r0, 8007326 <__swbuf_r+0x32>
800731e: f04f 37ff mov.w r7, #4294967295 @ 0xffffffff
8007322: 4638 mov r0, r7
8007324: bdf8 pop {r3, r4, r5, r6, r7, pc}
8007326: 6823 ldr r3, [r4, #0]
8007328: 6922 ldr r2, [r4, #16]
800732a: 1a98 subs r0, r3, r2
800732c: 6963 ldr r3, [r4, #20]
800732e: b2f6 uxtb r6, r6
8007330: 4283 cmp r3, r0
8007332: 4637 mov r7, r6
8007334: dc05 bgt.n 8007342 <__swbuf_r+0x4e>
8007336: 4621 mov r1, r4
8007338: 4628 mov r0, r5
800733a: f7ff ffb3 bl 80072a4 <_fflush_r>
800733e: 2800 cmp r0, #0
8007340: d1ed bne.n 800731e <__swbuf_r+0x2a>
8007342: 68a3 ldr r3, [r4, #8]
8007344: 3b01 subs r3, #1
8007346: 60a3 str r3, [r4, #8]
8007348: 6823 ldr r3, [r4, #0]
800734a: 1c5a adds r2, r3, #1
800734c: 6022 str r2, [r4, #0]
800734e: 701e strb r6, [r3, #0]
8007350: 6962 ldr r2, [r4, #20]
8007352: 1c43 adds r3, r0, #1
8007354: 429a cmp r2, r3
8007356: d004 beq.n 8007362 <__swbuf_r+0x6e>
8007358: 89a3 ldrh r3, [r4, #12]
800735a: 07db lsls r3, r3, #31
800735c: d5e1 bpl.n 8007322 <__swbuf_r+0x2e>
800735e: 2e0a cmp r6, #10
8007360: d1df bne.n 8007322 <__swbuf_r+0x2e>
8007362: 4621 mov r1, r4
8007364: 4628 mov r0, r5
8007366: f7ff ff9d bl 80072a4 <_fflush_r>
800736a: 2800 cmp r0, #0
800736c: d0d9 beq.n 8007322 <__swbuf_r+0x2e>
800736e: e7d6 b.n 800731e <__swbuf_r+0x2a>
08007370 <__swsetup_r>:
8007370: b538 push {r3, r4, r5, lr}
8007372: 4b29 ldr r3, [pc, #164] @ (8007418 <__swsetup_r+0xa8>)
8007374: 4605 mov r5, r0
8007376: 6818 ldr r0, [r3, #0]
8007378: 460c mov r4, r1
800737a: b118 cbz r0, 8007384 <__swsetup_r+0x14>
800737c: 6a03 ldr r3, [r0, #32]
800737e: b90b cbnz r3, 8007384 <__swsetup_r+0x14>
8007380: f7ff fa30 bl 80067e4 <__sinit>
8007384: f9b4 300c ldrsh.w r3, [r4, #12]
8007388: 0719 lsls r1, r3, #28
800738a: d422 bmi.n 80073d2 <__swsetup_r+0x62>
800738c: 06da lsls r2, r3, #27
800738e: d407 bmi.n 80073a0 <__swsetup_r+0x30>
8007390: 2209 movs r2, #9
8007392: 602a str r2, [r5, #0]
8007394: f043 0340 orr.w r3, r3, #64 @ 0x40
8007398: 81a3 strh r3, [r4, #12]
800739a: f04f 30ff mov.w r0, #4294967295 @ 0xffffffff
800739e: e033 b.n 8007408 <__swsetup_r+0x98>
80073a0: 0758 lsls r0, r3, #29
80073a2: d512 bpl.n 80073ca <__swsetup_r+0x5a>
80073a4: 6b61 ldr r1, [r4, #52] @ 0x34
80073a6: b141 cbz r1, 80073ba <__swsetup_r+0x4a>
80073a8: f104 0344 add.w r3, r4, #68 @ 0x44
80073ac: 4299 cmp r1, r3
80073ae: d002 beq.n 80073b6 <__swsetup_r+0x46>
80073b0: 4628 mov r0, r5
80073b2: f7ff fb2d bl 8006a10 <_free_r>
80073b6: 2300 movs r3, #0
80073b8: 6363 str r3, [r4, #52] @ 0x34
80073ba: 89a3 ldrh r3, [r4, #12]
80073bc: f023 0324 bic.w r3, r3, #36 @ 0x24
80073c0: 81a3 strh r3, [r4, #12]
80073c2: 2300 movs r3, #0
80073c4: 6063 str r3, [r4, #4]
80073c6: 6923 ldr r3, [r4, #16]
80073c8: 6023 str r3, [r4, #0]
80073ca: 89a3 ldrh r3, [r4, #12]
80073cc: f043 0308 orr.w r3, r3, #8
80073d0: 81a3 strh r3, [r4, #12]
80073d2: 6923 ldr r3, [r4, #16]
80073d4: b94b cbnz r3, 80073ea <__swsetup_r+0x7a>
80073d6: 89a3 ldrh r3, [r4, #12]
80073d8: f403 7320 and.w r3, r3, #640 @ 0x280
80073dc: f5b3 7f00 cmp.w r3, #512 @ 0x200
80073e0: d003 beq.n 80073ea <__swsetup_r+0x7a>
80073e2: 4621 mov r1, r4
80073e4: 4628 mov r0, r5
80073e6: f000 f84f bl 8007488 <__smakebuf_r>
80073ea: f9b4 300c ldrsh.w r3, [r4, #12]
80073ee: f013 0201 ands.w r2, r3, #1
80073f2: d00a beq.n 800740a <__swsetup_r+0x9a>
80073f4: 2200 movs r2, #0
80073f6: 60a2 str r2, [r4, #8]
80073f8: 6962 ldr r2, [r4, #20]
80073fa: 4252 negs r2, r2
80073fc: 61a2 str r2, [r4, #24]
80073fe: 6922 ldr r2, [r4, #16]
8007400: b942 cbnz r2, 8007414 <__swsetup_r+0xa4>
8007402: f013 0080 ands.w r0, r3, #128 @ 0x80
8007406: d1c5 bne.n 8007394 <__swsetup_r+0x24>
8007408: bd38 pop {r3, r4, r5, pc}
800740a: 0799 lsls r1, r3, #30
800740c: bf58 it pl
800740e: 6962 ldrpl r2, [r4, #20]
8007410: 60a2 str r2, [r4, #8]
8007412: e7f4 b.n 80073fe <__swsetup_r+0x8e>
8007414: 2000 movs r0, #0
8007416: e7f7 b.n 8007408 <__swsetup_r+0x98>
8007418: 2000001c .word 0x2000001c
0800741c <_sbrk_r>:
800741c: b538 push {r3, r4, r5, lr}
800741e: 4d06 ldr r5, [pc, #24] @ (8007438 <_sbrk_r+0x1c>)
8007420: 2300 movs r3, #0
8007422: 4604 mov r4, r0
8007424: 4608 mov r0, r1
8007426: 602b str r3, [r5, #0]
8007428: f7f9 ffa4 bl 8001374 <_sbrk>
800742c: 1c43 adds r3, r0, #1
800742e: d102 bne.n 8007436 <_sbrk_r+0x1a>
8007430: 682b ldr r3, [r5, #0]
8007432: b103 cbz r3, 8007436 <_sbrk_r+0x1a>
8007434: 6023 str r3, [r4, #0]
8007436: bd38 pop {r3, r4, r5, pc}
8007438: 200051f0 .word 0x200051f0
0800743c <__swhatbuf_r>:
800743c: b570 push {r4, r5, r6, lr}
800743e: 460c mov r4, r1
8007440: f9b1 100e ldrsh.w r1, [r1, #14]
8007444: 2900 cmp r1, #0
8007446: b096 sub sp, #88 @ 0x58
8007448: 4615 mov r5, r2
800744a: 461e mov r6, r3
800744c: da0d bge.n 800746a <__swhatbuf_r+0x2e>
800744e: 89a3 ldrh r3, [r4, #12]
8007450: f013 0f80 tst.w r3, #128 @ 0x80
8007454: f04f 0100 mov.w r1, #0
8007458: bf14 ite ne
800745a: 2340 movne r3, #64 @ 0x40
800745c: f44f 6380 moveq.w r3, #1024 @ 0x400
8007460: 2000 movs r0, #0
8007462: 6031 str r1, [r6, #0]
8007464: 602b str r3, [r5, #0]
8007466: b016 add sp, #88 @ 0x58
8007468: bd70 pop {r4, r5, r6, pc}
800746a: 466a mov r2, sp
800746c: f000 f848 bl 8007500 <_fstat_r>
8007470: 2800 cmp r0, #0
8007472: dbec blt.n 800744e <__swhatbuf_r+0x12>
8007474: 9901 ldr r1, [sp, #4]
8007476: f401 4170 and.w r1, r1, #61440 @ 0xf000
800747a: f5a1 5300 sub.w r3, r1, #8192 @ 0x2000
800747e: 4259 negs r1, r3
8007480: 4159 adcs r1, r3
8007482: f44f 6380 mov.w r3, #1024 @ 0x400
8007486: e7eb b.n 8007460 <__swhatbuf_r+0x24>
08007488 <__smakebuf_r>:
8007488: 898b ldrh r3, [r1, #12]
800748a: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
800748c: 079d lsls r5, r3, #30
800748e: 4606 mov r6, r0
8007490: 460c mov r4, r1
8007492: d507 bpl.n 80074a4 <__smakebuf_r+0x1c>
8007494: f104 0347 add.w r3, r4, #71 @ 0x47
8007498: 6023 str r3, [r4, #0]
800749a: 6123 str r3, [r4, #16]
800749c: 2301 movs r3, #1
800749e: 6163 str r3, [r4, #20]
80074a0: b003 add sp, #12
80074a2: bdf0 pop {r4, r5, r6, r7, pc}
80074a4: ab01 add r3, sp, #4
80074a6: 466a mov r2, sp
80074a8: f7ff ffc8 bl 800743c <__swhatbuf_r>
80074ac: 9f00 ldr r7, [sp, #0]
80074ae: 4605 mov r5, r0
80074b0: 4639 mov r1, r7
80074b2: 4630 mov r0, r6
80074b4: f7ff fb18 bl 8006ae8 <_malloc_r>
80074b8: b948 cbnz r0, 80074ce <__smakebuf_r+0x46>
80074ba: f9b4 300c ldrsh.w r3, [r4, #12]
80074be: 059a lsls r2, r3, #22
80074c0: d4ee bmi.n 80074a0 <__smakebuf_r+0x18>
80074c2: f023 0303 bic.w r3, r3, #3
80074c6: f043 0302 orr.w r3, r3, #2
80074ca: 81a3 strh r3, [r4, #12]
80074cc: e7e2 b.n 8007494 <__smakebuf_r+0xc>
80074ce: 89a3 ldrh r3, [r4, #12]
80074d0: 6020 str r0, [r4, #0]
80074d2: f043 0380 orr.w r3, r3, #128 @ 0x80
80074d6: 81a3 strh r3, [r4, #12]
80074d8: 9b01 ldr r3, [sp, #4]
80074da: e9c4 0704 strd r0, r7, [r4, #16]
80074de: b15b cbz r3, 80074f8 <__smakebuf_r+0x70>
80074e0: f9b4 100e ldrsh.w r1, [r4, #14]
80074e4: 4630 mov r0, r6
80074e6: f000 f81d bl 8007524 <_isatty_r>
80074ea: b128 cbz r0, 80074f8 <__smakebuf_r+0x70>
80074ec: 89a3 ldrh r3, [r4, #12]
80074ee: f023 0303 bic.w r3, r3, #3
80074f2: f043 0301 orr.w r3, r3, #1
80074f6: 81a3 strh r3, [r4, #12]
80074f8: 89a3 ldrh r3, [r4, #12]
80074fa: 431d orrs r5, r3
80074fc: 81a5 strh r5, [r4, #12]
80074fe: e7cf b.n 80074a0 <__smakebuf_r+0x18>
08007500 <_fstat_r>:
8007500: b538 push {r3, r4, r5, lr}
8007502: 4d07 ldr r5, [pc, #28] @ (8007520 <_fstat_r+0x20>)
8007504: 2300 movs r3, #0
8007506: 4604 mov r4, r0
8007508: 4608 mov r0, r1
800750a: 4611 mov r1, r2
800750c: 602b str r3, [r5, #0]
800750e: f7f9 ff08 bl 8001322 <_fstat>
8007512: 1c43 adds r3, r0, #1
8007514: d102 bne.n 800751c <_fstat_r+0x1c>
8007516: 682b ldr r3, [r5, #0]
8007518: b103 cbz r3, 800751c <_fstat_r+0x1c>
800751a: 6023 str r3, [r4, #0]
800751c: bd38 pop {r3, r4, r5, pc}
800751e: bf00 nop
8007520: 200051f0 .word 0x200051f0
08007524 <_isatty_r>:
8007524: b538 push {r3, r4, r5, lr}
8007526: 4d06 ldr r5, [pc, #24] @ (8007540 <_isatty_r+0x1c>)
8007528: 2300 movs r3, #0
800752a: 4604 mov r4, r0
800752c: 4608 mov r0, r1
800752e: 602b str r3, [r5, #0]
8007530: f7f9 ff07 bl 8001342 <_isatty>
8007534: 1c43 adds r3, r0, #1
8007536: d102 bne.n 800753e <_isatty_r+0x1a>
8007538: 682b ldr r3, [r5, #0]
800753a: b103 cbz r3, 800753e <_isatty_r+0x1a>
800753c: 6023 str r3, [r4, #0]
800753e: bd38 pop {r3, r4, r5, pc}
8007540: 200051f0 .word 0x200051f0
08007544 <_init>:
8007544: b5f8 push {r3, r4, r5, r6, r7, lr}
8007546: bf00 nop
8007548: bcf8 pop {r3, r4, r5, r6, r7}
800754a: bc08 pop {r3}
800754c: 469e mov lr, r3
800754e: 4770 bx lr
08007550 <_fini>:
8007550: b5f8 push {r3, r4, r5, r6, r7, lr}
8007552: bf00 nop
8007554: bcf8 pop {r3, r4, r5, r6, r7}
8007556: bc08 pop {r3}
8007558: 469e mov lr, r3
800755a: 4770 bx lr