m3s.elf: file format elf32-littlearm Sections: Idx Name Size VMA LMA File off Algn 0 .isr_vector 000001e4 08000000 08000000 00010000 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 1 .text 0000a6a4 080001e8 080001e8 000101e8 2**3 CONTENTS, ALLOC, LOAD, READONLY, CODE 2 .rodata 00000ed4 0800a890 0800a890 0001a890 2**3 CONTENTS, ALLOC, LOAD, READONLY, DATA 3 .ARM.extab 00000000 0800b764 0800b764 000201d4 2**0 CONTENTS 4 .ARM 00000000 0800b764 0800b764 000201d4 2**0 CONTENTS 5 .preinit_array 00000000 0800b764 0800b764 000201d4 2**0 CONTENTS, ALLOC, LOAD, DATA 6 .init_array 00000004 0800b764 0800b764 0001b764 2**2 CONTENTS, ALLOC, LOAD, DATA 7 .fini_array 00000004 0800b768 0800b768 0001b768 2**2 CONTENTS, ALLOC, LOAD, DATA 8 .data 000001d4 20000000 0800b76c 00020000 2**2 CONTENTS, ALLOC, LOAD, DATA 9 .bss 000024a0 200001d4 0800b940 000201d4 2**2 ALLOC 10 ._user_heap_stack 00000c04 20002674 0800b940 00022674 2**0 ALLOC 11 .ARM.attributes 00000029 00000000 00000000 000201d4 2**0 CONTENTS, READONLY 12 .comment 00000043 00000000 00000000 000201fd 2**0 CONTENTS, READONLY 13 .debug_info 00012d2d 00000000 00000000 00020240 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 14 .debug_abbrev 00003810 00000000 00000000 00032f6d 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 15 .debug_aranges 000013a0 00000000 00000000 00036780 2**3 CONTENTS, READONLY, DEBUGGING, OCTETS 16 .debug_rnglists 00000f3d 00000000 00000000 00037b20 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 17 .debug_macro 0001dce1 00000000 00000000 00038a5d 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 18 .debug_line 0001ab20 00000000 00000000 0005673e 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 19 .debug_str 000a0b65 00000000 00000000 0007125e 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS 20 .debug_frame 00006330 00000000 00000000 00111dc4 2**2 CONTENTS, READONLY, DEBUGGING, OCTETS 21 .debug_line_str 00000047 00000000 00000000 001180f4 2**0 CONTENTS, READONLY, DEBUGGING, OCTETS Disassembly of section .text: 080001e8 <__do_global_dtors_aux>: 80001e8: b510 push {r4, lr} 80001ea: 4c05 ldr r4, [pc, #20] ; (8000200 <__do_global_dtors_aux+0x18>) 80001ec: 7823 ldrb r3, [r4, #0] 80001ee: b933 cbnz r3, 80001fe <__do_global_dtors_aux+0x16> 80001f0: 4b04 ldr r3, [pc, #16] ; (8000204 <__do_global_dtors_aux+0x1c>) 80001f2: b113 cbz r3, 80001fa <__do_global_dtors_aux+0x12> 80001f4: 4804 ldr r0, [pc, #16] ; (8000208 <__do_global_dtors_aux+0x20>) 80001f6: f3af 8000 nop.w 80001fa: 2301 movs r3, #1 80001fc: 7023 strb r3, [r4, #0] 80001fe: bd10 pop {r4, pc} 8000200: 200001d4 .word 0x200001d4 8000204: 00000000 .word 0x00000000 8000208: 0800a874 .word 0x0800a874 0800020c : 800020c: b508 push {r3, lr} 800020e: 4b03 ldr r3, [pc, #12] ; (800021c ) 8000210: b11b cbz r3, 800021a 8000212: 4903 ldr r1, [pc, #12] ; (8000220 ) 8000214: 4803 ldr r0, [pc, #12] ; (8000224 ) 8000216: f3af 8000 nop.w 800021a: bd08 pop {r3, pc} 800021c: 00000000 .word 0x00000000 8000220: 200001d8 .word 0x200001d8 8000224: 0800a874 .word 0x0800a874 08000228 : 8000228: 4603 mov r3, r0 800022a: f813 2b01 ldrb.w r2, [r3], #1 800022e: 2a00 cmp r2, #0 8000230: d1fb bne.n 800022a 8000232: 1a18 subs r0, r3, r0 8000234: 3801 subs r0, #1 8000236: 4770 bx lr 08000238 <__aeabi_drsub>: 8000238: f081 4100 eor.w r1, r1, #2147483648 ; 0x80000000 800023c: e002 b.n 8000244 <__adddf3> 800023e: bf00 nop 08000240 <__aeabi_dsub>: 8000240: f083 4300 eor.w r3, r3, #2147483648 ; 0x80000000 08000244 <__adddf3>: 8000244: b530 push {r4, r5, lr} 8000246: ea4f 0441 mov.w r4, r1, lsl #1 800024a: ea4f 0543 mov.w r5, r3, lsl #1 800024e: ea94 0f05 teq r4, r5 8000252: bf08 it eq 8000254: ea90 0f02 teqeq r0, r2 8000258: bf1f itttt ne 800025a: ea54 0c00 orrsne.w ip, r4, r0 800025e: ea55 0c02 orrsne.w ip, r5, r2 8000262: ea7f 5c64 mvnsne.w ip, r4, asr #21 8000266: ea7f 5c65 mvnsne.w ip, r5, asr #21 800026a: f000 80e2 beq.w 8000432 <__adddf3+0x1ee> 800026e: ea4f 5454 mov.w r4, r4, lsr #21 8000272: ebd4 5555 rsbs r5, r4, r5, lsr #21 8000276: bfb8 it lt 8000278: 426d neglt r5, r5 800027a: dd0c ble.n 8000296 <__adddf3+0x52> 800027c: 442c add r4, r5 800027e: ea80 0202 eor.w r2, r0, r2 8000282: ea81 0303 eor.w r3, r1, r3 8000286: ea82 0000 eor.w r0, r2, r0 800028a: ea83 0101 eor.w r1, r3, r1 800028e: ea80 0202 eor.w r2, r0, r2 8000292: ea81 0303 eor.w r3, r1, r3 8000296: 2d36 cmp r5, #54 ; 0x36 8000298: bf88 it hi 800029a: bd30 pophi {r4, r5, pc} 800029c: f011 4f00 tst.w r1, #2147483648 ; 0x80000000 80002a0: ea4f 3101 mov.w r1, r1, lsl #12 80002a4: f44f 1c80 mov.w ip, #1048576 ; 0x100000 80002a8: ea4c 3111 orr.w r1, ip, r1, lsr #12 80002ac: d002 beq.n 80002b4 <__adddf3+0x70> 80002ae: 4240 negs r0, r0 80002b0: eb61 0141 sbc.w r1, r1, r1, lsl #1 80002b4: f013 4f00 tst.w r3, #2147483648 ; 0x80000000 80002b8: ea4f 3303 mov.w r3, r3, lsl #12 80002bc: ea4c 3313 orr.w r3, ip, r3, lsr #12 80002c0: d002 beq.n 80002c8 <__adddf3+0x84> 80002c2: 4252 negs r2, r2 80002c4: eb63 0343 sbc.w r3, r3, r3, lsl #1 80002c8: ea94 0f05 teq r4, r5 80002cc: f000 80a7 beq.w 800041e <__adddf3+0x1da> 80002d0: f1a4 0401 sub.w r4, r4, #1 80002d4: f1d5 0e20 rsbs lr, r5, #32 80002d8: db0d blt.n 80002f6 <__adddf3+0xb2> 80002da: fa02 fc0e lsl.w ip, r2, lr 80002de: fa22 f205 lsr.w r2, r2, r5 80002e2: 1880 adds r0, r0, r2 80002e4: f141 0100 adc.w r1, r1, #0 80002e8: fa03 f20e lsl.w r2, r3, lr 80002ec: 1880 adds r0, r0, r2 80002ee: fa43 f305 asr.w r3, r3, r5 80002f2: 4159 adcs r1, r3 80002f4: e00e b.n 8000314 <__adddf3+0xd0> 80002f6: f1a5 0520 sub.w r5, r5, #32 80002fa: f10e 0e20 add.w lr, lr, #32 80002fe: 2a01 cmp r2, #1 8000300: fa03 fc0e lsl.w ip, r3, lr 8000304: bf28 it cs 8000306: f04c 0c02 orrcs.w ip, ip, #2 800030a: fa43 f305 asr.w r3, r3, r5 800030e: 18c0 adds r0, r0, r3 8000310: eb51 71e3 adcs.w r1, r1, r3, asr #31 8000314: f001 4500 and.w r5, r1, #2147483648 ; 0x80000000 8000318: d507 bpl.n 800032a <__adddf3+0xe6> 800031a: f04f 0e00 mov.w lr, #0 800031e: f1dc 0c00 rsbs ip, ip, #0 8000322: eb7e 0000 sbcs.w r0, lr, r0 8000326: eb6e 0101 sbc.w r1, lr, r1 800032a: f5b1 1f80 cmp.w r1, #1048576 ; 0x100000 800032e: d31b bcc.n 8000368 <__adddf3+0x124> 8000330: f5b1 1f00 cmp.w r1, #2097152 ; 0x200000 8000334: d30c bcc.n 8000350 <__adddf3+0x10c> 8000336: 0849 lsrs r1, r1, #1 8000338: ea5f 0030 movs.w r0, r0, rrx 800033c: ea4f 0c3c mov.w ip, ip, rrx 8000340: f104 0401 add.w r4, r4, #1 8000344: ea4f 5244 mov.w r2, r4, lsl #21 8000348: f512 0f80 cmn.w r2, #4194304 ; 0x400000 800034c: f080 809a bcs.w 8000484 <__adddf3+0x240> 8000350: f1bc 4f00 cmp.w ip, #2147483648 ; 0x80000000 8000354: bf08 it eq 8000356: ea5f 0c50 movseq.w ip, r0, lsr #1 800035a: f150 0000 adcs.w r0, r0, #0 800035e: eb41 5104 adc.w r1, r1, r4, lsl #20 8000362: ea41 0105 orr.w r1, r1, r5 8000366: bd30 pop {r4, r5, pc} 8000368: ea5f 0c4c movs.w ip, ip, lsl #1 800036c: 4140 adcs r0, r0 800036e: eb41 0101 adc.w r1, r1, r1 8000372: 3c01 subs r4, #1 8000374: bf28 it cs 8000376: f5b1 1f80 cmpcs.w r1, #1048576 ; 0x100000 800037a: d2e9 bcs.n 8000350 <__adddf3+0x10c> 800037c: f091 0f00 teq r1, #0 8000380: bf04 itt eq 8000382: 4601 moveq r1, r0 8000384: 2000 moveq r0, #0 8000386: fab1 f381 clz r3, r1 800038a: bf08 it eq 800038c: 3320 addeq r3, #32 800038e: f1a3 030b sub.w r3, r3, #11 8000392: f1b3 0220 subs.w r2, r3, #32 8000396: da0c bge.n 80003b2 <__adddf3+0x16e> 8000398: 320c adds r2, #12 800039a: dd08 ble.n 80003ae <__adddf3+0x16a> 800039c: f102 0c14 add.w ip, r2, #20 80003a0: f1c2 020c rsb r2, r2, #12 80003a4: fa01 f00c lsl.w r0, r1, ip 80003a8: fa21 f102 lsr.w r1, r1, r2 80003ac: e00c b.n 80003c8 <__adddf3+0x184> 80003ae: f102 0214 add.w r2, r2, #20 80003b2: bfd8 it le 80003b4: f1c2 0c20 rsble ip, r2, #32 80003b8: fa01 f102 lsl.w r1, r1, r2 80003bc: fa20 fc0c lsr.w ip, r0, ip 80003c0: bfdc itt le 80003c2: ea41 010c orrle.w r1, r1, ip 80003c6: 4090 lslle r0, r2 80003c8: 1ae4 subs r4, r4, r3 80003ca: bfa2 ittt ge 80003cc: eb01 5104 addge.w r1, r1, r4, lsl #20 80003d0: 4329 orrge r1, r5 80003d2: bd30 popge {r4, r5, pc} 80003d4: ea6f 0404 mvn.w r4, r4 80003d8: 3c1f subs r4, #31 80003da: da1c bge.n 8000416 <__adddf3+0x1d2> 80003dc: 340c adds r4, #12 80003de: dc0e bgt.n 80003fe <__adddf3+0x1ba> 80003e0: f104 0414 add.w r4, r4, #20 80003e4: f1c4 0220 rsb r2, r4, #32 80003e8: fa20 f004 lsr.w r0, r0, r4 80003ec: fa01 f302 lsl.w r3, r1, r2 80003f0: ea40 0003 orr.w r0, r0, r3 80003f4: fa21 f304 lsr.w r3, r1, r4 80003f8: ea45 0103 orr.w r1, r5, r3 80003fc: bd30 pop {r4, r5, pc} 80003fe: f1c4 040c rsb r4, r4, #12 8000402: f1c4 0220 rsb r2, r4, #32 8000406: fa20 f002 lsr.w r0, r0, r2 800040a: fa01 f304 lsl.w r3, r1, r4 800040e: ea40 0003 orr.w r0, r0, r3 8000412: 4629 mov r1, r5 8000414: bd30 pop {r4, r5, pc} 8000416: fa21 f004 lsr.w r0, r1, r4 800041a: 4629 mov r1, r5 800041c: bd30 pop {r4, r5, pc} 800041e: f094 0f00 teq r4, #0 8000422: f483 1380 eor.w r3, r3, #1048576 ; 0x100000 8000426: bf06 itte eq 8000428: f481 1180 eoreq.w r1, r1, #1048576 ; 0x100000 800042c: 3401 addeq r4, #1 800042e: 3d01 subne r5, #1 8000430: e74e b.n 80002d0 <__adddf3+0x8c> 8000432: ea7f 5c64 mvns.w ip, r4, asr #21 8000436: bf18 it ne 8000438: ea7f 5c65 mvnsne.w ip, r5, asr #21 800043c: d029 beq.n 8000492 <__adddf3+0x24e> 800043e: ea94 0f05 teq r4, r5 8000442: bf08 it eq 8000444: ea90 0f02 teqeq r0, r2 8000448: d005 beq.n 8000456 <__adddf3+0x212> 800044a: ea54 0c00 orrs.w ip, r4, r0 800044e: bf04 itt eq 8000450: 4619 moveq r1, r3 8000452: 4610 moveq r0, r2 8000454: bd30 pop {r4, r5, pc} 8000456: ea91 0f03 teq r1, r3 800045a: bf1e ittt ne 800045c: 2100 movne r1, #0 800045e: 2000 movne r0, #0 8000460: bd30 popne {r4, r5, pc} 8000462: ea5f 5c54 movs.w ip, r4, lsr #21 8000466: d105 bne.n 8000474 <__adddf3+0x230> 8000468: 0040 lsls r0, r0, #1 800046a: 4149 adcs r1, r1 800046c: bf28 it cs 800046e: f041 4100 orrcs.w r1, r1, #2147483648 ; 0x80000000 8000472: bd30 pop {r4, r5, pc} 8000474: f514 0480 adds.w r4, r4, #4194304 ; 0x400000 8000478: bf3c itt cc 800047a: f501 1180 addcc.w r1, r1, #1048576 ; 0x100000 800047e: bd30 popcc {r4, r5, pc} 8000480: f001 4500 and.w r5, r1, #2147483648 ; 0x80000000 8000484: f045 41fe orr.w r1, r5, #2130706432 ; 0x7f000000 8000488: f441 0170 orr.w r1, r1, #15728640 ; 0xf00000 800048c: f04f 0000 mov.w r0, #0 8000490: bd30 pop {r4, r5, pc} 8000492: ea7f 5c64 mvns.w ip, r4, asr #21 8000496: bf1a itte ne 8000498: 4619 movne r1, r3 800049a: 4610 movne r0, r2 800049c: ea7f 5c65 mvnseq.w ip, r5, asr #21 80004a0: bf1c itt ne 80004a2: 460b movne r3, r1 80004a4: 4602 movne r2, r0 80004a6: ea50 3401 orrs.w r4, r0, r1, lsl #12 80004aa: bf06 itte eq 80004ac: ea52 3503 orrseq.w r5, r2, r3, lsl #12 80004b0: ea91 0f03 teqeq r1, r3 80004b4: f441 2100 orrne.w r1, r1, #524288 ; 0x80000 80004b8: bd30 pop {r4, r5, pc} 80004ba: bf00 nop 080004bc <__aeabi_ui2d>: 80004bc: f090 0f00 teq r0, #0 80004c0: bf04 itt eq 80004c2: 2100 moveq r1, #0 80004c4: 4770 bxeq lr 80004c6: b530 push {r4, r5, lr} 80004c8: f44f 6480 mov.w r4, #1024 ; 0x400 80004cc: f104 0432 add.w r4, r4, #50 ; 0x32 80004d0: f04f 0500 mov.w r5, #0 80004d4: f04f 0100 mov.w r1, #0 80004d8: e750 b.n 800037c <__adddf3+0x138> 80004da: bf00 nop 080004dc <__aeabi_i2d>: 80004dc: f090 0f00 teq r0, #0 80004e0: bf04 itt eq 80004e2: 2100 moveq r1, #0 80004e4: 4770 bxeq lr 80004e6: b530 push {r4, r5, lr} 80004e8: f44f 6480 mov.w r4, #1024 ; 0x400 80004ec: f104 0432 add.w r4, r4, #50 ; 0x32 80004f0: f010 4500 ands.w r5, r0, #2147483648 ; 0x80000000 80004f4: bf48 it mi 80004f6: 4240 negmi r0, r0 80004f8: f04f 0100 mov.w r1, #0 80004fc: e73e b.n 800037c <__adddf3+0x138> 80004fe: bf00 nop 08000500 <__aeabi_f2d>: 8000500: 0042 lsls r2, r0, #1 8000502: ea4f 01e2 mov.w r1, r2, asr #3 8000506: ea4f 0131 mov.w r1, r1, rrx 800050a: ea4f 7002 mov.w r0, r2, lsl #28 800050e: bf1f itttt ne 8000510: f012 437f andsne.w r3, r2, #4278190080 ; 0xff000000 8000514: f093 4f7f teqne r3, #4278190080 ; 0xff000000 8000518: f081 5160 eorne.w r1, r1, #939524096 ; 0x38000000 800051c: 4770 bxne lr 800051e: f032 427f bics.w r2, r2, #4278190080 ; 0xff000000 8000522: bf08 it eq 8000524: 4770 bxeq lr 8000526: f093 4f7f teq r3, #4278190080 ; 0xff000000 800052a: bf04 itt eq 800052c: f441 2100 orreq.w r1, r1, #524288 ; 0x80000 8000530: 4770 bxeq lr 8000532: b530 push {r4, r5, lr} 8000534: f44f 7460 mov.w r4, #896 ; 0x380 8000538: f001 4500 and.w r5, r1, #2147483648 ; 0x80000000 800053c: f021 4100 bic.w r1, r1, #2147483648 ; 0x80000000 8000540: e71c b.n 800037c <__adddf3+0x138> 8000542: bf00 nop 08000544 <__aeabi_ul2d>: 8000544: ea50 0201 orrs.w r2, r0, r1 8000548: bf08 it eq 800054a: 4770 bxeq lr 800054c: b530 push {r4, r5, lr} 800054e: f04f 0500 mov.w r5, #0 8000552: e00a b.n 800056a <__aeabi_l2d+0x16> 08000554 <__aeabi_l2d>: 8000554: ea50 0201 orrs.w r2, r0, r1 8000558: bf08 it eq 800055a: 4770 bxeq lr 800055c: b530 push {r4, r5, lr} 800055e: f011 4500 ands.w r5, r1, #2147483648 ; 0x80000000 8000562: d502 bpl.n 800056a <__aeabi_l2d+0x16> 8000564: 4240 negs r0, r0 8000566: eb61 0141 sbc.w r1, r1, r1, lsl #1 800056a: f44f 6480 mov.w r4, #1024 ; 0x400 800056e: f104 0432 add.w r4, r4, #50 ; 0x32 8000572: ea5f 5c91 movs.w ip, r1, lsr #22 8000576: f43f aed8 beq.w 800032a <__adddf3+0xe6> 800057a: f04f 0203 mov.w r2, #3 800057e: ea5f 0cdc movs.w ip, ip, lsr #3 8000582: bf18 it ne 8000584: 3203 addne r2, #3 8000586: ea5f 0cdc movs.w ip, ip, lsr #3 800058a: bf18 it ne 800058c: 3203 addne r2, #3 800058e: eb02 02dc add.w r2, r2, ip, lsr #3 8000592: f1c2 0320 rsb r3, r2, #32 8000596: fa00 fc03 lsl.w ip, r0, r3 800059a: fa20 f002 lsr.w r0, r0, r2 800059e: fa01 fe03 lsl.w lr, r1, r3 80005a2: ea40 000e orr.w r0, r0, lr 80005a6: fa21 f102 lsr.w r1, r1, r2 80005aa: 4414 add r4, r2 80005ac: e6bd b.n 800032a <__adddf3+0xe6> 80005ae: bf00 nop 080005b0 <__aeabi_dmul>: 80005b0: b570 push {r4, r5, r6, lr} 80005b2: f04f 0cff mov.w ip, #255 ; 0xff 80005b6: f44c 6ce0 orr.w ip, ip, #1792 ; 0x700 80005ba: ea1c 5411 ands.w r4, ip, r1, lsr #20 80005be: bf1d ittte ne 80005c0: ea1c 5513 andsne.w r5, ip, r3, lsr #20 80005c4: ea94 0f0c teqne r4, ip 80005c8: ea95 0f0c teqne r5, ip 80005cc: f000 f8de bleq 800078c <__aeabi_dmul+0x1dc> 80005d0: 442c add r4, r5 80005d2: ea81 0603 eor.w r6, r1, r3 80005d6: ea21 514c bic.w r1, r1, ip, lsl #21 80005da: ea23 534c bic.w r3, r3, ip, lsl #21 80005de: ea50 3501 orrs.w r5, r0, r1, lsl #12 80005e2: bf18 it ne 80005e4: ea52 3503 orrsne.w r5, r2, r3, lsl #12 80005e8: f441 1180 orr.w r1, r1, #1048576 ; 0x100000 80005ec: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 80005f0: d038 beq.n 8000664 <__aeabi_dmul+0xb4> 80005f2: fba0 ce02 umull ip, lr, r0, r2 80005f6: f04f 0500 mov.w r5, #0 80005fa: fbe1 e502 umlal lr, r5, r1, r2 80005fe: f006 4200 and.w r2, r6, #2147483648 ; 0x80000000 8000602: fbe0 e503 umlal lr, r5, r0, r3 8000606: f04f 0600 mov.w r6, #0 800060a: fbe1 5603 umlal r5, r6, r1, r3 800060e: f09c 0f00 teq ip, #0 8000612: bf18 it ne 8000614: f04e 0e01 orrne.w lr, lr, #1 8000618: f1a4 04ff sub.w r4, r4, #255 ; 0xff 800061c: f5b6 7f00 cmp.w r6, #512 ; 0x200 8000620: f564 7440 sbc.w r4, r4, #768 ; 0x300 8000624: d204 bcs.n 8000630 <__aeabi_dmul+0x80> 8000626: ea5f 0e4e movs.w lr, lr, lsl #1 800062a: 416d adcs r5, r5 800062c: eb46 0606 adc.w r6, r6, r6 8000630: ea42 21c6 orr.w r1, r2, r6, lsl #11 8000634: ea41 5155 orr.w r1, r1, r5, lsr #21 8000638: ea4f 20c5 mov.w r0, r5, lsl #11 800063c: ea40 505e orr.w r0, r0, lr, lsr #21 8000640: ea4f 2ece mov.w lr, lr, lsl #11 8000644: f1b4 0cfd subs.w ip, r4, #253 ; 0xfd 8000648: bf88 it hi 800064a: f5bc 6fe0 cmphi.w ip, #1792 ; 0x700 800064e: d81e bhi.n 800068e <__aeabi_dmul+0xde> 8000650: f1be 4f00 cmp.w lr, #2147483648 ; 0x80000000 8000654: bf08 it eq 8000656: ea5f 0e50 movseq.w lr, r0, lsr #1 800065a: f150 0000 adcs.w r0, r0, #0 800065e: eb41 5104 adc.w r1, r1, r4, lsl #20 8000662: bd70 pop {r4, r5, r6, pc} 8000664: f006 4600 and.w r6, r6, #2147483648 ; 0x80000000 8000668: ea46 0101 orr.w r1, r6, r1 800066c: ea40 0002 orr.w r0, r0, r2 8000670: ea81 0103 eor.w r1, r1, r3 8000674: ebb4 045c subs.w r4, r4, ip, lsr #1 8000678: bfc2 ittt gt 800067a: ebd4 050c rsbsgt r5, r4, ip 800067e: ea41 5104 orrgt.w r1, r1, r4, lsl #20 8000682: bd70 popgt {r4, r5, r6, pc} 8000684: f441 1180 orr.w r1, r1, #1048576 ; 0x100000 8000688: f04f 0e00 mov.w lr, #0 800068c: 3c01 subs r4, #1 800068e: f300 80ab bgt.w 80007e8 <__aeabi_dmul+0x238> 8000692: f114 0f36 cmn.w r4, #54 ; 0x36 8000696: bfde ittt le 8000698: 2000 movle r0, #0 800069a: f001 4100 andle.w r1, r1, #2147483648 ; 0x80000000 800069e: bd70 pople {r4, r5, r6, pc} 80006a0: f1c4 0400 rsb r4, r4, #0 80006a4: 3c20 subs r4, #32 80006a6: da35 bge.n 8000714 <__aeabi_dmul+0x164> 80006a8: 340c adds r4, #12 80006aa: dc1b bgt.n 80006e4 <__aeabi_dmul+0x134> 80006ac: f104 0414 add.w r4, r4, #20 80006b0: f1c4 0520 rsb r5, r4, #32 80006b4: fa00 f305 lsl.w r3, r0, r5 80006b8: fa20 f004 lsr.w r0, r0, r4 80006bc: fa01 f205 lsl.w r2, r1, r5 80006c0: ea40 0002 orr.w r0, r0, r2 80006c4: f001 4200 and.w r2, r1, #2147483648 ; 0x80000000 80006c8: f021 4100 bic.w r1, r1, #2147483648 ; 0x80000000 80006cc: eb10 70d3 adds.w r0, r0, r3, lsr #31 80006d0: fa21 f604 lsr.w r6, r1, r4 80006d4: eb42 0106 adc.w r1, r2, r6 80006d8: ea5e 0e43 orrs.w lr, lr, r3, lsl #1 80006dc: bf08 it eq 80006de: ea20 70d3 biceq.w r0, r0, r3, lsr #31 80006e2: bd70 pop {r4, r5, r6, pc} 80006e4: f1c4 040c rsb r4, r4, #12 80006e8: f1c4 0520 rsb r5, r4, #32 80006ec: fa00 f304 lsl.w r3, r0, r4 80006f0: fa20 f005 lsr.w r0, r0, r5 80006f4: fa01 f204 lsl.w r2, r1, r4 80006f8: ea40 0002 orr.w r0, r0, r2 80006fc: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000 8000700: eb10 70d3 adds.w r0, r0, r3, lsr #31 8000704: f141 0100 adc.w r1, r1, #0 8000708: ea5e 0e43 orrs.w lr, lr, r3, lsl #1 800070c: bf08 it eq 800070e: ea20 70d3 biceq.w r0, r0, r3, lsr #31 8000712: bd70 pop {r4, r5, r6, pc} 8000714: f1c4 0520 rsb r5, r4, #32 8000718: fa00 f205 lsl.w r2, r0, r5 800071c: ea4e 0e02 orr.w lr, lr, r2 8000720: fa20 f304 lsr.w r3, r0, r4 8000724: fa01 f205 lsl.w r2, r1, r5 8000728: ea43 0302 orr.w r3, r3, r2 800072c: fa21 f004 lsr.w r0, r1, r4 8000730: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000 8000734: fa21 f204 lsr.w r2, r1, r4 8000738: ea20 0002 bic.w r0, r0, r2 800073c: eb00 70d3 add.w r0, r0, r3, lsr #31 8000740: ea5e 0e43 orrs.w lr, lr, r3, lsl #1 8000744: bf08 it eq 8000746: ea20 70d3 biceq.w r0, r0, r3, lsr #31 800074a: bd70 pop {r4, r5, r6, pc} 800074c: f094 0f00 teq r4, #0 8000750: d10f bne.n 8000772 <__aeabi_dmul+0x1c2> 8000752: f001 4600 and.w r6, r1, #2147483648 ; 0x80000000 8000756: 0040 lsls r0, r0, #1 8000758: eb41 0101 adc.w r1, r1, r1 800075c: f411 1f80 tst.w r1, #1048576 ; 0x100000 8000760: bf08 it eq 8000762: 3c01 subeq r4, #1 8000764: d0f7 beq.n 8000756 <__aeabi_dmul+0x1a6> 8000766: ea41 0106 orr.w r1, r1, r6 800076a: f095 0f00 teq r5, #0 800076e: bf18 it ne 8000770: 4770 bxne lr 8000772: f003 4600 and.w r6, r3, #2147483648 ; 0x80000000 8000776: 0052 lsls r2, r2, #1 8000778: eb43 0303 adc.w r3, r3, r3 800077c: f413 1f80 tst.w r3, #1048576 ; 0x100000 8000780: bf08 it eq 8000782: 3d01 subeq r5, #1 8000784: d0f7 beq.n 8000776 <__aeabi_dmul+0x1c6> 8000786: ea43 0306 orr.w r3, r3, r6 800078a: 4770 bx lr 800078c: ea94 0f0c teq r4, ip 8000790: ea0c 5513 and.w r5, ip, r3, lsr #20 8000794: bf18 it ne 8000796: ea95 0f0c teqne r5, ip 800079a: d00c beq.n 80007b6 <__aeabi_dmul+0x206> 800079c: ea50 0641 orrs.w r6, r0, r1, lsl #1 80007a0: bf18 it ne 80007a2: ea52 0643 orrsne.w r6, r2, r3, lsl #1 80007a6: d1d1 bne.n 800074c <__aeabi_dmul+0x19c> 80007a8: ea81 0103 eor.w r1, r1, r3 80007ac: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000 80007b0: f04f 0000 mov.w r0, #0 80007b4: bd70 pop {r4, r5, r6, pc} 80007b6: ea50 0641 orrs.w r6, r0, r1, lsl #1 80007ba: bf06 itte eq 80007bc: 4610 moveq r0, r2 80007be: 4619 moveq r1, r3 80007c0: ea52 0643 orrsne.w r6, r2, r3, lsl #1 80007c4: d019 beq.n 80007fa <__aeabi_dmul+0x24a> 80007c6: ea94 0f0c teq r4, ip 80007ca: d102 bne.n 80007d2 <__aeabi_dmul+0x222> 80007cc: ea50 3601 orrs.w r6, r0, r1, lsl #12 80007d0: d113 bne.n 80007fa <__aeabi_dmul+0x24a> 80007d2: ea95 0f0c teq r5, ip 80007d6: d105 bne.n 80007e4 <__aeabi_dmul+0x234> 80007d8: ea52 3603 orrs.w r6, r2, r3, lsl #12 80007dc: bf1c itt ne 80007de: 4610 movne r0, r2 80007e0: 4619 movne r1, r3 80007e2: d10a bne.n 80007fa <__aeabi_dmul+0x24a> 80007e4: ea81 0103 eor.w r1, r1, r3 80007e8: f001 4100 and.w r1, r1, #2147483648 ; 0x80000000 80007ec: f041 41fe orr.w r1, r1, #2130706432 ; 0x7f000000 80007f0: f441 0170 orr.w r1, r1, #15728640 ; 0xf00000 80007f4: f04f 0000 mov.w r0, #0 80007f8: bd70 pop {r4, r5, r6, pc} 80007fa: f041 41fe orr.w r1, r1, #2130706432 ; 0x7f000000 80007fe: f441 0178 orr.w r1, r1, #16252928 ; 0xf80000 8000802: bd70 pop {r4, r5, r6, pc} 08000804 <__aeabi_ddiv>: 8000804: b570 push {r4, r5, r6, lr} 8000806: f04f 0cff mov.w ip, #255 ; 0xff 800080a: f44c 6ce0 orr.w ip, ip, #1792 ; 0x700 800080e: ea1c 5411 ands.w r4, ip, r1, lsr #20 8000812: bf1d ittte ne 8000814: ea1c 5513 andsne.w r5, ip, r3, lsr #20 8000818: ea94 0f0c teqne r4, ip 800081c: ea95 0f0c teqne r5, ip 8000820: f000 f8a7 bleq 8000972 <__aeabi_ddiv+0x16e> 8000824: eba4 0405 sub.w r4, r4, r5 8000828: ea81 0e03 eor.w lr, r1, r3 800082c: ea52 3503 orrs.w r5, r2, r3, lsl #12 8000830: ea4f 3101 mov.w r1, r1, lsl #12 8000834: f000 8088 beq.w 8000948 <__aeabi_ddiv+0x144> 8000838: ea4f 3303 mov.w r3, r3, lsl #12 800083c: f04f 5580 mov.w r5, #268435456 ; 0x10000000 8000840: ea45 1313 orr.w r3, r5, r3, lsr #4 8000844: ea43 6312 orr.w r3, r3, r2, lsr #24 8000848: ea4f 2202 mov.w r2, r2, lsl #8 800084c: ea45 1511 orr.w r5, r5, r1, lsr #4 8000850: ea45 6510 orr.w r5, r5, r0, lsr #24 8000854: ea4f 2600 mov.w r6, r0, lsl #8 8000858: f00e 4100 and.w r1, lr, #2147483648 ; 0x80000000 800085c: 429d cmp r5, r3 800085e: bf08 it eq 8000860: 4296 cmpeq r6, r2 8000862: f144 04fd adc.w r4, r4, #253 ; 0xfd 8000866: f504 7440 add.w r4, r4, #768 ; 0x300 800086a: d202 bcs.n 8000872 <__aeabi_ddiv+0x6e> 800086c: 085b lsrs r3, r3, #1 800086e: ea4f 0232 mov.w r2, r2, rrx 8000872: 1ab6 subs r6, r6, r2 8000874: eb65 0503 sbc.w r5, r5, r3 8000878: 085b lsrs r3, r3, #1 800087a: ea4f 0232 mov.w r2, r2, rrx 800087e: f44f 1080 mov.w r0, #1048576 ; 0x100000 8000882: f44f 2c00 mov.w ip, #524288 ; 0x80000 8000886: ebb6 0e02 subs.w lr, r6, r2 800088a: eb75 0e03 sbcs.w lr, r5, r3 800088e: bf22 ittt cs 8000890: 1ab6 subcs r6, r6, r2 8000892: 4675 movcs r5, lr 8000894: ea40 000c orrcs.w r0, r0, ip 8000898: 085b lsrs r3, r3, #1 800089a: ea4f 0232 mov.w r2, r2, rrx 800089e: ebb6 0e02 subs.w lr, r6, r2 80008a2: eb75 0e03 sbcs.w lr, r5, r3 80008a6: bf22 ittt cs 80008a8: 1ab6 subcs r6, r6, r2 80008aa: 4675 movcs r5, lr 80008ac: ea40 005c orrcs.w r0, r0, ip, lsr #1 80008b0: 085b lsrs r3, r3, #1 80008b2: ea4f 0232 mov.w r2, r2, rrx 80008b6: ebb6 0e02 subs.w lr, r6, r2 80008ba: eb75 0e03 sbcs.w lr, r5, r3 80008be: bf22 ittt cs 80008c0: 1ab6 subcs r6, r6, r2 80008c2: 4675 movcs r5, lr 80008c4: ea40 009c orrcs.w r0, r0, ip, lsr #2 80008c8: 085b lsrs r3, r3, #1 80008ca: ea4f 0232 mov.w r2, r2, rrx 80008ce: ebb6 0e02 subs.w lr, r6, r2 80008d2: eb75 0e03 sbcs.w lr, r5, r3 80008d6: bf22 ittt cs 80008d8: 1ab6 subcs r6, r6, r2 80008da: 4675 movcs r5, lr 80008dc: ea40 00dc orrcs.w r0, r0, ip, lsr #3 80008e0: ea55 0e06 orrs.w lr, r5, r6 80008e4: d018 beq.n 8000918 <__aeabi_ddiv+0x114> 80008e6: ea4f 1505 mov.w r5, r5, lsl #4 80008ea: ea45 7516 orr.w r5, r5, r6, lsr #28 80008ee: ea4f 1606 mov.w r6, r6, lsl #4 80008f2: ea4f 03c3 mov.w r3, r3, lsl #3 80008f6: ea43 7352 orr.w r3, r3, r2, lsr #29 80008fa: ea4f 02c2 mov.w r2, r2, lsl #3 80008fe: ea5f 1c1c movs.w ip, ip, lsr #4 8000902: d1c0 bne.n 8000886 <__aeabi_ddiv+0x82> 8000904: f411 1f80 tst.w r1, #1048576 ; 0x100000 8000908: d10b bne.n 8000922 <__aeabi_ddiv+0x11e> 800090a: ea41 0100 orr.w r1, r1, r0 800090e: f04f 0000 mov.w r0, #0 8000912: f04f 4c00 mov.w ip, #2147483648 ; 0x80000000 8000916: e7b6 b.n 8000886 <__aeabi_ddiv+0x82> 8000918: f411 1f80 tst.w r1, #1048576 ; 0x100000 800091c: bf04 itt eq 800091e: 4301 orreq r1, r0 8000920: 2000 moveq r0, #0 8000922: f1b4 0cfd subs.w ip, r4, #253 ; 0xfd 8000926: bf88 it hi 8000928: f5bc 6fe0 cmphi.w ip, #1792 ; 0x700 800092c: f63f aeaf bhi.w 800068e <__aeabi_dmul+0xde> 8000930: ebb5 0c03 subs.w ip, r5, r3 8000934: bf04 itt eq 8000936: ebb6 0c02 subseq.w ip, r6, r2 800093a: ea5f 0c50 movseq.w ip, r0, lsr #1 800093e: f150 0000 adcs.w r0, r0, #0 8000942: eb41 5104 adc.w r1, r1, r4, lsl #20 8000946: bd70 pop {r4, r5, r6, pc} 8000948: f00e 4e00 and.w lr, lr, #2147483648 ; 0x80000000 800094c: ea4e 3111 orr.w r1, lr, r1, lsr #12 8000950: eb14 045c adds.w r4, r4, ip, lsr #1 8000954: bfc2 ittt gt 8000956: ebd4 050c rsbsgt r5, r4, ip 800095a: ea41 5104 orrgt.w r1, r1, r4, lsl #20 800095e: bd70 popgt {r4, r5, r6, pc} 8000960: f441 1180 orr.w r1, r1, #1048576 ; 0x100000 8000964: f04f 0e00 mov.w lr, #0 8000968: 3c01 subs r4, #1 800096a: e690 b.n 800068e <__aeabi_dmul+0xde> 800096c: ea45 0e06 orr.w lr, r5, r6 8000970: e68d b.n 800068e <__aeabi_dmul+0xde> 8000972: ea0c 5513 and.w r5, ip, r3, lsr #20 8000976: ea94 0f0c teq r4, ip 800097a: bf08 it eq 800097c: ea95 0f0c teqeq r5, ip 8000980: f43f af3b beq.w 80007fa <__aeabi_dmul+0x24a> 8000984: ea94 0f0c teq r4, ip 8000988: d10a bne.n 80009a0 <__aeabi_ddiv+0x19c> 800098a: ea50 3401 orrs.w r4, r0, r1, lsl #12 800098e: f47f af34 bne.w 80007fa <__aeabi_dmul+0x24a> 8000992: ea95 0f0c teq r5, ip 8000996: f47f af25 bne.w 80007e4 <__aeabi_dmul+0x234> 800099a: 4610 mov r0, r2 800099c: 4619 mov r1, r3 800099e: e72c b.n 80007fa <__aeabi_dmul+0x24a> 80009a0: ea95 0f0c teq r5, ip 80009a4: d106 bne.n 80009b4 <__aeabi_ddiv+0x1b0> 80009a6: ea52 3503 orrs.w r5, r2, r3, lsl #12 80009aa: f43f aefd beq.w 80007a8 <__aeabi_dmul+0x1f8> 80009ae: 4610 mov r0, r2 80009b0: 4619 mov r1, r3 80009b2: e722 b.n 80007fa <__aeabi_dmul+0x24a> 80009b4: ea50 0641 orrs.w r6, r0, r1, lsl #1 80009b8: bf18 it ne 80009ba: ea52 0643 orrsne.w r6, r2, r3, lsl #1 80009be: f47f aec5 bne.w 800074c <__aeabi_dmul+0x19c> 80009c2: ea50 0441 orrs.w r4, r0, r1, lsl #1 80009c6: f47f af0d bne.w 80007e4 <__aeabi_dmul+0x234> 80009ca: ea52 0543 orrs.w r5, r2, r3, lsl #1 80009ce: f47f aeeb bne.w 80007a8 <__aeabi_dmul+0x1f8> 80009d2: e712 b.n 80007fa <__aeabi_dmul+0x24a> 080009d4 <__gedf2>: 80009d4: f04f 3cff mov.w ip, #4294967295 80009d8: e006 b.n 80009e8 <__cmpdf2+0x4> 80009da: bf00 nop 080009dc <__ledf2>: 80009dc: f04f 0c01 mov.w ip, #1 80009e0: e002 b.n 80009e8 <__cmpdf2+0x4> 80009e2: bf00 nop 080009e4 <__cmpdf2>: 80009e4: f04f 0c01 mov.w ip, #1 80009e8: f84d cd04 str.w ip, [sp, #-4]! 80009ec: ea4f 0c41 mov.w ip, r1, lsl #1 80009f0: ea7f 5c6c mvns.w ip, ip, asr #21 80009f4: ea4f 0c43 mov.w ip, r3, lsl #1 80009f8: bf18 it ne 80009fa: ea7f 5c6c mvnsne.w ip, ip, asr #21 80009fe: d01b beq.n 8000a38 <__cmpdf2+0x54> 8000a00: b001 add sp, #4 8000a02: ea50 0c41 orrs.w ip, r0, r1, lsl #1 8000a06: bf0c ite eq 8000a08: ea52 0c43 orrseq.w ip, r2, r3, lsl #1 8000a0c: ea91 0f03 teqne r1, r3 8000a10: bf02 ittt eq 8000a12: ea90 0f02 teqeq r0, r2 8000a16: 2000 moveq r0, #0 8000a18: 4770 bxeq lr 8000a1a: f110 0f00 cmn.w r0, #0 8000a1e: ea91 0f03 teq r1, r3 8000a22: bf58 it pl 8000a24: 4299 cmppl r1, r3 8000a26: bf08 it eq 8000a28: 4290 cmpeq r0, r2 8000a2a: bf2c ite cs 8000a2c: 17d8 asrcs r0, r3, #31 8000a2e: ea6f 70e3 mvncc.w r0, r3, asr #31 8000a32: f040 0001 orr.w r0, r0, #1 8000a36: 4770 bx lr 8000a38: ea4f 0c41 mov.w ip, r1, lsl #1 8000a3c: ea7f 5c6c mvns.w ip, ip, asr #21 8000a40: d102 bne.n 8000a48 <__cmpdf2+0x64> 8000a42: ea50 3c01 orrs.w ip, r0, r1, lsl #12 8000a46: d107 bne.n 8000a58 <__cmpdf2+0x74> 8000a48: ea4f 0c43 mov.w ip, r3, lsl #1 8000a4c: ea7f 5c6c mvns.w ip, ip, asr #21 8000a50: d1d6 bne.n 8000a00 <__cmpdf2+0x1c> 8000a52: ea52 3c03 orrs.w ip, r2, r3, lsl #12 8000a56: d0d3 beq.n 8000a00 <__cmpdf2+0x1c> 8000a58: f85d 0b04 ldr.w r0, [sp], #4 8000a5c: 4770 bx lr 8000a5e: bf00 nop 08000a60 <__aeabi_cdrcmple>: 8000a60: 4684 mov ip, r0 8000a62: 4610 mov r0, r2 8000a64: 4662 mov r2, ip 8000a66: 468c mov ip, r1 8000a68: 4619 mov r1, r3 8000a6a: 4663 mov r3, ip 8000a6c: e000 b.n 8000a70 <__aeabi_cdcmpeq> 8000a6e: bf00 nop 08000a70 <__aeabi_cdcmpeq>: 8000a70: b501 push {r0, lr} 8000a72: f7ff ffb7 bl 80009e4 <__cmpdf2> 8000a76: 2800 cmp r0, #0 8000a78: bf48 it mi 8000a7a: f110 0f00 cmnmi.w r0, #0 8000a7e: bd01 pop {r0, pc} 08000a80 <__aeabi_dcmpeq>: 8000a80: f84d ed08 str.w lr, [sp, #-8]! 8000a84: f7ff fff4 bl 8000a70 <__aeabi_cdcmpeq> 8000a88: bf0c ite eq 8000a8a: 2001 moveq r0, #1 8000a8c: 2000 movne r0, #0 8000a8e: f85d fb08 ldr.w pc, [sp], #8 8000a92: bf00 nop 08000a94 <__aeabi_dcmplt>: 8000a94: f84d ed08 str.w lr, [sp, #-8]! 8000a98: f7ff ffea bl 8000a70 <__aeabi_cdcmpeq> 8000a9c: bf34 ite cc 8000a9e: 2001 movcc r0, #1 8000aa0: 2000 movcs r0, #0 8000aa2: f85d fb08 ldr.w pc, [sp], #8 8000aa6: bf00 nop 08000aa8 <__aeabi_dcmple>: 8000aa8: f84d ed08 str.w lr, [sp, #-8]! 8000aac: f7ff ffe0 bl 8000a70 <__aeabi_cdcmpeq> 8000ab0: bf94 ite ls 8000ab2: 2001 movls r0, #1 8000ab4: 2000 movhi r0, #0 8000ab6: f85d fb08 ldr.w pc, [sp], #8 8000aba: bf00 nop 08000abc <__aeabi_dcmpge>: 8000abc: f84d ed08 str.w lr, [sp, #-8]! 8000ac0: f7ff ffce bl 8000a60 <__aeabi_cdrcmple> 8000ac4: bf94 ite ls 8000ac6: 2001 movls r0, #1 8000ac8: 2000 movhi r0, #0 8000aca: f85d fb08 ldr.w pc, [sp], #8 8000ace: bf00 nop 08000ad0 <__aeabi_dcmpgt>: 8000ad0: f84d ed08 str.w lr, [sp, #-8]! 8000ad4: f7ff ffc4 bl 8000a60 <__aeabi_cdrcmple> 8000ad8: bf34 ite cc 8000ada: 2001 movcc r0, #1 8000adc: 2000 movcs r0, #0 8000ade: f85d fb08 ldr.w pc, [sp], #8 8000ae2: bf00 nop 08000ae4 <__aeabi_dcmpun>: 8000ae4: ea4f 0c41 mov.w ip, r1, lsl #1 8000ae8: ea7f 5c6c mvns.w ip, ip, asr #21 8000aec: d102 bne.n 8000af4 <__aeabi_dcmpun+0x10> 8000aee: ea50 3c01 orrs.w ip, r0, r1, lsl #12 8000af2: d10a bne.n 8000b0a <__aeabi_dcmpun+0x26> 8000af4: ea4f 0c43 mov.w ip, r3, lsl #1 8000af8: ea7f 5c6c mvns.w ip, ip, asr #21 8000afc: d102 bne.n 8000b04 <__aeabi_dcmpun+0x20> 8000afe: ea52 3c03 orrs.w ip, r2, r3, lsl #12 8000b02: d102 bne.n 8000b0a <__aeabi_dcmpun+0x26> 8000b04: f04f 0000 mov.w r0, #0 8000b08: 4770 bx lr 8000b0a: f04f 0001 mov.w r0, #1 8000b0e: 4770 bx lr 08000b10 <__aeabi_d2iz>: 8000b10: ea4f 0241 mov.w r2, r1, lsl #1 8000b14: f512 1200 adds.w r2, r2, #2097152 ; 0x200000 8000b18: d215 bcs.n 8000b46 <__aeabi_d2iz+0x36> 8000b1a: d511 bpl.n 8000b40 <__aeabi_d2iz+0x30> 8000b1c: f46f 7378 mvn.w r3, #992 ; 0x3e0 8000b20: ebb3 5262 subs.w r2, r3, r2, asr #21 8000b24: d912 bls.n 8000b4c <__aeabi_d2iz+0x3c> 8000b26: ea4f 23c1 mov.w r3, r1, lsl #11 8000b2a: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000 8000b2e: ea43 5350 orr.w r3, r3, r0, lsr #21 8000b32: f011 4f00 tst.w r1, #2147483648 ; 0x80000000 8000b36: fa23 f002 lsr.w r0, r3, r2 8000b3a: bf18 it ne 8000b3c: 4240 negne r0, r0 8000b3e: 4770 bx lr 8000b40: f04f 0000 mov.w r0, #0 8000b44: 4770 bx lr 8000b46: ea50 3001 orrs.w r0, r0, r1, lsl #12 8000b4a: d105 bne.n 8000b58 <__aeabi_d2iz+0x48> 8000b4c: f011 4000 ands.w r0, r1, #2147483648 ; 0x80000000 8000b50: bf08 it eq 8000b52: f06f 4000 mvneq.w r0, #2147483648 ; 0x80000000 8000b56: 4770 bx lr 8000b58: f04f 0000 mov.w r0, #0 8000b5c: 4770 bx lr 8000b5e: bf00 nop 08000b60 <__aeabi_d2f>: 8000b60: ea4f 0241 mov.w r2, r1, lsl #1 8000b64: f1b2 43e0 subs.w r3, r2, #1879048192 ; 0x70000000 8000b68: bf24 itt cs 8000b6a: f5b3 1c00 subscs.w ip, r3, #2097152 ; 0x200000 8000b6e: f1dc 5cfe rsbscs ip, ip, #532676608 ; 0x1fc00000 8000b72: d90d bls.n 8000b90 <__aeabi_d2f+0x30> 8000b74: f001 4c00 and.w ip, r1, #2147483648 ; 0x80000000 8000b78: ea4f 02c0 mov.w r2, r0, lsl #3 8000b7c: ea4c 7050 orr.w r0, ip, r0, lsr #29 8000b80: f1b2 4f00 cmp.w r2, #2147483648 ; 0x80000000 8000b84: eb40 0083 adc.w r0, r0, r3, lsl #2 8000b88: bf08 it eq 8000b8a: f020 0001 biceq.w r0, r0, #1 8000b8e: 4770 bx lr 8000b90: f011 4f80 tst.w r1, #1073741824 ; 0x40000000 8000b94: d121 bne.n 8000bda <__aeabi_d2f+0x7a> 8000b96: f113 7238 adds.w r2, r3, #48234496 ; 0x2e00000 8000b9a: bfbc itt lt 8000b9c: f001 4000 andlt.w r0, r1, #2147483648 ; 0x80000000 8000ba0: 4770 bxlt lr 8000ba2: f441 1180 orr.w r1, r1, #1048576 ; 0x100000 8000ba6: ea4f 5252 mov.w r2, r2, lsr #21 8000baa: f1c2 0218 rsb r2, r2, #24 8000bae: f1c2 0c20 rsb ip, r2, #32 8000bb2: fa10 f30c lsls.w r3, r0, ip 8000bb6: fa20 f002 lsr.w r0, r0, r2 8000bba: bf18 it ne 8000bbc: f040 0001 orrne.w r0, r0, #1 8000bc0: ea4f 23c1 mov.w r3, r1, lsl #11 8000bc4: ea4f 23d3 mov.w r3, r3, lsr #11 8000bc8: fa03 fc0c lsl.w ip, r3, ip 8000bcc: ea40 000c orr.w r0, r0, ip 8000bd0: fa23 f302 lsr.w r3, r3, r2 8000bd4: ea4f 0343 mov.w r3, r3, lsl #1 8000bd8: e7cc b.n 8000b74 <__aeabi_d2f+0x14> 8000bda: ea7f 5362 mvns.w r3, r2, asr #21 8000bde: d107 bne.n 8000bf0 <__aeabi_d2f+0x90> 8000be0: ea50 3301 orrs.w r3, r0, r1, lsl #12 8000be4: bf1e ittt ne 8000be6: f04f 40fe movne.w r0, #2130706432 ; 0x7f000000 8000bea: f440 0040 orrne.w r0, r0, #12582912 ; 0xc00000 8000bee: 4770 bxne lr 8000bf0: f001 4000 and.w r0, r1, #2147483648 ; 0x80000000 8000bf4: f040 40fe orr.w r0, r0, #2130706432 ; 0x7f000000 8000bf8: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 8000bfc: 4770 bx lr 8000bfe: bf00 nop 08000c00 <__aeabi_frsub>: 8000c00: f080 4000 eor.w r0, r0, #2147483648 ; 0x80000000 8000c04: e002 b.n 8000c0c <__addsf3> 8000c06: bf00 nop 08000c08 <__aeabi_fsub>: 8000c08: f081 4100 eor.w r1, r1, #2147483648 ; 0x80000000 08000c0c <__addsf3>: 8000c0c: 0042 lsls r2, r0, #1 8000c0e: bf1f itttt ne 8000c10: ea5f 0341 movsne.w r3, r1, lsl #1 8000c14: ea92 0f03 teqne r2, r3 8000c18: ea7f 6c22 mvnsne.w ip, r2, asr #24 8000c1c: ea7f 6c23 mvnsne.w ip, r3, asr #24 8000c20: d06a beq.n 8000cf8 <__addsf3+0xec> 8000c22: ea4f 6212 mov.w r2, r2, lsr #24 8000c26: ebd2 6313 rsbs r3, r2, r3, lsr #24 8000c2a: bfc1 itttt gt 8000c2c: 18d2 addgt r2, r2, r3 8000c2e: 4041 eorgt r1, r0 8000c30: 4048 eorgt r0, r1 8000c32: 4041 eorgt r1, r0 8000c34: bfb8 it lt 8000c36: 425b neglt r3, r3 8000c38: 2b19 cmp r3, #25 8000c3a: bf88 it hi 8000c3c: 4770 bxhi lr 8000c3e: f010 4f00 tst.w r0, #2147483648 ; 0x80000000 8000c42: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 8000c46: f020 407f bic.w r0, r0, #4278190080 ; 0xff000000 8000c4a: bf18 it ne 8000c4c: 4240 negne r0, r0 8000c4e: f011 4f00 tst.w r1, #2147483648 ; 0x80000000 8000c52: f441 0100 orr.w r1, r1, #8388608 ; 0x800000 8000c56: f021 417f bic.w r1, r1, #4278190080 ; 0xff000000 8000c5a: bf18 it ne 8000c5c: 4249 negne r1, r1 8000c5e: ea92 0f03 teq r2, r3 8000c62: d03f beq.n 8000ce4 <__addsf3+0xd8> 8000c64: f1a2 0201 sub.w r2, r2, #1 8000c68: fa41 fc03 asr.w ip, r1, r3 8000c6c: eb10 000c adds.w r0, r0, ip 8000c70: f1c3 0320 rsb r3, r3, #32 8000c74: fa01 f103 lsl.w r1, r1, r3 8000c78: f000 4300 and.w r3, r0, #2147483648 ; 0x80000000 8000c7c: d502 bpl.n 8000c84 <__addsf3+0x78> 8000c7e: 4249 negs r1, r1 8000c80: eb60 0040 sbc.w r0, r0, r0, lsl #1 8000c84: f5b0 0f00 cmp.w r0, #8388608 ; 0x800000 8000c88: d313 bcc.n 8000cb2 <__addsf3+0xa6> 8000c8a: f1b0 7f80 cmp.w r0, #16777216 ; 0x1000000 8000c8e: d306 bcc.n 8000c9e <__addsf3+0x92> 8000c90: 0840 lsrs r0, r0, #1 8000c92: ea4f 0131 mov.w r1, r1, rrx 8000c96: f102 0201 add.w r2, r2, #1 8000c9a: 2afe cmp r2, #254 ; 0xfe 8000c9c: d251 bcs.n 8000d42 <__addsf3+0x136> 8000c9e: f1b1 4f00 cmp.w r1, #2147483648 ; 0x80000000 8000ca2: eb40 50c2 adc.w r0, r0, r2, lsl #23 8000ca6: bf08 it eq 8000ca8: f020 0001 biceq.w r0, r0, #1 8000cac: ea40 0003 orr.w r0, r0, r3 8000cb0: 4770 bx lr 8000cb2: 0049 lsls r1, r1, #1 8000cb4: eb40 0000 adc.w r0, r0, r0 8000cb8: 3a01 subs r2, #1 8000cba: bf28 it cs 8000cbc: f5b0 0f00 cmpcs.w r0, #8388608 ; 0x800000 8000cc0: d2ed bcs.n 8000c9e <__addsf3+0x92> 8000cc2: fab0 fc80 clz ip, r0 8000cc6: f1ac 0c08 sub.w ip, ip, #8 8000cca: ebb2 020c subs.w r2, r2, ip 8000cce: fa00 f00c lsl.w r0, r0, ip 8000cd2: bfaa itet ge 8000cd4: eb00 50c2 addge.w r0, r0, r2, lsl #23 8000cd8: 4252 neglt r2, r2 8000cda: 4318 orrge r0, r3 8000cdc: bfbc itt lt 8000cde: 40d0 lsrlt r0, r2 8000ce0: 4318 orrlt r0, r3 8000ce2: 4770 bx lr 8000ce4: f092 0f00 teq r2, #0 8000ce8: f481 0100 eor.w r1, r1, #8388608 ; 0x800000 8000cec: bf06 itte eq 8000cee: f480 0000 eoreq.w r0, r0, #8388608 ; 0x800000 8000cf2: 3201 addeq r2, #1 8000cf4: 3b01 subne r3, #1 8000cf6: e7b5 b.n 8000c64 <__addsf3+0x58> 8000cf8: ea4f 0341 mov.w r3, r1, lsl #1 8000cfc: ea7f 6c22 mvns.w ip, r2, asr #24 8000d00: bf18 it ne 8000d02: ea7f 6c23 mvnsne.w ip, r3, asr #24 8000d06: d021 beq.n 8000d4c <__addsf3+0x140> 8000d08: ea92 0f03 teq r2, r3 8000d0c: d004 beq.n 8000d18 <__addsf3+0x10c> 8000d0e: f092 0f00 teq r2, #0 8000d12: bf08 it eq 8000d14: 4608 moveq r0, r1 8000d16: 4770 bx lr 8000d18: ea90 0f01 teq r0, r1 8000d1c: bf1c itt ne 8000d1e: 2000 movne r0, #0 8000d20: 4770 bxne lr 8000d22: f012 4f7f tst.w r2, #4278190080 ; 0xff000000 8000d26: d104 bne.n 8000d32 <__addsf3+0x126> 8000d28: 0040 lsls r0, r0, #1 8000d2a: bf28 it cs 8000d2c: f040 4000 orrcs.w r0, r0, #2147483648 ; 0x80000000 8000d30: 4770 bx lr 8000d32: f112 7200 adds.w r2, r2, #33554432 ; 0x2000000 8000d36: bf3c itt cc 8000d38: f500 0000 addcc.w r0, r0, #8388608 ; 0x800000 8000d3c: 4770 bxcc lr 8000d3e: f000 4300 and.w r3, r0, #2147483648 ; 0x80000000 8000d42: f043 40fe orr.w r0, r3, #2130706432 ; 0x7f000000 8000d46: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 8000d4a: 4770 bx lr 8000d4c: ea7f 6222 mvns.w r2, r2, asr #24 8000d50: bf16 itet ne 8000d52: 4608 movne r0, r1 8000d54: ea7f 6323 mvnseq.w r3, r3, asr #24 8000d58: 4601 movne r1, r0 8000d5a: 0242 lsls r2, r0, #9 8000d5c: bf06 itte eq 8000d5e: ea5f 2341 movseq.w r3, r1, lsl #9 8000d62: ea90 0f01 teqeq r0, r1 8000d66: f440 0080 orrne.w r0, r0, #4194304 ; 0x400000 8000d6a: 4770 bx lr 08000d6c <__aeabi_ui2f>: 8000d6c: f04f 0300 mov.w r3, #0 8000d70: e004 b.n 8000d7c <__aeabi_i2f+0x8> 8000d72: bf00 nop 08000d74 <__aeabi_i2f>: 8000d74: f010 4300 ands.w r3, r0, #2147483648 ; 0x80000000 8000d78: bf48 it mi 8000d7a: 4240 negmi r0, r0 8000d7c: ea5f 0c00 movs.w ip, r0 8000d80: bf08 it eq 8000d82: 4770 bxeq lr 8000d84: f043 4396 orr.w r3, r3, #1258291200 ; 0x4b000000 8000d88: 4601 mov r1, r0 8000d8a: f04f 0000 mov.w r0, #0 8000d8e: e01c b.n 8000dca <__aeabi_l2f+0x2a> 08000d90 <__aeabi_ul2f>: 8000d90: ea50 0201 orrs.w r2, r0, r1 8000d94: bf08 it eq 8000d96: 4770 bxeq lr 8000d98: f04f 0300 mov.w r3, #0 8000d9c: e00a b.n 8000db4 <__aeabi_l2f+0x14> 8000d9e: bf00 nop 08000da0 <__aeabi_l2f>: 8000da0: ea50 0201 orrs.w r2, r0, r1 8000da4: bf08 it eq 8000da6: 4770 bxeq lr 8000da8: f011 4300 ands.w r3, r1, #2147483648 ; 0x80000000 8000dac: d502 bpl.n 8000db4 <__aeabi_l2f+0x14> 8000dae: 4240 negs r0, r0 8000db0: eb61 0141 sbc.w r1, r1, r1, lsl #1 8000db4: ea5f 0c01 movs.w ip, r1 8000db8: bf02 ittt eq 8000dba: 4684 moveq ip, r0 8000dbc: 4601 moveq r1, r0 8000dbe: 2000 moveq r0, #0 8000dc0: f043 43b6 orr.w r3, r3, #1526726656 ; 0x5b000000 8000dc4: bf08 it eq 8000dc6: f1a3 5380 subeq.w r3, r3, #268435456 ; 0x10000000 8000dca: f5a3 0300 sub.w r3, r3, #8388608 ; 0x800000 8000dce: fabc f28c clz r2, ip 8000dd2: 3a08 subs r2, #8 8000dd4: eba3 53c2 sub.w r3, r3, r2, lsl #23 8000dd8: db10 blt.n 8000dfc <__aeabi_l2f+0x5c> 8000dda: fa01 fc02 lsl.w ip, r1, r2 8000dde: 4463 add r3, ip 8000de0: fa00 fc02 lsl.w ip, r0, r2 8000de4: f1c2 0220 rsb r2, r2, #32 8000de8: f1bc 4f00 cmp.w ip, #2147483648 ; 0x80000000 8000dec: fa20 f202 lsr.w r2, r0, r2 8000df0: eb43 0002 adc.w r0, r3, r2 8000df4: bf08 it eq 8000df6: f020 0001 biceq.w r0, r0, #1 8000dfa: 4770 bx lr 8000dfc: f102 0220 add.w r2, r2, #32 8000e00: fa01 fc02 lsl.w ip, r1, r2 8000e04: f1c2 0220 rsb r2, r2, #32 8000e08: ea50 004c orrs.w r0, r0, ip, lsl #1 8000e0c: fa21 f202 lsr.w r2, r1, r2 8000e10: eb43 0002 adc.w r0, r3, r2 8000e14: bf08 it eq 8000e16: ea20 70dc biceq.w r0, r0, ip, lsr #31 8000e1a: 4770 bx lr 08000e1c <__aeabi_fmul>: 8000e1c: f04f 0cff mov.w ip, #255 ; 0xff 8000e20: ea1c 52d0 ands.w r2, ip, r0, lsr #23 8000e24: bf1e ittt ne 8000e26: ea1c 53d1 andsne.w r3, ip, r1, lsr #23 8000e2a: ea92 0f0c teqne r2, ip 8000e2e: ea93 0f0c teqne r3, ip 8000e32: d06f beq.n 8000f14 <__aeabi_fmul+0xf8> 8000e34: 441a add r2, r3 8000e36: ea80 0c01 eor.w ip, r0, r1 8000e3a: 0240 lsls r0, r0, #9 8000e3c: bf18 it ne 8000e3e: ea5f 2141 movsne.w r1, r1, lsl #9 8000e42: d01e beq.n 8000e82 <__aeabi_fmul+0x66> 8000e44: f04f 6300 mov.w r3, #134217728 ; 0x8000000 8000e48: ea43 1050 orr.w r0, r3, r0, lsr #5 8000e4c: ea43 1151 orr.w r1, r3, r1, lsr #5 8000e50: fba0 3101 umull r3, r1, r0, r1 8000e54: f00c 4000 and.w r0, ip, #2147483648 ; 0x80000000 8000e58: f5b1 0f00 cmp.w r1, #8388608 ; 0x800000 8000e5c: bf3e ittt cc 8000e5e: 0049 lslcc r1, r1, #1 8000e60: ea41 71d3 orrcc.w r1, r1, r3, lsr #31 8000e64: 005b lslcc r3, r3, #1 8000e66: ea40 0001 orr.w r0, r0, r1 8000e6a: f162 027f sbc.w r2, r2, #127 ; 0x7f 8000e6e: 2afd cmp r2, #253 ; 0xfd 8000e70: d81d bhi.n 8000eae <__aeabi_fmul+0x92> 8000e72: f1b3 4f00 cmp.w r3, #2147483648 ; 0x80000000 8000e76: eb40 50c2 adc.w r0, r0, r2, lsl #23 8000e7a: bf08 it eq 8000e7c: f020 0001 biceq.w r0, r0, #1 8000e80: 4770 bx lr 8000e82: f090 0f00 teq r0, #0 8000e86: f00c 4c00 and.w ip, ip, #2147483648 ; 0x80000000 8000e8a: bf08 it eq 8000e8c: 0249 lsleq r1, r1, #9 8000e8e: ea4c 2050 orr.w r0, ip, r0, lsr #9 8000e92: ea40 2051 orr.w r0, r0, r1, lsr #9 8000e96: 3a7f subs r2, #127 ; 0x7f 8000e98: bfc2 ittt gt 8000e9a: f1d2 03ff rsbsgt r3, r2, #255 ; 0xff 8000e9e: ea40 50c2 orrgt.w r0, r0, r2, lsl #23 8000ea2: 4770 bxgt lr 8000ea4: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 8000ea8: f04f 0300 mov.w r3, #0 8000eac: 3a01 subs r2, #1 8000eae: dc5d bgt.n 8000f6c <__aeabi_fmul+0x150> 8000eb0: f112 0f19 cmn.w r2, #25 8000eb4: bfdc itt le 8000eb6: f000 4000 andle.w r0, r0, #2147483648 ; 0x80000000 8000eba: 4770 bxle lr 8000ebc: f1c2 0200 rsb r2, r2, #0 8000ec0: 0041 lsls r1, r0, #1 8000ec2: fa21 f102 lsr.w r1, r1, r2 8000ec6: f1c2 0220 rsb r2, r2, #32 8000eca: fa00 fc02 lsl.w ip, r0, r2 8000ece: ea5f 0031 movs.w r0, r1, rrx 8000ed2: f140 0000 adc.w r0, r0, #0 8000ed6: ea53 034c orrs.w r3, r3, ip, lsl #1 8000eda: bf08 it eq 8000edc: ea20 70dc biceq.w r0, r0, ip, lsr #31 8000ee0: 4770 bx lr 8000ee2: f092 0f00 teq r2, #0 8000ee6: f000 4c00 and.w ip, r0, #2147483648 ; 0x80000000 8000eea: bf02 ittt eq 8000eec: 0040 lsleq r0, r0, #1 8000eee: f410 0f00 tsteq.w r0, #8388608 ; 0x800000 8000ef2: 3a01 subeq r2, #1 8000ef4: d0f9 beq.n 8000eea <__aeabi_fmul+0xce> 8000ef6: ea40 000c orr.w r0, r0, ip 8000efa: f093 0f00 teq r3, #0 8000efe: f001 4c00 and.w ip, r1, #2147483648 ; 0x80000000 8000f02: bf02 ittt eq 8000f04: 0049 lsleq r1, r1, #1 8000f06: f411 0f00 tsteq.w r1, #8388608 ; 0x800000 8000f0a: 3b01 subeq r3, #1 8000f0c: d0f9 beq.n 8000f02 <__aeabi_fmul+0xe6> 8000f0e: ea41 010c orr.w r1, r1, ip 8000f12: e78f b.n 8000e34 <__aeabi_fmul+0x18> 8000f14: ea0c 53d1 and.w r3, ip, r1, lsr #23 8000f18: ea92 0f0c teq r2, ip 8000f1c: bf18 it ne 8000f1e: ea93 0f0c teqne r3, ip 8000f22: d00a beq.n 8000f3a <__aeabi_fmul+0x11e> 8000f24: f030 4c00 bics.w ip, r0, #2147483648 ; 0x80000000 8000f28: bf18 it ne 8000f2a: f031 4c00 bicsne.w ip, r1, #2147483648 ; 0x80000000 8000f2e: d1d8 bne.n 8000ee2 <__aeabi_fmul+0xc6> 8000f30: ea80 0001 eor.w r0, r0, r1 8000f34: f000 4000 and.w r0, r0, #2147483648 ; 0x80000000 8000f38: 4770 bx lr 8000f3a: f090 0f00 teq r0, #0 8000f3e: bf17 itett ne 8000f40: f090 4f00 teqne r0, #2147483648 ; 0x80000000 8000f44: 4608 moveq r0, r1 8000f46: f091 0f00 teqne r1, #0 8000f4a: f091 4f00 teqne r1, #2147483648 ; 0x80000000 8000f4e: d014 beq.n 8000f7a <__aeabi_fmul+0x15e> 8000f50: ea92 0f0c teq r2, ip 8000f54: d101 bne.n 8000f5a <__aeabi_fmul+0x13e> 8000f56: 0242 lsls r2, r0, #9 8000f58: d10f bne.n 8000f7a <__aeabi_fmul+0x15e> 8000f5a: ea93 0f0c teq r3, ip 8000f5e: d103 bne.n 8000f68 <__aeabi_fmul+0x14c> 8000f60: 024b lsls r3, r1, #9 8000f62: bf18 it ne 8000f64: 4608 movne r0, r1 8000f66: d108 bne.n 8000f7a <__aeabi_fmul+0x15e> 8000f68: ea80 0001 eor.w r0, r0, r1 8000f6c: f000 4000 and.w r0, r0, #2147483648 ; 0x80000000 8000f70: f040 40fe orr.w r0, r0, #2130706432 ; 0x7f000000 8000f74: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 8000f78: 4770 bx lr 8000f7a: f040 40fe orr.w r0, r0, #2130706432 ; 0x7f000000 8000f7e: f440 0040 orr.w r0, r0, #12582912 ; 0xc00000 8000f82: 4770 bx lr 08000f84 <__aeabi_fdiv>: 8000f84: f04f 0cff mov.w ip, #255 ; 0xff 8000f88: ea1c 52d0 ands.w r2, ip, r0, lsr #23 8000f8c: bf1e ittt ne 8000f8e: ea1c 53d1 andsne.w r3, ip, r1, lsr #23 8000f92: ea92 0f0c teqne r2, ip 8000f96: ea93 0f0c teqne r3, ip 8000f9a: d069 beq.n 8001070 <__aeabi_fdiv+0xec> 8000f9c: eba2 0203 sub.w r2, r2, r3 8000fa0: ea80 0c01 eor.w ip, r0, r1 8000fa4: 0249 lsls r1, r1, #9 8000fa6: ea4f 2040 mov.w r0, r0, lsl #9 8000faa: d037 beq.n 800101c <__aeabi_fdiv+0x98> 8000fac: f04f 5380 mov.w r3, #268435456 ; 0x10000000 8000fb0: ea43 1111 orr.w r1, r3, r1, lsr #4 8000fb4: ea43 1310 orr.w r3, r3, r0, lsr #4 8000fb8: f00c 4000 and.w r0, ip, #2147483648 ; 0x80000000 8000fbc: 428b cmp r3, r1 8000fbe: bf38 it cc 8000fc0: 005b lslcc r3, r3, #1 8000fc2: f142 027d adc.w r2, r2, #125 ; 0x7d 8000fc6: f44f 0c00 mov.w ip, #8388608 ; 0x800000 8000fca: 428b cmp r3, r1 8000fcc: bf24 itt cs 8000fce: 1a5b subcs r3, r3, r1 8000fd0: ea40 000c orrcs.w r0, r0, ip 8000fd4: ebb3 0f51 cmp.w r3, r1, lsr #1 8000fd8: bf24 itt cs 8000fda: eba3 0351 subcs.w r3, r3, r1, lsr #1 8000fde: ea40 005c orrcs.w r0, r0, ip, lsr #1 8000fe2: ebb3 0f91 cmp.w r3, r1, lsr #2 8000fe6: bf24 itt cs 8000fe8: eba3 0391 subcs.w r3, r3, r1, lsr #2 8000fec: ea40 009c orrcs.w r0, r0, ip, lsr #2 8000ff0: ebb3 0fd1 cmp.w r3, r1, lsr #3 8000ff4: bf24 itt cs 8000ff6: eba3 03d1 subcs.w r3, r3, r1, lsr #3 8000ffa: ea40 00dc orrcs.w r0, r0, ip, lsr #3 8000ffe: 011b lsls r3, r3, #4 8001000: bf18 it ne 8001002: ea5f 1c1c movsne.w ip, ip, lsr #4 8001006: d1e0 bne.n 8000fca <__aeabi_fdiv+0x46> 8001008: 2afd cmp r2, #253 ; 0xfd 800100a: f63f af50 bhi.w 8000eae <__aeabi_fmul+0x92> 800100e: 428b cmp r3, r1 8001010: eb40 50c2 adc.w r0, r0, r2, lsl #23 8001014: bf08 it eq 8001016: f020 0001 biceq.w r0, r0, #1 800101a: 4770 bx lr 800101c: f00c 4c00 and.w ip, ip, #2147483648 ; 0x80000000 8001020: ea4c 2050 orr.w r0, ip, r0, lsr #9 8001024: 327f adds r2, #127 ; 0x7f 8001026: bfc2 ittt gt 8001028: f1d2 03ff rsbsgt r3, r2, #255 ; 0xff 800102c: ea40 50c2 orrgt.w r0, r0, r2, lsl #23 8001030: 4770 bxgt lr 8001032: f440 0000 orr.w r0, r0, #8388608 ; 0x800000 8001036: f04f 0300 mov.w r3, #0 800103a: 3a01 subs r2, #1 800103c: e737 b.n 8000eae <__aeabi_fmul+0x92> 800103e: f092 0f00 teq r2, #0 8001042: f000 4c00 and.w ip, r0, #2147483648 ; 0x80000000 8001046: bf02 ittt eq 8001048: 0040 lsleq r0, r0, #1 800104a: f410 0f00 tsteq.w r0, #8388608 ; 0x800000 800104e: 3a01 subeq r2, #1 8001050: d0f9 beq.n 8001046 <__aeabi_fdiv+0xc2> 8001052: ea40 000c orr.w r0, r0, ip 8001056: f093 0f00 teq r3, #0 800105a: f001 4c00 and.w ip, r1, #2147483648 ; 0x80000000 800105e: bf02 ittt eq 8001060: 0049 lsleq r1, r1, #1 8001062: f411 0f00 tsteq.w r1, #8388608 ; 0x800000 8001066: 3b01 subeq r3, #1 8001068: d0f9 beq.n 800105e <__aeabi_fdiv+0xda> 800106a: ea41 010c orr.w r1, r1, ip 800106e: e795 b.n 8000f9c <__aeabi_fdiv+0x18> 8001070: ea0c 53d1 and.w r3, ip, r1, lsr #23 8001074: ea92 0f0c teq r2, ip 8001078: d108 bne.n 800108c <__aeabi_fdiv+0x108> 800107a: 0242 lsls r2, r0, #9 800107c: f47f af7d bne.w 8000f7a <__aeabi_fmul+0x15e> 8001080: ea93 0f0c teq r3, ip 8001084: f47f af70 bne.w 8000f68 <__aeabi_fmul+0x14c> 8001088: 4608 mov r0, r1 800108a: e776 b.n 8000f7a <__aeabi_fmul+0x15e> 800108c: ea93 0f0c teq r3, ip 8001090: d104 bne.n 800109c <__aeabi_fdiv+0x118> 8001092: 024b lsls r3, r1, #9 8001094: f43f af4c beq.w 8000f30 <__aeabi_fmul+0x114> 8001098: 4608 mov r0, r1 800109a: e76e b.n 8000f7a <__aeabi_fmul+0x15e> 800109c: f030 4c00 bics.w ip, r0, #2147483648 ; 0x80000000 80010a0: bf18 it ne 80010a2: f031 4c00 bicsne.w ip, r1, #2147483648 ; 0x80000000 80010a6: d1ca bne.n 800103e <__aeabi_fdiv+0xba> 80010a8: f030 4200 bics.w r2, r0, #2147483648 ; 0x80000000 80010ac: f47f af5c bne.w 8000f68 <__aeabi_fmul+0x14c> 80010b0: f031 4300 bics.w r3, r1, #2147483648 ; 0x80000000 80010b4: f47f af3c bne.w 8000f30 <__aeabi_fmul+0x114> 80010b8: e75f b.n 8000f7a <__aeabi_fmul+0x15e> 80010ba: bf00 nop 080010bc <__aeabi_f2iz>: 80010bc: ea4f 0240 mov.w r2, r0, lsl #1 80010c0: f1b2 4ffe cmp.w r2, #2130706432 ; 0x7f000000 80010c4: d30f bcc.n 80010e6 <__aeabi_f2iz+0x2a> 80010c6: f04f 039e mov.w r3, #158 ; 0x9e 80010ca: ebb3 6212 subs.w r2, r3, r2, lsr #24 80010ce: d90d bls.n 80010ec <__aeabi_f2iz+0x30> 80010d0: ea4f 2300 mov.w r3, r0, lsl #8 80010d4: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000 80010d8: f010 4f00 tst.w r0, #2147483648 ; 0x80000000 80010dc: fa23 f002 lsr.w r0, r3, r2 80010e0: bf18 it ne 80010e2: 4240 negne r0, r0 80010e4: 4770 bx lr 80010e6: f04f 0000 mov.w r0, #0 80010ea: 4770 bx lr 80010ec: f112 0f61 cmn.w r2, #97 ; 0x61 80010f0: d101 bne.n 80010f6 <__aeabi_f2iz+0x3a> 80010f2: 0242 lsls r2, r0, #9 80010f4: d105 bne.n 8001102 <__aeabi_f2iz+0x46> 80010f6: f010 4000 ands.w r0, r0, #2147483648 ; 0x80000000 80010fa: bf08 it eq 80010fc: f06f 4000 mvneq.w r0, #2147483648 ; 0x80000000 8001100: 4770 bx lr 8001102: f04f 0000 mov.w r0, #0 8001106: 4770 bx lr 08001108 <__aeabi_f2uiz>: 8001108: 0042 lsls r2, r0, #1 800110a: d20e bcs.n 800112a <__aeabi_f2uiz+0x22> 800110c: f1b2 4ffe cmp.w r2, #2130706432 ; 0x7f000000 8001110: d30b bcc.n 800112a <__aeabi_f2uiz+0x22> 8001112: f04f 039e mov.w r3, #158 ; 0x9e 8001116: ebb3 6212 subs.w r2, r3, r2, lsr #24 800111a: d409 bmi.n 8001130 <__aeabi_f2uiz+0x28> 800111c: ea4f 2300 mov.w r3, r0, lsl #8 8001120: f043 4300 orr.w r3, r3, #2147483648 ; 0x80000000 8001124: fa23 f002 lsr.w r0, r3, r2 8001128: 4770 bx lr 800112a: f04f 0000 mov.w r0, #0 800112e: 4770 bx lr 8001130: f112 0f61 cmn.w r2, #97 ; 0x61 8001134: d101 bne.n 800113a <__aeabi_f2uiz+0x32> 8001136: 0242 lsls r2, r0, #9 8001138: d102 bne.n 8001140 <__aeabi_f2uiz+0x38> 800113a: f04f 30ff mov.w r0, #4294967295 800113e: 4770 bx lr 8001140: f04f 0000 mov.w r0, #0 8001144: 4770 bx lr 8001146: bf00 nop 08001148 : \li Is blocking when a debugger is connected, but the previous character sent has not been transmitted. \param [in] ch Character to transmit. \returns Character to transmit. */ __STATIC_INLINE uint32_t ITM_SendChar (uint32_t ch) { 8001148: b480 push {r7} 800114a: b083 sub sp, #12 800114c: af00 add r7, sp, #0 800114e: 6078 str r0, [r7, #4] if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ 8001150: f04f 4360 mov.w r3, #3758096384 ; 0xe0000000 8001154: f8d3 3e80 ldr.w r3, [r3, #3712] ; 0xe80 8001158: f003 0301 and.w r3, r3, #1 800115c: 2b00 cmp r3, #0 800115e: d013 beq.n 8001188 ((ITM->TER & 1UL ) != 0UL) ) /* ITM Port #0 enabled */ 8001160: f04f 4360 mov.w r3, #3758096384 ; 0xe0000000 8001164: f8d3 3e00 ldr.w r3, [r3, #3584] ; 0xe00 8001168: f003 0301 and.w r3, r3, #1 if (((ITM->TCR & ITM_TCR_ITMENA_Msk) != 0UL) && /* ITM enabled */ 800116c: 2b00 cmp r3, #0 800116e: d00b beq.n 8001188 { while (ITM->PORT[0U].u32 == 0UL) 8001170: e000 b.n 8001174 { __NOP(); 8001172: bf00 nop while (ITM->PORT[0U].u32 == 0UL) 8001174: f04f 4360 mov.w r3, #3758096384 ; 0xe0000000 8001178: 681b ldr r3, [r3, #0] 800117a: 2b00 cmp r3, #0 800117c: d0f9 beq.n 8001172 } ITM->PORT[0U].u8 = (uint8_t)ch; 800117e: f04f 4360 mov.w r3, #3758096384 ; 0xe0000000 8001182: 687a ldr r2, [r7, #4] 8001184: b2d2 uxtb r2, r2 8001186: 701a strb r2, [r3, #0] } return (ch); 8001188: 687b ldr r3, [r7, #4] } 800118a: 4618 mov r0, r3 800118c: 370c adds r7, #12 800118e: 46bd mov sp, r7 8001190: bc80 pop {r7} 8001192: 4770 bx lr 08001194 <_write>: /* USER CODE END PFP */ /* Private user code ---------------------------------------------------------*/ /* USER CODE BEGIN 0 */ int _write(int file , char *ptr,int len) { 8001194: b580 push {r7, lr} 8001196: b086 sub sp, #24 8001198: af00 add r7, sp, #0 800119a: 60f8 str r0, [r7, #12] 800119c: 60b9 str r1, [r7, #8] 800119e: 607a str r2, [r7, #4] int i = 0; 80011a0: 2300 movs r3, #0 80011a2: 617b str r3, [r7, #20] for(i = 0;i ITM_SendChar((*ptr++)); 80011aa: 68bb ldr r3, [r7, #8] 80011ac: 1c5a adds r2, r3, #1 80011ae: 60ba str r2, [r7, #8] 80011b0: 781b ldrb r3, [r3, #0] 80011b2: 4618 mov r0, r3 80011b4: f7ff ffc8 bl 8001148 for(i = 0;i return len; 80011c6: 687b ldr r3, [r7, #4] } 80011c8: 4618 mov r0, r3 80011ca: 3718 adds r7, #24 80011cc: 46bd mov sp, r7 80011ce: bd80 pop {r7, pc} 080011d0
: /** * @brief The application entry point. * @retval int */ int main(void) { 80011d0: b580 push {r7, lr} 80011d2: af00 add r7, sp, #0 /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); 80011d4: f000 fd6a bl 8001cac /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); 80011d8: f000 f80f bl 80011fa /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); 80011dc: f000 f962 bl 80014a4 MX_FSMC_Init(); 80011e0: f000 fa5e bl 80016a0 MX_I2C2_Init(); 80011e4: f000 f84e bl 8001284 MX_TIM6_Init(); 80011e8: f000 f926 bl 8001438 MX_SPI1_Init(); 80011ec: f000 f878 bl 80012e0 MX_TIM4_Init(); 80011f0: f000 f8ac bl 800134c /* USER CODE BEGIN 2 */ main_app(); 80011f4: f006 f8c4 bl 8007380 /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) 80011f8: e7fe b.n 80011f8 080011fa : /** * @brief System Clock Configuration * @retval None */ void SystemClock_Config(void) { 80011fa: b580 push {r7, lr} 80011fc: b090 sub sp, #64 ; 0x40 80011fe: af00 add r7, sp, #0 RCC_OscInitTypeDef RCC_OscInitStruct = {0}; 8001200: f107 0318 add.w r3, r7, #24 8001204: 2228 movs r2, #40 ; 0x28 8001206: 2100 movs r1, #0 8001208: 4618 mov r0, r3 800120a: f007 fb91 bl 8008930 RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; 800120e: 1d3b adds r3, r7, #4 8001210: 2200 movs r2, #0 8001212: 601a str r2, [r3, #0] 8001214: 605a str r2, [r3, #4] 8001216: 609a str r2, [r3, #8] 8001218: 60da str r2, [r3, #12] 800121a: 611a str r2, [r3, #16] /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; 800121c: 2301 movs r3, #1 800121e: 61bb str r3, [r7, #24] RCC_OscInitStruct.HSEState = RCC_HSE_ON; 8001220: f44f 3380 mov.w r3, #65536 ; 0x10000 8001224: 61fb str r3, [r7, #28] RCC_OscInitStruct.HSEPredivValue = RCC_HSE_PREDIV_DIV1; 8001226: 2300 movs r3, #0 8001228: 623b str r3, [r7, #32] RCC_OscInitStruct.HSIState = RCC_HSI_ON; 800122a: 2301 movs r3, #1 800122c: 62bb str r3, [r7, #40] ; 0x28 RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; 800122e: 2302 movs r3, #2 8001230: 637b str r3, [r7, #52] ; 0x34 RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; 8001232: f44f 3380 mov.w r3, #65536 ; 0x10000 8001236: 63bb str r3, [r7, #56] ; 0x38 RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL9; 8001238: f44f 13e0 mov.w r3, #1835008 ; 0x1c0000 800123c: 63fb str r3, [r7, #60] ; 0x3c if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) 800123e: f107 0318 add.w r3, r7, #24 8001242: 4618 mov r0, r3 8001244: f002 f88a bl 800335c 8001248: 4603 mov r3, r0 800124a: 2b00 cmp r3, #0 800124c: d001 beq.n 8001252 { Error_Handler(); 800124e: f000 fa8b bl 8001768 } /** Initializes the CPU, AHB and APB buses clocks */ RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK 8001252: 230f movs r3, #15 8001254: 607b str r3, [r7, #4] |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2; RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK; 8001256: 2302 movs r3, #2 8001258: 60bb str r3, [r7, #8] RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1; 800125a: 2300 movs r3, #0 800125c: 60fb str r3, [r7, #12] RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2; 800125e: f44f 6380 mov.w r3, #1024 ; 0x400 8001262: 613b str r3, [r7, #16] RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1; 8001264: 2300 movs r3, #0 8001266: 617b str r3, [r7, #20] if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) 8001268: 1d3b adds r3, r7, #4 800126a: 2102 movs r1, #2 800126c: 4618 mov r0, r3 800126e: f002 faf7 bl 8003860 8001272: 4603 mov r3, r0 8001274: 2b00 cmp r3, #0 8001276: d001 beq.n 800127c { Error_Handler(); 8001278: f000 fa76 bl 8001768 } } 800127c: bf00 nop 800127e: 3740 adds r7, #64 ; 0x40 8001280: 46bd mov sp, r7 8001282: bd80 pop {r7, pc} 08001284 : * @brief I2C2 Initialization Function * @param None * @retval None */ static void MX_I2C2_Init(void) { 8001284: b580 push {r7, lr} 8001286: af00 add r7, sp, #0 /* USER CODE END I2C2_Init 0 */ /* USER CODE BEGIN I2C2_Init 1 */ /* USER CODE END I2C2_Init 1 */ hi2c2.Instance = I2C2; 8001288: 4b12 ldr r3, [pc, #72] ; (80012d4 ) 800128a: 4a13 ldr r2, [pc, #76] ; (80012d8 ) 800128c: 601a str r2, [r3, #0] hi2c2.Init.ClockSpeed = 100000; 800128e: 4b11 ldr r3, [pc, #68] ; (80012d4 ) 8001290: 4a12 ldr r2, [pc, #72] ; (80012dc ) 8001292: 605a str r2, [r3, #4] hi2c2.Init.DutyCycle = I2C_DUTYCYCLE_2; 8001294: 4b0f ldr r3, [pc, #60] ; (80012d4 ) 8001296: 2200 movs r2, #0 8001298: 609a str r2, [r3, #8] hi2c2.Init.OwnAddress1 = 0; 800129a: 4b0e ldr r3, [pc, #56] ; (80012d4 ) 800129c: 2200 movs r2, #0 800129e: 60da str r2, [r3, #12] hi2c2.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; 80012a0: 4b0c ldr r3, [pc, #48] ; (80012d4 ) 80012a2: f44f 4280 mov.w r2, #16384 ; 0x4000 80012a6: 611a str r2, [r3, #16] hi2c2.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; 80012a8: 4b0a ldr r3, [pc, #40] ; (80012d4 ) 80012aa: 2200 movs r2, #0 80012ac: 615a str r2, [r3, #20] hi2c2.Init.OwnAddress2 = 0; 80012ae: 4b09 ldr r3, [pc, #36] ; (80012d4 ) 80012b0: 2200 movs r2, #0 80012b2: 619a str r2, [r3, #24] hi2c2.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; 80012b4: 4b07 ldr r3, [pc, #28] ; (80012d4 ) 80012b6: 2200 movs r2, #0 80012b8: 61da str r2, [r3, #28] hi2c2.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; 80012ba: 4b06 ldr r3, [pc, #24] ; (80012d4 ) 80012bc: 2200 movs r2, #0 80012be: 621a str r2, [r3, #32] if (HAL_I2C_Init(&hi2c2) != HAL_OK) 80012c0: 4804 ldr r0, [pc, #16] ; (80012d4 ) 80012c2: f001 f84b bl 800235c 80012c6: 4603 mov r3, r0 80012c8: 2b00 cmp r3, #0 80012ca: d001 beq.n 80012d0 { Error_Handler(); 80012cc: f000 fa4c bl 8001768 } /* USER CODE BEGIN I2C2_Init 2 */ /* USER CODE END I2C2_Init 2 */ } 80012d0: bf00 nop 80012d2: bd80 pop {r7, pc} 80012d4: 200001f0 .word 0x200001f0 80012d8: 40005800 .word 0x40005800 80012dc: 000186a0 .word 0x000186a0 080012e0 : * @brief SPI1 Initialization Function * @param None * @retval None */ static void MX_SPI1_Init(void) { 80012e0: b580 push {r7, lr} 80012e2: af00 add r7, sp, #0 /* USER CODE BEGIN SPI1_Init 1 */ /* USER CODE END SPI1_Init 1 */ /* SPI1 parameter configuration*/ hspi1.Instance = SPI1; 80012e4: 4b17 ldr r3, [pc, #92] ; (8001344 ) 80012e6: 4a18 ldr r2, [pc, #96] ; (8001348 ) 80012e8: 601a str r2, [r3, #0] hspi1.Init.Mode = SPI_MODE_MASTER; 80012ea: 4b16 ldr r3, [pc, #88] ; (8001344 ) 80012ec: f44f 7282 mov.w r2, #260 ; 0x104 80012f0: 605a str r2, [r3, #4] hspi1.Init.Direction = SPI_DIRECTION_2LINES; 80012f2: 4b14 ldr r3, [pc, #80] ; (8001344 ) 80012f4: 2200 movs r2, #0 80012f6: 609a str r2, [r3, #8] hspi1.Init.DataSize = SPI_DATASIZE_8BIT; 80012f8: 4b12 ldr r3, [pc, #72] ; (8001344 ) 80012fa: 2200 movs r2, #0 80012fc: 60da str r2, [r3, #12] hspi1.Init.CLKPolarity = SPI_POLARITY_LOW; 80012fe: 4b11 ldr r3, [pc, #68] ; (8001344 ) 8001300: 2200 movs r2, #0 8001302: 611a str r2, [r3, #16] hspi1.Init.CLKPhase = SPI_PHASE_1EDGE; 8001304: 4b0f ldr r3, [pc, #60] ; (8001344 ) 8001306: 2200 movs r2, #0 8001308: 615a str r2, [r3, #20] hspi1.Init.NSS = SPI_NSS_SOFT; 800130a: 4b0e ldr r3, [pc, #56] ; (8001344 ) 800130c: f44f 7200 mov.w r2, #512 ; 0x200 8001310: 619a str r2, [r3, #24] hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_4; 8001312: 4b0c ldr r3, [pc, #48] ; (8001344 ) 8001314: 2208 movs r2, #8 8001316: 61da str r2, [r3, #28] hspi1.Init.FirstBit = SPI_FIRSTBIT_MSB; 8001318: 4b0a ldr r3, [pc, #40] ; (8001344 ) 800131a: 2200 movs r2, #0 800131c: 621a str r2, [r3, #32] hspi1.Init.TIMode = SPI_TIMODE_DISABLE; 800131e: 4b09 ldr r3, [pc, #36] ; (8001344 ) 8001320: 2200 movs r2, #0 8001322: 625a str r2, [r3, #36] ; 0x24 hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; 8001324: 4b07 ldr r3, [pc, #28] ; (8001344 ) 8001326: 2200 movs r2, #0 8001328: 629a str r2, [r3, #40] ; 0x28 hspi1.Init.CRCPolynomial = 10; 800132a: 4b06 ldr r3, [pc, #24] ; (8001344 ) 800132c: 220a movs r2, #10 800132e: 62da str r2, [r3, #44] ; 0x2c if (HAL_SPI_Init(&hspi1) != HAL_OK) 8001330: 4804 ldr r0, [pc, #16] ; (8001344 ) 8001332: f002 fc19 bl 8003b68 8001336: 4603 mov r3, r0 8001338: 2b00 cmp r3, #0 800133a: d001 beq.n 8001340 { Error_Handler(); 800133c: f000 fa14 bl 8001768 } /* USER CODE BEGIN SPI1_Init 2 */ /* USER CODE END SPI1_Init 2 */ } 8001340: bf00 nop 8001342: bd80 pop {r7, pc} 8001344: 20000244 .word 0x20000244 8001348: 40013000 .word 0x40013000 0800134c : * @brief TIM4 Initialization Function * @param None * @retval None */ static void MX_TIM4_Init(void) { 800134c: b580 push {r7, lr} 800134e: b08e sub sp, #56 ; 0x38 8001350: af00 add r7, sp, #0 /* USER CODE BEGIN TIM4_Init 0 */ /* USER CODE END TIM4_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; 8001352: f107 0328 add.w r3, r7, #40 ; 0x28 8001356: 2200 movs r2, #0 8001358: 601a str r2, [r3, #0] 800135a: 605a str r2, [r3, #4] 800135c: 609a str r2, [r3, #8] 800135e: 60da str r2, [r3, #12] TIM_MasterConfigTypeDef sMasterConfig = {0}; 8001360: f107 0320 add.w r3, r7, #32 8001364: 2200 movs r2, #0 8001366: 601a str r2, [r3, #0] 8001368: 605a str r2, [r3, #4] TIM_OC_InitTypeDef sConfigOC = {0}; 800136a: 1d3b adds r3, r7, #4 800136c: 2200 movs r2, #0 800136e: 601a str r2, [r3, #0] 8001370: 605a str r2, [r3, #4] 8001372: 609a str r2, [r3, #8] 8001374: 60da str r2, [r3, #12] 8001376: 611a str r2, [r3, #16] 8001378: 615a str r2, [r3, #20] 800137a: 619a str r2, [r3, #24] /* USER CODE BEGIN TIM4_Init 1 */ /* USER CODE END TIM4_Init 1 */ htim4.Instance = TIM4; 800137c: 4b2c ldr r3, [pc, #176] ; (8001430 ) 800137e: 4a2d ldr r2, [pc, #180] ; (8001434 ) 8001380: 601a str r2, [r3, #0] htim4.Init.Prescaler = 0; 8001382: 4b2b ldr r3, [pc, #172] ; (8001430 ) 8001384: 2200 movs r2, #0 8001386: 605a str r2, [r3, #4] htim4.Init.CounterMode = TIM_COUNTERMODE_UP; 8001388: 4b29 ldr r3, [pc, #164] ; (8001430 ) 800138a: 2200 movs r2, #0 800138c: 609a str r2, [r3, #8] htim4.Init.Period = 65535; 800138e: 4b28 ldr r3, [pc, #160] ; (8001430 ) 8001390: f64f 72ff movw r2, #65535 ; 0xffff 8001394: 60da str r2, [r3, #12] htim4.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; 8001396: 4b26 ldr r3, [pc, #152] ; (8001430 ) 8001398: 2200 movs r2, #0 800139a: 611a str r2, [r3, #16] htim4.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; 800139c: 4b24 ldr r3, [pc, #144] ; (8001430 ) 800139e: 2200 movs r2, #0 80013a0: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim4) != HAL_OK) 80013a2: 4823 ldr r0, [pc, #140] ; (8001430 ) 80013a4: f002 fcb1 bl 8003d0a 80013a8: 4603 mov r3, r0 80013aa: 2b00 cmp r3, #0 80013ac: d001 beq.n 80013b2 { Error_Handler(); 80013ae: f000 f9db bl 8001768 } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; 80013b2: f44f 5380 mov.w r3, #4096 ; 0x1000 80013b6: 62bb str r3, [r7, #40] ; 0x28 if (HAL_TIM_ConfigClockSource(&htim4, &sClockSourceConfig) != HAL_OK) 80013b8: f107 0328 add.w r3, r7, #40 ; 0x28 80013bc: 4619 mov r1, r3 80013be: 481c ldr r0, [pc, #112] ; (8001430 ) 80013c0: f002 fff8 bl 80043b4 80013c4: 4603 mov r3, r0 80013c6: 2b00 cmp r3, #0 80013c8: d001 beq.n 80013ce { Error_Handler(); 80013ca: f000 f9cd bl 8001768 } if (HAL_TIM_PWM_Init(&htim4) != HAL_OK) 80013ce: 4818 ldr r0, [pc, #96] ; (8001430 ) 80013d0: f002 fd18 bl 8003e04 80013d4: 4603 mov r3, r0 80013d6: 2b00 cmp r3, #0 80013d8: d001 beq.n 80013de { Error_Handler(); 80013da: f000 f9c5 bl 8001768 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; 80013de: 2300 movs r3, #0 80013e0: 623b str r3, [r7, #32] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; 80013e2: 2300 movs r3, #0 80013e4: 627b str r3, [r7, #36] ; 0x24 if (HAL_TIMEx_MasterConfigSynchronization(&htim4, &sMasterConfig) != HAL_OK) 80013e6: f107 0320 add.w r3, r7, #32 80013ea: 4619 mov r1, r3 80013ec: 4810 ldr r0, [pc, #64] ; (8001430 ) 80013ee: f003 fba9 bl 8004b44 80013f2: 4603 mov r3, r0 80013f4: 2b00 cmp r3, #0 80013f6: d001 beq.n 80013fc { Error_Handler(); 80013f8: f000 f9b6 bl 8001768 } sConfigOC.OCMode = TIM_OCMODE_PWM1; 80013fc: 2360 movs r3, #96 ; 0x60 80013fe: 607b str r3, [r7, #4] sConfigOC.Pulse = 0; 8001400: 2300 movs r3, #0 8001402: 60bb str r3, [r7, #8] sConfigOC.OCPolarity = TIM_OCPOLARITY_HIGH; 8001404: 2300 movs r3, #0 8001406: 60fb str r3, [r7, #12] sConfigOC.OCFastMode = TIM_OCFAST_DISABLE; 8001408: 2300 movs r3, #0 800140a: 617b str r3, [r7, #20] if (HAL_TIM_PWM_ConfigChannel(&htim4, &sConfigOC, TIM_CHANNEL_3) != HAL_OK) 800140c: 1d3b adds r3, r7, #4 800140e: 2208 movs r2, #8 8001410: 4619 mov r1, r3 8001412: 4807 ldr r0, [pc, #28] ; (8001430 ) 8001414: f002 ff10 bl 8004238 8001418: 4603 mov r3, r0 800141a: 2b00 cmp r3, #0 800141c: d001 beq.n 8001422 { Error_Handler(); 800141e: f000 f9a3 bl 8001768 } /* USER CODE BEGIN TIM4_Init 2 */ /* USER CODE END TIM4_Init 2 */ HAL_TIM_MspPostInit(&htim4); 8001422: 4803 ldr r0, [pc, #12] ; (8001430 ) 8001424: f000 faa4 bl 8001970 } 8001428: bf00 nop 800142a: 3738 adds r7, #56 ; 0x38 800142c: 46bd mov sp, r7 800142e: bd80 pop {r7, pc} 8001430: 2000029c .word 0x2000029c 8001434: 40000800 .word 0x40000800 08001438 : * @brief TIM6 Initialization Function * @param None * @retval None */ static void MX_TIM6_Init(void) { 8001438: b580 push {r7, lr} 800143a: b082 sub sp, #8 800143c: af00 add r7, sp, #0 /* USER CODE BEGIN TIM6_Init 0 */ /* USER CODE END TIM6_Init 0 */ TIM_MasterConfigTypeDef sMasterConfig = {0}; 800143e: 463b mov r3, r7 8001440: 2200 movs r2, #0 8001442: 601a str r2, [r3, #0] 8001444: 605a str r2, [r3, #4] /* USER CODE BEGIN TIM6_Init 1 */ /* USER CODE END TIM6_Init 1 */ htim6.Instance = TIM6; 8001446: 4b15 ldr r3, [pc, #84] ; (800149c ) 8001448: 4a15 ldr r2, [pc, #84] ; (80014a0 ) 800144a: 601a str r2, [r3, #0] htim6.Init.Prescaler = 72-1; 800144c: 4b13 ldr r3, [pc, #76] ; (800149c ) 800144e: 2247 movs r2, #71 ; 0x47 8001450: 605a str r2, [r3, #4] htim6.Init.CounterMode = TIM_COUNTERMODE_UP; 8001452: 4b12 ldr r3, [pc, #72] ; (800149c ) 8001454: 2200 movs r2, #0 8001456: 609a str r2, [r3, #8] htim6.Init.Period = 10000-1; 8001458: 4b10 ldr r3, [pc, #64] ; (800149c ) 800145a: f242 720f movw r2, #9999 ; 0x270f 800145e: 60da str r2, [r3, #12] htim6.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; 8001460: 4b0e ldr r3, [pc, #56] ; (800149c ) 8001462: 2200 movs r2, #0 8001464: 619a str r2, [r3, #24] if (HAL_TIM_Base_Init(&htim6) != HAL_OK) 8001466: 480d ldr r0, [pc, #52] ; (800149c ) 8001468: f002 fc4f bl 8003d0a 800146c: 4603 mov r3, r0 800146e: 2b00 cmp r3, #0 8001470: d001 beq.n 8001476 { Error_Handler(); 8001472: f000 f979 bl 8001768 } sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET; 8001476: 2300 movs r3, #0 8001478: 603b str r3, [r7, #0] sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE; 800147a: 2300 movs r3, #0 800147c: 607b str r3, [r7, #4] if (HAL_TIMEx_MasterConfigSynchronization(&htim6, &sMasterConfig) != HAL_OK) 800147e: 463b mov r3, r7 8001480: 4619 mov r1, r3 8001482: 4806 ldr r0, [pc, #24] ; (800149c ) 8001484: f003 fb5e bl 8004b44 8001488: 4603 mov r3, r0 800148a: 2b00 cmp r3, #0 800148c: d001 beq.n 8001492 { Error_Handler(); 800148e: f000 f96b bl 8001768 } /* USER CODE BEGIN TIM6_Init 2 */ /* USER CODE END TIM6_Init 2 */ } 8001492: bf00 nop 8001494: 3708 adds r7, #8 8001496: 46bd mov sp, r7 8001498: bd80 pop {r7, pc} 800149a: bf00 nop 800149c: 200002e4 .word 0x200002e4 80014a0: 40001000 .word 0x40001000 080014a4 : * @brief GPIO Initialization Function * @param None * @retval None */ static void MX_GPIO_Init(void) { 80014a4: b580 push {r7, lr} 80014a6: b08a sub sp, #40 ; 0x28 80014a8: af00 add r7, sp, #0 GPIO_InitTypeDef GPIO_InitStruct = {0}; 80014aa: f107 0318 add.w r3, r7, #24 80014ae: 2200 movs r2, #0 80014b0: 601a str r2, [r3, #0] 80014b2: 605a str r2, [r3, #4] 80014b4: 609a str r2, [r3, #8] 80014b6: 60da str r2, [r3, #12] /* USER CODE BEGIN MX_GPIO_Init_1 */ /* USER CODE END MX_GPIO_Init_1 */ /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOE_CLK_ENABLE(); 80014b8: 4b74 ldr r3, [pc, #464] ; (800168c ) 80014ba: 699b ldr r3, [r3, #24] 80014bc: 4a73 ldr r2, [pc, #460] ; (800168c ) 80014be: f043 0340 orr.w r3, r3, #64 ; 0x40 80014c2: 6193 str r3, [r2, #24] 80014c4: 4b71 ldr r3, [pc, #452] ; (800168c ) 80014c6: 699b ldr r3, [r3, #24] 80014c8: f003 0340 and.w r3, r3, #64 ; 0x40 80014cc: 617b str r3, [r7, #20] 80014ce: 697b ldr r3, [r7, #20] __HAL_RCC_GPIOF_CLK_ENABLE(); 80014d0: 4b6e ldr r3, [pc, #440] ; (800168c ) 80014d2: 699b ldr r3, [r3, #24] 80014d4: 4a6d ldr r2, [pc, #436] ; (800168c ) 80014d6: f043 0380 orr.w r3, r3, #128 ; 0x80 80014da: 6193 str r3, [r2, #24] 80014dc: 4b6b ldr r3, [pc, #428] ; (800168c ) 80014de: 699b ldr r3, [r3, #24] 80014e0: f003 0380 and.w r3, r3, #128 ; 0x80 80014e4: 613b str r3, [r7, #16] 80014e6: 693b ldr r3, [r7, #16] __HAL_RCC_GPIOA_CLK_ENABLE(); 80014e8: 4b68 ldr r3, [pc, #416] ; (800168c ) 80014ea: 699b ldr r3, [r3, #24] 80014ec: 4a67 ldr r2, [pc, #412] ; (800168c ) 80014ee: f043 0304 orr.w r3, r3, #4 80014f2: 6193 str r3, [r2, #24] 80014f4: 4b65 ldr r3, [pc, #404] ; (800168c ) 80014f6: 699b ldr r3, [r3, #24] 80014f8: f003 0304 and.w r3, r3, #4 80014fc: 60fb str r3, [r7, #12] 80014fe: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOB_CLK_ENABLE(); 8001500: 4b62 ldr r3, [pc, #392] ; (800168c ) 8001502: 699b ldr r3, [r3, #24] 8001504: 4a61 ldr r2, [pc, #388] ; (800168c ) 8001506: f043 0308 orr.w r3, r3, #8 800150a: 6193 str r3, [r2, #24] 800150c: 4b5f ldr r3, [pc, #380] ; (800168c ) 800150e: 699b ldr r3, [r3, #24] 8001510: f003 0308 and.w r3, r3, #8 8001514: 60bb str r3, [r7, #8] 8001516: 68bb ldr r3, [r7, #8] __HAL_RCC_GPIOG_CLK_ENABLE(); 8001518: 4b5c ldr r3, [pc, #368] ; (800168c ) 800151a: 699b ldr r3, [r3, #24] 800151c: 4a5b ldr r2, [pc, #364] ; (800168c ) 800151e: f443 7380 orr.w r3, r3, #256 ; 0x100 8001522: 6193 str r3, [r2, #24] 8001524: 4b59 ldr r3, [pc, #356] ; (800168c ) 8001526: 699b ldr r3, [r3, #24] 8001528: f403 7380 and.w r3, r3, #256 ; 0x100 800152c: 607b str r3, [r7, #4] 800152e: 687b ldr r3, [r7, #4] __HAL_RCC_GPIOD_CLK_ENABLE(); 8001530: 4b56 ldr r3, [pc, #344] ; (800168c ) 8001532: 699b ldr r3, [r3, #24] 8001534: 4a55 ldr r2, [pc, #340] ; (800168c ) 8001536: f043 0320 orr.w r3, r3, #32 800153a: 6193 str r3, [r2, #24] 800153c: 4b53 ldr r3, [pc, #332] ; (800168c ) 800153e: 699b ldr r3, [r3, #24] 8001540: f003 0320 and.w r3, r3, #32 8001544: 603b str r3, [r7, #0] 8001546: 683b ldr r3, [r7, #0] /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(TDIN_GPIO_Port, TDIN_Pin, GPIO_PIN_SET); 8001548: 2201 movs r2, #1 800154a: f44f 7100 mov.w r1, #512 ; 0x200 800154e: 4850 ldr r0, [pc, #320] ; (8001690 ) 8001550: f000 feeb bl 800232a /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(RC522_CS_GPIO_Port, RC522_CS_Pin, GPIO_PIN_RESET); 8001554: 2200 movs r2, #0 8001556: 2110 movs r1, #16 8001558: 484e ldr r0, [pc, #312] ; (8001694 ) 800155a: f000 fee6 bl 800232a /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(LCD_BL_GPIO_Port, LCD_BL_Pin, GPIO_PIN_RESET); 800155e: 2200 movs r2, #0 8001560: 2101 movs r1, #1 8001562: 484d ldr r0, [pc, #308] ; (8001698 ) 8001564: f000 fee1 bl 800232a /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOB, TCLK_Pin|TCS_Pin|MAX_IRD_Pin|MAX_RD_Pin, GPIO_PIN_SET); 8001568: 2201 movs r2, #1 800156a: f245 0106 movw r1, #20486 ; 0x5006 800156e: 484a ldr r0, [pc, #296] ; (8001698 ) 8001570: f000 fedb bl 800232a /*Configure GPIO pins : KEY3_Pin KEY2_Pin KEY1_Pin */ GPIO_InitStruct.Pin = KEY3_Pin|KEY2_Pin|KEY1_Pin; 8001574: 231c movs r3, #28 8001576: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 8001578: 2300 movs r3, #0 800157a: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_PULLUP; 800157c: 2301 movs r3, #1 800157e: 623b str r3, [r7, #32] HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); 8001580: f107 0318 add.w r3, r7, #24 8001584: 4619 mov r1, r3 8001586: 4845 ldr r0, [pc, #276] ; (800169c ) 8001588: f000 fd24 bl 8001fd4 /*Configure GPIO pin : TDOUT_Pin */ GPIO_InitStruct.Pin = TDOUT_Pin; 800158c: f44f 7380 mov.w r3, #256 ; 0x100 8001590: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 8001592: 2300 movs r3, #0 8001594: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; 8001596: 2300 movs r3, #0 8001598: 623b str r3, [r7, #32] HAL_GPIO_Init(TDOUT_GPIO_Port, &GPIO_InitStruct); 800159a: f107 0318 add.w r3, r7, #24 800159e: 4619 mov r1, r3 80015a0: 483b ldr r0, [pc, #236] ; (8001690 ) 80015a2: f000 fd17 bl 8001fd4 /*Configure GPIO pin : TDIN_Pin */ GPIO_InitStruct.Pin = TDIN_Pin; 80015a6: f44f 7300 mov.w r3, #512 ; 0x200 80015aa: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 80015ac: 2301 movs r3, #1 80015ae: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; 80015b0: 2300 movs r3, #0 80015b2: 623b str r3, [r7, #32] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 80015b4: 2303 movs r3, #3 80015b6: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(TDIN_GPIO_Port, &GPIO_InitStruct); 80015b8: f107 0318 add.w r3, r7, #24 80015bc: 4619 mov r1, r3 80015be: 4834 ldr r0, [pc, #208] ; (8001690 ) 80015c0: f000 fd08 bl 8001fd4 /*Configure GPIO pin : TPEN_Pin */ GPIO_InitStruct.Pin = TPEN_Pin; 80015c4: f44f 6380 mov.w r3, #1024 ; 0x400 80015c8: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 80015ca: 2300 movs r3, #0 80015cc: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_PULLUP; 80015ce: 2301 movs r3, #1 80015d0: 623b str r3, [r7, #32] HAL_GPIO_Init(TPEN_GPIO_Port, &GPIO_InitStruct); 80015d2: f107 0318 add.w r3, r7, #24 80015d6: 4619 mov r1, r3 80015d8: 482d ldr r0, [pc, #180] ; (8001690 ) 80015da: f000 fcfb bl 8001fd4 /*Configure GPIO pin : KEY0_Pin */ GPIO_InitStruct.Pin = KEY0_Pin; 80015de: 2301 movs r3, #1 80015e0: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 80015e2: 2300 movs r3, #0 80015e4: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; 80015e6: 2300 movs r3, #0 80015e8: 623b str r3, [r7, #32] HAL_GPIO_Init(KEY0_GPIO_Port, &GPIO_InitStruct); 80015ea: f107 0318 add.w r3, r7, #24 80015ee: 4619 mov r1, r3 80015f0: 4828 ldr r0, [pc, #160] ; (8001694 ) 80015f2: f000 fcef bl 8001fd4 /*Configure GPIO pin : RC522_CS_Pin */ GPIO_InitStruct.Pin = RC522_CS_Pin; 80015f6: 2310 movs r3, #16 80015f8: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 80015fa: 2301 movs r3, #1 80015fc: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; 80015fe: 2300 movs r3, #0 8001600: 623b str r3, [r7, #32] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 8001602: 2302 movs r3, #2 8001604: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(RC522_CS_GPIO_Port, &GPIO_InitStruct); 8001606: f107 0318 add.w r3, r7, #24 800160a: 4619 mov r1, r3 800160c: 4821 ldr r0, [pc, #132] ; (8001694 ) 800160e: f000 fce1 bl 8001fd4 /*Configure GPIO pin : LCD_BL_Pin */ GPIO_InitStruct.Pin = LCD_BL_Pin; 8001612: 2301 movs r3, #1 8001614: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 8001616: 2301 movs r3, #1 8001618: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; 800161a: 2300 movs r3, #0 800161c: 623b str r3, [r7, #32] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 800161e: 2302 movs r3, #2 8001620: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(LCD_BL_GPIO_Port, &GPIO_InitStruct); 8001622: f107 0318 add.w r3, r7, #24 8001626: 4619 mov r1, r3 8001628: 481b ldr r0, [pc, #108] ; (8001698 ) 800162a: f000 fcd3 bl 8001fd4 /*Configure GPIO pins : TCLK_Pin TCS_Pin */ GPIO_InitStruct.Pin = TCLK_Pin|TCS_Pin; 800162e: 2306 movs r3, #6 8001630: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 8001632: 2301 movs r3, #1 8001634: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_NOPULL; 8001636: 2300 movs r3, #0 8001638: 623b str r3, [r7, #32] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800163a: 2303 movs r3, #3 800163c: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 800163e: f107 0318 add.w r3, r7, #24 8001642: 4619 mov r1, r3 8001644: 4814 ldr r0, [pc, #80] ; (8001698 ) 8001646: f000 fcc5 bl 8001fd4 /*Configure GPIO pins : MAX_IRD_Pin MAX_RD_Pin */ GPIO_InitStruct.Pin = MAX_IRD_Pin|MAX_RD_Pin; 800164a: f44f 43a0 mov.w r3, #20480 ; 0x5000 800164e: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; 8001650: 2301 movs r3, #1 8001652: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_PULLUP; 8001654: 2301 movs r3, #1 8001656: 623b str r3, [r7, #32] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 8001658: 2303 movs r3, #3 800165a: 627b str r3, [r7, #36] ; 0x24 HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 800165c: f107 0318 add.w r3, r7, #24 8001660: 4619 mov r1, r3 8001662: 480d ldr r0, [pc, #52] ; (8001698 ) 8001664: f000 fcb6 bl 8001fd4 /*Configure GPIO pin : MAX_INT_Pin */ GPIO_InitStruct.Pin = MAX_INT_Pin; 8001668: f44f 5300 mov.w r3, #8192 ; 0x2000 800166c: 61bb str r3, [r7, #24] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 800166e: 2300 movs r3, #0 8001670: 61fb str r3, [r7, #28] GPIO_InitStruct.Pull = GPIO_PULLUP; 8001672: 2301 movs r3, #1 8001674: 623b str r3, [r7, #32] HAL_GPIO_Init(MAX_INT_GPIO_Port, &GPIO_InitStruct); 8001676: f107 0318 add.w r3, r7, #24 800167a: 4619 mov r1, r3 800167c: 4806 ldr r0, [pc, #24] ; (8001698 ) 800167e: f000 fca9 bl 8001fd4 /* USER CODE BEGIN MX_GPIO_Init_2 */ /* USER CODE END MX_GPIO_Init_2 */ } 8001682: bf00 nop 8001684: 3728 adds r7, #40 ; 0x28 8001686: 46bd mov sp, r7 8001688: bd80 pop {r7, pc} 800168a: bf00 nop 800168c: 40021000 .word 0x40021000 8001690: 40011c00 .word 0x40011c00 8001694: 40010800 .word 0x40010800 8001698: 40010c00 .word 0x40010c00 800169c: 40011800 .word 0x40011800 080016a0 : /* FSMC initialization function */ static void MX_FSMC_Init(void) { 80016a0: b580 push {r7, lr} 80016a2: b088 sub sp, #32 80016a4: af00 add r7, sp, #0 /* USER CODE BEGIN FSMC_Init 0 */ /* USER CODE END FSMC_Init 0 */ FSMC_NORSRAM_TimingTypeDef Timing = {0}; 80016a6: 1d3b adds r3, r7, #4 80016a8: 2200 movs r2, #0 80016aa: 601a str r2, [r3, #0] 80016ac: 605a str r2, [r3, #4] 80016ae: 609a str r2, [r3, #8] 80016b0: 60da str r2, [r3, #12] 80016b2: 611a str r2, [r3, #16] 80016b4: 615a str r2, [r3, #20] 80016b6: 619a str r2, [r3, #24] /* USER CODE END FSMC_Init 1 */ /** Perform the SRAM1 memory initialization sequence */ hsram1.Instance = FSMC_NORSRAM_DEVICE; 80016b8: 4b28 ldr r3, [pc, #160] ; (800175c ) 80016ba: f04f 4220 mov.w r2, #2684354560 ; 0xa0000000 80016be: 601a str r2, [r3, #0] hsram1.Extended = FSMC_NORSRAM_EXTENDED_DEVICE; 80016c0: 4b26 ldr r3, [pc, #152] ; (800175c ) 80016c2: 4a27 ldr r2, [pc, #156] ; (8001760 ) 80016c4: 605a str r2, [r3, #4] /* hsram1.Init */ hsram1.Init.NSBank = FSMC_NORSRAM_BANK4; 80016c6: 4b25 ldr r3, [pc, #148] ; (800175c ) 80016c8: 2206 movs r2, #6 80016ca: 609a str r2, [r3, #8] hsram1.Init.DataAddressMux = FSMC_DATA_ADDRESS_MUX_DISABLE; 80016cc: 4b23 ldr r3, [pc, #140] ; (800175c ) 80016ce: 2200 movs r2, #0 80016d0: 60da str r2, [r3, #12] hsram1.Init.MemoryType = FSMC_MEMORY_TYPE_SRAM; 80016d2: 4b22 ldr r3, [pc, #136] ; (800175c ) 80016d4: 2200 movs r2, #0 80016d6: 611a str r2, [r3, #16] hsram1.Init.MemoryDataWidth = FSMC_NORSRAM_MEM_BUS_WIDTH_16; 80016d8: 4b20 ldr r3, [pc, #128] ; (800175c ) 80016da: 2210 movs r2, #16 80016dc: 615a str r2, [r3, #20] hsram1.Init.BurstAccessMode = FSMC_BURST_ACCESS_MODE_DISABLE; 80016de: 4b1f ldr r3, [pc, #124] ; (800175c ) 80016e0: 2200 movs r2, #0 80016e2: 619a str r2, [r3, #24] hsram1.Init.WaitSignalPolarity = FSMC_WAIT_SIGNAL_POLARITY_LOW; 80016e4: 4b1d ldr r3, [pc, #116] ; (800175c ) 80016e6: 2200 movs r2, #0 80016e8: 61da str r2, [r3, #28] hsram1.Init.WrapMode = FSMC_WRAP_MODE_DISABLE; 80016ea: 4b1c ldr r3, [pc, #112] ; (800175c ) 80016ec: 2200 movs r2, #0 80016ee: 621a str r2, [r3, #32] hsram1.Init.WaitSignalActive = FSMC_WAIT_TIMING_BEFORE_WS; 80016f0: 4b1a ldr r3, [pc, #104] ; (800175c ) 80016f2: 2200 movs r2, #0 80016f4: 625a str r2, [r3, #36] ; 0x24 hsram1.Init.WriteOperation = FSMC_WRITE_OPERATION_ENABLE; 80016f6: 4b19 ldr r3, [pc, #100] ; (800175c ) 80016f8: f44f 5280 mov.w r2, #4096 ; 0x1000 80016fc: 629a str r2, [r3, #40] ; 0x28 hsram1.Init.WaitSignal = FSMC_WAIT_SIGNAL_DISABLE; 80016fe: 4b17 ldr r3, [pc, #92] ; (800175c ) 8001700: 2200 movs r2, #0 8001702: 62da str r2, [r3, #44] ; 0x2c hsram1.Init.ExtendedMode = FSMC_EXTENDED_MODE_DISABLE; 8001704: 4b15 ldr r3, [pc, #84] ; (800175c ) 8001706: 2200 movs r2, #0 8001708: 631a str r2, [r3, #48] ; 0x30 hsram1.Init.AsynchronousWait = FSMC_ASYNCHRONOUS_WAIT_DISABLE; 800170a: 4b14 ldr r3, [pc, #80] ; (800175c ) 800170c: 2200 movs r2, #0 800170e: 635a str r2, [r3, #52] ; 0x34 hsram1.Init.WriteBurst = FSMC_WRITE_BURST_DISABLE; 8001710: 4b12 ldr r3, [pc, #72] ; (800175c ) 8001712: 2200 movs r2, #0 8001714: 639a str r2, [r3, #56] ; 0x38 /* Timing */ Timing.AddressSetupTime = 0; 8001716: 2300 movs r3, #0 8001718: 607b str r3, [r7, #4] Timing.AddressHoldTime = 15; 800171a: 230f movs r3, #15 800171c: 60bb str r3, [r7, #8] Timing.DataSetupTime = 1; 800171e: 2301 movs r3, #1 8001720: 60fb str r3, [r7, #12] Timing.BusTurnAroundDuration = 0; 8001722: 2300 movs r3, #0 8001724: 613b str r3, [r7, #16] Timing.CLKDivision = 16; 8001726: 2310 movs r3, #16 8001728: 617b str r3, [r7, #20] Timing.DataLatency = 17; 800172a: 2311 movs r3, #17 800172c: 61bb str r3, [r7, #24] Timing.AccessMode = FSMC_ACCESS_MODE_A; 800172e: 2300 movs r3, #0 8001730: 61fb str r3, [r7, #28] /* ExtTiming */ if (HAL_SRAM_Init(&hsram1, &Timing, NULL) != HAL_OK) 8001732: 1d3b adds r3, r7, #4 8001734: 2200 movs r2, #0 8001736: 4619 mov r1, r3 8001738: 4808 ldr r0, [pc, #32] ; (800175c ) 800173a: f002 fa99 bl 8003c70 800173e: 4603 mov r3, r0 8001740: 2b00 cmp r3, #0 8001742: d001 beq.n 8001748 { Error_Handler( ); 8001744: f000 f810 bl 8001768 } /** Disconnect NADV */ __HAL_AFIO_FSMCNADV_DISCONNECTED(); 8001748: 4b06 ldr r3, [pc, #24] ; (8001764 ) 800174a: 69db ldr r3, [r3, #28] 800174c: 4a05 ldr r2, [pc, #20] ; (8001764 ) 800174e: f443 6380 orr.w r3, r3, #1024 ; 0x400 8001752: 61d3 str r3, [r2, #28] /* USER CODE BEGIN FSMC_Init 2 */ /* USER CODE END FSMC_Init 2 */ } 8001754: bf00 nop 8001756: 3720 adds r7, #32 8001758: 46bd mov sp, r7 800175a: bd80 pop {r7, pc} 800175c: 2000032c .word 0x2000032c 8001760: a0000104 .word 0xa0000104 8001764: 40010000 .word 0x40010000 08001768 : /** * @brief This function is executed in case of error occurrence. * @retval None */ void Error_Handler(void) { 8001768: b480 push {r7} 800176a: 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"); 800176c: b672 cpsid i } 800176e: 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) 8001770: e7fe b.n 8001770 ... 08001774 : void HAL_TIM_MspPostInit(TIM_HandleTypeDef *htim); /** * Initializes the Global MSP. */ void HAL_MspInit(void) { 8001774: b480 push {r7} 8001776: b085 sub sp, #20 8001778: af00 add r7, sp, #0 /* USER CODE BEGIN MspInit 0 */ /* USER CODE END MspInit 0 */ __HAL_RCC_AFIO_CLK_ENABLE(); 800177a: 4b15 ldr r3, [pc, #84] ; (80017d0 ) 800177c: 699b ldr r3, [r3, #24] 800177e: 4a14 ldr r2, [pc, #80] ; (80017d0 ) 8001780: f043 0301 orr.w r3, r3, #1 8001784: 6193 str r3, [r2, #24] 8001786: 4b12 ldr r3, [pc, #72] ; (80017d0 ) 8001788: 699b ldr r3, [r3, #24] 800178a: f003 0301 and.w r3, r3, #1 800178e: 60bb str r3, [r7, #8] 8001790: 68bb ldr r3, [r7, #8] __HAL_RCC_PWR_CLK_ENABLE(); 8001792: 4b0f ldr r3, [pc, #60] ; (80017d0 ) 8001794: 69db ldr r3, [r3, #28] 8001796: 4a0e ldr r2, [pc, #56] ; (80017d0 ) 8001798: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 800179c: 61d3 str r3, [r2, #28] 800179e: 4b0c ldr r3, [pc, #48] ; (80017d0 ) 80017a0: 69db ldr r3, [r3, #28] 80017a2: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 80017a6: 607b str r3, [r7, #4] 80017a8: 687b ldr r3, [r7, #4] /* System interrupt init*/ /** NOJTAG: JTAG-DP Disabled and SW-DP Enabled */ __HAL_AFIO_REMAP_SWJ_NOJTAG(); 80017aa: 4b0a ldr r3, [pc, #40] ; (80017d4 ) 80017ac: 685b ldr r3, [r3, #4] 80017ae: 60fb str r3, [r7, #12] 80017b0: 68fb ldr r3, [r7, #12] 80017b2: f023 63e0 bic.w r3, r3, #117440512 ; 0x7000000 80017b6: 60fb str r3, [r7, #12] 80017b8: 68fb ldr r3, [r7, #12] 80017ba: f043 7300 orr.w r3, r3, #33554432 ; 0x2000000 80017be: 60fb str r3, [r7, #12] 80017c0: 4a04 ldr r2, [pc, #16] ; (80017d4 ) 80017c2: 68fb ldr r3, [r7, #12] 80017c4: 6053 str r3, [r2, #4] /* USER CODE BEGIN MspInit 1 */ /* USER CODE END MspInit 1 */ } 80017c6: bf00 nop 80017c8: 3714 adds r7, #20 80017ca: 46bd mov sp, r7 80017cc: bc80 pop {r7} 80017ce: 4770 bx lr 80017d0: 40021000 .word 0x40021000 80017d4: 40010000 .word 0x40010000 080017d8 : * This function configures the hardware resources used in this example * @param hi2c: I2C handle pointer * @retval None */ void HAL_I2C_MspInit(I2C_HandleTypeDef* hi2c) { 80017d8: b580 push {r7, lr} 80017da: b088 sub sp, #32 80017dc: af00 add r7, sp, #0 80017de: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 80017e0: f107 0310 add.w r3, r7, #16 80017e4: 2200 movs r2, #0 80017e6: 601a str r2, [r3, #0] 80017e8: 605a str r2, [r3, #4] 80017ea: 609a str r2, [r3, #8] 80017ec: 60da str r2, [r3, #12] if(hi2c->Instance==I2C2) 80017ee: 687b ldr r3, [r7, #4] 80017f0: 681b ldr r3, [r3, #0] 80017f2: 4a16 ldr r2, [pc, #88] ; (800184c ) 80017f4: 4293 cmp r3, r2 80017f6: d124 bne.n 8001842 { /* USER CODE BEGIN I2C2_MspInit 0 */ /* USER CODE END I2C2_MspInit 0 */ __HAL_RCC_GPIOB_CLK_ENABLE(); 80017f8: 4b15 ldr r3, [pc, #84] ; (8001850 ) 80017fa: 699b ldr r3, [r3, #24] 80017fc: 4a14 ldr r2, [pc, #80] ; (8001850 ) 80017fe: f043 0308 orr.w r3, r3, #8 8001802: 6193 str r3, [r2, #24] 8001804: 4b12 ldr r3, [pc, #72] ; (8001850 ) 8001806: 699b ldr r3, [r3, #24] 8001808: f003 0308 and.w r3, r3, #8 800180c: 60fb str r3, [r7, #12] 800180e: 68fb ldr r3, [r7, #12] /**I2C2 GPIO Configuration PB10 ------> I2C2_SCL PB11 ------> I2C2_SDA */ GPIO_InitStruct.Pin = GPIO_PIN_10|GPIO_PIN_11; 8001810: f44f 6340 mov.w r3, #3072 ; 0xc00 8001814: 613b str r3, [r7, #16] GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; 8001816: 2312 movs r3, #18 8001818: 617b str r3, [r7, #20] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 800181a: 2303 movs r3, #3 800181c: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 800181e: f107 0310 add.w r3, r7, #16 8001822: 4619 mov r1, r3 8001824: 480b ldr r0, [pc, #44] ; (8001854 ) 8001826: f000 fbd5 bl 8001fd4 /* Peripheral clock enable */ __HAL_RCC_I2C2_CLK_ENABLE(); 800182a: 4b09 ldr r3, [pc, #36] ; (8001850 ) 800182c: 69db ldr r3, [r3, #28] 800182e: 4a08 ldr r2, [pc, #32] ; (8001850 ) 8001830: f443 0380 orr.w r3, r3, #4194304 ; 0x400000 8001834: 61d3 str r3, [r2, #28] 8001836: 4b06 ldr r3, [pc, #24] ; (8001850 ) 8001838: 69db ldr r3, [r3, #28] 800183a: f403 0380 and.w r3, r3, #4194304 ; 0x400000 800183e: 60bb str r3, [r7, #8] 8001840: 68bb ldr r3, [r7, #8] /* USER CODE BEGIN I2C2_MspInit 1 */ /* USER CODE END I2C2_MspInit 1 */ } } 8001842: bf00 nop 8001844: 3720 adds r7, #32 8001846: 46bd mov sp, r7 8001848: bd80 pop {r7, pc} 800184a: bf00 nop 800184c: 40005800 .word 0x40005800 8001850: 40021000 .word 0x40021000 8001854: 40010c00 .word 0x40010c00 08001858 : * This function configures the hardware resources used in this example * @param hspi: SPI handle pointer * @retval None */ void HAL_SPI_MspInit(SPI_HandleTypeDef* hspi) { 8001858: b580 push {r7, lr} 800185a: b088 sub sp, #32 800185c: af00 add r7, sp, #0 800185e: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 8001860: f107 0310 add.w r3, r7, #16 8001864: 2200 movs r2, #0 8001866: 601a str r2, [r3, #0] 8001868: 605a str r2, [r3, #4] 800186a: 609a str r2, [r3, #8] 800186c: 60da str r2, [r3, #12] if(hspi->Instance==SPI1) 800186e: 687b ldr r3, [r7, #4] 8001870: 681b ldr r3, [r3, #0] 8001872: 4a1b ldr r2, [pc, #108] ; (80018e0 ) 8001874: 4293 cmp r3, r2 8001876: d12f bne.n 80018d8 { /* USER CODE BEGIN SPI1_MspInit 0 */ /* USER CODE END SPI1_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_SPI1_CLK_ENABLE(); 8001878: 4b1a ldr r3, [pc, #104] ; (80018e4 ) 800187a: 699b ldr r3, [r3, #24] 800187c: 4a19 ldr r2, [pc, #100] ; (80018e4 ) 800187e: f443 5380 orr.w r3, r3, #4096 ; 0x1000 8001882: 6193 str r3, [r2, #24] 8001884: 4b17 ldr r3, [pc, #92] ; (80018e4 ) 8001886: 699b ldr r3, [r3, #24] 8001888: f403 5380 and.w r3, r3, #4096 ; 0x1000 800188c: 60fb str r3, [r7, #12] 800188e: 68fb ldr r3, [r7, #12] __HAL_RCC_GPIOA_CLK_ENABLE(); 8001890: 4b14 ldr r3, [pc, #80] ; (80018e4 ) 8001892: 699b ldr r3, [r3, #24] 8001894: 4a13 ldr r2, [pc, #76] ; (80018e4 ) 8001896: f043 0304 orr.w r3, r3, #4 800189a: 6193 str r3, [r2, #24] 800189c: 4b11 ldr r3, [pc, #68] ; (80018e4 ) 800189e: 699b ldr r3, [r3, #24] 80018a0: f003 0304 and.w r3, r3, #4 80018a4: 60bb str r3, [r7, #8] 80018a6: 68bb ldr r3, [r7, #8] /**SPI1 GPIO Configuration PA5 ------> SPI1_SCK PA6 ------> SPI1_MISO PA7 ------> SPI1_MOSI */ GPIO_InitStruct.Pin = GPIO_PIN_5|GPIO_PIN_7; 80018a8: 23a0 movs r3, #160 ; 0xa0 80018aa: 613b str r3, [r7, #16] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 80018ac: 2302 movs r3, #2 80018ae: 617b str r3, [r7, #20] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 80018b0: 2303 movs r3, #3 80018b2: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 80018b4: f107 0310 add.w r3, r7, #16 80018b8: 4619 mov r1, r3 80018ba: 480b ldr r0, [pc, #44] ; (80018e8 ) 80018bc: f000 fb8a bl 8001fd4 GPIO_InitStruct.Pin = GPIO_PIN_6; 80018c0: 2340 movs r3, #64 ; 0x40 80018c2: 613b str r3, [r7, #16] GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 80018c4: 2300 movs r3, #0 80018c6: 617b str r3, [r7, #20] GPIO_InitStruct.Pull = GPIO_NOPULL; 80018c8: 2300 movs r3, #0 80018ca: 61bb str r3, [r7, #24] HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); 80018cc: f107 0310 add.w r3, r7, #16 80018d0: 4619 mov r1, r3 80018d2: 4805 ldr r0, [pc, #20] ; (80018e8 ) 80018d4: f000 fb7e bl 8001fd4 /* USER CODE BEGIN SPI1_MspInit 1 */ /* USER CODE END SPI1_MspInit 1 */ } } 80018d8: bf00 nop 80018da: 3720 adds r7, #32 80018dc: 46bd mov sp, r7 80018de: bd80 pop {r7, pc} 80018e0: 40013000 .word 0x40013000 80018e4: 40021000 .word 0x40021000 80018e8: 40010800 .word 0x40010800 080018ec : * This function configures the hardware resources used in this example * @param htim_base: TIM_Base handle pointer * @retval None */ void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* htim_base) { 80018ec: b580 push {r7, lr} 80018ee: b084 sub sp, #16 80018f0: af00 add r7, sp, #0 80018f2: 6078 str r0, [r7, #4] if(htim_base->Instance==TIM4) 80018f4: 687b ldr r3, [r7, #4] 80018f6: 681b ldr r3, [r3, #0] 80018f8: 4a1a ldr r2, [pc, #104] ; (8001964 ) 80018fa: 4293 cmp r3, r2 80018fc: d114 bne.n 8001928 { /* USER CODE BEGIN TIM4_MspInit 0 */ /* USER CODE END TIM4_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_TIM4_CLK_ENABLE(); 80018fe: 4b1a ldr r3, [pc, #104] ; (8001968 ) 8001900: 69db ldr r3, [r3, #28] 8001902: 4a19 ldr r2, [pc, #100] ; (8001968 ) 8001904: f043 0304 orr.w r3, r3, #4 8001908: 61d3 str r3, [r2, #28] 800190a: 4b17 ldr r3, [pc, #92] ; (8001968 ) 800190c: 69db ldr r3, [r3, #28] 800190e: f003 0304 and.w r3, r3, #4 8001912: 60fb str r3, [r7, #12] 8001914: 68fb ldr r3, [r7, #12] /* TIM4 interrupt Init */ HAL_NVIC_SetPriority(TIM4_IRQn, 0, 0); 8001916: 2200 movs r2, #0 8001918: 2100 movs r1, #0 800191a: 201e movs r0, #30 800191c: f000 fb23 bl 8001f66 HAL_NVIC_EnableIRQ(TIM4_IRQn); 8001920: 201e movs r0, #30 8001922: f000 fb3c bl 8001f9e /* USER CODE BEGIN TIM6_MspInit 1 */ /* USER CODE END TIM6_MspInit 1 */ } } 8001926: e018 b.n 800195a else if(htim_base->Instance==TIM6) 8001928: 687b ldr r3, [r7, #4] 800192a: 681b ldr r3, [r3, #0] 800192c: 4a0f ldr r2, [pc, #60] ; (800196c ) 800192e: 4293 cmp r3, r2 8001930: d113 bne.n 800195a __HAL_RCC_TIM6_CLK_ENABLE(); 8001932: 4b0d ldr r3, [pc, #52] ; (8001968 ) 8001934: 69db ldr r3, [r3, #28] 8001936: 4a0c ldr r2, [pc, #48] ; (8001968 ) 8001938: f043 0310 orr.w r3, r3, #16 800193c: 61d3 str r3, [r2, #28] 800193e: 4b0a ldr r3, [pc, #40] ; (8001968 ) 8001940: 69db ldr r3, [r3, #28] 8001942: f003 0310 and.w r3, r3, #16 8001946: 60bb str r3, [r7, #8] 8001948: 68bb ldr r3, [r7, #8] HAL_NVIC_SetPriority(TIM6_IRQn, 0, 0); 800194a: 2200 movs r2, #0 800194c: 2100 movs r1, #0 800194e: 2036 movs r0, #54 ; 0x36 8001950: f000 fb09 bl 8001f66 HAL_NVIC_EnableIRQ(TIM6_IRQn); 8001954: 2036 movs r0, #54 ; 0x36 8001956: f000 fb22 bl 8001f9e } 800195a: bf00 nop 800195c: 3710 adds r7, #16 800195e: 46bd mov sp, r7 8001960: bd80 pop {r7, pc} 8001962: bf00 nop 8001964: 40000800 .word 0x40000800 8001968: 40021000 .word 0x40021000 800196c: 40001000 .word 0x40001000 08001970 : void HAL_TIM_MspPostInit(TIM_HandleTypeDef* htim) { 8001970: b580 push {r7, lr} 8001972: b088 sub sp, #32 8001974: af00 add r7, sp, #0 8001976: 6078 str r0, [r7, #4] GPIO_InitTypeDef GPIO_InitStruct = {0}; 8001978: f107 0310 add.w r3, r7, #16 800197c: 2200 movs r2, #0 800197e: 601a str r2, [r3, #0] 8001980: 605a str r2, [r3, #4] 8001982: 609a str r2, [r3, #8] 8001984: 60da str r2, [r3, #12] if(htim->Instance==TIM4) 8001986: 687b ldr r3, [r7, #4] 8001988: 681b ldr r3, [r3, #0] 800198a: 4a10 ldr r2, [pc, #64] ; (80019cc ) 800198c: 4293 cmp r3, r2 800198e: d118 bne.n 80019c2 { /* USER CODE BEGIN TIM4_MspPostInit 0 */ /* USER CODE END TIM4_MspPostInit 0 */ __HAL_RCC_GPIOB_CLK_ENABLE(); 8001990: 4b0f ldr r3, [pc, #60] ; (80019d0 ) 8001992: 699b ldr r3, [r3, #24] 8001994: 4a0e ldr r2, [pc, #56] ; (80019d0 ) 8001996: f043 0308 orr.w r3, r3, #8 800199a: 6193 str r3, [r2, #24] 800199c: 4b0c ldr r3, [pc, #48] ; (80019d0 ) 800199e: 699b ldr r3, [r3, #24] 80019a0: f003 0308 and.w r3, r3, #8 80019a4: 60fb str r3, [r7, #12] 80019a6: 68fb ldr r3, [r7, #12] /**TIM4 GPIO Configuration PB8 ------> TIM4_CH3 */ GPIO_InitStruct.Pin = GPIO_PIN_8; 80019a8: f44f 7380 mov.w r3, #256 ; 0x100 80019ac: 613b str r3, [r7, #16] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 80019ae: 2302 movs r3, #2 80019b0: 617b str r3, [r7, #20] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; 80019b2: 2302 movs r3, #2 80019b4: 61fb str r3, [r7, #28] HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); 80019b6: f107 0310 add.w r3, r7, #16 80019ba: 4619 mov r1, r3 80019bc: 4805 ldr r0, [pc, #20] ; (80019d4 ) 80019be: f000 fb09 bl 8001fd4 /* USER CODE BEGIN TIM4_MspPostInit 1 */ /* USER CODE END TIM4_MspPostInit 1 */ } } 80019c2: bf00 nop 80019c4: 3720 adds r7, #32 80019c6: 46bd mov sp, r7 80019c8: bd80 pop {r7, pc} 80019ca: bf00 nop 80019cc: 40000800 .word 0x40000800 80019d0: 40021000 .word 0x40021000 80019d4: 40010c00 .word 0x40010c00 080019d8 : } static uint32_t FSMC_Initialized = 0; static void HAL_FSMC_MspInit(void){ 80019d8: b580 push {r7, lr} 80019da: b086 sub sp, #24 80019dc: af00 add r7, sp, #0 /* USER CODE BEGIN FSMC_MspInit 0 */ /* USER CODE END FSMC_MspInit 0 */ GPIO_InitTypeDef GPIO_InitStruct ={0}; 80019de: f107 0308 add.w r3, r7, #8 80019e2: 2200 movs r2, #0 80019e4: 601a str r2, [r3, #0] 80019e6: 605a str r2, [r3, #4] 80019e8: 609a str r2, [r3, #8] 80019ea: 60da str r2, [r3, #12] if (FSMC_Initialized) { 80019ec: 4b1f ldr r3, [pc, #124] ; (8001a6c ) 80019ee: 681b ldr r3, [r3, #0] 80019f0: 2b00 cmp r3, #0 80019f2: d136 bne.n 8001a62 return; } FSMC_Initialized = 1; 80019f4: 4b1d ldr r3, [pc, #116] ; (8001a6c ) 80019f6: 2201 movs r2, #1 80019f8: 601a str r2, [r3, #0] /* Peripheral clock enable */ __HAL_RCC_FSMC_CLK_ENABLE(); 80019fa: 4b1d ldr r3, [pc, #116] ; (8001a70 ) 80019fc: 695b ldr r3, [r3, #20] 80019fe: 4a1c ldr r2, [pc, #112] ; (8001a70 ) 8001a00: f443 7380 orr.w r3, r3, #256 ; 0x100 8001a04: 6153 str r3, [r2, #20] 8001a06: 4b1a ldr r3, [pc, #104] ; (8001a70 ) 8001a08: 695b ldr r3, [r3, #20] 8001a0a: f403 7380 and.w r3, r3, #256 ; 0x100 8001a0e: 607b str r3, [r7, #4] 8001a10: 687b ldr r3, [r7, #4] PD1 ------> FSMC_D3 PD4 ------> FSMC_NOE PD5 ------> FSMC_NWE PG12 ------> FSMC_NE4 */ GPIO_InitStruct.Pin = GPIO_PIN_0|GPIO_PIN_12; 8001a12: f241 0301 movw r3, #4097 ; 0x1001 8001a16: 60bb str r3, [r7, #8] GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 8001a18: 2302 movs r3, #2 8001a1a: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 8001a1c: 2303 movs r3, #3 8001a1e: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOG, &GPIO_InitStruct); 8001a20: f107 0308 add.w r3, r7, #8 8001a24: 4619 mov r1, r3 8001a26: 4813 ldr r0, [pc, #76] ; (8001a74 ) 8001a28: f000 fad4 bl 8001fd4 GPIO_InitStruct.Pin = GPIO_PIN_7|GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10 8001a2c: f64f 7380 movw r3, #65408 ; 0xff80 8001a30: 60bb str r3, [r7, #8] |GPIO_PIN_11|GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14 |GPIO_PIN_15; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 8001a32: 2302 movs r3, #2 8001a34: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 8001a36: 2303 movs r3, #3 8001a38: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOE, &GPIO_InitStruct); 8001a3a: f107 0308 add.w r3, r7, #8 8001a3e: 4619 mov r1, r3 8001a40: 480d ldr r0, [pc, #52] ; (8001a78 ) 8001a42: f000 fac7 bl 8001fd4 GPIO_InitStruct.Pin = GPIO_PIN_8|GPIO_PIN_9|GPIO_PIN_10|GPIO_PIN_14 8001a46: f24c 7333 movw r3, #50995 ; 0xc733 8001a4a: 60bb str r3, [r7, #8] |GPIO_PIN_15|GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_4 |GPIO_PIN_5; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; 8001a4c: 2302 movs r3, #2 8001a4e: 60fb str r3, [r7, #12] GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; 8001a50: 2303 movs r3, #3 8001a52: 617b str r3, [r7, #20] HAL_GPIO_Init(GPIOD, &GPIO_InitStruct); 8001a54: f107 0308 add.w r3, r7, #8 8001a58: 4619 mov r1, r3 8001a5a: 4808 ldr r0, [pc, #32] ; (8001a7c ) 8001a5c: f000 faba bl 8001fd4 8001a60: e000 b.n 8001a64 return; 8001a62: bf00 nop /* USER CODE BEGIN FSMC_MspInit 1 */ /* USER CODE END FSMC_MspInit 1 */ } 8001a64: 3718 adds r7, #24 8001a66: 46bd mov sp, r7 8001a68: bd80 pop {r7, pc} 8001a6a: bf00 nop 8001a6c: 20000374 .word 0x20000374 8001a70: 40021000 .word 0x40021000 8001a74: 40012000 .word 0x40012000 8001a78: 40011800 .word 0x40011800 8001a7c: 40011400 .word 0x40011400 08001a80 : void HAL_SRAM_MspInit(SRAM_HandleTypeDef* hsram){ 8001a80: b580 push {r7, lr} 8001a82: b082 sub sp, #8 8001a84: af00 add r7, sp, #0 8001a86: 6078 str r0, [r7, #4] /* USER CODE BEGIN SRAM_MspInit 0 */ /* USER CODE END SRAM_MspInit 0 */ HAL_FSMC_MspInit(); 8001a88: f7ff ffa6 bl 80019d8 /* USER CODE BEGIN SRAM_MspInit 1 */ /* USER CODE END SRAM_MspInit 1 */ } 8001a8c: bf00 nop 8001a8e: 3708 adds r7, #8 8001a90: 46bd mov sp, r7 8001a92: bd80 pop {r7, pc} 08001a94 : /******************************************************************************/ /** * @brief This function handles Non maskable interrupt. */ void NMI_Handler(void) { 8001a94: b480 push {r7} 8001a96: 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) 8001a98: e7fe b.n 8001a98 08001a9a : /** * @brief This function handles Hard fault interrupt. */ void HardFault_Handler(void) { 8001a9a: b480 push {r7} 8001a9c: af00 add r7, sp, #0 /* USER CODE BEGIN HardFault_IRQn 0 */ /* USER CODE END HardFault_IRQn 0 */ while (1) 8001a9e: e7fe b.n 8001a9e 08001aa0 : /** * @brief This function handles Memory management fault. */ void MemManage_Handler(void) { 8001aa0: b480 push {r7} 8001aa2: af00 add r7, sp, #0 /* USER CODE BEGIN MemoryManagement_IRQn 0 */ /* USER CODE END MemoryManagement_IRQn 0 */ while (1) 8001aa4: e7fe b.n 8001aa4 08001aa6 : /** * @brief This function handles Prefetch fault, memory access fault. */ void BusFault_Handler(void) { 8001aa6: b480 push {r7} 8001aa8: af00 add r7, sp, #0 /* USER CODE BEGIN BusFault_IRQn 0 */ /* USER CODE END BusFault_IRQn 0 */ while (1) 8001aaa: e7fe b.n 8001aaa 08001aac : /** * @brief This function handles Undefined instruction or illegal state. */ void UsageFault_Handler(void) { 8001aac: b480 push {r7} 8001aae: af00 add r7, sp, #0 /* USER CODE BEGIN UsageFault_IRQn 0 */ /* USER CODE END UsageFault_IRQn 0 */ while (1) 8001ab0: e7fe b.n 8001ab0 08001ab2 : /** * @brief This function handles System service call via SWI instruction. */ void SVC_Handler(void) { 8001ab2: b480 push {r7} 8001ab4: af00 add r7, sp, #0 /* USER CODE END SVCall_IRQn 0 */ /* USER CODE BEGIN SVCall_IRQn 1 */ /* USER CODE END SVCall_IRQn 1 */ } 8001ab6: bf00 nop 8001ab8: 46bd mov sp, r7 8001aba: bc80 pop {r7} 8001abc: 4770 bx lr 08001abe : /** * @brief This function handles Debug monitor. */ void DebugMon_Handler(void) { 8001abe: b480 push {r7} 8001ac0: af00 add r7, sp, #0 /* USER CODE END DebugMonitor_IRQn 0 */ /* USER CODE BEGIN DebugMonitor_IRQn 1 */ /* USER CODE END DebugMonitor_IRQn 1 */ } 8001ac2: bf00 nop 8001ac4: 46bd mov sp, r7 8001ac6: bc80 pop {r7} 8001ac8: 4770 bx lr 08001aca : /** * @brief This function handles Pendable request for system service. */ void PendSV_Handler(void) { 8001aca: b480 push {r7} 8001acc: af00 add r7, sp, #0 /* USER CODE END PendSV_IRQn 0 */ /* USER CODE BEGIN PendSV_IRQn 1 */ /* USER CODE END PendSV_IRQn 1 */ } 8001ace: bf00 nop 8001ad0: 46bd mov sp, r7 8001ad2: bc80 pop {r7} 8001ad4: 4770 bx lr 08001ad6 : /** * @brief This function handles System tick timer. */ void SysTick_Handler(void) { 8001ad6: b580 push {r7, lr} 8001ad8: af00 add r7, sp, #0 /* USER CODE BEGIN SysTick_IRQn 0 */ /* USER CODE END SysTick_IRQn 0 */ HAL_IncTick(); 8001ada: f000 f92d bl 8001d38 /* USER CODE BEGIN SysTick_IRQn 1 */ /* USER CODE END SysTick_IRQn 1 */ } 8001ade: bf00 nop 8001ae0: bd80 pop {r7, pc} ... 08001ae4 : /** * @brief This function handles TIM4 global interrupt. */ void TIM4_IRQHandler(void) { 8001ae4: b580 push {r7, lr} 8001ae6: af00 add r7, sp, #0 /* USER CODE BEGIN TIM4_IRQn 0 */ /* USER CODE END TIM4_IRQn 0 */ HAL_TIM_IRQHandler(&htim4); 8001ae8: 4802 ldr r0, [pc, #8] ; (8001af4 ) 8001aea: f002 fa9d bl 8004028 /* USER CODE BEGIN TIM4_IRQn 1 */ /* USER CODE END TIM4_IRQn 1 */ } 8001aee: bf00 nop 8001af0: bd80 pop {r7, pc} 8001af2: bf00 nop 8001af4: 2000029c .word 0x2000029c 08001af8 : /** * @brief This function handles TIM6 global interrupt. */ void TIM6_IRQHandler(void) { 8001af8: b580 push {r7, lr} 8001afa: af00 add r7, sp, #0 /* USER CODE BEGIN TIM6_IRQn 0 */ /* USER CODE END TIM6_IRQn 0 */ HAL_TIM_IRQHandler(&htim6); 8001afc: 4802 ldr r0, [pc, #8] ; (8001b08 ) 8001afe: f002 fa93 bl 8004028 /* USER CODE BEGIN TIM6_IRQn 1 */ /* USER CODE END TIM6_IRQn 1 */ } 8001b02: bf00 nop 8001b04: bd80 pop {r7, pc} 8001b06: bf00 nop 8001b08: 200002e4 .word 0x200002e4 08001b0c <_getpid>: void initialise_monitor_handles() { } int _getpid(void) { 8001b0c: b480 push {r7} 8001b0e: af00 add r7, sp, #0 return 1; 8001b10: 2301 movs r3, #1 } 8001b12: 4618 mov r0, r3 8001b14: 46bd mov sp, r7 8001b16: bc80 pop {r7} 8001b18: 4770 bx lr 08001b1a <_kill>: int _kill(int pid, int sig) { 8001b1a: b580 push {r7, lr} 8001b1c: b082 sub sp, #8 8001b1e: af00 add r7, sp, #0 8001b20: 6078 str r0, [r7, #4] 8001b22: 6039 str r1, [r7, #0] errno = EINVAL; 8001b24: f006 ff66 bl 80089f4 <__errno> 8001b28: 4603 mov r3, r0 8001b2a: 2216 movs r2, #22 8001b2c: 601a str r2, [r3, #0] return -1; 8001b2e: f04f 33ff mov.w r3, #4294967295 } 8001b32: 4618 mov r0, r3 8001b34: 3708 adds r7, #8 8001b36: 46bd mov sp, r7 8001b38: bd80 pop {r7, pc} 08001b3a <_exit>: void _exit (int status) { 8001b3a: b580 push {r7, lr} 8001b3c: b082 sub sp, #8 8001b3e: af00 add r7, sp, #0 8001b40: 6078 str r0, [r7, #4] _kill(status, -1); 8001b42: f04f 31ff mov.w r1, #4294967295 8001b46: 6878 ldr r0, [r7, #4] 8001b48: f7ff ffe7 bl 8001b1a <_kill> while (1) {} /* Make sure we hang here */ 8001b4c: e7fe b.n 8001b4c <_exit+0x12> 08001b4e <_read>: } __attribute__((weak)) int _read(int file, char *ptr, int len) { 8001b4e: b580 push {r7, lr} 8001b50: b086 sub sp, #24 8001b52: af00 add r7, sp, #0 8001b54: 60f8 str r0, [r7, #12] 8001b56: 60b9 str r1, [r7, #8] 8001b58: 607a str r2, [r7, #4] int DataIdx; for (DataIdx = 0; DataIdx < len; DataIdx++) 8001b5a: 2300 movs r3, #0 8001b5c: 617b str r3, [r7, #20] 8001b5e: e00a b.n 8001b76 <_read+0x28> { *ptr++ = __io_getchar(); 8001b60: f3af 8000 nop.w 8001b64: 4601 mov r1, r0 8001b66: 68bb ldr r3, [r7, #8] 8001b68: 1c5a adds r2, r3, #1 8001b6a: 60ba str r2, [r7, #8] 8001b6c: b2ca uxtb r2, r1 8001b6e: 701a strb r2, [r3, #0] for (DataIdx = 0; DataIdx < len; DataIdx++) 8001b70: 697b ldr r3, [r7, #20] 8001b72: 3301 adds r3, #1 8001b74: 617b str r3, [r7, #20] 8001b76: 697a ldr r2, [r7, #20] 8001b78: 687b ldr r3, [r7, #4] 8001b7a: 429a cmp r2, r3 8001b7c: dbf0 blt.n 8001b60 <_read+0x12> } return len; 8001b7e: 687b ldr r3, [r7, #4] } 8001b80: 4618 mov r0, r3 8001b82: 3718 adds r7, #24 8001b84: 46bd mov sp, r7 8001b86: bd80 pop {r7, pc} 08001b88 <_close>: } return len; } int _close(int file) { 8001b88: b480 push {r7} 8001b8a: b083 sub sp, #12 8001b8c: af00 add r7, sp, #0 8001b8e: 6078 str r0, [r7, #4] return -1; 8001b90: f04f 33ff mov.w r3, #4294967295 } 8001b94: 4618 mov r0, r3 8001b96: 370c adds r7, #12 8001b98: 46bd mov sp, r7 8001b9a: bc80 pop {r7} 8001b9c: 4770 bx lr 08001b9e <_fstat>: int _fstat(int file, struct stat *st) { 8001b9e: b480 push {r7} 8001ba0: b083 sub sp, #12 8001ba2: af00 add r7, sp, #0 8001ba4: 6078 str r0, [r7, #4] 8001ba6: 6039 str r1, [r7, #0] st->st_mode = S_IFCHR; 8001ba8: 683b ldr r3, [r7, #0] 8001baa: f44f 5200 mov.w r2, #8192 ; 0x2000 8001bae: 605a str r2, [r3, #4] return 0; 8001bb0: 2300 movs r3, #0 } 8001bb2: 4618 mov r0, r3 8001bb4: 370c adds r7, #12 8001bb6: 46bd mov sp, r7 8001bb8: bc80 pop {r7} 8001bba: 4770 bx lr 08001bbc <_isatty>: int _isatty(int file) { 8001bbc: b480 push {r7} 8001bbe: b083 sub sp, #12 8001bc0: af00 add r7, sp, #0 8001bc2: 6078 str r0, [r7, #4] return 1; 8001bc4: 2301 movs r3, #1 } 8001bc6: 4618 mov r0, r3 8001bc8: 370c adds r7, #12 8001bca: 46bd mov sp, r7 8001bcc: bc80 pop {r7} 8001bce: 4770 bx lr 08001bd0 <_lseek>: int _lseek(int file, int ptr, int dir) { 8001bd0: b480 push {r7} 8001bd2: b085 sub sp, #20 8001bd4: af00 add r7, sp, #0 8001bd6: 60f8 str r0, [r7, #12] 8001bd8: 60b9 str r1, [r7, #8] 8001bda: 607a str r2, [r7, #4] return 0; 8001bdc: 2300 movs r3, #0 } 8001bde: 4618 mov r0, r3 8001be0: 3714 adds r7, #20 8001be2: 46bd mov sp, r7 8001be4: bc80 pop {r7} 8001be6: 4770 bx lr 08001be8 <_sbrk>: * * @param incr Memory size * @return Pointer to allocated memory */ void *_sbrk(ptrdiff_t incr) { 8001be8: b580 push {r7, lr} 8001bea: b086 sub sp, #24 8001bec: af00 add r7, sp, #0 8001bee: 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; 8001bf0: 4a14 ldr r2, [pc, #80] ; (8001c44 <_sbrk+0x5c>) 8001bf2: 4b15 ldr r3, [pc, #84] ; (8001c48 <_sbrk+0x60>) 8001bf4: 1ad3 subs r3, r2, r3 8001bf6: 617b str r3, [r7, #20] const uint8_t *max_heap = (uint8_t *)stack_limit; 8001bf8: 697b ldr r3, [r7, #20] 8001bfa: 613b str r3, [r7, #16] uint8_t *prev_heap_end; /* Initialize heap end at first call */ if (NULL == __sbrk_heap_end) 8001bfc: 4b13 ldr r3, [pc, #76] ; (8001c4c <_sbrk+0x64>) 8001bfe: 681b ldr r3, [r3, #0] 8001c00: 2b00 cmp r3, #0 8001c02: d102 bne.n 8001c0a <_sbrk+0x22> { __sbrk_heap_end = &_end; 8001c04: 4b11 ldr r3, [pc, #68] ; (8001c4c <_sbrk+0x64>) 8001c06: 4a12 ldr r2, [pc, #72] ; (8001c50 <_sbrk+0x68>) 8001c08: 601a str r2, [r3, #0] } /* Protect heap from growing into the reserved MSP stack */ if (__sbrk_heap_end + incr > max_heap) 8001c0a: 4b10 ldr r3, [pc, #64] ; (8001c4c <_sbrk+0x64>) 8001c0c: 681a ldr r2, [r3, #0] 8001c0e: 687b ldr r3, [r7, #4] 8001c10: 4413 add r3, r2 8001c12: 693a ldr r2, [r7, #16] 8001c14: 429a cmp r2, r3 8001c16: d207 bcs.n 8001c28 <_sbrk+0x40> { errno = ENOMEM; 8001c18: f006 feec bl 80089f4 <__errno> 8001c1c: 4603 mov r3, r0 8001c1e: 220c movs r2, #12 8001c20: 601a str r2, [r3, #0] return (void *)-1; 8001c22: f04f 33ff mov.w r3, #4294967295 8001c26: e009 b.n 8001c3c <_sbrk+0x54> } prev_heap_end = __sbrk_heap_end; 8001c28: 4b08 ldr r3, [pc, #32] ; (8001c4c <_sbrk+0x64>) 8001c2a: 681b ldr r3, [r3, #0] 8001c2c: 60fb str r3, [r7, #12] __sbrk_heap_end += incr; 8001c2e: 4b07 ldr r3, [pc, #28] ; (8001c4c <_sbrk+0x64>) 8001c30: 681a ldr r2, [r3, #0] 8001c32: 687b ldr r3, [r7, #4] 8001c34: 4413 add r3, r2 8001c36: 4a05 ldr r2, [pc, #20] ; (8001c4c <_sbrk+0x64>) 8001c38: 6013 str r3, [r2, #0] return (void *)prev_heap_end; 8001c3a: 68fb ldr r3, [r7, #12] } 8001c3c: 4618 mov r0, r3 8001c3e: 3718 adds r7, #24 8001c40: 46bd mov sp, r7 8001c42: bd80 pop {r7, pc} 8001c44: 20010000 .word 0x20010000 8001c48: 00000800 .word 0x00000800 8001c4c: 20000378 .word 0x20000378 8001c50: 20002678 .word 0x20002678 08001c54 : * @note This function should be used only after reset. * @param None * @retval None */ void SystemInit (void) { 8001c54: b480 push {r7} 8001c56: af00 add r7, sp, #0 /* 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 */ } 8001c58: bf00 nop 8001c5a: 46bd mov sp, r7 8001c5c: bc80 pop {r7} 8001c5e: 4770 bx lr 08001c60 : .weak Reset_Handler .type Reset_Handler, %function Reset_Handler: /* Copy the data segment initializers from flash to SRAM */ ldr r0, =_sdata 8001c60: 480c ldr r0, [pc, #48] ; (8001c94 ) ldr r1, =_edata 8001c62: 490d ldr r1, [pc, #52] ; (8001c98 ) ldr r2, =_sidata 8001c64: 4a0d ldr r2, [pc, #52] ; (8001c9c ) movs r3, #0 8001c66: 2300 movs r3, #0 b LoopCopyDataInit 8001c68: e002 b.n 8001c70 08001c6a : CopyDataInit: ldr r4, [r2, r3] 8001c6a: 58d4 ldr r4, [r2, r3] str r4, [r0, r3] 8001c6c: 50c4 str r4, [r0, r3] adds r3, r3, #4 8001c6e: 3304 adds r3, #4 08001c70 : LoopCopyDataInit: adds r4, r0, r3 8001c70: 18c4 adds r4, r0, r3 cmp r4, r1 8001c72: 428c cmp r4, r1 bcc CopyDataInit 8001c74: d3f9 bcc.n 8001c6a /* Zero fill the bss segment. */ ldr r2, =_sbss 8001c76: 4a0a ldr r2, [pc, #40] ; (8001ca0 ) ldr r4, =_ebss 8001c78: 4c0a ldr r4, [pc, #40] ; (8001ca4 ) movs r3, #0 8001c7a: 2300 movs r3, #0 b LoopFillZerobss 8001c7c: e001 b.n 8001c82 08001c7e : FillZerobss: str r3, [r2] 8001c7e: 6013 str r3, [r2, #0] adds r2, r2, #4 8001c80: 3204 adds r2, #4 08001c82 : LoopFillZerobss: cmp r2, r4 8001c82: 42a2 cmp r2, r4 bcc FillZerobss 8001c84: d3fb bcc.n 8001c7e /* Call the clock system intitialization function.*/ bl SystemInit 8001c86: f7ff ffe5 bl 8001c54 /* Call static constructors */ bl __libc_init_array 8001c8a: f006 feb9 bl 8008a00 <__libc_init_array> /* Call the application's entry point.*/ bl main 8001c8e: f7ff fa9f bl 80011d0
bx lr 8001c92: 4770 bx lr ldr r0, =_sdata 8001c94: 20000000 .word 0x20000000 ldr r1, =_edata 8001c98: 200001d4 .word 0x200001d4 ldr r2, =_sidata 8001c9c: 0800b76c .word 0x0800b76c ldr r2, =_sbss 8001ca0: 200001d4 .word 0x200001d4 ldr r4, =_ebss 8001ca4: 20002674 .word 0x20002674 08001ca8 : * @retval : None */ .section .text.Default_Handler,"ax",%progbits Default_Handler: Infinite_Loop: b Infinite_Loop 8001ca8: e7fe b.n 8001ca8 ... 08001cac : * 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) { 8001cac: b580 push {r7, lr} 8001cae: af00 add r7, sp, #0 defined(STM32F102x6) || defined(STM32F102xB) || \ defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || defined(STM32F103xG) || \ defined(STM32F105xC) || defined(STM32F107xC) /* Prefetch buffer is not available on value line devices */ __HAL_FLASH_PREFETCH_BUFFER_ENABLE(); 8001cb0: 4b08 ldr r3, [pc, #32] ; (8001cd4 ) 8001cb2: 681b ldr r3, [r3, #0] 8001cb4: 4a07 ldr r2, [pc, #28] ; (8001cd4 ) 8001cb6: f043 0310 orr.w r3, r3, #16 8001cba: 6013 str r3, [r2, #0] #endif #endif /* PREFETCH_ENABLE */ /* Set Interrupt Group Priority */ HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4); 8001cbc: 2003 movs r0, #3 8001cbe: f000 f947 bl 8001f50 /* Use systick as time base source and configure 1ms tick (default clock after Reset is HSI) */ HAL_InitTick(TICK_INT_PRIORITY); 8001cc2: 200f movs r0, #15 8001cc4: f000 f808 bl 8001cd8 /* Init the low level hardware */ HAL_MspInit(); 8001cc8: f7ff fd54 bl 8001774 /* Return function status */ return HAL_OK; 8001ccc: 2300 movs r3, #0 } 8001cce: 4618 mov r0, r3 8001cd0: bd80 pop {r7, pc} 8001cd2: bf00 nop 8001cd4: 40022000 .word 0x40022000 08001cd8 : * implementation in user file. * @param TickPriority Tick interrupt priority. * @retval HAL status */ __weak HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority) { 8001cd8: b580 push {r7, lr} 8001cda: b082 sub sp, #8 8001cdc: af00 add r7, sp, #0 8001cde: 6078 str r0, [r7, #4] /* Configure the SysTick to have interrupt in 1ms time basis*/ if (HAL_SYSTICK_Config(SystemCoreClock / (1000U / uwTickFreq)) > 0U) 8001ce0: 4b12 ldr r3, [pc, #72] ; (8001d2c ) 8001ce2: 681a ldr r2, [r3, #0] 8001ce4: 4b12 ldr r3, [pc, #72] ; (8001d30 ) 8001ce6: 781b ldrb r3, [r3, #0] 8001ce8: 4619 mov r1, r3 8001cea: f44f 737a mov.w r3, #1000 ; 0x3e8 8001cee: fbb3 f3f1 udiv r3, r3, r1 8001cf2: fbb2 f3f3 udiv r3, r2, r3 8001cf6: 4618 mov r0, r3 8001cf8: f000 f95f bl 8001fba 8001cfc: 4603 mov r3, r0 8001cfe: 2b00 cmp r3, #0 8001d00: d001 beq.n 8001d06 { return HAL_ERROR; 8001d02: 2301 movs r3, #1 8001d04: e00e b.n 8001d24 } /* Configure the SysTick IRQ priority */ if (TickPriority < (1UL << __NVIC_PRIO_BITS)) 8001d06: 687b ldr r3, [r7, #4] 8001d08: 2b0f cmp r3, #15 8001d0a: d80a bhi.n 8001d22 { HAL_NVIC_SetPriority(SysTick_IRQn, TickPriority, 0U); 8001d0c: 2200 movs r2, #0 8001d0e: 6879 ldr r1, [r7, #4] 8001d10: f04f 30ff mov.w r0, #4294967295 8001d14: f000 f927 bl 8001f66 uwTickPrio = TickPriority; 8001d18: 4a06 ldr r2, [pc, #24] ; (8001d34 ) 8001d1a: 687b ldr r3, [r7, #4] 8001d1c: 6013 str r3, [r2, #0] { return HAL_ERROR; } /* Return function status */ return HAL_OK; 8001d1e: 2300 movs r3, #0 8001d20: e000 b.n 8001d24 return HAL_ERROR; 8001d22: 2301 movs r3, #1 } 8001d24: 4618 mov r0, r3 8001d26: 3708 adds r7, #8 8001d28: 46bd mov sp, r7 8001d2a: bd80 pop {r7, pc} 8001d2c: 20000000 .word 0x20000000 8001d30: 20000008 .word 0x20000008 8001d34: 20000004 .word 0x20000004 08001d38 : * @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) { 8001d38: b480 push {r7} 8001d3a: af00 add r7, sp, #0 uwTick += uwTickFreq; 8001d3c: 4b05 ldr r3, [pc, #20] ; (8001d54 ) 8001d3e: 781b ldrb r3, [r3, #0] 8001d40: 461a mov r2, r3 8001d42: 4b05 ldr r3, [pc, #20] ; (8001d58 ) 8001d44: 681b ldr r3, [r3, #0] 8001d46: 4413 add r3, r2 8001d48: 4a03 ldr r2, [pc, #12] ; (8001d58 ) 8001d4a: 6013 str r3, [r2, #0] } 8001d4c: bf00 nop 8001d4e: 46bd mov sp, r7 8001d50: bc80 pop {r7} 8001d52: 4770 bx lr 8001d54: 20000008 .word 0x20000008 8001d58: 2000037c .word 0x2000037c 08001d5c : * @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) { 8001d5c: b480 push {r7} 8001d5e: af00 add r7, sp, #0 return uwTick; 8001d60: 4b02 ldr r3, [pc, #8] ; (8001d6c ) 8001d62: 681b ldr r3, [r3, #0] } 8001d64: 4618 mov r0, r3 8001d66: 46bd mov sp, r7 8001d68: bc80 pop {r7} 8001d6a: 4770 bx lr 8001d6c: 2000037c .word 0x2000037c 08001d70 : * implementations in user file. * @param Delay specifies the delay time length, in milliseconds. * @retval None */ __weak void HAL_Delay(uint32_t Delay) { 8001d70: b580 push {r7, lr} 8001d72: b084 sub sp, #16 8001d74: af00 add r7, sp, #0 8001d76: 6078 str r0, [r7, #4] uint32_t tickstart = HAL_GetTick(); 8001d78: f7ff fff0 bl 8001d5c 8001d7c: 60b8 str r0, [r7, #8] uint32_t wait = Delay; 8001d7e: 687b ldr r3, [r7, #4] 8001d80: 60fb str r3, [r7, #12] /* Add a freq to guarantee minimum wait */ if (wait < HAL_MAX_DELAY) 8001d82: 68fb ldr r3, [r7, #12] 8001d84: f1b3 3fff cmp.w r3, #4294967295 8001d88: d005 beq.n 8001d96 { wait += (uint32_t)(uwTickFreq); 8001d8a: 4b0a ldr r3, [pc, #40] ; (8001db4 ) 8001d8c: 781b ldrb r3, [r3, #0] 8001d8e: 461a mov r2, r3 8001d90: 68fb ldr r3, [r7, #12] 8001d92: 4413 add r3, r2 8001d94: 60fb str r3, [r7, #12] } while ((HAL_GetTick() - tickstart) < wait) 8001d96: bf00 nop 8001d98: f7ff ffe0 bl 8001d5c 8001d9c: 4602 mov r2, r0 8001d9e: 68bb ldr r3, [r7, #8] 8001da0: 1ad3 subs r3, r2, r3 8001da2: 68fa ldr r2, [r7, #12] 8001da4: 429a cmp r2, r3 8001da6: d8f7 bhi.n 8001d98 { } } 8001da8: bf00 nop 8001daa: bf00 nop 8001dac: 3710 adds r7, #16 8001dae: 46bd mov sp, r7 8001db0: bd80 pop {r7, pc} 8001db2: bf00 nop 8001db4: 20000008 .word 0x20000008 08001db8 <__NVIC_SetPriorityGrouping>: { 8001db8: b480 push {r7} 8001dba: b085 sub sp, #20 8001dbc: af00 add r7, sp, #0 8001dbe: 6078 str r0, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ 8001dc0: 687b ldr r3, [r7, #4] 8001dc2: f003 0307 and.w r3, r3, #7 8001dc6: 60fb str r3, [r7, #12] reg_value = SCB->AIRCR; /* read old register configuration */ 8001dc8: 4b0c ldr r3, [pc, #48] ; (8001dfc <__NVIC_SetPriorityGrouping+0x44>) 8001dca: 68db ldr r3, [r3, #12] 8001dcc: 60bb str r3, [r7, #8] reg_value &= ~((uint32_t)(SCB_AIRCR_VECTKEY_Msk | SCB_AIRCR_PRIGROUP_Msk)); /* clear bits to change */ 8001dce: 68ba ldr r2, [r7, #8] 8001dd0: f64f 03ff movw r3, #63743 ; 0xf8ff 8001dd4: 4013 ands r3, r2 8001dd6: 60bb str r3, [r7, #8] (PriorityGroupTmp << SCB_AIRCR_PRIGROUP_Pos) ); /* Insert write key and priority group */ 8001dd8: 68fb ldr r3, [r7, #12] 8001dda: 021a lsls r2, r3, #8 ((uint32_t)0x5FAUL << SCB_AIRCR_VECTKEY_Pos) | 8001ddc: 68bb ldr r3, [r7, #8] 8001dde: 4313 orrs r3, r2 reg_value = (reg_value | 8001de0: f043 63bf orr.w r3, r3, #100139008 ; 0x5f80000 8001de4: f443 3300 orr.w r3, r3, #131072 ; 0x20000 8001de8: 60bb str r3, [r7, #8] SCB->AIRCR = reg_value; 8001dea: 4a04 ldr r2, [pc, #16] ; (8001dfc <__NVIC_SetPriorityGrouping+0x44>) 8001dec: 68bb ldr r3, [r7, #8] 8001dee: 60d3 str r3, [r2, #12] } 8001df0: bf00 nop 8001df2: 3714 adds r7, #20 8001df4: 46bd mov sp, r7 8001df6: bc80 pop {r7} 8001df8: 4770 bx lr 8001dfa: bf00 nop 8001dfc: e000ed00 .word 0xe000ed00 08001e00 <__NVIC_GetPriorityGrouping>: { 8001e00: b480 push {r7} 8001e02: af00 add r7, sp, #0 return ((uint32_t)((SCB->AIRCR & SCB_AIRCR_PRIGROUP_Msk) >> SCB_AIRCR_PRIGROUP_Pos)); 8001e04: 4b04 ldr r3, [pc, #16] ; (8001e18 <__NVIC_GetPriorityGrouping+0x18>) 8001e06: 68db ldr r3, [r3, #12] 8001e08: 0a1b lsrs r3, r3, #8 8001e0a: f003 0307 and.w r3, r3, #7 } 8001e0e: 4618 mov r0, r3 8001e10: 46bd mov sp, r7 8001e12: bc80 pop {r7} 8001e14: 4770 bx lr 8001e16: bf00 nop 8001e18: e000ed00 .word 0xe000ed00 08001e1c <__NVIC_EnableIRQ>: { 8001e1c: b480 push {r7} 8001e1e: b083 sub sp, #12 8001e20: af00 add r7, sp, #0 8001e22: 4603 mov r3, r0 8001e24: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) 8001e26: f997 3007 ldrsb.w r3, [r7, #7] 8001e2a: 2b00 cmp r3, #0 8001e2c: db0b blt.n 8001e46 <__NVIC_EnableIRQ+0x2a> NVIC->ISER[(((uint32_t)IRQn) >> 5UL)] = (uint32_t)(1UL << (((uint32_t)IRQn) & 0x1FUL)); 8001e2e: 79fb ldrb r3, [r7, #7] 8001e30: f003 021f and.w r2, r3, #31 8001e34: 4906 ldr r1, [pc, #24] ; (8001e50 <__NVIC_EnableIRQ+0x34>) 8001e36: f997 3007 ldrsb.w r3, [r7, #7] 8001e3a: 095b lsrs r3, r3, #5 8001e3c: 2001 movs r0, #1 8001e3e: fa00 f202 lsl.w r2, r0, r2 8001e42: f841 2023 str.w r2, [r1, r3, lsl #2] } 8001e46: bf00 nop 8001e48: 370c adds r7, #12 8001e4a: 46bd mov sp, r7 8001e4c: bc80 pop {r7} 8001e4e: 4770 bx lr 8001e50: e000e100 .word 0xe000e100 08001e54 <__NVIC_SetPriority>: { 8001e54: b480 push {r7} 8001e56: b083 sub sp, #12 8001e58: af00 add r7, sp, #0 8001e5a: 4603 mov r3, r0 8001e5c: 6039 str r1, [r7, #0] 8001e5e: 71fb strb r3, [r7, #7] if ((int32_t)(IRQn) >= 0) 8001e60: f997 3007 ldrsb.w r3, [r7, #7] 8001e64: 2b00 cmp r3, #0 8001e66: db0a blt.n 8001e7e <__NVIC_SetPriority+0x2a> NVIC->IP[((uint32_t)IRQn)] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); 8001e68: 683b ldr r3, [r7, #0] 8001e6a: b2da uxtb r2, r3 8001e6c: 490c ldr r1, [pc, #48] ; (8001ea0 <__NVIC_SetPriority+0x4c>) 8001e6e: f997 3007 ldrsb.w r3, [r7, #7] 8001e72: 0112 lsls r2, r2, #4 8001e74: b2d2 uxtb r2, r2 8001e76: 440b add r3, r1 8001e78: f883 2300 strb.w r2, [r3, #768] ; 0x300 } 8001e7c: e00a b.n 8001e94 <__NVIC_SetPriority+0x40> SCB->SHP[(((uint32_t)IRQn) & 0xFUL)-4UL] = (uint8_t)((priority << (8U - __NVIC_PRIO_BITS)) & (uint32_t)0xFFUL); 8001e7e: 683b ldr r3, [r7, #0] 8001e80: b2da uxtb r2, r3 8001e82: 4908 ldr r1, [pc, #32] ; (8001ea4 <__NVIC_SetPriority+0x50>) 8001e84: 79fb ldrb r3, [r7, #7] 8001e86: f003 030f and.w r3, r3, #15 8001e8a: 3b04 subs r3, #4 8001e8c: 0112 lsls r2, r2, #4 8001e8e: b2d2 uxtb r2, r2 8001e90: 440b add r3, r1 8001e92: 761a strb r2, [r3, #24] } 8001e94: bf00 nop 8001e96: 370c adds r7, #12 8001e98: 46bd mov sp, r7 8001e9a: bc80 pop {r7} 8001e9c: 4770 bx lr 8001e9e: bf00 nop 8001ea0: e000e100 .word 0xe000e100 8001ea4: e000ed00 .word 0xe000ed00 08001ea8 : { 8001ea8: b480 push {r7} 8001eaa: b089 sub sp, #36 ; 0x24 8001eac: af00 add r7, sp, #0 8001eae: 60f8 str r0, [r7, #12] 8001eb0: 60b9 str r1, [r7, #8] 8001eb2: 607a str r2, [r7, #4] uint32_t PriorityGroupTmp = (PriorityGroup & (uint32_t)0x07UL); /* only values 0..7 are used */ 8001eb4: 68fb ldr r3, [r7, #12] 8001eb6: f003 0307 and.w r3, r3, #7 8001eba: 61fb str r3, [r7, #28] PreemptPriorityBits = ((7UL - PriorityGroupTmp) > (uint32_t)(__NVIC_PRIO_BITS)) ? (uint32_t)(__NVIC_PRIO_BITS) : (uint32_t)(7UL - PriorityGroupTmp); 8001ebc: 69fb ldr r3, [r7, #28] 8001ebe: f1c3 0307 rsb r3, r3, #7 8001ec2: 2b04 cmp r3, #4 8001ec4: bf28 it cs 8001ec6: 2304 movcs r3, #4 8001ec8: 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)); 8001eca: 69fb ldr r3, [r7, #28] 8001ecc: 3304 adds r3, #4 8001ece: 2b06 cmp r3, #6 8001ed0: d902 bls.n 8001ed8 8001ed2: 69fb ldr r3, [r7, #28] 8001ed4: 3b03 subs r3, #3 8001ed6: e000 b.n 8001eda 8001ed8: 2300 movs r3, #0 8001eda: 617b str r3, [r7, #20] ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | 8001edc: f04f 32ff mov.w r2, #4294967295 8001ee0: 69bb ldr r3, [r7, #24] 8001ee2: fa02 f303 lsl.w r3, r2, r3 8001ee6: 43da mvns r2, r3 8001ee8: 68bb ldr r3, [r7, #8] 8001eea: 401a ands r2, r3 8001eec: 697b ldr r3, [r7, #20] 8001eee: 409a lsls r2, r3 ((SubPriority & (uint32_t)((1UL << (SubPriorityBits )) - 1UL))) 8001ef0: f04f 31ff mov.w r1, #4294967295 8001ef4: 697b ldr r3, [r7, #20] 8001ef6: fa01 f303 lsl.w r3, r1, r3 8001efa: 43d9 mvns r1, r3 8001efc: 687b ldr r3, [r7, #4] 8001efe: 400b ands r3, r1 ((PreemptPriority & (uint32_t)((1UL << (PreemptPriorityBits)) - 1UL)) << SubPriorityBits) | 8001f00: 4313 orrs r3, r2 } 8001f02: 4618 mov r0, r3 8001f04: 3724 adds r7, #36 ; 0x24 8001f06: 46bd mov sp, r7 8001f08: bc80 pop {r7} 8001f0a: 4770 bx lr 08001f0c : { 8001f0c: b580 push {r7, lr} 8001f0e: b082 sub sp, #8 8001f10: af00 add r7, sp, #0 8001f12: 6078 str r0, [r7, #4] if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) 8001f14: 687b ldr r3, [r7, #4] 8001f16: 3b01 subs r3, #1 8001f18: f1b3 7f80 cmp.w r3, #16777216 ; 0x1000000 8001f1c: d301 bcc.n 8001f22 return (1UL); /* Reload value impossible */ 8001f1e: 2301 movs r3, #1 8001f20: e00f b.n 8001f42 SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ 8001f22: 4a0a ldr r2, [pc, #40] ; (8001f4c ) 8001f24: 687b ldr r3, [r7, #4] 8001f26: 3b01 subs r3, #1 8001f28: 6053 str r3, [r2, #4] NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ 8001f2a: 210f movs r1, #15 8001f2c: f04f 30ff mov.w r0, #4294967295 8001f30: f7ff ff90 bl 8001e54 <__NVIC_SetPriority> SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ 8001f34: 4b05 ldr r3, [pc, #20] ; (8001f4c ) 8001f36: 2200 movs r2, #0 8001f38: 609a str r2, [r3, #8] SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | 8001f3a: 4b04 ldr r3, [pc, #16] ; (8001f4c ) 8001f3c: 2207 movs r2, #7 8001f3e: 601a str r2, [r3, #0] return (0UL); /* Function successful */ 8001f40: 2300 movs r3, #0 } 8001f42: 4618 mov r0, r3 8001f44: 3708 adds r7, #8 8001f46: 46bd mov sp, r7 8001f48: bd80 pop {r7, pc} 8001f4a: bf00 nop 8001f4c: e000e010 .word 0xe000e010 08001f50 : * @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) { 8001f50: b580 push {r7, lr} 8001f52: b082 sub sp, #8 8001f54: af00 add r7, sp, #0 8001f56: 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); 8001f58: 6878 ldr r0, [r7, #4] 8001f5a: f7ff ff2d bl 8001db8 <__NVIC_SetPriorityGrouping> } 8001f5e: bf00 nop 8001f60: 3708 adds r7, #8 8001f62: 46bd mov sp, r7 8001f64: bd80 pop {r7, pc} 08001f66 : * 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) { 8001f66: b580 push {r7, lr} 8001f68: b086 sub sp, #24 8001f6a: af00 add r7, sp, #0 8001f6c: 4603 mov r3, r0 8001f6e: 60b9 str r1, [r7, #8] 8001f70: 607a str r2, [r7, #4] 8001f72: 73fb strb r3, [r7, #15] uint32_t prioritygroup = 0x00U; 8001f74: 2300 movs r3, #0 8001f76: 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(); 8001f78: f7ff ff42 bl 8001e00 <__NVIC_GetPriorityGrouping> 8001f7c: 6178 str r0, [r7, #20] NVIC_SetPriority(IRQn, NVIC_EncodePriority(prioritygroup, PreemptPriority, SubPriority)); 8001f7e: 687a ldr r2, [r7, #4] 8001f80: 68b9 ldr r1, [r7, #8] 8001f82: 6978 ldr r0, [r7, #20] 8001f84: f7ff ff90 bl 8001ea8 8001f88: 4602 mov r2, r0 8001f8a: f997 300f ldrsb.w r3, [r7, #15] 8001f8e: 4611 mov r1, r2 8001f90: 4618 mov r0, r3 8001f92: f7ff ff5f bl 8001e54 <__NVIC_SetPriority> } 8001f96: bf00 nop 8001f98: 3718 adds r7, #24 8001f9a: 46bd mov sp, r7 8001f9c: bd80 pop {r7, pc} 08001f9e : * 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 (stm32f10xxx.h)) * @retval None */ void HAL_NVIC_EnableIRQ(IRQn_Type IRQn) { 8001f9e: b580 push {r7, lr} 8001fa0: b082 sub sp, #8 8001fa2: af00 add r7, sp, #0 8001fa4: 4603 mov r3, r0 8001fa6: 71fb strb r3, [r7, #7] /* Check the parameters */ assert_param(IS_NVIC_DEVICE_IRQ(IRQn)); /* Enable interrupt */ NVIC_EnableIRQ(IRQn); 8001fa8: f997 3007 ldrsb.w r3, [r7, #7] 8001fac: 4618 mov r0, r3 8001fae: f7ff ff35 bl 8001e1c <__NVIC_EnableIRQ> } 8001fb2: bf00 nop 8001fb4: 3708 adds r7, #8 8001fb6: 46bd mov sp, r7 8001fb8: bd80 pop {r7, pc} 08001fba : * @param TicksNumb: Specifies the ticks Number of ticks between two interrupts. * @retval status: - 0 Function succeeded. * - 1 Function failed. */ uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb) { 8001fba: b580 push {r7, lr} 8001fbc: b082 sub sp, #8 8001fbe: af00 add r7, sp, #0 8001fc0: 6078 str r0, [r7, #4] return SysTick_Config(TicksNumb); 8001fc2: 6878 ldr r0, [r7, #4] 8001fc4: f7ff ffa2 bl 8001f0c 8001fc8: 4603 mov r3, r0 } 8001fca: 4618 mov r0, r3 8001fcc: 3708 adds r7, #8 8001fce: 46bd mov sp, r7 8001fd0: bd80 pop {r7, pc} ... 08001fd4 : * @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) { 8001fd4: b480 push {r7} 8001fd6: b08b sub sp, #44 ; 0x2c 8001fd8: af00 add r7, sp, #0 8001fda: 6078 str r0, [r7, #4] 8001fdc: 6039 str r1, [r7, #0] uint32_t position = 0x00u; 8001fde: 2300 movs r3, #0 8001fe0: 627b str r3, [r7, #36] ; 0x24 uint32_t ioposition; uint32_t iocurrent; uint32_t temp; uint32_t config = 0x00u; 8001fe2: 2300 movs r3, #0 8001fe4: 623b str r3, [r7, #32] 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 */ while (((GPIO_Init->Pin) >> position) != 0x00u) 8001fe6: e179 b.n 80022dc { /* Get the IO position */ ioposition = (0x01uL << position); 8001fe8: 2201 movs r2, #1 8001fea: 6a7b ldr r3, [r7, #36] ; 0x24 8001fec: fa02 f303 lsl.w r3, r2, r3 8001ff0: 61fb str r3, [r7, #28] /* Get the current IO position */ iocurrent = (uint32_t)(GPIO_Init->Pin) & ioposition; 8001ff2: 683b ldr r3, [r7, #0] 8001ff4: 681b ldr r3, [r3, #0] 8001ff6: 69fa ldr r2, [r7, #28] 8001ff8: 4013 ands r3, r2 8001ffa: 61bb str r3, [r7, #24] if (iocurrent == ioposition) 8001ffc: 69ba ldr r2, [r7, #24] 8001ffe: 69fb ldr r3, [r7, #28] 8002000: 429a cmp r2, r3 8002002: f040 8168 bne.w 80022d6 { /* Check the Alternate function parameters */ assert_param(IS_GPIO_AF_INSTANCE(GPIOx)); /* Based on the required mode, filling config variable with MODEy[1:0] and CNFy[3:2] corresponding bits */ switch (GPIO_Init->Mode) 8002006: 683b ldr r3, [r7, #0] 8002008: 685b ldr r3, [r3, #4] 800200a: 4a96 ldr r2, [pc, #600] ; (8002264 ) 800200c: 4293 cmp r3, r2 800200e: d05e beq.n 80020ce 8002010: 4a94 ldr r2, [pc, #592] ; (8002264 ) 8002012: 4293 cmp r3, r2 8002014: d875 bhi.n 8002102 8002016: 4a94 ldr r2, [pc, #592] ; (8002268 ) 8002018: 4293 cmp r3, r2 800201a: d058 beq.n 80020ce 800201c: 4a92 ldr r2, [pc, #584] ; (8002268 ) 800201e: 4293 cmp r3, r2 8002020: d86f bhi.n 8002102 8002022: 4a92 ldr r2, [pc, #584] ; (800226c ) 8002024: 4293 cmp r3, r2 8002026: d052 beq.n 80020ce 8002028: 4a90 ldr r2, [pc, #576] ; (800226c ) 800202a: 4293 cmp r3, r2 800202c: d869 bhi.n 8002102 800202e: 4a90 ldr r2, [pc, #576] ; (8002270 ) 8002030: 4293 cmp r3, r2 8002032: d04c beq.n 80020ce 8002034: 4a8e ldr r2, [pc, #568] ; (8002270 ) 8002036: 4293 cmp r3, r2 8002038: d863 bhi.n 8002102 800203a: 4a8e ldr r2, [pc, #568] ; (8002274 ) 800203c: 4293 cmp r3, r2 800203e: d046 beq.n 80020ce 8002040: 4a8c ldr r2, [pc, #560] ; (8002274 ) 8002042: 4293 cmp r3, r2 8002044: d85d bhi.n 8002102 8002046: 2b12 cmp r3, #18 8002048: d82a bhi.n 80020a0 800204a: 2b12 cmp r3, #18 800204c: d859 bhi.n 8002102 800204e: a201 add r2, pc, #4 ; (adr r2, 8002054 ) 8002050: f852 f023 ldr.w pc, [r2, r3, lsl #2] 8002054: 080020cf .word 0x080020cf 8002058: 080020a9 .word 0x080020a9 800205c: 080020bb .word 0x080020bb 8002060: 080020fd .word 0x080020fd 8002064: 08002103 .word 0x08002103 8002068: 08002103 .word 0x08002103 800206c: 08002103 .word 0x08002103 8002070: 08002103 .word 0x08002103 8002074: 08002103 .word 0x08002103 8002078: 08002103 .word 0x08002103 800207c: 08002103 .word 0x08002103 8002080: 08002103 .word 0x08002103 8002084: 08002103 .word 0x08002103 8002088: 08002103 .word 0x08002103 800208c: 08002103 .word 0x08002103 8002090: 08002103 .word 0x08002103 8002094: 08002103 .word 0x08002103 8002098: 080020b1 .word 0x080020b1 800209c: 080020c5 .word 0x080020c5 80020a0: 4a75 ldr r2, [pc, #468] ; (8002278 ) 80020a2: 4293 cmp r3, r2 80020a4: d013 beq.n 80020ce config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; break; /* Parameters are checked with assert_param */ default: break; 80020a6: e02c b.n 8002102 config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_PP; 80020a8: 683b ldr r3, [r7, #0] 80020aa: 68db ldr r3, [r3, #12] 80020ac: 623b str r3, [r7, #32] break; 80020ae: e029 b.n 8002104 config = GPIO_Init->Speed + GPIO_CR_CNF_GP_OUTPUT_OD; 80020b0: 683b ldr r3, [r7, #0] 80020b2: 68db ldr r3, [r3, #12] 80020b4: 3304 adds r3, #4 80020b6: 623b str r3, [r7, #32] break; 80020b8: e024 b.n 8002104 config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_PP; 80020ba: 683b ldr r3, [r7, #0] 80020bc: 68db ldr r3, [r3, #12] 80020be: 3308 adds r3, #8 80020c0: 623b str r3, [r7, #32] break; 80020c2: e01f b.n 8002104 config = GPIO_Init->Speed + GPIO_CR_CNF_AF_OUTPUT_OD; 80020c4: 683b ldr r3, [r7, #0] 80020c6: 68db ldr r3, [r3, #12] 80020c8: 330c adds r3, #12 80020ca: 623b str r3, [r7, #32] break; 80020cc: e01a b.n 8002104 if (GPIO_Init->Pull == GPIO_NOPULL) 80020ce: 683b ldr r3, [r7, #0] 80020d0: 689b ldr r3, [r3, #8] 80020d2: 2b00 cmp r3, #0 80020d4: d102 bne.n 80020dc config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_FLOATING; 80020d6: 2304 movs r3, #4 80020d8: 623b str r3, [r7, #32] break; 80020da: e013 b.n 8002104 else if (GPIO_Init->Pull == GPIO_PULLUP) 80020dc: 683b ldr r3, [r7, #0] 80020de: 689b ldr r3, [r3, #8] 80020e0: 2b01 cmp r3, #1 80020e2: d105 bne.n 80020f0 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; 80020e4: 2308 movs r3, #8 80020e6: 623b str r3, [r7, #32] GPIOx->BSRR = ioposition; 80020e8: 687b ldr r3, [r7, #4] 80020ea: 69fa ldr r2, [r7, #28] 80020ec: 611a str r2, [r3, #16] break; 80020ee: e009 b.n 8002104 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_INPUT_PU_PD; 80020f0: 2308 movs r3, #8 80020f2: 623b str r3, [r7, #32] GPIOx->BRR = ioposition; 80020f4: 687b ldr r3, [r7, #4] 80020f6: 69fa ldr r2, [r7, #28] 80020f8: 615a str r2, [r3, #20] break; 80020fa: e003 b.n 8002104 config = GPIO_CR_MODE_INPUT + GPIO_CR_CNF_ANALOG; 80020fc: 2300 movs r3, #0 80020fe: 623b str r3, [r7, #32] break; 8002100: e000 b.n 8002104 break; 8002102: bf00 nop } /* Check if the current bit belongs to first half or last half of the pin count number in order to address CRH or CRL register*/ configregister = (iocurrent < GPIO_PIN_8) ? &GPIOx->CRL : &GPIOx->CRH; 8002104: 69bb ldr r3, [r7, #24] 8002106: 2bff cmp r3, #255 ; 0xff 8002108: d801 bhi.n 800210e 800210a: 687b ldr r3, [r7, #4] 800210c: e001 b.n 8002112 800210e: 687b ldr r3, [r7, #4] 8002110: 3304 adds r3, #4 8002112: 617b str r3, [r7, #20] registeroffset = (iocurrent < GPIO_PIN_8) ? (position << 2u) : ((position - 8u) << 2u); 8002114: 69bb ldr r3, [r7, #24] 8002116: 2bff cmp r3, #255 ; 0xff 8002118: d802 bhi.n 8002120 800211a: 6a7b ldr r3, [r7, #36] ; 0x24 800211c: 009b lsls r3, r3, #2 800211e: e002 b.n 8002126 8002120: 6a7b ldr r3, [r7, #36] ; 0x24 8002122: 3b08 subs r3, #8 8002124: 009b lsls r3, r3, #2 8002126: 613b str r3, [r7, #16] /* Apply the new configuration of the pin to the register */ MODIFY_REG((*configregister), ((GPIO_CRL_MODE0 | GPIO_CRL_CNF0) << registeroffset), (config << registeroffset)); 8002128: 697b ldr r3, [r7, #20] 800212a: 681a ldr r2, [r3, #0] 800212c: 210f movs r1, #15 800212e: 693b ldr r3, [r7, #16] 8002130: fa01 f303 lsl.w r3, r1, r3 8002134: 43db mvns r3, r3 8002136: 401a ands r2, r3 8002138: 6a39 ldr r1, [r7, #32] 800213a: 693b ldr r3, [r7, #16] 800213c: fa01 f303 lsl.w r3, r1, r3 8002140: 431a orrs r2, r3 8002142: 697b ldr r3, [r7, #20] 8002144: 601a str r2, [r3, #0] /*--------------------- EXTI Mode Configuration ------------------------*/ /* Configure the External Interrupt or event for the current IO */ if ((GPIO_Init->Mode & EXTI_MODE) == EXTI_MODE) 8002146: 683b ldr r3, [r7, #0] 8002148: 685b ldr r3, [r3, #4] 800214a: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 800214e: 2b00 cmp r3, #0 8002150: f000 80c1 beq.w 80022d6 { /* Enable AFIO Clock */ __HAL_RCC_AFIO_CLK_ENABLE(); 8002154: 4b49 ldr r3, [pc, #292] ; (800227c ) 8002156: 699b ldr r3, [r3, #24] 8002158: 4a48 ldr r2, [pc, #288] ; (800227c ) 800215a: f043 0301 orr.w r3, r3, #1 800215e: 6193 str r3, [r2, #24] 8002160: 4b46 ldr r3, [pc, #280] ; (800227c ) 8002162: 699b ldr r3, [r3, #24] 8002164: f003 0301 and.w r3, r3, #1 8002168: 60bb str r3, [r7, #8] 800216a: 68bb ldr r3, [r7, #8] temp = AFIO->EXTICR[position >> 2u]; 800216c: 4a44 ldr r2, [pc, #272] ; (8002280 ) 800216e: 6a7b ldr r3, [r7, #36] ; 0x24 8002170: 089b lsrs r3, r3, #2 8002172: 3302 adds r3, #2 8002174: f852 3023 ldr.w r3, [r2, r3, lsl #2] 8002178: 60fb str r3, [r7, #12] CLEAR_BIT(temp, (0x0Fu) << (4u * (position & 0x03u))); 800217a: 6a7b ldr r3, [r7, #36] ; 0x24 800217c: f003 0303 and.w r3, r3, #3 8002180: 009b lsls r3, r3, #2 8002182: 220f movs r2, #15 8002184: fa02 f303 lsl.w r3, r2, r3 8002188: 43db mvns r3, r3 800218a: 68fa ldr r2, [r7, #12] 800218c: 4013 ands r3, r2 800218e: 60fb str r3, [r7, #12] SET_BIT(temp, (GPIO_GET_INDEX(GPIOx)) << (4u * (position & 0x03u))); 8002190: 687b ldr r3, [r7, #4] 8002192: 4a3c ldr r2, [pc, #240] ; (8002284 ) 8002194: 4293 cmp r3, r2 8002196: d01f beq.n 80021d8 8002198: 687b ldr r3, [r7, #4] 800219a: 4a3b ldr r2, [pc, #236] ; (8002288 ) 800219c: 4293 cmp r3, r2 800219e: d019 beq.n 80021d4 80021a0: 687b ldr r3, [r7, #4] 80021a2: 4a3a ldr r2, [pc, #232] ; (800228c ) 80021a4: 4293 cmp r3, r2 80021a6: d013 beq.n 80021d0 80021a8: 687b ldr r3, [r7, #4] 80021aa: 4a39 ldr r2, [pc, #228] ; (8002290 ) 80021ac: 4293 cmp r3, r2 80021ae: d00d beq.n 80021cc 80021b0: 687b ldr r3, [r7, #4] 80021b2: 4a38 ldr r2, [pc, #224] ; (8002294 ) 80021b4: 4293 cmp r3, r2 80021b6: d007 beq.n 80021c8 80021b8: 687b ldr r3, [r7, #4] 80021ba: 4a37 ldr r2, [pc, #220] ; (8002298 ) 80021bc: 4293 cmp r3, r2 80021be: d101 bne.n 80021c4 80021c0: 2305 movs r3, #5 80021c2: e00a b.n 80021da 80021c4: 2306 movs r3, #6 80021c6: e008 b.n 80021da 80021c8: 2304 movs r3, #4 80021ca: e006 b.n 80021da 80021cc: 2303 movs r3, #3 80021ce: e004 b.n 80021da 80021d0: 2302 movs r3, #2 80021d2: e002 b.n 80021da 80021d4: 2301 movs r3, #1 80021d6: e000 b.n 80021da 80021d8: 2300 movs r3, #0 80021da: 6a7a ldr r2, [r7, #36] ; 0x24 80021dc: f002 0203 and.w r2, r2, #3 80021e0: 0092 lsls r2, r2, #2 80021e2: 4093 lsls r3, r2 80021e4: 68fa ldr r2, [r7, #12] 80021e6: 4313 orrs r3, r2 80021e8: 60fb str r3, [r7, #12] AFIO->EXTICR[position >> 2u] = temp; 80021ea: 4925 ldr r1, [pc, #148] ; (8002280 ) 80021ec: 6a7b ldr r3, [r7, #36] ; 0x24 80021ee: 089b lsrs r3, r3, #2 80021f0: 3302 adds r3, #2 80021f2: 68fa ldr r2, [r7, #12] 80021f4: f841 2023 str.w r2, [r1, r3, lsl #2] /* Configure the interrupt mask */ if ((GPIO_Init->Mode & GPIO_MODE_IT) == GPIO_MODE_IT) 80021f8: 683b ldr r3, [r7, #0] 80021fa: 685b ldr r3, [r3, #4] 80021fc: f403 3380 and.w r3, r3, #65536 ; 0x10000 8002200: 2b00 cmp r3, #0 8002202: d006 beq.n 8002212 { SET_BIT(EXTI->IMR, iocurrent); 8002204: 4b25 ldr r3, [pc, #148] ; (800229c ) 8002206: 681a ldr r2, [r3, #0] 8002208: 4924 ldr r1, [pc, #144] ; (800229c ) 800220a: 69bb ldr r3, [r7, #24] 800220c: 4313 orrs r3, r2 800220e: 600b str r3, [r1, #0] 8002210: e006 b.n 8002220 } else { CLEAR_BIT(EXTI->IMR, iocurrent); 8002212: 4b22 ldr r3, [pc, #136] ; (800229c ) 8002214: 681a ldr r2, [r3, #0] 8002216: 69bb ldr r3, [r7, #24] 8002218: 43db mvns r3, r3 800221a: 4920 ldr r1, [pc, #128] ; (800229c ) 800221c: 4013 ands r3, r2 800221e: 600b str r3, [r1, #0] } /* Configure the event mask */ if ((GPIO_Init->Mode & GPIO_MODE_EVT) == GPIO_MODE_EVT) 8002220: 683b ldr r3, [r7, #0] 8002222: 685b ldr r3, [r3, #4] 8002224: f403 3300 and.w r3, r3, #131072 ; 0x20000 8002228: 2b00 cmp r3, #0 800222a: d006 beq.n 800223a { SET_BIT(EXTI->EMR, iocurrent); 800222c: 4b1b ldr r3, [pc, #108] ; (800229c ) 800222e: 685a ldr r2, [r3, #4] 8002230: 491a ldr r1, [pc, #104] ; (800229c ) 8002232: 69bb ldr r3, [r7, #24] 8002234: 4313 orrs r3, r2 8002236: 604b str r3, [r1, #4] 8002238: e006 b.n 8002248 } else { CLEAR_BIT(EXTI->EMR, iocurrent); 800223a: 4b18 ldr r3, [pc, #96] ; (800229c ) 800223c: 685a ldr r2, [r3, #4] 800223e: 69bb ldr r3, [r7, #24] 8002240: 43db mvns r3, r3 8002242: 4916 ldr r1, [pc, #88] ; (800229c ) 8002244: 4013 ands r3, r2 8002246: 604b str r3, [r1, #4] } /* Enable or disable the rising trigger */ if ((GPIO_Init->Mode & RISING_EDGE) == RISING_EDGE) 8002248: 683b ldr r3, [r7, #0] 800224a: 685b ldr r3, [r3, #4] 800224c: f403 1380 and.w r3, r3, #1048576 ; 0x100000 8002250: 2b00 cmp r3, #0 8002252: d025 beq.n 80022a0 { SET_BIT(EXTI->RTSR, iocurrent); 8002254: 4b11 ldr r3, [pc, #68] ; (800229c ) 8002256: 689a ldr r2, [r3, #8] 8002258: 4910 ldr r1, [pc, #64] ; (800229c ) 800225a: 69bb ldr r3, [r7, #24] 800225c: 4313 orrs r3, r2 800225e: 608b str r3, [r1, #8] 8002260: e025 b.n 80022ae 8002262: bf00 nop 8002264: 10320000 .word 0x10320000 8002268: 10310000 .word 0x10310000 800226c: 10220000 .word 0x10220000 8002270: 10210000 .word 0x10210000 8002274: 10120000 .word 0x10120000 8002278: 10110000 .word 0x10110000 800227c: 40021000 .word 0x40021000 8002280: 40010000 .word 0x40010000 8002284: 40010800 .word 0x40010800 8002288: 40010c00 .word 0x40010c00 800228c: 40011000 .word 0x40011000 8002290: 40011400 .word 0x40011400 8002294: 40011800 .word 0x40011800 8002298: 40011c00 .word 0x40011c00 800229c: 40010400 .word 0x40010400 } else { CLEAR_BIT(EXTI->RTSR, iocurrent); 80022a0: 4b15 ldr r3, [pc, #84] ; (80022f8 ) 80022a2: 689a ldr r2, [r3, #8] 80022a4: 69bb ldr r3, [r7, #24] 80022a6: 43db mvns r3, r3 80022a8: 4913 ldr r1, [pc, #76] ; (80022f8 ) 80022aa: 4013 ands r3, r2 80022ac: 608b str r3, [r1, #8] } /* Enable or disable the falling trigger */ if ((GPIO_Init->Mode & FALLING_EDGE) == FALLING_EDGE) 80022ae: 683b ldr r3, [r7, #0] 80022b0: 685b ldr r3, [r3, #4] 80022b2: f403 1300 and.w r3, r3, #2097152 ; 0x200000 80022b6: 2b00 cmp r3, #0 80022b8: d006 beq.n 80022c8 { SET_BIT(EXTI->FTSR, iocurrent); 80022ba: 4b0f ldr r3, [pc, #60] ; (80022f8 ) 80022bc: 68da ldr r2, [r3, #12] 80022be: 490e ldr r1, [pc, #56] ; (80022f8 ) 80022c0: 69bb ldr r3, [r7, #24] 80022c2: 4313 orrs r3, r2 80022c4: 60cb str r3, [r1, #12] 80022c6: e006 b.n 80022d6 } else { CLEAR_BIT(EXTI->FTSR, iocurrent); 80022c8: 4b0b ldr r3, [pc, #44] ; (80022f8 ) 80022ca: 68da ldr r2, [r3, #12] 80022cc: 69bb ldr r3, [r7, #24] 80022ce: 43db mvns r3, r3 80022d0: 4909 ldr r1, [pc, #36] ; (80022f8 ) 80022d2: 4013 ands r3, r2 80022d4: 60cb str r3, [r1, #12] } } } position++; 80022d6: 6a7b ldr r3, [r7, #36] ; 0x24 80022d8: 3301 adds r3, #1 80022da: 627b str r3, [r7, #36] ; 0x24 while (((GPIO_Init->Pin) >> position) != 0x00u) 80022dc: 683b ldr r3, [r7, #0] 80022de: 681a ldr r2, [r3, #0] 80022e0: 6a7b ldr r3, [r7, #36] ; 0x24 80022e2: fa22 f303 lsr.w r3, r2, r3 80022e6: 2b00 cmp r3, #0 80022e8: f47f ae7e bne.w 8001fe8 } } 80022ec: bf00 nop 80022ee: bf00 nop 80022f0: 372c adds r7, #44 ; 0x2c 80022f2: 46bd mov sp, r7 80022f4: bc80 pop {r7} 80022f6: 4770 bx lr 80022f8: 40010400 .word 0x40010400 080022fc : * @param GPIO_Pin: specifies the port bit to read. * This parameter can be GPIO_PIN_x where x can be (0..15). * @retval The input port pin value. */ GPIO_PinState HAL_GPIO_ReadPin(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin) { 80022fc: b480 push {r7} 80022fe: b085 sub sp, #20 8002300: af00 add r7, sp, #0 8002302: 6078 str r0, [r7, #4] 8002304: 460b mov r3, r1 8002306: 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) 8002308: 687b ldr r3, [r7, #4] 800230a: 689a ldr r2, [r3, #8] 800230c: 887b ldrh r3, [r7, #2] 800230e: 4013 ands r3, r2 8002310: 2b00 cmp r3, #0 8002312: d002 beq.n 800231a { bitstatus = GPIO_PIN_SET; 8002314: 2301 movs r3, #1 8002316: 73fb strb r3, [r7, #15] 8002318: e001 b.n 800231e } else { bitstatus = GPIO_PIN_RESET; 800231a: 2300 movs r3, #0 800231c: 73fb strb r3, [r7, #15] } return bitstatus; 800231e: 7bfb ldrb r3, [r7, #15] } 8002320: 4618 mov r0, r3 8002322: 3714 adds r7, #20 8002324: 46bd mov sp, r7 8002326: bc80 pop {r7} 8002328: 4770 bx lr 0800232a : * @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) { 800232a: b480 push {r7} 800232c: b083 sub sp, #12 800232e: af00 add r7, sp, #0 8002330: 6078 str r0, [r7, #4] 8002332: 460b mov r3, r1 8002334: 807b strh r3, [r7, #2] 8002336: 4613 mov r3, r2 8002338: 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) 800233a: 787b ldrb r3, [r7, #1] 800233c: 2b00 cmp r3, #0 800233e: d003 beq.n 8002348 { GPIOx->BSRR = GPIO_Pin; 8002340: 887a ldrh r2, [r7, #2] 8002342: 687b ldr r3, [r7, #4] 8002344: 611a str r2, [r3, #16] } else { GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; } } 8002346: e003 b.n 8002350 GPIOx->BSRR = (uint32_t)GPIO_Pin << 16u; 8002348: 887b ldrh r3, [r7, #2] 800234a: 041a lsls r2, r3, #16 800234c: 687b ldr r3, [r7, #4] 800234e: 611a str r2, [r3, #16] } 8002350: bf00 nop 8002352: 370c adds r7, #12 8002354: 46bd mov sp, r7 8002356: bc80 pop {r7} 8002358: 4770 bx lr ... 0800235c : * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c) { 800235c: b580 push {r7, lr} 800235e: b084 sub sp, #16 8002360: af00 add r7, sp, #0 8002362: 6078 str r0, [r7, #4] uint32_t freqrange; uint32_t pclk1; /* Check the I2C handle allocation */ if (hi2c == NULL) 8002364: 687b ldr r3, [r7, #4] 8002366: 2b00 cmp r3, #0 8002368: d101 bne.n 800236e { return HAL_ERROR; 800236a: 2301 movs r3, #1 800236c: e12b b.n 80025c6 assert_param(IS_I2C_DUAL_ADDRESS(hi2c->Init.DualAddressMode)); assert_param(IS_I2C_OWN_ADDRESS2(hi2c->Init.OwnAddress2)); assert_param(IS_I2C_GENERAL_CALL(hi2c->Init.GeneralCallMode)); assert_param(IS_I2C_NO_STRETCH(hi2c->Init.NoStretchMode)); if (hi2c->State == HAL_I2C_STATE_RESET) 800236e: 687b ldr r3, [r7, #4] 8002370: f893 303d ldrb.w r3, [r3, #61] ; 0x3d 8002374: b2db uxtb r3, r3 8002376: 2b00 cmp r3, #0 8002378: d106 bne.n 8002388 { /* Allocate lock resource and initialize it */ hi2c->Lock = HAL_UNLOCKED; 800237a: 687b ldr r3, [r7, #4] 800237c: 2200 movs r2, #0 800237e: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Init the low level hardware : GPIO, CLOCK, NVIC */ hi2c->MspInitCallback(hi2c); #else /* Init the low level hardware : GPIO, CLOCK, NVIC */ HAL_I2C_MspInit(hi2c); 8002382: 6878 ldr r0, [r7, #4] 8002384: f7ff fa28 bl 80017d8 #endif /* USE_HAL_I2C_REGISTER_CALLBACKS */ } hi2c->State = HAL_I2C_STATE_BUSY; 8002388: 687b ldr r3, [r7, #4] 800238a: 2224 movs r2, #36 ; 0x24 800238c: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Disable the selected I2C peripheral */ __HAL_I2C_DISABLE(hi2c); 8002390: 687b ldr r3, [r7, #4] 8002392: 681b ldr r3, [r3, #0] 8002394: 681a ldr r2, [r3, #0] 8002396: 687b ldr r3, [r7, #4] 8002398: 681b ldr r3, [r3, #0] 800239a: f022 0201 bic.w r2, r2, #1 800239e: 601a str r2, [r3, #0] /*Reset I2C*/ hi2c->Instance->CR1 |= I2C_CR1_SWRST; 80023a0: 687b ldr r3, [r7, #4] 80023a2: 681b ldr r3, [r3, #0] 80023a4: 681a ldr r2, [r3, #0] 80023a6: 687b ldr r3, [r7, #4] 80023a8: 681b ldr r3, [r3, #0] 80023aa: f442 4200 orr.w r2, r2, #32768 ; 0x8000 80023ae: 601a str r2, [r3, #0] hi2c->Instance->CR1 &= ~I2C_CR1_SWRST; 80023b0: 687b ldr r3, [r7, #4] 80023b2: 681b ldr r3, [r3, #0] 80023b4: 681a ldr r2, [r3, #0] 80023b6: 687b ldr r3, [r7, #4] 80023b8: 681b ldr r3, [r3, #0] 80023ba: f422 4200 bic.w r2, r2, #32768 ; 0x8000 80023be: 601a str r2, [r3, #0] /* Get PCLK1 frequency */ pclk1 = HAL_RCC_GetPCLK1Freq(); 80023c0: f001 fba0 bl 8003b04 80023c4: 60f8 str r0, [r7, #12] /* Check the minimum allowed PCLK1 frequency */ if (I2C_MIN_PCLK_FREQ(pclk1, hi2c->Init.ClockSpeed) == 1U) 80023c6: 687b ldr r3, [r7, #4] 80023c8: 685b ldr r3, [r3, #4] 80023ca: 4a81 ldr r2, [pc, #516] ; (80025d0 ) 80023cc: 4293 cmp r3, r2 80023ce: d807 bhi.n 80023e0 80023d0: 68fb ldr r3, [r7, #12] 80023d2: 4a80 ldr r2, [pc, #512] ; (80025d4 ) 80023d4: 4293 cmp r3, r2 80023d6: bf94 ite ls 80023d8: 2301 movls r3, #1 80023da: 2300 movhi r3, #0 80023dc: b2db uxtb r3, r3 80023de: e006 b.n 80023ee 80023e0: 68fb ldr r3, [r7, #12] 80023e2: 4a7d ldr r2, [pc, #500] ; (80025d8 ) 80023e4: 4293 cmp r3, r2 80023e6: bf94 ite ls 80023e8: 2301 movls r3, #1 80023ea: 2300 movhi r3, #0 80023ec: b2db uxtb r3, r3 80023ee: 2b00 cmp r3, #0 80023f0: d001 beq.n 80023f6 { return HAL_ERROR; 80023f2: 2301 movs r3, #1 80023f4: e0e7 b.n 80025c6 } /* Calculate frequency range */ freqrange = I2C_FREQRANGE(pclk1); 80023f6: 68fb ldr r3, [r7, #12] 80023f8: 4a78 ldr r2, [pc, #480] ; (80025dc ) 80023fa: fba2 2303 umull r2, r3, r2, r3 80023fe: 0c9b lsrs r3, r3, #18 8002400: 60bb str r3, [r7, #8] /*---------------------------- I2Cx CR2 Configuration ----------------------*/ /* Configure I2Cx: Frequency range */ MODIFY_REG(hi2c->Instance->CR2, I2C_CR2_FREQ, freqrange); 8002402: 687b ldr r3, [r7, #4] 8002404: 681b ldr r3, [r3, #0] 8002406: 685b ldr r3, [r3, #4] 8002408: f023 013f bic.w r1, r3, #63 ; 0x3f 800240c: 687b ldr r3, [r7, #4] 800240e: 681b ldr r3, [r3, #0] 8002410: 68ba ldr r2, [r7, #8] 8002412: 430a orrs r2, r1 8002414: 605a str r2, [r3, #4] /*---------------------------- I2Cx TRISE Configuration --------------------*/ /* Configure I2Cx: Rise Time */ MODIFY_REG(hi2c->Instance->TRISE, I2C_TRISE_TRISE, I2C_RISE_TIME(freqrange, hi2c->Init.ClockSpeed)); 8002416: 687b ldr r3, [r7, #4] 8002418: 681b ldr r3, [r3, #0] 800241a: 6a1b ldr r3, [r3, #32] 800241c: f023 013f bic.w r1, r3, #63 ; 0x3f 8002420: 687b ldr r3, [r7, #4] 8002422: 685b ldr r3, [r3, #4] 8002424: 4a6a ldr r2, [pc, #424] ; (80025d0 ) 8002426: 4293 cmp r3, r2 8002428: d802 bhi.n 8002430 800242a: 68bb ldr r3, [r7, #8] 800242c: 3301 adds r3, #1 800242e: e009 b.n 8002444 8002430: 68bb ldr r3, [r7, #8] 8002432: f44f 7296 mov.w r2, #300 ; 0x12c 8002436: fb02 f303 mul.w r3, r2, r3 800243a: 4a69 ldr r2, [pc, #420] ; (80025e0 ) 800243c: fba2 2303 umull r2, r3, r2, r3 8002440: 099b lsrs r3, r3, #6 8002442: 3301 adds r3, #1 8002444: 687a ldr r2, [r7, #4] 8002446: 6812 ldr r2, [r2, #0] 8002448: 430b orrs r3, r1 800244a: 6213 str r3, [r2, #32] /*---------------------------- I2Cx CCR Configuration ----------------------*/ /* Configure I2Cx: Speed */ MODIFY_REG(hi2c->Instance->CCR, (I2C_CCR_FS | I2C_CCR_DUTY | I2C_CCR_CCR), I2C_SPEED(pclk1, hi2c->Init.ClockSpeed, hi2c->Init.DutyCycle)); 800244c: 687b ldr r3, [r7, #4] 800244e: 681b ldr r3, [r3, #0] 8002450: 69db ldr r3, [r3, #28] 8002452: f423 424f bic.w r2, r3, #52992 ; 0xcf00 8002456: f022 02ff bic.w r2, r2, #255 ; 0xff 800245a: 687b ldr r3, [r7, #4] 800245c: 685b ldr r3, [r3, #4] 800245e: 495c ldr r1, [pc, #368] ; (80025d0 ) 8002460: 428b cmp r3, r1 8002462: d819 bhi.n 8002498 8002464: 68fb ldr r3, [r7, #12] 8002466: 1e59 subs r1, r3, #1 8002468: 687b ldr r3, [r7, #4] 800246a: 685b ldr r3, [r3, #4] 800246c: 005b lsls r3, r3, #1 800246e: fbb1 f3f3 udiv r3, r1, r3 8002472: 1c59 adds r1, r3, #1 8002474: f640 73fc movw r3, #4092 ; 0xffc 8002478: 400b ands r3, r1 800247a: 2b00 cmp r3, #0 800247c: d00a beq.n 8002494 800247e: 68fb ldr r3, [r7, #12] 8002480: 1e59 subs r1, r3, #1 8002482: 687b ldr r3, [r7, #4] 8002484: 685b ldr r3, [r3, #4] 8002486: 005b lsls r3, r3, #1 8002488: fbb1 f3f3 udiv r3, r1, r3 800248c: 3301 adds r3, #1 800248e: f3c3 030b ubfx r3, r3, #0, #12 8002492: e051 b.n 8002538 8002494: 2304 movs r3, #4 8002496: e04f b.n 8002538 8002498: 687b ldr r3, [r7, #4] 800249a: 689b ldr r3, [r3, #8] 800249c: 2b00 cmp r3, #0 800249e: d111 bne.n 80024c4 80024a0: 68fb ldr r3, [r7, #12] 80024a2: 1e58 subs r0, r3, #1 80024a4: 687b ldr r3, [r7, #4] 80024a6: 6859 ldr r1, [r3, #4] 80024a8: 460b mov r3, r1 80024aa: 005b lsls r3, r3, #1 80024ac: 440b add r3, r1 80024ae: fbb0 f3f3 udiv r3, r0, r3 80024b2: 3301 adds r3, #1 80024b4: f3c3 030b ubfx r3, r3, #0, #12 80024b8: 2b00 cmp r3, #0 80024ba: bf0c ite eq 80024bc: 2301 moveq r3, #1 80024be: 2300 movne r3, #0 80024c0: b2db uxtb r3, r3 80024c2: e012 b.n 80024ea 80024c4: 68fb ldr r3, [r7, #12] 80024c6: 1e58 subs r0, r3, #1 80024c8: 687b ldr r3, [r7, #4] 80024ca: 6859 ldr r1, [r3, #4] 80024cc: 460b mov r3, r1 80024ce: 009b lsls r3, r3, #2 80024d0: 440b add r3, r1 80024d2: 0099 lsls r1, r3, #2 80024d4: 440b add r3, r1 80024d6: fbb0 f3f3 udiv r3, r0, r3 80024da: 3301 adds r3, #1 80024dc: f3c3 030b ubfx r3, r3, #0, #12 80024e0: 2b00 cmp r3, #0 80024e2: bf0c ite eq 80024e4: 2301 moveq r3, #1 80024e6: 2300 movne r3, #0 80024e8: b2db uxtb r3, r3 80024ea: 2b00 cmp r3, #0 80024ec: d001 beq.n 80024f2 80024ee: 2301 movs r3, #1 80024f0: e022 b.n 8002538 80024f2: 687b ldr r3, [r7, #4] 80024f4: 689b ldr r3, [r3, #8] 80024f6: 2b00 cmp r3, #0 80024f8: d10e bne.n 8002518 80024fa: 68fb ldr r3, [r7, #12] 80024fc: 1e58 subs r0, r3, #1 80024fe: 687b ldr r3, [r7, #4] 8002500: 6859 ldr r1, [r3, #4] 8002502: 460b mov r3, r1 8002504: 005b lsls r3, r3, #1 8002506: 440b add r3, r1 8002508: fbb0 f3f3 udiv r3, r0, r3 800250c: 3301 adds r3, #1 800250e: f3c3 030b ubfx r3, r3, #0, #12 8002512: f443 4300 orr.w r3, r3, #32768 ; 0x8000 8002516: e00f b.n 8002538 8002518: 68fb ldr r3, [r7, #12] 800251a: 1e58 subs r0, r3, #1 800251c: 687b ldr r3, [r7, #4] 800251e: 6859 ldr r1, [r3, #4] 8002520: 460b mov r3, r1 8002522: 009b lsls r3, r3, #2 8002524: 440b add r3, r1 8002526: 0099 lsls r1, r3, #2 8002528: 440b add r3, r1 800252a: fbb0 f3f3 udiv r3, r0, r3 800252e: 3301 adds r3, #1 8002530: f3c3 030b ubfx r3, r3, #0, #12 8002534: f443 4340 orr.w r3, r3, #49152 ; 0xc000 8002538: 6879 ldr r1, [r7, #4] 800253a: 6809 ldr r1, [r1, #0] 800253c: 4313 orrs r3, r2 800253e: 61cb str r3, [r1, #28] /*---------------------------- I2Cx CR1 Configuration ----------------------*/ /* Configure I2Cx: Generalcall and NoStretch mode */ MODIFY_REG(hi2c->Instance->CR1, (I2C_CR1_ENGC | I2C_CR1_NOSTRETCH), (hi2c->Init.GeneralCallMode | hi2c->Init.NoStretchMode)); 8002540: 687b ldr r3, [r7, #4] 8002542: 681b ldr r3, [r3, #0] 8002544: 681b ldr r3, [r3, #0] 8002546: f023 01c0 bic.w r1, r3, #192 ; 0xc0 800254a: 687b ldr r3, [r7, #4] 800254c: 69da ldr r2, [r3, #28] 800254e: 687b ldr r3, [r7, #4] 8002550: 6a1b ldr r3, [r3, #32] 8002552: 431a orrs r2, r3 8002554: 687b ldr r3, [r7, #4] 8002556: 681b ldr r3, [r3, #0] 8002558: 430a orrs r2, r1 800255a: 601a str r2, [r3, #0] /*---------------------------- I2Cx OAR1 Configuration ---------------------*/ /* Configure I2Cx: Own Address1 and addressing mode */ MODIFY_REG(hi2c->Instance->OAR1, (I2C_OAR1_ADDMODE | I2C_OAR1_ADD8_9 | I2C_OAR1_ADD1_7 | I2C_OAR1_ADD0), (hi2c->Init.AddressingMode | hi2c->Init.OwnAddress1)); 800255c: 687b ldr r3, [r7, #4] 800255e: 681b ldr r3, [r3, #0] 8002560: 689b ldr r3, [r3, #8] 8002562: f423 4303 bic.w r3, r3, #33536 ; 0x8300 8002566: f023 03ff bic.w r3, r3, #255 ; 0xff 800256a: 687a ldr r2, [r7, #4] 800256c: 6911 ldr r1, [r2, #16] 800256e: 687a ldr r2, [r7, #4] 8002570: 68d2 ldr r2, [r2, #12] 8002572: 4311 orrs r1, r2 8002574: 687a ldr r2, [r7, #4] 8002576: 6812 ldr r2, [r2, #0] 8002578: 430b orrs r3, r1 800257a: 6093 str r3, [r2, #8] /*---------------------------- I2Cx OAR2 Configuration ---------------------*/ /* Configure I2Cx: Dual mode and Own Address2 */ MODIFY_REG(hi2c->Instance->OAR2, (I2C_OAR2_ENDUAL | I2C_OAR2_ADD2), (hi2c->Init.DualAddressMode | hi2c->Init.OwnAddress2)); 800257c: 687b ldr r3, [r7, #4] 800257e: 681b ldr r3, [r3, #0] 8002580: 68db ldr r3, [r3, #12] 8002582: f023 01ff bic.w r1, r3, #255 ; 0xff 8002586: 687b ldr r3, [r7, #4] 8002588: 695a ldr r2, [r3, #20] 800258a: 687b ldr r3, [r7, #4] 800258c: 699b ldr r3, [r3, #24] 800258e: 431a orrs r2, r3 8002590: 687b ldr r3, [r7, #4] 8002592: 681b ldr r3, [r3, #0] 8002594: 430a orrs r2, r1 8002596: 60da str r2, [r3, #12] /* Enable the selected I2C peripheral */ __HAL_I2C_ENABLE(hi2c); 8002598: 687b ldr r3, [r7, #4] 800259a: 681b ldr r3, [r3, #0] 800259c: 681a ldr r2, [r3, #0] 800259e: 687b ldr r3, [r7, #4] 80025a0: 681b ldr r3, [r3, #0] 80025a2: f042 0201 orr.w r2, r2, #1 80025a6: 601a str r2, [r3, #0] hi2c->ErrorCode = HAL_I2C_ERROR_NONE; 80025a8: 687b ldr r3, [r7, #4] 80025aa: 2200 movs r2, #0 80025ac: 641a str r2, [r3, #64] ; 0x40 hi2c->State = HAL_I2C_STATE_READY; 80025ae: 687b ldr r3, [r7, #4] 80025b0: 2220 movs r2, #32 80025b2: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->PreviousState = I2C_STATE_NONE; 80025b6: 687b ldr r3, [r7, #4] 80025b8: 2200 movs r2, #0 80025ba: 631a str r2, [r3, #48] ; 0x30 hi2c->Mode = HAL_I2C_MODE_NONE; 80025bc: 687b ldr r3, [r7, #4] 80025be: 2200 movs r2, #0 80025c0: f883 203e strb.w r2, [r3, #62] ; 0x3e return HAL_OK; 80025c4: 2300 movs r3, #0 } 80025c6: 4618 mov r0, r3 80025c8: 3710 adds r7, #16 80025ca: 46bd mov sp, r7 80025cc: bd80 pop {r7, pc} 80025ce: bf00 nop 80025d0: 000186a0 .word 0x000186a0 80025d4: 001e847f .word 0x001e847f 80025d8: 003d08ff .word 0x003d08ff 80025dc: 431bde83 .word 0x431bde83 80025e0: 10624dd3 .word 0x10624dd3 080025e4 : * @param Size Amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Write(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) { 80025e4: b580 push {r7, lr} 80025e6: b088 sub sp, #32 80025e8: af02 add r7, sp, #8 80025ea: 60f8 str r0, [r7, #12] 80025ec: 4608 mov r0, r1 80025ee: 4611 mov r1, r2 80025f0: 461a mov r2, r3 80025f2: 4603 mov r3, r0 80025f4: 817b strh r3, [r7, #10] 80025f6: 460b mov r3, r1 80025f8: 813b strh r3, [r7, #8] 80025fa: 4613 mov r3, r2 80025fc: 80fb strh r3, [r7, #6] /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); 80025fe: f7ff fbad bl 8001d5c 8002602: 6178 str r0, [r7, #20] /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) 8002604: 68fb ldr r3, [r7, #12] 8002606: f893 303d ldrb.w r3, [r3, #61] ; 0x3d 800260a: b2db uxtb r3, r3 800260c: 2b20 cmp r3, #32 800260e: f040 80d9 bne.w 80027c4 { /* Wait until BUSY flag is reset */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) 8002612: 697b ldr r3, [r7, #20] 8002614: 9300 str r3, [sp, #0] 8002616: 2319 movs r3, #25 8002618: 2201 movs r2, #1 800261a: 496d ldr r1, [pc, #436] ; (80027d0 ) 800261c: 68f8 ldr r0, [r7, #12] 800261e: f000 fcc1 bl 8002fa4 8002622: 4603 mov r3, r0 8002624: 2b00 cmp r3, #0 8002626: d001 beq.n 800262c { return HAL_BUSY; 8002628: 2302 movs r3, #2 800262a: e0cc b.n 80027c6 } /* Process Locked */ __HAL_LOCK(hi2c); 800262c: 68fb ldr r3, [r7, #12] 800262e: f893 303c ldrb.w r3, [r3, #60] ; 0x3c 8002632: 2b01 cmp r3, #1 8002634: d101 bne.n 800263a 8002636: 2302 movs r3, #2 8002638: e0c5 b.n 80027c6 800263a: 68fb ldr r3, [r7, #12] 800263c: 2201 movs r2, #1 800263e: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) 8002642: 68fb ldr r3, [r7, #12] 8002644: 681b ldr r3, [r3, #0] 8002646: 681b ldr r3, [r3, #0] 8002648: f003 0301 and.w r3, r3, #1 800264c: 2b01 cmp r3, #1 800264e: d007 beq.n 8002660 { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); 8002650: 68fb ldr r3, [r7, #12] 8002652: 681b ldr r3, [r3, #0] 8002654: 681a ldr r2, [r3, #0] 8002656: 68fb ldr r3, [r7, #12] 8002658: 681b ldr r3, [r3, #0] 800265a: f042 0201 orr.w r2, r2, #1 800265e: 601a str r2, [r3, #0] } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); 8002660: 68fb ldr r3, [r7, #12] 8002662: 681b ldr r3, [r3, #0] 8002664: 681a ldr r2, [r3, #0] 8002666: 68fb ldr r3, [r7, #12] 8002668: 681b ldr r3, [r3, #0] 800266a: f422 6200 bic.w r2, r2, #2048 ; 0x800 800266e: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_BUSY_TX; 8002670: 68fb ldr r3, [r7, #12] 8002672: 2221 movs r2, #33 ; 0x21 8002674: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_MEM; 8002678: 68fb ldr r3, [r7, #12] 800267a: 2240 movs r2, #64 ; 0x40 800267c: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode = HAL_I2C_ERROR_NONE; 8002680: 68fb ldr r3, [r7, #12] 8002682: 2200 movs r2, #0 8002684: 641a str r2, [r3, #64] ; 0x40 /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; 8002686: 68fb ldr r3, [r7, #12] 8002688: 6a3a ldr r2, [r7, #32] 800268a: 625a str r2, [r3, #36] ; 0x24 hi2c->XferCount = Size; 800268c: 68fb ldr r3, [r7, #12] 800268e: 8cba ldrh r2, [r7, #36] ; 0x24 8002690: 855a strh r2, [r3, #42] ; 0x2a hi2c->XferSize = hi2c->XferCount; 8002692: 68fb ldr r3, [r7, #12] 8002694: 8d5b ldrh r3, [r3, #42] ; 0x2a 8002696: b29a uxth r2, r3 8002698: 68fb ldr r3, [r7, #12] 800269a: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferOptions = I2C_NO_OPTION_FRAME; 800269c: 68fb ldr r3, [r7, #12] 800269e: 4a4d ldr r2, [pc, #308] ; (80027d4 ) 80026a0: 62da str r2, [r3, #44] ; 0x2c /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryWrite(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) 80026a2: 88f8 ldrh r0, [r7, #6] 80026a4: 893a ldrh r2, [r7, #8] 80026a6: 8979 ldrh r1, [r7, #10] 80026a8: 697b ldr r3, [r7, #20] 80026aa: 9301 str r3, [sp, #4] 80026ac: 6abb ldr r3, [r7, #40] ; 0x28 80026ae: 9300 str r3, [sp, #0] 80026b0: 4603 mov r3, r0 80026b2: 68f8 ldr r0, [r7, #12] 80026b4: f000 faf8 bl 8002ca8 80026b8: 4603 mov r3, r0 80026ba: 2b00 cmp r3, #0 80026bc: d052 beq.n 8002764 { return HAL_ERROR; 80026be: 2301 movs r3, #1 80026c0: e081 b.n 80027c6 } while (hi2c->XferSize > 0U) { /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) 80026c2: 697a ldr r2, [r7, #20] 80026c4: 6ab9 ldr r1, [r7, #40] ; 0x28 80026c6: 68f8 ldr r0, [r7, #12] 80026c8: f000 fd42 bl 8003150 80026cc: 4603 mov r3, r0 80026ce: 2b00 cmp r3, #0 80026d0: d00d beq.n 80026ee { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) 80026d2: 68fb ldr r3, [r7, #12] 80026d4: 6c1b ldr r3, [r3, #64] ; 0x40 80026d6: 2b04 cmp r3, #4 80026d8: d107 bne.n 80026ea { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); 80026da: 68fb ldr r3, [r7, #12] 80026dc: 681b ldr r3, [r3, #0] 80026de: 681a ldr r2, [r3, #0] 80026e0: 68fb ldr r3, [r7, #12] 80026e2: 681b ldr r3, [r3, #0] 80026e4: f442 7200 orr.w r2, r2, #512 ; 0x200 80026e8: 601a str r2, [r3, #0] } return HAL_ERROR; 80026ea: 2301 movs r3, #1 80026ec: e06b b.n 80027c6 } /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; 80026ee: 68fb ldr r3, [r7, #12] 80026f0: 6a5b ldr r3, [r3, #36] ; 0x24 80026f2: 781a ldrb r2, [r3, #0] 80026f4: 68fb ldr r3, [r7, #12] 80026f6: 681b ldr r3, [r3, #0] 80026f8: 611a str r2, [r3, #16] /* Increment Buffer pointer */ hi2c->pBuffPtr++; 80026fa: 68fb ldr r3, [r7, #12] 80026fc: 6a5b ldr r3, [r3, #36] ; 0x24 80026fe: 1c5a adds r2, r3, #1 8002700: 68fb ldr r3, [r7, #12] 8002702: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; 8002704: 68fb ldr r3, [r7, #12] 8002706: 8d1b ldrh r3, [r3, #40] ; 0x28 8002708: 3b01 subs r3, #1 800270a: b29a uxth r2, r3 800270c: 68fb ldr r3, [r7, #12] 800270e: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; 8002710: 68fb ldr r3, [r7, #12] 8002712: 8d5b ldrh r3, [r3, #42] ; 0x2a 8002714: b29b uxth r3, r3 8002716: 3b01 subs r3, #1 8002718: b29a uxth r2, r3 800271a: 68fb ldr r3, [r7, #12] 800271c: 855a strh r2, [r3, #42] ; 0x2a if ((__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) && (hi2c->XferSize != 0U)) 800271e: 68fb ldr r3, [r7, #12] 8002720: 681b ldr r3, [r3, #0] 8002722: 695b ldr r3, [r3, #20] 8002724: f003 0304 and.w r3, r3, #4 8002728: 2b04 cmp r3, #4 800272a: d11b bne.n 8002764 800272c: 68fb ldr r3, [r7, #12] 800272e: 8d1b ldrh r3, [r3, #40] ; 0x28 8002730: 2b00 cmp r3, #0 8002732: d017 beq.n 8002764 { /* Write data to DR */ hi2c->Instance->DR = *hi2c->pBuffPtr; 8002734: 68fb ldr r3, [r7, #12] 8002736: 6a5b ldr r3, [r3, #36] ; 0x24 8002738: 781a ldrb r2, [r3, #0] 800273a: 68fb ldr r3, [r7, #12] 800273c: 681b ldr r3, [r3, #0] 800273e: 611a str r2, [r3, #16] /* Increment Buffer pointer */ hi2c->pBuffPtr++; 8002740: 68fb ldr r3, [r7, #12] 8002742: 6a5b ldr r3, [r3, #36] ; 0x24 8002744: 1c5a adds r2, r3, #1 8002746: 68fb ldr r3, [r7, #12] 8002748: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; 800274a: 68fb ldr r3, [r7, #12] 800274c: 8d1b ldrh r3, [r3, #40] ; 0x28 800274e: 3b01 subs r3, #1 8002750: b29a uxth r2, r3 8002752: 68fb ldr r3, [r7, #12] 8002754: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; 8002756: 68fb ldr r3, [r7, #12] 8002758: 8d5b ldrh r3, [r3, #42] ; 0x2a 800275a: b29b uxth r3, r3 800275c: 3b01 subs r3, #1 800275e: b29a uxth r2, r3 8002760: 68fb ldr r3, [r7, #12] 8002762: 855a strh r2, [r3, #42] ; 0x2a while (hi2c->XferSize > 0U) 8002764: 68fb ldr r3, [r7, #12] 8002766: 8d1b ldrh r3, [r3, #40] ; 0x28 8002768: 2b00 cmp r3, #0 800276a: d1aa bne.n 80026c2 } } /* Wait until BTF flag is set */ if (I2C_WaitOnBTFFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) 800276c: 697a ldr r2, [r7, #20] 800276e: 6ab9 ldr r1, [r7, #40] ; 0x28 8002770: 68f8 ldr r0, [r7, #12] 8002772: f000 fd2e bl 80031d2 8002776: 4603 mov r3, r0 8002778: 2b00 cmp r3, #0 800277a: d00d beq.n 8002798 { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) 800277c: 68fb ldr r3, [r7, #12] 800277e: 6c1b ldr r3, [r3, #64] ; 0x40 8002780: 2b04 cmp r3, #4 8002782: d107 bne.n 8002794 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); 8002784: 68fb ldr r3, [r7, #12] 8002786: 681b ldr r3, [r3, #0] 8002788: 681a ldr r2, [r3, #0] 800278a: 68fb ldr r3, [r7, #12] 800278c: 681b ldr r3, [r3, #0] 800278e: f442 7200 orr.w r2, r2, #512 ; 0x200 8002792: 601a str r2, [r3, #0] } return HAL_ERROR; 8002794: 2301 movs r3, #1 8002796: e016 b.n 80027c6 } /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); 8002798: 68fb ldr r3, [r7, #12] 800279a: 681b ldr r3, [r3, #0] 800279c: 681a ldr r2, [r3, #0] 800279e: 68fb ldr r3, [r7, #12] 80027a0: 681b ldr r3, [r3, #0] 80027a2: f442 7200 orr.w r2, r2, #512 ; 0x200 80027a6: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_READY; 80027a8: 68fb ldr r3, [r7, #12] 80027aa: 2220 movs r2, #32 80027ac: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; 80027b0: 68fb ldr r3, [r7, #12] 80027b2: 2200 movs r2, #0 80027b4: f883 203e strb.w r2, [r3, #62] ; 0x3e /* Process Unlocked */ __HAL_UNLOCK(hi2c); 80027b8: 68fb ldr r3, [r7, #12] 80027ba: 2200 movs r2, #0 80027bc: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_OK; 80027c0: 2300 movs r3, #0 80027c2: e000 b.n 80027c6 } else { return HAL_BUSY; 80027c4: 2302 movs r3, #2 } } 80027c6: 4618 mov r0, r3 80027c8: 3718 adds r7, #24 80027ca: 46bd mov sp, r7 80027cc: bd80 pop {r7, pc} 80027ce: bf00 nop 80027d0: 00100002 .word 0x00100002 80027d4: ffff0000 .word 0xffff0000 080027d8 : * @param Size Amount of data to be sent * @param Timeout Timeout duration * @retval HAL status */ HAL_StatusTypeDef HAL_I2C_Mem_Read(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint8_t *pData, uint16_t Size, uint32_t Timeout) { 80027d8: b580 push {r7, lr} 80027da: b08c sub sp, #48 ; 0x30 80027dc: af02 add r7, sp, #8 80027de: 60f8 str r0, [r7, #12] 80027e0: 4608 mov r0, r1 80027e2: 4611 mov r1, r2 80027e4: 461a mov r2, r3 80027e6: 4603 mov r3, r0 80027e8: 817b strh r3, [r7, #10] 80027ea: 460b mov r3, r1 80027ec: 813b strh r3, [r7, #8] 80027ee: 4613 mov r3, r2 80027f0: 80fb strh r3, [r7, #6] __IO uint32_t count = 0U; 80027f2: 2300 movs r3, #0 80027f4: 623b str r3, [r7, #32] /* Init tickstart for timeout management*/ uint32_t tickstart = HAL_GetTick(); 80027f6: f7ff fab1 bl 8001d5c 80027fa: 6278 str r0, [r7, #36] ; 0x24 /* Check the parameters */ assert_param(IS_I2C_MEMADD_SIZE(MemAddSize)); if (hi2c->State == HAL_I2C_STATE_READY) 80027fc: 68fb ldr r3, [r7, #12] 80027fe: f893 303d ldrb.w r3, [r3, #61] ; 0x3d 8002802: b2db uxtb r3, r3 8002804: 2b20 cmp r3, #32 8002806: f040 8244 bne.w 8002c92 { /* Wait until BUSY flag is reset */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BUSY, SET, I2C_TIMEOUT_BUSY_FLAG, tickstart) != HAL_OK) 800280a: 6a7b ldr r3, [r7, #36] ; 0x24 800280c: 9300 str r3, [sp, #0] 800280e: 2319 movs r3, #25 8002810: 2201 movs r2, #1 8002812: 4982 ldr r1, [pc, #520] ; (8002a1c ) 8002814: 68f8 ldr r0, [r7, #12] 8002816: f000 fbc5 bl 8002fa4 800281a: 4603 mov r3, r0 800281c: 2b00 cmp r3, #0 800281e: d001 beq.n 8002824 { return HAL_BUSY; 8002820: 2302 movs r3, #2 8002822: e237 b.n 8002c94 } /* Process Locked */ __HAL_LOCK(hi2c); 8002824: 68fb ldr r3, [r7, #12] 8002826: f893 303c ldrb.w r3, [r3, #60] ; 0x3c 800282a: 2b01 cmp r3, #1 800282c: d101 bne.n 8002832 800282e: 2302 movs r3, #2 8002830: e230 b.n 8002c94 8002832: 68fb ldr r3, [r7, #12] 8002834: 2201 movs r2, #1 8002836: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Check if the I2C is already enabled */ if ((hi2c->Instance->CR1 & I2C_CR1_PE) != I2C_CR1_PE) 800283a: 68fb ldr r3, [r7, #12] 800283c: 681b ldr r3, [r3, #0] 800283e: 681b ldr r3, [r3, #0] 8002840: f003 0301 and.w r3, r3, #1 8002844: 2b01 cmp r3, #1 8002846: d007 beq.n 8002858 { /* Enable I2C peripheral */ __HAL_I2C_ENABLE(hi2c); 8002848: 68fb ldr r3, [r7, #12] 800284a: 681b ldr r3, [r3, #0] 800284c: 681a ldr r2, [r3, #0] 800284e: 68fb ldr r3, [r7, #12] 8002850: 681b ldr r3, [r3, #0] 8002852: f042 0201 orr.w r2, r2, #1 8002856: 601a str r2, [r3, #0] } /* Disable Pos */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_POS); 8002858: 68fb ldr r3, [r7, #12] 800285a: 681b ldr r3, [r3, #0] 800285c: 681a ldr r2, [r3, #0] 800285e: 68fb ldr r3, [r7, #12] 8002860: 681b ldr r3, [r3, #0] 8002862: f422 6200 bic.w r2, r2, #2048 ; 0x800 8002866: 601a str r2, [r3, #0] hi2c->State = HAL_I2C_STATE_BUSY_RX; 8002868: 68fb ldr r3, [r7, #12] 800286a: 2222 movs r2, #34 ; 0x22 800286c: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_MEM; 8002870: 68fb ldr r3, [r7, #12] 8002872: 2240 movs r2, #64 ; 0x40 8002874: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode = HAL_I2C_ERROR_NONE; 8002878: 68fb ldr r3, [r7, #12] 800287a: 2200 movs r2, #0 800287c: 641a str r2, [r3, #64] ; 0x40 /* Prepare transfer parameters */ hi2c->pBuffPtr = pData; 800287e: 68fb ldr r3, [r7, #12] 8002880: 6b3a ldr r2, [r7, #48] ; 0x30 8002882: 625a str r2, [r3, #36] ; 0x24 hi2c->XferCount = Size; 8002884: 68fb ldr r3, [r7, #12] 8002886: 8eba ldrh r2, [r7, #52] ; 0x34 8002888: 855a strh r2, [r3, #42] ; 0x2a hi2c->XferSize = hi2c->XferCount; 800288a: 68fb ldr r3, [r7, #12] 800288c: 8d5b ldrh r3, [r3, #42] ; 0x2a 800288e: b29a uxth r2, r3 8002890: 68fb ldr r3, [r7, #12] 8002892: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferOptions = I2C_NO_OPTION_FRAME; 8002894: 68fb ldr r3, [r7, #12] 8002896: 4a62 ldr r2, [pc, #392] ; (8002a20 ) 8002898: 62da str r2, [r3, #44] ; 0x2c /* Send Slave Address and Memory Address */ if (I2C_RequestMemoryRead(hi2c, DevAddress, MemAddress, MemAddSize, Timeout, tickstart) != HAL_OK) 800289a: 88f8 ldrh r0, [r7, #6] 800289c: 893a ldrh r2, [r7, #8] 800289e: 8979 ldrh r1, [r7, #10] 80028a0: 6a7b ldr r3, [r7, #36] ; 0x24 80028a2: 9301 str r3, [sp, #4] 80028a4: 6bbb ldr r3, [r7, #56] ; 0x38 80028a6: 9300 str r3, [sp, #0] 80028a8: 4603 mov r3, r0 80028aa: 68f8 ldr r0, [r7, #12] 80028ac: f000 fa92 bl 8002dd4 80028b0: 4603 mov r3, r0 80028b2: 2b00 cmp r3, #0 80028b4: d001 beq.n 80028ba { return HAL_ERROR; 80028b6: 2301 movs r3, #1 80028b8: e1ec b.n 8002c94 } if (hi2c->XferSize == 0U) 80028ba: 68fb ldr r3, [r7, #12] 80028bc: 8d1b ldrh r3, [r3, #40] ; 0x28 80028be: 2b00 cmp r3, #0 80028c0: d113 bne.n 80028ea { /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); 80028c2: 2300 movs r3, #0 80028c4: 61fb str r3, [r7, #28] 80028c6: 68fb ldr r3, [r7, #12] 80028c8: 681b ldr r3, [r3, #0] 80028ca: 695b ldr r3, [r3, #20] 80028cc: 61fb str r3, [r7, #28] 80028ce: 68fb ldr r3, [r7, #12] 80028d0: 681b ldr r3, [r3, #0] 80028d2: 699b ldr r3, [r3, #24] 80028d4: 61fb str r3, [r7, #28] 80028d6: 69fb ldr r3, [r7, #28] /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); 80028d8: 68fb ldr r3, [r7, #12] 80028da: 681b ldr r3, [r3, #0] 80028dc: 681a ldr r2, [r3, #0] 80028de: 68fb ldr r3, [r7, #12] 80028e0: 681b ldr r3, [r3, #0] 80028e2: f442 7200 orr.w r2, r2, #512 ; 0x200 80028e6: 601a str r2, [r3, #0] 80028e8: e1c0 b.n 8002c6c } else if (hi2c->XferSize == 1U) 80028ea: 68fb ldr r3, [r7, #12] 80028ec: 8d1b ldrh r3, [r3, #40] ; 0x28 80028ee: 2b01 cmp r3, #1 80028f0: d11e bne.n 8002930 { /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); 80028f2: 68fb ldr r3, [r7, #12] 80028f4: 681b ldr r3, [r3, #0] 80028f6: 681a ldr r2, [r3, #0] 80028f8: 68fb ldr r3, [r7, #12] 80028fa: 681b ldr r3, [r3, #0] 80028fc: f422 6280 bic.w r2, r2, #1024 ; 0x400 8002900: 601a str r2, [r3, #0] __ASM volatile ("cpsid i" : : : "memory"); 8002902: b672 cpsid i } 8002904: bf00 nop /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 software sequence must complete before the current byte end of transfer */ __disable_irq(); /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); 8002906: 2300 movs r3, #0 8002908: 61bb str r3, [r7, #24] 800290a: 68fb ldr r3, [r7, #12] 800290c: 681b ldr r3, [r3, #0] 800290e: 695b ldr r3, [r3, #20] 8002910: 61bb str r3, [r7, #24] 8002912: 68fb ldr r3, [r7, #12] 8002914: 681b ldr r3, [r3, #0] 8002916: 699b ldr r3, [r3, #24] 8002918: 61bb str r3, [r7, #24] 800291a: 69bb ldr r3, [r7, #24] /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); 800291c: 68fb ldr r3, [r7, #12] 800291e: 681b ldr r3, [r3, #0] 8002920: 681a ldr r2, [r3, #0] 8002922: 68fb ldr r3, [r7, #12] 8002924: 681b ldr r3, [r3, #0] 8002926: f442 7200 orr.w r2, r2, #512 ; 0x200 800292a: 601a str r2, [r3, #0] __ASM volatile ("cpsie i" : : : "memory"); 800292c: b662 cpsie i } 800292e: e035 b.n 800299c /* Re-enable IRQs */ __enable_irq(); } else if (hi2c->XferSize == 2U) 8002930: 68fb ldr r3, [r7, #12] 8002932: 8d1b ldrh r3, [r3, #40] ; 0x28 8002934: 2b02 cmp r3, #2 8002936: d11e bne.n 8002976 { /* Enable Pos */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_POS); 8002938: 68fb ldr r3, [r7, #12] 800293a: 681b ldr r3, [r3, #0] 800293c: 681a ldr r2, [r3, #0] 800293e: 68fb ldr r3, [r7, #12] 8002940: 681b ldr r3, [r3, #0] 8002942: f442 6200 orr.w r2, r2, #2048 ; 0x800 8002946: 601a str r2, [r3, #0] __ASM volatile ("cpsid i" : : : "memory"); 8002948: b672 cpsid i } 800294a: bf00 nop /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 software sequence must complete before the current byte end of transfer */ __disable_irq(); /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); 800294c: 2300 movs r3, #0 800294e: 617b str r3, [r7, #20] 8002950: 68fb ldr r3, [r7, #12] 8002952: 681b ldr r3, [r3, #0] 8002954: 695b ldr r3, [r3, #20] 8002956: 617b str r3, [r7, #20] 8002958: 68fb ldr r3, [r7, #12] 800295a: 681b ldr r3, [r3, #0] 800295c: 699b ldr r3, [r3, #24] 800295e: 617b str r3, [r7, #20] 8002960: 697b ldr r3, [r7, #20] /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); 8002962: 68fb ldr r3, [r7, #12] 8002964: 681b ldr r3, [r3, #0] 8002966: 681a ldr r2, [r3, #0] 8002968: 68fb ldr r3, [r7, #12] 800296a: 681b ldr r3, [r3, #0] 800296c: f422 6280 bic.w r2, r2, #1024 ; 0x400 8002970: 601a str r2, [r3, #0] __ASM volatile ("cpsie i" : : : "memory"); 8002972: b662 cpsie i } 8002974: e012 b.n 800299c __enable_irq(); } else { /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); 8002976: 68fb ldr r3, [r7, #12] 8002978: 681b ldr r3, [r3, #0] 800297a: 681a ldr r2, [r3, #0] 800297c: 68fb ldr r3, [r7, #12] 800297e: 681b ldr r3, [r3, #0] 8002980: f442 6280 orr.w r2, r2, #1024 ; 0x400 8002984: 601a str r2, [r3, #0] /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); 8002986: 2300 movs r3, #0 8002988: 613b str r3, [r7, #16] 800298a: 68fb ldr r3, [r7, #12] 800298c: 681b ldr r3, [r3, #0] 800298e: 695b ldr r3, [r3, #20] 8002990: 613b str r3, [r7, #16] 8002992: 68fb ldr r3, [r7, #12] 8002994: 681b ldr r3, [r3, #0] 8002996: 699b ldr r3, [r3, #24] 8002998: 613b str r3, [r7, #16] 800299a: 693b ldr r3, [r7, #16] } while (hi2c->XferSize > 0U) 800299c: e166 b.n 8002c6c { if (hi2c->XferSize <= 3U) 800299e: 68fb ldr r3, [r7, #12] 80029a0: 8d1b ldrh r3, [r3, #40] ; 0x28 80029a2: 2b03 cmp r3, #3 80029a4: f200 811f bhi.w 8002be6 { /* One byte */ if (hi2c->XferSize == 1U) 80029a8: 68fb ldr r3, [r7, #12] 80029aa: 8d1b ldrh r3, [r3, #40] ; 0x28 80029ac: 2b01 cmp r3, #1 80029ae: d123 bne.n 80029f8 { /* Wait until RXNE flag is set */ if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) 80029b0: 6a7a ldr r2, [r7, #36] ; 0x24 80029b2: 6bb9 ldr r1, [r7, #56] ; 0x38 80029b4: 68f8 ldr r0, [r7, #12] 80029b6: f000 fc4d bl 8003254 80029ba: 4603 mov r3, r0 80029bc: 2b00 cmp r3, #0 80029be: d001 beq.n 80029c4 { return HAL_ERROR; 80029c0: 2301 movs r3, #1 80029c2: e167 b.n 8002c94 } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; 80029c4: 68fb ldr r3, [r7, #12] 80029c6: 681b ldr r3, [r3, #0] 80029c8: 691a ldr r2, [r3, #16] 80029ca: 68fb ldr r3, [r7, #12] 80029cc: 6a5b ldr r3, [r3, #36] ; 0x24 80029ce: b2d2 uxtb r2, r2 80029d0: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; 80029d2: 68fb ldr r3, [r7, #12] 80029d4: 6a5b ldr r3, [r3, #36] ; 0x24 80029d6: 1c5a adds r2, r3, #1 80029d8: 68fb ldr r3, [r7, #12] 80029da: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; 80029dc: 68fb ldr r3, [r7, #12] 80029de: 8d1b ldrh r3, [r3, #40] ; 0x28 80029e0: 3b01 subs r3, #1 80029e2: b29a uxth r2, r3 80029e4: 68fb ldr r3, [r7, #12] 80029e6: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; 80029e8: 68fb ldr r3, [r7, #12] 80029ea: 8d5b ldrh r3, [r3, #42] ; 0x2a 80029ec: b29b uxth r3, r3 80029ee: 3b01 subs r3, #1 80029f0: b29a uxth r2, r3 80029f2: 68fb ldr r3, [r7, #12] 80029f4: 855a strh r2, [r3, #42] ; 0x2a 80029f6: e139 b.n 8002c6c } /* Two bytes */ else if (hi2c->XferSize == 2U) 80029f8: 68fb ldr r3, [r7, #12] 80029fa: 8d1b ldrh r3, [r3, #40] ; 0x28 80029fc: 2b02 cmp r3, #2 80029fe: d152 bne.n 8002aa6 { /* Wait until BTF flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) 8002a00: 6a7b ldr r3, [r7, #36] ; 0x24 8002a02: 9300 str r3, [sp, #0] 8002a04: 6bbb ldr r3, [r7, #56] ; 0x38 8002a06: 2200 movs r2, #0 8002a08: 4906 ldr r1, [pc, #24] ; (8002a24 ) 8002a0a: 68f8 ldr r0, [r7, #12] 8002a0c: f000 faca bl 8002fa4 8002a10: 4603 mov r3, r0 8002a12: 2b00 cmp r3, #0 8002a14: d008 beq.n 8002a28 { return HAL_ERROR; 8002a16: 2301 movs r3, #1 8002a18: e13c b.n 8002c94 8002a1a: bf00 nop 8002a1c: 00100002 .word 0x00100002 8002a20: ffff0000 .word 0xffff0000 8002a24: 00010004 .word 0x00010004 __ASM volatile ("cpsid i" : : : "memory"); 8002a28: b672 cpsid i } 8002a2a: bf00 nop /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 software sequence must complete before the current byte end of transfer */ __disable_irq(); /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); 8002a2c: 68fb ldr r3, [r7, #12] 8002a2e: 681b ldr r3, [r3, #0] 8002a30: 681a ldr r2, [r3, #0] 8002a32: 68fb ldr r3, [r7, #12] 8002a34: 681b ldr r3, [r3, #0] 8002a36: f442 7200 orr.w r2, r2, #512 ; 0x200 8002a3a: 601a str r2, [r3, #0] /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; 8002a3c: 68fb ldr r3, [r7, #12] 8002a3e: 681b ldr r3, [r3, #0] 8002a40: 691a ldr r2, [r3, #16] 8002a42: 68fb ldr r3, [r7, #12] 8002a44: 6a5b ldr r3, [r3, #36] ; 0x24 8002a46: b2d2 uxtb r2, r2 8002a48: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; 8002a4a: 68fb ldr r3, [r7, #12] 8002a4c: 6a5b ldr r3, [r3, #36] ; 0x24 8002a4e: 1c5a adds r2, r3, #1 8002a50: 68fb ldr r3, [r7, #12] 8002a52: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; 8002a54: 68fb ldr r3, [r7, #12] 8002a56: 8d1b ldrh r3, [r3, #40] ; 0x28 8002a58: 3b01 subs r3, #1 8002a5a: b29a uxth r2, r3 8002a5c: 68fb ldr r3, [r7, #12] 8002a5e: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; 8002a60: 68fb ldr r3, [r7, #12] 8002a62: 8d5b ldrh r3, [r3, #42] ; 0x2a 8002a64: b29b uxth r3, r3 8002a66: 3b01 subs r3, #1 8002a68: b29a uxth r2, r3 8002a6a: 68fb ldr r3, [r7, #12] 8002a6c: 855a strh r2, [r3, #42] ; 0x2a __ASM volatile ("cpsie i" : : : "memory"); 8002a6e: b662 cpsie i } 8002a70: bf00 nop /* Re-enable IRQs */ __enable_irq(); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; 8002a72: 68fb ldr r3, [r7, #12] 8002a74: 681b ldr r3, [r3, #0] 8002a76: 691a ldr r2, [r3, #16] 8002a78: 68fb ldr r3, [r7, #12] 8002a7a: 6a5b ldr r3, [r3, #36] ; 0x24 8002a7c: b2d2 uxtb r2, r2 8002a7e: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; 8002a80: 68fb ldr r3, [r7, #12] 8002a82: 6a5b ldr r3, [r3, #36] ; 0x24 8002a84: 1c5a adds r2, r3, #1 8002a86: 68fb ldr r3, [r7, #12] 8002a88: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; 8002a8a: 68fb ldr r3, [r7, #12] 8002a8c: 8d1b ldrh r3, [r3, #40] ; 0x28 8002a8e: 3b01 subs r3, #1 8002a90: b29a uxth r2, r3 8002a92: 68fb ldr r3, [r7, #12] 8002a94: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; 8002a96: 68fb ldr r3, [r7, #12] 8002a98: 8d5b ldrh r3, [r3, #42] ; 0x2a 8002a9a: b29b uxth r3, r3 8002a9c: 3b01 subs r3, #1 8002a9e: b29a uxth r2, r3 8002aa0: 68fb ldr r3, [r7, #12] 8002aa2: 855a strh r2, [r3, #42] ; 0x2a 8002aa4: e0e2 b.n 8002c6c } /* 3 Last bytes */ else { /* Wait until BTF flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_BTF, RESET, Timeout, tickstart) != HAL_OK) 8002aa6: 6a7b ldr r3, [r7, #36] ; 0x24 8002aa8: 9300 str r3, [sp, #0] 8002aaa: 6bbb ldr r3, [r7, #56] ; 0x38 8002aac: 2200 movs r2, #0 8002aae: 497b ldr r1, [pc, #492] ; (8002c9c ) 8002ab0: 68f8 ldr r0, [r7, #12] 8002ab2: f000 fa77 bl 8002fa4 8002ab6: 4603 mov r3, r0 8002ab8: 2b00 cmp r3, #0 8002aba: d001 beq.n 8002ac0 { return HAL_ERROR; 8002abc: 2301 movs r3, #1 8002abe: e0e9 b.n 8002c94 } /* Disable Acknowledge */ CLEAR_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); 8002ac0: 68fb ldr r3, [r7, #12] 8002ac2: 681b ldr r3, [r3, #0] 8002ac4: 681a ldr r2, [r3, #0] 8002ac6: 68fb ldr r3, [r7, #12] 8002ac8: 681b ldr r3, [r3, #0] 8002aca: f422 6280 bic.w r2, r2, #1024 ; 0x400 8002ace: 601a str r2, [r3, #0] __ASM volatile ("cpsid i" : : : "memory"); 8002ad0: b672 cpsid i } 8002ad2: bf00 nop /* Disable all active IRQs around ADDR clearing and STOP programming because the EV6_3 software sequence must complete before the current byte end of transfer */ __disable_irq(); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; 8002ad4: 68fb ldr r3, [r7, #12] 8002ad6: 681b ldr r3, [r3, #0] 8002ad8: 691a ldr r2, [r3, #16] 8002ada: 68fb ldr r3, [r7, #12] 8002adc: 6a5b ldr r3, [r3, #36] ; 0x24 8002ade: b2d2 uxtb r2, r2 8002ae0: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; 8002ae2: 68fb ldr r3, [r7, #12] 8002ae4: 6a5b ldr r3, [r3, #36] ; 0x24 8002ae6: 1c5a adds r2, r3, #1 8002ae8: 68fb ldr r3, [r7, #12] 8002aea: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; 8002aec: 68fb ldr r3, [r7, #12] 8002aee: 8d1b ldrh r3, [r3, #40] ; 0x28 8002af0: 3b01 subs r3, #1 8002af2: b29a uxth r2, r3 8002af4: 68fb ldr r3, [r7, #12] 8002af6: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; 8002af8: 68fb ldr r3, [r7, #12] 8002afa: 8d5b ldrh r3, [r3, #42] ; 0x2a 8002afc: b29b uxth r3, r3 8002afe: 3b01 subs r3, #1 8002b00: b29a uxth r2, r3 8002b02: 68fb ldr r3, [r7, #12] 8002b04: 855a strh r2, [r3, #42] ; 0x2a /* Wait until BTF flag is set */ count = I2C_TIMEOUT_FLAG * (SystemCoreClock / 25U / 1000U); 8002b06: 4b66 ldr r3, [pc, #408] ; (8002ca0 ) 8002b08: 681b ldr r3, [r3, #0] 8002b0a: 08db lsrs r3, r3, #3 8002b0c: 4a65 ldr r2, [pc, #404] ; (8002ca4 ) 8002b0e: fba2 2303 umull r2, r3, r2, r3 8002b12: 0a1a lsrs r2, r3, #8 8002b14: 4613 mov r3, r2 8002b16: 009b lsls r3, r3, #2 8002b18: 4413 add r3, r2 8002b1a: 00da lsls r2, r3, #3 8002b1c: 1ad3 subs r3, r2, r3 8002b1e: 623b str r3, [r7, #32] do { count--; 8002b20: 6a3b ldr r3, [r7, #32] 8002b22: 3b01 subs r3, #1 8002b24: 623b str r3, [r7, #32] if (count == 0U) 8002b26: 6a3b ldr r3, [r7, #32] 8002b28: 2b00 cmp r3, #0 8002b2a: d118 bne.n 8002b5e { hi2c->PreviousState = I2C_STATE_NONE; 8002b2c: 68fb ldr r3, [r7, #12] 8002b2e: 2200 movs r2, #0 8002b30: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; 8002b32: 68fb ldr r3, [r7, #12] 8002b34: 2220 movs r2, #32 8002b36: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; 8002b3a: 68fb ldr r3, [r7, #12] 8002b3c: 2200 movs r2, #0 8002b3e: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; 8002b42: 68fb ldr r3, [r7, #12] 8002b44: 6c1b ldr r3, [r3, #64] ; 0x40 8002b46: f043 0220 orr.w r2, r3, #32 8002b4a: 68fb ldr r3, [r7, #12] 8002b4c: 641a str r2, [r3, #64] ; 0x40 __ASM volatile ("cpsie i" : : : "memory"); 8002b4e: b662 cpsie i } 8002b50: bf00 nop /* Re-enable IRQs */ __enable_irq(); /* Process Unlocked */ __HAL_UNLOCK(hi2c); 8002b52: 68fb ldr r3, [r7, #12] 8002b54: 2200 movs r2, #0 8002b56: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; 8002b5a: 2301 movs r3, #1 8002b5c: e09a b.n 8002c94 } } while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET); 8002b5e: 68fb ldr r3, [r7, #12] 8002b60: 681b ldr r3, [r3, #0] 8002b62: 695b ldr r3, [r3, #20] 8002b64: f003 0304 and.w r3, r3, #4 8002b68: 2b04 cmp r3, #4 8002b6a: d1d9 bne.n 8002b20 /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); 8002b6c: 68fb ldr r3, [r7, #12] 8002b6e: 681b ldr r3, [r3, #0] 8002b70: 681a ldr r2, [r3, #0] 8002b72: 68fb ldr r3, [r7, #12] 8002b74: 681b ldr r3, [r3, #0] 8002b76: f442 7200 orr.w r2, r2, #512 ; 0x200 8002b7a: 601a str r2, [r3, #0] /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; 8002b7c: 68fb ldr r3, [r7, #12] 8002b7e: 681b ldr r3, [r3, #0] 8002b80: 691a ldr r2, [r3, #16] 8002b82: 68fb ldr r3, [r7, #12] 8002b84: 6a5b ldr r3, [r3, #36] ; 0x24 8002b86: b2d2 uxtb r2, r2 8002b88: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; 8002b8a: 68fb ldr r3, [r7, #12] 8002b8c: 6a5b ldr r3, [r3, #36] ; 0x24 8002b8e: 1c5a adds r2, r3, #1 8002b90: 68fb ldr r3, [r7, #12] 8002b92: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; 8002b94: 68fb ldr r3, [r7, #12] 8002b96: 8d1b ldrh r3, [r3, #40] ; 0x28 8002b98: 3b01 subs r3, #1 8002b9a: b29a uxth r2, r3 8002b9c: 68fb ldr r3, [r7, #12] 8002b9e: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; 8002ba0: 68fb ldr r3, [r7, #12] 8002ba2: 8d5b ldrh r3, [r3, #42] ; 0x2a 8002ba4: b29b uxth r3, r3 8002ba6: 3b01 subs r3, #1 8002ba8: b29a uxth r2, r3 8002baa: 68fb ldr r3, [r7, #12] 8002bac: 855a strh r2, [r3, #42] ; 0x2a __ASM volatile ("cpsie i" : : : "memory"); 8002bae: b662 cpsie i } 8002bb0: bf00 nop /* Re-enable IRQs */ __enable_irq(); /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; 8002bb2: 68fb ldr r3, [r7, #12] 8002bb4: 681b ldr r3, [r3, #0] 8002bb6: 691a ldr r2, [r3, #16] 8002bb8: 68fb ldr r3, [r7, #12] 8002bba: 6a5b ldr r3, [r3, #36] ; 0x24 8002bbc: b2d2 uxtb r2, r2 8002bbe: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; 8002bc0: 68fb ldr r3, [r7, #12] 8002bc2: 6a5b ldr r3, [r3, #36] ; 0x24 8002bc4: 1c5a adds r2, r3, #1 8002bc6: 68fb ldr r3, [r7, #12] 8002bc8: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; 8002bca: 68fb ldr r3, [r7, #12] 8002bcc: 8d1b ldrh r3, [r3, #40] ; 0x28 8002bce: 3b01 subs r3, #1 8002bd0: b29a uxth r2, r3 8002bd2: 68fb ldr r3, [r7, #12] 8002bd4: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; 8002bd6: 68fb ldr r3, [r7, #12] 8002bd8: 8d5b ldrh r3, [r3, #42] ; 0x2a 8002bda: b29b uxth r3, r3 8002bdc: 3b01 subs r3, #1 8002bde: b29a uxth r2, r3 8002be0: 68fb ldr r3, [r7, #12] 8002be2: 855a strh r2, [r3, #42] ; 0x2a 8002be4: e042 b.n 8002c6c } } else { /* Wait until RXNE flag is set */ if (I2C_WaitOnRXNEFlagUntilTimeout(hi2c, Timeout, tickstart) != HAL_OK) 8002be6: 6a7a ldr r2, [r7, #36] ; 0x24 8002be8: 6bb9 ldr r1, [r7, #56] ; 0x38 8002bea: 68f8 ldr r0, [r7, #12] 8002bec: f000 fb32 bl 8003254 8002bf0: 4603 mov r3, r0 8002bf2: 2b00 cmp r3, #0 8002bf4: d001 beq.n 8002bfa { return HAL_ERROR; 8002bf6: 2301 movs r3, #1 8002bf8: e04c b.n 8002c94 } /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; 8002bfa: 68fb ldr r3, [r7, #12] 8002bfc: 681b ldr r3, [r3, #0] 8002bfe: 691a ldr r2, [r3, #16] 8002c00: 68fb ldr r3, [r7, #12] 8002c02: 6a5b ldr r3, [r3, #36] ; 0x24 8002c04: b2d2 uxtb r2, r2 8002c06: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; 8002c08: 68fb ldr r3, [r7, #12] 8002c0a: 6a5b ldr r3, [r3, #36] ; 0x24 8002c0c: 1c5a adds r2, r3, #1 8002c0e: 68fb ldr r3, [r7, #12] 8002c10: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; 8002c12: 68fb ldr r3, [r7, #12] 8002c14: 8d1b ldrh r3, [r3, #40] ; 0x28 8002c16: 3b01 subs r3, #1 8002c18: b29a uxth r2, r3 8002c1a: 68fb ldr r3, [r7, #12] 8002c1c: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; 8002c1e: 68fb ldr r3, [r7, #12] 8002c20: 8d5b ldrh r3, [r3, #42] ; 0x2a 8002c22: b29b uxth r3, r3 8002c24: 3b01 subs r3, #1 8002c26: b29a uxth r2, r3 8002c28: 68fb ldr r3, [r7, #12] 8002c2a: 855a strh r2, [r3, #42] ; 0x2a if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == SET) 8002c2c: 68fb ldr r3, [r7, #12] 8002c2e: 681b ldr r3, [r3, #0] 8002c30: 695b ldr r3, [r3, #20] 8002c32: f003 0304 and.w r3, r3, #4 8002c36: 2b04 cmp r3, #4 8002c38: d118 bne.n 8002c6c { /* Read data from DR */ *hi2c->pBuffPtr = (uint8_t)hi2c->Instance->DR; 8002c3a: 68fb ldr r3, [r7, #12] 8002c3c: 681b ldr r3, [r3, #0] 8002c3e: 691a ldr r2, [r3, #16] 8002c40: 68fb ldr r3, [r7, #12] 8002c42: 6a5b ldr r3, [r3, #36] ; 0x24 8002c44: b2d2 uxtb r2, r2 8002c46: 701a strb r2, [r3, #0] /* Increment Buffer pointer */ hi2c->pBuffPtr++; 8002c48: 68fb ldr r3, [r7, #12] 8002c4a: 6a5b ldr r3, [r3, #36] ; 0x24 8002c4c: 1c5a adds r2, r3, #1 8002c4e: 68fb ldr r3, [r7, #12] 8002c50: 625a str r2, [r3, #36] ; 0x24 /* Update counter */ hi2c->XferSize--; 8002c52: 68fb ldr r3, [r7, #12] 8002c54: 8d1b ldrh r3, [r3, #40] ; 0x28 8002c56: 3b01 subs r3, #1 8002c58: b29a uxth r2, r3 8002c5a: 68fb ldr r3, [r7, #12] 8002c5c: 851a strh r2, [r3, #40] ; 0x28 hi2c->XferCount--; 8002c5e: 68fb ldr r3, [r7, #12] 8002c60: 8d5b ldrh r3, [r3, #42] ; 0x2a 8002c62: b29b uxth r3, r3 8002c64: 3b01 subs r3, #1 8002c66: b29a uxth r2, r3 8002c68: 68fb ldr r3, [r7, #12] 8002c6a: 855a strh r2, [r3, #42] ; 0x2a while (hi2c->XferSize > 0U) 8002c6c: 68fb ldr r3, [r7, #12] 8002c6e: 8d1b ldrh r3, [r3, #40] ; 0x28 8002c70: 2b00 cmp r3, #0 8002c72: f47f ae94 bne.w 800299e } } } hi2c->State = HAL_I2C_STATE_READY; 8002c76: 68fb ldr r3, [r7, #12] 8002c78: 2220 movs r2, #32 8002c7a: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; 8002c7e: 68fb ldr r3, [r7, #12] 8002c80: 2200 movs r2, #0 8002c82: f883 203e strb.w r2, [r3, #62] ; 0x3e /* Process Unlocked */ __HAL_UNLOCK(hi2c); 8002c86: 68fb ldr r3, [r7, #12] 8002c88: 2200 movs r2, #0 8002c8a: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_OK; 8002c8e: 2300 movs r3, #0 8002c90: e000 b.n 8002c94 } else { return HAL_BUSY; 8002c92: 2302 movs r3, #2 } } 8002c94: 4618 mov r0, r3 8002c96: 3728 adds r7, #40 ; 0x28 8002c98: 46bd mov sp, r7 8002c9a: bd80 pop {r7, pc} 8002c9c: 00010004 .word 0x00010004 8002ca0: 20000000 .word 0x20000000 8002ca4: 14f8b589 .word 0x14f8b589 08002ca8 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_RequestMemoryWrite(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) { 8002ca8: b580 push {r7, lr} 8002caa: b088 sub sp, #32 8002cac: af02 add r7, sp, #8 8002cae: 60f8 str r0, [r7, #12] 8002cb0: 4608 mov r0, r1 8002cb2: 4611 mov r1, r2 8002cb4: 461a mov r2, r3 8002cb6: 4603 mov r3, r0 8002cb8: 817b strh r3, [r7, #10] 8002cba: 460b mov r3, r1 8002cbc: 813b strh r3, [r7, #8] 8002cbe: 4613 mov r3, r2 8002cc0: 80fb strh r3, [r7, #6] /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); 8002cc2: 68fb ldr r3, [r7, #12] 8002cc4: 681b ldr r3, [r3, #0] 8002cc6: 681a ldr r2, [r3, #0] 8002cc8: 68fb ldr r3, [r7, #12] 8002cca: 681b ldr r3, [r3, #0] 8002ccc: f442 7280 orr.w r2, r2, #256 ; 0x100 8002cd0: 601a str r2, [r3, #0] /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) 8002cd2: 6a7b ldr r3, [r7, #36] ; 0x24 8002cd4: 9300 str r3, [sp, #0] 8002cd6: 6a3b ldr r3, [r7, #32] 8002cd8: 2200 movs r2, #0 8002cda: f04f 1101 mov.w r1, #65537 ; 0x10001 8002cde: 68f8 ldr r0, [r7, #12] 8002ce0: f000 f960 bl 8002fa4 8002ce4: 4603 mov r3, r0 8002ce6: 2b00 cmp r3, #0 8002ce8: d00d beq.n 8002d06 { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) 8002cea: 68fb ldr r3, [r7, #12] 8002cec: 681b ldr r3, [r3, #0] 8002cee: 681b ldr r3, [r3, #0] 8002cf0: f403 7380 and.w r3, r3, #256 ; 0x100 8002cf4: f5b3 7f80 cmp.w r3, #256 ; 0x100 8002cf8: d103 bne.n 8002d02 { hi2c->ErrorCode = HAL_I2C_WRONG_START; 8002cfa: 68fb ldr r3, [r7, #12] 8002cfc: f44f 7200 mov.w r2, #512 ; 0x200 8002d00: 641a str r2, [r3, #64] ; 0x40 } return HAL_TIMEOUT; 8002d02: 2303 movs r3, #3 8002d04: e05f b.n 8002dc6 } /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); 8002d06: 897b ldrh r3, [r7, #10] 8002d08: b2db uxtb r3, r3 8002d0a: 461a mov r2, r3 8002d0c: 68fb ldr r3, [r7, #12] 8002d0e: 681b ldr r3, [r3, #0] 8002d10: f002 02fe and.w r2, r2, #254 ; 0xfe 8002d14: 611a str r2, [r3, #16] /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) 8002d16: 6a7b ldr r3, [r7, #36] ; 0x24 8002d18: 6a3a ldr r2, [r7, #32] 8002d1a: 492d ldr r1, [pc, #180] ; (8002dd0 ) 8002d1c: 68f8 ldr r0, [r7, #12] 8002d1e: f000 f998 bl 8003052 8002d22: 4603 mov r3, r0 8002d24: 2b00 cmp r3, #0 8002d26: d001 beq.n 8002d2c { return HAL_ERROR; 8002d28: 2301 movs r3, #1 8002d2a: e04c b.n 8002dc6 } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); 8002d2c: 2300 movs r3, #0 8002d2e: 617b str r3, [r7, #20] 8002d30: 68fb ldr r3, [r7, #12] 8002d32: 681b ldr r3, [r3, #0] 8002d34: 695b ldr r3, [r3, #20] 8002d36: 617b str r3, [r7, #20] 8002d38: 68fb ldr r3, [r7, #12] 8002d3a: 681b ldr r3, [r3, #0] 8002d3c: 699b ldr r3, [r3, #24] 8002d3e: 617b str r3, [r7, #20] 8002d40: 697b ldr r3, [r7, #20] /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) 8002d42: 6a7a ldr r2, [r7, #36] ; 0x24 8002d44: 6a39 ldr r1, [r7, #32] 8002d46: 68f8 ldr r0, [r7, #12] 8002d48: f000 fa02 bl 8003150 8002d4c: 4603 mov r3, r0 8002d4e: 2b00 cmp r3, #0 8002d50: d00d beq.n 8002d6e { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) 8002d52: 68fb ldr r3, [r7, #12] 8002d54: 6c1b ldr r3, [r3, #64] ; 0x40 8002d56: 2b04 cmp r3, #4 8002d58: d107 bne.n 8002d6a { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); 8002d5a: 68fb ldr r3, [r7, #12] 8002d5c: 681b ldr r3, [r3, #0] 8002d5e: 681a ldr r2, [r3, #0] 8002d60: 68fb ldr r3, [r7, #12] 8002d62: 681b ldr r3, [r3, #0] 8002d64: f442 7200 orr.w r2, r2, #512 ; 0x200 8002d68: 601a str r2, [r3, #0] } return HAL_ERROR; 8002d6a: 2301 movs r3, #1 8002d6c: e02b b.n 8002dc6 } /* If Memory address size is 8Bit */ if (MemAddSize == I2C_MEMADD_SIZE_8BIT) 8002d6e: 88fb ldrh r3, [r7, #6] 8002d70: 2b01 cmp r3, #1 8002d72: d105 bne.n 8002d80 { /* Send Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); 8002d74: 893b ldrh r3, [r7, #8] 8002d76: b2da uxtb r2, r3 8002d78: 68fb ldr r3, [r7, #12] 8002d7a: 681b ldr r3, [r3, #0] 8002d7c: 611a str r2, [r3, #16] 8002d7e: e021 b.n 8002dc4 } /* If Memory address size is 16Bit */ else { /* Send MSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_MSB(MemAddress); 8002d80: 893b ldrh r3, [r7, #8] 8002d82: 0a1b lsrs r3, r3, #8 8002d84: b29b uxth r3, r3 8002d86: b2da uxtb r2, r3 8002d88: 68fb ldr r3, [r7, #12] 8002d8a: 681b ldr r3, [r3, #0] 8002d8c: 611a str r2, [r3, #16] /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) 8002d8e: 6a7a ldr r2, [r7, #36] ; 0x24 8002d90: 6a39 ldr r1, [r7, #32] 8002d92: 68f8 ldr r0, [r7, #12] 8002d94: f000 f9dc bl 8003150 8002d98: 4603 mov r3, r0 8002d9a: 2b00 cmp r3, #0 8002d9c: d00d beq.n 8002dba { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) 8002d9e: 68fb ldr r3, [r7, #12] 8002da0: 6c1b ldr r3, [r3, #64] ; 0x40 8002da2: 2b04 cmp r3, #4 8002da4: d107 bne.n 8002db6 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); 8002da6: 68fb ldr r3, [r7, #12] 8002da8: 681b ldr r3, [r3, #0] 8002daa: 681a ldr r2, [r3, #0] 8002dac: 68fb ldr r3, [r7, #12] 8002dae: 681b ldr r3, [r3, #0] 8002db0: f442 7200 orr.w r2, r2, #512 ; 0x200 8002db4: 601a str r2, [r3, #0] } return HAL_ERROR; 8002db6: 2301 movs r3, #1 8002db8: e005 b.n 8002dc6 } /* Send LSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); 8002dba: 893b ldrh r3, [r7, #8] 8002dbc: b2da uxtb r2, r3 8002dbe: 68fb ldr r3, [r7, #12] 8002dc0: 681b ldr r3, [r3, #0] 8002dc2: 611a str r2, [r3, #16] } return HAL_OK; 8002dc4: 2300 movs r3, #0 } 8002dc6: 4618 mov r0, r3 8002dc8: 3718 adds r7, #24 8002dca: 46bd mov sp, r7 8002dcc: bd80 pop {r7, pc} 8002dce: bf00 nop 8002dd0: 00010002 .word 0x00010002 08002dd4 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_RequestMemoryRead(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) { 8002dd4: b580 push {r7, lr} 8002dd6: b088 sub sp, #32 8002dd8: af02 add r7, sp, #8 8002dda: 60f8 str r0, [r7, #12] 8002ddc: 4608 mov r0, r1 8002dde: 4611 mov r1, r2 8002de0: 461a mov r2, r3 8002de2: 4603 mov r3, r0 8002de4: 817b strh r3, [r7, #10] 8002de6: 460b mov r3, r1 8002de8: 813b strh r3, [r7, #8] 8002dea: 4613 mov r3, r2 8002dec: 80fb strh r3, [r7, #6] /* Enable Acknowledge */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_ACK); 8002dee: 68fb ldr r3, [r7, #12] 8002df0: 681b ldr r3, [r3, #0] 8002df2: 681a ldr r2, [r3, #0] 8002df4: 68fb ldr r3, [r7, #12] 8002df6: 681b ldr r3, [r3, #0] 8002df8: f442 6280 orr.w r2, r2, #1024 ; 0x400 8002dfc: 601a str r2, [r3, #0] /* Generate Start */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); 8002dfe: 68fb ldr r3, [r7, #12] 8002e00: 681b ldr r3, [r3, #0] 8002e02: 681a ldr r2, [r3, #0] 8002e04: 68fb ldr r3, [r7, #12] 8002e06: 681b ldr r3, [r3, #0] 8002e08: f442 7280 orr.w r2, r2, #256 ; 0x100 8002e0c: 601a str r2, [r3, #0] /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) 8002e0e: 6a7b ldr r3, [r7, #36] ; 0x24 8002e10: 9300 str r3, [sp, #0] 8002e12: 6a3b ldr r3, [r7, #32] 8002e14: 2200 movs r2, #0 8002e16: f04f 1101 mov.w r1, #65537 ; 0x10001 8002e1a: 68f8 ldr r0, [r7, #12] 8002e1c: f000 f8c2 bl 8002fa4 8002e20: 4603 mov r3, r0 8002e22: 2b00 cmp r3, #0 8002e24: d00d beq.n 8002e42 { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) 8002e26: 68fb ldr r3, [r7, #12] 8002e28: 681b ldr r3, [r3, #0] 8002e2a: 681b ldr r3, [r3, #0] 8002e2c: f403 7380 and.w r3, r3, #256 ; 0x100 8002e30: f5b3 7f80 cmp.w r3, #256 ; 0x100 8002e34: d103 bne.n 8002e3e { hi2c->ErrorCode = HAL_I2C_WRONG_START; 8002e36: 68fb ldr r3, [r7, #12] 8002e38: f44f 7200 mov.w r2, #512 ; 0x200 8002e3c: 641a str r2, [r3, #64] ; 0x40 } return HAL_TIMEOUT; 8002e3e: 2303 movs r3, #3 8002e40: e0aa b.n 8002f98 } /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_WRITE(DevAddress); 8002e42: 897b ldrh r3, [r7, #10] 8002e44: b2db uxtb r3, r3 8002e46: 461a mov r2, r3 8002e48: 68fb ldr r3, [r7, #12] 8002e4a: 681b ldr r3, [r3, #0] 8002e4c: f002 02fe and.w r2, r2, #254 ; 0xfe 8002e50: 611a str r2, [r3, #16] /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) 8002e52: 6a7b ldr r3, [r7, #36] ; 0x24 8002e54: 6a3a ldr r2, [r7, #32] 8002e56: 4952 ldr r1, [pc, #328] ; (8002fa0 ) 8002e58: 68f8 ldr r0, [r7, #12] 8002e5a: f000 f8fa bl 8003052 8002e5e: 4603 mov r3, r0 8002e60: 2b00 cmp r3, #0 8002e62: d001 beq.n 8002e68 { return HAL_ERROR; 8002e64: 2301 movs r3, #1 8002e66: e097 b.n 8002f98 } /* Clear ADDR flag */ __HAL_I2C_CLEAR_ADDRFLAG(hi2c); 8002e68: 2300 movs r3, #0 8002e6a: 617b str r3, [r7, #20] 8002e6c: 68fb ldr r3, [r7, #12] 8002e6e: 681b ldr r3, [r3, #0] 8002e70: 695b ldr r3, [r3, #20] 8002e72: 617b str r3, [r7, #20] 8002e74: 68fb ldr r3, [r7, #12] 8002e76: 681b ldr r3, [r3, #0] 8002e78: 699b ldr r3, [r3, #24] 8002e7a: 617b str r3, [r7, #20] 8002e7c: 697b ldr r3, [r7, #20] /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) 8002e7e: 6a7a ldr r2, [r7, #36] ; 0x24 8002e80: 6a39 ldr r1, [r7, #32] 8002e82: 68f8 ldr r0, [r7, #12] 8002e84: f000 f964 bl 8003150 8002e88: 4603 mov r3, r0 8002e8a: 2b00 cmp r3, #0 8002e8c: d00d beq.n 8002eaa { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) 8002e8e: 68fb ldr r3, [r7, #12] 8002e90: 6c1b ldr r3, [r3, #64] ; 0x40 8002e92: 2b04 cmp r3, #4 8002e94: d107 bne.n 8002ea6 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); 8002e96: 68fb ldr r3, [r7, #12] 8002e98: 681b ldr r3, [r3, #0] 8002e9a: 681a ldr r2, [r3, #0] 8002e9c: 68fb ldr r3, [r7, #12] 8002e9e: 681b ldr r3, [r3, #0] 8002ea0: f442 7200 orr.w r2, r2, #512 ; 0x200 8002ea4: 601a str r2, [r3, #0] } return HAL_ERROR; 8002ea6: 2301 movs r3, #1 8002ea8: e076 b.n 8002f98 } /* If Memory address size is 8Bit */ if (MemAddSize == I2C_MEMADD_SIZE_8BIT) 8002eaa: 88fb ldrh r3, [r7, #6] 8002eac: 2b01 cmp r3, #1 8002eae: d105 bne.n 8002ebc { /* Send Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); 8002eb0: 893b ldrh r3, [r7, #8] 8002eb2: b2da uxtb r2, r3 8002eb4: 68fb ldr r3, [r7, #12] 8002eb6: 681b ldr r3, [r3, #0] 8002eb8: 611a str r2, [r3, #16] 8002eba: e021 b.n 8002f00 } /* If Memory address size is 16Bit */ else { /* Send MSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_MSB(MemAddress); 8002ebc: 893b ldrh r3, [r7, #8] 8002ebe: 0a1b lsrs r3, r3, #8 8002ec0: b29b uxth r3, r3 8002ec2: b2da uxtb r2, r3 8002ec4: 68fb ldr r3, [r7, #12] 8002ec6: 681b ldr r3, [r3, #0] 8002ec8: 611a str r2, [r3, #16] /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) 8002eca: 6a7a ldr r2, [r7, #36] ; 0x24 8002ecc: 6a39 ldr r1, [r7, #32] 8002ece: 68f8 ldr r0, [r7, #12] 8002ed0: f000 f93e bl 8003150 8002ed4: 4603 mov r3, r0 8002ed6: 2b00 cmp r3, #0 8002ed8: d00d beq.n 8002ef6 { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) 8002eda: 68fb ldr r3, [r7, #12] 8002edc: 6c1b ldr r3, [r3, #64] ; 0x40 8002ede: 2b04 cmp r3, #4 8002ee0: d107 bne.n 8002ef2 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); 8002ee2: 68fb ldr r3, [r7, #12] 8002ee4: 681b ldr r3, [r3, #0] 8002ee6: 681a ldr r2, [r3, #0] 8002ee8: 68fb ldr r3, [r7, #12] 8002eea: 681b ldr r3, [r3, #0] 8002eec: f442 7200 orr.w r2, r2, #512 ; 0x200 8002ef0: 601a str r2, [r3, #0] } return HAL_ERROR; 8002ef2: 2301 movs r3, #1 8002ef4: e050 b.n 8002f98 } /* Send LSB of Memory Address */ hi2c->Instance->DR = I2C_MEM_ADD_LSB(MemAddress); 8002ef6: 893b ldrh r3, [r7, #8] 8002ef8: b2da uxtb r2, r3 8002efa: 68fb ldr r3, [r7, #12] 8002efc: 681b ldr r3, [r3, #0] 8002efe: 611a str r2, [r3, #16] } /* Wait until TXE flag is set */ if (I2C_WaitOnTXEFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK) 8002f00: 6a7a ldr r2, [r7, #36] ; 0x24 8002f02: 6a39 ldr r1, [r7, #32] 8002f04: 68f8 ldr r0, [r7, #12] 8002f06: f000 f923 bl 8003150 8002f0a: 4603 mov r3, r0 8002f0c: 2b00 cmp r3, #0 8002f0e: d00d beq.n 8002f2c { if (hi2c->ErrorCode == HAL_I2C_ERROR_AF) 8002f10: 68fb ldr r3, [r7, #12] 8002f12: 6c1b ldr r3, [r3, #64] ; 0x40 8002f14: 2b04 cmp r3, #4 8002f16: d107 bne.n 8002f28 { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); 8002f18: 68fb ldr r3, [r7, #12] 8002f1a: 681b ldr r3, [r3, #0] 8002f1c: 681a ldr r2, [r3, #0] 8002f1e: 68fb ldr r3, [r7, #12] 8002f20: 681b ldr r3, [r3, #0] 8002f22: f442 7200 orr.w r2, r2, #512 ; 0x200 8002f26: 601a str r2, [r3, #0] } return HAL_ERROR; 8002f28: 2301 movs r3, #1 8002f2a: e035 b.n 8002f98 } /* Generate Restart */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_START); 8002f2c: 68fb ldr r3, [r7, #12] 8002f2e: 681b ldr r3, [r3, #0] 8002f30: 681a ldr r2, [r3, #0] 8002f32: 68fb ldr r3, [r7, #12] 8002f34: 681b ldr r3, [r3, #0] 8002f36: f442 7280 orr.w r2, r2, #256 ; 0x100 8002f3a: 601a str r2, [r3, #0] /* Wait until SB flag is set */ if (I2C_WaitOnFlagUntilTimeout(hi2c, I2C_FLAG_SB, RESET, Timeout, Tickstart) != HAL_OK) 8002f3c: 6a7b ldr r3, [r7, #36] ; 0x24 8002f3e: 9300 str r3, [sp, #0] 8002f40: 6a3b ldr r3, [r7, #32] 8002f42: 2200 movs r2, #0 8002f44: f04f 1101 mov.w r1, #65537 ; 0x10001 8002f48: 68f8 ldr r0, [r7, #12] 8002f4a: f000 f82b bl 8002fa4 8002f4e: 4603 mov r3, r0 8002f50: 2b00 cmp r3, #0 8002f52: d00d beq.n 8002f70 { if (READ_BIT(hi2c->Instance->CR1, I2C_CR1_START) == I2C_CR1_START) 8002f54: 68fb ldr r3, [r7, #12] 8002f56: 681b ldr r3, [r3, #0] 8002f58: 681b ldr r3, [r3, #0] 8002f5a: f403 7380 and.w r3, r3, #256 ; 0x100 8002f5e: f5b3 7f80 cmp.w r3, #256 ; 0x100 8002f62: d103 bne.n 8002f6c { hi2c->ErrorCode = HAL_I2C_WRONG_START; 8002f64: 68fb ldr r3, [r7, #12] 8002f66: f44f 7200 mov.w r2, #512 ; 0x200 8002f6a: 641a str r2, [r3, #64] ; 0x40 } return HAL_TIMEOUT; 8002f6c: 2303 movs r3, #3 8002f6e: e013 b.n 8002f98 } /* Send slave address */ hi2c->Instance->DR = I2C_7BIT_ADD_READ(DevAddress); 8002f70: 897b ldrh r3, [r7, #10] 8002f72: b2db uxtb r3, r3 8002f74: f043 0301 orr.w r3, r3, #1 8002f78: b2da uxtb r2, r3 8002f7a: 68fb ldr r3, [r7, #12] 8002f7c: 681b ldr r3, [r3, #0] 8002f7e: 611a str r2, [r3, #16] /* Wait until ADDR flag is set */ if (I2C_WaitOnMasterAddressFlagUntilTimeout(hi2c, I2C_FLAG_ADDR, Timeout, Tickstart) != HAL_OK) 8002f80: 6a7b ldr r3, [r7, #36] ; 0x24 8002f82: 6a3a ldr r2, [r7, #32] 8002f84: 4906 ldr r1, [pc, #24] ; (8002fa0 ) 8002f86: 68f8 ldr r0, [r7, #12] 8002f88: f000 f863 bl 8003052 8002f8c: 4603 mov r3, r0 8002f8e: 2b00 cmp r3, #0 8002f90: d001 beq.n 8002f96 { return HAL_ERROR; 8002f92: 2301 movs r3, #1 8002f94: e000 b.n 8002f98 } return HAL_OK; 8002f96: 2300 movs r3, #0 } 8002f98: 4618 mov r0, r3 8002f9a: 3718 adds r7, #24 8002f9c: 46bd mov sp, r7 8002f9e: bd80 pop {r7, pc} 8002fa0: 00010002 .word 0x00010002 08002fa4 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart) { 8002fa4: b580 push {r7, lr} 8002fa6: b084 sub sp, #16 8002fa8: af00 add r7, sp, #0 8002faa: 60f8 str r0, [r7, #12] 8002fac: 60b9 str r1, [r7, #8] 8002fae: 603b str r3, [r7, #0] 8002fb0: 4613 mov r3, r2 8002fb2: 71fb strb r3, [r7, #7] /* Wait until flag is set */ while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) 8002fb4: e025 b.n 8003002 { /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) 8002fb6: 683b ldr r3, [r7, #0] 8002fb8: f1b3 3fff cmp.w r3, #4294967295 8002fbc: d021 beq.n 8003002 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) 8002fbe: f7fe fecd bl 8001d5c 8002fc2: 4602 mov r2, r0 8002fc4: 69bb ldr r3, [r7, #24] 8002fc6: 1ad3 subs r3, r2, r3 8002fc8: 683a ldr r2, [r7, #0] 8002fca: 429a cmp r2, r3 8002fcc: d302 bcc.n 8002fd4 8002fce: 683b ldr r3, [r7, #0] 8002fd0: 2b00 cmp r3, #0 8002fd2: d116 bne.n 8003002 { hi2c->PreviousState = I2C_STATE_NONE; 8002fd4: 68fb ldr r3, [r7, #12] 8002fd6: 2200 movs r2, #0 8002fd8: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; 8002fda: 68fb ldr r3, [r7, #12] 8002fdc: 2220 movs r2, #32 8002fde: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; 8002fe2: 68fb ldr r3, [r7, #12] 8002fe4: 2200 movs r2, #0 8002fe6: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; 8002fea: 68fb ldr r3, [r7, #12] 8002fec: 6c1b ldr r3, [r3, #64] ; 0x40 8002fee: f043 0220 orr.w r2, r3, #32 8002ff2: 68fb ldr r3, [r7, #12] 8002ff4: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); 8002ff6: 68fb ldr r3, [r7, #12] 8002ff8: 2200 movs r2, #0 8002ffa: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; 8002ffe: 2301 movs r3, #1 8003000: e023 b.n 800304a while (__HAL_I2C_GET_FLAG(hi2c, Flag) == Status) 8003002: 68bb ldr r3, [r7, #8] 8003004: 0c1b lsrs r3, r3, #16 8003006: b2db uxtb r3, r3 8003008: 2b01 cmp r3, #1 800300a: d10d bne.n 8003028 800300c: 68fb ldr r3, [r7, #12] 800300e: 681b ldr r3, [r3, #0] 8003010: 695b ldr r3, [r3, #20] 8003012: 43da mvns r2, r3 8003014: 68bb ldr r3, [r7, #8] 8003016: 4013 ands r3, r2 8003018: b29b uxth r3, r3 800301a: 2b00 cmp r3, #0 800301c: bf0c ite eq 800301e: 2301 moveq r3, #1 8003020: 2300 movne r3, #0 8003022: b2db uxtb r3, r3 8003024: 461a mov r2, r3 8003026: e00c b.n 8003042 8003028: 68fb ldr r3, [r7, #12] 800302a: 681b ldr r3, [r3, #0] 800302c: 699b ldr r3, [r3, #24] 800302e: 43da mvns r2, r3 8003030: 68bb ldr r3, [r7, #8] 8003032: 4013 ands r3, r2 8003034: b29b uxth r3, r3 8003036: 2b00 cmp r3, #0 8003038: bf0c ite eq 800303a: 2301 moveq r3, #1 800303c: 2300 movne r3, #0 800303e: b2db uxtb r3, r3 8003040: 461a mov r2, r3 8003042: 79fb ldrb r3, [r7, #7] 8003044: 429a cmp r2, r3 8003046: d0b6 beq.n 8002fb6 } } } return HAL_OK; 8003048: 2300 movs r3, #0 } 800304a: 4618 mov r0, r3 800304c: 3710 adds r7, #16 800304e: 46bd mov sp, r7 8003050: bd80 pop {r7, pc} 08003052 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnMasterAddressFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Flag, uint32_t Timeout, uint32_t Tickstart) { 8003052: b580 push {r7, lr} 8003054: b084 sub sp, #16 8003056: af00 add r7, sp, #0 8003058: 60f8 str r0, [r7, #12] 800305a: 60b9 str r1, [r7, #8] 800305c: 607a str r2, [r7, #4] 800305e: 603b str r3, [r7, #0] while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET) 8003060: e051 b.n 8003106 { if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) 8003062: 68fb ldr r3, [r7, #12] 8003064: 681b ldr r3, [r3, #0] 8003066: 695b ldr r3, [r3, #20] 8003068: f403 6380 and.w r3, r3, #1024 ; 0x400 800306c: f5b3 6f80 cmp.w r3, #1024 ; 0x400 8003070: d123 bne.n 80030ba { /* Generate Stop */ SET_BIT(hi2c->Instance->CR1, I2C_CR1_STOP); 8003072: 68fb ldr r3, [r7, #12] 8003074: 681b ldr r3, [r3, #0] 8003076: 681a ldr r2, [r3, #0] 8003078: 68fb ldr r3, [r7, #12] 800307a: 681b ldr r3, [r3, #0] 800307c: f442 7200 orr.w r2, r2, #512 ; 0x200 8003080: 601a str r2, [r3, #0] /* Clear AF Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); 8003082: 68fb ldr r3, [r7, #12] 8003084: 681b ldr r3, [r3, #0] 8003086: f46f 6280 mvn.w r2, #1024 ; 0x400 800308a: 615a str r2, [r3, #20] hi2c->PreviousState = I2C_STATE_NONE; 800308c: 68fb ldr r3, [r7, #12] 800308e: 2200 movs r2, #0 8003090: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; 8003092: 68fb ldr r3, [r7, #12] 8003094: 2220 movs r2, #32 8003096: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; 800309a: 68fb ldr r3, [r7, #12] 800309c: 2200 movs r2, #0 800309e: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_AF; 80030a2: 68fb ldr r3, [r7, #12] 80030a4: 6c1b ldr r3, [r3, #64] ; 0x40 80030a6: f043 0204 orr.w r2, r3, #4 80030aa: 68fb ldr r3, [r7, #12] 80030ac: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); 80030ae: 68fb ldr r3, [r7, #12] 80030b0: 2200 movs r2, #0 80030b2: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; 80030b6: 2301 movs r3, #1 80030b8: e046 b.n 8003148 } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) 80030ba: 687b ldr r3, [r7, #4] 80030bc: f1b3 3fff cmp.w r3, #4294967295 80030c0: d021 beq.n 8003106 { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) 80030c2: f7fe fe4b bl 8001d5c 80030c6: 4602 mov r2, r0 80030c8: 683b ldr r3, [r7, #0] 80030ca: 1ad3 subs r3, r2, r3 80030cc: 687a ldr r2, [r7, #4] 80030ce: 429a cmp r2, r3 80030d0: d302 bcc.n 80030d8 80030d2: 687b ldr r3, [r7, #4] 80030d4: 2b00 cmp r3, #0 80030d6: d116 bne.n 8003106 { hi2c->PreviousState = I2C_STATE_NONE; 80030d8: 68fb ldr r3, [r7, #12] 80030da: 2200 movs r2, #0 80030dc: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; 80030de: 68fb ldr r3, [r7, #12] 80030e0: 2220 movs r2, #32 80030e2: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; 80030e6: 68fb ldr r3, [r7, #12] 80030e8: 2200 movs r2, #0 80030ea: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; 80030ee: 68fb ldr r3, [r7, #12] 80030f0: 6c1b ldr r3, [r3, #64] ; 0x40 80030f2: f043 0220 orr.w r2, r3, #32 80030f6: 68fb ldr r3, [r7, #12] 80030f8: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); 80030fa: 68fb ldr r3, [r7, #12] 80030fc: 2200 movs r2, #0 80030fe: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; 8003102: 2301 movs r3, #1 8003104: e020 b.n 8003148 while (__HAL_I2C_GET_FLAG(hi2c, Flag) == RESET) 8003106: 68bb ldr r3, [r7, #8] 8003108: 0c1b lsrs r3, r3, #16 800310a: b2db uxtb r3, r3 800310c: 2b01 cmp r3, #1 800310e: d10c bne.n 800312a 8003110: 68fb ldr r3, [r7, #12] 8003112: 681b ldr r3, [r3, #0] 8003114: 695b ldr r3, [r3, #20] 8003116: 43da mvns r2, r3 8003118: 68bb ldr r3, [r7, #8] 800311a: 4013 ands r3, r2 800311c: b29b uxth r3, r3 800311e: 2b00 cmp r3, #0 8003120: bf14 ite ne 8003122: 2301 movne r3, #1 8003124: 2300 moveq r3, #0 8003126: b2db uxtb r3, r3 8003128: e00b b.n 8003142 800312a: 68fb ldr r3, [r7, #12] 800312c: 681b ldr r3, [r3, #0] 800312e: 699b ldr r3, [r3, #24] 8003130: 43da mvns r2, r3 8003132: 68bb ldr r3, [r7, #8] 8003134: 4013 ands r3, r2 8003136: b29b uxth r3, r3 8003138: 2b00 cmp r3, #0 800313a: bf14 ite ne 800313c: 2301 movne r3, #1 800313e: 2300 moveq r3, #0 8003140: b2db uxtb r3, r3 8003142: 2b00 cmp r3, #0 8003144: d18d bne.n 8003062 } } } return HAL_OK; 8003146: 2300 movs r3, #0 } 8003148: 4618 mov r0, r3 800314a: 3710 adds r7, #16 800314c: 46bd mov sp, r7 800314e: bd80 pop {r7, pc} 08003150 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnTXEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { 8003150: b580 push {r7, lr} 8003152: b084 sub sp, #16 8003154: af00 add r7, sp, #0 8003156: 60f8 str r0, [r7, #12] 8003158: 60b9 str r1, [r7, #8] 800315a: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) 800315c: e02d b.n 80031ba { /* Check if a NACK is detected */ if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) 800315e: 68f8 ldr r0, [r7, #12] 8003160: f000 f8ce bl 8003300 8003164: 4603 mov r3, r0 8003166: 2b00 cmp r3, #0 8003168: d001 beq.n 800316e { return HAL_ERROR; 800316a: 2301 movs r3, #1 800316c: e02d b.n 80031ca } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) 800316e: 68bb ldr r3, [r7, #8] 8003170: f1b3 3fff cmp.w r3, #4294967295 8003174: d021 beq.n 80031ba { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) 8003176: f7fe fdf1 bl 8001d5c 800317a: 4602 mov r2, r0 800317c: 687b ldr r3, [r7, #4] 800317e: 1ad3 subs r3, r2, r3 8003180: 68ba ldr r2, [r7, #8] 8003182: 429a cmp r2, r3 8003184: d302 bcc.n 800318c 8003186: 68bb ldr r3, [r7, #8] 8003188: 2b00 cmp r3, #0 800318a: d116 bne.n 80031ba { hi2c->PreviousState = I2C_STATE_NONE; 800318c: 68fb ldr r3, [r7, #12] 800318e: 2200 movs r2, #0 8003190: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; 8003192: 68fb ldr r3, [r7, #12] 8003194: 2220 movs r2, #32 8003196: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; 800319a: 68fb ldr r3, [r7, #12] 800319c: 2200 movs r2, #0 800319e: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; 80031a2: 68fb ldr r3, [r7, #12] 80031a4: 6c1b ldr r3, [r3, #64] ; 0x40 80031a6: f043 0220 orr.w r2, r3, #32 80031aa: 68fb ldr r3, [r7, #12] 80031ac: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); 80031ae: 68fb ldr r3, [r7, #12] 80031b0: 2200 movs r2, #0 80031b2: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; 80031b6: 2301 movs r3, #1 80031b8: e007 b.n 80031ca while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_TXE) == RESET) 80031ba: 68fb ldr r3, [r7, #12] 80031bc: 681b ldr r3, [r3, #0] 80031be: 695b ldr r3, [r3, #20] 80031c0: f003 0380 and.w r3, r3, #128 ; 0x80 80031c4: 2b80 cmp r3, #128 ; 0x80 80031c6: d1ca bne.n 800315e } } } return HAL_OK; 80031c8: 2300 movs r3, #0 } 80031ca: 4618 mov r0, r3 80031cc: 3710 adds r7, #16 80031ce: 46bd mov sp, r7 80031d0: bd80 pop {r7, pc} 080031d2 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnBTFFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { 80031d2: b580 push {r7, lr} 80031d4: b084 sub sp, #16 80031d6: af00 add r7, sp, #0 80031d8: 60f8 str r0, [r7, #12] 80031da: 60b9 str r1, [r7, #8] 80031dc: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET) 80031de: e02d b.n 800323c { /* Check if a NACK is detected */ if (I2C_IsAcknowledgeFailed(hi2c) != HAL_OK) 80031e0: 68f8 ldr r0, [r7, #12] 80031e2: f000 f88d bl 8003300 80031e6: 4603 mov r3, r0 80031e8: 2b00 cmp r3, #0 80031ea: d001 beq.n 80031f0 { return HAL_ERROR; 80031ec: 2301 movs r3, #1 80031ee: e02d b.n 800324c } /* Check for the Timeout */ if (Timeout != HAL_MAX_DELAY) 80031f0: 68bb ldr r3, [r7, #8] 80031f2: f1b3 3fff cmp.w r3, #4294967295 80031f6: d021 beq.n 800323c { if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) 80031f8: f7fe fdb0 bl 8001d5c 80031fc: 4602 mov r2, r0 80031fe: 687b ldr r3, [r7, #4] 8003200: 1ad3 subs r3, r2, r3 8003202: 68ba ldr r2, [r7, #8] 8003204: 429a cmp r2, r3 8003206: d302 bcc.n 800320e 8003208: 68bb ldr r3, [r7, #8] 800320a: 2b00 cmp r3, #0 800320c: d116 bne.n 800323c { hi2c->PreviousState = I2C_STATE_NONE; 800320e: 68fb ldr r3, [r7, #12] 8003210: 2200 movs r2, #0 8003212: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; 8003214: 68fb ldr r3, [r7, #12] 8003216: 2220 movs r2, #32 8003218: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; 800321c: 68fb ldr r3, [r7, #12] 800321e: 2200 movs r2, #0 8003220: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; 8003224: 68fb ldr r3, [r7, #12] 8003226: 6c1b ldr r3, [r3, #64] ; 0x40 8003228: f043 0220 orr.w r2, r3, #32 800322c: 68fb ldr r3, [r7, #12] 800322e: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); 8003230: 68fb ldr r3, [r7, #12] 8003232: 2200 movs r2, #0 8003234: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; 8003238: 2301 movs r3, #1 800323a: e007 b.n 800324c while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_BTF) == RESET) 800323c: 68fb ldr r3, [r7, #12] 800323e: 681b ldr r3, [r3, #0] 8003240: 695b ldr r3, [r3, #20] 8003242: f003 0304 and.w r3, r3, #4 8003246: 2b04 cmp r3, #4 8003248: d1ca bne.n 80031e0 } } } return HAL_OK; 800324a: 2300 movs r3, #0 } 800324c: 4618 mov r0, r3 800324e: 3710 adds r7, #16 8003250: 46bd mov sp, r7 8003252: bd80 pop {r7, pc} 08003254 : * @param Timeout Timeout duration * @param Tickstart Tick start value * @retval HAL status */ static HAL_StatusTypeDef I2C_WaitOnRXNEFlagUntilTimeout(I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) { 8003254: b580 push {r7, lr} 8003256: b084 sub sp, #16 8003258: af00 add r7, sp, #0 800325a: 60f8 str r0, [r7, #12] 800325c: 60b9 str r1, [r7, #8] 800325e: 607a str r2, [r7, #4] while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET) 8003260: e042 b.n 80032e8 { /* Check if a STOPF is detected */ if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_STOPF) == SET) 8003262: 68fb ldr r3, [r7, #12] 8003264: 681b ldr r3, [r3, #0] 8003266: 695b ldr r3, [r3, #20] 8003268: f003 0310 and.w r3, r3, #16 800326c: 2b10 cmp r3, #16 800326e: d119 bne.n 80032a4 { /* Clear STOP Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_STOPF); 8003270: 68fb ldr r3, [r7, #12] 8003272: 681b ldr r3, [r3, #0] 8003274: f06f 0210 mvn.w r2, #16 8003278: 615a str r2, [r3, #20] hi2c->PreviousState = I2C_STATE_NONE; 800327a: 68fb ldr r3, [r7, #12] 800327c: 2200 movs r2, #0 800327e: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; 8003280: 68fb ldr r3, [r7, #12] 8003282: 2220 movs r2, #32 8003284: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; 8003288: 68fb ldr r3, [r7, #12] 800328a: 2200 movs r2, #0 800328c: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_NONE; 8003290: 68fb ldr r3, [r7, #12] 8003292: 6c1a ldr r2, [r3, #64] ; 0x40 8003294: 68fb ldr r3, [r7, #12] 8003296: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); 8003298: 68fb ldr r3, [r7, #12] 800329a: 2200 movs r2, #0 800329c: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; 80032a0: 2301 movs r3, #1 80032a2: e029 b.n 80032f8 } /* Check for the Timeout */ if (((HAL_GetTick() - Tickstart) > Timeout) || (Timeout == 0U)) 80032a4: f7fe fd5a bl 8001d5c 80032a8: 4602 mov r2, r0 80032aa: 687b ldr r3, [r7, #4] 80032ac: 1ad3 subs r3, r2, r3 80032ae: 68ba ldr r2, [r7, #8] 80032b0: 429a cmp r2, r3 80032b2: d302 bcc.n 80032ba 80032b4: 68bb ldr r3, [r7, #8] 80032b6: 2b00 cmp r3, #0 80032b8: d116 bne.n 80032e8 { hi2c->PreviousState = I2C_STATE_NONE; 80032ba: 68fb ldr r3, [r7, #12] 80032bc: 2200 movs r2, #0 80032be: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; 80032c0: 68fb ldr r3, [r7, #12] 80032c2: 2220 movs r2, #32 80032c4: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; 80032c8: 68fb ldr r3, [r7, #12] 80032ca: 2200 movs r2, #0 80032cc: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_TIMEOUT; 80032d0: 68fb ldr r3, [r7, #12] 80032d2: 6c1b ldr r3, [r3, #64] ; 0x40 80032d4: f043 0220 orr.w r2, r3, #32 80032d8: 68fb ldr r3, [r7, #12] 80032da: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); 80032dc: 68fb ldr r3, [r7, #12] 80032de: 2200 movs r2, #0 80032e0: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; 80032e4: 2301 movs r3, #1 80032e6: e007 b.n 80032f8 while (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_RXNE) == RESET) 80032e8: 68fb ldr r3, [r7, #12] 80032ea: 681b ldr r3, [r3, #0] 80032ec: 695b ldr r3, [r3, #20] 80032ee: f003 0340 and.w r3, r3, #64 ; 0x40 80032f2: 2b40 cmp r3, #64 ; 0x40 80032f4: d1b5 bne.n 8003262 } } return HAL_OK; 80032f6: 2300 movs r3, #0 } 80032f8: 4618 mov r0, r3 80032fa: 3710 adds r7, #16 80032fc: 46bd mov sp, r7 80032fe: bd80 pop {r7, pc} 08003300 : * @param hi2c Pointer to a I2C_HandleTypeDef structure that contains * the configuration information for the specified I2C. * @retval HAL status */ static HAL_StatusTypeDef I2C_IsAcknowledgeFailed(I2C_HandleTypeDef *hi2c) { 8003300: b480 push {r7} 8003302: b083 sub sp, #12 8003304: af00 add r7, sp, #0 8003306: 6078 str r0, [r7, #4] if (__HAL_I2C_GET_FLAG(hi2c, I2C_FLAG_AF) == SET) 8003308: 687b ldr r3, [r7, #4] 800330a: 681b ldr r3, [r3, #0] 800330c: 695b ldr r3, [r3, #20] 800330e: f403 6380 and.w r3, r3, #1024 ; 0x400 8003312: f5b3 6f80 cmp.w r3, #1024 ; 0x400 8003316: d11b bne.n 8003350 { /* Clear NACKF Flag */ __HAL_I2C_CLEAR_FLAG(hi2c, I2C_FLAG_AF); 8003318: 687b ldr r3, [r7, #4] 800331a: 681b ldr r3, [r3, #0] 800331c: f46f 6280 mvn.w r2, #1024 ; 0x400 8003320: 615a str r2, [r3, #20] hi2c->PreviousState = I2C_STATE_NONE; 8003322: 687b ldr r3, [r7, #4] 8003324: 2200 movs r2, #0 8003326: 631a str r2, [r3, #48] ; 0x30 hi2c->State = HAL_I2C_STATE_READY; 8003328: 687b ldr r3, [r7, #4] 800332a: 2220 movs r2, #32 800332c: f883 203d strb.w r2, [r3, #61] ; 0x3d hi2c->Mode = HAL_I2C_MODE_NONE; 8003330: 687b ldr r3, [r7, #4] 8003332: 2200 movs r2, #0 8003334: f883 203e strb.w r2, [r3, #62] ; 0x3e hi2c->ErrorCode |= HAL_I2C_ERROR_AF; 8003338: 687b ldr r3, [r7, #4] 800333a: 6c1b ldr r3, [r3, #64] ; 0x40 800333c: f043 0204 orr.w r2, r3, #4 8003340: 687b ldr r3, [r7, #4] 8003342: 641a str r2, [r3, #64] ; 0x40 /* Process Unlocked */ __HAL_UNLOCK(hi2c); 8003344: 687b ldr r3, [r7, #4] 8003346: 2200 movs r2, #0 8003348: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_ERROR; 800334c: 2301 movs r3, #1 800334e: e000 b.n 8003352 } return HAL_OK; 8003350: 2300 movs r3, #0 } 8003352: 4618 mov r0, r3 8003354: 370c adds r7, #12 8003356: 46bd mov sp, r7 8003358: bc80 pop {r7} 800335a: 4770 bx lr 0800335c : * supported by this macro. User should request a transition to HSE Off * first and then HSE On or HSE Bypass. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct) { 800335c: b580 push {r7, lr} 800335e: b086 sub sp, #24 8003360: af00 add r7, sp, #0 8003362: 6078 str r0, [r7, #4] uint32_t tickstart; uint32_t pll_config; /* Check Null pointer */ if (RCC_OscInitStruct == NULL) 8003364: 687b ldr r3, [r7, #4] 8003366: 2b00 cmp r3, #0 8003368: d101 bne.n 800336e { return HAL_ERROR; 800336a: 2301 movs r3, #1 800336c: e272 b.n 8003854 /* Check the parameters */ assert_param(IS_RCC_OSCILLATORTYPE(RCC_OscInitStruct->OscillatorType)); /*------------------------------- HSE Configuration ------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSE) == RCC_OSCILLATORTYPE_HSE) 800336e: 687b ldr r3, [r7, #4] 8003370: 681b ldr r3, [r3, #0] 8003372: f003 0301 and.w r3, r3, #1 8003376: 2b00 cmp r3, #0 8003378: f000 8087 beq.w 800348a { /* Check the parameters */ assert_param(IS_RCC_HSE(RCC_OscInitStruct->HSEState)); /* When the HSE is used as system clock or clock source for PLL in these cases it is not allowed to be disabled */ if ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_HSE) 800337c: 4b92 ldr r3, [pc, #584] ; (80035c8 ) 800337e: 685b ldr r3, [r3, #4] 8003380: f003 030c and.w r3, r3, #12 8003384: 2b04 cmp r3, #4 8003386: d00c beq.n 80033a2 || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSE))) 8003388: 4b8f ldr r3, [pc, #572] ; (80035c8 ) 800338a: 685b ldr r3, [r3, #4] 800338c: f003 030c and.w r3, r3, #12 8003390: 2b08 cmp r3, #8 8003392: d112 bne.n 80033ba 8003394: 4b8c ldr r3, [pc, #560] ; (80035c8 ) 8003396: 685b ldr r3, [r3, #4] 8003398: f403 3380 and.w r3, r3, #65536 ; 0x10000 800339c: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 80033a0: d10b bne.n 80033ba { if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) 80033a2: 4b89 ldr r3, [pc, #548] ; (80035c8 ) 80033a4: 681b ldr r3, [r3, #0] 80033a6: f403 3300 and.w r3, r3, #131072 ; 0x20000 80033aa: 2b00 cmp r3, #0 80033ac: d06c beq.n 8003488 80033ae: 687b ldr r3, [r7, #4] 80033b0: 685b ldr r3, [r3, #4] 80033b2: 2b00 cmp r3, #0 80033b4: d168 bne.n 8003488 { return HAL_ERROR; 80033b6: 2301 movs r3, #1 80033b8: e24c b.n 8003854 } } else { /* Set the new HSE configuration ---------------------------------------*/ __HAL_RCC_HSE_CONFIG(RCC_OscInitStruct->HSEState); 80033ba: 687b ldr r3, [r7, #4] 80033bc: 685b ldr r3, [r3, #4] 80033be: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 80033c2: d106 bne.n 80033d2 80033c4: 4b80 ldr r3, [pc, #512] ; (80035c8 ) 80033c6: 681b ldr r3, [r3, #0] 80033c8: 4a7f ldr r2, [pc, #508] ; (80035c8 ) 80033ca: f443 3380 orr.w r3, r3, #65536 ; 0x10000 80033ce: 6013 str r3, [r2, #0] 80033d0: e02e b.n 8003430 80033d2: 687b ldr r3, [r7, #4] 80033d4: 685b ldr r3, [r3, #4] 80033d6: 2b00 cmp r3, #0 80033d8: d10c bne.n 80033f4 80033da: 4b7b ldr r3, [pc, #492] ; (80035c8 ) 80033dc: 681b ldr r3, [r3, #0] 80033de: 4a7a ldr r2, [pc, #488] ; (80035c8 ) 80033e0: f423 3380 bic.w r3, r3, #65536 ; 0x10000 80033e4: 6013 str r3, [r2, #0] 80033e6: 4b78 ldr r3, [pc, #480] ; (80035c8 ) 80033e8: 681b ldr r3, [r3, #0] 80033ea: 4a77 ldr r2, [pc, #476] ; (80035c8 ) 80033ec: f423 2380 bic.w r3, r3, #262144 ; 0x40000 80033f0: 6013 str r3, [r2, #0] 80033f2: e01d b.n 8003430 80033f4: 687b ldr r3, [r7, #4] 80033f6: 685b ldr r3, [r3, #4] 80033f8: f5b3 2fa0 cmp.w r3, #327680 ; 0x50000 80033fc: d10c bne.n 8003418 80033fe: 4b72 ldr r3, [pc, #456] ; (80035c8 ) 8003400: 681b ldr r3, [r3, #0] 8003402: 4a71 ldr r2, [pc, #452] ; (80035c8 ) 8003404: f443 2380 orr.w r3, r3, #262144 ; 0x40000 8003408: 6013 str r3, [r2, #0] 800340a: 4b6f ldr r3, [pc, #444] ; (80035c8 ) 800340c: 681b ldr r3, [r3, #0] 800340e: 4a6e ldr r2, [pc, #440] ; (80035c8 ) 8003410: f443 3380 orr.w r3, r3, #65536 ; 0x10000 8003414: 6013 str r3, [r2, #0] 8003416: e00b b.n 8003430 8003418: 4b6b ldr r3, [pc, #428] ; (80035c8 ) 800341a: 681b ldr r3, [r3, #0] 800341c: 4a6a ldr r2, [pc, #424] ; (80035c8 ) 800341e: f423 3380 bic.w r3, r3, #65536 ; 0x10000 8003422: 6013 str r3, [r2, #0] 8003424: 4b68 ldr r3, [pc, #416] ; (80035c8 ) 8003426: 681b ldr r3, [r3, #0] 8003428: 4a67 ldr r2, [pc, #412] ; (80035c8 ) 800342a: f423 2380 bic.w r3, r3, #262144 ; 0x40000 800342e: 6013 str r3, [r2, #0] /* Check the HSE State */ if (RCC_OscInitStruct->HSEState != RCC_HSE_OFF) 8003430: 687b ldr r3, [r7, #4] 8003432: 685b ldr r3, [r3, #4] 8003434: 2b00 cmp r3, #0 8003436: d013 beq.n 8003460 { /* Get Start Tick */ tickstart = HAL_GetTick(); 8003438: f7fe fc90 bl 8001d5c 800343c: 6138 str r0, [r7, #16] /* Wait till HSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 800343e: e008 b.n 8003452 { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) 8003440: f7fe fc8c bl 8001d5c 8003444: 4602 mov r2, r0 8003446: 693b ldr r3, [r7, #16] 8003448: 1ad3 subs r3, r2, r3 800344a: 2b64 cmp r3, #100 ; 0x64 800344c: d901 bls.n 8003452 { return HAL_TIMEOUT; 800344e: 2303 movs r3, #3 8003450: e200 b.n 8003854 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 8003452: 4b5d ldr r3, [pc, #372] ; (80035c8 ) 8003454: 681b ldr r3, [r3, #0] 8003456: f403 3300 and.w r3, r3, #131072 ; 0x20000 800345a: 2b00 cmp r3, #0 800345c: d0f0 beq.n 8003440 800345e: e014 b.n 800348a } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); 8003460: f7fe fc7c bl 8001d5c 8003464: 6138 str r0, [r7, #16] /* Wait till HSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) 8003466: e008 b.n 800347a { if ((HAL_GetTick() - tickstart) > HSE_TIMEOUT_VALUE) 8003468: f7fe fc78 bl 8001d5c 800346c: 4602 mov r2, r0 800346e: 693b ldr r3, [r7, #16] 8003470: 1ad3 subs r3, r2, r3 8003472: 2b64 cmp r3, #100 ; 0x64 8003474: d901 bls.n 800347a { return HAL_TIMEOUT; 8003476: 2303 movs r3, #3 8003478: e1ec b.n 8003854 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) 800347a: 4b53 ldr r3, [pc, #332] ; (80035c8 ) 800347c: 681b ldr r3, [r3, #0] 800347e: f403 3300 and.w r3, r3, #131072 ; 0x20000 8003482: 2b00 cmp r3, #0 8003484: d1f0 bne.n 8003468 8003486: e000 b.n 800348a if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) != RESET) && (RCC_OscInitStruct->HSEState == RCC_HSE_OFF)) 8003488: bf00 nop } } } } /*----------------------------- HSI Configuration --------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_HSI) == RCC_OSCILLATORTYPE_HSI) 800348a: 687b ldr r3, [r7, #4] 800348c: 681b ldr r3, [r3, #0] 800348e: f003 0302 and.w r3, r3, #2 8003492: 2b00 cmp r3, #0 8003494: d063 beq.n 800355e /* 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) 8003496: 4b4c ldr r3, [pc, #304] ; (80035c8 ) 8003498: 685b ldr r3, [r3, #4] 800349a: f003 030c and.w r3, r3, #12 800349e: 2b00 cmp r3, #0 80034a0: d00b beq.n 80034ba || ((__HAL_RCC_GET_SYSCLK_SOURCE() == RCC_SYSCLKSOURCE_STATUS_PLLCLK) && (__HAL_RCC_GET_PLL_OSCSOURCE() == RCC_PLLSOURCE_HSI_DIV2))) 80034a2: 4b49 ldr r3, [pc, #292] ; (80035c8 ) 80034a4: 685b ldr r3, [r3, #4] 80034a6: f003 030c and.w r3, r3, #12 80034aa: 2b08 cmp r3, #8 80034ac: d11c bne.n 80034e8 80034ae: 4b46 ldr r3, [pc, #280] ; (80035c8 ) 80034b0: 685b ldr r3, [r3, #4] 80034b2: f403 3380 and.w r3, r3, #65536 ; 0x10000 80034b6: 2b00 cmp r3, #0 80034b8: d116 bne.n 80034e8 { /* 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)) 80034ba: 4b43 ldr r3, [pc, #268] ; (80035c8 ) 80034bc: 681b ldr r3, [r3, #0] 80034be: f003 0302 and.w r3, r3, #2 80034c2: 2b00 cmp r3, #0 80034c4: d005 beq.n 80034d2 80034c6: 687b ldr r3, [r7, #4] 80034c8: 691b ldr r3, [r3, #16] 80034ca: 2b01 cmp r3, #1 80034cc: d001 beq.n 80034d2 { return HAL_ERROR; 80034ce: 2301 movs r3, #1 80034d0: e1c0 b.n 8003854 } /* Otherwise, just the calibration is allowed */ else { /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); 80034d2: 4b3d ldr r3, [pc, #244] ; (80035c8 ) 80034d4: 681b ldr r3, [r3, #0] 80034d6: f023 02f8 bic.w r2, r3, #248 ; 0xf8 80034da: 687b ldr r3, [r7, #4] 80034dc: 695b ldr r3, [r3, #20] 80034de: 00db lsls r3, r3, #3 80034e0: 4939 ldr r1, [pc, #228] ; (80035c8 ) 80034e2: 4313 orrs r3, r2 80034e4: 600b str r3, [r1, #0] if ((__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) && (RCC_OscInitStruct->HSIState != RCC_HSI_ON)) 80034e6: e03a b.n 800355e } } else { /* Check the HSI State */ if (RCC_OscInitStruct->HSIState != RCC_HSI_OFF) 80034e8: 687b ldr r3, [r7, #4] 80034ea: 691b ldr r3, [r3, #16] 80034ec: 2b00 cmp r3, #0 80034ee: d020 beq.n 8003532 { /* Enable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_ENABLE(); 80034f0: 4b36 ldr r3, [pc, #216] ; (80035cc ) 80034f2: 2201 movs r2, #1 80034f4: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 80034f6: f7fe fc31 bl 8001d5c 80034fa: 6138 str r0, [r7, #16] /* Wait till HSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 80034fc: e008 b.n 8003510 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) 80034fe: f7fe fc2d bl 8001d5c 8003502: 4602 mov r2, r0 8003504: 693b ldr r3, [r7, #16] 8003506: 1ad3 subs r3, r2, r3 8003508: 2b02 cmp r3, #2 800350a: d901 bls.n 8003510 { return HAL_TIMEOUT; 800350c: 2303 movs r3, #3 800350e: e1a1 b.n 8003854 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 8003510: 4b2d ldr r3, [pc, #180] ; (80035c8 ) 8003512: 681b ldr r3, [r3, #0] 8003514: f003 0302 and.w r3, r3, #2 8003518: 2b00 cmp r3, #0 800351a: d0f0 beq.n 80034fe } } /* Adjusts the Internal High Speed oscillator (HSI) calibration value.*/ __HAL_RCC_HSI_CALIBRATIONVALUE_ADJUST(RCC_OscInitStruct->HSICalibrationValue); 800351c: 4b2a ldr r3, [pc, #168] ; (80035c8 ) 800351e: 681b ldr r3, [r3, #0] 8003520: f023 02f8 bic.w r2, r3, #248 ; 0xf8 8003524: 687b ldr r3, [r7, #4] 8003526: 695b ldr r3, [r3, #20] 8003528: 00db lsls r3, r3, #3 800352a: 4927 ldr r1, [pc, #156] ; (80035c8 ) 800352c: 4313 orrs r3, r2 800352e: 600b str r3, [r1, #0] 8003530: e015 b.n 800355e } else { /* Disable the Internal High Speed oscillator (HSI). */ __HAL_RCC_HSI_DISABLE(); 8003532: 4b26 ldr r3, [pc, #152] ; (80035cc ) 8003534: 2200 movs r2, #0 8003536: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8003538: f7fe fc10 bl 8001d5c 800353c: 6138 str r0, [r7, #16] /* Wait till HSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) 800353e: e008 b.n 8003552 { if ((HAL_GetTick() - tickstart) > HSI_TIMEOUT_VALUE) 8003540: f7fe fc0c bl 8001d5c 8003544: 4602 mov r2, r0 8003546: 693b ldr r3, [r7, #16] 8003548: 1ad3 subs r3, r2, r3 800354a: 2b02 cmp r3, #2 800354c: d901 bls.n 8003552 { return HAL_TIMEOUT; 800354e: 2303 movs r3, #3 8003550: e180 b.n 8003854 while (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) != RESET) 8003552: 4b1d ldr r3, [pc, #116] ; (80035c8 ) 8003554: 681b ldr r3, [r3, #0] 8003556: f003 0302 and.w r3, r3, #2 800355a: 2b00 cmp r3, #0 800355c: d1f0 bne.n 8003540 } } } } /*------------------------------ LSI Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSI) == RCC_OSCILLATORTYPE_LSI) 800355e: 687b ldr r3, [r7, #4] 8003560: 681b ldr r3, [r3, #0] 8003562: f003 0308 and.w r3, r3, #8 8003566: 2b00 cmp r3, #0 8003568: d03a beq.n 80035e0 { /* Check the parameters */ assert_param(IS_RCC_LSI(RCC_OscInitStruct->LSIState)); /* Check the LSI State */ if (RCC_OscInitStruct->LSIState != RCC_LSI_OFF) 800356a: 687b ldr r3, [r7, #4] 800356c: 699b ldr r3, [r3, #24] 800356e: 2b00 cmp r3, #0 8003570: d019 beq.n 80035a6 { /* Enable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_ENABLE(); 8003572: 4b17 ldr r3, [pc, #92] ; (80035d0 ) 8003574: 2201 movs r2, #1 8003576: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 8003578: f7fe fbf0 bl 8001d5c 800357c: 6138 str r0, [r7, #16] /* Wait till LSI is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) 800357e: e008 b.n 8003592 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) 8003580: f7fe fbec bl 8001d5c 8003584: 4602 mov r2, r0 8003586: 693b ldr r3, [r7, #16] 8003588: 1ad3 subs r3, r2, r3 800358a: 2b02 cmp r3, #2 800358c: d901 bls.n 8003592 { return HAL_TIMEOUT; 800358e: 2303 movs r3, #3 8003590: e160 b.n 8003854 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) == RESET) 8003592: 4b0d ldr r3, [pc, #52] ; (80035c8 ) 8003594: 6a5b ldr r3, [r3, #36] ; 0x24 8003596: f003 0302 and.w r3, r3, #2 800359a: 2b00 cmp r3, #0 800359c: d0f0 beq.n 8003580 } } /* To have a fully stabilized clock in the specified range, a software delay of 1ms should be added.*/ RCC_Delay(1); 800359e: 2001 movs r0, #1 80035a0: f000 fac4 bl 8003b2c 80035a4: e01c b.n 80035e0 } else { /* Disable the Internal Low Speed oscillator (LSI). */ __HAL_RCC_LSI_DISABLE(); 80035a6: 4b0a ldr r3, [pc, #40] ; (80035d0 ) 80035a8: 2200 movs r2, #0 80035aa: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 80035ac: f7fe fbd6 bl 8001d5c 80035b0: 6138 str r0, [r7, #16] /* Wait till LSI is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) 80035b2: e00f b.n 80035d4 { if ((HAL_GetTick() - tickstart) > LSI_TIMEOUT_VALUE) 80035b4: f7fe fbd2 bl 8001d5c 80035b8: 4602 mov r2, r0 80035ba: 693b ldr r3, [r7, #16] 80035bc: 1ad3 subs r3, r2, r3 80035be: 2b02 cmp r3, #2 80035c0: d908 bls.n 80035d4 { return HAL_TIMEOUT; 80035c2: 2303 movs r3, #3 80035c4: e146 b.n 8003854 80035c6: bf00 nop 80035c8: 40021000 .word 0x40021000 80035cc: 42420000 .word 0x42420000 80035d0: 42420480 .word 0x42420480 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSIRDY) != RESET) 80035d4: 4b92 ldr r3, [pc, #584] ; (8003820 ) 80035d6: 6a5b ldr r3, [r3, #36] ; 0x24 80035d8: f003 0302 and.w r3, r3, #2 80035dc: 2b00 cmp r3, #0 80035de: d1e9 bne.n 80035b4 } } } } /*------------------------------ LSE Configuration -------------------------*/ if (((RCC_OscInitStruct->OscillatorType) & RCC_OSCILLATORTYPE_LSE) == RCC_OSCILLATORTYPE_LSE) 80035e0: 687b ldr r3, [r7, #4] 80035e2: 681b ldr r3, [r3, #0] 80035e4: f003 0304 and.w r3, r3, #4 80035e8: 2b00 cmp r3, #0 80035ea: f000 80a6 beq.w 800373a { FlagStatus pwrclkchanged = RESET; 80035ee: 2300 movs r3, #0 80035f0: 75fb strb r3, [r7, #23] /* Check the parameters */ assert_param(IS_RCC_LSE(RCC_OscInitStruct->LSEState)); /* Update LSE configuration in Backup Domain control register */ /* Requires to enable write access to Backup Domain of necessary */ if (__HAL_RCC_PWR_IS_CLK_DISABLED()) 80035f2: 4b8b ldr r3, [pc, #556] ; (8003820 ) 80035f4: 69db ldr r3, [r3, #28] 80035f6: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 80035fa: 2b00 cmp r3, #0 80035fc: d10d bne.n 800361a { __HAL_RCC_PWR_CLK_ENABLE(); 80035fe: 4b88 ldr r3, [pc, #544] ; (8003820 ) 8003600: 69db ldr r3, [r3, #28] 8003602: 4a87 ldr r2, [pc, #540] ; (8003820 ) 8003604: f043 5380 orr.w r3, r3, #268435456 ; 0x10000000 8003608: 61d3 str r3, [r2, #28] 800360a: 4b85 ldr r3, [pc, #532] ; (8003820 ) 800360c: 69db ldr r3, [r3, #28] 800360e: f003 5380 and.w r3, r3, #268435456 ; 0x10000000 8003612: 60bb str r3, [r7, #8] 8003614: 68bb ldr r3, [r7, #8] pwrclkchanged = SET; 8003616: 2301 movs r3, #1 8003618: 75fb strb r3, [r7, #23] } if (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 800361a: 4b82 ldr r3, [pc, #520] ; (8003824 ) 800361c: 681b ldr r3, [r3, #0] 800361e: f403 7380 and.w r3, r3, #256 ; 0x100 8003622: 2b00 cmp r3, #0 8003624: d118 bne.n 8003658 { /* Enable write access to Backup domain */ SET_BIT(PWR->CR, PWR_CR_DBP); 8003626: 4b7f ldr r3, [pc, #508] ; (8003824 ) 8003628: 681b ldr r3, [r3, #0] 800362a: 4a7e ldr r2, [pc, #504] ; (8003824 ) 800362c: f443 7380 orr.w r3, r3, #256 ; 0x100 8003630: 6013 str r3, [r2, #0] /* Wait for Backup domain Write protection disable */ tickstart = HAL_GetTick(); 8003632: f7fe fb93 bl 8001d5c 8003636: 6138 str r0, [r7, #16] while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 8003638: e008 b.n 800364c { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) 800363a: f7fe fb8f bl 8001d5c 800363e: 4602 mov r2, r0 8003640: 693b ldr r3, [r7, #16] 8003642: 1ad3 subs r3, r2, r3 8003644: 2b64 cmp r3, #100 ; 0x64 8003646: d901 bls.n 800364c { return HAL_TIMEOUT; 8003648: 2303 movs r3, #3 800364a: e103 b.n 8003854 while (HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP)) 800364c: 4b75 ldr r3, [pc, #468] ; (8003824 ) 800364e: 681b ldr r3, [r3, #0] 8003650: f403 7380 and.w r3, r3, #256 ; 0x100 8003654: 2b00 cmp r3, #0 8003656: d0f0 beq.n 800363a } } } /* Set the new LSE configuration -----------------------------------------*/ __HAL_RCC_LSE_CONFIG(RCC_OscInitStruct->LSEState); 8003658: 687b ldr r3, [r7, #4] 800365a: 68db ldr r3, [r3, #12] 800365c: 2b01 cmp r3, #1 800365e: d106 bne.n 800366e 8003660: 4b6f ldr r3, [pc, #444] ; (8003820 ) 8003662: 6a1b ldr r3, [r3, #32] 8003664: 4a6e ldr r2, [pc, #440] ; (8003820 ) 8003666: f043 0301 orr.w r3, r3, #1 800366a: 6213 str r3, [r2, #32] 800366c: e02d b.n 80036ca 800366e: 687b ldr r3, [r7, #4] 8003670: 68db ldr r3, [r3, #12] 8003672: 2b00 cmp r3, #0 8003674: d10c bne.n 8003690 8003676: 4b6a ldr r3, [pc, #424] ; (8003820 ) 8003678: 6a1b ldr r3, [r3, #32] 800367a: 4a69 ldr r2, [pc, #420] ; (8003820 ) 800367c: f023 0301 bic.w r3, r3, #1 8003680: 6213 str r3, [r2, #32] 8003682: 4b67 ldr r3, [pc, #412] ; (8003820 ) 8003684: 6a1b ldr r3, [r3, #32] 8003686: 4a66 ldr r2, [pc, #408] ; (8003820 ) 8003688: f023 0304 bic.w r3, r3, #4 800368c: 6213 str r3, [r2, #32] 800368e: e01c b.n 80036ca 8003690: 687b ldr r3, [r7, #4] 8003692: 68db ldr r3, [r3, #12] 8003694: 2b05 cmp r3, #5 8003696: d10c bne.n 80036b2 8003698: 4b61 ldr r3, [pc, #388] ; (8003820 ) 800369a: 6a1b ldr r3, [r3, #32] 800369c: 4a60 ldr r2, [pc, #384] ; (8003820 ) 800369e: f043 0304 orr.w r3, r3, #4 80036a2: 6213 str r3, [r2, #32] 80036a4: 4b5e ldr r3, [pc, #376] ; (8003820 ) 80036a6: 6a1b ldr r3, [r3, #32] 80036a8: 4a5d ldr r2, [pc, #372] ; (8003820 ) 80036aa: f043 0301 orr.w r3, r3, #1 80036ae: 6213 str r3, [r2, #32] 80036b0: e00b b.n 80036ca 80036b2: 4b5b ldr r3, [pc, #364] ; (8003820 ) 80036b4: 6a1b ldr r3, [r3, #32] 80036b6: 4a5a ldr r2, [pc, #360] ; (8003820 ) 80036b8: f023 0301 bic.w r3, r3, #1 80036bc: 6213 str r3, [r2, #32] 80036be: 4b58 ldr r3, [pc, #352] ; (8003820 ) 80036c0: 6a1b ldr r3, [r3, #32] 80036c2: 4a57 ldr r2, [pc, #348] ; (8003820 ) 80036c4: f023 0304 bic.w r3, r3, #4 80036c8: 6213 str r3, [r2, #32] /* Check the LSE State */ if (RCC_OscInitStruct->LSEState != RCC_LSE_OFF) 80036ca: 687b ldr r3, [r7, #4] 80036cc: 68db ldr r3, [r3, #12] 80036ce: 2b00 cmp r3, #0 80036d0: d015 beq.n 80036fe { /* Get Start Tick */ tickstart = HAL_GetTick(); 80036d2: f7fe fb43 bl 8001d5c 80036d6: 6138 str r0, [r7, #16] /* Wait till LSE is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 80036d8: e00a b.n 80036f0 { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) 80036da: f7fe fb3f bl 8001d5c 80036de: 4602 mov r2, r0 80036e0: 693b ldr r3, [r7, #16] 80036e2: 1ad3 subs r3, r2, r3 80036e4: f241 3288 movw r2, #5000 ; 0x1388 80036e8: 4293 cmp r3, r2 80036ea: d901 bls.n 80036f0 { return HAL_TIMEOUT; 80036ec: 2303 movs r3, #3 80036ee: e0b1 b.n 8003854 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == RESET) 80036f0: 4b4b ldr r3, [pc, #300] ; (8003820 ) 80036f2: 6a1b ldr r3, [r3, #32] 80036f4: f003 0302 and.w r3, r3, #2 80036f8: 2b00 cmp r3, #0 80036fa: d0ee beq.n 80036da 80036fc: e014 b.n 8003728 } } else { /* Get Start Tick */ tickstart = HAL_GetTick(); 80036fe: f7fe fb2d bl 8001d5c 8003702: 6138 str r0, [r7, #16] /* Wait till LSE is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) 8003704: e00a b.n 800371c { if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE) 8003706: f7fe fb29 bl 8001d5c 800370a: 4602 mov r2, r0 800370c: 693b ldr r3, [r7, #16] 800370e: 1ad3 subs r3, r2, r3 8003710: f241 3288 movw r2, #5000 ; 0x1388 8003714: 4293 cmp r3, r2 8003716: d901 bls.n 800371c { return HAL_TIMEOUT; 8003718: 2303 movs r3, #3 800371a: e09b b.n 8003854 while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) != RESET) 800371c: 4b40 ldr r3, [pc, #256] ; (8003820 ) 800371e: 6a1b ldr r3, [r3, #32] 8003720: f003 0302 and.w r3, r3, #2 8003724: 2b00 cmp r3, #0 8003726: d1ee bne.n 8003706 } } } /* Require to disable power clock if necessary */ if (pwrclkchanged == SET) 8003728: 7dfb ldrb r3, [r7, #23] 800372a: 2b01 cmp r3, #1 800372c: d105 bne.n 800373a { __HAL_RCC_PWR_CLK_DISABLE(); 800372e: 4b3c ldr r3, [pc, #240] ; (8003820 ) 8003730: 69db ldr r3, [r3, #28] 8003732: 4a3b ldr r2, [pc, #236] ; (8003820 ) 8003734: f023 5380 bic.w r3, r3, #268435456 ; 0x10000000 8003738: 61d3 str r3, [r2, #28] #endif /* RCC_CR_PLL2ON */ /*-------------------------------- PLL Configuration -----------------------*/ /* Check the parameters */ assert_param(IS_RCC_PLL(RCC_OscInitStruct->PLL.PLLState)); if ((RCC_OscInitStruct->PLL.PLLState) != RCC_PLL_NONE) 800373a: 687b ldr r3, [r7, #4] 800373c: 69db ldr r3, [r3, #28] 800373e: 2b00 cmp r3, #0 8003740: f000 8087 beq.w 8003852 { /* Check if the PLL is used as system clock or not */ if (__HAL_RCC_GET_SYSCLK_SOURCE() != RCC_SYSCLKSOURCE_STATUS_PLLCLK) 8003744: 4b36 ldr r3, [pc, #216] ; (8003820 ) 8003746: 685b ldr r3, [r3, #4] 8003748: f003 030c and.w r3, r3, #12 800374c: 2b08 cmp r3, #8 800374e: d061 beq.n 8003814 { if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_ON) 8003750: 687b ldr r3, [r7, #4] 8003752: 69db ldr r3, [r3, #28] 8003754: 2b02 cmp r3, #2 8003756: d146 bne.n 80037e6 /* Check the parameters */ assert_param(IS_RCC_PLLSOURCE(RCC_OscInitStruct->PLL.PLLSource)); assert_param(IS_RCC_PLL_MUL(RCC_OscInitStruct->PLL.PLLMUL)); /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); 8003758: 4b33 ldr r3, [pc, #204] ; (8003828 ) 800375a: 2200 movs r2, #0 800375c: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 800375e: f7fe fafd bl 8001d5c 8003762: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 8003764: e008 b.n 8003778 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 8003766: f7fe faf9 bl 8001d5c 800376a: 4602 mov r2, r0 800376c: 693b ldr r3, [r7, #16] 800376e: 1ad3 subs r3, r2, r3 8003770: 2b02 cmp r3, #2 8003772: d901 bls.n 8003778 { return HAL_TIMEOUT; 8003774: 2303 movs r3, #3 8003776: e06d b.n 8003854 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 8003778: 4b29 ldr r3, [pc, #164] ; (8003820 ) 800377a: 681b ldr r3, [r3, #0] 800377c: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 8003780: 2b00 cmp r3, #0 8003782: d1f0 bne.n 8003766 } } /* Configure the HSE prediv factor --------------------------------*/ /* It can be written only when the PLL is disabled. Not used in PLL source is different than HSE */ if (RCC_OscInitStruct->PLL.PLLSource == RCC_PLLSOURCE_HSE) 8003784: 687b ldr r3, [r7, #4] 8003786: 6a1b ldr r3, [r3, #32] 8003788: f5b3 3f80 cmp.w r3, #65536 ; 0x10000 800378c: d108 bne.n 80037a0 /* Set PREDIV1 source */ SET_BIT(RCC->CFGR2, RCC_OscInitStruct->Prediv1Source); #endif /* RCC_CFGR2_PREDIV1SRC */ /* Set PREDIV1 Value */ __HAL_RCC_HSE_PREDIV_CONFIG(RCC_OscInitStruct->HSEPredivValue); 800378e: 4b24 ldr r3, [pc, #144] ; (8003820 ) 8003790: 685b ldr r3, [r3, #4] 8003792: f423 3200 bic.w r2, r3, #131072 ; 0x20000 8003796: 687b ldr r3, [r7, #4] 8003798: 689b ldr r3, [r3, #8] 800379a: 4921 ldr r1, [pc, #132] ; (8003820 ) 800379c: 4313 orrs r3, r2 800379e: 604b str r3, [r1, #4] } /* Configure the main PLL clock source and multiplication factors. */ __HAL_RCC_PLL_CONFIG(RCC_OscInitStruct->PLL.PLLSource, 80037a0: 4b1f ldr r3, [pc, #124] ; (8003820 ) 80037a2: 685b ldr r3, [r3, #4] 80037a4: f423 1274 bic.w r2, r3, #3997696 ; 0x3d0000 80037a8: 687b ldr r3, [r7, #4] 80037aa: 6a19 ldr r1, [r3, #32] 80037ac: 687b ldr r3, [r7, #4] 80037ae: 6a5b ldr r3, [r3, #36] ; 0x24 80037b0: 430b orrs r3, r1 80037b2: 491b ldr r1, [pc, #108] ; (8003820 ) 80037b4: 4313 orrs r3, r2 80037b6: 604b str r3, [r1, #4] RCC_OscInitStruct->PLL.PLLMUL); /* Enable the main PLL. */ __HAL_RCC_PLL_ENABLE(); 80037b8: 4b1b ldr r3, [pc, #108] ; (8003828 ) 80037ba: 2201 movs r2, #1 80037bc: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 80037be: f7fe facd bl 8001d5c 80037c2: 6138 str r0, [r7, #16] /* Wait till PLL is ready */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 80037c4: e008 b.n 80037d8 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 80037c6: f7fe fac9 bl 8001d5c 80037ca: 4602 mov r2, r0 80037cc: 693b ldr r3, [r7, #16] 80037ce: 1ad3 subs r3, r2, r3 80037d0: 2b02 cmp r3, #2 80037d2: d901 bls.n 80037d8 { return HAL_TIMEOUT; 80037d4: 2303 movs r3, #3 80037d6: e03d b.n 8003854 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 80037d8: 4b11 ldr r3, [pc, #68] ; (8003820 ) 80037da: 681b ldr r3, [r3, #0] 80037dc: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 80037e0: 2b00 cmp r3, #0 80037e2: d0f0 beq.n 80037c6 80037e4: e035 b.n 8003852 } } else { /* Disable the main PLL. */ __HAL_RCC_PLL_DISABLE(); 80037e6: 4b10 ldr r3, [pc, #64] ; (8003828 ) 80037e8: 2200 movs r2, #0 80037ea: 601a str r2, [r3, #0] /* Get Start Tick */ tickstart = HAL_GetTick(); 80037ec: f7fe fab6 bl 8001d5c 80037f0: 6138 str r0, [r7, #16] /* Wait till PLL is disabled */ while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 80037f2: e008 b.n 8003806 { if ((HAL_GetTick() - tickstart) > PLL_TIMEOUT_VALUE) 80037f4: f7fe fab2 bl 8001d5c 80037f8: 4602 mov r2, r0 80037fa: 693b ldr r3, [r7, #16] 80037fc: 1ad3 subs r3, r2, r3 80037fe: 2b02 cmp r3, #2 8003800: d901 bls.n 8003806 { return HAL_TIMEOUT; 8003802: 2303 movs r3, #3 8003804: e026 b.n 8003854 while (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) != RESET) 8003806: 4b06 ldr r3, [pc, #24] ; (8003820 ) 8003808: 681b ldr r3, [r3, #0] 800380a: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 800380e: 2b00 cmp r3, #0 8003810: d1f0 bne.n 80037f4 8003812: e01e b.n 8003852 } } else { /* Check if there is a request to disable the PLL used as System clock source */ if ((RCC_OscInitStruct->PLL.PLLState) == RCC_PLL_OFF) 8003814: 687b ldr r3, [r7, #4] 8003816: 69db ldr r3, [r3, #28] 8003818: 2b01 cmp r3, #1 800381a: d107 bne.n 800382c { return HAL_ERROR; 800381c: 2301 movs r3, #1 800381e: e019 b.n 8003854 8003820: 40021000 .word 0x40021000 8003824: 40007000 .word 0x40007000 8003828: 42420060 .word 0x42420060 } else { /* Do not return HAL_ERROR if request repeats the current configuration */ pll_config = RCC->CFGR; 800382c: 4b0b ldr r3, [pc, #44] ; (800385c ) 800382e: 685b ldr r3, [r3, #4] 8003830: 60fb str r3, [r7, #12] if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || 8003832: 68fb ldr r3, [r7, #12] 8003834: f403 3280 and.w r2, r3, #65536 ; 0x10000 8003838: 687b ldr r3, [r7, #4] 800383a: 6a1b ldr r3, [r3, #32] 800383c: 429a cmp r2, r3 800383e: d106 bne.n 800384e (READ_BIT(pll_config, RCC_CFGR_PLLMULL) != RCC_OscInitStruct->PLL.PLLMUL)) 8003840: 68fb ldr r3, [r7, #12] 8003842: f403 1270 and.w r2, r3, #3932160 ; 0x3c0000 8003846: 687b ldr r3, [r7, #4] 8003848: 6a5b ldr r3, [r3, #36] ; 0x24 if ((READ_BIT(pll_config, RCC_CFGR_PLLSRC) != RCC_OscInitStruct->PLL.PLLSource) || 800384a: 429a cmp r2, r3 800384c: d001 beq.n 8003852 { return HAL_ERROR; 800384e: 2301 movs r3, #1 8003850: e000 b.n 8003854 } } } } return HAL_OK; 8003852: 2300 movs r3, #0 } 8003854: 4618 mov r0, r3 8003856: 3718 adds r7, #24 8003858: 46bd mov sp, r7 800385a: bd80 pop {r7, pc} 800385c: 40021000 .word 0x40021000 08003860 : * You can use @ref HAL_RCC_GetClockConfig() function to know which clock is * currently used as system clock source. * @retval HAL status */ HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency) { 8003860: b580 push {r7, lr} 8003862: b084 sub sp, #16 8003864: af00 add r7, sp, #0 8003866: 6078 str r0, [r7, #4] 8003868: 6039 str r1, [r7, #0] uint32_t tickstart; /* Check Null pointer */ if (RCC_ClkInitStruct == NULL) 800386a: 687b ldr r3, [r7, #4] 800386c: 2b00 cmp r3, #0 800386e: d101 bne.n 8003874 { return HAL_ERROR; 8003870: 2301 movs r3, #1 8003872: e0d0 b.n 8003a16 must be correctly programmed according to the frequency of the CPU clock (HCLK) of the device. */ #if defined(FLASH_ACR_LATENCY) /* Increasing the number of wait states because of higher CPU frequency */ if (FLatency > __HAL_FLASH_GET_LATENCY()) 8003874: 4b6a ldr r3, [pc, #424] ; (8003a20 ) 8003876: 681b ldr r3, [r3, #0] 8003878: f003 0307 and.w r3, r3, #7 800387c: 683a ldr r2, [r7, #0] 800387e: 429a cmp r2, r3 8003880: d910 bls.n 80038a4 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); 8003882: 4b67 ldr r3, [pc, #412] ; (8003a20 ) 8003884: 681b ldr r3, [r3, #0] 8003886: f023 0207 bic.w r2, r3, #7 800388a: 4965 ldr r1, [pc, #404] ; (8003a20 ) 800388c: 683b ldr r3, [r7, #0] 800388e: 4313 orrs r3, r2 8003890: 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) 8003892: 4b63 ldr r3, [pc, #396] ; (8003a20 ) 8003894: 681b ldr r3, [r3, #0] 8003896: f003 0307 and.w r3, r3, #7 800389a: 683a ldr r2, [r7, #0] 800389c: 429a cmp r2, r3 800389e: d001 beq.n 80038a4 { return HAL_ERROR; 80038a0: 2301 movs r3, #1 80038a2: e0b8 b.n 8003a16 } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- HCLK Configuration --------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_HCLK) == RCC_CLOCKTYPE_HCLK) 80038a4: 687b ldr r3, [r7, #4] 80038a6: 681b ldr r3, [r3, #0] 80038a8: f003 0302 and.w r3, r3, #2 80038ac: 2b00 cmp r3, #0 80038ae: d020 beq.n 80038f2 { /* 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) 80038b0: 687b ldr r3, [r7, #4] 80038b2: 681b ldr r3, [r3, #0] 80038b4: f003 0304 and.w r3, r3, #4 80038b8: 2b00 cmp r3, #0 80038ba: d005 beq.n 80038c8 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_HCLK_DIV16); 80038bc: 4b59 ldr r3, [pc, #356] ; (8003a24 ) 80038be: 685b ldr r3, [r3, #4] 80038c0: 4a58 ldr r2, [pc, #352] ; (8003a24 ) 80038c2: f443 63e0 orr.w r3, r3, #1792 ; 0x700 80038c6: 6053 str r3, [r2, #4] } if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) 80038c8: 687b ldr r3, [r7, #4] 80038ca: 681b ldr r3, [r3, #0] 80038cc: f003 0308 and.w r3, r3, #8 80038d0: 2b00 cmp r3, #0 80038d2: d005 beq.n 80038e0 { MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, (RCC_HCLK_DIV16 << 3)); 80038d4: 4b53 ldr r3, [pc, #332] ; (8003a24 ) 80038d6: 685b ldr r3, [r3, #4] 80038d8: 4a52 ldr r2, [pc, #328] ; (8003a24 ) 80038da: f443 5360 orr.w r3, r3, #14336 ; 0x3800 80038de: 6053 str r3, [r2, #4] } /* Set the new HCLK clock divider */ assert_param(IS_RCC_HCLK(RCC_ClkInitStruct->AHBCLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_HPRE, RCC_ClkInitStruct->AHBCLKDivider); 80038e0: 4b50 ldr r3, [pc, #320] ; (8003a24 ) 80038e2: 685b ldr r3, [r3, #4] 80038e4: f023 02f0 bic.w r2, r3, #240 ; 0xf0 80038e8: 687b ldr r3, [r7, #4] 80038ea: 689b ldr r3, [r3, #8] 80038ec: 494d ldr r1, [pc, #308] ; (8003a24 ) 80038ee: 4313 orrs r3, r2 80038f0: 604b str r3, [r1, #4] } /*------------------------- SYSCLK Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_SYSCLK) == RCC_CLOCKTYPE_SYSCLK) 80038f2: 687b ldr r3, [r7, #4] 80038f4: 681b ldr r3, [r3, #0] 80038f6: f003 0301 and.w r3, r3, #1 80038fa: 2b00 cmp r3, #0 80038fc: d040 beq.n 8003980 { assert_param(IS_RCC_SYSCLKSOURCE(RCC_ClkInitStruct->SYSCLKSource)); /* HSE is selected as System Clock Source */ if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_HSE) 80038fe: 687b ldr r3, [r7, #4] 8003900: 685b ldr r3, [r3, #4] 8003902: 2b01 cmp r3, #1 8003904: d107 bne.n 8003916 { /* Check the HSE ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSERDY) == RESET) 8003906: 4b47 ldr r3, [pc, #284] ; (8003a24 ) 8003908: 681b ldr r3, [r3, #0] 800390a: f403 3300 and.w r3, r3, #131072 ; 0x20000 800390e: 2b00 cmp r3, #0 8003910: d115 bne.n 800393e { return HAL_ERROR; 8003912: 2301 movs r3, #1 8003914: e07f b.n 8003a16 } } /* PLL is selected as System Clock Source */ else if (RCC_ClkInitStruct->SYSCLKSource == RCC_SYSCLKSOURCE_PLLCLK) 8003916: 687b ldr r3, [r7, #4] 8003918: 685b ldr r3, [r3, #4] 800391a: 2b02 cmp r3, #2 800391c: d107 bne.n 800392e { /* Check the PLL ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_PLLRDY) == RESET) 800391e: 4b41 ldr r3, [pc, #260] ; (8003a24 ) 8003920: 681b ldr r3, [r3, #0] 8003922: f003 7300 and.w r3, r3, #33554432 ; 0x2000000 8003926: 2b00 cmp r3, #0 8003928: d109 bne.n 800393e { return HAL_ERROR; 800392a: 2301 movs r3, #1 800392c: e073 b.n 8003a16 } /* HSI is selected as System Clock Source */ else { /* Check the HSI ready flag */ if (__HAL_RCC_GET_FLAG(RCC_FLAG_HSIRDY) == RESET) 800392e: 4b3d ldr r3, [pc, #244] ; (8003a24 ) 8003930: 681b ldr r3, [r3, #0] 8003932: f003 0302 and.w r3, r3, #2 8003936: 2b00 cmp r3, #0 8003938: d101 bne.n 800393e { return HAL_ERROR; 800393a: 2301 movs r3, #1 800393c: e06b b.n 8003a16 } } __HAL_RCC_SYSCLK_CONFIG(RCC_ClkInitStruct->SYSCLKSource); 800393e: 4b39 ldr r3, [pc, #228] ; (8003a24 ) 8003940: 685b ldr r3, [r3, #4] 8003942: f023 0203 bic.w r2, r3, #3 8003946: 687b ldr r3, [r7, #4] 8003948: 685b ldr r3, [r3, #4] 800394a: 4936 ldr r1, [pc, #216] ; (8003a24 ) 800394c: 4313 orrs r3, r2 800394e: 604b str r3, [r1, #4] /* Get Start Tick */ tickstart = HAL_GetTick(); 8003950: f7fe fa04 bl 8001d5c 8003954: 60f8 str r0, [r7, #12] while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) 8003956: e00a b.n 800396e { if ((HAL_GetTick() - tickstart) > CLOCKSWITCH_TIMEOUT_VALUE) 8003958: f7fe fa00 bl 8001d5c 800395c: 4602 mov r2, r0 800395e: 68fb ldr r3, [r7, #12] 8003960: 1ad3 subs r3, r2, r3 8003962: f241 3288 movw r2, #5000 ; 0x1388 8003966: 4293 cmp r3, r2 8003968: d901 bls.n 800396e { return HAL_TIMEOUT; 800396a: 2303 movs r3, #3 800396c: e053 b.n 8003a16 while (__HAL_RCC_GET_SYSCLK_SOURCE() != (RCC_ClkInitStruct->SYSCLKSource << RCC_CFGR_SWS_Pos)) 800396e: 4b2d ldr r3, [pc, #180] ; (8003a24 ) 8003970: 685b ldr r3, [r3, #4] 8003972: f003 020c and.w r2, r3, #12 8003976: 687b ldr r3, [r7, #4] 8003978: 685b ldr r3, [r3, #4] 800397a: 009b lsls r3, r3, #2 800397c: 429a cmp r2, r3 800397e: d1eb bne.n 8003958 } } #if defined(FLASH_ACR_LATENCY) /* Decreasing the number of wait states because of lower CPU frequency */ if (FLatency < __HAL_FLASH_GET_LATENCY()) 8003980: 4b27 ldr r3, [pc, #156] ; (8003a20 ) 8003982: 681b ldr r3, [r3, #0] 8003984: f003 0307 and.w r3, r3, #7 8003988: 683a ldr r2, [r7, #0] 800398a: 429a cmp r2, r3 800398c: d210 bcs.n 80039b0 { /* Program the new number of wait states to the LATENCY bits in the FLASH_ACR register */ __HAL_FLASH_SET_LATENCY(FLatency); 800398e: 4b24 ldr r3, [pc, #144] ; (8003a20 ) 8003990: 681b ldr r3, [r3, #0] 8003992: f023 0207 bic.w r2, r3, #7 8003996: 4922 ldr r1, [pc, #136] ; (8003a20 ) 8003998: 683b ldr r3, [r7, #0] 800399a: 4313 orrs r3, r2 800399c: 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) 800399e: 4b20 ldr r3, [pc, #128] ; (8003a20 ) 80039a0: 681b ldr r3, [r3, #0] 80039a2: f003 0307 and.w r3, r3, #7 80039a6: 683a ldr r2, [r7, #0] 80039a8: 429a cmp r2, r3 80039aa: d001 beq.n 80039b0 { return HAL_ERROR; 80039ac: 2301 movs r3, #1 80039ae: e032 b.n 8003a16 } } #endif /* FLASH_ACR_LATENCY */ /*-------------------------- PCLK1 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK1) == RCC_CLOCKTYPE_PCLK1) 80039b0: 687b ldr r3, [r7, #4] 80039b2: 681b ldr r3, [r3, #0] 80039b4: f003 0304 and.w r3, r3, #4 80039b8: 2b00 cmp r3, #0 80039ba: d008 beq.n 80039ce { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB1CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE1, RCC_ClkInitStruct->APB1CLKDivider); 80039bc: 4b19 ldr r3, [pc, #100] ; (8003a24 ) 80039be: 685b ldr r3, [r3, #4] 80039c0: f423 62e0 bic.w r2, r3, #1792 ; 0x700 80039c4: 687b ldr r3, [r7, #4] 80039c6: 68db ldr r3, [r3, #12] 80039c8: 4916 ldr r1, [pc, #88] ; (8003a24 ) 80039ca: 4313 orrs r3, r2 80039cc: 604b str r3, [r1, #4] } /*-------------------------- PCLK2 Configuration ---------------------------*/ if (((RCC_ClkInitStruct->ClockType) & RCC_CLOCKTYPE_PCLK2) == RCC_CLOCKTYPE_PCLK2) 80039ce: 687b ldr r3, [r7, #4] 80039d0: 681b ldr r3, [r3, #0] 80039d2: f003 0308 and.w r3, r3, #8 80039d6: 2b00 cmp r3, #0 80039d8: d009 beq.n 80039ee { assert_param(IS_RCC_PCLK(RCC_ClkInitStruct->APB2CLKDivider)); MODIFY_REG(RCC->CFGR, RCC_CFGR_PPRE2, ((RCC_ClkInitStruct->APB2CLKDivider) << 3)); 80039da: 4b12 ldr r3, [pc, #72] ; (8003a24 ) 80039dc: 685b ldr r3, [r3, #4] 80039de: f423 5260 bic.w r2, r3, #14336 ; 0x3800 80039e2: 687b ldr r3, [r7, #4] 80039e4: 691b ldr r3, [r3, #16] 80039e6: 00db lsls r3, r3, #3 80039e8: 490e ldr r1, [pc, #56] ; (8003a24 ) 80039ea: 4313 orrs r3, r2 80039ec: 604b str r3, [r1, #4] } /* Update the SystemCoreClock global variable */ SystemCoreClock = HAL_RCC_GetSysClockFreq() >> AHBPrescTable[(RCC->CFGR & RCC_CFGR_HPRE) >> RCC_CFGR_HPRE_Pos]; 80039ee: f000 f821 bl 8003a34 80039f2: 4602 mov r2, r0 80039f4: 4b0b ldr r3, [pc, #44] ; (8003a24 ) 80039f6: 685b ldr r3, [r3, #4] 80039f8: 091b lsrs r3, r3, #4 80039fa: f003 030f and.w r3, r3, #15 80039fe: 490a ldr r1, [pc, #40] ; (8003a28 ) 8003a00: 5ccb ldrb r3, [r1, r3] 8003a02: fa22 f303 lsr.w r3, r2, r3 8003a06: 4a09 ldr r2, [pc, #36] ; (8003a2c ) 8003a08: 6013 str r3, [r2, #0] /* Configure the source of time base considering new system clocks settings*/ HAL_InitTick(uwTickPrio); 8003a0a: 4b09 ldr r3, [pc, #36] ; (8003a30 ) 8003a0c: 681b ldr r3, [r3, #0] 8003a0e: 4618 mov r0, r3 8003a10: f7fe f962 bl 8001cd8 return HAL_OK; 8003a14: 2300 movs r3, #0 } 8003a16: 4618 mov r0, r3 8003a18: 3710 adds r7, #16 8003a1a: 46bd mov sp, r7 8003a1c: bd80 pop {r7, pc} 8003a1e: bf00 nop 8003a20: 40022000 .word 0x40022000 8003a24: 40021000 .word 0x40021000 8003a28: 0800a974 .word 0x0800a974 8003a2c: 20000000 .word 0x20000000 8003a30: 20000004 .word 0x20000004 08003a34 : * right SYSCLK value. Otherwise, any configuration based on this function will be incorrect. * * @retval SYSCLK frequency */ uint32_t HAL_RCC_GetSysClockFreq(void) { 8003a34: b490 push {r4, r7} 8003a36: b08a sub sp, #40 ; 0x28 8003a38: af00 add r7, sp, #0 #if defined(RCC_CFGR2_PREDIV1SRC) const uint8_t aPLLMULFactorTable[14] = {0, 0, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0, 13}; const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; #else const uint8_t aPLLMULFactorTable[16] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 16}; 8003a3a: 4b29 ldr r3, [pc, #164] ; (8003ae0 ) 8003a3c: 1d3c adds r4, r7, #4 8003a3e: cb0f ldmia r3, {r0, r1, r2, r3} 8003a40: e884 000f stmia.w r4, {r0, r1, r2, r3} #if defined(RCC_CFGR2_PREDIV1) const uint8_t aPredivFactorTable[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; #else const uint8_t aPredivFactorTable[2] = {1, 2}; 8003a44: f240 2301 movw r3, #513 ; 0x201 8003a48: 803b strh r3, [r7, #0] #endif /*RCC_CFGR2_PREDIV1*/ #endif uint32_t tmpreg = 0U, prediv = 0U, pllclk = 0U, pllmul = 0U; 8003a4a: 2300 movs r3, #0 8003a4c: 61fb str r3, [r7, #28] 8003a4e: 2300 movs r3, #0 8003a50: 61bb str r3, [r7, #24] 8003a52: 2300 movs r3, #0 8003a54: 627b str r3, [r7, #36] ; 0x24 8003a56: 2300 movs r3, #0 8003a58: 617b str r3, [r7, #20] uint32_t sysclockfreq = 0U; 8003a5a: 2300 movs r3, #0 8003a5c: 623b str r3, [r7, #32] #if defined(RCC_CFGR2_PREDIV1SRC) uint32_t prediv2 = 0U, pll2mul = 0U; #endif /*RCC_CFGR2_PREDIV1SRC*/ tmpreg = RCC->CFGR; 8003a5e: 4b21 ldr r3, [pc, #132] ; (8003ae4 ) 8003a60: 685b ldr r3, [r3, #4] 8003a62: 61fb str r3, [r7, #28] /* Get SYSCLK source -------------------------------------------------------*/ switch (tmpreg & RCC_CFGR_SWS) 8003a64: 69fb ldr r3, [r7, #28] 8003a66: f003 030c and.w r3, r3, #12 8003a6a: 2b04 cmp r3, #4 8003a6c: d002 beq.n 8003a74 8003a6e: 2b08 cmp r3, #8 8003a70: d003 beq.n 8003a7a 8003a72: e02b b.n 8003acc { case RCC_SYSCLKSOURCE_STATUS_HSE: /* HSE used as system clock */ { sysclockfreq = HSE_VALUE; 8003a74: 4b1c ldr r3, [pc, #112] ; (8003ae8 ) 8003a76: 623b str r3, [r7, #32] break; 8003a78: e02b b.n 8003ad2 } case RCC_SYSCLKSOURCE_STATUS_PLLCLK: /* PLL used as system clock */ { pllmul = aPLLMULFactorTable[(uint32_t)(tmpreg & RCC_CFGR_PLLMULL) >> RCC_CFGR_PLLMULL_Pos]; 8003a7a: 69fb ldr r3, [r7, #28] 8003a7c: 0c9b lsrs r3, r3, #18 8003a7e: f003 030f and.w r3, r3, #15 8003a82: 3328 adds r3, #40 ; 0x28 8003a84: 443b add r3, r7 8003a86: f813 3c24 ldrb.w r3, [r3, #-36] 8003a8a: 617b str r3, [r7, #20] if ((tmpreg & RCC_CFGR_PLLSRC) != RCC_PLLSOURCE_HSI_DIV2) 8003a8c: 69fb ldr r3, [r7, #28] 8003a8e: f403 3380 and.w r3, r3, #65536 ; 0x10000 8003a92: 2b00 cmp r3, #0 8003a94: d012 beq.n 8003abc { #if defined(RCC_CFGR2_PREDIV1) prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR2 & RCC_CFGR2_PREDIV1) >> RCC_CFGR2_PREDIV1_Pos]; #else prediv = aPredivFactorTable[(uint32_t)(RCC->CFGR & RCC_CFGR_PLLXTPRE) >> RCC_CFGR_PLLXTPRE_Pos]; 8003a96: 4b13 ldr r3, [pc, #76] ; (8003ae4 ) 8003a98: 685b ldr r3, [r3, #4] 8003a9a: 0c5b lsrs r3, r3, #17 8003a9c: f003 0301 and.w r3, r3, #1 8003aa0: 3328 adds r3, #40 ; 0x28 8003aa2: 443b add r3, r7 8003aa4: f813 3c28 ldrb.w r3, [r3, #-40] 8003aa8: 61bb str r3, [r7, #24] { pllclk = pllclk / 2; } #else /* HSE used as PLL clock source : PLLCLK = HSE/PREDIV1 * PLLMUL */ pllclk = (uint32_t)((HSE_VALUE * pllmul) / prediv); 8003aaa: 697b ldr r3, [r7, #20] 8003aac: 4a0e ldr r2, [pc, #56] ; (8003ae8 ) 8003aae: fb03 f202 mul.w r2, r3, r2 8003ab2: 69bb ldr r3, [r7, #24] 8003ab4: fbb2 f3f3 udiv r3, r2, r3 8003ab8: 627b str r3, [r7, #36] ; 0x24 8003aba: e004 b.n 8003ac6 #endif /*RCC_CFGR2_PREDIV1SRC*/ } else { /* HSI used as PLL clock source : PLLCLK = HSI/2 * PLLMUL */ pllclk = (uint32_t)((HSI_VALUE >> 1) * pllmul); 8003abc: 697b ldr r3, [r7, #20] 8003abe: 4a0b ldr r2, [pc, #44] ; (8003aec ) 8003ac0: fb02 f303 mul.w r3, r2, r3 8003ac4: 627b str r3, [r7, #36] ; 0x24 } sysclockfreq = pllclk; 8003ac6: 6a7b ldr r3, [r7, #36] ; 0x24 8003ac8: 623b str r3, [r7, #32] break; 8003aca: e002 b.n 8003ad2 } case RCC_SYSCLKSOURCE_STATUS_HSI: /* HSI used as system clock source */ default: /* HSI used as system clock */ { sysclockfreq = HSI_VALUE; 8003acc: 4b06 ldr r3, [pc, #24] ; (8003ae8 ) 8003ace: 623b str r3, [r7, #32] break; 8003ad0: bf00 nop } } return sysclockfreq; 8003ad2: 6a3b ldr r3, [r7, #32] } 8003ad4: 4618 mov r0, r3 8003ad6: 3728 adds r7, #40 ; 0x28 8003ad8: 46bd mov sp, r7 8003ada: bc90 pop {r4, r7} 8003adc: 4770 bx lr 8003ade: bf00 nop 8003ae0: 0800a890 .word 0x0800a890 8003ae4: 40021000 .word 0x40021000 8003ae8: 007a1200 .word 0x007a1200 8003aec: 003d0900 .word 0x003d0900 08003af0 : * @note The SystemCoreClock CMSIS variable is used to store System Clock Frequency * and updated within this function * @retval HCLK frequency */ uint32_t HAL_RCC_GetHCLKFreq(void) { 8003af0: b480 push {r7} 8003af2: af00 add r7, sp, #0 return SystemCoreClock; 8003af4: 4b02 ldr r3, [pc, #8] ; (8003b00 ) 8003af6: 681b ldr r3, [r3, #0] } 8003af8: 4618 mov r0, r3 8003afa: 46bd mov sp, r7 8003afc: bc80 pop {r7} 8003afe: 4770 bx lr 8003b00: 20000000 .word 0x20000000 08003b04 : * @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) { 8003b04: b580 push {r7, lr} 8003b06: 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]); 8003b08: f7ff fff2 bl 8003af0 8003b0c: 4602 mov r2, r0 8003b0e: 4b05 ldr r3, [pc, #20] ; (8003b24 ) 8003b10: 685b ldr r3, [r3, #4] 8003b12: 0a1b lsrs r3, r3, #8 8003b14: f003 0307 and.w r3, r3, #7 8003b18: 4903 ldr r1, [pc, #12] ; (8003b28 ) 8003b1a: 5ccb ldrb r3, [r1, r3] 8003b1c: fa22 f303 lsr.w r3, r2, r3 } 8003b20: 4618 mov r0, r3 8003b22: bd80 pop {r7, pc} 8003b24: 40021000 .word 0x40021000 8003b28: 0800a984 .word 0x0800a984 08003b2c : * @brief This function provides delay (in milliseconds) based on CPU cycles method. * @param mdelay: specifies the delay time length, in milliseconds. * @retval None */ static void RCC_Delay(uint32_t mdelay) { 8003b2c: b480 push {r7} 8003b2e: b085 sub sp, #20 8003b30: af00 add r7, sp, #0 8003b32: 6078 str r0, [r7, #4] __IO uint32_t Delay = mdelay * (SystemCoreClock / 8U / 1000U); 8003b34: 4b0a ldr r3, [pc, #40] ; (8003b60 ) 8003b36: 681b ldr r3, [r3, #0] 8003b38: 4a0a ldr r2, [pc, #40] ; (8003b64 ) 8003b3a: fba2 2303 umull r2, r3, r2, r3 8003b3e: 0a5b lsrs r3, r3, #9 8003b40: 687a ldr r2, [r7, #4] 8003b42: fb02 f303 mul.w r3, r2, r3 8003b46: 60fb str r3, [r7, #12] do { __NOP(); 8003b48: bf00 nop } while (Delay --); 8003b4a: 68fb ldr r3, [r7, #12] 8003b4c: 1e5a subs r2, r3, #1 8003b4e: 60fa str r2, [r7, #12] 8003b50: 2b00 cmp r3, #0 8003b52: d1f9 bne.n 8003b48 } 8003b54: bf00 nop 8003b56: bf00 nop 8003b58: 3714 adds r7, #20 8003b5a: 46bd mov sp, r7 8003b5c: bc80 pop {r7} 8003b5e: 4770 bx lr 8003b60: 20000000 .word 0x20000000 8003b64: 10624dd3 .word 0x10624dd3 08003b68 : * @param hspi pointer to a SPI_HandleTypeDef structure that contains * the configuration information for SPI module. * @retval HAL status */ HAL_StatusTypeDef HAL_SPI_Init(SPI_HandleTypeDef *hspi) { 8003b68: b580 push {r7, lr} 8003b6a: b082 sub sp, #8 8003b6c: af00 add r7, sp, #0 8003b6e: 6078 str r0, [r7, #4] /* Check the SPI handle allocation */ if (hspi == NULL) 8003b70: 687b ldr r3, [r7, #4] 8003b72: 2b00 cmp r3, #0 8003b74: d101 bne.n 8003b7a { return HAL_ERROR; 8003b76: 2301 movs r3, #1 8003b78: e076 b.n 8003c68 assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); assert_param(IS_SPI_FIRST_BIT(hspi->Init.FirstBit)); /* TI mode is not supported on this device. TIMode parameter is mandatory equal to SPI_TIMODE_DISABLE */ assert_param(IS_SPI_TIMODE(hspi->Init.TIMode)); if (hspi->Init.TIMode == SPI_TIMODE_DISABLE) 8003b7a: 687b ldr r3, [r7, #4] 8003b7c: 6a5b ldr r3, [r3, #36] ; 0x24 8003b7e: 2b00 cmp r3, #0 8003b80: d108 bne.n 8003b94 { assert_param(IS_SPI_CPOL(hspi->Init.CLKPolarity)); assert_param(IS_SPI_CPHA(hspi->Init.CLKPhase)); if (hspi->Init.Mode == SPI_MODE_MASTER) 8003b82: 687b ldr r3, [r7, #4] 8003b84: 685b ldr r3, [r3, #4] 8003b86: f5b3 7f82 cmp.w r3, #260 ; 0x104 8003b8a: d009 beq.n 8003ba0 assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); } else { /* Baudrate prescaler not use in Motoraola Slave mode. force to default value */ hspi->Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2; 8003b8c: 687b ldr r3, [r7, #4] 8003b8e: 2200 movs r2, #0 8003b90: 61da str r2, [r3, #28] 8003b92: e005 b.n 8003ba0 else { assert_param(IS_SPI_BAUDRATE_PRESCALER(hspi->Init.BaudRatePrescaler)); /* Force polarity and phase to TI protocaol requirements */ hspi->Init.CLKPolarity = SPI_POLARITY_LOW; 8003b94: 687b ldr r3, [r7, #4] 8003b96: 2200 movs r2, #0 8003b98: 611a str r2, [r3, #16] hspi->Init.CLKPhase = SPI_PHASE_1EDGE; 8003b9a: 687b ldr r3, [r7, #4] 8003b9c: 2200 movs r2, #0 8003b9e: 615a str r2, [r3, #20] if (hspi->Init.CRCCalculation == SPI_CRCCALCULATION_ENABLE) { assert_param(IS_SPI_CRC_POLYNOMIAL(hspi->Init.CRCPolynomial)); } #else hspi->Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE; 8003ba0: 687b ldr r3, [r7, #4] 8003ba2: 2200 movs r2, #0 8003ba4: 629a str r2, [r3, #40] ; 0x28 #endif /* USE_SPI_CRC */ if (hspi->State == HAL_SPI_STATE_RESET) 8003ba6: 687b ldr r3, [r7, #4] 8003ba8: f893 3051 ldrb.w r3, [r3, #81] ; 0x51 8003bac: b2db uxtb r3, r3 8003bae: 2b00 cmp r3, #0 8003bb0: d106 bne.n 8003bc0 { /* Allocate lock resource and initialize it */ hspi->Lock = HAL_UNLOCKED; 8003bb2: 687b ldr r3, [r7, #4] 8003bb4: 2200 movs r2, #0 8003bb6: f883 2050 strb.w r2, [r3, #80] ; 0x50 /* Init the low level hardware : GPIO, CLOCK, NVIC... */ hspi->MspInitCallback(hspi); #else /* Init the low level hardware : GPIO, CLOCK, NVIC... */ HAL_SPI_MspInit(hspi); 8003bba: 6878 ldr r0, [r7, #4] 8003bbc: f7fd fe4c bl 8001858 #endif /* USE_HAL_SPI_REGISTER_CALLBACKS */ } hspi->State = HAL_SPI_STATE_BUSY; 8003bc0: 687b ldr r3, [r7, #4] 8003bc2: 2202 movs r2, #2 8003bc4: f883 2051 strb.w r2, [r3, #81] ; 0x51 /* Disable the selected SPI peripheral */ __HAL_SPI_DISABLE(hspi); 8003bc8: 687b ldr r3, [r7, #4] 8003bca: 681b ldr r3, [r3, #0] 8003bcc: 681a ldr r2, [r3, #0] 8003bce: 687b ldr r3, [r7, #4] 8003bd0: 681b ldr r3, [r3, #0] 8003bd2: f022 0240 bic.w r2, r2, #64 ; 0x40 8003bd6: 601a str r2, [r3, #0] /*----------------------- SPIx CR1 & CR2 Configuration ---------------------*/ /* Configure : SPI Mode, Communication Mode, Data size, Clock polarity and phase, NSS management, Communication speed, First bit and CRC calculation state */ WRITE_REG(hspi->Instance->CR1, ((hspi->Init.Mode & (SPI_CR1_MSTR | SPI_CR1_SSI)) | 8003bd8: 687b ldr r3, [r7, #4] 8003bda: 685b ldr r3, [r3, #4] 8003bdc: f403 7282 and.w r2, r3, #260 ; 0x104 8003be0: 687b ldr r3, [r7, #4] 8003be2: 689b ldr r3, [r3, #8] 8003be4: f403 4304 and.w r3, r3, #33792 ; 0x8400 8003be8: 431a orrs r2, r3 8003bea: 687b ldr r3, [r7, #4] 8003bec: 68db ldr r3, [r3, #12] 8003bee: f403 6300 and.w r3, r3, #2048 ; 0x800 8003bf2: 431a orrs r2, r3 8003bf4: 687b ldr r3, [r7, #4] 8003bf6: 691b ldr r3, [r3, #16] 8003bf8: f003 0302 and.w r3, r3, #2 8003bfc: 431a orrs r2, r3 8003bfe: 687b ldr r3, [r7, #4] 8003c00: 695b ldr r3, [r3, #20] 8003c02: f003 0301 and.w r3, r3, #1 8003c06: 431a orrs r2, r3 8003c08: 687b ldr r3, [r7, #4] 8003c0a: 699b ldr r3, [r3, #24] 8003c0c: f403 7300 and.w r3, r3, #512 ; 0x200 8003c10: 431a orrs r2, r3 8003c12: 687b ldr r3, [r7, #4] 8003c14: 69db ldr r3, [r3, #28] 8003c16: f003 0338 and.w r3, r3, #56 ; 0x38 8003c1a: 431a orrs r2, r3 8003c1c: 687b ldr r3, [r7, #4] 8003c1e: 6a1b ldr r3, [r3, #32] 8003c20: f003 0380 and.w r3, r3, #128 ; 0x80 8003c24: ea42 0103 orr.w r1, r2, r3 8003c28: 687b ldr r3, [r7, #4] 8003c2a: 6a9b ldr r3, [r3, #40] ; 0x28 8003c2c: f403 5200 and.w r2, r3, #8192 ; 0x2000 8003c30: 687b ldr r3, [r7, #4] 8003c32: 681b ldr r3, [r3, #0] 8003c34: 430a orrs r2, r1 8003c36: 601a str r2, [r3, #0] (hspi->Init.BaudRatePrescaler & SPI_CR1_BR_Msk) | (hspi->Init.FirstBit & SPI_CR1_LSBFIRST) | (hspi->Init.CRCCalculation & SPI_CR1_CRCEN))); /* Configure : NSS management */ WRITE_REG(hspi->Instance->CR2, ((hspi->Init.NSS >> 16U) & SPI_CR2_SSOE)); 8003c38: 687b ldr r3, [r7, #4] 8003c3a: 699b ldr r3, [r3, #24] 8003c3c: 0c1a lsrs r2, r3, #16 8003c3e: 687b ldr r3, [r7, #4] 8003c40: 681b ldr r3, [r3, #0] 8003c42: f002 0204 and.w r2, r2, #4 8003c46: 605a str r2, [r3, #4] } #endif /* USE_SPI_CRC */ #if defined(SPI_I2SCFGR_I2SMOD) /* Activate the SPI mode (Make sure that I2SMOD bit in I2SCFGR register is reset) */ CLEAR_BIT(hspi->Instance->I2SCFGR, SPI_I2SCFGR_I2SMOD); 8003c48: 687b ldr r3, [r7, #4] 8003c4a: 681b ldr r3, [r3, #0] 8003c4c: 69da ldr r2, [r3, #28] 8003c4e: 687b ldr r3, [r7, #4] 8003c50: 681b ldr r3, [r3, #0] 8003c52: f422 6200 bic.w r2, r2, #2048 ; 0x800 8003c56: 61da str r2, [r3, #28] #endif /* SPI_I2SCFGR_I2SMOD */ hspi->ErrorCode = HAL_SPI_ERROR_NONE; 8003c58: 687b ldr r3, [r7, #4] 8003c5a: 2200 movs r2, #0 8003c5c: 655a str r2, [r3, #84] ; 0x54 hspi->State = HAL_SPI_STATE_READY; 8003c5e: 687b ldr r3, [r7, #4] 8003c60: 2201 movs r2, #1 8003c62: f883 2051 strb.w r2, [r3, #81] ; 0x51 return HAL_OK; 8003c66: 2300 movs r3, #0 } 8003c68: 4618 mov r0, r3 8003c6a: 3708 adds r7, #8 8003c6c: 46bd mov sp, r7 8003c6e: bd80 pop {r7, pc} 08003c70 : * @param ExtTiming Pointer to SRAM extended mode timing structure * @retval HAL status */ HAL_StatusTypeDef HAL_SRAM_Init(SRAM_HandleTypeDef *hsram, FSMC_NORSRAM_TimingTypeDef *Timing, FSMC_NORSRAM_TimingTypeDef *ExtTiming) { 8003c70: b580 push {r7, lr} 8003c72: b084 sub sp, #16 8003c74: af00 add r7, sp, #0 8003c76: 60f8 str r0, [r7, #12] 8003c78: 60b9 str r1, [r7, #8] 8003c7a: 607a str r2, [r7, #4] /* Check the SRAM handle parameter */ if ((hsram == NULL) || (hsram->Init.BurstAccessMode == FSMC_BURST_ACCESS_MODE_ENABLE)) 8003c7c: 68fb ldr r3, [r7, #12] 8003c7e: 2b00 cmp r3, #0 8003c80: d004 beq.n 8003c8c 8003c82: 68fb ldr r3, [r7, #12] 8003c84: 699b ldr r3, [r3, #24] 8003c86: f5b3 7f80 cmp.w r3, #256 ; 0x100 8003c8a: d101 bne.n 8003c90 { return HAL_ERROR; 8003c8c: 2301 movs r3, #1 8003c8e: e038 b.n 8003d02 } if (hsram->State == HAL_SRAM_STATE_RESET) 8003c90: 68fb ldr r3, [r7, #12] 8003c92: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 8003c96: b2db uxtb r3, r3 8003c98: 2b00 cmp r3, #0 8003c9a: d106 bne.n 8003caa { /* Allocate lock resource and initialize it */ hsram->Lock = HAL_UNLOCKED; 8003c9c: 68fb ldr r3, [r7, #12] 8003c9e: 2200 movs r2, #0 8003ca0: f883 2040 strb.w r2, [r3, #64] ; 0x40 /* Init the low level hardware */ hsram->MspInitCallback(hsram); #else /* Initialize the low level hardware (MSP) */ HAL_SRAM_MspInit(hsram); 8003ca4: 68f8 ldr r0, [r7, #12] 8003ca6: f7fd feeb bl 8001a80 #endif /* USE_HAL_SRAM_REGISTER_CALLBACKS */ } /* Initialize SRAM control Interface */ (void)FSMC_NORSRAM_Init(hsram->Instance, &(hsram->Init)); 8003caa: 68fb ldr r3, [r7, #12] 8003cac: 681a ldr r2, [r3, #0] 8003cae: 68fb ldr r3, [r7, #12] 8003cb0: 3308 adds r3, #8 8003cb2: 4619 mov r1, r3 8003cb4: 4610 mov r0, r2 8003cb6: f000 ffc3 bl 8004c40 /* Initialize SRAM timing Interface */ (void)FSMC_NORSRAM_Timing_Init(hsram->Instance, Timing, hsram->Init.NSBank); 8003cba: 68fb ldr r3, [r7, #12] 8003cbc: 6818 ldr r0, [r3, #0] 8003cbe: 68fb ldr r3, [r7, #12] 8003cc0: 689b ldr r3, [r3, #8] 8003cc2: 461a mov r2, r3 8003cc4: 68b9 ldr r1, [r7, #8] 8003cc6: f001 f825 bl 8004d14 /* Initialize SRAM extended mode timing Interface */ (void)FSMC_NORSRAM_Extended_Timing_Init(hsram->Extended, ExtTiming, hsram->Init.NSBank, 8003cca: 68fb ldr r3, [r7, #12] 8003ccc: 6858 ldr r0, [r3, #4] 8003cce: 68fb ldr r3, [r7, #12] 8003cd0: 689a ldr r2, [r3, #8] 8003cd2: 68fb ldr r3, [r7, #12] 8003cd4: 6b1b ldr r3, [r3, #48] ; 0x30 8003cd6: 6879 ldr r1, [r7, #4] 8003cd8: f001 f850 bl 8004d7c hsram->Init.ExtendedMode); /* Enable the NORSRAM device */ __FSMC_NORSRAM_ENABLE(hsram->Instance, hsram->Init.NSBank); 8003cdc: 68fb ldr r3, [r7, #12] 8003cde: 681b ldr r3, [r3, #0] 8003ce0: 68fa ldr r2, [r7, #12] 8003ce2: 6892 ldr r2, [r2, #8] 8003ce4: f853 1022 ldr.w r1, [r3, r2, lsl #2] 8003ce8: 68fb ldr r3, [r7, #12] 8003cea: 681b ldr r3, [r3, #0] 8003cec: 68fa ldr r2, [r7, #12] 8003cee: 6892 ldr r2, [r2, #8] 8003cf0: f041 0101 orr.w r1, r1, #1 8003cf4: f843 1022 str.w r1, [r3, r2, lsl #2] /* Initialize the SRAM controller state */ hsram->State = HAL_SRAM_STATE_READY; 8003cf8: 68fb ldr r3, [r7, #12] 8003cfa: 2201 movs r2, #1 8003cfc: f883 2041 strb.w r2, [r3, #65] ; 0x41 return HAL_OK; 8003d00: 2300 movs r3, #0 } 8003d02: 4618 mov r0, r3 8003d04: 3710 adds r7, #16 8003d06: 46bd mov sp, r7 8003d08: bd80 pop {r7, pc} 08003d0a : * 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) { 8003d0a: b580 push {r7, lr} 8003d0c: b082 sub sp, #8 8003d0e: af00 add r7, sp, #0 8003d10: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) 8003d12: 687b ldr r3, [r7, #4] 8003d14: 2b00 cmp r3, #0 8003d16: d101 bne.n 8003d1c { return HAL_ERROR; 8003d18: 2301 movs r3, #1 8003d1a: e041 b.n 8003da0 assert_param(IS_TIM_INSTANCE(htim->Instance)); assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) 8003d1c: 687b ldr r3, [r7, #4] 8003d1e: f893 303d ldrb.w r3, [r3, #61] ; 0x3d 8003d22: b2db uxtb r3, r3 8003d24: 2b00 cmp r3, #0 8003d26: d106 bne.n 8003d36 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; 8003d28: 687b ldr r3, [r7, #4] 8003d2a: 2200 movs r2, #0 8003d2c: 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); 8003d30: 6878 ldr r0, [r7, #4] 8003d32: f7fd fddb bl 80018ec #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; 8003d36: 687b ldr r3, [r7, #4] 8003d38: 2202 movs r2, #2 8003d3a: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Set the Time Base configuration */ TIM_Base_SetConfig(htim->Instance, &htim->Init); 8003d3e: 687b ldr r3, [r7, #4] 8003d40: 681a ldr r2, [r3, #0] 8003d42: 687b ldr r3, [r7, #4] 8003d44: 3304 adds r3, #4 8003d46: 4619 mov r1, r3 8003d48: 4610 mov r0, r2 8003d4a: f000 fc1b bl 8004584 /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; 8003d4e: 687b ldr r3, [r7, #4] 8003d50: 2201 movs r2, #1 8003d52: f883 2046 strb.w r2, [r3, #70] ; 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8003d56: 687b ldr r3, [r7, #4] 8003d58: 2201 movs r2, #1 8003d5a: f883 203e strb.w r2, [r3, #62] ; 0x3e 8003d5e: 687b ldr r3, [r7, #4] 8003d60: 2201 movs r2, #1 8003d62: f883 203f strb.w r2, [r3, #63] ; 0x3f 8003d66: 687b ldr r3, [r7, #4] 8003d68: 2201 movs r2, #1 8003d6a: f883 2040 strb.w r2, [r3, #64] ; 0x40 8003d6e: 687b ldr r3, [r7, #4] 8003d70: 2201 movs r2, #1 8003d72: f883 2041 strb.w r2, [r3, #65] ; 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8003d76: 687b ldr r3, [r7, #4] 8003d78: 2201 movs r2, #1 8003d7a: f883 2042 strb.w r2, [r3, #66] ; 0x42 8003d7e: 687b ldr r3, [r7, #4] 8003d80: 2201 movs r2, #1 8003d82: f883 2043 strb.w r2, [r3, #67] ; 0x43 8003d86: 687b ldr r3, [r7, #4] 8003d88: 2201 movs r2, #1 8003d8a: f883 2044 strb.w r2, [r3, #68] ; 0x44 8003d8e: 687b ldr r3, [r7, #4] 8003d90: 2201 movs r2, #1 8003d92: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; 8003d96: 687b ldr r3, [r7, #4] 8003d98: 2201 movs r2, #1 8003d9a: f883 203d strb.w r2, [r3, #61] ; 0x3d return HAL_OK; 8003d9e: 2300 movs r3, #0 } 8003da0: 4618 mov r0, r3 8003da2: 3708 adds r7, #8 8003da4: 46bd mov sp, r7 8003da6: bd80 pop {r7, pc} 08003da8 : * @brief Stops the TIM Base generation in interrupt mode. * @param htim TIM Base handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_Base_Stop_IT(TIM_HandleTypeDef *htim) { 8003da8: b480 push {r7} 8003daa: b083 sub sp, #12 8003dac: af00 add r7, sp, #0 8003dae: 6078 str r0, [r7, #4] /* Check the parameters */ assert_param(IS_TIM_INSTANCE(htim->Instance)); /* Disable the TIM Update interrupt */ __HAL_TIM_DISABLE_IT(htim, TIM_IT_UPDATE); 8003db0: 687b ldr r3, [r7, #4] 8003db2: 681b ldr r3, [r3, #0] 8003db4: 68da ldr r2, [r3, #12] 8003db6: 687b ldr r3, [r7, #4] 8003db8: 681b ldr r3, [r3, #0] 8003dba: f022 0201 bic.w r2, r2, #1 8003dbe: 60da str r2, [r3, #12] /* Disable the Peripheral */ __HAL_TIM_DISABLE(htim); 8003dc0: 687b ldr r3, [r7, #4] 8003dc2: 681b ldr r3, [r3, #0] 8003dc4: 6a1a ldr r2, [r3, #32] 8003dc6: f241 1311 movw r3, #4369 ; 0x1111 8003dca: 4013 ands r3, r2 8003dcc: 2b00 cmp r3, #0 8003dce: d10f bne.n 8003df0 8003dd0: 687b ldr r3, [r7, #4] 8003dd2: 681b ldr r3, [r3, #0] 8003dd4: 6a1a ldr r2, [r3, #32] 8003dd6: f240 4344 movw r3, #1092 ; 0x444 8003dda: 4013 ands r3, r2 8003ddc: 2b00 cmp r3, #0 8003dde: d107 bne.n 8003df0 8003de0: 687b ldr r3, [r7, #4] 8003de2: 681b ldr r3, [r3, #0] 8003de4: 681a ldr r2, [r3, #0] 8003de6: 687b ldr r3, [r7, #4] 8003de8: 681b ldr r3, [r3, #0] 8003dea: f022 0201 bic.w r2, r2, #1 8003dee: 601a str r2, [r3, #0] /* Set the TIM state */ htim->State = HAL_TIM_STATE_READY; 8003df0: 687b ldr r3, [r7, #4] 8003df2: 2201 movs r2, #1 8003df4: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Return function status */ return HAL_OK; 8003df8: 2300 movs r3, #0 } 8003dfa: 4618 mov r0, r3 8003dfc: 370c adds r7, #12 8003dfe: 46bd mov sp, r7 8003e00: bc80 pop {r7} 8003e02: 4770 bx lr 08003e04 : * Ex: call @ref HAL_TIM_PWM_DeInit() before HAL_TIM_PWM_Init() * @param htim TIM PWM handle * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim) { 8003e04: b580 push {r7, lr} 8003e06: b082 sub sp, #8 8003e08: af00 add r7, sp, #0 8003e0a: 6078 str r0, [r7, #4] /* Check the TIM handle allocation */ if (htim == NULL) 8003e0c: 687b ldr r3, [r7, #4] 8003e0e: 2b00 cmp r3, #0 8003e10: d101 bne.n 8003e16 { return HAL_ERROR; 8003e12: 2301 movs r3, #1 8003e14: e041 b.n 8003e9a assert_param(IS_TIM_INSTANCE(htim->Instance)); assert_param(IS_TIM_COUNTER_MODE(htim->Init.CounterMode)); assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); assert_param(IS_TIM_AUTORELOAD_PRELOAD(htim->Init.AutoReloadPreload)); if (htim->State == HAL_TIM_STATE_RESET) 8003e16: 687b ldr r3, [r7, #4] 8003e18: f893 303d ldrb.w r3, [r3, #61] ; 0x3d 8003e1c: b2db uxtb r3, r3 8003e1e: 2b00 cmp r3, #0 8003e20: d106 bne.n 8003e30 { /* Allocate lock resource and initialize it */ htim->Lock = HAL_UNLOCKED; 8003e22: 687b ldr r3, [r7, #4] 8003e24: 2200 movs r2, #0 8003e26: f883 203c strb.w r2, [r3, #60] ; 0x3c } /* Init the low level hardware : GPIO, CLOCK, NVIC */ htim->PWM_MspInitCallback(htim); #else /* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */ HAL_TIM_PWM_MspInit(htim); 8003e2a: 6878 ldr r0, [r7, #4] 8003e2c: f000 f839 bl 8003ea2 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } /* Set the TIM state */ htim->State = HAL_TIM_STATE_BUSY; 8003e30: 687b ldr r3, [r7, #4] 8003e32: 2202 movs r2, #2 8003e34: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Init the base time for the PWM */ TIM_Base_SetConfig(htim->Instance, &htim->Init); 8003e38: 687b ldr r3, [r7, #4] 8003e3a: 681a ldr r2, [r3, #0] 8003e3c: 687b ldr r3, [r7, #4] 8003e3e: 3304 adds r3, #4 8003e40: 4619 mov r1, r3 8003e42: 4610 mov r0, r2 8003e44: f000 fb9e bl 8004584 /* Initialize the DMA burst operation state */ htim->DMABurstState = HAL_DMA_BURST_STATE_READY; 8003e48: 687b ldr r3, [r7, #4] 8003e4a: 2201 movs r2, #1 8003e4c: f883 2046 strb.w r2, [r3, #70] ; 0x46 /* Initialize the TIM channels state */ TIM_CHANNEL_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8003e50: 687b ldr r3, [r7, #4] 8003e52: 2201 movs r2, #1 8003e54: f883 203e strb.w r2, [r3, #62] ; 0x3e 8003e58: 687b ldr r3, [r7, #4] 8003e5a: 2201 movs r2, #1 8003e5c: f883 203f strb.w r2, [r3, #63] ; 0x3f 8003e60: 687b ldr r3, [r7, #4] 8003e62: 2201 movs r2, #1 8003e64: f883 2040 strb.w r2, [r3, #64] ; 0x40 8003e68: 687b ldr r3, [r7, #4] 8003e6a: 2201 movs r2, #1 8003e6c: f883 2041 strb.w r2, [r3, #65] ; 0x41 TIM_CHANNEL_N_STATE_SET_ALL(htim, HAL_TIM_CHANNEL_STATE_READY); 8003e70: 687b ldr r3, [r7, #4] 8003e72: 2201 movs r2, #1 8003e74: f883 2042 strb.w r2, [r3, #66] ; 0x42 8003e78: 687b ldr r3, [r7, #4] 8003e7a: 2201 movs r2, #1 8003e7c: f883 2043 strb.w r2, [r3, #67] ; 0x43 8003e80: 687b ldr r3, [r7, #4] 8003e82: 2201 movs r2, #1 8003e84: f883 2044 strb.w r2, [r3, #68] ; 0x44 8003e88: 687b ldr r3, [r7, #4] 8003e8a: 2201 movs r2, #1 8003e8c: f883 2045 strb.w r2, [r3, #69] ; 0x45 /* Initialize the TIM state*/ htim->State = HAL_TIM_STATE_READY; 8003e90: 687b ldr r3, [r7, #4] 8003e92: 2201 movs r2, #1 8003e94: f883 203d strb.w r2, [r3, #61] ; 0x3d return HAL_OK; 8003e98: 2300 movs r3, #0 } 8003e9a: 4618 mov r0, r3 8003e9c: 3708 adds r7, #8 8003e9e: 46bd mov sp, r7 8003ea0: bd80 pop {r7, pc} 08003ea2 : * @brief Initializes the TIM PWM MSP. * @param htim TIM PWM handle * @retval None */ __weak void HAL_TIM_PWM_MspInit(TIM_HandleTypeDef *htim) { 8003ea2: b480 push {r7} 8003ea4: b083 sub sp, #12 8003ea6: af00 add r7, sp, #0 8003ea8: 6078 str r0, [r7, #4] UNUSED(htim); /* NOTE : This function should not be modified, when the callback is needed, the HAL_TIM_PWM_MspInit could be implemented in the user file */ } 8003eaa: bf00 nop 8003eac: 370c adds r7, #12 8003eae: 46bd mov sp, r7 8003eb0: bc80 pop {r7} 8003eb2: 4770 bx lr 08003eb4 : * @arg TIM_CHANNEL_3: TIM Channel 3 selected * @arg TIM_CHANNEL_4: TIM Channel 4 selected * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_Start(TIM_HandleTypeDef *htim, uint32_t Channel) { 8003eb4: b580 push {r7, lr} 8003eb6: b084 sub sp, #16 8003eb8: af00 add r7, sp, #0 8003eba: 6078 str r0, [r7, #4] 8003ebc: 6039 str r1, [r7, #0] /* Check the parameters */ assert_param(IS_TIM_CCX_INSTANCE(htim->Instance, Channel)); /* Check the TIM channel state */ if (TIM_CHANNEL_STATE_GET(htim, Channel) != HAL_TIM_CHANNEL_STATE_READY) 8003ebe: 683b ldr r3, [r7, #0] 8003ec0: 2b00 cmp r3, #0 8003ec2: d109 bne.n 8003ed8 8003ec4: 687b ldr r3, [r7, #4] 8003ec6: f893 303e ldrb.w r3, [r3, #62] ; 0x3e 8003eca: b2db uxtb r3, r3 8003ecc: 2b01 cmp r3, #1 8003ece: bf14 ite ne 8003ed0: 2301 movne r3, #1 8003ed2: 2300 moveq r3, #0 8003ed4: b2db uxtb r3, r3 8003ed6: e022 b.n 8003f1e 8003ed8: 683b ldr r3, [r7, #0] 8003eda: 2b04 cmp r3, #4 8003edc: d109 bne.n 8003ef2 8003ede: 687b ldr r3, [r7, #4] 8003ee0: f893 303f ldrb.w r3, [r3, #63] ; 0x3f 8003ee4: b2db uxtb r3, r3 8003ee6: 2b01 cmp r3, #1 8003ee8: bf14 ite ne 8003eea: 2301 movne r3, #1 8003eec: 2300 moveq r3, #0 8003eee: b2db uxtb r3, r3 8003ef0: e015 b.n 8003f1e 8003ef2: 683b ldr r3, [r7, #0] 8003ef4: 2b08 cmp r3, #8 8003ef6: d109 bne.n 8003f0c 8003ef8: 687b ldr r3, [r7, #4] 8003efa: f893 3040 ldrb.w r3, [r3, #64] ; 0x40 8003efe: b2db uxtb r3, r3 8003f00: 2b01 cmp r3, #1 8003f02: bf14 ite ne 8003f04: 2301 movne r3, #1 8003f06: 2300 moveq r3, #0 8003f08: b2db uxtb r3, r3 8003f0a: e008 b.n 8003f1e 8003f0c: 687b ldr r3, [r7, #4] 8003f0e: f893 3041 ldrb.w r3, [r3, #65] ; 0x41 8003f12: b2db uxtb r3, r3 8003f14: 2b01 cmp r3, #1 8003f16: bf14 ite ne 8003f18: 2301 movne r3, #1 8003f1a: 2300 moveq r3, #0 8003f1c: b2db uxtb r3, r3 8003f1e: 2b00 cmp r3, #0 8003f20: d001 beq.n 8003f26 { return HAL_ERROR; 8003f22: 2301 movs r3, #1 8003f24: e072 b.n 800400c } /* Set the TIM channel state */ TIM_CHANNEL_STATE_SET(htim, Channel, HAL_TIM_CHANNEL_STATE_BUSY); 8003f26: 683b ldr r3, [r7, #0] 8003f28: 2b00 cmp r3, #0 8003f2a: d104 bne.n 8003f36 8003f2c: 687b ldr r3, [r7, #4] 8003f2e: 2202 movs r2, #2 8003f30: f883 203e strb.w r2, [r3, #62] ; 0x3e 8003f34: e013 b.n 8003f5e 8003f36: 683b ldr r3, [r7, #0] 8003f38: 2b04 cmp r3, #4 8003f3a: d104 bne.n 8003f46 8003f3c: 687b ldr r3, [r7, #4] 8003f3e: 2202 movs r2, #2 8003f40: f883 203f strb.w r2, [r3, #63] ; 0x3f 8003f44: e00b b.n 8003f5e 8003f46: 683b ldr r3, [r7, #0] 8003f48: 2b08 cmp r3, #8 8003f4a: d104 bne.n 8003f56 8003f4c: 687b ldr r3, [r7, #4] 8003f4e: 2202 movs r2, #2 8003f50: f883 2040 strb.w r2, [r3, #64] ; 0x40 8003f54: e003 b.n 8003f5e 8003f56: 687b ldr r3, [r7, #4] 8003f58: 2202 movs r2, #2 8003f5a: f883 2041 strb.w r2, [r3, #65] ; 0x41 /* Enable the Capture compare channel */ TIM_CCxChannelCmd(htim->Instance, Channel, TIM_CCx_ENABLE); 8003f5e: 687b ldr r3, [r7, #4] 8003f60: 681b ldr r3, [r3, #0] 8003f62: 2201 movs r2, #1 8003f64: 6839 ldr r1, [r7, #0] 8003f66: 4618 mov r0, r3 8003f68: f000 fdc8 bl 8004afc if (IS_TIM_BREAK_INSTANCE(htim->Instance) != RESET) 8003f6c: 687b ldr r3, [r7, #4] 8003f6e: 681b ldr r3, [r3, #0] 8003f70: 4a28 ldr r2, [pc, #160] ; (8004014 ) 8003f72: 4293 cmp r3, r2 8003f74: d004 beq.n 8003f80 8003f76: 687b ldr r3, [r7, #4] 8003f78: 681b ldr r3, [r3, #0] 8003f7a: 4a27 ldr r2, [pc, #156] ; (8004018 ) 8003f7c: 4293 cmp r3, r2 8003f7e: d101 bne.n 8003f84 8003f80: 2301 movs r3, #1 8003f82: e000 b.n 8003f86 8003f84: 2300 movs r3, #0 8003f86: 2b00 cmp r3, #0 8003f88: d007 beq.n 8003f9a { /* Enable the main output */ __HAL_TIM_MOE_ENABLE(htim); 8003f8a: 687b ldr r3, [r7, #4] 8003f8c: 681b ldr r3, [r3, #0] 8003f8e: 6c5a ldr r2, [r3, #68] ; 0x44 8003f90: 687b ldr r3, [r7, #4] 8003f92: 681b ldr r3, [r3, #0] 8003f94: f442 4200 orr.w r2, r2, #32768 ; 0x8000 8003f98: 645a str r2, [r3, #68] ; 0x44 } /* Enable the Peripheral, except in trigger mode where enable is automatically done with trigger */ if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) 8003f9a: 687b ldr r3, [r7, #4] 8003f9c: 681b ldr r3, [r3, #0] 8003f9e: 4a1d ldr r2, [pc, #116] ; (8004014 ) 8003fa0: 4293 cmp r3, r2 8003fa2: d018 beq.n 8003fd6 8003fa4: 687b ldr r3, [r7, #4] 8003fa6: 681b ldr r3, [r3, #0] 8003fa8: 4a1b ldr r2, [pc, #108] ; (8004018 ) 8003faa: 4293 cmp r3, r2 8003fac: d013 beq.n 8003fd6 8003fae: 687b ldr r3, [r7, #4] 8003fb0: 681b ldr r3, [r3, #0] 8003fb2: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 8003fb6: d00e beq.n 8003fd6 8003fb8: 687b ldr r3, [r7, #4] 8003fba: 681b ldr r3, [r3, #0] 8003fbc: 4a17 ldr r2, [pc, #92] ; (800401c ) 8003fbe: 4293 cmp r3, r2 8003fc0: d009 beq.n 8003fd6 8003fc2: 687b ldr r3, [r7, #4] 8003fc4: 681b ldr r3, [r3, #0] 8003fc6: 4a16 ldr r2, [pc, #88] ; (8004020 ) 8003fc8: 4293 cmp r3, r2 8003fca: d004 beq.n 8003fd6 8003fcc: 687b ldr r3, [r7, #4] 8003fce: 681b ldr r3, [r3, #0] 8003fd0: 4a14 ldr r2, [pc, #80] ; (8004024 ) 8003fd2: 4293 cmp r3, r2 8003fd4: d111 bne.n 8003ffa { tmpsmcr = htim->Instance->SMCR & TIM_SMCR_SMS; 8003fd6: 687b ldr r3, [r7, #4] 8003fd8: 681b ldr r3, [r3, #0] 8003fda: 689b ldr r3, [r3, #8] 8003fdc: f003 0307 and.w r3, r3, #7 8003fe0: 60fb str r3, [r7, #12] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 8003fe2: 68fb ldr r3, [r7, #12] 8003fe4: 2b06 cmp r3, #6 8003fe6: d010 beq.n 800400a { __HAL_TIM_ENABLE(htim); 8003fe8: 687b ldr r3, [r7, #4] 8003fea: 681b ldr r3, [r3, #0] 8003fec: 681a ldr r2, [r3, #0] 8003fee: 687b ldr r3, [r7, #4] 8003ff0: 681b ldr r3, [r3, #0] 8003ff2: f042 0201 orr.w r2, r2, #1 8003ff6: 601a str r2, [r3, #0] if (!IS_TIM_SLAVEMODE_TRIGGER_ENABLED(tmpsmcr)) 8003ff8: e007 b.n 800400a } } else { __HAL_TIM_ENABLE(htim); 8003ffa: 687b ldr r3, [r7, #4] 8003ffc: 681b ldr r3, [r3, #0] 8003ffe: 681a ldr r2, [r3, #0] 8004000: 687b ldr r3, [r7, #4] 8004002: 681b ldr r3, [r3, #0] 8004004: f042 0201 orr.w r2, r2, #1 8004008: 601a str r2, [r3, #0] } /* Return function status */ return HAL_OK; 800400a: 2300 movs r3, #0 } 800400c: 4618 mov r0, r3 800400e: 3710 adds r7, #16 8004010: 46bd mov sp, r7 8004012: bd80 pop {r7, pc} 8004014: 40012c00 .word 0x40012c00 8004018: 40013400 .word 0x40013400 800401c: 40000400 .word 0x40000400 8004020: 40000800 .word 0x40000800 8004024: 40000c00 .word 0x40000c00 08004028 : * @brief This function handles TIM interrupts requests. * @param htim TIM handle * @retval None */ void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) { 8004028: b580 push {r7, lr} 800402a: b082 sub sp, #8 800402c: af00 add r7, sp, #0 800402e: 6078 str r0, [r7, #4] /* Capture compare 1 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC1) != RESET) 8004030: 687b ldr r3, [r7, #4] 8004032: 681b ldr r3, [r3, #0] 8004034: 691b ldr r3, [r3, #16] 8004036: f003 0302 and.w r3, r3, #2 800403a: 2b02 cmp r3, #2 800403c: d122 bne.n 8004084 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC1) != RESET) 800403e: 687b ldr r3, [r7, #4] 8004040: 681b ldr r3, [r3, #0] 8004042: 68db ldr r3, [r3, #12] 8004044: f003 0302 and.w r3, r3, #2 8004048: 2b02 cmp r3, #2 800404a: d11b bne.n 8004084 { { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC1); 800404c: 687b ldr r3, [r7, #4] 800404e: 681b ldr r3, [r3, #0] 8004050: f06f 0202 mvn.w r2, #2 8004054: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_1; 8004056: 687b ldr r3, [r7, #4] 8004058: 2201 movs r2, #1 800405a: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC1S) != 0x00U) 800405c: 687b ldr r3, [r7, #4] 800405e: 681b ldr r3, [r3, #0] 8004060: 699b ldr r3, [r3, #24] 8004062: f003 0303 and.w r3, r3, #3 8004066: 2b00 cmp r3, #0 8004068: d003 beq.n 8004072 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 800406a: 6878 ldr r0, [r7, #4] 800406c: f000 fa6f bl 800454e 8004070: e005 b.n 800407e { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 8004072: 6878 ldr r0, [r7, #4] 8004074: f000 fa62 bl 800453c HAL_TIM_PWM_PulseFinishedCallback(htim); 8004078: 6878 ldr r0, [r7, #4] 800407a: f000 fa71 bl 8004560 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 800407e: 687b ldr r3, [r7, #4] 8004080: 2200 movs r2, #0 8004082: 771a strb r2, [r3, #28] } } } /* Capture compare 2 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC2) != RESET) 8004084: 687b ldr r3, [r7, #4] 8004086: 681b ldr r3, [r3, #0] 8004088: 691b ldr r3, [r3, #16] 800408a: f003 0304 and.w r3, r3, #4 800408e: 2b04 cmp r3, #4 8004090: d122 bne.n 80040d8 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC2) != RESET) 8004092: 687b ldr r3, [r7, #4] 8004094: 681b ldr r3, [r3, #0] 8004096: 68db ldr r3, [r3, #12] 8004098: f003 0304 and.w r3, r3, #4 800409c: 2b04 cmp r3, #4 800409e: d11b bne.n 80040d8 { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC2); 80040a0: 687b ldr r3, [r7, #4] 80040a2: 681b ldr r3, [r3, #0] 80040a4: f06f 0204 mvn.w r2, #4 80040a8: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_2; 80040aa: 687b ldr r3, [r7, #4] 80040ac: 2202 movs r2, #2 80040ae: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR1 & TIM_CCMR1_CC2S) != 0x00U) 80040b0: 687b ldr r3, [r7, #4] 80040b2: 681b ldr r3, [r3, #0] 80040b4: 699b ldr r3, [r3, #24] 80040b6: f403 7340 and.w r3, r3, #768 ; 0x300 80040ba: 2b00 cmp r3, #0 80040bc: d003 beq.n 80040c6 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 80040be: 6878 ldr r0, [r7, #4] 80040c0: f000 fa45 bl 800454e 80040c4: e005 b.n 80040d2 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 80040c6: 6878 ldr r0, [r7, #4] 80040c8: f000 fa38 bl 800453c HAL_TIM_PWM_PulseFinishedCallback(htim); 80040cc: 6878 ldr r0, [r7, #4] 80040ce: f000 fa47 bl 8004560 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 80040d2: 687b ldr r3, [r7, #4] 80040d4: 2200 movs r2, #0 80040d6: 771a strb r2, [r3, #28] } } /* Capture compare 3 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC3) != RESET) 80040d8: 687b ldr r3, [r7, #4] 80040da: 681b ldr r3, [r3, #0] 80040dc: 691b ldr r3, [r3, #16] 80040de: f003 0308 and.w r3, r3, #8 80040e2: 2b08 cmp r3, #8 80040e4: d122 bne.n 800412c { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC3) != RESET) 80040e6: 687b ldr r3, [r7, #4] 80040e8: 681b ldr r3, [r3, #0] 80040ea: 68db ldr r3, [r3, #12] 80040ec: f003 0308 and.w r3, r3, #8 80040f0: 2b08 cmp r3, #8 80040f2: d11b bne.n 800412c { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC3); 80040f4: 687b ldr r3, [r7, #4] 80040f6: 681b ldr r3, [r3, #0] 80040f8: f06f 0208 mvn.w r2, #8 80040fc: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_3; 80040fe: 687b ldr r3, [r7, #4] 8004100: 2204 movs r2, #4 8004102: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC3S) != 0x00U) 8004104: 687b ldr r3, [r7, #4] 8004106: 681b ldr r3, [r3, #0] 8004108: 69db ldr r3, [r3, #28] 800410a: f003 0303 and.w r3, r3, #3 800410e: 2b00 cmp r3, #0 8004110: d003 beq.n 800411a { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 8004112: 6878 ldr r0, [r7, #4] 8004114: f000 fa1b bl 800454e 8004118: e005 b.n 8004126 { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 800411a: 6878 ldr r0, [r7, #4] 800411c: f000 fa0e bl 800453c HAL_TIM_PWM_PulseFinishedCallback(htim); 8004120: 6878 ldr r0, [r7, #4] 8004122: f000 fa1d bl 8004560 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 8004126: 687b ldr r3, [r7, #4] 8004128: 2200 movs r2, #0 800412a: 771a strb r2, [r3, #28] } } /* Capture compare 4 event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_CC4) != RESET) 800412c: 687b ldr r3, [r7, #4] 800412e: 681b ldr r3, [r3, #0] 8004130: 691b ldr r3, [r3, #16] 8004132: f003 0310 and.w r3, r3, #16 8004136: 2b10 cmp r3, #16 8004138: d122 bne.n 8004180 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_CC4) != RESET) 800413a: 687b ldr r3, [r7, #4] 800413c: 681b ldr r3, [r3, #0] 800413e: 68db ldr r3, [r3, #12] 8004140: f003 0310 and.w r3, r3, #16 8004144: 2b10 cmp r3, #16 8004146: d11b bne.n 8004180 { __HAL_TIM_CLEAR_IT(htim, TIM_IT_CC4); 8004148: 687b ldr r3, [r7, #4] 800414a: 681b ldr r3, [r3, #0] 800414c: f06f 0210 mvn.w r2, #16 8004150: 611a str r2, [r3, #16] htim->Channel = HAL_TIM_ACTIVE_CHANNEL_4; 8004152: 687b ldr r3, [r7, #4] 8004154: 2208 movs r2, #8 8004156: 771a strb r2, [r3, #28] /* Input capture event */ if ((htim->Instance->CCMR2 & TIM_CCMR2_CC4S) != 0x00U) 8004158: 687b ldr r3, [r7, #4] 800415a: 681b ldr r3, [r3, #0] 800415c: 69db ldr r3, [r3, #28] 800415e: f403 7340 and.w r3, r3, #768 ; 0x300 8004162: 2b00 cmp r3, #0 8004164: d003 beq.n 800416e { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->IC_CaptureCallback(htim); #else HAL_TIM_IC_CaptureCallback(htim); 8004166: 6878 ldr r0, [r7, #4] 8004168: f000 f9f1 bl 800454e 800416c: e005 b.n 800417a { #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->OC_DelayElapsedCallback(htim); htim->PWM_PulseFinishedCallback(htim); #else HAL_TIM_OC_DelayElapsedCallback(htim); 800416e: 6878 ldr r0, [r7, #4] 8004170: f000 f9e4 bl 800453c HAL_TIM_PWM_PulseFinishedCallback(htim); 8004174: 6878 ldr r0, [r7, #4] 8004176: f000 f9f3 bl 8004560 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } htim->Channel = HAL_TIM_ACTIVE_CHANNEL_CLEARED; 800417a: 687b ldr r3, [r7, #4] 800417c: 2200 movs r2, #0 800417e: 771a strb r2, [r3, #28] } } /* TIM Update event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_UPDATE) != RESET) 8004180: 687b ldr r3, [r7, #4] 8004182: 681b ldr r3, [r3, #0] 8004184: 691b ldr r3, [r3, #16] 8004186: f003 0301 and.w r3, r3, #1 800418a: 2b01 cmp r3, #1 800418c: d10e bne.n 80041ac { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_UPDATE) != RESET) 800418e: 687b ldr r3, [r7, #4] 8004190: 681b ldr r3, [r3, #0] 8004192: 68db ldr r3, [r3, #12] 8004194: f003 0301 and.w r3, r3, #1 8004198: 2b01 cmp r3, #1 800419a: d107 bne.n 80041ac { __HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE); 800419c: 687b ldr r3, [r7, #4] 800419e: 681b ldr r3, [r3, #0] 80041a0: f06f 0201 mvn.w r2, #1 80041a4: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->PeriodElapsedCallback(htim); #else HAL_TIM_PeriodElapsedCallback(htim); 80041a6: 6878 ldr r0, [r7, #4] 80041a8: f003 f886 bl 80072b8 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Break input event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_BREAK) != RESET) 80041ac: 687b ldr r3, [r7, #4] 80041ae: 681b ldr r3, [r3, #0] 80041b0: 691b ldr r3, [r3, #16] 80041b2: f003 0380 and.w r3, r3, #128 ; 0x80 80041b6: 2b80 cmp r3, #128 ; 0x80 80041b8: d10e bne.n 80041d8 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_BREAK) != RESET) 80041ba: 687b ldr r3, [r7, #4] 80041bc: 681b ldr r3, [r3, #0] 80041be: 68db ldr r3, [r3, #12] 80041c0: f003 0380 and.w r3, r3, #128 ; 0x80 80041c4: 2b80 cmp r3, #128 ; 0x80 80041c6: d107 bne.n 80041d8 { __HAL_TIM_CLEAR_IT(htim, TIM_IT_BREAK); 80041c8: 687b ldr r3, [r7, #4] 80041ca: 681b ldr r3, [r3, #0] 80041cc: f06f 0280 mvn.w r2, #128 ; 0x80 80041d0: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->BreakCallback(htim); #else HAL_TIMEx_BreakCallback(htim); 80041d2: 6878 ldr r0, [r7, #4] 80041d4: f000 fd2b bl 8004c2e #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM Trigger detection event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_TRIGGER) != RESET) 80041d8: 687b ldr r3, [r7, #4] 80041da: 681b ldr r3, [r3, #0] 80041dc: 691b ldr r3, [r3, #16] 80041de: f003 0340 and.w r3, r3, #64 ; 0x40 80041e2: 2b40 cmp r3, #64 ; 0x40 80041e4: d10e bne.n 8004204 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_TRIGGER) != RESET) 80041e6: 687b ldr r3, [r7, #4] 80041e8: 681b ldr r3, [r3, #0] 80041ea: 68db ldr r3, [r3, #12] 80041ec: f003 0340 and.w r3, r3, #64 ; 0x40 80041f0: 2b40 cmp r3, #64 ; 0x40 80041f2: d107 bne.n 8004204 { __HAL_TIM_CLEAR_IT(htim, TIM_IT_TRIGGER); 80041f4: 687b ldr r3, [r7, #4] 80041f6: 681b ldr r3, [r3, #0] 80041f8: f06f 0240 mvn.w r2, #64 ; 0x40 80041fc: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->TriggerCallback(htim); #else HAL_TIM_TriggerCallback(htim); 80041fe: 6878 ldr r0, [r7, #4] 8004200: f000 f9b7 bl 8004572 #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } /* TIM commutation event */ if (__HAL_TIM_GET_FLAG(htim, TIM_FLAG_COM) != RESET) 8004204: 687b ldr r3, [r7, #4] 8004206: 681b ldr r3, [r3, #0] 8004208: 691b ldr r3, [r3, #16] 800420a: f003 0320 and.w r3, r3, #32 800420e: 2b20 cmp r3, #32 8004210: d10e bne.n 8004230 { if (__HAL_TIM_GET_IT_SOURCE(htim, TIM_IT_COM) != RESET) 8004212: 687b ldr r3, [r7, #4] 8004214: 681b ldr r3, [r3, #0] 8004216: 68db ldr r3, [r3, #12] 8004218: f003 0320 and.w r3, r3, #32 800421c: 2b20 cmp r3, #32 800421e: d107 bne.n 8004230 { __HAL_TIM_CLEAR_IT(htim, TIM_FLAG_COM); 8004220: 687b ldr r3, [r7, #4] 8004222: 681b ldr r3, [r3, #0] 8004224: f06f 0220 mvn.w r2, #32 8004228: 611a str r2, [r3, #16] #if (USE_HAL_TIM_REGISTER_CALLBACKS == 1) htim->CommutationCallback(htim); #else HAL_TIMEx_CommutCallback(htim); 800422a: 6878 ldr r0, [r7, #4] 800422c: f000 fcf6 bl 8004c1c #endif /* USE_HAL_TIM_REGISTER_CALLBACKS */ } } } 8004230: bf00 nop 8004232: 3708 adds r7, #8 8004234: 46bd mov sp, r7 8004236: bd80 pop {r7, pc} 08004238 : * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_PWM_ConfigChannel(TIM_HandleTypeDef *htim, TIM_OC_InitTypeDef *sConfig, uint32_t Channel) { 8004238: b580 push {r7, lr} 800423a: b084 sub sp, #16 800423c: af00 add r7, sp, #0 800423e: 60f8 str r0, [r7, #12] 8004240: 60b9 str r1, [r7, #8] 8004242: 607a str r2, [r7, #4] assert_param(IS_TIM_PWM_MODE(sConfig->OCMode)); assert_param(IS_TIM_OC_POLARITY(sConfig->OCPolarity)); assert_param(IS_TIM_FAST_STATE(sConfig->OCFastMode)); /* Process Locked */ __HAL_LOCK(htim); 8004244: 68fb ldr r3, [r7, #12] 8004246: f893 303c ldrb.w r3, [r3, #60] ; 0x3c 800424a: 2b01 cmp r3, #1 800424c: d101 bne.n 8004252 800424e: 2302 movs r3, #2 8004250: e0ac b.n 80043ac 8004252: 68fb ldr r3, [r7, #12] 8004254: 2201 movs r2, #1 8004256: f883 203c strb.w r2, [r3, #60] ; 0x3c switch (Channel) 800425a: 687b ldr r3, [r7, #4] 800425c: 2b0c cmp r3, #12 800425e: f200 809f bhi.w 80043a0 8004262: a201 add r2, pc, #4 ; (adr r2, 8004268 ) 8004264: f852 f023 ldr.w pc, [r2, r3, lsl #2] 8004268: 0800429d .word 0x0800429d 800426c: 080043a1 .word 0x080043a1 8004270: 080043a1 .word 0x080043a1 8004274: 080043a1 .word 0x080043a1 8004278: 080042dd .word 0x080042dd 800427c: 080043a1 .word 0x080043a1 8004280: 080043a1 .word 0x080043a1 8004284: 080043a1 .word 0x080043a1 8004288: 0800431f .word 0x0800431f 800428c: 080043a1 .word 0x080043a1 8004290: 080043a1 .word 0x080043a1 8004294: 080043a1 .word 0x080043a1 8004298: 0800435f .word 0x0800435f { /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(htim->Instance)); /* Configure the Channel 1 in PWM mode */ TIM_OC1_SetConfig(htim->Instance, sConfig); 800429c: 68fb ldr r3, [r7, #12] 800429e: 681b ldr r3, [r3, #0] 80042a0: 68b9 ldr r1, [r7, #8] 80042a2: 4618 mov r0, r3 80042a4: f000 f9e8 bl 8004678 /* Set the Preload enable bit for channel1 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC1PE; 80042a8: 68fb ldr r3, [r7, #12] 80042aa: 681b ldr r3, [r3, #0] 80042ac: 699a ldr r2, [r3, #24] 80042ae: 68fb ldr r3, [r7, #12] 80042b0: 681b ldr r3, [r3, #0] 80042b2: f042 0208 orr.w r2, r2, #8 80042b6: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC1FE; 80042b8: 68fb ldr r3, [r7, #12] 80042ba: 681b ldr r3, [r3, #0] 80042bc: 699a ldr r2, [r3, #24] 80042be: 68fb ldr r3, [r7, #12] 80042c0: 681b ldr r3, [r3, #0] 80042c2: f022 0204 bic.w r2, r2, #4 80042c6: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode; 80042c8: 68fb ldr r3, [r7, #12] 80042ca: 681b ldr r3, [r3, #0] 80042cc: 6999 ldr r1, [r3, #24] 80042ce: 68bb ldr r3, [r7, #8] 80042d0: 691a ldr r2, [r3, #16] 80042d2: 68fb ldr r3, [r7, #12] 80042d4: 681b ldr r3, [r3, #0] 80042d6: 430a orrs r2, r1 80042d8: 619a str r2, [r3, #24] break; 80042da: e062 b.n 80043a2 { /* Check the parameters */ assert_param(IS_TIM_CC2_INSTANCE(htim->Instance)); /* Configure the Channel 2 in PWM mode */ TIM_OC2_SetConfig(htim->Instance, sConfig); 80042dc: 68fb ldr r3, [r7, #12] 80042de: 681b ldr r3, [r3, #0] 80042e0: 68b9 ldr r1, [r7, #8] 80042e2: 4618 mov r0, r3 80042e4: f000 fa38 bl 8004758 /* Set the Preload enable bit for channel2 */ htim->Instance->CCMR1 |= TIM_CCMR1_OC2PE; 80042e8: 68fb ldr r3, [r7, #12] 80042ea: 681b ldr r3, [r3, #0] 80042ec: 699a ldr r2, [r3, #24] 80042ee: 68fb ldr r3, [r7, #12] 80042f0: 681b ldr r3, [r3, #0] 80042f2: f442 6200 orr.w r2, r2, #2048 ; 0x800 80042f6: 619a str r2, [r3, #24] /* Configure the Output Fast mode */ htim->Instance->CCMR1 &= ~TIM_CCMR1_OC2FE; 80042f8: 68fb ldr r3, [r7, #12] 80042fa: 681b ldr r3, [r3, #0] 80042fc: 699a ldr r2, [r3, #24] 80042fe: 68fb ldr r3, [r7, #12] 8004300: 681b ldr r3, [r3, #0] 8004302: f422 6280 bic.w r2, r2, #1024 ; 0x400 8004306: 619a str r2, [r3, #24] htim->Instance->CCMR1 |= sConfig->OCFastMode << 8U; 8004308: 68fb ldr r3, [r7, #12] 800430a: 681b ldr r3, [r3, #0] 800430c: 6999 ldr r1, [r3, #24] 800430e: 68bb ldr r3, [r7, #8] 8004310: 691b ldr r3, [r3, #16] 8004312: 021a lsls r2, r3, #8 8004314: 68fb ldr r3, [r7, #12] 8004316: 681b ldr r3, [r3, #0] 8004318: 430a orrs r2, r1 800431a: 619a str r2, [r3, #24] break; 800431c: e041 b.n 80043a2 { /* Check the parameters */ assert_param(IS_TIM_CC3_INSTANCE(htim->Instance)); /* Configure the Channel 3 in PWM mode */ TIM_OC3_SetConfig(htim->Instance, sConfig); 800431e: 68fb ldr r3, [r7, #12] 8004320: 681b ldr r3, [r3, #0] 8004322: 68b9 ldr r1, [r7, #8] 8004324: 4618 mov r0, r3 8004326: f000 fa8b bl 8004840 /* Set the Preload enable bit for channel3 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC3PE; 800432a: 68fb ldr r3, [r7, #12] 800432c: 681b ldr r3, [r3, #0] 800432e: 69da ldr r2, [r3, #28] 8004330: 68fb ldr r3, [r7, #12] 8004332: 681b ldr r3, [r3, #0] 8004334: f042 0208 orr.w r2, r2, #8 8004338: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC3FE; 800433a: 68fb ldr r3, [r7, #12] 800433c: 681b ldr r3, [r3, #0] 800433e: 69da ldr r2, [r3, #28] 8004340: 68fb ldr r3, [r7, #12] 8004342: 681b ldr r3, [r3, #0] 8004344: f022 0204 bic.w r2, r2, #4 8004348: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode; 800434a: 68fb ldr r3, [r7, #12] 800434c: 681b ldr r3, [r3, #0] 800434e: 69d9 ldr r1, [r3, #28] 8004350: 68bb ldr r3, [r7, #8] 8004352: 691a ldr r2, [r3, #16] 8004354: 68fb ldr r3, [r7, #12] 8004356: 681b ldr r3, [r3, #0] 8004358: 430a orrs r2, r1 800435a: 61da str r2, [r3, #28] break; 800435c: e021 b.n 80043a2 { /* Check the parameters */ assert_param(IS_TIM_CC4_INSTANCE(htim->Instance)); /* Configure the Channel 4 in PWM mode */ TIM_OC4_SetConfig(htim->Instance, sConfig); 800435e: 68fb ldr r3, [r7, #12] 8004360: 681b ldr r3, [r3, #0] 8004362: 68b9 ldr r1, [r7, #8] 8004364: 4618 mov r0, r3 8004366: f000 fadf bl 8004928 /* Set the Preload enable bit for channel4 */ htim->Instance->CCMR2 |= TIM_CCMR2_OC4PE; 800436a: 68fb ldr r3, [r7, #12] 800436c: 681b ldr r3, [r3, #0] 800436e: 69da ldr r2, [r3, #28] 8004370: 68fb ldr r3, [r7, #12] 8004372: 681b ldr r3, [r3, #0] 8004374: f442 6200 orr.w r2, r2, #2048 ; 0x800 8004378: 61da str r2, [r3, #28] /* Configure the Output Fast mode */ htim->Instance->CCMR2 &= ~TIM_CCMR2_OC4FE; 800437a: 68fb ldr r3, [r7, #12] 800437c: 681b ldr r3, [r3, #0] 800437e: 69da ldr r2, [r3, #28] 8004380: 68fb ldr r3, [r7, #12] 8004382: 681b ldr r3, [r3, #0] 8004384: f422 6280 bic.w r2, r2, #1024 ; 0x400 8004388: 61da str r2, [r3, #28] htim->Instance->CCMR2 |= sConfig->OCFastMode << 8U; 800438a: 68fb ldr r3, [r7, #12] 800438c: 681b ldr r3, [r3, #0] 800438e: 69d9 ldr r1, [r3, #28] 8004390: 68bb ldr r3, [r7, #8] 8004392: 691b ldr r3, [r3, #16] 8004394: 021a lsls r2, r3, #8 8004396: 68fb ldr r3, [r7, #12] 8004398: 681b ldr r3, [r3, #0] 800439a: 430a orrs r2, r1 800439c: 61da str r2, [r3, #28] break; 800439e: e000 b.n 80043a2 } default: break; 80043a0: bf00 nop } __HAL_UNLOCK(htim); 80043a2: 68fb ldr r3, [r7, #12] 80043a4: 2200 movs r2, #0 80043a6: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_OK; 80043aa: 2300 movs r3, #0 } 80043ac: 4618 mov r0, r3 80043ae: 3710 adds r7, #16 80043b0: 46bd mov sp, r7 80043b2: bd80 pop {r7, pc} 080043b4 : * @param sClockSourceConfig pointer to a TIM_ClockConfigTypeDef structure that * contains the clock source information for the TIM peripheral. * @retval HAL status */ HAL_StatusTypeDef HAL_TIM_ConfigClockSource(TIM_HandleTypeDef *htim, TIM_ClockConfigTypeDef *sClockSourceConfig) { 80043b4: b580 push {r7, lr} 80043b6: b084 sub sp, #16 80043b8: af00 add r7, sp, #0 80043ba: 6078 str r0, [r7, #4] 80043bc: 6039 str r1, [r7, #0] uint32_t tmpsmcr; /* Process Locked */ __HAL_LOCK(htim); 80043be: 687b ldr r3, [r7, #4] 80043c0: f893 303c ldrb.w r3, [r3, #60] ; 0x3c 80043c4: 2b01 cmp r3, #1 80043c6: d101 bne.n 80043cc 80043c8: 2302 movs r3, #2 80043ca: e0b3 b.n 8004534 80043cc: 687b ldr r3, [r7, #4] 80043ce: 2201 movs r2, #1 80043d0: f883 203c strb.w r2, [r3, #60] ; 0x3c htim->State = HAL_TIM_STATE_BUSY; 80043d4: 687b ldr r3, [r7, #4] 80043d6: 2202 movs r2, #2 80043d8: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Check the parameters */ assert_param(IS_TIM_CLOCKSOURCE(sClockSourceConfig->ClockSource)); /* Reset the SMS, TS, ECE, ETPS and ETRF bits */ tmpsmcr = htim->Instance->SMCR; 80043dc: 687b ldr r3, [r7, #4] 80043de: 681b ldr r3, [r3, #0] 80043e0: 689b ldr r3, [r3, #8] 80043e2: 60fb str r3, [r7, #12] tmpsmcr &= ~(TIM_SMCR_SMS | TIM_SMCR_TS); 80043e4: 68fb ldr r3, [r7, #12] 80043e6: f023 0377 bic.w r3, r3, #119 ; 0x77 80043ea: 60fb str r3, [r7, #12] tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); 80043ec: 68fb ldr r3, [r7, #12] 80043ee: f423 437f bic.w r3, r3, #65280 ; 0xff00 80043f2: 60fb str r3, [r7, #12] htim->Instance->SMCR = tmpsmcr; 80043f4: 687b ldr r3, [r7, #4] 80043f6: 681b ldr r3, [r3, #0] 80043f8: 68fa ldr r2, [r7, #12] 80043fa: 609a str r2, [r3, #8] switch (sClockSourceConfig->ClockSource) 80043fc: 683b ldr r3, [r7, #0] 80043fe: 681b ldr r3, [r3, #0] 8004400: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 8004404: d03e beq.n 8004484 8004406: f5b3 5f00 cmp.w r3, #8192 ; 0x2000 800440a: f200 8087 bhi.w 800451c 800440e: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 8004412: f000 8085 beq.w 8004520 8004416: f5b3 5f80 cmp.w r3, #4096 ; 0x1000 800441a: d87f bhi.n 800451c 800441c: 2b70 cmp r3, #112 ; 0x70 800441e: d01a beq.n 8004456 8004420: 2b70 cmp r3, #112 ; 0x70 8004422: d87b bhi.n 800451c 8004424: 2b60 cmp r3, #96 ; 0x60 8004426: d050 beq.n 80044ca 8004428: 2b60 cmp r3, #96 ; 0x60 800442a: d877 bhi.n 800451c 800442c: 2b50 cmp r3, #80 ; 0x50 800442e: d03c beq.n 80044aa 8004430: 2b50 cmp r3, #80 ; 0x50 8004432: d873 bhi.n 800451c 8004434: 2b40 cmp r3, #64 ; 0x40 8004436: d058 beq.n 80044ea 8004438: 2b40 cmp r3, #64 ; 0x40 800443a: d86f bhi.n 800451c 800443c: 2b30 cmp r3, #48 ; 0x30 800443e: d064 beq.n 800450a 8004440: 2b30 cmp r3, #48 ; 0x30 8004442: d86b bhi.n 800451c 8004444: 2b20 cmp r3, #32 8004446: d060 beq.n 800450a 8004448: 2b20 cmp r3, #32 800444a: d867 bhi.n 800451c 800444c: 2b00 cmp r3, #0 800444e: d05c beq.n 800450a 8004450: 2b10 cmp r3, #16 8004452: d05a beq.n 800450a TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource); break; } default: break; 8004454: e062 b.n 800451c TIM_ETR_SetConfig(htim->Instance, 8004456: 687b ldr r3, [r7, #4] 8004458: 6818 ldr r0, [r3, #0] 800445a: 683b ldr r3, [r7, #0] 800445c: 6899 ldr r1, [r3, #8] 800445e: 683b ldr r3, [r7, #0] 8004460: 685a ldr r2, [r3, #4] 8004462: 683b ldr r3, [r7, #0] 8004464: 68db ldr r3, [r3, #12] 8004466: f000 fb2a bl 8004abe tmpsmcr = htim->Instance->SMCR; 800446a: 687b ldr r3, [r7, #4] 800446c: 681b ldr r3, [r3, #0] 800446e: 689b ldr r3, [r3, #8] 8004470: 60fb str r3, [r7, #12] tmpsmcr |= (TIM_SLAVEMODE_EXTERNAL1 | TIM_CLOCKSOURCE_ETRMODE1); 8004472: 68fb ldr r3, [r7, #12] 8004474: f043 0377 orr.w r3, r3, #119 ; 0x77 8004478: 60fb str r3, [r7, #12] htim->Instance->SMCR = tmpsmcr; 800447a: 687b ldr r3, [r7, #4] 800447c: 681b ldr r3, [r3, #0] 800447e: 68fa ldr r2, [r7, #12] 8004480: 609a str r2, [r3, #8] break; 8004482: e04e b.n 8004522 TIM_ETR_SetConfig(htim->Instance, 8004484: 687b ldr r3, [r7, #4] 8004486: 6818 ldr r0, [r3, #0] 8004488: 683b ldr r3, [r7, #0] 800448a: 6899 ldr r1, [r3, #8] 800448c: 683b ldr r3, [r7, #0] 800448e: 685a ldr r2, [r3, #4] 8004490: 683b ldr r3, [r7, #0] 8004492: 68db ldr r3, [r3, #12] 8004494: f000 fb13 bl 8004abe htim->Instance->SMCR |= TIM_SMCR_ECE; 8004498: 687b ldr r3, [r7, #4] 800449a: 681b ldr r3, [r3, #0] 800449c: 689a ldr r2, [r3, #8] 800449e: 687b ldr r3, [r7, #4] 80044a0: 681b ldr r3, [r3, #0] 80044a2: f442 4280 orr.w r2, r2, #16384 ; 0x4000 80044a6: 609a str r2, [r3, #8] break; 80044a8: e03b b.n 8004522 TIM_TI1_ConfigInputStage(htim->Instance, 80044aa: 687b ldr r3, [r7, #4] 80044ac: 6818 ldr r0, [r3, #0] 80044ae: 683b ldr r3, [r7, #0] 80044b0: 6859 ldr r1, [r3, #4] 80044b2: 683b ldr r3, [r7, #0] 80044b4: 68db ldr r3, [r3, #12] 80044b6: 461a mov r2, r3 80044b8: f000 fa8a bl 80049d0 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1); 80044bc: 687b ldr r3, [r7, #4] 80044be: 681b ldr r3, [r3, #0] 80044c0: 2150 movs r1, #80 ; 0x50 80044c2: 4618 mov r0, r3 80044c4: f000 fae1 bl 8004a8a break; 80044c8: e02b b.n 8004522 TIM_TI2_ConfigInputStage(htim->Instance, 80044ca: 687b ldr r3, [r7, #4] 80044cc: 6818 ldr r0, [r3, #0] 80044ce: 683b ldr r3, [r7, #0] 80044d0: 6859 ldr r1, [r3, #4] 80044d2: 683b ldr r3, [r7, #0] 80044d4: 68db ldr r3, [r3, #12] 80044d6: 461a mov r2, r3 80044d8: f000 faa8 bl 8004a2c TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI2); 80044dc: 687b ldr r3, [r7, #4] 80044de: 681b ldr r3, [r3, #0] 80044e0: 2160 movs r1, #96 ; 0x60 80044e2: 4618 mov r0, r3 80044e4: f000 fad1 bl 8004a8a break; 80044e8: e01b b.n 8004522 TIM_TI1_ConfigInputStage(htim->Instance, 80044ea: 687b ldr r3, [r7, #4] 80044ec: 6818 ldr r0, [r3, #0] 80044ee: 683b ldr r3, [r7, #0] 80044f0: 6859 ldr r1, [r3, #4] 80044f2: 683b ldr r3, [r7, #0] 80044f4: 68db ldr r3, [r3, #12] 80044f6: 461a mov r2, r3 80044f8: f000 fa6a bl 80049d0 TIM_ITRx_SetConfig(htim->Instance, TIM_CLOCKSOURCE_TI1ED); 80044fc: 687b ldr r3, [r7, #4] 80044fe: 681b ldr r3, [r3, #0] 8004500: 2140 movs r1, #64 ; 0x40 8004502: 4618 mov r0, r3 8004504: f000 fac1 bl 8004a8a break; 8004508: e00b b.n 8004522 TIM_ITRx_SetConfig(htim->Instance, sClockSourceConfig->ClockSource); 800450a: 687b ldr r3, [r7, #4] 800450c: 681a ldr r2, [r3, #0] 800450e: 683b ldr r3, [r7, #0] 8004510: 681b ldr r3, [r3, #0] 8004512: 4619 mov r1, r3 8004514: 4610 mov r0, r2 8004516: f000 fab8 bl 8004a8a break; 800451a: e002 b.n 8004522 break; 800451c: bf00 nop 800451e: e000 b.n 8004522 break; 8004520: bf00 nop } htim->State = HAL_TIM_STATE_READY; 8004522: 687b ldr r3, [r7, #4] 8004524: 2201 movs r2, #1 8004526: f883 203d strb.w r2, [r3, #61] ; 0x3d __HAL_UNLOCK(htim); 800452a: 687b ldr r3, [r7, #4] 800452c: 2200 movs r2, #0 800452e: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_OK; 8004532: 2300 movs r3, #0 } 8004534: 4618 mov r0, r3 8004536: 3710 adds r7, #16 8004538: 46bd mov sp, r7 800453a: bd80 pop {r7, pc} 0800453c : * @brief Output Compare callback in non-blocking mode * @param htim TIM OC handle * @retval None */ __weak void HAL_TIM_OC_DelayElapsedCallback(TIM_HandleTypeDef *htim) { 800453c: b480 push {r7} 800453e: b083 sub sp, #12 8004540: af00 add r7, sp, #0 8004542: 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 */ } 8004544: bf00 nop 8004546: 370c adds r7, #12 8004548: 46bd mov sp, r7 800454a: bc80 pop {r7} 800454c: 4770 bx lr 0800454e : * @brief Input Capture callback in non-blocking mode * @param htim TIM IC handle * @retval None */ __weak void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim) { 800454e: b480 push {r7} 8004550: b083 sub sp, #12 8004552: af00 add r7, sp, #0 8004554: 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 */ } 8004556: bf00 nop 8004558: 370c adds r7, #12 800455a: 46bd mov sp, r7 800455c: bc80 pop {r7} 800455e: 4770 bx lr 08004560 : * @brief PWM Pulse finished callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_PWM_PulseFinishedCallback(TIM_HandleTypeDef *htim) { 8004560: b480 push {r7} 8004562: b083 sub sp, #12 8004564: af00 add r7, sp, #0 8004566: 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 */ } 8004568: bf00 nop 800456a: 370c adds r7, #12 800456c: 46bd mov sp, r7 800456e: bc80 pop {r7} 8004570: 4770 bx lr 08004572 : * @brief Hall Trigger detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIM_TriggerCallback(TIM_HandleTypeDef *htim) { 8004572: b480 push {r7} 8004574: b083 sub sp, #12 8004576: af00 add r7, sp, #0 8004578: 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 */ } 800457a: bf00 nop 800457c: 370c adds r7, #12 800457e: 46bd mov sp, r7 8004580: bc80 pop {r7} 8004582: 4770 bx lr 08004584 : * @param TIMx TIM peripheral * @param Structure TIM Base configuration structure * @retval None */ void TIM_Base_SetConfig(TIM_TypeDef *TIMx, TIM_Base_InitTypeDef *Structure) { 8004584: b480 push {r7} 8004586: b085 sub sp, #20 8004588: af00 add r7, sp, #0 800458a: 6078 str r0, [r7, #4] 800458c: 6039 str r1, [r7, #0] uint32_t tmpcr1; tmpcr1 = TIMx->CR1; 800458e: 687b ldr r3, [r7, #4] 8004590: 681b ldr r3, [r3, #0] 8004592: 60fb str r3, [r7, #12] /* Set TIM Time Base Unit parameters ---------------------------------------*/ if (IS_TIM_COUNTER_MODE_SELECT_INSTANCE(TIMx)) 8004594: 687b ldr r3, [r7, #4] 8004596: 4a33 ldr r2, [pc, #204] ; (8004664 ) 8004598: 4293 cmp r3, r2 800459a: d013 beq.n 80045c4 800459c: 687b ldr r3, [r7, #4] 800459e: 4a32 ldr r2, [pc, #200] ; (8004668 ) 80045a0: 4293 cmp r3, r2 80045a2: d00f beq.n 80045c4 80045a4: 687b ldr r3, [r7, #4] 80045a6: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 80045aa: d00b beq.n 80045c4 80045ac: 687b ldr r3, [r7, #4] 80045ae: 4a2f ldr r2, [pc, #188] ; (800466c ) 80045b0: 4293 cmp r3, r2 80045b2: d007 beq.n 80045c4 80045b4: 687b ldr r3, [r7, #4] 80045b6: 4a2e ldr r2, [pc, #184] ; (8004670 ) 80045b8: 4293 cmp r3, r2 80045ba: d003 beq.n 80045c4 80045bc: 687b ldr r3, [r7, #4] 80045be: 4a2d ldr r2, [pc, #180] ; (8004674 ) 80045c0: 4293 cmp r3, r2 80045c2: d108 bne.n 80045d6 { /* Select the Counter Mode */ tmpcr1 &= ~(TIM_CR1_DIR | TIM_CR1_CMS); 80045c4: 68fb ldr r3, [r7, #12] 80045c6: f023 0370 bic.w r3, r3, #112 ; 0x70 80045ca: 60fb str r3, [r7, #12] tmpcr1 |= Structure->CounterMode; 80045cc: 683b ldr r3, [r7, #0] 80045ce: 685b ldr r3, [r3, #4] 80045d0: 68fa ldr r2, [r7, #12] 80045d2: 4313 orrs r3, r2 80045d4: 60fb str r3, [r7, #12] } if (IS_TIM_CLOCK_DIVISION_INSTANCE(TIMx)) 80045d6: 687b ldr r3, [r7, #4] 80045d8: 4a22 ldr r2, [pc, #136] ; (8004664 ) 80045da: 4293 cmp r3, r2 80045dc: d013 beq.n 8004606 80045de: 687b ldr r3, [r7, #4] 80045e0: 4a21 ldr r2, [pc, #132] ; (8004668 ) 80045e2: 4293 cmp r3, r2 80045e4: d00f beq.n 8004606 80045e6: 687b ldr r3, [r7, #4] 80045e8: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 80045ec: d00b beq.n 8004606 80045ee: 687b ldr r3, [r7, #4] 80045f0: 4a1e ldr r2, [pc, #120] ; (800466c ) 80045f2: 4293 cmp r3, r2 80045f4: d007 beq.n 8004606 80045f6: 687b ldr r3, [r7, #4] 80045f8: 4a1d ldr r2, [pc, #116] ; (8004670 ) 80045fa: 4293 cmp r3, r2 80045fc: d003 beq.n 8004606 80045fe: 687b ldr r3, [r7, #4] 8004600: 4a1c ldr r2, [pc, #112] ; (8004674 ) 8004602: 4293 cmp r3, r2 8004604: d108 bne.n 8004618 { /* Set the clock division */ tmpcr1 &= ~TIM_CR1_CKD; 8004606: 68fb ldr r3, [r7, #12] 8004608: f423 7340 bic.w r3, r3, #768 ; 0x300 800460c: 60fb str r3, [r7, #12] tmpcr1 |= (uint32_t)Structure->ClockDivision; 800460e: 683b ldr r3, [r7, #0] 8004610: 68db ldr r3, [r3, #12] 8004612: 68fa ldr r2, [r7, #12] 8004614: 4313 orrs r3, r2 8004616: 60fb str r3, [r7, #12] } /* Set the auto-reload preload */ MODIFY_REG(tmpcr1, TIM_CR1_ARPE, Structure->AutoReloadPreload); 8004618: 68fb ldr r3, [r7, #12] 800461a: f023 0280 bic.w r2, r3, #128 ; 0x80 800461e: 683b ldr r3, [r7, #0] 8004620: 695b ldr r3, [r3, #20] 8004622: 4313 orrs r3, r2 8004624: 60fb str r3, [r7, #12] TIMx->CR1 = tmpcr1; 8004626: 687b ldr r3, [r7, #4] 8004628: 68fa ldr r2, [r7, #12] 800462a: 601a str r2, [r3, #0] /* Set the Autoreload value */ TIMx->ARR = (uint32_t)Structure->Period ; 800462c: 683b ldr r3, [r7, #0] 800462e: 689a ldr r2, [r3, #8] 8004630: 687b ldr r3, [r7, #4] 8004632: 62da str r2, [r3, #44] ; 0x2c /* Set the Prescaler value */ TIMx->PSC = Structure->Prescaler; 8004634: 683b ldr r3, [r7, #0] 8004636: 681a ldr r2, [r3, #0] 8004638: 687b ldr r3, [r7, #4] 800463a: 629a str r2, [r3, #40] ; 0x28 if (IS_TIM_REPETITION_COUNTER_INSTANCE(TIMx)) 800463c: 687b ldr r3, [r7, #4] 800463e: 4a09 ldr r2, [pc, #36] ; (8004664 ) 8004640: 4293 cmp r3, r2 8004642: d003 beq.n 800464c 8004644: 687b ldr r3, [r7, #4] 8004646: 4a08 ldr r2, [pc, #32] ; (8004668 ) 8004648: 4293 cmp r3, r2 800464a: d103 bne.n 8004654 { /* Set the Repetition Counter value */ TIMx->RCR = Structure->RepetitionCounter; 800464c: 683b ldr r3, [r7, #0] 800464e: 691a ldr r2, [r3, #16] 8004650: 687b ldr r3, [r7, #4] 8004652: 631a str r2, [r3, #48] ; 0x30 } /* Generate an update event to reload the Prescaler and the repetition counter (only for advanced timer) value immediately */ TIMx->EGR = TIM_EGR_UG; 8004654: 687b ldr r3, [r7, #4] 8004656: 2201 movs r2, #1 8004658: 615a str r2, [r3, #20] } 800465a: bf00 nop 800465c: 3714 adds r7, #20 800465e: 46bd mov sp, r7 8004660: bc80 pop {r7} 8004662: 4770 bx lr 8004664: 40012c00 .word 0x40012c00 8004668: 40013400 .word 0x40013400 800466c: 40000400 .word 0x40000400 8004670: 40000800 .word 0x40000800 8004674: 40000c00 .word 0x40000c00 08004678 : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC1_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { 8004678: b480 push {r7} 800467a: b087 sub sp, #28 800467c: af00 add r7, sp, #0 800467e: 6078 str r0, [r7, #4] 8004680: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the Channel 1: Reset the CC1E Bit */ TIMx->CCER &= ~TIM_CCER_CC1E; 8004682: 687b ldr r3, [r7, #4] 8004684: 6a1b ldr r3, [r3, #32] 8004686: f023 0201 bic.w r2, r3, #1 800468a: 687b ldr r3, [r7, #4] 800468c: 621a str r2, [r3, #32] /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 800468e: 687b ldr r3, [r7, #4] 8004690: 6a1b ldr r3, [r3, #32] 8004692: 617b str r3, [r7, #20] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 8004694: 687b ldr r3, [r7, #4] 8004696: 685b ldr r3, [r3, #4] 8004698: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; 800469a: 687b ldr r3, [r7, #4] 800469c: 699b ldr r3, [r3, #24] 800469e: 60fb str r3, [r7, #12] /* Reset the Output Compare Mode Bits */ tmpccmrx &= ~TIM_CCMR1_OC1M; 80046a0: 68fb ldr r3, [r7, #12] 80046a2: f023 0370 bic.w r3, r3, #112 ; 0x70 80046a6: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC1S; 80046a8: 68fb ldr r3, [r7, #12] 80046aa: f023 0303 bic.w r3, r3, #3 80046ae: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; 80046b0: 683b ldr r3, [r7, #0] 80046b2: 681b ldr r3, [r3, #0] 80046b4: 68fa ldr r2, [r7, #12] 80046b6: 4313 orrs r3, r2 80046b8: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC1P; 80046ba: 697b ldr r3, [r7, #20] 80046bc: f023 0302 bic.w r3, r3, #2 80046c0: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= OC_Config->OCPolarity; 80046c2: 683b ldr r3, [r7, #0] 80046c4: 689b ldr r3, [r3, #8] 80046c6: 697a ldr r2, [r7, #20] 80046c8: 4313 orrs r3, r2 80046ca: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_1)) 80046cc: 687b ldr r3, [r7, #4] 80046ce: 4a20 ldr r2, [pc, #128] ; (8004750 ) 80046d0: 4293 cmp r3, r2 80046d2: d003 beq.n 80046dc 80046d4: 687b ldr r3, [r7, #4] 80046d6: 4a1f ldr r2, [pc, #124] ; (8004754 ) 80046d8: 4293 cmp r3, r2 80046da: d10c bne.n 80046f6 { /* Check parameters */ assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC1NP; 80046dc: 697b ldr r3, [r7, #20] 80046de: f023 0308 bic.w r3, r3, #8 80046e2: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= OC_Config->OCNPolarity; 80046e4: 683b ldr r3, [r7, #0] 80046e6: 68db ldr r3, [r3, #12] 80046e8: 697a ldr r2, [r7, #20] 80046ea: 4313 orrs r3, r2 80046ec: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC1NE; 80046ee: 697b ldr r3, [r7, #20] 80046f0: f023 0304 bic.w r3, r3, #4 80046f4: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) 80046f6: 687b ldr r3, [r7, #4] 80046f8: 4a15 ldr r2, [pc, #84] ; (8004750 ) 80046fa: 4293 cmp r3, r2 80046fc: d003 beq.n 8004706 80046fe: 687b ldr r3, [r7, #4] 8004700: 4a14 ldr r2, [pc, #80] ; (8004754 ) 8004702: 4293 cmp r3, r2 8004704: d111 bne.n 800472a /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS1; 8004706: 693b ldr r3, [r7, #16] 8004708: f423 7380 bic.w r3, r3, #256 ; 0x100 800470c: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS1N; 800470e: 693b ldr r3, [r7, #16] 8004710: f423 7300 bic.w r3, r3, #512 ; 0x200 8004714: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= OC_Config->OCIdleState; 8004716: 683b ldr r3, [r7, #0] 8004718: 695b ldr r3, [r3, #20] 800471a: 693a ldr r2, [r7, #16] 800471c: 4313 orrs r3, r2 800471e: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= OC_Config->OCNIdleState; 8004720: 683b ldr r3, [r7, #0] 8004722: 699b ldr r3, [r3, #24] 8004724: 693a ldr r2, [r7, #16] 8004726: 4313 orrs r3, r2 8004728: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 800472a: 687b ldr r3, [r7, #4] 800472c: 693a ldr r2, [r7, #16] 800472e: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; 8004730: 687b ldr r3, [r7, #4] 8004732: 68fa ldr r2, [r7, #12] 8004734: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR1 = OC_Config->Pulse; 8004736: 683b ldr r3, [r7, #0] 8004738: 685a ldr r2, [r3, #4] 800473a: 687b ldr r3, [r7, #4] 800473c: 635a str r2, [r3, #52] ; 0x34 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 800473e: 687b ldr r3, [r7, #4] 8004740: 697a ldr r2, [r7, #20] 8004742: 621a str r2, [r3, #32] } 8004744: bf00 nop 8004746: 371c adds r7, #28 8004748: 46bd mov sp, r7 800474a: bc80 pop {r7} 800474c: 4770 bx lr 800474e: bf00 nop 8004750: 40012c00 .word 0x40012c00 8004754: 40013400 .word 0x40013400 08004758 : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ void TIM_OC2_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { 8004758: b480 push {r7} 800475a: b087 sub sp, #28 800475c: af00 add r7, sp, #0 800475e: 6078 str r0, [r7, #4] 8004760: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC2E; 8004762: 687b ldr r3, [r7, #4] 8004764: 6a1b ldr r3, [r3, #32] 8004766: f023 0210 bic.w r2, r3, #16 800476a: 687b ldr r3, [r7, #4] 800476c: 621a str r2, [r3, #32] /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 800476e: 687b ldr r3, [r7, #4] 8004770: 6a1b ldr r3, [r3, #32] 8004772: 617b str r3, [r7, #20] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 8004774: 687b ldr r3, [r7, #4] 8004776: 685b ldr r3, [r3, #4] 8004778: 613b str r3, [r7, #16] /* Get the TIMx CCMR1 register value */ tmpccmrx = TIMx->CCMR1; 800477a: 687b ldr r3, [r7, #4] 800477c: 699b ldr r3, [r3, #24] 800477e: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR1_OC2M; 8004780: 68fb ldr r3, [r7, #12] 8004782: f423 43e0 bic.w r3, r3, #28672 ; 0x7000 8004786: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR1_CC2S; 8004788: 68fb ldr r3, [r7, #12] 800478a: f423 7340 bic.w r3, r3, #768 ; 0x300 800478e: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); 8004790: 683b ldr r3, [r7, #0] 8004792: 681b ldr r3, [r3, #0] 8004794: 021b lsls r3, r3, #8 8004796: 68fa ldr r2, [r7, #12] 8004798: 4313 orrs r3, r2 800479a: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC2P; 800479c: 697b ldr r3, [r7, #20] 800479e: f023 0320 bic.w r3, r3, #32 80047a2: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 4U); 80047a4: 683b ldr r3, [r7, #0] 80047a6: 689b ldr r3, [r3, #8] 80047a8: 011b lsls r3, r3, #4 80047aa: 697a ldr r2, [r7, #20] 80047ac: 4313 orrs r3, r2 80047ae: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_2)) 80047b0: 687b ldr r3, [r7, #4] 80047b2: 4a21 ldr r2, [pc, #132] ; (8004838 ) 80047b4: 4293 cmp r3, r2 80047b6: d003 beq.n 80047c0 80047b8: 687b ldr r3, [r7, #4] 80047ba: 4a20 ldr r2, [pc, #128] ; (800483c ) 80047bc: 4293 cmp r3, r2 80047be: d10d bne.n 80047dc { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC2NP; 80047c0: 697b ldr r3, [r7, #20] 80047c2: f023 0380 bic.w r3, r3, #128 ; 0x80 80047c6: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 4U); 80047c8: 683b ldr r3, [r7, #0] 80047ca: 68db ldr r3, [r3, #12] 80047cc: 011b lsls r3, r3, #4 80047ce: 697a ldr r2, [r7, #20] 80047d0: 4313 orrs r3, r2 80047d2: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC2NE; 80047d4: 697b ldr r3, [r7, #20] 80047d6: f023 0340 bic.w r3, r3, #64 ; 0x40 80047da: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) 80047dc: 687b ldr r3, [r7, #4] 80047de: 4a16 ldr r2, [pc, #88] ; (8004838 ) 80047e0: 4293 cmp r3, r2 80047e2: d003 beq.n 80047ec 80047e4: 687b ldr r3, [r7, #4] 80047e6: 4a15 ldr r2, [pc, #84] ; (800483c ) 80047e8: 4293 cmp r3, r2 80047ea: d113 bne.n 8004814 /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS2; 80047ec: 693b ldr r3, [r7, #16] 80047ee: f423 6380 bic.w r3, r3, #1024 ; 0x400 80047f2: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS2N; 80047f4: 693b ldr r3, [r7, #16] 80047f6: f423 6300 bic.w r3, r3, #2048 ; 0x800 80047fa: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 2U); 80047fc: 683b ldr r3, [r7, #0] 80047fe: 695b ldr r3, [r3, #20] 8004800: 009b lsls r3, r3, #2 8004802: 693a ldr r2, [r7, #16] 8004804: 4313 orrs r3, r2 8004806: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 2U); 8004808: 683b ldr r3, [r7, #0] 800480a: 699b ldr r3, [r3, #24] 800480c: 009b lsls r3, r3, #2 800480e: 693a ldr r2, [r7, #16] 8004810: 4313 orrs r3, r2 8004812: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 8004814: 687b ldr r3, [r7, #4] 8004816: 693a ldr r2, [r7, #16] 8004818: 605a str r2, [r3, #4] /* Write to TIMx CCMR1 */ TIMx->CCMR1 = tmpccmrx; 800481a: 687b ldr r3, [r7, #4] 800481c: 68fa ldr r2, [r7, #12] 800481e: 619a str r2, [r3, #24] /* Set the Capture Compare Register value */ TIMx->CCR2 = OC_Config->Pulse; 8004820: 683b ldr r3, [r7, #0] 8004822: 685a ldr r2, [r3, #4] 8004824: 687b ldr r3, [r7, #4] 8004826: 639a str r2, [r3, #56] ; 0x38 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 8004828: 687b ldr r3, [r7, #4] 800482a: 697a ldr r2, [r7, #20] 800482c: 621a str r2, [r3, #32] } 800482e: bf00 nop 8004830: 371c adds r7, #28 8004832: 46bd mov sp, r7 8004834: bc80 pop {r7} 8004836: 4770 bx lr 8004838: 40012c00 .word 0x40012c00 800483c: 40013400 .word 0x40013400 08004840 : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC3_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { 8004840: b480 push {r7} 8004842: b087 sub sp, #28 8004844: af00 add r7, sp, #0 8004846: 6078 str r0, [r7, #4] 8004848: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the Channel 3: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC3E; 800484a: 687b ldr r3, [r7, #4] 800484c: 6a1b ldr r3, [r3, #32] 800484e: f423 7280 bic.w r2, r3, #256 ; 0x100 8004852: 687b ldr r3, [r7, #4] 8004854: 621a str r2, [r3, #32] /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 8004856: 687b ldr r3, [r7, #4] 8004858: 6a1b ldr r3, [r3, #32] 800485a: 617b str r3, [r7, #20] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 800485c: 687b ldr r3, [r7, #4] 800485e: 685b ldr r3, [r3, #4] 8004860: 613b str r3, [r7, #16] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; 8004862: 687b ldr r3, [r7, #4] 8004864: 69db ldr r3, [r3, #28] 8004866: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC3M; 8004868: 68fb ldr r3, [r7, #12] 800486a: f023 0370 bic.w r3, r3, #112 ; 0x70 800486e: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC3S; 8004870: 68fb ldr r3, [r7, #12] 8004872: f023 0303 bic.w r3, r3, #3 8004876: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= OC_Config->OCMode; 8004878: 683b ldr r3, [r7, #0] 800487a: 681b ldr r3, [r3, #0] 800487c: 68fa ldr r2, [r7, #12] 800487e: 4313 orrs r3, r2 8004880: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC3P; 8004882: 697b ldr r3, [r7, #20] 8004884: f423 7300 bic.w r3, r3, #512 ; 0x200 8004888: 617b str r3, [r7, #20] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 8U); 800488a: 683b ldr r3, [r7, #0] 800488c: 689b ldr r3, [r3, #8] 800488e: 021b lsls r3, r3, #8 8004890: 697a ldr r2, [r7, #20] 8004892: 4313 orrs r3, r2 8004894: 617b str r3, [r7, #20] if (IS_TIM_CCXN_INSTANCE(TIMx, TIM_CHANNEL_3)) 8004896: 687b ldr r3, [r7, #4] 8004898: 4a21 ldr r2, [pc, #132] ; (8004920 ) 800489a: 4293 cmp r3, r2 800489c: d003 beq.n 80048a6 800489e: 687b ldr r3, [r7, #4] 80048a0: 4a20 ldr r2, [pc, #128] ; (8004924 ) 80048a2: 4293 cmp r3, r2 80048a4: d10d bne.n 80048c2 { assert_param(IS_TIM_OCN_POLARITY(OC_Config->OCNPolarity)); /* Reset the Output N Polarity level */ tmpccer &= ~TIM_CCER_CC3NP; 80048a6: 697b ldr r3, [r7, #20] 80048a8: f423 6300 bic.w r3, r3, #2048 ; 0x800 80048ac: 617b str r3, [r7, #20] /* Set the Output N Polarity */ tmpccer |= (OC_Config->OCNPolarity << 8U); 80048ae: 683b ldr r3, [r7, #0] 80048b0: 68db ldr r3, [r3, #12] 80048b2: 021b lsls r3, r3, #8 80048b4: 697a ldr r2, [r7, #20] 80048b6: 4313 orrs r3, r2 80048b8: 617b str r3, [r7, #20] /* Reset the Output N State */ tmpccer &= ~TIM_CCER_CC3NE; 80048ba: 697b ldr r3, [r7, #20] 80048bc: f423 6380 bic.w r3, r3, #1024 ; 0x400 80048c0: 617b str r3, [r7, #20] } if (IS_TIM_BREAK_INSTANCE(TIMx)) 80048c2: 687b ldr r3, [r7, #4] 80048c4: 4a16 ldr r2, [pc, #88] ; (8004920 ) 80048c6: 4293 cmp r3, r2 80048c8: d003 beq.n 80048d2 80048ca: 687b ldr r3, [r7, #4] 80048cc: 4a15 ldr r2, [pc, #84] ; (8004924 ) 80048ce: 4293 cmp r3, r2 80048d0: d113 bne.n 80048fa /* Check parameters */ assert_param(IS_TIM_OCNIDLE_STATE(OC_Config->OCNIdleState)); assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare and Output Compare N IDLE State */ tmpcr2 &= ~TIM_CR2_OIS3; 80048d2: 693b ldr r3, [r7, #16] 80048d4: f423 5380 bic.w r3, r3, #4096 ; 0x1000 80048d8: 613b str r3, [r7, #16] tmpcr2 &= ~TIM_CR2_OIS3N; 80048da: 693b ldr r3, [r7, #16] 80048dc: f423 5300 bic.w r3, r3, #8192 ; 0x2000 80048e0: 613b str r3, [r7, #16] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 4U); 80048e2: 683b ldr r3, [r7, #0] 80048e4: 695b ldr r3, [r3, #20] 80048e6: 011b lsls r3, r3, #4 80048e8: 693a ldr r2, [r7, #16] 80048ea: 4313 orrs r3, r2 80048ec: 613b str r3, [r7, #16] /* Set the Output N Idle state */ tmpcr2 |= (OC_Config->OCNIdleState << 4U); 80048ee: 683b ldr r3, [r7, #0] 80048f0: 699b ldr r3, [r3, #24] 80048f2: 011b lsls r3, r3, #4 80048f4: 693a ldr r2, [r7, #16] 80048f6: 4313 orrs r3, r2 80048f8: 613b str r3, [r7, #16] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 80048fa: 687b ldr r3, [r7, #4] 80048fc: 693a ldr r2, [r7, #16] 80048fe: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; 8004900: 687b ldr r3, [r7, #4] 8004902: 68fa ldr r2, [r7, #12] 8004904: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR3 = OC_Config->Pulse; 8004906: 683b ldr r3, [r7, #0] 8004908: 685a ldr r2, [r3, #4] 800490a: 687b ldr r3, [r7, #4] 800490c: 63da str r2, [r3, #60] ; 0x3c /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 800490e: 687b ldr r3, [r7, #4] 8004910: 697a ldr r2, [r7, #20] 8004912: 621a str r2, [r3, #32] } 8004914: bf00 nop 8004916: 371c adds r7, #28 8004918: 46bd mov sp, r7 800491a: bc80 pop {r7} 800491c: 4770 bx lr 800491e: bf00 nop 8004920: 40012c00 .word 0x40012c00 8004924: 40013400 .word 0x40013400 08004928 : * @param TIMx to select the TIM peripheral * @param OC_Config The output configuration structure * @retval None */ static void TIM_OC4_SetConfig(TIM_TypeDef *TIMx, TIM_OC_InitTypeDef *OC_Config) { 8004928: b480 push {r7} 800492a: b087 sub sp, #28 800492c: af00 add r7, sp, #0 800492e: 6078 str r0, [r7, #4] 8004930: 6039 str r1, [r7, #0] uint32_t tmpccmrx; uint32_t tmpccer; uint32_t tmpcr2; /* Disable the Channel 4: Reset the CC4E Bit */ TIMx->CCER &= ~TIM_CCER_CC4E; 8004932: 687b ldr r3, [r7, #4] 8004934: 6a1b ldr r3, [r3, #32] 8004936: f423 5280 bic.w r2, r3, #4096 ; 0x1000 800493a: 687b ldr r3, [r7, #4] 800493c: 621a str r2, [r3, #32] /* Get the TIMx CCER register value */ tmpccer = TIMx->CCER; 800493e: 687b ldr r3, [r7, #4] 8004940: 6a1b ldr r3, [r3, #32] 8004942: 613b str r3, [r7, #16] /* Get the TIMx CR2 register value */ tmpcr2 = TIMx->CR2; 8004944: 687b ldr r3, [r7, #4] 8004946: 685b ldr r3, [r3, #4] 8004948: 617b str r3, [r7, #20] /* Get the TIMx CCMR2 register value */ tmpccmrx = TIMx->CCMR2; 800494a: 687b ldr r3, [r7, #4] 800494c: 69db ldr r3, [r3, #28] 800494e: 60fb str r3, [r7, #12] /* Reset the Output Compare mode and Capture/Compare selection Bits */ tmpccmrx &= ~TIM_CCMR2_OC4M; 8004950: 68fb ldr r3, [r7, #12] 8004952: f423 43e0 bic.w r3, r3, #28672 ; 0x7000 8004956: 60fb str r3, [r7, #12] tmpccmrx &= ~TIM_CCMR2_CC4S; 8004958: 68fb ldr r3, [r7, #12] 800495a: f423 7340 bic.w r3, r3, #768 ; 0x300 800495e: 60fb str r3, [r7, #12] /* Select the Output Compare Mode */ tmpccmrx |= (OC_Config->OCMode << 8U); 8004960: 683b ldr r3, [r7, #0] 8004962: 681b ldr r3, [r3, #0] 8004964: 021b lsls r3, r3, #8 8004966: 68fa ldr r2, [r7, #12] 8004968: 4313 orrs r3, r2 800496a: 60fb str r3, [r7, #12] /* Reset the Output Polarity level */ tmpccer &= ~TIM_CCER_CC4P; 800496c: 693b ldr r3, [r7, #16] 800496e: f423 5300 bic.w r3, r3, #8192 ; 0x2000 8004972: 613b str r3, [r7, #16] /* Set the Output Compare Polarity */ tmpccer |= (OC_Config->OCPolarity << 12U); 8004974: 683b ldr r3, [r7, #0] 8004976: 689b ldr r3, [r3, #8] 8004978: 031b lsls r3, r3, #12 800497a: 693a ldr r2, [r7, #16] 800497c: 4313 orrs r3, r2 800497e: 613b str r3, [r7, #16] if (IS_TIM_BREAK_INSTANCE(TIMx)) 8004980: 687b ldr r3, [r7, #4] 8004982: 4a11 ldr r2, [pc, #68] ; (80049c8 ) 8004984: 4293 cmp r3, r2 8004986: d003 beq.n 8004990 8004988: 687b ldr r3, [r7, #4] 800498a: 4a10 ldr r2, [pc, #64] ; (80049cc ) 800498c: 4293 cmp r3, r2 800498e: d109 bne.n 80049a4 { /* Check parameters */ assert_param(IS_TIM_OCIDLE_STATE(OC_Config->OCIdleState)); /* Reset the Output Compare IDLE State */ tmpcr2 &= ~TIM_CR2_OIS4; 8004990: 697b ldr r3, [r7, #20] 8004992: f423 4380 bic.w r3, r3, #16384 ; 0x4000 8004996: 617b str r3, [r7, #20] /* Set the Output Idle state */ tmpcr2 |= (OC_Config->OCIdleState << 6U); 8004998: 683b ldr r3, [r7, #0] 800499a: 695b ldr r3, [r3, #20] 800499c: 019b lsls r3, r3, #6 800499e: 697a ldr r2, [r7, #20] 80049a0: 4313 orrs r3, r2 80049a2: 617b str r3, [r7, #20] } /* Write to TIMx CR2 */ TIMx->CR2 = tmpcr2; 80049a4: 687b ldr r3, [r7, #4] 80049a6: 697a ldr r2, [r7, #20] 80049a8: 605a str r2, [r3, #4] /* Write to TIMx CCMR2 */ TIMx->CCMR2 = tmpccmrx; 80049aa: 687b ldr r3, [r7, #4] 80049ac: 68fa ldr r2, [r7, #12] 80049ae: 61da str r2, [r3, #28] /* Set the Capture Compare Register value */ TIMx->CCR4 = OC_Config->Pulse; 80049b0: 683b ldr r3, [r7, #0] 80049b2: 685a ldr r2, [r3, #4] 80049b4: 687b ldr r3, [r7, #4] 80049b6: 641a str r2, [r3, #64] ; 0x40 /* Write to TIMx CCER */ TIMx->CCER = tmpccer; 80049b8: 687b ldr r3, [r7, #4] 80049ba: 693a ldr r2, [r7, #16] 80049bc: 621a str r2, [r3, #32] } 80049be: bf00 nop 80049c0: 371c adds r7, #28 80049c2: 46bd mov sp, r7 80049c4: bc80 pop {r7} 80049c6: 4770 bx lr 80049c8: 40012c00 .word 0x40012c00 80049cc: 40013400 .word 0x40013400 080049d0 : * @param TIM_ICFilter Specifies the Input Capture Filter. * This parameter must be a value between 0x00 and 0x0F. * @retval None */ static void TIM_TI1_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter) { 80049d0: b480 push {r7} 80049d2: b087 sub sp, #28 80049d4: af00 add r7, sp, #0 80049d6: 60f8 str r0, [r7, #12] 80049d8: 60b9 str r1, [r7, #8] 80049da: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 1: Reset the CC1E Bit */ tmpccer = TIMx->CCER; 80049dc: 68fb ldr r3, [r7, #12] 80049de: 6a1b ldr r3, [r3, #32] 80049e0: 617b str r3, [r7, #20] TIMx->CCER &= ~TIM_CCER_CC1E; 80049e2: 68fb ldr r3, [r7, #12] 80049e4: 6a1b ldr r3, [r3, #32] 80049e6: f023 0201 bic.w r2, r3, #1 80049ea: 68fb ldr r3, [r7, #12] 80049ec: 621a str r2, [r3, #32] tmpccmr1 = TIMx->CCMR1; 80049ee: 68fb ldr r3, [r7, #12] 80049f0: 699b ldr r3, [r3, #24] 80049f2: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC1F; 80049f4: 693b ldr r3, [r7, #16] 80049f6: f023 03f0 bic.w r3, r3, #240 ; 0xf0 80049fa: 613b str r3, [r7, #16] tmpccmr1 |= (TIM_ICFilter << 4U); 80049fc: 687b ldr r3, [r7, #4] 80049fe: 011b lsls r3, r3, #4 8004a00: 693a ldr r2, [r7, #16] 8004a02: 4313 orrs r3, r2 8004a04: 613b str r3, [r7, #16] /* Select the Polarity and set the CC1E Bit */ tmpccer &= ~(TIM_CCER_CC1P | TIM_CCER_CC1NP); 8004a06: 697b ldr r3, [r7, #20] 8004a08: f023 030a bic.w r3, r3, #10 8004a0c: 617b str r3, [r7, #20] tmpccer |= TIM_ICPolarity; 8004a0e: 697a ldr r2, [r7, #20] 8004a10: 68bb ldr r3, [r7, #8] 8004a12: 4313 orrs r3, r2 8004a14: 617b str r3, [r7, #20] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1; 8004a16: 68fb ldr r3, [r7, #12] 8004a18: 693a ldr r2, [r7, #16] 8004a1a: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; 8004a1c: 68fb ldr r3, [r7, #12] 8004a1e: 697a ldr r2, [r7, #20] 8004a20: 621a str r2, [r3, #32] } 8004a22: bf00 nop 8004a24: 371c adds r7, #28 8004a26: 46bd mov sp, r7 8004a28: bc80 pop {r7} 8004a2a: 4770 bx lr 08004a2c : * @param TIM_ICFilter Specifies the Input Capture Filter. * This parameter must be a value between 0x00 and 0x0F. * @retval None */ static void TIM_TI2_ConfigInputStage(TIM_TypeDef *TIMx, uint32_t TIM_ICPolarity, uint32_t TIM_ICFilter) { 8004a2c: b480 push {r7} 8004a2e: b087 sub sp, #28 8004a30: af00 add r7, sp, #0 8004a32: 60f8 str r0, [r7, #12] 8004a34: 60b9 str r1, [r7, #8] 8004a36: 607a str r2, [r7, #4] uint32_t tmpccmr1; uint32_t tmpccer; /* Disable the Channel 2: Reset the CC2E Bit */ TIMx->CCER &= ~TIM_CCER_CC2E; 8004a38: 68fb ldr r3, [r7, #12] 8004a3a: 6a1b ldr r3, [r3, #32] 8004a3c: f023 0210 bic.w r2, r3, #16 8004a40: 68fb ldr r3, [r7, #12] 8004a42: 621a str r2, [r3, #32] tmpccmr1 = TIMx->CCMR1; 8004a44: 68fb ldr r3, [r7, #12] 8004a46: 699b ldr r3, [r3, #24] 8004a48: 617b str r3, [r7, #20] tmpccer = TIMx->CCER; 8004a4a: 68fb ldr r3, [r7, #12] 8004a4c: 6a1b ldr r3, [r3, #32] 8004a4e: 613b str r3, [r7, #16] /* Set the filter */ tmpccmr1 &= ~TIM_CCMR1_IC2F; 8004a50: 697b ldr r3, [r7, #20] 8004a52: f423 4370 bic.w r3, r3, #61440 ; 0xf000 8004a56: 617b str r3, [r7, #20] tmpccmr1 |= (TIM_ICFilter << 12U); 8004a58: 687b ldr r3, [r7, #4] 8004a5a: 031b lsls r3, r3, #12 8004a5c: 697a ldr r2, [r7, #20] 8004a5e: 4313 orrs r3, r2 8004a60: 617b str r3, [r7, #20] /* Select the Polarity and set the CC2E Bit */ tmpccer &= ~(TIM_CCER_CC2P | TIM_CCER_CC2NP); 8004a62: 693b ldr r3, [r7, #16] 8004a64: f023 03a0 bic.w r3, r3, #160 ; 0xa0 8004a68: 613b str r3, [r7, #16] tmpccer |= (TIM_ICPolarity << 4U); 8004a6a: 68bb ldr r3, [r7, #8] 8004a6c: 011b lsls r3, r3, #4 8004a6e: 693a ldr r2, [r7, #16] 8004a70: 4313 orrs r3, r2 8004a72: 613b str r3, [r7, #16] /* Write to TIMx CCMR1 and CCER registers */ TIMx->CCMR1 = tmpccmr1 ; 8004a74: 68fb ldr r3, [r7, #12] 8004a76: 697a ldr r2, [r7, #20] 8004a78: 619a str r2, [r3, #24] TIMx->CCER = tmpccer; 8004a7a: 68fb ldr r3, [r7, #12] 8004a7c: 693a ldr r2, [r7, #16] 8004a7e: 621a str r2, [r3, #32] } 8004a80: bf00 nop 8004a82: 371c adds r7, #28 8004a84: 46bd mov sp, r7 8004a86: bc80 pop {r7} 8004a88: 4770 bx lr 08004a8a : * @arg TIM_TS_TI2FP2: Filtered Timer Input 2 * @arg TIM_TS_ETRF: External Trigger input * @retval None */ static void TIM_ITRx_SetConfig(TIM_TypeDef *TIMx, uint32_t InputTriggerSource) { 8004a8a: b480 push {r7} 8004a8c: b085 sub sp, #20 8004a8e: af00 add r7, sp, #0 8004a90: 6078 str r0, [r7, #4] 8004a92: 6039 str r1, [r7, #0] uint32_t tmpsmcr; /* Get the TIMx SMCR register value */ tmpsmcr = TIMx->SMCR; 8004a94: 687b ldr r3, [r7, #4] 8004a96: 689b ldr r3, [r3, #8] 8004a98: 60fb str r3, [r7, #12] /* Reset the TS Bits */ tmpsmcr &= ~TIM_SMCR_TS; 8004a9a: 68fb ldr r3, [r7, #12] 8004a9c: f023 0370 bic.w r3, r3, #112 ; 0x70 8004aa0: 60fb str r3, [r7, #12] /* Set the Input Trigger source and the slave mode*/ tmpsmcr |= (InputTriggerSource | TIM_SLAVEMODE_EXTERNAL1); 8004aa2: 683a ldr r2, [r7, #0] 8004aa4: 68fb ldr r3, [r7, #12] 8004aa6: 4313 orrs r3, r2 8004aa8: f043 0307 orr.w r3, r3, #7 8004aac: 60fb str r3, [r7, #12] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; 8004aae: 687b ldr r3, [r7, #4] 8004ab0: 68fa ldr r2, [r7, #12] 8004ab2: 609a str r2, [r3, #8] } 8004ab4: bf00 nop 8004ab6: 3714 adds r7, #20 8004ab8: 46bd mov sp, r7 8004aba: bc80 pop {r7} 8004abc: 4770 bx lr 08004abe : * This parameter must be a value between 0x00 and 0x0F * @retval None */ void TIM_ETR_SetConfig(TIM_TypeDef *TIMx, uint32_t TIM_ExtTRGPrescaler, uint32_t TIM_ExtTRGPolarity, uint32_t ExtTRGFilter) { 8004abe: b480 push {r7} 8004ac0: b087 sub sp, #28 8004ac2: af00 add r7, sp, #0 8004ac4: 60f8 str r0, [r7, #12] 8004ac6: 60b9 str r1, [r7, #8] 8004ac8: 607a str r2, [r7, #4] 8004aca: 603b str r3, [r7, #0] uint32_t tmpsmcr; tmpsmcr = TIMx->SMCR; 8004acc: 68fb ldr r3, [r7, #12] 8004ace: 689b ldr r3, [r3, #8] 8004ad0: 617b str r3, [r7, #20] /* Reset the ETR Bits */ tmpsmcr &= ~(TIM_SMCR_ETF | TIM_SMCR_ETPS | TIM_SMCR_ECE | TIM_SMCR_ETP); 8004ad2: 697b ldr r3, [r7, #20] 8004ad4: f423 437f bic.w r3, r3, #65280 ; 0xff00 8004ad8: 617b str r3, [r7, #20] /* Set the Prescaler, the Filter value and the Polarity */ tmpsmcr |= (uint32_t)(TIM_ExtTRGPrescaler | (TIM_ExtTRGPolarity | (ExtTRGFilter << 8U))); 8004ada: 683b ldr r3, [r7, #0] 8004adc: 021a lsls r2, r3, #8 8004ade: 687b ldr r3, [r7, #4] 8004ae0: 431a orrs r2, r3 8004ae2: 68bb ldr r3, [r7, #8] 8004ae4: 4313 orrs r3, r2 8004ae6: 697a ldr r2, [r7, #20] 8004ae8: 4313 orrs r3, r2 8004aea: 617b str r3, [r7, #20] /* Write to TIMx SMCR */ TIMx->SMCR = tmpsmcr; 8004aec: 68fb ldr r3, [r7, #12] 8004aee: 697a ldr r2, [r7, #20] 8004af0: 609a str r2, [r3, #8] } 8004af2: bf00 nop 8004af4: 371c adds r7, #28 8004af6: 46bd mov sp, r7 8004af8: bc80 pop {r7} 8004afa: 4770 bx lr 08004afc : * @param ChannelState specifies the TIM Channel CCxE bit new state. * This parameter can be: TIM_CCx_ENABLE or TIM_CCx_DISABLE. * @retval None */ void TIM_CCxChannelCmd(TIM_TypeDef *TIMx, uint32_t Channel, uint32_t ChannelState) { 8004afc: b480 push {r7} 8004afe: b087 sub sp, #28 8004b00: af00 add r7, sp, #0 8004b02: 60f8 str r0, [r7, #12] 8004b04: 60b9 str r1, [r7, #8] 8004b06: 607a str r2, [r7, #4] /* Check the parameters */ assert_param(IS_TIM_CC1_INSTANCE(TIMx)); assert_param(IS_TIM_CHANNELS(Channel)); tmp = TIM_CCER_CC1E << (Channel & 0x1FU); /* 0x1FU = 31 bits max shift */ 8004b08: 68bb ldr r3, [r7, #8] 8004b0a: f003 031f and.w r3, r3, #31 8004b0e: 2201 movs r2, #1 8004b10: fa02 f303 lsl.w r3, r2, r3 8004b14: 617b str r3, [r7, #20] /* Reset the CCxE Bit */ TIMx->CCER &= ~tmp; 8004b16: 68fb ldr r3, [r7, #12] 8004b18: 6a1a ldr r2, [r3, #32] 8004b1a: 697b ldr r3, [r7, #20] 8004b1c: 43db mvns r3, r3 8004b1e: 401a ands r2, r3 8004b20: 68fb ldr r3, [r7, #12] 8004b22: 621a str r2, [r3, #32] /* Set or reset the CCxE Bit */ TIMx->CCER |= (uint32_t)(ChannelState << (Channel & 0x1FU)); /* 0x1FU = 31 bits max shift */ 8004b24: 68fb ldr r3, [r7, #12] 8004b26: 6a1a ldr r2, [r3, #32] 8004b28: 68bb ldr r3, [r7, #8] 8004b2a: f003 031f and.w r3, r3, #31 8004b2e: 6879 ldr r1, [r7, #4] 8004b30: fa01 f303 lsl.w r3, r1, r3 8004b34: 431a orrs r2, r3 8004b36: 68fb ldr r3, [r7, #12] 8004b38: 621a str r2, [r3, #32] } 8004b3a: bf00 nop 8004b3c: 371c adds r7, #28 8004b3e: 46bd mov sp, r7 8004b40: bc80 pop {r7} 8004b42: 4770 bx lr 08004b44 : * mode. * @retval HAL status */ HAL_StatusTypeDef HAL_TIMEx_MasterConfigSynchronization(TIM_HandleTypeDef *htim, TIM_MasterConfigTypeDef *sMasterConfig) { 8004b44: b480 push {r7} 8004b46: b085 sub sp, #20 8004b48: af00 add r7, sp, #0 8004b4a: 6078 str r0, [r7, #4] 8004b4c: 6039 str r1, [r7, #0] assert_param(IS_TIM_MASTER_INSTANCE(htim->Instance)); assert_param(IS_TIM_TRGO_SOURCE(sMasterConfig->MasterOutputTrigger)); assert_param(IS_TIM_MSM_STATE(sMasterConfig->MasterSlaveMode)); /* Check input state */ __HAL_LOCK(htim); 8004b4e: 687b ldr r3, [r7, #4] 8004b50: f893 303c ldrb.w r3, [r3, #60] ; 0x3c 8004b54: 2b01 cmp r3, #1 8004b56: d101 bne.n 8004b5c 8004b58: 2302 movs r3, #2 8004b5a: e050 b.n 8004bfe 8004b5c: 687b ldr r3, [r7, #4] 8004b5e: 2201 movs r2, #1 8004b60: f883 203c strb.w r2, [r3, #60] ; 0x3c /* Change the handler state */ htim->State = HAL_TIM_STATE_BUSY; 8004b64: 687b ldr r3, [r7, #4] 8004b66: 2202 movs r2, #2 8004b68: f883 203d strb.w r2, [r3, #61] ; 0x3d /* Get the TIMx CR2 register value */ tmpcr2 = htim->Instance->CR2; 8004b6c: 687b ldr r3, [r7, #4] 8004b6e: 681b ldr r3, [r3, #0] 8004b70: 685b ldr r3, [r3, #4] 8004b72: 60fb str r3, [r7, #12] /* Get the TIMx SMCR register value */ tmpsmcr = htim->Instance->SMCR; 8004b74: 687b ldr r3, [r7, #4] 8004b76: 681b ldr r3, [r3, #0] 8004b78: 689b ldr r3, [r3, #8] 8004b7a: 60bb str r3, [r7, #8] /* Reset the MMS Bits */ tmpcr2 &= ~TIM_CR2_MMS; 8004b7c: 68fb ldr r3, [r7, #12] 8004b7e: f023 0370 bic.w r3, r3, #112 ; 0x70 8004b82: 60fb str r3, [r7, #12] /* Select the TRGO source */ tmpcr2 |= sMasterConfig->MasterOutputTrigger; 8004b84: 683b ldr r3, [r7, #0] 8004b86: 681b ldr r3, [r3, #0] 8004b88: 68fa ldr r2, [r7, #12] 8004b8a: 4313 orrs r3, r2 8004b8c: 60fb str r3, [r7, #12] /* Update TIMx CR2 */ htim->Instance->CR2 = tmpcr2; 8004b8e: 687b ldr r3, [r7, #4] 8004b90: 681b ldr r3, [r3, #0] 8004b92: 68fa ldr r2, [r7, #12] 8004b94: 605a str r2, [r3, #4] if (IS_TIM_SLAVE_INSTANCE(htim->Instance)) 8004b96: 687b ldr r3, [r7, #4] 8004b98: 681b ldr r3, [r3, #0] 8004b9a: 4a1b ldr r2, [pc, #108] ; (8004c08 ) 8004b9c: 4293 cmp r3, r2 8004b9e: d018 beq.n 8004bd2 8004ba0: 687b ldr r3, [r7, #4] 8004ba2: 681b ldr r3, [r3, #0] 8004ba4: 4a19 ldr r2, [pc, #100] ; (8004c0c ) 8004ba6: 4293 cmp r3, r2 8004ba8: d013 beq.n 8004bd2 8004baa: 687b ldr r3, [r7, #4] 8004bac: 681b ldr r3, [r3, #0] 8004bae: f1b3 4f80 cmp.w r3, #1073741824 ; 0x40000000 8004bb2: d00e beq.n 8004bd2 8004bb4: 687b ldr r3, [r7, #4] 8004bb6: 681b ldr r3, [r3, #0] 8004bb8: 4a15 ldr r2, [pc, #84] ; (8004c10 ) 8004bba: 4293 cmp r3, r2 8004bbc: d009 beq.n 8004bd2 8004bbe: 687b ldr r3, [r7, #4] 8004bc0: 681b ldr r3, [r3, #0] 8004bc2: 4a14 ldr r2, [pc, #80] ; (8004c14 ) 8004bc4: 4293 cmp r3, r2 8004bc6: d004 beq.n 8004bd2 8004bc8: 687b ldr r3, [r7, #4] 8004bca: 681b ldr r3, [r3, #0] 8004bcc: 4a12 ldr r2, [pc, #72] ; (8004c18 ) 8004bce: 4293 cmp r3, r2 8004bd0: d10c bne.n 8004bec { /* Reset the MSM Bit */ tmpsmcr &= ~TIM_SMCR_MSM; 8004bd2: 68bb ldr r3, [r7, #8] 8004bd4: f023 0380 bic.w r3, r3, #128 ; 0x80 8004bd8: 60bb str r3, [r7, #8] /* Set master mode */ tmpsmcr |= sMasterConfig->MasterSlaveMode; 8004bda: 683b ldr r3, [r7, #0] 8004bdc: 685b ldr r3, [r3, #4] 8004bde: 68ba ldr r2, [r7, #8] 8004be0: 4313 orrs r3, r2 8004be2: 60bb str r3, [r7, #8] /* Update TIMx SMCR */ htim->Instance->SMCR = tmpsmcr; 8004be4: 687b ldr r3, [r7, #4] 8004be6: 681b ldr r3, [r3, #0] 8004be8: 68ba ldr r2, [r7, #8] 8004bea: 609a str r2, [r3, #8] } /* Change the htim state */ htim->State = HAL_TIM_STATE_READY; 8004bec: 687b ldr r3, [r7, #4] 8004bee: 2201 movs r2, #1 8004bf0: f883 203d strb.w r2, [r3, #61] ; 0x3d __HAL_UNLOCK(htim); 8004bf4: 687b ldr r3, [r7, #4] 8004bf6: 2200 movs r2, #0 8004bf8: f883 203c strb.w r2, [r3, #60] ; 0x3c return HAL_OK; 8004bfc: 2300 movs r3, #0 } 8004bfe: 4618 mov r0, r3 8004c00: 3714 adds r7, #20 8004c02: 46bd mov sp, r7 8004c04: bc80 pop {r7} 8004c06: 4770 bx lr 8004c08: 40012c00 .word 0x40012c00 8004c0c: 40013400 .word 0x40013400 8004c10: 40000400 .word 0x40000400 8004c14: 40000800 .word 0x40000800 8004c18: 40000c00 .word 0x40000c00 08004c1c : * @brief Hall commutation changed callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_CommutCallback(TIM_HandleTypeDef *htim) { 8004c1c: b480 push {r7} 8004c1e: b083 sub sp, #12 8004c20: af00 add r7, sp, #0 8004c22: 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 */ } 8004c24: bf00 nop 8004c26: 370c adds r7, #12 8004c28: 46bd mov sp, r7 8004c2a: bc80 pop {r7} 8004c2c: 4770 bx lr 08004c2e : * @brief Hall Break detection callback in non-blocking mode * @param htim TIM handle * @retval None */ __weak void HAL_TIMEx_BreakCallback(TIM_HandleTypeDef *htim) { 8004c2e: b480 push {r7} 8004c30: b083 sub sp, #12 8004c32: af00 add r7, sp, #0 8004c34: 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 */ } 8004c36: bf00 nop 8004c38: 370c adds r7, #12 8004c3a: 46bd mov sp, r7 8004c3c: bc80 pop {r7} 8004c3e: 4770 bx lr 08004c40 : * @param Init Pointer to NORSRAM Initialization structure * @retval HAL status */ HAL_StatusTypeDef FSMC_NORSRAM_Init(FSMC_NORSRAM_TypeDef *Device, FSMC_NORSRAM_InitTypeDef *Init) { 8004c40: b480 push {r7} 8004c42: b087 sub sp, #28 8004c44: af00 add r7, sp, #0 8004c46: 6078 str r0, [r7, #4] 8004c48: 6039 str r1, [r7, #0] assert_param(IS_FSMC_ASYNWAIT(Init->AsynchronousWait)); assert_param(IS_FSMC_WRITE_BURST(Init->WriteBurst)); assert_param(IS_FSMC_PAGESIZE(Init->PageSize)); /* Disable NORSRAM Device */ __FSMC_NORSRAM_DISABLE(Device, Init->NSBank); 8004c4a: 683b ldr r3, [r7, #0] 8004c4c: 681a ldr r2, [r3, #0] 8004c4e: 687b ldr r3, [r7, #4] 8004c50: f853 3022 ldr.w r3, [r3, r2, lsl #2] 8004c54: 683a ldr r2, [r7, #0] 8004c56: 6812 ldr r2, [r2, #0] 8004c58: f023 0101 bic.w r1, r3, #1 8004c5c: 687b ldr r3, [r7, #4] 8004c5e: f843 1022 str.w r1, [r3, r2, lsl #2] /* Set NORSRAM device control parameters */ if (Init->MemoryType == FSMC_MEMORY_TYPE_NOR) 8004c62: 683b ldr r3, [r7, #0] 8004c64: 689b ldr r3, [r3, #8] 8004c66: 2b08 cmp r3, #8 8004c68: d102 bne.n 8004c70 { flashaccess = FSMC_NORSRAM_FLASH_ACCESS_ENABLE; 8004c6a: 2340 movs r3, #64 ; 0x40 8004c6c: 617b str r3, [r7, #20] 8004c6e: e001 b.n 8004c74 } else { flashaccess = FSMC_NORSRAM_FLASH_ACCESS_DISABLE; 8004c70: 2300 movs r3, #0 8004c72: 617b str r3, [r7, #20] } btcr_reg = (flashaccess | \ Init->DataAddressMux | \ 8004c74: 683b ldr r3, [r7, #0] 8004c76: 685a ldr r2, [r3, #4] btcr_reg = (flashaccess | \ 8004c78: 697b ldr r3, [r7, #20] 8004c7a: 431a orrs r2, r3 Init->MemoryType | \ 8004c7c: 683b ldr r3, [r7, #0] 8004c7e: 689b ldr r3, [r3, #8] Init->DataAddressMux | \ 8004c80: 431a orrs r2, r3 Init->MemoryDataWidth | \ 8004c82: 683b ldr r3, [r7, #0] 8004c84: 68db ldr r3, [r3, #12] Init->MemoryType | \ 8004c86: 431a orrs r2, r3 Init->BurstAccessMode | \ 8004c88: 683b ldr r3, [r7, #0] 8004c8a: 691b ldr r3, [r3, #16] Init->MemoryDataWidth | \ 8004c8c: 431a orrs r2, r3 Init->WaitSignalPolarity | \ 8004c8e: 683b ldr r3, [r7, #0] 8004c90: 695b ldr r3, [r3, #20] Init->BurstAccessMode | \ 8004c92: 431a orrs r2, r3 Init->WaitSignalActive | \ 8004c94: 683b ldr r3, [r7, #0] 8004c96: 69db ldr r3, [r3, #28] Init->WaitSignalPolarity | \ 8004c98: 431a orrs r2, r3 Init->WriteOperation | \ 8004c9a: 683b ldr r3, [r7, #0] 8004c9c: 6a1b ldr r3, [r3, #32] Init->WaitSignalActive | \ 8004c9e: 431a orrs r2, r3 Init->WaitSignal | \ 8004ca0: 683b ldr r3, [r7, #0] 8004ca2: 6a5b ldr r3, [r3, #36] ; 0x24 Init->WriteOperation | \ 8004ca4: 431a orrs r2, r3 Init->ExtendedMode | \ 8004ca6: 683b ldr r3, [r7, #0] 8004ca8: 6a9b ldr r3, [r3, #40] ; 0x28 Init->WaitSignal | \ 8004caa: 431a orrs r2, r3 Init->AsynchronousWait | \ 8004cac: 683b ldr r3, [r7, #0] 8004cae: 6adb ldr r3, [r3, #44] ; 0x2c Init->ExtendedMode | \ 8004cb0: 431a orrs r2, r3 Init->WriteBurst); 8004cb2: 683b ldr r3, [r7, #0] 8004cb4: 6b1b ldr r3, [r3, #48] ; 0x30 btcr_reg = (flashaccess | \ 8004cb6: 4313 orrs r3, r2 8004cb8: 613b str r3, [r7, #16] btcr_reg |= Init->WrapMode; 8004cba: 683b ldr r3, [r7, #0] 8004cbc: 699b ldr r3, [r3, #24] 8004cbe: 693a ldr r2, [r7, #16] 8004cc0: 4313 orrs r3, r2 8004cc2: 613b str r3, [r7, #16] btcr_reg |= Init->PageSize; 8004cc4: 683b ldr r3, [r7, #0] 8004cc6: 6b5b ldr r3, [r3, #52] ; 0x34 8004cc8: 693a ldr r2, [r7, #16] 8004cca: 4313 orrs r3, r2 8004ccc: 613b str r3, [r7, #16] mask = (FSMC_BCRx_MBKEN | 8004cce: 4b10 ldr r3, [pc, #64] ; (8004d10 ) 8004cd0: 60fb str r3, [r7, #12] FSMC_BCRx_WAITEN | FSMC_BCRx_EXTMOD | FSMC_BCRx_ASYNCWAIT | FSMC_BCRx_CBURSTRW); mask |= FSMC_BCRx_WRAPMOD; 8004cd2: 68fb ldr r3, [r7, #12] 8004cd4: f443 6380 orr.w r3, r3, #1024 ; 0x400 8004cd8: 60fb str r3, [r7, #12] mask |= 0x00070000U; /* CPSIZE to be defined in CMSIS file */ 8004cda: 68fb ldr r3, [r7, #12] 8004cdc: f443 23e0 orr.w r3, r3, #458752 ; 0x70000 8004ce0: 60fb str r3, [r7, #12] MODIFY_REG(Device->BTCR[Init->NSBank], mask, btcr_reg); 8004ce2: 683b ldr r3, [r7, #0] 8004ce4: 681a ldr r2, [r3, #0] 8004ce6: 687b ldr r3, [r7, #4] 8004ce8: f853 2022 ldr.w r2, [r3, r2, lsl #2] 8004cec: 68fb ldr r3, [r7, #12] 8004cee: 43db mvns r3, r3 8004cf0: ea02 0103 and.w r1, r2, r3 8004cf4: 683b ldr r3, [r7, #0] 8004cf6: 681a ldr r2, [r3, #0] 8004cf8: 693b ldr r3, [r7, #16] 8004cfa: 4319 orrs r1, r3 8004cfc: 687b ldr r3, [r7, #4] 8004cfe: f843 1022 str.w r1, [r3, r2, lsl #2] return HAL_OK; 8004d02: 2300 movs r3, #0 } 8004d04: 4618 mov r0, r3 8004d06: 371c adds r7, #28 8004d08: 46bd mov sp, r7 8004d0a: bc80 pop {r7} 8004d0c: 4770 bx lr 8004d0e: bf00 nop 8004d10: 0008fb7f .word 0x0008fb7f 08004d14 : * @param Bank NORSRAM bank number * @retval HAL status */ HAL_StatusTypeDef FSMC_NORSRAM_Timing_Init(FSMC_NORSRAM_TypeDef *Device, FSMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank) { 8004d14: b480 push {r7} 8004d16: b085 sub sp, #20 8004d18: af00 add r7, sp, #0 8004d1a: 60f8 str r0, [r7, #12] 8004d1c: 60b9 str r1, [r7, #8] 8004d1e: 607a str r2, [r7, #4] assert_param(IS_FSMC_DATA_LATENCY(Timing->DataLatency)); assert_param(IS_FSMC_ACCESS_MODE(Timing->AccessMode)); assert_param(IS_FSMC_NORSRAM_BANK(Bank)); /* Set FSMC_NORSRAM device timing parameters */ MODIFY_REG(Device->BTCR[Bank + 1U], BTR_CLEAR_MASK, (Timing->AddressSetupTime | 8004d20: 687b ldr r3, [r7, #4] 8004d22: 1c5a adds r2, r3, #1 8004d24: 68fb ldr r3, [r7, #12] 8004d26: f853 3022 ldr.w r3, [r3, r2, lsl #2] 8004d2a: f003 4140 and.w r1, r3, #3221225472 ; 0xc0000000 8004d2e: 68bb ldr r3, [r7, #8] 8004d30: 681a ldr r2, [r3, #0] 8004d32: 68bb ldr r3, [r7, #8] 8004d34: 685b ldr r3, [r3, #4] 8004d36: 011b lsls r3, r3, #4 8004d38: 431a orrs r2, r3 8004d3a: 68bb ldr r3, [r7, #8] 8004d3c: 689b ldr r3, [r3, #8] 8004d3e: 021b lsls r3, r3, #8 8004d40: 431a orrs r2, r3 8004d42: 68bb ldr r3, [r7, #8] 8004d44: 68db ldr r3, [r3, #12] 8004d46: 041b lsls r3, r3, #16 8004d48: 431a orrs r2, r3 8004d4a: 68bb ldr r3, [r7, #8] 8004d4c: 691b ldr r3, [r3, #16] 8004d4e: 3b01 subs r3, #1 8004d50: 051b lsls r3, r3, #20 8004d52: 431a orrs r2, r3 8004d54: 68bb ldr r3, [r7, #8] 8004d56: 695b ldr r3, [r3, #20] 8004d58: 3b02 subs r3, #2 8004d5a: 061b lsls r3, r3, #24 8004d5c: 431a orrs r2, r3 8004d5e: 68bb ldr r3, [r7, #8] 8004d60: 699b ldr r3, [r3, #24] 8004d62: 4313 orrs r3, r2 8004d64: 687a ldr r2, [r7, #4] 8004d66: 3201 adds r2, #1 8004d68: 4319 orrs r1, r3 8004d6a: 68fb ldr r3, [r7, #12] 8004d6c: f843 1022 str.w r1, [r3, r2, lsl #2] ((Timing->BusTurnAroundDuration) << FSMC_BTRx_BUSTURN_Pos) | (((Timing->CLKDivision) - 1U) << FSMC_BTRx_CLKDIV_Pos) | (((Timing->DataLatency) - 2U) << FSMC_BTRx_DATLAT_Pos) | (Timing->AccessMode))); return HAL_OK; 8004d70: 2300 movs r3, #0 } 8004d72: 4618 mov r0, r3 8004d74: 3714 adds r7, #20 8004d76: 46bd mov sp, r7 8004d78: bc80 pop {r7} 8004d7a: 4770 bx lr 08004d7c : * @retval HAL status */ HAL_StatusTypeDef FSMC_NORSRAM_Extended_Timing_Init(FSMC_NORSRAM_EXTENDED_TypeDef *Device, FSMC_NORSRAM_TimingTypeDef *Timing, uint32_t Bank, uint32_t ExtendedMode) { 8004d7c: b480 push {r7} 8004d7e: b085 sub sp, #20 8004d80: af00 add r7, sp, #0 8004d82: 60f8 str r0, [r7, #12] 8004d84: 60b9 str r1, [r7, #8] 8004d86: 607a str r2, [r7, #4] 8004d88: 603b str r3, [r7, #0] /* Check the parameters */ assert_param(IS_FSMC_EXTENDED_MODE(ExtendedMode)); /* Set NORSRAM device timing register for write configuration, if extended mode is used */ if (ExtendedMode == FSMC_EXTENDED_MODE_ENABLE) 8004d8a: 683b ldr r3, [r7, #0] 8004d8c: f5b3 4f80 cmp.w r3, #16384 ; 0x4000 8004d90: d11d bne.n 8004dce assert_param(IS_FSMC_ACCESS_MODE(Timing->AccessMode)); assert_param(IS_FSMC_NORSRAM_BANK(Bank)); /* Set NORSRAM device timing register for write configuration, if extended mode is used */ #if defined(FSMC_BWTRx_BUSTURN) MODIFY_REG(Device->BWTR[Bank], BWTR_CLEAR_MASK, (Timing->AddressSetupTime | 8004d92: 68fb ldr r3, [r7, #12] 8004d94: 687a ldr r2, [r7, #4] 8004d96: f853 2022 ldr.w r2, [r3, r2, lsl #2] 8004d9a: 4b13 ldr r3, [pc, #76] ; (8004de8 ) 8004d9c: 4013 ands r3, r2 8004d9e: 68ba ldr r2, [r7, #8] 8004da0: 6811 ldr r1, [r2, #0] 8004da2: 68ba ldr r2, [r7, #8] 8004da4: 6852 ldr r2, [r2, #4] 8004da6: 0112 lsls r2, r2, #4 8004da8: 4311 orrs r1, r2 8004daa: 68ba ldr r2, [r7, #8] 8004dac: 6892 ldr r2, [r2, #8] 8004dae: 0212 lsls r2, r2, #8 8004db0: 4311 orrs r1, r2 8004db2: 68ba ldr r2, [r7, #8] 8004db4: 6992 ldr r2, [r2, #24] 8004db6: 4311 orrs r1, r2 8004db8: 68ba ldr r2, [r7, #8] 8004dba: 68d2 ldr r2, [r2, #12] 8004dbc: 0412 lsls r2, r2, #16 8004dbe: 430a orrs r2, r1 8004dc0: ea43 0102 orr.w r1, r3, r2 8004dc4: 68fb ldr r3, [r7, #12] 8004dc6: 687a ldr r2, [r7, #4] 8004dc8: f843 1022 str.w r1, [r3, r2, lsl #2] 8004dcc: e005 b.n 8004dda (((Timing->DataLatency) - 2U) << FSMC_BWTRx_DATLAT_Pos))); #endif /* FSMC_BWTRx_BUSTURN */ } else { Device->BWTR[Bank] = 0x0FFFFFFFU; 8004dce: 68fb ldr r3, [r7, #12] 8004dd0: 687a ldr r2, [r7, #4] 8004dd2: f06f 4170 mvn.w r1, #4026531840 ; 0xf0000000 8004dd6: f843 1022 str.w r1, [r3, r2, lsl #2] } return HAL_OK; 8004dda: 2300 movs r3, #0 } 8004ddc: 4618 mov r0, r3 8004dde: 3714 adds r7, #20 8004de0: 46bd mov sp, r7 8004de2: bc80 pop {r7} 8004de4: 4770 bx lr 8004de6: bf00 nop 8004de8: cff00000 .word 0xcff00000 08004dec : _lcd_dev lcddev; //¹ÜÀíLCDÖØÒª²ÎÊý //**************************************************¼¸ÖÖ¿ìËÙ½Ó¿Ú //д¼Ä´æÆ÷º¯Êý //regval:¼Ä´æÆ÷Öµ void LCD_WR_REG(uint16_t regval) { 8004dec: b480 push {r7} 8004dee: b083 sub sp, #12 8004df0: af00 add r7, sp, #0 8004df2: 4603 mov r3, r0 8004df4: 80fb strh r3, [r7, #6] LCD_REG_ADDRESS=regval;//дÈëҪдµÄ¼Ä´æÆ÷ÐòºÅ 8004df6: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 8004dfa: 88fb ldrh r3, [r7, #6] 8004dfc: 8013 strh r3, [r2, #0] } 8004dfe: bf00 nop 8004e00: 370c adds r7, #12 8004e02: 46bd mov sp, r7 8004e04: bc80 pop {r7} 8004e06: 4770 bx lr 08004e08 : //дLCDÊý¾Ý //data:ҪдÈëµÄÖµ void LCD_WR_DATA(uint16_t data) { 8004e08: b480 push {r7} 8004e0a: b083 sub sp, #12 8004e0c: af00 add r7, sp, #0 8004e0e: 4603 mov r3, r0 8004e10: 80fb strh r3, [r7, #6] LCD_DATA_ADDRESS=data; 8004e12: 4a04 ldr r2, [pc, #16] ; (8004e24 ) 8004e14: 88fb ldrh r3, [r7, #6] 8004e16: 8013 strh r3, [r2, #0] } 8004e18: bf00 nop 8004e1a: 370c adds r7, #12 8004e1c: 46bd mov sp, r7 8004e1e: bc80 pop {r7} 8004e20: 4770 bx lr 8004e22: bf00 nop 8004e24: 6c000800 .word 0x6c000800 08004e28 : } //д¼Ä´æÆ÷ //LCD_Reg:¼Ä´æÆ÷µØÖ· //LCD_RegValue:ҪдÈëµÄÊý¾Ý void LCD_WriteReg(uint16_t LCD_Reg, uint16_t LCD_RegValue) { 8004e28: b480 push {r7} 8004e2a: b083 sub sp, #12 8004e2c: af00 add r7, sp, #0 8004e2e: 4603 mov r3, r0 8004e30: 460a mov r2, r1 8004e32: 80fb strh r3, [r7, #6] 8004e34: 4613 mov r3, r2 8004e36: 80bb strh r3, [r7, #4] LCD_REG_ADDRESS = LCD_Reg; //дÈëҪдµÄ¼Ä´æÆ÷ÐòºÅ 8004e38: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 8004e3c: 88fb ldrh r3, [r7, #6] 8004e3e: 8013 strh r3, [r2, #0] LCD_DATA_ADDRESS = LCD_RegValue;//дÈëÊý¾Ý 8004e40: 4a03 ldr r2, [pc, #12] ; (8004e50 ) 8004e42: 88bb ldrh r3, [r7, #4] 8004e44: 8013 strh r3, [r2, #0] } 8004e46: bf00 nop 8004e48: 370c adds r7, #12 8004e4a: 46bd mov sp, r7 8004e4c: bc80 pop {r7} 8004e4e: 4770 bx lr 8004e50: 6c000800 .word 0x6c000800 08004e54 : //¶Á¼Ä´æÆ÷ //LCD_Reg:¼Ä´æÆ÷µØÖ· //·µ»ØÖµ:¶Áµ½µÄÊý¾Ý uint16_t LCD_ReadReg(uint16_t LCD_Reg) { 8004e54: b480 push {r7} 8004e56: b083 sub sp, #12 8004e58: af00 add r7, sp, #0 8004e5a: 4603 mov r3, r0 8004e5c: 80fb strh r3, [r7, #6] LCD_REG_ADDRESS=LCD_Reg; //дÈëÒª¶ÁµÄ¼Ä´æÆ÷ÐòºÅ 8004e5e: f04f 42d8 mov.w r2, #1811939328 ; 0x6c000000 8004e62: 88fb ldrh r3, [r7, #6] 8004e64: 8013 strh r3, [r2, #0] //delay_us(5); return LCD_DATA_ADDRESS; //·µ»Ø¶Áµ½µÄÖµ 8004e66: 4b04 ldr r3, [pc, #16] ; (8004e78 ) 8004e68: 881b ldrh r3, [r3, #0] 8004e6a: b29b uxth r3, r3 } 8004e6c: 4618 mov r0, r3 8004e6e: 370c adds r7, #12 8004e70: 46bd mov sp, r7 8004e72: bc80 pop {r7} 8004e74: 4770 bx lr 8004e76: bf00 nop 8004e78: 6c000800 .word 0x6c000800 08004e7c : //×¢Òâ:ÆäËûº¯Êý¿ÉÄÜ»áÊܵ½´Ëº¯ÊýÉèÖõÄÓ°Ïì(ÓÈÆäÊÇ9341/6804ÕâÁ½¸öÆæÝâ), //ËùÒÔ,Ò»°ãÉèÖÃΪL2R_U2D¼´¿É,Èç¹ûÉèÖÃΪÆäËûɨÃ跽ʽ,¿ÉÄܵ¼ÖÂÏÔʾ²»Õý³£. //dir:0~7,´ú±í8¸ö·½Ïò(¾ßÌ嶨Òå¼ûlcd.h) //9320/9325/9328/4531/4535/1505/b505/8989/5408/9341/5310µÈICÒѾ­Êµ¼Ê²âÊÔ void LCD_Scan_Dir(uint8_t dir) { 8004e7c: b580 push {r7, lr} 8004e7e: b084 sub sp, #16 8004e80: af00 add r7, sp, #0 8004e82: 4603 mov r3, r0 8004e84: 71fb strb r3, [r7, #7] uint16_t regval=0; 8004e86: 2300 movs r3, #0 8004e88: 81fb strh r3, [r7, #14] uint8_t dirreg=0; 8004e8a: 2300 movs r3, #0 8004e8c: 737b strb r3, [r7, #13] uint16_t temp; if(lcddev.dir==1&&lcddev.id!=0X6804)//ºáÆÁʱ£¬¶Ô6804²»¸Ä±äɨÃè·½Ïò£¡ 8004e8e: 4ba8 ldr r3, [pc, #672] ; (8005130 ) 8004e90: 799b ldrb r3, [r3, #6] 8004e92: 2b01 cmp r3, #1 8004e94: d134 bne.n 8004f00 8004e96: 4ba6 ldr r3, [pc, #664] ; (8005130 ) 8004e98: 889b ldrh r3, [r3, #4] 8004e9a: f646 0204 movw r2, #26628 ; 0x6804 8004e9e: 4293 cmp r3, r2 8004ea0: d02e beq.n 8004f00 { switch(dir)//·½Ïòת»» 8004ea2: 79fb ldrb r3, [r7, #7] 8004ea4: 2b07 cmp r3, #7 8004ea6: d82b bhi.n 8004f00 8004ea8: a201 add r2, pc, #4 ; (adr r2, 8004eb0 ) 8004eaa: f852 f023 ldr.w pc, [r2, r3, lsl #2] 8004eae: bf00 nop 8004eb0: 08004ed1 .word 0x08004ed1 8004eb4: 08004ed7 .word 0x08004ed7 8004eb8: 08004edd .word 0x08004edd 8004ebc: 08004ee3 .word 0x08004ee3 8004ec0: 08004ee9 .word 0x08004ee9 8004ec4: 08004eef .word 0x08004eef 8004ec8: 08004ef5 .word 0x08004ef5 8004ecc: 08004efb .word 0x08004efb { case 0:dir=6;break; 8004ed0: 2306 movs r3, #6 8004ed2: 71fb strb r3, [r7, #7] 8004ed4: e014 b.n 8004f00 case 1:dir=7;break; 8004ed6: 2307 movs r3, #7 8004ed8: 71fb strb r3, [r7, #7] 8004eda: e011 b.n 8004f00 case 2:dir=4;break; 8004edc: 2304 movs r3, #4 8004ede: 71fb strb r3, [r7, #7] 8004ee0: e00e b.n 8004f00 case 3:dir=5;break; 8004ee2: 2305 movs r3, #5 8004ee4: 71fb strb r3, [r7, #7] 8004ee6: e00b b.n 8004f00 case 4:dir=1;break; 8004ee8: 2301 movs r3, #1 8004eea: 71fb strb r3, [r7, #7] 8004eec: e008 b.n 8004f00 case 5:dir=0;break; 8004eee: 2300 movs r3, #0 8004ef0: 71fb strb r3, [r7, #7] 8004ef2: e005 b.n 8004f00 case 6:dir=3;break; 8004ef4: 2303 movs r3, #3 8004ef6: 71fb strb r3, [r7, #7] 8004ef8: e002 b.n 8004f00 case 7:dir=2;break; 8004efa: 2302 movs r3, #2 8004efc: 71fb strb r3, [r7, #7] 8004efe: bf00 nop } } if(lcddev.id==0x9341||lcddev.id==0X6804||lcddev.id==0X5310)//9341/6804/5310,ºÜÌØÊâ 8004f00: 4b8b ldr r3, [pc, #556] ; (8005130 ) 8004f02: 889b ldrh r3, [r3, #4] 8004f04: f249 3241 movw r2, #37697 ; 0x9341 8004f08: 4293 cmp r3, r2 8004f0a: d00c beq.n 8004f26 8004f0c: 4b88 ldr r3, [pc, #544] ; (8005130 ) 8004f0e: 889b ldrh r3, [r3, #4] 8004f10: f646 0204 movw r2, #26628 ; 0x6804 8004f14: 4293 cmp r3, r2 8004f16: d006 beq.n 8004f26 8004f18: 4b85 ldr r3, [pc, #532] ; (8005130 ) 8004f1a: 889b ldrh r3, [r3, #4] 8004f1c: f245 3210 movw r2, #21264 ; 0x5310 8004f20: 4293 cmp r3, r2 8004f22: f040 80bc bne.w 800509e { switch(dir) 8004f26: 79fb ldrb r3, [r7, #7] 8004f28: 2b07 cmp r3, #7 8004f2a: d836 bhi.n 8004f9a 8004f2c: a201 add r2, pc, #4 ; (adr r2, 8004f34 ) 8004f2e: f852 f023 ldr.w pc, [r2, r3, lsl #2] 8004f32: bf00 nop 8004f34: 08004f9b .word 0x08004f9b 8004f38: 08004f55 .word 0x08004f55 8004f3c: 08004f5f .word 0x08004f5f 8004f40: 08004f69 .word 0x08004f69 8004f44: 08004f73 .word 0x08004f73 8004f48: 08004f7d .word 0x08004f7d 8004f4c: 08004f87 .word 0x08004f87 8004f50: 08004f91 .word 0x08004f91 { case L2R_U2D://´Ó×óµ½ÓÒ,´ÓÉϵ½Ï regval|=(0<<7)|(0<<6)|(0<<5); break; case L2R_D2U://´Ó×óµ½ÓÒ,´Óϵ½ÉÏ regval|=(1<<7)|(0<<6)|(0<<5); 8004f54: 89fb ldrh r3, [r7, #14] 8004f56: f043 0380 orr.w r3, r3, #128 ; 0x80 8004f5a: 81fb strh r3, [r7, #14] break; 8004f5c: e01d b.n 8004f9a case R2L_U2D://´ÓÓÒµ½×ó,´ÓÉϵ½Ï regval|=(0<<7)|(1<<6)|(0<<5); 8004f5e: 89fb ldrh r3, [r7, #14] 8004f60: f043 0340 orr.w r3, r3, #64 ; 0x40 8004f64: 81fb strh r3, [r7, #14] break; 8004f66: e018 b.n 8004f9a case R2L_D2U://´ÓÓÒµ½×ó,´Óϵ½ÉÏ regval|=(1<<7)|(1<<6)|(0<<5); 8004f68: 89fb ldrh r3, [r7, #14] 8004f6a: f043 03c0 orr.w r3, r3, #192 ; 0xc0 8004f6e: 81fb strh r3, [r7, #14] break; 8004f70: e013 b.n 8004f9a case U2D_L2R://´ÓÉϵ½ÏÂ,´Ó×óµ½ÓÒ regval|=(0<<7)|(0<<6)|(1<<5); 8004f72: 89fb ldrh r3, [r7, #14] 8004f74: f043 0320 orr.w r3, r3, #32 8004f78: 81fb strh r3, [r7, #14] break; 8004f7a: e00e b.n 8004f9a case U2D_R2L://´ÓÉϵ½ÏÂ,´ÓÓÒµ½×ó regval|=(0<<7)|(1<<6)|(1<<5); 8004f7c: 89fb ldrh r3, [r7, #14] 8004f7e: f043 0360 orr.w r3, r3, #96 ; 0x60 8004f82: 81fb strh r3, [r7, #14] break; 8004f84: e009 b.n 8004f9a case D2U_L2R://´Óϵ½ÉÏ,´Ó×óµ½ÓÒ regval|=(1<<7)|(0<<6)|(1<<5); 8004f86: 89fb ldrh r3, [r7, #14] 8004f88: f043 03a0 orr.w r3, r3, #160 ; 0xa0 8004f8c: 81fb strh r3, [r7, #14] break; 8004f8e: e004 b.n 8004f9a case D2U_R2L://´Óϵ½ÉÏ,´ÓÓÒµ½×ó regval|=(1<<7)|(1<<6)|(1<<5); 8004f90: 89fb ldrh r3, [r7, #14] 8004f92: f043 03e0 orr.w r3, r3, #224 ; 0xe0 8004f96: 81fb strh r3, [r7, #14] break; 8004f98: bf00 nop } dirreg=0X36; 8004f9a: 2336 movs r3, #54 ; 0x36 8004f9c: 737b strb r3, [r7, #13] if(lcddev.id!=0X5310)regval|=0X08;//5310²»ÐèÒªBGR 8004f9e: 4b64 ldr r3, [pc, #400] ; (8005130 ) 8004fa0: 889b ldrh r3, [r3, #4] 8004fa2: f245 3210 movw r2, #21264 ; 0x5310 8004fa6: 4293 cmp r3, r2 8004fa8: d003 beq.n 8004fb2 8004faa: 89fb ldrh r3, [r7, #14] 8004fac: f043 0308 orr.w r3, r3, #8 8004fb0: 81fb strh r3, [r7, #14] if(lcddev.id==0X6804)regval|=0x02;//6804µÄBIT6ºÍ9341µÄ·´ÁË 8004fb2: 4b5f ldr r3, [pc, #380] ; (8005130 ) 8004fb4: 889b ldrh r3, [r3, #4] 8004fb6: f646 0204 movw r2, #26628 ; 0x6804 8004fba: 4293 cmp r3, r2 8004fbc: d103 bne.n 8004fc6 8004fbe: 89fb ldrh r3, [r7, #14] 8004fc0: f043 0302 orr.w r3, r3, #2 8004fc4: 81fb strh r3, [r7, #14] LCD_WriteReg(dirreg,regval); 8004fc6: 7b7b ldrb r3, [r7, #13] 8004fc8: b29b uxth r3, r3 8004fca: 89fa ldrh r2, [r7, #14] 8004fcc: 4611 mov r1, r2 8004fce: 4618 mov r0, r3 8004fd0: f7ff ff2a bl 8004e28 if((regval&0X20)||lcddev.dir==1) 8004fd4: 89fb ldrh r3, [r7, #14] 8004fd6: f003 0320 and.w r3, r3, #32 8004fda: 2b00 cmp r3, #0 8004fdc: d103 bne.n 8004fe6 8004fde: 4b54 ldr r3, [pc, #336] ; (8005130 ) 8004fe0: 799b ldrb r3, [r3, #6] 8004fe2: 2b01 cmp r3, #1 8004fe4: d110 bne.n 8005008 { if(lcddev.width) 8004fe8: 881a ldrh r2, [r3, #0] 8004fea: 4b51 ldr r3, [pc, #324] ; (8005130 ) 8004fec: 885b ldrh r3, [r3, #2] 8004fee: 429a cmp r2, r3 8004ff0: d21a bcs.n 8005028 { temp=lcddev.width; 8004ff2: 4b4f ldr r3, [pc, #316] ; (8005130 ) 8004ff4: 881b ldrh r3, [r3, #0] 8004ff6: 817b strh r3, [r7, #10] lcddev.width=lcddev.height; 8004ff8: 4b4d ldr r3, [pc, #308] ; (8005130 ) 8004ffa: 885a ldrh r2, [r3, #2] 8004ffc: 4b4c ldr r3, [pc, #304] ; (8005130 ) 8004ffe: 801a strh r2, [r3, #0] lcddev.height=temp; 8005000: 4a4b ldr r2, [pc, #300] ; (8005130 ) 8005002: 897b ldrh r3, [r7, #10] 8005004: 8053 strh r3, [r2, #2] if(lcddev.width } }else { if(lcddev.width>lcddev.height)//½»»»X,Y 8005008: 4b49 ldr r3, [pc, #292] ; (8005130 ) 800500a: 881a ldrh r2, [r3, #0] 800500c: 4b48 ldr r3, [pc, #288] ; (8005130 ) 800500e: 885b ldrh r3, [r3, #2] 8005010: 429a cmp r2, r3 8005012: d909 bls.n 8005028 { temp=lcddev.width; 8005014: 4b46 ldr r3, [pc, #280] ; (8005130 ) 8005016: 881b ldrh r3, [r3, #0] 8005018: 817b strh r3, [r7, #10] lcddev.width=lcddev.height; 800501a: 4b45 ldr r3, [pc, #276] ; (8005130 ) 800501c: 885a ldrh r2, [r3, #2] 800501e: 4b44 ldr r3, [pc, #272] ; (8005130 ) 8005020: 801a strh r2, [r3, #0] lcddev.height=temp; 8005022: 4a43 ldr r2, [pc, #268] ; (8005130 ) 8005024: 897b ldrh r3, [r7, #10] 8005026: 8053 strh r3, [r2, #2] } } LCD_WR_REG(lcddev.setxcmd); 8005028: 4b41 ldr r3, [pc, #260] ; (8005130 ) 800502a: 7a1b ldrb r3, [r3, #8] 800502c: b29b uxth r3, r3 800502e: 4618 mov r0, r3 8005030: f7ff fedc bl 8004dec LCD_WR_DATA(0);LCD_WR_DATA(0); 8005034: 2000 movs r0, #0 8005036: f7ff fee7 bl 8004e08 800503a: 2000 movs r0, #0 800503c: f7ff fee4 bl 8004e08 LCD_WR_DATA((lcddev.width-1)>>8);LCD_WR_DATA((lcddev.width-1)&0XFF); 8005040: 4b3b ldr r3, [pc, #236] ; (8005130 ) 8005042: 881b ldrh r3, [r3, #0] 8005044: 3b01 subs r3, #1 8005046: 121b asrs r3, r3, #8 8005048: b29b uxth r3, r3 800504a: 4618 mov r0, r3 800504c: f7ff fedc bl 8004e08 8005050: 4b37 ldr r3, [pc, #220] ; (8005130 ) 8005052: 881b ldrh r3, [r3, #0] 8005054: 3b01 subs r3, #1 8005056: b29b uxth r3, r3 8005058: b2db uxtb r3, r3 800505a: b29b uxth r3, r3 800505c: 4618 mov r0, r3 800505e: f7ff fed3 bl 8004e08 LCD_WR_REG(lcddev.setycmd); 8005062: 4b33 ldr r3, [pc, #204] ; (8005130 ) 8005064: 7a5b ldrb r3, [r3, #9] 8005066: b29b uxth r3, r3 8005068: 4618 mov r0, r3 800506a: f7ff febf bl 8004dec LCD_WR_DATA(0);LCD_WR_DATA(0); 800506e: 2000 movs r0, #0 8005070: f7ff feca bl 8004e08 8005074: 2000 movs r0, #0 8005076: f7ff fec7 bl 8004e08 LCD_WR_DATA((lcddev.height-1)>>8);LCD_WR_DATA((lcddev.height-1)&0XFF); 800507a: 4b2d ldr r3, [pc, #180] ; (8005130 ) 800507c: 885b ldrh r3, [r3, #2] 800507e: 3b01 subs r3, #1 8005080: 121b asrs r3, r3, #8 8005082: b29b uxth r3, r3 8005084: 4618 mov r0, r3 8005086: f7ff febf bl 8004e08 800508a: 4b29 ldr r3, [pc, #164] ; (8005130 ) 800508c: 885b ldrh r3, [r3, #2] 800508e: 3b01 subs r3, #1 8005090: b29b uxth r3, r3 8005092: b2db uxtb r3, r3 8005094: b29b uxth r3, r3 8005096: 4618 mov r0, r3 8005098: f7ff feb6 bl 8004e08 800509c: e058 b.n 8005150 }else { switch(dir) 800509e: 79fb ldrb r3, [r7, #7] 80050a0: 2b07 cmp r3, #7 80050a2: d836 bhi.n 8005112 80050a4: a201 add r2, pc, #4 ; (adr r2, 80050ac ) 80050a6: f852 f023 ldr.w pc, [r2, r3, lsl #2] 80050aa: bf00 nop 80050ac: 080050cd .word 0x080050cd 80050b0: 080050d7 .word 0x080050d7 80050b4: 080050e1 .word 0x080050e1 80050b8: 08005113 .word 0x08005113 80050bc: 080050eb .word 0x080050eb 80050c0: 080050f5 .word 0x080050f5 80050c4: 080050ff .word 0x080050ff 80050c8: 08005109 .word 0x08005109 { case L2R_U2D://´Ó×óµ½ÓÒ,´ÓÉϵ½Ï regval|=(1<<5)|(1<<4)|(0<<3); 80050cc: 89fb ldrh r3, [r7, #14] 80050ce: f043 0330 orr.w r3, r3, #48 ; 0x30 80050d2: 81fb strh r3, [r7, #14] break; 80050d4: e01d b.n 8005112 case L2R_D2U://´Ó×óµ½ÓÒ,´Óϵ½ÉÏ regval|=(0<<5)|(1<<4)|(0<<3); 80050d6: 89fb ldrh r3, [r7, #14] 80050d8: f043 0310 orr.w r3, r3, #16 80050dc: 81fb strh r3, [r7, #14] break; 80050de: e018 b.n 8005112 case R2L_U2D://´ÓÓÒµ½×ó,´ÓÉϵ½Ï regval|=(1<<5)|(0<<4)|(0<<3); 80050e0: 89fb ldrh r3, [r7, #14] 80050e2: f043 0320 orr.w r3, r3, #32 80050e6: 81fb strh r3, [r7, #14] break; 80050e8: e013 b.n 8005112 case R2L_D2U://´ÓÓÒµ½×ó,´Óϵ½ÉÏ regval|=(0<<5)|(0<<4)|(0<<3); break; case U2D_L2R://´ÓÉϵ½ÏÂ,´Ó×óµ½ÓÒ regval|=(1<<5)|(1<<4)|(1<<3); 80050ea: 89fb ldrh r3, [r7, #14] 80050ec: f043 0338 orr.w r3, r3, #56 ; 0x38 80050f0: 81fb strh r3, [r7, #14] break; 80050f2: e00e b.n 8005112 case U2D_R2L://´ÓÉϵ½ÏÂ,´ÓÓÒµ½×ó regval|=(1<<5)|(0<<4)|(1<<3); 80050f4: 89fb ldrh r3, [r7, #14] 80050f6: f043 0328 orr.w r3, r3, #40 ; 0x28 80050fa: 81fb strh r3, [r7, #14] break; 80050fc: e009 b.n 8005112 case D2U_L2R://´Óϵ½ÉÏ,´Ó×óµ½ÓÒ regval|=(0<<5)|(1<<4)|(1<<3); 80050fe: 89fb ldrh r3, [r7, #14] 8005100: f043 0318 orr.w r3, r3, #24 8005104: 81fb strh r3, [r7, #14] break; 8005106: e004 b.n 8005112 case D2U_R2L://´Óϵ½ÉÏ,´ÓÓÒµ½×ó regval|=(0<<5)|(0<<4)|(1<<3); 8005108: 89fb ldrh r3, [r7, #14] 800510a: f043 0308 orr.w r3, r3, #8 800510e: 81fb strh r3, [r7, #14] break; 8005110: bf00 nop } if(lcddev.id==0x8989)//8989 IC 8005112: 4b07 ldr r3, [pc, #28] ; (8005130 ) 8005114: 889b ldrh r3, [r3, #4] 8005116: f648 1289 movw r2, #35209 ; 0x8989 800511a: 4293 cmp r3, r2 800511c: d10a bne.n 8005134 { dirreg=0X11; 800511e: 2311 movs r3, #17 8005120: 737b strb r3, [r7, #13] regval|=0X6040; //65K 8005122: 89fb ldrh r3, [r7, #14] 8005124: f443 43c0 orr.w r3, r3, #24576 ; 0x6000 8005128: f043 0340 orr.w r3, r3, #64 ; 0x40 800512c: 81fb strh r3, [r7, #14] 800512e: e007 b.n 8005140 8005130: 20000380 .word 0x20000380 }else//ÆäËûÇý¶¯IC { dirreg=0X03; 8005134: 2303 movs r3, #3 8005136: 737b strb r3, [r7, #13] regval|=1<<12; 8005138: 89fb ldrh r3, [r7, #14] 800513a: f443 5380 orr.w r3, r3, #4096 ; 0x1000 800513e: 81fb strh r3, [r7, #14] } LCD_WriteReg(dirreg,regval); 8005140: 7b7b ldrb r3, [r7, #13] 8005142: b29b uxth r3, r3 8005144: 89fa ldrh r2, [r7, #14] 8005146: 4611 mov r1, r2 8005148: 4618 mov r0, r3 800514a: f7ff fe6d bl 8004e28 } } 800514e: bf00 nop 8005150: bf00 nop 8005152: 3710 adds r7, #16 8005154: 46bd mov sp, r7 8005156: bd80 pop {r7, pc} 08005158 : //ÉèÖÃLCDÏÔʾ·½Ïò //dir:0,ÊúÆÁ£»1,ºáÆÁ void LCD_Display_Dir(uint8_t dir) { 8005158: b580 push {r7, lr} 800515a: b082 sub sp, #8 800515c: af00 add r7, sp, #0 800515e: 4603 mov r3, r0 8005160: 71fb strb r3, [r7, #7] if(dir==0) //ÊúÆÁ 8005162: 79fb ldrb r3, [r7, #7] 8005164: 2b00 cmp r3, #0 8005166: d154 bne.n 8005212 { lcddev.dir=0; //ÊúÆÁ 8005168: 4b5d ldr r3, [pc, #372] ; (80052e0 ) 800516a: 2200 movs r2, #0 800516c: 719a strb r2, [r3, #6] lcddev.width=240; 800516e: 4b5c ldr r3, [pc, #368] ; (80052e0 ) 8005170: 22f0 movs r2, #240 ; 0xf0 8005172: 801a strh r2, [r3, #0] lcddev.height=320; 8005174: 4b5a ldr r3, [pc, #360] ; (80052e0 ) 8005176: f44f 72a0 mov.w r2, #320 ; 0x140 800517a: 805a strh r2, [r3, #2] if(lcddev.id==0X9341||lcddev.id==0X6804||lcddev.id==0X5310) 800517c: 4b58 ldr r3, [pc, #352] ; (80052e0 ) 800517e: 889b ldrh r3, [r3, #4] 8005180: f249 3241 movw r2, #37697 ; 0x9341 8005184: 4293 cmp r3, r2 8005186: d00b beq.n 80051a0 8005188: 4b55 ldr r3, [pc, #340] ; (80052e0 ) 800518a: 889b ldrh r3, [r3, #4] 800518c: f646 0204 movw r2, #26628 ; 0x6804 8005190: 4293 cmp r3, r2 8005192: d005 beq.n 80051a0 8005194: 4b52 ldr r3, [pc, #328] ; (80052e0 ) 8005196: 889b ldrh r3, [r3, #4] 8005198: f245 3210 movw r2, #21264 ; 0x5310 800519c: 4293 cmp r3, r2 800519e: d11e bne.n 80051de { lcddev.wramcmd=0X2C; 80051a0: 4b4f ldr r3, [pc, #316] ; (80052e0 ) 80051a2: 222c movs r2, #44 ; 0x2c 80051a4: 71da strb r2, [r3, #7] lcddev.setxcmd=0X2A; 80051a6: 4b4e ldr r3, [pc, #312] ; (80052e0 ) 80051a8: 222a movs r2, #42 ; 0x2a 80051aa: 721a strb r2, [r3, #8] lcddev.setycmd=0X2B; 80051ac: 4b4c ldr r3, [pc, #304] ; (80052e0 ) 80051ae: 222b movs r2, #43 ; 0x2b 80051b0: 725a strb r2, [r3, #9] if(lcddev.id==0X6804||lcddev.id==0X5310) 80051b2: 4b4b ldr r3, [pc, #300] ; (80052e0 ) 80051b4: 889b ldrh r3, [r3, #4] 80051b6: f646 0204 movw r2, #26628 ; 0x6804 80051ba: 4293 cmp r3, r2 80051bc: d006 beq.n 80051cc 80051be: 4b48 ldr r3, [pc, #288] ; (80052e0 ) 80051c0: 889b ldrh r3, [r3, #4] 80051c2: f245 3210 movw r2, #21264 ; 0x5310 80051c6: 4293 cmp r3, r2 80051c8: f040 8081 bne.w 80052ce { lcddev.width=320; 80051cc: 4b44 ldr r3, [pc, #272] ; (80052e0 ) 80051ce: f44f 72a0 mov.w r2, #320 ; 0x140 80051d2: 801a strh r2, [r3, #0] lcddev.height=480; 80051d4: 4b42 ldr r3, [pc, #264] ; (80052e0 ) 80051d6: f44f 72f0 mov.w r2, #480 ; 0x1e0 80051da: 805a strh r2, [r3, #2] if(lcddev.id==0X6804||lcddev.id==0X5310) 80051dc: e077 b.n 80052ce } }else if(lcddev.id==0X8989) 80051de: 4b40 ldr r3, [pc, #256] ; (80052e0 ) 80051e0: 889b ldrh r3, [r3, #4] 80051e2: f648 1289 movw r2, #35209 ; 0x8989 80051e6: 4293 cmp r3, r2 80051e8: d109 bne.n 80051fe { lcddev.wramcmd=R34; 80051ea: 4b3d ldr r3, [pc, #244] ; (80052e0 ) 80051ec: 2222 movs r2, #34 ; 0x22 80051ee: 71da strb r2, [r3, #7] lcddev.setxcmd=0X4E; 80051f0: 4b3b ldr r3, [pc, #236] ; (80052e0 ) 80051f2: 224e movs r2, #78 ; 0x4e 80051f4: 721a strb r2, [r3, #8] lcddev.setycmd=0X4F; 80051f6: 4b3a ldr r3, [pc, #232] ; (80052e0 ) 80051f8: 224f movs r2, #79 ; 0x4f 80051fa: 725a strb r2, [r3, #9] 80051fc: e068 b.n 80052d0 }else { lcddev.wramcmd=R34; 80051fe: 4b38 ldr r3, [pc, #224] ; (80052e0 ) 8005200: 2222 movs r2, #34 ; 0x22 8005202: 71da strb r2, [r3, #7] lcddev.setxcmd=R32; 8005204: 4b36 ldr r3, [pc, #216] ; (80052e0 ) 8005206: 2220 movs r2, #32 8005208: 721a strb r2, [r3, #8] lcddev.setycmd=R33; 800520a: 4b35 ldr r3, [pc, #212] ; (80052e0 ) 800520c: 2221 movs r2, #33 ; 0x21 800520e: 725a strb r2, [r3, #9] 8005210: e05e b.n 80052d0 } }else //ºáÆÁ { lcddev.dir=1; //ºáÆÁ 8005212: 4b33 ldr r3, [pc, #204] ; (80052e0 ) 8005214: 2201 movs r2, #1 8005216: 719a strb r2, [r3, #6] lcddev.width=320; 8005218: 4b31 ldr r3, [pc, #196] ; (80052e0 ) 800521a: f44f 72a0 mov.w r2, #320 ; 0x140 800521e: 801a strh r2, [r3, #0] lcddev.height=240; 8005220: 4b2f ldr r3, [pc, #188] ; (80052e0 ) 8005222: 22f0 movs r2, #240 ; 0xf0 8005224: 805a strh r2, [r3, #2] if(lcddev.id==0X9341||lcddev.id==0X5310) 8005226: 4b2e ldr r3, [pc, #184] ; (80052e0 ) 8005228: 889b ldrh r3, [r3, #4] 800522a: f249 3241 movw r2, #37697 ; 0x9341 800522e: 4293 cmp r3, r2 8005230: d005 beq.n 800523e 8005232: 4b2b ldr r3, [pc, #172] ; (80052e0 ) 8005234: 889b ldrh r3, [r3, #4] 8005236: f245 3210 movw r2, #21264 ; 0x5310 800523a: 4293 cmp r3, r2 800523c: d109 bne.n 8005252 { lcddev.wramcmd=0X2C; 800523e: 4b28 ldr r3, [pc, #160] ; (80052e0 ) 8005240: 222c movs r2, #44 ; 0x2c 8005242: 71da strb r2, [r3, #7] lcddev.setxcmd=0X2A; 8005244: 4b26 ldr r3, [pc, #152] ; (80052e0 ) 8005246: 222a movs r2, #42 ; 0x2a 8005248: 721a strb r2, [r3, #8] lcddev.setycmd=0X2B; 800524a: 4b25 ldr r3, [pc, #148] ; (80052e0 ) 800524c: 222b movs r2, #43 ; 0x2b 800524e: 725a strb r2, [r3, #9] 8005250: e028 b.n 80052a4 }else if(lcddev.id==0X6804) 8005252: 4b23 ldr r3, [pc, #140] ; (80052e0 ) 8005254: 889b ldrh r3, [r3, #4] 8005256: f646 0204 movw r2, #26628 ; 0x6804 800525a: 4293 cmp r3, r2 800525c: d109 bne.n 8005272 { lcddev.wramcmd=0X2C; 800525e: 4b20 ldr r3, [pc, #128] ; (80052e0 ) 8005260: 222c movs r2, #44 ; 0x2c 8005262: 71da strb r2, [r3, #7] lcddev.setxcmd=0X2B; 8005264: 4b1e ldr r3, [pc, #120] ; (80052e0 ) 8005266: 222b movs r2, #43 ; 0x2b 8005268: 721a strb r2, [r3, #8] lcddev.setycmd=0X2A; 800526a: 4b1d ldr r3, [pc, #116] ; (80052e0 ) 800526c: 222a movs r2, #42 ; 0x2a 800526e: 725a strb r2, [r3, #9] 8005270: e018 b.n 80052a4 }else if(lcddev.id==0X8989) 8005272: 4b1b ldr r3, [pc, #108] ; (80052e0 ) 8005274: 889b ldrh r3, [r3, #4] 8005276: f648 1289 movw r2, #35209 ; 0x8989 800527a: 4293 cmp r3, r2 800527c: d109 bne.n 8005292 { lcddev.wramcmd=R34; 800527e: 4b18 ldr r3, [pc, #96] ; (80052e0 ) 8005280: 2222 movs r2, #34 ; 0x22 8005282: 71da strb r2, [r3, #7] lcddev.setxcmd=0X4F; 8005284: 4b16 ldr r3, [pc, #88] ; (80052e0 ) 8005286: 224f movs r2, #79 ; 0x4f 8005288: 721a strb r2, [r3, #8] lcddev.setycmd=0X4E; 800528a: 4b15 ldr r3, [pc, #84] ; (80052e0 ) 800528c: 224e movs r2, #78 ; 0x4e 800528e: 725a strb r2, [r3, #9] 8005290: e008 b.n 80052a4 }else { lcddev.wramcmd=R34; 8005292: 4b13 ldr r3, [pc, #76] ; (80052e0 ) 8005294: 2222 movs r2, #34 ; 0x22 8005296: 71da strb r2, [r3, #7] lcddev.setxcmd=R33; 8005298: 4b11 ldr r3, [pc, #68] ; (80052e0 ) 800529a: 2221 movs r2, #33 ; 0x21 800529c: 721a strb r2, [r3, #8] lcddev.setycmd=R32; 800529e: 4b10 ldr r3, [pc, #64] ; (80052e0 ) 80052a0: 2220 movs r2, #32 80052a2: 725a strb r2, [r3, #9] } if(lcddev.id==0X6804||lcddev.id==0X5310) 80052a4: 4b0e ldr r3, [pc, #56] ; (80052e0 ) 80052a6: 889b ldrh r3, [r3, #4] 80052a8: f646 0204 movw r2, #26628 ; 0x6804 80052ac: 4293 cmp r3, r2 80052ae: d005 beq.n 80052bc 80052b0: 4b0b ldr r3, [pc, #44] ; (80052e0 ) 80052b2: 889b ldrh r3, [r3, #4] 80052b4: f245 3210 movw r2, #21264 ; 0x5310 80052b8: 4293 cmp r3, r2 80052ba: d109 bne.n 80052d0 { lcddev.width=480; 80052bc: 4b08 ldr r3, [pc, #32] ; (80052e0 ) 80052be: f44f 72f0 mov.w r2, #480 ; 0x1e0 80052c2: 801a strh r2, [r3, #0] lcddev.height=320; 80052c4: 4b06 ldr r3, [pc, #24] ; (80052e0 ) 80052c6: f44f 72a0 mov.w r2, #320 ; 0x140 80052ca: 805a strh r2, [r3, #2] 80052cc: e000 b.n 80052d0 if(lcddev.id==0X6804||lcddev.id==0X5310) 80052ce: bf00 nop } } LCD_Scan_Dir(DFT_SCAN_DIR); //ĬÈÏɨÃè·½Ïò 80052d0: 2000 movs r0, #0 80052d2: f7ff fdd3 bl 8004e7c } 80052d6: bf00 nop 80052d8: 3708 adds r7, #8 80052da: 46bd mov sp, r7 80052dc: bd80 pop {r7, pc} 80052de: bf00 nop 80052e0: 20000380 .word 0x20000380 080052e4 : //³õʼ»¯lcd //¸Ã³õʼ»¯º¯Êý¿ÉÒÔ³õʼ»¯¸÷ÖÖÒº¾§! void LCDx_Init(void) { 80052e4: b580 push {r7, lr} 80052e6: af00 add r7, sp, #0 HAL_Delay(50); // delay 50 ms 80052e8: 2032 movs r0, #50 ; 0x32 80052ea: f7fc fd41 bl 8001d70 LCD_WriteReg(0x0000,0x0001); 80052ee: 2101 movs r1, #1 80052f0: 2000 movs r0, #0 80052f2: f7ff fd99 bl 8004e28 HAL_Delay(50); // delay 50 ms 80052f6: 2032 movs r0, #50 ; 0x32 80052f8: f7fc fd3a bl 8001d70 lcddev.id = LCD_ReadReg(0x0000); 80052fc: 2000 movs r0, #0 80052fe: f7ff fda9 bl 8004e54 8005302: 4603 mov r3, r0 8005304: 461a mov r2, r3 8005306: 4b70 ldr r3, [pc, #448] ; (80054c8 ) 8005308: 809a strh r2, [r3, #4] LCD_WriteReg(0x00E5,0x78F0); 800530a: f647 01f0 movw r1, #30960 ; 0x78f0 800530e: 20e5 movs r0, #229 ; 0xe5 8005310: f7ff fd8a bl 8004e28 LCD_WriteReg(0x0001,0x0100); 8005314: f44f 7180 mov.w r1, #256 ; 0x100 8005318: 2001 movs r0, #1 800531a: f7ff fd85 bl 8004e28 LCD_WriteReg(0x0002,0x0700); 800531e: f44f 61e0 mov.w r1, #1792 ; 0x700 8005322: 2002 movs r0, #2 8005324: f7ff fd80 bl 8004e28 LCD_WriteReg(0x0003,0x1030); 8005328: f241 0130 movw r1, #4144 ; 0x1030 800532c: 2003 movs r0, #3 800532e: f7ff fd7b bl 8004e28 LCD_WriteReg(0x0004,0x0000); 8005332: 2100 movs r1, #0 8005334: 2004 movs r0, #4 8005336: f7ff fd77 bl 8004e28 LCD_WriteReg(0x0008,0x0202); 800533a: f240 2102 movw r1, #514 ; 0x202 800533e: 2008 movs r0, #8 8005340: f7ff fd72 bl 8004e28 LCD_WriteReg(0x0009,0x0000); 8005344: 2100 movs r1, #0 8005346: 2009 movs r0, #9 8005348: f7ff fd6e bl 8004e28 LCD_WriteReg(0x000A,0x0000); 800534c: 2100 movs r1, #0 800534e: 200a movs r0, #10 8005350: f7ff fd6a bl 8004e28 LCD_WriteReg(0x000C,0x0000); 8005354: 2100 movs r1, #0 8005356: 200c movs r0, #12 8005358: f7ff fd66 bl 8004e28 LCD_WriteReg(0x000D,0x0000); 800535c: 2100 movs r1, #0 800535e: 200d movs r0, #13 8005360: f7ff fd62 bl 8004e28 LCD_WriteReg(0x000F,0x0000); 8005364: 2100 movs r1, #0 8005366: 200f movs r0, #15 8005368: f7ff fd5e bl 8004e28 //power on sequence VGHVGL LCD_WriteReg(0x0010,0x0000); 800536c: 2100 movs r1, #0 800536e: 2010 movs r0, #16 8005370: f7ff fd5a bl 8004e28 LCD_WriteReg(0x0011,0x0007); 8005374: 2107 movs r1, #7 8005376: 2011 movs r0, #17 8005378: f7ff fd56 bl 8004e28 LCD_WriteReg(0x0012,0x0000); 800537c: 2100 movs r1, #0 800537e: 2012 movs r0, #18 8005380: f7ff fd52 bl 8004e28 LCD_WriteReg(0x0013,0x0000); 8005384: 2100 movs r1, #0 8005386: 2013 movs r0, #19 8005388: f7ff fd4e bl 8004e28 LCD_WriteReg(0x0007,0x0000); 800538c: 2100 movs r1, #0 800538e: 2007 movs r0, #7 8005390: f7ff fd4a bl 8004e28 //vgh LCD_WriteReg(0x0010,0x1690); 8005394: f241 6190 movw r1, #5776 ; 0x1690 8005398: 2010 movs r0, #16 800539a: f7ff fd45 bl 8004e28 LCD_WriteReg(0x0011,0x0227); 800539e: f240 2127 movw r1, #551 ; 0x227 80053a2: 2011 movs r0, #17 80053a4: f7ff fd40 bl 8004e28 //delayms(100); //vregiout LCD_WriteReg(0x0012,0x009D); //0x001b 80053a8: 219d movs r1, #157 ; 0x9d 80053aa: 2012 movs r0, #18 80053ac: f7ff fd3c bl 8004e28 //delayms(100); //vom amplitude LCD_WriteReg(0x0013,0x1900); 80053b0: f44f 51c8 mov.w r1, #6400 ; 0x1900 80053b4: 2013 movs r0, #19 80053b6: f7ff fd37 bl 8004e28 //delayms(100); //vom H LCD_WriteReg(0x0029,0x0025); 80053ba: 2125 movs r1, #37 ; 0x25 80053bc: 2029 movs r0, #41 ; 0x29 80053be: f7ff fd33 bl 8004e28 LCD_WriteReg(0x002B,0x000D); 80053c2: 210d movs r1, #13 80053c4: 202b movs r0, #43 ; 0x2b 80053c6: f7ff fd2f bl 8004e28 //gamma LCD_WriteReg(0x0030,0x0007); 80053ca: 2107 movs r1, #7 80053cc: 2030 movs r0, #48 ; 0x30 80053ce: f7ff fd2b bl 8004e28 LCD_WriteReg(0x0031,0x0303); 80053d2: f240 3103 movw r1, #771 ; 0x303 80053d6: 2031 movs r0, #49 ; 0x31 80053d8: f7ff fd26 bl 8004e28 LCD_WriteReg(0x0032,0x0003);// 0006 80053dc: 2103 movs r1, #3 80053de: 2032 movs r0, #50 ; 0x32 80053e0: f7ff fd22 bl 8004e28 LCD_WriteReg(0x0035,0x0206); 80053e4: f240 2106 movw r1, #518 ; 0x206 80053e8: 2035 movs r0, #53 ; 0x35 80053ea: f7ff fd1d bl 8004e28 LCD_WriteReg(0x0036,0x0008); 80053ee: 2108 movs r1, #8 80053f0: 2036 movs r0, #54 ; 0x36 80053f2: f7ff fd19 bl 8004e28 LCD_WriteReg(0x0037,0x0406); 80053f6: f240 4106 movw r1, #1030 ; 0x406 80053fa: 2037 movs r0, #55 ; 0x37 80053fc: f7ff fd14 bl 8004e28 LCD_WriteReg(0x0038,0x0304);//0200 8005400: f44f 7141 mov.w r1, #772 ; 0x304 8005404: 2038 movs r0, #56 ; 0x38 8005406: f7ff fd0f bl 8004e28 LCD_WriteReg(0x0039,0x0007); 800540a: 2107 movs r1, #7 800540c: 2039 movs r0, #57 ; 0x39 800540e: f7ff fd0b bl 8004e28 LCD_WriteReg(0x003C,0x0602);// 0504 8005412: f240 6102 movw r1, #1538 ; 0x602 8005416: 203c movs r0, #60 ; 0x3c 8005418: f7ff fd06 bl 8004e28 LCD_WriteReg(0x003D,0x0008); 800541c: 2108 movs r1, #8 800541e: 203d movs r0, #61 ; 0x3d 8005420: f7ff fd02 bl 8004e28 //ram LCD_WriteReg(0x0050,0x0000); 8005424: 2100 movs r1, #0 8005426: 2050 movs r0, #80 ; 0x50 8005428: f7ff fcfe bl 8004e28 LCD_WriteReg(0x0051,0x00EF); 800542c: 21ef movs r1, #239 ; 0xef 800542e: 2051 movs r0, #81 ; 0x51 8005430: f7ff fcfa bl 8004e28 LCD_WriteReg(0x0052,0x0000); 8005434: 2100 movs r1, #0 8005436: 2052 movs r0, #82 ; 0x52 8005438: f7ff fcf6 bl 8004e28 LCD_WriteReg(0x0053,0x013F); 800543c: f240 113f movw r1, #319 ; 0x13f 8005440: 2053 movs r0, #83 ; 0x53 8005442: f7ff fcf1 bl 8004e28 LCD_WriteReg(0x0060,0xA700); 8005446: f44f 4127 mov.w r1, #42752 ; 0xa700 800544a: 2060 movs r0, #96 ; 0x60 800544c: f7ff fcec bl 8004e28 LCD_WriteReg(0x0061,0x0001); 8005450: 2101 movs r1, #1 8005452: 2061 movs r0, #97 ; 0x61 8005454: f7ff fce8 bl 8004e28 LCD_WriteReg(0x006A,0x0000); 8005458: 2100 movs r1, #0 800545a: 206a movs r0, #106 ; 0x6a 800545c: f7ff fce4 bl 8004e28 // LCD_WriteReg(0x0080,0x0000); 8005460: 2100 movs r1, #0 8005462: 2080 movs r0, #128 ; 0x80 8005464: f7ff fce0 bl 8004e28 LCD_WriteReg(0x0081,0x0000); 8005468: 2100 movs r1, #0 800546a: 2081 movs r0, #129 ; 0x81 800546c: f7ff fcdc bl 8004e28 LCD_WriteReg(0x0082,0x0000); 8005470: 2100 movs r1, #0 8005472: 2082 movs r0, #130 ; 0x82 8005474: f7ff fcd8 bl 8004e28 LCD_WriteReg(0x0083,0x0000); 8005478: 2100 movs r1, #0 800547a: 2083 movs r0, #131 ; 0x83 800547c: f7ff fcd4 bl 8004e28 LCD_WriteReg(0x0084,0x0000); 8005480: 2100 movs r1, #0 8005482: 2084 movs r0, #132 ; 0x84 8005484: f7ff fcd0 bl 8004e28 LCD_WriteReg(0x0085,0x0000); 8005488: 2100 movs r1, #0 800548a: 2085 movs r0, #133 ; 0x85 800548c: f7ff fccc bl 8004e28 // LCD_WriteReg(0x0090,0x0010); 8005490: 2110 movs r1, #16 8005492: 2090 movs r0, #144 ; 0x90 8005494: f7ff fcc8 bl 8004e28 LCD_WriteReg(0x0092,0x0600); 8005498: f44f 61c0 mov.w r1, #1536 ; 0x600 800549c: 2092 movs r0, #146 ; 0x92 800549e: f7ff fcc3 bl 8004e28 LCD_WriteReg(0x0007,0x0133); 80054a2: f240 1133 movw r1, #307 ; 0x133 80054a6: 2007 movs r0, #7 80054a8: f7ff fcbe bl 8004e28 LCD_WriteReg(0x00,0x0022);// 80054ac: 2122 movs r1, #34 ; 0x22 80054ae: 2000 movs r0, #0 80054b0: f7ff fcba bl 8004e28 LCD_Display_Dir(1); //ĬÈÏΪhÆÁ 80054b4: 2001 movs r0, #1 80054b6: f7ff fe4f bl 8005158 LCD_BL(0); 80054ba: 2200 movs r2, #0 80054bc: 2101 movs r1, #1 80054be: 4803 ldr r0, [pc, #12] ; (80054cc ) 80054c0: f7fc ff33 bl 800232a } 80054c4: bf00 nop 80054c6: bd80 pop {r7, pc} 80054c8: 20000380 .word 0x20000380 80054cc: 40010c00 .word 0x40010c00 080054d0 : //***********************************************************´òµã ¶Áµã ʲôµÄ //ÉèÖùâ±êλÖà //Xpos:ºá×ø±ê //Ypos:×Ý×ø±ê void LCD_SetCursor(uint16_t Xpos, uint16_t Ypos) { 80054d0: b580 push {r7, lr} 80054d2: b082 sub sp, #8 80054d4: af00 add r7, sp, #0 80054d6: 4603 mov r3, r0 80054d8: 460a mov r2, r1 80054da: 80fb strh r3, [r7, #6] 80054dc: 4613 mov r3, r2 80054de: 80bb strh r3, [r7, #4] if(lcddev.id==0X9341||lcddev.id==0X5310) 80054e0: 4b42 ldr r3, [pc, #264] ; (80055ec ) 80054e2: 889b ldrh r3, [r3, #4] 80054e4: f249 3241 movw r2, #37697 ; 0x9341 80054e8: 4293 cmp r3, r2 80054ea: d005 beq.n 80054f8 80054ec: 4b3f ldr r3, [pc, #252] ; (80055ec ) 80054ee: 889b ldrh r3, [r3, #4] 80054f0: f245 3210 movw r2, #21264 ; 0x5310 80054f4: 4293 cmp r3, r2 80054f6: d124 bne.n 8005542 { LCD_WR_REG(lcddev.setxcmd); 80054f8: 4b3c ldr r3, [pc, #240] ; (80055ec ) 80054fa: 7a1b ldrb r3, [r3, #8] 80054fc: b29b uxth r3, r3 80054fe: 4618 mov r0, r3 8005500: f7ff fc74 bl 8004dec LCD_WR_DATA(Xpos>>8); 8005504: 88fb ldrh r3, [r7, #6] 8005506: 0a1b lsrs r3, r3, #8 8005508: b29b uxth r3, r3 800550a: 4618 mov r0, r3 800550c: f7ff fc7c bl 8004e08 LCD_WR_DATA(Xpos&0XFF); 8005510: 88fb ldrh r3, [r7, #6] 8005512: b2db uxtb r3, r3 8005514: b29b uxth r3, r3 8005516: 4618 mov r0, r3 8005518: f7ff fc76 bl 8004e08 LCD_WR_REG(lcddev.setycmd); 800551c: 4b33 ldr r3, [pc, #204] ; (80055ec ) 800551e: 7a5b ldrb r3, [r3, #9] 8005520: b29b uxth r3, r3 8005522: 4618 mov r0, r3 8005524: f7ff fc62 bl 8004dec LCD_WR_DATA(Ypos>>8); 8005528: 88bb ldrh r3, [r7, #4] 800552a: 0a1b lsrs r3, r3, #8 800552c: b29b uxth r3, r3 800552e: 4618 mov r0, r3 8005530: f7ff fc6a bl 8004e08 LCD_WR_DATA(Ypos&0XFF); 8005534: 88bb ldrh r3, [r7, #4] 8005536: b2db uxtb r3, r3 8005538: b29b uxth r3, r3 800553a: 4618 mov r0, r3 800553c: f7ff fc64 bl 8004e08 { if(lcddev.dir==1)Xpos=lcddev.width-1-Xpos;//ºáÆÁÆäʵ¾ÍÊǵ÷תx,y×ø±ê LCD_WriteReg(lcddev.setxcmd, Xpos); LCD_WriteReg(lcddev.setycmd, Ypos); } } 8005540: e050 b.n 80055e4 }else if(lcddev.id==0X6804) 8005542: 4b2a ldr r3, [pc, #168] ; (80055ec ) 8005544: 889b ldrh r3, [r3, #4] 8005546: f646 0204 movw r2, #26628 ; 0x6804 800554a: 4293 cmp r3, r2 800554c: d12f bne.n 80055ae if(lcddev.dir==1)Xpos=lcddev.width-1-Xpos;//ºáÆÁʱ´¦Àí 800554e: 4b27 ldr r3, [pc, #156] ; (80055ec ) 8005550: 799b ldrb r3, [r3, #6] 8005552: 2b01 cmp r3, #1 8005554: d106 bne.n 8005564 8005556: 4b25 ldr r3, [pc, #148] ; (80055ec ) 8005558: 881a ldrh r2, [r3, #0] 800555a: 88fb ldrh r3, [r7, #6] 800555c: 1ad3 subs r3, r2, r3 800555e: b29b uxth r3, r3 8005560: 3b01 subs r3, #1 8005562: 80fb strh r3, [r7, #6] LCD_WR_REG(lcddev.setxcmd); 8005564: 4b21 ldr r3, [pc, #132] ; (80055ec ) 8005566: 7a1b ldrb r3, [r3, #8] 8005568: b29b uxth r3, r3 800556a: 4618 mov r0, r3 800556c: f7ff fc3e bl 8004dec LCD_WR_DATA(Xpos>>8); 8005570: 88fb ldrh r3, [r7, #6] 8005572: 0a1b lsrs r3, r3, #8 8005574: b29b uxth r3, r3 8005576: 4618 mov r0, r3 8005578: f7ff fc46 bl 8004e08 LCD_WR_DATA(Xpos&0XFF); 800557c: 88fb ldrh r3, [r7, #6] 800557e: b2db uxtb r3, r3 8005580: b29b uxth r3, r3 8005582: 4618 mov r0, r3 8005584: f7ff fc40 bl 8004e08 LCD_WR_REG(lcddev.setycmd); 8005588: 4b18 ldr r3, [pc, #96] ; (80055ec ) 800558a: 7a5b ldrb r3, [r3, #9] 800558c: b29b uxth r3, r3 800558e: 4618 mov r0, r3 8005590: f7ff fc2c bl 8004dec LCD_WR_DATA(Ypos>>8); 8005594: 88bb ldrh r3, [r7, #4] 8005596: 0a1b lsrs r3, r3, #8 8005598: b29b uxth r3, r3 800559a: 4618 mov r0, r3 800559c: f7ff fc34 bl 8004e08 LCD_WR_DATA(Ypos&0XFF); 80055a0: 88bb ldrh r3, [r7, #4] 80055a2: b2db uxtb r3, r3 80055a4: b29b uxth r3, r3 80055a6: 4618 mov r0, r3 80055a8: f7ff fc2e bl 8004e08 } 80055ac: e01a b.n 80055e4 if(lcddev.dir==1)Xpos=lcddev.width-1-Xpos;//ºáÆÁÆäʵ¾ÍÊǵ÷תx,y×ø±ê 80055ae: 4b0f ldr r3, [pc, #60] ; (80055ec ) 80055b0: 799b ldrb r3, [r3, #6] 80055b2: 2b01 cmp r3, #1 80055b4: d106 bne.n 80055c4 80055b6: 4b0d ldr r3, [pc, #52] ; (80055ec ) 80055b8: 881a ldrh r2, [r3, #0] 80055ba: 88fb ldrh r3, [r7, #6] 80055bc: 1ad3 subs r3, r2, r3 80055be: b29b uxth r3, r3 80055c0: 3b01 subs r3, #1 80055c2: 80fb strh r3, [r7, #6] LCD_WriteReg(lcddev.setxcmd, Xpos); 80055c4: 4b09 ldr r3, [pc, #36] ; (80055ec ) 80055c6: 7a1b ldrb r3, [r3, #8] 80055c8: b29b uxth r3, r3 80055ca: 88fa ldrh r2, [r7, #6] 80055cc: 4611 mov r1, r2 80055ce: 4618 mov r0, r3 80055d0: f7ff fc2a bl 8004e28 LCD_WriteReg(lcddev.setycmd, Ypos); 80055d4: 4b05 ldr r3, [pc, #20] ; (80055ec ) 80055d6: 7a5b ldrb r3, [r3, #9] 80055d8: b29b uxth r3, r3 80055da: 88ba ldrh r2, [r7, #4] 80055dc: 4611 mov r1, r2 80055de: 4618 mov r0, r3 80055e0: f7ff fc22 bl 8004e28 } 80055e4: bf00 nop 80055e6: 3708 adds r7, #8 80055e8: 46bd mov sp, r7 80055ea: bd80 pop {r7, pc} 80055ec: 20000380 .word 0x20000380 080055f0 : } //»­µã //x,y:×ø±ê //POINT_COLOR:´ËµãµÄÑÕÉ« void LCD_set_dot(uint16_t x,uint16_t y,uint16_t color) { 80055f0: b580 push {r7, lr} 80055f2: b082 sub sp, #8 80055f4: af00 add r7, sp, #0 80055f6: 4603 mov r3, r0 80055f8: 80fb strh r3, [r7, #6] 80055fa: 460b mov r3, r1 80055fc: 80bb strh r3, [r7, #4] 80055fe: 4613 mov r3, r2 8005600: 807b strh r3, [r7, #2] LCD_SetCursor(x,y); //ÉèÖùâ±êλÖà 8005602: 88ba ldrh r2, [r7, #4] 8005604: 88fb ldrh r3, [r7, #6] 8005606: 4611 mov r1, r2 8005608: 4618 mov r0, r3 800560a: f7ff ff61 bl 80054d0 LCD_REG_ADDRESS=lcddev.wramcmd; //¿ªÊ¼Ð´ÈëGRAM 800560e: 4b06 ldr r3, [pc, #24] ; (8005628 ) 8005610: 79da ldrb r2, [r3, #7] 8005612: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 8005616: b292 uxth r2, r2 8005618: 801a strh r2, [r3, #0] LCD_DATA_ADDRESS=color; 800561a: 4a04 ldr r2, [pc, #16] ; (800562c ) 800561c: 887b ldrh r3, [r7, #2] 800561e: 8013 strh r3, [r2, #0] } 8005620: bf00 nop 8005622: 3708 adds r7, #8 8005624: 46bd mov sp, r7 8005626: bd80 pop {r7, pc} 8005628: 20000380 .word 0x20000380 800562c: 6c000800 .word 0x6c000800 08005630 : //ÇåÆÁº¯Êý //color:ÒªÇåÆÁµÄÌî³äÉ« void LCD_Clear(uint16_t color) { 8005630: b580 push {r7, lr} 8005632: b084 sub sp, #16 8005634: af00 add r7, sp, #0 8005636: 4603 mov r3, r0 8005638: 80fb strh r3, [r7, #6] uint32_t index=0; 800563a: 2300 movs r3, #0 800563c: 60fb str r3, [r7, #12] uint32_t totalpoint=lcddev.width; 800563e: 4b23 ldr r3, [pc, #140] ; (80056cc ) 8005640: 881b ldrh r3, [r3, #0] 8005642: 60bb str r3, [r7, #8] totalpoint*=lcddev.height; //µÃµ½×ܵãÊý 8005644: 4b21 ldr r3, [pc, #132] ; (80056cc ) 8005646: 885b ldrh r3, [r3, #2] 8005648: 461a mov r2, r3 800564a: 68bb ldr r3, [r7, #8] 800564c: fb02 f303 mul.w r3, r2, r3 8005650: 60bb str r3, [r7, #8] if((lcddev.id==0X6804)&&(lcddev.dir==1))//6804ºáÆÁµÄʱºòÌØÊâ´¦Àí 8005652: 4b1e ldr r3, [pc, #120] ; (80056cc ) 8005654: 889b ldrh r3, [r3, #4] 8005656: f646 0204 movw r2, #26628 ; 0x6804 800565a: 4293 cmp r3, r2 800565c: d11a bne.n 8005694 800565e: 4b1b ldr r3, [pc, #108] ; (80056cc ) 8005660: 799b ldrb r3, [r3, #6] 8005662: 2b01 cmp r3, #1 8005664: d116 bne.n 8005694 { lcddev.dir=0; 8005666: 4b19 ldr r3, [pc, #100] ; (80056cc ) 8005668: 2200 movs r2, #0 800566a: 719a strb r2, [r3, #6] lcddev.setxcmd=0X2A; 800566c: 4b17 ldr r3, [pc, #92] ; (80056cc ) 800566e: 222a movs r2, #42 ; 0x2a 8005670: 721a strb r2, [r3, #8] lcddev.setycmd=0X2B; 8005672: 4b16 ldr r3, [pc, #88] ; (80056cc ) 8005674: 222b movs r2, #43 ; 0x2b 8005676: 725a strb r2, [r3, #9] LCD_SetCursor(0x00,0x0000); //ÉèÖùâ±êλÖà 8005678: 2100 movs r1, #0 800567a: 2000 movs r0, #0 800567c: f7ff ff28 bl 80054d0 lcddev.dir=1; 8005680: 4b12 ldr r3, [pc, #72] ; (80056cc ) 8005682: 2201 movs r2, #1 8005684: 719a strb r2, [r3, #6] lcddev.setxcmd=0X2B; 8005686: 4b11 ldr r3, [pc, #68] ; (80056cc ) 8005688: 222b movs r2, #43 ; 0x2b 800568a: 721a strb r2, [r3, #8] lcddev.setycmd=0X2A; 800568c: 4b0f ldr r3, [pc, #60] ; (80056cc ) 800568e: 222a movs r2, #42 ; 0x2a 8005690: 725a strb r2, [r3, #9] 8005692: e003 b.n 800569c }else LCD_SetCursor(0x00,0x0000); //ÉèÖùâ±êλÖà 8005694: 2100 movs r1, #0 8005696: 2000 movs r0, #0 8005698: f7ff ff1a bl 80054d0 LCD_REG_ADDRESS=lcddev.wramcmd; //¿ªÊ¼Ð´ÈëGRAM 800569c: 4b0b ldr r3, [pc, #44] ; (80056cc ) 800569e: 79da ldrb r2, [r3, #7] 80056a0: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 80056a4: b292 uxth r2, r2 80056a6: 801a strh r2, [r3, #0] for(index=0;index { LCD_DATA_ADDRESS=color; 80056ae: 4a08 ldr r2, [pc, #32] ; (80056d0 ) 80056b0: 88fb ldrh r3, [r7, #6] 80056b2: 8013 strh r3, [r2, #0] for(index=0;index } } 80056c2: bf00 nop 80056c4: bf00 nop 80056c6: 3710 adds r7, #16 80056c8: 46bd mov sp, r7 80056ca: bd80 pop {r7, pc} 80056cc: 20000380 .word 0x20000380 80056d0: 6c000800 .word 0x6c000800 080056d4 : //ÔÚÖ¸¶¨ÇøÓòÄÚÌî³äµ¥¸öÑÕÉ« //(sx,sy),(ex,ey):Ìî³ä¾ØÐζԽÇ×ø±ê,ÇøÓò´óСΪ:(ex-sx+1)*(ey-sy+1) //color:ÒªÌî³äµÄÑÕÉ« void LCD_Fill(uint16_t sx,uint16_t sy,uint16_t ex,uint16_t ey,uint16_t color) { 80056d4: b590 push {r4, r7, lr} 80056d6: b087 sub sp, #28 80056d8: af02 add r7, sp, #8 80056da: 4604 mov r4, r0 80056dc: 4608 mov r0, r1 80056de: 4611 mov r1, r2 80056e0: 461a mov r2, r3 80056e2: 4623 mov r3, r4 80056e4: 80fb strh r3, [r7, #6] 80056e6: 4603 mov r3, r0 80056e8: 80bb strh r3, [r7, #4] 80056ea: 460b mov r3, r1 80056ec: 807b strh r3, [r7, #2] 80056ee: 4613 mov r3, r2 80056f0: 803b strh r3, [r7, #0] uint16_t i,j; uint16_t xlen=0; 80056f2: 2300 movs r3, #0 80056f4: 817b strh r3, [r7, #10] uint16_t temp; if((lcddev.id==0X6804)&&(lcddev.dir==1)) //6804ºáÆÁµÄʱºòÌØÊâ´¦Àí 80056f6: 4b34 ldr r3, [pc, #208] ; (80057c8 ) 80056f8: 889b ldrh r3, [r3, #4] 80056fa: f646 0204 movw r2, #26628 ; 0x6804 80056fe: 4293 cmp r3, r2 8005700: d133 bne.n 800576a 8005702: 4b31 ldr r3, [pc, #196] ; (80057c8 ) 8005704: 799b ldrb r3, [r3, #6] 8005706: 2b01 cmp r3, #1 8005708: d12f bne.n 800576a { temp=sx; 800570a: 88fb ldrh r3, [r7, #6] 800570c: 813b strh r3, [r7, #8] sx=sy; 800570e: 88bb ldrh r3, [r7, #4] 8005710: 80fb strh r3, [r7, #6] sy=lcddev.width-ex-1; 8005712: 4b2d ldr r3, [pc, #180] ; (80057c8 ) 8005714: 881a ldrh r2, [r3, #0] 8005716: 887b ldrh r3, [r7, #2] 8005718: 1ad3 subs r3, r2, r3 800571a: b29b uxth r3, r3 800571c: 3b01 subs r3, #1 800571e: 80bb strh r3, [r7, #4] ex=ey; 8005720: 883b ldrh r3, [r7, #0] 8005722: 807b strh r3, [r7, #2] ey=lcddev.width-temp-1; 8005724: 4b28 ldr r3, [pc, #160] ; (80057c8 ) 8005726: 881a ldrh r2, [r3, #0] 8005728: 893b ldrh r3, [r7, #8] 800572a: 1ad3 subs r3, r2, r3 800572c: b29b uxth r3, r3 800572e: 3b01 subs r3, #1 8005730: 803b strh r3, [r7, #0] lcddev.dir=0; 8005732: 4b25 ldr r3, [pc, #148] ; (80057c8 ) 8005734: 2200 movs r2, #0 8005736: 719a strb r2, [r3, #6] lcddev.setxcmd=0X2A; 8005738: 4b23 ldr r3, [pc, #140] ; (80057c8 ) 800573a: 222a movs r2, #42 ; 0x2a 800573c: 721a strb r2, [r3, #8] lcddev.setycmd=0X2B; 800573e: 4b22 ldr r3, [pc, #136] ; (80057c8 ) 8005740: 222b movs r2, #43 ; 0x2b 8005742: 725a strb r2, [r3, #9] LCD_Fill(sx,sy,ex,ey,color); 8005744: 883c ldrh r4, [r7, #0] 8005746: 887a ldrh r2, [r7, #2] 8005748: 88b9 ldrh r1, [r7, #4] 800574a: 88f8 ldrh r0, [r7, #6] 800574c: 8c3b ldrh r3, [r7, #32] 800574e: 9300 str r3, [sp, #0] 8005750: 4623 mov r3, r4 8005752: f7ff ffbf bl 80056d4 lcddev.dir=1; 8005756: 4b1c ldr r3, [pc, #112] ; (80057c8 ) 8005758: 2201 movs r2, #1 800575a: 719a strb r2, [r3, #6] lcddev.setxcmd=0X2B; 800575c: 4b1a ldr r3, [pc, #104] ; (80057c8 ) 800575e: 222b movs r2, #43 ; 0x2b 8005760: 721a strb r2, [r3, #8] lcddev.setycmd=0X2A; 8005762: 4b19 ldr r3, [pc, #100] ; (80057c8 ) 8005764: 222a movs r2, #42 ; 0x2a 8005766: 725a strb r2, [r3, #9] 8005768: e02a b.n 80057c0 }else { xlen=ex-sx+1; 800576a: 887a ldrh r2, [r7, #2] 800576c: 88fb ldrh r3, [r7, #6] 800576e: 1ad3 subs r3, r2, r3 8005770: b29b uxth r3, r3 8005772: 3301 adds r3, #1 8005774: 817b strh r3, [r7, #10] for(i=sy;i<=ey;i++) 8005776: 88bb ldrh r3, [r7, #4] 8005778: 81fb strh r3, [r7, #14] 800577a: e01c b.n 80057b6 { LCD_SetCursor(sx,i); //ÉèÖùâ±êλÖà 800577c: 89fa ldrh r2, [r7, #14] 800577e: 88fb ldrh r3, [r7, #6] 8005780: 4611 mov r1, r2 8005782: 4618 mov r0, r3 8005784: f7ff fea4 bl 80054d0 LCD_REG_ADDRESS=lcddev.wramcmd; //¿ªÊ¼Ð´ÈëGRAM 8005788: 4b0f ldr r3, [pc, #60] ; (80057c8 ) 800578a: 79da ldrb r2, [r3, #7] 800578c: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 8005790: b292 uxth r2, r2 8005792: 801a strh r2, [r3, #0] for(j=0;j 800579a: 8c3b ldrh r3, [r7, #32] 800579c: 4618 mov r0, r3 800579e: f7ff fb33 bl 8004e08 80057a2: 89bb ldrh r3, [r7, #12] 80057a4: 3301 adds r3, #1 80057a6: 81bb strh r3, [r7, #12] 80057a8: 89ba ldrh r2, [r7, #12] 80057aa: 897b ldrh r3, [r7, #10] 80057ac: 429a cmp r2, r3 80057ae: d3f4 bcc.n 800579a for(i=sy;i<=ey;i++) 80057b0: 89fb ldrh r3, [r7, #14] 80057b2: 3301 adds r3, #1 80057b4: 81fb strh r3, [r7, #14] 80057b6: 89fa ldrh r2, [r7, #14] 80057b8: 883b ldrh r3, [r7, #0] 80057ba: 429a cmp r2, r3 80057bc: d9de bls.n 800577c } } } 80057be: bf00 nop 80057c0: bf00 nop 80057c2: 3714 adds r7, #20 80057c4: 46bd mov sp, r7 80057c6: bd90 pop {r4, r7, pc} 80057c8: 20000380 .word 0x20000380 080057cc : //***********************************2D //»­Ïß //x1,y1:Æðµã×ø±ê //x2,y2:ÖÕµã×ø±ê void LCD_DrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2,uint16_t color) { 80057cc: b590 push {r4, r7, lr} 80057ce: b08d sub sp, #52 ; 0x34 80057d0: af00 add r7, sp, #0 80057d2: 4604 mov r4, r0 80057d4: 4608 mov r0, r1 80057d6: 4611 mov r1, r2 80057d8: 461a mov r2, r3 80057da: 4623 mov r3, r4 80057dc: 80fb strh r3, [r7, #6] 80057de: 4603 mov r3, r0 80057e0: 80bb strh r3, [r7, #4] 80057e2: 460b mov r3, r1 80057e4: 807b strh r3, [r7, #2] 80057e6: 4613 mov r3, r2 80057e8: 803b strh r3, [r7, #0] uint16_t t; int xerr=0,yerr=0,delta_x,delta_y,distance; 80057ea: 2300 movs r3, #0 80057ec: 62bb str r3, [r7, #40] ; 0x28 80057ee: 2300 movs r3, #0 80057f0: 627b str r3, [r7, #36] ; 0x24 int incx,incy,uRow,uCol; delta_x=x2-x1; //¼ÆËã×ø±êÔöÁ¿ 80057f2: 887a ldrh r2, [r7, #2] 80057f4: 88fb ldrh r3, [r7, #6] 80057f6: 1ad3 subs r3, r2, r3 80057f8: 623b str r3, [r7, #32] delta_y=y2-y1; 80057fa: 883a ldrh r2, [r7, #0] 80057fc: 88bb ldrh r3, [r7, #4] 80057fe: 1ad3 subs r3, r2, r3 8005800: 61fb str r3, [r7, #28] uRow=x1; 8005802: 88fb ldrh r3, [r7, #6] 8005804: 60fb str r3, [r7, #12] uCol=y1; 8005806: 88bb ldrh r3, [r7, #4] 8005808: 60bb str r3, [r7, #8] if(delta_x>0)incx=1; //ÉèÖõ¥²½·½Ïò 800580a: 6a3b ldr r3, [r7, #32] 800580c: 2b00 cmp r3, #0 800580e: dd02 ble.n 8005816 8005810: 2301 movs r3, #1 8005812: 617b str r3, [r7, #20] 8005814: e00b b.n 800582e else if(delta_x==0)incx=0;//´¹Ö±Ïß 8005816: 6a3b ldr r3, [r7, #32] 8005818: 2b00 cmp r3, #0 800581a: d102 bne.n 8005822 800581c: 2300 movs r3, #0 800581e: 617b str r3, [r7, #20] 8005820: e005 b.n 800582e else {incx=-1;delta_x=-delta_x;} 8005822: f04f 33ff mov.w r3, #4294967295 8005826: 617b str r3, [r7, #20] 8005828: 6a3b ldr r3, [r7, #32] 800582a: 425b negs r3, r3 800582c: 623b str r3, [r7, #32] if(delta_y>0)incy=1; 800582e: 69fb ldr r3, [r7, #28] 8005830: 2b00 cmp r3, #0 8005832: dd02 ble.n 800583a 8005834: 2301 movs r3, #1 8005836: 613b str r3, [r7, #16] 8005838: e00b b.n 8005852 else if(delta_y==0)incy=0;//ˮƽÏß 800583a: 69fb ldr r3, [r7, #28] 800583c: 2b00 cmp r3, #0 800583e: d102 bne.n 8005846 8005840: 2300 movs r3, #0 8005842: 613b str r3, [r7, #16] 8005844: e005 b.n 8005852 else{incy=-1;delta_y=-delta_y;} 8005846: f04f 33ff mov.w r3, #4294967295 800584a: 613b str r3, [r7, #16] 800584c: 69fb ldr r3, [r7, #28] 800584e: 425b negs r3, r3 8005850: 61fb str r3, [r7, #28] if( delta_x>delta_y)distance=delta_x; //ѡȡ»ù±¾ÔöÁ¿×ø±êÖá 8005852: 6a3a ldr r2, [r7, #32] 8005854: 69fb ldr r3, [r7, #28] 8005856: 429a cmp r2, r3 8005858: dd02 ble.n 8005860 800585a: 6a3b ldr r3, [r7, #32] 800585c: 61bb str r3, [r7, #24] 800585e: e001 b.n 8005864 else distance=delta_y; 8005860: 69fb ldr r3, [r7, #28] 8005862: 61bb str r3, [r7, #24] for(t=0;t<=distance+1;t++ )//»­ÏßÊä³ö 8005864: 2300 movs r3, #0 8005866: 85fb strh r3, [r7, #46] ; 0x2e 8005868: e02b b.n 80058c2 { LCD_set_dot(uRow,uCol,color);//»­µã 800586a: 68fb ldr r3, [r7, #12] 800586c: b29b uxth r3, r3 800586e: 68ba ldr r2, [r7, #8] 8005870: b291 uxth r1, r2 8005872: f8b7 2040 ldrh.w r2, [r7, #64] ; 0x40 8005876: 4618 mov r0, r3 8005878: f7ff feba bl 80055f0 xerr+=delta_x ; 800587c: 6aba ldr r2, [r7, #40] ; 0x28 800587e: 6a3b ldr r3, [r7, #32] 8005880: 4413 add r3, r2 8005882: 62bb str r3, [r7, #40] ; 0x28 yerr+=delta_y ; 8005884: 6a7a ldr r2, [r7, #36] ; 0x24 8005886: 69fb ldr r3, [r7, #28] 8005888: 4413 add r3, r2 800588a: 627b str r3, [r7, #36] ; 0x24 if(xerr>distance) 800588c: 6aba ldr r2, [r7, #40] ; 0x28 800588e: 69bb ldr r3, [r7, #24] 8005890: 429a cmp r2, r3 8005892: dd07 ble.n 80058a4 { xerr-=distance; 8005894: 6aba ldr r2, [r7, #40] ; 0x28 8005896: 69bb ldr r3, [r7, #24] 8005898: 1ad3 subs r3, r2, r3 800589a: 62bb str r3, [r7, #40] ; 0x28 uRow+=incx; 800589c: 68fa ldr r2, [r7, #12] 800589e: 697b ldr r3, [r7, #20] 80058a0: 4413 add r3, r2 80058a2: 60fb str r3, [r7, #12] } if(yerr>distance) 80058a4: 6a7a ldr r2, [r7, #36] ; 0x24 80058a6: 69bb ldr r3, [r7, #24] 80058a8: 429a cmp r2, r3 80058aa: dd07 ble.n 80058bc { yerr-=distance; 80058ac: 6a7a ldr r2, [r7, #36] ; 0x24 80058ae: 69bb ldr r3, [r7, #24] 80058b0: 1ad3 subs r3, r2, r3 80058b2: 627b str r3, [r7, #36] ; 0x24 uCol+=incy; 80058b4: 68ba ldr r2, [r7, #8] 80058b6: 693b ldr r3, [r7, #16] 80058b8: 4413 add r3, r2 80058ba: 60bb str r3, [r7, #8] for(t=0;t<=distance+1;t++ )//»­ÏßÊä³ö 80058bc: 8dfb ldrh r3, [r7, #46] ; 0x2e 80058be: 3301 adds r3, #1 80058c0: 85fb strh r3, [r7, #46] ; 0x2e 80058c2: 8dfa ldrh r2, [r7, #46] ; 0x2e 80058c4: 69bb ldr r3, [r7, #24] 80058c6: 3301 adds r3, #1 80058c8: 429a cmp r2, r3 80058ca: ddce ble.n 800586a } } } 80058cc: bf00 nop 80058ce: bf00 nop 80058d0: 3734 adds r7, #52 ; 0x34 80058d2: 46bd mov sp, r7 80058d4: bd90 pop {r4, r7, pc} 080058d6 : //ÔÚÖ¸¶¨Î»Öû­Ò»¸öÖ¸¶¨´óСµÄÔ² //(x,y):ÖÐÐĵã //r :°ë¾¶ void Draw_Circle(uint16_t x0,uint16_t y0,uint16_t r,uint16_t color) { 80058d6: b590 push {r4, r7, lr} 80058d8: b087 sub sp, #28 80058da: af00 add r7, sp, #0 80058dc: 4604 mov r4, r0 80058de: 4608 mov r0, r1 80058e0: 4611 mov r1, r2 80058e2: 461a mov r2, r3 80058e4: 4623 mov r3, r4 80058e6: 80fb strh r3, [r7, #6] 80058e8: 4603 mov r3, r0 80058ea: 80bb strh r3, [r7, #4] 80058ec: 460b mov r3, r1 80058ee: 807b strh r3, [r7, #2] 80058f0: 4613 mov r3, r2 80058f2: 803b strh r3, [r7, #0] int a,b; int di; a=0;b=r; 80058f4: 2300 movs r3, #0 80058f6: 617b str r3, [r7, #20] 80058f8: 887b ldrh r3, [r7, #2] 80058fa: 613b str r3, [r7, #16] di=3-(r<<1); //ÅжÏϸöµãλÖõıêÖ¾ 80058fc: 887b ldrh r3, [r7, #2] 80058fe: 005b lsls r3, r3, #1 8005900: f1c3 0303 rsb r3, r3, #3 8005904: 60fb str r3, [r7, #12] while(a<=b) 8005906: e087 b.n 8005a18 { LCD_set_dot(x0+a,y0-b,color); //5 8005908: 697b ldr r3, [r7, #20] 800590a: b29a uxth r2, r3 800590c: 88fb ldrh r3, [r7, #6] 800590e: 4413 add r3, r2 8005910: b298 uxth r0, r3 8005912: 693b ldr r3, [r7, #16] 8005914: b29b uxth r3, r3 8005916: 88ba ldrh r2, [r7, #4] 8005918: 1ad3 subs r3, r2, r3 800591a: b29b uxth r3, r3 800591c: 883a ldrh r2, [r7, #0] 800591e: 4619 mov r1, r3 8005920: f7ff fe66 bl 80055f0 LCD_set_dot(x0+b,y0-a,color); //0 8005924: 693b ldr r3, [r7, #16] 8005926: b29a uxth r2, r3 8005928: 88fb ldrh r3, [r7, #6] 800592a: 4413 add r3, r2 800592c: b298 uxth r0, r3 800592e: 697b ldr r3, [r7, #20] 8005930: b29b uxth r3, r3 8005932: 88ba ldrh r2, [r7, #4] 8005934: 1ad3 subs r3, r2, r3 8005936: b29b uxth r3, r3 8005938: 883a ldrh r2, [r7, #0] 800593a: 4619 mov r1, r3 800593c: f7ff fe58 bl 80055f0 LCD_set_dot(x0+b,y0+a,color); //4 8005940: 693b ldr r3, [r7, #16] 8005942: b29a uxth r2, r3 8005944: 88fb ldrh r3, [r7, #6] 8005946: 4413 add r3, r2 8005948: b298 uxth r0, r3 800594a: 697b ldr r3, [r7, #20] 800594c: b29a uxth r2, r3 800594e: 88bb ldrh r3, [r7, #4] 8005950: 4413 add r3, r2 8005952: b29b uxth r3, r3 8005954: 883a ldrh r2, [r7, #0] 8005956: 4619 mov r1, r3 8005958: f7ff fe4a bl 80055f0 LCD_set_dot(x0+a,y0+b,color); //6 800595c: 697b ldr r3, [r7, #20] 800595e: b29a uxth r2, r3 8005960: 88fb ldrh r3, [r7, #6] 8005962: 4413 add r3, r2 8005964: b298 uxth r0, r3 8005966: 693b ldr r3, [r7, #16] 8005968: b29a uxth r2, r3 800596a: 88bb ldrh r3, [r7, #4] 800596c: 4413 add r3, r2 800596e: b29b uxth r3, r3 8005970: 883a ldrh r2, [r7, #0] 8005972: 4619 mov r1, r3 8005974: f7ff fe3c bl 80055f0 LCD_set_dot(x0-a,y0+b,color); //1 8005978: 697b ldr r3, [r7, #20] 800597a: b29b uxth r3, r3 800597c: 88fa ldrh r2, [r7, #6] 800597e: 1ad3 subs r3, r2, r3 8005980: b298 uxth r0, r3 8005982: 693b ldr r3, [r7, #16] 8005984: b29a uxth r2, r3 8005986: 88bb ldrh r3, [r7, #4] 8005988: 4413 add r3, r2 800598a: b29b uxth r3, r3 800598c: 883a ldrh r2, [r7, #0] 800598e: 4619 mov r1, r3 8005990: f7ff fe2e bl 80055f0 LCD_set_dot(x0-b,y0+a,color); 8005994: 693b ldr r3, [r7, #16] 8005996: b29b uxth r3, r3 8005998: 88fa ldrh r2, [r7, #6] 800599a: 1ad3 subs r3, r2, r3 800599c: b298 uxth r0, r3 800599e: 697b ldr r3, [r7, #20] 80059a0: b29a uxth r2, r3 80059a2: 88bb ldrh r3, [r7, #4] 80059a4: 4413 add r3, r2 80059a6: b29b uxth r3, r3 80059a8: 883a ldrh r2, [r7, #0] 80059aa: 4619 mov r1, r3 80059ac: f7ff fe20 bl 80055f0 LCD_set_dot(x0-a,y0-b,color); //2 80059b0: 697b ldr r3, [r7, #20] 80059b2: b29b uxth r3, r3 80059b4: 88fa ldrh r2, [r7, #6] 80059b6: 1ad3 subs r3, r2, r3 80059b8: b298 uxth r0, r3 80059ba: 693b ldr r3, [r7, #16] 80059bc: b29b uxth r3, r3 80059be: 88ba ldrh r2, [r7, #4] 80059c0: 1ad3 subs r3, r2, r3 80059c2: b29b uxth r3, r3 80059c4: 883a ldrh r2, [r7, #0] 80059c6: 4619 mov r1, r3 80059c8: f7ff fe12 bl 80055f0 LCD_set_dot(x0-b,y0-a,color); //7 80059cc: 693b ldr r3, [r7, #16] 80059ce: b29b uxth r3, r3 80059d0: 88fa ldrh r2, [r7, #6] 80059d2: 1ad3 subs r3, r2, r3 80059d4: b298 uxth r0, r3 80059d6: 697b ldr r3, [r7, #20] 80059d8: b29b uxth r3, r3 80059da: 88ba ldrh r2, [r7, #4] 80059dc: 1ad3 subs r3, r2, r3 80059de: b29b uxth r3, r3 80059e0: 883a ldrh r2, [r7, #0] 80059e2: 4619 mov r1, r3 80059e4: f7ff fe04 bl 80055f0 a++; 80059e8: 697b ldr r3, [r7, #20] 80059ea: 3301 adds r3, #1 80059ec: 617b str r3, [r7, #20] //ʹÓÃBresenhamËã·¨»­Ô² if(di<0)di +=4*a+6; 80059ee: 68fb ldr r3, [r7, #12] 80059f0: 2b00 cmp r3, #0 80059f2: da06 bge.n 8005a02 80059f4: 697b ldr r3, [r7, #20] 80059f6: 009b lsls r3, r3, #2 80059f8: 3306 adds r3, #6 80059fa: 68fa ldr r2, [r7, #12] 80059fc: 4413 add r3, r2 80059fe: 60fb str r3, [r7, #12] 8005a00: e00a b.n 8005a18 else { di+=10+4*(a-b); 8005a02: 697a ldr r2, [r7, #20] 8005a04: 693b ldr r3, [r7, #16] 8005a06: 1ad3 subs r3, r2, r3 8005a08: 009b lsls r3, r3, #2 8005a0a: 330a adds r3, #10 8005a0c: 68fa ldr r2, [r7, #12] 8005a0e: 4413 add r3, r2 8005a10: 60fb str r3, [r7, #12] b--; 8005a12: 693b ldr r3, [r7, #16] 8005a14: 3b01 subs r3, #1 8005a16: 613b str r3, [r7, #16] while(a<=b) 8005a18: 697a ldr r2, [r7, #20] 8005a1a: 693b ldr r3, [r7, #16] 8005a1c: 429a cmp r2, r3 8005a1e: f77f af73 ble.w 8005908 } } } 8005a22: bf00 nop 8005a24: bf00 nop 8005a26: 371c adds r7, #28 8005a28: 46bd mov sp, r7 8005a2a: bd90 pop {r4, r7, pc} 08005a2c : //num:ÒªÏÔʾµÄ×Ö·û:" "--->"~" //size:×ÖÌå´óС 12/16 //mode:µþ¼Ó·½Ê½(1)»¹ÊǷǵþ¼Ó·½Ê½(0) void LCD_ShowChar(uint16_t x,uint16_t y,uint8_t num,uint8_t size,uint16_t bg,uint16_t color) { 8005a2c: b590 push {r4, r7, lr} 8005a2e: b085 sub sp, #20 8005a30: af00 add r7, sp, #0 8005a32: 4604 mov r4, r0 8005a34: 4608 mov r0, r1 8005a36: 4611 mov r1, r2 8005a38: 461a mov r2, r3 8005a3a: 4623 mov r3, r4 8005a3c: 80fb strh r3, [r7, #6] 8005a3e: 4603 mov r3, r0 8005a40: 80bb strh r3, [r7, #4] 8005a42: 460b mov r3, r1 8005a44: 70fb strb r3, [r7, #3] 8005a46: 4613 mov r3, r2 8005a48: 70bb strb r3, [r7, #2] uint8_t temp,t1,t; uint16_t y0=y; 8005a4a: 88bb ldrh r3, [r7, #4] 8005a4c: 817b strh r3, [r7, #10] //ÉèÖô°¿Ú num=num-' ';//µÃµ½Æ«ÒƺóµÄÖµ 8005a4e: 78fb ldrb r3, [r7, #3] 8005a50: 3b20 subs r3, #32 8005a52: 70fb strb r3, [r7, #3] for(t=0;t { if(size==12){temp=asc2_1206[num][t];} //µ÷ÓÃ1206×ÖÌå 8005a5a: 78bb ldrb r3, [r7, #2] 8005a5c: 2b0c cmp r3, #12 8005a5e: d10b bne.n 8005a78 8005a60: 78fa ldrb r2, [r7, #3] 8005a62: 7b79 ldrb r1, [r7, #13] 8005a64: 482c ldr r0, [pc, #176] ; (8005b18 ) 8005a66: 4613 mov r3, r2 8005a68: 005b lsls r3, r3, #1 8005a6a: 4413 add r3, r2 8005a6c: 009b lsls r3, r3, #2 8005a6e: 4403 add r3, r0 8005a70: 440b add r3, r1 8005a72: 781b ldrb r3, [r3, #0] 8005a74: 73fb strb r3, [r7, #15] 8005a76: e007 b.n 8005a88 else{ temp=asc2_1608[num][t]; } //µ÷ÓÃ1608×ÖÌå 8005a78: 78fa ldrb r2, [r7, #3] 8005a7a: 7b7b ldrb r3, [r7, #13] 8005a7c: 4927 ldr r1, [pc, #156] ; (8005b1c ) 8005a7e: 0112 lsls r2, r2, #4 8005a80: 440a add r2, r1 8005a82: 4413 add r3, r2 8005a84: 781b ldrb r3, [r3, #0] 8005a86: 73fb strb r3, [r7, #15] for(t1=0;t1<8;t1++) 8005a88: 2300 movs r3, #0 8005a8a: 73bb strb r3, [r7, #14] 8005a8c: e033 b.n 8005af6 { if(temp&0x80){LCD_set_dot(x,y,color);}else{if(bg!=color){LCD_set_dot(x,y,bg);}} 8005a8e: f997 300f ldrsb.w r3, [r7, #15] 8005a92: 2b00 cmp r3, #0 8005a94: da06 bge.n 8005aa4 8005a96: 8cba ldrh r2, [r7, #36] ; 0x24 8005a98: 88b9 ldrh r1, [r7, #4] 8005a9a: 88fb ldrh r3, [r7, #6] 8005a9c: 4618 mov r0, r3 8005a9e: f7ff fda7 bl 80055f0 8005aa2: e009 b.n 8005ab8 8005aa4: 8c3a ldrh r2, [r7, #32] 8005aa6: 8cbb ldrh r3, [r7, #36] ; 0x24 8005aa8: 429a cmp r2, r3 8005aaa: d005 beq.n 8005ab8 8005aac: 8c3a ldrh r2, [r7, #32] 8005aae: 88b9 ldrh r1, [r7, #4] 8005ab0: 88fb ldrh r3, [r7, #6] 8005ab2: 4618 mov r0, r3 8005ab4: f7ff fd9c bl 80055f0 temp<<=1; 8005ab8: 7bfb ldrb r3, [r7, #15] 8005aba: 005b lsls r3, r3, #1 8005abc: 73fb strb r3, [r7, #15] y++; 8005abe: 88bb ldrh r3, [r7, #4] 8005ac0: 3301 adds r3, #1 8005ac2: 80bb strh r3, [r7, #4] if(x>=lcddev.width){return;}//³¬ÇøÓòÁË 8005ac4: 4b16 ldr r3, [pc, #88] ; (8005b20 ) 8005ac6: 881b ldrh r3, [r3, #0] 8005ac8: 88fa ldrh r2, [r7, #6] 8005aca: 429a cmp r2, r3 8005acc: d220 bcs.n 8005b10 if((y-y0)==size) 8005ace: 88ba ldrh r2, [r7, #4] 8005ad0: 897b ldrh r3, [r7, #10] 8005ad2: 1ad2 subs r2, r2, r3 8005ad4: 78bb ldrb r3, [r7, #2] 8005ad6: 429a cmp r2, r3 8005ad8: d10a bne.n 8005af0 { y=y0; 8005ada: 897b ldrh r3, [r7, #10] 8005adc: 80bb strh r3, [r7, #4] x++; 8005ade: 88fb ldrh r3, [r7, #6] 8005ae0: 3301 adds r3, #1 8005ae2: 80fb strh r3, [r7, #6] if(x>=lcddev.width){return;}//³¬ÇøÓòÁË 8005ae4: 4b0e ldr r3, [pc, #56] ; (8005b20 ) 8005ae6: 881b ldrh r3, [r3, #0] 8005ae8: 88fa ldrh r2, [r7, #6] 8005aea: 429a cmp r2, r3 8005aec: d307 bcc.n 8005afe 8005aee: e010 b.n 8005b12 for(t1=0;t1<8;t1++) 8005af0: 7bbb ldrb r3, [r7, #14] 8005af2: 3301 adds r3, #1 8005af4: 73bb strb r3, [r7, #14] 8005af6: 7bbb ldrb r3, [r7, #14] 8005af8: 2b07 cmp r3, #7 8005afa: d9c8 bls.n 8005a8e 8005afc: e000 b.n 8005b00 break; 8005afe: bf00 nop for(t=0;t 8005b0e: e000 b.n 8005b12 if(x>=lcddev.width){return;}//³¬ÇøÓòÁË 8005b10: bf00 nop } } } 8005b12: 3714 adds r7, #20 8005b14: 46bd mov sp, r7 8005b16: bd90 pop {r4, r7, pc} 8005b18: 0800a98c .word 0x0800a98c 8005b1c: 0800ae00 .word 0x0800ae00 8005b20: 20000380 .word 0x20000380 08005b24 : //width,height:ÇøÓò´óС //size:×ÖÌå´óС //*p:×Ö·û´®ÆðʼµØÖ· void LCD_ShowString(uint16_t x,uint16_t y,uint8_t *p,uint8_t size,uint16_t bg,uint16_t color) { 8005b24: b590 push {r4, r7, lr} 8005b26: b087 sub sp, #28 8005b28: af02 add r7, sp, #8 8005b2a: 60ba str r2, [r7, #8] 8005b2c: 461a mov r2, r3 8005b2e: 4603 mov r3, r0 8005b30: 81fb strh r3, [r7, #14] 8005b32: 460b mov r3, r1 8005b34: 81bb strh r3, [r7, #12] 8005b36: 4613 mov r3, r2 8005b38: 71fb strb r3, [r7, #7] while(*p!='\0') 8005b3a: e026 b.n 8005b8a { if(x>=lcddev.width||*p=='\n') 8005b3c: 4b17 ldr r3, [pc, #92] ; (8005b9c ) 8005b3e: 881b ldrh r3, [r3, #0] 8005b40: 89fa ldrh r2, [r7, #14] 8005b42: 429a cmp r2, r3 8005b44: d203 bcs.n 8005b4e 8005b46: 68bb ldr r3, [r7, #8] 8005b48: 781b ldrb r3, [r3, #0] 8005b4a: 2b0a cmp r3, #10 8005b4c: d107 bne.n 8005b5e { x=0; 8005b4e: 2300 movs r3, #0 8005b50: 81fb strh r3, [r7, #14] y+=size; 8005b52: 79fb ldrb r3, [r7, #7] 8005b54: b29a uxth r2, r3 8005b56: 89bb ldrh r3, [r7, #12] 8005b58: 4413 add r3, r2 8005b5a: 81bb strh r3, [r7, #12] 8005b5c: e012 b.n 8005b84 }else { LCD_ShowChar(x,y,*p,size,bg,color); 8005b5e: 68bb ldr r3, [r7, #8] 8005b60: 781a ldrb r2, [r3, #0] 8005b62: 79fc ldrb r4, [r7, #7] 8005b64: 89b9 ldrh r1, [r7, #12] 8005b66: 89f8 ldrh r0, [r7, #14] 8005b68: 8cbb ldrh r3, [r7, #36] ; 0x24 8005b6a: 9301 str r3, [sp, #4] 8005b6c: 8c3b ldrh r3, [r7, #32] 8005b6e: 9300 str r3, [sp, #0] 8005b70: 4623 mov r3, r4 8005b72: f7ff ff5b bl 8005a2c x+=(size/2); 8005b76: 79fb ldrb r3, [r7, #7] 8005b78: 085b lsrs r3, r3, #1 8005b7a: b2db uxtb r3, r3 8005b7c: b29a uxth r2, r3 8005b7e: 89fb ldrh r3, [r7, #14] 8005b80: 4413 add r3, r2 8005b82: 81fb strh r3, [r7, #14] } p++; 8005b84: 68bb ldr r3, [r7, #8] 8005b86: 3301 adds r3, #1 8005b88: 60bb str r3, [r7, #8] while(*p!='\0') 8005b8a: 68bb ldr r3, [r7, #8] 8005b8c: 781b ldrb r3, [r3, #0] 8005b8e: 2b00 cmp r3, #0 8005b90: d1d4 bne.n 8005b3c } } 8005b92: bf00 nop 8005b94: bf00 nop 8005b96: 3714 adds r7, #20 8005b98: 46bd mov sp, r7 8005b9a: bd90 pop {r4, r7, pc} 8005b9c: 20000380 .word 0x20000380 08005ba0 : #include "buzzer.h" struct notes *notes; void play_ones(uint16_t freq,uint8_t dutya) { 8005ba0: b590 push {r4, r7, lr} 8005ba2: b083 sub sp, #12 8005ba4: af00 add r7, sp, #0 8005ba6: 4603 mov r3, r0 8005ba8: 460a mov r2, r1 8005baa: 80fb strh r3, [r7, #6] 8005bac: 4613 mov r3, r2 8005bae: 717b strb r3, [r7, #5] //¼Ä´æÆ÷д·¨ ÐèÒª¸ù¾Ýµ¥Æ¬»úµÄʱÖÓÀ´Ð´¡£ TIM4->ARR = (uint32_t)((72000000/freq)-1);TIM4->CCR3 = (uint32_t)(((72000000/freq)-1)*((float)dutya/100)); 8005bb0: 88fb ldrh r3, [r7, #6] 8005bb2: 4a14 ldr r2, [pc, #80] ; (8005c04 ) 8005bb4: fb92 f3f3 sdiv r3, r2, r3 8005bb8: 1e5a subs r2, r3, #1 8005bba: 4b13 ldr r3, [pc, #76] ; (8005c08 ) 8005bbc: 62da str r2, [r3, #44] ; 0x2c 8005bbe: 88fb ldrh r3, [r7, #6] 8005bc0: 4a10 ldr r2, [pc, #64] ; (8005c04 ) 8005bc2: fb92 f3f3 sdiv r3, r2, r3 8005bc6: 3b01 subs r3, #1 8005bc8: 4618 mov r0, r3 8005bca: f7fb f8d3 bl 8000d74 <__aeabi_i2f> 8005bce: 4604 mov r4, r0 8005bd0: 797b ldrb r3, [r7, #5] 8005bd2: 4618 mov r0, r3 8005bd4: f7fb f8ca bl 8000d6c <__aeabi_ui2f> 8005bd8: 4603 mov r3, r0 8005bda: 490c ldr r1, [pc, #48] ; (8005c0c ) 8005bdc: 4618 mov r0, r3 8005bde: f7fb f9d1 bl 8000f84 <__aeabi_fdiv> 8005be2: 4603 mov r3, r0 8005be4: 4619 mov r1, r3 8005be6: 4620 mov r0, r4 8005be8: f7fb f918 bl 8000e1c <__aeabi_fmul> 8005bec: 4603 mov r3, r0 8005bee: 4c06 ldr r4, [pc, #24] ; (8005c08 ) 8005bf0: 4618 mov r0, r3 8005bf2: f7fb fa89 bl 8001108 <__aeabi_f2uiz> 8005bf6: 4603 mov r3, r0 8005bf8: 63e3 str r3, [r4, #60] ; 0x3c } 8005bfa: bf00 nop 8005bfc: 370c adds r7, #12 8005bfe: 46bd mov sp, r7 8005c00: bd90 pop {r4, r7, pc} 8005c02: bf00 nop 8005c04: 044aa200 .word 0x044aa200 8005c08: 40000800 .word 0x40000800 8005c0c: 42c80000 .word 0x42c80000 08005c10 : } } void delhead() //ɾ³ýµÚÒ»¸öÒô·û Ò»°ãÓû§²»ÐèÒªµ÷Óà { 8005c10: b580 push {r7, lr} 8005c12: b082 sub sp, #8 8005c14: af00 add r7, sp, #0 if (notes == NULL) 8005c16: 4b11 ldr r3, [pc, #68] ; (8005c5c ) 8005c18: 681b ldr r3, [r3, #0] 8005c1a: 2b00 cmp r3, #0 8005c1c: d019 beq.n 8005c52 { return; } if (notes->next_note == NULL) 8005c1e: 4b0f ldr r3, [pc, #60] ; (8005c5c ) 8005c20: 681b ldr r3, [r3, #0] 8005c22: 689b ldr r3, [r3, #8] 8005c24: 2b00 cmp r3, #0 8005c26: d108 bne.n 8005c3a { free(notes); 8005c28: 4b0c ldr r3, [pc, #48] ; (8005c5c ) 8005c2a: 681b ldr r3, [r3, #0] 8005c2c: 4618 mov r0, r3 8005c2e: f001 ffb3 bl 8007b98 notes = NULL; 8005c32: 4b0a ldr r3, [pc, #40] ; (8005c5c ) 8005c34: 2200 movs r2, #0 8005c36: 601a str r2, [r3, #0] 8005c38: e00c b.n 8005c54 } else { struct notes *t = notes; 8005c3a: 4b08 ldr r3, [pc, #32] ; (8005c5c ) 8005c3c: 681b ldr r3, [r3, #0] 8005c3e: 607b str r3, [r7, #4] notes = notes->next_note; 8005c40: 4b06 ldr r3, [pc, #24] ; (8005c5c ) 8005c42: 681b ldr r3, [r3, #0] 8005c44: 689b ldr r3, [r3, #8] 8005c46: 4a05 ldr r2, [pc, #20] ; (8005c5c ) 8005c48: 6013 str r3, [r2, #0] free(t); 8005c4a: 6878 ldr r0, [r7, #4] 8005c4c: f001 ffa4 bl 8007b98 8005c50: e000 b.n 8005c54 return; 8005c52: bf00 nop } } 8005c54: 3708 adds r7, #8 8005c56: 46bd mov sp, r7 8005c58: bd80 pop {r7, pc} 8005c5a: bf00 nop 8005c5c: 2000038c .word 0x2000038c 08005c60 : char buzzer_play_server() //·ÅÔÚÖ÷Ñ­»· Ö»ÓÐÓÐÒô·ûÌí¼Ó½øÀ´¾Í»á²¥·Å£¬²¥·ÅÍê×Ô¶¯ÊÍ·Å { 8005c60: b580 push {r7, lr} 8005c62: af00 add r7, sp, #0 static char busy_flag=0; static uint32_t play_delay; if(notes == NULL) 8005c64: 4b18 ldr r3, [pc, #96] ; (8005cc8 ) 8005c66: 681b ldr r3, [r3, #0] 8005c68: 2b00 cmp r3, #0 8005c6a: d029 beq.n 8005cc0 { //play_ones(0,0); }else { if(busy_flag==0) 8005c6c: 4b17 ldr r3, [pc, #92] ; (8005ccc ) 8005c6e: 781b ldrb r3, [r3, #0] 8005c70: 2b00 cmp r3, #0 8005c72: d115 bne.n 8005ca0 { busy_flag=1; 8005c74: 4b15 ldr r3, [pc, #84] ; (8005ccc ) 8005c76: 2201 movs r2, #1 8005c78: 701a strb r2, [r3, #0] play_delay=HAL_GetTick()+notes->deley; 8005c7a: f7fc f86f bl 8001d5c 8005c7e: 4602 mov r2, r0 8005c80: 4b11 ldr r3, [pc, #68] ; (8005cc8 ) 8005c82: 681b ldr r3, [r3, #0] 8005c84: 889b ldrh r3, [r3, #4] 8005c86: 4413 add r3, r2 8005c88: 4a11 ldr r2, [pc, #68] ; (8005cd0 ) 8005c8a: 6013 str r3, [r2, #0] play_ones(notes->freq,notes->duty); 8005c8c: 4b0e ldr r3, [pc, #56] ; (8005cc8 ) 8005c8e: 681b ldr r3, [r3, #0] 8005c90: 881a ldrh r2, [r3, #0] 8005c92: 4b0d ldr r3, [pc, #52] ; (8005cc8 ) 8005c94: 681b ldr r3, [r3, #0] 8005c96: 789b ldrb r3, [r3, #2] 8005c98: 4619 mov r1, r3 8005c9a: 4610 mov r0, r2 8005c9c: f7ff ff80 bl 8005ba0 } if(busy_flag==1) 8005ca0: 4b0a ldr r3, [pc, #40] ; (8005ccc ) 8005ca2: 781b ldrb r3, [r3, #0] 8005ca4: 2b01 cmp r3, #1 8005ca6: d10b bne.n 8005cc0 { if(HAL_GetTick()>play_delay) 8005ca8: f7fc f858 bl 8001d5c 8005cac: 4602 mov r2, r0 8005cae: 4b08 ldr r3, [pc, #32] ; (8005cd0 ) 8005cb0: 681b ldr r3, [r3, #0] 8005cb2: 429a cmp r2, r3 8005cb4: d904 bls.n 8005cc0 { busy_flag=0; 8005cb6: 4b05 ldr r3, [pc, #20] ; (8005ccc ) 8005cb8: 2200 movs r2, #0 8005cba: 701a strb r2, [r3, #0] delhead(); 8005cbc: f7ff ffa8 bl 8005c10 } } return busy_flag; 8005cc0: 4b02 ldr r3, [pc, #8] ; (8005ccc ) 8005cc2: 781b ldrb r3, [r3, #0] } 8005cc4: 4618 mov r0, r3 8005cc6: bd80 pop {r7, pc} 8005cc8: 2000038c .word 0x2000038c 8005ccc: 20000390 .word 0x20000390 8005cd0: 20000394 .word 0x20000394 08005cd4 : //ÒòΪeepromоƬµÄдÈëËÙ¶ÈÓÐÏÞ£¬Ã¿Ð´ÈëÒ»¸ö×Ö·û¶¼ÐèÒªµÈ´ýÒ»¶Îʱ¼ä²ÅÄÜÍê³ÉдÈë //Õû¸öϵͳ²»¿ÉÄܵÈËüÒ»¸öµÄ£¬´«Í³µÄ½â¾ö·½·¨¿ÉÒÔʹÓö¨Ê±Æ÷ÖжϻòÕß¶àÏ߳̿ª±Ù×ÓÈÎÎñÔÚºǫ́±£´æ£¬ //ÕâÀïµÄ½â¾ö·½·¨ÊÇʹÓÃ״̬»ú£¬Í¨¹ýÒ»¸öÁ´±í½«Òª±£´æµÄÊý¾Ý´®ÆðÀ´£¬ÔÙͨ¹ý״̬ѭ»·Ò»¸ö¸ö±£´æ£¬±£´æÑÓʱµÈÓÚÑ­»·ÓÃʱ¡£ eeprom_write_buff_info eeprom_write_buffer; //´´½¨Á´±í void EPPROM_SLOWWRITE_INIT() //³õʼ»¯Á´±í { 8005cd4: b480 push {r7} 8005cd6: af00 add r7, sp, #0 eeprom_write_buffer.buff=NULL; 8005cd8: 4b0a ldr r3, [pc, #40] ; (8005d04 ) 8005cda: 2200 movs r2, #0 8005cdc: 601a str r2, [r3, #0] eeprom_write_buffer.end=NULL; 8005cde: 4b09 ldr r3, [pc, #36] ; (8005d04 ) 8005ce0: 2200 movs r2, #0 8005ce2: 609a str r2, [r3, #8] eeprom_write_buffer.head=NULL; 8005ce4: 4b07 ldr r3, [pc, #28] ; (8005d04 ) 8005ce6: 2200 movs r2, #0 8005ce8: 605a str r2, [r3, #4] eeprom_write_buffer.save_timeout=5; //±ÜÃâ״̬»úÑ­»·¹ý¿ìµ¼Öµı£´æÊ§°Ü£¬Õâ¸öÊÇ×îÉÙÑÓʱ¡££¨¸Ð¾õû±ØÒªÐ´ÔÚÕâÀ̫À˷ѿռäÁË£© 8005cea: 4b06 ldr r3, [pc, #24] ; (8005d04 ) 8005cec: 2205 movs r2, #5 8005cee: 741a strb r2, [r3, #16] eeprom_write_buffer.save_busy=0; //×îСÑÓʱÄÚΪæ״̬ 8005cf0: 4a04 ldr r2, [pc, #16] ; (8005d04 ) 8005cf2: 7c53 ldrb r3, [r2, #17] 8005cf4: f36f 0300 bfc r3, #0, #1 8005cf8: 7453 strb r3, [r2, #17] } 8005cfa: bf00 nop 8005cfc: 46bd mov sp, r7 8005cfe: bc80 pop {r7} 8005d00: 4770 bx lr 8005d02: bf00 nop 8005d04: 20000398 .word 0x20000398 08005d08 : //Ñ­»·±£´æ·þÎñ£¬¼ì²éÁ´±íÍ·ÊÇ·ñÓÐÊý¾ÝÊÇ·ñæ¡£ void EEPROM_SLOWWRITE_SERVER() { 8005d08: b580 push {r7, lr} 8005d0a: b082 sub sp, #8 8005d0c: af00 add r7, sp, #0 eeprom_write_buff *buff; char data; if(eeprom_write_buffer.save_busy) 8005d0e: 4b20 ldr r3, [pc, #128] ; (8005d90 ) 8005d10: 7c5b ldrb r3, [r3, #17] 8005d12: f003 0301 and.w r3, r3, #1 8005d16: b2db uxtb r3, r3 8005d18: 2b00 cmp r3, #0 8005d1a: d00c beq.n 8005d36 { if(HAL_GetTick()>eeprom_write_buffer.save_time) 8005d1c: f7fc f81e bl 8001d5c 8005d20: 4602 mov r2, r0 8005d22: 4b1b ldr r3, [pc, #108] ; (8005d90 ) 8005d24: 68db ldr r3, [r3, #12] 8005d26: 429a cmp r2, r3 8005d28: d92e bls.n 8005d88 { eeprom_write_buffer.save_busy=0; 8005d2a: 4a19 ldr r2, [pc, #100] ; (8005d90 ) 8005d2c: 7c53 ldrb r3, [r2, #17] 8005d2e: f36f 0300 bfc r3, #0, #1 8005d32: 7453 strb r3, [r2, #17] free(eeprom_write_buffer.head); eeprom_write_buffer.head=buff; } } } 8005d34: e028 b.n 8005d88 if(eeprom_write_buffer.head!=NULL) 8005d36: 4b16 ldr r3, [pc, #88] ; (8005d90 ) 8005d38: 685b ldr r3, [r3, #4] 8005d3a: 2b00 cmp r3, #0 8005d3c: d024 beq.n 8005d88 eeprom_write_buffer.save_busy=1; 8005d3e: 4a14 ldr r2, [pc, #80] ; (8005d90 ) 8005d40: 7c53 ldrb r3, [r2, #17] 8005d42: f043 0301 orr.w r3, r3, #1 8005d46: 7453 strb r3, [r2, #17] eeprom_write_buffer.save_time=HAL_GetTick()+eeprom_write_buffer.save_timeout; 8005d48: f7fc f808 bl 8001d5c 8005d4c: 4603 mov r3, r0 8005d4e: 4a10 ldr r2, [pc, #64] ; (8005d90 ) 8005d50: 7c12 ldrb r2, [r2, #16] 8005d52: 4413 add r3, r2 8005d54: 4a0e ldr r2, [pc, #56] ; (8005d90 ) 8005d56: 60d3 str r3, [r2, #12] buff=eeprom_write_buffer.head->next; 8005d58: 4b0d ldr r3, [pc, #52] ; (8005d90 ) 8005d5a: 685b ldr r3, [r3, #4] 8005d5c: 681b ldr r3, [r3, #0] 8005d5e: 607b str r3, [r7, #4] data=eeprom_write_buffer.head->date; 8005d60: 4b0b ldr r3, [pc, #44] ; (8005d90 ) 8005d62: 685b ldr r3, [r3, #4] 8005d64: 799b ldrb r3, [r3, #6] 8005d66: 70fb strb r3, [r7, #3] IIC_SAND_DATE(EEPROM_ADDRESS,eeprom_write_buffer.head->add,&data,1); 8005d68: 4b09 ldr r3, [pc, #36] ; (8005d90 ) 8005d6a: 685b ldr r3, [r3, #4] 8005d6c: 8899 ldrh r1, [r3, #4] 8005d6e: 1cfa adds r2, r7, #3 8005d70: 2301 movs r3, #1 8005d72: 20a0 movs r0, #160 ; 0xa0 8005d74: f000 f866 bl 8005e44 free(eeprom_write_buffer.head); 8005d78: 4b05 ldr r3, [pc, #20] ; (8005d90 ) 8005d7a: 685b ldr r3, [r3, #4] 8005d7c: 4618 mov r0, r3 8005d7e: f001 ff0b bl 8007b98 eeprom_write_buffer.head=buff; 8005d82: 4a03 ldr r2, [pc, #12] ; (8005d90 ) 8005d84: 687b ldr r3, [r7, #4] 8005d86: 6053 str r3, [r2, #4] } 8005d88: bf00 nop 8005d8a: 3708 adds r7, #8 8005d8c: 46bd mov sp, r7 8005d8e: bd80 pop {r7, pc} 8005d90: 20000398 .word 0x20000398 08005d94 : //´Óeeprom¶ÁÈ¡Êý¾Ý void EEPROM_READ_BATY(uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) { 8005d94: b580 push {r7, lr} 8005d96: b082 sub sp, #8 8005d98: af00 add r7, sp, #0 8005d9a: 4603 mov r3, r0 8005d9c: 6039 str r1, [r7, #0] 8005d9e: 80fb strh r3, [r7, #6] 8005da0: 4613 mov r3, r2 8005da2: 80bb strh r3, [r7, #4] IIC_READ_DATE(EEPROM_ADDRESS,IN_DEVICE_ADD,DATAS,LONG); 8005da4: 88bb ldrh r3, [r7, #4] 8005da6: 88f9 ldrh r1, [r7, #6] 8005da8: 683a ldr r2, [r7, #0] 8005daa: 20a0 movs r0, #160 ; 0xa0 8005dac: f000 f868 bl 8005e80 } 8005db0: bf00 nop 8005db2: 3708 adds r7, #8 8005db4: 46bd mov sp, r7 8005db6: bd80 pop {r7, pc} 08005db8 : //ÏòeepromдÈëÊý¾Ý void EEPROM_WRITE_BATY(uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) { 8005db8: b580 push {r7, lr} 8005dba: b086 sub sp, #24 8005dbc: af00 add r7, sp, #0 8005dbe: 4603 mov r3, r0 8005dc0: 6039 str r1, [r7, #0] 8005dc2: 80fb strh r3, [r7, #6] 8005dc4: 4613 mov r3, r2 8005dc6: 80bb strh r3, [r7, #4] //IIC_SAND_DATE(EEPROM_ADDRESS,IN_DEVICE_ADD,DATAS,LONG); uint16_t addoffset=0; 8005dc8: 2300 movs r3, #0 8005dca: 82fb strh r3, [r7, #22] eeprom_write_buff *buff; eeprom_write_buff *buff2; while(LONG--) 8005dcc: e02d b.n 8005e2a { buff =(eeprom_write_buff*)malloc(sizeof(eeprom_write_buff)); 8005dce: 2008 movs r0, #8 8005dd0: f001 feda bl 8007b88 8005dd4: 4603 mov r3, r0 8005dd6: 613b str r3, [r7, #16] if(buff!=NULL) 8005dd8: 693b ldr r3, [r7, #16] 8005dda: 2b00 cmp r3, #0 8005ddc: d02b beq.n 8005e36 { buff->add=IN_DEVICE_ADD+addoffset; 8005dde: 88fa ldrh r2, [r7, #6] 8005de0: 8afb ldrh r3, [r7, #22] 8005de2: 4413 add r3, r2 8005de4: b29a uxth r2, r3 8005de6: 693b ldr r3, [r7, #16] 8005de8: 809a strh r2, [r3, #4] buff->date=DATAS[addoffset]; 8005dea: 8afb ldrh r3, [r7, #22] 8005dec: 683a ldr r2, [r7, #0] 8005dee: 4413 add r3, r2 8005df0: 781a ldrb r2, [r3, #0] 8005df2: 693b ldr r3, [r7, #16] 8005df4: 719a strb r2, [r3, #6] buff->next=NULL; 8005df6: 693b ldr r3, [r7, #16] 8005df8: 2200 movs r2, #0 8005dfa: 601a str r2, [r3, #0] }else{return ;} if(eeprom_write_buffer.head==NULL) 8005dfc: 4b10 ldr r3, [pc, #64] ; (8005e40 ) 8005dfe: 685b ldr r3, [r3, #4] 8005e00: 2b00 cmp r3, #0 8005e02: d106 bne.n 8005e12 { eeprom_write_buffer.head=buff; 8005e04: 4a0e ldr r2, [pc, #56] ; (8005e40 ) 8005e06: 693b ldr r3, [r7, #16] 8005e08: 6053 str r3, [r2, #4] eeprom_write_buffer.end=buff; 8005e0a: 4a0d ldr r2, [pc, #52] ; (8005e40 ) 8005e0c: 693b ldr r3, [r7, #16] 8005e0e: 6093 str r3, [r2, #8] 8005e10: e008 b.n 8005e24 }else { buff2=eeprom_write_buffer.end; 8005e12: 4b0b ldr r3, [pc, #44] ; (8005e40 ) 8005e14: 689b ldr r3, [r3, #8] 8005e16: 60fb str r3, [r7, #12] buff2->next=buff; 8005e18: 68fb ldr r3, [r7, #12] 8005e1a: 693a ldr r2, [r7, #16] 8005e1c: 601a str r2, [r3, #0] eeprom_write_buffer.end=buff; 8005e1e: 4a08 ldr r2, [pc, #32] ; (8005e40 ) 8005e20: 693b ldr r3, [r7, #16] 8005e22: 6093 str r3, [r2, #8] } addoffset++; 8005e24: 8afb ldrh r3, [r7, #22] 8005e26: 3301 adds r3, #1 8005e28: 82fb strh r3, [r7, #22] while(LONG--) 8005e2a: 88bb ldrh r3, [r7, #4] 8005e2c: 1e5a subs r2, r3, #1 8005e2e: 80ba strh r2, [r7, #4] 8005e30: 2b00 cmp r3, #0 8005e32: d1cc bne.n 8005dce 8005e34: e000 b.n 8005e38 }else{return ;} 8005e36: bf00 nop } } 8005e38: 3718 adds r7, #24 8005e3a: 46bd mov sp, r7 8005e3c: bd80 pop {r7, pc} 8005e3e: bf00 nop 8005e40: 20000398 .word 0x20000398 08005e44 : //iicÓ²¼þ½Ó¿Ú extern I2C_HandleTypeDef hi2c2; void IIC_SAND_DATE(uint16_t DEVICE_ADD,uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) { 8005e44: b580 push {r7, lr} 8005e46: b088 sub sp, #32 8005e48: af04 add r7, sp, #16 8005e4a: 60ba str r2, [r7, #8] 8005e4c: 461a mov r2, r3 8005e4e: 4603 mov r3, r0 8005e50: 81fb strh r3, [r7, #14] 8005e52: 460b mov r3, r1 8005e54: 81bb strh r3, [r7, #12] 8005e56: 4613 mov r3, r2 8005e58: 80fb strh r3, [r7, #6] HAL_I2C_Mem_Write(&hi2c2,DEVICE_ADD,IN_DEVICE_ADD,I2C_MEMADD_SIZE_8BIT,DATAS,LONG,100); 8005e5a: 89ba ldrh r2, [r7, #12] 8005e5c: 89f9 ldrh r1, [r7, #14] 8005e5e: 2364 movs r3, #100 ; 0x64 8005e60: 9302 str r3, [sp, #8] 8005e62: 88fb ldrh r3, [r7, #6] 8005e64: 9301 str r3, [sp, #4] 8005e66: 68bb ldr r3, [r7, #8] 8005e68: 9300 str r3, [sp, #0] 8005e6a: 2301 movs r3, #1 8005e6c: 4803 ldr r0, [pc, #12] ; (8005e7c ) 8005e6e: f7fc fbb9 bl 80025e4 } 8005e72: bf00 nop 8005e74: 3710 adds r7, #16 8005e76: 46bd mov sp, r7 8005e78: bd80 pop {r7, pc} 8005e7a: bf00 nop 8005e7c: 200001f0 .word 0x200001f0 08005e80 : void IIC_READ_DATE(uint16_t DEVICE_ADD,uint16_t IN_DEVICE_ADD,char *DATAS,uint16_t LONG) { 8005e80: b580 push {r7, lr} 8005e82: b088 sub sp, #32 8005e84: af04 add r7, sp, #16 8005e86: 60ba str r2, [r7, #8] 8005e88: 461a mov r2, r3 8005e8a: 4603 mov r3, r0 8005e8c: 81fb strh r3, [r7, #14] 8005e8e: 460b mov r3, r1 8005e90: 81bb strh r3, [r7, #12] 8005e92: 4613 mov r3, r2 8005e94: 80fb strh r3, [r7, #6] HAL_I2C_Mem_Read(&hi2c2,DEVICE_ADD,IN_DEVICE_ADD,I2C_MEMADD_SIZE_8BIT,DATAS,LONG,100); 8005e96: 89ba ldrh r2, [r7, #12] 8005e98: 89f9 ldrh r1, [r7, #14] 8005e9a: 2364 movs r3, #100 ; 0x64 8005e9c: 9302 str r3, [sp, #8] 8005e9e: 88fb ldrh r3, [r7, #6] 8005ea0: 9301 str r3, [sp, #4] 8005ea2: 68bb ldr r3, [r7, #8] 8005ea4: 9300 str r3, [sp, #0] 8005ea6: 2301 movs r3, #1 8005ea8: 4803 ldr r0, [pc, #12] ; (8005eb8 ) 8005eaa: f7fc fc95 bl 80027d8 } 8005eae: bf00 nop 8005eb0: 3710 adds r7, #16 8005eb2: 46bd mov sp, r7 8005eb4: bd80 pop {r7, pc} 8005eb6: bf00 nop 8005eb8: 200001f0 .word 0x200001f0 08005ebc : #include "key.h" struct button k1,k2,k3; void GEI_BUTTON_CODE(struct button *bt,uint8_t in) { 8005ebc: b580 push {r7, lr} 8005ebe: b082 sub sp, #8 8005ec0: af00 add r7, sp, #0 8005ec2: 6078 str r0, [r7, #4] 8005ec4: 460b mov r3, r1 8005ec6: 70fb strb r3, [r7, #3] #define t 250 bt->code=0; 8005ec8: 687b ldr r3, [r7, #4] 8005eca: 2200 movs r2, #0 8005ecc: 601a str r2, [r3, #0] if(in==0) 8005ece: 78fb ldrb r3, [r7, #3] 8005ed0: 2b00 cmp r3, #0 8005ed2: d138 bne.n 8005f46 { if(bt->lock==0) 8005ed4: 687b ldr r3, [r7, #4] 8005ed6: 791b ldrb r3, [r3, #4] 8005ed8: 2b00 cmp r3, #0 8005eda: d120 bne.n 8005f1e { if(HAL_GetTick()time+t) 8005edc: f7fb ff3e bl 8001d5c 8005ee0: 4602 mov r2, r0 8005ee2: 687b ldr r3, [r7, #4] 8005ee4: 689b ldr r3, [r3, #8] 8005ee6: 33fa adds r3, #250 ; 0xfa 8005ee8: 429a cmp r2, r3 8005eea: d20d bcs.n 8005f08 { bt->times++; 8005eec: 687b ldr r3, [r7, #4] 8005eee: 68db ldr r3, [r3, #12] 8005ef0: 1c5a adds r2, r3, #1 8005ef2: 687b ldr r3, [r7, #4] 8005ef4: 60da str r2, [r3, #12] bt->time=HAL_GetTick(); 8005ef6: f7fb ff31 bl 8001d5c 8005efa: 4602 mov r2, r0 8005efc: 687b ldr r3, [r7, #4] 8005efe: 609a str r2, [r3, #8] bt->lock=1; 8005f00: 687b ldr r3, [r7, #4] 8005f02: 2201 movs r2, #1 8005f04: 711a strb r2, [r3, #4] 8005f06: e00a b.n 8005f1e }else { bt->times=1; 8005f08: 687b ldr r3, [r7, #4] 8005f0a: 2201 movs r2, #1 8005f0c: 60da str r2, [r3, #12] bt->time=HAL_GetTick(); 8005f0e: f7fb ff25 bl 8001d5c 8005f12: 4602 mov r2, r0 8005f14: 687b ldr r3, [r7, #4] 8005f16: 609a str r2, [r3, #8] bt->lock=1; 8005f18: 687b ldr r3, [r7, #4] 8005f1a: 2201 movs r2, #1 8005f1c: 711a strb r2, [r3, #4] } } if(bt->lock==1) 8005f1e: 687b ldr r3, [r7, #4] 8005f20: 791b ldrb r3, [r3, #4] 8005f22: 2b01 cmp r3, #1 8005f24: d10f bne.n 8005f46 { if(HAL_GetTick()>bt->time+t) 8005f26: f7fb ff19 bl 8001d5c 8005f2a: 4602 mov r2, r0 8005f2c: 687b ldr r3, [r7, #4] 8005f2e: 689b ldr r3, [r3, #8] 8005f30: 33fa adds r3, #250 ; 0xfa 8005f32: 429a cmp r2, r3 8005f34: d907 bls.n 8005f46 { bt->code=-1; 8005f36: 687b ldr r3, [r7, #4] 8005f38: f04f 32ff mov.w r2, #4294967295 8005f3c: 601a str r2, [r3, #0] bt->times=-1; 8005f3e: 687b ldr r3, [r7, #4] 8005f40: f04f 32ff mov.w r2, #4294967295 8005f44: 60da str r2, [r3, #12] } } } if(in==1) 8005f46: 78fb ldrb r3, [r7, #3] 8005f48: 2b01 cmp r3, #1 8005f4a: d10f bne.n 8005f6c { if(bt->lock==1) 8005f4c: 687b ldr r3, [r7, #4] 8005f4e: 791b ldrb r3, [r3, #4] 8005f50: 2b01 cmp r3, #1 8005f52: d10b bne.n 8005f6c { if(bt->code==-1) 8005f54: 687b ldr r3, [r7, #4] 8005f56: 681b ldr r3, [r3, #0] 8005f58: f1b3 3fff cmp.w r3, #4294967295 8005f5c: d003 beq.n 8005f66 { }else { bt->code=bt->times; 8005f5e: 687b ldr r3, [r7, #4] 8005f60: 68da ldr r2, [r3, #12] 8005f62: 687b ldr r3, [r7, #4] 8005f64: 601a str r2, [r3, #0] } bt->lock=0; 8005f66: 687b ldr r3, [r7, #4] 8005f68: 2200 movs r2, #0 8005f6a: 711a strb r2, [r3, #4] } } } 8005f6c: bf00 nop 8005f6e: 3708 adds r7, #8 8005f70: 46bd mov sp, r7 8005f72: bd80 pop {r7, pc} 08005f74 : //SPIдÊý¾Ý //Ïò´¥ÃþÆÁICдÈë1byteÊý¾Ý //num:ҪдÈëµÄÊý¾Ý void TP_Write_Byte(char num) { 8005f74: b580 push {r7, lr} 8005f76: b084 sub sp, #16 8005f78: af00 add r7, sp, #0 8005f7a: 4603 mov r3, r0 8005f7c: 71fb strb r3, [r7, #7] for(uint8_t count=0;count<8;count++) 8005f7e: 2300 movs r3, #0 8005f80: 73fb strb r3, [r7, #15] 8005f82: e020 b.n 8005fc6 { if(num&0x80){TDIN(1);} 8005f84: f997 3007 ldrsb.w r3, [r7, #7] 8005f88: 2b00 cmp r3, #0 8005f8a: da06 bge.n 8005f9a 8005f8c: 2201 movs r2, #1 8005f8e: f44f 7100 mov.w r1, #512 ; 0x200 8005f92: 4811 ldr r0, [pc, #68] ; (8005fd8 ) 8005f94: f7fc f9c9 bl 800232a 8005f98: e005 b.n 8005fa6 else {TDIN(0);} 8005f9a: 2200 movs r2, #0 8005f9c: f44f 7100 mov.w r1, #512 ; 0x200 8005fa0: 480d ldr r0, [pc, #52] ; (8005fd8 ) 8005fa2: f7fc f9c2 bl 800232a num<<=1; 8005fa6: 79fb ldrb r3, [r7, #7] 8005fa8: 005b lsls r3, r3, #1 8005faa: 71fb strb r3, [r7, #7] TCLK(0); 8005fac: 2200 movs r2, #0 8005fae: 2102 movs r1, #2 8005fb0: 480a ldr r0, [pc, #40] ; (8005fdc ) 8005fb2: f7fc f9ba bl 800232a TCLK(1); //ÉÏÉýÑØÓÐЧ 8005fb6: 2201 movs r2, #1 8005fb8: 2102 movs r1, #2 8005fba: 4808 ldr r0, [pc, #32] ; (8005fdc ) 8005fbc: f7fc f9b5 bl 800232a for(uint8_t count=0;count<8;count++) 8005fc0: 7bfb ldrb r3, [r7, #15] 8005fc2: 3301 adds r3, #1 8005fc4: 73fb strb r3, [r7, #15] 8005fc6: 7bfb ldrb r3, [r7, #15] 8005fc8: 2b07 cmp r3, #7 8005fca: d9db bls.n 8005f84 } } 8005fcc: bf00 nop 8005fce: bf00 nop 8005fd0: 3710 adds r7, #16 8005fd2: 46bd mov sp, r7 8005fd4: bd80 pop {r7, pc} 8005fd6: bf00 nop 8005fd8: 40011c00 .word 0x40011c00 8005fdc: 40010c00 .word 0x40010c00 08005fe0 : //SPI¶ÁÊý¾Ý //´Ó´¥ÃþÆÁIC¶ÁÈ¡adcÖµ //CMD:Ö¸Áî //·µ»ØÖµ:¶Áµ½µÄÊý¾Ý uint16_t TP_Read_AD(char CMD) { 8005fe0: b580 push {r7, lr} 8005fe2: b084 sub sp, #16 8005fe4: af00 add r7, sp, #0 8005fe6: 4603 mov r3, r0 8005fe8: 71fb strb r3, [r7, #7] uint16_t Num=0; 8005fea: 2300 movs r3, #0 8005fec: 81fb strh r3, [r7, #14] TCLK(0); //ÏÈÀ­µÍʱÖÓ 8005fee: 2200 movs r2, #0 8005ff0: 2102 movs r1, #2 8005ff2: 482b ldr r0, [pc, #172] ; (80060a0 ) 8005ff4: f7fc f999 bl 800232a TDIN(0); //À­µÍÊý¾ÝÏß 8005ff8: 2200 movs r2, #0 8005ffa: f44f 7100 mov.w r1, #512 ; 0x200 8005ffe: 4829 ldr r0, [pc, #164] ; (80060a4 ) 8006000: f7fc f993 bl 800232a TCS(0); //Ñ¡Öд¥ÃþÆÁIC 8006004: 2200 movs r2, #0 8006006: 2104 movs r1, #4 8006008: 4825 ldr r0, [pc, #148] ; (80060a0 ) 800600a: f7fc f98e bl 800232a TP_Write_Byte(CMD);//·¢ËÍÃüÁî×Ö 800600e: 79fb ldrb r3, [r7, #7] 8006010: 4618 mov r0, r3 8006012: f7ff ffaf bl 8005f74 HAL_GetTick(); //ÉÔ΢ÑÓʱ£¬adת»»ÐèҪʱ¼ä 8006016: f7fb fea1 bl 8001d5c HAL_GetTick(); 800601a: f7fb fe9f bl 8001d5c HAL_GetTick(); 800601e: f7fb fe9d bl 8001d5c HAL_GetTick(); 8006022: f7fb fe9b bl 8001d5c HAL_GetTick(); 8006026: f7fb fe99 bl 8001d5c HAL_GetTick(); 800602a: f7fb fe97 bl 8001d5c TCLK(1); //¸ø1¸öʱÖÓ£¬Çå³ýBUSY 800602e: 2201 movs r2, #1 8006030: 2102 movs r1, #2 8006032: 481b ldr r0, [pc, #108] ; (80060a0 ) 8006034: f7fc f979 bl 800232a TCLK(0); 8006038: 2200 movs r2, #0 800603a: 2102 movs r1, #2 800603c: 4818 ldr r0, [pc, #96] ; (80060a0 ) 800603e: f7fc f974 bl 800232a for(uint8_t count=0;count<16;count++)//¶Á³ö16λÊý¾Ý,Ö»Óиß12λÓÐЧ 8006042: 2300 movs r3, #0 8006044: 737b strb r3, [r7, #13] 8006046: e01a b.n 800607e { Num<<=1; 8006048: 89fb ldrh r3, [r7, #14] 800604a: 005b lsls r3, r3, #1 800604c: 81fb strh r3, [r7, #14] TCLK(0); //ϽµÑØÓÐЧ 800604e: 2200 movs r2, #0 8006050: 2102 movs r1, #2 8006052: 4813 ldr r0, [pc, #76] ; (80060a0 ) 8006054: f7fc f969 bl 800232a TCLK(1);; 8006058: 2201 movs r2, #1 800605a: 2102 movs r1, #2 800605c: 4810 ldr r0, [pc, #64] ; (80060a0 ) 800605e: f7fc f964 bl 800232a if(TDOUT){Num++;} 8006062: f44f 7180 mov.w r1, #256 ; 0x100 8006066: 480f ldr r0, [pc, #60] ; (80060a4 ) 8006068: f7fc f948 bl 80022fc 800606c: 4603 mov r3, r0 800606e: 2b00 cmp r3, #0 8006070: d002 beq.n 8006078 8006072: 89fb ldrh r3, [r7, #14] 8006074: 3301 adds r3, #1 8006076: 81fb strh r3, [r7, #14] for(uint8_t count=0;count<16;count++)//¶Á³ö16λÊý¾Ý,Ö»Óиß12λÓÐЧ 8006078: 7b7b ldrb r3, [r7, #13] 800607a: 3301 adds r3, #1 800607c: 737b strb r3, [r7, #13] 800607e: 7b7b ldrb r3, [r7, #13] 8006080: 2b0f cmp r3, #15 8006082: d9e1 bls.n 8006048 } Num>>=4; //Ö»Óиß12λÓÐЧ. 8006084: 89fb ldrh r3, [r7, #14] 8006086: 091b lsrs r3, r3, #4 8006088: 81fb strh r3, [r7, #14] TCS(1); //ÊÍ·ÅÆ¬Ñ¡ 800608a: 2201 movs r2, #1 800608c: 2104 movs r1, #4 800608e: 4804 ldr r0, [pc, #16] ; (80060a0 ) 8006090: f7fc f94b bl 800232a return(Num); 8006094: 89fb ldrh r3, [r7, #14] } 8006096: 4618 mov r0, r3 8006098: 3710 adds r7, #16 800609a: 46bd mov sp, r7 800609c: bd80 pop {r7, pc} 800609e: bf00 nop 80060a0: 40010c00 .word 0x40010c00 80060a4: 40011c00 .word 0x40011c00 080060a8 : //xy:Ö¸ÁCMD_RDX/CMD_RDY£© //·µ»ØÖµ:¶Áµ½µÄÊý¾Ý #define READ_TIMES 5 //¶ÁÈ¡´ÎÊý #define LOST_VAL 1 //¶ªÆúÖµ uint16_t TP_Read_XOY(uint8_t xy) { 80060a8: b590 push {r4, r7, lr} 80060aa: b089 sub sp, #36 ; 0x24 80060ac: af00 add r7, sp, #0 80060ae: 4603 mov r3, r0 80060b0: 71fb strb r3, [r7, #7] uint16_t i, j; uint16_t buf[READ_TIMES]; uint16_t sum=0; 80060b2: 2300 movs r3, #0 80060b4: 837b strh r3, [r7, #26] uint16_t temp; for(i=0;i 80060bc: 8bfc ldrh r4, [r7, #30] 80060be: 79fb ldrb r3, [r7, #7] 80060c0: 4618 mov r0, r3 80060c2: f7ff ff8d bl 8005fe0 80060c6: 4603 mov r3, r0 80060c8: 461a mov r2, r3 80060ca: 0063 lsls r3, r4, #1 80060cc: 3320 adds r3, #32 80060ce: 443b add r3, r7 80060d0: f823 2c14 strh.w r2, [r3, #-20] 80060d4: 8bfb ldrh r3, [r7, #30] 80060d6: 3301 adds r3, #1 80060d8: 83fb strh r3, [r7, #30] 80060da: 8bfb ldrh r3, [r7, #30] 80060dc: 2b04 cmp r3, #4 80060de: d9ed bls.n 80060bc for(i=0;i { for(j=i+1;j { if(buf[i]>buf[j])//ÉýÐòÅÅÁÐ 80060ee: 8bfb ldrh r3, [r7, #30] 80060f0: 005b lsls r3, r3, #1 80060f2: 3320 adds r3, #32 80060f4: 443b add r3, r7 80060f6: f833 2c14 ldrh.w r2, [r3, #-20] 80060fa: 8bbb ldrh r3, [r7, #28] 80060fc: 005b lsls r3, r3, #1 80060fe: 3320 adds r3, #32 8006100: 443b add r3, r7 8006102: f833 3c14 ldrh.w r3, [r3, #-20] 8006106: 429a cmp r2, r3 8006108: d91a bls.n 8006140 { temp=buf[i]; 800610a: 8bfb ldrh r3, [r7, #30] 800610c: 005b lsls r3, r3, #1 800610e: 3320 adds r3, #32 8006110: 443b add r3, r7 8006112: f833 3c14 ldrh.w r3, [r3, #-20] 8006116: 833b strh r3, [r7, #24] buf[i]=buf[j]; 8006118: 8bbb ldrh r3, [r7, #28] 800611a: 8bfa ldrh r2, [r7, #30] 800611c: 005b lsls r3, r3, #1 800611e: 3320 adds r3, #32 8006120: 443b add r3, r7 8006122: f833 1c14 ldrh.w r1, [r3, #-20] 8006126: 0053 lsls r3, r2, #1 8006128: 3320 adds r3, #32 800612a: 443b add r3, r7 800612c: 460a mov r2, r1 800612e: f823 2c14 strh.w r2, [r3, #-20] buf[j]=temp; 8006132: 8bbb ldrh r3, [r7, #28] 8006134: 005b lsls r3, r3, #1 8006136: 3320 adds r3, #32 8006138: 443b add r3, r7 800613a: 8b3a ldrh r2, [r7, #24] 800613c: f823 2c14 strh.w r2, [r3, #-20] for(j=i+1;j for(i=0;i } } } sum=0; 8006158: 2300 movs r3, #0 800615a: 837b strh r3, [r7, #26] for(i=LOST_VAL;i 8006162: 8bfb ldrh r3, [r7, #30] 8006164: 005b lsls r3, r3, #1 8006166: 3320 adds r3, #32 8006168: 443b add r3, r7 800616a: f833 2c14 ldrh.w r2, [r3, #-20] 800616e: 8b7b ldrh r3, [r7, #26] 8006170: 4413 add r3, r2 8006172: 837b strh r3, [r7, #26] 8006174: 8bfb ldrh r3, [r7, #30] 8006176: 3301 adds r3, #1 8006178: 83fb strh r3, [r7, #30] 800617a: 8bfb ldrh r3, [r7, #30] 800617c: 2b03 cmp r3, #3 800617e: d9f0 bls.n 8006162 temp=sum/(READ_TIMES-2*LOST_VAL); 8006180: 8b7b ldrh r3, [r7, #26] 8006182: 4a05 ldr r2, [pc, #20] ; (8006198 ) 8006184: fba2 2303 umull r2, r3, r2, r3 8006188: 085b lsrs r3, r3, #1 800618a: 833b strh r3, [r7, #24] return temp; 800618c: 8b3b ldrh r3, [r7, #24] } 800618e: 4618 mov r0, r3 8006190: 3724 adds r7, #36 ; 0x24 8006192: 46bd mov sp, r7 8006194: bd90 pop {r4, r7, pc} 8006196: bf00 nop 8006198: aaaaaaab .word 0xaaaaaaab 0800619c : //¶ÁÈ¡x,y×ø±ê //x,y:¶ÁÈ¡µ½µÄ×ø±êADCÖµ void TP_Read_XY_ADC(int16_t *x,int16_t *y) { 800619c: b580 push {r7, lr} 800619e: b084 sub sp, #16 80061a0: af00 add r7, sp, #0 80061a2: 6078 str r0, [r7, #4] 80061a4: 6039 str r1, [r7, #0] int16_t xtemp,ytemp; xtemp=TP_Read_XOY(CMD_RDX); 80061a6: 2090 movs r0, #144 ; 0x90 80061a8: f7ff ff7e bl 80060a8 80061ac: 4603 mov r3, r0 80061ae: 81fb strh r3, [r7, #14] ytemp=TP_Read_XOY(CMD_RDY); 80061b0: 20d0 movs r0, #208 ; 0xd0 80061b2: f7ff ff79 bl 80060a8 80061b6: 4603 mov r3, r0 80061b8: 81bb strh r3, [r7, #12] *x=xtemp; 80061ba: 687b ldr r3, [r7, #4] 80061bc: 89fa ldrh r2, [r7, #14] 80061be: 801a strh r2, [r3, #0] *y=ytemp; 80061c0: 683b ldr r3, [r7, #0] 80061c2: 89ba ldrh r2, [r7, #12] 80061c4: 801a strh r2, [r3, #0] } 80061c6: bf00 nop 80061c8: 3710 adds r7, #16 80061ca: 46bd mov sp, r7 80061cc: bd80 pop {r7, pc} 080061ce : //¸Ãº¯ÊýÄÜ´ó´óÌá¸ß׼ȷ¶È //x,y:¶ÁÈ¡µ½µÄ×ø±êÖµ //·µ»ØÖµ:0,ʧ°Ü;1,³É¹¦¡£ #define ERR_RANGE 10 //Îó²î·¶Î§ uint8_t TP_Read_XY2(int16_t *x,int16_t *y) { 80061ce: b580 push {r7, lr} 80061d0: b084 sub sp, #16 80061d2: af00 add r7, sp, #0 80061d4: 6078 str r0, [r7, #4] 80061d6: 6039 str r1, [r7, #0] int16_t x1,y1; int16_t x2,y2; TP_Read_XY_ADC(&x1,&y1); 80061d8: f107 020c add.w r2, r7, #12 80061dc: f107 030e add.w r3, r7, #14 80061e0: 4611 mov r1, r2 80061e2: 4618 mov r0, r3 80061e4: f7ff ffda bl 800619c TP_Read_XY_ADC(&x2,&y2); 80061e8: f107 0208 add.w r2, r7, #8 80061ec: f107 030a add.w r3, r7, #10 80061f0: 4611 mov r1, r2 80061f2: 4618 mov r0, r3 80061f4: f7ff ffd2 bl 800619c if(((x2<=x1&&x1 8006204: f9b7 300a ldrsh.w r3, [r7, #10] 8006208: 3309 adds r3, #9 800620a: f9b7 200e ldrsh.w r2, [r7, #14] 800620e: 4293 cmp r3, r2 8006210: da0c bge.n 800622c 8006212: f9b7 200e ldrsh.w r2, [r7, #14] 8006216: f9b7 300a ldrsh.w r3, [r7, #10] 800621a: 429a cmp r2, r3 800621c: dc3a bgt.n 8006294 800621e: f9b7 300e ldrsh.w r3, [r7, #14] 8006222: 3309 adds r3, #9 8006224: f9b7 200a ldrsh.w r2, [r7, #10] 8006228: 4293 cmp r3, r2 800622a: db33 blt.n 8006294 &&((y2<=y1&&y1 8006238: f9b7 3008 ldrsh.w r3, [r7, #8] 800623c: 3309 adds r3, #9 800623e: f9b7 200c ldrsh.w r2, [r7, #12] 8006242: 4293 cmp r3, r2 8006244: da0c bge.n 8006260 8006246: f9b7 200c ldrsh.w r2, [r7, #12] 800624a: f9b7 3008 ldrsh.w r3, [r7, #8] 800624e: 429a cmp r2, r3 8006250: dc20 bgt.n 8006294 8006252: f9b7 300c ldrsh.w r3, [r7, #12] 8006256: 3309 adds r3, #9 8006258: f9b7 2008 ldrsh.w r2, [r7, #8] 800625c: 4293 cmp r3, r2 800625e: db19 blt.n 8006294 { *x=(x1+x2)/2; 8006260: f9b7 300e ldrsh.w r3, [r7, #14] 8006264: 461a mov r2, r3 8006266: f9b7 300a ldrsh.w r3, [r7, #10] 800626a: 4413 add r3, r2 800626c: 0fda lsrs r2, r3, #31 800626e: 4413 add r3, r2 8006270: 105b asrs r3, r3, #1 8006272: b21a sxth r2, r3 8006274: 687b ldr r3, [r7, #4] 8006276: 801a strh r2, [r3, #0] *y=(y1+y2)/2; 8006278: f9b7 300c ldrsh.w r3, [r7, #12] 800627c: 461a mov r2, r3 800627e: f9b7 3008 ldrsh.w r3, [r7, #8] 8006282: 4413 add r3, r2 8006284: 0fda lsrs r2, r3, #31 8006286: 4413 add r3, r2 8006288: 105b asrs r3, r3, #1 800628a: b21a sxth r2, r3 800628c: 683b ldr r3, [r7, #0] 800628e: 801a strh r2, [r3, #0] return 1; 8006290: 2301 movs r3, #1 8006292: e000 b.n 8006296 }else return 0; 8006294: 2300 movs r3, #0 } 8006296: 4618 mov r0, r3 8006298: 3710 adds r7, #16 800629a: 46bd mov sp, r7 800629c: bd80 pop {r7, pc} ... 080062a0 : touch_device t0;// t0 yyds~ touch_config tconfig; //´¥Ãþ¸üзþÎñ£¬×´Ì¬»úд·¨£¬Ñ­»·»ñÈ¡×ø±ê void TP_Server() { 80062a0: b598 push {r3, r4, r7, lr} 80062a2: af00 add r7, sp, #0 if(TPEN==0) //Èç¹ûÓд¥Ãþ 80062a4: f44f 6180 mov.w r1, #1024 ; 0x400 80062a8: 4835 ldr r0, [pc, #212] ; (8006380 ) 80062aa: f7fc f827 bl 80022fc 80062ae: 4603 mov r3, r0 80062b0: 2b00 cmp r3, #0 80062b2: d155 bne.n 8006360 { if(TP_Read_XY2(&t0.adc_x,&t0.adc_y)) 80062b4: 4933 ldr r1, [pc, #204] ; (8006384 ) 80062b6: 4834 ldr r0, [pc, #208] ; (8006388 ) 80062b8: f7ff ff89 bl 80061ce 80062bc: 4603 mov r3, r0 80062be: 2b00 cmp r3, #0 80062c0: d043 beq.n 800634a {//ÏȶÁÈ¡adÖµ t0.pix_x=(t0.adc_x/tconfig.x_acc)-tconfig.x_offset;//ת»»ÎªÏñËØ×ø±ê 80062c2: 4b31 ldr r3, [pc, #196] ; (8006388 ) 80062c4: 881b ldrh r3, [r3, #0] 80062c6: 4618 mov r0, r3 80062c8: f7fa fd54 bl 8000d74 <__aeabi_i2f> 80062cc: 4602 mov r2, r0 80062ce: 4b2f ldr r3, [pc, #188] ; (800638c ) 80062d0: 685b ldr r3, [r3, #4] 80062d2: 4619 mov r1, r3 80062d4: 4610 mov r0, r2 80062d6: f7fa fe55 bl 8000f84 <__aeabi_fdiv> 80062da: 4603 mov r3, r0 80062dc: 461c mov r4, r3 80062de: 4b2b ldr r3, [pc, #172] ; (800638c ) 80062e0: 68db ldr r3, [r3, #12] 80062e2: 4618 mov r0, r3 80062e4: f7fa fd46 bl 8000d74 <__aeabi_i2f> 80062e8: 4603 mov r3, r0 80062ea: 4619 mov r1, r3 80062ec: 4620 mov r0, r4 80062ee: f7fa fc8b bl 8000c08 <__aeabi_fsub> 80062f2: 4603 mov r3, r0 80062f4: 4618 mov r0, r3 80062f6: f7fa fee1 bl 80010bc <__aeabi_f2iz> 80062fa: 4603 mov r3, r0 80062fc: 4a22 ldr r2, [pc, #136] ; (8006388 ) 80062fe: 6053 str r3, [r2, #4] t0.pix_y=(t0.adc_y/tconfig.y_acc)-tconfig.y_offset; 8006300: 4b21 ldr r3, [pc, #132] ; (8006388 ) 8006302: 885b ldrh r3, [r3, #2] 8006304: 4618 mov r0, r3 8006306: f7fa fd35 bl 8000d74 <__aeabi_i2f> 800630a: 4602 mov r2, r0 800630c: 4b1f ldr r3, [pc, #124] ; (800638c ) 800630e: 689b ldr r3, [r3, #8] 8006310: 4619 mov r1, r3 8006312: 4610 mov r0, r2 8006314: f7fa fe36 bl 8000f84 <__aeabi_fdiv> 8006318: 4603 mov r3, r0 800631a: 461c mov r4, r3 800631c: 4b1b ldr r3, [pc, #108] ; (800638c ) 800631e: 691b ldr r3, [r3, #16] 8006320: 4618 mov r0, r3 8006322: f7fa fd27 bl 8000d74 <__aeabi_i2f> 8006326: 4603 mov r3, r0 8006328: 4619 mov r1, r3 800632a: 4620 mov r0, r4 800632c: f7fa fc6c bl 8000c08 <__aeabi_fsub> 8006330: 4603 mov r3, r0 8006332: 4618 mov r0, r3 8006334: f7fa fec2 bl 80010bc <__aeabi_f2iz> 8006338: 4603 mov r3, r0 800633a: 4a13 ldr r2, [pc, #76] ; (8006388 ) 800633c: 6093 str r3, [r2, #8] t0.d=1; 800633e: 4a12 ldr r2, [pc, #72] ; (8006388 ) 8006340: 7b13 ldrb r3, [r2, #12] 8006342: f043 0304 orr.w r3, r3, #4 8006346: 7313 strb r3, [r2, #12] 8006348: e004 b.n 8006354 }else { t0.d=0; 800634a: 4a0f ldr r2, [pc, #60] ; (8006388 ) 800634c: 7b13 ldrb r3, [r2, #12] 800634e: f36f 0382 bfc r3, #2, #1 8006352: 7313 strb r3, [r2, #12] } t0.c=1; 8006354: 4a0c ldr r2, [pc, #48] ; (8006388 ) 8006356: 7b13 ldrb r3, [r2, #12] 8006358: f043 0302 orr.w r3, r3, #2 800635c: 7313 strb r3, [r2, #12] { t0.c=0; t0.pix_x=-1; t0.pix_y=-1; } } 800635e: e00c b.n 800637a t0.c=0; 8006360: 4a09 ldr r2, [pc, #36] ; (8006388 ) 8006362: 7b13 ldrb r3, [r2, #12] 8006364: f36f 0341 bfc r3, #1, #1 8006368: 7313 strb r3, [r2, #12] t0.pix_x=-1; 800636a: 4b07 ldr r3, [pc, #28] ; (8006388 ) 800636c: f04f 32ff mov.w r2, #4294967295 8006370: 605a str r2, [r3, #4] t0.pix_y=-1; 8006372: 4b05 ldr r3, [pc, #20] ; (8006388 ) 8006374: f04f 32ff mov.w r2, #4294967295 8006378: 609a str r2, [r3, #8] } 800637a: bf00 nop 800637c: bd98 pop {r3, r4, r7, pc} 800637e: bf00 nop 8006380: 40011c00 .word 0x40011c00 8006384: 200003de .word 0x200003de 8006388: 200003dc .word 0x200003dc 800638c: 200003ec .word 0x200003ec 08006390 : return 0; } //У׼Ó㬻­Ò»¸öÄ¿±ê×ø±ê //r=×ø±ê°ë¾¶£¬ÏÔÊ¾ÌØÐ§Óà void TP_DrwaTrage(int x,int y,int r) { 8006390: b590 push {r4, r7, lr} 8006392: b087 sub sp, #28 8006394: af02 add r7, sp, #8 8006396: 60f8 str r0, [r7, #12] 8006398: 60b9 str r1, [r7, #8] 800639a: 607a str r2, [r7, #4] Draw_Circle(x,y,r+1,GRAY); 800639c: 68fb ldr r3, [r7, #12] 800639e: b298 uxth r0, r3 80063a0: 68bb ldr r3, [r7, #8] 80063a2: b299 uxth r1, r3 80063a4: 687b ldr r3, [r7, #4] 80063a6: b29b uxth r3, r3 80063a8: 3301 adds r3, #1 80063aa: b29a uxth r2, r3 80063ac: f248 4330 movw r3, #33840 ; 0x8430 80063b0: f7ff fa91 bl 80058d6 Draw_Circle(x,y,r,RED); 80063b4: 68fb ldr r3, [r7, #12] 80063b6: b298 uxth r0, r3 80063b8: 68bb ldr r3, [r7, #8] 80063ba: b299 uxth r1, r3 80063bc: 687b ldr r3, [r7, #4] 80063be: b29a uxth r2, r3 80063c0: f44f 4378 mov.w r3, #63488 ; 0xf800 80063c4: f7ff fa87 bl 80058d6 LCD_DrawLine(x,y,x+10,y,RED); 80063c8: 68fb ldr r3, [r7, #12] 80063ca: b298 uxth r0, r3 80063cc: 68bb ldr r3, [r7, #8] 80063ce: b299 uxth r1, r3 80063d0: 68fb ldr r3, [r7, #12] 80063d2: b29b uxth r3, r3 80063d4: 330a adds r3, #10 80063d6: b29a uxth r2, r3 80063d8: 68bb ldr r3, [r7, #8] 80063da: b29b uxth r3, r3 80063dc: f44f 4478 mov.w r4, #63488 ; 0xf800 80063e0: 9400 str r4, [sp, #0] 80063e2: f7ff f9f3 bl 80057cc LCD_DrawLine(x,y,x,y+10,RED); 80063e6: 68fb ldr r3, [r7, #12] 80063e8: b298 uxth r0, r3 80063ea: 68bb ldr r3, [r7, #8] 80063ec: b299 uxth r1, r3 80063ee: 68fb ldr r3, [r7, #12] 80063f0: b29a uxth r2, r3 80063f2: 68bb ldr r3, [r7, #8] 80063f4: b29b uxth r3, r3 80063f6: 330a adds r3, #10 80063f8: b29b uxth r3, r3 80063fa: f44f 4478 mov.w r4, #63488 ; 0xf800 80063fe: 9400 str r4, [sp, #0] 8006400: f7ff f9e4 bl 80057cc LCD_DrawLine(x,y,x-10,y,RED); 8006404: 68fb ldr r3, [r7, #12] 8006406: b298 uxth r0, r3 8006408: 68bb ldr r3, [r7, #8] 800640a: b299 uxth r1, r3 800640c: 68fb ldr r3, [r7, #12] 800640e: b29b uxth r3, r3 8006410: 3b0a subs r3, #10 8006412: b29a uxth r2, r3 8006414: 68bb ldr r3, [r7, #8] 8006416: b29b uxth r3, r3 8006418: f44f 4478 mov.w r4, #63488 ; 0xf800 800641c: 9400 str r4, [sp, #0] 800641e: f7ff f9d5 bl 80057cc LCD_DrawLine(x,y,x,y-10,RED); 8006422: 68fb ldr r3, [r7, #12] 8006424: b298 uxth r0, r3 8006426: 68bb ldr r3, [r7, #8] 8006428: b299 uxth r1, r3 800642a: 68fb ldr r3, [r7, #12] 800642c: b29a uxth r2, r3 800642e: 68bb ldr r3, [r7, #8] 8006430: b29b uxth r3, r3 8006432: 3b0a subs r3, #10 8006434: b29b uxth r3, r3 8006436: f44f 4478 mov.w r4, #63488 ; 0xf800 800643a: 9400 str r4, [sp, #0] 800643c: f7ff f9c6 bl 80057cc } 8006440: bf00 nop 8006442: 3714 adds r7, #20 8006444: 46bd mov sp, r7 8006446: bd90 pop {r4, r7, pc} 08006448 : //´¥ÃþÆÁУ׼ //mode У׼ģʽ£¬0 ±»¶¯Ð£×¼ £¬1 Ö÷¶¯Ð£×¼ void TP_adjustment(char mode) { 8006448: b5b0 push {r4, r5, r7, lr} 800644a: b0a6 sub sp, #152 ; 0x98 800644c: af02 add r7, sp, #8 800644e: 4603 mov r3, r0 8006450: 71fb strb r3, [r7, #7] //ÅжÏÊÇ·ñÐèҪУ׼£¬´Óeeprom»ñÈ¡Êý¾Ý EEPROM_READ_BATY(16,(char *)&tconfig,sizeof(touch_config)); 8006452: 2218 movs r2, #24 8006454: 4917 ldr r1, [pc, #92] ; (80064b4 ) 8006456: 2010 movs r0, #16 8006458: f7ff fc9c bl 8005d94 if(tconfig.begin==0xab&&tconfig.end==0xcd&&mode==0) //ÅжÏУ׼±ê¼Ç 800645c: 4b15 ldr r3, [pc, #84] ; (80064b4 ) 800645e: 781b ldrb r3, [r3, #0] 8006460: 2bab cmp r3, #171 ; 0xab 8006462: d107 bne.n 8006474 8006464: 4b13 ldr r3, [pc, #76] ; (80064b4 ) 8006466: 7d1b ldrb r3, [r3, #20] 8006468: 2bcd cmp r3, #205 ; 0xcd 800646a: d103 bne.n 8006474 800646c: 79fb ldrb r3, [r7, #7] 800646e: 2b00 cmp r3, #0 8006470: f000 82b8 beq.w 80069e4 { return; //ÒѾ­Ð£×¼¹ýÁË } //У׼·½·¨±È½Ï¼òµ¥£¬¶ÁÈ¡4¸ö×ø±ê¼ÆËãadÖµÓëÏñËØµÄ¹ØÏµ char str[64]; //ÓÃÓÚ×Ö·û´®Ìáʾ uint16_t y_adc,x_adc,step=0,r=10; //adc»º´æ£¬Ð£×¼²½Öè£¬×ø±êµÄ°ë¾¶ 8006474: 2300 movs r3, #0 8006476: f8a7 308e strh.w r3, [r7, #142] ; 0x8e 800647a: 230a movs r3, #10 800647c: f8a7 308c strh.w r3, [r7, #140] ; 0x8c uint16_t y1,y2,y3,y4,x1,x2,x3,x4; //4¸öµã»º´æ int y5,x5,xd,xl,yd,yl; //ͨ¹ý4¸öµãËã³öxyµÄ³¤±ßºÍ¶Ì±ß float acc_x,acc_y; //Ëã³öµÄ¹ØÏµ±¶ÂÊ int offset_x,offset_y; //Ëã³öµÄÆ«²î uint32_t wait=HAL_GetTick()+50000,ms100=0; //У׼ʱ¼ä£¬50Ãëû²Ù×÷¾Í×Ô¶¯Í˳ö 8006480: f7fb fc6c bl 8001d5c 8006484: 4603 mov r3, r0 8006486: f503 4343 add.w r3, r3, #49920 ; 0xc300 800648a: 3350 adds r3, #80 ; 0x50 800648c: 67bb str r3, [r7, #120] ; 0x78 800648e: 2300 movs r3, #0 8006490: 677b str r3, [r7, #116] ; 0x74 //ÏÔʾ×Ö·û´®Ìáʾ LCD_Clear(GRAY); 8006492: f248 4030 movw r0, #33840 ; 0x8430 8006496: f7ff f8cb bl 8005630 LCD_ShowString(0,50,"Calibrate the touch screen",16,RED,RED); 800649a: f44f 4378 mov.w r3, #63488 ; 0xf800 800649e: 9301 str r3, [sp, #4] 80064a0: f44f 4378 mov.w r3, #63488 ; 0xf800 80064a4: 9300 str r3, [sp, #0] 80064a6: 2310 movs r3, #16 80064a8: 4a03 ldr r2, [pc, #12] ; (80064b8 ) 80064aa: 2132 movs r1, #50 ; 0x32 80064ac: 2000 movs r0, #0 80064ae: f7ff fb39 bl 8005b24 //TP_DrwaTrage(30,30,10); //¿ªÊ¼Ð£×¼ while(HAL_GetTick() 80064b4: 200003ec .word 0x200003ec 80064b8: 0800a8a0 .word 0x0800a8a0 { if(TPEN==0) //Èç¹ûÆÁÄ»±»°´Ï 80064bc: f44f 6180 mov.w r1, #1024 ; 0x400 80064c0: 48ce ldr r0, [pc, #824] ; (80067fc ) 80064c2: f7fb ff1b bl 80022fc 80064c6: 4603 mov r3, r0 80064c8: 2b00 cmp r3, #0 80064ca: d14c bne.n 8006566 { wait=HAL_GetTick()+50000; //ÖØÖÃ50Ãë 80064cc: f7fb fc46 bl 8001d5c 80064d0: 4603 mov r3, r0 80064d2: f503 4343 add.w r3, r3, #49920 ; 0xc300 80064d6: 3350 adds r3, #80 ; 0x50 80064d8: 67bb str r3, [r7, #120] ; 0x78 TP_Read_XY2(&x_adc,&y_adc); //¶ÁÈ¡xy adÖµ 80064da: f107 020a add.w r2, r7, #10 80064de: f107 0308 add.w r3, r7, #8 80064e2: 4611 mov r1, r2 80064e4: 4618 mov r0, r3 80064e6: f7ff fe72 bl 80061ce //½«¶Áµ½µÄÖµÏÔʾ³öÀ´ sprintf(str,"ADC_X:%04d",x_adc); 80064ea: 893b ldrh r3, [r7, #8] 80064ec: 461a mov r2, r3 80064ee: f107 030c add.w r3, r7, #12 80064f2: 49c3 ldr r1, [pc, #780] ; (8006800 ) 80064f4: 4618 mov r0, r3 80064f6: f002 f923 bl 8008740 LCD_ShowString(100, 0, str, 16, RED, GRAY); 80064fa: f107 020c add.w r2, r7, #12 80064fe: f248 4330 movw r3, #33840 ; 0x8430 8006502: 9301 str r3, [sp, #4] 8006504: f44f 4378 mov.w r3, #63488 ; 0xf800 8006508: 9300 str r3, [sp, #0] 800650a: 2310 movs r3, #16 800650c: 2100 movs r1, #0 800650e: 2064 movs r0, #100 ; 0x64 8006510: f7ff fb08 bl 8005b24 sprintf(str,"ADC_Y:%04d",y_adc); 8006514: 897b ldrh r3, [r7, #10] 8006516: 461a mov r2, r3 8006518: f107 030c add.w r3, r7, #12 800651c: 49b9 ldr r1, [pc, #740] ; (8006804 ) 800651e: 4618 mov r0, r3 8006520: f002 f90e bl 8008740 LCD_ShowString(100, 16, str, 16, RED, GRAY); 8006524: f107 020c add.w r2, r7, #12 8006528: f248 4330 movw r3, #33840 ; 0x8430 800652c: 9301 str r3, [sp, #4] 800652e: f44f 4378 mov.w r3, #63488 ; 0xf800 8006532: 9300 str r3, [sp, #0] 8006534: 2310 movs r3, #16 8006536: 2110 movs r1, #16 8006538: 2064 movs r0, #100 ; 0x64 800653a: f7ff faf3 bl 8005b24 //ÌØÐ§£¬°ë¾¶¿ªÊ¼ÊÕËõ if(HAL_GetTick()>ms100) 800653e: f7fb fc0d bl 8001d5c 8006542: 4602 mov r2, r0 8006544: 6f7b ldr r3, [r7, #116] ; 0x74 8006546: 4293 cmp r3, r2 8006548: d20d bcs.n 8006566 { ms100=HAL_GetTick()+100; 800654a: f7fb fc07 bl 8001d5c 800654e: 4603 mov r3, r0 8006550: 3364 adds r3, #100 ; 0x64 8006552: 677b str r3, [r7, #116] ; 0x74 if(r>0){r--;} 8006554: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c 8006558: 2b00 cmp r3, #0 800655a: d004 beq.n 8006566 800655c: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c 8006560: 3b01 subs r3, #1 8006562: f8a7 308c strh.w r3, [r7, #140] ; 0x8c } } //²½Öè0£¬½«µã»­ÔÚ£¨30£¬30£©´Ëʱ°ë¾¶Îª10 if(step==0) 8006566: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 800656a: 2b00 cmp r3, #0 800656c: d12b bne.n 80065c6 { TP_DrwaTrage(30,30,r); 800656e: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c 8006572: 461a mov r2, r3 8006574: 211e movs r1, #30 8006576: 201e movs r0, #30 8006578: f7ff ff0a bl 8006390 if(r==0)//µ±°ë¾¶ÊÕËõΪ0µÄʱºò 800657c: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c 8006580: 2b00 cmp r3, #0 8006582: d120 bne.n 80065c6 { //½øÈëÏÂÒ»¸ö²½Ö裬»º´æÕâ¸öµãµÄÖµ£¬ÏÔʾ³öÀ´ step+=1; 8006584: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 8006588: 3301 adds r3, #1 800658a: f8a7 308e strh.w r3, [r7, #142] ; 0x8e y1=y_adc; 800658e: 897b ldrh r3, [r7, #10] 8006590: f8a7 308a strh.w r3, [r7, #138] ; 0x8a x1=x_adc; 8006594: 893b ldrh r3, [r7, #8] 8006596: f8a7 3082 strh.w r3, [r7, #130] ; 0x82 sprintf(str,"point_1 x:%d y:%d",x1,y1); 800659a: f8b7 2082 ldrh.w r2, [r7, #130] ; 0x82 800659e: f8b7 308a ldrh.w r3, [r7, #138] ; 0x8a 80065a2: f107 000c add.w r0, r7, #12 80065a6: 4998 ldr r1, [pc, #608] ; (8006808 ) 80065a8: f002 f8ca bl 8008740 LCD_ShowString(0,66,str,16,RED,RED); 80065ac: f107 020c add.w r2, r7, #12 80065b0: f44f 4378 mov.w r3, #63488 ; 0xf800 80065b4: 9301 str r3, [sp, #4] 80065b6: f44f 4378 mov.w r3, #63488 ; 0xf800 80065ba: 9300 str r3, [sp, #0] 80065bc: 2310 movs r3, #16 80065be: 2142 movs r1, #66 ; 0x42 80065c0: 2000 movs r0, #0 80065c2: f7ff faaf bl 8005b24 } } //²½Öè1£¬µÈ´ýÆÁÄ»±»ËÉ¿ª£¬½øÈëÏÂÒ»¸ö²½Öè£¬ÖØÖð뾶 if(step==1) 80065c6: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 80065ca: 2b01 cmp r3, #1 80065cc: d10f bne.n 80065ee { if(TPEN==1) 80065ce: f44f 6180 mov.w r1, #1024 ; 0x400 80065d2: 488a ldr r0, [pc, #552] ; (80067fc ) 80065d4: f7fb fe92 bl 80022fc 80065d8: 4603 mov r3, r0 80065da: 2b01 cmp r3, #1 80065dc: d107 bne.n 80065ee { step+=1; 80065de: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 80065e2: 3301 adds r3, #1 80065e4: f8a7 308e strh.w r3, [r7, #142] ; 0x8e r=10; 80065e8: 230a movs r3, #10 80065ea: f8a7 308c strh.w r3, [r7, #140] ; 0x8c } } //ÏÂÃæ¼¸¸ö²½ÖèºÍÉÏÃæÒ»Ñù if(step==2) 80065ee: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 80065f2: 2b02 cmp r3, #2 80065f4: d12c bne.n 8006650 { TP_DrwaTrage(290,30,r); 80065f6: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c 80065fa: 461a mov r2, r3 80065fc: 211e movs r1, #30 80065fe: f44f 7091 mov.w r0, #290 ; 0x122 8006602: f7ff fec5 bl 8006390 if(r==0) 8006606: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c 800660a: 2b00 cmp r3, #0 800660c: d120 bne.n 8006650 { step+=1; 800660e: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 8006612: 3301 adds r3, #1 8006614: f8a7 308e strh.w r3, [r7, #142] ; 0x8e y2=y_adc; 8006618: 897b ldrh r3, [r7, #10] 800661a: f8a7 3088 strh.w r3, [r7, #136] ; 0x88 x2=x_adc; 800661e: 893b ldrh r3, [r7, #8] 8006620: f8a7 3080 strh.w r3, [r7, #128] ; 0x80 sprintf(str,"point_2 x:%d y:%d",x2,y2); 8006624: f8b7 2080 ldrh.w r2, [r7, #128] ; 0x80 8006628: f8b7 3088 ldrh.w r3, [r7, #136] ; 0x88 800662c: f107 000c add.w r0, r7, #12 8006630: 4976 ldr r1, [pc, #472] ; (800680c ) 8006632: f002 f885 bl 8008740 LCD_ShowString(0,66+16,str,16,RED,RED); 8006636: f107 020c add.w r2, r7, #12 800663a: f44f 4378 mov.w r3, #63488 ; 0xf800 800663e: 9301 str r3, [sp, #4] 8006640: f44f 4378 mov.w r3, #63488 ; 0xf800 8006644: 9300 str r3, [sp, #0] 8006646: 2310 movs r3, #16 8006648: 2152 movs r1, #82 ; 0x52 800664a: 2000 movs r0, #0 800664c: f7ff fa6a bl 8005b24 } } if(step==3) 8006650: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 8006654: 2b03 cmp r3, #3 8006656: d10f bne.n 8006678 { if(TPEN==1) 8006658: f44f 6180 mov.w r1, #1024 ; 0x400 800665c: 4867 ldr r0, [pc, #412] ; (80067fc ) 800665e: f7fb fe4d bl 80022fc 8006662: 4603 mov r3, r0 8006664: 2b01 cmp r3, #1 8006666: d107 bne.n 8006678 { step+=1; 8006668: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 800666c: 3301 adds r3, #1 800666e: f8a7 308e strh.w r3, [r7, #142] ; 0x8e r=10; 8006672: 230a movs r3, #10 8006674: f8a7 308c strh.w r3, [r7, #140] ; 0x8c } } if(step==4) 8006678: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 800667c: 2b04 cmp r3, #4 800667e: d12b bne.n 80066d8 { TP_DrwaTrage(30,210,r); 8006680: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c 8006684: 461a mov r2, r3 8006686: 21d2 movs r1, #210 ; 0xd2 8006688: 201e movs r0, #30 800668a: f7ff fe81 bl 8006390 if(r==0) 800668e: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c 8006692: 2b00 cmp r3, #0 8006694: d120 bne.n 80066d8 { step+=1; 8006696: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 800669a: 3301 adds r3, #1 800669c: f8a7 308e strh.w r3, [r7, #142] ; 0x8e y3=y_adc; 80066a0: 897b ldrh r3, [r7, #10] 80066a2: f8a7 3086 strh.w r3, [r7, #134] ; 0x86 x3=x_adc; 80066a6: 893b ldrh r3, [r7, #8] 80066a8: f8a7 307e strh.w r3, [r7, #126] ; 0x7e sprintf(str,"point_3 x:%d y:%d",x3,y3); 80066ac: f8b7 207e ldrh.w r2, [r7, #126] ; 0x7e 80066b0: f8b7 3086 ldrh.w r3, [r7, #134] ; 0x86 80066b4: f107 000c add.w r0, r7, #12 80066b8: 4955 ldr r1, [pc, #340] ; (8006810 ) 80066ba: f002 f841 bl 8008740 LCD_ShowString(0,66+16+16,str,16,RED,RED); 80066be: f107 020c add.w r2, r7, #12 80066c2: f44f 4378 mov.w r3, #63488 ; 0xf800 80066c6: 9301 str r3, [sp, #4] 80066c8: f44f 4378 mov.w r3, #63488 ; 0xf800 80066cc: 9300 str r3, [sp, #0] 80066ce: 2310 movs r3, #16 80066d0: 2162 movs r1, #98 ; 0x62 80066d2: 2000 movs r0, #0 80066d4: f7ff fa26 bl 8005b24 } } if(step==5) 80066d8: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 80066dc: 2b05 cmp r3, #5 80066de: d10f bne.n 8006700 { if(TPEN==1) 80066e0: f44f 6180 mov.w r1, #1024 ; 0x400 80066e4: 4845 ldr r0, [pc, #276] ; (80067fc ) 80066e6: f7fb fe09 bl 80022fc 80066ea: 4603 mov r3, r0 80066ec: 2b01 cmp r3, #1 80066ee: d107 bne.n 8006700 { step+=1; 80066f0: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 80066f4: 3301 adds r3, #1 80066f6: f8a7 308e strh.w r3, [r7, #142] ; 0x8e r=10; 80066fa: 230a movs r3, #10 80066fc: f8a7 308c strh.w r3, [r7, #140] ; 0x8c } } if(step==6) 8006700: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 8006704: 2b06 cmp r3, #6 8006706: d12c bne.n 8006762 { TP_DrwaTrage(290,210,r); 8006708: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c 800670c: 461a mov r2, r3 800670e: 21d2 movs r1, #210 ; 0xd2 8006710: f44f 7091 mov.w r0, #290 ; 0x122 8006714: f7ff fe3c bl 8006390 if(r==0) 8006718: f8b7 308c ldrh.w r3, [r7, #140] ; 0x8c 800671c: 2b00 cmp r3, #0 800671e: d120 bne.n 8006762 { step+=1; 8006720: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 8006724: 3301 adds r3, #1 8006726: f8a7 308e strh.w r3, [r7, #142] ; 0x8e y4=y_adc; 800672a: 897b ldrh r3, [r7, #10] 800672c: f8a7 3084 strh.w r3, [r7, #132] ; 0x84 x4=x_adc; 8006730: 893b ldrh r3, [r7, #8] 8006732: f8a7 307c strh.w r3, [r7, #124] ; 0x7c sprintf(str,"point_4 x:%d y:%d",x4,y4); 8006736: f8b7 207c ldrh.w r2, [r7, #124] ; 0x7c 800673a: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 800673e: f107 000c add.w r0, r7, #12 8006742: 4934 ldr r1, [pc, #208] ; (8006814 ) 8006744: f001 fffc bl 8008740 LCD_ShowString(0,66+16+16+16,str,16,RED,RED); 8006748: f107 020c add.w r2, r7, #12 800674c: f44f 4378 mov.w r3, #63488 ; 0xf800 8006750: 9301 str r3, [sp, #4] 8006752: f44f 4378 mov.w r3, #63488 ; 0xf800 8006756: 9300 str r3, [sp, #0] 8006758: 2310 movs r3, #16 800675a: 2172 movs r1, #114 ; 0x72 800675c: 2000 movs r0, #0 800675e: f7ff f9e1 bl 8005b24 } } if(step==7) 8006762: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 8006766: 2b07 cmp r3, #7 8006768: d10f bne.n 800678a { if(TPEN==1) 800676a: f44f 6180 mov.w r1, #1024 ; 0x400 800676e: 4823 ldr r0, [pc, #140] ; (80067fc ) 8006770: f7fb fdc4 bl 80022fc 8006774: 4603 mov r3, r0 8006776: 2b01 cmp r3, #1 8006778: d107 bne.n 800678a { step+=1; 800677a: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 800677e: 3301 adds r3, #1 8006780: f8a7 308e strh.w r3, [r7, #142] ; 0x8e r=10; 8006784: 230a movs r3, #10 8006786: f8a7 308c strh.w r3, [r7, #140] ; 0x8c } } //µ±4¸öµã¶ÁÈ¡Í꣬¿ªÊ¼¼ÆËã¹ØÏµ if(step==8) 800678a: f8b7 308e ldrh.w r3, [r7, #142] ; 0x8e 800678e: 2b08 cmp r3, #8 8006790: f040 8120 bne.w 80069d4 { //ÆäʵֻÐèÒªÁ½¸öµã¾ÍÄÜУ׼£¬Í¨¹ýȡƽ¾ùÖµ»ñµÃxyµÄ³¤±ßºÍ¶Ì±ß xd=((x1+x3)/2); 8006794: f8b7 2082 ldrh.w r2, [r7, #130] ; 0x82 8006798: f8b7 307e ldrh.w r3, [r7, #126] ; 0x7e 800679c: 4413 add r3, r2 800679e: 0fda lsrs r2, r3, #31 80067a0: 4413 add r3, r2 80067a2: 105b asrs r3, r3, #1 80067a4: 673b str r3, [r7, #112] ; 0x70 xl=((x2+x4)/2); 80067a6: f8b7 2080 ldrh.w r2, [r7, #128] ; 0x80 80067aa: f8b7 307c ldrh.w r3, [r7, #124] ; 0x7c 80067ae: 4413 add r3, r2 80067b0: 0fda lsrs r2, r3, #31 80067b2: 4413 add r3, r2 80067b4: 105b asrs r3, r3, #1 80067b6: 66fb str r3, [r7, #108] ; 0x6c yd=((y1+y2)/2); 80067b8: f8b7 208a ldrh.w r2, [r7, #138] ; 0x8a 80067bc: f8b7 3088 ldrh.w r3, [r7, #136] ; 0x88 80067c0: 4413 add r3, r2 80067c2: 0fda lsrs r2, r3, #31 80067c4: 4413 add r3, r2 80067c6: 105b asrs r3, r3, #1 80067c8: 66bb str r3, [r7, #104] ; 0x68 yl=((y3+y4)/2); 80067ca: f8b7 2086 ldrh.w r2, [r7, #134] ; 0x86 80067ce: f8b7 3084 ldrh.w r3, [r7, #132] ; 0x84 80067d2: 4413 add r3, r2 80067d4: 0fda lsrs r2, r3, #31 80067d6: 4413 add r3, r2 80067d8: 105b asrs r3, r3, #1 80067da: 667b str r3, [r7, #100] ; 0x64 //³¤±ß¼õÈ¥¶Ì±ß¿ÉÒÔÔÙ»ñµÃÒ»¸öµã x5=xl-xd; 80067dc: 6efa ldr r2, [r7, #108] ; 0x6c 80067de: 6f3b ldr r3, [r7, #112] ; 0x70 80067e0: 1ad3 subs r3, r2, r3 80067e2: 663b str r3, [r7, #96] ; 0x60 y5=yl-yd; 80067e4: 6e7a ldr r2, [r7, #100] ; 0x64 80067e6: 6ebb ldr r3, [r7, #104] ; 0x68 80067e8: 1ad3 subs r3, r2, r3 80067ea: 65fb str r3, [r7, #92] ; 0x5c //Õâ¸öµãÈç¹ûÊǸºÊý£¬¿Ï¶¨ÓÐ´í£¬¿ÉÄÜÊÇxy¸ã·´ÁË if(x5<0||y5<0) 80067ec: 6e3b ldr r3, [r7, #96] ; 0x60 80067ee: 2b00 cmp r3, #0 80067f0: db12 blt.n 8006818 80067f2: 6dfb ldr r3, [r7, #92] ; 0x5c 80067f4: 2b00 cmp r3, #0 80067f6: da23 bge.n 8006840 80067f8: e00e b.n 8006818 80067fa: bf00 nop 80067fc: 40011c00 .word 0x40011c00 8006800: 0800a8bc .word 0x0800a8bc 8006804: 0800a8c8 .word 0x0800a8c8 8006808: 0800a8d4 .word 0x0800a8d4 800680c: 0800a8e8 .word 0x0800a8e8 8006810: 0800a8fc .word 0x0800a8fc 8006814: 0800a910 .word 0x0800a910 { //ÏÔʾerror sprintf(str,"ERROR"); 8006818: f107 030c add.w r3, r7, #12 800681c: 4973 ldr r1, [pc, #460] ; (80069ec ) 800681e: 4618 mov r0, r3 8006820: f001 ff8e bl 8008740 LCD_ShowString(0,66+16+16+16+16,str,16,RED, GRAY); 8006824: f107 020c add.w r2, r7, #12 8006828: f248 4330 movw r3, #33840 ; 0x8430 800682c: 9301 str r3, [sp, #4] 800682e: f44f 4378 mov.w r3, #63488 ; 0xf800 8006832: 9300 str r3, [sp, #0] 8006834: 2310 movs r3, #16 8006836: 2182 movs r1, #130 ; 0x82 8006838: 2000 movs r0, #0 800683a: f7ff f973 bl 8005b24 800683e: e0bf b.n 80069c0 }else { //¼ÆËã¹ØÏµ±¶ÂÊ //adµÄ³¤±ß¼õÈ¥¶Ì±ßÔÙ³ýȥʵ¼ÊÆÁÄ»ÏñËØµÄ³¤±ß¼õ¶Ì±ß£¨260=320-30-30£¬180=240-30-30£© acc_x=x5/260.0; 8006840: 6e38 ldr r0, [r7, #96] ; 0x60 8006842: f7f9 fe4b bl 80004dc <__aeabi_i2d> 8006846: f04f 0200 mov.w r2, #0 800684a: 4b69 ldr r3, [pc, #420] ; (80069f0 ) 800684c: f7f9 ffda bl 8000804 <__aeabi_ddiv> 8006850: 4602 mov r2, r0 8006852: 460b mov r3, r1 8006854: 4610 mov r0, r2 8006856: 4619 mov r1, r3 8006858: f7fa f982 bl 8000b60 <__aeabi_d2f> 800685c: 4603 mov r3, r0 800685e: 65bb str r3, [r7, #88] ; 0x58 acc_y=y5/180.0; 8006860: 6df8 ldr r0, [r7, #92] ; 0x5c 8006862: f7f9 fe3b bl 80004dc <__aeabi_i2d> 8006866: f04f 0200 mov.w r2, #0 800686a: 4b62 ldr r3, [pc, #392] ; (80069f4 ) 800686c: f7f9 ffca bl 8000804 <__aeabi_ddiv> 8006870: 4602 mov r2, r0 8006872: 460b mov r3, r1 8006874: 4610 mov r0, r2 8006876: 4619 mov r1, r3 8006878: f7fa f972 bl 8000b60 <__aeabi_d2f> 800687c: 4603 mov r3, r0 800687e: 657b str r3, [r7, #84] ; 0x54 //ÑéÖ¤±¶ÂÊ£¬½«Êµ¼ÊÖµ¼õÈ¥ÑéÖ¤Öµ¾ÍµÈÓÚÎó²îÖµ£¬ÒòΪÓÐÁ½¸öµã£¬ËùÒÔ¼ÆËãÁËÁ½¸öÎó²îºóÇóÁËÆ½¾ùÖµ offset_x=(((xd/acc_x)-30)+((xl/acc_x)-290))/2; 8006880: 6f38 ldr r0, [r7, #112] ; 0x70 8006882: f7fa fa77 bl 8000d74 <__aeabi_i2f> 8006886: 4603 mov r3, r0 8006888: 6db9 ldr r1, [r7, #88] ; 0x58 800688a: 4618 mov r0, r3 800688c: f7fa fb7a bl 8000f84 <__aeabi_fdiv> 8006890: 4603 mov r3, r0 8006892: 4959 ldr r1, [pc, #356] ; (80069f8 ) 8006894: 4618 mov r0, r3 8006896: f7fa f9b7 bl 8000c08 <__aeabi_fsub> 800689a: 4603 mov r3, r0 800689c: 461c mov r4, r3 800689e: 6ef8 ldr r0, [r7, #108] ; 0x6c 80068a0: f7fa fa68 bl 8000d74 <__aeabi_i2f> 80068a4: 4603 mov r3, r0 80068a6: 6db9 ldr r1, [r7, #88] ; 0x58 80068a8: 4618 mov r0, r3 80068aa: f7fa fb6b bl 8000f84 <__aeabi_fdiv> 80068ae: 4603 mov r3, r0 80068b0: 4952 ldr r1, [pc, #328] ; (80069fc ) 80068b2: 4618 mov r0, r3 80068b4: f7fa f9a8 bl 8000c08 <__aeabi_fsub> 80068b8: 4603 mov r3, r0 80068ba: 4619 mov r1, r3 80068bc: 4620 mov r0, r4 80068be: f7fa f9a5 bl 8000c0c <__addsf3> 80068c2: 4603 mov r3, r0 80068c4: f04f 4180 mov.w r1, #1073741824 ; 0x40000000 80068c8: 4618 mov r0, r3 80068ca: f7fa fb5b bl 8000f84 <__aeabi_fdiv> 80068ce: 4603 mov r3, r0 80068d0: 4618 mov r0, r3 80068d2: f7fa fbf3 bl 80010bc <__aeabi_f2iz> 80068d6: 4603 mov r3, r0 80068d8: 653b str r3, [r7, #80] ; 0x50 offset_y=(((yd/acc_y)-30)+((yl/acc_y)-210))/2; 80068da: 6eb8 ldr r0, [r7, #104] ; 0x68 80068dc: f7fa fa4a bl 8000d74 <__aeabi_i2f> 80068e0: 4603 mov r3, r0 80068e2: 6d79 ldr r1, [r7, #84] ; 0x54 80068e4: 4618 mov r0, r3 80068e6: f7fa fb4d bl 8000f84 <__aeabi_fdiv> 80068ea: 4603 mov r3, r0 80068ec: 4942 ldr r1, [pc, #264] ; (80069f8 ) 80068ee: 4618 mov r0, r3 80068f0: f7fa f98a bl 8000c08 <__aeabi_fsub> 80068f4: 4603 mov r3, r0 80068f6: 461c mov r4, r3 80068f8: 6e78 ldr r0, [r7, #100] ; 0x64 80068fa: f7fa fa3b bl 8000d74 <__aeabi_i2f> 80068fe: 4603 mov r3, r0 8006900: 6d79 ldr r1, [r7, #84] ; 0x54 8006902: 4618 mov r0, r3 8006904: f7fa fb3e bl 8000f84 <__aeabi_fdiv> 8006908: 4603 mov r3, r0 800690a: 493d ldr r1, [pc, #244] ; (8006a00 ) 800690c: 4618 mov r0, r3 800690e: f7fa f97b bl 8000c08 <__aeabi_fsub> 8006912: 4603 mov r3, r0 8006914: 4619 mov r1, r3 8006916: 4620 mov r0, r4 8006918: f7fa f978 bl 8000c0c <__addsf3> 800691c: 4603 mov r3, r0 800691e: f04f 4180 mov.w r1, #1073741824 ; 0x40000000 8006922: 4618 mov r0, r3 8006924: f7fa fb2e bl 8000f84 <__aeabi_fdiv> 8006928: 4603 mov r3, r0 800692a: 4618 mov r0, r3 800692c: f7fa fbc6 bl 80010bc <__aeabi_f2iz> 8006930: 4603 mov r3, r0 8006932: 64fb str r3, [r7, #76] ; 0x4c //±£´æ¼ÆËã½á¹û tconfig.x_acc=acc_x; 8006934: 4a33 ldr r2, [pc, #204] ; (8006a04 ) 8006936: 6dbb ldr r3, [r7, #88] ; 0x58 8006938: 6053 str r3, [r2, #4] tconfig.x_offset=offset_x; 800693a: 4a32 ldr r2, [pc, #200] ; (8006a04 ) 800693c: 6d3b ldr r3, [r7, #80] ; 0x50 800693e: 60d3 str r3, [r2, #12] tconfig.y_acc=acc_y; 8006940: 4a30 ldr r2, [pc, #192] ; (8006a04 ) 8006942: 6d7b ldr r3, [r7, #84] ; 0x54 8006944: 6093 str r3, [r2, #8] tconfig.y_offset=offset_y; 8006946: 4a2f ldr r2, [pc, #188] ; (8006a04 ) 8006948: 6cfb ldr r3, [r7, #76] ; 0x4c 800694a: 6113 str r3, [r2, #16] //eeprom¿é±ê¼Ç tconfig.begin=0xab; 800694c: 4b2d ldr r3, [pc, #180] ; (8006a04 ) 800694e: 22ab movs r2, #171 ; 0xab 8006950: 701a strb r2, [r3, #0] tconfig.end=0xcd; 8006952: 4b2c ldr r3, [pc, #176] ; (8006a04 ) 8006954: 22cd movs r2, #205 ; 0xcd 8006956: 751a strb r2, [r3, #20] //ÏÔʾ¼ÆËã½á¹û sprintf(str,"x_acc=%f y_acc=%f",acc_x,acc_y); 8006958: 6db8 ldr r0, [r7, #88] ; 0x58 800695a: f7f9 fdd1 bl 8000500 <__aeabi_f2d> 800695e: 4604 mov r4, r0 8006960: 460d mov r5, r1 8006962: 6d78 ldr r0, [r7, #84] ; 0x54 8006964: f7f9 fdcc bl 8000500 <__aeabi_f2d> 8006968: 4602 mov r2, r0 800696a: 460b mov r3, r1 800696c: f107 000c add.w r0, r7, #12 8006970: e9cd 2300 strd r2, r3, [sp] 8006974: 4622 mov r2, r4 8006976: 462b mov r3, r5 8006978: 4923 ldr r1, [pc, #140] ; (8006a08 ) 800697a: f001 fee1 bl 8008740 LCD_ShowString(0,66+16+16+16+16,str,16,RED,RED); 800697e: f107 020c add.w r2, r7, #12 8006982: f44f 4378 mov.w r3, #63488 ; 0xf800 8006986: 9301 str r3, [sp, #4] 8006988: f44f 4378 mov.w r3, #63488 ; 0xf800 800698c: 9300 str r3, [sp, #0] 800698e: 2310 movs r3, #16 8006990: 2182 movs r1, #130 ; 0x82 8006992: 2000 movs r0, #0 8006994: f7ff f8c6 bl 8005b24 sprintf(str,"x_offset=%d y_offset=%d",offset_x,offset_y); 8006998: f107 000c add.w r0, r7, #12 800699c: 6cfb ldr r3, [r7, #76] ; 0x4c 800699e: 6d3a ldr r2, [r7, #80] ; 0x50 80069a0: 491a ldr r1, [pc, #104] ; (8006a0c ) 80069a2: f001 fecd bl 8008740 LCD_ShowString(0,66+16+16+16+16+16,str,16,RED,RED); 80069a6: f107 020c add.w r2, r7, #12 80069aa: f44f 4378 mov.w r3, #63488 ; 0xf800 80069ae: 9301 str r3, [sp, #4] 80069b0: f44f 4378 mov.w r3, #63488 ; 0xf800 80069b4: 9300 str r3, [sp, #0] 80069b6: 2310 movs r3, #16 80069b8: 2192 movs r1, #146 ; 0x92 80069ba: 2000 movs r0, #0 80069bc: f7ff f8b2 bl 8005b24 } //½«½á¹û±£´æÆðÀ´ EEPROM_WRITE_BATY(16,(char *)&tconfig,sizeof(touch_config)); 80069c0: 2218 movs r2, #24 80069c2: 4910 ldr r1, [pc, #64] ; (8006a04 ) 80069c4: 2010 movs r0, #16 80069c6: f7ff f9f7 bl 8005db8 HAL_Delay(1000); 80069ca: f44f 707a mov.w r0, #1000 ; 0x3e8 80069ce: f7fb f9cf bl 8001d70 return; 80069d2: e008 b.n 80069e6 while(HAL_GetTick() 80069d8: 4602 mov r2, r0 80069da: 6fbb ldr r3, [r7, #120] ; 0x78 80069dc: 4293 cmp r3, r2 80069de: f63f ad6d bhi.w 80064bc 80069e2: e000 b.n 80069e6 return; //ÒѾ­Ð£×¼¹ýÁË 80069e4: bf00 nop } } } 80069e6: 3790 adds r7, #144 ; 0x90 80069e8: 46bd mov sp, r7 80069ea: bdb0 pop {r4, r5, r7, pc} 80069ec: 0800a924 .word 0x0800a924 80069f0: 40704000 .word 0x40704000 80069f4: 40668000 .word 0x40668000 80069f8: 41f00000 .word 0x41f00000 80069fc: 43910000 .word 0x43910000 8006a00: 43520000 .word 0x43520000 8006a04: 200003ec .word 0x200003ec 8006a08: 0800a92c .word 0x0800a92c 8006a0c: 0800a940 .word 0x0800a940 08006a10 : #include "APP_keyboard.h" window *keyboard_window; void APP_KEYBOARD_init(window *a_window) { 8006a10: b480 push {r7} 8006a12: b083 sub sp, #12 8006a14: af00 add r7, sp, #0 8006a16: 6078 str r0, [r7, #4] keyboard_window=a_window; 8006a18: 4a07 ldr r2, [pc, #28] ; (8006a38 ) 8006a1a: 687b ldr r3, [r7, #4] 8006a1c: 6013 str r3, [r2, #0] keyboard_window->high=146; 8006a1e: 4b06 ldr r3, [pc, #24] ; (8006a38 ) 8006a20: 681b ldr r3, [r3, #0] 8006a22: 2292 movs r2, #146 ; 0x92 8006a24: 60da str r2, [r3, #12] keyboard_window->width=180; 8006a26: 4b04 ldr r3, [pc, #16] ; (8006a38 ) 8006a28: 681b ldr r3, [r3, #0] 8006a2a: 22b4 movs r2, #180 ; 0xb4 8006a2c: 609a str r2, [r3, #8] } 8006a2e: bf00 nop 8006a30: 370c adds r7, #12 8006a32: 46bd mov sp, r7 8006a34: bc80 pop {r7} 8006a36: 4770 bx lr 8006a38: 20000404 .word 0x20000404 08006a3c : void down_one_key(int x,int y,char v) { 8006a3c: b590 push {r4, r7, lr} 8006a3e: b087 sub sp, #28 8006a40: af02 add r7, sp, #8 8006a42: 60f8 str r0, [r7, #12] 8006a44: 60b9 str r1, [r7, #8] 8006a46: 4613 mov r3, r2 8006a48: 71fb strb r3, [r7, #7] LCD_Fill(x,y,x+30,y+30,GRAY); 8006a4a: 68fb ldr r3, [r7, #12] 8006a4c: b298 uxth r0, r3 8006a4e: 68bb ldr r3, [r7, #8] 8006a50: b299 uxth r1, r3 8006a52: 68fb ldr r3, [r7, #12] 8006a54: b29b uxth r3, r3 8006a56: 331e adds r3, #30 8006a58: b29a uxth r2, r3 8006a5a: 68bb ldr r3, [r7, #8] 8006a5c: b29b uxth r3, r3 8006a5e: 331e adds r3, #30 8006a60: b29b uxth r3, r3 8006a62: f248 4430 movw r4, #33840 ; 0x8430 8006a66: 9400 str r4, [sp, #0] 8006a68: f7fe fe34 bl 80056d4 LCD_ShowChar(x+8,y+8,v,16,GRAY,WHITE); 8006a6c: 68fb ldr r3, [r7, #12] 8006a6e: f103 0008 add.w r0, r3, #8 8006a72: 68bb ldr r3, [r7, #8] 8006a74: f103 0108 add.w r1, r3, #8 8006a78: 79fa ldrb r2, [r7, #7] 8006a7a: f64f 73ff movw r3, #65535 ; 0xffff 8006a7e: 9301 str r3, [sp, #4] 8006a80: f248 4330 movw r3, #33840 ; 0x8430 8006a84: 9300 str r3, [sp, #0] 8006a86: 2310 movs r3, #16 8006a88: f7fe ffd0 bl 8005a2c } 8006a8c: bf00 nop 8006a8e: 3714 adds r7, #20 8006a90: 46bd mov sp, r7 8006a92: bd90 pop {r4, r7, pc} 08006a94 : char getkeyboardv(int x,int y) { 8006a94: b480 push {r7} 8006a96: b083 sub sp, #12 8006a98: af00 add r7, sp, #0 8006a9a: 6078 str r0, [r7, #4] 8006a9c: 6039 str r1, [r7, #0] if(x>keyboard_window->x+2&&xx+2+32&&y>keyboard_window->y+17&&yy+17+32) 8006a9e: 4b87 ldr r3, [pc, #540] ; (8006cbc ) 8006aa0: 681b ldr r3, [r3, #0] 8006aa2: 681b ldr r3, [r3, #0] 8006aa4: 3302 adds r3, #2 8006aa6: 687a ldr r2, [r7, #4] 8006aa8: 429a cmp r2, r3 8006aaa: dd16 ble.n 8006ada 8006aac: 4b83 ldr r3, [pc, #524] ; (8006cbc ) 8006aae: 681b ldr r3, [r3, #0] 8006ab0: 681b ldr r3, [r3, #0] 8006ab2: 3321 adds r3, #33 ; 0x21 8006ab4: 687a ldr r2, [r7, #4] 8006ab6: 429a cmp r2, r3 8006ab8: dc0f bgt.n 8006ada 8006aba: 4b80 ldr r3, [pc, #512] ; (8006cbc ) 8006abc: 681b ldr r3, [r3, #0] 8006abe: 685b ldr r3, [r3, #4] 8006ac0: 3311 adds r3, #17 8006ac2: 683a ldr r2, [r7, #0] 8006ac4: 429a cmp r2, r3 8006ac6: dd08 ble.n 8006ada 8006ac8: 4b7c ldr r3, [pc, #496] ; (8006cbc ) 8006aca: 681b ldr r3, [r3, #0] 8006acc: 685b ldr r3, [r3, #4] 8006ace: 3330 adds r3, #48 ; 0x30 8006ad0: 683a ldr r2, [r7, #0] 8006ad2: 429a cmp r2, r3 8006ad4: dc01 bgt.n 8006ada { return '0'; 8006ad6: 2330 movs r3, #48 ; 0x30 8006ad8: e201 b.n 8006ede } if(x>keyboard_window->x+34&&xx+34+32&&y>keyboard_window->y+17&&yy+17+32) 8006ada: 4b78 ldr r3, [pc, #480] ; (8006cbc ) 8006adc: 681b ldr r3, [r3, #0] 8006ade: 681b ldr r3, [r3, #0] 8006ae0: 3322 adds r3, #34 ; 0x22 8006ae2: 687a ldr r2, [r7, #4] 8006ae4: 429a cmp r2, r3 8006ae6: dd16 ble.n 8006b16 8006ae8: 4b74 ldr r3, [pc, #464] ; (8006cbc ) 8006aea: 681b ldr r3, [r3, #0] 8006aec: 681b ldr r3, [r3, #0] 8006aee: 3341 adds r3, #65 ; 0x41 8006af0: 687a ldr r2, [r7, #4] 8006af2: 429a cmp r2, r3 8006af4: dc0f bgt.n 8006b16 8006af6: 4b71 ldr r3, [pc, #452] ; (8006cbc ) 8006af8: 681b ldr r3, [r3, #0] 8006afa: 685b ldr r3, [r3, #4] 8006afc: 3311 adds r3, #17 8006afe: 683a ldr r2, [r7, #0] 8006b00: 429a cmp r2, r3 8006b02: dd08 ble.n 8006b16 8006b04: 4b6d ldr r3, [pc, #436] ; (8006cbc ) 8006b06: 681b ldr r3, [r3, #0] 8006b08: 685b ldr r3, [r3, #4] 8006b0a: 3330 adds r3, #48 ; 0x30 8006b0c: 683a ldr r2, [r7, #0] 8006b0e: 429a cmp r2, r3 8006b10: dc01 bgt.n 8006b16 { return '1'; 8006b12: 2331 movs r3, #49 ; 0x31 8006b14: e1e3 b.n 8006ede } if(x>keyboard_window->x+66&&xx+66+32&&y>keyboard_window->y+17&&yy+17+32) 8006b16: 4b69 ldr r3, [pc, #420] ; (8006cbc ) 8006b18: 681b ldr r3, [r3, #0] 8006b1a: 681b ldr r3, [r3, #0] 8006b1c: 3342 adds r3, #66 ; 0x42 8006b1e: 687a ldr r2, [r7, #4] 8006b20: 429a cmp r2, r3 8006b22: dd16 ble.n 8006b52 8006b24: 4b65 ldr r3, [pc, #404] ; (8006cbc ) 8006b26: 681b ldr r3, [r3, #0] 8006b28: 681b ldr r3, [r3, #0] 8006b2a: 3361 adds r3, #97 ; 0x61 8006b2c: 687a ldr r2, [r7, #4] 8006b2e: 429a cmp r2, r3 8006b30: dc0f bgt.n 8006b52 8006b32: 4b62 ldr r3, [pc, #392] ; (8006cbc ) 8006b34: 681b ldr r3, [r3, #0] 8006b36: 685b ldr r3, [r3, #4] 8006b38: 3311 adds r3, #17 8006b3a: 683a ldr r2, [r7, #0] 8006b3c: 429a cmp r2, r3 8006b3e: dd08 ble.n 8006b52 8006b40: 4b5e ldr r3, [pc, #376] ; (8006cbc ) 8006b42: 681b ldr r3, [r3, #0] 8006b44: 685b ldr r3, [r3, #4] 8006b46: 3330 adds r3, #48 ; 0x30 8006b48: 683a ldr r2, [r7, #0] 8006b4a: 429a cmp r2, r3 8006b4c: dc01 bgt.n 8006b52 { return '2'; 8006b4e: 2332 movs r3, #50 ; 0x32 8006b50: e1c5 b.n 8006ede } if(x>keyboard_window->x+98&&xx+98+32&&y>keyboard_window->y+17&&yy+17+32) 8006b52: 4b5a ldr r3, [pc, #360] ; (8006cbc ) 8006b54: 681b ldr r3, [r3, #0] 8006b56: 681b ldr r3, [r3, #0] 8006b58: 3362 adds r3, #98 ; 0x62 8006b5a: 687a ldr r2, [r7, #4] 8006b5c: 429a cmp r2, r3 8006b5e: dd16 ble.n 8006b8e 8006b60: 4b56 ldr r3, [pc, #344] ; (8006cbc ) 8006b62: 681b ldr r3, [r3, #0] 8006b64: 681b ldr r3, [r3, #0] 8006b66: 3381 adds r3, #129 ; 0x81 8006b68: 687a ldr r2, [r7, #4] 8006b6a: 429a cmp r2, r3 8006b6c: dc0f bgt.n 8006b8e 8006b6e: 4b53 ldr r3, [pc, #332] ; (8006cbc ) 8006b70: 681b ldr r3, [r3, #0] 8006b72: 685b ldr r3, [r3, #4] 8006b74: 3311 adds r3, #17 8006b76: 683a ldr r2, [r7, #0] 8006b78: 429a cmp r2, r3 8006b7a: dd08 ble.n 8006b8e 8006b7c: 4b4f ldr r3, [pc, #316] ; (8006cbc ) 8006b7e: 681b ldr r3, [r3, #0] 8006b80: 685b ldr r3, [r3, #4] 8006b82: 3330 adds r3, #48 ; 0x30 8006b84: 683a ldr r2, [r7, #0] 8006b86: 429a cmp r2, r3 8006b88: dc01 bgt.n 8006b8e { return '3'; 8006b8a: 2333 movs r3, #51 ; 0x33 8006b8c: e1a7 b.n 8006ede } if(x>keyboard_window->x+2&&xx+2+32&&y>keyboard_window->y+49&&yy+49+32) 8006b8e: 4b4b ldr r3, [pc, #300] ; (8006cbc ) 8006b90: 681b ldr r3, [r3, #0] 8006b92: 681b ldr r3, [r3, #0] 8006b94: 3302 adds r3, #2 8006b96: 687a ldr r2, [r7, #4] 8006b98: 429a cmp r2, r3 8006b9a: dd16 ble.n 8006bca 8006b9c: 4b47 ldr r3, [pc, #284] ; (8006cbc ) 8006b9e: 681b ldr r3, [r3, #0] 8006ba0: 681b ldr r3, [r3, #0] 8006ba2: 3321 adds r3, #33 ; 0x21 8006ba4: 687a ldr r2, [r7, #4] 8006ba6: 429a cmp r2, r3 8006ba8: dc0f bgt.n 8006bca 8006baa: 4b44 ldr r3, [pc, #272] ; (8006cbc ) 8006bac: 681b ldr r3, [r3, #0] 8006bae: 685b ldr r3, [r3, #4] 8006bb0: 3331 adds r3, #49 ; 0x31 8006bb2: 683a ldr r2, [r7, #0] 8006bb4: 429a cmp r2, r3 8006bb6: dd08 ble.n 8006bca 8006bb8: 4b40 ldr r3, [pc, #256] ; (8006cbc ) 8006bba: 681b ldr r3, [r3, #0] 8006bbc: 685b ldr r3, [r3, #4] 8006bbe: 3350 adds r3, #80 ; 0x50 8006bc0: 683a ldr r2, [r7, #0] 8006bc2: 429a cmp r2, r3 8006bc4: dc01 bgt.n 8006bca { return '4'; 8006bc6: 2334 movs r3, #52 ; 0x34 8006bc8: e189 b.n 8006ede } if(x>keyboard_window->x+34&&xx+34+32&&y>keyboard_window->y+49&&yy+49+32) 8006bca: 4b3c ldr r3, [pc, #240] ; (8006cbc ) 8006bcc: 681b ldr r3, [r3, #0] 8006bce: 681b ldr r3, [r3, #0] 8006bd0: 3322 adds r3, #34 ; 0x22 8006bd2: 687a ldr r2, [r7, #4] 8006bd4: 429a cmp r2, r3 8006bd6: dd16 ble.n 8006c06 8006bd8: 4b38 ldr r3, [pc, #224] ; (8006cbc ) 8006bda: 681b ldr r3, [r3, #0] 8006bdc: 681b ldr r3, [r3, #0] 8006bde: 3341 adds r3, #65 ; 0x41 8006be0: 687a ldr r2, [r7, #4] 8006be2: 429a cmp r2, r3 8006be4: dc0f bgt.n 8006c06 8006be6: 4b35 ldr r3, [pc, #212] ; (8006cbc ) 8006be8: 681b ldr r3, [r3, #0] 8006bea: 685b ldr r3, [r3, #4] 8006bec: 3331 adds r3, #49 ; 0x31 8006bee: 683a ldr r2, [r7, #0] 8006bf0: 429a cmp r2, r3 8006bf2: dd08 ble.n 8006c06 8006bf4: 4b31 ldr r3, [pc, #196] ; (8006cbc ) 8006bf6: 681b ldr r3, [r3, #0] 8006bf8: 685b ldr r3, [r3, #4] 8006bfa: 3350 adds r3, #80 ; 0x50 8006bfc: 683a ldr r2, [r7, #0] 8006bfe: 429a cmp r2, r3 8006c00: dc01 bgt.n 8006c06 { return '5'; 8006c02: 2335 movs r3, #53 ; 0x35 8006c04: e16b b.n 8006ede } if(x>keyboard_window->x+66&&xx+66+32&&y>keyboard_window->y+49&&yy+49+32) 8006c06: 4b2d ldr r3, [pc, #180] ; (8006cbc ) 8006c08: 681b ldr r3, [r3, #0] 8006c0a: 681b ldr r3, [r3, #0] 8006c0c: 3342 adds r3, #66 ; 0x42 8006c0e: 687a ldr r2, [r7, #4] 8006c10: 429a cmp r2, r3 8006c12: dd16 ble.n 8006c42 8006c14: 4b29 ldr r3, [pc, #164] ; (8006cbc ) 8006c16: 681b ldr r3, [r3, #0] 8006c18: 681b ldr r3, [r3, #0] 8006c1a: 3361 adds r3, #97 ; 0x61 8006c1c: 687a ldr r2, [r7, #4] 8006c1e: 429a cmp r2, r3 8006c20: dc0f bgt.n 8006c42 8006c22: 4b26 ldr r3, [pc, #152] ; (8006cbc ) 8006c24: 681b ldr r3, [r3, #0] 8006c26: 685b ldr r3, [r3, #4] 8006c28: 3331 adds r3, #49 ; 0x31 8006c2a: 683a ldr r2, [r7, #0] 8006c2c: 429a cmp r2, r3 8006c2e: dd08 ble.n 8006c42 8006c30: 4b22 ldr r3, [pc, #136] ; (8006cbc ) 8006c32: 681b ldr r3, [r3, #0] 8006c34: 685b ldr r3, [r3, #4] 8006c36: 3350 adds r3, #80 ; 0x50 8006c38: 683a ldr r2, [r7, #0] 8006c3a: 429a cmp r2, r3 8006c3c: dc01 bgt.n 8006c42 { return '6'; 8006c3e: 2336 movs r3, #54 ; 0x36 8006c40: e14d b.n 8006ede } if(x>keyboard_window->x+98&&xx+98+32&&y>keyboard_window->y+49&&yy+49+32) 8006c42: 4b1e ldr r3, [pc, #120] ; (8006cbc ) 8006c44: 681b ldr r3, [r3, #0] 8006c46: 681b ldr r3, [r3, #0] 8006c48: 3362 adds r3, #98 ; 0x62 8006c4a: 687a ldr r2, [r7, #4] 8006c4c: 429a cmp r2, r3 8006c4e: dd16 ble.n 8006c7e 8006c50: 4b1a ldr r3, [pc, #104] ; (8006cbc ) 8006c52: 681b ldr r3, [r3, #0] 8006c54: 681b ldr r3, [r3, #0] 8006c56: 3381 adds r3, #129 ; 0x81 8006c58: 687a ldr r2, [r7, #4] 8006c5a: 429a cmp r2, r3 8006c5c: dc0f bgt.n 8006c7e 8006c5e: 4b17 ldr r3, [pc, #92] ; (8006cbc ) 8006c60: 681b ldr r3, [r3, #0] 8006c62: 685b ldr r3, [r3, #4] 8006c64: 3331 adds r3, #49 ; 0x31 8006c66: 683a ldr r2, [r7, #0] 8006c68: 429a cmp r2, r3 8006c6a: dd08 ble.n 8006c7e 8006c6c: 4b13 ldr r3, [pc, #76] ; (8006cbc ) 8006c6e: 681b ldr r3, [r3, #0] 8006c70: 685b ldr r3, [r3, #4] 8006c72: 3350 adds r3, #80 ; 0x50 8006c74: 683a ldr r2, [r7, #0] 8006c76: 429a cmp r2, r3 8006c78: dc01 bgt.n 8006c7e { return '7'; 8006c7a: 2337 movs r3, #55 ; 0x37 8006c7c: e12f b.n 8006ede } if(x>keyboard_window->x+2&&xx+2+32&&y>keyboard_window->y+81&&yy+81+32) 8006c7e: 4b0f ldr r3, [pc, #60] ; (8006cbc ) 8006c80: 681b ldr r3, [r3, #0] 8006c82: 681b ldr r3, [r3, #0] 8006c84: 3302 adds r3, #2 8006c86: 687a ldr r2, [r7, #4] 8006c88: 429a cmp r2, r3 8006c8a: dd19 ble.n 8006cc0 8006c8c: 4b0b ldr r3, [pc, #44] ; (8006cbc ) 8006c8e: 681b ldr r3, [r3, #0] 8006c90: 681b ldr r3, [r3, #0] 8006c92: 3321 adds r3, #33 ; 0x21 8006c94: 687a ldr r2, [r7, #4] 8006c96: 429a cmp r2, r3 8006c98: dc12 bgt.n 8006cc0 8006c9a: 4b08 ldr r3, [pc, #32] ; (8006cbc ) 8006c9c: 681b ldr r3, [r3, #0] 8006c9e: 685b ldr r3, [r3, #4] 8006ca0: 3351 adds r3, #81 ; 0x51 8006ca2: 683a ldr r2, [r7, #0] 8006ca4: 429a cmp r2, r3 8006ca6: dd0b ble.n 8006cc0 8006ca8: 4b04 ldr r3, [pc, #16] ; (8006cbc ) 8006caa: 681b ldr r3, [r3, #0] 8006cac: 685b ldr r3, [r3, #4] 8006cae: 3370 adds r3, #112 ; 0x70 8006cb0: 683a ldr r2, [r7, #0] 8006cb2: 429a cmp r2, r3 8006cb4: dc04 bgt.n 8006cc0 { return '8'; 8006cb6: 2338 movs r3, #56 ; 0x38 8006cb8: e111 b.n 8006ede 8006cba: bf00 nop 8006cbc: 20000404 .word 0x20000404 } if(x>keyboard_window->x+34&&xx+34+32&&y>keyboard_window->y+81&&yy+81+32) 8006cc0: 4b89 ldr r3, [pc, #548] ; (8006ee8 ) 8006cc2: 681b ldr r3, [r3, #0] 8006cc4: 681b ldr r3, [r3, #0] 8006cc6: 3322 adds r3, #34 ; 0x22 8006cc8: 687a ldr r2, [r7, #4] 8006cca: 429a cmp r2, r3 8006ccc: dd16 ble.n 8006cfc 8006cce: 4b86 ldr r3, [pc, #536] ; (8006ee8 ) 8006cd0: 681b ldr r3, [r3, #0] 8006cd2: 681b ldr r3, [r3, #0] 8006cd4: 3341 adds r3, #65 ; 0x41 8006cd6: 687a ldr r2, [r7, #4] 8006cd8: 429a cmp r2, r3 8006cda: dc0f bgt.n 8006cfc 8006cdc: 4b82 ldr r3, [pc, #520] ; (8006ee8 ) 8006cde: 681b ldr r3, [r3, #0] 8006ce0: 685b ldr r3, [r3, #4] 8006ce2: 3351 adds r3, #81 ; 0x51 8006ce4: 683a ldr r2, [r7, #0] 8006ce6: 429a cmp r2, r3 8006ce8: dd08 ble.n 8006cfc 8006cea: 4b7f ldr r3, [pc, #508] ; (8006ee8 ) 8006cec: 681b ldr r3, [r3, #0] 8006cee: 685b ldr r3, [r3, #4] 8006cf0: 3370 adds r3, #112 ; 0x70 8006cf2: 683a ldr r2, [r7, #0] 8006cf4: 429a cmp r2, r3 8006cf6: dc01 bgt.n 8006cfc { return '9'; 8006cf8: 2339 movs r3, #57 ; 0x39 8006cfa: e0f0 b.n 8006ede } if(x>keyboard_window->x+66&&xx+66+32&&y>keyboard_window->y+81&&yy+81+32) 8006cfc: 4b7a ldr r3, [pc, #488] ; (8006ee8 ) 8006cfe: 681b ldr r3, [r3, #0] 8006d00: 681b ldr r3, [r3, #0] 8006d02: 3342 adds r3, #66 ; 0x42 8006d04: 687a ldr r2, [r7, #4] 8006d06: 429a cmp r2, r3 8006d08: dd16 ble.n 8006d38 8006d0a: 4b77 ldr r3, [pc, #476] ; (8006ee8 ) 8006d0c: 681b ldr r3, [r3, #0] 8006d0e: 681b ldr r3, [r3, #0] 8006d10: 3361 adds r3, #97 ; 0x61 8006d12: 687a ldr r2, [r7, #4] 8006d14: 429a cmp r2, r3 8006d16: dc0f bgt.n 8006d38 8006d18: 4b73 ldr r3, [pc, #460] ; (8006ee8 ) 8006d1a: 681b ldr r3, [r3, #0] 8006d1c: 685b ldr r3, [r3, #4] 8006d1e: 3351 adds r3, #81 ; 0x51 8006d20: 683a ldr r2, [r7, #0] 8006d22: 429a cmp r2, r3 8006d24: dd08 ble.n 8006d38 8006d26: 4b70 ldr r3, [pc, #448] ; (8006ee8 ) 8006d28: 681b ldr r3, [r3, #0] 8006d2a: 685b ldr r3, [r3, #4] 8006d2c: 3370 adds r3, #112 ; 0x70 8006d2e: 683a ldr r2, [r7, #0] 8006d30: 429a cmp r2, r3 8006d32: dc01 bgt.n 8006d38 { return 'A'; 8006d34: 2341 movs r3, #65 ; 0x41 8006d36: e0d2 b.n 8006ede } if(x>keyboard_window->x+98&&xx+98+32&&y>keyboard_window->y+81&&yy+81+32) 8006d38: 4b6b ldr r3, [pc, #428] ; (8006ee8 ) 8006d3a: 681b ldr r3, [r3, #0] 8006d3c: 681b ldr r3, [r3, #0] 8006d3e: 3362 adds r3, #98 ; 0x62 8006d40: 687a ldr r2, [r7, #4] 8006d42: 429a cmp r2, r3 8006d44: dd16 ble.n 8006d74 8006d46: 4b68 ldr r3, [pc, #416] ; (8006ee8 ) 8006d48: 681b ldr r3, [r3, #0] 8006d4a: 681b ldr r3, [r3, #0] 8006d4c: 3381 adds r3, #129 ; 0x81 8006d4e: 687a ldr r2, [r7, #4] 8006d50: 429a cmp r2, r3 8006d52: dc0f bgt.n 8006d74 8006d54: 4b64 ldr r3, [pc, #400] ; (8006ee8 ) 8006d56: 681b ldr r3, [r3, #0] 8006d58: 685b ldr r3, [r3, #4] 8006d5a: 3351 adds r3, #81 ; 0x51 8006d5c: 683a ldr r2, [r7, #0] 8006d5e: 429a cmp r2, r3 8006d60: dd08 ble.n 8006d74 8006d62: 4b61 ldr r3, [pc, #388] ; (8006ee8 ) 8006d64: 681b ldr r3, [r3, #0] 8006d66: 685b ldr r3, [r3, #4] 8006d68: 3370 adds r3, #112 ; 0x70 8006d6a: 683a ldr r2, [r7, #0] 8006d6c: 429a cmp r2, r3 8006d6e: dc01 bgt.n 8006d74 { return 'B'; 8006d70: 2342 movs r3, #66 ; 0x42 8006d72: e0b4 b.n 8006ede } if(x>keyboard_window->x+2&&xx+2+32&&y>keyboard_window->y+113&&yy+113+32) 8006d74: 4b5c ldr r3, [pc, #368] ; (8006ee8 ) 8006d76: 681b ldr r3, [r3, #0] 8006d78: 681b ldr r3, [r3, #0] 8006d7a: 3302 adds r3, #2 8006d7c: 687a ldr r2, [r7, #4] 8006d7e: 429a cmp r2, r3 8006d80: dd16 ble.n 8006db0 8006d82: 4b59 ldr r3, [pc, #356] ; (8006ee8 ) 8006d84: 681b ldr r3, [r3, #0] 8006d86: 681b ldr r3, [r3, #0] 8006d88: 3321 adds r3, #33 ; 0x21 8006d8a: 687a ldr r2, [r7, #4] 8006d8c: 429a cmp r2, r3 8006d8e: dc0f bgt.n 8006db0 8006d90: 4b55 ldr r3, [pc, #340] ; (8006ee8 ) 8006d92: 681b ldr r3, [r3, #0] 8006d94: 685b ldr r3, [r3, #4] 8006d96: 3371 adds r3, #113 ; 0x71 8006d98: 683a ldr r2, [r7, #0] 8006d9a: 429a cmp r2, r3 8006d9c: dd08 ble.n 8006db0 8006d9e: 4b52 ldr r3, [pc, #328] ; (8006ee8 ) 8006da0: 681b ldr r3, [r3, #0] 8006da2: 685b ldr r3, [r3, #4] 8006da4: 3390 adds r3, #144 ; 0x90 8006da6: 683a ldr r2, [r7, #0] 8006da8: 429a cmp r2, r3 8006daa: dc01 bgt.n 8006db0 { return 'C'; 8006dac: 2343 movs r3, #67 ; 0x43 8006dae: e096 b.n 8006ede } if(x>keyboard_window->x+34&&xx+34+32&&y>keyboard_window->y+113&&yy+113+32) 8006db0: 4b4d ldr r3, [pc, #308] ; (8006ee8 ) 8006db2: 681b ldr r3, [r3, #0] 8006db4: 681b ldr r3, [r3, #0] 8006db6: 3322 adds r3, #34 ; 0x22 8006db8: 687a ldr r2, [r7, #4] 8006dba: 429a cmp r2, r3 8006dbc: dd16 ble.n 8006dec 8006dbe: 4b4a ldr r3, [pc, #296] ; (8006ee8 ) 8006dc0: 681b ldr r3, [r3, #0] 8006dc2: 681b ldr r3, [r3, #0] 8006dc4: 3341 adds r3, #65 ; 0x41 8006dc6: 687a ldr r2, [r7, #4] 8006dc8: 429a cmp r2, r3 8006dca: dc0f bgt.n 8006dec 8006dcc: 4b46 ldr r3, [pc, #280] ; (8006ee8 ) 8006dce: 681b ldr r3, [r3, #0] 8006dd0: 685b ldr r3, [r3, #4] 8006dd2: 3371 adds r3, #113 ; 0x71 8006dd4: 683a ldr r2, [r7, #0] 8006dd6: 429a cmp r2, r3 8006dd8: dd08 ble.n 8006dec 8006dda: 4b43 ldr r3, [pc, #268] ; (8006ee8 ) 8006ddc: 681b ldr r3, [r3, #0] 8006dde: 685b ldr r3, [r3, #4] 8006de0: 3390 adds r3, #144 ; 0x90 8006de2: 683a ldr r2, [r7, #0] 8006de4: 429a cmp r2, r3 8006de6: dc01 bgt.n 8006dec { return 'D'; 8006de8: 2344 movs r3, #68 ; 0x44 8006dea: e078 b.n 8006ede } if(x>keyboard_window->x+66&&xx+66+32&&y>keyboard_window->y+113&&yy+113+32) 8006dec: 4b3e ldr r3, [pc, #248] ; (8006ee8 ) 8006dee: 681b ldr r3, [r3, #0] 8006df0: 681b ldr r3, [r3, #0] 8006df2: 3342 adds r3, #66 ; 0x42 8006df4: 687a ldr r2, [r7, #4] 8006df6: 429a cmp r2, r3 8006df8: dd16 ble.n 8006e28 8006dfa: 4b3b ldr r3, [pc, #236] ; (8006ee8 ) 8006dfc: 681b ldr r3, [r3, #0] 8006dfe: 681b ldr r3, [r3, #0] 8006e00: 3361 adds r3, #97 ; 0x61 8006e02: 687a ldr r2, [r7, #4] 8006e04: 429a cmp r2, r3 8006e06: dc0f bgt.n 8006e28 8006e08: 4b37 ldr r3, [pc, #220] ; (8006ee8 ) 8006e0a: 681b ldr r3, [r3, #0] 8006e0c: 685b ldr r3, [r3, #4] 8006e0e: 3371 adds r3, #113 ; 0x71 8006e10: 683a ldr r2, [r7, #0] 8006e12: 429a cmp r2, r3 8006e14: dd08 ble.n 8006e28 8006e16: 4b34 ldr r3, [pc, #208] ; (8006ee8 ) 8006e18: 681b ldr r3, [r3, #0] 8006e1a: 685b ldr r3, [r3, #4] 8006e1c: 3390 adds r3, #144 ; 0x90 8006e1e: 683a ldr r2, [r7, #0] 8006e20: 429a cmp r2, r3 8006e22: dc01 bgt.n 8006e28 { return 'E'; 8006e24: 2345 movs r3, #69 ; 0x45 8006e26: e05a b.n 8006ede } if(x>keyboard_window->x+98&&xx+98+32&&y>keyboard_window->y+113&&yy+113+32) 8006e28: 4b2f ldr r3, [pc, #188] ; (8006ee8 ) 8006e2a: 681b ldr r3, [r3, #0] 8006e2c: 681b ldr r3, [r3, #0] 8006e2e: 3362 adds r3, #98 ; 0x62 8006e30: 687a ldr r2, [r7, #4] 8006e32: 429a cmp r2, r3 8006e34: dd16 ble.n 8006e64 8006e36: 4b2c ldr r3, [pc, #176] ; (8006ee8 ) 8006e38: 681b ldr r3, [r3, #0] 8006e3a: 681b ldr r3, [r3, #0] 8006e3c: 3381 adds r3, #129 ; 0x81 8006e3e: 687a ldr r2, [r7, #4] 8006e40: 429a cmp r2, r3 8006e42: dc0f bgt.n 8006e64 8006e44: 4b28 ldr r3, [pc, #160] ; (8006ee8 ) 8006e46: 681b ldr r3, [r3, #0] 8006e48: 685b ldr r3, [r3, #4] 8006e4a: 3371 adds r3, #113 ; 0x71 8006e4c: 683a ldr r2, [r7, #0] 8006e4e: 429a cmp r2, r3 8006e50: dd08 ble.n 8006e64 8006e52: 4b25 ldr r3, [pc, #148] ; (8006ee8 ) 8006e54: 681b ldr r3, [r3, #0] 8006e56: 685b ldr r3, [r3, #4] 8006e58: 3390 adds r3, #144 ; 0x90 8006e5a: 683a ldr r2, [r7, #0] 8006e5c: 429a cmp r2, r3 8006e5e: dc01 bgt.n 8006e64 { return 'F'; 8006e60: 2346 movs r3, #70 ; 0x46 8006e62: e03c b.n 8006ede } if(x>keyboard_window->x+140&&xx+140+32&&y>keyboard_window->y+81&&yy+81+32) 8006e64: 4b20 ldr r3, [pc, #128] ; (8006ee8 ) 8006e66: 681b ldr r3, [r3, #0] 8006e68: 681b ldr r3, [r3, #0] 8006e6a: 338c adds r3, #140 ; 0x8c 8006e6c: 687a ldr r2, [r7, #4] 8006e6e: 429a cmp r2, r3 8006e70: dd16 ble.n 8006ea0 8006e72: 4b1d ldr r3, [pc, #116] ; (8006ee8 ) 8006e74: 681b ldr r3, [r3, #0] 8006e76: 681b ldr r3, [r3, #0] 8006e78: 33ab adds r3, #171 ; 0xab 8006e7a: 687a ldr r2, [r7, #4] 8006e7c: 429a cmp r2, r3 8006e7e: dc0f bgt.n 8006ea0 8006e80: 4b19 ldr r3, [pc, #100] ; (8006ee8 ) 8006e82: 681b ldr r3, [r3, #0] 8006e84: 685b ldr r3, [r3, #4] 8006e86: 3351 adds r3, #81 ; 0x51 8006e88: 683a ldr r2, [r7, #0] 8006e8a: 429a cmp r2, r3 8006e8c: dd08 ble.n 8006ea0 8006e8e: 4b16 ldr r3, [pc, #88] ; (8006ee8 ) 8006e90: 681b ldr r3, [r3, #0] 8006e92: 685b ldr r3, [r3, #4] 8006e94: 3370 adds r3, #112 ; 0x70 8006e96: 683a ldr r2, [r7, #0] 8006e98: 429a cmp r2, r3 8006e9a: dc01 bgt.n 8006ea0 { return '<'; 8006e9c: 233c movs r3, #60 ; 0x3c 8006e9e: e01e b.n 8006ede } if(x>keyboard_window->x+140&&xx+140+32&&y>keyboard_window->y+113&&yy+113+32) 8006ea0: 4b11 ldr r3, [pc, #68] ; (8006ee8 ) 8006ea2: 681b ldr r3, [r3, #0] 8006ea4: 681b ldr r3, [r3, #0] 8006ea6: 338c adds r3, #140 ; 0x8c 8006ea8: 687a ldr r2, [r7, #4] 8006eaa: 429a cmp r2, r3 8006eac: dd16 ble.n 8006edc 8006eae: 4b0e ldr r3, [pc, #56] ; (8006ee8 ) 8006eb0: 681b ldr r3, [r3, #0] 8006eb2: 681b ldr r3, [r3, #0] 8006eb4: 33ab adds r3, #171 ; 0xab 8006eb6: 687a ldr r2, [r7, #4] 8006eb8: 429a cmp r2, r3 8006eba: dc0f bgt.n 8006edc 8006ebc: 4b0a ldr r3, [pc, #40] ; (8006ee8 ) 8006ebe: 681b ldr r3, [r3, #0] 8006ec0: 685b ldr r3, [r3, #4] 8006ec2: 3371 adds r3, #113 ; 0x71 8006ec4: 683a ldr r2, [r7, #0] 8006ec6: 429a cmp r2, r3 8006ec8: dd08 ble.n 8006edc 8006eca: 4b07 ldr r3, [pc, #28] ; (8006ee8 ) 8006ecc: 681b ldr r3, [r3, #0] 8006ece: 685b ldr r3, [r3, #4] 8006ed0: 3390 adds r3, #144 ; 0x90 8006ed2: 683a ldr r2, [r7, #0] 8006ed4: 429a cmp r2, r3 8006ed6: dc01 bgt.n 8006edc { return 'X'; 8006ed8: 2358 movs r3, #88 ; 0x58 8006eda: e000 b.n 8006ede } return 0; 8006edc: 2300 movs r3, #0 } 8006ede: 4618 mov r0, r3 8006ee0: 370c adds r7, #12 8006ee2: 46bd mov sp, r7 8006ee4: bc80 pop {r7} 8006ee6: 4770 bx lr 8006ee8: 20000404 .word 0x20000404 08006eec : char keyboard_char[16]={0}; int keyboard_char_int=0; void APP_KEYBOARD_loop() { 8006eec: b580 push {r7, lr} 8006eee: b084 sub sp, #16 8006ef0: af02 add r7, sp, #8 //sprintf(keyboard_char,"%d",keyboard_window->touch_flag); LCD_ShowString(keyboard_window->x+130,keyboard_window->y+17,keyboard_char,16,GRAY,WHITE); 8006ef2: 4b30 ldr r3, [pc, #192] ; (8006fb4 ) 8006ef4: 681b ldr r3, [r3, #0] 8006ef6: 681b ldr r3, [r3, #0] 8006ef8: b29b uxth r3, r3 8006efa: 3382 adds r3, #130 ; 0x82 8006efc: b298 uxth r0, r3 8006efe: 4b2d ldr r3, [pc, #180] ; (8006fb4 ) 8006f00: 681b ldr r3, [r3, #0] 8006f02: 685b ldr r3, [r3, #4] 8006f04: b29b uxth r3, r3 8006f06: 3311 adds r3, #17 8006f08: b299 uxth r1, r3 8006f0a: f64f 73ff movw r3, #65535 ; 0xffff 8006f0e: 9301 str r3, [sp, #4] 8006f10: f248 4330 movw r3, #33840 ; 0x8430 8006f14: 9300 str r3, [sp, #0] 8006f16: 2310 movs r3, #16 8006f18: 4a27 ldr r2, [pc, #156] ; (8006fb8 ) 8006f1a: f7fe fe03 bl 8005b24 if(keyboard_window->touch_flag==1) 8006f1e: 4b25 ldr r3, [pc, #148] ; (8006fb4 ) 8006f20: 681b ldr r3, [r3, #0] 8006f22: f893 3025 ldrb.w r3, [r3, #37] ; 0x25 8006f26: 2b01 cmp r3, #1 8006f28: d14b bne.n 8006fc2 { keyboard_window->touch_flag=0; 8006f2a: 4b22 ldr r3, [pc, #136] ; (8006fb4 ) 8006f2c: 681b ldr r3, [r3, #0] 8006f2e: 2200 movs r2, #0 8006f30: f883 2025 strb.w r2, [r3, #37] ; 0x25 char tempv=getkeyboardv(keyboard_window->touch_x,keyboard_window->touch_y); 8006f34: 4b1f ldr r3, [pc, #124] ; (8006fb4 ) 8006f36: 681b ldr r3, [r3, #0] 8006f38: 6a9a ldr r2, [r3, #40] ; 0x28 8006f3a: 4b1e ldr r3, [pc, #120] ; (8006fb4 ) 8006f3c: 681b ldr r3, [r3, #0] 8006f3e: 6adb ldr r3, [r3, #44] ; 0x2c 8006f40: 4619 mov r1, r3 8006f42: 4610 mov r0, r2 8006f44: f7ff fda6 bl 8006a94 8006f48: 4603 mov r3, r0 8006f4a: 71fb strb r3, [r7, #7] switch(tempv) 8006f4c: 79fb ldrb r3, [r7, #7] 8006f4e: 2b3c cmp r3, #60 ; 0x3c 8006f50: d002 beq.n 8006f58 8006f52: 2b58 cmp r3, #88 ; 0x58 8006f54: d014 beq.n 8006f80 8006f56: e01c b.n 8006f92 { case '<': if(keyboard_char_int>0) 8006f58: 4b18 ldr r3, [pc, #96] ; (8006fbc ) 8006f5a: 681b ldr r3, [r3, #0] 8006f5c: 2b00 cmp r3, #0 8006f5e: dd2f ble.n 8006fc0 { keyboard_char[keyboard_char_int]='\0'; 8006f60: 4b16 ldr r3, [pc, #88] ; (8006fbc ) 8006f62: 681b ldr r3, [r3, #0] 8006f64: 4a14 ldr r2, [pc, #80] ; (8006fb8 ) 8006f66: 2100 movs r1, #0 8006f68: 54d1 strb r1, [r2, r3] keyboard_char_int-=1; 8006f6a: 4b14 ldr r3, [pc, #80] ; (8006fbc ) 8006f6c: 681b ldr r3, [r3, #0] 8006f6e: 3b01 subs r3, #1 8006f70: 4a12 ldr r2, [pc, #72] ; (8006fbc ) 8006f72: 6013 str r3, [r2, #0] keyboard_char[keyboard_char_int]='\0'; 8006f74: 4b11 ldr r3, [pc, #68] ; (8006fbc ) 8006f76: 681b ldr r3, [r3, #0] 8006f78: 4a0f ldr r2, [pc, #60] ; (8006fb8 ) 8006f7a: 2100 movs r1, #0 8006f7c: 54d1 strb r1, [r2, r3] } break; 8006f7e: e01f b.n 8006fc0 case 'X': keyboard_char_int=0; 8006f80: 4b0e ldr r3, [pc, #56] ; (8006fbc ) 8006f82: 2200 movs r2, #0 8006f84: 601a str r2, [r3, #0] keyboard_char[keyboard_char_int]='\0'; 8006f86: 4b0d ldr r3, [pc, #52] ; (8006fbc ) 8006f88: 681b ldr r3, [r3, #0] 8006f8a: 4a0b ldr r2, [pc, #44] ; (8006fb8 ) 8006f8c: 2100 movs r1, #0 8006f8e: 54d1 strb r1, [r2, r3] break; 8006f90: e017 b.n 8006fc2 default : keyboard_char[keyboard_char_int]=tempv; 8006f92: 4b0a ldr r3, [pc, #40] ; (8006fbc ) 8006f94: 681b ldr r3, [r3, #0] 8006f96: 4908 ldr r1, [pc, #32] ; (8006fb8 ) 8006f98: 79fa ldrb r2, [r7, #7] 8006f9a: 54ca strb r2, [r1, r3] keyboard_char_int+=1; 8006f9c: 4b07 ldr r3, [pc, #28] ; (8006fbc ) 8006f9e: 681b ldr r3, [r3, #0] 8006fa0: 3301 adds r3, #1 8006fa2: 4a06 ldr r2, [pc, #24] ; (8006fbc ) 8006fa4: 6013 str r3, [r2, #0] keyboard_char[keyboard_char_int]='\0'; 8006fa6: 4b05 ldr r3, [pc, #20] ; (8006fbc ) 8006fa8: 681b ldr r3, [r3, #0] 8006faa: 4a03 ldr r2, [pc, #12] ; (8006fb8 ) 8006fac: 2100 movs r1, #0 8006fae: 54d1 strb r1, [r2, r3] break; 8006fb0: e007 b.n 8006fc2 8006fb2: bf00 nop 8006fb4: 20000404 .word 0x20000404 8006fb8: 20000408 .word 0x20000408 8006fbc: 20000418 .word 0x20000418 break; 8006fc0: bf00 nop } if(keyboard_window->refresh_windows_flag) 8006fc2: 4b7c ldr r3, [pc, #496] ; (80071b4 ) 8006fc4: 681b ldr r3, [r3, #0] 8006fc6: f893 3024 ldrb.w r3, [r3, #36] ; 0x24 8006fca: 2b00 cmp r3, #0 8006fcc: f000 80ee beq.w 80071ac { keyboard_window->refresh_windows_flag--; 8006fd0: 4b78 ldr r3, [pc, #480] ; (80071b4 ) 8006fd2: 681b ldr r3, [r3, #0] 8006fd4: f893 2024 ldrb.w r2, [r3, #36] ; 0x24 8006fd8: 3a01 subs r2, #1 8006fda: b2d2 uxtb r2, r2 8006fdc: f883 2024 strb.w r2, [r3, #36] ; 0x24 //refresh_windows //LCD_ShowString(keyboard_window->x,keyboard_window->y+16,"test",16,CYAN,RED); down_one_key(keyboard_window->x+2,keyboard_window->y+17,'0'); down_one_key(keyboard_window->x+34,keyboard_window->y+17,'1'); down_one_key(keyboard_window->x+66,keyboard_window->y+17,'2'); down_one_key(keyboard_window->x+98,keyboard_window->y+17,'3'); 8006fe0: 4b74 ldr r3, [pc, #464] ; (80071b4 ) 8006fe2: 681b ldr r3, [r3, #0] 8006fe4: 681b ldr r3, [r3, #0] 8006fe6: 1c98 adds r0, r3, #2 8006fe8: 4b72 ldr r3, [pc, #456] ; (80071b4 ) 8006fea: 681b ldr r3, [r3, #0] 8006fec: 685b ldr r3, [r3, #4] 8006fee: 3311 adds r3, #17 8006ff0: 2230 movs r2, #48 ; 0x30 8006ff2: 4619 mov r1, r3 8006ff4: f7ff fd22 bl 8006a3c 8006ff8: 4b6e ldr r3, [pc, #440] ; (80071b4 ) 8006ffa: 681b ldr r3, [r3, #0] 8006ffc: 681b ldr r3, [r3, #0] 8006ffe: f103 0022 add.w r0, r3, #34 ; 0x22 8007002: 4b6c ldr r3, [pc, #432] ; (80071b4 ) 8007004: 681b ldr r3, [r3, #0] 8007006: 685b ldr r3, [r3, #4] 8007008: 3311 adds r3, #17 800700a: 2231 movs r2, #49 ; 0x31 800700c: 4619 mov r1, r3 800700e: f7ff fd15 bl 8006a3c 8007012: 4b68 ldr r3, [pc, #416] ; (80071b4 ) 8007014: 681b ldr r3, [r3, #0] 8007016: 681b ldr r3, [r3, #0] 8007018: f103 0042 add.w r0, r3, #66 ; 0x42 800701c: 4b65 ldr r3, [pc, #404] ; (80071b4 ) 800701e: 681b ldr r3, [r3, #0] 8007020: 685b ldr r3, [r3, #4] 8007022: 3311 adds r3, #17 8007024: 2232 movs r2, #50 ; 0x32 8007026: 4619 mov r1, r3 8007028: f7ff fd08 bl 8006a3c 800702c: 4b61 ldr r3, [pc, #388] ; (80071b4 ) 800702e: 681b ldr r3, [r3, #0] 8007030: 681b ldr r3, [r3, #0] 8007032: f103 0062 add.w r0, r3, #98 ; 0x62 8007036: 4b5f ldr r3, [pc, #380] ; (80071b4 ) 8007038: 681b ldr r3, [r3, #0] 800703a: 685b ldr r3, [r3, #4] 800703c: 3311 adds r3, #17 800703e: 2233 movs r2, #51 ; 0x33 8007040: 4619 mov r1, r3 8007042: f7ff fcfb bl 8006a3c down_one_key(keyboard_window->x+2,keyboard_window->y+49,'4'); down_one_key(keyboard_window->x+34,keyboard_window->y+49,'5'); down_one_key(keyboard_window->x+66,keyboard_window->y+49,'6'); down_one_key(keyboard_window->x+98,keyboard_window->y+49,'7'); 8007046: 4b5b ldr r3, [pc, #364] ; (80071b4 ) 8007048: 681b ldr r3, [r3, #0] 800704a: 681b ldr r3, [r3, #0] 800704c: 1c98 adds r0, r3, #2 800704e: 4b59 ldr r3, [pc, #356] ; (80071b4 ) 8007050: 681b ldr r3, [r3, #0] 8007052: 685b ldr r3, [r3, #4] 8007054: 3331 adds r3, #49 ; 0x31 8007056: 2234 movs r2, #52 ; 0x34 8007058: 4619 mov r1, r3 800705a: f7ff fcef bl 8006a3c 800705e: 4b55 ldr r3, [pc, #340] ; (80071b4 ) 8007060: 681b ldr r3, [r3, #0] 8007062: 681b ldr r3, [r3, #0] 8007064: f103 0022 add.w r0, r3, #34 ; 0x22 8007068: 4b52 ldr r3, [pc, #328] ; (80071b4 ) 800706a: 681b ldr r3, [r3, #0] 800706c: 685b ldr r3, [r3, #4] 800706e: 3331 adds r3, #49 ; 0x31 8007070: 2235 movs r2, #53 ; 0x35 8007072: 4619 mov r1, r3 8007074: f7ff fce2 bl 8006a3c 8007078: 4b4e ldr r3, [pc, #312] ; (80071b4 ) 800707a: 681b ldr r3, [r3, #0] 800707c: 681b ldr r3, [r3, #0] 800707e: f103 0042 add.w r0, r3, #66 ; 0x42 8007082: 4b4c ldr r3, [pc, #304] ; (80071b4 ) 8007084: 681b ldr r3, [r3, #0] 8007086: 685b ldr r3, [r3, #4] 8007088: 3331 adds r3, #49 ; 0x31 800708a: 2236 movs r2, #54 ; 0x36 800708c: 4619 mov r1, r3 800708e: f7ff fcd5 bl 8006a3c 8007092: 4b48 ldr r3, [pc, #288] ; (80071b4 ) 8007094: 681b ldr r3, [r3, #0] 8007096: 681b ldr r3, [r3, #0] 8007098: f103 0062 add.w r0, r3, #98 ; 0x62 800709c: 4b45 ldr r3, [pc, #276] ; (80071b4 ) 800709e: 681b ldr r3, [r3, #0] 80070a0: 685b ldr r3, [r3, #4] 80070a2: 3331 adds r3, #49 ; 0x31 80070a4: 2237 movs r2, #55 ; 0x37 80070a6: 4619 mov r1, r3 80070a8: f7ff fcc8 bl 8006a3c down_one_key(keyboard_window->x+2,keyboard_window->y+81,'8'); down_one_key(keyboard_window->x+34,keyboard_window->y+81,'9'); down_one_key(keyboard_window->x+66,keyboard_window->y+81,'A'); down_one_key(keyboard_window->x+98,keyboard_window->y+81,'B'); 80070ac: 4b41 ldr r3, [pc, #260] ; (80071b4 ) 80070ae: 681b ldr r3, [r3, #0] 80070b0: 681b ldr r3, [r3, #0] 80070b2: 1c98 adds r0, r3, #2 80070b4: 4b3f ldr r3, [pc, #252] ; (80071b4 ) 80070b6: 681b ldr r3, [r3, #0] 80070b8: 685b ldr r3, [r3, #4] 80070ba: 3351 adds r3, #81 ; 0x51 80070bc: 2238 movs r2, #56 ; 0x38 80070be: 4619 mov r1, r3 80070c0: f7ff fcbc bl 8006a3c 80070c4: 4b3b ldr r3, [pc, #236] ; (80071b4 ) 80070c6: 681b ldr r3, [r3, #0] 80070c8: 681b ldr r3, [r3, #0] 80070ca: f103 0022 add.w r0, r3, #34 ; 0x22 80070ce: 4b39 ldr r3, [pc, #228] ; (80071b4 ) 80070d0: 681b ldr r3, [r3, #0] 80070d2: 685b ldr r3, [r3, #4] 80070d4: 3351 adds r3, #81 ; 0x51 80070d6: 2239 movs r2, #57 ; 0x39 80070d8: 4619 mov r1, r3 80070da: f7ff fcaf bl 8006a3c 80070de: 4b35 ldr r3, [pc, #212] ; (80071b4 ) 80070e0: 681b ldr r3, [r3, #0] 80070e2: 681b ldr r3, [r3, #0] 80070e4: f103 0042 add.w r0, r3, #66 ; 0x42 80070e8: 4b32 ldr r3, [pc, #200] ; (80071b4 ) 80070ea: 681b ldr r3, [r3, #0] 80070ec: 685b ldr r3, [r3, #4] 80070ee: 3351 adds r3, #81 ; 0x51 80070f0: 2241 movs r2, #65 ; 0x41 80070f2: 4619 mov r1, r3 80070f4: f7ff fca2 bl 8006a3c 80070f8: 4b2e ldr r3, [pc, #184] ; (80071b4 ) 80070fa: 681b ldr r3, [r3, #0] 80070fc: 681b ldr r3, [r3, #0] 80070fe: f103 0062 add.w r0, r3, #98 ; 0x62 8007102: 4b2c ldr r3, [pc, #176] ; (80071b4 ) 8007104: 681b ldr r3, [r3, #0] 8007106: 685b ldr r3, [r3, #4] 8007108: 3351 adds r3, #81 ; 0x51 800710a: 2242 movs r2, #66 ; 0x42 800710c: 4619 mov r1, r3 800710e: f7ff fc95 bl 8006a3c down_one_key(keyboard_window->x+2,keyboard_window->y+113,'C'); down_one_key(keyboard_window->x+34,keyboard_window->y+113,'D'); down_one_key(keyboard_window->x+66,keyboard_window->y+113,'E'); down_one_key(keyboard_window->x+98,keyboard_window->y+113,'F'); 8007112: 4b28 ldr r3, [pc, #160] ; (80071b4 ) 8007114: 681b ldr r3, [r3, #0] 8007116: 681b ldr r3, [r3, #0] 8007118: 1c98 adds r0, r3, #2 800711a: 4b26 ldr r3, [pc, #152] ; (80071b4 ) 800711c: 681b ldr r3, [r3, #0] 800711e: 685b ldr r3, [r3, #4] 8007120: 3371 adds r3, #113 ; 0x71 8007122: 2243 movs r2, #67 ; 0x43 8007124: 4619 mov r1, r3 8007126: f7ff fc89 bl 8006a3c 800712a: 4b22 ldr r3, [pc, #136] ; (80071b4 ) 800712c: 681b ldr r3, [r3, #0] 800712e: 681b ldr r3, [r3, #0] 8007130: f103 0022 add.w r0, r3, #34 ; 0x22 8007134: 4b1f ldr r3, [pc, #124] ; (80071b4 ) 8007136: 681b ldr r3, [r3, #0] 8007138: 685b ldr r3, [r3, #4] 800713a: 3371 adds r3, #113 ; 0x71 800713c: 2244 movs r2, #68 ; 0x44 800713e: 4619 mov r1, r3 8007140: f7ff fc7c bl 8006a3c 8007144: 4b1b ldr r3, [pc, #108] ; (80071b4 ) 8007146: 681b ldr r3, [r3, #0] 8007148: 681b ldr r3, [r3, #0] 800714a: f103 0042 add.w r0, r3, #66 ; 0x42 800714e: 4b19 ldr r3, [pc, #100] ; (80071b4 ) 8007150: 681b ldr r3, [r3, #0] 8007152: 685b ldr r3, [r3, #4] 8007154: 3371 adds r3, #113 ; 0x71 8007156: 2245 movs r2, #69 ; 0x45 8007158: 4619 mov r1, r3 800715a: f7ff fc6f bl 8006a3c 800715e: 4b15 ldr r3, [pc, #84] ; (80071b4 ) 8007160: 681b ldr r3, [r3, #0] 8007162: 681b ldr r3, [r3, #0] 8007164: f103 0062 add.w r0, r3, #98 ; 0x62 8007168: 4b12 ldr r3, [pc, #72] ; (80071b4 ) 800716a: 681b ldr r3, [r3, #0] 800716c: 685b ldr r3, [r3, #4] 800716e: 3371 adds r3, #113 ; 0x71 8007170: 2246 movs r2, #70 ; 0x46 8007172: 4619 mov r1, r3 8007174: f7ff fc62 bl 8006a3c down_one_key(keyboard_window->x+140,keyboard_window->y+81,'<'); 8007178: 4b0e ldr r3, [pc, #56] ; (80071b4 ) 800717a: 681b ldr r3, [r3, #0] 800717c: 681b ldr r3, [r3, #0] 800717e: f103 008c add.w r0, r3, #140 ; 0x8c 8007182: 4b0c ldr r3, [pc, #48] ; (80071b4 ) 8007184: 681b ldr r3, [r3, #0] 8007186: 685b ldr r3, [r3, #4] 8007188: 3351 adds r3, #81 ; 0x51 800718a: 223c movs r2, #60 ; 0x3c 800718c: 4619 mov r1, r3 800718e: f7ff fc55 bl 8006a3c down_one_key(keyboard_window->x+140,keyboard_window->y+113,'X'); 8007192: 4b08 ldr r3, [pc, #32] ; (80071b4 ) 8007194: 681b ldr r3, [r3, #0] 8007196: 681b ldr r3, [r3, #0] 8007198: f103 008c add.w r0, r3, #140 ; 0x8c 800719c: 4b05 ldr r3, [pc, #20] ; (80071b4 ) 800719e: 681b ldr r3, [r3, #0] 80071a0: 685b ldr r3, [r3, #4] 80071a2: 3371 adds r3, #113 ; 0x71 80071a4: 2258 movs r2, #88 ; 0x58 80071a6: 4619 mov r1, r3 80071a8: f7ff fc48 bl 8006a3c } } 80071ac: bf00 nop 80071ae: 3708 adds r7, #8 80071b0: 46bd mov sp, r7 80071b2: bd80 pop {r7, pc} 80071b4: 20000404 .word 0x20000404 080071b8 : IIC_SAND_DATE(MAX30102_Device_address,REG_LED2_PA,&a,1);// Choose value for ~ 10mA for LED2 a=0x7f; IIC_SAND_DATE(MAX30102_Device_address,REG_PILOT_PA,&a,1);// Choose value for ~ 25mA for Pilot LED } void max30102_read_fifo(void) { 80071b8: b580 push {r7, lr} 80071ba: b082 sub sp, #8 80071bc: af00 add r7, sp, #0 uint16_t un_temp; fifo_red=0; 80071be: 4b3c ldr r3, [pc, #240] ; (80072b0 ) 80071c0: 2200 movs r2, #0 80071c2: 801a strh r2, [r3, #0] fifo_ir=0; 80071c4: 4b3b ldr r3, [pc, #236] ; (80072b4 ) 80071c6: 2200 movs r2, #0 80071c8: 801a strh r2, [r3, #0] uint8_t ach_i2c_data[6]; //read and clear status register IIC_READ_DATE(MAX30102_Device_address,REG_INTR_STATUS_1,&ach_i2c_data,1); 80071ca: 463a mov r2, r7 80071cc: 2301 movs r3, #1 80071ce: 2100 movs r1, #0 80071d0: 20ae movs r0, #174 ; 0xae 80071d2: f7fe fe55 bl 8005e80 IIC_READ_DATE(MAX30102_Device_address,REG_INTR_STATUS_2,&ach_i2c_data,1); 80071d6: 463a mov r2, r7 80071d8: 2301 movs r3, #1 80071da: 2101 movs r1, #1 80071dc: 20ae movs r0, #174 ; 0xae 80071de: f7fe fe4f bl 8005e80 ach_i2c_data[0]=REG_FIFO_DATA; 80071e2: 2307 movs r3, #7 80071e4: 703b strb r3, [r7, #0] IIC_READ_DATE(MAX30102_Device_address,REG_FIFO_DATA,&ach_i2c_data,6); 80071e6: 463a mov r2, r7 80071e8: 2306 movs r3, #6 80071ea: 2107 movs r1, #7 80071ec: 20ae movs r0, #174 ; 0xae 80071ee: f7fe fe47 bl 8005e80 un_temp=ach_i2c_data[0]; 80071f2: 783b ldrb r3, [r7, #0] 80071f4: 80fb strh r3, [r7, #6] un_temp<<=14; 80071f6: 88fb ldrh r3, [r7, #6] 80071f8: 039b lsls r3, r3, #14 80071fa: 80fb strh r3, [r7, #6] fifo_red+=un_temp; 80071fc: 4b2c ldr r3, [pc, #176] ; (80072b0 ) 80071fe: 881a ldrh r2, [r3, #0] 8007200: 88fb ldrh r3, [r7, #6] 8007202: 4413 add r3, r2 8007204: b29a uxth r2, r3 8007206: 4b2a ldr r3, [pc, #168] ; (80072b0 ) 8007208: 801a strh r2, [r3, #0] un_temp=ach_i2c_data[1]; 800720a: 787b ldrb r3, [r7, #1] 800720c: 80fb strh r3, [r7, #6] un_temp<<=6; 800720e: 88fb ldrh r3, [r7, #6] 8007210: 019b lsls r3, r3, #6 8007212: 80fb strh r3, [r7, #6] fifo_red+=un_temp; 8007214: 4b26 ldr r3, [pc, #152] ; (80072b0 ) 8007216: 881a ldrh r2, [r3, #0] 8007218: 88fb ldrh r3, [r7, #6] 800721a: 4413 add r3, r2 800721c: b29a uxth r2, r3 800721e: 4b24 ldr r3, [pc, #144] ; (80072b0 ) 8007220: 801a strh r2, [r3, #0] un_temp=ach_i2c_data[2]; 8007222: 78bb ldrb r3, [r7, #2] 8007224: 80fb strh r3, [r7, #6] un_temp>>=2; 8007226: 88fb ldrh r3, [r7, #6] 8007228: 089b lsrs r3, r3, #2 800722a: 80fb strh r3, [r7, #6] fifo_red+=un_temp; 800722c: 4b20 ldr r3, [pc, #128] ; (80072b0 ) 800722e: 881a ldrh r2, [r3, #0] 8007230: 88fb ldrh r3, [r7, #6] 8007232: 4413 add r3, r2 8007234: b29a uxth r2, r3 8007236: 4b1e ldr r3, [pc, #120] ; (80072b0 ) 8007238: 801a strh r2, [r3, #0] un_temp=ach_i2c_data[3]; 800723a: 78fb ldrb r3, [r7, #3] 800723c: 80fb strh r3, [r7, #6] un_temp<<=14; 800723e: 88fb ldrh r3, [r7, #6] 8007240: 039b lsls r3, r3, #14 8007242: 80fb strh r3, [r7, #6] fifo_ir+=un_temp; 8007244: 4b1b ldr r3, [pc, #108] ; (80072b4 ) 8007246: 881a ldrh r2, [r3, #0] 8007248: 88fb ldrh r3, [r7, #6] 800724a: 4413 add r3, r2 800724c: b29a uxth r2, r3 800724e: 4b19 ldr r3, [pc, #100] ; (80072b4 ) 8007250: 801a strh r2, [r3, #0] un_temp=ach_i2c_data[4]; 8007252: 793b ldrb r3, [r7, #4] 8007254: 80fb strh r3, [r7, #6] un_temp<<=6; 8007256: 88fb ldrh r3, [r7, #6] 8007258: 019b lsls r3, r3, #6 800725a: 80fb strh r3, [r7, #6] fifo_ir+=un_temp; 800725c: 4b15 ldr r3, [pc, #84] ; (80072b4 ) 800725e: 881a ldrh r2, [r3, #0] 8007260: 88fb ldrh r3, [r7, #6] 8007262: 4413 add r3, r2 8007264: b29a uxth r2, r3 8007266: 4b13 ldr r3, [pc, #76] ; (80072b4 ) 8007268: 801a strh r2, [r3, #0] un_temp=ach_i2c_data[5]; 800726a: 797b ldrb r3, [r7, #5] 800726c: 80fb strh r3, [r7, #6] un_temp>>=2; 800726e: 88fb ldrh r3, [r7, #6] 8007270: 089b lsrs r3, r3, #2 8007272: 80fb strh r3, [r7, #6] fifo_ir+=un_temp; 8007274: 4b0f ldr r3, [pc, #60] ; (80072b4 ) 8007276: 881a ldrh r2, [r3, #0] 8007278: 88fb ldrh r3, [r7, #6] 800727a: 4413 add r3, r2 800727c: b29a uxth r2, r3 800727e: 4b0d ldr r3, [pc, #52] ; (80072b4 ) 8007280: 801a strh r2, [r3, #0] if(fifo_ir<=10000) 8007282: 4b0c ldr r3, [pc, #48] ; (80072b4 ) 8007284: 881b ldrh r3, [r3, #0] 8007286: f242 7210 movw r2, #10000 ; 0x2710 800728a: 4293 cmp r3, r2 800728c: d802 bhi.n 8007294 { fifo_ir=0; 800728e: 4b09 ldr r3, [pc, #36] ; (80072b4 ) 8007290: 2200 movs r2, #0 8007292: 801a strh r2, [r3, #0] } if(fifo_red<=10000) 8007294: 4b06 ldr r3, [pc, #24] ; (80072b0 ) 8007296: 881b ldrh r3, [r3, #0] 8007298: f242 7210 movw r2, #10000 ; 0x2710 800729c: 4293 cmp r3, r2 800729e: d802 bhi.n 80072a6 { fifo_red=0; 80072a0: 4b03 ldr r3, [pc, #12] ; (80072b0 ) 80072a2: 2200 movs r2, #0 80072a4: 801a strh r2, [r3, #0] } } 80072a6: bf00 nop 80072a8: 3708 adds r7, #8 80072aa: 46bd mov sp, r7 80072ac: bd80 pop {r7, pc} 80072ae: bf00 nop 80072b0: 2000041c .word 0x2000041c 80072b4: 2000041e .word 0x2000041e 080072b8 : } void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)//10us { 80072b8: b590 push {r4, r7, lr} 80072ba: b083 sub sp, #12 80072bc: af00 add r7, sp, #0 80072be: 6078 str r0, [r7, #4] if (htim == (&htim6)) 80072c0: 687b ldr r3, [r7, #4] 80072c2: 4a21 ldr r2, [pc, #132] ; (8007348 ) 80072c4: 4293 cmp r3, r2 80072c6: d13a bne.n 800733e { max30102_read_fifo(); //read from MAX30102 FIFO2 80072c8: f7ff ff76 bl 80071b8 //½«Êý¾ÝдÈëfftÊäÈë²¢Çå³ýÊä³ö s1[g_fft_index].real = fifo_red; 80072cc: 4b1f ldr r3, [pc, #124] ; (800734c ) 80072ce: 881b ldrh r3, [r3, #0] 80072d0: 4a1f ldr r2, [pc, #124] ; (8007350 ) 80072d2: 8812 ldrh r2, [r2, #0] 80072d4: 4614 mov r4, r2 80072d6: 4618 mov r0, r3 80072d8: f7f9 fd48 bl 8000d6c <__aeabi_ui2f> 80072dc: 4603 mov r3, r0 80072de: 4a1d ldr r2, [pc, #116] ; (8007354 ) 80072e0: f842 3034 str.w r3, [r2, r4, lsl #3] s1[g_fft_index].imag= 0; 80072e4: 4b1a ldr r3, [pc, #104] ; (8007350 ) 80072e6: 881b ldrh r3, [r3, #0] 80072e8: 4a1a ldr r2, [pc, #104] ; (8007354 ) 80072ea: 00db lsls r3, r3, #3 80072ec: 4413 add r3, r2 80072ee: f04f 0200 mov.w r2, #0 80072f2: 605a str r2, [r3, #4] s2[g_fft_index].real = fifo_ir; 80072f4: 4b18 ldr r3, [pc, #96] ; (8007358 ) 80072f6: 881b ldrh r3, [r3, #0] 80072f8: 4a15 ldr r2, [pc, #84] ; (8007350 ) 80072fa: 8812 ldrh r2, [r2, #0] 80072fc: 4614 mov r4, r2 80072fe: 4618 mov r0, r3 8007300: f7f9 fd34 bl 8000d6c <__aeabi_ui2f> 8007304: 4603 mov r3, r0 8007306: 4a15 ldr r2, [pc, #84] ; (800735c ) 8007308: f842 3034 str.w r3, [r2, r4, lsl #3] s2[g_fft_index].imag= 0; 800730c: 4b10 ldr r3, [pc, #64] ; (8007350 ) 800730e: 881b ldrh r3, [r3, #0] 8007310: 4a12 ldr r2, [pc, #72] ; (800735c ) 8007312: 00db lsls r3, r3, #3 8007314: 4413 add r3, r2 8007316: f04f 0200 mov.w r2, #0 800731a: 605a str r2, [r3, #4] g_fft_index++; 800731c: 4b0c ldr r3, [pc, #48] ; (8007350 ) 800731e: 881b ldrh r3, [r3, #0] 8007320: 3301 adds r3, #1 8007322: b29a uxth r2, r3 8007324: 4b0a ldr r3, [pc, #40] ; (8007350 ) 8007326: 801a strh r2, [r3, #0] if(g_fft_index>FFT_N) 8007328: 4b09 ldr r3, [pc, #36] ; (8007350 ) 800732a: 881b ldrh r3, [r3, #0] 800732c: f5b3 7f00 cmp.w r3, #512 ; 0x200 8007330: d905 bls.n 800733e { get_data_flag=1; 8007332: 4b0b ldr r3, [pc, #44] ; (8007360 ) 8007334: 2201 movs r2, #1 8007336: 701a strb r2, [r3, #0] HAL_TIM_Base_Stop_IT(&htim6); 8007338: 4803 ldr r0, [pc, #12] ; (8007348 ) 800733a: f7fc fd35 bl 8003da8 } } } 800733e: bf00 nop 8007340: 370c adds r7, #12 8007342: 46bd mov sp, r7 8007344: bd90 pop {r4, r7, pc} 8007346: bf00 nop 8007348: 200002e4 .word 0x200002e4 800734c: 2000041c .word 0x2000041c 8007350: 20002522 .word 0x20002522 8007354: 20000420 .word 0x20000420 8007358: 2000041e .word 0x2000041e 800735c: 200014a0 .word 0x200014a0 8007360: 20002520 .word 0x20002520 08007364 : #include "APP_colorcontrol.h" window *colorcontrol_window; void APP_COLORCONTROL_init(window *a_window) { 8007364: b480 push {r7} 8007366: b083 sub sp, #12 8007368: af00 add r7, sp, #0 800736a: 6078 str r0, [r7, #4] colorcontrol_window=a_window; 800736c: 4a03 ldr r2, [pc, #12] ; (800737c ) 800736e: 687b ldr r3, [r7, #4] 8007370: 6013 str r3, [r2, #0] } 8007372: bf00 nop 8007374: 370c adds r7, #12 8007376: 46bd mov sp, r7 8007378: bc80 pop {r7} 800737a: 4770 bx lr 800737c: 20002524 .word 0x20002524 08007380 : void main_app() { 8007380: b580 push {r7, lr} 8007382: b096 sub sp, #88 ; 0x58 8007384: af04 add r7, sp, #16 HAL_TIM_PWM_Start(&htim4,TIM_CHANNEL_3);//Æô¶¯nͨµÀµÄpwm 8007386: 2108 movs r1, #8 8007388: 4838 ldr r0, [pc, #224] ; (800746c ) 800738a: f7fc fd93 bl 8003eb4 char str[64]; LCDx_Init(); 800738e: f7fd ffa9 bl 80052e4 EPPROM_SLOWWRITE_INIT(); 8007392: f7fe fc9f bl 8005cd4 if(KEY1==0&&KEY3==0) 8007396: 2110 movs r1, #16 8007398: 4835 ldr r0, [pc, #212] ; (8007470 ) 800739a: f7fa ffaf bl 80022fc 800739e: 4603 mov r3, r0 80073a0: 2b00 cmp r3, #0 80073a2: d10a bne.n 80073ba 80073a4: 2104 movs r1, #4 80073a6: 4832 ldr r0, [pc, #200] ; (8007470 ) 80073a8: f7fa ffa8 bl 80022fc 80073ac: 4603 mov r3, r0 80073ae: 2b00 cmp r3, #0 80073b0: d103 bne.n 80073ba { TP_adjustment(1); 80073b2: 2001 movs r0, #1 80073b4: f7ff f848 bl 8006448 80073b8: e002 b.n 80073c0 }else { TP_adjustment(0); 80073ba: 2000 movs r0, #0 80073bc: f7ff f844 bl 8006448 } UI *ui=UI_Init(BLACK); 80073c0: 2000 movs r0, #0 80073c2: f000 f88b bl 80074dc 80073c6: 6478 str r0, [r7, #68] ; 0x44 //New_Window(ui,80,80,60,90,YELLOW,"YELLOW"); //New_Window(ui,120,90,70,60,MAGENTA,"MAGENTA"); //APP_morsecode_init(New_Window(ui,25,30,200,150,CYAN,"Morse code")); APP_COLORCONTROL_init(New_Window(ui,20,30,300,64,CYAN,"COLORCONTROL")); 80073c8: 4b2a ldr r3, [pc, #168] ; (8007474 ) 80073ca: 9302 str r3, [sp, #8] 80073cc: f647 73ff movw r3, #32767 ; 0x7fff 80073d0: 9301 str r3, [sp, #4] 80073d2: 2340 movs r3, #64 ; 0x40 80073d4: 9300 str r3, [sp, #0] 80073d6: f44f 7396 mov.w r3, #300 ; 0x12c 80073da: 221e movs r2, #30 80073dc: 2114 movs r1, #20 80073de: 6c78 ldr r0, [r7, #68] ; 0x44 80073e0: f000 f8af bl 8007542 80073e4: 4603 mov r3, r0 80073e6: 4618 mov r0, r3 80073e8: f7ff ffbc bl 8007364 APP_KEYBOARD_init(New_Window(ui,10,60,200,100,WHITE,"KEYBOARD")); 80073ec: 4b22 ldr r3, [pc, #136] ; (8007478 ) 80073ee: 9302 str r3, [sp, #8] 80073f0: f64f 73ff movw r3, #65535 ; 0xffff 80073f4: 9301 str r3, [sp, #4] 80073f6: 2364 movs r3, #100 ; 0x64 80073f8: 9300 str r3, [sp, #0] 80073fa: 23c8 movs r3, #200 ; 0xc8 80073fc: 223c movs r2, #60 ; 0x3c 80073fe: 210a movs r1, #10 8007400: 6c78 ldr r0, [r7, #68] ; 0x44 8007402: f000 f89e bl 8007542 8007406: 4603 mov r3, r0 8007408: 4618 mov r0, r3 800740a: f7ff fb01 bl 8006a10 ui->refresh_ui_flag=1; 800740e: 6c7a ldr r2, [r7, #68] ; 0x44 8007410: f892 3028 ldrb.w r3, [r2, #40] ; 0x28 8007414: f043 0304 orr.w r3, r3, #4 8007418: f882 3028 strb.w r3, [r2, #40] ; 0x28 // ½»²æ±àÒë²âÊÔ //APP_blood_loop(); //APP_IDcard_loop(); //APP_morsecode_loop(); APP_KEYBOARD_loop(); 800741c: f7ff fd66 bl 8006eec GEI_BUTTON_CODE(&k1,KEY1); 8007420: 2110 movs r1, #16 8007422: 4813 ldr r0, [pc, #76] ; (8007470 ) 8007424: f7fa ff6a bl 80022fc 8007428: 4603 mov r3, r0 800742a: 4619 mov r1, r3 800742c: 4813 ldr r0, [pc, #76] ; (800747c ) 800742e: f7fe fd45 bl 8005ebc GEI_BUTTON_CODE(&k2,KEY2); 8007432: 2108 movs r1, #8 8007434: 480e ldr r0, [pc, #56] ; (8007470 ) 8007436: f7fa ff61 bl 80022fc 800743a: 4603 mov r3, r0 800743c: 4619 mov r1, r3 800743e: 4810 ldr r0, [pc, #64] ; (8007480 ) 8007440: f7fe fd3c bl 8005ebc GEI_BUTTON_CODE(&k3,KEY3); 8007444: 2104 movs r1, #4 8007446: 480a ldr r0, [pc, #40] ; (8007470 ) 8007448: f7fa ff58 bl 80022fc 800744c: 4603 mov r3, r0 800744e: 4619 mov r1, r3 8007450: 480c ldr r0, [pc, #48] ; (8007484 ) 8007452: f7fe fd33 bl 8005ebc UI_Server(ui); 8007456: 6c78 ldr r0, [r7, #68] ; 0x44 8007458: f000 fa64 bl 8007924 TP_Server(); 800745c: f7fe ff20 bl 80062a0 EEPROM_SLOWWRITE_SERVER(); 8007460: f7fe fc52 bl 8005d08 buzzer_play_server(); 8007464: f7fe fbfc bl 8005c60 { 8007468: e7d8 b.n 800741c 800746a: bf00 nop 800746c: 2000029c .word 0x2000029c 8007470: 40011800 .word 0x40011800 8007474: 0800a958 .word 0x0800a958 8007478: 0800a968 .word 0x0800a968 800747c: 200003ac .word 0x200003ac 8007480: 200003bc .word 0x200003bc 8007484: 200003cc .word 0x200003cc 08007488 : #include "touch.h" extern touch_device t0; //½Ó¿Ú //ÉèÖÃÆÁÄ»ÏñËØ×ø±ê void Inteface_SetCursor(uint16_t Xpos, uint16_t Ypos) { 8007488: b580 push {r7, lr} 800748a: b082 sub sp, #8 800748c: af00 add r7, sp, #0 800748e: 4603 mov r3, r0 8007490: 460a mov r2, r1 8007492: 80fb strh r3, [r7, #6] 8007494: 4613 mov r3, r2 8007496: 80bb strh r3, [r7, #4] LCD_SetCursor(Xpos,Ypos); //ÉèÖùâ±êλÖà 8007498: 88ba ldrh r2, [r7, #4] 800749a: 88fb ldrh r3, [r7, #6] 800749c: 4611 mov r1, r2 800749e: 4618 mov r0, r3 80074a0: f7fe f816 bl 80054d0 LCD_REG_ADDRESS=lcddev.wramcmd; //¿ªÊ¼Ð´ÈëGRAM 80074a4: 4b04 ldr r3, [pc, #16] ; (80074b8 ) 80074a6: 79da ldrb r2, [r3, #7] 80074a8: f04f 43d8 mov.w r3, #1811939328 ; 0x6c000000 80074ac: b292 uxth r2, r2 80074ae: 801a strh r2, [r3, #0] } 80074b0: bf00 nop 80074b2: 3708 adds r7, #8 80074b4: 46bd mov sp, r7 80074b6: bd80 pop {r7, pc} 80074b8: 20000380 .word 0x20000380 080074bc : //ÍùÏñËØ×ø±êдÈëÒ»¸öÑÕÉ« void Inteface_SetColor(uint16_t color) { 80074bc: b480 push {r7} 80074be: b083 sub sp, #12 80074c0: af00 add r7, sp, #0 80074c2: 4603 mov r3, r0 80074c4: 80fb strh r3, [r7, #6] LCD_DATA_ADDRESS=color; 80074c6: 4a04 ldr r2, [pc, #16] ; (80074d8 ) 80074c8: 88fb ldrh r3, [r7, #6] 80074ca: 8013 strh r3, [r2, #0] } 80074cc: bf00 nop 80074ce: 370c adds r7, #12 80074d0: 46bd mov sp, r7 80074d2: bc80 pop {r7} 80074d4: 4770 bx lr 80074d6: bf00 nop 80074d8: 6c000800 .word 0x6c000800 080074dc : //н¨Ò»¸öUI¶ÔÏó //µ±Ê±¶¼Ïë·¨ÊÇÀàËÆwindowsµÄ¶à×ÀÃæ£¬Ã¿¸ö×ÀÃæ¶¼ÄÜÓÐn¸ö´°¿Ú UI *UI_Init(COLOR_16 background) { 80074dc: b580 push {r7, lr} 80074de: b084 sub sp, #16 80074e0: af00 add r7, sp, #0 80074e2: 6078 str r0, [r7, #4] UI *ui; ui = (UI*)malloc(sizeof(UI)); 80074e4: 202c movs r0, #44 ; 0x2c 80074e6: f000 fb4f bl 8007b88 80074ea: 4603 mov r3, r0 80074ec: 60fb str r3, [r7, #12] if(ui!=NULL) 80074ee: 68fb ldr r3, [r7, #12] 80074f0: 2b00 cmp r3, #0 80074f2: d021 beq.n 8007538 { ui->x=0; 80074f4: 68fb ldr r3, [r7, #12] 80074f6: 2200 movs r2, #0 80074f8: 605a str r2, [r3, #4] ui->y=0; 80074fa: 68fb ldr r3, [r7, #12] 80074fc: 2200 movs r2, #0 80074fe: 609a str r2, [r3, #8] ui->high=240; 8007500: 68fb ldr r3, [r7, #12] 8007502: 22f0 movs r2, #240 ; 0xf0 8007504: 611a str r2, [r3, #16] ui->width=320; 8007506: 68fb ldr r3, [r7, #12] 8007508: f44f 72a0 mov.w r2, #320 ; 0x140 800750c: 60da str r2, [r3, #12] ui->background=background; 800750e: 68fb ldr r3, [r7, #12] 8007510: 687a ldr r2, [r7, #4] 8007512: 601a str r2, [r3, #0] ui->windows=NULL; 8007514: 68fb ldr r3, [r7, #12] 8007516: 2200 movs r2, #0 8007518: 615a str r2, [r3, #20] ui->last_windows=NULL; 800751a: 68fb ldr r3, [r7, #12] 800751c: 2200 movs r2, #0 800751e: 619a str r2, [r3, #24] ui->refresh_ui_flag=1; 8007520: 68fa ldr r2, [r7, #12] 8007522: f892 3028 ldrb.w r3, [r2, #40] ; 0x28 8007526: f043 0304 orr.w r3, r3, #4 800752a: f882 3028 strb.w r3, [r2, #40] ; 0x28 ui->moveed_windwos=NULL; 800752e: 68fb ldr r3, [r7, #12] 8007530: 2200 movs r2, #0 8007532: 61da str r2, [r3, #28] ui->touch->acc_y=0; } */ return ui; 8007534: 68fb ldr r3, [r7, #12] 8007536: e000 b.n 800753a } return NULL; 8007538: 2300 movs r3, #0 } 800753a: 4618 mov r0, r3 800753c: 3710 adds r7, #16 800753e: 46bd mov sp, r7 8007540: bd80 pop {r7, pc} 08007542 : //н¨Ò»¸ö´°¿Ú //·µ»Ø´°¿ÚµÄÖ¸Õë //½«´°¿Ú¹ÒÔØµ½Ä³¸öui window *New_Window(UI *ui,uint16_t x,uint16_t y,uint16_t width,uint16_t high,COLOR_16 background,const char *title) { 8007542: b580 push {r7, lr} 8007544: b088 sub sp, #32 8007546: af00 add r7, sp, #0 8007548: 60f8 str r0, [r7, #12] 800754a: 4608 mov r0, r1 800754c: 4611 mov r1, r2 800754e: 461a mov r2, r3 8007550: 4603 mov r3, r0 8007552: 817b strh r3, [r7, #10] 8007554: 460b mov r3, r1 8007556: 813b strh r3, [r7, #8] 8007558: 4613 mov r3, r2 800755a: 80fb strh r3, [r7, #6] window *temp_window; temp_window = (window*)malloc(sizeof(window)); 800755c: 2030 movs r0, #48 ; 0x30 800755e: f000 fb13 bl 8007b88 8007562: 4603 mov r3, r0 8007564: 617b str r3, [r7, #20] if(temp_window!=NULL) 8007566: 697b ldr r3, [r7, #20] 8007568: 2b00 cmp r3, #0 800756a: d02a beq.n 80075c2 { temp_window->background=background; 800756c: 697b ldr r3, [r7, #20] 800756e: 6afa ldr r2, [r7, #44] ; 0x2c 8007570: 611a str r2, [r3, #16] temp_window->high=high; 8007572: 8d3a ldrh r2, [r7, #40] ; 0x28 8007574: 697b ldr r3, [r7, #20] 8007576: 60da str r2, [r3, #12] temp_window->width=width; 8007578: 88fa ldrh r2, [r7, #6] 800757a: 697b ldr r3, [r7, #20] 800757c: 609a str r2, [r3, #8] temp_window->x=x; 800757e: 897a ldrh r2, [r7, #10] 8007580: 697b ldr r3, [r7, #20] 8007582: 601a str r2, [r3, #0] temp_window->y=y; 8007584: 893a ldrh r2, [r7, #8] 8007586: 697b ldr r3, [r7, #20] 8007588: 605a str r2, [r3, #4] temp_window->refresh_windows_flag=2; 800758a: 697b ldr r3, [r7, #20] 800758c: 2202 movs r2, #2 800758e: f883 2024 strb.w r2, [r3, #36] ; 0x24 temp_window->touch_flag=0; 8007592: 697b ldr r3, [r7, #20] 8007594: 2200 movs r2, #0 8007596: f883 2025 strb.w r2, [r3, #37] ; 0x25 for(int a=0;a<16;a++) 800759a: 2300 movs r3, #0 800759c: 61fb str r3, [r7, #28] 800759e: e00c b.n 80075ba { temp_window->title[a]=title[a]; 80075a0: 69fb ldr r3, [r7, #28] 80075a2: 6b3a ldr r2, [r7, #48] ; 0x30 80075a4: 4413 add r3, r2 80075a6: 7819 ldrb r1, [r3, #0] 80075a8: 697a ldr r2, [r7, #20] 80075aa: 69fb ldr r3, [r7, #28] 80075ac: 4413 add r3, r2 80075ae: 3314 adds r3, #20 80075b0: 460a mov r2, r1 80075b2: 701a strb r2, [r3, #0] for(int a=0;a<16;a++) 80075b4: 69fb ldr r3, [r7, #28] 80075b6: 3301 adds r3, #1 80075b8: 61fb str r3, [r7, #28] 80075ba: 69fb ldr r3, [r7, #28] 80075bc: 2b0f cmp r3, #15 80075be: ddef ble.n 80075a0 80075c0: e001 b.n 80075c6 } }else{return NULL;} 80075c2: 2300 movs r3, #0 80075c4: e02a b.n 800761c windows_stack *temp_windows_stack; temp_windows_stack=ui->last_windows; 80075c6: 68fb ldr r3, [r7, #12] 80075c8: 699b ldr r3, [r3, #24] 80075ca: 61bb str r3, [r7, #24] if(temp_windows_stack==NULL) 80075cc: 69bb ldr r3, [r7, #24] 80075ce: 2b00 cmp r3, #0 80075d0: d10b bne.n 80075ea { temp_windows_stack=(windows_stack*)malloc(sizeof(windows_stack)); 80075d2: 200c movs r0, #12 80075d4: f000 fad8 bl 8007b88 80075d8: 4603 mov r3, r0 80075da: 61bb str r3, [r7, #24] temp_windows_stack->up=NULL; 80075dc: 69bb ldr r3, [r7, #24] 80075de: 2200 movs r2, #0 80075e0: 601a str r2, [r3, #0] ui->windows=temp_windows_stack; 80075e2: 68fb ldr r3, [r7, #12] 80075e4: 69ba ldr r2, [r7, #24] 80075e6: 615a str r2, [r3, #20] 80075e8: e00e b.n 8007608 while(temp_windows_stack->next!=NULL) { temp_windows_stack=temp_windows_stack->next; } */ windows_stack *up=temp_windows_stack;//±¸·Ýµ±Ç°¶ÔÏóÖ¸Õë 80075ea: 69bb ldr r3, [r7, #24] 80075ec: 613b str r3, [r7, #16] temp_windows_stack->next=(windows_stack*)malloc(sizeof(windows_stack)); 80075ee: 200c movs r0, #12 80075f0: f000 faca bl 8007b88 80075f4: 4603 mov r3, r0 80075f6: 461a mov r2, r3 80075f8: 69bb ldr r3, [r7, #24] 80075fa: 609a str r2, [r3, #8] temp_windows_stack=temp_windows_stack->next; 80075fc: 69bb ldr r3, [r7, #24] 80075fe: 689b ldr r3, [r3, #8] 8007600: 61bb str r3, [r7, #24] temp_windows_stack->up=up; 8007602: 69bb ldr r3, [r7, #24] 8007604: 693a ldr r2, [r7, #16] 8007606: 601a str r2, [r3, #0] } temp_windows_stack->next=NULL; 8007608: 69bb ldr r3, [r7, #24] 800760a: 2200 movs r2, #0 800760c: 609a str r2, [r3, #8] temp_windows_stack->window=temp_window; 800760e: 69bb ldr r3, [r7, #24] 8007610: 697a ldr r2, [r7, #20] 8007612: 605a str r2, [r3, #4] ui->last_windows=temp_windows_stack; 8007614: 68fb ldr r3, [r7, #12] 8007616: 69ba ldr r2, [r7, #24] 8007618: 619a str r2, [r3, #24] return temp_window; 800761a: 697b ldr r3, [r7, #20] } 800761c: 4618 mov r0, r3 800761e: 3720 adds r7, #32 8007620: 46bd mov sp, r7 8007622: bd80 pop {r7, pc} 08007624 : //¹Ø±Õij¸ö´°¿Ú //ͦÂé·³µÄ£¬³ýÁËÒªÊÍ·Å´°¿ÚÄڴ棬»¹ÒªÈ¥uiĨµô´°¿ÚµÄÖ¸Õë void Close_Windows_Stack(UI *ui,windows_stack *temp_windows_stack) { 8007624: b580 push {r7, lr} 8007626: b082 sub sp, #8 8007628: af00 add r7, sp, #0 800762a: 6078 str r0, [r7, #4] 800762c: 6039 str r1, [r7, #0] if(temp_windows_stack==ui->windows) 800762e: 687b ldr r3, [r7, #4] 8007630: 695b ldr r3, [r3, #20] 8007632: 683a ldr r2, [r7, #0] 8007634: 429a cmp r2, r3 8007636: d113 bne.n 8007660 { if(temp_windows_stack->next!=NULL) 8007638: 683b ldr r3, [r7, #0] 800763a: 689b ldr r3, [r3, #8] 800763c: 2b00 cmp r3, #0 800763e: d008 beq.n 8007652 { ui->windows=temp_windows_stack->next; 8007640: 683b ldr r3, [r7, #0] 8007642: 689a ldr r2, [r3, #8] 8007644: 687b ldr r3, [r7, #4] 8007646: 615a str r2, [r3, #20] ui->windows->up=NULL; 8007648: 687b ldr r3, [r7, #4] 800764a: 695b ldr r3, [r3, #20] 800764c: 2200 movs r2, #0 800764e: 601a str r2, [r3, #0] 8007650: e029 b.n 80076a6 }else { ui->windows=NULL; 8007652: 687b ldr r3, [r7, #4] 8007654: 2200 movs r2, #0 8007656: 615a str r2, [r3, #20] ui->last_windows=NULL; 8007658: 687b ldr r3, [r7, #4] 800765a: 2200 movs r2, #0 800765c: 619a str r2, [r3, #24] 800765e: e022 b.n 80076a6 } }else if(temp_windows_stack==ui->last_windows) 8007660: 687b ldr r3, [r7, #4] 8007662: 699b ldr r3, [r3, #24] 8007664: 683a ldr r2, [r7, #0] 8007666: 429a cmp r2, r3 8007668: d113 bne.n 8007692 { if(temp_windows_stack->up!=NULL) 800766a: 683b ldr r3, [r7, #0] 800766c: 681b ldr r3, [r3, #0] 800766e: 2b00 cmp r3, #0 8007670: d008 beq.n 8007684 { ui->last_windows=temp_windows_stack->up; 8007672: 683b ldr r3, [r7, #0] 8007674: 681a ldr r2, [r3, #0] 8007676: 687b ldr r3, [r7, #4] 8007678: 619a str r2, [r3, #24] ui->last_windows->next=NULL; 800767a: 687b ldr r3, [r7, #4] 800767c: 699b ldr r3, [r3, #24] 800767e: 2200 movs r2, #0 8007680: 609a str r2, [r3, #8] 8007682: e010 b.n 80076a6 }else { ui->windows=NULL; 8007684: 687b ldr r3, [r7, #4] 8007686: 2200 movs r2, #0 8007688: 615a str r2, [r3, #20] ui->last_windows=NULL; 800768a: 687b ldr r3, [r7, #4] 800768c: 2200 movs r2, #0 800768e: 619a str r2, [r3, #24] 8007690: e009 b.n 80076a6 } }else { temp_windows_stack->up->next=temp_windows_stack->next; //È¡³öÕâ¸ö½Úµã °Ñ½ÚµãµÄÉÏϲ¹ÉÏÁ´½Ó 8007692: 683b ldr r3, [r7, #0] 8007694: 681b ldr r3, [r3, #0] 8007696: 683a ldr r2, [r7, #0] 8007698: 6892 ldr r2, [r2, #8] 800769a: 609a str r2, [r3, #8] temp_windows_stack->next->up=temp_windows_stack->up; 800769c: 683b ldr r3, [r7, #0] 800769e: 689b ldr r3, [r3, #8] 80076a0: 683a ldr r2, [r7, #0] 80076a2: 6812 ldr r2, [r2, #0] 80076a4: 601a str r2, [r3, #0] } free(temp_windows_stack->window); 80076a6: 683b ldr r3, [r7, #0] 80076a8: 685b ldr r3, [r3, #4] 80076aa: 4618 mov r0, r3 80076ac: f000 fa74 bl 8007b98 free(temp_windows_stack); 80076b0: 6838 ldr r0, [r7, #0] 80076b2: f000 fa71 bl 8007b98 } 80076b6: bf00 nop 80076b8: 3708 adds r7, #8 80076ba: 46bd mov sp, r7 80076bc: bd80 pop {r7, pc} 080076be : temp_window->y=temp_window->y+acc_y; } //ÏÔʾһ¸ö´°¿Ú void Refresh_Window(UI *ui,window *temp_window) { 80076be: b580 push {r7, lr} 80076c0: b088 sub sp, #32 80076c2: af02 add r7, sp, #8 80076c4: 6078 str r0, [r7, #4] 80076c6: 6039 str r1, [r7, #0] //¿ªÊ¼»æÖÆ´°¿Ú//Ìî³ä´°¿Ú±³¾° int x,y; char z; for(uint16_t temp_y=0;temp_yhigh;temp_y++) 80076c8: 2300 movs r3, #0 80076ca: 82bb strh r3, [r7, #20] 80076cc: e05f b.n 800778e { z=1; 80076ce: 2301 movs r3, #1 80076d0: 75fb strb r3, [r7, #23] for(uint16_t temp_i=0;temp_iwidth;temp_i++) 80076d2: 2300 movs r3, #0 80076d4: 827b strh r3, [r7, #18] 80076d6: e052 b.n 800777e { x=temp_window->x+temp_i; 80076d8: 683b ldr r3, [r7, #0] 80076da: 681a ldr r2, [r3, #0] 80076dc: 8a7b ldrh r3, [r7, #18] 80076de: 4413 add r3, r2 80076e0: 60fb str r3, [r7, #12] y=temp_window->y+temp_y; 80076e2: 683b ldr r3, [r7, #0] 80076e4: 685a ldr r2, [r3, #4] 80076e6: 8abb ldrh r3, [r7, #20] 80076e8: 4413 add r3, r2 80076ea: 60bb str r3, [r7, #8] if(y>=ui->y&&z==1) 80076ec: 687b ldr r3, [r7, #4] 80076ee: 689b ldr r3, [r3, #8] 80076f0: 68ba ldr r2, [r7, #8] 80076f2: 429a cmp r2, r3 80076f4: db0c blt.n 8007710 80076f6: 7dfb ldrb r3, [r7, #23] 80076f8: 2b01 cmp r3, #1 80076fa: d109 bne.n 8007710 { Inteface_SetCursor(x,y); 80076fc: 68fb ldr r3, [r7, #12] 80076fe: b29b uxth r3, r3 8007700: 68ba ldr r2, [r7, #8] 8007702: b292 uxth r2, r2 8007704: 4611 mov r1, r2 8007706: 4618 mov r0, r3 8007708: f7ff febe bl 8007488 z=0; 800770c: 2300 movs r3, #0 800770e: 75fb strb r3, [r7, #23] } if(x>=ui->x) 8007710: 687b ldr r3, [r7, #4] 8007712: 685b ldr r3, [r3, #4] 8007714: 68fa ldr r2, [r7, #12] 8007716: 429a cmp r2, r3 8007718: db2e blt.n 8007778 { if(temp_y<16) 800771a: 8abb ldrh r3, [r7, #20] 800771c: 2b0f cmp r3, #15 800771e: d80f bhi.n 8007740 { if(temp_i>temp_window->width-16) 8007720: 683b ldr r3, [r7, #0] 8007722: 689b ldr r3, [r3, #8] 8007724: f1a3 020f sub.w r2, r3, #15 8007728: 8a7b ldrh r3, [r7, #18] 800772a: 429a cmp r2, r3 800772c: dc04 bgt.n 8007738 { Inteface_SetColor(RED); 800772e: f44f 4078 mov.w r0, #63488 ; 0xf800 8007732: f7ff fec3 bl 80074bc 8007736: e01f b.n 8007778 }else { Inteface_SetColor(BLUE); 8007738: 201f movs r0, #31 800773a: f7ff febf bl 80074bc 800773e: e01b b.n 8007778 } }else { if(temp_i==0||temp_y==0||temp_i==temp_window->width-1||temp_y==temp_window->high-1) 8007740: 8a7b ldrh r3, [r7, #18] 8007742: 2b00 cmp r3, #0 8007744: d00e beq.n 8007764 8007746: 8abb ldrh r3, [r7, #20] 8007748: 2b00 cmp r3, #0 800774a: d00b beq.n 8007764 800774c: 8a7a ldrh r2, [r7, #18] 800774e: 683b ldr r3, [r7, #0] 8007750: 689b ldr r3, [r3, #8] 8007752: 3b01 subs r3, #1 8007754: 429a cmp r2, r3 8007756: d005 beq.n 8007764 8007758: 8aba ldrh r2, [r7, #20] 800775a: 683b ldr r3, [r7, #0] 800775c: 68db ldr r3, [r3, #12] 800775e: 3b01 subs r3, #1 8007760: 429a cmp r2, r3 8007762: d103 bne.n 800776c { Inteface_SetColor(BLUE); 8007764: 201f movs r0, #31 8007766: f7ff fea9 bl 80074bc 800776a: e005 b.n 8007778 }else { Inteface_SetColor(temp_window->background); 800776c: 683b ldr r3, [r7, #0] 800776e: 691b ldr r3, [r3, #16] 8007770: b29b uxth r3, r3 8007772: 4618 mov r0, r3 8007774: f7ff fea2 bl 80074bc for(uint16_t temp_i=0;temp_iwidth;temp_i++) 8007778: 8a7b ldrh r3, [r7, #18] 800777a: 3301 adds r3, #1 800777c: 827b strh r3, [r7, #18] 800777e: 8a7a ldrh r2, [r7, #18] 8007780: 683b ldr r3, [r7, #0] 8007782: 689b ldr r3, [r3, #8] 8007784: 429a cmp r2, r3 8007786: dba7 blt.n 80076d8 for(uint16_t temp_y=0;temp_yhigh;temp_y++) 8007788: 8abb ldrh r3, [r7, #20] 800778a: 3301 adds r3, #1 800778c: 82bb strh r3, [r7, #20] 800778e: 8aba ldrh r2, [r7, #20] 8007790: 683b ldr r3, [r7, #0] 8007792: 68db ldr r3, [r3, #12] 8007794: 429a cmp r2, r3 8007796: db9a blt.n 80076ce } } */ //ÏÔʾtitle LCD_ShowString(temp_window->x,temp_window->y,&temp_window->title,16,WHITE,WHITE); 8007798: 683b ldr r3, [r7, #0] 800779a: 681b ldr r3, [r3, #0] 800779c: b298 uxth r0, r3 800779e: 683b ldr r3, [r7, #0] 80077a0: 685b ldr r3, [r3, #4] 80077a2: b299 uxth r1, r3 80077a4: 683b ldr r3, [r7, #0] 80077a6: f103 0214 add.w r2, r3, #20 80077aa: f64f 73ff movw r3, #65535 ; 0xffff 80077ae: 9301 str r3, [sp, #4] 80077b0: f64f 73ff movw r3, #65535 ; 0xffff 80077b4: 9300 str r3, [sp, #0] 80077b6: 2310 movs r3, #16 80077b8: f7fe f9b4 bl 8005b24 } 80077bc: bf00 nop 80077be: 3718 adds r7, #24 80077c0: 46bd mov sp, r7 80077c2: bd80 pop {r7, pc} 080077c4 : * ºÜ¿Éϧ ÐÁÐÁ¿à¿àдµÄ´úÂëÒª±»·ÅÆú * ÓÃË㷨ʵÏÖÕÚµ²¹ØÏµ¼ÆËãÕæÍ¦´À * * */ void Refresh_UI(UI *ui) { 80077c4: b580 push {r7, lr} 80077c6: b086 sub sp, #24 80077c8: af00 add r7, sp, #0 80077ca: 6078 str r0, [r7, #4] int flag=0; 80077cc: 2300 movs r3, #0 80077ce: 617b str r3, [r7, #20] uint16_t dot_y=0,dot_x=0; 80077d0: 2300 movs r3, #0 80077d2: 827b strh r3, [r7, #18] 80077d4: 2300 movs r3, #0 80077d6: 823b strh r3, [r7, #16] //»­±³¾° for(dot_y=ui->y;dot_yhigh;dot_y++) 80077d8: 687b ldr r3, [r7, #4] 80077da: 689b ldr r3, [r3, #8] 80077dc: 827b strh r3, [r7, #18] 80077de: e01a b.n 8007816 { Inteface_SetCursor(dot_x,dot_y); 80077e0: 8a7a ldrh r2, [r7, #18] 80077e2: 8a3b ldrh r3, [r7, #16] 80077e4: 4611 mov r1, r2 80077e6: 4618 mov r0, r3 80077e8: f7ff fe4e bl 8007488 for(dot_x=ui->x;dot_xwidth;dot_x++) 80077ec: 687b ldr r3, [r7, #4] 80077ee: 685b ldr r3, [r3, #4] 80077f0: 823b strh r3, [r7, #16] 80077f2: e008 b.n 8007806 { Inteface_SetColor(ui->background); 80077f4: 687b ldr r3, [r7, #4] 80077f6: 681b ldr r3, [r3, #0] 80077f8: b29b uxth r3, r3 80077fa: 4618 mov r0, r3 80077fc: f7ff fe5e bl 80074bc for(dot_x=ui->x;dot_xwidth;dot_x++) 8007800: 8a3b ldrh r3, [r7, #16] 8007802: 3301 adds r3, #1 8007804: 823b strh r3, [r7, #16] 8007806: 8a3a ldrh r2, [r7, #16] 8007808: 687b ldr r3, [r7, #4] 800780a: 68db ldr r3, [r3, #12] 800780c: 429a cmp r2, r3 800780e: dbf1 blt.n 80077f4 for(dot_y=ui->y;dot_yhigh;dot_y++) 8007810: 8a7b ldrh r3, [r7, #18] 8007812: 3301 adds r3, #1 8007814: 827b strh r3, [r7, #18] 8007816: 8a7a ldrh r2, [r7, #18] 8007818: 687b ldr r3, [r7, #4] 800781a: 691b ldr r3, [r3, #16] 800781c: 429a cmp r2, r3 800781e: dbdf blt.n 80077e0 } } windows_stack *temp_windows_stack,*temp_windows_stack2; temp_windows_stack=ui->windows; 8007820: 687b ldr r3, [r7, #4] 8007822: 695b ldr r3, [r3, #20] 8007824: 60fb str r3, [r7, #12] do { if(temp_windows_stack!=NULL) 8007826: 68fb ldr r3, [r7, #12] 8007828: 2b00 cmp r3, #0 800782a: d00b beq.n 8007844 { flag=1; 800782c: 2301 movs r3, #1 800782e: 617b str r3, [r7, #20] Refresh_Window(ui,temp_windows_stack->window); 8007830: 68fb ldr r3, [r7, #12] 8007832: 685b ldr r3, [r3, #4] 8007834: 4619 mov r1, r3 8007836: 6878 ldr r0, [r7, #4] 8007838: f7ff ff41 bl 80076be //»æÖÆÏÂÒ»¸ö´°¿Ú temp_windows_stack=temp_windows_stack->next; 800783c: 68fb ldr r3, [r7, #12] 800783e: 689b ldr r3, [r3, #8] 8007840: 60fb str r3, [r7, #12] 8007842: e001 b.n 8007848 }else { flag=0; 8007844: 2300 movs r3, #0 8007846: 617b str r3, [r7, #20] } }while(flag); 8007848: 697b ldr r3, [r7, #20] 800784a: 2b00 cmp r3, #0 800784c: d1eb bne.n 8007826 } } */ } 800784e: bf00 nop 8007850: bf00 nop 8007852: 3718 adds r7, #24 8007854: 46bd mov sp, r7 8007856: bd80 pop {r7, pc} 08007858 : #define BODY 1 #define BAR 2 #define CLOSE 3 uint8_t Chack(window *this_window,int x,int y) { 8007858: b480 push {r7} 800785a: b087 sub sp, #28 800785c: af00 add r7, sp, #0 800785e: 60f8 str r0, [r7, #12] 8007860: 60b9 str r1, [r7, #8] 8007862: 607a str r2, [r7, #4] int a=0; 8007864: 2300 movs r3, #0 8007866: 617b str r3, [r7, #20] if(((x>=this_window->x)&&(x<(this_window->x+this_window->width)))&&((y>=this_window->y+16)&&(y<(this_window->y+this_window->high)))) 8007868: 68fb ldr r3, [r7, #12] 800786a: 681b ldr r3, [r3, #0] 800786c: 68ba ldr r2, [r7, #8] 800786e: 429a cmp r2, r3 8007870: db17 blt.n 80078a2 8007872: 68fb ldr r3, [r7, #12] 8007874: 681a ldr r2, [r3, #0] 8007876: 68fb ldr r3, [r7, #12] 8007878: 689b ldr r3, [r3, #8] 800787a: 4413 add r3, r2 800787c: 68ba ldr r2, [r7, #8] 800787e: 429a cmp r2, r3 8007880: da0f bge.n 80078a2 8007882: 68fb ldr r3, [r7, #12] 8007884: 685b ldr r3, [r3, #4] 8007886: 330f adds r3, #15 8007888: 687a ldr r2, [r7, #4] 800788a: 429a cmp r2, r3 800788c: dd09 ble.n 80078a2 800788e: 68fb ldr r3, [r7, #12] 8007890: 685a ldr r2, [r3, #4] 8007892: 68fb ldr r3, [r7, #12] 8007894: 68db ldr r3, [r3, #12] 8007896: 4413 add r3, r2 8007898: 687a ldr r2, [r7, #4] 800789a: 429a cmp r2, r3 800789c: da01 bge.n 80078a2 { a=1; 800789e: 2301 movs r3, #1 80078a0: 617b str r3, [r7, #20] } if(((x>=this_window->x)&&(x<(this_window->x+this_window->width-16)))&&((y>=this_window->y)&&(y<(this_window->y+16)))) 80078a2: 68fb ldr r3, [r7, #12] 80078a4: 681b ldr r3, [r3, #0] 80078a6: 68ba ldr r2, [r7, #8] 80078a8: 429a cmp r2, r3 80078aa: db15 blt.n 80078d8 80078ac: 68fb ldr r3, [r7, #12] 80078ae: 681a ldr r2, [r3, #0] 80078b0: 68fb ldr r3, [r7, #12] 80078b2: 689b ldr r3, [r3, #8] 80078b4: 4413 add r3, r2 80078b6: 3b10 subs r3, #16 80078b8: 68ba ldr r2, [r7, #8] 80078ba: 429a cmp r2, r3 80078bc: da0c bge.n 80078d8 80078be: 68fb ldr r3, [r7, #12] 80078c0: 685b ldr r3, [r3, #4] 80078c2: 687a ldr r2, [r7, #4] 80078c4: 429a cmp r2, r3 80078c6: db07 blt.n 80078d8 80078c8: 68fb ldr r3, [r7, #12] 80078ca: 685b ldr r3, [r3, #4] 80078cc: 330f adds r3, #15 80078ce: 687a ldr r2, [r7, #4] 80078d0: 429a cmp r2, r3 80078d2: dc01 bgt.n 80078d8 { a=2; 80078d4: 2302 movs r3, #2 80078d6: 617b str r3, [r7, #20] } if((x>=(this_window->x+this_window->width-16))&&(x<(this_window->x+this_window->width))&&((y>=this_window->y)&&(y<(this_window->y+16)))) 80078d8: 68fb ldr r3, [r7, #12] 80078da: 681a ldr r2, [r3, #0] 80078dc: 68fb ldr r3, [r7, #12] 80078de: 689b ldr r3, [r3, #8] 80078e0: 4413 add r3, r2 80078e2: 3b10 subs r3, #16 80078e4: 68ba ldr r2, [r7, #8] 80078e6: 429a cmp r2, r3 80078e8: db14 blt.n 8007914 80078ea: 68fb ldr r3, [r7, #12] 80078ec: 681a ldr r2, [r3, #0] 80078ee: 68fb ldr r3, [r7, #12] 80078f0: 689b ldr r3, [r3, #8] 80078f2: 4413 add r3, r2 80078f4: 68ba ldr r2, [r7, #8] 80078f6: 429a cmp r2, r3 80078f8: da0c bge.n 8007914 80078fa: 68fb ldr r3, [r7, #12] 80078fc: 685b ldr r3, [r3, #4] 80078fe: 687a ldr r2, [r7, #4] 8007900: 429a cmp r2, r3 8007902: db07 blt.n 8007914 8007904: 68fb ldr r3, [r7, #12] 8007906: 685b ldr r3, [r3, #4] 8007908: 330f adds r3, #15 800790a: 687a ldr r2, [r7, #4] 800790c: 429a cmp r2, r3 800790e: dc01 bgt.n 8007914 { a=3; 8007910: 2303 movs r3, #3 8007912: 617b str r3, [r7, #20] } return a; 8007914: 697b ldr r3, [r7, #20] 8007916: b2db uxtb r3, r3 } 8007918: 4618 mov r0, r3 800791a: 371c adds r7, #28 800791c: 46bd mov sp, r7 800791e: bc80 pop {r7} 8007920: 4770 bx lr ... 08007924 : void UI_Server(UI *ui) { 8007924: b580 push {r7, lr} 8007926: b088 sub sp, #32 8007928: af00 add r7, sp, #0 800792a: 6078 str r0, [r7, #4] windows_stack *temp_windows_stack=NULL; 800792c: 2300 movs r3, #0 800792e: 61fb str r3, [r7, #28] window *temp_window; //touch_device *temp_touch=NULL; int flag=0; 8007930: 2300 movs r3, #0 8007932: 61bb str r3, [r7, #24] uint8_t hit_flag=0; 8007934: 2300 movs r3, #0 8007936: 75fb strb r3, [r7, #23] int t_x,t_y; //touch //temp_touch=ui->touch; if(t0.c)//TP_XY(&t_x, &t_y)) 8007938: 4b92 ldr r3, [pc, #584] ; (8007b84 ) 800793a: 7b1b ldrb r3, [r3, #12] 800793c: f003 0302 and.w r3, r3, #2 8007940: b2db uxtb r3, r3 8007942: 2b00 cmp r3, #0 8007944: f000 80f2 beq.w 8007b2c { if(t0.d) 8007948: 4b8e ldr r3, [pc, #568] ; (8007b84 ) 800794a: 7b1b ldrb r3, [r3, #12] 800794c: f003 0304 and.w r3, r3, #4 8007950: b2db uxtb r3, r3 8007952: 2b00 cmp r3, #0 8007954: f000 8100 beq.w 8007b58 { t_x=t0.pix_x; 8007958: 4b8a ldr r3, [pc, #552] ; (8007b84 ) 800795a: 685b ldr r3, [r3, #4] 800795c: 613b str r3, [r7, #16] t_y=t0.pix_y; 800795e: 4b89 ldr r3, [pc, #548] ; (8007b84 ) 8007960: 689b ldr r3, [r3, #8] 8007962: 60fb str r3, [r7, #12] temp_window=NULL; 8007964: 2300 movs r3, #0 8007966: 60bb str r3, [r7, #8] if(ui->moveed_windwos==NULL) 8007968: 687b ldr r3, [r7, #4] 800796a: 69db ldr r3, [r3, #28] 800796c: 2b00 cmp r3, #0 800796e: f040 8099 bne.w 8007aa4 { if(ui->First_click_flag==0) 8007972: 687b ldr r3, [r7, #4] 8007974: f893 3028 ldrb.w r3, [r3, #40] ; 0x28 8007978: f003 0302 and.w r3, r3, #2 800797c: b2db uxtb r3, r3 800797e: 2b00 cmp r3, #0 8007980: f040 80ea bne.w 8007b58 { ui->First_click_flag=1; 8007984: 687a ldr r2, [r7, #4] 8007986: f892 3028 ldrb.w r3, [r2, #40] ; 0x28 800798a: f043 0302 orr.w r3, r3, #2 800798e: f882 3028 strb.w r3, [r2, #40] ; 0x28 temp_windows_stack=ui->last_windows; //»ñÈ¡uiÖÐ×îǰ¶ËµÄ´°¿Ú ´ÓǰÍùºóɨÃè 8007992: 687b ldr r3, [r7, #4] 8007994: 699b ldr r3, [r3, #24] 8007996: 61fb str r3, [r7, #28] do { if(temp_windows_stack!=NULL) //Èç¹ûÓд°¿Ú¾Í¿ªÊ¼É¨Ãè 8007998: 69fb ldr r3, [r7, #28] 800799a: 2b00 cmp r3, #0 800799c: d07b beq.n 8007a96 { flag=1; //¼ì²éµ½Óд°¿Ú ÐèҪѭ»·Ò»´ÎÒÔ¼ì²éÊÇ·ñÓÐÏÂÒ»¸ö´°¿Ú 800799e: 2301 movs r3, #1 80079a0: 61bb str r3, [r7, #24] // temp_window=temp_windows_stack->window; //È¡³öÕâ¸ö´°¿Ú 80079a2: 69fb ldr r3, [r7, #28] 80079a4: 685b ldr r3, [r3, #4] 80079a6: 60bb str r3, [r7, #8] hit_flag=Chack(temp_window,t_x,t_y); //¼ì²é´¥ÃþÊÇ·ñÃüÖÐ Ö±½Ó·µ»ØÃüÖд°¿ÚµÄλÖà 80079a8: 68fa ldr r2, [r7, #12] 80079aa: 6939 ldr r1, [r7, #16] 80079ac: 68b8 ldr r0, [r7, #8] 80079ae: f7ff ff53 bl 8007858 80079b2: 4603 mov r3, r0 80079b4: 75fb strb r3, [r7, #23] if(hit_flag) // ÃüÖмÌÐø 80079b6: 7dfb ldrb r3, [r7, #23] 80079b8: 2b00 cmp r3, #0 80079ba: d068 beq.n 8007a8e { temp_window->touch_flag=1; 80079bc: 68bb ldr r3, [r7, #8] 80079be: 2201 movs r2, #1 80079c0: f883 2025 strb.w r2, [r3, #37] ; 0x25 temp_window->touch_x=t_x; 80079c4: 68bb ldr r3, [r7, #8] 80079c6: 693a ldr r2, [r7, #16] 80079c8: 629a str r2, [r3, #40] ; 0x28 temp_window->touch_y=t_y; 80079ca: 68bb ldr r3, [r7, #8] 80079cc: 68fa ldr r2, [r7, #12] 80079ce: 62da str r2, [r3, #44] ; 0x2c if(temp_windows_stack!=ui->last_windows) //¼ì²éÊÇ·ñ×îǰ¶ËµÄ´°¿Ú Èç¹û²»ÊǾͷÅ×îÇ°Ãæ 80079d0: 687b ldr r3, [r7, #4] 80079d2: 699b ldr r3, [r3, #24] 80079d4: 69fa ldr r2, [r7, #28] 80079d6: 429a cmp r2, r3 80079d8: d030 beq.n 8007a3c { if(temp_windows_stack!=ui->windows) //¼ì²éÊÇ·ñ×îºó¶ËµÄ´°¿Ú ÒòΪÏÔʾÊÇ´Ó×îºó¶ËÍùǰÏÔʾµÄ ËùÒÔuiÓÐ×îºó¶Ë´°¿ÚµÄÈë¿Ú 80079da: 687b ldr r3, [r7, #4] 80079dc: 695b ldr r3, [r3, #20] 80079de: 69fa ldr r2, [r7, #28] 80079e0: 429a cmp r2, r3 80079e2: d00a beq.n 80079fa { temp_windows_stack->up->next=temp_windows_stack->next; //È¡³öÕâ¸ö½Úµã °Ñ½ÚµãµÄÉÏϲ¹ÉÏÁ´½Ó 80079e4: 69fb ldr r3, [r7, #28] 80079e6: 681b ldr r3, [r3, #0] 80079e8: 69fa ldr r2, [r7, #28] 80079ea: 6892 ldr r2, [r2, #8] 80079ec: 609a str r2, [r3, #8] temp_windows_stack->next->up=temp_windows_stack->up; 80079ee: 69fb ldr r3, [r7, #28] 80079f0: 689b ldr r3, [r3, #8] 80079f2: 69fa ldr r2, [r7, #28] 80079f4: 6812 ldr r2, [r2, #0] 80079f6: 601a str r2, [r3, #0] 80079f8: e007 b.n 8007a0a }else { ui->windows=temp_windows_stack->next; //Èç¹ûÊÇ×îºó¶ËµÄ´°¿Ú ÔòÈ¡³öÕâ¸ö½ÚµãºóÈë¿Ú¾Í±äÏÂÒ»¸ö½ÚµãÁË 80079fa: 69fb ldr r3, [r7, #28] 80079fc: 689a ldr r2, [r3, #8] 80079fe: 687b ldr r3, [r7, #4] 8007a00: 615a str r2, [r3, #20] ui->windows->up=NULL; //µ¹ÊýµÚ¶þ±ä×îºó¶Ë ÔÚ×ß¾ÍûÁË ËùÒÔÒªÇå¿ÕÖ¸Õë 8007a02: 687b ldr r3, [r7, #4] 8007a04: 695b ldr r3, [r3, #20] 8007a06: 2200 movs r2, #0 8007a08: 601a str r2, [r3, #0] } temp_windows_stack->next=NULL; //È¡³öµÄ½ÚµãÒª·ÅÔÚ×îǰ¶Ë ËùÒÔ ÎÞ·¨ÔÙÍùǰ Çå¿ÕÍùǰµÄÖ¸Õë 8007a0a: 69fb ldr r3, [r7, #28] 8007a0c: 2200 movs r2, #0 8007a0e: 609a str r2, [r3, #8] temp_windows_stack->up=ui->last_windows; //ÉÏÒ»¸öÖ¸Õë¾ÍÊÇÔ­À´µÄ×îºóÒ»¸ö 8007a10: 687b ldr r3, [r7, #4] 8007a12: 699a ldr r2, [r3, #24] 8007a14: 69fb ldr r3, [r7, #28] 8007a16: 601a str r2, [r3, #0] ui->last_windows->next=temp_windows_stack; //Ô­À´µÄ×îºóÒ»¸öÖ¸ÏòÏÖÔÚµÄ×îºóÒ»¸ö 8007a18: 687b ldr r3, [r7, #4] 8007a1a: 699b ldr r3, [r3, #24] 8007a1c: 69fa ldr r2, [r7, #28] 8007a1e: 609a str r2, [r3, #8] ui->last_windows=temp_windows_stack; //¸üÐÂuiÖеÄ×îºóÒ»¸öµÄÈë¿Ú 8007a20: 687b ldr r3, [r7, #4] 8007a22: 69fa ldr r2, [r7, #28] 8007a24: 619a str r2, [r3, #24] ui->refresh_ui_flag=1; //·¢ÉúÁ˱仯 Ë¢ÐÂuiµÄÏÔʾ 8007a26: 687a ldr r2, [r7, #4] 8007a28: f892 3028 ldrb.w r3, [r2, #40] ; 0x28 8007a2c: f043 0304 orr.w r3, r3, #4 8007a30: f882 3028 strb.w r3, [r2, #40] ; 0x28 temp_window->refresh_windows_flag=1; 8007a34: 68bb ldr r3, [r7, #8] 8007a36: 2201 movs r2, #1 8007a38: f883 2024 strb.w r2, [r3, #36] ; 0x24 } //¼ì²é±êÖд°¿ÚµÄʲôλÖà switch(hit_flag) 8007a3c: 7dfb ldrb r3, [r7, #23] 8007a3e: 2b03 cmp r3, #3 8007a40: d006 beq.n 8007a50 8007a42: 2b03 cmp r3, #3 8007a44: dc21 bgt.n 8007a8a 8007a46: 2b01 cmp r3, #1 8007a48: d01e beq.n 8007a88 8007a4a: 2b02 cmp r3, #2 8007a4c: d00c beq.n 8007a68 8007a4e: e01c b.n 8007a8a { case CLOSE: Close_Windows_Stack(ui,temp_windows_stack); 8007a50: 69f9 ldr r1, [r7, #28] 8007a52: 6878 ldr r0, [r7, #4] 8007a54: f7ff fde6 bl 8007624 ui->refresh_ui_flag=1; //·¢ÉúÁ˱仯 Ë¢ÐÂuiµÄÏÔʾ 8007a58: 687a ldr r2, [r7, #4] 8007a5a: f892 3028 ldrb.w r3, [r2, #40] ; 0x28 8007a5e: f043 0304 orr.w r3, r3, #4 8007a62: f882 3028 strb.w r3, [r2, #40] ; 0x28 break; 8007a66: e010 b.n 8007a8a case BAR: ui->moveed_windwos=temp_window; 8007a68: 687b ldr r3, [r7, #4] 8007a6a: 68ba ldr r2, [r7, #8] 8007a6c: 61da str r2, [r3, #28] ui->move_x=t_x-temp_window->x; 8007a6e: 68bb ldr r3, [r7, #8] 8007a70: 681b ldr r3, [r3, #0] 8007a72: 693a ldr r2, [r7, #16] 8007a74: 1ad2 subs r2, r2, r3 8007a76: 687b ldr r3, [r7, #4] 8007a78: 621a str r2, [r3, #32] ui->move_y=t_y-temp_window->y; 8007a7a: 68bb ldr r3, [r7, #8] 8007a7c: 685b ldr r3, [r3, #4] 8007a7e: 68fa ldr r2, [r7, #12] 8007a80: 1ad2 subs r2, r2, r3 8007a82: 687b ldr r3, [r7, #4] 8007a84: 625a str r2, [r3, #36] ; 0x24 break; 8007a86: e000 b.n 8007a8a case BODY: //ui->background=temp_windows_stack->window->background; //ui->refresh_ui_flag=1; break; 8007a88: bf00 nop } flag=0; //½áÊøÉ¨Ãè ·ÀÖ¹´©Í¸µ±Ç°´°¿Ú 8007a8a: 2300 movs r3, #0 8007a8c: 61bb str r3, [r7, #24] }else { } temp_windows_stack=temp_windows_stack->up; //ÍùǰɨÃè 8007a8e: 69fb ldr r3, [r7, #28] 8007a90: 681b ldr r3, [r3, #0] 8007a92: 61fb str r3, [r7, #28] 8007a94: e001 b.n 8007a9a }else { flag=0; //Ò»¸ö´°¿Ú¶¼Ã»ÓÐ Ö±½Ó½áÊøÑ­»· 8007a96: 2300 movs r3, #0 8007a98: 61bb str r3, [r7, #24] } }while(flag); 8007a9a: 69bb ldr r3, [r7, #24] 8007a9c: 2b00 cmp r3, #0 8007a9e: f47f af7b bne.w 8007998 8007aa2: e059 b.n 8007b58 } }else { temp_window=ui->moveed_windwos; 8007aa4: 687b ldr r3, [r7, #4] 8007aa6: 69db ldr r3, [r3, #28] 8007aa8: 60bb str r3, [r7, #8] temp_window->x=(t_x-ui->move_x); 8007aaa: 687b ldr r3, [r7, #4] 8007aac: 6a1b ldr r3, [r3, #32] 8007aae: 693a ldr r2, [r7, #16] 8007ab0: 1ad2 subs r2, r2, r3 8007ab2: 68bb ldr r3, [r7, #8] 8007ab4: 601a str r2, [r3, #0] temp_window->y=(t_y-ui->move_y); 8007ab6: 687b ldr r3, [r7, #4] 8007ab8: 6a5b ldr r3, [r3, #36] ; 0x24 8007aba: 68fa ldr r2, [r7, #12] 8007abc: 1ad2 subs r2, r2, r3 8007abe: 68bb ldr r3, [r7, #8] 8007ac0: 605a str r2, [r3, #4] if(temp_window->x<0){temp_window->x=0;} 8007ac2: 68bb ldr r3, [r7, #8] 8007ac4: 681b ldr r3, [r3, #0] 8007ac6: 2b00 cmp r3, #0 8007ac8: da02 bge.n 8007ad0 8007aca: 68bb ldr r3, [r7, #8] 8007acc: 2200 movs r2, #0 8007ace: 601a str r2, [r3, #0] if(temp_window->y<0){temp_window->y=0;} 8007ad0: 68bb ldr r3, [r7, #8] 8007ad2: 685b ldr r3, [r3, #4] 8007ad4: 2b00 cmp r3, #0 8007ad6: da02 bge.n 8007ade 8007ad8: 68bb ldr r3, [r7, #8] 8007ada: 2200 movs r2, #0 8007adc: 605a str r2, [r3, #4] if(temp_window->x+temp_window->width>320){temp_window->x=320-temp_window->width;} 8007ade: 68bb ldr r3, [r7, #8] 8007ae0: 681a ldr r2, [r3, #0] 8007ae2: 68bb ldr r3, [r7, #8] 8007ae4: 689b ldr r3, [r3, #8] 8007ae6: 4413 add r3, r2 8007ae8: f5b3 7fa0 cmp.w r3, #320 ; 0x140 8007aec: dd05 ble.n 8007afa 8007aee: 68bb ldr r3, [r7, #8] 8007af0: 689b ldr r3, [r3, #8] 8007af2: f5c3 72a0 rsb r2, r3, #320 ; 0x140 8007af6: 68bb ldr r3, [r7, #8] 8007af8: 601a str r2, [r3, #0] if(temp_window->y+temp_window->high>240){temp_window->y=240-temp_window->high;} 8007afa: 68bb ldr r3, [r7, #8] 8007afc: 685a ldr r2, [r3, #4] 8007afe: 68bb ldr r3, [r7, #8] 8007b00: 68db ldr r3, [r3, #12] 8007b02: 4413 add r3, r2 8007b04: 2bf0 cmp r3, #240 ; 0xf0 8007b06: dd05 ble.n 8007b14 8007b08: 68bb ldr r3, [r7, #8] 8007b0a: 68db ldr r3, [r3, #12] 8007b0c: f1c3 02f0 rsb r2, r3, #240 ; 0xf0 8007b10: 68bb ldr r3, [r7, #8] 8007b12: 605a str r2, [r3, #4] temp_window->refresh_windows_flag=1; 8007b14: 68bb ldr r3, [r7, #8] 8007b16: 2201 movs r2, #1 8007b18: f883 2024 strb.w r2, [r3, #36] ; 0x24 ui->refresh_ui_flag=1; 8007b1c: 687a ldr r2, [r7, #4] 8007b1e: f892 3028 ldrb.w r3, [r2, #40] ; 0x28 8007b22: f043 0304 orr.w r3, r3, #4 8007b26: f882 3028 strb.w r3, [r2, #40] ; 0x28 8007b2a: e015 b.n 8007b58 }else { if(ui->First_click_flag==1) 8007b2c: 687b ldr r3, [r7, #4] 8007b2e: f893 3028 ldrb.w r3, [r3, #40] ; 0x28 8007b32: f003 0302 and.w r3, r3, #2 8007b36: b2db uxtb r3, r3 8007b38: 2b00 cmp r3, #0 8007b3a: d006 beq.n 8007b4a { ui->First_click_flag=0; 8007b3c: 687a ldr r2, [r7, #4] 8007b3e: f892 3028 ldrb.w r3, [r2, #40] ; 0x28 8007b42: f36f 0341 bfc r3, #1, #1 8007b46: f882 3028 strb.w r3, [r2, #40] ; 0x28 } if(ui->moveed_windwos!=NULL) 8007b4a: 687b ldr r3, [r7, #4] 8007b4c: 69db ldr r3, [r3, #28] 8007b4e: 2b00 cmp r3, #0 8007b50: d002 beq.n 8007b58 { ui->moveed_windwos=NULL; 8007b52: 687b ldr r3, [r7, #4] 8007b54: 2200 movs r2, #0 8007b56: 61da str r2, [r3, #28] } } //display if(ui->refresh_ui_flag==1) 8007b58: 687b ldr r3, [r7, #4] 8007b5a: f893 3028 ldrb.w r3, [r3, #40] ; 0x28 8007b5e: f003 0304 and.w r3, r3, #4 8007b62: b2db uxtb r3, r3 8007b64: 2b00 cmp r3, #0 8007b66: d009 beq.n 8007b7c { ui->refresh_ui_flag=0; 8007b68: 687a ldr r2, [r7, #4] 8007b6a: f892 3028 ldrb.w r3, [r2, #40] ; 0x28 8007b6e: f36f 0382 bfc r3, #2, #1 8007b72: f882 3028 strb.w r3, [r2, #40] ; 0x28 Refresh_UI(ui); 8007b76: 6878 ldr r0, [r7, #4] 8007b78: f7ff fe24 bl 80077c4 } } 8007b7c: bf00 nop 8007b7e: 3720 adds r7, #32 8007b80: 46bd mov sp, r7 8007b82: bd80 pop {r7, pc} 8007b84: 200003dc .word 0x200003dc 08007b88 : 8007b88: 4b02 ldr r3, [pc, #8] ; (8007b94 ) 8007b8a: 4601 mov r1, r0 8007b8c: 6818 ldr r0, [r3, #0] 8007b8e: f000 b82b b.w 8007be8 <_malloc_r> 8007b92: bf00 nop 8007b94: 20000064 .word 0x20000064 08007b98 : 8007b98: 4b02 ldr r3, [pc, #8] ; (8007ba4 ) 8007b9a: 4601 mov r1, r0 8007b9c: 6818 ldr r0, [r3, #0] 8007b9e: f001 bdd3 b.w 8009748 <_free_r> 8007ba2: bf00 nop 8007ba4: 20000064 .word 0x20000064 08007ba8 : 8007ba8: b570 push {r4, r5, r6, lr} 8007baa: 4e0e ldr r6, [pc, #56] ; (8007be4 ) 8007bac: 460c mov r4, r1 8007bae: 6831 ldr r1, [r6, #0] 8007bb0: 4605 mov r5, r0 8007bb2: b911 cbnz r1, 8007bba 8007bb4: f000 fefc bl 80089b0 <_sbrk_r> 8007bb8: 6030 str r0, [r6, #0] 8007bba: 4621 mov r1, r4 8007bbc: 4628 mov r0, r5 8007bbe: f000 fef7 bl 80089b0 <_sbrk_r> 8007bc2: 1c43 adds r3, r0, #1 8007bc4: d00a beq.n 8007bdc 8007bc6: 1cc4 adds r4, r0, #3 8007bc8: f024 0403 bic.w r4, r4, #3 8007bcc: 42a0 cmp r0, r4 8007bce: d007 beq.n 8007be0 8007bd0: 1a21 subs r1, r4, r0 8007bd2: 4628 mov r0, r5 8007bd4: f000 feec bl 80089b0 <_sbrk_r> 8007bd8: 3001 adds r0, #1 8007bda: d101 bne.n 8007be0 8007bdc: f04f 34ff mov.w r4, #4294967295 8007be0: 4620 mov r0, r4 8007be2: bd70 pop {r4, r5, r6, pc} 8007be4: 2000252c .word 0x2000252c 08007be8 <_malloc_r>: 8007be8: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 8007bec: 1ccd adds r5, r1, #3 8007bee: f025 0503 bic.w r5, r5, #3 8007bf2: 3508 adds r5, #8 8007bf4: 2d0c cmp r5, #12 8007bf6: bf38 it cc 8007bf8: 250c movcc r5, #12 8007bfa: 2d00 cmp r5, #0 8007bfc: 4607 mov r7, r0 8007bfe: db01 blt.n 8007c04 <_malloc_r+0x1c> 8007c00: 42a9 cmp r1, r5 8007c02: d905 bls.n 8007c10 <_malloc_r+0x28> 8007c04: 230c movs r3, #12 8007c06: 2600 movs r6, #0 8007c08: 603b str r3, [r7, #0] 8007c0a: 4630 mov r0, r6 8007c0c: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 8007c10: f8df 80d0 ldr.w r8, [pc, #208] ; 8007ce4 <_malloc_r+0xfc> 8007c14: f000 f868 bl 8007ce8 <__malloc_lock> 8007c18: f8d8 3000 ldr.w r3, [r8] 8007c1c: 461c mov r4, r3 8007c1e: bb5c cbnz r4, 8007c78 <_malloc_r+0x90> 8007c20: 4629 mov r1, r5 8007c22: 4638 mov r0, r7 8007c24: f7ff ffc0 bl 8007ba8 8007c28: 1c43 adds r3, r0, #1 8007c2a: 4604 mov r4, r0 8007c2c: d155 bne.n 8007cda <_malloc_r+0xf2> 8007c2e: f8d8 4000 ldr.w r4, [r8] 8007c32: 4626 mov r6, r4 8007c34: 2e00 cmp r6, #0 8007c36: d145 bne.n 8007cc4 <_malloc_r+0xdc> 8007c38: 2c00 cmp r4, #0 8007c3a: d048 beq.n 8007cce <_malloc_r+0xe6> 8007c3c: 6823 ldr r3, [r4, #0] 8007c3e: 4631 mov r1, r6 8007c40: 4638 mov r0, r7 8007c42: eb04 0903 add.w r9, r4, r3 8007c46: f000 feb3 bl 80089b0 <_sbrk_r> 8007c4a: 4581 cmp r9, r0 8007c4c: d13f bne.n 8007cce <_malloc_r+0xe6> 8007c4e: 6821 ldr r1, [r4, #0] 8007c50: 4638 mov r0, r7 8007c52: 1a6d subs r5, r5, r1 8007c54: 4629 mov r1, r5 8007c56: f7ff ffa7 bl 8007ba8 8007c5a: 3001 adds r0, #1 8007c5c: d037 beq.n 8007cce <_malloc_r+0xe6> 8007c5e: 6823 ldr r3, [r4, #0] 8007c60: 442b add r3, r5 8007c62: 6023 str r3, [r4, #0] 8007c64: f8d8 3000 ldr.w r3, [r8] 8007c68: 2b00 cmp r3, #0 8007c6a: d038 beq.n 8007cde <_malloc_r+0xf6> 8007c6c: 685a ldr r2, [r3, #4] 8007c6e: 42a2 cmp r2, r4 8007c70: d12b bne.n 8007cca <_malloc_r+0xe2> 8007c72: 2200 movs r2, #0 8007c74: 605a str r2, [r3, #4] 8007c76: e00f b.n 8007c98 <_malloc_r+0xb0> 8007c78: 6822 ldr r2, [r4, #0] 8007c7a: 1b52 subs r2, r2, r5 8007c7c: d41f bmi.n 8007cbe <_malloc_r+0xd6> 8007c7e: 2a0b cmp r2, #11 8007c80: d917 bls.n 8007cb2 <_malloc_r+0xca> 8007c82: 1961 adds r1, r4, r5 8007c84: 42a3 cmp r3, r4 8007c86: 6025 str r5, [r4, #0] 8007c88: bf18 it ne 8007c8a: 6059 strne r1, [r3, #4] 8007c8c: 6863 ldr r3, [r4, #4] 8007c8e: bf08 it eq 8007c90: f8c8 1000 streq.w r1, [r8] 8007c94: 5162 str r2, [r4, r5] 8007c96: 604b str r3, [r1, #4] 8007c98: 4638 mov r0, r7 8007c9a: f104 060b add.w r6, r4, #11 8007c9e: f000 f829 bl 8007cf4 <__malloc_unlock> 8007ca2: f026 0607 bic.w r6, r6, #7 8007ca6: 1d23 adds r3, r4, #4 8007ca8: 1af2 subs r2, r6, r3 8007caa: d0ae beq.n 8007c0a <_malloc_r+0x22> 8007cac: 1b9b subs r3, r3, r6 8007cae: 50a3 str r3, [r4, r2] 8007cb0: e7ab b.n 8007c0a <_malloc_r+0x22> 8007cb2: 42a3 cmp r3, r4 8007cb4: 6862 ldr r2, [r4, #4] 8007cb6: d1dd bne.n 8007c74 <_malloc_r+0x8c> 8007cb8: f8c8 2000 str.w r2, [r8] 8007cbc: e7ec b.n 8007c98 <_malloc_r+0xb0> 8007cbe: 4623 mov r3, r4 8007cc0: 6864 ldr r4, [r4, #4] 8007cc2: e7ac b.n 8007c1e <_malloc_r+0x36> 8007cc4: 4634 mov r4, r6 8007cc6: 6876 ldr r6, [r6, #4] 8007cc8: e7b4 b.n 8007c34 <_malloc_r+0x4c> 8007cca: 4613 mov r3, r2 8007ccc: e7cc b.n 8007c68 <_malloc_r+0x80> 8007cce: 230c movs r3, #12 8007cd0: 4638 mov r0, r7 8007cd2: 603b str r3, [r7, #0] 8007cd4: f000 f80e bl 8007cf4 <__malloc_unlock> 8007cd8: e797 b.n 8007c0a <_malloc_r+0x22> 8007cda: 6025 str r5, [r4, #0] 8007cdc: e7dc b.n 8007c98 <_malloc_r+0xb0> 8007cde: 605b str r3, [r3, #4] 8007ce0: deff udf #255 ; 0xff 8007ce2: bf00 nop 8007ce4: 20002528 .word 0x20002528 08007ce8 <__malloc_lock>: 8007ce8: 4801 ldr r0, [pc, #4] ; (8007cf0 <__malloc_lock+0x8>) 8007cea: f000 beae b.w 8008a4a <__retarget_lock_acquire_recursive> 8007cee: bf00 nop 8007cf0: 20002670 .word 0x20002670 08007cf4 <__malloc_unlock>: 8007cf4: 4801 ldr r0, [pc, #4] ; (8007cfc <__malloc_unlock+0x8>) 8007cf6: f000 bea9 b.w 8008a4c <__retarget_lock_release_recursive> 8007cfa: bf00 nop 8007cfc: 20002670 .word 0x20002670 08007d00 <__cvt>: 8007d00: 2b00 cmp r3, #0 8007d02: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 8007d06: 461f mov r7, r3 8007d08: bfbb ittet lt 8007d0a: f103 4300 addlt.w r3, r3, #2147483648 ; 0x80000000 8007d0e: 461f movlt r7, r3 8007d10: 2300 movge r3, #0 8007d12: 232d movlt r3, #45 ; 0x2d 8007d14: b088 sub sp, #32 8007d16: 4614 mov r4, r2 8007d18: 9a12 ldr r2, [sp, #72] ; 0x48 8007d1a: 9d10 ldr r5, [sp, #64] ; 0x40 8007d1c: 7013 strb r3, [r2, #0] 8007d1e: 9b14 ldr r3, [sp, #80] ; 0x50 8007d20: f8dd a04c ldr.w sl, [sp, #76] ; 0x4c 8007d24: f023 0820 bic.w r8, r3, #32 8007d28: f1b8 0f46 cmp.w r8, #70 ; 0x46 8007d2c: d005 beq.n 8007d3a <__cvt+0x3a> 8007d2e: f1b8 0f45 cmp.w r8, #69 ; 0x45 8007d32: d100 bne.n 8007d36 <__cvt+0x36> 8007d34: 3501 adds r5, #1 8007d36: 2302 movs r3, #2 8007d38: e000 b.n 8007d3c <__cvt+0x3c> 8007d3a: 2303 movs r3, #3 8007d3c: aa07 add r2, sp, #28 8007d3e: 9204 str r2, [sp, #16] 8007d40: aa06 add r2, sp, #24 8007d42: e9cd a202 strd sl, r2, [sp, #8] 8007d46: e9cd 3500 strd r3, r5, [sp] 8007d4a: 4622 mov r2, r4 8007d4c: 463b mov r3, r7 8007d4e: f000 ff17 bl 8008b80 <_dtoa_r> 8007d52: f1b8 0f47 cmp.w r8, #71 ; 0x47 8007d56: 4606 mov r6, r0 8007d58: d102 bne.n 8007d60 <__cvt+0x60> 8007d5a: 9b11 ldr r3, [sp, #68] ; 0x44 8007d5c: 07db lsls r3, r3, #31 8007d5e: d522 bpl.n 8007da6 <__cvt+0xa6> 8007d60: f1b8 0f46 cmp.w r8, #70 ; 0x46 8007d64: eb06 0905 add.w r9, r6, r5 8007d68: d110 bne.n 8007d8c <__cvt+0x8c> 8007d6a: 7833 ldrb r3, [r6, #0] 8007d6c: 2b30 cmp r3, #48 ; 0x30 8007d6e: d10a bne.n 8007d86 <__cvt+0x86> 8007d70: 2200 movs r2, #0 8007d72: 2300 movs r3, #0 8007d74: 4620 mov r0, r4 8007d76: 4639 mov r1, r7 8007d78: f7f8 fe82 bl 8000a80 <__aeabi_dcmpeq> 8007d7c: b918 cbnz r0, 8007d86 <__cvt+0x86> 8007d7e: f1c5 0501 rsb r5, r5, #1 8007d82: f8ca 5000 str.w r5, [sl] 8007d86: f8da 3000 ldr.w r3, [sl] 8007d8a: 4499 add r9, r3 8007d8c: 2200 movs r2, #0 8007d8e: 2300 movs r3, #0 8007d90: 4620 mov r0, r4 8007d92: 4639 mov r1, r7 8007d94: f7f8 fe74 bl 8000a80 <__aeabi_dcmpeq> 8007d98: b108 cbz r0, 8007d9e <__cvt+0x9e> 8007d9a: f8cd 901c str.w r9, [sp, #28] 8007d9e: 2230 movs r2, #48 ; 0x30 8007da0: 9b07 ldr r3, [sp, #28] 8007da2: 454b cmp r3, r9 8007da4: d307 bcc.n 8007db6 <__cvt+0xb6> 8007da6: 4630 mov r0, r6 8007da8: 9b07 ldr r3, [sp, #28] 8007daa: 9a15 ldr r2, [sp, #84] ; 0x54 8007dac: 1b9b subs r3, r3, r6 8007dae: 6013 str r3, [r2, #0] 8007db0: b008 add sp, #32 8007db2: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 8007db6: 1c59 adds r1, r3, #1 8007db8: 9107 str r1, [sp, #28] 8007dba: 701a strb r2, [r3, #0] 8007dbc: e7f0 b.n 8007da0 <__cvt+0xa0> 08007dbe <__exponent>: 8007dbe: 4603 mov r3, r0 8007dc0: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} 8007dc2: 2900 cmp r1, #0 8007dc4: f803 2b02 strb.w r2, [r3], #2 8007dc8: bfb6 itet lt 8007dca: 222d movlt r2, #45 ; 0x2d 8007dcc: 222b movge r2, #43 ; 0x2b 8007dce: 4249 neglt r1, r1 8007dd0: 2909 cmp r1, #9 8007dd2: 7042 strb r2, [r0, #1] 8007dd4: dd2a ble.n 8007e2c <__exponent+0x6e> 8007dd6: f10d 0207 add.w r2, sp, #7 8007dda: 4617 mov r7, r2 8007ddc: 260a movs r6, #10 8007dde: fb91 f5f6 sdiv r5, r1, r6 8007de2: 4694 mov ip, r2 8007de4: fb06 1415 mls r4, r6, r5, r1 8007de8: 3430 adds r4, #48 ; 0x30 8007dea: f80c 4c01 strb.w r4, [ip, #-1] 8007dee: 460c mov r4, r1 8007df0: 2c63 cmp r4, #99 ; 0x63 8007df2: 4629 mov r1, r5 8007df4: f102 32ff add.w r2, r2, #4294967295 8007df8: dcf1 bgt.n 8007dde <__exponent+0x20> 8007dfa: 3130 adds r1, #48 ; 0x30 8007dfc: f1ac 0402 sub.w r4, ip, #2 8007e00: f802 1c01 strb.w r1, [r2, #-1] 8007e04: 4622 mov r2, r4 8007e06: 1c41 adds r1, r0, #1 8007e08: 42ba cmp r2, r7 8007e0a: d30a bcc.n 8007e22 <__exponent+0x64> 8007e0c: f10d 0209 add.w r2, sp, #9 8007e10: eba2 020c sub.w r2, r2, ip 8007e14: 42bc cmp r4, r7 8007e16: bf88 it hi 8007e18: 2200 movhi r2, #0 8007e1a: 4413 add r3, r2 8007e1c: 1a18 subs r0, r3, r0 8007e1e: b003 add sp, #12 8007e20: bdf0 pop {r4, r5, r6, r7, pc} 8007e22: f812 5b01 ldrb.w r5, [r2], #1 8007e26: f801 5f01 strb.w r5, [r1, #1]! 8007e2a: e7ed b.n 8007e08 <__exponent+0x4a> 8007e2c: 2330 movs r3, #48 ; 0x30 8007e2e: 3130 adds r1, #48 ; 0x30 8007e30: 7083 strb r3, [r0, #2] 8007e32: 70c1 strb r1, [r0, #3] 8007e34: 1d03 adds r3, r0, #4 8007e36: e7f1 b.n 8007e1c <__exponent+0x5e> 08007e38 <_printf_float>: 8007e38: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8007e3c: b091 sub sp, #68 ; 0x44 8007e3e: 460c mov r4, r1 8007e40: f8dd 8068 ldr.w r8, [sp, #104] ; 0x68 8007e44: 4616 mov r6, r2 8007e46: 461f mov r7, r3 8007e48: 4605 mov r5, r0 8007e4a: f000 fd79 bl 8008940 <_localeconv_r> 8007e4e: 6803 ldr r3, [r0, #0] 8007e50: 4618 mov r0, r3 8007e52: 9309 str r3, [sp, #36] ; 0x24 8007e54: f7f8 f9e8 bl 8000228 8007e58: 2300 movs r3, #0 8007e5a: 930e str r3, [sp, #56] ; 0x38 8007e5c: f8d8 3000 ldr.w r3, [r8] 8007e60: 900a str r0, [sp, #40] ; 0x28 8007e62: 3307 adds r3, #7 8007e64: f023 0307 bic.w r3, r3, #7 8007e68: f103 0208 add.w r2, r3, #8 8007e6c: f894 9018 ldrb.w r9, [r4, #24] 8007e70: f8d4 b000 ldr.w fp, [r4] 8007e74: f8c8 2000 str.w r2, [r8] 8007e78: e9d3 a800 ldrd sl, r8, [r3] 8007e7c: 4652 mov r2, sl 8007e7e: 4643 mov r3, r8 8007e80: e9c4 2312 strd r2, r3, [r4, #72] ; 0x48 8007e84: f028 4300 bic.w r3, r8, #2147483648 ; 0x80000000 8007e88: 930b str r3, [sp, #44] ; 0x2c 8007e8a: f04f 32ff mov.w r2, #4294967295 8007e8e: 4650 mov r0, sl 8007e90: 4b9c ldr r3, [pc, #624] ; (8008104 <_printf_float+0x2cc>) 8007e92: 990b ldr r1, [sp, #44] ; 0x2c 8007e94: f7f8 fe26 bl 8000ae4 <__aeabi_dcmpun> 8007e98: bb70 cbnz r0, 8007ef8 <_printf_float+0xc0> 8007e9a: f04f 32ff mov.w r2, #4294967295 8007e9e: 4650 mov r0, sl 8007ea0: 4b98 ldr r3, [pc, #608] ; (8008104 <_printf_float+0x2cc>) 8007ea2: 990b ldr r1, [sp, #44] ; 0x2c 8007ea4: f7f8 fe00 bl 8000aa8 <__aeabi_dcmple> 8007ea8: bb30 cbnz r0, 8007ef8 <_printf_float+0xc0> 8007eaa: 2200 movs r2, #0 8007eac: 2300 movs r3, #0 8007eae: 4650 mov r0, sl 8007eb0: 4641 mov r1, r8 8007eb2: f7f8 fdef bl 8000a94 <__aeabi_dcmplt> 8007eb6: b110 cbz r0, 8007ebe <_printf_float+0x86> 8007eb8: 232d movs r3, #45 ; 0x2d 8007eba: f884 3043 strb.w r3, [r4, #67] ; 0x43 8007ebe: 4a92 ldr r2, [pc, #584] ; (8008108 <_printf_float+0x2d0>) 8007ec0: 4b92 ldr r3, [pc, #584] ; (800810c <_printf_float+0x2d4>) 8007ec2: f1b9 0f47 cmp.w r9, #71 ; 0x47 8007ec6: bf94 ite ls 8007ec8: 4690 movls r8, r2 8007eca: 4698 movhi r8, r3 8007ecc: 2303 movs r3, #3 8007ece: f04f 0a00 mov.w sl, #0 8007ed2: 6123 str r3, [r4, #16] 8007ed4: f02b 0304 bic.w r3, fp, #4 8007ed8: 6023 str r3, [r4, #0] 8007eda: 4633 mov r3, r6 8007edc: 4621 mov r1, r4 8007ede: 4628 mov r0, r5 8007ee0: 9700 str r7, [sp, #0] 8007ee2: aa0f add r2, sp, #60 ; 0x3c 8007ee4: f000 f9d6 bl 8008294 <_printf_common> 8007ee8: 3001 adds r0, #1 8007eea: f040 8090 bne.w 800800e <_printf_float+0x1d6> 8007eee: f04f 30ff mov.w r0, #4294967295 8007ef2: b011 add sp, #68 ; 0x44 8007ef4: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8007ef8: 4652 mov r2, sl 8007efa: 4643 mov r3, r8 8007efc: 4650 mov r0, sl 8007efe: 4641 mov r1, r8 8007f00: f7f8 fdf0 bl 8000ae4 <__aeabi_dcmpun> 8007f04: b148 cbz r0, 8007f1a <_printf_float+0xe2> 8007f06: f1b8 0f00 cmp.w r8, #0 8007f0a: bfb8 it lt 8007f0c: 232d movlt r3, #45 ; 0x2d 8007f0e: 4a80 ldr r2, [pc, #512] ; (8008110 <_printf_float+0x2d8>) 8007f10: bfb8 it lt 8007f12: f884 3043 strblt.w r3, [r4, #67] ; 0x43 8007f16: 4b7f ldr r3, [pc, #508] ; (8008114 <_printf_float+0x2dc>) 8007f18: e7d3 b.n 8007ec2 <_printf_float+0x8a> 8007f1a: 6863 ldr r3, [r4, #4] 8007f1c: f009 01df and.w r1, r9, #223 ; 0xdf 8007f20: 1c5a adds r2, r3, #1 8007f22: d142 bne.n 8007faa <_printf_float+0x172> 8007f24: 2306 movs r3, #6 8007f26: 6063 str r3, [r4, #4] 8007f28: 2200 movs r2, #0 8007f2a: 9206 str r2, [sp, #24] 8007f2c: aa0e add r2, sp, #56 ; 0x38 8007f2e: e9cd 9204 strd r9, r2, [sp, #16] 8007f32: aa0d add r2, sp, #52 ; 0x34 8007f34: f44b 6380 orr.w r3, fp, #1024 ; 0x400 8007f38: 9203 str r2, [sp, #12] 8007f3a: f10d 0233 add.w r2, sp, #51 ; 0x33 8007f3e: e9cd 3201 strd r3, r2, [sp, #4] 8007f42: 6023 str r3, [r4, #0] 8007f44: 6863 ldr r3, [r4, #4] 8007f46: 4652 mov r2, sl 8007f48: 9300 str r3, [sp, #0] 8007f4a: 4628 mov r0, r5 8007f4c: 4643 mov r3, r8 8007f4e: 910b str r1, [sp, #44] ; 0x2c 8007f50: f7ff fed6 bl 8007d00 <__cvt> 8007f54: 990b ldr r1, [sp, #44] ; 0x2c 8007f56: 4680 mov r8, r0 8007f58: 2947 cmp r1, #71 ; 0x47 8007f5a: 990d ldr r1, [sp, #52] ; 0x34 8007f5c: d108 bne.n 8007f70 <_printf_float+0x138> 8007f5e: 1cc8 adds r0, r1, #3 8007f60: db02 blt.n 8007f68 <_printf_float+0x130> 8007f62: 6863 ldr r3, [r4, #4] 8007f64: 4299 cmp r1, r3 8007f66: dd40 ble.n 8007fea <_printf_float+0x1b2> 8007f68: f1a9 0902 sub.w r9, r9, #2 8007f6c: fa5f f989 uxtb.w r9, r9 8007f70: f1b9 0f65 cmp.w r9, #101 ; 0x65 8007f74: d81f bhi.n 8007fb6 <_printf_float+0x17e> 8007f76: 464a mov r2, r9 8007f78: 3901 subs r1, #1 8007f7a: f104 0050 add.w r0, r4, #80 ; 0x50 8007f7e: 910d str r1, [sp, #52] ; 0x34 8007f80: f7ff ff1d bl 8007dbe <__exponent> 8007f84: 9a0e ldr r2, [sp, #56] ; 0x38 8007f86: 4682 mov sl, r0 8007f88: 1813 adds r3, r2, r0 8007f8a: 2a01 cmp r2, #1 8007f8c: 6123 str r3, [r4, #16] 8007f8e: dc02 bgt.n 8007f96 <_printf_float+0x15e> 8007f90: 6822 ldr r2, [r4, #0] 8007f92: 07d2 lsls r2, r2, #31 8007f94: d501 bpl.n 8007f9a <_printf_float+0x162> 8007f96: 3301 adds r3, #1 8007f98: 6123 str r3, [r4, #16] 8007f9a: f89d 3033 ldrb.w r3, [sp, #51] ; 0x33 8007f9e: 2b00 cmp r3, #0 8007fa0: d09b beq.n 8007eda <_printf_float+0xa2> 8007fa2: 232d movs r3, #45 ; 0x2d 8007fa4: f884 3043 strb.w r3, [r4, #67] ; 0x43 8007fa8: e797 b.n 8007eda <_printf_float+0xa2> 8007faa: 2947 cmp r1, #71 ; 0x47 8007fac: d1bc bne.n 8007f28 <_printf_float+0xf0> 8007fae: 2b00 cmp r3, #0 8007fb0: d1ba bne.n 8007f28 <_printf_float+0xf0> 8007fb2: 2301 movs r3, #1 8007fb4: e7b7 b.n 8007f26 <_printf_float+0xee> 8007fb6: f1b9 0f66 cmp.w r9, #102 ; 0x66 8007fba: d118 bne.n 8007fee <_printf_float+0x1b6> 8007fbc: 2900 cmp r1, #0 8007fbe: 6863 ldr r3, [r4, #4] 8007fc0: dd0b ble.n 8007fda <_printf_float+0x1a2> 8007fc2: 6121 str r1, [r4, #16] 8007fc4: b913 cbnz r3, 8007fcc <_printf_float+0x194> 8007fc6: 6822 ldr r2, [r4, #0] 8007fc8: 07d0 lsls r0, r2, #31 8007fca: d502 bpl.n 8007fd2 <_printf_float+0x19a> 8007fcc: 3301 adds r3, #1 8007fce: 440b add r3, r1 8007fd0: 6123 str r3, [r4, #16] 8007fd2: f04f 0a00 mov.w sl, #0 8007fd6: 65a1 str r1, [r4, #88] ; 0x58 8007fd8: e7df b.n 8007f9a <_printf_float+0x162> 8007fda: b913 cbnz r3, 8007fe2 <_printf_float+0x1aa> 8007fdc: 6822 ldr r2, [r4, #0] 8007fde: 07d2 lsls r2, r2, #31 8007fe0: d501 bpl.n 8007fe6 <_printf_float+0x1ae> 8007fe2: 3302 adds r3, #2 8007fe4: e7f4 b.n 8007fd0 <_printf_float+0x198> 8007fe6: 2301 movs r3, #1 8007fe8: e7f2 b.n 8007fd0 <_printf_float+0x198> 8007fea: f04f 0967 mov.w r9, #103 ; 0x67 8007fee: 9b0e ldr r3, [sp, #56] ; 0x38 8007ff0: 4299 cmp r1, r3 8007ff2: db05 blt.n 8008000 <_printf_float+0x1c8> 8007ff4: 6823 ldr r3, [r4, #0] 8007ff6: 6121 str r1, [r4, #16] 8007ff8: 07d8 lsls r0, r3, #31 8007ffa: d5ea bpl.n 8007fd2 <_printf_float+0x19a> 8007ffc: 1c4b adds r3, r1, #1 8007ffe: e7e7 b.n 8007fd0 <_printf_float+0x198> 8008000: 2900 cmp r1, #0 8008002: bfcc ite gt 8008004: 2201 movgt r2, #1 8008006: f1c1 0202 rsble r2, r1, #2 800800a: 4413 add r3, r2 800800c: e7e0 b.n 8007fd0 <_printf_float+0x198> 800800e: 6823 ldr r3, [r4, #0] 8008010: 055a lsls r2, r3, #21 8008012: d407 bmi.n 8008024 <_printf_float+0x1ec> 8008014: 6923 ldr r3, [r4, #16] 8008016: 4642 mov r2, r8 8008018: 4631 mov r1, r6 800801a: 4628 mov r0, r5 800801c: 47b8 blx r7 800801e: 3001 adds r0, #1 8008020: d12b bne.n 800807a <_printf_float+0x242> 8008022: e764 b.n 8007eee <_printf_float+0xb6> 8008024: f1b9 0f65 cmp.w r9, #101 ; 0x65 8008028: f240 80dd bls.w 80081e6 <_printf_float+0x3ae> 800802c: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 8008030: 2200 movs r2, #0 8008032: 2300 movs r3, #0 8008034: f7f8 fd24 bl 8000a80 <__aeabi_dcmpeq> 8008038: 2800 cmp r0, #0 800803a: d033 beq.n 80080a4 <_printf_float+0x26c> 800803c: 2301 movs r3, #1 800803e: 4631 mov r1, r6 8008040: 4628 mov r0, r5 8008042: 4a35 ldr r2, [pc, #212] ; (8008118 <_printf_float+0x2e0>) 8008044: 47b8 blx r7 8008046: 3001 adds r0, #1 8008048: f43f af51 beq.w 8007eee <_printf_float+0xb6> 800804c: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 8008050: 429a cmp r2, r3 8008052: db02 blt.n 800805a <_printf_float+0x222> 8008054: 6823 ldr r3, [r4, #0] 8008056: 07d8 lsls r0, r3, #31 8008058: d50f bpl.n 800807a <_printf_float+0x242> 800805a: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 800805e: 4631 mov r1, r6 8008060: 4628 mov r0, r5 8008062: 47b8 blx r7 8008064: 3001 adds r0, #1 8008066: f43f af42 beq.w 8007eee <_printf_float+0xb6> 800806a: f04f 0800 mov.w r8, #0 800806e: f104 091a add.w r9, r4, #26 8008072: 9b0e ldr r3, [sp, #56] ; 0x38 8008074: 3b01 subs r3, #1 8008076: 4543 cmp r3, r8 8008078: dc09 bgt.n 800808e <_printf_float+0x256> 800807a: 6823 ldr r3, [r4, #0] 800807c: 079b lsls r3, r3, #30 800807e: f100 8104 bmi.w 800828a <_printf_float+0x452> 8008082: 68e0 ldr r0, [r4, #12] 8008084: 9b0f ldr r3, [sp, #60] ; 0x3c 8008086: 4298 cmp r0, r3 8008088: bfb8 it lt 800808a: 4618 movlt r0, r3 800808c: e731 b.n 8007ef2 <_printf_float+0xba> 800808e: 2301 movs r3, #1 8008090: 464a mov r2, r9 8008092: 4631 mov r1, r6 8008094: 4628 mov r0, r5 8008096: 47b8 blx r7 8008098: 3001 adds r0, #1 800809a: f43f af28 beq.w 8007eee <_printf_float+0xb6> 800809e: f108 0801 add.w r8, r8, #1 80080a2: e7e6 b.n 8008072 <_printf_float+0x23a> 80080a4: 9b0d ldr r3, [sp, #52] ; 0x34 80080a6: 2b00 cmp r3, #0 80080a8: dc38 bgt.n 800811c <_printf_float+0x2e4> 80080aa: 2301 movs r3, #1 80080ac: 4631 mov r1, r6 80080ae: 4628 mov r0, r5 80080b0: 4a19 ldr r2, [pc, #100] ; (8008118 <_printf_float+0x2e0>) 80080b2: 47b8 blx r7 80080b4: 3001 adds r0, #1 80080b6: f43f af1a beq.w 8007eee <_printf_float+0xb6> 80080ba: e9dd 320d ldrd r3, r2, [sp, #52] ; 0x34 80080be: 4313 orrs r3, r2 80080c0: d102 bne.n 80080c8 <_printf_float+0x290> 80080c2: 6823 ldr r3, [r4, #0] 80080c4: 07d9 lsls r1, r3, #31 80080c6: d5d8 bpl.n 800807a <_printf_float+0x242> 80080c8: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 80080cc: 4631 mov r1, r6 80080ce: 4628 mov r0, r5 80080d0: 47b8 blx r7 80080d2: 3001 adds r0, #1 80080d4: f43f af0b beq.w 8007eee <_printf_float+0xb6> 80080d8: f04f 0900 mov.w r9, #0 80080dc: f104 0a1a add.w sl, r4, #26 80080e0: 9b0d ldr r3, [sp, #52] ; 0x34 80080e2: 425b negs r3, r3 80080e4: 454b cmp r3, r9 80080e6: dc01 bgt.n 80080ec <_printf_float+0x2b4> 80080e8: 9b0e ldr r3, [sp, #56] ; 0x38 80080ea: e794 b.n 8008016 <_printf_float+0x1de> 80080ec: 2301 movs r3, #1 80080ee: 4652 mov r2, sl 80080f0: 4631 mov r1, r6 80080f2: 4628 mov r0, r5 80080f4: 47b8 blx r7 80080f6: 3001 adds r0, #1 80080f8: f43f aef9 beq.w 8007eee <_printf_float+0xb6> 80080fc: f109 0901 add.w r9, r9, #1 8008100: e7ee b.n 80080e0 <_printf_float+0x2a8> 8008102: bf00 nop 8008104: 7fefffff .word 0x7fefffff 8008108: 0800b3f0 .word 0x0800b3f0 800810c: 0800b3f4 .word 0x0800b3f4 8008110: 0800b3f8 .word 0x0800b3f8 8008114: 0800b3fc .word 0x0800b3fc 8008118: 0800b400 .word 0x0800b400 800811c: 9a0e ldr r2, [sp, #56] ; 0x38 800811e: 6da3 ldr r3, [r4, #88] ; 0x58 8008120: 429a cmp r2, r3 8008122: bfa8 it ge 8008124: 461a movge r2, r3 8008126: 2a00 cmp r2, #0 8008128: 4691 mov r9, r2 800812a: dc37 bgt.n 800819c <_printf_float+0x364> 800812c: f04f 0b00 mov.w fp, #0 8008130: ea29 79e9 bic.w r9, r9, r9, asr #31 8008134: f104 021a add.w r2, r4, #26 8008138: f8d4 a058 ldr.w sl, [r4, #88] ; 0x58 800813c: ebaa 0309 sub.w r3, sl, r9 8008140: 455b cmp r3, fp 8008142: dc33 bgt.n 80081ac <_printf_float+0x374> 8008144: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 8008148: 429a cmp r2, r3 800814a: db3b blt.n 80081c4 <_printf_float+0x38c> 800814c: 6823 ldr r3, [r4, #0] 800814e: 07da lsls r2, r3, #31 8008150: d438 bmi.n 80081c4 <_printf_float+0x38c> 8008152: e9dd 320d ldrd r3, r2, [sp, #52] ; 0x34 8008156: eba2 0903 sub.w r9, r2, r3 800815a: eba2 020a sub.w r2, r2, sl 800815e: 4591 cmp r9, r2 8008160: bfa8 it ge 8008162: 4691 movge r9, r2 8008164: f1b9 0f00 cmp.w r9, #0 8008168: dc34 bgt.n 80081d4 <_printf_float+0x39c> 800816a: f04f 0800 mov.w r8, #0 800816e: ea29 79e9 bic.w r9, r9, r9, asr #31 8008172: f104 0a1a add.w sl, r4, #26 8008176: e9dd 230d ldrd r2, r3, [sp, #52] ; 0x34 800817a: 1a9b subs r3, r3, r2 800817c: eba3 0309 sub.w r3, r3, r9 8008180: 4543 cmp r3, r8 8008182: f77f af7a ble.w 800807a <_printf_float+0x242> 8008186: 2301 movs r3, #1 8008188: 4652 mov r2, sl 800818a: 4631 mov r1, r6 800818c: 4628 mov r0, r5 800818e: 47b8 blx r7 8008190: 3001 adds r0, #1 8008192: f43f aeac beq.w 8007eee <_printf_float+0xb6> 8008196: f108 0801 add.w r8, r8, #1 800819a: e7ec b.n 8008176 <_printf_float+0x33e> 800819c: 4613 mov r3, r2 800819e: 4631 mov r1, r6 80081a0: 4642 mov r2, r8 80081a2: 4628 mov r0, r5 80081a4: 47b8 blx r7 80081a6: 3001 adds r0, #1 80081a8: d1c0 bne.n 800812c <_printf_float+0x2f4> 80081aa: e6a0 b.n 8007eee <_printf_float+0xb6> 80081ac: 2301 movs r3, #1 80081ae: 4631 mov r1, r6 80081b0: 4628 mov r0, r5 80081b2: 920b str r2, [sp, #44] ; 0x2c 80081b4: 47b8 blx r7 80081b6: 3001 adds r0, #1 80081b8: f43f ae99 beq.w 8007eee <_printf_float+0xb6> 80081bc: 9a0b ldr r2, [sp, #44] ; 0x2c 80081be: f10b 0b01 add.w fp, fp, #1 80081c2: e7b9 b.n 8008138 <_printf_float+0x300> 80081c4: 4631 mov r1, r6 80081c6: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 80081ca: 4628 mov r0, r5 80081cc: 47b8 blx r7 80081ce: 3001 adds r0, #1 80081d0: d1bf bne.n 8008152 <_printf_float+0x31a> 80081d2: e68c b.n 8007eee <_printf_float+0xb6> 80081d4: 464b mov r3, r9 80081d6: 4631 mov r1, r6 80081d8: 4628 mov r0, r5 80081da: eb08 020a add.w r2, r8, sl 80081de: 47b8 blx r7 80081e0: 3001 adds r0, #1 80081e2: d1c2 bne.n 800816a <_printf_float+0x332> 80081e4: e683 b.n 8007eee <_printf_float+0xb6> 80081e6: 9a0e ldr r2, [sp, #56] ; 0x38 80081e8: 2a01 cmp r2, #1 80081ea: dc01 bgt.n 80081f0 <_printf_float+0x3b8> 80081ec: 07db lsls r3, r3, #31 80081ee: d539 bpl.n 8008264 <_printf_float+0x42c> 80081f0: 2301 movs r3, #1 80081f2: 4642 mov r2, r8 80081f4: 4631 mov r1, r6 80081f6: 4628 mov r0, r5 80081f8: 47b8 blx r7 80081fa: 3001 adds r0, #1 80081fc: f43f ae77 beq.w 8007eee <_printf_float+0xb6> 8008200: e9dd 2309 ldrd r2, r3, [sp, #36] ; 0x24 8008204: 4631 mov r1, r6 8008206: 4628 mov r0, r5 8008208: 47b8 blx r7 800820a: 3001 adds r0, #1 800820c: f43f ae6f beq.w 8007eee <_printf_float+0xb6> 8008210: e9d4 0112 ldrd r0, r1, [r4, #72] ; 0x48 8008214: 2200 movs r2, #0 8008216: 2300 movs r3, #0 8008218: f8dd 9038 ldr.w r9, [sp, #56] ; 0x38 800821c: f7f8 fc30 bl 8000a80 <__aeabi_dcmpeq> 8008220: b9d8 cbnz r0, 800825a <_printf_float+0x422> 8008222: f109 33ff add.w r3, r9, #4294967295 8008226: f108 0201 add.w r2, r8, #1 800822a: 4631 mov r1, r6 800822c: 4628 mov r0, r5 800822e: 47b8 blx r7 8008230: 3001 adds r0, #1 8008232: d10e bne.n 8008252 <_printf_float+0x41a> 8008234: e65b b.n 8007eee <_printf_float+0xb6> 8008236: 2301 movs r3, #1 8008238: 464a mov r2, r9 800823a: 4631 mov r1, r6 800823c: 4628 mov r0, r5 800823e: 47b8 blx r7 8008240: 3001 adds r0, #1 8008242: f43f ae54 beq.w 8007eee <_printf_float+0xb6> 8008246: f108 0801 add.w r8, r8, #1 800824a: 9b0e ldr r3, [sp, #56] ; 0x38 800824c: 3b01 subs r3, #1 800824e: 4543 cmp r3, r8 8008250: dcf1 bgt.n 8008236 <_printf_float+0x3fe> 8008252: 4653 mov r3, sl 8008254: f104 0250 add.w r2, r4, #80 ; 0x50 8008258: e6de b.n 8008018 <_printf_float+0x1e0> 800825a: f04f 0800 mov.w r8, #0 800825e: f104 091a add.w r9, r4, #26 8008262: e7f2 b.n 800824a <_printf_float+0x412> 8008264: 2301 movs r3, #1 8008266: 4642 mov r2, r8 8008268: e7df b.n 800822a <_printf_float+0x3f2> 800826a: 2301 movs r3, #1 800826c: 464a mov r2, r9 800826e: 4631 mov r1, r6 8008270: 4628 mov r0, r5 8008272: 47b8 blx r7 8008274: 3001 adds r0, #1 8008276: f43f ae3a beq.w 8007eee <_printf_float+0xb6> 800827a: f108 0801 add.w r8, r8, #1 800827e: 68e3 ldr r3, [r4, #12] 8008280: 990f ldr r1, [sp, #60] ; 0x3c 8008282: 1a5b subs r3, r3, r1 8008284: 4543 cmp r3, r8 8008286: dcf0 bgt.n 800826a <_printf_float+0x432> 8008288: e6fb b.n 8008082 <_printf_float+0x24a> 800828a: f04f 0800 mov.w r8, #0 800828e: f104 0919 add.w r9, r4, #25 8008292: e7f4 b.n 800827e <_printf_float+0x446> 08008294 <_printf_common>: 8008294: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 8008298: 4616 mov r6, r2 800829a: 4699 mov r9, r3 800829c: 688a ldr r2, [r1, #8] 800829e: 690b ldr r3, [r1, #16] 80082a0: 4607 mov r7, r0 80082a2: 4293 cmp r3, r2 80082a4: bfb8 it lt 80082a6: 4613 movlt r3, r2 80082a8: 6033 str r3, [r6, #0] 80082aa: f891 2043 ldrb.w r2, [r1, #67] ; 0x43 80082ae: 460c mov r4, r1 80082b0: f8dd 8020 ldr.w r8, [sp, #32] 80082b4: b10a cbz r2, 80082ba <_printf_common+0x26> 80082b6: 3301 adds r3, #1 80082b8: 6033 str r3, [r6, #0] 80082ba: 6823 ldr r3, [r4, #0] 80082bc: 0699 lsls r1, r3, #26 80082be: bf42 ittt mi 80082c0: 6833 ldrmi r3, [r6, #0] 80082c2: 3302 addmi r3, #2 80082c4: 6033 strmi r3, [r6, #0] 80082c6: 6825 ldr r5, [r4, #0] 80082c8: f015 0506 ands.w r5, r5, #6 80082cc: d106 bne.n 80082dc <_printf_common+0x48> 80082ce: f104 0a19 add.w sl, r4, #25 80082d2: 68e3 ldr r3, [r4, #12] 80082d4: 6832 ldr r2, [r6, #0] 80082d6: 1a9b subs r3, r3, r2 80082d8: 42ab cmp r3, r5 80082da: dc2b bgt.n 8008334 <_printf_common+0xa0> 80082dc: f894 2043 ldrb.w r2, [r4, #67] ; 0x43 80082e0: 1e13 subs r3, r2, #0 80082e2: 6822 ldr r2, [r4, #0] 80082e4: bf18 it ne 80082e6: 2301 movne r3, #1 80082e8: 0692 lsls r2, r2, #26 80082ea: d430 bmi.n 800834e <_printf_common+0xba> 80082ec: 4649 mov r1, r9 80082ee: 4638 mov r0, r7 80082f0: f104 0243 add.w r2, r4, #67 ; 0x43 80082f4: 47c0 blx r8 80082f6: 3001 adds r0, #1 80082f8: d023 beq.n 8008342 <_printf_common+0xae> 80082fa: 6823 ldr r3, [r4, #0] 80082fc: 6922 ldr r2, [r4, #16] 80082fe: f003 0306 and.w r3, r3, #6 8008302: 2b04 cmp r3, #4 8008304: bf14 ite ne 8008306: 2500 movne r5, #0 8008308: 6833 ldreq r3, [r6, #0] 800830a: f04f 0600 mov.w r6, #0 800830e: bf08 it eq 8008310: 68e5 ldreq r5, [r4, #12] 8008312: f104 041a add.w r4, r4, #26 8008316: bf08 it eq 8008318: 1aed subeq r5, r5, r3 800831a: f854 3c12 ldr.w r3, [r4, #-18] 800831e: bf08 it eq 8008320: ea25 75e5 biceq.w r5, r5, r5, asr #31 8008324: 4293 cmp r3, r2 8008326: bfc4 itt gt 8008328: 1a9b subgt r3, r3, r2 800832a: 18ed addgt r5, r5, r3 800832c: 42b5 cmp r5, r6 800832e: d11a bne.n 8008366 <_printf_common+0xd2> 8008330: 2000 movs r0, #0 8008332: e008 b.n 8008346 <_printf_common+0xb2> 8008334: 2301 movs r3, #1 8008336: 4652 mov r2, sl 8008338: 4649 mov r1, r9 800833a: 4638 mov r0, r7 800833c: 47c0 blx r8 800833e: 3001 adds r0, #1 8008340: d103 bne.n 800834a <_printf_common+0xb6> 8008342: f04f 30ff mov.w r0, #4294967295 8008346: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 800834a: 3501 adds r5, #1 800834c: e7c1 b.n 80082d2 <_printf_common+0x3e> 800834e: 2030 movs r0, #48 ; 0x30 8008350: 18e1 adds r1, r4, r3 8008352: f881 0043 strb.w r0, [r1, #67] ; 0x43 8008356: 1c5a adds r2, r3, #1 8008358: f894 1045 ldrb.w r1, [r4, #69] ; 0x45 800835c: 4422 add r2, r4 800835e: 3302 adds r3, #2 8008360: f882 1043 strb.w r1, [r2, #67] ; 0x43 8008364: e7c2 b.n 80082ec <_printf_common+0x58> 8008366: 2301 movs r3, #1 8008368: 4622 mov r2, r4 800836a: 4649 mov r1, r9 800836c: 4638 mov r0, r7 800836e: 47c0 blx r8 8008370: 3001 adds r0, #1 8008372: d0e6 beq.n 8008342 <_printf_common+0xae> 8008374: 3601 adds r6, #1 8008376: e7d9 b.n 800832c <_printf_common+0x98> 08008378 <_printf_i>: 8008378: e92d 47ff stmdb sp!, {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} 800837c: 7e0f ldrb r7, [r1, #24] 800837e: 4691 mov r9, r2 8008380: 2f78 cmp r7, #120 ; 0x78 8008382: 4680 mov r8, r0 8008384: 460c mov r4, r1 8008386: 469a mov sl, r3 8008388: 9d0c ldr r5, [sp, #48] ; 0x30 800838a: f101 0243 add.w r2, r1, #67 ; 0x43 800838e: d807 bhi.n 80083a0 <_printf_i+0x28> 8008390: 2f62 cmp r7, #98 ; 0x62 8008392: d80a bhi.n 80083aa <_printf_i+0x32> 8008394: 2f00 cmp r7, #0 8008396: f000 80d5 beq.w 8008544 <_printf_i+0x1cc> 800839a: 2f58 cmp r7, #88 ; 0x58 800839c: f000 80c1 beq.w 8008522 <_printf_i+0x1aa> 80083a0: f104 0542 add.w r5, r4, #66 ; 0x42 80083a4: f884 7042 strb.w r7, [r4, #66] ; 0x42 80083a8: e03a b.n 8008420 <_printf_i+0xa8> 80083aa: f1a7 0363 sub.w r3, r7, #99 ; 0x63 80083ae: 2b15 cmp r3, #21 80083b0: d8f6 bhi.n 80083a0 <_printf_i+0x28> 80083b2: a101 add r1, pc, #4 ; (adr r1, 80083b8 <_printf_i+0x40>) 80083b4: f851 f023 ldr.w pc, [r1, r3, lsl #2] 80083b8: 08008411 .word 0x08008411 80083bc: 08008425 .word 0x08008425 80083c0: 080083a1 .word 0x080083a1 80083c4: 080083a1 .word 0x080083a1 80083c8: 080083a1 .word 0x080083a1 80083cc: 080083a1 .word 0x080083a1 80083d0: 08008425 .word 0x08008425 80083d4: 080083a1 .word 0x080083a1 80083d8: 080083a1 .word 0x080083a1 80083dc: 080083a1 .word 0x080083a1 80083e0: 080083a1 .word 0x080083a1 80083e4: 0800852b .word 0x0800852b 80083e8: 08008451 .word 0x08008451 80083ec: 080084e5 .word 0x080084e5 80083f0: 080083a1 .word 0x080083a1 80083f4: 080083a1 .word 0x080083a1 80083f8: 0800854d .word 0x0800854d 80083fc: 080083a1 .word 0x080083a1 8008400: 08008451 .word 0x08008451 8008404: 080083a1 .word 0x080083a1 8008408: 080083a1 .word 0x080083a1 800840c: 080084ed .word 0x080084ed 8008410: 682b ldr r3, [r5, #0] 8008412: 1d1a adds r2, r3, #4 8008414: 681b ldr r3, [r3, #0] 8008416: 602a str r2, [r5, #0] 8008418: f104 0542 add.w r5, r4, #66 ; 0x42 800841c: f884 3042 strb.w r3, [r4, #66] ; 0x42 8008420: 2301 movs r3, #1 8008422: e0a0 b.n 8008566 <_printf_i+0x1ee> 8008424: 6820 ldr r0, [r4, #0] 8008426: 682b ldr r3, [r5, #0] 8008428: 0607 lsls r7, r0, #24 800842a: f103 0104 add.w r1, r3, #4 800842e: 6029 str r1, [r5, #0] 8008430: d501 bpl.n 8008436 <_printf_i+0xbe> 8008432: 681e ldr r6, [r3, #0] 8008434: e003 b.n 800843e <_printf_i+0xc6> 8008436: 0646 lsls r6, r0, #25 8008438: d5fb bpl.n 8008432 <_printf_i+0xba> 800843a: f9b3 6000 ldrsh.w r6, [r3] 800843e: 2e00 cmp r6, #0 8008440: da03 bge.n 800844a <_printf_i+0xd2> 8008442: 232d movs r3, #45 ; 0x2d 8008444: 4276 negs r6, r6 8008446: f884 3043 strb.w r3, [r4, #67] ; 0x43 800844a: 230a movs r3, #10 800844c: 4859 ldr r0, [pc, #356] ; (80085b4 <_printf_i+0x23c>) 800844e: e012 b.n 8008476 <_printf_i+0xfe> 8008450: 682b ldr r3, [r5, #0] 8008452: 6820 ldr r0, [r4, #0] 8008454: 1d19 adds r1, r3, #4 8008456: 6029 str r1, [r5, #0] 8008458: 0605 lsls r5, r0, #24 800845a: d501 bpl.n 8008460 <_printf_i+0xe8> 800845c: 681e ldr r6, [r3, #0] 800845e: e002 b.n 8008466 <_printf_i+0xee> 8008460: 0641 lsls r1, r0, #25 8008462: d5fb bpl.n 800845c <_printf_i+0xe4> 8008464: 881e ldrh r6, [r3, #0] 8008466: 2f6f cmp r7, #111 ; 0x6f 8008468: bf0c ite eq 800846a: 2308 moveq r3, #8 800846c: 230a movne r3, #10 800846e: 4851 ldr r0, [pc, #324] ; (80085b4 <_printf_i+0x23c>) 8008470: 2100 movs r1, #0 8008472: f884 1043 strb.w r1, [r4, #67] ; 0x43 8008476: 6865 ldr r5, [r4, #4] 8008478: 2d00 cmp r5, #0 800847a: bfa8 it ge 800847c: 6821 ldrge r1, [r4, #0] 800847e: 60a5 str r5, [r4, #8] 8008480: bfa4 itt ge 8008482: f021 0104 bicge.w r1, r1, #4 8008486: 6021 strge r1, [r4, #0] 8008488: b90e cbnz r6, 800848e <_printf_i+0x116> 800848a: 2d00 cmp r5, #0 800848c: d04b beq.n 8008526 <_printf_i+0x1ae> 800848e: 4615 mov r5, r2 8008490: fbb6 f1f3 udiv r1, r6, r3 8008494: fb03 6711 mls r7, r3, r1, r6 8008498: 5dc7 ldrb r7, [r0, r7] 800849a: f805 7d01 strb.w r7, [r5, #-1]! 800849e: 4637 mov r7, r6 80084a0: 42bb cmp r3, r7 80084a2: 460e mov r6, r1 80084a4: d9f4 bls.n 8008490 <_printf_i+0x118> 80084a6: 2b08 cmp r3, #8 80084a8: d10b bne.n 80084c2 <_printf_i+0x14a> 80084aa: 6823 ldr r3, [r4, #0] 80084ac: 07de lsls r6, r3, #31 80084ae: d508 bpl.n 80084c2 <_printf_i+0x14a> 80084b0: 6923 ldr r3, [r4, #16] 80084b2: 6861 ldr r1, [r4, #4] 80084b4: 4299 cmp r1, r3 80084b6: bfde ittt le 80084b8: 2330 movle r3, #48 ; 0x30 80084ba: f805 3c01 strble.w r3, [r5, #-1] 80084be: f105 35ff addle.w r5, r5, #4294967295 80084c2: 1b52 subs r2, r2, r5 80084c4: 6122 str r2, [r4, #16] 80084c6: 464b mov r3, r9 80084c8: 4621 mov r1, r4 80084ca: 4640 mov r0, r8 80084cc: f8cd a000 str.w sl, [sp] 80084d0: aa03 add r2, sp, #12 80084d2: f7ff fedf bl 8008294 <_printf_common> 80084d6: 3001 adds r0, #1 80084d8: d14a bne.n 8008570 <_printf_i+0x1f8> 80084da: f04f 30ff mov.w r0, #4294967295 80084de: b004 add sp, #16 80084e0: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 80084e4: 6823 ldr r3, [r4, #0] 80084e6: f043 0320 orr.w r3, r3, #32 80084ea: 6023 str r3, [r4, #0] 80084ec: 2778 movs r7, #120 ; 0x78 80084ee: 4832 ldr r0, [pc, #200] ; (80085b8 <_printf_i+0x240>) 80084f0: f884 7045 strb.w r7, [r4, #69] ; 0x45 80084f4: 6823 ldr r3, [r4, #0] 80084f6: 6829 ldr r1, [r5, #0] 80084f8: 061f lsls r7, r3, #24 80084fa: f851 6b04 ldr.w r6, [r1], #4 80084fe: d402 bmi.n 8008506 <_printf_i+0x18e> 8008500: 065f lsls r7, r3, #25 8008502: bf48 it mi 8008504: b2b6 uxthmi r6, r6 8008506: 07df lsls r7, r3, #31 8008508: bf48 it mi 800850a: f043 0320 orrmi.w r3, r3, #32 800850e: 6029 str r1, [r5, #0] 8008510: bf48 it mi 8008512: 6023 strmi r3, [r4, #0] 8008514: b91e cbnz r6, 800851e <_printf_i+0x1a6> 8008516: 6823 ldr r3, [r4, #0] 8008518: f023 0320 bic.w r3, r3, #32 800851c: 6023 str r3, [r4, #0] 800851e: 2310 movs r3, #16 8008520: e7a6 b.n 8008470 <_printf_i+0xf8> 8008522: 4824 ldr r0, [pc, #144] ; (80085b4 <_printf_i+0x23c>) 8008524: e7e4 b.n 80084f0 <_printf_i+0x178> 8008526: 4615 mov r5, r2 8008528: e7bd b.n 80084a6 <_printf_i+0x12e> 800852a: 682b ldr r3, [r5, #0] 800852c: 6826 ldr r6, [r4, #0] 800852e: 1d18 adds r0, r3, #4 8008530: 6961 ldr r1, [r4, #20] 8008532: 6028 str r0, [r5, #0] 8008534: 0635 lsls r5, r6, #24 8008536: 681b ldr r3, [r3, #0] 8008538: d501 bpl.n 800853e <_printf_i+0x1c6> 800853a: 6019 str r1, [r3, #0] 800853c: e002 b.n 8008544 <_printf_i+0x1cc> 800853e: 0670 lsls r0, r6, #25 8008540: d5fb bpl.n 800853a <_printf_i+0x1c2> 8008542: 8019 strh r1, [r3, #0] 8008544: 2300 movs r3, #0 8008546: 4615 mov r5, r2 8008548: 6123 str r3, [r4, #16] 800854a: e7bc b.n 80084c6 <_printf_i+0x14e> 800854c: 682b ldr r3, [r5, #0] 800854e: 2100 movs r1, #0 8008550: 1d1a adds r2, r3, #4 8008552: 602a str r2, [r5, #0] 8008554: 681d ldr r5, [r3, #0] 8008556: 6862 ldr r2, [r4, #4] 8008558: 4628 mov r0, r5 800855a: f000 fa78 bl 8008a4e 800855e: b108 cbz r0, 8008564 <_printf_i+0x1ec> 8008560: 1b40 subs r0, r0, r5 8008562: 6060 str r0, [r4, #4] 8008564: 6863 ldr r3, [r4, #4] 8008566: 6123 str r3, [r4, #16] 8008568: 2300 movs r3, #0 800856a: f884 3043 strb.w r3, [r4, #67] ; 0x43 800856e: e7aa b.n 80084c6 <_printf_i+0x14e> 8008570: 462a mov r2, r5 8008572: 4649 mov r1, r9 8008574: 4640 mov r0, r8 8008576: 6923 ldr r3, [r4, #16] 8008578: 47d0 blx sl 800857a: 3001 adds r0, #1 800857c: d0ad beq.n 80084da <_printf_i+0x162> 800857e: 6823 ldr r3, [r4, #0] 8008580: 079b lsls r3, r3, #30 8008582: d413 bmi.n 80085ac <_printf_i+0x234> 8008584: 68e0 ldr r0, [r4, #12] 8008586: 9b03 ldr r3, [sp, #12] 8008588: 4298 cmp r0, r3 800858a: bfb8 it lt 800858c: 4618 movlt r0, r3 800858e: e7a6 b.n 80084de <_printf_i+0x166> 8008590: 2301 movs r3, #1 8008592: 4632 mov r2, r6 8008594: 4649 mov r1, r9 8008596: 4640 mov r0, r8 8008598: 47d0 blx sl 800859a: 3001 adds r0, #1 800859c: d09d beq.n 80084da <_printf_i+0x162> 800859e: 3501 adds r5, #1 80085a0: 68e3 ldr r3, [r4, #12] 80085a2: 9903 ldr r1, [sp, #12] 80085a4: 1a5b subs r3, r3, r1 80085a6: 42ab cmp r3, r5 80085a8: dcf2 bgt.n 8008590 <_printf_i+0x218> 80085aa: e7eb b.n 8008584 <_printf_i+0x20c> 80085ac: 2500 movs r5, #0 80085ae: f104 0619 add.w r6, r4, #25 80085b2: e7f5 b.n 80085a0 <_printf_i+0x228> 80085b4: 0800b402 .word 0x0800b402 80085b8: 0800b413 .word 0x0800b413 080085bc : 80085bc: 2300 movs r3, #0 80085be: b510 push {r4, lr} 80085c0: 4604 mov r4, r0 80085c2: e9c0 3300 strd r3, r3, [r0] 80085c6: e9c0 3304 strd r3, r3, [r0, #16] 80085ca: 6083 str r3, [r0, #8] 80085cc: 8181 strh r1, [r0, #12] 80085ce: 6643 str r3, [r0, #100] ; 0x64 80085d0: 81c2 strh r2, [r0, #14] 80085d2: 6183 str r3, [r0, #24] 80085d4: 4619 mov r1, r3 80085d6: 2208 movs r2, #8 80085d8: 305c adds r0, #92 ; 0x5c 80085da: f000 f9a9 bl 8008930 80085de: 4b0d ldr r3, [pc, #52] ; (8008614 ) 80085e0: 6224 str r4, [r4, #32] 80085e2: 6263 str r3, [r4, #36] ; 0x24 80085e4: 4b0c ldr r3, [pc, #48] ; (8008618 ) 80085e6: 62a3 str r3, [r4, #40] ; 0x28 80085e8: 4b0c ldr r3, [pc, #48] ; (800861c ) 80085ea: 62e3 str r3, [r4, #44] ; 0x2c 80085ec: 4b0c ldr r3, [pc, #48] ; (8008620 ) 80085ee: 6323 str r3, [r4, #48] ; 0x30 80085f0: 4b0c ldr r3, [pc, #48] ; (8008624 ) 80085f2: 429c cmp r4, r3 80085f4: d006 beq.n 8008604 80085f6: f103 0268 add.w r2, r3, #104 ; 0x68 80085fa: 4294 cmp r4, r2 80085fc: d002 beq.n 8008604 80085fe: 33d0 adds r3, #208 ; 0xd0 8008600: 429c cmp r4, r3 8008602: d105 bne.n 8008610 8008604: f104 0058 add.w r0, r4, #88 ; 0x58 8008608: e8bd 4010 ldmia.w sp!, {r4, lr} 800860c: f000 ba1c b.w 8008a48 <__retarget_lock_init_recursive> 8008610: bd10 pop {r4, pc} 8008612: bf00 nop 8008614: 08008781 .word 0x08008781 8008618: 080087a3 .word 0x080087a3 800861c: 080087db .word 0x080087db 8008620: 080087ff .word 0x080087ff 8008624: 20002530 .word 0x20002530 08008628 : 8008628: 4a02 ldr r2, [pc, #8] ; (8008634 ) 800862a: 4903 ldr r1, [pc, #12] ; (8008638 ) 800862c: 4803 ldr r0, [pc, #12] ; (800863c ) 800862e: f000 b869 b.w 8008704 <_fwalk_sglue> 8008632: bf00 nop 8008634: 2000000c .word 0x2000000c 8008638: 0800a501 .word 0x0800a501 800863c: 20000018 .word 0x20000018 08008640 : 8008640: 6841 ldr r1, [r0, #4] 8008642: 4b0c ldr r3, [pc, #48] ; (8008674 ) 8008644: b510 push {r4, lr} 8008646: 4299 cmp r1, r3 8008648: 4604 mov r4, r0 800864a: d001 beq.n 8008650 800864c: f001 ff58 bl 800a500 <_fflush_r> 8008650: 68a1 ldr r1, [r4, #8] 8008652: 4b09 ldr r3, [pc, #36] ; (8008678 ) 8008654: 4299 cmp r1, r3 8008656: d002 beq.n 800865e 8008658: 4620 mov r0, r4 800865a: f001 ff51 bl 800a500 <_fflush_r> 800865e: 68e1 ldr r1, [r4, #12] 8008660: 4b06 ldr r3, [pc, #24] ; (800867c ) 8008662: 4299 cmp r1, r3 8008664: d004 beq.n 8008670 8008666: 4620 mov r0, r4 8008668: e8bd 4010 ldmia.w sp!, {r4, lr} 800866c: f001 bf48 b.w 800a500 <_fflush_r> 8008670: bd10 pop {r4, pc} 8008672: bf00 nop 8008674: 20002530 .word 0x20002530 8008678: 20002598 .word 0x20002598 800867c: 20002600 .word 0x20002600 08008680 : 8008680: b510 push {r4, lr} 8008682: 4b0b ldr r3, [pc, #44] ; (80086b0 ) 8008684: 4c0b ldr r4, [pc, #44] ; (80086b4 ) 8008686: 4a0c ldr r2, [pc, #48] ; (80086b8 ) 8008688: 4620 mov r0, r4 800868a: 601a str r2, [r3, #0] 800868c: 2104 movs r1, #4 800868e: 2200 movs r2, #0 8008690: f7ff ff94 bl 80085bc 8008694: f104 0068 add.w r0, r4, #104 ; 0x68 8008698: 2201 movs r2, #1 800869a: 2109 movs r1, #9 800869c: f7ff ff8e bl 80085bc 80086a0: f104 00d0 add.w r0, r4, #208 ; 0xd0 80086a4: 2202 movs r2, #2 80086a6: e8bd 4010 ldmia.w sp!, {r4, lr} 80086aa: 2112 movs r1, #18 80086ac: f7ff bf86 b.w 80085bc 80086b0: 20002668 .word 0x20002668 80086b4: 20002530 .word 0x20002530 80086b8: 08008629 .word 0x08008629 080086bc <__sfp_lock_acquire>: 80086bc: 4801 ldr r0, [pc, #4] ; (80086c4 <__sfp_lock_acquire+0x8>) 80086be: f000 b9c4 b.w 8008a4a <__retarget_lock_acquire_recursive> 80086c2: bf00 nop 80086c4: 20002671 .word 0x20002671 080086c8 <__sfp_lock_release>: 80086c8: 4801 ldr r0, [pc, #4] ; (80086d0 <__sfp_lock_release+0x8>) 80086ca: f000 b9bf b.w 8008a4c <__retarget_lock_release_recursive> 80086ce: bf00 nop 80086d0: 20002671 .word 0x20002671 080086d4 <__sinit>: 80086d4: b510 push {r4, lr} 80086d6: 4604 mov r4, r0 80086d8: f7ff fff0 bl 80086bc <__sfp_lock_acquire> 80086dc: 6a23 ldr r3, [r4, #32] 80086de: b11b cbz r3, 80086e8 <__sinit+0x14> 80086e0: e8bd 4010 ldmia.w sp!, {r4, lr} 80086e4: f7ff bff0 b.w 80086c8 <__sfp_lock_release> 80086e8: 4b04 ldr r3, [pc, #16] ; (80086fc <__sinit+0x28>) 80086ea: 6223 str r3, [r4, #32] 80086ec: 4b04 ldr r3, [pc, #16] ; (8008700 <__sinit+0x2c>) 80086ee: 681b ldr r3, [r3, #0] 80086f0: 2b00 cmp r3, #0 80086f2: d1f5 bne.n 80086e0 <__sinit+0xc> 80086f4: f7ff ffc4 bl 8008680 80086f8: e7f2 b.n 80086e0 <__sinit+0xc> 80086fa: bf00 nop 80086fc: 08008641 .word 0x08008641 8008700: 20002668 .word 0x20002668 08008704 <_fwalk_sglue>: 8008704: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 8008708: 4607 mov r7, r0 800870a: 4688 mov r8, r1 800870c: 4614 mov r4, r2 800870e: 2600 movs r6, #0 8008710: e9d4 9501 ldrd r9, r5, [r4, #4] 8008714: f1b9 0901 subs.w r9, r9, #1 8008718: d505 bpl.n 8008726 <_fwalk_sglue+0x22> 800871a: 6824 ldr r4, [r4, #0] 800871c: 2c00 cmp r4, #0 800871e: d1f7 bne.n 8008710 <_fwalk_sglue+0xc> 8008720: 4630 mov r0, r6 8008722: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 8008726: 89ab ldrh r3, [r5, #12] 8008728: 2b01 cmp r3, #1 800872a: d907 bls.n 800873c <_fwalk_sglue+0x38> 800872c: f9b5 300e ldrsh.w r3, [r5, #14] 8008730: 3301 adds r3, #1 8008732: d003 beq.n 800873c <_fwalk_sglue+0x38> 8008734: 4629 mov r1, r5 8008736: 4638 mov r0, r7 8008738: 47c0 blx r8 800873a: 4306 orrs r6, r0 800873c: 3568 adds r5, #104 ; 0x68 800873e: e7e9 b.n 8008714 <_fwalk_sglue+0x10> 08008740 : 8008740: b40e push {r1, r2, r3} 8008742: f06f 4100 mvn.w r1, #2147483648 ; 0x80000000 8008746: b500 push {lr} 8008748: b09c sub sp, #112 ; 0x70 800874a: ab1d add r3, sp, #116 ; 0x74 800874c: 9002 str r0, [sp, #8] 800874e: 9006 str r0, [sp, #24] 8008750: 9107 str r1, [sp, #28] 8008752: 9104 str r1, [sp, #16] 8008754: 4808 ldr r0, [pc, #32] ; (8008778 ) 8008756: 4909 ldr r1, [pc, #36] ; (800877c ) 8008758: f853 2b04 ldr.w r2, [r3], #4 800875c: 9105 str r1, [sp, #20] 800875e: 6800 ldr r0, [r0, #0] 8008760: a902 add r1, sp, #8 8008762: 9301 str r3, [sp, #4] 8008764: f001 fc0a bl 8009f7c <_svfiprintf_r> 8008768: 2200 movs r2, #0 800876a: 9b02 ldr r3, [sp, #8] 800876c: 701a strb r2, [r3, #0] 800876e: b01c add sp, #112 ; 0x70 8008770: f85d eb04 ldr.w lr, [sp], #4 8008774: b003 add sp, #12 8008776: 4770 bx lr 8008778: 20000064 .word 0x20000064 800877c: ffff0208 .word 0xffff0208 08008780 <__sread>: 8008780: b510 push {r4, lr} 8008782: 460c mov r4, r1 8008784: f9b1 100e ldrsh.w r1, [r1, #14] 8008788: f000 f900 bl 800898c <_read_r> 800878c: 2800 cmp r0, #0 800878e: bfab itete ge 8008790: 6d63 ldrge r3, [r4, #84] ; 0x54 8008792: 89a3 ldrhlt r3, [r4, #12] 8008794: 181b addge r3, r3, r0 8008796: f423 5380 biclt.w r3, r3, #4096 ; 0x1000 800879a: bfac ite ge 800879c: 6563 strge r3, [r4, #84] ; 0x54 800879e: 81a3 strhlt r3, [r4, #12] 80087a0: bd10 pop {r4, pc} 080087a2 <__swrite>: 80087a2: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 80087a6: 461f mov r7, r3 80087a8: 898b ldrh r3, [r1, #12] 80087aa: 4605 mov r5, r0 80087ac: 05db lsls r3, r3, #23 80087ae: 460c mov r4, r1 80087b0: 4616 mov r6, r2 80087b2: d505 bpl.n 80087c0 <__swrite+0x1e> 80087b4: 2302 movs r3, #2 80087b6: 2200 movs r2, #0 80087b8: f9b1 100e ldrsh.w r1, [r1, #14] 80087bc: f000 f8d4 bl 8008968 <_lseek_r> 80087c0: 89a3 ldrh r3, [r4, #12] 80087c2: 4632 mov r2, r6 80087c4: f423 5380 bic.w r3, r3, #4096 ; 0x1000 80087c8: 81a3 strh r3, [r4, #12] 80087ca: 4628 mov r0, r5 80087cc: 463b mov r3, r7 80087ce: f9b4 100e ldrsh.w r1, [r4, #14] 80087d2: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} 80087d6: f000 b8fb b.w 80089d0 <_write_r> 080087da <__sseek>: 80087da: b510 push {r4, lr} 80087dc: 460c mov r4, r1 80087de: f9b1 100e ldrsh.w r1, [r1, #14] 80087e2: f000 f8c1 bl 8008968 <_lseek_r> 80087e6: 1c43 adds r3, r0, #1 80087e8: 89a3 ldrh r3, [r4, #12] 80087ea: bf15 itete ne 80087ec: 6560 strne r0, [r4, #84] ; 0x54 80087ee: f423 5380 biceq.w r3, r3, #4096 ; 0x1000 80087f2: f443 5380 orrne.w r3, r3, #4096 ; 0x1000 80087f6: 81a3 strheq r3, [r4, #12] 80087f8: bf18 it ne 80087fa: 81a3 strhne r3, [r4, #12] 80087fc: bd10 pop {r4, pc} 080087fe <__sclose>: 80087fe: f9b1 100e ldrsh.w r1, [r1, #14] 8008802: f000 b8a1 b.w 8008948 <_close_r> 08008806 <__swbuf_r>: 8008806: b5f8 push {r3, r4, r5, r6, r7, lr} 8008808: 460e mov r6, r1 800880a: 4614 mov r4, r2 800880c: 4605 mov r5, r0 800880e: b118 cbz r0, 8008818 <__swbuf_r+0x12> 8008810: 6a03 ldr r3, [r0, #32] 8008812: b90b cbnz r3, 8008818 <__swbuf_r+0x12> 8008814: f7ff ff5e bl 80086d4 <__sinit> 8008818: 69a3 ldr r3, [r4, #24] 800881a: 60a3 str r3, [r4, #8] 800881c: 89a3 ldrh r3, [r4, #12] 800881e: 071a lsls r2, r3, #28 8008820: d525 bpl.n 800886e <__swbuf_r+0x68> 8008822: 6923 ldr r3, [r4, #16] 8008824: b31b cbz r3, 800886e <__swbuf_r+0x68> 8008826: 6823 ldr r3, [r4, #0] 8008828: 6922 ldr r2, [r4, #16] 800882a: b2f6 uxtb r6, r6 800882c: 1a98 subs r0, r3, r2 800882e: 6963 ldr r3, [r4, #20] 8008830: 4637 mov r7, r6 8008832: 4283 cmp r3, r0 8008834: dc04 bgt.n 8008840 <__swbuf_r+0x3a> 8008836: 4621 mov r1, r4 8008838: 4628 mov r0, r5 800883a: f001 fe61 bl 800a500 <_fflush_r> 800883e: b9e0 cbnz r0, 800887a <__swbuf_r+0x74> 8008840: 68a3 ldr r3, [r4, #8] 8008842: 3b01 subs r3, #1 8008844: 60a3 str r3, [r4, #8] 8008846: 6823 ldr r3, [r4, #0] 8008848: 1c5a adds r2, r3, #1 800884a: 6022 str r2, [r4, #0] 800884c: 701e strb r6, [r3, #0] 800884e: 6962 ldr r2, [r4, #20] 8008850: 1c43 adds r3, r0, #1 8008852: 429a cmp r2, r3 8008854: d004 beq.n 8008860 <__swbuf_r+0x5a> 8008856: 89a3 ldrh r3, [r4, #12] 8008858: 07db lsls r3, r3, #31 800885a: d506 bpl.n 800886a <__swbuf_r+0x64> 800885c: 2e0a cmp r6, #10 800885e: d104 bne.n 800886a <__swbuf_r+0x64> 8008860: 4621 mov r1, r4 8008862: 4628 mov r0, r5 8008864: f001 fe4c bl 800a500 <_fflush_r> 8008868: b938 cbnz r0, 800887a <__swbuf_r+0x74> 800886a: 4638 mov r0, r7 800886c: bdf8 pop {r3, r4, r5, r6, r7, pc} 800886e: 4621 mov r1, r4 8008870: 4628 mov r0, r5 8008872: f000 f805 bl 8008880 <__swsetup_r> 8008876: 2800 cmp r0, #0 8008878: d0d5 beq.n 8008826 <__swbuf_r+0x20> 800887a: f04f 37ff mov.w r7, #4294967295 800887e: e7f4 b.n 800886a <__swbuf_r+0x64> 08008880 <__swsetup_r>: 8008880: b538 push {r3, r4, r5, lr} 8008882: 4b2a ldr r3, [pc, #168] ; (800892c <__swsetup_r+0xac>) 8008884: 4605 mov r5, r0 8008886: 6818 ldr r0, [r3, #0] 8008888: 460c mov r4, r1 800888a: b118 cbz r0, 8008894 <__swsetup_r+0x14> 800888c: 6a03 ldr r3, [r0, #32] 800888e: b90b cbnz r3, 8008894 <__swsetup_r+0x14> 8008890: f7ff ff20 bl 80086d4 <__sinit> 8008894: 89a3 ldrh r3, [r4, #12] 8008896: f9b4 200c ldrsh.w r2, [r4, #12] 800889a: 0718 lsls r0, r3, #28 800889c: d422 bmi.n 80088e4 <__swsetup_r+0x64> 800889e: 06d9 lsls r1, r3, #27 80088a0: d407 bmi.n 80088b2 <__swsetup_r+0x32> 80088a2: 2309 movs r3, #9 80088a4: 602b str r3, [r5, #0] 80088a6: f042 0340 orr.w r3, r2, #64 ; 0x40 80088aa: f04f 30ff mov.w r0, #4294967295 80088ae: 81a3 strh r3, [r4, #12] 80088b0: e034 b.n 800891c <__swsetup_r+0x9c> 80088b2: 0758 lsls r0, r3, #29 80088b4: d512 bpl.n 80088dc <__swsetup_r+0x5c> 80088b6: 6b61 ldr r1, [r4, #52] ; 0x34 80088b8: b141 cbz r1, 80088cc <__swsetup_r+0x4c> 80088ba: f104 0344 add.w r3, r4, #68 ; 0x44 80088be: 4299 cmp r1, r3 80088c0: d002 beq.n 80088c8 <__swsetup_r+0x48> 80088c2: 4628 mov r0, r5 80088c4: f000 ff40 bl 8009748 <_free_r> 80088c8: 2300 movs r3, #0 80088ca: 6363 str r3, [r4, #52] ; 0x34 80088cc: 89a3 ldrh r3, [r4, #12] 80088ce: f023 0324 bic.w r3, r3, #36 ; 0x24 80088d2: 81a3 strh r3, [r4, #12] 80088d4: 2300 movs r3, #0 80088d6: 6063 str r3, [r4, #4] 80088d8: 6923 ldr r3, [r4, #16] 80088da: 6023 str r3, [r4, #0] 80088dc: 89a3 ldrh r3, [r4, #12] 80088de: f043 0308 orr.w r3, r3, #8 80088e2: 81a3 strh r3, [r4, #12] 80088e4: 6923 ldr r3, [r4, #16] 80088e6: b94b cbnz r3, 80088fc <__swsetup_r+0x7c> 80088e8: 89a3 ldrh r3, [r4, #12] 80088ea: f403 7320 and.w r3, r3, #640 ; 0x280 80088ee: f5b3 7f00 cmp.w r3, #512 ; 0x200 80088f2: d003 beq.n 80088fc <__swsetup_r+0x7c> 80088f4: 4621 mov r1, r4 80088f6: 4628 mov r0, r5 80088f8: f001 fe4f bl 800a59a <__smakebuf_r> 80088fc: 89a0 ldrh r0, [r4, #12] 80088fe: f9b4 200c ldrsh.w r2, [r4, #12] 8008902: f010 0301 ands.w r3, r0, #1 8008906: d00a beq.n 800891e <__swsetup_r+0x9e> 8008908: 2300 movs r3, #0 800890a: 60a3 str r3, [r4, #8] 800890c: 6963 ldr r3, [r4, #20] 800890e: 425b negs r3, r3 8008910: 61a3 str r3, [r4, #24] 8008912: 6923 ldr r3, [r4, #16] 8008914: b943 cbnz r3, 8008928 <__swsetup_r+0xa8> 8008916: f010 0080 ands.w r0, r0, #128 ; 0x80 800891a: d1c4 bne.n 80088a6 <__swsetup_r+0x26> 800891c: bd38 pop {r3, r4, r5, pc} 800891e: 0781 lsls r1, r0, #30 8008920: bf58 it pl 8008922: 6963 ldrpl r3, [r4, #20] 8008924: 60a3 str r3, [r4, #8] 8008926: e7f4 b.n 8008912 <__swsetup_r+0x92> 8008928: 2000 movs r0, #0 800892a: e7f7 b.n 800891c <__swsetup_r+0x9c> 800892c: 20000064 .word 0x20000064 08008930 : 8008930: 4603 mov r3, r0 8008932: 4402 add r2, r0 8008934: 4293 cmp r3, r2 8008936: d100 bne.n 800893a 8008938: 4770 bx lr 800893a: f803 1b01 strb.w r1, [r3], #1 800893e: e7f9 b.n 8008934 08008940 <_localeconv_r>: 8008940: 4800 ldr r0, [pc, #0] ; (8008944 <_localeconv_r+0x4>) 8008942: 4770 bx lr 8008944: 20000158 .word 0x20000158 08008948 <_close_r>: 8008948: b538 push {r3, r4, r5, lr} 800894a: 2300 movs r3, #0 800894c: 4d05 ldr r5, [pc, #20] ; (8008964 <_close_r+0x1c>) 800894e: 4604 mov r4, r0 8008950: 4608 mov r0, r1 8008952: 602b str r3, [r5, #0] 8008954: f7f9 f918 bl 8001b88 <_close> 8008958: 1c43 adds r3, r0, #1 800895a: d102 bne.n 8008962 <_close_r+0x1a> 800895c: 682b ldr r3, [r5, #0] 800895e: b103 cbz r3, 8008962 <_close_r+0x1a> 8008960: 6023 str r3, [r4, #0] 8008962: bd38 pop {r3, r4, r5, pc} 8008964: 2000266c .word 0x2000266c 08008968 <_lseek_r>: 8008968: b538 push {r3, r4, r5, lr} 800896a: 4604 mov r4, r0 800896c: 4608 mov r0, r1 800896e: 4611 mov r1, r2 8008970: 2200 movs r2, #0 8008972: 4d05 ldr r5, [pc, #20] ; (8008988 <_lseek_r+0x20>) 8008974: 602a str r2, [r5, #0] 8008976: 461a mov r2, r3 8008978: f7f9 f92a bl 8001bd0 <_lseek> 800897c: 1c43 adds r3, r0, #1 800897e: d102 bne.n 8008986 <_lseek_r+0x1e> 8008980: 682b ldr r3, [r5, #0] 8008982: b103 cbz r3, 8008986 <_lseek_r+0x1e> 8008984: 6023 str r3, [r4, #0] 8008986: bd38 pop {r3, r4, r5, pc} 8008988: 2000266c .word 0x2000266c 0800898c <_read_r>: 800898c: b538 push {r3, r4, r5, lr} 800898e: 4604 mov r4, r0 8008990: 4608 mov r0, r1 8008992: 4611 mov r1, r2 8008994: 2200 movs r2, #0 8008996: 4d05 ldr r5, [pc, #20] ; (80089ac <_read_r+0x20>) 8008998: 602a str r2, [r5, #0] 800899a: 461a mov r2, r3 800899c: f7f9 f8d7 bl 8001b4e <_read> 80089a0: 1c43 adds r3, r0, #1 80089a2: d102 bne.n 80089aa <_read_r+0x1e> 80089a4: 682b ldr r3, [r5, #0] 80089a6: b103 cbz r3, 80089aa <_read_r+0x1e> 80089a8: 6023 str r3, [r4, #0] 80089aa: bd38 pop {r3, r4, r5, pc} 80089ac: 2000266c .word 0x2000266c 080089b0 <_sbrk_r>: 80089b0: b538 push {r3, r4, r5, lr} 80089b2: 2300 movs r3, #0 80089b4: 4d05 ldr r5, [pc, #20] ; (80089cc <_sbrk_r+0x1c>) 80089b6: 4604 mov r4, r0 80089b8: 4608 mov r0, r1 80089ba: 602b str r3, [r5, #0] 80089bc: f7f9 f914 bl 8001be8 <_sbrk> 80089c0: 1c43 adds r3, r0, #1 80089c2: d102 bne.n 80089ca <_sbrk_r+0x1a> 80089c4: 682b ldr r3, [r5, #0] 80089c6: b103 cbz r3, 80089ca <_sbrk_r+0x1a> 80089c8: 6023 str r3, [r4, #0] 80089ca: bd38 pop {r3, r4, r5, pc} 80089cc: 2000266c .word 0x2000266c 080089d0 <_write_r>: 80089d0: b538 push {r3, r4, r5, lr} 80089d2: 4604 mov r4, r0 80089d4: 4608 mov r0, r1 80089d6: 4611 mov r1, r2 80089d8: 2200 movs r2, #0 80089da: 4d05 ldr r5, [pc, #20] ; (80089f0 <_write_r+0x20>) 80089dc: 602a str r2, [r5, #0] 80089de: 461a mov r2, r3 80089e0: f7f8 fbd8 bl 8001194 <_write> 80089e4: 1c43 adds r3, r0, #1 80089e6: d102 bne.n 80089ee <_write_r+0x1e> 80089e8: 682b ldr r3, [r5, #0] 80089ea: b103 cbz r3, 80089ee <_write_r+0x1e> 80089ec: 6023 str r3, [r4, #0] 80089ee: bd38 pop {r3, r4, r5, pc} 80089f0: 2000266c .word 0x2000266c 080089f4 <__errno>: 80089f4: 4b01 ldr r3, [pc, #4] ; (80089fc <__errno+0x8>) 80089f6: 6818 ldr r0, [r3, #0] 80089f8: 4770 bx lr 80089fa: bf00 nop 80089fc: 20000064 .word 0x20000064 08008a00 <__libc_init_array>: 8008a00: b570 push {r4, r5, r6, lr} 8008a02: 2600 movs r6, #0 8008a04: 4d0c ldr r5, [pc, #48] ; (8008a38 <__libc_init_array+0x38>) 8008a06: 4c0d ldr r4, [pc, #52] ; (8008a3c <__libc_init_array+0x3c>) 8008a08: 1b64 subs r4, r4, r5 8008a0a: 10a4 asrs r4, r4, #2 8008a0c: 42a6 cmp r6, r4 8008a0e: d109 bne.n 8008a24 <__libc_init_array+0x24> 8008a10: f001 ff30 bl 800a874 <_init> 8008a14: 2600 movs r6, #0 8008a16: 4d0a ldr r5, [pc, #40] ; (8008a40 <__libc_init_array+0x40>) 8008a18: 4c0a ldr r4, [pc, #40] ; (8008a44 <__libc_init_array+0x44>) 8008a1a: 1b64 subs r4, r4, r5 8008a1c: 10a4 asrs r4, r4, #2 8008a1e: 42a6 cmp r6, r4 8008a20: d105 bne.n 8008a2e <__libc_init_array+0x2e> 8008a22: bd70 pop {r4, r5, r6, pc} 8008a24: f855 3b04 ldr.w r3, [r5], #4 8008a28: 4798 blx r3 8008a2a: 3601 adds r6, #1 8008a2c: e7ee b.n 8008a0c <__libc_init_array+0xc> 8008a2e: f855 3b04 ldr.w r3, [r5], #4 8008a32: 4798 blx r3 8008a34: 3601 adds r6, #1 8008a36: e7f2 b.n 8008a1e <__libc_init_array+0x1e> 8008a38: 0800b764 .word 0x0800b764 8008a3c: 0800b764 .word 0x0800b764 8008a40: 0800b764 .word 0x0800b764 8008a44: 0800b768 .word 0x0800b768 08008a48 <__retarget_lock_init_recursive>: 8008a48: 4770 bx lr 08008a4a <__retarget_lock_acquire_recursive>: 8008a4a: 4770 bx lr 08008a4c <__retarget_lock_release_recursive>: 8008a4c: 4770 bx lr 08008a4e : 8008a4e: 4603 mov r3, r0 8008a50: b510 push {r4, lr} 8008a52: b2c9 uxtb r1, r1 8008a54: 4402 add r2, r0 8008a56: 4293 cmp r3, r2 8008a58: 4618 mov r0, r3 8008a5a: d101 bne.n 8008a60 8008a5c: 2000 movs r0, #0 8008a5e: e003 b.n 8008a68 8008a60: 7804 ldrb r4, [r0, #0] 8008a62: 3301 adds r3, #1 8008a64: 428c cmp r4, r1 8008a66: d1f6 bne.n 8008a56 8008a68: bd10 pop {r4, pc} 08008a6a : 8008a6a: e92d 4ff7 stmdb sp!, {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} 8008a6e: 6903 ldr r3, [r0, #16] 8008a70: 690c ldr r4, [r1, #16] 8008a72: 4607 mov r7, r0 8008a74: 42a3 cmp r3, r4 8008a76: db7f blt.n 8008b78 8008a78: 3c01 subs r4, #1 8008a7a: f100 0514 add.w r5, r0, #20 8008a7e: f101 0814 add.w r8, r1, #20 8008a82: eb05 0384 add.w r3, r5, r4, lsl #2 8008a86: 9301 str r3, [sp, #4] 8008a88: f858 3024 ldr.w r3, [r8, r4, lsl #2] 8008a8c: f855 2024 ldr.w r2, [r5, r4, lsl #2] 8008a90: 3301 adds r3, #1 8008a92: 429a cmp r2, r3 8008a94: fbb2 f6f3 udiv r6, r2, r3 8008a98: ea4f 0b84 mov.w fp, r4, lsl #2 8008a9c: eb08 0984 add.w r9, r8, r4, lsl #2 8008aa0: d331 bcc.n 8008b06 8008aa2: f04f 0e00 mov.w lr, #0 8008aa6: 4640 mov r0, r8 8008aa8: 46ac mov ip, r5 8008aaa: 46f2 mov sl, lr 8008aac: f850 2b04 ldr.w r2, [r0], #4 8008ab0: b293 uxth r3, r2 8008ab2: fb06 e303 mla r3, r6, r3, lr 8008ab6: ea4f 4e12 mov.w lr, r2, lsr #16 8008aba: 0c1a lsrs r2, r3, #16 8008abc: b29b uxth r3, r3 8008abe: fb06 220e mla r2, r6, lr, r2 8008ac2: ebaa 0303 sub.w r3, sl, r3 8008ac6: f8dc a000 ldr.w sl, [ip] 8008aca: ea4f 4e12 mov.w lr, r2, lsr #16 8008ace: fa1f fa8a uxth.w sl, sl 8008ad2: 4453 add r3, sl 8008ad4: f8dc a000 ldr.w sl, [ip] 8008ad8: b292 uxth r2, r2 8008ada: ebc2 421a rsb r2, r2, sl, lsr #16 8008ade: eb02 4223 add.w r2, r2, r3, asr #16 8008ae2: b29b uxth r3, r3 8008ae4: ea43 4302 orr.w r3, r3, r2, lsl #16 8008ae8: 4581 cmp r9, r0 8008aea: ea4f 4a22 mov.w sl, r2, asr #16 8008aee: f84c 3b04 str.w r3, [ip], #4 8008af2: d2db bcs.n 8008aac 8008af4: f855 300b ldr.w r3, [r5, fp] 8008af8: b92b cbnz r3, 8008b06 8008afa: 9b01 ldr r3, [sp, #4] 8008afc: 3b04 subs r3, #4 8008afe: 429d cmp r5, r3 8008b00: 461a mov r2, r3 8008b02: d32d bcc.n 8008b60 8008b04: 613c str r4, [r7, #16] 8008b06: 4638 mov r0, r7 8008b08: f001 f8e0 bl 8009ccc <__mcmp> 8008b0c: 2800 cmp r0, #0 8008b0e: db23 blt.n 8008b58 8008b10: 4629 mov r1, r5 8008b12: 2000 movs r0, #0 8008b14: 3601 adds r6, #1 8008b16: f858 2b04 ldr.w r2, [r8], #4 8008b1a: f8d1 c000 ldr.w ip, [r1] 8008b1e: b293 uxth r3, r2 8008b20: 1ac3 subs r3, r0, r3 8008b22: 0c12 lsrs r2, r2, #16 8008b24: fa1f f08c uxth.w r0, ip 8008b28: 4403 add r3, r0 8008b2a: ebc2 421c rsb r2, r2, ip, lsr #16 8008b2e: eb02 4223 add.w r2, r2, r3, asr #16 8008b32: b29b uxth r3, r3 8008b34: ea43 4302 orr.w r3, r3, r2, lsl #16 8008b38: 45c1 cmp r9, r8 8008b3a: ea4f 4022 mov.w r0, r2, asr #16 8008b3e: f841 3b04 str.w r3, [r1], #4 8008b42: d2e8 bcs.n 8008b16 8008b44: f855 2024 ldr.w r2, [r5, r4, lsl #2] 8008b48: eb05 0384 add.w r3, r5, r4, lsl #2 8008b4c: b922 cbnz r2, 8008b58 8008b4e: 3b04 subs r3, #4 8008b50: 429d cmp r5, r3 8008b52: 461a mov r2, r3 8008b54: d30a bcc.n 8008b6c 8008b56: 613c str r4, [r7, #16] 8008b58: 4630 mov r0, r6 8008b5a: b003 add sp, #12 8008b5c: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8008b60: 6812 ldr r2, [r2, #0] 8008b62: 3b04 subs r3, #4 8008b64: 2a00 cmp r2, #0 8008b66: d1cd bne.n 8008b04 8008b68: 3c01 subs r4, #1 8008b6a: e7c8 b.n 8008afe 8008b6c: 6812 ldr r2, [r2, #0] 8008b6e: 3b04 subs r3, #4 8008b70: 2a00 cmp r2, #0 8008b72: d1f0 bne.n 8008b56 8008b74: 3c01 subs r4, #1 8008b76: e7eb b.n 8008b50 8008b78: 2000 movs r0, #0 8008b7a: e7ee b.n 8008b5a 8008b7c: 0000 movs r0, r0 ... 08008b80 <_dtoa_r>: 8008b80: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8008b84: 4616 mov r6, r2 8008b86: 461f mov r7, r3 8008b88: 69c4 ldr r4, [r0, #28] 8008b8a: b099 sub sp, #100 ; 0x64 8008b8c: 4605 mov r5, r0 8008b8e: e9cd 6704 strd r6, r7, [sp, #16] 8008b92: f8dd 8094 ldr.w r8, [sp, #148] ; 0x94 8008b96: b974 cbnz r4, 8008bb6 <_dtoa_r+0x36> 8008b98: 2010 movs r0, #16 8008b9a: f7fe fff5 bl 8007b88 8008b9e: 4602 mov r2, r0 8008ba0: 61e8 str r0, [r5, #28] 8008ba2: b920 cbnz r0, 8008bae <_dtoa_r+0x2e> 8008ba4: 21ef movs r1, #239 ; 0xef 8008ba6: 4bac ldr r3, [pc, #688] ; (8008e58 <_dtoa_r+0x2d8>) 8008ba8: 48ac ldr r0, [pc, #688] ; (8008e5c <_dtoa_r+0x2dc>) 8008baa: f001 fd7d bl 800a6a8 <__assert_func> 8008bae: e9c0 4401 strd r4, r4, [r0, #4] 8008bb2: 6004 str r4, [r0, #0] 8008bb4: 60c4 str r4, [r0, #12] 8008bb6: 69eb ldr r3, [r5, #28] 8008bb8: 6819 ldr r1, [r3, #0] 8008bba: b151 cbz r1, 8008bd2 <_dtoa_r+0x52> 8008bbc: 685a ldr r2, [r3, #4] 8008bbe: 2301 movs r3, #1 8008bc0: 4093 lsls r3, r2 8008bc2: 604a str r2, [r1, #4] 8008bc4: 608b str r3, [r1, #8] 8008bc6: 4628 mov r0, r5 8008bc8: f000 fe46 bl 8009858 <_Bfree> 8008bcc: 2200 movs r2, #0 8008bce: 69eb ldr r3, [r5, #28] 8008bd0: 601a str r2, [r3, #0] 8008bd2: 1e3b subs r3, r7, #0 8008bd4: bfaf iteee ge 8008bd6: 2300 movge r3, #0 8008bd8: 2201 movlt r2, #1 8008bda: f023 4300 biclt.w r3, r3, #2147483648 ; 0x80000000 8008bde: 9305 strlt r3, [sp, #20] 8008be0: bfa8 it ge 8008be2: f8c8 3000 strge.w r3, [r8] 8008be6: f8dd 9014 ldr.w r9, [sp, #20] 8008bea: 4b9d ldr r3, [pc, #628] ; (8008e60 <_dtoa_r+0x2e0>) 8008bec: bfb8 it lt 8008bee: f8c8 2000 strlt.w r2, [r8] 8008bf2: ea33 0309 bics.w r3, r3, r9 8008bf6: d119 bne.n 8008c2c <_dtoa_r+0xac> 8008bf8: f242 730f movw r3, #9999 ; 0x270f 8008bfc: 9a24 ldr r2, [sp, #144] ; 0x90 8008bfe: 6013 str r3, [r2, #0] 8008c00: f3c9 0313 ubfx r3, r9, #0, #20 8008c04: 4333 orrs r3, r6 8008c06: f000 8589 beq.w 800971c <_dtoa_r+0xb9c> 8008c0a: 9b26 ldr r3, [sp, #152] ; 0x98 8008c0c: b953 cbnz r3, 8008c24 <_dtoa_r+0xa4> 8008c0e: 4b95 ldr r3, [pc, #596] ; (8008e64 <_dtoa_r+0x2e4>) 8008c10: e023 b.n 8008c5a <_dtoa_r+0xda> 8008c12: 4b95 ldr r3, [pc, #596] ; (8008e68 <_dtoa_r+0x2e8>) 8008c14: 9303 str r3, [sp, #12] 8008c16: 3308 adds r3, #8 8008c18: 9a26 ldr r2, [sp, #152] ; 0x98 8008c1a: 6013 str r3, [r2, #0] 8008c1c: 9803 ldr r0, [sp, #12] 8008c1e: b019 add sp, #100 ; 0x64 8008c20: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8008c24: 4b8f ldr r3, [pc, #572] ; (8008e64 <_dtoa_r+0x2e4>) 8008c26: 9303 str r3, [sp, #12] 8008c28: 3303 adds r3, #3 8008c2a: e7f5 b.n 8008c18 <_dtoa_r+0x98> 8008c2c: e9dd 3404 ldrd r3, r4, [sp, #16] 8008c30: e9cd 340c strd r3, r4, [sp, #48] ; 0x30 8008c34: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 8008c38: 2200 movs r2, #0 8008c3a: 2300 movs r3, #0 8008c3c: f7f7 ff20 bl 8000a80 <__aeabi_dcmpeq> 8008c40: 4680 mov r8, r0 8008c42: b160 cbz r0, 8008c5e <_dtoa_r+0xde> 8008c44: 2301 movs r3, #1 8008c46: 9a24 ldr r2, [sp, #144] ; 0x90 8008c48: 6013 str r3, [r2, #0] 8008c4a: 9b26 ldr r3, [sp, #152] ; 0x98 8008c4c: 2b00 cmp r3, #0 8008c4e: f000 8562 beq.w 8009716 <_dtoa_r+0xb96> 8008c52: 4b86 ldr r3, [pc, #536] ; (8008e6c <_dtoa_r+0x2ec>) 8008c54: 9a26 ldr r2, [sp, #152] ; 0x98 8008c56: 6013 str r3, [r2, #0] 8008c58: 3b01 subs r3, #1 8008c5a: 9303 str r3, [sp, #12] 8008c5c: e7de b.n 8008c1c <_dtoa_r+0x9c> 8008c5e: ab16 add r3, sp, #88 ; 0x58 8008c60: 9301 str r3, [sp, #4] 8008c62: ab17 add r3, sp, #92 ; 0x5c 8008c64: 9300 str r3, [sp, #0] 8008c66: 4628 mov r0, r5 8008c68: e9dd 230c ldrd r2, r3, [sp, #48] ; 0x30 8008c6c: f001 f8d6 bl 8009e1c <__d2b> 8008c70: f3c9 540a ubfx r4, r9, #20, #11 8008c74: 4682 mov sl, r0 8008c76: 2c00 cmp r4, #0 8008c78: d07e beq.n 8008d78 <_dtoa_r+0x1f8> 8008c7a: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 8008c7e: 9b0d ldr r3, [sp, #52] ; 0x34 8008c80: f2a4 34ff subw r4, r4, #1023 ; 0x3ff 8008c84: f3c3 0313 ubfx r3, r3, #0, #20 8008c88: f043 537f orr.w r3, r3, #1069547520 ; 0x3fc00000 8008c8c: f443 1340 orr.w r3, r3, #3145728 ; 0x300000 8008c90: f8cd 804c str.w r8, [sp, #76] ; 0x4c 8008c94: 4619 mov r1, r3 8008c96: 2200 movs r2, #0 8008c98: 4b75 ldr r3, [pc, #468] ; (8008e70 <_dtoa_r+0x2f0>) 8008c9a: f7f7 fad1 bl 8000240 <__aeabi_dsub> 8008c9e: a368 add r3, pc, #416 ; (adr r3, 8008e40 <_dtoa_r+0x2c0>) 8008ca0: e9d3 2300 ldrd r2, r3, [r3] 8008ca4: f7f7 fc84 bl 80005b0 <__aeabi_dmul> 8008ca8: a367 add r3, pc, #412 ; (adr r3, 8008e48 <_dtoa_r+0x2c8>) 8008caa: e9d3 2300 ldrd r2, r3, [r3] 8008cae: f7f7 fac9 bl 8000244 <__adddf3> 8008cb2: 4606 mov r6, r0 8008cb4: 4620 mov r0, r4 8008cb6: 460f mov r7, r1 8008cb8: f7f7 fc10 bl 80004dc <__aeabi_i2d> 8008cbc: a364 add r3, pc, #400 ; (adr r3, 8008e50 <_dtoa_r+0x2d0>) 8008cbe: e9d3 2300 ldrd r2, r3, [r3] 8008cc2: f7f7 fc75 bl 80005b0 <__aeabi_dmul> 8008cc6: 4602 mov r2, r0 8008cc8: 460b mov r3, r1 8008cca: 4630 mov r0, r6 8008ccc: 4639 mov r1, r7 8008cce: f7f7 fab9 bl 8000244 <__adddf3> 8008cd2: 4606 mov r6, r0 8008cd4: 460f mov r7, r1 8008cd6: f7f7 ff1b bl 8000b10 <__aeabi_d2iz> 8008cda: 2200 movs r2, #0 8008cdc: 4683 mov fp, r0 8008cde: 2300 movs r3, #0 8008ce0: 4630 mov r0, r6 8008ce2: 4639 mov r1, r7 8008ce4: f7f7 fed6 bl 8000a94 <__aeabi_dcmplt> 8008ce8: b148 cbz r0, 8008cfe <_dtoa_r+0x17e> 8008cea: 4658 mov r0, fp 8008cec: f7f7 fbf6 bl 80004dc <__aeabi_i2d> 8008cf0: 4632 mov r2, r6 8008cf2: 463b mov r3, r7 8008cf4: f7f7 fec4 bl 8000a80 <__aeabi_dcmpeq> 8008cf8: b908 cbnz r0, 8008cfe <_dtoa_r+0x17e> 8008cfa: f10b 3bff add.w fp, fp, #4294967295 8008cfe: f1bb 0f16 cmp.w fp, #22 8008d02: d857 bhi.n 8008db4 <_dtoa_r+0x234> 8008d04: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 8008d08: 4b5a ldr r3, [pc, #360] ; (8008e74 <_dtoa_r+0x2f4>) 8008d0a: eb03 03cb add.w r3, r3, fp, lsl #3 8008d0e: e9d3 2300 ldrd r2, r3, [r3] 8008d12: f7f7 febf bl 8000a94 <__aeabi_dcmplt> 8008d16: 2800 cmp r0, #0 8008d18: d04e beq.n 8008db8 <_dtoa_r+0x238> 8008d1a: 2300 movs r3, #0 8008d1c: f10b 3bff add.w fp, fp, #4294967295 8008d20: 930f str r3, [sp, #60] ; 0x3c 8008d22: 9b16 ldr r3, [sp, #88] ; 0x58 8008d24: 1b1b subs r3, r3, r4 8008d26: 1e5a subs r2, r3, #1 8008d28: bf46 itte mi 8008d2a: f1c3 0901 rsbmi r9, r3, #1 8008d2e: 2300 movmi r3, #0 8008d30: f04f 0900 movpl.w r9, #0 8008d34: 9209 str r2, [sp, #36] ; 0x24 8008d36: bf48 it mi 8008d38: 9309 strmi r3, [sp, #36] ; 0x24 8008d3a: f1bb 0f00 cmp.w fp, #0 8008d3e: db3d blt.n 8008dbc <_dtoa_r+0x23c> 8008d40: 9b09 ldr r3, [sp, #36] ; 0x24 8008d42: f8cd b038 str.w fp, [sp, #56] ; 0x38 8008d46: 445b add r3, fp 8008d48: 9309 str r3, [sp, #36] ; 0x24 8008d4a: 2300 movs r3, #0 8008d4c: 930a str r3, [sp, #40] ; 0x28 8008d4e: 9b22 ldr r3, [sp, #136] ; 0x88 8008d50: 2b09 cmp r3, #9 8008d52: d867 bhi.n 8008e24 <_dtoa_r+0x2a4> 8008d54: 2b05 cmp r3, #5 8008d56: bfc4 itt gt 8008d58: 3b04 subgt r3, #4 8008d5a: 9322 strgt r3, [sp, #136] ; 0x88 8008d5c: 9b22 ldr r3, [sp, #136] ; 0x88 8008d5e: bfc8 it gt 8008d60: 2400 movgt r4, #0 8008d62: f1a3 0302 sub.w r3, r3, #2 8008d66: bfd8 it le 8008d68: 2401 movle r4, #1 8008d6a: 2b03 cmp r3, #3 8008d6c: f200 8086 bhi.w 8008e7c <_dtoa_r+0x2fc> 8008d70: e8df f003 tbb [pc, r3] 8008d74: 5637392c .word 0x5637392c 8008d78: e9dd 4316 ldrd r4, r3, [sp, #88] ; 0x58 8008d7c: 441c add r4, r3 8008d7e: f204 4332 addw r3, r4, #1074 ; 0x432 8008d82: 2b20 cmp r3, #32 8008d84: bfc1 itttt gt 8008d86: f1c3 0340 rsbgt r3, r3, #64 ; 0x40 8008d8a: fa09 f903 lslgt.w r9, r9, r3 8008d8e: f204 4312 addwgt r3, r4, #1042 ; 0x412 8008d92: fa26 f303 lsrgt.w r3, r6, r3 8008d96: bfd6 itet le 8008d98: f1c3 0320 rsble r3, r3, #32 8008d9c: ea49 0003 orrgt.w r0, r9, r3 8008da0: fa06 f003 lslle.w r0, r6, r3 8008da4: f7f7 fb8a bl 80004bc <__aeabi_ui2d> 8008da8: 2201 movs r2, #1 8008daa: f1a1 73f8 sub.w r3, r1, #32505856 ; 0x1f00000 8008dae: 3c01 subs r4, #1 8008db0: 9213 str r2, [sp, #76] ; 0x4c 8008db2: e76f b.n 8008c94 <_dtoa_r+0x114> 8008db4: 2301 movs r3, #1 8008db6: e7b3 b.n 8008d20 <_dtoa_r+0x1a0> 8008db8: 900f str r0, [sp, #60] ; 0x3c 8008dba: e7b2 b.n 8008d22 <_dtoa_r+0x1a2> 8008dbc: f1cb 0300 rsb r3, fp, #0 8008dc0: 930a str r3, [sp, #40] ; 0x28 8008dc2: 2300 movs r3, #0 8008dc4: eba9 090b sub.w r9, r9, fp 8008dc8: 930e str r3, [sp, #56] ; 0x38 8008dca: e7c0 b.n 8008d4e <_dtoa_r+0x1ce> 8008dcc: 2300 movs r3, #0 8008dce: 930b str r3, [sp, #44] ; 0x2c 8008dd0: 9b23 ldr r3, [sp, #140] ; 0x8c 8008dd2: 2b00 cmp r3, #0 8008dd4: dc55 bgt.n 8008e82 <_dtoa_r+0x302> 8008dd6: 2301 movs r3, #1 8008dd8: 461a mov r2, r3 8008dda: 9306 str r3, [sp, #24] 8008ddc: 9308 str r3, [sp, #32] 8008dde: 9223 str r2, [sp, #140] ; 0x8c 8008de0: e00b b.n 8008dfa <_dtoa_r+0x27a> 8008de2: 2301 movs r3, #1 8008de4: e7f3 b.n 8008dce <_dtoa_r+0x24e> 8008de6: 2300 movs r3, #0 8008de8: 930b str r3, [sp, #44] ; 0x2c 8008dea: 9b23 ldr r3, [sp, #140] ; 0x8c 8008dec: 445b add r3, fp 8008dee: 9306 str r3, [sp, #24] 8008df0: 3301 adds r3, #1 8008df2: 2b01 cmp r3, #1 8008df4: 9308 str r3, [sp, #32] 8008df6: bfb8 it lt 8008df8: 2301 movlt r3, #1 8008dfa: 2100 movs r1, #0 8008dfc: 2204 movs r2, #4 8008dfe: 69e8 ldr r0, [r5, #28] 8008e00: f102 0614 add.w r6, r2, #20 8008e04: 429e cmp r6, r3 8008e06: d940 bls.n 8008e8a <_dtoa_r+0x30a> 8008e08: 6041 str r1, [r0, #4] 8008e0a: 4628 mov r0, r5 8008e0c: f000 fce4 bl 80097d8 <_Balloc> 8008e10: 9003 str r0, [sp, #12] 8008e12: 2800 cmp r0, #0 8008e14: d13c bne.n 8008e90 <_dtoa_r+0x310> 8008e16: 4602 mov r2, r0 8008e18: f240 11af movw r1, #431 ; 0x1af 8008e1c: 4b16 ldr r3, [pc, #88] ; (8008e78 <_dtoa_r+0x2f8>) 8008e1e: e6c3 b.n 8008ba8 <_dtoa_r+0x28> 8008e20: 2301 movs r3, #1 8008e22: e7e1 b.n 8008de8 <_dtoa_r+0x268> 8008e24: 2401 movs r4, #1 8008e26: 2300 movs r3, #0 8008e28: 940b str r4, [sp, #44] ; 0x2c 8008e2a: 9322 str r3, [sp, #136] ; 0x88 8008e2c: f04f 33ff mov.w r3, #4294967295 8008e30: 2200 movs r2, #0 8008e32: 9306 str r3, [sp, #24] 8008e34: 9308 str r3, [sp, #32] 8008e36: 2312 movs r3, #18 8008e38: e7d1 b.n 8008dde <_dtoa_r+0x25e> 8008e3a: bf00 nop 8008e3c: f3af 8000 nop.w 8008e40: 636f4361 .word 0x636f4361 8008e44: 3fd287a7 .word 0x3fd287a7 8008e48: 8b60c8b3 .word 0x8b60c8b3 8008e4c: 3fc68a28 .word 0x3fc68a28 8008e50: 509f79fb .word 0x509f79fb 8008e54: 3fd34413 .word 0x3fd34413 8008e58: 0800b431 .word 0x0800b431 8008e5c: 0800b448 .word 0x0800b448 8008e60: 7ff00000 .word 0x7ff00000 8008e64: 0800b42d .word 0x0800b42d 8008e68: 0800b424 .word 0x0800b424 8008e6c: 0800b401 .word 0x0800b401 8008e70: 3ff80000 .word 0x3ff80000 8008e74: 0800b538 .word 0x0800b538 8008e78: 0800b4a0 .word 0x0800b4a0 8008e7c: 2301 movs r3, #1 8008e7e: 930b str r3, [sp, #44] ; 0x2c 8008e80: e7d4 b.n 8008e2c <_dtoa_r+0x2ac> 8008e82: 9b23 ldr r3, [sp, #140] ; 0x8c 8008e84: 9306 str r3, [sp, #24] 8008e86: 9308 str r3, [sp, #32] 8008e88: e7b7 b.n 8008dfa <_dtoa_r+0x27a> 8008e8a: 3101 adds r1, #1 8008e8c: 0052 lsls r2, r2, #1 8008e8e: e7b7 b.n 8008e00 <_dtoa_r+0x280> 8008e90: 69eb ldr r3, [r5, #28] 8008e92: 9a03 ldr r2, [sp, #12] 8008e94: 601a str r2, [r3, #0] 8008e96: 9b08 ldr r3, [sp, #32] 8008e98: 2b0e cmp r3, #14 8008e9a: f200 80a8 bhi.w 8008fee <_dtoa_r+0x46e> 8008e9e: 2c00 cmp r4, #0 8008ea0: f000 80a5 beq.w 8008fee <_dtoa_r+0x46e> 8008ea4: f1bb 0f00 cmp.w fp, #0 8008ea8: dd34 ble.n 8008f14 <_dtoa_r+0x394> 8008eaa: 4b9a ldr r3, [pc, #616] ; (8009114 <_dtoa_r+0x594>) 8008eac: f00b 020f and.w r2, fp, #15 8008eb0: eb03 03c2 add.w r3, r3, r2, lsl #3 8008eb4: f41b 7f80 tst.w fp, #256 ; 0x100 8008eb8: e9d3 3400 ldrd r3, r4, [r3] 8008ebc: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 8008ec0: ea4f 142b mov.w r4, fp, asr #4 8008ec4: d016 beq.n 8008ef4 <_dtoa_r+0x374> 8008ec6: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 8008eca: 4b93 ldr r3, [pc, #588] ; (8009118 <_dtoa_r+0x598>) 8008ecc: 2703 movs r7, #3 8008ece: e9d3 2308 ldrd r2, r3, [r3, #32] 8008ed2: f7f7 fc97 bl 8000804 <__aeabi_ddiv> 8008ed6: e9cd 0104 strd r0, r1, [sp, #16] 8008eda: f004 040f and.w r4, r4, #15 8008ede: 4e8e ldr r6, [pc, #568] ; (8009118 <_dtoa_r+0x598>) 8008ee0: b954 cbnz r4, 8008ef8 <_dtoa_r+0x378> 8008ee2: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 8008ee6: e9dd 0104 ldrd r0, r1, [sp, #16] 8008eea: f7f7 fc8b bl 8000804 <__aeabi_ddiv> 8008eee: e9cd 0104 strd r0, r1, [sp, #16] 8008ef2: e029 b.n 8008f48 <_dtoa_r+0x3c8> 8008ef4: 2702 movs r7, #2 8008ef6: e7f2 b.n 8008ede <_dtoa_r+0x35e> 8008ef8: 07e1 lsls r1, r4, #31 8008efa: d508 bpl.n 8008f0e <_dtoa_r+0x38e> 8008efc: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 8008f00: e9d6 2300 ldrd r2, r3, [r6] 8008f04: f7f7 fb54 bl 80005b0 <__aeabi_dmul> 8008f08: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 8008f0c: 3701 adds r7, #1 8008f0e: 1064 asrs r4, r4, #1 8008f10: 3608 adds r6, #8 8008f12: e7e5 b.n 8008ee0 <_dtoa_r+0x360> 8008f14: f000 80a5 beq.w 8009062 <_dtoa_r+0x4e2> 8008f18: e9dd 010c ldrd r0, r1, [sp, #48] ; 0x30 8008f1c: f1cb 0400 rsb r4, fp, #0 8008f20: 4b7c ldr r3, [pc, #496] ; (8009114 <_dtoa_r+0x594>) 8008f22: f004 020f and.w r2, r4, #15 8008f26: eb03 03c2 add.w r3, r3, r2, lsl #3 8008f2a: e9d3 2300 ldrd r2, r3, [r3] 8008f2e: f7f7 fb3f bl 80005b0 <__aeabi_dmul> 8008f32: 2702 movs r7, #2 8008f34: 2300 movs r3, #0 8008f36: e9cd 0104 strd r0, r1, [sp, #16] 8008f3a: 4e77 ldr r6, [pc, #476] ; (8009118 <_dtoa_r+0x598>) 8008f3c: 1124 asrs r4, r4, #4 8008f3e: 2c00 cmp r4, #0 8008f40: f040 8084 bne.w 800904c <_dtoa_r+0x4cc> 8008f44: 2b00 cmp r3, #0 8008f46: d1d2 bne.n 8008eee <_dtoa_r+0x36e> 8008f48: e9dd 3404 ldrd r3, r4, [sp, #16] 8008f4c: e9cd 3410 strd r3, r4, [sp, #64] ; 0x40 8008f50: 9b0f ldr r3, [sp, #60] ; 0x3c 8008f52: 2b00 cmp r3, #0 8008f54: f000 8087 beq.w 8009066 <_dtoa_r+0x4e6> 8008f58: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 8008f5c: 2200 movs r2, #0 8008f5e: 4b6f ldr r3, [pc, #444] ; (800911c <_dtoa_r+0x59c>) 8008f60: f7f7 fd98 bl 8000a94 <__aeabi_dcmplt> 8008f64: 2800 cmp r0, #0 8008f66: d07e beq.n 8009066 <_dtoa_r+0x4e6> 8008f68: 9b08 ldr r3, [sp, #32] 8008f6a: 2b00 cmp r3, #0 8008f6c: d07b beq.n 8009066 <_dtoa_r+0x4e6> 8008f6e: 9b06 ldr r3, [sp, #24] 8008f70: 2b00 cmp r3, #0 8008f72: dd38 ble.n 8008fe6 <_dtoa_r+0x466> 8008f74: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 8008f78: 2200 movs r2, #0 8008f7a: 4b69 ldr r3, [pc, #420] ; (8009120 <_dtoa_r+0x5a0>) 8008f7c: f7f7 fb18 bl 80005b0 <__aeabi_dmul> 8008f80: e9cd 0104 strd r0, r1, [sp, #16] 8008f84: 9c06 ldr r4, [sp, #24] 8008f86: f10b 38ff add.w r8, fp, #4294967295 8008f8a: 3701 adds r7, #1 8008f8c: 4638 mov r0, r7 8008f8e: f7f7 faa5 bl 80004dc <__aeabi_i2d> 8008f92: e9dd 2304 ldrd r2, r3, [sp, #16] 8008f96: f7f7 fb0b bl 80005b0 <__aeabi_dmul> 8008f9a: 2200 movs r2, #0 8008f9c: 4b61 ldr r3, [pc, #388] ; (8009124 <_dtoa_r+0x5a4>) 8008f9e: f7f7 f951 bl 8000244 <__adddf3> 8008fa2: f1a1 7650 sub.w r6, r1, #54525952 ; 0x3400000 8008fa6: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 8008faa: 9611 str r6, [sp, #68] ; 0x44 8008fac: 2c00 cmp r4, #0 8008fae: d15d bne.n 800906c <_dtoa_r+0x4ec> 8008fb0: e9dd 0104 ldrd r0, r1, [sp, #16] 8008fb4: 2200 movs r2, #0 8008fb6: 4b5c ldr r3, [pc, #368] ; (8009128 <_dtoa_r+0x5a8>) 8008fb8: f7f7 f942 bl 8000240 <__aeabi_dsub> 8008fbc: 4602 mov r2, r0 8008fbe: 460b mov r3, r1 8008fc0: e9cd 2304 strd r2, r3, [sp, #16] 8008fc4: 4633 mov r3, r6 8008fc6: 9a10 ldr r2, [sp, #64] ; 0x40 8008fc8: f7f7 fd82 bl 8000ad0 <__aeabi_dcmpgt> 8008fcc: 2800 cmp r0, #0 8008fce: f040 8295 bne.w 80094fc <_dtoa_r+0x97c> 8008fd2: e9dd 0104 ldrd r0, r1, [sp, #16] 8008fd6: 9a10 ldr r2, [sp, #64] ; 0x40 8008fd8: f106 4300 add.w r3, r6, #2147483648 ; 0x80000000 8008fdc: f7f7 fd5a bl 8000a94 <__aeabi_dcmplt> 8008fe0: 2800 cmp r0, #0 8008fe2: f040 8289 bne.w 80094f8 <_dtoa_r+0x978> 8008fe6: e9dd 340c ldrd r3, r4, [sp, #48] ; 0x30 8008fea: e9cd 3404 strd r3, r4, [sp, #16] 8008fee: 9b17 ldr r3, [sp, #92] ; 0x5c 8008ff0: 2b00 cmp r3, #0 8008ff2: f2c0 8151 blt.w 8009298 <_dtoa_r+0x718> 8008ff6: f1bb 0f0e cmp.w fp, #14 8008ffa: f300 814d bgt.w 8009298 <_dtoa_r+0x718> 8008ffe: 4b45 ldr r3, [pc, #276] ; (8009114 <_dtoa_r+0x594>) 8009000: eb03 03cb add.w r3, r3, fp, lsl #3 8009004: e9d3 3400 ldrd r3, r4, [r3] 8009008: e9cd 3406 strd r3, r4, [sp, #24] 800900c: 9b23 ldr r3, [sp, #140] ; 0x8c 800900e: 2b00 cmp r3, #0 8009010: f280 80da bge.w 80091c8 <_dtoa_r+0x648> 8009014: 9b08 ldr r3, [sp, #32] 8009016: 2b00 cmp r3, #0 8009018: f300 80d6 bgt.w 80091c8 <_dtoa_r+0x648> 800901c: f040 826b bne.w 80094f6 <_dtoa_r+0x976> 8009020: e9dd 0106 ldrd r0, r1, [sp, #24] 8009024: 2200 movs r2, #0 8009026: 4b40 ldr r3, [pc, #256] ; (8009128 <_dtoa_r+0x5a8>) 8009028: f7f7 fac2 bl 80005b0 <__aeabi_dmul> 800902c: e9dd 2304 ldrd r2, r3, [sp, #16] 8009030: f7f7 fd44 bl 8000abc <__aeabi_dcmpge> 8009034: 9c08 ldr r4, [sp, #32] 8009036: 4626 mov r6, r4 8009038: 2800 cmp r0, #0 800903a: f040 8241 bne.w 80094c0 <_dtoa_r+0x940> 800903e: 2331 movs r3, #49 ; 0x31 8009040: 9f03 ldr r7, [sp, #12] 8009042: f10b 0b01 add.w fp, fp, #1 8009046: f807 3b01 strb.w r3, [r7], #1 800904a: e23d b.n 80094c8 <_dtoa_r+0x948> 800904c: 07e2 lsls r2, r4, #31 800904e: d505 bpl.n 800905c <_dtoa_r+0x4dc> 8009050: e9d6 2300 ldrd r2, r3, [r6] 8009054: f7f7 faac bl 80005b0 <__aeabi_dmul> 8009058: 2301 movs r3, #1 800905a: 3701 adds r7, #1 800905c: 1064 asrs r4, r4, #1 800905e: 3608 adds r6, #8 8009060: e76d b.n 8008f3e <_dtoa_r+0x3be> 8009062: 2702 movs r7, #2 8009064: e770 b.n 8008f48 <_dtoa_r+0x3c8> 8009066: 46d8 mov r8, fp 8009068: 9c08 ldr r4, [sp, #32] 800906a: e78f b.n 8008f8c <_dtoa_r+0x40c> 800906c: 9903 ldr r1, [sp, #12] 800906e: 4b29 ldr r3, [pc, #164] ; (8009114 <_dtoa_r+0x594>) 8009070: 4421 add r1, r4 8009072: 9112 str r1, [sp, #72] ; 0x48 8009074: 990b ldr r1, [sp, #44] ; 0x2c 8009076: eb03 03c4 add.w r3, r3, r4, lsl #3 800907a: e9dd 6710 ldrd r6, r7, [sp, #64] ; 0x40 800907e: e953 2302 ldrd r2, r3, [r3, #-8] 8009082: 2900 cmp r1, #0 8009084: d054 beq.n 8009130 <_dtoa_r+0x5b0> 8009086: 2000 movs r0, #0 8009088: 4928 ldr r1, [pc, #160] ; (800912c <_dtoa_r+0x5ac>) 800908a: f7f7 fbbb bl 8000804 <__aeabi_ddiv> 800908e: 463b mov r3, r7 8009090: 4632 mov r2, r6 8009092: f7f7 f8d5 bl 8000240 <__aeabi_dsub> 8009096: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 800909a: 9f03 ldr r7, [sp, #12] 800909c: e9dd 0104 ldrd r0, r1, [sp, #16] 80090a0: f7f7 fd36 bl 8000b10 <__aeabi_d2iz> 80090a4: 4604 mov r4, r0 80090a6: f7f7 fa19 bl 80004dc <__aeabi_i2d> 80090aa: 4602 mov r2, r0 80090ac: 460b mov r3, r1 80090ae: e9dd 0104 ldrd r0, r1, [sp, #16] 80090b2: f7f7 f8c5 bl 8000240 <__aeabi_dsub> 80090b6: 4602 mov r2, r0 80090b8: 460b mov r3, r1 80090ba: 3430 adds r4, #48 ; 0x30 80090bc: e9cd 2304 strd r2, r3, [sp, #16] 80090c0: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 80090c4: f807 4b01 strb.w r4, [r7], #1 80090c8: f7f7 fce4 bl 8000a94 <__aeabi_dcmplt> 80090cc: 2800 cmp r0, #0 80090ce: d173 bne.n 80091b8 <_dtoa_r+0x638> 80090d0: e9dd 2304 ldrd r2, r3, [sp, #16] 80090d4: 2000 movs r0, #0 80090d6: 4911 ldr r1, [pc, #68] ; (800911c <_dtoa_r+0x59c>) 80090d8: f7f7 f8b2 bl 8000240 <__aeabi_dsub> 80090dc: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 80090e0: f7f7 fcd8 bl 8000a94 <__aeabi_dcmplt> 80090e4: 2800 cmp r0, #0 80090e6: f040 80b6 bne.w 8009256 <_dtoa_r+0x6d6> 80090ea: 9b12 ldr r3, [sp, #72] ; 0x48 80090ec: 429f cmp r7, r3 80090ee: f43f af7a beq.w 8008fe6 <_dtoa_r+0x466> 80090f2: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 80090f6: 2200 movs r2, #0 80090f8: 4b09 ldr r3, [pc, #36] ; (8009120 <_dtoa_r+0x5a0>) 80090fa: f7f7 fa59 bl 80005b0 <__aeabi_dmul> 80090fe: 2200 movs r2, #0 8009100: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 8009104: e9dd 0104 ldrd r0, r1, [sp, #16] 8009108: 4b05 ldr r3, [pc, #20] ; (8009120 <_dtoa_r+0x5a0>) 800910a: f7f7 fa51 bl 80005b0 <__aeabi_dmul> 800910e: e9cd 0104 strd r0, r1, [sp, #16] 8009112: e7c3 b.n 800909c <_dtoa_r+0x51c> 8009114: 0800b538 .word 0x0800b538 8009118: 0800b510 .word 0x0800b510 800911c: 3ff00000 .word 0x3ff00000 8009120: 40240000 .word 0x40240000 8009124: 401c0000 .word 0x401c0000 8009128: 40140000 .word 0x40140000 800912c: 3fe00000 .word 0x3fe00000 8009130: 4630 mov r0, r6 8009132: 4639 mov r1, r7 8009134: f7f7 fa3c bl 80005b0 <__aeabi_dmul> 8009138: 9b12 ldr r3, [sp, #72] ; 0x48 800913a: e9cd 0110 strd r0, r1, [sp, #64] ; 0x40 800913e: 9c03 ldr r4, [sp, #12] 8009140: 9314 str r3, [sp, #80] ; 0x50 8009142: e9dd 0104 ldrd r0, r1, [sp, #16] 8009146: f7f7 fce3 bl 8000b10 <__aeabi_d2iz> 800914a: 9015 str r0, [sp, #84] ; 0x54 800914c: f7f7 f9c6 bl 80004dc <__aeabi_i2d> 8009150: 4602 mov r2, r0 8009152: 460b mov r3, r1 8009154: e9dd 0104 ldrd r0, r1, [sp, #16] 8009158: f7f7 f872 bl 8000240 <__aeabi_dsub> 800915c: 9b15 ldr r3, [sp, #84] ; 0x54 800915e: 4606 mov r6, r0 8009160: 3330 adds r3, #48 ; 0x30 8009162: f804 3b01 strb.w r3, [r4], #1 8009166: 9b12 ldr r3, [sp, #72] ; 0x48 8009168: 460f mov r7, r1 800916a: 429c cmp r4, r3 800916c: f04f 0200 mov.w r2, #0 8009170: d124 bne.n 80091bc <_dtoa_r+0x63c> 8009172: e9dd 0110 ldrd r0, r1, [sp, #64] ; 0x40 8009176: 4baf ldr r3, [pc, #700] ; (8009434 <_dtoa_r+0x8b4>) 8009178: f7f7 f864 bl 8000244 <__adddf3> 800917c: 4602 mov r2, r0 800917e: 460b mov r3, r1 8009180: 4630 mov r0, r6 8009182: 4639 mov r1, r7 8009184: f7f7 fca4 bl 8000ad0 <__aeabi_dcmpgt> 8009188: 2800 cmp r0, #0 800918a: d163 bne.n 8009254 <_dtoa_r+0x6d4> 800918c: e9dd 2310 ldrd r2, r3, [sp, #64] ; 0x40 8009190: 2000 movs r0, #0 8009192: 49a8 ldr r1, [pc, #672] ; (8009434 <_dtoa_r+0x8b4>) 8009194: f7f7 f854 bl 8000240 <__aeabi_dsub> 8009198: 4602 mov r2, r0 800919a: 460b mov r3, r1 800919c: 4630 mov r0, r6 800919e: 4639 mov r1, r7 80091a0: f7f7 fc78 bl 8000a94 <__aeabi_dcmplt> 80091a4: 2800 cmp r0, #0 80091a6: f43f af1e beq.w 8008fe6 <_dtoa_r+0x466> 80091aa: 9f14 ldr r7, [sp, #80] ; 0x50 80091ac: 1e7b subs r3, r7, #1 80091ae: 9314 str r3, [sp, #80] ; 0x50 80091b0: f817 3c01 ldrb.w r3, [r7, #-1] 80091b4: 2b30 cmp r3, #48 ; 0x30 80091b6: d0f8 beq.n 80091aa <_dtoa_r+0x62a> 80091b8: 46c3 mov fp, r8 80091ba: e03b b.n 8009234 <_dtoa_r+0x6b4> 80091bc: 4b9e ldr r3, [pc, #632] ; (8009438 <_dtoa_r+0x8b8>) 80091be: f7f7 f9f7 bl 80005b0 <__aeabi_dmul> 80091c2: e9cd 0104 strd r0, r1, [sp, #16] 80091c6: e7bc b.n 8009142 <_dtoa_r+0x5c2> 80091c8: 9f03 ldr r7, [sp, #12] 80091ca: e9dd 8904 ldrd r8, r9, [sp, #16] 80091ce: e9dd 2306 ldrd r2, r3, [sp, #24] 80091d2: 4640 mov r0, r8 80091d4: 4649 mov r1, r9 80091d6: f7f7 fb15 bl 8000804 <__aeabi_ddiv> 80091da: f7f7 fc99 bl 8000b10 <__aeabi_d2iz> 80091de: 4604 mov r4, r0 80091e0: f7f7 f97c bl 80004dc <__aeabi_i2d> 80091e4: e9dd 2306 ldrd r2, r3, [sp, #24] 80091e8: f7f7 f9e2 bl 80005b0 <__aeabi_dmul> 80091ec: 4602 mov r2, r0 80091ee: 460b mov r3, r1 80091f0: 4640 mov r0, r8 80091f2: 4649 mov r1, r9 80091f4: f7f7 f824 bl 8000240 <__aeabi_dsub> 80091f8: f104 0630 add.w r6, r4, #48 ; 0x30 80091fc: f807 6b01 strb.w r6, [r7], #1 8009200: 9e03 ldr r6, [sp, #12] 8009202: f8dd c020 ldr.w ip, [sp, #32] 8009206: 1bbe subs r6, r7, r6 8009208: 45b4 cmp ip, r6 800920a: 4602 mov r2, r0 800920c: 460b mov r3, r1 800920e: d136 bne.n 800927e <_dtoa_r+0x6fe> 8009210: f7f7 f818 bl 8000244 <__adddf3> 8009214: e9dd 2306 ldrd r2, r3, [sp, #24] 8009218: 4680 mov r8, r0 800921a: 4689 mov r9, r1 800921c: f7f7 fc58 bl 8000ad0 <__aeabi_dcmpgt> 8009220: bb58 cbnz r0, 800927a <_dtoa_r+0x6fa> 8009222: e9dd 2306 ldrd r2, r3, [sp, #24] 8009226: 4640 mov r0, r8 8009228: 4649 mov r1, r9 800922a: f7f7 fc29 bl 8000a80 <__aeabi_dcmpeq> 800922e: b108 cbz r0, 8009234 <_dtoa_r+0x6b4> 8009230: 07e3 lsls r3, r4, #31 8009232: d422 bmi.n 800927a <_dtoa_r+0x6fa> 8009234: 4651 mov r1, sl 8009236: 4628 mov r0, r5 8009238: f000 fb0e bl 8009858 <_Bfree> 800923c: 2300 movs r3, #0 800923e: 9a24 ldr r2, [sp, #144] ; 0x90 8009240: 703b strb r3, [r7, #0] 8009242: f10b 0301 add.w r3, fp, #1 8009246: 6013 str r3, [r2, #0] 8009248: 9b26 ldr r3, [sp, #152] ; 0x98 800924a: 2b00 cmp r3, #0 800924c: f43f ace6 beq.w 8008c1c <_dtoa_r+0x9c> 8009250: 601f str r7, [r3, #0] 8009252: e4e3 b.n 8008c1c <_dtoa_r+0x9c> 8009254: 4627 mov r7, r4 8009256: 463b mov r3, r7 8009258: 461f mov r7, r3 800925a: f813 2d01 ldrb.w r2, [r3, #-1]! 800925e: 2a39 cmp r2, #57 ; 0x39 8009260: d107 bne.n 8009272 <_dtoa_r+0x6f2> 8009262: 9a03 ldr r2, [sp, #12] 8009264: 429a cmp r2, r3 8009266: d1f7 bne.n 8009258 <_dtoa_r+0x6d8> 8009268: 2230 movs r2, #48 ; 0x30 800926a: 9903 ldr r1, [sp, #12] 800926c: f108 0801 add.w r8, r8, #1 8009270: 700a strb r2, [r1, #0] 8009272: 781a ldrb r2, [r3, #0] 8009274: 3201 adds r2, #1 8009276: 701a strb r2, [r3, #0] 8009278: e79e b.n 80091b8 <_dtoa_r+0x638> 800927a: 46d8 mov r8, fp 800927c: e7eb b.n 8009256 <_dtoa_r+0x6d6> 800927e: 2200 movs r2, #0 8009280: 4b6d ldr r3, [pc, #436] ; (8009438 <_dtoa_r+0x8b8>) 8009282: f7f7 f995 bl 80005b0 <__aeabi_dmul> 8009286: 2200 movs r2, #0 8009288: 2300 movs r3, #0 800928a: 4680 mov r8, r0 800928c: 4689 mov r9, r1 800928e: f7f7 fbf7 bl 8000a80 <__aeabi_dcmpeq> 8009292: 2800 cmp r0, #0 8009294: d09b beq.n 80091ce <_dtoa_r+0x64e> 8009296: e7cd b.n 8009234 <_dtoa_r+0x6b4> 8009298: 9a0b ldr r2, [sp, #44] ; 0x2c 800929a: 2a00 cmp r2, #0 800929c: f000 80c4 beq.w 8009428 <_dtoa_r+0x8a8> 80092a0: 9a22 ldr r2, [sp, #136] ; 0x88 80092a2: 2a01 cmp r2, #1 80092a4: f300 80a8 bgt.w 80093f8 <_dtoa_r+0x878> 80092a8: 9a13 ldr r2, [sp, #76] ; 0x4c 80092aa: 2a00 cmp r2, #0 80092ac: f000 80a0 beq.w 80093f0 <_dtoa_r+0x870> 80092b0: f203 4333 addw r3, r3, #1075 ; 0x433 80092b4: 464f mov r7, r9 80092b6: 9c0a ldr r4, [sp, #40] ; 0x28 80092b8: 9a09 ldr r2, [sp, #36] ; 0x24 80092ba: 2101 movs r1, #1 80092bc: 441a add r2, r3 80092be: 4628 mov r0, r5 80092c0: 4499 add r9, r3 80092c2: 9209 str r2, [sp, #36] ; 0x24 80092c4: f000 fb7e bl 80099c4 <__i2b> 80092c8: 4606 mov r6, r0 80092ca: b15f cbz r7, 80092e4 <_dtoa_r+0x764> 80092cc: 9b09 ldr r3, [sp, #36] ; 0x24 80092ce: 2b00 cmp r3, #0 80092d0: dd08 ble.n 80092e4 <_dtoa_r+0x764> 80092d2: 42bb cmp r3, r7 80092d4: bfa8 it ge 80092d6: 463b movge r3, r7 80092d8: 9a09 ldr r2, [sp, #36] ; 0x24 80092da: eba9 0903 sub.w r9, r9, r3 80092de: 1aff subs r7, r7, r3 80092e0: 1ad3 subs r3, r2, r3 80092e2: 9309 str r3, [sp, #36] ; 0x24 80092e4: 9b0a ldr r3, [sp, #40] ; 0x28 80092e6: b1f3 cbz r3, 8009326 <_dtoa_r+0x7a6> 80092e8: 9b0b ldr r3, [sp, #44] ; 0x2c 80092ea: 2b00 cmp r3, #0 80092ec: f000 80a0 beq.w 8009430 <_dtoa_r+0x8b0> 80092f0: 2c00 cmp r4, #0 80092f2: dd10 ble.n 8009316 <_dtoa_r+0x796> 80092f4: 4631 mov r1, r6 80092f6: 4622 mov r2, r4 80092f8: 4628 mov r0, r5 80092fa: f000 fc21 bl 8009b40 <__pow5mult> 80092fe: 4652 mov r2, sl 8009300: 4601 mov r1, r0 8009302: 4606 mov r6, r0 8009304: 4628 mov r0, r5 8009306: f000 fb73 bl 80099f0 <__multiply> 800930a: 4680 mov r8, r0 800930c: 4651 mov r1, sl 800930e: 4628 mov r0, r5 8009310: f000 faa2 bl 8009858 <_Bfree> 8009314: 46c2 mov sl, r8 8009316: 9b0a ldr r3, [sp, #40] ; 0x28 8009318: 1b1a subs r2, r3, r4 800931a: d004 beq.n 8009326 <_dtoa_r+0x7a6> 800931c: 4651 mov r1, sl 800931e: 4628 mov r0, r5 8009320: f000 fc0e bl 8009b40 <__pow5mult> 8009324: 4682 mov sl, r0 8009326: 2101 movs r1, #1 8009328: 4628 mov r0, r5 800932a: f000 fb4b bl 80099c4 <__i2b> 800932e: 9b0e ldr r3, [sp, #56] ; 0x38 8009330: 4604 mov r4, r0 8009332: 2b00 cmp r3, #0 8009334: f340 8082 ble.w 800943c <_dtoa_r+0x8bc> 8009338: 461a mov r2, r3 800933a: 4601 mov r1, r0 800933c: 4628 mov r0, r5 800933e: f000 fbff bl 8009b40 <__pow5mult> 8009342: 9b22 ldr r3, [sp, #136] ; 0x88 8009344: 4604 mov r4, r0 8009346: 2b01 cmp r3, #1 8009348: dd7b ble.n 8009442 <_dtoa_r+0x8c2> 800934a: f04f 0800 mov.w r8, #0 800934e: 6923 ldr r3, [r4, #16] 8009350: eb04 0383 add.w r3, r4, r3, lsl #2 8009354: 6918 ldr r0, [r3, #16] 8009356: f000 fae7 bl 8009928 <__hi0bits> 800935a: f1c0 0020 rsb r0, r0, #32 800935e: 9b09 ldr r3, [sp, #36] ; 0x24 8009360: 4418 add r0, r3 8009362: f010 001f ands.w r0, r0, #31 8009366: f000 8092 beq.w 800948e <_dtoa_r+0x90e> 800936a: f1c0 0320 rsb r3, r0, #32 800936e: 2b04 cmp r3, #4 8009370: f340 8085 ble.w 800947e <_dtoa_r+0x8fe> 8009374: 9b09 ldr r3, [sp, #36] ; 0x24 8009376: f1c0 001c rsb r0, r0, #28 800937a: 4403 add r3, r0 800937c: 4481 add r9, r0 800937e: 4407 add r7, r0 8009380: 9309 str r3, [sp, #36] ; 0x24 8009382: f1b9 0f00 cmp.w r9, #0 8009386: dd05 ble.n 8009394 <_dtoa_r+0x814> 8009388: 4651 mov r1, sl 800938a: 464a mov r2, r9 800938c: 4628 mov r0, r5 800938e: f000 fc31 bl 8009bf4 <__lshift> 8009392: 4682 mov sl, r0 8009394: 9b09 ldr r3, [sp, #36] ; 0x24 8009396: 2b00 cmp r3, #0 8009398: dd05 ble.n 80093a6 <_dtoa_r+0x826> 800939a: 4621 mov r1, r4 800939c: 461a mov r2, r3 800939e: 4628 mov r0, r5 80093a0: f000 fc28 bl 8009bf4 <__lshift> 80093a4: 4604 mov r4, r0 80093a6: 9b0f ldr r3, [sp, #60] ; 0x3c 80093a8: 2b00 cmp r3, #0 80093aa: d072 beq.n 8009492 <_dtoa_r+0x912> 80093ac: 4621 mov r1, r4 80093ae: 4650 mov r0, sl 80093b0: f000 fc8c bl 8009ccc <__mcmp> 80093b4: 2800 cmp r0, #0 80093b6: da6c bge.n 8009492 <_dtoa_r+0x912> 80093b8: 2300 movs r3, #0 80093ba: 4651 mov r1, sl 80093bc: 220a movs r2, #10 80093be: 4628 mov r0, r5 80093c0: f000 fa6c bl 800989c <__multadd> 80093c4: 9b0b ldr r3, [sp, #44] ; 0x2c 80093c6: 4682 mov sl, r0 80093c8: f10b 3bff add.w fp, fp, #4294967295 80093cc: 2b00 cmp r3, #0 80093ce: f000 81ac beq.w 800972a <_dtoa_r+0xbaa> 80093d2: 2300 movs r3, #0 80093d4: 4631 mov r1, r6 80093d6: 220a movs r2, #10 80093d8: 4628 mov r0, r5 80093da: f000 fa5f bl 800989c <__multadd> 80093de: 9b06 ldr r3, [sp, #24] 80093e0: 4606 mov r6, r0 80093e2: 2b00 cmp r3, #0 80093e4: f300 8093 bgt.w 800950e <_dtoa_r+0x98e> 80093e8: 9b22 ldr r3, [sp, #136] ; 0x88 80093ea: 2b02 cmp r3, #2 80093ec: dc59 bgt.n 80094a2 <_dtoa_r+0x922> 80093ee: e08e b.n 800950e <_dtoa_r+0x98e> 80093f0: 9b16 ldr r3, [sp, #88] ; 0x58 80093f2: f1c3 0336 rsb r3, r3, #54 ; 0x36 80093f6: e75d b.n 80092b4 <_dtoa_r+0x734> 80093f8: 9b08 ldr r3, [sp, #32] 80093fa: 1e5c subs r4, r3, #1 80093fc: 9b0a ldr r3, [sp, #40] ; 0x28 80093fe: 42a3 cmp r3, r4 8009400: bfbf itttt lt 8009402: 9b0a ldrlt r3, [sp, #40] ; 0x28 8009404: 9a0e ldrlt r2, [sp, #56] ; 0x38 8009406: 1ae3 sublt r3, r4, r3 8009408: 18d2 addlt r2, r2, r3 800940a: bfa8 it ge 800940c: 1b1c subge r4, r3, r4 800940e: 9b08 ldr r3, [sp, #32] 8009410: bfbe ittt lt 8009412: 940a strlt r4, [sp, #40] ; 0x28 8009414: 920e strlt r2, [sp, #56] ; 0x38 8009416: 2400 movlt r4, #0 8009418: 2b00 cmp r3, #0 800941a: bfb5 itete lt 800941c: eba9 0703 sublt.w r7, r9, r3 8009420: 464f movge r7, r9 8009422: 2300 movlt r3, #0 8009424: 9b08 ldrge r3, [sp, #32] 8009426: e747 b.n 80092b8 <_dtoa_r+0x738> 8009428: 464f mov r7, r9 800942a: 9c0a ldr r4, [sp, #40] ; 0x28 800942c: 9e0b ldr r6, [sp, #44] ; 0x2c 800942e: e74c b.n 80092ca <_dtoa_r+0x74a> 8009430: 9a0a ldr r2, [sp, #40] ; 0x28 8009432: e773 b.n 800931c <_dtoa_r+0x79c> 8009434: 3fe00000 .word 0x3fe00000 8009438: 40240000 .word 0x40240000 800943c: 9b22 ldr r3, [sp, #136] ; 0x88 800943e: 2b01 cmp r3, #1 8009440: dc18 bgt.n 8009474 <_dtoa_r+0x8f4> 8009442: 9b04 ldr r3, [sp, #16] 8009444: b9b3 cbnz r3, 8009474 <_dtoa_r+0x8f4> 8009446: 9b05 ldr r3, [sp, #20] 8009448: f3c3 0313 ubfx r3, r3, #0, #20 800944c: b993 cbnz r3, 8009474 <_dtoa_r+0x8f4> 800944e: 9b05 ldr r3, [sp, #20] 8009450: f023 4300 bic.w r3, r3, #2147483648 ; 0x80000000 8009454: 0d1b lsrs r3, r3, #20 8009456: 051b lsls r3, r3, #20 8009458: b17b cbz r3, 800947a <_dtoa_r+0x8fa> 800945a: f04f 0801 mov.w r8, #1 800945e: 9b09 ldr r3, [sp, #36] ; 0x24 8009460: f109 0901 add.w r9, r9, #1 8009464: 3301 adds r3, #1 8009466: 9309 str r3, [sp, #36] ; 0x24 8009468: 9b0e ldr r3, [sp, #56] ; 0x38 800946a: 2b00 cmp r3, #0 800946c: f47f af6f bne.w 800934e <_dtoa_r+0x7ce> 8009470: 2001 movs r0, #1 8009472: e774 b.n 800935e <_dtoa_r+0x7de> 8009474: f04f 0800 mov.w r8, #0 8009478: e7f6 b.n 8009468 <_dtoa_r+0x8e8> 800947a: 4698 mov r8, r3 800947c: e7f4 b.n 8009468 <_dtoa_r+0x8e8> 800947e: d080 beq.n 8009382 <_dtoa_r+0x802> 8009480: 9a09 ldr r2, [sp, #36] ; 0x24 8009482: 331c adds r3, #28 8009484: 441a add r2, r3 8009486: 4499 add r9, r3 8009488: 441f add r7, r3 800948a: 9209 str r2, [sp, #36] ; 0x24 800948c: e779 b.n 8009382 <_dtoa_r+0x802> 800948e: 4603 mov r3, r0 8009490: e7f6 b.n 8009480 <_dtoa_r+0x900> 8009492: 9b08 ldr r3, [sp, #32] 8009494: 2b00 cmp r3, #0 8009496: dc34 bgt.n 8009502 <_dtoa_r+0x982> 8009498: 9b22 ldr r3, [sp, #136] ; 0x88 800949a: 2b02 cmp r3, #2 800949c: dd31 ble.n 8009502 <_dtoa_r+0x982> 800949e: 9b08 ldr r3, [sp, #32] 80094a0: 9306 str r3, [sp, #24] 80094a2: 9b06 ldr r3, [sp, #24] 80094a4: b963 cbnz r3, 80094c0 <_dtoa_r+0x940> 80094a6: 4621 mov r1, r4 80094a8: 2205 movs r2, #5 80094aa: 4628 mov r0, r5 80094ac: f000 f9f6 bl 800989c <__multadd> 80094b0: 4601 mov r1, r0 80094b2: 4604 mov r4, r0 80094b4: 4650 mov r0, sl 80094b6: f000 fc09 bl 8009ccc <__mcmp> 80094ba: 2800 cmp r0, #0 80094bc: f73f adbf bgt.w 800903e <_dtoa_r+0x4be> 80094c0: 9b23 ldr r3, [sp, #140] ; 0x8c 80094c2: 9f03 ldr r7, [sp, #12] 80094c4: ea6f 0b03 mvn.w fp, r3 80094c8: f04f 0800 mov.w r8, #0 80094cc: 4621 mov r1, r4 80094ce: 4628 mov r0, r5 80094d0: f000 f9c2 bl 8009858 <_Bfree> 80094d4: 2e00 cmp r6, #0 80094d6: f43f aead beq.w 8009234 <_dtoa_r+0x6b4> 80094da: f1b8 0f00 cmp.w r8, #0 80094de: d005 beq.n 80094ec <_dtoa_r+0x96c> 80094e0: 45b0 cmp r8, r6 80094e2: d003 beq.n 80094ec <_dtoa_r+0x96c> 80094e4: 4641 mov r1, r8 80094e6: 4628 mov r0, r5 80094e8: f000 f9b6 bl 8009858 <_Bfree> 80094ec: 4631 mov r1, r6 80094ee: 4628 mov r0, r5 80094f0: f000 f9b2 bl 8009858 <_Bfree> 80094f4: e69e b.n 8009234 <_dtoa_r+0x6b4> 80094f6: 2400 movs r4, #0 80094f8: 4626 mov r6, r4 80094fa: e7e1 b.n 80094c0 <_dtoa_r+0x940> 80094fc: 46c3 mov fp, r8 80094fe: 4626 mov r6, r4 8009500: e59d b.n 800903e <_dtoa_r+0x4be> 8009502: 9b0b ldr r3, [sp, #44] ; 0x2c 8009504: 2b00 cmp r3, #0 8009506: f000 80c8 beq.w 800969a <_dtoa_r+0xb1a> 800950a: 9b08 ldr r3, [sp, #32] 800950c: 9306 str r3, [sp, #24] 800950e: 2f00 cmp r7, #0 8009510: dd05 ble.n 800951e <_dtoa_r+0x99e> 8009512: 4631 mov r1, r6 8009514: 463a mov r2, r7 8009516: 4628 mov r0, r5 8009518: f000 fb6c bl 8009bf4 <__lshift> 800951c: 4606 mov r6, r0 800951e: f1b8 0f00 cmp.w r8, #0 8009522: d05b beq.n 80095dc <_dtoa_r+0xa5c> 8009524: 4628 mov r0, r5 8009526: 6871 ldr r1, [r6, #4] 8009528: f000 f956 bl 80097d8 <_Balloc> 800952c: 4607 mov r7, r0 800952e: b928 cbnz r0, 800953c <_dtoa_r+0x9bc> 8009530: 4602 mov r2, r0 8009532: f240 21ef movw r1, #751 ; 0x2ef 8009536: 4b81 ldr r3, [pc, #516] ; (800973c <_dtoa_r+0xbbc>) 8009538: f7ff bb36 b.w 8008ba8 <_dtoa_r+0x28> 800953c: 6932 ldr r2, [r6, #16] 800953e: f106 010c add.w r1, r6, #12 8009542: 3202 adds r2, #2 8009544: 0092 lsls r2, r2, #2 8009546: 300c adds r0, #12 8009548: f001 f8a0 bl 800a68c 800954c: 2201 movs r2, #1 800954e: 4639 mov r1, r7 8009550: 4628 mov r0, r5 8009552: f000 fb4f bl 8009bf4 <__lshift> 8009556: 46b0 mov r8, r6 8009558: 4606 mov r6, r0 800955a: 9b03 ldr r3, [sp, #12] 800955c: 9a03 ldr r2, [sp, #12] 800955e: 3301 adds r3, #1 8009560: 9308 str r3, [sp, #32] 8009562: 9b06 ldr r3, [sp, #24] 8009564: 4413 add r3, r2 8009566: 930b str r3, [sp, #44] ; 0x2c 8009568: 9b04 ldr r3, [sp, #16] 800956a: f003 0301 and.w r3, r3, #1 800956e: 930a str r3, [sp, #40] ; 0x28 8009570: 9b08 ldr r3, [sp, #32] 8009572: 4621 mov r1, r4 8009574: 3b01 subs r3, #1 8009576: 4650 mov r0, sl 8009578: 9304 str r3, [sp, #16] 800957a: f7ff fa76 bl 8008a6a 800957e: 4641 mov r1, r8 8009580: 9006 str r0, [sp, #24] 8009582: f100 0930 add.w r9, r0, #48 ; 0x30 8009586: 4650 mov r0, sl 8009588: f000 fba0 bl 8009ccc <__mcmp> 800958c: 4632 mov r2, r6 800958e: 9009 str r0, [sp, #36] ; 0x24 8009590: 4621 mov r1, r4 8009592: 4628 mov r0, r5 8009594: f000 fbb6 bl 8009d04 <__mdiff> 8009598: 68c2 ldr r2, [r0, #12] 800959a: 4607 mov r7, r0 800959c: bb02 cbnz r2, 80095e0 <_dtoa_r+0xa60> 800959e: 4601 mov r1, r0 80095a0: 4650 mov r0, sl 80095a2: f000 fb93 bl 8009ccc <__mcmp> 80095a6: 4602 mov r2, r0 80095a8: 4639 mov r1, r7 80095aa: 4628 mov r0, r5 80095ac: 920c str r2, [sp, #48] ; 0x30 80095ae: f000 f953 bl 8009858 <_Bfree> 80095b2: 9b22 ldr r3, [sp, #136] ; 0x88 80095b4: 9a0c ldr r2, [sp, #48] ; 0x30 80095b6: 9f08 ldr r7, [sp, #32] 80095b8: ea43 0102 orr.w r1, r3, r2 80095bc: 9b0a ldr r3, [sp, #40] ; 0x28 80095be: 4319 orrs r1, r3 80095c0: d110 bne.n 80095e4 <_dtoa_r+0xa64> 80095c2: f1b9 0f39 cmp.w r9, #57 ; 0x39 80095c6: d029 beq.n 800961c <_dtoa_r+0xa9c> 80095c8: 9b09 ldr r3, [sp, #36] ; 0x24 80095ca: 2b00 cmp r3, #0 80095cc: dd02 ble.n 80095d4 <_dtoa_r+0xa54> 80095ce: 9b06 ldr r3, [sp, #24] 80095d0: f103 0931 add.w r9, r3, #49 ; 0x31 80095d4: 9b04 ldr r3, [sp, #16] 80095d6: f883 9000 strb.w r9, [r3] 80095da: e777 b.n 80094cc <_dtoa_r+0x94c> 80095dc: 4630 mov r0, r6 80095de: e7ba b.n 8009556 <_dtoa_r+0x9d6> 80095e0: 2201 movs r2, #1 80095e2: e7e1 b.n 80095a8 <_dtoa_r+0xa28> 80095e4: 9b09 ldr r3, [sp, #36] ; 0x24 80095e6: 2b00 cmp r3, #0 80095e8: db04 blt.n 80095f4 <_dtoa_r+0xa74> 80095ea: 9922 ldr r1, [sp, #136] ; 0x88 80095ec: 430b orrs r3, r1 80095ee: 990a ldr r1, [sp, #40] ; 0x28 80095f0: 430b orrs r3, r1 80095f2: d120 bne.n 8009636 <_dtoa_r+0xab6> 80095f4: 2a00 cmp r2, #0 80095f6: dded ble.n 80095d4 <_dtoa_r+0xa54> 80095f8: 4651 mov r1, sl 80095fa: 2201 movs r2, #1 80095fc: 4628 mov r0, r5 80095fe: f000 faf9 bl 8009bf4 <__lshift> 8009602: 4621 mov r1, r4 8009604: 4682 mov sl, r0 8009606: f000 fb61 bl 8009ccc <__mcmp> 800960a: 2800 cmp r0, #0 800960c: dc03 bgt.n 8009616 <_dtoa_r+0xa96> 800960e: d1e1 bne.n 80095d4 <_dtoa_r+0xa54> 8009610: f019 0f01 tst.w r9, #1 8009614: d0de beq.n 80095d4 <_dtoa_r+0xa54> 8009616: f1b9 0f39 cmp.w r9, #57 ; 0x39 800961a: d1d8 bne.n 80095ce <_dtoa_r+0xa4e> 800961c: 2339 movs r3, #57 ; 0x39 800961e: 9a04 ldr r2, [sp, #16] 8009620: 7013 strb r3, [r2, #0] 8009622: 463b mov r3, r7 8009624: 461f mov r7, r3 8009626: f817 2c01 ldrb.w r2, [r7, #-1] 800962a: 3b01 subs r3, #1 800962c: 2a39 cmp r2, #57 ; 0x39 800962e: d06b beq.n 8009708 <_dtoa_r+0xb88> 8009630: 3201 adds r2, #1 8009632: 701a strb r2, [r3, #0] 8009634: e74a b.n 80094cc <_dtoa_r+0x94c> 8009636: 2a00 cmp r2, #0 8009638: dd07 ble.n 800964a <_dtoa_r+0xaca> 800963a: f1b9 0f39 cmp.w r9, #57 ; 0x39 800963e: d0ed beq.n 800961c <_dtoa_r+0xa9c> 8009640: 9a04 ldr r2, [sp, #16] 8009642: f109 0301 add.w r3, r9, #1 8009646: 7013 strb r3, [r2, #0] 8009648: e740 b.n 80094cc <_dtoa_r+0x94c> 800964a: 9b08 ldr r3, [sp, #32] 800964c: 9a0b ldr r2, [sp, #44] ; 0x2c 800964e: f803 9c01 strb.w r9, [r3, #-1] 8009652: 4293 cmp r3, r2 8009654: d042 beq.n 80096dc <_dtoa_r+0xb5c> 8009656: 4651 mov r1, sl 8009658: 2300 movs r3, #0 800965a: 220a movs r2, #10 800965c: 4628 mov r0, r5 800965e: f000 f91d bl 800989c <__multadd> 8009662: 45b0 cmp r8, r6 8009664: 4682 mov sl, r0 8009666: f04f 0300 mov.w r3, #0 800966a: f04f 020a mov.w r2, #10 800966e: 4641 mov r1, r8 8009670: 4628 mov r0, r5 8009672: d107 bne.n 8009684 <_dtoa_r+0xb04> 8009674: f000 f912 bl 800989c <__multadd> 8009678: 4680 mov r8, r0 800967a: 4606 mov r6, r0 800967c: 9b08 ldr r3, [sp, #32] 800967e: 3301 adds r3, #1 8009680: 9308 str r3, [sp, #32] 8009682: e775 b.n 8009570 <_dtoa_r+0x9f0> 8009684: f000 f90a bl 800989c <__multadd> 8009688: 4631 mov r1, r6 800968a: 4680 mov r8, r0 800968c: 2300 movs r3, #0 800968e: 220a movs r2, #10 8009690: 4628 mov r0, r5 8009692: f000 f903 bl 800989c <__multadd> 8009696: 4606 mov r6, r0 8009698: e7f0 b.n 800967c <_dtoa_r+0xafc> 800969a: 9b08 ldr r3, [sp, #32] 800969c: 9306 str r3, [sp, #24] 800969e: 9f03 ldr r7, [sp, #12] 80096a0: 4621 mov r1, r4 80096a2: 4650 mov r0, sl 80096a4: f7ff f9e1 bl 8008a6a 80096a8: 9b03 ldr r3, [sp, #12] 80096aa: f100 0930 add.w r9, r0, #48 ; 0x30 80096ae: f807 9b01 strb.w r9, [r7], #1 80096b2: 1afa subs r2, r7, r3 80096b4: 9b06 ldr r3, [sp, #24] 80096b6: 4293 cmp r3, r2 80096b8: dd07 ble.n 80096ca <_dtoa_r+0xb4a> 80096ba: 4651 mov r1, sl 80096bc: 2300 movs r3, #0 80096be: 220a movs r2, #10 80096c0: 4628 mov r0, r5 80096c2: f000 f8eb bl 800989c <__multadd> 80096c6: 4682 mov sl, r0 80096c8: e7ea b.n 80096a0 <_dtoa_r+0xb20> 80096ca: 9b06 ldr r3, [sp, #24] 80096cc: f04f 0800 mov.w r8, #0 80096d0: 2b00 cmp r3, #0 80096d2: bfcc ite gt 80096d4: 461f movgt r7, r3 80096d6: 2701 movle r7, #1 80096d8: 9b03 ldr r3, [sp, #12] 80096da: 441f add r7, r3 80096dc: 4651 mov r1, sl 80096de: 2201 movs r2, #1 80096e0: 4628 mov r0, r5 80096e2: f000 fa87 bl 8009bf4 <__lshift> 80096e6: 4621 mov r1, r4 80096e8: 4682 mov sl, r0 80096ea: f000 faef bl 8009ccc <__mcmp> 80096ee: 2800 cmp r0, #0 80096f0: dc97 bgt.n 8009622 <_dtoa_r+0xaa2> 80096f2: d102 bne.n 80096fa <_dtoa_r+0xb7a> 80096f4: f019 0f01 tst.w r9, #1 80096f8: d193 bne.n 8009622 <_dtoa_r+0xaa2> 80096fa: 463b mov r3, r7 80096fc: 461f mov r7, r3 80096fe: f813 2d01 ldrb.w r2, [r3, #-1]! 8009702: 2a30 cmp r2, #48 ; 0x30 8009704: d0fa beq.n 80096fc <_dtoa_r+0xb7c> 8009706: e6e1 b.n 80094cc <_dtoa_r+0x94c> 8009708: 9a03 ldr r2, [sp, #12] 800970a: 429a cmp r2, r3 800970c: d18a bne.n 8009624 <_dtoa_r+0xaa4> 800970e: 2331 movs r3, #49 ; 0x31 8009710: f10b 0b01 add.w fp, fp, #1 8009714: e797 b.n 8009646 <_dtoa_r+0xac6> 8009716: 4b0a ldr r3, [pc, #40] ; (8009740 <_dtoa_r+0xbc0>) 8009718: f7ff ba9f b.w 8008c5a <_dtoa_r+0xda> 800971c: 9b26 ldr r3, [sp, #152] ; 0x98 800971e: 2b00 cmp r3, #0 8009720: f47f aa77 bne.w 8008c12 <_dtoa_r+0x92> 8009724: 4b07 ldr r3, [pc, #28] ; (8009744 <_dtoa_r+0xbc4>) 8009726: f7ff ba98 b.w 8008c5a <_dtoa_r+0xda> 800972a: 9b06 ldr r3, [sp, #24] 800972c: 2b00 cmp r3, #0 800972e: dcb6 bgt.n 800969e <_dtoa_r+0xb1e> 8009730: 9b22 ldr r3, [sp, #136] ; 0x88 8009732: 2b02 cmp r3, #2 8009734: f73f aeb5 bgt.w 80094a2 <_dtoa_r+0x922> 8009738: e7b1 b.n 800969e <_dtoa_r+0xb1e> 800973a: bf00 nop 800973c: 0800b4a0 .word 0x0800b4a0 8009740: 0800b400 .word 0x0800b400 8009744: 0800b424 .word 0x0800b424 08009748 <_free_r>: 8009748: b538 push {r3, r4, r5, lr} 800974a: 4605 mov r5, r0 800974c: 2900 cmp r1, #0 800974e: d040 beq.n 80097d2 <_free_r+0x8a> 8009750: f851 3c04 ldr.w r3, [r1, #-4] 8009754: 1f0c subs r4, r1, #4 8009756: 2b00 cmp r3, #0 8009758: bfb8 it lt 800975a: 18e4 addlt r4, r4, r3 800975c: f7fe fac4 bl 8007ce8 <__malloc_lock> 8009760: 4a1c ldr r2, [pc, #112] ; (80097d4 <_free_r+0x8c>) 8009762: 6813 ldr r3, [r2, #0] 8009764: b933 cbnz r3, 8009774 <_free_r+0x2c> 8009766: 6063 str r3, [r4, #4] 8009768: 6014 str r4, [r2, #0] 800976a: 4628 mov r0, r5 800976c: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} 8009770: f7fe bac0 b.w 8007cf4 <__malloc_unlock> 8009774: 42a3 cmp r3, r4 8009776: d908 bls.n 800978a <_free_r+0x42> 8009778: 6820 ldr r0, [r4, #0] 800977a: 1821 adds r1, r4, r0 800977c: 428b cmp r3, r1 800977e: bf01 itttt eq 8009780: 6819 ldreq r1, [r3, #0] 8009782: 685b ldreq r3, [r3, #4] 8009784: 1809 addeq r1, r1, r0 8009786: 6021 streq r1, [r4, #0] 8009788: e7ed b.n 8009766 <_free_r+0x1e> 800978a: 461a mov r2, r3 800978c: 685b ldr r3, [r3, #4] 800978e: b10b cbz r3, 8009794 <_free_r+0x4c> 8009790: 42a3 cmp r3, r4 8009792: d9fa bls.n 800978a <_free_r+0x42> 8009794: 6811 ldr r1, [r2, #0] 8009796: 1850 adds r0, r2, r1 8009798: 42a0 cmp r0, r4 800979a: d10b bne.n 80097b4 <_free_r+0x6c> 800979c: 6820 ldr r0, [r4, #0] 800979e: 4401 add r1, r0 80097a0: 1850 adds r0, r2, r1 80097a2: 4283 cmp r3, r0 80097a4: 6011 str r1, [r2, #0] 80097a6: d1e0 bne.n 800976a <_free_r+0x22> 80097a8: 6818 ldr r0, [r3, #0] 80097aa: 685b ldr r3, [r3, #4] 80097ac: 4408 add r0, r1 80097ae: 6010 str r0, [r2, #0] 80097b0: 6053 str r3, [r2, #4] 80097b2: e7da b.n 800976a <_free_r+0x22> 80097b4: d902 bls.n 80097bc <_free_r+0x74> 80097b6: 230c movs r3, #12 80097b8: 602b str r3, [r5, #0] 80097ba: e7d6 b.n 800976a <_free_r+0x22> 80097bc: 6820 ldr r0, [r4, #0] 80097be: 1821 adds r1, r4, r0 80097c0: 428b cmp r3, r1 80097c2: bf01 itttt eq 80097c4: 6819 ldreq r1, [r3, #0] 80097c6: 685b ldreq r3, [r3, #4] 80097c8: 1809 addeq r1, r1, r0 80097ca: 6021 streq r1, [r4, #0] 80097cc: 6063 str r3, [r4, #4] 80097ce: 6054 str r4, [r2, #4] 80097d0: e7cb b.n 800976a <_free_r+0x22> 80097d2: bd38 pop {r3, r4, r5, pc} 80097d4: 20002528 .word 0x20002528 080097d8 <_Balloc>: 80097d8: b570 push {r4, r5, r6, lr} 80097da: 69c6 ldr r6, [r0, #28] 80097dc: 4604 mov r4, r0 80097de: 460d mov r5, r1 80097e0: b976 cbnz r6, 8009800 <_Balloc+0x28> 80097e2: 2010 movs r0, #16 80097e4: f7fe f9d0 bl 8007b88 80097e8: 4602 mov r2, r0 80097ea: 61e0 str r0, [r4, #28] 80097ec: b920 cbnz r0, 80097f8 <_Balloc+0x20> 80097ee: 216b movs r1, #107 ; 0x6b 80097f0: 4b17 ldr r3, [pc, #92] ; (8009850 <_Balloc+0x78>) 80097f2: 4818 ldr r0, [pc, #96] ; (8009854 <_Balloc+0x7c>) 80097f4: f000 ff58 bl 800a6a8 <__assert_func> 80097f8: e9c0 6601 strd r6, r6, [r0, #4] 80097fc: 6006 str r6, [r0, #0] 80097fe: 60c6 str r6, [r0, #12] 8009800: 69e6 ldr r6, [r4, #28] 8009802: 68f3 ldr r3, [r6, #12] 8009804: b183 cbz r3, 8009828 <_Balloc+0x50> 8009806: 69e3 ldr r3, [r4, #28] 8009808: 68db ldr r3, [r3, #12] 800980a: f853 0025 ldr.w r0, [r3, r5, lsl #2] 800980e: b9b8 cbnz r0, 8009840 <_Balloc+0x68> 8009810: 2101 movs r1, #1 8009812: fa01 f605 lsl.w r6, r1, r5 8009816: 1d72 adds r2, r6, #5 8009818: 4620 mov r0, r4 800981a: 0092 lsls r2, r2, #2 800981c: f000 ff62 bl 800a6e4 <_calloc_r> 8009820: b160 cbz r0, 800983c <_Balloc+0x64> 8009822: e9c0 5601 strd r5, r6, [r0, #4] 8009826: e00e b.n 8009846 <_Balloc+0x6e> 8009828: 2221 movs r2, #33 ; 0x21 800982a: 2104 movs r1, #4 800982c: 4620 mov r0, r4 800982e: f000 ff59 bl 800a6e4 <_calloc_r> 8009832: 69e3 ldr r3, [r4, #28] 8009834: 60f0 str r0, [r6, #12] 8009836: 68db ldr r3, [r3, #12] 8009838: 2b00 cmp r3, #0 800983a: d1e4 bne.n 8009806 <_Balloc+0x2e> 800983c: 2000 movs r0, #0 800983e: bd70 pop {r4, r5, r6, pc} 8009840: 6802 ldr r2, [r0, #0] 8009842: f843 2025 str.w r2, [r3, r5, lsl #2] 8009846: 2300 movs r3, #0 8009848: e9c0 3303 strd r3, r3, [r0, #12] 800984c: e7f7 b.n 800983e <_Balloc+0x66> 800984e: bf00 nop 8009850: 0800b431 .word 0x0800b431 8009854: 0800b4b1 .word 0x0800b4b1 08009858 <_Bfree>: 8009858: b570 push {r4, r5, r6, lr} 800985a: 69c6 ldr r6, [r0, #28] 800985c: 4605 mov r5, r0 800985e: 460c mov r4, r1 8009860: b976 cbnz r6, 8009880 <_Bfree+0x28> 8009862: 2010 movs r0, #16 8009864: f7fe f990 bl 8007b88 8009868: 4602 mov r2, r0 800986a: 61e8 str r0, [r5, #28] 800986c: b920 cbnz r0, 8009878 <_Bfree+0x20> 800986e: 218f movs r1, #143 ; 0x8f 8009870: 4b08 ldr r3, [pc, #32] ; (8009894 <_Bfree+0x3c>) 8009872: 4809 ldr r0, [pc, #36] ; (8009898 <_Bfree+0x40>) 8009874: f000 ff18 bl 800a6a8 <__assert_func> 8009878: e9c0 6601 strd r6, r6, [r0, #4] 800987c: 6006 str r6, [r0, #0] 800987e: 60c6 str r6, [r0, #12] 8009880: b13c cbz r4, 8009892 <_Bfree+0x3a> 8009882: 69eb ldr r3, [r5, #28] 8009884: 6862 ldr r2, [r4, #4] 8009886: 68db ldr r3, [r3, #12] 8009888: f853 1022 ldr.w r1, [r3, r2, lsl #2] 800988c: 6021 str r1, [r4, #0] 800988e: f843 4022 str.w r4, [r3, r2, lsl #2] 8009892: bd70 pop {r4, r5, r6, pc} 8009894: 0800b431 .word 0x0800b431 8009898: 0800b4b1 .word 0x0800b4b1 0800989c <__multadd>: 800989c: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 80098a0: 4607 mov r7, r0 80098a2: 460c mov r4, r1 80098a4: 461e mov r6, r3 80098a6: 2000 movs r0, #0 80098a8: 690d ldr r5, [r1, #16] 80098aa: f101 0c14 add.w ip, r1, #20 80098ae: f8dc 3000 ldr.w r3, [ip] 80098b2: 3001 adds r0, #1 80098b4: b299 uxth r1, r3 80098b6: fb02 6101 mla r1, r2, r1, r6 80098ba: 0c1e lsrs r6, r3, #16 80098bc: 0c0b lsrs r3, r1, #16 80098be: fb02 3306 mla r3, r2, r6, r3 80098c2: b289 uxth r1, r1 80098c4: eb01 4103 add.w r1, r1, r3, lsl #16 80098c8: 4285 cmp r5, r0 80098ca: ea4f 4613 mov.w r6, r3, lsr #16 80098ce: f84c 1b04 str.w r1, [ip], #4 80098d2: dcec bgt.n 80098ae <__multadd+0x12> 80098d4: b30e cbz r6, 800991a <__multadd+0x7e> 80098d6: 68a3 ldr r3, [r4, #8] 80098d8: 42ab cmp r3, r5 80098da: dc19 bgt.n 8009910 <__multadd+0x74> 80098dc: 6861 ldr r1, [r4, #4] 80098de: 4638 mov r0, r7 80098e0: 3101 adds r1, #1 80098e2: f7ff ff79 bl 80097d8 <_Balloc> 80098e6: 4680 mov r8, r0 80098e8: b928 cbnz r0, 80098f6 <__multadd+0x5a> 80098ea: 4602 mov r2, r0 80098ec: 21ba movs r1, #186 ; 0xba 80098ee: 4b0c ldr r3, [pc, #48] ; (8009920 <__multadd+0x84>) 80098f0: 480c ldr r0, [pc, #48] ; (8009924 <__multadd+0x88>) 80098f2: f000 fed9 bl 800a6a8 <__assert_func> 80098f6: 6922 ldr r2, [r4, #16] 80098f8: f104 010c add.w r1, r4, #12 80098fc: 3202 adds r2, #2 80098fe: 0092 lsls r2, r2, #2 8009900: 300c adds r0, #12 8009902: f000 fec3 bl 800a68c 8009906: 4621 mov r1, r4 8009908: 4638 mov r0, r7 800990a: f7ff ffa5 bl 8009858 <_Bfree> 800990e: 4644 mov r4, r8 8009910: eb04 0385 add.w r3, r4, r5, lsl #2 8009914: 3501 adds r5, #1 8009916: 615e str r6, [r3, #20] 8009918: 6125 str r5, [r4, #16] 800991a: 4620 mov r0, r4 800991c: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 8009920: 0800b4a0 .word 0x0800b4a0 8009924: 0800b4b1 .word 0x0800b4b1 08009928 <__hi0bits>: 8009928: 0c02 lsrs r2, r0, #16 800992a: 0412 lsls r2, r2, #16 800992c: 4603 mov r3, r0 800992e: b9ca cbnz r2, 8009964 <__hi0bits+0x3c> 8009930: 0403 lsls r3, r0, #16 8009932: 2010 movs r0, #16 8009934: f013 4f7f tst.w r3, #4278190080 ; 0xff000000 8009938: bf04 itt eq 800993a: 021b lsleq r3, r3, #8 800993c: 3008 addeq r0, #8 800993e: f013 4f70 tst.w r3, #4026531840 ; 0xf0000000 8009942: bf04 itt eq 8009944: 011b lsleq r3, r3, #4 8009946: 3004 addeq r0, #4 8009948: f013 4f40 tst.w r3, #3221225472 ; 0xc0000000 800994c: bf04 itt eq 800994e: 009b lsleq r3, r3, #2 8009950: 3002 addeq r0, #2 8009952: 2b00 cmp r3, #0 8009954: db05 blt.n 8009962 <__hi0bits+0x3a> 8009956: f013 4f80 tst.w r3, #1073741824 ; 0x40000000 800995a: f100 0001 add.w r0, r0, #1 800995e: bf08 it eq 8009960: 2020 moveq r0, #32 8009962: 4770 bx lr 8009964: 2000 movs r0, #0 8009966: e7e5 b.n 8009934 <__hi0bits+0xc> 08009968 <__lo0bits>: 8009968: 6803 ldr r3, [r0, #0] 800996a: 4602 mov r2, r0 800996c: f013 0007 ands.w r0, r3, #7 8009970: d00b beq.n 800998a <__lo0bits+0x22> 8009972: 07d9 lsls r1, r3, #31 8009974: d421 bmi.n 80099ba <__lo0bits+0x52> 8009976: 0798 lsls r0, r3, #30 8009978: bf49 itett mi 800997a: 085b lsrmi r3, r3, #1 800997c: 089b lsrpl r3, r3, #2 800997e: 2001 movmi r0, #1 8009980: 6013 strmi r3, [r2, #0] 8009982: bf5c itt pl 8009984: 2002 movpl r0, #2 8009986: 6013 strpl r3, [r2, #0] 8009988: 4770 bx lr 800998a: b299 uxth r1, r3 800998c: b909 cbnz r1, 8009992 <__lo0bits+0x2a> 800998e: 2010 movs r0, #16 8009990: 0c1b lsrs r3, r3, #16 8009992: b2d9 uxtb r1, r3 8009994: b909 cbnz r1, 800999a <__lo0bits+0x32> 8009996: 3008 adds r0, #8 8009998: 0a1b lsrs r3, r3, #8 800999a: 0719 lsls r1, r3, #28 800999c: bf04 itt eq 800999e: 091b lsreq r3, r3, #4 80099a0: 3004 addeq r0, #4 80099a2: 0799 lsls r1, r3, #30 80099a4: bf04 itt eq 80099a6: 089b lsreq r3, r3, #2 80099a8: 3002 addeq r0, #2 80099aa: 07d9 lsls r1, r3, #31 80099ac: d403 bmi.n 80099b6 <__lo0bits+0x4e> 80099ae: 085b lsrs r3, r3, #1 80099b0: f100 0001 add.w r0, r0, #1 80099b4: d003 beq.n 80099be <__lo0bits+0x56> 80099b6: 6013 str r3, [r2, #0] 80099b8: 4770 bx lr 80099ba: 2000 movs r0, #0 80099bc: 4770 bx lr 80099be: 2020 movs r0, #32 80099c0: 4770 bx lr ... 080099c4 <__i2b>: 80099c4: b510 push {r4, lr} 80099c6: 460c mov r4, r1 80099c8: 2101 movs r1, #1 80099ca: f7ff ff05 bl 80097d8 <_Balloc> 80099ce: 4602 mov r2, r0 80099d0: b928 cbnz r0, 80099de <__i2b+0x1a> 80099d2: f240 1145 movw r1, #325 ; 0x145 80099d6: 4b04 ldr r3, [pc, #16] ; (80099e8 <__i2b+0x24>) 80099d8: 4804 ldr r0, [pc, #16] ; (80099ec <__i2b+0x28>) 80099da: f000 fe65 bl 800a6a8 <__assert_func> 80099de: 2301 movs r3, #1 80099e0: 6144 str r4, [r0, #20] 80099e2: 6103 str r3, [r0, #16] 80099e4: bd10 pop {r4, pc} 80099e6: bf00 nop 80099e8: 0800b4a0 .word 0x0800b4a0 80099ec: 0800b4b1 .word 0x0800b4b1 080099f0 <__multiply>: 80099f0: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 80099f4: 4691 mov r9, r2 80099f6: 690a ldr r2, [r1, #16] 80099f8: f8d9 3010 ldr.w r3, [r9, #16] 80099fc: 460c mov r4, r1 80099fe: 429a cmp r2, r3 8009a00: bfbe ittt lt 8009a02: 460b movlt r3, r1 8009a04: 464c movlt r4, r9 8009a06: 4699 movlt r9, r3 8009a08: 6927 ldr r7, [r4, #16] 8009a0a: f8d9 a010 ldr.w sl, [r9, #16] 8009a0e: 68a3 ldr r3, [r4, #8] 8009a10: 6861 ldr r1, [r4, #4] 8009a12: eb07 060a add.w r6, r7, sl 8009a16: 42b3 cmp r3, r6 8009a18: b085 sub sp, #20 8009a1a: bfb8 it lt 8009a1c: 3101 addlt r1, #1 8009a1e: f7ff fedb bl 80097d8 <_Balloc> 8009a22: b930 cbnz r0, 8009a32 <__multiply+0x42> 8009a24: 4602 mov r2, r0 8009a26: f44f 71b1 mov.w r1, #354 ; 0x162 8009a2a: 4b43 ldr r3, [pc, #268] ; (8009b38 <__multiply+0x148>) 8009a2c: 4843 ldr r0, [pc, #268] ; (8009b3c <__multiply+0x14c>) 8009a2e: f000 fe3b bl 800a6a8 <__assert_func> 8009a32: f100 0514 add.w r5, r0, #20 8009a36: 462b mov r3, r5 8009a38: 2200 movs r2, #0 8009a3a: eb05 0886 add.w r8, r5, r6, lsl #2 8009a3e: 4543 cmp r3, r8 8009a40: d321 bcc.n 8009a86 <__multiply+0x96> 8009a42: f104 0314 add.w r3, r4, #20 8009a46: eb03 0787 add.w r7, r3, r7, lsl #2 8009a4a: f109 0314 add.w r3, r9, #20 8009a4e: eb03 028a add.w r2, r3, sl, lsl #2 8009a52: 9202 str r2, [sp, #8] 8009a54: 1b3a subs r2, r7, r4 8009a56: 3a15 subs r2, #21 8009a58: f022 0203 bic.w r2, r2, #3 8009a5c: 3204 adds r2, #4 8009a5e: f104 0115 add.w r1, r4, #21 8009a62: 428f cmp r7, r1 8009a64: bf38 it cc 8009a66: 2204 movcc r2, #4 8009a68: 9201 str r2, [sp, #4] 8009a6a: 9a02 ldr r2, [sp, #8] 8009a6c: 9303 str r3, [sp, #12] 8009a6e: 429a cmp r2, r3 8009a70: d80c bhi.n 8009a8c <__multiply+0x9c> 8009a72: 2e00 cmp r6, #0 8009a74: dd03 ble.n 8009a7e <__multiply+0x8e> 8009a76: f858 3d04 ldr.w r3, [r8, #-4]! 8009a7a: 2b00 cmp r3, #0 8009a7c: d05a beq.n 8009b34 <__multiply+0x144> 8009a7e: 6106 str r6, [r0, #16] 8009a80: b005 add sp, #20 8009a82: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 8009a86: f843 2b04 str.w r2, [r3], #4 8009a8a: e7d8 b.n 8009a3e <__multiply+0x4e> 8009a8c: f8b3 a000 ldrh.w sl, [r3] 8009a90: f1ba 0f00 cmp.w sl, #0 8009a94: d023 beq.n 8009ade <__multiply+0xee> 8009a96: 46a9 mov r9, r5 8009a98: f04f 0c00 mov.w ip, #0 8009a9c: f104 0e14 add.w lr, r4, #20 8009aa0: f85e 2b04 ldr.w r2, [lr], #4 8009aa4: f8d9 1000 ldr.w r1, [r9] 8009aa8: fa1f fb82 uxth.w fp, r2 8009aac: b289 uxth r1, r1 8009aae: fb0a 110b mla r1, sl, fp, r1 8009ab2: 4461 add r1, ip 8009ab4: f8d9 c000 ldr.w ip, [r9] 8009ab8: 0c12 lsrs r2, r2, #16 8009aba: ea4f 4c1c mov.w ip, ip, lsr #16 8009abe: fb0a c202 mla r2, sl, r2, ip 8009ac2: eb02 4211 add.w r2, r2, r1, lsr #16 8009ac6: b289 uxth r1, r1 8009ac8: ea41 4102 orr.w r1, r1, r2, lsl #16 8009acc: 4577 cmp r7, lr 8009ace: ea4f 4c12 mov.w ip, r2, lsr #16 8009ad2: f849 1b04 str.w r1, [r9], #4 8009ad6: d8e3 bhi.n 8009aa0 <__multiply+0xb0> 8009ad8: 9a01 ldr r2, [sp, #4] 8009ada: f845 c002 str.w ip, [r5, r2] 8009ade: 9a03 ldr r2, [sp, #12] 8009ae0: 3304 adds r3, #4 8009ae2: f8b2 9002 ldrh.w r9, [r2, #2] 8009ae6: f1b9 0f00 cmp.w r9, #0 8009aea: d021 beq.n 8009b30 <__multiply+0x140> 8009aec: 46ae mov lr, r5 8009aee: f04f 0a00 mov.w sl, #0 8009af2: 6829 ldr r1, [r5, #0] 8009af4: f104 0c14 add.w ip, r4, #20 8009af8: f8bc b000 ldrh.w fp, [ip] 8009afc: f8be 2002 ldrh.w r2, [lr, #2] 8009b00: b289 uxth r1, r1 8009b02: fb09 220b mla r2, r9, fp, r2 8009b06: 4452 add r2, sl 8009b08: ea41 4102 orr.w r1, r1, r2, lsl #16 8009b0c: f84e 1b04 str.w r1, [lr], #4 8009b10: f85c 1b04 ldr.w r1, [ip], #4 8009b14: ea4f 4a11 mov.w sl, r1, lsr #16 8009b18: f8be 1000 ldrh.w r1, [lr] 8009b1c: 4567 cmp r7, ip 8009b1e: fb09 110a mla r1, r9, sl, r1 8009b22: eb01 4112 add.w r1, r1, r2, lsr #16 8009b26: ea4f 4a11 mov.w sl, r1, lsr #16 8009b2a: d8e5 bhi.n 8009af8 <__multiply+0x108> 8009b2c: 9a01 ldr r2, [sp, #4] 8009b2e: 50a9 str r1, [r5, r2] 8009b30: 3504 adds r5, #4 8009b32: e79a b.n 8009a6a <__multiply+0x7a> 8009b34: 3e01 subs r6, #1 8009b36: e79c b.n 8009a72 <__multiply+0x82> 8009b38: 0800b4a0 .word 0x0800b4a0 8009b3c: 0800b4b1 .word 0x0800b4b1 08009b40 <__pow5mult>: 8009b40: e92d 43f8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr} 8009b44: 4615 mov r5, r2 8009b46: f012 0203 ands.w r2, r2, #3 8009b4a: 4606 mov r6, r0 8009b4c: 460f mov r7, r1 8009b4e: d007 beq.n 8009b60 <__pow5mult+0x20> 8009b50: 4c25 ldr r4, [pc, #148] ; (8009be8 <__pow5mult+0xa8>) 8009b52: 3a01 subs r2, #1 8009b54: 2300 movs r3, #0 8009b56: f854 2022 ldr.w r2, [r4, r2, lsl #2] 8009b5a: f7ff fe9f bl 800989c <__multadd> 8009b5e: 4607 mov r7, r0 8009b60: 10ad asrs r5, r5, #2 8009b62: d03d beq.n 8009be0 <__pow5mult+0xa0> 8009b64: 69f4 ldr r4, [r6, #28] 8009b66: b97c cbnz r4, 8009b88 <__pow5mult+0x48> 8009b68: 2010 movs r0, #16 8009b6a: f7fe f80d bl 8007b88 8009b6e: 4602 mov r2, r0 8009b70: 61f0 str r0, [r6, #28] 8009b72: b928 cbnz r0, 8009b80 <__pow5mult+0x40> 8009b74: f240 11b3 movw r1, #435 ; 0x1b3 8009b78: 4b1c ldr r3, [pc, #112] ; (8009bec <__pow5mult+0xac>) 8009b7a: 481d ldr r0, [pc, #116] ; (8009bf0 <__pow5mult+0xb0>) 8009b7c: f000 fd94 bl 800a6a8 <__assert_func> 8009b80: e9c0 4401 strd r4, r4, [r0, #4] 8009b84: 6004 str r4, [r0, #0] 8009b86: 60c4 str r4, [r0, #12] 8009b88: f8d6 801c ldr.w r8, [r6, #28] 8009b8c: f8d8 4008 ldr.w r4, [r8, #8] 8009b90: b94c cbnz r4, 8009ba6 <__pow5mult+0x66> 8009b92: f240 2171 movw r1, #625 ; 0x271 8009b96: 4630 mov r0, r6 8009b98: f7ff ff14 bl 80099c4 <__i2b> 8009b9c: 2300 movs r3, #0 8009b9e: 4604 mov r4, r0 8009ba0: f8c8 0008 str.w r0, [r8, #8] 8009ba4: 6003 str r3, [r0, #0] 8009ba6: f04f 0900 mov.w r9, #0 8009baa: 07eb lsls r3, r5, #31 8009bac: d50a bpl.n 8009bc4 <__pow5mult+0x84> 8009bae: 4639 mov r1, r7 8009bb0: 4622 mov r2, r4 8009bb2: 4630 mov r0, r6 8009bb4: f7ff ff1c bl 80099f0 <__multiply> 8009bb8: 4680 mov r8, r0 8009bba: 4639 mov r1, r7 8009bbc: 4630 mov r0, r6 8009bbe: f7ff fe4b bl 8009858 <_Bfree> 8009bc2: 4647 mov r7, r8 8009bc4: 106d asrs r5, r5, #1 8009bc6: d00b beq.n 8009be0 <__pow5mult+0xa0> 8009bc8: 6820 ldr r0, [r4, #0] 8009bca: b938 cbnz r0, 8009bdc <__pow5mult+0x9c> 8009bcc: 4622 mov r2, r4 8009bce: 4621 mov r1, r4 8009bd0: 4630 mov r0, r6 8009bd2: f7ff ff0d bl 80099f0 <__multiply> 8009bd6: 6020 str r0, [r4, #0] 8009bd8: f8c0 9000 str.w r9, [r0] 8009bdc: 4604 mov r4, r0 8009bde: e7e4 b.n 8009baa <__pow5mult+0x6a> 8009be0: 4638 mov r0, r7 8009be2: e8bd 83f8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, pc} 8009be6: bf00 nop 8009be8: 0800b600 .word 0x0800b600 8009bec: 0800b431 .word 0x0800b431 8009bf0: 0800b4b1 .word 0x0800b4b1 08009bf4 <__lshift>: 8009bf4: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 8009bf8: 460c mov r4, r1 8009bfa: 4607 mov r7, r0 8009bfc: 4691 mov r9, r2 8009bfe: 6923 ldr r3, [r4, #16] 8009c00: 6849 ldr r1, [r1, #4] 8009c02: eb03 1862 add.w r8, r3, r2, asr #5 8009c06: 68a3 ldr r3, [r4, #8] 8009c08: ea4f 1a62 mov.w sl, r2, asr #5 8009c0c: f108 0601 add.w r6, r8, #1 8009c10: 42b3 cmp r3, r6 8009c12: db0b blt.n 8009c2c <__lshift+0x38> 8009c14: 4638 mov r0, r7 8009c16: f7ff fddf bl 80097d8 <_Balloc> 8009c1a: 4605 mov r5, r0 8009c1c: b948 cbnz r0, 8009c32 <__lshift+0x3e> 8009c1e: 4602 mov r2, r0 8009c20: f44f 71ef mov.w r1, #478 ; 0x1de 8009c24: 4b27 ldr r3, [pc, #156] ; (8009cc4 <__lshift+0xd0>) 8009c26: 4828 ldr r0, [pc, #160] ; (8009cc8 <__lshift+0xd4>) 8009c28: f000 fd3e bl 800a6a8 <__assert_func> 8009c2c: 3101 adds r1, #1 8009c2e: 005b lsls r3, r3, #1 8009c30: e7ee b.n 8009c10 <__lshift+0x1c> 8009c32: 2300 movs r3, #0 8009c34: f100 0114 add.w r1, r0, #20 8009c38: f100 0210 add.w r2, r0, #16 8009c3c: 4618 mov r0, r3 8009c3e: 4553 cmp r3, sl 8009c40: db33 blt.n 8009caa <__lshift+0xb6> 8009c42: 6920 ldr r0, [r4, #16] 8009c44: ea2a 7aea bic.w sl, sl, sl, asr #31 8009c48: f104 0314 add.w r3, r4, #20 8009c4c: f019 091f ands.w r9, r9, #31 8009c50: eb01 018a add.w r1, r1, sl, lsl #2 8009c54: eb03 0c80 add.w ip, r3, r0, lsl #2 8009c58: d02b beq.n 8009cb2 <__lshift+0xbe> 8009c5a: 468a mov sl, r1 8009c5c: 2200 movs r2, #0 8009c5e: f1c9 0e20 rsb lr, r9, #32 8009c62: 6818 ldr r0, [r3, #0] 8009c64: fa00 f009 lsl.w r0, r0, r9 8009c68: 4310 orrs r0, r2 8009c6a: f84a 0b04 str.w r0, [sl], #4 8009c6e: f853 2b04 ldr.w r2, [r3], #4 8009c72: 459c cmp ip, r3 8009c74: fa22 f20e lsr.w r2, r2, lr 8009c78: d8f3 bhi.n 8009c62 <__lshift+0x6e> 8009c7a: ebac 0304 sub.w r3, ip, r4 8009c7e: 3b15 subs r3, #21 8009c80: f023 0303 bic.w r3, r3, #3 8009c84: 3304 adds r3, #4 8009c86: f104 0015 add.w r0, r4, #21 8009c8a: 4584 cmp ip, r0 8009c8c: bf38 it cc 8009c8e: 2304 movcc r3, #4 8009c90: 50ca str r2, [r1, r3] 8009c92: b10a cbz r2, 8009c98 <__lshift+0xa4> 8009c94: f108 0602 add.w r6, r8, #2 8009c98: 3e01 subs r6, #1 8009c9a: 4638 mov r0, r7 8009c9c: 4621 mov r1, r4 8009c9e: 612e str r6, [r5, #16] 8009ca0: f7ff fdda bl 8009858 <_Bfree> 8009ca4: 4628 mov r0, r5 8009ca6: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 8009caa: f842 0f04 str.w r0, [r2, #4]! 8009cae: 3301 adds r3, #1 8009cb0: e7c5 b.n 8009c3e <__lshift+0x4a> 8009cb2: 3904 subs r1, #4 8009cb4: f853 2b04 ldr.w r2, [r3], #4 8009cb8: 459c cmp ip, r3 8009cba: f841 2f04 str.w r2, [r1, #4]! 8009cbe: d8f9 bhi.n 8009cb4 <__lshift+0xc0> 8009cc0: e7ea b.n 8009c98 <__lshift+0xa4> 8009cc2: bf00 nop 8009cc4: 0800b4a0 .word 0x0800b4a0 8009cc8: 0800b4b1 .word 0x0800b4b1 08009ccc <__mcmp>: 8009ccc: 4603 mov r3, r0 8009cce: 690a ldr r2, [r1, #16] 8009cd0: 6900 ldr r0, [r0, #16] 8009cd2: b530 push {r4, r5, lr} 8009cd4: 1a80 subs r0, r0, r2 8009cd6: d10d bne.n 8009cf4 <__mcmp+0x28> 8009cd8: 3314 adds r3, #20 8009cda: 3114 adds r1, #20 8009cdc: eb03 0482 add.w r4, r3, r2, lsl #2 8009ce0: eb01 0182 add.w r1, r1, r2, lsl #2 8009ce4: f854 5d04 ldr.w r5, [r4, #-4]! 8009ce8: f851 2d04 ldr.w r2, [r1, #-4]! 8009cec: 4295 cmp r5, r2 8009cee: d002 beq.n 8009cf6 <__mcmp+0x2a> 8009cf0: d304 bcc.n 8009cfc <__mcmp+0x30> 8009cf2: 2001 movs r0, #1 8009cf4: bd30 pop {r4, r5, pc} 8009cf6: 42a3 cmp r3, r4 8009cf8: d3f4 bcc.n 8009ce4 <__mcmp+0x18> 8009cfa: e7fb b.n 8009cf4 <__mcmp+0x28> 8009cfc: f04f 30ff mov.w r0, #4294967295 8009d00: e7f8 b.n 8009cf4 <__mcmp+0x28> ... 08009d04 <__mdiff>: 8009d04: e92d 4ff8 stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, lr} 8009d08: 460d mov r5, r1 8009d0a: 4607 mov r7, r0 8009d0c: 4611 mov r1, r2 8009d0e: 4628 mov r0, r5 8009d10: 4614 mov r4, r2 8009d12: f7ff ffdb bl 8009ccc <__mcmp> 8009d16: 1e06 subs r6, r0, #0 8009d18: d111 bne.n 8009d3e <__mdiff+0x3a> 8009d1a: 4631 mov r1, r6 8009d1c: 4638 mov r0, r7 8009d1e: f7ff fd5b bl 80097d8 <_Balloc> 8009d22: 4602 mov r2, r0 8009d24: b928 cbnz r0, 8009d32 <__mdiff+0x2e> 8009d26: f240 2137 movw r1, #567 ; 0x237 8009d2a: 4b3a ldr r3, [pc, #232] ; (8009e14 <__mdiff+0x110>) 8009d2c: 483a ldr r0, [pc, #232] ; (8009e18 <__mdiff+0x114>) 8009d2e: f000 fcbb bl 800a6a8 <__assert_func> 8009d32: 2301 movs r3, #1 8009d34: e9c0 3604 strd r3, r6, [r0, #16] 8009d38: 4610 mov r0, r2 8009d3a: e8bd 8ff8 ldmia.w sp!, {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} 8009d3e: bfa4 itt ge 8009d40: 4623 movge r3, r4 8009d42: 462c movge r4, r5 8009d44: 4638 mov r0, r7 8009d46: 6861 ldr r1, [r4, #4] 8009d48: bfa6 itte ge 8009d4a: 461d movge r5, r3 8009d4c: 2600 movge r6, #0 8009d4e: 2601 movlt r6, #1 8009d50: f7ff fd42 bl 80097d8 <_Balloc> 8009d54: 4602 mov r2, r0 8009d56: b918 cbnz r0, 8009d60 <__mdiff+0x5c> 8009d58: f240 2145 movw r1, #581 ; 0x245 8009d5c: 4b2d ldr r3, [pc, #180] ; (8009e14 <__mdiff+0x110>) 8009d5e: e7e5 b.n 8009d2c <__mdiff+0x28> 8009d60: f102 0814 add.w r8, r2, #20 8009d64: 46c2 mov sl, r8 8009d66: f04f 0c00 mov.w ip, #0 8009d6a: 6927 ldr r7, [r4, #16] 8009d6c: 60c6 str r6, [r0, #12] 8009d6e: 692e ldr r6, [r5, #16] 8009d70: f104 0014 add.w r0, r4, #20 8009d74: f105 0914 add.w r9, r5, #20 8009d78: eb00 0e87 add.w lr, r0, r7, lsl #2 8009d7c: eb09 0686 add.w r6, r9, r6, lsl #2 8009d80: 3410 adds r4, #16 8009d82: f854 bf04 ldr.w fp, [r4, #4]! 8009d86: f859 3b04 ldr.w r3, [r9], #4 8009d8a: fa1f f18b uxth.w r1, fp 8009d8e: 4461 add r1, ip 8009d90: fa1f fc83 uxth.w ip, r3 8009d94: 0c1b lsrs r3, r3, #16 8009d96: eba1 010c sub.w r1, r1, ip 8009d9a: ebc3 431b rsb r3, r3, fp, lsr #16 8009d9e: eb03 4321 add.w r3, r3, r1, asr #16 8009da2: b289 uxth r1, r1 8009da4: ea41 4103 orr.w r1, r1, r3, lsl #16 8009da8: 454e cmp r6, r9 8009daa: ea4f 4c23 mov.w ip, r3, asr #16 8009dae: f84a 1b04 str.w r1, [sl], #4 8009db2: d8e6 bhi.n 8009d82 <__mdiff+0x7e> 8009db4: 1b73 subs r3, r6, r5 8009db6: 3b15 subs r3, #21 8009db8: f023 0303 bic.w r3, r3, #3 8009dbc: 3515 adds r5, #21 8009dbe: 3304 adds r3, #4 8009dc0: 42ae cmp r6, r5 8009dc2: bf38 it cc 8009dc4: 2304 movcc r3, #4 8009dc6: 4418 add r0, r3 8009dc8: 4443 add r3, r8 8009dca: 461e mov r6, r3 8009dcc: 4605 mov r5, r0 8009dce: 4575 cmp r5, lr 8009dd0: d30e bcc.n 8009df0 <__mdiff+0xec> 8009dd2: f10e 0103 add.w r1, lr, #3 8009dd6: 1a09 subs r1, r1, r0 8009dd8: f021 0103 bic.w r1, r1, #3 8009ddc: 3803 subs r0, #3 8009dde: 4586 cmp lr, r0 8009de0: bf38 it cc 8009de2: 2100 movcc r1, #0 8009de4: 440b add r3, r1 8009de6: f853 1d04 ldr.w r1, [r3, #-4]! 8009dea: b189 cbz r1, 8009e10 <__mdiff+0x10c> 8009dec: 6117 str r7, [r2, #16] 8009dee: e7a3 b.n 8009d38 <__mdiff+0x34> 8009df0: f855 8b04 ldr.w r8, [r5], #4 8009df4: fa1f f188 uxth.w r1, r8 8009df8: 4461 add r1, ip 8009dfa: 140c asrs r4, r1, #16 8009dfc: eb04 4418 add.w r4, r4, r8, lsr #16 8009e00: b289 uxth r1, r1 8009e02: ea41 4104 orr.w r1, r1, r4, lsl #16 8009e06: ea4f 4c24 mov.w ip, r4, asr #16 8009e0a: f846 1b04 str.w r1, [r6], #4 8009e0e: e7de b.n 8009dce <__mdiff+0xca> 8009e10: 3f01 subs r7, #1 8009e12: e7e8 b.n 8009de6 <__mdiff+0xe2> 8009e14: 0800b4a0 .word 0x0800b4a0 8009e18: 0800b4b1 .word 0x0800b4b1 08009e1c <__d2b>: 8009e1c: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} 8009e1e: 2101 movs r1, #1 8009e20: 4617 mov r7, r2 8009e22: 461c mov r4, r3 8009e24: 9e08 ldr r6, [sp, #32] 8009e26: f7ff fcd7 bl 80097d8 <_Balloc> 8009e2a: 4605 mov r5, r0 8009e2c: b930 cbnz r0, 8009e3c <__d2b+0x20> 8009e2e: 4602 mov r2, r0 8009e30: f240 310f movw r1, #783 ; 0x30f 8009e34: 4b22 ldr r3, [pc, #136] ; (8009ec0 <__d2b+0xa4>) 8009e36: 4823 ldr r0, [pc, #140] ; (8009ec4 <__d2b+0xa8>) 8009e38: f000 fc36 bl 800a6a8 <__assert_func> 8009e3c: f3c4 0313 ubfx r3, r4, #0, #20 8009e40: f3c4 540a ubfx r4, r4, #20, #11 8009e44: bb24 cbnz r4, 8009e90 <__d2b+0x74> 8009e46: 2f00 cmp r7, #0 8009e48: 9301 str r3, [sp, #4] 8009e4a: d026 beq.n 8009e9a <__d2b+0x7e> 8009e4c: 4668 mov r0, sp 8009e4e: 9700 str r7, [sp, #0] 8009e50: f7ff fd8a bl 8009968 <__lo0bits> 8009e54: e9dd 1200 ldrd r1, r2, [sp] 8009e58: b1e8 cbz r0, 8009e96 <__d2b+0x7a> 8009e5a: f1c0 0320 rsb r3, r0, #32 8009e5e: fa02 f303 lsl.w r3, r2, r3 8009e62: 430b orrs r3, r1 8009e64: 40c2 lsrs r2, r0 8009e66: 616b str r3, [r5, #20] 8009e68: 9201 str r2, [sp, #4] 8009e6a: 9b01 ldr r3, [sp, #4] 8009e6c: 2b00 cmp r3, #0 8009e6e: bf14 ite ne 8009e70: 2102 movne r1, #2 8009e72: 2101 moveq r1, #1 8009e74: 61ab str r3, [r5, #24] 8009e76: 6129 str r1, [r5, #16] 8009e78: b1bc cbz r4, 8009eaa <__d2b+0x8e> 8009e7a: f2a4 4433 subw r4, r4, #1075 ; 0x433 8009e7e: 4404 add r4, r0 8009e80: 6034 str r4, [r6, #0] 8009e82: f1c0 0035 rsb r0, r0, #53 ; 0x35 8009e86: 9b09 ldr r3, [sp, #36] ; 0x24 8009e88: 6018 str r0, [r3, #0] 8009e8a: 4628 mov r0, r5 8009e8c: b003 add sp, #12 8009e8e: bdf0 pop {r4, r5, r6, r7, pc} 8009e90: f443 1380 orr.w r3, r3, #1048576 ; 0x100000 8009e94: e7d7 b.n 8009e46 <__d2b+0x2a> 8009e96: 6169 str r1, [r5, #20] 8009e98: e7e7 b.n 8009e6a <__d2b+0x4e> 8009e9a: a801 add r0, sp, #4 8009e9c: f7ff fd64 bl 8009968 <__lo0bits> 8009ea0: 9b01 ldr r3, [sp, #4] 8009ea2: 2101 movs r1, #1 8009ea4: 616b str r3, [r5, #20] 8009ea6: 3020 adds r0, #32 8009ea8: e7e5 b.n 8009e76 <__d2b+0x5a> 8009eaa: f2a0 4032 subw r0, r0, #1074 ; 0x432 8009eae: eb05 0381 add.w r3, r5, r1, lsl #2 8009eb2: 6030 str r0, [r6, #0] 8009eb4: 6918 ldr r0, [r3, #16] 8009eb6: f7ff fd37 bl 8009928 <__hi0bits> 8009eba: ebc0 1041 rsb r0, r0, r1, lsl #5 8009ebe: e7e2 b.n 8009e86 <__d2b+0x6a> 8009ec0: 0800b4a0 .word 0x0800b4a0 8009ec4: 0800b4b1 .word 0x0800b4b1 08009ec8 <__ssputs_r>: 8009ec8: e92d 47f0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, lr} 8009ecc: 461f mov r7, r3 8009ece: 688e ldr r6, [r1, #8] 8009ed0: 4682 mov sl, r0 8009ed2: 42be cmp r6, r7 8009ed4: 460c mov r4, r1 8009ed6: 4690 mov r8, r2 8009ed8: 680b ldr r3, [r1, #0] 8009eda: d82c bhi.n 8009f36 <__ssputs_r+0x6e> 8009edc: 898a ldrh r2, [r1, #12] 8009ede: f412 6f90 tst.w r2, #1152 ; 0x480 8009ee2: d026 beq.n 8009f32 <__ssputs_r+0x6a> 8009ee4: 6965 ldr r5, [r4, #20] 8009ee6: 6909 ldr r1, [r1, #16] 8009ee8: eb05 0545 add.w r5, r5, r5, lsl #1 8009eec: eba3 0901 sub.w r9, r3, r1 8009ef0: eb05 75d5 add.w r5, r5, r5, lsr #31 8009ef4: 1c7b adds r3, r7, #1 8009ef6: 444b add r3, r9 8009ef8: 106d asrs r5, r5, #1 8009efa: 429d cmp r5, r3 8009efc: bf38 it cc 8009efe: 461d movcc r5, r3 8009f00: 0553 lsls r3, r2, #21 8009f02: d527 bpl.n 8009f54 <__ssputs_r+0x8c> 8009f04: 4629 mov r1, r5 8009f06: f7fd fe6f bl 8007be8 <_malloc_r> 8009f0a: 4606 mov r6, r0 8009f0c: b360 cbz r0, 8009f68 <__ssputs_r+0xa0> 8009f0e: 464a mov r2, r9 8009f10: 6921 ldr r1, [r4, #16] 8009f12: f000 fbbb bl 800a68c 8009f16: 89a3 ldrh r3, [r4, #12] 8009f18: f423 6390 bic.w r3, r3, #1152 ; 0x480 8009f1c: f043 0380 orr.w r3, r3, #128 ; 0x80 8009f20: 81a3 strh r3, [r4, #12] 8009f22: 6126 str r6, [r4, #16] 8009f24: 444e add r6, r9 8009f26: 6026 str r6, [r4, #0] 8009f28: 463e mov r6, r7 8009f2a: 6165 str r5, [r4, #20] 8009f2c: eba5 0509 sub.w r5, r5, r9 8009f30: 60a5 str r5, [r4, #8] 8009f32: 42be cmp r6, r7 8009f34: d900 bls.n 8009f38 <__ssputs_r+0x70> 8009f36: 463e mov r6, r7 8009f38: 4632 mov r2, r6 8009f3a: 4641 mov r1, r8 8009f3c: 6820 ldr r0, [r4, #0] 8009f3e: f000 fb68 bl 800a612 8009f42: 2000 movs r0, #0 8009f44: 68a3 ldr r3, [r4, #8] 8009f46: 1b9b subs r3, r3, r6 8009f48: 60a3 str r3, [r4, #8] 8009f4a: 6823 ldr r3, [r4, #0] 8009f4c: 4433 add r3, r6 8009f4e: 6023 str r3, [r4, #0] 8009f50: e8bd 87f0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, pc} 8009f54: 462a mov r2, r5 8009f56: f000 fbeb bl 800a730 <_realloc_r> 8009f5a: 4606 mov r6, r0 8009f5c: 2800 cmp r0, #0 8009f5e: d1e0 bne.n 8009f22 <__ssputs_r+0x5a> 8009f60: 4650 mov r0, sl 8009f62: 6921 ldr r1, [r4, #16] 8009f64: f7ff fbf0 bl 8009748 <_free_r> 8009f68: 230c movs r3, #12 8009f6a: f8ca 3000 str.w r3, [sl] 8009f6e: 89a3 ldrh r3, [r4, #12] 8009f70: f04f 30ff mov.w r0, #4294967295 8009f74: f043 0340 orr.w r3, r3, #64 ; 0x40 8009f78: 81a3 strh r3, [r4, #12] 8009f7a: e7e9 b.n 8009f50 <__ssputs_r+0x88> 08009f7c <_svfiprintf_r>: 8009f7c: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 8009f80: 4698 mov r8, r3 8009f82: 898b ldrh r3, [r1, #12] 8009f84: 4607 mov r7, r0 8009f86: 061b lsls r3, r3, #24 8009f88: 460d mov r5, r1 8009f8a: 4614 mov r4, r2 8009f8c: b09d sub sp, #116 ; 0x74 8009f8e: d50e bpl.n 8009fae <_svfiprintf_r+0x32> 8009f90: 690b ldr r3, [r1, #16] 8009f92: b963 cbnz r3, 8009fae <_svfiprintf_r+0x32> 8009f94: 2140 movs r1, #64 ; 0x40 8009f96: f7fd fe27 bl 8007be8 <_malloc_r> 8009f9a: 6028 str r0, [r5, #0] 8009f9c: 6128 str r0, [r5, #16] 8009f9e: b920 cbnz r0, 8009faa <_svfiprintf_r+0x2e> 8009fa0: 230c movs r3, #12 8009fa2: 603b str r3, [r7, #0] 8009fa4: f04f 30ff mov.w r0, #4294967295 8009fa8: e0d0 b.n 800a14c <_svfiprintf_r+0x1d0> 8009faa: 2340 movs r3, #64 ; 0x40 8009fac: 616b str r3, [r5, #20] 8009fae: 2300 movs r3, #0 8009fb0: 9309 str r3, [sp, #36] ; 0x24 8009fb2: 2320 movs r3, #32 8009fb4: f88d 3029 strb.w r3, [sp, #41] ; 0x29 8009fb8: 2330 movs r3, #48 ; 0x30 8009fba: f04f 0901 mov.w r9, #1 8009fbe: f8cd 800c str.w r8, [sp, #12] 8009fc2: f8df 81a0 ldr.w r8, [pc, #416] ; 800a164 <_svfiprintf_r+0x1e8> 8009fc6: f88d 302a strb.w r3, [sp, #42] ; 0x2a 8009fca: 4623 mov r3, r4 8009fcc: 469a mov sl, r3 8009fce: f813 2b01 ldrb.w r2, [r3], #1 8009fd2: b10a cbz r2, 8009fd8 <_svfiprintf_r+0x5c> 8009fd4: 2a25 cmp r2, #37 ; 0x25 8009fd6: d1f9 bne.n 8009fcc <_svfiprintf_r+0x50> 8009fd8: ebba 0b04 subs.w fp, sl, r4 8009fdc: d00b beq.n 8009ff6 <_svfiprintf_r+0x7a> 8009fde: 465b mov r3, fp 8009fe0: 4622 mov r2, r4 8009fe2: 4629 mov r1, r5 8009fe4: 4638 mov r0, r7 8009fe6: f7ff ff6f bl 8009ec8 <__ssputs_r> 8009fea: 3001 adds r0, #1 8009fec: f000 80a9 beq.w 800a142 <_svfiprintf_r+0x1c6> 8009ff0: 9a09 ldr r2, [sp, #36] ; 0x24 8009ff2: 445a add r2, fp 8009ff4: 9209 str r2, [sp, #36] ; 0x24 8009ff6: f89a 3000 ldrb.w r3, [sl] 8009ffa: 2b00 cmp r3, #0 8009ffc: f000 80a1 beq.w 800a142 <_svfiprintf_r+0x1c6> 800a000: 2300 movs r3, #0 800a002: f04f 32ff mov.w r2, #4294967295 800a006: e9cd 2305 strd r2, r3, [sp, #20] 800a00a: f10a 0a01 add.w sl, sl, #1 800a00e: 9304 str r3, [sp, #16] 800a010: 9307 str r3, [sp, #28] 800a012: f88d 3053 strb.w r3, [sp, #83] ; 0x53 800a016: 931a str r3, [sp, #104] ; 0x68 800a018: 4654 mov r4, sl 800a01a: 2205 movs r2, #5 800a01c: f814 1b01 ldrb.w r1, [r4], #1 800a020: 4850 ldr r0, [pc, #320] ; (800a164 <_svfiprintf_r+0x1e8>) 800a022: f7fe fd14 bl 8008a4e 800a026: 9a04 ldr r2, [sp, #16] 800a028: b9d8 cbnz r0, 800a062 <_svfiprintf_r+0xe6> 800a02a: 06d0 lsls r0, r2, #27 800a02c: bf44 itt mi 800a02e: 2320 movmi r3, #32 800a030: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 800a034: 0711 lsls r1, r2, #28 800a036: bf44 itt mi 800a038: 232b movmi r3, #43 ; 0x2b 800a03a: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 800a03e: f89a 3000 ldrb.w r3, [sl] 800a042: 2b2a cmp r3, #42 ; 0x2a 800a044: d015 beq.n 800a072 <_svfiprintf_r+0xf6> 800a046: 4654 mov r4, sl 800a048: 2000 movs r0, #0 800a04a: f04f 0c0a mov.w ip, #10 800a04e: 9a07 ldr r2, [sp, #28] 800a050: 4621 mov r1, r4 800a052: f811 3b01 ldrb.w r3, [r1], #1 800a056: 3b30 subs r3, #48 ; 0x30 800a058: 2b09 cmp r3, #9 800a05a: d94d bls.n 800a0f8 <_svfiprintf_r+0x17c> 800a05c: b1b0 cbz r0, 800a08c <_svfiprintf_r+0x110> 800a05e: 9207 str r2, [sp, #28] 800a060: e014 b.n 800a08c <_svfiprintf_r+0x110> 800a062: eba0 0308 sub.w r3, r0, r8 800a066: fa09 f303 lsl.w r3, r9, r3 800a06a: 4313 orrs r3, r2 800a06c: 46a2 mov sl, r4 800a06e: 9304 str r3, [sp, #16] 800a070: e7d2 b.n 800a018 <_svfiprintf_r+0x9c> 800a072: 9b03 ldr r3, [sp, #12] 800a074: 1d19 adds r1, r3, #4 800a076: 681b ldr r3, [r3, #0] 800a078: 9103 str r1, [sp, #12] 800a07a: 2b00 cmp r3, #0 800a07c: bfbb ittet lt 800a07e: 425b neglt r3, r3 800a080: f042 0202 orrlt.w r2, r2, #2 800a084: 9307 strge r3, [sp, #28] 800a086: 9307 strlt r3, [sp, #28] 800a088: bfb8 it lt 800a08a: 9204 strlt r2, [sp, #16] 800a08c: 7823 ldrb r3, [r4, #0] 800a08e: 2b2e cmp r3, #46 ; 0x2e 800a090: d10c bne.n 800a0ac <_svfiprintf_r+0x130> 800a092: 7863 ldrb r3, [r4, #1] 800a094: 2b2a cmp r3, #42 ; 0x2a 800a096: d134 bne.n 800a102 <_svfiprintf_r+0x186> 800a098: 9b03 ldr r3, [sp, #12] 800a09a: 3402 adds r4, #2 800a09c: 1d1a adds r2, r3, #4 800a09e: 681b ldr r3, [r3, #0] 800a0a0: 9203 str r2, [sp, #12] 800a0a2: 2b00 cmp r3, #0 800a0a4: bfb8 it lt 800a0a6: f04f 33ff movlt.w r3, #4294967295 800a0aa: 9305 str r3, [sp, #20] 800a0ac: f8df a0b8 ldr.w sl, [pc, #184] ; 800a168 <_svfiprintf_r+0x1ec> 800a0b0: 2203 movs r2, #3 800a0b2: 4650 mov r0, sl 800a0b4: 7821 ldrb r1, [r4, #0] 800a0b6: f7fe fcca bl 8008a4e 800a0ba: b138 cbz r0, 800a0cc <_svfiprintf_r+0x150> 800a0bc: 2240 movs r2, #64 ; 0x40 800a0be: 9b04 ldr r3, [sp, #16] 800a0c0: eba0 000a sub.w r0, r0, sl 800a0c4: 4082 lsls r2, r0 800a0c6: 4313 orrs r3, r2 800a0c8: 3401 adds r4, #1 800a0ca: 9304 str r3, [sp, #16] 800a0cc: f814 1b01 ldrb.w r1, [r4], #1 800a0d0: 2206 movs r2, #6 800a0d2: 4826 ldr r0, [pc, #152] ; (800a16c <_svfiprintf_r+0x1f0>) 800a0d4: f88d 1028 strb.w r1, [sp, #40] ; 0x28 800a0d8: f7fe fcb9 bl 8008a4e 800a0dc: 2800 cmp r0, #0 800a0de: d038 beq.n 800a152 <_svfiprintf_r+0x1d6> 800a0e0: 4b23 ldr r3, [pc, #140] ; (800a170 <_svfiprintf_r+0x1f4>) 800a0e2: bb1b cbnz r3, 800a12c <_svfiprintf_r+0x1b0> 800a0e4: 9b03 ldr r3, [sp, #12] 800a0e6: 3307 adds r3, #7 800a0e8: f023 0307 bic.w r3, r3, #7 800a0ec: 3308 adds r3, #8 800a0ee: 9303 str r3, [sp, #12] 800a0f0: 9b09 ldr r3, [sp, #36] ; 0x24 800a0f2: 4433 add r3, r6 800a0f4: 9309 str r3, [sp, #36] ; 0x24 800a0f6: e768 b.n 8009fca <_svfiprintf_r+0x4e> 800a0f8: 460c mov r4, r1 800a0fa: 2001 movs r0, #1 800a0fc: fb0c 3202 mla r2, ip, r2, r3 800a100: e7a6 b.n 800a050 <_svfiprintf_r+0xd4> 800a102: 2300 movs r3, #0 800a104: f04f 0c0a mov.w ip, #10 800a108: 4619 mov r1, r3 800a10a: 3401 adds r4, #1 800a10c: 9305 str r3, [sp, #20] 800a10e: 4620 mov r0, r4 800a110: f810 2b01 ldrb.w r2, [r0], #1 800a114: 3a30 subs r2, #48 ; 0x30 800a116: 2a09 cmp r2, #9 800a118: d903 bls.n 800a122 <_svfiprintf_r+0x1a6> 800a11a: 2b00 cmp r3, #0 800a11c: d0c6 beq.n 800a0ac <_svfiprintf_r+0x130> 800a11e: 9105 str r1, [sp, #20] 800a120: e7c4 b.n 800a0ac <_svfiprintf_r+0x130> 800a122: 4604 mov r4, r0 800a124: 2301 movs r3, #1 800a126: fb0c 2101 mla r1, ip, r1, r2 800a12a: e7f0 b.n 800a10e <_svfiprintf_r+0x192> 800a12c: ab03 add r3, sp, #12 800a12e: 9300 str r3, [sp, #0] 800a130: 462a mov r2, r5 800a132: 4638 mov r0, r7 800a134: 4b0f ldr r3, [pc, #60] ; (800a174 <_svfiprintf_r+0x1f8>) 800a136: a904 add r1, sp, #16 800a138: f7fd fe7e bl 8007e38 <_printf_float> 800a13c: 1c42 adds r2, r0, #1 800a13e: 4606 mov r6, r0 800a140: d1d6 bne.n 800a0f0 <_svfiprintf_r+0x174> 800a142: 89ab ldrh r3, [r5, #12] 800a144: 065b lsls r3, r3, #25 800a146: f53f af2d bmi.w 8009fa4 <_svfiprintf_r+0x28> 800a14a: 9809 ldr r0, [sp, #36] ; 0x24 800a14c: b01d add sp, #116 ; 0x74 800a14e: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 800a152: ab03 add r3, sp, #12 800a154: 9300 str r3, [sp, #0] 800a156: 462a mov r2, r5 800a158: 4638 mov r0, r7 800a15a: 4b06 ldr r3, [pc, #24] ; (800a174 <_svfiprintf_r+0x1f8>) 800a15c: a904 add r1, sp, #16 800a15e: f7fe f90b bl 8008378 <_printf_i> 800a162: e7eb b.n 800a13c <_svfiprintf_r+0x1c0> 800a164: 0800b60c .word 0x0800b60c 800a168: 0800b612 .word 0x0800b612 800a16c: 0800b616 .word 0x0800b616 800a170: 08007e39 .word 0x08007e39 800a174: 08009ec9 .word 0x08009ec9 0800a178 <__sfputc_r>: 800a178: 6893 ldr r3, [r2, #8] 800a17a: b410 push {r4} 800a17c: 3b01 subs r3, #1 800a17e: 2b00 cmp r3, #0 800a180: 6093 str r3, [r2, #8] 800a182: da07 bge.n 800a194 <__sfputc_r+0x1c> 800a184: 6994 ldr r4, [r2, #24] 800a186: 42a3 cmp r3, r4 800a188: db01 blt.n 800a18e <__sfputc_r+0x16> 800a18a: 290a cmp r1, #10 800a18c: d102 bne.n 800a194 <__sfputc_r+0x1c> 800a18e: bc10 pop {r4} 800a190: f7fe bb39 b.w 8008806 <__swbuf_r> 800a194: 6813 ldr r3, [r2, #0] 800a196: 1c58 adds r0, r3, #1 800a198: 6010 str r0, [r2, #0] 800a19a: 7019 strb r1, [r3, #0] 800a19c: 4608 mov r0, r1 800a19e: bc10 pop {r4} 800a1a0: 4770 bx lr 0800a1a2 <__sfputs_r>: 800a1a2: b5f8 push {r3, r4, r5, r6, r7, lr} 800a1a4: 4606 mov r6, r0 800a1a6: 460f mov r7, r1 800a1a8: 4614 mov r4, r2 800a1aa: 18d5 adds r5, r2, r3 800a1ac: 42ac cmp r4, r5 800a1ae: d101 bne.n 800a1b4 <__sfputs_r+0x12> 800a1b0: 2000 movs r0, #0 800a1b2: e007 b.n 800a1c4 <__sfputs_r+0x22> 800a1b4: 463a mov r2, r7 800a1b6: 4630 mov r0, r6 800a1b8: f814 1b01 ldrb.w r1, [r4], #1 800a1bc: f7ff ffdc bl 800a178 <__sfputc_r> 800a1c0: 1c43 adds r3, r0, #1 800a1c2: d1f3 bne.n 800a1ac <__sfputs_r+0xa> 800a1c4: bdf8 pop {r3, r4, r5, r6, r7, pc} ... 0800a1c8 <_vfiprintf_r>: 800a1c8: e92d 4ff0 stmdb sp!, {r4, r5, r6, r7, r8, r9, sl, fp, lr} 800a1cc: 460d mov r5, r1 800a1ce: 4614 mov r4, r2 800a1d0: 4698 mov r8, r3 800a1d2: 4606 mov r6, r0 800a1d4: b09d sub sp, #116 ; 0x74 800a1d6: b118 cbz r0, 800a1e0 <_vfiprintf_r+0x18> 800a1d8: 6a03 ldr r3, [r0, #32] 800a1da: b90b cbnz r3, 800a1e0 <_vfiprintf_r+0x18> 800a1dc: f7fe fa7a bl 80086d4 <__sinit> 800a1e0: 6e6b ldr r3, [r5, #100] ; 0x64 800a1e2: 07d9 lsls r1, r3, #31 800a1e4: d405 bmi.n 800a1f2 <_vfiprintf_r+0x2a> 800a1e6: 89ab ldrh r3, [r5, #12] 800a1e8: 059a lsls r2, r3, #22 800a1ea: d402 bmi.n 800a1f2 <_vfiprintf_r+0x2a> 800a1ec: 6da8 ldr r0, [r5, #88] ; 0x58 800a1ee: f7fe fc2c bl 8008a4a <__retarget_lock_acquire_recursive> 800a1f2: 89ab ldrh r3, [r5, #12] 800a1f4: 071b lsls r3, r3, #28 800a1f6: d501 bpl.n 800a1fc <_vfiprintf_r+0x34> 800a1f8: 692b ldr r3, [r5, #16] 800a1fa: b99b cbnz r3, 800a224 <_vfiprintf_r+0x5c> 800a1fc: 4629 mov r1, r5 800a1fe: 4630 mov r0, r6 800a200: f7fe fb3e bl 8008880 <__swsetup_r> 800a204: b170 cbz r0, 800a224 <_vfiprintf_r+0x5c> 800a206: 6e6b ldr r3, [r5, #100] ; 0x64 800a208: 07dc lsls r4, r3, #31 800a20a: d504 bpl.n 800a216 <_vfiprintf_r+0x4e> 800a20c: f04f 30ff mov.w r0, #4294967295 800a210: b01d add sp, #116 ; 0x74 800a212: e8bd 8ff0 ldmia.w sp!, {r4, r5, r6, r7, r8, r9, sl, fp, pc} 800a216: 89ab ldrh r3, [r5, #12] 800a218: 0598 lsls r0, r3, #22 800a21a: d4f7 bmi.n 800a20c <_vfiprintf_r+0x44> 800a21c: 6da8 ldr r0, [r5, #88] ; 0x58 800a21e: f7fe fc15 bl 8008a4c <__retarget_lock_release_recursive> 800a222: e7f3 b.n 800a20c <_vfiprintf_r+0x44> 800a224: 2300 movs r3, #0 800a226: 9309 str r3, [sp, #36] ; 0x24 800a228: 2320 movs r3, #32 800a22a: f88d 3029 strb.w r3, [sp, #41] ; 0x29 800a22e: 2330 movs r3, #48 ; 0x30 800a230: f04f 0901 mov.w r9, #1 800a234: f8cd 800c str.w r8, [sp, #12] 800a238: f8df 81ac ldr.w r8, [pc, #428] ; 800a3e8 <_vfiprintf_r+0x220> 800a23c: f88d 302a strb.w r3, [sp, #42] ; 0x2a 800a240: 4623 mov r3, r4 800a242: 469a mov sl, r3 800a244: f813 2b01 ldrb.w r2, [r3], #1 800a248: b10a cbz r2, 800a24e <_vfiprintf_r+0x86> 800a24a: 2a25 cmp r2, #37 ; 0x25 800a24c: d1f9 bne.n 800a242 <_vfiprintf_r+0x7a> 800a24e: ebba 0b04 subs.w fp, sl, r4 800a252: d00b beq.n 800a26c <_vfiprintf_r+0xa4> 800a254: 465b mov r3, fp 800a256: 4622 mov r2, r4 800a258: 4629 mov r1, r5 800a25a: 4630 mov r0, r6 800a25c: f7ff ffa1 bl 800a1a2 <__sfputs_r> 800a260: 3001 adds r0, #1 800a262: f000 80a9 beq.w 800a3b8 <_vfiprintf_r+0x1f0> 800a266: 9a09 ldr r2, [sp, #36] ; 0x24 800a268: 445a add r2, fp 800a26a: 9209 str r2, [sp, #36] ; 0x24 800a26c: f89a 3000 ldrb.w r3, [sl] 800a270: 2b00 cmp r3, #0 800a272: f000 80a1 beq.w 800a3b8 <_vfiprintf_r+0x1f0> 800a276: 2300 movs r3, #0 800a278: f04f 32ff mov.w r2, #4294967295 800a27c: e9cd 2305 strd r2, r3, [sp, #20] 800a280: f10a 0a01 add.w sl, sl, #1 800a284: 9304 str r3, [sp, #16] 800a286: 9307 str r3, [sp, #28] 800a288: f88d 3053 strb.w r3, [sp, #83] ; 0x53 800a28c: 931a str r3, [sp, #104] ; 0x68 800a28e: 4654 mov r4, sl 800a290: 2205 movs r2, #5 800a292: f814 1b01 ldrb.w r1, [r4], #1 800a296: 4854 ldr r0, [pc, #336] ; (800a3e8 <_vfiprintf_r+0x220>) 800a298: f7fe fbd9 bl 8008a4e 800a29c: 9a04 ldr r2, [sp, #16] 800a29e: b9d8 cbnz r0, 800a2d8 <_vfiprintf_r+0x110> 800a2a0: 06d1 lsls r1, r2, #27 800a2a2: bf44 itt mi 800a2a4: 2320 movmi r3, #32 800a2a6: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 800a2aa: 0713 lsls r3, r2, #28 800a2ac: bf44 itt mi 800a2ae: 232b movmi r3, #43 ; 0x2b 800a2b0: f88d 3053 strbmi.w r3, [sp, #83] ; 0x53 800a2b4: f89a 3000 ldrb.w r3, [sl] 800a2b8: 2b2a cmp r3, #42 ; 0x2a 800a2ba: d015 beq.n 800a2e8 <_vfiprintf_r+0x120> 800a2bc: 4654 mov r4, sl 800a2be: 2000 movs r0, #0 800a2c0: f04f 0c0a mov.w ip, #10 800a2c4: 9a07 ldr r2, [sp, #28] 800a2c6: 4621 mov r1, r4 800a2c8: f811 3b01 ldrb.w r3, [r1], #1 800a2cc: 3b30 subs r3, #48 ; 0x30 800a2ce: 2b09 cmp r3, #9 800a2d0: d94d bls.n 800a36e <_vfiprintf_r+0x1a6> 800a2d2: b1b0 cbz r0, 800a302 <_vfiprintf_r+0x13a> 800a2d4: 9207 str r2, [sp, #28] 800a2d6: e014 b.n 800a302 <_vfiprintf_r+0x13a> 800a2d8: eba0 0308 sub.w r3, r0, r8 800a2dc: fa09 f303 lsl.w r3, r9, r3 800a2e0: 4313 orrs r3, r2 800a2e2: 46a2 mov sl, r4 800a2e4: 9304 str r3, [sp, #16] 800a2e6: e7d2 b.n 800a28e <_vfiprintf_r+0xc6> 800a2e8: 9b03 ldr r3, [sp, #12] 800a2ea: 1d19 adds r1, r3, #4 800a2ec: 681b ldr r3, [r3, #0] 800a2ee: 9103 str r1, [sp, #12] 800a2f0: 2b00 cmp r3, #0 800a2f2: bfbb ittet lt 800a2f4: 425b neglt r3, r3 800a2f6: f042 0202 orrlt.w r2, r2, #2 800a2fa: 9307 strge r3, [sp, #28] 800a2fc: 9307 strlt r3, [sp, #28] 800a2fe: bfb8 it lt 800a300: 9204 strlt r2, [sp, #16] 800a302: 7823 ldrb r3, [r4, #0] 800a304: 2b2e cmp r3, #46 ; 0x2e 800a306: d10c bne.n 800a322 <_vfiprintf_r+0x15a> 800a308: 7863 ldrb r3, [r4, #1] 800a30a: 2b2a cmp r3, #42 ; 0x2a 800a30c: d134 bne.n 800a378 <_vfiprintf_r+0x1b0> 800a30e: 9b03 ldr r3, [sp, #12] 800a310: 3402 adds r4, #2 800a312: 1d1a adds r2, r3, #4 800a314: 681b ldr r3, [r3, #0] 800a316: 9203 str r2, [sp, #12] 800a318: 2b00 cmp r3, #0 800a31a: bfb8 it lt 800a31c: f04f 33ff movlt.w r3, #4294967295 800a320: 9305 str r3, [sp, #20] 800a322: f8df a0c8 ldr.w sl, [pc, #200] ; 800a3ec <_vfiprintf_r+0x224> 800a326: 2203 movs r2, #3 800a328: 4650 mov r0, sl 800a32a: 7821 ldrb r1, [r4, #0] 800a32c: f7fe fb8f bl 8008a4e 800a330: b138 cbz r0, 800a342 <_vfiprintf_r+0x17a> 800a332: 2240 movs r2, #64 ; 0x40 800a334: 9b04 ldr r3, [sp, #16] 800a336: eba0 000a sub.w r0, r0, sl 800a33a: 4082 lsls r2, r0 800a33c: 4313 orrs r3, r2 800a33e: 3401 adds r4, #1 800a340: 9304 str r3, [sp, #16] 800a342: f814 1b01 ldrb.w r1, [r4], #1 800a346: 2206 movs r2, #6 800a348: 4829 ldr r0, [pc, #164] ; (800a3f0 <_vfiprintf_r+0x228>) 800a34a: f88d 1028 strb.w r1, [sp, #40] ; 0x28 800a34e: f7fe fb7e bl 8008a4e 800a352: 2800 cmp r0, #0 800a354: d03f beq.n 800a3d6 <_vfiprintf_r+0x20e> 800a356: 4b27 ldr r3, [pc, #156] ; (800a3f4 <_vfiprintf_r+0x22c>) 800a358: bb1b cbnz r3, 800a3a2 <_vfiprintf_r+0x1da> 800a35a: 9b03 ldr r3, [sp, #12] 800a35c: 3307 adds r3, #7 800a35e: f023 0307 bic.w r3, r3, #7 800a362: 3308 adds r3, #8 800a364: 9303 str r3, [sp, #12] 800a366: 9b09 ldr r3, [sp, #36] ; 0x24 800a368: 443b add r3, r7 800a36a: 9309 str r3, [sp, #36] ; 0x24 800a36c: e768 b.n 800a240 <_vfiprintf_r+0x78> 800a36e: 460c mov r4, r1 800a370: 2001 movs r0, #1 800a372: fb0c 3202 mla r2, ip, r2, r3 800a376: e7a6 b.n 800a2c6 <_vfiprintf_r+0xfe> 800a378: 2300 movs r3, #0 800a37a: f04f 0c0a mov.w ip, #10 800a37e: 4619 mov r1, r3 800a380: 3401 adds r4, #1 800a382: 9305 str r3, [sp, #20] 800a384: 4620 mov r0, r4 800a386: f810 2b01 ldrb.w r2, [r0], #1 800a38a: 3a30 subs r2, #48 ; 0x30 800a38c: 2a09 cmp r2, #9 800a38e: d903 bls.n 800a398 <_vfiprintf_r+0x1d0> 800a390: 2b00 cmp r3, #0 800a392: d0c6 beq.n 800a322 <_vfiprintf_r+0x15a> 800a394: 9105 str r1, [sp, #20] 800a396: e7c4 b.n 800a322 <_vfiprintf_r+0x15a> 800a398: 4604 mov r4, r0 800a39a: 2301 movs r3, #1 800a39c: fb0c 2101 mla r1, ip, r1, r2 800a3a0: e7f0 b.n 800a384 <_vfiprintf_r+0x1bc> 800a3a2: ab03 add r3, sp, #12 800a3a4: 9300 str r3, [sp, #0] 800a3a6: 462a mov r2, r5 800a3a8: 4630 mov r0, r6 800a3aa: 4b13 ldr r3, [pc, #76] ; (800a3f8 <_vfiprintf_r+0x230>) 800a3ac: a904 add r1, sp, #16 800a3ae: f7fd fd43 bl 8007e38 <_printf_float> 800a3b2: 4607 mov r7, r0 800a3b4: 1c78 adds r0, r7, #1 800a3b6: d1d6 bne.n 800a366 <_vfiprintf_r+0x19e> 800a3b8: 6e6b ldr r3, [r5, #100] ; 0x64 800a3ba: 07d9 lsls r1, r3, #31 800a3bc: d405 bmi.n 800a3ca <_vfiprintf_r+0x202> 800a3be: 89ab ldrh r3, [r5, #12] 800a3c0: 059a lsls r2, r3, #22 800a3c2: d402 bmi.n 800a3ca <_vfiprintf_r+0x202> 800a3c4: 6da8 ldr r0, [r5, #88] ; 0x58 800a3c6: f7fe fb41 bl 8008a4c <__retarget_lock_release_recursive> 800a3ca: 89ab ldrh r3, [r5, #12] 800a3cc: 065b lsls r3, r3, #25 800a3ce: f53f af1d bmi.w 800a20c <_vfiprintf_r+0x44> 800a3d2: 9809 ldr r0, [sp, #36] ; 0x24 800a3d4: e71c b.n 800a210 <_vfiprintf_r+0x48> 800a3d6: ab03 add r3, sp, #12 800a3d8: 9300 str r3, [sp, #0] 800a3da: 462a mov r2, r5 800a3dc: 4630 mov r0, r6 800a3de: 4b06 ldr r3, [pc, #24] ; (800a3f8 <_vfiprintf_r+0x230>) 800a3e0: a904 add r1, sp, #16 800a3e2: f7fd ffc9 bl 8008378 <_printf_i> 800a3e6: e7e4 b.n 800a3b2 <_vfiprintf_r+0x1ea> 800a3e8: 0800b60c .word 0x0800b60c 800a3ec: 0800b612 .word 0x0800b612 800a3f0: 0800b616 .word 0x0800b616 800a3f4: 08007e39 .word 0x08007e39 800a3f8: 0800a1a3 .word 0x0800a1a3 0800a3fc <__sflush_r>: 800a3fc: 898a ldrh r2, [r1, #12] 800a3fe: b5f8 push {r3, r4, r5, r6, r7, lr} 800a400: 4605 mov r5, r0 800a402: 0710 lsls r0, r2, #28 800a404: 460c mov r4, r1 800a406: d457 bmi.n 800a4b8 <__sflush_r+0xbc> 800a408: 684b ldr r3, [r1, #4] 800a40a: 2b00 cmp r3, #0 800a40c: dc04 bgt.n 800a418 <__sflush_r+0x1c> 800a40e: 6c0b ldr r3, [r1, #64] ; 0x40 800a410: 2b00 cmp r3, #0 800a412: dc01 bgt.n 800a418 <__sflush_r+0x1c> 800a414: 2000 movs r0, #0 800a416: bdf8 pop {r3, r4, r5, r6, r7, pc} 800a418: 6ae6 ldr r6, [r4, #44] ; 0x2c 800a41a: 2e00 cmp r6, #0 800a41c: d0fa beq.n 800a414 <__sflush_r+0x18> 800a41e: 2300 movs r3, #0 800a420: f412 5280 ands.w r2, r2, #4096 ; 0x1000 800a424: 682f ldr r7, [r5, #0] 800a426: 6a21 ldr r1, [r4, #32] 800a428: 602b str r3, [r5, #0] 800a42a: d032 beq.n 800a492 <__sflush_r+0x96> 800a42c: 6d60 ldr r0, [r4, #84] ; 0x54 800a42e: 89a3 ldrh r3, [r4, #12] 800a430: 075a lsls r2, r3, #29 800a432: d505 bpl.n 800a440 <__sflush_r+0x44> 800a434: 6863 ldr r3, [r4, #4] 800a436: 1ac0 subs r0, r0, r3 800a438: 6b63 ldr r3, [r4, #52] ; 0x34 800a43a: b10b cbz r3, 800a440 <__sflush_r+0x44> 800a43c: 6c23 ldr r3, [r4, #64] ; 0x40 800a43e: 1ac0 subs r0, r0, r3 800a440: 2300 movs r3, #0 800a442: 4602 mov r2, r0 800a444: 6ae6 ldr r6, [r4, #44] ; 0x2c 800a446: 4628 mov r0, r5 800a448: 6a21 ldr r1, [r4, #32] 800a44a: 47b0 blx r6 800a44c: 1c43 adds r3, r0, #1 800a44e: 89a3 ldrh r3, [r4, #12] 800a450: d106 bne.n 800a460 <__sflush_r+0x64> 800a452: 6829 ldr r1, [r5, #0] 800a454: 291d cmp r1, #29 800a456: d82b bhi.n 800a4b0 <__sflush_r+0xb4> 800a458: 4a28 ldr r2, [pc, #160] ; (800a4fc <__sflush_r+0x100>) 800a45a: 410a asrs r2, r1 800a45c: 07d6 lsls r6, r2, #31 800a45e: d427 bmi.n 800a4b0 <__sflush_r+0xb4> 800a460: 2200 movs r2, #0 800a462: 6062 str r2, [r4, #4] 800a464: 6922 ldr r2, [r4, #16] 800a466: 04d9 lsls r1, r3, #19 800a468: 6022 str r2, [r4, #0] 800a46a: d504 bpl.n 800a476 <__sflush_r+0x7a> 800a46c: 1c42 adds r2, r0, #1 800a46e: d101 bne.n 800a474 <__sflush_r+0x78> 800a470: 682b ldr r3, [r5, #0] 800a472: b903 cbnz r3, 800a476 <__sflush_r+0x7a> 800a474: 6560 str r0, [r4, #84] ; 0x54 800a476: 6b61 ldr r1, [r4, #52] ; 0x34 800a478: 602f str r7, [r5, #0] 800a47a: 2900 cmp r1, #0 800a47c: d0ca beq.n 800a414 <__sflush_r+0x18> 800a47e: f104 0344 add.w r3, r4, #68 ; 0x44 800a482: 4299 cmp r1, r3 800a484: d002 beq.n 800a48c <__sflush_r+0x90> 800a486: 4628 mov r0, r5 800a488: f7ff f95e bl 8009748 <_free_r> 800a48c: 2000 movs r0, #0 800a48e: 6360 str r0, [r4, #52] ; 0x34 800a490: e7c1 b.n 800a416 <__sflush_r+0x1a> 800a492: 2301 movs r3, #1 800a494: 4628 mov r0, r5 800a496: 47b0 blx r6 800a498: 1c41 adds r1, r0, #1 800a49a: d1c8 bne.n 800a42e <__sflush_r+0x32> 800a49c: 682b ldr r3, [r5, #0] 800a49e: 2b00 cmp r3, #0 800a4a0: d0c5 beq.n 800a42e <__sflush_r+0x32> 800a4a2: 2b1d cmp r3, #29 800a4a4: d001 beq.n 800a4aa <__sflush_r+0xae> 800a4a6: 2b16 cmp r3, #22 800a4a8: d101 bne.n 800a4ae <__sflush_r+0xb2> 800a4aa: 602f str r7, [r5, #0] 800a4ac: e7b2 b.n 800a414 <__sflush_r+0x18> 800a4ae: 89a3 ldrh r3, [r4, #12] 800a4b0: f043 0340 orr.w r3, r3, #64 ; 0x40 800a4b4: 81a3 strh r3, [r4, #12] 800a4b6: e7ae b.n 800a416 <__sflush_r+0x1a> 800a4b8: 690f ldr r7, [r1, #16] 800a4ba: 2f00 cmp r7, #0 800a4bc: d0aa beq.n 800a414 <__sflush_r+0x18> 800a4be: 0793 lsls r3, r2, #30 800a4c0: bf18 it ne 800a4c2: 2300 movne r3, #0 800a4c4: 680e ldr r6, [r1, #0] 800a4c6: bf08 it eq 800a4c8: 694b ldreq r3, [r1, #20] 800a4ca: 1bf6 subs r6, r6, r7 800a4cc: 600f str r7, [r1, #0] 800a4ce: 608b str r3, [r1, #8] 800a4d0: 2e00 cmp r6, #0 800a4d2: dd9f ble.n 800a414 <__sflush_r+0x18> 800a4d4: 4633 mov r3, r6 800a4d6: 463a mov r2, r7 800a4d8: 4628 mov r0, r5 800a4da: 6a21 ldr r1, [r4, #32] 800a4dc: f8d4 c028 ldr.w ip, [r4, #40] ; 0x28 800a4e0: 47e0 blx ip 800a4e2: 2800 cmp r0, #0 800a4e4: dc06 bgt.n 800a4f4 <__sflush_r+0xf8> 800a4e6: 89a3 ldrh r3, [r4, #12] 800a4e8: f04f 30ff mov.w r0, #4294967295 800a4ec: f043 0340 orr.w r3, r3, #64 ; 0x40 800a4f0: 81a3 strh r3, [r4, #12] 800a4f2: e790 b.n 800a416 <__sflush_r+0x1a> 800a4f4: 4407 add r7, r0 800a4f6: 1a36 subs r6, r6, r0 800a4f8: e7ea b.n 800a4d0 <__sflush_r+0xd4> 800a4fa: bf00 nop 800a4fc: dfbffffe .word 0xdfbffffe 0800a500 <_fflush_r>: 800a500: b538 push {r3, r4, r5, lr} 800a502: 690b ldr r3, [r1, #16] 800a504: 4605 mov r5, r0 800a506: 460c mov r4, r1 800a508: b913 cbnz r3, 800a510 <_fflush_r+0x10> 800a50a: 2500 movs r5, #0 800a50c: 4628 mov r0, r5 800a50e: bd38 pop {r3, r4, r5, pc} 800a510: b118 cbz r0, 800a51a <_fflush_r+0x1a> 800a512: 6a03 ldr r3, [r0, #32] 800a514: b90b cbnz r3, 800a51a <_fflush_r+0x1a> 800a516: f7fe f8dd bl 80086d4 <__sinit> 800a51a: f9b4 300c ldrsh.w r3, [r4, #12] 800a51e: 2b00 cmp r3, #0 800a520: d0f3 beq.n 800a50a <_fflush_r+0xa> 800a522: 6e62 ldr r2, [r4, #100] ; 0x64 800a524: 07d0 lsls r0, r2, #31 800a526: d404 bmi.n 800a532 <_fflush_r+0x32> 800a528: 0599 lsls r1, r3, #22 800a52a: d402 bmi.n 800a532 <_fflush_r+0x32> 800a52c: 6da0 ldr r0, [r4, #88] ; 0x58 800a52e: f7fe fa8c bl 8008a4a <__retarget_lock_acquire_recursive> 800a532: 4628 mov r0, r5 800a534: 4621 mov r1, r4 800a536: f7ff ff61 bl 800a3fc <__sflush_r> 800a53a: 6e63 ldr r3, [r4, #100] ; 0x64 800a53c: 4605 mov r5, r0 800a53e: 07da lsls r2, r3, #31 800a540: d4e4 bmi.n 800a50c <_fflush_r+0xc> 800a542: 89a3 ldrh r3, [r4, #12] 800a544: 059b lsls r3, r3, #22 800a546: d4e1 bmi.n 800a50c <_fflush_r+0xc> 800a548: 6da0 ldr r0, [r4, #88] ; 0x58 800a54a: f7fe fa7f bl 8008a4c <__retarget_lock_release_recursive> 800a54e: e7dd b.n 800a50c <_fflush_r+0xc> 0800a550 <__swhatbuf_r>: 800a550: b570 push {r4, r5, r6, lr} 800a552: 460c mov r4, r1 800a554: f9b1 100e ldrsh.w r1, [r1, #14] 800a558: 4615 mov r5, r2 800a55a: 2900 cmp r1, #0 800a55c: 461e mov r6, r3 800a55e: b096 sub sp, #88 ; 0x58 800a560: da0c bge.n 800a57c <__swhatbuf_r+0x2c> 800a562: 89a3 ldrh r3, [r4, #12] 800a564: 2100 movs r1, #0 800a566: f013 0f80 tst.w r3, #128 ; 0x80 800a56a: bf0c ite eq 800a56c: f44f 6380 moveq.w r3, #1024 ; 0x400 800a570: 2340 movne r3, #64 ; 0x40 800a572: 2000 movs r0, #0 800a574: 6031 str r1, [r6, #0] 800a576: 602b str r3, [r5, #0] 800a578: b016 add sp, #88 ; 0x58 800a57a: bd70 pop {r4, r5, r6, pc} 800a57c: 466a mov r2, sp 800a57e: f000 f863 bl 800a648 <_fstat_r> 800a582: 2800 cmp r0, #0 800a584: dbed blt.n 800a562 <__swhatbuf_r+0x12> 800a586: 9901 ldr r1, [sp, #4] 800a588: f401 4170 and.w r1, r1, #61440 ; 0xf000 800a58c: f5a1 5300 sub.w r3, r1, #8192 ; 0x2000 800a590: 4259 negs r1, r3 800a592: 4159 adcs r1, r3 800a594: f44f 6380 mov.w r3, #1024 ; 0x400 800a598: e7eb b.n 800a572 <__swhatbuf_r+0x22> 0800a59a <__smakebuf_r>: 800a59a: 898b ldrh r3, [r1, #12] 800a59c: b573 push {r0, r1, r4, r5, r6, lr} 800a59e: 079d lsls r5, r3, #30 800a5a0: 4606 mov r6, r0 800a5a2: 460c mov r4, r1 800a5a4: d507 bpl.n 800a5b6 <__smakebuf_r+0x1c> 800a5a6: f104 0347 add.w r3, r4, #71 ; 0x47 800a5aa: 6023 str r3, [r4, #0] 800a5ac: 6123 str r3, [r4, #16] 800a5ae: 2301 movs r3, #1 800a5b0: 6163 str r3, [r4, #20] 800a5b2: b002 add sp, #8 800a5b4: bd70 pop {r4, r5, r6, pc} 800a5b6: 466a mov r2, sp 800a5b8: ab01 add r3, sp, #4 800a5ba: f7ff ffc9 bl 800a550 <__swhatbuf_r> 800a5be: 9900 ldr r1, [sp, #0] 800a5c0: 4605 mov r5, r0 800a5c2: 4630 mov r0, r6 800a5c4: f7fd fb10 bl 8007be8 <_malloc_r> 800a5c8: b948 cbnz r0, 800a5de <__smakebuf_r+0x44> 800a5ca: f9b4 300c ldrsh.w r3, [r4, #12] 800a5ce: 059a lsls r2, r3, #22 800a5d0: d4ef bmi.n 800a5b2 <__smakebuf_r+0x18> 800a5d2: f023 0303 bic.w r3, r3, #3 800a5d6: f043 0302 orr.w r3, r3, #2 800a5da: 81a3 strh r3, [r4, #12] 800a5dc: e7e3 b.n 800a5a6 <__smakebuf_r+0xc> 800a5de: 89a3 ldrh r3, [r4, #12] 800a5e0: 6020 str r0, [r4, #0] 800a5e2: f043 0380 orr.w r3, r3, #128 ; 0x80 800a5e6: 81a3 strh r3, [r4, #12] 800a5e8: 9b00 ldr r3, [sp, #0] 800a5ea: 6120 str r0, [r4, #16] 800a5ec: 6163 str r3, [r4, #20] 800a5ee: 9b01 ldr r3, [sp, #4] 800a5f0: b15b cbz r3, 800a60a <__smakebuf_r+0x70> 800a5f2: 4630 mov r0, r6 800a5f4: f9b4 100e ldrsh.w r1, [r4, #14] 800a5f8: f000 f838 bl 800a66c <_isatty_r> 800a5fc: b128 cbz r0, 800a60a <__smakebuf_r+0x70> 800a5fe: 89a3 ldrh r3, [r4, #12] 800a600: f023 0303 bic.w r3, r3, #3 800a604: f043 0301 orr.w r3, r3, #1 800a608: 81a3 strh r3, [r4, #12] 800a60a: 89a3 ldrh r3, [r4, #12] 800a60c: 431d orrs r5, r3 800a60e: 81a5 strh r5, [r4, #12] 800a610: e7cf b.n 800a5b2 <__smakebuf_r+0x18> 0800a612 : 800a612: 4288 cmp r0, r1 800a614: b510 push {r4, lr} 800a616: eb01 0402 add.w r4, r1, r2 800a61a: d902 bls.n 800a622 800a61c: 4284 cmp r4, r0 800a61e: 4623 mov r3, r4 800a620: d807 bhi.n 800a632 800a622: 1e43 subs r3, r0, #1 800a624: 42a1 cmp r1, r4 800a626: d008 beq.n 800a63a 800a628: f811 2b01 ldrb.w r2, [r1], #1 800a62c: f803 2f01 strb.w r2, [r3, #1]! 800a630: e7f8 b.n 800a624 800a632: 4601 mov r1, r0 800a634: 4402 add r2, r0 800a636: 428a cmp r2, r1 800a638: d100 bne.n 800a63c 800a63a: bd10 pop {r4, pc} 800a63c: f813 4d01 ldrb.w r4, [r3, #-1]! 800a640: f802 4d01 strb.w r4, [r2, #-1]! 800a644: e7f7 b.n 800a636 ... 0800a648 <_fstat_r>: 800a648: b538 push {r3, r4, r5, lr} 800a64a: 2300 movs r3, #0 800a64c: 4d06 ldr r5, [pc, #24] ; (800a668 <_fstat_r+0x20>) 800a64e: 4604 mov r4, r0 800a650: 4608 mov r0, r1 800a652: 4611 mov r1, r2 800a654: 602b str r3, [r5, #0] 800a656: f7f7 faa2 bl 8001b9e <_fstat> 800a65a: 1c43 adds r3, r0, #1 800a65c: d102 bne.n 800a664 <_fstat_r+0x1c> 800a65e: 682b ldr r3, [r5, #0] 800a660: b103 cbz r3, 800a664 <_fstat_r+0x1c> 800a662: 6023 str r3, [r4, #0] 800a664: bd38 pop {r3, r4, r5, pc} 800a666: bf00 nop 800a668: 2000266c .word 0x2000266c 0800a66c <_isatty_r>: 800a66c: b538 push {r3, r4, r5, lr} 800a66e: 2300 movs r3, #0 800a670: 4d05 ldr r5, [pc, #20] ; (800a688 <_isatty_r+0x1c>) 800a672: 4604 mov r4, r0 800a674: 4608 mov r0, r1 800a676: 602b str r3, [r5, #0] 800a678: f7f7 faa0 bl 8001bbc <_isatty> 800a67c: 1c43 adds r3, r0, #1 800a67e: d102 bne.n 800a686 <_isatty_r+0x1a> 800a680: 682b ldr r3, [r5, #0] 800a682: b103 cbz r3, 800a686 <_isatty_r+0x1a> 800a684: 6023 str r3, [r4, #0] 800a686: bd38 pop {r3, r4, r5, pc} 800a688: 2000266c .word 0x2000266c 0800a68c : 800a68c: 440a add r2, r1 800a68e: 4291 cmp r1, r2 800a690: f100 33ff add.w r3, r0, #4294967295 800a694: d100 bne.n 800a698 800a696: 4770 bx lr 800a698: b510 push {r4, lr} 800a69a: f811 4b01 ldrb.w r4, [r1], #1 800a69e: 4291 cmp r1, r2 800a6a0: f803 4f01 strb.w r4, [r3, #1]! 800a6a4: d1f9 bne.n 800a69a 800a6a6: bd10 pop {r4, pc} 0800a6a8 <__assert_func>: 800a6a8: b51f push {r0, r1, r2, r3, r4, lr} 800a6aa: 4614 mov r4, r2 800a6ac: 461a mov r2, r3 800a6ae: 4b09 ldr r3, [pc, #36] ; (800a6d4 <__assert_func+0x2c>) 800a6b0: 4605 mov r5, r0 800a6b2: 681b ldr r3, [r3, #0] 800a6b4: 68d8 ldr r0, [r3, #12] 800a6b6: b14c cbz r4, 800a6cc <__assert_func+0x24> 800a6b8: 4b07 ldr r3, [pc, #28] ; (800a6d8 <__assert_func+0x30>) 800a6ba: e9cd 3401 strd r3, r4, [sp, #4] 800a6be: 9100 str r1, [sp, #0] 800a6c0: 462b mov r3, r5 800a6c2: 4906 ldr r1, [pc, #24] ; (800a6dc <__assert_func+0x34>) 800a6c4: f000 f870 bl 800a7a8 800a6c8: f000 f880 bl 800a7cc 800a6cc: 4b04 ldr r3, [pc, #16] ; (800a6e0 <__assert_func+0x38>) 800a6ce: 461c mov r4, r3 800a6d0: e7f3 b.n 800a6ba <__assert_func+0x12> 800a6d2: bf00 nop 800a6d4: 20000064 .word 0x20000064 800a6d8: 0800b627 .word 0x0800b627 800a6dc: 0800b634 .word 0x0800b634 800a6e0: 0800b662 .word 0x0800b662 0800a6e4 <_calloc_r>: 800a6e4: b570 push {r4, r5, r6, lr} 800a6e6: fba1 5402 umull r5, r4, r1, r2 800a6ea: b934 cbnz r4, 800a6fa <_calloc_r+0x16> 800a6ec: 4629 mov r1, r5 800a6ee: f7fd fa7b bl 8007be8 <_malloc_r> 800a6f2: 4606 mov r6, r0 800a6f4: b928 cbnz r0, 800a702 <_calloc_r+0x1e> 800a6f6: 4630 mov r0, r6 800a6f8: bd70 pop {r4, r5, r6, pc} 800a6fa: 220c movs r2, #12 800a6fc: 2600 movs r6, #0 800a6fe: 6002 str r2, [r0, #0] 800a700: e7f9 b.n 800a6f6 <_calloc_r+0x12> 800a702: 462a mov r2, r5 800a704: 4621 mov r1, r4 800a706: f7fe f913 bl 8008930 800a70a: e7f4 b.n 800a6f6 <_calloc_r+0x12> 0800a70c <__ascii_mbtowc>: 800a70c: b082 sub sp, #8 800a70e: b901 cbnz r1, 800a712 <__ascii_mbtowc+0x6> 800a710: a901 add r1, sp, #4 800a712: b142 cbz r2, 800a726 <__ascii_mbtowc+0x1a> 800a714: b14b cbz r3, 800a72a <__ascii_mbtowc+0x1e> 800a716: 7813 ldrb r3, [r2, #0] 800a718: 600b str r3, [r1, #0] 800a71a: 7812 ldrb r2, [r2, #0] 800a71c: 1e10 subs r0, r2, #0 800a71e: bf18 it ne 800a720: 2001 movne r0, #1 800a722: b002 add sp, #8 800a724: 4770 bx lr 800a726: 4610 mov r0, r2 800a728: e7fb b.n 800a722 <__ascii_mbtowc+0x16> 800a72a: f06f 0001 mvn.w r0, #1 800a72e: e7f8 b.n 800a722 <__ascii_mbtowc+0x16> 0800a730 <_realloc_r>: 800a730: e92d 41f0 stmdb sp!, {r4, r5, r6, r7, r8, lr} 800a734: 4680 mov r8, r0 800a736: 4614 mov r4, r2 800a738: 460e mov r6, r1 800a73a: b921 cbnz r1, 800a746 <_realloc_r+0x16> 800a73c: 4611 mov r1, r2 800a73e: e8bd 41f0 ldmia.w sp!, {r4, r5, r6, r7, r8, lr} 800a742: f7fd ba51 b.w 8007be8 <_malloc_r> 800a746: b92a cbnz r2, 800a754 <_realloc_r+0x24> 800a748: f7fe fffe bl 8009748 <_free_r> 800a74c: 4625 mov r5, r4 800a74e: 4628 mov r0, r5 800a750: e8bd 81f0 ldmia.w sp!, {r4, r5, r6, r7, r8, pc} 800a754: f000 f841 bl 800a7da <_malloc_usable_size_r> 800a758: 4284 cmp r4, r0 800a75a: 4607 mov r7, r0 800a75c: d802 bhi.n 800a764 <_realloc_r+0x34> 800a75e: ebb4 0f50 cmp.w r4, r0, lsr #1 800a762: d812 bhi.n 800a78a <_realloc_r+0x5a> 800a764: 4621 mov r1, r4 800a766: 4640 mov r0, r8 800a768: f7fd fa3e bl 8007be8 <_malloc_r> 800a76c: 4605 mov r5, r0 800a76e: 2800 cmp r0, #0 800a770: d0ed beq.n 800a74e <_realloc_r+0x1e> 800a772: 42bc cmp r4, r7 800a774: 4622 mov r2, r4 800a776: 4631 mov r1, r6 800a778: bf28 it cs 800a77a: 463a movcs r2, r7 800a77c: f7ff ff86 bl 800a68c 800a780: 4631 mov r1, r6 800a782: 4640 mov r0, r8 800a784: f7fe ffe0 bl 8009748 <_free_r> 800a788: e7e1 b.n 800a74e <_realloc_r+0x1e> 800a78a: 4635 mov r5, r6 800a78c: e7df b.n 800a74e <_realloc_r+0x1e> 0800a78e <__ascii_wctomb>: 800a78e: 4603 mov r3, r0 800a790: 4608 mov r0, r1 800a792: b141 cbz r1, 800a7a6 <__ascii_wctomb+0x18> 800a794: 2aff cmp r2, #255 ; 0xff 800a796: d904 bls.n 800a7a2 <__ascii_wctomb+0x14> 800a798: 228a movs r2, #138 ; 0x8a 800a79a: f04f 30ff mov.w r0, #4294967295 800a79e: 601a str r2, [r3, #0] 800a7a0: 4770 bx lr 800a7a2: 2001 movs r0, #1 800a7a4: 700a strb r2, [r1, #0] 800a7a6: 4770 bx lr 0800a7a8 : 800a7a8: b40e push {r1, r2, r3} 800a7aa: b503 push {r0, r1, lr} 800a7ac: 4601 mov r1, r0 800a7ae: ab03 add r3, sp, #12 800a7b0: 4805 ldr r0, [pc, #20] ; (800a7c8 ) 800a7b2: f853 2b04 ldr.w r2, [r3], #4 800a7b6: 6800 ldr r0, [r0, #0] 800a7b8: 9301 str r3, [sp, #4] 800a7ba: f7ff fd05 bl 800a1c8 <_vfiprintf_r> 800a7be: b002 add sp, #8 800a7c0: f85d eb04 ldr.w lr, [sp], #4 800a7c4: b003 add sp, #12 800a7c6: 4770 bx lr 800a7c8: 20000064 .word 0x20000064 0800a7cc : 800a7cc: 2006 movs r0, #6 800a7ce: b508 push {r3, lr} 800a7d0: f000 f834 bl 800a83c 800a7d4: 2001 movs r0, #1 800a7d6: f7f7 f9b0 bl 8001b3a <_exit> 0800a7da <_malloc_usable_size_r>: 800a7da: f851 3c04 ldr.w r3, [r1, #-4] 800a7de: 1f18 subs r0, r3, #4 800a7e0: 2b00 cmp r3, #0 800a7e2: bfbc itt lt 800a7e4: 580b ldrlt r3, [r1, r0] 800a7e6: 18c0 addlt r0, r0, r3 800a7e8: 4770 bx lr 0800a7ea <_raise_r>: 800a7ea: 291f cmp r1, #31 800a7ec: b538 push {r3, r4, r5, lr} 800a7ee: 4604 mov r4, r0 800a7f0: 460d mov r5, r1 800a7f2: d904 bls.n 800a7fe <_raise_r+0x14> 800a7f4: 2316 movs r3, #22 800a7f6: 6003 str r3, [r0, #0] 800a7f8: f04f 30ff mov.w r0, #4294967295 800a7fc: bd38 pop {r3, r4, r5, pc} 800a7fe: 6bc2 ldr r2, [r0, #60] ; 0x3c 800a800: b112 cbz r2, 800a808 <_raise_r+0x1e> 800a802: f852 3021 ldr.w r3, [r2, r1, lsl #2] 800a806: b94b cbnz r3, 800a81c <_raise_r+0x32> 800a808: 4620 mov r0, r4 800a80a: f000 f831 bl 800a870 <_getpid_r> 800a80e: 462a mov r2, r5 800a810: 4601 mov r1, r0 800a812: 4620 mov r0, r4 800a814: e8bd 4038 ldmia.w sp!, {r3, r4, r5, lr} 800a818: f000 b818 b.w 800a84c <_kill_r> 800a81c: 2b01 cmp r3, #1 800a81e: d00a beq.n 800a836 <_raise_r+0x4c> 800a820: 1c59 adds r1, r3, #1 800a822: d103 bne.n 800a82c <_raise_r+0x42> 800a824: 2316 movs r3, #22 800a826: 6003 str r3, [r0, #0] 800a828: 2001 movs r0, #1 800a82a: e7e7 b.n 800a7fc <_raise_r+0x12> 800a82c: 2400 movs r4, #0 800a82e: 4628 mov r0, r5 800a830: f842 4025 str.w r4, [r2, r5, lsl #2] 800a834: 4798 blx r3 800a836: 2000 movs r0, #0 800a838: e7e0 b.n 800a7fc <_raise_r+0x12> ... 0800a83c : 800a83c: 4b02 ldr r3, [pc, #8] ; (800a848 ) 800a83e: 4601 mov r1, r0 800a840: 6818 ldr r0, [r3, #0] 800a842: f7ff bfd2 b.w 800a7ea <_raise_r> 800a846: bf00 nop 800a848: 20000064 .word 0x20000064 0800a84c <_kill_r>: 800a84c: b538 push {r3, r4, r5, lr} 800a84e: 2300 movs r3, #0 800a850: 4d06 ldr r5, [pc, #24] ; (800a86c <_kill_r+0x20>) 800a852: 4604 mov r4, r0 800a854: 4608 mov r0, r1 800a856: 4611 mov r1, r2 800a858: 602b str r3, [r5, #0] 800a85a: f7f7 f95e bl 8001b1a <_kill> 800a85e: 1c43 adds r3, r0, #1 800a860: d102 bne.n 800a868 <_kill_r+0x1c> 800a862: 682b ldr r3, [r5, #0] 800a864: b103 cbz r3, 800a868 <_kill_r+0x1c> 800a866: 6023 str r3, [r4, #0] 800a868: bd38 pop {r3, r4, r5, pc} 800a86a: bf00 nop 800a86c: 2000266c .word 0x2000266c 0800a870 <_getpid_r>: 800a870: f7f7 b94c b.w 8001b0c <_getpid> 0800a874 <_init>: 800a874: b5f8 push {r3, r4, r5, r6, r7, lr} 800a876: bf00 nop 800a878: bcf8 pop {r3, r4, r5, r6, r7} 800a87a: bc08 pop {r3} 800a87c: 469e mov lr, r3 800a87e: 4770 bx lr 0800a880 <_fini>: 800a880: b5f8 push {r3, r4, r5, r6, r7, lr} 800a882: bf00 nop 800a884: bcf8 pop {r3, r4, r5, r6, r7} 800a886: bc08 pop {r3} 800a888: 469e mov lr, r3 800a88a: 4770 bx lr